@ssgoi/core 2.5.6 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/animator/animation.d.ts +57 -0
- package/dist/animator/animation.d.ts.map +1 -0
- package/dist/animator/index.d.ts +4 -3
- package/dist/animator/index.d.ts.map +1 -1
- package/dist/animator/multi-animator.d.ts +98 -0
- package/dist/animator/multi-animator.d.ts.map +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +603 -658
- package/dist/transition/create-transition-callback.d.ts +2 -1
- package/dist/transition/create-transition-callback.d.ts.map +1 -1
- package/dist/transition/transition-scope.d.ts +36 -0
- package/dist/transition/transition-scope.d.ts.map +1 -0
- package/dist/transition/transition-strategy.d.ts +20 -9
- package/dist/transition/transition-strategy.d.ts.map +1 -1
- package/dist/transition/transition.d.ts.map +1 -1
- package/dist/transitions/blur.d.ts +5 -5
- package/dist/transitions/blur.d.ts.map +1 -1
- package/dist/transitions/bounce.d.ts +5 -5
- package/dist/transitions/bounce.d.ts.map +1 -1
- package/dist/transitions/fade.d.ts +5 -5
- package/dist/transitions/fade.d.ts.map +1 -1
- package/dist/transitions/fly.d.ts +5 -5
- package/dist/transitions/fly.d.ts.map +1 -1
- package/dist/transitions/index.cjs +1 -1
- package/dist/transitions/index.js +206 -207
- package/dist/transitions/mask.d.ts +5 -5
- package/dist/transitions/mask.d.ts.map +1 -1
- package/dist/transitions/none.d.ts +3 -3
- package/dist/transitions/none.d.ts.map +1 -1
- package/dist/transitions/rotate.d.ts +5 -5
- package/dist/transitions/rotate.d.ts.map +1 -1
- package/dist/transitions/scale.d.ts +5 -5
- package/dist/transitions/scale.d.ts.map +1 -1
- package/dist/transitions/slide.d.ts +5 -5
- package/dist/transitions/slide.d.ts.map +1 -1
- package/dist/types.cjs +1 -1
- package/dist/types.d.ts +91 -78
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +60 -11
- package/dist/view-transitions/blind.d.ts +0 -1
- package/dist/view-transitions/blind.d.ts.map +1 -1
- package/dist/view-transitions/fade.d.ts.map +1 -1
- package/dist/view-transitions/index.cjs +13 -13
- package/dist/view-transitions/index.js +472 -479
- package/dist/view-transitions/scroll.d.ts.map +1 -1
- package/dist/view-transitions/slide.d.ts.map +1 -1
- package/dist/view-transitions/strip.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/animator/animation-scheduler.d.ts +0 -34
- package/dist/animator/animation-scheduler.d.ts.map +0 -1
- package/dist/test-utils.d.ts +0 -46
- package/dist/test-utils.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import {
|
|
5
|
-
import { isCssAnimation as
|
|
6
|
-
import { j as
|
|
7
|
-
class
|
|
1
|
+
var K = Object.defineProperty;
|
|
2
|
+
var U = (n, e, t) => e in n ? K(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var d = (n, e, t) => U(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { normalizeToMultiSpring as k, normalizeMultiSpringSchedule as F } from "./types.js";
|
|
5
|
+
import { isCssAnimation as kt, isMultiSpring as Vt, isSingleSpring as bt, isTickAnimation as It, validateAnimationMode as Rt, validateSpringItem as Pt } from "./types.js";
|
|
6
|
+
import { j as Mt } from "./jaemin-BWkrXq0V.js";
|
|
7
|
+
class G {
|
|
8
8
|
constructor() {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
d(this, "listeners", /* @__PURE__ */ new Set());
|
|
10
|
+
d(this, "rafId", null);
|
|
11
|
+
d(this, "isRunning", !1);
|
|
12
12
|
// Timing
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
d(this, "startTime", Date.now());
|
|
14
|
+
d(this, "lastUpdate", this.startTime);
|
|
15
|
+
d(this, "elapsed", 0);
|
|
16
16
|
// Lag smoothing (mobile optimization)
|
|
17
|
-
|
|
17
|
+
d(this, "lagThreshold", 500);
|
|
18
18
|
// ms - detect tab switches, backgrounding
|
|
19
|
-
|
|
19
|
+
d(this, "adjustedLag", 33);
|
|
20
20
|
// ms - max time jump to prevent animation skip
|
|
21
|
-
|
|
21
|
+
d(this, "maxDeltaTime", 33);
|
|
22
22
|
// ms - clamp for physics stability (30fps minimum)
|
|
23
23
|
// FPS throttling
|
|
24
|
-
|
|
24
|
+
d(this, "gap", 1e3 / 240);
|
|
25
25
|
// max 240fps
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
const
|
|
32
|
-
if (
|
|
33
|
-
const s =
|
|
34
|
-
this.elapsed =
|
|
26
|
+
d(this, "nextTime", this.gap);
|
|
27
|
+
d(this, "tick", () => {
|
|
28
|
+
const e = Date.now();
|
|
29
|
+
let i = e - this.lastUpdate;
|
|
30
|
+
i > this.lagThreshold || i < 0 ? (this.startTime += i - this.adjustedLag, i = this.adjustedLag) : i > this.maxDeltaTime && (i = this.maxDeltaTime), this.lastUpdate = e;
|
|
31
|
+
const r = e - this.startTime, o = r - this.nextTime;
|
|
32
|
+
if (o > 0) {
|
|
33
|
+
const s = i / 1e3;
|
|
34
|
+
this.elapsed = r / 1e3, this.nextTime += o + (o >= this.gap ? 4 : this.gap - o), this.listeners.forEach((a) => {
|
|
35
35
|
a(s, this.elapsed);
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
this.listeners.size > 0 ? this.rafId = requestAnimationFrame(this.tick) : (this.isRunning = !1, this.rafId = null);
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
subscribe(
|
|
42
|
-
return this.listeners.add(
|
|
43
|
-
this.unsubscribe(
|
|
41
|
+
subscribe(e) {
|
|
42
|
+
return this.listeners.add(e), this.isRunning || (this.isRunning = !0, this.rafId = requestAnimationFrame(this.tick)), () => {
|
|
43
|
+
this.unsubscribe(e);
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
unsubscribe(
|
|
47
|
-
this.listeners.delete(
|
|
46
|
+
unsubscribe(e) {
|
|
47
|
+
this.listeners.delete(e), this.listeners.size === 0 && this.rafId !== null && (cancelAnimationFrame(this.rafId), this.isRunning = !1, this.rafId = null);
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* Configure lag smoothing behavior
|
|
51
51
|
* @param threshold - Time threshold to detect lag (default: 500ms)
|
|
52
52
|
* @param adjustedLag - Max time jump when lag detected (default: 33ms)
|
|
53
53
|
*/
|
|
54
|
-
lagSmoothing(
|
|
55
|
-
this.lagThreshold =
|
|
54
|
+
lagSmoothing(e, t) {
|
|
55
|
+
this.lagThreshold = e, this.adjustedLag = Math.min(t, e);
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
58
|
* Set maximum FPS
|
|
59
59
|
* @param fps - Target FPS (default: 240)
|
|
60
60
|
*/
|
|
61
|
-
fps(
|
|
62
|
-
this.gap = 1e3 /
|
|
61
|
+
fps(e) {
|
|
62
|
+
this.gap = 1e3 / e, this.nextTime = this.elapsed * 1e3 + this.gap;
|
|
63
63
|
}
|
|
64
64
|
getListenerCount() {
|
|
65
65
|
return this.listeners.size;
|
|
@@ -68,71 +68,71 @@ class B {
|
|
|
68
68
|
return this.elapsed;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
const
|
|
71
|
+
const P = new G();
|
|
72
72
|
function z(n) {
|
|
73
|
-
const
|
|
74
|
-
return { omega:
|
|
73
|
+
const e = n.stiffness, t = n.damping, i = 1, r = Math.sqrt(e / i), o = t / (2 * Math.sqrt(e * i));
|
|
74
|
+
return { omega: r, zeta: o };
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
const { omega:
|
|
76
|
+
function q(n, e, t, i) {
|
|
77
|
+
const { omega: r, zeta: o } = t, { position: s, velocity: a } = n, c = Math.min(i, 0.033), l = -2 * c * o * r * a, f = c * r * r * (e - s), w = a + l + f;
|
|
78
78
|
return {
|
|
79
|
-
position: s + c *
|
|
80
|
-
velocity:
|
|
79
|
+
position: s + c * w,
|
|
80
|
+
velocity: w
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
const
|
|
84
|
-
function
|
|
85
|
-
const
|
|
86
|
-
return
|
|
83
|
+
const B = 0.01, J = 0.01, H = 0.05;
|
|
84
|
+
function N(n, e) {
|
|
85
|
+
const t = Math.abs(e - n.position), i = Math.abs(n.velocity);
|
|
86
|
+
return t < B && i < J;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Q(n) {
|
|
89
89
|
const {
|
|
90
|
-
from:
|
|
91
|
-
to:
|
|
92
|
-
spring:
|
|
93
|
-
velocity:
|
|
94
|
-
onUpdate:
|
|
90
|
+
from: e,
|
|
91
|
+
to: t,
|
|
92
|
+
spring: i,
|
|
93
|
+
velocity: r = 0,
|
|
94
|
+
onUpdate: o,
|
|
95
95
|
onComplete: s,
|
|
96
96
|
onStart: a
|
|
97
97
|
} = n;
|
|
98
|
-
let c = { position:
|
|
99
|
-
const
|
|
100
|
-
if (
|
|
101
|
-
if (
|
|
102
|
-
if (
|
|
103
|
-
c = { position:
|
|
98
|
+
let c = { position: e, velocity: r }, l = !0, f = 0, w = !1;
|
|
99
|
+
const u = z(i), h = (p) => {
|
|
100
|
+
if (l) {
|
|
101
|
+
if (w || (w = !0, a == null || a()), c = q(c, t, u, p), N(c, t)) {
|
|
102
|
+
if (f += Math.min(p, 0.033), f >= H) {
|
|
103
|
+
c = { position: t, velocity: 0 }, l = !1, o(c.position), P.unsubscribe(h), s();
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
106
|
} else
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
f = 0;
|
|
108
|
+
o(c.position);
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
|
-
return
|
|
111
|
+
return P.subscribe(h), {
|
|
112
112
|
stop: () => {
|
|
113
|
-
|
|
113
|
+
l && (l = !1, P.unsubscribe(h));
|
|
114
114
|
},
|
|
115
115
|
getPosition: () => c.position,
|
|
116
116
|
getVelocity: () => c.velocity,
|
|
117
|
-
isRunning: () =>
|
|
117
|
+
isRunning: () => l
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
|
-
const
|
|
121
|
-
function
|
|
122
|
-
const
|
|
123
|
-
let s = { position: n, velocity:
|
|
120
|
+
const V = 1e3 / 60;
|
|
121
|
+
function Z(n, e, t, i = 0) {
|
|
122
|
+
const r = z(t), o = 600;
|
|
123
|
+
let s = { position: n, velocity: i }, a = 0;
|
|
124
124
|
const c = [];
|
|
125
|
-
for (let
|
|
126
|
-
const
|
|
125
|
+
for (let l = 0; l < o; l++) {
|
|
126
|
+
const f = l * V;
|
|
127
127
|
if (c.push({
|
|
128
|
-
time:
|
|
128
|
+
time: f,
|
|
129
129
|
position: s.position,
|
|
130
130
|
velocity: s.velocity
|
|
131
|
-
}), s =
|
|
132
|
-
if (a +=
|
|
131
|
+
}), s = q(s, e, r, V / 1e3), N(s, e)) {
|
|
132
|
+
if (a += V / 1e3, a >= H) {
|
|
133
133
|
c.push({
|
|
134
|
-
time: (
|
|
135
|
-
position:
|
|
134
|
+
time: (l + 1) * V,
|
|
135
|
+
position: e,
|
|
136
136
|
velocity: 0
|
|
137
137
|
});
|
|
138
138
|
break;
|
|
@@ -142,112 +142,115 @@ function G(n, t, i, e = 0) {
|
|
|
142
142
|
}
|
|
143
143
|
return c;
|
|
144
144
|
}
|
|
145
|
-
function D(n,
|
|
145
|
+
function D(n, e) {
|
|
146
146
|
if (n.length === 0)
|
|
147
147
|
return { position: 0, velocity: 0 };
|
|
148
|
-
const
|
|
149
|
-
if (
|
|
148
|
+
const t = n[0], i = n[n.length - 1];
|
|
149
|
+
if (e <= 0)
|
|
150
|
+
return { position: t.position, velocity: t.velocity };
|
|
151
|
+
if (e >= i.time)
|
|
150
152
|
return { position: i.position, velocity: i.velocity };
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
const m = Math.floor((o + r) / 2);
|
|
156
|
-
n[m].time <= t ? o = m : r = m;
|
|
153
|
+
let r = 0, o = n.length - 1;
|
|
154
|
+
for (; r < o - 1; ) {
|
|
155
|
+
const l = Math.floor((r + o) / 2);
|
|
156
|
+
n[l].time <= e ? r = l : o = l;
|
|
157
157
|
}
|
|
158
|
-
const s = n[
|
|
158
|
+
const s = n[r], a = n[o], c = (e - s.time) / (a.time - s.time);
|
|
159
159
|
return {
|
|
160
160
|
position: s.position + (a.position - s.position) * c,
|
|
161
161
|
velocity: s.velocity + (a.velocity - s.velocity) * c
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
function
|
|
165
|
-
return n.map((
|
|
164
|
+
function tt(n, e) {
|
|
165
|
+
return n.map((t) => e(t.position));
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function et(n) {
|
|
168
168
|
const {
|
|
169
|
-
element:
|
|
170
|
-
from:
|
|
171
|
-
to:
|
|
172
|
-
spring:
|
|
173
|
-
velocity:
|
|
169
|
+
element: e,
|
|
170
|
+
from: t,
|
|
171
|
+
to: i,
|
|
172
|
+
spring: r,
|
|
173
|
+
velocity: o = 0,
|
|
174
174
|
style: s,
|
|
175
175
|
onComplete: a,
|
|
176
176
|
onStart: c
|
|
177
|
-
} = n,
|
|
178
|
-
if (
|
|
177
|
+
} = n, l = Z(t, i, r, o);
|
|
178
|
+
if (l.length === 0)
|
|
179
179
|
return c == null || c(), a(), {
|
|
180
180
|
stop: () => {
|
|
181
181
|
},
|
|
182
|
-
getPosition: () =>
|
|
182
|
+
getPosition: () => i,
|
|
183
183
|
getVelocity: () => 0,
|
|
184
184
|
isRunning: () => !1
|
|
185
185
|
};
|
|
186
|
-
const
|
|
187
|
-
duration:
|
|
186
|
+
const f = tt(l, s), w = l[l.length - 1], u = w.time, h = e.animate(f, {
|
|
187
|
+
duration: u,
|
|
188
188
|
fill: "forwards",
|
|
189
189
|
easing: "linear"
|
|
190
190
|
// Spring physics already applied in keyframes
|
|
191
191
|
});
|
|
192
|
-
let
|
|
193
|
-
const
|
|
194
|
-
return c == null || c(),
|
|
195
|
-
|
|
192
|
+
let p = !0;
|
|
193
|
+
const v = performance.now();
|
|
194
|
+
return c == null || c(), h.onfinish = () => {
|
|
195
|
+
p && (p = !1, a());
|
|
196
196
|
}, {
|
|
197
197
|
stop: () => {
|
|
198
|
-
|
|
198
|
+
p && (p = !1, h.cancel());
|
|
199
199
|
},
|
|
200
200
|
getPosition: () => {
|
|
201
|
-
if (!
|
|
202
|
-
return
|
|
203
|
-
const
|
|
204
|
-
return D(
|
|
201
|
+
if (!p)
|
|
202
|
+
return w.position;
|
|
203
|
+
const y = performance.now() - v;
|
|
204
|
+
return D(l, y).position;
|
|
205
205
|
},
|
|
206
206
|
getVelocity: () => {
|
|
207
|
-
if (!
|
|
207
|
+
if (!p)
|
|
208
208
|
return 0;
|
|
209
|
-
const
|
|
210
|
-
return D(
|
|
209
|
+
const y = performance.now() - v;
|
|
210
|
+
return D(l, y).velocity;
|
|
211
211
|
},
|
|
212
|
-
isRunning: () =>
|
|
212
|
+
isRunning: () => p
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
const { from:
|
|
215
|
+
function it(n) {
|
|
216
|
+
const { from: e, to: t, spring: i, velocity: r, onComplete: o, onStart: s, tick: a, css: c } = n;
|
|
217
217
|
if (a && c)
|
|
218
218
|
throw new Error("Cannot use both 'tick' and 'css' options together");
|
|
219
|
-
return !a && !c ? (s == null || s(),
|
|
219
|
+
return !a && !c ? (s == null || s(), o(), {
|
|
220
220
|
stop: () => {
|
|
221
221
|
},
|
|
222
|
-
getPosition: () =>
|
|
222
|
+
getPosition: () => t,
|
|
223
223
|
getVelocity: () => 0,
|
|
224
224
|
isRunning: () => !1
|
|
225
|
-
}) : c ?
|
|
225
|
+
}) : c ? et({
|
|
226
226
|
element: c.element,
|
|
227
|
-
from:
|
|
228
|
-
to:
|
|
229
|
-
spring:
|
|
230
|
-
velocity:
|
|
227
|
+
from: e,
|
|
228
|
+
to: t,
|
|
229
|
+
spring: i,
|
|
230
|
+
velocity: r,
|
|
231
231
|
style: c.style,
|
|
232
|
-
onComplete:
|
|
232
|
+
onComplete: o,
|
|
233
233
|
onStart: s
|
|
234
|
-
}) :
|
|
235
|
-
from:
|
|
236
|
-
to:
|
|
237
|
-
spring:
|
|
238
|
-
velocity:
|
|
234
|
+
}) : Q({
|
|
235
|
+
from: e,
|
|
236
|
+
to: t,
|
|
237
|
+
spring: i,
|
|
238
|
+
velocity: r,
|
|
239
239
|
onUpdate: a,
|
|
240
|
-
onComplete:
|
|
240
|
+
onComplete: o,
|
|
241
241
|
onStart: s
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
|
-
class
|
|
244
|
+
class Y {
|
|
245
|
+
}
|
|
246
|
+
class I extends Y {
|
|
245
247
|
constructor(t) {
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
248
|
+
super();
|
|
249
|
+
d(this, "options");
|
|
250
|
+
d(this, "controls", null);
|
|
251
|
+
d(this, "isAnimating", !1);
|
|
252
|
+
d(this, "currentValue");
|
|
253
|
+
d(this, "currentVelocity", 0);
|
|
251
254
|
if (t.tick && t.css)
|
|
252
255
|
throw new Error("Cannot use both 'tick' and 'css' options together");
|
|
253
256
|
this.options = {
|
|
@@ -262,7 +265,7 @@ class k {
|
|
|
262
265
|
}, this.currentValue = this.options.from;
|
|
263
266
|
}
|
|
264
267
|
runAnimation(t) {
|
|
265
|
-
this.isAnimating = !0, this.controls =
|
|
268
|
+
this.isAnimating = !0, this.controls = it({
|
|
266
269
|
from: this.currentValue,
|
|
267
270
|
to: t,
|
|
268
271
|
spring: this.options.spring,
|
|
@@ -301,7 +304,6 @@ class k {
|
|
|
301
304
|
}
|
|
302
305
|
getCurrentState() {
|
|
303
306
|
return {
|
|
304
|
-
type: "single",
|
|
305
307
|
position: this.getCurrentValue(),
|
|
306
308
|
velocity: this.getVelocity(),
|
|
307
309
|
from: this.options.from,
|
|
@@ -318,723 +320,666 @@ class k {
|
|
|
318
320
|
this.options = { ...this.options, ...t };
|
|
319
321
|
}
|
|
320
322
|
static fromState(t, i) {
|
|
321
|
-
const
|
|
322
|
-
return
|
|
323
|
+
const r = new I(i);
|
|
324
|
+
return r.setValue(t.position), r.setVelocity(t.velocity), r;
|
|
323
325
|
}
|
|
324
326
|
}
|
|
325
|
-
class
|
|
327
|
+
class R extends Y {
|
|
326
328
|
constructor(t) {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
this
|
|
329
|
+
super();
|
|
330
|
+
d(this, "config");
|
|
331
|
+
d(this, "animators", /* @__PURE__ */ new Map());
|
|
332
|
+
d(this, "springOrder", []);
|
|
333
|
+
d(this, "completedCount", 0);
|
|
334
|
+
d(this, "completedAnimators", /* @__PURE__ */ new Set());
|
|
335
|
+
d(this, "direction", "forward");
|
|
336
|
+
d(this, "idCounter", 0);
|
|
337
|
+
d(this, "rafId", null);
|
|
338
|
+
d(this, "element");
|
|
339
|
+
d(this, "from");
|
|
340
|
+
d(this, "to");
|
|
341
|
+
this.config = t.config, this.from = t.from, this.to = t.to, this.element = t.element, this.initializeAnimators();
|
|
336
342
|
}
|
|
337
343
|
generateId() {
|
|
338
344
|
return `spring_${this.idCounter++}`;
|
|
339
345
|
}
|
|
340
346
|
initializeAnimators() {
|
|
341
347
|
this.config.springs.forEach((t) => {
|
|
342
|
-
const i = this.generateId(),
|
|
343
|
-
from:
|
|
344
|
-
to:
|
|
348
|
+
const i = this.generateId(), r = new I({
|
|
349
|
+
from: this.from,
|
|
350
|
+
to: this.to,
|
|
345
351
|
spring: t.spring,
|
|
346
352
|
tick: t.tick,
|
|
353
|
+
css: t.css && this.element ? { element: this.element, style: t.css } : void 0,
|
|
347
354
|
onComplete: () => this.onAnimatorComplete(i),
|
|
348
355
|
onStart: t.onStart
|
|
349
356
|
});
|
|
350
357
|
this.animators.set(i, {
|
|
351
358
|
id: i,
|
|
352
359
|
item: t,
|
|
353
|
-
animator:
|
|
354
|
-
|
|
360
|
+
animator: r,
|
|
361
|
+
started: !1
|
|
355
362
|
}), this.springOrder.push(i);
|
|
356
363
|
});
|
|
357
364
|
}
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
const a = Math.max(
|
|
374
|
-
...Array.from(this.animators.values()).map((c) => c.item.offset ?? 0)
|
|
375
|
-
);
|
|
376
|
-
return { type: "offset", id: e, delay: a - s };
|
|
377
|
-
});
|
|
365
|
+
/**
|
|
366
|
+
* Calculate progress of an animator (0-1)
|
|
367
|
+
* Progress = |position - from| / |to - from|
|
|
368
|
+
*/
|
|
369
|
+
getAnimatorProgress(t) {
|
|
370
|
+
const i = t.animator.getCurrentState(), r = Math.abs(i.to - i.from);
|
|
371
|
+
return r === 0 ? 1 : Math.abs(i.position - i.from) / r;
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* Get order of springs based on direction
|
|
375
|
+
* Forward: 0, 1, 2, ...
|
|
376
|
+
* Backward: n-1, n-2, ..., 0
|
|
377
|
+
*/
|
|
378
|
+
getOrderedIds() {
|
|
379
|
+
return this.direction === "forward" ? this.springOrder : [...this.springOrder].reverse();
|
|
378
380
|
}
|
|
379
381
|
onAnimatorComplete(t) {
|
|
380
|
-
var
|
|
382
|
+
var r, o, s, a, c, l;
|
|
381
383
|
const i = this.animators.get(t);
|
|
382
|
-
!i || this.completedAnimators.has(t) || (this.completedAnimators.add(t), this.completedCount++, (o = (
|
|
384
|
+
!i || this.completedAnimators.has(t) || (this.completedAnimators.add(t), this.completedCount++, (o = (r = i.item).onComplete) == null || o.call(r), (a = (s = this.config).onProgress) == null || a.call(s, this.completedCount, this.config.springs.length), this.completedCount === this.config.springs.length && (this.stopScheduler(), (l = (c = this.config).onEnd) == null || l.call(c)));
|
|
383
385
|
}
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
if (e) {
|
|
397
|
-
const o = this.animators.get(e);
|
|
398
|
-
o && o.startTime === null && this.startBackwardAnimator(e);
|
|
386
|
+
/**
|
|
387
|
+
* Check and start springs based on previous spring's progress
|
|
388
|
+
* Called on each frame while animation is running
|
|
389
|
+
*/
|
|
390
|
+
checkAndStartSprings() {
|
|
391
|
+
const t = this.getOrderedIds();
|
|
392
|
+
for (let i = 0; i < t.length; i++) {
|
|
393
|
+
const r = t[i], o = this.animators.get(r);
|
|
394
|
+
if (!o || o.started) continue;
|
|
395
|
+
if (i === 0) {
|
|
396
|
+
this.startAnimator(r);
|
|
397
|
+
continue;
|
|
399
398
|
}
|
|
399
|
+
const s = t[i - 1], a = this.animators.get(s);
|
|
400
|
+
if (!a || !a.started) continue;
|
|
401
|
+
const c = this.getAnimatorProgress(a), l = o.item.normalizedOffset;
|
|
402
|
+
c >= l && this.startAnimator(r);
|
|
400
403
|
}
|
|
401
404
|
}
|
|
402
405
|
startAnimator(t) {
|
|
403
406
|
const i = this.animators.get(t);
|
|
404
|
-
!i || i.
|
|
407
|
+
!i || i.started || (i.started = !0, this.direction === "forward" ? i.animator.forward() : i.animator.backward());
|
|
405
408
|
}
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
+
/**
|
|
410
|
+
* Start the scheduler loop that checks spring progress
|
|
411
|
+
*/
|
|
412
|
+
startScheduler() {
|
|
413
|
+
const t = () => {
|
|
414
|
+
this.checkAndStartSprings(), this.getIsAnimating() && (this.rafId = requestAnimationFrame(t));
|
|
415
|
+
};
|
|
416
|
+
this.rafId = requestAnimationFrame(t);
|
|
417
|
+
}
|
|
418
|
+
stopScheduler() {
|
|
419
|
+
this.rafId !== null && (cancelAnimationFrame(this.rafId), this.rafId = null);
|
|
420
|
+
}
|
|
421
|
+
getFirstAnimator() {
|
|
422
|
+
var i;
|
|
423
|
+
const t = this.springOrder[0];
|
|
424
|
+
return t ? ((i = this.animators.get(t)) == null ? void 0 : i.animator) ?? null : null;
|
|
409
425
|
}
|
|
410
426
|
forward() {
|
|
411
|
-
var
|
|
412
|
-
this.stop(), this.direction = "forward", this.completedCount = 0, this.completedAnimators.clear(), (
|
|
413
|
-
if (o.type !== "wait")
|
|
414
|
-
if (o.delay === 0)
|
|
415
|
-
this.startAnimator(o.id);
|
|
416
|
-
else {
|
|
417
|
-
const r = window.setTimeout(
|
|
418
|
-
() => this.startAnimator(o.id),
|
|
419
|
-
o.delay
|
|
420
|
-
);
|
|
421
|
-
this.timeoutIds.push(r);
|
|
422
|
-
}
|
|
423
|
-
});
|
|
427
|
+
var t, i;
|
|
428
|
+
this.stop(), this.direction = "forward", this.completedCount = 0, this.completedAnimators.clear(), this.resetStartedFlags(), (i = (t = this.config).onStart) == null || i.call(t), this.startScheduler();
|
|
424
429
|
}
|
|
425
430
|
backward() {
|
|
426
|
-
var
|
|
427
|
-
this.stop(), this.direction = "backward", this.completedCount = 0, this.completedAnimators.clear(), (
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
const r = window.setTimeout(
|
|
433
|
-
() => this.startBackwardAnimator(o.id),
|
|
434
|
-
o.delay
|
|
435
|
-
);
|
|
436
|
-
this.timeoutIds.push(r);
|
|
437
|
-
}
|
|
431
|
+
var t, i;
|
|
432
|
+
this.stop(), this.direction = "backward", this.completedCount = 0, this.completedAnimators.clear(), this.resetStartedFlags(), (i = (t = this.config).onStart) == null || i.call(t), this.startScheduler();
|
|
433
|
+
}
|
|
434
|
+
resetStartedFlags() {
|
|
435
|
+
this.animators.forEach((t) => {
|
|
436
|
+
t.started = !1;
|
|
438
437
|
});
|
|
439
438
|
}
|
|
440
439
|
stop() {
|
|
441
|
-
this.
|
|
442
|
-
t.animator.stop(), t.
|
|
440
|
+
this.stopScheduler(), this.animators.forEach((t) => {
|
|
441
|
+
t.animator.stop(), t.started = !1;
|
|
443
442
|
});
|
|
444
443
|
}
|
|
445
444
|
reverse() {
|
|
446
445
|
this.direction = this.direction === "forward" ? "backward" : "forward", this.animators.forEach((t) => {
|
|
447
|
-
if (t.
|
|
446
|
+
if (!t.started)
|
|
448
447
|
return;
|
|
449
448
|
const i = t.animator.getCurrentState();
|
|
450
|
-
if (i.type !== "single")
|
|
451
|
-
return;
|
|
452
449
|
if (i.position === i.to) {
|
|
453
|
-
const o =
|
|
454
|
-
{ position:
|
|
450
|
+
const o = t.item.css && this.element ? { element: this.element, style: t.item.css } : void 0, s = I.fromState(
|
|
451
|
+
{ position: this.to, velocity: 0 },
|
|
455
452
|
{
|
|
456
|
-
from:
|
|
457
|
-
to:
|
|
453
|
+
from: this.to,
|
|
454
|
+
to: this.from,
|
|
458
455
|
spring: t.item.spring,
|
|
459
456
|
tick: t.item.tick,
|
|
457
|
+
css: o,
|
|
460
458
|
onComplete: () => this.onAnimatorComplete(t.id),
|
|
461
459
|
onStart: t.item.onStart
|
|
462
460
|
}
|
|
463
461
|
);
|
|
464
|
-
|
|
462
|
+
s.forward(), t.animator = s;
|
|
465
463
|
} else
|
|
466
464
|
t.animator.reverse();
|
|
467
465
|
});
|
|
468
466
|
}
|
|
469
467
|
getCurrentState() {
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
468
|
+
const t = this.getFirstAnimator();
|
|
469
|
+
return t ? t.getCurrentState() : {
|
|
470
|
+
position: 0,
|
|
471
|
+
velocity: 0,
|
|
472
|
+
from: 0,
|
|
473
|
+
to: 1
|
|
475
474
|
};
|
|
476
475
|
}
|
|
476
|
+
/**
|
|
477
|
+
* Get current position value from first animator
|
|
478
|
+
*/
|
|
479
|
+
getCurrentValue() {
|
|
480
|
+
const t = this.getFirstAnimator();
|
|
481
|
+
return (t == null ? void 0 : t.getCurrentValue()) ?? 0;
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* Get current velocity from first animator
|
|
485
|
+
*/
|
|
486
|
+
getVelocity() {
|
|
487
|
+
const t = this.getFirstAnimator();
|
|
488
|
+
return (t == null ? void 0 : t.getVelocity()) ?? 0;
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* Set position value on first animator
|
|
492
|
+
* TODO: Support per-spring control
|
|
493
|
+
*/
|
|
494
|
+
setValue(t) {
|
|
495
|
+
const i = this.getFirstAnimator();
|
|
496
|
+
i == null || i.setValue(t);
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Set velocity on first animator
|
|
500
|
+
* TODO: Support per-spring control
|
|
501
|
+
*/
|
|
502
|
+
setVelocity(t) {
|
|
503
|
+
const i = this.getFirstAnimator();
|
|
504
|
+
i == null || i.setVelocity(t);
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* Check if any animation is currently running
|
|
508
|
+
*/
|
|
509
|
+
getIsAnimating() {
|
|
510
|
+
for (const t of this.animators.values())
|
|
511
|
+
if (t.animator.getIsAnimating())
|
|
512
|
+
return !0;
|
|
513
|
+
return !1;
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* Create MultiAnimator from existing state
|
|
517
|
+
* Uses first animator's state for initialization
|
|
518
|
+
*/
|
|
519
|
+
static fromState(t, i) {
|
|
520
|
+
const r = new R(i);
|
|
521
|
+
return r.setValue(t.position), r.setVelocity(t.velocity), r;
|
|
522
|
+
}
|
|
477
523
|
}
|
|
478
|
-
const X = Symbol.for("TRANSITION_STRATEGY"),
|
|
479
|
-
runIn: async (
|
|
480
|
-
const { currentAnimation:
|
|
481
|
-
if (
|
|
482
|
-
const
|
|
483
|
-
if (
|
|
484
|
-
return i.controller.reverse(), {
|
|
485
|
-
state: {
|
|
486
|
-
position: 0,
|
|
487
|
-
velocity: 0
|
|
488
|
-
},
|
|
489
|
-
from: 0,
|
|
490
|
-
to: 1,
|
|
491
|
-
direction: "forward"
|
|
492
|
-
};
|
|
493
|
-
if (t.out) {
|
|
494
|
-
const a = await t.out, { from: c = 1, to: m = 0 } = a;
|
|
524
|
+
const X = Symbol.for("TRANSITION_STRATEGY"), nt = (n) => ({
|
|
525
|
+
runIn: async (e) => {
|
|
526
|
+
const { currentAnimation: t } = n;
|
|
527
|
+
if (t && t.direction === "out") {
|
|
528
|
+
const r = t.controller.getCurrentValue(), o = t.controller.getVelocity();
|
|
529
|
+
if (t.controller.stop(), e.out)
|
|
495
530
|
return {
|
|
496
|
-
config:
|
|
497
|
-
state: {
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
},
|
|
501
|
-
from: c,
|
|
502
|
-
// OUT animation's from
|
|
503
|
-
to: m,
|
|
504
|
-
// OUT animation's to
|
|
531
|
+
config: await e.out,
|
|
532
|
+
state: { position: r, velocity: o },
|
|
533
|
+
from: 1,
|
|
534
|
+
to: 0,
|
|
505
535
|
direction: "backward"
|
|
506
536
|
// Will actually go 0→1 (backward means toward 'from')
|
|
507
537
|
};
|
|
508
|
-
}
|
|
509
538
|
}
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
};
|
|
521
|
-
if ("springs" in e)
|
|
522
|
-
return {
|
|
523
|
-
config: e,
|
|
524
|
-
state: {
|
|
525
|
-
position: 0,
|
|
526
|
-
velocity: 0
|
|
527
|
-
},
|
|
528
|
-
from: 0,
|
|
529
|
-
to: 1,
|
|
530
|
-
direction: "forward"
|
|
531
|
-
};
|
|
532
|
-
const { from: o = 0, to: r = 1 } = e;
|
|
533
|
-
return {
|
|
534
|
-
config: e,
|
|
539
|
+
return e.in ? {
|
|
540
|
+
config: await e.in,
|
|
541
|
+
state: {
|
|
542
|
+
position: 0,
|
|
543
|
+
velocity: 0
|
|
544
|
+
},
|
|
545
|
+
from: 0,
|
|
546
|
+
to: 1,
|
|
547
|
+
direction: "forward"
|
|
548
|
+
} : {
|
|
535
549
|
state: {
|
|
536
|
-
position:
|
|
550
|
+
position: 0,
|
|
537
551
|
velocity: 0
|
|
538
552
|
},
|
|
539
|
-
from:
|
|
540
|
-
to:
|
|
553
|
+
from: 0,
|
|
554
|
+
to: 1,
|
|
541
555
|
direction: "forward"
|
|
542
556
|
};
|
|
543
557
|
},
|
|
544
|
-
runOut: async (
|
|
545
|
-
const { currentAnimation:
|
|
546
|
-
if (
|
|
547
|
-
const
|
|
548
|
-
if (
|
|
549
|
-
return i.controller.reverse(), {
|
|
550
|
-
state: {
|
|
551
|
-
position: 1,
|
|
552
|
-
velocity: 0
|
|
553
|
-
},
|
|
554
|
-
from: 1,
|
|
555
|
-
to: 0,
|
|
556
|
-
direction: "forward"
|
|
557
|
-
};
|
|
558
|
-
if (t.in) {
|
|
559
|
-
const a = await t.in, { from: c = 0, to: m = 1 } = a;
|
|
558
|
+
runOut: async (e) => {
|
|
559
|
+
const { currentAnimation: t } = n;
|
|
560
|
+
if (t && t.direction === "in") {
|
|
561
|
+
const r = t.controller.getCurrentValue(), o = t.controller.getVelocity();
|
|
562
|
+
if (t.controller.stop(), e.in)
|
|
560
563
|
return {
|
|
561
|
-
config:
|
|
562
|
-
state: {
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
},
|
|
566
|
-
from: c,
|
|
567
|
-
// IN animation's from
|
|
568
|
-
to: m,
|
|
569
|
-
// IN animation's to
|
|
564
|
+
config: await e.in,
|
|
565
|
+
state: { position: r, velocity: o },
|
|
566
|
+
from: 0,
|
|
567
|
+
to: 1,
|
|
570
568
|
direction: "backward"
|
|
571
569
|
// Will actually go 1→0 (backward means toward 'from')
|
|
572
570
|
};
|
|
573
|
-
}
|
|
574
571
|
}
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
return {
|
|
578
|
-
state: {
|
|
579
|
-
position: 1,
|
|
580
|
-
velocity: 0
|
|
581
|
-
},
|
|
582
|
-
from: 1,
|
|
583
|
-
to: 0,
|
|
584
|
-
direction: "forward"
|
|
585
|
-
};
|
|
586
|
-
if ("springs" in e)
|
|
587
|
-
return {
|
|
588
|
-
config: e,
|
|
589
|
-
state: {
|
|
590
|
-
position: 1,
|
|
591
|
-
velocity: 0
|
|
592
|
-
},
|
|
593
|
-
from: 1,
|
|
594
|
-
to: 0,
|
|
595
|
-
direction: "forward"
|
|
596
|
-
};
|
|
597
|
-
const { from: o = 1, to: r = 0 } = e;
|
|
598
|
-
return {
|
|
599
|
-
config: e,
|
|
572
|
+
return e.out ? {
|
|
573
|
+
config: await e.out,
|
|
600
574
|
state: {
|
|
601
|
-
position:
|
|
575
|
+
position: 1,
|
|
602
576
|
velocity: 0
|
|
603
577
|
},
|
|
604
|
-
from:
|
|
605
|
-
to:
|
|
578
|
+
from: 1,
|
|
579
|
+
to: 0,
|
|
606
580
|
direction: "forward"
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
}), it = () => ({
|
|
610
|
-
runIn: async (n) => {
|
|
611
|
-
const t = await n.in;
|
|
612
|
-
if (!t)
|
|
613
|
-
return {
|
|
614
|
-
state: {
|
|
615
|
-
position: 0,
|
|
616
|
-
velocity: 0
|
|
617
|
-
},
|
|
618
|
-
from: 0,
|
|
619
|
-
to: 1,
|
|
620
|
-
direction: "forward"
|
|
621
|
-
};
|
|
622
|
-
if ("springs" in t)
|
|
623
|
-
return {
|
|
624
|
-
config: t,
|
|
625
|
-
state: {
|
|
626
|
-
position: 0,
|
|
627
|
-
velocity: 0
|
|
628
|
-
},
|
|
629
|
-
from: 0,
|
|
630
|
-
to: 1,
|
|
631
|
-
direction: "forward"
|
|
632
|
-
};
|
|
633
|
-
const { from: i = 0, to: e = 1 } = t;
|
|
634
|
-
return {
|
|
635
|
-
config: t,
|
|
581
|
+
} : {
|
|
636
582
|
state: {
|
|
637
|
-
position:
|
|
583
|
+
position: 1,
|
|
638
584
|
velocity: 0
|
|
639
585
|
},
|
|
640
|
-
from:
|
|
641
|
-
to:
|
|
586
|
+
from: 1,
|
|
587
|
+
to: 0,
|
|
642
588
|
direction: "forward"
|
|
643
589
|
};
|
|
590
|
+
}
|
|
591
|
+
}), ot = () => ({
|
|
592
|
+
runIn: async (n) => n.in ? {
|
|
593
|
+
config: await n.in,
|
|
594
|
+
state: {
|
|
595
|
+
position: 0,
|
|
596
|
+
velocity: 0
|
|
597
|
+
},
|
|
598
|
+
from: 0,
|
|
599
|
+
to: 1,
|
|
600
|
+
direction: "forward"
|
|
601
|
+
} : {
|
|
602
|
+
state: {
|
|
603
|
+
position: 0,
|
|
604
|
+
velocity: 0
|
|
605
|
+
},
|
|
606
|
+
from: 0,
|
|
607
|
+
to: 1,
|
|
608
|
+
direction: "forward"
|
|
644
609
|
},
|
|
645
|
-
runOut: async (n) => {
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
610
|
+
runOut: async (n) => n.out ? {
|
|
611
|
+
config: await n.out,
|
|
612
|
+
state: {
|
|
613
|
+
position: 1,
|
|
614
|
+
velocity: 0
|
|
615
|
+
},
|
|
616
|
+
from: 1,
|
|
617
|
+
to: 0,
|
|
618
|
+
direction: "forward"
|
|
619
|
+
} : {
|
|
620
|
+
state: {
|
|
621
|
+
position: 1,
|
|
622
|
+
velocity: 0
|
|
623
|
+
},
|
|
624
|
+
from: 1,
|
|
625
|
+
to: 0,
|
|
626
|
+
direction: "forward"
|
|
627
|
+
}
|
|
628
|
+
}), $ = "data-ssgoi-scope", j = "data-ssgoi-scope-ready";
|
|
629
|
+
function St() {
|
|
630
|
+
return (n) => {
|
|
631
|
+
if (n)
|
|
632
|
+
return n.setAttribute($, ""), queueMicrotask(() => {
|
|
633
|
+
queueMicrotask(() => {
|
|
634
|
+
n.setAttribute(j, "true");
|
|
635
|
+
});
|
|
636
|
+
}), () => {
|
|
667
637
|
};
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
}
|
|
680
|
-
});
|
|
681
|
-
function et(n, t) {
|
|
682
|
-
var h;
|
|
683
|
-
let i = null, e = null, o = null, r = null;
|
|
638
|
+
};
|
|
639
|
+
}
|
|
640
|
+
function rt(n) {
|
|
641
|
+
return n.hasAttribute(j);
|
|
642
|
+
}
|
|
643
|
+
function st(n) {
|
|
644
|
+
return n.closest(`[${$}]`);
|
|
645
|
+
}
|
|
646
|
+
function ct(n, e) {
|
|
647
|
+
var w;
|
|
648
|
+
let t = null, i = null, r = null, o = null;
|
|
684
649
|
const s = {
|
|
685
650
|
get currentAnimation() {
|
|
686
|
-
return
|
|
651
|
+
return t;
|
|
687
652
|
}
|
|
688
|
-
}, a = ((
|
|
689
|
-
var
|
|
690
|
-
|
|
691
|
-
const
|
|
692
|
-
if (!
|
|
653
|
+
}, a = ((w = e == null ? void 0 : e.strategy) == null ? void 0 : w.call(e, s)) || nt(s), c = async (u) => {
|
|
654
|
+
var E;
|
|
655
|
+
i && (i.remove(), i = null);
|
|
656
|
+
const h = n(), p = h.in && h.in(u), v = !(e != null && e.strategy) && h.out ? h.out(u) : void 0;
|
|
657
|
+
if (!p)
|
|
693
658
|
return;
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
i && (i.direction = "in");
|
|
701
|
-
return;
|
|
702
|
-
}
|
|
703
|
-
(S = l.prepare) == null || S.call(l, u), l.wait && await l.wait();
|
|
704
|
-
const C = new L({
|
|
705
|
-
...l,
|
|
706
|
-
onEnd: () => {
|
|
707
|
-
var b;
|
|
708
|
-
i = null, (b = l.onEnd) == null || b.call(l);
|
|
709
|
-
}
|
|
710
|
-
});
|
|
711
|
-
i = { controller: C, direction: "in" }, C.forward();
|
|
659
|
+
const y = {
|
|
660
|
+
in: k(p),
|
|
661
|
+
out: v ? k(v) : void 0
|
|
662
|
+
}, m = await a.runIn(y);
|
|
663
|
+
if (!m.config) {
|
|
664
|
+
t && (t.direction = "in");
|
|
712
665
|
return;
|
|
713
666
|
}
|
|
714
|
-
const
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
const y = k.fromState(f.state, {
|
|
722
|
-
from: f.from,
|
|
723
|
-
to: f.to,
|
|
724
|
-
spring: f.config.spring,
|
|
725
|
-
tick: f.config.tick,
|
|
726
|
-
css: f.config.css ? { element: u, style: f.config.css } : void 0,
|
|
727
|
-
onStart: f.config.onStart,
|
|
728
|
-
onComplete: () => {
|
|
729
|
-
var v, T;
|
|
730
|
-
i = null, (T = (v = f.config) == null ? void 0 : v.onEnd) == null || T.call(v);
|
|
667
|
+
const g = m.config;
|
|
668
|
+
(E = g.prepare) == null || E.call(g, u), g.wait && await g.wait();
|
|
669
|
+
const C = F({
|
|
670
|
+
...g,
|
|
671
|
+
onEnd: () => {
|
|
672
|
+
var A;
|
|
673
|
+
t = null, (A = g.onEnd) == null || A.call(g);
|
|
731
674
|
}
|
|
675
|
+
}), S = R.fromState(m.state, {
|
|
676
|
+
config: C,
|
|
677
|
+
from: m.from,
|
|
678
|
+
to: m.to,
|
|
679
|
+
element: u
|
|
732
680
|
});
|
|
733
|
-
|
|
734
|
-
},
|
|
735
|
-
var
|
|
736
|
-
|
|
737
|
-
const
|
|
738
|
-
if (!
|
|
681
|
+
t = { controller: S, direction: "in" }, m.direction === "forward" ? S.forward() : S.backward();
|
|
682
|
+
}, l = async (u) => {
|
|
683
|
+
var A;
|
|
684
|
+
i = u;
|
|
685
|
+
const h = n(), p = !(e != null && e.strategy) && h.in ? h.in(u) : void 0, v = h.out && h.out(u);
|
|
686
|
+
if (!v)
|
|
739
687
|
return;
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
i && (i.direction = "out"), e && (e.remove(), e = null);
|
|
747
|
-
return;
|
|
748
|
-
}
|
|
749
|
-
(S = l.prepare) == null || S.call(l, u), y(), l.wait && await l.wait();
|
|
750
|
-
const C = new L({
|
|
751
|
-
...l,
|
|
752
|
-
onEnd: () => {
|
|
753
|
-
var b, O;
|
|
754
|
-
(b = l.onEnd) == null || b.call(l), e && (e.remove(), e = null), i = null, (O = t == null ? void 0 : t.onCleanupEnd) == null || O.call(t);
|
|
755
|
-
}
|
|
756
|
-
});
|
|
757
|
-
i = { controller: C, direction: "out" }, C.forward();
|
|
688
|
+
const y = {
|
|
689
|
+
in: p ? k(p) : void 0,
|
|
690
|
+
out: k(v)
|
|
691
|
+
}, m = await a.runOut(y);
|
|
692
|
+
if (!m.config) {
|
|
693
|
+
t && (t.direction = "out"), i && (i.remove(), i = null);
|
|
758
694
|
return;
|
|
759
695
|
}
|
|
760
|
-
const
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
const f = k.fromState(d.state, {
|
|
768
|
-
from: d.from,
|
|
769
|
-
to: d.to,
|
|
770
|
-
spring: d.config.spring,
|
|
771
|
-
tick: d.config.tick,
|
|
772
|
-
css: d.config.css ? { element: u, style: d.config.css } : void 0,
|
|
773
|
-
onStart: d.config.onStart,
|
|
774
|
-
onComplete: () => {
|
|
775
|
-
var v, T, C;
|
|
776
|
-
(T = (v = d.config) == null ? void 0 : v.onEnd) == null || T.call(v), e && (e.remove(), e = null), i = null, (C = t == null ? void 0 : t.onCleanupEnd) == null || C.call(t);
|
|
696
|
+
const g = m.config;
|
|
697
|
+
(A = g.prepare) == null || A.call(g, u), E(), g.wait && await g.wait();
|
|
698
|
+
const C = F({
|
|
699
|
+
...g,
|
|
700
|
+
onEnd: () => {
|
|
701
|
+
var T, O;
|
|
702
|
+
(T = g.onEnd) == null || T.call(g), i && (i.remove(), i = null), t = null, (O = e == null ? void 0 : e.onCleanupEnd) == null || O.call(e);
|
|
777
703
|
}
|
|
704
|
+
}), S = R.fromState(m.state, {
|
|
705
|
+
config: C,
|
|
706
|
+
from: m.from,
|
|
707
|
+
to: m.to,
|
|
708
|
+
element: u
|
|
778
709
|
});
|
|
779
|
-
|
|
780
|
-
function
|
|
781
|
-
!
|
|
710
|
+
t = { controller: S, direction: "out" }, m.direction === "forward" ? S.forward() : S.backward();
|
|
711
|
+
function E() {
|
|
712
|
+
!r || !i || (o && r.contains(o) ? r.insertBefore(i, o) : r.appendChild(i));
|
|
782
713
|
}
|
|
783
714
|
};
|
|
715
|
+
let f = null;
|
|
784
716
|
return (u) => {
|
|
785
717
|
if (u)
|
|
786
|
-
return
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
718
|
+
return r = u.parentElement, o = u.nextElementSibling, (e == null ? void 0 : e.scope) === "local" ? queueMicrotask(() => {
|
|
719
|
+
f = st(u), !(f && !rt(f)) && c(u);
|
|
720
|
+
}) : c(u), () => {
|
|
721
|
+
const h = u.isConnected ? u.cloneNode(!0) : u;
|
|
722
|
+
f ? queueMicrotask(() => {
|
|
723
|
+
document.contains(f) && l(h);
|
|
724
|
+
}) : l(h);
|
|
792
725
|
};
|
|
793
726
|
};
|
|
794
727
|
}
|
|
795
|
-
const
|
|
728
|
+
const at = 3, lt = (n) => {
|
|
796
729
|
if (!n) return null;
|
|
797
|
-
const
|
|
798
|
-
`).map((
|
|
799
|
-
for (let
|
|
800
|
-
const
|
|
801
|
-
if (!
|
|
730
|
+
const e = n.split(`
|
|
731
|
+
`).map((t) => t.trim());
|
|
732
|
+
for (let t = at; t < Math.min(e.length, 6); t++) {
|
|
733
|
+
const i = e[t], r = i == null ? void 0 : i.match(/\(?([^):]+):(\d+):(\d+)\)?$/);
|
|
734
|
+
if (!r)
|
|
802
735
|
continue;
|
|
803
|
-
const
|
|
804
|
-
return { file:
|
|
736
|
+
const o = r[1] ?? "", s = r[2] ?? "0", a = r[3] ?? "0";
|
|
737
|
+
return { file: o.split(/[\\/]/).pop() || o, line: s, column: a };
|
|
805
738
|
}
|
|
806
739
|
return null;
|
|
807
|
-
},
|
|
808
|
-
function
|
|
809
|
-
|
|
810
|
-
let
|
|
811
|
-
return
|
|
740
|
+
}, x = /* @__PURE__ */ new Map(), M = /* @__PURE__ */ new Map();
|
|
741
|
+
function ut(n, e, t) {
|
|
742
|
+
x.set(n, e);
|
|
743
|
+
let i = M.get(n);
|
|
744
|
+
return i || (i = ct(
|
|
812
745
|
() => {
|
|
813
|
-
const
|
|
814
|
-
return
|
|
746
|
+
const r = x.get(n);
|
|
747
|
+
return r || (console.warn(`Transition "${String(n)}" not found`), {});
|
|
815
748
|
},
|
|
816
749
|
{
|
|
817
|
-
strategy:
|
|
818
|
-
|
|
750
|
+
strategy: t == null ? void 0 : t.strategy,
|
|
751
|
+
scope: t == null ? void 0 : t.scope,
|
|
752
|
+
onCleanupEnd: () => W(n)
|
|
819
753
|
}
|
|
820
|
-
),
|
|
754
|
+
), M.set(n, i), i);
|
|
821
755
|
}
|
|
822
|
-
function
|
|
823
|
-
|
|
756
|
+
function W(n) {
|
|
757
|
+
x.delete(n), M.delete(n);
|
|
824
758
|
}
|
|
825
|
-
function
|
|
826
|
-
const n =
|
|
759
|
+
function ft() {
|
|
760
|
+
const n = lt(new Error().stack);
|
|
827
761
|
return n ? `auto_${n.file}_${n.line}_${n.column}` : Symbol(`ssgoi_auto_${Date.now()}`);
|
|
828
762
|
}
|
|
829
|
-
const
|
|
763
|
+
const L = globalThis.FinalizationRegistry, _ = L ? (
|
|
830
764
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
831
|
-
new
|
|
765
|
+
new L((n) => {
|
|
832
766
|
try {
|
|
833
|
-
|
|
767
|
+
W(n);
|
|
834
768
|
} catch {
|
|
835
769
|
}
|
|
836
770
|
})
|
|
837
771
|
) : void 0;
|
|
838
|
-
function
|
|
839
|
-
const
|
|
840
|
-
if (n.ref &&
|
|
772
|
+
function Ct(n) {
|
|
773
|
+
const e = n.key ?? ft();
|
|
774
|
+
if (n.ref && _)
|
|
841
775
|
try {
|
|
842
|
-
|
|
776
|
+
_.register(n.ref, e);
|
|
843
777
|
} catch {
|
|
844
778
|
}
|
|
845
|
-
return
|
|
846
|
-
|
|
779
|
+
return ut(
|
|
780
|
+
e,
|
|
847
781
|
{
|
|
848
782
|
in: n.in,
|
|
849
783
|
out: n.out
|
|
850
784
|
},
|
|
851
|
-
|
|
785
|
+
{
|
|
786
|
+
strategy: n[X],
|
|
787
|
+
scope: n.scope
|
|
788
|
+
}
|
|
852
789
|
);
|
|
853
790
|
}
|
|
854
|
-
function
|
|
855
|
-
const
|
|
856
|
-
from:
|
|
857
|
-
to:
|
|
858
|
-
transition:
|
|
791
|
+
function dt(n) {
|
|
792
|
+
const e = n.filter((t) => t.symmetric).map((t) => ({
|
|
793
|
+
from: t.to,
|
|
794
|
+
to: t.from,
|
|
795
|
+
transition: t.transition
|
|
859
796
|
}));
|
|
860
|
-
return [...n, ...
|
|
797
|
+
return [...n, ...e];
|
|
861
798
|
}
|
|
862
|
-
function
|
|
863
|
-
let
|
|
864
|
-
const
|
|
799
|
+
function mt(n) {
|
|
800
|
+
let e = !1, t = 0, i = 0, r = !1;
|
|
801
|
+
const o = 50, s = (p) => {
|
|
865
802
|
if (!n) return;
|
|
866
|
-
const
|
|
867
|
-
|
|
868
|
-
}, a = (
|
|
869
|
-
if (!n || !
|
|
870
|
-
const
|
|
871
|
-
if (!
|
|
872
|
-
const
|
|
873
|
-
|
|
803
|
+
const v = p.touches[0];
|
|
804
|
+
v && (r = v.clientX < o, r && (t = v.clientX, i = v.clientY));
|
|
805
|
+
}, a = (p) => {
|
|
806
|
+
if (!n || !r) return;
|
|
807
|
+
const v = p.touches[0];
|
|
808
|
+
if (!v) return;
|
|
809
|
+
const y = v.clientX - t, m = v.clientY - i;
|
|
810
|
+
y > window.outerWidth / 2 - 5 && Math.abs(y) > Math.abs(m) ? e = !0 : e = !1;
|
|
874
811
|
}, c = () => {
|
|
875
|
-
n && (
|
|
876
|
-
},
|
|
812
|
+
n && (r = !1, t = 0, i = 0);
|
|
813
|
+
}, l = () => e, f = () => {
|
|
877
814
|
typeof window > "u" || n && (window.addEventListener("touchstart", s, { passive: !0 }), window.addEventListener("touchmove", a, { passive: !0 }), window.addEventListener("touchend", c, { passive: !0 }));
|
|
878
|
-
},
|
|
815
|
+
}, w = () => {
|
|
879
816
|
typeof window > "u" || (window.removeEventListener("touchstart", s), window.removeEventListener("touchmove", a), window.removeEventListener("touchend", c));
|
|
880
817
|
};
|
|
881
|
-
let
|
|
818
|
+
let u = 0;
|
|
882
819
|
return {
|
|
883
|
-
initialize:
|
|
884
|
-
cleanup:
|
|
885
|
-
isSwipePending:
|
|
820
|
+
initialize: f,
|
|
821
|
+
cleanup: w,
|
|
822
|
+
isSwipePending: l,
|
|
886
823
|
resetSwipeDetection: () => {
|
|
887
|
-
|
|
824
|
+
u++, u > 1 && (u = 0, e = !1);
|
|
888
825
|
}
|
|
889
826
|
};
|
|
890
827
|
}
|
|
891
|
-
const
|
|
892
|
-
let
|
|
893
|
-
for (;
|
|
894
|
-
const
|
|
895
|
-
if (
|
|
896
|
-
return
|
|
897
|
-
|
|
828
|
+
const ht = (n) => {
|
|
829
|
+
let e = n.parentElement;
|
|
830
|
+
for (; e && e !== document.body; ) {
|
|
831
|
+
const t = window.getComputedStyle(e), i = t.overflow + t.overflowY + t.overflowX;
|
|
832
|
+
if (i.includes("auto") || i.includes("scroll") || e.scrollHeight > e.clientHeight || e.scrollWidth > e.clientWidth)
|
|
833
|
+
return e;
|
|
834
|
+
e = e.parentElement;
|
|
898
835
|
}
|
|
899
836
|
return document.documentElement;
|
|
900
|
-
},
|
|
901
|
-
let
|
|
902
|
-
for (;
|
|
903
|
-
const
|
|
904
|
-
if (
|
|
905
|
-
return
|
|
906
|
-
|
|
837
|
+
}, gt = (n) => {
|
|
838
|
+
let e = n.parentElement;
|
|
839
|
+
for (; e && e !== document.body; ) {
|
|
840
|
+
const t = window.getComputedStyle(e).position;
|
|
841
|
+
if (t === "relative" || t === "absolute" || t === "fixed" || t === "sticky")
|
|
842
|
+
return e;
|
|
843
|
+
e = e.parentElement;
|
|
907
844
|
}
|
|
908
845
|
return document.body;
|
|
909
846
|
};
|
|
910
|
-
function
|
|
911
|
-
let n = null,
|
|
912
|
-
const
|
|
913
|
-
let
|
|
914
|
-
const
|
|
915
|
-
n &&
|
|
847
|
+
function pt() {
|
|
848
|
+
let n = null, e = null;
|
|
849
|
+
const t = /* @__PURE__ */ new Map();
|
|
850
|
+
let i = null;
|
|
851
|
+
const r = () => {
|
|
852
|
+
n && i && t.set(i, {
|
|
916
853
|
x: n.scrollLeft,
|
|
917
854
|
y: n.scrollTop
|
|
918
855
|
});
|
|
919
856
|
};
|
|
920
857
|
return {
|
|
921
|
-
initializeContext: (
|
|
922
|
-
|
|
858
|
+
initializeContext: (f, w) => {
|
|
859
|
+
e = f, n || (n = ht(f), (n === document.documentElement ? window : n).addEventListener("scroll", r, {
|
|
923
860
|
passive: !0
|
|
924
|
-
})),
|
|
861
|
+
})), i = w;
|
|
925
862
|
},
|
|
926
|
-
calculateScrollOffset: (
|
|
927
|
-
const
|
|
863
|
+
calculateScrollOffset: (f, w) => {
|
|
864
|
+
const u = f && t.has(f) ? t.get(f) : { x: 0, y: 0 }, h = w && t.has(w) ? t.get(w) : { x: 0, y: 0 };
|
|
928
865
|
return {
|
|
929
|
-
x: -
|
|
930
|
-
y: -
|
|
866
|
+
x: -h.x + u.x,
|
|
867
|
+
y: -h.y + u.y
|
|
931
868
|
};
|
|
932
869
|
},
|
|
933
870
|
getScrollContainer: () => n,
|
|
934
|
-
getPositionedParentElement: () =>
|
|
935
|
-
getScrollPosition: (
|
|
871
|
+
getPositionedParentElement: () => e ? gt(e) : document.body,
|
|
872
|
+
getScrollPosition: (f) => f && t.has(f) ? t.get(f) : { x: 0, y: 0 }
|
|
936
873
|
};
|
|
937
874
|
}
|
|
938
|
-
function
|
|
939
|
-
if (
|
|
875
|
+
function b(n, e) {
|
|
876
|
+
if (e === "*")
|
|
940
877
|
return !0;
|
|
941
|
-
if (
|
|
942
|
-
const
|
|
943
|
-
return n ===
|
|
878
|
+
if (e.endsWith("/*")) {
|
|
879
|
+
const t = e.slice(0, -2);
|
|
880
|
+
return n === t || n.startsWith(t + "/");
|
|
944
881
|
}
|
|
945
|
-
return n ===
|
|
882
|
+
return n === e;
|
|
946
883
|
}
|
|
947
|
-
function
|
|
948
|
-
for (const
|
|
949
|
-
if (
|
|
950
|
-
return
|
|
951
|
-
for (const
|
|
952
|
-
if ((
|
|
953
|
-
return
|
|
884
|
+
function wt(n, e, t) {
|
|
885
|
+
for (const i of t)
|
|
886
|
+
if (b(n, i.from) && b(e, i.to))
|
|
887
|
+
return i.transition;
|
|
888
|
+
for (const i of t)
|
|
889
|
+
if ((i.from === "*" || b(n, i.from)) && (i.to === "*" || b(e, i.to)))
|
|
890
|
+
return i.transition;
|
|
954
891
|
return null;
|
|
955
892
|
}
|
|
956
|
-
function
|
|
893
|
+
function At(n) {
|
|
957
894
|
const {
|
|
958
|
-
transitions:
|
|
959
|
-
defaultTransition:
|
|
960
|
-
middleware:
|
|
895
|
+
transitions: e = [],
|
|
896
|
+
defaultTransition: t,
|
|
897
|
+
middleware: i = (y, m) => ({ from: y, to: m }),
|
|
961
898
|
// Identity function as default
|
|
962
|
-
skipOnIosSwipe:
|
|
899
|
+
skipOnIosSwipe: r = !0
|
|
963
900
|
// Default to true - skip animations on iOS swipe
|
|
964
901
|
} = n;
|
|
965
|
-
let
|
|
966
|
-
const s =
|
|
902
|
+
let o = null;
|
|
903
|
+
const s = dt(e), {
|
|
967
904
|
initializeContext: a,
|
|
968
905
|
calculateScrollOffset: c,
|
|
969
|
-
getScrollContainer:
|
|
970
|
-
getPositionedParentElement:
|
|
971
|
-
getScrollPosition:
|
|
972
|
-
} =
|
|
973
|
-
|
|
974
|
-
function
|
|
975
|
-
if (
|
|
976
|
-
const { from:
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
),
|
|
980
|
-
f,
|
|
906
|
+
getScrollContainer: l,
|
|
907
|
+
getPositionedParentElement: f,
|
|
908
|
+
getScrollPosition: w
|
|
909
|
+
} = pt(), u = mt(r);
|
|
910
|
+
u.initialize();
|
|
911
|
+
function h() {
|
|
912
|
+
if (o != null && o.from && (o != null && o.to)) {
|
|
913
|
+
const { from: y, to: m } = i(
|
|
914
|
+
o.from,
|
|
915
|
+
o.to
|
|
916
|
+
), C = wt(
|
|
981
917
|
y,
|
|
918
|
+
m,
|
|
982
919
|
s
|
|
983
|
-
) ||
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
),
|
|
987
|
-
scrollOffset:
|
|
988
|
-
scroll:
|
|
920
|
+
) || t, S = c(
|
|
921
|
+
o.from,
|
|
922
|
+
o.to
|
|
923
|
+
), E = {
|
|
924
|
+
scrollOffset: S,
|
|
925
|
+
scroll: w(o.from),
|
|
989
926
|
get scrollingElement() {
|
|
990
|
-
return
|
|
927
|
+
return l() || document.documentElement;
|
|
991
928
|
},
|
|
992
929
|
get positionedParent() {
|
|
993
|
-
return
|
|
930
|
+
return f();
|
|
994
931
|
}
|
|
995
|
-
},
|
|
996
|
-
scrollOffset:
|
|
932
|
+
}, A = {
|
|
933
|
+
scrollOffset: S,
|
|
997
934
|
get scroll() {
|
|
998
|
-
return
|
|
935
|
+
return o ? w(o.to) : { x: 0, y: 0 };
|
|
999
936
|
},
|
|
1000
937
|
get scrollingElement() {
|
|
1001
|
-
return
|
|
938
|
+
return l() || document.documentElement;
|
|
1002
939
|
},
|
|
1003
940
|
get positionedParent() {
|
|
1004
|
-
return
|
|
941
|
+
return f();
|
|
1005
942
|
}
|
|
1006
943
|
};
|
|
1007
|
-
|
|
1008
|
-
(
|
|
1009
|
-
),
|
|
1010
|
-
(
|
|
1011
|
-
)),
|
|
944
|
+
C && (C.out && o.outResolve && o.outResolve(
|
|
945
|
+
(T) => C.out(T, E)
|
|
946
|
+
), C.in && o.inResolve && o.inResolve(
|
|
947
|
+
(T) => C.in(T, A)
|
|
948
|
+
)), o = null;
|
|
1012
949
|
}
|
|
1013
950
|
}
|
|
1014
|
-
const
|
|
1015
|
-
|
|
1016
|
-
})) : (
|
|
1017
|
-
|
|
951
|
+
const p = async (y, m) => u.isSwipePending() ? (u.resetSwipeDetection(), () => ({})) : m === "in" && (!o || !o.from) ? () => ({}) : (o || (o = {}), m === "out" ? (o.from = y, new Promise((g) => {
|
|
952
|
+
o.outResolve = g, h();
|
|
953
|
+
})) : (o.to = y, new Promise((g) => {
|
|
954
|
+
o.inResolve = g, h();
|
|
1018
955
|
})));
|
|
1019
|
-
return (
|
|
1020
|
-
key:
|
|
1021
|
-
in: async (
|
|
1022
|
-
out: async (
|
|
956
|
+
return (y) => ({
|
|
957
|
+
key: y,
|
|
958
|
+
in: async (m) => (a(m, y), (await p(y, "in"))(m)),
|
|
959
|
+
out: async (m) => (await p(y, "out"))(m),
|
|
1023
960
|
// Add page transition strategy for page-level transitions
|
|
1024
|
-
[X]:
|
|
961
|
+
[X]: ot
|
|
1025
962
|
});
|
|
1026
963
|
}
|
|
1027
964
|
export {
|
|
965
|
+
$ as SCOPE_ATTR,
|
|
966
|
+
j as SCOPE_READY_ATTR,
|
|
1028
967
|
X as TRANSITION_STRATEGY,
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
968
|
+
nt as createDefaultStrategy,
|
|
969
|
+
ot as createPageTransitionStrategy,
|
|
970
|
+
At as createSggoiTransitionContext,
|
|
971
|
+
St as createTransitionScope,
|
|
972
|
+
st as findScope,
|
|
973
|
+
ft as generateAutoKey,
|
|
974
|
+
kt as isCssAnimation,
|
|
975
|
+
Vt as isMultiSpring,
|
|
976
|
+
rt as isScopeReady,
|
|
977
|
+
bt as isSingleSpring,
|
|
978
|
+
It as isTickAnimation,
|
|
979
|
+
Mt as jaeminInternal,
|
|
980
|
+
F as normalizeMultiSpringSchedule,
|
|
981
|
+
k as normalizeToMultiSpring,
|
|
982
|
+
Ct as transition,
|
|
983
|
+
Rt as validateAnimationMode,
|
|
984
|
+
Pt as validateSpringItem
|
|
1040
985
|
};
|