smart-web-ui 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/dist/assets/font/D-DIN.otf +0 -0
  2. package/dist/assets/font/PangMenZhengDaoBiaoTiTi-1.woff2 +0 -0
  3. package/dist/assets/font/PingFangSC.woff2 +0 -0
  4. package/dist/assets/font/SourceHanSansCN-Regular.woff +0 -0
  5. package/dist/assets/font/ysbth.woff +0 -0
  6. package/dist/assets/font.css +14 -0
  7. package/dist/assets/fonts/D-DIN.otf +0 -0
  8. package/dist/assets/fonts/PingFangSC.woff2 +0 -0
  9. package/dist/assets/fonts/SourceHanSansCN-Regular.woff +0 -0
  10. package/dist/assets/fonts/ysbth.woff +0 -0
  11. package/dist/assets/image/btn1.jpg +0 -0
  12. package/dist/assets/image/btn2.jpg +0 -0
  13. package/dist/assets/vue.svg +1 -0
  14. package/dist/smart-web-ui.css +1 -0
  15. package/dist/smart-web-ui.es.js +59787 -0
  16. package/dist/smart-web-ui.umd.js +429 -0
  17. package/package.json +50 -51
  18. package/dist/BuildingList.js +0 -8
  19. package/dist/CategoryPieChart.js +0 -435
  20. package/dist/ChartModel.js +0 -46
  21. package/dist/ChartTable.js +0 -162
  22. package/dist/CircularPieChart.js +0 -314
  23. package/dist/CloseButtonA.js +0 -39
  24. package/dist/ColumnDiagram.js +0 -352
  25. package/dist/DataColumnDiagram.js +0 -275
  26. package/dist/DatePicker.js +0 -142
  27. package/dist/DateTimePicker.js +0 -146
  28. package/dist/DateYearPicker.js +0 -152
  29. package/dist/DayTimerShaft.js +0 -894
  30. package/dist/DoubleColumnDiagram.js +0 -360
  31. package/dist/DoubleLineChart.js +0 -410
  32. package/dist/DoubleStraightLineChart.js +0 -405
  33. package/dist/EffectLoading.js +0 -15
  34. package/dist/GradientCircularPieChart.js +0 -372
  35. package/dist/GradientPieChart.js +0 -501
  36. package/dist/HikPlayer.js +0 -10
  37. package/dist/ImaginaryAndRealLineChart.js +0 -405
  38. package/dist/InfiniteScrollingTable.js +0 -2150
  39. package/dist/JessibucaPlayer.js +0 -181
  40. package/dist/LineChart.js +0 -279
  41. package/dist/MenuOne.js +0 -75
  42. package/dist/MultiDataColumnDiagram.js +0 -398
  43. package/dist/MultigraphChart.js +0 -392
  44. package/dist/MultitermBorderColumnDiagram.js +0 -384
  45. package/dist/MultitermColumnDiagram.js +0 -359
  46. package/dist/MyButton.js +0 -8
  47. package/dist/MyInput.js +0 -42
  48. package/dist/OnlinePieChart.js +0 -365
  49. package/dist/PantiltControl.js +0 -147
  50. package/dist/PictorialChart.js +0 -205
  51. package/dist/PieChart.js +0 -252
  52. package/dist/PieChartLegendCustom.js +0 -251
  53. package/dist/PieChartOne.js +0 -438
  54. package/dist/PopupFrame.js +0 -131
  55. package/dist/RangTimePicker.js +0 -160
  56. package/dist/RangePicker.js +0 -156
  57. package/dist/SingleLineChart.js +0 -405
  58. package/dist/SplitPie.js +0 -242
  59. package/dist/SplitPieChart.js +0 -294
  60. package/dist/StacketColumnDiagram.js +0 -345
  61. package/dist/TechnologyBlueFrameworkOne.js +0 -183
  62. package/dist/TimerShaft.js +0 -229
  63. package/dist/ToroidalPieChart.js +0 -318
  64. package/dist/WordCloudOne.js +0 -138
  65. package/dist/WordCloudTwo.js +0 -157
  66. package/dist/chunks/BuildingList-CU-EXKgo.js +0 -126
  67. package/dist/chunks/HikPlayer-DKfQRkh6.js +0 -422
  68. package/dist/chunks/MyButton-DvqgvXGG.js +0 -36
  69. package/dist/chunks/_commonjsHelpers-C6fGbg64.js +0 -6
  70. package/dist/chunks/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  71. package/dist/chunks/dayjs.min-CQFNnJKC.js +0 -285
  72. package/dist/chunks/debounce-DmrysiyS.js +0 -84
  73. package/dist/chunks/index-CBkwld9S.js +0 -43886
  74. package/dist/chunks/index-CYrEZgNC.js +0 -334
  75. package/dist/chunks/isObject-Bhos3v62.js +0 -33
  76. package/dist/chunks/merge-H4ZkNr1T.js +0 -487
  77. package/dist/chunks/wordCloud-uiqgdIRk.js +0 -737
  78. package/dist/chunks/zh_CN-BUEgxmeh.js +0 -79
  79. package/dist/css/BuildingList-Bdnl0gBJ.css +0 -1
  80. package/dist/css/CategoryPieChart-DBMhOWSp.css +0 -1
  81. package/dist/css/ChartModel-Dv4h1lb5.css +0 -1
  82. package/dist/css/ChartTable-Cr0oTeRE.css +0 -1
  83. package/dist/css/CircularPieChart-C3BGd8fm.css +0 -1
  84. package/dist/css/CloseButtonA-DY2NFd49.css +0 -1
  85. package/dist/css/ColumnDiagram-Dis9ikD8.css +0 -1
  86. package/dist/css/DataColumnDiagram-BT2JWzYV.css +0 -1
  87. package/dist/css/DatePicker-BcnVF2a0.css +0 -1
  88. package/dist/css/DateTimePicker-ogqIcJbR.css +0 -1
  89. package/dist/css/DateYearPicker-Cxi6LOU5.css +0 -1
  90. package/dist/css/DayTimerShaft-CgF_vvOC.css +0 -1
  91. package/dist/css/DoubleColumnDiagram-BxutsIuM.css +0 -1
  92. package/dist/css/DoubleLineChart-BDAn7Vm_.css +0 -1
  93. package/dist/css/DoubleStraightLineChart-DIRVxSDN.css +0 -1
  94. package/dist/css/EffectLoading-Ctm_V9PA.css +0 -1
  95. package/dist/css/GradientCircularPieChart-DwvudWRO.css +0 -1
  96. package/dist/css/GradientPieChart-BIbCGRqo.css +0 -1
  97. package/dist/css/HikPlayer-CZ3Esf6X.css +0 -1
  98. package/dist/css/ImaginaryAndRealLineChart-DM6nwp5j.css +0 -1
  99. package/dist/css/InfiniteScrollingTable-DI-gbfBL.css +0 -1
  100. package/dist/css/JessibucaPlayer-DYHP4jB_.css +0 -1
  101. package/dist/css/LineChart-BMK43A6-.css +0 -1
  102. package/dist/css/MenuOne-DZagmMAX.css +0 -1
  103. package/dist/css/MultiDataColumnDiagram-D1yx69tf.css +0 -1
  104. package/dist/css/MultigraphChart-C4dh2No_.css +0 -1
  105. package/dist/css/MultitermBorderColumnDiagram-DAn4G2De.css +0 -1
  106. package/dist/css/MultitermColumnDiagram-CF0BvPJO.css +0 -1
  107. package/dist/css/MyButton-CE8oLA-0.css +0 -1
  108. package/dist/css/MyInput-CauB72eE.css +0 -1
  109. package/dist/css/OnlinePieChart-DjGjF_9i.css +0 -1
  110. package/dist/css/PantiltControl-DS0BWsLg.css +0 -1
  111. package/dist/css/PictorialChart-D_NmyxMl.css +0 -1
  112. package/dist/css/PieChart-ijJKQrDc.css +0 -1
  113. package/dist/css/PieChartLegendCustom-BIQtqA8m.css +0 -1
  114. package/dist/css/PieChartOne-D1gY-q_Q.css +0 -1
  115. package/dist/css/PopupFrame-BuPG741n.css +0 -1
  116. package/dist/css/RangTimePicker-BhS_Fhaj.css +0 -1
  117. package/dist/css/RangePicker-Cmdpil97.css +0 -1
  118. package/dist/css/SingleLineChart-YXl29ldj.css +0 -1
  119. package/dist/css/SplitPie-vGvTEPG-.css +0 -1
  120. package/dist/css/SplitPieChart-yTrBBQxd.css +0 -1
  121. package/dist/css/StacketColumnDiagram-BvMIqlC_.css +0 -1
  122. package/dist/css/TechnologyBlueFrameworkOne-CMF1mCbl.css +0 -1
  123. package/dist/css/TimerShaft-LaGF129n.css +0 -1
  124. package/dist/css/ToroidalPieChart-CcfTDUUR.css +0 -1
  125. package/dist/css/WordCloudOne-CsMA5RxS.css +0 -1
  126. package/dist/css/WordCloudTwo-LSvh51aP.css +0 -1
  127. package/dist/css/index-jBItPHyv.css +0 -1
  128. package/dist/favicon.svg +0 -1
  129. package/dist/index.js +0 -151
