@innovastudio/contentbox-runtime-base 1.0.3 → 1.0.5
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/contentbox-runtime-base.esm.js +525 -441
- package/dist/contentbox-runtime-base.min.js +6 -6
- package/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,186 +1,186 @@
|
|
|
1
|
-
var
|
|
2
|
-
function
|
|
1
|
+
var Le = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
+
function je(o) {
|
|
3
3
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
4
4
|
}
|
|
5
|
-
var me = { exports: {} }, Ge = me.exports,
|
|
5
|
+
var me = { exports: {} }, Ge = me.exports, Ve;
|
|
6
6
|
function Qe() {
|
|
7
|
-
return
|
|
7
|
+
return Ve || (Ve = 1, (function(o, t) {
|
|
8
8
|
(function(i, s) {
|
|
9
9
|
o.exports = s();
|
|
10
10
|
})(Ge, function() {
|
|
11
|
-
var i = typeof window < "u" ? window : typeof
|
|
12
|
-
return
|
|
11
|
+
var i = typeof window < "u" ? window : typeof Le < "u" ? Le : typeof self < "u" ? self : {}, s = "Expected a function", e = NaN, a = "[object Symbol]", r = /^\s+|\s+$/g, n = /^[-+]0x[0-9a-f]+$/i, h = /^0b[01]+$/i, d = /^0o[0-7]+$/i, f = parseInt, p = typeof i == "object" && i && i.Object === Object && i, b = typeof self == "object" && self && self.Object === Object && self, C = p || b || Function("return this")(), I = Object.prototype.toString, k = Math.max, at = Math.min, ft = function() {
|
|
12
|
+
return C.Date.now();
|
|
13
13
|
};
|
|
14
|
-
function
|
|
15
|
-
var w,
|
|
16
|
-
if (typeof
|
|
17
|
-
function ct(
|
|
18
|
-
var
|
|
19
|
-
return w =
|
|
14
|
+
function Ht(g, m, y) {
|
|
15
|
+
var w, j, W, B, S, R, q = 0, ht = !1, F = !1, K = !0;
|
|
16
|
+
if (typeof g != "function") throw new TypeError(s);
|
|
17
|
+
function ct(E) {
|
|
18
|
+
var U = w, ut = j;
|
|
19
|
+
return w = j = void 0, q = E, B = g.apply(ut, U);
|
|
20
20
|
}
|
|
21
|
-
function zt(
|
|
22
|
-
var
|
|
23
|
-
return R === void 0 ||
|
|
21
|
+
function zt(E) {
|
|
22
|
+
var U = E - R;
|
|
23
|
+
return R === void 0 || U >= m || U < 0 || F && E - q >= W;
|
|
24
24
|
}
|
|
25
25
|
function St() {
|
|
26
|
-
var
|
|
27
|
-
if (zt(
|
|
28
|
-
S = setTimeout(St, (function(
|
|
29
|
-
var ut = m - (
|
|
30
|
-
return F ? at(ut,
|
|
31
|
-
})(
|
|
26
|
+
var E = ft();
|
|
27
|
+
if (zt(E)) return Pt(E);
|
|
28
|
+
S = setTimeout(St, (function(U) {
|
|
29
|
+
var ut = m - (U - R);
|
|
30
|
+
return F ? at(ut, W - (U - q)) : ut;
|
|
31
|
+
})(E));
|
|
32
32
|
}
|
|
33
|
-
function Pt(
|
|
34
|
-
return S = void 0, K && w ? ct(
|
|
33
|
+
function Pt(E) {
|
|
34
|
+
return S = void 0, K && w ? ct(E) : (w = j = void 0, B);
|
|
35
35
|
}
|
|
36
36
|
function st() {
|
|
37
|
-
var
|
|
38
|
-
if (w = arguments,
|
|
37
|
+
var E = ft(), U = zt(E);
|
|
38
|
+
if (w = arguments, j = this, R = E, U) {
|
|
39
39
|
if (S === void 0) return (function(ut) {
|
|
40
|
-
return q = ut, S = setTimeout(St, m), ht ? ct(ut) :
|
|
40
|
+
return q = ut, S = setTimeout(St, m), ht ? ct(ut) : B;
|
|
41
41
|
})(R);
|
|
42
42
|
if (F) return S = setTimeout(St, m), ct(R);
|
|
43
43
|
}
|
|
44
|
-
return S === void 0 && (S = setTimeout(St, m)),
|
|
44
|
+
return S === void 0 && (S = setTimeout(St, m)), B;
|
|
45
45
|
}
|
|
46
|
-
return m =
|
|
47
|
-
S !== void 0 && clearTimeout(S), q = 0, w = R =
|
|
46
|
+
return m = kt(m) || 0, Ct(y) && (ht = !!y.leading, W = (F = "maxWait" in y) ? k(kt(y.maxWait) || 0, m) : W, K = "trailing" in y ? !!y.trailing : K), st.cancel = function() {
|
|
47
|
+
S !== void 0 && clearTimeout(S), q = 0, w = R = j = S = void 0;
|
|
48
48
|
}, st.flush = function() {
|
|
49
|
-
return S === void 0 ?
|
|
49
|
+
return S === void 0 ? B : Pt(ft());
|
|
50
50
|
}, st;
|
|
51
51
|
}
|
|
52
|
-
function Ct(
|
|
53
|
-
var m = typeof
|
|
54
|
-
return !!
|
|
52
|
+
function Ct(g) {
|
|
53
|
+
var m = typeof g;
|
|
54
|
+
return !!g && (m == "object" || m == "function");
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
if (typeof
|
|
56
|
+
function kt(g) {
|
|
57
|
+
if (typeof g == "number") return g;
|
|
58
58
|
if ((function(w) {
|
|
59
|
-
return typeof w == "symbol" || /* @__PURE__ */ (function(
|
|
60
|
-
return !!
|
|
61
|
-
})(w) &&
|
|
62
|
-
})(
|
|
63
|
-
if (Ct(
|
|
64
|
-
var m = typeof
|
|
65
|
-
|
|
59
|
+
return typeof w == "symbol" || /* @__PURE__ */ (function(j) {
|
|
60
|
+
return !!j && typeof j == "object";
|
|
61
|
+
})(w) && I.call(w) == a;
|
|
62
|
+
})(g)) return e;
|
|
63
|
+
if (Ct(g)) {
|
|
64
|
+
var m = typeof g.valueOf == "function" ? g.valueOf() : g;
|
|
65
|
+
g = Ct(m) ? m + "" : m;
|
|
66
66
|
}
|
|
67
|
-
if (typeof
|
|
68
|
-
|
|
69
|
-
var y = h.test(
|
|
70
|
-
return y || d.test(
|
|
67
|
+
if (typeof g != "string") return g === 0 ? g : +g;
|
|
68
|
+
g = g.replace(r, "");
|
|
69
|
+
var y = h.test(g);
|
|
70
|
+
return y || d.test(g) ? f(g.slice(2), y ? 2 : 8) : n.test(g) ? e : +g;
|
|
71
71
|
}
|
|
72
|
-
var
|
|
73
|
-
var w = !0,
|
|
74
|
-
if (typeof
|
|
75
|
-
return Ct(y) && (w = "leading" in y ? !!y.leading : w,
|
|
76
|
-
}, l = "Expected a function", c = NaN, v = "[object Symbol]", _ = /^\s+|\s+$/g, O = /^[-+]0x[0-9a-f]+$/i, L = /^0b[01]+$/i, J = /^0o[0-7]+$/i, At = parseInt,
|
|
72
|
+
var It = function(g, m, y) {
|
|
73
|
+
var w = !0, j = !0;
|
|
74
|
+
if (typeof g != "function") throw new TypeError(s);
|
|
75
|
+
return Ct(y) && (w = "leading" in y ? !!y.leading : w, j = "trailing" in y ? !!y.trailing : j), Ht(g, m, { leading: w, maxWait: m, trailing: j });
|
|
76
|
+
}, l = "Expected a function", c = NaN, v = "[object Symbol]", _ = /^\s+|\s+$/g, O = /^[-+]0x[0-9a-f]+$/i, L = /^0b[01]+$/i, J = /^0o[0-7]+$/i, At = parseInt, H = typeof i == "object" && i && i.Object === Object && i, gt = typeof self == "object" && self && self.Object === Object && self, x = H || gt || Function("return this")(), A = Object.prototype.toString, P = Math.max, T = Math.min, Z = function() {
|
|
77
77
|
return x.Date.now();
|
|
78
78
|
};
|
|
79
|
-
function G(
|
|
80
|
-
var m = typeof
|
|
81
|
-
return !!
|
|
79
|
+
function G(g) {
|
|
80
|
+
var m = typeof g;
|
|
81
|
+
return !!g && (m == "object" || m == "function");
|
|
82
82
|
}
|
|
83
|
-
function $(
|
|
84
|
-
if (typeof
|
|
83
|
+
function $(g) {
|
|
84
|
+
if (typeof g == "number") return g;
|
|
85
85
|
if ((function(w) {
|
|
86
|
-
return typeof w == "symbol" || /* @__PURE__ */ (function(
|
|
87
|
-
return !!
|
|
86
|
+
return typeof w == "symbol" || /* @__PURE__ */ (function(j) {
|
|
87
|
+
return !!j && typeof j == "object";
|
|
88
88
|
})(w) && A.call(w) == v;
|
|
89
|
-
})(
|
|
90
|
-
if (G(
|
|
91
|
-
var m = typeof
|
|
92
|
-
|
|
89
|
+
})(g)) return c;
|
|
90
|
+
if (G(g)) {
|
|
91
|
+
var m = typeof g.valueOf == "function" ? g.valueOf() : g;
|
|
92
|
+
g = G(m) ? m + "" : m;
|
|
93
93
|
}
|
|
94
|
-
if (typeof
|
|
95
|
-
|
|
96
|
-
var y = L.test(
|
|
97
|
-
return y || J.test(
|
|
94
|
+
if (typeof g != "string") return g === 0 ? g : +g;
|
|
95
|
+
g = g.replace(_, "");
|
|
96
|
+
var y = L.test(g);
|
|
97
|
+
return y || J.test(g) ? At(g.slice(2), y ? 2 : 8) : O.test(g) ? c : +g;
|
|
98
98
|
}
|
|
99
|
-
var
|
|
100
|
-
var w,
|
|
101
|
-
if (typeof
|
|
102
|
-
function ct(
|
|
103
|
-
var
|
|
104
|
-
return w =
|
|
99
|
+
var Lt = function(g, m, y) {
|
|
100
|
+
var w, j, W, B, S, R, q = 0, ht = !1, F = !1, K = !0;
|
|
101
|
+
if (typeof g != "function") throw new TypeError(l);
|
|
102
|
+
function ct(E) {
|
|
103
|
+
var U = w, ut = j;
|
|
104
|
+
return w = j = void 0, q = E, B = g.apply(ut, U);
|
|
105
105
|
}
|
|
106
|
-
function zt(
|
|
107
|
-
var
|
|
108
|
-
return R === void 0 ||
|
|
106
|
+
function zt(E) {
|
|
107
|
+
var U = E - R;
|
|
108
|
+
return R === void 0 || U >= m || U < 0 || F && E - q >= W;
|
|
109
109
|
}
|
|
110
110
|
function St() {
|
|
111
|
-
var
|
|
112
|
-
if (zt(
|
|
113
|
-
S = setTimeout(St, (function(
|
|
114
|
-
var ut = m - (
|
|
115
|
-
return F ?
|
|
116
|
-
})(
|
|
111
|
+
var E = Z();
|
|
112
|
+
if (zt(E)) return Pt(E);
|
|
113
|
+
S = setTimeout(St, (function(U) {
|
|
114
|
+
var ut = m - (U - R);
|
|
115
|
+
return F ? T(ut, W - (U - q)) : ut;
|
|
116
|
+
})(E));
|
|
117
117
|
}
|
|
118
|
-
function Pt(
|
|
119
|
-
return S = void 0, K && w ? ct(
|
|
118
|
+
function Pt(E) {
|
|
119
|
+
return S = void 0, K && w ? ct(E) : (w = j = void 0, B);
|
|
120
120
|
}
|
|
121
121
|
function st() {
|
|
122
|
-
var
|
|
123
|
-
if (w = arguments,
|
|
122
|
+
var E = Z(), U = zt(E);
|
|
123
|
+
if (w = arguments, j = this, R = E, U) {
|
|
124
124
|
if (S === void 0) return (function(ut) {
|
|
125
|
-
return q = ut, S = setTimeout(St, m), ht ? ct(ut) :
|
|
125
|
+
return q = ut, S = setTimeout(St, m), ht ? ct(ut) : B;
|
|
126
126
|
})(R);
|
|
127
127
|
if (F) return S = setTimeout(St, m), ct(R);
|
|
128
128
|
}
|
|
129
|
-
return S === void 0 && (S = setTimeout(St, m)),
|
|
129
|
+
return S === void 0 && (S = setTimeout(St, m)), B;
|
|
130
130
|
}
|
|
131
|
-
return m = $(m) || 0, G(y) && (ht = !!y.leading,
|
|
132
|
-
S !== void 0 && clearTimeout(S), q = 0, w = R =
|
|
131
|
+
return m = $(m) || 0, G(y) && (ht = !!y.leading, W = (F = "maxWait" in y) ? P($(y.maxWait) || 0, m) : W, K = "trailing" in y ? !!y.trailing : K), st.cancel = function() {
|
|
132
|
+
S !== void 0 && clearTimeout(S), q = 0, w = R = j = S = void 0;
|
|
133
133
|
}, st.flush = function() {
|
|
134
|
-
return S === void 0 ?
|
|
134
|
+
return S === void 0 ? B : Pt(Z());
|
|
135
135
|
}, st;
|
|
136
136
|
}, Q = function() {
|
|
137
137
|
};
|
|
138
|
-
function
|
|
139
|
-
|
|
138
|
+
function D(g) {
|
|
139
|
+
g && g.forEach(function(m) {
|
|
140
140
|
var y = Array.prototype.slice.call(m.addedNodes), w = Array.prototype.slice.call(m.removedNodes);
|
|
141
|
-
if ((function
|
|
142
|
-
var
|
|
143
|
-
for (
|
|
144
|
-
if ((S = B
|
|
141
|
+
if ((function j(W) {
|
|
142
|
+
var B = void 0, S = void 0;
|
|
143
|
+
for (B = 0; B < W.length; B += 1)
|
|
144
|
+
if ((S = W[B]).dataset && S.dataset.aos || S.children && j(S.children)) return !0;
|
|
145
145
|
return !1;
|
|
146
146
|
})(y.concat(w))) return Q();
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function N() {
|
|
150
150
|
return window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
|
|
151
151
|
}
|
|
152
152
|
var rt = { isSupported: function() {
|
|
153
|
-
return !!
|
|
154
|
-
}, ready: function(
|
|
155
|
-
var y = window.document, w = new (
|
|
153
|
+
return !!N();
|
|
154
|
+
}, ready: function(g, m) {
|
|
155
|
+
var y = window.document, w = new (N())(D);
|
|
156
156
|
Q = m, w.observe(y.documentElement, { childList: !0, subtree: !0, removedNodes: !0 });
|
|
157
|
-
} }, _t = function(
|
|
158
|
-
if (!(
|
|
157
|
+
} }, _t = function(g, m) {
|
|
158
|
+
if (!(g instanceof m)) throw new TypeError("Cannot call a class as a function");
|
|
159
159
|
}, ot = /* @__PURE__ */ (function() {
|
|
160
|
-
function
|
|
160
|
+
function g(m, y) {
|
|
161
161
|
for (var w = 0; w < y.length; w++) {
|
|
162
|
-
var
|
|
163
|
-
|
|
162
|
+
var j = y[w];
|
|
163
|
+
j.enumerable = j.enumerable || !1, j.configurable = !0, "value" in j && (j.writable = !0), Object.defineProperty(m, j.key, j);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
return function(m, y, w) {
|
|
167
|
-
return y &&
|
|
167
|
+
return y && g(m.prototype, y), w && g(m, w), m;
|
|
168
168
|
};
|
|
169
|
-
})(), Ot = Object.assign || function(
|
|
169
|
+
})(), Ot = Object.assign || function(g) {
|
|
170
170
|
for (var m = 1; m < arguments.length; m++) {
|
|
171
171
|
var y = arguments[m];
|
|
172
|
-
for (var w in y) Object.prototype.hasOwnProperty.call(y, w) && (
|
|
172
|
+
for (var w in y) Object.prototype.hasOwnProperty.call(y, w) && (g[w] = y[w]);
|
|
173
173
|
}
|
|
174
|
-
return
|
|
174
|
+
return g;
|
|
175
175
|
}, pt = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i, z = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i, lt = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i, tt = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;
|
|
176
176
|
function et() {
|
|
177
177
|
return navigator.userAgent || navigator.vendor || window.opera || "";
|
|
178
178
|
}
|
|
179
179
|
var mt = new ((function() {
|
|
180
|
-
function
|
|
181
|
-
_t(this,
|
|
180
|
+
function g() {
|
|
181
|
+
_t(this, g);
|
|
182
182
|
}
|
|
183
|
-
return ot(
|
|
183
|
+
return ot(g, [{ key: "phone", value: function() {
|
|
184
184
|
var m = et();
|
|
185
185
|
return !(!pt.test(m) && !z.test(m.substr(0, 4)));
|
|
186
186
|
} }, { key: "mobile", value: function() {
|
|
@@ -190,156 +190,156 @@ function Qe() {
|
|
|
190
190
|
return this.mobile() && !this.phone();
|
|
191
191
|
} }, { key: "ie11", value: function() {
|
|
192
192
|
return "-ms-scroll-limit" in document.documentElement.style && "-ms-ime-align" in document.documentElement.style;
|
|
193
|
-
} }]),
|
|
194
|
-
})())(), bt = function(
|
|
193
|
+
} }]), g;
|
|
194
|
+
})())(), bt = function(g, m) {
|
|
195
195
|
var y = void 0;
|
|
196
|
-
return mt.ie11() ? (y = document.createEvent("CustomEvent")).initCustomEvent(
|
|
197
|
-
}, it = function(
|
|
198
|
-
return
|
|
199
|
-
return (function(w,
|
|
200
|
-
var
|
|
196
|
+
return mt.ie11() ? (y = document.createEvent("CustomEvent")).initCustomEvent(g, !0, !0, { detail: m }) : y = new CustomEvent(g, { detail: m }), document.dispatchEvent(y);
|
|
197
|
+
}, it = function(g) {
|
|
198
|
+
return g.forEach(function(m, y) {
|
|
199
|
+
return (function(w, j) {
|
|
200
|
+
var W = w.options, B = w.position, S = w.node, R = (w.data, function() {
|
|
201
201
|
w.animated && ((function(q, ht) {
|
|
202
202
|
ht && ht.forEach(function(F) {
|
|
203
203
|
return q.classList.remove(F);
|
|
204
204
|
});
|
|
205
|
-
})(S,
|
|
205
|
+
})(S, W.animatedClassNames), bt("aos:out", S), w.options.id && bt("aos:in:" + w.options.id, S), w.animated = !1);
|
|
206
206
|
});
|
|
207
|
-
|
|
207
|
+
W.mirror && j >= B.out && !W.once ? R() : j >= B.in ? w.animated || ((function(q, ht) {
|
|
208
208
|
ht && ht.forEach(function(F) {
|
|
209
209
|
return q.classList.add(F);
|
|
210
210
|
});
|
|
211
|
-
})(S,
|
|
211
|
+
})(S, W.animatedClassNames), bt("aos:in", S), w.options.id && bt("aos:in:" + w.options.id, S), w.animated = !0) : w.animated && !W.once && R();
|
|
212
212
|
})(m, window.pageYOffset);
|
|
213
213
|
});
|
|
214
|
-
}, yt = function(
|
|
215
|
-
for (var m = 0, y = 0;
|
|
214
|
+
}, yt = function(g) {
|
|
215
|
+
for (var m = 0, y = 0; g && !isNaN(g.offsetLeft) && !isNaN(g.offsetTop); ) m += g.offsetLeft - (g.tagName != "BODY" ? g.scrollLeft : 0), y += g.offsetTop - (g.tagName != "BODY" ? g.scrollTop : 0), g = g.offsetParent;
|
|
216
216
|
return { top: y, left: m };
|
|
217
|
-
},
|
|
218
|
-
var w =
|
|
217
|
+
}, M = function(g, m, y) {
|
|
218
|
+
var w = g.getAttribute("data-aos-" + m);
|
|
219
219
|
if (w !== void 0) {
|
|
220
220
|
if (w === "true") return !0;
|
|
221
221
|
if (w === "false") return !1;
|
|
222
222
|
}
|
|
223
223
|
return w || y;
|
|
224
|
-
},
|
|
225
|
-
return
|
|
226
|
-
var
|
|
224
|
+
}, Et = function(g, m) {
|
|
225
|
+
return g.forEach(function(y, w) {
|
|
226
|
+
var j = M(y.node, "mirror", m.mirror), W = M(y.node, "once", m.once), B = M(y.node, "id"), S = m.useClassNames && y.node.getAttribute("data-aos"), R = [m.animatedClassName].concat(S ? S.split(" ") : []).filter(function(q) {
|
|
227
227
|
return typeof q == "string";
|
|
228
228
|
});
|
|
229
229
|
m.initClassName && y.node.classList.add(m.initClassName), y.position = { in: (function(q, ht, F) {
|
|
230
|
-
var K = window.innerHeight, ct =
|
|
230
|
+
var K = window.innerHeight, ct = M(q, "anchor"), zt = M(q, "anchor-placement"), St = Number(M(q, "offset", zt ? 0 : ht)), Pt = zt || F, st = q;
|
|
231
231
|
ct && document.querySelectorAll(ct) && (st = document.querySelectorAll(ct)[0]);
|
|
232
|
-
var
|
|
232
|
+
var E = yt(st).top - K;
|
|
233
233
|
switch (Pt) {
|
|
234
234
|
case "top-bottom":
|
|
235
235
|
break;
|
|
236
236
|
case "center-bottom":
|
|
237
|
-
|
|
237
|
+
E += st.offsetHeight / 2;
|
|
238
238
|
break;
|
|
239
239
|
case "bottom-bottom":
|
|
240
|
-
|
|
240
|
+
E += st.offsetHeight;
|
|
241
241
|
break;
|
|
242
242
|
case "top-center":
|
|
243
|
-
|
|
243
|
+
E += K / 2;
|
|
244
244
|
break;
|
|
245
245
|
case "center-center":
|
|
246
|
-
|
|
246
|
+
E += K / 2 + st.offsetHeight / 2;
|
|
247
247
|
break;
|
|
248
248
|
case "bottom-center":
|
|
249
|
-
|
|
249
|
+
E += K / 2 + st.offsetHeight;
|
|
250
250
|
break;
|
|
251
251
|
case "top-top":
|
|
252
|
-
|
|
252
|
+
E += K;
|
|
253
253
|
break;
|
|
254
254
|
case "bottom-top":
|
|
255
|
-
|
|
255
|
+
E += K + st.offsetHeight;
|
|
256
256
|
break;
|
|
257
257
|
case "center-top":
|
|
258
|
-
|
|
258
|
+
E += K + st.offsetHeight / 2;
|
|
259
259
|
}
|
|
260
|
-
return
|
|
261
|
-
})(y.node, m.offset, m.anchorPlacement), out:
|
|
262
|
-
var F =
|
|
260
|
+
return E + St;
|
|
261
|
+
})(y.node, m.offset, m.anchorPlacement), out: j && (function(q, ht) {
|
|
262
|
+
var F = M(q, "anchor"), K = M(q, "offset", ht), ct = q;
|
|
263
263
|
return F && document.querySelectorAll(F) && (ct = document.querySelectorAll(F)[0]), yt(ct).top + ct.offsetHeight - K;
|
|
264
|
-
})(y.node, m.offset) }, y.options = { once:
|
|
265
|
-
}),
|
|
266
|
-
},
|
|
267
|
-
var
|
|
268
|
-
return Array.prototype.map.call(
|
|
264
|
+
})(y.node, m.offset) }, y.options = { once: W, mirror: j, animatedClassNames: R, id: B };
|
|
265
|
+
}), g;
|
|
266
|
+
}, Vt = function() {
|
|
267
|
+
var g = document.querySelectorAll("[data-aos]");
|
|
268
|
+
return Array.prototype.map.call(g, function(m) {
|
|
269
269
|
return { node: m };
|
|
270
270
|
});
|
|
271
|
-
}, dt = [], Yt = !1,
|
|
271
|
+
}, dt = [], Yt = !1, V = { offset: 120, delay: 0, easing: "ease", duration: 400, disable: !1, once: !1, mirror: !1, anchorPlacement: "top-bottom", startEvent: "DOMContentLoaded", animatedClassName: "aos-animate", initClassName: "aos-init", useClassNames: !1, disableMutationObserver: !1, throttleDelay: 99, debounceDelay: 50 }, qt = function() {
|
|
272
272
|
return document.all && !window.atob;
|
|
273
273
|
}, vt = function() {
|
|
274
|
-
arguments.length > 0 && arguments[0] !== void 0 && arguments[0] && (Yt = !0), Yt && (dt =
|
|
275
|
-
it(dt,
|
|
276
|
-
},
|
|
277
|
-
},
|
|
278
|
-
if (dt =
|
|
274
|
+
arguments.length > 0 && arguments[0] !== void 0 && arguments[0] && (Yt = !0), Yt && (dt = Et(dt, V), it(dt), window.addEventListener("scroll", It(function() {
|
|
275
|
+
it(dt, V.once);
|
|
276
|
+
}, V.throttleDelay)));
|
|
277
|
+
}, Dt = function() {
|
|
278
|
+
if (dt = Vt(), Nt(V.disable) || qt()) return Mt();
|
|
279
279
|
vt();
|
|
280
|
-
},
|
|
281
|
-
dt.forEach(function(
|
|
282
|
-
|
|
280
|
+
}, Mt = function() {
|
|
281
|
+
dt.forEach(function(g, m) {
|
|
282
|
+
g.node.removeAttribute("data-aos"), g.node.removeAttribute("data-aos-easing"), g.node.removeAttribute("data-aos-duration"), g.node.removeAttribute("data-aos-delay"), V.initClassName && g.node.classList.remove(V.initClassName), V.animatedClassName && g.node.classList.remove(V.animatedClassName);
|
|
283
283
|
});
|
|
284
|
-
},
|
|
285
|
-
return
|
|
284
|
+
}, Nt = function(g) {
|
|
285
|
+
return g === !0 || g === "mobile" && mt.mobile() || g === "phone" && mt.phone() || g === "tablet" && mt.tablet() || typeof g == "function" && g() === !0;
|
|
286
286
|
};
|
|
287
|
-
return { init: function(
|
|
288
|
-
return
|
|
287
|
+
return { init: function(g) {
|
|
288
|
+
return V = Ot(V, g), dt = Vt(), V.disableMutationObserver || rt.isSupported() || (console.info(`
|
|
289
289
|
aos: MutationObserver is not supported on this browser,
|
|
290
290
|
code mutations observing has been disabled.
|
|
291
291
|
You may have to call "refreshHard()" by yourself.
|
|
292
|
-
`),
|
|
292
|
+
`), V.disableMutationObserver = !0), V.disableMutationObserver || rt.ready("[data-aos]", Dt), Nt(V.disable) || qt() ? Mt() : (document.querySelector("body").setAttribute("data-aos-easing", V.easing), document.querySelector("body").setAttribute("data-aos-duration", V.duration), document.querySelector("body").setAttribute("data-aos-delay", V.delay), ["DOMContentLoaded", "load"].indexOf(V.startEvent) === -1 ? document.addEventListener(V.startEvent, function() {
|
|
293
293
|
vt(!0);
|
|
294
294
|
}) : window.addEventListener("load", function() {
|
|
295
295
|
vt(!0);
|
|
296
|
-
}),
|
|
297
|
-
}, refresh: vt, refreshHard:
|
|
296
|
+
}), V.startEvent === "DOMContentLoaded" && ["complete", "interactive"].indexOf(document.readyState) > -1 && vt(!0), window.addEventListener("resize", Lt(vt, V.debounceDelay, !0)), window.addEventListener("orientationchange", Lt(vt, V.debounceDelay, !0)), dt);
|
|
297
|
+
}, refresh: vt, refreshHard: Dt };
|
|
298
298
|
});
|
|
299
299
|
})(me)), me.exports;
|
|
300
300
|
}
|
|
301
301
|
var Ke = Qe();
|
|
302
|
-
const Je = /* @__PURE__ */
|
|
302
|
+
const Je = /* @__PURE__ */ je(Ke);
|
|
303
303
|
var Oe = { exports: {} }, Ye;
|
|
304
304
|
function ti() {
|
|
305
305
|
return Ye || (Ye = 1, (function(o) {
|
|
306
|
-
function t(d,
|
|
307
|
-
if (!(d instanceof
|
|
306
|
+
function t(d, f) {
|
|
307
|
+
if (!(d instanceof f)) throw new TypeError("Cannot call a class as a function");
|
|
308
308
|
}
|
|
309
|
-
function i(d,
|
|
310
|
-
return
|
|
309
|
+
function i(d, f, p) {
|
|
310
|
+
return f in d ? Object.defineProperty(d, f, { value: p, enumerable: !0, configurable: !0, writable: !0 }) : d[f] = p, d;
|
|
311
311
|
}
|
|
312
|
-
function s(d,
|
|
313
|
-
return h(d) || n(d,
|
|
312
|
+
function s(d, f) {
|
|
313
|
+
return h(d) || n(d, f) || a(d, f) || e();
|
|
314
314
|
}
|
|
315
315
|
function e() {
|
|
316
316
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
317
317
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
318
318
|
}
|
|
319
|
-
function a(d,
|
|
319
|
+
function a(d, f) {
|
|
320
320
|
if (d) {
|
|
321
|
-
if (typeof d == "string") return r(d,
|
|
321
|
+
if (typeof d == "string") return r(d, f);
|
|
322
322
|
var p = Object.prototype.toString.call(d).slice(8, -1);
|
|
323
|
-
return p === "Object" && d.constructor && (p = d.constructor.name), p === "Map" || p === "Set" ? Array.from(d) : p === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p) ? r(d,
|
|
323
|
+
return p === "Object" && d.constructor && (p = d.constructor.name), p === "Map" || p === "Set" ? Array.from(d) : p === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p) ? r(d, f) : void 0;
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
function r(d,
|
|
327
|
-
(
|
|
328
|
-
for (var p = 0, b = new Array(
|
|
326
|
+
function r(d, f) {
|
|
327
|
+
(f == null || f > d.length) && (f = d.length);
|
|
328
|
+
for (var p = 0, b = new Array(f); p < f; p++) b[p] = d[p];
|
|
329
329
|
return b;
|
|
330
330
|
}
|
|
331
|
-
function n(d,
|
|
331
|
+
function n(d, f) {
|
|
332
332
|
if (typeof Symbol < "u" && Symbol.iterator in Object(d)) {
|
|
333
|
-
var p = [], b = !0,
|
|
333
|
+
var p = [], b = !0, C = !1, I = void 0;
|
|
334
334
|
try {
|
|
335
|
-
for (var
|
|
335
|
+
for (var k, at = d[Symbol.iterator](); !(b = (k = at.next()).done) && (p.push(k.value), !f || p.length !== f); b = !0) ;
|
|
336
336
|
} catch (ft) {
|
|
337
|
-
|
|
337
|
+
C = !0, I = ft;
|
|
338
338
|
} finally {
|
|
339
339
|
try {
|
|
340
340
|
b || at.return == null || at.return();
|
|
341
341
|
} finally {
|
|
342
|
-
if (
|
|
342
|
+
if (C) throw I;
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
return p;
|
|
@@ -352,7 +352,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
352
352
|
function d(l) {
|
|
353
353
|
return ["elInY+elHeight", "elCenterY-".concat(l = 0 < arguments.length && l !== void 0 ? l : 30), "elCenterY", "elCenterY+".concat(l), "elOutY-elHeight"];
|
|
354
354
|
}
|
|
355
|
-
var
|
|
355
|
+
var f, p, b, C, I, k, at = { fadeInOut: function(l, c) {
|
|
356
356
|
return c = 1 < arguments.length && c !== void 0 ? c : 0, { opacity: [d(0 < arguments.length && l !== void 0 ? l : 30), [c, 1, 1, 1, c]] };
|
|
357
357
|
}, fadeIn: function(l, c) {
|
|
358
358
|
return { opacity: [["elInY+elHeight", 0 < arguments.length && l !== void 0 ? l : "elCenterY"], [1 < arguments.length && c !== void 0 ? c : 0, 1]] };
|
|
@@ -388,7 +388,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
388
388
|
return l = 0 < arguments.length && l !== void 0 ? l : 100, c = 1 < arguments.length && c !== void 0 ? c : 100, { translateX: [[0, +l, 2 * l, 3 * l, 4 * l], [0, c, 0, -c, 0], { modValue: 4 * l }] };
|
|
389
389
|
}, hueRotate: function(l, c) {
|
|
390
390
|
return l = 0 < arguments.length && l !== void 0 ? l : 600, { "hue-rotate": [[0, l], [0, 1 < arguments.length && c !== void 0 ? c : 360], { modValue: l }] };
|
|
391
|
-
} }, ft = (
|
|
391
|
+
} }, ft = (f = ["perspective", "scaleX", "scaleY", "scale", "skewX", "skewY", "skew", "rotateX", "rotateY", "rotate"], p = ["blur", "hue-rotate", "brightness"], b = ["translateX", "translateY", "translateZ"], C = ["perspective", "border-radius", "blur", "translateX", "translateY", "translateZ"], I = ["hue-rotate", "rotate", "rotateX", "rotateY", "skew", "skewX", "skewY"], k = { easeInQuad: function(l) {
|
|
392
392
|
return l * l;
|
|
393
393
|
}, easeOutQuad: function(l) {
|
|
394
394
|
return l * (2 - l);
|
|
@@ -416,7 +416,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
416
416
|
var c = 7.5625, v = 2.75;
|
|
417
417
|
return l < 1 / v ? c * l * l : l < 2 / v ? c * (l -= 1.5 / v) * l + 0.75 : l < 2.5 / v ? c * (l -= 2.25 / v) * l + 0.9375 : c * (l -= 2.625 / v) * l + 0.984375;
|
|
418
418
|
}, easeInBounce: function(l) {
|
|
419
|
-
return 1 -
|
|
419
|
+
return 1 - k.easeOutBounce(1 - l);
|
|
420
420
|
}, easeOutBack: function(l) {
|
|
421
421
|
return 1 + 2.70158 * Math.pow(l - 1, 3) + 1.70158 * Math.pow(l - 1, 2);
|
|
422
422
|
}, easeInBack: function(l) {
|
|
@@ -441,7 +441,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
441
441
|
}, 0) / 60), console.log("Average frame calculation time: ".concat(_, "ms")), c.debugData.frameLengths = []), c.frame++, window.requestAnimationFrame(c.onAnimationFrame);
|
|
442
442
|
}), i(this, "addDriver", function(v, _) {
|
|
443
443
|
var O = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : {};
|
|
444
|
-
c.drivers.push(new
|
|
444
|
+
c.drivers.push(new kt(v, _, O));
|
|
445
445
|
}), i(this, "removeDriver", function(v) {
|
|
446
446
|
c.drivers = c.drivers.filter(function(_) {
|
|
447
447
|
return _.name !== v;
|
|
@@ -453,25 +453,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
453
453
|
L.includes("lax_preset") && (L = L.replace("lax_preset_", ""), _.push(L));
|
|
454
454
|
});
|
|
455
455
|
var O = i({}, "scrollY", { presets: _ });
|
|
456
|
-
c.elements.push(new
|
|
456
|
+
c.elements.push(new It(".lax", c, v, O, 0, {}));
|
|
457
457
|
});
|
|
458
458
|
}), i(this, "addElements", function(v, _, O) {
|
|
459
459
|
document.querySelectorAll(v).forEach(function(L, J) {
|
|
460
|
-
c.elements.push(new
|
|
460
|
+
c.elements.push(new It(v, c, L, _, J, O));
|
|
461
461
|
});
|
|
462
462
|
}), i(this, "removeElements", function(v) {
|
|
463
463
|
c.elements = c.elements.filter(function(_) {
|
|
464
464
|
return _.selector !== v;
|
|
465
465
|
});
|
|
466
466
|
}), i(this, "addElement", function(v, _, O) {
|
|
467
|
-
c.elements.push(new
|
|
467
|
+
c.elements.push(new It("", c, v, _, 0, O));
|
|
468
468
|
}), i(this, "removeElement", function(v) {
|
|
469
469
|
c.elements = c.elements.filter(function(_) {
|
|
470
470
|
return _.domElement !== v;
|
|
471
471
|
});
|
|
472
472
|
});
|
|
473
473
|
}());
|
|
474
|
-
function
|
|
474
|
+
function Ht(l, c) {
|
|
475
475
|
if (Array.isArray(l)) return l;
|
|
476
476
|
for (var v = Object.keys(l).map(function(J) {
|
|
477
477
|
return parseInt(J);
|
|
@@ -486,76 +486,76 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
486
486
|
}
|
|
487
487
|
return l[_];
|
|
488
488
|
}
|
|
489
|
-
function Ct(l,
|
|
490
|
-
var _ =
|
|
489
|
+
function Ct(l, T, v) {
|
|
490
|
+
var _ = T.width, O = T.height, x = T.x, P = T.y;
|
|
491
491
|
if (typeof l == "number") return l;
|
|
492
|
-
var L, J = document.body.scrollHeight, At = document.body.scrollWidth,
|
|
493
|
-
return Function("return ".concat(l.replace(/screenWidth/g,
|
|
492
|
+
var L, J = document.body.scrollHeight, At = document.body.scrollWidth, H = window.innerWidth, gt = window.innerHeight, A = s((L = window.pageXOffset !== void 0, A = (document.compatMode || "") === "CSS1Compat", T = L ? window.pageXOffset : (A ? document.documentElement : document.body).scrollLeft, [L ? window.pageYOffset : (A ? document.documentElement : document.body).scrollTop, T]), 2), T = A[0], x = x + A[1], A = x + _, P = P + T, T = P + O;
|
|
493
|
+
return Function("return ".concat(l.replace(/screenWidth/g, H).replace(/screenHeight/g, gt).replace(/pageHeight/g, J).replace(/pageWidth/g, At).replace(/elWidth/g, _).replace(/elHeight/g, O).replace(/elInY/g, P - gt).replace(/elOutY/g, T).replace(/elCenterY/g, P + O / 2 - gt / 2).replace(/elInX/g, x - H).replace(/elOutX/g, A).replace(/elCenterX/g, x + _ / 2 - H / 2).replace(/index/g, v)))();
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function kt(l, c) {
|
|
496
496
|
var v = this, _ = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : {};
|
|
497
|
-
t(this,
|
|
497
|
+
t(this, kt), i(this, "getValueFn", void 0), i(this, "name", ""), i(this, "lastValue", 0), i(this, "frameStep", 1), i(this, "m1", 0), i(this, "m2", 0), i(this, "inertia", 0), i(this, "inertiaEnabled", !1), i(this, "getValue", function(O) {
|
|
498
498
|
var L = v.lastValue;
|
|
499
499
|
return O % v.frameStep == 0 && (L = v.getValueFn(O)), v.inertiaEnabled && (O = L - v.lastValue, v.m1 = 0.8 * v.m1 + O * (1 - 0.8), v.m2 = 0.8 * v.m2 + v.m1 * (1 - 0.8), v.inertia = Math.round(5e3 * v.m2) / 15e3), v.lastValue = L, [v.lastValue, v.inertia];
|
|
500
500
|
}), this.name = l, this.getValueFn = c, Object.keys(_).forEach(function(O) {
|
|
501
501
|
v[O] = _[O];
|
|
502
502
|
}), this.lastValue = this.getValueFn(0);
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function It(l, c, v, _) {
|
|
505
505
|
var O = this, L = 4 < arguments.length && arguments[4] !== void 0 ? arguments[4] : 0, At = 5 < arguments.length && arguments[5] !== void 0 ? arguments[5] : {};
|
|
506
|
-
t(this,
|
|
506
|
+
t(this, It), i(this, "domElement", void 0), i(this, "transformsData", void 0), i(this, "styles", {}), i(this, "selector", ""), i(this, "groupIndex", 0), i(this, "laxInstance", void 0), i(this, "onUpdate", void 0), i(this, "update", function(H, gt) {
|
|
507
507
|
var x, A = O.transforms, P = {};
|
|
508
508
|
for (x in A) {
|
|
509
|
-
var
|
|
510
|
-
|
|
511
|
-
var
|
|
512
|
-
for (
|
|
513
|
-
var Q, ot = s(
|
|
509
|
+
var T = A[x];
|
|
510
|
+
H[x] || console.error("No lax driver with name: ", x);
|
|
511
|
+
var Z, G = s(H[x], 2), $ = G[0], Lt = G[1];
|
|
512
|
+
for (Z in T) {
|
|
513
|
+
var Q, ot = s(T[Z], 3), D = ot[0], N = ot[1], Ot = ot[2], z = Ot === void 0 ? {} : Ot, rt = z.modValue, pt = z.frameStep, _t = pt === void 0 ? 1 : pt, lt = z.easing, ot = z.inertia, Ot = z.inertiaMode, pt = z.cssFn, z = z.cssUnit, z = z === void 0 ? "" : z, lt = k[lt];
|
|
514
514
|
gt % _t == 0 && (lt = (function(tt, et, mt, bt) {
|
|
515
515
|
var it = 0;
|
|
516
|
-
if (tt.forEach(function(
|
|
517
|
-
|
|
516
|
+
if (tt.forEach(function(Et) {
|
|
517
|
+
Et < mt && it++;
|
|
518
518
|
}), it <= 0) return et[0];
|
|
519
519
|
if (it >= tt.length) return et[tt.length - 1];
|
|
520
|
-
var yt,
|
|
521
|
-
return bt && (
|
|
522
|
-
})(
|
|
520
|
+
var yt, M = (M = tt[yt = it - 1], tt = tt[it], (mt - M) / (tt - M));
|
|
521
|
+
return bt && (M = bt(M)), yt = et[yt], et = et[it], yt * (1 - (M = M)) + et * M;
|
|
522
|
+
})(D, N, rt ? $ % rt : $, lt), ot && (Q = Lt * ot, Ot === "absolute" && (Q = Math.abs(Q)), lt += Q), Q = (z || C.includes(Z) ? "px" : I.includes(Z) ? "deg" : "") == "px" ? 0 : 3, Q = lt.toFixed(Q), P[Z] = pt ? pt(Q, O.domElement) : Q + z);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
|
-
O.applyStyles(P), O.onUpdate && O.onUpdate(
|
|
525
|
+
O.applyStyles(P), O.onUpdate && O.onUpdate(H, O.domElement);
|
|
526
526
|
}), i(this, "calculateTransforms", function() {
|
|
527
527
|
O.transforms = {};
|
|
528
|
-
var
|
|
529
|
-
for (
|
|
530
|
-
var A = O.transformsData[x], P = {},
|
|
531
|
-
(
|
|
532
|
-
var $,
|
|
533
|
-
|
|
528
|
+
var H, gt = O.laxInstance.windowWidth;
|
|
529
|
+
for (H in O.transformsData) (function(x) {
|
|
530
|
+
var A = O.transformsData[x], P = {}, T = A.presets;
|
|
531
|
+
(T === void 0 ? [] : T).forEach(function(D) {
|
|
532
|
+
var $, N = s(D.split(":"), 3), Lt = N[0], Q = N[1], D = N[2], N = window.lax.presets[Lt];
|
|
533
|
+
N ? ($ = N(Q, D), Object.keys($).forEach(function(rt) {
|
|
534
534
|
A[rt] = $[rt];
|
|
535
|
-
})) : console.error("Lax preset cannot be found with name: ",
|
|
535
|
+
})) : console.error("Lax preset cannot be found with name: ", Lt);
|
|
536
536
|
}), delete A.presets;
|
|
537
|
-
for (var
|
|
538
|
-
var $ = s(A[G], 3),
|
|
539
|
-
return Ct(
|
|
540
|
-
}),
|
|
541
|
-
return Ct(
|
|
537
|
+
for (var Z in A) (function(G) {
|
|
538
|
+
var $ = s(A[G], 3), D = $[0], Q = D === void 0 ? [-1e9, 1e9] : D, D = $[1], D = D === void 0 ? [-1e9, 1e9] : D, $ = $[2], $ = $ === void 0 ? {} : $, Lt = O.domElement.getBoundingClientRect(), Q = Ht(Q, gt).map(function(N) {
|
|
539
|
+
return Ct(N, Lt, O.groupIndex);
|
|
540
|
+
}), D = Ht(D, gt).map(function(N) {
|
|
541
|
+
return Ct(N, Lt, O.groupIndex);
|
|
542
542
|
});
|
|
543
|
-
P[G] = [Q,
|
|
544
|
-
})(
|
|
543
|
+
P[G] = [Q, D, $];
|
|
544
|
+
})(Z);
|
|
545
545
|
O.transforms[x] = P;
|
|
546
|
-
})(
|
|
547
|
-
}), i(this, "applyStyles", function(
|
|
548
|
-
var gt, x, A, P = (gt =
|
|
549
|
-
var
|
|
550
|
-
b.includes(
|
|
546
|
+
})(H);
|
|
547
|
+
}), i(this, "applyStyles", function(H) {
|
|
548
|
+
var gt, x, A, P = (gt = H, x = { transform: "", filter: "" }, A = { translateX: 1e-5, translateY: 1e-5, translateZ: 1e-5 }, Object.keys(gt).forEach(function(T) {
|
|
549
|
+
var Z = gt[T], G = C.includes(T) ? "px" : I.includes(T) ? "deg" : "";
|
|
550
|
+
b.includes(T) ? A[T] = Z : f.includes(T) ? x.transform += "".concat(T, "(").concat(Z).concat(G, ") ") : p.includes(T) ? x.filter += "".concat(T, "(").concat(Z).concat(G, ") ") : x[T] = "".concat(Z).concat(G, " ");
|
|
551
551
|
}), x.transform = "translate3d(".concat(A.translateX, "px, ").concat(A.translateY, "px, ").concat(A.translateZ, "px) ").concat(x.transform), x);
|
|
552
|
-
Object.keys(P).forEach(function(
|
|
553
|
-
O.domElement.style.setProperty(
|
|
552
|
+
Object.keys(P).forEach(function(T) {
|
|
553
|
+
O.domElement.style.setProperty(T, P[T]);
|
|
554
554
|
});
|
|
555
555
|
}), this.selector = l, this.laxInstance = c, this.domElement = v, this.transformsData = _, this.groupIndex = L;
|
|
556
556
|
var J = (L = At.style) === void 0 ? {} : L, At = At.onUpdate;
|
|
557
|
-
Object.keys(J).forEach(function(
|
|
558
|
-
v.style.setProperty(
|
|
557
|
+
Object.keys(J).forEach(function(H) {
|
|
558
|
+
v.style.setProperty(H, J[H]);
|
|
559
559
|
}), At && (this.onUpdate = At), this.calculateTransforms();
|
|
560
560
|
}
|
|
561
561
|
o.exports !== void 0 ? o.exports = ft : window.lax = ft;
|
|
@@ -563,7 +563,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
563
563
|
})(Oe)), Oe.exports;
|
|
564
564
|
}
|
|
565
565
|
var ei = ti();
|
|
566
|
-
const
|
|
566
|
+
const Zt = /* @__PURE__ */ je(ei);
|
|
567
567
|
class ii {
|
|
568
568
|
constructor(t = {}) {
|
|
569
569
|
const i = {
|
|
@@ -572,14 +572,14 @@ class ii {
|
|
|
572
572
|
this.settings = Object.assign(this, i, t), this.elements = [];
|
|
573
573
|
}
|
|
574
574
|
init() {
|
|
575
|
-
|
|
575
|
+
Zt.init(), Zt.addDriver("scrollY", function() {
|
|
576
576
|
return window.scrollY;
|
|
577
|
-
}), this.refresh(), this.lax =
|
|
577
|
+
}), this.refresh(), this.lax = Zt, Object.assign(this, Zt);
|
|
578
578
|
}
|
|
579
579
|
refresh() {
|
|
580
580
|
let t = !1;
|
|
581
581
|
document.body.hasAttribute("data-skrollrr-off") && (t = !0), this.elements.forEach((e) => {
|
|
582
|
-
|
|
582
|
+
Zt.removeElement(e), e.style && (e.style.transition && (e.style.transition = ""), e.style.transform && (e.style.transform = ""));
|
|
583
583
|
}), this.elements = [];
|
|
584
584
|
let i = window.innerWidth;
|
|
585
585
|
document.querySelectorAll("[data-bottom-top],[data-center],[data-center-bottom],[data-100-top],[data-50-top],[data-top],[data-top-bottom],[data-center-top],[data--300-bottom],[data--150-bottom],[data--50-bottom],[data-bottom],[data-100-bottom],[data-150-bottom],[data-400-bottom],[data--400-bottom],[data--200-bottom],[data--100-bottom],[data-50-bottom],[data-200-bottom],[data-300-bottom],[data-in],[data-in-150],[data-in-300],[data-cen--150],[data-cen],[data-cen-150],[data-out--300],[data-out--150],[data-out][data-t],[data-t-100],[data-t-200],[data-t-300],[data-t-400],[data-t-500],[data-t-600],[data-t-700],[data-t-800],[data-t-900],[data-t-1000],[data-t-1100],[data-t-1200],[data-t-1300],[data-t-1400],[data-t-1500],[data-t-1600],[data-t-1700],[data-t-1800],[data-t-1900],[data-t-2000],[data-t-2100],[data-t-2200],[data-t-2300],[data-t-2400],[data-t-2500],[data-t-2600],[data-t-2700],[data-t-2800]").forEach((e) => {
|
|
@@ -589,18 +589,18 @@ class ii {
|
|
|
589
589
|
return;
|
|
590
590
|
}
|
|
591
591
|
e.style.transform = "";
|
|
592
|
-
let r = this.getObjVal(e, "data-top-bottom"), n = this.getObjVal(e, "data-top"), h = this.getObjVal(e, "data-50-top"), d = this.getObjVal(e, "data-100-top"),
|
|
593
|
-
e.hasAttribute("data-xs") && (
|
|
592
|
+
let r = this.getObjVal(e, "data-top-bottom"), n = this.getObjVal(e, "data-top"), h = this.getObjVal(e, "data-50-top"), d = this.getObjVal(e, "data-100-top"), f = this.getObjVal(e, "data-center-bottom"), p = this.getObjVal(e, "data-center"), b = this.getObjVal(e, "data-center-top"), C = this.getObjVal(e, "data--400-bottom"), I = this.getObjVal(e, "data--300-bottom"), k = this.getObjVal(e, "data--200-bottom"), at = this.getObjVal(e, "data--150-bottom"), ft = this.getObjVal(e, "data--100-bottom"), Ht = this.getObjVal(e, "data--50-bottom"), Ct = this.getObjVal(e, "data-bottom"), kt = this.getObjVal(e, "data-50-bottom"), It = this.getObjVal(e, "data-100-bottom"), l = this.getObjVal(e, "data-150-bottom"), c = this.getObjVal(e, "data-200-bottom"), v = this.getObjVal(e, "data-300-bottom"), _ = this.getObjVal(e, "data-400-bottom"), O = this.getObjVal(e, "data-bottom-top"), L = this.getObjVal(e, "data-in"), J = this.getObjVal(e, "data-in-150"), At = this.getObjVal(e, "data-in-300"), H = this.getObjVal(e, "data-cen--150"), gt = this.getObjVal(e, "data-cen"), x = this.getObjVal(e, "data-cen-150"), A = this.getObjVal(e, "data-out--300"), P = this.getObjVal(e, "data-out--150"), T = this.getObjVal(e, "data-out"), Z = !1;
|
|
593
|
+
e.hasAttribute("data-xs") && (Z = !0);
|
|
594
594
|
let G = !1;
|
|
595
595
|
e.hasAttribute("data-sm") && (G = !0);
|
|
596
596
|
let $ = !1;
|
|
597
597
|
e.hasAttribute("data-md") && ($ = !0), e.hasAttribute("data-lg"), e.hasAttribute("data-xl");
|
|
598
|
-
let
|
|
599
|
-
(i > 1280 || i > 970 && i <= 1280 && !$ || i > 760 && i <= 970 && !G || i <= 760 && !
|
|
600
|
-
let
|
|
601
|
-
Ft < 730 ? (
|
|
598
|
+
let Lt = {}, Q = {}, D = {}, N = {}, rt = {}, _t = {}, ot = {}, Ot = {}, pt = {}, z = {}, lt = {}, tt = {}, et = {}, mt = {}, bt = {}, it = {}, yt = {}, M = {}, Et = {}, Vt = {}, dt = {}, Yt = {}, V = {}, qt = {}, vt = {}, Dt = {}, Mt = {}, Nt = {}, g = {}, m = {}, y = {}, w = {}, j = {};
|
|
599
|
+
(i > 1280 || i > 970 && i <= 1280 && !$ || i > 760 && i <= 970 && !G || i <= 760 && !Z) && (D = this.getObjVal(e, "data-t"), N = this.getObjVal(e, "data-t-100"), rt = this.getObjVal(e, "data-t-200"), _t = this.getObjVal(e, "data-t-300"), ot = this.getObjVal(e, "data-t-400"), Ot = this.getObjVal(e, "data-t-500"), pt = this.getObjVal(e, "data-t-600"), z = this.getObjVal(e, "data-t-700"), lt = this.getObjVal(e, "data-t-800"), tt = this.getObjVal(e, "data-t-900"), et = this.getObjVal(e, "data-t-1000"), mt = this.getObjVal(e, "data-t-1100"), bt = this.getObjVal(e, "data-t-1200"), it = this.getObjVal(e, "data-t-1300"), yt = this.getObjVal(e, "data-t-1400"), M = this.getObjVal(e, "data-t-1500"), Et = this.getObjVal(e, "data-t-1600"), Vt = this.getObjVal(e, "data-t-1700"), dt = this.getObjVal(e, "data-t-1800"), Yt = this.getObjVal(e, "data-t-1900"), V = this.getObjVal(e, "data-t-2000"), qt = this.getObjVal(e, "data-t-2100"), vt = this.getObjVal(e, "data-t-2200"), Dt = this.getObjVal(e, "data-t-2300"), Mt = this.getObjVal(e, "data-t-2400"), Nt = this.getObjVal(e, "data-t-2500"), g = this.getObjVal(e, "data-t-2600"), m = this.getObjVal(e, "data-t-2700"), y = this.getObjVal(e, "data-t-2800")), i > 970 && i <= 1280 && $ && (e.hasAttribute("data-md-t") && (D = this.getObjVal(e, "data-md-t")), e.hasAttribute("data-md-t-100") && (N = this.getObjVal(e, "data-md-t-100")), e.hasAttribute("data-md-t-200") && (rt = this.getObjVal(e, "data-md-t-200")), e.hasAttribute("data-md-t-300") && (_t = this.getObjVal(e, "data-md-t-300")), e.hasAttribute("data-md-t-400") && (ot = this.getObjVal(e, "data-md-t-400")), e.hasAttribute("data-md-t-500") && (Ot = this.getObjVal(e, "data-md-t-500")), e.hasAttribute("data-md-t-600") && (pt = this.getObjVal(e, "data-md-t-600")), e.hasAttribute("data-md-t-700") && (z = this.getObjVal(e, "data-md-t-700")), e.hasAttribute("data-md-t-800") && (lt = this.getObjVal(e, "data-md-t-800")), e.hasAttribute("data-md-t-900") && (tt = this.getObjVal(e, "data-md-t-900")), e.hasAttribute("data-md-t-1000") && (et = this.getObjVal(e, "data-md-t-1000")), e.hasAttribute("data-md-t-1100") && (mt = this.getObjVal(e, "data-md-t-1100")), e.hasAttribute("data-md-t-1200") && (bt = this.getObjVal(e, "data-md-t-1200")), e.hasAttribute("data-md-t-1300") && (it = this.getObjVal(e, "data-md-t-1300")), e.hasAttribute("data-md-t-1400") && (yt = this.getObjVal(e, "data-md-t-1400")), e.hasAttribute("data-md-t-1500") && (M = this.getObjVal(e, "data-md-t-1500")), e.hasAttribute("data-md-t-1600") && (Et = this.getObjVal(e, "data-md-t-1600")), e.hasAttribute("data-md-t-1700") && (Vt = this.getObjVal(e, "data-md-t-1700")), e.hasAttribute("data-md-t-1800") && (dt = this.getObjVal(e, "data-md-t-1800")), e.hasAttribute("data-md-t-1900") && (Yt = this.getObjVal(e, "data-md-t-1900")), e.hasAttribute("data-md-t-2000") && (V = this.getObjVal(e, "data-md-t-2000")), e.hasAttribute("data-md-t-2100") && (qt = this.getObjVal(e, "data-md-t-2100")), e.hasAttribute("data-md-t-2200") && (vt = this.getObjVal(e, "data-md-t-2200")), e.hasAttribute("data-md-t-2300") && (Dt = this.getObjVal(e, "data-md-t-2300")), e.hasAttribute("data-md-t-2400") && (Mt = this.getObjVal(e, "data-md-t-2400")), e.hasAttribute("data-md-t-2500") && (Nt = this.getObjVal(e, "data-md-t-2500")), e.hasAttribute("data-md-t-2600") && (g = this.getObjVal(e, "data-md-t-2600")), e.hasAttribute("data-md-t-2700") && (m = this.getObjVal(e, "data-md-t-2700")), e.hasAttribute("data-md-t-2800") && (y = this.getObjVal(e, "data-md-t-2800"))), i <= 970 && e.hasAttribute("m-data-out") && (T = this.getObjVal(e, "m-data-out")), (i > 760 && i <= 970 && G || i <= 760 && !Z && G) && (e.hasAttribute("data-sm-t") && (D = this.getObjVal(e, "data-sm-t")), e.hasAttribute("data-sm-t-100") && (N = this.getObjVal(e, "data-sm-t-100")), e.hasAttribute("data-sm-t-200") && (rt = this.getObjVal(e, "data-sm-t-200")), e.hasAttribute("data-sm-t-300") && (_t = this.getObjVal(e, "data-sm-t-300")), e.hasAttribute("data-sm-t-400") && (ot = this.getObjVal(e, "data-sm-t-400")), e.hasAttribute("data-sm-t-500") && (Ot = this.getObjVal(e, "data-sm-t-500")), e.hasAttribute("data-sm-t-600") && (pt = this.getObjVal(e, "data-sm-t-600")), e.hasAttribute("data-sm-t-700") && (z = this.getObjVal(e, "data-sm-t-700")), e.hasAttribute("data-sm-t-800") && (lt = this.getObjVal(e, "data-sm-t-800")), e.hasAttribute("data-sm-t-900") && (tt = this.getObjVal(e, "data-sm-t-900")), e.hasAttribute("data-sm-t-1000") && (et = this.getObjVal(e, "data-sm-t-1000")), e.hasAttribute("data-sm-t-1100") && (mt = this.getObjVal(e, "data-sm-t-1100")), e.hasAttribute("data-sm-t-1200") && (bt = this.getObjVal(e, "data-sm-t-1200")), e.hasAttribute("data-sm-t-1300") && (it = this.getObjVal(e, "data-sm-t-1300")), e.hasAttribute("data-sm-t-1400") && (yt = this.getObjVal(e, "data-sm-t-1400")), e.hasAttribute("data-sm-t-1500") && (M = this.getObjVal(e, "data-sm-t-1500")), e.hasAttribute("data-sm-t-1600") && (Et = this.getObjVal(e, "data-sm-t-1600")), e.hasAttribute("data-sm-t-1700") && (Vt = this.getObjVal(e, "data-sm-t-1700")), e.hasAttribute("data-sm-t-1800") && (dt = this.getObjVal(e, "data-sm-t-1800")), e.hasAttribute("data-sm-t-1900") && (Yt = this.getObjVal(e, "data-sm-t-1900")), e.hasAttribute("data-sm-t-2000") && (V = this.getObjVal(e, "data-sm-t-2000")), e.hasAttribute("data-sm-t-2100") && (qt = this.getObjVal(e, "data-sm-t-2100")), e.hasAttribute("data-sm-t-2200") && (vt = this.getObjVal(e, "data-sm-t-2200")), e.hasAttribute("data-sm-t-2300") && (Dt = this.getObjVal(e, "data-sm-t-2300")), e.hasAttribute("data-sm-t-2400") && (Mt = this.getObjVal(e, "data-sm-t-2400")), e.hasAttribute("data-sm-t-2500") && (Nt = this.getObjVal(e, "data-sm-t-2500")), e.hasAttribute("data-sm-t-2600") && (g = this.getObjVal(e, "data-sm-t-2600")), e.hasAttribute("data-sm-t-2700") && (m = this.getObjVal(e, "data-sm-t-2700")), e.hasAttribute("data-sm-t-2800") && (y = this.getObjVal(e, "data-sm-t-2800"))), i <= 414 && Z && (e.hasAttribute("data-xs-t") && (D = this.getObjVal(e, "data-xs-t")), e.hasAttribute("data-xs-t-100") && (N = this.getObjVal(e, "data-xs-t-100")), e.hasAttribute("data-xs-t-200") && (rt = this.getObjVal(e, "data-xs-t-200")), e.hasAttribute("data-xs-t-300") && (_t = this.getObjVal(e, "data-xs-t-300")), e.hasAttribute("data-xs-t-400") && (ot = this.getObjVal(e, "data-xs-t-400")), e.hasAttribute("data-xs-t-500") && (Ot = this.getObjVal(e, "data-xs-t-500")), e.hasAttribute("data-xs-t-600") && (pt = this.getObjVal(e, "data-xs-t-600")), e.hasAttribute("data-xs-t-700") && (z = this.getObjVal(e, "data-xs-t-700")), e.hasAttribute("data-xs-t-800") && (lt = this.getObjVal(e, "data-xs-t-800")), e.hasAttribute("data-xs-t-900") && (tt = this.getObjVal(e, "data-xs-t-900")), e.hasAttribute("data-xs-t-1000") && (et = this.getObjVal(e, "data-xs-t-1000")), e.hasAttribute("data-xs-t-1100") && (mt = this.getObjVal(e, "data-xs-t-1100")), e.hasAttribute("data-xs-t-1200") && (bt = this.getObjVal(e, "data-xs-t-1200")), e.hasAttribute("data-xs-t-1300") && (it = this.getObjVal(e, "data-xs-t-1300")), e.hasAttribute("data-xs-t-1400") && (yt = this.getObjVal(e, "data-xs-t-1400")), e.hasAttribute("data-xs-t-1500") && (M = this.getObjVal(e, "data-xs-t-1500")), e.hasAttribute("data-xs-t-1600") && (Et = this.getObjVal(e, "data-xs-t-1600")), e.hasAttribute("data-xs-t-1700") && (Vt = this.getObjVal(e, "data-xs-t-1700")), e.hasAttribute("data-xs-t-1800") && (dt = this.getObjVal(e, "data-xs-t-1800")), e.hasAttribute("data-xs-t-1900") && (Yt = this.getObjVal(e, "data-xs-t-1900")), e.hasAttribute("data-xs-t-2000") && (V = this.getObjVal(e, "data-xs-t-2000")), e.hasAttribute("data-xs-t-2100") && (qt = this.getObjVal(e, "data-xs-t-2100")), e.hasAttribute("data-xs-t-2200") && (vt = this.getObjVal(e, "data-xs-t-2200")), e.hasAttribute("data-xs-t-2300") && (Dt = this.getObjVal(e, "data-xs-t-2300")), e.hasAttribute("data-xs-t-2400") && (Mt = this.getObjVal(e, "data-xs-t-2400")), e.hasAttribute("data-xs-t-2500") && (Nt = this.getObjVal(e, "data-xs-t-2500")), e.hasAttribute("data-xs-t-2600") && (g = this.getObjVal(e, "data-xs-t-2600")), e.hasAttribute("data-xs-t-2700") && (m = this.getObjVal(e, "data-xs-t-2700")), e.hasAttribute("data-xs-t-2800") && (y = this.getObjVal(e, "data-xs-t-2800")));
|
|
600
|
+
let W = D, B = N, S = rt, R = _t, q = ot, ht = Ot, F = pt, K = z, ct = lt, zt = tt, St = et, Pt = mt, st = bt, E = it, U = yt, ut = M, te = Et, ee = Vt, ie = dt, se = Yt, ne = V, ae = qt, re = vt, oe = Dt, le = Mt, de = Nt, he = g, ce = m, ue = y, Ft = window.innerHeight;
|
|
601
|
+
Ft < 730 ? (Lt = W, Q = B, D = S, N = R, rt = q, _t = ht, ot = F, Ot = K, pt = ct, z = zt, lt = St, tt = Pt, et = st, mt = E, bt = U, it = ut, yt = te, M = ee, Et = ie, Vt = se, dt = ne, Yt = ae, V = re, qt = oe, vt = le, Dt = de, Mt = he, Nt = ce, g = ue, m = {}, y = {}) : Ft >= 730 && Ft < 790 ? (Q = W, D = B, N = S, rt = R, _t = q, ot = ht, Ot = F, pt = K, z = ct, lt = zt, tt = St, et = Pt, mt = st, bt = E, it = U, yt = ut, M = te, Et = ee, Vt = ie, dt = se, Yt = ne, V = ae, qt = re, vt = oe, Dt = le, Mt = de, Nt = he, g = ce, m = ue, y = {}) : Ft >= 790 && Ft < 840 || (Ft >= 840 && Ft < 1125 ? (D = {}, N = W, rt = B, _t = S, ot = R, Ot = q, pt = ht, z = F, lt = K, tt = ct, et = zt, mt = St, bt = Pt, it = st, yt = E, M = U, Et = ut, Vt = te, dt = ee, Yt = ie, V = se, qt = ne, vt = ae, Dt = re, Mt = oe, Nt = le, g = de, m = he, y = ce, w = ue) : (D = {}, N = {}, rt = W, _t = B, ot = S, Ot = R, pt = q, z = ht, lt = F, tt = K, et = ct, mt = zt, bt = St, it = Pt, yt = st, M = E, Et = U, Vt = ut, dt = te, Yt = ee, V = ie, qt = se, vt = ne, Dt = ae, Mt = re, Nt = oe, g = le, m = de, y = he, w = ce, j = ue));
|
|
602
602
|
let u = {};
|
|
603
|
-
Object.keys(O).length !== 0 && (u = this.parseObj(O, "elInY", u)), Object.keys(_).length !== 0 && (u = this.parseObj(_, "elInY+50", u)), Object.keys(v).length !== 0 && (u = this.parseObj(v, "elInY+100", u)), Object.keys(c).length !== 0 && (u = this.parseObj(c, "elInY+150", u)), Object.keys(l).length !== 0 && (u = this.parseObj(l, "elInY+200", u)), Object.keys(
|
|
603
|
+
Object.keys(O).length !== 0 && (u = this.parseObj(O, "elInY", u)), Object.keys(_).length !== 0 && (u = this.parseObj(_, "elInY+50", u)), Object.keys(v).length !== 0 && (u = this.parseObj(v, "elInY+100", u)), Object.keys(c).length !== 0 && (u = this.parseObj(c, "elInY+150", u)), Object.keys(l).length !== 0 && (u = this.parseObj(l, "elInY+200", u)), Object.keys(It).length !== 0 && (u = this.parseObj(It, "elInY+250", u)), Object.keys(kt).length !== 0 && (u = this.parseObj(kt, "elInY+300", u)), Object.keys(Ct).length !== 0 && (u = this.parseObj(Ct, "elInY+350", u)), Object.keys(Ht).length !== 0 && (u = this.parseObj(Ht, "elInY+400", u)), Object.keys(ft).length !== 0 && (u = this.parseObj(ft, "elInY+450", u)), Object.keys(at).length !== 0 && (u = this.parseObj(at, "elInY+500", u)), Object.keys(k).length !== 0 && (u = this.parseObj(k, "elInY+550", u)), Object.keys(I).length !== 0 && (u = this.parseObj(I, "elInY+600", u)), Object.keys(C).length !== 0 && (u = this.parseObj(C, "elInY+650", u)), Object.keys(b).length !== 0 && (u = this.parseObj(b, "elCenterY-300", u)), Object.keys(p).length !== 0 && (u = this.parseObj(p, "elCenterY", u)), Object.keys(f).length !== 0 && (u = this.parseObj(f, "elCenterY+100", u)), Object.keys(d).length !== 0 && (u = this.parseObj(d, "elCenterY+200", u)), Object.keys(h).length !== 0 && (u = this.parseObj(h, "elCenterY+300", u)), Object.keys(n).length !== 0 && (u = this.parseObj(n, "elOutY-300", u)), Object.keys(r).length !== 0 && (u = this.parseObj(r, "elOutY", u)), Object.keys(L).length !== 0 && (u = this.parseObj(L, "elInY", u)), Object.keys(J).length !== 0 && (u = this.parseObj(J, "elInY+150", u)), Object.keys(At).length !== 0 && (u = this.parseObj(At, "elInY+300 ", u)), Object.keys(H).length !== 0 && (u = this.parseObj(H, "elCenterY-150", u)), Object.keys(gt).length !== 0 && (u = this.parseObj(gt, "elCenterY", u)), Object.keys(x).length !== 0 && (u = this.parseObj(x, "elCenterY+150", u)), Object.keys(A).length !== 0 && (u = this.parseObj(A, "elOutY-300 ", u)), Object.keys(P).length !== 0 && (u = this.parseObj(P, "elOutY-150 ", u)), Object.keys(T).length !== 0 && (u = this.parseObj(T, "elOutY", u)), Object.keys(Lt).length !== 0 && (u = this.parseObj(Lt, "elInY-200", u)), Object.keys(Q).length !== 0 && (u = this.parseObj(Q, "elInY-100", u)), Object.keys(D).length !== 0 && (u = this.parseObj(D, "elInY", u)), Object.keys(N).length !== 0 && (u = this.parseObj(N, "elInY+100", u)), Object.keys(rt).length !== 0 && (u = this.parseObj(rt, "elInY+200", u)), Object.keys(_t).length !== 0 && (u = this.parseObj(_t, "elInY+300 ", u)), Object.keys(ot).length !== 0 && (u = this.parseObj(ot, "elInY+400 ", u)), Object.keys(Ot).length !== 0 && (u = this.parseObj(Ot, "elInY+500 ", u)), Object.keys(pt).length !== 0 && (u = this.parseObj(pt, "elInY+600 ", u)), Object.keys(z).length !== 0 && (u = this.parseObj(z, "elInY+700 ", u)), Object.keys(lt).length !== 0 && (u = this.parseObj(lt, "elInY+800 ", u)), Object.keys(tt).length !== 0 && (u = this.parseObj(tt, "elInY+900 ", u)), Object.keys(et).length !== 0 && (u = this.parseObj(et, "elInY+1000 ", u)), Object.keys(mt).length !== 0 && (u = this.parseObj(mt, "elInY+1100 ", u)), Object.keys(bt).length !== 0 && (u = this.parseObj(bt, "elInY+1200 ", u)), Object.keys(it).length !== 0 && (u = this.parseObj(it, "elInY+1300 ", u)), Object.keys(yt).length !== 0 && (u = this.parseObj(yt, "elInY+1400 ", u)), Object.keys(M).length !== 0 && (u = this.parseObj(M, "elInY+1500 ", u)), Object.keys(Et).length !== 0 && (u = this.parseObj(Et, "elInY+1600 ", u)), Object.keys(Vt).length !== 0 && (u = this.parseObj(Vt, "elInY+1700 ", u)), Object.keys(dt).length !== 0 && (u = this.parseObj(dt, "elInY+1800 ", u)), Object.keys(Yt).length !== 0 && (u = this.parseObj(Yt, "elInY+1900 ", u)), Object.keys(V).length !== 0 && (u = this.parseObj(V, "elInY+2000 ", u)), Object.keys(qt).length !== 0 && (u = this.parseObj(qt, "elInY+2100 ", u)), Object.keys(vt).length !== 0 && (u = this.parseObj(vt, "elInY+2200 ", u)), Object.keys(Dt).length !== 0 && (u = this.parseObj(Dt, "elInY+2300 ", u)), Object.keys(Mt).length !== 0 && (u = this.parseObj(Mt, "elInY+2400 ", u)), Object.keys(Nt).length !== 0 && (u = this.parseObj(Nt, "elInY+2500 ", u)), Object.keys(g).length !== 0 && (u = this.parseObj(g, "elInY+2600 ", u)), Object.keys(m).length !== 0 && (u = this.parseObj(m, "elInY+2700 ", u)), Object.keys(y).length !== 0 && (u = this.parseObj(y, "elInY+2800 ", u)), Object.keys(w).length !== 0 && (u = this.parseObj(w, "elInY+2900 ", u)), Object.keys(j).length !== 0 && (u = this.parseObj(j, "elInY+3000 ", u)), e.style.transition = "", e.setAttribute("data-dummy-selector", "1"), Zt.addElements("[data-dummy-selector]", {
|
|
604
604
|
scrollY: u
|
|
605
605
|
}), this.elements.push(document.querySelector("[data-dummy-selector]")), e.removeAttribute("data-dummy-selector"), setTimeout(() => {
|
|
606
606
|
e.style.opacity = 1, e.getAttribute("data-smooth-scrolling") === "off" || this.settings.transition && (e.style.transition = this.settings.transition);
|
|
@@ -703,7 +703,7 @@ function si() {
|
|
|
703
703
|
}), Ae;
|
|
704
704
|
}
|
|
705
705
|
var ni = si();
|
|
706
|
-
const we = /* @__PURE__ */
|
|
706
|
+
const we = /* @__PURE__ */ je(ni);
|
|
707
707
|
Array.prototype.each = function(o) {
|
|
708
708
|
const t = this.length;
|
|
709
709
|
for (let i = 0; i < t; i++) {
|
|
@@ -1134,7 +1134,7 @@ class di {
|
|
|
1134
1134
|
this.loop.kill(), this.loop = null;
|
|
1135
1135
|
}
|
|
1136
1136
|
}
|
|
1137
|
-
const
|
|
1137
|
+
const De = Date.now();
|
|
1138
1138
|
function Rt() {
|
|
1139
1139
|
let o = {}, t = !0, i = 0, s = arguments.length;
|
|
1140
1140
|
Object.prototype.toString.call(arguments[0]) === "[object Boolean]" && (t = arguments[0], i++);
|
|
@@ -1149,7 +1149,7 @@ function Rt() {
|
|
|
1149
1149
|
return o;
|
|
1150
1150
|
}
|
|
1151
1151
|
function nt(o, t) {
|
|
1152
|
-
if (($t(o) || o === window || o === document) && (o = [o]), !Xe(o) && !Kt(o) && (o = [o]),
|
|
1152
|
+
if (($t(o) || o === window || o === document) && (o = [o]), !Xe(o) && !Kt(o) && (o = [o]), Ze(o) != 0) {
|
|
1153
1153
|
if (Xe(o) && !Kt(o)) {
|
|
1154
1154
|
let i = o.length, s = 0;
|
|
1155
1155
|
for (; s < i && t.call(o[s], o[s], s, o) !== !1; s++)
|
|
@@ -1161,14 +1161,14 @@ function nt(o, t) {
|
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1165
|
-
const s = o[
|
|
1166
|
-
return t && i &&
|
|
1164
|
+
function Me(o, t = null, i = null) {
|
|
1165
|
+
const s = o[De] = o[De] || [], e = { all: s, evt: null, found: null };
|
|
1166
|
+
return t && i && Ze(s) > 0 && nt(s, (a, r) => {
|
|
1167
1167
|
if (a.eventName == t && a.fn.toString() == i.toString())
|
|
1168
1168
|
return e.found = !0, e.evt = r, !1;
|
|
1169
1169
|
}), e;
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1171
|
+
function Bt(o, { onElement: t, withCallback: i, avoidDuplicate: s = !0, once: e = !1, useCapture: a = !1 } = {}, r) {
|
|
1172
1172
|
let n = t || [];
|
|
1173
1173
|
Jt(n) && (n = document.querySelectorAll(n));
|
|
1174
1174
|
function h(d) {
|
|
@@ -1176,12 +1176,12 @@ function Ht(o, { onElement: t, withCallback: i, avoidDuplicate: s = !0, once: e
|
|
|
1176
1176
|
}
|
|
1177
1177
|
return h.destroy = function() {
|
|
1178
1178
|
nt(n, (d) => {
|
|
1179
|
-
const
|
|
1180
|
-
|
|
1179
|
+
const f = Me(d, o, h);
|
|
1180
|
+
f.found && f.all.splice(f.evt, 1), d.removeEventListener && d.removeEventListener(o, h, a);
|
|
1181
1181
|
});
|
|
1182
1182
|
}, nt(n, (d) => {
|
|
1183
|
-
const
|
|
1184
|
-
(d.addEventListener && s && !
|
|
1183
|
+
const f = Me(d, o, h);
|
|
1184
|
+
(d.addEventListener && s && !f.found || !s) && (d.addEventListener(o, h, a), f.all.push({ eventName: o, fn: h }));
|
|
1185
1185
|
}), h;
|
|
1186
1186
|
}
|
|
1187
1187
|
function Y(o, t) {
|
|
@@ -1190,10 +1190,10 @@ function Y(o, t) {
|
|
|
1190
1190
|
function wt(o, t) {
|
|
1191
1191
|
nt(t.split(" "), (i) => o.classList.remove(i));
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function jt(o, t) {
|
|
1194
1194
|
return o.classList.contains(t);
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1196
|
+
function Wt(o, t) {
|
|
1197
1197
|
for (; o !== document.body; ) {
|
|
1198
1198
|
if (o = o.parentElement, !o)
|
|
1199
1199
|
return !1;
|
|
@@ -1209,7 +1209,7 @@ function Qt(o, t = "", i = !1) {
|
|
|
1209
1209
|
const s = hi(), e = t.split(" ");
|
|
1210
1210
|
nt(e, (a) => {
|
|
1211
1211
|
Y(o, "g" + a);
|
|
1212
|
-
}),
|
|
1212
|
+
}), Bt(s, {
|
|
1213
1213
|
onElement: o,
|
|
1214
1214
|
avoidDuplicate: !1,
|
|
1215
1215
|
once: !0,
|
|
@@ -1225,13 +1225,13 @@ function ye(o, t = "") {
|
|
|
1225
1225
|
return o.style.webkitTransform = "", o.style.MozTransform = "", o.style.msTransform = "", o.style.OTransform = "", o.style.transform = "", !1;
|
|
1226
1226
|
o.style.webkitTransform = t, o.style.MozTransform = t, o.style.msTransform = t, o.style.OTransform = t, o.style.transform = t;
|
|
1227
1227
|
}
|
|
1228
|
-
function
|
|
1228
|
+
function Ne(o) {
|
|
1229
1229
|
o.style.display = "block";
|
|
1230
1230
|
}
|
|
1231
1231
|
function Se(o) {
|
|
1232
1232
|
o.style.display = "none";
|
|
1233
1233
|
}
|
|
1234
|
-
function
|
|
1234
|
+
function Ut(o) {
|
|
1235
1235
|
let t = document.createDocumentFragment(), i = document.createElement("div");
|
|
1236
1236
|
for (i.innerHTML = o; i.firstChild; )
|
|
1237
1237
|
t.appendChild(i.firstChild);
|
|
@@ -1272,7 +1272,7 @@ function ui(o) {
|
|
|
1272
1272
|
a.onload = null, Y(a, "node-ready"), X(s) && s();
|
|
1273
1273
|
}, e && e.appendChild(a), a;
|
|
1274
1274
|
}
|
|
1275
|
-
function
|
|
1275
|
+
function Ee(o, t, i, s) {
|
|
1276
1276
|
if (o()) {
|
|
1277
1277
|
t();
|
|
1278
1278
|
return;
|
|
@@ -1304,7 +1304,7 @@ function ze(o, t, i) {
|
|
|
1304
1304
|
if (s = document.querySelectorAll('script[src="' + o + '"]'), s && s.length > 0) {
|
|
1305
1305
|
if (X(i)) {
|
|
1306
1306
|
if (Jt(t))
|
|
1307
|
-
return
|
|
1307
|
+
return Ee(
|
|
1308
1308
|
() => typeof window[t] < "u",
|
|
1309
1309
|
() => {
|
|
1310
1310
|
i();
|
|
@@ -1318,7 +1318,7 @@ function ze(o, t, i) {
|
|
|
1318
1318
|
e.type = "text/javascript", e.src = o, e.onload = () => {
|
|
1319
1319
|
if (X(i)) {
|
|
1320
1320
|
if (Jt(t))
|
|
1321
|
-
return
|
|
1321
|
+
return Ee(
|
|
1322
1322
|
() => typeof window[t] < "u",
|
|
1323
1323
|
() => {
|
|
1324
1324
|
i();
|
|
@@ -1328,11 +1328,11 @@ function ze(o, t, i) {
|
|
|
1328
1328
|
}
|
|
1329
1329
|
}, document.body.appendChild(e);
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1331
|
+
function ke() {
|
|
1332
1332
|
return typeof window > "u" ? !1 : "navigator" in window && window.navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i);
|
|
1333
1333
|
}
|
|
1334
1334
|
function fi() {
|
|
1335
|
-
return typeof document > "u" ? !1 :
|
|
1335
|
+
return typeof document > "u" ? !1 : ke() !== null || document.createTouch !== void 0 || "ontouchstart" in window || "onmsgesturechange" in window || navigator.msMaxTouchPoints;
|
|
1336
1336
|
}
|
|
1337
1337
|
function X(o) {
|
|
1338
1338
|
return typeof o == "function";
|
|
@@ -1343,14 +1343,14 @@ function Jt(o) {
|
|
|
1343
1343
|
function $t(o) {
|
|
1344
1344
|
return !!(o && o.nodeType && o.nodeType == 1);
|
|
1345
1345
|
}
|
|
1346
|
-
function
|
|
1346
|
+
function Ue(o) {
|
|
1347
1347
|
return Array.isArray(o);
|
|
1348
1348
|
}
|
|
1349
1349
|
function Xe(o) {
|
|
1350
1350
|
return o && o.length && isFinite(o.length);
|
|
1351
1351
|
}
|
|
1352
1352
|
function Kt(o) {
|
|
1353
|
-
return typeof o === "object" && o != null && !X(o) && !
|
|
1353
|
+
return typeof o === "object" && o != null && !X(o) && !Ue(o);
|
|
1354
1354
|
}
|
|
1355
1355
|
function Xt(o) {
|
|
1356
1356
|
return o == null;
|
|
@@ -1358,7 +1358,7 @@ function Xt(o) {
|
|
|
1358
1358
|
function xt(o, t) {
|
|
1359
1359
|
return o !== null && hasOwnProperty.call(o, t);
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1361
|
+
function Ze(o) {
|
|
1362
1362
|
if (Kt(o)) {
|
|
1363
1363
|
if (o.keys)
|
|
1364
1364
|
return o.keys().length;
|
|
@@ -1392,7 +1392,7 @@ function Pe(o = -1) {
|
|
|
1392
1392
|
function gi(o) {
|
|
1393
1393
|
if (o.events.hasOwnProperty("keyboard"))
|
|
1394
1394
|
return !1;
|
|
1395
|
-
o.events.keyboard =
|
|
1395
|
+
o.events.keyboard = Bt("keydown", {
|
|
1396
1396
|
onElement: window,
|
|
1397
1397
|
withCallback: (t, i) => {
|
|
1398
1398
|
t = t || window.event;
|
|
@@ -1459,7 +1459,7 @@ class vi {
|
|
|
1459
1459
|
}
|
|
1460
1460
|
}
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1462
|
+
function Tt(o, t) {
|
|
1463
1463
|
var i = new vi(o);
|
|
1464
1464
|
return i.add(t), i;
|
|
1465
1465
|
}
|
|
@@ -1468,7 +1468,7 @@ class wi {
|
|
|
1468
1468
|
this.element = typeof t == "string" ? document.querySelector(t) : t, this.start = this.start.bind(this), this.move = this.move.bind(this), this.end = this.end.bind(this), this.cancel = this.cancel.bind(this), this.element.addEventListener("touchstart", this.start, !1), this.element.addEventListener("touchmove", this.move, !1), this.element.addEventListener("touchend", this.end, !1), this.element.addEventListener("touchcancel", this.cancel, !1), this.preV = { x: null, y: null }, this.pinchStartLen = null, this.zoom = 1, this.isDoubleTap = !1;
|
|
1469
1469
|
var s = function() {
|
|
1470
1470
|
};
|
|
1471
|
-
this.rotate =
|
|
1471
|
+
this.rotate = Tt(this.element, i.rotate || s), this.touchStart = Tt(this.element, i.touchStart || s), this.multipointStart = Tt(this.element, i.multipointStart || s), this.multipointEnd = Tt(this.element, i.multipointEnd || s), this.pinch = Tt(this.element, i.pinch || s), this.swipe = Tt(this.element, i.swipe || s), this.tap = Tt(this.element, i.tap || s), this.doubleTap = Tt(this.element, i.doubleTap || s), this.longTap = Tt(this.element, i.longTap || s), this.singleTap = Tt(this.element, i.singleTap || s), this.pressMove = Tt(this.element, i.pressMove || s), this.twoFingerPressMove = Tt(this.element, i.twoFingerPressMove || s), this.touchMove = Tt(this.element, i.touchMove || s), this.touchEnd = Tt(this.element, i.touchEnd || s), this.touchCancel = Tt(this.element, i.touchCancel || s), this.translateContainer = this.element, this._cancelAllHandler = this.cancelAll.bind(this), window.addEventListener("scroll", this._cancelAllHandler), this.delta = null, this.last = null, this.now = null, this.tapTimeout = null, this.singleTapTimeout = null, this.longTapTimeout = null, this.swipeTimeout = null, this.x1 = this.x2 = this.y1 = this.y2 = null, this.preTapPosition = { x: null, y: null };
|
|
1472
1472
|
}
|
|
1473
1473
|
start(t) {
|
|
1474
1474
|
if (!t.touches)
|
|
@@ -1501,8 +1501,8 @@ class wi {
|
|
|
1501
1501
|
} else {
|
|
1502
1502
|
if (this.x2 !== null) {
|
|
1503
1503
|
t.deltaX = e - this.x2, t.deltaY = a - this.y2;
|
|
1504
|
-
var d = Math.abs(this.x1 - this.x2),
|
|
1505
|
-
(d > 10 ||
|
|
1504
|
+
var d = Math.abs(this.x1 - this.x2), f = Math.abs(this.y1 - this.y2);
|
|
1505
|
+
(d > 10 || f > 10) && (this._preventTap = !0);
|
|
1506
1506
|
} else
|
|
1507
1507
|
t.deltaX = 0, t.deltaY = 0;
|
|
1508
1508
|
this.pressMove.dispatch(t, this.element);
|
|
@@ -1550,8 +1550,8 @@ class wi {
|
|
|
1550
1550
|
}
|
|
1551
1551
|
function _e(o) {
|
|
1552
1552
|
const t = ci(), i = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
|
1553
|
-
let s =
|
|
1554
|
-
i > 769 && (s = e), Y(s, "greset"), ye(s, "translate3d(0, 0, 0)"),
|
|
1553
|
+
let s = jt(o, "gslide-media") ? o : o.querySelector(".gslide-media"), e = Wt(s, ".ginner-container"), a = o.querySelector(".gslide-description");
|
|
1554
|
+
i > 769 && (s = e), Y(s, "greset"), ye(s, "translate3d(0, 0, 0)"), Bt(t, {
|
|
1555
1555
|
onElement: s,
|
|
1556
1556
|
once: !0,
|
|
1557
1557
|
withCallback: (r, n) => {
|
|
@@ -1562,17 +1562,17 @@ function _e(o) {
|
|
|
1562
1562
|
function xi(o) {
|
|
1563
1563
|
if (o.events.hasOwnProperty("touch"))
|
|
1564
1564
|
return !1;
|
|
1565
|
-
let t = Fe(), i = t.width, s = t.height, e = !1, a = null, r = null, n = null, h = !1, d = 1,
|
|
1566
|
-
const At = document.getElementById("glightbox-slider"),
|
|
1565
|
+
let t = Fe(), i = t.width, s = t.height, e = !1, a = null, r = null, n = null, h = !1, d = 1, f = 4.5, p = 1, b = !1, C = !1, I = null, k = null, at = null, ft = null, Ht, Ct, kt = 0, It = 0, l = !1, c = !1, v = {}, _ = {}, O = 0, L = 0, J;
|
|
1566
|
+
const At = document.getElementById("glightbox-slider"), H = document.querySelector(".goverlay"), gt = new wi(At, {
|
|
1567
1567
|
touchStart: (x) => {
|
|
1568
|
-
if (e = !0, (
|
|
1569
|
-
if (_ = x.targetTouches[0], v.pageX = x.targetTouches[0].pageX, v.pageY = x.targetTouches[0].pageY, O = x.targetTouches[0].clientX, L = x.targetTouches[0].clientY, a = o.activeSlide, r = a.querySelector(".gslide-media"), J = a.querySelector(".gslide-inline"), n = null,
|
|
1568
|
+
if (e = !0, (jt(x.targetTouches[0].target, "ginner-container") || Wt(x.targetTouches[0].target, ".gslide-desc") || x.targetTouches[0].target.nodeName.toLowerCase() == "a") && (e = !1), Wt(x.targetTouches[0].target, ".gslide-inline") && !jt(x.targetTouches[0].target.parentNode, "gslide-inline") && (e = !1), e) {
|
|
1569
|
+
if (_ = x.targetTouches[0], v.pageX = x.targetTouches[0].pageX, v.pageY = x.targetTouches[0].pageY, O = x.targetTouches[0].clientX, L = x.targetTouches[0].clientY, a = o.activeSlide, r = a.querySelector(".gslide-media"), J = a.querySelector(".gslide-inline"), n = null, jt(r, "gslide-image") && (n = r.querySelector("img")), (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) > 769 && (r = a.querySelector(".ginner-container")), wt(H, "greset"), x.pageX > 20 && x.pageX < window.innerWidth - 20)
|
|
1570
1570
|
return;
|
|
1571
1571
|
x.preventDefault();
|
|
1572
1572
|
}
|
|
1573
1573
|
},
|
|
1574
1574
|
touchMove: (x) => {
|
|
1575
|
-
if (!e || (_ = x.targetTouches[0], b ||
|
|
1575
|
+
if (!e || (_ = x.targetTouches[0], b || C))
|
|
1576
1576
|
return;
|
|
1577
1577
|
if (J && J.offsetHeight > s) {
|
|
1578
1578
|
const $ = v.pageX - _.pageX;
|
|
@@ -1580,27 +1580,27 @@ function xi(o) {
|
|
|
1580
1580
|
return !1;
|
|
1581
1581
|
}
|
|
1582
1582
|
h = !0;
|
|
1583
|
-
let A = x.targetTouches[0].clientX, P = x.targetTouches[0].clientY,
|
|
1584
|
-
Math.abs(
|
|
1583
|
+
let A = x.targetTouches[0].clientX, P = x.targetTouches[0].clientY, T = O - A, Z = L - P;
|
|
1584
|
+
Math.abs(T) > Math.abs(Z) ? (l = !1, c = !0) : (c = !1, l = !0), Ht = _.pageX - v.pageX, kt = Ht * 100 / i, Ct = _.pageY - v.pageY, It = Ct * 100 / s;
|
|
1585
1585
|
let G;
|
|
1586
|
-
if (l && n && (G = 1 - Math.abs(Ct) / s,
|
|
1587
|
-
return ye(r, `translate3d(${
|
|
1588
|
-
ye(r, `translate3d(${
|
|
1586
|
+
if (l && n && (G = 1 - Math.abs(Ct) / s, H.style.opacity = G, o.settings.touchFollowAxis && (kt = 0)), c && (G = 1 - Math.abs(Ht) / i, r.style.opacity = G, o.settings.touchFollowAxis && (It = 0)), !n)
|
|
1587
|
+
return ye(r, `translate3d(${kt}%, 0, 0)`);
|
|
1588
|
+
ye(r, `translate3d(${kt}%, ${It}%, 0)`);
|
|
1589
1589
|
},
|
|
1590
1590
|
touchEnd: () => {
|
|
1591
1591
|
if (!e)
|
|
1592
1592
|
return;
|
|
1593
|
-
if (h = !1,
|
|
1594
|
-
at =
|
|
1593
|
+
if (h = !1, C || b) {
|
|
1594
|
+
at = I, ft = k;
|
|
1595
1595
|
return;
|
|
1596
1596
|
}
|
|
1597
|
-
const x = Math.abs(parseInt(
|
|
1597
|
+
const x = Math.abs(parseInt(It)), A = Math.abs(parseInt(kt));
|
|
1598
1598
|
if (x > 29 && n) {
|
|
1599
1599
|
o.close();
|
|
1600
1600
|
return;
|
|
1601
1601
|
}
|
|
1602
1602
|
if (x < 29 && A < 25)
|
|
1603
|
-
return Y(
|
|
1603
|
+
return Y(H, "greset"), H.style.opacity = 1, _e(r);
|
|
1604
1604
|
},
|
|
1605
1605
|
multipointEnd: () => {
|
|
1606
1606
|
setTimeout(() => {
|
|
@@ -1615,22 +1615,22 @@ function xi(o) {
|
|
|
1615
1615
|
return !1;
|
|
1616
1616
|
b = !0, n.scaleX = n.scaleY = d * x.zoom;
|
|
1617
1617
|
let A = d * x.zoom;
|
|
1618
|
-
if (
|
|
1619
|
-
|
|
1618
|
+
if (C = !0, A <= 1) {
|
|
1619
|
+
C = !1, A = 1, ft = null, at = null, I = null, k = null, n.setAttribute("style", "");
|
|
1620
1620
|
return;
|
|
1621
1621
|
}
|
|
1622
|
-
A >
|
|
1622
|
+
A > f && (A = f), n.style.transform = `scale3d(${A}, ${A}, 1)`, p = A;
|
|
1623
1623
|
},
|
|
1624
1624
|
pressMove: (x) => {
|
|
1625
|
-
if (
|
|
1625
|
+
if (C && !b) {
|
|
1626
1626
|
var A = _.pageX - v.pageX, P = _.pageY - v.pageY;
|
|
1627
|
-
at && (A = A + at), ft && (P = P + ft),
|
|
1628
|
-
let
|
|
1629
|
-
p && (
|
|
1627
|
+
at && (A = A + at), ft && (P = P + ft), I = A, k = P;
|
|
1628
|
+
let T = `translate3d(${A}px, ${P}px, 0)`;
|
|
1629
|
+
p && (T += ` scale3d(${p}, ${p}, 1)`), ye(n, T);
|
|
1630
1630
|
}
|
|
1631
1631
|
},
|
|
1632
1632
|
swipe: (x) => {
|
|
1633
|
-
if (!
|
|
1633
|
+
if (!C) {
|
|
1634
1634
|
if (b) {
|
|
1635
1635
|
b = !1;
|
|
1636
1636
|
return;
|
|
@@ -1708,7 +1708,7 @@ class Oi {
|
|
|
1708
1708
|
return window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
|
1709
1709
|
}
|
|
1710
1710
|
}
|
|
1711
|
-
class
|
|
1711
|
+
class Be {
|
|
1712
1712
|
constructor(t = {}) {
|
|
1713
1713
|
let { dragEl: i, toleranceX: s = 40, toleranceY: e = 65, slide: a = null, instance: r = null } = t;
|
|
1714
1714
|
this.el = i, this.active = !1, this.dragging = !1, this.currentX = null, this.currentY = null, this.initialX = null, this.initialY = null, this.xOffset = 0, this.yOffset = 0, this.direction = null, this.lastDirection = null, this.toleranceX = s, this.toleranceY = e, this.toleranceReached = !1, this.dragContainer = this.el, this.slide = a, this.instance = r, this.el.addEventListener("mousedown", (n) => this.dragStart(n), !1), this.el.addEventListener("mouseup", (n) => this.dragEnd(n), !1), this.el.addEventListener("mousemove", (n) => this.drag(n), !1);
|
|
@@ -1720,11 +1720,11 @@ class He {
|
|
|
1720
1720
|
}
|
|
1721
1721
|
t.type === "touchstart" ? (this.initialX = t.touches[0].clientX - this.xOffset, this.initialY = t.touches[0].clientY - this.yOffset) : (this.initialX = t.clientX - this.xOffset, this.initialY = t.clientY - this.yOffset);
|
|
1722
1722
|
let i = t.target.nodeName.toLowerCase(), s = ["input", "select", "textarea", "button", "a"];
|
|
1723
|
-
if (t.target.classList.contains("nodrag") ||
|
|
1723
|
+
if (t.target.classList.contains("nodrag") || Wt(t.target, ".nodrag") || s.indexOf(i) !== -1) {
|
|
1724
1724
|
this.active = !1;
|
|
1725
1725
|
return;
|
|
1726
1726
|
}
|
|
1727
|
-
t.preventDefault(), (t.target === this.el || i !== "img" &&
|
|
1727
|
+
t.preventDefault(), (t.target === this.el || i !== "img" && Wt(t.target, ".gslide-inline")) && (this.active = !0, this.el.classList.add("dragging"), this.dragContainer = Wt(t.target, ".ginner-container"));
|
|
1728
1728
|
}
|
|
1729
1729
|
dragEnd(t) {
|
|
1730
1730
|
t && t.preventDefault(), this.initialX = 0, this.initialY = 0, this.currentX = null, this.currentY = null, this.initialX = null, this.initialY = null, this.xOffset = 0, this.yOffset = 0, this.active = !1, this.doSlideChange && (this.instance.preventOutsideClick = !0, this.doSlideChange == "right" && this.instance.prevSlide(), this.doSlideChange == "left" && this.instance.nextSlide()), this.doSlideClose && this.instance.close(), this.toleranceReached || this.setTranslate(this.dragContainer, 0, 0, !0), setTimeout(() => {
|
|
@@ -1776,37 +1776,37 @@ function Ai(o, t, i, s) {
|
|
|
1776
1776
|
}
|
|
1777
1777
|
function Si(o, t, i, s) {
|
|
1778
1778
|
const e = o.querySelector(".ginner-container"), a = "gvideo" + i, r = o.querySelector(".gslide-media"), n = this.getAllPlayers();
|
|
1779
|
-
Y(e, "gvideo-container"), r.insertBefore(
|
|
1779
|
+
Y(e, "gvideo-container"), r.insertBefore(Ut('<div class="gvideo-wrapper"></div>'), r.firstChild);
|
|
1780
1780
|
const h = o.querySelector(".gvideo-wrapper");
|
|
1781
1781
|
ze(this.settings.plyr.css, "Plyr");
|
|
1782
|
-
let d = t.href,
|
|
1782
|
+
let d = t.href, f = t?.videoProvider, p = !1;
|
|
1783
1783
|
r.style.maxWidth = t.width, ze(this.settings.plyr.js, "Plyr", () => {
|
|
1784
|
-
if (!
|
|
1785
|
-
|
|
1786
|
-
let
|
|
1787
|
-
|
|
1788
|
-
}
|
|
1789
|
-
const b = p ||
|
|
1790
|
-
Y(h, `${
|
|
1791
|
-
const
|
|
1792
|
-
|
|
1793
|
-
n[a] =
|
|
1794
|
-
}),
|
|
1784
|
+
if (!f && d.match(/vimeo\.com\/([0-9]*)/) && (f = "vimeo"), !f && (d.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/) || d.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/) || d.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/)) && (f = "youtube"), f === "local" || !f) {
|
|
1785
|
+
f = "local";
|
|
1786
|
+
let k = '<video id="' + a + '" ';
|
|
1787
|
+
k += `style="background:#000; max-width: ${t.width};" `, k += 'preload="metadata" ', k += 'x-webkit-airplay="allow" ', k += "playsinline ", k += "controls ", k += 'class="gvideo-local">', k += `<source src="${d}">`, k += "</video>", p = Ut(k);
|
|
1788
|
+
}
|
|
1789
|
+
const b = p || Ut(`<div id="${a}" data-plyr-provider="${f}" data-plyr-embed-id="${d}"></div>`);
|
|
1790
|
+
Y(h, `${f}-video gvideo`), h.appendChild(b), h.setAttribute("data-id", a), h.setAttribute("data-index", i);
|
|
1791
|
+
const C = xt(this.settings.plyr, "config") ? this.settings.plyr.config : {}, I = new Plyr("#" + a, C);
|
|
1792
|
+
I.on("ready", (k) => {
|
|
1793
|
+
n[a] = k.detail.plyr, X(s) && s();
|
|
1794
|
+
}), Ee(
|
|
1795
1795
|
() => o.querySelector("iframe") && o.querySelector("iframe").dataset.ready == "true",
|
|
1796
1796
|
() => {
|
|
1797
1797
|
this.resize(o);
|
|
1798
1798
|
}
|
|
1799
|
-
),
|
|
1799
|
+
), I.on("enterfullscreen", He), I.on("exitfullscreen", He);
|
|
1800
1800
|
});
|
|
1801
1801
|
}
|
|
1802
|
-
function
|
|
1803
|
-
const t =
|
|
1802
|
+
function He(o) {
|
|
1803
|
+
const t = Wt(o.target, ".gslide-media");
|
|
1804
1804
|
o.type === "enterfullscreen" && Y(t, "fullscreen"), o.type === "exitfullscreen" && wt(t, "fullscreen");
|
|
1805
1805
|
}
|
|
1806
1806
|
function _i(o, t, i, s) {
|
|
1807
1807
|
const e = o.querySelector(".gslide-media"), a = xt(t, "href") && t.href ? t.href.split("#").pop().trim() : !1, r = xt(t, "content") && t.content ? t.content : !1;
|
|
1808
1808
|
let n;
|
|
1809
|
-
if (r && (Jt(r) && (n =
|
|
1809
|
+
if (r && (Jt(r) && (n = Ut(`<div class="ginlined-content">${r}</div>`)), $t(r))) {
|
|
1810
1810
|
r.style.display == "none" && (r.style.display = "block");
|
|
1811
1811
|
const h = document.createElement("div");
|
|
1812
1812
|
h.className = "ginlined-content", h.appendChild(r), n = h;
|
|
@@ -1820,21 +1820,21 @@ function _i(o, t, i, s) {
|
|
|
1820
1820
|
}
|
|
1821
1821
|
if (!n)
|
|
1822
1822
|
return console.error("Unable to append inline slide content", t), !1;
|
|
1823
|
-
e.style.height = t.height, e.style.width = t.width, e.appendChild(n), this.events["inlineclose" + a] =
|
|
1823
|
+
e.style.height = t.height, e.style.width = t.width, e.appendChild(n), this.events["inlineclose" + a] = Bt("click", {
|
|
1824
1824
|
onElement: e.querySelectorAll(".gtrigger-close"),
|
|
1825
1825
|
withCallback: (h) => {
|
|
1826
1826
|
h.preventDefault(), this.close();
|
|
1827
1827
|
}
|
|
1828
1828
|
}), X(s) && s();
|
|
1829
1829
|
}
|
|
1830
|
-
function
|
|
1830
|
+
function Ei(o, t, i, s) {
|
|
1831
1831
|
const e = o.querySelector(".gslide-media"), a = ui({
|
|
1832
1832
|
url: t.href,
|
|
1833
1833
|
callback: s
|
|
1834
1834
|
});
|
|
1835
1835
|
e.parentNode.style.maxWidth = t.width, e.parentNode.style.height = t.height, e.appendChild(a);
|
|
1836
1836
|
}
|
|
1837
|
-
class
|
|
1837
|
+
class Ti {
|
|
1838
1838
|
constructor(t = {}) {
|
|
1839
1839
|
this.defaults = {
|
|
1840
1840
|
href: "",
|
|
@@ -1890,10 +1890,10 @@ class Ei {
|
|
|
1890
1890
|
nt(s, (h, d) => {
|
|
1891
1891
|
n.push(";\\s?" + d);
|
|
1892
1892
|
}), n = n.join("\\s?:|"), a.trim() !== "" && nt(s, (h, d) => {
|
|
1893
|
-
const
|
|
1894
|
-
if (
|
|
1895
|
-
const
|
|
1896
|
-
s[d] = this.sanitizeValue(
|
|
1893
|
+
const f = a, p = "s?" + d + "s?:s?(.*?)(" + n + "s?:|$)", b = new RegExp(p), C = f.match(b);
|
|
1894
|
+
if (C && C.length && C[1]) {
|
|
1895
|
+
const I = C[1].trim().replace(/;\s*$/, "");
|
|
1896
|
+
s[d] = this.sanitizeValue(I);
|
|
1897
1897
|
}
|
|
1898
1898
|
});
|
|
1899
1899
|
}
|
|
@@ -1958,31 +1958,31 @@ class pe {
|
|
|
1958
1958
|
* @param {function} callback
|
|
1959
1959
|
*/
|
|
1960
1960
|
setContent(t = null, i = !1) {
|
|
1961
|
-
if (
|
|
1961
|
+
if (jt(t, "loaded"))
|
|
1962
1962
|
return !1;
|
|
1963
|
-
const s = this.instance.settings, e = this.slideConfig, a =
|
|
1963
|
+
const s = this.instance.settings, e = this.slideConfig, a = ke();
|
|
1964
1964
|
X(s.beforeSlideLoad) && s.beforeSlideLoad({
|
|
1965
1965
|
index: this.index,
|
|
1966
1966
|
slide: t,
|
|
1967
1967
|
player: !1
|
|
1968
1968
|
});
|
|
1969
|
-
let r = e.type, n = e.descPosition, h = t.querySelector(".gslide-media"), d = t.querySelector(".gslide-title"),
|
|
1969
|
+
let r = e.type, n = e.descPosition, h = t.querySelector(".gslide-media"), d = t.querySelector(".gslide-title"), f = t.querySelector(".gslide-desc"), p = t.querySelector(".gdesc-inner"), b = i, C = "gSlideTitle_" + this.index, I = "gSlideDesc_" + this.index;
|
|
1970
1970
|
if (X(s.afterSlideLoad) && (b = () => {
|
|
1971
1971
|
X(i) && i(), s.afterSlideLoad({
|
|
1972
1972
|
index: this.index,
|
|
1973
1973
|
slide: t,
|
|
1974
1974
|
player: this.instance.getSlidePlayerInstance(this.index)
|
|
1975
1975
|
});
|
|
1976
|
-
}), e.title == "" && e.description == "" ? p && p.parentNode.parentNode.removeChild(p.parentNode) : (d && e.title !== "" ? (d.id =
|
|
1976
|
+
}), e.title == "" && e.description == "" ? p && p.parentNode.parentNode.removeChild(p.parentNode) : (d && e.title !== "" ? (d.id = C, d.innerHTML = e.title) : d.parentNode.removeChild(d), f && e.description !== "" ? (f.id = I, a && s.moreLength > 0 ? (e.smallDescription = this.slideShortDesc(e.description, s.moreLength, s.moreText), f.innerHTML = e.smallDescription, this.descriptionEvents(f, e)) : f.innerHTML = e.description) : f.parentNode.removeChild(f), Y(h.parentNode, `desc-${n}`), Y(p.parentNode, `description-${n}`)), Y(h, `gslide-${r}`), Y(t, "loaded"), r === "video") {
|
|
1977
1977
|
Si.apply(this.instance, [t, e, this.index, b]);
|
|
1978
1978
|
return;
|
|
1979
1979
|
}
|
|
1980
1980
|
if (r === "external") {
|
|
1981
|
-
|
|
1981
|
+
Ei.apply(this, [t, e, this.index, b]);
|
|
1982
1982
|
return;
|
|
1983
1983
|
}
|
|
1984
1984
|
if (r === "inline") {
|
|
1985
|
-
_i.apply(this.instance, [t, e, this.index, b]), e.draggable && new
|
|
1985
|
+
_i.apply(this.instance, [t, e, this.index, b]), e.draggable && new Be({
|
|
1986
1986
|
dragEl: t.querySelector(".gslide-inline"),
|
|
1987
1987
|
toleranceX: s.dragToleranceX,
|
|
1988
1988
|
toleranceY: s.dragToleranceY,
|
|
@@ -1993,14 +1993,14 @@ class pe {
|
|
|
1993
1993
|
}
|
|
1994
1994
|
if (r === "image") {
|
|
1995
1995
|
Ai(t, e, this.index, () => {
|
|
1996
|
-
const
|
|
1997
|
-
e.draggable && new
|
|
1998
|
-
dragEl:
|
|
1996
|
+
const k = t.querySelector("img");
|
|
1997
|
+
e.draggable && new Be({
|
|
1998
|
+
dragEl: k,
|
|
1999
1999
|
toleranceX: s.dragToleranceX,
|
|
2000
2000
|
toleranceY: s.dragToleranceY,
|
|
2001
2001
|
slide: t,
|
|
2002
2002
|
instance: this.instance
|
|
2003
|
-
}), e.zoomable &&
|
|
2003
|
+
}), e.zoomable && k.naturalWidth > k.offsetWidth && (Y(k, "zoomable"), new Oi(k, t, () => {
|
|
2004
2004
|
this.instance.resize();
|
|
2005
2005
|
})), X(b) && b();
|
|
2006
2006
|
});
|
|
@@ -2021,18 +2021,18 @@ class pe {
|
|
|
2021
2021
|
let s = t.querySelector(".desc-more");
|
|
2022
2022
|
if (!s)
|
|
2023
2023
|
return !1;
|
|
2024
|
-
|
|
2024
|
+
Bt("click", {
|
|
2025
2025
|
onElement: s,
|
|
2026
2026
|
withCallback: (e, a) => {
|
|
2027
2027
|
e.preventDefault();
|
|
2028
2028
|
const r = document.body;
|
|
2029
|
-
let n =
|
|
2029
|
+
let n = Wt(a, ".gslide-desc");
|
|
2030
2030
|
if (!n)
|
|
2031
2031
|
return !1;
|
|
2032
2032
|
n.innerHTML = i.description, Y(r, "gdesc-open");
|
|
2033
|
-
let h =
|
|
2034
|
-
onElement: [r,
|
|
2035
|
-
withCallback: (d,
|
|
2033
|
+
let h = Bt("click", {
|
|
2034
|
+
onElement: [r, Wt(n, ".gslide-description")],
|
|
2035
|
+
withCallback: (d, f) => {
|
|
2036
2036
|
d.target.nodeName.toLowerCase() !== "a" && (wt(r, "gdesc-open"), Y(r, "gdesc-closed"), n.innerHTML = i.smallDescription, this.descriptionEvents(n, i), setTimeout(() => {
|
|
2037
2037
|
wt(r, "gdesc-closed");
|
|
2038
2038
|
}, 400), h.destroy());
|
|
@@ -2047,7 +2047,7 @@ class pe {
|
|
|
2047
2047
|
* @return { node }
|
|
2048
2048
|
*/
|
|
2049
2049
|
create() {
|
|
2050
|
-
return
|
|
2050
|
+
return Ut(this.instance.settings.slideHTML);
|
|
2051
2051
|
}
|
|
2052
2052
|
/**
|
|
2053
2053
|
* Get slide config
|
|
@@ -2060,14 +2060,14 @@ class pe {
|
|
|
2060
2060
|
*/
|
|
2061
2061
|
getConfig() {
|
|
2062
2062
|
!$t(this.element) && !this.element.hasOwnProperty("draggable") && (this.element.draggable = this.instance.settings.draggable);
|
|
2063
|
-
const t = new
|
|
2063
|
+
const t = new Ti(this.instance.settings.slideExtraAttributes);
|
|
2064
2064
|
return this.slideConfig = t.parseConfig(this.element, this.instance.settings), this.slideConfig;
|
|
2065
2065
|
}
|
|
2066
2066
|
}
|
|
2067
|
-
const
|
|
2068
|
-
let
|
|
2069
|
-
typeof document > "u" || (
|
|
2070
|
-
const
|
|
2067
|
+
const ji = "3.2.0", We = ke(), Re = fi();
|
|
2068
|
+
let Te;
|
|
2069
|
+
typeof document > "u" || (Te = document.getElementsByTagName("html")[0]);
|
|
2070
|
+
const Ie = {
|
|
2071
2071
|
selector: ".glightbox",
|
|
2072
2072
|
elements: null,
|
|
2073
2073
|
skin: "clean",
|
|
@@ -2145,7 +2145,7 @@ const Le = {
|
|
|
2145
2145
|
prev: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"><g><path d="M145.188,238.575l215.5-215.5c5.3-5.3,5.3-13.8,0-19.1s-13.8-5.3-19.1,0l-225.1,225.1c-5.3,5.3-5.3,13.8,0,19.1l225.1,225c2.6,2.6,6.1,4,9.5,4s6.9-1.3,9.5-4c5.3-5.3,5.3-13.8,0-19.1L145.188,238.575z"/></g></svg>'
|
|
2146
2146
|
}
|
|
2147
2147
|
};
|
|
2148
|
-
|
|
2148
|
+
Ie.slideHTML = `<div class="gslide">
|
|
2149
2149
|
<div class="gslide-inner-content">
|
|
2150
2150
|
<div class="ginner-container">
|
|
2151
2151
|
<div class="gslide-media">
|
|
@@ -2159,7 +2159,7 @@ Le.slideHTML = `<div class="gslide">
|
|
|
2159
2159
|
</div>
|
|
2160
2160
|
</div>
|
|
2161
2161
|
</div>`;
|
|
2162
|
-
|
|
2162
|
+
Ie.lightboxHTML = `<div id="glightbox-body" class="glightbox-container" tabindex="-1" role="dialog" aria-hidden="false">
|
|
2163
2163
|
<div class="gloader visible"></div>
|
|
2164
2164
|
<div class="goverlay"></div>
|
|
2165
2165
|
<div class="gcontainer">
|
|
@@ -2171,11 +2171,11 @@ Le.lightboxHTML = `<div id="glightbox-body" class="glightbox-container" tabindex
|
|
|
2171
2171
|
</div>`;
|
|
2172
2172
|
class $e {
|
|
2173
2173
|
constructor(t = {}) {
|
|
2174
|
-
this.customOptions = t, this.settings = Rt(
|
|
2174
|
+
this.customOptions = t, this.settings = Rt(Ie, t), this.effectsClasses = this.getAnimationClasses(), this.videoPlayers = {}, this.apiEvents = [], this.fullElementsList = !1;
|
|
2175
2175
|
}
|
|
2176
2176
|
init() {
|
|
2177
2177
|
const t = this.getSelector();
|
|
2178
|
-
t && (this.baseEvents =
|
|
2178
|
+
t && (this.baseEvents = Bt("click", {
|
|
2179
2179
|
onElement: t,
|
|
2180
2180
|
withCallback: (i, s) => {
|
|
2181
2181
|
i.preventDefault(), this.open(s);
|
|
@@ -2197,7 +2197,7 @@ class $e {
|
|
|
2197
2197
|
var r = document.createElement("style");
|
|
2198
2198
|
r.type = "text/css", r.className = "gcss-styles", r.innerText = `.gscrollbar-fixer {margin-right: ${a}px}`, document.head.appendChild(r), Y(e, "gscrollbar-fixer");
|
|
2199
2199
|
}
|
|
2200
|
-
Y(e, "glightbox-open"), Y(
|
|
2200
|
+
Y(e, "glightbox-open"), Y(Te, "glightbox-open"), We && (Y(document.body, "glightbox-mobile"), this.settings.slideEffect = "slide"), this.showSlide(s, !0), this.elements.length === 1 ? (Y(this.prevButton, "glightbox-button-hidden"), Y(this.nextButton, "glightbox-button-hidden")) : (wt(this.prevButton, "glightbox-button-hidden"), wt(this.nextButton, "glightbox-button-hidden")), this.lightboxOpen = !0, this.trigger("open"), X(this.settings.onOpen) && this.settings.onOpen(), Re && this.settings.touchNavigation && xi(this), this.settings.keyboardNavigation && gi(this);
|
|
2201
2201
|
}
|
|
2202
2202
|
/**
|
|
2203
2203
|
* Open at specific index
|
|
@@ -2210,14 +2210,14 @@ class $e {
|
|
|
2210
2210
|
* Set Slide
|
|
2211
2211
|
*/
|
|
2212
2212
|
showSlide(t = 0, i = !1) {
|
|
2213
|
-
|
|
2213
|
+
Ne(this.loader), this.index = parseInt(t);
|
|
2214
2214
|
let s = this.slidesContainer.querySelector(".current");
|
|
2215
2215
|
s && wt(s, "current"), this.slideAnimateOut();
|
|
2216
2216
|
let e = this.slidesContainer.querySelectorAll(".gslide")[t];
|
|
2217
|
-
if (
|
|
2217
|
+
if (jt(e, "loaded"))
|
|
2218
2218
|
this.slideAnimateIn(e, i), Se(this.loader);
|
|
2219
2219
|
else {
|
|
2220
|
-
|
|
2220
|
+
Ne(this.loader);
|
|
2221
2221
|
const a = this.elements[t], r = {
|
|
2222
2222
|
index: this.index,
|
|
2223
2223
|
slide: e,
|
|
@@ -2232,7 +2232,7 @@ class $e {
|
|
|
2232
2232
|
Se(this.loader), this.resize(), this.slideAnimateIn(e, i), this.trigger("slide_after_load", r);
|
|
2233
2233
|
});
|
|
2234
2234
|
}
|
|
2235
|
-
this.slideDescription = e.querySelector(".gslide-description"), this.slideDescriptionContained = this.slideDescription &&
|
|
2235
|
+
this.slideDescription = e.querySelector(".gslide-description"), this.slideDescriptionContained = this.slideDescription && jt(this.slideDescription.parentNode, "gslide-media"), this.settings.preload && (this.preloadSlide(t + 1), this.preloadSlide(t - 1)), this.updateNavigationClasses(), this.activeSlide = e;
|
|
2236
2236
|
}
|
|
2237
2237
|
/**
|
|
2238
2238
|
* Preload slides
|
|
@@ -2243,7 +2243,7 @@ class $e {
|
|
|
2243
2243
|
if (t < 0 || t > this.elements.length - 1 || Xt(this.elements[t]))
|
|
2244
2244
|
return !1;
|
|
2245
2245
|
let i = this.slidesContainer.querySelectorAll(".gslide")[t];
|
|
2246
|
-
if (
|
|
2246
|
+
if (jt(i, "loaded"))
|
|
2247
2247
|
return !1;
|
|
2248
2248
|
const s = this.elements[t], e = s.type, a = {
|
|
2249
2249
|
index: t,
|
|
@@ -2302,8 +2302,8 @@ class $e {
|
|
|
2302
2302
|
if (i > n)
|
|
2303
2303
|
this.slidesContainer.appendChild(r);
|
|
2304
2304
|
else {
|
|
2305
|
-
let
|
|
2306
|
-
this.slidesContainer.insertBefore(r,
|
|
2305
|
+
let f = this.slidesContainer.querySelectorAll(".gslide")[i];
|
|
2306
|
+
this.slidesContainer.insertBefore(r, f);
|
|
2307
2307
|
}
|
|
2308
2308
|
(this.settings.preload && this.index == 0 && i == 0 || this.index - 1 == i || this.index + 1 == i) && this.preloadSlide(i), this.index === 0 && i === 0 && (this.index = 1), this.updateNavigationClasses(), h = this.slidesContainer.querySelectorAll(".gslide")[i], d = this.getSlidePlayerInstance(i), a.slideNode = h;
|
|
2309
2309
|
}
|
|
@@ -2494,7 +2494,7 @@ class $e {
|
|
|
2494
2494
|
* @return void
|
|
2495
2495
|
*/
|
|
2496
2496
|
slidePlayerPlay(t) {
|
|
2497
|
-
if (
|
|
2497
|
+
if (We && !this.settings.plyr.config?.muted)
|
|
2498
2498
|
return;
|
|
2499
2499
|
if ($t(t)) {
|
|
2500
2500
|
let s = t.querySelector(".gvideo-wrapper");
|
|
@@ -2518,7 +2518,7 @@ class $e {
|
|
|
2518
2518
|
const a = new pe(s, this, e), r = a.getConfig(), n = Rt({}, r);
|
|
2519
2519
|
n.slideConfig = r, n.instance = a, n.index = e, i.push(n);
|
|
2520
2520
|
}), this.elements = i, this.lightboxOpen && (this.slidesContainer.innerHTML = "", this.elements.length && (nt(this.elements, () => {
|
|
2521
|
-
let s =
|
|
2521
|
+
let s = Ut(this.settings.slideHTML);
|
|
2522
2522
|
this.slidesContainer.appendChild(s);
|
|
2523
2523
|
}), this.showSlide(0, !0)));
|
|
2524
2524
|
}
|
|
@@ -2551,7 +2551,7 @@ class $e {
|
|
|
2551
2551
|
*/
|
|
2552
2552
|
getElements() {
|
|
2553
2553
|
let t = [];
|
|
2554
|
-
this.elements = this.elements ? this.elements : [], !Xt(this.settings.elements) &&
|
|
2554
|
+
this.elements = this.elements ? this.elements : [], !Xt(this.settings.elements) && Ue(this.settings.elements) && this.settings.elements.length && nt(this.settings.elements, (e, a) => {
|
|
2555
2555
|
const r = new pe(e, this, a), n = r.getConfig(), h = Rt({}, n);
|
|
2556
2556
|
h.node = !1, h.index = a, h.instance = r, h.slideConfig = n, t.push(h);
|
|
2557
2557
|
});
|
|
@@ -2614,33 +2614,33 @@ class $e {
|
|
|
2614
2614
|
});
|
|
2615
2615
|
const s = xt(this.settings.svg, "next") ? this.settings.svg.next : "", e = xt(this.settings.svg, "prev") ? this.settings.svg.prev : "", a = xt(this.settings.svg, "close") ? this.settings.svg.close : "";
|
|
2616
2616
|
let r = this.settings.lightboxHTML;
|
|
2617
|
-
r = r.replace(/{nextSVG}/g, s), r = r.replace(/{prevSVG}/g, e), r = r.replace(/{closeSVG}/g, a), r =
|
|
2617
|
+
r = r.replace(/{nextSVG}/g, s), r = r.replace(/{prevSVG}/g, e), r = r.replace(/{closeSVG}/g, a), r = Ut(r), document.body.appendChild(r);
|
|
2618
2618
|
const n = document.getElementById("glightbox-body");
|
|
2619
2619
|
this.modal = n;
|
|
2620
2620
|
let h = n.querySelector(".gclose");
|
|
2621
|
-
this.prevButton = n.querySelector(".gprev"), this.nextButton = n.querySelector(".gnext"), this.overlay = n.querySelector(".goverlay"), this.loader = n.querySelector(".gloader"), this.slidesContainer = document.getElementById("glightbox-slider"), this.bodyHiddenChildElms = i, this.events = {}, Y(this.modal, "glightbox-" + this.settings.skin), this.settings.closeButton && h && (this.events.close =
|
|
2621
|
+
this.prevButton = n.querySelector(".gprev"), this.nextButton = n.querySelector(".gnext"), this.overlay = n.querySelector(".goverlay"), this.loader = n.querySelector(".gloader"), this.slidesContainer = document.getElementById("glightbox-slider"), this.bodyHiddenChildElms = i, this.events = {}, Y(this.modal, "glightbox-" + this.settings.skin), this.settings.closeButton && h && (this.events.close = Bt("click", {
|
|
2622
2622
|
onElement: h,
|
|
2623
|
-
withCallback: (d,
|
|
2623
|
+
withCallback: (d, f) => {
|
|
2624
2624
|
d.preventDefault(), this.close();
|
|
2625
2625
|
}
|
|
2626
|
-
})), h && !this.settings.closeButton && h.parentNode.removeChild(h), this.nextButton && (this.events.next =
|
|
2626
|
+
})), h && !this.settings.closeButton && h.parentNode.removeChild(h), this.nextButton && (this.events.next = Bt("click", {
|
|
2627
2627
|
onElement: this.nextButton,
|
|
2628
|
-
withCallback: (d,
|
|
2628
|
+
withCallback: (d, f) => {
|
|
2629
2629
|
d.preventDefault(), this.nextSlide();
|
|
2630
2630
|
}
|
|
2631
|
-
})), this.prevButton && (this.events.prev =
|
|
2631
|
+
})), this.prevButton && (this.events.prev = Bt("click", {
|
|
2632
2632
|
onElement: this.prevButton,
|
|
2633
|
-
withCallback: (d,
|
|
2633
|
+
withCallback: (d, f) => {
|
|
2634
2634
|
d.preventDefault(), this.prevSlide();
|
|
2635
2635
|
}
|
|
2636
|
-
})), this.settings.closeOnOutsideClick && (this.events.outClose =
|
|
2636
|
+
})), this.settings.closeOnOutsideClick && (this.events.outClose = Bt("click", {
|
|
2637
2637
|
onElement: n,
|
|
2638
|
-
withCallback: (d,
|
|
2639
|
-
!this.preventOutsideClick && !
|
|
2638
|
+
withCallback: (d, f) => {
|
|
2639
|
+
!this.preventOutsideClick && !jt(document.body, "glightbox-mobile") && !Wt(d.target, ".ginner-container") && !Wt(d.target, ".gbtn") && !jt(d.target, "gnext") && !jt(d.target, "gprev") && this.close();
|
|
2640
2640
|
}
|
|
2641
|
-
})), nt(this.elements, (d,
|
|
2642
|
-
this.slidesContainer.appendChild(d.instance.create()), d.slideNode = this.slidesContainer.querySelectorAll(".gslide")[
|
|
2643
|
-
}), Re && Y(document.body, "glightbox-touch"), this.events.resize =
|
|
2641
|
+
})), nt(this.elements, (d, f) => {
|
|
2642
|
+
this.slidesContainer.appendChild(d.instance.create()), d.slideNode = this.slidesContainer.querySelectorAll(".gslide")[f];
|
|
2643
|
+
}), Re && Y(document.body, "glightbox-touch"), this.events.resize = Bt("resize", {
|
|
2644
2644
|
onElement: window,
|
|
2645
2645
|
withCallback: () => {
|
|
2646
2646
|
this.resize();
|
|
@@ -2656,33 +2656,33 @@ class $e {
|
|
|
2656
2656
|
* and images with description
|
|
2657
2657
|
*/
|
|
2658
2658
|
resize(t = null) {
|
|
2659
|
-
if (t = t || this.activeSlide, !t ||
|
|
2659
|
+
if (t = t || this.activeSlide, !t || jt(t, "zoomed"))
|
|
2660
2660
|
return;
|
|
2661
2661
|
const i = Fe(), s = t.querySelector(".gvideo-wrapper"), e = t.querySelector(".gslide-image"), a = this.slideDescription;
|
|
2662
2662
|
let r = i.width, n = i.height;
|
|
2663
2663
|
if (r <= 768 ? Y(document.body, "glightbox-mobile") : wt(document.body, "glightbox-mobile"), !s && !e)
|
|
2664
2664
|
return;
|
|
2665
2665
|
let h = !1;
|
|
2666
|
-
if (a && (
|
|
2666
|
+
if (a && (jt(a, "description-bottom") || jt(a, "description-top")) && !jt(a, "gabsolute") && (h = !0), e) {
|
|
2667
2667
|
if (r <= 768)
|
|
2668
2668
|
e.querySelector("img");
|
|
2669
2669
|
else if (h) {
|
|
2670
|
-
let d = a.offsetHeight,
|
|
2670
|
+
let d = a.offsetHeight, f = e.querySelector("img");
|
|
2671
2671
|
const b = this.elements[this.index].node.getAttribute("data-height") ?? "100vh";
|
|
2672
|
-
|
|
2672
|
+
f.setAttribute("style", `max-height: calc(${b} - ${d}px)`), a.setAttribute("style", `max-width: ${f.offsetWidth}px;`);
|
|
2673
2673
|
}
|
|
2674
2674
|
}
|
|
2675
2675
|
if (s) {
|
|
2676
2676
|
let d = xt(this.settings.plyr.config, "ratio") ? this.settings.plyr.config.ratio : "";
|
|
2677
2677
|
if (!d) {
|
|
2678
|
-
const
|
|
2679
|
-
d = `${
|
|
2678
|
+
const I = s.clientWidth, k = s.clientHeight, at = I / k;
|
|
2679
|
+
d = `${I / at}:${k / at}`;
|
|
2680
2680
|
}
|
|
2681
|
-
let
|
|
2681
|
+
let f = d.split(":"), p = this.settings.videosWidth, b = this.settings.videosWidth;
|
|
2682
2682
|
ve(p) || p.indexOf("px") !== -1 ? b = parseInt(p) : p.indexOf("vw") !== -1 ? b = r * parseInt(p) / 100 : p.indexOf("vh") !== -1 ? b = n * parseInt(p) / 100 : p.indexOf("%") !== -1 ? b = r * parseInt(p) / 100 : b = parseInt(s.clientWidth);
|
|
2683
|
-
let
|
|
2684
|
-
if (
|
|
2685
|
-
let
|
|
2683
|
+
let C = b / (parseInt(f[0]) / parseInt(f[1]));
|
|
2684
|
+
if (C = Math.floor(C), h && (n = n - a.offsetHeight), b > r || C > n || n < C && r > b) {
|
|
2685
|
+
let I = s.offsetWidth, k = s.offsetHeight, at = n / k, ft = { width: I * at };
|
|
2686
2686
|
s.parentNode.setAttribute("style", `max-width: ${ft.width}px`), h && a.setAttribute("style", `max-width: ${ft.width}px;`);
|
|
2687
2687
|
} else
|
|
2688
2688
|
s.parentNode.style.maxWidth = `${p}`, h && a.setAttribute("style", `max-width: ${p};`);
|
|
@@ -2734,7 +2734,7 @@ class $e {
|
|
|
2734
2734
|
this.events = null;
|
|
2735
2735
|
}
|
|
2736
2736
|
const t = document.body;
|
|
2737
|
-
wt(
|
|
2737
|
+
wt(Te, "glightbox-open"), wt(t, "glightbox-open touching gdesc-open glightbox-touch glightbox-mobile gscrollbar-fixer"), this.modal.parentNode.removeChild(this.modal), this.trigger("close"), X(this.settings.onClose) && this.settings.onClose();
|
|
2738
2738
|
const i = document.querySelector(".gcss-styles");
|
|
2739
2739
|
i && i.parentNode.removeChild(i), this.lightboxOpen = !1, this.closing = null;
|
|
2740
2740
|
});
|
|
@@ -2784,43 +2784,116 @@ class $e {
|
|
|
2784
2784
|
* Get Version
|
|
2785
2785
|
*/
|
|
2786
2786
|
version() {
|
|
2787
|
-
return
|
|
2787
|
+
return ji;
|
|
2788
2788
|
}
|
|
2789
2789
|
}
|
|
2790
2790
|
class Ci {
|
|
2791
2791
|
constructor(t = {}) {
|
|
2792
|
-
this.animationTime = t.animationTime ?? 800, this.frameRate = t.frameRate ?? 150, this.stepSize = t.stepSize ?? 120, this.accelerationDelta = t.accelerationDelta ?? 300, this.accelerationMax = t.accelerationMax ?? 2, this.pulseScale = t.pulseScale ?? 4, this.pulseNormalize = 1
|
|
2792
|
+
this.animationTime = t.animationTime ?? 800, this.frameRate = t.frameRate ?? 150, this.stepSize = t.stepSize ?? 120, this.accelerationDelta = t.accelerationDelta ?? 300, this.accelerationMax = t.accelerationMax ?? 2, this.pulseScale = t.pulseScale ?? 4, this.pulseNormalize = 1, this.keyboardSupport = t.keyboardSupport ?? !0, this.arrowScroll = t.arrowScroll ?? 50, this.fixedBackground = t.fixedBackground ?? !1, this.queue = [], this.pending = !1, this.lastScrollTime = Date.now(), this.direction = { x: 0, y: 0 }, this.activeElement = null, this.deltaBuffer = [], this.deltaBufferTimer = null, this.isMac = /^Mac/.test(navigator.platform), this.scrollBehaviorCache = /* @__PURE__ */ new WeakMap(), this.pulseNormalize = 1 / this._pulseRaw(1), this._init();
|
|
2793
2793
|
}
|
|
2794
2794
|
_init() {
|
|
2795
|
-
|
|
2795
|
+
const t = "onwheel" in document.createElement("div") ? "wheel" : "mousewheel";
|
|
2796
|
+
window.addEventListener(t, this._onWheel.bind(this), { passive: !1 }), this.keyboardSupport && window.addEventListener("keydown", this._onKeydown.bind(this), !1), window.addEventListener("mousedown", this._onMousedown.bind(this), !1), this.fixedBackground || (document.body.style.backgroundAttachment = "scroll", document.documentElement.style.backgroundAttachment = "scroll");
|
|
2796
2797
|
}
|
|
2797
2798
|
destroy() {
|
|
2798
|
-
|
|
2799
|
+
const t = "onwheel" in document.createElement("div") ? "wheel" : "mousewheel";
|
|
2800
|
+
window.removeEventListener(t, this._onWheel.bind(this)), window.removeEventListener("keydown", this._onKeydown.bind(this)), window.removeEventListener("mousedown", this._onMousedown.bind(this)), this.queue = [], this.pending = !1;
|
|
2801
|
+
}
|
|
2802
|
+
_onMousedown(t) {
|
|
2803
|
+
this.activeElement = t.target;
|
|
2804
|
+
}
|
|
2805
|
+
_onKeydown(t) {
|
|
2806
|
+
const i = t.target, s = t.ctrlKey || t.altKey || t.metaKey || t.shiftKey && t.code !== "Space", e = /^(textarea|select|embed|object)$/i, a = /^(button|submit|radio|checkbox|file|color|image)$/i;
|
|
2807
|
+
if (t.defaultPrevented || e.test(i.nodeName) || i.nodeName === "INPUT" && !a.test(i.type) || i.isContentEditable || s)
|
|
2808
|
+
return !0;
|
|
2809
|
+
let r = 0, n = 0;
|
|
2810
|
+
const h = this._findScrollableAncestor(this.activeElement || document.activeElement);
|
|
2811
|
+
if (!h) return;
|
|
2812
|
+
const d = h === document.body ? window.innerHeight : h.clientHeight;
|
|
2813
|
+
switch (t.code) {
|
|
2814
|
+
case "ArrowUp":
|
|
2815
|
+
n = -this.arrowScroll;
|
|
2816
|
+
break;
|
|
2817
|
+
case "ArrowDown":
|
|
2818
|
+
n = this.arrowScroll;
|
|
2819
|
+
break;
|
|
2820
|
+
case "Space":
|
|
2821
|
+
n = -(t.shiftKey ? 1 : -1) * d * 0.9;
|
|
2822
|
+
break;
|
|
2823
|
+
case "PageUp":
|
|
2824
|
+
n = -d * 0.9;
|
|
2825
|
+
break;
|
|
2826
|
+
case "PageDown":
|
|
2827
|
+
n = d * 0.9;
|
|
2828
|
+
break;
|
|
2829
|
+
case "Home":
|
|
2830
|
+
n = -h.scrollTop;
|
|
2831
|
+
break;
|
|
2832
|
+
case "End":
|
|
2833
|
+
const p = h.scrollHeight - h.scrollTop - d;
|
|
2834
|
+
n = p > 0 ? p + 10 : 0;
|
|
2835
|
+
break;
|
|
2836
|
+
case "ArrowLeft":
|
|
2837
|
+
r = -this.arrowScroll;
|
|
2838
|
+
break;
|
|
2839
|
+
case "ArrowRight":
|
|
2840
|
+
r = this.arrowScroll;
|
|
2841
|
+
break;
|
|
2842
|
+
default:
|
|
2843
|
+
return !0;
|
|
2844
|
+
}
|
|
2845
|
+
this._enqueueScroll(h, r, n), t.preventDefault();
|
|
2799
2846
|
}
|
|
2800
2847
|
_onWheel(t) {
|
|
2801
2848
|
if (t.ctrlKey || t.defaultPrevented) return;
|
|
2802
|
-
let i = t.deltaX, s = t.deltaY;
|
|
2803
|
-
|
|
2849
|
+
let i = -t.wheelDeltaX || t.deltaX || 0, s = -t.wheelDeltaY || t.deltaY || 0;
|
|
2850
|
+
if (this.isMac && (t.wheelDeltaX && this._isDivisible(t.wheelDeltaX, 120) && (i = -120 * (t.wheelDeltaX / Math.abs(t.wheelDeltaX))), t.wheelDeltaY && this._isDivisible(t.wheelDeltaY, 120) && (s = -120 * (t.wheelDeltaY / Math.abs(t.wheelDeltaY)))), !i && !s && (s = -t.wheelDelta || 0), t.deltaMode === 1 && (i *= 40, s *= 40), this._isTouchpad(s))
|
|
2851
|
+
return !0;
|
|
2852
|
+
Math.abs(i) > 1.2 && (i *= this.stepSize / 120), Math.abs(s) > 1.2 && (s *= this.stepSize / 120);
|
|
2804
2853
|
const e = t.target, a = this._findScrollableAncestor(e);
|
|
2805
2854
|
if (!a) return;
|
|
2806
|
-
const r =
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2855
|
+
const r = Math.sign(i), n = Math.sign(s);
|
|
2856
|
+
(r !== this.direction.x || n !== this.direction.y) && (this.direction = { x: r, y: n }, this.queue = [], this.lastScrollTime = 0);
|
|
2857
|
+
const h = Date.now(), d = h - this.lastScrollTime;
|
|
2858
|
+
if (d < this.accelerationDelta) {
|
|
2859
|
+
const f = (1 + 50 / d) / 2;
|
|
2860
|
+
if (f > 1) {
|
|
2861
|
+
const p = Math.min(f, this.accelerationMax);
|
|
2862
|
+
i *= p, s *= p;
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2865
|
+
this.lastScrollTime = h, this._enqueueScroll(a, i, s), t.preventDefault();
|
|
2866
|
+
}
|
|
2867
|
+
_isDivisible(t, i) {
|
|
2868
|
+
return Math.floor(t / i) === t / i;
|
|
2869
|
+
}
|
|
2870
|
+
_isTouchpad(t) {
|
|
2871
|
+
if (!t) return !1;
|
|
2872
|
+
this.deltaBuffer.length || (this.deltaBuffer = [t, t, t]);
|
|
2873
|
+
const i = Math.abs(t);
|
|
2874
|
+
this.deltaBuffer.push(i), this.deltaBuffer.shift(), clearTimeout(this.deltaBufferTimer), this.deltaBufferTimer = setTimeout(() => {
|
|
2875
|
+
this.deltaBuffer = [];
|
|
2876
|
+
}, 1e3);
|
|
2877
|
+
const s = this.deltaBuffer.every((n) => this._isDivisible(n, 120)), e = this.deltaBuffer.every((n) => this._isDivisible(n, 100)), a = i > 120 && this.deltaBuffer.every((n) => this._isDivisible(n, i)), r = !s && !e && !a;
|
|
2878
|
+
return i < 50 ? !0 : r;
|
|
2811
2879
|
}
|
|
2812
2880
|
_findScrollableAncestor(t) {
|
|
2813
2881
|
const i = document.scrollingElement || document.documentElement;
|
|
2814
2882
|
let s = t;
|
|
2815
2883
|
for (; s && s !== document.body; ) {
|
|
2816
|
-
const
|
|
2817
|
-
if (
|
|
2884
|
+
const e = window.getComputedStyle(s), a = e.overflowY, r = e.overflowX, n = ["auto", "scroll"].includes(a), h = ["auto", "scroll"].includes(r), d = s.scrollHeight > s.clientHeight, f = s.scrollWidth > s.clientWidth;
|
|
2885
|
+
if (n && d || h && f)
|
|
2886
|
+
return s;
|
|
2818
2887
|
if (s === i) return i;
|
|
2819
2888
|
s = s.parentElement;
|
|
2820
2889
|
}
|
|
2821
2890
|
return i;
|
|
2822
2891
|
}
|
|
2823
2892
|
_enqueueScroll(t, i, s) {
|
|
2893
|
+
if (!this.scrollBehaviorCache.has(t)) {
|
|
2894
|
+
const e = window.getComputedStyle(t).scrollBehavior;
|
|
2895
|
+
e === "smooth" && (this.scrollBehaviorCache.set(t, e), t.style.scrollBehavior = "auto");
|
|
2896
|
+
}
|
|
2824
2897
|
this.queue.push({
|
|
2825
2898
|
element: t,
|
|
2826
2899
|
x: i,
|
|
@@ -2831,30 +2904,41 @@ class Ci {
|
|
|
2831
2904
|
}), this.pending || (this._animate(t), this.pending = !0);
|
|
2832
2905
|
}
|
|
2833
2906
|
_animate(t) {
|
|
2834
|
-
const i =
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2907
|
+
const i = () => {
|
|
2908
|
+
const s = Date.now();
|
|
2909
|
+
let e = 0, a = 0;
|
|
2910
|
+
for (let n = this.queue.length - 1; n >= 0; n--) {
|
|
2911
|
+
const h = this.queue[n], d = s - h.start, f = d >= this.animationTime, p = f ? 1 : d / this.animationTime, b = this._pulse(p), C = h.x * b - h.lastX >> 0, I = h.y * b - h.lastY >> 0;
|
|
2912
|
+
e += C, a += I, h.lastX += C, h.lastY += I, f && this.queue.splice(n, 1);
|
|
2913
|
+
}
|
|
2914
|
+
if (t === document.scrollingElement || t === document.documentElement || t === document.body ? window.scrollBy(e, a) : (e && (t.scrollLeft += e), a && (t.scrollTop += a)), this.queue.length > 0)
|
|
2915
|
+
requestAnimationFrame(i);
|
|
2916
|
+
else if (this.pending = !1, this.scrollBehaviorCache.has(t)) {
|
|
2917
|
+
const n = this.scrollBehaviorCache.get(t);
|
|
2918
|
+
t.style.scrollBehavior = n, this.scrollBehaviorCache.delete(t);
|
|
2919
|
+
}
|
|
2920
|
+
};
|
|
2921
|
+
requestAnimationFrame(i);
|
|
2841
2922
|
}
|
|
2842
2923
|
_pulseRaw(t) {
|
|
2843
2924
|
if (t *= this.pulseScale, t < 1)
|
|
2844
2925
|
return t - (1 - Math.exp(-t));
|
|
2845
2926
|
{
|
|
2846
|
-
const i = Math.exp(-1)
|
|
2927
|
+
const i = Math.exp(-1);
|
|
2928
|
+
t -= 1;
|
|
2929
|
+
const s = 1 - Math.exp(-t);
|
|
2847
2930
|
return i + s * (1 - i);
|
|
2848
2931
|
}
|
|
2849
2932
|
}
|
|
2850
2933
|
_pulse(t) {
|
|
2851
|
-
return t
|
|
2934
|
+
return t >= 1 ? 1 : t <= 0 ? 0 : this._pulseRaw(t) * this.pulseNormalize;
|
|
2852
2935
|
}
|
|
2853
2936
|
}
|
|
2854
|
-
class
|
|
2937
|
+
class Vi {
|
|
2855
2938
|
constructor(t = {}) {
|
|
2856
2939
|
const i = {
|
|
2857
|
-
skin: "light"
|
|
2940
|
+
skin: "light",
|
|
2941
|
+
smoothScroll: !0
|
|
2858
2942
|
};
|
|
2859
2943
|
this.settings = Object.assign(this, i, t), window.pageReRender = () => {
|
|
2860
2944
|
this.pageReRender();
|
|
@@ -2865,7 +2949,7 @@ class ki {
|
|
|
2865
2949
|
Je.init({
|
|
2866
2950
|
duration: 1200
|
|
2867
2951
|
});
|
|
2868
|
-
}, 300), new Ci();
|
|
2952
|
+
}, 300), this.settings.smoothScroll && new Ci();
|
|
2869
2953
|
}
|
|
2870
2954
|
prepareContent() {
|
|
2871
2955
|
const t = document.querySelector(".is-wrapper");
|
|
@@ -2888,17 +2972,17 @@ class ki {
|
|
|
2888
2972
|
let d = n.getAttribute("href");
|
|
2889
2973
|
if (d && d.indexOf("#") === 0)
|
|
2890
2974
|
if (d.indexOf("#section") === 0) {
|
|
2891
|
-
let
|
|
2892
|
-
if (!isNaN(parseInt(
|
|
2893
|
-
let p = document.querySelectorAll(".is-section"), b,
|
|
2894
|
-
p.forEach(function(
|
|
2895
|
-
|
|
2975
|
+
let f = d.replace("#section", "");
|
|
2976
|
+
if (!isNaN(parseInt(f))) {
|
|
2977
|
+
let p = document.querySelectorAll(".is-section"), b, C = 0;
|
|
2978
|
+
p.forEach(function(I) {
|
|
2979
|
+
I.classList.contains("is-section-navbar") || (C === f - 1 && (b = I), C++);
|
|
2896
2980
|
}), b && scrollIt(b, 1e3, "easeInQuad"), h.preventDefault();
|
|
2897
2981
|
}
|
|
2898
2982
|
} else
|
|
2899
2983
|
try {
|
|
2900
|
-
let
|
|
2901
|
-
|
|
2984
|
+
let f = document.querySelector(d);
|
|
2985
|
+
f && (scrollIt(f, 1e3, "easeInQuad"), h.preventDefault());
|
|
2902
2986
|
} catch {
|
|
2903
2987
|
}
|
|
2904
2988
|
});
|
|
@@ -2964,12 +3048,12 @@ class ki {
|
|
|
2964
3048
|
let a;
|
|
2965
3049
|
e ? a = document.querySelectorAll(".is-wrapper .section-pin") : a = document.querySelectorAll(".is-wrapper:not(.is-edit) .section-pin"), a.length > 0 && window.scrollTo(0, 0), a.forEach(function(n) {
|
|
2966
3050
|
s <= 970 && n.querySelector(".is-box") && (n.querySelectorAll(".is-box").forEach((d) => {
|
|
2967
|
-
const
|
|
3051
|
+
const f = n.cloneNode(!1);
|
|
2968
3052
|
d.getAttributeNames().map((p) => {
|
|
2969
|
-
p.indexOf("data-") !== -1 &&
|
|
2970
|
-
}),
|
|
2971
|
-
(p.indexOf("is-box-") !== -1 || p.indexOf("is-content-") !== -1 || p.indexOf("box-autofit") !== -1 || p.indexOf("is-light-text") !== -1 || p.indexOf("is-dark-text") !== -1 || p.indexOf("is-align-") !== -1 || p.indexOf("type-") !== -1 || p.indexOf("block-click") !== -1 || p.indexOf("hover-zoom") !== -1) &&
|
|
2972
|
-
}),
|
|
3053
|
+
p.indexOf("data-") !== -1 && f.setAttribute(p, d.getAttribute(p));
|
|
3054
|
+
}), f.classList.add("is-box"), d.classList.forEach((p) => {
|
|
3055
|
+
(p.indexOf("is-box-") !== -1 || p.indexOf("is-content-") !== -1 || p.indexOf("box-autofit") !== -1 || p.indexOf("is-light-text") !== -1 || p.indexOf("is-dark-text") !== -1 || p.indexOf("is-align-") !== -1 || p.indexOf("type-") !== -1 || p.indexOf("block-click") !== -1 || p.indexOf("hover-zoom") !== -1) && f.classList.add(p);
|
|
3056
|
+
}), f.setAttribute("data-section-clone", ""), f.innerHTML = d.innerHTML, n.parentNode.insertBefore(f, n);
|
|
2973
3057
|
}), n.setAttribute("data-section-original", ""), n.style.display = "none");
|
|
2974
3058
|
}), e ? a = document.querySelectorAll(".is-wrapper .section-pin") : a = document.querySelectorAll(".is-wrapper:not(.is-edit) .section-pin"), a.forEach(function(n) {
|
|
2975
3059
|
if (n.parentNode.closest(".section-wrap") || s <= 970 && n.hasAttribute("data-section-original")) return;
|
|
@@ -2978,10 +3062,10 @@ class ki {
|
|
|
2978
3062
|
});
|
|
2979
3063
|
const r = (n) => {
|
|
2980
3064
|
document.querySelectorAll(".is-section").forEach((d) => {
|
|
2981
|
-
const
|
|
3065
|
+
const f = d.getBoundingClientRect().top;
|
|
2982
3066
|
let p, b;
|
|
2983
|
-
d.parentNode.classList.contains("pin-wrap") ? (p = d.parentNode.nextElementSibling, b = d.parentNode.previousElementSibling) : (p = d.nextElementSibling, b = d.previousElementSibling), p && p.classList.contains("pin-wrap") && (p = p.querySelector(".is-section")), b && b.classList.contains("pin-wrap") && (b = b.querySelector(".is-section")),
|
|
2984
|
-
|
|
3067
|
+
d.parentNode.classList.contains("pin-wrap") ? (p = d.parentNode.nextElementSibling, b = d.parentNode.previousElementSibling) : (p = d.nextElementSibling, b = d.previousElementSibling), p && p.classList.contains("pin-wrap") && (p = p.querySelector(".is-section")), b && b.classList.contains("pin-wrap") && (b = b.querySelector(".is-section")), f <= 0 && ((d.classList.contains("no-spacing") || d.classList.contains("pin-overlap")) && d.classList.add("section-inview"), document.querySelectorAll(".is-section").forEach((I) => {
|
|
3068
|
+
I !== d && I.classList.remove("section-inview");
|
|
2985
3069
|
}));
|
|
2986
3070
|
});
|
|
2987
3071
|
};
|
|
@@ -3104,13 +3188,13 @@ class ki {
|
|
|
3104
3188
|
if (i) {
|
|
3105
3189
|
const n = i.closest("[data-gallery]");
|
|
3106
3190
|
let h = [];
|
|
3107
|
-
n ? h = n.querySelectorAll(".is-lightbox") : document.querySelectorAll(".is-lightbox,.block-click").forEach((
|
|
3108
|
-
|
|
3109
|
-
}), h.forEach((d,
|
|
3191
|
+
n ? h = n.querySelectorAll(".is-lightbox") : document.querySelectorAll(".is-lightbox,.block-click").forEach((f) => {
|
|
3192
|
+
f.closest("[data-gallery]") || h.push(f);
|
|
3193
|
+
}), h.forEach((d, f) => {
|
|
3110
3194
|
let p = d.getAttribute("href");
|
|
3111
3195
|
p || (p = d.getAttribute("data-modal-url")), e.push({
|
|
3112
3196
|
href: p
|
|
3113
|
-
}), t === p && (a =
|
|
3197
|
+
}), t === p && (a = f);
|
|
3114
3198
|
});
|
|
3115
3199
|
}
|
|
3116
3200
|
const r = document.activeElement;
|
|
@@ -3211,25 +3295,25 @@ class ki {
|
|
|
3211
3295
|
n.push(b);
|
|
3212
3296
|
}
|
|
3213
3297
|
}
|
|
3214
|
-
n = [...new Set(n)], n.sort((d,
|
|
3298
|
+
n = [...new Set(n)], n.sort((d, f) => f - d);
|
|
3215
3299
|
for (let d = 0; d < n.length; d++) {
|
|
3216
|
-
const
|
|
3300
|
+
const f = n[d];
|
|
3217
3301
|
if (d === 0) {
|
|
3218
|
-
if (a >
|
|
3302
|
+
if (a > f) {
|
|
3219
3303
|
let p = r.getAttribute("data--h");
|
|
3220
3304
|
p ? r.style.height = p : r.style.height = "";
|
|
3221
3305
|
}
|
|
3222
3306
|
} else {
|
|
3223
3307
|
const p = n[d - 1];
|
|
3224
|
-
if (p >= a && a >
|
|
3308
|
+
if (p >= a && a > f) {
|
|
3225
3309
|
let b = r.getAttribute("data--h-" + p);
|
|
3226
3310
|
b && (r.style.height = b);
|
|
3227
3311
|
}
|
|
3228
3312
|
}
|
|
3229
3313
|
}
|
|
3230
3314
|
if (n.length > 0 && n[n.length - 1] >= a) {
|
|
3231
|
-
const
|
|
3232
|
-
let p = r.getAttribute("data--h-" +
|
|
3315
|
+
const f = n[n.length - 1];
|
|
3316
|
+
let p = r.getAttribute("data--h-" + f);
|
|
3233
3317
|
p && (r.style.height = p);
|
|
3234
3318
|
}
|
|
3235
3319
|
}), document.querySelectorAll(".is-block").forEach((r) => {
|
|
@@ -3241,29 +3325,29 @@ class ki {
|
|
|
3241
3325
|
let n = [];
|
|
3242
3326
|
const h = r.attributes;
|
|
3243
3327
|
for (let d = 0; d < h.length; d++) {
|
|
3244
|
-
const
|
|
3245
|
-
let p =
|
|
3328
|
+
const f = h[d].name;
|
|
3329
|
+
let p = f.match(/^data--t-(\d+)$/);
|
|
3246
3330
|
if (p) {
|
|
3247
3331
|
const b = parseInt(p[1], 10);
|
|
3248
3332
|
n.push(b);
|
|
3249
3333
|
}
|
|
3250
|
-
if (p =
|
|
3334
|
+
if (p = f.match(/^data--w-(\d+)$/), p) {
|
|
3251
3335
|
const b = parseInt(p[1], 10);
|
|
3252
3336
|
n.push(b);
|
|
3253
3337
|
}
|
|
3254
|
-
if (p =
|
|
3338
|
+
if (p = f.match(/^data--transform-(\d+)$/), p) {
|
|
3255
3339
|
const b = parseInt(p[1], 10);
|
|
3256
3340
|
n.push(b);
|
|
3257
3341
|
}
|
|
3258
3342
|
}
|
|
3259
|
-
n = [...new Set(n)], n.sort((d,
|
|
3343
|
+
n = [...new Set(n)], n.sort((d, f) => f - d);
|
|
3260
3344
|
for (let d = 0; d < n.length; d++) {
|
|
3261
|
-
const
|
|
3345
|
+
const f = n[d];
|
|
3262
3346
|
if (d === 0)
|
|
3263
|
-
a >
|
|
3347
|
+
a > f && t.apply(r, 1e4, e);
|
|
3264
3348
|
else {
|
|
3265
3349
|
const p = n[d - 1];
|
|
3266
|
-
p >= a && a >
|
|
3350
|
+
p >= a && a > f && t.apply(r, p, e);
|
|
3267
3351
|
}
|
|
3268
3352
|
}
|
|
3269
3353
|
if (n.length > 0) {
|
|
@@ -3295,5 +3379,5 @@ class ki {
|
|
|
3295
3379
|
}
|
|
3296
3380
|
}
|
|
3297
3381
|
export {
|
|
3298
|
-
|
|
3382
|
+
Vi as default
|
|
3299
3383
|
};
|