@pie-players/pie-tool-tts-inline 0.3.53 → 0.3.55
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 +18 -8
- package/dist/tool-tts-inline.js +805 -769
- package/package.json +3 -3
package/dist/tool-tts-inline.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PIE_TTS_CONTROL_HANDOFF_EVENT as e, connectToolRegionScopeContext as t, connectToolRuntimeContext as n, connectToolShellContext as r, normalizeTTSSpeedControlOptions as i } from "@pie-players/pie-assessment-toolkit";
|
|
2
2
|
//#region ../../node_modules/.bun/svelte@5.56.0/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
5
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/constants.js
|
|
6
|
-
var
|
|
7
|
-
function
|
|
6
|
+
var a = {}, o = Symbol("uninitialized"), s = "http://www.w3.org/1999/xhtml", c = Array.isArray, l = Array.prototype.indexOf, u = Array.prototype.includes, d = Array.from, f = Object.keys, p = Object.defineProperty, m = Object.getOwnPropertyDescriptor, h = Object.getOwnPropertyDescriptors, g = Object.prototype, _ = Array.prototype, v = Object.getPrototypeOf, y = Object.isExtensible, b = () => {};
|
|
7
|
+
function x(e) {
|
|
8
8
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function S() {
|
|
11
11
|
var e, t;
|
|
12
12
|
return {
|
|
13
13
|
promise: new Promise((n, r) => {
|
|
@@ -17,84 +17,84 @@ function ee() {
|
|
|
17
17
|
reject: t
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
var C = 1024, w = 2048, T = 4096, E = 8192,
|
|
20
|
+
var C = 1024, w = 2048, T = 4096, E = 8192, D = 16384, ee = 32768, te = 1 << 25, O = 65536, ne = 1 << 19, re = 1 << 20, ie = 1 << 25, ae = 65536, oe = 1 << 21, se = 1 << 22, ce = 1 << 23, le = Symbol("$state"), ue = Symbol("legacy props"), de = Symbol(""), k = Symbol("attributes"), fe = Symbol("class"), pe = Symbol("style"), me = Symbol("text"), A = new class extends Error {
|
|
21
21
|
name = "StaleReactionError";
|
|
22
22
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
23
|
-
}(),
|
|
23
|
+
}(), he = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/errors.js
|
|
26
|
-
function
|
|
26
|
+
function ge() {
|
|
27
27
|
throw Error("https://svelte.dev/e/async_derived_orphan");
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function _e(e, t, n) {
|
|
30
30
|
throw Error("https://svelte.dev/e/each_key_duplicate");
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function ve(e) {
|
|
33
33
|
throw Error("https://svelte.dev/e/effect_in_teardown");
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function ye() {
|
|
36
36
|
throw Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function be(e) {
|
|
39
39
|
throw Error("https://svelte.dev/e/effect_orphan");
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function xe() {
|
|
42
42
|
throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Se() {
|
|
45
45
|
throw Error("https://svelte.dev/e/hydration_failed");
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Ce(e) {
|
|
48
48
|
throw Error("https://svelte.dev/e/props_invalid_value");
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function we() {
|
|
51
51
|
throw Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Te() {
|
|
54
54
|
throw Error("https://svelte.dev/e/state_prototype_fixed");
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Ee() {
|
|
57
57
|
throw Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function De() {
|
|
60
60
|
throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Oe() {
|
|
63
63
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function ke(e) {
|
|
66
66
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function Ae() {
|
|
69
69
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
72
72
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/hydration.js
|
|
73
73
|
var j = !1;
|
|
74
|
-
function
|
|
74
|
+
function je(e) {
|
|
75
75
|
j = e;
|
|
76
76
|
}
|
|
77
77
|
var M;
|
|
78
78
|
function N(e) {
|
|
79
|
-
if (e === null) throw
|
|
79
|
+
if (e === null) throw ke(), a;
|
|
80
80
|
return M = e;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return N(/* @__PURE__ */
|
|
82
|
+
function Me() {
|
|
83
|
+
return N(/* @__PURE__ */ rn(M));
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Ne(e) {
|
|
86
86
|
if (j) {
|
|
87
|
-
if (/* @__PURE__ */
|
|
87
|
+
if (/* @__PURE__ */ rn(M) !== null) throw ke(), a;
|
|
88
88
|
M = e;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Pe(e = 1) {
|
|
92
92
|
if (j) {
|
|
93
|
-
for (var t = e, n = M; t--;) n = /* @__PURE__ */
|
|
93
|
+
for (var t = e, n = M; t--;) n = /* @__PURE__ */ rn(n);
|
|
94
94
|
M = n;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function Fe(e = !0) {
|
|
98
98
|
for (var t = 0, n = M;;) {
|
|
99
99
|
if (n.nodeType === 8) {
|
|
100
100
|
var r = n.data;
|
|
@@ -103,32 +103,32 @@ function Ie(e = !0) {
|
|
|
103
103
|
--t;
|
|
104
104
|
} else (r === "[" || r === "[!" || r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
|
|
105
105
|
}
|
|
106
|
-
var i = /* @__PURE__ */
|
|
106
|
+
var i = /* @__PURE__ */ rn(n);
|
|
107
107
|
e && n.remove(), n = i;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
if (!e || e.nodeType !== 8) throw
|
|
110
|
+
function Ie(e) {
|
|
111
|
+
if (!e || e.nodeType !== 8) throw ke(), a;
|
|
112
112
|
return e.data;
|
|
113
113
|
}
|
|
114
114
|
//#endregion
|
|
115
115
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/equality.js
|
|
116
|
-
function
|
|
116
|
+
function Le(e) {
|
|
117
117
|
return e === this.v;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Re(e, t) {
|
|
120
120
|
return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
return !
|
|
122
|
+
function ze(e) {
|
|
123
|
+
return !Re(e, this.v);
|
|
124
124
|
}
|
|
125
125
|
//#endregion
|
|
126
126
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/flags/index.js
|
|
127
|
-
var
|
|
128
|
-
function
|
|
127
|
+
var Be = !1, Ve = !1, P = null;
|
|
128
|
+
function He(e) {
|
|
129
129
|
P = e;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Ue(e, t = !1, n) {
|
|
132
132
|
P = {
|
|
133
133
|
p: P,
|
|
134
134
|
i: !1,
|
|
@@ -137,50 +137,50 @@ function We(e, t = !1, n) {
|
|
|
137
137
|
s: e,
|
|
138
138
|
x: null,
|
|
139
139
|
r: J,
|
|
140
|
-
l:
|
|
140
|
+
l: Ve && !t ? {
|
|
141
141
|
s: null,
|
|
142
142
|
u: null,
|
|
143
143
|
$: []
|
|
144
144
|
} : null
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function We(e) {
|
|
148
148
|
var t = P, n = t.e;
|
|
149
149
|
if (n !== null) {
|
|
150
150
|
t.e = null;
|
|
151
|
-
for (var r of n)
|
|
151
|
+
for (var r of n) yn(r);
|
|
152
152
|
}
|
|
153
153
|
return e !== void 0 && (t.x = e), t.i = !0, P = t.p, e ?? {};
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
return !
|
|
155
|
+
function Ge() {
|
|
156
|
+
return !Ve || P !== null && P.l === null;
|
|
157
157
|
}
|
|
158
158
|
//#endregion
|
|
159
159
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/task.js
|
|
160
|
-
var
|
|
161
|
-
function
|
|
162
|
-
var e =
|
|
163
|
-
|
|
164
|
-
}
|
|
165
|
-
function
|
|
166
|
-
if (
|
|
167
|
-
var t =
|
|
160
|
+
var Ke = [];
|
|
161
|
+
function qe() {
|
|
162
|
+
var e = Ke;
|
|
163
|
+
Ke = [], x(e);
|
|
164
|
+
}
|
|
165
|
+
function Je(e) {
|
|
166
|
+
if (Ke.length === 0 && !lt) {
|
|
167
|
+
var t = Ke;
|
|
168
168
|
queueMicrotask(() => {
|
|
169
|
-
t ===
|
|
169
|
+
t === Ke && qe();
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
|
|
172
|
+
Ke.push(e);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
for (;
|
|
174
|
+
function Ye() {
|
|
175
|
+
for (; Ke.length > 0;) qe();
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Xe(e) {
|
|
178
178
|
var t = J;
|
|
179
|
-
if (t === null) return G.f |=
|
|
179
|
+
if (t === null) return G.f |= ce, e;
|
|
180
180
|
if (!(t.f & 32768) && !(t.f & 4)) throw e;
|
|
181
|
-
|
|
181
|
+
Ze(e, t);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function Ze(e, t) {
|
|
184
184
|
for (; t !== null;) {
|
|
185
185
|
if (t.f & 128) {
|
|
186
186
|
if (!(t.f & 32768)) throw e;
|
|
@@ -197,36 +197,36 @@ function Qe(e, t) {
|
|
|
197
197
|
}
|
|
198
198
|
//#endregion
|
|
199
199
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/status.js
|
|
200
|
-
var
|
|
200
|
+
var Qe = ~(w | T | C);
|
|
201
201
|
function F(e, t) {
|
|
202
|
-
e.f = e.f &
|
|
202
|
+
e.f = e.f & Qe | t;
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function $e(e) {
|
|
205
205
|
e.f & 512 || e.deps === null ? F(e, C) : F(e, T);
|
|
206
206
|
}
|
|
207
207
|
//#endregion
|
|
208
208
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/utils.js
|
|
209
|
-
function
|
|
210
|
-
if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= ae,
|
|
209
|
+
function et(e) {
|
|
210
|
+
if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= ae, et(t.deps));
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e),
|
|
212
|
+
function tt(e, t, n) {
|
|
213
|
+
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), et(e.deps), F(e, C);
|
|
214
214
|
}
|
|
215
215
|
//#endregion
|
|
216
216
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/store.js
|
|
217
|
-
var
|
|
218
|
-
function
|
|
219
|
-
var t =
|
|
217
|
+
var nt = !1, rt = !1;
|
|
218
|
+
function it(e) {
|
|
219
|
+
var t = rt;
|
|
220
220
|
try {
|
|
221
|
-
return
|
|
221
|
+
return rt = !1, [e(), rt];
|
|
222
222
|
} finally {
|
|
223
|
-
|
|
223
|
+
rt = t;
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
//#endregion
|
|
227
227
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/batch.js
|
|
228
|
-
var
|
|
229
|
-
id =
|
|
228
|
+
var at = null, ot = null, I = null, st = null, L = null, ct = null, lt = !1, ut = !1, dt = null, ft = null, pt = 0, mt = 1, ht = class e {
|
|
229
|
+
id = mt++;
|
|
230
230
|
#e = !1;
|
|
231
231
|
linked = !0;
|
|
232
232
|
#t = null;
|
|
@@ -248,7 +248,7 @@ var ot = null, st = null, I = null, ct = null, L = null, lt = null, ut = !1, dt
|
|
|
248
248
|
is_fork = !1;
|
|
249
249
|
#m = !1;
|
|
250
250
|
constructor() {
|
|
251
|
-
|
|
251
|
+
ot === null ? at = ot = this : (ot.#n = this, this.#t = ot), ot = this;
|
|
252
252
|
}
|
|
253
253
|
#h() {
|
|
254
254
|
if (this.is_fork) return !0;
|
|
@@ -280,12 +280,12 @@ var ot = null, st = null, I = null, ct = null, L = null, lt = null, ut = !1, dt
|
|
|
280
280
|
this.#p.add(e);
|
|
281
281
|
}
|
|
282
282
|
#g() {
|
|
283
|
-
this.#e = !0,
|
|
283
|
+
this.#e = !0, pt++ > 1e3 && (this.#S(), _t());
|
|
284
284
|
for (let e of this.#u) this.#d.delete(e), F(e, w), this.schedule(e);
|
|
285
285
|
for (let e of this.#d) F(e, T), this.schedule(e);
|
|
286
286
|
let t = this.#c;
|
|
287
287
|
this.#c = [], this.apply();
|
|
288
|
-
var n =
|
|
288
|
+
var n = dt = [], r = [], i = ft = [];
|
|
289
289
|
for (let e of t) try {
|
|
290
290
|
this.#_(e, n, r);
|
|
291
291
|
} catch (t) {
|
|
@@ -295,7 +295,7 @@ var ot = null, st = null, I = null, ct = null, L = null, lt = null, ut = !1, dt
|
|
|
295
295
|
var a = e.ensure();
|
|
296
296
|
for (let e of i) a.schedule(e);
|
|
297
297
|
}
|
|
298
|
-
if (
|
|
298
|
+
if (dt = null, ft = null, this.#h()) {
|
|
299
299
|
this.#b(r), this.#b(n);
|
|
300
300
|
for (let [e, t] of this.#f) Ct(e, t);
|
|
301
301
|
i.length > 0 && I.#g();
|
|
@@ -308,9 +308,9 @@ var ot = null, st = null, I = null, ct = null, L = null, lt = null, ut = !1, dt
|
|
|
308
308
|
}
|
|
309
309
|
this.#u.clear(), this.#d.clear();
|
|
310
310
|
for (let e of this.#r) e(this);
|
|
311
|
-
this.#r.clear(),
|
|
311
|
+
this.#r.clear(), st = this, yt(r), yt(n), st = null, this.#s?.resolve();
|
|
312
312
|
var s = I;
|
|
313
|
-
if (this.#a === 0 && (this.#c.length === 0 || s !== null) && (this.#S(),
|
|
313
|
+
if (this.#a === 0 && (this.#c.length === 0 || s !== null) && (this.#S(), Be && (this.#x(), I = s)), this.#c.length > 0) if (s !== null) {
|
|
314
314
|
let e = s;
|
|
315
315
|
e.#c.push(...this.#c.filter((t) => !e.#c.includes(t)));
|
|
316
316
|
} else s = this;
|
|
@@ -321,7 +321,7 @@ var ot = null, st = null, I = null, ct = null, L = null, lt = null, ut = !1, dt
|
|
|
321
321
|
for (var r = e.first; r !== null;) {
|
|
322
322
|
var i = r.f, a = (i & 96) != 0;
|
|
323
323
|
if (!(a && i & 1024 || i & 8192 || this.#f.has(r)) && r.fn !== null) {
|
|
324
|
-
a ? r.f ^= C : i & 4 ? t.push(r) :
|
|
324
|
+
a ? r.f ^= C : i & 4 ? t.push(r) : Be && i & 16777224 ? n.push(r) : Xn(r) && (i & 16 && this.#d.add(r), tr(r));
|
|
325
325
|
var o = r.first;
|
|
326
326
|
if (o !== null) {
|
|
327
327
|
r = o;
|
|
@@ -369,10 +369,10 @@ var ot = null, st = null, I = null, ct = null, L = null, lt = null, ut = !1, dt
|
|
|
369
369
|
this.oncommit(() => e.discard()), e.#S(), I = this, this.#g();
|
|
370
370
|
}
|
|
371
371
|
#b(e) {
|
|
372
|
-
for (var t = 0; t < e.length; t += 1)
|
|
372
|
+
for (var t = 0; t < e.length; t += 1) tt(e[t], this.#u, this.#d);
|
|
373
373
|
}
|
|
374
374
|
capture(e, t, n = !1) {
|
|
375
|
-
e.v !==
|
|
375
|
+
e.v !== o && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), L?.set(e, t)), this.is_fork || (e.v = t);
|
|
376
376
|
}
|
|
377
377
|
activate() {
|
|
378
378
|
I = this;
|
|
@@ -382,9 +382,9 @@ var ot = null, st = null, I = null, ct = null, L = null, lt = null, ut = !1, dt
|
|
|
382
382
|
}
|
|
383
383
|
flush() {
|
|
384
384
|
try {
|
|
385
|
-
|
|
385
|
+
ut = !0, I = this, this.#g();
|
|
386
386
|
} finally {
|
|
387
|
-
|
|
387
|
+
pt = 0, ct = null, dt = null, ft = null, ut = !1, I = null, L = null, Ut.clear();
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
390
|
discard() {
|
|
@@ -395,7 +395,7 @@ var ot = null, st = null, I = null, ct = null, L = null, lt = null, ut = !1, dt
|
|
|
395
395
|
this.#l.push(e);
|
|
396
396
|
}
|
|
397
397
|
#x() {
|
|
398
|
-
for (let l =
|
|
398
|
+
for (let l = at; l !== null; l = l.#n) {
|
|
399
399
|
var e = l.id < this.id, t = [];
|
|
400
400
|
for (let [r, [i, a]] of this.current) {
|
|
401
401
|
if (l.current.has(r)) {
|
|
@@ -446,7 +446,7 @@ var ot = null, st = null, I = null, ct = null, L = null, lt = null, ut = !1, dt
|
|
|
446
446
|
let e = this.#o.get(t) ?? 0;
|
|
447
447
|
e === 1 ? this.#o.delete(t) : this.#o.set(t, e - 1);
|
|
448
448
|
}
|
|
449
|
-
this.#m || (this.#m = !0,
|
|
449
|
+
this.#m || (this.#m = !0, Je(() => {
|
|
450
450
|
this.#m = !1, this.linked && this.flush();
|
|
451
451
|
}));
|
|
452
452
|
}
|
|
@@ -462,25 +462,25 @@ var ot = null, st = null, I = null, ct = null, L = null, lt = null, ut = !1, dt
|
|
|
462
462
|
this.#i.add(e);
|
|
463
463
|
}
|
|
464
464
|
settled() {
|
|
465
|
-
return (this.#s ??=
|
|
465
|
+
return (this.#s ??= S()).promise;
|
|
466
466
|
}
|
|
467
467
|
static ensure() {
|
|
468
468
|
if (I === null) {
|
|
469
469
|
let t = I = new e();
|
|
470
|
-
!
|
|
470
|
+
!ut && !lt && Je(() => {
|
|
471
471
|
t.#e || t.flush();
|
|
472
472
|
});
|
|
473
473
|
}
|
|
474
474
|
return I;
|
|
475
475
|
}
|
|
476
476
|
apply() {
|
|
477
|
-
if (!
|
|
477
|
+
if (!Be || !this.is_fork && this.#t === null && this.#n === null) {
|
|
478
478
|
L = null;
|
|
479
479
|
return;
|
|
480
480
|
}
|
|
481
481
|
L = /* @__PURE__ */ new Map();
|
|
482
482
|
for (let [e, [t]] of this.current) L.set(e, t);
|
|
483
|
-
for (let t =
|
|
483
|
+
for (let t = at; t !== null; t = t.#n) if (!(t === this || t.is_fork)) {
|
|
484
484
|
var e = !1;
|
|
485
485
|
if (t.id < this.id) {
|
|
486
486
|
for (let [n, [, r]] of t.current) if (!r && this.current.has(n)) {
|
|
@@ -492,14 +492,14 @@ var ot = null, st = null, I = null, ct = null, L = null, lt = null, ut = !1, dt
|
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
schedule(e) {
|
|
495
|
-
if (
|
|
495
|
+
if (ct = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
|
|
496
496
|
e.b.defer_effect(e);
|
|
497
497
|
return;
|
|
498
498
|
}
|
|
499
499
|
for (var t = e; t.parent !== null;) {
|
|
500
500
|
t = t.parent;
|
|
501
501
|
var n = t.f;
|
|
502
|
-
if (
|
|
502
|
+
if (dt !== null && t === J && (Be || (G === null || !(G.f & 2)) && !nt)) return;
|
|
503
503
|
if (n & 96) {
|
|
504
504
|
if (!(n & 1024)) return;
|
|
505
505
|
t.f ^= C;
|
|
@@ -510,51 +510,51 @@ var ot = null, st = null, I = null, ct = null, L = null, lt = null, ut = !1, dt
|
|
|
510
510
|
#S() {
|
|
511
511
|
if (this.linked) {
|
|
512
512
|
var e = this.#t, t = this.#n;
|
|
513
|
-
e === null ?
|
|
513
|
+
e === null ? at = t : e.#n = t, t === null ? ot = e : t.#t = e, this.linked = !1;
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
};
|
|
517
|
-
function
|
|
518
|
-
var t =
|
|
519
|
-
|
|
517
|
+
function gt(e) {
|
|
518
|
+
var t = lt;
|
|
519
|
+
lt = !0;
|
|
520
520
|
try {
|
|
521
521
|
var n;
|
|
522
522
|
for (e && (I !== null && !I.is_fork && I.flush(), n = e());;) {
|
|
523
|
-
if (
|
|
523
|
+
if (Ye(), I === null) return n;
|
|
524
524
|
I.flush();
|
|
525
525
|
}
|
|
526
526
|
} finally {
|
|
527
|
-
|
|
527
|
+
lt = t;
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function _t() {
|
|
531
531
|
try {
|
|
532
|
-
|
|
532
|
+
xe();
|
|
533
533
|
} catch (e) {
|
|
534
|
-
|
|
534
|
+
Ze(e, ct);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
var
|
|
537
|
+
var vt = null;
|
|
538
538
|
function yt(e) {
|
|
539
539
|
var t = e.length;
|
|
540
540
|
if (t !== 0) {
|
|
541
541
|
for (var n = 0; n < t;) {
|
|
542
542
|
var r = e[n++];
|
|
543
|
-
if (!(r.f & 24576) &&
|
|
544
|
-
|
|
545
|
-
for (let e of
|
|
543
|
+
if (!(r.f & 24576) && Xn(r) && (vt = /* @__PURE__ */ new Set(), tr(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && jn(r), vt?.size > 0)) {
|
|
544
|
+
Ut.clear();
|
|
545
|
+
for (let e of vt) {
|
|
546
546
|
if (e.f & 24576) continue;
|
|
547
547
|
let t = [e], n = e.parent;
|
|
548
|
-
for (; n !== null;)
|
|
548
|
+
for (; n !== null;) vt.has(n) && (vt.delete(n), t.push(n)), n = n.parent;
|
|
549
549
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
550
550
|
let n = t[e];
|
|
551
|
-
n.f & 24576 ||
|
|
551
|
+
n.f & 24576 || tr(n);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
|
|
554
|
+
vt.clear();
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
|
|
557
|
+
vt = null;
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
function bt(e, t, n, r) {
|
|
@@ -567,7 +567,7 @@ function xt(e, t, n) {
|
|
|
567
567
|
let r = n.get(e);
|
|
568
568
|
if (r !== void 0) return r;
|
|
569
569
|
if (e.deps !== null) for (let r of e.deps) {
|
|
570
|
-
if (
|
|
570
|
+
if (u.call(t, r)) return !0;
|
|
571
571
|
if (r.f & 2 && xt(r, t, n)) return n.set(r, !0), !0;
|
|
572
572
|
}
|
|
573
573
|
return n.set(e, !1), !1;
|
|
@@ -588,18 +588,18 @@ function wt(e) {
|
|
|
588
588
|
//#endregion
|
|
589
589
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/reactivity/create-subscriber.js
|
|
590
590
|
function Tt(e) {
|
|
591
|
-
let t = 0, n =
|
|
591
|
+
let t = 0, n = Gt(0), r;
|
|
592
592
|
return () => {
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
--t, t === 0 && (r?.(), r = void 0,
|
|
593
|
+
gn() && (Q(n), wn(() => (t === 0 && (r = ir(() => e(() => Yt(n)))), t += 1, () => {
|
|
594
|
+
Je(() => {
|
|
595
|
+
--t, t === 0 && (r?.(), r = void 0, Yt(n));
|
|
596
596
|
});
|
|
597
597
|
})));
|
|
598
598
|
};
|
|
599
599
|
}
|
|
600
600
|
//#endregion
|
|
601
601
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
|
|
602
|
-
var Et =
|
|
602
|
+
var Et = O | ne;
|
|
603
603
|
function Dt(e, t, n, r) {
|
|
604
604
|
new Ot(e, t, n, r);
|
|
605
605
|
}
|
|
@@ -622,17 +622,17 @@ var Ot = class {
|
|
|
622
622
|
#f = /* @__PURE__ */ new Set();
|
|
623
623
|
#p = /* @__PURE__ */ new Set();
|
|
624
624
|
#m = null;
|
|
625
|
-
#h = Tt(() => (this.#m =
|
|
625
|
+
#h = Tt(() => (this.#m = Gt(this.#l), () => {
|
|
626
626
|
this.#m = null;
|
|
627
627
|
}));
|
|
628
628
|
constructor(e, t, n, r) {
|
|
629
629
|
this.#e = e, this.#n = t, this.#r = (e) => {
|
|
630
630
|
var t = J;
|
|
631
631
|
t.b = this, t.f |= 128, n(e);
|
|
632
|
-
}, this.parent = J.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i =
|
|
632
|
+
}, this.parent = J.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = En(() => {
|
|
633
633
|
if (j) {
|
|
634
634
|
let e = this.#t;
|
|
635
|
-
|
|
635
|
+
Me();
|
|
636
636
|
let t = e.data === "[!";
|
|
637
637
|
if (e.data.startsWith("[?")) {
|
|
638
638
|
let t = JSON.parse(e.data.slice(2));
|
|
@@ -656,9 +656,9 @@ var Ot = class {
|
|
|
656
656
|
}
|
|
657
657
|
#v() {
|
|
658
658
|
let e = this.#n.pending;
|
|
659
|
-
e && (this.is_pending = !0, this.#o = U(() => e(this.#e)),
|
|
659
|
+
e && (this.is_pending = !0, this.#o = U(() => e(this.#e)), Je(() => {
|
|
660
660
|
var e = this.#c = document.createDocumentFragment(), t = V();
|
|
661
|
-
e.append(t), this.#a = this.#x(() => U(() => this.#r(t))), this.#u === 0 && (this.#e.before(e), this.#c = null,
|
|
661
|
+
e.append(t), this.#a = this.#x(() => U(() => this.#r(t))), this.#u === 0 && (this.#e.before(e), this.#c = null, Mn(this.#o, () => {
|
|
662
662
|
this.#o = null;
|
|
663
663
|
}), this.#b(I));
|
|
664
664
|
}));
|
|
@@ -669,7 +669,7 @@ var Ot = class {
|
|
|
669
669
|
this.#r(this.#e);
|
|
670
670
|
}), this.#u > 0) {
|
|
671
671
|
var e = this.#c = document.createDocumentFragment();
|
|
672
|
-
|
|
672
|
+
In(this.#a, e);
|
|
673
673
|
let t = this.#n.pending;
|
|
674
674
|
this.#o = U(() => t(this.#e));
|
|
675
675
|
} else this.#b(I);
|
|
@@ -681,7 +681,7 @@ var Ot = class {
|
|
|
681
681
|
this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
|
|
682
682
|
}
|
|
683
683
|
defer_effect(e) {
|
|
684
|
-
|
|
684
|
+
tt(e, this.#f, this.#p);
|
|
685
685
|
}
|
|
686
686
|
is_rendered() {
|
|
687
687
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -691,13 +691,13 @@ var Ot = class {
|
|
|
691
691
|
}
|
|
692
692
|
#x(e) {
|
|
693
693
|
var t = J, n = G, r = P;
|
|
694
|
-
|
|
694
|
+
Vn(this.#i), q(this.#i), He(this.#i.ctx);
|
|
695
695
|
try {
|
|
696
|
-
return
|
|
696
|
+
return ht.ensure(), e();
|
|
697
697
|
} catch (e) {
|
|
698
|
-
return
|
|
698
|
+
return Xe(e), null;
|
|
699
699
|
} finally {
|
|
700
|
-
|
|
700
|
+
Vn(t), q(n), He(r);
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
703
|
#S(e, t) {
|
|
@@ -705,13 +705,13 @@ var Ot = class {
|
|
|
705
705
|
this.parent && this.parent.#S(e, t);
|
|
706
706
|
return;
|
|
707
707
|
}
|
|
708
|
-
this.#u += e, this.#u === 0 && (this.#b(t), this.#o &&
|
|
708
|
+
this.#u += e, this.#u === 0 && (this.#b(t), this.#o && Mn(this.#o, () => {
|
|
709
709
|
this.#o = null;
|
|
710
710
|
}), this.#c &&= (this.#e.before(this.#c), null));
|
|
711
711
|
}
|
|
712
712
|
update_pending_count(e, t) {
|
|
713
|
-
this.#S(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0,
|
|
714
|
-
this.#d = !1, this.#m &&
|
|
713
|
+
this.#S(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, Je(() => {
|
|
714
|
+
this.#d = !1, this.#m && qt(this.#m, this.#l);
|
|
715
715
|
}));
|
|
716
716
|
}
|
|
717
717
|
get_effect_pending() {
|
|
@@ -724,16 +724,16 @@ var Ot = class {
|
|
|
724
724
|
})) : this.#C(e);
|
|
725
725
|
}
|
|
726
726
|
#C(e) {
|
|
727
|
-
this.#a &&= (W(this.#a), null), this.#o &&= (W(this.#o), null), this.#s &&= (W(this.#s), null), j && (N(this.#t),
|
|
727
|
+
this.#a &&= (W(this.#a), null), this.#o &&= (W(this.#o), null), this.#s &&= (W(this.#s), null), j && (N(this.#t), Pe(), N(Fe()));
|
|
728
728
|
var t = this.#n.onerror;
|
|
729
729
|
let n = this.#n.failed;
|
|
730
730
|
var r = !1, i = !1;
|
|
731
731
|
let a = () => {
|
|
732
732
|
if (r) {
|
|
733
|
-
|
|
733
|
+
Ae();
|
|
734
734
|
return;
|
|
735
735
|
}
|
|
736
|
-
r = !0, i &&
|
|
736
|
+
r = !0, i && De(), this.#s !== null && Mn(this.#s, () => {
|
|
737
737
|
this.#s = null;
|
|
738
738
|
}), this.#x(() => {
|
|
739
739
|
this.#y();
|
|
@@ -742,7 +742,7 @@ var Ot = class {
|
|
|
742
742
|
try {
|
|
743
743
|
i = !0, t?.(e, a), i = !1;
|
|
744
744
|
} catch (e) {
|
|
745
|
-
|
|
745
|
+
Ze(e, this.#i && this.#i.parent);
|
|
746
746
|
}
|
|
747
747
|
n && (this.#s = this.#x(() => {
|
|
748
748
|
try {
|
|
@@ -751,26 +751,26 @@ var Ot = class {
|
|
|
751
751
|
t.b = this, t.f |= 128, n(this.#e, () => e, () => a);
|
|
752
752
|
});
|
|
753
753
|
} catch (e) {
|
|
754
|
-
return
|
|
754
|
+
return Ze(e, this.#i.parent), null;
|
|
755
755
|
}
|
|
756
756
|
}));
|
|
757
757
|
};
|
|
758
|
-
|
|
758
|
+
Je(() => {
|
|
759
759
|
var t;
|
|
760
760
|
try {
|
|
761
761
|
t = this.transform_error(e);
|
|
762
762
|
} catch (e) {
|
|
763
|
-
|
|
763
|
+
Ze(e, this.#i && this.#i.parent);
|
|
764
764
|
return;
|
|
765
765
|
}
|
|
766
|
-
typeof t == "object" && t && typeof t.then == "function" ? t.then(o, (e) =>
|
|
766
|
+
typeof t == "object" && t && typeof t.then == "function" ? t.then(o, (e) => Ze(e, this.#i && this.#i.parent)) : o(t);
|
|
767
767
|
});
|
|
768
768
|
}
|
|
769
769
|
};
|
|
770
770
|
//#endregion
|
|
771
771
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/async.js
|
|
772
772
|
function kt(e, t, n, r) {
|
|
773
|
-
let i =
|
|
773
|
+
let i = Ge() ? Nt : It;
|
|
774
774
|
var a = e.filter((e) => !e.settled);
|
|
775
775
|
if (n.length === 0 && a.length === 0) {
|
|
776
776
|
r(t.map(i));
|
|
@@ -783,7 +783,7 @@ function kt(e, t, n, r) {
|
|
|
783
783
|
try {
|
|
784
784
|
r(e);
|
|
785
785
|
} catch (e) {
|
|
786
|
-
|
|
786
|
+
Ze(e, o);
|
|
787
787
|
}
|
|
788
788
|
jt();
|
|
789
789
|
}
|
|
@@ -794,7 +794,7 @@ function kt(e, t, n, r) {
|
|
|
794
794
|
return;
|
|
795
795
|
}
|
|
796
796
|
function d() {
|
|
797
|
-
Promise.all(n.map((e) => /* @__PURE__ */ Ft(e))).then((e) => l([...t.map(i), ...e])).catch((e) =>
|
|
797
|
+
Promise.all(n.map((e) => /* @__PURE__ */ Ft(e))).then((e) => l([...t.map(i), ...e])).catch((e) => Ze(e, o)).finally(u);
|
|
798
798
|
}
|
|
799
799
|
c ? c.then(() => {
|
|
800
800
|
s(), d(), jt();
|
|
@@ -803,11 +803,11 @@ function kt(e, t, n, r) {
|
|
|
803
803
|
function At() {
|
|
804
804
|
var e = J, t = G, n = P, r = I;
|
|
805
805
|
return function(i = !0) {
|
|
806
|
-
|
|
806
|
+
Vn(e), q(t), He(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
|
|
807
807
|
};
|
|
808
808
|
}
|
|
809
809
|
function jt(e = !0) {
|
|
810
|
-
|
|
810
|
+
Vn(null), q(null), He(null), e && I?.deactivate();
|
|
811
811
|
}
|
|
812
812
|
function Mt() {
|
|
813
813
|
var e = J, t = e.b, n = I, r = !!t?.is_rendered();
|
|
@@ -818,16 +818,16 @@ function Mt() {
|
|
|
818
818
|
/* @__NO_SIDE_EFFECTS__ */
|
|
819
819
|
function Nt(e) {
|
|
820
820
|
var t = 2 | w;
|
|
821
|
-
return J !== null && (J.f |=
|
|
821
|
+
return J !== null && (J.f |= ne), {
|
|
822
822
|
ctx: P,
|
|
823
823
|
deps: null,
|
|
824
824
|
effects: null,
|
|
825
|
-
equals:
|
|
825
|
+
equals: Le,
|
|
826
826
|
f: t,
|
|
827
827
|
fn: e,
|
|
828
828
|
reactions: null,
|
|
829
829
|
rv: 0,
|
|
830
|
-
v:
|
|
830
|
+
v: o,
|
|
831
831
|
wv: 0,
|
|
832
832
|
parent: J,
|
|
833
833
|
ac: null
|
|
@@ -837,30 +837,30 @@ var Pt = Symbol("obsolete");
|
|
|
837
837
|
/* @__NO_SIDE_EFFECTS__ */
|
|
838
838
|
function Ft(e, t, n) {
|
|
839
839
|
let r = J;
|
|
840
|
-
r === null &&
|
|
841
|
-
var i = void 0, a =
|
|
842
|
-
return
|
|
843
|
-
var t = J, n =
|
|
840
|
+
r === null && ge();
|
|
841
|
+
var i = void 0, a = Gt(o), s = !G, c = /* @__PURE__ */ new Set();
|
|
842
|
+
return Cn(() => {
|
|
843
|
+
var t = J, n = S();
|
|
844
844
|
i = n.promise;
|
|
845
845
|
try {
|
|
846
846
|
Promise.resolve(e()).then(n.resolve, (e) => {
|
|
847
|
-
e !==
|
|
847
|
+
e !== A && n.reject(e);
|
|
848
848
|
}).finally(jt);
|
|
849
849
|
} catch (e) {
|
|
850
850
|
n.reject(e), jt();
|
|
851
851
|
}
|
|
852
|
-
var
|
|
853
|
-
if (
|
|
852
|
+
var o = I;
|
|
853
|
+
if (s) {
|
|
854
854
|
if (t.f & 32768) var l = Mt();
|
|
855
|
-
if (r.b?.is_rendered())
|
|
855
|
+
if (r.b?.is_rendered()) o.async_deriveds.get(t)?.reject(Pt);
|
|
856
856
|
else for (let e of c.values()) e.reject(Pt);
|
|
857
|
-
c.add(n),
|
|
857
|
+
c.add(n), o.async_deriveds.set(t, n);
|
|
858
858
|
}
|
|
859
859
|
let u = (e, t = void 0) => {
|
|
860
|
-
l?.(), c.delete(n), t !== Pt && (
|
|
860
|
+
l?.(), c.delete(n), t !== Pt && (o.activate(), t ? (a.f |= ce, qt(a, t)) : (a.f & 8388608 && (a.f ^= ce), qt(a, e)), o.deactivate());
|
|
861
861
|
};
|
|
862
862
|
n.promise.then(u, (e) => u(null, e || "unknown"));
|
|
863
|
-
}),
|
|
863
|
+
}), _n(() => {
|
|
864
864
|
for (let e of c) e.reject(Pt);
|
|
865
865
|
}), new Promise((e) => {
|
|
866
866
|
function t(n) {
|
|
@@ -873,135 +873,135 @@ function Ft(e, t, n) {
|
|
|
873
873
|
});
|
|
874
874
|
}
|
|
875
875
|
/* @__NO_SIDE_EFFECTS__ */
|
|
876
|
-
function
|
|
876
|
+
function R(e) {
|
|
877
877
|
let t = /* @__PURE__ */ Nt(e);
|
|
878
|
-
return
|
|
878
|
+
return Be || Un(t), t;
|
|
879
879
|
}
|
|
880
880
|
/* @__NO_SIDE_EFFECTS__ */
|
|
881
|
-
function
|
|
881
|
+
function It(e) {
|
|
882
882
|
let t = /* @__PURE__ */ Nt(e);
|
|
883
|
-
return t.equals =
|
|
883
|
+
return t.equals = ze, t;
|
|
884
884
|
}
|
|
885
|
-
function
|
|
885
|
+
function Lt(e) {
|
|
886
886
|
var t = e.effects;
|
|
887
887
|
if (t !== null) {
|
|
888
888
|
e.effects = null;
|
|
889
889
|
for (var n = 0; n < t.length; n += 1) W(t[n]);
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
|
-
function
|
|
892
|
+
function Rt(e) {
|
|
893
893
|
var t, n = J, r = e.parent;
|
|
894
|
-
if (!
|
|
895
|
-
|
|
894
|
+
if (!zn && r !== null && e.v !== o && r.f & 24576) return Oe(), e.v;
|
|
895
|
+
Vn(r);
|
|
896
896
|
try {
|
|
897
|
-
e.f &= ~ae,
|
|
897
|
+
e.f &= ~ae, Lt(e), t = Qn(e);
|
|
898
898
|
} finally {
|
|
899
|
-
|
|
899
|
+
Vn(n);
|
|
900
900
|
}
|
|
901
901
|
return t;
|
|
902
902
|
}
|
|
903
|
-
function
|
|
904
|
-
var t =
|
|
905
|
-
if (!e.equals(t) && (e.wv =
|
|
903
|
+
function zt(e) {
|
|
904
|
+
var t = Rt(e);
|
|
905
|
+
if (!e.equals(t) && (e.wv = Yn(), (!I?.is_fork || e.deps === null) && (I === null ? e.v = t : (I.capture(e, t, !0), st?.capture(e, t, !0)), e.deps === null))) {
|
|
906
906
|
F(e, C);
|
|
907
907
|
return;
|
|
908
908
|
}
|
|
909
|
-
|
|
909
|
+
zn || (L === null ? $e(e) : (gn() || I?.is_fork) && L.set(e, t));
|
|
910
910
|
}
|
|
911
|
-
function
|
|
912
|
-
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(
|
|
911
|
+
function Bt(e) {
|
|
912
|
+
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(A), t.fn !== null && (t.teardown = b), t.ac = null, er(t, 0), On(t));
|
|
913
913
|
}
|
|
914
|
-
function
|
|
915
|
-
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null &&
|
|
914
|
+
function Vt(e) {
|
|
915
|
+
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && tr(t);
|
|
916
916
|
}
|
|
917
917
|
//#endregion
|
|
918
918
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/sources.js
|
|
919
|
-
var
|
|
920
|
-
function
|
|
919
|
+
var Ht = /* @__PURE__ */ new Set(), Ut = /* @__PURE__ */ new Map(), Wt = !1;
|
|
920
|
+
function Gt(e, t) {
|
|
921
921
|
return {
|
|
922
922
|
f: 0,
|
|
923
923
|
v: e,
|
|
924
924
|
reactions: null,
|
|
925
|
-
equals:
|
|
925
|
+
equals: Le,
|
|
926
926
|
rv: 0,
|
|
927
927
|
wv: 0
|
|
928
928
|
};
|
|
929
929
|
}
|
|
930
930
|
/* @__NO_SIDE_EFFECTS__ */
|
|
931
931
|
function z(e, t) {
|
|
932
|
-
let n =
|
|
933
|
-
return
|
|
932
|
+
let n = Gt(e, t);
|
|
933
|
+
return Un(n), n;
|
|
934
934
|
}
|
|
935
935
|
/* @__NO_SIDE_EFFECTS__ */
|
|
936
|
-
function
|
|
937
|
-
let r =
|
|
938
|
-
return t || (r.equals =
|
|
936
|
+
function Kt(e, t = !1, n = !0) {
|
|
937
|
+
let r = Gt(e);
|
|
938
|
+
return t || (r.equals = ze), Ve && n && P !== null && P.l !== null && (P.l.s ??= []).push(r), r;
|
|
939
939
|
}
|
|
940
940
|
function B(e, t, n = !1) {
|
|
941
|
-
return G !== null && (!K || G.f & 131072) &&
|
|
941
|
+
return G !== null && (!K || G.f & 131072) && Ge() && G.f & 4325394 && (Hn === null || !Hn.has(e)) && Ee(), qt(e, n ? Zt(t) : t, ft);
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function qt(e, t, n = null) {
|
|
944
944
|
if (!e.equals(t)) {
|
|
945
|
-
|
|
946
|
-
var r =
|
|
945
|
+
Ut.set(e, zn ? t : e.v);
|
|
946
|
+
var r = ht.ensure();
|
|
947
947
|
if (r.capture(e, t), e.f & 2) {
|
|
948
948
|
let t = e;
|
|
949
|
-
e.f & 2048 &&
|
|
949
|
+
e.f & 2048 && Rt(t), L === null && $e(t);
|
|
950
950
|
}
|
|
951
|
-
e.wv =
|
|
951
|
+
e.wv = Yn(), Xt(e, w, n), Ge() && J !== null && J.f & 1024 && !(J.f & 96) && (Z === null ? Wn([e]) : Z.push(e)), !r.is_fork && Ht.size > 0 && !Wt && Jt();
|
|
952
952
|
}
|
|
953
953
|
return t;
|
|
954
954
|
}
|
|
955
|
-
function
|
|
956
|
-
|
|
957
|
-
for (let e of
|
|
955
|
+
function Jt() {
|
|
956
|
+
Wt = !1;
|
|
957
|
+
for (let e of Ht) {
|
|
958
958
|
e.f & 1024 && F(e, T);
|
|
959
959
|
let t;
|
|
960
960
|
try {
|
|
961
|
-
t =
|
|
961
|
+
t = Xn(e);
|
|
962
962
|
} catch {
|
|
963
963
|
t = !0;
|
|
964
964
|
}
|
|
965
|
-
t &&
|
|
965
|
+
t && tr(e);
|
|
966
966
|
}
|
|
967
|
-
|
|
967
|
+
Ht.clear();
|
|
968
968
|
}
|
|
969
|
-
function
|
|
969
|
+
function Yt(e) {
|
|
970
970
|
B(e, e.v + 1);
|
|
971
971
|
}
|
|
972
|
-
function
|
|
972
|
+
function Xt(e, t, n) {
|
|
973
973
|
var r = e.reactions;
|
|
974
|
-
if (r !== null) for (var i =
|
|
974
|
+
if (r !== null) for (var i = Ge(), a = r.length, o = 0; o < a; o++) {
|
|
975
975
|
var s = r[o], c = s.f;
|
|
976
976
|
if (!(!i && s === J)) {
|
|
977
977
|
var l = (c & w) === 0;
|
|
978
|
-
if (l && F(s, t), c & 131072)
|
|
978
|
+
if (l && F(s, t), c & 131072) Ht.add(s);
|
|
979
979
|
else if (c & 2) {
|
|
980
980
|
var u = s;
|
|
981
|
-
L?.delete(u), c & 65536 || (c & 512 && (J === null || !(J.f & 2097152)) && (s.f |= ae),
|
|
981
|
+
L?.delete(u), c & 65536 || (c & 512 && (J === null || !(J.f & 2097152)) && (s.f |= ae), Xt(u, T, n));
|
|
982
982
|
} else if (l) {
|
|
983
983
|
var d = s;
|
|
984
|
-
c & 16 &&
|
|
984
|
+
c & 16 && vt !== null && vt.add(d), n === null ? St(d) : n.push(d);
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
|
-
function
|
|
990
|
-
if (typeof e != "object" || !e ||
|
|
991
|
-
let t =
|
|
992
|
-
if (t !==
|
|
993
|
-
var n = /* @__PURE__ */ new Map(), r =
|
|
994
|
-
if (
|
|
995
|
-
var t = G, n =
|
|
996
|
-
q(null),
|
|
989
|
+
function Zt(e) {
|
|
990
|
+
if (typeof e != "object" || !e || le in e) return e;
|
|
991
|
+
let t = v(e);
|
|
992
|
+
if (t !== g && t !== _) return e;
|
|
993
|
+
var n = /* @__PURE__ */ new Map(), r = c(e), i = /* @__PURE__ */ z(0), a = null, s = qn, l = (e) => {
|
|
994
|
+
if (qn === s) return e();
|
|
995
|
+
var t = G, n = qn;
|
|
996
|
+
q(null), Jn(s);
|
|
997
997
|
var r = e();
|
|
998
|
-
return q(t),
|
|
998
|
+
return q(t), Jn(n), r;
|
|
999
999
|
};
|
|
1000
1000
|
return r && n.set("length", /* @__PURE__ */ z(e.length, a)), new Proxy(e, {
|
|
1001
1001
|
defineProperty(e, t, r) {
|
|
1002
|
-
(!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) &&
|
|
1002
|
+
(!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && we();
|
|
1003
1003
|
var i = n.get(t);
|
|
1004
|
-
return i === void 0 ?
|
|
1004
|
+
return i === void 0 ? l(() => {
|
|
1005
1005
|
var e = /* @__PURE__ */ z(r.value, a);
|
|
1006
1006
|
return n.set(t, e), e;
|
|
1007
1007
|
}) : B(i, r.value, !0), !0;
|
|
@@ -1010,18 +1010,18 @@ function Qt(e) {
|
|
|
1010
1010
|
var r = n.get(t);
|
|
1011
1011
|
if (r === void 0) {
|
|
1012
1012
|
if (t in e) {
|
|
1013
|
-
let e =
|
|
1014
|
-
n.set(t, e),
|
|
1013
|
+
let e = l(() => /* @__PURE__ */ z(o, a));
|
|
1014
|
+
n.set(t, e), Yt(i);
|
|
1015
1015
|
}
|
|
1016
|
-
} else B(r,
|
|
1016
|
+
} else B(r, o), Yt(i);
|
|
1017
1017
|
return !0;
|
|
1018
1018
|
},
|
|
1019
1019
|
get(t, r, i) {
|
|
1020
|
-
if (r ===
|
|
1021
|
-
var
|
|
1022
|
-
if (
|
|
1023
|
-
var u = Q(
|
|
1024
|
-
return u ===
|
|
1020
|
+
if (r === le) return e;
|
|
1021
|
+
var s = n.get(r), c = r in t;
|
|
1022
|
+
if (s === void 0 && (!c || m(t, r)?.writable) && (s = l(() => /* @__PURE__ */ z(Zt(c ? t[r] : o), a)), n.set(r, s)), s !== void 0) {
|
|
1023
|
+
var u = Q(s);
|
|
1024
|
+
return u === o ? void 0 : u;
|
|
1025
1025
|
}
|
|
1026
1026
|
return Reflect.get(t, r, i);
|
|
1027
1027
|
},
|
|
@@ -1031,40 +1031,40 @@ function Qt(e) {
|
|
|
1031
1031
|
var i = n.get(t);
|
|
1032
1032
|
i && (r.value = Q(i));
|
|
1033
1033
|
} else if (r === void 0) {
|
|
1034
|
-
var a = n.get(t),
|
|
1035
|
-
if (a !== void 0 &&
|
|
1034
|
+
var a = n.get(t), s = a?.v;
|
|
1035
|
+
if (a !== void 0 && s !== o) return {
|
|
1036
1036
|
enumerable: !0,
|
|
1037
1037
|
configurable: !0,
|
|
1038
|
-
value:
|
|
1038
|
+
value: s,
|
|
1039
1039
|
writable: !0
|
|
1040
1040
|
};
|
|
1041
1041
|
}
|
|
1042
1042
|
return r;
|
|
1043
1043
|
},
|
|
1044
1044
|
has(e, t) {
|
|
1045
|
-
if (t ===
|
|
1046
|
-
var r = n.get(t), i = r !== void 0 && r.v !==
|
|
1047
|
-
return (r !== void 0 || J !== null && (!i ||
|
|
1045
|
+
if (t === le) return !0;
|
|
1046
|
+
var r = n.get(t), i = r !== void 0 && r.v !== o || Reflect.has(e, t);
|
|
1047
|
+
return (r !== void 0 || J !== null && (!i || m(e, t)?.writable)) && (r === void 0 && (r = l(() => /* @__PURE__ */ z(i ? Zt(e[t]) : o, a)), n.set(t, r)), Q(r) === o) ? !1 : i;
|
|
1048
1048
|
},
|
|
1049
|
-
set(e, t,
|
|
1049
|
+
set(e, t, s, c) {
|
|
1050
1050
|
var u = n.get(t), d = t in e;
|
|
1051
|
-
if (r && t === "length") for (var f =
|
|
1051
|
+
if (r && t === "length") for (var f = s; f < u.v; f += 1) {
|
|
1052
1052
|
var p = n.get(f + "");
|
|
1053
|
-
p === void 0 ? f in e && (p =
|
|
1053
|
+
p === void 0 ? f in e && (p = l(() => /* @__PURE__ */ z(o, a)), n.set(f + "", p)) : B(p, o);
|
|
1054
1054
|
}
|
|
1055
|
-
if (u === void 0) (!d ||
|
|
1055
|
+
if (u === void 0) (!d || m(e, t)?.writable) && (u = l(() => /* @__PURE__ */ z(void 0, a)), B(u, Zt(s)), n.set(t, u));
|
|
1056
1056
|
else {
|
|
1057
|
-
d = u.v !==
|
|
1058
|
-
var
|
|
1059
|
-
B(u,
|
|
1057
|
+
d = u.v !== o;
|
|
1058
|
+
var h = l(() => Zt(s));
|
|
1059
|
+
B(u, h);
|
|
1060
1060
|
}
|
|
1061
1061
|
var g = Reflect.getOwnPropertyDescriptor(e, t);
|
|
1062
|
-
if (g?.set && g.set.call(
|
|
1062
|
+
if (g?.set && g.set.call(c, s), !d) {
|
|
1063
1063
|
if (r && typeof t == "string") {
|
|
1064
1064
|
var _ = n.get("length"), v = Number(t);
|
|
1065
1065
|
Number.isInteger(v) && v >= _.v && B(_, v + 1);
|
|
1066
1066
|
}
|
|
1067
|
-
|
|
1067
|
+
Yt(i);
|
|
1068
1068
|
}
|
|
1069
1069
|
return !0;
|
|
1070
1070
|
},
|
|
@@ -1072,13 +1072,13 @@ function Qt(e) {
|
|
|
1072
1072
|
Q(i);
|
|
1073
1073
|
var t = Reflect.ownKeys(e).filter((e) => {
|
|
1074
1074
|
var t = n.get(e);
|
|
1075
|
-
return t === void 0 || t.v !==
|
|
1075
|
+
return t === void 0 || t.v !== o;
|
|
1076
1076
|
});
|
|
1077
|
-
for (var [r, a] of n) a.v !==
|
|
1077
|
+
for (var [r, a] of n) a.v !== o && !(r in e) && t.push(r);
|
|
1078
1078
|
return t;
|
|
1079
1079
|
},
|
|
1080
1080
|
setPrototypeOf() {
|
|
1081
|
-
|
|
1081
|
+
Te();
|
|
1082
1082
|
}
|
|
1083
1083
|
});
|
|
1084
1084
|
}
|
|
@@ -1093,12 +1093,12 @@ new Set([
|
|
|
1093
1093
|
"splice",
|
|
1094
1094
|
"unshift"
|
|
1095
1095
|
]);
|
|
1096
|
-
var $t, en, tn
|
|
1097
|
-
function
|
|
1098
|
-
if (
|
|
1099
|
-
|
|
1096
|
+
var Qt, $t, en, tn;
|
|
1097
|
+
function nn() {
|
|
1098
|
+
if (Qt === void 0) {
|
|
1099
|
+
Qt = window, $t = /Firefox/.test(navigator.userAgent);
|
|
1100
1100
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
1101
|
-
|
|
1101
|
+
en = m(t, "firstChild").get, tn = m(t, "nextSibling").get, y(e) && (e[fe] = void 0, e[k] = null, e[pe] = void 0, e.__e = void 0), y(n) && (n[me] = void 0);
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
1104
|
function V(e = "") {
|
|
@@ -1106,13 +1106,13 @@ function V(e = "") {
|
|
|
1106
1106
|
}
|
|
1107
1107
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1108
1108
|
function H(e) {
|
|
1109
|
-
return
|
|
1109
|
+
return en.call(e);
|
|
1110
1110
|
}
|
|
1111
1111
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1112
|
-
function
|
|
1113
|
-
return
|
|
1112
|
+
function rn(e) {
|
|
1113
|
+
return tn.call(e);
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1115
|
+
function an(e, t) {
|
|
1116
1116
|
if (!j) return /* @__PURE__ */ H(e);
|
|
1117
1117
|
var n = /* @__PURE__ */ H(M);
|
|
1118
1118
|
if (n === null) n = M.appendChild(V());
|
|
@@ -1120,70 +1120,70 @@ function on(e, t) {
|
|
|
1120
1120
|
var r = V();
|
|
1121
1121
|
return n?.before(r), N(r), r;
|
|
1122
1122
|
}
|
|
1123
|
-
return t &&
|
|
1123
|
+
return t && dn(n), N(n), n;
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function on(e, t = !1) {
|
|
1126
1126
|
if (!j) {
|
|
1127
1127
|
var n = /* @__PURE__ */ H(e);
|
|
1128
|
-
return n instanceof Comment && n.data === "" ? /* @__PURE__ */
|
|
1128
|
+
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ rn(n) : n;
|
|
1129
1129
|
}
|
|
1130
1130
|
if (t) {
|
|
1131
1131
|
if (M?.nodeType !== 3) {
|
|
1132
1132
|
var r = V();
|
|
1133
1133
|
return M?.before(r), N(r), r;
|
|
1134
1134
|
}
|
|
1135
|
-
|
|
1135
|
+
dn(M);
|
|
1136
1136
|
}
|
|
1137
1137
|
return M;
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1139
|
+
function sn(e, t = 1, n = !1) {
|
|
1140
1140
|
let r = j ? M : e;
|
|
1141
|
-
for (var i; t--;) i = r, r = /* @__PURE__ */
|
|
1141
|
+
for (var i; t--;) i = r, r = /* @__PURE__ */ rn(r);
|
|
1142
1142
|
if (!j) return r;
|
|
1143
1143
|
if (n) {
|
|
1144
1144
|
if (r?.nodeType !== 3) {
|
|
1145
1145
|
var a = V();
|
|
1146
1146
|
return r === null ? i?.after(a) : r.before(a), N(a), a;
|
|
1147
1147
|
}
|
|
1148
|
-
|
|
1148
|
+
dn(r);
|
|
1149
1149
|
}
|
|
1150
1150
|
return N(r), r;
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1152
|
+
function cn(e) {
|
|
1153
1153
|
e.textContent = "";
|
|
1154
1154
|
}
|
|
1155
|
-
function
|
|
1156
|
-
return !
|
|
1155
|
+
function ln() {
|
|
1156
|
+
return !Be || vt !== null ? !1 : (J.f & ee) !== 0;
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1158
|
+
function un(e, t, n) {
|
|
1159
1159
|
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);
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function dn(e) {
|
|
1162
1162
|
if (e.nodeValue.length < 65536) return;
|
|
1163
1163
|
let t = e.nextSibling;
|
|
1164
1164
|
for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1165
1165
|
}
|
|
1166
1166
|
//#endregion
|
|
1167
1167
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
|
|
1168
|
-
function
|
|
1168
|
+
function fn(e) {
|
|
1169
1169
|
var t = G, n = J;
|
|
1170
|
-
q(null),
|
|
1170
|
+
q(null), Vn(null);
|
|
1171
1171
|
try {
|
|
1172
1172
|
return e();
|
|
1173
1173
|
} finally {
|
|
1174
|
-
q(t),
|
|
1174
|
+
q(t), Vn(n);
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
1177
1177
|
//#endregion
|
|
1178
1178
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/effects.js
|
|
1179
|
-
function
|
|
1180
|
-
J === null && (G === null &&
|
|
1179
|
+
function pn(e) {
|
|
1180
|
+
J === null && (G === null && be(e), ye()), zn && ve(e);
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1182
|
+
function mn(e, t) {
|
|
1183
1183
|
var n = t.last;
|
|
1184
1184
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function hn(e, t) {
|
|
1187
1187
|
var n = J;
|
|
1188
1188
|
n !== null && n.f & 8192 && (e |= E);
|
|
1189
1189
|
var r = {
|
|
@@ -1204,99 +1204,99 @@ function gn(e, t) {
|
|
|
1204
1204
|
};
|
|
1205
1205
|
I?.register_created_effect(r);
|
|
1206
1206
|
var i = r;
|
|
1207
|
-
if (e & 4)
|
|
1207
|
+
if (e & 4) dt === null ? ht.ensure().schedule(r) : dt.push(r);
|
|
1208
1208
|
else if (t !== null) {
|
|
1209
1209
|
try {
|
|
1210
|
-
|
|
1210
|
+
tr(r);
|
|
1211
1211
|
} catch (e) {
|
|
1212
1212
|
throw W(r), e;
|
|
1213
1213
|
}
|
|
1214
|
-
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 |=
|
|
1214
|
+
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 |= O));
|
|
1215
1215
|
}
|
|
1216
|
-
if (i !== null && (i.parent = n, n !== null &&
|
|
1216
|
+
if (i !== null && (i.parent = n, n !== null && mn(i, n), G !== null && G.f & 2 && !(e & 64))) {
|
|
1217
1217
|
var a = G;
|
|
1218
1218
|
(a.effects ??= []).push(i);
|
|
1219
1219
|
}
|
|
1220
1220
|
return r;
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1222
|
+
function gn() {
|
|
1223
1223
|
return G !== null && !K;
|
|
1224
1224
|
}
|
|
1225
|
-
function
|
|
1226
|
-
let t =
|
|
1225
|
+
function _n(e) {
|
|
1226
|
+
let t = hn(8, null);
|
|
1227
1227
|
return F(t, C), t.teardown = e, t;
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1230
|
-
|
|
1229
|
+
function vn(e) {
|
|
1230
|
+
pn("$effect");
|
|
1231
1231
|
var t = J.f;
|
|
1232
1232
|
if (!G && t & 32 && P !== null && !P.i) {
|
|
1233
1233
|
var n = P;
|
|
1234
1234
|
(n.e ??= []).push(e);
|
|
1235
|
-
} else return
|
|
1235
|
+
} else return yn(e);
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1238
|
-
return
|
|
1237
|
+
function yn(e) {
|
|
1238
|
+
return hn(4 | re, e);
|
|
1239
1239
|
}
|
|
1240
|
-
function
|
|
1241
|
-
|
|
1242
|
-
let t =
|
|
1240
|
+
function bn(e) {
|
|
1241
|
+
ht.ensure();
|
|
1242
|
+
let t = hn(64 | ne, e);
|
|
1243
1243
|
return () => {
|
|
1244
1244
|
W(t);
|
|
1245
1245
|
};
|
|
1246
1246
|
}
|
|
1247
|
-
function
|
|
1248
|
-
|
|
1249
|
-
let t =
|
|
1247
|
+
function xn(e) {
|
|
1248
|
+
ht.ensure();
|
|
1249
|
+
let t = hn(64 | ne, e);
|
|
1250
1250
|
return (e = {}) => new Promise((n) => {
|
|
1251
|
-
e.outro ?
|
|
1251
|
+
e.outro ? Mn(t, () => {
|
|
1252
1252
|
W(t), n(void 0);
|
|
1253
1253
|
}) : (W(t), n(void 0));
|
|
1254
1254
|
});
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1257
|
-
return
|
|
1256
|
+
function Sn(e) {
|
|
1257
|
+
return hn(4, e);
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1260
|
-
return
|
|
1259
|
+
function Cn(e) {
|
|
1260
|
+
return hn(se | ne, e);
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1263
|
-
return
|
|
1262
|
+
function wn(e, t = 0) {
|
|
1263
|
+
return hn(8 | t, e);
|
|
1264
1264
|
}
|
|
1265
|
-
function
|
|
1265
|
+
function Tn(e, t = [], n = [], r = []) {
|
|
1266
1266
|
kt(r, t, n, (t) => {
|
|
1267
|
-
|
|
1267
|
+
hn(8, () => e(...t.map(Q)));
|
|
1268
1268
|
});
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1271
|
-
return
|
|
1270
|
+
function En(e, t = 0) {
|
|
1271
|
+
return hn(16 | t, e);
|
|
1272
1272
|
}
|
|
1273
1273
|
function U(e) {
|
|
1274
|
-
return
|
|
1274
|
+
return hn(32 | ne, e);
|
|
1275
1275
|
}
|
|
1276
|
-
function
|
|
1276
|
+
function Dn(e) {
|
|
1277
1277
|
var t = e.teardown;
|
|
1278
1278
|
if (t !== null) {
|
|
1279
|
-
let e =
|
|
1280
|
-
|
|
1279
|
+
let e = zn, n = G;
|
|
1280
|
+
Bn(!0), q(null);
|
|
1281
1281
|
try {
|
|
1282
1282
|
t.call(null);
|
|
1283
1283
|
} finally {
|
|
1284
|
-
|
|
1284
|
+
Bn(e), q(n);
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
|
-
function
|
|
1288
|
+
function On(e, t = !1) {
|
|
1289
1289
|
var n = e.first;
|
|
1290
1290
|
for (e.first = e.last = null; n !== null;) {
|
|
1291
1291
|
let e = n.ac;
|
|
1292
|
-
e !== null &&
|
|
1293
|
-
e.abort(
|
|
1292
|
+
e !== null && fn(() => {
|
|
1293
|
+
e.abort(A);
|
|
1294
1294
|
});
|
|
1295
1295
|
var r = n.next;
|
|
1296
1296
|
n.f & 64 ? n.parent = null : W(n, t), n = r;
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1299
|
+
function kn(e) {
|
|
1300
1300
|
for (var t = e.first; t !== null;) {
|
|
1301
1301
|
var n = t.next;
|
|
1302
1302
|
t.f & 32 || W(t), t = n;
|
|
@@ -1304,26 +1304,26 @@ function An(e) {
|
|
|
1304
1304
|
}
|
|
1305
1305
|
function W(e, t = !0) {
|
|
1306
1306
|
var n = !1;
|
|
1307
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (
|
|
1307
|
+
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (An(e.nodes.start, e.nodes.end), n = !0), F(e, te), On(e, t && !n), er(e, 0);
|
|
1308
1308
|
var r = e.nodes && e.nodes.t;
|
|
1309
1309
|
if (r !== null) for (let e of r) e.stop();
|
|
1310
|
-
|
|
1310
|
+
Dn(e), e.f ^= te, e.f |= D;
|
|
1311
1311
|
var i = e.parent;
|
|
1312
|
-
i !== null && i.first !== null &&
|
|
1312
|
+
i !== null && i.first !== null && jn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1314
|
+
function An(e, t) {
|
|
1315
1315
|
for (; e !== null;) {
|
|
1316
|
-
var n = e === t ? null : /* @__PURE__ */
|
|
1316
|
+
var n = e === t ? null : /* @__PURE__ */ rn(e);
|
|
1317
1317
|
e.remove(), e = n;
|
|
1318
1318
|
}
|
|
1319
1319
|
}
|
|
1320
|
-
function
|
|
1320
|
+
function jn(e) {
|
|
1321
1321
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1322
1322
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1324
|
+
function Mn(e, t, n = !0) {
|
|
1325
1325
|
var r = [];
|
|
1326
|
-
|
|
1326
|
+
Nn(e, r, !0);
|
|
1327
1327
|
var i = () => {
|
|
1328
1328
|
n && W(e), t && t();
|
|
1329
1329
|
}, a = r.length;
|
|
@@ -1332,7 +1332,7 @@ function Nn(e, t, n = !0) {
|
|
|
1332
1332
|
for (var s of r) s.out(o);
|
|
1333
1333
|
} else i();
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1335
|
+
function Nn(e, t, n) {
|
|
1336
1336
|
if (!(e.f & 8192)) {
|
|
1337
1337
|
e.f ^= E;
|
|
1338
1338
|
var r = e.nodes && e.nodes.t;
|
|
@@ -1341,177 +1341,177 @@ function Pn(e, t, n) {
|
|
|
1341
1341
|
var a = i.next;
|
|
1342
1342
|
if (!(i.f & 64)) {
|
|
1343
1343
|
var o = (i.f & 65536) != 0 || (i.f & 32) != 0 && (e.f & 16) != 0;
|
|
1344
|
-
|
|
1344
|
+
Nn(i, t, o ? n : !1);
|
|
1345
1345
|
}
|
|
1346
1346
|
i = a;
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1351
|
-
|
|
1350
|
+
function Pn(e) {
|
|
1351
|
+
Fn(e, !0);
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function Fn(e, t) {
|
|
1354
1354
|
if (e.f & 8192) {
|
|
1355
|
-
e.f ^= E, e.f & 1024 || (F(e, w),
|
|
1355
|
+
e.f ^= E, e.f & 1024 || (F(e, w), ht.ensure().schedule(e));
|
|
1356
1356
|
for (var n = e.first; n !== null;) {
|
|
1357
1357
|
var r = n.next, i = (n.f & 65536) != 0 || (n.f & 32) != 0;
|
|
1358
|
-
|
|
1358
|
+
Fn(n, i ? t : !1), n = r;
|
|
1359
1359
|
}
|
|
1360
1360
|
var a = e.nodes && e.nodes.t;
|
|
1361
1361
|
if (a !== null) for (let e of a) (e.is_global || t) && e.in();
|
|
1362
1362
|
}
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function In(e, t) {
|
|
1365
1365
|
if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
|
|
1366
|
-
var i = n === r ? null : /* @__PURE__ */
|
|
1366
|
+
var i = n === r ? null : /* @__PURE__ */ rn(n);
|
|
1367
1367
|
t.append(n), n = i;
|
|
1368
1368
|
}
|
|
1369
1369
|
}
|
|
1370
1370
|
//#endregion
|
|
1371
1371
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/legacy.js
|
|
1372
|
-
var
|
|
1373
|
-
function
|
|
1374
|
-
|
|
1372
|
+
var Ln = null, Rn = !1, zn = !1;
|
|
1373
|
+
function Bn(e) {
|
|
1374
|
+
zn = e;
|
|
1375
1375
|
}
|
|
1376
1376
|
var G = null, K = !1;
|
|
1377
1377
|
function q(e) {
|
|
1378
1378
|
G = e;
|
|
1379
1379
|
}
|
|
1380
1380
|
var J = null;
|
|
1381
|
-
function
|
|
1381
|
+
function Vn(e) {
|
|
1382
1382
|
J = e;
|
|
1383
1383
|
}
|
|
1384
|
-
var
|
|
1385
|
-
function
|
|
1386
|
-
G !== null && (!
|
|
1384
|
+
var Hn = null;
|
|
1385
|
+
function Un(e) {
|
|
1386
|
+
G !== null && (!Be || G.f & 2) && (Hn ??= /* @__PURE__ */ new Set()).add(e);
|
|
1387
1387
|
}
|
|
1388
1388
|
var Y = null, X = 0, Z = null;
|
|
1389
|
-
function
|
|
1389
|
+
function Wn(e) {
|
|
1390
1390
|
Z = e;
|
|
1391
1391
|
}
|
|
1392
|
-
var
|
|
1393
|
-
function
|
|
1394
|
-
|
|
1392
|
+
var Gn = 1, Kn = 0, qn = Kn;
|
|
1393
|
+
function Jn(e) {
|
|
1394
|
+
qn = e;
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1397
|
-
return ++
|
|
1396
|
+
function Yn() {
|
|
1397
|
+
return ++Gn;
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1399
|
+
function Xn(e) {
|
|
1400
1400
|
var t = e.f;
|
|
1401
1401
|
if (t & 2048) return !0;
|
|
1402
1402
|
if (t & 2 && (e.f &= ~ae), t & 4096) {
|
|
1403
1403
|
for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
|
|
1404
1404
|
var a = n[i];
|
|
1405
|
-
if (
|
|
1405
|
+
if (Xn(a) && zt(a), a.wv > e.wv) return !0;
|
|
1406
1406
|
}
|
|
1407
1407
|
t & 512 && L === null && F(e, C);
|
|
1408
1408
|
}
|
|
1409
1409
|
return !1;
|
|
1410
1410
|
}
|
|
1411
|
-
function
|
|
1411
|
+
function Zn(e, t, n = !0) {
|
|
1412
1412
|
var r = e.reactions;
|
|
1413
|
-
if (r !== null && !(!
|
|
1413
|
+
if (r !== null && !(!Be && Hn !== null && Hn.has(e))) for (var i = 0; i < r.length; i++) {
|
|
1414
1414
|
var a = r[i];
|
|
1415
|
-
a.f & 2 ?
|
|
1415
|
+
a.f & 2 ? Zn(a, t, !1) : t === a && (n ? F(a, w) : a.f & 1024 && F(a, T), St(a));
|
|
1416
1416
|
}
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1419
|
-
var t = Y, n = X, r = Z, i = G, a =
|
|
1420
|
-
Y = null, X = 0, Z = null, G = l & 96 ? null : e,
|
|
1421
|
-
e.ac.abort(
|
|
1418
|
+
function Qn(e) {
|
|
1419
|
+
var t = Y, n = X, r = Z, i = G, a = Hn, o = P, s = K, c = qn, l = e.f;
|
|
1420
|
+
Y = null, X = 0, Z = null, G = l & 96 ? null : e, Hn = null, He(e.ctx), K = !1, qn = ++Kn, e.ac !== null && (fn(() => {
|
|
1421
|
+
e.ac.abort(A);
|
|
1422
1422
|
}), e.ac = null);
|
|
1423
1423
|
try {
|
|
1424
1424
|
e.f |= oe;
|
|
1425
1425
|
var u = e.fn, d = u();
|
|
1426
|
-
e.f |=
|
|
1426
|
+
e.f |= ee;
|
|
1427
1427
|
var f = e.deps, p = I?.is_fork;
|
|
1428
1428
|
if (Y !== null) {
|
|
1429
1429
|
var m;
|
|
1430
|
-
if (p ||
|
|
1430
|
+
if (p || er(e, X), f !== null && X > 0) for (f.length = X + Y.length, m = 0; m < Y.length; m++) f[X + m] = Y[m];
|
|
1431
1431
|
else e.deps = f = Y;
|
|
1432
|
-
if (
|
|
1433
|
-
} else !p && f !== null && X < f.length && (
|
|
1434
|
-
if (
|
|
1432
|
+
if (gn() && e.f & 512) for (m = X; m < f.length; m++) (f[m].reactions ??= []).push(e);
|
|
1433
|
+
} else !p && f !== null && X < f.length && (er(e, X), f.length = X);
|
|
1434
|
+
if (Ge() && Z !== null && !K && f !== null && !(e.f & 6146)) for (m = 0; m < Z.length; m++) Zn(Z[m], e);
|
|
1435
1435
|
if (i !== null && i !== e) {
|
|
1436
|
-
if (
|
|
1437
|
-
if (t !== null) for (let e of t) e.rv =
|
|
1436
|
+
if (Kn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Kn;
|
|
1437
|
+
if (t !== null) for (let e of t) e.rv = Kn;
|
|
1438
1438
|
Z !== null && (r === null ? r = Z : r.push(...Z));
|
|
1439
1439
|
}
|
|
1440
|
-
return e.f & 8388608 && (e.f ^=
|
|
1440
|
+
return e.f & 8388608 && (e.f ^= ce), d;
|
|
1441
1441
|
} catch (e) {
|
|
1442
|
-
return
|
|
1442
|
+
return Xe(e);
|
|
1443
1443
|
} finally {
|
|
1444
|
-
e.f ^= oe, Y = t, X = n, Z = r, G = i,
|
|
1444
|
+
e.f ^= oe, Y = t, X = n, Z = r, G = i, Hn = a, He(o), K = s, qn = c;
|
|
1445
1445
|
}
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1447
|
+
function $n(e, t) {
|
|
1448
1448
|
let n = t.reactions;
|
|
1449
1449
|
if (n !== null) {
|
|
1450
|
-
var r =
|
|
1450
|
+
var r = l.call(n, e);
|
|
1451
1451
|
if (r !== -1) {
|
|
1452
1452
|
var i = n.length - 1;
|
|
1453
1453
|
i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
|
|
1454
1454
|
}
|
|
1455
1455
|
}
|
|
1456
|
-
if (n === null && t.f & 2 && (Y === null || !
|
|
1456
|
+
if (n === null && t.f & 2 && (Y === null || !u.call(Y, t))) {
|
|
1457
1457
|
var a = t;
|
|
1458
|
-
a.f & 512 && (a.f ^= 512, a.f &= ~ae), a.v !==
|
|
1458
|
+
a.f & 512 && (a.f ^= 512, a.f &= ~ae), a.v !== o && $e(a), Bt(a), er(a, 0);
|
|
1459
1459
|
}
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1461
|
+
function er(e, t) {
|
|
1462
1462
|
var n = e.deps;
|
|
1463
|
-
if (n !== null) for (var r = t; r < n.length; r++)
|
|
1463
|
+
if (n !== null) for (var r = t; r < n.length; r++) $n(e, n[r]);
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1465
|
+
function tr(e) {
|
|
1466
1466
|
var t = e.f;
|
|
1467
1467
|
if (!(t & 16384)) {
|
|
1468
1468
|
F(e, C);
|
|
1469
|
-
var n = J, r =
|
|
1470
|
-
J = e,
|
|
1469
|
+
var n = J, r = Rn;
|
|
1470
|
+
J = e, Rn = !0;
|
|
1471
1471
|
try {
|
|
1472
|
-
t & 16777232 ?
|
|
1473
|
-
var i =
|
|
1474
|
-
e.teardown = typeof i == "function" ? i : null, e.wv =
|
|
1472
|
+
t & 16777232 ? kn(e) : On(e), Dn(e);
|
|
1473
|
+
var i = Qn(e);
|
|
1474
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = Gn;
|
|
1475
1475
|
} finally {
|
|
1476
|
-
|
|
1476
|
+
Rn = r, J = n;
|
|
1477
1477
|
}
|
|
1478
1478
|
}
|
|
1479
1479
|
}
|
|
1480
1480
|
function Q(e) {
|
|
1481
1481
|
var t = (e.f & 2) != 0;
|
|
1482
|
-
if (
|
|
1482
|
+
if (Ln?.add(e), G !== null && !K && !(J !== null && J.f & 16384) && (Hn === null || !Hn.has(e))) {
|
|
1483
1483
|
var n = G.deps;
|
|
1484
|
-
if (G.f & 2097152) e.rv <
|
|
1484
|
+
if (G.f & 2097152) e.rv < Kn && (e.rv = Kn, Y === null && n !== null && n[X] === e ? X++ : Y === null ? Y = [e] : Y.push(e));
|
|
1485
1485
|
else {
|
|
1486
|
-
G.deps ??= [],
|
|
1486
|
+
G.deps ??= [], u.call(G.deps, e) || G.deps.push(e);
|
|
1487
1487
|
var r = e.reactions;
|
|
1488
|
-
r === null ? e.reactions = [G] :
|
|
1488
|
+
r === null ? e.reactions = [G] : u.call(r, G) || r.push(G);
|
|
1489
1489
|
}
|
|
1490
1490
|
}
|
|
1491
|
-
if (
|
|
1491
|
+
if (zn && Ut.has(e)) return Ut.get(e);
|
|
1492
1492
|
if (t) {
|
|
1493
1493
|
var i = e;
|
|
1494
|
-
if (
|
|
1494
|
+
if (zn) {
|
|
1495
1495
|
var a = i.v;
|
|
1496
|
-
return (!(i.f & 1024) && i.reactions !== null ||
|
|
1496
|
+
return (!(i.f & 1024) && i.reactions !== null || rr(i)) && (a = Rt(i)), Ut.set(i, a), a;
|
|
1497
1497
|
}
|
|
1498
|
-
var o = (i.f & 512) == 0 && !K && G !== null && (
|
|
1499
|
-
|
|
1498
|
+
var o = (i.f & 512) == 0 && !K && G !== null && (Rn || (G.f & 512) != 0), s = (i.f & ee) === 0;
|
|
1499
|
+
Xn(i) && (o && (i.f |= 512), zt(i)), o && !s && (Vt(i), nr(i));
|
|
1500
1500
|
}
|
|
1501
1501
|
if (L?.has(e)) return L.get(e);
|
|
1502
1502
|
if (e.f & 8388608) throw e.v;
|
|
1503
1503
|
return e.v;
|
|
1504
1504
|
}
|
|
1505
|
-
function
|
|
1506
|
-
if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (
|
|
1505
|
+
function nr(e) {
|
|
1506
|
+
if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (Vt(t), nr(t));
|
|
1507
1507
|
}
|
|
1508
|
-
function
|
|
1509
|
-
if (e.v ===
|
|
1508
|
+
function rr(e) {
|
|
1509
|
+
if (e.v === o) return !0;
|
|
1510
1510
|
if (e.deps === null) return !1;
|
|
1511
|
-
for (let t of e.deps) if (
|
|
1511
|
+
for (let t of e.deps) if (Ut.has(t) || t.f & 2 && rr(t)) return !0;
|
|
1512
1512
|
return !1;
|
|
1513
1513
|
}
|
|
1514
|
-
function
|
|
1514
|
+
function ir(e) {
|
|
1515
1515
|
var t = K;
|
|
1516
1516
|
try {
|
|
1517
1517
|
return K = !0, e();
|
|
@@ -1521,40 +1521,40 @@ function ar(e) {
|
|
|
1521
1521
|
}
|
|
1522
1522
|
//#endregion
|
|
1523
1523
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/events.js
|
|
1524
|
-
var
|
|
1525
|
-
function
|
|
1524
|
+
var ar = Symbol("events"), or = /* @__PURE__ */ new Set(), sr = /* @__PURE__ */ new Set();
|
|
1525
|
+
function cr(e, t, n, r = {}) {
|
|
1526
1526
|
function i(e) {
|
|
1527
|
-
if (r.capture ||
|
|
1527
|
+
if (r.capture || pr.call(t, e), !e.cancelBubble) return fn(() => n?.call(this, e));
|
|
1528
1528
|
}
|
|
1529
|
-
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ?
|
|
1529
|
+
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? Je(() => {
|
|
1530
1530
|
t.addEventListener(e, i, r);
|
|
1531
1531
|
}) : t.addEventListener(e, i, r), i;
|
|
1532
1532
|
}
|
|
1533
|
-
function
|
|
1533
|
+
function lr(e, t, n, r, i) {
|
|
1534
1534
|
var a = {
|
|
1535
1535
|
capture: r,
|
|
1536
1536
|
passive: i
|
|
1537
|
-
}, o =
|
|
1538
|
-
(t === document.body || t === window || t === document || t instanceof HTMLMediaElement) &&
|
|
1537
|
+
}, o = cr(e, t, n, a);
|
|
1538
|
+
(t === document.body || t === window || t === document || t instanceof HTMLMediaElement) && _n(() => {
|
|
1539
1539
|
t.removeEventListener(e, o, a);
|
|
1540
1540
|
});
|
|
1541
1541
|
}
|
|
1542
|
-
function
|
|
1543
|
-
(t[
|
|
1542
|
+
function ur(e, t, n) {
|
|
1543
|
+
(t[ar] ??= {})[e] = n;
|
|
1544
1544
|
}
|
|
1545
|
-
function
|
|
1546
|
-
for (var t = 0; t < e.length; t++)
|
|
1547
|
-
for (var n of
|
|
1545
|
+
function dr(e) {
|
|
1546
|
+
for (var t = 0; t < e.length; t++) or.add(e[t]);
|
|
1547
|
+
for (var n of sr) n(e);
|
|
1548
1548
|
}
|
|
1549
|
-
var
|
|
1550
|
-
function
|
|
1549
|
+
var fr = null;
|
|
1550
|
+
function pr(e) {
|
|
1551
1551
|
var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
|
|
1552
|
-
|
|
1553
|
-
var o = 0, s =
|
|
1552
|
+
fr = e;
|
|
1553
|
+
var o = 0, s = fr === e && e[ar];
|
|
1554
1554
|
if (s) {
|
|
1555
1555
|
var c = i.indexOf(s);
|
|
1556
1556
|
if (c !== -1 && (t === document || t === window)) {
|
|
1557
|
-
e[
|
|
1557
|
+
e[ar] = t;
|
|
1558
1558
|
return;
|
|
1559
1559
|
}
|
|
1560
1560
|
var l = i.indexOf(t);
|
|
@@ -1562,49 +1562,49 @@ function mr(e) {
|
|
|
1562
1562
|
c <= l && (o = c);
|
|
1563
1563
|
}
|
|
1564
1564
|
if (a = i[o] || e.target, a !== t) {
|
|
1565
|
-
|
|
1565
|
+
p(e, "currentTarget", {
|
|
1566
1566
|
configurable: !0,
|
|
1567
1567
|
get() {
|
|
1568
1568
|
return a || n;
|
|
1569
1569
|
}
|
|
1570
1570
|
});
|
|
1571
1571
|
var u = G, d = J;
|
|
1572
|
-
q(null),
|
|
1572
|
+
q(null), Vn(null);
|
|
1573
1573
|
try {
|
|
1574
|
-
for (var f,
|
|
1574
|
+
for (var f, m = []; a !== null && a !== t;) {
|
|
1575
1575
|
try {
|
|
1576
|
-
var h = a[
|
|
1576
|
+
var h = a[ar]?.[r];
|
|
1577
1577
|
h != null && (!a.disabled || e.target === a) && h.call(a, e);
|
|
1578
1578
|
} catch (e) {
|
|
1579
|
-
f ?
|
|
1579
|
+
f ? m.push(e) : f = e;
|
|
1580
1580
|
}
|
|
1581
1581
|
if (e.cancelBubble) break;
|
|
1582
1582
|
o++, a = o < i.length ? i[o] : null;
|
|
1583
1583
|
}
|
|
1584
1584
|
if (f) {
|
|
1585
|
-
for (let e of
|
|
1585
|
+
for (let e of m) queueMicrotask(() => {
|
|
1586
1586
|
throw e;
|
|
1587
1587
|
});
|
|
1588
1588
|
throw f;
|
|
1589
1589
|
}
|
|
1590
1590
|
} finally {
|
|
1591
|
-
e[
|
|
1591
|
+
e[ar] = t, delete e.currentTarget, q(u), Vn(d);
|
|
1592
1592
|
}
|
|
1593
1593
|
}
|
|
1594
1594
|
}
|
|
1595
1595
|
//#endregion
|
|
1596
1596
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/reconciler.js
|
|
1597
|
-
var
|
|
1598
|
-
function
|
|
1599
|
-
return
|
|
1597
|
+
var mr = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1598
|
+
function hr(e) {
|
|
1599
|
+
return mr?.createHTML(e) ?? e;
|
|
1600
1600
|
}
|
|
1601
|
-
function
|
|
1602
|
-
var t =
|
|
1603
|
-
return t.innerHTML =
|
|
1601
|
+
function gr(e) {
|
|
1602
|
+
var t = un("template");
|
|
1603
|
+
return t.innerHTML = hr(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1604
1604
|
}
|
|
1605
1605
|
//#endregion
|
|
1606
1606
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/template.js
|
|
1607
|
-
function
|
|
1607
|
+
function _r(e, t) {
|
|
1608
1608
|
var n = J;
|
|
1609
1609
|
n.nodes === null && (n.nodes = {
|
|
1610
1610
|
start: e,
|
|
@@ -1614,129 +1614,129 @@ function vr(e, t) {
|
|
|
1614
1614
|
});
|
|
1615
1615
|
}
|
|
1616
1616
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1617
|
-
function
|
|
1617
|
+
function vr(e, t) {
|
|
1618
1618
|
var n = (t & 1) != 0, r = (t & 2) != 0, i, a = !e.startsWith("<!>");
|
|
1619
1619
|
return () => {
|
|
1620
|
-
if (j) return
|
|
1621
|
-
i === void 0 && (i =
|
|
1622
|
-
var t = r ||
|
|
1620
|
+
if (j) return _r(M, null), M;
|
|
1621
|
+
i === void 0 && (i = gr(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ H(i)));
|
|
1622
|
+
var t = r || $t ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1623
1623
|
if (n) {
|
|
1624
1624
|
var o = /* @__PURE__ */ H(t), s = t.lastChild;
|
|
1625
|
-
|
|
1626
|
-
} else
|
|
1625
|
+
_r(o, s);
|
|
1626
|
+
} else _r(t, t);
|
|
1627
1627
|
return t;
|
|
1628
1628
|
};
|
|
1629
1629
|
}
|
|
1630
1630
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1631
|
-
function
|
|
1631
|
+
function yr(e, t, n = "svg") {
|
|
1632
1632
|
var r = !e.startsWith("<!>"), i = (t & 1) != 0, a = `<${n}>${r ? e : "<!>" + e}</${n}>`, o;
|
|
1633
1633
|
return () => {
|
|
1634
|
-
if (j) return
|
|
1634
|
+
if (j) return _r(M, null), M;
|
|
1635
1635
|
if (!o) {
|
|
1636
|
-
var e = /* @__PURE__ */ H(
|
|
1636
|
+
var e = /* @__PURE__ */ H(gr(a));
|
|
1637
1637
|
if (i) for (o = document.createDocumentFragment(); /* @__PURE__ */ H(e);) o.appendChild(/* @__PURE__ */ H(e));
|
|
1638
1638
|
else o = /* @__PURE__ */ H(e);
|
|
1639
1639
|
}
|
|
1640
1640
|
var t = o.cloneNode(!0);
|
|
1641
1641
|
if (i) {
|
|
1642
1642
|
var n = /* @__PURE__ */ H(t), r = t.lastChild;
|
|
1643
|
-
|
|
1644
|
-
} else
|
|
1643
|
+
_r(n, r);
|
|
1644
|
+
} else _r(t, t);
|
|
1645
1645
|
return t;
|
|
1646
1646
|
};
|
|
1647
1647
|
}
|
|
1648
1648
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1649
|
-
function
|
|
1650
|
-
return /* @__PURE__ */
|
|
1649
|
+
function br(e, t) {
|
|
1650
|
+
return /* @__PURE__ */ yr(e, t, "svg");
|
|
1651
1651
|
}
|
|
1652
|
-
function
|
|
1653
|
-
if (j) return
|
|
1652
|
+
function xr() {
|
|
1653
|
+
if (j) return _r(M, null), M;
|
|
1654
1654
|
var e = document.createDocumentFragment(), t = document.createComment(""), n = V();
|
|
1655
|
-
return e.append(t, n),
|
|
1655
|
+
return e.append(t, n), _r(t, n), e;
|
|
1656
1656
|
}
|
|
1657
1657
|
function $(e, t) {
|
|
1658
1658
|
if (j) {
|
|
1659
1659
|
var n = J;
|
|
1660
|
-
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = M),
|
|
1660
|
+
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = M), Me();
|
|
1661
1661
|
return;
|
|
1662
1662
|
}
|
|
1663
1663
|
e !== null && e.before(t);
|
|
1664
1664
|
}
|
|
1665
1665
|
[.../* @__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(".")];
|
|
1666
|
-
var
|
|
1667
|
-
function
|
|
1668
|
-
return
|
|
1666
|
+
var Sr = ["touchstart", "touchmove"];
|
|
1667
|
+
function Cr(e) {
|
|
1668
|
+
return Sr.includes(e);
|
|
1669
1669
|
}
|
|
1670
|
-
function
|
|
1670
|
+
function wr(e, t) {
|
|
1671
1671
|
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1672
1672
|
n !== (e[me] ??= e.nodeValue) && (e[me] = n, e.nodeValue = `${n}`);
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1675
|
-
return
|
|
1674
|
+
function Tr(e, t) {
|
|
1675
|
+
return Or(e, t);
|
|
1676
1676
|
}
|
|
1677
|
-
function
|
|
1678
|
-
|
|
1677
|
+
function Er(e, t) {
|
|
1678
|
+
nn(), t.intro = t.intro ?? !1;
|
|
1679
1679
|
let n = t.target, r = j, i = M;
|
|
1680
1680
|
try {
|
|
1681
|
-
for (var
|
|
1682
|
-
if (!
|
|
1683
|
-
|
|
1684
|
-
let r =
|
|
1681
|
+
for (var o = /* @__PURE__ */ H(n); o && (o.nodeType !== 8 || o.data !== "[");) o = /* @__PURE__ */ rn(o);
|
|
1682
|
+
if (!o) throw a;
|
|
1683
|
+
je(!0), N(o);
|
|
1684
|
+
let r = Or(e, {
|
|
1685
1685
|
...t,
|
|
1686
|
-
anchor:
|
|
1686
|
+
anchor: o
|
|
1687
1687
|
});
|
|
1688
|
-
return
|
|
1688
|
+
return je(!1), r;
|
|
1689
1689
|
} catch (r) {
|
|
1690
1690
|
if (r instanceof Error && r.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw r;
|
|
1691
|
-
return r !==
|
|
1691
|
+
return r !== a && console.warn("Failed to hydrate: ", r), t.recover === !1 && Se(), nn(), cn(n), je(!1), Tr(e, t);
|
|
1692
1692
|
} finally {
|
|
1693
|
-
|
|
1693
|
+
je(r), N(i);
|
|
1694
1694
|
}
|
|
1695
1695
|
}
|
|
1696
|
-
var
|
|
1697
|
-
function
|
|
1698
|
-
|
|
1699
|
-
var l = void 0, u =
|
|
1696
|
+
var Dr = /* @__PURE__ */ new Map();
|
|
1697
|
+
function Or(e, { target: t, anchor: n, props: r = {}, events: i, context: o, intro: s = !0, transformError: c }) {
|
|
1698
|
+
nn();
|
|
1699
|
+
var l = void 0, u = xn(() => {
|
|
1700
1700
|
var s = n ?? t.appendChild(V());
|
|
1701
1701
|
Dt(s, { pending: () => {} }, (t) => {
|
|
1702
|
-
|
|
1702
|
+
Ue({});
|
|
1703
1703
|
var n = P;
|
|
1704
|
-
if (
|
|
1705
|
-
|
|
1704
|
+
if (o && (n.c = o), i && (r.$$events = i), j && _r(t, null), l = e(t, r) || {}, j && (J.nodes.end = M, M === null || M.nodeType !== 8 || M.data !== "]")) throw ke(), a;
|
|
1705
|
+
We();
|
|
1706
1706
|
}, c);
|
|
1707
|
-
var u = /* @__PURE__ */ new Set(),
|
|
1707
|
+
var u = /* @__PURE__ */ new Set(), f = (e) => {
|
|
1708
1708
|
for (var n = 0; n < e.length; n++) {
|
|
1709
1709
|
var r = e[n];
|
|
1710
1710
|
if (!u.has(r)) {
|
|
1711
1711
|
u.add(r);
|
|
1712
|
-
var i =
|
|
1712
|
+
var i = Cr(r);
|
|
1713
1713
|
for (let e of [t, document]) {
|
|
1714
|
-
var a =
|
|
1715
|
-
a === void 0 && (a = /* @__PURE__ */ new Map(),
|
|
1714
|
+
var a = Dr.get(e);
|
|
1715
|
+
a === void 0 && (a = /* @__PURE__ */ new Map(), Dr.set(e, a));
|
|
1716
1716
|
var o = a.get(r);
|
|
1717
|
-
o === void 0 ? (e.addEventListener(r,
|
|
1717
|
+
o === void 0 ? (e.addEventListener(r, pr, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
|
|
1718
1718
|
}
|
|
1719
1719
|
}
|
|
1720
1720
|
}
|
|
1721
1721
|
};
|
|
1722
|
-
return d(
|
|
1722
|
+
return f(d(or)), sr.add(f), () => {
|
|
1723
1723
|
for (var e of u) for (let n of [t, document]) {
|
|
1724
|
-
var r =
|
|
1725
|
-
--i == 0 ? (n.removeEventListener(e,
|
|
1724
|
+
var r = Dr.get(n), i = r.get(e);
|
|
1725
|
+
--i == 0 ? (n.removeEventListener(e, pr), r.delete(e), r.size === 0 && Dr.delete(n)) : r.set(e, i);
|
|
1726
1726
|
}
|
|
1727
|
-
|
|
1727
|
+
sr.delete(f), s !== n && s.parentNode?.removeChild(s);
|
|
1728
1728
|
};
|
|
1729
1729
|
});
|
|
1730
|
-
return
|
|
1730
|
+
return kr.set(l, u), l;
|
|
1731
1731
|
}
|
|
1732
|
-
var
|
|
1733
|
-
function
|
|
1734
|
-
let n =
|
|
1735
|
-
return n ? (
|
|
1732
|
+
var kr = /* @__PURE__ */ new WeakMap();
|
|
1733
|
+
function Ar(e, t) {
|
|
1734
|
+
let n = kr.get(e);
|
|
1735
|
+
return n ? (kr.delete(e), n(t)) : Promise.resolve();
|
|
1736
1736
|
}
|
|
1737
1737
|
//#endregion
|
|
1738
1738
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/blocks/branches.js
|
|
1739
|
-
var
|
|
1739
|
+
var jr = class {
|
|
1740
1740
|
anchor;
|
|
1741
1741
|
#e = /* @__PURE__ */ new Map();
|
|
1742
1742
|
#t = /* @__PURE__ */ new Map();
|
|
@@ -1749,10 +1749,10 @@ var Mr = class {
|
|
|
1749
1749
|
#a = (e) => {
|
|
1750
1750
|
if (this.#e.has(e)) {
|
|
1751
1751
|
var t = this.#e.get(e), n = this.#t.get(t);
|
|
1752
|
-
if (n)
|
|
1752
|
+
if (n) Pn(n), this.#r.delete(t);
|
|
1753
1753
|
else {
|
|
1754
1754
|
var r = this.#n.get(t);
|
|
1755
|
-
r && (
|
|
1755
|
+
r && (Pn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
|
|
1756
1756
|
}
|
|
1757
1757
|
for (let [t, n] of this.#e) {
|
|
1758
1758
|
if (this.#e.delete(t), t === e) break;
|
|
@@ -1764,14 +1764,14 @@ var Mr = class {
|
|
|
1764
1764
|
let i = () => {
|
|
1765
1765
|
if (Array.from(this.#e.values()).includes(e)) {
|
|
1766
1766
|
var t = document.createDocumentFragment();
|
|
1767
|
-
|
|
1767
|
+
In(r, t), t.append(V()), this.#n.set(e, {
|
|
1768
1768
|
effect: r,
|
|
1769
1769
|
fragment: t
|
|
1770
1770
|
});
|
|
1771
1771
|
} else W(r);
|
|
1772
1772
|
this.#r.delete(e), this.#t.delete(e);
|
|
1773
1773
|
};
|
|
1774
|
-
this.#i || !n ? (this.#r.add(e),
|
|
1774
|
+
this.#i || !n ? (this.#r.add(e), Mn(r, i, !1)) : i();
|
|
1775
1775
|
}
|
|
1776
1776
|
}
|
|
1777
1777
|
};
|
|
@@ -1781,7 +1781,7 @@ var Mr = class {
|
|
|
1781
1781
|
for (let [e, n] of this.#n) t.includes(e) || (W(n.effect), this.#n.delete(e));
|
|
1782
1782
|
};
|
|
1783
1783
|
ensure(e, t) {
|
|
1784
|
-
var n = I, r =
|
|
1784
|
+
var n = I, r = ln();
|
|
1785
1785
|
if (t && !this.#t.has(e) && !this.#n.has(e)) if (r) {
|
|
1786
1786
|
var i = document.createDocumentFragment(), a = V();
|
|
1787
1787
|
i.append(a), this.#n.set(e, {
|
|
@@ -1798,22 +1798,22 @@ var Mr = class {
|
|
|
1798
1798
|
};
|
|
1799
1799
|
//#endregion
|
|
1800
1800
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/blocks/if.js
|
|
1801
|
-
function
|
|
1801
|
+
function Mr(e, t, n = !1) {
|
|
1802
1802
|
var r;
|
|
1803
|
-
j && (r = M,
|
|
1804
|
-
var i = new
|
|
1803
|
+
j && (r = M, Me());
|
|
1804
|
+
var i = new jr(e), a = n ? O : 0;
|
|
1805
1805
|
function o(e, t) {
|
|
1806
1806
|
if (j) {
|
|
1807
|
-
var n =
|
|
1807
|
+
var n = Ie(r);
|
|
1808
1808
|
if (e !== parseInt(n.substring(1))) {
|
|
1809
|
-
var a =
|
|
1810
|
-
N(a), i.anchor = a,
|
|
1809
|
+
var a = Fe();
|
|
1810
|
+
N(a), i.anchor = a, je(!1), i.ensure(e, t), je(!0);
|
|
1811
1811
|
return;
|
|
1812
1812
|
}
|
|
1813
1813
|
}
|
|
1814
1814
|
i.ensure(e, t);
|
|
1815
1815
|
}
|
|
1816
|
-
|
|
1816
|
+
En(() => {
|
|
1817
1817
|
var e = !1;
|
|
1818
1818
|
t((t, n = 0) => {
|
|
1819
1819
|
e = !0, o(n, t);
|
|
@@ -1822,14 +1822,14 @@ function Nr(e, t, n = !1) {
|
|
|
1822
1822
|
}
|
|
1823
1823
|
//#endregion
|
|
1824
1824
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/blocks/each.js
|
|
1825
|
-
function
|
|
1825
|
+
function Nr(e, t, n) {
|
|
1826
1826
|
for (var r = [], i = t.length, a, o = t.length, s = 0; s < i; s++) {
|
|
1827
1827
|
let n = t[s];
|
|
1828
|
-
|
|
1828
|
+
Mn(n, () => {
|
|
1829
1829
|
if (a) {
|
|
1830
1830
|
if (a.pending.delete(n), a.done.add(n), a.pending.size === 0) {
|
|
1831
1831
|
var t = e.outrogroups;
|
|
1832
|
-
|
|
1832
|
+
Pr(e, d(a.done)), t.delete(a), t.size === 0 && (e.outrogroups = null);
|
|
1833
1833
|
}
|
|
1834
1834
|
} else --o;
|
|
1835
1835
|
}, !1);
|
|
@@ -1838,15 +1838,15 @@ function Pr(e, t, n) {
|
|
|
1838
1838
|
var c = r.length === 0 && n !== null;
|
|
1839
1839
|
if (c) {
|
|
1840
1840
|
var l = n, u = l.parentNode;
|
|
1841
|
-
|
|
1841
|
+
cn(u), u.append(l), e.items.clear();
|
|
1842
1842
|
}
|
|
1843
|
-
|
|
1843
|
+
Pr(e, t, !c);
|
|
1844
1844
|
} else a = {
|
|
1845
1845
|
pending: new Set(t),
|
|
1846
1846
|
done: /* @__PURE__ */ new Set()
|
|
1847
1847
|
}, (e.outrogroups ??= /* @__PURE__ */ new Set()).add(a);
|
|
1848
1848
|
}
|
|
1849
|
-
function
|
|
1849
|
+
function Pr(e, t, n = !0) {
|
|
1850
1850
|
var r;
|
|
1851
1851
|
if (e.pending.size > 0) {
|
|
1852
1852
|
r = /* @__PURE__ */ new Set();
|
|
@@ -1854,23 +1854,23 @@ function Fr(e, t, n = !0) {
|
|
|
1854
1854
|
}
|
|
1855
1855
|
for (var i = 0; i < t.length; i++) {
|
|
1856
1856
|
var a = t[i];
|
|
1857
|
-
r?.has(a) ? (a.f |=
|
|
1857
|
+
r?.has(a) ? (a.f |= ie, In(a, document.createDocumentFragment())) : W(t[i], n);
|
|
1858
1858
|
}
|
|
1859
1859
|
}
|
|
1860
|
-
var
|
|
1861
|
-
function
|
|
1860
|
+
var Fr;
|
|
1861
|
+
function Ir(e, t, n, r, i, a = null) {
|
|
1862
1862
|
var o = e, s = /* @__PURE__ */ new Map();
|
|
1863
1863
|
if (t & 4) {
|
|
1864
|
-
var
|
|
1865
|
-
o = j ? N(/* @__PURE__ */ H(
|
|
1864
|
+
var l = e;
|
|
1865
|
+
o = j ? N(/* @__PURE__ */ H(l)) : l.appendChild(V());
|
|
1866
1866
|
}
|
|
1867
|
-
j &&
|
|
1868
|
-
var u = null,
|
|
1867
|
+
j && Me();
|
|
1868
|
+
var u = null, f = /* @__PURE__ */ It(() => {
|
|
1869
1869
|
var e = n();
|
|
1870
|
-
return
|
|
1870
|
+
return c(e) ? e : e == null ? [] : d(e);
|
|
1871
1871
|
}), p, m = /* @__PURE__ */ new Map(), h = !0;
|
|
1872
1872
|
function g(e) {
|
|
1873
|
-
v.effect.f & 16384 || (v.pending.delete(e), v.fallback = u,
|
|
1873
|
+
v.effect.f & 16384 || (v.pending.delete(e), v.fallback = u, Rr(v, p, o, t, r), u !== null && (p.length === 0 ? u.f & 33554432 ? (u.f ^= ie, Br(u, null, o)) : Pn(u) : Mn(u, () => {
|
|
1874
1874
|
u = null;
|
|
1875
1875
|
})));
|
|
1876
1876
|
}
|
|
@@ -1878,21 +1878,21 @@ function Lr(e, t, n, r, i, a = null) {
|
|
|
1878
1878
|
v.pending.delete(e);
|
|
1879
1879
|
}
|
|
1880
1880
|
var v = {
|
|
1881
|
-
effect:
|
|
1882
|
-
p = Q(
|
|
1881
|
+
effect: En(() => {
|
|
1882
|
+
p = Q(f);
|
|
1883
1883
|
var e = p.length;
|
|
1884
1884
|
let c = !1;
|
|
1885
|
-
j &&
|
|
1886
|
-
for (var l = /* @__PURE__ */ new Set(),
|
|
1887
|
-
j && M.nodeType === 8 && M.data === "]" && (o = M, c = !0,
|
|
1885
|
+
j && Ie(o) === "[!" != (e === 0) && (o = Fe(), N(o), je(!1), c = !0);
|
|
1886
|
+
for (var l = /* @__PURE__ */ new Set(), d = I, v = ln(), y = 0; y < e; y += 1) {
|
|
1887
|
+
j && M.nodeType === 8 && M.data === "]" && (o = M, c = !0, je(!1));
|
|
1888
1888
|
var b = p[y], x = r(b, y), S = h ? null : s.get(x);
|
|
1889
|
-
S ? (S.v &&
|
|
1889
|
+
S ? (S.v && qt(S.v, b), S.i && qt(S.i, y), v && d.unskip_effect(S.e)) : (S = zr(s, h ? o : Fr ??= V(), b, x, y, i, t, n), h || (S.e.f |= ie), s.set(x, S)), l.add(x);
|
|
1890
1890
|
}
|
|
1891
|
-
if (e === 0 && a && !u && (h ? u = U(() => a(o)) : (u = U(() => a(
|
|
1892
|
-
for (let [e, t] of s) l.has(e) ||
|
|
1893
|
-
|
|
1894
|
-
} else g(
|
|
1895
|
-
c &&
|
|
1891
|
+
if (e === 0 && a && !u && (h ? u = U(() => a(o)) : (u = U(() => a(Fr ??= V())), u.f |= ie)), e > l.size && _e("", "", ""), j && e > 0 && N(Fe()), !h) if (m.set(d, l), v) {
|
|
1892
|
+
for (let [e, t] of s) l.has(e) || d.skip_effect(t.e);
|
|
1893
|
+
d.oncommit(g), d.ondiscard(_);
|
|
1894
|
+
} else g(d);
|
|
1895
|
+
c && je(!0), Q(f);
|
|
1896
1896
|
}),
|
|
1897
1897
|
flags: t,
|
|
1898
1898
|
items: s,
|
|
@@ -1902,19 +1902,19 @@ function Lr(e, t, n, r, i, a = null) {
|
|
|
1902
1902
|
};
|
|
1903
1903
|
h = !1, j && (o = M);
|
|
1904
1904
|
}
|
|
1905
|
-
function
|
|
1905
|
+
function Lr(e) {
|
|
1906
1906
|
for (; e !== null && !(e.f & 32);) e = e.next;
|
|
1907
1907
|
return e;
|
|
1908
1908
|
}
|
|
1909
|
-
function
|
|
1910
|
-
var a = (r & 8) != 0, o = t.length, s = e.items, c =
|
|
1911
|
-
if (a) for (v = 0; v < o; v += 1) h = t[v], g = i(h, v), _ = s.get(g).e, _.f & 33554432 || (_.nodes?.a?.measure(), (
|
|
1909
|
+
function Rr(e, t, n, r, i) {
|
|
1910
|
+
var a = (r & 8) != 0, o = t.length, s = e.items, c = Lr(e.effect.first), l, u = null, f, p = [], m = [], h, g, _, v;
|
|
1911
|
+
if (a) for (v = 0; v < o; v += 1) h = t[v], g = i(h, v), _ = s.get(g).e, _.f & 33554432 || (_.nodes?.a?.measure(), (f ??= /* @__PURE__ */ new Set()).add(_));
|
|
1912
1912
|
for (v = 0; v < o; v += 1) {
|
|
1913
1913
|
if (h = t[v], g = i(h, v), _ = s.get(g).e, e.outrogroups !== null) for (let t of e.outrogroups) t.pending.delete(_), t.done.delete(_);
|
|
1914
|
-
if (_.f & 8192 && (
|
|
1914
|
+
if (_.f & 8192 && (Pn(_), a && (_.nodes?.a?.unfix(), (f ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) if (_.f ^= ie, _ === c) Br(_, null, n);
|
|
1915
1915
|
else {
|
|
1916
1916
|
var y = u ? u.next : c;
|
|
1917
|
-
_ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev),
|
|
1917
|
+
_ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev), Vr(e, u, _), Vr(e, _, y), Br(_, y, n), u = _, p = [], m = [], c = Lr(u.next);
|
|
1918
1918
|
continue;
|
|
1919
1919
|
}
|
|
1920
1920
|
if (_ !== c) {
|
|
@@ -1922,42 +1922,42 @@ function zr(e, t, n, r, i) {
|
|
|
1922
1922
|
if (p.length < m.length) {
|
|
1923
1923
|
var b = m[0], x;
|
|
1924
1924
|
u = b.prev;
|
|
1925
|
-
var S = p[0],
|
|
1926
|
-
for (x = 0; x < p.length; x += 1)
|
|
1925
|
+
var S = p[0], C = p[p.length - 1];
|
|
1926
|
+
for (x = 0; x < p.length; x += 1) Br(p[x], b, n);
|
|
1927
1927
|
for (x = 0; x < m.length; x += 1) l.delete(m[x]);
|
|
1928
|
-
|
|
1929
|
-
} else l.delete(_),
|
|
1928
|
+
Vr(e, S.prev, C.next), Vr(e, u, S), Vr(e, C, b), c = b, u = C, --v, p = [], m = [];
|
|
1929
|
+
} else l.delete(_), Br(_, c, n), Vr(e, _.prev, _.next), Vr(e, _, u === null ? e.effect.first : u.next), Vr(e, u, _), u = _;
|
|
1930
1930
|
continue;
|
|
1931
1931
|
}
|
|
1932
|
-
for (p = [], m = []; c !== null && c !== _;) (l ??= /* @__PURE__ */ new Set()).add(c), m.push(c), c =
|
|
1932
|
+
for (p = [], m = []; c !== null && c !== _;) (l ??= /* @__PURE__ */ new Set()).add(c), m.push(c), c = Lr(c.next);
|
|
1933
1933
|
if (c === null) continue;
|
|
1934
1934
|
}
|
|
1935
|
-
_.f & 33554432 || p.push(_), u = _, c =
|
|
1935
|
+
_.f & 33554432 || p.push(_), u = _, c = Lr(_.next);
|
|
1936
1936
|
}
|
|
1937
1937
|
if (e.outrogroups !== null) {
|
|
1938
|
-
for (let t of e.outrogroups) t.pending.size === 0 && (
|
|
1938
|
+
for (let t of e.outrogroups) t.pending.size === 0 && (Pr(e, d(t.done)), e.outrogroups?.delete(t));
|
|
1939
1939
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
1940
1940
|
}
|
|
1941
1941
|
if (c !== null || l !== void 0) {
|
|
1942
|
-
var
|
|
1943
|
-
if (l !== void 0) for (_ of l) _.f & 8192 ||
|
|
1944
|
-
for (; c !== null;) !(c.f & 8192) && c !== e.fallback &&
|
|
1945
|
-
var
|
|
1946
|
-
if (
|
|
1947
|
-
var
|
|
1942
|
+
var w = [];
|
|
1943
|
+
if (l !== void 0) for (_ of l) _.f & 8192 || w.push(_);
|
|
1944
|
+
for (; c !== null;) !(c.f & 8192) && c !== e.fallback && w.push(c), c = Lr(c.next);
|
|
1945
|
+
var T = w.length;
|
|
1946
|
+
if (T > 0) {
|
|
1947
|
+
var E = r & 4 && o === 0 ? n : null;
|
|
1948
1948
|
if (a) {
|
|
1949
|
-
for (v = 0; v <
|
|
1950
|
-
for (v = 0; v <
|
|
1949
|
+
for (v = 0; v < T; v += 1) w[v].nodes?.a?.measure();
|
|
1950
|
+
for (v = 0; v < T; v += 1) w[v].nodes?.a?.fix();
|
|
1951
1951
|
}
|
|
1952
|
-
|
|
1952
|
+
Nr(e, w, E);
|
|
1953
1953
|
}
|
|
1954
1954
|
}
|
|
1955
|
-
a &&
|
|
1956
|
-
if (
|
|
1955
|
+
a && Je(() => {
|
|
1956
|
+
if (f !== void 0) for (_ of f) _.nodes?.a?.apply();
|
|
1957
1957
|
});
|
|
1958
1958
|
}
|
|
1959
|
-
function
|
|
1960
|
-
var c = o & 1 ? o & 16 ?
|
|
1959
|
+
function zr(e, t, n, r, i, a, o, s) {
|
|
1960
|
+
var c = o & 1 ? o & 16 ? Gt(n) : /* @__PURE__ */ Kt(n, !1, !1) : null, l = o & 2 ? Gt(i) : null;
|
|
1961
1961
|
return {
|
|
1962
1962
|
v: c,
|
|
1963
1963
|
i: l,
|
|
@@ -1966,47 +1966,47 @@ function Br(e, t, n, r, i, a, o, s) {
|
|
|
1966
1966
|
}))
|
|
1967
1967
|
};
|
|
1968
1968
|
}
|
|
1969
|
-
function
|
|
1969
|
+
function Br(e, t, n) {
|
|
1970
1970
|
if (e.nodes) for (var r = e.nodes.start, i = e.nodes.end, a = t && !(t.f & 33554432) ? t.nodes.start : n; r !== null;) {
|
|
1971
|
-
var o = /* @__PURE__ */
|
|
1971
|
+
var o = /* @__PURE__ */ rn(r);
|
|
1972
1972
|
if (a.before(r), r === i) return;
|
|
1973
1973
|
r = o;
|
|
1974
1974
|
}
|
|
1975
1975
|
}
|
|
1976
|
-
function
|
|
1976
|
+
function Vr(e, t, n) {
|
|
1977
1977
|
t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
|
|
1978
1978
|
}
|
|
1979
1979
|
//#endregion
|
|
1980
1980
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/css.js
|
|
1981
|
-
function
|
|
1982
|
-
|
|
1981
|
+
function Hr(e, t) {
|
|
1982
|
+
Sn(() => {
|
|
1983
1983
|
var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
|
|
1984
1984
|
if (!r.querySelector("#" + t.hash)) {
|
|
1985
|
-
let e =
|
|
1985
|
+
let e = un("style");
|
|
1986
1986
|
e.id = t.hash, e.textContent = t.code, r.appendChild(e);
|
|
1987
1987
|
}
|
|
1988
1988
|
});
|
|
1989
1989
|
}
|
|
1990
1990
|
//#endregion
|
|
1991
1991
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/shared/attributes.js
|
|
1992
|
-
var
|
|
1993
|
-
function
|
|
1992
|
+
var Ur = [..." \n\r\f\xA0\v"];
|
|
1993
|
+
function Wr(e, t, n) {
|
|
1994
1994
|
var r = e == null ? "" : "" + e;
|
|
1995
1995
|
if (t && (r = r ? r + " " + t : t), n) {
|
|
1996
1996
|
for (var i of Object.keys(n)) if (n[i]) r = r ? r + " " + i : i;
|
|
1997
1997
|
else if (r.length) for (var a = i.length, o = 0; (o = r.indexOf(i, o)) >= 0;) {
|
|
1998
1998
|
var s = o + a;
|
|
1999
|
-
(o === 0 ||
|
|
1999
|
+
(o === 0 || Ur.includes(r[o - 1])) && (s === r.length || Ur.includes(r[s])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(s + 1) : o = s;
|
|
2000
2000
|
}
|
|
2001
2001
|
}
|
|
2002
2002
|
return r === "" ? null : r;
|
|
2003
2003
|
}
|
|
2004
2004
|
//#endregion
|
|
2005
2005
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/class.js
|
|
2006
|
-
function
|
|
2006
|
+
function Gr(e, t, n, r, i, a) {
|
|
2007
2007
|
var o = e[fe];
|
|
2008
2008
|
if (j || o !== n || o === void 0) {
|
|
2009
|
-
var s =
|
|
2009
|
+
var s = Wr(n, r, a);
|
|
2010
2010
|
(!j || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[fe] = n;
|
|
2011
2011
|
} else if (a && i !== a) for (var c in a) {
|
|
2012
2012
|
var l = !!a[c];
|
|
@@ -2016,46 +2016,46 @@ function Kr(e, t, n, r, i, a) {
|
|
|
2016
2016
|
}
|
|
2017
2017
|
//#endregion
|
|
2018
2018
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/attributes.js
|
|
2019
|
-
var
|
|
2020
|
-
function
|
|
2021
|
-
var i =
|
|
2022
|
-
j && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName ===
|
|
2023
|
-
}
|
|
2024
|
-
function
|
|
2025
|
-
return e[
|
|
2026
|
-
[
|
|
2027
|
-
[
|
|
2019
|
+
var Kr = Symbol("is custom element"), qr = Symbol("is html"), Jr = he ? "link" : "LINK";
|
|
2020
|
+
function Yr(e, t, n, r) {
|
|
2021
|
+
var i = Xr(e);
|
|
2022
|
+
j && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Jr) || i[t] !== (i[t] = n) && (t === "loading" && (e[de] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && Qr(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
|
|
2023
|
+
}
|
|
2024
|
+
function Xr(e) {
|
|
2025
|
+
return e[k] ??= {
|
|
2026
|
+
[Kr]: e.nodeName.includes("-"),
|
|
2027
|
+
[qr]: e.namespaceURI === s
|
|
2028
2028
|
};
|
|
2029
2029
|
}
|
|
2030
|
-
var
|
|
2031
|
-
function
|
|
2032
|
-
var t = e.getAttribute("is") || e.nodeName, n =
|
|
2030
|
+
var Zr = /* @__PURE__ */ new Map();
|
|
2031
|
+
function Qr(e) {
|
|
2032
|
+
var t = e.getAttribute("is") || e.nodeName, n = Zr.get(t);
|
|
2033
2033
|
if (n) return n;
|
|
2034
|
-
|
|
2034
|
+
Zr.set(t, n = []);
|
|
2035
2035
|
for (var r, i = e, a = Element.prototype; a !== i;) {
|
|
2036
|
-
for (var o in r =
|
|
2037
|
-
i =
|
|
2036
|
+
for (var o in r = h(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.push(o);
|
|
2037
|
+
i = v(i);
|
|
2038
2038
|
}
|
|
2039
2039
|
return n;
|
|
2040
2040
|
}
|
|
2041
2041
|
//#endregion
|
|
2042
2042
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
|
|
2043
|
-
function
|
|
2044
|
-
return e === t || e?.[
|
|
2043
|
+
function $r(e, t) {
|
|
2044
|
+
return e === t || e?.[le] === t;
|
|
2045
2045
|
}
|
|
2046
|
-
function
|
|
2046
|
+
function ei(e = {}, t, n, r) {
|
|
2047
2047
|
var i = P.r, a = J;
|
|
2048
|
-
return
|
|
2048
|
+
return Sn(() => {
|
|
2049
2049
|
var o, s;
|
|
2050
|
-
return
|
|
2051
|
-
o = s, s = r?.() || [],
|
|
2052
|
-
|
|
2050
|
+
return wn(() => {
|
|
2051
|
+
o = s, s = r?.() || [], ir(() => {
|
|
2052
|
+
$r(n(...s), e) || (t(e, ...s), o && $r(n(...o), e) && t(null, ...o));
|
|
2053
2053
|
});
|
|
2054
2054
|
}), () => {
|
|
2055
2055
|
let r = a;
|
|
2056
2056
|
for (; r !== i && r.parent !== null && r.parent.f & 33554432;) r = r.parent;
|
|
2057
2057
|
let o = () => {
|
|
2058
|
-
s &&
|
|
2058
|
+
s && $r(n(...s), e) && t(null, ...s);
|
|
2059
2059
|
}, c = r.teardown;
|
|
2060
2060
|
r.teardown = () => {
|
|
2061
2061
|
o(), c?.();
|
|
@@ -2065,15 +2065,15 @@ function ti(e = {}, t, n, r) {
|
|
|
2065
2065
|
}
|
|
2066
2066
|
//#endregion
|
|
2067
2067
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/props.js
|
|
2068
|
-
function
|
|
2069
|
-
var i = !
|
|
2068
|
+
function ti(e, t, n, r) {
|
|
2069
|
+
var i = !Ve || (n & 2) != 0, a = (n & 8) != 0, o = (n & 16) != 0, s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ Nt(r), Q(l)) : (c && (c = !1, s = o ? ir(r) : r), s);
|
|
2070
2070
|
let d;
|
|
2071
2071
|
if (a) {
|
|
2072
|
-
var f =
|
|
2073
|
-
d =
|
|
2072
|
+
var f = le in e || ue in e;
|
|
2073
|
+
d = m(e, t)?.set ?? (f && t in e ? (n) => e[t] = n : void 0);
|
|
2074
2074
|
}
|
|
2075
|
-
var p,
|
|
2076
|
-
a ? [p,
|
|
2075
|
+
var p, h = !1;
|
|
2076
|
+
a ? [p, h] = it(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i && Ce(t), d(p)));
|
|
2077
2077
|
var g = i ? () => {
|
|
2078
2078
|
var n = e[t];
|
|
2079
2079
|
return n === void 0 ? u() : (c = !0, n);
|
|
@@ -2085,31 +2085,31 @@ function ni(e, t, n, r) {
|
|
|
2085
2085
|
if (d) {
|
|
2086
2086
|
var _ = e.$$legacy;
|
|
2087
2087
|
return (function(e, t) {
|
|
2088
|
-
return arguments.length > 0 ? ((!i || !t || _ ||
|
|
2088
|
+
return arguments.length > 0 ? ((!i || !t || _ || h) && d(t ? g() : e), e) : g();
|
|
2089
2089
|
});
|
|
2090
2090
|
}
|
|
2091
|
-
var v = !1, y = (n & 1 ? Nt :
|
|
2091
|
+
var v = !1, y = (n & 1 ? Nt : It)(() => (v = !1, g()));
|
|
2092
2092
|
a && Q(y);
|
|
2093
2093
|
var b = J;
|
|
2094
2094
|
return (function(e, t) {
|
|
2095
2095
|
if (arguments.length > 0) {
|
|
2096
|
-
let n = t ? Q(y) : i && a ?
|
|
2096
|
+
let n = t ? Q(y) : i && a ? Zt(e) : e;
|
|
2097
2097
|
return B(y, n), v = !0, s !== void 0 && (s = n), e;
|
|
2098
2098
|
}
|
|
2099
|
-
return
|
|
2099
|
+
return zn && v || b.f & 16384 ? y.v : Q(y);
|
|
2100
2100
|
});
|
|
2101
2101
|
}
|
|
2102
2102
|
//#endregion
|
|
2103
2103
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/legacy/legacy-client.js
|
|
2104
|
-
function
|
|
2105
|
-
return new
|
|
2104
|
+
function ni(e) {
|
|
2105
|
+
return new ri(e);
|
|
2106
2106
|
}
|
|
2107
|
-
var
|
|
2107
|
+
var ri = class {
|
|
2108
2108
|
#e;
|
|
2109
2109
|
#t;
|
|
2110
2110
|
constructor(e) {
|
|
2111
2111
|
var t = /* @__PURE__ */ new Map(), n = (e, n) => {
|
|
2112
|
-
var r = /* @__PURE__ */
|
|
2112
|
+
var r = /* @__PURE__ */ Kt(n, !1, !1);
|
|
2113
2113
|
return t.set(e, r), r;
|
|
2114
2114
|
};
|
|
2115
2115
|
let r = new Proxy({
|
|
@@ -2120,13 +2120,13 @@ var ii = class {
|
|
|
2120
2120
|
return Q(t.get(r) ?? n(r, Reflect.get(e, r)));
|
|
2121
2121
|
},
|
|
2122
2122
|
has(e, r) {
|
|
2123
|
-
return r ===
|
|
2123
|
+
return r === ue ? !0 : (Q(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
|
|
2124
2124
|
},
|
|
2125
2125
|
set(e, r, i) {
|
|
2126
2126
|
return B(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
|
|
2127
2127
|
}
|
|
2128
2128
|
});
|
|
2129
|
-
this.#t = (e.hydrate ?
|
|
2129
|
+
this.#t = (e.hydrate ? Er : Tr)(e.component, {
|
|
2130
2130
|
target: e.target,
|
|
2131
2131
|
anchor: e.anchor,
|
|
2132
2132
|
props: r,
|
|
@@ -2134,8 +2134,8 @@ var ii = class {
|
|
|
2134
2134
|
intro: e.intro ?? !1,
|
|
2135
2135
|
recover: e.recover,
|
|
2136
2136
|
transformError: e.transformError
|
|
2137
|
-
}), !
|
|
2138
|
-
for (let e of Object.keys(this.#t)) e === "$set" || e === "$destroy" || e === "$on" ||
|
|
2137
|
+
}), !Be && (!e?.props?.$$host || e.sync === !1) && gt(), this.#e = r.$$events;
|
|
2138
|
+
for (let e of Object.keys(this.#t)) e === "$set" || e === "$destroy" || e === "$on" || p(this, e, {
|
|
2139
2139
|
get() {
|
|
2140
2140
|
return this.#t[e];
|
|
2141
2141
|
},
|
|
@@ -2147,7 +2147,7 @@ var ii = class {
|
|
|
2147
2147
|
this.#t.$set = (e) => {
|
|
2148
2148
|
Object.assign(r, e);
|
|
2149
2149
|
}, this.#t.$destroy = () => {
|
|
2150
|
-
|
|
2150
|
+
Ar(this.#t);
|
|
2151
2151
|
};
|
|
2152
2152
|
}
|
|
2153
2153
|
$set(e) {
|
|
@@ -2163,8 +2163,8 @@ var ii = class {
|
|
|
2163
2163
|
$destroy() {
|
|
2164
2164
|
this.#t.$destroy();
|
|
2165
2165
|
}
|
|
2166
|
-
},
|
|
2167
|
-
typeof HTMLElement == "function" && (
|
|
2166
|
+
}, ii;
|
|
2167
|
+
typeof HTMLElement == "function" && (ii = class extends HTMLElement {
|
|
2168
2168
|
$$ctor;
|
|
2169
2169
|
$$s;
|
|
2170
2170
|
$$c;
|
|
@@ -2197,18 +2197,18 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
2197
2197
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2198
2198
|
function e(e) {
|
|
2199
2199
|
return (t) => {
|
|
2200
|
-
let n =
|
|
2200
|
+
let n = un("slot");
|
|
2201
2201
|
e !== "default" && (n.name = e), $(t, n);
|
|
2202
2202
|
};
|
|
2203
2203
|
}
|
|
2204
|
-
let t = {}, n =
|
|
2204
|
+
let t = {}, n = oi(this);
|
|
2205
2205
|
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));
|
|
2206
2206
|
for (let e of this.attributes) {
|
|
2207
2207
|
let t = this.$$g_p(e.name);
|
|
2208
|
-
t in this.$$d || (this.$$d[t] =
|
|
2208
|
+
t in this.$$d || (this.$$d[t] = ai(t, e.value, this.$$p_d, "toProp"));
|
|
2209
2209
|
}
|
|
2210
2210
|
for (let e in this.$$p_d) !(e in this.$$d) && this[e] !== void 0 && (this.$$d[e] = this[e], delete this[e]);
|
|
2211
|
-
this.$$c =
|
|
2211
|
+
this.$$c = ni({
|
|
2212
2212
|
component: this.$$ctor,
|
|
2213
2213
|
target: this.$$shadowRoot || this,
|
|
2214
2214
|
props: {
|
|
@@ -2216,13 +2216,13 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
2216
2216
|
$$slots: t,
|
|
2217
2217
|
$$host: this
|
|
2218
2218
|
}
|
|
2219
|
-
}), this.$$me =
|
|
2220
|
-
|
|
2219
|
+
}), this.$$me = bn(() => {
|
|
2220
|
+
wn(() => {
|
|
2221
2221
|
this.$$r = !0;
|
|
2222
|
-
for (let e of
|
|
2222
|
+
for (let e of f(this.$$c)) {
|
|
2223
2223
|
if (!this.$$p_d[e]?.reflect) continue;
|
|
2224
2224
|
this.$$d[e] = this.$$c[e];
|
|
2225
|
-
let t =
|
|
2225
|
+
let t = ai(e, this.$$d[e], this.$$p_d, "toAttribute");
|
|
2226
2226
|
t == null ? this.removeAttribute(this.$$p_d[e].attribute || e) : this.setAttribute(this.$$p_d[e].attribute || e, t);
|
|
2227
2227
|
}
|
|
2228
2228
|
this.$$r = !1;
|
|
@@ -2236,7 +2236,7 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
2236
2236
|
}
|
|
2237
2237
|
}
|
|
2238
2238
|
attributeChangedCallback(e, t, n) {
|
|
2239
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
2239
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ai(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2240
2240
|
}
|
|
2241
2241
|
disconnectedCallback() {
|
|
2242
2242
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2244,10 +2244,10 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
2244
2244
|
});
|
|
2245
2245
|
}
|
|
2246
2246
|
$$g_p(e) {
|
|
2247
|
-
return
|
|
2247
|
+
return f(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
2248
2248
|
}
|
|
2249
2249
|
});
|
|
2250
|
-
function
|
|
2250
|
+
function ai(e, t, n, r) {
|
|
2251
2251
|
let i = n[e]?.type;
|
|
2252
2252
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
|
|
2253
2253
|
if (r === "toAttribute") switch (i) {
|
|
@@ -2265,79 +2265,92 @@ function oi(e, t, n, r) {
|
|
|
2265
2265
|
default: return t;
|
|
2266
2266
|
}
|
|
2267
2267
|
}
|
|
2268
|
-
function
|
|
2268
|
+
function oi(e) {
|
|
2269
2269
|
let t = {};
|
|
2270
2270
|
return e.childNodes.forEach((e) => {
|
|
2271
2271
|
t[e.slot || "default"] = !0;
|
|
2272
2272
|
}), t;
|
|
2273
2273
|
}
|
|
2274
|
-
function
|
|
2275
|
-
let o = class extends
|
|
2274
|
+
function si(e, t, n, r, i, a) {
|
|
2275
|
+
let o = class extends ii {
|
|
2276
2276
|
constructor() {
|
|
2277
2277
|
super(e, n, i), this.$$p_d = t;
|
|
2278
2278
|
}
|
|
2279
2279
|
static get observedAttributes() {
|
|
2280
|
-
return
|
|
2280
|
+
return f(t).map((e) => (t[e].attribute || e).toLowerCase());
|
|
2281
2281
|
}
|
|
2282
2282
|
};
|
|
2283
|
-
return
|
|
2284
|
-
|
|
2283
|
+
return f(t).forEach((e) => {
|
|
2284
|
+
p(o.prototype, e, {
|
|
2285
2285
|
get() {
|
|
2286
2286
|
return this.$$c && e in this.$$c ? this.$$c[e] : this.$$d[e];
|
|
2287
2287
|
},
|
|
2288
2288
|
set(n) {
|
|
2289
|
-
n =
|
|
2289
|
+
n = ai(e, n, t), this.$$d[e] = n;
|
|
2290
2290
|
var r = this.$$c;
|
|
2291
|
-
r && (
|
|
2291
|
+
r && (m(r, e)?.get ? r[e] = n : r.$set({ [e]: n }));
|
|
2292
2292
|
}
|
|
2293
2293
|
});
|
|
2294
2294
|
}), r.forEach((e) => {
|
|
2295
|
-
|
|
2295
|
+
p(o.prototype, e, { get() {
|
|
2296
2296
|
return this.$$c?.[e];
|
|
2297
2297
|
} });
|
|
2298
2298
|
}), a && (o = a(o)), e.element = o, o;
|
|
2299
2299
|
}
|
|
2300
2300
|
//#endregion
|
|
2301
2301
|
//#region tool-tts-inline.svelte
|
|
2302
|
-
var
|
|
2302
|
+
var ci = /* @__PURE__ */ br("<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" class=\"pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"><path d=\"M6 19h4V5H6v14zm8-14v14h4V5h-4z\"></path></svg>"), li = /* @__PURE__ */ br("<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" class=\"pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"><path d=\"M8 5v14l11-7z\"></path></svg>"), ui = /* @__PURE__ */ vr("<button type=\"button\"><!></button>"), di = /* @__PURE__ */ vr("<button type=\"button\" role=\"radio\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--speed svelte-18mzc0g\"><span class=\"pie-tool-tts-inline__speed-label svelte-18mzc0g\"> </span></button>"), fi = /* @__PURE__ */ vr("<div class=\"pie-tool-tts-inline__speed-group svelte-18mzc0g\" role=\"radiogroup\" aria-label=\"Playback speed\"></div>"), pi = /* @__PURE__ */ vr("<div role=\"toolbar\" aria-label=\"Reading controls\" tabindex=\"-1\"><!> <button type=\"button\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control svelte-18mzc0g\" aria-label=\"Rewind\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" class=\"pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"><path d=\"M20 18V6l-8.5 6L20 18zM10.5 18V6L2 12l8.5 6z\"></path></svg></button> <button type=\"button\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control svelte-18mzc0g\" aria-label=\"Fast-forward\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" class=\"pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"><path d=\"M4 18l8.5-6L4 6v12zm9.5 0L22 12l-8.5-6v12z\"></path></svg></button> <button type=\"button\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control svelte-18mzc0g\" aria-label=\"Stop reading\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" class=\"pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"><path d=\"M6 6h12v12H6z\"></path></svg></button></div>"), mi = /* @__PURE__ */ vr("<!> <!>", 1), hi = /* @__PURE__ */ vr("<div><!> <div class=\"pie-sr-only svelte-18mzc0g\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div></div>"), gi = {
|
|
2303
2303
|
hash: "svelte-18mzc0g",
|
|
2304
|
-
code: ".pie-tool-tts-inline.svelte-18mzc0g {position:relative;display:inline-flex;align-items:center;}.pie-tool-tts-inline--controls-row.svelte-18mzc0g {width:100%;justify-content:flex-end;}.pie-tool-tts-inline__trigger.svelte-18mzc0g {display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid var(--pie-button-border-color, var(--pie-button-border, var(--pie-border, #c6c6c6)));background-color:var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)));color:var(--pie-button-color, var(--pie-text, #333));border-radius:0.25rem;cursor:pointer;transition:background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;}.pie-tool-tts-inline__trigger.svelte-18mzc0g:hover:not(:disabled),\n .pie-tool-tts-inline__control.svelte-18mzc0g:hover:not(:disabled) {background-color:var(--pie-button-hover-background-color, var(--pie-button-hover-bg, var(--pie-secondary-background, #f2f4f8)));transform:translateY(-1px);box-shadow:0 2px 6px color-mix(in srgb, var(--pie-shadow, #000) 14%, transparent);}.pie-tool-tts-inline__trigger.svelte-18mzc0g:active:not(:disabled),\n .pie-tool-tts-inline__control.svelte-18mzc0g:active:not(:disabled) {transform:translateY(0);box-shadow:none;}.pie-tool-tts-inline__trigger.svelte-18mzc0g:focus-visible,\n .pie-tool-tts-inline__control.svelte-18mzc0g:focus-visible {outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;box-shadow:0 0 0 4px color-mix(in srgb, var(--pie-primary, #0066cc) 22%, transparent);}.pie-tool-tts-inline__trigger--active.svelte-18mzc0g {border-color:var(--pie-tool-trigger-active-border-color, var(--pie-primary, #1565c0));background-color:var(\n --pie-tool-trigger-active-background,\n color-mix(in srgb, var(--pie-primary, #1565c0) 10%, var(--pie-background, #fff))\n );color:var(--pie-tool-trigger-active-color, var(--pie-button-color, var(--pie-text, #333)));}.pie-tool-tts-inline__trigger--active.svelte-18mzc0g:hover:not(:disabled) {border-color:var(--pie-tool-trigger-active-border-color, var(--pie-primary, #1565c0));background-color:var(\n --pie-tool-trigger-active-background,\n color-mix(in srgb, var(--pie-primary, #1565c0) 10%, var(--pie-background, #fff))\n );color:var(--pie-tool-trigger-active-color, var(--pie-button-color, var(--pie-text, #333)));}.pie-tool-tts-inline__panel.svelte-18mzc0g {display:inline-flex;flex-wrap:
|
|
2304
|
+
code: ".pie-tool-tts-inline.svelte-18mzc0g {position:relative;display:inline-flex;align-items:center;}.pie-tool-tts-inline--controls-row.svelte-18mzc0g {width:100%;justify-content:flex-end;}.pie-tool-tts-inline__trigger.svelte-18mzc0g {display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid var(--pie-button-border-color, var(--pie-button-border, var(--pie-border, #c6c6c6)));background-color:var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)));color:var(--pie-button-color, var(--pie-text, #333));border-radius:0.25rem;cursor:pointer;transition:background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;}.pie-tool-tts-inline__trigger.svelte-18mzc0g:hover:not(:disabled),\n .pie-tool-tts-inline__control.svelte-18mzc0g:hover:not(:disabled) {background-color:var(--pie-button-hover-background-color, var(--pie-button-hover-bg, var(--pie-secondary-background, #f2f4f8)));transform:translateY(-1px);box-shadow:0 2px 6px color-mix(in srgb, var(--pie-shadow, #000) 14%, transparent);}.pie-tool-tts-inline__trigger.svelte-18mzc0g:active:not(:disabled),\n .pie-tool-tts-inline__control.svelte-18mzc0g:active:not(:disabled) {transform:translateY(0);box-shadow:none;}.pie-tool-tts-inline__trigger.svelte-18mzc0g:focus-visible,\n .pie-tool-tts-inline__control.svelte-18mzc0g:focus-visible {outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;box-shadow:0 0 0 4px color-mix(in srgb, var(--pie-primary, #0066cc) 22%, transparent);}.pie-tool-tts-inline__trigger--active.svelte-18mzc0g {border-color:var(--pie-tool-trigger-active-border-color, var(--pie-primary, #1565c0));background-color:var(\n --pie-tool-trigger-active-background,\n color-mix(in srgb, var(--pie-primary, #1565c0) 10%, var(--pie-background, #fff))\n );color:var(--pie-tool-trigger-active-color, var(--pie-button-color, var(--pie-text, #333)));}.pie-tool-tts-inline__trigger--active.svelte-18mzc0g:hover:not(:disabled) {border-color:var(--pie-tool-trigger-active-border-color, var(--pie-primary, #1565c0));background-color:var(\n --pie-tool-trigger-active-background,\n color-mix(in srgb, var(--pie-primary, #1565c0) 10%, var(--pie-background, #fff))\n );color:var(--pie-tool-trigger-active-color, var(--pie-button-color, var(--pie-text, #333)));}.pie-tool-tts-inline__panel.svelte-18mzc0g {display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:0.25rem;box-sizing:border-box;min-height:var(--pie-tts-controls-row-height, 2.875rem);max-width:min(100vw - 1rem, 32rem);padding:0.25rem 0.5rem;background:var(--pie-surface, var(--pie-background, #fff));border:1px solid var(--pie-border, #d0d0d0);border-radius:0.5rem;}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g {position:absolute;z-index:2;top:100%;right:0;left:auto;}.pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g {position:static;margin-right:0.5rem;}.pie-tool-tts-inline__panel--row.svelte-18mzc0g {position:absolute;z-index:2;top:100%;right:0;left:auto;}.pie-tool-tts-inline__control.svelte-18mzc0g {display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid var(--pie-button-border-color, var(--pie-button-border, var(--pie-border, #c6c6c6)));border-radius:0.25rem;background:var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)));color:var(--pie-button-color, var(--pie-text, #222));cursor:pointer;transition:background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;}.pie-tool-tts-inline__speed-group.svelte-18mzc0g {display:inline-flex;flex-wrap:wrap;align-items:center;gap:0.25rem;}.pie-tool-tts-inline__control--speed.svelte-18mzc0g {width:auto;min-width:2.75rem;height:2rem;padding:0 0.625rem;font-size:0.75rem;font-weight:500;letter-spacing:0;white-space:nowrap;}.pie-tool-tts-inline__control--speed[aria-checked='true'].svelte-18mzc0g {border-color:var(--pie-primary, #1565c0);background:color-mix(in srgb, var(--pie-primary, #1565c0) 14%, var(--pie-background, #fff));color:var(--pie-primary, #1565c0);font-weight:600;}.pie-tool-tts-inline__speed-label.svelte-18mzc0g {line-height:1.2;}.pie-tool-tts-inline__trigger.svelte-18mzc0g:disabled,\n .pie-tool-tts-inline__control.svelte-18mzc0g:disabled {cursor:not-allowed;opacity:0.6;}.pie-tool-tts-inline__trigger--sm.svelte-18mzc0g {width:1.75rem;height:1.75rem;}.pie-tool-tts-inline__trigger--sm.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g) {width:1rem;height:1rem;}.pie-tool-tts-inline__trigger--md.svelte-18mzc0g {width:2rem;height:2rem;}.pie-tool-tts-inline__trigger--md.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g) {width:1.25rem;height:1.25rem;}.pie-tool-tts-inline__trigger--lg.svelte-18mzc0g {width:2.5rem;height:2.5rem;}.pie-tool-tts-inline__trigger--lg.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g) {width:1.5rem;height:1.5rem;}.pie-tool-tts-inline__icon.svelte-18mzc0g {\n /* Default explicit size so control-button icons (rewind/fast-forward/stop)\n render in WebKit, which sizes an inline SVG that has only a viewBox (no\n width/height attributes) to 0. The play/pause trigger icon already works\n because the __trigger--sm/md/lg rules below set these dimensions; this\n gives the control-panel icons the same treatment. Keep the SVG's default\n inline display — forcing display:block makes WebKit collapse it to 0. */width:1.25rem;height:1.25rem;fill:currentColor;color:currentColor;}.pie-sr-only.svelte-18mzc0g {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}\n\n @media (prefers-reduced-motion: reduce) {.pie-tool-tts-inline__trigger.svelte-18mzc0g,\n .pie-tool-tts-inline__control.svelte-18mzc0g {transition:none !important;}\n }"
|
|
2305
2305
|
};
|
|
2306
|
-
function _i(
|
|
2307
|
-
|
|
2308
|
-
let
|
|
2309
|
-
function
|
|
2306
|
+
function _i(a, o) {
|
|
2307
|
+
Ue(o, !0), Hr(a, gi);
|
|
2308
|
+
let s = ti(o, "catalogId", 7, ""), c = ti(o, "language", 7, "en-US"), l = ti(o, "size", 7, "md"), u = ti(o, "speedOptions", 7, void 0), d = ti(o, "showSingleSpeedOption", 7, !1), f = ti(o, "layoutMode", 7, "expanding-row"), p = typeof window < "u", m = "__pie_tts_inline_active_owner__", h = "pie-tts-inline-owner-change", g = /* @__PURE__ */ z(void 0), _ = /* @__PURE__ */ z(void 0), v = /* @__PURE__ */ z(null), y = /* @__PURE__ */ z(null), b = /* @__PURE__ */ z(null), x = /* @__PURE__ */ R(() => Q(v)?.ttsService), S = /* @__PURE__ */ R(() => Q(v)?.highlightCoordinator), C = /* @__PURE__ */ R(() => Q(b)?.scopeElement || Q(y)?.scopeElement || null), w = /* @__PURE__ */ z(!1), T = /* @__PURE__ */ z(!1), E = /* @__PURE__ */ z(!1), D = /* @__PURE__ */ z(""), ee = /* @__PURE__ */ z(null), te = /* @__PURE__ */ z(null), O = /* @__PURE__ */ z(0), ne = /* @__PURE__ */ z(!1), re = /* @__PURE__ */ z(!1), ie = null, ae = /* @__PURE__ */ R(() => i(u())), oe = /* @__PURE__ */ R(() => ye(Q(ae))), se = /* @__PURE__ */ R(() => Q(ae).length > 1 || d() ? Q(ae) : []), ce = /* @__PURE__ */ R(() => Q(se).length), le = /* @__PURE__ */ R(() => Q(ce) + 3), ue = /* @__PURE__ */ R(() => Q(O) >= Q(le) ? 0 : Q(O)), de = /* @__PURE__ */ R(() => Q(ee) !== null && Q(te) === Q(oe) && Q(ae).some((e) => e.rate === Q(ee)) ? Q(ee) : be(Q(ae))), k = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, fe = `pie-tts-inline-${Math.random().toString(36).slice(2)}`, pe = `${k}-controls`;
|
|
2309
|
+
function me() {
|
|
2310
2310
|
if (!p) return null;
|
|
2311
2311
|
let e = window[m];
|
|
2312
2312
|
return typeof e == "string" ? e : null;
|
|
2313
2313
|
}
|
|
2314
2314
|
function A() {
|
|
2315
|
-
return
|
|
2315
|
+
return me() === k;
|
|
2316
2316
|
}
|
|
2317
|
-
function
|
|
2317
|
+
function he(e, t) {
|
|
2318
2318
|
p && window.dispatchEvent(new CustomEvent(h, { detail: {
|
|
2319
2319
|
ownerId: e,
|
|
2320
2320
|
previousOwnerId: t
|
|
2321
2321
|
} }));
|
|
2322
2322
|
}
|
|
2323
|
-
function
|
|
2323
|
+
function ge() {
|
|
2324
2324
|
if (!p) return;
|
|
2325
|
-
let e =
|
|
2326
|
-
e !== k && (window[m] = k,
|
|
2325
|
+
let e = me();
|
|
2326
|
+
e !== k && (window[m] = k, he(k, e));
|
|
2327
|
+
}
|
|
2328
|
+
function _e() {
|
|
2329
|
+
p && me() === k && (delete window[m], he(null, k));
|
|
2327
2330
|
}
|
|
2328
|
-
function
|
|
2329
|
-
|
|
2331
|
+
function ve(e = "", t = !1) {
|
|
2332
|
+
B(T, !1), B(E, !1), B(O, 0), B(w, t, !0), B(D, e, !0);
|
|
2330
2333
|
}
|
|
2331
|
-
function
|
|
2332
|
-
|
|
2334
|
+
function ye(e) {
|
|
2335
|
+
return e.map((e) => `${e.rate}:${e.label}:${e.ariaLabel}:${e.isDefault ? "1" : "0"}`).join("|");
|
|
2333
2336
|
}
|
|
2334
|
-
function
|
|
2337
|
+
function be(e) {
|
|
2338
|
+
return e.find((e) => e.isDefault)?.rate ?? e.find((e) => e.rate === 1)?.rate ?? e[0]?.rate ?? 1;
|
|
2339
|
+
}
|
|
2340
|
+
async function xe(e, t) {
|
|
2341
|
+
if (typeof e.setPlaybackRate == "function") {
|
|
2342
|
+
await e.setPlaybackRate(t);
|
|
2343
|
+
return;
|
|
2344
|
+
}
|
|
2345
|
+
await e.updateSettings({ rate: t });
|
|
2346
|
+
}
|
|
2347
|
+
function Se(e) {
|
|
2335
2348
|
if (!Q(g) || !e) return;
|
|
2336
2349
|
let t = Q(g).getRootNode();
|
|
2337
2350
|
t instanceof ShadowRoot && t.querySelector(".pie-tool-tts-inline__trigger")?.focus();
|
|
2338
2351
|
}
|
|
2339
|
-
function
|
|
2340
|
-
if (!Q(re) && !(!Q(
|
|
2352
|
+
function Ce(e = "Reading switched to another section", t = !1) {
|
|
2353
|
+
if (!Q(re) && !(!Q(w) && !A())) {
|
|
2341
2354
|
B(re, !0);
|
|
2342
2355
|
try {
|
|
2343
2356
|
let n = (() => {
|
|
@@ -2347,63 +2360,63 @@ function _i(o, s) {
|
|
|
2347
2360
|
let t = e.activeElement;
|
|
2348
2361
|
return !!(t && Q(_).contains(t));
|
|
2349
2362
|
})();
|
|
2350
|
-
A() &&
|
|
2351
|
-
|
|
2363
|
+
A() && _e(), ve(e), j(), t && queueMicrotask(() => {
|
|
2364
|
+
Se(n);
|
|
2352
2365
|
});
|
|
2353
2366
|
} finally {
|
|
2354
2367
|
B(re, !1);
|
|
2355
2368
|
}
|
|
2356
2369
|
}
|
|
2357
2370
|
}
|
|
2358
|
-
|
|
2359
|
-
if (Q(g)) return
|
|
2371
|
+
vn(() => {
|
|
2372
|
+
if (Q(g)) return n(Q(g), (e) => {
|
|
2360
2373
|
B(v, e, !0);
|
|
2361
2374
|
});
|
|
2362
|
-
}),
|
|
2375
|
+
}), vn(() => {
|
|
2363
2376
|
if (!Q(g)) return;
|
|
2364
|
-
let e =
|
|
2377
|
+
let e = r(Q(g), (e) => {
|
|
2365
2378
|
B(y, e, !0);
|
|
2366
|
-
}),
|
|
2379
|
+
}), n = t(Q(g), (e) => {
|
|
2367
2380
|
B(b, e, !0);
|
|
2368
2381
|
});
|
|
2369
2382
|
return () => {
|
|
2370
|
-
|
|
2383
|
+
n(), e();
|
|
2371
2384
|
};
|
|
2372
|
-
}),
|
|
2385
|
+
}), vn(() => {
|
|
2373
2386
|
if (!Q(x)) return;
|
|
2374
2387
|
let e = (e) => {
|
|
2375
|
-
if (!Q(
|
|
2376
|
-
B(
|
|
2388
|
+
if (!Q(w) || !A()) {
|
|
2389
|
+
B(T, !1), B(E, !1);
|
|
2377
2390
|
return;
|
|
2378
2391
|
}
|
|
2379
|
-
B(
|
|
2392
|
+
B(T, e === "playing" || e === "paused", !0), B(E, e === "paused");
|
|
2380
2393
|
}, t = (t) => {
|
|
2381
2394
|
e(t);
|
|
2382
2395
|
};
|
|
2383
|
-
return Q(x).onStateChange(
|
|
2384
|
-
Q(x).offStateChange(
|
|
2396
|
+
return Q(x).onStateChange(fe, t), e(Q(x).getState()), () => {
|
|
2397
|
+
Q(x).offStateChange(fe, t);
|
|
2385
2398
|
};
|
|
2386
|
-
}),
|
|
2399
|
+
}), vn(() => {
|
|
2387
2400
|
if (!p) return;
|
|
2388
2401
|
let e = (e) => {
|
|
2389
2402
|
let { ownerId: t = null, previousOwnerId: n = null } = e.detail || {};
|
|
2390
|
-
n === k && t !== k &&
|
|
2403
|
+
n === k && t !== k && Ce("Reading switched to another section");
|
|
2391
2404
|
};
|
|
2392
2405
|
return window.addEventListener(h, e), () => {
|
|
2393
2406
|
window.removeEventListener(h, e);
|
|
2394
2407
|
};
|
|
2395
|
-
}),
|
|
2408
|
+
}), vn(() => {
|
|
2396
2409
|
if (!p) return;
|
|
2397
|
-
let
|
|
2398
|
-
|
|
2410
|
+
let t = () => {
|
|
2411
|
+
Ce("Reading switched to another section", !0);
|
|
2399
2412
|
};
|
|
2400
|
-
return window.addEventListener(
|
|
2401
|
-
window.removeEventListener(
|
|
2413
|
+
return window.addEventListener(e, t), () => {
|
|
2414
|
+
window.removeEventListener(e, t);
|
|
2402
2415
|
};
|
|
2403
|
-
}),
|
|
2404
|
-
|
|
2416
|
+
}), vn(() => () => {
|
|
2417
|
+
_e(), j();
|
|
2405
2418
|
});
|
|
2406
|
-
async function
|
|
2419
|
+
async function we() {
|
|
2407
2420
|
if (!Q(x)) return !1;
|
|
2408
2421
|
try {
|
|
2409
2422
|
return await Q(v)?.toolkitCoordinator?.ensureTTSReady?.(), !0;
|
|
@@ -2411,42 +2424,42 @@ function _i(o, s) {
|
|
|
2411
2424
|
return console.error("[TTS Inline] Failed to initialize TTS:", e), !1;
|
|
2412
2425
|
}
|
|
2413
2426
|
}
|
|
2414
|
-
function
|
|
2427
|
+
function Te() {
|
|
2415
2428
|
return Q(_) ? Array.from(Q(_).querySelectorAll("[data-pie-tts-control]")) : [];
|
|
2416
2429
|
}
|
|
2417
|
-
function
|
|
2418
|
-
let t =
|
|
2430
|
+
function Ee(e) {
|
|
2431
|
+
let t = Te();
|
|
2419
2432
|
if (!t.length) return;
|
|
2420
2433
|
let n = (e + t.length) % t.length;
|
|
2421
|
-
B(
|
|
2434
|
+
B(O, n), t[n].focus();
|
|
2422
2435
|
}
|
|
2423
|
-
function
|
|
2424
|
-
let t =
|
|
2436
|
+
function De(e) {
|
|
2437
|
+
let t = Te();
|
|
2425
2438
|
if (t.length) switch (e.key) {
|
|
2426
2439
|
case "ArrowDown":
|
|
2427
2440
|
case "ArrowRight":
|
|
2428
|
-
e.preventDefault(),
|
|
2441
|
+
e.preventDefault(), Ee(Q(O) + 1);
|
|
2429
2442
|
break;
|
|
2430
2443
|
case "ArrowUp":
|
|
2431
2444
|
case "ArrowLeft":
|
|
2432
|
-
e.preventDefault(),
|
|
2445
|
+
e.preventDefault(), Ee(Q(O) - 1);
|
|
2433
2446
|
break;
|
|
2434
2447
|
case "Home":
|
|
2435
|
-
e.preventDefault(),
|
|
2448
|
+
e.preventDefault(), Ee(0);
|
|
2436
2449
|
break;
|
|
2437
2450
|
case "End":
|
|
2438
|
-
e.preventDefault(),
|
|
2451
|
+
e.preventDefault(), Ee(t.length - 1);
|
|
2439
2452
|
break;
|
|
2440
2453
|
}
|
|
2441
2454
|
}
|
|
2442
|
-
function
|
|
2443
|
-
if (!Q(
|
|
2444
|
-
let e = Q(
|
|
2455
|
+
function Oe() {
|
|
2456
|
+
if (!Q(C)) return null;
|
|
2457
|
+
let e = Q(C);
|
|
2445
2458
|
if (e.getAttribute?.("data-region") === "content") return e;
|
|
2446
2459
|
let t = e.querySelector?.("[data-region='content']");
|
|
2447
2460
|
return t instanceof Element ? t : e;
|
|
2448
2461
|
}
|
|
2449
|
-
function
|
|
2462
|
+
function ke() {
|
|
2450
2463
|
if (Q(y)) return Q(y).kind === "passage" ? {
|
|
2451
2464
|
ownerKind: "passage",
|
|
2452
2465
|
assessmentId: Q(v)?.assessmentId || "",
|
|
@@ -2460,8 +2473,8 @@ function _i(o, s) {
|
|
|
2460
2473
|
canonicalItemId: Q(y).canonicalItemId || Q(y).itemId
|
|
2461
2474
|
};
|
|
2462
2475
|
}
|
|
2463
|
-
function
|
|
2464
|
-
return
|
|
2476
|
+
function Ae(e) {
|
|
2477
|
+
return j(), ie = Q(x)?.setHighlightTargetResolverProvider?.(() => ({
|
|
2465
2478
|
context: {
|
|
2466
2479
|
scopeElement: Q(b)?.scopeElement || e || null,
|
|
2467
2480
|
kind: Q(y)?.kind,
|
|
@@ -2471,108 +2484,123 @@ function _i(o, s) {
|
|
|
2471
2484
|
regionPolicy: Q(y)?.regionPolicy
|
|
2472
2485
|
},
|
|
2473
2486
|
resolver: Q(b)?.ttsHighlightTargetResolver || null
|
|
2474
|
-
})) || null,
|
|
2487
|
+
})) || null, ie;
|
|
2475
2488
|
}
|
|
2476
|
-
function
|
|
2477
|
-
e?.(), e ===
|
|
2489
|
+
function j(e = ie) {
|
|
2490
|
+
e?.(), e === ie && (ie = null);
|
|
2478
2491
|
}
|
|
2479
|
-
function
|
|
2492
|
+
function je() {
|
|
2480
2493
|
if (!A()) return !1;
|
|
2481
2494
|
let e = String(Q(x)?.getState?.() || "");
|
|
2482
2495
|
return e === "playing" || e === "paused" || e === "loading";
|
|
2483
2496
|
}
|
|
2484
|
-
function
|
|
2497
|
+
async function M() {
|
|
2485
2498
|
if (!Q(x)) return;
|
|
2486
|
-
let e =
|
|
2499
|
+
let e = Oe();
|
|
2487
2500
|
if (!e) {
|
|
2488
2501
|
console.warn("[TTS Inline] No target container found from shell scope context");
|
|
2489
2502
|
return;
|
|
2490
2503
|
}
|
|
2491
2504
|
try {
|
|
2492
|
-
B(
|
|
2505
|
+
B(w, !0);
|
|
2493
2506
|
let t = e.textContent || "";
|
|
2494
2507
|
if (!t) {
|
|
2495
2508
|
console.warn("[TTS Inline] No text content found");
|
|
2496
2509
|
return;
|
|
2497
2510
|
}
|
|
2498
|
-
Q(S) && Q(x).setHighlightCoordinator && Q(x).setHighlightCoordinator(Q(S));
|
|
2499
|
-
let n =
|
|
2500
|
-
Q(x).setRootElement?.(e), B(
|
|
2501
|
-
catalogId:
|
|
2502
|
-
catalogContext:
|
|
2503
|
-
language:
|
|
2511
|
+
Q(S) && Q(x).setHighlightCoordinator && Q(x).setHighlightCoordinator(Q(S)), await xe(Q(x), Q(de));
|
|
2512
|
+
let n = Ae(e);
|
|
2513
|
+
Q(x).setRootElement?.(e), B(D, "Reading started"), Q(x).speak(t, {
|
|
2514
|
+
catalogId: s() || void 0,
|
|
2515
|
+
catalogContext: ke(),
|
|
2516
|
+
language: c(),
|
|
2504
2517
|
contentElement: e
|
|
2505
2518
|
}).catch((e) => {
|
|
2506
|
-
console.error("[TTS Inline] Error:", e), B(
|
|
2519
|
+
console.error("[TTS Inline] Error:", e), B(D, "Unable to start reading"), Q(S) && Q(S).clearTTS(), j(n);
|
|
2507
2520
|
}).finally(() => {
|
|
2508
|
-
|
|
2521
|
+
je() || j(n);
|
|
2509
2522
|
});
|
|
2510
2523
|
} catch (e) {
|
|
2511
|
-
console.error("[TTS Inline] Error:", e), B(
|
|
2524
|
+
console.error("[TTS Inline] Error:", e), B(D, "Unable to start reading"), Q(S) && Q(S).clearTTS(), j();
|
|
2512
2525
|
}
|
|
2513
2526
|
}
|
|
2514
|
-
async function
|
|
2527
|
+
async function N() {
|
|
2515
2528
|
if (Q(x)) {
|
|
2516
|
-
if (A() && Q(
|
|
2517
|
-
Q(x).resume(), B(
|
|
2529
|
+
if (A() && Q(E)) {
|
|
2530
|
+
Q(x).resume(), B(D, "Reading resumed");
|
|
2518
2531
|
return;
|
|
2519
2532
|
}
|
|
2520
|
-
if (A() && Q(
|
|
2521
|
-
Q(x).pause(), B(
|
|
2533
|
+
if (A() && Q(T) && !Q(E)) {
|
|
2534
|
+
Q(x).pause(), B(D, "Reading paused");
|
|
2522
2535
|
return;
|
|
2523
2536
|
}
|
|
2524
2537
|
if (!Q(ne)) {
|
|
2525
2538
|
B(ne, !0);
|
|
2526
2539
|
try {
|
|
2527
|
-
if (B(
|
|
2528
|
-
B(
|
|
2540
|
+
if (B(D, "Initializing text-to-speech"), !await we()) {
|
|
2541
|
+
B(D, "Unable to initialize text-to-speech. Try again.");
|
|
2529
2542
|
return;
|
|
2530
2543
|
}
|
|
2531
2544
|
let e = String(Q(x).getState?.() || "");
|
|
2532
|
-
(e === "playing" || e === "paused" || e === "loading") && !A() && Q(x).stop(),
|
|
2545
|
+
(e === "playing" || e === "paused" || e === "loading") && !A() && Q(x).stop(), ge(), await M();
|
|
2533
2546
|
} finally {
|
|
2534
2547
|
B(ne, !1);
|
|
2535
2548
|
}
|
|
2536
2549
|
}
|
|
2537
2550
|
}
|
|
2538
2551
|
}
|
|
2539
|
-
function
|
|
2540
|
-
Q(x) && (Q(x).stop(),
|
|
2552
|
+
function Me() {
|
|
2553
|
+
Q(x) && (Q(x).stop(), _e(), ve("Reading stopped"), Q(S) && Q(S).clearTTS(), j());
|
|
2541
2554
|
}
|
|
2542
|
-
async function
|
|
2543
|
-
if (!(!Q(x) || !Q(
|
|
2544
|
-
await Q(x).seekForward?.(1), B(
|
|
2555
|
+
async function Pe() {
|
|
2556
|
+
if (!(!Q(x) || !Q(T))) try {
|
|
2557
|
+
await Q(x).seekForward?.(1), B(D, "Skipped forward");
|
|
2545
2558
|
} catch (e) {
|
|
2546
|
-
console.error("[TTS Inline] Seek forward failed:", e), B(
|
|
2559
|
+
console.error("[TTS Inline] Seek forward failed:", e), B(D, "Unable to skip forward");
|
|
2547
2560
|
}
|
|
2548
2561
|
}
|
|
2549
|
-
async function
|
|
2550
|
-
if (!(!Q(x) || !Q(
|
|
2551
|
-
await Q(x).seekBackward?.(1), B(
|
|
2562
|
+
async function Fe() {
|
|
2563
|
+
if (!(!Q(x) || !Q(T))) try {
|
|
2564
|
+
await Q(x).seekBackward?.(1), B(D, "Skipped backward");
|
|
2552
2565
|
} catch (e) {
|
|
2553
|
-
console.error("[TTS Inline] Seek backward failed:", e), B(
|
|
2566
|
+
console.error("[TTS Inline] Seek backward failed:", e), B(D, "Unable to skip backward");
|
|
2554
2567
|
}
|
|
2555
2568
|
}
|
|
2556
|
-
async function
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2569
|
+
async function Ie(e) {
|
|
2570
|
+
let t = Q(x);
|
|
2571
|
+
if (!t) return;
|
|
2572
|
+
if (Q(de) === e.rate) {
|
|
2573
|
+
B(D, `Playback speed ${e.label}`);
|
|
2574
|
+
return;
|
|
2575
|
+
}
|
|
2576
|
+
let n = Q(ee), r = Q(te);
|
|
2577
|
+
B(ee, e.rate, !0), B(te, Q(oe), !0), B(D, `Playback speed ${e.label}`);
|
|
2560
2578
|
try {
|
|
2561
|
-
|
|
2579
|
+
await xe(t, e.rate);
|
|
2562
2580
|
} catch (e) {
|
|
2563
|
-
console.error("[TTS Inline] Playback speed change failed:", e), B(te,
|
|
2581
|
+
console.error("[TTS Inline] Playback speed change failed:", e), B(ee, n, !0), B(te, r, !0), B(D, "Unable to change playback speed");
|
|
2564
2582
|
}
|
|
2565
2583
|
}
|
|
2566
|
-
let
|
|
2567
|
-
|
|
2584
|
+
let Le = /* @__PURE__ */ R(() => l() === "sm" ? "pie-tool-tts-inline__trigger--sm" : l() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), Re = /* @__PURE__ */ R(() => f() === "reserved-row" || f() === "expanding-row"), ze = /* @__PURE__ */ R(() => f() === "floating-overlay"), Be = /* @__PURE__ */ R(() => f() === "left-aligned");
|
|
2585
|
+
vn(() => {
|
|
2586
|
+
let e = Q(x), t = Q(de), n = Q(T) || Q(E);
|
|
2587
|
+
if (!e || !n || !A()) return;
|
|
2588
|
+
let r = !1;
|
|
2589
|
+
return queueMicrotask(() => {
|
|
2590
|
+
r || xe(e, t);
|
|
2591
|
+
}), () => {
|
|
2592
|
+
r = !0;
|
|
2593
|
+
};
|
|
2594
|
+
});
|
|
2595
|
+
function Ve() {
|
|
2568
2596
|
if (!Q(g)) return null;
|
|
2569
2597
|
let e = Q(g).getRootNode();
|
|
2570
2598
|
return e instanceof ShadowRoot ? e.host : null;
|
|
2571
2599
|
}
|
|
2572
|
-
|
|
2573
|
-
let e =
|
|
2600
|
+
vn(() => {
|
|
2601
|
+
let e = Ve();
|
|
2574
2602
|
if (!e) return;
|
|
2575
|
-
let t = Q(
|
|
2603
|
+
let t = Q(w) === !0;
|
|
2576
2604
|
e.setAttribute("data-active", t ? "true" : "false");
|
|
2577
2605
|
let n = !1;
|
|
2578
2606
|
return queueMicrotask(() => {
|
|
@@ -2585,108 +2613,112 @@ function _i(o, s) {
|
|
|
2585
2613
|
n = !0;
|
|
2586
2614
|
};
|
|
2587
2615
|
});
|
|
2588
|
-
var
|
|
2616
|
+
var P = {
|
|
2589
2617
|
get catalogId() {
|
|
2590
|
-
return
|
|
2618
|
+
return s();
|
|
2591
2619
|
},
|
|
2592
2620
|
set catalogId(e = "") {
|
|
2593
|
-
|
|
2621
|
+
s(e), gt();
|
|
2594
2622
|
},
|
|
2595
2623
|
get language() {
|
|
2596
|
-
return
|
|
2624
|
+
return c();
|
|
2597
2625
|
},
|
|
2598
2626
|
set language(e = "en-US") {
|
|
2599
|
-
|
|
2627
|
+
c(e), gt();
|
|
2600
2628
|
},
|
|
2601
2629
|
get size() {
|
|
2602
|
-
return
|
|
2630
|
+
return l();
|
|
2603
2631
|
},
|
|
2604
2632
|
set size(e = "md") {
|
|
2605
|
-
|
|
2633
|
+
l(e), gt();
|
|
2606
2634
|
},
|
|
2607
2635
|
get speedOptions() {
|
|
2636
|
+
return u();
|
|
2637
|
+
},
|
|
2638
|
+
set speedOptions(e = void 0) {
|
|
2639
|
+
u(e), gt();
|
|
2640
|
+
},
|
|
2641
|
+
get showSingleSpeedOption() {
|
|
2608
2642
|
return d();
|
|
2609
2643
|
},
|
|
2610
|
-
set
|
|
2611
|
-
d(
|
|
2644
|
+
set showSingleSpeedOption(e = !1) {
|
|
2645
|
+
d(e), gt();
|
|
2612
2646
|
},
|
|
2613
2647
|
get layoutMode() {
|
|
2614
2648
|
return f();
|
|
2615
2649
|
},
|
|
2616
2650
|
set layoutMode(e = "expanding-row") {
|
|
2617
|
-
f(e),
|
|
2651
|
+
f(e), gt();
|
|
2618
2652
|
}
|
|
2619
|
-
},
|
|
2653
|
+
}, He = xr(), Ge = on(He), Ke = (e) => {
|
|
2620
2654
|
var t = hi();
|
|
2621
2655
|
let n;
|
|
2622
2656
|
{
|
|
2623
2657
|
let e = (e) => {
|
|
2624
|
-
var t =
|
|
2658
|
+
var t = ui();
|
|
2625
2659
|
let n;
|
|
2626
|
-
var r =
|
|
2627
|
-
$(e,
|
|
2660
|
+
var r = an(t), i = (e) => {
|
|
2661
|
+
$(e, ci());
|
|
2628
2662
|
}, a = (e) => {
|
|
2629
|
-
$(e,
|
|
2663
|
+
$(e, li());
|
|
2630
2664
|
};
|
|
2631
|
-
|
|
2632
|
-
Q(
|
|
2633
|
-
}),
|
|
2634
|
-
n =
|
|
2635
|
-
}),
|
|
2665
|
+
Mr(r, (e) => {
|
|
2666
|
+
Q(T) && !Q(E) ? e(i) : e(a, -1);
|
|
2667
|
+
}), Ne(t), Tn(() => {
|
|
2668
|
+
n = Gr(t, 1, `pie-tool-tts-inline__trigger ${Q(Le) ?? ""}`, "svelte-18mzc0g", n, { "pie-tool-tts-inline__trigger--active": Q(w) }), Yr(t, "aria-label", Q(T) && !Q(E) ? "Pause reading" : Q(E) ? "Resume reading" : "Play reading"), Yr(t, "aria-expanded", Q(w)), Yr(t, "aria-controls", Q(w) ? pe : void 0), t.disabled = !Q(x) || Q(ne);
|
|
2669
|
+
}), ur("click", t, N), $(e, t);
|
|
2636
2670
|
}, n = (e) => {
|
|
2637
|
-
var t =
|
|
2671
|
+
var t = xr(), n = on(t), r = (e) => {
|
|
2638
2672
|
var t = pi();
|
|
2639
2673
|
let n;
|
|
2640
|
-
var r =
|
|
2641
|
-
var t =
|
|
2642
|
-
|
|
2643
|
-
var r =
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
}), dr("click", r, () => Oe(Q(t))), ur("focus", r, () => B(D, Q(n), !0)), $(e, r);
|
|
2649
|
-
}), $(e, t);
|
|
2674
|
+
var r = an(t), i = (e) => {
|
|
2675
|
+
var t = fi();
|
|
2676
|
+
Ir(t, 23, () => Q(se), (e) => e.rate, (e, t, n) => {
|
|
2677
|
+
var r = di(), i = an(r), a = an(i, !0);
|
|
2678
|
+
Ne(i), Ne(r), Tn(() => {
|
|
2679
|
+
Yr(r, "tabindex", Q(ue) === Q(n) ? 0 : -1), Yr(r, "aria-label", Q(t).ariaLabel), Yr(r, "aria-checked", Q(de) === Q(t).rate), r.disabled = !Q(x), wr(a, Q(t).label);
|
|
2680
|
+
}), ur("click", r, () => Ie(Q(t))), lr("focus", r, () => B(O, Q(n), !0)), $(e, r);
|
|
2681
|
+
}), Ne(t), $(e, t);
|
|
2650
2682
|
};
|
|
2651
|
-
|
|
2652
|
-
Q(
|
|
2683
|
+
Mr(r, (e) => {
|
|
2684
|
+
Q(se).length > 0 && e(i);
|
|
2653
2685
|
});
|
|
2654
|
-
var a =
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
"pie-tool-tts-inline__panel--floating": Q(
|
|
2658
|
-
"pie-tool-tts-inline__panel--row": Q(
|
|
2659
|
-
"pie-tool-tts-inline__panel--left-aligned-inline": Q(
|
|
2660
|
-
}),
|
|
2661
|
-
}),
|
|
2686
|
+
var a = sn(r, 2), o = sn(a, 2), s = sn(o, 2);
|
|
2687
|
+
Ne(t), ei(t, (e) => B(_, e), () => Q(_)), Tn(() => {
|
|
2688
|
+
Yr(t, "id", pe), n = Gr(t, 1, "pie-tool-tts-inline__panel svelte-18mzc0g", null, n, {
|
|
2689
|
+
"pie-tool-tts-inline__panel--floating": Q(ze),
|
|
2690
|
+
"pie-tool-tts-inline__panel--row": Q(Re),
|
|
2691
|
+
"pie-tool-tts-inline__panel--left-aligned-inline": Q(Be)
|
|
2692
|
+
}), Yr(a, "tabindex", Q(ue) === Q(ce) ? 0 : -1), a.disabled = !Q(x) || !Q(T), Yr(o, "tabindex", Q(ue) === Q(ce) + 1 ? 0 : -1), o.disabled = !Q(x) || !Q(T), Yr(s, "tabindex", Q(ue) === Q(ce) + 2 ? 0 : -1), s.disabled = !Q(x) || !Q(T) && !Q(E);
|
|
2693
|
+
}), ur("keydown", t, De), ur("click", a, Fe), lr("focus", a, () => B(O, Q(ce), !0)), ur("click", o, Pe), lr("focus", o, () => B(O, Q(ce) + 1)), ur("click", s, Me), lr("focus", s, () => B(O, Q(ce) + 2)), $(e, t);
|
|
2662
2694
|
};
|
|
2663
|
-
|
|
2664
|
-
Q(
|
|
2695
|
+
Mr(n, (e) => {
|
|
2696
|
+
Q(w) && e(r);
|
|
2665
2697
|
}), $(e, t);
|
|
2666
2698
|
};
|
|
2667
|
-
var r =
|
|
2668
|
-
var r = mi(), i =
|
|
2669
|
-
n(i), e(
|
|
2699
|
+
var r = an(t), i = (t) => {
|
|
2700
|
+
var r = mi(), i = on(r);
|
|
2701
|
+
n(i), e(sn(i, 2)), $(t, r);
|
|
2670
2702
|
}, a = (t) => {
|
|
2671
|
-
var r = mi(), i =
|
|
2672
|
-
e(i), n(
|
|
2703
|
+
var r = mi(), i = on(r);
|
|
2704
|
+
e(i), n(sn(i, 2)), $(t, r);
|
|
2673
2705
|
};
|
|
2674
|
-
|
|
2675
|
-
Q(
|
|
2706
|
+
Mr(r, (e) => {
|
|
2707
|
+
Q(Be) ? e(i) : e(a, -1);
|
|
2676
2708
|
});
|
|
2677
|
-
var o =
|
|
2678
|
-
|
|
2709
|
+
var o = sn(r, 2), s = an(o, !0);
|
|
2710
|
+
Ne(o), Ne(t), ei(t, (e) => B(g, e), () => Q(g)), Tn(() => wr(s, Q(D)));
|
|
2679
2711
|
}
|
|
2680
|
-
|
|
2681
|
-
"pie-tool-tts-inline--controls-row": Q(
|
|
2682
|
-
"pie-tool-tts-inline--floating": Q(
|
|
2712
|
+
Tn(() => n = Gr(t, 1, "pie-tool-tts-inline svelte-18mzc0g", null, n, {
|
|
2713
|
+
"pie-tool-tts-inline--controls-row": Q(Re),
|
|
2714
|
+
"pie-tool-tts-inline--floating": Q(ze)
|
|
2683
2715
|
})), $(e, t);
|
|
2684
2716
|
};
|
|
2685
|
-
return
|
|
2686
|
-
p && e(
|
|
2687
|
-
}), $(
|
|
2717
|
+
return Mr(Ge, (e) => {
|
|
2718
|
+
p && e(Ke);
|
|
2719
|
+
}), $(a, He), We(P);
|
|
2688
2720
|
}
|
|
2689
|
-
|
|
2721
|
+
dr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", si(_i, {
|
|
2690
2722
|
catalogId: {
|
|
2691
2723
|
attribute: "catalog-id",
|
|
2692
2724
|
type: "String"
|
|
@@ -2703,6 +2735,10 @@ fr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", ci(_i, {
|
|
|
2703
2735
|
attribute: "speed-options",
|
|
2704
2736
|
type: "Array"
|
|
2705
2737
|
},
|
|
2738
|
+
showSingleSpeedOption: {
|
|
2739
|
+
attribute: "show-single-speed-option",
|
|
2740
|
+
type: "Boolean"
|
|
2741
|
+
},
|
|
2706
2742
|
layoutMode: {
|
|
2707
2743
|
attribute: "layout-mode",
|
|
2708
2744
|
type: "String"
|