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