@ssgoi/core 6.6.2 → 6.6.4

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