@pie-players/pie-tool-tts-inline 1.0.0-beta.0 → 1.0.0-beta.2
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 +1088 -1032
- package/package.json +4 -4
package/dist/tool-tts-inline.js
CHANGED
|
@@ -3,15 +3,15 @@ import { TOOL_ACTIVE_CHANGE_EVENT as t, catalogContextForShell as n, connectTool
|
|
|
3
3
|
import "@pie-players/pie-players-shared/nds-icon-button";
|
|
4
4
|
import { resolveInterfaceI18n as u } from "@pie-players/pie-players-shared/i18n/provider";
|
|
5
5
|
import { createPieLogger as d, isTtsDebugEnabled as f } from "@pie-players/pie-players-shared/pie";
|
|
6
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
6
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/disclose-version.js
|
|
7
7
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
|
|
8
8
|
//#endregion
|
|
9
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
9
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/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
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
39
|
-
var
|
|
40
|
-
function
|
|
41
|
-
|
|
38
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/dom/hydration.js
|
|
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,238 @@ 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
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
82
|
-
function
|
|
81
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/reactivity/equality.js
|
|
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
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
93
|
-
function
|
|
92
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/errors.js
|
|
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
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
131
|
-
var
|
|
132
|
-
function
|
|
133
|
-
|
|
134
|
-
}
|
|
135
|
-
function
|
|
136
|
-
|
|
137
|
-
p:
|
|
130
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/context.js
|
|
131
|
+
var I = null;
|
|
132
|
+
function Ke(e) {
|
|
133
|
+
I = e;
|
|
134
|
+
}
|
|
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
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
163
|
-
var
|
|
164
|
-
function
|
|
165
|
-
var e =
|
|
166
|
-
|
|
162
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/dom/task.js
|
|
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
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
182
|
-
var
|
|
183
|
-
function
|
|
184
|
-
e.f = e.f &
|
|
181
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/reactivity/status.js
|
|
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
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
191
|
-
function
|
|
192
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e),
|
|
190
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/reactivity/utils.js
|
|
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
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
196
|
-
function
|
|
197
|
-
var t =
|
|
198
|
-
|
|
195
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
|
|
196
|
+
function rt(e) {
|
|
197
|
+
var t = q, n = Y;
|
|
198
|
+
J(null), Rn(null);
|
|
199
199
|
try {
|
|
200
200
|
return e();
|
|
201
201
|
} finally {
|
|
202
|
-
|
|
202
|
+
J(t), Rn(n);
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
//#endregion
|
|
206
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
207
|
-
function
|
|
208
|
-
let i =
|
|
206
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/reactivity/async.js
|
|
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
|
-
|
|
235
|
+
if (s.f & 16384) {
|
|
236
|
+
d();
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
239
|
+
c(), f(), ot();
|
|
236
240
|
}) : f();
|
|
237
241
|
}
|
|
238
|
-
function
|
|
239
|
-
var e =
|
|
242
|
+
function at() {
|
|
243
|
+
var e = Y, t = q, n = I, r = B;
|
|
240
244
|
return function(i = !0) {
|
|
241
|
-
|
|
245
|
+
Rn(e), J(t), Ke(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
|
|
242
246
|
};
|
|
243
247
|
}
|
|
244
|
-
function
|
|
245
|
-
|
|
248
|
+
function ot(e = !0) {
|
|
249
|
+
Rn(null), J(null), Ke(null), e && B?.deactivate();
|
|
246
250
|
}
|
|
247
|
-
function
|
|
248
|
-
var e =
|
|
251
|
+
function st() {
|
|
252
|
+
var e = Y, t = e.b, n = B, r = !!t?.is_rendered();
|
|
249
253
|
return t?.update_pending_count(1, n), n.increment(r, e), () => {
|
|
250
254
|
t?.update_pending_count(-1, n), n.decrement(r, e);
|
|
251
255
|
};
|
|
252
256
|
}
|
|
253
257
|
/*#__NO_SIDE_EFFECTS__*/
|
|
254
|
-
function
|
|
255
|
-
var t = 2 |
|
|
256
|
-
return
|
|
257
|
-
ctx:
|
|
258
|
+
function ct(e) {
|
|
259
|
+
var t = 2 | w;
|
|
260
|
+
return Y !== null && (Y.f |= D), {
|
|
261
|
+
ctx: I,
|
|
258
262
|
deps: null,
|
|
259
263
|
effects: null,
|
|
260
|
-
equals:
|
|
264
|
+
equals: je,
|
|
261
265
|
f: t,
|
|
262
266
|
fn: e,
|
|
263
267
|
reactions: null,
|
|
264
268
|
rv: 0,
|
|
265
269
|
v: m,
|
|
266
270
|
wv: 0,
|
|
267
|
-
parent:
|
|
271
|
+
parent: Y,
|
|
268
272
|
ac: null
|
|
269
273
|
};
|
|
270
274
|
}
|
|
271
|
-
var
|
|
275
|
+
var lt = Symbol("obsolete");
|
|
272
276
|
/*#__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 =
|
|
277
|
+
function ut(e, t, n) {
|
|
278
|
+
let r = Y;
|
|
279
|
+
r === null && Pe();
|
|
280
|
+
var i = void 0, a = Lt(m), o = !q, s = /* @__PURE__ */ new Set();
|
|
281
|
+
return bn(() => {
|
|
282
|
+
var t = Y, n = se();
|
|
279
283
|
i = n.promise;
|
|
280
284
|
try {
|
|
281
285
|
Promise.resolve(e()).then(n.resolve, (e) => {
|
|
282
|
-
e !==
|
|
283
|
-
}).finally(
|
|
286
|
+
e !== xe && n.reject(e);
|
|
287
|
+
}).finally(ot);
|
|
284
288
|
} catch (e) {
|
|
285
|
-
n.reject(e),
|
|
289
|
+
n.reject(e), ot();
|
|
286
290
|
}
|
|
287
|
-
var c =
|
|
291
|
+
var c = B;
|
|
288
292
|
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(
|
|
293
|
+
if (t.f & 32768) var l = st();
|
|
294
|
+
if (r.b?.is_rendered()) c.async_deriveds.get(t)?.reject(lt);
|
|
295
|
+
else for (let e of s.values()) e.reject(lt);
|
|
292
296
|
s.add(n), c.async_deriveds.set(t, n);
|
|
293
297
|
}
|
|
294
298
|
let u = (e, t = void 0) => {
|
|
295
|
-
l?.(), s.delete(n), t !==
|
|
299
|
+
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
300
|
};
|
|
297
301
|
n.promise.then(u, (e) => u(null, e || "unknown"));
|
|
298
|
-
}),
|
|
299
|
-
for (let e of s) e.reject(
|
|
302
|
+
}), mn(() => {
|
|
303
|
+
for (let e of s) e.reject(lt);
|
|
300
304
|
}), new Promise((e) => {
|
|
301
305
|
function t(n) {
|
|
302
306
|
function r() {
|
|
@@ -308,52 +312,52 @@ function lt(e, t, n) {
|
|
|
308
312
|
});
|
|
309
313
|
}
|
|
310
314
|
/*#__NO_SIDE_EFFECTS__*/
|
|
311
|
-
function
|
|
312
|
-
let t = /* @__PURE__ */
|
|
313
|
-
return
|
|
315
|
+
function z(e) {
|
|
316
|
+
let t = /* @__PURE__ */ ct(e);
|
|
317
|
+
return Bn(t), t;
|
|
314
318
|
}
|
|
315
319
|
/*#__NO_SIDE_EFFECTS__*/
|
|
316
|
-
function ut(e) {
|
|
317
|
-
let t = /* @__PURE__ */ st(e);
|
|
318
|
-
return t.equals = je, t;
|
|
319
|
-
}
|
|
320
320
|
function dt(e) {
|
|
321
|
+
let t = /* @__PURE__ */ ct(e);
|
|
322
|
+
return t.equals = Ne, t;
|
|
323
|
+
}
|
|
324
|
+
function ft(e) {
|
|
321
325
|
var t = e.effects;
|
|
322
326
|
if (t !== null) {
|
|
323
327
|
e.effects = null;
|
|
324
|
-
for (var n = 0; n < t.length; n += 1)
|
|
328
|
+
for (var n = 0; n < t.length; n += 1) K(t[n]);
|
|
325
329
|
}
|
|
326
330
|
}
|
|
327
|
-
function
|
|
328
|
-
var t, n =
|
|
329
|
-
if (!
|
|
330
|
-
|
|
331
|
+
function pt(e) {
|
|
332
|
+
var t, n = Y, r = e.parent;
|
|
333
|
+
if (!Fn && r !== null && e.v !== m && r.f & 24576) return Ce(), e.v;
|
|
334
|
+
Rn(r);
|
|
331
335
|
try {
|
|
332
|
-
|
|
336
|
+
ft(e), t = Xn(e);
|
|
333
337
|
} finally {
|
|
334
|
-
|
|
338
|
+
Rn(n);
|
|
335
339
|
}
|
|
336
340
|
return t;
|
|
337
341
|
}
|
|
338
|
-
function
|
|
339
|
-
var t =
|
|
340
|
-
if (!e.equals(t) && (e.wv =
|
|
341
|
-
|
|
342
|
+
function mt(e) {
|
|
343
|
+
var t = pt(e);
|
|
344
|
+
if (!e.equals(t) && (e.wv = qn(), (!B?.is_fork || e.deps === null) && (B === null ? e.v = t : (B.capture(e, t, !0), vt?.capture(e, t, !0)), e.deps === null))) {
|
|
345
|
+
R(e, C);
|
|
342
346
|
return;
|
|
343
347
|
}
|
|
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));
|
|
348
|
+
Fn || (V === null ? tt(e) : (pn() || B?.is_fork) && V.set(e, t));
|
|
350
349
|
}
|
|
351
350
|
function ht(e) {
|
|
352
|
-
if (e.effects !== null) for (let t of e.effects) t.teardown && t.
|
|
351
|
+
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && rt(() => {
|
|
352
|
+
t.ac.abort(xe), t.ac = null;
|
|
353
|
+
}), t.fn !== null && (t.teardown = ae), $n(t, 0), Tn(t));
|
|
354
|
+
}
|
|
355
|
+
function gt(e) {
|
|
356
|
+
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && er(t);
|
|
353
357
|
}
|
|
354
358
|
//#endregion
|
|
355
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
356
|
-
var
|
|
359
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/reactivity/batch.js
|
|
360
|
+
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
361
|
id = Tt++;
|
|
358
362
|
#e = !1;
|
|
359
363
|
linked = !0;
|
|
@@ -376,7 +380,7 @@ var gt = null, V = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
|
|
|
376
380
|
is_fork = !1;
|
|
377
381
|
#m = !1;
|
|
378
382
|
constructor() {
|
|
379
|
-
|
|
383
|
+
_t === null ? _t = this : (_t.#n = this, this.#t = _t), _t = this;
|
|
380
384
|
}
|
|
381
385
|
#h() {
|
|
382
386
|
if (this.is_fork) return !0;
|
|
@@ -402,8 +406,8 @@ var gt = null, V = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
|
|
|
402
406
|
var n = this.#f.get(e);
|
|
403
407
|
if (n) {
|
|
404
408
|
this.#f.delete(e);
|
|
405
|
-
for (var r of n.d)
|
|
406
|
-
for (r of n.m)
|
|
409
|
+
for (var r of n.d) R(r, w), t(r);
|
|
410
|
+
for (r of n.m) R(r, T), t(r);
|
|
407
411
|
}
|
|
408
412
|
this.#p.add(e);
|
|
409
413
|
}
|
|
@@ -418,7 +422,7 @@ var gt = null, V = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
|
|
|
418
422
|
n = !0;
|
|
419
423
|
break;
|
|
420
424
|
}
|
|
421
|
-
t.f ^=
|
|
425
|
+
t.f ^= C;
|
|
422
426
|
}
|
|
423
427
|
}
|
|
424
428
|
n || e.push(t);
|
|
@@ -427,8 +431,8 @@ var gt = null, V = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
|
|
|
427
431
|
}
|
|
428
432
|
#_() {
|
|
429
433
|
this.#e = !0;
|
|
430
|
-
for (let e of this.#u) this.#d.delete(e),
|
|
431
|
-
for (let e of this.#d)
|
|
434
|
+
for (let e of this.#u) this.#d.delete(e), R(e, w), this.schedule(e);
|
|
435
|
+
for (let e of this.#d) R(e, T), this.schedule(e);
|
|
432
436
|
this.apply();
|
|
433
437
|
for (var t = St = [], n = [], r = Ct = []; this.#c.length > 0;) {
|
|
434
438
|
wt++ > 1e3 && (this.#S(), Ot());
|
|
@@ -438,14 +442,14 @@ var gt = null, V = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
|
|
|
438
442
|
throw Nt(e), this.#h() || this.discard(), t;
|
|
439
443
|
}
|
|
440
444
|
}
|
|
441
|
-
if (
|
|
445
|
+
if (B = null, r.length > 0) {
|
|
442
446
|
var i = e.ensure();
|
|
443
447
|
for (let e of r) i.schedule(e);
|
|
444
448
|
}
|
|
445
449
|
if (St = null, Ct = null, this.#h()) {
|
|
446
450
|
this.#x(n), this.#x(t);
|
|
447
451
|
for (let [e, t] of this.#f) Mt(e, t);
|
|
448
|
-
r.length > 0 &&
|
|
452
|
+
r.length > 0 && B.#_();
|
|
449
453
|
return;
|
|
450
454
|
}
|
|
451
455
|
let a = this.#y();
|
|
@@ -455,8 +459,8 @@ var gt = null, V = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
|
|
|
455
459
|
}
|
|
456
460
|
this.#u.clear(), this.#d.clear();
|
|
457
461
|
for (let e of this.#r) e(this);
|
|
458
|
-
this.#r.clear(),
|
|
459
|
-
var o =
|
|
462
|
+
this.#r.clear(), vt = this, At(n), At(t), vt = null, this.#s?.resolve();
|
|
463
|
+
var o = B;
|
|
460
464
|
if (this.#a === 0 && (this.#c.length === 0 || o !== null) && this.#S(), this.#c.length > 0) {
|
|
461
465
|
if (o !== null) {
|
|
462
466
|
for (let e of this.#c) o.#c.push(e);
|
|
@@ -466,11 +470,11 @@ var gt = null, V = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
|
|
|
466
470
|
o !== null && (Ft.clear(), o.#_());
|
|
467
471
|
}
|
|
468
472
|
#v(e, t, n) {
|
|
469
|
-
e.f ^=
|
|
473
|
+
e.f ^= C;
|
|
470
474
|
for (var r = e.first; r !== null;) {
|
|
471
475
|
var i = r.f, a = !!(i & 96);
|
|
472
476
|
if (!(a && i & 1024 || i & 8192 || this.#f.has(r)) && r.fn !== null) {
|
|
473
|
-
a ? r.f ^=
|
|
477
|
+
a ? r.f ^= C : i & 4 ? t.push(r) : Jn(r) && (i & 16 && this.#d.add(r), er(r));
|
|
474
478
|
var o = r.first;
|
|
475
479
|
if (o !== null) {
|
|
476
480
|
r = o;
|
|
@@ -510,36 +514,36 @@ var gt = null, V = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
|
|
|
510
514
|
if (r & 2) t(e);
|
|
511
515
|
else {
|
|
512
516
|
var i = e;
|
|
513
|
-
r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i),
|
|
517
|
+
r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), R(i, w), this.schedule(i));
|
|
514
518
|
}
|
|
515
519
|
}
|
|
516
520
|
};
|
|
517
521
|
for (let e of this.current.keys()) t(e);
|
|
518
|
-
this.oncommit(() => e.discard()), e.#S(),
|
|
522
|
+
this.oncommit(() => e.discard()), e.#S(), B = this, this.#_();
|
|
519
523
|
}
|
|
520
524
|
#x(e) {
|
|
521
|
-
for (var t = 0; t < e.length; t += 1)
|
|
525
|
+
for (var t = 0; t < e.length; t += 1) nt(e[t], this.#u, this.#d);
|
|
522
526
|
}
|
|
523
527
|
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]),
|
|
528
|
+
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
529
|
}
|
|
526
530
|
activate() {
|
|
527
|
-
|
|
531
|
+
B = this;
|
|
528
532
|
}
|
|
529
533
|
deactivate() {
|
|
530
|
-
|
|
534
|
+
B = null, V = null;
|
|
531
535
|
}
|
|
532
536
|
flush() {
|
|
533
537
|
try {
|
|
534
|
-
xt = !0,
|
|
538
|
+
xt = !0, B = this, this.#_();
|
|
535
539
|
} finally {
|
|
536
|
-
wt = 0, yt = null, St = null, Ct = null, xt = !1,
|
|
540
|
+
wt = 0, yt = null, St = null, Ct = null, xt = !1, B = null, V = null, Ft.clear();
|
|
537
541
|
}
|
|
538
542
|
}
|
|
539
543
|
discard() {
|
|
540
544
|
for (let e of this.#i) e(this);
|
|
541
545
|
this.#i.clear();
|
|
542
|
-
for (let e of this.async_deriveds.values()) e.reject(
|
|
546
|
+
for (let e of this.async_deriveds.values()) e.reject(lt);
|
|
543
547
|
this.#S(), this.#s?.resolve();
|
|
544
548
|
}
|
|
545
549
|
register_created_effect(e) {
|
|
@@ -556,7 +560,7 @@ var gt = null, V = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
|
|
|
556
560
|
let e = this.#o.get(t) ?? 0;
|
|
557
561
|
e === 1 ? this.#o.delete(t) : this.#o.set(t, e - 1);
|
|
558
562
|
}
|
|
559
|
-
this.#m || (this.#m = !0,
|
|
563
|
+
this.#m || (this.#m = !0, L(() => {
|
|
560
564
|
this.#m = !1, this.linked && this.flush();
|
|
561
565
|
}));
|
|
562
566
|
}
|
|
@@ -572,19 +576,19 @@ var gt = null, V = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
|
|
|
572
576
|
this.#i.add(e);
|
|
573
577
|
}
|
|
574
578
|
settled() {
|
|
575
|
-
return (this.#s ??=
|
|
579
|
+
return (this.#s ??= se()).promise;
|
|
576
580
|
}
|
|
577
581
|
static ensure() {
|
|
578
|
-
if (
|
|
579
|
-
let t =
|
|
580
|
-
!xt && !bt &&
|
|
582
|
+
if (B === null) {
|
|
583
|
+
let t = B = new e();
|
|
584
|
+
!xt && !bt && L(() => {
|
|
581
585
|
t.#e || t.flush();
|
|
582
586
|
});
|
|
583
587
|
}
|
|
584
|
-
return
|
|
588
|
+
return B;
|
|
585
589
|
}
|
|
586
590
|
apply() {
|
|
587
|
-
|
|
591
|
+
V = null;
|
|
588
592
|
}
|
|
589
593
|
schedule(e) {
|
|
590
594
|
if (yt = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
|
|
@@ -596,28 +600,28 @@ var gt = null, V = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
|
|
|
596
600
|
#S() {
|
|
597
601
|
if (this.linked) {
|
|
598
602
|
var e = this.#t, t = this.#n;
|
|
599
|
-
e === null || (e.#n = t), t === null ?
|
|
603
|
+
e === null || (e.#n = t), t === null ? _t = e : t.#t = e, this.linked = !1;
|
|
600
604
|
}
|
|
601
605
|
}
|
|
602
606
|
};
|
|
603
607
|
function Dt(e) {
|
|
604
|
-
var t = bt;
|
|
605
|
-
bt = !0;
|
|
608
|
+
var t = bt, n = vt;
|
|
609
|
+
vt = null, bt = !0;
|
|
606
610
|
try {
|
|
607
|
-
var
|
|
608
|
-
for (e && (
|
|
609
|
-
if (
|
|
610
|
-
|
|
611
|
+
var r;
|
|
612
|
+
for (e && (Dt(), r = e());;) {
|
|
613
|
+
if ($e(), B === null) return r;
|
|
614
|
+
B.flush();
|
|
611
615
|
}
|
|
612
616
|
} finally {
|
|
613
|
-
bt = t;
|
|
617
|
+
bt = t, vt = n;
|
|
614
618
|
}
|
|
615
619
|
}
|
|
616
620
|
function Ot() {
|
|
617
621
|
try {
|
|
618
|
-
|
|
622
|
+
ze();
|
|
619
623
|
} catch (e) {
|
|
620
|
-
|
|
624
|
+
ln(e, yt);
|
|
621
625
|
}
|
|
622
626
|
}
|
|
623
627
|
var kt = null;
|
|
@@ -626,7 +630,7 @@ function At(e) {
|
|
|
626
630
|
if (t !== 0) {
|
|
627
631
|
for (var n = 0; n < t;) {
|
|
628
632
|
var r = e[n++];
|
|
629
|
-
if (!(r.f & 24576) &&
|
|
633
|
+
if (!(r.f & 24576) && Jn(r) && (kt = /* @__PURE__ */ new Set(), er(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && On(r), kt?.size > 0)) {
|
|
630
634
|
Ft.clear();
|
|
631
635
|
for (let e of kt) {
|
|
632
636
|
if (e.f & 24576) continue;
|
|
@@ -634,7 +638,7 @@ function At(e) {
|
|
|
634
638
|
for (; n !== null;) kt.has(n) && (kt.delete(n), t.push(n)), n = n.parent;
|
|
635
639
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
636
640
|
let n = t[e];
|
|
637
|
-
n.f & 24576 ||
|
|
641
|
+
n.f & 24576 || er(n);
|
|
638
642
|
}
|
|
639
643
|
}
|
|
640
644
|
kt.clear();
|
|
@@ -644,27 +648,27 @@ function At(e) {
|
|
|
644
648
|
}
|
|
645
649
|
}
|
|
646
650
|
function jt(e) {
|
|
647
|
-
|
|
651
|
+
B.schedule(e);
|
|
648
652
|
}
|
|
649
653
|
function Mt(e, t) {
|
|
650
654
|
if (!(e.f & 32 && e.f & 1024)) {
|
|
651
|
-
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e),
|
|
655
|
+
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), R(e, C);
|
|
652
656
|
for (var n = e.first; n !== null;) Mt(n, t), n = n.next;
|
|
653
657
|
}
|
|
654
658
|
}
|
|
655
659
|
function Nt(e) {
|
|
656
|
-
|
|
660
|
+
R(e, C);
|
|
657
661
|
for (var t = e.first; t !== null;) Nt(t), t = t.next;
|
|
658
662
|
}
|
|
659
663
|
//#endregion
|
|
660
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
664
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/reactivity/sources.js
|
|
661
665
|
var Pt = /* @__PURE__ */ new Set(), Ft = /* @__PURE__ */ new Map(), It = !1;
|
|
662
666
|
function Lt(e, t) {
|
|
663
667
|
return {
|
|
664
668
|
f: 0,
|
|
665
669
|
v: e,
|
|
666
670
|
reactions: null,
|
|
667
|
-
equals:
|
|
671
|
+
equals: je,
|
|
668
672
|
rv: 0,
|
|
669
673
|
wv: 0
|
|
670
674
|
};
|
|
@@ -672,40 +676,40 @@ function Lt(e, t) {
|
|
|
672
676
|
/*#__NO_SIDE_EFFECTS__*/
|
|
673
677
|
function H(e, t) {
|
|
674
678
|
let n = Lt(e, t);
|
|
675
|
-
return
|
|
679
|
+
return Bn(n), n;
|
|
676
680
|
}
|
|
677
681
|
/*#__NO_SIDE_EFFECTS__*/
|
|
678
682
|
function Rt(e, t = !1, n = !0) {
|
|
679
683
|
let r = Lt(e);
|
|
680
|
-
return t || (r.equals =
|
|
684
|
+
return t || (r.equals = Ne), r;
|
|
681
685
|
}
|
|
682
686
|
function U(e, t, n = !1) {
|
|
683
|
-
return
|
|
687
|
+
return q !== null && (!Ln || q.f & 131072) && Xe() && q.f & 4325394 && (zn === null || !zn.has(e)) && We(), Vt(e, n ? Gt(t) : t, Ct);
|
|
684
688
|
}
|
|
685
689
|
var zt = null, Bt = 0;
|
|
686
690
|
function Vt(e, t, n = null) {
|
|
687
691
|
if (!e.equals(t)) {
|
|
688
|
-
|
|
692
|
+
Fn ? Ft.set(e, t) : Ft.has(e) || Ft.set(e, e.v);
|
|
689
693
|
var r = Et.ensure();
|
|
690
694
|
if (r.capture(e, t), e.f & 2) {
|
|
691
695
|
let t = e;
|
|
692
|
-
e.f & 2048 &&
|
|
696
|
+
e.f & 2048 && pt(t), V === null && tt(t);
|
|
693
697
|
}
|
|
694
|
-
e.wv =
|
|
698
|
+
e.wv = qn(), zt = null, Bt = 0, Wt(e, w, n), zt = null, Xe() && Y !== null && Y.f & 1024 && !(Y.f & 96) && (Vn === null ? Hn([e]) : Vn.push(e)), !r.is_fork && Pt.size > 0 && !It && Ht();
|
|
695
699
|
}
|
|
696
700
|
return t;
|
|
697
701
|
}
|
|
698
702
|
function Ht() {
|
|
699
703
|
It = !1;
|
|
700
704
|
for (let e of Pt) {
|
|
701
|
-
e.f & 1024 &&
|
|
705
|
+
e.f & 1024 && R(e, T);
|
|
702
706
|
let t;
|
|
703
707
|
try {
|
|
704
|
-
t =
|
|
708
|
+
t = Jn(e);
|
|
705
709
|
} catch {
|
|
706
710
|
t = !0;
|
|
707
711
|
}
|
|
708
|
-
t &&
|
|
712
|
+
t && er(e);
|
|
709
713
|
}
|
|
710
714
|
Pt.clear();
|
|
711
715
|
}
|
|
@@ -715,19 +719,19 @@ function Ut(e) {
|
|
|
715
719
|
function Wt(e, t, n) {
|
|
716
720
|
var r = e.reactions;
|
|
717
721
|
if (r !== null) {
|
|
718
|
-
var i =
|
|
722
|
+
var i = Xe(), a = r.length;
|
|
719
723
|
if (Bt += a, Bt > 1e5 && zt === null && (zt = /* @__PURE__ */ new Set()), zt !== null) {
|
|
720
724
|
if (zt.has(e)) return;
|
|
721
725
|
zt.add(e);
|
|
722
726
|
}
|
|
723
727
|
for (var o = 0; o < a; o++) {
|
|
724
728
|
var s = r[o], c = s.f;
|
|
725
|
-
if (i || s !==
|
|
726
|
-
var l = (c &
|
|
727
|
-
if (l &&
|
|
729
|
+
if (i || s !== Y) {
|
|
730
|
+
var l = (c & w) === 0;
|
|
731
|
+
if (l && R(s, t), c & 131072) Pt.add(s);
|
|
728
732
|
else if (c & 2) {
|
|
729
733
|
var u = s;
|
|
730
|
-
|
|
734
|
+
V?.delete(u), Wt(u, T, n);
|
|
731
735
|
} else if (l) {
|
|
732
736
|
var d = s;
|
|
733
737
|
c & 16 && kt !== null && kt.add(d), n === null ? jt(d) : n.push(d);
|
|
@@ -737,19 +741,19 @@ function Wt(e, t, n) {
|
|
|
737
741
|
}
|
|
738
742
|
}
|
|
739
743
|
function Gt(e) {
|
|
740
|
-
if (typeof e != "object" || !e ||
|
|
744
|
+
if (typeof e != "object" || !e || A in e || j in e) return e;
|
|
741
745
|
let t = re(e);
|
|
742
746
|
if (t !== te && t !== ne) return e;
|
|
743
|
-
var n = /* @__PURE__ */ new Map(), r = g(e), i = /* @__PURE__ */ H(0), a = null, o =
|
|
744
|
-
if (
|
|
745
|
-
var t =
|
|
746
|
-
|
|
747
|
+
var n = /* @__PURE__ */ new Map(), r = g(e), i = /* @__PURE__ */ H(0), a = null, o = Gn, s = (e) => {
|
|
748
|
+
if (Gn === o) return e();
|
|
749
|
+
var t = q, n = Gn;
|
|
750
|
+
J(null), Kn(o);
|
|
747
751
|
var r = e();
|
|
748
|
-
return
|
|
752
|
+
return J(t), Kn(n), r;
|
|
749
753
|
};
|
|
750
754
|
return r && n.set("length", /* @__PURE__ */ H(e.length, a)), new Proxy(e, {
|
|
751
755
|
defineProperty(e, t, r) {
|
|
752
|
-
(!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) &&
|
|
756
|
+
(!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && He();
|
|
753
757
|
var i = n.get(t);
|
|
754
758
|
return i === void 0 ? s(() => {
|
|
755
759
|
var e = /* @__PURE__ */ H(r.value, a);
|
|
@@ -767,7 +771,7 @@ function Gt(e) {
|
|
|
767
771
|
return !0;
|
|
768
772
|
},
|
|
769
773
|
get(t, r, i) {
|
|
770
|
-
if (r ===
|
|
774
|
+
if (r === A) return e;
|
|
771
775
|
var o = n.get(r), c = r in t;
|
|
772
776
|
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
777
|
var l = Q(o);
|
|
@@ -792,9 +796,9 @@ function Gt(e) {
|
|
|
792
796
|
return r;
|
|
793
797
|
},
|
|
794
798
|
has(e, t) {
|
|
795
|
-
if (t ===
|
|
799
|
+
if (t === A) return !0;
|
|
796
800
|
var r = n.get(t), i = r !== void 0 && r.v !== m || Reflect.has(e, t);
|
|
797
|
-
return (r !== void 0 ||
|
|
801
|
+
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
802
|
},
|
|
799
803
|
set(e, t, o, c) {
|
|
800
804
|
var l = n.get(t), u = t in e;
|
|
@@ -828,7 +832,7 @@ function Gt(e) {
|
|
|
828
832
|
return t;
|
|
829
833
|
},
|
|
830
834
|
setPrototypeOf() {
|
|
831
|
-
|
|
835
|
+
Ue();
|
|
832
836
|
}
|
|
833
837
|
});
|
|
834
838
|
}
|
|
@@ -837,83 +841,84 @@ function Xt() {
|
|
|
837
841
|
if (Kt === void 0) {
|
|
838
842
|
Kt = window, qt = /Firefox/.test(navigator.userAgent);
|
|
839
843
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
840
|
-
Jt = S(t, "firstChild").get, Yt = S(t, "nextSibling").get, ie(e) && (e[
|
|
844
|
+
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
845
|
}
|
|
842
846
|
}
|
|
843
|
-
function
|
|
847
|
+
function W(e = "") {
|
|
844
848
|
return document.createTextNode(e);
|
|
845
849
|
}
|
|
846
850
|
/*@__NO_SIDE_EFFECTS__*/
|
|
847
|
-
function
|
|
851
|
+
function Zt(e) {
|
|
848
852
|
return Jt.call(e);
|
|
849
853
|
}
|
|
850
854
|
/*@__NO_SIDE_EFFECTS__*/
|
|
851
|
-
function
|
|
855
|
+
function Qt(e) {
|
|
852
856
|
return Yt.call(e);
|
|
853
857
|
}
|
|
854
|
-
function
|
|
855
|
-
if (!
|
|
856
|
-
var n = /* @__PURE__ */
|
|
857
|
-
if (n === null) n =
|
|
858
|
+
function $t(e, t) {
|
|
859
|
+
if (!M) return /* @__PURE__ */ Zt(e);
|
|
860
|
+
var n = /* @__PURE__ */ Zt(P);
|
|
861
|
+
if (n === null) n = P.appendChild(W());
|
|
858
862
|
else if (t && n.nodeType !== 3) {
|
|
859
|
-
var r =
|
|
860
|
-
return n?.before(r),
|
|
863
|
+
var r = W();
|
|
864
|
+
return n?.before(r), F(r), r;
|
|
861
865
|
}
|
|
862
|
-
return t &&
|
|
866
|
+
return t && sn(n), F(n), n;
|
|
863
867
|
}
|
|
864
|
-
function
|
|
865
|
-
if (!
|
|
866
|
-
var n = /* @__PURE__ */
|
|
867
|
-
return n instanceof Comment && n.data === "" ? /* @__PURE__ */
|
|
868
|
+
function en(e, t = !1) {
|
|
869
|
+
if (!M) {
|
|
870
|
+
var n = /* @__PURE__ */ Zt(e);
|
|
871
|
+
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Qt(n) : n;
|
|
868
872
|
}
|
|
869
873
|
if (t) {
|
|
870
|
-
if (
|
|
871
|
-
var r =
|
|
872
|
-
return
|
|
874
|
+
if (P?.nodeType !== 3) {
|
|
875
|
+
var r = W();
|
|
876
|
+
return P?.before(r), F(r), r;
|
|
873
877
|
}
|
|
874
|
-
|
|
878
|
+
sn(P);
|
|
875
879
|
}
|
|
876
|
-
return
|
|
877
|
-
}
|
|
878
|
-
function nn(e, t = !1) {
|
|
879
|
-
if (!P) return /* @__PURE__ */ Qt(e);
|
|
880
|
-
var n = en(e, t);
|
|
881
|
-
return Te(e), n;
|
|
880
|
+
return P;
|
|
882
881
|
}
|
|
883
|
-
function
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
882
|
+
function tn(e, t = !1) {
|
|
883
|
+
if (!M) return /* @__PURE__ */ Zt(e);
|
|
884
|
+
var n = $t(e, t);
|
|
885
|
+
return De(e), n;
|
|
886
|
+
}
|
|
887
|
+
function nn(e, t = 1, n = !1) {
|
|
888
|
+
let r = M ? P : e;
|
|
889
|
+
for (var i; t--;) i = r, r = /* @__PURE__ */ Qt(r);
|
|
890
|
+
if (!M) return r;
|
|
887
891
|
if (n) {
|
|
888
892
|
if (r?.nodeType !== 3) {
|
|
889
|
-
var a =
|
|
890
|
-
return r === null ? i?.after(a) : r.before(a),
|
|
893
|
+
var a = W();
|
|
894
|
+
return r === null ? i?.after(a) : r.before(a), F(a), a;
|
|
891
895
|
}
|
|
892
|
-
|
|
896
|
+
sn(r);
|
|
893
897
|
}
|
|
894
|
-
return
|
|
898
|
+
return F(r), r;
|
|
895
899
|
}
|
|
896
|
-
function
|
|
900
|
+
function rn(e) {
|
|
897
901
|
e.textContent = "";
|
|
898
902
|
}
|
|
899
|
-
function
|
|
903
|
+
function an() {
|
|
900
904
|
return !1;
|
|
901
905
|
}
|
|
902
|
-
function
|
|
906
|
+
function on(e, t, n) {
|
|
903
907
|
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
908
|
}
|
|
905
|
-
function
|
|
909
|
+
function sn(e) {
|
|
906
910
|
if (e.nodeValue.length < 65536) return;
|
|
907
911
|
let t = e.nextSibling;
|
|
908
912
|
for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
909
913
|
}
|
|
910
|
-
function
|
|
911
|
-
var t =
|
|
912
|
-
if (t === null) return
|
|
914
|
+
function cn(e) {
|
|
915
|
+
var t = Y;
|
|
916
|
+
if (t === null) return q.f |= k, e;
|
|
913
917
|
if (!(t.f & 32768) && !(t.f & 4)) throw e;
|
|
914
|
-
|
|
918
|
+
ln(e, t);
|
|
915
919
|
}
|
|
916
|
-
function
|
|
920
|
+
function ln(e, t) {
|
|
921
|
+
if (e === p) throw e;
|
|
917
922
|
if (!(t !== null && t.f & 16384)) {
|
|
918
923
|
for (; t !== null;) {
|
|
919
924
|
if (t.f & 128 && !(t.f & 33570816)) {
|
|
@@ -931,22 +936,22 @@ function un(e, t) {
|
|
|
931
936
|
}
|
|
932
937
|
}
|
|
933
938
|
//#endregion
|
|
934
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
935
|
-
function
|
|
936
|
-
|
|
939
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/reactivity/effects.js
|
|
940
|
+
function un(e) {
|
|
941
|
+
Y === null && (q === null && Re(e), Le()), Fn && Ie(e);
|
|
937
942
|
}
|
|
938
|
-
function
|
|
943
|
+
function dn(e, t) {
|
|
939
944
|
var n = t.last;
|
|
940
945
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
941
946
|
}
|
|
942
|
-
function
|
|
943
|
-
var n =
|
|
944
|
-
n !== null && n.f & 8192 && (e |=
|
|
947
|
+
function fn(e, t) {
|
|
948
|
+
var n = Y;
|
|
949
|
+
n !== null && n.f & 8192 && (e |= ce);
|
|
945
950
|
var r = {
|
|
946
|
-
ctx:
|
|
951
|
+
ctx: I,
|
|
947
952
|
deps: null,
|
|
948
953
|
nodes: null,
|
|
949
|
-
f: e |
|
|
954
|
+
f: e | w | 512,
|
|
950
955
|
first: null,
|
|
951
956
|
fn: t,
|
|
952
957
|
last: null,
|
|
@@ -958,257 +963,257 @@ function pn(e, t) {
|
|
|
958
963
|
wv: 0,
|
|
959
964
|
ac: null
|
|
960
965
|
};
|
|
961
|
-
|
|
966
|
+
B?.register_created_effect(r);
|
|
962
967
|
var i = r;
|
|
963
968
|
if (e & 4) St === null ? Et.ensure().schedule(r) : St.push(r);
|
|
964
969
|
else if (t !== null) {
|
|
965
970
|
try {
|
|
966
|
-
|
|
971
|
+
er(r);
|
|
967
972
|
} catch (e) {
|
|
968
|
-
throw
|
|
973
|
+
throw K(r), e;
|
|
969
974
|
}
|
|
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 |=
|
|
975
|
+
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
976
|
}
|
|
972
|
-
if (i !== null && (i.parent = n, n !== null &&
|
|
973
|
-
var a =
|
|
977
|
+
if (i !== null && (i.parent = n, n !== null && dn(i, n), q !== null && q.f & 2 && !(e & 64))) {
|
|
978
|
+
var a = q;
|
|
974
979
|
(a.effects ??= []).push(i);
|
|
975
980
|
}
|
|
976
981
|
return r;
|
|
977
982
|
}
|
|
978
|
-
function
|
|
979
|
-
return
|
|
983
|
+
function pn() {
|
|
984
|
+
return q !== null && !Ln;
|
|
985
|
+
}
|
|
986
|
+
function mn(e) {
|
|
987
|
+
let t = fn(8, null);
|
|
988
|
+
return R(t, C), t.teardown = e, t;
|
|
980
989
|
}
|
|
981
990
|
function hn(e) {
|
|
982
|
-
|
|
983
|
-
|
|
991
|
+
un("$effect");
|
|
992
|
+
var t = Y.f;
|
|
993
|
+
if (!q && t & 32 && I !== null && !I.i) {
|
|
994
|
+
var n = I;
|
|
995
|
+
(n.e ??= []).push(e);
|
|
996
|
+
} else return gn(e);
|
|
984
997
|
}
|
|
985
998
|
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);
|
|
999
|
+
return fn(4 | fe, e);
|
|
992
1000
|
}
|
|
993
1001
|
function _n(e) {
|
|
994
|
-
return pn(4 | ue, e);
|
|
995
|
-
}
|
|
996
|
-
function vn(e) {
|
|
997
1002
|
Et.ensure();
|
|
998
|
-
let t =
|
|
1003
|
+
let t = fn(64 | D, e);
|
|
999
1004
|
return () => {
|
|
1000
|
-
|
|
1005
|
+
K(t);
|
|
1001
1006
|
};
|
|
1002
1007
|
}
|
|
1003
|
-
function
|
|
1008
|
+
function vn(e) {
|
|
1004
1009
|
Et.ensure();
|
|
1005
|
-
let t =
|
|
1010
|
+
let t = fn(64 | D, e);
|
|
1006
1011
|
return (e = {}) => new Promise((n) => {
|
|
1007
|
-
e.outro ?
|
|
1008
|
-
|
|
1009
|
-
}) : (
|
|
1012
|
+
e.outro ? kn(t, () => {
|
|
1013
|
+
K(t), n(void 0);
|
|
1014
|
+
}) : (K(t), n(void 0));
|
|
1010
1015
|
});
|
|
1011
1016
|
}
|
|
1012
|
-
function
|
|
1013
|
-
return
|
|
1017
|
+
function yn(e) {
|
|
1018
|
+
return fn(4, e);
|
|
1014
1019
|
}
|
|
1015
|
-
function
|
|
1016
|
-
return
|
|
1020
|
+
function bn(e) {
|
|
1021
|
+
return fn(me | D, e);
|
|
1017
1022
|
}
|
|
1018
|
-
function
|
|
1019
|
-
return
|
|
1023
|
+
function xn(e, t = 0) {
|
|
1024
|
+
return fn(8 | t, e);
|
|
1020
1025
|
}
|
|
1021
|
-
function
|
|
1022
|
-
|
|
1023
|
-
|
|
1026
|
+
function Sn(e, t = [], n = [], r = []) {
|
|
1027
|
+
it(r, t, n, (t) => {
|
|
1028
|
+
fn(8, () => {
|
|
1024
1029
|
e(...t.map(Q));
|
|
1025
1030
|
});
|
|
1026
1031
|
});
|
|
1027
1032
|
}
|
|
1028
|
-
function
|
|
1029
|
-
return
|
|
1033
|
+
function Cn(e, t = 0) {
|
|
1034
|
+
return fn(16 | t, e);
|
|
1030
1035
|
}
|
|
1031
|
-
function
|
|
1032
|
-
return
|
|
1036
|
+
function G(e) {
|
|
1037
|
+
return fn(32 | D, e);
|
|
1033
1038
|
}
|
|
1034
|
-
function
|
|
1039
|
+
function wn(e) {
|
|
1035
1040
|
var t = e.teardown;
|
|
1036
1041
|
if (t !== null) {
|
|
1037
|
-
let n =
|
|
1038
|
-
|
|
1042
|
+
let n = Fn, r = q;
|
|
1043
|
+
In(!0), J(null);
|
|
1039
1044
|
try {
|
|
1040
1045
|
t.call(null);
|
|
1041
1046
|
} catch (t) {
|
|
1042
|
-
|
|
1047
|
+
ln(t, e.parent);
|
|
1043
1048
|
} finally {
|
|
1044
|
-
|
|
1049
|
+
In(n), J(r);
|
|
1045
1050
|
}
|
|
1046
1051
|
}
|
|
1047
1052
|
}
|
|
1048
|
-
function
|
|
1053
|
+
function Tn(e, t = !1) {
|
|
1049
1054
|
var n = e.first;
|
|
1050
1055
|
for (e.first = e.last = null; n !== null;) {
|
|
1051
1056
|
let e = n.ac;
|
|
1052
|
-
e !== null &&
|
|
1053
|
-
e.abort(
|
|
1057
|
+
e !== null && rt(() => {
|
|
1058
|
+
e.abort(xe);
|
|
1054
1059
|
});
|
|
1055
1060
|
var r = n.next;
|
|
1056
|
-
n.f & 64 ? n.parent = null :
|
|
1061
|
+
n.f & 64 ? n.parent = null : K(n, t), n = r;
|
|
1057
1062
|
}
|
|
1058
1063
|
}
|
|
1059
|
-
function
|
|
1064
|
+
function En(e) {
|
|
1060
1065
|
for (var t = e.first; t !== null;) {
|
|
1061
1066
|
var n = t.next;
|
|
1062
|
-
t.f & 32 ||
|
|
1067
|
+
t.f & 32 || K(t), t = n;
|
|
1063
1068
|
}
|
|
1064
1069
|
}
|
|
1065
|
-
function
|
|
1070
|
+
function K(e, t = !0) {
|
|
1066
1071
|
var n = !1;
|
|
1067
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (
|
|
1072
|
+
(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), $n(e, 0);
|
|
1068
1073
|
var r = e.nodes && e.nodes.t;
|
|
1069
1074
|
if (r !== null) for (let e of r) e.stop();
|
|
1070
|
-
|
|
1075
|
+
wn(e), e.f ^= ue, e.f |= le;
|
|
1071
1076
|
var i = e.parent;
|
|
1072
|
-
i !== null && i.first !== null &&
|
|
1077
|
+
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
1078
|
}
|
|
1074
|
-
function
|
|
1079
|
+
function Dn(e, t) {
|
|
1075
1080
|
for (; e !== null;) {
|
|
1076
|
-
var n = e === t ? null : /* @__PURE__ */
|
|
1081
|
+
var n = e === t ? null : /* @__PURE__ */ Qt(e);
|
|
1077
1082
|
e.remove(), e = n;
|
|
1078
1083
|
}
|
|
1079
1084
|
}
|
|
1080
|
-
function
|
|
1085
|
+
function On(e) {
|
|
1081
1086
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1082
1087
|
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
1088
|
}
|
|
1084
|
-
function
|
|
1089
|
+
function kn(e, t, n = !0) {
|
|
1085
1090
|
var r = [];
|
|
1086
|
-
e.f |= 256,
|
|
1091
|
+
e.f |= 256, An(e, r, !0);
|
|
1087
1092
|
var i = () => {
|
|
1088
|
-
n &&
|
|
1093
|
+
n && K(e), t && t();
|
|
1089
1094
|
}, a = r.length;
|
|
1090
1095
|
if (a > 0) {
|
|
1091
1096
|
var o = () => --a || i();
|
|
1092
1097
|
for (var s of r) s.out(o);
|
|
1093
1098
|
} else i();
|
|
1094
1099
|
}
|
|
1095
|
-
function
|
|
1100
|
+
function An(e, t, n) {
|
|
1096
1101
|
if (!(e.f & 8192)) {
|
|
1097
|
-
e.f ^=
|
|
1102
|
+
e.f ^= ce;
|
|
1098
1103
|
var r = e.nodes && e.nodes.t;
|
|
1099
1104
|
if (r !== null) for (let e of r) (e.is_global || n) && t.push(e);
|
|
1100
1105
|
for (var i = e.first; i !== null;) {
|
|
1101
1106
|
var a = i.next;
|
|
1102
1107
|
if (!(i.f & 64)) {
|
|
1103
1108
|
var o = !!(i.f & 65536) || !!(i.f & 32) && !!(e.f & 16);
|
|
1104
|
-
|
|
1109
|
+
An(i, t, o ? n : !1);
|
|
1105
1110
|
}
|
|
1106
1111
|
i = a;
|
|
1107
1112
|
}
|
|
1108
1113
|
}
|
|
1109
1114
|
}
|
|
1110
|
-
function
|
|
1111
|
-
e.f &= -257,
|
|
1115
|
+
function jn(e) {
|
|
1116
|
+
e.f &= -257, Mn(e, !0);
|
|
1112
1117
|
}
|
|
1113
|
-
function
|
|
1118
|
+
function Mn(e, t) {
|
|
1114
1119
|
if (!(e.f & 256) && e.f & 8192) {
|
|
1115
|
-
e.f ^=
|
|
1120
|
+
e.f ^= ce, e.f & 1024 || (R(e, w), Et.ensure().schedule(e));
|
|
1116
1121
|
for (var n = e.first; n !== null;) {
|
|
1117
1122
|
var r = n.next, i = !!(n.f & 65536) || !!(n.f & 32);
|
|
1118
|
-
|
|
1123
|
+
Mn(n, i ? t : !1), n = r;
|
|
1119
1124
|
}
|
|
1120
1125
|
var a = e.nodes && e.nodes.t;
|
|
1121
1126
|
if (a !== null) for (let e of a) (e.is_global || t) && e.in();
|
|
1122
1127
|
}
|
|
1123
1128
|
}
|
|
1124
|
-
function
|
|
1129
|
+
function Nn(e, t) {
|
|
1125
1130
|
if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
|
|
1126
|
-
var i = n === r ? null : /* @__PURE__ */
|
|
1131
|
+
var i = n === r ? null : /* @__PURE__ */ Qt(n);
|
|
1127
1132
|
t.append(n), n = i;
|
|
1128
1133
|
}
|
|
1129
1134
|
}
|
|
1130
1135
|
//#endregion
|
|
1131
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1132
|
-
var
|
|
1133
|
-
function
|
|
1134
|
-
|
|
1136
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/legacy.js
|
|
1137
|
+
var Pn = null, Fn = !1;
|
|
1138
|
+
function In(e) {
|
|
1139
|
+
Fn = e;
|
|
1135
1140
|
}
|
|
1136
|
-
var
|
|
1137
|
-
function
|
|
1138
|
-
|
|
1141
|
+
var q = null, Ln = !1;
|
|
1142
|
+
function J(e) {
|
|
1143
|
+
q = e;
|
|
1139
1144
|
}
|
|
1140
|
-
var
|
|
1141
|
-
function
|
|
1142
|
-
|
|
1145
|
+
var Y = null;
|
|
1146
|
+
function Rn(e) {
|
|
1147
|
+
Y = e;
|
|
1143
1148
|
}
|
|
1144
|
-
var
|
|
1145
|
-
function
|
|
1146
|
-
|
|
1149
|
+
var zn = null;
|
|
1150
|
+
function Bn(e) {
|
|
1151
|
+
q !== null && (q.f & 2097152 || q.f & 2) && (zn ??= /* @__PURE__ */ new Set()).add(e);
|
|
1147
1152
|
}
|
|
1148
|
-
var X = null, Z = 0,
|
|
1149
|
-
function
|
|
1150
|
-
|
|
1153
|
+
var X = null, Z = 0, Vn = null;
|
|
1154
|
+
function Hn(e) {
|
|
1155
|
+
Vn = e;
|
|
1151
1156
|
}
|
|
1152
|
-
var
|
|
1153
|
-
function
|
|
1154
|
-
|
|
1157
|
+
var Un = 1, Wn = 0, Gn = Wn;
|
|
1158
|
+
function Kn(e) {
|
|
1159
|
+
Gn = e;
|
|
1155
1160
|
}
|
|
1156
|
-
function
|
|
1157
|
-
return ++
|
|
1161
|
+
function qn() {
|
|
1162
|
+
return ++Un;
|
|
1158
1163
|
}
|
|
1159
|
-
function
|
|
1164
|
+
function Jn(e) {
|
|
1160
1165
|
var t = e.f;
|
|
1161
1166
|
if (t & 2048) return !0;
|
|
1162
1167
|
if (t & 4096) {
|
|
1163
1168
|
for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
|
|
1164
1169
|
var a = n[i];
|
|
1165
|
-
if (
|
|
1170
|
+
if (Jn(a) && mt(a), a.wv > e.wv) return !0;
|
|
1166
1171
|
}
|
|
1167
|
-
t & 512 &&
|
|
1172
|
+
t & 512 && V === null && R(e, C);
|
|
1168
1173
|
}
|
|
1169
1174
|
return !1;
|
|
1170
1175
|
}
|
|
1171
|
-
function
|
|
1176
|
+
function Yn(e, t, n = !0) {
|
|
1172
1177
|
var r = e.reactions;
|
|
1173
|
-
if (r !== null && !(
|
|
1178
|
+
if (r !== null && !(zn !== null && zn.has(e))) for (var i = 0; i < r.length; i++) {
|
|
1174
1179
|
var a = r[i];
|
|
1175
|
-
a.f & 2 ?
|
|
1180
|
+
a.f & 2 ? Yn(a, t, !1) : t === a && (n ? R(a, w) : a.f & 1024 && R(a, T), jt(a));
|
|
1176
1181
|
}
|
|
1177
1182
|
}
|
|
1178
|
-
function
|
|
1179
|
-
var t = X, n = Z, r =
|
|
1180
|
-
X = null, Z = 0,
|
|
1181
|
-
e.ac.abort(
|
|
1183
|
+
function Xn(e) {
|
|
1184
|
+
var t = X, n = Z, r = Vn, i = q, a = zn, o = I, s = Ln, c = Gn, l = e.f;
|
|
1185
|
+
X = null, Z = 0, Vn = null, q = l & 96 ? null : e, zn = null, Ke(e.ctx), Ln = !1, Gn = ++Wn, e.ac !== null && (rt(() => {
|
|
1186
|
+
e.ac.abort(xe);
|
|
1182
1187
|
}), e.ac = null);
|
|
1183
1188
|
try {
|
|
1184
|
-
e.f |= j;
|
|
1185
|
-
var u = e.fn, d = u();
|
|
1186
1189
|
e.f |= O;
|
|
1187
|
-
var
|
|
1188
|
-
|
|
1190
|
+
var u = e.fn, d = u();
|
|
1191
|
+
e.f |= E;
|
|
1192
|
+
var f = Zn(e);
|
|
1193
|
+
if (Xe() && Vn !== null && !Ln && f !== null && !(e.f & 6146)) for (var p = 0; p < Vn.length; p++) Yn(Vn[p], e);
|
|
1189
1194
|
if (i !== null && i !== e) {
|
|
1190
|
-
if (
|
|
1191
|
-
if (t !== null) for (let e of t) e.rv =
|
|
1192
|
-
|
|
1195
|
+
if (Wn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Wn;
|
|
1196
|
+
if (t !== null) for (let e of t) e.rv = Wn;
|
|
1197
|
+
Vn !== null && (r === null ? r = Vn : r.push(...Vn));
|
|
1193
1198
|
}
|
|
1194
|
-
return e.f & 8388608 && (e.f ^=
|
|
1199
|
+
return e.f & 8388608 && (e.f ^= k), d;
|
|
1195
1200
|
} catch (t) {
|
|
1196
|
-
return
|
|
1201
|
+
return Zn(e), cn(t);
|
|
1197
1202
|
} finally {
|
|
1198
|
-
e.f ^=
|
|
1203
|
+
e.f ^= O, X = t, Z = n, Vn = r, q = i, zn = a, Ke(o), Ln = s, Gn = c;
|
|
1199
1204
|
}
|
|
1200
1205
|
}
|
|
1201
|
-
function
|
|
1202
|
-
var t = e.deps, n =
|
|
1206
|
+
function Zn(e) {
|
|
1207
|
+
var t = e.deps, n = B?.is_fork;
|
|
1203
1208
|
if (X !== null) {
|
|
1204
1209
|
var r;
|
|
1205
|
-
if (n ||
|
|
1210
|
+
if (n || $n(e, Z), t !== null && Z > 0) for (t.length = Z + X.length, r = 0; r < X.length; r++) t[Z + r] = X[r];
|
|
1206
1211
|
else e.deps = t = X;
|
|
1207
|
-
if (
|
|
1208
|
-
} else !n && t !== null && Z < t.length && (
|
|
1212
|
+
if (pn() && e.f & 512) for (r = Z; r < t.length; r++) (t[r].reactions ??= []).push(e);
|
|
1213
|
+
} else !n && t !== null && Z < t.length && ($n(e, Z), t.length = Z);
|
|
1209
1214
|
return t;
|
|
1210
1215
|
}
|
|
1211
|
-
function
|
|
1216
|
+
function Qn(e, t) {
|
|
1212
1217
|
let n = t.reactions;
|
|
1213
1218
|
if (n !== null) {
|
|
1214
1219
|
var r = _.call(n, e);
|
|
@@ -1219,86 +1224,89 @@ function $n(e, t) {
|
|
|
1219
1224
|
}
|
|
1220
1225
|
if (n === null && t.f & 2 && (X === null || !v.call(X, t))) {
|
|
1221
1226
|
var a = t;
|
|
1222
|
-
a.f & 512 && (a.f ^= 512), a.v !== m &&
|
|
1223
|
-
a.ac.abort(
|
|
1224
|
-
}),
|
|
1227
|
+
a.f & 512 && (a.f ^= 512), a.v !== m && tt(a), a.ac !== null && rt(() => {
|
|
1228
|
+
a.ac.abort(xe), a.ac = null, R(a, w);
|
|
1229
|
+
}), ht(a), $n(a, 0);
|
|
1225
1230
|
}
|
|
1226
1231
|
}
|
|
1227
|
-
function
|
|
1232
|
+
function $n(e, t) {
|
|
1228
1233
|
var n = e.deps;
|
|
1229
|
-
if (n !== null) for (var r = t; r < n.length; r++)
|
|
1234
|
+
if (n !== null) for (var r = t; r < n.length; r++) Qn(e, n[r]);
|
|
1230
1235
|
}
|
|
1231
|
-
function
|
|
1236
|
+
function er(e) {
|
|
1232
1237
|
var t = e.f;
|
|
1233
1238
|
if (!(t & 16384)) {
|
|
1234
|
-
|
|
1235
|
-
var n =
|
|
1236
|
-
|
|
1239
|
+
R(e, C);
|
|
1240
|
+
var n = Y;
|
|
1241
|
+
Y = e;
|
|
1237
1242
|
try {
|
|
1238
|
-
t & 16777232 ?
|
|
1239
|
-
var
|
|
1240
|
-
e.teardown = typeof
|
|
1243
|
+
t & 16777232 ? En(e) : Tn(e), wn(e);
|
|
1244
|
+
var r = Xn(e);
|
|
1245
|
+
e.teardown = typeof r == "function" ? r : null, e.wv = Un;
|
|
1241
1246
|
} finally {
|
|
1242
|
-
|
|
1247
|
+
Y = n;
|
|
1243
1248
|
}
|
|
1244
1249
|
}
|
|
1245
1250
|
}
|
|
1246
1251
|
function Q(e) {
|
|
1247
1252
|
var t = !!(e.f & 2);
|
|
1248
|
-
if (
|
|
1249
|
-
var n =
|
|
1250
|
-
if (
|
|
1253
|
+
if (Pn?.add(e), q !== null && !Ln && !(Y !== null && Y.f & 16384) && (zn === null || !zn.has(e))) {
|
|
1254
|
+
var n = q.deps;
|
|
1255
|
+
if (q.f & 2097152) e.rv < Wn && (e.rv = Wn, X === null && n !== null && n[Z] === e ? Z++ : X === null ? X = [e] : X.push(e));
|
|
1251
1256
|
else {
|
|
1252
|
-
|
|
1257
|
+
q.deps ??= [], v.call(q.deps, e) || q.deps.push(e);
|
|
1253
1258
|
var r = e.reactions;
|
|
1254
|
-
r === null ? e.reactions = [
|
|
1259
|
+
r === null ? e.reactions = [q] : v.call(r, q) || r.push(q);
|
|
1255
1260
|
}
|
|
1256
1261
|
}
|
|
1257
|
-
if (
|
|
1262
|
+
if (Fn && Ft.has(e)) return Ft.get(e);
|
|
1258
1263
|
if (t) {
|
|
1259
1264
|
var i = e;
|
|
1260
|
-
if (
|
|
1265
|
+
if (Fn) {
|
|
1261
1266
|
var a = i.v;
|
|
1262
|
-
return (!(i.f & 1024) && i.reactions !== null ||
|
|
1267
|
+
return (!(i.f & 1024) && i.reactions !== null || nr(i)) && (a = pt(i)), Ft.set(i, a), a;
|
|
1263
1268
|
}
|
|
1264
|
-
var o = !(i.f & 512) && !
|
|
1265
|
-
|
|
1269
|
+
var o = !(i.f & 512) && !Ln && q !== null && !!(q.f & 512), s = (i.f & E) === 0;
|
|
1270
|
+
Jn(i) && (o && (i.f |= 512), mt(i)), o && !s && (gt(i), tr(i));
|
|
1266
1271
|
}
|
|
1267
|
-
if (
|
|
1272
|
+
if (V?.has(e)) return V.get(e);
|
|
1268
1273
|
if (e.f & 8388608) throw e.v;
|
|
1269
1274
|
return e.v;
|
|
1270
1275
|
}
|
|
1271
|
-
function
|
|
1272
|
-
if (e.f |= 512, e.deps !== null) for (let
|
|
1276
|
+
function tr(e) {
|
|
1277
|
+
if (e.f |= 512, e.deps !== null) for (let n of e.deps) {
|
|
1278
|
+
var t = n.reactions;
|
|
1279
|
+
t === null ? n.reactions = [e] : v.call(t, e) || t.push(e), n.f & 2 && !(n.f & 512) && (gt(n), tr(n));
|
|
1280
|
+
}
|
|
1273
1281
|
}
|
|
1274
|
-
function
|
|
1282
|
+
function nr(e) {
|
|
1275
1283
|
if (e.v === m) return !0;
|
|
1276
1284
|
if (e.deps === null) return !1;
|
|
1277
|
-
for (let t of e.deps) if (Ft.has(t) || t.f & 2 &&
|
|
1285
|
+
for (let t of e.deps) if (Ft.has(t) || t.f & 2 && nr(t)) return !0;
|
|
1278
1286
|
return !1;
|
|
1279
1287
|
}
|
|
1280
|
-
function
|
|
1281
|
-
var t =
|
|
1288
|
+
function rr(e) {
|
|
1289
|
+
var t = Ln;
|
|
1282
1290
|
try {
|
|
1283
|
-
return
|
|
1291
|
+
return Ln = !0, e();
|
|
1284
1292
|
} finally {
|
|
1285
|
-
|
|
1293
|
+
Ln = t;
|
|
1286
1294
|
}
|
|
1287
1295
|
}
|
|
1288
|
-
function
|
|
1296
|
+
function ir(e) {
|
|
1289
1297
|
if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
|
|
1290
|
-
if (
|
|
1298
|
+
if (A in e) ar(e);
|
|
1291
1299
|
else if (!Array.isArray(e)) for (let t in e) {
|
|
1292
1300
|
let n = e[t];
|
|
1293
|
-
typeof n == "object" && n &&
|
|
1301
|
+
typeof n == "object" && n && A in n && ar(n);
|
|
1294
1302
|
}
|
|
1295
1303
|
}
|
|
1296
1304
|
}
|
|
1297
|
-
function
|
|
1305
|
+
function ar(e, t = /* @__PURE__ */ new Set()) {
|
|
1298
1306
|
if (typeof e == "object" && e && !(e instanceof EventTarget) && !t.has(e)) {
|
|
1299
1307
|
t.add(e), e instanceof Date && e.getTime();
|
|
1300
1308
|
for (let n in e) try {
|
|
1301
|
-
|
|
1309
|
+
ar(e[n], t);
|
|
1302
1310
|
} catch {}
|
|
1303
1311
|
let n = re(e);
|
|
1304
1312
|
if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
|
|
@@ -1313,26 +1321,26 @@ function or(e, t = /* @__PURE__ */ new Set()) {
|
|
|
1313
1321
|
}
|
|
1314
1322
|
}
|
|
1315
1323
|
//#endregion
|
|
1316
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1317
|
-
var
|
|
1318
|
-
function
|
|
1319
|
-
(t[
|
|
1324
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/dom/elements/events.js
|
|
1325
|
+
var or = Symbol("events"), sr = /* @__PURE__ */ new Set(), cr = /* @__PURE__ */ new Set();
|
|
1326
|
+
function lr(e, t, n) {
|
|
1327
|
+
(t[or] ??= {})[e] = n;
|
|
1320
1328
|
}
|
|
1321
|
-
function
|
|
1322
|
-
for (var t = 0; t < e.length; t++)
|
|
1323
|
-
for (var n of
|
|
1329
|
+
function ur(e) {
|
|
1330
|
+
for (var t = 0; t < e.length; t++) sr.add(e[t]);
|
|
1331
|
+
for (var n of cr) n(e);
|
|
1324
1332
|
}
|
|
1325
|
-
var
|
|
1326
|
-
function
|
|
1333
|
+
var dr = null, fr = !1;
|
|
1334
|
+
function pr(e) {
|
|
1327
1335
|
var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
|
|
1328
|
-
|
|
1329
|
-
|
|
1336
|
+
dr = e, fr || (fr = !0, setTimeout(() => {
|
|
1337
|
+
fr = !1, dr = null;
|
|
1330
1338
|
}));
|
|
1331
|
-
var o = 0, s =
|
|
1339
|
+
var o = 0, s = dr === e && e[or];
|
|
1332
1340
|
if (s) {
|
|
1333
1341
|
var c = i.indexOf(s);
|
|
1334
1342
|
if (c !== -1 && (t === document || t === window)) {
|
|
1335
|
-
e[
|
|
1343
|
+
e[or] = t;
|
|
1336
1344
|
return;
|
|
1337
1345
|
}
|
|
1338
1346
|
var l = i.indexOf(t);
|
|
@@ -1346,12 +1354,12 @@ function mr(e) {
|
|
|
1346
1354
|
return a || n;
|
|
1347
1355
|
}
|
|
1348
1356
|
});
|
|
1349
|
-
var u =
|
|
1350
|
-
|
|
1357
|
+
var u = q, d = Y;
|
|
1358
|
+
J(null), Rn(null);
|
|
1351
1359
|
try {
|
|
1352
1360
|
for (var f, p = []; a !== null && a !== t;) {
|
|
1353
1361
|
try {
|
|
1354
|
-
var m = a[
|
|
1362
|
+
var m = a[or]?.[r];
|
|
1355
1363
|
m != null && (!a.disabled || e.target === a) && m.call(a, e);
|
|
1356
1364
|
} catch (e) {
|
|
1357
1365
|
f ? p.push(e) : f = e;
|
|
@@ -1366,24 +1374,24 @@ function mr(e) {
|
|
|
1366
1374
|
throw f;
|
|
1367
1375
|
}
|
|
1368
1376
|
} finally {
|
|
1369
|
-
e[
|
|
1377
|
+
e[or] = t, delete e.currentTarget, J(u), Rn(d);
|
|
1370
1378
|
}
|
|
1371
1379
|
}
|
|
1372
1380
|
}
|
|
1373
1381
|
//#endregion
|
|
1374
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1375
|
-
var
|
|
1376
|
-
function
|
|
1377
|
-
return
|
|
1382
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/dom/reconciler.js
|
|
1383
|
+
var mr = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1384
|
+
function hr(e) {
|
|
1385
|
+
return mr?.createHTML(e) ?? e;
|
|
1378
1386
|
}
|
|
1379
|
-
function
|
|
1380
|
-
var t =
|
|
1381
|
-
return t.innerHTML =
|
|
1387
|
+
function gr(e) {
|
|
1388
|
+
var t = on("template");
|
|
1389
|
+
return t.innerHTML = hr(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1382
1390
|
}
|
|
1383
1391
|
//#endregion
|
|
1384
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1385
|
-
function
|
|
1386
|
-
var n =
|
|
1392
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/dom/template.js
|
|
1393
|
+
function _r(e, t) {
|
|
1394
|
+
var n = Y;
|
|
1387
1395
|
n.nodes === null && (n.nodes = {
|
|
1388
1396
|
start: e,
|
|
1389
1397
|
end: t,
|
|
@@ -1392,61 +1400,61 @@ function vr(e, t) {
|
|
|
1392
1400
|
});
|
|
1393
1401
|
}
|
|
1394
1402
|
/*#__NO_SIDE_EFFECTS__*/
|
|
1395
|
-
function
|
|
1403
|
+
function vr(e, t) {
|
|
1396
1404
|
var n = !!(t & 1), r = !!(t & 2), i, a = !e.startsWith("<!>");
|
|
1397
1405
|
return () => {
|
|
1398
|
-
if (
|
|
1399
|
-
i === void 0 && (i =
|
|
1406
|
+
if (M) return _r(P, null), P;
|
|
1407
|
+
i === void 0 && (i = gr(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ Zt(i)));
|
|
1400
1408
|
var t = r || qt ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1401
1409
|
if (n) {
|
|
1402
|
-
var o = /* @__PURE__ */
|
|
1403
|
-
|
|
1404
|
-
} else
|
|
1410
|
+
var o = /* @__PURE__ */ Zt(t), s = t.lastChild;
|
|
1411
|
+
_r(o, s);
|
|
1412
|
+
} else _r(t, t);
|
|
1405
1413
|
return t;
|
|
1406
1414
|
};
|
|
1407
1415
|
}
|
|
1408
|
-
function
|
|
1409
|
-
if (
|
|
1410
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), n =
|
|
1411
|
-
return e.append(t, n),
|
|
1416
|
+
function yr() {
|
|
1417
|
+
if (M) return _r(P, null), P;
|
|
1418
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), n = W();
|
|
1419
|
+
return e.append(t, n), _r(t, n), e;
|
|
1412
1420
|
}
|
|
1413
|
-
function
|
|
1414
|
-
if (
|
|
1415
|
-
var n =
|
|
1416
|
-
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end =
|
|
1421
|
+
function br(e, t) {
|
|
1422
|
+
if (M) {
|
|
1423
|
+
var n = Y;
|
|
1424
|
+
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = P), Ee();
|
|
1417
1425
|
return;
|
|
1418
1426
|
}
|
|
1419
1427
|
e !== null && e.before(t);
|
|
1420
1428
|
}
|
|
1421
1429
|
[.../* @__PURE__ */ "allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback".split(".")];
|
|
1422
|
-
var
|
|
1423
|
-
function
|
|
1424
|
-
return
|
|
1430
|
+
var xr = ["touchstart", "touchmove"];
|
|
1431
|
+
function Sr(e) {
|
|
1432
|
+
return xr.includes(e);
|
|
1425
1433
|
}
|
|
1426
1434
|
//#endregion
|
|
1427
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1428
|
-
function
|
|
1435
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/reactivity/create-subscriber.js
|
|
1436
|
+
function Cr(e) {
|
|
1429
1437
|
let t = 0, n = Lt(0), r;
|
|
1430
1438
|
return () => {
|
|
1431
|
-
|
|
1432
|
-
|
|
1439
|
+
pn() && (Q(n), xn(() => (t === 0 && (r = rr(() => e(() => Ut(n)))), t += 1, () => {
|
|
1440
|
+
L(() => {
|
|
1433
1441
|
--t, t === 0 && (r?.(), r = void 0, Ut(n));
|
|
1434
1442
|
});
|
|
1435
1443
|
})));
|
|
1436
1444
|
};
|
|
1437
1445
|
}
|
|
1438
1446
|
//#endregion
|
|
1439
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1440
|
-
var
|
|
1441
|
-
function
|
|
1442
|
-
new
|
|
1447
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
|
|
1448
|
+
var wr = de | D;
|
|
1449
|
+
function Tr(e, t, n, r) {
|
|
1450
|
+
new Er(e, t, n, r);
|
|
1443
1451
|
}
|
|
1444
|
-
var
|
|
1452
|
+
var Er = class {
|
|
1445
1453
|
parent;
|
|
1446
1454
|
is_pending = !1;
|
|
1447
1455
|
transform_error;
|
|
1448
1456
|
#e;
|
|
1449
|
-
#t =
|
|
1457
|
+
#t = M ? P : null;
|
|
1450
1458
|
#n;
|
|
1451
1459
|
#r;
|
|
1452
1460
|
#i;
|
|
@@ -1460,105 +1468,112 @@ var Dr = class {
|
|
|
1460
1468
|
#f = /* @__PURE__ */ new Set();
|
|
1461
1469
|
#p = /* @__PURE__ */ new Set();
|
|
1462
1470
|
#m = null;
|
|
1463
|
-
#h =
|
|
1471
|
+
#h = Cr(() => (this.#m = Lt(this.#l), () => {
|
|
1464
1472
|
this.#m = null;
|
|
1465
1473
|
}));
|
|
1466
1474
|
constructor(e, t, n, r) {
|
|
1467
1475
|
this.#e = e, this.#n = t, this.#r = (e) => {
|
|
1468
|
-
var t =
|
|
1476
|
+
var t = Y;
|
|
1469
1477
|
t.b = this, t.f |= 128, n(e);
|
|
1470
|
-
}, this.parent =
|
|
1471
|
-
if (
|
|
1472
|
-
let e = this.#t;
|
|
1473
|
-
|
|
1474
|
-
let t = e
|
|
1475
|
-
if (e.
|
|
1476
|
-
let t = JSON.parse(e.
|
|
1478
|
+
}, this.parent = Y.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = Cn(() => {
|
|
1479
|
+
if (M) {
|
|
1480
|
+
let e = Ae(this.#t);
|
|
1481
|
+
Ee();
|
|
1482
|
+
let t = e === "[!";
|
|
1483
|
+
if (e.startsWith("[?")) {
|
|
1484
|
+
let t = JSON.parse(e.slice(2));
|
|
1477
1485
|
this.#_(t);
|
|
1478
|
-
} else t ? this.#
|
|
1479
|
-
} else this.#
|
|
1480
|
-
},
|
|
1486
|
+
} else t ? this.#b() : this.#g();
|
|
1487
|
+
} else this.#x();
|
|
1488
|
+
}, wr), M && (this.#e = P);
|
|
1481
1489
|
}
|
|
1482
1490
|
#g() {
|
|
1483
1491
|
try {
|
|
1484
|
-
this.#a =
|
|
1492
|
+
this.#a = G(() => this.#r(this.#e));
|
|
1485
1493
|
} catch (e) {
|
|
1486
1494
|
this.error(e);
|
|
1487
1495
|
}
|
|
1488
1496
|
}
|
|
1489
1497
|
#_(e) {
|
|
1490
1498
|
let t = this.#n.failed, { reset: n, invoke_onerror: r } = this.#v(e);
|
|
1491
|
-
|
|
1499
|
+
L(r), t && (this.#s = G(() => {
|
|
1492
1500
|
t(this.#e, () => e, () => n);
|
|
1493
1501
|
}));
|
|
1494
1502
|
}
|
|
1495
1503
|
#v(e) {
|
|
1496
1504
|
var t = !1, n = !1;
|
|
1497
1505
|
let r = () => {
|
|
1498
|
-
if (
|
|
1499
|
-
|
|
1500
|
-
|
|
1506
|
+
if (!this.#y()) {
|
|
1507
|
+
if (t) {
|
|
1508
|
+
Te();
|
|
1509
|
+
return;
|
|
1510
|
+
}
|
|
1511
|
+
t = !0, n && Ge(), this.#s !== null && kn(this.#s, () => {
|
|
1512
|
+
this.#s = null;
|
|
1513
|
+
}), this.#C(() => {
|
|
1514
|
+
this.#x();
|
|
1515
|
+
});
|
|
1501
1516
|
}
|
|
1502
|
-
t = !0, n && Ue(), this.#s !== null && An(this.#s, () => {
|
|
1503
|
-
this.#s = null;
|
|
1504
|
-
}), this.#S(() => {
|
|
1505
|
-
this.#b();
|
|
1506
|
-
});
|
|
1507
1517
|
};
|
|
1508
1518
|
return {
|
|
1509
1519
|
reset: r,
|
|
1510
1520
|
invoke_onerror: () => {
|
|
1511
|
-
try {
|
|
1521
|
+
if (!this.#y()) try {
|
|
1512
1522
|
n = !0, this.#n.onerror?.(e, r), n = !1;
|
|
1513
1523
|
} catch (e) {
|
|
1514
|
-
|
|
1524
|
+
ln(e, this.#i && this.#i.parent);
|
|
1515
1525
|
}
|
|
1516
1526
|
}
|
|
1517
1527
|
};
|
|
1518
1528
|
}
|
|
1519
1529
|
#y() {
|
|
1530
|
+
return (this.#i.f & (le | ue)) !== 0;
|
|
1531
|
+
}
|
|
1532
|
+
#b() {
|
|
1520
1533
|
let e = this.#n.pending;
|
|
1521
|
-
e && (this.is_pending = !0, this.#o =
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
return W(() => this.#r(t));
|
|
1526
|
-
} catch (e) {
|
|
1534
|
+
e && (this.is_pending = !0, this.#o = G(() => e(this.#e)), L(() => {
|
|
1535
|
+
if (!this.#y()) {
|
|
1536
|
+
var e = this.#c = document.createDocumentFragment(), t = W(), n = !1;
|
|
1537
|
+
if (e.append(t), this.#a = this.#C(() => {
|
|
1527
1538
|
try {
|
|
1528
|
-
|
|
1539
|
+
return G(() => this.#r(t));
|
|
1529
1540
|
} catch (e) {
|
|
1530
|
-
|
|
1541
|
+
try {
|
|
1542
|
+
this.error(e), n = !0;
|
|
1543
|
+
} catch (e) {
|
|
1544
|
+
ln(e, this.#i.parent);
|
|
1545
|
+
}
|
|
1546
|
+
return null;
|
|
1531
1547
|
}
|
|
1532
|
-
|
|
1548
|
+
}), this.#a === null) {
|
|
1549
|
+
this.#c = null, n && this.#S(B);
|
|
1550
|
+
return;
|
|
1533
1551
|
}
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1552
|
+
this.#u === 0 && (this.#e.before(e), this.#c = null, kn(this.#o, () => {
|
|
1553
|
+
this.#o = null;
|
|
1554
|
+
}), this.#S(B));
|
|
1537
1555
|
}
|
|
1538
|
-
this.#u === 0 && (this.#e.before(e), this.#c = null, An(this.#o, () => {
|
|
1539
|
-
this.#o = null;
|
|
1540
|
-
}), this.#x(V));
|
|
1541
1556
|
}));
|
|
1542
1557
|
}
|
|
1543
|
-
#
|
|
1558
|
+
#x() {
|
|
1544
1559
|
try {
|
|
1545
|
-
if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a =
|
|
1560
|
+
if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = G(() => {
|
|
1546
1561
|
this.#r(this.#e);
|
|
1547
1562
|
}), this.#u > 0) {
|
|
1548
1563
|
var e = this.#c = document.createDocumentFragment();
|
|
1549
|
-
|
|
1564
|
+
Nn(this.#a, e);
|
|
1550
1565
|
let t = this.#n.pending;
|
|
1551
|
-
this.#o =
|
|
1552
|
-
} else this.#
|
|
1566
|
+
this.#o = G(() => t(this.#e));
|
|
1567
|
+
} else this.#S(B);
|
|
1553
1568
|
} catch (e) {
|
|
1554
1569
|
this.error(e);
|
|
1555
1570
|
}
|
|
1556
1571
|
}
|
|
1557
|
-
#
|
|
1572
|
+
#S(e) {
|
|
1558
1573
|
this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
|
|
1559
1574
|
}
|
|
1560
1575
|
defer_effect(e) {
|
|
1561
|
-
|
|
1576
|
+
nt(e, this.#f, this.#p);
|
|
1562
1577
|
}
|
|
1563
1578
|
is_rendered() {
|
|
1564
1579
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -1566,26 +1581,26 @@ var Dr = class {
|
|
|
1566
1581
|
has_pending_snippet() {
|
|
1567
1582
|
return !!this.#n.pending;
|
|
1568
1583
|
}
|
|
1569
|
-
#
|
|
1570
|
-
var t =
|
|
1571
|
-
|
|
1584
|
+
#C(e) {
|
|
1585
|
+
var t = Y, n = q, r = I;
|
|
1586
|
+
Rn(this.#i), J(this.#i), Ke(this.#i.ctx);
|
|
1572
1587
|
try {
|
|
1573
1588
|
return Et.ensure(), e();
|
|
1574
1589
|
} finally {
|
|
1575
|
-
|
|
1590
|
+
Rn(t), J(n), Ke(r);
|
|
1576
1591
|
}
|
|
1577
1592
|
}
|
|
1578
|
-
#
|
|
1593
|
+
#w(e, t) {
|
|
1579
1594
|
if (!this.has_pending_snippet()) {
|
|
1580
|
-
this.parent && this.parent.#
|
|
1595
|
+
this.parent && this.parent.#w(e, t);
|
|
1581
1596
|
return;
|
|
1582
1597
|
}
|
|
1583
|
-
this.#u += e, this.#u === 0 && (this.#
|
|
1598
|
+
this.#u += e, this.#u === 0 && (this.#S(t), this.#o && kn(this.#o, () => {
|
|
1584
1599
|
this.#o = null;
|
|
1585
1600
|
}), this.#c &&= (this.#e.before(this.#c), null));
|
|
1586
1601
|
}
|
|
1587
1602
|
update_pending_count(e, t) {
|
|
1588
|
-
this.#
|
|
1603
|
+
this.#w(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, L(() => {
|
|
1589
1604
|
this.#d = !1, this.#m && Vt(this.#m, this.#l);
|
|
1590
1605
|
}));
|
|
1591
1606
|
}
|
|
@@ -1593,108 +1608,111 @@ var Dr = class {
|
|
|
1593
1608
|
return this.#h(), Q(this.#m);
|
|
1594
1609
|
}
|
|
1595
1610
|
error(e) {
|
|
1596
|
-
if (!this.#n.onerror && !this.#n.failed) throw e;
|
|
1597
|
-
|
|
1598
|
-
this.#
|
|
1599
|
-
})) : this.#
|
|
1611
|
+
if (e === p || !this.#n.onerror && !this.#n.failed) throw e;
|
|
1612
|
+
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(() => {
|
|
1613
|
+
this.#y() || this.#T(e);
|
|
1614
|
+
})) : this.#T(e);
|
|
1600
1615
|
}
|
|
1601
|
-
#
|
|
1602
|
-
this.#a &&= (
|
|
1616
|
+
#T(e) {
|
|
1617
|
+
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
1618
|
let t = this.#n.failed, n = (e) => {
|
|
1619
|
+
if (this.#y()) return;
|
|
1604
1620
|
let { reset: n, invoke_onerror: r } = this.#v(e);
|
|
1605
|
-
r(), t && (this.#s = this.#
|
|
1621
|
+
r(), t && !this.#y() && (this.#s = this.#C(() => {
|
|
1606
1622
|
try {
|
|
1607
|
-
return
|
|
1608
|
-
var r =
|
|
1623
|
+
return G(() => {
|
|
1624
|
+
var r = Y;
|
|
1609
1625
|
r.b = this, r.f |= 128, t(this.#e, () => e, () => n);
|
|
1610
1626
|
});
|
|
1611
1627
|
} catch (e) {
|
|
1612
|
-
return
|
|
1628
|
+
return ln(e, this.#i.parent), null;
|
|
1613
1629
|
}
|
|
1614
1630
|
}));
|
|
1615
1631
|
};
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1632
|
+
L(() => {
|
|
1633
|
+
if (!this.#y()) {
|
|
1634
|
+
var t;
|
|
1635
|
+
try {
|
|
1636
|
+
t = this.transform_error(e);
|
|
1637
|
+
} catch (e) {
|
|
1638
|
+
ln(e, this.#i && this.#i.parent);
|
|
1639
|
+
return;
|
|
1640
|
+
}
|
|
1641
|
+
typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => ln(e, this.#i && this.#i.parent)) : n(t);
|
|
1623
1642
|
}
|
|
1624
|
-
typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => un(e, this.#i && this.#i.parent)) : n(t);
|
|
1625
1643
|
});
|
|
1626
1644
|
}
|
|
1627
1645
|
};
|
|
1628
|
-
function
|
|
1646
|
+
function Dr(e, t) {
|
|
1629
1647
|
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1630
|
-
n !== (e[
|
|
1648
|
+
n !== (e[be] ??= e.nodeValue) && (e[be] = n, e.nodeValue = `${n}`);
|
|
1631
1649
|
}
|
|
1632
|
-
function
|
|
1633
|
-
return
|
|
1650
|
+
function Or(e, t) {
|
|
1651
|
+
return jr(e, t);
|
|
1634
1652
|
}
|
|
1635
|
-
function
|
|
1653
|
+
function kr(e, t) {
|
|
1636
1654
|
Xt(), t.intro = t.intro ?? !1;
|
|
1637
|
-
let n = t.target, r =
|
|
1655
|
+
let n = t.target, r = M, i = P;
|
|
1638
1656
|
try {
|
|
1639
|
-
for (var a = /* @__PURE__ */
|
|
1657
|
+
for (var a = /* @__PURE__ */ Zt(n); a && (a.nodeType !== 8 || a.data !== "[");) a = /* @__PURE__ */ Qt(a);
|
|
1640
1658
|
if (!a) throw p;
|
|
1641
|
-
|
|
1642
|
-
let r =
|
|
1659
|
+
N(!0), F(a);
|
|
1660
|
+
let r = jr(e, {
|
|
1643
1661
|
...t,
|
|
1644
1662
|
anchor: a
|
|
1645
1663
|
});
|
|
1646
|
-
return
|
|
1664
|
+
return N(!1), r;
|
|
1647
1665
|
} catch (r) {
|
|
1648
1666
|
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 &&
|
|
1667
|
+
return r !== p && console.warn("Failed to hydrate: ", r), t.recover === !1 && Be(), Xt(), rn(n), N(!1), Or(e, t);
|
|
1650
1668
|
} finally {
|
|
1651
|
-
|
|
1669
|
+
N(r), F(i);
|
|
1652
1670
|
}
|
|
1653
1671
|
}
|
|
1654
|
-
var
|
|
1655
|
-
function
|
|
1672
|
+
var Ar = /* @__PURE__ */ new Map();
|
|
1673
|
+
function jr(e, { target: t, anchor: n, props: r = {}, events: i, context: a, intro: o = !0, transformError: s }) {
|
|
1656
1674
|
Xt();
|
|
1657
|
-
var c = void 0, l =
|
|
1658
|
-
var o = n ?? t.appendChild(
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
var n =
|
|
1662
|
-
if (a && (n.c = a), i && (r.$$events = i),
|
|
1663
|
-
|
|
1675
|
+
var c = void 0, l = vn(() => {
|
|
1676
|
+
var o = n ?? t.appendChild(W());
|
|
1677
|
+
Tr(o, { pending: () => {} }, (t) => {
|
|
1678
|
+
qe({});
|
|
1679
|
+
var n = I;
|
|
1680
|
+
if (a && (n.c = a), i && (r.$$events = i), M && _r(t, null), c = e(t, r) || Ye(), M && (Y.nodes.end = P, P === null || P.nodeType !== 8 || P.data !== "]")) throw we(), p;
|
|
1681
|
+
Je();
|
|
1664
1682
|
}, s);
|
|
1665
1683
|
var l = /* @__PURE__ */ new Set(), u = (e) => {
|
|
1666
1684
|
for (var n = 0; n < e.length; n++) {
|
|
1667
1685
|
var r = e[n];
|
|
1668
1686
|
if (!l.has(r)) {
|
|
1669
1687
|
l.add(r);
|
|
1670
|
-
var i =
|
|
1688
|
+
var i = Sr(r);
|
|
1671
1689
|
for (let e of [t, document]) {
|
|
1672
|
-
var a =
|
|
1673
|
-
a === void 0 && (a = /* @__PURE__ */ new Map(),
|
|
1690
|
+
var a = Ar.get(e);
|
|
1691
|
+
a === void 0 && (a = /* @__PURE__ */ new Map(), Ar.set(e, a));
|
|
1674
1692
|
var o = a.get(r);
|
|
1675
|
-
o === void 0 ? (e.addEventListener(r,
|
|
1693
|
+
o === void 0 ? (e.addEventListener(r, pr, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
|
|
1676
1694
|
}
|
|
1677
1695
|
}
|
|
1678
1696
|
}
|
|
1679
1697
|
};
|
|
1680
|
-
return u(y(
|
|
1698
|
+
return u(y(sr)), cr.add(u), () => {
|
|
1681
1699
|
for (var e of l) for (let n of [t, document]) {
|
|
1682
|
-
var r =
|
|
1683
|
-
--i == 0 ? (n.removeEventListener(e,
|
|
1700
|
+
var r = Ar.get(n), i = r.get(e);
|
|
1701
|
+
--i == 0 ? (n.removeEventListener(e, pr), r.delete(e), r.size === 0 && Ar.delete(n)) : r.set(e, i);
|
|
1684
1702
|
}
|
|
1685
|
-
|
|
1703
|
+
cr.delete(u), o !== n && o.parentNode?.removeChild(o);
|
|
1686
1704
|
};
|
|
1687
1705
|
});
|
|
1688
|
-
return
|
|
1706
|
+
return Mr.set(c, l), c;
|
|
1689
1707
|
}
|
|
1690
|
-
var
|
|
1691
|
-
function
|
|
1692
|
-
let n =
|
|
1693
|
-
return n ? (
|
|
1708
|
+
var Mr = /* @__PURE__ */ new WeakMap();
|
|
1709
|
+
function Nr(e, t) {
|
|
1710
|
+
let n = Mr.get(e);
|
|
1711
|
+
return n ? (Mr.delete(e), n(t)) : Promise.resolve();
|
|
1694
1712
|
}
|
|
1695
1713
|
//#endregion
|
|
1696
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1697
|
-
var
|
|
1714
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/dom/blocks/branches.js
|
|
1715
|
+
var Pr = class {
|
|
1698
1716
|
anchor;
|
|
1699
1717
|
#e = /* @__PURE__ */ new Map();
|
|
1700
1718
|
#t = /* @__PURE__ */ new Map();
|
|
@@ -1707,73 +1725,73 @@ var Fr = class {
|
|
|
1707
1725
|
#a = (e) => {
|
|
1708
1726
|
if (this.#e.has(e)) {
|
|
1709
1727
|
var t = this.#e.get(e), n = this.#t.get(t);
|
|
1710
|
-
if (n)
|
|
1728
|
+
if (n) jn(n), this.#r.delete(t);
|
|
1711
1729
|
else {
|
|
1712
1730
|
var r = this.#n.get(t);
|
|
1713
|
-
r && (
|
|
1731
|
+
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
1732
|
}
|
|
1715
1733
|
for (let [t, n] of this.#e) {
|
|
1716
1734
|
if (this.#e.delete(t), t === e) break;
|
|
1717
1735
|
let r = this.#n.get(n);
|
|
1718
|
-
r && (
|
|
1736
|
+
r && (K(r.effect), this.#n.delete(n));
|
|
1719
1737
|
}
|
|
1720
1738
|
for (let [e, r] of this.#t) {
|
|
1721
1739
|
if (e === t || this.#r.has(e)) continue;
|
|
1722
1740
|
let i = () => {
|
|
1723
1741
|
if (Array.from(this.#e.values()).includes(e)) {
|
|
1724
1742
|
var t = document.createDocumentFragment();
|
|
1725
|
-
|
|
1743
|
+
Nn(r, t), t.append(W()), this.#n.set(e, {
|
|
1726
1744
|
effect: r,
|
|
1727
1745
|
fragment: t
|
|
1728
1746
|
});
|
|
1729
|
-
} else
|
|
1747
|
+
} else K(r);
|
|
1730
1748
|
this.#r.delete(e), this.#t.delete(e);
|
|
1731
1749
|
};
|
|
1732
|
-
this.#i || !n ? (this.#r.add(e),
|
|
1750
|
+
this.#i || !n ? (this.#r.add(e), kn(r, i, !1)) : i();
|
|
1733
1751
|
}
|
|
1734
1752
|
}
|
|
1735
1753
|
};
|
|
1736
1754
|
#o = (e) => {
|
|
1737
1755
|
this.#e.delete(e);
|
|
1738
1756
|
let t = Array.from(this.#e.values());
|
|
1739
|
-
for (let [e, n] of this.#n) t.includes(e) || (
|
|
1757
|
+
for (let [e, n] of this.#n) t.includes(e) || (K(n.effect), this.#n.delete(e));
|
|
1740
1758
|
};
|
|
1741
1759
|
ensure(e, t) {
|
|
1742
|
-
var n =
|
|
1760
|
+
var n = B, r = an();
|
|
1743
1761
|
if (t && !this.#t.has(e) && !this.#n.has(e)) {
|
|
1744
1762
|
if (r) {
|
|
1745
|
-
var i = document.createDocumentFragment(), a =
|
|
1763
|
+
var i = document.createDocumentFragment(), a = W();
|
|
1746
1764
|
i.append(a), this.#n.set(e, {
|
|
1747
|
-
effect:
|
|
1765
|
+
effect: G(() => t(a)),
|
|
1748
1766
|
fragment: i
|
|
1749
1767
|
});
|
|
1750
|
-
} else this.#t.set(e,
|
|
1768
|
+
} else this.#t.set(e, G(() => t(this.anchor)));
|
|
1751
1769
|
}
|
|
1752
1770
|
if (this.#e.set(n, e), r) {
|
|
1753
1771
|
for (let [t, r] of this.#t) t === e ? n.unskip_effect(r) : n.skip_effect(r);
|
|
1754
1772
|
for (let [t, r] of this.#n) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);
|
|
1755
1773
|
n.oncommit(this.#a), n.ondiscard(this.#o);
|
|
1756
|
-
} else
|
|
1774
|
+
} else M && (this.anchor = P), this.#a(n);
|
|
1757
1775
|
}
|
|
1758
1776
|
};
|
|
1759
1777
|
//#endregion
|
|
1760
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1761
|
-
function
|
|
1778
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/dom/blocks/if.js
|
|
1779
|
+
function Fr(e, t, n = !1) {
|
|
1762
1780
|
var r;
|
|
1763
|
-
|
|
1764
|
-
var i = new
|
|
1781
|
+
M && (r = P, Ee());
|
|
1782
|
+
var i = new Pr(e), a = n ? de : 0;
|
|
1765
1783
|
function o(e, t) {
|
|
1766
|
-
if (
|
|
1767
|
-
var n =
|
|
1784
|
+
if (M) {
|
|
1785
|
+
var n = Ae(r);
|
|
1768
1786
|
if (e !== parseInt(n.substring(1))) {
|
|
1769
|
-
var a =
|
|
1770
|
-
|
|
1787
|
+
var a = ke();
|
|
1788
|
+
F(a), i.anchor = a, N(!1), i.ensure(e, t), N(!0);
|
|
1771
1789
|
return;
|
|
1772
1790
|
}
|
|
1773
1791
|
}
|
|
1774
1792
|
i.ensure(e, t);
|
|
1775
1793
|
}
|
|
1776
|
-
|
|
1794
|
+
Cn(() => {
|
|
1777
1795
|
var e = !1;
|
|
1778
1796
|
t((t, n = 0) => {
|
|
1779
1797
|
e = !0, o(n, t);
|
|
@@ -1781,15 +1799,15 @@ function Ir(e, t, n = !1) {
|
|
|
1781
1799
|
}, a);
|
|
1782
1800
|
}
|
|
1783
1801
|
//#endregion
|
|
1784
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1785
|
-
function
|
|
1802
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/dom/blocks/each.js
|
|
1803
|
+
function Ir(e, t, n) {
|
|
1786
1804
|
for (var r = [], i = t.length, a, o = t.length, s = 0; s < i; s++) {
|
|
1787
1805
|
let n = t[s];
|
|
1788
|
-
|
|
1806
|
+
kn(n, () => {
|
|
1789
1807
|
if (a) {
|
|
1790
1808
|
if (a.pending.delete(n), a.done.add(n), a.pending.size === 0) {
|
|
1791
1809
|
var t = e.outrogroups;
|
|
1792
|
-
|
|
1810
|
+
Lr(e, y(a.done)), t.delete(a), t.size === 0 && (e.outrogroups = null);
|
|
1793
1811
|
}
|
|
1794
1812
|
} else --o;
|
|
1795
1813
|
}, !1);
|
|
@@ -1798,15 +1816,15 @@ function Lr(e, t, n) {
|
|
|
1798
1816
|
var c = r.length === 0 && n !== null && e.pending.size === 0;
|
|
1799
1817
|
if (c) {
|
|
1800
1818
|
var l = n, u = l.parentNode;
|
|
1801
|
-
|
|
1819
|
+
rn(u), u.append(l), e.items.clear();
|
|
1802
1820
|
}
|
|
1803
|
-
|
|
1821
|
+
Lr(e, t, !c);
|
|
1804
1822
|
} else a = {
|
|
1805
1823
|
pending: new Set(t),
|
|
1806
1824
|
done: /* @__PURE__ */ new Set()
|
|
1807
1825
|
}, (e.outrogroups ??= /* @__PURE__ */ new Set()).add(a);
|
|
1808
1826
|
}
|
|
1809
|
-
function
|
|
1827
|
+
function Lr(e, t, n = !0) {
|
|
1810
1828
|
var r;
|
|
1811
1829
|
if (e.pending.size > 0) {
|
|
1812
1830
|
r = /* @__PURE__ */ new Set();
|
|
@@ -1814,70 +1832,73 @@ function Rr(e, t, n = !0) {
|
|
|
1814
1832
|
}
|
|
1815
1833
|
for (var i = 0; i < t.length; i++) {
|
|
1816
1834
|
var a = t[i];
|
|
1817
|
-
r?.has(a) ? (a.f |=
|
|
1835
|
+
r?.has(a) ? (a.f |= pe, Nn(a, document.createDocumentFragment())) : K(t[i], n);
|
|
1818
1836
|
}
|
|
1819
1837
|
}
|
|
1820
|
-
var
|
|
1821
|
-
function
|
|
1838
|
+
var Rr;
|
|
1839
|
+
function zr(e, t, n, r, i, a = null) {
|
|
1822
1840
|
var o = e, s = /* @__PURE__ */ new Map();
|
|
1823
1841
|
if (t & 4) {
|
|
1824
1842
|
var c = e;
|
|
1825
|
-
o =
|
|
1843
|
+
o = M ? F(/* @__PURE__ */ Zt(c)) : c.appendChild(W());
|
|
1826
1844
|
}
|
|
1827
|
-
|
|
1828
|
-
var l = null, u = /* @__PURE__ */
|
|
1845
|
+
M && Ee();
|
|
1846
|
+
var l = null, u = /* @__PURE__ */ dt(() => {
|
|
1829
1847
|
var e = n();
|
|
1830
1848
|
return g(e) ? e : e == null ? [] : y(e);
|
|
1831
|
-
}), d
|
|
1832
|
-
function
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1849
|
+
}), d = /* @__PURE__ */ new Map(), f = !0;
|
|
1850
|
+
function p(e) {
|
|
1851
|
+
if (!(h.effect.f & 16384)) {
|
|
1852
|
+
h.pending.delete(e);
|
|
1853
|
+
var n = Q(u);
|
|
1854
|
+
h.fallback = l, Vr(h, n, o, t, r), l !== null && (n.length === 0 ? l.f & 33554432 ? (l.f ^= pe, Ur(l, null, o)) : jn(l) : kn(l, () => {
|
|
1855
|
+
l = null;
|
|
1856
|
+
}));
|
|
1857
|
+
}
|
|
1836
1858
|
}
|
|
1837
|
-
function
|
|
1838
|
-
|
|
1839
|
-
}
|
|
1840
|
-
var
|
|
1841
|
-
effect:
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
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 ??= Zt(), b, x, y, i, t, n), p || (S.e.f |= A), s.set(x, S)), g.add(x);
|
|
1859
|
+
function m(e) {
|
|
1860
|
+
h.pending.delete(e);
|
|
1861
|
+
}
|
|
1862
|
+
var h = {
|
|
1863
|
+
effect: Cn(() => {
|
|
1864
|
+
var e = Q(u), c = e.length;
|
|
1865
|
+
let h = !1;
|
|
1866
|
+
M && Ae(o) === "[!" != (c === 0) && (o = ke(), F(o), N(!1), h = !0);
|
|
1867
|
+
for (var g = /* @__PURE__ */ new Set(), _ = B, v = an(), y = 0; y < c; y += 1) {
|
|
1868
|
+
M && P.nodeType === 8 && P.data === "]" && (o = P, h = !0, N(!1));
|
|
1869
|
+
var b = e[y], x = r(b, y), S = f ? null : s.get(x);
|
|
1870
|
+
S ? (S.v && Vt(S.v, b), S.i && Vt(S.i, y), v && _.unskip_effect(S.e)) : (S = Hr(s, f ? o : Rr ??= W(), b, x, y, i, t, n), f || (S.e.f |= pe), s.set(x, S)), g.add(x);
|
|
1850
1871
|
}
|
|
1851
|
-
if (
|
|
1852
|
-
if (
|
|
1872
|
+
if (c === 0 && a && !l && (f ? l = G(() => a(o)) : (l = G(() => a(Rr ??= W())), l.f |= pe)), c > g.size && Fe("", "", ""), M && c > 0 && F(ke()), !f) {
|
|
1873
|
+
if (d.set(_, g), v) {
|
|
1853
1874
|
for (let [e, t] of s) g.has(e) || _.skip_effect(t.e);
|
|
1854
|
-
_.oncommit(
|
|
1855
|
-
} else
|
|
1875
|
+
_.oncommit(p), _.ondiscard(m);
|
|
1876
|
+
} else p(_);
|
|
1856
1877
|
}
|
|
1857
|
-
|
|
1878
|
+
h && N(!0), Q(u);
|
|
1858
1879
|
}),
|
|
1859
1880
|
flags: t,
|
|
1860
1881
|
items: s,
|
|
1861
|
-
pending:
|
|
1882
|
+
pending: d,
|
|
1862
1883
|
outrogroups: null,
|
|
1863
1884
|
fallback: l
|
|
1864
1885
|
};
|
|
1865
|
-
|
|
1886
|
+
f = !1, M && (o = P);
|
|
1866
1887
|
}
|
|
1867
|
-
function
|
|
1888
|
+
function Br(e) {
|
|
1868
1889
|
for (; e !== null && !(e.f & 32);) e = e.next;
|
|
1869
1890
|
return e;
|
|
1870
1891
|
}
|
|
1871
|
-
function
|
|
1872
|
-
var a = !!(r & 8), o = t.length, s = e.items, c =
|
|
1892
|
+
function Vr(e, t, n, r, i) {
|
|
1893
|
+
var a = !!(r & 8), o = t.length, s = e.items, c = Br(e.effect.first), l, u = null, d, f = [], p = [], m, h, g, _;
|
|
1873
1894
|
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
1895
|
for (_ = 0; _ < o; _ += 1) {
|
|
1875
1896
|
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 ^=
|
|
1897
|
+
if (g.f & 8192 && (jn(g), a && (g.nodes?.a?.unfix(), (d ??= /* @__PURE__ */ new Set()).delete(g))), g.f & 33554432) {
|
|
1898
|
+
if (g.f ^= pe, g === c) Ur(g, null, n);
|
|
1878
1899
|
else {
|
|
1879
1900
|
var v = u ? u.next : c;
|
|
1880
|
-
g === e.effect.last && (e.effect.last = g.prev), g.prev && (g.prev.next = g.next), g.next && (g.next.prev = g.prev),
|
|
1901
|
+
g === e.effect.last && (e.effect.last = g.prev), g.prev && (g.prev.next = g.next), g.next && (g.next.prev = g.prev), Wr(e, u, g), Wr(e, g, v), Ur(g, v, n), u = g, f = [], p = [], c = Br(u.next);
|
|
1881
1902
|
continue;
|
|
1882
1903
|
}
|
|
1883
1904
|
}
|
|
@@ -1887,25 +1908,25 @@ function Hr(e, t, n, r, i) {
|
|
|
1887
1908
|
var b = p[0], x;
|
|
1888
1909
|
u = b.prev;
|
|
1889
1910
|
var S = f[0], ee = f[f.length - 1];
|
|
1890
|
-
for (x = 0; x < f.length; x += 1)
|
|
1911
|
+
for (x = 0; x < f.length; x += 1) Ur(f[x], b, n);
|
|
1891
1912
|
for (x = 0; x < p.length; x += 1) l.delete(p[x]);
|
|
1892
|
-
|
|
1893
|
-
} else l.delete(g),
|
|
1913
|
+
Wr(e, S.prev, ee.next), Wr(e, u, S), Wr(e, ee, b), c = b, u = ee, --_, f = [], p = [];
|
|
1914
|
+
} else l.delete(g), Ur(g, c, n), Wr(e, g.prev, g.next), Wr(e, g, u === null ? e.effect.first : u.next), Wr(e, u, g), u = g;
|
|
1894
1915
|
continue;
|
|
1895
1916
|
}
|
|
1896
|
-
for (f = [], p = []; c !== null && c !== g;) (l ??= /* @__PURE__ */ new Set()).add(c), p.push(c), c =
|
|
1917
|
+
for (f = [], p = []; c !== null && c !== g;) (l ??= /* @__PURE__ */ new Set()).add(c), p.push(c), c = Br(c.next);
|
|
1897
1918
|
if (c === null) continue;
|
|
1898
1919
|
}
|
|
1899
|
-
g.f & 33554432 || f.push(g), u = g, c =
|
|
1920
|
+
g.f & 33554432 || f.push(g), u = g, c = Br(g.next);
|
|
1900
1921
|
}
|
|
1901
1922
|
if (e.outrogroups !== null) {
|
|
1902
|
-
for (let t of e.outrogroups) t.pending.size === 0 && (
|
|
1923
|
+
for (let t of e.outrogroups) t.pending.size === 0 && (Lr(e, y(t.done)), e.outrogroups?.delete(t));
|
|
1903
1924
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
1904
1925
|
}
|
|
1905
1926
|
if (c !== null || l !== void 0) {
|
|
1906
1927
|
var te = [];
|
|
1907
1928
|
if (l !== void 0) for (g of l) g.f & 8192 || te.push(g);
|
|
1908
|
-
for (; c !== null;) !(c.f & 8192) && c !== e.fallback && te.push(c), c =
|
|
1929
|
+
for (; c !== null;) !(c.f & 8192) && c !== e.fallback && te.push(c), c = Br(c.next);
|
|
1909
1930
|
var ne = te.length;
|
|
1910
1931
|
if (ne > 0) {
|
|
1911
1932
|
var re = r & 4 && o === 0 ? n : null;
|
|
@@ -1913,75 +1934,75 @@ function Hr(e, t, n, r, i) {
|
|
|
1913
1934
|
for (_ = 0; _ < ne; _ += 1) te[_].nodes?.a?.measure();
|
|
1914
1935
|
for (_ = 0; _ < ne; _ += 1) te[_].nodes?.a?.fix();
|
|
1915
1936
|
}
|
|
1916
|
-
|
|
1937
|
+
Ir(e, te, re);
|
|
1917
1938
|
}
|
|
1918
1939
|
}
|
|
1919
|
-
a &&
|
|
1940
|
+
a && L(() => {
|
|
1920
1941
|
if (d !== void 0) for (g of d) g.nodes?.a?.apply();
|
|
1921
1942
|
});
|
|
1922
1943
|
}
|
|
1923
|
-
function
|
|
1944
|
+
function Hr(e, t, n, r, i, a, o, s) {
|
|
1924
1945
|
var c = o & 1 ? o & 16 ? Lt(n) : /* @__PURE__ */ Rt(n, !1, !1) : null, l = o & 2 ? Lt(i) : null;
|
|
1925
1946
|
return {
|
|
1926
1947
|
v: c,
|
|
1927
1948
|
i: l,
|
|
1928
|
-
e:
|
|
1949
|
+
e: G(() => (a(t, c ?? n, l ?? i, s), () => {
|
|
1929
1950
|
e.delete(r);
|
|
1930
1951
|
}))
|
|
1931
1952
|
};
|
|
1932
1953
|
}
|
|
1933
|
-
function
|
|
1954
|
+
function Ur(e, t, n) {
|
|
1934
1955
|
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__ */
|
|
1956
|
+
var o = /* @__PURE__ */ Qt(r);
|
|
1936
1957
|
if (a.before(r), r === i) return;
|
|
1937
1958
|
r = o;
|
|
1938
1959
|
}
|
|
1939
1960
|
}
|
|
1940
|
-
function
|
|
1961
|
+
function Wr(e, t, n) {
|
|
1941
1962
|
t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
|
|
1942
1963
|
}
|
|
1943
1964
|
//#endregion
|
|
1944
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1945
|
-
function
|
|
1946
|
-
|
|
1947
|
-
e =
|
|
1965
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/dom/css.js
|
|
1966
|
+
function Gr(e, t) {
|
|
1967
|
+
yn(() => {
|
|
1968
|
+
e = Y?.parent?.nodes?.start ?? e;
|
|
1948
1969
|
var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
|
|
1949
1970
|
if (!r.querySelector("#" + t.hash)) {
|
|
1950
|
-
let e =
|
|
1971
|
+
let e = on("style");
|
|
1951
1972
|
e.id = t.hash, e.textContent = t.code, r.appendChild(e);
|
|
1952
1973
|
}
|
|
1953
1974
|
});
|
|
1954
1975
|
}
|
|
1955
1976
|
//#endregion
|
|
1956
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1957
|
-
function
|
|
1958
|
-
|
|
1959
|
-
var r =
|
|
1977
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/dom/elements/actions.js
|
|
1978
|
+
function Kr(e, t, n) {
|
|
1979
|
+
yn(() => {
|
|
1980
|
+
var r = rr(() => t(e, n?.()) || {});
|
|
1960
1981
|
if (n && r?.update) {
|
|
1961
1982
|
var i = !1, a = {};
|
|
1962
|
-
|
|
1983
|
+
xn(() => {
|
|
1963
1984
|
var e = n();
|
|
1964
|
-
|
|
1985
|
+
ir(e), i && Me(a, e) && (a = e, r.update(e));
|
|
1965
1986
|
}), i = !0;
|
|
1966
1987
|
}
|
|
1967
1988
|
if (r?.destroy) return () => r.destroy();
|
|
1968
1989
|
});
|
|
1969
1990
|
}
|
|
1970
1991
|
//#endregion
|
|
1971
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1972
|
-
var
|
|
1973
|
-
function
|
|
1992
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/shared/attributes.js
|
|
1993
|
+
var qr = [..." \n\r\f\xA0\v"];
|
|
1994
|
+
function Jr(e, t, n) {
|
|
1974
1995
|
var r = e == null ? "" : "" + e;
|
|
1975
1996
|
if (t && (r = r ? r + " " + t : t), n) {
|
|
1976
1997
|
for (var i of Object.keys(n)) if (n[i]) r = r ? r + " " + i : i;
|
|
1977
1998
|
else if (r.length) for (var a = i.length, o = 0; (o = r.indexOf(i, o)) >= 0;) {
|
|
1978
1999
|
var s = o + a;
|
|
1979
|
-
(o === 0 ||
|
|
2000
|
+
(o === 0 || qr.includes(r[o - 1])) && (s === r.length || qr.includes(r[s])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(s + 1) : o = s;
|
|
1980
2001
|
}
|
|
1981
2002
|
}
|
|
1982
2003
|
return r === "" ? null : r;
|
|
1983
2004
|
}
|
|
1984
|
-
function
|
|
2005
|
+
function Yr(e, t = !1) {
|
|
1985
2006
|
var n = t ? " !important;" : ";", r = "";
|
|
1986
2007
|
for (var i of Object.keys(e)) {
|
|
1987
2008
|
var a = e[i];
|
|
@@ -1989,16 +2010,16 @@ function Xr(e, t = !1) {
|
|
|
1989
2010
|
}
|
|
1990
2011
|
return r;
|
|
1991
2012
|
}
|
|
1992
|
-
function
|
|
2013
|
+
function Xr(e) {
|
|
1993
2014
|
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
1994
2015
|
}
|
|
1995
|
-
function
|
|
2016
|
+
function Zr(e, t) {
|
|
1996
2017
|
if (t) {
|
|
1997
2018
|
var n = "", r, i;
|
|
1998
2019
|
if (Array.isArray(t) ? (r = t[0], i = t[1]) : r = t, e) {
|
|
1999
2020
|
e = String(e).replaceAll(/\/\*.*?\*\//g, "").trim();
|
|
2000
2021
|
var a = !1, o = 0, s = !1, c = [];
|
|
2001
|
-
r && c.push(...Object.keys(r).map(
|
|
2022
|
+
r && c.push(...Object.keys(r).map(Xr)), i && c.push(...Object.keys(i).map(Xr));
|
|
2002
2023
|
var l = 0, u = -1;
|
|
2003
2024
|
let t = e.length;
|
|
2004
2025
|
for (var d = 0; d < t; d++) {
|
|
@@ -2007,7 +2028,7 @@ function Qr(e, t) {
|
|
|
2007
2028
|
if (f === ":" && u === -1) u = d;
|
|
2008
2029
|
else if (f === ";" || d === t - 1) {
|
|
2009
2030
|
if (u !== -1) {
|
|
2010
|
-
var p =
|
|
2031
|
+
var p = Xr(e.substring(l, u).trim());
|
|
2011
2032
|
if (!c.includes(p)) {
|
|
2012
2033
|
f !== ";" && d++;
|
|
2013
2034
|
var m = e.substring(l, d).trim();
|
|
@@ -2019,17 +2040,17 @@ function Qr(e, t) {
|
|
|
2019
2040
|
}
|
|
2020
2041
|
}
|
|
2021
2042
|
}
|
|
2022
|
-
return r && (n +=
|
|
2043
|
+
return r && (n += Yr(r)), i && (n += Yr(i, !0)), n = n.trim(), n === "" ? null : n;
|
|
2023
2044
|
}
|
|
2024
2045
|
return e == null ? null : String(e);
|
|
2025
2046
|
}
|
|
2026
2047
|
//#endregion
|
|
2027
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
2028
|
-
function
|
|
2029
|
-
var o = e[
|
|
2030
|
-
if (
|
|
2031
|
-
var s =
|
|
2032
|
-
(!
|
|
2048
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/dom/elements/class.js
|
|
2049
|
+
function Qr(e, t, n, r, i, a) {
|
|
2050
|
+
var o = e[ve];
|
|
2051
|
+
if (M || o !== n || o === void 0) {
|
|
2052
|
+
var s = Jr(n, r, a);
|
|
2053
|
+
(!M || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[ve] = n;
|
|
2033
2054
|
} else if (a && i !== a) for (var c in a) {
|
|
2034
2055
|
var l = !!a[c];
|
|
2035
2056
|
(i == null || l !== !!i[c]) && e.classList.toggle(c, l);
|
|
@@ -2037,49 +2058,49 @@ function $r(e, t, n, r, i, a) {
|
|
|
2037
2058
|
return a;
|
|
2038
2059
|
}
|
|
2039
2060
|
//#endregion
|
|
2040
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
2041
|
-
function
|
|
2061
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/dom/elements/style.js
|
|
2062
|
+
function $r(e, t = {}, n, r) {
|
|
2042
2063
|
for (var i in n) {
|
|
2043
2064
|
var a = n[i];
|
|
2044
2065
|
t[i] !== a && (n[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, a, r));
|
|
2045
2066
|
}
|
|
2046
2067
|
}
|
|
2047
|
-
function
|
|
2048
|
-
var i = e[
|
|
2049
|
-
if (
|
|
2050
|
-
var a =
|
|
2051
|
-
(!
|
|
2052
|
-
} else r && (Array.isArray(r) ? (
|
|
2068
|
+
function ei(e, t, n, r) {
|
|
2069
|
+
var i = e[ye];
|
|
2070
|
+
if (M || i !== t) {
|
|
2071
|
+
var a = Zr(t, r);
|
|
2072
|
+
(!M || a !== e.getAttribute("style")) && (a == null ? e.removeAttribute("style") : e.style.cssText = a), e[ye] = t;
|
|
2073
|
+
} else r && (Array.isArray(r) ? ($r(e, n?.[0], r[0]), $r(e, n?.[1], r[1], "important")) : $r(e, n, r));
|
|
2053
2074
|
return r;
|
|
2054
2075
|
}
|
|
2055
2076
|
//#endregion
|
|
2056
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
2057
|
-
var
|
|
2077
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/dom/elements/attributes.js
|
|
2078
|
+
var ti = Symbol("is custom element"), ni = Symbol("is html"), ri = Se ? "link" : "LINK";
|
|
2058
2079
|
function $(e, t, n, r) {
|
|
2059
|
-
var i =
|
|
2060
|
-
|
|
2080
|
+
var i = ai(e);
|
|
2081
|
+
M && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === ri) || i[t] !== (i[t] = n) && (t === "loading" && (e[ge] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && si(e).has(t) ? e[t] = n : e.setAttribute(t, n));
|
|
2061
2082
|
}
|
|
2062
|
-
function
|
|
2063
|
-
var r =
|
|
2064
|
-
let a =
|
|
2065
|
-
|
|
2083
|
+
function ii(e, t, n) {
|
|
2084
|
+
var r = q, i = Y;
|
|
2085
|
+
let a = M;
|
|
2086
|
+
M && N(!1), J(null), Rn(null);
|
|
2066
2087
|
try {
|
|
2067
|
-
t !== "style" && (
|
|
2088
|
+
t !== "style" && (oi.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? si(e).has(t) : n && typeof n == "object") ? e[t] = n : $(e, t, n == null ? n : String(n));
|
|
2068
2089
|
} finally {
|
|
2069
|
-
|
|
2090
|
+
J(r), Rn(i), a && N(!0);
|
|
2070
2091
|
}
|
|
2071
2092
|
}
|
|
2072
|
-
function
|
|
2073
|
-
return e[
|
|
2074
|
-
[
|
|
2075
|
-
[
|
|
2093
|
+
function ai(e) {
|
|
2094
|
+
return e[_e] ??= {
|
|
2095
|
+
[ti]: e.nodeName.includes("-"),
|
|
2096
|
+
[ni]: e.namespaceURI === h
|
|
2076
2097
|
};
|
|
2077
2098
|
}
|
|
2078
|
-
var
|
|
2079
|
-
function
|
|
2080
|
-
var t = e.getAttribute("is") || e.nodeName, n =
|
|
2099
|
+
var oi = /* @__PURE__ */ new Map();
|
|
2100
|
+
function si(e) {
|
|
2101
|
+
var t = e.getAttribute("is") || e.nodeName, n = oi.get(t);
|
|
2081
2102
|
if (n) return n;
|
|
2082
|
-
|
|
2103
|
+
oi.set(t, n = /* @__PURE__ */ new Set());
|
|
2083
2104
|
for (var r, i = e, a = Element.prototype; a !== i;) {
|
|
2084
2105
|
for (var o in r = ee(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.add(o);
|
|
2085
2106
|
i = re(i);
|
|
@@ -2087,23 +2108,23 @@ function ci(e) {
|
|
|
2087
2108
|
return n;
|
|
2088
2109
|
}
|
|
2089
2110
|
//#endregion
|
|
2090
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
2091
|
-
function
|
|
2092
|
-
return e === t || e?.[
|
|
2111
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
|
|
2112
|
+
function ci(e, t) {
|
|
2113
|
+
return e === t || e?.[A] === t;
|
|
2093
2114
|
}
|
|
2094
|
-
function
|
|
2095
|
-
var i =
|
|
2096
|
-
return
|
|
2115
|
+
function li(e = Ye(), t, n, r) {
|
|
2116
|
+
var i = I.r, a = Y;
|
|
2117
|
+
return yn(() => {
|
|
2097
2118
|
var o, s;
|
|
2098
|
-
return
|
|
2099
|
-
o = s, s = r?.() || [],
|
|
2100
|
-
|
|
2119
|
+
return xn(() => {
|
|
2120
|
+
o = s, s = r?.() || [], rr(() => {
|
|
2121
|
+
ci(n(...s), e) || (t(e, ...s), o && ci(n(...o), e) && t(null, ...o));
|
|
2101
2122
|
});
|
|
2102
2123
|
}), () => {
|
|
2103
2124
|
let r = a;
|
|
2104
2125
|
for (; r !== i && r.parent !== null && r.parent.f & 33554432;) r = r.parent;
|
|
2105
2126
|
let o = () => {
|
|
2106
|
-
s &&
|
|
2127
|
+
s && ci(n(...s), e) && t(null, ...s);
|
|
2107
2128
|
}, c = r.teardown;
|
|
2108
2129
|
r.teardown = () => {
|
|
2109
2130
|
o(), c?.();
|
|
@@ -2112,27 +2133,27 @@ function ui(e = qe(), t, n, r) {
|
|
|
2112
2133
|
}), e;
|
|
2113
2134
|
}
|
|
2114
2135
|
//#endregion
|
|
2115
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
2116
|
-
var
|
|
2117
|
-
function
|
|
2118
|
-
var t =
|
|
2136
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/reactivity/store.js
|
|
2137
|
+
var ui = !1;
|
|
2138
|
+
function di(e) {
|
|
2139
|
+
var t = ui;
|
|
2119
2140
|
try {
|
|
2120
|
-
return
|
|
2141
|
+
return ui = !1, [e(), ui];
|
|
2121
2142
|
} finally {
|
|
2122
|
-
|
|
2143
|
+
ui = t;
|
|
2123
2144
|
}
|
|
2124
2145
|
}
|
|
2125
2146
|
//#endregion
|
|
2126
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
2127
|
-
function
|
|
2128
|
-
var i = !0, a = !!(n & 8), o = !!(n & 16), s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */
|
|
2147
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/internal/client/reactivity/props.js
|
|
2148
|
+
function fi(e, t, n, r) {
|
|
2149
|
+
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 ? rr(r) : r), s);
|
|
2129
2150
|
let d;
|
|
2130
2151
|
if (a) {
|
|
2131
|
-
var f =
|
|
2152
|
+
var f = A in e || he in e;
|
|
2132
2153
|
d = S(e, t)?.set ?? (f && t in e ? (n) => e[t] = n : void 0);
|
|
2133
2154
|
}
|
|
2134
2155
|
var p, m = !1;
|
|
2135
|
-
a ? [p, m] =
|
|
2156
|
+
a ? [p, m] = di(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i && Ve(t), d(p)));
|
|
2136
2157
|
var h = i ? () => {
|
|
2137
2158
|
var n = e[t];
|
|
2138
2159
|
return n === void 0 ? u() : (c = !0, n);
|
|
@@ -2147,23 +2168,23 @@ function pi(e, t, n, r) {
|
|
|
2147
2168
|
return arguments.length > 0 ? ((!i || !t || g || m) && d(t ? h() : e), e) : h();
|
|
2148
2169
|
});
|
|
2149
2170
|
}
|
|
2150
|
-
var _ = !1, v = (n & 1 ?
|
|
2171
|
+
var _ = !1, v = (n & 1 ? ct : dt)(() => (_ = !1, h()));
|
|
2151
2172
|
a && Q(v);
|
|
2152
|
-
var y =
|
|
2173
|
+
var y = Y;
|
|
2153
2174
|
return (function(e, t) {
|
|
2154
2175
|
if (arguments.length > 0) {
|
|
2155
2176
|
let n = t ? Q(v) : i && a ? Gt(e) : e;
|
|
2156
2177
|
return U(v, n), _ = !0, s !== void 0 && (s = n), e;
|
|
2157
2178
|
}
|
|
2158
|
-
return
|
|
2179
|
+
return Fn && _ || y.f & 16384 ? v.v : Q(v);
|
|
2159
2180
|
});
|
|
2160
2181
|
}
|
|
2161
2182
|
//#endregion
|
|
2162
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
2163
|
-
function
|
|
2164
|
-
return new
|
|
2183
|
+
//#region ../../node_modules/.bun/svelte@5.57.2/node_modules/svelte/src/legacy/legacy-client.js
|
|
2184
|
+
function pi(e) {
|
|
2185
|
+
return new mi(e);
|
|
2165
2186
|
}
|
|
2166
|
-
var
|
|
2187
|
+
var mi = class {
|
|
2167
2188
|
#e;
|
|
2168
2189
|
#t;
|
|
2169
2190
|
constructor(e) {
|
|
@@ -2179,13 +2200,13 @@ var hi = class {
|
|
|
2179
2200
|
return Q(t.get(r) ?? n(r, Reflect.get(e, r)));
|
|
2180
2201
|
},
|
|
2181
2202
|
has(e, r) {
|
|
2182
|
-
return r ===
|
|
2203
|
+
return r === he || (Q(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
|
|
2183
2204
|
},
|
|
2184
2205
|
set(e, r, i) {
|
|
2185
2206
|
return U(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
|
|
2186
2207
|
}
|
|
2187
2208
|
});
|
|
2188
|
-
this.#t = (e.hydrate ?
|
|
2209
|
+
this.#t = (e.hydrate ? kr : Or)(e.component, {
|
|
2189
2210
|
target: e.target,
|
|
2190
2211
|
anchor: e.anchor,
|
|
2191
2212
|
props: r,
|
|
@@ -2206,7 +2227,7 @@ var hi = class {
|
|
|
2206
2227
|
this.#t.$set = (e) => {
|
|
2207
2228
|
Object.assign(r, e);
|
|
2208
2229
|
}, this.#t.$destroy = () => {
|
|
2209
|
-
|
|
2230
|
+
Nr(this.#t);
|
|
2210
2231
|
};
|
|
2211
2232
|
}
|
|
2212
2233
|
$set(e) {
|
|
@@ -2222,8 +2243,8 @@ var hi = class {
|
|
|
2222
2243
|
$destroy() {
|
|
2223
2244
|
this.#t.$destroy();
|
|
2224
2245
|
}
|
|
2225
|
-
},
|
|
2226
|
-
typeof HTMLElement == "function" && (
|
|
2246
|
+
}, hi;
|
|
2247
|
+
typeof HTMLElement == "function" && (hi = class extends HTMLElement {
|
|
2227
2248
|
$$ctor;
|
|
2228
2249
|
$$s;
|
|
2229
2250
|
$$c;
|
|
@@ -2256,18 +2277,18 @@ typeof HTMLElement == "function" && (gi = class extends HTMLElement {
|
|
|
2256
2277
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2257
2278
|
function e(e) {
|
|
2258
2279
|
return (t) => {
|
|
2259
|
-
let n =
|
|
2260
|
-
e !== "default" && (n.name = e),
|
|
2280
|
+
let n = on("slot");
|
|
2281
|
+
e !== "default" && (n.name = e), br(t, n);
|
|
2261
2282
|
};
|
|
2262
2283
|
}
|
|
2263
|
-
let t = {}, n =
|
|
2284
|
+
let t = {}, n = _i(this);
|
|
2264
2285
|
for (let r of this.$$s) r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), t.default = !0) : t[r] = e(r));
|
|
2265
2286
|
for (let e of this.attributes) {
|
|
2266
2287
|
let t = this.$$g_p(e.name);
|
|
2267
|
-
t in this.$$d || (this.$$d[t] =
|
|
2288
|
+
t in this.$$d || (this.$$d[t] = gi(t, e.value, this.$$p_d, "toProp"));
|
|
2268
2289
|
}
|
|
2269
2290
|
for (let e in this.$$p_d) !(e in this.$$d) && this[e] !== void 0 && (this.$$d[e] = this[e], delete this[e]);
|
|
2270
|
-
this.$$c =
|
|
2291
|
+
this.$$c = pi({
|
|
2271
2292
|
component: this.$$ctor,
|
|
2272
2293
|
target: this.$$shadowRoot || this,
|
|
2273
2294
|
props: {
|
|
@@ -2275,13 +2296,13 @@ typeof HTMLElement == "function" && (gi = class extends HTMLElement {
|
|
|
2275
2296
|
$$slots: t,
|
|
2276
2297
|
$$host: this
|
|
2277
2298
|
}
|
|
2278
|
-
}), this.$$me =
|
|
2279
|
-
|
|
2299
|
+
}), this.$$me = _n(() => {
|
|
2300
|
+
xn(() => {
|
|
2280
2301
|
this.$$r = !0;
|
|
2281
2302
|
for (let e of b(this.$$c)) {
|
|
2282
2303
|
if (!this.$$p_d[e]?.reflect) continue;
|
|
2283
2304
|
this.$$d[e] = this.$$c[e];
|
|
2284
|
-
let t =
|
|
2305
|
+
let t = gi(e, this.$$d[e], this.$$p_d, "toAttribute");
|
|
2285
2306
|
t == null ? this.removeAttribute(this.$$p_d[e].attribute || e) : this.setAttribute(this.$$p_d[e].attribute || e, t);
|
|
2286
2307
|
}
|
|
2287
2308
|
this.$$r = !1;
|
|
@@ -2295,7 +2316,7 @@ typeof HTMLElement == "function" && (gi = class extends HTMLElement {
|
|
|
2295
2316
|
}
|
|
2296
2317
|
}
|
|
2297
2318
|
attributeChangedCallback(e, t, n) {
|
|
2298
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
2319
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = gi(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2299
2320
|
}
|
|
2300
2321
|
disconnectedCallback() {
|
|
2301
2322
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2306,7 +2327,7 @@ typeof HTMLElement == "function" && (gi = class extends HTMLElement {
|
|
|
2306
2327
|
return b(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
2307
2328
|
}
|
|
2308
2329
|
});
|
|
2309
|
-
function
|
|
2330
|
+
function gi(e, t, n, r) {
|
|
2310
2331
|
let i = n[e]?.type;
|
|
2311
2332
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
|
|
2312
2333
|
if (r === "toAttribute") switch (i) {
|
|
@@ -2324,14 +2345,14 @@ function _i(e, t, n, r) {
|
|
|
2324
2345
|
default: return t;
|
|
2325
2346
|
}
|
|
2326
2347
|
}
|
|
2327
|
-
function
|
|
2348
|
+
function _i(e) {
|
|
2328
2349
|
let t = {};
|
|
2329
2350
|
return e.childNodes.forEach((e) => {
|
|
2330
2351
|
t[e.slot || "default"] = !0;
|
|
2331
2352
|
}), t;
|
|
2332
2353
|
}
|
|
2333
|
-
function
|
|
2334
|
-
let o = class extends
|
|
2354
|
+
function vi(e, t, n, r, i, a) {
|
|
2355
|
+
let o = class extends hi {
|
|
2335
2356
|
constructor() {
|
|
2336
2357
|
super(e, n, i), this.$$p_d = t;
|
|
2337
2358
|
}
|
|
@@ -2345,7 +2366,7 @@ function yi(e, t, n, r, i, a) {
|
|
|
2345
2366
|
return this.$$c && e in this.$$c ? this.$$c[e] : this.$$d[e];
|
|
2346
2367
|
},
|
|
2347
2368
|
set(n) {
|
|
2348
|
-
n =
|
|
2369
|
+
n = gi(e, n, t), this.$$d[e] = n;
|
|
2349
2370
|
var r = this.$$c;
|
|
2350
2371
|
r && (S(r, e)?.get ? r[e] = n : r.$set({ [e]: n }));
|
|
2351
2372
|
}
|
|
@@ -2358,32 +2379,32 @@ function yi(e, t, n, r, i, a) {
|
|
|
2358
2379
|
}
|
|
2359
2380
|
//#endregion
|
|
2360
2381
|
//#region tool-tts-inline.svelte
|
|
2361
|
-
var
|
|
2382
|
+
var yi = /* @__PURE__ */ vr("<nds-icon-button></nds-icon-button>", 2), bi = /* @__PURE__ */ vr("<button type=\"button\"><i aria-hidden=\"true\"></i></button>"), xi = /* @__PURE__ */ vr("<span class=\"pie-tool-tts-inline__trigger-zoom svelte-9msc39\"><!></span>"), Si = /* @__PURE__ */ vr("<button type=\"button\" role=\"radio\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--speed svelte-9msc39\"><span class=\"pie-tool-tts-inline__speed-label svelte-9msc39\"> </span></button>"), Ci = /* @__PURE__ */ vr("<div role=\"radiogroup\"></div>"), wi = /* @__PURE__ */ vr("<div role=\"toolbar\" tabindex=\"-1\"><!> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-seek=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-9msc39\"><i class=\"fa-solid fa-backward pie-tool-tts-inline__icon svelte-9msc39\" aria-hidden=\"true\"></i></button> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-seek=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-9msc39\"><i class=\"fa-solid fa-forward pie-tool-tts-inline__icon svelte-9msc39\" aria-hidden=\"true\"></i></button> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-stop=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-9msc39\"><i class=\"fa-solid fa-stop pie-tool-tts-inline__icon svelte-9msc39\" aria-hidden=\"true\"></i></button></div>"), Ti = /* @__PURE__ */ vr("<!> <!>", 1), Ei = /* @__PURE__ */ vr("<div><!> <div class=\"pie-sr-only svelte-9msc39\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div></div>"), Di = {
|
|
2362
2383
|
hash: "svelte-9msc39",
|
|
2363
2384
|
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
2385
|
};
|
|
2365
|
-
function
|
|
2366
|
-
|
|
2367
|
-
let m = d("tts-inline", f), h =
|
|
2386
|
+
function Oi(e, p) {
|
|
2387
|
+
qe(p, !0), Gr(e, Di);
|
|
2388
|
+
let m = d("tts-inline", f), h = fi(p, "catalogId", 7, ""), g = fi(p, "size", 7, "md"), _ = fi(p, "speedOptions", 7, void 0), v = fi(p, "showSingleSpeedOption", 7, !1), y = fi(p, "layoutMode", 7, "left-aligned"), b = fi(p, "baseRate", 7, 1), x = fi(p, "pitch", 7, void 0), S = fi(p, "volume", 7, void 0), ee = typeof window < "u", te = /font.?awesome|fa-?pro/i, ne = (e) => {
|
|
2368
2389
|
if (document.querySelector(`link[href="${e}"]`)) return;
|
|
2369
2390
|
let t = document.createElement("link");
|
|
2370
2391
|
t.rel = "stylesheet", t.href = e, t.addEventListener("error", () => {
|
|
2371
2392
|
t.dataset.pieLoadFailed = "";
|
|
2372
2393
|
}, { once: !0 }), document.head.appendChild(t);
|
|
2373
|
-
},
|
|
2374
|
-
|
|
2375
|
-
},
|
|
2394
|
+
}, re = () => {
|
|
2395
|
+
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"));
|
|
2396
|
+
}, ie = "__pieFaTtsShadowInstalled", ae = (e) => {
|
|
2376
2397
|
let t = e.getRootNode();
|
|
2377
2398
|
if (!(t instanceof ShadowRoot)) return;
|
|
2378
2399
|
let n = t;
|
|
2379
|
-
if (n[
|
|
2380
|
-
n[
|
|
2400
|
+
if (n[ie]) return;
|
|
2401
|
+
n[ie] = !0;
|
|
2381
2402
|
let r = /* @__PURE__ */ new Set(), i = (e) => {
|
|
2382
2403
|
if (!e || r.has(e)) return;
|
|
2383
2404
|
r.add(e);
|
|
2384
2405
|
let n = document.createElement("link");
|
|
2385
2406
|
n.rel = "stylesheet", n.href = e, t.appendChild(n);
|
|
2386
|
-
}, a = Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).filter((e) =>
|
|
2407
|
+
}, a = Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).filter((e) => te.test(e.href));
|
|
2387
2408
|
for (let e of a) {
|
|
2388
2409
|
if ("pieLoadFailed" in e.dataset) continue;
|
|
2389
2410
|
if (e.sheet) {
|
|
@@ -2395,8 +2416,8 @@ function ki(e, p) {
|
|
|
2395
2416
|
};
|
|
2396
2417
|
e.addEventListener("load", t), e.addEventListener("error", t);
|
|
2397
2418
|
}
|
|
2398
|
-
},
|
|
2399
|
-
|
|
2419
|
+
}, oe = (e) => {
|
|
2420
|
+
re(), ae(e);
|
|
2400
2421
|
let t = () => {
|
|
2401
2422
|
for (let t of e.querySelectorAll("i.fa-light")) t.classList.remove("fa-light"), t.classList.add("fa-solid");
|
|
2402
2423
|
};
|
|
@@ -2410,7 +2431,7 @@ function ki(e, p) {
|
|
|
2410
2431
|
}), { destroy() {
|
|
2411
2432
|
n.disconnect();
|
|
2412
2433
|
} };
|
|
2413
|
-
},
|
|
2434
|
+
}, se = (e, t) => {
|
|
2414
2435
|
let n = t, r = () => {
|
|
2415
2436
|
let t = e.querySelector("button");
|
|
2416
2437
|
if (t) for (let [e, r] of Object.entries(n)) r == null ? t.removeAttribute(e) : t.setAttribute(e, r);
|
|
@@ -2428,280 +2449,285 @@ function ki(e, p) {
|
|
|
2428
2449
|
i.disconnect();
|
|
2429
2450
|
}
|
|
2430
2451
|
};
|
|
2431
|
-
},
|
|
2432
|
-
function
|
|
2433
|
-
return Q(
|
|
2452
|
+
}, 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`;
|
|
2453
|
+
function je() {
|
|
2454
|
+
return Q(D)?.getRunOwner() === ke;
|
|
2434
2455
|
}
|
|
2435
|
-
function
|
|
2436
|
-
U(
|
|
2456
|
+
function Me(e = "", t = !1) {
|
|
2457
|
+
U(_e, !1), U(k, !1), U(A, !1), U(O, t, !0), U(j, e, !0);
|
|
2437
2458
|
}
|
|
2438
|
-
function
|
|
2459
|
+
function Ne(e) {
|
|
2439
2460
|
return e.map((e) => `${e.rate}:${e.label}:${e.ariaLabel}:${e.isDefault ? "1" : "0"}`).join("|");
|
|
2440
2461
|
}
|
|
2441
|
-
function
|
|
2462
|
+
function Pe(e, t, n) {
|
|
2463
|
+
return typeof e == "number" && Number.isFinite(e) ? Math.min(n, Math.max(t, e)) : void 0;
|
|
2464
|
+
}
|
|
2465
|
+
function Fe(e) {
|
|
2442
2466
|
return e.find((e) => e.isDefault)?.rate ?? e.find((e) => e.rate === 1)?.rate ?? e[0]?.rate ?? 1;
|
|
2443
2467
|
}
|
|
2444
|
-
function
|
|
2445
|
-
if (!Q(
|
|
2446
|
-
let e = Q(
|
|
2468
|
+
function Ie() {
|
|
2469
|
+
if (!Q(w) || !Q(T)) return !1;
|
|
2470
|
+
let e = Q(w).getRootNode();
|
|
2447
2471
|
if (!(e instanceof ShadowRoot)) return !1;
|
|
2448
2472
|
let t = e.activeElement;
|
|
2449
|
-
return !!(t && Q(
|
|
2473
|
+
return !!(t && Q(T).contains(t));
|
|
2450
2474
|
}
|
|
2451
|
-
function
|
|
2452
|
-
if (!Q(
|
|
2453
|
-
let e = Q(
|
|
2475
|
+
function Le() {
|
|
2476
|
+
if (!Q(T)) return !1;
|
|
2477
|
+
let e = Q(T).getRootNode();
|
|
2454
2478
|
if (!(e instanceof ShadowRoot)) return !1;
|
|
2455
2479
|
let t = e.activeElement;
|
|
2456
|
-
return !t || !Q(
|
|
2480
|
+
return !t || !Q(T).contains(t) ? !1 : t.matches(Ue);
|
|
2457
2481
|
}
|
|
2458
|
-
function
|
|
2459
|
-
let e = Q(
|
|
2482
|
+
function Re() {
|
|
2483
|
+
let e = Q(T)?.querySelector(We);
|
|
2460
2484
|
if (e && !e.disabled) {
|
|
2461
2485
|
e.focus();
|
|
2462
2486
|
return;
|
|
2463
2487
|
}
|
|
2464
|
-
|
|
2488
|
+
ze(!0);
|
|
2465
2489
|
}
|
|
2466
|
-
function
|
|
2490
|
+
function ze(e) {
|
|
2467
2491
|
if (!e) return;
|
|
2468
|
-
let t =
|
|
2492
|
+
let t = _t();
|
|
2469
2493
|
(t?.querySelector("button") ?? t)?.focus();
|
|
2470
2494
|
}
|
|
2471
|
-
function
|
|
2472
|
-
if (!Q(
|
|
2473
|
-
U(
|
|
2495
|
+
function Be(e = Q(E).t("tools.textToSpeech.inline.switchedSection"), t = !1) {
|
|
2496
|
+
if (!Q(ve) && Q(O)) {
|
|
2497
|
+
U(ve, !0);
|
|
2474
2498
|
try {
|
|
2475
|
-
let n =
|
|
2476
|
-
|
|
2477
|
-
|
|
2499
|
+
let n = Ie();
|
|
2500
|
+
be += 1, Me(e), L(), t && queueMicrotask(() => {
|
|
2501
|
+
ze(n);
|
|
2478
2502
|
});
|
|
2479
2503
|
} finally {
|
|
2480
|
-
U(
|
|
2504
|
+
U(ve, !1);
|
|
2481
2505
|
}
|
|
2482
2506
|
}
|
|
2483
2507
|
}
|
|
2484
|
-
|
|
2485
|
-
if (Q(
|
|
2486
|
-
U(
|
|
2508
|
+
hn(() => {
|
|
2509
|
+
if (Q(w)) return i(Q(w), (e) => {
|
|
2510
|
+
U(ce, e, !0);
|
|
2487
2511
|
});
|
|
2488
|
-
}),
|
|
2489
|
-
if (!Q(
|
|
2490
|
-
let e = a(Q(
|
|
2491
|
-
U(
|
|
2492
|
-
}), t = r(Q(
|
|
2493
|
-
U(
|
|
2512
|
+
}), hn(() => {
|
|
2513
|
+
if (!Q(w)) return;
|
|
2514
|
+
let e = a(Q(w), (e) => {
|
|
2515
|
+
U(ue, e, !0);
|
|
2516
|
+
}), t = r(Q(w), (e) => {
|
|
2517
|
+
U(de, e, !0);
|
|
2494
2518
|
});
|
|
2495
2519
|
return () => {
|
|
2496
2520
|
t(), e();
|
|
2497
2521
|
};
|
|
2498
|
-
}),
|
|
2499
|
-
let e = Q(
|
|
2522
|
+
}), hn(() => {
|
|
2523
|
+
let e = Q(D);
|
|
2500
2524
|
if (!e) return;
|
|
2501
2525
|
let t = (e) => {
|
|
2502
|
-
if (!Q(
|
|
2503
|
-
U(
|
|
2526
|
+
if (!Q(O) || !je()) {
|
|
2527
|
+
U(k, !1), U(A, !1);
|
|
2504
2528
|
return;
|
|
2505
2529
|
}
|
|
2506
|
-
U(
|
|
2530
|
+
U(k, e === "playing" || e === "paused" || e === "loading" && Q(k), !0), U(A, e === "paused");
|
|
2507
2531
|
}, n = e.onStateChange((n) => {
|
|
2508
|
-
let r = String(n), i =
|
|
2509
|
-
(r === "loading" || r === "playing" || r === "paused") && !
|
|
2532
|
+
let r = String(n), i = Le();
|
|
2533
|
+
(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
2534
|
});
|
|
2511
2535
|
return t(e.getState()), n;
|
|
2512
|
-
}),
|
|
2513
|
-
|
|
2536
|
+
}), hn(() => () => {
|
|
2537
|
+
L();
|
|
2514
2538
|
});
|
|
2515
|
-
let
|
|
2516
|
-
function
|
|
2517
|
-
return Q(
|
|
2539
|
+
let Ve = "[data-pie-tts-speed-rate]", He = "[data-pie-tts-media]", Ue = "[data-pie-tts-seek]", We = "[data-pie-tts-stop]";
|
|
2540
|
+
function Ge(e) {
|
|
2541
|
+
return Q(T) ? Array.from(Q(T).querySelectorAll(e)).filter((e) => !e.disabled && window.getComputedStyle(e).display !== "none") : [];
|
|
2518
2542
|
}
|
|
2519
|
-
function
|
|
2520
|
-
let n =
|
|
2543
|
+
function I(e, t) {
|
|
2544
|
+
let n = Ge(e);
|
|
2521
2545
|
if (!n.length) return;
|
|
2522
2546
|
let r = n[(t + n.length) % n.length];
|
|
2523
|
-
if (r.focus(), e !==
|
|
2524
|
-
let i = Number(r.dataset.pieTtsSpeedRate), a = Q(
|
|
2525
|
-
a &&
|
|
2547
|
+
if (r.focus(), e !== Ve) return;
|
|
2548
|
+
let i = Number(r.dataset.pieTtsSpeedRate), a = Q(Te).find((e) => e.rate === i);
|
|
2549
|
+
a && ot(a);
|
|
2526
2550
|
}
|
|
2527
|
-
function
|
|
2528
|
-
let n =
|
|
2551
|
+
function Ke(e, t) {
|
|
2552
|
+
let n = Ge(e);
|
|
2529
2553
|
if (!n.length) return;
|
|
2530
|
-
let r = Q(
|
|
2531
|
-
|
|
2554
|
+
let r = Q(T)?.getRootNode(), i = r instanceof ShadowRoot ? r.activeElement : null, a = i ? n.indexOf(i) : -1;
|
|
2555
|
+
I(e, a === -1 ? 0 : a + t);
|
|
2532
2556
|
}
|
|
2533
|
-
function
|
|
2557
|
+
function Ye(e, t) {
|
|
2534
2558
|
switch (t.key) {
|
|
2535
2559
|
case "ArrowDown":
|
|
2536
2560
|
case "ArrowRight":
|
|
2537
|
-
t.preventDefault(),
|
|
2561
|
+
t.preventDefault(), Ke(e, 1);
|
|
2538
2562
|
break;
|
|
2539
2563
|
case "ArrowUp":
|
|
2540
2564
|
case "ArrowLeft":
|
|
2541
|
-
t.preventDefault(),
|
|
2565
|
+
t.preventDefault(), Ke(e, -1);
|
|
2542
2566
|
break;
|
|
2543
2567
|
case "Home":
|
|
2544
|
-
t.preventDefault(),
|
|
2568
|
+
t.preventDefault(), I(e, 0);
|
|
2545
2569
|
break;
|
|
2546
|
-
case "End": t.preventDefault(),
|
|
2570
|
+
case "End": t.preventDefault(), I(e, -1);
|
|
2547
2571
|
}
|
|
2548
2572
|
}
|
|
2549
|
-
function
|
|
2550
|
-
return Q(
|
|
2573
|
+
function Xe() {
|
|
2574
|
+
return Q(pe) ? l(Q(pe)) : null;
|
|
2551
2575
|
}
|
|
2552
|
-
function
|
|
2553
|
-
return Q(
|
|
2576
|
+
function Ze() {
|
|
2577
|
+
return Q(ue) ? n(Q(ue), Q(ce)) : void 0;
|
|
2554
2578
|
}
|
|
2555
|
-
function
|
|
2556
|
-
|
|
2579
|
+
function Qe(e, t) {
|
|
2580
|
+
L();
|
|
2557
2581
|
let n = e.setHighlightTargetResolverProvider(() => ({
|
|
2558
2582
|
context: {
|
|
2559
|
-
scopeElement: Q(
|
|
2560
|
-
kind: Q(
|
|
2561
|
-
itemId: Q(
|
|
2562
|
-
canonicalItemId: Q(
|
|
2563
|
-
contentKind: Q(
|
|
2564
|
-
regionPolicy: Q(
|
|
2583
|
+
scopeElement: Q(de)?.scopeElement || t || null,
|
|
2584
|
+
kind: Q(ue)?.kind,
|
|
2585
|
+
itemId: Q(ue)?.itemId,
|
|
2586
|
+
canonicalItemId: Q(ue)?.canonicalItemId,
|
|
2587
|
+
contentKind: Q(ue)?.contentKind,
|
|
2588
|
+
regionPolicy: Q(ue)?.regionPolicy
|
|
2565
2589
|
},
|
|
2566
|
-
resolver: Q(
|
|
2590
|
+
resolver: Q(de)?.ttsHighlightTargetResolver || null
|
|
2567
2591
|
}));
|
|
2568
|
-
return
|
|
2592
|
+
return xe = n, n;
|
|
2569
2593
|
}
|
|
2570
|
-
function
|
|
2571
|
-
e?.(), e ===
|
|
2594
|
+
function L(e = xe) {
|
|
2595
|
+
e?.(), e === xe && (xe = null);
|
|
2572
2596
|
}
|
|
2573
|
-
function
|
|
2574
|
-
if (e.getRunOwner() !==
|
|
2597
|
+
function $e(e) {
|
|
2598
|
+
if (e.getRunOwner() !== ke) return !1;
|
|
2575
2599
|
let t = String(e.getState());
|
|
2576
2600
|
return t === "playing" || t === "paused" || t === "loading";
|
|
2577
2601
|
}
|
|
2578
|
-
function
|
|
2579
|
-
let n =
|
|
2580
|
-
|
|
2581
|
-
|
|
2602
|
+
function et(e, t) {
|
|
2603
|
+
let n = Ie();
|
|
2604
|
+
Me(Q(E).t(o(e) ? "tools.textToSpeech.initFailed" : "tools.textToSpeech.inline.startFailed")), Q(fe) && Q(fe).clearTTS(), L(t), n && queueMicrotask(() => {
|
|
2605
|
+
ze(!0);
|
|
2582
2606
|
});
|
|
2583
2607
|
}
|
|
2584
2608
|
function R(e) {
|
|
2585
|
-
o(e) || c(Q(
|
|
2609
|
+
o(e) || c(Q(ce)?.toolkitCoordinator, "textToSpeech", "tool-playback", e);
|
|
2586
2610
|
}
|
|
2587
|
-
function
|
|
2588
|
-
let e = Q(
|
|
2611
|
+
function tt() {
|
|
2612
|
+
let e = Q(D);
|
|
2589
2613
|
if (!e) return;
|
|
2590
|
-
let t =
|
|
2614
|
+
let t = Xe();
|
|
2591
2615
|
if (!t) {
|
|
2592
2616
|
m.debug("No target container found from shell scope context");
|
|
2593
2617
|
return;
|
|
2594
2618
|
}
|
|
2595
|
-
let n = ++
|
|
2619
|
+
let n = ++be, r = !1, i = e.onStateChange((e) => {
|
|
2596
2620
|
String(e) === "playing" && (r = !0);
|
|
2597
2621
|
});
|
|
2598
|
-
U(
|
|
2599
|
-
let a =
|
|
2622
|
+
U(O, !0), U(_e, !0), U(j, Q(E).t("tools.textToSpeech.inline.starting"), !0);
|
|
2623
|
+
let a = Qe(e, t), o;
|
|
2600
2624
|
try {
|
|
2601
2625
|
o = e.speak(t, {
|
|
2602
|
-
ownerId:
|
|
2603
|
-
rate: Q(
|
|
2626
|
+
ownerId: ke,
|
|
2627
|
+
rate: Q(P),
|
|
2628
|
+
pitch: Q(Ee),
|
|
2629
|
+
volume: Q(Oe),
|
|
2604
2630
|
catalogId: h() || void 0,
|
|
2605
|
-
catalogContext:
|
|
2606
|
-
language: Q(
|
|
2631
|
+
catalogContext: Ze(),
|
|
2632
|
+
language: Q(ce)?.contentLanguage || void 0
|
|
2607
2633
|
});
|
|
2608
2634
|
} catch (e) {
|
|
2609
2635
|
o = Promise.reject(e);
|
|
2610
2636
|
}
|
|
2611
|
-
|
|
2637
|
+
Se = {
|
|
2612
2638
|
service: e,
|
|
2613
|
-
choicesKey: Q(
|
|
2639
|
+
choicesKey: Q(F)
|
|
2614
2640
|
}, o.then(() => {
|
|
2615
|
-
n !==
|
|
2641
|
+
n !== be || r || String(e.getState()) === "idle" && Me(Q(E).t("tools.textToSpeech.inline.nothingToRead"));
|
|
2616
2642
|
}).catch((e) => {
|
|
2617
|
-
n ===
|
|
2643
|
+
n === be && (R(e), et(e, a));
|
|
2618
2644
|
}).finally(() => {
|
|
2619
|
-
i(),
|
|
2645
|
+
i(), $e(e) || L(a);
|
|
2620
2646
|
});
|
|
2621
2647
|
}
|
|
2622
|
-
function
|
|
2623
|
-
let e = Q(
|
|
2648
|
+
function nt() {
|
|
2649
|
+
let e = Q(D);
|
|
2624
2650
|
if (!e) return;
|
|
2625
|
-
let t =
|
|
2626
|
-
if (!(Q(
|
|
2627
|
-
if (t && Q(
|
|
2628
|
-
e.resume(), U(
|
|
2651
|
+
let t = je();
|
|
2652
|
+
if (!(Q(_e) || t && String(e.getState()) === "loading")) {
|
|
2653
|
+
if (t && Q(A)) {
|
|
2654
|
+
e.resume(), U(j, Q(E).t("tools.textToSpeech.inline.resumed"), !0);
|
|
2629
2655
|
return;
|
|
2630
2656
|
}
|
|
2631
|
-
if (t && Q(
|
|
2632
|
-
e.pause(), U(
|
|
2657
|
+
if (t && Q(k) && !Q(A)) {
|
|
2658
|
+
e.pause(), U(j, Q(E).t("tools.textToSpeech.inline.pausedAnnouncement"), !0);
|
|
2633
2659
|
return;
|
|
2634
2660
|
}
|
|
2635
|
-
|
|
2661
|
+
ye = !0;
|
|
2636
2662
|
try {
|
|
2637
|
-
|
|
2663
|
+
tt();
|
|
2638
2664
|
} finally {
|
|
2639
|
-
|
|
2665
|
+
ye = !1;
|
|
2640
2666
|
}
|
|
2641
2667
|
}
|
|
2642
2668
|
}
|
|
2643
|
-
function
|
|
2644
|
-
if (!Q(
|
|
2645
|
-
let e =
|
|
2646
|
-
|
|
2647
|
-
|
|
2669
|
+
function rt() {
|
|
2670
|
+
if (!Q(D)) return;
|
|
2671
|
+
let e = Ie();
|
|
2672
|
+
be += 1, Q(D).stop(), Me(Q(E).t("tools.textToSpeech.inline.stopped")), Q(fe) && Q(fe).clearTTS(), L(), e && queueMicrotask(() => {
|
|
2673
|
+
ze(!0);
|
|
2648
2674
|
});
|
|
2649
2675
|
}
|
|
2650
|
-
async function
|
|
2651
|
-
if (Q(
|
|
2652
|
-
await Q(
|
|
2676
|
+
async function it() {
|
|
2677
|
+
if (Q(D) && Q(k)) try {
|
|
2678
|
+
await Q(D).seekForward(1), U(j, Q(E).t("tools.textToSpeech.inline.skippedForward"), !0);
|
|
2653
2679
|
} catch (e) {
|
|
2654
|
-
R(e), U(
|
|
2680
|
+
R(e), U(j, Q(E).t("tools.textToSpeech.inline.skipForwardFailed"), !0);
|
|
2655
2681
|
}
|
|
2656
2682
|
}
|
|
2657
|
-
async function
|
|
2658
|
-
if (Q(
|
|
2659
|
-
await Q(
|
|
2683
|
+
async function at() {
|
|
2684
|
+
if (Q(D) && Q(k)) try {
|
|
2685
|
+
await Q(D).seekBackward(1), U(j, Q(E).t("tools.textToSpeech.inline.skippedBackward"), !0);
|
|
2660
2686
|
} catch (e) {
|
|
2661
|
-
R(e), U(
|
|
2687
|
+
R(e), U(j, Q(E).t("tools.textToSpeech.inline.skipBackwardFailed"), !0);
|
|
2662
2688
|
}
|
|
2663
2689
|
}
|
|
2664
|
-
async function
|
|
2665
|
-
let t = Q(
|
|
2690
|
+
async function ot(e) {
|
|
2691
|
+
let t = Q(D);
|
|
2666
2692
|
if (!t) return;
|
|
2667
|
-
if (Q(
|
|
2668
|
-
U(
|
|
2693
|
+
if (Q(M) === e.rate) {
|
|
2694
|
+
U(j, Q(E).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
|
|
2669
2695
|
return;
|
|
2670
2696
|
}
|
|
2671
|
-
let n = Q(
|
|
2672
|
-
U(
|
|
2697
|
+
let n = Q(he), r = Q(ge);
|
|
2698
|
+
U(he, e.rate, !0), U(ge, Q(we), !0), U(j, Q(E).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
|
|
2673
2699
|
let i = {
|
|
2674
2700
|
service: t,
|
|
2675
|
-
choicesKey: Q(
|
|
2701
|
+
choicesKey: Q(F)
|
|
2676
2702
|
};
|
|
2677
|
-
|
|
2703
|
+
Se = i;
|
|
2678
2704
|
try {
|
|
2679
|
-
await t.setPlaybackRate(e.rate);
|
|
2705
|
+
await t.setPlaybackRate(e.rate * Q(N));
|
|
2680
2706
|
} catch (e) {
|
|
2681
|
-
|
|
2707
|
+
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
2708
|
}
|
|
2683
2709
|
}
|
|
2684
|
-
let
|
|
2685
|
-
|
|
2686
|
-
let e = Q(
|
|
2687
|
-
if (!e || !n || !
|
|
2710
|
+
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);
|
|
2711
|
+
hn(() => {
|
|
2712
|
+
let e = Q(D), t = Q(F), n = Q(k) || Q(A);
|
|
2713
|
+
if (!e || !n || !je() || Se?.service === e && Se.choicesKey === t) return;
|
|
2688
2714
|
let r = {
|
|
2689
2715
|
service: e,
|
|
2690
2716
|
choicesKey: t
|
|
2691
2717
|
};
|
|
2692
|
-
|
|
2718
|
+
Se = r;
|
|
2693
2719
|
let i = !1;
|
|
2694
2720
|
return queueMicrotask(() => {
|
|
2695
|
-
if (i ||
|
|
2696
|
-
let t = Q(
|
|
2721
|
+
if (i || Se !== r) return;
|
|
2722
|
+
let t = Q(P);
|
|
2697
2723
|
e.setPlaybackRate(t).catch((e) => {
|
|
2698
|
-
|
|
2724
|
+
Se === r && (Se = null), R(e);
|
|
2699
2725
|
});
|
|
2700
2726
|
}), () => {
|
|
2701
2727
|
i = !0;
|
|
2702
2728
|
};
|
|
2703
2729
|
});
|
|
2704
|
-
function
|
|
2730
|
+
function gt(e, t) {
|
|
2705
2731
|
let n = e;
|
|
2706
2732
|
for (; n;) {
|
|
2707
2733
|
if (n.matches?.(t)) return n;
|
|
@@ -2709,37 +2735,37 @@ function ki(e, p) {
|
|
|
2709
2735
|
}
|
|
2710
2736
|
return null;
|
|
2711
2737
|
}
|
|
2712
|
-
function
|
|
2713
|
-
let e = Q(
|
|
2738
|
+
function _t() {
|
|
2739
|
+
let e = Q(w)?.getRootNode();
|
|
2714
2740
|
return e instanceof ShadowRoot ? e.querySelector(".pie-tool-tts-inline__trigger") : null;
|
|
2715
2741
|
}
|
|
2716
|
-
function
|
|
2742
|
+
function B(e) {
|
|
2717
2743
|
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
2744
|
return i.length ? i.reduce((e, t) => e + t.offsetWidth, 0) + (i.length - 1) * n + r : 0;
|
|
2719
2745
|
}
|
|
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(
|
|
2746
|
+
function vt() {
|
|
2747
|
+
let e = _t();
|
|
2748
|
+
if (!e || !Q(T)) return;
|
|
2749
|
+
let t = e.getBoundingClientRect(), n = gt(e, pt), r = n?.getBoundingClientRect().left ?? 0, i = Math.max(0, t.left - r - 16);
|
|
2750
|
+
if (!Q(me)) {
|
|
2751
|
+
let e = B(Q(T));
|
|
2752
|
+
e > 0 && U(ht, e, !0);
|
|
2753
|
+
}
|
|
2754
|
+
U(me, Q(ht) > 0 && i < Q(ht), !0);
|
|
2755
|
+
let a = parseFloat(window.getComputedStyle(Q(T)).minWidth) || 0;
|
|
2756
|
+
if (Q(me) && i < a) {
|
|
2757
|
+
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));
|
|
2758
|
+
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
2759
|
return;
|
|
2734
2760
|
}
|
|
2735
|
-
let o = Q(
|
|
2736
|
-
U(
|
|
2761
|
+
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;
|
|
2762
|
+
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
2763
|
}
|
|
2738
|
-
|
|
2739
|
-
if (!(Q(
|
|
2764
|
+
hn(() => {
|
|
2765
|
+
if (!(Q(dt) && Q(O))) {
|
|
2740
2766
|
let e = !1;
|
|
2741
2767
|
return queueMicrotask(() => {
|
|
2742
|
-
e || (U(
|
|
2768
|
+
e || (U(mt, ""), U(me, !1), U(ht, 0));
|
|
2743
2769
|
}), () => {
|
|
2744
2770
|
e = !0;
|
|
2745
2771
|
};
|
|
@@ -2747,28 +2773,28 @@ function ki(e, p) {
|
|
|
2747
2773
|
if (typeof window > "u") return;
|
|
2748
2774
|
let e = 0, t = () => {
|
|
2749
2775
|
e ||= window.requestAnimationFrame(() => {
|
|
2750
|
-
e = 0,
|
|
2776
|
+
e = 0, vt();
|
|
2751
2777
|
});
|
|
2752
2778
|
};
|
|
2753
2779
|
t(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0);
|
|
2754
|
-
let n =
|
|
2755
|
-
n && r.observe(n), Q(
|
|
2756
|
-
let i = n ?
|
|
2780
|
+
let n = _t(), r = new ResizeObserver(t);
|
|
2781
|
+
n && r.observe(n), Q(T) && r.observe(Q(T));
|
|
2782
|
+
let i = n ? gt(n, pt) : null;
|
|
2757
2783
|
i && r.observe(i);
|
|
2758
2784
|
let a = i?.querySelector("[data-pie-tool-overlay-protect]");
|
|
2759
2785
|
return a && r.observe(a), () => {
|
|
2760
2786
|
e && window.cancelAnimationFrame(e), window.removeEventListener("resize", t), window.removeEventListener("scroll", t, !0), r.disconnect();
|
|
2761
2787
|
};
|
|
2762
2788
|
});
|
|
2763
|
-
function
|
|
2764
|
-
if (!Q(
|
|
2765
|
-
let e = Q(
|
|
2789
|
+
function V() {
|
|
2790
|
+
if (!Q(w)) return null;
|
|
2791
|
+
let e = Q(w).getRootNode();
|
|
2766
2792
|
return e instanceof ShadowRoot ? e.host : null;
|
|
2767
2793
|
}
|
|
2768
|
-
|
|
2769
|
-
let e =
|
|
2794
|
+
hn(() => {
|
|
2795
|
+
let e = V();
|
|
2770
2796
|
if (!e) return;
|
|
2771
|
-
let n = Q(
|
|
2797
|
+
let n = Q(O) === !0;
|
|
2772
2798
|
if (e.getAttribute("data-active") === "true" === n) return;
|
|
2773
2799
|
let r = !1;
|
|
2774
2800
|
return queueMicrotask(() => {
|
|
@@ -2781,7 +2807,7 @@ function ki(e, p) {
|
|
|
2781
2807
|
r = !0;
|
|
2782
2808
|
};
|
|
2783
2809
|
});
|
|
2784
|
-
var
|
|
2810
|
+
var yt = {
|
|
2785
2811
|
get catalogId() {
|
|
2786
2812
|
return h();
|
|
2787
2813
|
},
|
|
@@ -2811,95 +2837,113 @@ function ki(e, p) {
|
|
|
2811
2837
|
},
|
|
2812
2838
|
set layoutMode(e = "left-aligned") {
|
|
2813
2839
|
y(e), Dt();
|
|
2840
|
+
},
|
|
2841
|
+
get baseRate() {
|
|
2842
|
+
return b();
|
|
2843
|
+
},
|
|
2844
|
+
set baseRate(e = 1) {
|
|
2845
|
+
b(e), Dt();
|
|
2846
|
+
},
|
|
2847
|
+
get pitch() {
|
|
2848
|
+
return x();
|
|
2849
|
+
},
|
|
2850
|
+
set pitch(e = void 0) {
|
|
2851
|
+
x(e), Dt();
|
|
2852
|
+
},
|
|
2853
|
+
get volume() {
|
|
2854
|
+
return S();
|
|
2855
|
+
},
|
|
2856
|
+
set volume(e = void 0) {
|
|
2857
|
+
S(e), Dt();
|
|
2814
2858
|
}
|
|
2815
|
-
},
|
|
2816
|
-
var t =
|
|
2859
|
+
}, bt = yr(), xt = en(bt), St = (e) => {
|
|
2860
|
+
var t = Ei();
|
|
2817
2861
|
let n;
|
|
2818
2862
|
{
|
|
2819
2863
|
let e = (e) => {
|
|
2820
|
-
var t =
|
|
2821
|
-
var t =
|
|
2822
|
-
|
|
2823
|
-
"aria-expanded": Q(
|
|
2824
|
-
"aria-controls": Q(
|
|
2825
|
-
"aria-pressed": Q(
|
|
2826
|
-
"aria-busy": Q(
|
|
2827
|
-
})),
|
|
2864
|
+
var t = xi(), n = $t(t), r = (e) => {
|
|
2865
|
+
var t = yi();
|
|
2866
|
+
ii(t, "type", "circle"), ii(t, "size", "small"), ii(t, "variant", "tertiary"), Sn(() => ii(t, "icon-name", Q(k) && !Q(A) ? "pause" : "play")), Sn((e) => ii(t, "button-aria-label", e), [() => Q(E).t(Q(ct))]), Sn(() => ii(t, "disabled", !Q(D))), Kr(t, (e) => oe?.(e)), Kr(t, (e, t) => se?.(e, t), () => ({
|
|
2867
|
+
"aria-expanded": Q(O) ? "true" : "false",
|
|
2868
|
+
"aria-controls": Q(O) ? Ae : null,
|
|
2869
|
+
"aria-pressed": Q(O) ? "true" : "false",
|
|
2870
|
+
"aria-busy": Q(_e) ? "true" : null
|
|
2871
|
+
})), Sn(() => Qr(t, 1, `pie-tool-tts-inline__trigger ${Q(st) ?? ""}`, "svelte-9msc39")), lr("click", t, nt), br(e, t);
|
|
2828
2872
|
}, i = (e) => {
|
|
2829
|
-
var t =
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
}, [() => Q(
|
|
2873
|
+
var t = bi(), n = tn(t);
|
|
2874
|
+
Kr(t, (e) => C?.(e)), Sn((e) => {
|
|
2875
|
+
Qr(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), Qr(n, 1, `fa-solid ${Q(k) && !Q(A) ? "fa-pause" : "fa-play"} pie-tool-tts-inline__icon`, "svelte-9msc39");
|
|
2876
|
+
}, [() => Q(E).t(Q(ct))]), lr("click", t, nt), br(e, t);
|
|
2833
2877
|
};
|
|
2834
|
-
|
|
2835
|
-
Q(
|
|
2836
|
-
}),
|
|
2878
|
+
Fr(n, (e) => {
|
|
2879
|
+
Q(le) ? e(r) : e(i, -1);
|
|
2880
|
+
}), De(t), br(e, t);
|
|
2837
2881
|
}, n = (e) => {
|
|
2838
|
-
var t =
|
|
2839
|
-
var t =
|
|
2882
|
+
var t = yr(), n = en(t), r = (e) => {
|
|
2883
|
+
var t = wi();
|
|
2840
2884
|
let n;
|
|
2841
|
-
var r =
|
|
2842
|
-
var t =
|
|
2885
|
+
var r = $t(t), i = (e) => {
|
|
2886
|
+
var t = Ci();
|
|
2843
2887
|
let n;
|
|
2844
|
-
|
|
2845
|
-
var n =
|
|
2846
|
-
|
|
2847
|
-
$(n, "data-pie-tts-speed-rate", Q(t).rate), $(n, "tabindex", Q(
|
|
2848
|
-
}),
|
|
2849
|
-
}),
|
|
2850
|
-
n =
|
|
2851
|
-
}, [() => Q(
|
|
2888
|
+
zr(t, 21, () => Q(Te), (e) => e.rate, (e, t) => {
|
|
2889
|
+
var n = Si(), r = $t(n), i = tn(r, !0);
|
|
2890
|
+
De(n), Sn(() => {
|
|
2891
|
+
$(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), Dr(i, Q(t).label);
|
|
2892
|
+
}), lr("click", n, () => ot(Q(t))), lr("keydown", n, (e) => Ye(Ve, e)), br(e, n);
|
|
2893
|
+
}), De(t), Sn((e) => {
|
|
2894
|
+
n = Qr(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);
|
|
2895
|
+
}, [() => Q(E).t("tools.textToSpeech.inline.playbackSpeedA11y")]), br(e, t);
|
|
2852
2896
|
};
|
|
2853
|
-
|
|
2854
|
-
Q(
|
|
2897
|
+
Fr(r, (e) => {
|
|
2898
|
+
Q(Te).length > 0 && e(i);
|
|
2855
2899
|
});
|
|
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
|
-
}),
|
|
2900
|
+
var a = nn(r, 2), o = nn(a, 2), s = nn(o, 2);
|
|
2901
|
+
De(t), li(t, (e) => U(T, e), () => Q(T)), Sn((e, r, i, c) => {
|
|
2902
|
+
$(t, "id", Ae), n = Qr(t, 1, "pie-tool-tts-inline__panel svelte-9msc39", null, n, {
|
|
2903
|
+
"pie-tool-tts-inline__panel--floating": Q(ut),
|
|
2904
|
+
"pie-tool-tts-inline__panel--row": Q(lt),
|
|
2905
|
+
"pie-tool-tts-inline__panel--left-aligned-inline": Q(dt),
|
|
2906
|
+
"pie-tool-tts-inline__panel--compact": Q(dt) && Q(me)
|
|
2907
|
+
}), ei(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
2908
|
}, [
|
|
2865
|
-
() => Q(
|
|
2866
|
-
() => Q(
|
|
2867
|
-
() => Q(
|
|
2868
|
-
() => Q(
|
|
2869
|
-
]),
|
|
2909
|
+
() => Q(E).t("tools.textToSpeech.inline.controlsA11y"),
|
|
2910
|
+
() => Q(E).t("tools.textToSpeech.inline.rewindA11y"),
|
|
2911
|
+
() => Q(E).t("tools.textToSpeech.inline.fastForwardA11y"),
|
|
2912
|
+
() => Q(E).t("tools.textToSpeech.inline.stopA11y")
|
|
2913
|
+
]), lr("click", a, at), lr("keydown", a, (e) => Ye(He, e)), lr("click", o, it), lr("keydown", o, (e) => Ye(He, e)), lr("click", s, rt), lr("keydown", s, (e) => Ye(He, e)), br(e, t);
|
|
2870
2914
|
};
|
|
2871
|
-
|
|
2872
|
-
Q(
|
|
2873
|
-
}),
|
|
2915
|
+
Fr(n, (e) => {
|
|
2916
|
+
Q(O) && e(r);
|
|
2917
|
+
}), br(e, t);
|
|
2874
2918
|
};
|
|
2875
|
-
var r =
|
|
2876
|
-
var r =
|
|
2919
|
+
var r = $t(t), i = (t) => {
|
|
2920
|
+
var r = Ti(), i = en(r);
|
|
2877
2921
|
n(i);
|
|
2878
|
-
var a =
|
|
2879
|
-
e(a),
|
|
2922
|
+
var a = nn(i, 2);
|
|
2923
|
+
e(a), br(t, r);
|
|
2880
2924
|
}, a = (t) => {
|
|
2881
|
-
var r =
|
|
2925
|
+
var r = Ti(), i = en(r);
|
|
2882
2926
|
e(i);
|
|
2883
|
-
var a =
|
|
2884
|
-
n(a),
|
|
2927
|
+
var a = nn(i, 2);
|
|
2928
|
+
n(a), br(t, r);
|
|
2885
2929
|
};
|
|
2886
|
-
|
|
2887
|
-
Q(
|
|
2930
|
+
Fr(r, (e) => {
|
|
2931
|
+
Q(ft) ? e(i) : e(a, -1);
|
|
2888
2932
|
});
|
|
2889
|
-
var o = nn(
|
|
2890
|
-
|
|
2891
|
-
}
|
|
2892
|
-
|
|
2893
|
-
"pie-tool-tts-inline--controls-row": Q(
|
|
2894
|
-
"pie-tool-tts-inline--floating": Q(
|
|
2895
|
-
"pie-tool-tts-inline--left-aligned": Q(
|
|
2896
|
-
})),
|
|
2933
|
+
var o = tn(nn(r, 2), !0);
|
|
2934
|
+
De(t), li(t, (e) => U(w, e), () => Q(w)), Sn(() => Dr(o, Q(j)));
|
|
2935
|
+
}
|
|
2936
|
+
Sn(() => n = Qr(t, 1, "pie-tool-tts-inline svelte-9msc39", null, n, {
|
|
2937
|
+
"pie-tool-tts-inline--controls-row": Q(lt),
|
|
2938
|
+
"pie-tool-tts-inline--floating": Q(ut),
|
|
2939
|
+
"pie-tool-tts-inline--left-aligned": Q(dt)
|
|
2940
|
+
})), br(e, t);
|
|
2897
2941
|
};
|
|
2898
|
-
return
|
|
2899
|
-
|
|
2900
|
-
}),
|
|
2942
|
+
return Fr(xt, (e) => {
|
|
2943
|
+
ee && e(St);
|
|
2944
|
+
}), br(e, bt), Je(yt);
|
|
2901
2945
|
}
|
|
2902
|
-
|
|
2946
|
+
ur(["click", "keydown"]), ki("pie-tool-tts-inline", vi(Oi, {
|
|
2903
2947
|
catalogId: {
|
|
2904
2948
|
attribute: "catalog-id",
|
|
2905
2949
|
type: "String"
|
|
@@ -2919,10 +2963,22 @@ dr(["click", "keydown"]), Ai("pie-tool-tts-inline", yi(ki, {
|
|
|
2919
2963
|
layoutMode: {
|
|
2920
2964
|
attribute: "layout-mode",
|
|
2921
2965
|
type: "String"
|
|
2966
|
+
},
|
|
2967
|
+
baseRate: {
|
|
2968
|
+
attribute: "base-rate",
|
|
2969
|
+
type: "Number"
|
|
2970
|
+
},
|
|
2971
|
+
pitch: {
|
|
2972
|
+
attribute: "pitch",
|
|
2973
|
+
type: "Number"
|
|
2974
|
+
},
|
|
2975
|
+
volume: {
|
|
2976
|
+
attribute: "volume",
|
|
2977
|
+
type: "Number"
|
|
2922
2978
|
}
|
|
2923
2979
|
}, [], [], { mode: "open" }, e));
|
|
2924
|
-
function
|
|
2980
|
+
function ki(e, t) {
|
|
2925
2981
|
customElements.get(e) || customElements.define(e, t);
|
|
2926
2982
|
}
|
|
2927
2983
|
//#endregion
|
|
2928
|
-
export {
|
|
2984
|
+
export { Oi as default };
|