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