vendor: 30,622 bytes, lines 1-11
1/*! 2 * Flip 3.14.2 3 * https://gsap.com 4 * 5 * @license Copyright 2025, GreenSock. All rights reserved. 6 * Subject to the terms at https://gsap.com/standard-license. 7 * @author: Jack Doyle, [email protected] 8 */ 9 10!function (t, e) { "object" == typeof exports && "undefined" != typeof module ? e(exports) : "function" == typeof define && define.amd ? define(["exports"], e) : e((t = t || self).window = t.window || {}) }(this, function (e) { "use strict"; function p(t) { var e = t.ownerDocument || t; !(C in t.style) && "msTransform" in t.style && (k = (C = "msTransform") + "Origin"); for (; e.parentNode && (e = e.parentNode);); if (y = window, m = new F, e) { a = (g = e).documentElement, b = e.body, (s = g.createElementNS("http://www.w3.org/2000/svg", "g")).style.transform = "none"; var i = e.createElement("div"), n = e.createElement("div"), r = e && (e.body || e.firstElementChild); r && r.appendChild && (r.appendChild(i), i.appendChild(n), i.style.position = "static", i.style.transform = "translate3d(0,0,1px)", w = n.offsetParent !== i, r.removeChild(i)) } return e } function t() { return y.pageYOffset || g.scrollTop || a.scrollTop || b.scrollTop || 0 } function u() { return y.pageXOffset || g.scrollLeft || a.scrollLeft || b.scrollLeft || 0 } function v(t) { return t.ownerSVGElement || ("svg" === (t.tagName + "").toLowerCase() ? t : null) } function x(t, e) { if (t.parentNode && (g || p(t))) { var i = v(t), n = i ? i.getAttribute("xmlns") || "http://www.w3.org/2000/svg" : "http://www.w3.org/1999/xhtml", r = i ? e ? "rect" : "g" : "div", a = 2 !== e ? 0 : 100, s = 3 === e ? 100 : 0, o = { position: "absolute", display: "block", pointerEvents: "none", margin: "0", padding: "0" }, l = g.createElementNS ? g.createElementNS(n.replace(/^https/, "http"), r) : g.createElement(r); return e && (i ? (d = d || x(t), l.setAttribute("width", .01), l.setAttribute("height", .01), l.setAttribute("transform", "translate(" + a + "," + s + ")"), l.setAttribute("fill", "transparent"), d.appendChild(l)) : (f || (f = x(t), Object.assign(f.style, o)), Object.assign(l.style, o, { width: "0.1px", height: "0.1px", top: s + "px", left: a + "px" }), f.appendChild(l))), l } throw "Need document and parent." } function z(t) { var e, i = t.getCTM(); return i || (e = t.style[C], t.style[C] = "none", t.appendChild(s), i = s.getCTM(), t.removeChild(s), e ? t.style[C] = e : t.style.removeProperty(C.replace(/([A-Z])/g, "-$1").toLowerCase())), i || m.clone() } function A(t, e) { var i, n, r, a, s, o, l = v(t), u = t === l, h = l ? E : M, p = t.parentNode, c = p && !l && p.shadowRoot && p.shadowRoot.appendChild ? p.shadowRoot : p; if (t === y) return t; if (h.length || h.push(x(t, 1), x(t, 2), x(t, 3)), i = l ? d : f, l) u ? (a = -(r = z(t)).e / r.a, s = -r.f / r.d, n = m) : t.getBBox ? (r = t.getBBox(), a = (n = (n = t.transform ? t.transform.baseVal : {}).numberOfItems ? 1 < n.numberOfItems ? function _consolidate(t) { for (var e = new F, i = 0; i < t.numberOfItems; i++)e.multiply(t.getItem(i).matrix); return e }(n) : n.getItem(0).matrix : m).a * r.x + n.c * r.y, s = n.b * r.x + n.d * r.y) : (n = new F, a = s = 0), e && "g" === t.tagName.toLowerCase() && (a = s = 0), (u || !t.getBoundingClientRect().width ? l : p).appendChild(i), i.setAttribute("transform", "matrix(" + n.a + "," + n.b + "," + n.c + "," + n.d + "," + (n.e + a) + "," + (n.f + s) + ")"); else { if (a = s = 0, w) for (n = t.offsetParent, r = t; (r = r && r.parentNode) && r !== n && r.parentNode;)4 < (y.getComputedStyle(r)[C] + "").length && (a = r.offsetLeft, s = r.offsetTop, r = 0); if ("absolute" !== (o = y.getComputedStyle(t)).position && "fixed" !== o.position) for (n = t.offsetParent; p && p !== n;)a += p.scrollLeft || 0, s += p.scrollTop || 0, p = p.parentNode; (r = i.style).top = t.offsetTop - s + "px", r.left = t.offsetLeft - a + "px", r[C] = o[C], r[k] = o[k], r.position = "fixed" === o.position ? "fixed" : "absolute", c.appendChild(i) } return i } function B(t, e, i, n, r, a, s) { return t.a = e, t.b = i, t.c = n, t.d = r, t.e = a, t.f = s, t } var g, y, a, b, f, d, m, s, w, i, C = "transform", k = C + "Origin", E = [], M = [], F = ((i = Matrix2D.prototype).inverse = function inverse() { var t = this.a, e = this.b, i = this.c, n = this.d, r = this.e, a = this.f, s = t * n - e * i || 1e-10; return B(this, n / s, -e / s, -i / s, t / s, (i * a - n * r) / s, -(t * a - e * r) / s) }, i.multiply = function multiply(t) { var e = this.a, i = this.b, n = this.c, r = this.d, a = this.e, s = this.f, o = t.a, l = t.c, u = t.b, h = t.d, p = t.e, c = t.f; return B(this, o * e + u * n, o * i + u * r, l * e + h * n, l * i + h * r, a + p * e + c * n, s + p * i + c * r) }, i.clone = function clone() { return new Matrix2D(this.a, this.b, this.c, this.d, this.e, this.f) }, i.equals = function equals(t) { var e = this.a, i = this.b, n = this.c, r = this.d, a = this.e, s = this.f; return e === t.a && i === t.b && n === t.c && r === t.d && a === t.e && s === t.f }, i.apply = function apply(t, e) { void 0 === e && (e = {}); var i = t.x, n = t.y, r = this.a, a = this.b, s = this.c, o = this.d, l = this.e, u = this.f; return e.x = i * r + n * s + l || 0, e.y = i * a + n * o + u || 0, e }, Matrix2D); function Matrix2D(t, e, i, n, r, a) { void 0 === t && (t = 1), void 0 === e && (e = 0), void 0 === i && (i = 0), void 0 === n && (n = 1), void 0 === r && (r = 0), void 0 === a && (a = 0), B(this, t, e, i, n, r, a) } function getGlobalMatrix(e, i, n, r) { if (!e || !e.parentNode || (g || p(e)).documentElement === e) return new F; var a = function _forceNonZeroScale(t) { for (var e, i; t && t !== b;)(i = t._gsap) && i.uncache && i.get(t, "x"), i && !i.scaleX && !i.scaleY && i.renderTransform && (i.scaleX = i.scaleY = 1e-4, i.renderTransform(1, i), e ? e.push(i) : e = [i]), t = t.parentNode; return e }(e), s = v(e) ? E : M, o = A(e, n), l = s[0].getBoundingClientRect(), h = s[1].getBoundingClientRect(), c = s[2].getBoundingClientRect(), f = o.parentNode, d = !r && function _isFixed(t) { return "fixed" === y.getComputedStyle(t).position || ((t = t.parentNode) && 1 === t.nodeType ? _isFixed(t) : void 0) }(e), m = new F((h.left - l.left) / 100, (h.top - l.top) / 100, (c.left - l.left) / 100, (c.top - l.top) / 100, l.left + (d ? 0 : u()), l.top + (d ? 0 : t())); if (f.removeChild(o), a) for (l = a.length; l--;)(h = a[l]).scaleX = h.scaleY = 0, h.renderTransform(1, h); return i ? m.inverse() : m } function L(t, e) { return t.actions.forEach(function (t) { return t.vars[e] && t.vars[e](t) }) } function S(t) { return "string" == typeof t ? t.split(" ").join("").split(",") : t } function V(t) { return I(t)[0] || console.warn("Element not found:", t) } function W(t) { return Math.round(1e4 * t) / 1e4 || 0 } function X(t, e, i) { return t.forEach(function (t) { return t.classList[i](e) }) } function $(t) { return t.replace(/([A-Z])/g, "-$1").toLowerCase() } function _(t, e) { var i, n = {}; for (i in t) e[i] || (n[i] = t[i]); return n } function ba(t) { var e = st[t] = S(t); return et[t] = e.concat(nt), e } function ea(t, e, i) { return t.forEach(function (t) { return t.d = function _getDOMDepth(t, e, i) { void 0 === i && (i = 0); for (var n = t.parentNode, r = 1e3 * Math.pow(10, i) * (e ? -1 : 1), a = e ? 900 * -r : 0; t;)a += r, t = t.previousSibling; return n ? a + _getDOMDepth(n, e, i + 1) : a }(i ? t.element : t.t, e) }), t.sort(function (t, e) { return t.d - e.d }), t } function fa(t, e) { for (var i, n, r = t.element.style, a = t.css = t.css || [], s = e.length; s--;)n = r[i = e[s]] || r.getPropertyValue(i), a.push(n ? i : D[i] || (D[i] = $(i)), n); return r } function ga(t) { var e = t.css, i = t.element.style, n = 0; for (t.cache.uncache = 1; n < e.length; n += 2)e[n + 1] ? i[e[n]] = e[n + 1] : i.removeProperty(e[n]); !e[e.indexOf("transform") + 1] && i.translate && (i.removeProperty("translate"), i.removeProperty("scale"), i.removeProperty("rotate")) } function ha(t, e) { t.forEach(function (t) { return t.a.cache.uncache = 1 }), e || t.finalStates.forEach(ga) } function ja(e, i, n) { var r, a, s, o = e.element, l = e.width, h = e.height, p = e.uncache, c = e.getProp, f = o.style, d = 4; if ("object" != typeof i && (i = e), tt && 1 !== n) return tt._abs.push({ t: o, b: e, a: e, sd: 0 }), tt._final.push(function () { return (e.cache.uncache = 1) && ga(e) }), o; for (a = "none" === c("display"), e.isVisible && !a || (a && (fa(e, ["display"]).display = i.display), e.matrix = i.matrix, e.width = l = e.width || i.width, e.height = h = e.height || i.height), fa(e, Y), s = window.getComputedStyle(o); d--;)f[Y[d]] = s[Y[d]]; if (f.gridArea = "1 / 1 / 1 / 1", f.transition = "none", f.position = "absolute", f.width = l + "px", f.height = h + "px", f.top || (f.top = "0px"), f.left || (f.left = "0px"), p) r = new ht(o); else if ((r = _(e, R)).position = "absolute", e.simple) { var m = o.getBoundingClientRect(); r.matrix = new F(1, 0, 0, 1, m.left + u(), m.top + t()) } else r.matrix = getGlobalMatrix(o, !1, !1, !0); return r = ot(r, e, !0), e.x = O(r.x, .01), e.y = O(r.y, .01), o } function ka(t, e) { return !0 !== e && (e = I(e), t = t.filter(function (t) { if (-1 !== e.indexOf((t.sd < 0 ? t.b : t.a).element)) return !0; t.t._gsap.renderTransform(1), t.b.isVisible && (t.t.style.width = t.b.width + "px", t.t.style.height = t.b.height + "px") })), t } function la(t) { return ea(t, !0).forEach(function (t) { return (t.a.isVisible || t.b.isVisible) && ja(t.sd < 0 ? t.b : t.a, t.b, 1) }) } function pa(t, e) { var i, n = t.style || t; for (i in e) n[i] = e[i] } function ra(t) { return t.map(function (t) { return t.element }) } function sa(t, e, i) { return t && e.length && i.add(t(ra(e), i, new ut(e, 0, !0)), 0) } function ua(t, e) { return t instanceof ut ? t : new ut(t, e) } function va(t, e, i) { var n = t.idLookup[i], r = t.alt[i]; return !r.isVisible || (e.getElementState(r.element) || r).isVisible && n.isVisible ? n : r } function za(t) { if (t !== l) { var e = o.style, i = o.clientWidth === window.outerWidth, n = o.clientHeight === window.outerHeight, r = 4; if (t && (i || n)) { for (; r--;)G[r] = e[q[r]]; i && (e.width = o.clientWidth + "px", e.overflowY = "hidden"), n && (e.height = o.clientHeight + "px", e.overflowX = "hidden"), l = t } else if (l) { for (; r--;)G[r] ? e[q[r]] = G[r] : e.removeProperty($(q[r])); l = t } } } function Aa(t, e) { for (var i = 0; i < t.length; i += 3)Q.set(t[i], { clearProps: !0 }), t[i].setAttribute("style", t[i + e]), t[i]._gsap.gmCache = -1 } function Ba(r, t, a, e) { r instanceof ut && t instanceof ut || console.warn("Not a valid state object."); var s, o, l, u, h, p, c, f, d, i, n, m, g, v, y, x = (a = a || {}).clearProps, b = a.onEnter, w = a.onLeave, S = a.absolute, C = a.absoluteOnLeave, k = a.custom, E = a.delay, V = a.paused, B = a.repeat, M = a.repeatDelay, F = a.yoyo, I = a.toggleClass, L = a.nested, A = a.zIndex, O = a.scale, P = a.fade, T = a.stagger, N = a.spin, z = a.prune, R = ("props" in a ? a : r).props, D = _(a, rt), Y = Q.timeline({ delay: E, paused: V, repeat: B, repeatDelay: M, yoyo: F, data: "isFlip" }), W = D, j = [], G = [], q = [], H = [], $ = !0 === N ? 1 : N || 0, Z = "function" == typeof N ? N : function () { return $ }, J = r.interrupted || t.interrupted, U = Y[1 !== e ? "to" : "from"]; for (o in t.idLookup) n = t.alt[o] ? va(t, r, o) : t.idLookup[o], h = n.element, i = r.idLookup[o], !r.alt[o] || h !== i.element || !r.alt[o].isVisible && n.isVisible || (i = r.alt[o]), i ? (p = { t: h, b: i, a: n, sd: i.element === h ? 0 : n.isVisible ? 1 : -1 }, q.push(p), p.sd && (p.sd < 0 && (p.b = n, p.a = i), J && fa(p.b, R ? et[R] : nt), P && q.push(p.swap = { t: i.element, b: p.b, a: p.a, sd: -p.sd, swap: p })), h._flip = i.element._flip = tt ? tt.timeline : Y) : n.isVisible && (q.push({ t: h, b: _(n, { isVisible: 1 }), a: n, sd: 0, entering: 1 }), h._flip = tt ? tt.timeline : Y); R && (st[R] || ba(R)).forEach(function (e) { return D[e] = function (t) { return q[t].a.props[e] } }), q.finalStates = d = [], m = function run() { ea(q), za(!0); var e, t = []; for (u = 0; u < q.length; u++)p = q[u], g = p.a, v = p.b, !z || g.isDifferent(v) || p.entering ? (h = p.t, !L || p.sd < 0 || !u || (g = p.a = g.clone({ matrix: getGlobalMatrix(h, !1, !1, !0) })), v.isVisible && g.isVisible ? (p.sd < 0 ? (L && Aa(t, 1), c = new ht(h, R, r.simple), ot(c, g, O, 0, 0, c), c.matrix = getGlobalMatrix(h, !1, !1, !0), c.bounds = h.getBoundingClientRect(), c.css = p.b.css, p.a = g = c, P && (h.style.opacity = J ? v.opacity : g.opacity), T && H.push(h), L && (Aa(t, 2), t.push(h, h.getAttribute("style")))) : 0 < p.sd && P && (h.style.opacity = J ? g.opacity - v.opacity : "0"), ot(g, v, O, R), L && p.sd < 0 && t.push(h.getAttribute("style"))) : v.isVisible !== g.isVisible && (v.isVisible ? g.isVisible || (v.css = g.css, G.push(v), q.splice(u--, 1), S && L && ot(g, v, O, R)) : (g.isVisible && j.push(g), q.splice(u--, 1))), O || (h.style.maxWidth = Math.max(g.width, v.width) + "px", h.style.maxHeight = Math.max(g.height, v.height) + "px", h.style.minWidth = Math.min(g.width, v.width) + "px", h.style.minHeight = Math.min(g.height, v.height) + "px"), L && I && h.classList.add(I)) : q.splice(u--, 1), d.push(g); if (I && (e = d.map(function (t) { return t.element }), L && e.forEach(function (t) { return t.classList.remove(I) })), za(!1), O ? (D.scaleX = function (t) { return q[t].a.scaleX }, D.scaleY = function (t) { return q[t].a.scaleY }) : (D.width = function (t) { return q[t].a.width + "px" }, D.height = function (t) { return q[t].a.height + "px" }, D.autoRound = a.autoRound || !1), D.x = function (t) { return q[t].a.x + "px" }, D.y = function (t) { return q[t].a.y + "px" }, D.rotation = function (t) { return q[t].a.rotation + (N ? 360 * Z(t, f[t], f) : 0) }, D.skewX = function (t) { return q[t].a.skewX }, f = q.map(function (t) { return t.t }), !A && 0 !== A || (D.modifiers = { zIndex: function zIndex() { return A } }, D.zIndex = A, D.immediateRender = !1 !== a.immediateRender), P && (D.opacity = function (t) { return q[t].sd < 0 ? 0 : 0 < q[t].sd ? q[t].a.opacity : "+=0" }), H.length) { T = Q.utils.distribute(T); var i = f.slice(H.length); D.stagger = function (t, e) { return T(~H.indexOf(e) ? f.indexOf(q[t].swap.t) : t, e, i) } } if (it.forEach(function (t) { return a[t] && Y.eventCallback(t, a[t], a[t + "Params"]) }), k && f.length) for (o in W = _(D, rt), "scale" in k && (k.scaleX = k.scaleY = k.scale, delete k.scale), k) (s = _(k[o], at))[o] = D[o], !("duration" in s) && "duration" in D && (s.duration = D.duration), s.stagger = D.stagger, U.call(Y, f, s, 0), delete W[o]; (f.length || G.length || j.length) && (I && Y.add(function () { return X(e, I, Y._zTime < 0 ? "remove" : "add") }, 0) && !V && X(e, I, "add"), f.length && U.call(Y, f, W, 0)), sa(b, j, Y), sa(w, G, Y); var n = tt && tt.timeline; n && (n.add(Y, 0), tt._final.push(function () { return ha(q, !x) })), l = Y.duration(), Y.call(function () { var t = Y.time() >= l; t && !n && ha(q, !x), I && X(e, I, t ? "remove" : "add") }) }, C && (S = q.filter(function (t) { return !t.sd && !t.a.isVisible && t.b.isVisible }).map(function (t) { return t.a.element })), tt ? (S && (y = tt._abs).push.apply(y, ka(q, S)), tt._run.push(m)) : (S && la(ka(q, S)), m()); var K = tt ? tt.timeline : Y; return K.revert = function () { return lt(K, 1, 1) }, K } function Ea(t) { for (var e, i = t.idLookup = {}, n = t.alt = {}, r = t.elementStates, a = r.length; a--;)i[(e = r[a]).id] ? n[e.id] = e : i[e.id] = e } var I, Q, tt, r, o, O, P, l, n, c = 1, h = {}, T = 180 / Math.PI, N = Math.PI / 180, R = {}, D = {}, et = {}, it = S("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"), nt = S("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"), rt = { zIndex: 1, kill: 1, simple: 1, spin: 1, clearProps: 1, targets: 1, toggleClass: 1, onComplete: 1, onUpdate: 1, onInterrupt: 1, onStart: 1, delay: 1, repeat: 1, repeatDelay: 1, yoyo: 1, scale: 1, fade: 1, absolute: 1, props: 1, onEnter: 1, onLeave: 1, custom: 1, paused: 1, nested: 1, prune: 1, absoluteOnLeave: 1 }, at = { zIndex: 1, simple: 1, clearProps: 1, scale: 1, absolute: 1, fitChild: 1, getVars: 1, props: 1 }, st = {}, Y = "paddingTop,paddingRight,paddingBottom,paddingLeft,gridArea,transition".split(","), j = function _parseElementState(t, e, i, n) { return t instanceof ht ? t : t instanceof ut ? function _findElStateInState(t, e) { return e && t.idLookup[j(e).id] || t.elementStates[0] }(t, n) : new ht("string" == typeof t ? V(t) || console.warn(t + " not found") : t, e, i) }, ot = function _fit(t, e, i, n, r, a) { var s, o, l, u, h, p, c, f = t.element, d = t.cache, m = t.parent, g = t.x, v = t.y, y = e.width, x = e.height, b = e.scaleX, w = e.scaleY, S = e.rotation, C = e.bounds, k = a && P && P(f, "transform,width,height"), _ = t, E = e.matrix, V = E.e, B = E.f, M = t.bounds.width !== C.width || t.bounds.height !== C.height || t.scaleX !== b || t.scaleY !== w || t.rotation !== S, F = !M && t.simple && e.simple && !r; return F || !m ? (b = w = 1, S = s = 0) : (p = (h = function _getInverseGlobalMatrix(t) { var e = t._gsap || Q.core.getCache(t); return e.gmCache === Q.ticker.frame ? e.gMatrix : (e.gmCache = Q.ticker.frame, e.gMatrix = getGlobalMatrix(t, !0, !1, !0)) }(m)).clone().multiply(e.ctm ? e.matrix.clone().multiply(e.ctm) : e.matrix), S = W(Math.atan2(p.b, p.a) * T), s = W(Math.atan2(p.c, p.d) * T + S) % 360, b = Math.sqrt(Math.pow(p.a, 2) + Math.pow(p.b, 2)), w = Math.sqrt(Math.pow(p.c, 2) + Math.pow(p.d, 2)) * Math.cos(s * N), r && (r = I(r)[0], u = Q.getProperty(r), c = r.getBBox && "function" == typeof r.getBBox && r.getBBox(), _ = { scaleX: u("scaleX"), scaleY: u("scaleY"), width: c ? c.width : Math.ceil(parseFloat(u("width", "px"))), height: c ? c.height : parseFloat(u("height", "px")) }), d.rotation = S + "deg", d.skewX = s + "deg"), i ? (b *= y !== _.width && _.width ? y / _.width : 1, w *= x !== _.height && _.height ? x / _.height : 1, d.scaleX = b, d.scaleY = w) : (y = O(y * b / _.scaleX, 0), x = O(x * w / _.scaleY, 0), f.style.width = y + "px", f.style.height = x + "px"), n && pa(f, e.props), F || !m ? (g += V - t.matrix.e, v += B - t.matrix.f) : M || m !== e.parent ? (d.x = g + "px", d.y = v + "px", d.renderTransform(1, d), p = getGlobalMatrix(r || f, !1, !1, !0), o = h.apply({ x: p.e, y: p.f }), g += (l = h.apply({ x: V, y: B })).x - o.x, v += l.y - o.y) : (h.e = h.f = 0, g += (l = h.apply({ x: V - t.matrix.e, y: B - t.matrix.f })).x, v += l.y), g = O(g, .02), v = O(v, .02), !a || a instanceof ht ? (d.x = g + "px", d.y = v + "px", d.renderTransform(1, d)) : k && k.revert(), a && (a.x = g, a.y = v, a.rotation = S, a.skewX = s, i ? (a.scaleX = b, a.scaleY = w) : (a.width = y, a.height = x)), a || d }, G = [], q = "width,height,overflowX,overflowY".split(","), lt = function _killFlip(t, e, i) { if (t && t.progress() < 1 && (!t.paused() || i)) return e && (function _interrupt(t) { t.vars.onInterrupt && t.vars.onInterrupt.apply(t, t.vars.onInterruptParams || []), t.getChildren(!0, !1, !0).forEach(_interrupt) }(t), e < 2 && t.progress(1), t.kill()), !0 }, ut = ((n = FlipState.prototype).update = function update(t) { var e = this; return this.elementStates = this.targets.map(function (t) { return new ht(t, e.props, e.simple) }), Ea(this), this.interrupt(t), this.recordInlineStyles(), this }, n.clear = function clear() { return this.targets.length = this.elementStates.length = 0, Ea(this), this }, n.fit = function fit(t, e, i) { for (var n, r, a = ea(this.elementStates.slice(0), !1, !0), s = (t || this).idLookup, o = 0; o < a.length; o++)n = a[o], i && (n.matrix = getGlobalMatrix(n.element, !1, !1, !0)), (r = s[n.id]) && ot(n, r, e, !0, 0, n), n.matrix = getGlobalMatrix(n.element, !1, !1, !0); return this }, n.getProperty = function getProperty(t, e) { var i = this.getElementState(t) || R; return (e in i ? i : i.props || R)[e] }, n.add = function add(t) { for (var e, i, n, r = t.targets.length, a = this.idLookup, s = this.alt; r--;)(n = a[(i = t.elementStates[r]).id]) && (i.element === n.element || s[i.id] && s[i.id].element === i.element) ? (e = this.elementStates.indexOf(i.element === n.element ? n : s[i.id]), this.targets.splice(e, 1, t.targets[r]), this.elementStates.splice(e, 1, i)) : (this.targets.push(t.targets[r]), this.elementStates.push(i)); return t.interrupted && (this.interrupted = !0), t.simple || (this.simple = !1), Ea(this), this }, n.compare = function compare(t) { function qh(t, e, i) { return (t.isVisible !== e.isVisible ? t.isVisible ? f : d : t.isVisible ? c : p).push(i) && m.push(i) } function rh(t, e, i) { return m.indexOf(i) < 0 && qh(t, e, i) } var e, i, n, r, a, s, o, l, u = t.idLookup, h = this.idLookup, p = [], c = [], f = [], d = [], m = [], g = t.alt, v = this.alt; for (n in u) a = g[n], s = v[n], r = (e = a ? va(t, this, n) : u[n]).element, i = h[n], s ? (l = i.isVisible || !s.isVisible && r === i.element ? i : s, (o = !a || e.isVisible || a.isVisible || l.element !== a.element ? e : a).isVisible && l.isVisible && o.element !== l.element ? ((o.isDifferent(l) ? c : p).push(o.element, l.element), m.push(o.element, l.element)) : qh(o, l, o.element), a && o.element === a.element && (a = u[n]), rh(o.element !== i.element && a ? a : o, i, i.element), rh(a && a.element === s.element ? a : o, s, s.element), a && rh(a, s.element === a.element ? s : i, a.element)) : (i ? i.isDifferent(e) ? qh(e, i, r) : p.push(r) : f.push(r), a && rh(a, i, a.element)); for (n in h) u[n] || (d.push(h[n].element), v[n] && d.push(v[n].element)); return { changed: c, unchanged: p, enter: f, leave: d } }, n.recordInlineStyles = function recordInlineStyles() { for (var t = et[this.props] || nt, e = this.elementStates.length; e--;)fa(this.elementStates[e], t) }, n.interrupt = function interrupt(n) { var r = this, a = []; this.targets.forEach(function (t) { var e = t._flip, i = lt(e, n ? 0 : 1); n && i && a.indexOf(e) < 0 && e.add(function () { return r.updateVisibility() }), i && a.push(e) }), !n && a.length && this.updateVisibility(), this.interrupted || (this.interrupted = !!a.length) }, n.updateVisibility = function updateVisibility() { this.elementStates.forEach(function (t) { var e = t.element.getBoundingClientRect(); t.isVisible = !!(e.width || e.height || e.top || e.left), t.uncache = 1 }) }, n.getElementState = function getElementState(t) { return this.elementStates[this.targets.indexOf(V(t))] }, n.makeAbsolute = function makeAbsolute() { return ea(this.elementStates.slice(0), !0, !0).map(ja) }, FlipState); function FlipState(t, e, i) { if (this.props = e && e.props, this.simple = !(!e || !e.simple), i) this.targets = ra(t), this.elementStates = t, Ea(this); else { this.targets = I(t); var n = e && (!1 === e.kill || e.batch && !e.kill); tt && !n && tt._kill.push(this), this.update(n || !!tt) } } var H, ht = ((H = ElementState.prototype).isDifferent = function isDifferent(t) { var e = this.bounds, i = t.bounds; return e.top !== i.top || e.left !== i.left || e.width !== i.width || e.height !== i.height || !this.matrix.equals(t.matrix) || this.opacity !== t.opacity || this.props && t.props && JSON.stringify(this.props) !== JSON.stringify(t.props) }, H.clone = function clone(t) { return new ElementState(this, t) }, H.update = function update(e, i) { var n = this, r = n.element, a = Q.getProperty(r), s = Q.core.getCache(r), o = r.getBoundingClientRect(), l = r.getBBox && "function" == typeof r.getBBox && "svg" !== r.nodeName.toLowerCase() && r.getBBox(), h = i ? new F(1, 0, 0, 1, o.left + u(), o.top + t()) : getGlobalMatrix(r, !1, !1, !0); s.uncache = 1, n.getProp = a, n.element = r, n.id = function _getID(t) { var e = t.getAttribute("data-flip-id"); return e || t.setAttribute("data-flip-id", e = "auto-" + c++), e }(r), n.matrix = h, n.cache = s, n.bounds = o, n.isVisible = !!(o.width || o.height || o.left || o.top), n.display = a("display"), n.position = a("position"), n.parent = r.parentNode, n.x = a("x", "px"), n.y = a("y", "px"), n.scaleX = s.scaleX, n.scaleY = s.scaleY, n.rotation = a("rotation"), n.skewX = a("skewX"), n.opacity = a("opacity"), n.width = l ? l.width : O(a("width", "px"), .04), n.height = l ? l.height : O(a("height", "px"), .04), e && function _recordProps(t, e) { for (var i = Q.getProperty(t.element, null, "native"), n = t.props = {}, r = e.length; r--;)n[e[r]] = (i(e[r]) + "").trim(); n.zIndex && (n.zIndex = parseFloat(n.zIndex) || 0) }(n, st[e] || ba(e)), n.ctm = r.getCTM && "svg" === r.nodeName.toLowerCase() && z(r).inverse(), n.simple = i || 1 === W(h.a) && !W(h.b) && !W(h.c) && 1 === W(h.d), n.uncache = 0 }, ElementState); function ElementState(t, e, i) { t instanceof ElementState ? Object.assign(this, t, e || {}) : (this.element = t, this.update(e, i)) } var Z, J = ((Z = FlipAction.prototype).getStateById = function getStateById(t) { for (var e = this.states.length; e--;)if (this.states[e].idLookup[t]) return this.states[e] }, Z.kill = function kill() { this.batch.remove(this) }, FlipAction); function FlipAction(t, e) { this.vars = t, this.batch = e, this.states = [], this.timeline = e.timeline } var U, K = ((U = FlipBatch.prototype).add = function add(e) { var t = this.actions.filter(function (t) { return t.vars === e }); return t.length ? t[0] : (t = new J("function" == typeof e ? { animate: e } : e, this), this.actions.push(t), t) }, U.remove = function remove(t) { var e = this.actions.indexOf(t); return 0 <= e && this.actions.splice(e, 1), this }, U.getState = function getState(e) { var i = this, t = tt, n = r; return (tt = this).state.clear(), this._kill.length = 0, this.actions.forEach(function (t) { t.vars.getState && (t.states.length = 0, (r = t).state = t.vars.getState(t)), e && t.states.forEach(function (t) { return i.state.add(t) }) }), r = n, tt = t, this.killConflicts(), this }, U.animate = function animate() { var t, e, i = this, n = tt, r = this.timeline, a = this.actions.length; for (tt = this, r.clear(), this._abs.length = this._final.length = this._run.length = 0, this.actions.forEach(function (t) { t.vars.animate && t.vars.animate(t); var e, i, n = t.vars.onEnter, r = t.vars.onLeave, a = t.targets; a && a.length && (n || r) && (e = new ut, t.states.forEach(function (t) { return e.add(t) }), (i = e.compare(pt.getState(a))).enter.length && n && n(i.enter), i.leave.length && r && r(i.leave)) }), la(this._abs), this._run.forEach(function (t) { return t() }), e = r.duration(), t = this._final.slice(0), r.add(function () { e <= r.time() && (t.forEach(function (t) { return t() }), L(i, "onComplete")) }), tt = n; a--;)this.actions[a].vars.once && this.actions[a].kill(); return L(this, "onStart"), r.restart(), this }, U.loadState = function loadState(n) { n = n || function done() { return 0 }; var r = []; return this.actions.forEach(function (e) { if (e.vars.loadState) { var i, t = function f(t) { t && (e.targets = t), ~(i = r.indexOf(f)) && (r.splice(i, 1), r.length || n()) }; r.push(t), e.vars.loadState(t) } }), r.length || n(), this }, U.setState = function setState() { return this.actions.forEach(function (t) { return t.targets = t.vars.setState && t.vars.setState(t) }), this }, U.killConflicts = function killConflicts(e) { return this.state.interrupt(e), this._kill.forEach(function (t) { return t.interrupt(e) }), this }, U.run = function run(t, e) { var i = this; return this !== tt && (t || this.getState(e), this.loadState(function () { i._killed || (i.setState(), i.animate()) })), this }, U.clear = function clear(t) { this.state.clear(), t || (this.actions.length = 0) }, U.getStateById = function getStateById(t) { for (var e, i = this.actions.length; i--;)if (e = this.actions[i].getStateById(t)) return e; return this.state.idLookup[t] && this.state }, U.kill = function kill() { this._killed = 1, this.clear(), delete h[this.id] }, FlipBatch); function FlipBatch(t) { this.id = t, this.actions = [], this._kill = [], this._final = [], this._abs = [], this._run = [], this.data = {}, this.state = new ut, this.timeline = Q.timeline() } var pt = (Flip.getState = function getState(t, e) { var i = ua(t, e); return r && r.states.push(i), e && e.batch && Flip.batch(e.batch).state.add(i), i }, Flip.from = function from(t, e) { return "clearProps" in (e = e || {}) || (e.clearProps = !0), Ba(t, ua(e.targets || t.targets, { props: e.props || t.props, simple: e.simple, kill: !!e.kill }), e, -1) }, Flip.to = function to(t, e) { return Ba(t, ua(e.targets || t.targets, { props: e.props || t.props, simple: e.simple, kill: !!e.kill }), e, 1) }, Flip.fromTo = function fromTo(t, e, i) { return Ba(t, e, i) }, Flip.fit = function fit(t, e, i) { var n = i ? _(i, at) : {}, r = i || n, a = r.absolute, s = r.scale, o = r.getVars, l = r.props, u = r.runBackwards, h = r.onComplete, p = r.simple, c = i && i.fitChild && V(i.fitChild), f = j(e, l, p, t), d = j(t, 0, p, f), m = l ? et[l] : nt, g = Q.context(); return l && pa(n, f.props), fa(d, m), u && ("immediateRender" in n || (n.immediateRender = !0), n.onComplete = function () { ga(d), h && h.apply(this, arguments) }), a && ja(d, f), n = ot(d, f, s || c, !n.duration && l, c, n.duration || o ? n : 0), "object" == typeof i && "zIndex" in i && (n.zIndex = i.zIndex), g && !o && g.add(function () { return function () { return ga(d) } }), o ? n : n.duration ? Q.to(d.element, n) : null }, Flip.makeAbsolute = function makeAbsolute(t, e) { return (t instanceof ut ? t : new ut(t, e)).makeAbsolute() }, Flip.batch = function batch(t) { return h[t = t || "default"] || (h[t] = new K(t)) }, Flip.killFlipsOf = function killFlipsOf(t, e) { (t instanceof ut ? t.targets : I(t)).forEach(function (t) { return t && lt(t._flip, !1 !== e ? 1 : 2) }) }, Flip.isFlipping = function isFlipping(t) { var e = Flip.getByTarget(t); return !!e && e.isActive() }, Flip.getByTarget = function getByTarget(t) { return (V(t) || R)._flip }, Flip.getElementState = function getElementState(t, e) { return new ht(V(t), e) }, Flip.convertCoordinates = function convertCoordinates(t, e, i) { var n = getGlobalMatrix(e, !0, !0).multiply(getGlobalMatrix(t)); return i ? n.apply(i) : n }, Flip.register = function register(t) { if (o = "undefined" != typeof document && document.body) { Q = t, p(o), I = Q.utils.toArray, P = Q.core.getStyleSaver; var i = Q.utils.snap(.1); O = function _closestTenth(t, e) { return i(parseFloat(t) + e) } } }, Flip); function Flip() { } pt.version = "3.14.2", "undefined" != typeof window && window.gsap && window.gsap.registerPlugin(pt), e.Flip = pt, e.default = pt; if (typeof (window) === "undefined" || window !== e) { Object.defineProperty(e, "__esModule", { value: !0 }) } else { delete e.default } }); 11
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.