@pie-players/pie-tool-line-reader 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tool-line-reader.js +1698 -1477
- package/dist/tool-line-reader.js.map +1 -1
- package/package.json +5 -5
package/dist/tool-line-reader.js
CHANGED
|
@@ -1,139 +1,145 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var _s = Object.defineProperty;
|
|
2
|
+
var Mr = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var N = (e, t, n) =>
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
typeof window < "u" && ((
|
|
10
|
-
const
|
|
11
|
-
var
|
|
12
|
-
|
|
5
|
+
var ms = (e, t, n) => t in e ? _s(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
+
var N = (e, t, n) => ms(e, typeof t != "symbol" ? t + "" : t, n), Hn = (e, t, n) => t.has(e) || Mr("Cannot " + n);
|
|
7
|
+
var u = (e, t, n) => (Hn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), y = (e, t, n) => t.has(e) ? Mr("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), b = (e, t, n, r) => (Hn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), F = (e, t, n) => (Hn(e, t, "access private method"), n);
|
|
8
|
+
var Kr;
|
|
9
|
+
typeof window < "u" && ((Kr = window.__svelte ?? (window.__svelte = {})).v ?? (Kr.v = /* @__PURE__ */ new Set())).add("5");
|
|
10
|
+
const bs = 1, ws = 2, ys = 16, $s = 1, Es = 2, ir = "[", Tn = "[!", sr = "]", Mt = {}, j = /* @__PURE__ */ Symbol(), Wr = "http://www.w3.org/1999/xhtml", Yn = !1;
|
|
11
|
+
var Xr = Array.isArray, xs = Array.prototype.indexOf, Rt = Array.prototype.includes, Cn = Array.from, yn = Object.keys, $n = Object.defineProperty, wt = Object.getOwnPropertyDescriptor, ks = Object.getOwnPropertyDescriptors, Ts = Object.prototype, Cs = Array.prototype, Jr = Object.getPrototypeOf, Rr = Object.isExtensible;
|
|
12
|
+
const Ss = () => {
|
|
13
|
+
};
|
|
14
|
+
function As(e) {
|
|
13
15
|
for (var t = 0; t < e.length; t++)
|
|
14
16
|
e[t]();
|
|
15
17
|
}
|
|
16
|
-
function
|
|
17
|
-
var e, t, n = new Promise((
|
|
18
|
-
e =
|
|
18
|
+
function Qr() {
|
|
19
|
+
var e, t, n = new Promise((r, i) => {
|
|
20
|
+
e = r, t = i;
|
|
19
21
|
});
|
|
20
22
|
return { promise: n, resolve: e, reject: t };
|
|
21
23
|
}
|
|
22
|
-
const
|
|
24
|
+
const H = 2, Qt = 4, Sn = 8, Zr = 1 << 24, He = 16, we = 32, Qe = 64, ei = 128, fe = 512, B = 1024, G = 2048, me = 4096, te = 8192, Be = 16384, Ft = 32768, Ot = 65536, Or = 1 << 17, ti = 1 << 18, gt = 1 << 19, Ms = 1 << 20, Ue = 1 << 25, vt = 65536, Vn = 1 << 21, ar = 1 << 22, qe = 1 << 23, hn = /* @__PURE__ */ Symbol("$state"), Rs = /* @__PURE__ */ Symbol("legacy props"), Os = /* @__PURE__ */ Symbol(""), rt = new class extends Error {
|
|
23
25
|
constructor() {
|
|
24
26
|
super(...arguments);
|
|
25
27
|
N(this, "name", "StaleReactionError");
|
|
26
28
|
N(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
27
29
|
}
|
|
28
|
-
}(),
|
|
29
|
-
function
|
|
30
|
+
}(), ni = /* @__PURE__ */ globalThis.document?.contentType.includes("xml") ?? !1, An = 3, zt = 8;
|
|
31
|
+
function Ns(e) {
|
|
30
32
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
31
33
|
}
|
|
32
|
-
function
|
|
34
|
+
function Ls() {
|
|
33
35
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
34
36
|
}
|
|
35
|
-
function
|
|
37
|
+
function Ds(e, t, n) {
|
|
38
|
+
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
39
|
+
}
|
|
40
|
+
function Is(e) {
|
|
36
41
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
37
42
|
}
|
|
38
|
-
function
|
|
43
|
+
function Ps() {
|
|
39
44
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
40
45
|
}
|
|
41
|
-
function
|
|
46
|
+
function Fs(e) {
|
|
42
47
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
43
48
|
}
|
|
44
|
-
function
|
|
49
|
+
function zs() {
|
|
45
50
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
46
51
|
}
|
|
47
|
-
function
|
|
52
|
+
function Bs() {
|
|
48
53
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
49
54
|
}
|
|
50
|
-
function
|
|
55
|
+
function js() {
|
|
51
56
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
52
57
|
}
|
|
53
|
-
function
|
|
58
|
+
function Hs() {
|
|
54
59
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
55
60
|
}
|
|
56
|
-
function
|
|
61
|
+
function Gs() {
|
|
57
62
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
58
63
|
}
|
|
59
|
-
function
|
|
64
|
+
function Ys() {
|
|
60
65
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
61
66
|
}
|
|
62
|
-
function
|
|
67
|
+
function Mn(e) {
|
|
63
68
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
64
69
|
}
|
|
65
|
-
function
|
|
70
|
+
function Vs() {
|
|
66
71
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
67
72
|
}
|
|
68
73
|
let x = !1;
|
|
69
|
-
function
|
|
74
|
+
function Fe(e) {
|
|
70
75
|
x = e;
|
|
71
76
|
}
|
|
72
77
|
let k;
|
|
73
78
|
function ne(e) {
|
|
74
79
|
if (e === null)
|
|
75
|
-
throw
|
|
80
|
+
throw Mn(), Mt;
|
|
76
81
|
return k = e;
|
|
77
82
|
}
|
|
78
|
-
function
|
|
79
|
-
return ne(/* @__PURE__ */
|
|
83
|
+
function an() {
|
|
84
|
+
return ne(/* @__PURE__ */ Ae(k));
|
|
80
85
|
}
|
|
81
|
-
function
|
|
86
|
+
function V(e) {
|
|
82
87
|
if (x) {
|
|
83
|
-
if (/* @__PURE__ */
|
|
84
|
-
throw
|
|
88
|
+
if (/* @__PURE__ */ Ae(k) !== null)
|
|
89
|
+
throw Mn(), Mt;
|
|
85
90
|
k = e;
|
|
86
91
|
}
|
|
87
92
|
}
|
|
88
|
-
function
|
|
93
|
+
function vn(e = 1) {
|
|
89
94
|
if (x) {
|
|
90
95
|
for (var t = e, n = k; t--; )
|
|
91
96
|
n = /** @type {TemplateNode} */
|
|
92
|
-
/* @__PURE__ */
|
|
97
|
+
/* @__PURE__ */ Ae(n);
|
|
93
98
|
k = n;
|
|
94
99
|
}
|
|
95
100
|
}
|
|
96
|
-
function
|
|
101
|
+
function En(e = !0) {
|
|
97
102
|
for (var t = 0, n = k; ; ) {
|
|
98
|
-
if (n.nodeType ===
|
|
99
|
-
var
|
|
103
|
+
if (n.nodeType === zt) {
|
|
104
|
+
var r = (
|
|
100
105
|
/** @type {Comment} */
|
|
101
106
|
n.data
|
|
102
107
|
);
|
|
103
|
-
if (
|
|
108
|
+
if (r === sr) {
|
|
104
109
|
if (t === 0) return n;
|
|
105
110
|
t -= 1;
|
|
106
|
-
} else (
|
|
111
|
+
} else (r === ir || r === Tn || // "[1", "[2", etc. for if blocks
|
|
112
|
+
r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
|
|
107
113
|
}
|
|
108
|
-
var
|
|
114
|
+
var i = (
|
|
109
115
|
/** @type {TemplateNode} */
|
|
110
|
-
/* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ Ae(n)
|
|
111
117
|
);
|
|
112
|
-
e && n.remove(), n =
|
|
118
|
+
e && n.remove(), n = i;
|
|
113
119
|
}
|
|
114
120
|
}
|
|
115
|
-
function
|
|
116
|
-
if (!e || e.nodeType !==
|
|
117
|
-
throw
|
|
121
|
+
function ri(e) {
|
|
122
|
+
if (!e || e.nodeType !== zt)
|
|
123
|
+
throw Mn(), Mt;
|
|
118
124
|
return (
|
|
119
125
|
/** @type {Comment} */
|
|
120
126
|
e.data
|
|
121
127
|
);
|
|
122
128
|
}
|
|
123
|
-
function
|
|
129
|
+
function ii(e) {
|
|
124
130
|
return e === this.v;
|
|
125
131
|
}
|
|
126
|
-
function
|
|
132
|
+
function Us(e, t) {
|
|
127
133
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
128
134
|
}
|
|
129
|
-
function
|
|
130
|
-
return !
|
|
135
|
+
function si(e) {
|
|
136
|
+
return !Us(e, this.v);
|
|
131
137
|
}
|
|
132
|
-
let
|
|
138
|
+
let qs = !1, re = null;
|
|
133
139
|
function Nt(e) {
|
|
134
140
|
re = e;
|
|
135
141
|
}
|
|
136
|
-
function
|
|
142
|
+
function Rn(e, t = !1, n) {
|
|
137
143
|
re = {
|
|
138
144
|
p: re,
|
|
139
145
|
i: !1,
|
|
@@ -144,88 +150,88 @@ function Mn(e, t = !1, n) {
|
|
|
144
150
|
l: null
|
|
145
151
|
};
|
|
146
152
|
}
|
|
147
|
-
function
|
|
153
|
+
function On(e) {
|
|
148
154
|
var t = (
|
|
149
155
|
/** @type {ComponentContext} */
|
|
150
156
|
re
|
|
151
157
|
), n = t.e;
|
|
152
158
|
if (n !== null) {
|
|
153
159
|
t.e = null;
|
|
154
|
-
for (var
|
|
155
|
-
|
|
160
|
+
for (var r of n)
|
|
161
|
+
Ai(r);
|
|
156
162
|
}
|
|
157
163
|
return e !== void 0 && (t.x = e), t.i = !0, re = t.p, e ?? /** @type {T} */
|
|
158
164
|
{};
|
|
159
165
|
}
|
|
160
|
-
function
|
|
166
|
+
function ai() {
|
|
161
167
|
return !0;
|
|
162
168
|
}
|
|
163
|
-
let
|
|
164
|
-
function
|
|
165
|
-
var e =
|
|
166
|
-
|
|
169
|
+
let it = [];
|
|
170
|
+
function li() {
|
|
171
|
+
var e = it;
|
|
172
|
+
it = [], As(e);
|
|
167
173
|
}
|
|
168
|
-
function
|
|
169
|
-
if (
|
|
170
|
-
var t =
|
|
174
|
+
function Ke(e) {
|
|
175
|
+
if (it.length === 0 && !Xt) {
|
|
176
|
+
var t = it;
|
|
171
177
|
queueMicrotask(() => {
|
|
172
|
-
t ===
|
|
178
|
+
t === it && li();
|
|
173
179
|
});
|
|
174
180
|
}
|
|
175
|
-
|
|
181
|
+
it.push(e);
|
|
176
182
|
}
|
|
177
|
-
function
|
|
178
|
-
for (;
|
|
179
|
-
|
|
183
|
+
function Ks() {
|
|
184
|
+
for (; it.length > 0; )
|
|
185
|
+
li();
|
|
180
186
|
}
|
|
181
|
-
function
|
|
187
|
+
function oi(e) {
|
|
182
188
|
var t = T;
|
|
183
189
|
if (t === null)
|
|
184
|
-
return
|
|
185
|
-
if ((t.f &
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
t.b.error(e);
|
|
189
|
-
} else
|
|
190
|
-
Lt(e, t);
|
|
190
|
+
return $.f |= qe, e;
|
|
191
|
+
if ((t.f & Ft) === 0 && (t.f & Qt) === 0)
|
|
192
|
+
throw e;
|
|
193
|
+
Lt(e, t);
|
|
191
194
|
}
|
|
192
195
|
function Lt(e, t) {
|
|
193
196
|
for (; t !== null; ) {
|
|
194
|
-
if ((t.f &
|
|
197
|
+
if ((t.f & ei) !== 0) {
|
|
198
|
+
if ((t.f & Ft) === 0)
|
|
199
|
+
throw e;
|
|
195
200
|
try {
|
|
196
201
|
t.b.error(e);
|
|
197
202
|
return;
|
|
198
203
|
} catch (n) {
|
|
199
204
|
e = n;
|
|
200
205
|
}
|
|
206
|
+
}
|
|
201
207
|
t = t.parent;
|
|
202
208
|
}
|
|
203
209
|
throw e;
|
|
204
210
|
}
|
|
205
|
-
const
|
|
206
|
-
function
|
|
207
|
-
e.f = e.f &
|
|
211
|
+
const Ws = -7169;
|
|
212
|
+
function L(e, t) {
|
|
213
|
+
e.f = e.f & Ws | t;
|
|
208
214
|
}
|
|
209
|
-
function
|
|
210
|
-
(e.f &
|
|
215
|
+
function lr(e) {
|
|
216
|
+
(e.f & fe) !== 0 || e.deps === null ? L(e, B) : L(e, me);
|
|
211
217
|
}
|
|
212
|
-
function
|
|
218
|
+
function ui(e) {
|
|
213
219
|
if (e !== null)
|
|
214
220
|
for (const t of e)
|
|
215
|
-
(t.f &
|
|
221
|
+
(t.f & H) === 0 || (t.f & vt) === 0 || (t.f ^= vt, ui(
|
|
216
222
|
/** @type {Derived} */
|
|
217
223
|
t.deps
|
|
218
224
|
));
|
|
219
225
|
}
|
|
220
|
-
function
|
|
221
|
-
(e.f & G) !== 0 ? t.add(e) : (e.f &
|
|
226
|
+
function fi(e, t, n) {
|
|
227
|
+
(e.f & G) !== 0 ? t.add(e) : (e.f & me) !== 0 && n.add(e), ui(e.deps), L(e, B);
|
|
222
228
|
}
|
|
223
|
-
const
|
|
224
|
-
let
|
|
225
|
-
var Et, xt,
|
|
226
|
-
const
|
|
229
|
+
const fn = /* @__PURE__ */ new Set();
|
|
230
|
+
let O = null, ve = null, W = [], Nn = null, Un = !1, Xt = !1;
|
|
231
|
+
var Et, xt, at, kt, en, tn, lt, Ne, Tt, Se, qn, Kn, ci;
|
|
232
|
+
const yr = class yr {
|
|
227
233
|
constructor() {
|
|
228
|
-
|
|
234
|
+
y(this, Se);
|
|
229
235
|
N(this, "committed", !1);
|
|
230
236
|
/**
|
|
231
237
|
* The current values of any sources that are updated in this batch
|
|
@@ -244,64 +250,88 @@ const br = class br {
|
|
|
244
250
|
* and append new ones by calling the functions added inside (if/each/key/etc) blocks
|
|
245
251
|
* @type {Set<() => void>}
|
|
246
252
|
*/
|
|
247
|
-
|
|
253
|
+
y(this, Et, /* @__PURE__ */ new Set());
|
|
248
254
|
/**
|
|
249
255
|
* If a fork is discarded, we need to destroy any effects that are no longer needed
|
|
250
256
|
* @type {Set<(batch: Batch) => void>}
|
|
251
257
|
*/
|
|
252
|
-
|
|
258
|
+
y(this, xt, /* @__PURE__ */ new Set());
|
|
253
259
|
/**
|
|
254
260
|
* The number of async effects that are currently in flight
|
|
255
261
|
*/
|
|
256
|
-
|
|
262
|
+
y(this, at, 0);
|
|
257
263
|
/**
|
|
258
264
|
* The number of async effects that are currently in flight, _not_ inside a pending boundary
|
|
259
265
|
*/
|
|
260
|
-
|
|
266
|
+
y(this, kt, 0);
|
|
261
267
|
/**
|
|
262
268
|
* A deferred that resolves when the batch is committed, used with `settled()`
|
|
263
269
|
* TODO replace with Promise.withResolvers once supported widely enough
|
|
264
270
|
* @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
|
|
265
271
|
*/
|
|
266
|
-
|
|
272
|
+
y(this, en, null);
|
|
267
273
|
/**
|
|
268
274
|
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
269
275
|
* @type {Set<Effect>}
|
|
270
276
|
*/
|
|
271
|
-
|
|
277
|
+
y(this, tn, /* @__PURE__ */ new Set());
|
|
272
278
|
/**
|
|
273
279
|
* Deferred effects that are MAYBE_DIRTY
|
|
274
280
|
* @type {Set<Effect>}
|
|
275
281
|
*/
|
|
276
|
-
|
|
282
|
+
y(this, lt, /* @__PURE__ */ new Set());
|
|
277
283
|
/**
|
|
278
|
-
* A
|
|
279
|
-
* is committed — we skip over these during `process
|
|
280
|
-
*
|
|
284
|
+
* A map of branches that still exist, but will be destroyed when this batch
|
|
285
|
+
* is committed — we skip over these during `process`.
|
|
286
|
+
* The value contains child effects that were dirty/maybe_dirty before being reset,
|
|
287
|
+
* so they can be rescheduled if the branch survives.
|
|
288
|
+
* @type {Map<Effect, { d: Effect[], m: Effect[] }>}
|
|
281
289
|
*/
|
|
282
|
-
|
|
290
|
+
y(this, Ne, /* @__PURE__ */ new Map());
|
|
283
291
|
N(this, "is_fork", !1);
|
|
284
|
-
|
|
292
|
+
y(this, Tt, !1);
|
|
285
293
|
}
|
|
286
294
|
is_deferred() {
|
|
287
|
-
return this.is_fork ||
|
|
295
|
+
return this.is_fork || u(this, kt) > 0;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Add an effect to the #skipped_branches map and reset its children
|
|
299
|
+
* @param {Effect} effect
|
|
300
|
+
*/
|
|
301
|
+
skip_effect(t) {
|
|
302
|
+
u(this, Ne).has(t) || u(this, Ne).set(t, { d: [], m: [] });
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* Remove an effect from the #skipped_branches map and reschedule
|
|
306
|
+
* any tracked dirty/maybe_dirty child effects
|
|
307
|
+
* @param {Effect} effect
|
|
308
|
+
*/
|
|
309
|
+
unskip_effect(t) {
|
|
310
|
+
var n = u(this, Ne).get(t);
|
|
311
|
+
if (n) {
|
|
312
|
+
u(this, Ne).delete(t);
|
|
313
|
+
for (var r of n.d)
|
|
314
|
+
L(r, G), pe(r);
|
|
315
|
+
for (r of n.m)
|
|
316
|
+
L(r, me), pe(r);
|
|
317
|
+
}
|
|
288
318
|
}
|
|
289
319
|
/**
|
|
290
320
|
*
|
|
291
321
|
* @param {Effect[]} root_effects
|
|
292
322
|
*/
|
|
293
323
|
process(t) {
|
|
294
|
-
|
|
295
|
-
var n = [],
|
|
296
|
-
for (const
|
|
297
|
-
F(this,
|
|
324
|
+
W = [], this.apply();
|
|
325
|
+
var n = [], r = [];
|
|
326
|
+
for (const i of t)
|
|
327
|
+
F(this, Se, qn).call(this, i, n, r);
|
|
298
328
|
if (this.is_deferred()) {
|
|
299
|
-
F(this,
|
|
300
|
-
for (const
|
|
301
|
-
|
|
329
|
+
F(this, Se, Kn).call(this, r), F(this, Se, Kn).call(this, n);
|
|
330
|
+
for (const [i, s] of u(this, Ne))
|
|
331
|
+
pi(i, s);
|
|
302
332
|
} else {
|
|
303
|
-
for (const
|
|
304
|
-
|
|
333
|
+
for (const i of u(this, Et)) i();
|
|
334
|
+
u(this, Et).clear(), u(this, at) === 0 && F(this, Se, ci).call(this), O = null, Nr(r), Nr(n), u(this, en)?.resolve();
|
|
305
335
|
}
|
|
306
336
|
ve = null;
|
|
307
337
|
}
|
|
@@ -312,196 +342,196 @@ const br = class br {
|
|
|
312
342
|
* @param {any} value
|
|
313
343
|
*/
|
|
314
344
|
capture(t, n) {
|
|
315
|
-
n !==
|
|
345
|
+
n !== j && !this.previous.has(t) && this.previous.set(t, n), (t.f & qe) === 0 && (this.current.set(t, t.v), ve?.set(t, t.v));
|
|
316
346
|
}
|
|
317
347
|
activate() {
|
|
318
|
-
|
|
348
|
+
O = this, this.apply();
|
|
319
349
|
}
|
|
320
350
|
deactivate() {
|
|
321
|
-
|
|
351
|
+
O === this && (O = null, ve = null);
|
|
322
352
|
}
|
|
323
353
|
flush() {
|
|
324
|
-
if (this.activate(),
|
|
325
|
-
if (
|
|
354
|
+
if (this.activate(), W.length > 0) {
|
|
355
|
+
if (di(), O !== null && O !== this)
|
|
326
356
|
return;
|
|
327
|
-
} else
|
|
357
|
+
} else u(this, at) === 0 && this.process([]);
|
|
328
358
|
this.deactivate();
|
|
329
359
|
}
|
|
330
360
|
discard() {
|
|
331
|
-
for (const t of
|
|
332
|
-
|
|
361
|
+
for (const t of u(this, xt)) t(this);
|
|
362
|
+
u(this, xt).clear();
|
|
333
363
|
}
|
|
334
364
|
/**
|
|
335
365
|
*
|
|
336
366
|
* @param {boolean} blocking
|
|
337
367
|
*/
|
|
338
368
|
increment(t) {
|
|
339
|
-
b(this,
|
|
369
|
+
b(this, at, u(this, at) + 1), t && b(this, kt, u(this, kt) + 1);
|
|
340
370
|
}
|
|
341
371
|
/**
|
|
342
372
|
*
|
|
343
373
|
* @param {boolean} blocking
|
|
344
374
|
*/
|
|
345
375
|
decrement(t) {
|
|
346
|
-
b(this,
|
|
347
|
-
b(this, Tt, !1), this.is_deferred() ?
|
|
376
|
+
b(this, at, u(this, at) - 1), t && b(this, kt, u(this, kt) - 1), !u(this, Tt) && (b(this, Tt, !0), Ke(() => {
|
|
377
|
+
b(this, Tt, !1), this.is_deferred() ? W.length > 0 && this.flush() : this.revive();
|
|
348
378
|
}));
|
|
349
379
|
}
|
|
350
380
|
revive() {
|
|
351
|
-
for (const t of
|
|
352
|
-
|
|
353
|
-
for (const t of
|
|
354
|
-
|
|
381
|
+
for (const t of u(this, tn))
|
|
382
|
+
u(this, lt).delete(t), L(t, G), pe(t);
|
|
383
|
+
for (const t of u(this, lt))
|
|
384
|
+
L(t, me), pe(t);
|
|
355
385
|
this.flush();
|
|
356
386
|
}
|
|
357
387
|
/** @param {() => void} fn */
|
|
358
388
|
oncommit(t) {
|
|
359
|
-
|
|
389
|
+
u(this, Et).add(t);
|
|
360
390
|
}
|
|
361
391
|
/** @param {(batch: Batch) => void} fn */
|
|
362
392
|
ondiscard(t) {
|
|
363
|
-
|
|
393
|
+
u(this, xt).add(t);
|
|
364
394
|
}
|
|
365
395
|
settled() {
|
|
366
|
-
return (
|
|
396
|
+
return (u(this, en) ?? b(this, en, Qr())).promise;
|
|
367
397
|
}
|
|
368
398
|
static ensure() {
|
|
369
|
-
if (
|
|
370
|
-
const t =
|
|
371
|
-
|
|
372
|
-
|
|
399
|
+
if (O === null) {
|
|
400
|
+
const t = O = new yr();
|
|
401
|
+
fn.add(O), Xt || Ke(() => {
|
|
402
|
+
O === t && t.flush();
|
|
373
403
|
});
|
|
374
404
|
}
|
|
375
|
-
return
|
|
405
|
+
return O;
|
|
376
406
|
}
|
|
377
407
|
apply() {
|
|
378
408
|
}
|
|
379
409
|
};
|
|
380
|
-
Et = new WeakMap(), xt = new WeakMap(),
|
|
410
|
+
Et = new WeakMap(), xt = new WeakMap(), at = new WeakMap(), kt = new WeakMap(), en = new WeakMap(), tn = new WeakMap(), lt = new WeakMap(), Ne = new WeakMap(), Tt = new WeakMap(), Se = new WeakSet(), /**
|
|
381
411
|
* Traverse the effect tree, executing effects or stashing
|
|
382
412
|
* them for later execution as appropriate
|
|
383
413
|
* @param {Effect} root
|
|
384
414
|
* @param {Effect[]} effects
|
|
385
415
|
* @param {Effect[]} render_effects
|
|
386
416
|
*/
|
|
387
|
-
|
|
388
|
-
t.f ^=
|
|
389
|
-
for (var
|
|
390
|
-
var
|
|
391
|
-
if (!c &&
|
|
392
|
-
|
|
393
|
-
var d =
|
|
417
|
+
qn = function(t, n, r) {
|
|
418
|
+
t.f ^= B;
|
|
419
|
+
for (var i = t.first, s = null; i !== null; ) {
|
|
420
|
+
var a = i.f, l = (a & (we | Qe)) !== 0, o = l && (a & B) !== 0, c = o || (a & te) !== 0 || u(this, Ne).has(i);
|
|
421
|
+
if (!c && i.fn !== null) {
|
|
422
|
+
l ? i.f ^= B : s !== null && (a & (Qt | Sn | Zr)) !== 0 ? s.b.defer_effect(i) : (a & Qt) !== 0 ? n.push(i) : ln(i) && ((a & He) !== 0 && u(this, lt).add(i), Pt(i));
|
|
423
|
+
var d = i.first;
|
|
394
424
|
if (d !== null) {
|
|
395
|
-
|
|
425
|
+
i = d;
|
|
396
426
|
continue;
|
|
397
427
|
}
|
|
398
428
|
}
|
|
399
|
-
var h =
|
|
400
|
-
for (
|
|
401
|
-
h === s && (s = null),
|
|
429
|
+
var h = i.parent;
|
|
430
|
+
for (i = i.next; i === null && h !== null; )
|
|
431
|
+
h === s && (s = null), i = h.next, h = h.parent;
|
|
402
432
|
}
|
|
403
433
|
}, /**
|
|
404
434
|
* @param {Effect[]} effects
|
|
405
435
|
*/
|
|
406
|
-
|
|
436
|
+
Kn = function(t) {
|
|
407
437
|
for (var n = 0; n < t.length; n += 1)
|
|
408
|
-
|
|
409
|
-
},
|
|
410
|
-
var
|
|
411
|
-
if (
|
|
438
|
+
fi(t[n], u(this, tn), u(this, lt));
|
|
439
|
+
}, ci = function() {
|
|
440
|
+
var i;
|
|
441
|
+
if (fn.size > 1) {
|
|
412
442
|
this.previous.clear();
|
|
413
443
|
var t = ve, n = !0;
|
|
414
|
-
for (const s of
|
|
444
|
+
for (const s of fn) {
|
|
415
445
|
if (s === this) {
|
|
416
446
|
n = !1;
|
|
417
447
|
continue;
|
|
418
448
|
}
|
|
419
|
-
const
|
|
449
|
+
const a = [];
|
|
420
450
|
for (const [o, c] of this.current) {
|
|
421
451
|
if (s.current.has(o))
|
|
422
452
|
if (n && c !== s.current.get(o))
|
|
423
453
|
s.current.set(o, c);
|
|
424
454
|
else
|
|
425
455
|
continue;
|
|
426
|
-
|
|
456
|
+
a.push(o);
|
|
427
457
|
}
|
|
428
|
-
if (
|
|
458
|
+
if (a.length === 0)
|
|
429
459
|
continue;
|
|
430
|
-
const
|
|
431
|
-
if (
|
|
432
|
-
var
|
|
433
|
-
|
|
460
|
+
const l = [...s.current.keys()].filter((o) => !this.current.has(o));
|
|
461
|
+
if (l.length > 0) {
|
|
462
|
+
var r = W;
|
|
463
|
+
W = [];
|
|
434
464
|
const o = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Map();
|
|
435
|
-
for (const d of
|
|
436
|
-
|
|
437
|
-
if (
|
|
438
|
-
|
|
439
|
-
for (const d of
|
|
440
|
-
F(
|
|
465
|
+
for (const d of a)
|
|
466
|
+
hi(d, l, o, c);
|
|
467
|
+
if (W.length > 0) {
|
|
468
|
+
O = s, s.apply();
|
|
469
|
+
for (const d of W)
|
|
470
|
+
F(i = s, Se, qn).call(i, d, [], []);
|
|
441
471
|
s.deactivate();
|
|
442
472
|
}
|
|
443
|
-
|
|
473
|
+
W = r;
|
|
444
474
|
}
|
|
445
475
|
}
|
|
446
|
-
|
|
476
|
+
O = null, ve = t;
|
|
447
477
|
}
|
|
448
|
-
this.committed = !0,
|
|
478
|
+
this.committed = !0, fn.delete(this);
|
|
449
479
|
};
|
|
450
|
-
let
|
|
451
|
-
function
|
|
452
|
-
var t =
|
|
453
|
-
|
|
480
|
+
let je = yr;
|
|
481
|
+
function ue(e) {
|
|
482
|
+
var t = Xt;
|
|
483
|
+
Xt = !0;
|
|
454
484
|
try {
|
|
455
485
|
for (var n; ; ) {
|
|
456
|
-
if (
|
|
486
|
+
if (Ks(), W.length === 0 && (O?.flush(), W.length === 0))
|
|
457
487
|
return Nn = null, /** @type {T} */
|
|
458
488
|
n;
|
|
459
|
-
|
|
489
|
+
di();
|
|
460
490
|
}
|
|
461
491
|
} finally {
|
|
462
|
-
|
|
492
|
+
Xt = t;
|
|
463
493
|
}
|
|
464
494
|
}
|
|
465
|
-
function
|
|
466
|
-
|
|
495
|
+
function di() {
|
|
496
|
+
Un = !0;
|
|
467
497
|
var e = null;
|
|
468
498
|
try {
|
|
469
|
-
for (var t = 0;
|
|
470
|
-
var n =
|
|
499
|
+
for (var t = 0; W.length > 0; ) {
|
|
500
|
+
var n = je.ensure();
|
|
471
501
|
if (t++ > 1e3) {
|
|
472
|
-
var
|
|
473
|
-
|
|
502
|
+
var r, i;
|
|
503
|
+
Xs();
|
|
474
504
|
}
|
|
475
|
-
n.process(
|
|
505
|
+
n.process(W), We.clear();
|
|
476
506
|
}
|
|
477
507
|
} finally {
|
|
478
|
-
|
|
508
|
+
W = [], Un = !1, Nn = null;
|
|
479
509
|
}
|
|
480
510
|
}
|
|
481
|
-
function
|
|
511
|
+
function Xs() {
|
|
482
512
|
try {
|
|
483
|
-
|
|
513
|
+
zs();
|
|
484
514
|
} catch (e) {
|
|
485
515
|
Lt(e, Nn);
|
|
486
516
|
}
|
|
487
517
|
}
|
|
488
518
|
let Oe = null;
|
|
489
|
-
function
|
|
519
|
+
function Nr(e) {
|
|
490
520
|
var t = e.length;
|
|
491
521
|
if (t !== 0) {
|
|
492
522
|
for (var n = 0; n < t; ) {
|
|
493
|
-
var
|
|
494
|
-
if ((
|
|
523
|
+
var r = e[n++];
|
|
524
|
+
if ((r.f & (Be | te)) === 0 && ln(r) && (Oe = /* @__PURE__ */ new Set(), Pt(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Oi(r), Oe?.size > 0)) {
|
|
495
525
|
We.clear();
|
|
496
|
-
for (const
|
|
497
|
-
if ((
|
|
498
|
-
const s = [
|
|
499
|
-
let
|
|
500
|
-
for (;
|
|
501
|
-
Oe.has(
|
|
502
|
-
for (let
|
|
503
|
-
const o = s[
|
|
504
|
-
(o.f & (
|
|
526
|
+
for (const i of Oe) {
|
|
527
|
+
if ((i.f & (Be | te)) !== 0) continue;
|
|
528
|
+
const s = [i];
|
|
529
|
+
let a = i.parent;
|
|
530
|
+
for (; a !== null; )
|
|
531
|
+
Oe.has(a) && (Oe.delete(a), s.push(a)), a = a.parent;
|
|
532
|
+
for (let l = s.length - 1; l >= 0; l--) {
|
|
533
|
+
const o = s[l];
|
|
534
|
+
(o.f & (Be | te)) === 0 && Pt(o);
|
|
505
535
|
}
|
|
506
536
|
}
|
|
507
537
|
Oe.clear();
|
|
@@ -510,117 +540,117 @@ function Mr(e) {
|
|
|
510
540
|
Oe = null;
|
|
511
541
|
}
|
|
512
542
|
}
|
|
513
|
-
function
|
|
543
|
+
function hi(e, t, n, r) {
|
|
514
544
|
if (!n.has(e) && (n.add(e), e.reactions !== null))
|
|
515
|
-
for (const
|
|
516
|
-
const s =
|
|
517
|
-
(s &
|
|
545
|
+
for (const i of e.reactions) {
|
|
546
|
+
const s = i.f;
|
|
547
|
+
(s & H) !== 0 ? hi(
|
|
518
548
|
/** @type {Derived} */
|
|
519
|
-
|
|
549
|
+
i,
|
|
520
550
|
t,
|
|
521
551
|
n,
|
|
522
|
-
i
|
|
523
|
-
) : (s & (lr | je)) !== 0 && (s & G) === 0 && fi(r, t, i) && (D(r, G), ze(
|
|
524
|
-
/** @type {Effect} */
|
|
525
552
|
r
|
|
553
|
+
) : (s & (ar | He)) !== 0 && (s & G) === 0 && vi(i, t, r) && (L(i, G), pe(
|
|
554
|
+
/** @type {Effect} */
|
|
555
|
+
i
|
|
526
556
|
));
|
|
527
557
|
}
|
|
528
558
|
}
|
|
529
|
-
function
|
|
530
|
-
const
|
|
531
|
-
if (
|
|
559
|
+
function vi(e, t, n) {
|
|
560
|
+
const r = n.get(e);
|
|
561
|
+
if (r !== void 0) return r;
|
|
532
562
|
if (e.deps !== null)
|
|
533
|
-
for (const
|
|
534
|
-
if (
|
|
563
|
+
for (const i of e.deps) {
|
|
564
|
+
if (Rt.call(t, i))
|
|
535
565
|
return !0;
|
|
536
|
-
if ((
|
|
566
|
+
if ((i.f & H) !== 0 && vi(
|
|
537
567
|
/** @type {Derived} */
|
|
538
|
-
|
|
568
|
+
i,
|
|
539
569
|
t,
|
|
540
570
|
n
|
|
541
571
|
))
|
|
542
572
|
return n.set(
|
|
543
573
|
/** @type {Derived} */
|
|
544
|
-
|
|
574
|
+
i,
|
|
545
575
|
!0
|
|
546
576
|
), !0;
|
|
547
577
|
}
|
|
548
578
|
return n.set(e, !1), !1;
|
|
549
579
|
}
|
|
550
|
-
function
|
|
580
|
+
function pe(e) {
|
|
551
581
|
for (var t = Nn = e; t.parent !== null; ) {
|
|
552
582
|
t = t.parent;
|
|
553
583
|
var n = t.f;
|
|
554
|
-
if (
|
|
584
|
+
if (Un && t === T && (n & He) !== 0 && (n & ti) === 0)
|
|
555
585
|
return;
|
|
556
|
-
if ((n & (
|
|
557
|
-
if ((n &
|
|
558
|
-
t.f ^=
|
|
586
|
+
if ((n & (Qe | we)) !== 0) {
|
|
587
|
+
if ((n & B) === 0) return;
|
|
588
|
+
t.f ^= B;
|
|
559
589
|
}
|
|
560
590
|
}
|
|
561
|
-
|
|
591
|
+
W.push(t);
|
|
562
592
|
}
|
|
563
|
-
function
|
|
564
|
-
if (!((e.f &
|
|
565
|
-
|
|
566
|
-
for (var
|
|
567
|
-
|
|
593
|
+
function pi(e, t) {
|
|
594
|
+
if (!((e.f & we) !== 0 && (e.f & B) !== 0)) {
|
|
595
|
+
(e.f & G) !== 0 ? t.d.push(e) : (e.f & me) !== 0 && t.m.push(e), L(e, B);
|
|
596
|
+
for (var n = e.first; n !== null; )
|
|
597
|
+
pi(n, t), n = n.next;
|
|
568
598
|
}
|
|
569
599
|
}
|
|
570
|
-
function
|
|
571
|
-
let t = 0, n =
|
|
600
|
+
function Js(e) {
|
|
601
|
+
let t = 0, n = pt(0), r;
|
|
572
602
|
return () => {
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
t -= 1, t === 0 && (
|
|
603
|
+
cr() && (f(n), dr(() => (t === 0 && (r = gr(() => e(() => Jt(n)))), t += 1, () => {
|
|
604
|
+
Ke(() => {
|
|
605
|
+
t -= 1, t === 0 && (r?.(), r = void 0, Jt(n));
|
|
576
606
|
});
|
|
577
607
|
})));
|
|
578
608
|
};
|
|
579
609
|
}
|
|
580
|
-
var
|
|
581
|
-
function
|
|
582
|
-
new
|
|
610
|
+
var Qs = Ot | gt | ei;
|
|
611
|
+
function Zs(e, t, n) {
|
|
612
|
+
new ea(e, t, n);
|
|
583
613
|
}
|
|
584
|
-
var
|
|
585
|
-
class
|
|
614
|
+
var Z, nn, $e, ot, Ee, ae, K, xe, Le, Ve, ut, De, Ct, ft, St, At, Ie, xn, D, gi, _i, Wn, pn, gn, Xn;
|
|
615
|
+
class ea {
|
|
586
616
|
/**
|
|
587
617
|
* @param {TemplateNode} node
|
|
588
618
|
* @param {BoundaryProps} props
|
|
589
619
|
* @param {((anchor: Node) => void)} children
|
|
590
620
|
*/
|
|
591
|
-
constructor(t, n,
|
|
592
|
-
|
|
621
|
+
constructor(t, n, r) {
|
|
622
|
+
y(this, D);
|
|
593
623
|
/** @type {Boundary | null} */
|
|
594
624
|
N(this, "parent");
|
|
595
625
|
N(this, "is_pending", !1);
|
|
596
626
|
/** @type {TemplateNode} */
|
|
597
|
-
|
|
627
|
+
y(this, Z);
|
|
598
628
|
/** @type {TemplateNode | null} */
|
|
599
|
-
|
|
629
|
+
y(this, nn, x ? k : null);
|
|
600
630
|
/** @type {BoundaryProps} */
|
|
601
|
-
|
|
631
|
+
y(this, $e);
|
|
602
632
|
/** @type {((anchor: Node) => void)} */
|
|
603
|
-
|
|
633
|
+
y(this, ot);
|
|
604
634
|
/** @type {Effect} */
|
|
605
|
-
|
|
635
|
+
y(this, Ee);
|
|
606
636
|
/** @type {Effect | null} */
|
|
607
|
-
|
|
637
|
+
y(this, ae, null);
|
|
608
638
|
/** @type {Effect | null} */
|
|
609
|
-
|
|
639
|
+
y(this, K, null);
|
|
610
640
|
/** @type {Effect | null} */
|
|
611
|
-
|
|
641
|
+
y(this, xe, null);
|
|
612
642
|
/** @type {DocumentFragment | null} */
|
|
613
|
-
|
|
643
|
+
y(this, Le, null);
|
|
614
644
|
/** @type {TemplateNode | null} */
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
645
|
+
y(this, Ve, null);
|
|
646
|
+
y(this, ut, 0);
|
|
647
|
+
y(this, De, 0);
|
|
648
|
+
y(this, Ct, !1);
|
|
649
|
+
y(this, ft, !1);
|
|
620
650
|
/** @type {Set<Effect>} */
|
|
621
|
-
|
|
651
|
+
y(this, St, /* @__PURE__ */ new Set());
|
|
622
652
|
/** @type {Set<Effect>} */
|
|
623
|
-
|
|
653
|
+
y(this, At, /* @__PURE__ */ new Set());
|
|
624
654
|
/**
|
|
625
655
|
* A source containing the number of pending async deriveds/expressions.
|
|
626
656
|
* Only created if `$effect.pending()` is used inside the boundary,
|
|
@@ -628,37 +658,37 @@ class Ks {
|
|
|
628
658
|
* calls followed by no-op flushes
|
|
629
659
|
* @type {Source<number> | null}
|
|
630
660
|
*/
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
b(this,
|
|
661
|
+
y(this, Ie, null);
|
|
662
|
+
y(this, xn, Js(() => (b(this, Ie, pt(u(this, ut))), () => {
|
|
663
|
+
b(this, Ie, null);
|
|
634
664
|
})));
|
|
635
|
-
b(this,
|
|
636
|
-
T.b, this.is_pending = !!
|
|
665
|
+
b(this, Z, t), b(this, $e, n), b(this, ot, r), this.parent = /** @type {Effect} */
|
|
666
|
+
T.b, this.is_pending = !!u(this, $e).pending, b(this, Ee, hr(() => {
|
|
637
667
|
if (T.b = this, x) {
|
|
638
|
-
const s =
|
|
639
|
-
|
|
640
|
-
s.nodeType ===
|
|
641
|
-
s.data ===
|
|
668
|
+
const s = u(this, nn);
|
|
669
|
+
an(), /** @type {Comment} */
|
|
670
|
+
s.nodeType === zt && /** @type {Comment} */
|
|
671
|
+
s.data === Tn ? F(this, D, _i).call(this) : (F(this, D, gi).call(this), u(this, De) === 0 && (this.is_pending = !1));
|
|
642
672
|
} else {
|
|
643
|
-
var
|
|
673
|
+
var i = F(this, D, Wn).call(this);
|
|
644
674
|
try {
|
|
645
|
-
b(this,
|
|
675
|
+
b(this, ae, oe(() => r(i)));
|
|
646
676
|
} catch (s) {
|
|
647
677
|
this.error(s);
|
|
648
678
|
}
|
|
649
|
-
|
|
679
|
+
u(this, De) > 0 ? F(this, D, gn).call(this) : this.is_pending = !1;
|
|
650
680
|
}
|
|
651
681
|
return () => {
|
|
652
|
-
|
|
682
|
+
u(this, Ve)?.remove();
|
|
653
683
|
};
|
|
654
|
-
},
|
|
684
|
+
}, Qs)), x && b(this, Z, k);
|
|
655
685
|
}
|
|
656
686
|
/**
|
|
657
687
|
* Defer an effect inside a pending boundary until the boundary resolves
|
|
658
688
|
* @param {Effect} effect
|
|
659
689
|
*/
|
|
660
690
|
defer_effect(t) {
|
|
661
|
-
|
|
691
|
+
fi(t, u(this, St), u(this, At));
|
|
662
692
|
}
|
|
663
693
|
/**
|
|
664
694
|
* Returns `false` if the effect exists inside a boundary whose pending snippet is shown
|
|
@@ -668,7 +698,7 @@ class Ks {
|
|
|
668
698
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
669
699
|
}
|
|
670
700
|
has_pending_snippet() {
|
|
671
|
-
return !!
|
|
701
|
+
return !!u(this, $e).pending;
|
|
672
702
|
}
|
|
673
703
|
/**
|
|
674
704
|
* Update the source that powers `$effect.pending()` inside this boundary,
|
|
@@ -677,108 +707,108 @@ class Ks {
|
|
|
677
707
|
* @param {1 | -1} d
|
|
678
708
|
*/
|
|
679
709
|
update_pending_count(t) {
|
|
680
|
-
F(this,
|
|
681
|
-
b(this,
|
|
710
|
+
F(this, D, Xn).call(this, t), b(this, ut, u(this, ut) + t), !(!u(this, Ie) || u(this, Ct)) && (b(this, Ct, !0), Ke(() => {
|
|
711
|
+
b(this, Ct, !1), u(this, Ie) && Dt(u(this, Ie), u(this, ut));
|
|
682
712
|
}));
|
|
683
713
|
}
|
|
684
714
|
get_effect_pending() {
|
|
685
|
-
return
|
|
715
|
+
return u(this, xn).call(this), f(
|
|
686
716
|
/** @type {Source<number>} */
|
|
687
|
-
|
|
717
|
+
u(this, Ie)
|
|
688
718
|
);
|
|
689
719
|
}
|
|
690
720
|
/** @param {unknown} error */
|
|
691
721
|
error(t) {
|
|
692
|
-
var n =
|
|
693
|
-
let
|
|
694
|
-
if (
|
|
722
|
+
var n = u(this, $e).onerror;
|
|
723
|
+
let r = u(this, $e).failed;
|
|
724
|
+
if (u(this, ft) || !n && !r)
|
|
695
725
|
throw t;
|
|
696
|
-
|
|
726
|
+
u(this, ae) && (q(u(this, ae)), b(this, ae, null)), u(this, K) && (q(u(this, K)), b(this, K, null)), u(this, xe) && (q(u(this, xe)), b(this, xe, null)), x && (ne(
|
|
697
727
|
/** @type {TemplateNode} */
|
|
698
|
-
|
|
699
|
-
),
|
|
700
|
-
var
|
|
701
|
-
const
|
|
702
|
-
if (
|
|
703
|
-
|
|
728
|
+
u(this, nn)
|
|
729
|
+
), vn(), ne(En()));
|
|
730
|
+
var i = !1, s = !1;
|
|
731
|
+
const a = () => {
|
|
732
|
+
if (i) {
|
|
733
|
+
Vs();
|
|
704
734
|
return;
|
|
705
735
|
}
|
|
706
|
-
|
|
707
|
-
b(this,
|
|
708
|
-
}), this.is_pending = this.has_pending_snippet(), b(this,
|
|
736
|
+
i = !0, s && Ys(), je.ensure(), b(this, ut, 0), u(this, xe) !== null && dt(u(this, xe), () => {
|
|
737
|
+
b(this, xe, null);
|
|
738
|
+
}), this.is_pending = this.has_pending_snippet(), b(this, ae, F(this, D, pn).call(this, () => (b(this, ft, !1), oe(() => u(this, ot).call(this, u(this, Z)))))), u(this, De) > 0 ? F(this, D, gn).call(this) : this.is_pending = !1;
|
|
709
739
|
};
|
|
710
|
-
|
|
740
|
+
Ke(() => {
|
|
711
741
|
try {
|
|
712
|
-
s = !0, n?.(t,
|
|
713
|
-
} catch (
|
|
714
|
-
Lt(
|
|
742
|
+
s = !0, n?.(t, a), s = !1;
|
|
743
|
+
} catch (l) {
|
|
744
|
+
Lt(l, u(this, Ee) && u(this, Ee).parent);
|
|
715
745
|
}
|
|
716
|
-
|
|
717
|
-
|
|
746
|
+
r && b(this, xe, F(this, D, pn).call(this, () => {
|
|
747
|
+
je.ensure(), b(this, ft, !0);
|
|
718
748
|
try {
|
|
719
749
|
return oe(() => {
|
|
720
|
-
|
|
721
|
-
|
|
750
|
+
r(
|
|
751
|
+
u(this, Z),
|
|
722
752
|
() => t,
|
|
723
|
-
() =>
|
|
753
|
+
() => a
|
|
724
754
|
);
|
|
725
755
|
});
|
|
726
|
-
} catch (
|
|
756
|
+
} catch (l) {
|
|
727
757
|
return Lt(
|
|
728
|
-
|
|
758
|
+
l,
|
|
729
759
|
/** @type {Effect} */
|
|
730
|
-
|
|
760
|
+
u(this, Ee).parent
|
|
731
761
|
), null;
|
|
732
762
|
} finally {
|
|
733
|
-
b(this,
|
|
763
|
+
b(this, ft, !1);
|
|
734
764
|
}
|
|
735
765
|
}));
|
|
736
766
|
});
|
|
737
767
|
}
|
|
738
768
|
}
|
|
739
|
-
|
|
769
|
+
Z = new WeakMap(), nn = new WeakMap(), $e = new WeakMap(), ot = new WeakMap(), Ee = new WeakMap(), ae = new WeakMap(), K = new WeakMap(), xe = new WeakMap(), Le = new WeakMap(), Ve = new WeakMap(), ut = new WeakMap(), De = new WeakMap(), Ct = new WeakMap(), ft = new WeakMap(), St = new WeakMap(), At = new WeakMap(), Ie = new WeakMap(), xn = new WeakMap(), D = new WeakSet(), gi = function() {
|
|
740
770
|
try {
|
|
741
|
-
b(this,
|
|
771
|
+
b(this, ae, oe(() => u(this, ot).call(this, u(this, Z))));
|
|
742
772
|
} catch (t) {
|
|
743
773
|
this.error(t);
|
|
744
774
|
}
|
|
745
|
-
},
|
|
746
|
-
const t =
|
|
747
|
-
t && (b(this,
|
|
748
|
-
var n = F(this,
|
|
749
|
-
b(this,
|
|
775
|
+
}, _i = function() {
|
|
776
|
+
const t = u(this, $e).pending;
|
|
777
|
+
t && (b(this, K, oe(() => t(u(this, Z)))), Ke(() => {
|
|
778
|
+
var n = F(this, D, Wn).call(this);
|
|
779
|
+
b(this, ae, F(this, D, pn).call(this, () => (je.ensure(), oe(() => u(this, ot).call(this, n))))), u(this, De) > 0 ? F(this, D, gn).call(this) : (dt(
|
|
750
780
|
/** @type {Effect} */
|
|
751
|
-
|
|
781
|
+
u(this, K),
|
|
752
782
|
() => {
|
|
753
|
-
b(this,
|
|
783
|
+
b(this, K, null);
|
|
754
784
|
}
|
|
755
785
|
), this.is_pending = !1);
|
|
756
786
|
}));
|
|
757
|
-
},
|
|
758
|
-
var t =
|
|
759
|
-
return this.is_pending && (b(this,
|
|
787
|
+
}, Wn = function() {
|
|
788
|
+
var t = u(this, Z);
|
|
789
|
+
return this.is_pending && (b(this, Ve, be()), u(this, Z).before(u(this, Ve)), t = u(this, Ve)), t;
|
|
760
790
|
}, /**
|
|
761
791
|
* @param {() => Effect | null} fn
|
|
762
792
|
*/
|
|
763
|
-
|
|
764
|
-
var n = T,
|
|
765
|
-
|
|
793
|
+
pn = function(t) {
|
|
794
|
+
var n = T, r = $, i = re;
|
|
795
|
+
Ce(u(this, Ee)), de(u(this, Ee)), Nt(u(this, Ee).ctx);
|
|
766
796
|
try {
|
|
767
797
|
return t();
|
|
768
798
|
} catch (s) {
|
|
769
|
-
return
|
|
799
|
+
return oi(s), null;
|
|
770
800
|
} finally {
|
|
771
|
-
|
|
801
|
+
Ce(n), de(r), Nt(i);
|
|
772
802
|
}
|
|
773
|
-
},
|
|
803
|
+
}, gn = function() {
|
|
774
804
|
const t = (
|
|
775
805
|
/** @type {(anchor: Node) => void} */
|
|
776
|
-
|
|
806
|
+
u(this, $e).pending
|
|
777
807
|
);
|
|
778
|
-
|
|
808
|
+
u(this, ae) !== null && (b(this, Le, document.createDocumentFragment()), u(this, Le).append(
|
|
779
809
|
/** @type {TemplateNode} */
|
|
780
|
-
|
|
781
|
-
),
|
|
810
|
+
u(this, Ve)
|
|
811
|
+
), Di(u(this, ae), u(this, Le))), u(this, K) === null && b(this, K, oe(() => t(u(this, Z))));
|
|
782
812
|
}, /**
|
|
783
813
|
* Updates the pending count associated with the currently visible pending snippet,
|
|
784
814
|
* if any, such that we can replace the snippet with content once work is done
|
|
@@ -787,76 +817,76 @@ dn = function(t) {
|
|
|
787
817
|
Xn = function(t) {
|
|
788
818
|
var n;
|
|
789
819
|
if (!this.has_pending_snippet()) {
|
|
790
|
-
this.parent && F(n = this.parent,
|
|
820
|
+
this.parent && F(n = this.parent, D, Xn).call(n, t);
|
|
791
821
|
return;
|
|
792
822
|
}
|
|
793
|
-
if (b(this,
|
|
823
|
+
if (b(this, De, u(this, De) + t), u(this, De) === 0) {
|
|
794
824
|
this.is_pending = !1;
|
|
795
|
-
for (const
|
|
796
|
-
|
|
797
|
-
for (const
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
b(this,
|
|
801
|
-
}),
|
|
825
|
+
for (const r of u(this, St))
|
|
826
|
+
L(r, G), pe(r);
|
|
827
|
+
for (const r of u(this, At))
|
|
828
|
+
L(r, me), pe(r);
|
|
829
|
+
u(this, St).clear(), u(this, At).clear(), u(this, K) && dt(u(this, K), () => {
|
|
830
|
+
b(this, K, null);
|
|
831
|
+
}), u(this, Le) && (u(this, Z).before(u(this, Le)), b(this, Le, null));
|
|
802
832
|
}
|
|
803
833
|
};
|
|
804
|
-
function
|
|
805
|
-
const
|
|
806
|
-
var s = e.filter((
|
|
834
|
+
function ta(e, t, n, r) {
|
|
835
|
+
const i = Ln;
|
|
836
|
+
var s = e.filter((p) => !p.settled);
|
|
807
837
|
if (n.length === 0 && s.length === 0) {
|
|
808
|
-
|
|
838
|
+
r(t.map(i));
|
|
809
839
|
return;
|
|
810
840
|
}
|
|
811
|
-
var
|
|
841
|
+
var a = O, l = (
|
|
812
842
|
/** @type {Effect} */
|
|
813
843
|
T
|
|
814
|
-
), o =
|
|
815
|
-
function d(
|
|
844
|
+
), o = na(), c = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((p) => p.promise)) : null;
|
|
845
|
+
function d(p) {
|
|
816
846
|
o();
|
|
817
847
|
try {
|
|
818
|
-
|
|
819
|
-
} catch (
|
|
820
|
-
(
|
|
848
|
+
r(p);
|
|
849
|
+
} catch (g) {
|
|
850
|
+
(l.f & Be) === 0 && Lt(g, l);
|
|
821
851
|
}
|
|
822
|
-
|
|
852
|
+
a?.deactivate(), Jn();
|
|
823
853
|
}
|
|
824
854
|
if (n.length === 0) {
|
|
825
|
-
c.then(() => d(t.map(
|
|
855
|
+
c.then(() => d(t.map(i)));
|
|
826
856
|
return;
|
|
827
857
|
}
|
|
828
858
|
function h() {
|
|
829
|
-
o(), Promise.all(n.map((
|
|
859
|
+
o(), Promise.all(n.map((p) => /* @__PURE__ */ ra(p))).then((p) => d([...t.map(i), ...p])).catch((p) => Lt(p, l));
|
|
830
860
|
}
|
|
831
861
|
c ? c.then(h) : h();
|
|
832
862
|
}
|
|
833
|
-
function
|
|
834
|
-
var e = T, t =
|
|
863
|
+
function na() {
|
|
864
|
+
var e = T, t = $, n = re, r = O;
|
|
835
865
|
return function(s = !0) {
|
|
836
|
-
|
|
866
|
+
Ce(e), de(t), Nt(n), s && r?.activate();
|
|
837
867
|
};
|
|
838
868
|
}
|
|
839
869
|
function Jn() {
|
|
840
|
-
|
|
870
|
+
Ce(null), de(null), Nt(null);
|
|
841
871
|
}
|
|
842
872
|
// @__NO_SIDE_EFFECTS__
|
|
843
873
|
function Ln(e) {
|
|
844
|
-
var t =
|
|
874
|
+
var t = H | G, n = $ !== null && ($.f & H) !== 0 ? (
|
|
845
875
|
/** @type {Derived} */
|
|
846
|
-
|
|
876
|
+
$
|
|
847
877
|
) : null;
|
|
848
|
-
return T !== null && (T.f |=
|
|
878
|
+
return T !== null && (T.f |= gt), {
|
|
849
879
|
ctx: re,
|
|
850
880
|
deps: null,
|
|
851
881
|
effects: null,
|
|
852
|
-
equals:
|
|
882
|
+
equals: ii,
|
|
853
883
|
f: t,
|
|
854
884
|
fn: e,
|
|
855
885
|
reactions: null,
|
|
856
886
|
rv: 0,
|
|
857
887
|
v: (
|
|
858
888
|
/** @type {V} */
|
|
859
|
-
|
|
889
|
+
j
|
|
860
890
|
),
|
|
861
891
|
wv: 0,
|
|
862
892
|
parent: n ?? T,
|
|
@@ -864,92 +894,92 @@ function Ln(e) {
|
|
|
864
894
|
};
|
|
865
895
|
}
|
|
866
896
|
// @__NO_SIDE_EFFECTS__
|
|
867
|
-
function
|
|
868
|
-
let
|
|
897
|
+
function ra(e, t, n) {
|
|
898
|
+
let r = (
|
|
869
899
|
/** @type {Effect | null} */
|
|
870
900
|
T
|
|
871
901
|
);
|
|
872
|
-
|
|
873
|
-
var
|
|
902
|
+
r === null && Ls();
|
|
903
|
+
var i = (
|
|
874
904
|
/** @type {Boundary} */
|
|
875
|
-
|
|
905
|
+
r.b
|
|
876
906
|
), s = (
|
|
877
907
|
/** @type {Promise<V>} */
|
|
878
908
|
/** @type {unknown} */
|
|
879
909
|
void 0
|
|
880
|
-
),
|
|
910
|
+
), a = pt(
|
|
881
911
|
/** @type {V} */
|
|
882
|
-
|
|
883
|
-
),
|
|
884
|
-
return
|
|
885
|
-
var c =
|
|
912
|
+
j
|
|
913
|
+
), l = !$, o = /* @__PURE__ */ new Map();
|
|
914
|
+
return ga(() => {
|
|
915
|
+
var c = Qr();
|
|
886
916
|
s = c.promise;
|
|
887
917
|
try {
|
|
888
918
|
Promise.resolve(e()).then(c.resolve, c.reject).then(() => {
|
|
889
|
-
d ===
|
|
919
|
+
d === O && d.committed && d.deactivate(), Jn();
|
|
890
920
|
});
|
|
891
|
-
} catch (
|
|
892
|
-
c.reject(
|
|
921
|
+
} catch (g) {
|
|
922
|
+
c.reject(g), Jn();
|
|
893
923
|
}
|
|
894
924
|
var d = (
|
|
895
925
|
/** @type {Batch} */
|
|
896
|
-
|
|
926
|
+
O
|
|
897
927
|
);
|
|
898
|
-
if (
|
|
899
|
-
var h =
|
|
900
|
-
|
|
928
|
+
if (l) {
|
|
929
|
+
var h = i.is_rendered();
|
|
930
|
+
i.update_pending_count(1), d.increment(h), o.get(d)?.reject(rt), o.delete(d), o.set(d, c);
|
|
901
931
|
}
|
|
902
|
-
const
|
|
932
|
+
const p = (g, v = void 0) => {
|
|
903
933
|
if (d.activate(), v)
|
|
904
|
-
v !==
|
|
934
|
+
v !== rt && (a.f |= qe, Dt(a, v));
|
|
905
935
|
else {
|
|
906
|
-
(
|
|
907
|
-
for (const [
|
|
908
|
-
if (o.delete(
|
|
909
|
-
m.reject(
|
|
936
|
+
(a.f & qe) !== 0 && (a.f ^= qe), Dt(a, g);
|
|
937
|
+
for (const [_, m] of o) {
|
|
938
|
+
if (o.delete(_), _ === d) break;
|
|
939
|
+
m.reject(rt);
|
|
910
940
|
}
|
|
911
941
|
}
|
|
912
|
-
|
|
942
|
+
l && (i.update_pending_count(-1), d.decrement(h));
|
|
913
943
|
};
|
|
914
|
-
c.promise.then(
|
|
915
|
-
}),
|
|
944
|
+
c.promise.then(p, (g) => p(null, g || "unknown"));
|
|
945
|
+
}), ha(() => {
|
|
916
946
|
for (const c of o.values())
|
|
917
|
-
c.reject(
|
|
947
|
+
c.reject(rt);
|
|
918
948
|
}), new Promise((c) => {
|
|
919
949
|
function d(h) {
|
|
920
|
-
function
|
|
921
|
-
h === s ? c(
|
|
950
|
+
function p() {
|
|
951
|
+
h === s ? c(a) : d(s);
|
|
922
952
|
}
|
|
923
|
-
h.then(
|
|
953
|
+
h.then(p, p);
|
|
924
954
|
}
|
|
925
955
|
d(s);
|
|
926
956
|
});
|
|
927
957
|
}
|
|
928
958
|
// @__NO_SIDE_EFFECTS__
|
|
929
|
-
function
|
|
959
|
+
function ia(e) {
|
|
930
960
|
const t = /* @__PURE__ */ Ln(e);
|
|
931
|
-
return
|
|
961
|
+
return Ii(t), t;
|
|
932
962
|
}
|
|
933
963
|
// @__NO_SIDE_EFFECTS__
|
|
934
|
-
function
|
|
964
|
+
function sa(e) {
|
|
935
965
|
const t = /* @__PURE__ */ Ln(e);
|
|
936
|
-
return t.equals =
|
|
966
|
+
return t.equals = si, t;
|
|
937
967
|
}
|
|
938
|
-
function
|
|
968
|
+
function aa(e) {
|
|
939
969
|
var t = e.effects;
|
|
940
970
|
if (t !== null) {
|
|
941
971
|
e.effects = null;
|
|
942
972
|
for (var n = 0; n < t.length; n += 1)
|
|
943
|
-
|
|
973
|
+
q(
|
|
944
974
|
/** @type {Effect} */
|
|
945
975
|
t[n]
|
|
946
976
|
);
|
|
947
977
|
}
|
|
948
978
|
}
|
|
949
|
-
function
|
|
979
|
+
function la(e) {
|
|
950
980
|
for (var t = e.parent; t !== null; ) {
|
|
951
|
-
if ((t.f &
|
|
952
|
-
return (t.f &
|
|
981
|
+
if ((t.f & H) === 0)
|
|
982
|
+
return (t.f & Be) === 0 ? (
|
|
953
983
|
/** @type {Effect} */
|
|
954
984
|
t
|
|
955
985
|
) : null;
|
|
@@ -959,277 +989,287 @@ function tl(e) {
|
|
|
959
989
|
}
|
|
960
990
|
function or(e) {
|
|
961
991
|
var t, n = T;
|
|
962
|
-
|
|
992
|
+
Ce(la(e));
|
|
963
993
|
try {
|
|
964
|
-
e.f &= ~
|
|
994
|
+
e.f &= ~vt, aa(e), t = Bi(e);
|
|
965
995
|
} finally {
|
|
966
|
-
|
|
996
|
+
Ce(n);
|
|
967
997
|
}
|
|
968
998
|
return t;
|
|
969
999
|
}
|
|
970
|
-
function
|
|
1000
|
+
function mi(e) {
|
|
971
1001
|
var t = or(e);
|
|
972
|
-
if (!e.equals(t) && (e.wv =
|
|
973
|
-
|
|
1002
|
+
if (!e.equals(t) && (e.wv = Fi(), (!O?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
|
|
1003
|
+
L(e, B);
|
|
974
1004
|
return;
|
|
975
1005
|
}
|
|
976
|
-
|
|
1006
|
+
Je || (ve !== null ? (cr() || O?.is_fork) && ve.set(e, t) : lr(e));
|
|
1007
|
+
}
|
|
1008
|
+
function oa(e) {
|
|
1009
|
+
if (e.effects !== null)
|
|
1010
|
+
for (const t of e.effects)
|
|
1011
|
+
(t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(rt), t.teardown = Ss, t.ac = null, Zt(t, 0), vr(t));
|
|
1012
|
+
}
|
|
1013
|
+
function bi(e) {
|
|
1014
|
+
if (e.effects !== null)
|
|
1015
|
+
for (const t of e.effects)
|
|
1016
|
+
t.teardown && Pt(t);
|
|
977
1017
|
}
|
|
978
1018
|
let Qn = /* @__PURE__ */ new Set();
|
|
979
1019
|
const We = /* @__PURE__ */ new Map();
|
|
980
|
-
let
|
|
981
|
-
function
|
|
1020
|
+
let wi = !1;
|
|
1021
|
+
function pt(e, t) {
|
|
982
1022
|
var n = {
|
|
983
1023
|
f: 0,
|
|
984
1024
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
985
1025
|
v: e,
|
|
986
1026
|
reactions: null,
|
|
987
|
-
equals:
|
|
1027
|
+
equals: ii,
|
|
988
1028
|
rv: 0,
|
|
989
1029
|
wv: 0
|
|
990
1030
|
};
|
|
991
1031
|
return n;
|
|
992
1032
|
}
|
|
993
1033
|
// @__NO_SIDE_EFFECTS__
|
|
994
|
-
function
|
|
995
|
-
const n =
|
|
996
|
-
return
|
|
1034
|
+
function R(e, t) {
|
|
1035
|
+
const n = pt(e);
|
|
1036
|
+
return Ii(n), n;
|
|
997
1037
|
}
|
|
998
1038
|
// @__NO_SIDE_EFFECTS__
|
|
999
|
-
function
|
|
1000
|
-
const
|
|
1001
|
-
return t || (
|
|
1039
|
+
function yi(e, t = !1, n = !0) {
|
|
1040
|
+
const r = pt(e);
|
|
1041
|
+
return t || (r.equals = si), r;
|
|
1002
1042
|
}
|
|
1003
1043
|
function E(e, t, n = !1) {
|
|
1004
|
-
|
|
1044
|
+
$ !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
1005
1045
|
// to ensure we error if state is set inside an inspect effect
|
|
1006
|
-
(!
|
|
1007
|
-
let
|
|
1008
|
-
return
|
|
1046
|
+
(!ge || ($.f & Or) !== 0) && ai() && ($.f & (H | He | ar | Or)) !== 0 && (ce === null || !Rt.call(ce, e)) && Gs();
|
|
1047
|
+
let r = n ? ze(t) : t;
|
|
1048
|
+
return Dt(e, r);
|
|
1009
1049
|
}
|
|
1010
|
-
function
|
|
1050
|
+
function Dt(e, t) {
|
|
1011
1051
|
if (!e.equals(t)) {
|
|
1012
1052
|
var n = e.v;
|
|
1013
|
-
|
|
1014
|
-
var
|
|
1015
|
-
if (
|
|
1016
|
-
const
|
|
1053
|
+
Je ? We.set(e, t) : We.set(e, n), e.v = t;
|
|
1054
|
+
var r = je.ensure();
|
|
1055
|
+
if (r.capture(e, n), (e.f & H) !== 0) {
|
|
1056
|
+
const i = (
|
|
1017
1057
|
/** @type {Derived} */
|
|
1018
1058
|
e
|
|
1019
1059
|
);
|
|
1020
|
-
(e.f & G) !== 0 && or(
|
|
1060
|
+
(e.f & G) !== 0 && or(i), lr(i);
|
|
1021
1061
|
}
|
|
1022
|
-
e.wv =
|
|
1062
|
+
e.wv = Fi(), $i(e, G), T !== null && (T.f & B) !== 0 && (T.f & (we | Qe)) === 0 && (se === null ? ba([e]) : se.push(e)), !r.is_fork && Qn.size > 0 && !wi && ua();
|
|
1023
1063
|
}
|
|
1024
1064
|
return t;
|
|
1025
1065
|
}
|
|
1026
|
-
function
|
|
1027
|
-
|
|
1066
|
+
function ua() {
|
|
1067
|
+
wi = !1;
|
|
1028
1068
|
for (const e of Qn)
|
|
1029
|
-
(e.f &
|
|
1069
|
+
(e.f & B) !== 0 && L(e, me), ln(e) && Pt(e);
|
|
1030
1070
|
Qn.clear();
|
|
1031
1071
|
}
|
|
1032
|
-
function
|
|
1072
|
+
function Jt(e) {
|
|
1033
1073
|
E(e, e.v + 1);
|
|
1034
1074
|
}
|
|
1035
|
-
function
|
|
1075
|
+
function $i(e, t) {
|
|
1036
1076
|
var n = e.reactions;
|
|
1037
1077
|
if (n !== null)
|
|
1038
|
-
for (var
|
|
1039
|
-
var s = n[
|
|
1040
|
-
if (
|
|
1078
|
+
for (var r = n.length, i = 0; i < r; i++) {
|
|
1079
|
+
var s = n[i], a = s.f, l = (a & G) === 0;
|
|
1080
|
+
if (l && L(s, t), (a & H) !== 0) {
|
|
1041
1081
|
var o = (
|
|
1042
1082
|
/** @type {Derived} */
|
|
1043
1083
|
s
|
|
1044
1084
|
);
|
|
1045
|
-
ve?.delete(o), (
|
|
1046
|
-
} else
|
|
1085
|
+
ve?.delete(o), (a & vt) === 0 && (a & fe && (s.f |= vt), $i(o, me));
|
|
1086
|
+
} else l && ((a & He) !== 0 && Oe !== null && Oe.add(
|
|
1047
1087
|
/** @type {Effect} */
|
|
1048
1088
|
s
|
|
1049
|
-
),
|
|
1089
|
+
), pe(
|
|
1050
1090
|
/** @type {Effect} */
|
|
1051
1091
|
s
|
|
1052
1092
|
));
|
|
1053
1093
|
}
|
|
1054
1094
|
}
|
|
1055
|
-
function
|
|
1056
|
-
if (typeof e != "object" || e === null ||
|
|
1095
|
+
function ze(e) {
|
|
1096
|
+
if (typeof e != "object" || e === null || hn in e)
|
|
1057
1097
|
return e;
|
|
1058
|
-
const t =
|
|
1059
|
-
if (t !==
|
|
1098
|
+
const t = Jr(e);
|
|
1099
|
+
if (t !== Ts && t !== Cs)
|
|
1060
1100
|
return e;
|
|
1061
|
-
var n = /* @__PURE__ */ new Map(),
|
|
1062
|
-
if (
|
|
1063
|
-
return
|
|
1064
|
-
var o =
|
|
1101
|
+
var n = /* @__PURE__ */ new Map(), r = Xr(e), i = /* @__PURE__ */ R(0), s = ht, a = (l) => {
|
|
1102
|
+
if (ht === s)
|
|
1103
|
+
return l();
|
|
1104
|
+
var o = $, c = ht;
|
|
1065
1105
|
de(null), Pr(s);
|
|
1066
|
-
var d =
|
|
1106
|
+
var d = l();
|
|
1067
1107
|
return de(o), Pr(c), d;
|
|
1068
1108
|
};
|
|
1069
|
-
return
|
|
1109
|
+
return r && n.set("length", /* @__PURE__ */ R(
|
|
1070
1110
|
/** @type {any[]} */
|
|
1071
1111
|
e.length
|
|
1072
1112
|
)), new Proxy(
|
|
1073
1113
|
/** @type {any} */
|
|
1074
1114
|
e,
|
|
1075
1115
|
{
|
|
1076
|
-
defineProperty(
|
|
1077
|
-
(!("value" in c) || c.configurable === !1 || c.enumerable === !1 || c.writable === !1) &&
|
|
1116
|
+
defineProperty(l, o, c) {
|
|
1117
|
+
(!("value" in c) || c.configurable === !1 || c.enumerable === !1 || c.writable === !1) && js();
|
|
1078
1118
|
var d = n.get(o);
|
|
1079
|
-
return d === void 0 ?
|
|
1080
|
-
var h = /* @__PURE__ */
|
|
1119
|
+
return d === void 0 ? a(() => {
|
|
1120
|
+
var h = /* @__PURE__ */ R(c.value);
|
|
1081
1121
|
return n.set(o, h), h;
|
|
1082
1122
|
}) : E(d, c.value, !0), !0;
|
|
1083
1123
|
},
|
|
1084
|
-
deleteProperty(
|
|
1124
|
+
deleteProperty(l, o) {
|
|
1085
1125
|
var c = n.get(o);
|
|
1086
1126
|
if (c === void 0) {
|
|
1087
|
-
if (o in
|
|
1088
|
-
const d =
|
|
1089
|
-
n.set(o, d),
|
|
1127
|
+
if (o in l) {
|
|
1128
|
+
const d = a(() => /* @__PURE__ */ R(j));
|
|
1129
|
+
n.set(o, d), Jt(i);
|
|
1090
1130
|
}
|
|
1091
1131
|
} else
|
|
1092
|
-
E(c,
|
|
1132
|
+
E(c, j), Jt(i);
|
|
1093
1133
|
return !0;
|
|
1094
1134
|
},
|
|
1095
|
-
get(
|
|
1096
|
-
if (o ===
|
|
1135
|
+
get(l, o, c) {
|
|
1136
|
+
if (o === hn)
|
|
1097
1137
|
return e;
|
|
1098
|
-
var d = n.get(o), h = o in
|
|
1099
|
-
if (d === void 0 && (!h || wt(
|
|
1100
|
-
var
|
|
1138
|
+
var d = n.get(o), h = o in l;
|
|
1139
|
+
if (d === void 0 && (!h || wt(l, o)?.writable) && (d = a(() => {
|
|
1140
|
+
var g = ze(h ? l[o] : j), v = /* @__PURE__ */ R(g);
|
|
1101
1141
|
return v;
|
|
1102
1142
|
}), n.set(o, d)), d !== void 0) {
|
|
1103
|
-
var
|
|
1104
|
-
return
|
|
1143
|
+
var p = f(d);
|
|
1144
|
+
return p === j ? void 0 : p;
|
|
1105
1145
|
}
|
|
1106
|
-
return Reflect.get(
|
|
1146
|
+
return Reflect.get(l, o, c);
|
|
1107
1147
|
},
|
|
1108
|
-
getOwnPropertyDescriptor(
|
|
1109
|
-
var c = Reflect.getOwnPropertyDescriptor(
|
|
1148
|
+
getOwnPropertyDescriptor(l, o) {
|
|
1149
|
+
var c = Reflect.getOwnPropertyDescriptor(l, o);
|
|
1110
1150
|
if (c && "value" in c) {
|
|
1111
1151
|
var d = n.get(o);
|
|
1112
|
-
d && (c.value =
|
|
1152
|
+
d && (c.value = f(d));
|
|
1113
1153
|
} else if (c === void 0) {
|
|
1114
|
-
var h = n.get(o),
|
|
1115
|
-
if (h !== void 0 &&
|
|
1154
|
+
var h = n.get(o), p = h?.v;
|
|
1155
|
+
if (h !== void 0 && p !== j)
|
|
1116
1156
|
return {
|
|
1117
1157
|
enumerable: !0,
|
|
1118
1158
|
configurable: !0,
|
|
1119
|
-
value:
|
|
1159
|
+
value: p,
|
|
1120
1160
|
writable: !0
|
|
1121
1161
|
};
|
|
1122
1162
|
}
|
|
1123
1163
|
return c;
|
|
1124
1164
|
},
|
|
1125
|
-
has(
|
|
1126
|
-
if (o ===
|
|
1165
|
+
has(l, o) {
|
|
1166
|
+
if (o === hn)
|
|
1127
1167
|
return !0;
|
|
1128
|
-
var c = n.get(o), d = c !== void 0 && c.v !==
|
|
1129
|
-
if (c !== void 0 || T !== null && (!d || wt(
|
|
1130
|
-
c === void 0 && (c =
|
|
1131
|
-
var
|
|
1132
|
-
return
|
|
1168
|
+
var c = n.get(o), d = c !== void 0 && c.v !== j || Reflect.has(l, o);
|
|
1169
|
+
if (c !== void 0 || T !== null && (!d || wt(l, o)?.writable)) {
|
|
1170
|
+
c === void 0 && (c = a(() => {
|
|
1171
|
+
var p = d ? ze(l[o]) : j, g = /* @__PURE__ */ R(p);
|
|
1172
|
+
return g;
|
|
1133
1173
|
}), n.set(o, c));
|
|
1134
|
-
var h =
|
|
1135
|
-
if (h ===
|
|
1174
|
+
var h = f(c);
|
|
1175
|
+
if (h === j)
|
|
1136
1176
|
return !1;
|
|
1137
1177
|
}
|
|
1138
1178
|
return d;
|
|
1139
1179
|
},
|
|
1140
|
-
set(
|
|
1141
|
-
var h = n.get(o),
|
|
1142
|
-
if (
|
|
1143
|
-
for (var
|
|
1144
|
-
h.v;
|
|
1145
|
-
var v = n.get(
|
|
1146
|
-
v !== void 0 ? E(v,
|
|
1180
|
+
set(l, o, c, d) {
|
|
1181
|
+
var h = n.get(o), p = o in l;
|
|
1182
|
+
if (r && o === "length")
|
|
1183
|
+
for (var g = c; g < /** @type {Source<number>} */
|
|
1184
|
+
h.v; g += 1) {
|
|
1185
|
+
var v = n.get(g + "");
|
|
1186
|
+
v !== void 0 ? E(v, j) : g in l && (v = a(() => /* @__PURE__ */ R(j)), n.set(g + "", v));
|
|
1147
1187
|
}
|
|
1148
1188
|
if (h === void 0)
|
|
1149
|
-
(!
|
|
1189
|
+
(!p || wt(l, o)?.writable) && (h = a(() => /* @__PURE__ */ R(void 0)), E(h, ze(c)), n.set(o, h));
|
|
1150
1190
|
else {
|
|
1151
|
-
|
|
1152
|
-
var
|
|
1153
|
-
E(h,
|
|
1191
|
+
p = h.v !== j;
|
|
1192
|
+
var _ = a(() => ze(c));
|
|
1193
|
+
E(h, _);
|
|
1154
1194
|
}
|
|
1155
|
-
var m = Reflect.getOwnPropertyDescriptor(
|
|
1156
|
-
if (m?.set && m.set.call(d, c), !
|
|
1157
|
-
if (
|
|
1158
|
-
var
|
|
1195
|
+
var m = Reflect.getOwnPropertyDescriptor(l, o);
|
|
1196
|
+
if (m?.set && m.set.call(d, c), !p) {
|
|
1197
|
+
if (r && typeof o == "string") {
|
|
1198
|
+
var C = (
|
|
1159
1199
|
/** @type {Source<number>} */
|
|
1160
1200
|
n.get("length")
|
|
1161
|
-
),
|
|
1162
|
-
Number.isInteger(
|
|
1201
|
+
), S = Number(o);
|
|
1202
|
+
Number.isInteger(S) && S >= C.v && E(C, S + 1);
|
|
1163
1203
|
}
|
|
1164
|
-
|
|
1204
|
+
Jt(i);
|
|
1165
1205
|
}
|
|
1166
1206
|
return !0;
|
|
1167
1207
|
},
|
|
1168
|
-
ownKeys(
|
|
1169
|
-
|
|
1170
|
-
var o = Reflect.ownKeys(
|
|
1171
|
-
var
|
|
1172
|
-
return
|
|
1208
|
+
ownKeys(l) {
|
|
1209
|
+
f(i);
|
|
1210
|
+
var o = Reflect.ownKeys(l).filter((h) => {
|
|
1211
|
+
var p = n.get(h);
|
|
1212
|
+
return p === void 0 || p.v !== j;
|
|
1173
1213
|
});
|
|
1174
1214
|
for (var [c, d] of n)
|
|
1175
|
-
d.v !==
|
|
1215
|
+
d.v !== j && !(c in l) && o.push(c);
|
|
1176
1216
|
return o;
|
|
1177
1217
|
},
|
|
1178
1218
|
setPrototypeOf() {
|
|
1179
|
-
|
|
1219
|
+
Hs();
|
|
1180
1220
|
}
|
|
1181
1221
|
}
|
|
1182
1222
|
);
|
|
1183
1223
|
}
|
|
1184
|
-
var
|
|
1224
|
+
var Lr, Ei, xi, ki;
|
|
1185
1225
|
function Zn() {
|
|
1186
|
-
if (
|
|
1187
|
-
|
|
1226
|
+
if (Lr === void 0) {
|
|
1227
|
+
Lr = window, Ei = /Firefox/.test(navigator.userAgent);
|
|
1188
1228
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
1189
|
-
|
|
1229
|
+
xi = wt(t, "firstChild").get, ki = wt(t, "nextSibling").get, Rr(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Rr(n) && (n.__t = void 0);
|
|
1190
1230
|
}
|
|
1191
1231
|
}
|
|
1192
|
-
function
|
|
1232
|
+
function be(e = "") {
|
|
1193
1233
|
return document.createTextNode(e);
|
|
1194
1234
|
}
|
|
1195
1235
|
// @__NO_SIDE_EFFECTS__
|
|
1196
|
-
function
|
|
1236
|
+
function It(e) {
|
|
1197
1237
|
return (
|
|
1198
1238
|
/** @type {TemplateNode | null} */
|
|
1199
|
-
|
|
1239
|
+
xi.call(e)
|
|
1200
1240
|
);
|
|
1201
1241
|
}
|
|
1202
1242
|
// @__NO_SIDE_EFFECTS__
|
|
1203
|
-
function
|
|
1243
|
+
function Ae(e) {
|
|
1204
1244
|
return (
|
|
1205
1245
|
/** @type {TemplateNode | null} */
|
|
1206
|
-
|
|
1246
|
+
ki.call(e)
|
|
1207
1247
|
);
|
|
1208
1248
|
}
|
|
1209
|
-
function
|
|
1249
|
+
function U(e, t) {
|
|
1210
1250
|
if (!x)
|
|
1211
|
-
return /* @__PURE__ */
|
|
1212
|
-
var n = /* @__PURE__ */
|
|
1251
|
+
return /* @__PURE__ */ It(e);
|
|
1252
|
+
var n = /* @__PURE__ */ It(k);
|
|
1213
1253
|
if (n === null)
|
|
1214
|
-
n = k.appendChild(
|
|
1215
|
-
else if (t && n.nodeType !==
|
|
1216
|
-
var
|
|
1217
|
-
return n?.before(
|
|
1254
|
+
n = k.appendChild(be());
|
|
1255
|
+
else if (t && n.nodeType !== An) {
|
|
1256
|
+
var r = be();
|
|
1257
|
+
return n?.before(r), ne(r), r;
|
|
1218
1258
|
}
|
|
1219
1259
|
return t && fr(
|
|
1220
1260
|
/** @type {Text} */
|
|
1221
1261
|
n
|
|
1222
1262
|
), ne(n), n;
|
|
1223
1263
|
}
|
|
1224
|
-
function
|
|
1264
|
+
function tt(e, t = !1) {
|
|
1225
1265
|
if (!x) {
|
|
1226
|
-
var n = /* @__PURE__ */
|
|
1227
|
-
return n instanceof Comment && n.data === "" ? /* @__PURE__ */
|
|
1266
|
+
var n = /* @__PURE__ */ It(e);
|
|
1267
|
+
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Ae(n) : n;
|
|
1228
1268
|
}
|
|
1229
1269
|
if (t) {
|
|
1230
|
-
if (k?.nodeType !==
|
|
1231
|
-
var
|
|
1232
|
-
return k?.before(
|
|
1270
|
+
if (k?.nodeType !== An) {
|
|
1271
|
+
var r = be();
|
|
1272
|
+
return k?.before(r), ne(r), r;
|
|
1233
1273
|
}
|
|
1234
1274
|
fr(
|
|
1235
1275
|
/** @type {Text} */
|
|
@@ -1239,30 +1279,36 @@ function et(e, t = !1) {
|
|
|
1239
1279
|
return k;
|
|
1240
1280
|
}
|
|
1241
1281
|
function z(e, t = 1, n = !1) {
|
|
1242
|
-
let
|
|
1243
|
-
for (var
|
|
1244
|
-
|
|
1245
|
-
/* @__PURE__ */
|
|
1282
|
+
let r = x ? k : e;
|
|
1283
|
+
for (var i; t--; )
|
|
1284
|
+
i = r, r = /** @type {TemplateNode} */
|
|
1285
|
+
/* @__PURE__ */ Ae(r);
|
|
1246
1286
|
if (!x)
|
|
1247
|
-
return
|
|
1287
|
+
return r;
|
|
1248
1288
|
if (n) {
|
|
1249
|
-
if (
|
|
1250
|
-
var s =
|
|
1251
|
-
return
|
|
1289
|
+
if (r?.nodeType !== An) {
|
|
1290
|
+
var s = be();
|
|
1291
|
+
return r === null ? i?.after(s) : r.before(s), ne(s), s;
|
|
1252
1292
|
}
|
|
1253
1293
|
fr(
|
|
1254
1294
|
/** @type {Text} */
|
|
1255
|
-
|
|
1295
|
+
r
|
|
1256
1296
|
);
|
|
1257
1297
|
}
|
|
1258
|
-
return ne(
|
|
1298
|
+
return ne(r), r;
|
|
1259
1299
|
}
|
|
1260
|
-
function
|
|
1300
|
+
function Ti(e) {
|
|
1261
1301
|
e.textContent = "";
|
|
1262
1302
|
}
|
|
1263
|
-
function
|
|
1303
|
+
function Ci() {
|
|
1264
1304
|
return !1;
|
|
1265
1305
|
}
|
|
1306
|
+
function ur(e, t, n) {
|
|
1307
|
+
return (
|
|
1308
|
+
/** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
|
|
1309
|
+
document.createElementNS(Wr, e, void 0)
|
|
1310
|
+
);
|
|
1311
|
+
}
|
|
1266
1312
|
function fr(e) {
|
|
1267
1313
|
if (
|
|
1268
1314
|
/** @type {string} */
|
|
@@ -1270,13 +1316,13 @@ function fr(e) {
|
|
|
1270
1316
|
)
|
|
1271
1317
|
return;
|
|
1272
1318
|
let t = e.nextSibling;
|
|
1273
|
-
for (; t !== null && t.nodeType ===
|
|
1319
|
+
for (; t !== null && t.nodeType === An; )
|
|
1274
1320
|
t.remove(), e.nodeValue += /** @type {string} */
|
|
1275
1321
|
t.nodeValue, t = e.nextSibling;
|
|
1276
1322
|
}
|
|
1277
|
-
let
|
|
1278
|
-
function
|
|
1279
|
-
|
|
1323
|
+
let Dr = !1;
|
|
1324
|
+
function fa() {
|
|
1325
|
+
Dr || (Dr = !0, document.addEventListener(
|
|
1280
1326
|
"reset",
|
|
1281
1327
|
(e) => {
|
|
1282
1328
|
Promise.resolve().then(() => {
|
|
@@ -1293,36 +1339,36 @@ function rl() {
|
|
|
1293
1339
|
{ capture: !0 }
|
|
1294
1340
|
));
|
|
1295
1341
|
}
|
|
1296
|
-
function
|
|
1297
|
-
var t =
|
|
1298
|
-
de(null),
|
|
1342
|
+
function Si(e) {
|
|
1343
|
+
var t = $, n = T;
|
|
1344
|
+
de(null), Ce(null);
|
|
1299
1345
|
try {
|
|
1300
1346
|
return e();
|
|
1301
1347
|
} finally {
|
|
1302
|
-
de(t),
|
|
1348
|
+
de(t), Ce(n);
|
|
1303
1349
|
}
|
|
1304
1350
|
}
|
|
1305
|
-
function
|
|
1306
|
-
T === null && (
|
|
1351
|
+
function ca(e) {
|
|
1352
|
+
T === null && ($ === null && Fs(), Ps()), Je && Is();
|
|
1307
1353
|
}
|
|
1308
|
-
function
|
|
1354
|
+
function da(e, t) {
|
|
1309
1355
|
var n = t.last;
|
|
1310
1356
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1311
1357
|
}
|
|
1312
|
-
function
|
|
1313
|
-
var
|
|
1314
|
-
|
|
1315
|
-
var
|
|
1358
|
+
function Me(e, t, n) {
|
|
1359
|
+
var r = T;
|
|
1360
|
+
r !== null && (r.f & te) !== 0 && (e |= te);
|
|
1361
|
+
var i = {
|
|
1316
1362
|
ctx: re,
|
|
1317
1363
|
deps: null,
|
|
1318
1364
|
nodes: null,
|
|
1319
|
-
f: e | G |
|
|
1365
|
+
f: e | G | fe,
|
|
1320
1366
|
first: null,
|
|
1321
1367
|
fn: t,
|
|
1322
1368
|
last: null,
|
|
1323
1369
|
next: null,
|
|
1324
|
-
parent:
|
|
1325
|
-
b:
|
|
1370
|
+
parent: r,
|
|
1371
|
+
b: r && r.b,
|
|
1326
1372
|
prev: null,
|
|
1327
1373
|
teardown: null,
|
|
1328
1374
|
wv: 0,
|
|
@@ -1330,488 +1376,504 @@ function Ae(e, t, n) {
|
|
|
1330
1376
|
};
|
|
1331
1377
|
if (n)
|
|
1332
1378
|
try {
|
|
1333
|
-
|
|
1334
|
-
} catch (
|
|
1335
|
-
throw
|
|
1379
|
+
Pt(i);
|
|
1380
|
+
} catch (l) {
|
|
1381
|
+
throw q(i), l;
|
|
1336
1382
|
}
|
|
1337
|
-
else t !== null &&
|
|
1338
|
-
var s =
|
|
1383
|
+
else t !== null && pe(i);
|
|
1384
|
+
var s = i;
|
|
1339
1385
|
if (n && s.deps === null && s.teardown === null && s.nodes === null && s.first === s.last && // either `null`, or a singular child
|
|
1340
|
-
(s.f &
|
|
1341
|
-
var
|
|
1386
|
+
(s.f & gt) === 0 && (s = s.first, (e & He) !== 0 && (e & Ot) !== 0 && s !== null && (s.f |= Ot)), s !== null && (s.parent = r, r !== null && da(s, r), $ !== null && ($.f & H) !== 0 && (e & Qe) === 0)) {
|
|
1387
|
+
var a = (
|
|
1342
1388
|
/** @type {Derived} */
|
|
1343
|
-
|
|
1389
|
+
$
|
|
1344
1390
|
);
|
|
1345
|
-
(
|
|
1391
|
+
(a.effects ?? (a.effects = [])).push(s);
|
|
1346
1392
|
}
|
|
1347
|
-
return
|
|
1393
|
+
return i;
|
|
1348
1394
|
}
|
|
1349
|
-
function
|
|
1350
|
-
return
|
|
1395
|
+
function cr() {
|
|
1396
|
+
return $ !== null && !ge;
|
|
1351
1397
|
}
|
|
1352
|
-
function
|
|
1353
|
-
const t =
|
|
1354
|
-
return
|
|
1398
|
+
function ha(e) {
|
|
1399
|
+
const t = Me(Sn, null, !1);
|
|
1400
|
+
return L(t, B), t.teardown = e, t;
|
|
1355
1401
|
}
|
|
1356
|
-
function
|
|
1357
|
-
|
|
1402
|
+
function yt(e) {
|
|
1403
|
+
ca();
|
|
1358
1404
|
var t = (
|
|
1359
1405
|
/** @type {Effect} */
|
|
1360
1406
|
T.f
|
|
1361
|
-
), n =
|
|
1407
|
+
), n = !$ && (t & we) !== 0 && (t & Ft) === 0;
|
|
1362
1408
|
if (n) {
|
|
1363
|
-
var
|
|
1409
|
+
var r = (
|
|
1364
1410
|
/** @type {ComponentContext} */
|
|
1365
1411
|
re
|
|
1366
1412
|
);
|
|
1367
|
-
(
|
|
1413
|
+
(r.e ?? (r.e = [])).push(e);
|
|
1368
1414
|
} else
|
|
1369
|
-
return
|
|
1415
|
+
return Ai(e);
|
|
1370
1416
|
}
|
|
1371
|
-
function
|
|
1372
|
-
return
|
|
1417
|
+
function Ai(e) {
|
|
1418
|
+
return Me(Qt | Ms, e, !1);
|
|
1373
1419
|
}
|
|
1374
|
-
function
|
|
1375
|
-
|
|
1376
|
-
const t =
|
|
1420
|
+
function va(e) {
|
|
1421
|
+
je.ensure();
|
|
1422
|
+
const t = Me(Qe | gt, e, !0);
|
|
1377
1423
|
return () => {
|
|
1378
|
-
|
|
1424
|
+
q(t);
|
|
1379
1425
|
};
|
|
1380
1426
|
}
|
|
1381
|
-
function
|
|
1382
|
-
|
|
1383
|
-
const t =
|
|
1384
|
-
return (n = {}) => new Promise((
|
|
1385
|
-
n.outro ?
|
|
1386
|
-
|
|
1387
|
-
}) : (
|
|
1427
|
+
function pa(e) {
|
|
1428
|
+
je.ensure();
|
|
1429
|
+
const t = Me(Qe | gt, e, !0);
|
|
1430
|
+
return (n = {}) => new Promise((r) => {
|
|
1431
|
+
n.outro ? dt(t, () => {
|
|
1432
|
+
q(t), r(void 0);
|
|
1433
|
+
}) : (q(t), r(void 0));
|
|
1388
1434
|
});
|
|
1389
1435
|
}
|
|
1390
|
-
function
|
|
1391
|
-
return
|
|
1436
|
+
function Mi(e) {
|
|
1437
|
+
return Me(Qt, e, !1);
|
|
1392
1438
|
}
|
|
1393
|
-
function
|
|
1394
|
-
return
|
|
1439
|
+
function ga(e) {
|
|
1440
|
+
return Me(ar | gt, e, !0);
|
|
1395
1441
|
}
|
|
1396
|
-
function
|
|
1397
|
-
return
|
|
1442
|
+
function dr(e, t = 0) {
|
|
1443
|
+
return Me(Sn | t, e, !0);
|
|
1398
1444
|
}
|
|
1399
|
-
function
|
|
1400
|
-
|
|
1401
|
-
|
|
1445
|
+
function nt(e, t = [], n = [], r = []) {
|
|
1446
|
+
ta(r, t, n, (i) => {
|
|
1447
|
+
Me(Sn, () => e(...i.map(f)), !0);
|
|
1402
1448
|
});
|
|
1403
1449
|
}
|
|
1404
|
-
function
|
|
1405
|
-
var n =
|
|
1450
|
+
function hr(e, t = 0) {
|
|
1451
|
+
var n = Me(He | t, e, !0);
|
|
1406
1452
|
return n;
|
|
1407
1453
|
}
|
|
1408
1454
|
function oe(e) {
|
|
1409
|
-
return
|
|
1455
|
+
return Me(we | gt, e, !0);
|
|
1410
1456
|
}
|
|
1411
|
-
function
|
|
1457
|
+
function Ri(e) {
|
|
1412
1458
|
var t = e.teardown;
|
|
1413
1459
|
if (t !== null) {
|
|
1414
|
-
const n =
|
|
1415
|
-
|
|
1460
|
+
const n = Je, r = $;
|
|
1461
|
+
Ir(!0), de(null);
|
|
1416
1462
|
try {
|
|
1417
1463
|
t.call(null);
|
|
1418
1464
|
} finally {
|
|
1419
|
-
|
|
1465
|
+
Ir(n), de(r);
|
|
1420
1466
|
}
|
|
1421
1467
|
}
|
|
1422
1468
|
}
|
|
1423
|
-
function
|
|
1469
|
+
function vr(e, t = !1) {
|
|
1424
1470
|
var n = e.first;
|
|
1425
1471
|
for (e.first = e.last = null; n !== null; ) {
|
|
1426
|
-
const
|
|
1427
|
-
|
|
1428
|
-
|
|
1472
|
+
const i = n.ac;
|
|
1473
|
+
i !== null && Si(() => {
|
|
1474
|
+
i.abort(rt);
|
|
1429
1475
|
});
|
|
1430
|
-
var
|
|
1431
|
-
(n.f &
|
|
1476
|
+
var r = n.next;
|
|
1477
|
+
(n.f & Qe) !== 0 ? n.parent = null : q(n, t), n = r;
|
|
1432
1478
|
}
|
|
1433
1479
|
}
|
|
1434
|
-
function
|
|
1480
|
+
function _a(e) {
|
|
1435
1481
|
for (var t = e.first; t !== null; ) {
|
|
1436
1482
|
var n = t.next;
|
|
1437
|
-
(t.f &
|
|
1483
|
+
(t.f & we) === 0 && q(t), t = n;
|
|
1438
1484
|
}
|
|
1439
1485
|
}
|
|
1440
|
-
function
|
|
1486
|
+
function q(e, t = !0) {
|
|
1441
1487
|
var n = !1;
|
|
1442
|
-
(t || (e.f &
|
|
1488
|
+
(t || (e.f & ti) !== 0) && e.nodes !== null && e.nodes.end !== null && (ma(
|
|
1443
1489
|
e.nodes.start,
|
|
1444
1490
|
/** @type {TemplateNode} */
|
|
1445
1491
|
e.nodes.end
|
|
1446
|
-
), n = !0),
|
|
1447
|
-
var
|
|
1448
|
-
if (
|
|
1449
|
-
for (const s of
|
|
1492
|
+
), n = !0), vr(e, t && !n), Zt(e, 0), L(e, Be);
|
|
1493
|
+
var r = e.nodes && e.nodes.t;
|
|
1494
|
+
if (r !== null)
|
|
1495
|
+
for (const s of r)
|
|
1450
1496
|
s.stop();
|
|
1451
|
-
|
|
1452
|
-
var
|
|
1453
|
-
|
|
1497
|
+
Ri(e);
|
|
1498
|
+
var i = e.parent;
|
|
1499
|
+
i !== null && i.first !== null && Oi(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
|
|
1454
1500
|
}
|
|
1455
|
-
function
|
|
1501
|
+
function ma(e, t) {
|
|
1456
1502
|
for (; e !== null; ) {
|
|
1457
|
-
var n = e === t ? null : /* @__PURE__ */
|
|
1503
|
+
var n = e === t ? null : /* @__PURE__ */ Ae(e);
|
|
1458
1504
|
e.remove(), e = n;
|
|
1459
1505
|
}
|
|
1460
1506
|
}
|
|
1461
|
-
function
|
|
1462
|
-
var t = e.parent, n = e.prev,
|
|
1463
|
-
n !== null && (n.next =
|
|
1464
|
-
}
|
|
1465
|
-
function
|
|
1466
|
-
var
|
|
1467
|
-
|
|
1468
|
-
var
|
|
1469
|
-
n &&
|
|
1470
|
-
}, s =
|
|
1507
|
+
function Oi(e) {
|
|
1508
|
+
var t = e.parent, n = e.prev, r = e.next;
|
|
1509
|
+
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1510
|
+
}
|
|
1511
|
+
function dt(e, t, n = !0) {
|
|
1512
|
+
var r = [];
|
|
1513
|
+
Ni(e, r, !0);
|
|
1514
|
+
var i = () => {
|
|
1515
|
+
n && q(e), t && t();
|
|
1516
|
+
}, s = r.length;
|
|
1471
1517
|
if (s > 0) {
|
|
1472
|
-
var
|
|
1473
|
-
for (var
|
|
1474
|
-
|
|
1518
|
+
var a = () => --s || i();
|
|
1519
|
+
for (var l of r)
|
|
1520
|
+
l.out(a);
|
|
1475
1521
|
} else
|
|
1476
|
-
|
|
1522
|
+
i();
|
|
1477
1523
|
}
|
|
1478
|
-
function
|
|
1524
|
+
function Ni(e, t, n) {
|
|
1479
1525
|
if ((e.f & te) === 0) {
|
|
1480
1526
|
e.f ^= te;
|
|
1481
|
-
var
|
|
1482
|
-
if (
|
|
1483
|
-
for (const
|
|
1484
|
-
(
|
|
1485
|
-
for (var
|
|
1486
|
-
var s =
|
|
1527
|
+
var r = e.nodes && e.nodes.t;
|
|
1528
|
+
if (r !== null)
|
|
1529
|
+
for (const l of r)
|
|
1530
|
+
(l.is_global || n) && t.push(l);
|
|
1531
|
+
for (var i = e.first; i !== null; ) {
|
|
1532
|
+
var s = i.next, a = (i.f & Ot) !== 0 || // If this is a branch effect without a block effect parent,
|
|
1487
1533
|
// it means the parent block effect was pruned. In that case,
|
|
1488
1534
|
// transparency information was transferred to the branch effect.
|
|
1489
|
-
(
|
|
1490
|
-
|
|
1535
|
+
(i.f & we) !== 0 && (e.f & He) !== 0;
|
|
1536
|
+
Ni(i, t, a ? n : !1), i = s;
|
|
1491
1537
|
}
|
|
1492
1538
|
}
|
|
1493
1539
|
}
|
|
1494
|
-
function
|
|
1495
|
-
|
|
1540
|
+
function pr(e) {
|
|
1541
|
+
Li(e, !0);
|
|
1496
1542
|
}
|
|
1497
|
-
function
|
|
1543
|
+
function Li(e, t) {
|
|
1498
1544
|
if ((e.f & te) !== 0) {
|
|
1499
|
-
e.f ^= te, (e.f &
|
|
1545
|
+
e.f ^= te, (e.f & B) === 0 && (L(e, G), pe(e));
|
|
1500
1546
|
for (var n = e.first; n !== null; ) {
|
|
1501
|
-
var
|
|
1502
|
-
|
|
1547
|
+
var r = n.next, i = (n.f & Ot) !== 0 || (n.f & we) !== 0;
|
|
1548
|
+
Li(n, i ? t : !1), n = r;
|
|
1503
1549
|
}
|
|
1504
1550
|
var s = e.nodes && e.nodes.t;
|
|
1505
1551
|
if (s !== null)
|
|
1506
|
-
for (const
|
|
1507
|
-
(
|
|
1552
|
+
for (const a of s)
|
|
1553
|
+
(a.is_global || t) && a.in();
|
|
1508
1554
|
}
|
|
1509
1555
|
}
|
|
1510
|
-
function
|
|
1556
|
+
function Di(e, t) {
|
|
1511
1557
|
if (e.nodes)
|
|
1512
|
-
for (var n = e.nodes.start,
|
|
1513
|
-
var
|
|
1514
|
-
t.append(n), n =
|
|
1558
|
+
for (var n = e.nodes.start, r = e.nodes.end; n !== null; ) {
|
|
1559
|
+
var i = n === r ? null : /* @__PURE__ */ Ae(n);
|
|
1560
|
+
t.append(n), n = i;
|
|
1515
1561
|
}
|
|
1516
1562
|
}
|
|
1517
|
-
let
|
|
1518
|
-
function
|
|
1519
|
-
|
|
1563
|
+
let _n = !1, Je = !1;
|
|
1564
|
+
function Ir(e) {
|
|
1565
|
+
Je = e;
|
|
1520
1566
|
}
|
|
1521
|
-
let
|
|
1567
|
+
let $ = null, ge = !1;
|
|
1522
1568
|
function de(e) {
|
|
1523
|
-
|
|
1569
|
+
$ = e;
|
|
1524
1570
|
}
|
|
1525
1571
|
let T = null;
|
|
1526
|
-
function
|
|
1572
|
+
function Ce(e) {
|
|
1527
1573
|
T = e;
|
|
1528
1574
|
}
|
|
1529
1575
|
let ce = null;
|
|
1530
|
-
function
|
|
1531
|
-
|
|
1576
|
+
function Ii(e) {
|
|
1577
|
+
$ !== null && (ce === null ? ce = [e] : ce.push(e));
|
|
1532
1578
|
}
|
|
1533
|
-
let
|
|
1534
|
-
function
|
|
1579
|
+
let X = null, Q = 0, se = null;
|
|
1580
|
+
function ba(e) {
|
|
1535
1581
|
se = e;
|
|
1536
1582
|
}
|
|
1537
|
-
let
|
|
1583
|
+
let Pi = 1, st = 0, ht = st;
|
|
1538
1584
|
function Pr(e) {
|
|
1539
|
-
|
|
1585
|
+
ht = e;
|
|
1540
1586
|
}
|
|
1541
|
-
function
|
|
1542
|
-
return ++
|
|
1587
|
+
function Fi() {
|
|
1588
|
+
return ++Pi;
|
|
1543
1589
|
}
|
|
1544
|
-
function
|
|
1590
|
+
function ln(e) {
|
|
1545
1591
|
var t = e.f;
|
|
1546
1592
|
if ((t & G) !== 0)
|
|
1547
1593
|
return !0;
|
|
1548
|
-
if (t &
|
|
1594
|
+
if (t & H && (e.f &= ~vt), (t & me) !== 0) {
|
|
1549
1595
|
for (var n = (
|
|
1550
1596
|
/** @type {Value[]} */
|
|
1551
1597
|
e.deps
|
|
1552
|
-
),
|
|
1553
|
-
var s = n[
|
|
1554
|
-
if (
|
|
1598
|
+
), r = n.length, i = 0; i < r; i++) {
|
|
1599
|
+
var s = n[i];
|
|
1600
|
+
if (ln(
|
|
1555
1601
|
/** @type {Derived} */
|
|
1556
1602
|
s
|
|
1557
|
-
) &&
|
|
1603
|
+
) && mi(
|
|
1558
1604
|
/** @type {Derived} */
|
|
1559
1605
|
s
|
|
1560
1606
|
), s.wv > e.wv)
|
|
1561
1607
|
return !0;
|
|
1562
1608
|
}
|
|
1563
|
-
(t &
|
|
1609
|
+
(t & fe) !== 0 && // During time traveling we don't want to reset the status so that
|
|
1564
1610
|
// traversal of the graph in the other batches still happens
|
|
1565
|
-
ve === null &&
|
|
1611
|
+
ve === null && L(e, B);
|
|
1566
1612
|
}
|
|
1567
1613
|
return !1;
|
|
1568
1614
|
}
|
|
1569
|
-
function
|
|
1570
|
-
var
|
|
1571
|
-
if (
|
|
1572
|
-
for (var
|
|
1573
|
-
var s = i
|
|
1574
|
-
(s.f &
|
|
1615
|
+
function zi(e, t, n = !0) {
|
|
1616
|
+
var r = e.reactions;
|
|
1617
|
+
if (r !== null && !(ce !== null && Rt.call(ce, e)))
|
|
1618
|
+
for (var i = 0; i < r.length; i++) {
|
|
1619
|
+
var s = r[i];
|
|
1620
|
+
(s.f & H) !== 0 ? zi(
|
|
1575
1621
|
/** @type {Derived} */
|
|
1576
1622
|
s,
|
|
1577
1623
|
t,
|
|
1578
1624
|
!1
|
|
1579
|
-
) : t === s && (n ?
|
|
1625
|
+
) : t === s && (n ? L(s, G) : (s.f & B) !== 0 && L(s, me), pe(
|
|
1580
1626
|
/** @type {Effect} */
|
|
1581
1627
|
s
|
|
1582
1628
|
));
|
|
1583
1629
|
}
|
|
1584
1630
|
}
|
|
1585
|
-
function
|
|
1586
|
-
var
|
|
1587
|
-
var t =
|
|
1588
|
-
|
|
1589
|
-
null,
|
|
1590
|
-
e.ac.abort(
|
|
1631
|
+
function Bi(e) {
|
|
1632
|
+
var _;
|
|
1633
|
+
var t = X, n = Q, r = se, i = $, s = ce, a = re, l = ge, o = ht, c = e.f;
|
|
1634
|
+
X = /** @type {null | Value[]} */
|
|
1635
|
+
null, Q = 0, se = null, $ = (c & (we | Qe)) === 0 ? e : null, ce = null, Nt(e.ctx), ge = !1, ht = ++st, e.ac !== null && (Si(() => {
|
|
1636
|
+
e.ac.abort(rt);
|
|
1591
1637
|
}), e.ac = null);
|
|
1592
1638
|
try {
|
|
1593
|
-
e.f |=
|
|
1639
|
+
e.f |= Vn;
|
|
1594
1640
|
var d = (
|
|
1595
1641
|
/** @type {Function} */
|
|
1596
1642
|
e.fn
|
|
1597
|
-
), h = d()
|
|
1598
|
-
|
|
1643
|
+
), h = d();
|
|
1644
|
+
e.f |= Ft;
|
|
1645
|
+
var p = e.deps, g = O?.is_fork;
|
|
1646
|
+
if (X !== null) {
|
|
1599
1647
|
var v;
|
|
1600
|
-
if (
|
|
1601
|
-
for (
|
|
1602
|
-
|
|
1648
|
+
if (g || Zt(e, Q), p !== null && Q > 0)
|
|
1649
|
+
for (p.length = Q + X.length, v = 0; v < X.length; v++)
|
|
1650
|
+
p[Q + v] = X[v];
|
|
1603
1651
|
else
|
|
1604
|
-
e.deps =
|
|
1605
|
-
if (
|
|
1606
|
-
for (v =
|
|
1607
|
-
((
|
|
1608
|
-
} else !
|
|
1609
|
-
if (
|
|
1652
|
+
e.deps = p = X;
|
|
1653
|
+
if (cr() && (e.f & fe) !== 0)
|
|
1654
|
+
for (v = Q; v < p.length; v++)
|
|
1655
|
+
((_ = p[v]).reactions ?? (_.reactions = [])).push(e);
|
|
1656
|
+
} else !g && p !== null && Q < p.length && (Zt(e, Q), p.length = Q);
|
|
1657
|
+
if (ai() && se !== null && !ge && p !== null && (e.f & (H | me | G)) === 0)
|
|
1610
1658
|
for (v = 0; v < /** @type {Source[]} */
|
|
1611
1659
|
se.length; v++)
|
|
1612
|
-
|
|
1660
|
+
zi(
|
|
1613
1661
|
se[v],
|
|
1614
1662
|
/** @type {Effect} */
|
|
1615
1663
|
e
|
|
1616
1664
|
);
|
|
1617
|
-
if (
|
|
1618
|
-
if (
|
|
1665
|
+
if (i !== null && i !== e) {
|
|
1666
|
+
if (st++, i.deps !== null)
|
|
1619
1667
|
for (let m = 0; m < n; m += 1)
|
|
1620
|
-
|
|
1668
|
+
i.deps[m].rv = st;
|
|
1621
1669
|
if (t !== null)
|
|
1622
1670
|
for (const m of t)
|
|
1623
|
-
m.rv =
|
|
1624
|
-
se !== null && (
|
|
1671
|
+
m.rv = st;
|
|
1672
|
+
se !== null && (r === null ? r = se : r.push(.../** @type {Source[]} */
|
|
1625
1673
|
se));
|
|
1626
1674
|
}
|
|
1627
|
-
return (e.f &
|
|
1675
|
+
return (e.f & qe) !== 0 && (e.f ^= qe), h;
|
|
1628
1676
|
} catch (m) {
|
|
1629
|
-
return
|
|
1677
|
+
return oi(m);
|
|
1630
1678
|
} finally {
|
|
1631
|
-
e.f ^=
|
|
1679
|
+
e.f ^= Vn, X = t, Q = n, se = r, $ = i, ce = s, Nt(a), ge = l, ht = o;
|
|
1632
1680
|
}
|
|
1633
1681
|
}
|
|
1634
|
-
function
|
|
1682
|
+
function wa(e, t) {
|
|
1635
1683
|
let n = t.reactions;
|
|
1636
1684
|
if (n !== null) {
|
|
1637
|
-
var
|
|
1638
|
-
if (
|
|
1639
|
-
var
|
|
1640
|
-
|
|
1685
|
+
var r = xs.call(n, e);
|
|
1686
|
+
if (r !== -1) {
|
|
1687
|
+
var i = n.length - 1;
|
|
1688
|
+
i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
|
|
1641
1689
|
}
|
|
1642
1690
|
}
|
|
1643
|
-
if (n === null && (t.f &
|
|
1691
|
+
if (n === null && (t.f & H) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1644
1692
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1645
1693
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1646
|
-
(
|
|
1694
|
+
(X === null || !Rt.call(X, t))) {
|
|
1647
1695
|
var s = (
|
|
1648
1696
|
/** @type {Derived} */
|
|
1649
1697
|
t
|
|
1650
1698
|
);
|
|
1651
|
-
(s.f &
|
|
1699
|
+
(s.f & fe) !== 0 && (s.f ^= fe, s.f &= ~vt), lr(s), oa(s), Zt(s, 0);
|
|
1652
1700
|
}
|
|
1653
1701
|
}
|
|
1654
|
-
function
|
|
1702
|
+
function Zt(e, t) {
|
|
1655
1703
|
var n = e.deps;
|
|
1656
1704
|
if (n !== null)
|
|
1657
|
-
for (var
|
|
1658
|
-
|
|
1705
|
+
for (var r = t; r < n.length; r++)
|
|
1706
|
+
wa(e, n[r]);
|
|
1659
1707
|
}
|
|
1660
|
-
function
|
|
1708
|
+
function Pt(e) {
|
|
1661
1709
|
var t = e.f;
|
|
1662
|
-
if ((t &
|
|
1663
|
-
|
|
1664
|
-
var n = T,
|
|
1665
|
-
T = e,
|
|
1710
|
+
if ((t & Be) === 0) {
|
|
1711
|
+
L(e, B);
|
|
1712
|
+
var n = T, r = _n;
|
|
1713
|
+
T = e, _n = !0;
|
|
1666
1714
|
try {
|
|
1667
|
-
(t & (
|
|
1668
|
-
var
|
|
1669
|
-
e.teardown = typeof
|
|
1715
|
+
(t & (He | Zr)) !== 0 ? _a(e) : vr(e), Ri(e);
|
|
1716
|
+
var i = Bi(e);
|
|
1717
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = Pi;
|
|
1670
1718
|
var s;
|
|
1671
|
-
|
|
1719
|
+
Yn && qs && (e.f & G) !== 0 && e.deps;
|
|
1672
1720
|
} finally {
|
|
1673
|
-
|
|
1721
|
+
_n = r, T = n;
|
|
1674
1722
|
}
|
|
1675
1723
|
}
|
|
1676
1724
|
}
|
|
1677
|
-
function
|
|
1678
|
-
var t = e.f, n = (t &
|
|
1679
|
-
if (
|
|
1680
|
-
var
|
|
1681
|
-
if (!
|
|
1682
|
-
var
|
|
1683
|
-
if ((
|
|
1684
|
-
e.rv <
|
|
1725
|
+
function f(e) {
|
|
1726
|
+
var t = e.f, n = (t & H) !== 0;
|
|
1727
|
+
if ($ !== null && !ge) {
|
|
1728
|
+
var r = T !== null && (T.f & Be) !== 0;
|
|
1729
|
+
if (!r && (ce === null || !Rt.call(ce, e))) {
|
|
1730
|
+
var i = $.deps;
|
|
1731
|
+
if (($.f & Vn) !== 0)
|
|
1732
|
+
e.rv < st && (e.rv = st, X === null && i !== null && i[Q] === e ? Q++ : X === null ? X = [e] : X.push(e));
|
|
1685
1733
|
else {
|
|
1686
|
-
(
|
|
1734
|
+
($.deps ?? ($.deps = [])).push(e);
|
|
1687
1735
|
var s = e.reactions;
|
|
1688
|
-
s === null ? e.reactions = [
|
|
1736
|
+
s === null ? e.reactions = [$] : Rt.call(s, $) || s.push($);
|
|
1689
1737
|
}
|
|
1690
1738
|
}
|
|
1691
1739
|
}
|
|
1692
|
-
if (
|
|
1740
|
+
if (Je && We.has(e))
|
|
1693
1741
|
return We.get(e);
|
|
1694
1742
|
if (n) {
|
|
1695
|
-
var
|
|
1743
|
+
var a = (
|
|
1696
1744
|
/** @type {Derived} */
|
|
1697
1745
|
e
|
|
1698
1746
|
);
|
|
1699
|
-
if (
|
|
1700
|
-
var
|
|
1701
|
-
return ((
|
|
1747
|
+
if (Je) {
|
|
1748
|
+
var l = a.v;
|
|
1749
|
+
return ((a.f & B) === 0 && a.reactions !== null || Hi(a)) && (l = or(a)), We.set(a, l), l;
|
|
1702
1750
|
}
|
|
1703
|
-
var o = (
|
|
1704
|
-
|
|
1751
|
+
var o = (a.f & fe) === 0 && !ge && $ !== null && (_n || ($.f & fe) !== 0), c = (a.f & Ft) === 0;
|
|
1752
|
+
ln(a) && (o && (a.f |= fe), mi(a)), o && !c && (bi(a), ji(a));
|
|
1705
1753
|
}
|
|
1706
1754
|
if (ve?.has(e))
|
|
1707
1755
|
return ve.get(e);
|
|
1708
|
-
if ((e.f &
|
|
1756
|
+
if ((e.f & qe) !== 0)
|
|
1709
1757
|
throw e.v;
|
|
1710
1758
|
return e.v;
|
|
1711
1759
|
}
|
|
1712
|
-
function
|
|
1713
|
-
if (e.deps !== null)
|
|
1714
|
-
e.f |= ue;
|
|
1760
|
+
function ji(e) {
|
|
1761
|
+
if (e.f |= fe, e.deps !== null)
|
|
1715
1762
|
for (const t of e.deps)
|
|
1716
|
-
(t.reactions ?? (t.reactions = [])).push(e), (t.f &
|
|
1763
|
+
(t.reactions ?? (t.reactions = [])).push(e), (t.f & H) !== 0 && (t.f & fe) === 0 && (bi(
|
|
1717
1764
|
/** @type {Derived} */
|
|
1718
1765
|
t
|
|
1719
|
-
)
|
|
1720
|
-
|
|
1766
|
+
), ji(
|
|
1767
|
+
/** @type {Derived} */
|
|
1768
|
+
t
|
|
1769
|
+
));
|
|
1721
1770
|
}
|
|
1722
|
-
function
|
|
1723
|
-
if (e.v ===
|
|
1771
|
+
function Hi(e) {
|
|
1772
|
+
if (e.v === j) return !0;
|
|
1724
1773
|
if (e.deps === null) return !1;
|
|
1725
1774
|
for (const t of e.deps)
|
|
1726
|
-
if (We.has(t) || (t.f &
|
|
1775
|
+
if (We.has(t) || (t.f & H) !== 0 && Hi(
|
|
1727
1776
|
/** @type {Derived} */
|
|
1728
1777
|
t
|
|
1729
1778
|
))
|
|
1730
1779
|
return !0;
|
|
1731
1780
|
return !1;
|
|
1732
1781
|
}
|
|
1733
|
-
function
|
|
1734
|
-
var t =
|
|
1782
|
+
function gr(e) {
|
|
1783
|
+
var t = ge;
|
|
1735
1784
|
try {
|
|
1736
|
-
return
|
|
1785
|
+
return ge = !0, e();
|
|
1737
1786
|
} finally {
|
|
1738
|
-
|
|
1787
|
+
ge = t;
|
|
1739
1788
|
}
|
|
1740
1789
|
}
|
|
1741
|
-
const
|
|
1790
|
+
const Gi = /* @__PURE__ */ new Set(), er = /* @__PURE__ */ new Set();
|
|
1742
1791
|
function _r(e) {
|
|
1743
1792
|
for (var t = 0; t < e.length; t++)
|
|
1744
|
-
|
|
1793
|
+
Gi.add(e[t]);
|
|
1745
1794
|
for (var n of er)
|
|
1746
1795
|
n(e);
|
|
1747
1796
|
}
|
|
1748
|
-
let
|
|
1749
|
-
function
|
|
1797
|
+
let Fr = null;
|
|
1798
|
+
function zr(e) {
|
|
1750
1799
|
var t = this, n = (
|
|
1751
1800
|
/** @type {Node} */
|
|
1752
1801
|
t.ownerDocument
|
|
1753
|
-
),
|
|
1802
|
+
), r = e.type, i = e.composedPath?.() || [], s = (
|
|
1754
1803
|
/** @type {null | Element} */
|
|
1755
|
-
|
|
1804
|
+
i[0] || e.target
|
|
1756
1805
|
);
|
|
1757
|
-
|
|
1758
|
-
var
|
|
1759
|
-
if (
|
|
1760
|
-
var o =
|
|
1806
|
+
Fr = e;
|
|
1807
|
+
var a = 0, l = Fr === e && e.__root;
|
|
1808
|
+
if (l) {
|
|
1809
|
+
var o = i.indexOf(l);
|
|
1761
1810
|
if (o !== -1 && (t === document || t === /** @type {any} */
|
|
1762
1811
|
window)) {
|
|
1763
1812
|
e.__root = t;
|
|
1764
1813
|
return;
|
|
1765
1814
|
}
|
|
1766
|
-
var c =
|
|
1815
|
+
var c = i.indexOf(t);
|
|
1767
1816
|
if (c === -1)
|
|
1768
1817
|
return;
|
|
1769
|
-
o <= c && (
|
|
1818
|
+
o <= c && (a = o);
|
|
1770
1819
|
}
|
|
1771
1820
|
if (s = /** @type {Element} */
|
|
1772
|
-
|
|
1773
|
-
|
|
1821
|
+
i[a] || e.target, s !== t) {
|
|
1822
|
+
$n(e, "currentTarget", {
|
|
1774
1823
|
configurable: !0,
|
|
1775
1824
|
get() {
|
|
1776
1825
|
return s || n;
|
|
1777
1826
|
}
|
|
1778
1827
|
});
|
|
1779
|
-
var d =
|
|
1780
|
-
de(null),
|
|
1828
|
+
var d = $, h = T;
|
|
1829
|
+
de(null), Ce(null);
|
|
1781
1830
|
try {
|
|
1782
|
-
for (var
|
|
1831
|
+
for (var p, g = []; s !== null; ) {
|
|
1783
1832
|
var v = s.assignedSlot || s.parentNode || /** @type {any} */
|
|
1784
1833
|
s.host || null;
|
|
1785
1834
|
try {
|
|
1786
|
-
var
|
|
1787
|
-
|
|
1835
|
+
var _ = s["__" + r];
|
|
1836
|
+
_ != null && (!/** @type {any} */
|
|
1788
1837
|
s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1789
1838
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1790
|
-
e.target === s) &&
|
|
1839
|
+
e.target === s) && _.call(s, e);
|
|
1791
1840
|
} catch (m) {
|
|
1792
|
-
|
|
1841
|
+
p ? g.push(m) : p = m;
|
|
1793
1842
|
}
|
|
1794
1843
|
if (e.cancelBubble || v === t || v === null)
|
|
1795
1844
|
break;
|
|
1796
1845
|
s = v;
|
|
1797
1846
|
}
|
|
1798
|
-
if (
|
|
1799
|
-
for (let m of
|
|
1847
|
+
if (p) {
|
|
1848
|
+
for (let m of g)
|
|
1800
1849
|
queueMicrotask(() => {
|
|
1801
1850
|
throw m;
|
|
1802
1851
|
});
|
|
1803
|
-
throw
|
|
1852
|
+
throw p;
|
|
1804
1853
|
}
|
|
1805
1854
|
} finally {
|
|
1806
|
-
e.__root = t, delete e.currentTarget, de(d),
|
|
1855
|
+
e.__root = t, delete e.currentTarget, de(d), Ce(h);
|
|
1807
1856
|
}
|
|
1808
1857
|
}
|
|
1809
1858
|
}
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1859
|
+
const ya = /* @__PURE__ */ globalThis?.window?.trustedTypes?.createPolicy(
|
|
1860
|
+
"svelte-trusted-html",
|
|
1861
|
+
{
|
|
1862
|
+
/** @param {string} html */
|
|
1863
|
+
createHTML: (e) => e
|
|
1864
|
+
}
|
|
1865
|
+
);
|
|
1866
|
+
function $a(e) {
|
|
1867
|
+
return (
|
|
1868
|
+
/** @type {string} */
|
|
1869
|
+
ya?.createHTML(e) ?? e
|
|
1870
|
+
);
|
|
1813
1871
|
}
|
|
1814
|
-
function
|
|
1872
|
+
function Ea(e, t = !1) {
|
|
1873
|
+
var n = ur("template");
|
|
1874
|
+
return e = e.replaceAll("<!>", "<!---->"), n.innerHTML = t ? $a(e) : e, n.content;
|
|
1875
|
+
}
|
|
1876
|
+
function $t(e, t) {
|
|
1815
1877
|
var n = (
|
|
1816
1878
|
/** @type {Effect} */
|
|
1817
1879
|
T
|
|
@@ -1820,43 +1882,43 @@ function yt(e, t) {
|
|
|
1820
1882
|
}
|
|
1821
1883
|
// @__NO_SIDE_EFFECTS__
|
|
1822
1884
|
function _t(e, t) {
|
|
1823
|
-
var n = (t &
|
|
1885
|
+
var n = (t & $s) !== 0, r = (t & Es) !== 0, i, s = !e.startsWith("<!>");
|
|
1824
1886
|
return () => {
|
|
1825
1887
|
if (x)
|
|
1826
|
-
return
|
|
1827
|
-
|
|
1828
|
-
/* @__PURE__ */
|
|
1829
|
-
var
|
|
1888
|
+
return $t(k, null), k;
|
|
1889
|
+
i === void 0 && (i = Ea(s ? e : "<!>" + e, !0), n || (i = /** @type {TemplateNode} */
|
|
1890
|
+
/* @__PURE__ */ It(i)));
|
|
1891
|
+
var a = (
|
|
1830
1892
|
/** @type {TemplateNode} */
|
|
1831
|
-
|
|
1893
|
+
r || Ei ? document.importNode(i, !0) : i.cloneNode(!0)
|
|
1832
1894
|
);
|
|
1833
1895
|
if (n) {
|
|
1834
|
-
var
|
|
1896
|
+
var l = (
|
|
1835
1897
|
/** @type {TemplateNode} */
|
|
1836
|
-
/* @__PURE__ */
|
|
1898
|
+
/* @__PURE__ */ It(a)
|
|
1837
1899
|
), o = (
|
|
1838
1900
|
/** @type {TemplateNode} */
|
|
1839
|
-
|
|
1901
|
+
a.lastChild
|
|
1840
1902
|
);
|
|
1841
|
-
|
|
1903
|
+
$t(l, o);
|
|
1842
1904
|
} else
|
|
1843
|
-
|
|
1844
|
-
return
|
|
1905
|
+
$t(a, a);
|
|
1906
|
+
return a;
|
|
1845
1907
|
};
|
|
1846
1908
|
}
|
|
1847
|
-
function
|
|
1909
|
+
function Yi() {
|
|
1848
1910
|
if (x)
|
|
1849
|
-
return
|
|
1850
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), n =
|
|
1851
|
-
return e.append(t, n),
|
|
1911
|
+
return $t(k, null), k;
|
|
1912
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), n = be();
|
|
1913
|
+
return e.append(t, n), $t(t, n), e;
|
|
1852
1914
|
}
|
|
1853
|
-
function
|
|
1915
|
+
function Te(e, t) {
|
|
1854
1916
|
if (x) {
|
|
1855
1917
|
var n = (
|
|
1856
1918
|
/** @type {Effect & { nodes: EffectNodes }} */
|
|
1857
1919
|
T
|
|
1858
1920
|
);
|
|
1859
|
-
((n.f &
|
|
1921
|
+
((n.f & Ft) === 0 || n.nodes.end === null) && (n.nodes.end = k), an();
|
|
1860
1922
|
return;
|
|
1861
1923
|
}
|
|
1862
1924
|
e !== null && e.before(
|
|
@@ -1864,106 +1926,109 @@ function xe(e, t) {
|
|
|
1864
1926
|
t
|
|
1865
1927
|
);
|
|
1866
1928
|
}
|
|
1867
|
-
const
|
|
1868
|
-
function
|
|
1869
|
-
return
|
|
1929
|
+
const xa = ["touchstart", "touchmove"];
|
|
1930
|
+
function ka(e) {
|
|
1931
|
+
return xa.includes(e);
|
|
1870
1932
|
}
|
|
1871
|
-
function
|
|
1933
|
+
function mn(e, t) {
|
|
1872
1934
|
var n = t == null ? "" : typeof t == "object" ? t + "" : t;
|
|
1873
1935
|
n !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = n, e.nodeValue = n + "");
|
|
1874
1936
|
}
|
|
1875
|
-
function
|
|
1876
|
-
return
|
|
1937
|
+
function Vi(e, t) {
|
|
1938
|
+
return Ui(e, t);
|
|
1877
1939
|
}
|
|
1878
|
-
function
|
|
1940
|
+
function Ta(e, t) {
|
|
1879
1941
|
Zn(), t.intro = t.intro ?? !1;
|
|
1880
|
-
const n = t.target,
|
|
1942
|
+
const n = t.target, r = x, i = k;
|
|
1881
1943
|
try {
|
|
1882
|
-
for (var s = /* @__PURE__ */
|
|
1883
|
-
s.data !==
|
|
1884
|
-
s = /* @__PURE__ */
|
|
1944
|
+
for (var s = /* @__PURE__ */ It(n); s && (s.nodeType !== zt || /** @type {Comment} */
|
|
1945
|
+
s.data !== ir); )
|
|
1946
|
+
s = /* @__PURE__ */ Ae(s);
|
|
1885
1947
|
if (!s)
|
|
1886
|
-
throw
|
|
1887
|
-
|
|
1948
|
+
throw Mt;
|
|
1949
|
+
Fe(!0), ne(
|
|
1888
1950
|
/** @type {Comment} */
|
|
1889
1951
|
s
|
|
1890
1952
|
);
|
|
1891
|
-
const
|
|
1892
|
-
return
|
|
1893
|
-
|
|
1894
|
-
} catch (
|
|
1895
|
-
if (
|
|
1896
|
-
`).some((
|
|
1897
|
-
throw
|
|
1898
|
-
return
|
|
1953
|
+
const a = Ui(e, { ...t, anchor: s });
|
|
1954
|
+
return Fe(!1), /** @type {Exports} */
|
|
1955
|
+
a;
|
|
1956
|
+
} catch (a) {
|
|
1957
|
+
if (a instanceof Error && a.message.split(`
|
|
1958
|
+
`).some((l) => l.startsWith("https://svelte.dev/e/")))
|
|
1959
|
+
throw a;
|
|
1960
|
+
return a !== Mt && console.warn("Failed to hydrate: ", a), t.recover === !1 && Bs(), Zn(), Ti(n), Fe(!1), Vi(e, t);
|
|
1899
1961
|
} finally {
|
|
1900
|
-
|
|
1962
|
+
Fe(r), ne(i);
|
|
1901
1963
|
}
|
|
1902
1964
|
}
|
|
1903
|
-
const
|
|
1904
|
-
function
|
|
1965
|
+
const cn = /* @__PURE__ */ new Map();
|
|
1966
|
+
function Ui(e, { target: t, anchor: n, props: r = {}, events: i, context: s, intro: a = !0 }) {
|
|
1905
1967
|
Zn();
|
|
1906
|
-
var
|
|
1907
|
-
for (var
|
|
1908
|
-
var
|
|
1909
|
-
if (!
|
|
1910
|
-
|
|
1911
|
-
var v =
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1968
|
+
var l = /* @__PURE__ */ new Set(), o = (h) => {
|
|
1969
|
+
for (var p = 0; p < h.length; p++) {
|
|
1970
|
+
var g = h[p];
|
|
1971
|
+
if (!l.has(g)) {
|
|
1972
|
+
l.add(g);
|
|
1973
|
+
var v = ka(g);
|
|
1974
|
+
for (const C of [t, document]) {
|
|
1975
|
+
var _ = cn.get(C);
|
|
1976
|
+
_ === void 0 && (_ = /* @__PURE__ */ new Map(), cn.set(C, _));
|
|
1977
|
+
var m = _.get(g);
|
|
1978
|
+
m === void 0 ? (C.addEventListener(g, zr, { passive: v }), _.set(g, 1)) : _.set(g, m + 1);
|
|
1979
|
+
}
|
|
1915
1980
|
}
|
|
1916
1981
|
}
|
|
1917
1982
|
};
|
|
1918
|
-
o(
|
|
1919
|
-
var c = void 0, d =
|
|
1920
|
-
var h = n ?? t.appendChild(
|
|
1921
|
-
return
|
|
1983
|
+
o(Cn(Gi)), er.add(o);
|
|
1984
|
+
var c = void 0, d = pa(() => {
|
|
1985
|
+
var h = n ?? t.appendChild(be());
|
|
1986
|
+
return Zs(
|
|
1922
1987
|
/** @type {TemplateNode} */
|
|
1923
1988
|
h,
|
|
1924
1989
|
{
|
|
1925
1990
|
pending: () => {
|
|
1926
1991
|
}
|
|
1927
1992
|
},
|
|
1928
|
-
(
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
p.c = s;
|
|
1936
|
-
}
|
|
1937
|
-
if (r && (i.$$events = r), x && yt(
|
|
1993
|
+
(p) => {
|
|
1994
|
+
Rn({});
|
|
1995
|
+
var g = (
|
|
1996
|
+
/** @type {ComponentContext} */
|
|
1997
|
+
re
|
|
1998
|
+
);
|
|
1999
|
+
if (s && (g.c = s), i && (r.$$events = i), x && $t(
|
|
1938
2000
|
/** @type {TemplateNode} */
|
|
1939
|
-
|
|
2001
|
+
p,
|
|
1940
2002
|
null
|
|
1941
|
-
), c = e(
|
|
1942
|
-
k.data !==
|
|
1943
|
-
throw
|
|
1944
|
-
|
|
2003
|
+
), c = e(p, r) || {}, x && (T.nodes.end = k, k === null || k.nodeType !== zt || /** @type {Comment} */
|
|
2004
|
+
k.data !== sr))
|
|
2005
|
+
throw Mn(), Mt;
|
|
2006
|
+
On();
|
|
1945
2007
|
}
|
|
1946
2008
|
), () => {
|
|
1947
|
-
for (var
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
2009
|
+
for (var p of l)
|
|
2010
|
+
for (const _ of [t, document]) {
|
|
2011
|
+
var g = (
|
|
2012
|
+
/** @type {Map<string, number>} */
|
|
2013
|
+
cn.get(_)
|
|
2014
|
+
), v = (
|
|
2015
|
+
/** @type {number} */
|
|
2016
|
+
g.get(p)
|
|
2017
|
+
);
|
|
2018
|
+
--v == 0 ? (_.removeEventListener(p, zr), g.delete(p), g.size === 0 && cn.delete(_)) : g.set(p, v);
|
|
2019
|
+
}
|
|
1955
2020
|
er.delete(o), h !== n && h.parentNode?.removeChild(h);
|
|
1956
2021
|
};
|
|
1957
2022
|
});
|
|
1958
2023
|
return tr.set(c, d), c;
|
|
1959
2024
|
}
|
|
1960
2025
|
let tr = /* @__PURE__ */ new WeakMap();
|
|
1961
|
-
function
|
|
2026
|
+
function Ca(e, t) {
|
|
1962
2027
|
const n = tr.get(e);
|
|
1963
2028
|
return n ? (tr.delete(e), n(t)) : Promise.resolve();
|
|
1964
2029
|
}
|
|
1965
|
-
var he,
|
|
1966
|
-
class
|
|
2030
|
+
var he, ke, ee, ct, rn, sn, kn;
|
|
2031
|
+
class Sa {
|
|
1967
2032
|
/**
|
|
1968
2033
|
* @param {TemplateNode} anchor
|
|
1969
2034
|
* @param {boolean} transition
|
|
@@ -1972,7 +2037,7 @@ class bl {
|
|
|
1972
2037
|
/** @type {TemplateNode} */
|
|
1973
2038
|
N(this, "anchor");
|
|
1974
2039
|
/** @type {Map<Batch, Key>} */
|
|
1975
|
-
|
|
2040
|
+
y(this, he, /* @__PURE__ */ new Map());
|
|
1976
2041
|
/**
|
|
1977
2042
|
* Map of keys to effects that are currently rendered in the DOM.
|
|
1978
2043
|
* These effects are visible and actively part of the document tree.
|
|
@@ -1987,69 +2052,69 @@ class bl {
|
|
|
1987
2052
|
* Can result in the entries `true->Effect` and `false->Effect`
|
|
1988
2053
|
* @type {Map<Key, Effect>}
|
|
1989
2054
|
*/
|
|
1990
|
-
|
|
2055
|
+
y(this, ke, /* @__PURE__ */ new Map());
|
|
1991
2056
|
/**
|
|
1992
2057
|
* Similar to #onscreen with respect to the keys, but contains branches that are not yet
|
|
1993
2058
|
* in the DOM, because their insertion is deferred.
|
|
1994
2059
|
* @type {Map<Key, Branch>}
|
|
1995
2060
|
*/
|
|
1996
|
-
|
|
2061
|
+
y(this, ee, /* @__PURE__ */ new Map());
|
|
1997
2062
|
/**
|
|
1998
2063
|
* Keys of effects that are currently outroing
|
|
1999
2064
|
* @type {Set<Key>}
|
|
2000
2065
|
*/
|
|
2001
|
-
|
|
2066
|
+
y(this, ct, /* @__PURE__ */ new Set());
|
|
2002
2067
|
/**
|
|
2003
2068
|
* Whether to pause (i.e. outro) on change, or destroy immediately.
|
|
2004
2069
|
* This is necessary for `<svelte:element>`
|
|
2005
2070
|
*/
|
|
2006
|
-
|
|
2007
|
-
|
|
2071
|
+
y(this, rn, !0);
|
|
2072
|
+
y(this, sn, () => {
|
|
2008
2073
|
var t = (
|
|
2009
2074
|
/** @type {Batch} */
|
|
2010
|
-
|
|
2075
|
+
O
|
|
2011
2076
|
);
|
|
2012
|
-
if (
|
|
2077
|
+
if (u(this, he).has(t)) {
|
|
2013
2078
|
var n = (
|
|
2014
2079
|
/** @type {Key} */
|
|
2015
|
-
|
|
2016
|
-
),
|
|
2017
|
-
if (
|
|
2018
|
-
|
|
2080
|
+
u(this, he).get(t)
|
|
2081
|
+
), r = u(this, ke).get(n);
|
|
2082
|
+
if (r)
|
|
2083
|
+
pr(r), u(this, ct).delete(n);
|
|
2019
2084
|
else {
|
|
2020
|
-
var
|
|
2021
|
-
|
|
2085
|
+
var i = u(this, ee).get(n);
|
|
2086
|
+
i && (u(this, ke).set(n, i.effect), u(this, ee).delete(n), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), r = i.effect);
|
|
2022
2087
|
}
|
|
2023
|
-
for (const [s,
|
|
2024
|
-
if (
|
|
2088
|
+
for (const [s, a] of u(this, he)) {
|
|
2089
|
+
if (u(this, he).delete(s), s === t)
|
|
2025
2090
|
break;
|
|
2026
|
-
const
|
|
2027
|
-
|
|
2091
|
+
const l = u(this, ee).get(a);
|
|
2092
|
+
l && (q(l.effect), u(this, ee).delete(a));
|
|
2028
2093
|
}
|
|
2029
|
-
for (const [s,
|
|
2030
|
-
if (s === n ||
|
|
2031
|
-
const
|
|
2032
|
-
if (Array.from(
|
|
2094
|
+
for (const [s, a] of u(this, ke)) {
|
|
2095
|
+
if (s === n || u(this, ct).has(s)) continue;
|
|
2096
|
+
const l = () => {
|
|
2097
|
+
if (Array.from(u(this, he).values()).includes(s)) {
|
|
2033
2098
|
var c = document.createDocumentFragment();
|
|
2034
|
-
|
|
2099
|
+
Di(a, c), c.append(be()), u(this, ee).set(s, { effect: a, fragment: c });
|
|
2035
2100
|
} else
|
|
2036
|
-
|
|
2037
|
-
|
|
2101
|
+
q(a);
|
|
2102
|
+
u(this, ct).delete(s), u(this, ke).delete(s);
|
|
2038
2103
|
};
|
|
2039
|
-
|
|
2104
|
+
u(this, rn) || !r ? (u(this, ct).add(s), dt(a, l, !1)) : l();
|
|
2040
2105
|
}
|
|
2041
2106
|
}
|
|
2042
2107
|
});
|
|
2043
2108
|
/**
|
|
2044
2109
|
* @param {Batch} batch
|
|
2045
2110
|
*/
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
const n = Array.from(
|
|
2049
|
-
for (const [
|
|
2050
|
-
n.includes(
|
|
2111
|
+
y(this, kn, (t) => {
|
|
2112
|
+
u(this, he).delete(t);
|
|
2113
|
+
const n = Array.from(u(this, he).values());
|
|
2114
|
+
for (const [r, i] of u(this, ee))
|
|
2115
|
+
n.includes(r) || (q(i.effect), u(this, ee).delete(r));
|
|
2051
2116
|
});
|
|
2052
|
-
this.anchor = t, b(this,
|
|
2117
|
+
this.anchor = t, b(this, rn, n);
|
|
2053
2118
|
}
|
|
2054
2119
|
/**
|
|
2055
2120
|
*
|
|
@@ -2057,88 +2122,89 @@ class bl {
|
|
|
2057
2122
|
* @param {null | ((target: TemplateNode) => void)} fn
|
|
2058
2123
|
*/
|
|
2059
2124
|
ensure(t, n) {
|
|
2060
|
-
var
|
|
2125
|
+
var r = (
|
|
2061
2126
|
/** @type {Batch} */
|
|
2062
|
-
|
|
2063
|
-
),
|
|
2064
|
-
if (n && !
|
|
2065
|
-
if (
|
|
2066
|
-
var s = document.createDocumentFragment(),
|
|
2067
|
-
s.append(
|
|
2068
|
-
effect: oe(() => n(
|
|
2127
|
+
O
|
|
2128
|
+
), i = Ci();
|
|
2129
|
+
if (n && !u(this, ke).has(t) && !u(this, ee).has(t))
|
|
2130
|
+
if (i) {
|
|
2131
|
+
var s = document.createDocumentFragment(), a = be();
|
|
2132
|
+
s.append(a), u(this, ee).set(t, {
|
|
2133
|
+
effect: oe(() => n(a)),
|
|
2069
2134
|
fragment: s
|
|
2070
2135
|
});
|
|
2071
2136
|
} else
|
|
2072
|
-
|
|
2137
|
+
u(this, ke).set(
|
|
2073
2138
|
t,
|
|
2074
2139
|
oe(() => n(this.anchor))
|
|
2075
2140
|
);
|
|
2076
|
-
if (
|
|
2077
|
-
for (const [
|
|
2078
|
-
|
|
2079
|
-
for (const [
|
|
2080
|
-
|
|
2081
|
-
|
|
2141
|
+
if (u(this, he).set(r, t), i) {
|
|
2142
|
+
for (const [l, o] of u(this, ke))
|
|
2143
|
+
l === t ? r.unskip_effect(o) : r.skip_effect(o);
|
|
2144
|
+
for (const [l, o] of u(this, ee))
|
|
2145
|
+
l === t ? r.unskip_effect(o.effect) : r.skip_effect(o.effect);
|
|
2146
|
+
r.oncommit(u(this, sn)), r.ondiscard(u(this, kn));
|
|
2082
2147
|
} else
|
|
2083
|
-
x && (this.anchor = k),
|
|
2148
|
+
x && (this.anchor = k), u(this, sn).call(this);
|
|
2084
2149
|
}
|
|
2085
2150
|
}
|
|
2086
|
-
he = new WeakMap(),
|
|
2087
|
-
function
|
|
2088
|
-
re === null &&
|
|
2089
|
-
const t =
|
|
2151
|
+
he = new WeakMap(), ke = new WeakMap(), ee = new WeakMap(), ct = new WeakMap(), rn = new WeakMap(), sn = new WeakMap(), kn = new WeakMap();
|
|
2152
|
+
function qi(e) {
|
|
2153
|
+
re === null && Ns(), yt(() => {
|
|
2154
|
+
const t = gr(e);
|
|
2090
2155
|
if (typeof t == "function") return (
|
|
2091
2156
|
/** @type {() => void} */
|
|
2092
2157
|
t
|
|
2093
2158
|
);
|
|
2094
2159
|
});
|
|
2095
2160
|
}
|
|
2096
|
-
function
|
|
2097
|
-
x &&
|
|
2098
|
-
var
|
|
2099
|
-
function s(
|
|
2161
|
+
function bn(e, t, n = !1) {
|
|
2162
|
+
x && an();
|
|
2163
|
+
var r = new Sa(e), i = n ? Ot : 0;
|
|
2164
|
+
function s(a, l) {
|
|
2100
2165
|
if (x) {
|
|
2101
|
-
const
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2166
|
+
const d = ri(e);
|
|
2167
|
+
var o;
|
|
2168
|
+
if (d === ir ? o = 0 : d === Tn ? o = !1 : o = parseInt(d.substring(1)), a !== o) {
|
|
2169
|
+
var c = En();
|
|
2170
|
+
ne(c), r.anchor = c, Fe(!1), r.ensure(a, l), Fe(!0);
|
|
2105
2171
|
return;
|
|
2106
2172
|
}
|
|
2107
2173
|
}
|
|
2108
|
-
|
|
2174
|
+
r.ensure(a, l);
|
|
2109
2175
|
}
|
|
2110
|
-
|
|
2111
|
-
var
|
|
2112
|
-
t((
|
|
2113
|
-
|
|
2114
|
-
}),
|
|
2115
|
-
},
|
|
2176
|
+
hr(() => {
|
|
2177
|
+
var a = !1;
|
|
2178
|
+
t((l, o = 0) => {
|
|
2179
|
+
a = !0, s(o, l);
|
|
2180
|
+
}), a || s(!1, null);
|
|
2181
|
+
}, i);
|
|
2116
2182
|
}
|
|
2117
|
-
function
|
|
2183
|
+
function Aa(e, t) {
|
|
2118
2184
|
return t;
|
|
2119
2185
|
}
|
|
2120
|
-
function
|
|
2121
|
-
for (var
|
|
2122
|
-
let h = t[
|
|
2123
|
-
|
|
2186
|
+
function Ma(e, t, n) {
|
|
2187
|
+
for (var r = [], i = t.length, s, a = t.length, l = 0; l < i; l++) {
|
|
2188
|
+
let h = t[l];
|
|
2189
|
+
dt(
|
|
2124
2190
|
h,
|
|
2125
2191
|
() => {
|
|
2126
2192
|
if (s) {
|
|
2127
2193
|
if (s.pending.delete(h), s.done.add(h), s.pending.size === 0) {
|
|
2128
|
-
var
|
|
2194
|
+
var p = (
|
|
2129
2195
|
/** @type {Set<EachOutroGroup>} */
|
|
2130
2196
|
e.outrogroups
|
|
2131
2197
|
);
|
|
2132
|
-
nr(
|
|
2198
|
+
nr(Cn(s.done)), p.delete(s), p.size === 0 && (e.outrogroups = null);
|
|
2133
2199
|
}
|
|
2134
2200
|
} else
|
|
2135
|
-
|
|
2201
|
+
a -= 1;
|
|
2136
2202
|
},
|
|
2137
2203
|
!1
|
|
2138
2204
|
);
|
|
2139
2205
|
}
|
|
2140
|
-
if (
|
|
2141
|
-
var o =
|
|
2206
|
+
if (a === 0) {
|
|
2207
|
+
var o = r.length === 0 && n !== null;
|
|
2142
2208
|
if (o) {
|
|
2143
2209
|
var c = (
|
|
2144
2210
|
/** @type {Element} */
|
|
@@ -2147,7 +2213,7 @@ function $l(e, t, n) {
|
|
|
2147
2213
|
/** @type {Element} */
|
|
2148
2214
|
c.parentNode
|
|
2149
2215
|
);
|
|
2150
|
-
|
|
2216
|
+
Ti(d), d.append(c), e.items.clear();
|
|
2151
2217
|
}
|
|
2152
2218
|
nr(t, !o);
|
|
2153
2219
|
} else
|
|
@@ -2158,158 +2224,158 @@ function $l(e, t, n) {
|
|
|
2158
2224
|
}
|
|
2159
2225
|
function nr(e, t = !0) {
|
|
2160
2226
|
for (var n = 0; n < e.length; n++)
|
|
2161
|
-
|
|
2162
|
-
}
|
|
2163
|
-
var
|
|
2164
|
-
function
|
|
2165
|
-
var
|
|
2166
|
-
x &&
|
|
2167
|
-
var o = null, c = /* @__PURE__ */
|
|
2168
|
-
var
|
|
2169
|
-
return
|
|
2227
|
+
q(e[n], t);
|
|
2228
|
+
}
|
|
2229
|
+
var Br;
|
|
2230
|
+
function Ra(e, t, n, r, i, s = null) {
|
|
2231
|
+
var a = e, l = /* @__PURE__ */ new Map();
|
|
2232
|
+
x && an();
|
|
2233
|
+
var o = null, c = /* @__PURE__ */ sa(() => {
|
|
2234
|
+
var _ = n();
|
|
2235
|
+
return Xr(_) ? _ : _ == null ? [] : Cn(_);
|
|
2170
2236
|
}), d, h = !0;
|
|
2171
|
-
function
|
|
2172
|
-
v.fallback = o,
|
|
2237
|
+
function p() {
|
|
2238
|
+
v.fallback = o, Oa(v, d, a, t, r), o !== null && (d.length === 0 ? (o.f & Ue) === 0 ? pr(o) : (o.f ^= Ue, Wt(o, null, a)) : dt(o, () => {
|
|
2173
2239
|
o = null;
|
|
2174
2240
|
}));
|
|
2175
2241
|
}
|
|
2176
|
-
var
|
|
2242
|
+
var g = hr(() => {
|
|
2177
2243
|
d = /** @type {V[]} */
|
|
2178
|
-
|
|
2179
|
-
var
|
|
2244
|
+
f(c);
|
|
2245
|
+
var _ = d.length;
|
|
2180
2246
|
let m = !1;
|
|
2181
2247
|
if (x) {
|
|
2182
|
-
var
|
|
2183
|
-
|
|
2248
|
+
var C = ri(a) === Tn;
|
|
2249
|
+
C !== (_ === 0) && (a = En(), ne(a), Fe(!1), m = !0);
|
|
2184
2250
|
}
|
|
2185
|
-
for (var
|
|
2251
|
+
for (var S = /* @__PURE__ */ new Set(), ie = (
|
|
2186
2252
|
/** @type {Batch} */
|
|
2187
|
-
|
|
2188
|
-
),
|
|
2189
|
-
x && k.nodeType ===
|
|
2190
|
-
k.data ===
|
|
2191
|
-
k, m = !0,
|
|
2192
|
-
var
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
h ?
|
|
2196
|
-
|
|
2253
|
+
O
|
|
2254
|
+
), Y = Ci(), I = 0; I < _; I += 1) {
|
|
2255
|
+
x && k.nodeType === zt && /** @type {Comment} */
|
|
2256
|
+
k.data === sr && (a = /** @type {Comment} */
|
|
2257
|
+
k, m = !0, Fe(!1));
|
|
2258
|
+
var ye = d[I], A = r(ye, I), P = h ? null : l.get(A);
|
|
2259
|
+
P ? (P.v && Dt(P.v, ye), P.i && Dt(P.i, I), Y && ie.unskip_effect(P.e)) : (P = Na(
|
|
2260
|
+
l,
|
|
2261
|
+
h ? a : Br ?? (Br = be()),
|
|
2262
|
+
ye,
|
|
2197
2263
|
A,
|
|
2198
|
-
|
|
2199
|
-
|
|
2264
|
+
I,
|
|
2265
|
+
i,
|
|
2200
2266
|
t,
|
|
2201
2267
|
n
|
|
2202
|
-
), h || (
|
|
2268
|
+
), h || (P.e.f |= Ue), l.set(A, P)), S.add(A);
|
|
2203
2269
|
}
|
|
2204
|
-
if (
|
|
2205
|
-
if (
|
|
2206
|
-
for (const [
|
|
2207
|
-
|
|
2208
|
-
ie.oncommit(
|
|
2270
|
+
if (_ === 0 && s && !o && (h ? o = oe(() => s(a)) : (o = oe(() => s(Br ?? (Br = be()))), o.f |= Ue)), _ > S.size && Ds(), x && _ > 0 && ne(En()), !h)
|
|
2271
|
+
if (Y) {
|
|
2272
|
+
for (const [on, Dn] of l)
|
|
2273
|
+
S.has(on) || ie.skip_effect(Dn.e);
|
|
2274
|
+
ie.oncommit(p), ie.ondiscard(() => {
|
|
2209
2275
|
});
|
|
2210
2276
|
} else
|
|
2211
|
-
|
|
2212
|
-
m &&
|
|
2213
|
-
}), v = { effect:
|
|
2214
|
-
h = !1, x && (
|
|
2277
|
+
p();
|
|
2278
|
+
m && Fe(!0), f(c);
|
|
2279
|
+
}), v = { effect: g, items: l, outrogroups: null, fallback: o };
|
|
2280
|
+
h = !1, x && (a = k);
|
|
2215
2281
|
}
|
|
2216
|
-
function
|
|
2217
|
-
for (; e !== null && (e.f &
|
|
2282
|
+
function Kt(e) {
|
|
2283
|
+
for (; e !== null && (e.f & we) === 0; )
|
|
2218
2284
|
e = e.next;
|
|
2219
2285
|
return e;
|
|
2220
2286
|
}
|
|
2221
|
-
function
|
|
2222
|
-
var s = t.length,
|
|
2223
|
-
for (
|
|
2224
|
-
if (
|
|
2225
|
-
|
|
2226
|
-
for (const
|
|
2227
|
-
|
|
2228
|
-
if ((v.f &
|
|
2229
|
-
if (v.f ^=
|
|
2230
|
-
|
|
2287
|
+
function Oa(e, t, n, r, i) {
|
|
2288
|
+
var s = t.length, a = e.items, l = Kt(e.effect.first), o, c = null, d = [], h = [], p, g, v, _;
|
|
2289
|
+
for (_ = 0; _ < s; _ += 1) {
|
|
2290
|
+
if (p = t[_], g = i(p, _), v = /** @type {EachItem} */
|
|
2291
|
+
a.get(g).e, e.outrogroups !== null)
|
|
2292
|
+
for (const P of e.outrogroups)
|
|
2293
|
+
P.pending.delete(v), P.done.delete(v);
|
|
2294
|
+
if ((v.f & Ue) !== 0)
|
|
2295
|
+
if (v.f ^= Ue, v === l)
|
|
2296
|
+
Wt(v, null, n);
|
|
2231
2297
|
else {
|
|
2232
|
-
var m = c ? c.next :
|
|
2233
|
-
v === e.effect.last && (e.effect.last = v.prev), v.prev && (v.prev.next = v.next), v.next && (v.next.prev = v.prev),
|
|
2298
|
+
var m = c ? c.next : l;
|
|
2299
|
+
v === e.effect.last && (e.effect.last = v.prev), v.prev && (v.prev.next = v.next), v.next && (v.next.prev = v.prev), Ge(e, c, v), Ge(e, v, m), Wt(v, m, n), c = v, d = [], h = [], l = Kt(c.next);
|
|
2234
2300
|
continue;
|
|
2235
2301
|
}
|
|
2236
|
-
if ((v.f & te) !== 0 &&
|
|
2302
|
+
if ((v.f & te) !== 0 && pr(v), v !== l) {
|
|
2237
2303
|
if (o !== void 0 && o.has(v)) {
|
|
2238
2304
|
if (d.length < h.length) {
|
|
2239
|
-
var
|
|
2240
|
-
c =
|
|
2241
|
-
var ie = d[0],
|
|
2242
|
-
for (
|
|
2243
|
-
|
|
2244
|
-
for (
|
|
2245
|
-
o.delete(h[
|
|
2246
|
-
|
|
2305
|
+
var C = h[0], S;
|
|
2306
|
+
c = C.prev;
|
|
2307
|
+
var ie = d[0], Y = d[d.length - 1];
|
|
2308
|
+
for (S = 0; S < d.length; S += 1)
|
|
2309
|
+
Wt(d[S], C, n);
|
|
2310
|
+
for (S = 0; S < h.length; S += 1)
|
|
2311
|
+
o.delete(h[S]);
|
|
2312
|
+
Ge(e, ie.prev, Y.next), Ge(e, c, ie), Ge(e, Y, C), l = C, c = Y, _ -= 1, d = [], h = [];
|
|
2247
2313
|
} else
|
|
2248
|
-
o.delete(v),
|
|
2314
|
+
o.delete(v), Wt(v, l, n), Ge(e, v.prev, v.next), Ge(e, v, c === null ? e.effect.first : c.next), Ge(e, c, v), c = v;
|
|
2249
2315
|
continue;
|
|
2250
2316
|
}
|
|
2251
|
-
for (d = [], h = [];
|
|
2252
|
-
(o ?? (o = /* @__PURE__ */ new Set())).add(
|
|
2253
|
-
if (
|
|
2317
|
+
for (d = [], h = []; l !== null && l !== v; )
|
|
2318
|
+
(o ?? (o = /* @__PURE__ */ new Set())).add(l), h.push(l), l = Kt(l.next);
|
|
2319
|
+
if (l === null)
|
|
2254
2320
|
continue;
|
|
2255
2321
|
}
|
|
2256
|
-
(v.f &
|
|
2322
|
+
(v.f & Ue) === 0 && d.push(v), c = v, l = Kt(v.next);
|
|
2257
2323
|
}
|
|
2258
2324
|
if (e.outrogroups !== null) {
|
|
2259
|
-
for (const
|
|
2260
|
-
|
|
2325
|
+
for (const P of e.outrogroups)
|
|
2326
|
+
P.pending.size === 0 && (nr(Cn(P.done)), e.outrogroups?.delete(P));
|
|
2261
2327
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
2262
2328
|
}
|
|
2263
|
-
if (
|
|
2264
|
-
var
|
|
2329
|
+
if (l !== null || o !== void 0) {
|
|
2330
|
+
var I = [];
|
|
2265
2331
|
if (o !== void 0)
|
|
2266
2332
|
for (v of o)
|
|
2267
|
-
(v.f & te) === 0 &&
|
|
2268
|
-
for (;
|
|
2269
|
-
(
|
|
2270
|
-
var
|
|
2271
|
-
if (
|
|
2333
|
+
(v.f & te) === 0 && I.push(v);
|
|
2334
|
+
for (; l !== null; )
|
|
2335
|
+
(l.f & te) === 0 && l !== e.fallback && I.push(l), l = Kt(l.next);
|
|
2336
|
+
var ye = I.length;
|
|
2337
|
+
if (ye > 0) {
|
|
2272
2338
|
var A = null;
|
|
2273
|
-
|
|
2339
|
+
Ma(e, I, A);
|
|
2274
2340
|
}
|
|
2275
2341
|
}
|
|
2276
2342
|
}
|
|
2277
|
-
function
|
|
2278
|
-
var o = (
|
|
2343
|
+
function Na(e, t, n, r, i, s, a, l) {
|
|
2344
|
+
var o = (a & bs) !== 0 ? (a & ys) === 0 ? /* @__PURE__ */ yi(n, !1, !1) : pt(n) : null, c = (a & ws) !== 0 ? pt(i) : null;
|
|
2279
2345
|
return {
|
|
2280
2346
|
v: o,
|
|
2281
2347
|
i: c,
|
|
2282
|
-
e: oe(() => (s(t, o ?? n, c ??
|
|
2283
|
-
e.delete(
|
|
2348
|
+
e: oe(() => (s(t, o ?? n, c ?? i, l), () => {
|
|
2349
|
+
e.delete(r);
|
|
2284
2350
|
}))
|
|
2285
2351
|
};
|
|
2286
2352
|
}
|
|
2287
|
-
function
|
|
2353
|
+
function Wt(e, t, n) {
|
|
2288
2354
|
if (e.nodes)
|
|
2289
|
-
for (var
|
|
2355
|
+
for (var r = e.nodes.start, i = e.nodes.end, s = t && (t.f & Ue) === 0 ? (
|
|
2290
2356
|
/** @type {EffectNodes} */
|
|
2291
2357
|
t.nodes.start
|
|
2292
|
-
) : n;
|
|
2293
|
-
var
|
|
2358
|
+
) : n; r !== null; ) {
|
|
2359
|
+
var a = (
|
|
2294
2360
|
/** @type {TemplateNode} */
|
|
2295
|
-
/* @__PURE__ */
|
|
2361
|
+
/* @__PURE__ */ Ae(r)
|
|
2296
2362
|
);
|
|
2297
|
-
if (s.before(
|
|
2363
|
+
if (s.before(r), r === i)
|
|
2298
2364
|
return;
|
|
2299
|
-
|
|
2365
|
+
r = a;
|
|
2300
2366
|
}
|
|
2301
2367
|
}
|
|
2302
|
-
function
|
|
2368
|
+
function Ge(e, t, n) {
|
|
2303
2369
|
t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
|
|
2304
2370
|
}
|
|
2305
|
-
function
|
|
2306
|
-
x &&
|
|
2307
|
-
var s = t.$$slots?.[n],
|
|
2308
|
-
s === !0 && (s = t.children,
|
|
2371
|
+
function La(e, t, n, r, i) {
|
|
2372
|
+
x && an();
|
|
2373
|
+
var s = t.$$slots?.[n], a = !1;
|
|
2374
|
+
s === !0 && (s = t.children, a = !0), s === void 0 || s(e, a ? () => r : r);
|
|
2309
2375
|
}
|
|
2310
|
-
function
|
|
2311
|
-
|
|
2312
|
-
var n = e.getRootNode(),
|
|
2376
|
+
function Da(e, t) {
|
|
2377
|
+
Mi(() => {
|
|
2378
|
+
var n = e.getRootNode(), r = (
|
|
2313
2379
|
/** @type {ShadowRoot} */
|
|
2314
2380
|
n.host ? (
|
|
2315
2381
|
/** @type {ShadowRoot} */
|
|
@@ -2320,140 +2386,140 @@ function Tl(e, t) {
|
|
|
2320
2386
|
n.ownerDocument.head
|
|
2321
2387
|
)
|
|
2322
2388
|
);
|
|
2323
|
-
if (!
|
|
2324
|
-
const
|
|
2325
|
-
|
|
2389
|
+
if (!r.querySelector("#" + t.hash)) {
|
|
2390
|
+
const i = ur("style");
|
|
2391
|
+
i.id = t.hash, i.textContent = t.code, r.appendChild(i);
|
|
2326
2392
|
}
|
|
2327
2393
|
});
|
|
2328
2394
|
}
|
|
2329
|
-
const
|
|
2395
|
+
const jr = [...`
|
|
2330
2396
|
\r\f \v\uFEFF`];
|
|
2331
|
-
function
|
|
2332
|
-
var
|
|
2397
|
+
function Ia(e, t, n) {
|
|
2398
|
+
var r = "" + e;
|
|
2333
2399
|
if (n) {
|
|
2334
|
-
for (var
|
|
2335
|
-
if (n[
|
|
2336
|
-
|
|
2337
|
-
else if (
|
|
2338
|
-
for (var s =
|
|
2339
|
-
var
|
|
2340
|
-
(
|
|
2400
|
+
for (var i in n)
|
|
2401
|
+
if (n[i])
|
|
2402
|
+
r = r ? r + " " + i : i;
|
|
2403
|
+
else if (r.length)
|
|
2404
|
+
for (var s = i.length, a = 0; (a = r.indexOf(i, a)) >= 0; ) {
|
|
2405
|
+
var l = a + s;
|
|
2406
|
+
(a === 0 || jr.includes(r[a - 1])) && (l === r.length || jr.includes(r[l])) ? r = (a === 0 ? "" : r.substring(0, a)) + r.substring(l + 1) : a = l;
|
|
2341
2407
|
}
|
|
2342
2408
|
}
|
|
2343
|
-
return
|
|
2409
|
+
return r === "" ? null : r;
|
|
2344
2410
|
}
|
|
2345
|
-
function
|
|
2411
|
+
function Pa(e, t) {
|
|
2346
2412
|
return e == null ? null : String(e);
|
|
2347
2413
|
}
|
|
2348
|
-
function
|
|
2349
|
-
var
|
|
2350
|
-
if (x ||
|
|
2351
|
-
var
|
|
2352
|
-
(!x ||
|
|
2353
|
-
} else if (s &&
|
|
2414
|
+
function Fa(e, t, n, r, i, s) {
|
|
2415
|
+
var a = e.__className;
|
|
2416
|
+
if (x || a !== n || a === void 0) {
|
|
2417
|
+
var l = Ia(n, r, s);
|
|
2418
|
+
(!x || l !== e.getAttribute("class")) && (l == null ? e.removeAttribute("class") : e.className = l), e.__className = n;
|
|
2419
|
+
} else if (s && i !== s)
|
|
2354
2420
|
for (var o in s) {
|
|
2355
2421
|
var c = !!s[o];
|
|
2356
|
-
(
|
|
2422
|
+
(i == null || c !== !!i[o]) && e.classList.toggle(o, c);
|
|
2357
2423
|
}
|
|
2358
2424
|
return s;
|
|
2359
2425
|
}
|
|
2360
|
-
function
|
|
2361
|
-
var
|
|
2362
|
-
if (x ||
|
|
2363
|
-
var s =
|
|
2426
|
+
function Ye(e, t, n, r) {
|
|
2427
|
+
var i = e.__style;
|
|
2428
|
+
if (x || i !== t) {
|
|
2429
|
+
var s = Pa(t);
|
|
2364
2430
|
(!x || s !== e.getAttribute("style")) && (s == null ? e.removeAttribute("style") : e.style.cssText = s), e.__style = t;
|
|
2365
2431
|
}
|
|
2366
|
-
return
|
|
2432
|
+
return r;
|
|
2367
2433
|
}
|
|
2368
|
-
const
|
|
2369
|
-
function
|
|
2434
|
+
const za = /* @__PURE__ */ Symbol("is custom element"), Ba = /* @__PURE__ */ Symbol("is html"), ja = ni ? "link" : "LINK", Ha = ni ? "progress" : "PROGRESS";
|
|
2435
|
+
function dn(e) {
|
|
2370
2436
|
if (x) {
|
|
2371
2437
|
var t = !1, n = () => {
|
|
2372
2438
|
if (!t) {
|
|
2373
2439
|
if (t = !0, e.hasAttribute("value")) {
|
|
2374
|
-
var
|
|
2375
|
-
|
|
2440
|
+
var r = e.value;
|
|
2441
|
+
Xe(e, "value", null), e.value = r;
|
|
2376
2442
|
}
|
|
2377
2443
|
if (e.hasAttribute("checked")) {
|
|
2378
|
-
var
|
|
2379
|
-
|
|
2444
|
+
var i = e.checked;
|
|
2445
|
+
Xe(e, "checked", null), e.checked = i;
|
|
2380
2446
|
}
|
|
2381
2447
|
}
|
|
2382
2448
|
};
|
|
2383
|
-
e.__on_r = n,
|
|
2449
|
+
e.__on_r = n, Ke(n), fa();
|
|
2384
2450
|
}
|
|
2385
2451
|
}
|
|
2386
|
-
function
|
|
2387
|
-
var n =
|
|
2452
|
+
function Hr(e, t) {
|
|
2453
|
+
var n = mr(e);
|
|
2388
2454
|
n.value === (n.value = // treat null and undefined the same for the initial value
|
|
2389
2455
|
t ?? void 0) || // @ts-expect-error
|
|
2390
2456
|
// `progress` elements always need their value set when it's `0`
|
|
2391
|
-
e.value === t && (t !== 0 || e.nodeName !==
|
|
2457
|
+
e.value === t && (t !== 0 || e.nodeName !== Ha) || (e.value = t ?? "");
|
|
2392
2458
|
}
|
|
2393
|
-
function
|
|
2394
|
-
var n =
|
|
2459
|
+
function Gn(e, t) {
|
|
2460
|
+
var n = mr(e);
|
|
2395
2461
|
n.checked !== (n.checked = // treat null and undefined the same for the initial value
|
|
2396
2462
|
t ?? void 0) && (e.checked = t);
|
|
2397
2463
|
}
|
|
2398
|
-
function
|
|
2399
|
-
var
|
|
2400
|
-
x && (
|
|
2464
|
+
function Xe(e, t, n, r) {
|
|
2465
|
+
var i = mr(e);
|
|
2466
|
+
x && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === ja) || i[t] !== (i[t] = n) && (t === "loading" && (e[Os] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && Ga(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
|
|
2401
2467
|
}
|
|
2402
|
-
function
|
|
2468
|
+
function mr(e) {
|
|
2403
2469
|
return (
|
|
2404
2470
|
/** @type {Record<string | symbol, unknown>} **/
|
|
2405
2471
|
// @ts-expect-error
|
|
2406
2472
|
e.__attributes ?? (e.__attributes = {
|
|
2407
|
-
[
|
|
2408
|
-
[
|
|
2473
|
+
[za]: e.nodeName.includes("-"),
|
|
2474
|
+
[Ba]: e.namespaceURI === Wr
|
|
2409
2475
|
})
|
|
2410
2476
|
);
|
|
2411
2477
|
}
|
|
2412
|
-
var
|
|
2413
|
-
function
|
|
2414
|
-
var t = e.getAttribute("is") || e.nodeName, n =
|
|
2478
|
+
var Gr = /* @__PURE__ */ new Map();
|
|
2479
|
+
function Ga(e) {
|
|
2480
|
+
var t = e.getAttribute("is") || e.nodeName, n = Gr.get(t);
|
|
2415
2481
|
if (n) return n;
|
|
2416
|
-
|
|
2417
|
-
for (var
|
|
2418
|
-
|
|
2419
|
-
for (var
|
|
2420
|
-
|
|
2421
|
-
|
|
2482
|
+
Gr.set(t, n = []);
|
|
2483
|
+
for (var r, i = e, s = Element.prototype; s !== i; ) {
|
|
2484
|
+
r = ks(i);
|
|
2485
|
+
for (var a in r)
|
|
2486
|
+
r[a].set && n.push(a);
|
|
2487
|
+
i = Jr(i);
|
|
2422
2488
|
}
|
|
2423
2489
|
return n;
|
|
2424
2490
|
}
|
|
2425
|
-
function
|
|
2426
|
-
return e === t || e?.[
|
|
2491
|
+
function Yr(e, t) {
|
|
2492
|
+
return e === t || e?.[hn] === t;
|
|
2427
2493
|
}
|
|
2428
|
-
function
|
|
2429
|
-
return
|
|
2430
|
-
var
|
|
2431
|
-
return
|
|
2432
|
-
|
|
2433
|
-
e !== n(...s) && (t(e, ...s),
|
|
2494
|
+
function br(e = {}, t, n, r) {
|
|
2495
|
+
return Mi(() => {
|
|
2496
|
+
var i, s;
|
|
2497
|
+
return dr(() => {
|
|
2498
|
+
i = s, s = [], gr(() => {
|
|
2499
|
+
e !== n(...s) && (t(e, ...s), i && Yr(n(...i), e) && t(null, ...i));
|
|
2434
2500
|
});
|
|
2435
2501
|
}), () => {
|
|
2436
|
-
|
|
2437
|
-
s &&
|
|
2502
|
+
Ke(() => {
|
|
2503
|
+
s && Yr(n(...s), e) && t(null, ...s);
|
|
2438
2504
|
});
|
|
2439
2505
|
};
|
|
2440
2506
|
}), e;
|
|
2441
2507
|
}
|
|
2442
|
-
function
|
|
2443
|
-
var
|
|
2508
|
+
function _e(e, t, n, r) {
|
|
2509
|
+
var i = (
|
|
2444
2510
|
/** @type {V} */
|
|
2445
|
-
|
|
2446
|
-
), s = !0,
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
e[t],
|
|
2511
|
+
r
|
|
2512
|
+
), s = !0, a = () => (s && (s = !1, i = /** @type {V} */
|
|
2513
|
+
r), i), l;
|
|
2514
|
+
l = /** @type {V} */
|
|
2515
|
+
e[t], l === void 0 && r !== void 0 && (l = a());
|
|
2450
2516
|
var o;
|
|
2451
2517
|
o = () => {
|
|
2452
|
-
var
|
|
2518
|
+
var p = (
|
|
2453
2519
|
/** @type {V} */
|
|
2454
2520
|
e[t]
|
|
2455
2521
|
);
|
|
2456
|
-
return
|
|
2522
|
+
return p === void 0 ? a() : (s = !0, p);
|
|
2457
2523
|
};
|
|
2458
2524
|
var c = !1, d = /* @__PURE__ */ Ln(() => (c = !1, o())), h = (
|
|
2459
2525
|
/** @type {Effect} */
|
|
@@ -2461,20 +2527,20 @@ function pe(e, t, n, i) {
|
|
|
2461
2527
|
);
|
|
2462
2528
|
return (
|
|
2463
2529
|
/** @type {() => V} */
|
|
2464
|
-
(function(
|
|
2530
|
+
(function(p, g) {
|
|
2465
2531
|
if (arguments.length > 0) {
|
|
2466
|
-
const v =
|
|
2467
|
-
return E(d, v), c = !0,
|
|
2532
|
+
const v = g ? f(d) : p;
|
|
2533
|
+
return E(d, v), c = !0, i !== void 0 && (i = v), p;
|
|
2468
2534
|
}
|
|
2469
|
-
return
|
|
2535
|
+
return Je && c || (h.f & Be) !== 0 ? d.v : f(d);
|
|
2470
2536
|
})
|
|
2471
2537
|
);
|
|
2472
2538
|
}
|
|
2473
|
-
function
|
|
2474
|
-
return new
|
|
2539
|
+
function Ya(e) {
|
|
2540
|
+
return new Va(e);
|
|
2475
2541
|
}
|
|
2476
|
-
var
|
|
2477
|
-
class
|
|
2542
|
+
var Pe, le;
|
|
2543
|
+
class Va {
|
|
2478
2544
|
/**
|
|
2479
2545
|
* @param {ComponentConstructorOptions & {
|
|
2480
2546
|
* component: any;
|
|
@@ -2482,56 +2548,56 @@ class Ll {
|
|
|
2482
2548
|
*/
|
|
2483
2549
|
constructor(t) {
|
|
2484
2550
|
/** @type {any} */
|
|
2485
|
-
|
|
2551
|
+
y(this, Pe);
|
|
2486
2552
|
/** @type {Record<string, any>} */
|
|
2487
|
-
|
|
2488
|
-
var n = /* @__PURE__ */ new Map(),
|
|
2489
|
-
var
|
|
2490
|
-
return n.set(s,
|
|
2553
|
+
y(this, le);
|
|
2554
|
+
var n = /* @__PURE__ */ new Map(), r = (s, a) => {
|
|
2555
|
+
var l = /* @__PURE__ */ yi(a, !1, !1);
|
|
2556
|
+
return n.set(s, l), l;
|
|
2491
2557
|
};
|
|
2492
|
-
const
|
|
2558
|
+
const i = new Proxy(
|
|
2493
2559
|
{ ...t.props || {}, $$events: {} },
|
|
2494
2560
|
{
|
|
2495
|
-
get(s,
|
|
2496
|
-
return
|
|
2561
|
+
get(s, a) {
|
|
2562
|
+
return f(n.get(a) ?? r(a, Reflect.get(s, a)));
|
|
2497
2563
|
},
|
|
2498
|
-
has(s,
|
|
2499
|
-
return
|
|
2564
|
+
has(s, a) {
|
|
2565
|
+
return a === Rs ? !0 : (f(n.get(a) ?? r(a, Reflect.get(s, a))), Reflect.has(s, a));
|
|
2500
2566
|
},
|
|
2501
|
-
set(s,
|
|
2502
|
-
return E(n.get(
|
|
2567
|
+
set(s, a, l) {
|
|
2568
|
+
return E(n.get(a) ?? r(a, l), l), Reflect.set(s, a, l);
|
|
2503
2569
|
}
|
|
2504
2570
|
}
|
|
2505
2571
|
);
|
|
2506
|
-
b(this,
|
|
2572
|
+
b(this, le, (t.hydrate ? Ta : Vi)(t.component, {
|
|
2507
2573
|
target: t.target,
|
|
2508
2574
|
anchor: t.anchor,
|
|
2509
|
-
props:
|
|
2575
|
+
props: i,
|
|
2510
2576
|
context: t.context,
|
|
2511
2577
|
intro: t.intro ?? !1,
|
|
2512
2578
|
recover: t.recover
|
|
2513
|
-
})), (!t?.props?.$$host || t.sync === !1) &&
|
|
2514
|
-
for (const s of Object.keys(
|
|
2515
|
-
s === "$set" || s === "$destroy" || s === "$on" ||
|
|
2579
|
+
})), (!t?.props?.$$host || t.sync === !1) && ue(), b(this, Pe, i.$$events);
|
|
2580
|
+
for (const s of Object.keys(u(this, le)))
|
|
2581
|
+
s === "$set" || s === "$destroy" || s === "$on" || $n(this, s, {
|
|
2516
2582
|
get() {
|
|
2517
|
-
return
|
|
2583
|
+
return u(this, le)[s];
|
|
2518
2584
|
},
|
|
2519
2585
|
/** @param {any} value */
|
|
2520
|
-
set(
|
|
2521
|
-
|
|
2586
|
+
set(a) {
|
|
2587
|
+
u(this, le)[s] = a;
|
|
2522
2588
|
},
|
|
2523
2589
|
enumerable: !0
|
|
2524
2590
|
});
|
|
2525
|
-
|
|
2591
|
+
u(this, le).$set = /** @param {Record<string, any>} next */
|
|
2526
2592
|
(s) => {
|
|
2527
|
-
Object.assign(
|
|
2528
|
-
},
|
|
2529
|
-
|
|
2593
|
+
Object.assign(i, s);
|
|
2594
|
+
}, u(this, le).$destroy = () => {
|
|
2595
|
+
Ca(u(this, le));
|
|
2530
2596
|
};
|
|
2531
2597
|
}
|
|
2532
2598
|
/** @param {Record<string, any>} props */
|
|
2533
2599
|
$set(t) {
|
|
2534
|
-
|
|
2600
|
+
u(this, le).$set(t);
|
|
2535
2601
|
}
|
|
2536
2602
|
/**
|
|
2537
2603
|
* @param {string} event
|
|
@@ -2539,28 +2605,28 @@ class Ll {
|
|
|
2539
2605
|
* @returns {any}
|
|
2540
2606
|
*/
|
|
2541
2607
|
$on(t, n) {
|
|
2542
|
-
|
|
2543
|
-
const
|
|
2544
|
-
return
|
|
2545
|
-
|
|
2608
|
+
u(this, Pe)[t] = u(this, Pe)[t] || [];
|
|
2609
|
+
const r = (...i) => n.call(this, ...i);
|
|
2610
|
+
return u(this, Pe)[t].push(r), () => {
|
|
2611
|
+
u(this, Pe)[t] = u(this, Pe)[t].filter(
|
|
2546
2612
|
/** @param {any} fn */
|
|
2547
|
-
(
|
|
2613
|
+
(i) => i !== r
|
|
2548
2614
|
);
|
|
2549
2615
|
};
|
|
2550
2616
|
}
|
|
2551
2617
|
$destroy() {
|
|
2552
|
-
|
|
2618
|
+
u(this, le).$destroy();
|
|
2553
2619
|
}
|
|
2554
2620
|
}
|
|
2555
|
-
|
|
2556
|
-
let
|
|
2557
|
-
typeof HTMLElement == "function" && (
|
|
2621
|
+
Pe = new WeakMap(), le = new WeakMap();
|
|
2622
|
+
let Ki;
|
|
2623
|
+
typeof HTMLElement == "function" && (Ki = class extends HTMLElement {
|
|
2558
2624
|
/**
|
|
2559
2625
|
* @param {*} $$componentCtor
|
|
2560
2626
|
* @param {*} $$slots
|
|
2561
2627
|
* @param {ShadowRootInit | undefined} shadow_root_init
|
|
2562
2628
|
*/
|
|
2563
|
-
constructor(t, n,
|
|
2629
|
+
constructor(t, n, r) {
|
|
2564
2630
|
super();
|
|
2565
2631
|
/** The Svelte component constructor */
|
|
2566
2632
|
N(this, "$$ctor");
|
|
@@ -2584,51 +2650,51 @@ typeof HTMLElement == "function" && (Ui = class extends HTMLElement {
|
|
|
2584
2650
|
N(this, "$$me");
|
|
2585
2651
|
/** @type {ShadowRoot | null} The ShadowRoot of the custom element */
|
|
2586
2652
|
N(this, "$$shadowRoot", null);
|
|
2587
|
-
this.$$ctor = t, this.$$s = n,
|
|
2653
|
+
this.$$ctor = t, this.$$s = n, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2588
2654
|
}
|
|
2589
2655
|
/**
|
|
2590
2656
|
* @param {string} type
|
|
2591
2657
|
* @param {EventListenerOrEventListenerObject} listener
|
|
2592
2658
|
* @param {boolean | AddEventListenerOptions} [options]
|
|
2593
2659
|
*/
|
|
2594
|
-
addEventListener(t, n,
|
|
2660
|
+
addEventListener(t, n, r) {
|
|
2595
2661
|
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
|
|
2596
|
-
const
|
|
2597
|
-
this.$$l_u.set(n,
|
|
2662
|
+
const i = this.$$c.$on(t, n);
|
|
2663
|
+
this.$$l_u.set(n, i);
|
|
2598
2664
|
}
|
|
2599
|
-
super.addEventListener(t, n,
|
|
2665
|
+
super.addEventListener(t, n, r);
|
|
2600
2666
|
}
|
|
2601
2667
|
/**
|
|
2602
2668
|
* @param {string} type
|
|
2603
2669
|
* @param {EventListenerOrEventListenerObject} listener
|
|
2604
2670
|
* @param {boolean | AddEventListenerOptions} [options]
|
|
2605
2671
|
*/
|
|
2606
|
-
removeEventListener(t, n,
|
|
2607
|
-
if (super.removeEventListener(t, n,
|
|
2608
|
-
const
|
|
2609
|
-
|
|
2672
|
+
removeEventListener(t, n, r) {
|
|
2673
|
+
if (super.removeEventListener(t, n, r), this.$$c) {
|
|
2674
|
+
const i = this.$$l_u.get(n);
|
|
2675
|
+
i && (i(), this.$$l_u.delete(n));
|
|
2610
2676
|
}
|
|
2611
2677
|
}
|
|
2612
2678
|
async connectedCallback() {
|
|
2613
2679
|
if (this.$$cn = !0, !this.$$c) {
|
|
2614
|
-
let t = function(
|
|
2680
|
+
let t = function(i) {
|
|
2615
2681
|
return (s) => {
|
|
2616
|
-
const
|
|
2617
|
-
|
|
2682
|
+
const a = ur("slot");
|
|
2683
|
+
i !== "default" && (a.name = i), Te(s, a);
|
|
2618
2684
|
};
|
|
2619
2685
|
};
|
|
2620
2686
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
2621
2687
|
return;
|
|
2622
|
-
const n = {},
|
|
2623
|
-
for (const
|
|
2624
|
-
|
|
2625
|
-
for (const
|
|
2626
|
-
const s = this.$$g_p(
|
|
2627
|
-
s in this.$$d || (this.$$d[s] =
|
|
2688
|
+
const n = {}, r = Ua(this);
|
|
2689
|
+
for (const i of this.$$s)
|
|
2690
|
+
i in r && (i === "default" && !this.$$d.children ? (this.$$d.children = t(i), n.default = !0) : n[i] = t(i));
|
|
2691
|
+
for (const i of this.attributes) {
|
|
2692
|
+
const s = this.$$g_p(i.name);
|
|
2693
|
+
s in this.$$d || (this.$$d[s] = wn(s, i.value, this.$$p_d, "toProp"));
|
|
2628
2694
|
}
|
|
2629
|
-
for (const
|
|
2630
|
-
!(
|
|
2631
|
-
this.$$c =
|
|
2695
|
+
for (const i in this.$$p_d)
|
|
2696
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
2697
|
+
this.$$c = Ya({
|
|
2632
2698
|
component: this.$$ctor,
|
|
2633
2699
|
target: this.$$shadowRoot || this,
|
|
2634
2700
|
props: {
|
|
@@ -2636,27 +2702,27 @@ typeof HTMLElement == "function" && (Ui = class extends HTMLElement {
|
|
|
2636
2702
|
$$slots: n,
|
|
2637
2703
|
$$host: this
|
|
2638
2704
|
}
|
|
2639
|
-
}), this.$$me =
|
|
2640
|
-
|
|
2705
|
+
}), this.$$me = va(() => {
|
|
2706
|
+
dr(() => {
|
|
2641
2707
|
this.$$r = !0;
|
|
2642
|
-
for (const
|
|
2643
|
-
if (!this.$$p_d[
|
|
2644
|
-
this.$$d[
|
|
2645
|
-
const s =
|
|
2646
|
-
|
|
2647
|
-
this.$$d[
|
|
2708
|
+
for (const i of yn(this.$$c)) {
|
|
2709
|
+
if (!this.$$p_d[i]?.reflect) continue;
|
|
2710
|
+
this.$$d[i] = this.$$c[i];
|
|
2711
|
+
const s = wn(
|
|
2712
|
+
i,
|
|
2713
|
+
this.$$d[i],
|
|
2648
2714
|
this.$$p_d,
|
|
2649
2715
|
"toAttribute"
|
|
2650
2716
|
);
|
|
2651
|
-
s == null ? this.removeAttribute(this.$$p_d[
|
|
2717
|
+
s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
|
|
2652
2718
|
}
|
|
2653
2719
|
this.$$r = !1;
|
|
2654
2720
|
});
|
|
2655
2721
|
});
|
|
2656
|
-
for (const
|
|
2657
|
-
for (const s of this.$$l[
|
|
2658
|
-
const
|
|
2659
|
-
this.$$l_u.set(s,
|
|
2722
|
+
for (const i in this.$$l)
|
|
2723
|
+
for (const s of this.$$l[i]) {
|
|
2724
|
+
const a = this.$$c.$on(i, s);
|
|
2725
|
+
this.$$l_u.set(s, a);
|
|
2660
2726
|
}
|
|
2661
2727
|
this.$$l = {};
|
|
2662
2728
|
}
|
|
@@ -2668,8 +2734,8 @@ typeof HTMLElement == "function" && (Ui = class extends HTMLElement {
|
|
|
2668
2734
|
* @param {string} _oldValue
|
|
2669
2735
|
* @param {string} newValue
|
|
2670
2736
|
*/
|
|
2671
|
-
attributeChangedCallback(t, n,
|
|
2672
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
2737
|
+
attributeChangedCallback(t, n, r) {
|
|
2738
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = wn(t, r, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
|
|
2673
2739
|
}
|
|
2674
2740
|
disconnectedCallback() {
|
|
2675
2741
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2680,17 +2746,17 @@ typeof HTMLElement == "function" && (Ui = class extends HTMLElement {
|
|
|
2680
2746
|
* @param {string} attribute_name
|
|
2681
2747
|
*/
|
|
2682
2748
|
$$g_p(t) {
|
|
2683
|
-
return
|
|
2749
|
+
return yn(this.$$p_d).find(
|
|
2684
2750
|
(n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
|
|
2685
2751
|
) || t;
|
|
2686
2752
|
}
|
|
2687
2753
|
});
|
|
2688
|
-
function
|
|
2689
|
-
const
|
|
2690
|
-
if (t =
|
|
2754
|
+
function wn(e, t, n, r) {
|
|
2755
|
+
const i = n[e]?.type;
|
|
2756
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
2691
2757
|
return t;
|
|
2692
|
-
if (
|
|
2693
|
-
switch (
|
|
2758
|
+
if (r === "toAttribute")
|
|
2759
|
+
switch (i) {
|
|
2694
2760
|
case "Object":
|
|
2695
2761
|
case "Array":
|
|
2696
2762
|
return t == null ? null : JSON.stringify(t);
|
|
@@ -2702,7 +2768,7 @@ function gn(e, t, n, i) {
|
|
|
2702
2768
|
return t;
|
|
2703
2769
|
}
|
|
2704
2770
|
else
|
|
2705
|
-
switch (
|
|
2771
|
+
switch (i) {
|
|
2706
2772
|
case "Object":
|
|
2707
2773
|
case "Array":
|
|
2708
2774
|
return t && JSON.parse(t);
|
|
@@ -2715,7 +2781,7 @@ function gn(e, t, n, i) {
|
|
|
2715
2781
|
return t;
|
|
2716
2782
|
}
|
|
2717
2783
|
}
|
|
2718
|
-
function
|
|
2784
|
+
function Ua(e) {
|
|
2719
2785
|
const t = {};
|
|
2720
2786
|
return e.childNodes.forEach((n) => {
|
|
2721
2787
|
t[
|
|
@@ -2724,197 +2790,352 @@ function Pl(e) {
|
|
|
2724
2790
|
] = !0;
|
|
2725
2791
|
}), t;
|
|
2726
2792
|
}
|
|
2727
|
-
function
|
|
2728
|
-
let
|
|
2793
|
+
function wr(e, t, n, r, i, s) {
|
|
2794
|
+
let a = class extends Ki {
|
|
2729
2795
|
constructor() {
|
|
2730
|
-
super(e, n,
|
|
2796
|
+
super(e, n, i), this.$$p_d = t;
|
|
2731
2797
|
}
|
|
2732
2798
|
static get observedAttributes() {
|
|
2733
|
-
return
|
|
2734
|
-
(
|
|
2799
|
+
return yn(t).map(
|
|
2800
|
+
(l) => (t[l].attribute || l).toLowerCase()
|
|
2735
2801
|
);
|
|
2736
2802
|
}
|
|
2737
2803
|
};
|
|
2738
|
-
return
|
|
2739
|
-
|
|
2804
|
+
return yn(t).forEach((l) => {
|
|
2805
|
+
$n(a.prototype, l, {
|
|
2740
2806
|
get() {
|
|
2741
|
-
return this.$$c &&
|
|
2807
|
+
return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
|
|
2742
2808
|
},
|
|
2743
2809
|
set(o) {
|
|
2744
|
-
o =
|
|
2810
|
+
o = wn(l, o, t), this.$$d[l] = o;
|
|
2745
2811
|
var c = this.$$c;
|
|
2746
2812
|
if (c) {
|
|
2747
|
-
var d = wt(c,
|
|
2748
|
-
d ? c[
|
|
2813
|
+
var d = wt(c, l)?.get;
|
|
2814
|
+
d ? c[l] = o : c.$set({ [l]: o });
|
|
2749
2815
|
}
|
|
2750
2816
|
}
|
|
2751
2817
|
});
|
|
2752
|
-
}),
|
|
2753
|
-
|
|
2818
|
+
}), r.forEach((l) => {
|
|
2819
|
+
$n(a.prototype, l, {
|
|
2754
2820
|
get() {
|
|
2755
|
-
return this.$$c?.[
|
|
2821
|
+
return this.$$c?.[l];
|
|
2756
2822
|
}
|
|
2757
2823
|
});
|
|
2758
2824
|
}), e.element = /** @type {any} */
|
|
2759
|
-
|
|
2825
|
+
a, a;
|
|
2760
2826
|
}
|
|
2761
|
-
var
|
|
2827
|
+
var Vr;
|
|
2762
2828
|
(function(e) {
|
|
2763
2829
|
e.TTS_WORD = "tts-word", e.TTS_SENTENCE = "tts-sentence", e.ANNOTATION = "annotation";
|
|
2764
|
-
})(
|
|
2765
|
-
var
|
|
2830
|
+
})(Vr || (Vr = {}));
|
|
2831
|
+
var Ur;
|
|
2766
2832
|
(function(e) {
|
|
2767
|
-
e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange";
|
|
2768
|
-
})(
|
|
2769
|
-
const
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2833
|
+
e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange", e.UNDERLINE = "underline";
|
|
2834
|
+
})(Ur || (Ur = {}));
|
|
2835
|
+
const qa = {
|
|
2836
|
+
/**
|
|
2837
|
+
* Visual accessibility features
|
|
2838
|
+
* For students with low vision, color blindness, or visual processing needs
|
|
2839
|
+
*/
|
|
2840
|
+
visual: {
|
|
2841
|
+
// Magnification and zoom
|
|
2842
|
+
magnification: "magnification",
|
|
2843
|
+
screenMagnifier: "screenMagnifier",
|
|
2844
|
+
zoomable: "zoomable",
|
|
2845
|
+
// Color and contrast
|
|
2846
|
+
highContrastDisplay: "highContrastDisplay",
|
|
2847
|
+
highContrastAudio: "highContrastAudio",
|
|
2848
|
+
colorContrast: "colorContrast",
|
|
2849
|
+
invertColors: "invertColors",
|
|
2850
|
+
// Display customization
|
|
2851
|
+
displayTransformability: "displayTransformability",
|
|
2852
|
+
largePrint: "largePrint",
|
|
2853
|
+
fontEnlargement: "fontEnlargement",
|
|
2854
|
+
resizeText: "resizeText",
|
|
2855
|
+
// Visual alternatives
|
|
2856
|
+
alternativeText: "alternativeText",
|
|
2857
|
+
longDescription: "longDescription",
|
|
2858
|
+
describedMath: "describedMath",
|
|
2859
|
+
tactileGraphic: "tactileGraphic",
|
|
2860
|
+
tactileObject: "tactileObject"
|
|
2861
|
+
},
|
|
2862
|
+
/**
|
|
2863
|
+
* Auditory accessibility features
|
|
2864
|
+
* For students who are deaf, hard of hearing, or benefit from audio
|
|
2865
|
+
*/
|
|
2866
|
+
auditory: {
|
|
2867
|
+
// Audio output
|
|
2868
|
+
audioDescription: "audioDescription",
|
|
2869
|
+
textToSpeech: "textToSpeech",
|
|
2870
|
+
readAloud: "readAloud",
|
|
2871
|
+
humanVoice: "humanVoice",
|
|
2872
|
+
syntheticVoice: "syntheticVoice",
|
|
2873
|
+
// Speech control
|
|
2874
|
+
speechRate: "speechRate",
|
|
2875
|
+
speechVolume: "speechVolume",
|
|
2876
|
+
voicePitch: "voicePitch",
|
|
2877
|
+
// Visual alternatives for audio
|
|
2878
|
+
captions: "captions",
|
|
2879
|
+
closedCaptions: "closedCaptions",
|
|
2880
|
+
openCaptions: "openCaptions",
|
|
2881
|
+
transcript: "transcript",
|
|
2882
|
+
signLanguage: "signLanguage",
|
|
2883
|
+
subtitles: "subtitles",
|
|
2884
|
+
// Audio adjustments
|
|
2885
|
+
audioControl: "audioControl",
|
|
2886
|
+
noBackgroundAudio: "noBackgroundAudio"
|
|
2887
|
+
},
|
|
2888
|
+
/**
|
|
2889
|
+
* Motor/physical accessibility features
|
|
2890
|
+
* For students with limited mobility or motor control
|
|
2891
|
+
*/
|
|
2892
|
+
motor: {
|
|
2893
|
+
// Input alternatives
|
|
2894
|
+
keyboardControl: "keyboardControl",
|
|
2895
|
+
mouseControl: "mouseControl",
|
|
2896
|
+
touchControl: "touchControl",
|
|
2897
|
+
voiceControl: "voiceControl",
|
|
2898
|
+
switchControl: "switchControl",
|
|
2899
|
+
eyeGazeControl: "eyeGazeControl",
|
|
2900
|
+
// Keyboard features
|
|
2901
|
+
singleSwitchAccess: "singleSwitchAccess",
|
|
2902
|
+
stickyKeys: "stickyKeys",
|
|
2903
|
+
keyboardShortcuts: "keyboardShortcuts",
|
|
2904
|
+
// Timing
|
|
2905
|
+
timingControl: "timingControl",
|
|
2906
|
+
unlimitedTime: "unlimitedTime",
|
|
2907
|
+
extendedTime: "extendedTime",
|
|
2908
|
+
pauseControl: "pauseControl"
|
|
2909
|
+
},
|
|
2910
|
+
/**
|
|
2911
|
+
* Cognitive/learning accessibility features
|
|
2912
|
+
* For students with learning disabilities, ADHD, autism, etc.
|
|
2913
|
+
*/
|
|
2914
|
+
cognitive: {
|
|
2915
|
+
// Content simplification
|
|
2916
|
+
simplifiedLanguage: "simplifiedLanguage",
|
|
2917
|
+
reducedComplexity: "reducedComplexity",
|
|
2918
|
+
structuralNavigation: "structuralNavigation",
|
|
2919
|
+
tableOfContents: "tableOfContents",
|
|
2920
|
+
// Focus and attention
|
|
2921
|
+
reducedDistraction: "reducedDistraction",
|
|
2922
|
+
noFlashing: "noFlashing",
|
|
2923
|
+
pauseAnimation: "pauseAnimation",
|
|
2924
|
+
// Organization and support
|
|
2925
|
+
annotations: "annotations",
|
|
2926
|
+
bookmarking: "bookmarking",
|
|
2927
|
+
highlighting: "highlighting",
|
|
2928
|
+
guidedNavigation: "guidedNavigation",
|
|
2929
|
+
// Tools
|
|
2930
|
+
calculator: "calculator",
|
|
2931
|
+
dictionary: "dictionary",
|
|
2932
|
+
thesaurus: "thesaurus",
|
|
2933
|
+
spellingAssistance: "spellingAssistance",
|
|
2934
|
+
grammarAssistance: "grammarAssistance"
|
|
2935
|
+
},
|
|
2936
|
+
/**
|
|
2937
|
+
* Reading support features
|
|
2938
|
+
* For students with dyslexia or reading challenges
|
|
2939
|
+
*/
|
|
2940
|
+
reading: {
|
|
2941
|
+
// Text presentation
|
|
2942
|
+
lineSpacing: "lineSpacing",
|
|
2943
|
+
wordSpacing: "wordSpacing",
|
|
2944
|
+
letterSpacing: "letterSpacing",
|
|
2945
|
+
fontFamily: "fontFamily",
|
|
2946
|
+
readingMask: "readingMask",
|
|
2947
|
+
readingGuide: "readingGuide",
|
|
2948
|
+
readingRuler: "readingRuler",
|
|
2949
|
+
// Highlighting and emphasis
|
|
2950
|
+
wordHighlighting: "wordHighlighting",
|
|
2951
|
+
lineHighlighting: "lineHighlighting",
|
|
2952
|
+
focusIndicator: "focusIndicator",
|
|
2953
|
+
// Content support
|
|
2954
|
+
printableResource: "printableResource",
|
|
2955
|
+
braille: "braille",
|
|
2956
|
+
nemeth: "nemeth",
|
|
2957
|
+
refreshableBraille: "refreshableBraille"
|
|
2958
|
+
},
|
|
2959
|
+
/**
|
|
2960
|
+
* Navigation features
|
|
2961
|
+
* For efficient content navigation
|
|
2962
|
+
*/
|
|
2963
|
+
navigation: {
|
|
2964
|
+
// Structure
|
|
2965
|
+
index: "index",
|
|
2966
|
+
pageNavigation: "pageNavigation",
|
|
2967
|
+
skipContent: "skipContent",
|
|
2968
|
+
breadcrumbs: "breadcrumbs",
|
|
2969
|
+
// Search
|
|
2970
|
+
searchable: "searchable",
|
|
2971
|
+
fullTextSearch: "fullTextSearch"
|
|
2972
|
+
},
|
|
2973
|
+
/**
|
|
2974
|
+
* Linguistic features
|
|
2975
|
+
* For language support
|
|
2976
|
+
*/
|
|
2977
|
+
linguistic: {
|
|
2978
|
+
// Languages
|
|
2979
|
+
multilingualText: "multilingualText",
|
|
2980
|
+
translatedText: "translatedText",
|
|
2981
|
+
glossary: "glossary",
|
|
2982
|
+
// Sign language
|
|
2983
|
+
signLanguageInterpretation: "signLanguageInterpretation",
|
|
2984
|
+
visualLanguage: "visualLanguage"
|
|
2985
|
+
},
|
|
2986
|
+
/**
|
|
2987
|
+
* Assessment-specific features
|
|
2988
|
+
* Features specific to test-taking environments
|
|
2989
|
+
*/
|
|
2990
|
+
assessment: {
|
|
2991
|
+
// Tools
|
|
2992
|
+
protractor: "protractor",
|
|
2993
|
+
ruler: "ruler",
|
|
2994
|
+
graph: "graph",
|
|
2995
|
+
graphingCalculator: "graphingCalculator",
|
|
2996
|
+
periodicTable: "periodicTable",
|
|
2997
|
+
formulaSheet: "formulaSheet",
|
|
2998
|
+
// Answer support
|
|
2999
|
+
answerMasking: "answerMasking",
|
|
3000
|
+
answerEliminator: "answerEliminator",
|
|
3001
|
+
strikethrough: "strikethrough",
|
|
3002
|
+
// Item features
|
|
3003
|
+
itemGlossary: "itemGlossary",
|
|
3004
|
+
tutorialAvailable: "tutorialAvailable"
|
|
3005
|
+
}
|
|
2785
3006
|
};
|
|
2786
|
-
Object.
|
|
3007
|
+
Object.values(qa).flatMap((e) => Object.values(e));
|
|
2787
3008
|
var rr;
|
|
2788
3009
|
(function(e) {
|
|
2789
3010
|
e[e.BASE = 0] = "BASE", e[e.TOOL = 1e3] = "TOOL", e[e.MODAL = 2e3] = "MODAL", e[e.CONTROL = 3e3] = "CONTROL", e[e.HIGHLIGHT = 4e3] = "HIGHLIGHT";
|
|
2790
3011
|
})(rr || (rr = {}));
|
|
2791
|
-
var
|
|
3012
|
+
var qr;
|
|
2792
3013
|
(function(e) {
|
|
2793
3014
|
e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
|
|
2794
|
-
})(
|
|
2795
|
-
var
|
|
2796
|
-
function
|
|
2797
|
-
|
|
2798
|
-
let n =
|
|
2799
|
-
var
|
|
3015
|
+
})(qr || (qr = {}));
|
|
3016
|
+
var Ka = /* @__PURE__ */ _t('<button type="button" class="btn btn-ghost btn-sm btn-circle"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5"><path stroke-linecap="round" stroke-linejoin="round" d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z"></path><path stroke-linecap="round" stroke-linejoin="round" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path></svg></button>');
|
|
3017
|
+
function Wi(e, t) {
|
|
3018
|
+
Rn(t, !0);
|
|
3019
|
+
let n = _e(t, "buttonEl", 7, null), r = _e(t, "onClick"), i = _e(t, "ariaLabel", 7, "Settings"), s = _e(t, "active", 7, !1);
|
|
3020
|
+
var a = {
|
|
2800
3021
|
get buttonEl() {
|
|
2801
3022
|
return n();
|
|
2802
3023
|
},
|
|
2803
3024
|
set buttonEl(o = null) {
|
|
2804
|
-
n(o),
|
|
3025
|
+
n(o), ue();
|
|
2805
3026
|
},
|
|
2806
3027
|
get onClick() {
|
|
2807
|
-
return
|
|
3028
|
+
return r();
|
|
2808
3029
|
},
|
|
2809
3030
|
set onClick(o) {
|
|
2810
|
-
|
|
3031
|
+
r(o), ue();
|
|
2811
3032
|
},
|
|
2812
3033
|
get ariaLabel() {
|
|
2813
|
-
return
|
|
3034
|
+
return i();
|
|
2814
3035
|
},
|
|
2815
3036
|
set ariaLabel(o = "Settings") {
|
|
2816
|
-
|
|
3037
|
+
i(o), ue();
|
|
2817
3038
|
},
|
|
2818
3039
|
get active() {
|
|
2819
3040
|
return s();
|
|
2820
3041
|
},
|
|
2821
3042
|
set active(o = !1) {
|
|
2822
|
-
s(o),
|
|
3043
|
+
s(o), ue();
|
|
2823
3044
|
}
|
|
2824
|
-
},
|
|
2825
|
-
return
|
|
2826
|
-
|
|
2827
|
-
},
|
|
2828
|
-
|
|
2829
|
-
}),
|
|
3045
|
+
}, l = Ka();
|
|
3046
|
+
return l.__click = function(...o) {
|
|
3047
|
+
r()?.apply(this, o);
|
|
3048
|
+
}, br(l, (o) => n(o), () => n()), nt(() => {
|
|
3049
|
+
Xe(l, "aria-label", i()), Xe(l, "aria-pressed", s());
|
|
3050
|
+
}), Te(e, l), On(a);
|
|
2830
3051
|
}
|
|
2831
3052
|
_r(["click"]);
|
|
2832
|
-
|
|
2833
|
-
var
|
|
2834
|
-
function
|
|
2835
|
-
|
|
2836
|
-
let n =
|
|
2837
|
-
function o(
|
|
2838
|
-
|
|
2839
|
-
}
|
|
2840
|
-
|
|
2841
|
-
n() && queueMicrotask(() =>
|
|
2842
|
-
}),
|
|
3053
|
+
wr(Wi, { buttonEl: {}, onClick: {}, ariaLabel: {}, active: {} }, [], [], { mode: "open" });
|
|
3054
|
+
var Wa = /* @__PURE__ */ _t('<div class="fixed inset-0" aria-hidden="true" style="z-index: 4000;"></div> <div class="tool-settings-panel fixed w-80 rounded-box bg-base-100 shadow p-3 text-base-content" role="dialog" tabindex="-1"><div class="flex items-center justify-between gap-2 mb-2"><h2 class="font-semibold text-sm"> </h2> <button type="button" class="btn btn-ghost btn-xs" aria-label="Close settings">Close</button></div> <div class="text-sm"><!></div></div>', 1);
|
|
3055
|
+
function Xi(e, t) {
|
|
3056
|
+
Rn(t, !0);
|
|
3057
|
+
let n = _e(t, "open"), r = _e(t, "title", 7, "Settings"), i = _e(t, "onClose"), s = _e(t, "anchorEl", 7, null), a = /* @__PURE__ */ R(null), l = /* @__PURE__ */ R(null);
|
|
3058
|
+
function o(g) {
|
|
3059
|
+
g.key === "Escape" && i()();
|
|
3060
|
+
}
|
|
3061
|
+
yt(() => {
|
|
3062
|
+
n() && queueMicrotask(() => f(a)?.focus?.());
|
|
3063
|
+
}), yt(() => {
|
|
2843
3064
|
if (n() && s()) {
|
|
2844
|
-
const
|
|
2845
|
-
m + v <= window.innerWidth ? E(
|
|
2846
|
-
|
|
3065
|
+
const g = s().getBoundingClientRect(), v = 320, _ = 8, m = g.right + _;
|
|
3066
|
+
m + v <= window.innerWidth ? E(l, { top: g.top, left: m }, !0) : E(
|
|
3067
|
+
l,
|
|
2847
3068
|
{
|
|
2848
|
-
top:
|
|
2849
|
-
right: window.innerWidth -
|
|
3069
|
+
top: g.top,
|
|
3070
|
+
right: window.innerWidth - g.left + _
|
|
2850
3071
|
},
|
|
2851
3072
|
!0
|
|
2852
3073
|
);
|
|
2853
3074
|
} else
|
|
2854
|
-
E(
|
|
2855
|
-
}),
|
|
2856
|
-
const
|
|
3075
|
+
E(l, null);
|
|
3076
|
+
}), qi(() => {
|
|
3077
|
+
const g = (v) => {
|
|
2857
3078
|
if (!n()) return;
|
|
2858
|
-
const
|
|
2859
|
-
|
|
3079
|
+
const _ = v.target;
|
|
3080
|
+
_ && (f(a)?.contains(_) || s()?.contains(_) || i()());
|
|
2860
3081
|
};
|
|
2861
|
-
return document.addEventListener("mousedown",
|
|
3082
|
+
return document.addEventListener("mousedown", g), () => document.removeEventListener("mousedown", g);
|
|
2862
3083
|
});
|
|
2863
3084
|
var c = {
|
|
2864
3085
|
get open() {
|
|
2865
3086
|
return n();
|
|
2866
3087
|
},
|
|
2867
|
-
set open(
|
|
2868
|
-
n(
|
|
3088
|
+
set open(g) {
|
|
3089
|
+
n(g), ue();
|
|
2869
3090
|
},
|
|
2870
3091
|
get title() {
|
|
2871
|
-
return
|
|
3092
|
+
return r();
|
|
2872
3093
|
},
|
|
2873
|
-
set title(
|
|
2874
|
-
|
|
3094
|
+
set title(g = "Settings") {
|
|
3095
|
+
r(g), ue();
|
|
2875
3096
|
},
|
|
2876
3097
|
get onClose() {
|
|
2877
|
-
return
|
|
3098
|
+
return i();
|
|
2878
3099
|
},
|
|
2879
|
-
set onClose(
|
|
2880
|
-
|
|
3100
|
+
set onClose(g) {
|
|
3101
|
+
i(g), ue();
|
|
2881
3102
|
},
|
|
2882
3103
|
get anchorEl() {
|
|
2883
3104
|
return s();
|
|
2884
3105
|
},
|
|
2885
|
-
set anchorEl(
|
|
2886
|
-
s(
|
|
3106
|
+
set anchorEl(g = null) {
|
|
3107
|
+
s(g), ue();
|
|
2887
3108
|
}
|
|
2888
|
-
}, d =
|
|
3109
|
+
}, d = Yi(), h = tt(d);
|
|
2889
3110
|
{
|
|
2890
|
-
var
|
|
2891
|
-
var v =
|
|
2892
|
-
|
|
2893
|
-
|
|
3111
|
+
var p = (g) => {
|
|
3112
|
+
var v = Wa(), _ = tt(v);
|
|
3113
|
+
_.__mousedown = function(...A) {
|
|
3114
|
+
i()?.apply(this, A);
|
|
2894
3115
|
};
|
|
2895
|
-
var m = z(
|
|
3116
|
+
var m = z(_, 2);
|
|
2896
3117
|
m.__keydown = o;
|
|
2897
|
-
var
|
|
2898
|
-
|
|
2899
|
-
var
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
},
|
|
2903
|
-
var
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
}),
|
|
3118
|
+
var C = U(m), S = U(C), ie = U(S, !0);
|
|
3119
|
+
V(S);
|
|
3120
|
+
var Y = z(S, 2);
|
|
3121
|
+
Y.__click = function(...A) {
|
|
3122
|
+
i()?.apply(this, A);
|
|
3123
|
+
}, V(C);
|
|
3124
|
+
var I = z(C, 2), ye = U(I);
|
|
3125
|
+
La(ye, t, "default", {}), V(I), V(m), br(m, (A) => E(a, A), () => f(a)), nt(() => {
|
|
3126
|
+
Xe(m, "aria-label", r()), Ye(m, `z-index: 4100; ${f(l) ? `top: ${f(l).top}px; ${f(l).left !== void 0 ? `left: ${f(l).left}px;` : `right: ${f(l).right}px;`}` : "top: 4rem; right: 1rem;"}`), mn(ie, r());
|
|
3127
|
+
}), Te(g, v);
|
|
2907
3128
|
};
|
|
2908
|
-
|
|
2909
|
-
n() && p
|
|
3129
|
+
bn(h, (g) => {
|
|
3130
|
+
n() && g(p);
|
|
2910
3131
|
});
|
|
2911
3132
|
}
|
|
2912
|
-
return
|
|
3133
|
+
return Te(e, d), On(c);
|
|
2913
3134
|
}
|
|
2914
3135
|
_r(["mousedown", "keydown", "click"]);
|
|
2915
|
-
|
|
2916
|
-
var
|
|
2917
|
-
const
|
|
3136
|
+
wr(Xi, { open: {}, title: {}, onClose: {}, anchorEl: {} }, ["default"], [], { mode: "open" });
|
|
3137
|
+
var Xa = /* @__PURE__ */ _t('<div class="line-reader-mask line-reader-mask-top svelte-1a3d6dx" aria-hidden="true"></div> <div class="line-reader-mask line-reader-mask-bottom svelte-1a3d6dx" aria-hidden="true"></div> <div class="line-reader-mask line-reader-mask-left svelte-1a3d6dx" aria-hidden="true"></div> <div class="line-reader-mask line-reader-mask-right svelte-1a3d6dx" aria-hidden="true"></div>', 1), Ja = /* @__PURE__ */ _t('<label><input type="radio" name="color"/> <div class="color-swatch"></div> <span> </span></label>'), Qa = /* @__PURE__ */ _t('<fieldset class="setting-group"><legend>Color</legend> <!></fieldset> <div class="setting-group"><div class="setting-label"><span>Opacity</span> <span class="setting-value" aria-live="polite"> </span></div> <input type="range" min="10" max="90" step="5" aria-label="Opacity" aria-valuemin="10" aria-valuemax="90"/></div>', 1), Za = /* @__PURE__ */ _t('<fieldset class="setting-group"><legend>Mode</legend> <label><input type="radio" name="mode" value="highlight"/> <span>Highlight</span></label> <label><input type="radio" name="mode" value="obscure"/> <span>Masking</span></label></fieldset> <!>', 1), el = /* @__PURE__ */ _t('<div class="sr-only svelte-1a3d6dx" role="status" aria-live="polite" aria-atomic="true"> </div> <!> <div role="application" tabindex="0" aria-roledescription="Draggable and resizable reading guide overlay"><div class="line-reader-container svelte-1a3d6dx"><!></div> <div class="resize-handle resize-handle-bottom svelte-1a3d6dx" title="Drag to resize height" role="button" tabindex="-1" aria-label="Resize handle - drag to adjust height"><svg width="20" height="8" viewBox="0 0 20 8" aria-hidden="true"><rect x="8" y="3" width="4" height="2" fill="#4CAF50" rx="1"></rect></svg></div></div> <!>', 1);
|
|
3138
|
+
const tl = {
|
|
2918
3139
|
hash: "svelte-1a3d6dx",
|
|
2919
3140
|
code: `.sr-only.svelte-1a3d6dx {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;}.line-reader-frame.svelte-1a3d6dx {border:2px solid rgba(76, 175, 80, 0.8);cursor:move;overflow:visible;position:absolute;transform:translate(-50%, -50%);user-select:none;pointer-events:auto;touch-action:none;}.line-reader-frame.svelte-1a3d6dx:focus {outline:3px solid #4A90E2;outline-offset:2px;}.line-reader-frame.svelte-1a3d6dx:focus-visible {outline:3px solid #4A90E2;outline-offset:2px;}.line-reader-container.svelte-1a3d6dx {width:100%;height:100%;position:relative;transition:background-color 0.2s ease;}.resize-handle.svelte-1a3d6dx {position:absolute;cursor:ns-resize;z-index:10;display:flex;align-items:center;justify-content:center;}.resize-handle-bottom.svelte-1a3d6dx {bottom:-10px;left:50%;transform:translateX(-50%);width:40px;height:16px;background-color:rgba(255, 255, 255, 0.9);border-radius:8px;border:2px solid #4CAF50;}.resize-handle.svelte-1a3d6dx:hover {background-color:rgba(76, 175, 80, 0.2);}.resize-handle.svelte-1a3d6dx:active {cursor:ns-resize;}.line-reader-frame.svelte-1a3d6dx:active {cursor:grabbing;}
|
|
2920
3141
|
|
|
@@ -2928,281 +3149,281 @@ const Ul = {
|
|
|
2928
3149
|
|
|
2929
3150
|
/* In masking mode, the window should be transparent to show content underneath */.line-reader-frame.masking-mode.svelte-1a3d6dx .line-reader-container:where(.svelte-1a3d6dx) {background-color:transparent !important;}`
|
|
2930
3151
|
};
|
|
2931
|
-
function
|
|
2932
|
-
|
|
2933
|
-
let n =
|
|
3152
|
+
function nl(e, t) {
|
|
3153
|
+
Rn(t, !0), Da(e, tl);
|
|
3154
|
+
let n = _e(t, "visible", 7, !1), r = _e(t, "toolId", 7, "lineReader"), i = _e(t, "coordinator");
|
|
2934
3155
|
const s = typeof window < "u";
|
|
2935
|
-
let
|
|
3156
|
+
let a = /* @__PURE__ */ R(void 0), l = /* @__PURE__ */ R(void 0), o = /* @__PURE__ */ R(!1), c = /* @__PURE__ */ R(!1), d = /* @__PURE__ */ R(ze({
|
|
2936
3157
|
x: s ? window.innerWidth / 2 : 400,
|
|
2937
3158
|
y: s ? window.innerHeight / 2 : 300
|
|
2938
|
-
})), h = /* @__PURE__ */
|
|
3159
|
+
})), h = /* @__PURE__ */ R(ze({ width: 600, height: 60 })), p = /* @__PURE__ */ R(ze({ x: 0, y: 0 })), g = /* @__PURE__ */ R(ze({ width: 0, height: 0, mouseY: 0 })), v = /* @__PURE__ */ R(""), _ = /* @__PURE__ */ R(
|
|
2939
3160
|
"#ffff00"
|
|
2940
3161
|
// Yellow
|
|
2941
|
-
), m = /* @__PURE__ */
|
|
2942
|
-
const
|
|
3162
|
+
), m = /* @__PURE__ */ R(0.3), C = /* @__PURE__ */ R("highlight"), S = /* @__PURE__ */ R(!1), ie = /* @__PURE__ */ R(!1);
|
|
3163
|
+
const Y = [
|
|
2943
3164
|
{ name: "Yellow", value: "#ffff00" },
|
|
2944
3165
|
{ name: "Blue", value: "#00bfff" },
|
|
2945
3166
|
{ name: "Pink", value: "#ff69b4" },
|
|
2946
3167
|
{ name: "Green", value: "#00ff7f" },
|
|
2947
3168
|
{ name: "Orange", value: "#ffa500" }
|
|
2948
|
-
],
|
|
3169
|
+
], I = 10, ye = 10;
|
|
2949
3170
|
function A(w) {
|
|
2950
3171
|
E(v, w, !0), setTimeout(() => E(v, ""), 1e3);
|
|
2951
3172
|
}
|
|
2952
|
-
function
|
|
2953
|
-
const
|
|
2954
|
-
E(
|
|
3173
|
+
function P() {
|
|
3174
|
+
const M = (Y.findIndex((Ze) => Ze.value === f(_)) + 1) % Y.length;
|
|
3175
|
+
E(_, Y[M].value, !0), A(`Color changed to ${Y[M].name}`);
|
|
2955
3176
|
}
|
|
2956
|
-
function
|
|
2957
|
-
E(m, Math.max(0.1, Math.min(0.9,
|
|
3177
|
+
function on(w) {
|
|
3178
|
+
E(m, Math.max(0.1, Math.min(0.9, f(m) + w)), !0), A(`Opacity ${Math.round(f(m) * 100)}%`);
|
|
2958
3179
|
}
|
|
2959
|
-
function
|
|
2960
|
-
E(
|
|
3180
|
+
function Dn() {
|
|
3181
|
+
E(C, f(C) === "highlight" ? "obscure" : "highlight", !0), A(`Mode changed to ${f(C) === "highlight" ? "highlight" : "masking"}`);
|
|
2961
3182
|
}
|
|
2962
|
-
function
|
|
2963
|
-
E(
|
|
3183
|
+
function Ji() {
|
|
3184
|
+
E(S, !f(S));
|
|
2964
3185
|
}
|
|
2965
|
-
function
|
|
2966
|
-
E(
|
|
3186
|
+
function Qi() {
|
|
3187
|
+
E(S, !1);
|
|
2967
3188
|
}
|
|
2968
|
-
function
|
|
2969
|
-
E(
|
|
2970
|
-
const
|
|
2971
|
-
A(`Color changed to ${
|
|
2972
|
-
}
|
|
2973
|
-
function
|
|
2974
|
-
const
|
|
2975
|
-
if (
|
|
2976
|
-
|
|
3189
|
+
function Zi(w) {
|
|
3190
|
+
E(_, w, !0);
|
|
3191
|
+
const M = Y.find((Ze) => Ze.value === w)?.name || "Unknown";
|
|
3192
|
+
A(`Color changed to ${M}`);
|
|
3193
|
+
}
|
|
3194
|
+
function es(w) {
|
|
3195
|
+
const M = w.target;
|
|
3196
|
+
if (M.closest(".resize-handle"))
|
|
3197
|
+
ns(w);
|
|
2977
3198
|
else {
|
|
2978
|
-
if (
|
|
3199
|
+
if (M.closest(".tool-settings-button") || M.closest(".tool-settings-panel"))
|
|
2979
3200
|
return;
|
|
2980
|
-
|
|
3201
|
+
ts(w);
|
|
2981
3202
|
}
|
|
2982
3203
|
}
|
|
2983
|
-
function
|
|
2984
|
-
|
|
2985
|
-
|
|
3204
|
+
function ts(w) {
|
|
3205
|
+
f(a) && (f(a).setPointerCapture(w.pointerId), E(o, !0), E(
|
|
3206
|
+
p,
|
|
2986
3207
|
{
|
|
2987
|
-
x: w.clientX -
|
|
2988
|
-
y: w.clientY -
|
|
3208
|
+
x: w.clientX - f(d).x,
|
|
3209
|
+
y: w.clientY - f(d).y
|
|
2989
3210
|
},
|
|
2990
3211
|
!0
|
|
2991
|
-
),
|
|
3212
|
+
), i()?.bringToFront(f(a)), f(a).addEventListener("pointermove", In), f(a).addEventListener("pointerup", Pn), w.preventDefault());
|
|
2992
3213
|
}
|
|
2993
|
-
function
|
|
2994
|
-
|
|
2995
|
-
|
|
3214
|
+
function ns(w) {
|
|
3215
|
+
f(a) && (f(a).setPointerCapture(w.pointerId), E(c, !0), E(
|
|
3216
|
+
g,
|
|
2996
3217
|
{
|
|
2997
|
-
width:
|
|
2998
|
-
height:
|
|
3218
|
+
width: f(h).width,
|
|
3219
|
+
height: f(h).height,
|
|
2999
3220
|
mouseY: w.clientY
|
|
3000
3221
|
},
|
|
3001
3222
|
!0
|
|
3002
|
-
),
|
|
3223
|
+
), i()?.bringToFront(f(a)), f(a).addEventListener("pointermove", In), f(a).addEventListener("pointerup", Pn), w.preventDefault(), w.stopPropagation());
|
|
3003
3224
|
}
|
|
3004
|
-
function
|
|
3005
|
-
if (
|
|
3225
|
+
function In(w) {
|
|
3226
|
+
if (f(o))
|
|
3006
3227
|
E(
|
|
3007
3228
|
d,
|
|
3008
3229
|
{
|
|
3009
|
-
x: w.clientX -
|
|
3010
|
-
y: w.clientY -
|
|
3230
|
+
x: w.clientX - f(p).x,
|
|
3231
|
+
y: w.clientY - f(p).y
|
|
3011
3232
|
},
|
|
3012
3233
|
!0
|
|
3013
3234
|
);
|
|
3014
|
-
else if (
|
|
3015
|
-
const
|
|
3016
|
-
|
|
3235
|
+
else if (f(c)) {
|
|
3236
|
+
const M = w.clientY - f(g).mouseY;
|
|
3237
|
+
f(h).height = Math.max(20, Math.min(400, f(g).height + M));
|
|
3017
3238
|
}
|
|
3018
3239
|
}
|
|
3019
|
-
function
|
|
3020
|
-
|
|
3240
|
+
function Pn(w) {
|
|
3241
|
+
f(a) && (f(a).releasePointerCapture(w.pointerId), f(a).removeEventListener("pointermove", In), f(a).removeEventListener("pointerup", Pn), E(o, !1), E(c, !1));
|
|
3021
3242
|
}
|
|
3022
|
-
function
|
|
3023
|
-
let
|
|
3243
|
+
function rs(w) {
|
|
3244
|
+
let M = !1;
|
|
3024
3245
|
switch (w.key) {
|
|
3025
3246
|
case "ArrowUp":
|
|
3026
|
-
|
|
3247
|
+
f(d).y -= I, A(`Moved up to ${Math.round(f(d).y)}`), M = !0;
|
|
3027
3248
|
break;
|
|
3028
3249
|
case "ArrowDown":
|
|
3029
|
-
|
|
3250
|
+
f(d).y += I, A(`Moved down to ${Math.round(f(d).y)}`), M = !0;
|
|
3030
3251
|
break;
|
|
3031
3252
|
case "ArrowLeft":
|
|
3032
|
-
|
|
3253
|
+
f(d).x -= I, A(`Moved left to ${Math.round(f(d).x)}`), M = !0;
|
|
3033
3254
|
break;
|
|
3034
3255
|
case "ArrowRight":
|
|
3035
|
-
|
|
3256
|
+
f(d).x += I, A(`Moved right to ${Math.round(f(d).x)}`), M = !0;
|
|
3036
3257
|
break;
|
|
3037
3258
|
case "+":
|
|
3038
3259
|
case "=":
|
|
3039
|
-
|
|
3260
|
+
f(h).height = Math.min(400, f(h).height + ye), A(`Height ${f(h).height} pixels`), M = !0;
|
|
3040
3261
|
break;
|
|
3041
3262
|
case "-":
|
|
3042
3263
|
case "_":
|
|
3043
|
-
|
|
3264
|
+
f(h).height = Math.max(20, f(h).height - ye), A(`Height ${f(h).height} pixels`), M = !0;
|
|
3044
3265
|
break;
|
|
3045
3266
|
case "c":
|
|
3046
3267
|
case "C":
|
|
3047
|
-
|
|
3268
|
+
P(), M = !0;
|
|
3048
3269
|
break;
|
|
3049
3270
|
case "]":
|
|
3050
|
-
|
|
3271
|
+
on(0.1), M = !0;
|
|
3051
3272
|
break;
|
|
3052
3273
|
case "[":
|
|
3053
|
-
|
|
3274
|
+
on(-0.1), M = !0;
|
|
3054
3275
|
break;
|
|
3055
3276
|
case "m":
|
|
3056
3277
|
case "M":
|
|
3057
|
-
|
|
3278
|
+
Dn(), M = !0;
|
|
3058
3279
|
break;
|
|
3059
3280
|
}
|
|
3060
|
-
|
|
3061
|
-
}
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
}),
|
|
3065
|
-
|
|
3066
|
-
}),
|
|
3067
|
-
|
|
3068
|
-
}),
|
|
3069
|
-
n() &&
|
|
3281
|
+
M && w.preventDefault();
|
|
3282
|
+
}
|
|
3283
|
+
yt(() => {
|
|
3284
|
+
i() && r() && !f(ie) && (i().registerTool(r(), "Line Reader", void 0, rr.TOOL), E(ie, !0));
|
|
3285
|
+
}), qi(() => () => {
|
|
3286
|
+
i() && r() && i().unregisterTool(r());
|
|
3287
|
+
}), yt(() => {
|
|
3288
|
+
i() && f(a) && r() && i().updateToolElement(r(), f(a));
|
|
3289
|
+
}), yt(() => {
|
|
3290
|
+
n() && f(a) && setTimeout(() => f(a)?.focus(), 100);
|
|
3070
3291
|
});
|
|
3071
|
-
let
|
|
3072
|
-
var
|
|
3292
|
+
let is = /* @__PURE__ */ ia(() => f(_) + Math.round(f(m) * 255).toString(16).padStart(2, "0"));
|
|
3293
|
+
var ss = {
|
|
3073
3294
|
get visible() {
|
|
3074
3295
|
return n();
|
|
3075
3296
|
},
|
|
3076
3297
|
set visible(w = !1) {
|
|
3077
|
-
n(w),
|
|
3298
|
+
n(w), ue();
|
|
3078
3299
|
},
|
|
3079
3300
|
get toolId() {
|
|
3080
|
-
return
|
|
3301
|
+
return r();
|
|
3081
3302
|
},
|
|
3082
3303
|
set toolId(w = "lineReader") {
|
|
3083
|
-
|
|
3304
|
+
r(w), ue();
|
|
3084
3305
|
},
|
|
3085
3306
|
get coordinator() {
|
|
3086
|
-
return
|
|
3307
|
+
return i();
|
|
3087
3308
|
},
|
|
3088
3309
|
set coordinator(w) {
|
|
3089
|
-
|
|
3310
|
+
i(w), ue();
|
|
3090
3311
|
}
|
|
3091
|
-
},
|
|
3312
|
+
}, $r = Yi(), as = tt($r);
|
|
3092
3313
|
{
|
|
3093
|
-
var
|
|
3094
|
-
var
|
|
3095
|
-
|
|
3096
|
-
var
|
|
3314
|
+
var ls = (w) => {
|
|
3315
|
+
var M = el(), Ze = tt(M), os = U(Ze, !0);
|
|
3316
|
+
V(Ze);
|
|
3317
|
+
var Er = z(Ze, 2);
|
|
3097
3318
|
{
|
|
3098
|
-
var
|
|
3099
|
-
var
|
|
3100
|
-
|
|
3101
|
-
(
|
|
3102
|
-
|
|
3319
|
+
var us = (J) => {
|
|
3320
|
+
var Bt = Xa(), jt = tt(Bt), mt = z(jt, 2), bt = z(mt, 2), Ht = z(bt, 2);
|
|
3321
|
+
nt(
|
|
3322
|
+
(un, Gt) => {
|
|
3323
|
+
Ye(jt, `height: ${un ?? ""}px;`), Ye(mt, `top: ${f(d).y + f(h).height / 2}px;`), Ye(bt, `top: ${f(d).y - f(h).height / 2}px; height: ${f(h).height ?? ""}px; width: ${Gt ?? ""}px;`), Ye(Ht, `top: ${f(d).y - f(h).height / 2}px; height: ${f(h).height ?? ""}px; left: ${f(d).x + f(h).width / 2}px;`);
|
|
3103
3324
|
},
|
|
3104
3325
|
[
|
|
3105
|
-
() => Math.max(0,
|
|
3106
|
-
() => Math.max(0,
|
|
3326
|
+
() => Math.max(0, f(d).y - f(h).height / 2),
|
|
3327
|
+
() => Math.max(0, f(d).x - f(h).width / 2)
|
|
3107
3328
|
]
|
|
3108
|
-
),
|
|
3329
|
+
), Te(J, Bt);
|
|
3109
3330
|
};
|
|
3110
|
-
|
|
3111
|
-
|
|
3331
|
+
bn(Er, (J) => {
|
|
3332
|
+
f(C) === "obscure" && J(us);
|
|
3112
3333
|
});
|
|
3113
3334
|
}
|
|
3114
|
-
var
|
|
3115
|
-
let
|
|
3116
|
-
|
|
3117
|
-
var Fn =
|
|
3118
|
-
|
|
3119
|
-
onClick:
|
|
3335
|
+
var Re = z(Er, 2);
|
|
3336
|
+
let xr;
|
|
3337
|
+
Re.__pointerdown = es, Re.__keydown = rs;
|
|
3338
|
+
var Fn = U(Re), fs = U(Fn);
|
|
3339
|
+
Wi(fs, {
|
|
3340
|
+
onClick: Ji,
|
|
3120
3341
|
ariaLabel: "Line reader settings",
|
|
3121
3342
|
get active() {
|
|
3122
|
-
return
|
|
3343
|
+
return f(S);
|
|
3123
3344
|
},
|
|
3124
3345
|
get buttonEl() {
|
|
3125
|
-
return
|
|
3346
|
+
return f(l);
|
|
3126
3347
|
},
|
|
3127
|
-
set buttonEl(
|
|
3128
|
-
E(
|
|
3348
|
+
set buttonEl(J) {
|
|
3349
|
+
E(l, J, !0);
|
|
3129
3350
|
}
|
|
3130
|
-
}),
|
|
3131
|
-
var
|
|
3132
|
-
|
|
3351
|
+
}), V(Fn), vn(2), V(Re), br(Re, (J) => E(a, J), () => f(a));
|
|
3352
|
+
var cs = z(Re, 2);
|
|
3353
|
+
Xi(cs, {
|
|
3133
3354
|
get open() {
|
|
3134
|
-
return
|
|
3355
|
+
return f(S);
|
|
3135
3356
|
},
|
|
3136
3357
|
title: "Line Reader Settings",
|
|
3137
|
-
onClose:
|
|
3358
|
+
onClose: Qi,
|
|
3138
3359
|
get anchorEl() {
|
|
3139
|
-
return
|
|
3360
|
+
return f(l);
|
|
3140
3361
|
},
|
|
3141
|
-
children: (
|
|
3142
|
-
var
|
|
3143
|
-
|
|
3144
|
-
E(
|
|
3145
|
-
},
|
|
3146
|
-
var
|
|
3147
|
-
|
|
3148
|
-
E(
|
|
3149
|
-
},
|
|
3150
|
-
var
|
|
3362
|
+
children: (J, Bt) => {
|
|
3363
|
+
var jt = Za(), mt = tt(jt), bt = z(U(mt), 2), Ht = U(bt);
|
|
3364
|
+
dn(Ht), Ht.__change = () => {
|
|
3365
|
+
E(C, "highlight"), A("Mode changed to highlight");
|
|
3366
|
+
}, vn(2), V(bt);
|
|
3367
|
+
var un = z(bt, 2), Gt = U(un);
|
|
3368
|
+
dn(Gt), Gt.__change = () => {
|
|
3369
|
+
E(C, "obscure"), A("Mode changed to masking");
|
|
3370
|
+
}, vn(2), V(un), V(mt);
|
|
3371
|
+
var ds = z(mt, 2);
|
|
3151
3372
|
{
|
|
3152
|
-
var
|
|
3153
|
-
var
|
|
3154
|
-
|
|
3155
|
-
var Ut =
|
|
3156
|
-
|
|
3157
|
-
var
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
}),
|
|
3161
|
-
}),
|
|
3162
|
-
var
|
|
3163
|
-
|
|
3164
|
-
var Yt = z(
|
|
3165
|
-
|
|
3166
|
-
E(m, Number(
|
|
3167
|
-
},
|
|
3168
|
-
(
|
|
3169
|
-
|
|
3373
|
+
var hs = (zn) => {
|
|
3374
|
+
var kr = Qa(), Bn = tt(kr), vs = z(U(Bn), 2);
|
|
3375
|
+
Ra(vs, 17, () => Y, Aa, (Vt, et) => {
|
|
3376
|
+
var Ut = Ja(), qt = U(Ut);
|
|
3377
|
+
dn(qt), qt.__change = () => Zi(f(et).value);
|
|
3378
|
+
var Sr = z(qt, 2), Ar = z(Sr, 2), gs = U(Ar, !0);
|
|
3379
|
+
V(Ar), V(Ut), nt(() => {
|
|
3380
|
+
Hr(qt, f(et).value), Gn(qt, f(_) === f(et).value), Ye(Sr, `background-color: ${f(et).value ?? ""};`), mn(gs, f(et).name);
|
|
3381
|
+
}), Te(Vt, Ut);
|
|
3382
|
+
}), V(Bn);
|
|
3383
|
+
var Tr = z(Bn, 2), jn = U(Tr), Cr = z(U(jn), 2), ps = U(Cr);
|
|
3384
|
+
V(Cr), V(jn);
|
|
3385
|
+
var Yt = z(jn, 2);
|
|
3386
|
+
dn(Yt), Yt.__input = (Vt) => {
|
|
3387
|
+
E(m, Number(Vt.currentTarget.value) / 100), A(`Opacity ${Math.round(f(m) * 100)}%`);
|
|
3388
|
+
}, V(Tr), nt(
|
|
3389
|
+
(Vt, et, Ut) => {
|
|
3390
|
+
mn(ps, `${Vt ?? ""}%`), Hr(Yt, f(m) * 100), Xe(Yt, "aria-valuenow", et), Xe(Yt, "aria-valuetext", `${Ut ?? ""} percent`);
|
|
3170
3391
|
},
|
|
3171
3392
|
[
|
|
3172
|
-
() => Math.round(
|
|
3173
|
-
() => Math.round(
|
|
3174
|
-
() => Math.round(
|
|
3393
|
+
() => Math.round(f(m) * 100),
|
|
3394
|
+
() => Math.round(f(m) * 100),
|
|
3395
|
+
() => Math.round(f(m) * 100)
|
|
3175
3396
|
]
|
|
3176
|
-
),
|
|
3397
|
+
), Te(zn, kr);
|
|
3177
3398
|
};
|
|
3178
|
-
|
|
3179
|
-
|
|
3399
|
+
bn(ds, (zn) => {
|
|
3400
|
+
f(C) === "highlight" && zn(hs);
|
|
3180
3401
|
});
|
|
3181
3402
|
}
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
}),
|
|
3403
|
+
nt(() => {
|
|
3404
|
+
Gn(Ht, f(C) === "highlight"), Gn(Gt, f(C) === "obscure");
|
|
3405
|
+
}), Te(J, jt);
|
|
3185
3406
|
},
|
|
3186
3407
|
$$slots: { default: !0 }
|
|
3187
|
-
}),
|
|
3188
|
-
(
|
|
3189
|
-
|
|
3408
|
+
}), nt(
|
|
3409
|
+
(J, Bt) => {
|
|
3410
|
+
mn(os, f(v)), xr = Fa(Re, 1, "line-reader-frame svelte-1a3d6dx", null, xr, { "masking-mode": f(C) === "obscure" }), Ye(Re, `left: ${f(d).x ?? ""}px; top: ${f(d).y ?? ""}px; width: ${f(h).width ?? ""}px; height: ${f(h).height ?? ""}px;`), Xe(Re, "aria-label", `Line Reader tool. Mode: ${f(C) === "highlight" ? "Highlight" : "Masking"}. Use arrow keys to move, +/- to resize height, C to change color, [ and ] to adjust opacity, M to toggle mode. Current color: ${J ?? ""}, Opacity: ${Bt ?? ""}%`), Ye(Fn, `background-color: ${f(is) ?? ""};`);
|
|
3190
3411
|
},
|
|
3191
3412
|
[
|
|
3192
|
-
() =>
|
|
3193
|
-
() => Math.round(
|
|
3413
|
+
() => Y.find((J) => J.value === f(_))?.name,
|
|
3414
|
+
() => Math.round(f(m) * 100)
|
|
3194
3415
|
]
|
|
3195
|
-
),
|
|
3416
|
+
), Te(w, M);
|
|
3196
3417
|
};
|
|
3197
|
-
|
|
3198
|
-
n() && w(
|
|
3418
|
+
bn(as, (w) => {
|
|
3419
|
+
n() && w(ls);
|
|
3199
3420
|
});
|
|
3200
3421
|
}
|
|
3201
|
-
return
|
|
3422
|
+
return Te(e, $r), On(ss);
|
|
3202
3423
|
}
|
|
3203
3424
|
_r(["pointerdown", "keydown", "change", "input"]);
|
|
3204
|
-
customElements.define("pie-tool-line-reader",
|
|
3205
|
-
|
|
3425
|
+
customElements.define("pie-tool-line-reader", wr(
|
|
3426
|
+
nl,
|
|
3206
3427
|
{
|
|
3207
3428
|
visible: { attribute: "visible", type: "Boolean" },
|
|
3208
3429
|
toolId: { attribute: "tool-id", type: "String" },
|
|
@@ -3212,6 +3433,6 @@ customElements.define("pie-tool-line-reader", mr(
|
|
|
3212
3433
|
[]
|
|
3213
3434
|
));
|
|
3214
3435
|
export {
|
|
3215
|
-
|
|
3436
|
+
nl as default
|
|
3216
3437
|
};
|
|
3217
3438
|
//# sourceMappingURL=tool-line-reader.js.map
|