@pie-players/pie-tool-sign-language 1.0.0-beta.1 → 1.0.0-beta.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/dist/tool-sign-language.js +901 -880
- package/package.json +4 -4
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { bindTtsAudioHandoff as
|
|
2
|
-
import { applyMediaFragment as
|
|
3
|
-
import { resolveInterfaceI18n as
|
|
1
|
+
import { bindTtsAudioHandoff as Si, connectToolRuntimeContext as Ei, pauseTtsForMediaAudio as Mi, resolveToolTag as Ti } from "@pie-players/pie-assessment-toolkit/tools/registration";
|
|
2
|
+
import { applyMediaFragment as xi, enforceMediaFragment as Ai, isSafeMediaSrc as Li, isUnsupportedMediaAssetVersion as Oi, normalizeMediaFragment as Ri, normalizeMediaSources as Ci, trimmedOrUndefined as st } from "@pie-players/pie-players-shared/media";
|
|
3
|
+
import { resolveInterfaceI18n as wn } from "@pie-players/pie-players-shared/i18n/provider";
|
|
4
4
|
if (typeof window < "u") {
|
|
5
|
-
var
|
|
6
|
-
((
|
|
5
|
+
var Kr, Xr;
|
|
6
|
+
((Kr = (Xr = window).__svelte ?? (Xr.__svelte = {})).v ?? (Kr.v = /* @__PURE__ */ new Set())).add("5");
|
|
7
7
|
}
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var Te = {}, W = /* @__PURE__ */ Symbol("uninitialized");
|
|
9
|
+
var mn = Array.isArray, Ni = Array.prototype.indexOf, yt = Array.prototype.includes, rr = Array.from, qt = Object.keys, bt = Object.defineProperty, We = Object.getOwnPropertyDescriptor, Ii = Object.getOwnPropertyDescriptors, Pi = Object.prototype, Wi = Array.prototype, yn = Object.getPrototypeOf, Jr = Object.isExtensible, ji = () => {
|
|
10
10
|
};
|
|
11
|
-
function
|
|
11
|
+
function Fi(e) {
|
|
12
12
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function bn() {
|
|
15
15
|
var e, t;
|
|
16
16
|
return {
|
|
17
17
|
promise: new Promise((r, n) => {
|
|
@@ -21,46 +21,46 @@ function mn() {
|
|
|
21
21
|
reject: t
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function $t(e) {
|
|
25
25
|
"@babel/helpers - typeof";
|
|
26
|
-
return
|
|
26
|
+
return $t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
27
27
|
return typeof t;
|
|
28
28
|
} : function(t) {
|
|
29
29
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
30
|
-
},
|
|
30
|
+
}, $t(e);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
if (
|
|
32
|
+
function Di(e, t) {
|
|
33
|
+
if ($t(e) != "object" || !e) return e;
|
|
34
34
|
var r = e[Symbol.toPrimitive];
|
|
35
35
|
if (r !== void 0) {
|
|
36
36
|
var n = r.call(e, t || "default");
|
|
37
|
-
if (
|
|
37
|
+
if ($t(n) != "object") return n;
|
|
38
38
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
39
39
|
}
|
|
40
40
|
return (t === "string" ? String : Number)(e);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
var t =
|
|
44
|
-
return
|
|
42
|
+
function Gi(e) {
|
|
43
|
+
var t = Di(e, "string");
|
|
44
|
+
return $t(t) == "symbol" ? t : t + "";
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
return (t =
|
|
46
|
+
function O(e, t, r) {
|
|
47
|
+
return (t = Gi(t)) in e ? Object.defineProperty(e, t, {
|
|
48
48
|
value: r,
|
|
49
49
|
enumerable: !0,
|
|
50
50
|
configurable: !0,
|
|
51
51
|
writable: !0
|
|
52
52
|
}) : e[t] = r, e;
|
|
53
53
|
}
|
|
54
|
-
var Ya = 1 << 24, J = 1024, V = 2048,
|
|
55
|
-
var
|
|
54
|
+
var Ya = 1 << 24, J = 1024, V = 2048, He = 4096, Tr = 8192, $n = 16384, xr = 32768, vr = 1 << 25, Ar = 65536, Va = 1 << 17, Ka = 1 << 18, it = 1 << 19, qi = 1 << 20, vt = 1 << 25, Zr = 1 << 21, Ui = 1 << 22, Ut = 1 << 23, _t = /* @__PURE__ */ Symbol("$state"), kn = /* @__PURE__ */ Symbol("component"), Sn = /* @__PURE__ */ Symbol("legacy props"), Hi = /* @__PURE__ */ Symbol(""), Bi = /* @__PURE__ */ Symbol("proxy path"), _r = /* @__PURE__ */ Symbol("attributes"), zi = /* @__PURE__ */ Symbol("class"), Yi = /* @__PURE__ */ Symbol("style"), Wt = /* @__PURE__ */ Symbol("text");
|
|
55
|
+
var Tt = new class extends Error {
|
|
56
56
|
constructor(...t) {
|
|
57
|
-
super(...t),
|
|
57
|
+
super(...t), O(this, "name", "StaleReactionError"), O(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
58
58
|
}
|
|
59
59
|
}(), Vi = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
60
60
|
function Ki() {
|
|
61
61
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function nr(e) {
|
|
64
64
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
65
65
|
}
|
|
66
66
|
function Xi() {
|
|
@@ -71,18 +71,18 @@ function me(e) {
|
|
|
71
71
|
A = e;
|
|
72
72
|
}
|
|
73
73
|
var x;
|
|
74
|
-
function
|
|
74
|
+
function B(e) {
|
|
75
75
|
if (e === null)
|
|
76
|
-
throw
|
|
76
|
+
throw nr(), Te;
|
|
77
77
|
return x = e;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function ir() {
|
|
80
|
+
return B(/* @__PURE__ */ pe(x));
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function pr(e) {
|
|
83
83
|
if (A) {
|
|
84
84
|
if (/* @__PURE__ */ pe(x) !== null)
|
|
85
|
-
throw
|
|
85
|
+
throw nr(), Te;
|
|
86
86
|
x = e;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -92,7 +92,7 @@ function Ji(e = 1) {
|
|
|
92
92
|
x = r;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Ht(e = !0) {
|
|
96
96
|
for (var t = 0, r = x; ; ) {
|
|
97
97
|
if (r.nodeType === 8) {
|
|
98
98
|
var n = r.data;
|
|
@@ -105,18 +105,18 @@ function Ut(e = !0) {
|
|
|
105
105
|
e && r.remove(), r = i;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Lr(e) {
|
|
109
109
|
if (!e || e.nodeType !== 8)
|
|
110
|
-
throw
|
|
110
|
+
throw nr(), Te;
|
|
111
111
|
return e.data;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function En(e) {
|
|
114
114
|
return e === this.v;
|
|
115
115
|
}
|
|
116
116
|
function Zi(e, t) {
|
|
117
117
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Mn(e) {
|
|
120
120
|
return !Zi(e, this.v);
|
|
121
121
|
}
|
|
122
122
|
function Qi() {
|
|
@@ -155,75 +155,75 @@ function fs() {
|
|
|
155
155
|
function us() {
|
|
156
156
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
157
157
|
}
|
|
158
|
-
var
|
|
159
|
-
function
|
|
158
|
+
var Ae = !1, sr = !1;
|
|
159
|
+
function Qr(e, t) {
|
|
160
160
|
return e.label = t, cs(e.v, t), e;
|
|
161
161
|
}
|
|
162
162
|
function cs(e, t) {
|
|
163
163
|
return e?.[Bi]?.(t), e;
|
|
164
164
|
}
|
|
165
|
-
var
|
|
166
|
-
function
|
|
167
|
-
|
|
165
|
+
var I = null;
|
|
166
|
+
function tt(e) {
|
|
167
|
+
I = e;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
|
|
171
|
-
p:
|
|
169
|
+
function Tn(e, t = !1, r) {
|
|
170
|
+
I = {
|
|
171
|
+
p: I,
|
|
172
172
|
i: !1,
|
|
173
173
|
c: null,
|
|
174
174
|
e: null,
|
|
175
175
|
s: e,
|
|
176
176
|
x: null,
|
|
177
177
|
r: S,
|
|
178
|
-
l:
|
|
178
|
+
l: sr && !t ? {
|
|
179
179
|
s: null,
|
|
180
180
|
u: null,
|
|
181
181
|
$: []
|
|
182
182
|
} : null
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
var t =
|
|
185
|
+
function xn(e) {
|
|
186
|
+
var t = I, r = t.e;
|
|
187
187
|
if (r !== null) {
|
|
188
188
|
t.e = null;
|
|
189
|
-
for (var n of r)
|
|
189
|
+
for (var n of r) Qn(n);
|
|
190
190
|
}
|
|
191
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
191
|
+
return e !== void 0 && (t.x = e), t.i = !0, I = t.p, Or(e);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
return
|
|
193
|
+
function Or(e = {}) {
|
|
194
|
+
return bt(e, kn, { value: !0 }), e;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
return !
|
|
196
|
+
function xt() {
|
|
197
|
+
return !sr || I !== null && I.l === null;
|
|
198
198
|
}
|
|
199
|
-
var
|
|
200
|
-
function
|
|
201
|
-
var e =
|
|
202
|
-
|
|
199
|
+
var Ne = [];
|
|
200
|
+
function An() {
|
|
201
|
+
var e = Ne;
|
|
202
|
+
Ne = [], Fi(e);
|
|
203
203
|
}
|
|
204
204
|
function be(e) {
|
|
205
|
-
if (
|
|
206
|
-
var t =
|
|
205
|
+
if (Ne.length === 0 && !pt) {
|
|
206
|
+
var t = Ne;
|
|
207
207
|
queueMicrotask(() => {
|
|
208
|
-
t ===
|
|
208
|
+
t === Ne && An();
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
|
-
|
|
211
|
+
Ne.push(e);
|
|
212
212
|
}
|
|
213
213
|
function ds() {
|
|
214
|
-
for (;
|
|
214
|
+
for (; Ne.length > 0; ) An();
|
|
215
215
|
}
|
|
216
|
-
var hs = ~(V |
|
|
217
|
-
function
|
|
216
|
+
var hs = ~(V | He | J);
|
|
217
|
+
function N(e, t) {
|
|
218
218
|
e.f = e.f & hs | t;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
(e.f & 512) !== 0 || e.deps === null ?
|
|
220
|
+
function Rr(e) {
|
|
221
|
+
(e.f & 512) !== 0 || e.deps === null ? N(e, J) : N(e, He);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e),
|
|
223
|
+
function Ln(e, t, r) {
|
|
224
|
+
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e), N(e, J);
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function At(e) {
|
|
227
227
|
var t = T, r = S;
|
|
228
228
|
Q(null), _e(null);
|
|
229
229
|
try {
|
|
@@ -233,14 +233,14 @@ function Mt(e) {
|
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
function vs(e, t, r, n) {
|
|
236
|
-
const i =
|
|
236
|
+
const i = xt() ? kt : Cr;
|
|
237
237
|
var s = e.filter((u) => !u.settled), l = t.map(i);
|
|
238
238
|
if (r.length === 0 && s.length === 0) {
|
|
239
239
|
n(l);
|
|
240
240
|
return;
|
|
241
241
|
}
|
|
242
|
-
var o = S, f = _s(),
|
|
243
|
-
function
|
|
242
|
+
var o = S, f = _s(), v = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((u) => u.promise)) : null;
|
|
243
|
+
function h(u) {
|
|
244
244
|
if ((o.f & 16384) === 0) {
|
|
245
245
|
f();
|
|
246
246
|
try {
|
|
@@ -248,104 +248,108 @@ function vs(e, t, r, n) {
|
|
|
248
248
|
} catch (p) {
|
|
249
249
|
ve(p, o);
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
Bt();
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
var c =
|
|
254
|
+
var c = On();
|
|
255
255
|
if (r.length === 0) {
|
|
256
|
-
|
|
256
|
+
v.then(() => h([])).finally(c);
|
|
257
257
|
return;
|
|
258
258
|
}
|
|
259
259
|
function d() {
|
|
260
|
-
Promise.all(r.map((u) => /* @__PURE__ */ gs(u))).then(
|
|
260
|
+
Promise.all(r.map((u) => /* @__PURE__ */ gs(u))).then(h).catch((u) => ve(u, o)).finally(c);
|
|
261
261
|
}
|
|
262
|
-
|
|
263
|
-
f
|
|
262
|
+
v ? v.then(() => {
|
|
263
|
+
if ((o.f & 16384) !== 0) {
|
|
264
|
+
c();
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
f(), d(), Bt();
|
|
264
268
|
}) : d();
|
|
265
269
|
}
|
|
266
270
|
function _s() {
|
|
267
|
-
var e = S, t = T, r =
|
|
271
|
+
var e = S, t = T, r = I, n = E;
|
|
268
272
|
if (0) var i;
|
|
269
273
|
return function(l = !0) {
|
|
270
|
-
_e(e), Q(t),
|
|
274
|
+
_e(e), Q(t), tt(r), l && (e.f & 16384) === 0 && (n?.activate(), n?.apply());
|
|
271
275
|
};
|
|
272
276
|
}
|
|
273
277
|
var ps = !1;
|
|
274
|
-
function
|
|
275
|
-
ps = !1, _e(null), Q(null),
|
|
278
|
+
function Bt(e = !0) {
|
|
279
|
+
ps = !1, _e(null), Q(null), tt(null), e && E?.deactivate();
|
|
276
280
|
}
|
|
277
|
-
function
|
|
278
|
-
var e = S, t = e.b, r =
|
|
281
|
+
function On() {
|
|
282
|
+
var e = S, t = e.b, r = E, n = !!t?.is_rendered();
|
|
279
283
|
return t?.update_pending_count(1, r), r.increment(n, e), () => {
|
|
280
284
|
t?.update_pending_count(-1, r), r.decrement(n, e);
|
|
281
285
|
};
|
|
282
286
|
}
|
|
283
287
|
// @__NO_SIDE_EFFECTS__
|
|
284
|
-
function
|
|
288
|
+
function kt(e) {
|
|
285
289
|
var t = 2 | V;
|
|
286
|
-
return S !== null && (S.f |=
|
|
287
|
-
ctx:
|
|
290
|
+
return S !== null && (S.f |= it), {
|
|
291
|
+
ctx: I,
|
|
288
292
|
deps: null,
|
|
289
293
|
effects: null,
|
|
290
|
-
equals:
|
|
294
|
+
equals: En,
|
|
291
295
|
f: t,
|
|
292
296
|
fn: e,
|
|
293
297
|
reactions: null,
|
|
294
298
|
rv: 0,
|
|
295
|
-
v:
|
|
299
|
+
v: W,
|
|
296
300
|
wv: 0,
|
|
297
301
|
parent: S,
|
|
298
302
|
ac: null
|
|
299
303
|
};
|
|
300
304
|
}
|
|
301
|
-
var
|
|
305
|
+
var ft = /* @__PURE__ */ Symbol("obsolete");
|
|
302
306
|
// @__NO_SIDE_EFFECTS__
|
|
303
307
|
function gs(e, t, r) {
|
|
304
308
|
let n = S;
|
|
305
309
|
n === null && Qi();
|
|
306
|
-
var i = void 0, s =
|
|
310
|
+
var i = void 0, s = Ue(W), l = !T, o = /* @__PURE__ */ new Set();
|
|
307
311
|
return Ps(() => {
|
|
308
|
-
var f = S,
|
|
309
|
-
i =
|
|
312
|
+
var f = S, v = bn();
|
|
313
|
+
i = v.promise;
|
|
310
314
|
try {
|
|
311
|
-
Promise.resolve(e()).then(
|
|
312
|
-
u !==
|
|
313
|
-
}).finally(
|
|
315
|
+
Promise.resolve(e()).then(v.resolve, (u) => {
|
|
316
|
+
u !== Tt && v.reject(u);
|
|
317
|
+
}).finally(Bt);
|
|
314
318
|
} catch (u) {
|
|
315
|
-
|
|
319
|
+
v.reject(u), Bt();
|
|
316
320
|
}
|
|
317
|
-
var
|
|
321
|
+
var h = E;
|
|
318
322
|
if (l) {
|
|
319
|
-
if ((f.f & 32768) !== 0) var c =
|
|
320
|
-
if (n.b?.is_rendered())
|
|
321
|
-
else for (const u of o.values()) u.reject(
|
|
322
|
-
o.add(
|
|
323
|
+
if ((f.f & 32768) !== 0) var c = On();
|
|
324
|
+
if (n.b?.is_rendered()) h.async_deriveds.get(f)?.reject(ft);
|
|
325
|
+
else for (const u of o.values()) u.reject(ft);
|
|
326
|
+
o.add(v), h.async_deriveds.set(f, v);
|
|
323
327
|
}
|
|
324
328
|
const d = (u, p = void 0) => {
|
|
325
|
-
c?.(), o.delete(
|
|
329
|
+
c?.(), o.delete(v), p !== ft && (h.activate(), p ? (s.f |= Ut, rt(s, p)) : ((s.f & 8388608) !== 0 && (s.f ^= Ut), rt(s, u)), h.deactivate());
|
|
326
330
|
};
|
|
327
|
-
|
|
328
|
-
}),
|
|
329
|
-
for (const f of o) f.reject(
|
|
331
|
+
v.promise.then(d, (u) => d(null, u || "unknown"));
|
|
332
|
+
}), Zn(() => {
|
|
333
|
+
for (const f of o) f.reject(ft);
|
|
330
334
|
}), new Promise((f) => {
|
|
331
|
-
function h
|
|
335
|
+
function v(h) {
|
|
332
336
|
function c() {
|
|
333
|
-
|
|
337
|
+
h === i ? f(s) : v(i);
|
|
334
338
|
}
|
|
335
|
-
|
|
339
|
+
h.then(c, c);
|
|
336
340
|
}
|
|
337
|
-
|
|
341
|
+
v(i);
|
|
338
342
|
});
|
|
339
343
|
}
|
|
340
344
|
// @__NO_SIDE_EFFECTS__
|
|
341
|
-
function
|
|
342
|
-
const t = /* @__PURE__ */
|
|
343
|
-
return
|
|
345
|
+
function at(e) {
|
|
346
|
+
const t = /* @__PURE__ */ kt(e);
|
|
347
|
+
return Ae || si(t), t;
|
|
344
348
|
}
|
|
345
349
|
// @__NO_SIDE_EFFECTS__
|
|
346
|
-
function
|
|
347
|
-
const t = /* @__PURE__ */
|
|
348
|
-
return t.equals =
|
|
350
|
+
function Cr(e) {
|
|
351
|
+
const t = /* @__PURE__ */ kt(e);
|
|
352
|
+
return t.equals = Mn, t;
|
|
349
353
|
}
|
|
350
354
|
function ws(e) {
|
|
351
355
|
var t = e.effects;
|
|
@@ -354,148 +358,148 @@ function ws(e) {
|
|
|
354
358
|
for (var r = 0; r < t.length; r += 1) q(t[r]);
|
|
355
359
|
}
|
|
356
360
|
}
|
|
357
|
-
function
|
|
361
|
+
function Nr(e) {
|
|
358
362
|
var t, r = S, n = e.parent;
|
|
359
|
-
if (!$e && n !== null && e.v !==
|
|
363
|
+
if (!$e && n !== null && e.v !== W && (n.f & 24576) !== 0)
|
|
360
364
|
return Ki(), e.v;
|
|
361
365
|
_e(n);
|
|
362
366
|
try {
|
|
363
|
-
ws(e), t =
|
|
367
|
+
ws(e), t = fi(e);
|
|
364
368
|
} finally {
|
|
365
369
|
_e(r);
|
|
366
370
|
}
|
|
367
371
|
return t;
|
|
368
372
|
}
|
|
369
|
-
function
|
|
370
|
-
var t =
|
|
371
|
-
if (!e.equals(t) && (e.wv =
|
|
372
|
-
|
|
373
|
+
function Rn(e) {
|
|
374
|
+
var t = Nr(e);
|
|
375
|
+
if (!e.equals(t) && (e.wv = li(), (!E?.is_fork || e.deps === null) && (E !== null ? (E.capture(e, t, !0), et?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
376
|
+
N(e, J);
|
|
373
377
|
return;
|
|
374
378
|
}
|
|
375
|
-
$e || (G !== null ? (
|
|
379
|
+
$e || (G !== null ? (Gr() || E?.is_fork) && G.set(e, t) : Rr(e));
|
|
376
380
|
}
|
|
377
381
|
function ms(e) {
|
|
378
382
|
if (e.effects !== null)
|
|
379
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null &&
|
|
380
|
-
t.ac.abort(
|
|
381
|
-
}), t.fn !== null && (t.teardown =
|
|
383
|
+
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && At(() => {
|
|
384
|
+
t.ac.abort(Tt), t.ac = null;
|
|
385
|
+
}), t.fn !== null && (t.teardown = ji), Et(t, 0), Hr(t));
|
|
382
386
|
}
|
|
383
|
-
function
|
|
387
|
+
function Cn(e) {
|
|
384
388
|
if (e.effects !== null)
|
|
385
|
-
for (const t of e.effects) t.teardown && t.fn !== null &&
|
|
389
|
+
for (const t of e.effects) t.teardown && t.fn !== null && nt(t);
|
|
386
390
|
}
|
|
387
|
-
function
|
|
391
|
+
function Nn(e, t) {
|
|
388
392
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
389
393
|
}
|
|
390
|
-
function
|
|
391
|
-
|
|
392
|
-
}
|
|
393
|
-
function b(e, t, r) {
|
|
394
|
-
Rn(e, t), t.set(e, r);
|
|
394
|
+
function Ir(e, t) {
|
|
395
|
+
Nn(e, t), t.add(e);
|
|
395
396
|
}
|
|
396
397
|
function $(e, t, r) {
|
|
398
|
+
Nn(e, t), t.set(e, r);
|
|
399
|
+
}
|
|
400
|
+
function w(e, t, r) {
|
|
397
401
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
|
|
398
402
|
throw new TypeError("Private element is not present on this object");
|
|
399
403
|
}
|
|
400
|
-
function
|
|
401
|
-
return e.set(
|
|
404
|
+
function y(e, t, r) {
|
|
405
|
+
return e.set(w(e, t), r), r;
|
|
402
406
|
}
|
|
403
407
|
function a(e, t) {
|
|
404
|
-
return e.get(
|
|
408
|
+
return e.get(w(e, t));
|
|
405
409
|
}
|
|
406
|
-
var
|
|
407
|
-
var ys = 1,
|
|
410
|
+
var In, zt = null, Ke = null, E = null, et = null, G = null, gr = null, pt = !1, ar = !1, St = null, Yt = null, Pn = 0;
|
|
411
|
+
var ys = 1, Vt = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), Ot = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), ne = /* @__PURE__ */ new WeakMap(), wr = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), C = /* @__PURE__ */ new WeakSet(), Be = class Wn {
|
|
408
412
|
constructor() {
|
|
409
|
-
|
|
413
|
+
Ir(this, C), O(this, "id", ys++), $(this, Vt, !1), O(this, "linked", !0), $(this, je, null), $(this, Ie, null), O(this, "async_deriveds", /* @__PURE__ */ new Map()), O(this, "current", /* @__PURE__ */ new Map()), O(this, "previous", /* @__PURE__ */ new Map()), $(this, Kt, /* @__PURE__ */ new Set()), $(this, Ot, /* @__PURE__ */ new Set()), $(this, Xe, 0), $(this, Re, /* @__PURE__ */ new Map()), $(this, ut, null), $(this, ne, []), $(this, wr, []), $(this, qe, /* @__PURE__ */ new Set()), $(this, ye, /* @__PURE__ */ new Set()), $(this, Ee, /* @__PURE__ */ new Map()), $(this, jt, /* @__PURE__ */ new Set()), O(this, "is_fork", !1), $(this, ct, !1), Ke === null ? zt = Ke = this : (y(Ie, Ke, this), y(je, this, Ke)), Ke = this;
|
|
410
414
|
}
|
|
411
415
|
skip_effect(t) {
|
|
412
416
|
a(Ee, this).has(t) || a(Ee, this).set(t, {
|
|
413
417
|
d: [],
|
|
414
418
|
m: []
|
|
415
|
-
}), a(
|
|
419
|
+
}), a(jt, this).delete(t);
|
|
416
420
|
}
|
|
417
421
|
unskip_effect(t, r = (n) => this.schedule(n)) {
|
|
418
422
|
var n = a(Ee, this).get(t);
|
|
419
423
|
if (n) {
|
|
420
424
|
a(Ee, this).delete(t);
|
|
421
425
|
for (var i of n.d)
|
|
422
|
-
|
|
426
|
+
N(i, V), r(i);
|
|
423
427
|
for (i of n.m)
|
|
424
|
-
|
|
428
|
+
N(i, He), r(i);
|
|
425
429
|
}
|
|
426
|
-
a(
|
|
430
|
+
a(jt, this).add(t);
|
|
427
431
|
}
|
|
428
432
|
capture(t, r, n = !1) {
|
|
429
|
-
t.v !==
|
|
433
|
+
t.v !== W && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [r, n]), G?.set(t, r)), this.is_fork || (t.v = r);
|
|
430
434
|
}
|
|
431
435
|
activate() {
|
|
432
|
-
|
|
436
|
+
E = this;
|
|
433
437
|
}
|
|
434
438
|
deactivate() {
|
|
435
|
-
|
|
439
|
+
E = null, G = null;
|
|
436
440
|
}
|
|
437
441
|
flush() {
|
|
438
442
|
try {
|
|
439
|
-
|
|
443
|
+
ar = !0, E = this, w(C, this, Xt).call(this);
|
|
440
444
|
} finally {
|
|
441
|
-
|
|
445
|
+
Pn = 0, gr = null, St = null, Yt = null, ar = !1, E = null, G = null, he.clear();
|
|
442
446
|
}
|
|
443
447
|
}
|
|
444
448
|
discard() {
|
|
445
|
-
for (const t of a(
|
|
446
|
-
a(
|
|
447
|
-
for (const t of this.async_deriveds.values()) t.reject(
|
|
448
|
-
|
|
449
|
+
for (const t of a(Ot, this)) t(this);
|
|
450
|
+
a(Ot, this).clear();
|
|
451
|
+
for (const t of this.async_deriveds.values()) t.reject(ft);
|
|
452
|
+
w(C, this, Jt).call(this), a(ut, this)?.resolve();
|
|
449
453
|
}
|
|
450
454
|
register_created_effect(t) {
|
|
451
|
-
a(
|
|
455
|
+
a(wr, this).push(t);
|
|
452
456
|
}
|
|
453
457
|
increment(t, r) {
|
|
454
|
-
if (
|
|
455
|
-
let n = a(
|
|
456
|
-
a(
|
|
458
|
+
if (y(Xe, this, a(Xe, this) + 1), t) {
|
|
459
|
+
let n = a(Re, this).get(r) ?? 0;
|
|
460
|
+
a(Re, this).set(r, n + 1);
|
|
457
461
|
}
|
|
458
462
|
}
|
|
459
463
|
decrement(t, r) {
|
|
460
|
-
if (
|
|
461
|
-
let n = a(
|
|
462
|
-
n === 1 ? a(
|
|
464
|
+
if (y(Xe, this, a(Xe, this) - 1), t) {
|
|
465
|
+
let n = a(Re, this).get(r) ?? 0;
|
|
466
|
+
n === 1 ? a(Re, this).delete(r) : a(Re, this).set(r, n - 1);
|
|
463
467
|
}
|
|
464
|
-
a(
|
|
465
|
-
|
|
468
|
+
a(ct, this) || (y(ct, this, !0), be(() => {
|
|
469
|
+
y(ct, this, !1), this.linked && this.flush();
|
|
466
470
|
}));
|
|
467
471
|
}
|
|
468
472
|
transfer_effects(t, r) {
|
|
469
|
-
for (const n of t) a(
|
|
473
|
+
for (const n of t) a(qe, this).add(n);
|
|
470
474
|
for (const n of r) a(ye, this).add(n);
|
|
471
475
|
t.clear(), r.clear();
|
|
472
476
|
}
|
|
473
477
|
oncommit(t) {
|
|
474
|
-
a(
|
|
478
|
+
a(Kt, this).add(t);
|
|
475
479
|
}
|
|
476
480
|
ondiscard(t) {
|
|
477
|
-
a(
|
|
481
|
+
a(Ot, this).add(t);
|
|
478
482
|
}
|
|
479
483
|
settled() {
|
|
480
|
-
return (a(
|
|
484
|
+
return (a(ut, this) ?? y(ut, this, bn())).promise;
|
|
481
485
|
}
|
|
482
486
|
static ensure() {
|
|
483
|
-
if (
|
|
484
|
-
const t =
|
|
485
|
-
!
|
|
486
|
-
a(
|
|
487
|
+
if (E === null) {
|
|
488
|
+
const t = E = new Wn();
|
|
489
|
+
!ar && !pt && be(() => {
|
|
490
|
+
a(Vt, t) || t.flush();
|
|
487
491
|
});
|
|
488
492
|
}
|
|
489
|
-
return
|
|
493
|
+
return E;
|
|
490
494
|
}
|
|
491
495
|
apply() {
|
|
492
|
-
if (!
|
|
496
|
+
if (!Ae || !this.is_fork && a(je, this) === null && a(Ie, this) === null) {
|
|
493
497
|
G = null;
|
|
494
498
|
return;
|
|
495
499
|
}
|
|
496
500
|
G = /* @__PURE__ */ new Map();
|
|
497
501
|
for (const [r, [n]] of this.current) G.set(r, n);
|
|
498
|
-
for (let r =
|
|
502
|
+
for (let r = zt; r !== null; r = a(Ie, r))
|
|
499
503
|
if (!(r === this || r.is_fork)) {
|
|
500
504
|
var t = !1;
|
|
501
505
|
if (r.id < this.id) {
|
|
@@ -510,17 +514,17 @@ var ys = 1, Yt = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap
|
|
|
510
514
|
}
|
|
511
515
|
}
|
|
512
516
|
schedule(t) {
|
|
513
|
-
if (
|
|
517
|
+
if (gr = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
|
|
514
518
|
t.b.defer_effect(t);
|
|
515
519
|
return;
|
|
516
520
|
}
|
|
517
521
|
a(ne, this).push(t);
|
|
518
522
|
}
|
|
519
523
|
};
|
|
520
|
-
|
|
521
|
-
function
|
|
524
|
+
In = Be;
|
|
525
|
+
function en() {
|
|
522
526
|
if (this.is_fork) return !0;
|
|
523
|
-
for (const r of a(
|
|
527
|
+
for (const r of a(Re, this).keys()) {
|
|
524
528
|
for (var e = r, t = !1; e.parent !== null; ) {
|
|
525
529
|
if (a(Ee, this).has(e)) {
|
|
526
530
|
t = !0;
|
|
@@ -532,7 +536,7 @@ function Zr() {
|
|
|
532
536
|
}
|
|
533
537
|
return !1;
|
|
534
538
|
}
|
|
535
|
-
function
|
|
539
|
+
function jn() {
|
|
536
540
|
var e = [];
|
|
537
541
|
for (const i of a(ne, this))
|
|
538
542
|
if (!((i.f & 16384) !== 0 || (i.f & 6144) === 0)) {
|
|
@@ -549,55 +553,55 @@ function Pn() {
|
|
|
549
553
|
}
|
|
550
554
|
r || e.push(t);
|
|
551
555
|
}
|
|
552
|
-
return
|
|
556
|
+
return y(ne, this, []), e;
|
|
553
557
|
}
|
|
554
|
-
function
|
|
555
|
-
|
|
556
|
-
for (const l of a(
|
|
557
|
-
a(ye, this).delete(l),
|
|
558
|
+
function Xt() {
|
|
559
|
+
y(Vt, this, !0);
|
|
560
|
+
for (const l of a(qe, this))
|
|
561
|
+
a(ye, this).delete(l), N(l, V), this.schedule(l);
|
|
558
562
|
for (const l of a(ye, this))
|
|
559
|
-
|
|
563
|
+
N(l, He), this.schedule(l);
|
|
560
564
|
this.apply();
|
|
561
|
-
for (var e =
|
|
562
|
-
|
|
563
|
-
for (const l of
|
|
564
|
-
|
|
565
|
+
for (var e = St = [], t = [], r = Yt = []; a(ne, this).length > 0; ) {
|
|
566
|
+
Pn++ > 1e3 && (w(C, this, Jt).call(this), Ss());
|
|
567
|
+
for (const l of w(C, this, jn).call(this)) try {
|
|
568
|
+
w(C, this, Fn).call(this, l, e, t);
|
|
565
569
|
} catch (o) {
|
|
566
|
-
throw
|
|
570
|
+
throw qn(l), w(C, this, en).call(this) || this.discard(), o;
|
|
567
571
|
}
|
|
568
572
|
}
|
|
569
|
-
if (
|
|
570
|
-
var n =
|
|
573
|
+
if (E = null, r.length > 0) {
|
|
574
|
+
var n = In.ensure();
|
|
571
575
|
for (const l of r) n.schedule(l);
|
|
572
576
|
}
|
|
573
|
-
if (
|
|
574
|
-
|
|
575
|
-
for (const [l, o] of a(Ee, this))
|
|
576
|
-
r.length > 0 &&
|
|
577
|
+
if (St = null, Yt = null, w(C, this, en).call(this)) {
|
|
578
|
+
w(C, this, dt).call(this, t), w(C, this, dt).call(this, e);
|
|
579
|
+
for (const [l, o] of a(Ee, this)) Gn(l, o);
|
|
580
|
+
r.length > 0 && w(C, E, Xt).call(E);
|
|
577
581
|
return;
|
|
578
582
|
}
|
|
579
|
-
const i =
|
|
583
|
+
const i = w(C, this, bs).call(this);
|
|
580
584
|
if (i) {
|
|
581
|
-
|
|
585
|
+
w(C, this, dt).call(this, t), w(C, this, dt).call(this, e), w(C, i, $s).call(i, this);
|
|
582
586
|
return;
|
|
583
587
|
}
|
|
584
|
-
a(
|
|
585
|
-
for (const l of a(
|
|
586
|
-
a(
|
|
587
|
-
var s =
|
|
588
|
-
if (a(
|
|
588
|
+
a(qe, this).clear(), a(ye, this).clear();
|
|
589
|
+
for (const l of a(Kt, this)) l(this);
|
|
590
|
+
a(Kt, this).clear(), et = this, tn(t), tn(e), et = null, a(ut, this)?.resolve();
|
|
591
|
+
var s = E;
|
|
592
|
+
if (a(Xe, this) === 0 && (a(ne, this).length === 0 || s !== null) && (w(C, this, Jt).call(this), Ae && (w(C, this, ks).call(this), E = s)), a(ne, this).length > 0)
|
|
589
593
|
if (s !== null) {
|
|
590
594
|
for (const l of a(ne, this)) a(ne, s).push(l);
|
|
591
|
-
|
|
595
|
+
y(ne, this, []);
|
|
592
596
|
} else s = this;
|
|
593
|
-
s !== null && (he.clear(),
|
|
597
|
+
s !== null && (he.clear(), w(C, s, Xt).call(s));
|
|
594
598
|
}
|
|
595
|
-
function
|
|
599
|
+
function Fn(e, t, r) {
|
|
596
600
|
e.f ^= J;
|
|
597
601
|
for (var n = e.first; n !== null; ) {
|
|
598
602
|
var i = n.f, s = (i & 96) !== 0;
|
|
599
603
|
if (!(s && (i & 1024) !== 0 || (i & 8192) !== 0 || a(Ee, this).has(n)) && n.fn !== null) {
|
|
600
|
-
s ? n.f ^= J : (i & 4) !== 0 ? t.push(n) :
|
|
604
|
+
s ? n.f ^= J : (i & 4) !== 0 ? t.push(n) : Ae && (i & 16777224) !== 0 ? r.push(n) : Lt(n) && ((i & 16) !== 0 && a(ye, this).add(n), nt(n));
|
|
601
605
|
var l = n.first;
|
|
602
606
|
if (l !== null) {
|
|
603
607
|
n = l;
|
|
@@ -615,11 +619,11 @@ function Wn(e, t, r) {
|
|
|
615
619
|
}
|
|
616
620
|
}
|
|
617
621
|
function bs() {
|
|
618
|
-
for (var e = a(
|
|
622
|
+
for (var e = a(je, this); e !== null; ) {
|
|
619
623
|
if (!e.is_fork) {
|
|
620
624
|
for (const [t, [, r]] of this.current) if (e.current.has(t) && !r) return e;
|
|
621
625
|
}
|
|
622
|
-
e = a(
|
|
626
|
+
e = a(je, e);
|
|
623
627
|
}
|
|
624
628
|
return null;
|
|
625
629
|
}
|
|
@@ -630,7 +634,7 @@ function $s(e) {
|
|
|
630
634
|
const i = this.async_deriveds.get(r);
|
|
631
635
|
i && n.promise.then(i.resolve).catch(i.reject);
|
|
632
636
|
}
|
|
633
|
-
e.async_deriveds.clear(), this.transfer_effects(a(
|
|
637
|
+
e.async_deriveds.clear(), this.transfer_effects(a(qe, e), a(ye, e));
|
|
634
638
|
const t = (r) => {
|
|
635
639
|
var n = r.reactions;
|
|
636
640
|
if (n !== null && !((r.f & 2) !== 0 && (r.f & 6144) === 0))
|
|
@@ -639,97 +643,97 @@ function $s(e) {
|
|
|
639
643
|
if ((i & 2) !== 0) t(l);
|
|
640
644
|
else {
|
|
641
645
|
var s = l;
|
|
642
|
-
i & 4194320 && !this.async_deriveds.has(s) && (a(ye, this).delete(s),
|
|
646
|
+
i & 4194320 && !this.async_deriveds.has(s) && (a(ye, this).delete(s), N(s, V), this.schedule(s));
|
|
643
647
|
}
|
|
644
648
|
}
|
|
645
649
|
};
|
|
646
650
|
for (const r of this.current.keys()) t(r);
|
|
647
|
-
this.oncommit(() => e.discard()),
|
|
651
|
+
this.oncommit(() => e.discard()), w(C, e, Jt).call(e), E = this, w(C, this, Xt).call(this);
|
|
648
652
|
}
|
|
649
|
-
function
|
|
650
|
-
for (var t = 0; t < e.length; t += 1)
|
|
653
|
+
function dt(e) {
|
|
654
|
+
for (var t = 0; t < e.length; t += 1) Ln(e[t], a(qe, this), a(ye, this));
|
|
651
655
|
}
|
|
652
656
|
function ks() {
|
|
653
|
-
for (let
|
|
654
|
-
var e =
|
|
657
|
+
for (let h = zt; h !== null; h = a(Ie, h)) {
|
|
658
|
+
var e = h.id < this.id, t = [];
|
|
655
659
|
for (const [c, [d, u]] of this.current) {
|
|
656
|
-
if (
|
|
657
|
-
var r =
|
|
658
|
-
if (e && d !== r)
|
|
660
|
+
if (h.current.has(c)) {
|
|
661
|
+
var r = h.current.get(c)[0];
|
|
662
|
+
if (e && d !== r) h.current.set(c, [d, u]);
|
|
659
663
|
else continue;
|
|
660
664
|
}
|
|
661
665
|
t.push(c);
|
|
662
666
|
}
|
|
663
667
|
if (e) for (const [c, d] of this.async_deriveds) {
|
|
664
|
-
const u =
|
|
668
|
+
const u = h.async_deriveds.get(c);
|
|
665
669
|
u && d.promise.then(u.resolve).catch(u.reject);
|
|
666
670
|
}
|
|
667
|
-
var n = [...
|
|
668
|
-
if (!(!a(
|
|
671
|
+
var n = [...h.current.keys()].filter((c) => !h.current.get(c)[1]);
|
|
672
|
+
if (!(!a(Vt, h) || n.length === 0)) {
|
|
669
673
|
var i = n.filter((c) => !this.current.has(c));
|
|
670
674
|
if (i.length === 0)
|
|
671
|
-
e &&
|
|
675
|
+
e && h.discard();
|
|
672
676
|
else if (t.length > 0) {
|
|
673
|
-
if (e) for (const c of a(
|
|
674
|
-
(d.f & 4194320) !== 0 ?
|
|
677
|
+
if (e) for (const c of a(jt, this)) h.unskip_effect(c, (d) => {
|
|
678
|
+
(d.f & 4194320) !== 0 ? h.schedule(d) : w(C, h, dt).call(h, [d]);
|
|
675
679
|
});
|
|
676
|
-
|
|
680
|
+
h.activate();
|
|
677
681
|
var s = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map();
|
|
678
|
-
for (var o of t)
|
|
682
|
+
for (var o of t) Dn(o, i, s, l);
|
|
679
683
|
l = /* @__PURE__ */ new Map();
|
|
680
|
-
var f = [...
|
|
684
|
+
var f = [...h.current].filter(([c, d]) => {
|
|
681
685
|
const u = this.current.get(c);
|
|
682
686
|
return u ? u[0] !== d[0] || u[1] !== d[1] : !0;
|
|
683
687
|
}).map(([c]) => c);
|
|
684
688
|
if (f.length > 0)
|
|
685
|
-
for (const c of a(
|
|
686
|
-
if (a(ne,
|
|
687
|
-
|
|
688
|
-
for (var
|
|
689
|
+
for (const c of a(wr, this)) (c.f & 155648) === 0 && Wr(c, f, l) && ((c.f & 4194320) !== 0 ? (N(c, V), h.schedule(c)) : a(qe, h).add(c));
|
|
690
|
+
if (a(ne, h).length > 0 && !a(ct, h)) {
|
|
691
|
+
h.apply();
|
|
692
|
+
for (var v of w(C, h, jn).call(h)) w(C, h, Fn).call(h, v, [], []);
|
|
689
693
|
}
|
|
690
|
-
|
|
694
|
+
h.deactivate();
|
|
691
695
|
}
|
|
692
696
|
}
|
|
693
697
|
}
|
|
694
698
|
}
|
|
695
|
-
function
|
|
699
|
+
function Jt() {
|
|
696
700
|
if (this.linked) {
|
|
697
|
-
var e = a(
|
|
698
|
-
e === null ?
|
|
701
|
+
var e = a(je, this), t = a(Ie, this);
|
|
702
|
+
e === null ? zt = t : y(Ie, e, t), t === null ? Ke = e : y(je, t, e), this.linked = !1;
|
|
699
703
|
}
|
|
700
704
|
}
|
|
701
|
-
function
|
|
702
|
-
var t =
|
|
703
|
-
|
|
705
|
+
function Pr(e) {
|
|
706
|
+
var t = pt, r = et;
|
|
707
|
+
et = null, pt = !0;
|
|
704
708
|
try {
|
|
705
|
-
var
|
|
706
|
-
for (e && (
|
|
707
|
-
if (ds(),
|
|
708
|
-
|
|
709
|
+
var n;
|
|
710
|
+
for (e && (Pr(), n = e()); ; ) {
|
|
711
|
+
if (ds(), E === null) return n;
|
|
712
|
+
E.flush();
|
|
709
713
|
}
|
|
710
714
|
} finally {
|
|
711
|
-
|
|
715
|
+
pt = t, et = r;
|
|
712
716
|
}
|
|
713
717
|
}
|
|
714
718
|
function Ss() {
|
|
715
719
|
if (0) {
|
|
716
720
|
var e;
|
|
717
|
-
for (const r of
|
|
721
|
+
for (const r of E.current.keys()) for (const [n, i] of r.updated ?? [])
|
|
718
722
|
var t;
|
|
719
723
|
}
|
|
720
724
|
try {
|
|
721
725
|
is();
|
|
722
726
|
} catch (r) {
|
|
723
|
-
ve(r,
|
|
727
|
+
ve(r, gr);
|
|
724
728
|
}
|
|
725
729
|
}
|
|
726
730
|
var ce = null;
|
|
727
|
-
function
|
|
731
|
+
function tn(e) {
|
|
728
732
|
var t = e.length;
|
|
729
733
|
if (t !== 0) {
|
|
730
734
|
for (var r = 0; r < t; ) {
|
|
731
735
|
var n = e[r++];
|
|
732
|
-
if ((n.f & 24576) === 0 &&
|
|
736
|
+
if ((n.f & 24576) === 0 && Lt(n) && (ce = /* @__PURE__ */ new Set(), nt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && ri(n), ce?.size > 0)) {
|
|
733
737
|
he.clear();
|
|
734
738
|
for (const i of ce) {
|
|
735
739
|
if ((i.f & 24576) !== 0) continue;
|
|
@@ -739,7 +743,7 @@ function Qr(e) {
|
|
|
739
743
|
ce.has(l) && (ce.delete(l), s.push(l)), l = l.parent;
|
|
740
744
|
for (let o = s.length - 1; o >= 0; o--) {
|
|
741
745
|
const f = s[o];
|
|
742
|
-
(f.f & 24576) === 0 &&
|
|
746
|
+
(f.f & 24576) === 0 && nt(f);
|
|
743
747
|
}
|
|
744
748
|
}
|
|
745
749
|
ce.clear();
|
|
@@ -748,46 +752,46 @@ function Qr(e) {
|
|
|
748
752
|
ce = null;
|
|
749
753
|
}
|
|
750
754
|
}
|
|
751
|
-
function
|
|
755
|
+
function Dn(e, t, r, n) {
|
|
752
756
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
753
757
|
for (const i of e.reactions) {
|
|
754
758
|
const s = i.f;
|
|
755
|
-
(s & 2) !== 0 ?
|
|
759
|
+
(s & 2) !== 0 ? Dn(i, t, r, n) : (s & 4194320) !== 0 && (s & 2048) === 0 && Wr(i, t, n) && (N(i, V), jr(i));
|
|
756
760
|
}
|
|
757
761
|
}
|
|
758
|
-
function
|
|
762
|
+
function Wr(e, t, r) {
|
|
759
763
|
const n = r.get(e);
|
|
760
764
|
if (n !== void 0) return n;
|
|
761
765
|
if (e.deps !== null) for (const i of e.deps) {
|
|
762
|
-
if (
|
|
763
|
-
if ((i.f & 2) !== 0 &&
|
|
766
|
+
if (yt.call(t, i)) return !0;
|
|
767
|
+
if ((i.f & 2) !== 0 && Wr(i, t, r))
|
|
764
768
|
return r.set(i, !0), !0;
|
|
765
769
|
}
|
|
766
770
|
return r.set(e, !1), !1;
|
|
767
771
|
}
|
|
768
|
-
function
|
|
769
|
-
|
|
772
|
+
function jr(e) {
|
|
773
|
+
E.schedule(e);
|
|
770
774
|
}
|
|
771
|
-
function
|
|
775
|
+
function Gn(e, t) {
|
|
772
776
|
if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
|
|
773
|
-
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e),
|
|
777
|
+
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), N(e, J);
|
|
774
778
|
for (var r = e.first; r !== null; )
|
|
775
|
-
|
|
779
|
+
Gn(r, t), r = r.next;
|
|
776
780
|
}
|
|
777
781
|
}
|
|
778
|
-
function
|
|
779
|
-
|
|
782
|
+
function qn(e) {
|
|
783
|
+
N(e, J);
|
|
780
784
|
for (var t = e.first; t !== null; )
|
|
781
|
-
|
|
785
|
+
qn(t), t = t.next;
|
|
782
786
|
}
|
|
783
|
-
var
|
|
784
|
-
var
|
|
785
|
-
function
|
|
787
|
+
var Zt = /* @__PURE__ */ new Set(), he = /* @__PURE__ */ new Map();
|
|
788
|
+
var Un = !1;
|
|
789
|
+
function Ue(e, t) {
|
|
786
790
|
var r = {
|
|
787
791
|
f: 0,
|
|
788
792
|
v: e,
|
|
789
793
|
reactions: null,
|
|
790
|
-
equals:
|
|
794
|
+
equals: En,
|
|
791
795
|
rv: 0,
|
|
792
796
|
wv: 0
|
|
793
797
|
};
|
|
@@ -795,97 +799,97 @@ function Ge(e, t) {
|
|
|
795
799
|
}
|
|
796
800
|
// @__NO_SIDE_EFFECTS__
|
|
797
801
|
function re(e, t) {
|
|
798
|
-
const r =
|
|
799
|
-
return
|
|
802
|
+
const r = Ue(e, t);
|
|
803
|
+
return si(r), r;
|
|
800
804
|
}
|
|
801
805
|
// @__NO_SIDE_EFFECTS__
|
|
802
|
-
function
|
|
803
|
-
const n =
|
|
804
|
-
if (t || (n.equals =
|
|
806
|
+
function Hn(e, t = !1, r = !0) {
|
|
807
|
+
const n = Ue(e);
|
|
808
|
+
if (t || (n.equals = Mn), sr && r && I !== null && I.l !== null) {
|
|
805
809
|
var i;
|
|
806
|
-
((i =
|
|
810
|
+
((i = I.l).s ?? (i.s = [])).push(n);
|
|
807
811
|
}
|
|
808
812
|
return n;
|
|
809
813
|
}
|
|
810
814
|
function X(e, t, r = !1) {
|
|
811
|
-
T !== null && (!ie || (T.f & 131072) !== 0) &&
|
|
812
|
-
let n = r ?
|
|
813
|
-
return
|
|
815
|
+
T !== null && (!ie || (T.f & 131072) !== 0) && xt() && (T.f & 4325394) !== 0 && (le === null || !le.has(e)) && fs();
|
|
816
|
+
let n = r ? Qe(t) : t;
|
|
817
|
+
return rt(e, n, Yt);
|
|
814
818
|
}
|
|
815
|
-
var
|
|
816
|
-
function
|
|
819
|
+
var Ce = null, mr = 0;
|
|
820
|
+
function rt(e, t, r = null) {
|
|
817
821
|
if (!e.equals(t)) {
|
|
818
822
|
$e ? he.set(e, t) : he.has(e) || he.set(e, e.v);
|
|
819
|
-
var n =
|
|
823
|
+
var n = Be.ensure();
|
|
820
824
|
if (n.capture(e, t), (e.f & 2) !== 0) {
|
|
821
825
|
const i = e;
|
|
822
|
-
(e.f & 2048) !== 0 &&
|
|
826
|
+
(e.f & 2048) !== 0 && Nr(i), G === null && Rr(i);
|
|
823
827
|
}
|
|
824
|
-
e.wv =
|
|
828
|
+
e.wv = li(), Ce = null, mr = 0, Bn(e, V, r), Ce = null, xt() && S !== null && (S.f & 1024) !== 0 && (S.f & 96) === 0 && (K === null ? Ds([e]) : K.push(e)), !n.is_fork && Zt.size > 0 && !Un && Es();
|
|
825
829
|
}
|
|
826
830
|
return t;
|
|
827
831
|
}
|
|
828
832
|
function Es() {
|
|
829
|
-
|
|
830
|
-
for (const e of
|
|
831
|
-
(e.f & 1024) !== 0 &&
|
|
833
|
+
Un = !1;
|
|
834
|
+
for (const e of Zt) {
|
|
835
|
+
(e.f & 1024) !== 0 && N(e, He);
|
|
832
836
|
let t;
|
|
833
837
|
try {
|
|
834
|
-
t =
|
|
838
|
+
t = Lt(e);
|
|
835
839
|
} catch {
|
|
836
840
|
t = !0;
|
|
837
841
|
}
|
|
838
|
-
t &&
|
|
842
|
+
t && nt(e);
|
|
839
843
|
}
|
|
840
|
-
|
|
844
|
+
Zt.clear();
|
|
841
845
|
}
|
|
842
|
-
function
|
|
846
|
+
function gt(e) {
|
|
843
847
|
X(e, e.v + 1);
|
|
844
848
|
}
|
|
845
|
-
function
|
|
849
|
+
function Bn(e, t, r) {
|
|
846
850
|
var n = e.reactions;
|
|
847
851
|
if (n !== null) {
|
|
848
|
-
var i =
|
|
849
|
-
if (
|
|
850
|
-
if (
|
|
851
|
-
|
|
852
|
+
var i = xt(), s = n.length;
|
|
853
|
+
if (mr += s, mr > 1e5 && Ce === null && (Ce = /* @__PURE__ */ new Set()), Ce !== null) {
|
|
854
|
+
if (Ce.has(e)) return;
|
|
855
|
+
Ce.add(e);
|
|
852
856
|
}
|
|
853
857
|
for (var l = 0; l < s; l++) {
|
|
854
858
|
var o = n[l], f = o.f;
|
|
855
859
|
if (!(!i && o === S)) {
|
|
856
|
-
var
|
|
857
|
-
if (
|
|
860
|
+
var v = (f & V) === 0;
|
|
861
|
+
if (v && N(o, t), (f & 131072) !== 0) Zt.add(o);
|
|
858
862
|
else if ((f & 2) !== 0) {
|
|
859
|
-
var
|
|
860
|
-
G?.delete(
|
|
861
|
-
} else if (
|
|
863
|
+
var h = o;
|
|
864
|
+
G?.delete(h), Bn(h, He, r);
|
|
865
|
+
} else if (v) {
|
|
862
866
|
var c = o;
|
|
863
|
-
(f & 16) !== 0 && ce !== null && ce.add(c), r !== null ? r.push(c) :
|
|
867
|
+
(f & 16) !== 0 && ce !== null && ce.add(c), r !== null ? r.push(c) : jr(c);
|
|
864
868
|
}
|
|
865
869
|
}
|
|
866
870
|
}
|
|
867
871
|
}
|
|
868
872
|
}
|
|
869
873
|
var Ms = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
870
|
-
function
|
|
871
|
-
if (typeof e != "object" || e === null ||
|
|
872
|
-
const t =
|
|
873
|
-
if (t !==
|
|
874
|
-
var r = /* @__PURE__ */ new Map(), n =
|
|
875
|
-
if (
|
|
876
|
-
var d = T, u =
|
|
877
|
-
Q(null),
|
|
874
|
+
function Qe(e) {
|
|
875
|
+
if (typeof e != "object" || e === null || _t in e || kn in e) return e;
|
|
876
|
+
const t = yn(e);
|
|
877
|
+
if (t !== Pi && t !== Wi) return e;
|
|
878
|
+
var r = /* @__PURE__ */ new Map(), n = mn(e), i = /* @__PURE__ */ re(0), s = null, l = Fe, o = (c) => {
|
|
879
|
+
if (Fe === l) return c();
|
|
880
|
+
var d = T, u = Fe;
|
|
881
|
+
Q(null), ln(l);
|
|
878
882
|
var p = c();
|
|
879
|
-
return Q(d),
|
|
883
|
+
return Q(d), ln(u), p;
|
|
880
884
|
};
|
|
881
885
|
n && r.set("length", /* @__PURE__ */ re(e.length, s));
|
|
882
886
|
var f = "";
|
|
883
|
-
let
|
|
884
|
-
function
|
|
885
|
-
if (!
|
|
886
|
-
|
|
887
|
-
for (const [d, u] of r)
|
|
888
|
-
|
|
887
|
+
let v = !1;
|
|
888
|
+
function h(c) {
|
|
889
|
+
if (!v) {
|
|
890
|
+
v = !0, f = c, Qr(i, `${f} version`);
|
|
891
|
+
for (const [d, u] of r) Qr(u, Ts(f, d));
|
|
892
|
+
v = !1;
|
|
889
893
|
}
|
|
890
894
|
}
|
|
891
895
|
return new Proxy(e, {
|
|
@@ -901,22 +905,22 @@ function Je(e) {
|
|
|
901
905
|
var u = r.get(d);
|
|
902
906
|
if (u === void 0) {
|
|
903
907
|
if (d in c) {
|
|
904
|
-
const p = o(() => /* @__PURE__ */ re(
|
|
905
|
-
r.set(d, p),
|
|
908
|
+
const p = o(() => /* @__PURE__ */ re(W, s));
|
|
909
|
+
r.set(d, p), gt(i);
|
|
906
910
|
}
|
|
907
911
|
} else
|
|
908
|
-
X(u,
|
|
912
|
+
X(u, W), gt(i);
|
|
909
913
|
return !0;
|
|
910
914
|
},
|
|
911
915
|
get(c, d, u) {
|
|
912
|
-
if (d ===
|
|
916
|
+
if (d === _t) return e;
|
|
913
917
|
var p = r.get(d), g = d in c;
|
|
914
|
-
if (p === void 0 && (!g ||
|
|
915
|
-
var
|
|
918
|
+
if (p === void 0 && (!g || We(c, d)?.writable) && (p = o(() => {
|
|
919
|
+
var m = Qe(g ? c[d] : W), M = /* @__PURE__ */ re(m, s);
|
|
916
920
|
return M;
|
|
917
921
|
}), r.set(d, p)), p !== void 0) {
|
|
918
|
-
var _ =
|
|
919
|
-
return _ ===
|
|
922
|
+
var _ = k(p);
|
|
923
|
+
return _ === W ? void 0 : _;
|
|
920
924
|
}
|
|
921
925
|
return Reflect.get(c, d, u);
|
|
922
926
|
},
|
|
@@ -924,8 +928,8 @@ function Je(e) {
|
|
|
924
928
|
this.has?.(c, d);
|
|
925
929
|
var u = Reflect.getOwnPropertyDescriptor(c, d), p = r.get(d);
|
|
926
930
|
if (p !== void 0) {
|
|
927
|
-
var g =
|
|
928
|
-
if (g ===
|
|
931
|
+
var g = k(p);
|
|
932
|
+
if (g === W) return;
|
|
929
933
|
if (u && "value" in u) u.value = g;
|
|
930
934
|
else return {
|
|
931
935
|
enumerable: !0,
|
|
@@ -937,43 +941,43 @@ function Je(e) {
|
|
|
937
941
|
return u;
|
|
938
942
|
},
|
|
939
943
|
has(c, d) {
|
|
940
|
-
if (d ===
|
|
941
|
-
var u = r.get(d), p = u !== void 0 && u.v !==
|
|
942
|
-
return (u !== void 0 || S !== null && (!p ||
|
|
943
|
-
var g = p ?
|
|
944
|
+
if (d === _t) return !0;
|
|
945
|
+
var u = r.get(d), p = u !== void 0 && u.v !== W || Reflect.has(c, d);
|
|
946
|
+
return (u !== void 0 || S !== null && (!p || We(c, d)?.writable)) && (u === void 0 && (u = o(() => {
|
|
947
|
+
var g = p ? Qe(c[d]) : W, _ = /* @__PURE__ */ re(g, s);
|
|
944
948
|
return _;
|
|
945
|
-
}), r.set(d, u)),
|
|
949
|
+
}), r.set(d, u)), k(u) === W) ? !1 : p;
|
|
946
950
|
},
|
|
947
951
|
set(c, d, u, p) {
|
|
948
952
|
var g = r.get(d), _ = d in c;
|
|
949
|
-
if (n && d === "length") for (var
|
|
950
|
-
var M = r.get(
|
|
951
|
-
M !== void 0 ? X(M,
|
|
953
|
+
if (n && d === "length") for (var m = u; m < g.v; m += 1) {
|
|
954
|
+
var M = r.get(m + "");
|
|
955
|
+
M !== void 0 ? X(M, W) : m in c && (M = o(() => /* @__PURE__ */ re(W, s)), r.set(m + "", M));
|
|
952
956
|
}
|
|
953
957
|
if (g === void 0)
|
|
954
|
-
(!_ ||
|
|
958
|
+
(!_ || We(c, d)?.writable) && (g = o(() => /* @__PURE__ */ re(void 0, s)), X(g, Qe(u)), r.set(d, g));
|
|
955
959
|
else {
|
|
956
|
-
_ = g.v !==
|
|
957
|
-
var
|
|
958
|
-
X(g,
|
|
960
|
+
_ = g.v !== W;
|
|
961
|
+
var R = o(() => Qe(u));
|
|
962
|
+
X(g, R);
|
|
959
963
|
}
|
|
960
|
-
var
|
|
961
|
-
if (
|
|
964
|
+
var b = Reflect.getOwnPropertyDescriptor(c, d);
|
|
965
|
+
if (b?.set && b.set.call(p, u), !_) {
|
|
962
966
|
if (n && typeof d == "string") {
|
|
963
|
-
var D = r.get("length"),
|
|
964
|
-
Number.isInteger(
|
|
967
|
+
var D = r.get("length"), P = Number(d);
|
|
968
|
+
Number.isInteger(P) && P >= D.v && X(D, P + 1);
|
|
965
969
|
}
|
|
966
|
-
|
|
970
|
+
gt(i);
|
|
967
971
|
}
|
|
968
972
|
return !0;
|
|
969
973
|
},
|
|
970
974
|
ownKeys(c) {
|
|
971
|
-
|
|
975
|
+
k(i);
|
|
972
976
|
var d = Reflect.ownKeys(c).filter((g) => {
|
|
973
977
|
var _ = r.get(g);
|
|
974
|
-
return _ === void 0 || _.v !==
|
|
978
|
+
return _ === void 0 || _.v !== W;
|
|
975
979
|
});
|
|
976
|
-
for (var [u, p] of r) p.v !==
|
|
980
|
+
for (var [u, p] of r) p.v !== W && !(u in c) && d.push(u);
|
|
977
981
|
return d;
|
|
978
982
|
},
|
|
979
983
|
setPrototypeOf() {
|
|
@@ -984,55 +988,55 @@ function Je(e) {
|
|
|
984
988
|
function Ts(e, t) {
|
|
985
989
|
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : Ms.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
986
990
|
}
|
|
987
|
-
var
|
|
988
|
-
function
|
|
989
|
-
if (
|
|
990
|
-
|
|
991
|
+
var rn, xs, zn, Yn, Vn;
|
|
992
|
+
function yr() {
|
|
993
|
+
if (rn === void 0) {
|
|
994
|
+
rn = window, xs = document, zn = /Firefox/.test(navigator.userAgent);
|
|
991
995
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
992
|
-
|
|
996
|
+
Yn = We(t, "firstChild").get, Vn = We(t, "nextSibling").get, Jr(e) && (e[zi] = void 0, e[_r] = null, e[Yi] = void 0, e.__e = void 0), Jr(r) && (r[Wt] = void 0);
|
|
993
997
|
}
|
|
994
998
|
}
|
|
995
999
|
function ae(e = "") {
|
|
996
1000
|
return document.createTextNode(e);
|
|
997
1001
|
}
|
|
998
1002
|
// @__NO_SIDE_EFFECTS__
|
|
999
|
-
function
|
|
1000
|
-
return
|
|
1003
|
+
function xe(e) {
|
|
1004
|
+
return Yn.call(e);
|
|
1001
1005
|
}
|
|
1002
1006
|
// @__NO_SIDE_EFFECTS__
|
|
1003
1007
|
function pe(e) {
|
|
1004
|
-
return
|
|
1008
|
+
return Vn.call(e);
|
|
1005
1009
|
}
|
|
1006
|
-
function
|
|
1007
|
-
if (!A) return /* @__PURE__ */
|
|
1008
|
-
var r = /* @__PURE__ */
|
|
1010
|
+
function Kn(e, t) {
|
|
1011
|
+
if (!A) return /* @__PURE__ */ xe(e);
|
|
1012
|
+
var r = /* @__PURE__ */ xe(x);
|
|
1009
1013
|
if (r === null) r = x.appendChild(ae());
|
|
1010
1014
|
else if (t && r.nodeType !== 3) {
|
|
1011
1015
|
var n = ae();
|
|
1012
|
-
return r?.before(n),
|
|
1016
|
+
return r?.before(n), B(n), n;
|
|
1013
1017
|
}
|
|
1014
|
-
return t &&
|
|
1018
|
+
return t && Dr(r), B(r), r;
|
|
1015
1019
|
}
|
|
1016
1020
|
function As(e, t = !1) {
|
|
1017
1021
|
if (!A) {
|
|
1018
|
-
var r = /* @__PURE__ */
|
|
1022
|
+
var r = /* @__PURE__ */ xe(e);
|
|
1019
1023
|
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ pe(r) : r;
|
|
1020
1024
|
}
|
|
1021
1025
|
if (t) {
|
|
1022
1026
|
if (x?.nodeType !== 3) {
|
|
1023
1027
|
var n = ae();
|
|
1024
|
-
return x?.before(n),
|
|
1028
|
+
return x?.before(n), B(n), n;
|
|
1025
1029
|
}
|
|
1026
|
-
|
|
1030
|
+
Dr(x);
|
|
1027
1031
|
}
|
|
1028
1032
|
return x;
|
|
1029
1033
|
}
|
|
1030
1034
|
function Ls(e, t = !1) {
|
|
1031
|
-
if (!A) return /* @__PURE__ */
|
|
1032
|
-
var r =
|
|
1033
|
-
return
|
|
1035
|
+
if (!A) return /* @__PURE__ */ xe(e);
|
|
1036
|
+
var r = Kn(e, t);
|
|
1037
|
+
return pr(e), r;
|
|
1034
1038
|
}
|
|
1035
|
-
function
|
|
1039
|
+
function nn(e, t = 1, r = !1) {
|
|
1036
1040
|
let n = A ? x : e;
|
|
1037
1041
|
for (var i; t--; )
|
|
1038
1042
|
i = n, n = /* @__PURE__ */ pe(n);
|
|
@@ -1040,22 +1044,22 @@ function tn(e, t = 1, r = !1) {
|
|
|
1040
1044
|
if (r) {
|
|
1041
1045
|
if (n?.nodeType !== 3) {
|
|
1042
1046
|
var s = ae();
|
|
1043
|
-
return n === null ? i?.after(s) : n.before(s),
|
|
1047
|
+
return n === null ? i?.after(s) : n.before(s), B(s), s;
|
|
1044
1048
|
}
|
|
1045
|
-
|
|
1049
|
+
Dr(n);
|
|
1046
1050
|
}
|
|
1047
|
-
return
|
|
1051
|
+
return B(n), n;
|
|
1048
1052
|
}
|
|
1049
|
-
function
|
|
1053
|
+
function Xn(e) {
|
|
1050
1054
|
e.textContent = "";
|
|
1051
1055
|
}
|
|
1052
|
-
function
|
|
1053
|
-
return !
|
|
1056
|
+
function Jn() {
|
|
1057
|
+
return !Ae || ce !== null ? !1 : (S.f & xr) !== 0;
|
|
1054
1058
|
}
|
|
1055
|
-
function
|
|
1059
|
+
function Fr(e, t, r) {
|
|
1056
1060
|
return t == null || t === "http://www.w3.org/1999/xhtml" ? r ? document.createElement(e, { is: r }) : document.createElement(e) : r ? document.createElementNS(t, e, { is: r }) : document.createElementNS(t, e);
|
|
1057
1061
|
}
|
|
1058
|
-
function
|
|
1062
|
+
function Dr(e) {
|
|
1059
1063
|
if (e.nodeValue.length < 65536) return;
|
|
1060
1064
|
let t = e.nextSibling;
|
|
1061
1065
|
for (; t !== null && t.nodeType === 3; )
|
|
@@ -1064,12 +1068,13 @@ function Wr(e) {
|
|
|
1064
1068
|
function Os(e) {
|
|
1065
1069
|
var t = S;
|
|
1066
1070
|
if (t === null)
|
|
1067
|
-
return T.f |=
|
|
1071
|
+
return T.f |= Ut, e;
|
|
1068
1072
|
if ((t.f & 32768) === 0 && (t.f & 4) === 0)
|
|
1069
1073
|
throw e;
|
|
1070
1074
|
ve(e, t);
|
|
1071
1075
|
}
|
|
1072
1076
|
function ve(e, t) {
|
|
1077
|
+
if (e === Te) throw e;
|
|
1073
1078
|
if (!(t !== null && (t.f & 16384) !== 0)) {
|
|
1074
1079
|
for (; t !== null; ) {
|
|
1075
1080
|
if ((t.f & 128) !== 0 && (t.f & 33570816) === 0) {
|
|
@@ -1095,9 +1100,9 @@ function Cs(e, t) {
|
|
|
1095
1100
|
}
|
|
1096
1101
|
function ge(e, t) {
|
|
1097
1102
|
var r = S;
|
|
1098
|
-
r !== null && (r.f & 8192) !== 0 && (e |=
|
|
1103
|
+
r !== null && (r.f & 8192) !== 0 && (e |= Tr);
|
|
1099
1104
|
var n = {
|
|
1100
|
-
ctx:
|
|
1105
|
+
ctx: I,
|
|
1101
1106
|
deps: null,
|
|
1102
1107
|
nodes: null,
|
|
1103
1108
|
f: e | V | 512,
|
|
@@ -1112,17 +1117,17 @@ function ge(e, t) {
|
|
|
1112
1117
|
wv: 0,
|
|
1113
1118
|
ac: null
|
|
1114
1119
|
};
|
|
1115
|
-
|
|
1120
|
+
E?.register_created_effect(n);
|
|
1116
1121
|
var i = n;
|
|
1117
1122
|
if ((e & 4) !== 0)
|
|
1118
|
-
|
|
1123
|
+
St !== null ? St.push(n) : Be.ensure().schedule(n);
|
|
1119
1124
|
else if (t !== null) {
|
|
1120
1125
|
try {
|
|
1121
|
-
|
|
1126
|
+
nt(n);
|
|
1122
1127
|
} catch (l) {
|
|
1123
1128
|
throw q(n), l;
|
|
1124
1129
|
}
|
|
1125
|
-
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |=
|
|
1130
|
+
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |= Ar));
|
|
1126
1131
|
}
|
|
1127
1132
|
if (i !== null && (i.parent = r, r !== null && Cs(i, r), T !== null && (T.f & 2) !== 0 && (e & 64) === 0)) {
|
|
1128
1133
|
var s = T;
|
|
@@ -1130,83 +1135,83 @@ function ge(e, t) {
|
|
|
1130
1135
|
}
|
|
1131
1136
|
return n;
|
|
1132
1137
|
}
|
|
1133
|
-
function
|
|
1138
|
+
function Gr() {
|
|
1134
1139
|
return T !== null && !ie;
|
|
1135
1140
|
}
|
|
1136
|
-
function
|
|
1141
|
+
function Zn(e) {
|
|
1137
1142
|
const t = ge(8, null);
|
|
1138
|
-
return
|
|
1143
|
+
return N(t, J), t.teardown = e, t;
|
|
1139
1144
|
}
|
|
1140
|
-
function
|
|
1145
|
+
function lr(e) {
|
|
1141
1146
|
Rs("$effect");
|
|
1142
1147
|
var t = S.f;
|
|
1143
|
-
if (!T && (t & 32) !== 0 &&
|
|
1144
|
-
var r =
|
|
1148
|
+
if (!T && (t & 32) !== 0 && I !== null && !I.i) {
|
|
1149
|
+
var r = I;
|
|
1145
1150
|
(r.e ?? (r.e = [])).push(e);
|
|
1146
|
-
} else return
|
|
1151
|
+
} else return Qn(e);
|
|
1147
1152
|
}
|
|
1148
|
-
function
|
|
1153
|
+
function Qn(e) {
|
|
1149
1154
|
return ge(4 | qi, e);
|
|
1150
1155
|
}
|
|
1151
1156
|
function Ns(e) {
|
|
1152
|
-
|
|
1153
|
-
const t = ge(64 |
|
|
1157
|
+
Be.ensure();
|
|
1158
|
+
const t = ge(64 | it, e);
|
|
1154
1159
|
return () => {
|
|
1155
1160
|
q(t);
|
|
1156
1161
|
};
|
|
1157
1162
|
}
|
|
1158
1163
|
function Is(e) {
|
|
1159
|
-
|
|
1160
|
-
const t = ge(64 |
|
|
1164
|
+
Be.ensure();
|
|
1165
|
+
const t = ge(64 | it, e);
|
|
1161
1166
|
return (r = {}) => new Promise((n) => {
|
|
1162
|
-
r.outro ?
|
|
1167
|
+
r.outro ? ze(t, () => {
|
|
1163
1168
|
q(t), n(void 0);
|
|
1164
1169
|
}) : (q(t), n(void 0));
|
|
1165
1170
|
});
|
|
1166
1171
|
}
|
|
1167
|
-
function
|
|
1172
|
+
function ei(e) {
|
|
1168
1173
|
return ge(4, e);
|
|
1169
1174
|
}
|
|
1170
1175
|
function Ps(e) {
|
|
1171
|
-
return ge(Ui |
|
|
1176
|
+
return ge(Ui | it, e);
|
|
1172
1177
|
}
|
|
1173
|
-
function
|
|
1178
|
+
function qr(e, t = 0) {
|
|
1174
1179
|
return ge(8 | t, e);
|
|
1175
1180
|
}
|
|
1176
|
-
function
|
|
1181
|
+
function sn(e, t = [], r = [], n = []) {
|
|
1177
1182
|
vs(n, t, r, (i) => {
|
|
1178
1183
|
ge(8, () => {
|
|
1179
|
-
e(...i.map(
|
|
1184
|
+
e(...i.map(k));
|
|
1180
1185
|
});
|
|
1181
1186
|
});
|
|
1182
1187
|
}
|
|
1183
|
-
function
|
|
1188
|
+
function Ur(e, t = 0) {
|
|
1184
1189
|
var r = ge(16 | t, e);
|
|
1185
1190
|
return r;
|
|
1186
1191
|
}
|
|
1187
1192
|
function Z(e) {
|
|
1188
|
-
return ge(32 |
|
|
1193
|
+
return ge(32 | it, e);
|
|
1189
1194
|
}
|
|
1190
|
-
function
|
|
1195
|
+
function ti(e) {
|
|
1191
1196
|
var t = e.teardown;
|
|
1192
1197
|
if (t !== null) {
|
|
1193
1198
|
const r = $e, n = T;
|
|
1194
|
-
|
|
1199
|
+
an(!0), Q(null);
|
|
1195
1200
|
try {
|
|
1196
1201
|
t.call(null);
|
|
1197
1202
|
} catch (i) {
|
|
1198
1203
|
ve(i, e.parent);
|
|
1199
1204
|
} finally {
|
|
1200
|
-
|
|
1205
|
+
an(r), Q(n);
|
|
1201
1206
|
}
|
|
1202
1207
|
}
|
|
1203
1208
|
}
|
|
1204
|
-
function
|
|
1209
|
+
function Hr(e, t = !1) {
|
|
1205
1210
|
var r = e.first;
|
|
1206
1211
|
for (e.first = e.last = null; r !== null; ) {
|
|
1207
1212
|
const i = r.ac;
|
|
1208
|
-
i !== null &&
|
|
1209
|
-
i.abort(
|
|
1213
|
+
i !== null && At(() => {
|
|
1214
|
+
i.abort(Tt);
|
|
1210
1215
|
});
|
|
1211
1216
|
var n = r.next;
|
|
1212
1217
|
(r.f & 64) !== 0 ? r.parent = null : q(r, t), r = n;
|
|
@@ -1220,12 +1225,12 @@ function Ws(e) {
|
|
|
1220
1225
|
}
|
|
1221
1226
|
function q(e, t = !0) {
|
|
1222
1227
|
var r = !1;
|
|
1223
|
-
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (js(e.nodes.start, e.nodes.end), r = !0), e.f |=
|
|
1228
|
+
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (js(e.nodes.start, e.nodes.end), r = !0), e.f |= vr, Hr(e, t && !r), Et(e, 0);
|
|
1224
1229
|
var n = e.nodes && e.nodes.t;
|
|
1225
1230
|
if (n !== null) for (const s of n) s.stop();
|
|
1226
|
-
|
|
1231
|
+
ti(e), e.f ^= vr, e.f |= $n;
|
|
1227
1232
|
var i = e.parent;
|
|
1228
|
-
i !== null && i.first !== null &&
|
|
1233
|
+
i !== null && i.first !== null && ri(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1229
1234
|
}
|
|
1230
1235
|
function js(e, t) {
|
|
1231
1236
|
for (; e !== null; ) {
|
|
@@ -1233,13 +1238,13 @@ function js(e, t) {
|
|
|
1233
1238
|
e.remove(), e = r;
|
|
1234
1239
|
}
|
|
1235
1240
|
}
|
|
1236
|
-
function
|
|
1241
|
+
function ri(e) {
|
|
1237
1242
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1238
1243
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1239
1244
|
}
|
|
1240
|
-
function
|
|
1245
|
+
function ze(e, t, r = !0) {
|
|
1241
1246
|
var n = [];
|
|
1242
|
-
e.f |= 256,
|
|
1247
|
+
e.f |= 256, ni(e, n, !0);
|
|
1243
1248
|
var i = () => {
|
|
1244
1249
|
r && q(e), t && t();
|
|
1245
1250
|
}, s = n.length;
|
|
@@ -1248,9 +1253,9 @@ function He(e, t, r = !0) {
|
|
|
1248
1253
|
for (var o of n) o.out(l);
|
|
1249
1254
|
} else i();
|
|
1250
1255
|
}
|
|
1251
|
-
function
|
|
1256
|
+
function ni(e, t, r) {
|
|
1252
1257
|
if ((e.f & 8192) === 0) {
|
|
1253
|
-
e.f ^=
|
|
1258
|
+
e.f ^= Tr;
|
|
1254
1259
|
var n = e.nodes && e.nodes.t;
|
|
1255
1260
|
if (n !== null)
|
|
1256
1261
|
for (const o of n) (o.is_global || r) && t.push(o);
|
|
@@ -1258,36 +1263,36 @@ function ri(e, t, r) {
|
|
|
1258
1263
|
var s = i.next;
|
|
1259
1264
|
if ((i.f & 64) === 0) {
|
|
1260
1265
|
var l = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1261
|
-
|
|
1266
|
+
ni(i, t, l ? r : !1);
|
|
1262
1267
|
}
|
|
1263
1268
|
i = s;
|
|
1264
1269
|
}
|
|
1265
1270
|
}
|
|
1266
1271
|
}
|
|
1267
|
-
function
|
|
1268
|
-
e.f &= -257,
|
|
1272
|
+
function Qt(e) {
|
|
1273
|
+
e.f &= -257, ii(e, !0);
|
|
1269
1274
|
}
|
|
1270
|
-
function
|
|
1275
|
+
function ii(e, t) {
|
|
1271
1276
|
if ((e.f & 256) === 0 && (e.f & 8192) !== 0) {
|
|
1272
|
-
e.f ^=
|
|
1277
|
+
e.f ^= Tr, (e.f & 1024) === 0 && (N(e, V), Be.ensure().schedule(e));
|
|
1273
1278
|
for (var r = e.first; r !== null; ) {
|
|
1274
1279
|
var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1275
|
-
|
|
1280
|
+
ii(r, i ? t : !1), r = n;
|
|
1276
1281
|
}
|
|
1277
1282
|
var s = e.nodes && e.nodes.t;
|
|
1278
1283
|
if (s !== null)
|
|
1279
1284
|
for (const l of s) (l.is_global || t) && l.in();
|
|
1280
1285
|
}
|
|
1281
1286
|
}
|
|
1282
|
-
function
|
|
1287
|
+
function Br(e, t) {
|
|
1283
1288
|
if (e.nodes)
|
|
1284
1289
|
for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
|
|
1285
1290
|
var i = r === n ? null : /* @__PURE__ */ pe(r);
|
|
1286
1291
|
t.append(r), r = i;
|
|
1287
1292
|
}
|
|
1288
1293
|
}
|
|
1289
|
-
var Fs = null,
|
|
1290
|
-
function
|
|
1294
|
+
var Fs = null, $e = !1;
|
|
1295
|
+
function an(e) {
|
|
1291
1296
|
$e = e;
|
|
1292
1297
|
}
|
|
1293
1298
|
var T = null, ie = !1;
|
|
@@ -1299,130 +1304,130 @@ function _e(e) {
|
|
|
1299
1304
|
S = e;
|
|
1300
1305
|
}
|
|
1301
1306
|
var le = null;
|
|
1302
|
-
function
|
|
1303
|
-
T !== null && (!
|
|
1307
|
+
function si(e) {
|
|
1308
|
+
T !== null && (!Ae && (T.f & 2097152) !== 0 || (T.f & 2) !== 0) && (le ?? (le = /* @__PURE__ */ new Set())).add(e);
|
|
1304
1309
|
}
|
|
1305
|
-
var U = null,
|
|
1310
|
+
var U = null, z = 0, K = null;
|
|
1306
1311
|
function Ds(e) {
|
|
1307
1312
|
K = e;
|
|
1308
1313
|
}
|
|
1309
|
-
var
|
|
1310
|
-
function
|
|
1311
|
-
|
|
1314
|
+
var ai = 1, Pe = 0, Fe = Pe;
|
|
1315
|
+
function ln(e) {
|
|
1316
|
+
Fe = e;
|
|
1312
1317
|
}
|
|
1313
|
-
function
|
|
1314
|
-
return ++
|
|
1318
|
+
function li() {
|
|
1319
|
+
return ++ai;
|
|
1315
1320
|
}
|
|
1316
|
-
function
|
|
1321
|
+
function Lt(e) {
|
|
1317
1322
|
var t = e.f;
|
|
1318
1323
|
if ((t & 2048) !== 0) return !0;
|
|
1319
1324
|
if ((t & 4096) !== 0) {
|
|
1320
1325
|
for (var r = e.deps, n = r.length, i = 0; i < n; i++) {
|
|
1321
1326
|
var s = r[i];
|
|
1322
|
-
if (
|
|
1327
|
+
if (Lt(s) && Rn(s), s.wv > e.wv) return !0;
|
|
1323
1328
|
}
|
|
1324
|
-
(t & 512) !== 0 && G === null &&
|
|
1329
|
+
(t & 512) !== 0 && G === null && N(e, J);
|
|
1325
1330
|
}
|
|
1326
1331
|
return !1;
|
|
1327
1332
|
}
|
|
1328
|
-
function
|
|
1333
|
+
function oi(e, t, r = !0) {
|
|
1329
1334
|
var n = e.reactions;
|
|
1330
|
-
if (n !== null && !(!
|
|
1335
|
+
if (n !== null && !(!Ae && le !== null && le.has(e)))
|
|
1331
1336
|
for (var i = 0; i < n.length; i++) {
|
|
1332
1337
|
var s = n[i];
|
|
1333
|
-
(s.f & 2) !== 0 ?
|
|
1338
|
+
(s.f & 2) !== 0 ? oi(s, t, !1) : t === s && (r ? N(s, V) : (s.f & 1024) !== 0 && N(s, He), jr(s));
|
|
1334
1339
|
}
|
|
1335
1340
|
}
|
|
1336
|
-
function
|
|
1337
|
-
var t = U, r =
|
|
1338
|
-
U = null,
|
|
1339
|
-
e.ac.abort(
|
|
1341
|
+
function fi(e) {
|
|
1342
|
+
var t = U, r = z, n = K, i = T, s = le, l = I, o = ie, f = Fe, v = e.f;
|
|
1343
|
+
U = null, z = 0, K = null, T = (v & 96) === 0 ? e : null, le = null, tt(e.ctx), ie = !1, Fe = ++Pe, e.ac !== null && (At(() => {
|
|
1344
|
+
e.ac.abort(Tt);
|
|
1340
1345
|
}), e.ac = null);
|
|
1341
1346
|
try {
|
|
1342
|
-
e.f |=
|
|
1343
|
-
var
|
|
1344
|
-
e.f |=
|
|
1345
|
-
var d =
|
|
1346
|
-
if (
|
|
1347
|
+
e.f |= Zr;
|
|
1348
|
+
var h = e.fn, c = h();
|
|
1349
|
+
e.f |= xr;
|
|
1350
|
+
var d = on(e);
|
|
1351
|
+
if (xt() && K !== null && !ie && d !== null && (e.f & 6146) === 0) for (var u = 0; u < K.length; u++) oi(K[u], e);
|
|
1347
1352
|
if (i !== null && i !== e) {
|
|
1348
|
-
if (
|
|
1349
|
-
if (t !== null) for (const p of t) p.rv =
|
|
1353
|
+
if (Pe++, i.deps !== null) for (let p = 0; p < r; p += 1) i.deps[p].rv = Pe;
|
|
1354
|
+
if (t !== null) for (const p of t) p.rv = Pe;
|
|
1350
1355
|
K !== null && (n === null ? n = K : n.push(...K));
|
|
1351
1356
|
}
|
|
1352
|
-
return (e.f & 8388608) !== 0 && (e.f ^=
|
|
1357
|
+
return (e.f & 8388608) !== 0 && (e.f ^= Ut), c;
|
|
1353
1358
|
} catch (p) {
|
|
1354
|
-
return
|
|
1359
|
+
return on(e), Os(p);
|
|
1355
1360
|
} finally {
|
|
1356
|
-
e.f ^=
|
|
1361
|
+
e.f ^= Zr, U = t, z = r, K = n, T = i, le = s, tt(l), ie = o, Fe = f;
|
|
1357
1362
|
}
|
|
1358
1363
|
}
|
|
1359
|
-
function
|
|
1360
|
-
var t = e.deps, r =
|
|
1364
|
+
function on(e) {
|
|
1365
|
+
var t = e.deps, r = E?.is_fork;
|
|
1361
1366
|
if (U !== null) {
|
|
1362
1367
|
var n;
|
|
1363
|
-
if (r ||
|
|
1364
|
-
for (t.length =
|
|
1368
|
+
if (r || Et(e, z), t !== null && z > 0)
|
|
1369
|
+
for (t.length = z + U.length, n = 0; n < U.length; n++) t[z + n] = U[n];
|
|
1365
1370
|
else e.deps = t = U;
|
|
1366
|
-
if (
|
|
1371
|
+
if (Gr() && (e.f & 512) !== 0) for (n = z; n < t.length; n++) {
|
|
1367
1372
|
var i;
|
|
1368
1373
|
((i = t[n]).reactions ?? (i.reactions = [])).push(e);
|
|
1369
1374
|
}
|
|
1370
|
-
} else !r && t !== null &&
|
|
1375
|
+
} else !r && t !== null && z < t.length && (Et(e, z), t.length = z);
|
|
1371
1376
|
return t;
|
|
1372
1377
|
}
|
|
1373
1378
|
function Gs(e, t) {
|
|
1374
1379
|
let r = t.reactions;
|
|
1375
1380
|
if (r !== null) {
|
|
1376
|
-
var n =
|
|
1381
|
+
var n = Ni.call(r, e);
|
|
1377
1382
|
if (n !== -1) {
|
|
1378
1383
|
var i = r.length - 1;
|
|
1379
1384
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
1380
1385
|
}
|
|
1381
1386
|
}
|
|
1382
|
-
if (r === null && (t.f & 2) !== 0 && (U === null || !
|
|
1387
|
+
if (r === null && (t.f & 2) !== 0 && (U === null || !yt.call(U, t))) {
|
|
1383
1388
|
var s = t;
|
|
1384
|
-
(s.f & 512) !== 0 && (s.f ^= 512), s.v !==
|
|
1385
|
-
s.ac.abort(
|
|
1386
|
-
}), ms(s),
|
|
1389
|
+
(s.f & 512) !== 0 && (s.f ^= 512), s.v !== W && Rr(s), s.ac !== null && At(() => {
|
|
1390
|
+
s.ac.abort(Tt), s.ac = null, N(s, V);
|
|
1391
|
+
}), ms(s), Et(s, 0);
|
|
1387
1392
|
}
|
|
1388
1393
|
}
|
|
1389
|
-
function
|
|
1394
|
+
function Et(e, t) {
|
|
1390
1395
|
var r = e.deps;
|
|
1391
1396
|
if (r !== null)
|
|
1392
1397
|
for (var n = t; n < r.length; n++) Gs(e, r[n]);
|
|
1393
1398
|
}
|
|
1394
|
-
function
|
|
1399
|
+
function nt(e) {
|
|
1395
1400
|
var t = e.f;
|
|
1396
1401
|
if ((t & 16384) === 0) {
|
|
1397
|
-
|
|
1398
|
-
var r = S
|
|
1399
|
-
if (S = e,
|
|
1400
|
-
var
|
|
1402
|
+
N(e, J);
|
|
1403
|
+
var r = S;
|
|
1404
|
+
if (S = e, 0)
|
|
1405
|
+
var n, i;
|
|
1401
1406
|
try {
|
|
1402
|
-
(t & 16777232) !== 0 ? Ws(e) :
|
|
1403
|
-
var
|
|
1404
|
-
if (e.teardown = typeof
|
|
1405
|
-
for (var
|
|
1407
|
+
(t & 16777232) !== 0 ? Ws(e) : Hr(e), ti(e);
|
|
1408
|
+
var s = fi(e);
|
|
1409
|
+
if (e.teardown = typeof s == "function" ? s : null, e.wv = ai, 0)
|
|
1410
|
+
for (var l of e.deps) ;
|
|
1406
1411
|
} finally {
|
|
1407
|
-
|
|
1412
|
+
S = r;
|
|
1408
1413
|
}
|
|
1409
1414
|
}
|
|
1410
1415
|
}
|
|
1411
|
-
function
|
|
1416
|
+
function k(e) {
|
|
1412
1417
|
var t = (e.f & 2) !== 0;
|
|
1413
1418
|
if (Fs?.add(e), T !== null && !ie && !(S !== null && (S.f & 16384) !== 0) && (le === null || !le.has(e))) {
|
|
1414
1419
|
var r = T.deps;
|
|
1415
1420
|
if ((T.f & 2097152) !== 0)
|
|
1416
|
-
e.rv <
|
|
1421
|
+
e.rv < Pe && (e.rv = Pe, U === null && r !== null && r[z] === e ? z++ : U === null ? U = [e] : U.push(e));
|
|
1417
1422
|
else {
|
|
1418
1423
|
var n;
|
|
1419
|
-
(n = T).deps ?? (n.deps = []),
|
|
1424
|
+
(n = T).deps ?? (n.deps = []), yt.call(T.deps, e) || T.deps.push(e);
|
|
1420
1425
|
var i = e.reactions;
|
|
1421
|
-
i === null ? e.reactions = [T] :
|
|
1426
|
+
i === null ? e.reactions = [T] : yt.call(i, T) || i.push(T);
|
|
1422
1427
|
}
|
|
1423
1428
|
}
|
|
1424
1429
|
if (0) {
|
|
1425
|
-
if (!ie && reactivity_loss_tracker &&
|
|
1430
|
+
if (!ie && reactivity_loss_tracker && E === null && et === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
|
|
1426
1431
|
var s;
|
|
1427
1432
|
if (tracing_mode_flag && !ie && tracing_expressions !== null && T !== null && tracing_expressions.reaction === T && !e.trace) {
|
|
1428
1433
|
if (s)
|
|
@@ -1433,29 +1438,31 @@ function E(e) {
|
|
|
1433
1438
|
if (t) {
|
|
1434
1439
|
var f = e;
|
|
1435
1440
|
if ($e) {
|
|
1436
|
-
var
|
|
1437
|
-
return ((f.f & 1024) === 0 && f.reactions !== null ||
|
|
1441
|
+
var v = f.v;
|
|
1442
|
+
return ((f.f & 1024) === 0 && f.reactions !== null || ci(f)) && (v = Nr(f)), he.set(f, v), v;
|
|
1438
1443
|
}
|
|
1439
|
-
var
|
|
1440
|
-
|
|
1444
|
+
var h = (f.f & 512) === 0 && !ie && T !== null && (T.f & 512) !== 0, c = (f.f & xr) === 0;
|
|
1445
|
+
Lt(f) && (h && (f.f |= 512), Rn(f)), h && !c && (Cn(f), ui(f));
|
|
1441
1446
|
}
|
|
1442
1447
|
if (G?.has(e)) return G.get(e);
|
|
1443
1448
|
if ((e.f & 8388608) !== 0) throw e.v;
|
|
1444
1449
|
return e.v;
|
|
1445
1450
|
}
|
|
1446
|
-
function
|
|
1451
|
+
function ui(e) {
|
|
1447
1452
|
if (e.f |= 512, e.deps !== null)
|
|
1448
|
-
for (const
|
|
1449
|
-
|
|
1453
|
+
for (const r of e.deps) {
|
|
1454
|
+
var t = r.reactions;
|
|
1455
|
+
t === null ? r.reactions = [e] : yt.call(t, e) || t.push(e), (r.f & 2) !== 0 && (r.f & 512) === 0 && (Cn(r), ui(r));
|
|
1456
|
+
}
|
|
1450
1457
|
}
|
|
1451
|
-
function
|
|
1452
|
-
if (e.v ===
|
|
1458
|
+
function ci(e) {
|
|
1459
|
+
if (e.v === W) return !0;
|
|
1453
1460
|
if (e.deps === null) return !1;
|
|
1454
1461
|
for (const t of e.deps)
|
|
1455
|
-
if (he.has(t) || (t.f & 2) !== 0 &&
|
|
1462
|
+
if (he.has(t) || (t.f & 2) !== 0 && ci(t)) return !0;
|
|
1456
1463
|
return !1;
|
|
1457
1464
|
}
|
|
1458
|
-
function
|
|
1465
|
+
function zr(e) {
|
|
1459
1466
|
var t = ie;
|
|
1460
1467
|
try {
|
|
1461
1468
|
return ie = !0, e();
|
|
@@ -1463,10 +1470,10 @@ function Ur(e) {
|
|
|
1463
1470
|
ie = t;
|
|
1464
1471
|
}
|
|
1465
1472
|
}
|
|
1466
|
-
var
|
|
1473
|
+
var Rt = /* @__PURE__ */ Symbol("events"), qs = /* @__PURE__ */ new Set(), fn = /* @__PURE__ */ new Set();
|
|
1467
1474
|
function Us(e, t, r, n = {}) {
|
|
1468
1475
|
function i(s) {
|
|
1469
|
-
if (n.capture ||
|
|
1476
|
+
if (n.capture || br.call(t, s), !s.cancelBubble) return At(() => r?.call(this, s));
|
|
1470
1477
|
}
|
|
1471
1478
|
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? (i.__removed = !1, be(() => {
|
|
1472
1479
|
i.__removed || t.addEventListener(e, i, n);
|
|
@@ -1477,40 +1484,40 @@ function Hs(e, t, r, n, i) {
|
|
|
1477
1484
|
capture: n,
|
|
1478
1485
|
passive: i
|
|
1479
1486
|
}, l = Us(e, t, r, s);
|
|
1480
|
-
(t === document.body || t === window || t === document || t instanceof HTMLMediaElement) &&
|
|
1487
|
+
(t === document.body || t === window || t === document || t instanceof HTMLMediaElement) && Zn(() => {
|
|
1481
1488
|
l.__removed = !0, t.removeEventListener(e, l, s);
|
|
1482
1489
|
});
|
|
1483
1490
|
}
|
|
1484
|
-
var
|
|
1485
|
-
function
|
|
1491
|
+
var or = null, fr = !1;
|
|
1492
|
+
function br(e) {
|
|
1486
1493
|
var t = this, r = t.ownerDocument, n = e.type, i = e.composedPath?.() || [], s = i[0] || e.target;
|
|
1487
|
-
|
|
1488
|
-
|
|
1494
|
+
or = e, fr || (fr = !0, setTimeout(() => {
|
|
1495
|
+
fr = !1, or = null;
|
|
1489
1496
|
}));
|
|
1490
|
-
var l = 0, o =
|
|
1497
|
+
var l = 0, o = or === e && e[Rt];
|
|
1491
1498
|
if (o) {
|
|
1492
1499
|
var f = i.indexOf(o);
|
|
1493
1500
|
if (f !== -1 && (t === document || t === window)) {
|
|
1494
|
-
e[
|
|
1501
|
+
e[Rt] = t;
|
|
1495
1502
|
return;
|
|
1496
1503
|
}
|
|
1497
|
-
var
|
|
1498
|
-
if (
|
|
1499
|
-
f <=
|
|
1504
|
+
var v = i.indexOf(t);
|
|
1505
|
+
if (v === -1) return;
|
|
1506
|
+
f <= v && (l = f);
|
|
1500
1507
|
}
|
|
1501
1508
|
if (s = i[l] || e.target, s !== t) {
|
|
1502
|
-
|
|
1509
|
+
bt(e, "currentTarget", {
|
|
1503
1510
|
configurable: !0,
|
|
1504
1511
|
get() {
|
|
1505
1512
|
return s || r;
|
|
1506
1513
|
}
|
|
1507
1514
|
});
|
|
1508
|
-
var
|
|
1515
|
+
var h = T, c = S;
|
|
1509
1516
|
Q(null), _e(null);
|
|
1510
1517
|
try {
|
|
1511
1518
|
for (var d, u = []; s !== null && s !== t; ) {
|
|
1512
1519
|
try {
|
|
1513
|
-
var p = s[
|
|
1520
|
+
var p = s[Rt]?.[n];
|
|
1514
1521
|
p != null && (!s.disabled || e.target === s) && p.call(s, e);
|
|
1515
1522
|
} catch (g) {
|
|
1516
1523
|
d ? u.push(g) : d = g;
|
|
@@ -1525,7 +1532,7 @@ function yr(e) {
|
|
|
1525
1532
|
throw d;
|
|
1526
1533
|
}
|
|
1527
1534
|
} finally {
|
|
1528
|
-
e[
|
|
1535
|
+
e[Rt] = t, delete e.currentTarget, Q(h), _e(c);
|
|
1529
1536
|
}
|
|
1530
1537
|
}
|
|
1531
1538
|
}
|
|
@@ -1534,10 +1541,10 @@ function zs(e) {
|
|
|
1534
1541
|
return Bs?.createHTML(e) ?? e;
|
|
1535
1542
|
}
|
|
1536
1543
|
function Ys(e) {
|
|
1537
|
-
var t =
|
|
1544
|
+
var t = Fr("template");
|
|
1538
1545
|
return t.innerHTML = zs(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1539
1546
|
}
|
|
1540
|
-
function
|
|
1547
|
+
function Ft(e, t) {
|
|
1541
1548
|
var r = S;
|
|
1542
1549
|
r.nodes === null && (r.nodes = {
|
|
1543
1550
|
start: e,
|
|
@@ -1547,24 +1554,24 @@ function Wt(e, t) {
|
|
|
1547
1554
|
});
|
|
1548
1555
|
}
|
|
1549
1556
|
// @__NO_SIDE_EFFECTS__
|
|
1550
|
-
function
|
|
1557
|
+
function Yr(e, t) {
|
|
1551
1558
|
var r = (t & 1) !== 0, n = (t & 2) !== 0, i, s = !e.startsWith("<!>");
|
|
1552
1559
|
return () => {
|
|
1553
1560
|
if (A)
|
|
1554
|
-
return
|
|
1555
|
-
i === void 0 && (i = Ys(s ? e : "<!>" + e), r || (i = /* @__PURE__ */
|
|
1556
|
-
var l = n ||
|
|
1561
|
+
return Ft(x, null), x;
|
|
1562
|
+
i === void 0 && (i = Ys(s ? e : "<!>" + e), r || (i = /* @__PURE__ */ xe(i)));
|
|
1563
|
+
var l = n || zn ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1557
1564
|
if (r) {
|
|
1558
|
-
var o = /* @__PURE__ */
|
|
1559
|
-
|
|
1560
|
-
} else
|
|
1565
|
+
var o = /* @__PURE__ */ xe(l), f = l.lastChild;
|
|
1566
|
+
Ft(o, f);
|
|
1567
|
+
} else Ft(l, l);
|
|
1561
1568
|
return l;
|
|
1562
1569
|
};
|
|
1563
1570
|
}
|
|
1564
|
-
function
|
|
1571
|
+
function Dt(e, t) {
|
|
1565
1572
|
if (A) {
|
|
1566
1573
|
var r = S;
|
|
1567
|
-
((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = x),
|
|
1574
|
+
((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = x), ir();
|
|
1568
1575
|
return;
|
|
1569
1576
|
}
|
|
1570
1577
|
e !== null && e.before(t);
|
|
@@ -1641,40 +1648,40 @@ var Js = [
|
|
|
1641
1648
|
"$host"
|
|
1642
1649
|
];
|
|
1643
1650
|
function Zs(e) {
|
|
1644
|
-
let t = 0, r =
|
|
1651
|
+
let t = 0, r = Ue(0), n;
|
|
1645
1652
|
return () => {
|
|
1646
|
-
|
|
1653
|
+
Gr() && (k(r), qr(() => (t === 0 && (n = zr(() => e(() => gt(r)))), t += 1, () => {
|
|
1647
1654
|
be(() => {
|
|
1648
|
-
t -= 1, t === 0 && (n?.(), n = void 0,
|
|
1655
|
+
t -= 1, t === 0 && (n?.(), n = void 0, gt(r));
|
|
1649
1656
|
});
|
|
1650
1657
|
})));
|
|
1651
1658
|
};
|
|
1652
1659
|
}
|
|
1653
|
-
var Qs =
|
|
1660
|
+
var Qs = Ar | it;
|
|
1654
1661
|
function ea(e, t, r, n) {
|
|
1655
1662
|
new ta(e, t, r, n);
|
|
1656
1663
|
}
|
|
1657
|
-
var oe = /* @__PURE__ */ new WeakMap(),
|
|
1664
|
+
var oe = /* @__PURE__ */ new WeakMap(), $r = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap(), kr = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), un = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakSet(), ta = class {
|
|
1658
1665
|
constructor(e, t, r, n) {
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
}))),
|
|
1666
|
+
Ir(this, L), O(this, "parent", void 0), O(this, "is_pending", !1), O(this, "transform_error", void 0), $(this, oe, void 0), $(this, $r, A ? x : null), $(this, de, void 0), $(this, Mt, void 0), $(this, H, void 0), $(this, fe, null), $(this, Y, null), $(this, se, null), $(this, Me, null), $(this, Je, 0), $(this, De, 0), $(this, Ct, !1), $(this, kr, /* @__PURE__ */ new Set()), $(this, Sr, /* @__PURE__ */ new Set()), $(this, Le, null), $(this, un, Zs(() => (y(Le, this, Ue(a(Je, this))), () => {
|
|
1667
|
+
y(Le, this, null);
|
|
1668
|
+
}))), y(oe, this, e), y(de, this, t), y(Mt, this, (i) => {
|
|
1662
1669
|
var s = S;
|
|
1663
1670
|
s.b = this, s.f |= 128, r(i);
|
|
1664
|
-
}), this.parent = S.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i),
|
|
1671
|
+
}), this.parent = S.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), y(H, this, Ur(() => {
|
|
1665
1672
|
if (A) {
|
|
1666
|
-
const i = a(
|
|
1667
|
-
|
|
1668
|
-
const s = i
|
|
1669
|
-
if (i.
|
|
1670
|
-
const l = JSON.parse(i.
|
|
1671
|
-
|
|
1672
|
-
} else s ?
|
|
1673
|
-
} else
|
|
1674
|
-
}, Qs)), A &&
|
|
1673
|
+
const i = Lr(a($r, this));
|
|
1674
|
+
ir();
|
|
1675
|
+
const s = i === "[!";
|
|
1676
|
+
if (i.startsWith("[?")) {
|
|
1677
|
+
const l = JSON.parse(i.slice(2));
|
|
1678
|
+
w(L, this, na).call(this, l);
|
|
1679
|
+
} else s ? w(L, this, ia).call(this) : w(L, this, ra).call(this);
|
|
1680
|
+
} else w(L, this, hi).call(this);
|
|
1681
|
+
}, Qs)), A && y(oe, this, x);
|
|
1675
1682
|
}
|
|
1676
1683
|
defer_effect(e) {
|
|
1677
|
-
|
|
1684
|
+
Ln(e, a(kr, this), a(Sr, this));
|
|
1678
1685
|
}
|
|
1679
1686
|
is_rendered() {
|
|
1680
1687
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -1683,162 +1690,173 @@ var oe = /* @__PURE__ */ new WeakMap(), br = /* @__PURE__ */ new WeakMap(), de =
|
|
|
1683
1690
|
return !!a(de, this).pending;
|
|
1684
1691
|
}
|
|
1685
1692
|
update_pending_count(e, t) {
|
|
1686
|
-
|
|
1687
|
-
|
|
1693
|
+
w(L, this, vi).call(this, e, t), y(Je, this, a(Je, this) + e), !(!a(Le, this) || a(Ct, this)) && (y(Ct, this, !0), be(() => {
|
|
1694
|
+
y(Ct, this, !1), a(Le, this) && rt(a(Le, this), a(Je, this));
|
|
1688
1695
|
}));
|
|
1689
1696
|
}
|
|
1690
1697
|
get_effect_pending() {
|
|
1691
|
-
return a(
|
|
1698
|
+
return a(un, this).call(this), k(a(Le, this));
|
|
1692
1699
|
}
|
|
1693
1700
|
error(e) {
|
|
1694
|
-
if (!a(de, this).onerror && !a(de, this).failed) throw e;
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
})) :
|
|
1701
|
+
if (e === Te || !a(de, this).onerror && !a(de, this).failed) throw e;
|
|
1702
|
+
E?.is_fork ? (a(fe, this) && E.skip_effect(a(fe, this)), a(Y, this) && E.skip_effect(a(Y, this)), a(se, this) && E.skip_effect(a(se, this)), E.oncommit(() => {
|
|
1703
|
+
w(L, this, Ge).call(this) || w(L, this, cn).call(this, e);
|
|
1704
|
+
})) : w(L, this, cn).call(this, e);
|
|
1698
1705
|
}
|
|
1699
1706
|
};
|
|
1700
1707
|
function ra() {
|
|
1701
1708
|
try {
|
|
1702
|
-
|
|
1709
|
+
y(fe, this, Z(() => a(Mt, this).call(this, a(oe, this))));
|
|
1703
1710
|
} catch (e) {
|
|
1704
1711
|
this.error(e);
|
|
1705
1712
|
}
|
|
1706
1713
|
}
|
|
1707
1714
|
function na(e) {
|
|
1708
|
-
const t = a(de, this).failed, { reset: r, invoke_onerror: n } =
|
|
1709
|
-
be(n), t &&
|
|
1715
|
+
const t = a(de, this).failed, { reset: r, invoke_onerror: n } = w(L, this, di).call(this, e);
|
|
1716
|
+
be(n), t && y(se, this, Z(() => {
|
|
1710
1717
|
t(a(oe, this), () => e, () => r);
|
|
1711
1718
|
}));
|
|
1712
1719
|
}
|
|
1713
|
-
function
|
|
1720
|
+
function di(e) {
|
|
1714
1721
|
var t = !1, r = !1;
|
|
1715
1722
|
const n = () => {
|
|
1716
|
-
if (
|
|
1717
|
-
|
|
1718
|
-
|
|
1723
|
+
if (!w(L, this, Ge).call(this)) {
|
|
1724
|
+
if (t) {
|
|
1725
|
+
Xi();
|
|
1726
|
+
return;
|
|
1727
|
+
}
|
|
1728
|
+
t = !0, r && us(), a(se, this) !== null && ze(a(se, this), () => {
|
|
1729
|
+
y(se, this, null);
|
|
1730
|
+
}), w(L, this, Vr).call(this, () => {
|
|
1731
|
+
w(L, this, hi).call(this);
|
|
1732
|
+
});
|
|
1719
1733
|
}
|
|
1720
|
-
t = !0, r && us(), a(se, this) !== null && He(a(se, this), () => {
|
|
1721
|
-
m(se, this, null);
|
|
1722
|
-
}), $(W, this, Br).call(this, () => {
|
|
1723
|
-
$(W, this, di).call(this);
|
|
1724
|
-
});
|
|
1725
1734
|
};
|
|
1726
1735
|
return {
|
|
1727
1736
|
reset: n,
|
|
1728
1737
|
invoke_onerror: () => {
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1738
|
+
if (!w(L, this, Ge).call(this))
|
|
1739
|
+
try {
|
|
1740
|
+
r = !0, a(de, this).onerror?.(e, n), r = !1;
|
|
1741
|
+
} catch (s) {
|
|
1742
|
+
ve(s, a(H, this) && a(H, this).parent);
|
|
1743
|
+
}
|
|
1734
1744
|
}
|
|
1735
1745
|
};
|
|
1736
1746
|
}
|
|
1747
|
+
function Ge() {
|
|
1748
|
+
return (a(H, this).f & ($n | vr)) !== 0;
|
|
1749
|
+
}
|
|
1737
1750
|
function ia() {
|
|
1738
1751
|
const e = a(de, this).pending;
|
|
1739
|
-
e && (this.is_pending = !0,
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
return Z(() => a(kt, this).call(this, r));
|
|
1744
|
-
} catch (i) {
|
|
1752
|
+
e && (this.is_pending = !0, y(Y, this, Z(() => e(a(oe, this)))), be(() => {
|
|
1753
|
+
if (!w(L, this, Ge).call(this)) {
|
|
1754
|
+
var t = y(Me, this, document.createDocumentFragment()), r = ae(), n = !1;
|
|
1755
|
+
if (t.append(r), y(fe, this, w(L, this, Vr).call(this, () => {
|
|
1745
1756
|
try {
|
|
1746
|
-
this.
|
|
1747
|
-
} catch (
|
|
1748
|
-
|
|
1757
|
+
return Z(() => a(Mt, this).call(this, r));
|
|
1758
|
+
} catch (i) {
|
|
1759
|
+
try {
|
|
1760
|
+
this.error(i), n = !0;
|
|
1761
|
+
} catch (s) {
|
|
1762
|
+
ve(s, a(H, this).parent);
|
|
1763
|
+
}
|
|
1764
|
+
return null;
|
|
1749
1765
|
}
|
|
1750
|
-
|
|
1766
|
+
})), a(fe, this) === null) {
|
|
1767
|
+
y(Me, this, null), n && w(L, this, er).call(this, E);
|
|
1768
|
+
return;
|
|
1751
1769
|
}
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1770
|
+
a(De, this) === 0 && (a(oe, this).before(t), y(Me, this, null), ze(a(Y, this), () => {
|
|
1771
|
+
y(Y, this, null);
|
|
1772
|
+
}), w(L, this, er).call(this, E));
|
|
1755
1773
|
}
|
|
1756
|
-
a(Fe, this) === 0 && (a(oe, this).before(t), m(Me, this, null), He(a(Y, this), () => {
|
|
1757
|
-
m(Y, this, null);
|
|
1758
|
-
}), $(W, this, Qt).call(this, k));
|
|
1759
1774
|
}));
|
|
1760
1775
|
}
|
|
1761
|
-
function
|
|
1776
|
+
function hi() {
|
|
1762
1777
|
try {
|
|
1763
|
-
if (this.is_pending = this.has_pending_snippet(),
|
|
1764
|
-
a(
|
|
1765
|
-
})), a(
|
|
1766
|
-
var e =
|
|
1767
|
-
|
|
1778
|
+
if (this.is_pending = this.has_pending_snippet(), y(De, this, 0), y(Je, this, 0), y(fe, this, Z(() => {
|
|
1779
|
+
a(Mt, this).call(this, a(oe, this));
|
|
1780
|
+
})), a(De, this) > 0) {
|
|
1781
|
+
var e = y(Me, this, document.createDocumentFragment());
|
|
1782
|
+
Br(a(fe, this), e);
|
|
1768
1783
|
const t = a(de, this).pending;
|
|
1769
|
-
|
|
1770
|
-
} else
|
|
1784
|
+
y(Y, this, Z(() => t(a(oe, this))));
|
|
1785
|
+
} else w(L, this, er).call(this, E);
|
|
1771
1786
|
} catch (t) {
|
|
1772
1787
|
this.error(t);
|
|
1773
1788
|
}
|
|
1774
1789
|
}
|
|
1775
|
-
function
|
|
1776
|
-
this.is_pending = !1, e.transfer_effects(a(
|
|
1790
|
+
function er(e) {
|
|
1791
|
+
this.is_pending = !1, e.transfer_effects(a(kr, this), a(Sr, this));
|
|
1777
1792
|
}
|
|
1778
|
-
function
|
|
1779
|
-
var t = S, r = T, n =
|
|
1780
|
-
_e(a(
|
|
1793
|
+
function Vr(e) {
|
|
1794
|
+
var t = S, r = T, n = I;
|
|
1795
|
+
_e(a(H, this)), Q(a(H, this)), tt(a(H, this).ctx);
|
|
1781
1796
|
try {
|
|
1782
|
-
return
|
|
1797
|
+
return Be.ensure(), e();
|
|
1783
1798
|
} finally {
|
|
1784
|
-
_e(t), Q(r),
|
|
1799
|
+
_e(t), Q(r), tt(n);
|
|
1785
1800
|
}
|
|
1786
1801
|
}
|
|
1787
|
-
function
|
|
1802
|
+
function vi(e, t) {
|
|
1788
1803
|
if (!this.has_pending_snippet()) {
|
|
1789
1804
|
if (this.parent) {
|
|
1790
1805
|
var r;
|
|
1791
|
-
|
|
1806
|
+
w(L, r = this.parent, vi).call(r, e, t);
|
|
1792
1807
|
}
|
|
1793
1808
|
return;
|
|
1794
1809
|
}
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
}), a(Me, this) && (a(oe, this).before(a(Me, this)),
|
|
1810
|
+
y(De, this, a(De, this) + e), a(De, this) === 0 && (w(L, this, er).call(this, t), a(Y, this) && ze(a(Y, this), () => {
|
|
1811
|
+
y(Y, this, null);
|
|
1812
|
+
}), a(Me, this) && (a(oe, this).before(a(Me, this)), y(Me, this, null)));
|
|
1798
1813
|
}
|
|
1799
|
-
function
|
|
1800
|
-
a(fe, this) && (q(a(fe, this)),
|
|
1814
|
+
function cn(e) {
|
|
1815
|
+
a(fe, this) && (q(a(fe, this)), y(fe, this, null)), a(Y, this) && (q(a(Y, this)), y(Y, this, null)), a(se, this) && (q(a(se, this)), y(se, this, null)), A && (B(a($r, this)), Ji(), B(Ht()));
|
|
1801
1816
|
let t = a(de, this).failed;
|
|
1802
1817
|
const r = (n) => {
|
|
1803
|
-
|
|
1804
|
-
|
|
1818
|
+
if (w(L, this, Ge).call(this)) return;
|
|
1819
|
+
const { reset: i, invoke_onerror: s } = w(L, this, di).call(this, n);
|
|
1820
|
+
s(), t && !w(L, this, Ge).call(this) && y(se, this, w(L, this, Vr).call(this, () => {
|
|
1805
1821
|
try {
|
|
1806
1822
|
return Z(() => {
|
|
1807
1823
|
var l = S;
|
|
1808
1824
|
l.b = this, l.f |= 128, t(a(oe, this), () => n, () => i);
|
|
1809
1825
|
});
|
|
1810
1826
|
} catch (l) {
|
|
1811
|
-
return ve(l, a(
|
|
1827
|
+
return ve(l, a(H, this).parent), null;
|
|
1812
1828
|
}
|
|
1813
1829
|
}));
|
|
1814
1830
|
};
|
|
1815
1831
|
be(() => {
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1832
|
+
if (!w(L, this, Ge).call(this)) {
|
|
1833
|
+
var n;
|
|
1834
|
+
try {
|
|
1835
|
+
n = this.transform_error(e);
|
|
1836
|
+
} catch (i) {
|
|
1837
|
+
ve(i, a(H, this) && a(H, this).parent);
|
|
1838
|
+
return;
|
|
1839
|
+
}
|
|
1840
|
+
n !== null && typeof n == "object" && typeof n.then == "function" ? n.then(r, (i) => ve(i, a(H, this) && a(H, this).parent)) : r(n);
|
|
1822
1841
|
}
|
|
1823
|
-
n !== null && typeof n == "object" && typeof n.then == "function" ? n.then(r, (i) => ve(i, a(z, this) && a(z, this).parent)) : r(n);
|
|
1824
1842
|
});
|
|
1825
1843
|
}
|
|
1826
|
-
var
|
|
1844
|
+
var dn = !0;
|
|
1827
1845
|
function sa(e, t) {
|
|
1828
1846
|
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1829
|
-
r !== (e[
|
|
1847
|
+
r !== (e[Wt] ?? (e[Wt] = e.nodeValue)) && (e[Wt] = r, e.nodeValue = `${r}`);
|
|
1830
1848
|
}
|
|
1831
|
-
function
|
|
1832
|
-
return
|
|
1849
|
+
function _i(e, t) {
|
|
1850
|
+
return pi(e, t);
|
|
1833
1851
|
}
|
|
1834
1852
|
function aa(e, t) {
|
|
1835
|
-
|
|
1853
|
+
yr(), t.intro = t.intro ?? !1;
|
|
1836
1854
|
const r = t.target, n = A, i = x;
|
|
1837
1855
|
try {
|
|
1838
|
-
for (var s = /* @__PURE__ */
|
|
1839
|
-
if (!s) throw
|
|
1840
|
-
me(!0),
|
|
1841
|
-
const l =
|
|
1856
|
+
for (var s = /* @__PURE__ */ xe(r); s && (s.nodeType !== 8 || s.data !== "["); ) s = /* @__PURE__ */ pe(s);
|
|
1857
|
+
if (!s) throw Te;
|
|
1858
|
+
me(!0), B(s);
|
|
1859
|
+
const l = pi(e, {
|
|
1842
1860
|
...t,
|
|
1843
1861
|
anchor: s
|
|
1844
1862
|
});
|
|
@@ -1846,23 +1864,23 @@ function aa(e, t) {
|
|
|
1846
1864
|
} catch (l) {
|
|
1847
1865
|
if (l instanceof Error && l.message.split(`
|
|
1848
1866
|
`).some((o) => o.startsWith("https://svelte.dev/e/"))) throw l;
|
|
1849
|
-
return l !==
|
|
1867
|
+
return l !== Te && console.warn("Failed to hydrate: ", l), t.recover === !1 && ss(), yr(), Xn(r), me(!1), _i(e, t);
|
|
1850
1868
|
} finally {
|
|
1851
|
-
me(n),
|
|
1869
|
+
me(n), B(i);
|
|
1852
1870
|
}
|
|
1853
1871
|
}
|
|
1854
|
-
var
|
|
1855
|
-
function
|
|
1856
|
-
|
|
1857
|
-
var f = void 0,
|
|
1858
|
-
var
|
|
1859
|
-
ea(
|
|
1872
|
+
var Nt = /* @__PURE__ */ new Map();
|
|
1873
|
+
function pi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: l = !0, transformError: o }) {
|
|
1874
|
+
yr();
|
|
1875
|
+
var f = void 0, v = Is(() => {
|
|
1876
|
+
var h = r ?? t.appendChild(ae());
|
|
1877
|
+
ea(h, { pending: () => {
|
|
1860
1878
|
} }, (u) => {
|
|
1861
|
-
|
|
1862
|
-
var p =
|
|
1863
|
-
if (s && (p.c = s), i && (n.$$events = i), A &&
|
|
1864
|
-
throw
|
|
1865
|
-
|
|
1879
|
+
Tn({});
|
|
1880
|
+
var p = I;
|
|
1881
|
+
if (s && (p.c = s), i && (n.$$events = i), A && Ft(u, null), dn = l, f = e(u, n) || Or(), dn = !0, A && (S.nodes.end = x, x === null || x.nodeType !== 8 || x.data !== "]"))
|
|
1882
|
+
throw nr(), Te;
|
|
1883
|
+
xn();
|
|
1866
1884
|
}, o);
|
|
1867
1885
|
var c = /* @__PURE__ */ new Set(), d = (u) => {
|
|
1868
1886
|
for (var p = 0; p < u.length; p++) {
|
|
@@ -1870,40 +1888,40 @@ function _i(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
1870
1888
|
if (!c.has(g)) {
|
|
1871
1889
|
c.add(g);
|
|
1872
1890
|
var _ = Xs(g);
|
|
1873
|
-
for (const
|
|
1874
|
-
var
|
|
1875
|
-
|
|
1876
|
-
var M =
|
|
1877
|
-
M === void 0 ? (
|
|
1891
|
+
for (const R of [t, document]) {
|
|
1892
|
+
var m = Nt.get(R);
|
|
1893
|
+
m === void 0 && (m = /* @__PURE__ */ new Map(), Nt.set(R, m));
|
|
1894
|
+
var M = m.get(g);
|
|
1895
|
+
M === void 0 ? (R.addEventListener(g, br, { passive: _ }), m.set(g, 1)) : m.set(g, M + 1);
|
|
1878
1896
|
}
|
|
1879
1897
|
}
|
|
1880
1898
|
}
|
|
1881
1899
|
};
|
|
1882
|
-
return d(
|
|
1900
|
+
return d(rr(qs)), fn.add(d), () => {
|
|
1883
1901
|
for (var u of c) for (const _ of [t, document]) {
|
|
1884
|
-
var p =
|
|
1885
|
-
--g == 0 ? (_.removeEventListener(u,
|
|
1902
|
+
var p = Nt.get(_), g = p.get(u);
|
|
1903
|
+
--g == 0 ? (_.removeEventListener(u, br), p.delete(u), p.size === 0 && Nt.delete(_)) : p.set(u, g);
|
|
1886
1904
|
}
|
|
1887
|
-
|
|
1905
|
+
fn.delete(d), h !== r && h.parentNode?.removeChild(h);
|
|
1888
1906
|
};
|
|
1889
1907
|
});
|
|
1890
|
-
return
|
|
1908
|
+
return Er.set(f, v), f;
|
|
1891
1909
|
}
|
|
1892
|
-
var
|
|
1910
|
+
var Er = /* @__PURE__ */ new WeakMap();
|
|
1893
1911
|
function la(e, t) {
|
|
1894
|
-
const r =
|
|
1895
|
-
return r ? (
|
|
1912
|
+
const r = Er.get(e);
|
|
1913
|
+
return r ? (Er.delete(e), r(t)) : Promise.resolve();
|
|
1896
1914
|
}
|
|
1897
|
-
var we = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(),
|
|
1915
|
+
var we = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), ur = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), hn = /* @__PURE__ */ new WeakMap(), oa = class {
|
|
1898
1916
|
constructor(e, t = !0) {
|
|
1899
|
-
|
|
1917
|
+
O(this, "anchor", void 0), $(this, we, /* @__PURE__ */ new Map()), $(this, ke, /* @__PURE__ */ new Map()), $(this, te, /* @__PURE__ */ new Map()), $(this, lt, /* @__PURE__ */ new Set()), $(this, ur, !0), $(this, cr, (r) => {
|
|
1900
1918
|
if (a(we, this).has(r)) {
|
|
1901
1919
|
var n = a(we, this).get(r), i = a(ke, this).get(n);
|
|
1902
1920
|
if (i)
|
|
1903
|
-
|
|
1921
|
+
Qt(i), a(lt, this).delete(n);
|
|
1904
1922
|
else {
|
|
1905
1923
|
var s = a(te, this).get(n);
|
|
1906
|
-
s && (
|
|
1924
|
+
s && (Qt(s.effect), a(ke, this).set(n, s.effect), a(te, this).delete(n), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), i = s.effect);
|
|
1907
1925
|
}
|
|
1908
1926
|
for (const [l, o] of a(we, this)) {
|
|
1909
1927
|
if (a(we, this).delete(l), l === r) break;
|
|
@@ -1911,28 +1929,28 @@ var we = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), te =
|
|
|
1911
1929
|
f && (q(f.effect), a(te, this).delete(o));
|
|
1912
1930
|
}
|
|
1913
1931
|
for (const [l, o] of a(ke, this)) {
|
|
1914
|
-
if (l === n || a(
|
|
1932
|
+
if (l === n || a(lt, this).has(l)) continue;
|
|
1915
1933
|
const f = () => {
|
|
1916
1934
|
if (Array.from(a(we, this).values()).includes(l)) {
|
|
1917
|
-
var
|
|
1918
|
-
|
|
1935
|
+
var v = document.createDocumentFragment();
|
|
1936
|
+
Br(o, v), v.append(ae()), a(te, this).set(l, {
|
|
1919
1937
|
effect: o,
|
|
1920
|
-
fragment:
|
|
1938
|
+
fragment: v
|
|
1921
1939
|
});
|
|
1922
1940
|
} else q(o);
|
|
1923
|
-
a(
|
|
1941
|
+
a(lt, this).delete(l), a(ke, this).delete(l);
|
|
1924
1942
|
};
|
|
1925
|
-
a(
|
|
1943
|
+
a(ur, this) || !i ? (a(lt, this).add(l), ze(o, f, !1)) : f();
|
|
1926
1944
|
}
|
|
1927
1945
|
}
|
|
1928
|
-
}),
|
|
1946
|
+
}), $(this, hn, (r) => {
|
|
1929
1947
|
a(we, this).delete(r);
|
|
1930
1948
|
const n = Array.from(a(we, this).values());
|
|
1931
1949
|
for (const [i, s] of a(te, this)) n.includes(i) || (q(s.effect), a(te, this).delete(i));
|
|
1932
|
-
}), this.anchor = e,
|
|
1950
|
+
}), this.anchor = e, y(ur, this, t);
|
|
1933
1951
|
}
|
|
1934
1952
|
ensure(e, t) {
|
|
1935
|
-
var r =
|
|
1953
|
+
var r = E, n = Jn();
|
|
1936
1954
|
if (t && !a(ke, this).has(e) && !a(te, this).has(e))
|
|
1937
1955
|
if (n) {
|
|
1938
1956
|
var i = document.createDocumentFragment(), s = ae();
|
|
@@ -1944,41 +1962,41 @@ var we = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), te =
|
|
|
1944
1962
|
if (a(we, this).set(r, e), n) {
|
|
1945
1963
|
for (const [l, o] of a(ke, this)) l === e ? r.unskip_effect(o) : r.skip_effect(o);
|
|
1946
1964
|
for (const [l, o] of a(te, this)) l === e ? r.unskip_effect(o.effect) : r.skip_effect(o.effect);
|
|
1947
|
-
r.oncommit(a(
|
|
1965
|
+
r.oncommit(a(cr, this)), r.ondiscard(a(hn, this));
|
|
1948
1966
|
} else
|
|
1949
|
-
A && (this.anchor = x), a(
|
|
1967
|
+
A && (this.anchor = x), a(cr, this).call(this, r);
|
|
1950
1968
|
}
|
|
1951
1969
|
};
|
|
1952
1970
|
function fa(e, t, r = !1) {
|
|
1953
1971
|
var n;
|
|
1954
|
-
A && (n = x,
|
|
1955
|
-
var i = new oa(e), s = r ?
|
|
1972
|
+
A && (n = x, ir());
|
|
1973
|
+
var i = new oa(e), s = r ? Ar : 0;
|
|
1956
1974
|
function l(o, f) {
|
|
1957
1975
|
if (A) {
|
|
1958
|
-
var
|
|
1959
|
-
if (o !== parseInt(
|
|
1960
|
-
var
|
|
1961
|
-
|
|
1976
|
+
var v = Lr(n);
|
|
1977
|
+
if (o !== parseInt(v.substring(1))) {
|
|
1978
|
+
var h = Ht();
|
|
1979
|
+
B(h), i.anchor = h, me(!1), i.ensure(o, f), me(!0);
|
|
1962
1980
|
return;
|
|
1963
1981
|
}
|
|
1964
1982
|
}
|
|
1965
1983
|
i.ensure(o, f);
|
|
1966
1984
|
}
|
|
1967
|
-
|
|
1985
|
+
Ur(() => {
|
|
1968
1986
|
var o = !1;
|
|
1969
|
-
t((f,
|
|
1970
|
-
o = !0, l(
|
|
1987
|
+
t((f, v = 0) => {
|
|
1988
|
+
o = !0, l(v, f);
|
|
1971
1989
|
}), o || l(-1, null);
|
|
1972
1990
|
}, s);
|
|
1973
1991
|
}
|
|
1974
1992
|
function ua(e, t, r) {
|
|
1975
1993
|
for (var n = [], i = t.length, s, l = t.length, o = 0; o < i; o++) {
|
|
1976
1994
|
let c = t[o];
|
|
1977
|
-
|
|
1995
|
+
ze(c, () => {
|
|
1978
1996
|
if (s) {
|
|
1979
1997
|
if (s.pending.delete(c), s.done.add(c), s.pending.size === 0) {
|
|
1980
1998
|
var d = e.outrogroups;
|
|
1981
|
-
|
|
1999
|
+
Mr(e, rr(s.done)), d.delete(s), d.size === 0 && (e.outrogroups = null);
|
|
1982
2000
|
}
|
|
1983
2001
|
} else l -= 1;
|
|
1984
2002
|
}, !1);
|
|
@@ -1986,17 +2004,17 @@ function ua(e, t, r) {
|
|
|
1986
2004
|
if (l === 0) {
|
|
1987
2005
|
var f = n.length === 0 && r !== null && e.pending.size === 0;
|
|
1988
2006
|
if (f) {
|
|
1989
|
-
var
|
|
1990
|
-
|
|
2007
|
+
var v = r, h = v.parentNode;
|
|
2008
|
+
Xn(h), h.append(v), e.items.clear();
|
|
1991
2009
|
}
|
|
1992
|
-
|
|
2010
|
+
Mr(e, t, !f);
|
|
1993
2011
|
} else
|
|
1994
2012
|
s = {
|
|
1995
2013
|
pending: new Set(t),
|
|
1996
2014
|
done: /* @__PURE__ */ new Set()
|
|
1997
2015
|
}, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(s);
|
|
1998
2016
|
}
|
|
1999
|
-
function
|
|
2017
|
+
function Mr(e, t, r = !0) {
|
|
2000
2018
|
var n;
|
|
2001
2019
|
if (e.pending.size > 0) {
|
|
2002
2020
|
n = /* @__PURE__ */ new Set();
|
|
@@ -2005,116 +2023,119 @@ function Er(e, t, r = !0) {
|
|
|
2005
2023
|
for (var i = 0; i < t.length; i++) {
|
|
2006
2024
|
var s = t[i];
|
|
2007
2025
|
if (n?.has(s)) {
|
|
2008
|
-
s.f |=
|
|
2026
|
+
s.f |= vt;
|
|
2009
2027
|
const l = document.createDocumentFragment();
|
|
2010
|
-
|
|
2028
|
+
Br(s, l);
|
|
2011
2029
|
} else q(t[i], r);
|
|
2012
2030
|
}
|
|
2013
2031
|
}
|
|
2014
|
-
var
|
|
2032
|
+
var It;
|
|
2015
2033
|
function ca(e, t, r, n, i, s = null) {
|
|
2016
2034
|
var l = e, o = /* @__PURE__ */ new Map();
|
|
2017
2035
|
if ((t & 4) !== 0) {
|
|
2018
2036
|
var f = e;
|
|
2019
|
-
l = A ?
|
|
2020
|
-
}
|
|
2021
|
-
A &&
|
|
2022
|
-
var
|
|
2023
|
-
var
|
|
2024
|
-
return
|
|
2025
|
-
}), c
|
|
2026
|
-
function
|
|
2027
|
-
(
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2037
|
+
l = A ? B(/* @__PURE__ */ xe(f)) : f.appendChild(ae());
|
|
2038
|
+
}
|
|
2039
|
+
A && ir();
|
|
2040
|
+
var v = null, h = /* @__PURE__ */ Cr(() => {
|
|
2041
|
+
var _ = r();
|
|
2042
|
+
return mn(_) ? _ : _ == null ? [] : rr(_);
|
|
2043
|
+
}), c = /* @__PURE__ */ new Map(), d = !0;
|
|
2044
|
+
function u(_) {
|
|
2045
|
+
if ((g.effect.f & 16384) === 0) {
|
|
2046
|
+
g.pending.delete(_);
|
|
2047
|
+
var m = k(h);
|
|
2048
|
+
g.fallback = v, da(g, m, l, t, n), v !== null && (m.length === 0 ? (v.f & 33554432) === 0 ? Qt(v) : (v.f ^= vt, ht(v, null, l)) : ze(v, () => {
|
|
2049
|
+
v = null;
|
|
2050
|
+
}));
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
function p(_) {
|
|
2054
|
+
g.pending.delete(_);
|
|
2055
|
+
}
|
|
2056
|
+
var g = {
|
|
2057
|
+
effect: Ur(() => {
|
|
2058
|
+
var _ = k(h), m = _.length;
|
|
2038
2059
|
let M = !1;
|
|
2039
|
-
A &&
|
|
2040
|
-
for (var
|
|
2060
|
+
A && Lr(l) === "[!" != (m === 0) && (l = Ht(), B(l), me(!1), M = !0);
|
|
2061
|
+
for (var R = /* @__PURE__ */ new Set(), b = E, D = Jn(), P = 0; P < m; P += 1) {
|
|
2041
2062
|
A && x.nodeType === 8 && x.data === "]" && (l = x, M = !0, me(!1));
|
|
2042
|
-
var j =
|
|
2063
|
+
var j = _[P], ee = n(j, P);
|
|
2043
2064
|
if (0)
|
|
2044
|
-
var
|
|
2045
|
-
var F =
|
|
2046
|
-
F ? (F.v &&
|
|
2065
|
+
var Ye;
|
|
2066
|
+
var F = d ? null : o.get(ee);
|
|
2067
|
+
F ? (F.v && rt(F.v, j), F.i && rt(F.i, P), D && b.unskip_effect(F.e)) : (F = ha(o, d ? l : It ?? (It = ae()), j, ee, P, i, t, r), d || (F.e.f |= vt), o.set(ee, F)), R.add(ee);
|
|
2047
2068
|
}
|
|
2048
|
-
if (
|
|
2049
|
-
if (
|
|
2050
|
-
for (const [
|
|
2051
|
-
|
|
2052
|
-
} else
|
|
2053
|
-
M && me(!0),
|
|
2069
|
+
if (m === 0 && s && !v && (d ? v = Z(() => s(l)) : (v = Z(() => s(It ?? (It = ae()))), v.f |= vt)), m > R.size && es("", "", ""), A && m > 0 && B(Ht()), !d)
|
|
2070
|
+
if (c.set(b, R), D) {
|
|
2071
|
+
for (const [$i, ki] of o) R.has($i) || b.skip_effect(ki.e);
|
|
2072
|
+
b.oncommit(u), b.ondiscard(p);
|
|
2073
|
+
} else u(b);
|
|
2074
|
+
M && me(!0), k(h);
|
|
2054
2075
|
}),
|
|
2055
2076
|
flags: t,
|
|
2056
2077
|
items: o,
|
|
2057
|
-
pending:
|
|
2078
|
+
pending: c,
|
|
2058
2079
|
outrogroups: null,
|
|
2059
|
-
fallback:
|
|
2080
|
+
fallback: v
|
|
2060
2081
|
};
|
|
2061
|
-
|
|
2082
|
+
d = !1, A && (l = x);
|
|
2062
2083
|
}
|
|
2063
|
-
function
|
|
2084
|
+
function ot(e) {
|
|
2064
2085
|
for (; e !== null && (e.f & 32) === 0; ) e = e.next;
|
|
2065
2086
|
return e;
|
|
2066
2087
|
}
|
|
2067
2088
|
function da(e, t, r, n, i) {
|
|
2068
|
-
var s = (n & 8) !== 0, l = t.length, o = e.items, f =
|
|
2069
|
-
if (s) for (
|
|
2070
|
-
p = t[
|
|
2071
|
-
for (
|
|
2072
|
-
if (p = t[
|
|
2089
|
+
var s = (n & 8) !== 0, l = t.length, o = e.items, f = ot(e.effect.first), v, h = null, c, d = [], u = [], p, g, _, m;
|
|
2090
|
+
if (s) for (m = 0; m < l; m += 1)
|
|
2091
|
+
p = t[m], g = i(p, m), _ = o.get(g).e, (_.f & 33554432) === 0 && (_.nodes?.a?.measure(), (c ?? (c = /* @__PURE__ */ new Set())).add(_));
|
|
2092
|
+
for (m = 0; m < l; m += 1) {
|
|
2093
|
+
if (p = t[m], g = i(p, m), _ = o.get(g).e, e.outrogroups !== null) for (const F of e.outrogroups)
|
|
2073
2094
|
F.pending.delete(_), F.done.delete(_);
|
|
2074
|
-
if ((_.f & 8192) !== 0 && (
|
|
2075
|
-
if (_.f ^=
|
|
2095
|
+
if ((_.f & 8192) !== 0 && (Qt(_), s && (_.nodes?.a?.unfix(), (c ?? (c = /* @__PURE__ */ new Set())).delete(_))), (_.f & 33554432) !== 0)
|
|
2096
|
+
if (_.f ^= vt, _ === f) ht(_, null, r);
|
|
2076
2097
|
else {
|
|
2077
|
-
var M =
|
|
2078
|
-
_ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev), Se(e,
|
|
2098
|
+
var M = h ? h.next : f;
|
|
2099
|
+
_ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev), Se(e, h, _), Se(e, _, M), ht(_, M, r), h = _, d = [], u = [], f = ot(h.next);
|
|
2079
2100
|
continue;
|
|
2080
2101
|
}
|
|
2081
2102
|
if (_ !== f) {
|
|
2082
|
-
if (
|
|
2103
|
+
if (v !== void 0 && v.has(_)) {
|
|
2083
2104
|
if (d.length < u.length) {
|
|
2084
|
-
var
|
|
2085
|
-
|
|
2086
|
-
var D = d[0],
|
|
2087
|
-
for (
|
|
2088
|
-
for (
|
|
2089
|
-
Se(e, D.prev,
|
|
2105
|
+
var R = u[0], b;
|
|
2106
|
+
h = R.prev;
|
|
2107
|
+
var D = d[0], P = d[d.length - 1];
|
|
2108
|
+
for (b = 0; b < d.length; b += 1) ht(d[b], R, r);
|
|
2109
|
+
for (b = 0; b < u.length; b += 1) v.delete(u[b]);
|
|
2110
|
+
Se(e, D.prev, P.next), Se(e, h, D), Se(e, P, R), f = R, h = P, m -= 1, d = [], u = [];
|
|
2090
2111
|
} else
|
|
2091
|
-
|
|
2112
|
+
v.delete(_), ht(_, f, r), Se(e, _.prev, _.next), Se(e, _, h === null ? e.effect.first : h.next), Se(e, h, _), h = _;
|
|
2092
2113
|
continue;
|
|
2093
2114
|
}
|
|
2094
2115
|
for (d = [], u = []; f !== null && f !== _; )
|
|
2095
|
-
(
|
|
2116
|
+
(v ?? (v = /* @__PURE__ */ new Set())).add(f), u.push(f), f = ot(f.next);
|
|
2096
2117
|
if (f === null) continue;
|
|
2097
2118
|
}
|
|
2098
|
-
(_.f & 33554432) === 0 && d.push(_),
|
|
2119
|
+
(_.f & 33554432) === 0 && d.push(_), h = _, f = ot(_.next);
|
|
2099
2120
|
}
|
|
2100
2121
|
if (e.outrogroups !== null) {
|
|
2101
|
-
for (const F of e.outrogroups) F.pending.size === 0 && (
|
|
2122
|
+
for (const F of e.outrogroups) F.pending.size === 0 && (Mr(e, rr(F.done)), e.outrogroups?.delete(F));
|
|
2102
2123
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
2103
2124
|
}
|
|
2104
|
-
if (f !== null ||
|
|
2125
|
+
if (f !== null || v !== void 0) {
|
|
2105
2126
|
var j = [];
|
|
2106
|
-
if (
|
|
2107
|
-
for (_ of
|
|
2127
|
+
if (v !== void 0)
|
|
2128
|
+
for (_ of v) (_.f & 8192) === 0 && j.push(_);
|
|
2108
2129
|
for (; f !== null; )
|
|
2109
|
-
(f.f & 8192) === 0 && f !== e.fallback && j.push(f), f =
|
|
2130
|
+
(f.f & 8192) === 0 && f !== e.fallback && j.push(f), f = ot(f.next);
|
|
2110
2131
|
var ee = j.length;
|
|
2111
2132
|
if (ee > 0) {
|
|
2112
|
-
var
|
|
2133
|
+
var Ye = (n & 4) !== 0 && l === 0 ? r : null;
|
|
2113
2134
|
if (s) {
|
|
2114
|
-
for (
|
|
2115
|
-
for (
|
|
2135
|
+
for (m = 0; m < ee; m += 1) j[m].nodes?.a?.measure();
|
|
2136
|
+
for (m = 0; m < ee; m += 1) j[m].nodes?.a?.fix();
|
|
2116
2137
|
}
|
|
2117
|
-
ua(e, j,
|
|
2138
|
+
ua(e, j, Ye);
|
|
2118
2139
|
}
|
|
2119
2140
|
}
|
|
2120
2141
|
s && be(() => {
|
|
@@ -2123,16 +2144,16 @@ function da(e, t, r, n, i) {
|
|
|
2123
2144
|
});
|
|
2124
2145
|
}
|
|
2125
2146
|
function ha(e, t, r, n, i, s, l, o) {
|
|
2126
|
-
var f = (l & 1) !== 0 ? (l & 16) === 0 ? /* @__PURE__ */
|
|
2147
|
+
var f = (l & 1) !== 0 ? (l & 16) === 0 ? /* @__PURE__ */ Hn(r, !1, !1) : Ue(r) : null, v = (l & 2) !== 0 ? Ue(i) : null;
|
|
2127
2148
|
return {
|
|
2128
2149
|
v: f,
|
|
2129
|
-
i:
|
|
2130
|
-
e: Z(() => (s(t, f ?? r,
|
|
2150
|
+
i: v,
|
|
2151
|
+
e: Z(() => (s(t, f ?? r, v ?? i, o), () => {
|
|
2131
2152
|
e.delete(n);
|
|
2132
2153
|
}))
|
|
2133
2154
|
};
|
|
2134
2155
|
}
|
|
2135
|
-
function
|
|
2156
|
+
function ht(e, t, r) {
|
|
2136
2157
|
if (e.nodes)
|
|
2137
2158
|
for (var n = e.nodes.start, i = e.nodes.end, s = t && (t.f & 33554432) === 0 ? t.nodes.start : r; n !== null; ) {
|
|
2138
2159
|
var l = /* @__PURE__ */ pe(n);
|
|
@@ -2144,17 +2165,17 @@ function Se(e, t, r) {
|
|
|
2144
2165
|
t === null ? e.effect.first = r : t.next = r, r === null ? e.effect.last = t : r.prev = t;
|
|
2145
2166
|
}
|
|
2146
2167
|
function va(e, t) {
|
|
2147
|
-
|
|
2168
|
+
ei(() => {
|
|
2148
2169
|
e = S?.parent?.nodes?.start ?? e;
|
|
2149
2170
|
var r = e.getRootNode(), n = r.host ? r : r.head ?? r.ownerDocument.head;
|
|
2150
2171
|
if (!n.querySelector("#" + t.hash)) {
|
|
2151
|
-
const i =
|
|
2172
|
+
const i = Fr("style");
|
|
2152
2173
|
i.id = t.hash, i.textContent = t.code, n.appendChild(i);
|
|
2153
2174
|
}
|
|
2154
2175
|
});
|
|
2155
2176
|
}
|
|
2156
2177
|
var _a = /* @__PURE__ */ Symbol("is custom element"), pa = /* @__PURE__ */ Symbol("is html"), ga = Vi ? "link" : "LINK";
|
|
2157
|
-
function
|
|
2178
|
+
function Ve(e, t, r, n) {
|
|
2158
2179
|
var i = wa(e);
|
|
2159
2180
|
if (A && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === ga)) {
|
|
2160
2181
|
n || void 0;
|
|
@@ -2163,119 +2184,119 @@ function ze(e, t, r, n) {
|
|
|
2163
2184
|
i[t] !== (i[t] = r) && (t === "loading" && (e[Hi] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && ma(e).has(t) ? e[t] = r : e.setAttribute(t, r));
|
|
2164
2185
|
}
|
|
2165
2186
|
function wa(e) {
|
|
2166
|
-
return e[
|
|
2187
|
+
return e[_r] ?? (e[_r] = {
|
|
2167
2188
|
[_a]: e.nodeName.includes("-"),
|
|
2168
2189
|
[pa]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
2169
2190
|
});
|
|
2170
2191
|
}
|
|
2171
|
-
var
|
|
2192
|
+
var vn = /* @__PURE__ */ new Map();
|
|
2172
2193
|
function ma(e) {
|
|
2173
|
-
var t = e.getAttribute("is") || e.nodeName, r =
|
|
2194
|
+
var t = e.getAttribute("is") || e.nodeName, r = vn.get(t);
|
|
2174
2195
|
if (r) return r;
|
|
2175
|
-
|
|
2196
|
+
vn.set(t, r = /* @__PURE__ */ new Set());
|
|
2176
2197
|
for (var n, i = e, s = Element.prototype; s !== i; ) {
|
|
2177
|
-
n =
|
|
2198
|
+
n = Ii(i);
|
|
2178
2199
|
for (var l in n) n[l].set && l !== "innerHTML" && l !== "textContent" && l !== "innerText" && r.add(l);
|
|
2179
|
-
i =
|
|
2200
|
+
i = yn(i);
|
|
2180
2201
|
}
|
|
2181
2202
|
return r;
|
|
2182
2203
|
}
|
|
2183
|
-
var
|
|
2204
|
+
var gi, Ze = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap(), _n = /* @__PURE__ */ new WeakSet(), wi = class {
|
|
2184
2205
|
constructor(e) {
|
|
2185
|
-
|
|
2206
|
+
Ir(this, _n), $(this, Ze, /* @__PURE__ */ new WeakMap()), $(this, tr, void 0), $(this, dr, void 0), y(dr, this, e);
|
|
2186
2207
|
}
|
|
2187
2208
|
observe(e, t) {
|
|
2188
|
-
var r = a(
|
|
2189
|
-
return r.add(t), a(
|
|
2190
|
-
var n = a(
|
|
2191
|
-
n.delete(t), n.size === 0 && (a(
|
|
2209
|
+
var r = a(Ze, this).get(e) || /* @__PURE__ */ new Set();
|
|
2210
|
+
return r.add(t), a(Ze, this).set(e, r), w(_n, this, ya).call(this).observe(e, a(dr, this)), () => {
|
|
2211
|
+
var n = a(Ze, this).get(e);
|
|
2212
|
+
n.delete(t), n.size === 0 && (a(Ze, this).delete(e), a(tr, this).unobserve(e));
|
|
2192
2213
|
};
|
|
2193
2214
|
}
|
|
2194
2215
|
};
|
|
2195
|
-
|
|
2216
|
+
gi = wi;
|
|
2196
2217
|
function ya() {
|
|
2197
|
-
return a(
|
|
2218
|
+
return a(tr, this) ?? y(tr, this, new ResizeObserver((e) => {
|
|
2198
2219
|
for (var t of e) {
|
|
2199
|
-
|
|
2200
|
-
for (var r of a(
|
|
2220
|
+
gi.entries.set(t.target, t);
|
|
2221
|
+
for (var r of a(Ze, this).get(t.target) || []) r(t);
|
|
2201
2222
|
}
|
|
2202
2223
|
}));
|
|
2203
2224
|
}
|
|
2204
|
-
|
|
2205
|
-
function
|
|
2206
|
-
return e === t || e?.[
|
|
2225
|
+
O(wi, "entries", /* @__PURE__ */ new WeakMap());
|
|
2226
|
+
function hr(e, t) {
|
|
2227
|
+
return e === t || e?.[_t] === t;
|
|
2207
2228
|
}
|
|
2208
|
-
function
|
|
2209
|
-
var i =
|
|
2210
|
-
return
|
|
2229
|
+
function pn(e = Or(), t, r, n) {
|
|
2230
|
+
var i = I.r, s = S;
|
|
2231
|
+
return ei(() => {
|
|
2211
2232
|
var l, o;
|
|
2212
|
-
return
|
|
2213
|
-
l = o, o = n?.() || [],
|
|
2214
|
-
|
|
2233
|
+
return qr(() => {
|
|
2234
|
+
l = o, o = n?.() || [], zr(() => {
|
|
2235
|
+
hr(r(...o), e) || (t(e, ...o), l && hr(r(...l), e) && t(null, ...l));
|
|
2215
2236
|
});
|
|
2216
2237
|
}), () => {
|
|
2217
2238
|
let f = s;
|
|
2218
2239
|
for (; f !== i && f.parent !== null && f.parent.f & 33554432; ) f = f.parent;
|
|
2219
|
-
const
|
|
2220
|
-
o &&
|
|
2221
|
-
},
|
|
2240
|
+
const v = () => {
|
|
2241
|
+
o && hr(r(...o), e) && t(null, ...o);
|
|
2242
|
+
}, h = f.teardown;
|
|
2222
2243
|
f.teardown = () => {
|
|
2223
|
-
|
|
2244
|
+
v(), h?.();
|
|
2224
2245
|
};
|
|
2225
2246
|
};
|
|
2226
2247
|
}), e;
|
|
2227
2248
|
}
|
|
2228
|
-
var
|
|
2249
|
+
var Pt = !1;
|
|
2229
2250
|
function ba(e) {
|
|
2230
|
-
var t =
|
|
2251
|
+
var t = Pt;
|
|
2231
2252
|
try {
|
|
2232
|
-
return
|
|
2253
|
+
return Pt = !1, [e(), Pt];
|
|
2233
2254
|
} finally {
|
|
2234
|
-
|
|
2255
|
+
Pt = t;
|
|
2235
2256
|
}
|
|
2236
2257
|
}
|
|
2237
2258
|
function $a(e, t, r, n) {
|
|
2238
|
-
var i = !
|
|
2259
|
+
var i = !sr || (r & 2) !== 0, s = (r & 8) !== 0, l = (r & 16) !== 0, o = n, f = !0, v = void 0, h = () => l && i ? (v ?? (v = /* @__PURE__ */ kt(n)), k(v)) : (f && (f = !1, o = l ? zr(n) : n), o);
|
|
2239
2260
|
let c;
|
|
2240
2261
|
if (s) {
|
|
2241
|
-
var d =
|
|
2242
|
-
c =
|
|
2262
|
+
var d = _t in e || Sn in e;
|
|
2263
|
+
c = We(e, t)?.set ?? (d && t in e ? (b) => e[t] = b : void 0);
|
|
2243
2264
|
}
|
|
2244
2265
|
var u, p = !1;
|
|
2245
|
-
s ? [u, p] = ba(() => e[t]) : u = e[t], u === void 0 && n !== void 0 && (u =
|
|
2266
|
+
s ? [u, p] = ba(() => e[t]) : u = e[t], u === void 0 && n !== void 0 && (u = h(), c && (i && as(t), c(u)));
|
|
2246
2267
|
var g;
|
|
2247
2268
|
if (i ? g = () => {
|
|
2248
|
-
var
|
|
2249
|
-
return
|
|
2269
|
+
var b = e[t];
|
|
2270
|
+
return b === void 0 ? h() : (f = !0, b);
|
|
2250
2271
|
} : g = () => {
|
|
2251
|
-
var
|
|
2252
|
-
return
|
|
2272
|
+
var b = e[t];
|
|
2273
|
+
return b !== void 0 && (o = void 0), b === void 0 ? o : b;
|
|
2253
2274
|
}, i && (r & 4) === 0) return g;
|
|
2254
2275
|
if (c) {
|
|
2255
2276
|
var _ = e.$$legacy;
|
|
2256
|
-
return (function(
|
|
2257
|
-
return arguments.length > 0 ? ((!i || !D || _ || p) && c(D ? g() :
|
|
2277
|
+
return (function(b, D) {
|
|
2278
|
+
return arguments.length > 0 ? ((!i || !D || _ || p) && c(D ? g() : b), b) : g();
|
|
2258
2279
|
});
|
|
2259
2280
|
}
|
|
2260
|
-
var
|
|
2261
|
-
s &&
|
|
2262
|
-
var
|
|
2263
|
-
return (function(
|
|
2281
|
+
var m = !1, M = ((r & 1) !== 0 ? kt : Cr)(() => (m = !1, g()));
|
|
2282
|
+
s && k(M);
|
|
2283
|
+
var R = S;
|
|
2284
|
+
return (function(b, D) {
|
|
2264
2285
|
if (arguments.length > 0) {
|
|
2265
|
-
const
|
|
2266
|
-
return X(M,
|
|
2286
|
+
const P = D ? k(M) : i && s ? Qe(b) : b;
|
|
2287
|
+
return X(M, P), m = !0, o !== void 0 && (o = P), b;
|
|
2267
2288
|
}
|
|
2268
|
-
return $e &&
|
|
2289
|
+
return $e && m || (R.f & 16384) !== 0 ? M.v : k(M);
|
|
2269
2290
|
});
|
|
2270
2291
|
}
|
|
2271
2292
|
function ka(e) {
|
|
2272
2293
|
return new Sa(e);
|
|
2273
2294
|
}
|
|
2274
|
-
var
|
|
2295
|
+
var Oe = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), Sa = class {
|
|
2275
2296
|
constructor(e) {
|
|
2276
|
-
|
|
2297
|
+
$(this, Oe, void 0), $(this, ue, void 0);
|
|
2277
2298
|
var t = /* @__PURE__ */ new Map(), r = (i, s) => {
|
|
2278
|
-
var l = /* @__PURE__ */
|
|
2299
|
+
var l = /* @__PURE__ */ Hn(s, !1, !1);
|
|
2279
2300
|
return t.set(i, l), l;
|
|
2280
2301
|
};
|
|
2281
2302
|
const n = new Proxy({
|
|
@@ -2283,16 +2304,16 @@ var Le = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), Sa =
|
|
|
2283
2304
|
$$events: {}
|
|
2284
2305
|
}, {
|
|
2285
2306
|
get(i, s) {
|
|
2286
|
-
return
|
|
2307
|
+
return k(t.get(s) ?? r(s, Reflect.get(i, s)));
|
|
2287
2308
|
},
|
|
2288
2309
|
has(i, s) {
|
|
2289
|
-
return s ===
|
|
2310
|
+
return s === Sn ? !0 : (k(t.get(s) ?? r(s, Reflect.get(i, s))), Reflect.has(i, s));
|
|
2290
2311
|
},
|
|
2291
2312
|
set(i, s, l) {
|
|
2292
2313
|
return X(t.get(s) ?? r(s, l), l), Reflect.set(i, s, l);
|
|
2293
2314
|
}
|
|
2294
2315
|
});
|
|
2295
|
-
|
|
2316
|
+
y(ue, this, (e.hydrate ? aa : _i)(e.component, {
|
|
2296
2317
|
target: e.target,
|
|
2297
2318
|
anchor: e.anchor,
|
|
2298
2319
|
props: n,
|
|
@@ -2300,9 +2321,9 @@ var Le = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), Sa =
|
|
|
2300
2321
|
intro: e.intro ?? !1,
|
|
2301
2322
|
recover: e.recover,
|
|
2302
2323
|
transformError: e.transformError
|
|
2303
|
-
})), !
|
|
2324
|
+
})), !Ae && (!e?.props?.$$host || e.sync === !1) && Pr(), y(Oe, this, n.$$events);
|
|
2304
2325
|
for (const i of Object.keys(a(ue, this)))
|
|
2305
|
-
i === "$set" || i === "$destroy" || i === "$on" ||
|
|
2326
|
+
i === "$set" || i === "$destroy" || i === "$on" || bt(this, i, {
|
|
2306
2327
|
get() {
|
|
2307
2328
|
return a(ue, this)[i];
|
|
2308
2329
|
},
|
|
@@ -2321,19 +2342,19 @@ var Le = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), Sa =
|
|
|
2321
2342
|
a(ue, this).$set(e);
|
|
2322
2343
|
}
|
|
2323
2344
|
$on(e, t) {
|
|
2324
|
-
a(
|
|
2345
|
+
a(Oe, this)[e] = a(Oe, this)[e] || [];
|
|
2325
2346
|
const r = (...n) => t.call(this, ...n);
|
|
2326
|
-
return a(
|
|
2327
|
-
a(
|
|
2347
|
+
return a(Oe, this)[e].push(r), () => {
|
|
2348
|
+
a(Oe, this)[e] = a(Oe, this)[e].filter((n) => n !== r);
|
|
2328
2349
|
};
|
|
2329
2350
|
}
|
|
2330
2351
|
$destroy() {
|
|
2331
2352
|
a(ue, this).$destroy();
|
|
2332
2353
|
}
|
|
2333
|
-
},
|
|
2334
|
-
typeof HTMLElement == "function" && (
|
|
2354
|
+
}, mi;
|
|
2355
|
+
typeof HTMLElement == "function" && (mi = class extends HTMLElement {
|
|
2335
2356
|
constructor(e, t, r) {
|
|
2336
|
-
super(),
|
|
2357
|
+
super(), O(this, "$$ctor", void 0), O(this, "$$s", void 0), O(this, "$$c", void 0), O(this, "$$cn", !1), O(this, "$$d", {}), O(this, "$$r", !1), O(this, "$$p_d", {}), O(this, "$$l", {}), O(this, "$$l_u", /* @__PURE__ */ new Map()), O(this, "$$me", void 0), O(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2337
2358
|
}
|
|
2338
2359
|
addEventListener(e, t, r) {
|
|
2339
2360
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
@@ -2352,8 +2373,8 @@ typeof HTMLElement == "function" && (wi = class extends HTMLElement {
|
|
|
2352
2373
|
if (this.$$cn = !0, !this.$$c) {
|
|
2353
2374
|
let e = function(n) {
|
|
2354
2375
|
return (i) => {
|
|
2355
|
-
const s =
|
|
2356
|
-
n !== "default" && (s.name = n),
|
|
2376
|
+
const s = Fr("slot");
|
|
2377
|
+
n !== "default" && (s.name = n), Dt(i, s);
|
|
2357
2378
|
};
|
|
2358
2379
|
};
|
|
2359
2380
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
@@ -2361,7 +2382,7 @@ typeof HTMLElement == "function" && (wi = class extends HTMLElement {
|
|
|
2361
2382
|
for (const n of this.$$s) n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
|
|
2362
2383
|
for (const n of this.attributes) {
|
|
2363
2384
|
const i = this.$$g_p(n.name);
|
|
2364
|
-
i in this.$$d || (this.$$d[i] =
|
|
2385
|
+
i in this.$$d || (this.$$d[i] = Gt(i, n.value, this.$$p_d, "toProp"));
|
|
2365
2386
|
}
|
|
2366
2387
|
for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2367
2388
|
this.$$c = ka({
|
|
@@ -2373,12 +2394,12 @@ typeof HTMLElement == "function" && (wi = class extends HTMLElement {
|
|
|
2373
2394
|
$$host: this
|
|
2374
2395
|
}
|
|
2375
2396
|
}), this.$$me = Ns(() => {
|
|
2376
|
-
|
|
2397
|
+
qr(() => {
|
|
2377
2398
|
this.$$r = !0;
|
|
2378
|
-
for (const n of
|
|
2399
|
+
for (const n of qt(this.$$c)) {
|
|
2379
2400
|
if (!this.$$p_d[n]?.reflect) continue;
|
|
2380
2401
|
this.$$d[n] = this.$$c[n];
|
|
2381
|
-
const i =
|
|
2402
|
+
const i = Gt(n, this.$$d[n], this.$$p_d, "toAttribute");
|
|
2382
2403
|
i == null ? this.removeAttribute(this.$$p_d[n].attribute || n) : this.setAttribute(this.$$p_d[n].attribute || n, i);
|
|
2383
2404
|
}
|
|
2384
2405
|
this.$$r = !1;
|
|
@@ -2392,7 +2413,7 @@ typeof HTMLElement == "function" && (wi = class extends HTMLElement {
|
|
|
2392
2413
|
}
|
|
2393
2414
|
}
|
|
2394
2415
|
attributeChangedCallback(e, t, r) {
|
|
2395
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
2416
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Gt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2396
2417
|
}
|
|
2397
2418
|
disconnectedCallback() {
|
|
2398
2419
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2400,10 +2421,10 @@ typeof HTMLElement == "function" && (wi = class extends HTMLElement {
|
|
|
2400
2421
|
});
|
|
2401
2422
|
}
|
|
2402
2423
|
$$g_p(e) {
|
|
2403
|
-
return
|
|
2424
|
+
return qt(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
2404
2425
|
}
|
|
2405
2426
|
});
|
|
2406
|
-
function
|
|
2427
|
+
function Gt(e, t, r, n) {
|
|
2407
2428
|
const i = r[e]?.type;
|
|
2408
2429
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e]) return t;
|
|
2409
2430
|
if (n === "toAttribute") switch (i) {
|
|
@@ -2436,27 +2457,27 @@ function Ea(e) {
|
|
|
2436
2457
|
}), t;
|
|
2437
2458
|
}
|
|
2438
2459
|
function Ma(e, t, r, n, i, s) {
|
|
2439
|
-
let l = class extends
|
|
2460
|
+
let l = class extends mi {
|
|
2440
2461
|
constructor() {
|
|
2441
2462
|
super(e, r, i), this.$$p_d = t;
|
|
2442
2463
|
}
|
|
2443
2464
|
static get observedAttributes() {
|
|
2444
|
-
return
|
|
2465
|
+
return qt(t).map((o) => (t[o].attribute || o).toLowerCase());
|
|
2445
2466
|
}
|
|
2446
2467
|
};
|
|
2447
|
-
return
|
|
2448
|
-
|
|
2468
|
+
return qt(t).forEach((o) => {
|
|
2469
|
+
bt(l.prototype, o, {
|
|
2449
2470
|
get() {
|
|
2450
2471
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
2451
2472
|
},
|
|
2452
2473
|
set(f) {
|
|
2453
|
-
f =
|
|
2454
|
-
var
|
|
2455
|
-
|
|
2474
|
+
f = Gt(o, f, t), this.$$d[o] = f;
|
|
2475
|
+
var v = this.$$c;
|
|
2476
|
+
v && (We(v, o)?.get ? v[o] = f : v.$set({ [o]: f }));
|
|
2456
2477
|
}
|
|
2457
2478
|
});
|
|
2458
2479
|
}), n.forEach((o) => {
|
|
2459
|
-
|
|
2480
|
+
bt(l.prototype, o, { get() {
|
|
2460
2481
|
return this.$$c?.[o];
|
|
2461
2482
|
} });
|
|
2462
2483
|
}), s && (l = s(l)), e.element = l, l;
|
|
@@ -2471,28 +2492,28 @@ var Ta = "sign-language", Qa = "ase", xa = {
|
|
|
2471
2492
|
"en-US": "tools.signLanguage.signedEnglish"
|
|
2472
2493
|
};
|
|
2473
2494
|
function Aa(e, t) {
|
|
2474
|
-
const r =
|
|
2495
|
+
const r = wn({ i18n: t }), n = (e || "").trim();
|
|
2475
2496
|
if (!n) return r.t("tools.signLanguage.generic");
|
|
2476
2497
|
const i = xa[n];
|
|
2477
2498
|
return i ? r.t(i) : r.t("tools.signLanguage.unknown", { code: n });
|
|
2478
2499
|
}
|
|
2479
2500
|
function La(e) {
|
|
2480
2501
|
if (!e) return null;
|
|
2481
|
-
const t =
|
|
2502
|
+
const t = st(e.language), r = e.payload;
|
|
2482
2503
|
if (!r || typeof r != "object")
|
|
2483
|
-
return
|
|
2504
|
+
return st(e.content) ? console.warn("[sign-language] card carries `content` but no `payload`; signing media must be a structured payload, so this card is ignored") : console.warn("[sign-language] card carries no `payload`; signing media lives in `payload` (a card written against the older `signLanguage` key needs re-importing), so this card is ignored"), null;
|
|
2484
2505
|
const n = r.media;
|
|
2485
|
-
if (
|
|
2506
|
+
if (Oi(n?.version))
|
|
2486
2507
|
return console.warn(`[sign-language] card's media declares version ${String(n?.version)}, which this build does not render, so this card is ignored`), null;
|
|
2487
|
-
const i =
|
|
2508
|
+
const i = Ci(n?.sources);
|
|
2488
2509
|
if (i.length === 0) return null;
|
|
2489
|
-
const s =
|
|
2510
|
+
const s = st(n?.poster);
|
|
2490
2511
|
return {
|
|
2491
|
-
signLang:
|
|
2512
|
+
signLang: st(r.signLang) ?? t,
|
|
2492
2513
|
sources: i,
|
|
2493
|
-
poster: s &&
|
|
2494
|
-
label:
|
|
2495
|
-
fragment:
|
|
2514
|
+
poster: s && Li(s) ? s : void 0,
|
|
2515
|
+
label: st(n?.label),
|
|
2516
|
+
fragment: Ri(r.fragment)
|
|
2496
2517
|
};
|
|
2497
2518
|
}
|
|
2498
2519
|
function Oa(e, t) {
|
|
@@ -2503,7 +2524,7 @@ function Oa(e, t) {
|
|
|
2503
2524
|
function Ra(e) {
|
|
2504
2525
|
return e?.catalog === Ta;
|
|
2505
2526
|
}
|
|
2506
|
-
var Ca = /* @__PURE__ */
|
|
2527
|
+
var Ca = /* @__PURE__ */ Yr("<source/>"), Na = /* @__PURE__ */ Yr('<figure class="pie-tool-sign-language svelte-1t183cc"><video class="pie-tool-sign-language__video svelte-1t183cc" controls="" playsinline="" preload="metadata"></video> <figcaption class="pie-tool-sign-language__caption svelte-1t183cc"> </figcaption></figure>', 2), Ia = /* @__PURE__ */ Yr('<div style="display: none;" aria-hidden="true"></div> <!>', 1), Pa = {
|
|
2507
2528
|
hash: "svelte-1t183cc",
|
|
2508
2529
|
code: `:host {display:block;min-width:0;}.pie-tool-sign-language.svelte-1t183cc {display:flex;flex-direction:column;gap:0.5rem;margin:0;min-width:0;}.pie-tool-sign-language__video.svelte-1t183cc {width:100%;
|
|
2509
2530
|
/* Signing needs height for hands and face, so the recording's own frame
|
|
@@ -2513,29 +2534,29 @@ var Ca = /* @__PURE__ */ Hr("<source/>"), Na = /* @__PURE__ */ Hr('<figure class
|
|
|
2513
2534
|
unreadable. */aspect-ratio:var(--pie-section-player-item-media-aspect-ratio, 3 / 4);min-height:var(--pie-section-player-item-media-min-height, 220px);max-height:var(--pie-section-player-item-media-max-height, 60vh);object-fit:contain;border-radius:var(--pie-section-player-card-radius, 8px);background:var(--pie-blue-grey-900, #111827);}.pie-tool-sign-language__caption.svelte-1t183cc {font-size:0.8125rem;color:var(--pie-text-light, var(--pie-text, #111827));}`
|
|
2514
2535
|
};
|
|
2515
2536
|
function Wa(e, t) {
|
|
2516
|
-
|
|
2537
|
+
Tn(t, !0), va(e, Pa);
|
|
2517
2538
|
let r = $a(t, "media", 7, null), n = /* @__PURE__ */ re(null), i = /* @__PURE__ */ re(null), s = /* @__PURE__ */ re(null);
|
|
2518
|
-
const l = /* @__PURE__ */
|
|
2539
|
+
const l = /* @__PURE__ */ at(() => k(s)?.ttsService ?? null), o = /* @__PURE__ */ at(() => wn(k(s))), f = /* @__PURE__ */ at(() => Aa(r()?.signLang, k(o))), v = /* @__PURE__ */ at(() => r()?.label || k(o).t("tools.signLanguage.regionA11y", { language: k(f) })), h = /* @__PURE__ */ at(() => (r()?.sources ?? []).map((M) => ({
|
|
2519
2540
|
...M,
|
|
2520
|
-
src:
|
|
2541
|
+
src: xi(M.src, r()?.fragment)
|
|
2521
2542
|
})));
|
|
2522
|
-
|
|
2523
|
-
if (
|
|
2524
|
-
return
|
|
2543
|
+
lr(() => {
|
|
2544
|
+
if (k(i))
|
|
2545
|
+
return Ei(k(i), (M) => {
|
|
2525
2546
|
X(s, M, !0);
|
|
2526
2547
|
});
|
|
2527
2548
|
});
|
|
2528
2549
|
function c() {
|
|
2529
|
-
|
|
2550
|
+
k(n) && !k(n).paused && k(n).pause();
|
|
2530
2551
|
}
|
|
2531
2552
|
function d() {
|
|
2532
|
-
|
|
2553
|
+
Mi(k(l));
|
|
2533
2554
|
}
|
|
2534
|
-
|
|
2535
|
-
if (
|
|
2536
|
-
return
|
|
2537
|
-
}),
|
|
2538
|
-
ttsService:
|
|
2555
|
+
lr(() => {
|
|
2556
|
+
if (k(n))
|
|
2557
|
+
return Ai(k(n), r()?.fragment, c);
|
|
2558
|
+
}), lr(() => Si({
|
|
2559
|
+
ttsService: k(l),
|
|
2539
2560
|
silence: c
|
|
2540
2561
|
}));
|
|
2541
2562
|
var u = {
|
|
@@ -2543,40 +2564,40 @@ function Wa(e, t) {
|
|
|
2543
2564
|
return r();
|
|
2544
2565
|
},
|
|
2545
2566
|
set media(M = null) {
|
|
2546
|
-
r(M),
|
|
2567
|
+
r(M), Pr();
|
|
2547
2568
|
}
|
|
2548
2569
|
}, p = Ia(), g = As(p);
|
|
2549
|
-
|
|
2550
|
-
var _ =
|
|
2551
|
-
var
|
|
2552
|
-
|
|
2553
|
-
var
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
}),
|
|
2557
|
-
}),
|
|
2558
|
-
var D =
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
}), Hs("play",
|
|
2570
|
+
pn(g, (M) => X(i, M), () => k(i));
|
|
2571
|
+
var _ = nn(g, 2), m = (M) => {
|
|
2572
|
+
var R = Na(), b = Kn(R);
|
|
2573
|
+
b.muted = !0, ca(b, 21, () => k(h), (j) => j.src, (j, ee) => {
|
|
2574
|
+
var Ye = Ca();
|
|
2575
|
+
sn(() => {
|
|
2576
|
+
Ve(Ye, "src", k(ee).src), Ve(Ye, "type", k(ee).type || void 0);
|
|
2577
|
+
}), Dt(j, Ye);
|
|
2578
|
+
}), pr(b), pn(b, (j) => X(n, j), () => k(n));
|
|
2579
|
+
var D = nn(b, 2), P = Ls(D, !0);
|
|
2580
|
+
pr(R), sn(() => {
|
|
2581
|
+
Ve(R, "data-pie-sign-language", r().signLang || void 0), Ve(R, "data-pie-catalog-id", r().catalogId || void 0), Ve(b, "aria-label", k(v)), Ve(b, "poster", r().poster || void 0), sa(P, k(f));
|
|
2582
|
+
}), Hs("play", b, d), Dt(M, R);
|
|
2562
2583
|
};
|
|
2563
2584
|
return fa(_, (M) => {
|
|
2564
|
-
r() &&
|
|
2565
|
-
}),
|
|
2585
|
+
r() && k(h).length > 0 && M(m);
|
|
2586
|
+
}), Dt(e, p), xn(u);
|
|
2566
2587
|
}
|
|
2567
2588
|
ja("pie-tool-sign-language", Ma(Wa, { media: { type: "Object" } }, [], [], { mode: "open" }));
|
|
2568
2589
|
function ja(e, t) {
|
|
2569
2590
|
customElements.get(e) || customElements.define(e, t);
|
|
2570
2591
|
}
|
|
2571
|
-
var
|
|
2572
|
-
function
|
|
2573
|
-
|
|
2592
|
+
var gn = /* @__PURE__ */ new Set();
|
|
2593
|
+
function wt(e, t) {
|
|
2594
|
+
gn.has(e) || (gn.add(e), console.warn(`[pie-tool-sign-language] ${t}`));
|
|
2574
2595
|
}
|
|
2575
|
-
var
|
|
2596
|
+
var mt = "signLanguage";
|
|
2576
2597
|
function el(e) {
|
|
2577
|
-
return yi(
|
|
2598
|
+
return bi(yi(e.catalogs).candidates, e.requestedSignLang);
|
|
2578
2599
|
}
|
|
2579
|
-
function
|
|
2600
|
+
function yi(e) {
|
|
2580
2601
|
let t = 0;
|
|
2581
2602
|
const r = e.cards.flatMap(({ catalogId: n, card: i }) => {
|
|
2582
2603
|
if (!Ra(i)) return [];
|
|
@@ -2592,7 +2613,7 @@ function mi(e) {
|
|
|
2592
2613
|
candidates: r
|
|
2593
2614
|
};
|
|
2594
2615
|
}
|
|
2595
|
-
function
|
|
2616
|
+
function bi(e, t) {
|
|
2596
2617
|
const r = t?.trim() || "ase";
|
|
2597
2618
|
for (const n of e)
|
|
2598
2619
|
if (n.media.signLang && Oa(n.media, r))
|
|
@@ -2615,19 +2636,19 @@ function Fa(e) {
|
|
|
2615
2636
|
}
|
|
2616
2637
|
function Da(e) {
|
|
2617
2638
|
if (!e.catalogs)
|
|
2618
|
-
return
|
|
2619
|
-
const t = Fa(e.parameters) ?? "ase", { signingCardCount: r, candidates: n } =
|
|
2639
|
+
return wt("no-catalogs", `"${mt}" resolved no signed alternate: the host has no accessibility catalog resolver for this content, so no sign-language card can be read.`), null;
|
|
2640
|
+
const t = Fa(e.parameters) ?? "ase", { signingCardCount: r, candidates: n } = yi(e.catalogs), i = bi(n, t);
|
|
2620
2641
|
if (i) return i;
|
|
2621
2642
|
if (r === 0) return null;
|
|
2622
|
-
if (n.length === 0)
|
|
2643
|
+
if (n.length === 0) wt("unplayable-cards", `"${mt}" resolved no signed alternate: the content carries sign-language cards, but none has playable media.`);
|
|
2623
2644
|
else {
|
|
2624
2645
|
const s = [...new Set(n.map(({ media: l }) => l.signLang).filter(Boolean))].join(", ");
|
|
2625
|
-
|
|
2646
|
+
wt(`language-mismatch.${t}`, `"${mt}" resolved no signed alternate: the learner is entitled to "${t}", the content carries only "${s}", and another sign language is never substituted.`);
|
|
2626
2647
|
}
|
|
2627
2648
|
return null;
|
|
2628
2649
|
}
|
|
2629
|
-
var Ga = "content-media", qa = "pie-tool-sign-language", Ua = { [
|
|
2630
|
-
toolId:
|
|
2650
|
+
var Ga = "content-media", qa = "pie-tool-sign-language", Ua = { [mt]: qa }, tl = {
|
|
2651
|
+
toolId: mt,
|
|
2631
2652
|
name: "Sign Language",
|
|
2632
2653
|
description: "Signed translation, docked beside the content it interprets",
|
|
2633
2654
|
supportedLevels: ["item", "passage"],
|
|
@@ -2639,8 +2660,8 @@ var Ga = "content-media", qa = "pie-tool-sign-language", Ua = { [gt]: qa }, tl =
|
|
|
2639
2660
|
renderSurface(e) {
|
|
2640
2661
|
const t = e.content;
|
|
2641
2662
|
if (!t)
|
|
2642
|
-
return
|
|
2643
|
-
const r = e.componentOverrides ?? {}, n =
|
|
2663
|
+
return wt(`render-without-content.${e.surface}`, `Tool "${e.toolId}" rendered nothing into the "${e.surface}" surface: its render context carries no resolved signed alternate. Resolve requiresAuthoredContent first and render only when it returns content.`), null;
|
|
2664
|
+
const r = e.componentOverrides ?? {}, n = Ti(e.toolId, {
|
|
2644
2665
|
...r,
|
|
2645
2666
|
toolTagMap: {
|
|
2646
2667
|
...Ua,
|
|
@@ -2648,7 +2669,7 @@ var Ga = "content-media", qa = "pie-tool-sign-language", Ua = { [gt]: qa }, tl =
|
|
|
2648
2669
|
}
|
|
2649
2670
|
});
|
|
2650
2671
|
if (typeof customElements < "u" && !customElements.get(n))
|
|
2651
|
-
return
|
|
2672
|
+
return wt(`undefined-tag.${n}`, `Tool "${e.toolId}" renders <${n}>, which is undefined, so the "${e.surface}" surface stays empty. Define the element before the surface renders, or map the tool to a defined tag.`), null;
|
|
2652
2673
|
const i = document.createElement(n), s = (l) => {
|
|
2653
2674
|
i.media = l.content;
|
|
2654
2675
|
};
|
|
@@ -2664,7 +2685,7 @@ export {
|
|
|
2664
2685
|
Ga as CONTENT_MEDIA_SURFACE,
|
|
2665
2686
|
Ta as SIGN_LANGUAGE_CATALOG_TYPE,
|
|
2666
2687
|
qa as SIGN_LANGUAGE_ELEMENT_TAG,
|
|
2667
|
-
|
|
2688
|
+
mt as SIGN_LANGUAGE_FEATURE_ID,
|
|
2668
2689
|
Ua as SIGN_LANGUAGE_TOOL_TAG_MAP,
|
|
2669
2690
|
Aa as describeSignLanguage,
|
|
2670
2691
|
Ra as isSignLanguageCard,
|