@@ -1,2150 +0,0 @@
1
- import { ref as pe, computed as xi, watchEffect as Br, nextTick as Vr, onMounted as Ur, openBlock as Ti, createElementBlock as bi, createElementVNode as De, normalizeClass as Yr, renderSlot as wi, createCommentVNode as Xr } from "vue";
2
- import { u as Re, a as qr } from "./chunks/index-CYrEZgNC.js";
3
- function mt(f) {
4
- if (f === void 0)
5
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6
- return f;
7
- }
8
- function Xi(f, t) {
9
- f.prototype = Object.create(t.prototype), f.prototype.constructor = f, f.__proto__ = t;
10
- }
11
- /*!
12
- * GSAP 3.15.0
13
- * https://gsap.com
14
- *
15
- * @license Copyright 2008-2026, GreenSock. All rights reserved.
16
- * Subject to the terms at https://gsap.com/standard-license
17
- * @author: Jack Doyle, jack@greensock.com
18
- */
19
- var nt = {
20
- autoSleep: 120,
21
- force3D: "auto",
22
- nullTargetWarn: 1,
23
- units: {
24
- lineHeight: ""
25
- }
26
- }, ae = {
27
- duration: 0.5,
28
- overwrite: !1,
29
- delay: 0
30
- }, ei, W, R, ft = 1e8, M = 1 / ft, Ve = Math.PI * 2, Wr = Ve / 4, Gr = 0, qi = Math.sqrt, $r = Math.cos, Hr = Math.sin, q = function(t) {
31
- return typeof t == "string";
32
- }, L = function(t) {
33
- return typeof t == "function";
34
- }, yt = function(t) {
35
- return typeof t == "number";
36
- }, ii = function(t) {
37
- return typeof t > "u";
38
- }, dt = function(t) {
39
- return typeof t == "object";
40
- }, K = function(t) {
41
- return t !== !1;
42
- }, ri = function() {
43
- return typeof window < "u";
44
- }, me = function(t) {
45
- return L(t) || q(t);
46
- }, Wi = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
47
- }, $ = Array.isArray, Kr = /random\([^)]+\)/g, Qr = /,\s*/g, Si = /(?:-?\.?\d|\.)+/gi, Gi = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, Yt = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Ae = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, $i = /[+-]=-?[.\d]+/, Zr = /[^,'"\[\]\s]+/gi, jr = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, E, ht, Ue, ni, st = {}, xe = {}, Hi, Ki = function(t) {
48
- return (xe = $t(t, st)) && J;
49
- }, si = function(t, e) {
50
- return console.warn("Invalid property", t, "set to", e, "Missing plugin? gsap.registerPlugin()");
51
- }, oe = function(t, e) {
52
- return !e && console.warn(t);
53
- }, Qi = function(t, e) {
54
- return t && (st[t] = e) && xe && (xe[t] = e) || st;
55
- }, ue = function() {
56
- return 0;
57
- }, Jr = {
58
- suppressEvents: !0,
59
- isStart: !0,
60
- kill: !1
61
- }, ge = {
62
- suppressEvents: !0,
63
- kill: !1
64
- }, tn = {
65
- suppressEvents: !0
66
- }, ai = {}, wt = [], Ye = {}, Zi, tt = {}, Ee = {}, Pi = 30, ye = [], oi = "", ui = function(t) {
67
- var e = t[0], i, r;
68
- if (dt(e) || L(e) || (t = [t]), !(i = (e._gsap || {}).harness)) {
69
- for (r = ye.length; r-- && !ye[r].targetTest(e); )
70
- ;
71
- i = ye[r];
72
- }
73
- for (r = t.length; r--; )
74
- t[r] && (t[r]._gsap || (t[r]._gsap = new vr(t[r], i))) || t.splice(r, 1);
75
- return t;
76
- }, Ft = function(t) {
77
- return t._gsap || ui(lt(t))[0]._gsap;
78
- }, ji = function(t, e, i) {
79
- return (i = t[e]) && L(i) ? t[e]() : ii(i) && t.getAttribute && t.getAttribute(e) || i;
80
- }, Q = function(t, e) {
81
- return (t = t.split(",")).forEach(e) || t;
82
- }, V = function(t) {
83
- return Math.round(t * 1e5) / 1e5 || 0;
84
- }, A = function(t) {
85
- return Math.round(t * 1e7) / 1e7 || 0;
86
- }, qt = function(t, e) {
87
- var i = e.charAt(0), r = parseFloat(e.substr(2));
88
- return t = parseFloat(t), i === "+" ? t + r : i === "-" ? t - r : i === "*" ? t * r : t / r;
89
- }, en = function(t, e) {
90
- for (var i = e.length, r = 0; t.indexOf(e[r]) < 0 && ++r < i; )
91
- ;
92
- return r < i;
93
- }, Te = function() {
94
- var t = wt.length, e = wt.slice(0), i, r;
95
- for (Ye = {}, wt.length = 0, i = 0; i < t; i++)
96
- r = e[i], r && r._lazy && (r.render(r._lazy[0], r._lazy[1], !0)._lazy = 0);
97
- }, fi = function(t) {
98
- return !!(t._initted || t._startAt || t.add);
99
- }, Ji = function(t, e, i, r) {
100
- wt.length && !W && Te(), t.render(e, i, !!(W && e < 0 && fi(t))), wt.length && !W && Te();
101
- }, tr = function(t) {
102
- var e = parseFloat(t);
103
- return (e || e === 0) && (t + "").match(Zr).length < 2 ? e : q(t) ? t.trim() : t;
104
- }, er = function(t) {
105
- return t;
106
- }, at = function(t, e) {
107
- for (var i in e)
108
- i in t || (t[i] = e[i]);
109
- return t;
110
- }, rn = function(t) {
111
- return function(e, i) {
112
- for (var r in i)
113
- r in e || r === "duration" && t || r === "ease" || (e[r] = i[r]);
114
- };
115
- }, $t = function(t, e) {
116
- for (var i in e)
117
- t[i] = e[i];
118
- return t;
119
- }, Oi = function f(t, e) {
120
- for (var i in e)
121
- i !== "__proto__" && i !== "constructor" && i !== "prototype" && (t[i] = dt(e[i]) ? f(t[i] || (t[i] = {}), e[i]) : e[i]);
122
- return t;
123
- }, be = function(t, e) {
124
- var i = {}, r;
125
- for (r in t)
126
- r in e || (i[r] = t[r]);
127
- return i;
128
- }, re = function(t) {
129
- var e = t.parent || E, i = t.keyframes ? rn($(t.keyframes)) : at;
130
- if (K(t.inherit))
131
- for (; e; )
132
- i(t, e.vars.defaults), e = e.parent || e._dp;
133
- return t;
134
- }, nn = function(t, e) {
135
- for (var i = t.length, r = i === e.length; r && i-- && t[i] === e[i]; )
136
- ;
137
- return i < 0;
138
- }, ir = function(t, e, i, r, n) {
139
- var s = t[r], a;
140
- if (n)
141
- for (a = e[n]; s && s[n] > a; )
142
- s = s._prev;
143
- return s ? (e._next = s._next, s._next = e) : (e._next = t[i], t[i] = e), e._next ? e._next._prev = e : t[r] = e, e._prev = s, e.parent = e._dp = t, e;
144
- }, ke = function(t, e, i, r) {
145
- i === void 0 && (i = "_first"), r === void 0 && (r = "_last");
146
- var n = e._prev, s = e._next;
147
- 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;
148
- }, Pt = function(t, e) {
149
- t.parent && (!e || t.parent.autoRemoveChildren) && t.parent.remove && t.parent.remove(t), t._act = 0;
150
- }, Nt = function(t, e) {
151
- if (t && (!e || e._end > t._dur || e._start < 0))
152
- for (var i = t; i; )
153
- i._dirty = 1, i = i.parent;
154
- return t;
155
- }, sn = function(t) {
156
- for (var e = t.parent; e && e.parent; )
157
- e._dirty = 1, e.totalDuration(), e = e.parent;
158
- return t;
159
- }, Xe = function(t, e, i, r) {
160
- return t._startAt && (W ? t._startAt.revert(ge) : t.vars.immediateRender && !t.vars.autoRevert || t._startAt.render(e, !0, r));
161
- }, an = function f(t) {
162
- return !t || t._ts && f(t.parent);
163
- }, ki = function(t) {
164
- return t._repeat ? Ht(t._tTime, t = t.duration() + t._rDelay) * t : 0;
165
- }, Ht = function(t, e) {
166
- var i = Math.floor(t = A(t / e));
167
- return t && i === t ? i - 1 : i;
168
- }, we = function(t, e) {
169
- return (t - e._start) * e._ts + (e._ts >= 0 ? 0 : e._dirty ? e.totalDuration() : e._tDur);
170
- }, Ce = function(t) {
171
- return t._end = A(t._start + (t._tDur / Math.abs(t._ts || t._rts || M) || 0));
172
- }, Me = function(t, e) {
173
- var i = t._dp;
174
- return i && i.smoothChildTiming && t._ts && (t._start = A(i._time - (t._ts > 0 ? e / t._ts : ((t._dirty ? t.totalDuration() : t._tDur) - e) / -t._ts)), Ce(t), i._dirty || Nt(i, t)), t;
175
- }, rr = function(t, e) {
176
- var i;
177
- if ((e._time || !e._dur && e._initted || e._start < t._time && (e._dur || !e.add)) && (i = we(t.rawTime(), e), (!e._dur || de(0, e.totalDuration(), i) - e._tTime > M) && e.render(i, !0)), Nt(t, e)._dp && t._initted && t._time >= t._dur && t._ts) {
178
- if (t._dur < t.duration())
179
- for (i = t; i._dp; )
180
- i.rawTime() >= 0 && i.totalTime(i._tTime), i = i._dp;
181
- t._zTime = -M;
182
- }
183
- }, _t = function(t, e, i, r) {
184
- return e.parent && Pt(e), e._start = A((yt(i) ? i : i || t !== E ? ut(t, i, e) : t._time) + e._delay), e._end = A(e._start + (e.totalDuration() / Math.abs(e.timeScale()) || 0)), ir(t, e, "_first", "_last", t._sort ? "_start" : 0), qe(e) || (t._recent = e), r || rr(t, e), t._ts < 0 && Me(t, t._tTime), t;
185
- }, nr = function(t, e) {
186
- return (st.ScrollTrigger || si("scrollTrigger", e)) && st.ScrollTrigger.create(e, t);
187
- }, sr = function(t, e, i, r, n) {
188
- if (hi(t, e, n), !t._initted)
189
- return 1;
190
- if (!i && t._pt && !W && (t._dur && t.vars.lazy !== !1 || !t._dur && t.vars.lazy) && Zi !== et.frame)
191
- return wt.push(t), t._lazy = [n, r], 1;
192
- }, on = function f(t) {
193
- var e = t.parent;
194
- return e && e._ts && e._initted && !e._lock && (e.rawTime() < 0 || f(e));
195
- }, qe = function(t) {
196
- var e = t.data;
197
- return e === "isFromStart" || e === "isStart";
198
- }, un = function(t, e, i, r) {
199
- var n = t.ratio, s = e < 0 || !e && (!t._start && on(t) && !(!t._initted && qe(t)) || (t._ts < 0 || t._dp._ts < 0) && !qe(t)) ? 0 : 1, a = t._rDelay, o = 0, u, l, _;
200
- if (a && t._repeat && (o = de(0, t._tDur, e), l = Ht(o, a), t._yoyo && l & 1 && (s = 1 - s), l !== Ht(t._tTime, a) && (n = 1 - s, t.vars.repeatRefresh && t._initted && t.invalidate())), s !== n || W || r || t._zTime === M || !e && t._zTime) {
201
- if (!t._initted && sr(t, e, r, i, o))
202
- return;
203
- for (_ = t._zTime, t._zTime = e || (i ? M : 0), i || (i = e && !_), t.ratio = s, t._from && (s = 1 - s), t._time = 0, t._tTime = o, u = t._pt; u; )
204
- u.r(s, u.d), u = u._next;
205
- e < 0 && Xe(t, e, i, !0), t._onUpdate && !i && it(t, "onUpdate"), o && t._repeat && !i && t.parent && it(t, "onRepeat"), (e >= t._tDur || e < 0) && t.ratio === s && (s && Pt(t, 1), !i && !W && (it(t, s ? "onComplete" : "onReverseComplete", !0), t._prom && t._prom()));
206
- } else t._zTime || (t._zTime = e);
207
- }, fn = function(t, e, i) {
208
- var r;
209
- if (i > e)
210
- for (r = t._first; r && r._start <= i; ) {
211
- if (r.data === "isPause" && r._start > e)
212
- return r;
213
- r = r._next;
214
- }
215
- else
216
- for (r = t._last; r && r._start >= i; ) {
217
- if (r.data === "isPause" && r._start < e)
218
- return r;
219
- r = r._prev;
220
- }
221
- }, Kt = function(t, e, i, r) {
222
- var n = t._repeat, s = A(e) || 0, a = t._tTime / t._tDur;
223
- return a && !r && (t._time *= s / t._dur), t._dur = s, t._tDur = n ? n < 0 ? 1e10 : A(s * (n + 1) + t._rDelay * n) : s, a > 0 && !r && Me(t, t._tTime = t._tDur * a), t.parent && Ce(t), i || Nt(t.parent, t), t;
224
- }, Ci = function(t) {
225
- return t instanceof H ? Nt(t) : Kt(t, t._dur);
226
- }, ln = {
227
- _start: 0,
228
- endTime: ue,
229
- totalDuration: ue
230
- }, ut = function f(t, e, i) {
231
- var r = t.labels, n = t._recent || ln, s = t.duration() >= ft ? n.endTime(!1) : t._dur, a, o, u;
232
- return q(e) && (isNaN(e) || e in r) ? (o = e.charAt(0), u = e.substr(-1) === "%", a = e.indexOf("="), o === "<" || o === ">" ? (a >= 0 && (e = e.replace(/=/, "")), (o === "<" ? 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]) : (o = parseFloat(e.charAt(a - 1) + e.substr(a + 1)), u && i && (o = o / 100 * ($(i) ? i[0] : i).totalDuration()), a > 1 ? f(t, e.substr(0, a - 1), i) + o : s + o)) : e == null ? s : +e;
233
- }, ne = function(t, e, i) {
234
- var r = yt(e[1]), n = (r ? 2 : 1) + (t < 2 ? 0 : 1), s = e[n], a, o;
235
- if (r && (s.duration = e[1]), s.parent = i, t) {
236
- for (a = s, o = i; o && !("immediateRender" in a); )
237
- a = o.vars.defaults || {}, o = K(o.vars.inherit) && o.parent;
238
- s.immediateRender = K(a.immediateRender), t < 2 ? s.runBackwards = 1 : s.startAt = e[n - 1];
239
- }
240
- return new U(e[0], s, e[n + 1]);
241
- }, Ct = function(t, e) {
242
- return t || t === 0 ? e(t) : e;
243
- }, de = function(t, e, i) {
244
- return i < t ? t : i > e ? e : i;
245
- }, G = function(t, e) {
246
- return !q(t) || !(e = jr.exec(t)) ? "" : e[1];
247
- }, hn = function(t, e, i) {
248
- return Ct(i, function(r) {
249
- return de(t, e, r);
250
- });
251
- }, We = [].slice, ar = function(t, e) {
252
- return t && dt(t) && "length" in t && (!e && !t.length || t.length - 1 in t && dt(t[0])) && !t.nodeType && t !== ht;
253
- }, _n = function(t, e, i) {
254
- return i === void 0 && (i = []), t.forEach(function(r) {
255
- var n;
256
- return q(r) && !e || ar(r, 1) ? (n = i).push.apply(n, lt(r)) : i.push(r);
257
- }) || i;
258
- }, lt = function(t, e, i) {
259
- return R && !e && R.selector ? R.selector(t) : q(t) && !i && (Ue || !Qt()) ? We.call((e || ni).querySelectorAll(t), 0) : $(t) ? _n(t, i) : ar(t) ? We.call(t, 0) : t ? [t] : [];
260
- }, Ge = function(t) {
261
- return t = lt(t)[0] || oe("Invalid scope") || {}, function(e) {
262
- var i = t.current || t.nativeElement || t;
263
- return lt(e, i.querySelectorAll ? i : i === t ? oe("Invalid scope") || ni.createElement("div") : t);
264
- };
265
- }, or = function(t) {
266
- return t.sort(function() {
267
- return 0.5 - Math.random();
268
- });
269
- }, ur = function(t) {
270
- if (L(t))
271
- return t;
272
- var e = dt(t) ? t : {
273
- each: t
274
- }, i = Lt(e.ease), r = e.from || 0, n = parseFloat(e.base) || 0, s = {}, a = r > 0 && r < 1, o = isNaN(r) || a, u = e.axis, l = r, _ = r;
275
- return q(r) ? l = _ = {
276
- center: 0.5,
277
- edges: 0.5,
278
- end: 1
279
- }[r] || 0 : !a && o && (l = r[0], _ = r[1]), function(c, d, p) {
280
- var h = (p || e).length, m = s[h], v, g, x, T, y, P, b, S, w;
281
- if (!m) {
282
- if (w = e.grid === "auto" ? 0 : (e.grid || [1, ft])[1], !w) {
283
- for (b = -ft; b < (b = p[w++].getBoundingClientRect().left) && w < h; )
284
- ;
285
- w < h && w--;
286
- }
287
- for (m = s[h] = [], v = o ? Math.min(w, h) * l - 0.5 : r % w, g = w === ft ? 0 : o ? h * _ / w - 0.5 : r / w | 0, b = 0, S = ft, P = 0; P < h; P++)
288
- x = P % w - v, T = g - (P / w | 0), m[P] = y = u ? Math.abs(u === "y" ? T : x) : qi(x * x + T * T), y > b && (b = y), y < S && (S = y);
289
- r === "random" && or(m), m.max = b - S, m.min = S, m.v = h = (parseFloat(e.amount) || parseFloat(e.each) * (w > h ? h - 1 : u ? u === "y" ? h / w : w : Math.max(w, h / w)) || 0) * (r === "edges" ? -1 : 1), m.b = h < 0 ? n - h : n, m.u = G(e.amount || e.each) || 0, i = i && h < 0 ? Pn(i) : i;
290
- }
291
- return h = (m[c] - m.min) / m.max || 0, A(m.b + (i ? i(h) : h) * m.v) + m.u;
292
- };
293
- }, $e = function(t) {
294
- var e = Math.pow(10, ((t + "").split(".")[1] || "").length);
295
- return function(i) {
296
- var r = A(Math.round(parseFloat(i) / t) * t * e);
297
- return (r - r % 1) / e + (yt(i) ? 0 : G(i));
298
- };
299
- }, fr = function(t, e) {
300
- var i = $(t), r, n;
301
- return !i && dt(t) && (r = i = t.radius || ft, t.values ? (t = lt(t.values), (n = !yt(t[0])) && (r *= r)) : t = $e(t.increment)), Ct(e, i ? L(t) ? function(s) {
302
- return n = t(s), Math.abs(n - s) <= r ? n : s;
303
- } : function(s) {
304
- for (var a = parseFloat(n ? s.x : s), o = parseFloat(n ? s.y : 0), u = ft, l = 0, _ = t.length, c, d; _--; )
305
- n ? (c = t[_].x - a, d = t[_].y - o, c = c * c + d * d) : c = Math.abs(t[_] - a), c < u && (u = c, l = _);
306
- return l = !r || u <= r ? t[l] : s, n || l === s || yt(s) ? l : l + G(s);
307
- } : $e(t));
308
- }, lr = function(t, e, i, r) {
309
- return Ct($(t) ? !e : i === !0 ? !!(i = 0) : !r, function() {
310
- return $(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;
311
- });
312
- }, cn = function() {
313
- for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
314
- e[i] = arguments[i];
315
- return function(r) {
316
- return e.reduce(function(n, s) {
317
- return s(n);
318
- }, r);
319
- };
320
- }, dn = function(t, e) {
321
- return function(i) {
322
- return t(parseFloat(i)) + (e || G(i));
323
- };
324
- }, pn = function(t, e, i) {
325
- return _r(t, e, 0, 1, i);
326
- }, hr = function(t, e, i) {
327
- return Ct(i, function(r) {
328
- return t[~~e(r)];
329
- });
330
- }, mn = function f(t, e, i) {
331
- var r = e - t;
332
- return $(t) ? hr(t, f(0, t.length), e) : Ct(i, function(n) {
333
- return (r + (n - t) % r) % r + t;
334
- });
335
- }, gn = function f(t, e, i) {
336
- var r = e - t, n = r * 2;
337
- return $(t) ? hr(t, f(0, t.length - 1), e) : Ct(i, function(s) {
338
- return s = (n + (s - t) % n) % n || 0, t + (s > r ? n - s : s);
339
- });
340
- }, fe = function(t) {
341
- return t.replace(Kr, function(e) {
342
- var i = e.indexOf("[") + 1, r = e.substring(i || 7, i ? e.indexOf("]") : e.length - 1).split(Qr);
343
- return lr(i ? r : +r[0], i ? 0 : +r[1], +r[2] || 1e-5);
344
- });
345
- }, _r = function(t, e, i, r, n) {
346
- var s = e - t, a = r - i;
347
- return Ct(n, function(o) {
348
- return i + ((o - t) / s * a || 0);
349
- });
350
- }, yn = function f(t, e, i, r) {
351
- var n = isNaN(t + e) ? 0 : function(d) {
352
- return (1 - d) * t + d * e;
353
- };
354
- if (!n) {
355
- var s = q(t), a = {}, o, u, l, _, c;
356
- if (i === !0 && (r = 1) && (i = null), s)
357
- t = {
358
- p: t
359
- }, e = {
360
- p: e
361
- };
362
- else if ($(t) && !$(e)) {
363
- for (l = [], _ = t.length, c = _ - 2, u = 1; u < _; u++)
364
- l.push(f(t[u - 1], t[u]));
365
- _--, n = function(p) {
366
- p *= _;
367
- var h = Math.min(c, ~~p);
368
- return l[h](p - h);
369
- }, i = e;
370
- } else r || (t = $t($(t) ? [] : {}, t));
371
- if (!l) {
372
- for (o in e)
373
- li.call(a, t, o, "get", e[o]);
374
- n = function(p) {
375
- return di(p, a) || (s ? t.p : t);
376
- };
377
- }
378
- }
379
- return Ct(i, n);
380
- }, Mi = function(t, e, i) {
381
- var r = t.labels, n = ft, s, a, o;
382
- for (s in r)
383
- a = r[s] - e, a < 0 == !!i && a && n > (a = Math.abs(a)) && (o = s, n = a);
384
- return o;
385
- }, it = function(t, e, i) {
386
- var r = t.vars, n = r[e], s = R, a = t._ctx, o, u, l;
387
- if (n)
388
- return o = r[e + "Params"], u = r.callbackScope || t, i && wt.length && Te(), a && (R = a), l = o ? n.apply(u, o) : n.call(u), R = s, l;
389
- }, ee = function(t) {
390
- return Pt(t), t.scrollTrigger && t.scrollTrigger.kill(!!W), t.progress() < 1 && it(t, "onInterrupt"), t;
391
- }, Xt, cr = [], dr = function(t) {
392
- if (t)
393
- if (t = !t.name && t.default || t, ri() || t.headless) {
394
- var e = t.name, i = L(t), r = e && !i && t.init ? function() {
395
- this._props = [];
396
- } : t, n = {
397
- init: ue,
398
- render: di,
399
- add: li,
400
- kill: Fn,
401
- modifier: zn,
402
- rawVars: 0
403
- }, s = {
404
- targetTest: 0,
405
- get: 0,
406
- getSetter: ci,
407
- aliases: {},
408
- register: 0
409
- };
410
- if (Qt(), t !== r) {
411
- if (tt[e])
412
- return;
413
- at(r, at(be(t, n), s)), $t(r.prototype, $t(n, be(t, s))), tt[r.prop = e] = r, t.targetTest && (ye.push(r), ai[e] = 1), e = (e === "css" ? "CSS" : e.charAt(0).toUpperCase() + e.substr(1)) + "Plugin";
414
- }
415
- Qi(e, r), t.register && t.register(J, r, Z);
416
- } else
417
- cr.push(t);
418
- }, C = 255, ie = {
419
- aqua: [0, C, C],
420
- lime: [0, C, 0],
421
- silver: [192, 192, 192],
422
- black: [0, 0, 0],
423
- maroon: [128, 0, 0],
424
- teal: [0, 128, 128],
425
- blue: [0, 0, C],
426
- navy: [0, 0, 128],
427
- white: [C, C, C],
428
- olive: [128, 128, 0],
429
- yellow: [C, C, 0],
430
- orange: [C, 165, 0],
431
- gray: [128, 128, 128],
432
- purple: [128, 0, 128],
433
- green: [0, 128, 0],
434
- red: [C, 0, 0],
435
- pink: [C, 192, 203],
436
- cyan: [0, C, C],
437
- transparent: [C, C, C, 0]
438
- }, ze = function(t, e, i) {
439
- 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) * C + 0.5 | 0;
440
- }, pr = function(t, e, i) {
441
- var r = t ? yt(t) ? [t >> 16, t >> 8 & C, t & C] : 0 : ie.black, n, s, a, o, u, l, _, c, d, p;
442
- if (!r) {
443
- if (t.substr(-1) === "," && (t = t.substr(0, t.length - 1)), ie[t])
444
- r = ie[t];
445
- else if (t.charAt(0) === "#") {
446
- 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)
447
- return r = parseInt(t.substr(1, 6), 16), [r >> 16, r >> 8 & C, r & C, parseInt(t.substr(7), 16) / 255];
448
- t = parseInt(t.substr(1), 16), r = [t >> 16, t >> 8 & C, t & C];
449
- } else if (t.substr(0, 3) === "hsl") {
450
- if (r = p = t.match(Si), !e)
451
- o = +r[0] % 360 / 360, u = +r[1] / 100, l = +r[2] / 100, s = l <= 0.5 ? l * (u + 1) : l + u - l * u, n = l * 2 - s, r.length > 3 && (r[3] *= 1), r[0] = ze(o + 1 / 3, n, s), r[1] = ze(o, n, s), r[2] = ze(o - 1 / 3, n, s);
452
- else if (~t.indexOf("="))
453
- return r = t.match(Gi), i && r.length < 4 && (r[3] = 1), r;
454
- } else
455
- r = t.match(Si) || ie.transparent;
456
- r = r.map(Number);
457
- }
458
- return e && !p && (n = r[0] / C, s = r[1] / C, a = r[2] / C, _ = Math.max(n, s, a), c = Math.min(n, s, a), l = (_ + c) / 2, _ === c ? o = u = 0 : (d = _ - c, u = l > 0.5 ? d / (2 - _ - c) : d / (_ + c), o = _ === n ? (s - a) / d + (s < a ? 6 : 0) : _ === s ? (a - n) / d + 2 : (n - s) / d + 4, o *= 60), r[0] = ~~(o + 0.5), r[1] = ~~(u * 100 + 0.5), r[2] = ~~(l * 100 + 0.5)), i && r.length < 4 && (r[3] = 1), r;
459
- }, mr = function(t) {
460
- var e = [], i = [], r = -1;
461
- return t.split(St).forEach(function(n) {
462
- var s = n.match(Yt) || [];
463
- e.push.apply(e, s), i.push(r += s.length + 1);
464
- }), e.c = i, e;
465
- }, Di = function(t, e, i) {
466
- var r = "", n = (t + r).match(St), s = e ? "hsla(" : "rgba(", a = 0, o, u, l, _;
467
- if (!n)
468
- return t;
469
- if (n = n.map(function(c) {
470
- return (c = pr(c, e, 1)) && s + (e ? c[0] + "," + c[1] + "%," + c[2] + "%," + c[3] : c.join(",")) + ")";
471
- }), i && (l = mr(t), o = i.c, o.join(r) !== l.c.join(r)))
472
- for (u = t.replace(St, "1").split(Yt), _ = u.length - 1; a < _; a++)
473
- r += u[a] + (~o.indexOf(a) ? n.shift() || s + "0,0,0,0)" : (l.length ? l : n.length ? n : i).shift());
474
- if (!u)
475
- for (u = t.split(St), _ = u.length - 1; a < _; a++)
476
- r += u[a] + n[a];
477
- return r + u[_];
478
- }, St = function() {
479
- var f = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b", t;
480
- for (t in ie)
481
- f += "|" + t + "\\b";
482
- return new RegExp(f + ")", "gi");
483
- }(), vn = /hsl[a]?\(/, gr = function(t) {
484
- var e = t.join(" "), i;
485
- if (St.lastIndex = 0, St.test(e))
486
- return i = vn.test(e), t[1] = Di(t[1], i), t[0] = Di(t[0], i, mr(t[1])), !0;
487
- }, le, et = function() {
488
- var f = Date.now, t = 500, e = 33, i = f(), r = i, n = 1e3 / 240, s = n, a = [], o, u, l, _, c, d, p = function h(m) {
489
- var v = f() - r, g = m === !0, x, T, y, P;
490
- if ((v > t || v < 0) && (i += v - e), r += v, y = r - i, x = y - s, (x > 0 || g) && (P = ++_.frame, c = y - _.time * 1e3, _.time = y = y / 1e3, s += x + (x >= n ? 4 : n - x), T = 1), g || (o = u(h)), T)
491
- for (d = 0; d < a.length; d++)
492
- a[d](y, c, P, m);
493
- };
494
- return _ = {
495
- time: 0,
496
- frame: 0,
497
- tick: function() {
498
- p(!0);
499
- },
500
- deltaRatio: function(m) {
501
- return c / (1e3 / (m || 60));
502
- },
503
- wake: function() {
504
- Hi && (!Ue && ri() && (ht = Ue = window, ni = ht.document || {}, st.gsap = J, (ht.gsapVersions || (ht.gsapVersions = [])).push(J.version), Ki(xe || ht.GreenSockGlobals || !ht.gsap && ht || {}), cr.forEach(dr)), l = typeof requestAnimationFrame < "u" && requestAnimationFrame, o && _.sleep(), u = l || function(m) {
505
- return setTimeout(m, s - _.time * 1e3 + 1 | 0);
506
- }, le = 1, p(2));
507
- },
508
- sleep: function() {
509
- (l ? cancelAnimationFrame : clearTimeout)(o), le = 0, u = ue;
510
- },
511
- lagSmoothing: function(m, v) {
512
- t = m || 1 / 0, e = Math.min(v || 33, t);
513
- },
514
- fps: function(m) {
515
- n = 1e3 / (m || 240), s = _.time * 1e3 + n;
516
- },
517
- add: function(m, v, g) {
518
- var x = v ? function(T, y, P, b) {
519
- m(T, y, P, b), _.remove(x);
520
- } : m;
521
- return _.remove(m), a[g ? "unshift" : "push"](x), Qt(), x;
522
- },
523
- remove: function(m, v) {
524
- ~(v = a.indexOf(m)) && a.splice(v, 1) && d >= v && d--;
525
- },
526
- _listeners: a
527
- }, _;
528
- }(), Qt = function() {
529
- return !le && et.wake();
530
- }, k = {}, xn = /^[\d.\-M][\d.\-,\s]/, Tn = /["']/g, bn = function(t) {
531
- for (var e = {}, i = t.substr(1, t.length - 3).split(":"), r = i[0], n = 1, s = i.length, a, o, u; n < s; n++)
532
- o = i[n], a = n !== s - 1 ? o.lastIndexOf(",") : o.length, u = o.substr(0, a), e[r] = isNaN(u) ? u.replace(Tn, "").trim() : +u, r = o.substr(a + 1).trim();
533
- return e;
534
- }, wn = function(t) {
535
- var e = t.indexOf("(") + 1, i = t.indexOf(")"), r = t.indexOf("(", e);
536
- return t.substring(e, ~r && r < i ? t.indexOf(")", i + 1) : i);
537
- }, Sn = function(t) {
538
- var e = (t + "").split("("), i = k[e[0]];
539
- return i && e.length > 1 && i.config ? i.config.apply(null, ~t.indexOf("{") ? [bn(e[1])] : wn(t).split(",").map(tr)) : k._CE && xn.test(t) ? k._CE("", t) : i;
540
- }, Pn = function(t) {
541
- return function(e) {
542
- return 1 - t(1 - e);
543
- };
544
- }, Lt = function(t, e) {
545
- return t && (L(t) ? t : k[t] || Sn(t)) || e;
546
- }, Bt = function(t, e, i, r) {
547
- i === void 0 && (i = function(o) {
548
- return 1 - e(1 - o);
549
- }), r === void 0 && (r = function(o) {
550
- return o < 0.5 ? e(o * 2) / 2 : 1 - e((1 - o) * 2) / 2;
551
- });
552
- var n = {
553
- easeIn: e,
554
- easeOut: i,
555
- easeInOut: r
556
- }, s;
557
- return Q(t, function(a) {
558
- k[a] = st[a] = n, k[s = a.toLowerCase()] = i;
559
- for (var o in n)
560
- k[s + (o === "easeIn" ? ".in" : o === "easeOut" ? ".out" : ".inOut")] = k[a + "." + o] = n[o];
561
- }), n;
562
- }, yr = function(t) {
563
- return function(e) {
564
- return e < 0.5 ? (1 - t(1 - e * 2)) / 2 : 0.5 + t((e - 0.5) * 2) / 2;
565
- };
566
- }, Fe = function f(t, e, i) {
567
- var r = e >= 1 ? e : 1, n = (i || (t ? 0.3 : 0.45)) / (e < 1 ? e : 1), s = n / Ve * (Math.asin(1 / r) || 0), a = function(l) {
568
- return l === 1 ? 1 : r * Math.pow(2, -10 * l) * Hr((l - s) * n) + 1;
569
- }, o = t === "out" ? a : t === "in" ? function(u) {
570
- return 1 - a(1 - u);
571
- } : yr(a);
572
- return n = Ve / n, o.config = function(u, l) {
573
- return f(t, u, l);
574
- }, o;
575
- }, Ne = function f(t, e) {
576
- e === void 0 && (e = 1.70158);
577
- var i = function(s) {
578
- return s ? --s * s * ((e + 1) * s + e) + 1 : 0;
579
- }, r = t === "out" ? i : t === "in" ? function(n) {
580
- return 1 - i(1 - n);
581
- } : yr(i);
582
- return r.config = function(n) {
583
- return f(t, n);
584
- }, r;
585
- };
586
- Q("Linear,Quad,Cubic,Quart,Quint,Strong", function(f, t) {
587
- var e = t < 5 ? t + 1 : t;
588
- Bt(f + ",Power" + (e - 1), t ? function(i) {
589
- return Math.pow(i, e);
590
- } : function(i) {
591
- return i;
592
- }, function(i) {
593
- return 1 - Math.pow(1 - i, e);
594
- }, function(i) {
595
- return i < 0.5 ? Math.pow(i * 2, e) / 2 : 1 - Math.pow((1 - i) * 2, e) / 2;
596
- });
597
- });
598
- k.Linear.easeNone = k.none = k.Linear.easeIn;
599
- Bt("Elastic", Fe("in"), Fe("out"), Fe());
600
- (function(f, t) {
601
- var e = 1 / t, i = 2 * e, r = 2.5 * e, n = function(a) {
602
- return a < e ? f * a * a : a < i ? f * Math.pow(a - 1.5 / t, 2) + 0.75 : a < r ? f * (a -= 2.25 / t) * a + 0.9375 : f * Math.pow(a - 2.625 / t, 2) + 0.984375;
603
- };
604
- Bt("Bounce", function(s) {
605
- return 1 - n(1 - s);
606
- }, n);
607
- })(7.5625, 2.75);
608
- Bt("Expo", function(f) {
609
- return Math.pow(2, 10 * (f - 1)) * f + f * f * f * f * f * f * (1 - f);
610
- });
611
- Bt("Circ", function(f) {
612
- return -(qi(1 - f * f) - 1);
613
- });
614
- Bt("Sine", function(f) {
615
- return f === 1 ? 1 : -$r(f * Wr) + 1;
616
- });
617
- Bt("Back", Ne("in"), Ne("out"), Ne());
618
- k.SteppedEase = k.steps = st.SteppedEase = {
619
- config: function(t, e) {
620
- t === void 0 && (t = 1);
621
- var i = 1 / t, r = t + (e ? 0 : 1), n = e ? 1 : 0, s = 1 - M;
622
- return function(a) {
623
- return ((r * de(0, s, a) | 0) + n) * i;
624
- };
625
- }
626
- };
627
- ae.ease = k["quad.out"];
628
- Q("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function(f) {
629
- return oi += f + "," + f + "Params,";
630
- });
631
- var vr = function(t, e) {
632
- this.id = Gr++, t._gsap = this, this.target = t, this.harness = e, this.get = e ? e.get : ji, this.set = e ? e.getSetter : ci;
633
- }, he = /* @__PURE__ */ function() {
634
- function f(e) {
635
- 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, Kt(this, +e.duration, 1, 1), this.data = e.data, R && (this._ctx = R, R.data.push(this)), le || et.wake();
636
- }
637
- var t = f.prototype;
638
- return t.delay = function(i) {
639
- return i || i === 0 ? (this.parent && this.parent.smoothChildTiming && this.startTime(this._start + i - this._delay), this._delay = i, this) : this._delay;
640
- }, t.duration = function(i) {
641
- return arguments.length ? this.totalDuration(this._repeat > 0 ? i + (i + this._rDelay) * this._repeat : i) : this.totalDuration() && this._dur;
642
- }, t.totalDuration = function(i) {
643
- return arguments.length ? (this._dirty = 0, Kt(this, this._repeat < 0 ? i : (i - this._repeat * this._rDelay) / (this._repeat + 1))) : this._tDur;
644
- }, t.totalTime = function(i, r) {
645
- if (Qt(), !arguments.length)
646
- return this._tTime;
647
- var n = this._dp;
648
- if (n && n.smoothChildTiming && this._ts) {
649
- for (Me(this, i), !n._dp || n.parent || rr(n, this); n && n.parent; )
650
- 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;
651
- !this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && i < this._tDur || this._ts < 0 && i > 0 || !this._tDur && !i) && _t(this._dp, this, this._start - this._delay);
652
- }
653
- return (this._tTime !== i || !this._dur && !r || this._initted && Math.abs(this._zTime) === M || !this._initted && this._dur && i || !i && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = i), Ji(this, i, r)), this;
654
- }, t.time = function(i, r) {
655
- return arguments.length ? this.totalTime(Math.min(this.totalDuration(), i + ki(this)) % (this._dur + this._rDelay) || (i ? this._dur : 0), r) : this._time;
656
- }, t.totalProgress = function(i, r) {
657
- return arguments.length ? this.totalTime(this.totalDuration() * i, r) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime() >= 0 && this._initted ? 1 : 0;
658
- }, t.progress = function(i, r) {
659
- return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - i : i) + ki(this), r) : this.duration() ? Math.min(1, this._time / this._dur) : this.rawTime() > 0 ? 1 : 0;
660
- }, t.iteration = function(i, r) {
661
- var n = this.duration() + this._rDelay;
662
- return arguments.length ? this.totalTime(this._time + (i - 1) * n, r) : this._repeat ? Ht(this._tTime, n) + 1 : 1;
663
- }, t.timeScale = function(i, r) {
664
- if (!arguments.length)
665
- return this._rts === -M ? 0 : this._rts;
666
- if (this._rts === i)
667
- return this;
668
- var n = this.parent && this._ts ? we(this.parent._time, this) : this._tTime;
669
- return this._rts = +i || 0, this._ts = this._ps || i === -M ? 0 : this._rts, this.totalTime(de(-Math.abs(this._delay), this.totalDuration(), n), r !== !1), Ce(this), sn(this);
670
- }, t.paused = function(i) {
671
- 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) : (Qt(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== M && (this._tTime -= M)))), this) : this._ps;
672
- }, t.startTime = function(i) {
673
- if (arguments.length) {
674
- this._start = A(i);
675
- var r = this.parent || this._dp;
676
- return r && (r._sort || !this.parent) && _t(r, this, this._start - this._delay), this;
677
- }
678
- return this._start;
679
- }, t.endTime = function(i) {
680
- return this._start + (K(i) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);
681
- }, t.rawTime = function(i) {
682
- var r = this.parent || this._dp;
683
- return r ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? we(r.rawTime(i), this) : this._tTime : this._tTime;
684
- }, t.revert = function(i) {
685
- i === void 0 && (i = tn);
686
- var r = W;
687
- return W = i, fi(this) && (this.timeline && this.timeline.revert(i), this.totalTime(-0.01, i.suppressEvents)), this.data !== "nested" && i.kill !== !1 && this.kill(), W = r, this;
688
- }, t.globalTime = function(i) {
689
- for (var r = this, n = arguments.length ? i : r.rawTime(); r; )
690
- n = r._start + n / (Math.abs(r._ts) || 1), r = r._dp;
691
- return !this.parent && this._sat ? this._sat.globalTime(i) : n;
692
- }, t.repeat = function(i) {
693
- return arguments.length ? (this._repeat = i === 1 / 0 ? -2 : i, Ci(this)) : this._repeat === -2 ? 1 / 0 : this._repeat;
694
- }, t.repeatDelay = function(i) {
695
- if (arguments.length) {
696
- var r = this._time;
697
- return this._rDelay = i, Ci(this), r ? this.time(r) : this;
698
- }
699
- return this._rDelay;
700
- }, t.yoyo = function(i) {
701
- return arguments.length ? (this._yoyo = i, this) : this._yoyo;
702
- }, t.seek = function(i, r) {
703
- return this.totalTime(ut(this, i), K(r));
704
- }, t.restart = function(i, r) {
705
- return this.play().totalTime(i ? -this._delay : 0, K(r)), this._dur || (this._zTime = -M), this;
706
- }, t.play = function(i, r) {
707
- return i != null && this.seek(i, r), this.reversed(!1).paused(!1);
708
- }, t.reverse = function(i, r) {
709
- return i != null && this.seek(i || this.totalDuration(), r), this.reversed(!0).paused(!1);
710
- }, t.pause = function(i, r) {
711
- return i != null && this.seek(i, r), this.paused(!0);
712
- }, t.resume = function() {
713
- return this.paused(!1);
714
- }, t.reversed = function(i) {
715
- return arguments.length ? (!!i !== this.reversed() && this.timeScale(-this._rts || (i ? -M : 0)), this) : this._rts < 0;
716
- }, t.invalidate = function() {
717
- return this._initted = this._act = 0, this._zTime = -M, this;
718
- }, t.isActive = function() {
719
- var i = this.parent || this._dp, r = this._start, n;
720
- return !!(!i || this._ts && this._initted && i.isActive() && (n = i.rawTime(!0)) >= r && n < this.endTime(!0) - M);
721
- }, t.eventCallback = function(i, r, n) {
722
- var s = this.vars;
723
- return arguments.length > 1 ? (r ? (s[i] = r, n && (s[i + "Params"] = n), i === "onUpdate" && (this._onUpdate = r)) : delete s[i], this) : s[i];
724
- }, t.then = function(i) {
725
- var r = this, n = r._prom;
726
- return new Promise(function(s) {
727
- var a = L(i) ? i : er, o = function() {
728
- var l = r.then;
729
- r.then = null, n && n(), L(a) && (a = a(r)) && (a.then || a === r) && (r.then = l), s(a), r.then = l;
730
- };
731
- r._initted && r.totalProgress() === 1 && r._ts >= 0 || !r._tTime && r._ts < 0 ? o() : r._prom = o;
732
- });
733
- }, t.kill = function() {
734
- ee(this);
735
- }, f;
736
- }();
737
- at(he.prototype, {
738
- _time: 0,
739
- _start: 0,
740
- _end: 0,
741
- _tTime: 0,
742
- _tDur: 0,
743
- _dirty: 0,
744
- _repeat: 0,
745
- _yoyo: !1,
746
- parent: null,
747
- _initted: !1,
748
- _rDelay: 0,
749
- _ts: 1,
750
- _dp: 0,
751
- ratio: 0,
752
- _zTime: -M,
753
- _prom: 0,
754
- _ps: !1,
755
- _rts: 1
756
- });
757
- var H = /* @__PURE__ */ function(f) {
758
- Xi(t, f);
759
- function t(i, r) {
760
- var n;
761
- return i === void 0 && (i = {}), n = f.call(this, i) || this, n.labels = {}, n.smoothChildTiming = !!i.smoothChildTiming, n.autoRemoveChildren = !!i.autoRemoveChildren, n._sort = K(i.sortChildren), E && _t(i.parent || E, mt(n), r), i.reversed && n.reverse(), i.paused && n.paused(!0), i.scrollTrigger && nr(mt(n), i.scrollTrigger), n;
762
- }
763
- var e = t.prototype;
764
- return e.to = function(r, n, s) {
765
- return ne(0, arguments, this), this;
766
- }, e.from = function(r, n, s) {
767
- return ne(1, arguments, this), this;
768
- }, e.fromTo = function(r, n, s, a) {
769
- return ne(2, arguments, this), this;
770
- }, e.set = function(r, n, s) {
771
- return n.duration = 0, n.parent = this, re(n).repeatDelay || (n.repeat = 0), n.immediateRender = !!n.immediateRender, new U(r, n, ut(this, s), 1), this;
772
- }, e.call = function(r, n, s) {
773
- return _t(this, U.delayedCall(0, r, n), s);
774
- }, e.staggerTo = function(r, n, s, a, o, u, l) {
775
- return s.duration = n, s.stagger = s.stagger || a, s.onComplete = u, s.onCompleteParams = l, s.parent = this, new U(r, s, ut(this, o)), this;
776
- }, e.staggerFrom = function(r, n, s, a, o, u, l) {
777
- return s.runBackwards = 1, re(s).immediateRender = K(s.immediateRender), this.staggerTo(r, n, s, a, o, u, l);
778
- }, e.staggerFromTo = function(r, n, s, a, o, u, l, _) {
779
- return a.startAt = s, re(a).immediateRender = K(a.immediateRender), this.staggerTo(r, n, a, o, u, l, _);
780
- }, e.render = function(r, n, s) {
781
- var a = this._time, o = this._dirty ? this.totalDuration() : this._tDur, u = this._dur, l = r <= 0 ? 0 : A(r), _ = this._zTime < 0 != r < 0 && (this._initted || !u), c, d, p, h, m, v, g, x, T, y, P, b;
782
- if (this !== E && l > o && r >= 0 && (l = o), l !== this._tTime || s || _) {
783
- if (a !== this._time && u && (l += this._time - a, r += this._time - a), c = l, T = this._start, x = this._ts, v = !x, _ && (u || (a = this._zTime), (r || !n) && (this._zTime = r)), this._repeat) {
784
- if (P = this._yoyo, m = u + this._rDelay, this._repeat < -1 && r < 0)
785
- return this.totalTime(m * 100 + r, n, s);
786
- if (c = A(l % m), l === o ? (h = this._repeat, c = u) : (y = A(l / m), h = ~~y, h && h === y && (c = u, h--), c > u && (c = u)), y = Ht(this._tTime, m), !a && this._tTime && y !== h && this._tTime - y * m - this._dur <= 0 && (y = h), P && h & 1 && (c = u - c, b = 1), h !== y && !this._lock) {
787
- var S = P && y & 1, w = S === (P && h & 1);
788
- if (h < y && (S = !S), a = S ? 0 : l % u ? u : l, this._lock = 1, this.render(a || (b ? 0 : A(h * m)), n, !u)._lock = 0, this._tTime = l, !n && this.parent && it(this, "onRepeat"), this.vars.repeatRefresh && !b && (this.invalidate()._lock = 1, y = h), a && a !== this._time || v !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
789
- return this;
790
- if (u = this._dur, o = this._tDur, w && (this._lock = 2, a = S ? u : -1e-4, this.render(a, !0), this.vars.repeatRefresh && !b && this.invalidate()), this._lock = 0, !this._ts && !v)
791
- return this;
792
- }
793
- }
794
- if (this._hasPause && !this._forcing && this._lock < 2 && (g = fn(this, A(a), A(c)), g && (l -= c - (c = g._start))), this._tTime = l, this._time = c, this._act = !!x, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = r, a = 0), !a && l && u && !n && !y && (it(this, "onStart"), this._tTime !== l))
795
- return this;
796
- if (c >= a && r >= 0)
797
- for (d = this._first; d; ) {
798
- if (p = d._next, (d._act || c >= d._start) && d._ts && g !== d) {
799
- if (d.parent !== this)
800
- return this.render(r, n, s);
801
- if (d.render(d._ts > 0 ? (c - d._start) * d._ts : (d._dirty ? d.totalDuration() : d._tDur) + (c - d._start) * d._ts, n, s), c !== this._time || !this._ts && !v) {
802
- g = 0, p && (l += this._zTime = -M);
803
- break;
804
- }
805
- }
806
- d = p;
807
- }
808
- else {
809
- d = this._last;
810
- for (var O = r < 0 ? r : c; d; ) {
811
- if (p = d._prev, (d._act || O <= d._end) && d._ts && g !== d) {
812
- if (d.parent !== this)
813
- return this.render(r, n, s);
814
- if (d.render(d._ts > 0 ? (O - d._start) * d._ts : (d._dirty ? d.totalDuration() : d._tDur) + (O - d._start) * d._ts, n, s || W && fi(d)), c !== this._time || !this._ts && !v) {
815
- g = 0, p && (l += this._zTime = O ? -M : M);
816
- break;
817
- }
818
- }
819
- d = p;
820
- }
821
- }
822
- if (g && !n && (this.pause(), g.render(c >= a ? 0 : -M)._zTime = c >= a ? 1 : -1, this._ts))
823
- return this._start = T, Ce(this), this.render(r, n, s);
824
- this._onUpdate && !n && it(this, "onUpdate", !0), (l === o && this._tTime >= this.totalDuration() || !l && a) && (T === this._start || Math.abs(x) !== Math.abs(this._ts)) && (this._lock || ((r || !u) && (l === o && this._ts > 0 || !l && this._ts < 0) && Pt(this, 1), !n && !(r < 0 && !a) && (l || a || !o) && (it(this, l === o && r >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(l < o && this.timeScale() > 0) && this._prom())));
825
- }
826
- return this;
827
- }, e.add = function(r, n) {
828
- var s = this;
829
- if (yt(n) || (n = ut(this, n, r)), !(r instanceof he)) {
830
- if ($(r))
831
- return r.forEach(function(a) {
832
- return s.add(a, n);
833
- }), this;
834
- if (q(r))
835
- return this.addLabel(r, n);
836
- if (L(r))
837
- r = U.delayedCall(0, r);
838
- else
839
- return this;
840
- }
841
- return this !== r ? _t(this, r, n) : this;
842
- }, e.getChildren = function(r, n, s, a) {
843
- r === void 0 && (r = !0), n === void 0 && (n = !0), s === void 0 && (s = !0), a === void 0 && (a = -ft);
844
- for (var o = [], u = this._first; u; )
845
- u._start >= a && (u instanceof U ? n && o.push(u) : (s && o.push(u), r && o.push.apply(o, u.getChildren(!0, n, s)))), u = u._next;
846
- return o;
847
- }, e.getById = function(r) {
848
- for (var n = this.getChildren(1, 1, 1), s = n.length; s--; )
849
- if (n[s].vars.id === r)
850
- return n[s];
851
- }, e.remove = function(r) {
852
- return q(r) ? this.removeLabel(r) : L(r) ? this.killTweensOf(r) : (r.parent === this && ke(this, r), r === this._recent && (this._recent = this._last), Nt(this));
853
- }, e.totalTime = function(r, n) {
854
- return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = A(et.time - (this._ts > 0 ? r / this._ts : (this.totalDuration() - r) / -this._ts))), f.prototype.totalTime.call(this, r, n), this._forcing = 0, this) : this._tTime;
855
- }, e.addLabel = function(r, n) {
856
- return this.labels[r] = ut(this, n), this;
857
- }, e.removeLabel = function(r) {
858
- return delete this.labels[r], this;
859
- }, e.addPause = function(r, n, s) {
860
- var a = U.delayedCall(0, n || ue, s);
861
- return a.data = "isPause", this._hasPause = 1, _t(this, a, ut(this, r));
862
- }, e.removePause = function(r) {
863
- var n = this._first;
864
- for (r = ut(this, r); n; )
865
- n._start === r && n.data === "isPause" && Pt(n), n = n._next;
866
- }, e.killTweensOf = function(r, n, s) {
867
- for (var a = this.getTweensOf(r, s), o = a.length; o--; )
868
- xt !== a[o] && a[o].kill(r, n);
869
- return this;
870
- }, e.getTweensOf = function(r, n) {
871
- for (var s = [], a = lt(r), o = this._first, u = yt(n), l; o; )
872
- o instanceof U ? en(o._targets, a) && (u ? (!xt || o._initted && o._ts) && o.globalTime(0) <= n && o.globalTime(o.totalDuration()) > n : !n || o.isActive()) && s.push(o) : (l = o.getTweensOf(a, n)).length && s.push.apply(s, l), o = o._next;
873
- return s;
874
- }, e.tweenTo = function(r, n) {
875
- n = n || {};
876
- var s = this, a = ut(s, r), o = n, u = o.startAt, l = o.onStart, _ = o.onStartParams, c = o.immediateRender, d, p = U.to(s, at({
877
- ease: n.ease || "none",
878
- lazy: !1,
879
- immediateRender: !1,
880
- time: a,
881
- overwrite: "auto",
882
- duration: n.duration || Math.abs((a - (u && "time" in u ? u.time : s._time)) / s.timeScale()) || M,
883
- onStart: function() {
884
- if (s.pause(), !d) {
885
- var m = n.duration || Math.abs((a - (u && "time" in u ? u.time : s._time)) / s.timeScale());
886
- p._dur !== m && Kt(p, m, 0, 1).render(p._time, !0, !0), d = 1;
887
- }
888
- l && l.apply(p, _ || []);
889
- }
890
- }, n));
891
- return c ? p.render(0) : p;
892
- }, e.tweenFromTo = function(r, n, s) {
893
- return this.tweenTo(n, at({
894
- startAt: {
895
- time: ut(this, r)
896
- }
897
- }, s));
898
- }, e.recent = function() {
899
- return this._recent;
900
- }, e.nextLabel = function(r) {
901
- return r === void 0 && (r = this._time), Mi(this, ut(this, r));
902
- }, e.previousLabel = function(r) {
903
- return r === void 0 && (r = this._time), Mi(this, ut(this, r), 1);
904
- }, e.currentLabel = function(r) {
905
- return arguments.length ? this.seek(r, !0) : this.previousLabel(this._time + M);
906
- }, e.shiftChildren = function(r, n, s) {
907
- s === void 0 && (s = 0);
908
- var a = this._first, o = this.labels, u;
909
- for (r = A(r); a; )
910
- a._start >= s && (a._start += r, a._end += r), a = a._next;
911
- if (n)
912
- for (u in o)
913
- o[u] >= s && (o[u] += r);
914
- return Nt(this);
915
- }, e.invalidate = function(r) {
916
- var n = this._first;
917
- for (this._lock = 0; n; )
918
- n.invalidate(r), n = n._next;
919
- return f.prototype.invalidate.call(this, r);
920
- }, e.clear = function(r) {
921
- r === void 0 && (r = !0);
922
- for (var n = this._first, s; n; )
923
- s = n._next, this.remove(n), n = s;
924
- return this._dp && (this._time = this._tTime = this._pTime = 0), r && (this.labels = {}), Nt(this);
925
- }, e.totalDuration = function(r) {
926
- var n = 0, s = this, a = s._last, o = ft, u, l, _;
927
- if (arguments.length)
928
- return s.timeScale((s._repeat < 0 ? s.duration() : s.totalDuration()) / (s.reversed() ? -r : r));
929
- if (s._dirty) {
930
- for (_ = s.parent; a; )
931
- u = a._prev, a._dirty && a.totalDuration(), l = a._start, l > o && s._sort && a._ts && !s._lock ? (s._lock = 1, _t(s, a, l - a._delay, 1)._lock = 0) : o = l, l < 0 && a._ts && (n -= l, (!_ && !s._dp || _ && _.smoothChildTiming) && (s._start += A(l / s._ts), s._time -= l, s._tTime -= l), s.shiftChildren(-l, !1, -1 / 0), o = 0), a._end > n && a._ts && (n = a._end), a = u;
932
- Kt(s, s === E && s._time > n ? s._time : n, 1, 1), s._dirty = 0;
933
- }
934
- return s._tDur;
935
- }, t.updateRoot = function(r) {
936
- if (E._ts && (Ji(E, we(r, E)), Zi = et.frame), et.frame >= Pi) {
937
- Pi += nt.autoSleep || 120;
938
- var n = E._first;
939
- if ((!n || !n._ts) && nt.autoSleep && et._listeners.length < 2) {
940
- for (; n && !n._ts; )
941
- n = n._next;
942
- n || et.sleep();
943
- }
944
- }
945
- }, t;
946
- }(he);
947
- at(H.prototype, {
948
- _lock: 0,
949
- _hasPause: 0,
950
- _forcing: 0
951
- });
952
- var On = function(t, e, i, r, n, s, a) {
953
- var o = new Z(this._pt, t, e, 0, 1, Pr, null, n), u = 0, l = 0, _, c, d, p, h, m, v, g;
954
- for (o.b = i, o.e = r, i += "", r += "", (v = ~r.indexOf("random(")) && (r = fe(r)), s && (g = [i, r], s(g, t, e), i = g[0], r = g[1]), c = i.match(Ae) || []; _ = Ae.exec(r); )
955
- p = _[0], h = r.substring(u, _.index), d ? d = (d + 1) % 5 : h.substr(-5) === "rgba(" && (d = 1), p !== c[l++] && (m = parseFloat(c[l - 1]) || 0, o._pt = {
956
- _next: o._pt,
957
- p: h || l === 1 ? h : ",",
958
- //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.
959
- s: m,
960
- c: p.charAt(1) === "=" ? qt(m, p) - m : parseFloat(p) - m,
961
- m: d && d < 4 ? Math.round : 0
962
- }, u = Ae.lastIndex);
963
- return o.c = u < r.length ? r.substring(u, r.length) : "", o.fp = a, ($i.test(r) || v) && (o.e = 0), this._pt = o, o;
964
- }, li = function(t, e, i, r, n, s, a, o, u, l) {
965
- L(r) && (r = r(n || 0, t, s));
966
- var _ = t[e], c = i !== "get" ? i : L(_) ? u ? t[e.indexOf("set") || !L(t["get" + e.substr(3)]) ? e : "get" + e.substr(3)](u) : t[e]() : _, d = L(_) ? u ? Rn : wr : _i, p;
967
- if (q(r) && (~r.indexOf("random(") && (r = fe(r)), r.charAt(1) === "=" && (p = qt(c, r) + (G(c) || 0), (p || p === 0) && (r = p))), !l || c !== r || He)
968
- return !isNaN(c * r) && r !== "" ? (p = new Z(this._pt, t, e, +c || 0, r - (c || 0), typeof _ == "boolean" ? En : Sr, 0, d), u && (p.fp = u), a && p.modifier(a, this, t), this._pt = p) : (!_ && !(e in t) && si(e, r), On.call(this, t, e, c, r, d, o || nt.stringFilter, u));
969
- }, kn = function(t, e, i, r, n) {
970
- if (L(t) && (t = se(t, n, e, i, r)), !dt(t) || t.style && t.nodeType || $(t) || Wi(t))
971
- return q(t) ? se(t, n, e, i, r) : t;
972
- var s = {}, a;
973
- for (a in t)
974
- s[a] = se(t[a], n, e, i, r);
975
- return s;
976
- }, xr = function(t, e, i, r, n, s) {
977
- var a, o, u, l;
978
- if (tt[t] && (a = new tt[t]()).init(n, a.rawVars ? e[t] : kn(e[t], r, n, s, i), i, r, s) !== !1 && (i._pt = o = new Z(i._pt, n, t, 0, 1, a.render, a, 0, a.priority), i !== Xt))
979
- for (u = i._ptLookup[i._targets.indexOf(n)], l = a._props.length; l--; )
980
- u[a._props[l]] = o;
981
- return a;
982
- }, xt, He, hi = function f(t, e, i) {
983
- var r = t.vars, n = r.ease, s = r.startAt, a = r.immediateRender, o = r.lazy, u = r.onUpdate, l = r.runBackwards, _ = r.yoyoEase, c = r.keyframes, d = r.autoRevert, p = t._dur, h = t._startAt, m = t._targets, v = t.parent, g = v && v.data === "nested" ? v.vars.targets : m, x = t._overwrite === "auto" && !ei, T = t.timeline, y = r.easeReverse || _, P, b, S, w, O, I, F, D, N, X, Y, B, ot;
984
- if (T && (!c || !n) && (n = "none"), t._ease = Lt(n, ae.ease), t._rEase = y && (Lt(y) || t._ease), t._from = !T && !!r.runBackwards, t._from && (t.ratio = 1), !T || c && !r.stagger) {
985
- if (D = m[0] ? Ft(m[0]).harness : 0, B = D && r[D.prop], P = be(r, ai), h && (h._zTime < 0 && h.progress(1), e < 0 && l && a && !d ? h.render(-1, !0) : h.revert(l && p ? ge : Jr), h._lazy = 0), s) {
986
- if (Pt(t._startAt = U.set(m, at({
987
- data: "isStart",
988
- overwrite: !1,
989
- parent: v,
990
- immediateRender: !0,
991
- lazy: !h && K(o),
992
- startAt: null,
993
- delay: 0,
994
- onUpdate: u && function() {
995
- return it(t, "onUpdate");
996
- },
997
- stagger: 0
998
- }, s))), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (W || !a && !d) && t._startAt.revert(ge), a && p && e <= 0 && i <= 0) {
999
- e && (t._zTime = e);
1000
- return;
1001
- }
1002
- } else if (l && p && !h) {
1003
- if (e && (a = !1), S = at({
1004
- overwrite: !1,
1005
- data: "isFromStart",
1006
- //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.
1007
- lazy: a && !h && K(o),
1008
- immediateRender: a,
1009
- //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)
1010
- stagger: 0,
1011
- parent: v
1012
- //ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
1013
- }, P), B && (S[D.prop] = B), Pt(t._startAt = U.set(m, S)), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (W ? t._startAt.revert(ge) : t._startAt.render(-1, !0)), t._zTime = e, !a)
1014
- f(t._startAt, M, M);
1015
- else if (!e)
1016
- return;
1017
- }
1018
- for (t._pt = t._ptCache = 0, o = p && K(o) || o && !p, b = 0; b < m.length; b++) {
1019
- if (O = m[b], F = O._gsap || ui(m)[b]._gsap, t._ptLookup[b] = X = {}, Ye[F.id] && wt.length && Te(), Y = g === m ? b : g.indexOf(O), D && (N = new D()).init(O, B || P, t, Y, g) !== !1 && (t._pt = w = new Z(t._pt, O, N.name, 0, 1, N.render, N, 0, N.priority), N._props.forEach(function(Vt) {
1020
- X[Vt] = w;
1021
- }), N.priority && (I = 1)), !D || B)
1022
- for (S in P)
1023
- tt[S] && (N = xr(S, P, t, Y, O, g)) ? N.priority && (I = 1) : X[S] = w = li.call(t, O, S, "get", P[S], Y, g, 0, r.stringFilter);
1024
- t._op && t._op[b] && t.kill(O, t._op[b]), x && t._pt && (xt = t, E.killTweensOf(O, X, t.globalTime(e)), ot = !t.parent, xt = 0), t._pt && o && (Ye[F.id] = 1);
1025
- }
1026
- I && Or(t), t._onInit && t._onInit(t);
1027
- }
1028
- t._onUpdate = u, t._initted = (!t._op || t._pt) && !ot, c && e <= 0 && T.render(ft, !0, !0);
1029
- }, Cn = function(t, e, i, r, n, s, a, o) {
1030
- var u = (t._pt && t._ptCache || (t._ptCache = {}))[e], l, _, c, d;
1031
- if (!u)
1032
- for (u = t._ptCache[e] = [], c = t._ptLookup, d = t._targets.length; d--; ) {
1033
- if (l = c[d][e], l && l.d && l.d._pt)
1034
- for (l = l.d._pt; l && l.p !== e && l.fp !== e; )
1035
- l = l._next;
1036
- if (!l)
1037
- return He = 1, t.vars[e] = "+=0", hi(t, a), He = 0, o ? oe(e + " not eligible for reset. Try splitting into individual properties") : 1;
1038
- u.push(l);
1039
- }
1040
- for (d = u.length; d--; )
1041
- _ = u[d], l = _._pt || _, l.s = (r || r === 0) && !n ? r : l.s + (r || 0) + s * l.c, l.c = i - l.s, _.e && (_.e = V(i) + G(_.e)), _.b && (_.b = l.s + G(_.b));
1042
- }, Mn = function(t, e) {
1043
- var i = t[0] ? Ft(t[0]).harness : 0, r = i && i.aliases, n, s, a, o;
1044
- if (!r)
1045
- return e;
1046
- n = $t({}, e);
1047
- for (s in r)
1048
- if (s in n)
1049
- for (o = r[s].split(","), a = o.length; a--; )
1050
- n[o[a]] = n[s];
1051
- return n;
1052
- }, Dn = function(t, e, i, r) {
1053
- var n = e.ease || r || "power1.inOut", s, a;
1054
- if ($(e))
1055
- a = i[t] || (i[t] = []), e.forEach(function(o, u) {
1056
- return a.push({
1057
- t: u / (e.length - 1) * 100,
1058
- v: o,
1059
- e: n
1060
- });
1061
- });
1062
- else
1063
- for (s in e)
1064
- a = i[s] || (i[s] = []), s === "ease" || a.push({
1065
- t: parseFloat(t),
1066
- v: e[s],
1067
- e: n
1068
- });
1069
- }, se = function(t, e, i, r, n) {
1070
- return L(t) ? t.call(e, i, r, n) : q(t) && ~t.indexOf("random(") ? fe(t) : t;
1071
- }, Tr = oi + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert", br = {};
1072
- Q(Tr + ",id,stagger,delay,duration,paused,scrollTrigger", function(f) {
1073
- return br[f] = 1;
1074
- });
1075
- var U = /* @__PURE__ */ function(f) {
1076
- Xi(t, f);
1077
- function t(i, r, n, s) {
1078
- var a;
1079
- typeof r == "number" && (n.duration = r, r = n, n = null), a = f.call(this, s ? r : re(r)) || this;
1080
- var o = a.vars, u = o.duration, l = o.delay, _ = o.immediateRender, c = o.stagger, d = o.overwrite, p = o.keyframes, h = o.defaults, m = o.scrollTrigger, v = r.parent || E, g = ($(i) || Wi(i) ? yt(i[0]) : "length" in r) ? [i] : lt(i), x, T, y, P, b, S, w, O;
1081
- if (a._targets = g.length ? ui(g) : oe("GSAP target " + i + " not found. https://gsap.com", !nt.nullTargetWarn) || [], a._ptLookup = [], a._overwrite = d, p || c || me(u) || me(l)) {
1082
- r = a.vars;
1083
- var I = r.easeReverse || r.yoyoEase;
1084
- if (x = a.timeline = new H({
1085
- data: "nested",
1086
- defaults: h || {},
1087
- targets: v && v.data === "nested" ? v.vars.targets : g
1088
- }), x.kill(), x.parent = x._dp = mt(a), x._start = 0, c || me(u) || me(l)) {
1089
- if (P = g.length, w = c && ur(c), dt(c))
1090
- for (b in c)
1091
- ~Tr.indexOf(b) && (O || (O = {}), O[b] = c[b]);
1092
- for (T = 0; T < P; T++)
1093
- y = be(r, br), y.stagger = 0, I && (y.easeReverse = I), O && $t(y, O), S = g[T], y.duration = +se(u, mt(a), T, S, g), y.delay = (+se(l, mt(a), T, S, g) || 0) - a._delay, !c && P === 1 && y.delay && (a._delay = l = y.delay, a._start += l, y.delay = 0), x.to(S, y, w ? w(T, S, g) : 0), x._ease = k.none;
1094
- x.duration() ? u = l = 0 : a.timeline = 0;
1095
- } else if (p) {
1096
- re(at(x.vars.defaults, {
1097
- ease: "none"
1098
- })), x._ease = Lt(p.ease || r.ease || "none");
1099
- var F = 0, D, N, X;
1100
- if ($(p))
1101
- p.forEach(function(Y) {
1102
- return x.to(g, Y, ">");
1103
- }), x.duration();
1104
- else {
1105
- y = {};
1106
- for (b in p)
1107
- b === "ease" || b === "easeEach" || Dn(b, p[b], y, p.easeEach);
1108
- for (b in y)
1109
- for (D = y[b].sort(function(Y, B) {
1110
- return Y.t - B.t;
1111
- }), F = 0, T = 0; T < D.length; T++)
1112
- N = D[T], X = {
1113
- ease: N.e,
1114
- duration: (N.t - (T ? D[T - 1].t : 0)) / 100 * u
1115
- }, X[b] = N.v, x.to(g, X, F), F += X.duration;
1116
- x.duration() < u && x.to({}, {
1117
- duration: u - x.duration()
1118
- });
1119
- }
1120
- }
1121
- u || a.duration(u = x.duration());
1122
- } else
1123
- a.timeline = 0;
1124
- return d === !0 && !ei && (xt = mt(a), E.killTweensOf(g), xt = 0), _t(v, mt(a), n), r.reversed && a.reverse(), r.paused && a.paused(!0), (_ || !u && !p && a._start === A(v._time) && K(_) && an(mt(a)) && v.data !== "nested") && (a._tTime = -M, a.render(Math.max(0, -l) || 0)), m && nr(mt(a), m), a;
1125
- }
1126
- var e = t.prototype;
1127
- return e.render = function(r, n, s) {
1128
- var a = this._time, o = this._tDur, u = this._dur, l = r < 0, _ = r > o - M && !l ? o : r < M ? 0 : r, c, d, p, h, m, v, g, x;
1129
- if (!u)
1130
- un(this, r, n, s);
1131
- else if (_ !== this._tTime || !r || s || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== l || this._lazy) {
1132
- if (c = _, x = this.timeline, this._repeat) {
1133
- if (h = u + this._rDelay, this._repeat < -1 && l)
1134
- return this.totalTime(h * 100 + r, n, s);
1135
- if (c = A(_ % h), _ === o ? (p = this._repeat, c = u) : (m = A(_ / h), p = ~~m, p && p === m ? (c = u, p--) : c > u && (c = u)), v = this._yoyo && p & 1, v && (c = u - c), m = Ht(this._tTime, h), c === a && !s && this._initted && p === m)
1136
- return this._tTime = _, this;
1137
- p !== m && this.vars.repeatRefresh && !v && !this._lock && c !== h && this._initted && (this._lock = s = 1, this.render(A(h * p), !0).invalidate()._lock = 0);
1138
- }
1139
- if (!this._initted) {
1140
- if (sr(this, l ? r : c, s, n, _))
1141
- return this._tTime = 0, this;
1142
- if (a !== this._time && !(s && this.vars.repeatRefresh && p !== m))
1143
- return this;
1144
- if (u !== this._dur)
1145
- return this.render(r, n, s);
1146
- }
1147
- if (this._rEase) {
1148
- var T = c < a;
1149
- if (T !== this._inv) {
1150
- var y = T ? a : u - a;
1151
- this._inv = T, this._from && (this.ratio = 1 - this.ratio), this._invRatio = this.ratio, this._invTime = a, this._invRecip = y ? (T ? -1 : 1) / y : 0, this._invScale = T ? -this.ratio : 1 - this.ratio, this._invEase = T ? this._rEase : this._ease;
1152
- }
1153
- this.ratio = g = this._invRatio + this._invScale * this._invEase((c - this._invTime) * this._invRecip);
1154
- } else
1155
- this.ratio = g = this._ease(c / u);
1156
- if (this._from && (this.ratio = g = 1 - g), this._tTime = _, this._time = c, !this._act && this._ts && (this._act = 1, this._lazy = 0), !a && _ && !n && !m && (it(this, "onStart"), this._tTime !== _))
1157
- return this;
1158
- for (d = this._pt; d; )
1159
- d.r(g, d.d), d = d._next;
1160
- x && x.render(r < 0 ? r : x._dur * x._ease(c / this._dur), n, s) || this._startAt && (this._zTime = r), this._onUpdate && !n && (l && Xe(this, r, n, s), it(this, "onUpdate")), this._repeat && p !== m && this.vars.onRepeat && !n && this.parent && it(this, "onRepeat"), (_ === this._tDur || !_) && this._tTime === _ && (l && !this._onUpdate && Xe(this, r, !0, !0), (r || !u) && (_ === this._tDur && this._ts > 0 || !_ && this._ts < 0) && Pt(this, 1), !n && !(l && !a) && (_ || a || v) && (it(this, _ === o ? "onComplete" : "onReverseComplete", !0), this._prom && !(_ < o && this.timeScale() > 0) && this._prom()));
1161
- }
1162
- return this;
1163
- }, e.targets = function() {
1164
- return this._targets;
1165
- }, e.invalidate = function(r) {
1166
- 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), f.prototype.invalidate.call(this, r);
1167
- }, e.resetTo = function(r, n, s, a, o) {
1168
- le || et.wake(), this._ts || this.play();
1169
- var u = Math.min(this._dur, (this._dp._time - this._start) * this._ts), l;
1170
- return this._initted || hi(this, u), l = this._ease(u / this._dur), Cn(this, r, n, s, a, l, u, o) ? this.resetTo(r, n, s, a, 1) : (Me(this, 0), this.parent || ir(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
1171
- }, e.kill = function(r, n) {
1172
- if (n === void 0 && (n = "all"), !r && (!n || n === "all"))
1173
- return this._lazy = this._pt = 0, this.parent ? ee(this) : this.scrollTrigger && this.scrollTrigger.kill(!!W), this;
1174
- if (this.timeline) {
1175
- var s = this.timeline.totalDuration();
1176
- return this.timeline.killTweensOf(r, n, xt && xt.vars.overwrite !== !0)._first || ee(this), this.parent && s !== this.timeline.totalDuration() && Kt(this, this._dur * this.timeline._tDur / s, 0, 1), this;
1177
- }
1178
- var a = this._targets, o = r ? lt(r) : a, u = this._ptLookup, l = this._pt, _, c, d, p, h, m, v;
1179
- if ((!n || n === "all") && nn(a, o))
1180
- return n === "all" && (this._pt = 0), ee(this);
1181
- for (_ = this._op = this._op || [], n !== "all" && (q(n) && (h = {}, Q(n, function(g) {
1182
- return h[g] = 1;
1183
- }), n = h), n = Mn(a, n)), v = a.length; v--; )
1184
- if (~o.indexOf(a[v])) {
1185
- c = u[v], n === "all" ? (_[v] = n, p = c, d = {}) : (d = _[v] = _[v] || {}, p = n);
1186
- for (h in p)
1187
- m = c && c[h], m && ((!("kill" in m.d) || m.d.kill(h) === !0) && ke(this, m, "_pt"), delete c[h]), d !== "all" && (d[h] = 1);
1188
- }
1189
- return this._initted && !this._pt && l && ee(this), this;
1190
- }, t.to = function(r, n) {
1191
- return new t(r, n, arguments[2]);
1192
- }, t.from = function(r, n) {
1193
- return ne(1, arguments);
1194
- }, t.delayedCall = function(r, n, s, a) {
1195
- return new t(n, 0, {
1196
- immediateRender: !1,
1197
- lazy: !1,
1198
- overwrite: !1,
1199
- delay: r,
1200
- onComplete: n,
1201
- onReverseComplete: n,
1202
- onCompleteParams: s,
1203
- onReverseCompleteParams: s,
1204
- callbackScope: a
1205
- });
1206
- }, t.fromTo = function(r, n, s) {
1207
- return ne(2, arguments);
1208
- }, t.set = function(r, n) {
1209
- return n.duration = 0, n.repeatDelay || (n.repeat = 0), new t(r, n);
1210
- }, t.killTweensOf = function(r, n, s) {
1211
- return E.killTweensOf(r, n, s);
1212
- }, t;
1213
- }(he);
1214
- at(U.prototype, {
1215
- _targets: [],
1216
- _lazy: 0,
1217
- _startAt: 0,
1218
- _op: 0,
1219
- _onInit: 0
1220
- });
1221
- Q("staggerTo,staggerFrom,staggerFromTo", function(f) {
1222
- U[f] = function() {
1223
- var t = new H(), e = We.call(arguments, 0);
1224
- return e.splice(f === "staggerFromTo" ? 5 : 4, 0, 0), t[f].apply(t, e);
1225
- };
1226
- });
1227
- var _i = function(t, e, i) {
1228
- return t[e] = i;
1229
- }, wr = function(t, e, i) {
1230
- return t[e](i);
1231
- }, Rn = function(t, e, i, r) {
1232
- return t[e](r.fp, i);
1233
- }, An = function(t, e, i) {
1234
- return t.setAttribute(e, i);
1235
- }, ci = function(t, e) {
1236
- return L(t[e]) ? wr : ii(t[e]) && t.setAttribute ? An : _i;
1237
- }, Sr = function(t, e) {
1238
- return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e6) / 1e6, e);
1239
- }, En = function(t, e) {
1240
- return e.set(e.t, e.p, !!(e.s + e.c * t), e);
1241
- }, Pr = function(t, e) {
1242
- var i = e._pt, r = "";
1243
- if (!t && e.b)
1244
- r = e.b;
1245
- else if (t === 1 && e.e)
1246
- r = e.e;
1247
- else {
1248
- for (; i; )
1249
- r = i.p + (i.m ? i.m(i.s + i.c * t) : Math.round((i.s + i.c * t) * 1e4) / 1e4) + r, i = i._next;
1250
- r += e.c;
1251
- }
1252
- e.set(e.t, e.p, r, e);
1253
- }, di = function(t, e) {
1254
- for (var i = e._pt; i; )
1255
- i.r(t, i.d), i = i._next;
1256
- }, zn = function(t, e, i, r) {
1257
- for (var n = this._pt, s; n; )
1258
- s = n._next, n.p === r && n.modifier(t, e, i), n = s;
1259
- }, Fn = function(t) {
1260
- for (var e = this._pt, i, r; e; )
1261
- r = e._next, e.p === t && !e.op || e.op === t ? ke(this, e, "_pt") : e.dep || (i = 1), e = r;
1262
- return !i;
1263
- }, Nn = function(t, e, i, r) {
1264
- r.mSet(t, e, r.m.call(r.tween, i, r.mt), r);
1265
- }, Or = function(t) {
1266
- for (var e = t._pt, i, r, n, s; e; ) {
1267
- for (i = e._next, r = n; r && r.pr > e.pr; )
1268
- r = r._next;
1269
- (e._prev = r ? r._prev : s) ? e._prev._next = e : n = e, (e._next = r) ? r._prev = e : s = e, e = i;
1270
- }
1271
- t._pt = n;
1272
- }, Z = /* @__PURE__ */ function() {
1273
- function f(e, i, r, n, s, a, o, u, l) {
1274
- this.t = i, this.s = n, this.c = s, this.p = r, this.r = a || Sr, this.d = o || this, this.set = u || _i, this.pr = l || 0, this._next = e, e && (e._prev = this);
1275
- }
1276
- var t = f.prototype;
1277
- return t.modifier = function(i, r, n) {
1278
- this.mSet = this.mSet || this.set, this.set = Nn, this.m = i, this.mt = n, this.tween = r;
1279
- }, f;
1280
- }();
1281
- Q(oi + "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,easeReverse", function(f) {
1282
- return ai[f] = 1;
1283
- });
1284
- st.TweenMax = st.TweenLite = U;
1285
- st.TimelineLite = st.TimelineMax = H;
1286
- E = new H({
1287
- sortChildren: !1,
1288
- defaults: ae,
1289
- autoRemoveChildren: !0,
1290
- id: "root",
1291
- smoothChildTiming: !0
1292
- });
1293
- nt.stringFilter = gr;
1294
- var It = [], ve = {}, Ln = [], Ri = 0, In = 0, Le = function(t) {
1295
- return (ve[t] || Ln).map(function(e) {
1296
- return e();
1297
- });
1298
- }, Ke = function() {
1299
- var t = Date.now(), e = [];
1300
- t - Ri > 2 && (Le("matchMediaInit"), It.forEach(function(i) {
1301
- var r = i.queries, n = i.conditions, s, a, o, u;
1302
- for (a in r)
1303
- s = ht.matchMedia(r[a]).matches, s && (o = 1), s !== n[a] && (n[a] = s, u = 1);
1304
- u && (i.revert(), o && e.push(i));
1305
- }), Le("matchMediaRevert"), e.forEach(function(i) {
1306
- return i.onMatch(i, function(r) {
1307
- return i.add(null, r);
1308
- });
1309
- }), Ri = t, Le("matchMedia"));
1310
- }, kr = /* @__PURE__ */ function() {
1311
- function f(e, i) {
1312
- this.selector = i && Ge(i), this.data = [], this._r = [], this.isReverted = !1, this.id = In++, e && this.add(e);
1313
- }
1314
- var t = f.prototype;
1315
- return t.add = function(i, r, n) {
1316
- L(i) && (n = r, r = i, i = L);
1317
- var s = this, a = function() {
1318
- var u = R, l = s.selector, _;
1319
- return u && u !== s && u.data.push(s), n && (s.selector = Ge(n)), R = s, _ = r.apply(s, arguments), L(_) && s._r.push(_), R = u, s.selector = l, s.isReverted = !1, _;
1320
- };
1321
- return s.last = a, i === L ? a(s, function(o) {
1322
- return s.add(null, o);
1323
- }) : i ? s[i] = a : a;
1324
- }, t.ignore = function(i) {
1325
- var r = R;
1326
- R = null, i(this), R = r;
1327
- }, t.getTweens = function() {
1328
- var i = [];
1329
- return this.data.forEach(function(r) {
1330
- return r instanceof f ? i.push.apply(i, r.getTweens()) : r instanceof U && !(r.parent && r.parent.data === "nested") && i.push(r);
1331
- }), i;
1332
- }, t.clear = function() {
1333
- this._r.length = this.data.length = 0;
1334
- }, t.kill = function(i, r) {
1335
- var n = this;
1336
- if (i ? function() {
1337
- for (var a = n.getTweens(), o = n.data.length, u; o--; )
1338
- u = n.data[o], u.data === "isFlip" && (u.revert(), u.getChildren(!0, !0, !1).forEach(function(l) {
1339
- return a.splice(a.indexOf(l), 1);
1340
- }));
1341
- for (a.map(function(l) {
1342
- return {
1343
- g: l._dur || l._delay || l._sat && !l._sat.vars.immediateRender ? l.globalTime(0) : -1 / 0,
1344
- t: l
1345
- };
1346
- }).sort(function(l, _) {
1347
- return _.g - l.g || -1 / 0;
1348
- }).forEach(function(l) {
1349
- return l.t.revert(i);
1350
- }), o = n.data.length; o--; )
1351
- u = n.data[o], u instanceof H ? u.data !== "nested" && (u.scrollTrigger && u.scrollTrigger.revert(), u.kill()) : !(u instanceof U) && u.revert && u.revert(i);
1352
- n._r.forEach(function(l) {
1353
- return l(i, n);
1354
- }), n.isReverted = !0;
1355
- }() : this.data.forEach(function(a) {
1356
- return a.kill && a.kill();
1357
- }), this.clear(), r)
1358
- for (var s = It.length; s--; )
1359
- It[s].id === this.id && It.splice(s, 1);
1360
- }, t.revert = function(i) {
1361
- this.kill(i || {});
1362
- }, f;
1363
- }(), Bn = /* @__PURE__ */ function() {
1364
- function f(e) {
1365
- this.contexts = [], this.scope = e, R && R.data.push(this);
1366
- }
1367
- var t = f.prototype;
1368
- return t.add = function(i, r, n) {
1369
- dt(i) || (i = {
1370
- matches: i
1371
- });
1372
- var s = new kr(0, n || this.scope), a = s.conditions = {}, o, u, l;
1373
- R && !s.selector && (s.selector = R.selector), this.contexts.push(s), r = s.add("onMatch", r), s.queries = i;
1374
- for (u in i)
1375
- u === "all" ? l = 1 : (o = ht.matchMedia(i[u]), o && (It.indexOf(s) < 0 && It.push(s), (a[u] = o.matches) && (l = 1), o.addListener ? o.addListener(Ke) : o.addEventListener("change", Ke)));
1376
- return l && r(s, function(_) {
1377
- return s.add(null, _);
1378
- }), this;
1379
- }, t.revert = function(i) {
1380
- this.kill(i || {});
1381
- }, t.kill = function(i) {
1382
- this.contexts.forEach(function(r) {
1383
- return r.kill(i, !0);
1384
- });
1385
- }, f;
1386
- }(), Se = {
1387
- registerPlugin: function() {
1388
- for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
1389
- e[i] = arguments[i];
1390
- e.forEach(function(r) {
1391
- return dr(r);
1392
- });
1393
- },
1394
- timeline: function(t) {
1395
- return new H(t);
1396
- },
1397
- getTweensOf: function(t, e) {
1398
- return E.getTweensOf(t, e);
1399
- },
1400
- getProperty: function(t, e, i, r) {
1401
- q(t) && (t = lt(t)[0]);
1402
- var n = Ft(t || {}).get, s = i ? er : tr;
1403
- return i === "native" && (i = ""), t && (e ? s((tt[e] && tt[e].get || n)(t, e, i, r)) : function(a, o, u) {
1404
- return s((tt[a] && tt[a].get || n)(t, a, o, u));
1405
- });
1406
- },
1407
- quickSetter: function(t, e, i) {
1408
- if (t = lt(t), t.length > 1) {
1409
- var r = t.map(function(l) {
1410
- return J.quickSetter(l, e, i);
1411
- }), n = r.length;
1412
- return function(l) {
1413
- for (var _ = n; _--; )
1414
- r[_](l);
1415
- };
1416
- }
1417
- t = t[0] || {};
1418
- var s = tt[e], a = Ft(t), o = a.harness && (a.harness.aliases || {})[e] || e, u = s ? function(l) {
1419
- var _ = new s();
1420
- Xt._pt = 0, _.init(t, i ? l + i : l, Xt, 0, [t]), _.render(1, _), Xt._pt && di(1, Xt);
1421
- } : a.set(t, o);
1422
- return s ? u : function(l) {
1423
- return u(t, o, i ? l + i : l, a, 1);
1424
- };
1425
- },
1426
- quickTo: function(t, e, i) {
1427
- var r, n = J.to(t, at((r = {}, r[e] = "+=0.1", r.paused = !0, r.stagger = 0, r), i || {})), s = function(o, u, l) {
1428
- return n.resetTo(e, o, u, l);
1429
- };
1430
- return s.tween = n, s;
1431
- },
1432
- isTweening: function(t) {
1433
- return E.getTweensOf(t, !0).length > 0;
1434
- },
1435
- defaults: function(t) {
1436
- return t && t.ease && (t.ease = Lt(t.ease, ae.ease)), Oi(ae, t || {});
1437
- },
1438
- config: function(t) {
1439
- return Oi(nt, t || {});
1440
- },
1441
- registerEffect: function(t) {
1442
- var e = t.name, i = t.effect, r = t.plugins, n = t.defaults, s = t.extendTimeline;
1443
- (r || "").split(",").forEach(function(a) {
1444
- return a && !tt[a] && !st[a] && oe(e + " effect requires " + a + " plugin.");
1445
- }), Ee[e] = function(a, o, u) {
1446
- return i(lt(a), at(o || {}, n), u);
1447
- }, s && (H.prototype[e] = function(a, o, u) {
1448
- return this.add(Ee[e](a, dt(o) ? o : (u = o) && {}, this), u);
1449
- });
1450
- },
1451
- registerEase: function(t, e) {
1452
- k[t] = Lt(e);
1453
- },
1454
- parseEase: function(t, e) {
1455
- return arguments.length ? Lt(t, e) : k;
1456
- },
1457
- getById: function(t) {
1458
- return E.getById(t);
1459
- },
1460
- exportRoot: function(t, e) {
1461
- t === void 0 && (t = {});
1462
- var i = new H(t), r, n;
1463
- for (i.smoothChildTiming = K(t.smoothChildTiming), E.remove(i), i._dp = 0, i._time = i._tTime = E._time, r = E._first; r; )
1464
- n = r._next, (e || !(!r._dur && r instanceof U && r.vars.onComplete === r._targets[0])) && _t(i, r, r._start - r._delay), r = n;
1465
- return _t(E, i, 0), i;
1466
- },
1467
- context: function(t, e) {
1468
- return t ? new kr(t, e) : R;
1469
- },
1470
- matchMedia: function(t) {
1471
- return new Bn(t);
1472
- },
1473
- matchMediaRefresh: function() {
1474
- return It.forEach(function(t) {
1475
- var e = t.conditions, i, r;
1476
- for (r in e)
1477
- e[r] && (e[r] = !1, i = 1);
1478
- i && t.revert();
1479
- }) || Ke();
1480
- },
1481
- addEventListener: function(t, e) {
1482
- var i = ve[t] || (ve[t] = []);
1483
- ~i.indexOf(e) || i.push(e);
1484
- },
1485
- removeEventListener: function(t, e) {
1486
- var i = ve[t], r = i && i.indexOf(e);
1487
- r >= 0 && i.splice(r, 1);
1488
- },
1489
- utils: {
1490
- wrap: mn,
1491
- wrapYoyo: gn,
1492
- distribute: ur,
1493
- random: lr,
1494
- snap: fr,
1495
- normalize: pn,
1496
- getUnit: G,
1497
- clamp: hn,
1498
- splitColor: pr,
1499
- toArray: lt,
1500
- selector: Ge,
1501
- mapRange: _r,
1502
- pipe: cn,
1503
- unitize: dn,
1504
- interpolate: yn,
1505
- shuffle: or
1506
- },
1507
- install: Ki,
1508
- effects: Ee,
1509
- ticker: et,
1510
- updateRoot: H.updateRoot,
1511
- plugins: tt,
1512
- globalTimeline: E,
1513
- core: {
1514
- PropTween: Z,
1515
- globals: Qi,
1516
- Tween: U,
1517
- Timeline: H,
1518
- Animation: he,
1519
- getCache: Ft,
1520
- _removeLinkedListItem: ke,
1521
- reverting: function() {
1522
- return W;
1523
- },
1524
- context: function(t) {
1525
- return t && R && (R.data.push(t), t._ctx = R), R;
1526
- },
1527
- suppressOverwrites: function(t) {
1528
- return ei = t;
1529
- }
1530
- }
1531
- };
1532
- Q("to,from,fromTo,delayedCall,set,killTweensOf", function(f) {
1533
- return Se[f] = U[f];
1534
- });
1535
- et.add(H.updateRoot);
1536
- Xt = Se.to({}, {
1537
- duration: 0
1538
- });
1539
- var Vn = function(t, e) {
1540
- for (var i = t._pt; i && i.p !== e && i.op !== e && i.fp !== e; )
1541
- i = i._next;
1542
- return i;
1543
- }, Un = function(t, e) {
1544
- var i = t._targets, r, n, s;
1545
- for (r in e)
1546
- for (n = i.length; n--; )
1547
- s = t._ptLookup[n][r], s && (s = s.d) && (s._pt && (s = Vn(s, r)), s && s.modifier && s.modifier(e[r], t, i[n], r));
1548
- }, Ie = function(t, e) {
1549
- return {
1550
- name: t,
1551
- headless: 1,
1552
- rawVars: 1,
1553
- //don't pre-process function-based values or "random()" strings.
1554
- init: function(r, n, s) {
1555
- s._onInit = function(a) {
1556
- var o, u;
1557
- if (q(n) && (o = {}, Q(n, function(l) {
1558
- return o[l] = 1;
1559
- }), n = o), e) {
1560
- o = {};
1561
- for (u in n)
1562
- o[u] = e(n[u]);
1563
- n = o;
1564
- }
1565
- Un(a, n);
1566
- };
1567
- }
1568
- };
1569
- }, J = Se.registerPlugin({
1570
- name: "attr",
1571
- init: function(t, e, i, r, n) {
1572
- var s, a, o;
1573
- this.tween = i;
1574
- for (s in e)
1575
- o = t.getAttribute(s) || "", a = this.add(t, "setAttribute", (o || 0) + "", e[s], r, n, 0, 0, s), a.op = s, a.b = o, this._props.push(s);
1576
- },
1577
- render: function(t, e) {
1578
- for (var i = e._pt; i; )
1579
- W ? i.set(i.t, i.p, i.b, i) : i.r(t, i.d), i = i._next;
1580
- }
1581
- }, {
1582
- name: "endArray",
1583
- headless: 1,
1584
- init: function(t, e) {
1585
- for (var i = e.length; i--; )
1586
- this.add(t, i, t[i] || 0, e[i], 0, 0, 0, 0, 0, 1);
1587
- }
1588
- }, Ie("roundProps", $e), Ie("modifiers"), Ie("snap", fr)) || Se;
1589
- U.version = H.version = J.version = "3.15.0";
1590
- Hi = 1;
1591
- ri() && Qt();
1592
- k.Power0;
1593
- k.Power1;
1594
- k.Power2;
1595
- k.Power3;
1596
- k.Power4;
1597
- k.Linear;
1598
- k.Quad;
1599
- k.Cubic;
1600
- k.Quart;
1601
- k.Quint;
1602
- k.Strong;
1603
- k.Elastic;
1604
- k.Back;
1605
- k.SteppedEase;
1606
- k.Bounce;
1607
- k.Sine;
1608
- k.Expo;
1609
- k.Circ;
1610
- /*!
1611
- * CSSPlugin 3.15.0
1612
- * https://gsap.com
1613
- *
1614
- * Copyright 2008-2026, GreenSock. All rights reserved.
1615
- * Subject to the terms at https://gsap.com/standard-license
1616
- * @author: Jack Doyle, jack@greensock.com
1617
- */
1618
- var Ai, Tt, Wt, pi, zt, Ei, mi, Yn = function() {
1619
- return typeof window < "u";
1620
- }, vt = {}, Et = 180 / Math.PI, Gt = Math.PI / 180, Ut = Math.atan2, zi = 1e8, gi = /([A-Z])/g, Xn = /(left|right|width|margin|padding|x)/i, qn = /[\s,\(]\S/, ct = {
1621
- autoAlpha: "opacity,visibility",
1622
- scale: "scaleX,scaleY",
1623
- alpha: "opacity"
1624
- }, Qe = function(t, e) {
1625
- return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u, e);
1626
- }, Wn = function(t, e) {
1627
- return e.set(e.t, e.p, t === 1 ? e.e : Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u, e);
1628
- }, Gn = function(t, e) {
1629
- return e.set(e.t, e.p, t ? Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u : e.b, e);
1630
- }, $n = function(t, e) {
1631
- return e.set(e.t, e.p, t === 1 ? e.e : t ? Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u : e.b, e);
1632
- }, Hn = function(t, e) {
1633
- var i = e.s + e.c * t;
1634
- e.set(e.t, e.p, ~~(i + (i < 0 ? -0.5 : 0.5)) + e.u, e);
1635
- }, Cr = function(t, e) {
1636
- return e.set(e.t, e.p, t ? e.e : e.b, e);
1637
- }, Mr = function(t, e) {
1638
- return e.set(e.t, e.p, t !== 1 ? e.b : e.e, e);
1639
- }, Kn = function(t, e, i) {
1640
- return t.style[e] = i;
1641
- }, Qn = function(t, e, i) {
1642
- return t.style.setProperty(e, i);
1643
- }, Zn = function(t, e, i) {
1644
- return t._gsap[e] = i;
1645
- }, jn = function(t, e, i) {
1646
- return t._gsap.scaleX = t._gsap.scaleY = i;
1647
- }, Jn = function(t, e, i, r, n) {
1648
- var s = t._gsap;
1649
- s.scaleX = s.scaleY = i, s.renderTransform(n, s);
1650
- }, ts = function(t, e, i, r, n) {
1651
- var s = t._gsap;
1652
- s[e] = i, s.renderTransform(n, s);
1653
- }, z = "transform", j = z + "Origin", es = function f(t, e) {
1654
- var i = this, r = this.target, n = r.style, s = r._gsap;
1655
- if (t in vt && n) {
1656
- if (this.tfm = this.tfm || {}, t !== "transform")
1657
- t = ct[t] || t, ~t.indexOf(",") ? t.split(",").forEach(function(a) {
1658
- return i.tfm[a] = gt(r, a);
1659
- }) : this.tfm[t] = s.x ? s[t] : gt(r, t), t === j && (this.tfm.zOrigin = s.zOrigin);
1660
- else
1661
- return ct.transform.split(",").forEach(function(a) {
1662
- return f.call(i, a, e);
1663
- });
1664
- if (this.props.indexOf(z) >= 0)
1665
- return;
1666
- s.svg && (this.svgo = r.getAttribute("data-svg-origin"), this.props.push(j, e, "")), t = z;
1667
- }
1668
- (n || e) && this.props.push(t, e, n[t]);
1669
- }, Dr = function(t) {
1670
- t.translate && (t.removeProperty("translate"), t.removeProperty("scale"), t.removeProperty("rotate"));
1671
- }, is = function() {
1672
- var t = this.props, e = this.target, i = e.style, r = e._gsap, n, s;
1673
- for (n = 0; n < t.length; n += 3)
1674
- 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(gi, "-$1").toLowerCase());
1675
- if (this.tfm) {
1676
- for (s in this.tfm)
1677
- r[s] = this.tfm[s];
1678
- r.svg && (r.renderTransform(), e.setAttribute("data-svg-origin", this.svgo || "")), n = mi(), (!n || !n.isStart) && !i[z] && (Dr(i), r.zOrigin && i[j] && (i[j] += " " + r.zOrigin + "px", r.zOrigin = 0, r.renderTransform()), r.uncache = 1);
1679
- }
1680
- }, Rr = function(t, e) {
1681
- var i = {
1682
- target: t,
1683
- props: [],
1684
- revert: is,
1685
- save: es
1686
- };
1687
- return t._gsap || J.core.getCache(t), e && t.style && t.nodeType && e.split(",").forEach(function(r) {
1688
- return i.save(r);
1689
- }), i;
1690
- }, Ar, Ze = function(t, e) {
1691
- var i = Tt.createElementNS ? Tt.createElementNS((e || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), t) : Tt.createElement(t);
1692
- return i && i.style ? i : Tt.createElement(t);
1693
- }, rt = function f(t, e, i) {
1694
- var r = getComputedStyle(t);
1695
- return r[e] || r.getPropertyValue(e.replace(gi, "-$1").toLowerCase()) || r.getPropertyValue(e) || !i && f(t, Zt(e) || e, 1) || "";
1696
- }, Fi = "O,Moz,ms,Ms,Webkit".split(","), Zt = function(t, e, i) {
1697
- var r = e || zt, n = r.style, s = 5;
1698
- if (t in n && !i)
1699
- return t;
1700
- for (t = t.charAt(0).toUpperCase() + t.substr(1); s-- && !(Fi[s] + t in n); )
1701
- ;
1702
- return s < 0 ? null : (s === 3 ? "ms" : s >= 0 ? Fi[s] : "") + t;
1703
- }, je = function() {
1704
- Yn() && window.document && (Ai = window, Tt = Ai.document, Wt = Tt.documentElement, zt = Ze("div") || {
1705
- style: {}
1706
- }, Ze("div"), z = Zt(z), j = z + "Origin", zt.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", Ar = !!Zt("perspective"), mi = J.core.reverting, pi = 1);
1707
- }, Ni = function(t) {
1708
- var e = t.ownerSVGElement, i = Ze("svg", e && e.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), r = t.cloneNode(!0), n;
1709
- r.style.display = "block", i.appendChild(r), Wt.appendChild(i);
1710
- try {
1711
- n = r.getBBox();
1712
- } catch {
1713
- }
1714
- return i.removeChild(r), Wt.removeChild(i), n;
1715
- }, Li = function(t, e) {
1716
- for (var i = e.length; i--; )
1717
- if (t.hasAttribute(e[i]))
1718
- return t.getAttribute(e[i]);
1719
- }, Er = function(t) {
1720
- var e, i;
1721
- try {
1722
- e = t.getBBox();
1723
- } catch {
1724
- e = Ni(t), i = 1;
1725
- }
1726
- return e && (e.width || e.height) || i || (e = Ni(t)), e && !e.width && !e.x && !e.y ? {
1727
- x: +Li(t, ["x", "cx", "x1"]) || 0,
1728
- y: +Li(t, ["y", "cy", "y1"]) || 0,
1729
- width: 0,
1730
- height: 0
1731
- } : e;
1732
- }, zr = function(t) {
1733
- return !!(t.getCTM && (!t.parentNode || t.ownerSVGElement) && Er(t));
1734
- }, Ot = function(t, e) {
1735
- if (e) {
1736
- var i = t.style, r;
1737
- e in vt && e !== j && (e = z), i.removeProperty ? (r = e.substr(0, 2), (r === "ms" || e.substr(0, 6) === "webkit") && (e = "-" + e), i.removeProperty(r === "--" ? e : e.replace(gi, "-$1").toLowerCase())) : i.removeAttribute(e);
1738
- }
1739
- }, bt = function(t, e, i, r, n, s) {
1740
- var a = new Z(t._pt, e, i, 0, 1, s ? Mr : Cr);
1741
- return t._pt = a, a.b = r, a.e = n, t._props.push(i), a;
1742
- }, Ii = {
1743
- deg: 1,
1744
- rad: 1,
1745
- turn: 1
1746
- }, rs = {
1747
- grid: 1,
1748
- flex: 1
1749
- }, kt = function f(t, e, i, r) {
1750
- var n = parseFloat(i) || 0, s = (i + "").trim().substr((n + "").length) || "px", a = zt.style, o = Xn.test(e), u = t.tagName.toLowerCase() === "svg", l = (u ? "client" : "offset") + (o ? "Width" : "Height"), _ = 100, c = r === "px", d = r === "%", p, h, m, v;
1751
- if (r === s || !n || Ii[r] || Ii[s])
1752
- return n;
1753
- if (s !== "px" && !c && (n = f(t, e, i, "px")), v = t.getCTM && zr(t), (d || s === "%") && (vt[e] || ~e.indexOf("adius")))
1754
- return p = v ? t.getBBox()[o ? "width" : "height"] : t[l], V(d ? n / p * _ : n / 100 * p);
1755
- if (a[o ? "width" : "height"] = _ + (c ? s : r), h = r !== "rem" && ~e.indexOf("adius") || r === "em" && t.appendChild && !u ? t : t.parentNode, v && (h = (t.ownerSVGElement || {}).parentNode), (!h || h === Tt || !h.appendChild) && (h = Tt.body), m = h._gsap, m && d && m.width && o && m.time === et.time && !m.uncache)
1756
- return V(n / m.width * _);
1757
- if (d && (e === "height" || e === "width")) {
1758
- var g = t.style[e];
1759
- t.style[e] = _ + r, p = t[l], g ? t.style[e] = g : Ot(t, e);
1760
- } else
1761
- (d || s === "%") && !rs[rt(h, "display")] && (a.position = rt(t, "position")), h === t && (a.position = "static"), h.appendChild(zt), p = zt[l], h.removeChild(zt), a.position = "absolute";
1762
- return o && d && (m = Ft(h), m.time = et.time, m.width = h[l]), V(c ? p * n / _ : p && n ? _ / p * n : 0);
1763
- }, gt = function(t, e, i, r) {
1764
- var n;
1765
- return pi || je(), e in ct && e !== "transform" && (e = ct[e], ~e.indexOf(",") && (e = e.split(",")[0])), vt[e] && e !== "transform" ? (n = ce(t, r), n = e !== "transformOrigin" ? n[e] : n.svg ? n.origin : Oe(rt(t, j)) + " " + n.zOrigin + "px") : (n = t.style[e], (!n || n === "auto" || r || ~(n + "").indexOf("calc(")) && (n = Pe[e] && Pe[e](t, e, i) || rt(t, e) || ji(t, e) || (e === "opacity" ? 1 : 0))), i && !~(n + "").trim().indexOf(" ") ? kt(t, e, n, i) + i : n;
1766
- }, ns = function(t, e, i, r) {
1767
- if (!i || i === "none") {
1768
- var n = Zt(e, t, 1), s = n && rt(t, n, 1);
1769
- s && s !== i ? (e = n, i = s) : e === "borderColor" && (i = rt(t, "borderTopColor"));
1770
- }
1771
- var a = new Z(this._pt, t.style, e, 0, 1, Pr), o = 0, u = 0, l, _, c, d, p, h, m, v, g, x, T, y;
1772
- if (a.b = i, a.e = r, i += "", r += "", r.substring(0, 6) === "var(--" && (r = rt(t, r.substring(4, r.indexOf(")")))), r === "auto" && (h = t.style[e], t.style[e] = r, r = rt(t, e) || r, h ? t.style[e] = h : Ot(t, e)), l = [i, r], gr(l), i = l[0], r = l[1], c = i.match(Yt) || [], y = r.match(Yt) || [], y.length) {
1773
- for (; _ = Yt.exec(r); )
1774
- m = _[0], g = r.substring(o, _.index), p ? p = (p + 1) % 5 : (g.substr(-5) === "rgba(" || g.substr(-5) === "hsla(") && (p = 1), m !== (h = c[u++] || "") && (d = parseFloat(h) || 0, T = h.substr((d + "").length), m.charAt(1) === "=" && (m = qt(d, m) + T), v = parseFloat(m), x = m.substr((v + "").length), o = Yt.lastIndex - x.length, x || (x = x || nt.units[e] || T, o === r.length && (r += x, a.e += x)), T !== x && (d = kt(t, e, h, x) || 0), a._pt = {
1775
- _next: a._pt,
1776
- p: g || u === 1 ? g : ",",
1777
- //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.
1778
- s: d,
1779
- c: v - d,
1780
- m: p && p < 4 || e === "zIndex" ? Math.round : 0
1781
- });
1782
- a.c = o < r.length ? r.substring(o, r.length) : "";
1783
- } else
1784
- a.r = e === "display" && r === "none" ? Mr : Cr;
1785
- return $i.test(r) && (a.e = 0), this._pt = a, a;
1786
- }, Bi = {
1787
- top: "0%",
1788
- bottom: "100%",
1789
- left: "0%",
1790
- right: "100%",
1791
- center: "50%"
1792
- }, ss = function(t) {
1793
- var e = t.split(" "), i = e[0], r = e[1] || "50%";
1794
- return (i === "top" || i === "bottom" || r === "left" || r === "right") && (t = i, i = r, r = t), e[0] = Bi[i] || i, e[1] = Bi[r] || r, e.join(" ");
1795
- }, as = function(t, e) {
1796
- if (e.tween && e.tween._time === e.tween._dur) {
1797
- var i = e.t, r = i.style, n = e.u, s = i._gsap, a, o, u;
1798
- if (n === "all" || n === !0)
1799
- r.cssText = "", o = 1;
1800
- else
1801
- for (n = n.split(","), u = n.length; --u > -1; )
1802
- a = n[u], vt[a] && (o = 1, a = a === "transformOrigin" ? j : z), Ot(i, a);
1803
- o && (Ot(i, z), s && (s.svg && i.removeAttribute("transform"), r.scale = r.rotate = r.translate = "none", ce(i, 1), s.uncache = 1, Dr(r)));
1804
- }
1805
- }, Pe = {
1806
- clearProps: function(t, e, i, r, n) {
1807
- if (n.data !== "isFromStart") {
1808
- var s = t._pt = new Z(t._pt, e, i, 0, 0, as);
1809
- return s.u = r, s.pr = -10, s.tween = n, t._props.push(i), 1;
1810
- }
1811
- }
1812
- /* className feature (about 0.4kb gzipped).
1813
- , className(plugin, target, property, endValue, tween) {
1814
- let _renderClassName = (ratio, data) => {
1815
- data.css.render(ratio, data.css);
1816
- if (!ratio || ratio === 1) {
1817
- let inline = data.rmv,
1818
- target = data.t,
1819
- p;
1820
- target.setAttribute("class", ratio ? data.e : data.b);
1821
- for (p in inline) {
1822
- _removeProperty(target, p);
1823
- }
1824
- }
1825
- },
1826
- _getAllStyles = (target) => {
1827
- let styles = {},
1828
- computed = getComputedStyle(target),
1829
- p;
1830
- for (p in computed) {
1831
- if (isNaN(p) && p !== "cssText" && p !== "length") {
1832
- styles[p] = computed[p];
1833
- }
1834
- }
1835
- _setDefaults(styles, _parseTransform(target, 1));
1836
- return styles;
1837
- },
1838
- startClassList = target.getAttribute("class"),
1839
- style = target.style,
1840
- cssText = style.cssText,
1841
- cache = target._gsap,
1842
- classPT = cache.classPT,
1843
- inlineToRemoveAtEnd = {},
1844
- data = {t:target, plugin:plugin, rmv:inlineToRemoveAtEnd, b:startClassList, e:(endValue.charAt(1) !== "=") ? endValue : startClassList.replace(new RegExp("(?:\\s|^)" + endValue.substr(2) + "(?![\\w-])"), "") + ((endValue.charAt(0) === "+") ? " " + endValue.substr(2) : "")},
1845
- changingVars = {},
1846
- startVars = _getAllStyles(target),
1847
- transformRelated = /(transform|perspective)/i,
1848
- endVars, p;
1849
- if (classPT) {
1850
- classPT.r(1, classPT.d);
1851
- _removeLinkedListItem(classPT.d.plugin, classPT, "_pt");
1852
- }
1853
- target.setAttribute("class", data.e);
1854
- endVars = _getAllStyles(target, true);
1855
- target.setAttribute("class", startClassList);
1856
- for (p in endVars) {
1857
- if (endVars[p] !== startVars[p] && !transformRelated.test(p)) {
1858
- changingVars[p] = endVars[p];
1859
- if (!style[p] && style[p] !== "0") {
1860
- inlineToRemoveAtEnd[p] = 1;
1861
- }
1862
- }
1863
- }
1864
- cache.classPT = plugin._pt = new PropTween(plugin._pt, target, "className", 0, 0, _renderClassName, data, 0, -11);
1865
- if (style.cssText !== cssText) { //only apply if things change. Otherwise, in cases like a background-image that's pulled dynamically, it could cause a refresh. See https://gsap.com/forums/topic/20368-possible-gsap-bug-switching-classnames-in-chrome/.
1866
- style.cssText = cssText; //we recorded cssText before we swapped classes and ran _getAllStyles() because in cases when a className tween is overwritten, we remove all the related tweening properties from that class change (otherwise class-specific stuff can't override properties we've directly set on the target's style object due to specificity).
1867
- }
1868
- _parseTransform(target, true); //to clear the caching of transforms
1869
- data.css = new gsap.plugins.css();
1870
- data.css.init(target, changingVars, tween);
1871
- plugin._props.push(...data.css._props);
1872
- return 1;
1873
- }
1874
- */
1875
- }, _e = [1, 0, 0, 1, 0, 0], Fr = {}, Nr = function(t) {
1876
- return t === "matrix(1, 0, 0, 1, 0, 0)" || t === "none" || !t;
1877
- }, Vi = function(t) {
1878
- var e = rt(t, z);
1879
- return Nr(e) ? _e : e.substr(7).match(Gi).map(V);
1880
- }, yi = function(t, e) {
1881
- var i = t._gsap || Ft(t), r = t.style, n = Vi(t), s, a, o, u;
1882
- return i.svg && t.getAttribute("transform") ? (o = t.transform.baseVal.consolidate().matrix, n = [o.a, o.b, o.c, o.d, o.e, o.f], n.join(",") === "1,0,0,1,0,0" ? _e : n) : (n === _e && !t.offsetParent && t !== Wt && !i.svg && (o = r.display, r.display = "block", s = t.parentNode, (!s || !t.offsetParent && !t.getBoundingClientRect().width) && (u = 1, a = t.nextElementSibling, Wt.appendChild(t)), n = Vi(t), o ? r.display = o : Ot(t, "display"), u && (a ? s.insertBefore(t, a) : s ? s.appendChild(t) : Wt.removeChild(t))), e && n.length > 6 ? [n[0], n[1], n[4], n[5], n[12], n[13]] : n);
1883
- }, Je = function(t, e, i, r, n, s) {
1884
- var a = t._gsap, o = n || yi(t, !0), u = a.xOrigin || 0, l = a.yOrigin || 0, _ = a.xOffset || 0, c = a.yOffset || 0, d = o[0], p = o[1], h = o[2], m = o[3], v = o[4], g = o[5], x = e.split(" "), T = parseFloat(x[0]) || 0, y = parseFloat(x[1]) || 0, P, b, S, w;
1885
- i ? o !== _e && (b = d * m - p * h) && (S = T * (m / b) + y * (-h / b) + (h * g - m * v) / b, w = T * (-p / b) + y * (d / b) - (d * g - p * v) / b, T = S, y = w) : (P = Er(t), T = P.x + (~x[0].indexOf("%") ? T / 100 * P.width : T), y = P.y + (~(x[1] || x[0]).indexOf("%") ? y / 100 * P.height : y)), r || r !== !1 && a.smooth ? (v = T - u, g = y - l, a.xOffset = _ + (v * d + g * h) - v, a.yOffset = c + (v * p + g * m) - g) : a.xOffset = a.yOffset = 0, a.xOrigin = T, a.yOrigin = y, a.smooth = !!r, a.origin = e, a.originIsAbsolute = !!i, t.style[j] = "0px 0px", s && (bt(s, a, "xOrigin", u, T), bt(s, a, "yOrigin", l, y), bt(s, a, "xOffset", _, a.xOffset), bt(s, a, "yOffset", c, a.yOffset)), t.setAttribute("data-svg-origin", T + " " + y);
1886
- }, ce = function(t, e) {
1887
- var i = t._gsap || new vr(t);
1888
- if ("x" in i && !e && !i.uncache)
1889
- return i;
1890
- var r = t.style, n = i.scaleX < 0, s = "px", a = "deg", o = getComputedStyle(t), u = rt(t, j) || "0", l, _, c, d, p, h, m, v, g, x, T, y, P, b, S, w, O, I, F, D, N, X, Y, B, ot, Vt, jt, Jt, Mt, vi, pt, Dt;
1891
- return l = _ = c = h = m = v = g = x = T = 0, d = p = 1, i.svg = !!(t.getCTM && zr(t)), o.translate && ((o.translate !== "none" || o.scale !== "none" || o.rotate !== "none") && (r[z] = (o.translate !== "none" ? "translate3d(" + (o.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (o.rotate !== "none" ? "rotate(" + o.rotate + ") " : "") + (o.scale !== "none" ? "scale(" + o.scale.split(" ").join(",") + ") " : "") + (o[z] !== "none" ? o[z] : "")), r.scale = r.rotate = r.translate = "none"), b = yi(t, i.svg), i.svg && (i.uncache ? (ot = t.getBBox(), u = i.xOrigin - ot.x + "px " + (i.yOrigin - ot.y) + "px", B = "") : B = !e && t.getAttribute("data-svg-origin"), Je(t, B || u, !!B || i.originIsAbsolute, i.smooth !== !1, b)), y = i.xOrigin || 0, P = i.yOrigin || 0, b !== _e && (I = b[0], F = b[1], D = b[2], N = b[3], l = X = b[4], _ = Y = b[5], b.length === 6 ? (d = Math.sqrt(I * I + F * F), p = Math.sqrt(N * N + D * D), h = I || F ? Ut(F, I) * Et : 0, g = D || N ? Ut(D, N) * Et + h : 0, g && (p *= Math.abs(Math.cos(g * Gt))), i.svg && (l -= y - (y * I + P * D), _ -= P - (y * F + P * N))) : (Dt = b[6], vi = b[7], jt = b[8], Jt = b[9], Mt = b[10], pt = b[11], l = b[12], _ = b[13], c = b[14], S = Ut(Dt, Mt), m = S * Et, S && (w = Math.cos(-S), O = Math.sin(-S), B = X * w + jt * O, ot = Y * w + Jt * O, Vt = Dt * w + Mt * O, jt = X * -O + jt * w, Jt = Y * -O + Jt * w, Mt = Dt * -O + Mt * w, pt = vi * -O + pt * w, X = B, Y = ot, Dt = Vt), S = Ut(-D, Mt), v = S * Et, S && (w = Math.cos(-S), O = Math.sin(-S), B = I * w - jt * O, ot = F * w - Jt * O, Vt = D * w - Mt * O, pt = N * O + pt * w, I = B, F = ot, D = Vt), S = Ut(F, I), h = S * Et, S && (w = Math.cos(S), O = Math.sin(S), B = I * w + F * O, ot = X * w + Y * O, F = F * w - I * O, Y = Y * w - X * O, I = B, X = ot), m && Math.abs(m) + Math.abs(h) > 359.9 && (m = h = 0, v = 180 - v), d = V(Math.sqrt(I * I + F * F + D * D)), p = V(Math.sqrt(Y * Y + Dt * Dt)), S = Ut(X, Y), g = Math.abs(S) > 2e-4 ? S * Et : 0, T = pt ? 1 / (pt < 0 ? -pt : pt) : 0), i.svg && (B = t.getAttribute("transform"), i.forceCSS = t.setAttribute("transform", "") || !Nr(rt(t, z)), B && t.setAttribute("transform", B))), Math.abs(g) > 90 && Math.abs(g) < 270 && (n ? (d *= -1, g += h <= 0 ? 180 : -180, h += h <= 0 ? 180 : -180) : (p *= -1, g += g <= 0 ? 180 : -180)), e = e || i.uncache, i.x = l - ((i.xPercent = l && (!e && i.xPercent || (Math.round(t.offsetWidth / 2) === Math.round(-l) ? -50 : 0))) ? t.offsetWidth * i.xPercent / 100 : 0) + s, i.y = _ - ((i.yPercent = _ && (!e && i.yPercent || (Math.round(t.offsetHeight / 2) === Math.round(-_) ? -50 : 0))) ? t.offsetHeight * i.yPercent / 100 : 0) + s, i.z = c + s, i.scaleX = V(d), i.scaleY = V(p), i.rotation = V(h) + a, i.rotationX = V(m) + a, i.rotationY = V(v) + a, i.skewX = g + a, i.skewY = x + a, i.transformPerspective = T + s, (i.zOrigin = parseFloat(u.split(" ")[2]) || !e && i.zOrigin || 0) && (r[j] = Oe(u)), i.xOffset = i.yOffset = 0, i.force3D = nt.force3D, i.renderTransform = i.svg ? us : Ar ? Lr : os, i.uncache = 0, i;
1892
- }, Oe = function(t) {
1893
- return (t = t.split(" "))[0] + " " + t[1];
1894
- }, Be = function(t, e, i) {
1895
- var r = G(e);
1896
- return V(parseFloat(e) + parseFloat(kt(t, "x", i + "px", r))) + r;
1897
- }, os = function(t, e) {
1898
- e.z = "0px", e.rotationY = e.rotationX = "0deg", e.force3D = 0, Lr(t, e);
1899
- }, Rt = "0deg", te = "0px", At = ") ", Lr = function(t, e) {
1900
- var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, o = i.z, u = i.rotation, l = i.rotationY, _ = i.rotationX, c = i.skewX, d = i.skewY, p = i.scaleX, h = i.scaleY, m = i.transformPerspective, v = i.force3D, g = i.target, x = i.zOrigin, T = "", y = v === "auto" && t && t !== 1 || v === !0;
1901
- if (x && (_ !== Rt || l !== Rt)) {
1902
- var P = parseFloat(l) * Gt, b = Math.sin(P), S = Math.cos(P), w;
1903
- P = parseFloat(_) * Gt, w = Math.cos(P), s = Be(g, s, b * w * -x), a = Be(g, a, -Math.sin(P) * -x), o = Be(g, o, S * w * -x + x);
1904
- }
1905
- m !== te && (T += "perspective(" + m + At), (r || n) && (T += "translate(" + r + "%, " + n + "%) "), (y || s !== te || a !== te || o !== te) && (T += o !== te || y ? "translate3d(" + s + ", " + a + ", " + o + ") " : "translate(" + s + ", " + a + At), u !== Rt && (T += "rotate(" + u + At), l !== Rt && (T += "rotateY(" + l + At), _ !== Rt && (T += "rotateX(" + _ + At), (c !== Rt || d !== Rt) && (T += "skew(" + c + ", " + d + At), (p !== 1 || h !== 1) && (T += "scale(" + p + ", " + h + At), g.style[z] = T || "translate(0, 0)";
1906
- }, us = function(t, e) {
1907
- var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, o = i.rotation, u = i.skewX, l = i.skewY, _ = i.scaleX, c = i.scaleY, d = i.target, p = i.xOrigin, h = i.yOrigin, m = i.xOffset, v = i.yOffset, g = i.forceCSS, x = parseFloat(s), T = parseFloat(a), y, P, b, S, w;
1908
- o = parseFloat(o), u = parseFloat(u), l = parseFloat(l), l && (l = parseFloat(l), u += l, o += l), o || u ? (o *= Gt, u *= Gt, y = Math.cos(o) * _, P = Math.sin(o) * _, b = Math.sin(o - u) * -c, S = Math.cos(o - u) * c, u && (l *= Gt, w = Math.tan(u - l), w = Math.sqrt(1 + w * w), b *= w, S *= w, l && (w = Math.tan(l), w = Math.sqrt(1 + w * w), y *= w, P *= w)), y = V(y), P = V(P), b = V(b), S = V(S)) : (y = _, S = c, P = b = 0), (x && !~(s + "").indexOf("px") || T && !~(a + "").indexOf("px")) && (x = kt(d, "x", s, "px"), T = kt(d, "y", a, "px")), (p || h || m || v) && (x = V(x + p - (p * y + h * b) + m), T = V(T + h - (p * P + h * S) + v)), (r || n) && (w = d.getBBox(), x = V(x + r / 100 * w.width), T = V(T + n / 100 * w.height)), w = "matrix(" + y + "," + P + "," + b + "," + S + "," + x + "," + T + ")", d.setAttribute("transform", w), g && (d.style[z] = w);
1909
- }, fs = function(t, e, i, r, n) {
1910
- var s = 360, a = q(n), o = parseFloat(n) * (a && ~n.indexOf("rad") ? Et : 1), u = o - r, l = r + u + "deg", _, c;
1911
- return a && (_ = n.split("_")[1], _ === "short" && (u %= s, u !== u % (s / 2) && (u += u < 0 ? s : -s)), _ === "cw" && u < 0 ? u = (u + s * zi) % s - ~~(u / s) * s : _ === "ccw" && u > 0 && (u = (u - s * zi) % s - ~~(u / s) * s)), t._pt = c = new Z(t._pt, e, i, r, u, Wn), c.e = l, c.u = "deg", t._props.push(i), c;
1912
- }, Ui = function(t, e) {
1913
- for (var i in e)
1914
- t[i] = e[i];
1915
- return t;
1916
- }, ls = function(t, e, i) {
1917
- var r = Ui({}, i._gsap), n = "perspective,force3D,transformOrigin,svgOrigin", s = i.style, a, o, u, l, _, c, d, p;
1918
- r.svg ? (u = i.getAttribute("transform"), i.setAttribute("transform", ""), s[z] = e, a = ce(i, 1), Ot(i, z), i.setAttribute("transform", u)) : (u = getComputedStyle(i)[z], s[z] = e, a = ce(i, 1), s[z] = u);
1919
- for (o in vt)
1920
- u = r[o], l = a[o], u !== l && n.indexOf(o) < 0 && (d = G(u), p = G(l), _ = d !== p ? kt(i, o, u, p) : parseFloat(u), c = parseFloat(l), t._pt = new Z(t._pt, a, o, _, c - _, Qe), t._pt.u = p || 0, t._props.push(o));
1921
- Ui(a, r);
1922
- };
1923
- Q("padding,margin,Width,Radius", function(f, t) {
1924
- 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) {
1925
- return t < 2 ? f + a : "border" + a + f;
1926
- });
1927
- Pe[t > 1 ? "border" + f : f] = function(a, o, u, l, _) {
1928
- var c, d;
1929
- if (arguments.length < 4)
1930
- return c = s.map(function(p) {
1931
- return gt(a, p, u);
1932
- }), d = c.join(" "), d.split(c[0]).length === 5 ? c[0] : d;
1933
- c = (l + "").split(" "), d = {}, s.forEach(function(p, h) {
1934
- return d[p] = c[h] = c[h] || c[(h - 1) / 2 | 0];
1935
- }), a.init(o, d, _);
1936
- };
1937
- });
1938
- var Ir = {
1939
- name: "css",
1940
- register: je,
1941
- targetTest: function(t) {
1942
- return t.style && t.nodeType;
1943
- },
1944
- init: function(t, e, i, r, n) {
1945
- var s = this._props, a = t.style, o = i.vars.startAt, u, l, _, c, d, p, h, m, v, g, x, T, y, P, b, S, w;
1946
- pi || je(), this.styles = this.styles || Rr(t), S = this.styles.props, this.tween = i;
1947
- for (h in e)
1948
- if (h !== "autoRound" && (l = e[h], !(tt[h] && xr(h, e, i, r, t, n)))) {
1949
- if (d = typeof l, p = Pe[h], d === "function" && (l = l.call(i, r, t, n), d = typeof l), d === "string" && ~l.indexOf("random(") && (l = fe(l)), p)
1950
- p(this, t, h, l, i) && (b = 1);
1951
- else if (h.substr(0, 2) === "--")
1952
- u = (getComputedStyle(t).getPropertyValue(h) + "").trim(), l += "", St.lastIndex = 0, St.test(u) || (m = G(u), v = G(l), v ? m !== v && (u = kt(t, h, u, v) + v) : m && (l += m)), this.add(a, "setProperty", u, l, r, n, 0, 0, h), s.push(h), S.push(h, 0, a[h]);
1953
- else if (d !== "undefined") {
1954
- if (o && h in o ? (u = typeof o[h] == "function" ? o[h].call(i, r, t, n) : o[h], q(u) && ~u.indexOf("random(") && (u = fe(u)), G(u + "") || u === "auto" || (u += nt.units[h] || G(gt(t, h)) || ""), (u + "").charAt(1) === "=" && (u = gt(t, h))) : u = gt(t, h), c = parseFloat(u), g = d === "string" && l.charAt(1) === "=" && l.substr(0, 2), g && (l = l.substr(2)), _ = parseFloat(l), h in ct && (h === "autoAlpha" && (c === 1 && gt(t, "visibility") === "hidden" && _ && (c = 0), S.push("visibility", 0, a.visibility), bt(this, a, "visibility", c ? "inherit" : "hidden", _ ? "inherit" : "hidden", !_)), h !== "scale" && h !== "transform" && (h = ct[h], ~h.indexOf(",") && (h = h.split(",")[0]))), x = h in vt, x) {
1955
- if (this.styles.save(h), w = l, d === "string" && l.substring(0, 6) === "var(--") {
1956
- if (l = rt(t, l.substring(4, l.indexOf(")"))), l.substring(0, 5) === "calc(") {
1957
- var O = t.style.perspective;
1958
- t.style.perspective = l, l = rt(t, "perspective"), O ? t.style.perspective = O : Ot(t, "perspective");
1959
- }
1960
- _ = parseFloat(l);
1961
- }
1962
- if (T || (y = t._gsap, y.renderTransform && !e.parseTransform || ce(t, e.parseTransform), P = e.smoothOrigin !== !1 && y.smooth, T = this._pt = new Z(this._pt, a, z, 0, 1, y.renderTransform, y, 0, -1), T.dep = 1), h === "scale")
1963
- this._pt = new Z(this._pt, y, "scaleY", y.scaleY, (g ? qt(y.scaleY, g + _) : _) - y.scaleY || 0, Qe), this._pt.u = 0, s.push("scaleY", h), h += "X";
1964
- else if (h === "transformOrigin") {
1965
- S.push(j, 0, a[j]), l = ss(l), y.svg ? Je(t, l, 0, P, 0, this) : (v = parseFloat(l.split(" ")[2]) || 0, v !== y.zOrigin && bt(this, y, "zOrigin", y.zOrigin, v), bt(this, a, h, Oe(u), Oe(l)));
1966
- continue;
1967
- } else if (h === "svgOrigin") {
1968
- Je(t, l, 1, P, 0, this);
1969
- continue;
1970
- } else if (h in Fr) {
1971
- fs(this, y, h, c, g ? qt(c, g + l) : l);
1972
- continue;
1973
- } else if (h === "smoothOrigin") {
1974
- bt(this, y, "smooth", y.smooth, l);
1975
- continue;
1976
- } else if (h === "force3D") {
1977
- y[h] = l;
1978
- continue;
1979
- } else if (h === "transform") {
1980
- ls(this, l, t);
1981
- continue;
1982
- }
1983
- } else h in a || (h = Zt(h) || h);
1984
- if (x || (_ || _ === 0) && (c || c === 0) && !qn.test(l) && h in a)
1985
- m = (u + "").substr((c + "").length), _ || (_ = 0), v = G(l) || (h in nt.units ? nt.units[h] : m), m !== v && (c = kt(t, h, u, v)), this._pt = new Z(this._pt, x ? y : a, h, c, (g ? qt(c, g + _) : _) - c, !x && (v === "px" || h === "zIndex") && e.autoRound !== !1 ? Hn : Qe), this._pt.u = v || 0, x && w !== l ? (this._pt.b = u, this._pt.e = w, this._pt.r = $n) : m !== v && v !== "%" && (this._pt.b = u, this._pt.r = Gn);
1986
- else if (h in a)
1987
- ns.call(this, t, h, u, g ? g + l : l);
1988
- else if (h in t)
1989
- this.add(t, h, u || t[h], g ? g + l : l, r, n);
1990
- else if (h !== "parseTransform") {
1991
- si(h, l);
1992
- continue;
1993
- }
1994
- x || (h in a ? S.push(h, 0, a[h]) : typeof t[h] == "function" ? S.push(h, 2, t[h]()) : S.push(h, 1, u || t[h])), s.push(h);
1995
- }
1996
- }
1997
- b && Or(this);
1998
- },
1999
- render: function(t, e) {
2000
- if (e.tween._time || !mi())
2001
- for (var i = e._pt; i; )
2002
- i.r(t, i.d), i = i._next;
2003
- else
2004
- e.styles.revert();
2005
- },
2006
- get: gt,
2007
- aliases: ct,
2008
- getSetter: function(t, e, i) {
2009
- var r = ct[e];
2010
- return r && r.indexOf(",") < 0 && (e = r), e in vt && e !== j && (t._gsap.x || gt(t, "x")) ? i && Ei === i ? e === "scale" ? jn : Zn : (Ei = i || {}) && (e === "scale" ? Jn : ts) : t.style && !ii(t.style[e]) ? Kn : ~e.indexOf("-") ? Qn : ci(t, e);
2011
- },
2012
- core: {
2013
- _removeProperty: Ot,
2014
- _getMatrix: yi
2015
- }
2016
- };
2017
- J.utils.checkPrefix = Zt;
2018
- J.core.getStyleSaver = Rr;
2019
- (function(f, t, e, i) {
2020
- var r = Q(f + "," + t + "," + e, function(n) {
2021
- vt[n] = 1;
2022
- });
2023
- Q(t, function(n) {
2024
- nt.units[n] = "deg", Fr[n] = 1;
2025
- }), ct[r[13]] = f + "," + t, Q(i, function(n) {
2026
- var s = n.split(":");
2027
- ct[s[1]] = r[s[0]];
2028
- });
2029
- })("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");
2030
- Q("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective", function(f) {
2031
- nt.units[f] = "px";
2032
- });
2033
- J.registerPlugin(Ir);
2034
- var ti = J.registerPlugin(Ir) || J;
2035
- ti.core.Tween;
2036
- const hs = { class: "seamless-scroll" }, _s = {
2037
- key: 0,
2038
- class: "seamless-scroll__box-bottom"
2039
- }, Yi = {
2040
- __name: "InfiniteScrollingTable",
2041
- props: {
2042
- // 滑动单位距离需要的时间(s)
2043
- duration: {
2044
- type: Number,
2045
- default: 2
2046
- },
2047
- // 两次滑动之间的停顿时长(s)
2048
- delay: {
2049
- type: Number,
2050
- default: 1
2051
- }
2052
- },
2053
- setup(f) {
2054
- const t = f, e = pe(null), i = pe(null), r = pe(null), { height: n } = Re(e), { height: s } = Re(i), { height: a } = Re(r), o = ti.timeline();
2055
- let u = 0;
2056
- const l = () => {
2057
- if (!r.value)
2058
- return;
2059
- const g = Array.from(r.value.childNodes).filter(
2060
- (w) => w.nodeType === Node.ELEMENT_NODE
2061
- ), x = g[u];
2062
- if (u = (u + 1) % g.length, !x)
2063
- return;
2064
- const T = x.getBoundingClientRect().height, P = x.offsetTop + T, b = a.value, S = P >= b;
2065
- o.to(
2066
- e.value,
2067
- {
2068
- scrollTop: S ? b : P,
2069
- duration: t.duration
2070
- },
2071
- `+=${t.delay}`
2072
- );
2073
- }, _ = () => {
2074
- o.eventCallback("onComplete", () => {
2075
- if (u === 0) {
2076
- ti.to(e.value, {
2077
- scrollTop: 0,
2078
- duration: 0,
2079
- onComplete: () => {
2080
- l();
2081
- }
2082
- });
2083
- return;
2084
- }
2085
- l();
2086
- }), l();
2087
- }, c = xi(() => a.value && n.value && s.value && s.value > n.value);
2088
- Br(() => {
2089
- c.value && Vr(() => _());
2090
- });
2091
- const d = () => {
2092
- o.pause();
2093
- }, p = () => {
2094
- o.resume();
2095
- }, h = pe(0), m = xi(() => h.value % 2 !== 0), v = () => {
2096
- if (!r.value)
2097
- return;
2098
- const g = Array.from(r.value.childNodes).filter(
2099
- (x) => x.nodeType === Node.ELEMENT_NODE
2100
- );
2101
- h.value = g.length;
2102
- };
2103
- return qr(
2104
- r,
2105
- () => {
2106
- v();
2107
- },
2108
- {
2109
- childList: !0
2110
- }
2111
- ), Ur(() => {
2112
- v();
2113
- }), (g, x) => (Ti(), bi("div", hs, [
2114
- De("div", {
2115
- ref_key: "wrapperRef",
2116
- ref: e,
2117
- class: "seamless-scroll__wrapper",
2118
- onMouseover: d,
2119
- onMouseout: p
2120
- }, [
2121
- De("div", {
2122
- ref_key: "boxRef",
2123
- ref: i,
2124
- class: Yr({
2125
- "seamless-scroll__box": !0,
2126
- "seamless-scroll__box--odd": m.value,
2127
- "seamless-scroll__box--even": !m.value
2128
- })
2129
- }, [
2130
- De("div", {
2131
- class: "seamless-scroll__box-top",
2132
- ref_key: "topRef",
2133
- ref: r
2134
- }, [
2135
- wi(g.$slots, "default")
2136
- ], 512),
2137
- c.value ? (Ti(), bi("div", _s, [
2138
- wi(g.$slots, "default")
2139
- ])) : Xr("", !0)
2140
- ], 2)
2141
- ], 544)
2142
- ]));
2143
- }
2144
- };
2145
- Yi.install = (f) => {
2146
- f.component("InfiniteScrollingTable", Yi);
2147
- };
2148
- export {
2149
- Yi as default
2150
- };