@pie-players/pie-tool-line-reader 1.0.0-beta.0 → 1.0.0-beta.10
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/LICENSE +21 -0
- package/README.md +4 -2
- package/dist/THIRD-PARTY-LICENSES.txt +14 -0
- package/dist/element-props.d.ts +5 -0
- package/dist/index.d.ts +9 -1
- package/dist/tool-line-reader.js +12 -2649
- package/package.json +11 -11
package/dist/tool-line-reader.js
CHANGED
|
@@ -1,2368 +1,17 @@
|
|
|
1
|
-
import { coerceBooleanAttributes as es } from "@pie-players/pie-players-shared/ui/attribute-coercion";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
var us = Array.isArray, cs = Array.prototype.indexOf, Ut = Array.prototype.includes, ds = Array.from, qt = Object.keys, pt = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, hs = Object.getOwnPropertyDescriptors, vs = Object.prototype, _s = Array.prototype, Pn = Object.getPrototypeOf, un = Object.isExtensible, ps = () => {
|
|
11
|
-
};
|
|
12
|
-
function gs(e) {
|
|
13
|
-
for (var t = 0; t < e.length; t++) e[t]();
|
|
14
|
-
}
|
|
15
|
-
function On() {
|
|
16
|
-
var e, t;
|
|
17
|
-
return {
|
|
18
|
-
promise: new Promise((r, n) => {
|
|
19
|
-
e = r, t = n;
|
|
20
|
-
}),
|
|
21
|
-
resolve: e,
|
|
22
|
-
reject: t
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
function gt(e) {
|
|
26
|
-
"@babel/helpers - typeof";
|
|
27
|
-
return gt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
28
|
-
return typeof t;
|
|
29
|
-
} : function(t) {
|
|
30
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
31
|
-
}, gt(e);
|
|
32
|
-
}
|
|
33
|
-
function ws(e, t) {
|
|
34
|
-
if (gt(e) != "object" || !e) return e;
|
|
35
|
-
var r = e[Symbol.toPrimitive];
|
|
36
|
-
if (r !== void 0) {
|
|
37
|
-
var n = r.call(e, t || "default");
|
|
38
|
-
if (gt(n) != "object") return n;
|
|
39
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
40
|
-
}
|
|
41
|
-
return (t === "string" ? String : Number)(e);
|
|
42
|
-
}
|
|
43
|
-
function ms(e) {
|
|
44
|
-
var t = ws(e, "string");
|
|
45
|
-
return gt(t) == "symbol" ? t : t + "";
|
|
46
|
-
}
|
|
47
|
-
function A(e, t, r) {
|
|
48
|
-
return (t = ms(t)) in e ? Object.defineProperty(e, t, {
|
|
49
|
-
value: r,
|
|
50
|
-
enumerable: !0,
|
|
51
|
-
configurable: !0,
|
|
52
|
-
writable: !0
|
|
53
|
-
}) : e[t] = r, e;
|
|
54
|
-
}
|
|
55
|
-
var mo = 1 << 24, K = 1024, V = 2048, qe = 4096, Cr = 8192, bs = 16384, Ir = 32768, cn = 1 << 25, Nr = 65536, bo = 1 << 17, yo = 1 << 18, st = 1 << 19, ys = 1 << 20, dn = 1 << 21, $s = 1 << 22, Yt = 1 << 23, ht = /* @__PURE__ */ Symbol("$state"), Cn = /* @__PURE__ */ Symbol("component"), In = /* @__PURE__ */ Symbol("legacy props"), ks = /* @__PURE__ */ Symbol(""), xs = /* @__PURE__ */ Symbol("proxy path"), mr = /* @__PURE__ */ Symbol("attributes"), Es = /* @__PURE__ */ Symbol("class"), br = /* @__PURE__ */ Symbol("style"), jt = /* @__PURE__ */ Symbol("text");
|
|
56
|
-
var $t = new class extends Error {
|
|
57
|
-
constructor(...t) {
|
|
58
|
-
super(...t), A(this, "name", "StaleReactionError"), A(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
59
|
-
}
|
|
60
|
-
}(), Ss = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
61
|
-
function Ms() {
|
|
62
|
-
console.warn("https://svelte.dev/e/derived_inert");
|
|
63
|
-
}
|
|
64
|
-
function ir(e) {
|
|
65
|
-
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
66
|
-
}
|
|
67
|
-
function Ts() {
|
|
68
|
-
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
69
|
-
}
|
|
70
|
-
var R = !1;
|
|
71
|
-
function Je(e) {
|
|
72
|
-
R = e;
|
|
73
|
-
}
|
|
74
|
-
var T;
|
|
75
|
-
function se(e) {
|
|
76
|
-
if (e === null)
|
|
77
|
-
throw ir(), tt;
|
|
78
|
-
return T = e;
|
|
79
|
-
}
|
|
80
|
-
function Wr() {
|
|
81
|
-
return se(/* @__PURE__ */ ye(T));
|
|
82
|
-
}
|
|
83
|
-
function Nn(e) {
|
|
84
|
-
if (R) {
|
|
85
|
-
if (/* @__PURE__ */ ye(T) !== null)
|
|
86
|
-
throw ir(), tt;
|
|
87
|
-
T = e;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
function As(e = 1) {
|
|
91
|
-
if (R) {
|
|
92
|
-
for (var t = e, r = T; t--; ) r = /* @__PURE__ */ ye(r);
|
|
93
|
-
T = r;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
function Wn(e = !0) {
|
|
97
|
-
for (var t = 0, r = T; ; ) {
|
|
98
|
-
if (r.nodeType === 8) {
|
|
99
|
-
var n = r.data;
|
|
100
|
-
if (n === "]") {
|
|
101
|
-
if (t === 0) return r;
|
|
102
|
-
t -= 1;
|
|
103
|
-
} else (n === "[" || n === "[!" || n[0] === "[" && !isNaN(Number(n.slice(1)))) && (t += 1);
|
|
104
|
-
}
|
|
105
|
-
var i = /* @__PURE__ */ ye(r);
|
|
106
|
-
e && r.remove(), r = i;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
function Rs(e) {
|
|
110
|
-
if (!e || e.nodeType !== 8)
|
|
111
|
-
throw ir(), tt;
|
|
112
|
-
return e.data;
|
|
113
|
-
}
|
|
114
|
-
function Hn(e) {
|
|
115
|
-
return e === this.v;
|
|
116
|
-
}
|
|
117
|
-
function Ps(e, t) {
|
|
118
|
-
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
119
|
-
}
|
|
120
|
-
function Ln(e) {
|
|
121
|
-
return !Ps(e, this.v);
|
|
122
|
-
}
|
|
123
|
-
function Os(e) {
|
|
124
|
-
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
125
|
-
}
|
|
126
|
-
function Cs() {
|
|
127
|
-
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
128
|
-
}
|
|
129
|
-
function Is(e) {
|
|
130
|
-
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
131
|
-
}
|
|
132
|
-
function Ns() {
|
|
133
|
-
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
134
|
-
}
|
|
135
|
-
function Ws(e) {
|
|
136
|
-
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
137
|
-
}
|
|
138
|
-
function Hs() {
|
|
139
|
-
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
140
|
-
}
|
|
141
|
-
function Ls() {
|
|
142
|
-
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
143
|
-
}
|
|
144
|
-
function Ds(e) {
|
|
145
|
-
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
146
|
-
}
|
|
147
|
-
function js() {
|
|
148
|
-
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
149
|
-
}
|
|
150
|
-
function zs() {
|
|
151
|
-
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
152
|
-
}
|
|
153
|
-
function Bs() {
|
|
154
|
-
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
155
|
-
}
|
|
156
|
-
function Fs() {
|
|
157
|
-
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
158
|
-
}
|
|
159
|
-
var Me = !1, kt = !1;
|
|
160
|
-
function hn(e, t) {
|
|
161
|
-
return e.label = t, Us(e.v, t), e;
|
|
162
|
-
}
|
|
163
|
-
function Us(e, t) {
|
|
164
|
-
return e?.[xs]?.(t), e;
|
|
165
|
-
}
|
|
166
|
-
var O = null;
|
|
167
|
-
function rt(e) {
|
|
168
|
-
O = e;
|
|
169
|
-
}
|
|
170
|
-
function Dn(e, t = !1, r) {
|
|
171
|
-
O = {
|
|
172
|
-
p: O,
|
|
173
|
-
i: !1,
|
|
174
|
-
c: null,
|
|
175
|
-
e: null,
|
|
176
|
-
s: e,
|
|
177
|
-
x: null,
|
|
178
|
-
r: E,
|
|
179
|
-
l: kt && !t ? {
|
|
180
|
-
s: null,
|
|
181
|
-
u: null,
|
|
182
|
-
$: []
|
|
183
|
-
} : null
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
function jn(e) {
|
|
187
|
-
var t = O, r = t.e;
|
|
188
|
-
if (r !== null) {
|
|
189
|
-
t.e = null;
|
|
190
|
-
for (var n of r) li(n);
|
|
191
|
-
}
|
|
192
|
-
return e !== void 0 && (t.x = e), t.i = !0, O = t.p, Hr(e);
|
|
193
|
-
}
|
|
194
|
-
function Hr(e = {}) {
|
|
195
|
-
return pt(e, Cn, { value: !0 }), e;
|
|
196
|
-
}
|
|
197
|
-
function xt() {
|
|
198
|
-
return !kt || O !== null && O.l === null;
|
|
199
|
-
}
|
|
200
|
-
var Ne = [];
|
|
201
|
-
function zn() {
|
|
202
|
-
var e = Ne;
|
|
203
|
-
Ne = [], gs(e);
|
|
204
|
-
}
|
|
205
|
-
function Be(e) {
|
|
206
|
-
if (Ne.length === 0 && !vt) {
|
|
207
|
-
var t = Ne;
|
|
208
|
-
queueMicrotask(() => {
|
|
209
|
-
t === Ne && zn();
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
Ne.push(e);
|
|
213
|
-
}
|
|
214
|
-
function qs() {
|
|
215
|
-
for (; Ne.length > 0; ) zn();
|
|
216
|
-
}
|
|
217
|
-
var Ys = ~(V | qe | K);
|
|
218
|
-
function I(e, t) {
|
|
219
|
-
e.f = e.f & Ys | t;
|
|
220
|
-
}
|
|
221
|
-
function Lr(e) {
|
|
222
|
-
(e.f & 512) !== 0 || e.deps === null ? I(e, K) : I(e, qe);
|
|
223
|
-
}
|
|
224
|
-
function Bn(e, t, r) {
|
|
225
|
-
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e), I(e, K);
|
|
226
|
-
}
|
|
227
|
-
function sr(e) {
|
|
228
|
-
var t = S, r = E;
|
|
229
|
-
Z(null), de(null);
|
|
230
|
-
try {
|
|
231
|
-
return e();
|
|
232
|
-
} finally {
|
|
233
|
-
Z(t), de(r);
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
function Gs(e, t, r, n) {
|
|
237
|
-
const i = xt() ? wt : Un;
|
|
238
|
-
var s = e.filter((f) => !f.settled), o = t.map(i);
|
|
239
|
-
if (r.length === 0 && s.length === 0) {
|
|
240
|
-
n(o);
|
|
241
|
-
return;
|
|
242
|
-
}
|
|
243
|
-
var l = E, h = Vs(), v = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((f) => f.promise)) : null;
|
|
244
|
-
function p(f) {
|
|
245
|
-
if ((l.f & 16384) === 0) {
|
|
246
|
-
h();
|
|
247
|
-
try {
|
|
248
|
-
n([...o, ...f]);
|
|
249
|
-
} catch (g) {
|
|
250
|
-
ce(g, l);
|
|
251
|
-
}
|
|
252
|
-
Gt();
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
var d = Fn();
|
|
256
|
-
if (r.length === 0) {
|
|
257
|
-
v.then(() => p([])).finally(d);
|
|
258
|
-
return;
|
|
259
|
-
}
|
|
260
|
-
function c() {
|
|
261
|
-
Promise.all(r.map((f) => /* @__PURE__ */ Ks(f))).then(p).catch((f) => ce(f, l)).finally(d);
|
|
262
|
-
}
|
|
263
|
-
v ? v.then(() => {
|
|
264
|
-
h(), c(), Gt();
|
|
265
|
-
}) : c();
|
|
266
|
-
}
|
|
267
|
-
function Vs() {
|
|
268
|
-
var e = E, t = S, r = O, n = x;
|
|
269
|
-
if (0) var i;
|
|
270
|
-
return function(o = !0) {
|
|
271
|
-
de(e), Z(t), rt(r), o && (e.f & 16384) === 0 && (n?.activate(), n?.apply());
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
var Xs = !1;
|
|
275
|
-
function Gt(e = !0) {
|
|
276
|
-
Xs = !1, de(null), Z(null), rt(null), e && x?.deactivate();
|
|
277
|
-
}
|
|
278
|
-
function Fn() {
|
|
279
|
-
var e = E, t = e.b, r = x, n = !!t?.is_rendered();
|
|
280
|
-
return t?.update_pending_count(1, r), r.increment(n, e), () => {
|
|
281
|
-
t?.update_pending_count(-1, r), r.decrement(n, e);
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
// @__NO_SIDE_EFFECTS__
|
|
285
|
-
function wt(e) {
|
|
286
|
-
var t = 2 | V;
|
|
287
|
-
return E !== null && (E.f |= st), {
|
|
288
|
-
ctx: O,
|
|
289
|
-
deps: null,
|
|
290
|
-
effects: null,
|
|
291
|
-
equals: Hn,
|
|
292
|
-
f: t,
|
|
293
|
-
fn: e,
|
|
294
|
-
reactions: null,
|
|
295
|
-
rv: 0,
|
|
296
|
-
v: W,
|
|
297
|
-
wv: 0,
|
|
298
|
-
parent: E,
|
|
299
|
-
ac: null
|
|
300
|
-
};
|
|
301
|
-
}
|
|
302
|
-
var ft = /* @__PURE__ */ Symbol("obsolete");
|
|
303
|
-
// @__NO_SIDE_EFFECTS__
|
|
304
|
-
function Ks(e, t, r) {
|
|
305
|
-
let n = E;
|
|
306
|
-
n === null && Cs();
|
|
307
|
-
var i = void 0, s = Et(W), o = !S, l = /* @__PURE__ */ new Set();
|
|
308
|
-
return wa(() => {
|
|
309
|
-
var h = E, v = On();
|
|
310
|
-
i = v.promise;
|
|
311
|
-
try {
|
|
312
|
-
Promise.resolve(e()).then(v.resolve, (f) => {
|
|
313
|
-
f !== $t && v.reject(f);
|
|
314
|
-
}).finally(Gt);
|
|
315
|
-
} catch (f) {
|
|
316
|
-
v.reject(f), Gt();
|
|
317
|
-
}
|
|
318
|
-
var p = x;
|
|
319
|
-
if (o) {
|
|
320
|
-
if ((h.f & 32768) !== 0) var d = Fn();
|
|
321
|
-
if (n.b?.is_rendered()) p.async_deriveds.get(h)?.reject(ft);
|
|
322
|
-
else for (const f of l.values()) f.reject(ft);
|
|
323
|
-
l.add(v), p.async_deriveds.set(h, v);
|
|
324
|
-
}
|
|
325
|
-
const c = (f, g = void 0) => {
|
|
326
|
-
d?.(), l.delete(v), g !== ft && (p.activate(), g ? (s.f |= Yt, tr(s, g)) : ((s.f & 8388608) !== 0 && (s.f ^= Yt), tr(s, f)), p.deactivate());
|
|
327
|
-
};
|
|
328
|
-
v.promise.then(c, (f) => c(null, f || "unknown"));
|
|
329
|
-
}), _a(() => {
|
|
330
|
-
for (const h of l) h.reject(ft);
|
|
331
|
-
}), new Promise((h) => {
|
|
332
|
-
function v(p) {
|
|
333
|
-
function d() {
|
|
334
|
-
p === i ? h(s) : v(i);
|
|
335
|
-
}
|
|
336
|
-
p.then(d, d);
|
|
337
|
-
}
|
|
338
|
-
v(i);
|
|
339
|
-
});
|
|
340
|
-
}
|
|
341
|
-
// @__NO_SIDE_EFFECTS__
|
|
342
|
-
function fr(e) {
|
|
343
|
-
const t = /* @__PURE__ */ wt(e);
|
|
344
|
-
return Me || pi(t), t;
|
|
345
|
-
}
|
|
346
|
-
// @__NO_SIDE_EFFECTS__
|
|
347
|
-
function Un(e) {
|
|
348
|
-
const t = /* @__PURE__ */ wt(e);
|
|
349
|
-
return t.equals = Ln, t;
|
|
350
|
-
}
|
|
351
|
-
function Zs(e) {
|
|
352
|
-
var t = e.effects;
|
|
353
|
-
if (t !== null) {
|
|
354
|
-
e.effects = null;
|
|
355
|
-
for (var r = 0; r < t.length; r += 1) F(t[r]);
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
function Dr(e) {
|
|
359
|
-
var t, r = E, n = e.parent;
|
|
360
|
-
if (!be && n !== null && e.v !== W && (n.f & 24576) !== 0)
|
|
361
|
-
return Ms(), e.v;
|
|
362
|
-
de(n);
|
|
363
|
-
try {
|
|
364
|
-
Zs(e), t = bi(e);
|
|
365
|
-
} finally {
|
|
366
|
-
de(r);
|
|
367
|
-
}
|
|
368
|
-
return t;
|
|
369
|
-
}
|
|
370
|
-
function qn(e) {
|
|
371
|
-
var t = Dr(e);
|
|
372
|
-
if (!e.equals(t) && (e.wv = wi(), (!x?.is_fork || e.deps === null) && (x !== null ? (x.capture(e, t, !0), yr?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
373
|
-
I(e, K);
|
|
374
|
-
return;
|
|
375
|
-
}
|
|
376
|
-
be || (z !== null ? (qr() || x?.is_fork) && z.set(e, t) : Lr(e));
|
|
377
|
-
}
|
|
378
|
-
function Js(e) {
|
|
379
|
-
if (e.effects !== null)
|
|
380
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && sr(() => {
|
|
381
|
-
t.ac.abort($t), t.ac = null;
|
|
382
|
-
}), t.fn !== null && (t.teardown = ps), bt(t, 0), Gr(t));
|
|
383
|
-
}
|
|
384
|
-
function Yn(e) {
|
|
385
|
-
if (e.effects !== null)
|
|
386
|
-
for (const t of e.effects) t.teardown && t.fn !== null && nt(t);
|
|
387
|
-
}
|
|
388
|
-
function Gn(e, t) {
|
|
389
|
-
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
390
|
-
}
|
|
391
|
-
function jr(e, t) {
|
|
392
|
-
Gn(e, t), t.add(e);
|
|
393
|
-
}
|
|
394
|
-
function b(e, t, r) {
|
|
395
|
-
Gn(e, t), t.set(e, r);
|
|
396
|
-
}
|
|
397
|
-
function y(e, t, r) {
|
|
398
|
-
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
|
|
399
|
-
throw new TypeError("Private element is not present on this object");
|
|
400
|
-
}
|
|
401
|
-
function m(e, t, r) {
|
|
402
|
-
return e.set(y(e, t), r), r;
|
|
403
|
-
}
|
|
404
|
-
function a(e, t) {
|
|
405
|
-
return e.get(y(e, t));
|
|
406
|
-
}
|
|
407
|
-
var Vn, Vt = null, Ve = null, x = null, yr = null, z = null, $r = null, vt = !1, ur = !1, mt = null, Xt = null, Xn = 0;
|
|
408
|
-
var Qs = 1, Kt = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), kr = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakSet(), Ye = class Kn {
|
|
409
|
-
constructor() {
|
|
410
|
-
jr(this, P), A(this, "id", Qs++), b(this, Kt, !1), A(this, "linked", !0), b(this, De, null), b(this, We, null), A(this, "async_deriveds", /* @__PURE__ */ new Map()), A(this, "current", /* @__PURE__ */ new Map()), A(this, "previous", /* @__PURE__ */ new Map()), b(this, Zt, /* @__PURE__ */ new Set()), b(this, Nt, /* @__PURE__ */ new Set()), b(this, Xe, 0), b(this, Oe, /* @__PURE__ */ new Map()), b(this, ut, null), b(this, Q, []), b(this, kr, []), b(this, Fe, /* @__PURE__ */ new Set()), b(this, ge, /* @__PURE__ */ new Set()), b(this, xe, /* @__PURE__ */ new Map()), b(this, zt, /* @__PURE__ */ new Set()), A(this, "is_fork", !1), b(this, ct, !1), Ve === null ? Vt = Ve = this : (m(We, Ve, this), m(De, this, Ve)), Ve = this;
|
|
411
|
-
}
|
|
412
|
-
skip_effect(t) {
|
|
413
|
-
a(xe, this).has(t) || a(xe, this).set(t, {
|
|
414
|
-
d: [],
|
|
415
|
-
m: []
|
|
416
|
-
}), a(zt, this).delete(t);
|
|
417
|
-
}
|
|
418
|
-
unskip_effect(t, r = (n) => this.schedule(n)) {
|
|
419
|
-
var n = a(xe, this).get(t);
|
|
420
|
-
if (n) {
|
|
421
|
-
a(xe, this).delete(t);
|
|
422
|
-
for (var i of n.d)
|
|
423
|
-
I(i, V), r(i);
|
|
424
|
-
for (i of n.m)
|
|
425
|
-
I(i, qe), r(i);
|
|
426
|
-
}
|
|
427
|
-
a(zt, this).add(t);
|
|
428
|
-
}
|
|
429
|
-
capture(t, r, n = !1) {
|
|
430
|
-
t.v !== W && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [r, n]), z?.set(t, r)), this.is_fork || (t.v = r);
|
|
431
|
-
}
|
|
432
|
-
activate() {
|
|
433
|
-
x = this;
|
|
434
|
-
}
|
|
435
|
-
deactivate() {
|
|
436
|
-
x = null, z = null;
|
|
437
|
-
}
|
|
438
|
-
flush() {
|
|
439
|
-
try {
|
|
440
|
-
ur = !0, x = this, y(P, this, Jt).call(this);
|
|
441
|
-
} finally {
|
|
442
|
-
Xn = 0, $r = null, mt = null, Xt = null, ur = !1, x = null, z = null, ue.clear();
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
discard() {
|
|
446
|
-
for (const t of a(Nt, this)) t(this);
|
|
447
|
-
a(Nt, this).clear();
|
|
448
|
-
for (const t of this.async_deriveds.values()) t.reject(ft);
|
|
449
|
-
y(P, this, Qt).call(this), a(ut, this)?.resolve();
|
|
450
|
-
}
|
|
451
|
-
register_created_effect(t) {
|
|
452
|
-
a(kr, this).push(t);
|
|
453
|
-
}
|
|
454
|
-
increment(t, r) {
|
|
455
|
-
if (m(Xe, this, a(Xe, this) + 1), t) {
|
|
456
|
-
let n = a(Oe, this).get(r) ?? 0;
|
|
457
|
-
a(Oe, this).set(r, n + 1);
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
decrement(t, r) {
|
|
461
|
-
if (m(Xe, this, a(Xe, this) - 1), t) {
|
|
462
|
-
let n = a(Oe, this).get(r) ?? 0;
|
|
463
|
-
n === 1 ? a(Oe, this).delete(r) : a(Oe, this).set(r, n - 1);
|
|
464
|
-
}
|
|
465
|
-
a(ct, this) || (m(ct, this, !0), Be(() => {
|
|
466
|
-
m(ct, this, !1), this.linked && this.flush();
|
|
467
|
-
}));
|
|
468
|
-
}
|
|
469
|
-
transfer_effects(t, r) {
|
|
470
|
-
for (const n of t) a(Fe, this).add(n);
|
|
471
|
-
for (const n of r) a(ge, this).add(n);
|
|
472
|
-
t.clear(), r.clear();
|
|
473
|
-
}
|
|
474
|
-
oncommit(t) {
|
|
475
|
-
a(Zt, this).add(t);
|
|
476
|
-
}
|
|
477
|
-
ondiscard(t) {
|
|
478
|
-
a(Nt, this).add(t);
|
|
479
|
-
}
|
|
480
|
-
settled() {
|
|
481
|
-
return (a(ut, this) ?? m(ut, this, On())).promise;
|
|
482
|
-
}
|
|
483
|
-
static ensure() {
|
|
484
|
-
if (x === null) {
|
|
485
|
-
const t = x = new Kn();
|
|
486
|
-
!ur && !vt && Be(() => {
|
|
487
|
-
a(Kt, t) || t.flush();
|
|
488
|
-
});
|
|
489
|
-
}
|
|
490
|
-
return x;
|
|
491
|
-
}
|
|
492
|
-
apply() {
|
|
493
|
-
if (!Me || !this.is_fork && a(De, this) === null && a(We, this) === null) {
|
|
494
|
-
z = null;
|
|
495
|
-
return;
|
|
496
|
-
}
|
|
497
|
-
z = /* @__PURE__ */ new Map();
|
|
498
|
-
for (const [r, [n]] of this.current) z.set(r, n);
|
|
499
|
-
for (let r = Vt; r !== null; r = a(We, r))
|
|
500
|
-
if (!(r === this || r.is_fork)) {
|
|
501
|
-
var t = !1;
|
|
502
|
-
if (r.id < this.id) {
|
|
503
|
-
for (const [n, [, i]] of r.current)
|
|
504
|
-
if (!i && this.current.has(n)) {
|
|
505
|
-
t = !0;
|
|
506
|
-
break;
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
if (!t)
|
|
510
|
-
for (const [n, i] of r.previous) z.has(n) || z.set(n, i);
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
schedule(t) {
|
|
514
|
-
if ($r = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
|
|
515
|
-
t.b.defer_effect(t);
|
|
516
|
-
return;
|
|
517
|
-
}
|
|
518
|
-
a(Q, this).push(t);
|
|
519
|
-
}
|
|
520
|
-
};
|
|
521
|
-
Vn = Ye;
|
|
522
|
-
function vn() {
|
|
523
|
-
if (this.is_fork) return !0;
|
|
524
|
-
for (const r of a(Oe, this).keys()) {
|
|
525
|
-
for (var e = r, t = !1; e.parent !== null; ) {
|
|
526
|
-
if (a(xe, this).has(e)) {
|
|
527
|
-
t = !0;
|
|
528
|
-
break;
|
|
529
|
-
}
|
|
530
|
-
e = e.parent;
|
|
531
|
-
}
|
|
532
|
-
if (!t) return !0;
|
|
533
|
-
}
|
|
534
|
-
return !1;
|
|
535
|
-
}
|
|
536
|
-
function Zn() {
|
|
537
|
-
var e = [];
|
|
538
|
-
for (const i of a(Q, this))
|
|
539
|
-
if (!((i.f & 16384) !== 0 || (i.f & 6144) === 0)) {
|
|
540
|
-
for (var t = i, r = !1; t.parent !== null; ) {
|
|
541
|
-
t = t.parent;
|
|
542
|
-
var n = t.f;
|
|
543
|
-
if ((n & 96) !== 0) {
|
|
544
|
-
if ((n & 1024) === 0) {
|
|
545
|
-
r = !0;
|
|
546
|
-
break;
|
|
547
|
-
}
|
|
548
|
-
t.f ^= K;
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
r || e.push(t);
|
|
552
|
-
}
|
|
553
|
-
return m(Q, this, []), e;
|
|
554
|
-
}
|
|
555
|
-
function Jt() {
|
|
556
|
-
m(Kt, this, !0);
|
|
557
|
-
for (const o of a(Fe, this))
|
|
558
|
-
a(ge, this).delete(o), I(o, V), this.schedule(o);
|
|
559
|
-
for (const o of a(ge, this))
|
|
560
|
-
I(o, qe), this.schedule(o);
|
|
561
|
-
this.apply();
|
|
562
|
-
for (var e = mt = [], t = [], r = Xt = []; a(Q, this).length > 0; ) {
|
|
563
|
-
Xn++ > 1e3 && (y(P, this, Qt).call(this), na());
|
|
564
|
-
for (const o of y(P, this, Zn).call(this)) try {
|
|
565
|
-
y(P, this, Jn).call(this, o, e, t);
|
|
566
|
-
} catch (l) {
|
|
567
|
-
throw ti(o), y(P, this, vn).call(this) || this.discard(), l;
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
if (x = null, r.length > 0) {
|
|
571
|
-
var n = Vn.ensure();
|
|
572
|
-
for (const o of r) n.schedule(o);
|
|
573
|
-
}
|
|
574
|
-
if (mt = null, Xt = null, y(P, this, vn).call(this)) {
|
|
575
|
-
y(P, this, dt).call(this, t), y(P, this, dt).call(this, e);
|
|
576
|
-
for (const [o, l] of a(xe, this)) ei(o, l);
|
|
577
|
-
r.length > 0 && y(P, x, Jt).call(x);
|
|
578
|
-
return;
|
|
579
|
-
}
|
|
580
|
-
const i = y(P, this, ea).call(this);
|
|
581
|
-
if (i) {
|
|
582
|
-
y(P, this, dt).call(this, t), y(P, this, dt).call(this, e), y(P, i, ta).call(i, this);
|
|
583
|
-
return;
|
|
584
|
-
}
|
|
585
|
-
a(Fe, this).clear(), a(ge, this).clear();
|
|
586
|
-
for (const o of a(Zt, this)) o(this);
|
|
587
|
-
a(Zt, this).clear(), yr = this, _n(t), _n(e), yr = null, a(ut, this)?.resolve();
|
|
588
|
-
var s = x;
|
|
589
|
-
if (a(Xe, this) === 0 && (a(Q, this).length === 0 || s !== null) && (y(P, this, Qt).call(this), Me && (y(P, this, ra).call(this), x = s)), a(Q, this).length > 0)
|
|
590
|
-
if (s !== null) {
|
|
591
|
-
for (const o of a(Q, this)) a(Q, s).push(o);
|
|
592
|
-
m(Q, this, []);
|
|
593
|
-
} else s = this;
|
|
594
|
-
s !== null && (ue.clear(), y(P, s, Jt).call(s));
|
|
595
|
-
}
|
|
596
|
-
function Jn(e, t, r) {
|
|
597
|
-
e.f ^= K;
|
|
598
|
-
for (var n = e.first; n !== null; ) {
|
|
599
|
-
var i = n.f, s = (i & 96) !== 0;
|
|
600
|
-
if (!(s && (i & 1024) !== 0 || (i & 8192) !== 0 || a(xe, this).has(n)) && n.fn !== null) {
|
|
601
|
-
s ? n.f ^= K : (i & 4) !== 0 ? t.push(n) : Me && (i & 16777224) !== 0 ? r.push(n) : Mt(n) && ((i & 16) !== 0 && a(ge, this).add(n), nt(n));
|
|
602
|
-
var o = n.first;
|
|
603
|
-
if (o !== null) {
|
|
604
|
-
n = o;
|
|
605
|
-
continue;
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
for (; n !== null; ) {
|
|
609
|
-
var l = n.next;
|
|
610
|
-
if (l !== null) {
|
|
611
|
-
n = l;
|
|
612
|
-
break;
|
|
613
|
-
}
|
|
614
|
-
n = n.parent;
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
function ea() {
|
|
619
|
-
for (var e = a(De, this); e !== null; ) {
|
|
620
|
-
if (!e.is_fork) {
|
|
621
|
-
for (const [t, [, r]] of this.current) if (e.current.has(t) && !r) return e;
|
|
622
|
-
}
|
|
623
|
-
e = a(De, e);
|
|
624
|
-
}
|
|
625
|
-
return null;
|
|
626
|
-
}
|
|
627
|
-
function ta(e) {
|
|
628
|
-
for (const [r, n] of e.current)
|
|
629
|
-
!this.previous.has(r) && e.previous.has(r) && this.previous.set(r, e.previous.get(r)), this.current.set(r, n);
|
|
630
|
-
for (const [r, n] of e.async_deriveds) {
|
|
631
|
-
const i = this.async_deriveds.get(r);
|
|
632
|
-
i && n.promise.then(i.resolve).catch(i.reject);
|
|
633
|
-
}
|
|
634
|
-
e.async_deriveds.clear(), this.transfer_effects(a(Fe, e), a(ge, e));
|
|
635
|
-
const t = (r) => {
|
|
636
|
-
var n = r.reactions;
|
|
637
|
-
if (n !== null && !((r.f & 2) !== 0 && (r.f & 6144) === 0))
|
|
638
|
-
for (const o of n) {
|
|
639
|
-
var i = o.f;
|
|
640
|
-
if ((i & 2) !== 0) t(o);
|
|
641
|
-
else {
|
|
642
|
-
var s = o;
|
|
643
|
-
i & 4194320 && !this.async_deriveds.has(s) && (a(ge, this).delete(s), I(s, V), this.schedule(s));
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
};
|
|
647
|
-
for (const r of this.current.keys()) t(r);
|
|
648
|
-
this.oncommit(() => e.discard()), y(P, e, Qt).call(e), x = this, y(P, this, Jt).call(this);
|
|
649
|
-
}
|
|
650
|
-
function dt(e) {
|
|
651
|
-
for (var t = 0; t < e.length; t += 1) Bn(e[t], a(Fe, this), a(ge, this));
|
|
652
|
-
}
|
|
653
|
-
function ra() {
|
|
654
|
-
for (let p = Vt; p !== null; p = a(We, p)) {
|
|
655
|
-
var e = p.id < this.id, t = [];
|
|
656
|
-
for (const [d, [c, f]] of this.current) {
|
|
657
|
-
if (p.current.has(d)) {
|
|
658
|
-
var r = p.current.get(d)[0];
|
|
659
|
-
if (e && c !== r) p.current.set(d, [c, f]);
|
|
660
|
-
else continue;
|
|
661
|
-
}
|
|
662
|
-
t.push(d);
|
|
663
|
-
}
|
|
664
|
-
if (e) for (const [d, c] of this.async_deriveds) {
|
|
665
|
-
const f = p.async_deriveds.get(d);
|
|
666
|
-
f && c.promise.then(f.resolve).catch(f.reject);
|
|
667
|
-
}
|
|
668
|
-
var n = [...p.current.keys()].filter((d) => !p.current.get(d)[1]);
|
|
669
|
-
if (!(!a(Kt, p) || n.length === 0)) {
|
|
670
|
-
var i = n.filter((d) => !this.current.has(d));
|
|
671
|
-
if (i.length === 0)
|
|
672
|
-
e && p.discard();
|
|
673
|
-
else if (t.length > 0) {
|
|
674
|
-
if (e) for (const d of a(zt, this)) p.unskip_effect(d, (c) => {
|
|
675
|
-
(c.f & 4194320) !== 0 ? p.schedule(c) : y(P, p, dt).call(p, [c]);
|
|
676
|
-
});
|
|
677
|
-
p.activate();
|
|
678
|
-
var s = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
679
|
-
for (var l of t) Qn(l, i, s, o);
|
|
680
|
-
o = /* @__PURE__ */ new Map();
|
|
681
|
-
var h = [...p.current].filter(([d, c]) => {
|
|
682
|
-
const f = this.current.get(d);
|
|
683
|
-
return f ? f[0] !== c[0] || f[1] !== c[1] : !0;
|
|
684
|
-
}).map(([d]) => d);
|
|
685
|
-
if (h.length > 0)
|
|
686
|
-
for (const d of a(kr, this)) (d.f & 155648) === 0 && zr(d, h, o) && ((d.f & 4194320) !== 0 ? (I(d, V), p.schedule(d)) : a(Fe, p).add(d));
|
|
687
|
-
if (a(Q, p).length > 0 && !a(ct, p)) {
|
|
688
|
-
p.apply();
|
|
689
|
-
for (var v of y(P, p, Zn).call(p)) y(P, p, Jn).call(p, v, [], []);
|
|
690
|
-
}
|
|
691
|
-
p.deactivate();
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
function Qt() {
|
|
697
|
-
if (this.linked) {
|
|
698
|
-
var e = a(De, this), t = a(We, this);
|
|
699
|
-
e === null ? Vt = t : m(We, e, t), t === null ? Ve = e : m(De, t, e), this.linked = !1;
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
function xr(e) {
|
|
703
|
-
var t = vt;
|
|
704
|
-
vt = !0;
|
|
705
|
-
try {
|
|
706
|
-
var r;
|
|
707
|
-
for (e && (x !== null && !x.is_fork && x.flush(), r = e()); ; ) {
|
|
708
|
-
if (qs(), x === null) return r;
|
|
709
|
-
x.flush();
|
|
710
|
-
}
|
|
711
|
-
} finally {
|
|
712
|
-
vt = t;
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
function na() {
|
|
716
|
-
if (0) {
|
|
717
|
-
var e;
|
|
718
|
-
for (const r of x.current.keys()) for (const [n, i] of r.updated ?? [])
|
|
719
|
-
var t;
|
|
720
|
-
}
|
|
721
|
-
try {
|
|
722
|
-
Hs();
|
|
723
|
-
} catch (r) {
|
|
724
|
-
ce(r, $r);
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
var le = null;
|
|
728
|
-
function _n(e) {
|
|
729
|
-
var t = e.length;
|
|
730
|
-
if (t !== 0) {
|
|
731
|
-
for (var r = 0; r < t; ) {
|
|
732
|
-
var n = e[r++];
|
|
733
|
-
if ((n.f & 24576) === 0 && Mt(n) && (le = /* @__PURE__ */ new Set(), nt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && di(n), le?.size > 0)) {
|
|
734
|
-
ue.clear();
|
|
735
|
-
for (const i of le) {
|
|
736
|
-
if ((i.f & 24576) !== 0) continue;
|
|
737
|
-
const s = [i];
|
|
738
|
-
let o = i.parent;
|
|
739
|
-
for (; o !== null; )
|
|
740
|
-
le.has(o) && (le.delete(o), s.push(o)), o = o.parent;
|
|
741
|
-
for (let l = s.length - 1; l >= 0; l--) {
|
|
742
|
-
const h = s[l];
|
|
743
|
-
(h.f & 24576) === 0 && nt(h);
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
le.clear();
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
le = null;
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
function Qn(e, t, r, n) {
|
|
753
|
-
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
754
|
-
for (const i of e.reactions) {
|
|
755
|
-
const s = i.f;
|
|
756
|
-
(s & 2) !== 0 ? Qn(i, t, r, n) : (s & 4194320) !== 0 && (s & 2048) === 0 && zr(i, t, n) && (I(i, V), Br(i));
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
function zr(e, t, r) {
|
|
760
|
-
const n = r.get(e);
|
|
761
|
-
if (n !== void 0) return n;
|
|
762
|
-
if (e.deps !== null) for (const i of e.deps) {
|
|
763
|
-
if (Ut.call(t, i)) return !0;
|
|
764
|
-
if ((i.f & 2) !== 0 && zr(i, t, r))
|
|
765
|
-
return r.set(i, !0), !0;
|
|
766
|
-
}
|
|
767
|
-
return r.set(e, !1), !1;
|
|
768
|
-
}
|
|
769
|
-
function Br(e) {
|
|
770
|
-
x.schedule(e);
|
|
771
|
-
}
|
|
772
|
-
function ei(e, t) {
|
|
773
|
-
if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
|
|
774
|
-
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), I(e, K);
|
|
775
|
-
for (var r = e.first; r !== null; )
|
|
776
|
-
ei(r, t), r = r.next;
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
function ti(e) {
|
|
780
|
-
I(e, K);
|
|
781
|
-
for (var t = e.first; t !== null; )
|
|
782
|
-
ti(t), t = t.next;
|
|
783
|
-
}
|
|
784
|
-
var er = /* @__PURE__ */ new Set(), ue = /* @__PURE__ */ new Map();
|
|
785
|
-
var ri = !1;
|
|
786
|
-
function Et(e, t) {
|
|
787
|
-
var r = {
|
|
788
|
-
f: 0,
|
|
789
|
-
v: e,
|
|
790
|
-
reactions: null,
|
|
791
|
-
equals: Hn,
|
|
792
|
-
rv: 0,
|
|
793
|
-
wv: 0
|
|
794
|
-
};
|
|
795
|
-
return r;
|
|
796
|
-
}
|
|
797
|
-
// @__NO_SIDE_EFFECTS__
|
|
798
|
-
function D(e, t) {
|
|
799
|
-
const r = Et(e, t);
|
|
800
|
-
return pi(r), r;
|
|
801
|
-
}
|
|
802
|
-
// @__NO_SIDE_EFFECTS__
|
|
803
|
-
function ia(e, t = !1, r = !0) {
|
|
804
|
-
const n = Et(e);
|
|
805
|
-
if (t || (n.equals = Ln), kt && r && O !== null && O.l !== null) {
|
|
806
|
-
var i;
|
|
807
|
-
((i = O.l).s ?? (i.s = [])).push(n);
|
|
808
|
-
}
|
|
809
|
-
return n;
|
|
810
|
-
}
|
|
811
|
-
function M(e, t, r = !1) {
|
|
812
|
-
S !== null && (!ee || (S.f & 131072) !== 0) && xt() && (S.f & 4325394) !== 0 && (re === null || !re.has(e)) && Bs();
|
|
813
|
-
let n = r ? Ee(t) : t;
|
|
814
|
-
return tr(e, n, Xt);
|
|
815
|
-
}
|
|
816
|
-
var Ie = null, Er = 0;
|
|
817
|
-
function tr(e, t, r = null) {
|
|
818
|
-
if (!e.equals(t)) {
|
|
819
|
-
be ? ue.set(e, t) : ue.has(e) || ue.set(e, e.v);
|
|
820
|
-
var n = Ye.ensure();
|
|
821
|
-
if (n.capture(e, t), (e.f & 2) !== 0) {
|
|
822
|
-
const i = e;
|
|
823
|
-
(e.f & 2048) !== 0 && Dr(i), z === null && Lr(i);
|
|
824
|
-
}
|
|
825
|
-
e.wv = wi(), Ie = null, Er = 0, ni(e, V, r), Ie = null, xt() && E !== null && (E.f & 1024) !== 0 && (E.f & 96) === 0 && (X === null ? ka([e]) : X.push(e)), !n.is_fork && er.size > 0 && !ri && sa();
|
|
826
|
-
}
|
|
827
|
-
return t;
|
|
828
|
-
}
|
|
829
|
-
function sa() {
|
|
830
|
-
ri = !1;
|
|
831
|
-
for (const e of er) {
|
|
832
|
-
(e.f & 1024) !== 0 && I(e, qe);
|
|
833
|
-
let t;
|
|
834
|
-
try {
|
|
835
|
-
t = Mt(e);
|
|
836
|
-
} catch {
|
|
837
|
-
t = !0;
|
|
838
|
-
}
|
|
839
|
-
t && nt(e);
|
|
840
|
-
}
|
|
841
|
-
er.clear();
|
|
842
|
-
}
|
|
843
|
-
function _t(e) {
|
|
844
|
-
M(e, e.v + 1);
|
|
845
|
-
}
|
|
846
|
-
function ni(e, t, r) {
|
|
847
|
-
var n = e.reactions;
|
|
848
|
-
if (n !== null) {
|
|
849
|
-
var i = xt(), s = n.length;
|
|
850
|
-
if (Er += s, Er > 1e5 && Ie === null && (Ie = /* @__PURE__ */ new Set()), Ie !== null) {
|
|
851
|
-
if (Ie.has(e)) return;
|
|
852
|
-
Ie.add(e);
|
|
853
|
-
}
|
|
854
|
-
for (var o = 0; o < s; o++) {
|
|
855
|
-
var l = n[o], h = l.f;
|
|
856
|
-
if (!(!i && l === E)) {
|
|
857
|
-
var v = (h & V) === 0;
|
|
858
|
-
if (v && I(l, t), (h & 131072) !== 0) er.add(l);
|
|
859
|
-
else if ((h & 2) !== 0) {
|
|
860
|
-
var p = l;
|
|
861
|
-
z?.delete(p), ni(p, qe, r);
|
|
862
|
-
} else if (v) {
|
|
863
|
-
var d = l;
|
|
864
|
-
(h & 16) !== 0 && le !== null && le.add(d), r !== null ? r.push(d) : Br(d);
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
|
-
var aa = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
871
|
-
function Ee(e) {
|
|
872
|
-
if (typeof e != "object" || e === null || ht in e || Cn in e) return e;
|
|
873
|
-
const t = Pn(e);
|
|
874
|
-
if (t !== vs && t !== _s) return e;
|
|
875
|
-
var r = /* @__PURE__ */ new Map(), n = us(e), i = /* @__PURE__ */ D(0), s = null, o = je, l = (d) => {
|
|
876
|
-
if (je === o) return d();
|
|
877
|
-
var c = S, f = je;
|
|
878
|
-
Z(null), bn(o);
|
|
879
|
-
var g = d();
|
|
880
|
-
return Z(c), bn(f), g;
|
|
881
|
-
};
|
|
882
|
-
n && r.set("length", /* @__PURE__ */ D(e.length, s));
|
|
883
|
-
var h = "";
|
|
884
|
-
let v = !1;
|
|
885
|
-
function p(d) {
|
|
886
|
-
if (!v) {
|
|
887
|
-
v = !0, h = d, hn(i, `${h} version`);
|
|
888
|
-
for (const [c, f] of r) hn(f, oa(h, c));
|
|
889
|
-
v = !1;
|
|
890
|
-
}
|
|
891
|
-
}
|
|
892
|
-
return new Proxy(e, {
|
|
893
|
-
defineProperty(d, c, f) {
|
|
894
|
-
(!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && js();
|
|
895
|
-
var g = r.get(c);
|
|
896
|
-
return g === void 0 ? l(() => {
|
|
897
|
-
var w = /* @__PURE__ */ D(f.value, s);
|
|
898
|
-
return r.set(c, w), w;
|
|
899
|
-
}) : M(g, f.value, !0), !0;
|
|
900
|
-
},
|
|
901
|
-
deleteProperty(d, c) {
|
|
902
|
-
var f = r.get(c);
|
|
903
|
-
if (f === void 0) {
|
|
904
|
-
if (c in d) {
|
|
905
|
-
const g = l(() => /* @__PURE__ */ D(W, s));
|
|
906
|
-
r.set(c, g), _t(i);
|
|
907
|
-
}
|
|
908
|
-
} else
|
|
909
|
-
M(f, W), _t(i);
|
|
910
|
-
return !0;
|
|
911
|
-
},
|
|
912
|
-
get(d, c, f) {
|
|
913
|
-
if (c === ht) return e;
|
|
914
|
-
var g = r.get(c), w = c in d;
|
|
915
|
-
if (g === void 0 && (!w || Le(d, c)?.writable) && (g = l(() => {
|
|
916
|
-
var C = Ee(w ? d[c] : W), L = /* @__PURE__ */ D(C, s);
|
|
917
|
-
return L;
|
|
918
|
-
}), r.set(c, g)), g !== void 0) {
|
|
919
|
-
var $ = u(g);
|
|
920
|
-
return $ === W ? void 0 : $;
|
|
921
|
-
}
|
|
922
|
-
return Reflect.get(d, c, f);
|
|
923
|
-
},
|
|
924
|
-
getOwnPropertyDescriptor(d, c) {
|
|
925
|
-
this.has?.(d, c);
|
|
926
|
-
var f = Reflect.getOwnPropertyDescriptor(d, c), g = r.get(c);
|
|
927
|
-
if (g !== void 0) {
|
|
928
|
-
var w = u(g);
|
|
929
|
-
if (w === W) return;
|
|
930
|
-
if (f && "value" in f) f.value = w;
|
|
931
|
-
else return {
|
|
932
|
-
enumerable: !0,
|
|
933
|
-
configurable: !0,
|
|
934
|
-
value: w,
|
|
935
|
-
writable: !0
|
|
936
|
-
};
|
|
937
|
-
}
|
|
938
|
-
return f;
|
|
939
|
-
},
|
|
940
|
-
has(d, c) {
|
|
941
|
-
if (c === ht) return !0;
|
|
942
|
-
var f = r.get(c), g = f !== void 0 && f.v !== W || Reflect.has(d, c);
|
|
943
|
-
return (f !== void 0 || E !== null && (!g || Le(d, c)?.writable)) && (f === void 0 && (f = l(() => {
|
|
944
|
-
var w = g ? Ee(d[c]) : W, $ = /* @__PURE__ */ D(w, s);
|
|
945
|
-
return $;
|
|
946
|
-
}), r.set(c, f)), u(f) === W) ? !1 : g;
|
|
947
|
-
},
|
|
948
|
-
set(d, c, f, g) {
|
|
949
|
-
var w = r.get(c), $ = c in d;
|
|
950
|
-
if (n && c === "length") for (var C = f; C < w.v; C += 1) {
|
|
951
|
-
var L = r.get(C + "");
|
|
952
|
-
L !== void 0 ? M(L, W) : C in d && (L = l(() => /* @__PURE__ */ D(W, s)), r.set(C + "", L));
|
|
953
|
-
}
|
|
954
|
-
if (w === void 0)
|
|
955
|
-
(!$ || Le(d, c)?.writable) && (w = l(() => /* @__PURE__ */ D(void 0, s)), M(w, Ee(f)), r.set(c, w));
|
|
956
|
-
else {
|
|
957
|
-
$ = w.v !== W;
|
|
958
|
-
var ve = l(() => Ee(f));
|
|
959
|
-
M(w, ve);
|
|
960
|
-
}
|
|
961
|
-
var N = Reflect.getOwnPropertyDescriptor(d, c);
|
|
962
|
-
if (N?.set && N.set.call(g, f), !$) {
|
|
963
|
-
if (n && typeof c == "string") {
|
|
964
|
-
var _e = r.get("length"), $e = Number(c);
|
|
965
|
-
Number.isInteger($e) && $e >= _e.v && M(_e, $e + 1);
|
|
966
|
-
}
|
|
967
|
-
_t(i);
|
|
968
|
-
}
|
|
969
|
-
return !0;
|
|
970
|
-
},
|
|
971
|
-
ownKeys(d) {
|
|
972
|
-
u(i);
|
|
973
|
-
var c = Reflect.ownKeys(d).filter((w) => {
|
|
974
|
-
var $ = r.get(w);
|
|
975
|
-
return $ === void 0 || $.v !== W;
|
|
976
|
-
});
|
|
977
|
-
for (var [f, g] of r) g.v !== W && !(f in d) && c.push(f);
|
|
978
|
-
return c;
|
|
979
|
-
},
|
|
980
|
-
setPrototypeOf() {
|
|
981
|
-
zs();
|
|
982
|
-
}
|
|
983
|
-
});
|
|
984
|
-
}
|
|
985
|
-
function oa(e, t) {
|
|
986
|
-
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : aa.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
987
|
-
}
|
|
988
|
-
var pn, la, ii, si, ai;
|
|
989
|
-
function Sr() {
|
|
990
|
-
if (pn === void 0) {
|
|
991
|
-
pn = window, la = document, ii = /Firefox/.test(navigator.userAgent);
|
|
992
|
-
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
993
|
-
si = Le(t, "firstChild").get, ai = Le(t, "nextSibling").get, un(e) && (e[Es] = void 0, e[mr] = null, e[br] = void 0, e.__e = void 0), un(r) && (r[jt] = void 0);
|
|
994
|
-
}
|
|
995
|
-
}
|
|
996
|
-
function we(e = "") {
|
|
997
|
-
return document.createTextNode(e);
|
|
998
|
-
}
|
|
999
|
-
// @__NO_SIDE_EFFECTS__
|
|
1000
|
-
function Ue(e) {
|
|
1001
|
-
return si.call(e);
|
|
1002
|
-
}
|
|
1003
|
-
// @__NO_SIDE_EFFECTS__
|
|
1004
|
-
function ye(e) {
|
|
1005
|
-
return ai.call(e);
|
|
1006
|
-
}
|
|
1007
|
-
function oi(e, t) {
|
|
1008
|
-
if (!R) return /* @__PURE__ */ Ue(e);
|
|
1009
|
-
var r = /* @__PURE__ */ Ue(T);
|
|
1010
|
-
if (r === null) r = T.appendChild(we());
|
|
1011
|
-
else if (t && r.nodeType !== 3) {
|
|
1012
|
-
var n = we();
|
|
1013
|
-
return r?.before(n), se(n), n;
|
|
1014
|
-
}
|
|
1015
|
-
return t && Ur(r), se(r), r;
|
|
1016
|
-
}
|
|
1017
|
-
function gn(e, t = !1) {
|
|
1018
|
-
if (!R) {
|
|
1019
|
-
var r = /* @__PURE__ */ Ue(e);
|
|
1020
|
-
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ ye(r) : r;
|
|
1021
|
-
}
|
|
1022
|
-
if (t) {
|
|
1023
|
-
if (T?.nodeType !== 3) {
|
|
1024
|
-
var n = we();
|
|
1025
|
-
return T?.before(n), se(n), n;
|
|
1026
|
-
}
|
|
1027
|
-
Ur(T);
|
|
1028
|
-
}
|
|
1029
|
-
return T;
|
|
1030
|
-
}
|
|
1031
|
-
function fa(e, t = !1) {
|
|
1032
|
-
if (!R) return /* @__PURE__ */ Ue(e);
|
|
1033
|
-
var r = oi(e, t);
|
|
1034
|
-
return Nn(e), r;
|
|
1035
|
-
}
|
|
1036
|
-
function Wt(e, t = 1, r = !1) {
|
|
1037
|
-
let n = R ? T : e;
|
|
1038
|
-
for (var i; t--; )
|
|
1039
|
-
i = n, n = /* @__PURE__ */ ye(n);
|
|
1040
|
-
if (!R) return n;
|
|
1041
|
-
if (r) {
|
|
1042
|
-
if (n?.nodeType !== 3) {
|
|
1043
|
-
var s = we();
|
|
1044
|
-
return n === null ? i?.after(s) : n.before(s), se(s), s;
|
|
1045
|
-
}
|
|
1046
|
-
Ur(n);
|
|
1047
|
-
}
|
|
1048
|
-
return se(n), n;
|
|
1049
|
-
}
|
|
1050
|
-
function ua(e) {
|
|
1051
|
-
e.textContent = "";
|
|
1052
|
-
}
|
|
1053
|
-
function ca() {
|
|
1054
|
-
return !Me || le !== null ? !1 : (E.f & Ir) !== 0;
|
|
1055
|
-
}
|
|
1056
|
-
function Fr(e, t, r) {
|
|
1057
|
-
return t == null || t === "http://www.w3.org/1999/xhtml" ? r ? document.createElement(e, { is: r }) : document.createElement(e) : r ? document.createElementNS(t, e, { is: r }) : document.createElementNS(t, e);
|
|
1058
|
-
}
|
|
1059
|
-
function Ur(e) {
|
|
1060
|
-
if (e.nodeValue.length < 65536) return;
|
|
1061
|
-
let t = e.nextSibling;
|
|
1062
|
-
for (; t !== null && t.nodeType === 3; )
|
|
1063
|
-
t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1064
|
-
}
|
|
1065
|
-
function da(e) {
|
|
1066
|
-
var t = E;
|
|
1067
|
-
if (t === null)
|
|
1068
|
-
return S.f |= Yt, e;
|
|
1069
|
-
if ((t.f & 32768) === 0 && (t.f & 4) === 0)
|
|
1070
|
-
throw e;
|
|
1071
|
-
ce(e, t);
|
|
1072
|
-
}
|
|
1073
|
-
function ce(e, t) {
|
|
1074
|
-
if (!(t !== null && (t.f & 16384) !== 0)) {
|
|
1075
|
-
for (; t !== null; ) {
|
|
1076
|
-
if ((t.f & 128) !== 0 && (t.f & 33570816) === 0) {
|
|
1077
|
-
if ((t.f & 32768) === 0) throw e;
|
|
1078
|
-
try {
|
|
1079
|
-
t.b.error(e);
|
|
1080
|
-
return;
|
|
1081
|
-
} catch (r) {
|
|
1082
|
-
e = r;
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
t = t.parent;
|
|
1086
|
-
}
|
|
1087
|
-
throw e;
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
|
-
function ha(e) {
|
|
1091
|
-
E === null && (S === null && Ws(e), Ns()), be && Is(e);
|
|
1092
|
-
}
|
|
1093
|
-
function va(e, t) {
|
|
1094
|
-
var r = t.last;
|
|
1095
|
-
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1096
|
-
}
|
|
1097
|
-
function he(e, t) {
|
|
1098
|
-
var r = E;
|
|
1099
|
-
r !== null && (r.f & 8192) !== 0 && (e |= Cr);
|
|
1100
|
-
var n = {
|
|
1101
|
-
ctx: O,
|
|
1102
|
-
deps: null,
|
|
1103
|
-
nodes: null,
|
|
1104
|
-
f: e | V | 512,
|
|
1105
|
-
first: null,
|
|
1106
|
-
fn: t,
|
|
1107
|
-
last: null,
|
|
1108
|
-
next: null,
|
|
1109
|
-
parent: r,
|
|
1110
|
-
b: r && r.b,
|
|
1111
|
-
prev: null,
|
|
1112
|
-
teardown: null,
|
|
1113
|
-
wv: 0,
|
|
1114
|
-
ac: null
|
|
1115
|
-
};
|
|
1116
|
-
x?.register_created_effect(n);
|
|
1117
|
-
var i = n;
|
|
1118
|
-
if ((e & 4) !== 0)
|
|
1119
|
-
mt !== null ? mt.push(n) : Ye.ensure().schedule(n);
|
|
1120
|
-
else if (t !== null) {
|
|
1121
|
-
try {
|
|
1122
|
-
nt(n);
|
|
1123
|
-
} catch (o) {
|
|
1124
|
-
throw F(n), o;
|
|
1125
|
-
}
|
|
1126
|
-
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |= Nr));
|
|
1127
|
-
}
|
|
1128
|
-
if (i !== null && (i.parent = r, r !== null && va(i, r), S !== null && (S.f & 2) !== 0 && (e & 64) === 0)) {
|
|
1129
|
-
var s = S;
|
|
1130
|
-
(s.effects ?? (s.effects = [])).push(i);
|
|
1131
|
-
}
|
|
1132
|
-
return n;
|
|
1133
|
-
}
|
|
1134
|
-
function qr() {
|
|
1135
|
-
return S !== null && !ee;
|
|
1136
|
-
}
|
|
1137
|
-
function _a(e) {
|
|
1138
|
-
const t = he(8, null);
|
|
1139
|
-
return I(t, K), t.teardown = e, t;
|
|
1140
|
-
}
|
|
1141
|
-
function Ce(e) {
|
|
1142
|
-
ha("$effect");
|
|
1143
|
-
var t = E.f;
|
|
1144
|
-
if (!S && (t & 32) !== 0 && O !== null && !O.i) {
|
|
1145
|
-
var r = O;
|
|
1146
|
-
(r.e ?? (r.e = [])).push(e);
|
|
1147
|
-
} else return li(e);
|
|
1148
|
-
}
|
|
1149
|
-
function li(e) {
|
|
1150
|
-
return he(4 | ys, e);
|
|
1151
|
-
}
|
|
1152
|
-
function pa(e) {
|
|
1153
|
-
Ye.ensure();
|
|
1154
|
-
const t = he(64 | st, e);
|
|
1155
|
-
return () => {
|
|
1156
|
-
F(t);
|
|
1157
|
-
};
|
|
1158
|
-
}
|
|
1159
|
-
function ga(e) {
|
|
1160
|
-
Ye.ensure();
|
|
1161
|
-
const t = he(64 | st, e);
|
|
1162
|
-
return (r = {}) => new Promise((n) => {
|
|
1163
|
-
r.outro ? St(t, () => {
|
|
1164
|
-
F(t), n(void 0);
|
|
1165
|
-
}) : (F(t), n(void 0));
|
|
1166
|
-
});
|
|
1167
|
-
}
|
|
1168
|
-
function fi(e) {
|
|
1169
|
-
return he(4, e);
|
|
1170
|
-
}
|
|
1171
|
-
function wa(e) {
|
|
1172
|
-
return he($s | st, e);
|
|
1173
|
-
}
|
|
1174
|
-
function Yr(e, t = 0) {
|
|
1175
|
-
return he(8 | t, e);
|
|
1176
|
-
}
|
|
1177
|
-
function ma(e, t = [], r = [], n = []) {
|
|
1178
|
-
Gs(n, t, r, (i) => {
|
|
1179
|
-
he(8, () => {
|
|
1180
|
-
e(...i.map(u));
|
|
1181
|
-
});
|
|
1182
|
-
});
|
|
1183
|
-
}
|
|
1184
|
-
function ui(e, t = 0) {
|
|
1185
|
-
var r = he(16 | t, e);
|
|
1186
|
-
return r;
|
|
1187
|
-
}
|
|
1188
|
-
function me(e) {
|
|
1189
|
-
return he(32 | st, e);
|
|
1190
|
-
}
|
|
1191
|
-
function ci(e) {
|
|
1192
|
-
var t = e.teardown;
|
|
1193
|
-
if (t !== null) {
|
|
1194
|
-
const r = be, n = S;
|
|
1195
|
-
mn(!0), Z(null);
|
|
1196
|
-
try {
|
|
1197
|
-
t.call(null);
|
|
1198
|
-
} catch (i) {
|
|
1199
|
-
ce(i, e.parent);
|
|
1200
|
-
} finally {
|
|
1201
|
-
mn(r), Z(n);
|
|
1202
|
-
}
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
function Gr(e, t = !1) {
|
|
1206
|
-
var r = e.first;
|
|
1207
|
-
for (e.first = e.last = null; r !== null; ) {
|
|
1208
|
-
const i = r.ac;
|
|
1209
|
-
i !== null && sr(() => {
|
|
1210
|
-
i.abort($t);
|
|
1211
|
-
});
|
|
1212
|
-
var n = r.next;
|
|
1213
|
-
(r.f & 64) !== 0 ? r.parent = null : F(r, t), r = n;
|
|
1214
|
-
}
|
|
1215
|
-
}
|
|
1216
|
-
function ba(e) {
|
|
1217
|
-
for (var t = e.first; t !== null; ) {
|
|
1218
|
-
var r = t.next;
|
|
1219
|
-
(t.f & 32) === 0 && F(t), t = r;
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
function F(e, t = !0) {
|
|
1223
|
-
var r = !1;
|
|
1224
|
-
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (ya(e.nodes.start, e.nodes.end), r = !0), e.f |= cn, Gr(e, t && !r), bt(e, 0);
|
|
1225
|
-
var n = e.nodes && e.nodes.t;
|
|
1226
|
-
if (n !== null) for (const s of n) s.stop();
|
|
1227
|
-
ci(e), e.f ^= cn, e.f |= bs;
|
|
1228
|
-
var i = e.parent;
|
|
1229
|
-
i !== null && i.first !== null && di(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1230
|
-
}
|
|
1231
|
-
function ya(e, t) {
|
|
1232
|
-
for (; e !== null; ) {
|
|
1233
|
-
var r = e === t ? null : /* @__PURE__ */ ye(e);
|
|
1234
|
-
e.remove(), e = r;
|
|
1235
|
-
}
|
|
1236
|
-
}
|
|
1237
|
-
function di(e) {
|
|
1238
|
-
var t = e.parent, r = e.prev, n = e.next;
|
|
1239
|
-
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1240
|
-
}
|
|
1241
|
-
function St(e, t, r = !0) {
|
|
1242
|
-
var n = [];
|
|
1243
|
-
e.f |= 256, hi(e, n, !0);
|
|
1244
|
-
var i = () => {
|
|
1245
|
-
r && F(e), t && t();
|
|
1246
|
-
}, s = n.length;
|
|
1247
|
-
if (s > 0) {
|
|
1248
|
-
var o = () => --s || i();
|
|
1249
|
-
for (var l of n) l.out(o);
|
|
1250
|
-
} else i();
|
|
1251
|
-
}
|
|
1252
|
-
function hi(e, t, r) {
|
|
1253
|
-
if ((e.f & 8192) === 0) {
|
|
1254
|
-
e.f ^= Cr;
|
|
1255
|
-
var n = e.nodes && e.nodes.t;
|
|
1256
|
-
if (n !== null)
|
|
1257
|
-
for (const l of n) (l.is_global || r) && t.push(l);
|
|
1258
|
-
for (var i = e.first; i !== null; ) {
|
|
1259
|
-
var s = i.next;
|
|
1260
|
-
if ((i.f & 64) === 0) {
|
|
1261
|
-
var o = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1262
|
-
hi(i, t, o ? r : !1);
|
|
1263
|
-
}
|
|
1264
|
-
i = s;
|
|
1265
|
-
}
|
|
1266
|
-
}
|
|
1267
|
-
}
|
|
1268
|
-
function wn(e) {
|
|
1269
|
-
e.f &= -257, vi(e, !0);
|
|
1270
|
-
}
|
|
1271
|
-
function vi(e, t) {
|
|
1272
|
-
if ((e.f & 256) === 0 && (e.f & 8192) !== 0) {
|
|
1273
|
-
e.f ^= Cr, (e.f & 1024) === 0 && (I(e, V), Ye.ensure().schedule(e));
|
|
1274
|
-
for (var r = e.first; r !== null; ) {
|
|
1275
|
-
var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1276
|
-
vi(r, i ? t : !1), r = n;
|
|
1277
|
-
}
|
|
1278
|
-
var s = e.nodes && e.nodes.t;
|
|
1279
|
-
if (s !== null)
|
|
1280
|
-
for (const o of s) (o.is_global || t) && o.in();
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
function _i(e, t) {
|
|
1284
|
-
if (e.nodes)
|
|
1285
|
-
for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
|
|
1286
|
-
var i = r === n ? null : /* @__PURE__ */ ye(r);
|
|
1287
|
-
t.append(r), r = i;
|
|
1288
|
-
}
|
|
1289
|
-
}
|
|
1290
|
-
var $a = null, Bt = !1, be = !1;
|
|
1291
|
-
function mn(e) {
|
|
1292
|
-
be = e;
|
|
1293
|
-
}
|
|
1294
|
-
var S = null, ee = !1;
|
|
1295
|
-
function Z(e) {
|
|
1296
|
-
S = e;
|
|
1297
|
-
}
|
|
1298
|
-
var E = null;
|
|
1299
|
-
function de(e) {
|
|
1300
|
-
E = e;
|
|
1301
|
-
}
|
|
1302
|
-
var re = null;
|
|
1303
|
-
function pi(e) {
|
|
1304
|
-
S !== null && (!Me && (S.f & 2097152) !== 0 || (S.f & 2) !== 0) && (re ?? (re = /* @__PURE__ */ new Set())).add(e);
|
|
1305
|
-
}
|
|
1306
|
-
var B = null, q = 0, X = null;
|
|
1307
|
-
function ka(e) {
|
|
1308
|
-
X = e;
|
|
1309
|
-
}
|
|
1310
|
-
var gi = 1, He = 0, je = He;
|
|
1311
|
-
function bn(e) {
|
|
1312
|
-
je = e;
|
|
1313
|
-
}
|
|
1314
|
-
function wi() {
|
|
1315
|
-
return ++gi;
|
|
1316
|
-
}
|
|
1317
|
-
function Mt(e) {
|
|
1318
|
-
var t = e.f;
|
|
1319
|
-
if ((t & 2048) !== 0) return !0;
|
|
1320
|
-
if ((t & 4096) !== 0) {
|
|
1321
|
-
for (var r = e.deps, n = r.length, i = 0; i < n; i++) {
|
|
1322
|
-
var s = r[i];
|
|
1323
|
-
if (Mt(s) && qn(s), s.wv > e.wv) return !0;
|
|
1324
|
-
}
|
|
1325
|
-
(t & 512) !== 0 && z === null && I(e, K);
|
|
1326
|
-
}
|
|
1327
|
-
return !1;
|
|
1328
|
-
}
|
|
1329
|
-
function mi(e, t, r = !0) {
|
|
1330
|
-
var n = e.reactions;
|
|
1331
|
-
if (n !== null && !(!Me && re !== null && re.has(e)))
|
|
1332
|
-
for (var i = 0; i < n.length; i++) {
|
|
1333
|
-
var s = n[i];
|
|
1334
|
-
(s.f & 2) !== 0 ? mi(s, t, !1) : t === s && (r ? I(s, V) : (s.f & 1024) !== 0 && I(s, qe), Br(s));
|
|
1335
|
-
}
|
|
1336
|
-
}
|
|
1337
|
-
function bi(e) {
|
|
1338
|
-
var t = B, r = q, n = X, i = S, s = re, o = O, l = ee, h = je, v = e.f;
|
|
1339
|
-
B = null, q = 0, X = null, S = (v & 96) === 0 ? e : null, re = null, rt(e.ctx), ee = !1, je = ++He, e.ac !== null && (sr(() => {
|
|
1340
|
-
e.ac.abort($t);
|
|
1341
|
-
}), e.ac = null);
|
|
1342
|
-
try {
|
|
1343
|
-
e.f |= dn;
|
|
1344
|
-
var p = e.fn, d = p();
|
|
1345
|
-
e.f |= Ir;
|
|
1346
|
-
var c = yn(e);
|
|
1347
|
-
if (xt() && X !== null && !ee && c !== null && (e.f & 6146) === 0) for (var f = 0; f < X.length; f++) mi(X[f], e);
|
|
1348
|
-
if (i !== null && i !== e) {
|
|
1349
|
-
if (He++, i.deps !== null) for (let g = 0; g < r; g += 1) i.deps[g].rv = He;
|
|
1350
|
-
if (t !== null) for (const g of t) g.rv = He;
|
|
1351
|
-
X !== null && (n === null ? n = X : n.push(...X));
|
|
1352
|
-
}
|
|
1353
|
-
return (e.f & 8388608) !== 0 && (e.f ^= Yt), d;
|
|
1354
|
-
} catch (g) {
|
|
1355
|
-
return yn(e), da(g);
|
|
1356
|
-
} finally {
|
|
1357
|
-
e.f ^= dn, B = t, q = r, X = n, S = i, re = s, rt(o), ee = l, je = h;
|
|
1358
|
-
}
|
|
1359
|
-
}
|
|
1360
|
-
function yn(e) {
|
|
1361
|
-
var t = e.deps, r = x?.is_fork;
|
|
1362
|
-
if (B !== null) {
|
|
1363
|
-
var n;
|
|
1364
|
-
if (r || bt(e, q), t !== null && q > 0)
|
|
1365
|
-
for (t.length = q + B.length, n = 0; n < B.length; n++) t[q + n] = B[n];
|
|
1366
|
-
else e.deps = t = B;
|
|
1367
|
-
if (qr() && (e.f & 512) !== 0) for (n = q; n < t.length; n++) {
|
|
1368
|
-
var i;
|
|
1369
|
-
((i = t[n]).reactions ?? (i.reactions = [])).push(e);
|
|
1370
|
-
}
|
|
1371
|
-
} else !r && t !== null && q < t.length && (bt(e, q), t.length = q);
|
|
1372
|
-
return t;
|
|
1373
|
-
}
|
|
1374
|
-
function xa(e, t) {
|
|
1375
|
-
let r = t.reactions;
|
|
1376
|
-
if (r !== null) {
|
|
1377
|
-
var n = cs.call(r, e);
|
|
1378
|
-
if (n !== -1) {
|
|
1379
|
-
var i = r.length - 1;
|
|
1380
|
-
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
1381
|
-
}
|
|
1382
|
-
}
|
|
1383
|
-
if (r === null && (t.f & 2) !== 0 && (B === null || !Ut.call(B, t))) {
|
|
1384
|
-
var s = t;
|
|
1385
|
-
(s.f & 512) !== 0 && (s.f ^= 512), s.v !== W && Lr(s), s.ac !== null && sr(() => {
|
|
1386
|
-
s.ac.abort($t), s.ac = null, I(s, V);
|
|
1387
|
-
}), Js(s), bt(s, 0);
|
|
1388
|
-
}
|
|
1389
|
-
}
|
|
1390
|
-
function bt(e, t) {
|
|
1391
|
-
var r = e.deps;
|
|
1392
|
-
if (r !== null)
|
|
1393
|
-
for (var n = t; n < r.length; n++) xa(e, r[n]);
|
|
1394
|
-
}
|
|
1395
|
-
function nt(e) {
|
|
1396
|
-
var t = e.f;
|
|
1397
|
-
if ((t & 16384) === 0) {
|
|
1398
|
-
I(e, K);
|
|
1399
|
-
var r = E, n = Bt;
|
|
1400
|
-
if (E = e, Bt = (t & 96) === 0, 0)
|
|
1401
|
-
var i, s;
|
|
1402
|
-
try {
|
|
1403
|
-
(t & 16777232) !== 0 ? ba(e) : Gr(e), ci(e);
|
|
1404
|
-
var o = bi(e);
|
|
1405
|
-
if (e.teardown = typeof o == "function" ? o : null, e.wv = gi, 0)
|
|
1406
|
-
for (var l of e.deps) ;
|
|
1407
|
-
} finally {
|
|
1408
|
-
Bt = n, E = r;
|
|
1409
|
-
}
|
|
1410
|
-
}
|
|
1411
|
-
}
|
|
1412
|
-
function u(e) {
|
|
1413
|
-
var t = (e.f & 2) !== 0;
|
|
1414
|
-
if ($a?.add(e), S !== null && !ee && !(E !== null && (E.f & 16384) !== 0) && (re === null || !re.has(e))) {
|
|
1415
|
-
var r = S.deps;
|
|
1416
|
-
if ((S.f & 2097152) !== 0)
|
|
1417
|
-
e.rv < He && (e.rv = He, B === null && r !== null && r[q] === e ? q++ : B === null ? B = [e] : B.push(e));
|
|
1418
|
-
else {
|
|
1419
|
-
var n;
|
|
1420
|
-
(n = S).deps ?? (n.deps = []), Ut.call(S.deps, e) || S.deps.push(e);
|
|
1421
|
-
var i = e.reactions;
|
|
1422
|
-
i === null ? e.reactions = [S] : Ut.call(i, S) || i.push(S);
|
|
1423
|
-
}
|
|
1424
|
-
}
|
|
1425
|
-
if (0) {
|
|
1426
|
-
if (!ee && reactivity_loss_tracker && x === null && yr === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
|
|
1427
|
-
var s;
|
|
1428
|
-
if (tracing_mode_flag && !ee && tracing_expressions !== null && S !== null && tracing_expressions.reaction === S && !e.trace) {
|
|
1429
|
-
if (s)
|
|
1430
|
-
var o, l;
|
|
1431
|
-
}
|
|
1432
|
-
}
|
|
1433
|
-
if (be && ue.has(e)) return ue.get(e);
|
|
1434
|
-
if (t) {
|
|
1435
|
-
var h = e;
|
|
1436
|
-
if (be) {
|
|
1437
|
-
var v = h.v;
|
|
1438
|
-
return ((h.f & 1024) === 0 && h.reactions !== null || $i(h)) && (v = Dr(h)), ue.set(h, v), v;
|
|
1439
|
-
}
|
|
1440
|
-
var p = (h.f & 512) === 0 && !ee && S !== null && (Bt || (S.f & 512) !== 0), d = (h.f & Ir) === 0;
|
|
1441
|
-
Mt(h) && (p && (h.f |= 512), qn(h)), p && !d && (Yn(h), yi(h));
|
|
1442
|
-
}
|
|
1443
|
-
if (z?.has(e)) return z.get(e);
|
|
1444
|
-
if ((e.f & 8388608) !== 0) throw e.v;
|
|
1445
|
-
return e.v;
|
|
1446
|
-
}
|
|
1447
|
-
function yi(e) {
|
|
1448
|
-
if (e.f |= 512, e.deps !== null)
|
|
1449
|
-
for (const t of e.deps)
|
|
1450
|
-
(t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (Yn(t), yi(t));
|
|
1451
|
-
}
|
|
1452
|
-
function $i(e) {
|
|
1453
|
-
if (e.v === W) return !0;
|
|
1454
|
-
if (e.deps === null) return !1;
|
|
1455
|
-
for (const t of e.deps)
|
|
1456
|
-
if (ue.has(t) || (t.f & 2) !== 0 && $i(t)) return !0;
|
|
1457
|
-
return !1;
|
|
1458
|
-
}
|
|
1459
|
-
function it(e) {
|
|
1460
|
-
var t = ee;
|
|
1461
|
-
try {
|
|
1462
|
-
return ee = !0, e();
|
|
1463
|
-
} finally {
|
|
1464
|
-
ee = t;
|
|
1465
|
-
}
|
|
1466
|
-
}
|
|
1467
|
-
var Qe = /* @__PURE__ */ Symbol("events"), ki = /* @__PURE__ */ new Set(), Mr = /* @__PURE__ */ new Set();
|
|
1468
|
-
function ot(e, t, r) {
|
|
1469
|
-
(t[Qe] ?? (t[Qe] = {}))[e] = r;
|
|
1470
|
-
}
|
|
1471
|
-
function Ea(e) {
|
|
1472
|
-
for (var t = 0; t < e.length; t++) ki.add(e[t]);
|
|
1473
|
-
for (var r of Mr) r(e);
|
|
1474
|
-
}
|
|
1475
|
-
var cr = null, dr = !1;
|
|
1476
|
-
function $n(e) {
|
|
1477
|
-
var t = this, r = t.ownerDocument, n = e.type, i = e.composedPath?.() || [], s = i[0] || e.target;
|
|
1478
|
-
cr = e, dr || (dr = !0, setTimeout(() => {
|
|
1479
|
-
dr = !1, cr = null;
|
|
1480
|
-
}));
|
|
1481
|
-
var o = 0, l = cr === e && e[Qe];
|
|
1482
|
-
if (l) {
|
|
1483
|
-
var h = i.indexOf(l);
|
|
1484
|
-
if (h !== -1 && (t === document || t === window)) {
|
|
1485
|
-
e[Qe] = t;
|
|
1486
|
-
return;
|
|
1487
|
-
}
|
|
1488
|
-
var v = i.indexOf(t);
|
|
1489
|
-
if (v === -1) return;
|
|
1490
|
-
h <= v && (o = h);
|
|
1491
|
-
}
|
|
1492
|
-
if (s = i[o] || e.target, s !== t) {
|
|
1493
|
-
pt(e, "currentTarget", {
|
|
1494
|
-
configurable: !0,
|
|
1495
|
-
get() {
|
|
1496
|
-
return s || r;
|
|
1497
|
-
}
|
|
1498
|
-
});
|
|
1499
|
-
var p = S, d = E;
|
|
1500
|
-
Z(null), de(null);
|
|
1501
|
-
try {
|
|
1502
|
-
for (var c, f = []; s !== null && s !== t; ) {
|
|
1503
|
-
try {
|
|
1504
|
-
var g = s[Qe]?.[n];
|
|
1505
|
-
g != null && (!s.disabled || e.target === s) && g.call(s, e);
|
|
1506
|
-
} catch (w) {
|
|
1507
|
-
c ? f.push(w) : c = w;
|
|
1508
|
-
}
|
|
1509
|
-
if (e.cancelBubble) break;
|
|
1510
|
-
o++, s = o < i.length ? i[o] : null;
|
|
1511
|
-
}
|
|
1512
|
-
if (c) {
|
|
1513
|
-
for (let w of f) queueMicrotask(() => {
|
|
1514
|
-
throw w;
|
|
1515
|
-
});
|
|
1516
|
-
throw c;
|
|
1517
|
-
}
|
|
1518
|
-
} finally {
|
|
1519
|
-
e[Qe] = t, delete e.currentTarget, Z(p), de(d);
|
|
1520
|
-
}
|
|
1521
|
-
}
|
|
1522
|
-
}
|
|
1523
|
-
var Sa = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1524
|
-
function Ma(e) {
|
|
1525
|
-
return Sa?.createHTML(e) ?? e;
|
|
1526
|
-
}
|
|
1527
|
-
function Ta(e) {
|
|
1528
|
-
var t = Fr("template");
|
|
1529
|
-
return t.innerHTML = Ma(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1530
|
-
}
|
|
1531
|
-
function et(e, t) {
|
|
1532
|
-
var r = E;
|
|
1533
|
-
r.nodes === null && (r.nodes = {
|
|
1534
|
-
start: e,
|
|
1535
|
-
end: t,
|
|
1536
|
-
a: null,
|
|
1537
|
-
t: null
|
|
1538
|
-
});
|
|
1539
|
-
}
|
|
1540
|
-
// @__NO_SIDE_EFFECTS__
|
|
1541
|
-
function Aa(e, t) {
|
|
1542
|
-
var r = (t & 1) !== 0, n = (t & 2) !== 0, i, s = !e.startsWith("<!>");
|
|
1543
|
-
return () => {
|
|
1544
|
-
if (R)
|
|
1545
|
-
return et(T, null), T;
|
|
1546
|
-
i === void 0 && (i = Ta(s ? e : "<!>" + e), r || (i = /* @__PURE__ */ Ue(i)));
|
|
1547
|
-
var o = n || ii ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1548
|
-
if (r) {
|
|
1549
|
-
var l = /* @__PURE__ */ Ue(o), h = o.lastChild;
|
|
1550
|
-
et(l, h);
|
|
1551
|
-
} else et(o, o);
|
|
1552
|
-
return o;
|
|
1553
|
-
};
|
|
1554
|
-
}
|
|
1555
|
-
function Ra() {
|
|
1556
|
-
if (R)
|
|
1557
|
-
return et(T, null), T;
|
|
1558
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), r = we();
|
|
1559
|
-
return e.append(t, r), et(t, r), e;
|
|
1560
|
-
}
|
|
1561
|
-
function Tr(e, t) {
|
|
1562
|
-
if (R) {
|
|
1563
|
-
var r = E;
|
|
1564
|
-
((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = T), Wr();
|
|
1565
|
-
return;
|
|
1566
|
-
}
|
|
1567
|
-
e !== null && e.before(t);
|
|
1568
|
-
}
|
|
1569
|
-
var Pa = [
|
|
1570
|
-
"allowfullscreen",
|
|
1571
|
-
"async",
|
|
1572
|
-
"autofocus",
|
|
1573
|
-
"autoplay",
|
|
1574
|
-
"checked",
|
|
1575
|
-
"controls",
|
|
1576
|
-
"default",
|
|
1577
|
-
"disabled",
|
|
1578
|
-
"formnovalidate",
|
|
1579
|
-
"indeterminate",
|
|
1580
|
-
"inert",
|
|
1581
|
-
"ismap",
|
|
1582
|
-
"loop",
|
|
1583
|
-
"multiple",
|
|
1584
|
-
"muted",
|
|
1585
|
-
"nomodule",
|
|
1586
|
-
"novalidate",
|
|
1587
|
-
"open",
|
|
1588
|
-
"playsinline",
|
|
1589
|
-
"readonly",
|
|
1590
|
-
"required",
|
|
1591
|
-
"reversed",
|
|
1592
|
-
"seamless",
|
|
1593
|
-
"selected",
|
|
1594
|
-
"webkitdirectory",
|
|
1595
|
-
"defer",
|
|
1596
|
-
"disablepictureinpicture",
|
|
1597
|
-
"disableremoteplayback"
|
|
1598
|
-
], ko = [
|
|
1599
|
-
...Pa,
|
|
1600
|
-
"formNoValidate",
|
|
1601
|
-
"isMap",
|
|
1602
|
-
"noModule",
|
|
1603
|
-
"playsInline",
|
|
1604
|
-
"readOnly",
|
|
1605
|
-
"value",
|
|
1606
|
-
"volume",
|
|
1607
|
-
"defaultValue",
|
|
1608
|
-
"defaultChecked",
|
|
1609
|
-
"srcObject",
|
|
1610
|
-
"noValidate",
|
|
1611
|
-
"allowFullscreen",
|
|
1612
|
-
"disablePictureInPicture",
|
|
1613
|
-
"disableRemotePlayback"
|
|
1614
|
-
], Oa = ["touchstart", "touchmove"];
|
|
1615
|
-
function Ca(e) {
|
|
1616
|
-
return Oa.includes(e);
|
|
1617
|
-
}
|
|
1618
|
-
var Ia = [
|
|
1619
|
-
"$state",
|
|
1620
|
-
"$state.raw",
|
|
1621
|
-
"$derived",
|
|
1622
|
-
"$derived.by"
|
|
1623
|
-
], xo = [
|
|
1624
|
-
...Ia,
|
|
1625
|
-
"$state.eager",
|
|
1626
|
-
"$state.snapshot",
|
|
1627
|
-
"$props",
|
|
1628
|
-
"$props.id",
|
|
1629
|
-
"$bindable",
|
|
1630
|
-
"$effect",
|
|
1631
|
-
"$effect.pre",
|
|
1632
|
-
"$effect.tracking",
|
|
1633
|
-
"$effect.root",
|
|
1634
|
-
"$effect.pending",
|
|
1635
|
-
"$inspect",
|
|
1636
|
-
"$inspect().with",
|
|
1637
|
-
"$inspect.trace",
|
|
1638
|
-
"$host"
|
|
1639
|
-
];
|
|
1640
|
-
function Na(e) {
|
|
1641
|
-
let t = 0, r = Et(0), n;
|
|
1642
|
-
return () => {
|
|
1643
|
-
qr() && (u(r), Yr(() => (t === 0 && (n = it(() => e(() => _t(r)))), t += 1, () => {
|
|
1644
|
-
Be(() => {
|
|
1645
|
-
t -= 1, t === 0 && (n?.(), n = void 0, _t(r));
|
|
1646
|
-
});
|
|
1647
|
-
})));
|
|
1648
|
-
};
|
|
1649
|
-
}
|
|
1650
|
-
var Wa = Nr | st;
|
|
1651
|
-
function Ha(e, t, r, n) {
|
|
1652
|
-
new La(e, t, r, n);
|
|
1653
|
-
}
|
|
1654
|
-
var ne = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), Rr = /* @__PURE__ */ new WeakMap(), Pr = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), kn = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakSet(), La = class {
|
|
1655
|
-
constructor(e, t, r, n) {
|
|
1656
|
-
jr(this, H), A(this, "parent", void 0), A(this, "is_pending", !1), A(this, "transform_error", void 0), b(this, ne, void 0), b(this, Ar, R ? T : null), b(this, fe, void 0), b(this, yt, void 0), b(this, Y, void 0), b(this, ie, null), b(this, G, null), b(this, te, null), b(this, Se, null), b(this, Ke, 0), b(this, ze, 0), b(this, Ht, !1), b(this, Rr, /* @__PURE__ */ new Set()), b(this, Pr, /* @__PURE__ */ new Set()), b(this, Re, null), b(this, kn, Na(() => (m(Re, this, Et(a(Ke, this))), () => {
|
|
1657
|
-
m(Re, this, null);
|
|
1658
|
-
}))), m(ne, this, e), m(fe, this, t), m(yt, this, (i) => {
|
|
1659
|
-
var s = E;
|
|
1660
|
-
s.b = this, s.f |= 128, r(i);
|
|
1661
|
-
}), this.parent = E.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), m(Y, this, ui(() => {
|
|
1662
|
-
if (R) {
|
|
1663
|
-
const i = a(Ar, this);
|
|
1664
|
-
Wr();
|
|
1665
|
-
const s = i.data === "[!";
|
|
1666
|
-
if (i.data.startsWith("[?")) {
|
|
1667
|
-
const o = JSON.parse(i.data.slice(2));
|
|
1668
|
-
y(H, this, ja).call(this, o);
|
|
1669
|
-
} else s ? y(H, this, za).call(this) : y(H, this, Da).call(this);
|
|
1670
|
-
} else y(H, this, Ei).call(this);
|
|
1671
|
-
}, Wa)), R && m(ne, this, T);
|
|
1672
|
-
}
|
|
1673
|
-
defer_effect(e) {
|
|
1674
|
-
Bn(e, a(Rr, this), a(Pr, this));
|
|
1675
|
-
}
|
|
1676
|
-
is_rendered() {
|
|
1677
|
-
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
1678
|
-
}
|
|
1679
|
-
has_pending_snippet() {
|
|
1680
|
-
return !!a(fe, this).pending;
|
|
1681
|
-
}
|
|
1682
|
-
update_pending_count(e, t) {
|
|
1683
|
-
y(H, this, Si).call(this, e, t), m(Ke, this, a(Ke, this) + e), !(!a(Re, this) || a(Ht, this)) && (m(Ht, this, !0), Be(() => {
|
|
1684
|
-
m(Ht, this, !1), a(Re, this) && tr(a(Re, this), a(Ke, this));
|
|
1685
|
-
}));
|
|
1686
|
-
}
|
|
1687
|
-
get_effect_pending() {
|
|
1688
|
-
return a(kn, this).call(this), u(a(Re, this));
|
|
1689
|
-
}
|
|
1690
|
-
error(e) {
|
|
1691
|
-
if (!a(fe, this).onerror && !a(fe, this).failed) throw e;
|
|
1692
|
-
x?.is_fork ? (a(ie, this) && x.skip_effect(a(ie, this)), a(G, this) && x.skip_effect(a(G, this)), a(te, this) && x.skip_effect(a(te, this)), x.oncommit(() => {
|
|
1693
|
-
y(H, this, xn).call(this, e);
|
|
1694
|
-
})) : y(H, this, xn).call(this, e);
|
|
1695
|
-
}
|
|
1696
|
-
};
|
|
1697
|
-
function Da() {
|
|
1698
|
-
try {
|
|
1699
|
-
m(ie, this, me(() => a(yt, this).call(this, a(ne, this))));
|
|
1700
|
-
} catch (e) {
|
|
1701
|
-
this.error(e);
|
|
1702
|
-
}
|
|
1703
|
-
}
|
|
1704
|
-
function ja(e) {
|
|
1705
|
-
const t = a(fe, this).failed, { reset: r, invoke_onerror: n } = y(H, this, xi).call(this, e);
|
|
1706
|
-
Be(n), t && m(te, this, me(() => {
|
|
1707
|
-
t(a(ne, this), () => e, () => r);
|
|
1708
|
-
}));
|
|
1709
|
-
}
|
|
1710
|
-
function xi(e) {
|
|
1711
|
-
var t = !1, r = !1;
|
|
1712
|
-
const n = () => {
|
|
1713
|
-
if (t) {
|
|
1714
|
-
Ts();
|
|
1715
|
-
return;
|
|
1716
|
-
}
|
|
1717
|
-
t = !0, r && Fs(), a(te, this) !== null && St(a(te, this), () => {
|
|
1718
|
-
m(te, this, null);
|
|
1719
|
-
}), y(H, this, Vr).call(this, () => {
|
|
1720
|
-
y(H, this, Ei).call(this);
|
|
1721
|
-
});
|
|
1722
|
-
};
|
|
1723
|
-
return {
|
|
1724
|
-
reset: n,
|
|
1725
|
-
invoke_onerror: () => {
|
|
1726
|
-
try {
|
|
1727
|
-
r = !0, a(fe, this).onerror?.(e, n), r = !1;
|
|
1728
|
-
} catch (s) {
|
|
1729
|
-
ce(s, a(Y, this) && a(Y, this).parent);
|
|
1730
|
-
}
|
|
1731
|
-
}
|
|
1732
|
-
};
|
|
1733
|
-
}
|
|
1734
|
-
function za() {
|
|
1735
|
-
const e = a(fe, this).pending;
|
|
1736
|
-
e && (this.is_pending = !0, m(G, this, me(() => e(a(ne, this)))), Be(() => {
|
|
1737
|
-
var t = m(Se, this, document.createDocumentFragment()), r = we(), n = !1;
|
|
1738
|
-
if (t.append(r), m(ie, this, y(H, this, Vr).call(this, () => {
|
|
1739
|
-
try {
|
|
1740
|
-
return me(() => a(yt, this).call(this, r));
|
|
1741
|
-
} catch (i) {
|
|
1742
|
-
try {
|
|
1743
|
-
this.error(i), n = !0;
|
|
1744
|
-
} catch (s) {
|
|
1745
|
-
ce(s, a(Y, this).parent);
|
|
1746
|
-
}
|
|
1747
|
-
return null;
|
|
1748
|
-
}
|
|
1749
|
-
})), a(ie, this) === null) {
|
|
1750
|
-
m(Se, this, null), n && y(H, this, rr).call(this, x);
|
|
1751
|
-
return;
|
|
1752
|
-
}
|
|
1753
|
-
a(ze, this) === 0 && (a(ne, this).before(t), m(Se, this, null), St(a(G, this), () => {
|
|
1754
|
-
m(G, this, null);
|
|
1755
|
-
}), y(H, this, rr).call(this, x));
|
|
1756
|
-
}));
|
|
1757
|
-
}
|
|
1758
|
-
function Ei() {
|
|
1759
|
-
try {
|
|
1760
|
-
if (this.is_pending = this.has_pending_snippet(), m(ze, this, 0), m(Ke, this, 0), m(ie, this, me(() => {
|
|
1761
|
-
a(yt, this).call(this, a(ne, this));
|
|
1762
|
-
})), a(ze, this) > 0) {
|
|
1763
|
-
var e = m(Se, this, document.createDocumentFragment());
|
|
1764
|
-
_i(a(ie, this), e);
|
|
1765
|
-
const t = a(fe, this).pending;
|
|
1766
|
-
m(G, this, me(() => t(a(ne, this))));
|
|
1767
|
-
} else y(H, this, rr).call(this, x);
|
|
1768
|
-
} catch (t) {
|
|
1769
|
-
this.error(t);
|
|
1770
|
-
}
|
|
1771
|
-
}
|
|
1772
|
-
function rr(e) {
|
|
1773
|
-
this.is_pending = !1, e.transfer_effects(a(Rr, this), a(Pr, this));
|
|
1774
|
-
}
|
|
1775
|
-
function Vr(e) {
|
|
1776
|
-
var t = E, r = S, n = O;
|
|
1777
|
-
de(a(Y, this)), Z(a(Y, this)), rt(a(Y, this).ctx);
|
|
1778
|
-
try {
|
|
1779
|
-
return Ye.ensure(), e();
|
|
1780
|
-
} finally {
|
|
1781
|
-
de(t), Z(r), rt(n);
|
|
1782
|
-
}
|
|
1783
|
-
}
|
|
1784
|
-
function Si(e, t) {
|
|
1785
|
-
if (!this.has_pending_snippet()) {
|
|
1786
|
-
if (this.parent) {
|
|
1787
|
-
var r;
|
|
1788
|
-
y(H, r = this.parent, Si).call(r, e, t);
|
|
1789
|
-
}
|
|
1790
|
-
return;
|
|
1791
|
-
}
|
|
1792
|
-
m(ze, this, a(ze, this) + e), a(ze, this) === 0 && (y(H, this, rr).call(this, t), a(G, this) && St(a(G, this), () => {
|
|
1793
|
-
m(G, this, null);
|
|
1794
|
-
}), a(Se, this) && (a(ne, this).before(a(Se, this)), m(Se, this, null)));
|
|
1795
|
-
}
|
|
1796
|
-
function xn(e) {
|
|
1797
|
-
a(ie, this) && (F(a(ie, this)), m(ie, this, null)), a(G, this) && (F(a(G, this)), m(G, this, null)), a(te, this) && (F(a(te, this)), m(te, this, null)), R && (se(a(Ar, this)), As(), se(Wn()));
|
|
1798
|
-
let t = a(fe, this).failed;
|
|
1799
|
-
const r = (n) => {
|
|
1800
|
-
const { reset: i, invoke_onerror: s } = y(H, this, xi).call(this, n);
|
|
1801
|
-
s(), t && m(te, this, y(H, this, Vr).call(this, () => {
|
|
1802
|
-
try {
|
|
1803
|
-
return me(() => {
|
|
1804
|
-
var o = E;
|
|
1805
|
-
o.b = this, o.f |= 128, t(a(ne, this), () => n, () => i);
|
|
1806
|
-
});
|
|
1807
|
-
} catch (o) {
|
|
1808
|
-
return ce(o, a(Y, this).parent), null;
|
|
1809
|
-
}
|
|
1810
|
-
}));
|
|
1811
|
-
};
|
|
1812
|
-
Be(() => {
|
|
1813
|
-
var n;
|
|
1814
|
-
try {
|
|
1815
|
-
n = this.transform_error(e);
|
|
1816
|
-
} catch (i) {
|
|
1817
|
-
ce(i, a(Y, this) && a(Y, this).parent);
|
|
1818
|
-
return;
|
|
1819
|
-
}
|
|
1820
|
-
n !== null && typeof n == "object" && typeof n.then == "function" ? n.then(r, (i) => ce(i, a(Y, this) && a(Y, this).parent)) : r(n);
|
|
1821
|
-
});
|
|
1822
|
-
}
|
|
1823
|
-
var En = !0;
|
|
1824
|
-
function Ba(e, t) {
|
|
1825
|
-
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1826
|
-
r !== (e[jt] ?? (e[jt] = e.nodeValue)) && (e[jt] = r, e.nodeValue = `${r}`);
|
|
1827
|
-
}
|
|
1828
|
-
function Mi(e, t) {
|
|
1829
|
-
return Ti(e, t);
|
|
1830
|
-
}
|
|
1831
|
-
function Fa(e, t) {
|
|
1832
|
-
Sr(), t.intro = t.intro ?? !1;
|
|
1833
|
-
const r = t.target, n = R, i = T;
|
|
1834
|
-
try {
|
|
1835
|
-
for (var s = /* @__PURE__ */ Ue(r); s && (s.nodeType !== 8 || s.data !== "["); ) s = /* @__PURE__ */ ye(s);
|
|
1836
|
-
if (!s) throw tt;
|
|
1837
|
-
Je(!0), se(s);
|
|
1838
|
-
const o = Ti(e, {
|
|
1839
|
-
...t,
|
|
1840
|
-
anchor: s
|
|
1841
|
-
});
|
|
1842
|
-
return Je(!1), o;
|
|
1843
|
-
} catch (o) {
|
|
1844
|
-
if (o instanceof Error && o.message.split(`
|
|
1845
|
-
`).some((l) => l.startsWith("https://svelte.dev/e/"))) throw o;
|
|
1846
|
-
return o !== tt && console.warn("Failed to hydrate: ", o), t.recover === !1 && Ls(), Sr(), ua(r), Je(!1), Mi(e, t);
|
|
1847
|
-
} finally {
|
|
1848
|
-
Je(n), se(i);
|
|
1849
|
-
}
|
|
1850
|
-
}
|
|
1851
|
-
var Lt = /* @__PURE__ */ new Map();
|
|
1852
|
-
function Ti(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: o = !0, transformError: l }) {
|
|
1853
|
-
Sr();
|
|
1854
|
-
var h = void 0, v = ga(() => {
|
|
1855
|
-
var p = r ?? t.appendChild(we());
|
|
1856
|
-
Ha(p, { pending: () => {
|
|
1857
|
-
} }, (f) => {
|
|
1858
|
-
Dn({});
|
|
1859
|
-
var g = O;
|
|
1860
|
-
if (s && (g.c = s), i && (n.$$events = i), R && et(f, null), En = o, h = e(f, n) || Hr(), En = !0, R && (E.nodes.end = T, T === null || T.nodeType !== 8 || T.data !== "]"))
|
|
1861
|
-
throw ir(), tt;
|
|
1862
|
-
jn();
|
|
1863
|
-
}, l);
|
|
1864
|
-
var d = /* @__PURE__ */ new Set(), c = (f) => {
|
|
1865
|
-
for (var g = 0; g < f.length; g++) {
|
|
1866
|
-
var w = f[g];
|
|
1867
|
-
if (!d.has(w)) {
|
|
1868
|
-
d.add(w);
|
|
1869
|
-
var $ = Ca(w);
|
|
1870
|
-
for (const ve of [t, document]) {
|
|
1871
|
-
var C = Lt.get(ve);
|
|
1872
|
-
C === void 0 && (C = /* @__PURE__ */ new Map(), Lt.set(ve, C));
|
|
1873
|
-
var L = C.get(w);
|
|
1874
|
-
L === void 0 ? (ve.addEventListener(w, $n, { passive: $ }), C.set(w, 1)) : C.set(w, L + 1);
|
|
1875
|
-
}
|
|
1876
|
-
}
|
|
1877
|
-
}
|
|
1878
|
-
};
|
|
1879
|
-
return c(ds(ki)), Mr.add(c), () => {
|
|
1880
|
-
for (var f of d) for (const $ of [t, document]) {
|
|
1881
|
-
var g = Lt.get($), w = g.get(f);
|
|
1882
|
-
--w == 0 ? ($.removeEventListener(f, $n), g.delete(f), g.size === 0 && Lt.delete($)) : g.set(f, w);
|
|
1883
|
-
}
|
|
1884
|
-
Mr.delete(c), p !== r && p.parentNode?.removeChild(p);
|
|
1885
|
-
};
|
|
1886
|
-
});
|
|
1887
|
-
return Or.set(h, v), h;
|
|
1888
|
-
}
|
|
1889
|
-
var Or = /* @__PURE__ */ new WeakMap();
|
|
1890
|
-
function Ua(e, t) {
|
|
1891
|
-
const r = Or.get(e);
|
|
1892
|
-
return r ? (Or.delete(e), r(t)) : Promise.resolve();
|
|
1893
|
-
}
|
|
1894
|
-
var pe = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), vr = /* @__PURE__ */ new WeakMap(), Sn = /* @__PURE__ */ new WeakMap(), qa = class {
|
|
1895
|
-
constructor(e, t = !0) {
|
|
1896
|
-
A(this, "anchor", void 0), b(this, pe, /* @__PURE__ */ new Map()), b(this, ke, /* @__PURE__ */ new Map()), b(this, J, /* @__PURE__ */ new Map()), b(this, lt, /* @__PURE__ */ new Set()), b(this, hr, !0), b(this, vr, (r) => {
|
|
1897
|
-
if (a(pe, this).has(r)) {
|
|
1898
|
-
var n = a(pe, this).get(r), i = a(ke, this).get(n);
|
|
1899
|
-
if (i)
|
|
1900
|
-
wn(i), a(lt, this).delete(n);
|
|
1901
|
-
else {
|
|
1902
|
-
var s = a(J, this).get(n);
|
|
1903
|
-
s && (wn(s.effect), a(ke, this).set(n, s.effect), a(J, this).delete(n), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), i = s.effect);
|
|
1904
|
-
}
|
|
1905
|
-
for (const [o, l] of a(pe, this)) {
|
|
1906
|
-
if (a(pe, this).delete(o), o === r) break;
|
|
1907
|
-
const h = a(J, this).get(l);
|
|
1908
|
-
h && (F(h.effect), a(J, this).delete(l));
|
|
1909
|
-
}
|
|
1910
|
-
for (const [o, l] of a(ke, this)) {
|
|
1911
|
-
if (o === n || a(lt, this).has(o)) continue;
|
|
1912
|
-
const h = () => {
|
|
1913
|
-
if (Array.from(a(pe, this).values()).includes(o)) {
|
|
1914
|
-
var v = document.createDocumentFragment();
|
|
1915
|
-
_i(l, v), v.append(we()), a(J, this).set(o, {
|
|
1916
|
-
effect: l,
|
|
1917
|
-
fragment: v
|
|
1918
|
-
});
|
|
1919
|
-
} else F(l);
|
|
1920
|
-
a(lt, this).delete(o), a(ke, this).delete(o);
|
|
1921
|
-
};
|
|
1922
|
-
a(hr, this) || !i ? (a(lt, this).add(o), St(l, h, !1)) : h();
|
|
1923
|
-
}
|
|
1924
|
-
}
|
|
1925
|
-
}), b(this, Sn, (r) => {
|
|
1926
|
-
a(pe, this).delete(r);
|
|
1927
|
-
const n = Array.from(a(pe, this).values());
|
|
1928
|
-
for (const [i, s] of a(J, this)) n.includes(i) || (F(s.effect), a(J, this).delete(i));
|
|
1929
|
-
}), this.anchor = e, m(hr, this, t);
|
|
1930
|
-
}
|
|
1931
|
-
ensure(e, t) {
|
|
1932
|
-
var r = x, n = ca();
|
|
1933
|
-
if (t && !a(ke, this).has(e) && !a(J, this).has(e))
|
|
1934
|
-
if (n) {
|
|
1935
|
-
var i = document.createDocumentFragment(), s = we();
|
|
1936
|
-
i.append(s), a(J, this).set(e, {
|
|
1937
|
-
effect: me(() => t(s)),
|
|
1938
|
-
fragment: i
|
|
1939
|
-
});
|
|
1940
|
-
} else a(ke, this).set(e, me(() => t(this.anchor)));
|
|
1941
|
-
if (a(pe, this).set(r, e), n) {
|
|
1942
|
-
for (const [o, l] of a(ke, this)) o === e ? r.unskip_effect(l) : r.skip_effect(l);
|
|
1943
|
-
for (const [o, l] of a(J, this)) o === e ? r.unskip_effect(l.effect) : r.skip_effect(l.effect);
|
|
1944
|
-
r.oncommit(a(vr, this)), r.ondiscard(a(Sn, this));
|
|
1945
|
-
} else
|
|
1946
|
-
R && (this.anchor = T), a(vr, this).call(this, r);
|
|
1947
|
-
}
|
|
1948
|
-
};
|
|
1949
|
-
function Ya(e) {
|
|
1950
|
-
O === null && Os("onMount"), kt && O.l !== null ? Ga(O).m.push(e) : Ce(() => {
|
|
1951
|
-
const t = it(e);
|
|
1952
|
-
if (typeof t == "function") return t;
|
|
1953
|
-
});
|
|
1954
|
-
}
|
|
1955
|
-
function Ga(e) {
|
|
1956
|
-
var t = e.l;
|
|
1957
|
-
return t.u ?? (t.u = {
|
|
1958
|
-
a: [],
|
|
1959
|
-
b: [],
|
|
1960
|
-
m: []
|
|
1961
|
-
});
|
|
1962
|
-
}
|
|
1963
|
-
function Va(e, t, r = !1) {
|
|
1964
|
-
var n;
|
|
1965
|
-
R && (n = T, Wr());
|
|
1966
|
-
var i = new qa(e), s = r ? Nr : 0;
|
|
1967
|
-
function o(l, h) {
|
|
1968
|
-
if (R) {
|
|
1969
|
-
var v = Rs(n);
|
|
1970
|
-
if (l !== parseInt(v.substring(1))) {
|
|
1971
|
-
var p = Wn();
|
|
1972
|
-
se(p), i.anchor = p, Je(!1), i.ensure(l, h), Je(!0);
|
|
1973
|
-
return;
|
|
1974
|
-
}
|
|
1975
|
-
}
|
|
1976
|
-
i.ensure(l, h);
|
|
1977
|
-
}
|
|
1978
|
-
ui(() => {
|
|
1979
|
-
var l = !1;
|
|
1980
|
-
t((h, v = 0) => {
|
|
1981
|
-
l = !0, o(v, h);
|
|
1982
|
-
}), l || o(-1, null);
|
|
1983
|
-
}, s);
|
|
1984
|
-
}
|
|
1985
|
-
function Xa(e, t) {
|
|
1986
|
-
fi(() => {
|
|
1987
|
-
e = E?.parent?.nodes?.start ?? e;
|
|
1988
|
-
var r = e.getRootNode(), n = r.host ? r : r.head ?? r.ownerDocument.head;
|
|
1989
|
-
if (!n.querySelector("#" + t.hash)) {
|
|
1990
|
-
const i = Fr("style");
|
|
1991
|
-
i.id = t.hash, i.textContent = t.code, n.appendChild(i);
|
|
1992
|
-
}
|
|
1993
|
-
});
|
|
1994
|
-
}
|
|
1995
|
-
function Mn(e, t = !1) {
|
|
1996
|
-
var r = t ? " !important;" : ";", n = "";
|
|
1997
|
-
for (var i of Object.keys(e)) {
|
|
1998
|
-
var s = e[i];
|
|
1999
|
-
s != null && s !== "" && (n += " " + i + ": " + s + r);
|
|
2000
|
-
}
|
|
2001
|
-
return n;
|
|
2002
|
-
}
|
|
2003
|
-
function _r(e) {
|
|
2004
|
-
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
2005
|
-
}
|
|
2006
|
-
function Ka(e, t) {
|
|
2007
|
-
if (t) {
|
|
2008
|
-
var r = "", n, i;
|
|
2009
|
-
if (Array.isArray(t) ? (n = t[0], i = t[1]) : n = t, e) {
|
|
2010
|
-
e = String(e).replaceAll(/\/\*.*?\*\//g, "").trim();
|
|
2011
|
-
var s = !1, o = 0, l = !1, h = [];
|
|
2012
|
-
n && h.push(...Object.keys(n).map(_r)), i && h.push(...Object.keys(i).map(_r));
|
|
2013
|
-
var v = 0, p = -1;
|
|
2014
|
-
const w = e.length;
|
|
2015
|
-
for (var d = 0; d < w; d++) {
|
|
2016
|
-
var c = e[d];
|
|
2017
|
-
if (l ? c === "/" && e[d - 1] === "*" && (l = !1) : s ? s === c && (s = !1) : c === "/" && e[d + 1] === "*" ? l = !0 : c === '"' || c === "'" ? s = c : c === "(" ? o++ : c === ")" && o--, !l && s === !1 && o === 0) {
|
|
2018
|
-
if (c === ":" && p === -1) p = d;
|
|
2019
|
-
else if (c === ";" || d === w - 1) {
|
|
2020
|
-
if (p !== -1) {
|
|
2021
|
-
var f = _r(e.substring(v, p).trim());
|
|
2022
|
-
if (!h.includes(f)) {
|
|
2023
|
-
c !== ";" && d++;
|
|
2024
|
-
var g = e.substring(v, d).trim();
|
|
2025
|
-
r += " " + g + ";";
|
|
2026
|
-
}
|
|
2027
|
-
}
|
|
2028
|
-
v = d + 1, p = -1;
|
|
2029
|
-
}
|
|
2030
|
-
}
|
|
2031
|
-
}
|
|
2032
|
-
}
|
|
2033
|
-
return n && (r += Mn(n)), i && (r += Mn(i, !0)), r = r.trim(), r === "" ? null : r;
|
|
2034
|
-
}
|
|
2035
|
-
return e == null ? null : String(e);
|
|
2036
|
-
}
|
|
2037
|
-
function pr(e, t = {}, r, n) {
|
|
2038
|
-
for (var i in r) {
|
|
2039
|
-
var s = r[i];
|
|
2040
|
-
t[i] !== s && (r[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, s, n));
|
|
2041
|
-
}
|
|
2042
|
-
}
|
|
2043
|
-
function Za(e, t, r, n) {
|
|
2044
|
-
var i = e[br];
|
|
2045
|
-
if (R || i !== t) {
|
|
2046
|
-
var s = Ka(t, n);
|
|
2047
|
-
(!R || s !== e.getAttribute("style")) && (s == null ? e.removeAttribute("style") : e.style.cssText = s), e[br] = t;
|
|
2048
|
-
} else n && (Array.isArray(n) ? (pr(e, r?.[0], n[0]), pr(e, r?.[1], n[1], "important")) : pr(e, r, n));
|
|
2049
|
-
return n;
|
|
2050
|
-
}
|
|
2051
|
-
var Ja = /* @__PURE__ */ Symbol("is custom element"), Qa = /* @__PURE__ */ Symbol("is html"), eo = Ss ? "link" : "LINK";
|
|
2052
|
-
function ae(e, t, r, n) {
|
|
2053
|
-
var i = to(e);
|
|
2054
|
-
if (R && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === eo)) {
|
|
2055
|
-
n || void 0;
|
|
2056
|
-
return;
|
|
2057
|
-
}
|
|
2058
|
-
i[t] !== (i[t] = r) && (t === "loading" && (e[ks] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && ro(e).has(t) ? e[t] = r : e.setAttribute(t, r));
|
|
2059
|
-
}
|
|
2060
|
-
function to(e) {
|
|
2061
|
-
return e[mr] ?? (e[mr] = {
|
|
2062
|
-
[Ja]: e.nodeName.includes("-"),
|
|
2063
|
-
[Qa]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
2064
|
-
});
|
|
2065
|
-
}
|
|
2066
|
-
var Tn = /* @__PURE__ */ new Map();
|
|
2067
|
-
function ro(e) {
|
|
2068
|
-
var t = e.getAttribute("is") || e.nodeName, r = Tn.get(t);
|
|
2069
|
-
if (r) return r;
|
|
2070
|
-
Tn.set(t, r = /* @__PURE__ */ new Set());
|
|
2071
|
-
for (var n, i = e, s = Element.prototype; s !== i; ) {
|
|
2072
|
-
n = hs(i);
|
|
2073
|
-
for (var o in n) n[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && r.add(o);
|
|
2074
|
-
i = Pn(i);
|
|
2075
|
-
}
|
|
2076
|
-
return r;
|
|
2077
|
-
}
|
|
2078
|
-
var Ai, Ze = /* @__PURE__ */ new WeakMap(), nr = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), An = /* @__PURE__ */ new WeakSet(), Ri = class {
|
|
2079
|
-
constructor(e) {
|
|
2080
|
-
jr(this, An), b(this, Ze, /* @__PURE__ */ new WeakMap()), b(this, nr, void 0), b(this, gr, void 0), m(gr, this, e);
|
|
2081
|
-
}
|
|
2082
|
-
observe(e, t) {
|
|
2083
|
-
var r = a(Ze, this).get(e) || /* @__PURE__ */ new Set();
|
|
2084
|
-
return r.add(t), a(Ze, this).set(e, r), y(An, this, no).call(this).observe(e, a(gr, this)), () => {
|
|
2085
|
-
var n = a(Ze, this).get(e);
|
|
2086
|
-
n.delete(t), n.size === 0 && (a(Ze, this).delete(e), a(nr, this).unobserve(e));
|
|
2087
|
-
};
|
|
2088
|
-
}
|
|
2089
|
-
};
|
|
2090
|
-
Ai = Ri;
|
|
2091
|
-
function no() {
|
|
2092
|
-
return a(nr, this) ?? m(nr, this, new ResizeObserver((e) => {
|
|
2093
|
-
for (var t of e) {
|
|
2094
|
-
Ai.entries.set(t.target, t);
|
|
2095
|
-
for (var r of a(Ze, this).get(t.target) || []) r(t);
|
|
2096
|
-
}
|
|
2097
|
-
}));
|
|
2098
|
-
}
|
|
2099
|
-
A(Ri, "entries", /* @__PURE__ */ new WeakMap());
|
|
2100
|
-
function wr(e, t) {
|
|
2101
|
-
return e === t || e?.[ht] === t;
|
|
2102
|
-
}
|
|
2103
|
-
function io(e = Hr(), t, r, n) {
|
|
2104
|
-
var i = O.r, s = E;
|
|
2105
|
-
return fi(() => {
|
|
2106
|
-
var o, l;
|
|
2107
|
-
return Yr(() => {
|
|
2108
|
-
o = l, l = n?.() || [], it(() => {
|
|
2109
|
-
wr(r(...l), e) || (t(e, ...l), o && wr(r(...o), e) && t(null, ...o));
|
|
2110
|
-
});
|
|
2111
|
-
}), () => {
|
|
2112
|
-
let h = s;
|
|
2113
|
-
for (; h !== i && h.parent !== null && h.parent.f & 33554432; ) h = h.parent;
|
|
2114
|
-
const v = () => {
|
|
2115
|
-
l && wr(r(...l), e) && t(null, ...l);
|
|
2116
|
-
}, p = h.teardown;
|
|
2117
|
-
h.teardown = () => {
|
|
2118
|
-
v(), p?.();
|
|
2119
|
-
};
|
|
2120
|
-
};
|
|
2121
|
-
}), e;
|
|
2122
|
-
}
|
|
2123
|
-
var Dt = !1;
|
|
2124
|
-
function so(e) {
|
|
2125
|
-
var t = Dt;
|
|
2126
|
-
try {
|
|
2127
|
-
return Dt = !1, [e(), Dt];
|
|
2128
|
-
} finally {
|
|
2129
|
-
Dt = t;
|
|
2130
|
-
}
|
|
2131
|
-
}
|
|
2132
|
-
function Rn(e, t, r, n) {
|
|
2133
|
-
var i = !kt || (r & 2) !== 0, s = (r & 8) !== 0, o = (r & 16) !== 0, l = n, h = !0, v = void 0, p = () => o && i ? (v ?? (v = /* @__PURE__ */ wt(n)), u(v)) : (h && (h = !1, l = o ? it(n) : n), l);
|
|
2134
|
-
let d;
|
|
2135
|
-
if (s) {
|
|
2136
|
-
var c = ht in e || In in e;
|
|
2137
|
-
d = Le(e, t)?.set ?? (c && t in e ? (N) => e[t] = N : void 0);
|
|
2138
|
-
}
|
|
2139
|
-
var f, g = !1;
|
|
2140
|
-
s ? [f, g] = so(() => e[t]) : f = e[t], f === void 0 && n !== void 0 && (f = p(), d && (i && Ds(t), d(f)));
|
|
2141
|
-
var w;
|
|
2142
|
-
if (i ? w = () => {
|
|
2143
|
-
var N = e[t];
|
|
2144
|
-
return N === void 0 ? p() : (h = !0, N);
|
|
2145
|
-
} : w = () => {
|
|
2146
|
-
var N = e[t];
|
|
2147
|
-
return N !== void 0 && (l = void 0), N === void 0 ? l : N;
|
|
2148
|
-
}, i && (r & 4) === 0) return w;
|
|
2149
|
-
if (d) {
|
|
2150
|
-
var $ = e.$$legacy;
|
|
2151
|
-
return (function(N, _e) {
|
|
2152
|
-
return arguments.length > 0 ? ((!i || !_e || $ || g) && d(_e ? w() : N), N) : w();
|
|
2153
|
-
});
|
|
2154
|
-
}
|
|
2155
|
-
var C = !1, L = ((r & 1) !== 0 ? wt : Un)(() => (C = !1, w()));
|
|
2156
|
-
s && u(L);
|
|
2157
|
-
var ve = E;
|
|
2158
|
-
return (function(N, _e) {
|
|
2159
|
-
if (arguments.length > 0) {
|
|
2160
|
-
const $e = _e ? u(L) : i && s ? Ee(N) : N;
|
|
2161
|
-
return M(L, $e), C = !0, l !== void 0 && (l = $e), N;
|
|
2162
|
-
}
|
|
2163
|
-
return be && C || (ve.f & 16384) !== 0 ? L.v : u(L);
|
|
2164
|
-
});
|
|
2165
|
-
}
|
|
2166
|
-
function ao(e) {
|
|
2167
|
-
return new oo(e);
|
|
2168
|
-
}
|
|
2169
|
-
var Pe = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), oo = class {
|
|
2170
|
-
constructor(e) {
|
|
2171
|
-
b(this, Pe, void 0), b(this, oe, void 0);
|
|
2172
|
-
var t = /* @__PURE__ */ new Map(), r = (i, s) => {
|
|
2173
|
-
var o = /* @__PURE__ */ ia(s, !1, !1);
|
|
2174
|
-
return t.set(i, o), o;
|
|
2175
|
-
};
|
|
2176
|
-
const n = new Proxy({
|
|
2177
|
-
...e.props || {},
|
|
2178
|
-
$$events: {}
|
|
2179
|
-
}, {
|
|
2180
|
-
get(i, s) {
|
|
2181
|
-
return u(t.get(s) ?? r(s, Reflect.get(i, s)));
|
|
2182
|
-
},
|
|
2183
|
-
has(i, s) {
|
|
2184
|
-
return s === In ? !0 : (u(t.get(s) ?? r(s, Reflect.get(i, s))), Reflect.has(i, s));
|
|
2185
|
-
},
|
|
2186
|
-
set(i, s, o) {
|
|
2187
|
-
return M(t.get(s) ?? r(s, o), o), Reflect.set(i, s, o);
|
|
2188
|
-
}
|
|
2189
|
-
});
|
|
2190
|
-
m(oe, this, (e.hydrate ? Fa : Mi)(e.component, {
|
|
2191
|
-
target: e.target,
|
|
2192
|
-
anchor: e.anchor,
|
|
2193
|
-
props: n,
|
|
2194
|
-
context: e.context,
|
|
2195
|
-
intro: e.intro ?? !1,
|
|
2196
|
-
recover: e.recover,
|
|
2197
|
-
transformError: e.transformError
|
|
2198
|
-
})), !Me && (!e?.props?.$$host || e.sync === !1) && xr(), m(Pe, this, n.$$events);
|
|
2199
|
-
for (const i of Object.keys(a(oe, this)))
|
|
2200
|
-
i === "$set" || i === "$destroy" || i === "$on" || pt(this, i, {
|
|
2201
|
-
get() {
|
|
2202
|
-
return a(oe, this)[i];
|
|
2203
|
-
},
|
|
2204
|
-
set(s) {
|
|
2205
|
-
a(oe, this)[i] = s;
|
|
2206
|
-
},
|
|
2207
|
-
enumerable: !0
|
|
2208
|
-
});
|
|
2209
|
-
a(oe, this).$set = (i) => {
|
|
2210
|
-
Object.assign(n, i);
|
|
2211
|
-
}, a(oe, this).$destroy = () => {
|
|
2212
|
-
Ua(a(oe, this));
|
|
2213
|
-
};
|
|
2214
|
-
}
|
|
2215
|
-
$set(e) {
|
|
2216
|
-
a(oe, this).$set(e);
|
|
2217
|
-
}
|
|
2218
|
-
$on(e, t) {
|
|
2219
|
-
a(Pe, this)[e] = a(Pe, this)[e] || [];
|
|
2220
|
-
const r = (...n) => t.call(this, ...n);
|
|
2221
|
-
return a(Pe, this)[e].push(r), () => {
|
|
2222
|
-
a(Pe, this)[e] = a(Pe, this)[e].filter((n) => n !== r);
|
|
2223
|
-
};
|
|
2224
|
-
}
|
|
2225
|
-
$destroy() {
|
|
2226
|
-
a(oe, this).$destroy();
|
|
2227
|
-
}
|
|
2228
|
-
}, Pi;
|
|
2229
|
-
typeof HTMLElement == "function" && (Pi = class extends HTMLElement {
|
|
2230
|
-
constructor(e, t, r) {
|
|
2231
|
-
super(), A(this, "$$ctor", void 0), A(this, "$$s", void 0), A(this, "$$c", void 0), A(this, "$$cn", !1), A(this, "$$d", {}), A(this, "$$r", !1), A(this, "$$p_d", {}), A(this, "$$l", {}), A(this, "$$l_u", /* @__PURE__ */ new Map()), A(this, "$$me", void 0), A(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2232
|
-
}
|
|
2233
|
-
addEventListener(e, t, r) {
|
|
2234
|
-
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
2235
|
-
const n = this.$$c.$on(e, t);
|
|
2236
|
-
this.$$l_u.set(t, n);
|
|
2237
|
-
}
|
|
2238
|
-
super.addEventListener(e, t, r);
|
|
2239
|
-
}
|
|
2240
|
-
removeEventListener(e, t, r) {
|
|
2241
|
-
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
2242
|
-
const n = this.$$l_u.get(t);
|
|
2243
|
-
n && (n(), this.$$l_u.delete(t));
|
|
2244
|
-
}
|
|
2245
|
-
}
|
|
2246
|
-
async connectedCallback() {
|
|
2247
|
-
if (this.$$cn = !0, !this.$$c) {
|
|
2248
|
-
let e = function(n) {
|
|
2249
|
-
return (i) => {
|
|
2250
|
-
const s = Fr("slot");
|
|
2251
|
-
n !== "default" && (s.name = n), Tr(i, s);
|
|
2252
|
-
};
|
|
2253
|
-
};
|
|
2254
|
-
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2255
|
-
const t = {}, r = lo(this);
|
|
2256
|
-
for (const n of this.$$s) n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
|
|
2257
|
-
for (const n of this.attributes) {
|
|
2258
|
-
const i = this.$$g_p(n.name);
|
|
2259
|
-
i in this.$$d || (this.$$d[i] = Ft(i, n.value, this.$$p_d, "toProp"));
|
|
2260
|
-
}
|
|
2261
|
-
for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2262
|
-
this.$$c = ao({
|
|
2263
|
-
component: this.$$ctor,
|
|
2264
|
-
target: this.$$shadowRoot || this,
|
|
2265
|
-
props: {
|
|
2266
|
-
...this.$$d,
|
|
2267
|
-
$$slots: t,
|
|
2268
|
-
$$host: this
|
|
2269
|
-
}
|
|
2270
|
-
}), this.$$me = pa(() => {
|
|
2271
|
-
Yr(() => {
|
|
2272
|
-
this.$$r = !0;
|
|
2273
|
-
for (const n of qt(this.$$c)) {
|
|
2274
|
-
if (!this.$$p_d[n]?.reflect) continue;
|
|
2275
|
-
this.$$d[n] = this.$$c[n];
|
|
2276
|
-
const i = Ft(n, this.$$d[n], this.$$p_d, "toAttribute");
|
|
2277
|
-
i == null ? this.removeAttribute(this.$$p_d[n].attribute || n) : this.setAttribute(this.$$p_d[n].attribute || n, i);
|
|
2278
|
-
}
|
|
2279
|
-
this.$$r = !1;
|
|
2280
|
-
});
|
|
2281
|
-
});
|
|
2282
|
-
for (const n in this.$$l) for (const i of this.$$l[n]) {
|
|
2283
|
-
const s = this.$$c.$on(n, i);
|
|
2284
|
-
this.$$l_u.set(i, s);
|
|
2285
|
-
}
|
|
2286
|
-
this.$$l = {};
|
|
2287
|
-
}
|
|
2288
|
-
}
|
|
2289
|
-
attributeChangedCallback(e, t, r) {
|
|
2290
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ft(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2291
|
-
}
|
|
2292
|
-
disconnectedCallback() {
|
|
2293
|
-
this.$$cn = !1, Promise.resolve().then(() => {
|
|
2294
|
-
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$me(), this.$$c = void 0);
|
|
2295
|
-
});
|
|
2296
|
-
}
|
|
2297
|
-
$$g_p(e) {
|
|
2298
|
-
return qt(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
2299
|
-
}
|
|
2300
|
-
});
|
|
2301
|
-
function Ft(e, t, r, n) {
|
|
2302
|
-
const i = r[e]?.type;
|
|
2303
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e]) return t;
|
|
2304
|
-
if (n === "toAttribute") switch (i) {
|
|
2305
|
-
case "Object":
|
|
2306
|
-
case "Array":
|
|
2307
|
-
return t == null ? null : JSON.stringify(t);
|
|
2308
|
-
case "Boolean":
|
|
2309
|
-
return t ? "" : null;
|
|
2310
|
-
case "Number":
|
|
2311
|
-
return t ?? null;
|
|
2312
|
-
default:
|
|
2313
|
-
return t;
|
|
2314
|
-
}
|
|
2315
|
-
else switch (i) {
|
|
2316
|
-
case "Object":
|
|
2317
|
-
case "Array":
|
|
2318
|
-
return t && JSON.parse(t);
|
|
2319
|
-
case "Boolean":
|
|
2320
|
-
return t;
|
|
2321
|
-
case "Number":
|
|
2322
|
-
return t != null ? +t : t;
|
|
2323
|
-
default:
|
|
2324
|
-
return t;
|
|
2325
|
-
}
|
|
2326
|
-
}
|
|
2327
|
-
function lo(e) {
|
|
2328
|
-
const t = {};
|
|
2329
|
-
return e.childNodes.forEach((r) => {
|
|
2330
|
-
t[r.slot || "default"] = !0;
|
|
2331
|
-
}), t;
|
|
2332
|
-
}
|
|
2333
|
-
function fo(e, t, r, n, i, s) {
|
|
2334
|
-
let o = class extends Pi {
|
|
2335
|
-
constructor() {
|
|
2336
|
-
super(e, r, i), this.$$p_d = t;
|
|
2337
|
-
}
|
|
2338
|
-
static get observedAttributes() {
|
|
2339
|
-
return qt(t).map((l) => (t[l].attribute || l).toLowerCase());
|
|
2340
|
-
}
|
|
2341
|
-
};
|
|
2342
|
-
return qt(t).forEach((l) => {
|
|
2343
|
-
pt(o.prototype, l, {
|
|
2344
|
-
get() {
|
|
2345
|
-
return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
|
|
2346
|
-
},
|
|
2347
|
-
set(h) {
|
|
2348
|
-
h = Ft(l, h, t), this.$$d[l] = h;
|
|
2349
|
-
var v = this.$$c;
|
|
2350
|
-
v && (Le(v, l)?.get ? v[l] = h : v.$set({ [l]: h }));
|
|
2351
|
-
}
|
|
2352
|
-
});
|
|
2353
|
-
}), n.forEach((l) => {
|
|
2354
|
-
pt(o.prototype, l, { get() {
|
|
2355
|
-
return this.$$c?.[l];
|
|
2356
|
-
} });
|
|
2357
|
-
}), s && (o = s(o)), e.element = o, o;
|
|
2358
|
-
}
|
|
2359
|
-
var uo = /* @__PURE__ */ Aa('<div class="pie-sr-only svelte-a1a4bp" role="status" aria-live="polite" aria-atomic="true"> </div> <div class="pie-tool-line-reader svelte-a1a4bp" role="group" tabindex="0"><div class="pie-tool-line-reader__frame svelte-a1a4bp" aria-hidden="true"></div> <div class="pie-tool-line-reader__outline svelte-a1a4bp" aria-hidden="true"></div> <button type="button" class="pie-tool-line-reader__button pie-tool-line-reader__close svelte-a1a4bp"><svg width="12" height="12" viewBox="0 0 12 12" aria-hidden="true" focusable="false"><path d="M1 1 L11 11 M11 1 L1 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button> <button type="button" class="pie-tool-line-reader__resize-handle pie-tool-line-reader__resize-handle--pane svelte-a1a4bp"><svg width="14" height="8" viewBox="0 0 14 8" aria-hidden="true" focusable="false"><path d="M1 2.5 H13 M1 5.5 H13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button> <button type="button" class="pie-tool-line-reader__resize-handle pie-tool-line-reader__resize-handle--frame svelte-a1a4bp"><svg width="12" height="12" viewBox="0 0 12 12" aria-hidden="true" focusable="false"><path d="M11 4 L4 11 M11 8 L8 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button></div>', 1), co = {
|
|
2360
|
-
hash: "svelte-a1a4bp",
|
|
2361
|
-
code: `.pie-sr-only.svelte-a1a4bp {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;}.pie-tool-line-reader.svelte-a1a4bp {border:none;border-radius:4px;
|
|
1
|
+
import{coerceBooleanAttributes as Ps}from"@pie-players/pie-players-shared/ui/attribute-coercion";import{ZIndexLayer as Cs,connectToolRuntimeContext as Os,createToolCoordinatorRegistration as zs}from"@pie-players/pie-assessment-toolkit/tools/registration";import{DEFAULT_CONTAINMENT_GUTTER as Ns,OVERLAY_PLACEMENT_NUDGES as Wn,OVERLAY_PLACEMENT_ROTATIONS as Ws,clampPointWithinBlock as Is,createFocusReturn as Ds,createPointerDragController as Ls,createPointerGesture as Hs,dockUprightControls as Bs,resolveContainingBlockRect as Fs}from"@pie-players/pie-players-shared";import{resolveInterfaceI18n as js}from"@pie-players/pie-players-shared/i18n/provider";if(typeof window<"u"){var In,Dn;((In=(Dn=window).__svelte??(Dn.__svelte={})).v??(In.v=new Set)).add("5")}var Te={},L=Symbol("uninitialized"),Ln=Array.isArray,qs=Array.prototype.indexOf,xt=Array.prototype.includes,or=Array.from,ar=Object.keys,Et=Object.defineProperty,Fe=Object.getOwnPropertyDescriptor,Ys=Object.getOwnPropertyDescriptors,Gs=Object.prototype,Us=Array.prototype,Hn=Object.getPrototypeOf,Bn=Object.isExtensible,Vs=()=>{};function Ks(e){for(var t=0;t<e.length;t++)e[t]()}function Fn(){var e,t;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}}function Xs(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);const r=[];for(const n of e)if(r.push(n),r.length===t)break;return r}function Mt(e){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(e)}function Js(e,t){if(Mt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Mt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zs(e){var t=Js(e,"string");return Mt(t)=="symbol"?t:t+""}function z(e,t,r){return(t=Zs(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var re=1024,V=2048,Re=4096,Nr=8192,jn=16384,Wr=32768,Ir=1<<25,Dr=65536,at=1<<19,Qs=1<<20,St=1<<25,qn=1<<21,eo=1<<22,lr=1<<23,At=Symbol("$state"),Yn=Symbol("component"),Gn=Symbol("legacy props"),to=Symbol(""),Lr=Symbol("attributes"),Hr=Symbol("class"),Br=Symbol("style"),fr=Symbol("text"),Tt=new class extends Error{constructor(...t){super(...t),z(this,"name","StaleReactionError"),z(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},ro=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function no(){console.warn("https://svelte.dev/e/derived_inert")}function ur(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function io(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}var R=!1;function Ee(e){R=e}var P;function K(e){if(e===null)throw ur(),Te;return P=e}function cr(){return K(ge(P))}function je(e){if(R){if(ge(P)!==null)throw ur(),Te;P=e}}function so(e=1){if(R){for(var t=e,r=P;t--;)r=ge(r);P=r}}function hr(e=!0){for(var t=0,r=P;;){if(r.nodeType===8){var n=r.data;if(n==="]"){if(t===0)return r;t-=1}else(n==="["||n==="[!"||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=ge(r);e&&r.remove(),r=i}}function Fr(e){if(!e||e.nodeType!==8)throw ur(),Te;return e.data}function Un(e){return e===this.v}function oo(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Vn(e){return!oo(e,this.v)}function ao(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function lo(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function fo(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function uo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function co(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ho(e){throw new Error("https://svelte.dev/e/effect_orphan")}function vo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function po(){throw new Error("https://svelte.dev/e/hydration_failed")}function _o(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function go(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function bo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function wo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function mo(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}var Pe=!1,Rt=!1,I=null;function lt(e){I=e}function jr(e,t=!1,r){I={p:I,i:!1,c:null,e:null,s:e,x:null,r:M,l:Rt&&!t?{s:null,u:null,$:[]}:null}}function qr(e){var t=I,r=t.e;if(r!==null){t.e=null;for(var n of r)mi(n)}return e!==void 0&&(t.x=e),t.i=!0,I=t.p,Yr(e)}function Yr(e={}){return Et(e,Yn,{value:!0}),e}function Pt(){return!Rt||I!==null&&I.l===null}var qe=[];function Kn(){var e=qe;qe=[],Ks(e)}function Ce(e){if(qe.length===0&&!Nt){var t=qe;queueMicrotask(()=>{t===qe&&Kn()})}qe.push(e)}function yo(){for(;qe.length>0;)Kn()}var ko=~(V|Re|re);function D(e,t){e.f=e.f&ko|t}function Gr(e){(e.f&512)!==0||e.deps===null?D(e,re):D(e,Re)}function Xn(e,t){(e.f&2048)!==0?t.set(e,V):(e.f&4096)!==0&&t.get(e)!==2048&&t.set(e,Re),D(e,re)}function dr(e){var t=A,r=M;se(null),ye(null);try{return e()}finally{se(t),ye(r)}}function $o(e,t,r,n){const i=Pt()?Ct:Ur;var s=e.filter(p=>!p.settled),o=t.map(i);if(r.length===0&&s.length===0){n(o);return}var l=M,f=xo(),u=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(p=>p.promise)):null;function c(p){if((l.f&16384)===0){f();try{n([...o,...p])}catch(b){we(b,l)}vr()}}var d=Jn();if(r.length===0){u.then(()=>c([])).finally(d);return}function v(){Promise.all(r.map(p=>Eo(p))).then(c).catch(p=>we(p,l)).finally(d)}u?u.then(()=>{if((l.f&16384)!==0){d();return}f(),v(),vr()}):v()}function xo(){var e=M,t=A,r=I,n=S;return function(s=!0){ye(e),se(t),lt(r),s&&(e.f&16384)===0&&(n?.activate(),n?.apply())}}function vr(e=!0){ye(null),se(null),lt(null),e&&S?.deactivate()}function Jn(){var e=M,t=e.b,r=S,n=!!t?.is_rendered();return t?.update_pending_count(1,r),r.increment(n,e),()=>{t?.update_pending_count(-1,r),r.decrement(n,e)}}function Ct(e){var t=2|V;return M!==null&&(M.f|=at),{ctx:I,deps:null,effects:null,equals:Un,f:t,fn:e,reactions:null,rv:0,v:L,wv:0,parent:M,ac:null}}var Ot=Symbol("obsolete");function Eo(e,t,r){let n=M;n===null&&lo();var i=void 0,s=Ve(L),o=!A,l=new Set;return Bo(()=>{var f=M,u=Fn();i=u.promise;try{Promise.resolve(e()).then(u.resolve,p=>{p!==Tt&&u.reject(p)}).finally(vr)}catch(p){u.reject(p),vr()}var c=S;if(o){if((f.f&32768)!==0)var d=Jn();if(n.b?.is_rendered())c.async_deriveds.get(f)?.reject(Ot);else for(const p of l.values())p.reject(Ot);l.add(u),c.async_deriveds.set(f,u)}const v=(p,b=void 0)=>{d?.(),l.delete(u),b!==Ot&&(c.activate(),b?(s.f|=lr,ht(s,b)):((s.f&8388608)!==0&&(s.f^=lr),ht(s,p)),c.deactivate())};u.promise.then(v,p=>v(null,p||"unknown"))}),Do(()=>{for(const f of l)f.reject(Ot)}),new Promise(f=>{function u(c){function d(){c===i?f(s):u(i)}c.then(d,d)}u(i)})}function zt(e){const t=Ct(e);return Pe||Si(t),t}function Ur(e){const t=Ct(e);return t.equals=Vn,t}function Mo(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Y(t[r])}}function Vr(e){var t,r=M,n=e.parent;if(!Se&&n!==null&&e.v!==L&&(n.f&24576)!==0)return no(),e.v;ye(n);try{Mo(e),t=Ci(e)}finally{ye(r)}return t}function Zn(e){var t=Vr(e);if(!e.equals(t)&&(e.wv=Ri(),(!S?.is_fork||e.deps===null)&&(S!==null?(S.capture(e,t,!0),ut?.capture(e,t,!0)):e.v=t,e.deps===null))){D(e,re);return}Se||(q!==null?(on()||S?.is_fork)&&q.set(e,t):Gr(e))}function So(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&dr(()=>{t.ac.abort(Tt),t.ac=null}),t.fn!==null&&(t.teardown=Vs),qt(t,0),fn(t))}function Qn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&t.fn!==null&&dt(t)}function ei(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Kr(e,t){ei(e,t),t.add(e)}function E(e,t,r){ei(e,t),t.set(e,r)}function y(e,t,r){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function a(e,t){return e.get(y(e,t))}function x(e,t,r){return e.set(y(e,t),r),r}var ti,pr=null,ft=null,S=null,ut=null,q=null,Xr=null,Nt=!1,Jr=!1,Wt=null,_r=null,ri=0,Ao=1,gr=new WeakMap,br=new WeakMap,ct=new WeakMap,Ye=new WeakMap,It=new WeakMap,Ge=new WeakMap,Zr=new WeakMap,Oe=new WeakMap,ze=new WeakMap,wr=new WeakMap,Dt=new WeakMap,N=new WeakSet,Ue=class as{constructor(){Kr(this,N),z(this,"id",Ao++),z(this,"started",!1),z(this,"linked",!0),z(this,"prev",null),z(this,"next",null),z(this,"async_deriveds",new Map),z(this,"current",new Map),z(this,"previous",new Map),E(this,gr,new Set),E(this,br,new Set),E(this,ct,0),E(this,Ye,new Map),E(this,It,null),E(this,Ge,[]),E(this,Zr,[]),E(this,Oe,new Map),E(this,ze,new Map),E(this,wr,new Set),z(this,"is_fork",!1),E(this,Dt,!1),ft===null?pr=ft=this:(ft.next=this,this.prev=ft),ft=this}skip_effect(t){a(ze,this).has(t)||a(ze,this).set(t,{d:[],m:[]}),a(wr,this).delete(t)}unskip_effect(t,r=n=>this.schedule(n)){var n=a(ze,this).get(t);if(n){a(ze,this).delete(t);for(var i of n.d)D(i,V),r(i);for(i of n.m)D(i,Re),r(i)}a(wr,this).add(t)}capture(t,r,n=!1){t.v!==L&&!this.previous.has(t)&&this.previous.set(t,t.v),(t.f&8388608)===0&&(this.current.set(t,[r,n]),q?.set(t,r)),this.is_fork||(t.v=r)}activate(){S=this}deactivate(){S=null,q=null}flush(){try{Jr=!0,S=this,y(N,this,mr).call(this)}finally{ri=0,Xr=null,Wt=null,_r=null,Jr=!1,S=null,q=null,_e.clear()}}discard(){for(const t of a(br,this))t(this);a(br,this).clear();for(const t of this.async_deriveds.values())t.reject(Ot);y(N,this,yr).call(this),a(It,this)?.resolve()}register_created_effect(t){a(Zr,this).push(t)}increment(t,r){if(x(ct,this,a(ct,this)+1),t){let n=a(Ye,this).get(r)??0;a(Ye,this).set(r,n+1)}}decrement(t,r){if(x(ct,this,a(ct,this)-1),t){let n=a(Ye,this).get(r)??0;n===1?a(Ye,this).delete(r):a(Ye,this).set(r,n-1)}a(Dt,this)||(x(Dt,this,!0),Ce(()=>{x(Dt,this,!1),this.linked&&this.flush()}))}transfer_reactions(t){for(const[r,n]of t)this.add_dirty_reaction(r,n);t.clear()}add_dirty_reaction(t,r){(r===2048||a(Oe,this).get(t)!==2048)&&a(Oe,this).set(t,r)}oncommit(t){a(gr,this).add(t)}ondiscard(t){a(br,this).add(t)}settled(){return(a(It,this)??x(It,this,Fn())).promise}static ensure(){if(S===null){const t=S=new as;!Jr&&!Nt&&Ce(()=>{t.started||t.flush()})}return S}apply(){if(!Pe||!this.is_fork&&this.prev===null&&this.next===null){q=null;return}q=new Map;for(const[t,[r]]of this.current)q.set(t,r);for(let t=pr;t!==null;t=t.next)if(!(t===this||t.is_fork)&&(t.id>=this.id||!y(N,t,oi).call(t,this)))for(const[r,n]of t.previous)q.has(r)||q.set(r,n)}schedule(t){if(Xr=t,t.b?.is_pending&&(t.f&16777228)!==0&&(t.f&32768)===0){t.b.defer_effect(t);return}a(Ge,this).push(t)}};ti=Ue;function ni(){if(this.is_fork)return!0;for(const e of a(Ye,this).keys())if(!y(N,this,To).call(this,e))return!0;return!1}function To(e){for(var t=e;t!==null;t=t.parent)if(a(ze,this).has(t))return!0;return!1}function ii(){var e=[];for(const i of a(Ge,this))if(!((i.f&16384)!==0||(i.f&6144)===0)){for(var t=i,r=!1;t.parent!==null;){t=t.parent;var n=t.f;if((n&96)!==0){if((n&1024)===0){r=!0;break}t.f^=re}}r||e.push(t)}return x(Ge,this,[]),e}function mr(){this.started=!0;for(const[o,l]of a(Oe,this))D(o,l),this.schedule(o);this.apply();for(var e=Wt=[],t=[],r=_r=[];a(Ge,this).length>0;){ri++>1e3&&(y(N,this,yr).call(this),Oo());for(const o of y(N,this,ii).call(this))try{y(N,this,si).call(this,o,e,t)}catch(l){throw ui(o),y(N,this,ni).call(this)||this.discard(),l}}if(S=null,r.length>0){var n=ti.ensure();for(const o of r)n.schedule(o)}if(Wt=null,_r=null,y(N,this,ni).call(this)){y(N,this,Lt).call(this,t),y(N,this,Lt).call(this,e);for(const[o,l]of a(ze,this))fi(o,l);r.length>0&&y(N,S,mr).call(S);return}const i=y(N,this,Ro).call(this);if(i){y(N,this,Lt).call(this,t),y(N,this,Lt).call(this,e),y(N,i,Po).call(i,this);return}a(Oe,this).clear();for(const o of a(gr,this))o(this);a(gr,this).clear(),ut=this,ai(t),ai(e),ut=null,a(It,this)?.resolve();var s=S;a(ct,this)===0&&(a(Ge,this).length===0||s!==null)&&(y(N,this,yr).call(this),Pe&&(y(N,this,Co).call(this),S=s)),s!==null&&(_e.clear(),y(N,s,mr).call(s))}function si(e,t,r){e.f^=re;for(var n=e.first;n!==null;){var i=n.f,s=(i&96)!==0;if(!(s&&(i&1024)!==0||(i&8192)!==0||a(ze,this).has(n))&&n.fn!==null){s?n.f^=re:(i&4)!==0?t.push(n):Pe&&(i&16777224)!==0?r.push(n):jt(n)&&((i&16)!==0&&this.add_dirty_reaction(n,Re),dt(n));var o=n.first;if(o!==null){n=o;continue}}for(;n!==null;){var l=n.next;if(l!==null){n=l;break}n=n.parent}}}function Ro(){for(var e=this.prev;e!==null;e=e.prev)if(!e.is_fork&&y(N,this,oi).call(this,e))return e;return null}function oi(e){for(const[t,[,r]]of this.current)if(!r&&e.current.has(t))return!0;return!1}function Po(e){for(const[r,n]of e.current)!this.previous.has(r)&&e.previous.has(r)&&this.previous.set(r,e.previous.get(r)),this.current.set(r,n);for(const[r,n]of e.async_deriveds){const i=this.async_deriveds.get(r);i&&n.promise.then(i.resolve).catch(i.reject)}e.async_deriveds.clear(),this.transfer_reactions(a(Oe,e));const t=r=>{var n=r.reactions;if(n!==null&&!((r.f&2)!==0&&(r.f&6144)===0))for(const o of n){var i=o.f;if((i&2)!==0)t(o);else{var s=o;i&4194320&&!this.async_deriveds.has(s)&&(a(Oe,this).delete(s),D(s,V),this.schedule(s))}}};for(const r of this.current.keys())t(r);this.oncommit(()=>e.discard()),y(N,e,yr).call(e),S=this,y(N,this,mr).call(this)}function Lt(e){for(var t=0;t<e.length;t+=1)Xn(e[t],a(Oe,this))}function Co(){for(let c=pr;c!==null;c=c.next){var e=c.id<this.id,t=[];for(const[d,[v,p]]of this.current){if(c.current.has(d)){var r=c.current.get(d)[0];if(e&&v!==r)c.current.set(d,[v,p]);else continue}t.push(d)}if(e)for(const[d,v]of this.async_deriveds){const p=c.async_deriveds.get(d);p&&v.promise.then(p.resolve).catch(p.reject)}var n=[...c.current.keys()].filter(d=>!c.current.get(d)[1]);if(!(!c.started||n.length===0)){var i=n.filter(d=>!this.current.has(d));if(i.length===0)e&&c.discard();else if(t.length>0){if(e)for(const d of a(wr,this))c.unskip_effect(d,v=>{(v.f&4194320)!==0?c.schedule(v):y(N,c,Lt).call(c,[v])});c.activate();var s=new Set,o=new Map;for(var l of t)li(l,i,s,o);o=new Map;var f=[...c.current].filter(([d,v])=>{const p=this.current.get(d);return p?p[0]!==v[0]||p[1]!==v[1]:!0}).map(([d])=>d);if(f.length>0)for(const d of a(Zr,this))(d.f&155648)===0&&Qr(d,f,o)&&((d.f&4194320)!==0?(D(d,V),c.schedule(d)):c.add_dirty_reaction(d,V));if(a(Ge,c).length>0&&!a(Dt,c)){c.apply();for(var u of y(N,c,ii).call(c))y(N,c,si).call(c,u,[],[])}c.deactivate()}}}}function yr(){if(this.linked){var e=this.prev,t=this.next;e===null?pr=t:e.next=t,t===null?ft=e:t.prev=e,this.linked=!1}}function Me(e){var t=Nt,r=ut;ut=null,Nt=!0;try{var n;for(e&&(Me(),n=e());;){if(yo(),S===null)return n;S.flush()}}finally{Nt=t,ut=r}}function Oo(){try{vo()}catch(e){we(e,Xr)}}var pe=null;function ai(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&24576)===0&&jt(n)&&(pe=new Set,dt(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&$i(n),pe?.size>0)){_e.clear();for(const i of pe){if((i.f&24576)!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)pe.has(o)&&(pe.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const f=s[l];(f.f&24576)===0&&dt(f)}}pe.clear()}}pe=null}}function li(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&2)!==0?li(i,t,r,n):(s&4194320)!==0&&(s&2048)===0&&Qr(i,t,n)&&(D(i,V),en(i))}}function Qr(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(xt.call(t,i))return!0;if((i.f&2)!==0&&Qr(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function en(e){S.schedule(e)}function fi(e,t){if(!((e.f&32)!==0&&(e.f&1024)!==0)){(e.f&2048)!==0?t.d.push(e):(e.f&4096)!==0&&t.m.push(e),D(e,re);for(var r=e.first;r!==null;)fi(r,t),r=r.next}}function ui(e){D(e,re);for(var t=e.first;t!==null;)ui(t),t=t.next}var kr=new Set,_e=new Map,ci=!1;function Ve(e,t){return{f:0,v:e,reactions:null,equals:Un,rv:0,wv:0}}function H(e,t){const r=Ve(e,t);return Si(r),r}function hi(e,t=!1,r=!0){const n=Ve(e);if(t||(n.equals=Vn),Rt&&r&&I!==null&&I.l!==null){var i;((i=I.l).s??(i.s=[])).push(n)}return n}function C(e,t,r=!1){return A!==null&&(!le||(A.f&131072)!==0)&&Pt()&&(A.f&4325394)!==0&&(fe===null||!fe.has(e))&&wo(),ht(e,r?Ne(t):t,_r)}var Ke=null,tn=0;function ht(e,t,r=null){if(!e.equals(t)){Se?_e.set(e,t):_e.has(e)||_e.set(e,e.v);var n=Ue.ensure();if(n.capture(e,t),(e.f&2)!==0){const i=e;(e.f&2048)!==0&&Vr(i),q===null&&Gr(i)}e.wv=Ri(),Ke=null,tn=0,di(e,V,r),Ke=null,Pt()&&M!==null&&(M.f&1024)!==0&&(M.f&96)===0&&(oe===null?Yo([e]):oe.push(e)),!n.is_fork&&kr.size>0&&!ci&&zo()}return t}function zo(){ci=!1;for(const e of kr){(e.f&1024)!==0&&D(e,Re);let t;try{t=jt(e)}catch{t=!0}t&&dt(e)}kr.clear()}function Ht(e){C(e,e.v+1)}function di(e,t,r){var n=e.reactions;if(n!==null){var i=Pt(),s=n.length;if(tn+=s,tn>1e5&&Ke===null&&(Ke=new Set),Ke!==null){if(Ke.has(e))return;Ke.add(e)}for(var o=0;o<s;o++){var l=n[o],f=l.f;if(!(!i&&l===M)){var u=(f&V)===0;if(u&&D(l,t),(f&131072)!==0)kr.add(l);else if((f&2)!==0){var c=l;q?.delete(c),di(c,Re,r)}else if(u){var d=l;(f&16)!==0&&pe!==null&&pe.add(d),r!==null?r.push(d):en(d)}}}}}function Ne(e){if(typeof e!="object"||e===null||At in e||Yn in e)return e;const t=Hn(e);if(t!==Gs&&t!==Us)return e;var r=new Map,n=Ln(e),i=H(0),s=null,o=Qe,l=f=>{if(Qe===o)return f();var u=A,c=Qe;se(null),Ti(o);var d=f();return se(u),Ti(c),d};return n&&r.set("length",H(e.length,s)),new Proxy(e,{defineProperty(f,u,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&go();var d=r.get(u);return d===void 0?l(()=>{var v=H(c.value,s);return r.set(u,v),v}):C(d,c.value,!0),!0},deleteProperty(f,u){var c=r.get(u);if(c===void 0){if(u in f){const d=l(()=>H(L,s));r.set(u,d),Ht(i)}}else C(c,L),Ht(i);return!0},get(f,u,c){if(u===At)return e;var d=r.get(u),v=u in f;if(d===void 0&&(!v||Fe(f,u)?.writable)&&(d=l(()=>H(Ne(v?f[u]:L),s)),r.set(u,d)),d!==void 0){var p=h(d);return p===L?void 0:p}return Reflect.get(f,u,c)},getOwnPropertyDescriptor(f,u){this.has?.(f,u);var c=Reflect.getOwnPropertyDescriptor(f,u),d=r.get(u);if(d!==void 0){var v=h(d);if(v===L)return;if(c&&"value"in c)c.value=v;else return{enumerable:!0,configurable:!0,value:v,writable:!0}}return c},has(f,u){if(u===At)return!0;var c=r.get(u),d=c!==void 0&&c.v!==L||Reflect.has(f,u);return(c!==void 0||(M!==null||A!==null)&&(!d||Fe(f,u)?.writable))&&(c===void 0&&(c=l(()=>H(d?Ne(f[u]):L,s)),r.set(u,c)),h(c)===L)?!1:d},set(f,u,c,d){var v=r.get(u),p=u in f;if(n&&u==="length")for(var b=c;b<v.v;b+=1){var w=r.get(b+"");w!==void 0?C(w,L):b in f&&(w=l(()=>H(L,s)),r.set(b+"",w))}if(v===void 0)(!p||Fe(f,u)?.writable)&&(v=l(()=>H(void 0,s)),C(v,Ne(c)),r.set(u,v));else{p=v.v!==L;var _=l(()=>Ne(c));C(v,_)}var m=Reflect.getOwnPropertyDescriptor(f,u);if(m?.set&&m.set.call(d,c),!p){if(n&&typeof u=="string"){var k=r.get("length"),O=Number(u);Number.isInteger(O)&&O>=k.v&&C(k,O+1)}Ht(i)}return!0},ownKeys(f){h(i);var u=Reflect.ownKeys(f).filter(v=>{var p=r.get(v);return p===void 0||p.v!==L});for(var[c,d]of r)d.v!==L&&!(c in f)&&u.push(c);return u},setPrototypeOf(){bo()}})}var vi,pi,_i,gi;function rn(){if(vi===void 0){vi=window,pi=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;_i=Fe(t,"firstChild").get,gi=Fe(t,"nextSibling").get,Bn(e)&&(e[Hr]=void 0,e[Lr]=null,e[Br]=void 0,e.__e=void 0),Bn(r)&&(r[fr]=void 0)}}function ne(e=""){return document.createTextNode(e)}function We(e){return _i.call(e)}function ge(e){return gi.call(e)}function Xe(e,t){if(!R)return We(e);var r=We(P);if(r===null)r=P.appendChild(ne());else if(t&&r.nodeType!==3){var n=ne();return r?.before(n),K(n),n}return t&&sn(r),K(r),r}function $r(e,t=!1){if(!R){var r=We(e);return r instanceof Comment&&r.data===""?ge(r):r}if(t){if(P?.nodeType!==3){var n=ne();return P?.before(n),K(n),n}sn(P)}return P}function Bt(e,t=!1){if(!R)return We(e);var r=Xe(e,t);return je(e),r}function be(e,t=1,r=!1){let n=R?P:e;for(var i;t--;)i=n,n=ge(n);if(!R)return n;if(r){if(n?.nodeType!==3){var s=ne();return n===null?i?.after(s):n.before(s),K(s),s}sn(n)}return K(n),n}function bi(e){e.textContent=""}function wi(){return!Pe||pe!==null?!1:(M.f&Wr)!==0}function nn(e,t,r){return t==null||t==="http://www.w3.org/1999/xhtml"?r?document.createElement(e,{is:r}):document.createElement(e):r?document.createElementNS(t,e,{is:r}):document.createElementNS(t,e)}function sn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function No(e){var t=M;if(t===null)return A.f|=lr,e;if((t.f&32768)===0&&(t.f&4)===0)throw e;we(e,t)}function we(e,t){if(e===Te)throw e;if(!(t!==null&&(t.f&16384)!==0)){for(;t!==null;){if((t.f&128)!==0&&(t.f&33570816)===0){if((t.f&32768)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}}function Wo(e){M===null&&(A===null&&ho(e),co()),Se&&uo(e)}function Io(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function me(e,t){var r=M;r!==null&&(r.f&8192)!==0&&(e|=Nr);var n={ctx:I,deps:null,nodes:null,f:e|V|512,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};S?.register_created_effect(n);var i=n;if((e&4)!==0)Wt!==null?Wt.push(n):Ue.ensure().schedule(n);else if(t!==null){try{dt(n)}catch(o){throw Y(n),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&524288)===0&&(i=i.first,(e&16)!==0&&(e&65536)!==0&&i!==null&&(i.f|=Dr))}if(i!==null&&(i.parent=r,r!==null&&Io(i,r),A!==null&&(A.f&2)!==0&&(e&64)===0)){var s=A;(s.effects??(s.effects=[])).push(i)}return n}function on(){return A!==null&&!le}function Do(e){const t=me(8,null);return D(t,re),t.teardown=e,t}function Ie(e){Wo("$effect");var t=M.f;if(!A&&(t&32)!==0&&I!==null&&!I.i){var r=I;(r.e??(r.e=[])).push(e)}else return mi(e)}function mi(e){return me(4|Qs,e)}function Lo(e){Ue.ensure();const t=me(64|at,e);return()=>{Y(t)}}function Ho(e){Ue.ensure();const t=me(64|at,e);return(r={})=>new Promise(n=>{r.outro?Je(t,()=>{Y(t),n(void 0)}):(Y(t),n(void 0))})}function yi(e){return me(4,e)}function Bo(e){return me(eo|at,e)}function an(e,t=0){return me(8|t,e)}function Ft(e,t=[],r=[],n=[]){$o(n,t,r,i=>{me(8,()=>{e(...i.map(h))})})}function ln(e,t=0){return me(16|t,e)}function ie(e){return me(32|at,e)}function ki(e){var t=e.teardown;if(t!==null){const r=Se,n=A;Mi(!0),se(null);try{t.call(null)}catch(i){we(i,e.parent)}finally{Mi(r),se(n)}}}function fn(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&dr(()=>{i.abort(Tt)});var n=r.next;(r.f&64)!==0?r.parent=null:Y(r,t),r=n}}function Fo(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&32)===0&&Y(t),t=r}}function Y(e,t=!0){var r=!1;(t||(e.f&262144)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(jo(e.nodes.start,e.nodes.end),r=!0),e.f|=Ir,fn(e,t&&!r),qt(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();ki(e),e.f^=Ir,e.f|=jn;var i=e.parent;i!==null&&i.first!==null&&$i(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function jo(e,t){for(;e!==null;){var r=e===t?null:ge(e);e.remove(),e=r}}function $i(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Je(e,t,r=!0){var n=[];e.f|=256,xi(e,n,!0);var i=()=>{r&&Y(e),t&&t()},s=n.length;if(s>0){var o=()=>--s||i();for(var l of n)l.out(o)}else i()}function xi(e,t,r){if((e.f&8192)===0){e.f^=Nr;var n=e.nodes&&e.nodes.t;if(n!==null)for(const l of n)(l.is_global||r)&&t.push(l);for(var i=e.first;i!==null;){var s=i.next;if((i.f&64)===0){var o=(i.f&65536)!==0||(i.f&32)!==0&&(e.f&16)!==0;xi(i,t,o?r:!1)}i=s}}}function xr(e){e.f&=-257,Ei(e,!0)}function Ei(e,t){if((e.f&256)===0&&(e.f&8192)!==0){e.f^=Nr,(e.f&1024)===0&&(D(e,V),Ue.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&65536)!==0||(r.f&32)!==0;Ei(r,i?t:!1),r=n}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function un(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:ge(r);t.append(r),r=i}}var qo=null,Se=!1;function Mi(e){Se=e}var A=null,le=!1;function se(e){A=e}var M=null;function ye(e){M=e}var fe=null;function Si(e){A!==null&&(!Pe&&(A.f&2097152)!==0||(A.f&2)!==0)&&(fe??(fe=new Set)).add(e)}var X=null,Z=0,oe=null;function Yo(e){oe=e}var Ai=1,Ze=0,Qe=Ze;function Ti(e){Qe=e}function Ri(){return++Ai}function jt(e){var t=e.f;if((t&2048)!==0)return!0;if((t&4096)!==0){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(jt(s)&&Zn(s),s.wv>e.wv)return!0}(t&512)!==0&&q===null&&D(e,re)}return!1}function Pi(e,t,r=!0){var n=e.reactions;if(n!==null&&!(!Pe&&fe!==null&&fe.has(e)))for(var i=0;i<n.length;i++){var s=n[i];(s.f&2)!==0?Pi(s,t,!1):t===s&&(r?D(s,V):(s.f&1024)!==0&&D(s,Re),en(s))}}function Ci(e){var t=X,r=Z,n=oe,i=A,s=fe,o=I,l=le,f=Qe,u=e.f;X=null,Z=0,oe=null,A=(u&96)===0?e:null,fe=null,lt(e.ctx),le=!1,Qe=++Ze,e.ac!==null&&(dr(()=>{e.ac.abort(Tt)}),e.ac=null);try{e.f|=qn;var c=e.fn,d=c();e.f|=Wr;var v=Oi(e);if(Pt()&&oe!==null&&!le&&v!==null&&(e.f&6146)===0)for(var p=0;p<oe.length;p++)Pi(oe[p],e);if(i!==null&&i!==e){if(Ze++,i.deps!==null)for(let b=0;b<r;b+=1)i.deps[b].rv=Ze;if(t!==null)for(const b of t)b.rv=Ze;oe!==null&&(n===null?n=oe:n.push(...oe))}return(e.f&8388608)!==0&&(e.f^=lr),d}catch(b){return Oi(e),No(b)}finally{e.f^=qn,X=t,Z=r,oe=n,A=i,fe=s,lt(o),le=l,Qe=f}}function Oi(e){var t=e.deps,r=S?.is_fork;if(X!==null){var n;if(r||qt(e,Z),t!==null&&Z>0)for(t.length=Z+X.length,n=0;n<X.length;n++)t[Z+n]=X[n];else e.deps=t=X;if(on()&&(e.f&512)!==0)for(n=Z;n<t.length;n++){var i;((i=t[n]).reactions??(i.reactions=[])).push(e)}}else!r&&t!==null&&Z<t.length&&(qt(e,Z),t.length=Z);return t}function Go(e,t){let r=t.reactions;if(r!==null){var n=qs.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&(t.f&2)!==0&&(X===null||!xt.call(X,t))){var s=t;(s.f&512)!==0&&(s.f^=512),s.v!==L&&Gr(s),s.ac!==null&&dr(()=>{s.ac.abort(Tt),s.ac=null,D(s,V)}),So(s),qt(s,0)}}function qt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Go(e,r[n])}function dt(e){var t=e.f;if((t&16384)===0){D(e,re);var r=M;M=e;try{(t&16777232)!==0?Fo(e):fn(e),ki(e);var n=Ci(e);e.teardown=typeof n=="function"?n:null,e.wv=Ai}finally{M=r}}}function h(e){var t=(e.f&2)!==0;if(qo?.add(e),A!==null&&!le&&!(M!==null&&(M.f&16384)!==0)&&(fe===null||!fe.has(e))){var r=A.deps;if((A.f&2097152)!==0)e.rv<Ze&&(e.rv=Ze,X===null&&r!==null&&r[Z]===e?Z++:X===null?X=[e]:X.push(e));else{var n;(n=A).deps??(n.deps=[]),xt.call(A.deps,e)||A.deps.push(e);var i=e.reactions;i===null?e.reactions=[A]:xt.call(i,A)||i.push(A)}}if(Se&&_e.has(e))return _e.get(e);if(t){var s=e;if(Se){var o=s.v;return((s.f&1024)===0&&s.reactions!==null||Ni(s))&&(o=Vr(s)),_e.set(s,o),o}var l=(s.f&512)===0&&!le&&A!==null&&(A.f&512)!==0,f=(s.f&Wr)===0;jt(s)&&(l&&(s.f|=512),Zn(s)),l&&!f&&(Qn(s),zi(s))}if(q?.has(e))return q.get(e);if((e.f&8388608)!==0)throw e.v;return e.v}function zi(e){if(e.f|=512,e.deps!==null)for(const r of e.deps){var t=r.reactions;t===null?r.reactions=[e]:xt.call(t,e)||t.push(e),(r.f&2)!==0&&(r.f&512)===0&&(Qn(r),zi(r))}}function Ni(e){if(e.v===L)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(_e.has(t)||(t.f&2)!==0&&Ni(t))return!0;return!1}function vt(e){var t=le;try{return le=!0,e()}finally{le=t}}var pt=Symbol("events"),Wi=new Set,cn=new Set;function ke(e,t,r){(t[pt]??(t[pt]={}))[e]=r}function Ii(e){for(var t=0;t<e.length;t++)Wi.add(e[t]);for(var r of cn)r(e)}var hn=null,dn=!1;function Di(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;hn=e,dn||(dn=!0,setTimeout(()=>{dn=!1,hn=null}));var o=0,l=hn===e&&e[pt];if(l){var f=i.indexOf(l);if(f!==-1&&(t===document||t===window)){e[pt]=t;return}var u=i.indexOf(t);if(u===-1)return;f<=u&&(o=f)}if(s=i[o]||e.target,s!==t){Et(e,"currentTarget",{configurable:!0,get(){return s||r}});var c=A,d=M;se(null),ye(null);try{for(var v,p=[];s!==null&&s!==t;){try{var b=s[pt]?.[n];b!=null&&(!s.disabled||e.target===s)&&b.call(s,e)}catch(w){v?p.push(w):v=w}if(e.cancelBubble)break;o++,s=o<i.length?i[o]:null}if(v){for(let w of p)queueMicrotask(()=>{throw w});throw v}}finally{e[pt]=t,delete e.currentTarget,se(c),ye(d)}}}var Uo=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Vo(e){return Uo?.createHTML(e)??e}function Ko(e){var t=nn("template");return t.innerHTML=Vo(e.replaceAll("<!>","<!---->")),t.content}function _t(e,t){var r=M;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Yt(e,t){var r=(t&1)!==0,n=(t&2)!==0,i,s=!e.startsWith("<!>");return()=>{if(R)return _t(P,null),P;i===void 0&&(i=Ko(s?e:"<!>"+e),r||(i=We(i)));var o=n||pi?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=We(o),f=o.lastChild;_t(l,f)}else _t(o,o);return o}}function Xo(){if(R)return _t(P,null),P;var e=document.createDocumentFragment(),t=document.createComment(""),r=ne();return e.append(t,r),_t(t,r),e}function De(e,t){if(R){var r=M;((r.f&32768)===0||r.nodes.end===null)&&(r.nodes.end=P),cr();return}e!==null&&e.before(t)}var Jo=["touchstart","touchmove"];function Zo(e){return Jo.includes(e)}function Qo(e){let t=0,r=Ve(0),n;return()=>{on()&&(h(r),an(()=>(t===0&&(n=vt(()=>e(()=>Ht(r)))),t+=1,()=>{Ce(()=>{t-=1,t===0&&(n?.(),n=void 0,Ht(r))})})))}}var ea=Dr|at;function ta(e,t,r,n){new ra(e,t,r,n)}var ue=new WeakMap,vn=new WeakMap,$e=new WeakMap,Gt=new WeakMap,J=new WeakMap,ce=new WeakMap,Q=new WeakMap,he=new WeakMap,Le=new WeakMap,gt=new WeakMap,et=new WeakMap,Er=new WeakMap,pn=new WeakMap,tt=new WeakMap,Li=new WeakMap,W=new WeakSet,ra=class{constructor(e,t,r,n){Kr(this,W),z(this,"parent",void 0),z(this,"is_pending",!1),z(this,"transform_error",void 0),E(this,ue,void 0),E(this,vn,R?P:null),E(this,$e,void 0),E(this,Gt,void 0),E(this,J,void 0),E(this,ce,null),E(this,Q,null),E(this,he,null),E(this,Le,null),E(this,gt,0),E(this,et,0),E(this,Er,!1),E(this,pn,new Map),E(this,tt,null),E(this,Li,Qo(()=>(x(tt,this,Ve(a(gt,this))),()=>{x(tt,this,null)}))),x(ue,this,e),x($e,this,t),x(Gt,this,i=>{var s=M;s.b=this,s.f|=128,r(i)}),this.parent=M.b,this.transform_error=n??this.parent?.transform_error??(i=>i),x(J,this,ln(()=>{if(R){const i=Fr(a(vn,this));cr();const s=i==="[!";if(i.startsWith("[?")){const o=JSON.parse(i.slice(2));y(W,this,ia).call(this,o)}else s?y(W,this,sa).call(this):y(W,this,na).call(this)}else y(W,this,Bi).call(this)},ea)),R&&x(ue,this,P)}defer_effect(e){Xn(e,a(pn,this))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!a($e,this).pending}update_pending_count(e,t){y(W,this,Fi).call(this,e,t),x(gt,this,a(gt,this)+e),!(!a(tt,this)||a(Er,this))&&(x(Er,this,!0),Ce(()=>{x(Er,this,!1),a(tt,this)&&ht(a(tt,this),a(gt,this))}))}get_effect_pending(){return a(Li,this).call(this),h(a(tt,this))}error(e){if(e===Te||!a($e,this).onerror&&!a($e,this).failed)throw e;S?.is_fork?(a(ce,this)&&S.skip_effect(a(ce,this)),a(Q,this)&&S.skip_effect(a(Q,this)),a(he,this)&&S.skip_effect(a(he,this)),S.oncommit(()=>{y(W,this,rt).call(this)||y(W,this,ji).call(this,e)})):y(W,this,ji).call(this,e)}};function na(){try{x(ce,this,ie(()=>a(Gt,this).call(this,a(ue,this))))}catch(e){this.error(e)}}function ia(e){const t=a($e,this).failed,{reset:r,invoke_onerror:n}=y(W,this,Hi).call(this,e);Ce(n),t&&x(he,this,ie(()=>{t(a(ue,this),()=>e,()=>r)}))}function Hi(e){var t=!1,r=!1;const n=()=>{if(!y(W,this,rt).call(this)){if(t){io();return}t=!0,r&&mo(),a(he,this)!==null&&Je(a(he,this),()=>{x(he,this,null)}),y(W,this,_n).call(this,()=>{y(W,this,Bi).call(this)})}};return{reset:n,invoke_onerror:()=>{if(!y(W,this,rt).call(this))try{r=!0,a($e,this).onerror?.(e,n),r=!1}catch(s){we(s,a(J,this)&&a(J,this).parent)}}}}function rt(){return(a(J,this).f&(jn|Ir))!==0}function sa(){const e=a($e,this).pending;e&&(this.is_pending=!0,x(Q,this,ie(()=>e(a(ue,this)))),Ce(()=>{if(!y(W,this,rt).call(this)){var t=x(Le,this,document.createDocumentFragment()),r=ne(),n=!1;if(t.append(r),x(ce,this,y(W,this,_n).call(this,()=>{try{return ie(()=>a(Gt,this).call(this,r))}catch(i){try{this.error(i),n=!0}catch(s){we(s,a(J,this).parent)}return null}})),a(ce,this)===null){x(Le,this,null),n&&y(W,this,Mr).call(this,S);return}a(et,this)===0&&(a(ue,this).before(t),x(Le,this,null),Je(a(Q,this),()=>{x(Q,this,null)}),y(W,this,Mr).call(this,S))}}))}function Bi(){try{if(this.is_pending=this.has_pending_snippet(),x(et,this,0),x(gt,this,0),x(ce,this,ie(()=>{a(Gt,this).call(this,a(ue,this))})),a(et,this)>0){var e=x(Le,this,document.createDocumentFragment());un(a(ce,this),e);const t=a($e,this).pending;x(Q,this,ie(()=>t(a(ue,this))))}else y(W,this,Mr).call(this,S)}catch(t){this.error(t)}}function Mr(e){this.is_pending=!1,e.transfer_reactions(a(pn,this))}function _n(e){var t=M,r=A,n=I;ye(a(J,this)),se(a(J,this)),lt(a(J,this).ctx);try{return Ue.ensure(),e()}finally{ye(t),se(r),lt(n)}}function Fi(e,t){if(!this.has_pending_snippet()){if(this.parent){var r;y(W,r=this.parent,Fi).call(r,e,t)}return}x(et,this,a(et,this)+e),a(et,this)===0&&(y(W,this,Mr).call(this,t),a(Q,this)&&Je(a(Q,this),()=>{x(Q,this,null)}),a(Le,this)&&(a(ue,this).before(a(Le,this)),x(Le,this,null)))}function ji(e){a(ce,this)&&(Y(a(ce,this)),x(ce,this,null)),a(Q,this)&&(Y(a(Q,this)),x(Q,this,null)),a(he,this)&&(Y(a(he,this)),x(he,this,null)),R&&(K(a(vn,this)),so(),K(hr()));let t=a($e,this).failed;const r=n=>{if(y(W,this,rt).call(this))return;const{reset:i,invoke_onerror:s}=y(W,this,Hi).call(this,n);s(),t&&!y(W,this,rt).call(this)&&x(he,this,y(W,this,_n).call(this,()=>{try{return ie(()=>{var o=M;o.b=this,o.f|=128,t(a(ue,this),()=>n,()=>i)})}catch(o){return we(o,a(J,this).parent),null}}))};Ce(()=>{if(!y(W,this,rt).call(this)){var n;try{n=this.transform_error(e)}catch(i){we(i,a(J,this)&&a(J,this).parent);return}n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(r,i=>we(i,a(J,this)&&a(J,this).parent)):r(n)}})}function Ut(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e[fr]??(e[fr]=e.nodeValue))&&(e[fr]=r,e.nodeValue=`${r}`)}function qi(e,t){return Yi(e,t)}function oa(e,t){rn(),t.intro=t.intro??!1;const r=t.target,n=R,i=P;try{for(var s=We(r);s&&(s.nodeType!==8||s.data!=="[");)s=ge(s);if(!s)throw Te;Ee(!0),K(s);const o=Yi(e,{...t,anchor:s});return Ee(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==Te&&console.warn("Failed to hydrate: ",o),t.recover===!1&&po(),rn(),bi(r),Ee(!1),qi(e,t)}finally{Ee(n),K(i)}}var Sr=new Map;function Yi(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0,transformError:l}){rn();var f=void 0,u=Ho(()=>{var c=r??t.appendChild(ne());ta(c,{pending:()=>{}},p=>{jr({});var b=I;if(s&&(b.c=s),i&&(n.$$events=i),R&&_t(p,null),f=e(p,n)||Yr(),R&&(M.nodes.end=P,P===null||P.nodeType!==8||P.data!=="]"))throw ur(),Te;qr()},l);var d=new Set,v=p=>{for(var b=0;b<p.length;b++){var w=p[b];if(!d.has(w)){d.add(w);var _=Zo(w);for(const O of[t,document]){var m=Sr.get(O);m===void 0&&(m=new Map,Sr.set(O,m));var k=m.get(w);k===void 0?(O.addEventListener(w,Di,{passive:_}),m.set(w,1)):m.set(w,k+1)}}}};return v(or(Wi)),cn.add(v),()=>{for(var p of d)for(const _ of[t,document]){var b=Sr.get(_),w=b.get(p);--w==0?(_.removeEventListener(p,Di),b.delete(p),b.size===0&&Sr.delete(_)):b.set(p,w)}cn.delete(v),c!==r&&c.parentNode?.removeChild(c)}});return gn.set(f,u),f}var gn=new WeakMap;function aa(e,t){const r=gn.get(e);return r?(gn.delete(e),r(t)):Promise.resolve()}var Ae=new WeakMap,He=new WeakMap,de=new WeakMap,Vt=new WeakMap,bn=new WeakMap,wn=new WeakMap,Gi=new WeakMap,la=class{constructor(e,t=!0){z(this,"anchor",void 0),E(this,Ae,new Map),E(this,He,new Map),E(this,de,new Map),E(this,Vt,new Set),E(this,bn,!0),E(this,wn,r=>{if(a(Ae,this).has(r)){var n=a(Ae,this).get(r),i=a(He,this).get(n);if(i)xr(i),a(Vt,this).delete(n);else{var s=a(de,this).get(n);s&&(xr(s.effect),a(He,this).set(n,s.effect),a(de,this).delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),i=s.effect)}for(const[o,l]of a(Ae,this)){if(a(Ae,this).delete(o),o===r)break;const f=a(de,this).get(l);f&&(Y(f.effect),a(de,this).delete(l))}for(const[o,l]of a(He,this)){if(o===n||a(Vt,this).has(o))continue;const f=()=>{if(Array.from(a(Ae,this).values()).includes(o)){var u=document.createDocumentFragment();un(l,u),u.append(ne()),a(de,this).set(o,{effect:l,fragment:u})}else Y(l);a(Vt,this).delete(o),a(He,this).delete(o)};a(bn,this)||!i?(a(Vt,this).add(o),Je(l,f,!1)):f()}}}),E(this,Gi,r=>{a(Ae,this).delete(r);const n=Array.from(a(Ae,this).values());for(const[i,s]of a(de,this))n.includes(i)||(Y(s.effect),a(de,this).delete(i))}),this.anchor=e,x(bn,this,t)}ensure(e,t){var r=S,n=wi();if(t&&!a(He,this).has(e)&&!a(de,this).has(e))if(n){var i=document.createDocumentFragment(),s=ne();i.append(s),a(de,this).set(e,{effect:ie(()=>t(s)),fragment:i})}else a(He,this).set(e,ie(()=>t(this.anchor)));if(a(Ae,this).set(r,e),n){for(const[o,l]of a(He,this))o===e?r.unskip_effect(l):r.skip_effect(l);for(const[o,l]of a(de,this))o===e?r.unskip_effect(l.effect):r.skip_effect(l.effect);r.oncommit(a(wn,this)),r.ondiscard(a(Gi,this))}else R&&(this.anchor=P),a(wn,this).call(this,r)}};function fa(e){I===null&&ao("onMount"),Rt&&I.l!==null?ua(I).m.push(e):Ie(()=>{const t=vt(e);if(typeof t=="function")return t})}function ua(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function Ui(e,t,r=!1){var n;R&&(n=P,cr());var i=new la(e),s=r?Dr:0;function o(l,f){if(R){var u=Fr(n);if(l!==parseInt(u.substring(1))){var c=hr();K(c),i.anchor=c,Ee(!1),i.ensure(l,f),Ee(!0);return}}i.ensure(l,f)}ln(()=>{var l=!1;t((f,u=0)=>{l=!0,o(u,f)}),l||o(-1,null)},s)}function ca(e,t){return t}function ha(e,t,r){for(var n=[],i=t.length,s,o=t.length,l=0;l<i;l++){let d=t[l];Je(d,()=>{if(s){if(s.pending.delete(d),s.done.add(d),s.pending.size===0){var v=e.outrogroups;mn(e,or(s.done)),v.delete(s),v.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var f=n.length===0&&r!==null&&e.pending.size===0;if(f){var u=r,c=u.parentNode;bi(c),c.append(u),e.items.clear()}mn(e,t,!f)}else s={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(s)}function mn(e,t,r=!0){var n;if(e.pending.size>0){n=new Set;for(const o of e.pending.values())for(const l of o)n.add(e.items.get(l).e)}for(var i=0;i<t.length;i++){var s=t[i];n?.has(s)?(s.f|=St,un(s,document.createDocumentFragment())):Y(t[i],r)}}var Ar;function yn(e,t,r,n,i,s=null){var o=e,l=new Map;if((t&4)!==0){var f=e;o=R?K(We(f)):f.appendChild(ne())}R&&cr();var u=null,c=Ur(()=>{var _=r();return Ln(_)?_:_==null?[]:or(_)}),d=new Map,v=!0;function p(_){if((w.effect.f&16384)===0){w.pending.delete(_);var m=h(c);w.fallback=u,da(w,m,o,t,n),u!==null&&(m.length===0?(u.f&33554432)===0?xr(u):(u.f^=St,Xt(u,null,o)):Je(u,()=>{u=null}))}}function b(_){w.pending.delete(_)}var w={effect:ln(()=>{var _=h(c),m=_.length;let k=!1;R&&Fr(o)==="[!"!=(m===0)&&(o=hr(),K(o),Ee(!1),k=!0);for(var O=new Set,T=S,ee=wi(),B=0;B<m;B+=1){R&&P.nodeType===8&&P.data==="]"&&(o=P,k=!0,Ee(!1));var te=_[B],ve=n(te,B),U=v?null:l.get(ve);U?(U.v&&ht(U.v,te),U.i&&ht(U.i,B),ee&&T.unskip_effect(U.e)):(U=va(l,v?o:Ar??(Ar=ne()),te,ve,B,i,t,r),v||(U.e.f|=St),l.set(ve,U)),O.add(ve)}if(m===0&&s&&!u&&(v?u=ie(()=>s(o)):(u=ie(()=>s(Ar??(Ar=ne()))),u.f|=St)),m>O.size&&fo("","",""),R&&m>0&&K(hr()),!v)if(d.set(T,O),ee){for(const[ae,Zt]of l)O.has(ae)||T.skip_effect(Zt.e);T.oncommit(p),T.ondiscard(b)}else p(T);k&&Ee(!0),h(c)}),flags:t,items:l,pending:d,outrogroups:null,fallback:u};v=!1,R&&(o=P)}function Kt(e){for(;e!==null&&(e.f&32)===0;)e=e.next;return e}function da(e,t,r,n,i){var s=(n&8)!==0,o=t.length,l=e.items,f=Kt(e.effect.first),u,c=null,d,v=[],p=[],b,w,_,m;if(s)for(m=0;m<o;m+=1)b=t[m],w=i(b,m),_=l.get(w).e,(_.f&33554432)===0&&(_.nodes?.a?.measure(),(d??(d=new Set)).add(_));for(m=0;m<o;m+=1){if(b=t[m],w=i(b,m),_=l.get(w).e,e.outrogroups!==null)for(const ae of e.outrogroups)ae.pending.delete(_),ae.done.delete(_);if((_.f&8192)!==0&&(xr(_),s&&(_.nodes?.a?.unfix(),(d??(d=new Set)).delete(_))),(_.f&33554432)!==0)if(_.f^=St,_===f)Xt(_,null,r);else{var k=c?c.next:f;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Be(e,c,_),Be(e,_,k),Xt(_,k,r),c=_,v=[],p=[],f=Kt(c.next);continue}if(_!==f){if(u!==void 0&&u.has(_)){if(v.length<p.length){var O=p[0],T;c=O.prev;var ee=v[0],B=v[v.length-1];for(T=0;T<v.length;T+=1)Xt(v[T],O,r);for(T=0;T<p.length;T+=1)u.delete(p[T]);Be(e,ee.prev,B.next),Be(e,c,ee),Be(e,B,O),f=O,c=B,m-=1,v=[],p=[]}else u.delete(_),Xt(_,f,r),Be(e,_.prev,_.next),Be(e,_,c===null?e.effect.first:c.next),Be(e,c,_),c=_;continue}for(v=[],p=[];f!==null&&f!==_;)(u??(u=new Set)).add(f),p.push(f),f=Kt(f.next);if(f===null)continue}(_.f&33554432)===0&&v.push(_),c=_,f=Kt(_.next)}if(e.outrogroups!==null){for(const ae of e.outrogroups)ae.pending.size===0&&(mn(e,or(ae.done)),e.outrogroups?.delete(ae));e.outrogroups.size===0&&(e.outrogroups=null)}if(f!==null||u!==void 0){var te=[];if(u!==void 0)for(_ of u)(_.f&8192)===0&&te.push(_);for(;f!==null;)(f.f&8192)===0&&f!==e.fallback&&te.push(f),f=Kt(f.next);var ve=te.length;if(ve>0){var U=(n&4)!==0&&o===0?r:null;if(s){for(m=0;m<ve;m+=1)te[m].nodes?.a?.measure();for(m=0;m<ve;m+=1)te[m].nodes?.a?.fix()}ha(e,te,U)}}s&&Ce(()=>{if(d!==void 0)for(_ of d)_.nodes?.a?.apply()})}function va(e,t,r,n,i,s,o,l){var f=(o&1)!==0?(o&16)===0?hi(r,!1,!1):Ve(r):null,u=(o&2)!==0?Ve(i):null;return{v:f,i:u,e:ie(()=>(s(t,f??r,u??i,l),()=>{e.delete(n)}))}}function Xt(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&(t.f&33554432)===0?t.nodes.start:r;n!==null;){var o=ge(n);if(s.before(n),n===i)return;n=o}}function Be(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function Vi(e,t){yi(()=>{e=M?.parent?.nodes?.start??e;var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=nn("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}var Ki=[...`
|
|
3
|
+
\r\f \v\uFEFF`];function pa(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var i of Object.keys(r))if(r[i])n=n?n+" "+i:i;else if(n.length)for(var s=i.length,o=0;(o=n.indexOf(i,o))>=0;){var l=o+s;(o===0||Ki.includes(n[o-1]))&&(l===n.length||Ki.includes(n[l]))?n=(o===0?"":n.substring(0,o))+n.substring(l+1):o=l}}return n===""?null:n}function Xi(e,t=!1){var r=t?" !important;":";",n="";for(var i of Object.keys(e)){var s=e[i];s!=null&&s!==""&&(n+=" "+i+": "+s+r)}return n}function kn(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function _a(e,t){if(t){var r="",n,i;if(Array.isArray(t)?(n=t[0],i=t[1]):n=t,e){e=String(e).replaceAll(/\/\*.*?\*\//g,"").trim();var s=!1,o=0,l=!1,f=[];n&&f.push(...Object.keys(n).map(kn)),i&&f.push(...Object.keys(i).map(kn));var u=0,c=-1;const w=e.length;for(var d=0;d<w;d++){var v=e[d];if(l?v==="/"&&e[d-1]==="*"&&(l=!1):s?s===v&&(s=!1):v==="/"&&e[d+1]==="*"?l=!0:v==='"'||v==="'"?s=v:v==="("?o++:v===")"&&o--,!l&&s===!1&&o===0){if(v===":"&&c===-1)c=d;else if(v===";"||d===w-1){if(c!==-1){var p=kn(e.substring(u,c).trim());if(!f.includes(p)){v!==";"&&d++;var b=e.substring(u,d).trim();r+=" "+b+";"}}u=d+1,c=-1}}}}return n&&(r+=Xi(n)),i&&(r+=Xi(i,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function Jt(e,t,r,n,i,s){var o=e[Hr];if(R||o!==r||o===void 0){var l=pa(r,n,s);(!R||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l)),e[Hr]=r}else if(s&&i!==s)for(var f in s){var u=!!s[f];(i==null||u!==!!i[f])&&e.classList.toggle(f,u)}return s}function $n(e,t={},r,n){for(var i in r){var s=r[i];t[i]!==s&&(r[i]==null?e.style.removeProperty(i):e.style.setProperty(i,s,n))}}function ga(e,t,r,n){var i=e[Br];if(R||i!==t){var s=_a(t,n);(!R||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e[Br]=t}else n&&(Array.isArray(n)?($n(e,r?.[0],n[0]),$n(e,r?.[1],n[1],"important")):$n(e,r,n));return n}var ba=Symbol("is custom element"),wa=Symbol("is html"),ma=ro?"link":"LINK";function G(e,t,r,n){var i=ya(e);if(!(R&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===ma))){var s=i[t];s!==(i[t]=r)&&(t==="loading"&&(e[to]=r),r==null?e.removeAttribute(t):typeof r!="string"&&ka(e).has(t)?e[t]=r:R&&(typeof r=="number"||typeof r=="boolean")&&s===String(r)||e.setAttribute(t,r))}}function ya(e){return e[Lr]??(e[Lr]={[ba]:e.nodeName.includes("-"),[wa]:e.namespaceURI==="http://www.w3.org/1999/xhtml"})}var Ji=new Map;function ka(e){var t=e.getAttribute("is")||e.nodeName,r=Ji.get(t);if(r)return r;Ji.set(t,r=new Set);for(var n,i=e,s=Element.prototype;s!==i;){n=Ys(i);for(var o in n)n[o].set&&o!=="innerHTML"&&o!=="textContent"&&o!=="innerText"&&r.add(o);i=Hn(i)}return r}var Zi,bt=new WeakMap,Tr=new WeakMap,xn=new WeakMap,Qi=new WeakSet,es=class{constructor(e){Kr(this,Qi),E(this,bt,new WeakMap),E(this,Tr,void 0),E(this,xn,void 0),x(xn,this,e)}observe(e,t){var r=a(bt,this).get(e)||new Set;return r.add(t),a(bt,this).set(e,r),y(Qi,this,$a).call(this).observe(e,a(xn,this)),()=>{var n=a(bt,this).get(e);n.delete(t),n.size===0&&(a(bt,this).delete(e),a(Tr,this).unobserve(e))}}};Zi=es;function $a(){return a(Tr,this)??x(Tr,this,new ResizeObserver(e=>{for(var t of e){Zi.entries.set(t.target,t);for(var r of a(bt,this).get(t.target)||[])r(t)}}))}z(es,"entries",new WeakMap);function En(e,t){return e===t||e?.[At]===t}function ts(e=Yr(),t,r,n){var i=I.r,s=M;return yi(()=>{var o,l;return an(()=>{o=l,l=n?.()||[],vt(()=>{En(r(...l),e)||(t(e,...l),o&&En(r(...o),e)&&t(null,...o))})}),()=>{let f=s;for(;f!==i&&f.parent!==null&&f.parent.f&33554432;)f=f.parent;const u=()=>{l&&En(r(...l),e)&&t(null,...l)},c=f.teardown;f.teardown=()=>{u(),c?.()}}}),e}var Rr=!1;function xa(e){var t=Rr;try{return Rr=!1,[e(),Rr]}finally{Rr=t}}function nt(e,t,r,n){var i=!Rt||(r&2)!==0,s=(r&8)!==0,o=(r&16)!==0,l=n,f=!0,u=void 0,c=()=>o&&i?(u??(u=Ct(n)),h(u)):(f&&(f=!1,l=o?vt(n):n),l);let d;if(s){var v=At in e||Gn in e;d=Fe(e,t)?.set??(v&&t in e?T=>e[t]=T:void 0)}var p,b=!1;s?[p,b]=xa(()=>e[t]):p=e[t],p===void 0&&n!==void 0&&(p=c(),d&&(i&&_o(t),d(p)));var w;if(i?w=()=>{var T=e[t];return T===void 0?c():(f=!0,T)}:w=()=>{var T=e[t];return T!==void 0&&(l=void 0),T===void 0?l:T},i&&(r&4)===0)return w;if(d){var _=e.$$legacy;return(function(T,ee){return arguments.length>0?((!i||!ee||_||b)&&d(ee?w():T),T):w()})}var m=!1,k=((r&1)!==0?Ct:Ur)(()=>(m=!1,w()));s&&h(k);var O=M;return(function(T,ee){if(arguments.length>0){const B=ee?h(k):i&&s?Ne(T):T;return C(k,B),m=!0,l!==void 0&&(l=B),T}return Se&&m||(O.f&16384)!==0?k.v:h(k)})}function Ea(e){return new Ma(e)}var it=new WeakMap,xe=new WeakMap,Ma=class{constructor(e){E(this,it,void 0),E(this,xe,void 0);var t=new Map,r=(i,s)=>{var o=hi(s,!1,!1);return t.set(i,o),o};const n=new Proxy({...e.props||{},$$events:{}},{get(i,s){return h(t.get(s)??r(s,Reflect.get(i,s)))},has(i,s){return s===Gn?!0:(h(t.get(s)??r(s,Reflect.get(i,s))),Reflect.has(i,s))},set(i,s,o){return C(t.get(s)??r(s,o),o),Reflect.set(i,s,o)}});x(xe,this,(e.hydrate?oa:qi)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError})),!Pe&&(!e?.props?.$$host||e.sync===!1)&&Me(),x(it,this,n.$$events);for(const i of Object.keys(a(xe,this)))i==="$set"||i==="$destroy"||i==="$on"||Et(this,i,{get(){return a(xe,this)[i]},set(s){a(xe,this)[i]=s},enumerable:!0});a(xe,this).$set=i=>{Object.assign(n,i)},a(xe,this).$destroy=()=>{aa(a(xe,this))}}$set(e){a(xe,this).$set(e)}$on(e,t){a(it,this)[e]=a(it,this)[e]||[];const r=(...n)=>t.call(this,...n);return a(it,this)[e].push(r),()=>{a(it,this)[e]=a(it,this)[e].filter(n=>n!==r)}}$destroy(){a(xe,this).$destroy()}},rs;typeof HTMLElement=="function"&&(rs=class extends HTMLElement{constructor(e,t,r){super(),z(this,"$$ctor",void 0),z(this,"$$s",void 0),z(this,"$$c",void 0),z(this,"$$cn",!1),z(this,"$$d",{}),z(this,"$$r",!1),z(this,"$$p_d",{}),z(this,"$$l",{}),z(this,"$$l_u",new Map),z(this,"$$me",void 0),z(this,"$$shadowRoot",null),this.$$ctor=e,this.$$s=t,r&&(this.$$shadowRoot=this.attachShadow(r))}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=nn("slot");n!=="default"&&(s.name=n),De(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Sa(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Pr(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Ea({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Lo(()=>{an(()=>{this.$$r=!0;for(const n of ar(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Pr(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Pr(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return ar(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Pr(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Sa(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ns(e,t,r,n,i,s){let o=class extends rs{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return ar(t).map(l=>(t[l].attribute||l).toLowerCase())}};return ar(t).forEach(l=>{Et(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=Pr(l,f,t),this.$$d[l]=f;var u=this.$$c;u&&(Fe(u,l)?.get?u[l]=f:u.$set({[l]:f}))}})}),n.forEach(l=>{Et(o.prototype,l,{get(){return this.$$c?.[l]}})}),s&&(o=s(o)),e.element=o,o}var is=Yt('<button type="button"><span aria-hidden="true"> </span></button>'),Aa=Yt('<span class="pie-tool-placement__controls-divider svelte-nt6qeh" aria-hidden="true"></span> <!>',1),Ta=Yt('<span class="pie-tool-placement__controls-divider svelte-nt6qeh" aria-hidden="true"></span> <button type="button"><span aria-hidden="true"> </span></button> <button type="button"><span aria-hidden="true"> </span></button>',1),Ra=Yt('<div role="group"><!> <!> <!></div>'),Pa={hash:"svelte-nt6qeh",code:`.pie-tool-placement__controls.svelte-nt6qeh {align-items:center;background:var(--pie-background, #fff);border:1px solid var(--pie-border-light, #cbd5e0);border-radius:8px;box-shadow:0 2px 6px color-mix(in srgb, var(--pie-black, #000) 15%, transparent);
|
|
4
|
+
/* So the docking's max-width bounds the whole strip. */box-sizing:border-box;cursor:default;
|
|
5
|
+
/* Arrows and turn glyphs are physical directions, whatever the script. */direction:ltr;display:flex;
|
|
6
|
+
/* Rows only where an upright tool's docking caps the width. */flex-wrap:wrap;gap:4px;left:0;padding:4px;position:absolute;top:0;visibility:hidden;white-space:nowrap;
|
|
7
|
+
/* Its own width, where a narrow tool would otherwise squeeze it. */width:max-content;}
|
|
8
|
+
|
|
9
|
+
/* The tool is the controls' parent. */:focus-within > .pie-tool-placement__controls.svelte-nt6qeh {visibility:visible;}.pie-tool-placement__control.svelte-nt6qeh {align-items:center;background:var(--pie-button-bg, var(--pie-background, #fff));border:1px solid var(--pie-button-border, var(--pie-border, #94a3b8));border-radius:6px;color:var(--pie-button-color, var(--pie-text, #111827));cursor:pointer;display:inline-flex;font:inherit;font-size:14px;justify-content:center;min-height:32px;min-width:32px;padding:0 6px;}.pie-tool-placement__control.svelte-nt6qeh:hover {background:var(--pie-button-hover-bg, var(--pie-background-dark, #f3f5f7));}.pie-tool-placement__control.svelte-nt6qeh:focus-visible {outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #4a90e2));outline-offset:1px;}.pie-tool-placement__controls-divider.svelte-nt6qeh {align-self:stretch;background:var(--pie-border-light, #cbd5e0);margin:0 2px;width:1px;}`};function ss(e,t){jr(t,!0),Vi(e,Pa);let r=nt(t,"controller",7),n=nt(t,"i18n",7),i=nt(t,"classPrefix",7),s=nt(t,"sizes",23,()=>[]),o=nt(t,"element",15);var l={get controller(){return r()},set controller(v){r(v),Me()},get i18n(){return n()},set i18n(v){n(v),Me()},get classPrefix(){return i()},set classPrefix(v){i(v),Me()},get sizes(){return s()},set sizes(v=[]){s(v),Me()},get element(){return o()},set element(v){o(v),Me()}},f=Ra(),u=Xe(f);yn(u,17,()=>Object.entries(Wn),([v,p])=>v,(v,p)=>{var b=zt(()=>Xs(h(p),2));let w=()=>h(b)[0],_=()=>h(b)[1];var m=is(),k=Bt(Xe(m),!0);je(m),Ft(O=>{Jt(m,1,`pie-tool-placement__control ${i()??""}__control`,"svelte-nt6qeh"),G(m,"aria-label",O),Ut(k,_().glyph)},[()=>n().t(_().labelKey)]),ke("click",m,()=>r().nudge(w())),De(v,m)});var c=be(u,2),d=v=>{var p=Aa();yn(be($r(p),2),16,()=>Ws,b=>b,(b,w)=>{var _=is(),m=Bt(Xe(_));je(_),Ft((k,O)=>{Jt(_,1,`pie-tool-placement__control ${i()??""}__control`,"svelte-nt6qeh"),G(_,"aria-label",k),Ut(m,`${w>0?"↻":"↺"}${O??""}°`)},[()=>n().t(w>0?"toolkit.placement.rotateClockwiseA11y":"toolkit.placement.rotateCounterclockwiseA11y",{degrees:Math.abs(w)}),()=>Math.abs(w)]),ke("click",_,()=>r().rotateBy?.(w)),De(b,_)}),De(v,p)};return Ui(c,v=>{r().rotateBy&&v(d)}),yn(be(c,2),17,s,ca,(v,p)=>{var b=Ta(),w=be($r(b),2),_=Bt(Xe(w),!0);je(w);var m=be(w,2),k=Bt(Xe(m),!0);je(m),Ft(()=>{Jt(w,1,`pie-tool-placement__control ${i()??""}__control`,"svelte-nt6qeh"),G(w,"aria-label",h(p).shrink.label),Ut(_,h(p).shrink.glyph),Jt(m,1,`pie-tool-placement__control ${i()??""}__control`,"svelte-nt6qeh"),G(m,"aria-label",h(p).grow.label),Ut(k,h(p).grow.glyph)}),ke("click",w,()=>h(p).step(-1)),ke("click",m,()=>h(p).step(1)),De(v,b)}),je(f),ts(f,v=>o(v),()=>o()),Ft(v=>{Jt(f,1,`pie-tool-placement__controls ${i()??""}__controls`,"svelte-nt6qeh"),G(f,"aria-label",v)},[()=>n().t(r().rotateBy?"toolkit.placement.controlsA11y":"toolkit.placement.moveAndResizeA11y")]),ke("pointerdown",f,v=>{v.stopPropagation(),v.preventDefault()}),De(e,f),qr(l)}Ii(["pointerdown","click"]),ns(ss,{controller:{},i18n:{},classPrefix:{},sizes:{},element:{}},[],[],{mode:"open"});var Ca=Yt('<div class="pie-sr-only svelte-a1a4bp" role="status" aria-live="polite" aria-atomic="true"> </div> <div class="pie-tool-line-reader svelte-a1a4bp" role="group" tabindex="0"><div class="pie-tool-line-reader__frame svelte-a1a4bp" aria-hidden="true"></div> <div class="pie-tool-line-reader__outline svelte-a1a4bp" aria-hidden="true"></div> <button type="button" class="pie-tool-line-reader__button pie-tool-line-reader__close svelte-a1a4bp"><svg width="12" height="12" viewBox="0 0 12 12" aria-hidden="true" focusable="false"><path d="M1 1 L11 11 M11 1 L1 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button> <button type="button" class="pie-tool-line-reader__resize-handle pie-tool-line-reader__resize-handle--pane svelte-a1a4bp"><svg width="14" height="8" viewBox="0 0 14 8" aria-hidden="true" focusable="false"><path d="M1 2.5 H13 M1 5.5 H13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button> <button type="button" class="pie-tool-line-reader__resize-handle pie-tool-line-reader__resize-handle--frame svelte-a1a4bp"><svg width="12" height="12" viewBox="0 0 12 12" aria-hidden="true" focusable="false"><path d="M11 4 L4 11 M11 8 L8 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button> <!></div>',1),Oa={hash:"svelte-a1a4bp",code:`.pie-sr-only.svelte-a1a4bp {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;}.pie-tool-line-reader.svelte-a1a4bp {border:none;border-radius:4px;
|
|
2362
10
|
/*
|
|
2363
11
|
* Ink-derived rather than fixed black: on a dark scheme this reads as a soft
|
|
2364
12
|
* halo separating the window from the page instead of vanishing into it.
|
|
2365
|
-
*/box-shadow:0px 2px 4px 0px color-mix(in srgb, var(--pie-text, #000) 8%, transparent);cursor:move;overflow:visible;position:absolute;transform:translate(-50%, -50%);user-select:none;pointer-events:auto;touch-action:none;}.pie-tool-line-reader.svelte-a1a4bp:focus-visible {outline:3px solid var(--pie-button-focus-outline, var(--pie-primary, #4A90E2));
|
|
13
|
+
*/box-shadow:0px 2px 4px 0px color-mix(in srgb, var(--pie-text, #000) 8%, transparent);cursor:move;overflow:visible;position:absolute;transform:translate(-50%, -50%);user-select:none;pointer-events:auto;touch-action:none;}.pie-tool-line-reader.svelte-a1a4bp:focus-visible {outline:3px solid var(--pie-button-focus-outline, var(--pie-primary, #4A90E2));
|
|
14
|
+
/* Inside the containment gutter, so the block never clips the ring. */outline-offset:1px;}
|
|
2366
15
|
|
|
2367
16
|
/*
|
|
2368
17
|
* Window frame: largely obscures the page content it covers. The fill stays a
|
|
@@ -2418,290 +67,4 @@ var uo = /* @__PURE__ */ Aa('<div class="pie-sr-only svelte-a1a4bp" role="status
|
|
|
2418
67
|
|
|
2419
68
|
/* Resizes the reading window: vertical only, centred on the bottom band. */.pie-tool-line-reader__resize-handle--pane.svelte-a1a4bp {bottom:4px;left:50%;margin-left:-12px;cursor:ns-resize;}
|
|
2420
69
|
|
|
2421
|
-
/* Resizes the frame bands and the overall width, so it reads as a corner grip. */.pie-tool-line-reader__resize-handle--frame.svelte-a1a4bp {bottom:4px;right:4px;cursor:nwse-resize;}.pie-tool-line-reader.svelte-a1a4bp:active {cursor:grabbing;}`
|
|
2422
|
-
};
|
|
2423
|
-
function ho(e, t) {
|
|
2424
|
-
Dn(t, !0), Xa(e, co);
|
|
2425
|
-
let r = Rn(t, "visible", 7, !1), n = Rn(t, "toolId", 7, "lineReader");
|
|
2426
|
-
const i = typeof window < "u";
|
|
2427
|
-
let s = /* @__PURE__ */ D(void 0), o = /* @__PURE__ */ D(null);
|
|
2428
|
-
const l = /* @__PURE__ */ fr(() => u(o)?.toolCoordinator);
|
|
2429
|
-
let h = /* @__PURE__ */ D(null), v = /* @__PURE__ */ D(Ee({
|
|
2430
|
-
x: 0,
|
|
2431
|
-
y: 0
|
|
2432
|
-
})), p = !1;
|
|
2433
|
-
const d = as({
|
|
2434
|
-
getPosition: () => u(v),
|
|
2435
|
-
setPosition: (_) => {
|
|
2436
|
-
M(v, Ae(_), !0);
|
|
2437
|
-
},
|
|
2438
|
-
onDragStart: (_) => u(l)?.bringToFront(_)
|
|
2439
|
-
});
|
|
2440
|
-
let c = /* @__PURE__ */ D(600), f = /* @__PURE__ */ D(24), g = /* @__PURE__ */ D(48), w = /* @__PURE__ */ D(Ee({
|
|
2441
|
-
paneHeight: 0,
|
|
2442
|
-
frameBandHeight: 0,
|
|
2443
|
-
width: 0,
|
|
2444
|
-
mouseX: 0,
|
|
2445
|
-
mouseY: 0
|
|
2446
|
-
}));
|
|
2447
|
-
const $ = /* @__PURE__ */ fr(() => fs(u(o)));
|
|
2448
|
-
let C = /* @__PURE__ */ D("");
|
|
2449
|
-
const L = ns("Line Reader", ts.TOOL), ve = 12, N = 200, _e = 32, $e = 240, Xr = 200, Kr = 2e3, Zr = is, Tt = 10, ar = 10, Oi = 20, Jr = /* @__PURE__ */ fr(() => u(f) + u(g) * 2);
|
|
2450
|
-
Ce(() => {
|
|
2451
|
-
if (u(s))
|
|
2452
|
-
return rs(u(s), (_) => {
|
|
2453
|
-
M(o, _, !0);
|
|
2454
|
-
});
|
|
2455
|
-
});
|
|
2456
|
-
let Ge = null;
|
|
2457
|
-
function Te(_) {
|
|
2458
|
-
Ge !== null && clearTimeout(Ge), M(C, _, !0), Ge = setTimeout(() => {
|
|
2459
|
-
M(C, ""), Ge = null;
|
|
2460
|
-
}, 1e3);
|
|
2461
|
-
}
|
|
2462
|
-
function Qr(_) {
|
|
2463
|
-
return Math.max(ve, Math.min(N, _));
|
|
2464
|
-
}
|
|
2465
|
-
function en(_) {
|
|
2466
|
-
return Math.max(_e, Math.min($e, _));
|
|
2467
|
-
}
|
|
2468
|
-
function At(_) {
|
|
2469
|
-
const k = rn()?.width, U = k === void 0 ? Kr : Math.min(Kr, k - Zr * 2);
|
|
2470
|
-
return Math.max(Xr, Math.min(Math.max(Xr, U), _));
|
|
2471
|
-
}
|
|
2472
|
-
function tn() {
|
|
2473
|
-
return ls(u(s));
|
|
2474
|
-
}
|
|
2475
|
-
function rn() {
|
|
2476
|
-
const _ = tn();
|
|
2477
|
-
return _ && {
|
|
2478
|
-
width: _.width,
|
|
2479
|
-
height: _.height
|
|
2480
|
-
};
|
|
2481
|
-
}
|
|
2482
|
-
function Ci() {
|
|
2483
|
-
const _ = tn();
|
|
2484
|
-
if (!_) return;
|
|
2485
|
-
const k = Math.max(_.left, 0), U = Math.max(_.top, 0), Ot = Math.min(_.right, window.innerWidth), j = Math.min(_.bottom, window.innerHeight);
|
|
2486
|
-
return Ot <= k || j <= U ? {
|
|
2487
|
-
x: _.width / 2,
|
|
2488
|
-
y: _.height / 2
|
|
2489
|
-
} : {
|
|
2490
|
-
x: (k + Ot) / 2 - _.left,
|
|
2491
|
-
y: (U + j) / 2 - _.top
|
|
2492
|
-
};
|
|
2493
|
-
}
|
|
2494
|
-
function Ae(_) {
|
|
2495
|
-
const k = rn();
|
|
2496
|
-
return k ? ss(_, {
|
|
2497
|
-
width: u(c),
|
|
2498
|
-
height: u(Jr)
|
|
2499
|
-
}, k, Zr) : _;
|
|
2500
|
-
}
|
|
2501
|
-
function at() {
|
|
2502
|
-
M(v, Ae(u(v)), !0);
|
|
2503
|
-
}
|
|
2504
|
-
function Rt(_) {
|
|
2505
|
-
M(f, Qr(u(f) + _), !0), at(), Te(u($).t("tools.lineReader.windowHeightAnnounce", { pixels: u(f) }));
|
|
2506
|
-
}
|
|
2507
|
-
function nn(_) {
|
|
2508
|
-
M(g, en(u(g) + _), !0), at(), Te(u($).t("tools.lineReader.frameHeightAnnounce", { pixels: u(g) }));
|
|
2509
|
-
}
|
|
2510
|
-
function sn(_) {
|
|
2511
|
-
M(c, At(u(c) + _), !0), at(), Te(u($).t("tools.lineReader.widthAnnounce", { pixels: u(c) }));
|
|
2512
|
-
}
|
|
2513
|
-
function an() {
|
|
2514
|
-
u(l) && n() && u(l).hideTool(n());
|
|
2515
|
-
}
|
|
2516
|
-
function Ii(_) {
|
|
2517
|
-
const k = _.target, U = k.closest(".pie-tool-line-reader__resize-handle");
|
|
2518
|
-
if (U) {
|
|
2519
|
-
Wi(_, U.classList.contains("pie-tool-line-reader__resize-handle--frame") ? "frame" : "pane", U);
|
|
2520
|
-
return;
|
|
2521
|
-
}
|
|
2522
|
-
k.closest("button") || Ni(_);
|
|
2523
|
-
}
|
|
2524
|
-
const Pt = os({
|
|
2525
|
-
onMove: Hi,
|
|
2526
|
-
onEnd: () => {
|
|
2527
|
-
d.endDragging(), M(h, null);
|
|
2528
|
-
}
|
|
2529
|
-
});
|
|
2530
|
-
function Ni(_) {
|
|
2531
|
-
!u(s) || !Pt.begin(_, u(s)) || (u(s).focus({ preventScroll: !0 }), d.startDragging(_, u(s)));
|
|
2532
|
-
}
|
|
2533
|
-
function Wi(_, k, U) {
|
|
2534
|
-
_.stopPropagation(), !(!u(s) || !Pt.begin(_, u(s))) && (u(s).setPointerCapture(_.pointerId), U.focus({ preventScroll: !0 }), M(h, k, !0), M(w, {
|
|
2535
|
-
paneHeight: u(f),
|
|
2536
|
-
frameBandHeight: u(g),
|
|
2537
|
-
width: u(c),
|
|
2538
|
-
mouseX: _.clientX,
|
|
2539
|
-
mouseY: _.clientY
|
|
2540
|
-
}, !0), u(l)?.bringToFront(u(s)));
|
|
2541
|
-
}
|
|
2542
|
-
function Hi(_) {
|
|
2543
|
-
if (d.isDragging()) {
|
|
2544
|
-
d.handlePointerMove(_);
|
|
2545
|
-
return;
|
|
2546
|
-
}
|
|
2547
|
-
if (!u(h)) return;
|
|
2548
|
-
const k = _.clientY - u(w).mouseY;
|
|
2549
|
-
if (u(h) === "pane") {
|
|
2550
|
-
M(f, Qr(u(w).paneHeight + k * 2), !0);
|
|
2551
|
-
return;
|
|
2552
|
-
}
|
|
2553
|
-
M(g, en(u(w).frameBandHeight + k), !0), M(c, At(u(w).width + (_.clientX - u(w).mouseX) * 2), !0), at();
|
|
2554
|
-
}
|
|
2555
|
-
function Li(_) {
|
|
2556
|
-
let k = !1;
|
|
2557
|
-
switch (_.key) {
|
|
2558
|
-
case "ArrowUp":
|
|
2559
|
-
M(v, Ae({
|
|
2560
|
-
x: u(v).x,
|
|
2561
|
-
y: u(v).y - Tt
|
|
2562
|
-
}), !0), Te(u($).t("toolkit.announce.movedUp", { position: Math.round(u(v).y) })), k = !0;
|
|
2563
|
-
break;
|
|
2564
|
-
case "ArrowDown":
|
|
2565
|
-
M(v, Ae({
|
|
2566
|
-
x: u(v).x,
|
|
2567
|
-
y: u(v).y + Tt
|
|
2568
|
-
}), !0), Te(u($).t("toolkit.announce.movedDown", { position: Math.round(u(v).y) })), k = !0;
|
|
2569
|
-
break;
|
|
2570
|
-
case "ArrowLeft":
|
|
2571
|
-
M(v, Ae({
|
|
2572
|
-
x: u(v).x - Tt,
|
|
2573
|
-
y: u(v).y
|
|
2574
|
-
}), !0), Te(u($).t("toolkit.announce.movedLeft", { position: Math.round(u(v).x) })), k = !0;
|
|
2575
|
-
break;
|
|
2576
|
-
case "ArrowRight":
|
|
2577
|
-
M(v, Ae({
|
|
2578
|
-
x: u(v).x + Tt,
|
|
2579
|
-
y: u(v).y
|
|
2580
|
-
}), !0), Te(u($).t("toolkit.announce.movedRight", { position: Math.round(u(v).x) })), k = !0;
|
|
2581
|
-
break;
|
|
2582
|
-
case "+":
|
|
2583
|
-
case "=":
|
|
2584
|
-
Rt(ar), k = !0;
|
|
2585
|
-
break;
|
|
2586
|
-
case "-":
|
|
2587
|
-
case "_":
|
|
2588
|
-
Rt(-10), k = !0;
|
|
2589
|
-
break;
|
|
2590
|
-
case "Escape":
|
|
2591
|
-
an(), k = !0;
|
|
2592
|
-
}
|
|
2593
|
-
k && _.preventDefault();
|
|
2594
|
-
}
|
|
2595
|
-
function Di(_) {
|
|
2596
|
-
let k = !1;
|
|
2597
|
-
switch (_.key) {
|
|
2598
|
-
case "ArrowUp":
|
|
2599
|
-
Rt(-10), k = !0;
|
|
2600
|
-
break;
|
|
2601
|
-
case "ArrowDown":
|
|
2602
|
-
Rt(ar), k = !0;
|
|
2603
|
-
}
|
|
2604
|
-
k && (_.preventDefault(), _.stopPropagation());
|
|
2605
|
-
}
|
|
2606
|
-
function ji(_) {
|
|
2607
|
-
let k = !1;
|
|
2608
|
-
switch (_.key) {
|
|
2609
|
-
case "ArrowUp":
|
|
2610
|
-
nn(-10), k = !0;
|
|
2611
|
-
break;
|
|
2612
|
-
case "ArrowDown":
|
|
2613
|
-
nn(ar), k = !0;
|
|
2614
|
-
break;
|
|
2615
|
-
case "ArrowLeft":
|
|
2616
|
-
sn(-20), k = !0;
|
|
2617
|
-
break;
|
|
2618
|
-
case "ArrowRight":
|
|
2619
|
-
sn(Oi), k = !0;
|
|
2620
|
-
}
|
|
2621
|
-
k && (_.preventDefault(), _.stopPropagation());
|
|
2622
|
-
}
|
|
2623
|
-
Ce(() => L.sync(u(l), n())), Ya(() => () => {
|
|
2624
|
-
Ge !== null && clearTimeout(Ge), Pt.release(), L.release();
|
|
2625
|
-
}), Ce(() => {
|
|
2626
|
-
u(l) && u(s) && n() && u(l).updateToolElement(n(), u(s));
|
|
2627
|
-
});
|
|
2628
|
-
function zi() {
|
|
2629
|
-
if (p) return;
|
|
2630
|
-
const _ = Ci();
|
|
2631
|
-
_ && (p = !0, M(c, At(u(c)), !0), M(v, Ae(_), !0));
|
|
2632
|
-
}
|
|
2633
|
-
Ce(() => {
|
|
2634
|
-
r() || it(() => Pt.release());
|
|
2635
|
-
}), Ce(() => {
|
|
2636
|
-
if (!r() || !u(s)) return;
|
|
2637
|
-
it(zi);
|
|
2638
|
-
const _ = setTimeout(() => u(s)?.focus({ preventScroll: !0 }), 100);
|
|
2639
|
-
return () => clearTimeout(_);
|
|
2640
|
-
}), Ce(() => {
|
|
2641
|
-
if (!i || !r()) return;
|
|
2642
|
-
const _ = () => {
|
|
2643
|
-
M(c, At(u(c)), !0), at();
|
|
2644
|
-
};
|
|
2645
|
-
return window.addEventListener("resize", _), () => window.removeEventListener("resize", _);
|
|
2646
|
-
});
|
|
2647
|
-
var Bi = {
|
|
2648
|
-
get visible() {
|
|
2649
|
-
return r();
|
|
2650
|
-
},
|
|
2651
|
-
set visible(_ = !1) {
|
|
2652
|
-
r(_), xr();
|
|
2653
|
-
},
|
|
2654
|
-
get toolId() {
|
|
2655
|
-
return n();
|
|
2656
|
-
},
|
|
2657
|
-
set toolId(_ = "lineReader") {
|
|
2658
|
-
n(_), xr();
|
|
2659
|
-
}
|
|
2660
|
-
}, on = Ra(), Fi = gn(on), Ui = (_) => {
|
|
2661
|
-
var k = uo(), U = gn(k), Ot = fa(U, !0), j = Wt(U, 2), Ct = Wt(oi(j), 4), It = Wt(Ct, 2), or = Wt(It, 2);
|
|
2662
|
-
Nn(j), io(j, (lr) => M(s, lr), () => u(s)), ma((lr, qi, Yi, Gi, Vi, Xi, Ki, Zi, Ji, Qi) => {
|
|
2663
|
-
Ba(Ot, u(C)), Za(j, `left: ${u(v).x ?? ""}px; top: ${u(v).y ?? ""}px; width: ${u(c) ?? ""}px; height: ${u(Jr) ?? ""}px; --pie-tool-line-reader-band-height: ${u(g) ?? ""}px; --pie-tool-line-reader-side-width: 12px;`), ae(j, "lang", lr), ae(j, "dir", qi), ae(j, "aria-label", Yi), ae(j, "aria-roledescription", Gi), ae(Ct, "title", Vi), ae(Ct, "aria-label", Xi), ae(It, "title", Ki), ae(It, "aria-label", Zi), ae(or, "title", Ji), ae(or, "aria-label", Qi), j.dir = j.dir;
|
|
2664
|
-
}, [
|
|
2665
|
-
() => u($).getLocale(),
|
|
2666
|
-
() => u($).getDirection?.() ?? "ltr",
|
|
2667
|
-
() => u($).t("tools.lineReader.applicationA11y", {
|
|
2668
|
-
paneHeight: u(f),
|
|
2669
|
-
frameHeight: u(g)
|
|
2670
|
-
}),
|
|
2671
|
-
() => u($).t("tools.lineReader.roleA11y"),
|
|
2672
|
-
() => u($).t("tools.lineReader.close"),
|
|
2673
|
-
() => u($).t("tools.lineReader.close"),
|
|
2674
|
-
() => u($).t("tools.lineReader.resizeWindowA11y"),
|
|
2675
|
-
() => u($).t("tools.lineReader.resizeWindowFullA11y", { paneHeight: u(f) }),
|
|
2676
|
-
() => u($).t("tools.lineReader.resizeFrameA11y"),
|
|
2677
|
-
() => u($).t("tools.lineReader.resizeFrameFullA11y", {
|
|
2678
|
-
frameHeight: u(g),
|
|
2679
|
-
width: u(c)
|
|
2680
|
-
})
|
|
2681
|
-
]), ot("pointerdown", j, Ii), ot("keydown", j, Li), ot("click", Ct, an), ot("keydown", It, Di), ot("keydown", or, ji), Tr(_, k);
|
|
2682
|
-
};
|
|
2683
|
-
return Va(Fi, (_) => {
|
|
2684
|
-
r() && _(Ui);
|
|
2685
|
-
}), Tr(e, on), jn(Bi);
|
|
2686
|
-
}
|
|
2687
|
-
Ea([
|
|
2688
|
-
"pointerdown",
|
|
2689
|
-
"keydown",
|
|
2690
|
-
"click"
|
|
2691
|
-
]);
|
|
2692
|
-
vo("pie-tool-line-reader", fo(ho, {
|
|
2693
|
-
visible: {
|
|
2694
|
-
attribute: "visible",
|
|
2695
|
-
type: "Boolean"
|
|
2696
|
-
},
|
|
2697
|
-
toolId: {
|
|
2698
|
-
attribute: "tool-id",
|
|
2699
|
-
type: "String"
|
|
2700
|
-
}
|
|
2701
|
-
}, [], [], { mode: "open" }, es));
|
|
2702
|
-
function vo(e, t) {
|
|
2703
|
-
customElements.get(e) || customElements.define(e, t);
|
|
2704
|
-
}
|
|
2705
|
-
export {
|
|
2706
|
-
ho as default
|
|
2707
|
-
};
|
|
70
|
+
/* Resizes the frame bands and the overall width, so it reads as a corner grip. */.pie-tool-line-reader__resize-handle--frame.svelte-a1a4bp {bottom:4px;right:4px;cursor:nwse-resize;}.pie-tool-line-reader.svelte-a1a4bp:active {cursor:grabbing;}`};function os(e,t){jr(t,!0),Vi(e,Oa);let r=nt(t,"visible",7,!1),n=nt(t,"toolId",7,"lineReader");const i=typeof window<"u";let s=H(void 0),o=H(void 0);const l=Ds();let f=H(null);const u=zt(()=>h(f)?.toolCoordinator);let c=H(null),d=H(Ne({x:0,y:0})),v=!1;const p=Ls({getPosition:()=>h(d),setPosition:g=>{C(d,tr(g),!0)},onDragStart:g=>h(u)?.bringToFront(g)});let b=H(600),w=H(24),_=H(48),m=H(Ne({paneHeight:0,frameBandHeight:0,width:0,mouseX:0,mouseY:0}));const k=zt(()=>js(h(f)));let O=H("");const T=zs("Line Reader",Cs.TOOL),ee=12,B=200,te=32,ve=240,U=200,ae=2e3,Zt=Ns,Mn=10,wt=10,Sn=20,Cr=zt(()=>h(w)+h(_)*2);Ie(()=>{if(h(s))return Os(h(s),g=>{C(f,g,!0)})});let st=null;function Qt(g){st!==null&&clearTimeout(st),C(O,g,!0),st=setTimeout(()=>{C(O,""),st=null},1e3)}function An(g){return Math.max(ee,Math.min(B,g))}function Tn(g){return Math.max(te,Math.min(ve,g))}function er(g){const $=Pn()?.width,F=$===void 0?ae:Math.min(ae,$-Zt*2);return Math.max(U,Math.min(Math.max(U,F),g))}function Rn(){return Fs(h(s))}function Pn(){const g=Rn();return g&&{width:g.width,height:g.height}}function ls(){const g=Rn();if(!g)return;const $=Math.max(g.left,0),F=Math.max(g.top,0),ot=Math.min(g.right,window.innerWidth),j=Math.min(g.bottom,window.innerHeight);return ot<=$||j<=F?{x:g.width/2,y:g.height/2}:{x:($+ot)/2-g.left,y:(F+j)/2-g.top}}function tr(g){const $=Pn();return $?Is(g,{width:h(b),height:h(Cr)},$,Zt):g}function mt(){C(d,tr(h(d)),!0)}function yt(g){C(w,An(h(w)+g),!0),mt(),Qt(h(k).t("tools.lineReader.windowHeightAnnounce",{pixels:h(w)}))}function Or(g){C(_,Tn(h(_)+g),!0),mt(),Qt(h(k).t("tools.lineReader.frameHeightAnnounce",{pixels:h(_)}))}function zr(g){C(b,er(h(b)+g),!0),mt(),Qt(h(k).t("tools.lineReader.widthAnnounce",{pixels:h(b)}))}function kt(g){const{dx:$,dy:F,announceKey:ot}=Wn[g];C(d,tr({x:h(d).x+$*Mn,y:h(d).y+F*Mn}),!0),Qt(h(k).t(ot,{position:Math.round($===0?h(d).y:h(d).x)}))}const fs={nudge:kt},us=zt(()=>[{shrink:{glyph:"−",label:h(k).t("tools.lineReader.shorterWindowA11y")},grow:{glyph:"+",label:h(k).t("tools.lineReader.tallerWindowA11y")},step:g=>yt(g*wt)},{shrink:{glyph:"↕−",label:h(k).t("tools.lineReader.shorterFrameA11y")},grow:{glyph:"↕+",label:h(k).t("tools.lineReader.tallerFrameA11y")},step:g=>Or(g*wt)},{shrink:{glyph:"↔−",label:h(k).t("tools.lineReader.narrowerA11y")},grow:{glyph:"↔+",label:h(k).t("tools.lineReader.widerA11y")},step:g=>zr(g*Sn)}]);function Cn(){h(s)&&h(o)&&Bs(h(s),h(o))}function On(){h(u)&&n()&&(l.restore(),h(u).hideTool(n()))}function cs(g){const $=g.target,F=$.closest(".pie-tool-line-reader__resize-handle");if(F){ds(g,F.classList.contains("pie-tool-line-reader__resize-handle--frame")?"frame":"pane",F);return}$.closest("button")||hs(g)}const rr=Hs({onMove:vs,onEnd:()=>{p.endDragging(),C(c,null)}});function hs(g){!h(s)||!rr.begin(g,h(s))||(h(s).focus({preventScroll:!0}),p.startDragging(g,h(s)))}function ds(g,$,F){g.stopPropagation(),!(!h(s)||!rr.begin(g,h(s)))&&(h(s).setPointerCapture(g.pointerId),F.focus({preventScroll:!0}),C(c,$,!0),C(m,{paneHeight:h(w),frameBandHeight:h(_),width:h(b),mouseX:g.clientX,mouseY:g.clientY},!0),h(u)?.bringToFront(h(s)))}function vs(g){if(p.isDragging()){p.handlePointerMove(g);return}if(!h(c))return;const $=g.clientY-h(m).mouseY;if(h(c)==="pane"){C(w,An(h(m).paneHeight+$*2),!0);return}C(_,Tn(h(m).frameBandHeight+$),!0),C(b,er(h(m).width+(g.clientX-h(m).mouseX)*2),!0),mt()}function ps(g){let $=!1;switch(g.key){case"ArrowUp":kt("up"),$=!0;break;case"ArrowDown":kt("down"),$=!0;break;case"ArrowLeft":kt("left"),$=!0;break;case"ArrowRight":kt("right"),$=!0;break;case"+":case"=":yt(wt),$=!0;break;case"-":case"_":yt(-10),$=!0;break;case"Escape":On(),$=!0}$&&g.preventDefault()}function _s(g){let $=!1;switch(g.key){case"ArrowUp":yt(-10),$=!0;break;case"ArrowDown":yt(wt),$=!0}$&&(g.preventDefault(),g.stopPropagation())}function gs(g){let $=!1;switch(g.key){case"ArrowUp":Or(-10),$=!0;break;case"ArrowDown":Or(wt),$=!0;break;case"ArrowLeft":zr(-20),$=!0;break;case"ArrowRight":zr(Sn),$=!0}$&&(g.preventDefault(),g.stopPropagation())}Ie(()=>T.sync(h(u),n())),fa(()=>()=>{st!==null&&clearTimeout(st),rr.release(),T.release()}),Ie(()=>{h(u)&&h(s)&&n()&&h(u).updateToolElement(n(),h(s))});function bs(){if(v)return;const g=ls();g&&(v=!0,C(b,er(h(b)),!0),C(d,tr(g),!0))}Ie(()=>{r()||vt(()=>rr.release())}),Ie(()=>{if(!r()||!h(s))return;const g=h(s);vt(()=>{bs(),l.capture(g)});const $=setTimeout(()=>h(s)?.focus({preventScroll:!0}),100);return()=>clearTimeout($)}),Ie(()=>{h(d).x,h(d).y,h(b),h(Cr),h(o);const g=requestAnimationFrame(Cn);return()=>cancelAnimationFrame(g)}),Ie(()=>{if(!i||!r())return;const g=()=>{C(b,er(h(b)),!0),mt(),Cn()};return window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)});var ws={get visible(){return r()},set visible(g=!1){r(g),Me()},get toolId(){return n()},set toolId(g="lineReader"){n(g),Me()}},zn=Xo(),ms=$r(zn),ys=g=>{var $=Ca(),F=$r($),ot=Bt(F,!0),j=be(F,2);let Nn;var nr=be(Xe(j),4),ir=be(nr,2),sr=be(ir,2);ss(be(sr,2),{get controller(){return fs},get i18n(){return h(k)},classPrefix:"pie-tool-line-reader",get sizes(){return h(us)},get element(){return h(o)},set element($t){C(o,$t,!0)}}),je(j),ts(j,$t=>C(s,$t),()=>h(s)),Ft(($t,ks,$s,xs,Es,Ms,Ss,As,Ts,Rs)=>{Ut(ot,h(O)),G(j,"lang",$t),G(j,"dir",ks),G(j,"aria-label",$s),G(j,"aria-roledescription",xs),Nn=ga(j,"",Nn,{left:`${h(d).x??""}px`,top:`${h(d).y??""}px`,width:`${h(b)??""}px`,height:`${h(Cr)??""}px`,"--pie-tool-line-reader-band-height":`${h(_)??""}px`,"--pie-tool-line-reader-side-width":"12px"}),G(nr,"title",Es),G(nr,"aria-label",Ms),G(ir,"title",Ss),G(ir,"aria-label",As),G(sr,"title",Ts),G(sr,"aria-label",Rs),j.dir=j.dir},[()=>h(k).getLocale(),()=>h(k).getDirection?.()??"ltr",()=>h(k).t("tools.lineReader.applicationA11y",{paneHeight:h(w),frameHeight:h(_)}),()=>h(k).t("tools.lineReader.roleA11y"),()=>h(k).t("tools.lineReader.close"),()=>h(k).t("tools.lineReader.close"),()=>h(k).t("tools.lineReader.resizeWindowA11y"),()=>h(k).t("tools.lineReader.resizeWindowFullA11y",{paneHeight:h(w)}),()=>h(k).t("tools.lineReader.resizeFrameA11y"),()=>h(k).t("tools.lineReader.resizeFrameFullA11y",{frameHeight:h(_),width:h(b)})]),ke("pointerdown",j,cs),ke("keydown",j,ps),ke("click",nr,On),ke("keydown",ir,_s),ke("keydown",sr,gs),De(g,$)};return Ui(ms,g=>{r()&&g(ys)}),De(e,zn),qr(ws)}Ii(["pointerdown","keydown","click"]),za("pie-tool-line-reader",ns(os,{visible:{attribute:"visible",type:"Boolean"},toolId:{attribute:"tool-id",type:"String"}},[],[],{mode:"open"},Ps));function za(e,t){customElements.get(e)||customElements.define(e,t)}export{os as default};
|