@pie-element/element-player 0.1.2-next.1 → 0.1.2-next.11
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 +26 -25
- package/dist/index.d.ts +1 -1
- package/dist/lib/element-loader.d.ts +1 -1
- package/dist/lib/math-rendering-types.d.ts +0 -6
- package/dist/lib/types.d.ts +0 -6
- package/dist/lib/unified-player-loader.d.ts +4 -4
- package/dist/math-mathjax-iaHklMFp.js +172 -0
- package/dist/pie-element-player.css +1 -1
- package/dist/pie-element-player.js +960 -957
- package/package.json +2 -2
- package/dist/math-mathjax-YIPQGZlD.js +0 -59
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as e } from "./math-mathjax-
|
|
2
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1
|
+
import { t as e } from "./math-mathjax-iaHklMFp.js";
|
|
2
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/disclose-version.js
|
|
3
3
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
|
|
4
4
|
//#endregion
|
|
5
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
5
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/constants.js
|
|
6
6
|
var t = {}, n = Symbol("uninitialized"), r = Array.isArray, i = Array.prototype.indexOf, a = Array.prototype.includes, o = Array.from, s = Object.keys, c = Object.defineProperty, l = Object.getOwnPropertyDescriptor, u = Object.prototype, d = Array.prototype, f = Object.getPrototypeOf, p = Object.isExtensible, m = () => {};
|
|
7
7
|
function h(e) {
|
|
8
8
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
@@ -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 =
|
|
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, T = 1 << 23, E = Symbol("$state"), ie = Symbol("component"), ae = Symbol("legacy props"), oe = Symbol("attributes"), se = Symbol("class"), ce = Symbol("style"), le = Symbol("text"), ue = 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 de() {
|
|
26
26
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function fe(e) {
|
|
29
29
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function pe() {
|
|
32
32
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
33
33
|
}
|
|
34
34
|
//#endregion
|
|
35
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
35
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/hydration.js
|
|
36
36
|
var D = !1;
|
|
37
|
-
function
|
|
37
|
+
function O(e) {
|
|
38
38
|
D = e;
|
|
39
39
|
}
|
|
40
|
-
var
|
|
41
|
-
function
|
|
42
|
-
if (e === null) throw
|
|
43
|
-
return
|
|
40
|
+
var k;
|
|
41
|
+
function A(e) {
|
|
42
|
+
if (e === null) throw fe(), t;
|
|
43
|
+
return k = e;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
return
|
|
45
|
+
function me() {
|
|
46
|
+
return A(/* @__PURE__ */ Vt(k));
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function he(e) {
|
|
49
49
|
if (D) {
|
|
50
|
-
if (/* @__PURE__ */
|
|
51
|
-
|
|
50
|
+
if (/* @__PURE__ */ Vt(k) !== null) throw fe(), t;
|
|
51
|
+
k = e;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
function j(e = 1) {
|
|
55
55
|
if (D) {
|
|
56
|
-
for (var t = e, n =
|
|
57
|
-
|
|
56
|
+
for (var t = e, n = k; t--;) n = /* @__PURE__ */ Vt(n);
|
|
57
|
+
k = n;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
for (var t = 0, n =
|
|
60
|
+
function M(e = !0) {
|
|
61
|
+
for (var t = 0, n = k;;) {
|
|
62
62
|
if (n.nodeType === 8) {
|
|
63
63
|
var r = n.data;
|
|
64
64
|
if (r === "]") {
|
|
@@ -66,248 +66,234 @@ function _e(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__ */ Vt(n);
|
|
70
70
|
e && n.remove(), n = i;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
if (!e || e.nodeType !== 8) throw
|
|
73
|
+
function ge(e) {
|
|
74
|
+
if (!e || e.nodeType !== 8) throw fe(), t;
|
|
75
75
|
return e.data;
|
|
76
76
|
}
|
|
77
77
|
//#endregion
|
|
78
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
79
|
-
function
|
|
78
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/equality.js
|
|
79
|
+
function _e(e) {
|
|
80
80
|
return e === this.v;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function ve(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 ye(e) {
|
|
86
|
+
return !ve(e, this.v);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function be(e) {
|
|
89
89
|
throw Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
90
90
|
}
|
|
91
91
|
//#endregion
|
|
92
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
93
|
-
function
|
|
92
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/errors.js
|
|
93
|
+
function xe() {
|
|
94
94
|
throw Error("https://svelte.dev/e/async_derived_orphan");
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Se(e) {
|
|
97
97
|
throw Error("https://svelte.dev/e/effect_in_teardown");
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Ce() {
|
|
100
100
|
throw Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function we(e) {
|
|
103
103
|
throw Error("https://svelte.dev/e/effect_orphan");
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Te() {
|
|
106
106
|
throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Ee() {
|
|
109
109
|
throw Error("https://svelte.dev/e/hydration_failed");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function De(e) {
|
|
112
112
|
throw Error("https://svelte.dev/e/props_invalid_value");
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Oe() {
|
|
115
115
|
throw Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function ke() {
|
|
118
118
|
throw Error("https://svelte.dev/e/state_prototype_fixed");
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Ae() {
|
|
121
121
|
throw Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function je() {
|
|
124
124
|
throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
125
125
|
}
|
|
126
126
|
//#endregion
|
|
127
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
128
|
-
var
|
|
129
|
-
function
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
function
|
|
133
|
-
|
|
134
|
-
p:
|
|
127
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/context.js
|
|
128
|
+
var N = null;
|
|
129
|
+
function Me(e) {
|
|
130
|
+
N = e;
|
|
131
|
+
}
|
|
132
|
+
function Ne(e, t = !1, n) {
|
|
133
|
+
N = {
|
|
134
|
+
p: N,
|
|
135
135
|
i: !1,
|
|
136
136
|
c: null,
|
|
137
137
|
e: null,
|
|
138
138
|
s: e,
|
|
139
139
|
x: null,
|
|
140
|
-
r:
|
|
140
|
+
r: q,
|
|
141
141
|
l: null
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
var t =
|
|
144
|
+
function Pe(e) {
|
|
145
|
+
var t = N, 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) tn(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, N = t.p, Fe(e);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
return c(e,
|
|
152
|
+
function Fe(e = {}) {
|
|
153
|
+
return c(e, ie, { value: !0 }), e;
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Ie() {
|
|
156
156
|
return !0;
|
|
157
157
|
}
|
|
158
158
|
//#endregion
|
|
159
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
160
|
-
var
|
|
161
|
-
function
|
|
162
|
-
var e =
|
|
163
|
-
|
|
159
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/task.js
|
|
160
|
+
var Le = [];
|
|
161
|
+
function Re() {
|
|
162
|
+
var e = Le;
|
|
163
|
+
Le = [], h(e);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
if (
|
|
167
|
-
var t =
|
|
165
|
+
function ze(e) {
|
|
166
|
+
if (Le.length === 0 && !ct) {
|
|
167
|
+
var t = Le;
|
|
168
168
|
queueMicrotask(() => {
|
|
169
|
-
t ===
|
|
169
|
+
t === Le && Re();
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
function He() {
|
|
175
|
-
for (; ze.length > 0;) Be();
|
|
172
|
+
Le.push(e);
|
|
176
173
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
var Ue = ~(v | y | _);
|
|
180
|
-
function N(e, t) {
|
|
181
|
-
e.f = e.f & Ue | t;
|
|
182
|
-
}
|
|
183
|
-
function We(e) {
|
|
184
|
-
e.f & 512 || e.deps === null ? N(e, _) : N(e, y);
|
|
174
|
+
function Be() {
|
|
175
|
+
for (; Le.length > 0;) Re();
|
|
185
176
|
}
|
|
186
177
|
//#endregion
|
|
187
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
188
|
-
|
|
189
|
-
|
|
178
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/status.js
|
|
179
|
+
var Ve = ~(v | y | _);
|
|
180
|
+
function P(e, t) {
|
|
181
|
+
e.f = e.f & Ve | t;
|
|
190
182
|
}
|
|
191
|
-
function
|
|
192
|
-
e.f &
|
|
183
|
+
function He(e) {
|
|
184
|
+
e.f & 512 || e.deps === null ? P(e, _) : P(e, y);
|
|
193
185
|
}
|
|
194
186
|
//#endregion
|
|
195
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
var t = qe;
|
|
199
|
-
try {
|
|
200
|
-
return qe = !1, [e(), qe];
|
|
201
|
-
} finally {
|
|
202
|
-
qe = t;
|
|
203
|
-
}
|
|
187
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/utils.js
|
|
188
|
+
function Ue(e, t, n) {
|
|
189
|
+
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), P(e, _);
|
|
204
190
|
}
|
|
205
191
|
//#endregion
|
|
206
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
207
|
-
function
|
|
208
|
-
var t =
|
|
209
|
-
|
|
192
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
|
|
193
|
+
function We(e) {
|
|
194
|
+
var t = W, n = q;
|
|
195
|
+
K(null), Tn(null);
|
|
210
196
|
try {
|
|
211
197
|
return e();
|
|
212
198
|
} finally {
|
|
213
|
-
|
|
199
|
+
K(t), Tn(n);
|
|
214
200
|
}
|
|
215
201
|
}
|
|
216
202
|
//#endregion
|
|
217
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
218
|
-
function
|
|
219
|
-
let i =
|
|
203
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/async.js
|
|
204
|
+
function Ge(e, t, n, r) {
|
|
205
|
+
let i = Ie() ? Ye : $e;
|
|
220
206
|
var a = e.filter((e) => !e.settled), o = t.map(i);
|
|
221
207
|
if (n.length === 0 && a.length === 0) {
|
|
222
208
|
r(o);
|
|
223
209
|
return;
|
|
224
210
|
}
|
|
225
|
-
var s =
|
|
211
|
+
var s = q, c = Ke(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
|
|
226
212
|
function u(e) {
|
|
227
213
|
if (!(s.f & 16384)) {
|
|
228
214
|
c();
|
|
229
215
|
try {
|
|
230
216
|
r([...o, ...e]);
|
|
231
217
|
} catch (e) {
|
|
232
|
-
|
|
218
|
+
V(e, s);
|
|
233
219
|
}
|
|
234
|
-
|
|
220
|
+
qe();
|
|
235
221
|
}
|
|
236
222
|
}
|
|
237
|
-
var d =
|
|
223
|
+
var d = Je();
|
|
238
224
|
if (n.length === 0) {
|
|
239
225
|
l.then(() => u([])).finally(d);
|
|
240
226
|
return;
|
|
241
227
|
}
|
|
242
228
|
function f() {
|
|
243
|
-
Promise.all(n.map((e) => /* @__PURE__ */
|
|
229
|
+
Promise.all(n.map((e) => /* @__PURE__ */ Ze(e))).then(u).catch((e) => V(e, s)).finally(d);
|
|
244
230
|
}
|
|
245
231
|
l ? l.then(() => {
|
|
246
|
-
c(), f(),
|
|
232
|
+
c(), f(), qe();
|
|
247
233
|
}) : f();
|
|
248
234
|
}
|
|
249
|
-
function
|
|
250
|
-
var e =
|
|
235
|
+
function Ke() {
|
|
236
|
+
var e = q, t = W, n = N, r = F;
|
|
251
237
|
return function(i = !0) {
|
|
252
|
-
|
|
238
|
+
Tn(e), K(t), Me(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
|
|
253
239
|
};
|
|
254
240
|
}
|
|
255
|
-
function
|
|
256
|
-
|
|
241
|
+
function qe(e = !0) {
|
|
242
|
+
Tn(null), K(null), Me(null), e && F?.deactivate();
|
|
257
243
|
}
|
|
258
|
-
function
|
|
259
|
-
var e =
|
|
244
|
+
function Je() {
|
|
245
|
+
var e = q, t = e.b, n = F, r = !!t?.is_rendered();
|
|
260
246
|
return t?.update_pending_count(1, n), n.increment(r, e), () => {
|
|
261
247
|
t?.update_pending_count(-1, n), n.decrement(r, e);
|
|
262
248
|
};
|
|
263
249
|
}
|
|
264
250
|
/*#__NO_SIDE_EFFECTS__*/
|
|
265
|
-
function
|
|
251
|
+
function Ye(e) {
|
|
266
252
|
var t = 2 | v;
|
|
267
|
-
return
|
|
268
|
-
ctx:
|
|
253
|
+
return q !== null && (q.f |= S), {
|
|
254
|
+
ctx: N,
|
|
269
255
|
deps: null,
|
|
270
256
|
effects: null,
|
|
271
|
-
equals:
|
|
257
|
+
equals: _e,
|
|
272
258
|
f: t,
|
|
273
259
|
fn: e,
|
|
274
260
|
reactions: null,
|
|
275
261
|
rv: 0,
|
|
276
262
|
v: n,
|
|
277
263
|
wv: 0,
|
|
278
|
-
parent:
|
|
264
|
+
parent: q,
|
|
279
265
|
ac: null
|
|
280
266
|
};
|
|
281
267
|
}
|
|
282
|
-
var
|
|
268
|
+
var Xe = Symbol("obsolete");
|
|
283
269
|
/*#__NO_SIDE_EFFECTS__*/
|
|
284
|
-
function
|
|
285
|
-
let i =
|
|
286
|
-
i === null &&
|
|
287
|
-
var a = void 0, o =
|
|
288
|
-
return
|
|
289
|
-
var t =
|
|
270
|
+
function Ze(e, t, r) {
|
|
271
|
+
let i = q;
|
|
272
|
+
i === null && xe();
|
|
273
|
+
var a = void 0, o = Tt(n), s = !W, c = /* @__PURE__ */ new Set();
|
|
274
|
+
return on(() => {
|
|
275
|
+
var t = q, n = g();
|
|
290
276
|
a = n.promise;
|
|
291
277
|
try {
|
|
292
278
|
Promise.resolve(e()).then(n.resolve, (e) => {
|
|
293
|
-
e !==
|
|
294
|
-
}).finally(
|
|
279
|
+
e !== ue && n.reject(e);
|
|
280
|
+
}).finally(qe);
|
|
295
281
|
} catch (e) {
|
|
296
|
-
n.reject(e),
|
|
282
|
+
n.reject(e), qe();
|
|
297
283
|
}
|
|
298
|
-
var r =
|
|
284
|
+
var r = F;
|
|
299
285
|
if (s) {
|
|
300
|
-
if (t.f & 32768) var l =
|
|
301
|
-
if (i.b?.is_rendered()) r.async_deriveds.get(t)?.reject(
|
|
302
|
-
else for (let e of c.values()) e.reject(
|
|
286
|
+
if (t.f & 32768) var l = Je();
|
|
287
|
+
if (i.b?.is_rendered()) r.async_deriveds.get(t)?.reject(Xe);
|
|
288
|
+
else for (let e of c.values()) e.reject(Xe);
|
|
303
289
|
c.add(n), r.async_deriveds.set(t, n);
|
|
304
290
|
}
|
|
305
291
|
let u = (e, t = void 0) => {
|
|
306
|
-
l?.(), c.delete(n), t !==
|
|
292
|
+
l?.(), c.delete(n), t !== Xe && (r.activate(), t ? (o.f |= T, kt(o, t)) : (o.f & 8388608 && (o.f ^= T), kt(o, e)), r.deactivate());
|
|
307
293
|
};
|
|
308
294
|
n.promise.then(u, (e) => u(null, e || "unknown"));
|
|
309
|
-
}),
|
|
310
|
-
for (let e of c) e.reject(
|
|
295
|
+
}), $t(() => {
|
|
296
|
+
for (let e of c) e.reject(Xe);
|
|
311
297
|
}), new Promise((e) => {
|
|
312
298
|
function t(n) {
|
|
313
299
|
function r() {
|
|
@@ -319,53 +305,53 @@ function nt(e, t, r) {
|
|
|
319
305
|
});
|
|
320
306
|
}
|
|
321
307
|
/*#__NO_SIDE_EFFECTS__*/
|
|
322
|
-
function
|
|
323
|
-
let t = /* @__PURE__ */
|
|
324
|
-
return
|
|
308
|
+
function Qe(e) {
|
|
309
|
+
let t = /* @__PURE__ */ Ye(e);
|
|
310
|
+
return Dn(t), t;
|
|
325
311
|
}
|
|
326
312
|
/*#__NO_SIDE_EFFECTS__*/
|
|
327
|
-
function
|
|
328
|
-
let t = /* @__PURE__ */
|
|
329
|
-
return t.equals =
|
|
313
|
+
function $e(e) {
|
|
314
|
+
let t = /* @__PURE__ */ Ye(e);
|
|
315
|
+
return t.equals = ye, t;
|
|
330
316
|
}
|
|
331
|
-
function
|
|
317
|
+
function et(e) {
|
|
332
318
|
var t = e.effects;
|
|
333
319
|
if (t !== null) {
|
|
334
320
|
e.effects = null;
|
|
335
|
-
for (var n = 0; n < t.length; n += 1)
|
|
321
|
+
for (var n = 0; n < t.length; n += 1) U(t[n]);
|
|
336
322
|
}
|
|
337
323
|
}
|
|
338
|
-
function
|
|
339
|
-
var t, r =
|
|
340
|
-
if (!
|
|
341
|
-
|
|
324
|
+
function tt(e) {
|
|
325
|
+
var t, r = q, i = e.parent;
|
|
326
|
+
if (!Cn && i !== null && e.v !== n && i.f & 24576) return de(), e.v;
|
|
327
|
+
Tn(i);
|
|
342
328
|
try {
|
|
343
|
-
|
|
329
|
+
et(e), t = In(e);
|
|
344
330
|
} finally {
|
|
345
|
-
|
|
331
|
+
Tn(r);
|
|
346
332
|
}
|
|
347
333
|
return t;
|
|
348
334
|
}
|
|
349
|
-
function
|
|
350
|
-
var t =
|
|
351
|
-
if (!e.equals(t) && (e.wv =
|
|
352
|
-
|
|
335
|
+
function nt(e) {
|
|
336
|
+
var t = tt(e);
|
|
337
|
+
if (!e.equals(t) && (e.wv = Nn(), (!F?.is_fork || e.deps === null) && (F === null ? e.v = t : (F.capture(e, t, !0), ot?.capture(e, t, !0)), e.deps === null))) {
|
|
338
|
+
P(e, _);
|
|
353
339
|
return;
|
|
354
340
|
}
|
|
355
|
-
|
|
341
|
+
Cn || (I === null ? He(e) : (Qt() || F?.is_fork) && I.set(e, t));
|
|
356
342
|
}
|
|
357
|
-
function
|
|
358
|
-
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null &&
|
|
359
|
-
t.ac.abort(
|
|
360
|
-
}), t.fn !== null && (t.teardown = m),
|
|
343
|
+
function rt(e) {
|
|
344
|
+
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && We(() => {
|
|
345
|
+
t.ac.abort(ue), t.ac = null;
|
|
346
|
+
}), t.fn !== null && (t.teardown = m), zn(t, 0), fn(t));
|
|
361
347
|
}
|
|
362
|
-
function
|
|
363
|
-
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null &&
|
|
348
|
+
function it(e) {
|
|
349
|
+
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Bn(t);
|
|
364
350
|
}
|
|
365
351
|
//#endregion
|
|
366
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
367
|
-
var
|
|
368
|
-
id =
|
|
352
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/batch.js
|
|
353
|
+
var at = null, F = null, ot = null, I = null, st = null, ct = !1, lt = !1, ut = null, dt = null, ft = 0, pt = 1, mt = class e {
|
|
354
|
+
id = pt++;
|
|
369
355
|
#e = !1;
|
|
370
356
|
linked = !0;
|
|
371
357
|
#t = null;
|
|
@@ -387,7 +373,7 @@ var ut = null, P = null, dt = null, F = null, ft = null, pt = !1, mt = !1, ht =
|
|
|
387
373
|
is_fork = !1;
|
|
388
374
|
#m = !1;
|
|
389
375
|
constructor() {
|
|
390
|
-
|
|
376
|
+
at === null ? at = this : (at.#n = this, this.#t = at), at = this;
|
|
391
377
|
}
|
|
392
378
|
#h() {
|
|
393
379
|
if (this.is_fork) return !0;
|
|
@@ -413,54 +399,73 @@ var ut = null, P = null, dt = null, F = null, ft = null, pt = !1, mt = !1, ht =
|
|
|
413
399
|
var n = this.#f.get(e);
|
|
414
400
|
if (n) {
|
|
415
401
|
this.#f.delete(e);
|
|
416
|
-
for (var r of n.d)
|
|
417
|
-
for (r of n.m)
|
|
402
|
+
for (var r of n.d) P(r, v), t(r);
|
|
403
|
+
for (r of n.m) P(r, y), t(r);
|
|
418
404
|
}
|
|
419
405
|
this.#p.add(e);
|
|
420
406
|
}
|
|
421
407
|
#g() {
|
|
422
|
-
|
|
423
|
-
for (let
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
408
|
+
var e = [];
|
|
409
|
+
for (let i of this.#c) if (!(i.f & 16384 || !(i.f & 6144))) {
|
|
410
|
+
for (var t = i, n = !1; t.parent !== null;) {
|
|
411
|
+
t = t.parent;
|
|
412
|
+
var r = t.f;
|
|
413
|
+
if (r & 96) {
|
|
414
|
+
if (!(r & 1024)) {
|
|
415
|
+
n = !0;
|
|
416
|
+
break;
|
|
417
|
+
}
|
|
418
|
+
t.f ^= _;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
n || e.push(t);
|
|
422
|
+
}
|
|
423
|
+
return this.#c = [], e;
|
|
424
|
+
}
|
|
425
|
+
#_() {
|
|
426
|
+
this.#e = !0;
|
|
427
|
+
for (let e of this.#u) this.#d.delete(e), P(e, v), this.schedule(e);
|
|
428
|
+
for (let e of this.#d) P(e, y), this.schedule(e);
|
|
429
|
+
this.apply();
|
|
430
|
+
for (var t = ut = [], n = [], r = dt = []; this.#c.length > 0;) {
|
|
431
|
+
ft++ > 1e3 && (this.#S(), ht());
|
|
432
|
+
for (let e of this.#g()) try {
|
|
433
|
+
this.#v(e, t, n);
|
|
434
|
+
} catch (t) {
|
|
435
|
+
throw St(e), this.#h() || this.discard(), t;
|
|
436
|
+
}
|
|
432
437
|
}
|
|
433
|
-
if (
|
|
434
|
-
var
|
|
435
|
-
for (let e of
|
|
438
|
+
if (F = null, r.length > 0) {
|
|
439
|
+
var i = e.ensure();
|
|
440
|
+
for (let e of r) i.schedule(e);
|
|
436
441
|
}
|
|
437
|
-
if (
|
|
438
|
-
this.#
|
|
439
|
-
for (let [e, t] of this.#f)
|
|
440
|
-
|
|
442
|
+
if (ut = null, dt = null, this.#h()) {
|
|
443
|
+
this.#x(n), this.#x(t);
|
|
444
|
+
for (let [e, t] of this.#f) xt(e, t);
|
|
445
|
+
r.length > 0 && F.#_();
|
|
441
446
|
return;
|
|
442
447
|
}
|
|
443
|
-
let
|
|
444
|
-
if (
|
|
445
|
-
this.#
|
|
448
|
+
let a = this.#y();
|
|
449
|
+
if (a) {
|
|
450
|
+
this.#x(n), this.#x(t), a.#b(this);
|
|
446
451
|
return;
|
|
447
452
|
}
|
|
448
453
|
this.#u.clear(), this.#d.clear();
|
|
449
454
|
for (let e of this.#r) e(this);
|
|
450
|
-
this.#r.clear(),
|
|
451
|
-
var
|
|
452
|
-
if (this.#a === 0 && (this.#c.length === 0 ||
|
|
453
|
-
let e
|
|
454
|
-
|
|
455
|
-
} else
|
|
456
|
-
|
|
457
|
-
}
|
|
458
|
-
#
|
|
455
|
+
this.#r.clear(), ot = this, _t(n), _t(t), ot = null, this.#s?.resolve();
|
|
456
|
+
var o = F;
|
|
457
|
+
if (this.#a === 0 && (this.#c.length === 0 || o !== null) && this.#S(), this.#c.length > 0) if (o !== null) {
|
|
458
|
+
for (let e of this.#c) o.#c.push(e);
|
|
459
|
+
this.#c = [];
|
|
460
|
+
} else o = this;
|
|
461
|
+
o !== null && (R.clear(), o.#_());
|
|
462
|
+
}
|
|
463
|
+
#v(e, t, n) {
|
|
459
464
|
e.f ^= _;
|
|
460
465
|
for (var r = e.first; r !== null;) {
|
|
461
466
|
var i = r.f, a = (i & 96) != 0;
|
|
462
467
|
if (!(a && i & 1024 || i & 8192 || this.#f.has(r)) && r.fn !== null) {
|
|
463
|
-
a ? r.f ^= _ : i & 4 ? t.push(r) :
|
|
468
|
+
a ? r.f ^= _ : i & 4 ? t.push(r) : Pn(r) && (i & 16 && this.#d.add(r), Bn(r));
|
|
464
469
|
var o = r.first;
|
|
465
470
|
if (o !== null) {
|
|
466
471
|
r = o;
|
|
@@ -477,7 +482,7 @@ var ut = null, P = null, dt = null, F = null, ft = null, pt = !1, mt = !1, ht =
|
|
|
477
482
|
}
|
|
478
483
|
}
|
|
479
484
|
}
|
|
480
|
-
#
|
|
485
|
+
#y() {
|
|
481
486
|
for (var e = this.#t; e !== null;) {
|
|
482
487
|
if (!e.is_fork) {
|
|
483
488
|
for (let [t, [, n]] of this.current) if (e.current.has(t) && !n) return e;
|
|
@@ -486,7 +491,7 @@ var ut = null, P = null, dt = null, F = null, ft = null, pt = !1, mt = !1, ht =
|
|
|
486
491
|
}
|
|
487
492
|
return null;
|
|
488
493
|
}
|
|
489
|
-
#
|
|
494
|
+
#b(e) {
|
|
490
495
|
for (let [t, n] of e.current) !this.previous.has(t) && e.previous.has(t) && this.previous.set(t, e.previous.get(t)), this.current.set(t, n);
|
|
491
496
|
for (let [t, n] of e.async_deriveds) {
|
|
492
497
|
let e = this.async_deriveds.get(t);
|
|
@@ -500,37 +505,37 @@ var ut = null, P = null, dt = null, F = null, ft = null, pt = !1, mt = !1, ht =
|
|
|
500
505
|
if (r & 2) t(e);
|
|
501
506
|
else {
|
|
502
507
|
var i = e;
|
|
503
|
-
r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i),
|
|
508
|
+
r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), P(i, v), this.schedule(i));
|
|
504
509
|
}
|
|
505
510
|
}
|
|
506
511
|
};
|
|
507
512
|
for (let e of this.current.keys()) t(e);
|
|
508
|
-
this.oncommit(() => e.discard()), e.#
|
|
513
|
+
this.oncommit(() => e.discard()), e.#S(), F = this, this.#_();
|
|
509
514
|
}
|
|
510
|
-
#
|
|
511
|
-
for (var t = 0; t < e.length; t += 1)
|
|
515
|
+
#x(e) {
|
|
516
|
+
for (var t = 0; t < e.length; t += 1) Ue(e[t], this.#u, this.#d);
|
|
512
517
|
}
|
|
513
518
|
capture(e, t, r = !1) {
|
|
514
|
-
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]), I?.set(e, t)), this.is_fork || (e.v = t);
|
|
515
520
|
}
|
|
516
521
|
activate() {
|
|
517
|
-
|
|
522
|
+
F = this;
|
|
518
523
|
}
|
|
519
524
|
deactivate() {
|
|
520
|
-
|
|
525
|
+
F = null, I = null;
|
|
521
526
|
}
|
|
522
527
|
flush() {
|
|
523
528
|
try {
|
|
524
|
-
|
|
529
|
+
lt = !0, F = this, this.#_();
|
|
525
530
|
} finally {
|
|
526
|
-
|
|
531
|
+
ft = 0, st = null, ut = null, dt = null, lt = !1, F = null, I = null, R.clear();
|
|
527
532
|
}
|
|
528
533
|
}
|
|
529
534
|
discard() {
|
|
530
535
|
for (let e of this.#i) e(this);
|
|
531
536
|
this.#i.clear();
|
|
532
|
-
for (let e of this.async_deriveds.values()) e.reject(
|
|
533
|
-
this.#
|
|
537
|
+
for (let e of this.async_deriveds.values()) e.reject(Xe);
|
|
538
|
+
this.#S(), this.#s?.resolve();
|
|
534
539
|
}
|
|
535
540
|
register_created_effect(e) {
|
|
536
541
|
this.#l.push(e);
|
|
@@ -546,7 +551,7 @@ var ut = null, P = null, dt = null, F = null, ft = null, pt = !1, mt = !1, ht =
|
|
|
546
551
|
let e = this.#o.get(t) ?? 0;
|
|
547
552
|
e === 1 ? this.#o.delete(t) : this.#o.set(t, e - 1);
|
|
548
553
|
}
|
|
549
|
-
this.#m || (this.#m = !0,
|
|
554
|
+
this.#m || (this.#m = !0, ze(() => {
|
|
550
555
|
this.#m = !1, this.linked && this.flush();
|
|
551
556
|
}));
|
|
552
557
|
}
|
|
@@ -565,233 +570,232 @@ var ut = null, P = null, dt = null, F = null, ft = null, pt = !1, mt = !1, ht =
|
|
|
565
570
|
return (this.#s ??= g()).promise;
|
|
566
571
|
}
|
|
567
572
|
static ensure() {
|
|
568
|
-
if (
|
|
569
|
-
let t =
|
|
570
|
-
!
|
|
573
|
+
if (F === null) {
|
|
574
|
+
let t = F = new e();
|
|
575
|
+
!lt && !ct && ze(() => {
|
|
571
576
|
t.#e || t.flush();
|
|
572
577
|
});
|
|
573
578
|
}
|
|
574
|
-
return
|
|
579
|
+
return F;
|
|
575
580
|
}
|
|
576
581
|
apply() {
|
|
577
|
-
|
|
582
|
+
I = null;
|
|
578
583
|
}
|
|
579
584
|
schedule(e) {
|
|
580
|
-
if (
|
|
585
|
+
if (st = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
|
|
581
586
|
e.b.defer_effect(e);
|
|
582
587
|
return;
|
|
583
588
|
}
|
|
584
|
-
|
|
585
|
-
t = t.parent;
|
|
586
|
-
var n = t.f;
|
|
587
|
-
if (ht !== null && t === G && (H === null || !(H.f & 2))) return;
|
|
588
|
-
if (n & 96) {
|
|
589
|
-
if (!(n & 1024)) return;
|
|
590
|
-
t.f ^= _;
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
this.#c.push(t);
|
|
589
|
+
this.#c.push(e);
|
|
594
590
|
}
|
|
595
|
-
#
|
|
591
|
+
#S() {
|
|
596
592
|
if (this.linked) {
|
|
597
593
|
var e = this.#t, t = this.#n;
|
|
598
|
-
e === null || (e.#n = t), t === null ?
|
|
594
|
+
e === null || (e.#n = t), t === null ? at = e : t.#t = e, this.linked = !1;
|
|
599
595
|
}
|
|
600
596
|
}
|
|
601
597
|
};
|
|
602
|
-
function
|
|
603
|
-
var t =
|
|
604
|
-
|
|
598
|
+
function L(e) {
|
|
599
|
+
var t = ct;
|
|
600
|
+
ct = !0;
|
|
605
601
|
try {
|
|
606
602
|
var n;
|
|
607
|
-
for (e && (
|
|
608
|
-
if (
|
|
609
|
-
|
|
603
|
+
for (e && (F !== null && !F.is_fork && F.flush(), n = e());;) {
|
|
604
|
+
if (Be(), F === null) return n;
|
|
605
|
+
F.flush();
|
|
610
606
|
}
|
|
611
607
|
} finally {
|
|
612
|
-
|
|
608
|
+
ct = t;
|
|
613
609
|
}
|
|
614
610
|
}
|
|
615
|
-
function
|
|
611
|
+
function ht() {
|
|
616
612
|
try {
|
|
617
|
-
|
|
613
|
+
Te();
|
|
618
614
|
} catch (e) {
|
|
619
|
-
|
|
615
|
+
V(e, st);
|
|
620
616
|
}
|
|
621
617
|
}
|
|
622
|
-
var
|
|
623
|
-
function
|
|
618
|
+
var gt = null;
|
|
619
|
+
function _t(e) {
|
|
624
620
|
var t = e.length;
|
|
625
621
|
if (t !== 0) {
|
|
626
622
|
for (var n = 0; n < t;) {
|
|
627
623
|
var r = e[n++];
|
|
628
|
-
if (!(r.f & 24576) &&
|
|
629
|
-
|
|
630
|
-
for (let e of
|
|
624
|
+
if (!(r.f & 24576) && Pn(r) && (gt = /* @__PURE__ */ new Set(), Bn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && hn(r), gt?.size > 0)) {
|
|
625
|
+
R.clear();
|
|
626
|
+
for (let e of gt) {
|
|
631
627
|
if (e.f & 24576) continue;
|
|
632
628
|
let t = [e], n = e.parent;
|
|
633
|
-
for (; n !== null;)
|
|
629
|
+
for (; n !== null;) gt.has(n) && (gt.delete(n), t.push(n)), n = n.parent;
|
|
634
630
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
635
631
|
let n = t[e];
|
|
636
|
-
n.f & 24576 ||
|
|
632
|
+
n.f & 24576 || Bn(n);
|
|
637
633
|
}
|
|
638
634
|
}
|
|
639
|
-
|
|
635
|
+
gt.clear();
|
|
640
636
|
}
|
|
641
637
|
}
|
|
642
|
-
|
|
638
|
+
gt = null;
|
|
643
639
|
}
|
|
644
640
|
}
|
|
645
|
-
function
|
|
641
|
+
function vt(e, t, n, r) {
|
|
646
642
|
if (!n.has(e) && (n.add(e), e.reactions !== null)) for (let i of e.reactions) {
|
|
647
643
|
let e = i.f;
|
|
648
|
-
e & 2 ?
|
|
644
|
+
e & 2 ? vt(i, t, n, r) : e & 4194320 && !(e & 2048) && yt(i, t, r) && (P(i, v), bt(i));
|
|
649
645
|
}
|
|
650
646
|
}
|
|
651
|
-
function
|
|
647
|
+
function yt(e, t, n) {
|
|
652
648
|
let r = n.get(e);
|
|
653
649
|
if (r !== void 0) return r;
|
|
654
650
|
if (e.deps !== null) for (let r of e.deps) {
|
|
655
651
|
if (a.call(t, r)) return !0;
|
|
656
|
-
if (r.f & 2 &&
|
|
652
|
+
if (r.f & 2 && yt(r, t, n)) return n.set(r, !0), !0;
|
|
657
653
|
}
|
|
658
654
|
return n.set(e, !1), !1;
|
|
659
655
|
}
|
|
660
|
-
function
|
|
661
|
-
|
|
656
|
+
function bt(e) {
|
|
657
|
+
F.schedule(e);
|
|
662
658
|
}
|
|
663
|
-
function
|
|
659
|
+
function xt(e, t) {
|
|
664
660
|
if (!(e.f & 32 && e.f & 1024)) {
|
|
665
|
-
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e),
|
|
666
|
-
for (var n = e.first; n !== null;)
|
|
661
|
+
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), P(e, _);
|
|
662
|
+
for (var n = e.first; n !== null;) xt(n, t), n = n.next;
|
|
667
663
|
}
|
|
668
664
|
}
|
|
669
|
-
function
|
|
670
|
-
|
|
671
|
-
for (var t = e.first; t !== null;)
|
|
665
|
+
function St(e) {
|
|
666
|
+
P(e, _);
|
|
667
|
+
for (var t = e.first; t !== null;) St(t), t = t.next;
|
|
672
668
|
}
|
|
673
669
|
//#endregion
|
|
674
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
675
|
-
var
|
|
676
|
-
function
|
|
670
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/sources.js
|
|
671
|
+
var Ct = /* @__PURE__ */ new Set(), R = /* @__PURE__ */ new Map(), wt = !1;
|
|
672
|
+
function Tt(e, t) {
|
|
677
673
|
return {
|
|
678
674
|
f: 0,
|
|
679
675
|
v: e,
|
|
680
676
|
reactions: null,
|
|
681
|
-
equals:
|
|
677
|
+
equals: _e,
|
|
682
678
|
rv: 0,
|
|
683
679
|
wv: 0
|
|
684
680
|
};
|
|
685
681
|
}
|
|
686
682
|
/*#__NO_SIDE_EFFECTS__*/
|
|
687
|
-
function
|
|
688
|
-
let n =
|
|
689
|
-
return
|
|
683
|
+
function z(e, t) {
|
|
684
|
+
let n = Tt(e, t);
|
|
685
|
+
return Dn(n), n;
|
|
690
686
|
}
|
|
691
687
|
/*#__NO_SIDE_EFFECTS__*/
|
|
692
|
-
function
|
|
693
|
-
let r =
|
|
694
|
-
return t || (r.equals =
|
|
688
|
+
function Et(e, t = !1, n = !0) {
|
|
689
|
+
let r = Tt(e);
|
|
690
|
+
return t || (r.equals = ye), r;
|
|
695
691
|
}
|
|
696
|
-
function
|
|
697
|
-
return
|
|
692
|
+
function B(e, t, n = !1) {
|
|
693
|
+
return W !== null && (!G || W.f & 131072) && Ie() && W.f & 4325394 && (En === null || !En.has(e)) && Ae(), kt(e, n ? Nt(t) : t, dt);
|
|
698
694
|
}
|
|
699
|
-
|
|
695
|
+
var Dt = null, Ot = 0;
|
|
696
|
+
function kt(e, t, n = null) {
|
|
700
697
|
if (!e.equals(t)) {
|
|
701
|
-
|
|
702
|
-
var r =
|
|
698
|
+
Cn ? R.set(e, t) : R.has(e) || R.set(e, e.v);
|
|
699
|
+
var r = mt.ensure();
|
|
703
700
|
if (r.capture(e, t), e.f & 2) {
|
|
704
701
|
let t = e;
|
|
705
|
-
e.f & 2048 &&
|
|
702
|
+
e.f & 2048 && tt(t), I === null && He(t);
|
|
706
703
|
}
|
|
707
|
-
e.wv =
|
|
704
|
+
e.wv = Nn(), Dt = null, Ot = 0, Mt(e, v, n), Dt = null, Ie() && q !== null && q.f & 1024 && !(q.f & 96) && (X === null ? On([e]) : X.push(e)), !r.is_fork && Ct.size > 0 && !wt && At();
|
|
708
705
|
}
|
|
709
706
|
return t;
|
|
710
707
|
}
|
|
711
|
-
function
|
|
712
|
-
|
|
713
|
-
for (let e of
|
|
714
|
-
e.f & 1024 &&
|
|
708
|
+
function At() {
|
|
709
|
+
wt = !1;
|
|
710
|
+
for (let e of Ct) {
|
|
711
|
+
e.f & 1024 && P(e, y);
|
|
715
712
|
let t;
|
|
716
713
|
try {
|
|
717
|
-
t =
|
|
714
|
+
t = Pn(e);
|
|
718
715
|
} catch {
|
|
719
716
|
t = !0;
|
|
720
717
|
}
|
|
721
|
-
t &&
|
|
718
|
+
t && Bn(e);
|
|
722
719
|
}
|
|
723
|
-
|
|
720
|
+
Ct.clear();
|
|
724
721
|
}
|
|
725
|
-
function
|
|
726
|
-
|
|
722
|
+
function jt(e) {
|
|
723
|
+
B(e, e.v + 1);
|
|
727
724
|
}
|
|
728
|
-
function
|
|
725
|
+
function Mt(e, t, n) {
|
|
729
726
|
var r = e.reactions;
|
|
730
|
-
if (r !== null)
|
|
731
|
-
var
|
|
732
|
-
if (
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
var
|
|
740
|
-
|
|
727
|
+
if (r !== null) {
|
|
728
|
+
var i = Ie(), a = r.length;
|
|
729
|
+
if (Ot += a, Ot > 1e5 && Dt === null && (Dt = /* @__PURE__ */ new Set()), Dt !== null) {
|
|
730
|
+
if (Dt.has(e)) return;
|
|
731
|
+
Dt.add(e);
|
|
732
|
+
}
|
|
733
|
+
for (var o = 0; o < a; o++) {
|
|
734
|
+
var s = r[o], c = s.f;
|
|
735
|
+
if (!(!i && s === q)) {
|
|
736
|
+
var l = (c & v) === 0;
|
|
737
|
+
if (l && P(s, t), c & 131072) Ct.add(s);
|
|
738
|
+
else if (c & 2) {
|
|
739
|
+
var u = s;
|
|
740
|
+
I?.delete(u), Mt(u, y, n);
|
|
741
|
+
} else if (l) {
|
|
742
|
+
var d = s;
|
|
743
|
+
c & 16 && gt !== null && gt.add(d), n === null ? bt(d) : n.push(d);
|
|
744
|
+
}
|
|
741
745
|
}
|
|
742
746
|
}
|
|
743
747
|
}
|
|
744
748
|
}
|
|
745
|
-
function
|
|
746
|
-
if (typeof e != "object" || !e || E in e ||
|
|
749
|
+
function Nt(e) {
|
|
750
|
+
if (typeof e != "object" || !e || E in e || ie in e) return e;
|
|
747
751
|
let t = f(e);
|
|
748
752
|
if (t !== u && t !== d) return e;
|
|
749
|
-
var i = /* @__PURE__ */ new Map(), a = r(e), o = /* @__PURE__ */
|
|
750
|
-
if (
|
|
751
|
-
var t =
|
|
752
|
-
|
|
753
|
+
var i = /* @__PURE__ */ new Map(), a = r(e), o = /* @__PURE__ */ z(0), s = null, c = jn, p = (e) => {
|
|
754
|
+
if (jn === c) return e();
|
|
755
|
+
var t = W, n = jn;
|
|
756
|
+
K(null), Mn(c);
|
|
753
757
|
var r = e();
|
|
754
|
-
return
|
|
758
|
+
return K(t), Mn(n), r;
|
|
755
759
|
};
|
|
756
|
-
return a && i.set("length", /* @__PURE__ */
|
|
760
|
+
return a && i.set("length", /* @__PURE__ */ z(e.length, s)), new Proxy(e, {
|
|
757
761
|
defineProperty(e, t, n) {
|
|
758
|
-
(!("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) && Oe();
|
|
759
763
|
var r = i.get(t);
|
|
760
764
|
return r === void 0 ? p(() => {
|
|
761
|
-
var e = /* @__PURE__ */
|
|
765
|
+
var e = /* @__PURE__ */ z(n.value, s);
|
|
762
766
|
return i.set(t, e), e;
|
|
763
|
-
}) :
|
|
767
|
+
}) : B(r, n.value, !0), !0;
|
|
764
768
|
},
|
|
765
769
|
deleteProperty(e, t) {
|
|
766
770
|
var r = i.get(t);
|
|
767
771
|
if (r === void 0) {
|
|
768
772
|
if (t in e) {
|
|
769
|
-
let e = p(() => /* @__PURE__ */
|
|
770
|
-
i.set(t, e),
|
|
773
|
+
let e = p(() => /* @__PURE__ */ z(n, s));
|
|
774
|
+
i.set(t, e), jt(o);
|
|
771
775
|
}
|
|
772
|
-
} else
|
|
776
|
+
} else B(r, n), jt(o);
|
|
773
777
|
return !0;
|
|
774
778
|
},
|
|
775
779
|
get(t, r, a) {
|
|
776
780
|
if (r === E) return e;
|
|
777
781
|
var o = i.get(r), c = r in t;
|
|
778
|
-
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__ */ z(Nt(c ? t[r] : n), s)), i.set(r, o)), o !== void 0) {
|
|
779
783
|
var u = Z(o);
|
|
780
784
|
return u === n ? void 0 : u;
|
|
781
785
|
}
|
|
782
786
|
return Reflect.get(t, r, a);
|
|
783
787
|
},
|
|
784
788
|
getOwnPropertyDescriptor(e, t) {
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
789
|
+
this.has?.(e, t);
|
|
790
|
+
var r = Reflect.getOwnPropertyDescriptor(e, t), a = i.get(t);
|
|
791
|
+
if (a !== void 0) {
|
|
792
|
+
var o = Z(a);
|
|
793
|
+
if (o === n) return;
|
|
794
|
+
if (r && "value" in r) r.value = o;
|
|
795
|
+
else return {
|
|
792
796
|
enumerable: !0,
|
|
793
797
|
configurable: !0,
|
|
794
|
-
value:
|
|
798
|
+
value: o,
|
|
795
799
|
writable: !0
|
|
796
800
|
};
|
|
797
801
|
}
|
|
@@ -800,27 +804,27 @@ function Lt(e) {
|
|
|
800
804
|
has(e, t) {
|
|
801
805
|
if (t === E) return !0;
|
|
802
806
|
var r = i.get(t), a = r !== void 0 && r.v !== n || Reflect.has(e, t);
|
|
803
|
-
return (r !== void 0 ||
|
|
807
|
+
return (r !== void 0 || q !== null && (!a || l(e, t)?.writable)) && (r === void 0 && (r = p(() => /* @__PURE__ */ z(a ? Nt(e[t]) : n, s)), i.set(t, r)), Z(r) === n) ? !1 : a;
|
|
804
808
|
},
|
|
805
809
|
set(e, t, r, c) {
|
|
806
810
|
var u = i.get(t), d = t in e;
|
|
807
811
|
if (a && t === "length") for (var f = r; f < u.v; f += 1) {
|
|
808
812
|
var m = i.get(f + "");
|
|
809
|
-
m === void 0 ? f in e && (m = p(() => /* @__PURE__ */
|
|
813
|
+
m === void 0 ? f in e && (m = p(() => /* @__PURE__ */ z(n, s)), i.set(f + "", m)) : B(m, n);
|
|
810
814
|
}
|
|
811
|
-
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__ */ z(void 0, s)), B(u, Nt(r)), i.set(t, u));
|
|
812
816
|
else {
|
|
813
817
|
d = u.v !== n;
|
|
814
|
-
var h = p(() =>
|
|
815
|
-
|
|
818
|
+
var h = p(() => Nt(r));
|
|
819
|
+
B(u, h);
|
|
816
820
|
}
|
|
817
821
|
var g = Reflect.getOwnPropertyDescriptor(e, t);
|
|
818
822
|
if (g?.set && g.set.call(c, r), !d) {
|
|
819
823
|
if (a && typeof t == "string") {
|
|
820
824
|
var _ = i.get("length"), v = Number(t);
|
|
821
|
-
Number.isInteger(v) && v >= _.v &&
|
|
825
|
+
Number.isInteger(v) && v >= _.v && B(_, v + 1);
|
|
822
826
|
}
|
|
823
|
-
|
|
827
|
+
jt(o);
|
|
824
828
|
}
|
|
825
829
|
return !0;
|
|
826
830
|
},
|
|
@@ -834,78 +838,78 @@ function Lt(e) {
|
|
|
834
838
|
return t;
|
|
835
839
|
},
|
|
836
840
|
setPrototypeOf() {
|
|
837
|
-
|
|
841
|
+
ke();
|
|
838
842
|
}
|
|
839
843
|
});
|
|
840
844
|
}
|
|
841
|
-
var
|
|
842
|
-
function
|
|
843
|
-
if (
|
|
844
|
-
|
|
845
|
+
var Pt, Ft, It, Lt;
|
|
846
|
+
function Rt() {
|
|
847
|
+
if (Pt === void 0) {
|
|
848
|
+
Pt = window, Ft = /Firefox/.test(navigator.userAgent);
|
|
845
849
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
846
|
-
|
|
850
|
+
It = l(t, "firstChild").get, Lt = l(t, "nextSibling").get, p(e) && (e[se] = void 0, e[oe] = null, e[ce] = void 0, e.__e = void 0), p(n) && (n[le] = void 0);
|
|
847
851
|
}
|
|
848
852
|
}
|
|
849
|
-
function
|
|
853
|
+
function zt(e = "") {
|
|
850
854
|
return document.createTextNode(e);
|
|
851
855
|
}
|
|
852
856
|
/*@__NO_SIDE_EFFECTS__*/
|
|
853
|
-
function
|
|
854
|
-
return
|
|
857
|
+
function Bt(e) {
|
|
858
|
+
return It.call(e);
|
|
855
859
|
}
|
|
856
860
|
/*@__NO_SIDE_EFFECTS__*/
|
|
857
|
-
function
|
|
858
|
-
return
|
|
861
|
+
function Vt(e) {
|
|
862
|
+
return Lt.call(e);
|
|
859
863
|
}
|
|
860
|
-
function
|
|
861
|
-
if (!D) return /* @__PURE__ */
|
|
862
|
-
var n = /* @__PURE__ */
|
|
863
|
-
if (n === null) n =
|
|
864
|
+
function Ht(e, t) {
|
|
865
|
+
if (!D) return /* @__PURE__ */ Bt(e);
|
|
866
|
+
var n = /* @__PURE__ */ Bt(k);
|
|
867
|
+
if (n === null) n = k.appendChild(zt());
|
|
864
868
|
else if (t && n.nodeType !== 3) {
|
|
865
|
-
var r =
|
|
866
|
-
return n?.before(r),
|
|
869
|
+
var r = zt();
|
|
870
|
+
return n?.before(r), A(r), r;
|
|
867
871
|
}
|
|
868
|
-
return t &&
|
|
872
|
+
return t && Jt(n), A(n), n;
|
|
869
873
|
}
|
|
870
|
-
function
|
|
871
|
-
if (!D) return /* @__PURE__ */
|
|
872
|
-
var n =
|
|
873
|
-
return
|
|
874
|
+
function Ut(e, t = !1) {
|
|
875
|
+
if (!D) return /* @__PURE__ */ Bt(e);
|
|
876
|
+
var n = Ht(e, t);
|
|
877
|
+
return he(e), n;
|
|
874
878
|
}
|
|
875
|
-
function
|
|
876
|
-
let r = D ?
|
|
877
|
-
for (var i; t--;) i = r, r = /* @__PURE__ */
|
|
879
|
+
function Wt(e, t = 1, n = !1) {
|
|
880
|
+
let r = D ? k : e;
|
|
881
|
+
for (var i; t--;) i = r, r = /* @__PURE__ */ Vt(r);
|
|
878
882
|
if (!D) return r;
|
|
879
883
|
if (n) {
|
|
880
884
|
if (r?.nodeType !== 3) {
|
|
881
|
-
var a =
|
|
882
|
-
return r === null ? i?.after(a) : r.before(a),
|
|
885
|
+
var a = zt();
|
|
886
|
+
return r === null ? i?.after(a) : r.before(a), A(a), a;
|
|
883
887
|
}
|
|
884
|
-
|
|
888
|
+
Jt(r);
|
|
885
889
|
}
|
|
886
|
-
return
|
|
890
|
+
return A(r), r;
|
|
887
891
|
}
|
|
888
|
-
function
|
|
892
|
+
function Gt(e) {
|
|
889
893
|
e.textContent = "";
|
|
890
894
|
}
|
|
891
|
-
function
|
|
895
|
+
function Kt() {
|
|
892
896
|
return !1;
|
|
893
897
|
}
|
|
894
|
-
function
|
|
898
|
+
function qt(e, t, n) {
|
|
895
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);
|
|
896
900
|
}
|
|
897
|
-
function
|
|
901
|
+
function Jt(e) {
|
|
898
902
|
if (e.nodeValue.length < 65536) return;
|
|
899
903
|
let t = e.nextSibling;
|
|
900
904
|
for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
901
905
|
}
|
|
902
|
-
function
|
|
903
|
-
var t =
|
|
904
|
-
if (t === null) return
|
|
906
|
+
function Yt(e) {
|
|
907
|
+
var t = q;
|
|
908
|
+
if (t === null) return W.f |= T, e;
|
|
905
909
|
if (!(t.f & 32768) && !(t.f & 4)) throw e;
|
|
906
|
-
|
|
910
|
+
V(e, t);
|
|
907
911
|
}
|
|
908
|
-
function
|
|
912
|
+
function V(e, t) {
|
|
909
913
|
if (!(t !== null && t.f & 16384)) {
|
|
910
914
|
for (; t !== null;) {
|
|
911
915
|
if (t.f & 128 && !(t.f & 33570816)) {
|
|
@@ -923,19 +927,19 @@ function z(e, t) {
|
|
|
923
927
|
}
|
|
924
928
|
}
|
|
925
929
|
//#endregion
|
|
926
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
927
|
-
function
|
|
928
|
-
|
|
930
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/effects.js
|
|
931
|
+
function Xt(e) {
|
|
932
|
+
q === null && (W === null && we(e), Ce()), Cn && Se(e);
|
|
929
933
|
}
|
|
930
|
-
function
|
|
934
|
+
function Zt(e, t) {
|
|
931
935
|
var n = t.last;
|
|
932
936
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
933
937
|
}
|
|
934
|
-
function
|
|
935
|
-
var n =
|
|
938
|
+
function H(e, t) {
|
|
939
|
+
var n = q;
|
|
936
940
|
n !== null && n.f & 8192 && (e |= b);
|
|
937
941
|
var r = {
|
|
938
|
-
ctx:
|
|
942
|
+
ctx: N,
|
|
939
943
|
deps: null,
|
|
940
944
|
nodes: null,
|
|
941
945
|
f: e | v | 512,
|
|
@@ -950,141 +954,141 @@ function B(e, t) {
|
|
|
950
954
|
wv: 0,
|
|
951
955
|
ac: null
|
|
952
956
|
};
|
|
953
|
-
|
|
957
|
+
F?.register_created_effect(r);
|
|
954
958
|
var i = r;
|
|
955
|
-
if (e & 4)
|
|
959
|
+
if (e & 4) ut === null ? mt.ensure().schedule(r) : ut.push(r);
|
|
956
960
|
else if (t !== null) {
|
|
957
961
|
try {
|
|
958
|
-
|
|
962
|
+
Bn(r);
|
|
959
963
|
} catch (e) {
|
|
960
|
-
throw
|
|
964
|
+
throw U(r), e;
|
|
961
965
|
}
|
|
962
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));
|
|
963
967
|
}
|
|
964
|
-
if (i !== null && (i.parent = n, n !== null &&
|
|
965
|
-
var a =
|
|
968
|
+
if (i !== null && (i.parent = n, n !== null && Zt(i, n), W !== null && W.f & 2 && !(e & 64))) {
|
|
969
|
+
var a = W;
|
|
966
970
|
(a.effects ??= []).push(i);
|
|
967
971
|
}
|
|
968
972
|
return r;
|
|
969
973
|
}
|
|
970
|
-
function
|
|
971
|
-
return
|
|
974
|
+
function Qt() {
|
|
975
|
+
return W !== null && !G;
|
|
972
976
|
}
|
|
973
|
-
function
|
|
974
|
-
let t =
|
|
975
|
-
return
|
|
977
|
+
function $t(e) {
|
|
978
|
+
let t = H(8, null);
|
|
979
|
+
return P(t, _), t.teardown = e, t;
|
|
976
980
|
}
|
|
977
|
-
function
|
|
978
|
-
|
|
979
|
-
var t =
|
|
980
|
-
if (!
|
|
981
|
-
var n =
|
|
981
|
+
function en(e) {
|
|
982
|
+
Xt("$effect");
|
|
983
|
+
var t = q.f;
|
|
984
|
+
if (!W && t & 32 && N !== null && !N.i) {
|
|
985
|
+
var n = N;
|
|
982
986
|
(n.e ??= []).push(e);
|
|
983
|
-
} else return
|
|
987
|
+
} else return tn(e);
|
|
984
988
|
}
|
|
985
|
-
function
|
|
986
|
-
return
|
|
989
|
+
function tn(e) {
|
|
990
|
+
return H(4 | C, e);
|
|
987
991
|
}
|
|
988
|
-
function
|
|
989
|
-
|
|
990
|
-
let t =
|
|
992
|
+
function nn(e) {
|
|
993
|
+
mt.ensure();
|
|
994
|
+
let t = H(64 | S, e);
|
|
991
995
|
return () => {
|
|
992
|
-
|
|
996
|
+
U(t);
|
|
993
997
|
};
|
|
994
998
|
}
|
|
995
|
-
function
|
|
996
|
-
|
|
997
|
-
let t =
|
|
999
|
+
function rn(e) {
|
|
1000
|
+
mt.ensure();
|
|
1001
|
+
let t = H(64 | S, e);
|
|
998
1002
|
return (e = {}) => new Promise((n) => {
|
|
999
|
-
e.outro ?
|
|
1000
|
-
|
|
1001
|
-
}) : (
|
|
1003
|
+
e.outro ? gn(t, () => {
|
|
1004
|
+
U(t), n(void 0);
|
|
1005
|
+
}) : (U(t), n(void 0));
|
|
1002
1006
|
});
|
|
1003
1007
|
}
|
|
1004
|
-
function
|
|
1005
|
-
return
|
|
1008
|
+
function an(e) {
|
|
1009
|
+
return H(4, e);
|
|
1006
1010
|
}
|
|
1007
|
-
function
|
|
1008
|
-
return
|
|
1011
|
+
function on(e) {
|
|
1012
|
+
return H(w | S, e);
|
|
1009
1013
|
}
|
|
1010
|
-
function
|
|
1011
|
-
return
|
|
1014
|
+
function sn(e, t = 0) {
|
|
1015
|
+
return H(8 | t, e);
|
|
1012
1016
|
}
|
|
1013
|
-
function
|
|
1014
|
-
|
|
1015
|
-
|
|
1017
|
+
function cn(e, t = [], n = [], r = []) {
|
|
1018
|
+
Ge(r, t, n, (t) => {
|
|
1019
|
+
H(8, () => {
|
|
1016
1020
|
e(...t.map(Z));
|
|
1017
1021
|
});
|
|
1018
1022
|
});
|
|
1019
1023
|
}
|
|
1020
|
-
function
|
|
1021
|
-
return
|
|
1024
|
+
function ln(e, t = 0) {
|
|
1025
|
+
return H(16 | t, e);
|
|
1022
1026
|
}
|
|
1023
|
-
function
|
|
1024
|
-
return
|
|
1027
|
+
function un(e) {
|
|
1028
|
+
return H(32 | S, e);
|
|
1025
1029
|
}
|
|
1026
|
-
function
|
|
1030
|
+
function dn(e) {
|
|
1027
1031
|
var t = e.teardown;
|
|
1028
1032
|
if (t !== null) {
|
|
1029
|
-
let n =
|
|
1030
|
-
|
|
1033
|
+
let n = Cn, r = W;
|
|
1034
|
+
wn(!0), K(null);
|
|
1031
1035
|
try {
|
|
1032
1036
|
t.call(null);
|
|
1033
1037
|
} catch (t) {
|
|
1034
|
-
|
|
1038
|
+
V(t, e.parent);
|
|
1035
1039
|
} finally {
|
|
1036
|
-
|
|
1040
|
+
wn(n), K(r);
|
|
1037
1041
|
}
|
|
1038
1042
|
}
|
|
1039
1043
|
}
|
|
1040
|
-
function
|
|
1044
|
+
function fn(e, t = !1) {
|
|
1041
1045
|
var n = e.first;
|
|
1042
1046
|
for (e.first = e.last = null; n !== null;) {
|
|
1043
1047
|
let e = n.ac;
|
|
1044
|
-
e !== null &&
|
|
1045
|
-
e.abort(
|
|
1048
|
+
e !== null && We(() => {
|
|
1049
|
+
e.abort(ue);
|
|
1046
1050
|
});
|
|
1047
1051
|
var r = n.next;
|
|
1048
|
-
n.f & 64 ? n.parent = null :
|
|
1052
|
+
n.f & 64 ? n.parent = null : U(n, t), n = r;
|
|
1049
1053
|
}
|
|
1050
1054
|
}
|
|
1051
|
-
function
|
|
1055
|
+
function pn(e) {
|
|
1052
1056
|
for (var t = e.first; t !== null;) {
|
|
1053
1057
|
var n = t.next;
|
|
1054
|
-
t.f & 32 ||
|
|
1058
|
+
t.f & 32 || U(t), t = n;
|
|
1055
1059
|
}
|
|
1056
1060
|
}
|
|
1057
|
-
function
|
|
1061
|
+
function U(e, t = !0) {
|
|
1058
1062
|
var n = !1;
|
|
1059
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (
|
|
1063
|
+
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (mn(e.nodes.start, e.nodes.end), n = !0), e.f |= te, fn(e, t && !n), zn(e, 0);
|
|
1060
1064
|
var r = e.nodes && e.nodes.t;
|
|
1061
1065
|
if (r !== null) for (let e of r) e.stop();
|
|
1062
|
-
|
|
1066
|
+
dn(e), e.f ^= te, e.f |= ee;
|
|
1063
1067
|
var i = e.parent;
|
|
1064
|
-
i !== null && i.first !== null &&
|
|
1068
|
+
i !== null && i.first !== null && hn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1065
1069
|
}
|
|
1066
|
-
function
|
|
1070
|
+
function mn(e, t) {
|
|
1067
1071
|
for (; e !== null;) {
|
|
1068
|
-
var n = e === t ? null : /* @__PURE__ */
|
|
1072
|
+
var n = e === t ? null : /* @__PURE__ */ Vt(e);
|
|
1069
1073
|
e.remove(), e = n;
|
|
1070
1074
|
}
|
|
1071
1075
|
}
|
|
1072
|
-
function
|
|
1076
|
+
function hn(e) {
|
|
1073
1077
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1074
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));
|
|
1075
1079
|
}
|
|
1076
|
-
function
|
|
1080
|
+
function gn(e, t, n = !0) {
|
|
1077
1081
|
var r = [];
|
|
1078
|
-
e.f |= 256,
|
|
1082
|
+
e.f |= 256, _n(e, r, !0);
|
|
1079
1083
|
var i = () => {
|
|
1080
|
-
n &&
|
|
1084
|
+
n && U(e), t && t();
|
|
1081
1085
|
}, a = r.length;
|
|
1082
1086
|
if (a > 0) {
|
|
1083
1087
|
var o = () => --a || i();
|
|
1084
1088
|
for (var s of r) s.out(o);
|
|
1085
1089
|
} else i();
|
|
1086
1090
|
}
|
|
1087
|
-
function
|
|
1091
|
+
function _n(e, t, n) {
|
|
1088
1092
|
if (!(e.f & 8192)) {
|
|
1089
1093
|
e.f ^= b;
|
|
1090
1094
|
var r = e.nodes && e.nodes.t;
|
|
@@ -1093,114 +1097,114 @@ function xn(e, t, n) {
|
|
|
1093
1097
|
var a = i.next;
|
|
1094
1098
|
if (!(i.f & 64)) {
|
|
1095
1099
|
var o = (i.f & 65536) != 0 || (i.f & 32) != 0 && (e.f & 16) != 0;
|
|
1096
|
-
|
|
1100
|
+
_n(i, t, o ? n : !1);
|
|
1097
1101
|
}
|
|
1098
1102
|
i = a;
|
|
1099
1103
|
}
|
|
1100
1104
|
}
|
|
1101
1105
|
}
|
|
1102
|
-
function
|
|
1103
|
-
e.f &= -257,
|
|
1106
|
+
function vn(e) {
|
|
1107
|
+
e.f &= -257, yn(e, !0);
|
|
1104
1108
|
}
|
|
1105
|
-
function
|
|
1109
|
+
function yn(e, t) {
|
|
1106
1110
|
if (!(e.f & 256) && e.f & 8192) {
|
|
1107
|
-
e.f ^= b, e.f & 1024 || (
|
|
1111
|
+
e.f ^= b, e.f & 1024 || (P(e, v), mt.ensure().schedule(e));
|
|
1108
1112
|
for (var n = e.first; n !== null;) {
|
|
1109
1113
|
var r = n.next, i = (n.f & 65536) != 0 || (n.f & 32) != 0;
|
|
1110
|
-
|
|
1114
|
+
yn(n, i ? t : !1), n = r;
|
|
1111
1115
|
}
|
|
1112
1116
|
var a = e.nodes && e.nodes.t;
|
|
1113
1117
|
if (a !== null) for (let e of a) (e.is_global || t) && e.in();
|
|
1114
1118
|
}
|
|
1115
1119
|
}
|
|
1116
|
-
function
|
|
1120
|
+
function bn(e, t) {
|
|
1117
1121
|
if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
|
|
1118
|
-
var i = n === r ? null : /* @__PURE__ */
|
|
1122
|
+
var i = n === r ? null : /* @__PURE__ */ Vt(n);
|
|
1119
1123
|
t.append(n), n = i;
|
|
1120
1124
|
}
|
|
1121
1125
|
}
|
|
1122
1126
|
//#endregion
|
|
1123
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1124
|
-
var
|
|
1125
|
-
function
|
|
1126
|
-
|
|
1127
|
-
}
|
|
1128
|
-
var H = null, U = !1;
|
|
1129
|
-
function W(e) {
|
|
1130
|
-
H = e;
|
|
1127
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/legacy.js
|
|
1128
|
+
var xn = null, Sn = !1, Cn = !1;
|
|
1129
|
+
function wn(e) {
|
|
1130
|
+
Cn = e;
|
|
1131
1131
|
}
|
|
1132
|
-
var G =
|
|
1132
|
+
var W = null, G = !1;
|
|
1133
1133
|
function K(e) {
|
|
1134
|
-
|
|
1134
|
+
W = e;
|
|
1135
1135
|
}
|
|
1136
1136
|
var q = null;
|
|
1137
|
-
function
|
|
1138
|
-
|
|
1137
|
+
function Tn(e) {
|
|
1138
|
+
q = e;
|
|
1139
|
+
}
|
|
1140
|
+
var En = null;
|
|
1141
|
+
function Dn(e) {
|
|
1142
|
+
W !== null && (W.f & 2097152 || W.f & 2) && (En ??= /* @__PURE__ */ new Set()).add(e);
|
|
1139
1143
|
}
|
|
1140
1144
|
var J = null, Y = 0, X = null;
|
|
1141
|
-
function
|
|
1145
|
+
function On(e) {
|
|
1142
1146
|
X = e;
|
|
1143
1147
|
}
|
|
1144
|
-
var
|
|
1145
|
-
function
|
|
1146
|
-
|
|
1148
|
+
var kn = 1, An = 0, jn = An;
|
|
1149
|
+
function Mn(e) {
|
|
1150
|
+
jn = e;
|
|
1147
1151
|
}
|
|
1148
|
-
function
|
|
1149
|
-
return ++
|
|
1152
|
+
function Nn() {
|
|
1153
|
+
return ++kn;
|
|
1150
1154
|
}
|
|
1151
|
-
function
|
|
1155
|
+
function Pn(e) {
|
|
1152
1156
|
var t = e.f;
|
|
1153
1157
|
if (t & 2048) return !0;
|
|
1154
|
-
if (t &
|
|
1158
|
+
if (t & 4096) {
|
|
1155
1159
|
for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
|
|
1156
1160
|
var a = n[i];
|
|
1157
|
-
if (
|
|
1161
|
+
if (Pn(a) && nt(a), a.wv > e.wv) return !0;
|
|
1158
1162
|
}
|
|
1159
|
-
t & 512 &&
|
|
1163
|
+
t & 512 && I === null && P(e, _);
|
|
1160
1164
|
}
|
|
1161
1165
|
return !1;
|
|
1162
1166
|
}
|
|
1163
|
-
function
|
|
1167
|
+
function Fn(e, t, n = !0) {
|
|
1164
1168
|
var r = e.reactions;
|
|
1165
|
-
if (r !== null && !(
|
|
1169
|
+
if (r !== null && !(En !== null && En.has(e))) for (var i = 0; i < r.length; i++) {
|
|
1166
1170
|
var a = r[i];
|
|
1167
|
-
a.f & 2 ?
|
|
1171
|
+
a.f & 2 ? Fn(a, t, !1) : t === a && (n ? P(a, v) : a.f & 1024 && P(a, y), bt(a));
|
|
1168
1172
|
}
|
|
1169
1173
|
}
|
|
1170
|
-
function
|
|
1171
|
-
var t = J, n = Y, r = X, i =
|
|
1172
|
-
J = null, Y = 0, X = null,
|
|
1173
|
-
e.ac.abort(
|
|
1174
|
+
function In(e) {
|
|
1175
|
+
var t = J, n = Y, r = X, i = W, a = En, o = N, s = G, c = jn, l = e.f;
|
|
1176
|
+
J = null, Y = 0, X = null, W = l & 96 ? null : e, En = null, Me(e.ctx), G = !1, jn = ++An, e.ac !== null && (We(() => {
|
|
1177
|
+
e.ac.abort(ue);
|
|
1174
1178
|
}), e.ac = null);
|
|
1175
1179
|
try {
|
|
1176
|
-
e.f |=
|
|
1180
|
+
e.f |= re;
|
|
1177
1181
|
var u = e.fn, d = u();
|
|
1178
1182
|
e.f |= x;
|
|
1179
|
-
var f =
|
|
1180
|
-
if (
|
|
1183
|
+
var f = Ln(e);
|
|
1184
|
+
if (Ie() && X !== null && !G && f !== null && !(e.f & 6146)) for (var p = 0; p < X.length; p++) Fn(X[p], e);
|
|
1181
1185
|
if (i !== null && i !== e) {
|
|
1182
|
-
if (
|
|
1183
|
-
if (t !== null) for (let e of t) e.rv =
|
|
1186
|
+
if (An++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = An;
|
|
1187
|
+
if (t !== null) for (let e of t) e.rv = An;
|
|
1184
1188
|
X !== null && (r === null ? r = X : r.push(...X));
|
|
1185
1189
|
}
|
|
1186
1190
|
return e.f & 8388608 && (e.f ^= T), d;
|
|
1187
1191
|
} catch (t) {
|
|
1188
|
-
return
|
|
1192
|
+
return Ln(e), Yt(t);
|
|
1189
1193
|
} finally {
|
|
1190
|
-
e.f ^=
|
|
1194
|
+
e.f ^= re, J = t, Y = n, X = r, W = i, En = a, Me(o), G = s, jn = c;
|
|
1191
1195
|
}
|
|
1192
1196
|
}
|
|
1193
|
-
function
|
|
1194
|
-
var t = e.deps, n =
|
|
1197
|
+
function Ln(e) {
|
|
1198
|
+
var t = e.deps, n = F?.is_fork;
|
|
1195
1199
|
if (J !== null) {
|
|
1196
1200
|
var r;
|
|
1197
|
-
if (n ||
|
|
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];
|
|
1198
1202
|
else e.deps = t = J;
|
|
1199
|
-
if (
|
|
1200
|
-
} else !n && t !== null && Y < t.length && (
|
|
1203
|
+
if (Qt() && e.f & 512) for (r = Y; r < t.length; r++) (t[r].reactions ??= []).push(e);
|
|
1204
|
+
} else !n && t !== null && Y < t.length && (zn(e, Y), t.length = Y);
|
|
1201
1205
|
return t;
|
|
1202
1206
|
}
|
|
1203
|
-
function
|
|
1207
|
+
function Rn(e, t) {
|
|
1204
1208
|
let r = t.reactions;
|
|
1205
1209
|
if (r !== null) {
|
|
1206
1210
|
var o = i.call(r, e);
|
|
@@ -1211,85 +1215,85 @@ function Bn(e, t) {
|
|
|
1211
1215
|
}
|
|
1212
1216
|
if (r === null && t.f & 2 && (J === null || !a.call(J, t))) {
|
|
1213
1217
|
var c = t;
|
|
1214
|
-
c.f & 512 && (c.f ^= 512
|
|
1215
|
-
c.ac.abort(
|
|
1216
|
-
}),
|
|
1218
|
+
c.f & 512 && (c.f ^= 512), c.v !== n && He(c), c.ac !== null && We(() => {
|
|
1219
|
+
c.ac.abort(ue), c.ac = null, P(c, v);
|
|
1220
|
+
}), rt(c), zn(c, 0);
|
|
1217
1221
|
}
|
|
1218
1222
|
}
|
|
1219
|
-
function
|
|
1223
|
+
function zn(e, t) {
|
|
1220
1224
|
var n = e.deps;
|
|
1221
|
-
if (n !== null) for (var r = t; r < n.length; r++)
|
|
1225
|
+
if (n !== null) for (var r = t; r < n.length; r++) Rn(e, n[r]);
|
|
1222
1226
|
}
|
|
1223
|
-
function
|
|
1227
|
+
function Bn(e) {
|
|
1224
1228
|
var t = e.f;
|
|
1225
1229
|
if (!(t & 16384)) {
|
|
1226
|
-
|
|
1227
|
-
var n =
|
|
1228
|
-
|
|
1230
|
+
P(e, _);
|
|
1231
|
+
var n = q, r = Sn;
|
|
1232
|
+
q = e, Sn = (t & 96) == 0;
|
|
1229
1233
|
try {
|
|
1230
|
-
t & 16777232 ?
|
|
1231
|
-
var i =
|
|
1232
|
-
e.teardown = typeof i == "function" ? i : null, e.wv =
|
|
1234
|
+
t & 16777232 ? pn(e) : fn(e), dn(e);
|
|
1235
|
+
var i = In(e);
|
|
1236
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = kn;
|
|
1233
1237
|
} finally {
|
|
1234
|
-
|
|
1238
|
+
Sn = r, q = n;
|
|
1235
1239
|
}
|
|
1236
1240
|
}
|
|
1237
1241
|
}
|
|
1238
1242
|
function Z(e) {
|
|
1239
1243
|
var t = (e.f & 2) != 0;
|
|
1240
|
-
if (
|
|
1241
|
-
var n =
|
|
1242
|
-
if (
|
|
1244
|
+
if (xn?.add(e), W !== null && !G && !(q !== null && q.f & 16384) && (En === null || !En.has(e))) {
|
|
1245
|
+
var n = W.deps;
|
|
1246
|
+
if (W.f & 2097152) e.rv < An && (e.rv = An, J === null && n !== null && n[Y] === e ? Y++ : J === null ? J = [e] : J.push(e));
|
|
1243
1247
|
else {
|
|
1244
|
-
|
|
1248
|
+
W.deps ??= [], a.call(W.deps, e) || W.deps.push(e);
|
|
1245
1249
|
var r = e.reactions;
|
|
1246
|
-
r === null ? e.reactions = [
|
|
1250
|
+
r === null ? e.reactions = [W] : a.call(r, W) || r.push(W);
|
|
1247
1251
|
}
|
|
1248
1252
|
}
|
|
1249
|
-
if (
|
|
1253
|
+
if (Cn && R.has(e)) return R.get(e);
|
|
1250
1254
|
if (t) {
|
|
1251
1255
|
var i = e;
|
|
1252
|
-
if (
|
|
1256
|
+
if (Cn) {
|
|
1253
1257
|
var o = i.v;
|
|
1254
|
-
return (!(i.f & 1024) && i.reactions !== null ||
|
|
1258
|
+
return (!(i.f & 1024) && i.reactions !== null || Hn(i)) && (o = tt(i)), R.set(i, o), o;
|
|
1255
1259
|
}
|
|
1256
|
-
var s = (i.f & 512) == 0 && !
|
|
1257
|
-
|
|
1260
|
+
var s = (i.f & 512) == 0 && !G && W !== null && (Sn || (W.f & 512) != 0), c = (i.f & x) === 0;
|
|
1261
|
+
Pn(i) && (s && (i.f |= 512), nt(i)), s && !c && (it(i), Vn(i));
|
|
1258
1262
|
}
|
|
1259
|
-
if (
|
|
1263
|
+
if (I?.has(e)) return I.get(e);
|
|
1260
1264
|
if (e.f & 8388608) throw e.v;
|
|
1261
1265
|
return e.v;
|
|
1262
1266
|
}
|
|
1263
|
-
function
|
|
1264
|
-
if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (
|
|
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) && (it(t), Vn(t));
|
|
1265
1269
|
}
|
|
1266
|
-
function
|
|
1270
|
+
function Hn(e) {
|
|
1267
1271
|
if (e.v === n) return !0;
|
|
1268
1272
|
if (e.deps === null) return !1;
|
|
1269
|
-
for (let t of e.deps) if (
|
|
1273
|
+
for (let t of e.deps) if (R.has(t) || t.f & 2 && Hn(t)) return !0;
|
|
1270
1274
|
return !1;
|
|
1271
1275
|
}
|
|
1272
|
-
function
|
|
1273
|
-
var t =
|
|
1276
|
+
function Un(e) {
|
|
1277
|
+
var t = G;
|
|
1274
1278
|
try {
|
|
1275
|
-
return
|
|
1279
|
+
return G = !0, e();
|
|
1276
1280
|
} finally {
|
|
1277
|
-
|
|
1281
|
+
G = t;
|
|
1278
1282
|
}
|
|
1279
1283
|
}
|
|
1280
1284
|
//#endregion
|
|
1281
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1282
|
-
var
|
|
1283
|
-
function
|
|
1285
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/events.js
|
|
1286
|
+
var Wn = Symbol("events"), Gn = /* @__PURE__ */ new Set(), Kn = /* @__PURE__ */ new Set(), qn = null, Jn = !1;
|
|
1287
|
+
function Yn(e) {
|
|
1284
1288
|
var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
|
|
1285
|
-
|
|
1286
|
-
|
|
1289
|
+
qn = e, Jn || (Jn = !0, setTimeout(() => {
|
|
1290
|
+
Jn = !1, qn = null;
|
|
1287
1291
|
}));
|
|
1288
|
-
var o = 0, s =
|
|
1292
|
+
var o = 0, s = qn === e && e[Wn];
|
|
1289
1293
|
if (s) {
|
|
1290
1294
|
var l = i.indexOf(s);
|
|
1291
1295
|
if (l !== -1 && (t === document || t === window)) {
|
|
1292
|
-
e[
|
|
1296
|
+
e[Wn] = t;
|
|
1293
1297
|
return;
|
|
1294
1298
|
}
|
|
1295
1299
|
var u = i.indexOf(t);
|
|
@@ -1303,12 +1307,12 @@ function Zn(e) {
|
|
|
1303
1307
|
return a || n;
|
|
1304
1308
|
}
|
|
1305
1309
|
});
|
|
1306
|
-
var d =
|
|
1307
|
-
|
|
1310
|
+
var d = W, f = q;
|
|
1311
|
+
K(null), Tn(null);
|
|
1308
1312
|
try {
|
|
1309
1313
|
for (var p, m = []; a !== null && a !== t;) {
|
|
1310
1314
|
try {
|
|
1311
|
-
var h = a[
|
|
1315
|
+
var h = a[Wn]?.[r];
|
|
1312
1316
|
h != null && (!a.disabled || e.target === a) && h.call(a, e);
|
|
1313
1317
|
} catch (e) {
|
|
1314
1318
|
p ? m.push(e) : p = e;
|
|
@@ -1323,24 +1327,24 @@ function Zn(e) {
|
|
|
1323
1327
|
throw p;
|
|
1324
1328
|
}
|
|
1325
1329
|
} finally {
|
|
1326
|
-
e[
|
|
1330
|
+
e[Wn] = t, delete e.currentTarget, K(d), Tn(f);
|
|
1327
1331
|
}
|
|
1328
1332
|
}
|
|
1329
1333
|
}
|
|
1330
1334
|
//#endregion
|
|
1331
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1332
|
-
var
|
|
1333
|
-
function
|
|
1334
|
-
return
|
|
1335
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/reconciler.js
|
|
1336
|
+
var Xn = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1337
|
+
function Zn(e) {
|
|
1338
|
+
return Xn?.createHTML(e) ?? e;
|
|
1335
1339
|
}
|
|
1336
|
-
function
|
|
1337
|
-
var t =
|
|
1338
|
-
return t.innerHTML =
|
|
1340
|
+
function Qn(e) {
|
|
1341
|
+
var t = qt("template");
|
|
1342
|
+
return t.innerHTML = Zn(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1339
1343
|
}
|
|
1340
1344
|
//#endregion
|
|
1341
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1342
|
-
function
|
|
1343
|
-
var n =
|
|
1345
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/template.js
|
|
1346
|
+
function $n(e, t) {
|
|
1347
|
+
var n = q;
|
|
1344
1348
|
n.nodes === null && (n.nodes = {
|
|
1345
1349
|
start: e,
|
|
1346
1350
|
end: t,
|
|
@@ -1349,56 +1353,56 @@ function tr(e, t) {
|
|
|
1349
1353
|
});
|
|
1350
1354
|
}
|
|
1351
1355
|
/*#__NO_SIDE_EFFECTS__*/
|
|
1352
|
-
function
|
|
1356
|
+
function er(e, t) {
|
|
1353
1357
|
var n = (t & 1) != 0, r = (t & 2) != 0, i, a = !e.startsWith("<!>");
|
|
1354
1358
|
return () => {
|
|
1355
|
-
if (D) return
|
|
1356
|
-
i === void 0 && (i =
|
|
1357
|
-
var t = r ||
|
|
1359
|
+
if (D) return $n(k, null), k;
|
|
1360
|
+
i === void 0 && (i = Qn(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ Bt(i)));
|
|
1361
|
+
var t = r || Ft ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1358
1362
|
if (n) {
|
|
1359
|
-
var o = /* @__PURE__ */
|
|
1360
|
-
|
|
1361
|
-
} else
|
|
1363
|
+
var o = /* @__PURE__ */ Bt(t), s = t.lastChild;
|
|
1364
|
+
$n(o, s);
|
|
1365
|
+
} else $n(t, t);
|
|
1362
1366
|
return t;
|
|
1363
1367
|
};
|
|
1364
1368
|
}
|
|
1365
|
-
function
|
|
1369
|
+
function tr(e, t) {
|
|
1366
1370
|
if (D) {
|
|
1367
|
-
var n =
|
|
1368
|
-
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end =
|
|
1371
|
+
var n = q;
|
|
1372
|
+
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = k), me();
|
|
1369
1373
|
return;
|
|
1370
1374
|
}
|
|
1371
1375
|
e !== null && e.before(t);
|
|
1372
1376
|
}
|
|
1373
1377
|
[.../* @__PURE__ */ "allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback".split(".")];
|
|
1374
|
-
var
|
|
1375
|
-
function
|
|
1376
|
-
return
|
|
1378
|
+
var nr = ["touchstart", "touchmove"];
|
|
1379
|
+
function rr(e) {
|
|
1380
|
+
return nr.includes(e);
|
|
1377
1381
|
}
|
|
1378
1382
|
//#endregion
|
|
1379
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1380
|
-
function
|
|
1381
|
-
let t = 0, n =
|
|
1383
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/reactivity/create-subscriber.js
|
|
1384
|
+
function ir(e) {
|
|
1385
|
+
let t = 0, n = Tt(0), r;
|
|
1382
1386
|
return () => {
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
--t, t === 0 && (r?.(), r = void 0,
|
|
1387
|
+
Qt() && (Z(n), sn(() => (t === 0 && (r = Un(() => e(() => jt(n)))), t += 1, () => {
|
|
1388
|
+
ze(() => {
|
|
1389
|
+
--t, t === 0 && (r?.(), r = void 0, jt(n));
|
|
1386
1390
|
});
|
|
1387
1391
|
})));
|
|
1388
1392
|
};
|
|
1389
1393
|
}
|
|
1390
1394
|
//#endregion
|
|
1391
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1392
|
-
var
|
|
1393
|
-
function
|
|
1394
|
-
new
|
|
1395
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
|
|
1396
|
+
var ar = ne | S;
|
|
1397
|
+
function or(e, t, n, r) {
|
|
1398
|
+
new sr(e, t, n, r);
|
|
1395
1399
|
}
|
|
1396
|
-
var
|
|
1400
|
+
var sr = class {
|
|
1397
1401
|
parent;
|
|
1398
1402
|
is_pending = !1;
|
|
1399
1403
|
transform_error;
|
|
1400
1404
|
#e;
|
|
1401
|
-
#t = D ?
|
|
1405
|
+
#t = D ? k : null;
|
|
1402
1406
|
#n;
|
|
1403
1407
|
#r;
|
|
1404
1408
|
#i;
|
|
@@ -1412,35 +1416,35 @@ var lr = class {
|
|
|
1412
1416
|
#f = /* @__PURE__ */ new Set();
|
|
1413
1417
|
#p = /* @__PURE__ */ new Set();
|
|
1414
1418
|
#m = null;
|
|
1415
|
-
#h =
|
|
1419
|
+
#h = ir(() => (this.#m = Tt(this.#l), () => {
|
|
1416
1420
|
this.#m = null;
|
|
1417
1421
|
}));
|
|
1418
1422
|
constructor(e, t, n, r) {
|
|
1419
1423
|
this.#e = e, this.#n = t, this.#r = (e) => {
|
|
1420
|
-
var t =
|
|
1424
|
+
var t = q;
|
|
1421
1425
|
t.b = this, t.f |= 128, n(e);
|
|
1422
|
-
}, this.parent =
|
|
1426
|
+
}, this.parent = q.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = ln(() => {
|
|
1423
1427
|
if (D) {
|
|
1424
1428
|
let e = this.#t;
|
|
1425
|
-
|
|
1429
|
+
me();
|
|
1426
1430
|
let t = e.data === "[!";
|
|
1427
1431
|
if (e.data.startsWith("[?")) {
|
|
1428
1432
|
let t = JSON.parse(e.data.slice(2));
|
|
1429
1433
|
this.#_(t);
|
|
1430
1434
|
} else t ? this.#y() : this.#g();
|
|
1431
1435
|
} else this.#b();
|
|
1432
|
-
},
|
|
1436
|
+
}, ar), D && (this.#e = k);
|
|
1433
1437
|
}
|
|
1434
1438
|
#g() {
|
|
1435
1439
|
try {
|
|
1436
|
-
this.#a =
|
|
1440
|
+
this.#a = un(() => this.#r(this.#e));
|
|
1437
1441
|
} catch (e) {
|
|
1438
1442
|
this.error(e);
|
|
1439
1443
|
}
|
|
1440
1444
|
}
|
|
1441
1445
|
#_(e) {
|
|
1442
1446
|
let t = this.#n.failed, { reset: n, invoke_onerror: r } = this.#v(e);
|
|
1443
|
-
|
|
1447
|
+
ze(r), t && (this.#s = un(() => {
|
|
1444
1448
|
t(this.#e, () => e, () => n);
|
|
1445
1449
|
}));
|
|
1446
1450
|
}
|
|
@@ -1448,10 +1452,10 @@ var lr = class {
|
|
|
1448
1452
|
var t = !1, n = !1;
|
|
1449
1453
|
let r = () => {
|
|
1450
1454
|
if (t) {
|
|
1451
|
-
|
|
1455
|
+
pe();
|
|
1452
1456
|
return;
|
|
1453
1457
|
}
|
|
1454
|
-
t = !0, n &&
|
|
1458
|
+
t = !0, n && je(), this.#s !== null && gn(this.#s, () => {
|
|
1455
1459
|
this.#s = null;
|
|
1456
1460
|
}), this.#S(() => {
|
|
1457
1461
|
this.#b();
|
|
@@ -1463,45 +1467,45 @@ var lr = class {
|
|
|
1463
1467
|
try {
|
|
1464
1468
|
n = !0, this.#n.onerror?.(e, r), n = !1;
|
|
1465
1469
|
} catch (e) {
|
|
1466
|
-
|
|
1470
|
+
V(e, this.#i && this.#i.parent);
|
|
1467
1471
|
}
|
|
1468
1472
|
}
|
|
1469
1473
|
};
|
|
1470
1474
|
}
|
|
1471
1475
|
#y() {
|
|
1472
1476
|
let e = this.#n.pending;
|
|
1473
|
-
e && (this.is_pending = !0, this.#o =
|
|
1474
|
-
var e = this.#c = document.createDocumentFragment(), t =
|
|
1477
|
+
e && (this.is_pending = !0, this.#o = un(() => e(this.#e)), ze(() => {
|
|
1478
|
+
var e = this.#c = document.createDocumentFragment(), t = zt(), n = !1;
|
|
1475
1479
|
if (e.append(t), this.#a = this.#S(() => {
|
|
1476
1480
|
try {
|
|
1477
|
-
return
|
|
1481
|
+
return un(() => this.#r(t));
|
|
1478
1482
|
} catch (e) {
|
|
1479
1483
|
try {
|
|
1480
1484
|
this.error(e), n = !0;
|
|
1481
1485
|
} catch (e) {
|
|
1482
|
-
|
|
1486
|
+
V(e, this.#i.parent);
|
|
1483
1487
|
}
|
|
1484
1488
|
return null;
|
|
1485
1489
|
}
|
|
1486
1490
|
}), this.#a === null) {
|
|
1487
|
-
this.#c = null, n && this.#x(
|
|
1491
|
+
this.#c = null, n && this.#x(F);
|
|
1488
1492
|
return;
|
|
1489
1493
|
}
|
|
1490
|
-
this.#u === 0 && (this.#e.before(e), this.#c = null,
|
|
1494
|
+
this.#u === 0 && (this.#e.before(e), this.#c = null, gn(this.#o, () => {
|
|
1491
1495
|
this.#o = null;
|
|
1492
|
-
}), this.#x(
|
|
1496
|
+
}), this.#x(F));
|
|
1493
1497
|
}));
|
|
1494
1498
|
}
|
|
1495
1499
|
#b() {
|
|
1496
1500
|
try {
|
|
1497
|
-
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 = un(() => {
|
|
1498
1502
|
this.#r(this.#e);
|
|
1499
1503
|
}), this.#u > 0) {
|
|
1500
1504
|
var e = this.#c = document.createDocumentFragment();
|
|
1501
|
-
|
|
1505
|
+
bn(this.#a, e);
|
|
1502
1506
|
let t = this.#n.pending;
|
|
1503
|
-
this.#o =
|
|
1504
|
-
} else this.#x(
|
|
1507
|
+
this.#o = un(() => t(this.#e));
|
|
1508
|
+
} else this.#x(F);
|
|
1505
1509
|
} catch (e) {
|
|
1506
1510
|
this.error(e);
|
|
1507
1511
|
}
|
|
@@ -1510,7 +1514,7 @@ var lr = class {
|
|
|
1510
1514
|
this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
|
|
1511
1515
|
}
|
|
1512
1516
|
defer_effect(e) {
|
|
1513
|
-
|
|
1517
|
+
Ue(e, this.#f, this.#p);
|
|
1514
1518
|
}
|
|
1515
1519
|
is_rendered() {
|
|
1516
1520
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -1519,12 +1523,12 @@ var lr = class {
|
|
|
1519
1523
|
return !!this.#n.pending;
|
|
1520
1524
|
}
|
|
1521
1525
|
#S(e) {
|
|
1522
|
-
var t =
|
|
1523
|
-
|
|
1526
|
+
var t = q, n = W, r = N;
|
|
1527
|
+
Tn(this.#i), K(this.#i), Me(this.#i.ctx);
|
|
1524
1528
|
try {
|
|
1525
|
-
return
|
|
1529
|
+
return mt.ensure(), e();
|
|
1526
1530
|
} finally {
|
|
1527
|
-
|
|
1531
|
+
Tn(t), K(n), Me(r);
|
|
1528
1532
|
}
|
|
1529
1533
|
}
|
|
1530
1534
|
#C(e, t) {
|
|
@@ -1532,13 +1536,13 @@ var lr = class {
|
|
|
1532
1536
|
this.parent && this.parent.#C(e, t);
|
|
1533
1537
|
return;
|
|
1534
1538
|
}
|
|
1535
|
-
this.#u += e, this.#u === 0 && (this.#x(t), this.#o &&
|
|
1539
|
+
this.#u += e, this.#u === 0 && (this.#x(t), this.#o && gn(this.#o, () => {
|
|
1536
1540
|
this.#o = null;
|
|
1537
1541
|
}), this.#c &&= (this.#e.before(this.#c), null));
|
|
1538
1542
|
}
|
|
1539
1543
|
update_pending_count(e, t) {
|
|
1540
|
-
this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0,
|
|
1541
|
-
this.#d = !1, this.#m &&
|
|
1544
|
+
this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, ze(() => {
|
|
1545
|
+
this.#d = !1, this.#m && kt(this.#m, this.#l);
|
|
1542
1546
|
}));
|
|
1543
1547
|
}
|
|
1544
1548
|
get_effect_pending() {
|
|
@@ -1546,107 +1550,107 @@ var lr = class {
|
|
|
1546
1550
|
}
|
|
1547
1551
|
error(e) {
|
|
1548
1552
|
if (!this.#n.onerror && !this.#n.failed) throw e;
|
|
1549
|
-
|
|
1553
|
+
F?.is_fork ? (this.#a && F.skip_effect(this.#a), this.#o && F.skip_effect(this.#o), this.#s && F.skip_effect(this.#s), F.oncommit(() => {
|
|
1550
1554
|
this.#w(e);
|
|
1551
1555
|
})) : this.#w(e);
|
|
1552
1556
|
}
|
|
1553
1557
|
#w(e) {
|
|
1554
|
-
this.#a &&= (
|
|
1558
|
+
this.#a &&= (U(this.#a), null), this.#o &&= (U(this.#o), null), this.#s &&= (U(this.#s), null), D && (A(this.#t), j(), A(M()));
|
|
1555
1559
|
let t = this.#n.failed, n = (e) => {
|
|
1556
1560
|
let { reset: n, invoke_onerror: r } = this.#v(e);
|
|
1557
1561
|
r(), t && (this.#s = this.#S(() => {
|
|
1558
1562
|
try {
|
|
1559
|
-
return
|
|
1560
|
-
var r =
|
|
1563
|
+
return un(() => {
|
|
1564
|
+
var r = q;
|
|
1561
1565
|
r.b = this, r.f |= 128, t(this.#e, () => e, () => n);
|
|
1562
1566
|
});
|
|
1563
1567
|
} catch (e) {
|
|
1564
|
-
return
|
|
1568
|
+
return V(e, this.#i.parent), null;
|
|
1565
1569
|
}
|
|
1566
1570
|
}));
|
|
1567
1571
|
};
|
|
1568
|
-
|
|
1572
|
+
ze(() => {
|
|
1569
1573
|
var t;
|
|
1570
1574
|
try {
|
|
1571
1575
|
t = this.transform_error(e);
|
|
1572
1576
|
} catch (e) {
|
|
1573
|
-
|
|
1577
|
+
V(e, this.#i && this.#i.parent);
|
|
1574
1578
|
return;
|
|
1575
1579
|
}
|
|
1576
|
-
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) => V(e, this.#i && this.#i.parent)) : n(t);
|
|
1577
1581
|
});
|
|
1578
1582
|
}
|
|
1579
1583
|
};
|
|
1580
|
-
function
|
|
1584
|
+
function cr(e, t) {
|
|
1581
1585
|
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1582
|
-
n !== (e[
|
|
1586
|
+
n !== (e[le] ??= e.nodeValue) && (e[le] = n, e.nodeValue = `${n}`);
|
|
1583
1587
|
}
|
|
1584
|
-
function
|
|
1585
|
-
return
|
|
1588
|
+
function lr(e, t) {
|
|
1589
|
+
return fr(e, t);
|
|
1586
1590
|
}
|
|
1587
|
-
function
|
|
1588
|
-
|
|
1589
|
-
let r = n.target, i = D, a =
|
|
1591
|
+
function ur(e, n) {
|
|
1592
|
+
Rt(), n.intro = n.intro ?? !1;
|
|
1593
|
+
let r = n.target, i = D, a = k;
|
|
1590
1594
|
try {
|
|
1591
|
-
for (var o = /* @__PURE__ */
|
|
1595
|
+
for (var o = /* @__PURE__ */ Bt(r); o && (o.nodeType !== 8 || o.data !== "[");) o = /* @__PURE__ */ Vt(o);
|
|
1592
1596
|
if (!o) throw t;
|
|
1593
|
-
|
|
1594
|
-
let i =
|
|
1597
|
+
O(!0), A(o);
|
|
1598
|
+
let i = fr(e, {
|
|
1595
1599
|
...n,
|
|
1596
1600
|
anchor: o
|
|
1597
1601
|
});
|
|
1598
|
-
return
|
|
1602
|
+
return O(!1), i;
|
|
1599
1603
|
} catch (i) {
|
|
1600
1604
|
if (i instanceof Error && i.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw i;
|
|
1601
|
-
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 && Ee(), Rt(), Gt(r), O(!1), lr(e, n);
|
|
1602
1606
|
} finally {
|
|
1603
|
-
|
|
1604
|
-
}
|
|
1605
|
-
}
|
|
1606
|
-
var
|
|
1607
|
-
function
|
|
1608
|
-
|
|
1609
|
-
var u = void 0, d =
|
|
1610
|
-
var c = r ?? n.appendChild(
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
var r =
|
|
1614
|
-
if (s && (r.c = s), a && (i.$$events = a), D &&
|
|
1615
|
-
|
|
1607
|
+
O(i), A(a);
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
var dr = /* @__PURE__ */ new Map();
|
|
1611
|
+
function fr(e, { target: n, anchor: r, props: i = {}, events: a, context: s, intro: c = !0, transformError: l }) {
|
|
1612
|
+
Rt();
|
|
1613
|
+
var u = void 0, d = rn(() => {
|
|
1614
|
+
var c = r ?? n.appendChild(zt());
|
|
1615
|
+
or(c, { pending: () => {} }, (n) => {
|
|
1616
|
+
Ne({});
|
|
1617
|
+
var r = N;
|
|
1618
|
+
if (s && (r.c = s), a && (i.$$events = a), D && $n(n, null), u = e(n, i) || Fe(), D && (q.nodes.end = k, k === null || k.nodeType !== 8 || k.data !== "]")) throw fe(), t;
|
|
1619
|
+
Pe();
|
|
1616
1620
|
}, l);
|
|
1617
1621
|
var d = /* @__PURE__ */ new Set(), f = (e) => {
|
|
1618
1622
|
for (var t = 0; t < e.length; t++) {
|
|
1619
1623
|
var r = e[t];
|
|
1620
1624
|
if (!d.has(r)) {
|
|
1621
1625
|
d.add(r);
|
|
1622
|
-
var i =
|
|
1626
|
+
var i = rr(r);
|
|
1623
1627
|
for (let e of [n, document]) {
|
|
1624
|
-
var a =
|
|
1625
|
-
a === void 0 && (a = /* @__PURE__ */ new Map(),
|
|
1628
|
+
var a = dr.get(e);
|
|
1629
|
+
a === void 0 && (a = /* @__PURE__ */ new Map(), dr.set(e, a));
|
|
1626
1630
|
var o = a.get(r);
|
|
1627
|
-
o === void 0 ? (e.addEventListener(r,
|
|
1631
|
+
o === void 0 ? (e.addEventListener(r, Yn, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
|
|
1628
1632
|
}
|
|
1629
1633
|
}
|
|
1630
1634
|
}
|
|
1631
1635
|
};
|
|
1632
|
-
return f(o(
|
|
1636
|
+
return f(o(Gn)), Kn.add(f), () => {
|
|
1633
1637
|
for (var e of d) for (let r of [n, document]) {
|
|
1634
|
-
var t =
|
|
1635
|
-
--i == 0 ? (r.removeEventListener(e,
|
|
1638
|
+
var t = dr.get(r), i = t.get(e);
|
|
1639
|
+
--i == 0 ? (r.removeEventListener(e, Yn), t.delete(e), t.size === 0 && dr.delete(r)) : t.set(e, i);
|
|
1636
1640
|
}
|
|
1637
|
-
|
|
1641
|
+
Kn.delete(f), c !== r && c.parentNode?.removeChild(c);
|
|
1638
1642
|
};
|
|
1639
1643
|
});
|
|
1640
|
-
return
|
|
1644
|
+
return pr.set(u, d), u;
|
|
1641
1645
|
}
|
|
1642
|
-
var
|
|
1643
|
-
function
|
|
1644
|
-
let n =
|
|
1645
|
-
return n ? (
|
|
1646
|
+
var pr = /* @__PURE__ */ new WeakMap();
|
|
1647
|
+
function mr(e, t) {
|
|
1648
|
+
let n = pr.get(e);
|
|
1649
|
+
return n ? (pr.delete(e), n(t)) : Promise.resolve();
|
|
1646
1650
|
}
|
|
1647
1651
|
//#endregion
|
|
1648
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1649
|
-
var
|
|
1652
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/branches.js
|
|
1653
|
+
var hr = class {
|
|
1650
1654
|
anchor;
|
|
1651
1655
|
#e = /* @__PURE__ */ new Map();
|
|
1652
1656
|
#t = /* @__PURE__ */ new Map();
|
|
@@ -1659,96 +1663,77 @@ var _r = class {
|
|
|
1659
1663
|
#a = (e) => {
|
|
1660
1664
|
if (this.#e.has(e)) {
|
|
1661
1665
|
var t = this.#e.get(e), n = this.#t.get(t);
|
|
1662
|
-
if (n)
|
|
1666
|
+
if (n) vn(n), this.#r.delete(t);
|
|
1663
1667
|
else {
|
|
1664
1668
|
var r = this.#n.get(t);
|
|
1665
|
-
r && (
|
|
1669
|
+
r && (vn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
|
|
1666
1670
|
}
|
|
1667
1671
|
for (let [t, n] of this.#e) {
|
|
1668
1672
|
if (this.#e.delete(t), t === e) break;
|
|
1669
1673
|
let r = this.#n.get(n);
|
|
1670
|
-
r && (
|
|
1674
|
+
r && (U(r.effect), this.#n.delete(n));
|
|
1671
1675
|
}
|
|
1672
1676
|
for (let [e, r] of this.#t) {
|
|
1673
1677
|
if (e === t || this.#r.has(e)) continue;
|
|
1674
1678
|
let i = () => {
|
|
1675
1679
|
if (Array.from(this.#e.values()).includes(e)) {
|
|
1676
1680
|
var t = document.createDocumentFragment();
|
|
1677
|
-
|
|
1681
|
+
bn(r, t), t.append(zt()), this.#n.set(e, {
|
|
1678
1682
|
effect: r,
|
|
1679
1683
|
fragment: t
|
|
1680
1684
|
});
|
|
1681
|
-
} else
|
|
1685
|
+
} else U(r);
|
|
1682
1686
|
this.#r.delete(e), this.#t.delete(e);
|
|
1683
1687
|
};
|
|
1684
|
-
this.#i || !n ? (this.#r.add(e),
|
|
1688
|
+
this.#i || !n ? (this.#r.add(e), gn(r, i, !1)) : i();
|
|
1685
1689
|
}
|
|
1686
1690
|
}
|
|
1687
1691
|
};
|
|
1688
1692
|
#o = (e) => {
|
|
1689
1693
|
this.#e.delete(e);
|
|
1690
1694
|
let t = Array.from(this.#e.values());
|
|
1691
|
-
for (let [e, n] of this.#n) t.includes(e) || (
|
|
1695
|
+
for (let [e, n] of this.#n) t.includes(e) || (U(n.effect), this.#n.delete(e));
|
|
1692
1696
|
};
|
|
1693
1697
|
ensure(e, t) {
|
|
1694
|
-
var n =
|
|
1698
|
+
var n = F, r = Kt();
|
|
1695
1699
|
if (t && !this.#t.has(e) && !this.#n.has(e)) if (r) {
|
|
1696
|
-
var i = document.createDocumentFragment(), a =
|
|
1700
|
+
var i = document.createDocumentFragment(), a = zt();
|
|
1697
1701
|
i.append(a), this.#n.set(e, {
|
|
1698
|
-
effect:
|
|
1702
|
+
effect: un(() => t(a)),
|
|
1699
1703
|
fragment: i
|
|
1700
1704
|
});
|
|
1701
|
-
} else this.#t.set(e,
|
|
1705
|
+
} else this.#t.set(e, un(() => t(this.anchor)));
|
|
1702
1706
|
if (this.#e.set(n, e), r) {
|
|
1703
1707
|
for (let [t, r] of this.#t) t === e ? n.unskip_effect(r) : n.skip_effect(r);
|
|
1704
1708
|
for (let [t, r] of this.#n) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);
|
|
1705
1709
|
n.oncommit(this.#a), n.ondiscard(this.#o);
|
|
1706
|
-
} else D && (this.anchor =
|
|
1710
|
+
} else D && (this.anchor = k), this.#a(n);
|
|
1707
1711
|
}
|
|
1708
1712
|
};
|
|
1709
|
-
function
|
|
1710
|
-
|
|
1711
|
-
let t =
|
|
1713
|
+
function gr(e) {
|
|
1714
|
+
N === null && be("onMount"), en(() => {
|
|
1715
|
+
let t = Un(e);
|
|
1712
1716
|
if (typeof t == "function") return t;
|
|
1713
1717
|
});
|
|
1714
1718
|
}
|
|
1715
|
-
function yr(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
1716
|
-
return new CustomEvent(e, {
|
|
1717
|
-
detail: t,
|
|
1718
|
-
bubbles: n,
|
|
1719
|
-
cancelable: r
|
|
1720
|
-
});
|
|
1721
|
-
}
|
|
1722
|
-
function br() {
|
|
1723
|
-
let e = M;
|
|
1724
|
-
return e === null && Se("createEventDispatcher"), (t, n, i) => {
|
|
1725
|
-
let a = e.s.$$events?.[t];
|
|
1726
|
-
if (a) {
|
|
1727
|
-
let o = r(a) ? a.slice() : [a], s = yr(t, n, i);
|
|
1728
|
-
for (let t of o) t.call(e.x, s);
|
|
1729
|
-
return !s.defaultPrevented;
|
|
1730
|
-
}
|
|
1731
|
-
return !0;
|
|
1732
|
-
};
|
|
1733
|
-
}
|
|
1734
1719
|
//#endregion
|
|
1735
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1736
|
-
function
|
|
1720
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/if.js
|
|
1721
|
+
function _r(e, t, n = !1) {
|
|
1737
1722
|
var r;
|
|
1738
|
-
D && (r =
|
|
1739
|
-
var i = new
|
|
1723
|
+
D && (r = k, me());
|
|
1724
|
+
var i = new hr(e), a = n ? ne : 0;
|
|
1740
1725
|
function o(e, t) {
|
|
1741
1726
|
if (D) {
|
|
1742
|
-
var n =
|
|
1727
|
+
var n = ge(r);
|
|
1743
1728
|
if (e !== parseInt(n.substring(1))) {
|
|
1744
|
-
var a =
|
|
1745
|
-
|
|
1729
|
+
var a = M();
|
|
1730
|
+
A(a), i.anchor = a, O(!1), i.ensure(e, t), O(!0);
|
|
1746
1731
|
return;
|
|
1747
1732
|
}
|
|
1748
1733
|
}
|
|
1749
1734
|
i.ensure(e, t);
|
|
1750
1735
|
}
|
|
1751
|
-
|
|
1736
|
+
ln(() => {
|
|
1752
1737
|
var e = !1;
|
|
1753
1738
|
t((t, n = 0) => {
|
|
1754
1739
|
e = !0, o(n, t);
|
|
@@ -1756,35 +1741,35 @@ function xr(e, t, n = !1) {
|
|
|
1756
1741
|
}, a);
|
|
1757
1742
|
}
|
|
1758
1743
|
//#endregion
|
|
1759
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1760
|
-
function
|
|
1761
|
-
|
|
1762
|
-
e =
|
|
1744
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/css.js
|
|
1745
|
+
function vr(e, t) {
|
|
1746
|
+
an(() => {
|
|
1747
|
+
e = q?.parent?.nodes?.start ?? e;
|
|
1763
1748
|
var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
|
|
1764
1749
|
if (!r.querySelector("#" + t.hash)) {
|
|
1765
|
-
let e =
|
|
1750
|
+
let e = qt("style");
|
|
1766
1751
|
e.id = t.hash, e.textContent = t.code, r.appendChild(e);
|
|
1767
1752
|
}
|
|
1768
1753
|
});
|
|
1769
1754
|
}
|
|
1770
1755
|
//#endregion
|
|
1771
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1772
|
-
function
|
|
1756
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
|
|
1757
|
+
function yr(e, t) {
|
|
1773
1758
|
return e === t || e?.[E] === t;
|
|
1774
1759
|
}
|
|
1775
|
-
function
|
|
1776
|
-
var i =
|
|
1777
|
-
return
|
|
1760
|
+
function br(e = Fe(), t, n, r) {
|
|
1761
|
+
var i = N.r, a = q;
|
|
1762
|
+
return an(() => {
|
|
1778
1763
|
var o, s;
|
|
1779
|
-
return
|
|
1780
|
-
o = s, s = r?.() || [],
|
|
1781
|
-
|
|
1764
|
+
return sn(() => {
|
|
1765
|
+
o = s, s = r?.() || [], Un(() => {
|
|
1766
|
+
yr(n(...s), e) || (t(e, ...s), o && yr(n(...o), e) && t(null, ...o));
|
|
1782
1767
|
});
|
|
1783
1768
|
}), () => {
|
|
1784
1769
|
let r = a;
|
|
1785
1770
|
for (; r !== i && r.parent !== null && r.parent.f & 33554432;) r = r.parent;
|
|
1786
1771
|
let o = () => {
|
|
1787
|
-
s &&
|
|
1772
|
+
s && yr(n(...s), e) && t(null, ...s);
|
|
1788
1773
|
}, c = r.teardown;
|
|
1789
1774
|
r.teardown = () => {
|
|
1790
1775
|
o(), c?.();
|
|
@@ -1793,16 +1778,27 @@ function wr(e = Le(), t, n, r) {
|
|
|
1793
1778
|
}), e;
|
|
1794
1779
|
}
|
|
1795
1780
|
//#endregion
|
|
1796
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1781
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/store.js
|
|
1782
|
+
var xr = !1;
|
|
1783
|
+
function Sr(e) {
|
|
1784
|
+
var t = xr;
|
|
1785
|
+
try {
|
|
1786
|
+
return xr = !1, [e(), xr];
|
|
1787
|
+
} finally {
|
|
1788
|
+
xr = t;
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
//#endregion
|
|
1792
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/props.js
|
|
1797
1793
|
function Q(e, t, n, r) {
|
|
1798
|
-
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__ */ Ye(r), Z(u)) : (c && (c = !1, s = o ? Un(r) : r), s);
|
|
1799
1795
|
let f;
|
|
1800
1796
|
if (a) {
|
|
1801
|
-
var p = E in e ||
|
|
1797
|
+
var p = E in e || ae in e;
|
|
1802
1798
|
f = l(e, t)?.set ?? (p && t in e ? (n) => e[t] = n : void 0);
|
|
1803
1799
|
}
|
|
1804
1800
|
var m, h = !1;
|
|
1805
|
-
a ? [m, h] =
|
|
1801
|
+
a ? [m, h] = Sr(() => e[t]) : m = e[t], m === void 0 && r !== void 0 && (m = d(), f && (i && De(t), f(m)));
|
|
1806
1802
|
var g = i ? () => {
|
|
1807
1803
|
var n = e[t];
|
|
1808
1804
|
return n === void 0 ? d() : (c = !0, n);
|
|
@@ -1817,28 +1813,28 @@ function Q(e, t, n, r) {
|
|
|
1817
1813
|
return arguments.length > 0 ? ((!i || !t || _ || h) && f(t ? g() : e), e) : g();
|
|
1818
1814
|
});
|
|
1819
1815
|
}
|
|
1820
|
-
var v = !1, y = (n & 1 ?
|
|
1816
|
+
var v = !1, y = (n & 1 ? Ye : $e)(() => (v = !1, g()));
|
|
1821
1817
|
a && Z(y);
|
|
1822
|
-
var b =
|
|
1818
|
+
var b = q;
|
|
1823
1819
|
return (function(e, t) {
|
|
1824
1820
|
if (arguments.length > 0) {
|
|
1825
|
-
let n = t ? Z(y) : i && a ?
|
|
1826
|
-
return
|
|
1821
|
+
let n = t ? Z(y) : i && a ? Nt(e) : e;
|
|
1822
|
+
return B(y, n), v = !0, s !== void 0 && (s = n), e;
|
|
1827
1823
|
}
|
|
1828
|
-
return
|
|
1824
|
+
return Cn && v || b.f & 16384 ? y.v : Z(y);
|
|
1829
1825
|
});
|
|
1830
1826
|
}
|
|
1831
1827
|
//#endregion
|
|
1832
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1833
|
-
function
|
|
1834
|
-
return new
|
|
1828
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/legacy/legacy-client.js
|
|
1829
|
+
function Cr(e) {
|
|
1830
|
+
return new wr(e);
|
|
1835
1831
|
}
|
|
1836
|
-
var
|
|
1832
|
+
var wr = class {
|
|
1837
1833
|
#e;
|
|
1838
1834
|
#t;
|
|
1839
1835
|
constructor(e) {
|
|
1840
1836
|
var t = /* @__PURE__ */ new Map(), n = (e, n) => {
|
|
1841
|
-
var r = /* @__PURE__ */
|
|
1837
|
+
var r = /* @__PURE__ */ Et(n, !1, !1);
|
|
1842
1838
|
return t.set(e, r), r;
|
|
1843
1839
|
};
|
|
1844
1840
|
let r = new Proxy({
|
|
@@ -1849,13 +1845,13 @@ var Er = class {
|
|
|
1849
1845
|
return Z(t.get(r) ?? n(r, Reflect.get(e, r)));
|
|
1850
1846
|
},
|
|
1851
1847
|
has(e, r) {
|
|
1852
|
-
return r ===
|
|
1848
|
+
return r === ae ? !0 : (Z(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
|
|
1853
1849
|
},
|
|
1854
1850
|
set(e, r, i) {
|
|
1855
|
-
return
|
|
1851
|
+
return B(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
|
|
1856
1852
|
}
|
|
1857
1853
|
});
|
|
1858
|
-
this.#t = (e.hydrate ?
|
|
1854
|
+
this.#t = (e.hydrate ? ur : lr)(e.component, {
|
|
1859
1855
|
target: e.target,
|
|
1860
1856
|
anchor: e.anchor,
|
|
1861
1857
|
props: r,
|
|
@@ -1863,7 +1859,7 @@ var Er = class {
|
|
|
1863
1859
|
intro: e.intro ?? !1,
|
|
1864
1860
|
recover: e.recover,
|
|
1865
1861
|
transformError: e.transformError
|
|
1866
|
-
}), (!e?.props?.$$host || e.sync === !1) &&
|
|
1862
|
+
}), (!e?.props?.$$host || e.sync === !1) && L(), this.#e = r.$$events;
|
|
1867
1863
|
for (let e of Object.keys(this.#t)) e === "$set" || e === "$destroy" || e === "$on" || c(this, e, {
|
|
1868
1864
|
get() {
|
|
1869
1865
|
return this.#t[e];
|
|
@@ -1876,7 +1872,7 @@ var Er = class {
|
|
|
1876
1872
|
this.#t.$set = (e) => {
|
|
1877
1873
|
Object.assign(r, e);
|
|
1878
1874
|
}, this.#t.$destroy = () => {
|
|
1879
|
-
|
|
1875
|
+
mr(this.#t);
|
|
1880
1876
|
};
|
|
1881
1877
|
}
|
|
1882
1878
|
$set(e) {
|
|
@@ -1892,8 +1888,8 @@ var Er = class {
|
|
|
1892
1888
|
$destroy() {
|
|
1893
1889
|
this.#t.$destroy();
|
|
1894
1890
|
}
|
|
1895
|
-
},
|
|
1896
|
-
typeof HTMLElement == "function" && (
|
|
1891
|
+
}, Tr;
|
|
1892
|
+
typeof HTMLElement == "function" && (Tr = class extends HTMLElement {
|
|
1897
1893
|
$$ctor;
|
|
1898
1894
|
$$s;
|
|
1899
1895
|
$$c;
|
|
@@ -1926,18 +1922,18 @@ typeof HTMLElement == "function" && (Dr = class extends HTMLElement {
|
|
|
1926
1922
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
1927
1923
|
function e(e) {
|
|
1928
1924
|
return (t) => {
|
|
1929
|
-
let n =
|
|
1930
|
-
e !== "default" && (n.name = e),
|
|
1925
|
+
let n = qt("slot");
|
|
1926
|
+
e !== "default" && (n.name = e), tr(t, n);
|
|
1931
1927
|
};
|
|
1932
1928
|
}
|
|
1933
|
-
let t = {}, n =
|
|
1929
|
+
let t = {}, n = Dr(this);
|
|
1934
1930
|
for (let r of this.$$s) r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), t.default = !0) : t[r] = e(r));
|
|
1935
1931
|
for (let e of this.attributes) {
|
|
1936
1932
|
let t = this.$$g_p(e.name);
|
|
1937
|
-
t in this.$$d || (this.$$d[t] =
|
|
1933
|
+
t in this.$$d || (this.$$d[t] = Er(t, e.value, this.$$p_d, "toProp"));
|
|
1938
1934
|
}
|
|
1939
1935
|
for (let e in this.$$p_d) !(e in this.$$d) && this[e] !== void 0 && (this.$$d[e] = this[e], delete this[e]);
|
|
1940
|
-
this.$$c =
|
|
1936
|
+
this.$$c = Cr({
|
|
1941
1937
|
component: this.$$ctor,
|
|
1942
1938
|
target: this.$$shadowRoot || this,
|
|
1943
1939
|
props: {
|
|
@@ -1945,13 +1941,13 @@ typeof HTMLElement == "function" && (Dr = class extends HTMLElement {
|
|
|
1945
1941
|
$$slots: t,
|
|
1946
1942
|
$$host: this
|
|
1947
1943
|
}
|
|
1948
|
-
}), this.$$me =
|
|
1949
|
-
|
|
1944
|
+
}), this.$$me = nn(() => {
|
|
1945
|
+
sn(() => {
|
|
1950
1946
|
this.$$r = !0;
|
|
1951
1947
|
for (let e of s(this.$$c)) {
|
|
1952
1948
|
if (!this.$$p_d[e]?.reflect) continue;
|
|
1953
1949
|
this.$$d[e] = this.$$c[e];
|
|
1954
|
-
let t =
|
|
1950
|
+
let t = Er(e, this.$$d[e], this.$$p_d, "toAttribute");
|
|
1955
1951
|
t == null ? this.removeAttribute(this.$$p_d[e].attribute || e) : this.setAttribute(this.$$p_d[e].attribute || e, t);
|
|
1956
1952
|
}
|
|
1957
1953
|
this.$$r = !1;
|
|
@@ -1965,7 +1961,7 @@ typeof HTMLElement == "function" && (Dr = class extends HTMLElement {
|
|
|
1965
1961
|
}
|
|
1966
1962
|
}
|
|
1967
1963
|
attributeChangedCallback(e, t, n) {
|
|
1968
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
1964
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Er(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
1969
1965
|
}
|
|
1970
1966
|
disconnectedCallback() {
|
|
1971
1967
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -1976,7 +1972,7 @@ typeof HTMLElement == "function" && (Dr = class extends HTMLElement {
|
|
|
1976
1972
|
return s(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
1977
1973
|
}
|
|
1978
1974
|
});
|
|
1979
|
-
function
|
|
1975
|
+
function Er(e, t, n, r) {
|
|
1980
1976
|
let i = n[e]?.type;
|
|
1981
1977
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
|
|
1982
1978
|
if (r === "toAttribute") switch (i) {
|
|
@@ -1994,14 +1990,14 @@ function Or(e, t, n, r) {
|
|
|
1994
1990
|
default: return t;
|
|
1995
1991
|
}
|
|
1996
1992
|
}
|
|
1997
|
-
function
|
|
1993
|
+
function Dr(e) {
|
|
1998
1994
|
let t = {};
|
|
1999
1995
|
return e.childNodes.forEach((e) => {
|
|
2000
1996
|
t[e.slot || "default"] = !0;
|
|
2001
1997
|
}), t;
|
|
2002
1998
|
}
|
|
2003
|
-
function
|
|
2004
|
-
let o = class extends
|
|
1999
|
+
function Or(e, t, n, r, i, a) {
|
|
2000
|
+
let o = class extends Tr {
|
|
2005
2001
|
constructor() {
|
|
2006
2002
|
super(e, n, i), this.$$p_d = t;
|
|
2007
2003
|
}
|
|
@@ -2015,7 +2011,7 @@ function Ar(e, t, n, r, i, a) {
|
|
|
2015
2011
|
return this.$$c && e in this.$$c ? this.$$c[e] : this.$$d[e];
|
|
2016
2012
|
},
|
|
2017
2013
|
set(n) {
|
|
2018
|
-
n =
|
|
2014
|
+
n = Er(e, n, t), this.$$d[e] = n;
|
|
2019
2015
|
var r = this.$$c;
|
|
2020
2016
|
r && (l(r, e)?.get ? r[e] = n : r.$set({ [e]: n }));
|
|
2021
2017
|
}
|
|
@@ -2028,13 +2024,13 @@ function Ar(e, t, n, r, i, a) {
|
|
|
2028
2024
|
}
|
|
2029
2025
|
//#endregion
|
|
2030
2026
|
//#region src/lib/element-loader.ts
|
|
2031
|
-
var
|
|
2032
|
-
function
|
|
2033
|
-
|
|
2027
|
+
var kr = null;
|
|
2028
|
+
function Ar(e) {
|
|
2029
|
+
kr = e ?? null;
|
|
2034
2030
|
}
|
|
2035
|
-
async function
|
|
2036
|
-
if (!e.cdnUrl &&
|
|
2037
|
-
let n = await
|
|
2031
|
+
async function jr(e, t = !1) {
|
|
2032
|
+
if (!e.cdnUrl && kr) {
|
|
2033
|
+
let n = await kr(e);
|
|
2038
2034
|
if (n != null) return t && console.log(`[element-loader] Resolved ${e.kind} module via injected resolver for ${e.packagePath}`), n;
|
|
2039
2035
|
}
|
|
2040
2036
|
let n = e.cdnUrl ? `${e.cdnUrl}/${e.packagePath}` : e.packagePath;
|
|
@@ -2043,14 +2039,14 @@ async function Nr(e, t = !1) {
|
|
|
2043
2039
|
n
|
|
2044
2040
|
);
|
|
2045
2041
|
}
|
|
2046
|
-
async function
|
|
2042
|
+
async function Mr(e, t, n, r = !1, i = !1) {
|
|
2047
2043
|
if (customElements.get(t)) {
|
|
2048
2044
|
r && console.log(`[element-loader] Element ${t} already registered`);
|
|
2049
2045
|
return;
|
|
2050
2046
|
}
|
|
2051
2047
|
r && console.log(`[element-loader] Loading element ${e} (cdnUrl: ${n || "local"})`);
|
|
2052
2048
|
try {
|
|
2053
|
-
let i = e.replace(/^@pie-element\//, "").replace(/\/(author|print|controller)$/, ""), a = e.endsWith("/author") ? "author" : e.endsWith("/print") ? "print" : "delivery", o = await
|
|
2049
|
+
let i = e.replace(/^@pie-element\//, "").replace(/\/(author|print|controller)$/, ""), a = e.endsWith("/author") ? "author" : e.endsWith("/print") ? "print" : "delivery", o = await jr({
|
|
2054
2050
|
packagePath: e,
|
|
2055
2051
|
packageName: `@pie-element/${i}`,
|
|
2056
2052
|
elementName: i,
|
|
@@ -2066,11 +2062,11 @@ async function Pr(e, t, n, r = !1, i = !1) {
|
|
|
2066
2062
|
r && console.log(`[element-loader] Optional element ${e} not available`);
|
|
2067
2063
|
}
|
|
2068
2064
|
}
|
|
2069
|
-
async function
|
|
2065
|
+
async function Nr(e, t, n = !1) {
|
|
2070
2066
|
let r = `${e}/controller`;
|
|
2071
2067
|
n && console.log(`[element-loader] Loading controller from ${r} (cdnUrl: ${t || "local"})`);
|
|
2072
2068
|
try {
|
|
2073
|
-
let i = await
|
|
2069
|
+
let i = await jr({
|
|
2074
2070
|
packagePath: r,
|
|
2075
2071
|
packageName: e,
|
|
2076
2072
|
elementName: e.replace(/^@pie-element\//, ""),
|
|
@@ -2084,10 +2080,10 @@ async function Fr(e, t, n = !1) {
|
|
|
2084
2080
|
throw console.error(`[element-loader] Failed to load controller ${e}:`, n), Error(`Failed to load controller ${e}: ${n.message}`);
|
|
2085
2081
|
}
|
|
2086
2082
|
}
|
|
2087
|
-
async function
|
|
2083
|
+
async function Pr(e, t, n = !1) {
|
|
2088
2084
|
let r = `${e}/runtime-support`;
|
|
2089
2085
|
n && console.log(`[element-loader] Loading runtime support ${r} (cdnUrl: ${t || "local"})`);
|
|
2090
|
-
let i = await
|
|
2086
|
+
let i = await jr({
|
|
2091
2087
|
packagePath: r,
|
|
2092
2088
|
packageName: e,
|
|
2093
2089
|
elementName: e.replace(/^@pie-element\//, ""),
|
|
@@ -2099,7 +2095,7 @@ async function Ir(e, t, n = !1) {
|
|
|
2099
2095
|
}
|
|
2100
2096
|
//#endregion
|
|
2101
2097
|
//#region src/lib/iife-bundle-loader.ts
|
|
2102
|
-
var
|
|
2098
|
+
var Fr = {
|
|
2103
2099
|
retryDelayMs: 3e3,
|
|
2104
2100
|
timeoutMs: 12e4
|
|
2105
2101
|
}, $ = class extends Error {
|
|
@@ -2107,30 +2103,30 @@ var Lr = {
|
|
|
2107
2103
|
super(t), this.name = "IifeBundleLoadError", this.code = e, this.metadata = n;
|
|
2108
2104
|
}
|
|
2109
2105
|
};
|
|
2110
|
-
function
|
|
2106
|
+
function Ir(e) {
|
|
2111
2107
|
return {
|
|
2112
|
-
retryDelayMs: typeof e?.retryDelayMs == "number" && e.retryDelayMs > 0 ? e.retryDelayMs :
|
|
2113
|
-
timeoutMs: typeof e?.timeoutMs == "number" && e.timeoutMs > 0 ? e.timeoutMs :
|
|
2108
|
+
retryDelayMs: typeof e?.retryDelayMs == "number" && e.retryDelayMs > 0 ? e.retryDelayMs : Fr.retryDelayMs,
|
|
2109
|
+
timeoutMs: typeof e?.timeoutMs == "number" && e.timeoutMs > 0 ? e.timeoutMs : Fr.timeoutMs
|
|
2114
2110
|
};
|
|
2115
2111
|
}
|
|
2116
|
-
function
|
|
2112
|
+
function Lr(e) {
|
|
2117
2113
|
return e instanceof $ ? e.code === "SCRIPT_LOAD_FAILED" || e.code === "BUILD_START_FAILED" || e.code === "BUILD_STATUS_FAILED" : !1;
|
|
2118
2114
|
}
|
|
2119
|
-
function
|
|
2115
|
+
function Rr(e) {
|
|
2120
2116
|
return e instanceof Error ? e.message : typeof e == "string" ? e : String(e);
|
|
2121
2117
|
}
|
|
2122
|
-
function
|
|
2118
|
+
function zr(e) {
|
|
2123
2119
|
return new Promise((t) => setTimeout(t, e));
|
|
2124
2120
|
}
|
|
2125
|
-
function
|
|
2121
|
+
function Br(e) {
|
|
2126
2122
|
if (e?.aborted) throw new $("LOAD_ABORTED", "IIFE bundle load aborted");
|
|
2127
2123
|
}
|
|
2128
|
-
async function
|
|
2124
|
+
async function Vr(e, t) {
|
|
2129
2125
|
if (!t) {
|
|
2130
|
-
await
|
|
2126
|
+
await zr(e);
|
|
2131
2127
|
return;
|
|
2132
2128
|
}
|
|
2133
|
-
t.aborted &&
|
|
2129
|
+
t.aborted && Br(t), await new Promise((n, r) => {
|
|
2134
2130
|
let i = setTimeout(() => {
|
|
2135
2131
|
t.removeEventListener("abort", a), n();
|
|
2136
2132
|
}, e), a = () => {
|
|
@@ -2139,48 +2135,48 @@ async function Ur(e, t) {
|
|
|
2139
2135
|
t.addEventListener("abort", a);
|
|
2140
2136
|
});
|
|
2141
2137
|
}
|
|
2142
|
-
var
|
|
2143
|
-
function
|
|
2144
|
-
|
|
2138
|
+
var Hr = /* @__PURE__ */ new Map(), Ur = {};
|
|
2139
|
+
function Wr(e) {
|
|
2140
|
+
Ur = e ?? {};
|
|
2145
2141
|
}
|
|
2146
|
-
function
|
|
2142
|
+
function Gr() {
|
|
2147
2143
|
let e = window.pie;
|
|
2148
2144
|
if (!e) throw new $("REGISTRY_INVALID", "window.pie not found after loading IIFE bundle");
|
|
2149
2145
|
let t = e.default || e;
|
|
2150
2146
|
if (!t || typeof t != "object") throw new $("REGISTRY_INVALID", "Invalid IIFE package registry shape");
|
|
2151
2147
|
return t;
|
|
2152
2148
|
}
|
|
2153
|
-
function
|
|
2154
|
-
let t =
|
|
2149
|
+
function Kr(e) {
|
|
2150
|
+
let t = Hr.get(e);
|
|
2155
2151
|
if (t) return t;
|
|
2156
2152
|
let n = new Promise((t, n) => {
|
|
2157
2153
|
let r = document.createElement("script");
|
|
2158
2154
|
r.src = e, r.defer = !0, r.dataset.pieBundle = "true", r.onload = () => {
|
|
2159
2155
|
try {
|
|
2160
|
-
t(
|
|
2156
|
+
t(Gr());
|
|
2161
2157
|
} catch (t) {
|
|
2162
|
-
|
|
2158
|
+
Hr.delete(e), n(t instanceof Error ? t : new $("REGISTRY_INVALID", String(t)));
|
|
2163
2159
|
}
|
|
2164
2160
|
}, r.onerror = () => {
|
|
2165
|
-
|
|
2161
|
+
Hr.delete(e), n(new $("SCRIPT_LOAD_FAILED", `Failed to load IIFE bundle: ${e}`, { url: e }));
|
|
2166
2162
|
}, document.head.appendChild(r);
|
|
2167
2163
|
});
|
|
2168
|
-
return
|
|
2164
|
+
return Hr.set(e, n), n;
|
|
2169
2165
|
}
|
|
2170
|
-
function
|
|
2166
|
+
function qr(e, t) {
|
|
2171
2167
|
return e ? t === "player" ? e.player || "" : t === "editor" ? e.editor || "" : e.clientPlayer || "" : "";
|
|
2172
2168
|
}
|
|
2173
|
-
function
|
|
2169
|
+
function Jr(e) {
|
|
2174
2170
|
return `${e.trim().replace(/\/+$/, "")}/`;
|
|
2175
2171
|
}
|
|
2176
|
-
function
|
|
2172
|
+
function Yr(e) {
|
|
2177
2173
|
return e === "editor" ? "editor.js" : e === "player" ? "player.js" : "client-player.js";
|
|
2178
2174
|
}
|
|
2179
|
-
function
|
|
2180
|
-
let a = encodeURI(`${t}@${n}`), o = `${
|
|
2175
|
+
function Xr({ bundleHost: e, packageName: t, version: n, bundleTarget: r, forceRebuild: i }) {
|
|
2176
|
+
let a = encodeURI(`${t}@${n}`), o = `${Jr(e)}${a}/${Yr(r)}`;
|
|
2181
2177
|
return i ? `${o}${o.includes("?") ? "&" : "?"}overwrite=true&rebuild=${Date.now()}` : o;
|
|
2182
2178
|
}
|
|
2183
|
-
function
|
|
2179
|
+
function Zr(e, t) {
|
|
2184
2180
|
let n = e[t];
|
|
2185
2181
|
if (!n) throw new $("PACKAGE_MISSING", `Package ${t} not found in loaded bundle. Available: ${Object.keys(e).join(", ")}`, {
|
|
2186
2182
|
packageName: t,
|
|
@@ -2188,7 +2184,7 @@ function $r(e, t) {
|
|
|
2188
2184
|
});
|
|
2189
2185
|
return n;
|
|
2190
2186
|
}
|
|
2191
|
-
var
|
|
2187
|
+
var Qr = {
|
|
2192
2188
|
async startBuild(e) {
|
|
2193
2189
|
let t = await fetch(e.endpoint, {
|
|
2194
2190
|
method: "POST",
|
|
@@ -2232,23 +2228,23 @@ var ei = {
|
|
|
2232
2228
|
await new Promise((e) => setTimeout(e, 500));
|
|
2233
2229
|
}
|
|
2234
2230
|
}
|
|
2235
|
-
},
|
|
2236
|
-
async function
|
|
2237
|
-
let t = e.bundleTarget || "client-player", n = e.endpoint || "/api/bundle", r =
|
|
2231
|
+
}, $r = { load: (e) => Kr(e) };
|
|
2232
|
+
async function ei(e) {
|
|
2233
|
+
let t = e.bundleTarget || "client-player", n = e.endpoint || "/api/bundle", r = Ir(e.iifeBundleRetry), i = e.adapters ?? Ur, a = i.buildClient ?? Qr, o = i.registryClient ?? $r, s = Date.now(), c = 0;
|
|
2238
2234
|
for (;;) {
|
|
2239
2235
|
c += 1;
|
|
2240
2236
|
try {
|
|
2241
|
-
if (
|
|
2237
|
+
if (Br(e.signal), e.bundleHost) {
|
|
2242
2238
|
e.onProgress?.({ stage: "script-load" });
|
|
2243
|
-
let n =
|
|
2239
|
+
let n = Xr({
|
|
2244
2240
|
bundleHost: e.bundleHost,
|
|
2245
2241
|
packageName: e.packageName,
|
|
2246
2242
|
version: e.version,
|
|
2247
2243
|
bundleTarget: t,
|
|
2248
2244
|
forceRebuild: !!e.forceRebuild
|
|
2249
2245
|
}), i = await o.load(n);
|
|
2250
|
-
|
|
2251
|
-
let a =
|
|
2246
|
+
Br(e.signal);
|
|
2247
|
+
let a = Zr(i, e.packageName), l = {
|
|
2252
2248
|
source: "hosted",
|
|
2253
2249
|
url: n
|
|
2254
2250
|
};
|
|
@@ -2277,11 +2273,11 @@ async function ni(e) {
|
|
|
2277
2273
|
endpoint: n,
|
|
2278
2274
|
onProgress: e.onProgress
|
|
2279
2275
|
});
|
|
2280
|
-
if (
|
|
2276
|
+
if (Br(e.signal), !l.success) throw new $("BUILD_RESULT_FAILED", l.errors?.join("\n") || "Local bundle build failed", {
|
|
2281
2277
|
packageName: e.packageName,
|
|
2282
2278
|
endpoint: n
|
|
2283
2279
|
});
|
|
2284
|
-
let u =
|
|
2280
|
+
let u = qr(l.bundles, t);
|
|
2285
2281
|
if (!u) throw new $("BUNDLE_URL_MISSING", "Bundle URL was not returned", {
|
|
2286
2282
|
packageName: e.packageName,
|
|
2287
2283
|
bundleTarget: t
|
|
@@ -2298,8 +2294,8 @@ async function ni(e) {
|
|
|
2298
2294
|
cached: l.cached,
|
|
2299
2295
|
url: u
|
|
2300
2296
|
}, p = await o.load(u);
|
|
2301
|
-
|
|
2302
|
-
let m =
|
|
2297
|
+
Br(e.signal);
|
|
2298
|
+
let m = Zr(p, e.packageName);
|
|
2303
2299
|
if (c > 1) {
|
|
2304
2300
|
let t = Date.now() - s;
|
|
2305
2301
|
console.info(`[iife-bundle-loader] retry recovered after ${c} attempts (${t}ms): ${e.packageName}@${e.version}`);
|
|
@@ -2321,10 +2317,10 @@ async function ni(e) {
|
|
|
2321
2317
|
attempt: c,
|
|
2322
2318
|
elapsedMs: Date.now() - s,
|
|
2323
2319
|
timeoutMs: r.timeoutMs,
|
|
2324
|
-
reason:
|
|
2320
|
+
reason: Rr(t)
|
|
2325
2321
|
}), t;
|
|
2326
|
-
if (!
|
|
2327
|
-
let i = Date.now() - s, a = r.timeoutMs - i, o =
|
|
2322
|
+
if (!Lr(t)) throw t;
|
|
2323
|
+
let i = Date.now() - s, a = r.timeoutMs - i, o = Rr(t);
|
|
2328
2324
|
if (a <= 0) throw e.onRetryStatus?.({
|
|
2329
2325
|
state: "timeout",
|
|
2330
2326
|
stage: t.code === "SCRIPT_LOAD_FAILED" ? "script-load" : "build-status",
|
|
@@ -2352,31 +2348,31 @@ async function ni(e) {
|
|
|
2352
2348
|
retryDelayMs: l,
|
|
2353
2349
|
timeoutMs: r.timeoutMs,
|
|
2354
2350
|
reason: o
|
|
2355
|
-
}), await
|
|
2351
|
+
}), await Vr(l, e.signal);
|
|
2356
2352
|
}
|
|
2357
2353
|
}
|
|
2358
2354
|
}
|
|
2359
2355
|
//#endregion
|
|
2360
2356
|
//#region src/lib/player-strategy.ts
|
|
2361
|
-
function
|
|
2357
|
+
function ti(e, t = "esm") {
|
|
2362
2358
|
return e === "esm" || e === "iife" || e === "preloaded" ? e : t;
|
|
2363
2359
|
}
|
|
2364
|
-
function
|
|
2360
|
+
function ni(e, t = "delivery") {
|
|
2365
2361
|
return e === "delivery" || e === "author" || e === "print" ? e : t;
|
|
2366
2362
|
}
|
|
2367
|
-
function
|
|
2368
|
-
let n =
|
|
2363
|
+
function ri(e, t = "delivery") {
|
|
2364
|
+
let n = ni(e.view ?? void 0, t);
|
|
2369
2365
|
return e.view ? n : e.mode === "author" ? "author" : e.mode === "print" ? "print" : t;
|
|
2370
2366
|
}
|
|
2371
2367
|
//#endregion
|
|
2372
2368
|
//#region src/lib/runtime-support.ts
|
|
2373
|
-
function
|
|
2369
|
+
function ii(e, t = "off") {
|
|
2374
2370
|
return e === "off" || e === "on" ? e : t;
|
|
2375
2371
|
}
|
|
2376
|
-
function
|
|
2372
|
+
function ai(e) {
|
|
2377
2373
|
return e === "on";
|
|
2378
2374
|
}
|
|
2379
|
-
function
|
|
2375
|
+
function oi(e, t, n) {
|
|
2380
2376
|
let r = e.supports?.[t];
|
|
2381
2377
|
if (!r) return !0;
|
|
2382
2378
|
let i = r[n];
|
|
@@ -2384,17 +2380,17 @@ function ci(e, t, n) {
|
|
|
2384
2380
|
}
|
|
2385
2381
|
//#endregion
|
|
2386
2382
|
//#region src/lib/unified-player-loader.ts
|
|
2387
|
-
var
|
|
2388
|
-
function
|
|
2383
|
+
var si = 3e4, ci = /* @__PURE__ */ new Map(), li = /* @__PURE__ */ new Map();
|
|
2384
|
+
function ui(e, t, n, r) {
|
|
2389
2385
|
if (n !== "delivery" || r?.status === "loaded") return;
|
|
2390
2386
|
let i = r?.message || `controller status=${r?.status || "missing"}`;
|
|
2391
2387
|
throw Error(`Controller contract violation for ${e.packageName} (${t}/${n}): ${i}. Delivery mode requires a loadable controller.`);
|
|
2392
2388
|
}
|
|
2393
|
-
var
|
|
2394
|
-
function
|
|
2395
|
-
return e === "iife" ?
|
|
2389
|
+
var di = (e, t) => t === "delivery" ? `pie-iife-${e}`.replace(/[^a-z0-9-]/g, "-") : t === "author" ? `${e}-configure` : `${e}-print`, fi = (e, t) => t === "delivery" ? `${e}-element` : t === "author" ? `${e}-configure` : `${e}-print`;
|
|
2390
|
+
function pi(e, t, n) {
|
|
2391
|
+
return e === "iife" ? di(n, t) : fi(n, t);
|
|
2396
2392
|
}
|
|
2397
|
-
function
|
|
2393
|
+
function mi(e, t, n) {
|
|
2398
2394
|
return {
|
|
2399
2395
|
status: "not-required",
|
|
2400
2396
|
source: "none",
|
|
@@ -2403,13 +2399,13 @@ function gi(e, t, n) {
|
|
|
2403
2399
|
view: n
|
|
2404
2400
|
};
|
|
2405
2401
|
}
|
|
2406
|
-
async function
|
|
2402
|
+
async function hi(e, t, n) {
|
|
2407
2403
|
if (n !== "delivery" && n !== "author") return {
|
|
2408
2404
|
controller: void 0,
|
|
2409
|
-
diagnostic:
|
|
2405
|
+
diagnostic: mi(e.packageName, t, n)
|
|
2410
2406
|
};
|
|
2411
2407
|
try {
|
|
2412
|
-
let r = await
|
|
2408
|
+
let r = await Nr(e.packageName, e.cdnUrl || "");
|
|
2413
2409
|
return {
|
|
2414
2410
|
controller: r,
|
|
2415
2411
|
diagnostic: {
|
|
@@ -2436,18 +2432,18 @@ async function _i(e, t, n) {
|
|
|
2436
2432
|
};
|
|
2437
2433
|
}
|
|
2438
2434
|
}
|
|
2439
|
-
function
|
|
2440
|
-
|
|
2435
|
+
function gi(e) {
|
|
2436
|
+
Ar(e);
|
|
2441
2437
|
}
|
|
2442
|
-
function
|
|
2438
|
+
function _i(e) {
|
|
2443
2439
|
return `${e.packageName}@${e.elementVersion || "latest"}`;
|
|
2444
2440
|
}
|
|
2445
|
-
function
|
|
2441
|
+
function vi(e) {
|
|
2446
2442
|
let t = String(e || "").toLowerCase();
|
|
2447
2443
|
return t.includes("cannot find module") || t.includes("no known conditions") || t.includes("failed to fetch dynamically imported module") || t.includes("404") || t.includes("/runtime-support");
|
|
2448
2444
|
}
|
|
2449
|
-
async function
|
|
2450
|
-
if (!
|
|
2445
|
+
async function yi(e, t, n) {
|
|
2446
|
+
if (!ai(ii(e.runtimeSupportCheck, "off"))) return {
|
|
2451
2447
|
runtimeSupport: void 0,
|
|
2452
2448
|
diagnostic: {
|
|
2453
2449
|
status: "skipped",
|
|
@@ -2456,7 +2452,7 @@ async function xi(e, t, n) {
|
|
|
2456
2452
|
view: n
|
|
2457
2453
|
}
|
|
2458
2454
|
};
|
|
2459
|
-
let r =
|
|
2455
|
+
let r = _i(e), i = ci.get(r);
|
|
2460
2456
|
if (i) return {
|
|
2461
2457
|
runtimeSupport: i,
|
|
2462
2458
|
diagnostic: {
|
|
@@ -2466,8 +2462,8 @@ async function xi(e, t, n) {
|
|
|
2466
2462
|
view: n
|
|
2467
2463
|
}
|
|
2468
2464
|
};
|
|
2469
|
-
let a =
|
|
2470
|
-
if (a && Date.now() - a <
|
|
2465
|
+
let a = li.get(r);
|
|
2466
|
+
if (a && Date.now() - a < si) return {
|
|
2471
2467
|
runtimeSupport: void 0,
|
|
2472
2468
|
diagnostic: {
|
|
2473
2469
|
status: "missing",
|
|
@@ -2478,8 +2474,8 @@ async function xi(e, t, n) {
|
|
|
2478
2474
|
}
|
|
2479
2475
|
};
|
|
2480
2476
|
try {
|
|
2481
|
-
let i = await
|
|
2482
|
-
return
|
|
2477
|
+
let i = await Pr(e.packageName, e.cdnUrl || "");
|
|
2478
|
+
return ci.set(r, i), li.delete(r), {
|
|
2483
2479
|
runtimeSupport: i,
|
|
2484
2480
|
diagnostic: {
|
|
2485
2481
|
status: "loaded",
|
|
@@ -2490,7 +2486,7 @@ async function xi(e, t, n) {
|
|
|
2490
2486
|
};
|
|
2491
2487
|
} catch (i) {
|
|
2492
2488
|
let a = i instanceof Error ? i.message : String(i);
|
|
2493
|
-
return
|
|
2489
|
+
return vi(i) ? (li.set(r, Date.now()), {
|
|
2494
2490
|
runtimeSupport: void 0,
|
|
2495
2491
|
diagnostic: {
|
|
2496
2492
|
status: "missing",
|
|
@@ -2511,14 +2507,14 @@ async function xi(e, t, n) {
|
|
|
2511
2507
|
};
|
|
2512
2508
|
}
|
|
2513
2509
|
}
|
|
2514
|
-
function
|
|
2515
|
-
return !r || e !== "esm" && e !== "iife" ||
|
|
2510
|
+
function bi(e, t, n, r) {
|
|
2511
|
+
return !r || e !== "esm" && e !== "iife" || oi(r, e, t) ? "" : ` Runtime support metadata indicates ${e}/${t} is unsupported for ${n}.`;
|
|
2516
2512
|
}
|
|
2517
|
-
async function
|
|
2518
|
-
let a =
|
|
2519
|
-
await
|
|
2520
|
-
let { controller: o, diagnostic: s } = await
|
|
2521
|
-
return
|
|
2513
|
+
async function xi(e, t, n, r, i) {
|
|
2514
|
+
let a = fi(e.elementName, t);
|
|
2515
|
+
await Mr(t === "delivery" ? e.packageName : t === "author" ? `${e.packageName}/author` : `${e.packageName}/print`, a, e.cdnUrl || ""), await customElements.whenDefined(a);
|
|
2516
|
+
let { controller: o, diagnostic: s } = await hi(e, "esm", t);
|
|
2517
|
+
return ui(e, "esm", t, s), {
|
|
2522
2518
|
strategy: "esm",
|
|
2523
2519
|
requestedStrategy: n,
|
|
2524
2520
|
view: t,
|
|
@@ -2529,19 +2525,19 @@ async function Ci(e, t, n, r, i) {
|
|
|
2529
2525
|
runtimeSupportDiagnostic: i
|
|
2530
2526
|
};
|
|
2531
2527
|
}
|
|
2532
|
-
async function
|
|
2533
|
-
let a = t === "author" ? "editor" : t === "print" ? "player" : "client-player", { pkg: o, meta: s } = await
|
|
2528
|
+
async function Si(e, t, n, r, i) {
|
|
2529
|
+
let a = t === "author" ? "editor" : t === "print" ? "player" : "client-player", { pkg: o, meta: s } = await ei({
|
|
2534
2530
|
packageName: e.packageName,
|
|
2535
2531
|
version: e.elementVersion,
|
|
2536
2532
|
endpoint: e.iifeBundleEndpoint,
|
|
2537
2533
|
bundleHost: e.iifeBundleHost,
|
|
2538
|
-
iifeBundleRetry: e.iifeBundleRetry ??
|
|
2534
|
+
iifeBundleRetry: e.iifeBundleRetry ?? Fr,
|
|
2539
2535
|
onRetryStatus: e.onIifeBundleRetryStatus,
|
|
2540
2536
|
signal: e.signal,
|
|
2541
2537
|
bundleTarget: a,
|
|
2542
2538
|
forceRebuild: (e.rebuildVersion || 0) > 0,
|
|
2543
2539
|
clearCache: (e.rebuildVersion || 0) > 0
|
|
2544
|
-
}), c =
|
|
2540
|
+
}), c = di(e.elementName, t), l = t === "delivery" ? o.Element : t === "author" ? o.Configure : o.Print;
|
|
2545
2541
|
if (!l) throw Error(`IIFE bundle is missing ${t} export for ${e.packageName}`);
|
|
2546
2542
|
customElements.get(c) || customElements.define(c, class extends l {}), await customElements.whenDefined(c);
|
|
2547
2543
|
let u = o.controller, d;
|
|
@@ -2561,10 +2557,10 @@ async function wi(e, t, n, r, i) {
|
|
|
2561
2557
|
message: "client-player bundle did not include controller export"
|
|
2562
2558
|
};
|
|
2563
2559
|
else {
|
|
2564
|
-
let n = await
|
|
2560
|
+
let n = await hi(e, "iife", t);
|
|
2565
2561
|
u = n.controller, d = n.diagnostic;
|
|
2566
2562
|
}
|
|
2567
|
-
return
|
|
2563
|
+
return ui(e, "iife", t, d), {
|
|
2568
2564
|
strategy: "iife",
|
|
2569
2565
|
requestedStrategy: n,
|
|
2570
2566
|
view: t,
|
|
@@ -2576,50 +2572,60 @@ async function wi(e, t, n, r, i) {
|
|
|
2576
2572
|
runtimeSupportDiagnostic: i
|
|
2577
2573
|
};
|
|
2578
2574
|
}
|
|
2579
|
-
async function
|
|
2580
|
-
let t =
|
|
2575
|
+
async function Ci(e) {
|
|
2576
|
+
let t = ti(e.strategy, "esm"), n = t, r = ni(e.view, "delivery");
|
|
2581
2577
|
if (n === "preloaded") {
|
|
2582
|
-
let t =
|
|
2578
|
+
let t = ti(e.preloadedFallbackStrategy, "esm"), n = pi(t, r, e.elementName);
|
|
2583
2579
|
return customElements.get(n) ? {
|
|
2584
2580
|
strategy: "preloaded",
|
|
2585
2581
|
view: r,
|
|
2586
2582
|
tagName: n
|
|
2587
|
-
} :
|
|
2583
|
+
} : Ci({
|
|
2588
2584
|
...e,
|
|
2589
2585
|
strategy: t
|
|
2590
2586
|
});
|
|
2591
2587
|
}
|
|
2592
|
-
let i = await
|
|
2588
|
+
let i = await yi(e, n, r);
|
|
2593
2589
|
try {
|
|
2594
|
-
return n === "iife" ?
|
|
2590
|
+
return n === "iife" ? Si(e, r, t, i.runtimeSupport, i.diagnostic) : xi(e, r, t, i.runtimeSupport, i.diagnostic);
|
|
2595
2591
|
} catch (t) {
|
|
2596
|
-
let a = t instanceof Error ? t.message : String(t), o =
|
|
2592
|
+
let a = t instanceof Error ? t.message : String(t), o = bi(n, r, e.packageName, i.runtimeSupport);
|
|
2597
2593
|
throw Error(`${a}${o}`);
|
|
2598
2594
|
}
|
|
2599
2595
|
}
|
|
2600
2596
|
//#endregion
|
|
2601
2597
|
//#region src/players/PieElementPlayer.svelte
|
|
2602
|
-
var
|
|
2598
|
+
var wi = /* @__PURE__ */ er("<div class=\"loading-warning svelte-srjg3v\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div>"), Ti = /* @__PURE__ */ er("<div class=\"loading svelte-srjg3v\"> <!></div>"), Ei = /* @__PURE__ */ er("<div class=\"error svelte-srjg3v\"><strong>Element player error:</strong> <pre class=\"svelte-srjg3v\"> </pre></div>"), Di = /* @__PURE__ */ er("<div class=\"demo-element-player element-player-host svelte-srjg3v\"><div class=\"element-player-mount svelte-srjg3v\"></div> <!> <!></div>"), Oi = {
|
|
2603
2599
|
hash: "svelte-srjg3v",
|
|
2604
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;}"
|
|
2605
2601
|
};
|
|
2606
|
-
function
|
|
2607
|
-
|
|
2608
|
-
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,
|
|
2602
|
+
function ki(t, n) {
|
|
2603
|
+
Ne(n, !0), vr(t, Oi);
|
|
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
|
+
function y(e, t) {
|
|
2606
|
+
Un(() => {
|
|
2607
|
+
n.$$host.dispatchEvent(new CustomEvent(e, {
|
|
2608
|
+
detail: t,
|
|
2609
|
+
bubbles: !0,
|
|
2610
|
+
composed: !0
|
|
2611
|
+
}));
|
|
2612
|
+
});
|
|
2613
|
+
}
|
|
2614
|
+
let b, ee, x = /* @__PURE__ */ z(null), te = /* @__PURE__ */ z(null), ne = /* @__PURE__ */ z(!0), S = /* @__PURE__ */ z(null), C = /* @__PURE__ */ z(null), re = 0, w = null, T = null, E = null, ie = null, ae = !1, oe = !1, se = null, ce = null, le = !1, ue = !1, de = "", fe = "", pe = /* @__PURE__ */ new Set(["complete", "component"]), D = null, O = "", k = "", A = /* @__PURE__ */ Qe(() => {
|
|
2609
2615
|
if (Z(C)?.state !== "retrying") return null;
|
|
2610
2616
|
let e = Math.max(1, Math.ceil(Z(C).elapsedMs / 1e3)), t = Math.max(1, Math.ceil(Z(C).timeoutMs / 1e3));
|
|
2611
2617
|
return `Bundle is still building. Retrying attempt ${Z(C).attempt} (${e}s of ${t}s).`;
|
|
2612
2618
|
});
|
|
2613
|
-
function
|
|
2619
|
+
function me(e) {
|
|
2614
2620
|
if (!e || typeof e != "object") return !1;
|
|
2615
2621
|
let t = e;
|
|
2616
2622
|
return t.code === "LOAD_ABORTED" || typeof t.message == "string" && t.message.includes("aborted");
|
|
2617
2623
|
}
|
|
2618
|
-
let
|
|
2624
|
+
let j = /* @__PURE__ */ Qe(() => ti(r(), "esm")), M = /* @__PURE__ */ Qe(() => ri({
|
|
2619
2625
|
mode: a(),
|
|
2620
2626
|
view: i()
|
|
2621
|
-
}, "delivery")),
|
|
2622
|
-
function
|
|
2627
|
+
}, "delivery")), ge = /* @__PURE__ */ Qe(() => s() || (o() ? `@pie-element/${o()}` : ""));
|
|
2628
|
+
function _e(e) {
|
|
2623
2629
|
if (typeof e != "object" || !e) return e;
|
|
2624
2630
|
try {
|
|
2625
2631
|
return structuredClone(e);
|
|
@@ -2631,7 +2637,7 @@ function ji(t, n) {
|
|
|
2631
2637
|
}
|
|
2632
2638
|
}
|
|
2633
2639
|
}
|
|
2634
|
-
function
|
|
2640
|
+
function ve(e) {
|
|
2635
2641
|
try {
|
|
2636
2642
|
let t = JSON.stringify(e);
|
|
2637
2643
|
return t === void 0 ? "__undefined__" : t;
|
|
@@ -2639,47 +2645,47 @@ function ji(t, n) {
|
|
|
2639
2645
|
return `__unserializable__:${String(e)}`;
|
|
2640
2646
|
}
|
|
2641
2647
|
}
|
|
2642
|
-
function
|
|
2648
|
+
function ye(e) {
|
|
2643
2649
|
if (!e || typeof e != "object") return !1;
|
|
2644
2650
|
let t = e;
|
|
2645
2651
|
if ("session" in t) return !0;
|
|
2646
2652
|
let n = Object.keys(t);
|
|
2647
2653
|
return n.length !== 0 && !n.every((e) => pe.has(e));
|
|
2648
2654
|
}
|
|
2649
|
-
function
|
|
2650
|
-
|
|
2655
|
+
function be() {
|
|
2656
|
+
E && b && E.observe(b, {
|
|
2651
2657
|
childList: !0,
|
|
2652
2658
|
subtree: !0,
|
|
2653
2659
|
attributes: !1,
|
|
2654
2660
|
characterData: !1
|
|
2655
2661
|
});
|
|
2656
2662
|
}
|
|
2657
|
-
async function
|
|
2658
|
-
if (!(!
|
|
2663
|
+
async function xe() {
|
|
2664
|
+
if (!(!T || !b)) {
|
|
2659
2665
|
if (ae) {
|
|
2660
2666
|
oe = !0;
|
|
2661
2667
|
return;
|
|
2662
2668
|
}
|
|
2663
|
-
ae = !0,
|
|
2669
|
+
ae = !0, E && E.disconnect();
|
|
2664
2670
|
try {
|
|
2665
|
-
await
|
|
2671
|
+
await T(b);
|
|
2666
2672
|
} catch (e) {
|
|
2667
2673
|
console.error("[pie-element-player] Math rendering error:", e);
|
|
2668
2674
|
} finally {
|
|
2669
|
-
ae = !1,
|
|
2675
|
+
ae = !1, be(), oe && (oe = !1, queueMicrotask(() => void xe()));
|
|
2670
2676
|
}
|
|
2671
2677
|
}
|
|
2672
2678
|
}
|
|
2673
|
-
function
|
|
2679
|
+
function Se() {
|
|
2674
2680
|
Z(x) && (se &&= (Z(x).removeEventListener("session-changed", se), null), ce &&= (Z(x).removeEventListener("model.updated", ce, !0), null));
|
|
2675
2681
|
}
|
|
2676
|
-
function
|
|
2677
|
-
Z(x) && (
|
|
2678
|
-
if (le || ue) {
|
|
2682
|
+
function Ce(e) {
|
|
2683
|
+
Z(x) && (Se(), e === "delivery" && (se = (e) => {
|
|
2684
|
+
if (le || ue || !O) {
|
|
2679
2685
|
e.stopPropagation();
|
|
2680
2686
|
return;
|
|
2681
2687
|
}
|
|
2682
|
-
let t = e.detail, n = t && typeof t == "object" ? t : null, r =
|
|
2688
|
+
let t = e.detail, n = t && typeof t == "object" ? t : null, r = ye(n), i = Z(x)?.session, a = t?.session ?? i ?? v();
|
|
2683
2689
|
if (a === void 0) {
|
|
2684
2690
|
e.stopPropagation();
|
|
2685
2691
|
return;
|
|
@@ -2688,7 +2694,7 @@ function ji(t, n) {
|
|
|
2688
2694
|
e.stopPropagation();
|
|
2689
2695
|
return;
|
|
2690
2696
|
}
|
|
2691
|
-
let o =
|
|
2697
|
+
let o = _e(a ?? {}), s = ve(o);
|
|
2692
2698
|
if (s === fe) {
|
|
2693
2699
|
e.stopPropagation();
|
|
2694
2700
|
return;
|
|
@@ -2696,12 +2702,12 @@ function ji(t, n) {
|
|
|
2696
2702
|
let c = {
|
|
2697
2703
|
...n ?? {},
|
|
2698
2704
|
session: o
|
|
2699
|
-
}, l =
|
|
2705
|
+
}, l = ve(c);
|
|
2700
2706
|
if (l === de) {
|
|
2701
2707
|
e.stopPropagation();
|
|
2702
2708
|
return;
|
|
2703
2709
|
}
|
|
2704
|
-
de = l, fe = s, e.stopPropagation(), ue = !0, v(
|
|
2710
|
+
de = l, fe = s, e.stopPropagation(), ue = !0, v(_e(o)), k = ve(o);
|
|
2705
2711
|
try {
|
|
2706
2712
|
y("session-changed", c);
|
|
2707
2713
|
} finally {
|
|
@@ -2717,29 +2723,29 @@ function ji(t, n) {
|
|
|
2717
2723
|
}), y("model-changed", r);
|
|
2718
2724
|
}, Z(x).addEventListener("model.updated", ce, !0)));
|
|
2719
2725
|
}
|
|
2720
|
-
function
|
|
2726
|
+
function we(e) {
|
|
2721
2727
|
if (!Z(x) || e == null) return;
|
|
2722
|
-
let t =
|
|
2723
|
-
t !==
|
|
2728
|
+
let t = ve(e ?? {});
|
|
2729
|
+
t !== O && (Z(x).model = _e(e ?? {}), O = t);
|
|
2724
2730
|
}
|
|
2725
|
-
function
|
|
2726
|
-
if (!Z(x) || Z(
|
|
2727
|
-
let t =
|
|
2728
|
-
if (t !==
|
|
2731
|
+
function Te(e) {
|
|
2732
|
+
if (!Z(x) || Z(M) !== "delivery" || e == null || !O) return;
|
|
2733
|
+
let t = ve(e ?? {});
|
|
2734
|
+
if (t !== k) {
|
|
2729
2735
|
le = !0;
|
|
2730
2736
|
try {
|
|
2731
|
-
Z(x).session =
|
|
2737
|
+
Z(x).session = _e(e ?? {}), k = t;
|
|
2732
2738
|
} finally {
|
|
2733
2739
|
le = !1;
|
|
2734
2740
|
}
|
|
2735
2741
|
}
|
|
2736
2742
|
}
|
|
2737
|
-
function
|
|
2738
|
-
!Z(x) || Z(
|
|
2743
|
+
function Ee(e) {
|
|
2744
|
+
!Z(x) || Z(M) !== "print" || e === D || (Z(x).role = e, Z(x).options = { role: e }, D = e);
|
|
2739
2745
|
}
|
|
2740
|
-
async function
|
|
2741
|
-
if (!o() || !Z(
|
|
2742
|
-
|
|
2746
|
+
async function De() {
|
|
2747
|
+
if (!o() || !Z(ge)) {
|
|
2748
|
+
B(ne, !1), B(S, "Missing required element metadata");
|
|
2743
2749
|
return;
|
|
2744
2750
|
}
|
|
2745
2751
|
let e = ++re;
|
|
@@ -2747,29 +2753,29 @@ function ji(t, n) {
|
|
|
2747
2753
|
loading: !1,
|
|
2748
2754
|
error: null,
|
|
2749
2755
|
stage: "cancelled",
|
|
2750
|
-
strategy: Z(
|
|
2751
|
-
view: Z(
|
|
2756
|
+
strategy: Z(j),
|
|
2757
|
+
view: Z(M),
|
|
2752
2758
|
retry: {
|
|
2753
2759
|
state: "cancelled",
|
|
2754
2760
|
stage: "build-status",
|
|
2755
2761
|
attempt: 0,
|
|
2756
2762
|
elapsedMs: 0,
|
|
2757
|
-
timeoutMs: p()?.timeoutMs ??
|
|
2763
|
+
timeoutMs: p()?.timeoutMs ?? Fr.timeoutMs,
|
|
2758
2764
|
reason: "superseded by new load request"
|
|
2759
2765
|
}
|
|
2760
2766
|
}), y("load-cancelled", {
|
|
2761
2767
|
reason: "superseded by new load request",
|
|
2762
|
-
strategy: Z(
|
|
2763
|
-
view: Z(
|
|
2768
|
+
strategy: Z(j),
|
|
2769
|
+
view: Z(M)
|
|
2764
2770
|
}));
|
|
2765
2771
|
let t = new AbortController();
|
|
2766
|
-
w = t,
|
|
2772
|
+
w = t, B(ne, !0), B(S, null), B(C, null);
|
|
2767
2773
|
try {
|
|
2768
|
-
let n = await
|
|
2769
|
-
strategy: Z(
|
|
2770
|
-
view: Z(
|
|
2774
|
+
let n = await Ci({
|
|
2775
|
+
strategy: Z(j),
|
|
2776
|
+
view: Z(M),
|
|
2771
2777
|
elementName: o(),
|
|
2772
|
-
packageName: Z(
|
|
2778
|
+
packageName: Z(ge),
|
|
2773
2779
|
elementVersion: c(),
|
|
2774
2780
|
cdnUrl: u(),
|
|
2775
2781
|
iifeBundleEndpoint: d(),
|
|
@@ -2778,23 +2784,20 @@ function ji(t, n) {
|
|
|
2778
2784
|
signal: t.signal,
|
|
2779
2785
|
runtimeSupportCheck: h(),
|
|
2780
2786
|
onIifeBundleRetryStatus: (t) => {
|
|
2781
|
-
|
|
2782
|
-
R(C, t, !0), y("bundle-retry-status", t);
|
|
2783
|
-
let n = {
|
|
2787
|
+
e === re && (B(C, t, !0), y("bundle-retry-status", t), y("build-state", {
|
|
2784
2788
|
loading: t.state === "retrying",
|
|
2785
2789
|
error: null,
|
|
2786
2790
|
stage: t.state,
|
|
2787
|
-
strategy: Z(
|
|
2788
|
-
view: Z(
|
|
2791
|
+
strategy: Z(j),
|
|
2792
|
+
view: Z(M),
|
|
2789
2793
|
retry: t
|
|
2790
|
-
};
|
|
2791
|
-
y("build-state", n);
|
|
2794
|
+
}));
|
|
2792
2795
|
},
|
|
2793
2796
|
preloadedFallbackStrategy: m(),
|
|
2794
2797
|
rebuildVersion: g()
|
|
2795
2798
|
});
|
|
2796
2799
|
if (e !== re) return;
|
|
2797
|
-
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) && (
|
|
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) && (Se(), Z(x) && Z(x).remove(), B(x, document.createElement(n.tagName), !0), B(te, n.tagName, !0), D = null, O = "", k = "", de = "", fe = ""), Ce(n.view), we(_()), Te(v()), Ee(l()), ee && Z(x).parentElement !== ee && ee.replaceChildren(Z(x)), y("build-state", {
|
|
2798
2801
|
loading: !1,
|
|
2799
2802
|
error: null,
|
|
2800
2803
|
stage: "completed"
|
|
@@ -2802,197 +2805,197 @@ function ji(t, n) {
|
|
|
2802
2805
|
strategy: n.strategy,
|
|
2803
2806
|
view: n.view,
|
|
2804
2807
|
tagName: n.tagName
|
|
2805
|
-
}),
|
|
2808
|
+
}), B(ne, !1), B(C, null), w === t && (w = null);
|
|
2806
2809
|
} catch (n) {
|
|
2807
2810
|
if (e !== re) return;
|
|
2808
|
-
if (
|
|
2811
|
+
if (me(n) || t.signal.aborted) {
|
|
2809
2812
|
let e = Z(C), r = e?.state === "cancelled" ? e : {
|
|
2810
2813
|
state: "cancelled",
|
|
2811
2814
|
stage: "build-status",
|
|
2812
2815
|
attempt: 0,
|
|
2813
2816
|
elapsedMs: 0,
|
|
2814
|
-
timeoutMs: p()?.timeoutMs ??
|
|
2817
|
+
timeoutMs: p()?.timeoutMs ?? Fr.timeoutMs,
|
|
2815
2818
|
reason: n instanceof Error ? n.message : String(n)
|
|
2816
2819
|
};
|
|
2817
|
-
|
|
2820
|
+
B(S, null), B(ne, !1), B(C, r, !0), y("bundle-retry-status", r), y("build-state", {
|
|
2818
2821
|
loading: !1,
|
|
2819
2822
|
error: null,
|
|
2820
2823
|
stage: "cancelled",
|
|
2821
|
-
strategy: Z(
|
|
2822
|
-
view: Z(
|
|
2824
|
+
strategy: Z(j),
|
|
2825
|
+
view: Z(M),
|
|
2823
2826
|
retry: r
|
|
2824
2827
|
}), y("load-cancelled", {
|
|
2825
2828
|
reason: r.reason || "load cancelled",
|
|
2826
|
-
strategy: Z(
|
|
2827
|
-
view: Z(
|
|
2829
|
+
strategy: Z(j),
|
|
2830
|
+
view: Z(M)
|
|
2828
2831
|
}), w === t && (w = null);
|
|
2829
2832
|
return;
|
|
2830
2833
|
}
|
|
2831
|
-
|
|
2834
|
+
B(S, n instanceof Error ? n.message : String(n), !0), B(ne, !1);
|
|
2832
2835
|
let r = Z(C), i = r && (r.state === "timeout" || r.state === "completed") ? r : void 0;
|
|
2833
2836
|
y("build-state", {
|
|
2834
2837
|
loading: !1,
|
|
2835
2838
|
error: Z(S),
|
|
2836
2839
|
stage: "error",
|
|
2837
|
-
strategy: Z(
|
|
2838
|
-
view: Z(
|
|
2840
|
+
strategy: Z(j),
|
|
2841
|
+
view: Z(M),
|
|
2839
2842
|
retry: i
|
|
2840
2843
|
}), y("player-error", {
|
|
2841
2844
|
error: Z(S),
|
|
2842
|
-
strategy: Z(
|
|
2843
|
-
view: Z(
|
|
2845
|
+
strategy: Z(j),
|
|
2846
|
+
view: Z(M),
|
|
2844
2847
|
retry: i
|
|
2845
2848
|
}), w === t && (w = null);
|
|
2846
2849
|
}
|
|
2847
2850
|
}
|
|
2848
|
-
|
|
2851
|
+
en(() => {
|
|
2849
2852
|
[
|
|
2850
2853
|
o(),
|
|
2851
|
-
Z(
|
|
2854
|
+
Z(ge),
|
|
2852
2855
|
c(),
|
|
2853
|
-
Z(A),
|
|
2854
2856
|
Z(j),
|
|
2857
|
+
Z(M),
|
|
2855
2858
|
h(),
|
|
2856
2859
|
u(),
|
|
2857
2860
|
d(),
|
|
2858
2861
|
f(),
|
|
2859
|
-
JSON.stringify(p() ||
|
|
2862
|
+
JSON.stringify(p() || Fr),
|
|
2860
2863
|
m(),
|
|
2861
2864
|
g()
|
|
2862
|
-
].join("|"),
|
|
2863
|
-
}),
|
|
2864
|
-
Z(x) && (
|
|
2865
|
+
].join("|"), De();
|
|
2866
|
+
}), en(() => {
|
|
2867
|
+
Z(x) && (we(_()), Te(v()), Ee(l()), requestAnimationFrame(() => {
|
|
2865
2868
|
requestAnimationFrame(() => {
|
|
2866
|
-
|
|
2869
|
+
xe();
|
|
2867
2870
|
});
|
|
2868
2871
|
}));
|
|
2869
|
-
}),
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
+
}), gr(() => (T = e(), typeof window < "u" && (window["@pie-lib/math-rendering"] = { renderMath: T }), T && typeof window < "u" && T(document.createElement("div")), b && (E = new MutationObserver(() => {
|
|
2873
|
+
ie && clearTimeout(ie), ie = window.setTimeout(() => {
|
|
2874
|
+
xe();
|
|
2872
2875
|
}, 100);
|
|
2873
|
-
}),
|
|
2874
|
-
|
|
2876
|
+
}), be(), xe()), () => {
|
|
2877
|
+
ie &&= (clearTimeout(ie), null), E &&= (E.disconnect(), null), ee && ee.replaceChildren(), re++, w?.abort(), w = null, Se();
|
|
2875
2878
|
}));
|
|
2876
|
-
var
|
|
2879
|
+
var Oe = {
|
|
2877
2880
|
get strategy() {
|
|
2878
2881
|
return r();
|
|
2879
2882
|
},
|
|
2880
2883
|
set strategy(e = "esm") {
|
|
2881
|
-
r(e),
|
|
2884
|
+
r(e), L();
|
|
2882
2885
|
},
|
|
2883
2886
|
get view() {
|
|
2884
2887
|
return i();
|
|
2885
2888
|
},
|
|
2886
2889
|
set view(e = "delivery") {
|
|
2887
|
-
i(e),
|
|
2890
|
+
i(e), L();
|
|
2888
2891
|
},
|
|
2889
2892
|
get mode() {
|
|
2890
2893
|
return a();
|
|
2891
2894
|
},
|
|
2892
2895
|
set mode(e = "") {
|
|
2893
|
-
a(e),
|
|
2896
|
+
a(e), L();
|
|
2894
2897
|
},
|
|
2895
2898
|
get elementName() {
|
|
2896
2899
|
return o();
|
|
2897
2900
|
},
|
|
2898
2901
|
set elementName(e = "") {
|
|
2899
|
-
o(e),
|
|
2902
|
+
o(e), L();
|
|
2900
2903
|
},
|
|
2901
2904
|
get packageName() {
|
|
2902
2905
|
return s();
|
|
2903
2906
|
},
|
|
2904
2907
|
set packageName(e = "") {
|
|
2905
|
-
s(e),
|
|
2908
|
+
s(e), L();
|
|
2906
2909
|
},
|
|
2907
2910
|
get elementVersion() {
|
|
2908
2911
|
return c();
|
|
2909
2912
|
},
|
|
2910
2913
|
set elementVersion(e = "latest") {
|
|
2911
|
-
c(e),
|
|
2914
|
+
c(e), L();
|
|
2912
2915
|
},
|
|
2913
2916
|
get role() {
|
|
2914
2917
|
return l();
|
|
2915
2918
|
},
|
|
2916
2919
|
set role(e = "student") {
|
|
2917
|
-
l(e),
|
|
2920
|
+
l(e), L();
|
|
2918
2921
|
},
|
|
2919
2922
|
get cdnUrl() {
|
|
2920
2923
|
return u();
|
|
2921
2924
|
},
|
|
2922
2925
|
set cdnUrl(e = "") {
|
|
2923
|
-
u(e),
|
|
2926
|
+
u(e), L();
|
|
2924
2927
|
},
|
|
2925
2928
|
get iifeBundleEndpoint() {
|
|
2926
2929
|
return d();
|
|
2927
2930
|
},
|
|
2928
2931
|
set iifeBundleEndpoint(e = "/api/bundle") {
|
|
2929
|
-
d(e),
|
|
2932
|
+
d(e), L();
|
|
2930
2933
|
},
|
|
2931
2934
|
get iifeBundleHost() {
|
|
2932
2935
|
return f();
|
|
2933
2936
|
},
|
|
2934
2937
|
set iifeBundleHost(e = "") {
|
|
2935
|
-
f(e),
|
|
2938
|
+
f(e), L();
|
|
2936
2939
|
},
|
|
2937
2940
|
get iifeBundleRetry() {
|
|
2938
2941
|
return p();
|
|
2939
2942
|
},
|
|
2940
|
-
set iifeBundleRetry(e =
|
|
2941
|
-
p(e),
|
|
2943
|
+
set iifeBundleRetry(e = Fr) {
|
|
2944
|
+
p(e), L();
|
|
2942
2945
|
},
|
|
2943
2946
|
get preloadedFallbackStrategy() {
|
|
2944
2947
|
return m();
|
|
2945
2948
|
},
|
|
2946
2949
|
set preloadedFallbackStrategy(e = "esm") {
|
|
2947
|
-
m(e),
|
|
2950
|
+
m(e), L();
|
|
2948
2951
|
},
|
|
2949
2952
|
get runtimeSupportCheck() {
|
|
2950
2953
|
return h();
|
|
2951
2954
|
},
|
|
2952
2955
|
set runtimeSupportCheck(e = "off") {
|
|
2953
|
-
h(e),
|
|
2956
|
+
h(e), L();
|
|
2954
2957
|
},
|
|
2955
2958
|
get rebuildVersion() {
|
|
2956
2959
|
return g();
|
|
2957
2960
|
},
|
|
2958
2961
|
set rebuildVersion(e = 0) {
|
|
2959
|
-
g(e),
|
|
2962
|
+
g(e), L();
|
|
2960
2963
|
},
|
|
2961
2964
|
get model() {
|
|
2962
2965
|
return _();
|
|
2963
2966
|
},
|
|
2964
2967
|
set model(e) {
|
|
2965
|
-
_(e),
|
|
2968
|
+
_(e), L();
|
|
2966
2969
|
},
|
|
2967
2970
|
get session() {
|
|
2968
2971
|
return v();
|
|
2969
2972
|
},
|
|
2970
2973
|
set session(e) {
|
|
2971
|
-
v(e),
|
|
2972
|
-
}
|
|
2973
|
-
},
|
|
2974
|
-
|
|
2975
|
-
var
|
|
2976
|
-
var t =
|
|
2977
|
-
var t =
|
|
2978
|
-
|
|
2974
|
+
v(e), L();
|
|
2975
|
+
}
|
|
2976
|
+
}, ke = Di(), Ae = Ht(ke);
|
|
2977
|
+
br(Ae, (e) => ee = e, () => ee);
|
|
2978
|
+
var je = Wt(Ae, 2), N = (e) => {
|
|
2979
|
+
var t = Ti(), n = Ht(t), r = Wt(n), i = (e) => {
|
|
2980
|
+
var t = wi(), n = Ut(t, !0);
|
|
2981
|
+
cn(() => cr(n, Z(A))), tr(e, t);
|
|
2979
2982
|
};
|
|
2980
|
-
|
|
2981
|
-
Z(
|
|
2982
|
-
}),
|
|
2983
|
+
_r(r, (e) => {
|
|
2984
|
+
Z(A) && e(i);
|
|
2985
|
+
}), he(t), cn(() => cr(n, `Loading ${o() ?? ""} (${Z(j) ?? ""}/${Z(M) ?? ""})... `)), tr(e, t);
|
|
2983
2986
|
};
|
|
2984
|
-
|
|
2985
|
-
Z(ne) && e(
|
|
2987
|
+
_r(je, (e) => {
|
|
2988
|
+
Z(ne) && e(N);
|
|
2986
2989
|
});
|
|
2987
|
-
var
|
|
2988
|
-
var t =
|
|
2989
|
-
|
|
2990
|
+
var Me = Wt(je, 2), Fe = (e) => {
|
|
2991
|
+
var t = Ei(), n = Ut(Wt(Ht(t), 2), !0);
|
|
2992
|
+
he(t), cn(() => cr(n, Z(S))), tr(e, t);
|
|
2990
2993
|
};
|
|
2991
|
-
return
|
|
2992
|
-
Z(S) && e(
|
|
2993
|
-
}),
|
|
2994
|
+
return _r(Me, (e) => {
|
|
2995
|
+
Z(S) && e(Fe);
|
|
2996
|
+
}), he(ke), br(ke, (e) => b = e, () => b), tr(t, ke), Pe(Oe);
|
|
2994
2997
|
}
|
|
2995
|
-
customElements.define("pie-element-player",
|
|
2998
|
+
customElements.define("pie-element-player", Or(ki, {
|
|
2996
2999
|
strategy: {
|
|
2997
3000
|
reflect: !0,
|
|
2998
3001
|
type: "String"
|
|
@@ -3058,4 +3061,4 @@ customElements.define("pie-element-player", Ar(ji, {
|
|
|
3058
3061
|
session: { type: "Object" }
|
|
3059
3062
|
}, [], []));
|
|
3060
3063
|
//#endregion
|
|
3061
|
-
export {
|
|
3064
|
+
export { Fr as DEFAULT_IIFE_BUNDLE_RETRY_CONFIG, $ as IifeBundleLoadError, Wr as configureIifeBundleLoader, gi as configureUnifiedPlayerResolver, ti as normalizeElementPlayerStrategy, ni as normalizeElementPlayerView, ii as normalizeRuntimeSupportCheck, ri as resolveElementPlayerView };
|