@ssgoi/core 6.6.1 → 6.6.3
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/README.md +66 -9
- package/dist/internal.cjs +1 -1
- package/dist/internal.js +471 -408
- package/dist/ssgoi-transition/create-context-manager.d.ts +11 -0
- package/dist/ssgoi-transition/create-context-manager.d.ts.map +1 -1
- package/dist/ssgoi-transition/create-ssgoi-transition-context.d.ts.map +1 -1
- package/dist/ssgoi-transition/find-matching-transition.d.ts +9 -3
- package/dist/ssgoi-transition/find-matching-transition.d.ts.map +1 -1
- package/package.json +13 -14
package/dist/internal.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var F = (t,
|
|
4
|
-
import { A as
|
|
5
|
-
import { M as
|
|
6
|
-
class
|
|
1
|
+
var Nt = Object.defineProperty;
|
|
2
|
+
var kt = (t, n, e) => n in t ? Nt(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
|
|
3
|
+
var F = (t, n, e) => kt(t, typeof n != "symbol" ? n + "" : n, e);
|
|
4
|
+
import { A as It } from "./multi-animation-Ch5rI3rB.js";
|
|
5
|
+
import { M as Ee, W as we } from "./multi-animation-Ch5rI3rB.js";
|
|
6
|
+
class Ht extends It {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments);
|
|
9
9
|
F(this, "child", null);
|
|
@@ -12,20 +12,20 @@ class _t extends Ot {
|
|
|
12
12
|
F(this, "listeners", /* @__PURE__ */ new Set());
|
|
13
13
|
}
|
|
14
14
|
attach(e) {
|
|
15
|
-
const
|
|
16
|
-
if (this.child = e, this._settled = !1,
|
|
17
|
-
const
|
|
18
|
-
|
|
15
|
+
const s = this.child;
|
|
16
|
+
if (this.child = e, this._settled = !1, s) {
|
|
17
|
+
const l = s.getPose();
|
|
18
|
+
s.complete(), e.matchInto(l);
|
|
19
19
|
}
|
|
20
20
|
e.playbackRate = this.playbackRate;
|
|
21
|
-
const
|
|
21
|
+
const o = e.onComplete;
|
|
22
22
|
e.onComplete = () => {
|
|
23
|
-
|
|
23
|
+
o == null || o(), this.child === e && (this.child = null, this._state = "idle", this._settled = !0), this.notify();
|
|
24
24
|
};
|
|
25
|
-
const
|
|
26
|
-
e.onUpdate = (
|
|
27
|
-
var
|
|
28
|
-
|
|
25
|
+
const a = e.onUpdate;
|
|
26
|
+
e.onUpdate = (l) => {
|
|
27
|
+
var u;
|
|
28
|
+
a == null || a(l), (u = this.onUpdate) == null || u.call(this, l), this.notify();
|
|
29
29
|
}, this._state === "paused" ? e.pause() : this._state === "reversing" ? e.reverse() : (this._state = "playing", e.play()), this.notify();
|
|
30
30
|
}
|
|
31
31
|
play() {
|
|
@@ -63,8 +63,8 @@ class _t extends Ot {
|
|
|
63
63
|
return ((e = this.child) == null ? void 0 : e.progress) ?? 0;
|
|
64
64
|
}
|
|
65
65
|
findTimeForProgress(e) {
|
|
66
|
-
var
|
|
67
|
-
return ((
|
|
66
|
+
var s;
|
|
67
|
+
return ((s = this.child) == null ? void 0 : s.findTimeForProgress(e)) ?? null;
|
|
68
68
|
}
|
|
69
69
|
get playbackRate() {
|
|
70
70
|
return super.playbackRate;
|
|
@@ -81,8 +81,8 @@ class _t extends Ot {
|
|
|
81
81
|
return ((e = this.child) == null ? void 0 : e.getTimeline()) ?? [];
|
|
82
82
|
}
|
|
83
83
|
matchInto(e) {
|
|
84
|
-
var
|
|
85
|
-
(
|
|
84
|
+
var s;
|
|
85
|
+
(s = this.child) == null || s.matchInto(e);
|
|
86
86
|
}
|
|
87
87
|
/** Currently attached child, or null when nothing is playing. */
|
|
88
88
|
get activeChild() {
|
|
@@ -98,581 +98,644 @@ class _t extends Ot {
|
|
|
98
98
|
for (const e of this.listeners) e();
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
const
|
|
101
|
+
const Wt = (t, n) => {
|
|
102
102
|
var e;
|
|
103
|
-
t.style.position = "absolute", t.style.width = "100%", t.style.top = `${-1 * (((e =
|
|
104
|
-
},
|
|
105
|
-
let
|
|
106
|
-
for (;
|
|
107
|
-
const e = window.getComputedStyle(
|
|
108
|
-
if (
|
|
109
|
-
return
|
|
110
|
-
|
|
103
|
+
t.style.position = "absolute", t.style.width = "100%", t.style.top = `${-1 * (((e = n == null ? void 0 : n.scrollOffset) == null ? void 0 : e.y) ?? 0)}px`, t.style.left = "0";
|
|
104
|
+
}, gt = /* @__PURE__ */ new Set(["auto", "scroll", "overlay"]), zt = (t) => {
|
|
105
|
+
let n = t.parentElement;
|
|
106
|
+
for (; n && n !== document.body; ) {
|
|
107
|
+
const e = window.getComputedStyle(n);
|
|
108
|
+
if (gt.has(e.overflowY) || gt.has(e.overflowX))
|
|
109
|
+
return n;
|
|
110
|
+
n = n.parentElement;
|
|
111
111
|
}
|
|
112
112
|
return document.documentElement;
|
|
113
|
-
},
|
|
114
|
-
let
|
|
115
|
-
for (;
|
|
116
|
-
const e = window.getComputedStyle(
|
|
113
|
+
}, Bt = (t) => {
|
|
114
|
+
let n = t.parentElement;
|
|
115
|
+
for (; n && n !== document.body; ) {
|
|
116
|
+
const e = window.getComputedStyle(n).position;
|
|
117
117
|
if (e === "relative" || e === "absolute" || e === "fixed" || e === "sticky")
|
|
118
|
-
return
|
|
119
|
-
|
|
118
|
+
return n;
|
|
119
|
+
n = n.parentElement;
|
|
120
120
|
}
|
|
121
121
|
return document.body;
|
|
122
122
|
};
|
|
123
|
-
function
|
|
124
|
-
const
|
|
125
|
-
return Promise.all(
|
|
126
|
-
const
|
|
127
|
-
return
|
|
128
|
-
|
|
129
|
-
}),
|
|
123
|
+
function Ft(t) {
|
|
124
|
+
const n = Object.keys(t);
|
|
125
|
+
return Promise.all(n.map((e) => t[e])).then((e) => {
|
|
126
|
+
const s = {};
|
|
127
|
+
return n.forEach((o, a) => {
|
|
128
|
+
s[o] = e[a];
|
|
129
|
+
}), s;
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
const
|
|
132
|
+
function Kt(t) {
|
|
133
|
+
const n = t.filter((e) => e.symmetric).map((e) => ({
|
|
134
134
|
from: e.to,
|
|
135
135
|
to: e.from,
|
|
136
136
|
transition: e.transition
|
|
137
137
|
}));
|
|
138
|
-
return [...t, ...
|
|
138
|
+
return [...t, ...n];
|
|
139
139
|
}
|
|
140
|
-
|
|
140
|
+
const Xt = 1e6, vt = 100, $t = 10;
|
|
141
|
+
function Ut(t) {
|
|
142
|
+
const n = t.trim(), e = n.indexOf("#"), s = n.indexOf("?"), o = [e, s].filter((a) => a >= 0).reduce((a, l) => Math.min(a, l), n.length);
|
|
143
|
+
return n.slice(0, o);
|
|
144
|
+
}
|
|
145
|
+
function at(t) {
|
|
146
|
+
const n = Ut(t);
|
|
147
|
+
try {
|
|
148
|
+
if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(n))
|
|
149
|
+
return at(new URL(n).pathname);
|
|
150
|
+
} catch {
|
|
151
|
+
}
|
|
152
|
+
const s = (n.startsWith("/") ? n : `/${n}`).replace(/\/+/g, "/");
|
|
153
|
+
return (s.length > 1 ? s.replace(/\/+$/g, "") : s) || "/";
|
|
154
|
+
}
|
|
155
|
+
function qt(t) {
|
|
156
|
+
const n = t.trim();
|
|
157
|
+
return n === "*" ? "*" : at(n);
|
|
158
|
+
}
|
|
159
|
+
function ot(t) {
|
|
160
|
+
return t === "/" ? [] : t.slice(1).split("/");
|
|
161
|
+
}
|
|
162
|
+
function Vt(t) {
|
|
163
|
+
return t.startsWith(":") || t.startsWith("[") && t.endsWith("]") || t.startsWith("{") && t.endsWith("}");
|
|
164
|
+
}
|
|
165
|
+
function rt(t, n) {
|
|
166
|
+
const e = at(t), s = qt(n);
|
|
141
167
|
if (s === "*")
|
|
142
|
-
return !0;
|
|
143
|
-
if (s
|
|
144
|
-
|
|
145
|
-
|
|
168
|
+
return { matched: !0, specificity: 0 };
|
|
169
|
+
if (e === s)
|
|
170
|
+
return {
|
|
171
|
+
matched: !0,
|
|
172
|
+
specificity: Xt + ot(s).length * vt
|
|
173
|
+
};
|
|
174
|
+
const o = ot(e), a = ot(s);
|
|
175
|
+
let l = 0;
|
|
176
|
+
for (let u = 0; u < a.length; u++) {
|
|
177
|
+
const g = a[u], b = o[u], _ = u === a.length - 1;
|
|
178
|
+
if (g === void 0)
|
|
179
|
+
return { matched: !1, specificity: 0 };
|
|
180
|
+
if ((g === "*" || g === "**") && _)
|
|
181
|
+
return {
|
|
182
|
+
matched: g === "**" ? o.length >= u : o.length > u,
|
|
183
|
+
specificity: l
|
|
184
|
+
};
|
|
185
|
+
if (b === void 0)
|
|
186
|
+
return { matched: !1, specificity: 0 };
|
|
187
|
+
if (g === "*" || Vt(g)) {
|
|
188
|
+
l += $t;
|
|
189
|
+
continue;
|
|
190
|
+
}
|
|
191
|
+
if (g !== b)
|
|
192
|
+
return { matched: !1, specificity: 0 };
|
|
193
|
+
l += vt;
|
|
146
194
|
}
|
|
147
|
-
return
|
|
195
|
+
return {
|
|
196
|
+
matched: o.length === a.length,
|
|
197
|
+
specificity: l
|
|
198
|
+
};
|
|
148
199
|
}
|
|
149
|
-
function
|
|
150
|
-
|
|
151
|
-
if (K(t, n.from) && K(s, n.to))
|
|
152
|
-
return n.transition;
|
|
153
|
-
for (const n of e)
|
|
154
|
-
if ((n.from === "*" || K(t, n.from)) && (n.to === "*" || K(s, n.to)))
|
|
155
|
-
return n.transition;
|
|
156
|
-
return null;
|
|
200
|
+
function Gt(t, n) {
|
|
201
|
+
return rt(t, n).matched;
|
|
157
202
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
const
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
203
|
+
function Yt(t, n, e) {
|
|
204
|
+
let s;
|
|
205
|
+
for (const o of e) {
|
|
206
|
+
const a = rt(t, o.from);
|
|
207
|
+
if (!a.matched) continue;
|
|
208
|
+
const l = rt(n, o.to);
|
|
209
|
+
if (!l.matched) continue;
|
|
210
|
+
const u = a.specificity + l.specificity;
|
|
211
|
+
(!s || u > s.specificity) && (s = { transition: o.transition, specificity: u });
|
|
212
|
+
}
|
|
213
|
+
return (s == null ? void 0 : s.transition) ?? null;
|
|
214
|
+
}
|
|
215
|
+
const Zt = 768, Qt = 10, jt = 10;
|
|
216
|
+
function Jt(t = {}) {
|
|
217
|
+
const {
|
|
218
|
+
preserveScroll: n = (f) => f,
|
|
219
|
+
resolvePath: e = (f) => f
|
|
220
|
+
} = t, s = typeof n == "function" ? n : () => n;
|
|
221
|
+
let o = null, a = !1, l = !1;
|
|
222
|
+
const u = () => {
|
|
223
|
+
const f = (o == null ? void 0 : o.clientWidth) ?? 0, d = f > 0 ? f : typeof window < "u" ? window.innerWidth : 0;
|
|
224
|
+
return d > 0 && d < Zt;
|
|
225
|
+
}, g = () => (l || (a = u(), l = !0), a), b = (f) => {
|
|
226
|
+
var A;
|
|
227
|
+
const d = e(f), y = s(g());
|
|
228
|
+
if (y === !1)
|
|
229
|
+
return { preserves: !1, shared: !1, storageKey: `path:${d}` };
|
|
230
|
+
if (y === !0)
|
|
231
|
+
return { preserves: !0, shared: !1, storageKey: `path:${d}` };
|
|
232
|
+
const E = ((A = y.exclude) == null ? void 0 : A.some((C) => Gt(d, C))) ?? !1, P = !E && !!y.key;
|
|
173
233
|
return {
|
|
174
|
-
preserves: !
|
|
175
|
-
shared:
|
|
176
|
-
storageKey:
|
|
234
|
+
preserves: !E,
|
|
235
|
+
shared: P,
|
|
236
|
+
storageKey: P ? `shared:${y.key}` : `path:${d}`
|
|
177
237
|
};
|
|
178
|
-
},
|
|
179
|
-
let
|
|
180
|
-
const
|
|
181
|
-
let
|
|
182
|
-
const
|
|
183
|
-
|
|
184
|
-
x:
|
|
185
|
-
y:
|
|
238
|
+
}, _ = (f) => b(f).preserves;
|
|
239
|
+
let L = null;
|
|
240
|
+
const w = /* @__PURE__ */ new Map();
|
|
241
|
+
let O = null, k = !1, W = 0;
|
|
242
|
+
const $ = () => {
|
|
243
|
+
o && O && !k && w.set(b(O).storageKey, {
|
|
244
|
+
x: o.scrollLeft,
|
|
245
|
+
y: o.scrollTop
|
|
186
246
|
});
|
|
187
|
-
}, z = (
|
|
188
|
-
if (!
|
|
189
|
-
const
|
|
190
|
-
if (
|
|
247
|
+
}, z = (f) => {
|
|
248
|
+
if (!o) return;
|
|
249
|
+
const d = b(f);
|
|
250
|
+
if (d.preserves && d.shared && !w.has(d.storageKey))
|
|
191
251
|
return;
|
|
192
|
-
const
|
|
193
|
-
let
|
|
194
|
-
const
|
|
195
|
-
if (!
|
|
196
|
-
|
|
197
|
-
top:
|
|
198
|
-
left:
|
|
199
|
-
}), !(Math.abs(
|
|
252
|
+
const y = d.preserves && w.has(d.storageKey) ? w.get(d.storageKey) : { x: 0, y: 0 };
|
|
253
|
+
let E = 0;
|
|
254
|
+
const P = () => {
|
|
255
|
+
if (!o) return;
|
|
256
|
+
o.scrollTo({
|
|
257
|
+
top: y.y,
|
|
258
|
+
left: y.x
|
|
259
|
+
}), !(Math.abs(o.scrollTop - y.y) < 1 && Math.abs(o.scrollLeft - y.x) < 1) && E < Qt && (E++, requestAnimationFrame(P));
|
|
200
260
|
};
|
|
201
|
-
requestAnimationFrame(
|
|
261
|
+
requestAnimationFrame(P);
|
|
202
262
|
};
|
|
203
263
|
return {
|
|
204
|
-
initializeContext: (
|
|
205
|
-
|
|
206
|
-
const
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
}).observe(
|
|
264
|
+
initializeContext: (f, d) => {
|
|
265
|
+
k = !0;
|
|
266
|
+
const y = ++W;
|
|
267
|
+
L = f, o || (o = zt(f), a = u(), l = !0, typeof ResizeObserver < "u" && new ResizeObserver(() => {
|
|
268
|
+
a = u();
|
|
269
|
+
}).observe(o), (o === document.documentElement ? window : o).addEventListener("scroll", $, {
|
|
210
270
|
passive: !0
|
|
211
|
-
})),
|
|
212
|
-
let
|
|
213
|
-
const
|
|
214
|
-
|
|
271
|
+
})), O = d, z(d);
|
|
272
|
+
let E = 0;
|
|
273
|
+
const P = () => {
|
|
274
|
+
y === W && (E++, E >= jt ? k = !1 : requestAnimationFrame(P));
|
|
215
275
|
};
|
|
216
|
-
requestAnimationFrame(
|
|
276
|
+
requestAnimationFrame(P);
|
|
217
277
|
},
|
|
218
|
-
calculateScrollOffset: (
|
|
219
|
-
const
|
|
278
|
+
calculateScrollOffset: (f, d) => {
|
|
279
|
+
const y = f ? b(f).storageKey : null, E = y && w.has(y) ? w.get(y) : { x: 0, y: 0 }, P = d ? b(d) : null, A = P != null && P.preserves ? P.storageKey : null, C = A && w.has(A) ? w.get(A) : { x: 0, y: 0 };
|
|
220
280
|
return {
|
|
221
|
-
x: -
|
|
222
|
-
y: -
|
|
281
|
+
x: -C.x + E.x,
|
|
282
|
+
y: -C.y + E.y
|
|
223
283
|
};
|
|
224
284
|
},
|
|
225
|
-
evictScrollPosition: (
|
|
226
|
-
|
|
285
|
+
evictScrollPosition: (f) => {
|
|
286
|
+
w.delete(b(f).storageKey);
|
|
227
287
|
},
|
|
228
|
-
shouldPreserve:
|
|
229
|
-
getScrollContainer: () =>
|
|
230
|
-
getPositionedParentElement: () =>
|
|
231
|
-
getScrollPosition: (
|
|
232
|
-
const
|
|
233
|
-
return
|
|
288
|
+
shouldPreserve: _,
|
|
289
|
+
getScrollContainer: () => o,
|
|
290
|
+
getPositionedParentElement: () => L ? Bt(L) : document.body,
|
|
291
|
+
getScrollPosition: (f) => {
|
|
292
|
+
const d = f ? b(f).storageKey : null;
|
|
293
|
+
return d && w.has(d) ? w.get(d) : { x: 0, y: 0 };
|
|
234
294
|
},
|
|
235
295
|
// Same measurement that drives `preserveScroll`'s `isMobile`, exposed so a
|
|
236
296
|
// functional `transitions` config can branch on it too.
|
|
237
297
|
getIsMobile: g
|
|
238
298
|
};
|
|
239
299
|
}
|
|
240
|
-
const
|
|
241
|
-
function
|
|
242
|
-
let t = null,
|
|
243
|
-
const
|
|
244
|
-
for (let
|
|
245
|
-
const
|
|
246
|
-
if (
|
|
300
|
+
const bt = 30, St = 8, Et = 1.2, wt = 30, te = 600;
|
|
301
|
+
function ee() {
|
|
302
|
+
let t = null, n = !1, e = !1, s = null, o = null, a = !1;
|
|
303
|
+
const l = (h, v) => {
|
|
304
|
+
for (let S = 0; S < h.length; S++) {
|
|
305
|
+
const m = h.item(S);
|
|
306
|
+
if (m && m.identifier === v) return m;
|
|
247
307
|
}
|
|
248
308
|
return null;
|
|
309
|
+
}, u = () => {
|
|
310
|
+
s !== null && (clearTimeout(s), s = null);
|
|
249
311
|
}, g = () => {
|
|
250
|
-
|
|
251
|
-
},
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
}, C = (d) => {
|
|
258
|
-
if (d.touches.length !== 1) {
|
|
312
|
+
o !== null && (clearTimeout(o), o = null);
|
|
313
|
+
}, b = () => {
|
|
314
|
+
n = !0, e = !0, u(), g(), s = setTimeout(() => {
|
|
315
|
+
n = !1, e = !1, s = null;
|
|
316
|
+
}, te);
|
|
317
|
+
}, _ = (h) => {
|
|
318
|
+
if (h.touches.length !== 1) {
|
|
259
319
|
t = null;
|
|
260
320
|
return;
|
|
261
321
|
}
|
|
262
|
-
const
|
|
263
|
-
if (!
|
|
322
|
+
const v = h.touches.item(0);
|
|
323
|
+
if (!v) {
|
|
264
324
|
t = null;
|
|
265
325
|
return;
|
|
266
326
|
}
|
|
267
|
-
const
|
|
268
|
-
if (!
|
|
327
|
+
const S = window.innerWidth, m = v.clientX <= bt, T = v.clientX >= S - bt;
|
|
328
|
+
if (!m && !T) {
|
|
269
329
|
t = null;
|
|
270
330
|
return;
|
|
271
331
|
}
|
|
272
332
|
t = {
|
|
273
|
-
identifier:
|
|
274
|
-
startX:
|
|
275
|
-
startY:
|
|
276
|
-
fromLeftEdge:
|
|
333
|
+
identifier: v.identifier,
|
|
334
|
+
startX: v.clientX,
|
|
335
|
+
startY: v.clientY,
|
|
336
|
+
fromLeftEdge: m,
|
|
277
337
|
moved: !1
|
|
278
338
|
};
|
|
279
|
-
},
|
|
339
|
+
}, L = (h) => {
|
|
280
340
|
if (!t) return;
|
|
281
|
-
if (
|
|
341
|
+
if (h.touches.length !== 1) {
|
|
282
342
|
t = null;
|
|
283
343
|
return;
|
|
284
344
|
}
|
|
285
|
-
const
|
|
286
|
-
if (!
|
|
345
|
+
const v = l(h.touches, t.identifier);
|
|
346
|
+
if (!v) {
|
|
287
347
|
t = null;
|
|
288
348
|
return;
|
|
289
349
|
}
|
|
290
|
-
const
|
|
291
|
-
if (
|
|
350
|
+
const S = v.clientX - t.startX, m = v.clientY - t.startY, T = Math.abs(S), I = Math.abs(m);
|
|
351
|
+
if (I > St && I > T * Et) {
|
|
292
352
|
t = null;
|
|
293
353
|
return;
|
|
294
354
|
}
|
|
295
|
-
const
|
|
296
|
-
|
|
297
|
-
},
|
|
355
|
+
const f = t.fromLeftEdge ? S > 0 : S < 0;
|
|
356
|
+
T > St && T > I * Et && f && (t.moved = !0);
|
|
357
|
+
}, w = (h) => {
|
|
298
358
|
if (!t) return;
|
|
299
|
-
const
|
|
300
|
-
if (!
|
|
359
|
+
const v = l(h.changedTouches, t.identifier);
|
|
360
|
+
if (!v) {
|
|
301
361
|
t = null;
|
|
302
362
|
return;
|
|
303
363
|
}
|
|
304
|
-
const
|
|
305
|
-
if (t.moved &&
|
|
306
|
-
|
|
364
|
+
const S = v.clientX - t.startX, m = t.fromLeftEdge ? S > 0 : S < 0;
|
|
365
|
+
if (t.moved && m && Math.abs(S) >= wt) {
|
|
366
|
+
b(), t = null;
|
|
307
367
|
return;
|
|
308
368
|
}
|
|
309
|
-
t.moved && Math.abs(
|
|
310
|
-
},
|
|
311
|
-
t && (t.moved &&
|
|
369
|
+
t.moved && Math.abs(S) >= wt && b(), t = null;
|
|
370
|
+
}, O = () => {
|
|
371
|
+
t && (t.moved && b(), t = null);
|
|
312
372
|
};
|
|
313
373
|
return { initialize: () => {
|
|
314
|
-
if (typeof window > "u" ||
|
|
315
|
-
|
|
316
|
-
const
|
|
317
|
-
window.addEventListener("touchstart",
|
|
374
|
+
if (typeof window > "u" || a) return;
|
|
375
|
+
a = !0;
|
|
376
|
+
const h = { passive: !0, capture: !0 };
|
|
377
|
+
window.addEventListener("touchstart", _, h), window.addEventListener("touchmove", L, h), window.addEventListener("touchend", w, h), window.addEventListener("touchcancel", O, h);
|
|
318
378
|
}, destroy: () => {
|
|
319
|
-
if (typeof window > "u" || !
|
|
320
|
-
|
|
321
|
-
const
|
|
322
|
-
window.removeEventListener("touchstart",
|
|
379
|
+
if (typeof window > "u" || !a) return;
|
|
380
|
+
a = !1;
|
|
381
|
+
const h = { capture: !0 };
|
|
382
|
+
window.removeEventListener("touchstart", _, h), window.removeEventListener("touchmove", L, h), window.removeEventListener("touchend", w, h), window.removeEventListener("touchcancel", O, h), u(), g(), t = null, n = !1, e = !1;
|
|
323
383
|
}, isSwipeBack: () => {
|
|
324
|
-
const
|
|
325
|
-
return
|
|
384
|
+
const h = n || e;
|
|
385
|
+
return h && u(), h;
|
|
326
386
|
}, onPageEnter: () => {
|
|
327
|
-
|
|
328
|
-
e = !1,
|
|
387
|
+
n = !1, u(), g(), o = setTimeout(() => {
|
|
388
|
+
e = !1, o = null;
|
|
329
389
|
}, 0);
|
|
330
390
|
} };
|
|
331
391
|
}
|
|
332
|
-
function
|
|
392
|
+
function ne() {
|
|
333
393
|
let t = null;
|
|
334
|
-
function
|
|
335
|
-
var
|
|
336
|
-
t && ((
|
|
394
|
+
function n() {
|
|
395
|
+
var s, o;
|
|
396
|
+
t && ((s = t.outResolve) == null || s.call(t, null), (o = t.inResolve) == null || o.call(t, null), t = null);
|
|
337
397
|
}
|
|
338
398
|
function e() {
|
|
339
399
|
if (t != null && t.from && (t != null && t.to) && (t != null && t.outResolve) && (t != null && t.inResolve)) {
|
|
340
400
|
if (t.from === t.to) {
|
|
341
|
-
|
|
401
|
+
n();
|
|
342
402
|
return;
|
|
343
403
|
}
|
|
344
|
-
const
|
|
345
|
-
t.outResolve(
|
|
404
|
+
const s = { from: t.from, to: t.to };
|
|
405
|
+
t.outResolve(s), t.inResolve(s), t = null;
|
|
346
406
|
}
|
|
347
407
|
}
|
|
348
408
|
return {
|
|
349
|
-
trigger(
|
|
350
|
-
var
|
|
351
|
-
|
|
409
|
+
trigger(s, o) {
|
|
410
|
+
var l;
|
|
411
|
+
o === "out" && (t == null ? void 0 : t.to) === s && !t.from && ((l = t.inResolve) == null || l.call(t, null), t = {}), t && (o === "out" && t.from && t.from !== s || o === "in" && t.to && t.to !== s) && n(), t || (t = {}), o === "out" ? t.from = s : t.to = s;
|
|
352
412
|
},
|
|
353
|
-
get(
|
|
354
|
-
return new Promise((
|
|
355
|
-
t || (t = {}),
|
|
413
|
+
get(s) {
|
|
414
|
+
return new Promise((o) => {
|
|
415
|
+
t || (t = {}), s === "out" ? t.outResolve = o : t.inResolve = o, e();
|
|
356
416
|
});
|
|
357
417
|
}
|
|
358
418
|
};
|
|
359
419
|
}
|
|
360
420
|
const X = /* @__PURE__ */ new Map();
|
|
361
|
-
let
|
|
362
|
-
function
|
|
421
|
+
let Y = null, Tt = !1;
|
|
422
|
+
function Mt(t, n) {
|
|
363
423
|
if (t instanceof HTMLElement && X.has(t) && !t.isConnected) {
|
|
364
424
|
const e = X.get(t);
|
|
365
|
-
X.delete(t), queueMicrotask(() => e(
|
|
425
|
+
X.delete(t), queueMicrotask(() => e(n));
|
|
366
426
|
}
|
|
367
427
|
for (const e of Array.from(t.childNodes))
|
|
368
|
-
|
|
428
|
+
Mt(e, n);
|
|
369
429
|
}
|
|
370
|
-
function
|
|
371
|
-
if (
|
|
372
|
-
|
|
373
|
-
for (const e of
|
|
374
|
-
const
|
|
430
|
+
function se() {
|
|
431
|
+
if (Tt || typeof document > "u") return;
|
|
432
|
+
Tt = !0, Y = new MutationObserver((n) => {
|
|
433
|
+
for (const e of n) {
|
|
434
|
+
const s = {
|
|
375
435
|
parent: e.target,
|
|
376
436
|
nextSibling: e.nextSibling
|
|
377
437
|
};
|
|
378
|
-
for (const
|
|
379
|
-
|
|
438
|
+
for (const o of Array.from(e.removedNodes))
|
|
439
|
+
Mt(o, s);
|
|
380
440
|
}
|
|
381
441
|
});
|
|
382
442
|
const t = () => {
|
|
383
|
-
|
|
443
|
+
Y == null || Y.observe(document.body, { childList: !0, subtree: !0 });
|
|
384
444
|
};
|
|
385
445
|
document.body ? t() : document.addEventListener("DOMContentLoaded", t, { once: !0 });
|
|
386
446
|
}
|
|
387
|
-
function
|
|
388
|
-
return
|
|
447
|
+
function ie(t, n) {
|
|
448
|
+
return se(), X.set(t, n), () => {
|
|
389
449
|
X.delete(t);
|
|
390
450
|
};
|
|
391
451
|
}
|
|
392
|
-
const
|
|
452
|
+
const ct = /* @__PURE__ */ new WeakMap();
|
|
393
453
|
let Z = null;
|
|
394
|
-
const
|
|
395
|
-
function
|
|
396
|
-
const
|
|
397
|
-
return t.style.getPropertyPriority("display") ? `${
|
|
454
|
+
const Q = "none !important";
|
|
455
|
+
function K(t) {
|
|
456
|
+
const n = t.style.getPropertyValue("display");
|
|
457
|
+
return t.style.getPropertyPriority("display") ? `${n} !important` : n;
|
|
398
458
|
}
|
|
399
|
-
function
|
|
459
|
+
function oe() {
|
|
400
460
|
return Z || (Z = new MutationObserver((t) => {
|
|
401
|
-
for (const
|
|
402
|
-
const e =
|
|
403
|
-
if (!
|
|
404
|
-
const
|
|
405
|
-
|
|
461
|
+
for (const n of t) {
|
|
462
|
+
const e = n.target, s = ct.get(e);
|
|
463
|
+
if (!s) continue;
|
|
464
|
+
const o = K(e);
|
|
465
|
+
o !== s.accounted && (s.accounted = o, o === Q ? (s.reactHidden = !0, s.onHide()) : o !== "none" && s.reactHidden && (s.reactHidden = !1, s.onShow()));
|
|
406
466
|
}
|
|
407
467
|
}), Z);
|
|
408
468
|
}
|
|
409
|
-
function
|
|
410
|
-
const e =
|
|
469
|
+
function re(t, n) {
|
|
470
|
+
const e = K(t), s = {
|
|
411
471
|
accounted: e,
|
|
412
|
-
reactHidden: e ===
|
|
413
|
-
onHide:
|
|
414
|
-
onShow:
|
|
472
|
+
reactHidden: e === Q,
|
|
473
|
+
onHide: n.onHide,
|
|
474
|
+
onShow: n.onShow
|
|
415
475
|
};
|
|
416
|
-
return
|
|
476
|
+
return ct.set(t, s), oe().observe(t, {
|
|
417
477
|
attributes: !0,
|
|
418
478
|
attributeFilter: ["style"]
|
|
419
479
|
}), {
|
|
420
480
|
get isHidden() {
|
|
421
|
-
return
|
|
481
|
+
return K(t) === Q;
|
|
422
482
|
},
|
|
423
|
-
setDisplay(
|
|
424
|
-
|
|
483
|
+
setDisplay(o, a = !1) {
|
|
484
|
+
o === null ? t.style.removeProperty("display") : t.style.setProperty(
|
|
425
485
|
"display",
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
),
|
|
486
|
+
o,
|
|
487
|
+
a ? "important" : ""
|
|
488
|
+
), s.accounted = K(t);
|
|
429
489
|
},
|
|
430
490
|
sync() {
|
|
431
|
-
|
|
491
|
+
s.accounted = K(t), s.reactHidden = s.accounted === Q;
|
|
432
492
|
},
|
|
433
493
|
stop() {
|
|
434
|
-
|
|
494
|
+
ct.delete(t);
|
|
435
495
|
}
|
|
436
496
|
};
|
|
437
497
|
}
|
|
438
|
-
function
|
|
498
|
+
function ce(t) {
|
|
439
499
|
return Array.isArray(t);
|
|
440
500
|
}
|
|
441
|
-
function
|
|
442
|
-
const
|
|
501
|
+
function Rt(t) {
|
|
502
|
+
const n = [];
|
|
443
503
|
for (const e of t)
|
|
444
|
-
|
|
445
|
-
return
|
|
504
|
+
ce(e) ? n.push(...Rt(e)) : n.push(e);
|
|
505
|
+
return n;
|
|
446
506
|
}
|
|
447
|
-
function
|
|
507
|
+
function ge(t, n = {}) {
|
|
448
508
|
const {
|
|
449
509
|
transitions: e = [],
|
|
450
|
-
middleware:
|
|
451
|
-
preserveScroll:
|
|
452
|
-
} = t,
|
|
453
|
-
|
|
454
|
-
const {
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
510
|
+
middleware: s = (i, r) => ({ from: i, to: r }),
|
|
511
|
+
preserveScroll: o = (i) => i
|
|
512
|
+
} = t, a = n.host ?? new Ht(), l = ne(), u = typeof e == "function" ? e : () => e, g = ee();
|
|
513
|
+
g.initialize();
|
|
514
|
+
const b = /* @__PURE__ */ new Map(), _ = (i) => {
|
|
515
|
+
let r = b.get(i);
|
|
516
|
+
return r === void 0 && (r = s(i, i).from, b.set(i, r)), r;
|
|
517
|
+
}, {
|
|
518
|
+
initializeContext: L,
|
|
519
|
+
calculateScrollOffset: w,
|
|
520
|
+
evictScrollPosition: O,
|
|
521
|
+
shouldPreserve: k,
|
|
522
|
+
getScrollContainer: W,
|
|
523
|
+
getPositionedParentElement: $,
|
|
524
|
+
getScrollPosition: z,
|
|
525
|
+
getIsMobile: h
|
|
526
|
+
} = Jt({ preserveScroll: o, resolvePath: _ }), v = /* @__PURE__ */ new Map(), S = () => {
|
|
527
|
+
const i = h();
|
|
528
|
+
let r = v.get(i);
|
|
529
|
+
return r || (r = Kt(
|
|
530
|
+
Rt(u({ isMobile: i }))
|
|
531
|
+
), v.set(i, r)), r;
|
|
469
532
|
};
|
|
470
|
-
let
|
|
471
|
-
const
|
|
472
|
-
|
|
473
|
-
parent:
|
|
474
|
-
nextSibling:
|
|
533
|
+
let m = null, T = null;
|
|
534
|
+
const I = /* @__PURE__ */ new WeakMap(), f = (i) => {
|
|
535
|
+
I.set(i, {
|
|
536
|
+
parent: i.parentNode,
|
|
537
|
+
nextSibling: i.nextSibling
|
|
475
538
|
});
|
|
476
|
-
},
|
|
477
|
-
const
|
|
478
|
-
return
|
|
479
|
-
parent:
|
|
480
|
-
nextSibling:
|
|
539
|
+
}, d = (i) => {
|
|
540
|
+
const r = I.get(i);
|
|
541
|
+
return r || {
|
|
542
|
+
parent: i.parentNode,
|
|
543
|
+
nextSibling: i.nextSibling
|
|
481
544
|
};
|
|
482
|
-
},
|
|
483
|
-
let
|
|
484
|
-
const
|
|
485
|
-
const
|
|
486
|
-
return
|
|
487
|
-
},
|
|
488
|
-
|
|
489
|
-
},
|
|
490
|
-
if (
|
|
491
|
-
|
|
492
|
-
const
|
|
493
|
-
|
|
494
|
-
},
|
|
495
|
-
const
|
|
496
|
-
scrollOffset:
|
|
497
|
-
from: { scroll:
|
|
498
|
-
to: { scroll:
|
|
545
|
+
}, y = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap();
|
|
546
|
+
let P = 0;
|
|
547
|
+
const A = (i) => {
|
|
548
|
+
const r = typeof getComputedStyle < "u" ? getComputedStyle(i).display : "";
|
|
549
|
+
return r && r !== "none" ? r : "block";
|
|
550
|
+
}, C = (i, r) => {
|
|
551
|
+
r.visibleDisplay = i.style.getPropertyValue("display"), r.computedDisplay = A(i);
|
|
552
|
+
}, ut = (i, r) => {
|
|
553
|
+
if (E.get(i) !== r) return;
|
|
554
|
+
E.delete(i);
|
|
555
|
+
const c = y.get(i);
|
|
556
|
+
c && (c.savedCss !== null && (i.style.cssText = c.savedCss, c.savedCss = null), c.intent === "hidden" ? c.vis.setDisplay("none", !0) : c.visibleDisplay ? (c.vis.setDisplay(c.visibleDisplay, !1), C(i, c)) : (c.vis.setDisplay(null), C(i, c)));
|
|
557
|
+
}, Ct = (i, r, c, p, M) => {
|
|
558
|
+
const R = p.element, D = M.element, N = (p.mode ?? "unmount") === "hidden", { parent: q, nextSibling: J } = p.parent ? { parent: p.parent, nextSibling: p.nextSibling } : d(R), V = w(r, c), tt = {
|
|
559
|
+
scrollOffset: V,
|
|
560
|
+
from: { scroll: z(r) },
|
|
561
|
+
to: { scroll: z(c) },
|
|
499
562
|
get scrollingElement() {
|
|
500
|
-
return
|
|
563
|
+
return W() || document.documentElement;
|
|
501
564
|
},
|
|
502
565
|
get positionedParent() {
|
|
503
|
-
return
|
|
566
|
+
return $();
|
|
504
567
|
}
|
|
505
568
|
};
|
|
506
|
-
let
|
|
507
|
-
if (
|
|
508
|
-
|
|
509
|
-
const
|
|
510
|
-
|
|
569
|
+
let x;
|
|
570
|
+
if (N) {
|
|
571
|
+
x = R, x.style.top = `${-1 * ((V == null ? void 0 : V.y) ?? 0)}px`;
|
|
572
|
+
const H = y.get(D);
|
|
573
|
+
H && H.savedCss === null && (H.savedCss = D.style.cssText);
|
|
511
574
|
} else
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
const
|
|
515
|
-
|
|
516
|
-
const
|
|
517
|
-
from:
|
|
518
|
-
to:
|
|
575
|
+
x = R, Wt(x, tt);
|
|
576
|
+
k(r) || O(r);
|
|
577
|
+
const G = N ? ++P : 0;
|
|
578
|
+
N && (E.set(D, G), E.set(R, G));
|
|
579
|
+
const pt = Promise.resolve(x), yt = Promise.resolve(D), mt = [], _t = {
|
|
580
|
+
from: pt,
|
|
581
|
+
to: yt,
|
|
519
582
|
context: tt,
|
|
520
|
-
createElement: ((
|
|
521
|
-
const
|
|
522
|
-
return
|
|
583
|
+
createElement: ((H, et = "div") => {
|
|
584
|
+
const B = document.createElement(et);
|
|
585
|
+
return B.setAttribute("data-ssgoi-id", H), mt.push(B), B;
|
|
523
586
|
})
|
|
524
|
-
},
|
|
525
|
-
|
|
587
|
+
}, Dt = Promise.resolve(
|
|
588
|
+
i.prepare ? i.prepare(_t) : {}
|
|
526
589
|
);
|
|
527
|
-
|
|
528
|
-
from:
|
|
529
|
-
to:
|
|
530
|
-
extras:
|
|
531
|
-
}).then(({ from:
|
|
532
|
-
!
|
|
533
|
-
const nt =
|
|
534
|
-
from:
|
|
590
|
+
Ft({
|
|
591
|
+
from: pt,
|
|
592
|
+
to: yt,
|
|
593
|
+
extras: Dt
|
|
594
|
+
}).then(({ from: H, to: et, extras: B }) => {
|
|
595
|
+
!N && q && (J && q.contains(J) ? q.insertBefore(x, J) : q.appendChild(x));
|
|
596
|
+
const nt = i.animation({
|
|
597
|
+
from: H,
|
|
535
598
|
to: et,
|
|
536
599
|
context: tt,
|
|
537
|
-
...
|
|
600
|
+
...B
|
|
538
601
|
}), st = nt.onComplete;
|
|
539
602
|
nt.onComplete = () => {
|
|
540
|
-
st == null || st(),
|
|
541
|
-
for (const
|
|
542
|
-
|
|
543
|
-
},
|
|
603
|
+
st == null || st(), N ? (ut(R, G), ut(D, G)) : x.parentNode && x.parentNode.removeChild(x);
|
|
604
|
+
for (const it of mt)
|
|
605
|
+
it.parentNode && it.parentNode.removeChild(it);
|
|
606
|
+
}, a.attach(nt);
|
|
544
607
|
});
|
|
545
|
-
},
|
|
546
|
-
const
|
|
547
|
-
|
|
548
|
-
if (
|
|
549
|
-
if (
|
|
550
|
-
|
|
608
|
+
}, U = (i, r) => {
|
|
609
|
+
const c = g.isSwipeBack();
|
|
610
|
+
l.trigger(i, r), l.get(r).then((p) => {
|
|
611
|
+
if (r === "in" && g.onPageEnter(), !p) return;
|
|
612
|
+
if (c) {
|
|
613
|
+
r === "out" && p.from && !k(p.from) && O(p.from), m = null, T = null;
|
|
551
614
|
return;
|
|
552
615
|
}
|
|
553
|
-
if (
|
|
554
|
-
const { from:
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
),
|
|
616
|
+
if (r !== "in") return;
|
|
617
|
+
const { from: M, to: R } = s(
|
|
618
|
+
p.from,
|
|
619
|
+
p.to
|
|
620
|
+
), D = Yt(
|
|
621
|
+
M,
|
|
558
622
|
R,
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
f = null, h = null, !(!_ || !J || !k) && Tt(_, R, P, J, k);
|
|
623
|
+
S()
|
|
624
|
+
), j = m, N = T;
|
|
625
|
+
m = null, T = null, !(!D || !j || !N) && Ct(D, p.from, p.to, j, N);
|
|
563
626
|
});
|
|
564
|
-
},
|
|
565
|
-
const
|
|
566
|
-
if (!
|
|
567
|
-
const
|
|
568
|
-
if (
|
|
569
|
-
const
|
|
570
|
-
|
|
571
|
-
element:
|
|
572
|
-
parent:
|
|
573
|
-
nextSibling:
|
|
627
|
+
}, xt = (i, r) => {
|
|
628
|
+
const c = y.get(i);
|
|
629
|
+
if (!c) return;
|
|
630
|
+
const p = c.intent === "hidden";
|
|
631
|
+
if (c.intent = "hidden", c.savedCss === null && (c.savedCss = i.style.cssText), c.vis.setDisplay(c.computedDisplay || "block", !0), i.style.position = "absolute", i.style.width = "100%", i.style.left = "0", p) return;
|
|
632
|
+
const M = d(i);
|
|
633
|
+
m = {
|
|
634
|
+
element: i,
|
|
635
|
+
parent: M.parent,
|
|
636
|
+
nextSibling: M.nextSibling,
|
|
574
637
|
mode: "hidden"
|
|
575
638
|
};
|
|
576
|
-
const
|
|
577
|
-
|
|
578
|
-
},
|
|
579
|
-
const
|
|
580
|
-
if (!
|
|
581
|
-
|
|
582
|
-
element:
|
|
583
|
-
parent:
|
|
584
|
-
nextSibling:
|
|
639
|
+
const R = i.getAttribute("data-ssgoi-transition") ?? r;
|
|
640
|
+
U(R, "out");
|
|
641
|
+
}, Lt = (i, r) => {
|
|
642
|
+
const c = y.get(i);
|
|
643
|
+
if (!c || c.intent === "visible") return;
|
|
644
|
+
c.intent = "visible", C(i, c), c.savedCss !== null && (i.style.cssText = c.savedCss, c.visibleDisplay ? c.vis.setDisplay(c.visibleDisplay, !1) : c.vis.setDisplay(null)), L(i, r), T = {
|
|
645
|
+
element: i,
|
|
646
|
+
parent: i.parentElement,
|
|
647
|
+
nextSibling: i.nextElementSibling
|
|
585
648
|
};
|
|
586
|
-
const
|
|
587
|
-
|
|
588
|
-
},
|
|
589
|
-
const
|
|
590
|
-
if (
|
|
591
|
-
(
|
|
649
|
+
const p = i.getAttribute("data-ssgoi-transition") ?? r;
|
|
650
|
+
U(p, "in");
|
|
651
|
+
}, Ot = (i, r, c) => {
|
|
652
|
+
const p = y.get(i);
|
|
653
|
+
if (p && (p.vis.stop(), y.delete(i), E.delete(i), p.intent === "hidden")) {
|
|
654
|
+
(m == null ? void 0 : m.element) === i && (m = null), (T == null ? void 0 : T.element) === i && (T = null);
|
|
592
655
|
return;
|
|
593
656
|
}
|
|
594
|
-
const
|
|
595
|
-
|
|
596
|
-
element:
|
|
597
|
-
parent:
|
|
598
|
-
nextSibling:
|
|
657
|
+
const M = c ?? d(i);
|
|
658
|
+
m = {
|
|
659
|
+
element: i,
|
|
660
|
+
parent: M.parent,
|
|
661
|
+
nextSibling: M.nextSibling,
|
|
599
662
|
mode: "unmount"
|
|
600
663
|
};
|
|
601
|
-
const
|
|
602
|
-
|
|
603
|
-
},
|
|
604
|
-
if (
|
|
605
|
-
|
|
606
|
-
const
|
|
607
|
-
onHide: () =>
|
|
608
|
-
onShow: () =>
|
|
609
|
-
}),
|
|
610
|
-
vis:
|
|
664
|
+
const R = i.getAttribute("data-ssgoi-transition") ?? r;
|
|
665
|
+
U(R, "out");
|
|
666
|
+
}, dt = /* @__PURE__ */ new WeakSet(), ft = (i, r) => {
|
|
667
|
+
if (dt.has(r)) return;
|
|
668
|
+
dt.add(r), f(r);
|
|
669
|
+
const c = re(r, {
|
|
670
|
+
onHide: () => xt(r, i),
|
|
671
|
+
onShow: () => Lt(r, i)
|
|
672
|
+
}), p = {
|
|
673
|
+
vis: c,
|
|
611
674
|
savedCss: null,
|
|
612
|
-
intent:
|
|
675
|
+
intent: c.isHidden ? "hidden" : "visible",
|
|
613
676
|
visibleDisplay: "",
|
|
614
677
|
computedDisplay: "block"
|
|
615
678
|
};
|
|
616
|
-
|
|
617
|
-
element:
|
|
618
|
-
parent:
|
|
619
|
-
nextSibling:
|
|
620
|
-
},
|
|
621
|
-
},
|
|
622
|
-
return { register:
|
|
623
|
-
let
|
|
624
|
-
return
|
|
625
|
-
|
|
626
|
-
},
|
|
679
|
+
y.set(r, p), c.isHidden || (C(r, p), L(r, i), T = {
|
|
680
|
+
element: r,
|
|
681
|
+
parent: r.parentElement,
|
|
682
|
+
nextSibling: r.nextElementSibling
|
|
683
|
+
}, U(i, "in")), ie(r, (M) => Ot(r, i, M));
|
|
684
|
+
}, ht = /* @__PURE__ */ new Map();
|
|
685
|
+
return { register: ft, refFor: (i) => {
|
|
686
|
+
let r = ht.get(i);
|
|
687
|
+
return r || (r = (c) => {
|
|
688
|
+
c && ft(i, c);
|
|
689
|
+
}, ht.set(i, r)), r;
|
|
627
690
|
} };
|
|
628
691
|
}
|
|
629
|
-
const
|
|
630
|
-
function
|
|
692
|
+
const At = "data-ssgoi-root", le = `[${At}]`, lt = "data-ssgoi-transition", Pt = `[${lt}]`, ae = "[data-ssgoi-clone]";
|
|
693
|
+
function ue() {
|
|
631
694
|
return typeof MutationObserver < "u" && typeof HTMLElement < "u" && typeof Node < "u";
|
|
632
695
|
}
|
|
633
|
-
function
|
|
696
|
+
function de(t) {
|
|
634
697
|
return t.nodeType === Node.ELEMENT_NODE;
|
|
635
698
|
}
|
|
636
|
-
function
|
|
699
|
+
function fe(t) {
|
|
637
700
|
return t instanceof HTMLElement;
|
|
638
701
|
}
|
|
639
|
-
function
|
|
640
|
-
if (!
|
|
702
|
+
function ve(t, n) {
|
|
703
|
+
if (!ue()) return () => {
|
|
641
704
|
};
|
|
642
|
-
t.setAttribute(
|
|
643
|
-
const e = (
|
|
644
|
-
if (!
|
|
705
|
+
t.setAttribute(At, "");
|
|
706
|
+
const e = (l) => l.closest(le) === t, s = (l) => {
|
|
707
|
+
if (!fe(l) || !e(l) || l.closest(ae))
|
|
645
708
|
return;
|
|
646
|
-
const
|
|
647
|
-
|
|
648
|
-
},
|
|
649
|
-
if (
|
|
650
|
-
|
|
651
|
-
for (const
|
|
652
|
-
|
|
709
|
+
const u = l.getAttribute(lt);
|
|
710
|
+
u !== null && n.register(u, l);
|
|
711
|
+
}, o = (l) => {
|
|
712
|
+
if (de(l)) {
|
|
713
|
+
l.matches(Pt) && s(l);
|
|
714
|
+
for (const u of l.querySelectorAll(Pt))
|
|
715
|
+
s(u);
|
|
653
716
|
}
|
|
654
|
-
},
|
|
655
|
-
for (const
|
|
656
|
-
if (
|
|
657
|
-
|
|
717
|
+
}, a = new MutationObserver((l) => {
|
|
718
|
+
for (const u of l) {
|
|
719
|
+
if (u.type === "attributes") {
|
|
720
|
+
s(u.target);
|
|
658
721
|
continue;
|
|
659
722
|
}
|
|
660
|
-
for (const
|
|
661
|
-
|
|
723
|
+
for (const g of u.addedNodes)
|
|
724
|
+
o(g);
|
|
662
725
|
}
|
|
663
726
|
});
|
|
664
|
-
return
|
|
727
|
+
return a.observe(t, {
|
|
665
728
|
childList: !0,
|
|
666
729
|
subtree: !0,
|
|
667
730
|
attributes: !0,
|
|
668
|
-
attributeFilter: [
|
|
669
|
-
}),
|
|
731
|
+
attributeFilter: [lt]
|
|
732
|
+
}), o(t), () => a.disconnect();
|
|
670
733
|
}
|
|
671
734
|
export {
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
735
|
+
It as Animation,
|
|
736
|
+
Ht as HostAnimation,
|
|
737
|
+
Ee as MultiAnimation,
|
|
738
|
+
we as WebAnimation,
|
|
739
|
+
ge as createSggoiTransitionContext,
|
|
740
|
+
ve as observeSsgoiTransitions
|
|
678
741
|
};
|