lumina-slides 8.0.0 → 8.1.0
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/layout-embedded.json +65 -0
- package/dist/lumina-slides.js +627 -611
- package/dist/lumina-slides.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/lumina-slides.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { reactive as
|
|
1
|
+
var on = Object.defineProperty;
|
|
2
|
+
var ln = (o, t, e) => t in o ? on(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
3
|
+
var ze = (o, t, e) => ln(o, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { reactive as un, readonly as fn, inject as Ye, computed as mt, onMounted as nr, onUnmounted as sr, defineComponent as Kt, ref as ar, createElementBlock as B, openBlock as z, createElementVNode as P, createCommentVNode as gt, createVNode as Fi, normalizeStyle as or, Transition as Li, withCtx as Gt, toDisplayString as I, unref as kt, createBlock as ue, resolveDynamicComponent as hn, normalizeClass as U, nextTick as cn, renderSlot as Ni, Fragment as qe, renderList as Xe, createTextVNode as dn, createApp as _n } from "vue";
|
|
5
5
|
const Oe = Symbol("LuminaStore"), pn = {
|
|
6
6
|
loop: !1,
|
|
7
7
|
navigation: !0,
|
|
@@ -29,7 +29,7 @@ const Oe = Symbol("LuminaStore"), pn = {
|
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
function mn(o = {}) {
|
|
32
|
-
const t =
|
|
32
|
+
const t = un({
|
|
33
33
|
deck: null,
|
|
34
34
|
currentIndex: 0,
|
|
35
35
|
options: { ...pn, ...o },
|
|
@@ -61,7 +61,7 @@ function mn(o = {}) {
|
|
|
61
61
|
t.deck && h >= 0 && h < t.deck.slides.length && (t.currentIndex = h);
|
|
62
62
|
}
|
|
63
63
|
return {
|
|
64
|
-
state:
|
|
64
|
+
state: fn(t),
|
|
65
65
|
currentSlide: e,
|
|
66
66
|
hasNext: i,
|
|
67
67
|
hasPrev: r,
|
|
@@ -79,9 +79,9 @@ function gn() {
|
|
|
79
79
|
throw new Error("Lumina: Component must be used within a Lumina instance.");
|
|
80
80
|
return {
|
|
81
81
|
// State
|
|
82
|
-
slide:
|
|
83
|
-
index:
|
|
84
|
-
total:
|
|
82
|
+
slide: mt(() => o.currentSlide()),
|
|
83
|
+
index: mt(() => o.state.currentIndex),
|
|
84
|
+
total: mt(() => {
|
|
85
85
|
var t;
|
|
86
86
|
return ((t = o.state.deck) == null ? void 0 : t.slides.length) || 0;
|
|
87
87
|
}),
|
|
@@ -113,7 +113,7 @@ function yn() {
|
|
|
113
113
|
}
|
|
114
114
|
class vn {
|
|
115
115
|
constructor() {
|
|
116
|
-
|
|
116
|
+
ze(this, "handlers", /* @__PURE__ */ new Map());
|
|
117
117
|
}
|
|
118
118
|
on(t, e) {
|
|
119
119
|
this.handlers.has(t) || this.handlers.set(t, /* @__PURE__ */ new Set()), this.handlers.get(t).add(e);
|
|
@@ -137,12 +137,12 @@ class vn {
|
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
const _e = new vn();
|
|
140
|
-
function
|
|
140
|
+
function St(o) {
|
|
141
141
|
if (o === void 0)
|
|
142
142
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
143
143
|
return o;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function lr(o, t) {
|
|
146
146
|
o.prototype = Object.create(t.prototype), o.prototype.constructor = o, o.__proto__ = t;
|
|
147
147
|
}
|
|
148
148
|
/*!
|
|
@@ -153,7 +153,7 @@ function or(o, t) {
|
|
|
153
153
|
* Subject to the terms at https://gsap.com/standard-license
|
|
154
154
|
* @author: Jack Doyle, jack@greensock.com
|
|
155
155
|
*/
|
|
156
|
-
var
|
|
156
|
+
var ut = {
|
|
157
157
|
autoSleep: 120,
|
|
158
158
|
force3D: "auto",
|
|
159
159
|
nullTargetWarn: 1,
|
|
@@ -164,7 +164,7 @@ var lt = {
|
|
|
164
164
|
duration: 0.5,
|
|
165
165
|
overwrite: !1,
|
|
166
166
|
delay: 0
|
|
167
|
-
}, gi,
|
|
167
|
+
}, gi, H, F, dt = 1e8, E = 1 / dt, ri = Math.PI * 2, xn = ri / 4, bn = 0, ur = Math.sqrt, wn = Math.cos, Tn = Math.sin, G = function(t) {
|
|
168
168
|
return typeof t == "string";
|
|
169
169
|
}, V = function(t) {
|
|
170
170
|
return typeof t == "function";
|
|
@@ -172,51 +172,51 @@ var lt = {
|
|
|
172
172
|
return typeof t == "number";
|
|
173
173
|
}, yi = function(t) {
|
|
174
174
|
return typeof t > "u";
|
|
175
|
-
},
|
|
175
|
+
}, wt = function(t) {
|
|
176
176
|
return typeof t == "object";
|
|
177
|
-
},
|
|
177
|
+
}, tt = function(t) {
|
|
178
178
|
return t !== !1;
|
|
179
179
|
}, vi = function() {
|
|
180
180
|
return typeof window < "u";
|
|
181
|
-
},
|
|
182
|
-
return V(t) ||
|
|
183
|
-
},
|
|
184
|
-
},
|
|
185
|
-
return (Fe = ne(t,
|
|
181
|
+
}, Ae = function(t) {
|
|
182
|
+
return V(t) || G(t);
|
|
183
|
+
}, fr = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
|
|
184
|
+
}, Z = Array.isArray, kn = /random\([^)]+\)/g, Sn = /,\s*/g, $i = /(?:-?\.?\d|\.)+/gi, hr = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, Zt = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Ke = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, cr = /[+-]=-?[.\d]+/, Pn = /[^,'"\[\]\s]+/gi, On = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, N, vt, ni, xi, ft = {}, Fe = {}, dr, _r = function(t) {
|
|
185
|
+
return (Fe = ne(t, ft)) && nt;
|
|
186
186
|
}, bi = function(t, e) {
|
|
187
187
|
return console.warn("Invalid property", t, "set to", e, "Missing plugin? gsap.registerPlugin()");
|
|
188
188
|
}, xe = function(t, e) {
|
|
189
189
|
return !e && console.warn(t);
|
|
190
|
-
},
|
|
191
|
-
return t && (
|
|
190
|
+
}, pr = function(t, e) {
|
|
191
|
+
return t && (ft[t] = e) && Fe && (Fe[t] = e) || ft;
|
|
192
192
|
}, be = function() {
|
|
193
193
|
return 0;
|
|
194
194
|
}, Cn = {
|
|
195
195
|
suppressEvents: !0,
|
|
196
196
|
isStart: !0,
|
|
197
197
|
kill: !1
|
|
198
|
-
},
|
|
198
|
+
}, Ee = {
|
|
199
199
|
suppressEvents: !0,
|
|
200
200
|
kill: !1
|
|
201
201
|
}, Mn = {
|
|
202
202
|
suppressEvents: !0
|
|
203
|
-
}, wi = {},
|
|
203
|
+
}, wi = {}, At = [], si = {}, mr, st = {}, He = {}, Bi = 30, Re = [], Ti = "", ki = function(t) {
|
|
204
204
|
var e = t[0], i, r;
|
|
205
|
-
if (
|
|
206
|
-
for (r =
|
|
205
|
+
if (wt(e) || V(e) || (t = [t]), !(i = (e._gsap || {}).harness)) {
|
|
206
|
+
for (r = Re.length; r-- && !Re[r].targetTest(e); )
|
|
207
207
|
;
|
|
208
|
-
i =
|
|
208
|
+
i = Re[r];
|
|
209
209
|
}
|
|
210
210
|
for (r = t.length; r--; )
|
|
211
|
-
t[r] && (t[r]._gsap || (t[r]._gsap = new
|
|
211
|
+
t[r] && (t[r]._gsap || (t[r]._gsap = new Br(t[r], i))) || t.splice(r, 1);
|
|
212
212
|
return t;
|
|
213
213
|
}, qt = function(t) {
|
|
214
|
-
return t._gsap || ki(
|
|
215
|
-
},
|
|
214
|
+
return t._gsap || ki(_t(t))[0]._gsap;
|
|
215
|
+
}, gr = function(t, e, i) {
|
|
216
216
|
return (i = t[e]) && V(i) ? t[e]() : yi(i) && t.getAttribute && t.getAttribute(e) || i;
|
|
217
|
-
},
|
|
217
|
+
}, et = function(t, e) {
|
|
218
218
|
return (t = t.split(",")).forEach(e) || t;
|
|
219
|
-
},
|
|
219
|
+
}, Y = function(t) {
|
|
220
220
|
return Math.round(t * 1e5) / 1e5 || 0;
|
|
221
221
|
}, L = function(t) {
|
|
222
222
|
return Math.round(t * 1e7) / 1e7 || 0;
|
|
@@ -228,23 +228,23 @@ var lt = {
|
|
|
228
228
|
;
|
|
229
229
|
return r < i;
|
|
230
230
|
}, Le = function() {
|
|
231
|
-
var t =
|
|
232
|
-
for (si = {},
|
|
231
|
+
var t = At.length, e = At.slice(0), i, r;
|
|
232
|
+
for (si = {}, At.length = 0, i = 0; i < t; i++)
|
|
233
233
|
r = e[i], r && r._lazy && (r.render(r._lazy[0], r._lazy[1], !0)._lazy = 0);
|
|
234
234
|
}, Si = function(t) {
|
|
235
235
|
return !!(t._initted || t._startAt || t.add);
|
|
236
|
-
},
|
|
237
|
-
|
|
238
|
-
}, yr = function(t) {
|
|
239
|
-
var e = parseFloat(t);
|
|
240
|
-
return (e || e === 0) && (t + "").match(Pn).length < 2 ? e : W(t) ? t.trim() : t;
|
|
236
|
+
}, yr = function(t, e, i, r) {
|
|
237
|
+
At.length && !H && Le(), t.render(e, i, !!(H && e < 0 && Si(t))), At.length && !H && Le();
|
|
241
238
|
}, vr = function(t) {
|
|
239
|
+
var e = parseFloat(t);
|
|
240
|
+
return (e || e === 0) && (t + "").match(Pn).length < 2 ? e : G(t) ? t.trim() : t;
|
|
241
|
+
}, xr = function(t) {
|
|
242
242
|
return t;
|
|
243
|
-
},
|
|
243
|
+
}, ht = function(t, e) {
|
|
244
244
|
for (var i in e)
|
|
245
245
|
i in t || (t[i] = e[i]);
|
|
246
246
|
return t;
|
|
247
|
-
},
|
|
247
|
+
}, zn = function(t) {
|
|
248
248
|
return function(e, i) {
|
|
249
249
|
for (var r in i)
|
|
250
250
|
r in e || r === "duration" && t || r === "ease" || (e[r] = i[r]);
|
|
@@ -255,24 +255,24 @@ var lt = {
|
|
|
255
255
|
return t;
|
|
256
256
|
}, Vi = function o(t, e) {
|
|
257
257
|
for (var i in e)
|
|
258
|
-
i !== "__proto__" && i !== "constructor" && i !== "prototype" && (t[i] =
|
|
258
|
+
i !== "__proto__" && i !== "constructor" && i !== "prototype" && (t[i] = wt(e[i]) ? o(t[i] || (t[i] = {}), e[i]) : e[i]);
|
|
259
259
|
return t;
|
|
260
|
-
},
|
|
260
|
+
}, Ne = function(t, e) {
|
|
261
261
|
var i = {}, r;
|
|
262
262
|
for (r in t)
|
|
263
263
|
r in e || (i[r] = t[r]);
|
|
264
264
|
return i;
|
|
265
265
|
}, ge = function(t) {
|
|
266
|
-
var e = t.parent ||
|
|
267
|
-
if (
|
|
266
|
+
var e = t.parent || N, i = t.keyframes ? zn(Z(t.keyframes)) : ht;
|
|
267
|
+
if (tt(t.inherit))
|
|
268
268
|
for (; e; )
|
|
269
269
|
i(t, e.vars.defaults), e = e.parent || e._dp;
|
|
270
270
|
return t;
|
|
271
|
-
},
|
|
271
|
+
}, An = function(t, e) {
|
|
272
272
|
for (var i = t.length, r = i === e.length; r && i-- && t[i] === e[i]; )
|
|
273
273
|
;
|
|
274
274
|
return i < 0;
|
|
275
|
-
},
|
|
275
|
+
}, br = function(t, e, i, r, n) {
|
|
276
276
|
var s = t[r], a;
|
|
277
277
|
if (n)
|
|
278
278
|
for (a = e[n]; s && s[n] > a; )
|
|
@@ -282,50 +282,50 @@ var lt = {
|
|
|
282
282
|
i === void 0 && (i = "_first"), r === void 0 && (r = "_last");
|
|
283
283
|
var n = e._prev, s = e._next;
|
|
284
284
|
n ? n._next = s : t[i] === e && (t[i] = s), s ? s._prev = n : t[r] === e && (t[r] = n), e._next = e._prev = e.parent = null;
|
|
285
|
-
},
|
|
285
|
+
}, Rt = function(t, e) {
|
|
286
286
|
t.parent && (!e || t.parent.autoRemoveChildren) && t.parent.remove && t.parent.remove(t), t._act = 0;
|
|
287
287
|
}, Xt = function(t, e) {
|
|
288
288
|
if (t && (!e || e._end > t._dur || e._start < 0))
|
|
289
289
|
for (var i = t; i; )
|
|
290
290
|
i._dirty = 1, i = i.parent;
|
|
291
291
|
return t;
|
|
292
|
-
},
|
|
292
|
+
}, En = function(t) {
|
|
293
293
|
for (var e = t.parent; e && e.parent; )
|
|
294
294
|
e._dirty = 1, e.totalDuration(), e = e.parent;
|
|
295
295
|
return t;
|
|
296
296
|
}, ai = function(t, e, i, r) {
|
|
297
|
-
return t._startAt && (
|
|
298
|
-
},
|
|
297
|
+
return t._startAt && (H ? t._startAt.revert(Ee) : t.vars.immediateRender && !t.vars.autoRevert || t._startAt.render(e, !0, r));
|
|
298
|
+
}, Rn = function o(t) {
|
|
299
299
|
return !t || t._ts && o(t.parent);
|
|
300
300
|
}, Ui = function(t) {
|
|
301
301
|
return t._repeat ? se(t._tTime, t = t.duration() + t._rDelay) * t : 0;
|
|
302
302
|
}, se = function(t, e) {
|
|
303
303
|
var i = Math.floor(t = L(t / e));
|
|
304
304
|
return t && i === t ? i - 1 : i;
|
|
305
|
-
},
|
|
305
|
+
}, $e = function(t, e) {
|
|
306
306
|
return (t - e._start) * e._ts + (e._ts >= 0 ? 0 : e._dirty ? e.totalDuration() : e._tDur);
|
|
307
307
|
}, We = function(t) {
|
|
308
|
-
return t._end = L(t._start + (t._tDur / Math.abs(t._ts || t._rts ||
|
|
308
|
+
return t._end = L(t._start + (t._tDur / Math.abs(t._ts || t._rts || E) || 0));
|
|
309
309
|
}, Ge = function(t, e) {
|
|
310
310
|
var i = t._dp;
|
|
311
311
|
return i && i.smoothChildTiming && t._ts && (t._start = L(i._time - (t._ts > 0 ? e / t._ts : ((t._dirty ? t.totalDuration() : t._tDur) - e) / -t._ts)), We(t), i._dirty || Xt(i, t)), t;
|
|
312
|
-
},
|
|
312
|
+
}, wr = function(t, e) {
|
|
313
313
|
var i;
|
|
314
|
-
if ((e._time || !e._dur && e._initted || e._start < t._time && (e._dur || !e.add)) && (i =
|
|
314
|
+
if ((e._time || !e._dur && e._initted || e._start < t._time && (e._dur || !e.add)) && (i = $e(t.rawTime(), e), (!e._dur || Ce(0, e.totalDuration(), i) - e._tTime > E) && e.render(i, !0)), Xt(t, e)._dp && t._initted && t._time >= t._dur && t._ts) {
|
|
315
315
|
if (t._dur < t.duration())
|
|
316
316
|
for (i = t; i._dp; )
|
|
317
317
|
i.rawTime() >= 0 && i.totalTime(i._tTime), i = i._dp;
|
|
318
|
-
t._zTime = -
|
|
318
|
+
t._zTime = -E;
|
|
319
319
|
}
|
|
320
|
-
},
|
|
321
|
-
return e.parent &&
|
|
322
|
-
},
|
|
323
|
-
return (
|
|
324
|
-
},
|
|
320
|
+
}, xt = function(t, e, i, r) {
|
|
321
|
+
return e.parent && Rt(e), e._start = L((Ot(i) ? i : i || t !== N ? ct(t, i, e) : t._time) + e._delay), e._end = L(e._start + (e.totalDuration() / Math.abs(e.timeScale()) || 0)), br(t, e, "_first", "_last", t._sort ? "_start" : 0), oi(e) || (t._recent = e), r || wr(t, e), t._ts < 0 && Ge(t, t._tTime), t;
|
|
322
|
+
}, Tr = function(t, e) {
|
|
323
|
+
return (ft.ScrollTrigger || bi("scrollTrigger", e)) && ft.ScrollTrigger.create(e, t);
|
|
324
|
+
}, kr = function(t, e, i, r, n) {
|
|
325
325
|
if (Oi(t, e, n), !t._initted)
|
|
326
326
|
return 1;
|
|
327
|
-
if (!i && t._pt && !
|
|
328
|
-
return
|
|
327
|
+
if (!i && t._pt && !H && (t._dur && t.vars.lazy !== !1 || !t._dur && t.vars.lazy) && mr !== at.frame)
|
|
328
|
+
return At.push(t), t._lazy = [n, r], 1;
|
|
329
329
|
}, In = function o(t) {
|
|
330
330
|
var e = t.parent;
|
|
331
331
|
return e && e._ts && e._initted && !e._lock && (e.rawTime() < 0 || o(e));
|
|
@@ -334,12 +334,12 @@ var lt = {
|
|
|
334
334
|
return e === "isFromStart" || e === "isStart";
|
|
335
335
|
}, Fn = function(t, e, i, r) {
|
|
336
336
|
var n = t.ratio, s = e < 0 || !e && (!t._start && In(t) && !(!t._initted && oi(t)) || (t._ts < 0 || t._dp._ts < 0) && !oi(t)) ? 0 : 1, a = t._rDelay, l = 0, u, f, h;
|
|
337
|
-
if (a && t._repeat && (l = Ce(0, t._tDur, e), f = se(l, a), t._yoyo && f & 1 && (s = 1 - s), f !== se(t._tTime, a) && (n = 1 - s, t.vars.repeatRefresh && t._initted && t.invalidate())), s !== n ||
|
|
338
|
-
if (!t._initted &&
|
|
337
|
+
if (a && t._repeat && (l = Ce(0, t._tDur, e), f = se(l, a), t._yoyo && f & 1 && (s = 1 - s), f !== se(t._tTime, a) && (n = 1 - s, t.vars.repeatRefresh && t._initted && t.invalidate())), s !== n || H || r || t._zTime === E || !e && t._zTime) {
|
|
338
|
+
if (!t._initted && kr(t, e, r, i, l))
|
|
339
339
|
return;
|
|
340
|
-
for (h = t._zTime, t._zTime = e || (i ?
|
|
340
|
+
for (h = t._zTime, t._zTime = e || (i ? E : 0), i || (i = e && !h), t.ratio = s, t._from && (s = 1 - s), t._time = 0, t._tTime = l, u = t._pt; u; )
|
|
341
341
|
u.r(s, u.d), u = u._next;
|
|
342
|
-
e < 0 && ai(t, e, i, !0), t._onUpdate && !i &&
|
|
342
|
+
e < 0 && ai(t, e, i, !0), t._onUpdate && !i && ot(t, "onUpdate"), l && t._repeat && !i && t.parent && ot(t, "onRepeat"), (e >= t._tDur || e < 0) && t.ratio === s && (s && Rt(t, 1), !i && !H && (ot(t, s ? "onComplete" : "onReverseComplete", !0), t._prom && t._prom()));
|
|
343
343
|
} else t._zTime || (t._zTime = e);
|
|
344
344
|
}, Ln = function(t, e, i) {
|
|
345
345
|
var r;
|
|
@@ -359,71 +359,71 @@ var lt = {
|
|
|
359
359
|
var n = t._repeat, s = L(e) || 0, a = t._tTime / t._tDur;
|
|
360
360
|
return a && !r && (t._time *= s / t._dur), t._dur = s, t._tDur = n ? n < 0 ? 1e10 : L(s * (n + 1) + t._rDelay * n) : s, a > 0 && !r && Ge(t, t._tTime = t._tDur * a), t.parent && We(t), i || Xt(t.parent, t), t;
|
|
361
361
|
}, Yi = function(t) {
|
|
362
|
-
return t instanceof
|
|
363
|
-
},
|
|
362
|
+
return t instanceof J ? Xt(t) : ae(t, t._dur);
|
|
363
|
+
}, Nn = {
|
|
364
364
|
_start: 0,
|
|
365
365
|
endTime: be,
|
|
366
366
|
totalDuration: be
|
|
367
|
-
},
|
|
368
|
-
var r = t.labels, n = t._recent ||
|
|
369
|
-
return
|
|
367
|
+
}, ct = function o(t, e, i) {
|
|
368
|
+
var r = t.labels, n = t._recent || Nn, s = t.duration() >= dt ? n.endTime(!1) : t._dur, a, l, u;
|
|
369
|
+
return G(e) && (isNaN(e) || e in r) ? (l = e.charAt(0), u = e.substr(-1) === "%", a = e.indexOf("="), l === "<" || l === ">" ? (a >= 0 && (e = e.replace(/=/, "")), (l === "<" ? n._start : n.endTime(n._repeat >= 0)) + (parseFloat(e.substr(1)) || 0) * (u ? (a < 0 ? n : i).totalDuration() / 100 : 1)) : a < 0 ? (e in r || (r[e] = s), r[e]) : (l = parseFloat(e.charAt(a - 1) + e.substr(a + 1)), u && i && (l = l / 100 * (Z(i) ? i[0] : i).totalDuration()), a > 1 ? o(t, e.substr(0, a - 1), i) + l : s + l)) : e == null ? s : +e;
|
|
370
370
|
}, ye = function(t, e, i) {
|
|
371
371
|
var r = Ot(e[1]), n = (r ? 2 : 1) + (t < 2 ? 0 : 1), s = e[n], a, l;
|
|
372
372
|
if (r && (s.duration = e[1]), s.parent = i, t) {
|
|
373
373
|
for (a = s, l = i; l && !("immediateRender" in a); )
|
|
374
|
-
a = l.vars.defaults || {}, l =
|
|
375
|
-
s.immediateRender =
|
|
374
|
+
a = l.vars.defaults || {}, l = tt(l.vars.inherit) && l.parent;
|
|
375
|
+
s.immediateRender = tt(a.immediateRender), t < 2 ? s.runBackwards = 1 : s.startAt = e[n - 1];
|
|
376
376
|
}
|
|
377
|
-
return new
|
|
377
|
+
return new X(e[0], s, e[n + 1]);
|
|
378
378
|
}, Lt = function(t, e) {
|
|
379
379
|
return t || t === 0 ? e(t) : e;
|
|
380
380
|
}, Ce = function(t, e, i) {
|
|
381
381
|
return i < t ? t : i > e ? e : i;
|
|
382
|
-
},
|
|
383
|
-
return !
|
|
384
|
-
},
|
|
382
|
+
}, Q = function(t, e) {
|
|
383
|
+
return !G(t) || !(e = On.exec(t)) ? "" : e[1];
|
|
384
|
+
}, $n = function(t, e, i) {
|
|
385
385
|
return Lt(i, function(r) {
|
|
386
386
|
return Ce(t, e, r);
|
|
387
387
|
});
|
|
388
|
-
}, li = [].slice,
|
|
389
|
-
return t &&
|
|
388
|
+
}, li = [].slice, Sr = function(t, e) {
|
|
389
|
+
return t && wt(t) && "length" in t && (!e && !t.length || t.length - 1 in t && wt(t[0])) && !t.nodeType && t !== vt;
|
|
390
390
|
}, Bn = function(t, e, i) {
|
|
391
391
|
return i === void 0 && (i = []), t.forEach(function(r) {
|
|
392
392
|
var n;
|
|
393
|
-
return
|
|
393
|
+
return G(r) && !e || Sr(r, 1) ? (n = i).push.apply(n, _t(r)) : i.push(r);
|
|
394
394
|
}) || i;
|
|
395
|
-
},
|
|
396
|
-
return F && !e && F.selector ? F.selector(t) :
|
|
395
|
+
}, _t = function(t, e, i) {
|
|
396
|
+
return F && !e && F.selector ? F.selector(t) : G(t) && !i && (ni || !oe()) ? li.call((e || xi).querySelectorAll(t), 0) : Z(t) ? Bn(t, i) : Sr(t) ? li.call(t, 0) : t ? [t] : [];
|
|
397
397
|
}, ui = function(t) {
|
|
398
|
-
return t =
|
|
398
|
+
return t = _t(t)[0] || xe("Invalid scope") || {}, function(e) {
|
|
399
399
|
var i = t.current || t.nativeElement || t;
|
|
400
|
-
return
|
|
400
|
+
return _t(e, i.querySelectorAll ? i : i === t ? xe("Invalid scope") || xi.createElement("div") : t);
|
|
401
401
|
};
|
|
402
|
-
},
|
|
402
|
+
}, Pr = function(t) {
|
|
403
403
|
return t.sort(function() {
|
|
404
404
|
return 0.5 - Math.random();
|
|
405
405
|
});
|
|
406
|
-
},
|
|
406
|
+
}, Or = function(t) {
|
|
407
407
|
if (V(t))
|
|
408
408
|
return t;
|
|
409
|
-
var e =
|
|
409
|
+
var e = wt(t) ? t : {
|
|
410
410
|
each: t
|
|
411
411
|
}, i = jt(e.ease), r = e.from || 0, n = parseFloat(e.base) || 0, s = {}, a = r > 0 && r < 1, l = isNaN(r) || a, u = e.axis, f = r, h = r;
|
|
412
|
-
return
|
|
412
|
+
return G(r) ? f = h = {
|
|
413
413
|
center: 0.5,
|
|
414
414
|
edges: 0.5,
|
|
415
415
|
end: 1
|
|
416
416
|
}[r] || 0 : !a && l && (f = r[0], h = r[1]), function(d, _, m) {
|
|
417
417
|
var c = (m || e).length, p = s[c], y, v, w, x, g, T, k, S, b;
|
|
418
418
|
if (!p) {
|
|
419
|
-
if (b = e.grid === "auto" ? 0 : (e.grid || [1,
|
|
420
|
-
for (k = -
|
|
419
|
+
if (b = e.grid === "auto" ? 0 : (e.grid || [1, dt])[1], !b) {
|
|
420
|
+
for (k = -dt; k < (k = m[b++].getBoundingClientRect().left) && b < c; )
|
|
421
421
|
;
|
|
422
422
|
b < c && b--;
|
|
423
423
|
}
|
|
424
|
-
for (p = s[c] = [], y = l ? Math.min(b, c) * f - 0.5 : r % b, v = b ===
|
|
425
|
-
w = T % b - y, x = v - (T / b | 0), p[T] = g = u ? Math.abs(u === "y" ? x : w) :
|
|
426
|
-
r === "random" &&
|
|
424
|
+
for (p = s[c] = [], y = l ? Math.min(b, c) * f - 0.5 : r % b, v = b === dt ? 0 : l ? c * h / b - 0.5 : r / b | 0, k = 0, S = dt, T = 0; T < c; T++)
|
|
425
|
+
w = T % b - y, x = v - (T / b | 0), p[T] = g = u ? Math.abs(u === "y" ? x : w) : ur(w * w + x * x), g > k && (k = g), g < S && (S = g);
|
|
426
|
+
r === "random" && Pr(p), p.max = k - S, p.min = S, p.v = c = (parseFloat(e.amount) || parseFloat(e.each) * (b > c ? c - 1 : u ? u === "y" ? c / b : b : Math.max(b, c / b)) || 0) * (r === "edges" ? -1 : 1), p.b = c < 0 ? n - c : n, p.u = Q(e.amount || e.each) || 0, i = i && c < 0 ? Lr(i) : i;
|
|
427
427
|
}
|
|
428
428
|
return c = (p[d] - p.min) / p.max || 0, L(p.b + (i ? i(c) : c) * p.v) + p.u;
|
|
429
429
|
};
|
|
@@ -431,20 +431,20 @@ var lt = {
|
|
|
431
431
|
var e = Math.pow(10, ((t + "").split(".")[1] || "").length);
|
|
432
432
|
return function(i) {
|
|
433
433
|
var r = L(Math.round(parseFloat(i) / t) * t * e);
|
|
434
|
-
return (r - r % 1) / e + (Ot(i) ? 0 :
|
|
434
|
+
return (r - r % 1) / e + (Ot(i) ? 0 : Q(i));
|
|
435
435
|
};
|
|
436
|
-
},
|
|
437
|
-
var i =
|
|
438
|
-
return !i &&
|
|
436
|
+
}, Cr = function(t, e) {
|
|
437
|
+
var i = Z(t), r, n;
|
|
438
|
+
return !i && wt(t) && (r = i = t.radius || dt, t.values ? (t = _t(t.values), (n = !Ot(t[0])) && (r *= r)) : t = fi(t.increment)), Lt(e, i ? V(t) ? function(s) {
|
|
439
439
|
return n = t(s), Math.abs(n - s) <= r ? n : s;
|
|
440
440
|
} : function(s) {
|
|
441
|
-
for (var a = parseFloat(n ? s.x : s), l = parseFloat(n ? s.y : 0), u =
|
|
441
|
+
for (var a = parseFloat(n ? s.x : s), l = parseFloat(n ? s.y : 0), u = dt, f = 0, h = t.length, d, _; h--; )
|
|
442
442
|
n ? (d = t[h].x - a, _ = t[h].y - l, d = d * d + _ * _) : d = Math.abs(t[h] - a), d < u && (u = d, f = h);
|
|
443
|
-
return f = !r || u <= r ? t[f] : s, n || f === s || Ot(s) ? f : f +
|
|
443
|
+
return f = !r || u <= r ? t[f] : s, n || f === s || Ot(s) ? f : f + Q(s);
|
|
444
444
|
} : fi(t));
|
|
445
|
-
},
|
|
446
|
-
return Lt(
|
|
447
|
-
return
|
|
445
|
+
}, Mr = function(t, e, i, r) {
|
|
446
|
+
return Lt(Z(t) ? !e : i === !0 ? !!(i = 0) : !r, function() {
|
|
447
|
+
return Z(t) ? t[~~(Math.random() * t.length)] : (i = i || 1e-5) && (r = i < 1 ? Math.pow(10, (i + "").length - 2) : 1) && Math.floor(Math.round((t - i / 2 + Math.random() * (e - t + i * 0.99)) / i) * i * r) / r;
|
|
448
448
|
});
|
|
449
449
|
}, Vn = function() {
|
|
450
450
|
for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
|
|
@@ -456,30 +456,30 @@ var lt = {
|
|
|
456
456
|
};
|
|
457
457
|
}, Un = function(t, e) {
|
|
458
458
|
return function(i) {
|
|
459
|
-
return t(parseFloat(i)) + (e ||
|
|
459
|
+
return t(parseFloat(i)) + (e || Q(i));
|
|
460
460
|
};
|
|
461
461
|
}, Yn = function(t, e, i) {
|
|
462
|
-
return
|
|
463
|
-
},
|
|
462
|
+
return zr(t, e, 0, 1, i);
|
|
463
|
+
}, Dr = function(t, e, i) {
|
|
464
464
|
return Lt(i, function(r) {
|
|
465
465
|
return t[~~e(r)];
|
|
466
466
|
});
|
|
467
467
|
}, qn = function o(t, e, i) {
|
|
468
468
|
var r = e - t;
|
|
469
|
-
return
|
|
469
|
+
return Z(t) ? Dr(t, o(0, t.length), e) : Lt(i, function(n) {
|
|
470
470
|
return (r + (n - t) % r) % r + t;
|
|
471
471
|
});
|
|
472
472
|
}, Xn = function o(t, e, i) {
|
|
473
473
|
var r = e - t, n = r * 2;
|
|
474
|
-
return
|
|
474
|
+
return Z(t) ? Dr(t, o(0, t.length - 1), e) : Lt(i, function(s) {
|
|
475
475
|
return s = (n + (s - t) % n) % n || 0, t + (s > r ? n - s : s);
|
|
476
476
|
});
|
|
477
477
|
}, we = function(t) {
|
|
478
478
|
return t.replace(kn, function(e) {
|
|
479
479
|
var i = e.indexOf("[") + 1, r = e.substring(i || 7, i ? e.indexOf("]") : e.length - 1).split(Sn);
|
|
480
|
-
return
|
|
480
|
+
return Mr(i ? r : +r[0], i ? 0 : +r[1], +r[2] || 1e-5);
|
|
481
481
|
});
|
|
482
|
-
},
|
|
482
|
+
}, zr = function(t, e, i, r, n) {
|
|
483
483
|
var s = e - t, a = r - i;
|
|
484
484
|
return Lt(n, function(l) {
|
|
485
485
|
return i + ((l - t) / s * a || 0);
|
|
@@ -489,14 +489,14 @@ var lt = {
|
|
|
489
489
|
return (1 - _) * t + _ * e;
|
|
490
490
|
};
|
|
491
491
|
if (!n) {
|
|
492
|
-
var s =
|
|
492
|
+
var s = G(t), a = {}, l, u, f, h, d;
|
|
493
493
|
if (i === !0 && (r = 1) && (i = null), s)
|
|
494
494
|
t = {
|
|
495
495
|
p: t
|
|
496
496
|
}, e = {
|
|
497
497
|
p: e
|
|
498
498
|
};
|
|
499
|
-
else if (
|
|
499
|
+
else if (Z(t) && !Z(e)) {
|
|
500
500
|
for (f = [], h = t.length, d = h - 2, u = 1; u < h; u++)
|
|
501
501
|
f.push(o(t[u - 1], t[u]));
|
|
502
502
|
h--, n = function(m) {
|
|
@@ -504,7 +504,7 @@ var lt = {
|
|
|
504
504
|
var c = Math.min(d, ~~m);
|
|
505
505
|
return f[c](m - c);
|
|
506
506
|
}, i = e;
|
|
507
|
-
} else r || (t = ne(
|
|
507
|
+
} else r || (t = ne(Z(t) ? [] : {}, t));
|
|
508
508
|
if (!f) {
|
|
509
509
|
for (l in e)
|
|
510
510
|
Pi.call(a, t, l, "get", e[l]);
|
|
@@ -515,16 +515,16 @@ var lt = {
|
|
|
515
515
|
}
|
|
516
516
|
return Lt(i, n);
|
|
517
517
|
}, qi = function(t, e, i) {
|
|
518
|
-
var r = t.labels, n =
|
|
518
|
+
var r = t.labels, n = dt, s, a, l;
|
|
519
519
|
for (s in r)
|
|
520
520
|
a = r[s] - e, a < 0 == !!i && a && n > (a = Math.abs(a)) && (l = s, n = a);
|
|
521
521
|
return l;
|
|
522
|
-
},
|
|
522
|
+
}, ot = function(t, e, i) {
|
|
523
523
|
var r = t.vars, n = r[e], s = F, a = t._ctx, l, u, f;
|
|
524
524
|
if (n)
|
|
525
|
-
return l = r[e + "Params"], u = r.callbackScope || t, i &&
|
|
525
|
+
return l = r[e + "Params"], u = r.callbackScope || t, i && At.length && Le(), a && (F = a), f = l ? n.apply(u, l) : n.call(u), F = s, f;
|
|
526
526
|
}, pe = function(t) {
|
|
527
|
-
return
|
|
527
|
+
return Rt(t), t.scrollTrigger && t.scrollTrigger.kill(!!H), t.progress() < 1 && ot(t, "onInterrupt"), t;
|
|
528
528
|
}, Jt, Ar = [], Er = function(t) {
|
|
529
529
|
if (t)
|
|
530
530
|
if (t = !t.name && t.default || t, vi() || t.headless) {
|
|
@@ -545,83 +545,83 @@ var lt = {
|
|
|
545
545
|
register: 0
|
|
546
546
|
};
|
|
547
547
|
if (oe(), t !== r) {
|
|
548
|
-
if (
|
|
548
|
+
if (st[e])
|
|
549
549
|
return;
|
|
550
|
-
|
|
550
|
+
ht(r, ht(Ne(t, n), s)), ne(r.prototype, ne(n, Ne(t, s))), st[r.prop = e] = r, t.targetTest && (Re.push(r), wi[e] = 1), e = (e === "css" ? "CSS" : e.charAt(0).toUpperCase() + e.substr(1)) + "Plugin";
|
|
551
551
|
}
|
|
552
|
-
|
|
552
|
+
pr(e, r), t.register && t.register(nt, r, it);
|
|
553
553
|
} else
|
|
554
554
|
Ar.push(t);
|
|
555
|
-
},
|
|
556
|
-
aqua: [0,
|
|
557
|
-
lime: [0,
|
|
555
|
+
}, A = 255, me = {
|
|
556
|
+
aqua: [0, A, A],
|
|
557
|
+
lime: [0, A, 0],
|
|
558
558
|
silver: [192, 192, 192],
|
|
559
559
|
black: [0, 0, 0],
|
|
560
560
|
maroon: [128, 0, 0],
|
|
561
561
|
teal: [0, 128, 128],
|
|
562
|
-
blue: [0, 0,
|
|
562
|
+
blue: [0, 0, A],
|
|
563
563
|
navy: [0, 0, 128],
|
|
564
|
-
white: [
|
|
564
|
+
white: [A, A, A],
|
|
565
565
|
olive: [128, 128, 0],
|
|
566
|
-
yellow: [
|
|
567
|
-
orange: [
|
|
566
|
+
yellow: [A, A, 0],
|
|
567
|
+
orange: [A, 165, 0],
|
|
568
568
|
gray: [128, 128, 128],
|
|
569
569
|
purple: [128, 0, 128],
|
|
570
570
|
green: [0, 128, 0],
|
|
571
|
-
red: [
|
|
572
|
-
pink: [
|
|
573
|
-
cyan: [0,
|
|
574
|
-
transparent: [
|
|
571
|
+
red: [A, 0, 0],
|
|
572
|
+
pink: [A, 192, 203],
|
|
573
|
+
cyan: [0, A, A],
|
|
574
|
+
transparent: [A, A, A, 0]
|
|
575
575
|
}, Qe = function(t, e, i) {
|
|
576
|
-
return t += t < 0 ? 1 : t > 1 ? -1 : 0, (t * 6 < 1 ? e + (i - e) * t * 6 : t < 0.5 ? i : t * 3 < 2 ? e + (i - e) * (2 / 3 - t) * 6 : e) *
|
|
576
|
+
return t += t < 0 ? 1 : t > 1 ? -1 : 0, (t * 6 < 1 ? e + (i - e) * t * 6 : t < 0.5 ? i : t * 3 < 2 ? e + (i - e) * (2 / 3 - t) * 6 : e) * A + 0.5 | 0;
|
|
577
577
|
}, Rr = function(t, e, i) {
|
|
578
|
-
var r = t ? Ot(t) ? [t >> 16, t >> 8 &
|
|
578
|
+
var r = t ? Ot(t) ? [t >> 16, t >> 8 & A, t & A] : 0 : me.black, n, s, a, l, u, f, h, d, _, m;
|
|
579
579
|
if (!r) {
|
|
580
580
|
if (t.substr(-1) === "," && (t = t.substr(0, t.length - 1)), me[t])
|
|
581
581
|
r = me[t];
|
|
582
582
|
else if (t.charAt(0) === "#") {
|
|
583
583
|
if (t.length < 6 && (n = t.charAt(1), s = t.charAt(2), a = t.charAt(3), t = "#" + n + n + s + s + a + a + (t.length === 5 ? t.charAt(4) + t.charAt(4) : "")), t.length === 9)
|
|
584
|
-
return r = parseInt(t.substr(1, 6), 16), [r >> 16, r >> 8 &
|
|
585
|
-
t = parseInt(t.substr(1), 16), r = [t >> 16, t >> 8 &
|
|
584
|
+
return r = parseInt(t.substr(1, 6), 16), [r >> 16, r >> 8 & A, r & A, parseInt(t.substr(7), 16) / 255];
|
|
585
|
+
t = parseInt(t.substr(1), 16), r = [t >> 16, t >> 8 & A, t & A];
|
|
586
586
|
} else if (t.substr(0, 3) === "hsl") {
|
|
587
|
-
if (r = m = t.match(
|
|
587
|
+
if (r = m = t.match($i), !e)
|
|
588
588
|
l = +r[0] % 360 / 360, u = +r[1] / 100, f = +r[2] / 100, s = f <= 0.5 ? f * (u + 1) : f + u - f * u, n = f * 2 - s, r.length > 3 && (r[3] *= 1), r[0] = Qe(l + 1 / 3, n, s), r[1] = Qe(l, n, s), r[2] = Qe(l - 1 / 3, n, s);
|
|
589
589
|
else if (~t.indexOf("="))
|
|
590
|
-
return r = t.match(
|
|
590
|
+
return r = t.match(hr), i && r.length < 4 && (r[3] = 1), r;
|
|
591
591
|
} else
|
|
592
|
-
r = t.match(
|
|
592
|
+
r = t.match($i) || me.transparent;
|
|
593
593
|
r = r.map(Number);
|
|
594
594
|
}
|
|
595
|
-
return e && !m && (n = r[0] /
|
|
596
|
-
},
|
|
595
|
+
return e && !m && (n = r[0] / A, s = r[1] / A, a = r[2] / A, h = Math.max(n, s, a), d = Math.min(n, s, a), f = (h + d) / 2, h === d ? l = u = 0 : (_ = h - d, u = f > 0.5 ? _ / (2 - h - d) : _ / (h + d), l = h === n ? (s - a) / _ + (s < a ? 6 : 0) : h === s ? (a - n) / _ + 2 : (n - s) / _ + 4, l *= 60), r[0] = ~~(l + 0.5), r[1] = ~~(u * 100 + 0.5), r[2] = ~~(f * 100 + 0.5)), i && r.length < 4 && (r[3] = 1), r;
|
|
596
|
+
}, Ir = function(t) {
|
|
597
597
|
var e = [], i = [], r = -1;
|
|
598
|
-
return t.split(
|
|
598
|
+
return t.split(Et).forEach(function(n) {
|
|
599
599
|
var s = n.match(Zt) || [];
|
|
600
600
|
e.push.apply(e, s), i.push(r += s.length + 1);
|
|
601
601
|
}), e.c = i, e;
|
|
602
602
|
}, Xi = function(t, e, i) {
|
|
603
|
-
var r = "", n = (t + r).match(
|
|
603
|
+
var r = "", n = (t + r).match(Et), s = e ? "hsla(" : "rgba(", a = 0, l, u, f, h;
|
|
604
604
|
if (!n)
|
|
605
605
|
return t;
|
|
606
606
|
if (n = n.map(function(d) {
|
|
607
607
|
return (d = Rr(d, e, 1)) && s + (e ? d[0] + "," + d[1] + "%," + d[2] + "%," + d[3] : d.join(",")) + ")";
|
|
608
|
-
}), i && (f =
|
|
609
|
-
for (u = t.replace(
|
|
608
|
+
}), i && (f = Ir(t), l = i.c, l.join(r) !== f.c.join(r)))
|
|
609
|
+
for (u = t.replace(Et, "1").split(Zt), h = u.length - 1; a < h; a++)
|
|
610
610
|
r += u[a] + (~l.indexOf(a) ? n.shift() || s + "0,0,0,0)" : (f.length ? f : n.length ? n : i).shift());
|
|
611
611
|
if (!u)
|
|
612
|
-
for (u = t.split(
|
|
612
|
+
for (u = t.split(Et), h = u.length - 1; a < h; a++)
|
|
613
613
|
r += u[a] + n[a];
|
|
614
614
|
return r + u[h];
|
|
615
|
-
},
|
|
615
|
+
}, Et = function() {
|
|
616
616
|
var o = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b", t;
|
|
617
617
|
for (t in me)
|
|
618
618
|
o += "|" + t + "\\b";
|
|
619
619
|
return new RegExp(o + ")", "gi");
|
|
620
|
-
}(), Wn = /hsl[a]?\(/,
|
|
620
|
+
}(), Wn = /hsl[a]?\(/, Fr = function(t) {
|
|
621
621
|
var e = t.join(" "), i;
|
|
622
|
-
if (
|
|
623
|
-
return i = Wn.test(e), t[1] = Xi(t[1], i), t[0] = Xi(t[0], i,
|
|
624
|
-
}, Te,
|
|
622
|
+
if (Et.lastIndex = 0, Et.test(e))
|
|
623
|
+
return i = Wn.test(e), t[1] = Xi(t[1], i), t[0] = Xi(t[0], i, Ir(t[1])), !0;
|
|
624
|
+
}, Te, at = function() {
|
|
625
625
|
var o = Date.now, t = 500, e = 33, i = o(), r = i, n = 1e3 / 240, s = n, a = [], l, u, f, h, d, _, m = function c(p) {
|
|
626
626
|
var y = o() - r, v = p === !0, w, x, g, T;
|
|
627
627
|
if ((y > t || y < 0) && (i += y - e), r += y, g = r - i, w = g - s, (w > 0 || v) && (T = ++h.frame, d = g - h.time * 1e3, h.time = g = g / 1e3, s += w + (w >= n ? 4 : n - w), x = 1), v || (l = u(c)), x)
|
|
@@ -638,7 +638,7 @@ var lt = {
|
|
|
638
638
|
return d / (1e3 / (p || 60));
|
|
639
639
|
},
|
|
640
640
|
wake: function() {
|
|
641
|
-
|
|
641
|
+
dr && (!ni && vi() && (vt = ni = window, xi = vt.document || {}, ft.gsap = nt, (vt.gsapVersions || (vt.gsapVersions = [])).push(nt.version), _r(Fe || vt.GreenSockGlobals || !vt.gsap && vt || {}), Ar.forEach(Er)), f = typeof requestAnimationFrame < "u" && requestAnimationFrame, l && h.sleep(), u = f || function(p) {
|
|
642
642
|
return setTimeout(p, s - h.time * 1e3 + 1 | 0);
|
|
643
643
|
}, Te = 1, m(2));
|
|
644
644
|
},
|
|
@@ -663,7 +663,7 @@ var lt = {
|
|
|
663
663
|
_listeners: a
|
|
664
664
|
}, h;
|
|
665
665
|
}(), oe = function() {
|
|
666
|
-
return !Te &&
|
|
666
|
+
return !Te && at.wake();
|
|
667
667
|
}, C = {}, Gn = /^[\d.\-M][\d.\-,\s]/, Kn = /["']/g, Hn = function(t) {
|
|
668
668
|
for (var e = {}, i = t.substr(1, t.length - 3).split(":"), r = i[0], n = 1, s = i.length, a, l, u; n < s; n++)
|
|
669
669
|
l = i[n], a = n !== s - 1 ? l.lastIndexOf(",") : l.length, u = l.substr(0, a), e[r] = isNaN(u) ? u.replace(Kn, "").trim() : +u, r = l.substr(a + 1).trim();
|
|
@@ -673,14 +673,14 @@ var lt = {
|
|
|
673
673
|
return t.substring(e, ~r && r < i ? t.indexOf(")", i + 1) : i);
|
|
674
674
|
}, Zn = function(t) {
|
|
675
675
|
var e = (t + "").split("("), i = C[e[0]];
|
|
676
|
-
return i && e.length > 1 && i.config ? i.config.apply(null, ~t.indexOf("{") ? [Hn(e[1])] : Qn(t).split(",").map(
|
|
677
|
-
},
|
|
676
|
+
return i && e.length > 1 && i.config ? i.config.apply(null, ~t.indexOf("{") ? [Hn(e[1])] : Qn(t).split(",").map(vr)) : C._CE && Gn.test(t) ? C._CE("", t) : i;
|
|
677
|
+
}, Lr = function(t) {
|
|
678
678
|
return function(e) {
|
|
679
679
|
return 1 - t(1 - e);
|
|
680
680
|
};
|
|
681
|
-
},
|
|
681
|
+
}, Nr = function o(t, e) {
|
|
682
682
|
for (var i = t._first, r; i; )
|
|
683
|
-
i instanceof
|
|
683
|
+
i instanceof J ? o(i, e) : i.vars.yoyoEase && (!i._yoyo || !i._repeat) && i._yoyo !== e && (i.timeline ? o(i.timeline, e) : (r = i._ease, i._ease = i._yEase, i._yEase = r, i._yoyo = e)), i = i._next;
|
|
684
684
|
}, jt = function(t, e) {
|
|
685
685
|
return t && (V(t) ? t : C[t] || Zn(t)) || e;
|
|
686
686
|
}, Ht = function(t, e, i, r) {
|
|
@@ -694,8 +694,8 @@ var lt = {
|
|
|
694
694
|
easeOut: i,
|
|
695
695
|
easeInOut: r
|
|
696
696
|
}, s;
|
|
697
|
-
return
|
|
698
|
-
C[a] =
|
|
697
|
+
return et(t, function(a) {
|
|
698
|
+
C[a] = ft[a] = n, C[s = a.toLowerCase()] = i;
|
|
699
699
|
for (var l in n)
|
|
700
700
|
C[s + (l === "easeIn" ? ".in" : l === "easeOut" ? ".out" : ".inOut")] = C[a + "." + l] = n[l];
|
|
701
701
|
}), n;
|
|
@@ -723,7 +723,7 @@ var lt = {
|
|
|
723
723
|
return o(t, n);
|
|
724
724
|
}, r;
|
|
725
725
|
};
|
|
726
|
-
|
|
726
|
+
et("Linear,Quad,Cubic,Quart,Quint,Strong", function(o, t) {
|
|
727
727
|
var e = t < 5 ? t + 1 : t;
|
|
728
728
|
Ht(o + ",Power" + (e - 1), t ? function(i) {
|
|
729
729
|
return Math.pow(i, e);
|
|
@@ -749,30 +749,30 @@ Ht("Expo", function(o) {
|
|
|
749
749
|
return Math.pow(2, 10 * (o - 1)) * o + o * o * o * o * o * o * (1 - o);
|
|
750
750
|
});
|
|
751
751
|
Ht("Circ", function(o) {
|
|
752
|
-
return -(
|
|
752
|
+
return -(ur(1 - o * o) - 1);
|
|
753
753
|
});
|
|
754
754
|
Ht("Sine", function(o) {
|
|
755
755
|
return o === 1 ? 1 : -wn(o * xn) + 1;
|
|
756
756
|
});
|
|
757
757
|
Ht("Back", Je("in"), Je("out"), Je());
|
|
758
|
-
C.SteppedEase = C.steps =
|
|
758
|
+
C.SteppedEase = C.steps = ft.SteppedEase = {
|
|
759
759
|
config: function(t, e) {
|
|
760
760
|
t === void 0 && (t = 1);
|
|
761
|
-
var i = 1 / t, r = t + (e ? 0 : 1), n = e ? 1 : 0, s = 1 -
|
|
761
|
+
var i = 1 / t, r = t + (e ? 0 : 1), n = e ? 1 : 0, s = 1 - E;
|
|
762
762
|
return function(a) {
|
|
763
763
|
return ((r * Ce(0, s, a) | 0) + n) * i;
|
|
764
764
|
};
|
|
765
765
|
}
|
|
766
766
|
};
|
|
767
767
|
re.ease = C["quad.out"];
|
|
768
|
-
|
|
768
|
+
et("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function(o) {
|
|
769
769
|
return Ti += o + "," + o + "Params,";
|
|
770
770
|
});
|
|
771
|
-
var
|
|
772
|
-
this.id = bn++, t._gsap = this, this.target = t, this.harness = e, this.get = e ? e.get :
|
|
771
|
+
var Br = function(t, e) {
|
|
772
|
+
this.id = bn++, t._gsap = this, this.target = t, this.harness = e, this.get = e ? e.get : gr, this.set = e ? e.getSetter : Mi;
|
|
773
773
|
}, ke = /* @__PURE__ */ function() {
|
|
774
774
|
function o(e) {
|
|
775
|
-
this.vars = e, this._delay = +e.delay || 0, (this._repeat = e.repeat === 1 / 0 ? -2 : e.repeat || 0) && (this._rDelay = e.repeatDelay || 0, this._yoyo = !!e.yoyo || !!e.yoyoEase), this._ts = 1, ae(this, +e.duration, 1, 1), this.data = e.data, F && (this._ctx = F, F.data.push(this)), Te ||
|
|
775
|
+
this.vars = e, this._delay = +e.delay || 0, (this._repeat = e.repeat === 1 / 0 ? -2 : e.repeat || 0) && (this._rDelay = e.repeatDelay || 0, this._yoyo = !!e.yoyo || !!e.yoyoEase), this._ts = 1, ae(this, +e.duration, 1, 1), this.data = e.data, F && (this._ctx = F, F.data.push(this)), Te || at.wake();
|
|
776
776
|
}
|
|
777
777
|
var t = o.prototype;
|
|
778
778
|
return t.delay = function(i) {
|
|
@@ -786,11 +786,11 @@ var Nr = function(t, e) {
|
|
|
786
786
|
return this._tTime;
|
|
787
787
|
var n = this._dp;
|
|
788
788
|
if (n && n.smoothChildTiming && this._ts) {
|
|
789
|
-
for (Ge(this, i), !n._dp || n.parent ||
|
|
789
|
+
for (Ge(this, i), !n._dp || n.parent || wr(n, this); n && n.parent; )
|
|
790
790
|
n.parent._time !== n._start + (n._ts >= 0 ? n._tTime / n._ts : (n.totalDuration() - n._tTime) / -n._ts) && n.totalTime(n._tTime, !0), n = n.parent;
|
|
791
|
-
!this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && i < this._tDur || this._ts < 0 && i > 0 || !this._tDur && !i) &&
|
|
791
|
+
!this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && i < this._tDur || this._ts < 0 && i > 0 || !this._tDur && !i) && xt(this._dp, this, this._start - this._delay);
|
|
792
792
|
}
|
|
793
|
-
return (this._tTime !== i || !this._dur && !r || this._initted && Math.abs(this._zTime) ===
|
|
793
|
+
return (this._tTime !== i || !this._dur && !r || this._initted && Math.abs(this._zTime) === E || !this._initted && this._dur && i || !i && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = i), yr(this, i, r)), this;
|
|
794
794
|
}, t.time = function(i, r) {
|
|
795
795
|
return arguments.length ? this.totalTime(Math.min(this.totalDuration(), i + Ui(this)) % (this._dur + this._rDelay) || (i ? this._dur : 0), r) : this._time;
|
|
796
796
|
}, t.totalProgress = function(i, r) {
|
|
@@ -802,29 +802,29 @@ var Nr = function(t, e) {
|
|
|
802
802
|
return arguments.length ? this.totalTime(this._time + (i - 1) * n, r) : this._repeat ? se(this._tTime, n) + 1 : 1;
|
|
803
803
|
}, t.timeScale = function(i, r) {
|
|
804
804
|
if (!arguments.length)
|
|
805
|
-
return this._rts === -
|
|
805
|
+
return this._rts === -E ? 0 : this._rts;
|
|
806
806
|
if (this._rts === i)
|
|
807
807
|
return this;
|
|
808
|
-
var n = this.parent && this._ts ?
|
|
809
|
-
return this._rts = +i || 0, this._ts = this._ps || i === -
|
|
808
|
+
var n = this.parent && this._ts ? $e(this.parent._time, this) : this._tTime;
|
|
809
|
+
return this._rts = +i || 0, this._ts = this._ps || i === -E ? 0 : this._rts, this.totalTime(Ce(-Math.abs(this._delay), this.totalDuration(), n), r !== !1), We(this), En(this);
|
|
810
810
|
}, t.paused = function(i) {
|
|
811
|
-
return arguments.length ? (this._ps !== i && (this._ps = i, i ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (oe(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !==
|
|
811
|
+
return arguments.length ? (this._ps !== i && (this._ps = i, i ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (oe(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== E && (this._tTime -= E)))), this) : this._ps;
|
|
812
812
|
}, t.startTime = function(i) {
|
|
813
813
|
if (arguments.length) {
|
|
814
814
|
this._start = L(i);
|
|
815
815
|
var r = this.parent || this._dp;
|
|
816
|
-
return r && (r._sort || !this.parent) &&
|
|
816
|
+
return r && (r._sort || !this.parent) && xt(r, this, this._start - this._delay), this;
|
|
817
817
|
}
|
|
818
818
|
return this._start;
|
|
819
819
|
}, t.endTime = function(i) {
|
|
820
|
-
return this._start + (
|
|
820
|
+
return this._start + (tt(i) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);
|
|
821
821
|
}, t.rawTime = function(i) {
|
|
822
822
|
var r = this.parent || this._dp;
|
|
823
|
-
return r ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ?
|
|
823
|
+
return r ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? $e(r.rawTime(i), this) : this._tTime : this._tTime;
|
|
824
824
|
}, t.revert = function(i) {
|
|
825
825
|
i === void 0 && (i = Mn);
|
|
826
|
-
var r =
|
|
827
|
-
return
|
|
826
|
+
var r = H;
|
|
827
|
+
return H = i, Si(this) && (this.timeline && this.timeline.revert(i), this.totalTime(-0.01, i.suppressEvents)), this.data !== "nested" && i.kill !== !1 && this.kill(), H = r, this;
|
|
828
828
|
}, t.globalTime = function(i) {
|
|
829
829
|
for (var r = this, n = arguments.length ? i : r.rawTime(); r; )
|
|
830
830
|
n = r._start + n / (Math.abs(r._ts) || 1), r = r._dp;
|
|
@@ -840,9 +840,9 @@ var Nr = function(t, e) {
|
|
|
840
840
|
}, t.yoyo = function(i) {
|
|
841
841
|
return arguments.length ? (this._yoyo = i, this) : this._yoyo;
|
|
842
842
|
}, t.seek = function(i, r) {
|
|
843
|
-
return this.totalTime(
|
|
843
|
+
return this.totalTime(ct(this, i), tt(r));
|
|
844
844
|
}, t.restart = function(i, r) {
|
|
845
|
-
return this.play().totalTime(i ? -this._delay : 0,
|
|
845
|
+
return this.play().totalTime(i ? -this._delay : 0, tt(r)), this._dur || (this._zTime = -E), this;
|
|
846
846
|
}, t.play = function(i, r) {
|
|
847
847
|
return i != null && this.seek(i, r), this.reversed(!1).paused(!1);
|
|
848
848
|
}, t.reverse = function(i, r) {
|
|
@@ -852,19 +852,19 @@ var Nr = function(t, e) {
|
|
|
852
852
|
}, t.resume = function() {
|
|
853
853
|
return this.paused(!1);
|
|
854
854
|
}, t.reversed = function(i) {
|
|
855
|
-
return arguments.length ? (!!i !== this.reversed() && this.timeScale(-this._rts || (i ? -
|
|
855
|
+
return arguments.length ? (!!i !== this.reversed() && this.timeScale(-this._rts || (i ? -E : 0)), this) : this._rts < 0;
|
|
856
856
|
}, t.invalidate = function() {
|
|
857
|
-
return this._initted = this._act = 0, this._zTime = -
|
|
857
|
+
return this._initted = this._act = 0, this._zTime = -E, this;
|
|
858
858
|
}, t.isActive = function() {
|
|
859
859
|
var i = this.parent || this._dp, r = this._start, n;
|
|
860
|
-
return !!(!i || this._ts && this._initted && i.isActive() && (n = i.rawTime(!0)) >= r && n < this.endTime(!0) -
|
|
860
|
+
return !!(!i || this._ts && this._initted && i.isActive() && (n = i.rawTime(!0)) >= r && n < this.endTime(!0) - E);
|
|
861
861
|
}, t.eventCallback = function(i, r, n) {
|
|
862
862
|
var s = this.vars;
|
|
863
863
|
return arguments.length > 1 ? (r ? (s[i] = r, n && (s[i + "Params"] = n), i === "onUpdate" && (this._onUpdate = r)) : delete s[i], this) : s[i];
|
|
864
864
|
}, t.then = function(i) {
|
|
865
865
|
var r = this, n = r._prom;
|
|
866
866
|
return new Promise(function(s) {
|
|
867
|
-
var a = V(i) ? i :
|
|
867
|
+
var a = V(i) ? i : xr, l = function() {
|
|
868
868
|
var f = r.then;
|
|
869
869
|
r.then = null, n && n(), V(a) && (a = a(r)) && (a.then || a === r) && (r.then = f), s(a), r.then = f;
|
|
870
870
|
};
|
|
@@ -874,7 +874,7 @@ var Nr = function(t, e) {
|
|
|
874
874
|
pe(this);
|
|
875
875
|
}, o;
|
|
876
876
|
}();
|
|
877
|
-
|
|
877
|
+
ht(ke.prototype, {
|
|
878
878
|
_time: 0,
|
|
879
879
|
_start: 0,
|
|
880
880
|
_end: 0,
|
|
@@ -889,16 +889,16 @@ ft(ke.prototype, {
|
|
|
889
889
|
_ts: 1,
|
|
890
890
|
_dp: 0,
|
|
891
891
|
ratio: 0,
|
|
892
|
-
_zTime: -
|
|
892
|
+
_zTime: -E,
|
|
893
893
|
_prom: 0,
|
|
894
894
|
_ps: !1,
|
|
895
895
|
_rts: 1
|
|
896
896
|
});
|
|
897
|
-
var
|
|
898
|
-
|
|
897
|
+
var J = /* @__PURE__ */ function(o) {
|
|
898
|
+
lr(t, o);
|
|
899
899
|
function t(i, r) {
|
|
900
900
|
var n;
|
|
901
|
-
return i === void 0 && (i = {}), n = o.call(this, i) || this, n.labels = {}, n.smoothChildTiming = !!i.smoothChildTiming, n.autoRemoveChildren = !!i.autoRemoveChildren, n._sort =
|
|
901
|
+
return i === void 0 && (i = {}), n = o.call(this, i) || this, n.labels = {}, n.smoothChildTiming = !!i.smoothChildTiming, n.autoRemoveChildren = !!i.autoRemoveChildren, n._sort = tt(i.sortChildren), N && xt(i.parent || N, St(n), r), i.reversed && n.reverse(), i.paused && n.paused(!0), i.scrollTrigger && Tr(St(n), i.scrollTrigger), n;
|
|
902
902
|
}
|
|
903
903
|
var e = t.prototype;
|
|
904
904
|
return e.to = function(r, n, s) {
|
|
@@ -908,31 +908,31 @@ var Z = /* @__PURE__ */ function(o) {
|
|
|
908
908
|
}, e.fromTo = function(r, n, s, a) {
|
|
909
909
|
return ye(2, arguments, this), this;
|
|
910
910
|
}, e.set = function(r, n, s) {
|
|
911
|
-
return n.duration = 0, n.parent = this, ge(n).repeatDelay || (n.repeat = 0), n.immediateRender = !!n.immediateRender, new
|
|
911
|
+
return n.duration = 0, n.parent = this, ge(n).repeatDelay || (n.repeat = 0), n.immediateRender = !!n.immediateRender, new X(r, n, ct(this, s), 1), this;
|
|
912
912
|
}, e.call = function(r, n, s) {
|
|
913
|
-
return
|
|
913
|
+
return xt(this, X.delayedCall(0, r, n), s);
|
|
914
914
|
}, e.staggerTo = function(r, n, s, a, l, u, f) {
|
|
915
|
-
return s.duration = n, s.stagger = s.stagger || a, s.onComplete = u, s.onCompleteParams = f, s.parent = this, new
|
|
915
|
+
return s.duration = n, s.stagger = s.stagger || a, s.onComplete = u, s.onCompleteParams = f, s.parent = this, new X(r, s, ct(this, l)), this;
|
|
916
916
|
}, e.staggerFrom = function(r, n, s, a, l, u, f) {
|
|
917
|
-
return s.runBackwards = 1, ge(s).immediateRender =
|
|
917
|
+
return s.runBackwards = 1, ge(s).immediateRender = tt(s.immediateRender), this.staggerTo(r, n, s, a, l, u, f);
|
|
918
918
|
}, e.staggerFromTo = function(r, n, s, a, l, u, f, h) {
|
|
919
|
-
return a.startAt = s, ge(a).immediateRender =
|
|
919
|
+
return a.startAt = s, ge(a).immediateRender = tt(a.immediateRender), this.staggerTo(r, n, a, l, u, f, h);
|
|
920
920
|
}, e.render = function(r, n, s) {
|
|
921
921
|
var a = this._time, l = this._dirty ? this.totalDuration() : this._tDur, u = this._dur, f = r <= 0 ? 0 : L(r), h = this._zTime < 0 != r < 0 && (this._initted || !u), d, _, m, c, p, y, v, w, x, g, T, k;
|
|
922
|
-
if (this !==
|
|
922
|
+
if (this !== N && f > l && r >= 0 && (f = l), f !== this._tTime || s || h) {
|
|
923
923
|
if (a !== this._time && u && (f += this._time - a, r += this._time - a), d = f, x = this._start, w = this._ts, y = !w, h && (u || (a = this._zTime), (r || !n) && (this._zTime = r)), this._repeat) {
|
|
924
924
|
if (T = this._yoyo, p = u + this._rDelay, this._repeat < -1 && r < 0)
|
|
925
925
|
return this.totalTime(p * 100 + r, n, s);
|
|
926
926
|
if (d = L(f % p), f === l ? (c = this._repeat, d = u) : (g = L(f / p), c = ~~g, c && c === g && (d = u, c--), d > u && (d = u)), g = se(this._tTime, p), !a && this._tTime && g !== c && this._tTime - g * p - this._dur <= 0 && (g = c), T && c & 1 && (d = u - d, k = 1), c !== g && !this._lock) {
|
|
927
927
|
var S = T && g & 1, b = S === (T && c & 1);
|
|
928
|
-
if (c < g && (S = !S), a = S ? 0 : f % u ? u : f, this._lock = 1, this.render(a || (k ? 0 : L(c * p)), n, !u)._lock = 0, this._tTime = f, !n && this.parent &&
|
|
928
|
+
if (c < g && (S = !S), a = S ? 0 : f % u ? u : f, this._lock = 1, this.render(a || (k ? 0 : L(c * p)), n, !u)._lock = 0, this._tTime = f, !n && this.parent && ot(this, "onRepeat"), this.vars.repeatRefresh && !k && (this.invalidate()._lock = 1, g = c), a && a !== this._time || y !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
|
|
929
929
|
return this;
|
|
930
930
|
if (u = this._dur, l = this._tDur, b && (this._lock = 2, a = S ? u : -1e-4, this.render(a, !0), this.vars.repeatRefresh && !k && this.invalidate()), this._lock = 0, !this._ts && !y)
|
|
931
931
|
return this;
|
|
932
|
-
|
|
932
|
+
Nr(this, k);
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
|
-
if (this._hasPause && !this._forcing && this._lock < 2 && (v = Ln(this, L(a), L(d)), v && (f -= d - (d = v._start))), this._tTime = f, this._time = d, this._act = !w, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = r, a = 0), !a && f && u && !n && !g && (
|
|
935
|
+
if (this._hasPause && !this._forcing && this._lock < 2 && (v = Ln(this, L(a), L(d)), v && (f -= d - (d = v._start))), this._tTime = f, this._time = d, this._act = !w, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = r, a = 0), !a && f && u && !n && !g && (ot(this, "onStart"), this._tTime !== f))
|
|
936
936
|
return this;
|
|
937
937
|
if (d >= a && r >= 0)
|
|
938
938
|
for (_ = this._first; _; ) {
|
|
@@ -940,7 +940,7 @@ var Z = /* @__PURE__ */ function(o) {
|
|
|
940
940
|
if (_.parent !== this)
|
|
941
941
|
return this.render(r, n, s);
|
|
942
942
|
if (_.render(_._ts > 0 ? (d - _._start) * _._ts : (_._dirty ? _.totalDuration() : _._tDur) + (d - _._start) * _._ts, n, s), d !== this._time || !this._ts && !y) {
|
|
943
|
-
v = 0, m && (f += this._zTime = -
|
|
943
|
+
v = 0, m && (f += this._zTime = -E);
|
|
944
944
|
break;
|
|
945
945
|
}
|
|
946
946
|
}
|
|
@@ -952,75 +952,75 @@ var Z = /* @__PURE__ */ function(o) {
|
|
|
952
952
|
if (m = _._prev, (_._act || O <= _._end) && _._ts && v !== _) {
|
|
953
953
|
if (_.parent !== this)
|
|
954
954
|
return this.render(r, n, s);
|
|
955
|
-
if (_.render(_._ts > 0 ? (O - _._start) * _._ts : (_._dirty ? _.totalDuration() : _._tDur) + (O - _._start) * _._ts, n, s ||
|
|
956
|
-
v = 0, m && (f += this._zTime = O ? -
|
|
955
|
+
if (_.render(_._ts > 0 ? (O - _._start) * _._ts : (_._dirty ? _.totalDuration() : _._tDur) + (O - _._start) * _._ts, n, s || H && Si(_)), d !== this._time || !this._ts && !y) {
|
|
956
|
+
v = 0, m && (f += this._zTime = O ? -E : E);
|
|
957
957
|
break;
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
960
|
_ = m;
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
|
-
if (v && !n && (this.pause(), v.render(d >= a ? 0 : -
|
|
963
|
+
if (v && !n && (this.pause(), v.render(d >= a ? 0 : -E)._zTime = d >= a ? 1 : -1, this._ts))
|
|
964
964
|
return this._start = x, We(this), this.render(r, n, s);
|
|
965
|
-
this._onUpdate && !n &&
|
|
965
|
+
this._onUpdate && !n && ot(this, "onUpdate", !0), (f === l && this._tTime >= this.totalDuration() || !f && a) && (x === this._start || Math.abs(w) !== Math.abs(this._ts)) && (this._lock || ((r || !u) && (f === l && this._ts > 0 || !f && this._ts < 0) && Rt(this, 1), !n && !(r < 0 && !a) && (f || a || !l) && (ot(this, f === l && r >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(f < l && this.timeScale() > 0) && this._prom())));
|
|
966
966
|
}
|
|
967
967
|
return this;
|
|
968
968
|
}, e.add = function(r, n) {
|
|
969
969
|
var s = this;
|
|
970
|
-
if (Ot(n) || (n =
|
|
971
|
-
if (
|
|
970
|
+
if (Ot(n) || (n = ct(this, n, r)), !(r instanceof ke)) {
|
|
971
|
+
if (Z(r))
|
|
972
972
|
return r.forEach(function(a) {
|
|
973
973
|
return s.add(a, n);
|
|
974
974
|
}), this;
|
|
975
|
-
if (
|
|
975
|
+
if (G(r))
|
|
976
976
|
return this.addLabel(r, n);
|
|
977
977
|
if (V(r))
|
|
978
|
-
r =
|
|
978
|
+
r = X.delayedCall(0, r);
|
|
979
979
|
else
|
|
980
980
|
return this;
|
|
981
981
|
}
|
|
982
|
-
return this !== r ?
|
|
982
|
+
return this !== r ? xt(this, r, n) : this;
|
|
983
983
|
}, e.getChildren = function(r, n, s, a) {
|
|
984
|
-
r === void 0 && (r = !0), n === void 0 && (n = !0), s === void 0 && (s = !0), a === void 0 && (a = -
|
|
984
|
+
r === void 0 && (r = !0), n === void 0 && (n = !0), s === void 0 && (s = !0), a === void 0 && (a = -dt);
|
|
985
985
|
for (var l = [], u = this._first; u; )
|
|
986
|
-
u._start >= a && (u instanceof
|
|
986
|
+
u._start >= a && (u instanceof X ? n && l.push(u) : (s && l.push(u), r && l.push.apply(l, u.getChildren(!0, n, s)))), u = u._next;
|
|
987
987
|
return l;
|
|
988
988
|
}, e.getById = function(r) {
|
|
989
989
|
for (var n = this.getChildren(1, 1, 1), s = n.length; s--; )
|
|
990
990
|
if (n[s].vars.id === r)
|
|
991
991
|
return n[s];
|
|
992
992
|
}, e.remove = function(r) {
|
|
993
|
-
return
|
|
993
|
+
return G(r) ? this.removeLabel(r) : V(r) ? this.killTweensOf(r) : (r.parent === this && je(this, r), r === this._recent && (this._recent = this._last), Xt(this));
|
|
994
994
|
}, e.totalTime = function(r, n) {
|
|
995
|
-
return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = L(
|
|
995
|
+
return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = L(at.time - (this._ts > 0 ? r / this._ts : (this.totalDuration() - r) / -this._ts))), o.prototype.totalTime.call(this, r, n), this._forcing = 0, this) : this._tTime;
|
|
996
996
|
}, e.addLabel = function(r, n) {
|
|
997
|
-
return this.labels[r] =
|
|
997
|
+
return this.labels[r] = ct(this, n), this;
|
|
998
998
|
}, e.removeLabel = function(r) {
|
|
999
999
|
return delete this.labels[r], this;
|
|
1000
1000
|
}, e.addPause = function(r, n, s) {
|
|
1001
|
-
var a =
|
|
1002
|
-
return a.data = "isPause", this._hasPause = 1,
|
|
1001
|
+
var a = X.delayedCall(0, n || be, s);
|
|
1002
|
+
return a.data = "isPause", this._hasPause = 1, xt(this, a, ct(this, r));
|
|
1003
1003
|
}, e.removePause = function(r) {
|
|
1004
1004
|
var n = this._first;
|
|
1005
|
-
for (r =
|
|
1006
|
-
n._start === r && n.data === "isPause" &&
|
|
1005
|
+
for (r = ct(this, r); n; )
|
|
1006
|
+
n._start === r && n.data === "isPause" && Rt(n), n = n._next;
|
|
1007
1007
|
}, e.killTweensOf = function(r, n, s) {
|
|
1008
1008
|
for (var a = this.getTweensOf(r, s), l = a.length; l--; )
|
|
1009
1009
|
Mt !== a[l] && a[l].kill(r, n);
|
|
1010
1010
|
return this;
|
|
1011
1011
|
}, e.getTweensOf = function(r, n) {
|
|
1012
|
-
for (var s = [], a =
|
|
1013
|
-
l instanceof
|
|
1012
|
+
for (var s = [], a = _t(r), l = this._first, u = Ot(n), f; l; )
|
|
1013
|
+
l instanceof X ? Dn(l._targets, a) && (u ? (!Mt || l._initted && l._ts) && l.globalTime(0) <= n && l.globalTime(l.totalDuration()) > n : !n || l.isActive()) && s.push(l) : (f = l.getTweensOf(a, n)).length && s.push.apply(s, f), l = l._next;
|
|
1014
1014
|
return s;
|
|
1015
1015
|
}, e.tweenTo = function(r, n) {
|
|
1016
1016
|
n = n || {};
|
|
1017
|
-
var s = this, a =
|
|
1017
|
+
var s = this, a = ct(s, r), l = n, u = l.startAt, f = l.onStart, h = l.onStartParams, d = l.immediateRender, _, m = X.to(s, ht({
|
|
1018
1018
|
ease: n.ease || "none",
|
|
1019
1019
|
lazy: !1,
|
|
1020
1020
|
immediateRender: !1,
|
|
1021
1021
|
time: a,
|
|
1022
1022
|
overwrite: "auto",
|
|
1023
|
-
duration: n.duration || Math.abs((a - (u && "time" in u ? u.time : s._time)) / s.timeScale()) ||
|
|
1023
|
+
duration: n.duration || Math.abs((a - (u && "time" in u ? u.time : s._time)) / s.timeScale()) || E,
|
|
1024
1024
|
onStart: function() {
|
|
1025
1025
|
if (s.pause(), !_) {
|
|
1026
1026
|
var p = n.duration || Math.abs((a - (u && "time" in u ? u.time : s._time)) / s.timeScale());
|
|
@@ -1031,19 +1031,19 @@ var Z = /* @__PURE__ */ function(o) {
|
|
|
1031
1031
|
}, n));
|
|
1032
1032
|
return d ? m.render(0) : m;
|
|
1033
1033
|
}, e.tweenFromTo = function(r, n, s) {
|
|
1034
|
-
return this.tweenTo(n,
|
|
1034
|
+
return this.tweenTo(n, ht({
|
|
1035
1035
|
startAt: {
|
|
1036
|
-
time:
|
|
1036
|
+
time: ct(this, r)
|
|
1037
1037
|
}
|
|
1038
1038
|
}, s));
|
|
1039
1039
|
}, e.recent = function() {
|
|
1040
1040
|
return this._recent;
|
|
1041
1041
|
}, e.nextLabel = function(r) {
|
|
1042
|
-
return r === void 0 && (r = this._time), qi(this,
|
|
1042
|
+
return r === void 0 && (r = this._time), qi(this, ct(this, r));
|
|
1043
1043
|
}, e.previousLabel = function(r) {
|
|
1044
|
-
return r === void 0 && (r = this._time), qi(this,
|
|
1044
|
+
return r === void 0 && (r = this._time), qi(this, ct(this, r), 1);
|
|
1045
1045
|
}, e.currentLabel = function(r) {
|
|
1046
|
-
return arguments.length ? this.seek(r, !0) : this.previousLabel(this._time +
|
|
1046
|
+
return arguments.length ? this.seek(r, !0) : this.previousLabel(this._time + E);
|
|
1047
1047
|
}, e.shiftChildren = function(r, n, s) {
|
|
1048
1048
|
s === void 0 && (s = 0);
|
|
1049
1049
|
var a = this._first, l = this.labels, u;
|
|
@@ -1064,34 +1064,34 @@ var Z = /* @__PURE__ */ function(o) {
|
|
|
1064
1064
|
s = n._next, this.remove(n), n = s;
|
|
1065
1065
|
return this._dp && (this._time = this._tTime = this._pTime = 0), r && (this.labels = {}), Xt(this);
|
|
1066
1066
|
}, e.totalDuration = function(r) {
|
|
1067
|
-
var n = 0, s = this, a = s._last, l =
|
|
1067
|
+
var n = 0, s = this, a = s._last, l = dt, u, f, h;
|
|
1068
1068
|
if (arguments.length)
|
|
1069
1069
|
return s.timeScale((s._repeat < 0 ? s.duration() : s.totalDuration()) / (s.reversed() ? -r : r));
|
|
1070
1070
|
if (s._dirty) {
|
|
1071
1071
|
for (h = s.parent; a; )
|
|
1072
|
-
u = a._prev, a._dirty && a.totalDuration(), f = a._start, f > l && s._sort && a._ts && !s._lock ? (s._lock = 1,
|
|
1073
|
-
ae(s, s ===
|
|
1072
|
+
u = a._prev, a._dirty && a.totalDuration(), f = a._start, f > l && s._sort && a._ts && !s._lock ? (s._lock = 1, xt(s, a, f - a._delay, 1)._lock = 0) : l = f, f < 0 && a._ts && (n -= f, (!h && !s._dp || h && h.smoothChildTiming) && (s._start += L(f / s._ts), s._time -= f, s._tTime -= f), s.shiftChildren(-f, !1, -1 / 0), l = 0), a._end > n && a._ts && (n = a._end), a = u;
|
|
1073
|
+
ae(s, s === N && s._time > n ? s._time : n, 1, 1), s._dirty = 0;
|
|
1074
1074
|
}
|
|
1075
1075
|
return s._tDur;
|
|
1076
1076
|
}, t.updateRoot = function(r) {
|
|
1077
|
-
if (
|
|
1078
|
-
Bi +=
|
|
1079
|
-
var n =
|
|
1080
|
-
if ((!n || !n._ts) &&
|
|
1077
|
+
if (N._ts && (yr(N, $e(r, N)), mr = at.frame), at.frame >= Bi) {
|
|
1078
|
+
Bi += ut.autoSleep || 120;
|
|
1079
|
+
var n = N._first;
|
|
1080
|
+
if ((!n || !n._ts) && ut.autoSleep && at._listeners.length < 2) {
|
|
1081
1081
|
for (; n && !n._ts; )
|
|
1082
1082
|
n = n._next;
|
|
1083
|
-
n ||
|
|
1083
|
+
n || at.sleep();
|
|
1084
1084
|
}
|
|
1085
1085
|
}
|
|
1086
1086
|
}, t;
|
|
1087
1087
|
}(ke);
|
|
1088
|
-
|
|
1088
|
+
ht(J.prototype, {
|
|
1089
1089
|
_lock: 0,
|
|
1090
1090
|
_hasPause: 0,
|
|
1091
1091
|
_forcing: 0
|
|
1092
1092
|
});
|
|
1093
1093
|
var Jn = function(t, e, i, r, n, s, a) {
|
|
1094
|
-
var l = new
|
|
1094
|
+
var l = new it(this._pt, t, e, 0, 1, jr, null, n), u = 0, f = 0, h, d, _, m, c, p, y, v;
|
|
1095
1095
|
for (l.b = i, l.e = r, i += "", r += "", (y = ~r.indexOf("random(")) && (r = we(r)), s && (v = [i, r], s(v, t, e), i = v[0], r = v[1]), d = i.match(Ke) || []; h = Ke.exec(r); )
|
|
1096
1096
|
m = h[0], c = r.substring(u, h.index), _ ? _ = (_ + 1) % 5 : c.substr(-5) === "rgba(" && (_ = 1), m !== d[f++] && (p = parseFloat(d[f - 1]) || 0, l._pt = {
|
|
1097
1097
|
_next: l._pt,
|
|
@@ -1101,72 +1101,72 @@ var Jn = function(t, e, i, r, n, s, a) {
|
|
|
1101
1101
|
c: m.charAt(1) === "=" ? te(p, m) - p : parseFloat(m) - p,
|
|
1102
1102
|
m: _ && _ < 4 ? Math.round : 0
|
|
1103
1103
|
}, u = Ke.lastIndex);
|
|
1104
|
-
return l.c = u < r.length ? r.substring(u, r.length) : "", l.fp = a, (
|
|
1104
|
+
return l.c = u < r.length ? r.substring(u, r.length) : "", l.fp = a, (cr.test(r) || y) && (l.e = 0), this._pt = l, l;
|
|
1105
1105
|
}, Pi = function(t, e, i, r, n, s, a, l, u, f) {
|
|
1106
1106
|
V(r) && (r = r(n || 0, t, s));
|
|
1107
|
-
var h = t[e], d = i !== "get" ? i : V(h) ? u ? t[e.indexOf("set") || !V(t["get" + e.substr(3)]) ? e : "get" + e.substr(3)](u) : t[e]() : h, _ = V(h) ? u ? ns :
|
|
1108
|
-
if (
|
|
1109
|
-
return !isNaN(d * r) && r !== "" ? (m = new
|
|
1107
|
+
var h = t[e], d = i !== "get" ? i : V(h) ? u ? t[e.indexOf("set") || !V(t["get" + e.substr(3)]) ? e : "get" + e.substr(3)](u) : t[e]() : h, _ = V(h) ? u ? ns : qr : Ci, m;
|
|
1108
|
+
if (G(r) && (~r.indexOf("random(") && (r = we(r)), r.charAt(1) === "=" && (m = te(d, r) + (Q(d) || 0), (m || m === 0) && (r = m))), !f || d !== r || hi)
|
|
1109
|
+
return !isNaN(d * r) && r !== "" ? (m = new it(this._pt, t, e, +d || 0, r - (d || 0), typeof h == "boolean" ? as : Xr, 0, _), u && (m.fp = u), a && m.modifier(a, this, t), this._pt = m) : (!h && !(e in t) && bi(e, r), Jn.call(this, t, e, d, r, _, l || ut.stringFilter, u));
|
|
1110
1110
|
}, ts = function(t, e, i, r, n) {
|
|
1111
|
-
if (V(t) && (t = ve(t, n, e, i, r)), !
|
|
1112
|
-
return
|
|
1111
|
+
if (V(t) && (t = ve(t, n, e, i, r)), !wt(t) || t.style && t.nodeType || Z(t) || fr(t))
|
|
1112
|
+
return G(t) ? ve(t, n, e, i, r) : t;
|
|
1113
1113
|
var s = {}, a;
|
|
1114
1114
|
for (a in t)
|
|
1115
1115
|
s[a] = ve(t[a], n, e, i, r);
|
|
1116
1116
|
return s;
|
|
1117
|
-
},
|
|
1117
|
+
}, Vr = function(t, e, i, r, n, s) {
|
|
1118
1118
|
var a, l, u, f;
|
|
1119
|
-
if (
|
|
1119
|
+
if (st[t] && (a = new st[t]()).init(n, a.rawVars ? e[t] : ts(e[t], r, n, s, i), i, r, s) !== !1 && (i._pt = l = new it(i._pt, n, t, 0, 1, a.render, a, 0, a.priority), i !== Jt))
|
|
1120
1120
|
for (u = i._ptLookup[i._targets.indexOf(n)], f = a._props.length; f--; )
|
|
1121
1121
|
u[a._props[f]] = l;
|
|
1122
1122
|
return a;
|
|
1123
1123
|
}, Mt, hi, Oi = function o(t, e, i) {
|
|
1124
|
-
var r = t.vars, n = r.ease, s = r.startAt, a = r.immediateRender, l = r.lazy, u = r.onUpdate, f = r.runBackwards, h = r.yoyoEase, d = r.keyframes, _ = r.autoRevert, m = t._dur, c = t._startAt, p = t._targets, y = t.parent, v = y && y.data === "nested" ? y.vars.targets : p, w = t._overwrite === "auto" && !gi, x = t.timeline, g, T, k, S, b, O, M, D,
|
|
1125
|
-
if (x && (!d || !n) && (n = "none"), t._ease = jt(n, re.ease), t._yEase = h ?
|
|
1126
|
-
if (D = p[0] ? qt(p[0]).harness : 0,
|
|
1127
|
-
if (
|
|
1124
|
+
var r = t.vars, n = r.ease, s = r.startAt, a = r.immediateRender, l = r.lazy, u = r.onUpdate, f = r.runBackwards, h = r.yoyoEase, d = r.keyframes, _ = r.autoRevert, m = t._dur, c = t._startAt, p = t._targets, y = t.parent, v = y && y.data === "nested" ? y.vars.targets : p, w = t._overwrite === "auto" && !gi, x = t.timeline, g, T, k, S, b, O, M, D, R, K, j, q, W;
|
|
1125
|
+
if (x && (!d || !n) && (n = "none"), t._ease = jt(n, re.ease), t._yEase = h ? Lr(jt(h === !0 ? n : h, re.ease)) : 0, h && t._yoyo && !t._repeat && (h = t._yEase, t._yEase = t._ease, t._ease = h), t._from = !x && !!r.runBackwards, !x || d && !r.stagger) {
|
|
1126
|
+
if (D = p[0] ? qt(p[0]).harness : 0, q = D && r[D.prop], g = Ne(r, wi), c && (c._zTime < 0 && c.progress(1), e < 0 && f && a && !_ ? c.render(-1, !0) : c.revert(f && m ? Ee : Cn), c._lazy = 0), s) {
|
|
1127
|
+
if (Rt(t._startAt = X.set(p, ht({
|
|
1128
1128
|
data: "isStart",
|
|
1129
1129
|
overwrite: !1,
|
|
1130
1130
|
parent: y,
|
|
1131
1131
|
immediateRender: !0,
|
|
1132
|
-
lazy: !c &&
|
|
1132
|
+
lazy: !c && tt(l),
|
|
1133
1133
|
startAt: null,
|
|
1134
1134
|
delay: 0,
|
|
1135
1135
|
onUpdate: u && function() {
|
|
1136
|
-
return
|
|
1136
|
+
return ot(t, "onUpdate");
|
|
1137
1137
|
},
|
|
1138
1138
|
stagger: 0
|
|
1139
|
-
}, s))), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (
|
|
1139
|
+
}, s))), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (H || !a && !_) && t._startAt.revert(Ee), a && m && e <= 0 && i <= 0) {
|
|
1140
1140
|
e && (t._zTime = e);
|
|
1141
1141
|
return;
|
|
1142
1142
|
}
|
|
1143
1143
|
} else if (f && m && !c) {
|
|
1144
|
-
if (e && (a = !1), k =
|
|
1144
|
+
if (e && (a = !1), k = ht({
|
|
1145
1145
|
overwrite: !1,
|
|
1146
1146
|
data: "isFromStart",
|
|
1147
1147
|
//we tag the tween with as "isFromStart" so that if [inside a plugin] we need to only do something at the very END of a tween, we have a way of identifying this tween as merely the one that's setting the beginning values for a "from()" tween. For example, clearProps in CSSPlugin should only get applied at the very END of a tween and without this tag, from(...{height:100, clearProps:"height", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in.
|
|
1148
|
-
lazy: a && !c &&
|
|
1148
|
+
lazy: a && !c && tt(l),
|
|
1149
1149
|
immediateRender: a,
|
|
1150
1150
|
//zero-duration tweens render immediately by default, but if we're not specifically instructed to render this tween immediately, we should skip this and merely _init() to record the starting values (rendering them immediately would push them to completion which is wasteful in that case - we'd have to render(-1) immediately after)
|
|
1151
1151
|
stagger: 0,
|
|
1152
1152
|
parent: y
|
|
1153
1153
|
//ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
|
|
1154
|
-
}, g),
|
|
1155
|
-
o(t._startAt,
|
|
1154
|
+
}, g), q && (k[D.prop] = q), Rt(t._startAt = X.set(p, k)), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (H ? t._startAt.revert(Ee) : t._startAt.render(-1, !0)), t._zTime = e, !a)
|
|
1155
|
+
o(t._startAt, E, E);
|
|
1156
1156
|
else if (!e)
|
|
1157
1157
|
return;
|
|
1158
1158
|
}
|
|
1159
|
-
for (t._pt = t._ptCache = 0, l = m &&
|
|
1160
|
-
if (b = p[T], M = b._gsap || ki(p)[T]._gsap, t._ptLookup[T] =
|
|
1161
|
-
|
|
1162
|
-
}),
|
|
1159
|
+
for (t._pt = t._ptCache = 0, l = m && tt(l) || l && !m, T = 0; T < p.length; T++) {
|
|
1160
|
+
if (b = p[T], M = b._gsap || ki(p)[T]._gsap, t._ptLookup[T] = K = {}, si[M.id] && At.length && Le(), j = v === p ? T : v.indexOf(b), D && (R = new D()).init(b, q || g, t, j, v) !== !1 && (t._pt = S = new it(t._pt, b, R.name, 0, 1, R.render, R, 0, R.priority), R._props.forEach(function(pt) {
|
|
1161
|
+
K[pt] = S;
|
|
1162
|
+
}), R.priority && (O = 1)), !D || q)
|
|
1163
1163
|
for (k in g)
|
|
1164
|
-
|
|
1165
|
-
t._op && t._op[T] && t.kill(b, t._op[T]), w && t._pt && (Mt = t,
|
|
1164
|
+
st[k] && (R = Vr(k, g, t, j, b, v)) ? R.priority && (O = 1) : K[k] = S = Pi.call(t, b, k, "get", g[k], j, v, 0, r.stringFilter);
|
|
1165
|
+
t._op && t._op[T] && t.kill(b, t._op[T]), w && t._pt && (Mt = t, N.killTweensOf(b, K, t.globalTime(e)), W = !t.parent, Mt = 0), t._pt && l && (si[M.id] = 1);
|
|
1166
1166
|
}
|
|
1167
|
-
O &&
|
|
1167
|
+
O && Wr(t), t._onInit && t._onInit(t);
|
|
1168
1168
|
}
|
|
1169
|
-
t._onUpdate = u, t._initted = (!t._op || t._pt) && !
|
|
1169
|
+
t._onUpdate = u, t._initted = (!t._op || t._pt) && !W, d && e <= 0 && x.render(dt, !0, !0);
|
|
1170
1170
|
}, es = function(t, e, i, r, n, s, a, l) {
|
|
1171
1171
|
var u = (t._pt && t._ptCache || (t._ptCache = {}))[e], f, h, d, _;
|
|
1172
1172
|
if (!u)
|
|
@@ -1179,7 +1179,7 @@ var Jn = function(t, e, i, r, n, s, a) {
|
|
|
1179
1179
|
u.push(f);
|
|
1180
1180
|
}
|
|
1181
1181
|
for (_ = u.length; _--; )
|
|
1182
|
-
h = u[_], f = h._pt || h, f.s = (r || r === 0) && !n ? r : f.s + (r || 0) + s * f.c, f.c = i - f.s, h.e && (h.e =
|
|
1182
|
+
h = u[_], f = h._pt || h, f.s = (r || r === 0) && !n ? r : f.s + (r || 0) + s * f.c, f.c = i - f.s, h.e && (h.e = Y(i) + Q(h.e)), h.b && (h.b = f.s + Q(h.b));
|
|
1183
1183
|
}, is = function(t, e) {
|
|
1184
1184
|
var i = t[0] ? qt(t[0]).harness : 0, r = i && i.aliases, n, s, a, l;
|
|
1185
1185
|
if (!r)
|
|
@@ -1192,7 +1192,7 @@ var Jn = function(t, e, i, r, n, s, a) {
|
|
|
1192
1192
|
return n;
|
|
1193
1193
|
}, rs = function(t, e, i, r) {
|
|
1194
1194
|
var n = e.ease || r || "power1.inOut", s, a;
|
|
1195
|
-
if (
|
|
1195
|
+
if (Z(e))
|
|
1196
1196
|
a = i[t] || (i[t] = []), e.forEach(function(l, u) {
|
|
1197
1197
|
return a.push({
|
|
1198
1198
|
t: u / (e.length - 1) * 100,
|
|
@@ -1208,50 +1208,50 @@ var Jn = function(t, e, i, r, n, s, a) {
|
|
|
1208
1208
|
e: n
|
|
1209
1209
|
});
|
|
1210
1210
|
}, ve = function(t, e, i, r, n) {
|
|
1211
|
-
return V(t) ? t.call(e, i, r, n) :
|
|
1212
|
-
},
|
|
1213
|
-
|
|
1214
|
-
return
|
|
1211
|
+
return V(t) ? t.call(e, i, r, n) : G(t) && ~t.indexOf("random(") ? we(t) : t;
|
|
1212
|
+
}, Ur = Ti + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", Yr = {};
|
|
1213
|
+
et(Ur + ",id,stagger,delay,duration,paused,scrollTrigger", function(o) {
|
|
1214
|
+
return Yr[o] = 1;
|
|
1215
1215
|
});
|
|
1216
|
-
var
|
|
1217
|
-
|
|
1216
|
+
var X = /* @__PURE__ */ function(o) {
|
|
1217
|
+
lr(t, o);
|
|
1218
1218
|
function t(i, r, n, s) {
|
|
1219
1219
|
var a;
|
|
1220
1220
|
typeof r == "number" && (n.duration = r, r = n, n = null), a = o.call(this, s ? r : ge(r)) || this;
|
|
1221
|
-
var l = a.vars, u = l.duration, f = l.delay, h = l.immediateRender, d = l.stagger, _ = l.overwrite, m = l.keyframes, c = l.defaults, p = l.scrollTrigger, y = l.yoyoEase, v = r.parent ||
|
|
1222
|
-
if (a._targets = w.length ? ki(w) : xe("GSAP target " + i + " not found. https://gsap.com", !
|
|
1223
|
-
if (r = a.vars, x = a.timeline = new
|
|
1221
|
+
var l = a.vars, u = l.duration, f = l.delay, h = l.immediateRender, d = l.stagger, _ = l.overwrite, m = l.keyframes, c = l.defaults, p = l.scrollTrigger, y = l.yoyoEase, v = r.parent || N, w = (Z(i) || fr(i) ? Ot(i[0]) : "length" in r) ? [i] : _t(i), x, g, T, k, S, b, O, M;
|
|
1222
|
+
if (a._targets = w.length ? ki(w) : xe("GSAP target " + i + " not found. https://gsap.com", !ut.nullTargetWarn) || [], a._ptLookup = [], a._overwrite = _, m || d || Ae(u) || Ae(f)) {
|
|
1223
|
+
if (r = a.vars, x = a.timeline = new J({
|
|
1224
1224
|
data: "nested",
|
|
1225
1225
|
defaults: c || {},
|
|
1226
1226
|
targets: v && v.data === "nested" ? v.vars.targets : w
|
|
1227
|
-
}), x.kill(), x.parent = x._dp =
|
|
1228
|
-
if (k = w.length, O = d &&
|
|
1227
|
+
}), x.kill(), x.parent = x._dp = St(a), x._start = 0, d || Ae(u) || Ae(f)) {
|
|
1228
|
+
if (k = w.length, O = d && Or(d), wt(d))
|
|
1229
1229
|
for (S in d)
|
|
1230
|
-
~
|
|
1230
|
+
~Ur.indexOf(S) && (M || (M = {}), M[S] = d[S]);
|
|
1231
1231
|
for (g = 0; g < k; g++)
|
|
1232
|
-
T =
|
|
1232
|
+
T = Ne(r, Yr), T.stagger = 0, y && (T.yoyoEase = y), M && ne(T, M), b = w[g], T.duration = +ve(u, St(a), g, b, w), T.delay = (+ve(f, St(a), g, b, w) || 0) - a._delay, !d && k === 1 && T.delay && (a._delay = f = T.delay, a._start += f, T.delay = 0), x.to(b, T, O ? O(g, b, w) : 0), x._ease = C.none;
|
|
1233
1233
|
x.duration() ? u = f = 0 : a.timeline = 0;
|
|
1234
1234
|
} else if (m) {
|
|
1235
|
-
ge(
|
|
1235
|
+
ge(ht(x.vars.defaults, {
|
|
1236
1236
|
ease: "none"
|
|
1237
1237
|
})), x._ease = jt(m.ease || r.ease || "none");
|
|
1238
|
-
var D = 0,
|
|
1239
|
-
if (
|
|
1240
|
-
m.forEach(function(
|
|
1241
|
-
return x.to(w,
|
|
1238
|
+
var D = 0, R, K, j;
|
|
1239
|
+
if (Z(m))
|
|
1240
|
+
m.forEach(function(q) {
|
|
1241
|
+
return x.to(w, q, ">");
|
|
1242
1242
|
}), x.duration();
|
|
1243
1243
|
else {
|
|
1244
1244
|
T = {};
|
|
1245
1245
|
for (S in m)
|
|
1246
1246
|
S === "ease" || S === "easeEach" || rs(S, m[S], T, m.easeEach);
|
|
1247
1247
|
for (S in T)
|
|
1248
|
-
for (
|
|
1249
|
-
return
|
|
1250
|
-
}), D = 0, g = 0; g <
|
|
1251
|
-
|
|
1252
|
-
ease:
|
|
1253
|
-
duration: (
|
|
1254
|
-
},
|
|
1248
|
+
for (R = T[S].sort(function(q, W) {
|
|
1249
|
+
return q.t - W.t;
|
|
1250
|
+
}), D = 0, g = 0; g < R.length; g++)
|
|
1251
|
+
K = R[g], j = {
|
|
1252
|
+
ease: K.e,
|
|
1253
|
+
duration: (K.t - (g ? R[g - 1].t : 0)) / 100 * u
|
|
1254
|
+
}, j[S] = K.v, x.to(w, j, D), D += j.duration;
|
|
1255
1255
|
x.duration() < u && x.to({}, {
|
|
1256
1256
|
duration: u - x.duration()
|
|
1257
1257
|
});
|
|
@@ -1260,11 +1260,11 @@ var q = /* @__PURE__ */ function(o) {
|
|
|
1260
1260
|
u || a.duration(u = x.duration());
|
|
1261
1261
|
} else
|
|
1262
1262
|
a.timeline = 0;
|
|
1263
|
-
return _ === !0 && !gi && (Mt =
|
|
1263
|
+
return _ === !0 && !gi && (Mt = St(a), N.killTweensOf(w), Mt = 0), xt(v, St(a), n), r.reversed && a.reverse(), r.paused && a.paused(!0), (h || !u && !m && a._start === L(v._time) && tt(h) && Rn(St(a)) && v.data !== "nested") && (a._tTime = -E, a.render(Math.max(0, -f) || 0)), p && Tr(St(a), p), a;
|
|
1264
1264
|
}
|
|
1265
1265
|
var e = t.prototype;
|
|
1266
1266
|
return e.render = function(r, n, s) {
|
|
1267
|
-
var a = this._time, l = this._tDur, u = this._dur, f = r < 0, h = r > l -
|
|
1267
|
+
var a = this._time, l = this._tDur, u = this._dur, f = r < 0, h = r > l - E && !f ? l : r < E ? 0 : r, d, _, m, c, p, y, v, w, x;
|
|
1268
1268
|
if (!u)
|
|
1269
1269
|
Fn(this, r, n, s);
|
|
1270
1270
|
else if (h !== this._tTime || !r || s || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== f || this._lazy) {
|
|
@@ -1273,21 +1273,21 @@ var q = /* @__PURE__ */ function(o) {
|
|
|
1273
1273
|
return this.totalTime(c * 100 + r, n, s);
|
|
1274
1274
|
if (d = L(h % c), h === l ? (m = this._repeat, d = u) : (p = L(h / c), m = ~~p, m && m === p ? (d = u, m--) : d > u && (d = u)), y = this._yoyo && m & 1, y && (x = this._yEase, d = u - d), p = se(this._tTime, c), d === a && !s && this._initted && m === p)
|
|
1275
1275
|
return this._tTime = h, this;
|
|
1276
|
-
m !== p && (w && this._yEase &&
|
|
1276
|
+
m !== p && (w && this._yEase && Nr(w, y), this.vars.repeatRefresh && !y && !this._lock && d !== c && this._initted && (this._lock = s = 1, this.render(L(c * m), !0).invalidate()._lock = 0));
|
|
1277
1277
|
}
|
|
1278
1278
|
if (!this._initted) {
|
|
1279
|
-
if (
|
|
1279
|
+
if (kr(this, f ? r : d, s, n, h))
|
|
1280
1280
|
return this._tTime = 0, this;
|
|
1281
1281
|
if (a !== this._time && !(s && this.vars.repeatRefresh && m !== p))
|
|
1282
1282
|
return this;
|
|
1283
1283
|
if (u !== this._dur)
|
|
1284
1284
|
return this.render(r, n, s);
|
|
1285
1285
|
}
|
|
1286
|
-
if (this._tTime = h, this._time = d, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = v = (x || this._ease)(d / u), this._from && (this.ratio = v = 1 - v), !a && h && !n && !p && (
|
|
1286
|
+
if (this._tTime = h, this._time = d, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = v = (x || this._ease)(d / u), this._from && (this.ratio = v = 1 - v), !a && h && !n && !p && (ot(this, "onStart"), this._tTime !== h))
|
|
1287
1287
|
return this;
|
|
1288
1288
|
for (_ = this._pt; _; )
|
|
1289
1289
|
_.r(v, _.d), _ = _._next;
|
|
1290
|
-
w && w.render(r < 0 ? r : w._dur * w._ease(d / this._dur), n, s) || this._startAt && (this._zTime = r), this._onUpdate && !n && (f && ai(this, r, n, s),
|
|
1290
|
+
w && w.render(r < 0 ? r : w._dur * w._ease(d / this._dur), n, s) || this._startAt && (this._zTime = r), this._onUpdate && !n && (f && ai(this, r, n, s), ot(this, "onUpdate")), this._repeat && m !== p && this.vars.onRepeat && !n && this.parent && ot(this, "onRepeat"), (h === this._tDur || !h) && this._tTime === h && (f && !this._onUpdate && ai(this, r, !0, !0), (r || !u) && (h === this._tDur && this._ts > 0 || !h && this._ts < 0) && Rt(this, 1), !n && !(f && !a) && (h || a || y) && (ot(this, h === l ? "onComplete" : "onReverseComplete", !0), this._prom && !(h < l && this.timeScale() > 0) && this._prom()));
|
|
1291
1291
|
}
|
|
1292
1292
|
return this;
|
|
1293
1293
|
}, e.targets = function() {
|
|
@@ -1295,20 +1295,20 @@ var q = /* @__PURE__ */ function(o) {
|
|
|
1295
1295
|
}, e.invalidate = function(r) {
|
|
1296
1296
|
return (!r || !this.vars.runBackwards) && (this._startAt = 0), this._pt = this._op = this._onUpdate = this._lazy = this.ratio = 0, this._ptLookup = [], this.timeline && this.timeline.invalidate(r), o.prototype.invalidate.call(this, r);
|
|
1297
1297
|
}, e.resetTo = function(r, n, s, a, l) {
|
|
1298
|
-
Te ||
|
|
1298
|
+
Te || at.wake(), this._ts || this.play();
|
|
1299
1299
|
var u = Math.min(this._dur, (this._dp._time - this._start) * this._ts), f;
|
|
1300
|
-
return this._initted || Oi(this, u), f = this._ease(u / this._dur), es(this, r, n, s, a, f, u, l) ? this.resetTo(r, n, s, a, 1) : (Ge(this, 0), this.parent ||
|
|
1300
|
+
return this._initted || Oi(this, u), f = this._ease(u / this._dur), es(this, r, n, s, a, f, u, l) ? this.resetTo(r, n, s, a, 1) : (Ge(this, 0), this.parent || br(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
|
|
1301
1301
|
}, e.kill = function(r, n) {
|
|
1302
1302
|
if (n === void 0 && (n = "all"), !r && (!n || n === "all"))
|
|
1303
|
-
return this._lazy = this._pt = 0, this.parent ? pe(this) : this.scrollTrigger && this.scrollTrigger.kill(!!
|
|
1303
|
+
return this._lazy = this._pt = 0, this.parent ? pe(this) : this.scrollTrigger && this.scrollTrigger.kill(!!H), this;
|
|
1304
1304
|
if (this.timeline) {
|
|
1305
1305
|
var s = this.timeline.totalDuration();
|
|
1306
1306
|
return this.timeline.killTweensOf(r, n, Mt && Mt.vars.overwrite !== !0)._first || pe(this), this.parent && s !== this.timeline.totalDuration() && ae(this, this._dur * this.timeline._tDur / s, 0, 1), this;
|
|
1307
1307
|
}
|
|
1308
|
-
var a = this._targets, l = r ?
|
|
1309
|
-
if ((!n || n === "all") &&
|
|
1308
|
+
var a = this._targets, l = r ? _t(r) : a, u = this._ptLookup, f = this._pt, h, d, _, m, c, p, y;
|
|
1309
|
+
if ((!n || n === "all") && An(a, l))
|
|
1310
1310
|
return n === "all" && (this._pt = 0), pe(this);
|
|
1311
|
-
for (h = this._op = this._op || [], n !== "all" && (
|
|
1311
|
+
for (h = this._op = this._op || [], n !== "all" && (G(n) && (c = {}, et(n, function(v) {
|
|
1312
1312
|
return c[v] = 1;
|
|
1313
1313
|
}), n = c), n = is(a, n)), y = a.length; y--; )
|
|
1314
1314
|
if (~l.indexOf(a[y])) {
|
|
@@ -1338,37 +1338,37 @@ var q = /* @__PURE__ */ function(o) {
|
|
|
1338
1338
|
}, t.set = function(r, n) {
|
|
1339
1339
|
return n.duration = 0, n.repeatDelay || (n.repeat = 0), new t(r, n);
|
|
1340
1340
|
}, t.killTweensOf = function(r, n, s) {
|
|
1341
|
-
return
|
|
1341
|
+
return N.killTweensOf(r, n, s);
|
|
1342
1342
|
}, t;
|
|
1343
1343
|
}(ke);
|
|
1344
|
-
|
|
1344
|
+
ht(X.prototype, {
|
|
1345
1345
|
_targets: [],
|
|
1346
1346
|
_lazy: 0,
|
|
1347
1347
|
_startAt: 0,
|
|
1348
1348
|
_op: 0,
|
|
1349
1349
|
_onInit: 0
|
|
1350
1350
|
});
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
var t = new
|
|
1351
|
+
et("staggerTo,staggerFrom,staggerFromTo", function(o) {
|
|
1352
|
+
X[o] = function() {
|
|
1353
|
+
var t = new J(), e = li.call(arguments, 0);
|
|
1354
1354
|
return e.splice(o === "staggerFromTo" ? 5 : 4, 0, 0), t[o].apply(t, e);
|
|
1355
1355
|
};
|
|
1356
1356
|
});
|
|
1357
1357
|
var Ci = function(t, e, i) {
|
|
1358
1358
|
return t[e] = i;
|
|
1359
|
-
},
|
|
1359
|
+
}, qr = function(t, e, i) {
|
|
1360
1360
|
return t[e](i);
|
|
1361
1361
|
}, ns = function(t, e, i, r) {
|
|
1362
1362
|
return t[e](r.fp, i);
|
|
1363
1363
|
}, ss = function(t, e, i) {
|
|
1364
1364
|
return t.setAttribute(e, i);
|
|
1365
1365
|
}, Mi = function(t, e) {
|
|
1366
|
-
return V(t[e]) ?
|
|
1367
|
-
},
|
|
1366
|
+
return V(t[e]) ? qr : yi(t[e]) && t.setAttribute ? ss : Ci;
|
|
1367
|
+
}, Xr = function(t, e) {
|
|
1368
1368
|
return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e6) / 1e6, e);
|
|
1369
1369
|
}, as = function(t, e) {
|
|
1370
1370
|
return e.set(e.t, e.p, !!(e.s + e.c * t), e);
|
|
1371
|
-
},
|
|
1371
|
+
}, jr = function(t, e) {
|
|
1372
1372
|
var i = e._pt, r = "";
|
|
1373
1373
|
if (!t && e.b)
|
|
1374
1374
|
r = e.b;
|
|
@@ -1392,35 +1392,35 @@ var Ci = function(t, e, i) {
|
|
|
1392
1392
|
return !i;
|
|
1393
1393
|
}, us = function(t, e, i, r) {
|
|
1394
1394
|
r.mSet(t, e, r.m.call(r.tween, i, r.mt), r);
|
|
1395
|
-
},
|
|
1395
|
+
}, Wr = function(t) {
|
|
1396
1396
|
for (var e = t._pt, i, r, n, s; e; ) {
|
|
1397
1397
|
for (i = e._next, r = n; r && r.pr > e.pr; )
|
|
1398
1398
|
r = r._next;
|
|
1399
1399
|
(e._prev = r ? r._prev : s) ? e._prev._next = e : n = e, (e._next = r) ? r._prev = e : s = e, e = i;
|
|
1400
1400
|
}
|
|
1401
1401
|
t._pt = n;
|
|
1402
|
-
},
|
|
1402
|
+
}, it = /* @__PURE__ */ function() {
|
|
1403
1403
|
function o(e, i, r, n, s, a, l, u, f) {
|
|
1404
|
-
this.t = i, this.s = n, this.c = s, this.p = r, this.r = a ||
|
|
1404
|
+
this.t = i, this.s = n, this.c = s, this.p = r, this.r = a || Xr, this.d = l || this, this.set = u || Ci, this.pr = f || 0, this._next = e, e && (e._prev = this);
|
|
1405
1405
|
}
|
|
1406
1406
|
var t = o.prototype;
|
|
1407
1407
|
return t.modifier = function(i, r, n) {
|
|
1408
1408
|
this.mSet = this.mSet || this.set, this.set = us, this.m = i, this.mt = n, this.tween = r;
|
|
1409
1409
|
}, o;
|
|
1410
1410
|
}();
|
|
1411
|
-
|
|
1411
|
+
et(Ti + "parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger", function(o) {
|
|
1412
1412
|
return wi[o] = 1;
|
|
1413
1413
|
});
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1414
|
+
ft.TweenMax = ft.TweenLite = X;
|
|
1415
|
+
ft.TimelineLite = ft.TimelineMax = J;
|
|
1416
|
+
N = new J({
|
|
1417
1417
|
sortChildren: !1,
|
|
1418
1418
|
defaults: re,
|
|
1419
1419
|
autoRemoveChildren: !0,
|
|
1420
1420
|
id: "root",
|
|
1421
1421
|
smoothChildTiming: !0
|
|
1422
1422
|
});
|
|
1423
|
-
|
|
1423
|
+
ut.stringFilter = Fr;
|
|
1424
1424
|
var Wt = [], Ie = {}, fs = [], ji = 0, hs = 0, ti = function(t) {
|
|
1425
1425
|
return (Ie[t] || fs).map(function(e) {
|
|
1426
1426
|
return e();
|
|
@@ -1430,14 +1430,14 @@ var Wt = [], Ie = {}, fs = [], ji = 0, hs = 0, ti = function(t) {
|
|
|
1430
1430
|
t - ji > 2 && (ti("matchMediaInit"), Wt.forEach(function(i) {
|
|
1431
1431
|
var r = i.queries, n = i.conditions, s, a, l, u;
|
|
1432
1432
|
for (a in r)
|
|
1433
|
-
s =
|
|
1433
|
+
s = vt.matchMedia(r[a]).matches, s && (l = 1), s !== n[a] && (n[a] = s, u = 1);
|
|
1434
1434
|
u && (i.revert(), l && e.push(i));
|
|
1435
1435
|
}), ti("matchMediaRevert"), e.forEach(function(i) {
|
|
1436
1436
|
return i.onMatch(i, function(r) {
|
|
1437
1437
|
return i.add(null, r);
|
|
1438
1438
|
});
|
|
1439
1439
|
}), ji = t, ti("matchMedia"));
|
|
1440
|
-
},
|
|
1440
|
+
}, Gr = /* @__PURE__ */ function() {
|
|
1441
1441
|
function o(e, i) {
|
|
1442
1442
|
this.selector = i && ui(i), this.data = [], this._r = [], this.isReverted = !1, this.id = hs++, e && this.add(e);
|
|
1443
1443
|
}
|
|
@@ -1457,7 +1457,7 @@ var Wt = [], Ie = {}, fs = [], ji = 0, hs = 0, ti = function(t) {
|
|
|
1457
1457
|
}, t.getTweens = function() {
|
|
1458
1458
|
var i = [];
|
|
1459
1459
|
return this.data.forEach(function(r) {
|
|
1460
|
-
return r instanceof o ? i.push.apply(i, r.getTweens()) : r instanceof
|
|
1460
|
+
return r instanceof o ? i.push.apply(i, r.getTweens()) : r instanceof X && !(r.parent && r.parent.data === "nested") && i.push(r);
|
|
1461
1461
|
}), i;
|
|
1462
1462
|
}, t.clear = function() {
|
|
1463
1463
|
this._r.length = this.data.length = 0;
|
|
@@ -1478,7 +1478,7 @@ var Wt = [], Ie = {}, fs = [], ji = 0, hs = 0, ti = function(t) {
|
|
|
1478
1478
|
}).forEach(function(f) {
|
|
1479
1479
|
return f.t.revert(i);
|
|
1480
1480
|
}), l = n.data.length; l--; )
|
|
1481
|
-
u = n.data[l], u instanceof
|
|
1481
|
+
u = n.data[l], u instanceof J ? u.data !== "nested" && (u.scrollTrigger && u.scrollTrigger.revert(), u.kill()) : !(u instanceof X) && u.revert && u.revert(i);
|
|
1482
1482
|
n._r.forEach(function(f) {
|
|
1483
1483
|
return f(i, n);
|
|
1484
1484
|
}), n.isReverted = !0;
|
|
@@ -1496,13 +1496,13 @@ var Wt = [], Ie = {}, fs = [], ji = 0, hs = 0, ti = function(t) {
|
|
|
1496
1496
|
}
|
|
1497
1497
|
var t = o.prototype;
|
|
1498
1498
|
return t.add = function(i, r, n) {
|
|
1499
|
-
|
|
1499
|
+
wt(i) || (i = {
|
|
1500
1500
|
matches: i
|
|
1501
1501
|
});
|
|
1502
|
-
var s = new
|
|
1502
|
+
var s = new Gr(0, n || this.scope), a = s.conditions = {}, l, u, f;
|
|
1503
1503
|
F && !s.selector && (s.selector = F.selector), this.contexts.push(s), r = s.add("onMatch", r), s.queries = i;
|
|
1504
1504
|
for (u in i)
|
|
1505
|
-
u === "all" ? f = 1 : (l =
|
|
1505
|
+
u === "all" ? f = 1 : (l = vt.matchMedia(i[u]), l && (Wt.indexOf(s) < 0 && Wt.push(s), (a[u] = l.matches) && (f = 1), l.addListener ? l.addListener(ci) : l.addEventListener("change", ci)));
|
|
1506
1506
|
return f && r(s, function(h) {
|
|
1507
1507
|
return s.add(null, h);
|
|
1508
1508
|
}), this;
|
|
@@ -1522,22 +1522,22 @@ var Wt = [], Ie = {}, fs = [], ji = 0, hs = 0, ti = function(t) {
|
|
|
1522
1522
|
});
|
|
1523
1523
|
},
|
|
1524
1524
|
timeline: function(t) {
|
|
1525
|
-
return new
|
|
1525
|
+
return new J(t);
|
|
1526
1526
|
},
|
|
1527
1527
|
getTweensOf: function(t, e) {
|
|
1528
|
-
return
|
|
1528
|
+
return N.getTweensOf(t, e);
|
|
1529
1529
|
},
|
|
1530
1530
|
getProperty: function(t, e, i, r) {
|
|
1531
|
-
|
|
1532
|
-
var n = qt(t || {}).get, s = i ?
|
|
1533
|
-
return i === "native" && (i = ""), t && (e ? s((
|
|
1534
|
-
return s((
|
|
1531
|
+
G(t) && (t = _t(t)[0]);
|
|
1532
|
+
var n = qt(t || {}).get, s = i ? xr : vr;
|
|
1533
|
+
return i === "native" && (i = ""), t && (e ? s((st[e] && st[e].get || n)(t, e, i, r)) : function(a, l, u) {
|
|
1534
|
+
return s((st[a] && st[a].get || n)(t, a, l, u));
|
|
1535
1535
|
});
|
|
1536
1536
|
},
|
|
1537
1537
|
quickSetter: function(t, e, i) {
|
|
1538
|
-
if (t =
|
|
1538
|
+
if (t = _t(t), t.length > 1) {
|
|
1539
1539
|
var r = t.map(function(f) {
|
|
1540
|
-
return
|
|
1540
|
+
return nt.quickSetter(f, e, i);
|
|
1541
1541
|
}), n = r.length;
|
|
1542
1542
|
return function(f) {
|
|
1543
1543
|
for (var h = n; h--; )
|
|
@@ -1545,7 +1545,7 @@ var Wt = [], Ie = {}, fs = [], ji = 0, hs = 0, ti = function(t) {
|
|
|
1545
1545
|
};
|
|
1546
1546
|
}
|
|
1547
1547
|
t = t[0] || {};
|
|
1548
|
-
var s =
|
|
1548
|
+
var s = st[e], a = qt(t), l = a.harness && (a.harness.aliases || {})[e] || e, u = s ? function(f) {
|
|
1549
1549
|
var h = new s();
|
|
1550
1550
|
Jt._pt = 0, h.init(t, i ? f + i : f, Jt, 0, [t]), h.render(1, h), Jt._pt && Di(1, Jt);
|
|
1551
1551
|
} : a.set(t, l);
|
|
@@ -1554,28 +1554,28 @@ var Wt = [], Ie = {}, fs = [], ji = 0, hs = 0, ti = function(t) {
|
|
|
1554
1554
|
};
|
|
1555
1555
|
},
|
|
1556
1556
|
quickTo: function(t, e, i) {
|
|
1557
|
-
var r, n =
|
|
1557
|
+
var r, n = nt.to(t, ht((r = {}, r[e] = "+=0.1", r.paused = !0, r.stagger = 0, r), i || {})), s = function(l, u, f) {
|
|
1558
1558
|
return n.resetTo(e, l, u, f);
|
|
1559
1559
|
};
|
|
1560
1560
|
return s.tween = n, s;
|
|
1561
1561
|
},
|
|
1562
1562
|
isTweening: function(t) {
|
|
1563
|
-
return
|
|
1563
|
+
return N.getTweensOf(t, !0).length > 0;
|
|
1564
1564
|
},
|
|
1565
1565
|
defaults: function(t) {
|
|
1566
1566
|
return t && t.ease && (t.ease = jt(t.ease, re.ease)), Vi(re, t || {});
|
|
1567
1567
|
},
|
|
1568
1568
|
config: function(t) {
|
|
1569
|
-
return Vi(
|
|
1569
|
+
return Vi(ut, t || {});
|
|
1570
1570
|
},
|
|
1571
1571
|
registerEffect: function(t) {
|
|
1572
1572
|
var e = t.name, i = t.effect, r = t.plugins, n = t.defaults, s = t.extendTimeline;
|
|
1573
1573
|
(r || "").split(",").forEach(function(a) {
|
|
1574
|
-
return a && !
|
|
1574
|
+
return a && !st[a] && !ft[a] && xe(e + " effect requires " + a + " plugin.");
|
|
1575
1575
|
}), He[e] = function(a, l, u) {
|
|
1576
|
-
return i(
|
|
1577
|
-
}, s && (
|
|
1578
|
-
return this.add(He[e](a,
|
|
1576
|
+
return i(_t(a), ht(l || {}, n), u);
|
|
1577
|
+
}, s && (J.prototype[e] = function(a, l, u) {
|
|
1578
|
+
return this.add(He[e](a, wt(l) ? l : (u = l) && {}, this), u);
|
|
1579
1579
|
});
|
|
1580
1580
|
},
|
|
1581
1581
|
registerEase: function(t, e) {
|
|
@@ -1585,17 +1585,17 @@ var Wt = [], Ie = {}, fs = [], ji = 0, hs = 0, ti = function(t) {
|
|
|
1585
1585
|
return arguments.length ? jt(t, e) : C;
|
|
1586
1586
|
},
|
|
1587
1587
|
getById: function(t) {
|
|
1588
|
-
return
|
|
1588
|
+
return N.getById(t);
|
|
1589
1589
|
},
|
|
1590
1590
|
exportRoot: function(t, e) {
|
|
1591
1591
|
t === void 0 && (t = {});
|
|
1592
|
-
var i = new
|
|
1593
|
-
for (i.smoothChildTiming =
|
|
1594
|
-
n = r._next, (e || !(!r._dur && r instanceof
|
|
1595
|
-
return
|
|
1592
|
+
var i = new J(t), r, n;
|
|
1593
|
+
for (i.smoothChildTiming = tt(t.smoothChildTiming), N.remove(i), i._dp = 0, i._time = i._tTime = N._time, r = N._first; r; )
|
|
1594
|
+
n = r._next, (e || !(!r._dur && r instanceof X && r.vars.onComplete === r._targets[0])) && xt(i, r, r._start - r._delay), r = n;
|
|
1595
|
+
return xt(N, i, 0), i;
|
|
1596
1596
|
},
|
|
1597
1597
|
context: function(t, e) {
|
|
1598
|
-
return t ? new
|
|
1598
|
+
return t ? new Gr(t, e) : F;
|
|
1599
1599
|
},
|
|
1600
1600
|
matchMedia: function(t) {
|
|
1601
1601
|
return new cs(t);
|
|
@@ -1619,37 +1619,37 @@ var Wt = [], Ie = {}, fs = [], ji = 0, hs = 0, ti = function(t) {
|
|
|
1619
1619
|
utils: {
|
|
1620
1620
|
wrap: qn,
|
|
1621
1621
|
wrapYoyo: Xn,
|
|
1622
|
-
distribute:
|
|
1623
|
-
random:
|
|
1624
|
-
snap:
|
|
1622
|
+
distribute: Or,
|
|
1623
|
+
random: Mr,
|
|
1624
|
+
snap: Cr,
|
|
1625
1625
|
normalize: Yn,
|
|
1626
|
-
getUnit:
|
|
1627
|
-
clamp:
|
|
1626
|
+
getUnit: Q,
|
|
1627
|
+
clamp: $n,
|
|
1628
1628
|
splitColor: Rr,
|
|
1629
|
-
toArray:
|
|
1629
|
+
toArray: _t,
|
|
1630
1630
|
selector: ui,
|
|
1631
|
-
mapRange:
|
|
1631
|
+
mapRange: zr,
|
|
1632
1632
|
pipe: Vn,
|
|
1633
1633
|
unitize: Un,
|
|
1634
1634
|
interpolate: jn,
|
|
1635
|
-
shuffle:
|
|
1635
|
+
shuffle: Pr
|
|
1636
1636
|
},
|
|
1637
|
-
install:
|
|
1637
|
+
install: _r,
|
|
1638
1638
|
effects: He,
|
|
1639
|
-
ticker:
|
|
1640
|
-
updateRoot:
|
|
1641
|
-
plugins:
|
|
1642
|
-
globalTimeline:
|
|
1639
|
+
ticker: at,
|
|
1640
|
+
updateRoot: J.updateRoot,
|
|
1641
|
+
plugins: st,
|
|
1642
|
+
globalTimeline: N,
|
|
1643
1643
|
core: {
|
|
1644
|
-
PropTween:
|
|
1645
|
-
globals:
|
|
1646
|
-
Tween:
|
|
1647
|
-
Timeline:
|
|
1644
|
+
PropTween: it,
|
|
1645
|
+
globals: pr,
|
|
1646
|
+
Tween: X,
|
|
1647
|
+
Timeline: J,
|
|
1648
1648
|
Animation: ke,
|
|
1649
1649
|
getCache: qt,
|
|
1650
1650
|
_removeLinkedListItem: je,
|
|
1651
1651
|
reverting: function() {
|
|
1652
|
-
return
|
|
1652
|
+
return H;
|
|
1653
1653
|
},
|
|
1654
1654
|
context: function(t) {
|
|
1655
1655
|
return t && F && (F.data.push(t), t._ctx = F), F;
|
|
@@ -1659,10 +1659,10 @@ var Wt = [], Ie = {}, fs = [], ji = 0, hs = 0, ti = function(t) {
|
|
|
1659
1659
|
}
|
|
1660
1660
|
}
|
|
1661
1661
|
};
|
|
1662
|
-
|
|
1663
|
-
return Be[o] =
|
|
1662
|
+
et("to,from,fromTo,delayedCall,set,killTweensOf", function(o) {
|
|
1663
|
+
return Be[o] = X[o];
|
|
1664
1664
|
});
|
|
1665
|
-
|
|
1665
|
+
at.add(J.updateRoot);
|
|
1666
1666
|
Jt = Be.to({}, {
|
|
1667
1667
|
duration: 0
|
|
1668
1668
|
});
|
|
@@ -1684,7 +1684,7 @@ var ds = function(t, e) {
|
|
|
1684
1684
|
init: function(r, n, s) {
|
|
1685
1685
|
s._onInit = function(a) {
|
|
1686
1686
|
var l, u;
|
|
1687
|
-
if (
|
|
1687
|
+
if (G(n) && (l = {}, et(n, function(f) {
|
|
1688
1688
|
return l[f] = 1;
|
|
1689
1689
|
}), n = l), e) {
|
|
1690
1690
|
l = {};
|
|
@@ -1696,7 +1696,7 @@ var ds = function(t, e) {
|
|
|
1696
1696
|
};
|
|
1697
1697
|
}
|
|
1698
1698
|
};
|
|
1699
|
-
},
|
|
1699
|
+
}, nt = Be.registerPlugin({
|
|
1700
1700
|
name: "attr",
|
|
1701
1701
|
init: function(t, e, i, r, n) {
|
|
1702
1702
|
var s, a, l;
|
|
@@ -1706,7 +1706,7 @@ var ds = function(t, e) {
|
|
|
1706
1706
|
},
|
|
1707
1707
|
render: function(t, e) {
|
|
1708
1708
|
for (var i = e._pt; i; )
|
|
1709
|
-
|
|
1709
|
+
H ? i.set(i.t, i.p, i.b, i) : i.r(t, i.d), i = i._next;
|
|
1710
1710
|
}
|
|
1711
1711
|
}, {
|
|
1712
1712
|
name: "endArray",
|
|
@@ -1715,9 +1715,9 @@ var ds = function(t, e) {
|
|
|
1715
1715
|
for (var i = e.length; i--; )
|
|
1716
1716
|
this.add(t, i, t[i] || 0, e[i], 0, 0, 0, 0, 0, 1);
|
|
1717
1717
|
}
|
|
1718
|
-
}, ei("roundProps", fi), ei("modifiers"), ei("snap",
|
|
1719
|
-
|
|
1720
|
-
|
|
1718
|
+
}, ei("roundProps", fi), ei("modifiers"), ei("snap", Cr)) || Be;
|
|
1719
|
+
X.version = J.version = nt.version = "3.14.2";
|
|
1720
|
+
dr = 1;
|
|
1721
1721
|
vi() && oe();
|
|
1722
1722
|
C.Power0;
|
|
1723
1723
|
C.Power1;
|
|
@@ -1745,9 +1745,9 @@ C.Circ;
|
|
|
1745
1745
|
* Subject to the terms at https://gsap.com/standard-license
|
|
1746
1746
|
* @author: Jack Doyle, jack@greensock.com
|
|
1747
1747
|
*/
|
|
1748
|
-
var Wi, Dt, ee,
|
|
1748
|
+
var Wi, Dt, ee, zi, Yt, Gi, Ai, ps = function() {
|
|
1749
1749
|
return typeof window < "u";
|
|
1750
|
-
}, Ct = {}, Ut = 180 / Math.PI, ie = Math.PI / 180, Qt = Math.atan2, Ki = 1e8,
|
|
1750
|
+
}, Ct = {}, Ut = 180 / Math.PI, ie = Math.PI / 180, Qt = Math.atan2, Ki = 1e8, Ei = /([A-Z])/g, ms = /(left|right|width|margin|padding|x)/i, gs = /[\s,\(]\S/, bt = {
|
|
1751
1751
|
autoAlpha: "opacity,visibility",
|
|
1752
1752
|
scale: "scaleX,scaleY",
|
|
1753
1753
|
alpha: "opacity"
|
|
@@ -1762,9 +1762,9 @@ var Wi, Dt, ee, Ai, Yt, Gi, Ei, ps = function() {
|
|
|
1762
1762
|
}, bs = function(t, e) {
|
|
1763
1763
|
var i = e.s + e.c * t;
|
|
1764
1764
|
e.set(e.t, e.p, ~~(i + (i < 0 ? -0.5 : 0.5)) + e.u, e);
|
|
1765
|
-
}, Gr = function(t, e) {
|
|
1766
|
-
return e.set(e.t, e.p, t ? e.e : e.b, e);
|
|
1767
1765
|
}, Kr = function(t, e) {
|
|
1766
|
+
return e.set(e.t, e.p, t ? e.e : e.b, e);
|
|
1767
|
+
}, Hr = function(t, e) {
|
|
1768
1768
|
return e.set(e.t, e.p, t !== 1 ? e.b : e.e, e);
|
|
1769
1769
|
}, ws = function(t, e, i) {
|
|
1770
1770
|
return t.style[e] = i;
|
|
@@ -1780,49 +1780,49 @@ var Wi, Dt, ee, Ai, Yt, Gi, Ei, ps = function() {
|
|
|
1780
1780
|
}, Os = function(t, e, i, r, n) {
|
|
1781
1781
|
var s = t._gsap;
|
|
1782
1782
|
s[e] = i, s.renderTransform(n, s);
|
|
1783
|
-
},
|
|
1783
|
+
}, $ = "transform", rt = $ + "Origin", Cs = function o(t, e) {
|
|
1784
1784
|
var i = this, r = this.target, n = r.style, s = r._gsap;
|
|
1785
1785
|
if (t in Ct && n) {
|
|
1786
1786
|
if (this.tfm = this.tfm || {}, t !== "transform")
|
|
1787
|
-
t =
|
|
1788
|
-
return i.tfm[a] =
|
|
1789
|
-
}) : this.tfm[t] = s.x ? s[t] :
|
|
1787
|
+
t = bt[t] || t, ~t.indexOf(",") ? t.split(",").forEach(function(a) {
|
|
1788
|
+
return i.tfm[a] = Pt(r, a);
|
|
1789
|
+
}) : this.tfm[t] = s.x ? s[t] : Pt(r, t), t === rt && (this.tfm.zOrigin = s.zOrigin);
|
|
1790
1790
|
else
|
|
1791
|
-
return
|
|
1791
|
+
return bt.transform.split(",").forEach(function(a) {
|
|
1792
1792
|
return o.call(i, a, e);
|
|
1793
1793
|
});
|
|
1794
|
-
if (this.props.indexOf(
|
|
1794
|
+
if (this.props.indexOf($) >= 0)
|
|
1795
1795
|
return;
|
|
1796
|
-
s.svg && (this.svgo = r.getAttribute("data-svg-origin"), this.props.push(
|
|
1796
|
+
s.svg && (this.svgo = r.getAttribute("data-svg-origin"), this.props.push(rt, e, "")), t = $;
|
|
1797
1797
|
}
|
|
1798
1798
|
(n || e) && this.props.push(t, e, n[t]);
|
|
1799
|
-
},
|
|
1799
|
+
}, Qr = function(t) {
|
|
1800
1800
|
t.translate && (t.removeProperty("translate"), t.removeProperty("scale"), t.removeProperty("rotate"));
|
|
1801
1801
|
}, Ms = function() {
|
|
1802
1802
|
var t = this.props, e = this.target, i = e.style, r = e._gsap, n, s;
|
|
1803
1803
|
for (n = 0; n < t.length; n += 3)
|
|
1804
|
-
t[n + 1] ? t[n + 1] === 2 ? e[t[n]](t[n + 2]) : e[t[n]] = t[n + 2] : t[n + 2] ? i[t[n]] = t[n + 2] : i.removeProperty(t[n].substr(0, 2) === "--" ? t[n] : t[n].replace(
|
|
1804
|
+
t[n + 1] ? t[n + 1] === 2 ? e[t[n]](t[n + 2]) : e[t[n]] = t[n + 2] : t[n + 2] ? i[t[n]] = t[n + 2] : i.removeProperty(t[n].substr(0, 2) === "--" ? t[n] : t[n].replace(Ei, "-$1").toLowerCase());
|
|
1805
1805
|
if (this.tfm) {
|
|
1806
1806
|
for (s in this.tfm)
|
|
1807
1807
|
r[s] = this.tfm[s];
|
|
1808
|
-
r.svg && (r.renderTransform(), e.setAttribute("data-svg-origin", this.svgo || "")), n =
|
|
1808
|
+
r.svg && (r.renderTransform(), e.setAttribute("data-svg-origin", this.svgo || "")), n = Ai(), (!n || !n.isStart) && !i[$] && (Qr(i), r.zOrigin && i[rt] && (i[rt] += " " + r.zOrigin + "px", r.zOrigin = 0, r.renderTransform()), r.uncache = 1);
|
|
1809
1809
|
}
|
|
1810
|
-
},
|
|
1810
|
+
}, Zr = function(t, e) {
|
|
1811
1811
|
var i = {
|
|
1812
1812
|
target: t,
|
|
1813
1813
|
props: [],
|
|
1814
1814
|
revert: Ms,
|
|
1815
1815
|
save: Cs
|
|
1816
1816
|
};
|
|
1817
|
-
return t._gsap ||
|
|
1817
|
+
return t._gsap || nt.core.getCache(t), e && t.style && t.nodeType && e.split(",").forEach(function(r) {
|
|
1818
1818
|
return i.save(r);
|
|
1819
1819
|
}), i;
|
|
1820
|
-
},
|
|
1820
|
+
}, Jr, _i = function(t, e) {
|
|
1821
1821
|
var i = Dt.createElementNS ? Dt.createElementNS((e || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), t) : Dt.createElement(t);
|
|
1822
1822
|
return i && i.style ? i : Dt.createElement(t);
|
|
1823
|
-
},
|
|
1823
|
+
}, lt = function o(t, e, i) {
|
|
1824
1824
|
var r = getComputedStyle(t);
|
|
1825
|
-
return r[e] || r.getPropertyValue(e.replace(
|
|
1825
|
+
return r[e] || r.getPropertyValue(e.replace(Ei, "-$1").toLowerCase()) || r.getPropertyValue(e) || !i && o(t, le(e) || e, 1) || "";
|
|
1826
1826
|
}, Hi = "O,Moz,ms,Ms,Webkit".split(","), le = function(t, e, i) {
|
|
1827
1827
|
var r = e || Yt, n = r.style, s = 5;
|
|
1828
1828
|
if (t in n && !i)
|
|
@@ -1833,7 +1833,7 @@ var Wi, Dt, ee, Ai, Yt, Gi, Ei, ps = function() {
|
|
|
1833
1833
|
}, pi = function() {
|
|
1834
1834
|
ps() && window.document && (Wi = window, Dt = Wi.document, ee = Dt.documentElement, Yt = _i("div") || {
|
|
1835
1835
|
style: {}
|
|
1836
|
-
}, _i("div"),
|
|
1836
|
+
}, _i("div"), $ = le($), rt = $ + "Origin", Yt.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", Jr = !!le("perspective"), Ai = nt.core.reverting, zi = 1);
|
|
1837
1837
|
}, Qi = function(t) {
|
|
1838
1838
|
var e = t.ownerSVGElement, i = _i("svg", e && e.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), r = t.cloneNode(!0), n;
|
|
1839
1839
|
r.style.display = "block", i.appendChild(r), ee.appendChild(i);
|
|
@@ -1846,7 +1846,7 @@ var Wi, Dt, ee, Ai, Yt, Gi, Ei, ps = function() {
|
|
|
1846
1846
|
for (var i = e.length; i--; )
|
|
1847
1847
|
if (t.hasAttribute(e[i]))
|
|
1848
1848
|
return t.getAttribute(e[i]);
|
|
1849
|
-
},
|
|
1849
|
+
}, tn = function(t) {
|
|
1850
1850
|
var e, i;
|
|
1851
1851
|
try {
|
|
1852
1852
|
e = t.getBBox();
|
|
@@ -1859,15 +1859,15 @@ var Wi, Dt, ee, Ai, Yt, Gi, Ei, ps = function() {
|
|
|
1859
1859
|
width: 0,
|
|
1860
1860
|
height: 0
|
|
1861
1861
|
} : e;
|
|
1862
|
-
},
|
|
1863
|
-
return !!(t.getCTM && (!t.parentNode || t.ownerSVGElement) &&
|
|
1862
|
+
}, en = function(t) {
|
|
1863
|
+
return !!(t.getCTM && (!t.parentNode || t.ownerSVGElement) && tn(t));
|
|
1864
1864
|
}, It = function(t, e) {
|
|
1865
1865
|
if (e) {
|
|
1866
1866
|
var i = t.style, r;
|
|
1867
|
-
e in Ct && e !==
|
|
1867
|
+
e in Ct && e !== rt && (e = $), i.removeProperty ? (r = e.substr(0, 2), (r === "ms" || e.substr(0, 6) === "webkit") && (e = "-" + e), i.removeProperty(r === "--" ? e : e.replace(Ei, "-$1").toLowerCase())) : i.removeAttribute(e);
|
|
1868
1868
|
}
|
|
1869
|
-
},
|
|
1870
|
-
var a = new
|
|
1869
|
+
}, zt = function(t, e, i, r, n, s) {
|
|
1870
|
+
var a = new it(t._pt, e, i, 0, 1, s ? Hr : Kr);
|
|
1871
1871
|
return t._pt = a, a.b = r, a.e = n, t._props.push(i), a;
|
|
1872
1872
|
}, Ji = {
|
|
1873
1873
|
deg: 1,
|
|
@@ -1880,28 +1880,28 @@ var Wi, Dt, ee, Ai, Yt, Gi, Ei, ps = function() {
|
|
|
1880
1880
|
var n = parseFloat(i) || 0, s = (i + "").trim().substr((n + "").length) || "px", a = Yt.style, l = ms.test(e), u = t.tagName.toLowerCase() === "svg", f = (u ? "client" : "offset") + (l ? "Width" : "Height"), h = 100, d = r === "px", _ = r === "%", m, c, p, y;
|
|
1881
1881
|
if (r === s || !n || Ji[r] || Ji[s])
|
|
1882
1882
|
return n;
|
|
1883
|
-
if (s !== "px" && !d && (n = o(t, e, i, "px")), y = t.getCTM &&
|
|
1884
|
-
return m = y ? t.getBBox()[l ? "width" : "height"] : t[f],
|
|
1885
|
-
if (a[l ? "width" : "height"] = h + (d ? s : r), c = r !== "rem" && ~e.indexOf("adius") || r === "em" && t.appendChild && !u ? t : t.parentNode, y && (c = (t.ownerSVGElement || {}).parentNode), (!c || c === Dt || !c.appendChild) && (c = Dt.body), p = c._gsap, p && _ && p.width && l && p.time ===
|
|
1886
|
-
return
|
|
1883
|
+
if (s !== "px" && !d && (n = o(t, e, i, "px")), y = t.getCTM && en(t), (_ || s === "%") && (Ct[e] || ~e.indexOf("adius")))
|
|
1884
|
+
return m = y ? t.getBBox()[l ? "width" : "height"] : t[f], Y(_ ? n / m * h : n / 100 * m);
|
|
1885
|
+
if (a[l ? "width" : "height"] = h + (d ? s : r), c = r !== "rem" && ~e.indexOf("adius") || r === "em" && t.appendChild && !u ? t : t.parentNode, y && (c = (t.ownerSVGElement || {}).parentNode), (!c || c === Dt || !c.appendChild) && (c = Dt.body), p = c._gsap, p && _ && p.width && l && p.time === at.time && !p.uncache)
|
|
1886
|
+
return Y(n / p.width * h);
|
|
1887
1887
|
if (_ && (e === "height" || e === "width")) {
|
|
1888
1888
|
var v = t.style[e];
|
|
1889
1889
|
t.style[e] = h + r, m = t[f], v ? t.style[e] = v : It(t, e);
|
|
1890
1890
|
} else
|
|
1891
|
-
(_ || s === "%") && !Ds[
|
|
1892
|
-
return l && _ && (p = qt(c), p.time =
|
|
1893
|
-
},
|
|
1891
|
+
(_ || s === "%") && !Ds[lt(c, "display")] && (a.position = lt(t, "position")), c === t && (a.position = "static"), c.appendChild(Yt), m = Yt[f], c.removeChild(Yt), a.position = "absolute";
|
|
1892
|
+
return l && _ && (p = qt(c), p.time = at.time, p.width = c[f]), Y(d ? m * n / h : m && n ? h / m * n : 0);
|
|
1893
|
+
}, Pt = function(t, e, i, r) {
|
|
1894
1894
|
var n;
|
|
1895
|
-
return
|
|
1896
|
-
},
|
|
1895
|
+
return zi || pi(), e in bt && e !== "transform" && (e = bt[e], ~e.indexOf(",") && (e = e.split(",")[0])), Ct[e] && e !== "transform" ? (n = Pe(t, r), n = e !== "transformOrigin" ? n[e] : n.svg ? n.origin : Ue(lt(t, rt)) + " " + n.zOrigin + "px") : (n = t.style[e], (!n || n === "auto" || r || ~(n + "").indexOf("calc(")) && (n = Ve[e] && Ve[e](t, e, i) || lt(t, e) || gr(t, e) || (e === "opacity" ? 1 : 0))), i && !~(n + "").trim().indexOf(" ") ? Ft(t, e, n, i) + i : n;
|
|
1896
|
+
}, zs = function(t, e, i, r) {
|
|
1897
1897
|
if (!i || i === "none") {
|
|
1898
|
-
var n = le(e, t, 1), s = n &&
|
|
1899
|
-
s && s !== i ? (e = n, i = s) : e === "borderColor" && (i =
|
|
1898
|
+
var n = le(e, t, 1), s = n && lt(t, n, 1);
|
|
1899
|
+
s && s !== i ? (e = n, i = s) : e === "borderColor" && (i = lt(t, "borderTopColor"));
|
|
1900
1900
|
}
|
|
1901
|
-
var a = new
|
|
1902
|
-
if (a.b = i, a.e = r, i += "", r += "", r.substring(0, 6) === "var(--" && (r =
|
|
1901
|
+
var a = new it(this._pt, t.style, e, 0, 1, jr), l = 0, u = 0, f, h, d, _, m, c, p, y, v, w, x, g;
|
|
1902
|
+
if (a.b = i, a.e = r, i += "", r += "", r.substring(0, 6) === "var(--" && (r = lt(t, r.substring(4, r.indexOf(")")))), r === "auto" && (c = t.style[e], t.style[e] = r, r = lt(t, e) || r, c ? t.style[e] = c : It(t, e)), f = [i, r], Fr(f), i = f[0], r = f[1], d = i.match(Zt) || [], g = r.match(Zt) || [], g.length) {
|
|
1903
1903
|
for (; h = Zt.exec(r); )
|
|
1904
|
-
p = h[0], v = r.substring(l, h.index), m ? m = (m + 1) % 5 : (v.substr(-5) === "rgba(" || v.substr(-5) === "hsla(") && (m = 1), p !== (c = d[u++] || "") && (_ = parseFloat(c) || 0, x = c.substr((_ + "").length), p.charAt(1) === "=" && (p = te(_, p) + x), y = parseFloat(p), w = p.substr((y + "").length), l = Zt.lastIndex - w.length, w || (w = w ||
|
|
1904
|
+
p = h[0], v = r.substring(l, h.index), m ? m = (m + 1) % 5 : (v.substr(-5) === "rgba(" || v.substr(-5) === "hsla(") && (m = 1), p !== (c = d[u++] || "") && (_ = parseFloat(c) || 0, x = c.substr((_ + "").length), p.charAt(1) === "=" && (p = te(_, p) + x), y = parseFloat(p), w = p.substr((y + "").length), l = Zt.lastIndex - w.length, w || (w = w || ut.units[e] || x, l === r.length && (r += w, a.e += w)), x !== w && (_ = Ft(t, e, c, w) || 0), a._pt = {
|
|
1905
1905
|
_next: a._pt,
|
|
1906
1906
|
p: v || u === 1 ? v : ",",
|
|
1907
1907
|
//note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
|
|
@@ -1911,31 +1911,31 @@ var Wi, Dt, ee, Ai, Yt, Gi, Ei, ps = function() {
|
|
|
1911
1911
|
});
|
|
1912
1912
|
a.c = l < r.length ? r.substring(l, r.length) : "";
|
|
1913
1913
|
} else
|
|
1914
|
-
a.r = e === "display" && r === "none" ?
|
|
1915
|
-
return
|
|
1914
|
+
a.r = e === "display" && r === "none" ? Hr : Kr;
|
|
1915
|
+
return cr.test(r) && (a.e = 0), this._pt = a, a;
|
|
1916
1916
|
}, tr = {
|
|
1917
1917
|
top: "0%",
|
|
1918
1918
|
bottom: "100%",
|
|
1919
1919
|
left: "0%",
|
|
1920
1920
|
right: "100%",
|
|
1921
1921
|
center: "50%"
|
|
1922
|
-
},
|
|
1922
|
+
}, As = function(t) {
|
|
1923
1923
|
var e = t.split(" "), i = e[0], r = e[1] || "50%";
|
|
1924
1924
|
return (i === "top" || i === "bottom" || r === "left" || r === "right") && (t = i, i = r, r = t), e[0] = tr[i] || i, e[1] = tr[r] || r, e.join(" ");
|
|
1925
|
-
},
|
|
1925
|
+
}, Es = function(t, e) {
|
|
1926
1926
|
if (e.tween && e.tween._time === e.tween._dur) {
|
|
1927
1927
|
var i = e.t, r = i.style, n = e.u, s = i._gsap, a, l, u;
|
|
1928
1928
|
if (n === "all" || n === !0)
|
|
1929
1929
|
r.cssText = "", l = 1;
|
|
1930
1930
|
else
|
|
1931
1931
|
for (n = n.split(","), u = n.length; --u > -1; )
|
|
1932
|
-
a = n[u], Ct[a] && (l = 1, a = a === "transformOrigin" ?
|
|
1933
|
-
l && (It(i,
|
|
1932
|
+
a = n[u], Ct[a] && (l = 1, a = a === "transformOrigin" ? rt : $), It(i, a);
|
|
1933
|
+
l && (It(i, $), s && (s.svg && i.removeAttribute("transform"), r.scale = r.rotate = r.translate = "none", Pe(i, 1), s.uncache = 1, Qr(r)));
|
|
1934
1934
|
}
|
|
1935
1935
|
}, Ve = {
|
|
1936
1936
|
clearProps: function(t, e, i, r, n) {
|
|
1937
1937
|
if (n.data !== "isFromStart") {
|
|
1938
|
-
var s = t._pt = new
|
|
1938
|
+
var s = t._pt = new it(t._pt, e, i, 0, 0, Es);
|
|
1939
1939
|
return s.u = r, s.pr = -10, s.tween = n, t._props.push(i), 1;
|
|
1940
1940
|
}
|
|
1941
1941
|
}
|
|
@@ -2002,55 +2002,55 @@ var Wi, Dt, ee, Ai, Yt, Gi, Ei, ps = function() {
|
|
|
2002
2002
|
return 1;
|
|
2003
2003
|
}
|
|
2004
2004
|
*/
|
|
2005
|
-
}, Se = [1, 0, 0, 1, 0, 0],
|
|
2005
|
+
}, Se = [1, 0, 0, 1, 0, 0], rn = {}, nn = function(t) {
|
|
2006
2006
|
return t === "matrix(1, 0, 0, 1, 0, 0)" || t === "none" || !t;
|
|
2007
2007
|
}, er = function(t) {
|
|
2008
|
-
var e =
|
|
2009
|
-
return
|
|
2010
|
-
},
|
|
2008
|
+
var e = lt(t, $);
|
|
2009
|
+
return nn(e) ? Se : e.substr(7).match(hr).map(Y);
|
|
2010
|
+
}, Ri = function(t, e) {
|
|
2011
2011
|
var i = t._gsap || qt(t), r = t.style, n = er(t), s, a, l, u;
|
|
2012
2012
|
return i.svg && t.getAttribute("transform") ? (l = t.transform.baseVal.consolidate().matrix, n = [l.a, l.b, l.c, l.d, l.e, l.f], n.join(",") === "1,0,0,1,0,0" ? Se : n) : (n === Se && !t.offsetParent && t !== ee && !i.svg && (l = r.display, r.display = "block", s = t.parentNode, (!s || !t.offsetParent && !t.getBoundingClientRect().width) && (u = 1, a = t.nextElementSibling, ee.appendChild(t)), n = er(t), l ? r.display = l : It(t, "display"), u && (a ? s.insertBefore(t, a) : s ? s.appendChild(t) : ee.removeChild(t))), e && n.length > 6 ? [n[0], n[1], n[4], n[5], n[12], n[13]] : n);
|
|
2013
2013
|
}, mi = function(t, e, i, r, n, s) {
|
|
2014
|
-
var a = t._gsap, l = n ||
|
|
2015
|
-
i ? l !== Se && (k = _ * p - m * c) && (S = x * (p / k) + g * (-c / k) + (c * v - p * y) / k, b = x * (-m / k) + g * (_ / k) - (_ * v - m * y) / k, x = S, g = b) : (T =
|
|
2014
|
+
var a = t._gsap, l = n || Ri(t, !0), u = a.xOrigin || 0, f = a.yOrigin || 0, h = a.xOffset || 0, d = a.yOffset || 0, _ = l[0], m = l[1], c = l[2], p = l[3], y = l[4], v = l[5], w = e.split(" "), x = parseFloat(w[0]) || 0, g = parseFloat(w[1]) || 0, T, k, S, b;
|
|
2015
|
+
i ? l !== Se && (k = _ * p - m * c) && (S = x * (p / k) + g * (-c / k) + (c * v - p * y) / k, b = x * (-m / k) + g * (_ / k) - (_ * v - m * y) / k, x = S, g = b) : (T = tn(t), x = T.x + (~w[0].indexOf("%") ? x / 100 * T.width : x), g = T.y + (~(w[1] || w[0]).indexOf("%") ? g / 100 * T.height : g)), r || r !== !1 && a.smooth ? (y = x - u, v = g - f, a.xOffset = h + (y * _ + v * c) - y, a.yOffset = d + (y * m + v * p) - v) : a.xOffset = a.yOffset = 0, a.xOrigin = x, a.yOrigin = g, a.smooth = !!r, a.origin = e, a.originIsAbsolute = !!i, t.style[rt] = "0px 0px", s && (zt(s, a, "xOrigin", u, x), zt(s, a, "yOrigin", f, g), zt(s, a, "xOffset", h, a.xOffset), zt(s, a, "yOffset", d, a.yOffset)), t.setAttribute("data-svg-origin", x + " " + g);
|
|
2016
2016
|
}, Pe = function(t, e) {
|
|
2017
|
-
var i = t._gsap || new
|
|
2017
|
+
var i = t._gsap || new Br(t);
|
|
2018
2018
|
if ("x" in i && !e && !i.uncache)
|
|
2019
2019
|
return i;
|
|
2020
|
-
var r = t.style, n = i.scaleX < 0, s = "px", a = "deg", l = getComputedStyle(t), u =
|
|
2021
|
-
return f = h = d = c = p = y = v = w = x = 0, _ = m = 1, i.svg = !!(t.getCTM &&
|
|
2020
|
+
var r = t.style, n = i.scaleX < 0, s = "px", a = "deg", l = getComputedStyle(t), u = lt(t, rt) || "0", f, h, d, _, m, c, p, y, v, w, x, g, T, k, S, b, O, M, D, R, K, j, q, W, pt, De, fe, he, Nt, Ii, Tt, $t;
|
|
2021
|
+
return f = h = d = c = p = y = v = w = x = 0, _ = m = 1, i.svg = !!(t.getCTM && en(t)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (r[$] = (l.translate !== "none" ? "translate3d(" + (l.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (l.rotate !== "none" ? "rotate(" + l.rotate + ") " : "") + (l.scale !== "none" ? "scale(" + l.scale.split(" ").join(",") + ") " : "") + (l[$] !== "none" ? l[$] : "")), r.scale = r.rotate = r.translate = "none"), k = Ri(t, i.svg), i.svg && (i.uncache ? (pt = t.getBBox(), u = i.xOrigin - pt.x + "px " + (i.yOrigin - pt.y) + "px", W = "") : W = !e && t.getAttribute("data-svg-origin"), mi(t, W || u, !!W || i.originIsAbsolute, i.smooth !== !1, k)), g = i.xOrigin || 0, T = i.yOrigin || 0, k !== Se && (M = k[0], D = k[1], R = k[2], K = k[3], f = j = k[4], h = q = k[5], k.length === 6 ? (_ = Math.sqrt(M * M + D * D), m = Math.sqrt(K * K + R * R), c = M || D ? Qt(D, M) * Ut : 0, v = R || K ? Qt(R, K) * Ut + c : 0, v && (m *= Math.abs(Math.cos(v * ie))), i.svg && (f -= g - (g * M + T * R), h -= T - (g * D + T * K))) : ($t = k[6], Ii = k[7], fe = k[8], he = k[9], Nt = k[10], Tt = k[11], f = k[12], h = k[13], d = k[14], S = Qt($t, Nt), p = S * Ut, S && (b = Math.cos(-S), O = Math.sin(-S), W = j * b + fe * O, pt = q * b + he * O, De = $t * b + Nt * O, fe = j * -O + fe * b, he = q * -O + he * b, Nt = $t * -O + Nt * b, Tt = Ii * -O + Tt * b, j = W, q = pt, $t = De), S = Qt(-R, Nt), y = S * Ut, S && (b = Math.cos(-S), O = Math.sin(-S), W = M * b - fe * O, pt = D * b - he * O, De = R * b - Nt * O, Tt = K * O + Tt * b, M = W, D = pt, R = De), S = Qt(D, M), c = S * Ut, S && (b = Math.cos(S), O = Math.sin(S), W = M * b + D * O, pt = j * b + q * O, D = D * b - M * O, q = q * b - j * O, M = W, j = pt), p && Math.abs(p) + Math.abs(c) > 359.9 && (p = c = 0, y = 180 - y), _ = Y(Math.sqrt(M * M + D * D + R * R)), m = Y(Math.sqrt(q * q + $t * $t)), S = Qt(j, q), v = Math.abs(S) > 2e-4 ? S * Ut : 0, x = Tt ? 1 / (Tt < 0 ? -Tt : Tt) : 0), i.svg && (W = t.getAttribute("transform"), i.forceCSS = t.setAttribute("transform", "") || !nn(lt(t, $)), W && t.setAttribute("transform", W))), Math.abs(v) > 90 && Math.abs(v) < 270 && (n ? (_ *= -1, v += c <= 0 ? 180 : -180, c += c <= 0 ? 180 : -180) : (m *= -1, v += v <= 0 ? 180 : -180)), e = e || i.uncache, i.x = f - ((i.xPercent = f && (!e && i.xPercent || (Math.round(t.offsetWidth / 2) === Math.round(-f) ? -50 : 0))) ? t.offsetWidth * i.xPercent / 100 : 0) + s, i.y = h - ((i.yPercent = h && (!e && i.yPercent || (Math.round(t.offsetHeight / 2) === Math.round(-h) ? -50 : 0))) ? t.offsetHeight * i.yPercent / 100 : 0) + s, i.z = d + s, i.scaleX = Y(_), i.scaleY = Y(m), i.rotation = Y(c) + a, i.rotationX = Y(p) + a, i.rotationY = Y(y) + a, i.skewX = v + a, i.skewY = w + a, i.transformPerspective = x + s, (i.zOrigin = parseFloat(u.split(" ")[2]) || !e && i.zOrigin || 0) && (r[rt] = Ue(u)), i.xOffset = i.yOffset = 0, i.force3D = ut.force3D, i.renderTransform = i.svg ? Is : Jr ? sn : Rs, i.uncache = 0, i;
|
|
2022
2022
|
}, Ue = function(t) {
|
|
2023
2023
|
return (t = t.split(" "))[0] + " " + t[1];
|
|
2024
2024
|
}, ii = function(t, e, i) {
|
|
2025
|
-
var r =
|
|
2026
|
-
return
|
|
2027
|
-
},
|
|
2028
|
-
e.z = "0px", e.rotationY = e.rotationX = "0deg", e.force3D = 0,
|
|
2029
|
-
}, Bt = "0deg", ce = "0px", Vt = ") ",
|
|
2025
|
+
var r = Q(e);
|
|
2026
|
+
return Y(parseFloat(e) + parseFloat(Ft(t, "x", i + "px", r))) + r;
|
|
2027
|
+
}, Rs = function(t, e) {
|
|
2028
|
+
e.z = "0px", e.rotationY = e.rotationX = "0deg", e.force3D = 0, sn(t, e);
|
|
2029
|
+
}, Bt = "0deg", ce = "0px", Vt = ") ", sn = function(t, e) {
|
|
2030
2030
|
var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, l = i.z, u = i.rotation, f = i.rotationY, h = i.rotationX, d = i.skewX, _ = i.skewY, m = i.scaleX, c = i.scaleY, p = i.transformPerspective, y = i.force3D, v = i.target, w = i.zOrigin, x = "", g = y === "auto" && t && t !== 1 || y === !0;
|
|
2031
2031
|
if (w && (h !== Bt || f !== Bt)) {
|
|
2032
2032
|
var T = parseFloat(f) * ie, k = Math.sin(T), S = Math.cos(T), b;
|
|
2033
2033
|
T = parseFloat(h) * ie, b = Math.cos(T), s = ii(v, s, k * b * -w), a = ii(v, a, -Math.sin(T) * -w), l = ii(v, l, S * b * -w + w);
|
|
2034
2034
|
}
|
|
2035
|
-
p !== ce && (x += "perspective(" + p + Vt), (r || n) && (x += "translate(" + r + "%, " + n + "%) "), (g || s !== ce || a !== ce || l !== ce) && (x += l !== ce || g ? "translate3d(" + s + ", " + a + ", " + l + ") " : "translate(" + s + ", " + a + Vt), u !== Bt && (x += "rotate(" + u + Vt), f !== Bt && (x += "rotateY(" + f + Vt), h !== Bt && (x += "rotateX(" + h + Vt), (d !== Bt || _ !== Bt) && (x += "skew(" + d + ", " + _ + Vt), (m !== 1 || c !== 1) && (x += "scale(" + m + ", " + c + Vt), v.style[
|
|
2035
|
+
p !== ce && (x += "perspective(" + p + Vt), (r || n) && (x += "translate(" + r + "%, " + n + "%) "), (g || s !== ce || a !== ce || l !== ce) && (x += l !== ce || g ? "translate3d(" + s + ", " + a + ", " + l + ") " : "translate(" + s + ", " + a + Vt), u !== Bt && (x += "rotate(" + u + Vt), f !== Bt && (x += "rotateY(" + f + Vt), h !== Bt && (x += "rotateX(" + h + Vt), (d !== Bt || _ !== Bt) && (x += "skew(" + d + ", " + _ + Vt), (m !== 1 || c !== 1) && (x += "scale(" + m + ", " + c + Vt), v.style[$] = x || "translate(0, 0)";
|
|
2036
2036
|
}, Is = function(t, e) {
|
|
2037
2037
|
var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, l = i.rotation, u = i.skewX, f = i.skewY, h = i.scaleX, d = i.scaleY, _ = i.target, m = i.xOrigin, c = i.yOrigin, p = i.xOffset, y = i.yOffset, v = i.forceCSS, w = parseFloat(s), x = parseFloat(a), g, T, k, S, b;
|
|
2038
|
-
l = parseFloat(l), u = parseFloat(u), f = parseFloat(f), f && (f = parseFloat(f), u += f, l += f), l || u ? (l *= ie, u *= ie, g = Math.cos(l) * h, T = Math.sin(l) * h, k = Math.sin(l - u) * -d, S = Math.cos(l - u) * d, u && (f *= ie, b = Math.tan(u - f), b = Math.sqrt(1 + b * b), k *= b, S *= b, f && (b = Math.tan(f), b = Math.sqrt(1 + b * b), g *= b, T *= b)), g =
|
|
2038
|
+
l = parseFloat(l), u = parseFloat(u), f = parseFloat(f), f && (f = parseFloat(f), u += f, l += f), l || u ? (l *= ie, u *= ie, g = Math.cos(l) * h, T = Math.sin(l) * h, k = Math.sin(l - u) * -d, S = Math.cos(l - u) * d, u && (f *= ie, b = Math.tan(u - f), b = Math.sqrt(1 + b * b), k *= b, S *= b, f && (b = Math.tan(f), b = Math.sqrt(1 + b * b), g *= b, T *= b)), g = Y(g), T = Y(T), k = Y(k), S = Y(S)) : (g = h, S = d, T = k = 0), (w && !~(s + "").indexOf("px") || x && !~(a + "").indexOf("px")) && (w = Ft(_, "x", s, "px"), x = Ft(_, "y", a, "px")), (m || c || p || y) && (w = Y(w + m - (m * g + c * k) + p), x = Y(x + c - (m * T + c * S) + y)), (r || n) && (b = _.getBBox(), w = Y(w + r / 100 * b.width), x = Y(x + n / 100 * b.height)), b = "matrix(" + g + "," + T + "," + k + "," + S + "," + w + "," + x + ")", _.setAttribute("transform", b), v && (_.style[$] = b);
|
|
2039
2039
|
}, Fs = function(t, e, i, r, n) {
|
|
2040
|
-
var s = 360, a =
|
|
2041
|
-
return a && (h = n.split("_")[1], h === "short" && (u %= s, u !== u % (s / 2) && (u += u < 0 ? s : -s)), h === "cw" && u < 0 ? u = (u + s * Ki) % s - ~~(u / s) * s : h === "ccw" && u > 0 && (u = (u - s * Ki) % s - ~~(u / s) * s)), t._pt = d = new
|
|
2040
|
+
var s = 360, a = G(n), l = parseFloat(n) * (a && ~n.indexOf("rad") ? Ut : 1), u = l - r, f = r + u + "deg", h, d;
|
|
2041
|
+
return a && (h = n.split("_")[1], h === "short" && (u %= s, u !== u % (s / 2) && (u += u < 0 ? s : -s)), h === "cw" && u < 0 ? u = (u + s * Ki) % s - ~~(u / s) * s : h === "ccw" && u > 0 && (u = (u - s * Ki) % s - ~~(u / s) * s)), t._pt = d = new it(t._pt, e, i, r, u, ys), d.e = f, d.u = "deg", t._props.push(i), d;
|
|
2042
2042
|
}, ir = function(t, e) {
|
|
2043
2043
|
for (var i in e)
|
|
2044
2044
|
t[i] = e[i];
|
|
2045
2045
|
return t;
|
|
2046
2046
|
}, Ls = function(t, e, i) {
|
|
2047
2047
|
var r = ir({}, i._gsap), n = "perspective,force3D,transformOrigin,svgOrigin", s = i.style, a, l, u, f, h, d, _, m;
|
|
2048
|
-
r.svg ? (u = i.getAttribute("transform"), i.setAttribute("transform", ""), s[
|
|
2048
|
+
r.svg ? (u = i.getAttribute("transform"), i.setAttribute("transform", ""), s[$] = e, a = Pe(i, 1), It(i, $), i.setAttribute("transform", u)) : (u = getComputedStyle(i)[$], s[$] = e, a = Pe(i, 1), s[$] = u);
|
|
2049
2049
|
for (l in Ct)
|
|
2050
|
-
u = r[l], f = a[l], u !== f && n.indexOf(l) < 0 && (_ =
|
|
2050
|
+
u = r[l], f = a[l], u !== f && n.indexOf(l) < 0 && (_ = Q(u), m = Q(f), h = _ !== m ? Ft(i, l, u, m) : parseFloat(u), d = parseFloat(f), t._pt = new it(t._pt, a, l, h, d - h, di), t._pt.u = m || 0, t._props.push(l));
|
|
2051
2051
|
ir(a, r);
|
|
2052
2052
|
};
|
|
2053
|
-
|
|
2053
|
+
et("padding,margin,Width,Radius", function(o, t) {
|
|
2054
2054
|
var e = "Top", i = "Right", r = "Bottom", n = "Left", s = (t < 3 ? [e, i, r, n] : [e + n, e + i, r + i, r + n]).map(function(a) {
|
|
2055
2055
|
return t < 2 ? o + a : "border" + a + o;
|
|
2056
2056
|
});
|
|
@@ -2058,14 +2058,14 @@ tt("padding,margin,Width,Radius", function(o, t) {
|
|
|
2058
2058
|
var d, _;
|
|
2059
2059
|
if (arguments.length < 4)
|
|
2060
2060
|
return d = s.map(function(m) {
|
|
2061
|
-
return
|
|
2061
|
+
return Pt(a, m, u);
|
|
2062
2062
|
}), _ = d.join(" "), _.split(d[0]).length === 5 ? d[0] : _;
|
|
2063
2063
|
d = (f + "").split(" "), _ = {}, s.forEach(function(m, c) {
|
|
2064
2064
|
return _[m] = d[c] = d[c] || d[(c - 1) / 2 | 0];
|
|
2065
2065
|
}), a.init(l, _, h);
|
|
2066
2066
|
};
|
|
2067
2067
|
});
|
|
2068
|
-
var
|
|
2068
|
+
var an = {
|
|
2069
2069
|
name: "css",
|
|
2070
2070
|
register: pi,
|
|
2071
2071
|
targetTest: function(t) {
|
|
@@ -2073,35 +2073,35 @@ var sn = {
|
|
|
2073
2073
|
},
|
|
2074
2074
|
init: function(t, e, i, r, n) {
|
|
2075
2075
|
var s = this._props, a = t.style, l = i.vars.startAt, u, f, h, d, _, m, c, p, y, v, w, x, g, T, k, S, b;
|
|
2076
|
-
|
|
2076
|
+
zi || pi(), this.styles = this.styles || Zr(t), S = this.styles.props, this.tween = i;
|
|
2077
2077
|
for (c in e)
|
|
2078
|
-
if (c !== "autoRound" && (f = e[c], !(
|
|
2078
|
+
if (c !== "autoRound" && (f = e[c], !(st[c] && Vr(c, e, i, r, t, n)))) {
|
|
2079
2079
|
if (_ = typeof f, m = Ve[c], _ === "function" && (f = f.call(i, r, t, n), _ = typeof f), _ === "string" && ~f.indexOf("random(") && (f = we(f)), m)
|
|
2080
2080
|
m(this, t, c, f, i) && (k = 1);
|
|
2081
2081
|
else if (c.substr(0, 2) === "--")
|
|
2082
|
-
u = (getComputedStyle(t).getPropertyValue(c) + "").trim(), f += "",
|
|
2082
|
+
u = (getComputedStyle(t).getPropertyValue(c) + "").trim(), f += "", Et.lastIndex = 0, Et.test(u) || (p = Q(u), y = Q(f), y ? p !== y && (u = Ft(t, c, u, y) + y) : p && (f += p)), this.add(a, "setProperty", u, f, r, n, 0, 0, c), s.push(c), S.push(c, 0, a[c]);
|
|
2083
2083
|
else if (_ !== "undefined") {
|
|
2084
|
-
if (l && c in l ? (u = typeof l[c] == "function" ? l[c].call(i, r, t, n) : l[c],
|
|
2084
|
+
if (l && c in l ? (u = typeof l[c] == "function" ? l[c].call(i, r, t, n) : l[c], G(u) && ~u.indexOf("random(") && (u = we(u)), Q(u + "") || u === "auto" || (u += ut.units[c] || Q(Pt(t, c)) || ""), (u + "").charAt(1) === "=" && (u = Pt(t, c))) : u = Pt(t, c), d = parseFloat(u), v = _ === "string" && f.charAt(1) === "=" && f.substr(0, 2), v && (f = f.substr(2)), h = parseFloat(f), c in bt && (c === "autoAlpha" && (d === 1 && Pt(t, "visibility") === "hidden" && h && (d = 0), S.push("visibility", 0, a.visibility), zt(this, a, "visibility", d ? "inherit" : "hidden", h ? "inherit" : "hidden", !h)), c !== "scale" && c !== "transform" && (c = bt[c], ~c.indexOf(",") && (c = c.split(",")[0]))), w = c in Ct, w) {
|
|
2085
2085
|
if (this.styles.save(c), b = f, _ === "string" && f.substring(0, 6) === "var(--") {
|
|
2086
|
-
if (f =
|
|
2086
|
+
if (f = lt(t, f.substring(4, f.indexOf(")"))), f.substring(0, 5) === "calc(") {
|
|
2087
2087
|
var O = t.style.perspective;
|
|
2088
|
-
t.style.perspective = f, f =
|
|
2088
|
+
t.style.perspective = f, f = lt(t, "perspective"), O ? t.style.perspective = O : It(t, "perspective");
|
|
2089
2089
|
}
|
|
2090
2090
|
h = parseFloat(f);
|
|
2091
2091
|
}
|
|
2092
|
-
if (x || (g = t._gsap, g.renderTransform && !e.parseTransform || Pe(t, e.parseTransform), T = e.smoothOrigin !== !1 && g.smooth, x = this._pt = new
|
|
2093
|
-
this._pt = new
|
|
2092
|
+
if (x || (g = t._gsap, g.renderTransform && !e.parseTransform || Pe(t, e.parseTransform), T = e.smoothOrigin !== !1 && g.smooth, x = this._pt = new it(this._pt, a, $, 0, 1, g.renderTransform, g, 0, -1), x.dep = 1), c === "scale")
|
|
2093
|
+
this._pt = new it(this._pt, g, "scaleY", g.scaleY, (v ? te(g.scaleY, v + h) : h) - g.scaleY || 0, di), this._pt.u = 0, s.push("scaleY", c), c += "X";
|
|
2094
2094
|
else if (c === "transformOrigin") {
|
|
2095
|
-
S.push(
|
|
2095
|
+
S.push(rt, 0, a[rt]), f = As(f), g.svg ? mi(t, f, 0, T, 0, this) : (y = parseFloat(f.split(" ")[2]) || 0, y !== g.zOrigin && zt(this, g, "zOrigin", g.zOrigin, y), zt(this, a, c, Ue(u), Ue(f)));
|
|
2096
2096
|
continue;
|
|
2097
2097
|
} else if (c === "svgOrigin") {
|
|
2098
2098
|
mi(t, f, 1, T, 0, this);
|
|
2099
2099
|
continue;
|
|
2100
|
-
} else if (c in
|
|
2100
|
+
} else if (c in rn) {
|
|
2101
2101
|
Fs(this, g, c, d, v ? te(d, v + f) : f);
|
|
2102
2102
|
continue;
|
|
2103
2103
|
} else if (c === "smoothOrigin") {
|
|
2104
|
-
|
|
2104
|
+
zt(this, g, "smooth", g.smooth, f);
|
|
2105
2105
|
continue;
|
|
2106
2106
|
} else if (c === "force3D") {
|
|
2107
2107
|
g[c] = f;
|
|
@@ -2112,9 +2112,9 @@ var sn = {
|
|
|
2112
2112
|
}
|
|
2113
2113
|
} else c in a || (c = le(c) || c);
|
|
2114
2114
|
if (w || (h || h === 0) && (d || d === 0) && !gs.test(f) && c in a)
|
|
2115
|
-
p = (u + "").substr((d + "").length), h || (h = 0), y =
|
|
2115
|
+
p = (u + "").substr((d + "").length), h || (h = 0), y = Q(f) || (c in ut.units ? ut.units[c] : p), p !== y && (d = Ft(t, c, u, y)), this._pt = new it(this._pt, w ? g : a, c, d, (v ? te(d, v + h) : h) - d, !w && (y === "px" || c === "zIndex") && e.autoRound !== !1 ? bs : di), this._pt.u = y || 0, w && b !== f ? (this._pt.b = u, this._pt.e = b, this._pt.r = xs) : p !== y && y !== "%" && (this._pt.b = u, this._pt.r = vs);
|
|
2116
2116
|
else if (c in a)
|
|
2117
|
-
|
|
2117
|
+
zs.call(this, t, c, u, v ? v + f : f);
|
|
2118
2118
|
else if (c in t)
|
|
2119
2119
|
this.add(t, c, u || t[c], v ? v + f : f, r, n);
|
|
2120
2120
|
else if (c !== "parseTransform") {
|
|
@@ -2124,54 +2124,54 @@ var sn = {
|
|
|
2124
2124
|
w || (c in a ? S.push(c, 0, a[c]) : typeof t[c] == "function" ? S.push(c, 2, t[c]()) : S.push(c, 1, u || t[c])), s.push(c);
|
|
2125
2125
|
}
|
|
2126
2126
|
}
|
|
2127
|
-
k &&
|
|
2127
|
+
k && Wr(this);
|
|
2128
2128
|
},
|
|
2129
2129
|
render: function(t, e) {
|
|
2130
|
-
if (e.tween._time || !
|
|
2130
|
+
if (e.tween._time || !Ai())
|
|
2131
2131
|
for (var i = e._pt; i; )
|
|
2132
2132
|
i.r(t, i.d), i = i._next;
|
|
2133
2133
|
else
|
|
2134
2134
|
e.styles.revert();
|
|
2135
2135
|
},
|
|
2136
|
-
get:
|
|
2137
|
-
aliases:
|
|
2136
|
+
get: Pt,
|
|
2137
|
+
aliases: bt,
|
|
2138
2138
|
getSetter: function(t, e, i) {
|
|
2139
|
-
var r =
|
|
2140
|
-
return r && r.indexOf(",") < 0 && (e = r), e in Ct && e !==
|
|
2139
|
+
var r = bt[e];
|
|
2140
|
+
return r && r.indexOf(",") < 0 && (e = r), e in Ct && e !== rt && (t._gsap.x || Pt(t, "x")) ? i && Gi === i ? e === "scale" ? Ss : ks : (Gi = i || {}) && (e === "scale" ? Ps : Os) : t.style && !yi(t.style[e]) ? ws : ~e.indexOf("-") ? Ts : Mi(t, e);
|
|
2141
2141
|
},
|
|
2142
2142
|
core: {
|
|
2143
2143
|
_removeProperty: It,
|
|
2144
|
-
_getMatrix:
|
|
2144
|
+
_getMatrix: Ri
|
|
2145
2145
|
}
|
|
2146
2146
|
};
|
|
2147
|
-
|
|
2148
|
-
|
|
2147
|
+
nt.utils.checkPrefix = le;
|
|
2148
|
+
nt.core.getStyleSaver = Zr;
|
|
2149
2149
|
(function(o, t, e, i) {
|
|
2150
|
-
var r =
|
|
2150
|
+
var r = et(o + "," + t + "," + e, function(n) {
|
|
2151
2151
|
Ct[n] = 1;
|
|
2152
2152
|
});
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
}),
|
|
2153
|
+
et(t, function(n) {
|
|
2154
|
+
ut.units[n] = "deg", rn[n] = 1;
|
|
2155
|
+
}), bt[r[13]] = o + "," + t, et(i, function(n) {
|
|
2156
2156
|
var s = n.split(":");
|
|
2157
|
-
|
|
2157
|
+
bt[s[1]] = r[s[0]];
|
|
2158
2158
|
});
|
|
2159
2159
|
})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent", "rotation,rotationX,rotationY,skewX,skewY", "transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective", "0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");
|
|
2160
|
-
|
|
2161
|
-
|
|
2160
|
+
et("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective", function(o) {
|
|
2161
|
+
ut.units[o] = "px";
|
|
2162
2162
|
});
|
|
2163
|
-
|
|
2164
|
-
var
|
|
2165
|
-
|
|
2166
|
-
const
|
|
2163
|
+
nt.registerPlugin(an);
|
|
2164
|
+
var yt = nt.registerPlugin(an) || nt;
|
|
2165
|
+
yt.core.Tween;
|
|
2166
|
+
const Ns = { class: "h-full w-full relative flex flex-col bg-[#030303] text-white overflow-hidden" }, $s = { class: "absolute inset-0 z-0 overflow-hidden pointer-events-none" }, Bs = {
|
|
2167
2167
|
key: 0,
|
|
2168
2168
|
class: "absolute top-0 right-0 p-6 z-50 flex gap-4 pointer-events-auto"
|
|
2169
2169
|
}, Vs = {
|
|
2170
2170
|
key: 0,
|
|
2171
|
-
class: "
|
|
2171
|
+
class: "absolute right-0 top-0 h-full w-full md:w-[450px] bg-[#0a0a0a]/95 backdrop-blur-2xl border-l border-white/10 z-[100] p-6 shadow-2xl overflow-auto text-left"
|
|
2172
2172
|
}, Us = { class: "text-[10px] font-mono text-green-400 whitespace-pre-wrap" }, Ys = { class: "flex-1 w-full relative overflow-y-auto overflow-x-hidden z-10 scroll-smooth" }, qs = {
|
|
2173
2173
|
key: 1,
|
|
2174
|
-
class: "
|
|
2174
|
+
class: "absolute bottom-0 left-0 w-full z-40 px-8 py-6 bg-gradient-to-t from-black via-black/80 to-transparent flex justify-between items-end pointer-events-none"
|
|
2175
2175
|
}, Xs = {
|
|
2176
2176
|
key: 0,
|
|
2177
2177
|
class: "pointer-events-auto text-left"
|
|
@@ -2187,12 +2187,12 @@ const $s = { class: "h-screen w-screen relative flex flex-col bg-[#030303] text-
|
|
|
2187
2187
|
}, Qs = ["disabled"], Zs = ["disabled"], Js = /* @__PURE__ */ Kt({
|
|
2188
2188
|
__name: "LuminaDeck",
|
|
2189
2189
|
setup(o) {
|
|
2190
|
-
const { slide: t, index: e, total: i, next: r, prev: n, options: s } = gn(), a = Ye(Oe), l =
|
|
2190
|
+
const { slide: t, index: e, total: i, next: r, prev: n, options: s } = gn(), a = Ye(Oe), l = mt(() => a.hasNext()), u = mt(() => a.hasPrev()), f = mt(() => {
|
|
2191
2191
|
var x, g;
|
|
2192
2192
|
return (g = (x = a.state.deck) == null ? void 0 : x.meta) == null ? void 0 : g.title;
|
|
2193
|
-
}), h =
|
|
2193
|
+
}), h = mt(() => a.state.options.ui), d = mt(() => a.state.options.navigation);
|
|
2194
2194
|
yn();
|
|
2195
|
-
const _ = ar({ showJson: !1 }), m =
|
|
2195
|
+
const _ = ar({ showJson: !1 }), m = mt(() => s.debug), c = mt(() => !t.value || !t.value.type ? null : `layout-${t.value.type}`), p = mt(() => {
|
|
2196
2196
|
var x, g, T, k, S, b, O, M;
|
|
2197
2197
|
return {
|
|
2198
2198
|
backgroundColor: ((g = (x = t.value) == null ? void 0 : x.meta) == null ? void 0 : g.orbColor) || "#3b82f6",
|
|
@@ -2213,7 +2213,7 @@ const $s = { class: "h-screen w-screen relative flex flex-col bg-[#030303] text-
|
|
|
2213
2213
|
g();
|
|
2214
2214
|
return;
|
|
2215
2215
|
}
|
|
2216
|
-
const k = ((M = T.animation) == null ? void 0 : M.durationOut) || 0.5, S = ((D = T.animation) == null ? void 0 : D.type) || "cascade", b =
|
|
2216
|
+
const k = ((M = T.animation) == null ? void 0 : M.durationOut) || 0.5, S = ((D = T.animation) == null ? void 0 : D.type) || "cascade", b = yt.timeline({ onComplete: g });
|
|
2217
2217
|
S === "fade" ? b.to(x, { opacity: 0, duration: k }) : S === "zoom" ? b.to(x, { opacity: 0, scale: 1.1, duration: k }) : b.to(x, {
|
|
2218
2218
|
opacity: 0,
|
|
2219
2219
|
y: -20,
|
|
@@ -2224,18 +2224,18 @@ const $s = { class: "h-screen w-screen relative flex flex-col bg-[#030303] text-
|
|
|
2224
2224
|
};
|
|
2225
2225
|
return (x, g) => {
|
|
2226
2226
|
var T, k, S, b;
|
|
2227
|
-
return
|
|
2228
|
-
P("div",
|
|
2227
|
+
return z(), B("div", Ns, [
|
|
2228
|
+
P("div", $s, [
|
|
2229
2229
|
P("div", {
|
|
2230
2230
|
class: "ambient-orb",
|
|
2231
|
-
style:
|
|
2231
|
+
style: or(p.value)
|
|
2232
2232
|
}, null, 4),
|
|
2233
2233
|
g[3] || (g[3] = P("div", {
|
|
2234
2234
|
class: "absolute inset-0 opacity-[0.04]",
|
|
2235
2235
|
style: { "background-image": "url('https://grainy-gradients.vercel.app/noise.svg')" }
|
|
2236
2236
|
}, null, -1))
|
|
2237
2237
|
]),
|
|
2238
|
-
m.value ? (
|
|
2238
|
+
m.value ? (z(), B("div", Bs, [
|
|
2239
2239
|
P("button", {
|
|
2240
2240
|
onClick: g[0] || (g[0] = (O) => _.value.showJson = !_.value.showJson),
|
|
2241
2241
|
class: "w-8 h-8 rounded-full glass-panel flex items-center justify-center text-gray-400 hover:text-white transition",
|
|
@@ -2243,12 +2243,12 @@ const $s = { class: "h-screen w-screen relative flex flex-col bg-[#030303] text-
|
|
|
2243
2243
|
}, [...g[4] || (g[4] = [
|
|
2244
2244
|
P("i", { class: "fa-solid fa-code text-xs" }, null, -1)
|
|
2245
2245
|
])])
|
|
2246
|
-
])) :
|
|
2246
|
+
])) : gt("", !0),
|
|
2247
2247
|
Fi(Li, { name: "slide-fade" }, {
|
|
2248
2248
|
default: Gt(() => [
|
|
2249
|
-
_.value.showJson ? (
|
|
2250
|
-
P("pre", Us, I(JSON.stringify(
|
|
2251
|
-
])) :
|
|
2249
|
+
_.value.showJson ? (z(), B("div", Vs, [
|
|
2250
|
+
P("pre", Us, I(JSON.stringify(kt(t), null, 2)), 1)
|
|
2251
|
+
])) : gt("", !0)
|
|
2252
2252
|
]),
|
|
2253
2253
|
_: 1
|
|
2254
2254
|
}),
|
|
@@ -2260,44 +2260,44 @@ const $s = { class: "h-screen w-screen relative flex flex-col bg-[#030303] text-
|
|
|
2260
2260
|
mode: "out-in"
|
|
2261
2261
|
}, {
|
|
2262
2262
|
default: Gt(() => [
|
|
2263
|
-
c.value ? (
|
|
2264
|
-
key:
|
|
2265
|
-
data:
|
|
2263
|
+
c.value ? (z(), ue(hn(c.value), {
|
|
2264
|
+
key: kt(e),
|
|
2265
|
+
data: kt(t),
|
|
2266
2266
|
onAction: y,
|
|
2267
2267
|
class: "min-h-full w-full"
|
|
2268
|
-
}, null, 40, ["data"])) :
|
|
2268
|
+
}, null, 40, ["data"])) : gt("", !0)
|
|
2269
2269
|
]),
|
|
2270
2270
|
_: 1
|
|
2271
2271
|
})
|
|
2272
2272
|
]),
|
|
2273
|
-
(T = h.value) != null && T.visible ? (
|
|
2274
|
-
(k = h.value) != null && k.showSlideCount ? (
|
|
2273
|
+
(T = h.value) != null && T.visible ? (z(), B("div", qs, [
|
|
2274
|
+
(k = h.value) != null && k.showSlideCount ? (z(), B("div", Xs, [
|
|
2275
2275
|
P("h2", js, I(f.value), 1),
|
|
2276
2276
|
P("div", Ws, [
|
|
2277
|
-
P("span", null, I((
|
|
2278
|
-
(S = h.value) != null && S.showProgressBar ? (
|
|
2279
|
-
P("span", null, I(
|
|
2277
|
+
P("span", null, I((kt(e) + 1).toString().padStart(2, "0")), 1),
|
|
2278
|
+
(S = h.value) != null && S.showProgressBar ? (z(), B("div", Gs)) : gt("", !0),
|
|
2279
|
+
P("span", null, I(kt(i).toString().padStart(2, "0")), 1)
|
|
2280
2280
|
])
|
|
2281
|
-
])) : (
|
|
2282
|
-
(b = h.value) != null && b.showControls ? (
|
|
2281
|
+
])) : (z(), B("div", Ks)),
|
|
2282
|
+
(b = h.value) != null && b.showControls ? (z(), B("div", Hs, [
|
|
2283
2283
|
P("button", {
|
|
2284
2284
|
onClick: g[1] || (g[1] = //@ts-ignore
|
|
2285
|
-
(...O) =>
|
|
2286
|
-
class:
|
|
2285
|
+
(...O) => kt(n) && kt(n)(...O)),
|
|
2286
|
+
class: U(["w-12 h-12 rounded-full glass-panel hover:bg-white/10 flex items-center justify-center transition active:scale-95", !u.value || !d.value ? "opacity-30 cursor-not-allowed" : ""]),
|
|
2287
2287
|
disabled: !u.value || !d.value
|
|
2288
2288
|
}, [...g[5] || (g[5] = [
|
|
2289
2289
|
P("i", { class: "fa-solid fa-arrow-left" }, null, -1)
|
|
2290
2290
|
])], 10, Qs),
|
|
2291
2291
|
P("button", {
|
|
2292
2292
|
onClick: g[2] || (g[2] = //@ts-ignore
|
|
2293
|
-
(...O) =>
|
|
2294
|
-
class:
|
|
2293
|
+
(...O) => kt(r) && kt(r)(...O)),
|
|
2294
|
+
class: U(["w-12 h-12 rounded-full bg-white text-black hover:scale-105 flex items-center justify-center transition shadow-lg active:scale-95", !l.value || !d.value ? "opacity-30 cursor-not-allowed" : ""]),
|
|
2295
2295
|
disabled: !l.value || !d.value
|
|
2296
2296
|
}, [...g[6] || (g[6] = [
|
|
2297
2297
|
P("i", { class: "fa-solid fa-arrow-right" }, null, -1)
|
|
2298
2298
|
])], 10, Zs)
|
|
2299
|
-
])) :
|
|
2300
|
-
])) :
|
|
2299
|
+
])) : gt("", !0)
|
|
2300
|
+
])) : gt("", !0)
|
|
2301
2301
|
]);
|
|
2302
2302
|
};
|
|
2303
2303
|
}
|
|
@@ -2310,7 +2310,7 @@ function ta(o, t) {
|
|
|
2310
2310
|
i == null || i.revert();
|
|
2311
2311
|
const { enabled: n, type: s, durationIn: a, stagger: l, ease: u } = e.state.options.animation || {};
|
|
2312
2312
|
if (n === !1) {
|
|
2313
|
-
|
|
2313
|
+
yt.set(o.value.querySelectorAll(".reveal-up, .reveal-zoom, .reveal-content > *, .reveal-card, .reveal-img"), {
|
|
2314
2314
|
opacity: 1,
|
|
2315
2315
|
y: 0,
|
|
2316
2316
|
scale: 1,
|
|
@@ -2318,10 +2318,10 @@ function ta(o, t) {
|
|
|
2318
2318
|
});
|
|
2319
2319
|
return;
|
|
2320
2320
|
}
|
|
2321
|
-
i =
|
|
2321
|
+
i = yt.context(() => {
|
|
2322
2322
|
const f = o.value, h = s === "fade", d = s === "slide", _ = s === "zoom", m = h ? 0 : d ? 80 : 40, c = _ ? 0.8 : s === "cascade" ? 0.95 : 1;
|
|
2323
|
-
|
|
2324
|
-
const p =
|
|
2323
|
+
yt.set(".reveal-up", { y: m, opacity: 0 }), yt.set(".reveal-zoom", { scale: c, opacity: 0 }), yt.set(".reveal-content > *", { y: h ? 0 : 30, opacity: 0 }), yt.set(".reveal-card", { y: h ? 0 : 50, opacity: 0, scale: c }), yt.set(".reveal-img", { scale: 1.1, opacity: 0 });
|
|
2324
|
+
const p = yt.timeline({
|
|
2325
2325
|
defaults: {
|
|
2326
2326
|
ease: u || "power3.out",
|
|
2327
2327
|
duration: a || 0.8
|
|
@@ -2378,91 +2378,95 @@ const ea = { class: "absolute inset-0 z-0 pointer-events-none" }, ia = { class:
|
|
|
2378
2378
|
},
|
|
2379
2379
|
setup(o) {
|
|
2380
2380
|
const t = ar(null);
|
|
2381
|
-
return ta(t), (e, i) => (
|
|
2381
|
+
return ta(t), (e, i) => (z(), B("div", {
|
|
2382
2382
|
ref_key: "container",
|
|
2383
2383
|
ref: t,
|
|
2384
|
-
class:
|
|
2384
|
+
class: U(["w-full min-h-full relative text-white", o.customClass])
|
|
2385
2385
|
}, [
|
|
2386
2386
|
P("div", ea, [
|
|
2387
|
-
|
|
2387
|
+
Ni(e.$slots, "background")
|
|
2388
2388
|
]),
|
|
2389
2389
|
P("div", ia, [
|
|
2390
|
-
|
|
2390
|
+
Ni(e.$slots, "default")
|
|
2391
2391
|
])
|
|
2392
2392
|
], 2));
|
|
2393
2393
|
}
|
|
2394
|
-
}), ra = { class: "
|
|
2394
|
+
}), ra = { class: "reveal-zoom max-w-5xl z-10" }, na = {
|
|
2395
2395
|
key: 0,
|
|
2396
2396
|
class: "inline-block px-4 py-1 rounded-full border border-white/10 bg-white/5 text-sm font-medium tracking-widest uppercase mb-10 text-[var(--lumina-primary)]",
|
|
2397
2397
|
style: { color: "var(--lumina-colors-primary, #3b82f6)" }
|
|
2398
|
-
},
|
|
2399
|
-
class: "font-heading font-bold leading-[0.9] tracking-tight mb-8 text-transparent bg-clip-text bg-gradient-to-b from-white to-gray-500",
|
|
2400
|
-
style: { "font-size": "clamp(3rem, 10vw, 8rem)" }
|
|
2401
|
-
}, oa = {
|
|
2398
|
+
}, sa = {
|
|
2402
2399
|
key: 1,
|
|
2403
2400
|
class: "text-xl md:text-3xl font-light max-w-3xl mx-auto leading-normal",
|
|
2404
2401
|
style: { color: "var(--lumina-colors-muted, #9ca3af)" }
|
|
2405
|
-
},
|
|
2402
|
+
}, aa = /* @__PURE__ */ Kt({
|
|
2406
2403
|
__name: "LayoutStatement",
|
|
2407
2404
|
props: {
|
|
2408
2405
|
data: {}
|
|
2409
2406
|
},
|
|
2410
2407
|
setup(o) {
|
|
2411
|
-
return (t, e) => (
|
|
2408
|
+
return (t, e) => (z(), ue(Me, { data: o.data }, {
|
|
2412
2409
|
default: Gt(() => [
|
|
2413
|
-
P("div",
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
o.data.
|
|
2410
|
+
P("div", {
|
|
2411
|
+
class: U(["flex flex-col justify-center items-center text-center p-8 relative", o.data.sizing === "container" ? "min-h-full" : "min-h-screen"])
|
|
2412
|
+
}, [
|
|
2413
|
+
P("div", ra, [
|
|
2414
|
+
o.data.tag ? (z(), B("span", na, I(o.data.tag), 1)) : gt("", !0),
|
|
2415
|
+
P("h1", {
|
|
2416
|
+
class: "font-heading font-bold leading-[0.9] tracking-tight mb-8 text-transparent bg-clip-text bg-gradient-to-b from-white to-gray-500",
|
|
2417
|
+
style: or(o.data.sizing === "container" ? "font-size: 3.5rem;" : "font-size: clamp(3rem, 10vw, 8rem);")
|
|
2418
|
+
}, I(o.data.title), 5),
|
|
2419
|
+
o.data.subtitle ? (z(), B("p", sa, I(o.data.subtitle), 1)) : gt("", !0)
|
|
2418
2420
|
])
|
|
2419
|
-
])
|
|
2421
|
+
], 2)
|
|
2420
2422
|
]),
|
|
2421
2423
|
_: 1
|
|
2422
2424
|
}, 8, ["data"]));
|
|
2423
2425
|
}
|
|
2424
|
-
}),
|
|
2426
|
+
}), oa = ["src"], la = { class: "reveal-content max-w-xl" }, ua = {
|
|
2425
2427
|
class: "text-xs font-bold uppercase tracking-[0.2em] mb-6 block",
|
|
2426
2428
|
style: { color: "var(--lumina-colors-primary, #3b82f6)" }
|
|
2427
|
-
},
|
|
2429
|
+
}, fa = { class: "text-4xl lg:text-6xl font-heading font-bold leading-tight mb-8 text-white" }, ha = {
|
|
2428
2430
|
class: "space-y-6 text-lg leading-relaxed font-light mb-10",
|
|
2429
2431
|
style: { color: "var(--lumina-colors-muted, #9ca3af)" }
|
|
2430
|
-
},
|
|
2432
|
+
}, ca = {
|
|
2431
2433
|
key: 0,
|
|
2432
2434
|
class: "pt-6 border-t border-white/10"
|
|
2433
|
-
},
|
|
2435
|
+
}, da = /* @__PURE__ */ Kt({
|
|
2434
2436
|
__name: "LayoutHalf",
|
|
2435
2437
|
props: {
|
|
2436
2438
|
data: {}
|
|
2437
2439
|
},
|
|
2438
2440
|
emits: ["action"],
|
|
2439
2441
|
setup(o) {
|
|
2440
|
-
return (t, e) => (
|
|
2442
|
+
return (t, e) => (z(), ue(Me, {
|
|
2441
2443
|
data: o.data,
|
|
2442
2444
|
customClass: "bg-[var(--lumina-bg)]"
|
|
2443
2445
|
}, {
|
|
2444
2446
|
default: Gt(() => [
|
|
2445
|
-
P("div",
|
|
2447
|
+
P("div", {
|
|
2448
|
+
class: U(["w-full flex flex-col lg:block relative", o.data.sizing === "container" ? "min-h-full" : "min-h-screen"])
|
|
2449
|
+
}, [
|
|
2446
2450
|
P("div", {
|
|
2447
|
-
class:
|
|
2451
|
+
class: U(["relative h-[40vh] lg:h-full lg:w-1/2 lg:fixed lg:top-0 overflow-hidden z-0", o.data.imageSide === "right" ? "lg:right-0 order-1" : "lg:left-0 order-1"])
|
|
2448
2452
|
}, [
|
|
2449
2453
|
e[1] || (e[1] = P("div", { class: "absolute inset-0 bg-black/20 z-10" }, null, -1)),
|
|
2450
2454
|
P("img", {
|
|
2451
2455
|
src: o.data.image,
|
|
2452
2456
|
class: "w-full h-full object-cover reveal-img scale-110 origin-center",
|
|
2453
2457
|
alt: "Slide Image"
|
|
2454
|
-
}, null, 8,
|
|
2458
|
+
}, null, 8, oa)
|
|
2455
2459
|
], 2),
|
|
2456
2460
|
P("div", {
|
|
2457
|
-
class:
|
|
2461
|
+
class: U(["relative z-10 w-full lg:w-1/2 min-h-[60vh] flex flex-col justify-center p-8 lg:p-24 order-2 bg-[#050505]", o.data.imageSide === "right" ? "lg:mr-[50%]" : "lg:ml-[50%]", o.data.sizing === "container" ? "lg:min-h-full" : "lg:min-h-screen"])
|
|
2458
2462
|
}, [
|
|
2459
|
-
P("div",
|
|
2460
|
-
P("span",
|
|
2461
|
-
P("h1",
|
|
2462
|
-
P("div",
|
|
2463
|
-
(
|
|
2463
|
+
P("div", la, [
|
|
2464
|
+
P("span", ua, I(o.data.tag), 1),
|
|
2465
|
+
P("h1", fa, I(o.data.title), 1),
|
|
2466
|
+
P("div", ha, [
|
|
2467
|
+
(z(!0), B(qe, null, Xe(o.data.paragraphs, (i, r) => (z(), B("p", { key: r }, I(i), 1))), 128))
|
|
2464
2468
|
]),
|
|
2465
|
-
o.data.cta ? (
|
|
2469
|
+
o.data.cta ? (z(), B("div", ca, [
|
|
2466
2470
|
P("button", {
|
|
2467
2471
|
onClick: e[0] || (e[0] = (i) => t.$emit("action", { type: "cta", label: o.data.cta })),
|
|
2468
2472
|
class: "px-8 py-4 bg-white text-black font-bold rounded-lg hover:bg-gray-200 transition flex items-center gap-3"
|
|
@@ -2470,128 +2474,140 @@ const ea = { class: "absolute inset-0 z-0 pointer-events-none" }, ia = { class:
|
|
|
2470
2474
|
dn(I(o.data.cta) + " ", 1),
|
|
2471
2475
|
e[2] || (e[2] = P("i", { class: "fa-solid fa-arrow-right" }, null, -1))
|
|
2472
2476
|
])
|
|
2473
|
-
])) :
|
|
2477
|
+
])) : gt("", !0)
|
|
2474
2478
|
])
|
|
2475
2479
|
], 2)
|
|
2476
|
-
])
|
|
2480
|
+
], 2)
|
|
2477
2481
|
]),
|
|
2478
2482
|
_: 1
|
|
2479
2483
|
}, 8, ["data"]));
|
|
2480
2484
|
}
|
|
2481
|
-
}),
|
|
2482
|
-
class: "text-xl",
|
|
2483
|
-
style: { color: "var(--lumina-colors-muted, #9ca3af)" }
|
|
2484
|
-
}, ba = { class: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 w-full" }, wa = {
|
|
2485
|
-
class: "w-12 h-12 rounded-xl bg-white/5 flex items-center justify-center text-xl mb-6 group-hover:scale-110 transition duration-300",
|
|
2486
|
-
style: { color: "var(--lumina-colors-primary, #3b82f6)" }
|
|
2487
|
-
}, Ta = { class: "text-2xl font-bold mb-3 text-white" }, ka = {
|
|
2488
|
-
class: "leading-relaxed",
|
|
2489
|
-
style: { color: "var(--lumina-colors-muted, #9ca3af)" }
|
|
2490
|
-
}, Sa = /* @__PURE__ */ Kt({
|
|
2485
|
+
}), _a = { class: "mb-16 reveal-up text-center lg:text-left max-w-4xl" }, pa = /* @__PURE__ */ Kt({
|
|
2491
2486
|
__name: "LayoutFeatures",
|
|
2492
2487
|
props: {
|
|
2493
2488
|
data: {}
|
|
2494
2489
|
},
|
|
2495
2490
|
setup(o) {
|
|
2496
|
-
return (t, e) => (
|
|
2491
|
+
return (t, e) => (z(), ue(Me, { data: o.data }, {
|
|
2497
2492
|
default: Gt(() => [
|
|
2498
|
-
P("div",
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2493
|
+
P("div", {
|
|
2494
|
+
class: U(["w-full flex flex-col justify-center p-8 lg:p-24", o.data.sizing === "container" ? "min-h-full" : "min-h-screen"])
|
|
2495
|
+
}, [
|
|
2496
|
+
P("div", _a, [
|
|
2497
|
+
P("h2", {
|
|
2498
|
+
class: U(["font-heading font-bold mb-4", o.data.sizing === "container" ? "text-3xl" : "text-5xl"])
|
|
2499
|
+
}, I(o.data.title), 3),
|
|
2500
|
+
P("p", {
|
|
2501
|
+
class: U([o.data.sizing === "container" ? "text-sm" : "text-xl"]),
|
|
2502
|
+
style: { color: "var(--lumina-colors-muted, #9ca3af)" }
|
|
2503
|
+
}, I(o.data.description), 3)
|
|
2502
2504
|
]),
|
|
2503
|
-
P("div",
|
|
2504
|
-
|
|
2505
|
+
P("div", {
|
|
2506
|
+
class: U(["grid w-full", o.data.sizing === "container" ? "grid-cols-1 gap-3" : "grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"])
|
|
2507
|
+
}, [
|
|
2508
|
+
(z(!0), B(qe, null, Xe(o.data.features, (i, r) => (z(), B("div", {
|
|
2505
2509
|
key: r,
|
|
2506
|
-
class: "glass-panel
|
|
2510
|
+
class: U(["glass-panel rounded-3xl hover:bg-white/5 transition duration-500 reveal-card group border-t border-white/5 hover:border-blue-500/50", o.data.sizing === "container" ? "p-6" : "p-8"])
|
|
2507
2511
|
}, [
|
|
2508
|
-
P("div",
|
|
2512
|
+
P("div", {
|
|
2513
|
+
class: U(["rounded-xl bg-white/5 flex items-center justify-center text-xl mb-6 group-hover:scale-110 transition duration-300", o.data.sizing === "container" ? "w-10 h-10 mb-4" : "w-12 h-12 mb-6"]),
|
|
2514
|
+
style: { color: "var(--lumina-colors-primary, #3b82f6)" }
|
|
2515
|
+
}, [
|
|
2509
2516
|
P("i", {
|
|
2510
|
-
class:
|
|
2517
|
+
class: U(["fa-solid", i.icon])
|
|
2511
2518
|
}, null, 2)
|
|
2512
|
-
]),
|
|
2513
|
-
P("h3",
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2519
|
+
], 2),
|
|
2520
|
+
P("h3", {
|
|
2521
|
+
class: U(["font-bold mb-3 text-white", o.data.sizing === "container" ? "text-lg" : "text-2xl"])
|
|
2522
|
+
}, I(i.title), 3),
|
|
2523
|
+
P("p", {
|
|
2524
|
+
class: U(["leading-relaxed", [o.data.sizing === "container" ? "text-sm" : ""]]),
|
|
2525
|
+
style: { color: "var(--lumina-colors-muted, #9ca3af)" }
|
|
2526
|
+
}, I(i.desc), 3)
|
|
2527
|
+
], 2))), 128))
|
|
2528
|
+
], 2)
|
|
2529
|
+
], 2)
|
|
2518
2530
|
]),
|
|
2519
2531
|
_: 1
|
|
2520
2532
|
}, 8, ["data"]));
|
|
2521
2533
|
}
|
|
2522
|
-
}),
|
|
2534
|
+
}), ma = { class: "text-center mb-16 reveal-up" }, ga = { class: "text-5xl font-heading font-bold mb-4" }, ya = {
|
|
2523
2535
|
key: 0,
|
|
2524
2536
|
class: "text-xl opacity-60"
|
|
2525
|
-
},
|
|
2537
|
+
}, va = { class: "relative max-w-4xl mx-auto w-full" }, xa = { class: "space-y-12" }, ba = { class: "text-sm font-bold tracking-widest uppercase text-blue-400 mb-1" }, wa = { class: "text-2xl font-bold" }, Ta = { class: "text-lg opacity-60 leading-relaxed" }, ka = /* @__PURE__ */ Kt({
|
|
2526
2538
|
__name: "LayoutTimeline",
|
|
2527
2539
|
props: {
|
|
2528
2540
|
data: {}
|
|
2529
2541
|
},
|
|
2530
2542
|
setup(o) {
|
|
2531
|
-
return (t, e) => (
|
|
2543
|
+
return (t, e) => (z(), ue(Me, { data: o.data }, {
|
|
2532
2544
|
default: Gt(() => [
|
|
2533
|
-
P("div",
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2545
|
+
P("div", {
|
|
2546
|
+
class: U(["w-full flex flex-col justify-center p-8 lg:p-24", o.data.sizing === "container" ? "min-h-full py-12 lg:py-16" : "min-h-screen"])
|
|
2547
|
+
}, [
|
|
2548
|
+
P("div", ma, [
|
|
2549
|
+
P("h2", ga, I(o.data.title), 1),
|
|
2550
|
+
o.data.subtitle ? (z(), B("p", ya, I(o.data.subtitle), 1)) : gt("", !0)
|
|
2537
2551
|
]),
|
|
2538
|
-
P("div",
|
|
2552
|
+
P("div", va, [
|
|
2539
2553
|
e[1] || (e[1] = P("div", { class: "absolute left-4 md:left-1/2 top-0 bottom-0 w-0.5 bg-white/20 -translate-x-1/2 reveal-zoom origin-top" }, null, -1)),
|
|
2540
|
-
P("div",
|
|
2541
|
-
(
|
|
2554
|
+
P("div", xa, [
|
|
2555
|
+
(z(!0), B(qe, null, Xe(o.data.timeline, (i, r) => (z(), B("div", {
|
|
2542
2556
|
key: r,
|
|
2543
|
-
class:
|
|
2557
|
+
class: U(["relative flex flex-col md:flex-row gap-8 md:gap-0 items-start md:items-center reveal-card", r % 2 === 0 ? "" : "md:flex-row-reverse"])
|
|
2544
2558
|
}, [
|
|
2545
2559
|
P("div", {
|
|
2546
|
-
class:
|
|
2560
|
+
class: U(["w-full md:w-1/2 pl-12 md:pl-0 flex flex-col justify-center", r % 2 === 0 ? "md:pr-12 md:text-right md:items-end" : "md:pl-12 md:text-left md:items-start"])
|
|
2547
2561
|
}, [
|
|
2548
|
-
P("span",
|
|
2549
|
-
P("h3",
|
|
2562
|
+
P("span", ba, I(i.date), 1),
|
|
2563
|
+
P("h3", wa, I(i.title), 1)
|
|
2550
2564
|
], 2),
|
|
2551
2565
|
e[0] || (e[0] = P("div", { class: "absolute left-4 md:left-1/2 -translate-x-1/2 w-4 h-4 rounded-full bg-blue-500 shadow-[0_0_20px_rgba(59,130,246,0.5)] border-4 border-[#030303] z-10" }, null, -1)),
|
|
2552
2566
|
P("div", {
|
|
2553
|
-
class:
|
|
2567
|
+
class: U(["w-full md:w-1/2 pl-12 md:pl-0", r % 2 === 0 ? "md:pl-12" : "md:pr-12 md:text-right"])
|
|
2554
2568
|
}, [
|
|
2555
|
-
P("p",
|
|
2569
|
+
P("p", Ta, I(i.description), 1)
|
|
2556
2570
|
], 2)
|
|
2557
2571
|
], 2))), 128))
|
|
2558
2572
|
])
|
|
2559
2573
|
])
|
|
2560
|
-
])
|
|
2574
|
+
], 2)
|
|
2561
2575
|
]),
|
|
2562
2576
|
_: 1
|
|
2563
2577
|
}, 8, ["data"]));
|
|
2564
2578
|
}
|
|
2565
|
-
}),
|
|
2579
|
+
}), Sa = { class: "mb-20 text-center reveal-up" }, Pa = { class: "text-5xl font-heading font-bold mb-4" }, Oa = {
|
|
2566
2580
|
key: 0,
|
|
2567
2581
|
class: "text-xl opacity-60 max-w-2xl mx-auto"
|
|
2568
|
-
},
|
|
2582
|
+
}, Ca = { class: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 w-full max-w-7xl mx-auto relative" }, Ma = { class: "w-20 h-20 rounded-2xl bg-[#111] border border-white/10 flex items-center justify-center text-2xl font-bold mb-6 relative z-10 group-hover:scale-110 transition duration-300 shadow-2xl mx-auto lg:mx-0" }, Da = { class: "text-transparent bg-clip-text bg-gradient-to-br from-white to-gray-600" }, za = { class: "text-xl font-bold mb-3" }, Aa = { class: "text-sm leading-relaxed opacity-60" }, Ea = /* @__PURE__ */ Kt({
|
|
2569
2583
|
__name: "LayoutSteps",
|
|
2570
2584
|
props: {
|
|
2571
2585
|
data: {}
|
|
2572
2586
|
},
|
|
2573
2587
|
setup(o) {
|
|
2574
|
-
return (t, e) => (
|
|
2588
|
+
return (t, e) => (z(), ue(Me, { data: o.data }, {
|
|
2575
2589
|
default: Gt(() => [
|
|
2576
|
-
P("div",
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2590
|
+
P("div", {
|
|
2591
|
+
class: U(["w-full flex flex-col justify-center p-8 lg:p-12", o.data.sizing === "container" ? "min-h-full" : "min-h-screen"])
|
|
2592
|
+
}, [
|
|
2593
|
+
P("div", Sa, [
|
|
2594
|
+
P("h2", Pa, I(o.data.title), 1),
|
|
2595
|
+
o.data.subtitle ? (z(), B("p", Oa, I(o.data.subtitle), 1)) : gt("", !0)
|
|
2580
2596
|
]),
|
|
2581
|
-
P("div",
|
|
2597
|
+
P("div", Ca, [
|
|
2582
2598
|
e[0] || (e[0] = P("div", { class: "hidden lg:block absolute top-[2.5rem] left-0 right-0 h-0.5 bg-gradient-to-r from-transparent via-white/20 to-transparent reveal-zoom origin-left" }, null, -1)),
|
|
2583
|
-
(
|
|
2599
|
+
(z(!0), B(qe, null, Xe(o.data.steps, (i, r) => (z(), B("div", {
|
|
2584
2600
|
key: r,
|
|
2585
2601
|
class: "relative glass-panel p-8 rounded-2xl border border-white/5 reveal-card group hover:bg-white/5 transition duration-500"
|
|
2586
2602
|
}, [
|
|
2587
|
-
P("div",
|
|
2588
|
-
P("span",
|
|
2603
|
+
P("div", Ma, [
|
|
2604
|
+
P("span", Da, I(i.step), 1)
|
|
2589
2605
|
]),
|
|
2590
|
-
P("h3",
|
|
2591
|
-
P("p",
|
|
2606
|
+
P("h3", za, I(i.title), 1),
|
|
2607
|
+
P("p", Aa, I(i.description), 1)
|
|
2592
2608
|
]))), 128))
|
|
2593
2609
|
])
|
|
2594
|
-
])
|
|
2610
|
+
], 2)
|
|
2595
2611
|
]),
|
|
2596
2612
|
_: 1
|
|
2597
2613
|
}, 8, ["data"]));
|
|
@@ -2673,7 +2689,7 @@ const ea = { class: "absolute inset-0 z-0 pointer-events-none" }, ia = { class:
|
|
|
2673
2689
|
}
|
|
2674
2690
|
}
|
|
2675
2691
|
}, rr = "lumina-theme-styles";
|
|
2676
|
-
class
|
|
2692
|
+
class Ra {
|
|
2677
2693
|
/**
|
|
2678
2694
|
* Injects the requested theme into the document head.
|
|
2679
2695
|
* If a string is provided, it looks up the preset.
|
|
@@ -2725,7 +2741,7 @@ class ja {
|
|
|
2725
2741
|
} : null;
|
|
2726
2742
|
}
|
|
2727
2743
|
}
|
|
2728
|
-
class
|
|
2744
|
+
class La {
|
|
2729
2745
|
/**
|
|
2730
2746
|
* Creates a new Lumina instance.
|
|
2731
2747
|
*
|
|
@@ -2733,9 +2749,9 @@ class Ka {
|
|
|
2733
2749
|
* @param options - Configuration options (theme, loop, keys, etc.).
|
|
2734
2750
|
*/
|
|
2735
2751
|
constructor(t, e = {}) {
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
this.selector = t, this.store = mn(e), e.theme &&
|
|
2752
|
+
ze(this, "app");
|
|
2753
|
+
ze(this, "store");
|
|
2754
|
+
this.selector = t, this.store = mn(e), e.theme && Ra.inject(e.theme), this.app = _n(Js), this.app.provide(Oe, this.store), this.app.component("layout-statement", aa), this.app.component("layout-half", da), this.app.component("layout-features", pa), this.app.component("layout-timeline", ka), this.app.component("layout-steps", Ea), this.app.mount(this.selector);
|
|
2739
2755
|
}
|
|
2740
2756
|
/**
|
|
2741
2757
|
* Loads a Deck object into the engine.
|
|
@@ -2770,7 +2786,7 @@ class Ka {
|
|
|
2770
2786
|
}
|
|
2771
2787
|
}
|
|
2772
2788
|
export {
|
|
2773
|
-
|
|
2789
|
+
La as Lumina,
|
|
2774
2790
|
Js as LuminaDeck,
|
|
2775
2791
|
_e as bus
|
|
2776
2792
|
};
|