@pie-element/element-player 0.1.2-next.12 → 0.1.2-next.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/dist/pie-element-player.js +666 -654
- package/package.json +2 -2
|
@@ -17,48 +17,48 @@ function g() {
|
|
|
17
17
|
reject: t
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
var _ = 1024, v = 2048, y = 4096, b = 8192, ee = 16384, x = 32768, te = 1 << 25, ne = 65536, S = 1 << 19, C = 1 << 20, re = 1 << 21, w = 1 << 22,
|
|
20
|
+
var _ = 1024, v = 2048, y = 4096, b = 8192, ee = 16384, x = 32768, te = 1 << 25, ne = 65536, S = 1 << 19, C = 1 << 20, re = 1 << 21, w = 1 << 22, ie = 1 << 23, ae = Symbol("$state"), oe = Symbol("component"), se = Symbol("legacy props"), ce = Symbol("attributes"), le = Symbol("class"), ue = Symbol("style"), de = Symbol("text"), fe = new class extends Error {
|
|
21
21
|
name = "StaleReactionError";
|
|
22
22
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
23
23
|
}();
|
|
24
24
|
globalThis.document?.contentType;
|
|
25
|
-
function
|
|
25
|
+
function pe() {
|
|
26
26
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function me(e) {
|
|
29
29
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function he() {
|
|
32
32
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
33
33
|
}
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/hydration.js
|
|
36
|
-
var
|
|
37
|
-
function
|
|
38
|
-
|
|
36
|
+
var T = !1;
|
|
37
|
+
function ge(e) {
|
|
38
|
+
T = e;
|
|
39
39
|
}
|
|
40
|
-
var
|
|
41
|
-
function
|
|
42
|
-
if (e === null) throw
|
|
43
|
-
return
|
|
40
|
+
var E;
|
|
41
|
+
function D(e) {
|
|
42
|
+
if (e === null) throw me(), t;
|
|
43
|
+
return E = e;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
return
|
|
45
|
+
function _e() {
|
|
46
|
+
return D(/* @__PURE__ */ Ut(E));
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
if (
|
|
50
|
-
if (/* @__PURE__ */
|
|
51
|
-
|
|
48
|
+
function ve(e) {
|
|
49
|
+
if (T) {
|
|
50
|
+
if (/* @__PURE__ */ Ut(E) !== null) throw me(), t;
|
|
51
|
+
E = e;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
if (
|
|
56
|
-
for (var t = e, n =
|
|
57
|
-
|
|
54
|
+
function ye(e = 1) {
|
|
55
|
+
if (T) {
|
|
56
|
+
for (var t = e, n = E; t--;) n = /* @__PURE__ */ Ut(n);
|
|
57
|
+
E = n;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
for (var t = 0, n =
|
|
60
|
+
function be(e = !0) {
|
|
61
|
+
for (var t = 0, n = E;;) {
|
|
62
62
|
if (n.nodeType === 8) {
|
|
63
63
|
var r = n.data;
|
|
64
64
|
if (r === "]") {
|
|
@@ -66,234 +66,234 @@ function M(e = !0) {
|
|
|
66
66
|
--t;
|
|
67
67
|
} else (r === "[" || r === "[!" || r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
|
|
68
68
|
}
|
|
69
|
-
var i = /* @__PURE__ */
|
|
69
|
+
var i = /* @__PURE__ */ Ut(n);
|
|
70
70
|
e && n.remove(), n = i;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
if (!e || e.nodeType !== 8) throw
|
|
73
|
+
function O(e) {
|
|
74
|
+
if (!e || e.nodeType !== 8) throw me(), t;
|
|
75
75
|
return e.data;
|
|
76
76
|
}
|
|
77
77
|
//#endregion
|
|
78
78
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/equality.js
|
|
79
|
-
function
|
|
79
|
+
function k(e) {
|
|
80
80
|
return e === this.v;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function xe(e, t) {
|
|
83
83
|
return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
return !
|
|
85
|
+
function Se(e) {
|
|
86
|
+
return !xe(e, this.v);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Ce(e) {
|
|
89
89
|
throw Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
90
90
|
}
|
|
91
91
|
//#endregion
|
|
92
92
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/errors.js
|
|
93
|
-
function
|
|
93
|
+
function we() {
|
|
94
94
|
throw Error("https://svelte.dev/e/async_derived_orphan");
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Te(e) {
|
|
97
97
|
throw Error("https://svelte.dev/e/effect_in_teardown");
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Ee() {
|
|
100
100
|
throw Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function De(e) {
|
|
103
103
|
throw Error("https://svelte.dev/e/effect_orphan");
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Oe() {
|
|
106
106
|
throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function ke() {
|
|
109
109
|
throw Error("https://svelte.dev/e/hydration_failed");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Ae(e) {
|
|
112
112
|
throw Error("https://svelte.dev/e/props_invalid_value");
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function je() {
|
|
115
115
|
throw Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Me() {
|
|
118
118
|
throw Error("https://svelte.dev/e/state_prototype_fixed");
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Ne() {
|
|
121
121
|
throw Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Pe() {
|
|
124
124
|
throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
125
125
|
}
|
|
126
126
|
//#endregion
|
|
127
127
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/context.js
|
|
128
|
-
var
|
|
129
|
-
function
|
|
130
|
-
|
|
128
|
+
var A = null;
|
|
129
|
+
function Fe(e) {
|
|
130
|
+
A = e;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
|
|
134
|
-
p:
|
|
132
|
+
function Ie(e, t = !1, n) {
|
|
133
|
+
A = {
|
|
134
|
+
p: A,
|
|
135
135
|
i: !1,
|
|
136
136
|
c: null,
|
|
137
137
|
e: null,
|
|
138
138
|
s: e,
|
|
139
139
|
x: null,
|
|
140
|
-
r:
|
|
140
|
+
r: G,
|
|
141
141
|
l: null
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
var t =
|
|
144
|
+
function Le(e) {
|
|
145
|
+
var t = A, n = t.e;
|
|
146
146
|
if (n !== null) {
|
|
147
147
|
t.e = null;
|
|
148
|
-
for (var r of n)
|
|
148
|
+
for (var r of n) rn(r);
|
|
149
149
|
}
|
|
150
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
150
|
+
return e !== void 0 && (t.x = e), t.i = !0, A = t.p, Re(e);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
return c(e,
|
|
152
|
+
function Re(e = {}) {
|
|
153
|
+
return c(e, oe, { value: !0 }), e;
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function ze() {
|
|
156
156
|
return !0;
|
|
157
157
|
}
|
|
158
158
|
//#endregion
|
|
159
159
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/task.js
|
|
160
|
-
var
|
|
161
|
-
function
|
|
162
|
-
var e =
|
|
163
|
-
|
|
164
|
-
}
|
|
165
|
-
function
|
|
166
|
-
if (
|
|
167
|
-
var t =
|
|
160
|
+
var Be = [];
|
|
161
|
+
function Ve() {
|
|
162
|
+
var e = Be;
|
|
163
|
+
Be = [], h(e);
|
|
164
|
+
}
|
|
165
|
+
function He(e) {
|
|
166
|
+
if (Be.length === 0 && !dt) {
|
|
167
|
+
var t = Be;
|
|
168
168
|
queueMicrotask(() => {
|
|
169
|
-
t ===
|
|
169
|
+
t === Be && Ve();
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
|
|
172
|
+
Be.push(e);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
for (;
|
|
174
|
+
function Ue() {
|
|
175
|
+
for (; Be.length > 0;) Ve();
|
|
176
176
|
}
|
|
177
177
|
//#endregion
|
|
178
178
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/status.js
|
|
179
|
-
var
|
|
180
|
-
function
|
|
181
|
-
e.f = e.f &
|
|
179
|
+
var We = ~(v | y | _);
|
|
180
|
+
function j(e, t) {
|
|
181
|
+
e.f = e.f & We | t;
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
e.f & 512 || e.deps === null ?
|
|
183
|
+
function Ge(e) {
|
|
184
|
+
e.f & 512 || e.deps === null ? j(e, _) : j(e, y);
|
|
185
185
|
}
|
|
186
186
|
//#endregion
|
|
187
187
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/utils.js
|
|
188
|
-
function
|
|
189
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e),
|
|
188
|
+
function Ke(e, t, n) {
|
|
189
|
+
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), j(e, _);
|
|
190
190
|
}
|
|
191
191
|
//#endregion
|
|
192
192
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
|
|
193
|
-
function
|
|
194
|
-
var t =
|
|
195
|
-
|
|
193
|
+
function qe(e) {
|
|
194
|
+
var t = H, n = G;
|
|
195
|
+
W(null), K(null);
|
|
196
196
|
try {
|
|
197
197
|
return e();
|
|
198
198
|
} finally {
|
|
199
|
-
|
|
199
|
+
W(t), K(n);
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
//#endregion
|
|
203
203
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/async.js
|
|
204
|
-
function
|
|
205
|
-
let i =
|
|
204
|
+
function Je(e, t, n, r) {
|
|
205
|
+
let i = ze() ? Qe : nt;
|
|
206
206
|
var a = e.filter((e) => !e.settled), o = t.map(i);
|
|
207
207
|
if (n.length === 0 && a.length === 0) {
|
|
208
208
|
r(o);
|
|
209
209
|
return;
|
|
210
210
|
}
|
|
211
|
-
var s =
|
|
211
|
+
var s = G, c = Ye(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
|
|
212
212
|
function u(e) {
|
|
213
213
|
if (!(s.f & 16384)) {
|
|
214
214
|
c();
|
|
215
215
|
try {
|
|
216
216
|
r([...o, ...e]);
|
|
217
217
|
} catch (e) {
|
|
218
|
-
|
|
218
|
+
z(e, s);
|
|
219
219
|
}
|
|
220
|
-
|
|
220
|
+
Xe();
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
var d =
|
|
223
|
+
var d = Ze();
|
|
224
224
|
if (n.length === 0) {
|
|
225
225
|
l.then(() => u([])).finally(d);
|
|
226
226
|
return;
|
|
227
227
|
}
|
|
228
228
|
function f() {
|
|
229
|
-
Promise.all(n.map((e) => /* @__PURE__ */
|
|
229
|
+
Promise.all(n.map((e) => /* @__PURE__ */ et(e))).then(u).catch((e) => z(e, s)).finally(d);
|
|
230
230
|
}
|
|
231
231
|
l ? l.then(() => {
|
|
232
|
-
c(), f(),
|
|
232
|
+
c(), f(), Xe();
|
|
233
233
|
}) : f();
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
var e =
|
|
235
|
+
function Ye() {
|
|
236
|
+
var e = G, t = H, n = A, r = M;
|
|
237
237
|
return function(i = !0) {
|
|
238
|
-
|
|
238
|
+
K(e), W(t), Fe(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
|
-
function
|
|
242
|
-
|
|
241
|
+
function Xe(e = !0) {
|
|
242
|
+
K(null), W(null), Fe(null), e && M?.deactivate();
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
var e =
|
|
244
|
+
function Ze() {
|
|
245
|
+
var e = G, t = e.b, n = M, r = !!t?.is_rendered();
|
|
246
246
|
return t?.update_pending_count(1, n), n.increment(r, e), () => {
|
|
247
247
|
t?.update_pending_count(-1, n), n.decrement(r, e);
|
|
248
248
|
};
|
|
249
249
|
}
|
|
250
250
|
/*#__NO_SIDE_EFFECTS__*/
|
|
251
|
-
function
|
|
251
|
+
function Qe(e) {
|
|
252
252
|
var t = 2 | v;
|
|
253
|
-
return
|
|
254
|
-
ctx:
|
|
253
|
+
return G !== null && (G.f |= S), {
|
|
254
|
+
ctx: A,
|
|
255
255
|
deps: null,
|
|
256
256
|
effects: null,
|
|
257
|
-
equals:
|
|
257
|
+
equals: k,
|
|
258
258
|
f: t,
|
|
259
259
|
fn: e,
|
|
260
260
|
reactions: null,
|
|
261
261
|
rv: 0,
|
|
262
262
|
v: n,
|
|
263
263
|
wv: 0,
|
|
264
|
-
parent:
|
|
264
|
+
parent: G,
|
|
265
265
|
ac: null
|
|
266
266
|
};
|
|
267
267
|
}
|
|
268
|
-
var
|
|
268
|
+
var $e = Symbol("obsolete");
|
|
269
269
|
/*#__NO_SIDE_EFFECTS__*/
|
|
270
|
-
function
|
|
271
|
-
let i =
|
|
272
|
-
i === null &&
|
|
273
|
-
var a = void 0, o =
|
|
274
|
-
return
|
|
275
|
-
var t =
|
|
270
|
+
function et(e, t, r) {
|
|
271
|
+
let i = G;
|
|
272
|
+
i === null && we();
|
|
273
|
+
var a = void 0, o = Dt(n), s = !H, c = /* @__PURE__ */ new Set();
|
|
274
|
+
return cn(() => {
|
|
275
|
+
var t = G, n = g();
|
|
276
276
|
a = n.promise;
|
|
277
277
|
try {
|
|
278
278
|
Promise.resolve(e()).then(n.resolve, (e) => {
|
|
279
|
-
e !==
|
|
280
|
-
}).finally(
|
|
279
|
+
e !== fe && n.reject(e);
|
|
280
|
+
}).finally(Xe);
|
|
281
281
|
} catch (e) {
|
|
282
|
-
n.reject(e),
|
|
282
|
+
n.reject(e), Xe();
|
|
283
283
|
}
|
|
284
|
-
var r =
|
|
284
|
+
var r = M;
|
|
285
285
|
if (s) {
|
|
286
|
-
if (t.f & 32768) var l =
|
|
287
|
-
if (i.b?.is_rendered()) r.async_deriveds.get(t)?.reject(
|
|
288
|
-
else for (let e of c.values()) e.reject(
|
|
286
|
+
if (t.f & 32768) var l = Ze();
|
|
287
|
+
if (i.b?.is_rendered()) r.async_deriveds.get(t)?.reject($e);
|
|
288
|
+
else for (let e of c.values()) e.reject($e);
|
|
289
289
|
c.add(n), r.async_deriveds.set(t, n);
|
|
290
290
|
}
|
|
291
291
|
let u = (e, t = void 0) => {
|
|
292
|
-
l?.(), c.delete(n), t !==
|
|
292
|
+
l?.(), c.delete(n), t !== $e && (r.activate(), t ? (o.f |= ie, jt(o, t)) : (o.f & 8388608 && (o.f ^= ie), jt(o, e)), r.deactivate());
|
|
293
293
|
};
|
|
294
294
|
n.promise.then(u, (e) => u(null, e || "unknown"));
|
|
295
|
-
}),
|
|
296
|
-
for (let e of c) e.reject(
|
|
295
|
+
}), tn(() => {
|
|
296
|
+
for (let e of c) e.reject($e);
|
|
297
297
|
}), new Promise((e) => {
|
|
298
298
|
function t(n) {
|
|
299
299
|
function r() {
|
|
@@ -305,53 +305,53 @@ function Ze(e, t, r) {
|
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
307
|
/*#__NO_SIDE_EFFECTS__*/
|
|
308
|
-
function
|
|
309
|
-
let t = /* @__PURE__ */
|
|
308
|
+
function tt(e) {
|
|
309
|
+
let t = /* @__PURE__ */ Qe(e);
|
|
310
310
|
return Dn(t), t;
|
|
311
311
|
}
|
|
312
312
|
/*#__NO_SIDE_EFFECTS__*/
|
|
313
|
-
function
|
|
314
|
-
let t = /* @__PURE__ */
|
|
315
|
-
return t.equals =
|
|
313
|
+
function nt(e) {
|
|
314
|
+
let t = /* @__PURE__ */ Qe(e);
|
|
315
|
+
return t.equals = Se, t;
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function rt(e) {
|
|
318
318
|
var t = e.effects;
|
|
319
319
|
if (t !== null) {
|
|
320
320
|
e.effects = null;
|
|
321
|
-
for (var n = 0; n < t.length; n += 1)
|
|
321
|
+
for (var n = 0; n < t.length; n += 1) V(t[n]);
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
|
-
function
|
|
325
|
-
var t, r =
|
|
326
|
-
if (!
|
|
327
|
-
|
|
324
|
+
function it(e) {
|
|
325
|
+
var t, r = G, i = e.parent;
|
|
326
|
+
if (!Tn && i !== null && e.v !== n && i.f & 24576) return pe(), e.v;
|
|
327
|
+
K(i);
|
|
328
328
|
try {
|
|
329
|
-
|
|
329
|
+
rt(e), t = In(e);
|
|
330
330
|
} finally {
|
|
331
|
-
|
|
331
|
+
K(r);
|
|
332
332
|
}
|
|
333
333
|
return t;
|
|
334
334
|
}
|
|
335
|
-
function
|
|
336
|
-
var t =
|
|
337
|
-
if (!e.equals(t) && (e.wv = Nn(), (!
|
|
338
|
-
|
|
335
|
+
function at(e) {
|
|
336
|
+
var t = it(e);
|
|
337
|
+
if (!e.equals(t) && (e.wv = Nn(), (!M?.is_fork || e.deps === null) && (M === null ? e.v = t : (M.capture(e, t, !0), lt?.capture(e, t, !0)), e.deps === null))) {
|
|
338
|
+
j(e, _);
|
|
339
339
|
return;
|
|
340
340
|
}
|
|
341
|
-
|
|
341
|
+
Tn || (N === null ? Ge(e) : (en() || M?.is_fork) && N.set(e, t));
|
|
342
342
|
}
|
|
343
|
-
function
|
|
344
|
-
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null &&
|
|
345
|
-
t.ac.abort(
|
|
346
|
-
}), t.fn !== null && (t.teardown = m), zn(t, 0),
|
|
343
|
+
function ot(e) {
|
|
344
|
+
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && qe(() => {
|
|
345
|
+
t.ac.abort(fe), t.ac = null;
|
|
346
|
+
}), t.fn !== null && (t.teardown = m), zn(t, 0), mn(t));
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function st(e) {
|
|
349
349
|
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Bn(t);
|
|
350
350
|
}
|
|
351
351
|
//#endregion
|
|
352
352
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/batch.js
|
|
353
|
-
var
|
|
354
|
-
id =
|
|
353
|
+
var ct = null, M = null, lt = null, N = null, ut = null, dt = !1, ft = !1, pt = null, mt = null, ht = 0, gt = 1, _t = class e {
|
|
354
|
+
id = gt++;
|
|
355
355
|
#e = !1;
|
|
356
356
|
linked = !0;
|
|
357
357
|
#t = null;
|
|
@@ -373,7 +373,7 @@ var at = null, F = null, ot = null, I = null, st = null, ct = !1, lt = !1, ut =
|
|
|
373
373
|
is_fork = !1;
|
|
374
374
|
#m = !1;
|
|
375
375
|
constructor() {
|
|
376
|
-
|
|
376
|
+
ct === null ? ct = this : (ct.#n = this, this.#t = ct), ct = this;
|
|
377
377
|
}
|
|
378
378
|
#h() {
|
|
379
379
|
if (this.is_fork) return !0;
|
|
@@ -399,8 +399,8 @@ var at = null, F = null, ot = null, I = null, st = null, ct = !1, lt = !1, ut =
|
|
|
399
399
|
var n = this.#f.get(e);
|
|
400
400
|
if (n) {
|
|
401
401
|
this.#f.delete(e);
|
|
402
|
-
for (var r of n.d)
|
|
403
|
-
for (r of n.m)
|
|
402
|
+
for (var r of n.d) j(r, v), t(r);
|
|
403
|
+
for (r of n.m) j(r, y), t(r);
|
|
404
404
|
}
|
|
405
405
|
this.#p.add(e);
|
|
406
406
|
}
|
|
@@ -424,25 +424,25 @@ var at = null, F = null, ot = null, I = null, st = null, ct = !1, lt = !1, ut =
|
|
|
424
424
|
}
|
|
425
425
|
#_() {
|
|
426
426
|
this.#e = !0;
|
|
427
|
-
for (let e of this.#u) this.#d.delete(e),
|
|
428
|
-
for (let e of this.#d)
|
|
427
|
+
for (let e of this.#u) this.#d.delete(e), j(e, v), this.schedule(e);
|
|
428
|
+
for (let e of this.#d) j(e, y), this.schedule(e);
|
|
429
429
|
this.apply();
|
|
430
|
-
for (var t =
|
|
431
|
-
|
|
430
|
+
for (var t = pt = [], n = [], r = mt = []; this.#c.length > 0;) {
|
|
431
|
+
ht++ > 1e3 && (this.#S(), vt());
|
|
432
432
|
for (let e of this.#g()) try {
|
|
433
433
|
this.#v(e, t, n);
|
|
434
434
|
} catch (t) {
|
|
435
|
-
throw
|
|
435
|
+
throw wt(e), this.#h() || this.discard(), t;
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
|
-
if (
|
|
438
|
+
if (M = null, r.length > 0) {
|
|
439
439
|
var i = e.ensure();
|
|
440
440
|
for (let e of r) i.schedule(e);
|
|
441
441
|
}
|
|
442
|
-
if (
|
|
442
|
+
if (pt = null, mt = null, this.#h()) {
|
|
443
443
|
this.#x(n), this.#x(t);
|
|
444
|
-
for (let [e, t] of this.#f)
|
|
445
|
-
r.length > 0 &&
|
|
444
|
+
for (let [e, t] of this.#f) Ct(e, t);
|
|
445
|
+
r.length > 0 && M.#_();
|
|
446
446
|
return;
|
|
447
447
|
}
|
|
448
448
|
let a = this.#y();
|
|
@@ -452,13 +452,13 @@ var at = null, F = null, ot = null, I = null, st = null, ct = !1, lt = !1, ut =
|
|
|
452
452
|
}
|
|
453
453
|
this.#u.clear(), this.#d.clear();
|
|
454
454
|
for (let e of this.#r) e(this);
|
|
455
|
-
this.#r.clear(),
|
|
456
|
-
var o =
|
|
455
|
+
this.#r.clear(), lt = this, yt(n), yt(t), lt = null, this.#s?.resolve();
|
|
456
|
+
var o = M;
|
|
457
457
|
if (this.#a === 0 && (this.#c.length === 0 || o !== null) && this.#S(), this.#c.length > 0) if (o !== null) {
|
|
458
458
|
for (let e of this.#c) o.#c.push(e);
|
|
459
459
|
this.#c = [];
|
|
460
460
|
} else o = this;
|
|
461
|
-
o !== null && (
|
|
461
|
+
o !== null && (I.clear(), o.#_());
|
|
462
462
|
}
|
|
463
463
|
#v(e, t, n) {
|
|
464
464
|
e.f ^= _;
|
|
@@ -505,36 +505,36 @@ var at = null, F = null, ot = null, I = null, st = null, ct = !1, lt = !1, ut =
|
|
|
505
505
|
if (r & 2) t(e);
|
|
506
506
|
else {
|
|
507
507
|
var i = e;
|
|
508
|
-
r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i),
|
|
508
|
+
r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), j(i, v), this.schedule(i));
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
};
|
|
512
512
|
for (let e of this.current.keys()) t(e);
|
|
513
|
-
this.oncommit(() => e.discard()), e.#S(),
|
|
513
|
+
this.oncommit(() => e.discard()), e.#S(), M = this, this.#_();
|
|
514
514
|
}
|
|
515
515
|
#x(e) {
|
|
516
|
-
for (var t = 0; t < e.length; t += 1)
|
|
516
|
+
for (var t = 0; t < e.length; t += 1) Ke(e[t], this.#u, this.#d);
|
|
517
517
|
}
|
|
518
518
|
capture(e, t, r = !1) {
|
|
519
|
-
e.v !== n && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, r]),
|
|
519
|
+
e.v !== n && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, r]), N?.set(e, t)), this.is_fork || (e.v = t);
|
|
520
520
|
}
|
|
521
521
|
activate() {
|
|
522
|
-
|
|
522
|
+
M = this;
|
|
523
523
|
}
|
|
524
524
|
deactivate() {
|
|
525
|
-
|
|
525
|
+
M = null, N = null;
|
|
526
526
|
}
|
|
527
527
|
flush() {
|
|
528
528
|
try {
|
|
529
|
-
|
|
529
|
+
ft = !0, M = this, this.#_();
|
|
530
530
|
} finally {
|
|
531
|
-
|
|
531
|
+
ht = 0, ut = null, pt = null, mt = null, ft = !1, M = null, N = null, I.clear();
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
discard() {
|
|
535
535
|
for (let e of this.#i) e(this);
|
|
536
536
|
this.#i.clear();
|
|
537
|
-
for (let e of this.async_deriveds.values()) e.reject(
|
|
537
|
+
for (let e of this.async_deriveds.values()) e.reject($e);
|
|
538
538
|
this.#S(), this.#s?.resolve();
|
|
539
539
|
}
|
|
540
540
|
register_created_effect(e) {
|
|
@@ -551,7 +551,7 @@ var at = null, F = null, ot = null, I = null, st = null, ct = !1, lt = !1, ut =
|
|
|
551
551
|
let e = this.#o.get(t) ?? 0;
|
|
552
552
|
e === 1 ? this.#o.delete(t) : this.#o.set(t, e - 1);
|
|
553
553
|
}
|
|
554
|
-
this.#m || (this.#m = !0,
|
|
554
|
+
this.#m || (this.#m = !0, He(() => {
|
|
555
555
|
this.#m = !1, this.linked && this.flush();
|
|
556
556
|
}));
|
|
557
557
|
}
|
|
@@ -570,19 +570,19 @@ var at = null, F = null, ot = null, I = null, st = null, ct = !1, lt = !1, ut =
|
|
|
570
570
|
return (this.#s ??= g()).promise;
|
|
571
571
|
}
|
|
572
572
|
static ensure() {
|
|
573
|
-
if (
|
|
574
|
-
let t =
|
|
575
|
-
!
|
|
573
|
+
if (M === null) {
|
|
574
|
+
let t = M = new e();
|
|
575
|
+
!ft && !dt && He(() => {
|
|
576
576
|
t.#e || t.flush();
|
|
577
577
|
});
|
|
578
578
|
}
|
|
579
|
-
return
|
|
579
|
+
return M;
|
|
580
580
|
}
|
|
581
581
|
apply() {
|
|
582
|
-
|
|
582
|
+
N = null;
|
|
583
583
|
}
|
|
584
584
|
schedule(e) {
|
|
585
|
-
if (
|
|
585
|
+
if (ut = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
|
|
586
586
|
e.b.defer_effect(e);
|
|
587
587
|
return;
|
|
588
588
|
}
|
|
@@ -591,124 +591,124 @@ var at = null, F = null, ot = null, I = null, st = null, ct = !1, lt = !1, ut =
|
|
|
591
591
|
#S() {
|
|
592
592
|
if (this.linked) {
|
|
593
593
|
var e = this.#t, t = this.#n;
|
|
594
|
-
e === null || (e.#n = t), t === null ?
|
|
594
|
+
e === null || (e.#n = t), t === null ? ct = e : t.#t = e, this.linked = !1;
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
597
|
};
|
|
598
|
-
function
|
|
599
|
-
var t =
|
|
600
|
-
|
|
598
|
+
function P(e) {
|
|
599
|
+
var t = dt;
|
|
600
|
+
dt = !0;
|
|
601
601
|
try {
|
|
602
602
|
var n;
|
|
603
|
-
for (e && (
|
|
604
|
-
if (
|
|
605
|
-
|
|
603
|
+
for (e && (M !== null && !M.is_fork && M.flush(), n = e());;) {
|
|
604
|
+
if (Ue(), M === null) return n;
|
|
605
|
+
M.flush();
|
|
606
606
|
}
|
|
607
607
|
} finally {
|
|
608
|
-
|
|
608
|
+
dt = t;
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function vt() {
|
|
612
612
|
try {
|
|
613
|
-
|
|
613
|
+
Oe();
|
|
614
614
|
} catch (e) {
|
|
615
|
-
|
|
615
|
+
z(e, ut);
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
var
|
|
619
|
-
function
|
|
618
|
+
var F = null;
|
|
619
|
+
function yt(e) {
|
|
620
620
|
var t = e.length;
|
|
621
621
|
if (t !== 0) {
|
|
622
622
|
for (var n = 0; n < t;) {
|
|
623
623
|
var r = e[n++];
|
|
624
|
-
if (!(r.f & 24576) && Pn(r) && (
|
|
625
|
-
|
|
626
|
-
for (let e of
|
|
624
|
+
if (!(r.f & 24576) && Pn(r) && (F = /* @__PURE__ */ new Set(), Bn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && _n(r), F?.size > 0)) {
|
|
625
|
+
I.clear();
|
|
626
|
+
for (let e of F) {
|
|
627
627
|
if (e.f & 24576) continue;
|
|
628
628
|
let t = [e], n = e.parent;
|
|
629
|
-
for (; n !== null;)
|
|
629
|
+
for (; n !== null;) F.has(n) && (F.delete(n), t.push(n)), n = n.parent;
|
|
630
630
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
631
631
|
let n = t[e];
|
|
632
632
|
n.f & 24576 || Bn(n);
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
|
-
|
|
635
|
+
F.clear();
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
|
-
|
|
638
|
+
F = null;
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function bt(e, t, n, r) {
|
|
642
642
|
if (!n.has(e) && (n.add(e), e.reactions !== null)) for (let i of e.reactions) {
|
|
643
643
|
let e = i.f;
|
|
644
|
-
e & 2 ?
|
|
644
|
+
e & 2 ? bt(i, t, n, r) : e & 4194320 && !(e & 2048) && xt(i, t, r) && (j(i, v), St(i));
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
|
-
function
|
|
647
|
+
function xt(e, t, n) {
|
|
648
648
|
let r = n.get(e);
|
|
649
649
|
if (r !== void 0) return r;
|
|
650
650
|
if (e.deps !== null) for (let r of e.deps) {
|
|
651
651
|
if (a.call(t, r)) return !0;
|
|
652
|
-
if (r.f & 2 &&
|
|
652
|
+
if (r.f & 2 && xt(r, t, n)) return n.set(r, !0), !0;
|
|
653
653
|
}
|
|
654
654
|
return n.set(e, !1), !1;
|
|
655
655
|
}
|
|
656
|
-
function
|
|
657
|
-
|
|
656
|
+
function St(e) {
|
|
657
|
+
M.schedule(e);
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function Ct(e, t) {
|
|
660
660
|
if (!(e.f & 32 && e.f & 1024)) {
|
|
661
|
-
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e),
|
|
662
|
-
for (var n = e.first; n !== null;)
|
|
661
|
+
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), j(e, _);
|
|
662
|
+
for (var n = e.first; n !== null;) Ct(n, t), n = n.next;
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
|
-
function
|
|
666
|
-
|
|
667
|
-
for (var t = e.first; t !== null;)
|
|
665
|
+
function wt(e) {
|
|
666
|
+
j(e, _);
|
|
667
|
+
for (var t = e.first; t !== null;) wt(t), t = t.next;
|
|
668
668
|
}
|
|
669
669
|
//#endregion
|
|
670
670
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/sources.js
|
|
671
|
-
var
|
|
672
|
-
function
|
|
671
|
+
var Tt = /* @__PURE__ */ new Set(), I = /* @__PURE__ */ new Map(), Et = !1;
|
|
672
|
+
function Dt(e, t) {
|
|
673
673
|
return {
|
|
674
674
|
f: 0,
|
|
675
675
|
v: e,
|
|
676
676
|
reactions: null,
|
|
677
|
-
equals:
|
|
677
|
+
equals: k,
|
|
678
678
|
rv: 0,
|
|
679
679
|
wv: 0
|
|
680
680
|
};
|
|
681
681
|
}
|
|
682
682
|
/*#__NO_SIDE_EFFECTS__*/
|
|
683
|
-
function
|
|
684
|
-
let n =
|
|
683
|
+
function L(e, t) {
|
|
684
|
+
let n = Dt(e, t);
|
|
685
685
|
return Dn(n), n;
|
|
686
686
|
}
|
|
687
687
|
/*#__NO_SIDE_EFFECTS__*/
|
|
688
|
-
function
|
|
689
|
-
let r =
|
|
690
|
-
return t || (r.equals =
|
|
688
|
+
function Ot(e, t = !1, n = !0) {
|
|
689
|
+
let r = Dt(e);
|
|
690
|
+
return t || (r.equals = Se), r;
|
|
691
691
|
}
|
|
692
|
-
function
|
|
693
|
-
return
|
|
692
|
+
function R(e, t, n = !1) {
|
|
693
|
+
return H !== null && (!U || H.f & 131072) && ze() && H.f & 4325394 && (q === null || !q.has(e)) && Ne(), jt(e, n ? Ft(t) : t, mt);
|
|
694
694
|
}
|
|
695
|
-
var
|
|
696
|
-
function
|
|
695
|
+
var kt = null, At = 0;
|
|
696
|
+
function jt(e, t, n = null) {
|
|
697
697
|
if (!e.equals(t)) {
|
|
698
|
-
|
|
699
|
-
var r =
|
|
698
|
+
Tn ? I.set(e, t) : I.has(e) || I.set(e, e.v);
|
|
699
|
+
var r = _t.ensure();
|
|
700
700
|
if (r.capture(e, t), e.f & 2) {
|
|
701
701
|
let t = e;
|
|
702
|
-
e.f & 2048 &&
|
|
702
|
+
e.f & 2048 && it(t), N === null && Ge(t);
|
|
703
703
|
}
|
|
704
|
-
e.wv = Nn(),
|
|
704
|
+
e.wv = Nn(), kt = null, At = 0, Pt(e, v, n), kt = null, ze() && G !== null && G.f & 1024 && !(G.f & 96) && (X === null ? On([e]) : X.push(e)), !r.is_fork && Tt.size > 0 && !Et && Mt();
|
|
705
705
|
}
|
|
706
706
|
return t;
|
|
707
707
|
}
|
|
708
|
-
function
|
|
709
|
-
|
|
710
|
-
for (let e of
|
|
711
|
-
e.f & 1024 &&
|
|
708
|
+
function Mt() {
|
|
709
|
+
Et = !1;
|
|
710
|
+
for (let e of Tt) {
|
|
711
|
+
e.f & 1024 && j(e, y);
|
|
712
712
|
let t;
|
|
713
713
|
try {
|
|
714
714
|
t = Pn(e);
|
|
@@ -717,69 +717,69 @@ function At() {
|
|
|
717
717
|
}
|
|
718
718
|
t && Bn(e);
|
|
719
719
|
}
|
|
720
|
-
|
|
720
|
+
Tt.clear();
|
|
721
721
|
}
|
|
722
|
-
function
|
|
723
|
-
|
|
722
|
+
function Nt(e) {
|
|
723
|
+
R(e, e.v + 1);
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function Pt(e, t, n) {
|
|
726
726
|
var r = e.reactions;
|
|
727
727
|
if (r !== null) {
|
|
728
|
-
var i =
|
|
729
|
-
if (
|
|
730
|
-
if (
|
|
731
|
-
|
|
728
|
+
var i = ze(), a = r.length;
|
|
729
|
+
if (At += a, At > 1e5 && kt === null && (kt = /* @__PURE__ */ new Set()), kt !== null) {
|
|
730
|
+
if (kt.has(e)) return;
|
|
731
|
+
kt.add(e);
|
|
732
732
|
}
|
|
733
733
|
for (var o = 0; o < a; o++) {
|
|
734
734
|
var s = r[o], c = s.f;
|
|
735
|
-
if (!(!i && s ===
|
|
735
|
+
if (!(!i && s === G)) {
|
|
736
736
|
var l = (c & v) === 0;
|
|
737
|
-
if (l &&
|
|
737
|
+
if (l && j(s, t), c & 131072) Tt.add(s);
|
|
738
738
|
else if (c & 2) {
|
|
739
739
|
var u = s;
|
|
740
|
-
|
|
740
|
+
N?.delete(u), Pt(u, y, n);
|
|
741
741
|
} else if (l) {
|
|
742
742
|
var d = s;
|
|
743
|
-
c & 16 &&
|
|
743
|
+
c & 16 && F !== null && F.add(d), n === null ? St(d) : n.push(d);
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
746
|
}
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
|
-
function
|
|
750
|
-
if (typeof e != "object" || !e ||
|
|
749
|
+
function Ft(e) {
|
|
750
|
+
if (typeof e != "object" || !e || ae in e || oe in e) return e;
|
|
751
751
|
let t = f(e);
|
|
752
752
|
if (t !== u && t !== d) return e;
|
|
753
|
-
var i = /* @__PURE__ */ new Map(), a = r(e), o = /* @__PURE__ */
|
|
753
|
+
var i = /* @__PURE__ */ new Map(), a = r(e), o = /* @__PURE__ */ L(0), s = null, c = jn, p = (e) => {
|
|
754
754
|
if (jn === c) return e();
|
|
755
|
-
var t =
|
|
756
|
-
|
|
755
|
+
var t = H, n = jn;
|
|
756
|
+
W(null), Mn(c);
|
|
757
757
|
var r = e();
|
|
758
|
-
return
|
|
758
|
+
return W(t), Mn(n), r;
|
|
759
759
|
};
|
|
760
|
-
return a && i.set("length", /* @__PURE__ */
|
|
760
|
+
return a && i.set("length", /* @__PURE__ */ L(e.length, s)), new Proxy(e, {
|
|
761
761
|
defineProperty(e, t, n) {
|
|
762
|
-
(!("value" in n) || n.configurable === !1 || n.enumerable === !1 || n.writable === !1) &&
|
|
762
|
+
(!("value" in n) || n.configurable === !1 || n.enumerable === !1 || n.writable === !1) && je();
|
|
763
763
|
var r = i.get(t);
|
|
764
764
|
return r === void 0 ? p(() => {
|
|
765
|
-
var e = /* @__PURE__ */
|
|
765
|
+
var e = /* @__PURE__ */ L(n.value, s);
|
|
766
766
|
return i.set(t, e), e;
|
|
767
|
-
}) :
|
|
767
|
+
}) : R(r, n.value, !0), !0;
|
|
768
768
|
},
|
|
769
769
|
deleteProperty(e, t) {
|
|
770
770
|
var r = i.get(t);
|
|
771
771
|
if (r === void 0) {
|
|
772
772
|
if (t in e) {
|
|
773
|
-
let e = p(() => /* @__PURE__ */
|
|
774
|
-
i.set(t, e),
|
|
773
|
+
let e = p(() => /* @__PURE__ */ L(n, s));
|
|
774
|
+
i.set(t, e), Nt(o);
|
|
775
775
|
}
|
|
776
|
-
} else
|
|
776
|
+
} else R(r, n), Nt(o);
|
|
777
777
|
return !0;
|
|
778
778
|
},
|
|
779
779
|
get(t, r, a) {
|
|
780
|
-
if (r ===
|
|
780
|
+
if (r === ae) return e;
|
|
781
781
|
var o = i.get(r), c = r in t;
|
|
782
|
-
if (o === void 0 && (!c || l(t, r)?.writable) && (o = p(() => /* @__PURE__ */
|
|
782
|
+
if (o === void 0 && (!c || l(t, r)?.writable) && (o = p(() => /* @__PURE__ */ L(Ft(c ? t[r] : n), s)), i.set(r, o)), o !== void 0) {
|
|
783
783
|
var u = Z(o);
|
|
784
784
|
return u === n ? void 0 : u;
|
|
785
785
|
}
|
|
@@ -802,29 +802,29 @@ function Nt(e) {
|
|
|
802
802
|
return r;
|
|
803
803
|
},
|
|
804
804
|
has(e, t) {
|
|
805
|
-
if (t ===
|
|
805
|
+
if (t === ae) return !0;
|
|
806
806
|
var r = i.get(t), a = r !== void 0 && r.v !== n || Reflect.has(e, t);
|
|
807
|
-
return (r !== void 0 ||
|
|
807
|
+
return (r !== void 0 || G !== null && (!a || l(e, t)?.writable)) && (r === void 0 && (r = p(() => /* @__PURE__ */ L(a ? Ft(e[t]) : n, s)), i.set(t, r)), Z(r) === n) ? !1 : a;
|
|
808
808
|
},
|
|
809
809
|
set(e, t, r, c) {
|
|
810
810
|
var u = i.get(t), d = t in e;
|
|
811
811
|
if (a && t === "length") for (var f = r; f < u.v; f += 1) {
|
|
812
812
|
var m = i.get(f + "");
|
|
813
|
-
m === void 0 ? f in e && (m = p(() => /* @__PURE__ */
|
|
813
|
+
m === void 0 ? f in e && (m = p(() => /* @__PURE__ */ L(n, s)), i.set(f + "", m)) : R(m, n);
|
|
814
814
|
}
|
|
815
|
-
if (u === void 0) (!d || l(e, t)?.writable) && (u = p(() => /* @__PURE__ */
|
|
815
|
+
if (u === void 0) (!d || l(e, t)?.writable) && (u = p(() => /* @__PURE__ */ L(void 0, s)), R(u, Ft(r)), i.set(t, u));
|
|
816
816
|
else {
|
|
817
817
|
d = u.v !== n;
|
|
818
|
-
var h = p(() =>
|
|
819
|
-
|
|
818
|
+
var h = p(() => Ft(r));
|
|
819
|
+
R(u, h);
|
|
820
820
|
}
|
|
821
821
|
var g = Reflect.getOwnPropertyDescriptor(e, t);
|
|
822
822
|
if (g?.set && g.set.call(c, r), !d) {
|
|
823
823
|
if (a && typeof t == "string") {
|
|
824
824
|
var _ = i.get("length"), v = Number(t);
|
|
825
|
-
Number.isInteger(v) && v >= _.v &&
|
|
825
|
+
Number.isInteger(v) && v >= _.v && R(_, v + 1);
|
|
826
826
|
}
|
|
827
|
-
|
|
827
|
+
Nt(o);
|
|
828
828
|
}
|
|
829
829
|
return !0;
|
|
830
830
|
},
|
|
@@ -838,78 +838,78 @@ function Nt(e) {
|
|
|
838
838
|
return t;
|
|
839
839
|
},
|
|
840
840
|
setPrototypeOf() {
|
|
841
|
-
|
|
841
|
+
Me();
|
|
842
842
|
}
|
|
843
843
|
});
|
|
844
844
|
}
|
|
845
|
-
var
|
|
846
|
-
function
|
|
847
|
-
if (
|
|
848
|
-
|
|
845
|
+
var It, Lt, Rt, zt;
|
|
846
|
+
function Bt() {
|
|
847
|
+
if (It === void 0) {
|
|
848
|
+
It = window, Lt = /Firefox/.test(navigator.userAgent);
|
|
849
849
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
850
|
-
|
|
850
|
+
Rt = l(t, "firstChild").get, zt = l(t, "nextSibling").get, p(e) && (e[le] = void 0, e[ce] = null, e[ue] = void 0, e.__e = void 0), p(n) && (n[de] = void 0);
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function Vt(e = "") {
|
|
854
854
|
return document.createTextNode(e);
|
|
855
855
|
}
|
|
856
856
|
/*@__NO_SIDE_EFFECTS__*/
|
|
857
|
-
function
|
|
858
|
-
return
|
|
857
|
+
function Ht(e) {
|
|
858
|
+
return Rt.call(e);
|
|
859
859
|
}
|
|
860
860
|
/*@__NO_SIDE_EFFECTS__*/
|
|
861
|
-
function
|
|
862
|
-
return
|
|
861
|
+
function Ut(e) {
|
|
862
|
+
return zt.call(e);
|
|
863
863
|
}
|
|
864
|
-
function
|
|
865
|
-
if (!
|
|
866
|
-
var n = /* @__PURE__ */
|
|
867
|
-
if (n === null) n =
|
|
864
|
+
function Wt(e, t) {
|
|
865
|
+
if (!T) return /* @__PURE__ */ Ht(e);
|
|
866
|
+
var n = /* @__PURE__ */ Ht(E);
|
|
867
|
+
if (n === null) n = E.appendChild(Vt());
|
|
868
868
|
else if (t && n.nodeType !== 3) {
|
|
869
|
-
var r =
|
|
870
|
-
return n?.before(r),
|
|
869
|
+
var r = Vt();
|
|
870
|
+
return n?.before(r), D(r), r;
|
|
871
871
|
}
|
|
872
|
-
return t &&
|
|
872
|
+
return t && Xt(n), D(n), n;
|
|
873
873
|
}
|
|
874
|
-
function
|
|
875
|
-
if (!
|
|
876
|
-
var n =
|
|
877
|
-
return
|
|
874
|
+
function Gt(e, t = !1) {
|
|
875
|
+
if (!T) return /* @__PURE__ */ Ht(e);
|
|
876
|
+
var n = Wt(e, t);
|
|
877
|
+
return ve(e), n;
|
|
878
878
|
}
|
|
879
|
-
function
|
|
880
|
-
let r =
|
|
881
|
-
for (var i; t--;) i = r, r = /* @__PURE__ */
|
|
882
|
-
if (!
|
|
879
|
+
function Kt(e, t = 1, n = !1) {
|
|
880
|
+
let r = T ? E : e;
|
|
881
|
+
for (var i; t--;) i = r, r = /* @__PURE__ */ Ut(r);
|
|
882
|
+
if (!T) return r;
|
|
883
883
|
if (n) {
|
|
884
884
|
if (r?.nodeType !== 3) {
|
|
885
|
-
var a =
|
|
886
|
-
return r === null ? i?.after(a) : r.before(a),
|
|
885
|
+
var a = Vt();
|
|
886
|
+
return r === null ? i?.after(a) : r.before(a), D(a), a;
|
|
887
887
|
}
|
|
888
|
-
|
|
888
|
+
Xt(r);
|
|
889
889
|
}
|
|
890
|
-
return
|
|
890
|
+
return D(r), r;
|
|
891
891
|
}
|
|
892
|
-
function
|
|
892
|
+
function qt(e) {
|
|
893
893
|
e.textContent = "";
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function Jt() {
|
|
896
896
|
return !1;
|
|
897
897
|
}
|
|
898
|
-
function
|
|
898
|
+
function Yt(e, t, n) {
|
|
899
899
|
return t == null || t === "http://www.w3.org/1999/xhtml" ? n ? document.createElement(e, { is: n }) : document.createElement(e) : n ? document.createElementNS(t, e, { is: n }) : document.createElementNS(t, e);
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function Xt(e) {
|
|
902
902
|
if (e.nodeValue.length < 65536) return;
|
|
903
903
|
let t = e.nextSibling;
|
|
904
904
|
for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
905
905
|
}
|
|
906
|
-
function
|
|
907
|
-
var t =
|
|
908
|
-
if (t === null) return
|
|
906
|
+
function Zt(e) {
|
|
907
|
+
var t = G;
|
|
908
|
+
if (t === null) return H.f |= ie, e;
|
|
909
909
|
if (!(t.f & 32768) && !(t.f & 4)) throw e;
|
|
910
|
-
|
|
910
|
+
z(e, t);
|
|
911
911
|
}
|
|
912
|
-
function
|
|
912
|
+
function z(e, t) {
|
|
913
913
|
if (!(t !== null && t.f & 16384)) {
|
|
914
914
|
for (; t !== null;) {
|
|
915
915
|
if (t.f & 128 && !(t.f & 33570816)) {
|
|
@@ -928,18 +928,18 @@ function V(e, t) {
|
|
|
928
928
|
}
|
|
929
929
|
//#endregion
|
|
930
930
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/effects.js
|
|
931
|
-
function
|
|
932
|
-
|
|
931
|
+
function Qt(e) {
|
|
932
|
+
G === null && (H === null && De(e), Ee()), Tn && Te(e);
|
|
933
933
|
}
|
|
934
|
-
function
|
|
934
|
+
function $t(e, t) {
|
|
935
935
|
var n = t.last;
|
|
936
936
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
937
937
|
}
|
|
938
|
-
function
|
|
939
|
-
var n =
|
|
938
|
+
function B(e, t) {
|
|
939
|
+
var n = G;
|
|
940
940
|
n !== null && n.f & 8192 && (e |= b);
|
|
941
941
|
var r = {
|
|
942
|
-
ctx:
|
|
942
|
+
ctx: A,
|
|
943
943
|
deps: null,
|
|
944
944
|
nodes: null,
|
|
945
945
|
f: e | v | 512,
|
|
@@ -954,141 +954,141 @@ function H(e, t) {
|
|
|
954
954
|
wv: 0,
|
|
955
955
|
ac: null
|
|
956
956
|
};
|
|
957
|
-
|
|
957
|
+
M?.register_created_effect(r);
|
|
958
958
|
var i = r;
|
|
959
|
-
if (e & 4)
|
|
959
|
+
if (e & 4) pt === null ? _t.ensure().schedule(r) : pt.push(r);
|
|
960
960
|
else if (t !== null) {
|
|
961
961
|
try {
|
|
962
962
|
Bn(r);
|
|
963
963
|
} catch (e) {
|
|
964
|
-
throw
|
|
964
|
+
throw V(r), e;
|
|
965
965
|
}
|
|
966
966
|
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= ne));
|
|
967
967
|
}
|
|
968
|
-
if (i !== null && (i.parent = n, n !== null &&
|
|
969
|
-
var a =
|
|
968
|
+
if (i !== null && (i.parent = n, n !== null && $t(i, n), H !== null && H.f & 2 && !(e & 64))) {
|
|
969
|
+
var a = H;
|
|
970
970
|
(a.effects ??= []).push(i);
|
|
971
971
|
}
|
|
972
972
|
return r;
|
|
973
973
|
}
|
|
974
|
-
function
|
|
975
|
-
return
|
|
974
|
+
function en() {
|
|
975
|
+
return H !== null && !U;
|
|
976
976
|
}
|
|
977
|
-
function
|
|
978
|
-
let t =
|
|
979
|
-
return
|
|
977
|
+
function tn(e) {
|
|
978
|
+
let t = B(8, null);
|
|
979
|
+
return j(t, _), t.teardown = e, t;
|
|
980
980
|
}
|
|
981
|
-
function
|
|
982
|
-
|
|
983
|
-
var t =
|
|
984
|
-
if (!
|
|
985
|
-
var n =
|
|
981
|
+
function nn(e) {
|
|
982
|
+
Qt("$effect");
|
|
983
|
+
var t = G.f;
|
|
984
|
+
if (!H && t & 32 && A !== null && !A.i) {
|
|
985
|
+
var n = A;
|
|
986
986
|
(n.e ??= []).push(e);
|
|
987
|
-
} else return
|
|
987
|
+
} else return rn(e);
|
|
988
988
|
}
|
|
989
|
-
function
|
|
990
|
-
return
|
|
989
|
+
function rn(e) {
|
|
990
|
+
return B(4 | C, e);
|
|
991
991
|
}
|
|
992
|
-
function
|
|
993
|
-
|
|
994
|
-
let t =
|
|
992
|
+
function an(e) {
|
|
993
|
+
_t.ensure();
|
|
994
|
+
let t = B(64 | S, e);
|
|
995
995
|
return () => {
|
|
996
|
-
|
|
996
|
+
V(t);
|
|
997
997
|
};
|
|
998
998
|
}
|
|
999
|
-
function
|
|
1000
|
-
|
|
1001
|
-
let t =
|
|
999
|
+
function on(e) {
|
|
1000
|
+
_t.ensure();
|
|
1001
|
+
let t = B(64 | S, e);
|
|
1002
1002
|
return (e = {}) => new Promise((n) => {
|
|
1003
|
-
e.outro ?
|
|
1004
|
-
|
|
1005
|
-
}) : (
|
|
1003
|
+
e.outro ? vn(t, () => {
|
|
1004
|
+
V(t), n(void 0);
|
|
1005
|
+
}) : (V(t), n(void 0));
|
|
1006
1006
|
});
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1009
|
-
return
|
|
1008
|
+
function sn(e) {
|
|
1009
|
+
return B(4, e);
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1012
|
-
return
|
|
1011
|
+
function cn(e) {
|
|
1012
|
+
return B(w | S, e);
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1015
|
-
return
|
|
1014
|
+
function ln(e, t = 0) {
|
|
1015
|
+
return B(8 | t, e);
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1018
|
-
|
|
1019
|
-
|
|
1017
|
+
function un(e, t = [], n = [], r = []) {
|
|
1018
|
+
Je(r, t, n, (t) => {
|
|
1019
|
+
B(8, () => {
|
|
1020
1020
|
e(...t.map(Z));
|
|
1021
1021
|
});
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1025
|
-
return
|
|
1024
|
+
function dn(e, t = 0) {
|
|
1025
|
+
return B(16 | t, e);
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1028
|
-
return
|
|
1027
|
+
function fn(e) {
|
|
1028
|
+
return B(32 | S, e);
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1030
|
+
function pn(e) {
|
|
1031
1031
|
var t = e.teardown;
|
|
1032
1032
|
if (t !== null) {
|
|
1033
|
-
let n =
|
|
1034
|
-
|
|
1033
|
+
let n = Tn, r = H;
|
|
1034
|
+
En(!0), W(null);
|
|
1035
1035
|
try {
|
|
1036
1036
|
t.call(null);
|
|
1037
1037
|
} catch (t) {
|
|
1038
|
-
|
|
1038
|
+
z(t, e.parent);
|
|
1039
1039
|
} finally {
|
|
1040
|
-
|
|
1040
|
+
En(n), W(r);
|
|
1041
1041
|
}
|
|
1042
1042
|
}
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1044
|
+
function mn(e, t = !1) {
|
|
1045
1045
|
var n = e.first;
|
|
1046
1046
|
for (e.first = e.last = null; n !== null;) {
|
|
1047
1047
|
let e = n.ac;
|
|
1048
|
-
e !== null &&
|
|
1049
|
-
e.abort(
|
|
1048
|
+
e !== null && qe(() => {
|
|
1049
|
+
e.abort(fe);
|
|
1050
1050
|
});
|
|
1051
1051
|
var r = n.next;
|
|
1052
|
-
n.f & 64 ? n.parent = null :
|
|
1052
|
+
n.f & 64 ? n.parent = null : V(n, t), n = r;
|
|
1053
1053
|
}
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1055
|
+
function hn(e) {
|
|
1056
1056
|
for (var t = e.first; t !== null;) {
|
|
1057
1057
|
var n = t.next;
|
|
1058
|
-
t.f & 32 ||
|
|
1058
|
+
t.f & 32 || V(t), t = n;
|
|
1059
1059
|
}
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function V(e, t = !0) {
|
|
1062
1062
|
var n = !1;
|
|
1063
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (
|
|
1063
|
+
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (gn(e.nodes.start, e.nodes.end), n = !0), e.f |= te, mn(e, t && !n), zn(e, 0);
|
|
1064
1064
|
var r = e.nodes && e.nodes.t;
|
|
1065
1065
|
if (r !== null) for (let e of r) e.stop();
|
|
1066
|
-
|
|
1066
|
+
pn(e), e.f ^= te, e.f |= ee;
|
|
1067
1067
|
var i = e.parent;
|
|
1068
|
-
i !== null && i.first !== null &&
|
|
1068
|
+
i !== null && i.first !== null && _n(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function gn(e, t) {
|
|
1071
1071
|
for (; e !== null;) {
|
|
1072
|
-
var n = e === t ? null : /* @__PURE__ */
|
|
1072
|
+
var n = e === t ? null : /* @__PURE__ */ Ut(e);
|
|
1073
1073
|
e.remove(), e = n;
|
|
1074
1074
|
}
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1076
|
+
function _n(e) {
|
|
1077
1077
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1078
1078
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1080
|
+
function vn(e, t, n = !0) {
|
|
1081
1081
|
var r = [];
|
|
1082
|
-
e.f |= 256,
|
|
1082
|
+
e.f |= 256, yn(e, r, !0);
|
|
1083
1083
|
var i = () => {
|
|
1084
|
-
n &&
|
|
1084
|
+
n && V(e), t && t();
|
|
1085
1085
|
}, a = r.length;
|
|
1086
1086
|
if (a > 0) {
|
|
1087
1087
|
var o = () => --a || i();
|
|
1088
1088
|
for (var s of r) s.out(o);
|
|
1089
1089
|
} else i();
|
|
1090
1090
|
}
|
|
1091
|
-
function
|
|
1091
|
+
function yn(e, t, n) {
|
|
1092
1092
|
if (!(e.f & 8192)) {
|
|
1093
1093
|
e.f ^= b;
|
|
1094
1094
|
var r = e.nodes && e.nodes.t;
|
|
@@ -1097,49 +1097,49 @@ function _n(e, t, n) {
|
|
|
1097
1097
|
var a = i.next;
|
|
1098
1098
|
if (!(i.f & 64)) {
|
|
1099
1099
|
var o = (i.f & 65536) != 0 || (i.f & 32) != 0 && (e.f & 16) != 0;
|
|
1100
|
-
|
|
1100
|
+
yn(i, t, o ? n : !1);
|
|
1101
1101
|
}
|
|
1102
1102
|
i = a;
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1107
|
-
e.f &= -257,
|
|
1106
|
+
function bn(e) {
|
|
1107
|
+
e.f &= -257, xn(e, !0);
|
|
1108
1108
|
}
|
|
1109
|
-
function
|
|
1109
|
+
function xn(e, t) {
|
|
1110
1110
|
if (!(e.f & 256) && e.f & 8192) {
|
|
1111
|
-
e.f ^= b, e.f & 1024 || (
|
|
1111
|
+
e.f ^= b, e.f & 1024 || (j(e, v), _t.ensure().schedule(e));
|
|
1112
1112
|
for (var n = e.first; n !== null;) {
|
|
1113
1113
|
var r = n.next, i = (n.f & 65536) != 0 || (n.f & 32) != 0;
|
|
1114
|
-
|
|
1114
|
+
xn(n, i ? t : !1), n = r;
|
|
1115
1115
|
}
|
|
1116
1116
|
var a = e.nodes && e.nodes.t;
|
|
1117
1117
|
if (a !== null) for (let e of a) (e.is_global || t) && e.in();
|
|
1118
1118
|
}
|
|
1119
1119
|
}
|
|
1120
|
-
function
|
|
1120
|
+
function Sn(e, t) {
|
|
1121
1121
|
if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
|
|
1122
|
-
var i = n === r ? null : /* @__PURE__ */
|
|
1122
|
+
var i = n === r ? null : /* @__PURE__ */ Ut(n);
|
|
1123
1123
|
t.append(n), n = i;
|
|
1124
1124
|
}
|
|
1125
1125
|
}
|
|
1126
1126
|
//#endregion
|
|
1127
1127
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/legacy.js
|
|
1128
|
-
var
|
|
1129
|
-
function
|
|
1130
|
-
|
|
1128
|
+
var Cn = null, wn = !1, Tn = !1;
|
|
1129
|
+
function En(e) {
|
|
1130
|
+
Tn = e;
|
|
1131
|
+
}
|
|
1132
|
+
var H = null, U = !1;
|
|
1133
|
+
function W(e) {
|
|
1134
|
+
H = e;
|
|
1131
1135
|
}
|
|
1132
|
-
var
|
|
1136
|
+
var G = null;
|
|
1133
1137
|
function K(e) {
|
|
1134
|
-
|
|
1138
|
+
G = e;
|
|
1135
1139
|
}
|
|
1136
1140
|
var q = null;
|
|
1137
|
-
function Tn(e) {
|
|
1138
|
-
q = e;
|
|
1139
|
-
}
|
|
1140
|
-
var En = null;
|
|
1141
1141
|
function Dn(e) {
|
|
1142
|
-
|
|
1142
|
+
H !== null && (H.f & 2097152 || H.f & 2) && (q ??= /* @__PURE__ */ new Set()).add(e);
|
|
1143
1143
|
}
|
|
1144
1144
|
var J = null, Y = 0, X = null;
|
|
1145
1145
|
function On(e) {
|
|
@@ -1158,49 +1158,49 @@ function Pn(e) {
|
|
|
1158
1158
|
if (t & 4096) {
|
|
1159
1159
|
for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
|
|
1160
1160
|
var a = n[i];
|
|
1161
|
-
if (Pn(a) &&
|
|
1161
|
+
if (Pn(a) && at(a), a.wv > e.wv) return !0;
|
|
1162
1162
|
}
|
|
1163
|
-
t & 512 &&
|
|
1163
|
+
t & 512 && N === null && j(e, _);
|
|
1164
1164
|
}
|
|
1165
1165
|
return !1;
|
|
1166
1166
|
}
|
|
1167
1167
|
function Fn(e, t, n = !0) {
|
|
1168
1168
|
var r = e.reactions;
|
|
1169
|
-
if (r !== null && !(
|
|
1169
|
+
if (r !== null && !(q !== null && q.has(e))) for (var i = 0; i < r.length; i++) {
|
|
1170
1170
|
var a = r[i];
|
|
1171
|
-
a.f & 2 ? Fn(a, t, !1) : t === a && (n ?
|
|
1171
|
+
a.f & 2 ? Fn(a, t, !1) : t === a && (n ? j(a, v) : a.f & 1024 && j(a, y), St(a));
|
|
1172
1172
|
}
|
|
1173
1173
|
}
|
|
1174
1174
|
function In(e) {
|
|
1175
|
-
var t = J, n = Y, r = X, i =
|
|
1176
|
-
J = null, Y = 0, X = null,
|
|
1177
|
-
e.ac.abort(
|
|
1175
|
+
var t = J, n = Y, r = X, i = H, a = q, o = A, s = U, c = jn, l = e.f;
|
|
1176
|
+
J = null, Y = 0, X = null, H = l & 96 ? null : e, q = null, Fe(e.ctx), U = !1, jn = ++An, e.ac !== null && (qe(() => {
|
|
1177
|
+
e.ac.abort(fe);
|
|
1178
1178
|
}), e.ac = null);
|
|
1179
1179
|
try {
|
|
1180
1180
|
e.f |= re;
|
|
1181
1181
|
var u = e.fn, d = u();
|
|
1182
1182
|
e.f |= x;
|
|
1183
1183
|
var f = Ln(e);
|
|
1184
|
-
if (
|
|
1184
|
+
if (ze() && X !== null && !U && f !== null && !(e.f & 6146)) for (var p = 0; p < X.length; p++) Fn(X[p], e);
|
|
1185
1185
|
if (i !== null && i !== e) {
|
|
1186
1186
|
if (An++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = An;
|
|
1187
1187
|
if (t !== null) for (let e of t) e.rv = An;
|
|
1188
1188
|
X !== null && (r === null ? r = X : r.push(...X));
|
|
1189
1189
|
}
|
|
1190
|
-
return e.f & 8388608 && (e.f ^=
|
|
1190
|
+
return e.f & 8388608 && (e.f ^= ie), d;
|
|
1191
1191
|
} catch (t) {
|
|
1192
|
-
return Ln(e),
|
|
1192
|
+
return Ln(e), Zt(t);
|
|
1193
1193
|
} finally {
|
|
1194
|
-
e.f ^= re, J = t, Y = n, X = r,
|
|
1194
|
+
e.f ^= re, J = t, Y = n, X = r, H = i, q = a, Fe(o), U = s, jn = c;
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
1197
1197
|
function Ln(e) {
|
|
1198
|
-
var t = e.deps, n =
|
|
1198
|
+
var t = e.deps, n = M?.is_fork;
|
|
1199
1199
|
if (J !== null) {
|
|
1200
1200
|
var r;
|
|
1201
1201
|
if (n || zn(e, Y), t !== null && Y > 0) for (t.length = Y + J.length, r = 0; r < J.length; r++) t[Y + r] = J[r];
|
|
1202
1202
|
else e.deps = t = J;
|
|
1203
|
-
if (
|
|
1203
|
+
if (en() && e.f & 512) for (r = Y; r < t.length; r++) (t[r].reactions ??= []).push(e);
|
|
1204
1204
|
} else !n && t !== null && Y < t.length && (zn(e, Y), t.length = Y);
|
|
1205
1205
|
return t;
|
|
1206
1206
|
}
|
|
@@ -1215,9 +1215,9 @@ function Rn(e, t) {
|
|
|
1215
1215
|
}
|
|
1216
1216
|
if (r === null && t.f & 2 && (J === null || !a.call(J, t))) {
|
|
1217
1217
|
var c = t;
|
|
1218
|
-
c.f & 512 && (c.f ^= 512), c.v !== n &&
|
|
1219
|
-
c.ac.abort(
|
|
1220
|
-
}),
|
|
1218
|
+
c.f & 512 && (c.f ^= 512), c.v !== n && Ge(c), c.ac !== null && qe(() => {
|
|
1219
|
+
c.ac.abort(fe), c.ac = null, j(c, v);
|
|
1220
|
+
}), ot(c), zn(c, 0);
|
|
1221
1221
|
}
|
|
1222
1222
|
}
|
|
1223
1223
|
function zn(e, t) {
|
|
@@ -1227,58 +1227,58 @@ function zn(e, t) {
|
|
|
1227
1227
|
function Bn(e) {
|
|
1228
1228
|
var t = e.f;
|
|
1229
1229
|
if (!(t & 16384)) {
|
|
1230
|
-
|
|
1231
|
-
var n =
|
|
1232
|
-
|
|
1230
|
+
j(e, _);
|
|
1231
|
+
var n = G, r = wn;
|
|
1232
|
+
G = e, wn = (t & 96) == 0;
|
|
1233
1233
|
try {
|
|
1234
|
-
t & 16777232 ?
|
|
1234
|
+
t & 16777232 ? hn(e) : mn(e), pn(e);
|
|
1235
1235
|
var i = In(e);
|
|
1236
1236
|
e.teardown = typeof i == "function" ? i : null, e.wv = kn;
|
|
1237
1237
|
} finally {
|
|
1238
|
-
|
|
1238
|
+
wn = r, G = n;
|
|
1239
1239
|
}
|
|
1240
1240
|
}
|
|
1241
1241
|
}
|
|
1242
1242
|
function Z(e) {
|
|
1243
1243
|
var t = (e.f & 2) != 0;
|
|
1244
|
-
if (
|
|
1245
|
-
var n =
|
|
1246
|
-
if (
|
|
1244
|
+
if (Cn?.add(e), H !== null && !U && !(G !== null && G.f & 16384) && (q === null || !q.has(e))) {
|
|
1245
|
+
var n = H.deps;
|
|
1246
|
+
if (H.f & 2097152) e.rv < An && (e.rv = An, J === null && n !== null && n[Y] === e ? Y++ : J === null ? J = [e] : J.push(e));
|
|
1247
1247
|
else {
|
|
1248
|
-
|
|
1248
|
+
H.deps ??= [], a.call(H.deps, e) || H.deps.push(e);
|
|
1249
1249
|
var r = e.reactions;
|
|
1250
|
-
r === null ? e.reactions = [
|
|
1250
|
+
r === null ? e.reactions = [H] : a.call(r, H) || r.push(H);
|
|
1251
1251
|
}
|
|
1252
1252
|
}
|
|
1253
|
-
if (
|
|
1253
|
+
if (Tn && I.has(e)) return I.get(e);
|
|
1254
1254
|
if (t) {
|
|
1255
1255
|
var i = e;
|
|
1256
|
-
if (
|
|
1256
|
+
if (Tn) {
|
|
1257
1257
|
var o = i.v;
|
|
1258
|
-
return (!(i.f & 1024) && i.reactions !== null || Hn(i)) && (o =
|
|
1258
|
+
return (!(i.f & 1024) && i.reactions !== null || Hn(i)) && (o = it(i)), I.set(i, o), o;
|
|
1259
1259
|
}
|
|
1260
|
-
var s = (i.f & 512) == 0 && !
|
|
1261
|
-
Pn(i) && (s && (i.f |= 512),
|
|
1260
|
+
var s = (i.f & 512) == 0 && !U && H !== null && (wn || (H.f & 512) != 0), c = (i.f & x) === 0;
|
|
1261
|
+
Pn(i) && (s && (i.f |= 512), at(i)), s && !c && (st(i), Vn(i));
|
|
1262
1262
|
}
|
|
1263
|
-
if (
|
|
1263
|
+
if (N?.has(e)) return N.get(e);
|
|
1264
1264
|
if (e.f & 8388608) throw e.v;
|
|
1265
1265
|
return e.v;
|
|
1266
1266
|
}
|
|
1267
1267
|
function Vn(e) {
|
|
1268
|
-
if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (
|
|
1268
|
+
if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (st(t), Vn(t));
|
|
1269
1269
|
}
|
|
1270
1270
|
function Hn(e) {
|
|
1271
1271
|
if (e.v === n) return !0;
|
|
1272
1272
|
if (e.deps === null) return !1;
|
|
1273
|
-
for (let t of e.deps) if (
|
|
1273
|
+
for (let t of e.deps) if (I.has(t) || t.f & 2 && Hn(t)) return !0;
|
|
1274
1274
|
return !1;
|
|
1275
1275
|
}
|
|
1276
1276
|
function Un(e) {
|
|
1277
|
-
var t =
|
|
1277
|
+
var t = U;
|
|
1278
1278
|
try {
|
|
1279
|
-
return
|
|
1279
|
+
return U = !0, e();
|
|
1280
1280
|
} finally {
|
|
1281
|
-
|
|
1281
|
+
U = t;
|
|
1282
1282
|
}
|
|
1283
1283
|
}
|
|
1284
1284
|
//#endregion
|
|
@@ -1307,8 +1307,8 @@ function Yn(e) {
|
|
|
1307
1307
|
return a || n;
|
|
1308
1308
|
}
|
|
1309
1309
|
});
|
|
1310
|
-
var d =
|
|
1311
|
-
|
|
1310
|
+
var d = H, f = G;
|
|
1311
|
+
W(null), K(null);
|
|
1312
1312
|
try {
|
|
1313
1313
|
for (var p, m = []; a !== null && a !== t;) {
|
|
1314
1314
|
try {
|
|
@@ -1327,7 +1327,7 @@ function Yn(e) {
|
|
|
1327
1327
|
throw p;
|
|
1328
1328
|
}
|
|
1329
1329
|
} finally {
|
|
1330
|
-
e[Wn] = t, delete e.currentTarget,
|
|
1330
|
+
e[Wn] = t, delete e.currentTarget, W(d), K(f);
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
1333
|
}
|
|
@@ -1338,13 +1338,13 @@ function Zn(e) {
|
|
|
1338
1338
|
return Xn?.createHTML(e) ?? e;
|
|
1339
1339
|
}
|
|
1340
1340
|
function Qn(e) {
|
|
1341
|
-
var t =
|
|
1341
|
+
var t = Yt("template");
|
|
1342
1342
|
return t.innerHTML = Zn(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1343
1343
|
}
|
|
1344
1344
|
//#endregion
|
|
1345
1345
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/template.js
|
|
1346
1346
|
function $n(e, t) {
|
|
1347
|
-
var n =
|
|
1347
|
+
var n = G;
|
|
1348
1348
|
n.nodes === null && (n.nodes = {
|
|
1349
1349
|
start: e,
|
|
1350
1350
|
end: t,
|
|
@@ -1356,20 +1356,20 @@ function $n(e, t) {
|
|
|
1356
1356
|
function er(e, t) {
|
|
1357
1357
|
var n = (t & 1) != 0, r = (t & 2) != 0, i, a = !e.startsWith("<!>");
|
|
1358
1358
|
return () => {
|
|
1359
|
-
if (
|
|
1360
|
-
i === void 0 && (i = Qn(a ? e : "<!>" + e), n || (i = /* @__PURE__ */
|
|
1361
|
-
var t = r ||
|
|
1359
|
+
if (T) return $n(E, null), E;
|
|
1360
|
+
i === void 0 && (i = Qn(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ Ht(i)));
|
|
1361
|
+
var t = r || Lt ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1362
1362
|
if (n) {
|
|
1363
|
-
var o = /* @__PURE__ */
|
|
1363
|
+
var o = /* @__PURE__ */ Ht(t), s = t.lastChild;
|
|
1364
1364
|
$n(o, s);
|
|
1365
1365
|
} else $n(t, t);
|
|
1366
1366
|
return t;
|
|
1367
1367
|
};
|
|
1368
1368
|
}
|
|
1369
1369
|
function tr(e, t) {
|
|
1370
|
-
if (
|
|
1371
|
-
var n =
|
|
1372
|
-
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end =
|
|
1370
|
+
if (T) {
|
|
1371
|
+
var n = G;
|
|
1372
|
+
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = E), _e();
|
|
1373
1373
|
return;
|
|
1374
1374
|
}
|
|
1375
1375
|
e !== null && e.before(t);
|
|
@@ -1382,11 +1382,11 @@ function rr(e) {
|
|
|
1382
1382
|
//#endregion
|
|
1383
1383
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/reactivity/create-subscriber.js
|
|
1384
1384
|
function ir(e) {
|
|
1385
|
-
let t = 0, n =
|
|
1385
|
+
let t = 0, n = Dt(0), r;
|
|
1386
1386
|
return () => {
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
--t, t === 0 && (r?.(), r = void 0,
|
|
1387
|
+
en() && (Z(n), ln(() => (t === 0 && (r = Un(() => e(() => Nt(n)))), t += 1, () => {
|
|
1388
|
+
He(() => {
|
|
1389
|
+
--t, t === 0 && (r?.(), r = void 0, Nt(n));
|
|
1390
1390
|
});
|
|
1391
1391
|
})));
|
|
1392
1392
|
};
|
|
@@ -1402,7 +1402,7 @@ var sr = class {
|
|
|
1402
1402
|
is_pending = !1;
|
|
1403
1403
|
transform_error;
|
|
1404
1404
|
#e;
|
|
1405
|
-
#t =
|
|
1405
|
+
#t = T ? E : null;
|
|
1406
1406
|
#n;
|
|
1407
1407
|
#r;
|
|
1408
1408
|
#i;
|
|
@@ -1416,35 +1416,35 @@ var sr = class {
|
|
|
1416
1416
|
#f = /* @__PURE__ */ new Set();
|
|
1417
1417
|
#p = /* @__PURE__ */ new Set();
|
|
1418
1418
|
#m = null;
|
|
1419
|
-
#h = ir(() => (this.#m =
|
|
1419
|
+
#h = ir(() => (this.#m = Dt(this.#l), () => {
|
|
1420
1420
|
this.#m = null;
|
|
1421
1421
|
}));
|
|
1422
1422
|
constructor(e, t, n, r) {
|
|
1423
1423
|
this.#e = e, this.#n = t, this.#r = (e) => {
|
|
1424
|
-
var t =
|
|
1424
|
+
var t = G;
|
|
1425
1425
|
t.b = this, t.f |= 128, n(e);
|
|
1426
|
-
}, this.parent =
|
|
1427
|
-
if (
|
|
1426
|
+
}, this.parent = G.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = dn(() => {
|
|
1427
|
+
if (T) {
|
|
1428
1428
|
let e = this.#t;
|
|
1429
|
-
|
|
1429
|
+
_e();
|
|
1430
1430
|
let t = e.data === "[!";
|
|
1431
1431
|
if (e.data.startsWith("[?")) {
|
|
1432
1432
|
let t = JSON.parse(e.data.slice(2));
|
|
1433
1433
|
this.#_(t);
|
|
1434
1434
|
} else t ? this.#y() : this.#g();
|
|
1435
1435
|
} else this.#b();
|
|
1436
|
-
}, ar),
|
|
1436
|
+
}, ar), T && (this.#e = E);
|
|
1437
1437
|
}
|
|
1438
1438
|
#g() {
|
|
1439
1439
|
try {
|
|
1440
|
-
this.#a =
|
|
1440
|
+
this.#a = fn(() => this.#r(this.#e));
|
|
1441
1441
|
} catch (e) {
|
|
1442
1442
|
this.error(e);
|
|
1443
1443
|
}
|
|
1444
1444
|
}
|
|
1445
1445
|
#_(e) {
|
|
1446
1446
|
let t = this.#n.failed, { reset: n, invoke_onerror: r } = this.#v(e);
|
|
1447
|
-
|
|
1447
|
+
He(r), t && (this.#s = fn(() => {
|
|
1448
1448
|
t(this.#e, () => e, () => n);
|
|
1449
1449
|
}));
|
|
1450
1450
|
}
|
|
@@ -1452,10 +1452,10 @@ var sr = class {
|
|
|
1452
1452
|
var t = !1, n = !1;
|
|
1453
1453
|
let r = () => {
|
|
1454
1454
|
if (t) {
|
|
1455
|
-
|
|
1455
|
+
he();
|
|
1456
1456
|
return;
|
|
1457
1457
|
}
|
|
1458
|
-
t = !0, n &&
|
|
1458
|
+
t = !0, n && Pe(), this.#s !== null && vn(this.#s, () => {
|
|
1459
1459
|
this.#s = null;
|
|
1460
1460
|
}), this.#S(() => {
|
|
1461
1461
|
this.#b();
|
|
@@ -1467,45 +1467,45 @@ var sr = class {
|
|
|
1467
1467
|
try {
|
|
1468
1468
|
n = !0, this.#n.onerror?.(e, r), n = !1;
|
|
1469
1469
|
} catch (e) {
|
|
1470
|
-
|
|
1470
|
+
z(e, this.#i && this.#i.parent);
|
|
1471
1471
|
}
|
|
1472
1472
|
}
|
|
1473
1473
|
};
|
|
1474
1474
|
}
|
|
1475
1475
|
#y() {
|
|
1476
1476
|
let e = this.#n.pending;
|
|
1477
|
-
e && (this.is_pending = !0, this.#o =
|
|
1478
|
-
var e = this.#c = document.createDocumentFragment(), t =
|
|
1477
|
+
e && (this.is_pending = !0, this.#o = fn(() => e(this.#e)), He(() => {
|
|
1478
|
+
var e = this.#c = document.createDocumentFragment(), t = Vt(), n = !1;
|
|
1479
1479
|
if (e.append(t), this.#a = this.#S(() => {
|
|
1480
1480
|
try {
|
|
1481
|
-
return
|
|
1481
|
+
return fn(() => this.#r(t));
|
|
1482
1482
|
} catch (e) {
|
|
1483
1483
|
try {
|
|
1484
1484
|
this.error(e), n = !0;
|
|
1485
1485
|
} catch (e) {
|
|
1486
|
-
|
|
1486
|
+
z(e, this.#i.parent);
|
|
1487
1487
|
}
|
|
1488
1488
|
return null;
|
|
1489
1489
|
}
|
|
1490
1490
|
}), this.#a === null) {
|
|
1491
|
-
this.#c = null, n && this.#x(
|
|
1491
|
+
this.#c = null, n && this.#x(M);
|
|
1492
1492
|
return;
|
|
1493
1493
|
}
|
|
1494
|
-
this.#u === 0 && (this.#e.before(e), this.#c = null,
|
|
1494
|
+
this.#u === 0 && (this.#e.before(e), this.#c = null, vn(this.#o, () => {
|
|
1495
1495
|
this.#o = null;
|
|
1496
|
-
}), this.#x(
|
|
1496
|
+
}), this.#x(M));
|
|
1497
1497
|
}));
|
|
1498
1498
|
}
|
|
1499
1499
|
#b() {
|
|
1500
1500
|
try {
|
|
1501
|
-
if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a =
|
|
1501
|
+
if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = fn(() => {
|
|
1502
1502
|
this.#r(this.#e);
|
|
1503
1503
|
}), this.#u > 0) {
|
|
1504
1504
|
var e = this.#c = document.createDocumentFragment();
|
|
1505
|
-
|
|
1505
|
+
Sn(this.#a, e);
|
|
1506
1506
|
let t = this.#n.pending;
|
|
1507
|
-
this.#o =
|
|
1508
|
-
} else this.#x(
|
|
1507
|
+
this.#o = fn(() => t(this.#e));
|
|
1508
|
+
} else this.#x(M);
|
|
1509
1509
|
} catch (e) {
|
|
1510
1510
|
this.error(e);
|
|
1511
1511
|
}
|
|
@@ -1514,7 +1514,7 @@ var sr = class {
|
|
|
1514
1514
|
this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
|
|
1515
1515
|
}
|
|
1516
1516
|
defer_effect(e) {
|
|
1517
|
-
|
|
1517
|
+
Ke(e, this.#f, this.#p);
|
|
1518
1518
|
}
|
|
1519
1519
|
is_rendered() {
|
|
1520
1520
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -1523,12 +1523,12 @@ var sr = class {
|
|
|
1523
1523
|
return !!this.#n.pending;
|
|
1524
1524
|
}
|
|
1525
1525
|
#S(e) {
|
|
1526
|
-
var t =
|
|
1527
|
-
|
|
1526
|
+
var t = G, n = H, r = A;
|
|
1527
|
+
K(this.#i), W(this.#i), Fe(this.#i.ctx);
|
|
1528
1528
|
try {
|
|
1529
|
-
return
|
|
1529
|
+
return _t.ensure(), e();
|
|
1530
1530
|
} finally {
|
|
1531
|
-
|
|
1531
|
+
K(t), W(n), Fe(r);
|
|
1532
1532
|
}
|
|
1533
1533
|
}
|
|
1534
1534
|
#C(e, t) {
|
|
@@ -1536,13 +1536,13 @@ var sr = class {
|
|
|
1536
1536
|
this.parent && this.parent.#C(e, t);
|
|
1537
1537
|
return;
|
|
1538
1538
|
}
|
|
1539
|
-
this.#u += e, this.#u === 0 && (this.#x(t), this.#o &&
|
|
1539
|
+
this.#u += e, this.#u === 0 && (this.#x(t), this.#o && vn(this.#o, () => {
|
|
1540
1540
|
this.#o = null;
|
|
1541
1541
|
}), this.#c &&= (this.#e.before(this.#c), null));
|
|
1542
1542
|
}
|
|
1543
1543
|
update_pending_count(e, t) {
|
|
1544
|
-
this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0,
|
|
1545
|
-
this.#d = !1, this.#m &&
|
|
1544
|
+
this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, He(() => {
|
|
1545
|
+
this.#d = !1, this.#m && jt(this.#m, this.#l);
|
|
1546
1546
|
}));
|
|
1547
1547
|
}
|
|
1548
1548
|
get_effect_pending() {
|
|
@@ -1550,73 +1550,73 @@ var sr = class {
|
|
|
1550
1550
|
}
|
|
1551
1551
|
error(e) {
|
|
1552
1552
|
if (!this.#n.onerror && !this.#n.failed) throw e;
|
|
1553
|
-
|
|
1553
|
+
M?.is_fork ? (this.#a && M.skip_effect(this.#a), this.#o && M.skip_effect(this.#o), this.#s && M.skip_effect(this.#s), M.oncommit(() => {
|
|
1554
1554
|
this.#w(e);
|
|
1555
1555
|
})) : this.#w(e);
|
|
1556
1556
|
}
|
|
1557
1557
|
#w(e) {
|
|
1558
|
-
this.#a &&= (
|
|
1558
|
+
this.#a &&= (V(this.#a), null), this.#o &&= (V(this.#o), null), this.#s &&= (V(this.#s), null), T && (D(this.#t), ye(), D(be()));
|
|
1559
1559
|
let t = this.#n.failed, n = (e) => {
|
|
1560
1560
|
let { reset: n, invoke_onerror: r } = this.#v(e);
|
|
1561
1561
|
r(), t && (this.#s = this.#S(() => {
|
|
1562
1562
|
try {
|
|
1563
|
-
return
|
|
1564
|
-
var r =
|
|
1563
|
+
return fn(() => {
|
|
1564
|
+
var r = G;
|
|
1565
1565
|
r.b = this, r.f |= 128, t(this.#e, () => e, () => n);
|
|
1566
1566
|
});
|
|
1567
1567
|
} catch (e) {
|
|
1568
|
-
return
|
|
1568
|
+
return z(e, this.#i.parent), null;
|
|
1569
1569
|
}
|
|
1570
1570
|
}));
|
|
1571
1571
|
};
|
|
1572
|
-
|
|
1572
|
+
He(() => {
|
|
1573
1573
|
var t;
|
|
1574
1574
|
try {
|
|
1575
1575
|
t = this.transform_error(e);
|
|
1576
1576
|
} catch (e) {
|
|
1577
|
-
|
|
1577
|
+
z(e, this.#i && this.#i.parent);
|
|
1578
1578
|
return;
|
|
1579
1579
|
}
|
|
1580
|
-
typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) =>
|
|
1580
|
+
typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => z(e, this.#i && this.#i.parent)) : n(t);
|
|
1581
1581
|
});
|
|
1582
1582
|
}
|
|
1583
1583
|
};
|
|
1584
1584
|
function cr(e, t) {
|
|
1585
1585
|
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1586
|
-
n !== (e[
|
|
1586
|
+
n !== (e[de] ??= e.nodeValue) && (e[de] = n, e.nodeValue = `${n}`);
|
|
1587
1587
|
}
|
|
1588
1588
|
function lr(e, t) {
|
|
1589
1589
|
return fr(e, t);
|
|
1590
1590
|
}
|
|
1591
1591
|
function ur(e, n) {
|
|
1592
|
-
|
|
1593
|
-
let r = n.target, i =
|
|
1592
|
+
Bt(), n.intro = n.intro ?? !1;
|
|
1593
|
+
let r = n.target, i = T, a = E;
|
|
1594
1594
|
try {
|
|
1595
|
-
for (var o = /* @__PURE__ */
|
|
1595
|
+
for (var o = /* @__PURE__ */ Ht(r); o && (o.nodeType !== 8 || o.data !== "[");) o = /* @__PURE__ */ Ut(o);
|
|
1596
1596
|
if (!o) throw t;
|
|
1597
|
-
|
|
1597
|
+
ge(!0), D(o);
|
|
1598
1598
|
let i = fr(e, {
|
|
1599
1599
|
...n,
|
|
1600
1600
|
anchor: o
|
|
1601
1601
|
});
|
|
1602
|
-
return
|
|
1602
|
+
return ge(!1), i;
|
|
1603
1603
|
} catch (i) {
|
|
1604
1604
|
if (i instanceof Error && i.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw i;
|
|
1605
|
-
return i !== t && console.warn("Failed to hydrate: ", i), n.recover === !1 &&
|
|
1605
|
+
return i !== t && console.warn("Failed to hydrate: ", i), n.recover === !1 && ke(), Bt(), qt(r), ge(!1), lr(e, n);
|
|
1606
1606
|
} finally {
|
|
1607
|
-
|
|
1607
|
+
ge(i), D(a);
|
|
1608
1608
|
}
|
|
1609
1609
|
}
|
|
1610
1610
|
var dr = /* @__PURE__ */ new Map();
|
|
1611
1611
|
function fr(e, { target: n, anchor: r, props: i = {}, events: a, context: s, intro: c = !0, transformError: l }) {
|
|
1612
|
-
|
|
1613
|
-
var u = void 0, d =
|
|
1614
|
-
var c = r ?? n.appendChild(
|
|
1612
|
+
Bt();
|
|
1613
|
+
var u = void 0, d = on(() => {
|
|
1614
|
+
var c = r ?? n.appendChild(Vt());
|
|
1615
1615
|
or(c, { pending: () => {} }, (n) => {
|
|
1616
|
-
|
|
1617
|
-
var r =
|
|
1618
|
-
if (s && (r.c = s), a && (i.$$events = a),
|
|
1619
|
-
|
|
1616
|
+
Ie({});
|
|
1617
|
+
var r = A;
|
|
1618
|
+
if (s && (r.c = s), a && (i.$$events = a), T && $n(n, null), u = e(n, i) || Re(), T && (G.nodes.end = E, E === null || E.nodeType !== 8 || E.data !== "]")) throw me(), t;
|
|
1619
|
+
Le();
|
|
1620
1620
|
}, l);
|
|
1621
1621
|
var d = /* @__PURE__ */ new Set(), f = (e) => {
|
|
1622
1622
|
for (var t = 0; t < e.length; t++) {
|
|
@@ -1663,55 +1663,55 @@ var hr = class {
|
|
|
1663
1663
|
#a = (e) => {
|
|
1664
1664
|
if (this.#e.has(e)) {
|
|
1665
1665
|
var t = this.#e.get(e), n = this.#t.get(t);
|
|
1666
|
-
if (n)
|
|
1666
|
+
if (n) bn(n), this.#r.delete(t);
|
|
1667
1667
|
else {
|
|
1668
1668
|
var r = this.#n.get(t);
|
|
1669
|
-
r && (
|
|
1669
|
+
r && (bn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
|
|
1670
1670
|
}
|
|
1671
1671
|
for (let [t, n] of this.#e) {
|
|
1672
1672
|
if (this.#e.delete(t), t === e) break;
|
|
1673
1673
|
let r = this.#n.get(n);
|
|
1674
|
-
r && (
|
|
1674
|
+
r && (V(r.effect), this.#n.delete(n));
|
|
1675
1675
|
}
|
|
1676
1676
|
for (let [e, r] of this.#t) {
|
|
1677
1677
|
if (e === t || this.#r.has(e)) continue;
|
|
1678
1678
|
let i = () => {
|
|
1679
1679
|
if (Array.from(this.#e.values()).includes(e)) {
|
|
1680
1680
|
var t = document.createDocumentFragment();
|
|
1681
|
-
|
|
1681
|
+
Sn(r, t), t.append(Vt()), this.#n.set(e, {
|
|
1682
1682
|
effect: r,
|
|
1683
1683
|
fragment: t
|
|
1684
1684
|
});
|
|
1685
|
-
} else
|
|
1685
|
+
} else V(r);
|
|
1686
1686
|
this.#r.delete(e), this.#t.delete(e);
|
|
1687
1687
|
};
|
|
1688
|
-
this.#i || !n ? (this.#r.add(e),
|
|
1688
|
+
this.#i || !n ? (this.#r.add(e), vn(r, i, !1)) : i();
|
|
1689
1689
|
}
|
|
1690
1690
|
}
|
|
1691
1691
|
};
|
|
1692
1692
|
#o = (e) => {
|
|
1693
1693
|
this.#e.delete(e);
|
|
1694
1694
|
let t = Array.from(this.#e.values());
|
|
1695
|
-
for (let [e, n] of this.#n) t.includes(e) || (
|
|
1695
|
+
for (let [e, n] of this.#n) t.includes(e) || (V(n.effect), this.#n.delete(e));
|
|
1696
1696
|
};
|
|
1697
1697
|
ensure(e, t) {
|
|
1698
|
-
var n =
|
|
1698
|
+
var n = M, r = Jt();
|
|
1699
1699
|
if (t && !this.#t.has(e) && !this.#n.has(e)) if (r) {
|
|
1700
|
-
var i = document.createDocumentFragment(), a =
|
|
1700
|
+
var i = document.createDocumentFragment(), a = Vt();
|
|
1701
1701
|
i.append(a), this.#n.set(e, {
|
|
1702
|
-
effect:
|
|
1702
|
+
effect: fn(() => t(a)),
|
|
1703
1703
|
fragment: i
|
|
1704
1704
|
});
|
|
1705
|
-
} else this.#t.set(e,
|
|
1705
|
+
} else this.#t.set(e, fn(() => t(this.anchor)));
|
|
1706
1706
|
if (this.#e.set(n, e), r) {
|
|
1707
1707
|
for (let [t, r] of this.#t) t === e ? n.unskip_effect(r) : n.skip_effect(r);
|
|
1708
1708
|
for (let [t, r] of this.#n) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);
|
|
1709
1709
|
n.oncommit(this.#a), n.ondiscard(this.#o);
|
|
1710
|
-
} else
|
|
1710
|
+
} else T && (this.anchor = E), this.#a(n);
|
|
1711
1711
|
}
|
|
1712
1712
|
};
|
|
1713
1713
|
function gr(e) {
|
|
1714
|
-
|
|
1714
|
+
A === null && Ce("onMount"), nn(() => {
|
|
1715
1715
|
let t = Un(e);
|
|
1716
1716
|
if (typeof t == "function") return t;
|
|
1717
1717
|
});
|
|
@@ -1720,20 +1720,20 @@ function gr(e) {
|
|
|
1720
1720
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/if.js
|
|
1721
1721
|
function _r(e, t, n = !1) {
|
|
1722
1722
|
var r;
|
|
1723
|
-
|
|
1723
|
+
T && (r = E, _e());
|
|
1724
1724
|
var i = new hr(e), a = n ? ne : 0;
|
|
1725
1725
|
function o(e, t) {
|
|
1726
|
-
if (
|
|
1727
|
-
var n =
|
|
1726
|
+
if (T) {
|
|
1727
|
+
var n = O(r);
|
|
1728
1728
|
if (e !== parseInt(n.substring(1))) {
|
|
1729
|
-
var a =
|
|
1730
|
-
|
|
1729
|
+
var a = be();
|
|
1730
|
+
D(a), i.anchor = a, ge(!1), i.ensure(e, t), ge(!0);
|
|
1731
1731
|
return;
|
|
1732
1732
|
}
|
|
1733
1733
|
}
|
|
1734
1734
|
i.ensure(e, t);
|
|
1735
1735
|
}
|
|
1736
|
-
|
|
1736
|
+
dn(() => {
|
|
1737
1737
|
var e = !1;
|
|
1738
1738
|
t((t, n = 0) => {
|
|
1739
1739
|
e = !0, o(n, t);
|
|
@@ -1743,11 +1743,11 @@ function _r(e, t, n = !1) {
|
|
|
1743
1743
|
//#endregion
|
|
1744
1744
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/css.js
|
|
1745
1745
|
function vr(e, t) {
|
|
1746
|
-
|
|
1747
|
-
e =
|
|
1746
|
+
sn(() => {
|
|
1747
|
+
e = G?.parent?.nodes?.start ?? e;
|
|
1748
1748
|
var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
|
|
1749
1749
|
if (!r.querySelector("#" + t.hash)) {
|
|
1750
|
-
let e =
|
|
1750
|
+
let e = Yt("style");
|
|
1751
1751
|
e.id = t.hash, e.textContent = t.code, r.appendChild(e);
|
|
1752
1752
|
}
|
|
1753
1753
|
});
|
|
@@ -1755,13 +1755,13 @@ function vr(e, t) {
|
|
|
1755
1755
|
//#endregion
|
|
1756
1756
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
|
|
1757
1757
|
function yr(e, t) {
|
|
1758
|
-
return e === t || e?.[
|
|
1758
|
+
return e === t || e?.[ae] === t;
|
|
1759
1759
|
}
|
|
1760
|
-
function br(e =
|
|
1761
|
-
var i =
|
|
1762
|
-
return
|
|
1760
|
+
function br(e = Re(), t, n, r) {
|
|
1761
|
+
var i = A.r, a = G;
|
|
1762
|
+
return sn(() => {
|
|
1763
1763
|
var o, s;
|
|
1764
|
-
return
|
|
1764
|
+
return ln(() => {
|
|
1765
1765
|
o = s, s = r?.() || [], Un(() => {
|
|
1766
1766
|
yr(n(...s), e) || (t(e, ...s), o && yr(n(...o), e) && t(null, ...o));
|
|
1767
1767
|
});
|
|
@@ -1791,14 +1791,14 @@ function Sr(e) {
|
|
|
1791
1791
|
//#endregion
|
|
1792
1792
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/props.js
|
|
1793
1793
|
function Q(e, t, n, r) {
|
|
1794
|
-
var i = !0, a = (n & 8) != 0, o = (n & 16) != 0, s = r, c = !0, u = void 0, d = () => o && i ? (u ??= /* @__PURE__ */
|
|
1794
|
+
var i = !0, a = (n & 8) != 0, o = (n & 16) != 0, s = r, c = !0, u = void 0, d = () => o && i ? (u ??= /* @__PURE__ */ Qe(r), Z(u)) : (c && (c = !1, s = o ? Un(r) : r), s);
|
|
1795
1795
|
let f;
|
|
1796
1796
|
if (a) {
|
|
1797
|
-
var p =
|
|
1797
|
+
var p = ae in e || se in e;
|
|
1798
1798
|
f = l(e, t)?.set ?? (p && t in e ? (n) => e[t] = n : void 0);
|
|
1799
1799
|
}
|
|
1800
1800
|
var m, h = !1;
|
|
1801
|
-
a ? [m, h] = Sr(() => e[t]) : m = e[t], m === void 0 && r !== void 0 && (m = d(), f && (i &&
|
|
1801
|
+
a ? [m, h] = Sr(() => e[t]) : m = e[t], m === void 0 && r !== void 0 && (m = d(), f && (i && Ae(t), f(m)));
|
|
1802
1802
|
var g = i ? () => {
|
|
1803
1803
|
var n = e[t];
|
|
1804
1804
|
return n === void 0 ? d() : (c = !0, n);
|
|
@@ -1813,15 +1813,15 @@ function Q(e, t, n, r) {
|
|
|
1813
1813
|
return arguments.length > 0 ? ((!i || !t || _ || h) && f(t ? g() : e), e) : g();
|
|
1814
1814
|
});
|
|
1815
1815
|
}
|
|
1816
|
-
var v = !1, y = (n & 1 ?
|
|
1816
|
+
var v = !1, y = (n & 1 ? Qe : nt)(() => (v = !1, g()));
|
|
1817
1817
|
a && Z(y);
|
|
1818
|
-
var b =
|
|
1818
|
+
var b = G;
|
|
1819
1819
|
return (function(e, t) {
|
|
1820
1820
|
if (arguments.length > 0) {
|
|
1821
|
-
let n = t ? Z(y) : i && a ?
|
|
1822
|
-
return
|
|
1821
|
+
let n = t ? Z(y) : i && a ? Ft(e) : e;
|
|
1822
|
+
return R(y, n), v = !0, s !== void 0 && (s = n), e;
|
|
1823
1823
|
}
|
|
1824
|
-
return
|
|
1824
|
+
return Tn && v || b.f & 16384 ? y.v : Z(y);
|
|
1825
1825
|
});
|
|
1826
1826
|
}
|
|
1827
1827
|
//#endregion
|
|
@@ -1834,7 +1834,7 @@ var wr = class {
|
|
|
1834
1834
|
#t;
|
|
1835
1835
|
constructor(e) {
|
|
1836
1836
|
var t = /* @__PURE__ */ new Map(), n = (e, n) => {
|
|
1837
|
-
var r = /* @__PURE__ */
|
|
1837
|
+
var r = /* @__PURE__ */ Ot(n, !1, !1);
|
|
1838
1838
|
return t.set(e, r), r;
|
|
1839
1839
|
};
|
|
1840
1840
|
let r = new Proxy({
|
|
@@ -1845,10 +1845,10 @@ var wr = class {
|
|
|
1845
1845
|
return Z(t.get(r) ?? n(r, Reflect.get(e, r)));
|
|
1846
1846
|
},
|
|
1847
1847
|
has(e, r) {
|
|
1848
|
-
return r ===
|
|
1848
|
+
return r === se ? !0 : (Z(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
|
|
1849
1849
|
},
|
|
1850
1850
|
set(e, r, i) {
|
|
1851
|
-
return
|
|
1851
|
+
return R(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
|
|
1852
1852
|
}
|
|
1853
1853
|
});
|
|
1854
1854
|
this.#t = (e.hydrate ? ur : lr)(e.component, {
|
|
@@ -1859,7 +1859,7 @@ var wr = class {
|
|
|
1859
1859
|
intro: e.intro ?? !1,
|
|
1860
1860
|
recover: e.recover,
|
|
1861
1861
|
transformError: e.transformError
|
|
1862
|
-
}), (!e?.props?.$$host || e.sync === !1) &&
|
|
1862
|
+
}), (!e?.props?.$$host || e.sync === !1) && P(), this.#e = r.$$events;
|
|
1863
1863
|
for (let e of Object.keys(this.#t)) e === "$set" || e === "$destroy" || e === "$on" || c(this, e, {
|
|
1864
1864
|
get() {
|
|
1865
1865
|
return this.#t[e];
|
|
@@ -1922,7 +1922,7 @@ typeof HTMLElement == "function" && (Tr = class extends HTMLElement {
|
|
|
1922
1922
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
1923
1923
|
function e(e) {
|
|
1924
1924
|
return (t) => {
|
|
1925
|
-
let n =
|
|
1925
|
+
let n = Yt("slot");
|
|
1926
1926
|
e !== "default" && (n.name = e), tr(t, n);
|
|
1927
1927
|
};
|
|
1928
1928
|
}
|
|
@@ -1941,8 +1941,8 @@ typeof HTMLElement == "function" && (Tr = class extends HTMLElement {
|
|
|
1941
1941
|
$$slots: t,
|
|
1942
1942
|
$$host: this
|
|
1943
1943
|
}
|
|
1944
|
-
}), this.$$me =
|
|
1945
|
-
|
|
1944
|
+
}), this.$$me = an(() => {
|
|
1945
|
+
ln(() => {
|
|
1946
1946
|
this.$$r = !0;
|
|
1947
1947
|
for (let e of s(this.$$c)) {
|
|
1948
1948
|
if (!this.$$p_d[e]?.reflect) continue;
|
|
@@ -2600,7 +2600,7 @@ var wi = /* @__PURE__ */ er("<div class=\"loading-warning svelte-srjg3v\" role=\
|
|
|
2600
2600
|
code: ".element-player-host.svelte-srjg3v {width:100%;min-height:100px;}.element-player-mount.svelte-srjg3v {width:100%;}.loading.svelte-srjg3v {padding:2rem;text-align:center;color:hsl(var(--bc) / 0.6);font-style:italic;}.loading-warning.svelte-srjg3v {margin-top:0.5rem;color:#9a6700;font-style:normal;}.error.svelte-srjg3v {padding:1rem;background:hsl(var(--er) / 0.1);border:1px solid hsl(var(--er) / 0.3);border-radius:4px;color:hsl(var(--er));}.error.svelte-srjg3v pre:where(.svelte-srjg3v) {margin:0.5rem 0 0;padding:0.5rem;background:#fff;border-radius:4px;font-size:0.875rem;overflow-x:auto;}"
|
|
2601
2601
|
};
|
|
2602
2602
|
function ki(t, n) {
|
|
2603
|
-
|
|
2603
|
+
Ie(n, !0), vr(t, Oi);
|
|
2604
2604
|
let r = Q(n, "strategy", 7, "esm"), i = Q(n, "view", 7, "delivery"), a = Q(n, "mode", 7, ""), o = Q(n, "elementName", 7, ""), s = Q(n, "packageName", 7, ""), c = Q(n, "elementVersion", 7, "latest"), l = Q(n, "role", 7, "student"), u = Q(n, "cdnUrl", 7, ""), d = Q(n, "iifeBundleEndpoint", 7, "/api/bundle"), f = Q(n, "iifeBundleHost", 7, ""), p = Q(n, "iifeBundleRetry", 7, Fr), m = Q(n, "preloadedFallbackStrategy", 7, "esm"), h = Q(n, "runtimeSupportCheck", 7, "off"), g = Q(n, "rebuildVersion", 7, 0), _ = Q(n, "model", 15), v = Q(n, "session", 15);
|
|
2605
2605
|
function y(e, t) {
|
|
2606
2606
|
Un(() => {
|
|
@@ -2611,21 +2611,25 @@ function ki(t, n) {
|
|
|
2611
2611
|
}));
|
|
2612
2612
|
});
|
|
2613
2613
|
}
|
|
2614
|
-
let b, ee, x = /* @__PURE__ */
|
|
2614
|
+
let b, ee, x = /* @__PURE__ */ L(null), te = /* @__PURE__ */ L(null), ne = /* @__PURE__ */ L(!0), S = /* @__PURE__ */ L(null), C = /* @__PURE__ */ L(null), re = 0, w = null, ie = "@pie-lib/math-rendering";
|
|
2615
|
+
function ae() {
|
|
2616
|
+
return window[ie];
|
|
2617
|
+
}
|
|
2618
|
+
let oe = null, se = null, ce = null, le = !1, ue = !1, de = null, fe = null, pe = !1, me = !1, he = "", T = "", ge = /* @__PURE__ */ new Set(["complete", "component"]), E = null, D = "", _e = "", ye = /* @__PURE__ */ tt(() => {
|
|
2615
2619
|
if (Z(C)?.state !== "retrying") return null;
|
|
2616
2620
|
let e = Math.max(1, Math.ceil(Z(C).elapsedMs / 1e3)), t = Math.max(1, Math.ceil(Z(C).timeoutMs / 1e3));
|
|
2617
2621
|
return `Bundle is still building. Retrying attempt ${Z(C).attempt} (${e}s of ${t}s).`;
|
|
2618
2622
|
});
|
|
2619
|
-
function
|
|
2623
|
+
function be(e) {
|
|
2620
2624
|
if (!e || typeof e != "object") return !1;
|
|
2621
2625
|
let t = e;
|
|
2622
2626
|
return t.code === "LOAD_ABORTED" || typeof t.message == "string" && t.message.includes("aborted");
|
|
2623
2627
|
}
|
|
2624
|
-
let
|
|
2628
|
+
let O = /* @__PURE__ */ tt(() => ti(r(), "esm")), k = /* @__PURE__ */ tt(() => ri({
|
|
2625
2629
|
mode: a(),
|
|
2626
2630
|
view: i()
|
|
2627
|
-
}, "delivery")),
|
|
2628
|
-
function
|
|
2631
|
+
}, "delivery")), xe = /* @__PURE__ */ tt(() => s() || (o() ? `@pie-element/${o()}` : ""));
|
|
2632
|
+
function Se(e) {
|
|
2629
2633
|
if (typeof e != "object" || !e) return e;
|
|
2630
2634
|
try {
|
|
2631
2635
|
return structuredClone(e);
|
|
@@ -2637,7 +2641,7 @@ function ki(t, n) {
|
|
|
2637
2641
|
}
|
|
2638
2642
|
}
|
|
2639
2643
|
}
|
|
2640
|
-
function
|
|
2644
|
+
function Ce(e) {
|
|
2641
2645
|
try {
|
|
2642
2646
|
let t = JSON.stringify(e);
|
|
2643
2647
|
return t === void 0 ? "__undefined__" : t;
|
|
@@ -2645,47 +2649,47 @@ function ki(t, n) {
|
|
|
2645
2649
|
return `__unserializable__:${String(e)}`;
|
|
2646
2650
|
}
|
|
2647
2651
|
}
|
|
2648
|
-
function
|
|
2652
|
+
function we(e) {
|
|
2649
2653
|
if (!e || typeof e != "object") return !1;
|
|
2650
2654
|
let t = e;
|
|
2651
2655
|
if ("session" in t) return !0;
|
|
2652
2656
|
let n = Object.keys(t);
|
|
2653
|
-
return n.length !== 0 && !n.every((e) =>
|
|
2657
|
+
return n.length !== 0 && !n.every((e) => ge.has(e));
|
|
2654
2658
|
}
|
|
2655
|
-
function
|
|
2656
|
-
|
|
2659
|
+
function Te() {
|
|
2660
|
+
se && b && se.observe(b, {
|
|
2657
2661
|
childList: !0,
|
|
2658
2662
|
subtree: !0,
|
|
2659
2663
|
attributes: !1,
|
|
2660
2664
|
characterData: !1
|
|
2661
2665
|
});
|
|
2662
2666
|
}
|
|
2663
|
-
async function
|
|
2664
|
-
if (!(!
|
|
2665
|
-
if (
|
|
2666
|
-
|
|
2667
|
+
async function Ee() {
|
|
2668
|
+
if (!(!oe || !b)) {
|
|
2669
|
+
if (le) {
|
|
2670
|
+
ue = !0;
|
|
2667
2671
|
return;
|
|
2668
2672
|
}
|
|
2669
|
-
|
|
2673
|
+
le = !0, se && se.disconnect();
|
|
2670
2674
|
try {
|
|
2671
|
-
await
|
|
2675
|
+
await oe(b);
|
|
2672
2676
|
} catch (e) {
|
|
2673
2677
|
console.error("[pie-element-player] Math rendering error:", e);
|
|
2674
2678
|
} finally {
|
|
2675
|
-
|
|
2679
|
+
le = !1, Te(), ue && (ue = !1, queueMicrotask(() => void Ee()));
|
|
2676
2680
|
}
|
|
2677
2681
|
}
|
|
2678
2682
|
}
|
|
2679
|
-
function
|
|
2680
|
-
Z(x) && (
|
|
2683
|
+
function De() {
|
|
2684
|
+
Z(x) && (de &&= (Z(x).removeEventListener("session-changed", de), null), fe &&= (Z(x).removeEventListener("model.updated", fe, !0), null));
|
|
2681
2685
|
}
|
|
2682
|
-
function
|
|
2683
|
-
Z(x) && (
|
|
2684
|
-
if (
|
|
2686
|
+
function Oe(e) {
|
|
2687
|
+
Z(x) && (De(), e === "delivery" && (de = (e) => {
|
|
2688
|
+
if (pe || me || !D) {
|
|
2685
2689
|
e.stopPropagation();
|
|
2686
2690
|
return;
|
|
2687
2691
|
}
|
|
2688
|
-
let t = e.detail, n = t && typeof t == "object" ? t : null, r =
|
|
2692
|
+
let t = e.detail, n = t && typeof t == "object" ? t : null, r = we(n), i = Z(x)?.session, a = t?.session ?? i ?? v();
|
|
2689
2693
|
if (a === void 0) {
|
|
2690
2694
|
e.stopPropagation();
|
|
2691
2695
|
return;
|
|
@@ -2694,58 +2698,58 @@ function ki(t, n) {
|
|
|
2694
2698
|
e.stopPropagation();
|
|
2695
2699
|
return;
|
|
2696
2700
|
}
|
|
2697
|
-
let o =
|
|
2698
|
-
if (s ===
|
|
2701
|
+
let o = Se(a ?? {}), s = Ce(o);
|
|
2702
|
+
if (s === T) {
|
|
2699
2703
|
e.stopPropagation();
|
|
2700
2704
|
return;
|
|
2701
2705
|
}
|
|
2702
2706
|
let c = {
|
|
2703
2707
|
...n ?? {},
|
|
2704
2708
|
session: o
|
|
2705
|
-
}, l =
|
|
2706
|
-
if (l ===
|
|
2709
|
+
}, l = Ce(c);
|
|
2710
|
+
if (l === he) {
|
|
2707
2711
|
e.stopPropagation();
|
|
2708
2712
|
return;
|
|
2709
2713
|
}
|
|
2710
|
-
|
|
2714
|
+
he = l, T = s, e.stopPropagation(), me = !0, v(Se(o)), _e = Ce(o);
|
|
2711
2715
|
try {
|
|
2712
2716
|
y("session-changed", c);
|
|
2713
2717
|
} finally {
|
|
2714
2718
|
setTimeout(() => {
|
|
2715
|
-
|
|
2719
|
+
me = !1;
|
|
2716
2720
|
}, 0);
|
|
2717
2721
|
}
|
|
2718
|
-
}, Z(x).addEventListener("session-changed",
|
|
2722
|
+
}, Z(x).addEventListener("session-changed", de)), e === "author" && (fe = (e) => {
|
|
2719
2723
|
let t = e.detail, n = Z(x)?.model ?? _(), r = Z(x)?.model ?? t?.model ?? t?.update ?? t;
|
|
2720
2724
|
t?.update && typeof t.update == "object" && n && typeof n == "object" && (r = {
|
|
2721
2725
|
...n,
|
|
2722
2726
|
...t.update
|
|
2723
2727
|
}), y("model-changed", r);
|
|
2724
|
-
}, Z(x).addEventListener("model.updated",
|
|
2728
|
+
}, Z(x).addEventListener("model.updated", fe, !0)));
|
|
2725
2729
|
}
|
|
2726
|
-
function
|
|
2730
|
+
function ke(e) {
|
|
2727
2731
|
if (!Z(x) || e == null) return;
|
|
2728
|
-
let t =
|
|
2729
|
-
t !==
|
|
2730
|
-
}
|
|
2731
|
-
function
|
|
2732
|
-
if (!Z(x) || Z(
|
|
2733
|
-
let t =
|
|
2734
|
-
if (t !==
|
|
2735
|
-
|
|
2732
|
+
let t = Ce(e ?? {});
|
|
2733
|
+
t !== D && (Z(x).model = Se(e ?? {}), D = t);
|
|
2734
|
+
}
|
|
2735
|
+
function Ae(e) {
|
|
2736
|
+
if (!Z(x) || Z(k) !== "delivery" || e == null || !D) return;
|
|
2737
|
+
let t = Ce(e ?? {});
|
|
2738
|
+
if (t !== _e) {
|
|
2739
|
+
pe = !0;
|
|
2736
2740
|
try {
|
|
2737
|
-
Z(x).session =
|
|
2741
|
+
Z(x).session = Se(e ?? {}), _e = t;
|
|
2738
2742
|
} finally {
|
|
2739
|
-
|
|
2743
|
+
pe = !1;
|
|
2740
2744
|
}
|
|
2741
2745
|
}
|
|
2742
2746
|
}
|
|
2743
|
-
function
|
|
2744
|
-
!Z(x) || Z(
|
|
2747
|
+
function je(e) {
|
|
2748
|
+
!Z(x) || Z(k) !== "print" || e === E || (Z(x).role = e, Z(x).options = { role: e }, E = e);
|
|
2745
2749
|
}
|
|
2746
|
-
async function
|
|
2747
|
-
if (!o() || !Z(
|
|
2748
|
-
|
|
2750
|
+
async function Me() {
|
|
2751
|
+
if (!o() || !Z(xe)) {
|
|
2752
|
+
R(ne, !1), R(S, "Missing required element metadata");
|
|
2749
2753
|
return;
|
|
2750
2754
|
}
|
|
2751
2755
|
let e = ++re;
|
|
@@ -2753,8 +2757,8 @@ function ki(t, n) {
|
|
|
2753
2757
|
loading: !1,
|
|
2754
2758
|
error: null,
|
|
2755
2759
|
stage: "cancelled",
|
|
2756
|
-
strategy: Z(
|
|
2757
|
-
view: Z(
|
|
2760
|
+
strategy: Z(O),
|
|
2761
|
+
view: Z(k),
|
|
2758
2762
|
retry: {
|
|
2759
2763
|
state: "cancelled",
|
|
2760
2764
|
stage: "build-status",
|
|
@@ -2765,17 +2769,17 @@ function ki(t, n) {
|
|
|
2765
2769
|
}
|
|
2766
2770
|
}), y("load-cancelled", {
|
|
2767
2771
|
reason: "superseded by new load request",
|
|
2768
|
-
strategy: Z(
|
|
2769
|
-
view: Z(
|
|
2772
|
+
strategy: Z(O),
|
|
2773
|
+
view: Z(k)
|
|
2770
2774
|
}));
|
|
2771
2775
|
let t = new AbortController();
|
|
2772
|
-
w = t,
|
|
2776
|
+
w = t, R(ne, !0), R(S, null), R(C, null);
|
|
2773
2777
|
try {
|
|
2774
2778
|
let n = await Ci({
|
|
2775
|
-
strategy: Z(
|
|
2776
|
-
view: Z(
|
|
2779
|
+
strategy: Z(O),
|
|
2780
|
+
view: Z(k),
|
|
2777
2781
|
elementName: o(),
|
|
2778
|
-
packageName: Z(
|
|
2782
|
+
packageName: Z(xe),
|
|
2779
2783
|
elementVersion: c(),
|
|
2780
2784
|
cdnUrl: u(),
|
|
2781
2785
|
iifeBundleEndpoint: d(),
|
|
@@ -2784,12 +2788,12 @@ function ki(t, n) {
|
|
|
2784
2788
|
signal: t.signal,
|
|
2785
2789
|
runtimeSupportCheck: h(),
|
|
2786
2790
|
onIifeBundleRetryStatus: (t) => {
|
|
2787
|
-
e === re && (
|
|
2791
|
+
e === re && (R(C, t, !0), y("bundle-retry-status", t), y("build-state", {
|
|
2788
2792
|
loading: t.state === "retrying",
|
|
2789
2793
|
error: null,
|
|
2790
2794
|
stage: t.state,
|
|
2791
|
-
strategy: Z(
|
|
2792
|
-
view: Z(
|
|
2795
|
+
strategy: Z(O),
|
|
2796
|
+
view: Z(k),
|
|
2793
2797
|
retry: t
|
|
2794
2798
|
}));
|
|
2795
2799
|
},
|
|
@@ -2797,7 +2801,7 @@ function ki(t, n) {
|
|
|
2797
2801
|
rebuildVersion: g()
|
|
2798
2802
|
});
|
|
2799
2803
|
if (e !== re) return;
|
|
2800
|
-
n.bundleMeta && y("bundle-meta", n.bundleMeta), n.controllerDiagnostic && y("controller-load", n.controllerDiagnostic), n.controller && n.view === "delivery" && n.strategy === "iife" && y("controller-changed", n.controller), (!Z(x) || Z(te) !== n.tagName) && (
|
|
2804
|
+
n.bundleMeta && y("bundle-meta", n.bundleMeta), n.controllerDiagnostic && y("controller-load", n.controllerDiagnostic), n.controller && n.view === "delivery" && n.strategy === "iife" && y("controller-changed", n.controller), (!Z(x) || Z(te) !== n.tagName) && (De(), Z(x) && Z(x).remove(), R(x, document.createElement(n.tagName), !0), R(te, n.tagName, !0), E = null, D = "", _e = "", he = "", T = ""), Oe(n.view), ke(_()), Ae(v()), je(l()), ee && Z(x).parentElement !== ee && ee.replaceChildren(Z(x)), y("build-state", {
|
|
2801
2805
|
loading: !1,
|
|
2802
2806
|
error: null,
|
|
2803
2807
|
stage: "completed"
|
|
@@ -2805,10 +2809,10 @@ function ki(t, n) {
|
|
|
2805
2809
|
strategy: n.strategy,
|
|
2806
2810
|
view: n.view,
|
|
2807
2811
|
tagName: n.tagName
|
|
2808
|
-
}),
|
|
2812
|
+
}), R(ne, !1), R(C, null), w === t && (w = null);
|
|
2809
2813
|
} catch (n) {
|
|
2810
2814
|
if (e !== re) return;
|
|
2811
|
-
if (
|
|
2815
|
+
if (be(n) || t.signal.aborted) {
|
|
2812
2816
|
let e = Z(C), r = e?.state === "cancelled" ? e : {
|
|
2813
2817
|
state: "cancelled",
|
|
2814
2818
|
stage: "build-status",
|
|
@@ -2817,44 +2821,44 @@ function ki(t, n) {
|
|
|
2817
2821
|
timeoutMs: p()?.timeoutMs ?? Fr.timeoutMs,
|
|
2818
2822
|
reason: n instanceof Error ? n.message : String(n)
|
|
2819
2823
|
};
|
|
2820
|
-
|
|
2824
|
+
R(S, null), R(ne, !1), R(C, r, !0), y("bundle-retry-status", r), y("build-state", {
|
|
2821
2825
|
loading: !1,
|
|
2822
2826
|
error: null,
|
|
2823
2827
|
stage: "cancelled",
|
|
2824
|
-
strategy: Z(
|
|
2825
|
-
view: Z(
|
|
2828
|
+
strategy: Z(O),
|
|
2829
|
+
view: Z(k),
|
|
2826
2830
|
retry: r
|
|
2827
2831
|
}), y("load-cancelled", {
|
|
2828
2832
|
reason: r.reason || "load cancelled",
|
|
2829
|
-
strategy: Z(
|
|
2830
|
-
view: Z(
|
|
2833
|
+
strategy: Z(O),
|
|
2834
|
+
view: Z(k)
|
|
2831
2835
|
}), w === t && (w = null);
|
|
2832
2836
|
return;
|
|
2833
2837
|
}
|
|
2834
|
-
|
|
2838
|
+
R(S, n instanceof Error ? n.message : String(n), !0), R(ne, !1);
|
|
2835
2839
|
let r = Z(C), i = r && (r.state === "timeout" || r.state === "completed") ? r : void 0;
|
|
2836
2840
|
y("build-state", {
|
|
2837
2841
|
loading: !1,
|
|
2838
2842
|
error: Z(S),
|
|
2839
2843
|
stage: "error",
|
|
2840
|
-
strategy: Z(
|
|
2841
|
-
view: Z(
|
|
2844
|
+
strategy: Z(O),
|
|
2845
|
+
view: Z(k),
|
|
2842
2846
|
retry: i
|
|
2843
2847
|
}), y("player-error", {
|
|
2844
2848
|
error: Z(S),
|
|
2845
|
-
strategy: Z(
|
|
2846
|
-
view: Z(
|
|
2849
|
+
strategy: Z(O),
|
|
2850
|
+
view: Z(k),
|
|
2847
2851
|
retry: i
|
|
2848
2852
|
}), w === t && (w = null);
|
|
2849
2853
|
}
|
|
2850
2854
|
}
|
|
2851
|
-
|
|
2855
|
+
nn(() => {
|
|
2852
2856
|
[
|
|
2853
2857
|
o(),
|
|
2854
|
-
Z(
|
|
2858
|
+
Z(xe),
|
|
2855
2859
|
c(),
|
|
2856
|
-
Z(
|
|
2857
|
-
Z(
|
|
2860
|
+
Z(O),
|
|
2861
|
+
Z(k),
|
|
2858
2862
|
h(),
|
|
2859
2863
|
u(),
|
|
2860
2864
|
d(),
|
|
@@ -2862,138 +2866,146 @@ function ki(t, n) {
|
|
|
2862
2866
|
JSON.stringify(p() || Fr),
|
|
2863
2867
|
m(),
|
|
2864
2868
|
g()
|
|
2865
|
-
].join("|"),
|
|
2866
|
-
}),
|
|
2867
|
-
Z(x) && (
|
|
2869
|
+
].join("|"), Me();
|
|
2870
|
+
}), nn(() => {
|
|
2871
|
+
Z(x) && (ke(_()), Ae(v()), je(l()), requestAnimationFrame(() => {
|
|
2868
2872
|
requestAnimationFrame(() => {
|
|
2869
|
-
|
|
2873
|
+
Ee();
|
|
2870
2874
|
});
|
|
2871
2875
|
}));
|
|
2872
|
-
}), gr(() =>
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2876
|
+
}), gr(() => {
|
|
2877
|
+
if (typeof ae()?.renderMath != "function") {
|
|
2878
|
+
let t = e();
|
|
2879
|
+
window[ie] = { renderMath: t }, t(document.createElement("div"));
|
|
2880
|
+
}
|
|
2881
|
+
return oe = async (e) => {
|
|
2882
|
+
await ae()?.renderMath?.(e);
|
|
2883
|
+
}, b && (se = new MutationObserver(() => {
|
|
2884
|
+
ce && clearTimeout(ce), ce = window.setTimeout(() => {
|
|
2885
|
+
Ee();
|
|
2886
|
+
}, 100);
|
|
2887
|
+
}), Te(), Ee()), () => {
|
|
2888
|
+
ce &&= (clearTimeout(ce), null), se &&= (se.disconnect(), null), ee && ee.replaceChildren(), re++, w?.abort(), w = null, De();
|
|
2889
|
+
};
|
|
2890
|
+
});
|
|
2891
|
+
var Ne = {
|
|
2880
2892
|
get strategy() {
|
|
2881
2893
|
return r();
|
|
2882
2894
|
},
|
|
2883
2895
|
set strategy(e = "esm") {
|
|
2884
|
-
r(e),
|
|
2896
|
+
r(e), P();
|
|
2885
2897
|
},
|
|
2886
2898
|
get view() {
|
|
2887
2899
|
return i();
|
|
2888
2900
|
},
|
|
2889
2901
|
set view(e = "delivery") {
|
|
2890
|
-
i(e),
|
|
2902
|
+
i(e), P();
|
|
2891
2903
|
},
|
|
2892
2904
|
get mode() {
|
|
2893
2905
|
return a();
|
|
2894
2906
|
},
|
|
2895
2907
|
set mode(e = "") {
|
|
2896
|
-
a(e),
|
|
2908
|
+
a(e), P();
|
|
2897
2909
|
},
|
|
2898
2910
|
get elementName() {
|
|
2899
2911
|
return o();
|
|
2900
2912
|
},
|
|
2901
2913
|
set elementName(e = "") {
|
|
2902
|
-
o(e),
|
|
2914
|
+
o(e), P();
|
|
2903
2915
|
},
|
|
2904
2916
|
get packageName() {
|
|
2905
2917
|
return s();
|
|
2906
2918
|
},
|
|
2907
2919
|
set packageName(e = "") {
|
|
2908
|
-
s(e),
|
|
2920
|
+
s(e), P();
|
|
2909
2921
|
},
|
|
2910
2922
|
get elementVersion() {
|
|
2911
2923
|
return c();
|
|
2912
2924
|
},
|
|
2913
2925
|
set elementVersion(e = "latest") {
|
|
2914
|
-
c(e),
|
|
2926
|
+
c(e), P();
|
|
2915
2927
|
},
|
|
2916
2928
|
get role() {
|
|
2917
2929
|
return l();
|
|
2918
2930
|
},
|
|
2919
2931
|
set role(e = "student") {
|
|
2920
|
-
l(e),
|
|
2932
|
+
l(e), P();
|
|
2921
2933
|
},
|
|
2922
2934
|
get cdnUrl() {
|
|
2923
2935
|
return u();
|
|
2924
2936
|
},
|
|
2925
2937
|
set cdnUrl(e = "") {
|
|
2926
|
-
u(e),
|
|
2938
|
+
u(e), P();
|
|
2927
2939
|
},
|
|
2928
2940
|
get iifeBundleEndpoint() {
|
|
2929
2941
|
return d();
|
|
2930
2942
|
},
|
|
2931
2943
|
set iifeBundleEndpoint(e = "/api/bundle") {
|
|
2932
|
-
d(e),
|
|
2944
|
+
d(e), P();
|
|
2933
2945
|
},
|
|
2934
2946
|
get iifeBundleHost() {
|
|
2935
2947
|
return f();
|
|
2936
2948
|
},
|
|
2937
2949
|
set iifeBundleHost(e = "") {
|
|
2938
|
-
f(e),
|
|
2950
|
+
f(e), P();
|
|
2939
2951
|
},
|
|
2940
2952
|
get iifeBundleRetry() {
|
|
2941
2953
|
return p();
|
|
2942
2954
|
},
|
|
2943
2955
|
set iifeBundleRetry(e = Fr) {
|
|
2944
|
-
p(e),
|
|
2956
|
+
p(e), P();
|
|
2945
2957
|
},
|
|
2946
2958
|
get preloadedFallbackStrategy() {
|
|
2947
2959
|
return m();
|
|
2948
2960
|
},
|
|
2949
2961
|
set preloadedFallbackStrategy(e = "esm") {
|
|
2950
|
-
m(e),
|
|
2962
|
+
m(e), P();
|
|
2951
2963
|
},
|
|
2952
2964
|
get runtimeSupportCheck() {
|
|
2953
2965
|
return h();
|
|
2954
2966
|
},
|
|
2955
2967
|
set runtimeSupportCheck(e = "off") {
|
|
2956
|
-
h(e),
|
|
2968
|
+
h(e), P();
|
|
2957
2969
|
},
|
|
2958
2970
|
get rebuildVersion() {
|
|
2959
2971
|
return g();
|
|
2960
2972
|
},
|
|
2961
2973
|
set rebuildVersion(e = 0) {
|
|
2962
|
-
g(e),
|
|
2974
|
+
g(e), P();
|
|
2963
2975
|
},
|
|
2964
2976
|
get model() {
|
|
2965
2977
|
return _();
|
|
2966
2978
|
},
|
|
2967
2979
|
set model(e) {
|
|
2968
|
-
_(e),
|
|
2980
|
+
_(e), P();
|
|
2969
2981
|
},
|
|
2970
2982
|
get session() {
|
|
2971
2983
|
return v();
|
|
2972
2984
|
},
|
|
2973
2985
|
set session(e) {
|
|
2974
|
-
v(e),
|
|
2975
|
-
}
|
|
2976
|
-
},
|
|
2977
|
-
br(
|
|
2978
|
-
var
|
|
2979
|
-
var t = Ti(), n =
|
|
2980
|
-
var t = wi(), n =
|
|
2981
|
-
|
|
2986
|
+
v(e), P();
|
|
2987
|
+
}
|
|
2988
|
+
}, Pe = Di(), A = Wt(Pe);
|
|
2989
|
+
br(A, (e) => ee = e, () => ee);
|
|
2990
|
+
var Fe = Kt(A, 2), Re = (e) => {
|
|
2991
|
+
var t = Ti(), n = Wt(t), r = Kt(n), i = (e) => {
|
|
2992
|
+
var t = wi(), n = Gt(t, !0);
|
|
2993
|
+
un(() => cr(n, Z(ye))), tr(e, t);
|
|
2982
2994
|
};
|
|
2983
2995
|
_r(r, (e) => {
|
|
2984
|
-
Z(
|
|
2985
|
-
}),
|
|
2996
|
+
Z(ye) && e(i);
|
|
2997
|
+
}), ve(t), un(() => cr(n, `Loading ${o() ?? ""} (${Z(O) ?? ""}/${Z(k) ?? ""})... `)), tr(e, t);
|
|
2986
2998
|
};
|
|
2987
|
-
_r(
|
|
2988
|
-
Z(ne) && e(
|
|
2999
|
+
_r(Fe, (e) => {
|
|
3000
|
+
Z(ne) && e(Re);
|
|
2989
3001
|
});
|
|
2990
|
-
var
|
|
2991
|
-
var t = Ei(), n =
|
|
2992
|
-
|
|
3002
|
+
var ze = Kt(Fe, 2), Be = (e) => {
|
|
3003
|
+
var t = Ei(), n = Gt(Kt(Wt(t), 2), !0);
|
|
3004
|
+
ve(t), un(() => cr(n, Z(S))), tr(e, t);
|
|
2993
3005
|
};
|
|
2994
|
-
return _r(
|
|
2995
|
-
Z(S) && e(
|
|
2996
|
-
}),
|
|
3006
|
+
return _r(ze, (e) => {
|
|
3007
|
+
Z(S) && e(Be);
|
|
3008
|
+
}), ve(Pe), br(Pe, (e) => b = e, () => b), tr(t, Pe), Le(Ne);
|
|
2997
3009
|
}
|
|
2998
3010
|
customElements.define("pie-element-player", Or(ki, {
|
|
2999
3011
|
strategy: {
|