@pie-players/pie-tool-tts-inline 1.0.0-beta.0 → 1.0.0-beta.1
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 +14 -2
- package/custom-elements.json +53 -0
- package/dist/tool-tts-inline.js +783 -748
- package/package.json +3 -3
package/dist/tool-tts-inline.js
CHANGED
|
@@ -8,10 +8,10 @@ typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/constants.js
|
|
10
10
|
var p = {}, m = Symbol("uninitialized"), h = "http://www.w3.org/1999/xhtml", g = Array.isArray, _ = Array.prototype.indexOf, v = Array.prototype.includes, y = Array.from, b = Object.keys, x = Object.defineProperty, S = Object.getOwnPropertyDescriptor, ee = Object.getOwnPropertyDescriptors, te = Object.prototype, ne = Array.prototype, re = Object.getPrototypeOf, ie = Object.isExtensible, ae = () => {};
|
|
11
|
-
function
|
|
11
|
+
function oe(e) {
|
|
12
12
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function se() {
|
|
15
15
|
var e, t;
|
|
16
16
|
return {
|
|
17
17
|
promise: new Promise((n, r) => {
|
|
@@ -21,47 +21,47 @@ function w() {
|
|
|
21
21
|
reject: t
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
var
|
|
24
|
+
var C = 1024, w = 2048, T = 4096, ce = 8192, le = 16384, E = 32768, ue = 1 << 25, de = 65536, D = 1 << 19, fe = 1 << 20, pe = 1 << 25, O = 1 << 21, me = 1 << 22, k = 1 << 23, A = Symbol("$state"), j = Symbol("component"), he = Symbol("legacy props"), ge = Symbol(""), _e = Symbol("attributes"), ve = Symbol("class"), ye = Symbol("style"), be = Symbol("text"), xe = new class extends Error {
|
|
25
25
|
name = "StaleReactionError";
|
|
26
26
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
27
|
-
}(),
|
|
28
|
-
function
|
|
27
|
+
}(), Se = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
28
|
+
function Ce() {
|
|
29
29
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function we(e) {
|
|
32
32
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Te() {
|
|
35
35
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
36
36
|
}
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/hydration.js
|
|
39
|
-
var
|
|
40
|
-
function
|
|
41
|
-
|
|
39
|
+
var M = !1;
|
|
40
|
+
function N(e) {
|
|
41
|
+
M = e;
|
|
42
42
|
}
|
|
43
|
-
var
|
|
44
|
-
function
|
|
45
|
-
if (e === null) throw
|
|
46
|
-
return
|
|
43
|
+
var P;
|
|
44
|
+
function F(e) {
|
|
45
|
+
if (e === null) throw we(), p;
|
|
46
|
+
return P = e;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
return
|
|
48
|
+
function Ee() {
|
|
49
|
+
return F(/* @__PURE__ */ Qt(P));
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
if (
|
|
53
|
-
if (/* @__PURE__ */
|
|
54
|
-
|
|
51
|
+
function De(e) {
|
|
52
|
+
if (M) {
|
|
53
|
+
if (/* @__PURE__ */ Qt(P) !== null) throw we(), p;
|
|
54
|
+
P = e;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
if (
|
|
59
|
-
for (var t = e, n =
|
|
60
|
-
|
|
57
|
+
function Oe(e = 1) {
|
|
58
|
+
if (M) {
|
|
59
|
+
for (var t = e, n = P; t--;) n = /* @__PURE__ */ Qt(n);
|
|
60
|
+
P = n;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
for (var t = 0, n =
|
|
63
|
+
function ke(e = !0) {
|
|
64
|
+
for (var t = 0, n = P;;) {
|
|
65
65
|
if (n.nodeType === 8) {
|
|
66
66
|
var r = n.data;
|
|
67
67
|
if (r === "]") {
|
|
@@ -69,234 +69,234 @@ function De(e = !0) {
|
|
|
69
69
|
--t;
|
|
70
70
|
} else (r === "[" || r === "[!" || r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
|
|
71
71
|
}
|
|
72
|
-
var i = /* @__PURE__ */
|
|
72
|
+
var i = /* @__PURE__ */ Qt(n);
|
|
73
73
|
e && n.remove(), n = i;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
if (!e || e.nodeType !== 8) throw
|
|
76
|
+
function Ae(e) {
|
|
77
|
+
if (!e || e.nodeType !== 8) throw we(), p;
|
|
78
78
|
return e.data;
|
|
79
79
|
}
|
|
80
80
|
//#endregion
|
|
81
81
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/equality.js
|
|
82
|
-
function
|
|
82
|
+
function je(e) {
|
|
83
83
|
return e === this.v;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Me(e, t) {
|
|
86
86
|
return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return !
|
|
88
|
+
function Ne(e) {
|
|
89
|
+
return !Me(e, this.v);
|
|
90
90
|
}
|
|
91
91
|
//#endregion
|
|
92
92
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/errors.js
|
|
93
|
-
function
|
|
93
|
+
function Pe() {
|
|
94
94
|
throw Error("https://svelte.dev/e/async_derived_orphan");
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Fe(e, t, n) {
|
|
97
97
|
throw Error("https://svelte.dev/e/each_key_duplicate");
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Ie(e) {
|
|
100
100
|
throw Error("https://svelte.dev/e/effect_in_teardown");
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Le() {
|
|
103
103
|
throw Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Re(e) {
|
|
106
106
|
throw Error("https://svelte.dev/e/effect_orphan");
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function ze() {
|
|
109
109
|
throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Be() {
|
|
112
112
|
throw Error("https://svelte.dev/e/hydration_failed");
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Ve(e) {
|
|
115
115
|
throw Error("https://svelte.dev/e/props_invalid_value");
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function He() {
|
|
118
118
|
throw Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Ue() {
|
|
121
121
|
throw Error("https://svelte.dev/e/state_prototype_fixed");
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function We() {
|
|
124
124
|
throw Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Ge() {
|
|
127
127
|
throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
128
128
|
}
|
|
129
129
|
//#endregion
|
|
130
130
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/context.js
|
|
131
|
-
var
|
|
132
|
-
function
|
|
133
|
-
|
|
131
|
+
var I = null;
|
|
132
|
+
function Ke(e) {
|
|
133
|
+
I = e;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
|
|
137
|
-
p:
|
|
135
|
+
function qe(e, t = !1, n) {
|
|
136
|
+
I = {
|
|
137
|
+
p: I,
|
|
138
138
|
i: !1,
|
|
139
139
|
c: null,
|
|
140
140
|
e: null,
|
|
141
141
|
s: e,
|
|
142
142
|
x: null,
|
|
143
|
-
r:
|
|
143
|
+
r: Y,
|
|
144
144
|
l: null
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
var t =
|
|
147
|
+
function Je(e) {
|
|
148
|
+
var t = I, 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) gn(r);
|
|
152
152
|
}
|
|
153
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
153
|
+
return e !== void 0 && (t.x = e), t.i = !0, I = t.p, Ye(e);
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
return x(e,
|
|
155
|
+
function Ye(e = {}) {
|
|
156
|
+
return x(e, j, { value: !0 }), e;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Xe() {
|
|
159
159
|
return !0;
|
|
160
160
|
}
|
|
161
161
|
//#endregion
|
|
162
162
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/task.js
|
|
163
|
-
var
|
|
164
|
-
function
|
|
165
|
-
var e =
|
|
166
|
-
|
|
163
|
+
var Ze = [];
|
|
164
|
+
function Qe() {
|
|
165
|
+
var e = Ze;
|
|
166
|
+
Ze = [], oe(e);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
if (
|
|
170
|
-
var t =
|
|
168
|
+
function L(e) {
|
|
169
|
+
if (Ze.length === 0 && !bt) {
|
|
170
|
+
var t = Ze;
|
|
171
171
|
queueMicrotask(() => {
|
|
172
|
-
t ===
|
|
172
|
+
t === Ze && Qe();
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
-
|
|
175
|
+
Ze.push(e);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
for (;
|
|
177
|
+
function $e() {
|
|
178
|
+
for (; Ze.length > 0;) Qe();
|
|
179
179
|
}
|
|
180
180
|
//#endregion
|
|
181
181
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/status.js
|
|
182
|
-
var
|
|
183
|
-
function
|
|
184
|
-
e.f = e.f &
|
|
182
|
+
var et = ~(w | T | C);
|
|
183
|
+
function R(e, t) {
|
|
184
|
+
e.f = e.f & et | t;
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
e.f & 512 || e.deps === null ?
|
|
186
|
+
function tt(e) {
|
|
187
|
+
e.f & 512 || e.deps === null ? R(e, C) : R(e, T);
|
|
188
188
|
}
|
|
189
189
|
//#endregion
|
|
190
190
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/utils.js
|
|
191
|
-
function
|
|
192
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e),
|
|
191
|
+
function nt(e, t, n) {
|
|
192
|
+
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), R(e, C);
|
|
193
193
|
}
|
|
194
194
|
//#endregion
|
|
195
195
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
|
|
196
|
-
function
|
|
197
|
-
var t =
|
|
198
|
-
|
|
196
|
+
function rt(e) {
|
|
197
|
+
var t = q, n = Y;
|
|
198
|
+
J(null), zn(null);
|
|
199
199
|
try {
|
|
200
200
|
return e();
|
|
201
201
|
} finally {
|
|
202
|
-
|
|
202
|
+
J(t), zn(n);
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
//#endregion
|
|
206
206
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/async.js
|
|
207
|
-
function
|
|
208
|
-
let i =
|
|
207
|
+
function it(e, t, n, r) {
|
|
208
|
+
let i = Xe() ? ct : dt;
|
|
209
209
|
var a = e.filter((e) => !e.settled), o = t.map(i);
|
|
210
210
|
if (n.length === 0 && a.length === 0) {
|
|
211
211
|
r(o);
|
|
212
212
|
return;
|
|
213
213
|
}
|
|
214
|
-
var s =
|
|
214
|
+
var s = Y, c = at(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
|
|
215
215
|
function u(e) {
|
|
216
216
|
if (!(s.f & 16384)) {
|
|
217
217
|
c();
|
|
218
218
|
try {
|
|
219
219
|
r([...o, ...e]);
|
|
220
220
|
} catch (e) {
|
|
221
|
-
|
|
221
|
+
ln(e, s);
|
|
222
222
|
}
|
|
223
|
-
|
|
223
|
+
ot();
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
|
-
var d =
|
|
226
|
+
var d = st();
|
|
227
227
|
if (n.length === 0) {
|
|
228
228
|
l.then(() => u([])).finally(d);
|
|
229
229
|
return;
|
|
230
230
|
}
|
|
231
231
|
function f() {
|
|
232
|
-
Promise.all(n.map((e) => /* @__PURE__ */
|
|
232
|
+
Promise.all(n.map((e) => /* @__PURE__ */ ut(e))).then(u).catch((e) => ln(e, s)).finally(d);
|
|
233
233
|
}
|
|
234
234
|
l ? l.then(() => {
|
|
235
|
-
c(), f(),
|
|
235
|
+
c(), f(), ot();
|
|
236
236
|
}) : f();
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
var e =
|
|
238
|
+
function at() {
|
|
239
|
+
var e = Y, t = q, n = I, r = B;
|
|
240
240
|
return function(i = !0) {
|
|
241
|
-
|
|
241
|
+
zn(e), J(t), Ke(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
|
|
242
242
|
};
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
|
|
244
|
+
function ot(e = !0) {
|
|
245
|
+
zn(null), J(null), Ke(null), e && B?.deactivate();
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
var e =
|
|
247
|
+
function st() {
|
|
248
|
+
var e = Y, t = e.b, n = B, r = !!t?.is_rendered();
|
|
249
249
|
return t?.update_pending_count(1, n), n.increment(r, e), () => {
|
|
250
250
|
t?.update_pending_count(-1, n), n.decrement(r, e);
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
253
|
/*#__NO_SIDE_EFFECTS__*/
|
|
254
|
-
function
|
|
255
|
-
var t = 2 |
|
|
256
|
-
return
|
|
257
|
-
ctx:
|
|
254
|
+
function ct(e) {
|
|
255
|
+
var t = 2 | w;
|
|
256
|
+
return Y !== null && (Y.f |= D), {
|
|
257
|
+
ctx: I,
|
|
258
258
|
deps: null,
|
|
259
259
|
effects: null,
|
|
260
|
-
equals:
|
|
260
|
+
equals: je,
|
|
261
261
|
f: t,
|
|
262
262
|
fn: e,
|
|
263
263
|
reactions: null,
|
|
264
264
|
rv: 0,
|
|
265
265
|
v: m,
|
|
266
266
|
wv: 0,
|
|
267
|
-
parent:
|
|
267
|
+
parent: Y,
|
|
268
268
|
ac: null
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
|
-
var
|
|
271
|
+
var lt = Symbol("obsolete");
|
|
272
272
|
/*#__NO_SIDE_EFFECTS__*/
|
|
273
|
-
function
|
|
274
|
-
let r =
|
|
275
|
-
r === null &&
|
|
276
|
-
var i = void 0, a = Lt(m), o = !
|
|
277
|
-
return
|
|
278
|
-
var t =
|
|
273
|
+
function ut(e, t, n) {
|
|
274
|
+
let r = Y;
|
|
275
|
+
r === null && Pe();
|
|
276
|
+
var i = void 0, a = Lt(m), o = !q, s = /* @__PURE__ */ new Set();
|
|
277
|
+
return bn(() => {
|
|
278
|
+
var t = Y, n = se();
|
|
279
279
|
i = n.promise;
|
|
280
280
|
try {
|
|
281
281
|
Promise.resolve(e()).then(n.resolve, (e) => {
|
|
282
|
-
e !==
|
|
283
|
-
}).finally(
|
|
282
|
+
e !== xe && n.reject(e);
|
|
283
|
+
}).finally(ot);
|
|
284
284
|
} catch (e) {
|
|
285
|
-
n.reject(e),
|
|
285
|
+
n.reject(e), ot();
|
|
286
286
|
}
|
|
287
|
-
var c =
|
|
287
|
+
var c = B;
|
|
288
288
|
if (o) {
|
|
289
|
-
if (t.f & 32768) var l =
|
|
290
|
-
if (r.b?.is_rendered()) c.async_deriveds.get(t)?.reject(
|
|
291
|
-
else for (let e of s.values()) e.reject(
|
|
289
|
+
if (t.f & 32768) var l = st();
|
|
290
|
+
if (r.b?.is_rendered()) c.async_deriveds.get(t)?.reject(lt);
|
|
291
|
+
else for (let e of s.values()) e.reject(lt);
|
|
292
292
|
s.add(n), c.async_deriveds.set(t, n);
|
|
293
293
|
}
|
|
294
294
|
let u = (e, t = void 0) => {
|
|
295
|
-
l?.(), s.delete(n), t !==
|
|
295
|
+
l?.(), s.delete(n), t !== lt && (c.activate(), t ? (a.f |= k, Vt(a, t)) : (a.f & 8388608 && (a.f ^= k), Vt(a, e)), c.deactivate());
|
|
296
296
|
};
|
|
297
297
|
n.promise.then(u, (e) => u(null, e || "unknown"));
|
|
298
|
-
}),
|
|
299
|
-
for (let e of s) e.reject(
|
|
298
|
+
}), mn(() => {
|
|
299
|
+
for (let e of s) e.reject(lt);
|
|
300
300
|
}), new Promise((e) => {
|
|
301
301
|
function t(n) {
|
|
302
302
|
function r() {
|
|
@@ -308,52 +308,52 @@ function lt(e, t, n) {
|
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
310
|
/*#__NO_SIDE_EFFECTS__*/
|
|
311
|
-
function
|
|
312
|
-
let t = /* @__PURE__ */
|
|
311
|
+
function z(e) {
|
|
312
|
+
let t = /* @__PURE__ */ ct(e);
|
|
313
313
|
return Vn(t), t;
|
|
314
314
|
}
|
|
315
315
|
/*#__NO_SIDE_EFFECTS__*/
|
|
316
|
-
function ut(e) {
|
|
317
|
-
let t = /* @__PURE__ */ st(e);
|
|
318
|
-
return t.equals = je, t;
|
|
319
|
-
}
|
|
320
316
|
function dt(e) {
|
|
317
|
+
let t = /* @__PURE__ */ ct(e);
|
|
318
|
+
return t.equals = Ne, t;
|
|
319
|
+
}
|
|
320
|
+
function ft(e) {
|
|
321
321
|
var t = e.effects;
|
|
322
322
|
if (t !== null) {
|
|
323
323
|
e.effects = null;
|
|
324
|
-
for (var n = 0; n < t.length; n += 1)
|
|
324
|
+
for (var n = 0; n < t.length; n += 1) K(t[n]);
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
var t, n =
|
|
329
|
-
if (!
|
|
330
|
-
|
|
327
|
+
function pt(e) {
|
|
328
|
+
var t, n = Y, r = e.parent;
|
|
329
|
+
if (!In && r !== null && e.v !== m && r.f & 24576) return Ce(), e.v;
|
|
330
|
+
zn(r);
|
|
331
331
|
try {
|
|
332
|
-
|
|
332
|
+
ft(e), t = Zn(e);
|
|
333
333
|
} finally {
|
|
334
|
-
|
|
334
|
+
zn(n);
|
|
335
335
|
}
|
|
336
336
|
return t;
|
|
337
337
|
}
|
|
338
|
-
function
|
|
339
|
-
var t =
|
|
340
|
-
if (!e.equals(t) && (e.wv = Jn(), (!
|
|
341
|
-
|
|
338
|
+
function mt(e) {
|
|
339
|
+
var t = pt(e);
|
|
340
|
+
if (!e.equals(t) && (e.wv = Jn(), (!B?.is_fork || e.deps === null) && (B === null ? e.v = t : (B.capture(e, t, !0), vt?.capture(e, t, !0)), e.deps === null))) {
|
|
341
|
+
R(e, C);
|
|
342
342
|
return;
|
|
343
343
|
}
|
|
344
|
-
|
|
345
|
-
}
|
|
346
|
-
function mt(e) {
|
|
347
|
-
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && nt(() => {
|
|
348
|
-
t.ac.abort(ye), t.ac = null;
|
|
349
|
-
}), t.fn !== null && (t.teardown = ae), er(t, 0), En(t));
|
|
344
|
+
In || (V === null ? tt(e) : (pn() || B?.is_fork) && V.set(e, t));
|
|
350
345
|
}
|
|
351
346
|
function ht(e) {
|
|
347
|
+
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && rt(() => {
|
|
348
|
+
t.ac.abort(xe), t.ac = null;
|
|
349
|
+
}), t.fn !== null && (t.teardown = ae), er(t, 0), Tn(t));
|
|
350
|
+
}
|
|
351
|
+
function gt(e) {
|
|
352
352
|
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && tr(t);
|
|
353
353
|
}
|
|
354
354
|
//#endregion
|
|
355
355
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/batch.js
|
|
356
|
-
var
|
|
356
|
+
var _t = null, B = null, vt = null, V = null, yt = null, bt = !1, xt = !1, St = null, Ct = null, wt = 0, Tt = 1, Et = class e {
|
|
357
357
|
id = Tt++;
|
|
358
358
|
#e = !1;
|
|
359
359
|
linked = !0;
|
|
@@ -376,7 +376,7 @@ var gt = null, V = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
|
|
|
376
376
|
is_fork = !1;
|
|
377
377
|
#m = !1;
|
|
378
378
|
constructor() {
|
|
379
|
-
|
|
379
|
+
_t === null ? _t = this : (_t.#n = this, this.#t = _t), _t = this;
|
|
380
380
|
}
|
|
381
381
|
#h() {
|
|
382
382
|
if (this.is_fork) return !0;
|
|
@@ -402,8 +402,8 @@ var gt = null, V = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
|
|
|
402
402
|
var n = this.#f.get(e);
|
|
403
403
|
if (n) {
|
|
404
404
|
this.#f.delete(e);
|
|
405
|
-
for (var r of n.d)
|
|
406
|
-
for (r of n.m)
|
|
405
|
+
for (var r of n.d) R(r, w), t(r);
|
|
406
|
+
for (r of n.m) R(r, T), t(r);
|
|
407
407
|
}
|
|
408
408
|
this.#p.add(e);
|
|
409
409
|
}
|
|
@@ -418,7 +418,7 @@ var gt = null, V = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
|
|
|
418
418
|
n = !0;
|
|
419
419
|
break;
|
|
420
420
|
}
|
|
421
|
-
t.f ^=
|
|
421
|
+
t.f ^= C;
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
424
|
n || e.push(t);
|
|
@@ -427,8 +427,8 @@ var gt = null, V = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
|
|
|
427
427
|
}
|
|
428
428
|
#_() {
|
|
429
429
|
this.#e = !0;
|
|
430
|
-
for (let e of this.#u) this.#d.delete(e),
|
|
431
|
-
for (let e of this.#d)
|
|
430
|
+
for (let e of this.#u) this.#d.delete(e), R(e, w), this.schedule(e);
|
|
431
|
+
for (let e of this.#d) R(e, T), this.schedule(e);
|
|
432
432
|
this.apply();
|
|
433
433
|
for (var t = St = [], n = [], r = Ct = []; this.#c.length > 0;) {
|
|
434
434
|
wt++ > 1e3 && (this.#S(), Ot());
|
|
@@ -438,14 +438,14 @@ var gt = null, V = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
|
|
|
438
438
|
throw Nt(e), this.#h() || this.discard(), t;
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
-
if (
|
|
441
|
+
if (B = null, r.length > 0) {
|
|
442
442
|
var i = e.ensure();
|
|
443
443
|
for (let e of r) i.schedule(e);
|
|
444
444
|
}
|
|
445
445
|
if (St = null, Ct = null, this.#h()) {
|
|
446
446
|
this.#x(n), this.#x(t);
|
|
447
447
|
for (let [e, t] of this.#f) Mt(e, t);
|
|
448
|
-
r.length > 0 &&
|
|
448
|
+
r.length > 0 && B.#_();
|
|
449
449
|
return;
|
|
450
450
|
}
|
|
451
451
|
let a = this.#y();
|
|
@@ -455,8 +455,8 @@ var gt = null, V = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
|
|
|
455
455
|
}
|
|
456
456
|
this.#u.clear(), this.#d.clear();
|
|
457
457
|
for (let e of this.#r) e(this);
|
|
458
|
-
this.#r.clear(),
|
|
459
|
-
var o =
|
|
458
|
+
this.#r.clear(), vt = this, At(n), At(t), vt = null, this.#s?.resolve();
|
|
459
|
+
var o = B;
|
|
460
460
|
if (this.#a === 0 && (this.#c.length === 0 || o !== null) && this.#S(), this.#c.length > 0) {
|
|
461
461
|
if (o !== null) {
|
|
462
462
|
for (let e of this.#c) o.#c.push(e);
|
|
@@ -466,11 +466,11 @@ var gt = null, V = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
|
|
|
466
466
|
o !== null && (Ft.clear(), o.#_());
|
|
467
467
|
}
|
|
468
468
|
#v(e, t, n) {
|
|
469
|
-
e.f ^=
|
|
469
|
+
e.f ^= C;
|
|
470
470
|
for (var r = e.first; r !== null;) {
|
|
471
471
|
var i = r.f, a = !!(i & 96);
|
|
472
472
|
if (!(a && i & 1024 || i & 8192 || this.#f.has(r)) && r.fn !== null) {
|
|
473
|
-
a ? r.f ^=
|
|
473
|
+
a ? r.f ^= C : i & 4 ? t.push(r) : Yn(r) && (i & 16 && this.#d.add(r), tr(r));
|
|
474
474
|
var o = r.first;
|
|
475
475
|
if (o !== null) {
|
|
476
476
|
r = o;
|
|
@@ -510,36 +510,36 @@ var gt = null, V = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
|
|
|
510
510
|
if (r & 2) t(e);
|
|
511
511
|
else {
|
|
512
512
|
var i = e;
|
|
513
|
-
r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i),
|
|
513
|
+
r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), R(i, w), this.schedule(i));
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
};
|
|
517
517
|
for (let e of this.current.keys()) t(e);
|
|
518
|
-
this.oncommit(() => e.discard()), e.#S(),
|
|
518
|
+
this.oncommit(() => e.discard()), e.#S(), B = this, this.#_();
|
|
519
519
|
}
|
|
520
520
|
#x(e) {
|
|
521
|
-
for (var t = 0; t < e.length; t += 1)
|
|
521
|
+
for (var t = 0; t < e.length; t += 1) nt(e[t], this.#u, this.#d);
|
|
522
522
|
}
|
|
523
523
|
capture(e, t, n = !1) {
|
|
524
|
-
e.v !== m && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]),
|
|
524
|
+
e.v !== m && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), V?.set(e, t)), this.is_fork || (e.v = t);
|
|
525
525
|
}
|
|
526
526
|
activate() {
|
|
527
|
-
|
|
527
|
+
B = this;
|
|
528
528
|
}
|
|
529
529
|
deactivate() {
|
|
530
|
-
|
|
530
|
+
B = null, V = null;
|
|
531
531
|
}
|
|
532
532
|
flush() {
|
|
533
533
|
try {
|
|
534
|
-
xt = !0,
|
|
534
|
+
xt = !0, B = this, this.#_();
|
|
535
535
|
} finally {
|
|
536
|
-
wt = 0, yt = null, St = null, Ct = null, xt = !1,
|
|
536
|
+
wt = 0, yt = null, St = null, Ct = null, xt = !1, B = null, V = null, Ft.clear();
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
discard() {
|
|
540
540
|
for (let e of this.#i) e(this);
|
|
541
541
|
this.#i.clear();
|
|
542
|
-
for (let e of this.async_deriveds.values()) e.reject(
|
|
542
|
+
for (let e of this.async_deriveds.values()) e.reject(lt);
|
|
543
543
|
this.#S(), this.#s?.resolve();
|
|
544
544
|
}
|
|
545
545
|
register_created_effect(e) {
|
|
@@ -556,7 +556,7 @@ var gt = null, V = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
|
|
|
556
556
|
let e = this.#o.get(t) ?? 0;
|
|
557
557
|
e === 1 ? this.#o.delete(t) : this.#o.set(t, e - 1);
|
|
558
558
|
}
|
|
559
|
-
this.#m || (this.#m = !0,
|
|
559
|
+
this.#m || (this.#m = !0, L(() => {
|
|
560
560
|
this.#m = !1, this.linked && this.flush();
|
|
561
561
|
}));
|
|
562
562
|
}
|
|
@@ -572,19 +572,19 @@ var gt = null, V = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
|
|
|
572
572
|
this.#i.add(e);
|
|
573
573
|
}
|
|
574
574
|
settled() {
|
|
575
|
-
return (this.#s ??=
|
|
575
|
+
return (this.#s ??= se()).promise;
|
|
576
576
|
}
|
|
577
577
|
static ensure() {
|
|
578
|
-
if (
|
|
579
|
-
let t =
|
|
580
|
-
!xt && !bt &&
|
|
578
|
+
if (B === null) {
|
|
579
|
+
let t = B = new e();
|
|
580
|
+
!xt && !bt && L(() => {
|
|
581
581
|
t.#e || t.flush();
|
|
582
582
|
});
|
|
583
583
|
}
|
|
584
|
-
return
|
|
584
|
+
return B;
|
|
585
585
|
}
|
|
586
586
|
apply() {
|
|
587
|
-
|
|
587
|
+
V = null;
|
|
588
588
|
}
|
|
589
589
|
schedule(e) {
|
|
590
590
|
if (yt = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
|
|
@@ -596,7 +596,7 @@ var gt = null, V = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
|
|
|
596
596
|
#S() {
|
|
597
597
|
if (this.linked) {
|
|
598
598
|
var e = this.#t, t = this.#n;
|
|
599
|
-
e === null || (e.#n = t), t === null ?
|
|
599
|
+
e === null || (e.#n = t), t === null ? _t = e : t.#t = e, this.linked = !1;
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
602
|
};
|
|
@@ -605,9 +605,9 @@ function Dt(e) {
|
|
|
605
605
|
bt = !0;
|
|
606
606
|
try {
|
|
607
607
|
var n;
|
|
608
|
-
for (e && (
|
|
609
|
-
if (
|
|
610
|
-
|
|
608
|
+
for (e && (B !== null && !B.is_fork && B.flush(), n = e());;) {
|
|
609
|
+
if ($e(), B === null) return n;
|
|
610
|
+
B.flush();
|
|
611
611
|
}
|
|
612
612
|
} finally {
|
|
613
613
|
bt = t;
|
|
@@ -615,9 +615,9 @@ function Dt(e) {
|
|
|
615
615
|
}
|
|
616
616
|
function Ot() {
|
|
617
617
|
try {
|
|
618
|
-
|
|
618
|
+
ze();
|
|
619
619
|
} catch (e) {
|
|
620
|
-
|
|
620
|
+
ln(e, yt);
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
var kt = null;
|
|
@@ -626,7 +626,7 @@ function At(e) {
|
|
|
626
626
|
if (t !== 0) {
|
|
627
627
|
for (var n = 0; n < t;) {
|
|
628
628
|
var r = e[n++];
|
|
629
|
-
if (!(r.f & 24576) && Yn(r) && (kt = /* @__PURE__ */ new Set(), tr(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null &&
|
|
629
|
+
if (!(r.f & 24576) && Yn(r) && (kt = /* @__PURE__ */ new Set(), tr(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && On(r), kt?.size > 0)) {
|
|
630
630
|
Ft.clear();
|
|
631
631
|
for (let e of kt) {
|
|
632
632
|
if (e.f & 24576) continue;
|
|
@@ -644,16 +644,16 @@ function At(e) {
|
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
646
|
function jt(e) {
|
|
647
|
-
|
|
647
|
+
B.schedule(e);
|
|
648
648
|
}
|
|
649
649
|
function Mt(e, t) {
|
|
650
650
|
if (!(e.f & 32 && e.f & 1024)) {
|
|
651
|
-
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e),
|
|
651
|
+
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), R(e, C);
|
|
652
652
|
for (var n = e.first; n !== null;) Mt(n, t), n = n.next;
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
function Nt(e) {
|
|
656
|
-
|
|
656
|
+
R(e, C);
|
|
657
657
|
for (var t = e.first; t !== null;) Nt(t), t = t.next;
|
|
658
658
|
}
|
|
659
659
|
//#endregion
|
|
@@ -664,7 +664,7 @@ function Lt(e, t) {
|
|
|
664
664
|
f: 0,
|
|
665
665
|
v: e,
|
|
666
666
|
reactions: null,
|
|
667
|
-
equals:
|
|
667
|
+
equals: je,
|
|
668
668
|
rv: 0,
|
|
669
669
|
wv: 0
|
|
670
670
|
};
|
|
@@ -677,28 +677,28 @@ function H(e, t) {
|
|
|
677
677
|
/*#__NO_SIDE_EFFECTS__*/
|
|
678
678
|
function Rt(e, t = !1, n = !0) {
|
|
679
679
|
let r = Lt(e);
|
|
680
|
-
return t || (r.equals =
|
|
680
|
+
return t || (r.equals = Ne), r;
|
|
681
681
|
}
|
|
682
682
|
function U(e, t, n = !1) {
|
|
683
|
-
return
|
|
683
|
+
return q !== null && (!Rn || q.f & 131072) && Xe() && q.f & 4325394 && (Bn === null || !Bn.has(e)) && We(), Vt(e, n ? Gt(t) : t, Ct);
|
|
684
684
|
}
|
|
685
685
|
var zt = null, Bt = 0;
|
|
686
686
|
function Vt(e, t, n = null) {
|
|
687
687
|
if (!e.equals(t)) {
|
|
688
|
-
|
|
688
|
+
In ? Ft.set(e, t) : Ft.has(e) || Ft.set(e, e.v);
|
|
689
689
|
var r = Et.ensure();
|
|
690
690
|
if (r.capture(e, t), e.f & 2) {
|
|
691
691
|
let t = e;
|
|
692
|
-
e.f & 2048 &&
|
|
692
|
+
e.f & 2048 && pt(t), V === null && tt(t);
|
|
693
693
|
}
|
|
694
|
-
e.wv = Jn(), zt = null, Bt = 0, Wt(e,
|
|
694
|
+
e.wv = Jn(), zt = null, Bt = 0, Wt(e, w, n), zt = null, Xe() && Y !== null && Y.f & 1024 && !(Y.f & 96) && (Hn === null ? Un([e]) : Hn.push(e)), !r.is_fork && Pt.size > 0 && !It && Ht();
|
|
695
695
|
}
|
|
696
696
|
return t;
|
|
697
697
|
}
|
|
698
698
|
function Ht() {
|
|
699
699
|
It = !1;
|
|
700
700
|
for (let e of Pt) {
|
|
701
|
-
e.f & 1024 &&
|
|
701
|
+
e.f & 1024 && R(e, T);
|
|
702
702
|
let t;
|
|
703
703
|
try {
|
|
704
704
|
t = Yn(e);
|
|
@@ -715,19 +715,19 @@ function Ut(e) {
|
|
|
715
715
|
function Wt(e, t, n) {
|
|
716
716
|
var r = e.reactions;
|
|
717
717
|
if (r !== null) {
|
|
718
|
-
var i =
|
|
718
|
+
var i = Xe(), a = r.length;
|
|
719
719
|
if (Bt += a, Bt > 1e5 && zt === null && (zt = /* @__PURE__ */ new Set()), zt !== null) {
|
|
720
720
|
if (zt.has(e)) return;
|
|
721
721
|
zt.add(e);
|
|
722
722
|
}
|
|
723
723
|
for (var o = 0; o < a; o++) {
|
|
724
724
|
var s = r[o], c = s.f;
|
|
725
|
-
if (i || s !==
|
|
726
|
-
var l = (c &
|
|
727
|
-
if (l &&
|
|
725
|
+
if (i || s !== Y) {
|
|
726
|
+
var l = (c & w) === 0;
|
|
727
|
+
if (l && R(s, t), c & 131072) Pt.add(s);
|
|
728
728
|
else if (c & 2) {
|
|
729
729
|
var u = s;
|
|
730
|
-
|
|
730
|
+
V?.delete(u), Wt(u, T, n);
|
|
731
731
|
} else if (l) {
|
|
732
732
|
var d = s;
|
|
733
733
|
c & 16 && kt !== null && kt.add(d), n === null ? jt(d) : n.push(d);
|
|
@@ -737,19 +737,19 @@ function Wt(e, t, n) {
|
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
739
|
function Gt(e) {
|
|
740
|
-
if (typeof e != "object" || !e ||
|
|
740
|
+
if (typeof e != "object" || !e || A in e || j in e) return e;
|
|
741
741
|
let t = re(e);
|
|
742
742
|
if (t !== te && t !== ne) return e;
|
|
743
743
|
var n = /* @__PURE__ */ new Map(), r = g(e), i = /* @__PURE__ */ H(0), a = null, o = Kn, s = (e) => {
|
|
744
744
|
if (Kn === o) return e();
|
|
745
|
-
var t =
|
|
746
|
-
|
|
745
|
+
var t = q, n = Kn;
|
|
746
|
+
J(null), qn(o);
|
|
747
747
|
var r = e();
|
|
748
|
-
return
|
|
748
|
+
return J(t), qn(n), r;
|
|
749
749
|
};
|
|
750
750
|
return r && n.set("length", /* @__PURE__ */ H(e.length, a)), new Proxy(e, {
|
|
751
751
|
defineProperty(e, t, r) {
|
|
752
|
-
(!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) &&
|
|
752
|
+
(!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && He();
|
|
753
753
|
var i = n.get(t);
|
|
754
754
|
return i === void 0 ? s(() => {
|
|
755
755
|
var e = /* @__PURE__ */ H(r.value, a);
|
|
@@ -767,7 +767,7 @@ function Gt(e) {
|
|
|
767
767
|
return !0;
|
|
768
768
|
},
|
|
769
769
|
get(t, r, i) {
|
|
770
|
-
if (r ===
|
|
770
|
+
if (r === A) return e;
|
|
771
771
|
var o = n.get(r), c = r in t;
|
|
772
772
|
if (o === void 0 && (!c || S(t, r)?.writable) && (o = s(() => /* @__PURE__ */ H(Gt(c ? t[r] : m), a)), n.set(r, o)), o !== void 0) {
|
|
773
773
|
var l = Q(o);
|
|
@@ -792,9 +792,9 @@ function Gt(e) {
|
|
|
792
792
|
return r;
|
|
793
793
|
},
|
|
794
794
|
has(e, t) {
|
|
795
|
-
if (t ===
|
|
795
|
+
if (t === A) return !0;
|
|
796
796
|
var r = n.get(t), i = r !== void 0 && r.v !== m || Reflect.has(e, t);
|
|
797
|
-
return (r !== void 0 ||
|
|
797
|
+
return (r !== void 0 || Y !== null && (!i || S(e, t)?.writable)) && (r === void 0 && (r = s(() => /* @__PURE__ */ H(i ? Gt(e[t]) : m, a)), n.set(t, r)), Q(r) === m) ? !1 : i;
|
|
798
798
|
},
|
|
799
799
|
set(e, t, o, c) {
|
|
800
800
|
var l = n.get(t), u = t in e;
|
|
@@ -828,7 +828,7 @@ function Gt(e) {
|
|
|
828
828
|
return t;
|
|
829
829
|
},
|
|
830
830
|
setPrototypeOf() {
|
|
831
|
-
|
|
831
|
+
Ue();
|
|
832
832
|
}
|
|
833
833
|
});
|
|
834
834
|
}
|
|
@@ -837,83 +837,83 @@ function Xt() {
|
|
|
837
837
|
if (Kt === void 0) {
|
|
838
838
|
Kt = window, qt = /Firefox/.test(navigator.userAgent);
|
|
839
839
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
840
|
-
Jt = S(t, "firstChild").get, Yt = S(t, "nextSibling").get, ie(e) && (e[
|
|
840
|
+
Jt = S(t, "firstChild").get, Yt = S(t, "nextSibling").get, ie(e) && (e[ve] = void 0, e[_e] = null, e[ye] = void 0, e.__e = void 0), ie(n) && (n[be] = void 0);
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function W(e = "") {
|
|
844
844
|
return document.createTextNode(e);
|
|
845
845
|
}
|
|
846
846
|
/*@__NO_SIDE_EFFECTS__*/
|
|
847
|
-
function
|
|
847
|
+
function Zt(e) {
|
|
848
848
|
return Jt.call(e);
|
|
849
849
|
}
|
|
850
850
|
/*@__NO_SIDE_EFFECTS__*/
|
|
851
|
-
function
|
|
851
|
+
function Qt(e) {
|
|
852
852
|
return Yt.call(e);
|
|
853
853
|
}
|
|
854
|
-
function
|
|
855
|
-
if (!
|
|
856
|
-
var n = /* @__PURE__ */
|
|
857
|
-
if (n === null) n =
|
|
854
|
+
function $t(e, t) {
|
|
855
|
+
if (!M) return /* @__PURE__ */ Zt(e);
|
|
856
|
+
var n = /* @__PURE__ */ Zt(P);
|
|
857
|
+
if (n === null) n = P.appendChild(W());
|
|
858
858
|
else if (t && n.nodeType !== 3) {
|
|
859
|
-
var r =
|
|
860
|
-
return n?.before(r),
|
|
859
|
+
var r = W();
|
|
860
|
+
return n?.before(r), F(r), r;
|
|
861
861
|
}
|
|
862
|
-
return t &&
|
|
862
|
+
return t && sn(n), F(n), n;
|
|
863
863
|
}
|
|
864
|
-
function
|
|
865
|
-
if (!
|
|
866
|
-
var n = /* @__PURE__ */
|
|
867
|
-
return n instanceof Comment && n.data === "" ? /* @__PURE__ */
|
|
864
|
+
function en(e, t = !1) {
|
|
865
|
+
if (!M) {
|
|
866
|
+
var n = /* @__PURE__ */ Zt(e);
|
|
867
|
+
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Qt(n) : n;
|
|
868
868
|
}
|
|
869
869
|
if (t) {
|
|
870
|
-
if (
|
|
871
|
-
var r =
|
|
872
|
-
return
|
|
870
|
+
if (P?.nodeType !== 3) {
|
|
871
|
+
var r = W();
|
|
872
|
+
return P?.before(r), F(r), r;
|
|
873
873
|
}
|
|
874
|
-
|
|
874
|
+
sn(P);
|
|
875
875
|
}
|
|
876
|
-
return
|
|
876
|
+
return P;
|
|
877
877
|
}
|
|
878
|
-
function
|
|
879
|
-
if (!
|
|
880
|
-
var n =
|
|
881
|
-
return
|
|
882
|
-
}
|
|
883
|
-
function
|
|
884
|
-
let r =
|
|
885
|
-
for (var i; t--;) i = r, r = /* @__PURE__ */
|
|
886
|
-
if (!
|
|
878
|
+
function tn(e, t = !1) {
|
|
879
|
+
if (!M) return /* @__PURE__ */ Zt(e);
|
|
880
|
+
var n = $t(e, t);
|
|
881
|
+
return De(e), n;
|
|
882
|
+
}
|
|
883
|
+
function nn(e, t = 1, n = !1) {
|
|
884
|
+
let r = M ? P : e;
|
|
885
|
+
for (var i; t--;) i = r, r = /* @__PURE__ */ Qt(r);
|
|
886
|
+
if (!M) return r;
|
|
887
887
|
if (n) {
|
|
888
888
|
if (r?.nodeType !== 3) {
|
|
889
|
-
var a =
|
|
890
|
-
return r === null ? i?.after(a) : r.before(a),
|
|
889
|
+
var a = W();
|
|
890
|
+
return r === null ? i?.after(a) : r.before(a), F(a), a;
|
|
891
891
|
}
|
|
892
|
-
|
|
892
|
+
sn(r);
|
|
893
893
|
}
|
|
894
|
-
return
|
|
894
|
+
return F(r), r;
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function rn(e) {
|
|
897
897
|
e.textContent = "";
|
|
898
898
|
}
|
|
899
|
-
function
|
|
899
|
+
function an() {
|
|
900
900
|
return !1;
|
|
901
901
|
}
|
|
902
|
-
function
|
|
902
|
+
function on(e, t, n) {
|
|
903
903
|
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);
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function sn(e) {
|
|
906
906
|
if (e.nodeValue.length < 65536) return;
|
|
907
907
|
let t = e.nextSibling;
|
|
908
908
|
for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
909
909
|
}
|
|
910
|
-
function
|
|
911
|
-
var t =
|
|
912
|
-
if (t === null) return
|
|
910
|
+
function cn(e) {
|
|
911
|
+
var t = Y;
|
|
912
|
+
if (t === null) return q.f |= k, e;
|
|
913
913
|
if (!(t.f & 32768) && !(t.f & 4)) throw e;
|
|
914
|
-
|
|
914
|
+
ln(e, t);
|
|
915
915
|
}
|
|
916
|
-
function
|
|
916
|
+
function ln(e, t) {
|
|
917
917
|
if (!(t !== null && t.f & 16384)) {
|
|
918
918
|
for (; t !== null;) {
|
|
919
919
|
if (t.f & 128 && !(t.f & 33570816)) {
|
|
@@ -932,21 +932,21 @@ function un(e, t) {
|
|
|
932
932
|
}
|
|
933
933
|
//#endregion
|
|
934
934
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/effects.js
|
|
935
|
-
function
|
|
936
|
-
|
|
935
|
+
function un(e) {
|
|
936
|
+
Y === null && (q === null && Re(e), Le()), In && Ie(e);
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function dn(e, t) {
|
|
939
939
|
var n = t.last;
|
|
940
940
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
941
941
|
}
|
|
942
|
-
function
|
|
943
|
-
var n =
|
|
944
|
-
n !== null && n.f & 8192 && (e |=
|
|
942
|
+
function fn(e, t) {
|
|
943
|
+
var n = Y;
|
|
944
|
+
n !== null && n.f & 8192 && (e |= ce);
|
|
945
945
|
var r = {
|
|
946
|
-
ctx:
|
|
946
|
+
ctx: I,
|
|
947
947
|
deps: null,
|
|
948
948
|
nodes: null,
|
|
949
|
-
f: e |
|
|
949
|
+
f: e | w | 512,
|
|
950
950
|
first: null,
|
|
951
951
|
fn: t,
|
|
952
952
|
last: null,
|
|
@@ -958,192 +958,192 @@ function pn(e, t) {
|
|
|
958
958
|
wv: 0,
|
|
959
959
|
ac: null
|
|
960
960
|
};
|
|
961
|
-
|
|
961
|
+
B?.register_created_effect(r);
|
|
962
962
|
var i = r;
|
|
963
963
|
if (e & 4) St === null ? Et.ensure().schedule(r) : St.push(r);
|
|
964
964
|
else if (t !== null) {
|
|
965
965
|
try {
|
|
966
966
|
tr(r);
|
|
967
967
|
} catch (e) {
|
|
968
|
-
throw
|
|
968
|
+
throw K(r), e;
|
|
969
969
|
}
|
|
970
|
-
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 |=
|
|
970
|
+
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 |= de));
|
|
971
971
|
}
|
|
972
|
-
if (i !== null && (i.parent = n, n !== null &&
|
|
973
|
-
var a =
|
|
972
|
+
if (i !== null && (i.parent = n, n !== null && dn(i, n), q !== null && q.f & 2 && !(e & 64))) {
|
|
973
|
+
var a = q;
|
|
974
974
|
(a.effects ??= []).push(i);
|
|
975
975
|
}
|
|
976
976
|
return r;
|
|
977
977
|
}
|
|
978
|
-
function
|
|
979
|
-
return
|
|
978
|
+
function pn() {
|
|
979
|
+
return q !== null && !Rn;
|
|
980
|
+
}
|
|
981
|
+
function mn(e) {
|
|
982
|
+
let t = fn(8, null);
|
|
983
|
+
return R(t, C), t.teardown = e, t;
|
|
980
984
|
}
|
|
981
985
|
function hn(e) {
|
|
982
|
-
|
|
983
|
-
|
|
986
|
+
un("$effect");
|
|
987
|
+
var t = Y.f;
|
|
988
|
+
if (!q && t & 32 && I !== null && !I.i) {
|
|
989
|
+
var n = I;
|
|
990
|
+
(n.e ??= []).push(e);
|
|
991
|
+
} else return gn(e);
|
|
984
992
|
}
|
|
985
993
|
function gn(e) {
|
|
986
|
-
|
|
987
|
-
var t = J.f;
|
|
988
|
-
if (!K && t & 32 && R !== null && !R.i) {
|
|
989
|
-
var n = R;
|
|
990
|
-
(n.e ??= []).push(e);
|
|
991
|
-
} else return _n(e);
|
|
994
|
+
return fn(4 | fe, e);
|
|
992
995
|
}
|
|
993
996
|
function _n(e) {
|
|
994
|
-
return pn(4 | ue, e);
|
|
995
|
-
}
|
|
996
|
-
function vn(e) {
|
|
997
997
|
Et.ensure();
|
|
998
|
-
let t =
|
|
998
|
+
let t = fn(64 | D, e);
|
|
999
999
|
return () => {
|
|
1000
|
-
|
|
1000
|
+
K(t);
|
|
1001
1001
|
};
|
|
1002
1002
|
}
|
|
1003
|
-
function
|
|
1003
|
+
function vn(e) {
|
|
1004
1004
|
Et.ensure();
|
|
1005
|
-
let t =
|
|
1005
|
+
let t = fn(64 | D, e);
|
|
1006
1006
|
return (e = {}) => new Promise((n) => {
|
|
1007
|
-
e.outro ?
|
|
1008
|
-
|
|
1009
|
-
}) : (
|
|
1007
|
+
e.outro ? kn(t, () => {
|
|
1008
|
+
K(t), n(void 0);
|
|
1009
|
+
}) : (K(t), n(void 0));
|
|
1010
1010
|
});
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1013
|
-
return
|
|
1012
|
+
function yn(e) {
|
|
1013
|
+
return fn(4, e);
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1016
|
-
return
|
|
1015
|
+
function bn(e) {
|
|
1016
|
+
return fn(me | D, e);
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1019
|
-
return
|
|
1018
|
+
function xn(e, t = 0) {
|
|
1019
|
+
return fn(8 | t, e);
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1022
|
-
|
|
1023
|
-
|
|
1021
|
+
function Sn(e, t = [], n = [], r = []) {
|
|
1022
|
+
it(r, t, n, (t) => {
|
|
1023
|
+
fn(8, () => {
|
|
1024
1024
|
e(...t.map(Q));
|
|
1025
1025
|
});
|
|
1026
1026
|
});
|
|
1027
1027
|
}
|
|
1028
|
-
function
|
|
1029
|
-
return
|
|
1028
|
+
function Cn(e, t = 0) {
|
|
1029
|
+
return fn(16 | t, e);
|
|
1030
1030
|
}
|
|
1031
|
-
function
|
|
1032
|
-
return
|
|
1031
|
+
function G(e) {
|
|
1032
|
+
return fn(32 | D, e);
|
|
1033
1033
|
}
|
|
1034
|
-
function
|
|
1034
|
+
function wn(e) {
|
|
1035
1035
|
var t = e.teardown;
|
|
1036
1036
|
if (t !== null) {
|
|
1037
|
-
let n =
|
|
1038
|
-
|
|
1037
|
+
let n = In, r = q;
|
|
1038
|
+
Ln(!0), J(null);
|
|
1039
1039
|
try {
|
|
1040
1040
|
t.call(null);
|
|
1041
1041
|
} catch (t) {
|
|
1042
|
-
|
|
1042
|
+
ln(t, e.parent);
|
|
1043
1043
|
} finally {
|
|
1044
|
-
|
|
1044
|
+
Ln(n), J(r);
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1048
|
+
function Tn(e, t = !1) {
|
|
1049
1049
|
var n = e.first;
|
|
1050
1050
|
for (e.first = e.last = null; n !== null;) {
|
|
1051
1051
|
let e = n.ac;
|
|
1052
|
-
e !== null &&
|
|
1053
|
-
e.abort(
|
|
1052
|
+
e !== null && rt(() => {
|
|
1053
|
+
e.abort(xe);
|
|
1054
1054
|
});
|
|
1055
1055
|
var r = n.next;
|
|
1056
|
-
n.f & 64 ? n.parent = null :
|
|
1056
|
+
n.f & 64 ? n.parent = null : K(n, t), n = r;
|
|
1057
1057
|
}
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function En(e) {
|
|
1060
1060
|
for (var t = e.first; t !== null;) {
|
|
1061
1061
|
var n = t.next;
|
|
1062
|
-
t.f & 32 ||
|
|
1062
|
+
t.f & 32 || K(t), t = n;
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1065
|
+
function K(e, t = !0) {
|
|
1066
1066
|
var n = !1;
|
|
1067
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (
|
|
1067
|
+
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Dn(e.nodes.start, e.nodes.end), n = !0), e.f |= ue, Tn(e, t && !n), er(e, 0);
|
|
1068
1068
|
var r = e.nodes && e.nodes.t;
|
|
1069
1069
|
if (r !== null) for (let e of r) e.stop();
|
|
1070
|
-
|
|
1070
|
+
wn(e), e.f ^= ue, e.f |= le;
|
|
1071
1071
|
var i = e.parent;
|
|
1072
|
-
i !== null && i.first !== null &&
|
|
1072
|
+
i !== null && i.first !== null && On(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1073
1073
|
}
|
|
1074
|
-
function
|
|
1074
|
+
function Dn(e, t) {
|
|
1075
1075
|
for (; e !== null;) {
|
|
1076
|
-
var n = e === t ? null : /* @__PURE__ */
|
|
1076
|
+
var n = e === t ? null : /* @__PURE__ */ Qt(e);
|
|
1077
1077
|
e.remove(), e = n;
|
|
1078
1078
|
}
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1080
|
+
function On(e) {
|
|
1081
1081
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1082
1082
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function kn(e, t, n = !0) {
|
|
1085
1085
|
var r = [];
|
|
1086
|
-
e.f |= 256,
|
|
1086
|
+
e.f |= 256, An(e, r, !0);
|
|
1087
1087
|
var i = () => {
|
|
1088
|
-
n &&
|
|
1088
|
+
n && K(e), t && t();
|
|
1089
1089
|
}, a = r.length;
|
|
1090
1090
|
if (a > 0) {
|
|
1091
1091
|
var o = () => --a || i();
|
|
1092
1092
|
for (var s of r) s.out(o);
|
|
1093
1093
|
} else i();
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function An(e, t, n) {
|
|
1096
1096
|
if (!(e.f & 8192)) {
|
|
1097
|
-
e.f ^=
|
|
1097
|
+
e.f ^= ce;
|
|
1098
1098
|
var r = e.nodes && e.nodes.t;
|
|
1099
1099
|
if (r !== null) for (let e of r) (e.is_global || n) && t.push(e);
|
|
1100
1100
|
for (var i = e.first; i !== null;) {
|
|
1101
1101
|
var a = i.next;
|
|
1102
1102
|
if (!(i.f & 64)) {
|
|
1103
1103
|
var o = !!(i.f & 65536) || !!(i.f & 32) && !!(e.f & 16);
|
|
1104
|
-
|
|
1104
|
+
An(i, t, o ? n : !1);
|
|
1105
1105
|
}
|
|
1106
1106
|
i = a;
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
|
-
function
|
|
1111
|
-
e.f &= -257,
|
|
1110
|
+
function jn(e) {
|
|
1111
|
+
e.f &= -257, Mn(e, !0);
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1113
|
+
function Mn(e, t) {
|
|
1114
1114
|
if (!(e.f & 256) && e.f & 8192) {
|
|
1115
|
-
e.f ^=
|
|
1115
|
+
e.f ^= ce, e.f & 1024 || (R(e, w), Et.ensure().schedule(e));
|
|
1116
1116
|
for (var n = e.first; n !== null;) {
|
|
1117
1117
|
var r = n.next, i = !!(n.f & 65536) || !!(n.f & 32);
|
|
1118
|
-
|
|
1118
|
+
Mn(n, i ? t : !1), n = r;
|
|
1119
1119
|
}
|
|
1120
1120
|
var a = e.nodes && e.nodes.t;
|
|
1121
1121
|
if (a !== null) for (let e of a) (e.is_global || t) && e.in();
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
|
-
function
|
|
1124
|
+
function Nn(e, t) {
|
|
1125
1125
|
if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
|
|
1126
|
-
var i = n === r ? null : /* @__PURE__ */
|
|
1126
|
+
var i = n === r ? null : /* @__PURE__ */ Qt(n);
|
|
1127
1127
|
t.append(n), n = i;
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
1130
|
//#endregion
|
|
1131
1131
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/legacy.js
|
|
1132
|
-
var
|
|
1133
|
-
function
|
|
1134
|
-
|
|
1132
|
+
var Pn = null, Fn = !1, In = !1;
|
|
1133
|
+
function Ln(e) {
|
|
1134
|
+
In = e;
|
|
1135
1135
|
}
|
|
1136
|
-
var
|
|
1137
|
-
function
|
|
1138
|
-
|
|
1136
|
+
var q = null, Rn = !1;
|
|
1137
|
+
function J(e) {
|
|
1138
|
+
q = e;
|
|
1139
1139
|
}
|
|
1140
|
-
var
|
|
1141
|
-
function
|
|
1142
|
-
|
|
1140
|
+
var Y = null;
|
|
1141
|
+
function zn(e) {
|
|
1142
|
+
Y = e;
|
|
1143
1143
|
}
|
|
1144
1144
|
var Bn = null;
|
|
1145
1145
|
function Vn(e) {
|
|
1146
|
-
|
|
1146
|
+
q !== null && (q.f & 2097152 || q.f & 2) && (Bn ??= /* @__PURE__ */ new Set()).add(e);
|
|
1147
1147
|
}
|
|
1148
1148
|
var X = null, Z = 0, Hn = null;
|
|
1149
1149
|
function Un(e) {
|
|
@@ -1162,9 +1162,9 @@ function Yn(e) {
|
|
|
1162
1162
|
if (t & 4096) {
|
|
1163
1163
|
for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
|
|
1164
1164
|
var a = n[i];
|
|
1165
|
-
if (Yn(a) &&
|
|
1165
|
+
if (Yn(a) && mt(a), a.wv > e.wv) return !0;
|
|
1166
1166
|
}
|
|
1167
|
-
t & 512 &&
|
|
1167
|
+
t & 512 && V === null && R(e, C);
|
|
1168
1168
|
}
|
|
1169
1169
|
return !1;
|
|
1170
1170
|
}
|
|
@@ -1172,39 +1172,39 @@ function Xn(e, t, n = !0) {
|
|
|
1172
1172
|
var r = e.reactions;
|
|
1173
1173
|
if (r !== null && !(Bn !== null && Bn.has(e))) for (var i = 0; i < r.length; i++) {
|
|
1174
1174
|
var a = r[i];
|
|
1175
|
-
a.f & 2 ? Xn(a, t, !1) : t === a && (n ?
|
|
1175
|
+
a.f & 2 ? Xn(a, t, !1) : t === a && (n ? R(a, w) : a.f & 1024 && R(a, T), jt(a));
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
1178
|
function Zn(e) {
|
|
1179
|
-
var t = X, n = Z, r = Hn, i =
|
|
1180
|
-
X = null, Z = 0, Hn = null,
|
|
1181
|
-
e.ac.abort(
|
|
1179
|
+
var t = X, n = Z, r = Hn, i = q, a = Bn, o = I, s = Rn, c = Kn, l = e.f;
|
|
1180
|
+
X = null, Z = 0, Hn = null, q = l & 96 ? null : e, Bn = null, Ke(e.ctx), Rn = !1, Kn = ++Gn, e.ac !== null && (rt(() => {
|
|
1181
|
+
e.ac.abort(xe);
|
|
1182
1182
|
}), e.ac = null);
|
|
1183
1183
|
try {
|
|
1184
|
-
e.f |= j;
|
|
1185
|
-
var u = e.fn, d = u();
|
|
1186
1184
|
e.f |= O;
|
|
1185
|
+
var u = e.fn, d = u();
|
|
1186
|
+
e.f |= E;
|
|
1187
1187
|
var f = Qn(e);
|
|
1188
|
-
if (
|
|
1188
|
+
if (Xe() && Hn !== null && !Rn && f !== null && !(e.f & 6146)) for (var p = 0; p < Hn.length; p++) Xn(Hn[p], e);
|
|
1189
1189
|
if (i !== null && i !== e) {
|
|
1190
1190
|
if (Gn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Gn;
|
|
1191
1191
|
if (t !== null) for (let e of t) e.rv = Gn;
|
|
1192
1192
|
Hn !== null && (r === null ? r = Hn : r.push(...Hn));
|
|
1193
1193
|
}
|
|
1194
|
-
return e.f & 8388608 && (e.f ^=
|
|
1194
|
+
return e.f & 8388608 && (e.f ^= k), d;
|
|
1195
1195
|
} catch (t) {
|
|
1196
|
-
return Qn(e),
|
|
1196
|
+
return Qn(e), cn(t);
|
|
1197
1197
|
} finally {
|
|
1198
|
-
e.f ^=
|
|
1198
|
+
e.f ^= O, X = t, Z = n, Hn = r, q = i, Bn = a, Ke(o), Rn = s, Kn = c;
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
1201
1201
|
function Qn(e) {
|
|
1202
|
-
var t = e.deps, n =
|
|
1202
|
+
var t = e.deps, n = B?.is_fork;
|
|
1203
1203
|
if (X !== null) {
|
|
1204
1204
|
var r;
|
|
1205
1205
|
if (n || er(e, Z), t !== null && Z > 0) for (t.length = Z + X.length, r = 0; r < X.length; r++) t[Z + r] = X[r];
|
|
1206
1206
|
else e.deps = t = X;
|
|
1207
|
-
if (
|
|
1207
|
+
if (pn() && e.f & 512) for (r = Z; r < t.length; r++) (t[r].reactions ??= []).push(e);
|
|
1208
1208
|
} else !n && t !== null && Z < t.length && (er(e, Z), t.length = Z);
|
|
1209
1209
|
return t;
|
|
1210
1210
|
}
|
|
@@ -1219,9 +1219,9 @@ function $n(e, t) {
|
|
|
1219
1219
|
}
|
|
1220
1220
|
if (n === null && t.f & 2 && (X === null || !v.call(X, t))) {
|
|
1221
1221
|
var a = t;
|
|
1222
|
-
a.f & 512 && (a.f ^= 512), a.v !== m &&
|
|
1223
|
-
a.ac.abort(
|
|
1224
|
-
}),
|
|
1222
|
+
a.f & 512 && (a.f ^= 512), a.v !== m && tt(a), a.ac !== null && rt(() => {
|
|
1223
|
+
a.ac.abort(xe), a.ac = null, R(a, w);
|
|
1224
|
+
}), ht(a), er(a, 0);
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
1227
|
function er(e, t) {
|
|
@@ -1231,45 +1231,45 @@ function er(e, t) {
|
|
|
1231
1231
|
function tr(e) {
|
|
1232
1232
|
var t = e.f;
|
|
1233
1233
|
if (!(t & 16384)) {
|
|
1234
|
-
|
|
1235
|
-
var n =
|
|
1236
|
-
|
|
1234
|
+
R(e, C);
|
|
1235
|
+
var n = Y, r = Fn;
|
|
1236
|
+
Y = e, Fn = !(t & 96);
|
|
1237
1237
|
try {
|
|
1238
|
-
t & 16777232 ?
|
|
1238
|
+
t & 16777232 ? En(e) : Tn(e), wn(e);
|
|
1239
1239
|
var i = Zn(e);
|
|
1240
1240
|
e.teardown = typeof i == "function" ? i : null, e.wv = Wn;
|
|
1241
1241
|
} finally {
|
|
1242
|
-
|
|
1242
|
+
Fn = r, Y = n;
|
|
1243
1243
|
}
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
1246
|
function Q(e) {
|
|
1247
1247
|
var t = !!(e.f & 2);
|
|
1248
|
-
if (
|
|
1249
|
-
var n =
|
|
1250
|
-
if (
|
|
1248
|
+
if (Pn?.add(e), q !== null && !Rn && !(Y !== null && Y.f & 16384) && (Bn === null || !Bn.has(e))) {
|
|
1249
|
+
var n = q.deps;
|
|
1250
|
+
if (q.f & 2097152) e.rv < Gn && (e.rv = Gn, X === null && n !== null && n[Z] === e ? Z++ : X === null ? X = [e] : X.push(e));
|
|
1251
1251
|
else {
|
|
1252
|
-
|
|
1252
|
+
q.deps ??= [], v.call(q.deps, e) || q.deps.push(e);
|
|
1253
1253
|
var r = e.reactions;
|
|
1254
|
-
r === null ? e.reactions = [
|
|
1254
|
+
r === null ? e.reactions = [q] : v.call(r, q) || r.push(q);
|
|
1255
1255
|
}
|
|
1256
1256
|
}
|
|
1257
|
-
if (
|
|
1257
|
+
if (In && Ft.has(e)) return Ft.get(e);
|
|
1258
1258
|
if (t) {
|
|
1259
1259
|
var i = e;
|
|
1260
|
-
if (
|
|
1260
|
+
if (In) {
|
|
1261
1261
|
var a = i.v;
|
|
1262
|
-
return (!(i.f & 1024) && i.reactions !== null || rr(i)) && (a =
|
|
1262
|
+
return (!(i.f & 1024) && i.reactions !== null || rr(i)) && (a = pt(i)), Ft.set(i, a), a;
|
|
1263
1263
|
}
|
|
1264
|
-
var o = !(i.f & 512) && !
|
|
1265
|
-
Yn(i) && (o && (i.f |= 512),
|
|
1264
|
+
var o = !(i.f & 512) && !Rn && q !== null && (Fn || !!(q.f & 512)), s = (i.f & E) === 0;
|
|
1265
|
+
Yn(i) && (o && (i.f |= 512), mt(i)), o && !s && (gt(i), nr(i));
|
|
1266
1266
|
}
|
|
1267
|
-
if (
|
|
1267
|
+
if (V?.has(e)) return V.get(e);
|
|
1268
1268
|
if (e.f & 8388608) throw e.v;
|
|
1269
1269
|
return e.v;
|
|
1270
1270
|
}
|
|
1271
1271
|
function nr(e) {
|
|
1272
|
-
if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (
|
|
1272
|
+
if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (gt(t), nr(t));
|
|
1273
1273
|
}
|
|
1274
1274
|
function rr(e) {
|
|
1275
1275
|
if (e.v === m) return !0;
|
|
@@ -1278,19 +1278,19 @@ function rr(e) {
|
|
|
1278
1278
|
return !1;
|
|
1279
1279
|
}
|
|
1280
1280
|
function ir(e) {
|
|
1281
|
-
var t =
|
|
1281
|
+
var t = Rn;
|
|
1282
1282
|
try {
|
|
1283
|
-
return
|
|
1283
|
+
return Rn = !0, e();
|
|
1284
1284
|
} finally {
|
|
1285
|
-
|
|
1285
|
+
Rn = t;
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
1288
|
function ar(e) {
|
|
1289
1289
|
if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
|
|
1290
|
-
if (
|
|
1290
|
+
if (A in e) or(e);
|
|
1291
1291
|
else if (!Array.isArray(e)) for (let t in e) {
|
|
1292
1292
|
let n = e[t];
|
|
1293
|
-
typeof n == "object" && n &&
|
|
1293
|
+
typeof n == "object" && n && A in n && or(n);
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
1296
|
}
|
|
@@ -1346,8 +1346,8 @@ function mr(e) {
|
|
|
1346
1346
|
return a || n;
|
|
1347
1347
|
}
|
|
1348
1348
|
});
|
|
1349
|
-
var u =
|
|
1350
|
-
|
|
1349
|
+
var u = q, d = Y;
|
|
1350
|
+
J(null), zn(null);
|
|
1351
1351
|
try {
|
|
1352
1352
|
for (var f, p = []; a !== null && a !== t;) {
|
|
1353
1353
|
try {
|
|
@@ -1366,7 +1366,7 @@ function mr(e) {
|
|
|
1366
1366
|
throw f;
|
|
1367
1367
|
}
|
|
1368
1368
|
} finally {
|
|
1369
|
-
e[sr] = t, delete e.currentTarget,
|
|
1369
|
+
e[sr] = t, delete e.currentTarget, J(u), zn(d);
|
|
1370
1370
|
}
|
|
1371
1371
|
}
|
|
1372
1372
|
}
|
|
@@ -1377,13 +1377,13 @@ function gr(e) {
|
|
|
1377
1377
|
return hr?.createHTML(e) ?? e;
|
|
1378
1378
|
}
|
|
1379
1379
|
function _r(e) {
|
|
1380
|
-
var t =
|
|
1380
|
+
var t = on("template");
|
|
1381
1381
|
return t.innerHTML = gr(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1382
1382
|
}
|
|
1383
1383
|
//#endregion
|
|
1384
1384
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/template.js
|
|
1385
1385
|
function vr(e, t) {
|
|
1386
|
-
var n =
|
|
1386
|
+
var n = Y;
|
|
1387
1387
|
n.nodes === null && (n.nodes = {
|
|
1388
1388
|
start: e,
|
|
1389
1389
|
end: t,
|
|
@@ -1395,25 +1395,25 @@ function vr(e, t) {
|
|
|
1395
1395
|
function yr(e, t) {
|
|
1396
1396
|
var n = !!(t & 1), r = !!(t & 2), i, a = !e.startsWith("<!>");
|
|
1397
1397
|
return () => {
|
|
1398
|
-
if (
|
|
1399
|
-
i === void 0 && (i = _r(a ? e : "<!>" + e), n || (i = /* @__PURE__ */
|
|
1398
|
+
if (M) return vr(P, null), P;
|
|
1399
|
+
i === void 0 && (i = _r(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ Zt(i)));
|
|
1400
1400
|
var t = r || qt ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1401
1401
|
if (n) {
|
|
1402
|
-
var o = /* @__PURE__ */
|
|
1402
|
+
var o = /* @__PURE__ */ Zt(t), s = t.lastChild;
|
|
1403
1403
|
vr(o, s);
|
|
1404
1404
|
} else vr(t, t);
|
|
1405
1405
|
return t;
|
|
1406
1406
|
};
|
|
1407
1407
|
}
|
|
1408
1408
|
function br() {
|
|
1409
|
-
if (
|
|
1410
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), n =
|
|
1409
|
+
if (M) return vr(P, null), P;
|
|
1410
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), n = W();
|
|
1411
1411
|
return e.append(t, n), vr(t, n), e;
|
|
1412
1412
|
}
|
|
1413
1413
|
function xr(e, t) {
|
|
1414
|
-
if (
|
|
1415
|
-
var n =
|
|
1416
|
-
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end =
|
|
1414
|
+
if (M) {
|
|
1415
|
+
var n = Y;
|
|
1416
|
+
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = P), Ee();
|
|
1417
1417
|
return;
|
|
1418
1418
|
}
|
|
1419
1419
|
e !== null && e.before(t);
|
|
@@ -1428,8 +1428,8 @@ function Cr(e) {
|
|
|
1428
1428
|
function wr(e) {
|
|
1429
1429
|
let t = 0, n = Lt(0), r;
|
|
1430
1430
|
return () => {
|
|
1431
|
-
|
|
1432
|
-
|
|
1431
|
+
pn() && (Q(n), xn(() => (t === 0 && (r = ir(() => e(() => Ut(n)))), t += 1, () => {
|
|
1432
|
+
L(() => {
|
|
1433
1433
|
--t, t === 0 && (r?.(), r = void 0, Ut(n));
|
|
1434
1434
|
});
|
|
1435
1435
|
})));
|
|
@@ -1437,7 +1437,7 @@ function wr(e) {
|
|
|
1437
1437
|
}
|
|
1438
1438
|
//#endregion
|
|
1439
1439
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
|
|
1440
|
-
var Tr =
|
|
1440
|
+
var Tr = de | D;
|
|
1441
1441
|
function Er(e, t, n, r) {
|
|
1442
1442
|
new Dr(e, t, n, r);
|
|
1443
1443
|
}
|
|
@@ -1446,7 +1446,7 @@ var Dr = class {
|
|
|
1446
1446
|
is_pending = !1;
|
|
1447
1447
|
transform_error;
|
|
1448
1448
|
#e;
|
|
1449
|
-
#t =
|
|
1449
|
+
#t = M ? P : null;
|
|
1450
1450
|
#n;
|
|
1451
1451
|
#r;
|
|
1452
1452
|
#i;
|
|
@@ -1465,30 +1465,30 @@ var Dr = class {
|
|
|
1465
1465
|
}));
|
|
1466
1466
|
constructor(e, t, n, r) {
|
|
1467
1467
|
this.#e = e, this.#n = t, this.#r = (e) => {
|
|
1468
|
-
var t =
|
|
1468
|
+
var t = Y;
|
|
1469
1469
|
t.b = this, t.f |= 128, n(e);
|
|
1470
|
-
}, this.parent =
|
|
1471
|
-
if (
|
|
1470
|
+
}, this.parent = Y.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = Cn(() => {
|
|
1471
|
+
if (M) {
|
|
1472
1472
|
let e = this.#t;
|
|
1473
|
-
|
|
1473
|
+
Ee();
|
|
1474
1474
|
let t = e.data === "[!";
|
|
1475
1475
|
if (e.data.startsWith("[?")) {
|
|
1476
1476
|
let t = JSON.parse(e.data.slice(2));
|
|
1477
1477
|
this.#_(t);
|
|
1478
1478
|
} else t ? this.#y() : this.#g();
|
|
1479
1479
|
} else this.#b();
|
|
1480
|
-
}, Tr),
|
|
1480
|
+
}, Tr), M && (this.#e = P);
|
|
1481
1481
|
}
|
|
1482
1482
|
#g() {
|
|
1483
1483
|
try {
|
|
1484
|
-
this.#a =
|
|
1484
|
+
this.#a = G(() => this.#r(this.#e));
|
|
1485
1485
|
} catch (e) {
|
|
1486
1486
|
this.error(e);
|
|
1487
1487
|
}
|
|
1488
1488
|
}
|
|
1489
1489
|
#_(e) {
|
|
1490
1490
|
let t = this.#n.failed, { reset: n, invoke_onerror: r } = this.#v(e);
|
|
1491
|
-
|
|
1491
|
+
L(r), t && (this.#s = G(() => {
|
|
1492
1492
|
t(this.#e, () => e, () => n);
|
|
1493
1493
|
}));
|
|
1494
1494
|
}
|
|
@@ -1496,10 +1496,10 @@ var Dr = class {
|
|
|
1496
1496
|
var t = !1, n = !1;
|
|
1497
1497
|
let r = () => {
|
|
1498
1498
|
if (t) {
|
|
1499
|
-
|
|
1499
|
+
Te();
|
|
1500
1500
|
return;
|
|
1501
1501
|
}
|
|
1502
|
-
t = !0, n &&
|
|
1502
|
+
t = !0, n && Ge(), this.#s !== null && kn(this.#s, () => {
|
|
1503
1503
|
this.#s = null;
|
|
1504
1504
|
}), this.#S(() => {
|
|
1505
1505
|
this.#b();
|
|
@@ -1511,45 +1511,45 @@ var Dr = class {
|
|
|
1511
1511
|
try {
|
|
1512
1512
|
n = !0, this.#n.onerror?.(e, r), n = !1;
|
|
1513
1513
|
} catch (e) {
|
|
1514
|
-
|
|
1514
|
+
ln(e, this.#i && this.#i.parent);
|
|
1515
1515
|
}
|
|
1516
1516
|
}
|
|
1517
1517
|
};
|
|
1518
1518
|
}
|
|
1519
1519
|
#y() {
|
|
1520
1520
|
let e = this.#n.pending;
|
|
1521
|
-
e && (this.is_pending = !0, this.#o =
|
|
1522
|
-
var e = this.#c = document.createDocumentFragment(), t =
|
|
1521
|
+
e && (this.is_pending = !0, this.#o = G(() => e(this.#e)), L(() => {
|
|
1522
|
+
var e = this.#c = document.createDocumentFragment(), t = W(), n = !1;
|
|
1523
1523
|
if (e.append(t), this.#a = this.#S(() => {
|
|
1524
1524
|
try {
|
|
1525
|
-
return
|
|
1525
|
+
return G(() => this.#r(t));
|
|
1526
1526
|
} catch (e) {
|
|
1527
1527
|
try {
|
|
1528
1528
|
this.error(e), n = !0;
|
|
1529
1529
|
} catch (e) {
|
|
1530
|
-
|
|
1530
|
+
ln(e, this.#i.parent);
|
|
1531
1531
|
}
|
|
1532
1532
|
return null;
|
|
1533
1533
|
}
|
|
1534
1534
|
}), this.#a === null) {
|
|
1535
|
-
this.#c = null, n && this.#x(
|
|
1535
|
+
this.#c = null, n && this.#x(B);
|
|
1536
1536
|
return;
|
|
1537
1537
|
}
|
|
1538
|
-
this.#u === 0 && (this.#e.before(e), this.#c = null,
|
|
1538
|
+
this.#u === 0 && (this.#e.before(e), this.#c = null, kn(this.#o, () => {
|
|
1539
1539
|
this.#o = null;
|
|
1540
|
-
}), this.#x(
|
|
1540
|
+
}), this.#x(B));
|
|
1541
1541
|
}));
|
|
1542
1542
|
}
|
|
1543
1543
|
#b() {
|
|
1544
1544
|
try {
|
|
1545
|
-
if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a =
|
|
1545
|
+
if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = G(() => {
|
|
1546
1546
|
this.#r(this.#e);
|
|
1547
1547
|
}), this.#u > 0) {
|
|
1548
1548
|
var e = this.#c = document.createDocumentFragment();
|
|
1549
|
-
|
|
1549
|
+
Nn(this.#a, e);
|
|
1550
1550
|
let t = this.#n.pending;
|
|
1551
|
-
this.#o =
|
|
1552
|
-
} else this.#x(
|
|
1551
|
+
this.#o = G(() => t(this.#e));
|
|
1552
|
+
} else this.#x(B);
|
|
1553
1553
|
} catch (e) {
|
|
1554
1554
|
this.error(e);
|
|
1555
1555
|
}
|
|
@@ -1558,7 +1558,7 @@ var Dr = class {
|
|
|
1558
1558
|
this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
|
|
1559
1559
|
}
|
|
1560
1560
|
defer_effect(e) {
|
|
1561
|
-
|
|
1561
|
+
nt(e, this.#f, this.#p);
|
|
1562
1562
|
}
|
|
1563
1563
|
is_rendered() {
|
|
1564
1564
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -1567,12 +1567,12 @@ var Dr = class {
|
|
|
1567
1567
|
return !!this.#n.pending;
|
|
1568
1568
|
}
|
|
1569
1569
|
#S(e) {
|
|
1570
|
-
var t =
|
|
1571
|
-
|
|
1570
|
+
var t = Y, n = q, r = I;
|
|
1571
|
+
zn(this.#i), J(this.#i), Ke(this.#i.ctx);
|
|
1572
1572
|
try {
|
|
1573
1573
|
return Et.ensure(), e();
|
|
1574
1574
|
} finally {
|
|
1575
|
-
|
|
1575
|
+
zn(t), J(n), Ke(r);
|
|
1576
1576
|
}
|
|
1577
1577
|
}
|
|
1578
1578
|
#C(e, t) {
|
|
@@ -1580,12 +1580,12 @@ var Dr = class {
|
|
|
1580
1580
|
this.parent && this.parent.#C(e, t);
|
|
1581
1581
|
return;
|
|
1582
1582
|
}
|
|
1583
|
-
this.#u += e, this.#u === 0 && (this.#x(t), this.#o &&
|
|
1583
|
+
this.#u += e, this.#u === 0 && (this.#x(t), this.#o && kn(this.#o, () => {
|
|
1584
1584
|
this.#o = null;
|
|
1585
1585
|
}), this.#c &&= (this.#e.before(this.#c), null));
|
|
1586
1586
|
}
|
|
1587
1587
|
update_pending_count(e, t) {
|
|
1588
|
-
this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0,
|
|
1588
|
+
this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, L(() => {
|
|
1589
1589
|
this.#d = !1, this.#m && Vt(this.#m, this.#l);
|
|
1590
1590
|
}));
|
|
1591
1591
|
}
|
|
@@ -1594,73 +1594,73 @@ var Dr = class {
|
|
|
1594
1594
|
}
|
|
1595
1595
|
error(e) {
|
|
1596
1596
|
if (!this.#n.onerror && !this.#n.failed) throw e;
|
|
1597
|
-
|
|
1597
|
+
B?.is_fork ? (this.#a && B.skip_effect(this.#a), this.#o && B.skip_effect(this.#o), this.#s && B.skip_effect(this.#s), B.oncommit(() => {
|
|
1598
1598
|
this.#w(e);
|
|
1599
1599
|
})) : this.#w(e);
|
|
1600
1600
|
}
|
|
1601
1601
|
#w(e) {
|
|
1602
|
-
this.#a &&= (
|
|
1602
|
+
this.#a &&= (K(this.#a), null), this.#o &&= (K(this.#o), null), this.#s &&= (K(this.#s), null), M && (F(this.#t), Oe(), F(ke()));
|
|
1603
1603
|
let t = this.#n.failed, n = (e) => {
|
|
1604
1604
|
let { reset: n, invoke_onerror: r } = this.#v(e);
|
|
1605
1605
|
r(), t && (this.#s = this.#S(() => {
|
|
1606
1606
|
try {
|
|
1607
|
-
return
|
|
1608
|
-
var r =
|
|
1607
|
+
return G(() => {
|
|
1608
|
+
var r = Y;
|
|
1609
1609
|
r.b = this, r.f |= 128, t(this.#e, () => e, () => n);
|
|
1610
1610
|
});
|
|
1611
1611
|
} catch (e) {
|
|
1612
|
-
return
|
|
1612
|
+
return ln(e, this.#i.parent), null;
|
|
1613
1613
|
}
|
|
1614
1614
|
}));
|
|
1615
1615
|
};
|
|
1616
|
-
|
|
1616
|
+
L(() => {
|
|
1617
1617
|
var t;
|
|
1618
1618
|
try {
|
|
1619
1619
|
t = this.transform_error(e);
|
|
1620
1620
|
} catch (e) {
|
|
1621
|
-
|
|
1621
|
+
ln(e, this.#i && this.#i.parent);
|
|
1622
1622
|
return;
|
|
1623
1623
|
}
|
|
1624
|
-
typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) =>
|
|
1624
|
+
typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => ln(e, this.#i && this.#i.parent)) : n(t);
|
|
1625
1625
|
});
|
|
1626
1626
|
}
|
|
1627
1627
|
};
|
|
1628
1628
|
function Or(e, t) {
|
|
1629
1629
|
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1630
|
-
n !== (e[
|
|
1630
|
+
n !== (e[be] ??= e.nodeValue) && (e[be] = n, e.nodeValue = `${n}`);
|
|
1631
1631
|
}
|
|
1632
1632
|
function kr(e, t) {
|
|
1633
1633
|
return Mr(e, t);
|
|
1634
1634
|
}
|
|
1635
1635
|
function Ar(e, t) {
|
|
1636
1636
|
Xt(), t.intro = t.intro ?? !1;
|
|
1637
|
-
let n = t.target, r =
|
|
1637
|
+
let n = t.target, r = M, i = P;
|
|
1638
1638
|
try {
|
|
1639
|
-
for (var a = /* @__PURE__ */
|
|
1639
|
+
for (var a = /* @__PURE__ */ Zt(n); a && (a.nodeType !== 8 || a.data !== "[");) a = /* @__PURE__ */ Qt(a);
|
|
1640
1640
|
if (!a) throw p;
|
|
1641
|
-
|
|
1641
|
+
N(!0), F(a);
|
|
1642
1642
|
let r = Mr(e, {
|
|
1643
1643
|
...t,
|
|
1644
1644
|
anchor: a
|
|
1645
1645
|
});
|
|
1646
|
-
return
|
|
1646
|
+
return N(!1), r;
|
|
1647
1647
|
} catch (r) {
|
|
1648
1648
|
if (r instanceof Error && r.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw r;
|
|
1649
|
-
return r !== p && console.warn("Failed to hydrate: ", r), t.recover === !1 &&
|
|
1649
|
+
return r !== p && console.warn("Failed to hydrate: ", r), t.recover === !1 && Be(), Xt(), rn(n), N(!1), kr(e, t);
|
|
1650
1650
|
} finally {
|
|
1651
|
-
|
|
1651
|
+
N(r), F(i);
|
|
1652
1652
|
}
|
|
1653
1653
|
}
|
|
1654
1654
|
var jr = /* @__PURE__ */ new Map();
|
|
1655
1655
|
function Mr(e, { target: t, anchor: n, props: r = {}, events: i, context: a, intro: o = !0, transformError: s }) {
|
|
1656
1656
|
Xt();
|
|
1657
|
-
var c = void 0, l =
|
|
1658
|
-
var o = n ?? t.appendChild(
|
|
1657
|
+
var c = void 0, l = vn(() => {
|
|
1658
|
+
var o = n ?? t.appendChild(W());
|
|
1659
1659
|
Er(o, { pending: () => {} }, (t) => {
|
|
1660
|
-
|
|
1661
|
-
var n =
|
|
1662
|
-
if (a && (n.c = a), i && (r.$$events = i),
|
|
1663
|
-
|
|
1660
|
+
qe({});
|
|
1661
|
+
var n = I;
|
|
1662
|
+
if (a && (n.c = a), i && (r.$$events = i), M && vr(t, null), c = e(t, r) || Ye(), M && (Y.nodes.end = P, P === null || P.nodeType !== 8 || P.data !== "]")) throw we(), p;
|
|
1663
|
+
Je();
|
|
1664
1664
|
}, s);
|
|
1665
1665
|
var l = /* @__PURE__ */ new Set(), u = (e) => {
|
|
1666
1666
|
for (var n = 0; n < e.length; n++) {
|
|
@@ -1707,73 +1707,73 @@ var Fr = class {
|
|
|
1707
1707
|
#a = (e) => {
|
|
1708
1708
|
if (this.#e.has(e)) {
|
|
1709
1709
|
var t = this.#e.get(e), n = this.#t.get(t);
|
|
1710
|
-
if (n)
|
|
1710
|
+
if (n) jn(n), this.#r.delete(t);
|
|
1711
1711
|
else {
|
|
1712
1712
|
var r = this.#n.get(t);
|
|
1713
|
-
r && (
|
|
1713
|
+
r && (jn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
|
|
1714
1714
|
}
|
|
1715
1715
|
for (let [t, n] of this.#e) {
|
|
1716
1716
|
if (this.#e.delete(t), t === e) break;
|
|
1717
1717
|
let r = this.#n.get(n);
|
|
1718
|
-
r && (
|
|
1718
|
+
r && (K(r.effect), this.#n.delete(n));
|
|
1719
1719
|
}
|
|
1720
1720
|
for (let [e, r] of this.#t) {
|
|
1721
1721
|
if (e === t || this.#r.has(e)) continue;
|
|
1722
1722
|
let i = () => {
|
|
1723
1723
|
if (Array.from(this.#e.values()).includes(e)) {
|
|
1724
1724
|
var t = document.createDocumentFragment();
|
|
1725
|
-
|
|
1725
|
+
Nn(r, t), t.append(W()), this.#n.set(e, {
|
|
1726
1726
|
effect: r,
|
|
1727
1727
|
fragment: t
|
|
1728
1728
|
});
|
|
1729
|
-
} else
|
|
1729
|
+
} else K(r);
|
|
1730
1730
|
this.#r.delete(e), this.#t.delete(e);
|
|
1731
1731
|
};
|
|
1732
|
-
this.#i || !n ? (this.#r.add(e),
|
|
1732
|
+
this.#i || !n ? (this.#r.add(e), kn(r, i, !1)) : i();
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
1735
1735
|
};
|
|
1736
1736
|
#o = (e) => {
|
|
1737
1737
|
this.#e.delete(e);
|
|
1738
1738
|
let t = Array.from(this.#e.values());
|
|
1739
|
-
for (let [e, n] of this.#n) t.includes(e) || (
|
|
1739
|
+
for (let [e, n] of this.#n) t.includes(e) || (K(n.effect), this.#n.delete(e));
|
|
1740
1740
|
};
|
|
1741
1741
|
ensure(e, t) {
|
|
1742
|
-
var n =
|
|
1742
|
+
var n = B, r = an();
|
|
1743
1743
|
if (t && !this.#t.has(e) && !this.#n.has(e)) {
|
|
1744
1744
|
if (r) {
|
|
1745
|
-
var i = document.createDocumentFragment(), a =
|
|
1745
|
+
var i = document.createDocumentFragment(), a = W();
|
|
1746
1746
|
i.append(a), this.#n.set(e, {
|
|
1747
|
-
effect:
|
|
1747
|
+
effect: G(() => t(a)),
|
|
1748
1748
|
fragment: i
|
|
1749
1749
|
});
|
|
1750
|
-
} else this.#t.set(e,
|
|
1750
|
+
} else this.#t.set(e, G(() => t(this.anchor)));
|
|
1751
1751
|
}
|
|
1752
1752
|
if (this.#e.set(n, e), r) {
|
|
1753
1753
|
for (let [t, r] of this.#t) t === e ? n.unskip_effect(r) : n.skip_effect(r);
|
|
1754
1754
|
for (let [t, r] of this.#n) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);
|
|
1755
1755
|
n.oncommit(this.#a), n.ondiscard(this.#o);
|
|
1756
|
-
} else
|
|
1756
|
+
} else M && (this.anchor = P), this.#a(n);
|
|
1757
1757
|
}
|
|
1758
1758
|
};
|
|
1759
1759
|
//#endregion
|
|
1760
1760
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/if.js
|
|
1761
1761
|
function Ir(e, t, n = !1) {
|
|
1762
1762
|
var r;
|
|
1763
|
-
|
|
1764
|
-
var i = new Fr(e), a = n ?
|
|
1763
|
+
M && (r = P, Ee());
|
|
1764
|
+
var i = new Fr(e), a = n ? de : 0;
|
|
1765
1765
|
function o(e, t) {
|
|
1766
|
-
if (
|
|
1767
|
-
var n =
|
|
1766
|
+
if (M) {
|
|
1767
|
+
var n = Ae(r);
|
|
1768
1768
|
if (e !== parseInt(n.substring(1))) {
|
|
1769
|
-
var a =
|
|
1770
|
-
|
|
1769
|
+
var a = ke();
|
|
1770
|
+
F(a), i.anchor = a, N(!1), i.ensure(e, t), N(!0);
|
|
1771
1771
|
return;
|
|
1772
1772
|
}
|
|
1773
1773
|
}
|
|
1774
1774
|
i.ensure(e, t);
|
|
1775
1775
|
}
|
|
1776
|
-
|
|
1776
|
+
Cn(() => {
|
|
1777
1777
|
var e = !1;
|
|
1778
1778
|
t((t, n = 0) => {
|
|
1779
1779
|
e = !0, o(n, t);
|
|
@@ -1785,7 +1785,7 @@ function Ir(e, t, n = !1) {
|
|
|
1785
1785
|
function Lr(e, t, n) {
|
|
1786
1786
|
for (var r = [], i = t.length, a, o = t.length, s = 0; s < i; s++) {
|
|
1787
1787
|
let n = t[s];
|
|
1788
|
-
|
|
1788
|
+
kn(n, () => {
|
|
1789
1789
|
if (a) {
|
|
1790
1790
|
if (a.pending.delete(n), a.done.add(n), a.pending.size === 0) {
|
|
1791
1791
|
var t = e.outrogroups;
|
|
@@ -1798,7 +1798,7 @@ function Lr(e, t, n) {
|
|
|
1798
1798
|
var c = r.length === 0 && n !== null && e.pending.size === 0;
|
|
1799
1799
|
if (c) {
|
|
1800
1800
|
var l = n, u = l.parentNode;
|
|
1801
|
-
|
|
1801
|
+
rn(u), u.append(l), e.items.clear();
|
|
1802
1802
|
}
|
|
1803
1803
|
Rr(e, t, !c);
|
|
1804
1804
|
} else a = {
|
|
@@ -1814,7 +1814,7 @@ function Rr(e, t, n = !0) {
|
|
|
1814
1814
|
}
|
|
1815
1815
|
for (var i = 0; i < t.length; i++) {
|
|
1816
1816
|
var a = t[i];
|
|
1817
|
-
r?.has(a) ? (a.f |=
|
|
1817
|
+
r?.has(a) ? (a.f |= pe, Nn(a, document.createDocumentFragment())) : K(t[i], n);
|
|
1818
1818
|
}
|
|
1819
1819
|
}
|
|
1820
1820
|
var zr;
|
|
@@ -1822,15 +1822,15 @@ function Br(e, t, n, r, i, a = null) {
|
|
|
1822
1822
|
var o = e, s = /* @__PURE__ */ new Map();
|
|
1823
1823
|
if (t & 4) {
|
|
1824
1824
|
var c = e;
|
|
1825
|
-
o =
|
|
1825
|
+
o = M ? F(/* @__PURE__ */ Zt(c)) : c.appendChild(W());
|
|
1826
1826
|
}
|
|
1827
|
-
|
|
1828
|
-
var l = null, u = /* @__PURE__ */
|
|
1827
|
+
M && Ee();
|
|
1828
|
+
var l = null, u = /* @__PURE__ */ dt(() => {
|
|
1829
1829
|
var e = n();
|
|
1830
1830
|
return g(e) ? e : e == null ? [] : y(e);
|
|
1831
1831
|
}), d, f = /* @__PURE__ */ new Map(), p = !0;
|
|
1832
1832
|
function m(e) {
|
|
1833
|
-
_.effect.f & 16384 || (_.pending.delete(e), _.fallback = l, Hr(_, d, o, t, r), l !== null && (d.length === 0 ? l.f & 33554432 ? (l.f ^=
|
|
1833
|
+
_.effect.f & 16384 || (_.pending.delete(e), _.fallback = l, Hr(_, d, o, t, r), l !== null && (d.length === 0 ? l.f & 33554432 ? (l.f ^= pe, Wr(l, null, o)) : jn(l) : kn(l, () => {
|
|
1834
1834
|
l = null;
|
|
1835
1835
|
})));
|
|
1836
1836
|
}
|
|
@@ -1838,23 +1838,23 @@ function Br(e, t, n, r, i, a = null) {
|
|
|
1838
1838
|
_.pending.delete(e);
|
|
1839
1839
|
}
|
|
1840
1840
|
var _ = {
|
|
1841
|
-
effect:
|
|
1841
|
+
effect: Cn(() => {
|
|
1842
1842
|
d = Q(u);
|
|
1843
1843
|
var e = d.length;
|
|
1844
1844
|
let c = !1;
|
|
1845
|
-
|
|
1846
|
-
for (var g = /* @__PURE__ */ new Set(), _ =
|
|
1847
|
-
|
|
1845
|
+
M && Ae(o) === "[!" != (e === 0) && (o = ke(), F(o), N(!1), c = !0);
|
|
1846
|
+
for (var g = /* @__PURE__ */ new Set(), _ = B, v = an(), y = 0; y < e; y += 1) {
|
|
1847
|
+
M && P.nodeType === 8 && P.data === "]" && (o = P, c = !0, N(!1));
|
|
1848
1848
|
var b = d[y], x = r(b, y), S = p ? null : s.get(x);
|
|
1849
|
-
S ? (S.v && Vt(S.v, b), S.i && Vt(S.i, y), v && _.unskip_effect(S.e)) : (S = Ur(s, p ? o : zr ??=
|
|
1849
|
+
S ? (S.v && Vt(S.v, b), S.i && Vt(S.i, y), v && _.unskip_effect(S.e)) : (S = Ur(s, p ? o : zr ??= W(), b, x, y, i, t, n), p || (S.e.f |= pe), s.set(x, S)), g.add(x);
|
|
1850
1850
|
}
|
|
1851
|
-
if (e === 0 && a && !l && (p ? l =
|
|
1851
|
+
if (e === 0 && a && !l && (p ? l = G(() => a(o)) : (l = G(() => a(zr ??= W())), l.f |= pe)), e > g.size && Fe("", "", ""), M && e > 0 && F(ke()), !p) {
|
|
1852
1852
|
if (f.set(_, g), v) {
|
|
1853
1853
|
for (let [e, t] of s) g.has(e) || _.skip_effect(t.e);
|
|
1854
1854
|
_.oncommit(m), _.ondiscard(h);
|
|
1855
1855
|
} else m(_);
|
|
1856
1856
|
}
|
|
1857
|
-
c &&
|
|
1857
|
+
c && N(!0), Q(u);
|
|
1858
1858
|
}),
|
|
1859
1859
|
flags: t,
|
|
1860
1860
|
items: s,
|
|
@@ -1862,7 +1862,7 @@ function Br(e, t, n, r, i, a = null) {
|
|
|
1862
1862
|
outrogroups: null,
|
|
1863
1863
|
fallback: l
|
|
1864
1864
|
};
|
|
1865
|
-
p = !1,
|
|
1865
|
+
p = !1, M && (o = P);
|
|
1866
1866
|
}
|
|
1867
1867
|
function Vr(e) {
|
|
1868
1868
|
for (; e !== null && !(e.f & 32);) e = e.next;
|
|
@@ -1873,8 +1873,8 @@ function Hr(e, t, n, r, i) {
|
|
|
1873
1873
|
if (a) for (_ = 0; _ < o; _ += 1) m = t[_], h = i(m, _), g = s.get(h).e, g.f & 33554432 || (g.nodes?.a?.measure(), (d ??= /* @__PURE__ */ new Set()).add(g));
|
|
1874
1874
|
for (_ = 0; _ < o; _ += 1) {
|
|
1875
1875
|
if (m = t[_], h = i(m, _), g = s.get(h).e, e.outrogroups !== null) for (let t of e.outrogroups) t.pending.delete(g), t.done.delete(g);
|
|
1876
|
-
if (g.f & 8192 && (
|
|
1877
|
-
if (g.f ^=
|
|
1876
|
+
if (g.f & 8192 && (jn(g), a && (g.nodes?.a?.unfix(), (d ??= /* @__PURE__ */ new Set()).delete(g))), g.f & 33554432) {
|
|
1877
|
+
if (g.f ^= pe, g === c) Wr(g, null, n);
|
|
1878
1878
|
else {
|
|
1879
1879
|
var v = u ? u.next : c;
|
|
1880
1880
|
g === e.effect.last && (e.effect.last = g.prev), g.prev && (g.prev.next = g.next), g.next && (g.next.prev = g.prev), Gr(e, u, g), Gr(e, g, v), Wr(g, v, n), u = g, f = [], p = [], c = Vr(u.next);
|
|
@@ -1916,7 +1916,7 @@ function Hr(e, t, n, r, i) {
|
|
|
1916
1916
|
Lr(e, te, re);
|
|
1917
1917
|
}
|
|
1918
1918
|
}
|
|
1919
|
-
a &&
|
|
1919
|
+
a && L(() => {
|
|
1920
1920
|
if (d !== void 0) for (g of d) g.nodes?.a?.apply();
|
|
1921
1921
|
});
|
|
1922
1922
|
}
|
|
@@ -1925,14 +1925,14 @@ function Ur(e, t, n, r, i, a, o, s) {
|
|
|
1925
1925
|
return {
|
|
1926
1926
|
v: c,
|
|
1927
1927
|
i: l,
|
|
1928
|
-
e:
|
|
1928
|
+
e: G(() => (a(t, c ?? n, l ?? i, s), () => {
|
|
1929
1929
|
e.delete(r);
|
|
1930
1930
|
}))
|
|
1931
1931
|
};
|
|
1932
1932
|
}
|
|
1933
1933
|
function Wr(e, t, n) {
|
|
1934
1934
|
if (e.nodes) for (var r = e.nodes.start, i = e.nodes.end, a = t && !(t.f & 33554432) ? t.nodes.start : n; r !== null;) {
|
|
1935
|
-
var o = /* @__PURE__ */
|
|
1935
|
+
var o = /* @__PURE__ */ Qt(r);
|
|
1936
1936
|
if (a.before(r), r === i) return;
|
|
1937
1937
|
r = o;
|
|
1938
1938
|
}
|
|
@@ -1943,11 +1943,11 @@ function Gr(e, t, n) {
|
|
|
1943
1943
|
//#endregion
|
|
1944
1944
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/css.js
|
|
1945
1945
|
function Kr(e, t) {
|
|
1946
|
-
|
|
1947
|
-
e =
|
|
1946
|
+
yn(() => {
|
|
1947
|
+
e = Y?.parent?.nodes?.start ?? e;
|
|
1948
1948
|
var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
|
|
1949
1949
|
if (!r.querySelector("#" + t.hash)) {
|
|
1950
|
-
let e =
|
|
1950
|
+
let e = on("style");
|
|
1951
1951
|
e.id = t.hash, e.textContent = t.code, r.appendChild(e);
|
|
1952
1952
|
}
|
|
1953
1953
|
});
|
|
@@ -1955,13 +1955,13 @@ function Kr(e, t) {
|
|
|
1955
1955
|
//#endregion
|
|
1956
1956
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/actions.js
|
|
1957
1957
|
function qr(e, t, n) {
|
|
1958
|
-
|
|
1958
|
+
yn(() => {
|
|
1959
1959
|
var r = ir(() => t(e, n?.()) || {});
|
|
1960
1960
|
if (n && r?.update) {
|
|
1961
1961
|
var i = !1, a = {};
|
|
1962
|
-
|
|
1962
|
+
xn(() => {
|
|
1963
1963
|
var e = n();
|
|
1964
|
-
ar(e), i &&
|
|
1964
|
+
ar(e), i && Me(a, e) && (a = e, r.update(e));
|
|
1965
1965
|
}), i = !0;
|
|
1966
1966
|
}
|
|
1967
1967
|
if (r?.destroy) return () => r.destroy();
|
|
@@ -2026,10 +2026,10 @@ function Qr(e, t) {
|
|
|
2026
2026
|
//#endregion
|
|
2027
2027
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/class.js
|
|
2028
2028
|
function $r(e, t, n, r, i, a) {
|
|
2029
|
-
var o = e[
|
|
2030
|
-
if (
|
|
2029
|
+
var o = e[ve];
|
|
2030
|
+
if (M || o !== n || o === void 0) {
|
|
2031
2031
|
var s = Yr(n, r, a);
|
|
2032
|
-
(!
|
|
2032
|
+
(!M || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[ve] = n;
|
|
2033
2033
|
} else if (a && i !== a) for (var c in a) {
|
|
2034
2034
|
var l = !!a[c];
|
|
2035
2035
|
(i == null || l !== !!i[c]) && e.classList.toggle(c, l);
|
|
@@ -2045,32 +2045,32 @@ function ei(e, t = {}, n, r) {
|
|
|
2045
2045
|
}
|
|
2046
2046
|
}
|
|
2047
2047
|
function ti(e, t, n, r) {
|
|
2048
|
-
var i = e[
|
|
2049
|
-
if (
|
|
2048
|
+
var i = e[ye];
|
|
2049
|
+
if (M || i !== t) {
|
|
2050
2050
|
var a = Qr(t, r);
|
|
2051
|
-
(!
|
|
2051
|
+
(!M || a !== e.getAttribute("style")) && (a == null ? e.removeAttribute("style") : e.style.cssText = a), e[ye] = t;
|
|
2052
2052
|
} else r && (Array.isArray(r) ? (ei(e, n?.[0], r[0]), ei(e, n?.[1], r[1], "important")) : ei(e, n, r));
|
|
2053
2053
|
return r;
|
|
2054
2054
|
}
|
|
2055
2055
|
//#endregion
|
|
2056
2056
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/attributes.js
|
|
2057
|
-
var ni = Symbol("is custom element"), ri = Symbol("is html"), ii =
|
|
2057
|
+
var ni = Symbol("is custom element"), ri = Symbol("is html"), ii = Se ? "link" : "LINK";
|
|
2058
2058
|
function $(e, t, n, r) {
|
|
2059
2059
|
var i = oi(e);
|
|
2060
|
-
|
|
2060
|
+
M && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === ii) || i[t] !== (i[t] = n) && (t === "loading" && (e[ge] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && ci(e).has(t) ? e[t] = n : e.setAttribute(t, n));
|
|
2061
2061
|
}
|
|
2062
2062
|
function ai(e, t, n) {
|
|
2063
|
-
var r =
|
|
2064
|
-
let a =
|
|
2065
|
-
|
|
2063
|
+
var r = q, i = Y;
|
|
2064
|
+
let a = M;
|
|
2065
|
+
M && N(!1), J(null), zn(null);
|
|
2066
2066
|
try {
|
|
2067
2067
|
t !== "style" && (si.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? ci(e).has(t) : n && typeof n == "object") ? e[t] = n : $(e, t, n == null ? n : String(n));
|
|
2068
2068
|
} finally {
|
|
2069
|
-
|
|
2069
|
+
J(r), zn(i), a && N(!0);
|
|
2070
2070
|
}
|
|
2071
2071
|
}
|
|
2072
2072
|
function oi(e) {
|
|
2073
|
-
return e[
|
|
2073
|
+
return e[_e] ??= {
|
|
2074
2074
|
[ni]: e.nodeName.includes("-"),
|
|
2075
2075
|
[ri]: e.namespaceURI === h
|
|
2076
2076
|
};
|
|
@@ -2089,13 +2089,13 @@ function ci(e) {
|
|
|
2089
2089
|
//#endregion
|
|
2090
2090
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
|
|
2091
2091
|
function li(e, t) {
|
|
2092
|
-
return e === t || e?.[
|
|
2092
|
+
return e === t || e?.[A] === t;
|
|
2093
2093
|
}
|
|
2094
|
-
function ui(e =
|
|
2095
|
-
var i =
|
|
2096
|
-
return
|
|
2094
|
+
function ui(e = Ye(), t, n, r) {
|
|
2095
|
+
var i = I.r, a = Y;
|
|
2096
|
+
return yn(() => {
|
|
2097
2097
|
var o, s;
|
|
2098
|
-
return
|
|
2098
|
+
return xn(() => {
|
|
2099
2099
|
o = s, s = r?.() || [], ir(() => {
|
|
2100
2100
|
li(n(...s), e) || (t(e, ...s), o && li(n(...o), e) && t(null, ...o));
|
|
2101
2101
|
});
|
|
@@ -2125,14 +2125,14 @@ function fi(e) {
|
|
|
2125
2125
|
//#endregion
|
|
2126
2126
|
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/props.js
|
|
2127
2127
|
function pi(e, t, n, r) {
|
|
2128
|
-
var i = !0, a = !!(n & 8), o = !!(n & 16), s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */
|
|
2128
|
+
var i = !0, a = !!(n & 8), o = !!(n & 16), s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ ct(r), Q(l)) : (c && (c = !1, s = o ? ir(r) : r), s);
|
|
2129
2129
|
let d;
|
|
2130
2130
|
if (a) {
|
|
2131
|
-
var f =
|
|
2131
|
+
var f = A in e || he in e;
|
|
2132
2132
|
d = S(e, t)?.set ?? (f && t in e ? (n) => e[t] = n : void 0);
|
|
2133
2133
|
}
|
|
2134
2134
|
var p, m = !1;
|
|
2135
|
-
a ? [p, m] = fi(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i &&
|
|
2135
|
+
a ? [p, m] = fi(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i && Ve(t), d(p)));
|
|
2136
2136
|
var h = i ? () => {
|
|
2137
2137
|
var n = e[t];
|
|
2138
2138
|
return n === void 0 ? u() : (c = !0, n);
|
|
@@ -2147,15 +2147,15 @@ function pi(e, t, n, r) {
|
|
|
2147
2147
|
return arguments.length > 0 ? ((!i || !t || g || m) && d(t ? h() : e), e) : h();
|
|
2148
2148
|
});
|
|
2149
2149
|
}
|
|
2150
|
-
var _ = !1, v = (n & 1 ?
|
|
2150
|
+
var _ = !1, v = (n & 1 ? ct : dt)(() => (_ = !1, h()));
|
|
2151
2151
|
a && Q(v);
|
|
2152
|
-
var y =
|
|
2152
|
+
var y = Y;
|
|
2153
2153
|
return (function(e, t) {
|
|
2154
2154
|
if (arguments.length > 0) {
|
|
2155
2155
|
let n = t ? Q(v) : i && a ? Gt(e) : e;
|
|
2156
2156
|
return U(v, n), _ = !0, s !== void 0 && (s = n), e;
|
|
2157
2157
|
}
|
|
2158
|
-
return
|
|
2158
|
+
return In && _ || y.f & 16384 ? v.v : Q(v);
|
|
2159
2159
|
});
|
|
2160
2160
|
}
|
|
2161
2161
|
//#endregion
|
|
@@ -2179,7 +2179,7 @@ var hi = class {
|
|
|
2179
2179
|
return Q(t.get(r) ?? n(r, Reflect.get(e, r)));
|
|
2180
2180
|
},
|
|
2181
2181
|
has(e, r) {
|
|
2182
|
-
return r ===
|
|
2182
|
+
return r === he || (Q(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
|
|
2183
2183
|
},
|
|
2184
2184
|
set(e, r, i) {
|
|
2185
2185
|
return U(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
|
|
@@ -2256,7 +2256,7 @@ typeof HTMLElement == "function" && (gi = class extends HTMLElement {
|
|
|
2256
2256
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2257
2257
|
function e(e) {
|
|
2258
2258
|
return (t) => {
|
|
2259
|
-
let n =
|
|
2259
|
+
let n = on("slot");
|
|
2260
2260
|
e !== "default" && (n.name = e), xr(t, n);
|
|
2261
2261
|
};
|
|
2262
2262
|
}
|
|
@@ -2275,8 +2275,8 @@ typeof HTMLElement == "function" && (gi = class extends HTMLElement {
|
|
|
2275
2275
|
$$slots: t,
|
|
2276
2276
|
$$host: this
|
|
2277
2277
|
}
|
|
2278
|
-
}), this.$$me =
|
|
2279
|
-
|
|
2278
|
+
}), this.$$me = _n(() => {
|
|
2279
|
+
xn(() => {
|
|
2280
2280
|
this.$$r = !0;
|
|
2281
2281
|
for (let e of b(this.$$c)) {
|
|
2282
2282
|
if (!this.$$p_d[e]?.reflect) continue;
|
|
@@ -2363,27 +2363,27 @@ var bi = /* @__PURE__ */ yr("<nds-icon-button></nds-icon-button>", 2), xi = /* @
|
|
|
2363
2363
|
code: "\n /* Lay the component out as a flex box, not the default inline custom element.\n As `display: inline` the host is blockified into a block flex item that\n wraps its content in a line box, so the inline-flex root sits on the text\n baseline — a play button then rides that baseline and drifts\n LOW versus the calculator button (whose flex-item wrapper has no line box).\n inline-flex + center removes the line box and keeps the trigger centered. */:host {display:inline-flex;align-items:center;}.pie-tool-tts-inline.svelte-9msc39 {position:relative;display:inline-flex;align-items:center;gap:0.5rem;}.pie-tool-tts-inline--controls-row.svelte-9msc39 {width:100%;justify-content:flex-end;}\n\n /* The play/pause trigger is an <nds-icon-button> host; the NDS component\n owns its shape, colours and hover/active/focus states. This class only\n drives the host's size via NDS's own size custom properties (see the size\n variants below), so the light-DOM inner button matches the toolbar's\n md/sm/lg dimensions. */.pie-tool-tts-inline__trigger-zoom.svelte-9msc39 {display:inline-flex;}.pie-tool-tts-inline__trigger.svelte-9msc39 {display:inline-flex;\n /* Outer button size follows the toolbar size variants (below); the glyph\n keeps the NDS-native icon size (size=\"small\") so it isn't oversized. */--height-32: 2rem;\n /* Host-settable accent: the NDS tertiary glyph colour derives from\n --color-interactive-blue, remapped here to the same chain the panel\n paints with. It defaults through --pie-button-color so the glyph follows\n the active theme; the literal is the no-theme last resort. */--color-interactive-blue: var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));\n /* NDS palette bridge — keep in sync with the copies in\n assessment-toolkit ItemToolBar and section-player SectionItemsPane\n (asserted by scripts/check-theme-tokens.mjs). The vendored button\n paints its fill, its on-accent glyph, its hover ring and its focus\n ring from the NDS design-system palette, which no PIE theme sets, so\n a tertiary trigger kept a #f3f5f7 pill on every page — and once the\n glyph followed the theme, a light glyph landed on that light pill. */--color-new-gray: var(--pie-background-dark, #f3f5f7);--color-primary-white: var(--pie-white, #ffffff);--color-primary-black: var(--pie-text, #000000);--color-focus-blue: var(--pie-button-focus-outline, #2b87ff);}\n\n /* Non-NDS fallback trigger (host opted out of nds-icon-button). Inherits\n the plain `__control` box; only override to keep the round trigger\n shape and the themeable accent colour on its glyph. */.pie-tool-tts-inline__trigger--plain.svelte-9msc39 {border-radius:50%;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));}\n\n /* Active/open trigger hooks.\n ---------------------------------------------------------------------------\n README documents --pie-tool-trigger-active-background / -color /\n -border-color as the supported way to style this trigger while its panel is\n open, instead of overriding broad tokens like --pie-primary. These rules\n honour all three, matching how tool-calculator-inline-desmos wires the same\n hooks.\n ---------------------------------------------------------------------------\n Every fallback is the value this element resolves to when the hook is\n unset, so the rules are inert by default: unlike the calculator, this\n trigger has no filled active look, and adding one would restyle the\n control for every host. Hosts opt in by setting a hook.\n\n Keyed off [aria-expanded='true'], which the markup already maintains, so\n there is no new state to keep in sync. */.pie-tool-tts-inline__trigger--plain[aria-expanded=\"true\"].svelte-9msc39 {\n /* All three fallbacks are `__control`'s chains, including the glyph colour.\n Not `--plain`'s: that rule also declares `color`, but `__control` repeats\n it further down the sheet at equal specificity, so `__control` wins and\n `--plain`'s accent declaration never applies. Measured in Chromium: the\n plain trigger's glyph is --pie-button-color either way. */background:var(\n --pie-tool-trigger-active-background,\n var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)))\n );color:var(\n --pie-tool-trigger-active-color,\n var(--pie-button-color, var(--pie-text, #222))\n );border-color:var(\n --pie-tool-trigger-active-border-color,\n var(--pie-button-border, var(--pie-border, #c6c6c6))\n );}\n\n /* NDS variant: its glyph colour derives from --color-interactive-blue, so the\n accent is remapped rather than painted, exactly as the base rule does. Only\n the foreground hook applies -- background and border are owned by the NDS\n button's own internals, and setting them on this host element would paint a\n box the tertiary button does not currently have. */.pie-tool-tts-inline__trigger:not(.pie-tool-tts-inline__trigger--plain)[aria-expanded=\"true\"].svelte-9msc39 {--color-interactive-blue: var(\n --pie-tool-trigger-active-color,\n var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)))\n );}.pie-tool-tts-inline__control.svelte-9msc39:hover:not(:disabled) {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__control.svelte-9msc39:active:not(:disabled) {transform:translateY(0);box-shadow:none;}.pie-tool-tts-inline__control.svelte-9msc39: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);}\n\n /* Activating play/pause deliberately KEEPS focus on the trigger while the\n controls panel opens beside it, so where focus sits has to stay visible —\n including after a pointer activation, where the browser suppresses\n :focus-visible and would paint no ring at all. Scoped to\n `:focus:not(:focus-visible)` so it only fills that gap: genuine keyboard\n focus keeps whatever the shared `__control` rule (plain trigger) or the NDS\n component (nds-icon-button) already paints, untouched.\n Two selectors because the two trigger variants focus different nodes: the\n plain fallback IS the button, while <nds-icon-button> holds focus on an\n inner light-DOM <button> that Lit creates — so it carries no Svelte scoping\n class and must be reached with :global(). */.pie-tool-tts-inline__trigger.svelte-9msc39:focus:not(:focus-visible),\n .pie-tool-tts-inline__trigger.svelte-9msc39 button:focus:not(:focus-visible) {outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;}.pie-tool-tts-inline__panel.svelte-9msc39 {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);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-9msc39 {position:absolute;z-index:2;top:50%;right:0;left:auto;}.pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 {\n /* Fixed so it escapes overflow-clipping ancestors; top / right /\n max-width are set inline by measureLeftAlignedOverlay(). */position:fixed;}.pie-tool-tts-inline__panel--row.svelte-9msc39 {position:absolute;z-index:2;top:100%;right:0;left:auto;}.pie-tool-tts-inline__control.svelte-9msc39 {display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid 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;}\n\n /* Icon-only panel controls (rewind / fast-forward / stop) are round to match\n the circular NDS trigger; the pill-shaped speed radios keep square corners. */.pie-tool-tts-inline__control--secondary.svelte-9msc39 {border-radius:50%;}.pie-tool-tts-inline__speed-group.svelte-9msc39 {display:inline-flex;flex-wrap:wrap;align-items:center;gap:0.25rem;}.pie-tool-tts-inline__control--speed.svelte-9msc39 {width:auto;height:2rem;padding:0;font-size:1rem;font-weight:500;letter-spacing:0;white-space:nowrap;}.pie-tool-tts-inline__control--speed[aria-checked='true'].svelte-9msc39 {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-9msc39 {line-height:1.2;\n /* Render speed labels lowercase regardless of the configured casing.\n Applied to the visible text only; the radio's accessible name comes\n from aria-label (option.ariaLabel), so screen readers still hear the\n canonical \"Slow speed\" / \"Normal speed\" / \"Fast speed\". */text-transform:lowercase;}\n\n /* Reserve the bold (selected) width — stacked popper only. Switching the\n selected speed there would otherwise change the label width and resize the\n fit-content card. The ghost is a zero-height, hidden grid row whose bold text\n sets the column width. The inline (roomy) row keeps its natural sizing. */.pie-tool-tts-inline__speed-group--stacked.svelte-9msc39 .pie-tool-tts-inline__speed-label:where(.svelte-9msc39) {display:inline-grid;justify-items:center;}.pie-tool-tts-inline__speed-group--stacked.svelte-9msc39 .pie-tool-tts-inline__speed-label:where(.svelte-9msc39)::before {content:attr(data-label);height:0;overflow:hidden;font-weight:700;visibility:hidden;}.pie-tool-tts-inline__control.svelte-9msc39:disabled {cursor:not-allowed;opacity:0.6;}\n\n /* ── Overlay layouts (floating-overlay + left-aligned) ──────────────────────\n The design keeps the controls on the surrounding Question/Passage header: a\n low-chrome card, icon-only media glyphs, and speed radios as plain text with\n the selected one lifted into a chip.\n\n Shape comes from that design; colour comes from the theme. Each surface\n defaults through a canonical token, and its literal is only the no-theme\n last resort.\n\n Foregrounds resolve through --pie-button-color (DaisyUI base-content), the\n one family whose contrast against the card is guaranteed in every shipped\n theme: --pie-primary and --pie-tertiary are `direct` mappings of DaisyUI\n slots chosen to pair with their own -content colour, so an accent glyph taken\n from either drops to 1.37:1 on `pastel` and 11 of 35 themes fall under 3:1.\n Selection is signalled by the chip and the bolder weight rather than by hue.\n\n Host knobs: --pie-tts-button-color (accent),\n --pie-tts-inline-muted-color, --pie-tts-selected-bg,\n --pie-selected-button-background/-border, --pie-tts-menu-shadow. */.pie-tool-tts-inline__panel--floating.svelte-9msc39,\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 {min-height:0;height:3rem; /* Figma: 48px */justify-content:center;gap:0.375rem;\n /* The raised surface is certified with control text and focus rings.\n --pie-white remains the fallback for hosts with no surface token. */background:var(--pie-tts-selected-bg, var(--pie-surface, var(--pie-white, #fff)));\n /* The Figma card is shadow-only, but the shadow is black: once the card\n takes a dark theme's surface it has no visible edge left. A hairline\n derived from the text colour reads on either. Not --pie-border: a host\n that wants borderless controls sets that to transparent, which is\n exactly the case where the shadow is the only edge. --pie-tts-card-border\n is the opt-out (`transparent` restores the shadow-only card). */border:1px solid var(--pie-tts-card-border, color-mix(in srgb, var(--pie-text, #000) 15%, transparent));border-radius:0.5rem; /* Figma: --radius-8 (8px) */box-shadow:var(--pie-tts-menu-shadow, 0 1px 5px 0 rgba(0, 0, 0, 0.3));}\n\n /* Compact: the popper card holds the media row (rewind / fast-forward / stop)\n on top and the speed radios stacked below. The white card bg + shadow come\n from the shared overlay rule above; this only tunes the compact layout. */.pie-tool-tts-inline__panel--compact.svelte-9msc39 {gap:0;width:fit-content;min-width:7.5rem; /* ~120px floor; grows with content beyond that */height:auto; /* stacked popper grows past the 48px roomy toolbar height */padding:0;}\n\n /* Media controls (rewind / fast-forward / stop): accent glyph, no chrome. */.pie-tool-tts-inline__panel--floating.svelte-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39) {border:0;background:transparent;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));}.pie-tool-tts-inline__panel--floating.svelte-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39):hover:not(:disabled) {transform:none;box-shadow:none;background:color-mix(in srgb, var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222))) 12%, transparent);}\n\n /* Speed radios (inline / roomy): plain muted text with breathing room between\n options — min-width + side padding, matching the original inline spacing. */.pie-tool-tts-inline__panel--floating.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39) {min-width:2.75rem;padding:0 0.625rem;border:1px solid transparent;background:transparent;box-shadow:none;\n /* Unselected labels are text on the card, so they take the full text colour\n rather than a dimmed mix: the raised surface has little contrast margin\n in `valentine`. Hosts that want them dimmer set --pie-tts-inline-muted-color. */color:var(--pie-tts-inline-muted-color, var(--pie-button-color, var(--pie-text, #5b6b73)));font-size:1rem;}.pie-tool-tts-inline__panel--floating.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39):hover:not(:disabled) {transform:none;box-shadow:none;background:color-mix(in srgb, var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222))) 8%, transparent);}\n\n /* Selected inline radio: \"chip\" treatment. Placed after the muted rule so it\n wins at equal specificity. The fill is --pie-button-active-bg, which the\n DaisyUI mapping already tunes (base-300 at 70% toward base-100) to hold\n base-content text at 4.5:1 in every shipped theme. */.pie-tool-tts-inline__panel--floating.svelte-9msc39 .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-9msc39),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-9msc39) {border:1px solid var(--pie-selected-button-border, var(--pie-button-border, var(--pie-border, #d9dada)));border-radius:6px;background:var(--pie-selected-button-background, var(--pie-button-active-bg, #f3f5f7));color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-weight:600;}\n\n /* ── Compact left-aligned overlay ───────────────────────────────────────────\n Inside the popper card the media controls occupy the top row and the speed\n radios drop onto their own full-width line below, stacked vertically.\n `order` puts the speeds after the media buttons even though they are first in\n the DOM; flex-basis:100% forces the wrap so media occupy the top line. */.pie-tool-tts-inline__speed-group--stacked.svelte-9msc39 {order:1;flex-basis:100%;flex-direction:column;align-items:center;gap:0.125rem;}\n\n /* In the card every option reads in the accent colour; the selected one is\n lifted into a bordered chip. Options size to their content and centre (no\n full-width stretch), keeping the popper compact. */.pie-tool-tts-inline__speed-group--stacked.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39) {justify-content:center;width:auto;min-width:0;height:auto;padding:0.25rem 0.75rem;border:1px solid transparent;border-radius:0.5rem;background:transparent;box-shadow:none;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-size:0.75rem;font-weight:500;}.pie-tool-tts-inline__speed-group--stacked.svelte-9msc39 .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-9msc39) {border:1px solid var(--pie-selected-button-border, var(--pie-button-border, var(--pie-border, #d9dada)));border-radius:6px;background:var(--pie-selected-button-background, var(--pie-button-active-bg, #f3f5f7));color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-weight:700;}\n\n /* Trigger size variants set the NDS outer size (--height-32); the glyph keeps\n the NDS-native icon size (host renders size=\"small\"). */.pie-tool-tts-inline__trigger--sm.svelte-9msc39 {--height-32: 1.75rem;}.pie-tool-tts-inline__trigger--md.svelte-9msc39 {--height-32: 2rem;}.pie-tool-tts-inline__trigger--lg.svelte-9msc39 {--height-32: 2.5rem;}.pie-tool-tts-inline__icon.svelte-9msc39 {font-size:1rem;line-height:1;color:currentColor;}\n\n @media (max-width: 839px) {.pie-tool-tts-inline.svelte-9msc39 {gap:0.375rem;}.pie-tool-tts-inline__panel--compact.svelte-9msc39 {padding:0;}\n\n /* Keep trigger sizes consistent with the calculator at this breakpoint. */.pie-tool-tts-inline__control.svelte-9msc39:not(.pie-tool-tts-inline__trigger) {width:1.75rem;height:1.75rem;}.pie-tool-tts-inline__control.svelte-9msc39 .pie-tool-tts-inline__icon:where(.svelte-9msc39) {font-size:1rem;}.pie-tool-tts-inline__control--speed.svelte-9msc39 {width:auto;min-width:2.5rem;height:1.75rem;padding:0 0.5rem;}\n\n /* drop font-size on smaller screens */.pie-tool-tts-inline__panel--floating.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39) {font-size:0.75rem;}\n }.pie-sr-only.svelte-9msc39 {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__control.svelte-9msc39 {transition:none !important;}\n }"
|
|
2364
2364
|
};
|
|
2365
2365
|
function ki(e, p) {
|
|
2366
|
-
|
|
2367
|
-
let m = d("tts-inline", f), h = pi(p, "catalogId", 7, ""), g = pi(p, "size", 7, "md"), _ = pi(p, "speedOptions", 7, void 0), v = pi(p, "showSingleSpeedOption", 7, !1), y = pi(p, "layoutMode", 7, "left-aligned"), b = typeof window < "u",
|
|
2366
|
+
qe(p, !0), Kr(e, Oi);
|
|
2367
|
+
let m = d("tts-inline", f), h = pi(p, "catalogId", 7, ""), g = pi(p, "size", 7, "md"), _ = pi(p, "speedOptions", 7, void 0), v = pi(p, "showSingleSpeedOption", 7, !1), y = pi(p, "layoutMode", 7, "left-aligned"), b = pi(p, "baseRate", 7, 1), x = pi(p, "pitch", 7, void 0), S = pi(p, "volume", 7, void 0), ee = typeof window < "u", te = /font.?awesome|fa-?pro/i, ne = (e) => {
|
|
2368
2368
|
if (document.querySelector(`link[href="${e}"]`)) return;
|
|
2369
2369
|
let t = document.createElement("link");
|
|
2370
2370
|
t.rel = "stylesheet", t.href = e, t.addEventListener("error", () => {
|
|
2371
2371
|
t.dataset.pieLoadFailed = "";
|
|
2372
2372
|
}, { once: !0 }), document.head.appendChild(t);
|
|
2373
|
-
},
|
|
2374
|
-
|
|
2375
|
-
},
|
|
2373
|
+
}, re = () => {
|
|
2374
|
+
ee && (Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).some((e) => te.test(e.href)) || ne("https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css"));
|
|
2375
|
+
}, ie = "__pieFaTtsShadowInstalled", ae = (e) => {
|
|
2376
2376
|
let t = e.getRootNode();
|
|
2377
2377
|
if (!(t instanceof ShadowRoot)) return;
|
|
2378
2378
|
let n = t;
|
|
2379
|
-
if (n[
|
|
2380
|
-
n[
|
|
2379
|
+
if (n[ie]) return;
|
|
2380
|
+
n[ie] = !0;
|
|
2381
2381
|
let r = /* @__PURE__ */ new Set(), i = (e) => {
|
|
2382
2382
|
if (!e || r.has(e)) return;
|
|
2383
2383
|
r.add(e);
|
|
2384
2384
|
let n = document.createElement("link");
|
|
2385
2385
|
n.rel = "stylesheet", n.href = e, t.appendChild(n);
|
|
2386
|
-
}, a = Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).filter((e) =>
|
|
2386
|
+
}, a = Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).filter((e) => te.test(e.href));
|
|
2387
2387
|
for (let e of a) {
|
|
2388
2388
|
if ("pieLoadFailed" in e.dataset) continue;
|
|
2389
2389
|
if (e.sheet) {
|
|
@@ -2395,8 +2395,8 @@ function ki(e, p) {
|
|
|
2395
2395
|
};
|
|
2396
2396
|
e.addEventListener("load", t), e.addEventListener("error", t);
|
|
2397
2397
|
}
|
|
2398
|
-
},
|
|
2399
|
-
|
|
2398
|
+
}, oe = (e) => {
|
|
2399
|
+
re(), ae(e);
|
|
2400
2400
|
let t = () => {
|
|
2401
2401
|
for (let t of e.querySelectorAll("i.fa-light")) t.classList.remove("fa-light"), t.classList.add("fa-solid");
|
|
2402
2402
|
};
|
|
@@ -2410,7 +2410,7 @@ function ki(e, p) {
|
|
|
2410
2410
|
}), { destroy() {
|
|
2411
2411
|
n.disconnect();
|
|
2412
2412
|
} };
|
|
2413
|
-
},
|
|
2413
|
+
}, se = (e, t) => {
|
|
2414
2414
|
let n = t, r = () => {
|
|
2415
2415
|
let t = e.querySelector("button");
|
|
2416
2416
|
if (t) for (let [e, r] of Object.entries(n)) r == null ? t.removeAttribute(e) : t.setAttribute(e, r);
|
|
@@ -2428,280 +2428,285 @@ function ki(e, p) {
|
|
|
2428
2428
|
i.disconnect();
|
|
2429
2429
|
}
|
|
2430
2430
|
};
|
|
2431
|
-
},
|
|
2432
|
-
function
|
|
2433
|
-
return Q(
|
|
2431
|
+
}, C = (e) => (re(), ae(e), {}), w = /* @__PURE__ */ H(void 0), T = /* @__PURE__ */ H(void 0), ce = /* @__PURE__ */ H(null), le = /* @__PURE__ */ z(() => Q(ce)?.ndsIcons === !0), E = /* @__PURE__ */ z(() => u(Q(ce))), ue = /* @__PURE__ */ H(null), de = /* @__PURE__ */ H(null), D = /* @__PURE__ */ z(() => Q(ce)?.ttsService), fe = /* @__PURE__ */ z(() => Q(ce)?.highlightCoordinator), pe = /* @__PURE__ */ z(() => Q(de)?.scopeElement || Q(ue)?.scopeElement || null), O = /* @__PURE__ */ H(!1), me = /* @__PURE__ */ H(!1), k = /* @__PURE__ */ H(!1), A = /* @__PURE__ */ H(!1), j = /* @__PURE__ */ H(""), he = /* @__PURE__ */ H(null), ge = /* @__PURE__ */ H(null), _e = /* @__PURE__ */ H(!1), ve = /* @__PURE__ */ H(!1), ye = !1, be = 0, xe = null, Se = null, Ce = /* @__PURE__ */ z(() => s(_())), we = /* @__PURE__ */ z(() => Ne(Q(Ce))), Te = /* @__PURE__ */ z(() => Q(Ce).length > 1 || v() ? Q(Ce) : []), M = /* @__PURE__ */ z(() => Q(he) !== null && Q(ge) === Q(we) && Q(Ce).some((e) => e.rate === Q(he)) ? Q(he) : Fe(Q(Ce))), N = /* @__PURE__ */ z(() => typeof b() == "number" && Number.isFinite(b()) && b() > 0 ? b() : 1), P = /* @__PURE__ */ z(() => Q(M) * Q(N)), F = /* @__PURE__ */ z(() => `${Q(we)}@${Q(N)}`), Ee = /* @__PURE__ */ z(() => Pe(x(), 0, 2)), Oe = /* @__PURE__ */ z(() => Pe(S(), 0, 1)), ke = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, Ae = `${ke}-controls`;
|
|
2432
|
+
function je() {
|
|
2433
|
+
return Q(D)?.getRunOwner() === ke;
|
|
2434
2434
|
}
|
|
2435
|
-
function
|
|
2436
|
-
U(
|
|
2435
|
+
function Me(e = "", t = !1) {
|
|
2436
|
+
U(_e, !1), U(k, !1), U(A, !1), U(O, t, !0), U(j, e, !0);
|
|
2437
2437
|
}
|
|
2438
|
-
function
|
|
2438
|
+
function Ne(e) {
|
|
2439
2439
|
return e.map((e) => `${e.rate}:${e.label}:${e.ariaLabel}:${e.isDefault ? "1" : "0"}`).join("|");
|
|
2440
2440
|
}
|
|
2441
|
-
function
|
|
2441
|
+
function Pe(e, t, n) {
|
|
2442
|
+
return typeof e == "number" && Number.isFinite(e) ? Math.min(n, Math.max(t, e)) : void 0;
|
|
2443
|
+
}
|
|
2444
|
+
function Fe(e) {
|
|
2442
2445
|
return e.find((e) => e.isDefault)?.rate ?? e.find((e) => e.rate === 1)?.rate ?? e[0]?.rate ?? 1;
|
|
2443
2446
|
}
|
|
2444
|
-
function
|
|
2445
|
-
if (!Q(
|
|
2446
|
-
let e = Q(
|
|
2447
|
+
function Ie() {
|
|
2448
|
+
if (!Q(w) || !Q(T)) return !1;
|
|
2449
|
+
let e = Q(w).getRootNode();
|
|
2447
2450
|
if (!(e instanceof ShadowRoot)) return !1;
|
|
2448
2451
|
let t = e.activeElement;
|
|
2449
|
-
return !!(t && Q(
|
|
2452
|
+
return !!(t && Q(T).contains(t));
|
|
2450
2453
|
}
|
|
2451
|
-
function
|
|
2452
|
-
if (!Q(
|
|
2453
|
-
let e = Q(
|
|
2454
|
+
function Le() {
|
|
2455
|
+
if (!Q(T)) return !1;
|
|
2456
|
+
let e = Q(T).getRootNode();
|
|
2454
2457
|
if (!(e instanceof ShadowRoot)) return !1;
|
|
2455
2458
|
let t = e.activeElement;
|
|
2456
|
-
return !t || !Q(
|
|
2459
|
+
return !t || !Q(T).contains(t) ? !1 : t.matches(Ue);
|
|
2457
2460
|
}
|
|
2458
|
-
function
|
|
2459
|
-
let e = Q(
|
|
2461
|
+
function Re() {
|
|
2462
|
+
let e = Q(T)?.querySelector(We);
|
|
2460
2463
|
if (e && !e.disabled) {
|
|
2461
2464
|
e.focus();
|
|
2462
2465
|
return;
|
|
2463
2466
|
}
|
|
2464
|
-
|
|
2467
|
+
ze(!0);
|
|
2465
2468
|
}
|
|
2466
|
-
function
|
|
2469
|
+
function ze(e) {
|
|
2467
2470
|
if (!e) return;
|
|
2468
|
-
let t =
|
|
2471
|
+
let t = _t();
|
|
2469
2472
|
(t?.querySelector("button") ?? t)?.focus();
|
|
2470
2473
|
}
|
|
2471
|
-
function
|
|
2472
|
-
if (!Q(
|
|
2473
|
-
U(
|
|
2474
|
+
function Be(e = Q(E).t("tools.textToSpeech.inline.switchedSection"), t = !1) {
|
|
2475
|
+
if (!Q(ve) && Q(O)) {
|
|
2476
|
+
U(ve, !0);
|
|
2474
2477
|
try {
|
|
2475
|
-
let n =
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
+
let n = Ie();
|
|
2479
|
+
be += 1, Me(e), L(), t && queueMicrotask(() => {
|
|
2480
|
+
ze(n);
|
|
2478
2481
|
});
|
|
2479
2482
|
} finally {
|
|
2480
|
-
U(
|
|
2483
|
+
U(ve, !1);
|
|
2481
2484
|
}
|
|
2482
2485
|
}
|
|
2483
2486
|
}
|
|
2484
|
-
|
|
2485
|
-
if (Q(
|
|
2486
|
-
U(
|
|
2487
|
+
hn(() => {
|
|
2488
|
+
if (Q(w)) return i(Q(w), (e) => {
|
|
2489
|
+
U(ce, e, !0);
|
|
2487
2490
|
});
|
|
2488
|
-
}),
|
|
2489
|
-
if (!Q(
|
|
2490
|
-
let e = a(Q(
|
|
2491
|
-
U(
|
|
2492
|
-
}), t = r(Q(
|
|
2493
|
-
U(
|
|
2491
|
+
}), hn(() => {
|
|
2492
|
+
if (!Q(w)) return;
|
|
2493
|
+
let e = a(Q(w), (e) => {
|
|
2494
|
+
U(ue, e, !0);
|
|
2495
|
+
}), t = r(Q(w), (e) => {
|
|
2496
|
+
U(de, e, !0);
|
|
2494
2497
|
});
|
|
2495
2498
|
return () => {
|
|
2496
2499
|
t(), e();
|
|
2497
2500
|
};
|
|
2498
|
-
}),
|
|
2499
|
-
let e = Q(
|
|
2501
|
+
}), hn(() => {
|
|
2502
|
+
let e = Q(D);
|
|
2500
2503
|
if (!e) return;
|
|
2501
2504
|
let t = (e) => {
|
|
2502
|
-
if (!Q(
|
|
2503
|
-
U(
|
|
2505
|
+
if (!Q(O) || !je()) {
|
|
2506
|
+
U(k, !1), U(A, !1);
|
|
2504
2507
|
return;
|
|
2505
2508
|
}
|
|
2506
|
-
U(
|
|
2509
|
+
U(k, e === "playing" || e === "paused" || e === "loading" && Q(k), !0), U(A, e === "paused");
|
|
2507
2510
|
}, n = e.onStateChange((n) => {
|
|
2508
|
-
let r = String(n), i =
|
|
2509
|
-
(r === "loading" || r === "playing" || r === "paused") && !
|
|
2511
|
+
let r = String(n), i = Le();
|
|
2512
|
+
(r === "loading" || r === "playing" || r === "paused") && !ye && !je() && Be(), r === "idle" && !ye && e.getRunOwner() === null && Be(Q(E).t("tools.textToSpeech.inline.stopped"), !0), t(r), r === "playing" && (Q(_e) && je() && U(j, Q(E).t("tools.textToSpeech.inline.started"), !0), U(_e, !1)), (r === "error" || r === "idle") && U(_e, !1), i && !Q(k) && queueMicrotask(Re);
|
|
2510
2513
|
});
|
|
2511
2514
|
return t(e.getState()), n;
|
|
2512
|
-
}),
|
|
2513
|
-
|
|
2515
|
+
}), hn(() => () => {
|
|
2516
|
+
L();
|
|
2514
2517
|
});
|
|
2515
|
-
let
|
|
2516
|
-
function
|
|
2517
|
-
return Q(
|
|
2518
|
+
let Ve = "[data-pie-tts-speed-rate]", He = "[data-pie-tts-media]", Ue = "[data-pie-tts-seek]", We = "[data-pie-tts-stop]";
|
|
2519
|
+
function Ge(e) {
|
|
2520
|
+
return Q(T) ? Array.from(Q(T).querySelectorAll(e)).filter((e) => !e.disabled && window.getComputedStyle(e).display !== "none") : [];
|
|
2518
2521
|
}
|
|
2519
|
-
function
|
|
2520
|
-
let n =
|
|
2522
|
+
function I(e, t) {
|
|
2523
|
+
let n = Ge(e);
|
|
2521
2524
|
if (!n.length) return;
|
|
2522
2525
|
let r = n[(t + n.length) % n.length];
|
|
2523
|
-
if (r.focus(), e !==
|
|
2524
|
-
let i = Number(r.dataset.pieTtsSpeedRate), a = Q(
|
|
2525
|
-
a &&
|
|
2526
|
+
if (r.focus(), e !== Ve) return;
|
|
2527
|
+
let i = Number(r.dataset.pieTtsSpeedRate), a = Q(Te).find((e) => e.rate === i);
|
|
2528
|
+
a && ot(a);
|
|
2526
2529
|
}
|
|
2527
|
-
function
|
|
2528
|
-
let n =
|
|
2530
|
+
function Ke(e, t) {
|
|
2531
|
+
let n = Ge(e);
|
|
2529
2532
|
if (!n.length) return;
|
|
2530
|
-
let r = Q(
|
|
2531
|
-
|
|
2533
|
+
let r = Q(T)?.getRootNode(), i = r instanceof ShadowRoot ? r.activeElement : null, a = i ? n.indexOf(i) : -1;
|
|
2534
|
+
I(e, a === -1 ? 0 : a + t);
|
|
2532
2535
|
}
|
|
2533
|
-
function
|
|
2536
|
+
function Ye(e, t) {
|
|
2534
2537
|
switch (t.key) {
|
|
2535
2538
|
case "ArrowDown":
|
|
2536
2539
|
case "ArrowRight":
|
|
2537
|
-
t.preventDefault(),
|
|
2540
|
+
t.preventDefault(), Ke(e, 1);
|
|
2538
2541
|
break;
|
|
2539
2542
|
case "ArrowUp":
|
|
2540
2543
|
case "ArrowLeft":
|
|
2541
|
-
t.preventDefault(),
|
|
2544
|
+
t.preventDefault(), Ke(e, -1);
|
|
2542
2545
|
break;
|
|
2543
2546
|
case "Home":
|
|
2544
|
-
t.preventDefault(),
|
|
2547
|
+
t.preventDefault(), I(e, 0);
|
|
2545
2548
|
break;
|
|
2546
|
-
case "End": t.preventDefault(),
|
|
2549
|
+
case "End": t.preventDefault(), I(e, -1);
|
|
2547
2550
|
}
|
|
2548
2551
|
}
|
|
2549
|
-
function
|
|
2550
|
-
return Q(
|
|
2552
|
+
function Xe() {
|
|
2553
|
+
return Q(pe) ? l(Q(pe)) : null;
|
|
2551
2554
|
}
|
|
2552
|
-
function
|
|
2553
|
-
return Q(
|
|
2555
|
+
function Ze() {
|
|
2556
|
+
return Q(ue) ? n(Q(ue), Q(ce)) : void 0;
|
|
2554
2557
|
}
|
|
2555
|
-
function
|
|
2556
|
-
|
|
2558
|
+
function Qe(e, t) {
|
|
2559
|
+
L();
|
|
2557
2560
|
let n = e.setHighlightTargetResolverProvider(() => ({
|
|
2558
2561
|
context: {
|
|
2559
|
-
scopeElement: Q(
|
|
2560
|
-
kind: Q(
|
|
2561
|
-
itemId: Q(
|
|
2562
|
-
canonicalItemId: Q(
|
|
2563
|
-
contentKind: Q(
|
|
2564
|
-
regionPolicy: Q(
|
|
2562
|
+
scopeElement: Q(de)?.scopeElement || t || null,
|
|
2563
|
+
kind: Q(ue)?.kind,
|
|
2564
|
+
itemId: Q(ue)?.itemId,
|
|
2565
|
+
canonicalItemId: Q(ue)?.canonicalItemId,
|
|
2566
|
+
contentKind: Q(ue)?.contentKind,
|
|
2567
|
+
regionPolicy: Q(ue)?.regionPolicy
|
|
2565
2568
|
},
|
|
2566
|
-
resolver: Q(
|
|
2569
|
+
resolver: Q(de)?.ttsHighlightTargetResolver || null
|
|
2567
2570
|
}));
|
|
2568
|
-
return
|
|
2571
|
+
return xe = n, n;
|
|
2569
2572
|
}
|
|
2570
|
-
function
|
|
2571
|
-
e?.(), e ===
|
|
2573
|
+
function L(e = xe) {
|
|
2574
|
+
e?.(), e === xe && (xe = null);
|
|
2572
2575
|
}
|
|
2573
|
-
function
|
|
2574
|
-
if (e.getRunOwner() !==
|
|
2576
|
+
function $e(e) {
|
|
2577
|
+
if (e.getRunOwner() !== ke) return !1;
|
|
2575
2578
|
let t = String(e.getState());
|
|
2576
2579
|
return t === "playing" || t === "paused" || t === "loading";
|
|
2577
2580
|
}
|
|
2578
|
-
function
|
|
2579
|
-
let n =
|
|
2580
|
-
|
|
2581
|
-
|
|
2581
|
+
function et(e, t) {
|
|
2582
|
+
let n = Ie();
|
|
2583
|
+
Me(Q(E).t(o(e) ? "tools.textToSpeech.initFailed" : "tools.textToSpeech.inline.startFailed")), Q(fe) && Q(fe).clearTTS(), L(t), n && queueMicrotask(() => {
|
|
2584
|
+
ze(!0);
|
|
2582
2585
|
});
|
|
2583
2586
|
}
|
|
2584
2587
|
function R(e) {
|
|
2585
|
-
o(e) || c(Q(
|
|
2588
|
+
o(e) || c(Q(ce)?.toolkitCoordinator, "textToSpeech", "tool-playback", e);
|
|
2586
2589
|
}
|
|
2587
|
-
function
|
|
2588
|
-
let e = Q(
|
|
2590
|
+
function tt() {
|
|
2591
|
+
let e = Q(D);
|
|
2589
2592
|
if (!e) return;
|
|
2590
|
-
let t =
|
|
2593
|
+
let t = Xe();
|
|
2591
2594
|
if (!t) {
|
|
2592
2595
|
m.debug("No target container found from shell scope context");
|
|
2593
2596
|
return;
|
|
2594
2597
|
}
|
|
2595
|
-
let n = ++
|
|
2598
|
+
let n = ++be, r = !1, i = e.onStateChange((e) => {
|
|
2596
2599
|
String(e) === "playing" && (r = !0);
|
|
2597
2600
|
});
|
|
2598
|
-
U(
|
|
2599
|
-
let a =
|
|
2601
|
+
U(O, !0), U(_e, !0), U(j, Q(E).t("tools.textToSpeech.inline.starting"), !0);
|
|
2602
|
+
let a = Qe(e, t), o;
|
|
2600
2603
|
try {
|
|
2601
2604
|
o = e.speak(t, {
|
|
2602
|
-
ownerId:
|
|
2603
|
-
rate: Q(
|
|
2605
|
+
ownerId: ke,
|
|
2606
|
+
rate: Q(P),
|
|
2607
|
+
pitch: Q(Ee),
|
|
2608
|
+
volume: Q(Oe),
|
|
2604
2609
|
catalogId: h() || void 0,
|
|
2605
|
-
catalogContext:
|
|
2606
|
-
language: Q(
|
|
2610
|
+
catalogContext: Ze(),
|
|
2611
|
+
language: Q(ce)?.contentLanguage || void 0
|
|
2607
2612
|
});
|
|
2608
2613
|
} catch (e) {
|
|
2609
2614
|
o = Promise.reject(e);
|
|
2610
2615
|
}
|
|
2611
|
-
|
|
2616
|
+
Se = {
|
|
2612
2617
|
service: e,
|
|
2613
|
-
choicesKey: Q(
|
|
2618
|
+
choicesKey: Q(F)
|
|
2614
2619
|
}, o.then(() => {
|
|
2615
|
-
n !==
|
|
2620
|
+
n !== be || r || String(e.getState()) === "idle" && Me(Q(E).t("tools.textToSpeech.inline.nothingToRead"));
|
|
2616
2621
|
}).catch((e) => {
|
|
2617
|
-
n ===
|
|
2622
|
+
n === be && (R(e), et(e, a));
|
|
2618
2623
|
}).finally(() => {
|
|
2619
|
-
i(),
|
|
2624
|
+
i(), $e(e) || L(a);
|
|
2620
2625
|
});
|
|
2621
2626
|
}
|
|
2622
|
-
function
|
|
2623
|
-
let e = Q(
|
|
2627
|
+
function nt() {
|
|
2628
|
+
let e = Q(D);
|
|
2624
2629
|
if (!e) return;
|
|
2625
|
-
let t =
|
|
2626
|
-
if (!(Q(
|
|
2627
|
-
if (t && Q(
|
|
2628
|
-
e.resume(), U(
|
|
2630
|
+
let t = je();
|
|
2631
|
+
if (!(Q(_e) || t && String(e.getState()) === "loading")) {
|
|
2632
|
+
if (t && Q(A)) {
|
|
2633
|
+
e.resume(), U(j, Q(E).t("tools.textToSpeech.inline.resumed"), !0);
|
|
2629
2634
|
return;
|
|
2630
2635
|
}
|
|
2631
|
-
if (t && Q(
|
|
2632
|
-
e.pause(), U(
|
|
2636
|
+
if (t && Q(k) && !Q(A)) {
|
|
2637
|
+
e.pause(), U(j, Q(E).t("tools.textToSpeech.inline.pausedAnnouncement"), !0);
|
|
2633
2638
|
return;
|
|
2634
2639
|
}
|
|
2635
|
-
|
|
2640
|
+
ye = !0;
|
|
2636
2641
|
try {
|
|
2637
|
-
|
|
2642
|
+
tt();
|
|
2638
2643
|
} finally {
|
|
2639
|
-
|
|
2644
|
+
ye = !1;
|
|
2640
2645
|
}
|
|
2641
2646
|
}
|
|
2642
2647
|
}
|
|
2643
|
-
function
|
|
2644
|
-
if (!Q(
|
|
2645
|
-
let e =
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
+
function rt() {
|
|
2649
|
+
if (!Q(D)) return;
|
|
2650
|
+
let e = Ie();
|
|
2651
|
+
be += 1, Q(D).stop(), Me(Q(E).t("tools.textToSpeech.inline.stopped")), Q(fe) && Q(fe).clearTTS(), L(), e && queueMicrotask(() => {
|
|
2652
|
+
ze(!0);
|
|
2648
2653
|
});
|
|
2649
2654
|
}
|
|
2650
|
-
async function
|
|
2651
|
-
if (Q(
|
|
2652
|
-
await Q(
|
|
2655
|
+
async function it() {
|
|
2656
|
+
if (Q(D) && Q(k)) try {
|
|
2657
|
+
await Q(D).seekForward(1), U(j, Q(E).t("tools.textToSpeech.inline.skippedForward"), !0);
|
|
2653
2658
|
} catch (e) {
|
|
2654
|
-
R(e), U(
|
|
2659
|
+
R(e), U(j, Q(E).t("tools.textToSpeech.inline.skipForwardFailed"), !0);
|
|
2655
2660
|
}
|
|
2656
2661
|
}
|
|
2657
|
-
async function
|
|
2658
|
-
if (Q(
|
|
2659
|
-
await Q(
|
|
2662
|
+
async function at() {
|
|
2663
|
+
if (Q(D) && Q(k)) try {
|
|
2664
|
+
await Q(D).seekBackward(1), U(j, Q(E).t("tools.textToSpeech.inline.skippedBackward"), !0);
|
|
2660
2665
|
} catch (e) {
|
|
2661
|
-
R(e), U(
|
|
2666
|
+
R(e), U(j, Q(E).t("tools.textToSpeech.inline.skipBackwardFailed"), !0);
|
|
2662
2667
|
}
|
|
2663
2668
|
}
|
|
2664
|
-
async function
|
|
2665
|
-
let t = Q(
|
|
2669
|
+
async function ot(e) {
|
|
2670
|
+
let t = Q(D);
|
|
2666
2671
|
if (!t) return;
|
|
2667
|
-
if (Q(
|
|
2668
|
-
U(
|
|
2672
|
+
if (Q(M) === e.rate) {
|
|
2673
|
+
U(j, Q(E).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
|
|
2669
2674
|
return;
|
|
2670
2675
|
}
|
|
2671
|
-
let n = Q(
|
|
2672
|
-
U(
|
|
2676
|
+
let n = Q(he), r = Q(ge);
|
|
2677
|
+
U(he, e.rate, !0), U(ge, Q(we), !0), U(j, Q(E).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
|
|
2673
2678
|
let i = {
|
|
2674
2679
|
service: t,
|
|
2675
|
-
choicesKey: Q(
|
|
2680
|
+
choicesKey: Q(F)
|
|
2676
2681
|
};
|
|
2677
|
-
|
|
2682
|
+
Se = i;
|
|
2678
2683
|
try {
|
|
2679
|
-
await t.setPlaybackRate(e.rate);
|
|
2684
|
+
await t.setPlaybackRate(e.rate * Q(N));
|
|
2680
2685
|
} catch (e) {
|
|
2681
|
-
|
|
2686
|
+
Se === i && (Se = null), R(e), U(he, n, !0), U(ge, r, !0), U(j, Q(E).t("tools.textToSpeech.inline.speedChangeFailed"), !0);
|
|
2682
2687
|
}
|
|
2683
2688
|
}
|
|
2684
|
-
let
|
|
2685
|
-
|
|
2686
|
-
let e = Q(
|
|
2687
|
-
if (!e || !n || !
|
|
2689
|
+
let st = /* @__PURE__ */ z(() => g() === "sm" ? "pie-tool-tts-inline__trigger--sm" : g() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), ct = /* @__PURE__ */ z(() => Q(k) && !Q(A) ? "tools.textToSpeech.inline.pauseA11y" : Q(A) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y"), lt = /* @__PURE__ */ z(() => y() === "reserved-row" || y() === "expanding-row"), ut = /* @__PURE__ */ z(() => y() === "floating-overlay"), dt = /* @__PURE__ */ z(() => y() === "left-aligned"), ft = /* @__PURE__ */ z(() => Q(ut) || Q(dt)), pt = "[data-pie-tool-overlay-boundary]", mt = /* @__PURE__ */ H(""), ht = /* @__PURE__ */ H(0);
|
|
2690
|
+
hn(() => {
|
|
2691
|
+
let e = Q(D), t = Q(F), n = Q(k) || Q(A);
|
|
2692
|
+
if (!e || !n || !je() || Se?.service === e && Se.choicesKey === t) return;
|
|
2688
2693
|
let r = {
|
|
2689
2694
|
service: e,
|
|
2690
2695
|
choicesKey: t
|
|
2691
2696
|
};
|
|
2692
|
-
|
|
2697
|
+
Se = r;
|
|
2693
2698
|
let i = !1;
|
|
2694
2699
|
return queueMicrotask(() => {
|
|
2695
|
-
if (i ||
|
|
2696
|
-
let t = Q(
|
|
2700
|
+
if (i || Se !== r) return;
|
|
2701
|
+
let t = Q(P);
|
|
2697
2702
|
e.setPlaybackRate(t).catch((e) => {
|
|
2698
|
-
|
|
2703
|
+
Se === r && (Se = null), R(e);
|
|
2699
2704
|
});
|
|
2700
2705
|
}), () => {
|
|
2701
2706
|
i = !0;
|
|
2702
2707
|
};
|
|
2703
2708
|
});
|
|
2704
|
-
function
|
|
2709
|
+
function gt(e, t) {
|
|
2705
2710
|
let n = e;
|
|
2706
2711
|
for (; n;) {
|
|
2707
2712
|
if (n.matches?.(t)) return n;
|
|
@@ -2709,37 +2714,37 @@ function ki(e, p) {
|
|
|
2709
2714
|
}
|
|
2710
2715
|
return null;
|
|
2711
2716
|
}
|
|
2712
|
-
function
|
|
2713
|
-
let e = Q(
|
|
2717
|
+
function _t() {
|
|
2718
|
+
let e = Q(w)?.getRootNode();
|
|
2714
2719
|
return e instanceof ShadowRoot ? e.querySelector(".pie-tool-tts-inline__trigger") : null;
|
|
2715
2720
|
}
|
|
2716
|
-
function
|
|
2721
|
+
function B(e) {
|
|
2717
2722
|
let t = window.getComputedStyle(e), n = parseFloat(t.columnGap || t.gap) || 0, r = (parseFloat(t.paddingLeft) || 0) + (parseFloat(t.paddingRight) || 0) + (parseFloat(t.borderLeftWidth) || 0) + (parseFloat(t.borderRightWidth) || 0), i = Array.from(e.children).filter((e) => window.getComputedStyle(e).display !== "none");
|
|
2718
2723
|
return i.length ? i.reduce((e, t) => e + t.offsetWidth, 0) + (i.length - 1) * n + r : 0;
|
|
2719
2724
|
}
|
|
2720
|
-
function
|
|
2721
|
-
let e =
|
|
2722
|
-
if (!e || !Q(
|
|
2723
|
-
let t = e.getBoundingClientRect(), n =
|
|
2724
|
-
if (!Q(
|
|
2725
|
-
let e =
|
|
2726
|
-
e > 0 && U(
|
|
2727
|
-
}
|
|
2728
|
-
U(
|
|
2729
|
-
let a = parseFloat(window.getComputedStyle(Q(
|
|
2730
|
-
if (Q(
|
|
2731
|
-
let e = n?.getBoundingClientRect(), r = Math.max(0, e?.left ?? 0) + 8, i = Math.min(window.innerWidth, e?.right ?? window.innerWidth) - 8, a = Math.max(0, i - r), o = Math.min(Q(
|
|
2732
|
-
U(
|
|
2725
|
+
function vt() {
|
|
2726
|
+
let e = _t();
|
|
2727
|
+
if (!e || !Q(T)) return;
|
|
2728
|
+
let t = e.getBoundingClientRect(), n = gt(e, pt), r = n?.getBoundingClientRect().left ?? 0, i = Math.max(0, t.left - r - 16);
|
|
2729
|
+
if (!Q(me)) {
|
|
2730
|
+
let e = B(Q(T));
|
|
2731
|
+
e > 0 && U(ht, e, !0);
|
|
2732
|
+
}
|
|
2733
|
+
U(me, Q(ht) > 0 && i < Q(ht), !0);
|
|
2734
|
+
let a = parseFloat(window.getComputedStyle(Q(T)).minWidth) || 0;
|
|
2735
|
+
if (Q(me) && i < a) {
|
|
2736
|
+
let e = n?.getBoundingClientRect(), r = Math.max(0, e?.left ?? 0) + 8, i = Math.min(window.innerWidth, e?.right ?? window.innerWidth) - 8, a = Math.max(0, i - r), o = Math.min(Q(T).offsetWidth, a), s = Math.max(r, Math.min(t.right - o, i - o));
|
|
2737
|
+
U(mt, `top: ${t.bottom + 8}px; left: ${s}px; right: auto; min-width: min(7.5rem, ${a}px); max-width: min(${a}px, var(--pie-tts-left-aligned-panel-width, ${a}px));`);
|
|
2733
2738
|
return;
|
|
2734
2739
|
}
|
|
2735
|
-
let o = Q(
|
|
2736
|
-
U(
|
|
2740
|
+
let o = Q(T).offsetHeight || t.height, s = Q(me) ? t.top : t.top + t.height / 2 - o / 2, c = t.bottom > 0 && t.top < window.innerHeight ? Math.max(8, Math.min(s, window.innerHeight - o - 8)) : s, l = window.innerWidth - t.left + 8;
|
|
2741
|
+
U(mt, `top: ${c}px; right: ${l}px; left: auto; max-width: min(${i}px, var(--pie-tts-left-aligned-panel-width, ${i}px));`);
|
|
2737
2742
|
}
|
|
2738
|
-
|
|
2739
|
-
if (!(Q(
|
|
2743
|
+
hn(() => {
|
|
2744
|
+
if (!(Q(dt) && Q(O))) {
|
|
2740
2745
|
let e = !1;
|
|
2741
2746
|
return queueMicrotask(() => {
|
|
2742
|
-
e || (U(
|
|
2747
|
+
e || (U(mt, ""), U(me, !1), U(ht, 0));
|
|
2743
2748
|
}), () => {
|
|
2744
2749
|
e = !0;
|
|
2745
2750
|
};
|
|
@@ -2747,28 +2752,28 @@ function ki(e, p) {
|
|
|
2747
2752
|
if (typeof window > "u") return;
|
|
2748
2753
|
let e = 0, t = () => {
|
|
2749
2754
|
e ||= window.requestAnimationFrame(() => {
|
|
2750
|
-
e = 0,
|
|
2755
|
+
e = 0, vt();
|
|
2751
2756
|
});
|
|
2752
2757
|
};
|
|
2753
2758
|
t(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0);
|
|
2754
|
-
let n =
|
|
2755
|
-
n && r.observe(n), Q(
|
|
2756
|
-
let i = n ?
|
|
2759
|
+
let n = _t(), r = new ResizeObserver(t);
|
|
2760
|
+
n && r.observe(n), Q(T) && r.observe(Q(T));
|
|
2761
|
+
let i = n ? gt(n, pt) : null;
|
|
2757
2762
|
i && r.observe(i);
|
|
2758
2763
|
let a = i?.querySelector("[data-pie-tool-overlay-protect]");
|
|
2759
2764
|
return a && r.observe(a), () => {
|
|
2760
2765
|
e && window.cancelAnimationFrame(e), window.removeEventListener("resize", t), window.removeEventListener("scroll", t, !0), r.disconnect();
|
|
2761
2766
|
};
|
|
2762
2767
|
});
|
|
2763
|
-
function
|
|
2764
|
-
if (!Q(
|
|
2765
|
-
let e = Q(
|
|
2768
|
+
function V() {
|
|
2769
|
+
if (!Q(w)) return null;
|
|
2770
|
+
let e = Q(w).getRootNode();
|
|
2766
2771
|
return e instanceof ShadowRoot ? e.host : null;
|
|
2767
2772
|
}
|
|
2768
|
-
|
|
2769
|
-
let e =
|
|
2773
|
+
hn(() => {
|
|
2774
|
+
let e = V();
|
|
2770
2775
|
if (!e) return;
|
|
2771
|
-
let n = Q(
|
|
2776
|
+
let n = Q(O) === !0;
|
|
2772
2777
|
if (e.getAttribute("data-active") === "true" === n) return;
|
|
2773
2778
|
let r = !1;
|
|
2774
2779
|
return queueMicrotask(() => {
|
|
@@ -2781,7 +2786,7 @@ function ki(e, p) {
|
|
|
2781
2786
|
r = !0;
|
|
2782
2787
|
};
|
|
2783
2788
|
});
|
|
2784
|
-
var
|
|
2789
|
+
var yt = {
|
|
2785
2790
|
get catalogId() {
|
|
2786
2791
|
return h();
|
|
2787
2792
|
},
|
|
@@ -2811,93 +2816,111 @@ function ki(e, p) {
|
|
|
2811
2816
|
},
|
|
2812
2817
|
set layoutMode(e = "left-aligned") {
|
|
2813
2818
|
y(e), Dt();
|
|
2819
|
+
},
|
|
2820
|
+
get baseRate() {
|
|
2821
|
+
return b();
|
|
2822
|
+
},
|
|
2823
|
+
set baseRate(e = 1) {
|
|
2824
|
+
b(e), Dt();
|
|
2825
|
+
},
|
|
2826
|
+
get pitch() {
|
|
2827
|
+
return x();
|
|
2828
|
+
},
|
|
2829
|
+
set pitch(e = void 0) {
|
|
2830
|
+
x(e), Dt();
|
|
2831
|
+
},
|
|
2832
|
+
get volume() {
|
|
2833
|
+
return S();
|
|
2834
|
+
},
|
|
2835
|
+
set volume(e = void 0) {
|
|
2836
|
+
S(e), Dt();
|
|
2814
2837
|
}
|
|
2815
|
-
},
|
|
2838
|
+
}, bt = br(), xt = en(bt), St = (e) => {
|
|
2816
2839
|
var t = Di();
|
|
2817
2840
|
let n;
|
|
2818
2841
|
{
|
|
2819
2842
|
let e = (e) => {
|
|
2820
|
-
var t = Si(), n =
|
|
2843
|
+
var t = Si(), n = $t(t), r = (e) => {
|
|
2821
2844
|
var t = bi();
|
|
2822
|
-
ai(t, "type", "circle"), ai(t, "size", "small"), ai(t, "variant", "tertiary"),
|
|
2823
|
-
"aria-expanded": Q(
|
|
2824
|
-
"aria-controls": Q(
|
|
2825
|
-
"aria-pressed": Q(
|
|
2826
|
-
"aria-busy": Q(
|
|
2827
|
-
})),
|
|
2845
|
+
ai(t, "type", "circle"), ai(t, "size", "small"), ai(t, "variant", "tertiary"), Sn(() => ai(t, "icon-name", Q(k) && !Q(A) ? "pause" : "play")), Sn((e) => ai(t, "button-aria-label", e), [() => Q(E).t(Q(ct))]), Sn(() => ai(t, "disabled", !Q(D))), qr(t, (e) => oe?.(e)), qr(t, (e, t) => se?.(e, t), () => ({
|
|
2846
|
+
"aria-expanded": Q(O) ? "true" : "false",
|
|
2847
|
+
"aria-controls": Q(O) ? Ae : null,
|
|
2848
|
+
"aria-pressed": Q(O) ? "true" : "false",
|
|
2849
|
+
"aria-busy": Q(_e) ? "true" : null
|
|
2850
|
+
})), Sn(() => $r(t, 1, `pie-tool-tts-inline__trigger ${Q(st) ?? ""}`, "svelte-9msc39")), ur("click", t, nt), xr(e, t);
|
|
2828
2851
|
}, i = (e) => {
|
|
2829
|
-
var t = xi(), n =
|
|
2830
|
-
qr(t, (e) =>
|
|
2831
|
-
$r(t, 1, `pie-tool-tts-inline__control pie-tool-tts-inline__trigger pie-tool-tts-inline__trigger--plain ${Q(
|
|
2832
|
-
}, [() => Q(
|
|
2852
|
+
var t = xi(), n = tn(t);
|
|
2853
|
+
qr(t, (e) => C?.(e)), Sn((e) => {
|
|
2854
|
+
$r(t, 1, `pie-tool-tts-inline__control pie-tool-tts-inline__trigger pie-tool-tts-inline__trigger--plain ${Q(st) ?? ""}`, "svelte-9msc39"), $(t, "aria-expanded", Q(O) ? "true" : "false"), $(t, "aria-controls", Q(O) ? Ae : void 0), $(t, "aria-pressed", Q(O) ? "true" : "false"), $(t, "aria-label", e), $(t, "aria-busy", Q(_e) ? "true" : void 0), t.disabled = !Q(D), $r(n, 1, `fa-solid ${Q(k) && !Q(A) ? "fa-pause" : "fa-play"} pie-tool-tts-inline__icon`, "svelte-9msc39");
|
|
2855
|
+
}, [() => Q(E).t(Q(ct))]), ur("click", t, nt), xr(e, t);
|
|
2833
2856
|
};
|
|
2834
2857
|
Ir(n, (e) => {
|
|
2835
|
-
Q(
|
|
2836
|
-
}),
|
|
2858
|
+
Q(le) ? e(r) : e(i, -1);
|
|
2859
|
+
}), De(t), xr(e, t);
|
|
2837
2860
|
}, n = (e) => {
|
|
2838
|
-
var t = br(), n =
|
|
2861
|
+
var t = br(), n = en(t), r = (e) => {
|
|
2839
2862
|
var t = Ti();
|
|
2840
2863
|
let n;
|
|
2841
|
-
var r =
|
|
2864
|
+
var r = $t(t), i = (e) => {
|
|
2842
2865
|
var t = wi();
|
|
2843
2866
|
let n;
|
|
2844
|
-
Br(t, 21, () => Q(
|
|
2845
|
-
var n = Ci(), r =
|
|
2846
|
-
|
|
2847
|
-
$(n, "data-pie-tts-speed-rate", Q(t).rate), $(n, "tabindex", Q(
|
|
2848
|
-
}), ur("click", n, () =>
|
|
2849
|
-
}),
|
|
2850
|
-
n = $r(t, 1, "pie-tool-tts-inline__speed-group svelte-9msc39", null, n, { "pie-tool-tts-inline__speed-group--stacked": Q(
|
|
2851
|
-
}, [() => Q(
|
|
2867
|
+
Br(t, 21, () => Q(Te), (e) => e.rate, (e, t) => {
|
|
2868
|
+
var n = Ci(), r = $t(n), i = tn(r, !0);
|
|
2869
|
+
De(n), Sn(() => {
|
|
2870
|
+
$(n, "data-pie-tts-speed-rate", Q(t).rate), $(n, "tabindex", Q(M) === Q(t).rate ? 0 : -1), $(n, "aria-label", Q(t).ariaLabel), $(n, "aria-checked", Q(M) === Q(t).rate), n.disabled = !Q(D), $(r, "data-label", Q(t).label), Or(i, Q(t).label);
|
|
2871
|
+
}), ur("click", n, () => ot(Q(t))), ur("keydown", n, (e) => Ye(Ve, e)), xr(e, n);
|
|
2872
|
+
}), De(t), Sn((e) => {
|
|
2873
|
+
n = $r(t, 1, "pie-tool-tts-inline__speed-group svelte-9msc39", null, n, { "pie-tool-tts-inline__speed-group--stacked": Q(me) }), $(t, "aria-label", e);
|
|
2874
|
+
}, [() => Q(E).t("tools.textToSpeech.inline.playbackSpeedA11y")]), xr(e, t);
|
|
2852
2875
|
};
|
|
2853
2876
|
Ir(r, (e) => {
|
|
2854
|
-
Q(
|
|
2877
|
+
Q(Te).length > 0 && e(i);
|
|
2855
2878
|
});
|
|
2856
|
-
var a =
|
|
2857
|
-
|
|
2858
|
-
$(t, "id",
|
|
2859
|
-
"pie-tool-tts-inline__panel--floating": Q(
|
|
2860
|
-
"pie-tool-tts-inline__panel--row": Q(
|
|
2861
|
-
"pie-tool-tts-inline__panel--left-aligned-inline": Q(
|
|
2862
|
-
"pie-tool-tts-inline__panel--compact": Q(
|
|
2863
|
-
}), ti(t, Q(
|
|
2879
|
+
var a = nn(r, 2), o = nn(a, 2), s = nn(o, 2);
|
|
2880
|
+
De(t), ui(t, (e) => U(T, e), () => Q(T)), Sn((e, r, i, c) => {
|
|
2881
|
+
$(t, "id", Ae), n = $r(t, 1, "pie-tool-tts-inline__panel svelte-9msc39", null, n, {
|
|
2882
|
+
"pie-tool-tts-inline__panel--floating": Q(ut),
|
|
2883
|
+
"pie-tool-tts-inline__panel--row": Q(lt),
|
|
2884
|
+
"pie-tool-tts-inline__panel--left-aligned-inline": Q(dt),
|
|
2885
|
+
"pie-tool-tts-inline__panel--compact": Q(dt) && Q(me)
|
|
2886
|
+
}), ti(t, Q(dt) ? Q(mt) : ""), $(t, "aria-label", e), $(a, "aria-label", r), a.disabled = !Q(D) || !Q(k), $(o, "aria-label", i), o.disabled = !Q(D) || !Q(k), $(s, "aria-label", c), s.disabled = !Q(D);
|
|
2864
2887
|
}, [
|
|
2865
|
-
() => Q(
|
|
2866
|
-
() => Q(
|
|
2867
|
-
() => Q(
|
|
2868
|
-
() => Q(
|
|
2869
|
-
]), ur("click", a,
|
|
2888
|
+
() => Q(E).t("tools.textToSpeech.inline.controlsA11y"),
|
|
2889
|
+
() => Q(E).t("tools.textToSpeech.inline.rewindA11y"),
|
|
2890
|
+
() => Q(E).t("tools.textToSpeech.inline.fastForwardA11y"),
|
|
2891
|
+
() => Q(E).t("tools.textToSpeech.inline.stopA11y")
|
|
2892
|
+
]), ur("click", a, at), ur("keydown", a, (e) => Ye(He, e)), ur("click", o, it), ur("keydown", o, (e) => Ye(He, e)), ur("click", s, rt), ur("keydown", s, (e) => Ye(He, e)), xr(e, t);
|
|
2870
2893
|
};
|
|
2871
2894
|
Ir(n, (e) => {
|
|
2872
|
-
Q(
|
|
2895
|
+
Q(O) && e(r);
|
|
2873
2896
|
}), xr(e, t);
|
|
2874
2897
|
};
|
|
2875
|
-
var r =
|
|
2876
|
-
var r = Ei(), i =
|
|
2898
|
+
var r = $t(t), i = (t) => {
|
|
2899
|
+
var r = Ei(), i = en(r);
|
|
2877
2900
|
n(i);
|
|
2878
|
-
var a =
|
|
2901
|
+
var a = nn(i, 2);
|
|
2879
2902
|
e(a), xr(t, r);
|
|
2880
2903
|
}, a = (t) => {
|
|
2881
|
-
var r = Ei(), i =
|
|
2904
|
+
var r = Ei(), i = en(r);
|
|
2882
2905
|
e(i);
|
|
2883
|
-
var a =
|
|
2906
|
+
var a = nn(i, 2);
|
|
2884
2907
|
n(a), xr(t, r);
|
|
2885
2908
|
};
|
|
2886
2909
|
Ir(r, (e) => {
|
|
2887
|
-
Q(
|
|
2910
|
+
Q(ft) ? e(i) : e(a, -1);
|
|
2888
2911
|
});
|
|
2889
|
-
var o = nn(
|
|
2890
|
-
|
|
2912
|
+
var o = tn(nn(r, 2), !0);
|
|
2913
|
+
De(t), ui(t, (e) => U(w, e), () => Q(w)), Sn(() => Or(o, Q(j)));
|
|
2891
2914
|
}
|
|
2892
|
-
|
|
2893
|
-
"pie-tool-tts-inline--controls-row": Q(
|
|
2894
|
-
"pie-tool-tts-inline--floating": Q(
|
|
2895
|
-
"pie-tool-tts-inline--left-aligned": Q(
|
|
2915
|
+
Sn(() => n = $r(t, 1, "pie-tool-tts-inline svelte-9msc39", null, n, {
|
|
2916
|
+
"pie-tool-tts-inline--controls-row": Q(lt),
|
|
2917
|
+
"pie-tool-tts-inline--floating": Q(ut),
|
|
2918
|
+
"pie-tool-tts-inline--left-aligned": Q(dt)
|
|
2896
2919
|
})), xr(e, t);
|
|
2897
2920
|
};
|
|
2898
|
-
return Ir(
|
|
2899
|
-
|
|
2900
|
-
}), xr(e,
|
|
2921
|
+
return Ir(xt, (e) => {
|
|
2922
|
+
ee && e(St);
|
|
2923
|
+
}), xr(e, bt), Je(yt);
|
|
2901
2924
|
}
|
|
2902
2925
|
dr(["click", "keydown"]), Ai("pie-tool-tts-inline", yi(ki, {
|
|
2903
2926
|
catalogId: {
|
|
@@ -2919,6 +2942,18 @@ dr(["click", "keydown"]), Ai("pie-tool-tts-inline", yi(ki, {
|
|
|
2919
2942
|
layoutMode: {
|
|
2920
2943
|
attribute: "layout-mode",
|
|
2921
2944
|
type: "String"
|
|
2945
|
+
},
|
|
2946
|
+
baseRate: {
|
|
2947
|
+
attribute: "base-rate",
|
|
2948
|
+
type: "Number"
|
|
2949
|
+
},
|
|
2950
|
+
pitch: {
|
|
2951
|
+
attribute: "pitch",
|
|
2952
|
+
type: "Number"
|
|
2953
|
+
},
|
|
2954
|
+
volume: {
|
|
2955
|
+
attribute: "volume",
|
|
2956
|
+
type: "Number"
|
|
2922
2957
|
}
|
|
2923
2958
|
}, [], [], { mode: "open" }, e));
|
|
2924
2959
|
function Ai(e, t) {
|