zabi-components 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +146 -0
- package/dist/KeyValueForm-CC2AhAxK.js +634 -0
- package/dist/NotificationManager-BGzRVJn7.js +74 -0
- package/dist/Skeleton-CaVpFsgI.js +620 -0
- package/dist/Toggle-q1tBzXDR.js +2508 -0
- package/dist/atoms/index.d.ts +15 -0
- package/dist/atoms/index.js +18 -0
- package/dist/index/index.js +27 -0
- package/dist/index-DInFKA3g.js +2645 -0
- package/dist/index.d.ts +14 -0
- package/dist/molecules/KeyValueForm.types.d.ts +11 -0
- package/dist/molecules/index.d.ts +10 -0
- package/dist/molecules/index.js +10 -0
- package/dist/organisms/index.d.ts +2 -0
- package/dist/organisms/index.js +4 -0
- package/dist/vite.svg +1 -0
- package/package.json +91 -0
|
@@ -0,0 +1,2645 @@
|
|
|
1
|
+
var vn = Object.defineProperty;
|
|
2
|
+
var Qe = (t) => {
|
|
3
|
+
throw TypeError(t);
|
|
4
|
+
};
|
|
5
|
+
var _n = (t, e, r) => e in t ? vn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
6
|
+
var $t = (t, e, r) => _n(t, typeof e != "symbol" ? e + "" : e, r), me = (t, e, r) => e.has(t) || Qe("Cannot " + r);
|
|
7
|
+
var O = (t, e, r) => (me(t, e, "read from private field"), r ? r.call(t) : e.get(t)), L = (t, e, r) => e.has(t) ? Qe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), j = (t, e, r, n) => (me(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r), ot = (t, e, r) => (me(t, e, "access private method"), r);
|
|
8
|
+
var gr;
|
|
9
|
+
typeof window < "u" && ((gr = window.__svelte ?? (window.__svelte = {})).v ?? (gr.v = /* @__PURE__ */ new Set())).add("5");
|
|
10
|
+
let Gt = !1, dn = !1;
|
|
11
|
+
function pn() {
|
|
12
|
+
Gt = !0;
|
|
13
|
+
}
|
|
14
|
+
pn();
|
|
15
|
+
const oe = 1, ce = 2, br = 4, hn = 8, wn = 16, gn = 1, bn = 2, yn = 4, En = 8, mn = 16, An = 4, Sn = 1, Tn = 2, P = Symbol(), On = "http://www.w3.org/1999/xhtml", zi = "http://www.w3.org/2000/svg", Pn = "@attach", yr = !1;
|
|
16
|
+
var ve = Array.isArray, Cn = Array.prototype.indexOf, Er = Array.from, Ce = Object.defineProperty, mt = Object.getOwnPropertyDescriptor, mr = Object.getOwnPropertyDescriptors, Nn = Object.prototype, kn = Array.prototype, Fe = Object.getPrototypeOf;
|
|
17
|
+
function bt(t) {
|
|
18
|
+
return typeof t == "function";
|
|
19
|
+
}
|
|
20
|
+
const Mt = () => {
|
|
21
|
+
};
|
|
22
|
+
function In(t) {
|
|
23
|
+
return t();
|
|
24
|
+
}
|
|
25
|
+
function Ne(t) {
|
|
26
|
+
for (var e = 0; e < t.length; e++)
|
|
27
|
+
t[e]();
|
|
28
|
+
}
|
|
29
|
+
function Rn() {
|
|
30
|
+
var t, e, r = new Promise((n, i) => {
|
|
31
|
+
t = n, e = i;
|
|
32
|
+
});
|
|
33
|
+
return { promise: r, resolve: t, reject: e };
|
|
34
|
+
}
|
|
35
|
+
function Zi(t, e) {
|
|
36
|
+
if (Array.isArray(t))
|
|
37
|
+
return t;
|
|
38
|
+
if (!(Symbol.iterator in t))
|
|
39
|
+
return Array.from(t);
|
|
40
|
+
const r = [];
|
|
41
|
+
for (const n of t)
|
|
42
|
+
if (r.push(n), r.length === e) break;
|
|
43
|
+
return r;
|
|
44
|
+
}
|
|
45
|
+
const x = 2, De = 4, _e = 8, ht = 16, tt = 32, kt = 64, Ar = 128, q = 256, ie = 512, k = 1024, V = 2048, et = 4096, H = 8192, wt = 16384, de = 32768, pe = 65536, tr = 1 << 17, $n = 1 << 18, he = 1 << 19, Sr = 1 << 20, ke = 1 << 21, xe = 1 << 22, _t = 1 << 23, Q = Symbol("$state"), Tr = Symbol("legacy props"), Mn = Symbol(""), je = new class extends Error {
|
|
46
|
+
constructor() {
|
|
47
|
+
super(...arguments);
|
|
48
|
+
$t(this, "name", "StaleReactionError");
|
|
49
|
+
$t(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
50
|
+
}
|
|
51
|
+
}();
|
|
52
|
+
function Ln() {
|
|
53
|
+
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
54
|
+
}
|
|
55
|
+
function Fn(t) {
|
|
56
|
+
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
57
|
+
}
|
|
58
|
+
function Dn() {
|
|
59
|
+
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
60
|
+
}
|
|
61
|
+
function xn(t) {
|
|
62
|
+
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
63
|
+
}
|
|
64
|
+
function jn() {
|
|
65
|
+
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
66
|
+
}
|
|
67
|
+
function Un(t) {
|
|
68
|
+
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
69
|
+
}
|
|
70
|
+
function qn() {
|
|
71
|
+
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
72
|
+
}
|
|
73
|
+
function Vn() {
|
|
74
|
+
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
75
|
+
}
|
|
76
|
+
function Bn() {
|
|
77
|
+
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
78
|
+
}
|
|
79
|
+
function Hn() {
|
|
80
|
+
console.warn("https://svelte.dev/e/select_multiple_invalid_value");
|
|
81
|
+
}
|
|
82
|
+
let Yn = !1;
|
|
83
|
+
function Or(t) {
|
|
84
|
+
return t === this.v;
|
|
85
|
+
}
|
|
86
|
+
function Wn(t, e) {
|
|
87
|
+
return t != t ? e == e : t !== e || t !== null && typeof t == "object" || typeof t == "function";
|
|
88
|
+
}
|
|
89
|
+
function Pr(t) {
|
|
90
|
+
return !Wn(t, this.v);
|
|
91
|
+
}
|
|
92
|
+
let C = null;
|
|
93
|
+
function fe(t) {
|
|
94
|
+
C = t;
|
|
95
|
+
}
|
|
96
|
+
function Ji(t, e = !1, r) {
|
|
97
|
+
C = {
|
|
98
|
+
p: C,
|
|
99
|
+
c: null,
|
|
100
|
+
e: null,
|
|
101
|
+
s: t,
|
|
102
|
+
x: null,
|
|
103
|
+
l: Gt && !e ? { s: null, u: null, $: [] } : null
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
function Qi(t) {
|
|
107
|
+
var e = (
|
|
108
|
+
/** @type {ComponentContext} */
|
|
109
|
+
C
|
|
110
|
+
), r = e.e;
|
|
111
|
+
if (r !== null) {
|
|
112
|
+
e.e = null;
|
|
113
|
+
for (var n of r)
|
|
114
|
+
xr(n);
|
|
115
|
+
}
|
|
116
|
+
return t !== void 0 && (e.x = t), C = e.p, t ?? /** @type {T} */
|
|
117
|
+
{};
|
|
118
|
+
}
|
|
119
|
+
function Kt() {
|
|
120
|
+
return !Gt || C !== null && C.l === null;
|
|
121
|
+
}
|
|
122
|
+
let yt = [];
|
|
123
|
+
function Gn() {
|
|
124
|
+
var t = yt;
|
|
125
|
+
yt = [], Ne(t);
|
|
126
|
+
}
|
|
127
|
+
function zt(t) {
|
|
128
|
+
if (yt.length === 0) {
|
|
129
|
+
var e = yt;
|
|
130
|
+
queueMicrotask(() => {
|
|
131
|
+
e === yt && Gn();
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
yt.push(t);
|
|
135
|
+
}
|
|
136
|
+
const Kn = /* @__PURE__ */ new WeakMap();
|
|
137
|
+
function zn(t) {
|
|
138
|
+
var e = S;
|
|
139
|
+
if (e === null)
|
|
140
|
+
return A.f |= _t, t;
|
|
141
|
+
if ((e.f & de) === 0) {
|
|
142
|
+
if ((e.f & Ar) === 0)
|
|
143
|
+
throw !e.parent && t instanceof Error && Cr(t), t;
|
|
144
|
+
e.b.error(t);
|
|
145
|
+
} else
|
|
146
|
+
ae(t, e);
|
|
147
|
+
}
|
|
148
|
+
function ae(t, e) {
|
|
149
|
+
for (; e !== null; ) {
|
|
150
|
+
if ((e.f & Ar) !== 0)
|
|
151
|
+
try {
|
|
152
|
+
e.b.error(t);
|
|
153
|
+
return;
|
|
154
|
+
} catch (r) {
|
|
155
|
+
t = r;
|
|
156
|
+
}
|
|
157
|
+
e = e.parent;
|
|
158
|
+
}
|
|
159
|
+
throw t instanceof Error && Cr(t), t;
|
|
160
|
+
}
|
|
161
|
+
function Cr(t) {
|
|
162
|
+
const e = Kn.get(t);
|
|
163
|
+
e && (Ce(t, "message", {
|
|
164
|
+
value: e.message
|
|
165
|
+
}), Ce(t, "stack", {
|
|
166
|
+
value: e.stack
|
|
167
|
+
}));
|
|
168
|
+
}
|
|
169
|
+
const Ae = /* @__PURE__ */ new Set();
|
|
170
|
+
let N = null, er = /* @__PURE__ */ new Set(), Dt = [], Ue = null, Ie = !1;
|
|
171
|
+
var Vt, St, ft, Bt, Ht, ct, Tt, vt, at, Ot, Yt, Wt, Y, Nr, ne, Re;
|
|
172
|
+
const le = class le {
|
|
173
|
+
constructor() {
|
|
174
|
+
L(this, Y);
|
|
175
|
+
/**
|
|
176
|
+
* The current values of any sources that are updated in this batch
|
|
177
|
+
* They keys of this map are identical to `this.#previous`
|
|
178
|
+
* @type {Map<Source, any>}
|
|
179
|
+
*/
|
|
180
|
+
$t(this, "current", /* @__PURE__ */ new Map());
|
|
181
|
+
/**
|
|
182
|
+
* The values of any sources that are updated in this batch _before_ those updates took place.
|
|
183
|
+
* They keys of this map are identical to `this.#current`
|
|
184
|
+
* @type {Map<Source, any>}
|
|
185
|
+
*/
|
|
186
|
+
L(this, Vt, /* @__PURE__ */ new Map());
|
|
187
|
+
/**
|
|
188
|
+
* When the batch is committed (and the DOM is updated), we need to remove old branches
|
|
189
|
+
* and append new ones by calling the functions added inside (if/each/key/etc) blocks
|
|
190
|
+
* @type {Set<() => void>}
|
|
191
|
+
*/
|
|
192
|
+
L(this, St, /* @__PURE__ */ new Set());
|
|
193
|
+
/**
|
|
194
|
+
* The number of async effects that are currently in flight
|
|
195
|
+
*/
|
|
196
|
+
L(this, ft, 0);
|
|
197
|
+
/**
|
|
198
|
+
* A deferred that resolves when the batch is committed, used with `settled()`
|
|
199
|
+
* TODO replace with Promise.withResolvers once supported widely enough
|
|
200
|
+
* @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
|
|
201
|
+
*/
|
|
202
|
+
L(this, Bt, null);
|
|
203
|
+
/**
|
|
204
|
+
* True if an async effect inside this batch resolved and
|
|
205
|
+
* its parent branch was already deleted
|
|
206
|
+
*/
|
|
207
|
+
L(this, Ht, !1);
|
|
208
|
+
/**
|
|
209
|
+
* Async effects (created inside `async_derived`) encountered during processing.
|
|
210
|
+
* These run after the rest of the batch has updated, since they should
|
|
211
|
+
* always have the latest values
|
|
212
|
+
* @type {Effect[]}
|
|
213
|
+
*/
|
|
214
|
+
L(this, ct, []);
|
|
215
|
+
/**
|
|
216
|
+
* The same as `#async_effects`, but for effects inside a newly-created
|
|
217
|
+
* `<svelte:boundary>` — these do not prevent the batch from committing
|
|
218
|
+
* @type {Effect[]}
|
|
219
|
+
*/
|
|
220
|
+
L(this, Tt, []);
|
|
221
|
+
/**
|
|
222
|
+
* Template effects and `$effect.pre` effects, which run when
|
|
223
|
+
* a batch is committed
|
|
224
|
+
* @type {Effect[]}
|
|
225
|
+
*/
|
|
226
|
+
L(this, vt, []);
|
|
227
|
+
/**
|
|
228
|
+
* The same as `#render_effects`, but for `$effect` (which runs after)
|
|
229
|
+
* @type {Effect[]}
|
|
230
|
+
*/
|
|
231
|
+
L(this, at, []);
|
|
232
|
+
/**
|
|
233
|
+
* Block effects, which may need to re-run on subsequent flushes
|
|
234
|
+
* in order to update internal sources (e.g. each block items)
|
|
235
|
+
* @type {Effect[]}
|
|
236
|
+
*/
|
|
237
|
+
L(this, Ot, []);
|
|
238
|
+
/**
|
|
239
|
+
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
240
|
+
* @type {Effect[]}
|
|
241
|
+
*/
|
|
242
|
+
L(this, Yt, []);
|
|
243
|
+
/**
|
|
244
|
+
* Deferred effects that are MAYBE_DIRTY
|
|
245
|
+
* @type {Effect[]}
|
|
246
|
+
*/
|
|
247
|
+
L(this, Wt, []);
|
|
248
|
+
/**
|
|
249
|
+
* A set of branches that still exist, but will be destroyed when this batch
|
|
250
|
+
* is committed — we skip over these during `process`
|
|
251
|
+
* @type {Set<Effect>}
|
|
252
|
+
*/
|
|
253
|
+
$t(this, "skipped_effects", /* @__PURE__ */ new Set());
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
*
|
|
257
|
+
* @param {Effect[]} root_effects
|
|
258
|
+
*/
|
|
259
|
+
process(e) {
|
|
260
|
+
var i;
|
|
261
|
+
Dt = [];
|
|
262
|
+
for (const f of e)
|
|
263
|
+
ot(this, Y, Nr).call(this, f);
|
|
264
|
+
if (O(this, ct).length === 0 && O(this, ft) === 0) {
|
|
265
|
+
ot(this, Y, Re).call(this);
|
|
266
|
+
var r = O(this, vt), n = O(this, at);
|
|
267
|
+
j(this, vt, []), j(this, at, []), j(this, Ot, []), N = null, rr(r), rr(n), N === null ? N = this : Ae.delete(this), (i = O(this, Bt)) == null || i.resolve();
|
|
268
|
+
} else
|
|
269
|
+
ot(this, Y, ne).call(this, O(this, vt)), ot(this, Y, ne).call(this, O(this, at)), ot(this, Y, ne).call(this, O(this, Ot));
|
|
270
|
+
for (const f of O(this, ct))
|
|
271
|
+
pt(f);
|
|
272
|
+
for (const f of O(this, Tt))
|
|
273
|
+
pt(f);
|
|
274
|
+
j(this, ct, []), j(this, Tt, []);
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Associate a change to a given source with the current
|
|
278
|
+
* batch, noting its previous and current values
|
|
279
|
+
* @param {Source} source
|
|
280
|
+
* @param {any} value
|
|
281
|
+
*/
|
|
282
|
+
capture(e, r) {
|
|
283
|
+
O(this, Vt).has(e) || O(this, Vt).set(e, r), this.current.set(e, e.v);
|
|
284
|
+
}
|
|
285
|
+
activate() {
|
|
286
|
+
N = this;
|
|
287
|
+
}
|
|
288
|
+
deactivate() {
|
|
289
|
+
N = null;
|
|
290
|
+
for (const e of er)
|
|
291
|
+
if (er.delete(e), e(), N !== null)
|
|
292
|
+
break;
|
|
293
|
+
}
|
|
294
|
+
neuter() {
|
|
295
|
+
j(this, Ht, !0);
|
|
296
|
+
}
|
|
297
|
+
flush() {
|
|
298
|
+
Dt.length > 0 ? Zn() : ot(this, Y, Re).call(this), N === this && (O(this, ft) === 0 && Ae.delete(this), this.deactivate());
|
|
299
|
+
}
|
|
300
|
+
increment() {
|
|
301
|
+
j(this, ft, O(this, ft) + 1);
|
|
302
|
+
}
|
|
303
|
+
decrement() {
|
|
304
|
+
if (j(this, ft, O(this, ft) - 1), O(this, ft) === 0) {
|
|
305
|
+
for (const e of O(this, Yt))
|
|
306
|
+
$(e, V), Pt(e);
|
|
307
|
+
for (const e of O(this, Wt))
|
|
308
|
+
$(e, et), Pt(e);
|
|
309
|
+
j(this, vt, []), j(this, at, []), this.flush();
|
|
310
|
+
} else
|
|
311
|
+
this.deactivate();
|
|
312
|
+
}
|
|
313
|
+
/** @param {() => void} fn */
|
|
314
|
+
add_callback(e) {
|
|
315
|
+
O(this, St).add(e);
|
|
316
|
+
}
|
|
317
|
+
settled() {
|
|
318
|
+
return (O(this, Bt) ?? j(this, Bt, Rn())).promise;
|
|
319
|
+
}
|
|
320
|
+
static ensure() {
|
|
321
|
+
if (N === null) {
|
|
322
|
+
const e = N = new le();
|
|
323
|
+
Ae.add(N), le.enqueue(() => {
|
|
324
|
+
N === e && e.flush();
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
return N;
|
|
328
|
+
}
|
|
329
|
+
/** @param {() => void} task */
|
|
330
|
+
static enqueue(e) {
|
|
331
|
+
zt(e);
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
Vt = new WeakMap(), St = new WeakMap(), ft = new WeakMap(), Bt = new WeakMap(), Ht = new WeakMap(), ct = new WeakMap(), Tt = new WeakMap(), vt = new WeakMap(), at = new WeakMap(), Ot = new WeakMap(), Yt = new WeakMap(), Wt = new WeakMap(), Y = new WeakSet(), /**
|
|
335
|
+
* Traverse the effect tree, executing effects or stashing
|
|
336
|
+
* them for later execution as appropriate
|
|
337
|
+
* @param {Effect} root
|
|
338
|
+
*/
|
|
339
|
+
Nr = function(e) {
|
|
340
|
+
var o;
|
|
341
|
+
e.f ^= k;
|
|
342
|
+
for (var r = e.first; r !== null; ) {
|
|
343
|
+
var n = r.f, i = (n & (tt | kt)) !== 0, f = i && (n & k) !== 0, a = f || (n & H) !== 0 || this.skipped_effects.has(r);
|
|
344
|
+
if (!a && r.fn !== null) {
|
|
345
|
+
if (i)
|
|
346
|
+
r.f ^= k;
|
|
347
|
+
else if ((n & De) !== 0)
|
|
348
|
+
O(this, at).push(r);
|
|
349
|
+
else if ((n & k) === 0)
|
|
350
|
+
if ((n & xe) !== 0) {
|
|
351
|
+
var l = (o = r.b) != null && o.is_pending() ? O(this, Tt) : O(this, ct);
|
|
352
|
+
l.push(r);
|
|
353
|
+
} else Jt(r) && ((r.f & ht) !== 0 && O(this, Ot).push(r), pt(r));
|
|
354
|
+
var u = r.first;
|
|
355
|
+
if (u !== null) {
|
|
356
|
+
r = u;
|
|
357
|
+
continue;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
var s = r.parent;
|
|
361
|
+
for (r = r.next; r === null && s !== null; )
|
|
362
|
+
r = s.next, s = s.parent;
|
|
363
|
+
}
|
|
364
|
+
}, /**
|
|
365
|
+
* @param {Effect[]} effects
|
|
366
|
+
*/
|
|
367
|
+
ne = function(e) {
|
|
368
|
+
for (const r of e)
|
|
369
|
+
((r.f & V) !== 0 ? O(this, Yt) : O(this, Wt)).push(r), $(r, k);
|
|
370
|
+
e.length = 0;
|
|
371
|
+
}, /**
|
|
372
|
+
* Append and remove branches to/from the DOM
|
|
373
|
+
*/
|
|
374
|
+
Re = function() {
|
|
375
|
+
if (!O(this, Ht))
|
|
376
|
+
for (const e of O(this, St))
|
|
377
|
+
e();
|
|
378
|
+
O(this, St).clear();
|
|
379
|
+
};
|
|
380
|
+
let se = le;
|
|
381
|
+
function Zn() {
|
|
382
|
+
var t = At;
|
|
383
|
+
Ie = !0;
|
|
384
|
+
try {
|
|
385
|
+
var e = 0;
|
|
386
|
+
for (ar(!0); Dt.length > 0; ) {
|
|
387
|
+
var r = se.ensure();
|
|
388
|
+
if (e++ > 1e3) {
|
|
389
|
+
var n, i;
|
|
390
|
+
Xn();
|
|
391
|
+
}
|
|
392
|
+
r.process(Dt), ut.clear();
|
|
393
|
+
}
|
|
394
|
+
} finally {
|
|
395
|
+
Ie = !1, ar(t), Ue = null;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
function Xn() {
|
|
399
|
+
try {
|
|
400
|
+
jn();
|
|
401
|
+
} catch (t) {
|
|
402
|
+
ae(t, Ue);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
let Z = null;
|
|
406
|
+
function rr(t) {
|
|
407
|
+
var e = t.length;
|
|
408
|
+
if (e !== 0) {
|
|
409
|
+
for (var r = 0; r < e; ) {
|
|
410
|
+
var n = t[r++];
|
|
411
|
+
if ((n.f & (wt | H)) === 0 && Jt(n) && (Z = [], pt(n), n.deps === null && n.first === null && n.nodes_start === null && (n.teardown === null && n.ac === null ? Vr(n) : n.fn = null), (Z == null ? void 0 : Z.length) > 0)) {
|
|
412
|
+
ut.clear();
|
|
413
|
+
for (const i of Z)
|
|
414
|
+
pt(i);
|
|
415
|
+
Z = [];
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
Z = null;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
function Pt(t) {
|
|
422
|
+
for (var e = Ue = t; e.parent !== null; ) {
|
|
423
|
+
e = e.parent;
|
|
424
|
+
var r = e.f;
|
|
425
|
+
if (Ie && e === S && (r & ht) !== 0)
|
|
426
|
+
return;
|
|
427
|
+
if ((r & (kt | tt)) !== 0) {
|
|
428
|
+
if ((r & k) === 0) return;
|
|
429
|
+
e.f ^= k;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
Dt.push(e);
|
|
433
|
+
}
|
|
434
|
+
function kr(t, e, r) {
|
|
435
|
+
const n = Kt() ? Zt : qe;
|
|
436
|
+
if (e.length === 0) {
|
|
437
|
+
r(t.map(n));
|
|
438
|
+
return;
|
|
439
|
+
}
|
|
440
|
+
var i = N, f = (
|
|
441
|
+
/** @type {Effect} */
|
|
442
|
+
S
|
|
443
|
+
), a = Jn();
|
|
444
|
+
Promise.all(e.map((l) => /* @__PURE__ */ Qn(l))).then((l) => {
|
|
445
|
+
i == null || i.activate(), a();
|
|
446
|
+
try {
|
|
447
|
+
r([...t.map(n), ...l]);
|
|
448
|
+
} catch (u) {
|
|
449
|
+
(f.f & wt) === 0 && ae(u, f);
|
|
450
|
+
}
|
|
451
|
+
i == null || i.deactivate(), Ir();
|
|
452
|
+
}).catch((l) => {
|
|
453
|
+
ae(l, f);
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
function Jn() {
|
|
457
|
+
var t = S, e = A, r = C, n = N;
|
|
458
|
+
return function() {
|
|
459
|
+
lt(t), z(e), fe(r), n == null || n.activate();
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
function Ir() {
|
|
463
|
+
lt(null), z(null), fe(null);
|
|
464
|
+
}
|
|
465
|
+
// @__NO_SIDE_EFFECTS__
|
|
466
|
+
function Zt(t) {
|
|
467
|
+
var e = x | V, r = A !== null && (A.f & x) !== 0 ? (
|
|
468
|
+
/** @type {Derived} */
|
|
469
|
+
A
|
|
470
|
+
) : null;
|
|
471
|
+
return S === null || r !== null && (r.f & q) !== 0 ? e |= q : S.f |= he, {
|
|
472
|
+
ctx: C,
|
|
473
|
+
deps: null,
|
|
474
|
+
effects: null,
|
|
475
|
+
equals: Or,
|
|
476
|
+
f: e,
|
|
477
|
+
fn: t,
|
|
478
|
+
reactions: null,
|
|
479
|
+
rv: 0,
|
|
480
|
+
v: (
|
|
481
|
+
/** @type {V} */
|
|
482
|
+
P
|
|
483
|
+
),
|
|
484
|
+
wv: 0,
|
|
485
|
+
parent: r ?? S,
|
|
486
|
+
ac: null
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
// @__NO_SIDE_EFFECTS__
|
|
490
|
+
function Qn(t, e) {
|
|
491
|
+
let r = (
|
|
492
|
+
/** @type {Effect | null} */
|
|
493
|
+
S
|
|
494
|
+
);
|
|
495
|
+
r === null && Ln();
|
|
496
|
+
var n = (
|
|
497
|
+
/** @type {Boundary} */
|
|
498
|
+
r.b
|
|
499
|
+
), i = (
|
|
500
|
+
/** @type {Promise<V>} */
|
|
501
|
+
/** @type {unknown} */
|
|
502
|
+
void 0
|
|
503
|
+
), f = xt(
|
|
504
|
+
/** @type {V} */
|
|
505
|
+
P
|
|
506
|
+
), a = null, l = !A;
|
|
507
|
+
return ci(() => {
|
|
508
|
+
try {
|
|
509
|
+
var u = t();
|
|
510
|
+
a && Promise.resolve(u).catch(() => {
|
|
511
|
+
});
|
|
512
|
+
} catch (p) {
|
|
513
|
+
u = Promise.reject(p);
|
|
514
|
+
}
|
|
515
|
+
var s = () => u;
|
|
516
|
+
i = (a == null ? void 0 : a.then(s, s)) ?? Promise.resolve(u), a = i;
|
|
517
|
+
var o = (
|
|
518
|
+
/** @type {Batch} */
|
|
519
|
+
N
|
|
520
|
+
), v = n.is_pending();
|
|
521
|
+
l && (n.update_pending_count(1), v || o.increment());
|
|
522
|
+
const _ = (p, c = void 0) => {
|
|
523
|
+
a = null, v || o.activate(), c ? c !== je && (f.f |= _t, jt(f, c)) : ((f.f & _t) !== 0 && (f.f ^= _t), jt(f, p)), l && (n.update_pending_count(-1), v || o.decrement()), Ir();
|
|
524
|
+
};
|
|
525
|
+
if (i.then(_, (p) => _(null, p || "unknown")), o)
|
|
526
|
+
return () => {
|
|
527
|
+
queueMicrotask(() => o.neuter());
|
|
528
|
+
};
|
|
529
|
+
}), new Promise((u) => {
|
|
530
|
+
function s(o) {
|
|
531
|
+
function v() {
|
|
532
|
+
o === i ? u(f) : s(i);
|
|
533
|
+
}
|
|
534
|
+
o.then(v, v);
|
|
535
|
+
}
|
|
536
|
+
s(i);
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
// @__NO_SIDE_EFFECTS__
|
|
540
|
+
function tf(t) {
|
|
541
|
+
const e = /* @__PURE__ */ Zt(t);
|
|
542
|
+
return Wr(e), e;
|
|
543
|
+
}
|
|
544
|
+
// @__NO_SIDE_EFFECTS__
|
|
545
|
+
function qe(t) {
|
|
546
|
+
const e = /* @__PURE__ */ Zt(t);
|
|
547
|
+
return e.equals = Pr, e;
|
|
548
|
+
}
|
|
549
|
+
function Rr(t) {
|
|
550
|
+
var e = t.effects;
|
|
551
|
+
if (e !== null) {
|
|
552
|
+
t.effects = null;
|
|
553
|
+
for (var r = 0; r < e.length; r += 1)
|
|
554
|
+
K(
|
|
555
|
+
/** @type {Effect} */
|
|
556
|
+
e[r]
|
|
557
|
+
);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
function ti(t) {
|
|
561
|
+
for (var e = t.parent; e !== null; ) {
|
|
562
|
+
if ((e.f & x) === 0)
|
|
563
|
+
return (
|
|
564
|
+
/** @type {Effect} */
|
|
565
|
+
e
|
|
566
|
+
);
|
|
567
|
+
e = e.parent;
|
|
568
|
+
}
|
|
569
|
+
return null;
|
|
570
|
+
}
|
|
571
|
+
function Ve(t) {
|
|
572
|
+
var e, r = S;
|
|
573
|
+
lt(ti(t));
|
|
574
|
+
try {
|
|
575
|
+
Rr(t), e = Zr(t);
|
|
576
|
+
} finally {
|
|
577
|
+
lt(r);
|
|
578
|
+
}
|
|
579
|
+
return e;
|
|
580
|
+
}
|
|
581
|
+
function $r(t) {
|
|
582
|
+
var e = Ve(t);
|
|
583
|
+
if (t.equals(e) || (t.v = e, t.wv = Kr()), !gt) {
|
|
584
|
+
var r = (st || (t.f & q) !== 0) && t.deps !== null ? et : k;
|
|
585
|
+
$(t, r);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
const ut = /* @__PURE__ */ new Map();
|
|
589
|
+
function xt(t, e) {
|
|
590
|
+
var r = {
|
|
591
|
+
f: 0,
|
|
592
|
+
// TODO ideally we could skip this altogether, but it causes type errors
|
|
593
|
+
v: t,
|
|
594
|
+
reactions: null,
|
|
595
|
+
equals: Or,
|
|
596
|
+
rv: 0,
|
|
597
|
+
wv: 0
|
|
598
|
+
};
|
|
599
|
+
return r;
|
|
600
|
+
}
|
|
601
|
+
// @__NO_SIDE_EFFECTS__
|
|
602
|
+
function it(t, e) {
|
|
603
|
+
const r = xt(t);
|
|
604
|
+
return Wr(r), r;
|
|
605
|
+
}
|
|
606
|
+
// @__NO_SIDE_EFFECTS__
|
|
607
|
+
function ei(t, e = !1, r = !0) {
|
|
608
|
+
var i;
|
|
609
|
+
const n = xt(t);
|
|
610
|
+
return e || (n.equals = Pr), Gt && r && C !== null && C.l !== null && ((i = C.l).s ?? (i.s = [])).push(n), n;
|
|
611
|
+
}
|
|
612
|
+
function ef(t, e) {
|
|
613
|
+
return X(
|
|
614
|
+
t,
|
|
615
|
+
Qt(() => F(t))
|
|
616
|
+
), e;
|
|
617
|
+
}
|
|
618
|
+
function X(t, e, r = !1) {
|
|
619
|
+
A !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
620
|
+
// to ensure we error if state is set inside an inspect effect
|
|
621
|
+
(!G || (A.f & tr) !== 0) && Kt() && (A.f & (x | ht | xe | tr)) !== 0 && !(R != null && R.includes(t)) && Bn();
|
|
622
|
+
let n = r ? Et(e) : e;
|
|
623
|
+
return jt(t, n);
|
|
624
|
+
}
|
|
625
|
+
function jt(t, e) {
|
|
626
|
+
if (!t.equals(e)) {
|
|
627
|
+
var r = t.v;
|
|
628
|
+
gt ? ut.set(t, e) : ut.set(t, r), t.v = e;
|
|
629
|
+
var n = se.ensure();
|
|
630
|
+
n.capture(t, r), (t.f & x) !== 0 && ((t.f & V) !== 0 && Ve(
|
|
631
|
+
/** @type {Derived} */
|
|
632
|
+
t
|
|
633
|
+
), $(t, (t.f & q) === 0 ? k : et)), t.wv = Kr(), Mr(t, V), Kt() && S !== null && (S.f & k) !== 0 && (S.f & (tt | kt)) === 0 && (U === null ? di([t]) : U.push(t));
|
|
634
|
+
}
|
|
635
|
+
return e;
|
|
636
|
+
}
|
|
637
|
+
function Se(t) {
|
|
638
|
+
X(t, t.v + 1);
|
|
639
|
+
}
|
|
640
|
+
function Mr(t, e) {
|
|
641
|
+
var r = t.reactions;
|
|
642
|
+
if (r !== null)
|
|
643
|
+
for (var n = Kt(), i = r.length, f = 0; f < i; f++) {
|
|
644
|
+
var a = r[f], l = a.f;
|
|
645
|
+
if (!(!n && a === S)) {
|
|
646
|
+
var u = (l & V) === 0;
|
|
647
|
+
u && $(a, e), (l & x) !== 0 ? Mr(
|
|
648
|
+
/** @type {Derived} */
|
|
649
|
+
a,
|
|
650
|
+
et
|
|
651
|
+
) : u && ((l & ht) !== 0 && Z !== null && Z.push(
|
|
652
|
+
/** @type {Effect} */
|
|
653
|
+
a
|
|
654
|
+
), Pt(
|
|
655
|
+
/** @type {Effect} */
|
|
656
|
+
a
|
|
657
|
+
));
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
function Et(t) {
|
|
662
|
+
if (typeof t != "object" || t === null || Q in t)
|
|
663
|
+
return t;
|
|
664
|
+
const e = Fe(t);
|
|
665
|
+
if (e !== Nn && e !== kn)
|
|
666
|
+
return t;
|
|
667
|
+
var r = /* @__PURE__ */ new Map(), n = ve(t), i = /* @__PURE__ */ it(0), f = dt, a = (l) => {
|
|
668
|
+
if (dt === f)
|
|
669
|
+
return l();
|
|
670
|
+
var u = A, s = dt;
|
|
671
|
+
z(null), ur(f);
|
|
672
|
+
var o = l();
|
|
673
|
+
return z(u), ur(s), o;
|
|
674
|
+
};
|
|
675
|
+
return n && r.set("length", /* @__PURE__ */ it(
|
|
676
|
+
/** @type {any[]} */
|
|
677
|
+
t.length
|
|
678
|
+
)), new Proxy(
|
|
679
|
+
/** @type {any} */
|
|
680
|
+
t,
|
|
681
|
+
{
|
|
682
|
+
defineProperty(l, u, s) {
|
|
683
|
+
(!("value" in s) || s.configurable === !1 || s.enumerable === !1 || s.writable === !1) && qn();
|
|
684
|
+
var o = r.get(u);
|
|
685
|
+
return o === void 0 ? o = a(() => {
|
|
686
|
+
var v = /* @__PURE__ */ it(s.value);
|
|
687
|
+
return r.set(u, v), v;
|
|
688
|
+
}) : X(o, s.value, !0), !0;
|
|
689
|
+
},
|
|
690
|
+
deleteProperty(l, u) {
|
|
691
|
+
var s = r.get(u);
|
|
692
|
+
if (s === void 0) {
|
|
693
|
+
if (u in l) {
|
|
694
|
+
const o = a(() => /* @__PURE__ */ it(P));
|
|
695
|
+
r.set(u, o), Se(i);
|
|
696
|
+
}
|
|
697
|
+
} else
|
|
698
|
+
X(s, P), Se(i);
|
|
699
|
+
return !0;
|
|
700
|
+
},
|
|
701
|
+
get(l, u, s) {
|
|
702
|
+
var p;
|
|
703
|
+
if (u === Q)
|
|
704
|
+
return t;
|
|
705
|
+
var o = r.get(u), v = u in l;
|
|
706
|
+
if (o === void 0 && (!v || (p = mt(l, u)) != null && p.writable) && (o = a(() => {
|
|
707
|
+
var c = Et(v ? l[u] : P), d = /* @__PURE__ */ it(c);
|
|
708
|
+
return d;
|
|
709
|
+
}), r.set(u, o)), o !== void 0) {
|
|
710
|
+
var _ = F(o);
|
|
711
|
+
return _ === P ? void 0 : _;
|
|
712
|
+
}
|
|
713
|
+
return Reflect.get(l, u, s);
|
|
714
|
+
},
|
|
715
|
+
getOwnPropertyDescriptor(l, u) {
|
|
716
|
+
var s = Reflect.getOwnPropertyDescriptor(l, u);
|
|
717
|
+
if (s && "value" in s) {
|
|
718
|
+
var o = r.get(u);
|
|
719
|
+
o && (s.value = F(o));
|
|
720
|
+
} else if (s === void 0) {
|
|
721
|
+
var v = r.get(u), _ = v == null ? void 0 : v.v;
|
|
722
|
+
if (v !== void 0 && _ !== P)
|
|
723
|
+
return {
|
|
724
|
+
enumerable: !0,
|
|
725
|
+
configurable: !0,
|
|
726
|
+
value: _,
|
|
727
|
+
writable: !0
|
|
728
|
+
};
|
|
729
|
+
}
|
|
730
|
+
return s;
|
|
731
|
+
},
|
|
732
|
+
has(l, u) {
|
|
733
|
+
var _;
|
|
734
|
+
if (u === Q)
|
|
735
|
+
return !0;
|
|
736
|
+
var s = r.get(u), o = s !== void 0 && s.v !== P || Reflect.has(l, u);
|
|
737
|
+
if (s !== void 0 || S !== null && (!o || (_ = mt(l, u)) != null && _.writable)) {
|
|
738
|
+
s === void 0 && (s = a(() => {
|
|
739
|
+
var p = o ? Et(l[u]) : P, c = /* @__PURE__ */ it(p);
|
|
740
|
+
return c;
|
|
741
|
+
}), r.set(u, s));
|
|
742
|
+
var v = F(s);
|
|
743
|
+
if (v === P)
|
|
744
|
+
return !1;
|
|
745
|
+
}
|
|
746
|
+
return o;
|
|
747
|
+
},
|
|
748
|
+
set(l, u, s, o) {
|
|
749
|
+
var g;
|
|
750
|
+
var v = r.get(u), _ = u in l;
|
|
751
|
+
if (n && u === "length")
|
|
752
|
+
for (var p = s; p < /** @type {Source<number>} */
|
|
753
|
+
v.v; p += 1) {
|
|
754
|
+
var c = r.get(p + "");
|
|
755
|
+
c !== void 0 ? X(c, P) : p in l && (c = a(() => /* @__PURE__ */ it(P)), r.set(p + "", c));
|
|
756
|
+
}
|
|
757
|
+
if (v === void 0)
|
|
758
|
+
(!_ || (g = mt(l, u)) != null && g.writable) && (v = a(() => /* @__PURE__ */ it(void 0)), X(v, Et(s)), r.set(u, v));
|
|
759
|
+
else {
|
|
760
|
+
_ = v.v !== P;
|
|
761
|
+
var d = a(() => Et(s));
|
|
762
|
+
X(v, d);
|
|
763
|
+
}
|
|
764
|
+
var h = Reflect.getOwnPropertyDescriptor(l, u);
|
|
765
|
+
if (h != null && h.set && h.set.call(o, s), !_) {
|
|
766
|
+
if (n && typeof u == "string") {
|
|
767
|
+
var w = (
|
|
768
|
+
/** @type {Source<number>} */
|
|
769
|
+
r.get("length")
|
|
770
|
+
), T = Number(u);
|
|
771
|
+
Number.isInteger(T) && T >= w.v && X(w, T + 1);
|
|
772
|
+
}
|
|
773
|
+
Se(i);
|
|
774
|
+
}
|
|
775
|
+
return !0;
|
|
776
|
+
},
|
|
777
|
+
ownKeys(l) {
|
|
778
|
+
F(i);
|
|
779
|
+
var u = Reflect.ownKeys(l).filter((v) => {
|
|
780
|
+
var _ = r.get(v);
|
|
781
|
+
return _ === void 0 || _.v !== P;
|
|
782
|
+
});
|
|
783
|
+
for (var [s, o] of r)
|
|
784
|
+
o.v !== P && !(s in l) && u.push(s);
|
|
785
|
+
return u;
|
|
786
|
+
},
|
|
787
|
+
setPrototypeOf() {
|
|
788
|
+
Vn();
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
);
|
|
792
|
+
}
|
|
793
|
+
function nr(t) {
|
|
794
|
+
try {
|
|
795
|
+
if (t !== null && typeof t == "object" && Q in t)
|
|
796
|
+
return t[Q];
|
|
797
|
+
} catch {
|
|
798
|
+
}
|
|
799
|
+
return t;
|
|
800
|
+
}
|
|
801
|
+
function ri(t, e) {
|
|
802
|
+
return Object.is(nr(t), nr(e));
|
|
803
|
+
}
|
|
804
|
+
var ni, ii, fi;
|
|
805
|
+
function Xt(t = "") {
|
|
806
|
+
return document.createTextNode(t);
|
|
807
|
+
}
|
|
808
|
+
// @__NO_SIDE_EFFECTS__
|
|
809
|
+
function Ct(t) {
|
|
810
|
+
return ii.call(t);
|
|
811
|
+
}
|
|
812
|
+
// @__NO_SIDE_EFFECTS__
|
|
813
|
+
function we(t) {
|
|
814
|
+
return fi.call(t);
|
|
815
|
+
}
|
|
816
|
+
function rf(t, e) {
|
|
817
|
+
return /* @__PURE__ */ Ct(t);
|
|
818
|
+
}
|
|
819
|
+
function nf(t, e = !1) {
|
|
820
|
+
{
|
|
821
|
+
var r = (
|
|
822
|
+
/** @type {DocumentFragment} */
|
|
823
|
+
/* @__PURE__ */ Ct(
|
|
824
|
+
/** @type {Node} */
|
|
825
|
+
t
|
|
826
|
+
)
|
|
827
|
+
);
|
|
828
|
+
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ we(r) : r;
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
function ff(t, e = 1, r = !1) {
|
|
832
|
+
let n = t;
|
|
833
|
+
for (; e--; )
|
|
834
|
+
n = /** @type {TemplateNode} */
|
|
835
|
+
/* @__PURE__ */ we(n);
|
|
836
|
+
return n;
|
|
837
|
+
}
|
|
838
|
+
function ai(t) {
|
|
839
|
+
t.textContent = "";
|
|
840
|
+
}
|
|
841
|
+
function Lr() {
|
|
842
|
+
return !1;
|
|
843
|
+
}
|
|
844
|
+
function si(t, e) {
|
|
845
|
+
if (e) {
|
|
846
|
+
const r = document.body;
|
|
847
|
+
t.autofocus = !0, zt(() => {
|
|
848
|
+
document.activeElement === r && t.focus();
|
|
849
|
+
});
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
let ir = !1;
|
|
853
|
+
function ui() {
|
|
854
|
+
ir || (ir = !0, document.addEventListener(
|
|
855
|
+
"reset",
|
|
856
|
+
(t) => {
|
|
857
|
+
Promise.resolve().then(() => {
|
|
858
|
+
var e;
|
|
859
|
+
if (!t.defaultPrevented)
|
|
860
|
+
for (
|
|
861
|
+
const r of
|
|
862
|
+
/**@type {HTMLFormElement} */
|
|
863
|
+
t.target.elements
|
|
864
|
+
)
|
|
865
|
+
(e = r.__on_r) == null || e.call(r);
|
|
866
|
+
});
|
|
867
|
+
},
|
|
868
|
+
// In the capture phase to guarantee we get noticed of it (no possiblity of stopPropagation)
|
|
869
|
+
{ capture: !0 }
|
|
870
|
+
));
|
|
871
|
+
}
|
|
872
|
+
function It(t) {
|
|
873
|
+
var e = A, r = S;
|
|
874
|
+
z(null), lt(null);
|
|
875
|
+
try {
|
|
876
|
+
return t();
|
|
877
|
+
} finally {
|
|
878
|
+
z(e), lt(r);
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
function af(t, e, r, n = r) {
|
|
882
|
+
t.addEventListener(e, () => It(r));
|
|
883
|
+
const i = t.__on_r;
|
|
884
|
+
i ? t.__on_r = () => {
|
|
885
|
+
i(), n(!0);
|
|
886
|
+
} : t.__on_r = () => n(!0), ui();
|
|
887
|
+
}
|
|
888
|
+
function Fr(t) {
|
|
889
|
+
S === null && A === null && xn(), A !== null && (A.f & q) !== 0 && S === null && Dn(), gt && Fn();
|
|
890
|
+
}
|
|
891
|
+
function li(t, e) {
|
|
892
|
+
var r = e.last;
|
|
893
|
+
r === null ? e.last = e.first = t : (r.next = t, t.prev = r, e.last = t);
|
|
894
|
+
}
|
|
895
|
+
function rt(t, e, r, n = !0) {
|
|
896
|
+
var i = S;
|
|
897
|
+
i !== null && (i.f & H) !== 0 && (t |= H);
|
|
898
|
+
var f = {
|
|
899
|
+
ctx: C,
|
|
900
|
+
deps: null,
|
|
901
|
+
nodes_start: null,
|
|
902
|
+
nodes_end: null,
|
|
903
|
+
f: t | V,
|
|
904
|
+
first: null,
|
|
905
|
+
fn: e,
|
|
906
|
+
last: null,
|
|
907
|
+
next: null,
|
|
908
|
+
parent: i,
|
|
909
|
+
b: i && i.b,
|
|
910
|
+
prev: null,
|
|
911
|
+
teardown: null,
|
|
912
|
+
transitions: null,
|
|
913
|
+
wv: 0,
|
|
914
|
+
ac: null
|
|
915
|
+
};
|
|
916
|
+
if (r)
|
|
917
|
+
try {
|
|
918
|
+
pt(f), f.f |= de;
|
|
919
|
+
} catch (u) {
|
|
920
|
+
throw K(f), u;
|
|
921
|
+
}
|
|
922
|
+
else e !== null && Pt(f);
|
|
923
|
+
if (n) {
|
|
924
|
+
var a = f;
|
|
925
|
+
if (r && a.deps === null && a.teardown === null && a.nodes_start === null && a.first === a.last && // either `null`, or a singular child
|
|
926
|
+
(a.f & he) === 0 && (a = a.first), a !== null && (a.parent = i, i !== null && li(a, i), A !== null && (A.f & x) !== 0 && (t & kt) === 0)) {
|
|
927
|
+
var l = (
|
|
928
|
+
/** @type {Derived} */
|
|
929
|
+
A
|
|
930
|
+
);
|
|
931
|
+
(l.effects ?? (l.effects = [])).push(a);
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
return f;
|
|
935
|
+
}
|
|
936
|
+
function Dr(t) {
|
|
937
|
+
const e = rt(_e, null, !1);
|
|
938
|
+
return $(e, k), e.teardown = t, e;
|
|
939
|
+
}
|
|
940
|
+
function fr(t) {
|
|
941
|
+
Fr();
|
|
942
|
+
var e = (
|
|
943
|
+
/** @type {Effect} */
|
|
944
|
+
S.f
|
|
945
|
+
), r = !A && (e & tt) !== 0 && (e & de) === 0;
|
|
946
|
+
if (r) {
|
|
947
|
+
var n = (
|
|
948
|
+
/** @type {ComponentContext} */
|
|
949
|
+
C
|
|
950
|
+
);
|
|
951
|
+
(n.e ?? (n.e = [])).push(t);
|
|
952
|
+
} else
|
|
953
|
+
return xr(t);
|
|
954
|
+
}
|
|
955
|
+
function xr(t) {
|
|
956
|
+
return rt(De | Sr, t, !1);
|
|
957
|
+
}
|
|
958
|
+
function oi(t) {
|
|
959
|
+
return Fr(), rt(_e | Sr, t, !0);
|
|
960
|
+
}
|
|
961
|
+
function Be(t) {
|
|
962
|
+
return rt(De, t, !1);
|
|
963
|
+
}
|
|
964
|
+
function sf(t, e) {
|
|
965
|
+
var r = (
|
|
966
|
+
/** @type {ComponentContextLegacy} */
|
|
967
|
+
C
|
|
968
|
+
), n = { effect: null, ran: !1, deps: t };
|
|
969
|
+
r.l.$.push(n), n.effect = jr(() => {
|
|
970
|
+
t(), !n.ran && (n.ran = !0, Qt(e));
|
|
971
|
+
});
|
|
972
|
+
}
|
|
973
|
+
function uf() {
|
|
974
|
+
var t = (
|
|
975
|
+
/** @type {ComponentContextLegacy} */
|
|
976
|
+
C
|
|
977
|
+
);
|
|
978
|
+
jr(() => {
|
|
979
|
+
for (var e of t.l.$) {
|
|
980
|
+
e.deps();
|
|
981
|
+
var r = e.effect;
|
|
982
|
+
(r.f & k) !== 0 && $(r, et), Jt(r) && pt(r), e.ran = !1;
|
|
983
|
+
}
|
|
984
|
+
});
|
|
985
|
+
}
|
|
986
|
+
function ci(t) {
|
|
987
|
+
return rt(xe | he, t, !0);
|
|
988
|
+
}
|
|
989
|
+
function jr(t, e = 0) {
|
|
990
|
+
return rt(_e | e, t, !0);
|
|
991
|
+
}
|
|
992
|
+
function lf(t, e = [], r = []) {
|
|
993
|
+
kr(e, r, (n) => {
|
|
994
|
+
rt(_e, () => t(...n.map(F)), !0);
|
|
995
|
+
});
|
|
996
|
+
}
|
|
997
|
+
function ge(t, e = 0) {
|
|
998
|
+
var r = rt(ht | e, t, !0);
|
|
999
|
+
return r;
|
|
1000
|
+
}
|
|
1001
|
+
function Nt(t, e = !0) {
|
|
1002
|
+
return rt(tt | he, t, !0, e);
|
|
1003
|
+
}
|
|
1004
|
+
function Ur(t) {
|
|
1005
|
+
var e = t.teardown;
|
|
1006
|
+
if (e !== null) {
|
|
1007
|
+
const r = gt, n = A;
|
|
1008
|
+
sr(!0), z(null);
|
|
1009
|
+
try {
|
|
1010
|
+
e.call(null);
|
|
1011
|
+
} finally {
|
|
1012
|
+
sr(r), z(n);
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
function qr(t, e = !1) {
|
|
1017
|
+
var r = t.first;
|
|
1018
|
+
for (t.first = t.last = null; r !== null; ) {
|
|
1019
|
+
const i = r.ac;
|
|
1020
|
+
i !== null && It(() => {
|
|
1021
|
+
i.abort(je);
|
|
1022
|
+
});
|
|
1023
|
+
var n = r.next;
|
|
1024
|
+
(r.f & kt) !== 0 ? r.parent = null : K(r, e), r = n;
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
function vi(t) {
|
|
1028
|
+
for (var e = t.first; e !== null; ) {
|
|
1029
|
+
var r = e.next;
|
|
1030
|
+
(e.f & tt) === 0 && K(e), e = r;
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
function K(t, e = !0) {
|
|
1034
|
+
var r = !1;
|
|
1035
|
+
(e || (t.f & $n) !== 0) && t.nodes_start !== null && t.nodes_end !== null && (_i(
|
|
1036
|
+
t.nodes_start,
|
|
1037
|
+
/** @type {TemplateNode} */
|
|
1038
|
+
t.nodes_end
|
|
1039
|
+
), r = !0), qr(t, e && !r), ue(t, 0), $(t, wt);
|
|
1040
|
+
var n = t.transitions;
|
|
1041
|
+
if (n !== null)
|
|
1042
|
+
for (const f of n)
|
|
1043
|
+
f.stop();
|
|
1044
|
+
Ur(t);
|
|
1045
|
+
var i = t.parent;
|
|
1046
|
+
i !== null && i.first !== null && Vr(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes_start = t.nodes_end = t.ac = null;
|
|
1047
|
+
}
|
|
1048
|
+
function _i(t, e) {
|
|
1049
|
+
for (; t !== null; ) {
|
|
1050
|
+
var r = t === e ? null : (
|
|
1051
|
+
/** @type {TemplateNode} */
|
|
1052
|
+
/* @__PURE__ */ we(t)
|
|
1053
|
+
);
|
|
1054
|
+
t.remove(), t = r;
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
function Vr(t) {
|
|
1058
|
+
var e = t.parent, r = t.prev, n = t.next;
|
|
1059
|
+
r !== null && (r.next = n), n !== null && (n.prev = r), e !== null && (e.first === t && (e.first = n), e.last === t && (e.last = r));
|
|
1060
|
+
}
|
|
1061
|
+
function Br(t, e) {
|
|
1062
|
+
var r = [];
|
|
1063
|
+
He(t, r, !0), Hr(r, () => {
|
|
1064
|
+
K(t), e && e();
|
|
1065
|
+
});
|
|
1066
|
+
}
|
|
1067
|
+
function Hr(t, e) {
|
|
1068
|
+
var r = t.length;
|
|
1069
|
+
if (r > 0) {
|
|
1070
|
+
var n = () => --r || e();
|
|
1071
|
+
for (var i of t)
|
|
1072
|
+
i.out(n);
|
|
1073
|
+
} else
|
|
1074
|
+
e();
|
|
1075
|
+
}
|
|
1076
|
+
function He(t, e, r) {
|
|
1077
|
+
if ((t.f & H) === 0) {
|
|
1078
|
+
if (t.f ^= H, t.transitions !== null)
|
|
1079
|
+
for (const a of t.transitions)
|
|
1080
|
+
(a.is_global || r) && e.push(a);
|
|
1081
|
+
for (var n = t.first; n !== null; ) {
|
|
1082
|
+
var i = n.next, f = (n.f & pe) !== 0 || (n.f & tt) !== 0;
|
|
1083
|
+
He(n, e, f ? r : !1), n = i;
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
function Ye(t) {
|
|
1088
|
+
Yr(t, !0);
|
|
1089
|
+
}
|
|
1090
|
+
function Yr(t, e) {
|
|
1091
|
+
if ((t.f & H) !== 0) {
|
|
1092
|
+
t.f ^= H, (t.f & k) === 0 && ($(t, V), Pt(t));
|
|
1093
|
+
for (var r = t.first; r !== null; ) {
|
|
1094
|
+
var n = r.next, i = (r.f & pe) !== 0 || (r.f & tt) !== 0;
|
|
1095
|
+
Yr(r, i ? e : !1), r = n;
|
|
1096
|
+
}
|
|
1097
|
+
if (t.transitions !== null)
|
|
1098
|
+
for (const f of t.transitions)
|
|
1099
|
+
(f.is_global || e) && f.in();
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
let At = !1;
|
|
1103
|
+
function ar(t) {
|
|
1104
|
+
At = t;
|
|
1105
|
+
}
|
|
1106
|
+
let gt = !1;
|
|
1107
|
+
function sr(t) {
|
|
1108
|
+
gt = t;
|
|
1109
|
+
}
|
|
1110
|
+
let A = null, G = !1;
|
|
1111
|
+
function z(t) {
|
|
1112
|
+
A = t;
|
|
1113
|
+
}
|
|
1114
|
+
let S = null;
|
|
1115
|
+
function lt(t) {
|
|
1116
|
+
S = t;
|
|
1117
|
+
}
|
|
1118
|
+
let R = null;
|
|
1119
|
+
function Wr(t) {
|
|
1120
|
+
A !== null && (R === null ? R = [t] : R.push(t));
|
|
1121
|
+
}
|
|
1122
|
+
let I = null, D = 0, U = null;
|
|
1123
|
+
function di(t) {
|
|
1124
|
+
U = t;
|
|
1125
|
+
}
|
|
1126
|
+
let Gr = 1, Ut = 0, dt = Ut;
|
|
1127
|
+
function ur(t) {
|
|
1128
|
+
dt = t;
|
|
1129
|
+
}
|
|
1130
|
+
let st = !1;
|
|
1131
|
+
function Kr() {
|
|
1132
|
+
return ++Gr;
|
|
1133
|
+
}
|
|
1134
|
+
function Jt(t) {
|
|
1135
|
+
var v;
|
|
1136
|
+
var e = t.f;
|
|
1137
|
+
if ((e & V) !== 0)
|
|
1138
|
+
return !0;
|
|
1139
|
+
if ((e & et) !== 0) {
|
|
1140
|
+
var r = t.deps, n = (e & q) !== 0;
|
|
1141
|
+
if (r !== null) {
|
|
1142
|
+
var i, f, a = (e & ie) !== 0, l = n && S !== null && !st, u = r.length;
|
|
1143
|
+
if ((a || l) && (S === null || (S.f & wt) === 0)) {
|
|
1144
|
+
var s = (
|
|
1145
|
+
/** @type {Derived} */
|
|
1146
|
+
t
|
|
1147
|
+
), o = s.parent;
|
|
1148
|
+
for (i = 0; i < u; i++)
|
|
1149
|
+
f = r[i], (a || !((v = f == null ? void 0 : f.reactions) != null && v.includes(s))) && (f.reactions ?? (f.reactions = [])).push(s);
|
|
1150
|
+
a && (s.f ^= ie), l && o !== null && (o.f & q) === 0 && (s.f ^= q);
|
|
1151
|
+
}
|
|
1152
|
+
for (i = 0; i < u; i++)
|
|
1153
|
+
if (f = r[i], Jt(
|
|
1154
|
+
/** @type {Derived} */
|
|
1155
|
+
f
|
|
1156
|
+
) && $r(
|
|
1157
|
+
/** @type {Derived} */
|
|
1158
|
+
f
|
|
1159
|
+
), f.wv > t.wv)
|
|
1160
|
+
return !0;
|
|
1161
|
+
}
|
|
1162
|
+
(!n || S !== null && !st) && $(t, k);
|
|
1163
|
+
}
|
|
1164
|
+
return !1;
|
|
1165
|
+
}
|
|
1166
|
+
function zr(t, e, r = !0) {
|
|
1167
|
+
var n = t.reactions;
|
|
1168
|
+
if (n !== null && !(R != null && R.includes(t)))
|
|
1169
|
+
for (var i = 0; i < n.length; i++) {
|
|
1170
|
+
var f = n[i];
|
|
1171
|
+
(f.f & x) !== 0 ? zr(
|
|
1172
|
+
/** @type {Derived} */
|
|
1173
|
+
f,
|
|
1174
|
+
e,
|
|
1175
|
+
!1
|
|
1176
|
+
) : e === f && (r ? $(f, V) : (f.f & k) !== 0 && $(f, et), Pt(
|
|
1177
|
+
/** @type {Effect} */
|
|
1178
|
+
f
|
|
1179
|
+
));
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
function Zr(t) {
|
|
1183
|
+
var d;
|
|
1184
|
+
var e = I, r = D, n = U, i = A, f = st, a = R, l = C, u = G, s = dt, o = t.f;
|
|
1185
|
+
I = /** @type {null | Value[]} */
|
|
1186
|
+
null, D = 0, U = null, st = (o & q) !== 0 && (G || !At || A === null), A = (o & (tt | kt)) === 0 ? t : null, R = null, fe(t.ctx), G = !1, dt = ++Ut, t.ac !== null && (It(() => {
|
|
1187
|
+
t.ac.abort(je);
|
|
1188
|
+
}), t.ac = null);
|
|
1189
|
+
try {
|
|
1190
|
+
t.f |= ke;
|
|
1191
|
+
var v = (
|
|
1192
|
+
/** @type {Function} */
|
|
1193
|
+
t.fn
|
|
1194
|
+
), _ = v(), p = t.deps;
|
|
1195
|
+
if (I !== null) {
|
|
1196
|
+
var c;
|
|
1197
|
+
if (ue(t, D), p !== null && D > 0)
|
|
1198
|
+
for (p.length = D + I.length, c = 0; c < I.length; c++)
|
|
1199
|
+
p[D + c] = I[c];
|
|
1200
|
+
else
|
|
1201
|
+
t.deps = p = I;
|
|
1202
|
+
if (!st || // Deriveds that already have reactions can cleanup, so we still add them as reactions
|
|
1203
|
+
(o & x) !== 0 && /** @type {import('#client').Derived} */
|
|
1204
|
+
t.reactions !== null)
|
|
1205
|
+
for (c = D; c < p.length; c++)
|
|
1206
|
+
((d = p[c]).reactions ?? (d.reactions = [])).push(t);
|
|
1207
|
+
} else p !== null && D < p.length && (ue(t, D), p.length = D);
|
|
1208
|
+
if (Kt() && U !== null && !G && p !== null && (t.f & (x | et | V)) === 0)
|
|
1209
|
+
for (c = 0; c < /** @type {Source[]} */
|
|
1210
|
+
U.length; c++)
|
|
1211
|
+
zr(
|
|
1212
|
+
U[c],
|
|
1213
|
+
/** @type {Effect} */
|
|
1214
|
+
t
|
|
1215
|
+
);
|
|
1216
|
+
return i !== null && i !== t && (Ut++, U !== null && (n === null ? n = U : n.push(.../** @type {Source[]} */
|
|
1217
|
+
U))), (t.f & _t) !== 0 && (t.f ^= _t), _;
|
|
1218
|
+
} catch (h) {
|
|
1219
|
+
return zn(h);
|
|
1220
|
+
} finally {
|
|
1221
|
+
t.f ^= ke, I = e, D = r, U = n, A = i, st = f, R = a, fe(l), G = u, dt = s;
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
function pi(t, e) {
|
|
1225
|
+
let r = e.reactions;
|
|
1226
|
+
if (r !== null) {
|
|
1227
|
+
var n = Cn.call(r, t);
|
|
1228
|
+
if (n !== -1) {
|
|
1229
|
+
var i = r.length - 1;
|
|
1230
|
+
i === 0 ? r = e.reactions = null : (r[n] = r[i], r.pop());
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
r === null && (e.f & x) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1234
|
+
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1235
|
+
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1236
|
+
(I === null || !I.includes(e)) && ($(e, et), (e.f & (q | ie)) === 0 && (e.f ^= ie), Rr(
|
|
1237
|
+
/** @type {Derived} **/
|
|
1238
|
+
e
|
|
1239
|
+
), ue(
|
|
1240
|
+
/** @type {Derived} **/
|
|
1241
|
+
e,
|
|
1242
|
+
0
|
|
1243
|
+
));
|
|
1244
|
+
}
|
|
1245
|
+
function ue(t, e) {
|
|
1246
|
+
var r = t.deps;
|
|
1247
|
+
if (r !== null)
|
|
1248
|
+
for (var n = e; n < r.length; n++)
|
|
1249
|
+
pi(t, r[n]);
|
|
1250
|
+
}
|
|
1251
|
+
function pt(t) {
|
|
1252
|
+
var e = t.f;
|
|
1253
|
+
if ((e & wt) === 0) {
|
|
1254
|
+
$(t, k);
|
|
1255
|
+
var r = S, n = At;
|
|
1256
|
+
S = t, At = !0;
|
|
1257
|
+
try {
|
|
1258
|
+
(e & ht) !== 0 ? vi(t) : qr(t), Ur(t);
|
|
1259
|
+
var i = Zr(t);
|
|
1260
|
+
t.teardown = typeof i == "function" ? i : null, t.wv = Gr;
|
|
1261
|
+
var f;
|
|
1262
|
+
yr && dn && (t.f & V) !== 0 && t.deps;
|
|
1263
|
+
} finally {
|
|
1264
|
+
At = n, S = r;
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
function F(t) {
|
|
1269
|
+
var e = t.f, r = (e & x) !== 0;
|
|
1270
|
+
if (A !== null && !G) {
|
|
1271
|
+
var n = S !== null && (S.f & wt) !== 0;
|
|
1272
|
+
if (!n && !(R != null && R.includes(t))) {
|
|
1273
|
+
var i = A.deps;
|
|
1274
|
+
if ((A.f & ke) !== 0)
|
|
1275
|
+
t.rv < Ut && (t.rv = Ut, I === null && i !== null && i[D] === t ? D++ : I === null ? I = [t] : (!st || !I.includes(t)) && I.push(t));
|
|
1276
|
+
else {
|
|
1277
|
+
(A.deps ?? (A.deps = [])).push(t);
|
|
1278
|
+
var f = t.reactions;
|
|
1279
|
+
f === null ? t.reactions = [A] : f.includes(A) || f.push(A);
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
} else if (r && /** @type {Derived} */
|
|
1283
|
+
t.deps === null && /** @type {Derived} */
|
|
1284
|
+
t.effects === null) {
|
|
1285
|
+
var a = (
|
|
1286
|
+
/** @type {Derived} */
|
|
1287
|
+
t
|
|
1288
|
+
), l = a.parent;
|
|
1289
|
+
l !== null && (l.f & q) === 0 && (a.f ^= q);
|
|
1290
|
+
}
|
|
1291
|
+
if (gt) {
|
|
1292
|
+
if (ut.has(t))
|
|
1293
|
+
return ut.get(t);
|
|
1294
|
+
if (r) {
|
|
1295
|
+
a = /** @type {Derived} */
|
|
1296
|
+
t;
|
|
1297
|
+
var u = a.v;
|
|
1298
|
+
return ((a.f & k) === 0 && a.reactions !== null || Xr(a)) && (u = Ve(a)), ut.set(a, u), u;
|
|
1299
|
+
}
|
|
1300
|
+
} else r && (a = /** @type {Derived} */
|
|
1301
|
+
t, Jt(a) && $r(a));
|
|
1302
|
+
if ((t.f & _t) !== 0)
|
|
1303
|
+
throw t.v;
|
|
1304
|
+
return t.v;
|
|
1305
|
+
}
|
|
1306
|
+
function Xr(t) {
|
|
1307
|
+
if (t.v === P) return !0;
|
|
1308
|
+
if (t.deps === null) return !1;
|
|
1309
|
+
for (const e of t.deps)
|
|
1310
|
+
if (ut.has(e) || (e.f & x) !== 0 && Xr(
|
|
1311
|
+
/** @type {Derived} */
|
|
1312
|
+
e
|
|
1313
|
+
))
|
|
1314
|
+
return !0;
|
|
1315
|
+
return !1;
|
|
1316
|
+
}
|
|
1317
|
+
function Qt(t) {
|
|
1318
|
+
var e = G;
|
|
1319
|
+
try {
|
|
1320
|
+
return G = !0, t();
|
|
1321
|
+
} finally {
|
|
1322
|
+
G = e;
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
const hi = -7169;
|
|
1326
|
+
function $(t, e) {
|
|
1327
|
+
t.f = t.f & hi | e;
|
|
1328
|
+
}
|
|
1329
|
+
function wi(t) {
|
|
1330
|
+
if (!(typeof t != "object" || !t || t instanceof EventTarget)) {
|
|
1331
|
+
if (Q in t)
|
|
1332
|
+
$e(t);
|
|
1333
|
+
else if (!Array.isArray(t))
|
|
1334
|
+
for (let e in t) {
|
|
1335
|
+
const r = t[e];
|
|
1336
|
+
typeof r == "object" && r && Q in r && $e(r);
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
function $e(t, e = /* @__PURE__ */ new Set()) {
|
|
1341
|
+
if (typeof t == "object" && t !== null && // We don't want to traverse DOM elements
|
|
1342
|
+
!(t instanceof EventTarget) && !e.has(t)) {
|
|
1343
|
+
e.add(t), t instanceof Date && t.getTime();
|
|
1344
|
+
for (let n in t)
|
|
1345
|
+
try {
|
|
1346
|
+
$e(t[n], e);
|
|
1347
|
+
} catch {
|
|
1348
|
+
}
|
|
1349
|
+
const r = Fe(t);
|
|
1350
|
+
if (r !== Object.prototype && r !== Array.prototype && r !== Map.prototype && r !== Set.prototype && r !== Date.prototype) {
|
|
1351
|
+
const n = mr(r);
|
|
1352
|
+
for (let i in n) {
|
|
1353
|
+
const f = n[i].get;
|
|
1354
|
+
if (f)
|
|
1355
|
+
try {
|
|
1356
|
+
f.call(t);
|
|
1357
|
+
} catch {
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
const gi = /* @__PURE__ */ new Set(), bi = /* @__PURE__ */ new Set();
|
|
1364
|
+
function Jr(t, e, r, n = {}) {
|
|
1365
|
+
function i(f) {
|
|
1366
|
+
if (n.capture || Ei.call(e, f), !f.cancelBubble)
|
|
1367
|
+
return It(() => r == null ? void 0 : r.call(this, f));
|
|
1368
|
+
}
|
|
1369
|
+
return t.startsWith("pointer") || t.startsWith("touch") || t === "wheel" ? zt(() => {
|
|
1370
|
+
e.addEventListener(t, i, n);
|
|
1371
|
+
}) : e.addEventListener(t, i, n), i;
|
|
1372
|
+
}
|
|
1373
|
+
function of(t, e, r, n, i) {
|
|
1374
|
+
var f = { capture: n, passive: i }, a = Jr(t, e, r, f);
|
|
1375
|
+
(e === document.body || // @ts-ignore
|
|
1376
|
+
e === window || // @ts-ignore
|
|
1377
|
+
e === document || // Firefox has quirky behavior, it can happen that we still get "canplay" events when the element is already removed
|
|
1378
|
+
e instanceof HTMLMediaElement) && Dr(() => {
|
|
1379
|
+
e.removeEventListener(t, a, f);
|
|
1380
|
+
});
|
|
1381
|
+
}
|
|
1382
|
+
function yi(t) {
|
|
1383
|
+
for (var e = 0; e < t.length; e++)
|
|
1384
|
+
gi.add(t[e]);
|
|
1385
|
+
for (var r of bi)
|
|
1386
|
+
r(t);
|
|
1387
|
+
}
|
|
1388
|
+
let lr = null;
|
|
1389
|
+
function Ei(t) {
|
|
1390
|
+
var T;
|
|
1391
|
+
var e = this, r = (
|
|
1392
|
+
/** @type {Node} */
|
|
1393
|
+
e.ownerDocument
|
|
1394
|
+
), n = t.type, i = ((T = t.composedPath) == null ? void 0 : T.call(t)) || [], f = (
|
|
1395
|
+
/** @type {null | Element} */
|
|
1396
|
+
i[0] || t.target
|
|
1397
|
+
);
|
|
1398
|
+
lr = t;
|
|
1399
|
+
var a = 0, l = lr === t && t.__root;
|
|
1400
|
+
if (l) {
|
|
1401
|
+
var u = i.indexOf(l);
|
|
1402
|
+
if (u !== -1 && (e === document || e === /** @type {any} */
|
|
1403
|
+
window)) {
|
|
1404
|
+
t.__root = e;
|
|
1405
|
+
return;
|
|
1406
|
+
}
|
|
1407
|
+
var s = i.indexOf(e);
|
|
1408
|
+
if (s === -1)
|
|
1409
|
+
return;
|
|
1410
|
+
u <= s && (a = u);
|
|
1411
|
+
}
|
|
1412
|
+
if (f = /** @type {Element} */
|
|
1413
|
+
i[a] || t.target, f !== e) {
|
|
1414
|
+
Ce(t, "currentTarget", {
|
|
1415
|
+
configurable: !0,
|
|
1416
|
+
get() {
|
|
1417
|
+
return f || r;
|
|
1418
|
+
}
|
|
1419
|
+
});
|
|
1420
|
+
var o = A, v = S;
|
|
1421
|
+
z(null), lt(null);
|
|
1422
|
+
try {
|
|
1423
|
+
for (var _, p = []; f !== null; ) {
|
|
1424
|
+
var c = f.assignedSlot || f.parentNode || /** @type {any} */
|
|
1425
|
+
f.host || null;
|
|
1426
|
+
try {
|
|
1427
|
+
var d = f["__" + n];
|
|
1428
|
+
if (d != null && (!/** @type {any} */
|
|
1429
|
+
f.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1430
|
+
// -> the target could not have been disabled because it emits the event in the first place
|
|
1431
|
+
t.target === f))
|
|
1432
|
+
if (ve(d)) {
|
|
1433
|
+
var [h, ...w] = d;
|
|
1434
|
+
h.apply(f, [t, ...w]);
|
|
1435
|
+
} else
|
|
1436
|
+
d.call(f, t);
|
|
1437
|
+
} catch (g) {
|
|
1438
|
+
_ ? p.push(g) : _ = g;
|
|
1439
|
+
}
|
|
1440
|
+
if (t.cancelBubble || c === e || c === null)
|
|
1441
|
+
break;
|
|
1442
|
+
f = c;
|
|
1443
|
+
}
|
|
1444
|
+
if (_) {
|
|
1445
|
+
for (let g of p)
|
|
1446
|
+
queueMicrotask(() => {
|
|
1447
|
+
throw g;
|
|
1448
|
+
});
|
|
1449
|
+
throw _;
|
|
1450
|
+
}
|
|
1451
|
+
} finally {
|
|
1452
|
+
t.__root = e, delete t.currentTarget, z(o), lt(v);
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
function Qr(t) {
|
|
1457
|
+
var e = document.createElement("template");
|
|
1458
|
+
return e.innerHTML = t.replaceAll("<!>", "<!---->"), e.content;
|
|
1459
|
+
}
|
|
1460
|
+
function qt(t, e) {
|
|
1461
|
+
var r = (
|
|
1462
|
+
/** @type {Effect} */
|
|
1463
|
+
S
|
|
1464
|
+
);
|
|
1465
|
+
r.nodes_start === null && (r.nodes_start = t, r.nodes_end = e);
|
|
1466
|
+
}
|
|
1467
|
+
// @__NO_SIDE_EFFECTS__
|
|
1468
|
+
function cf(t, e) {
|
|
1469
|
+
var r = (e & Sn) !== 0, n = (e & Tn) !== 0, i, f = !t.startsWith("<!>");
|
|
1470
|
+
return () => {
|
|
1471
|
+
i === void 0 && (i = Qr(f ? t : "<!>" + t), r || (i = /** @type {Node} */
|
|
1472
|
+
/* @__PURE__ */ Ct(i)));
|
|
1473
|
+
var a = (
|
|
1474
|
+
/** @type {TemplateNode} */
|
|
1475
|
+
n || ni ? document.importNode(i, !0) : i.cloneNode(!0)
|
|
1476
|
+
);
|
|
1477
|
+
if (r) {
|
|
1478
|
+
var l = (
|
|
1479
|
+
/** @type {TemplateNode} */
|
|
1480
|
+
/* @__PURE__ */ Ct(a)
|
|
1481
|
+
), u = (
|
|
1482
|
+
/** @type {TemplateNode} */
|
|
1483
|
+
a.lastChild
|
|
1484
|
+
);
|
|
1485
|
+
qt(l, u);
|
|
1486
|
+
} else
|
|
1487
|
+
qt(a, a);
|
|
1488
|
+
return a;
|
|
1489
|
+
};
|
|
1490
|
+
}
|
|
1491
|
+
// @__NO_SIDE_EFFECTS__
|
|
1492
|
+
function mi(t, e, r = "svg") {
|
|
1493
|
+
var n = !t.startsWith("<!>"), i = `<${r}>${n ? t : "<!>" + t}</${r}>`, f;
|
|
1494
|
+
return () => {
|
|
1495
|
+
if (!f) {
|
|
1496
|
+
var a = (
|
|
1497
|
+
/** @type {DocumentFragment} */
|
|
1498
|
+
Qr(i)
|
|
1499
|
+
), l = (
|
|
1500
|
+
/** @type {Element} */
|
|
1501
|
+
/* @__PURE__ */ Ct(a)
|
|
1502
|
+
);
|
|
1503
|
+
f = /** @type {Element} */
|
|
1504
|
+
/* @__PURE__ */ Ct(l);
|
|
1505
|
+
}
|
|
1506
|
+
var u = (
|
|
1507
|
+
/** @type {TemplateNode} */
|
|
1508
|
+
f.cloneNode(!0)
|
|
1509
|
+
);
|
|
1510
|
+
return qt(u, u), u;
|
|
1511
|
+
};
|
|
1512
|
+
}
|
|
1513
|
+
// @__NO_SIDE_EFFECTS__
|
|
1514
|
+
function vf(t, e) {
|
|
1515
|
+
return /* @__PURE__ */ mi(t, e, "svg");
|
|
1516
|
+
}
|
|
1517
|
+
function _f(t = "") {
|
|
1518
|
+
{
|
|
1519
|
+
var e = Xt(t + "");
|
|
1520
|
+
return qt(e, e), e;
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
function df() {
|
|
1524
|
+
var t = document.createDocumentFragment(), e = document.createComment(""), r = Xt();
|
|
1525
|
+
return t.append(e, r), qt(e, r), t;
|
|
1526
|
+
}
|
|
1527
|
+
function pf(t, e) {
|
|
1528
|
+
t !== null && t.before(
|
|
1529
|
+
/** @type {Node} */
|
|
1530
|
+
e
|
|
1531
|
+
);
|
|
1532
|
+
}
|
|
1533
|
+
function Ai(t) {
|
|
1534
|
+
return t.endsWith("capture") && t !== "gotpointercapture" && t !== "lostpointercapture";
|
|
1535
|
+
}
|
|
1536
|
+
const Si = [
|
|
1537
|
+
"beforeinput",
|
|
1538
|
+
"click",
|
|
1539
|
+
"change",
|
|
1540
|
+
"dblclick",
|
|
1541
|
+
"contextmenu",
|
|
1542
|
+
"focusin",
|
|
1543
|
+
"focusout",
|
|
1544
|
+
"input",
|
|
1545
|
+
"keydown",
|
|
1546
|
+
"keyup",
|
|
1547
|
+
"mousedown",
|
|
1548
|
+
"mousemove",
|
|
1549
|
+
"mouseout",
|
|
1550
|
+
"mouseover",
|
|
1551
|
+
"mouseup",
|
|
1552
|
+
"pointerdown",
|
|
1553
|
+
"pointermove",
|
|
1554
|
+
"pointerout",
|
|
1555
|
+
"pointerover",
|
|
1556
|
+
"pointerup",
|
|
1557
|
+
"touchend",
|
|
1558
|
+
"touchmove",
|
|
1559
|
+
"touchstart"
|
|
1560
|
+
];
|
|
1561
|
+
function Ti(t) {
|
|
1562
|
+
return Si.includes(t);
|
|
1563
|
+
}
|
|
1564
|
+
const Oi = {
|
|
1565
|
+
// no `class: 'className'` because we handle that separately
|
|
1566
|
+
formnovalidate: "formNoValidate",
|
|
1567
|
+
ismap: "isMap",
|
|
1568
|
+
nomodule: "noModule",
|
|
1569
|
+
playsinline: "playsInline",
|
|
1570
|
+
readonly: "readOnly",
|
|
1571
|
+
defaultvalue: "defaultValue",
|
|
1572
|
+
defaultchecked: "defaultChecked",
|
|
1573
|
+
srcobject: "srcObject",
|
|
1574
|
+
novalidate: "noValidate",
|
|
1575
|
+
allowfullscreen: "allowFullscreen",
|
|
1576
|
+
disablepictureinpicture: "disablePictureInPicture",
|
|
1577
|
+
disableremoteplayback: "disableRemotePlayback"
|
|
1578
|
+
};
|
|
1579
|
+
function Pi(t) {
|
|
1580
|
+
return t = t.toLowerCase(), Oi[t] ?? t;
|
|
1581
|
+
}
|
|
1582
|
+
let tn = !0;
|
|
1583
|
+
function hf(t) {
|
|
1584
|
+
tn = t;
|
|
1585
|
+
}
|
|
1586
|
+
function wf(t, e) {
|
|
1587
|
+
var r = e == null ? "" : typeof e == "object" ? e + "" : e;
|
|
1588
|
+
r !== (t.__t ?? (t.__t = t.nodeValue)) && (t.__t = r, t.nodeValue = r + "");
|
|
1589
|
+
}
|
|
1590
|
+
function gf(t, e, r = !1) {
|
|
1591
|
+
var n = t, i = null, f = null, a = P, l = r ? pe : 0, u = !1;
|
|
1592
|
+
const s = (p, c = !0) => {
|
|
1593
|
+
u = !0, _(c, p);
|
|
1594
|
+
};
|
|
1595
|
+
var o = null;
|
|
1596
|
+
function v() {
|
|
1597
|
+
o !== null && (o.lastChild.remove(), n.before(o), o = null);
|
|
1598
|
+
var p = a ? i : f, c = a ? f : i;
|
|
1599
|
+
p && Ye(p), c && Br(c, () => {
|
|
1600
|
+
a ? f = null : i = null;
|
|
1601
|
+
});
|
|
1602
|
+
}
|
|
1603
|
+
const _ = (p, c) => {
|
|
1604
|
+
if (a !== (a = p)) {
|
|
1605
|
+
var d = Lr(), h = n;
|
|
1606
|
+
if (d && (o = document.createDocumentFragment(), o.append(h = Xt())), a ? i ?? (i = c && Nt(() => c(h))) : f ?? (f = c && Nt(() => c(h))), d) {
|
|
1607
|
+
var w = (
|
|
1608
|
+
/** @type {Batch} */
|
|
1609
|
+
N
|
|
1610
|
+
), T = a ? i : f, g = a ? f : i;
|
|
1611
|
+
T && w.skipped_effects.delete(T), g && w.skipped_effects.add(g), w.add_callback(v);
|
|
1612
|
+
} else
|
|
1613
|
+
v();
|
|
1614
|
+
}
|
|
1615
|
+
};
|
|
1616
|
+
ge(() => {
|
|
1617
|
+
u = !1, e(s), u || _(null, null);
|
|
1618
|
+
}, l);
|
|
1619
|
+
}
|
|
1620
|
+
function bf(t, e) {
|
|
1621
|
+
return e;
|
|
1622
|
+
}
|
|
1623
|
+
function Ci(t, e, r) {
|
|
1624
|
+
for (var n = t.items, i = [], f = e.length, a = 0; a < f; a++)
|
|
1625
|
+
He(e[a].e, i, !0);
|
|
1626
|
+
var l = f > 0 && i.length === 0 && r !== null;
|
|
1627
|
+
if (l) {
|
|
1628
|
+
var u = (
|
|
1629
|
+
/** @type {Element} */
|
|
1630
|
+
/** @type {Element} */
|
|
1631
|
+
r.parentNode
|
|
1632
|
+
);
|
|
1633
|
+
ai(u), u.append(
|
|
1634
|
+
/** @type {Element} */
|
|
1635
|
+
r
|
|
1636
|
+
), n.clear(), W(t, e[0].prev, e[f - 1].next);
|
|
1637
|
+
}
|
|
1638
|
+
Hr(i, () => {
|
|
1639
|
+
for (var s = 0; s < f; s++) {
|
|
1640
|
+
var o = e[s];
|
|
1641
|
+
l || (n.delete(o.k), W(t, o.prev, o.next)), K(o.e, !l);
|
|
1642
|
+
}
|
|
1643
|
+
});
|
|
1644
|
+
}
|
|
1645
|
+
function yf(t, e, r, n, i, f = null) {
|
|
1646
|
+
var a = t, l = { flags: e, items: /* @__PURE__ */ new Map(), first: null }, u = (e & br) !== 0;
|
|
1647
|
+
if (u) {
|
|
1648
|
+
var s = (
|
|
1649
|
+
/** @type {Element} */
|
|
1650
|
+
t
|
|
1651
|
+
);
|
|
1652
|
+
a = s.appendChild(Xt());
|
|
1653
|
+
}
|
|
1654
|
+
var o = null, v = !1, _ = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ qe(() => {
|
|
1655
|
+
var w = r();
|
|
1656
|
+
return ve(w) ? w : w == null ? [] : Er(w);
|
|
1657
|
+
}), c, d;
|
|
1658
|
+
function h() {
|
|
1659
|
+
Ni(
|
|
1660
|
+
d,
|
|
1661
|
+
c,
|
|
1662
|
+
l,
|
|
1663
|
+
_,
|
|
1664
|
+
a,
|
|
1665
|
+
i,
|
|
1666
|
+
e,
|
|
1667
|
+
n,
|
|
1668
|
+
r
|
|
1669
|
+
), f !== null && (c.length === 0 ? o ? Ye(o) : o = Nt(() => f(a)) : o !== null && Br(o, () => {
|
|
1670
|
+
o = null;
|
|
1671
|
+
}));
|
|
1672
|
+
}
|
|
1673
|
+
ge(() => {
|
|
1674
|
+
d ?? (d = /** @type {Effect} */
|
|
1675
|
+
S), c = /** @type {V[]} */
|
|
1676
|
+
F(p);
|
|
1677
|
+
var w = c.length;
|
|
1678
|
+
if (!(v && w === 0)) {
|
|
1679
|
+
v = w === 0;
|
|
1680
|
+
var T, g, b, m;
|
|
1681
|
+
if (Lr()) {
|
|
1682
|
+
var y = /* @__PURE__ */ new Set(), E = (
|
|
1683
|
+
/** @type {Batch} */
|
|
1684
|
+
N
|
|
1685
|
+
);
|
|
1686
|
+
for (g = 0; g < w; g += 1) {
|
|
1687
|
+
b = c[g], m = n(b, g);
|
|
1688
|
+
var M = l.items.get(m) ?? _.get(m);
|
|
1689
|
+
M ? (e & (oe | ce)) !== 0 && en(M, b, g, e) : (T = rn(
|
|
1690
|
+
null,
|
|
1691
|
+
l,
|
|
1692
|
+
null,
|
|
1693
|
+
null,
|
|
1694
|
+
b,
|
|
1695
|
+
m,
|
|
1696
|
+
g,
|
|
1697
|
+
i,
|
|
1698
|
+
e,
|
|
1699
|
+
r,
|
|
1700
|
+
!0
|
|
1701
|
+
), _.set(m, T)), y.add(m);
|
|
1702
|
+
}
|
|
1703
|
+
for (const [B, be] of l.items)
|
|
1704
|
+
y.has(B) || E.skipped_effects.add(be.e);
|
|
1705
|
+
E.add_callback(h);
|
|
1706
|
+
} else
|
|
1707
|
+
h();
|
|
1708
|
+
F(p);
|
|
1709
|
+
}
|
|
1710
|
+
});
|
|
1711
|
+
}
|
|
1712
|
+
function Ni(t, e, r, n, i, f, a, l, u) {
|
|
1713
|
+
var Ke, ze, Ze, Xe;
|
|
1714
|
+
var s = (a & hn) !== 0, o = (a & (oe | ce)) !== 0, v = e.length, _ = r.items, p = r.first, c = p, d, h = null, w, T = [], g = [], b, m, y, E;
|
|
1715
|
+
if (s)
|
|
1716
|
+
for (E = 0; E < v; E += 1)
|
|
1717
|
+
b = e[E], m = l(b, E), y = _.get(m), y !== void 0 && ((Ke = y.a) == null || Ke.measure(), (w ?? (w = /* @__PURE__ */ new Set())).add(y));
|
|
1718
|
+
for (E = 0; E < v; E += 1) {
|
|
1719
|
+
if (b = e[E], m = l(b, E), y = _.get(m), y === void 0) {
|
|
1720
|
+
var M = n.get(m);
|
|
1721
|
+
if (M !== void 0) {
|
|
1722
|
+
n.delete(m), _.set(m, M);
|
|
1723
|
+
var B = h ? h.next : c;
|
|
1724
|
+
W(r, h, M), W(r, M, B), Te(M, B, i), h = M;
|
|
1725
|
+
} else {
|
|
1726
|
+
var be = c ? (
|
|
1727
|
+
/** @type {TemplateNode} */
|
|
1728
|
+
c.e.nodes_start
|
|
1729
|
+
) : i;
|
|
1730
|
+
h = rn(
|
|
1731
|
+
be,
|
|
1732
|
+
r,
|
|
1733
|
+
h,
|
|
1734
|
+
h === null ? r.first : h.next,
|
|
1735
|
+
b,
|
|
1736
|
+
m,
|
|
1737
|
+
E,
|
|
1738
|
+
f,
|
|
1739
|
+
a,
|
|
1740
|
+
u
|
|
1741
|
+
);
|
|
1742
|
+
}
|
|
1743
|
+
_.set(m, h), T = [], g = [], c = h.next;
|
|
1744
|
+
continue;
|
|
1745
|
+
}
|
|
1746
|
+
if (o && en(y, b, E, a), (y.e.f & H) !== 0 && (Ye(y.e), s && ((ze = y.a) == null || ze.unfix(), (w ?? (w = /* @__PURE__ */ new Set())).delete(y))), y !== c) {
|
|
1747
|
+
if (d !== void 0 && d.has(y)) {
|
|
1748
|
+
if (T.length < g.length) {
|
|
1749
|
+
var te = g[0], nt;
|
|
1750
|
+
h = te.prev;
|
|
1751
|
+
var Ge = T[0], ye = T[T.length - 1];
|
|
1752
|
+
for (nt = 0; nt < T.length; nt += 1)
|
|
1753
|
+
Te(T[nt], te, i);
|
|
1754
|
+
for (nt = 0; nt < g.length; nt += 1)
|
|
1755
|
+
d.delete(g[nt]);
|
|
1756
|
+
W(r, Ge.prev, ye.next), W(r, h, Ge), W(r, ye, te), c = te, h = ye, E -= 1, T = [], g = [];
|
|
1757
|
+
} else
|
|
1758
|
+
d.delete(y), Te(y, c, i), W(r, y.prev, y.next), W(r, y, h === null ? r.first : h.next), W(r, h, y), h = y;
|
|
1759
|
+
continue;
|
|
1760
|
+
}
|
|
1761
|
+
for (T = [], g = []; c !== null && c.k !== m; )
|
|
1762
|
+
(c.e.f & H) === 0 && (d ?? (d = /* @__PURE__ */ new Set())).add(c), g.push(c), c = c.next;
|
|
1763
|
+
if (c === null)
|
|
1764
|
+
continue;
|
|
1765
|
+
y = c;
|
|
1766
|
+
}
|
|
1767
|
+
T.push(y), h = y, c = y.next;
|
|
1768
|
+
}
|
|
1769
|
+
if (c !== null || d !== void 0) {
|
|
1770
|
+
for (var Rt = d === void 0 ? [] : Er(d); c !== null; )
|
|
1771
|
+
(c.e.f & H) === 0 && Rt.push(c), c = c.next;
|
|
1772
|
+
var Ee = Rt.length;
|
|
1773
|
+
if (Ee > 0) {
|
|
1774
|
+
var on = (a & br) !== 0 && v === 0 ? i : null;
|
|
1775
|
+
if (s) {
|
|
1776
|
+
for (E = 0; E < Ee; E += 1)
|
|
1777
|
+
(Ze = Rt[E].a) == null || Ze.measure();
|
|
1778
|
+
for (E = 0; E < Ee; E += 1)
|
|
1779
|
+
(Xe = Rt[E].a) == null || Xe.fix();
|
|
1780
|
+
}
|
|
1781
|
+
Ci(r, Rt, on);
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
s && zt(() => {
|
|
1785
|
+
var Je;
|
|
1786
|
+
if (w !== void 0)
|
|
1787
|
+
for (y of w)
|
|
1788
|
+
(Je = y.a) == null || Je.apply();
|
|
1789
|
+
}), t.first = r.first && r.first.e, t.last = h && h.e;
|
|
1790
|
+
for (var cn of n.values())
|
|
1791
|
+
K(cn.e);
|
|
1792
|
+
n.clear();
|
|
1793
|
+
}
|
|
1794
|
+
function en(t, e, r, n) {
|
|
1795
|
+
(n & oe) !== 0 && jt(t.v, e), (n & ce) !== 0 ? jt(
|
|
1796
|
+
/** @type {Value<number>} */
|
|
1797
|
+
t.i,
|
|
1798
|
+
r
|
|
1799
|
+
) : t.i = r;
|
|
1800
|
+
}
|
|
1801
|
+
function rn(t, e, r, n, i, f, a, l, u, s, o) {
|
|
1802
|
+
var v = (u & oe) !== 0, _ = (u & wn) === 0, p = v ? _ ? /* @__PURE__ */ ei(i, !1, !1) : xt(i) : i, c = (u & ce) === 0 ? a : xt(a), d = {
|
|
1803
|
+
i: c,
|
|
1804
|
+
v: p,
|
|
1805
|
+
k: f,
|
|
1806
|
+
a: null,
|
|
1807
|
+
// @ts-expect-error
|
|
1808
|
+
e: null,
|
|
1809
|
+
prev: r,
|
|
1810
|
+
next: n
|
|
1811
|
+
};
|
|
1812
|
+
try {
|
|
1813
|
+
if (t === null) {
|
|
1814
|
+
var h = document.createDocumentFragment();
|
|
1815
|
+
h.append(t = Xt());
|
|
1816
|
+
}
|
|
1817
|
+
return d.e = Nt(() => l(
|
|
1818
|
+
/** @type {Node} */
|
|
1819
|
+
t,
|
|
1820
|
+
p,
|
|
1821
|
+
c,
|
|
1822
|
+
s
|
|
1823
|
+
), Yn), d.e.prev = r && r.e, d.e.next = n && n.e, r === null ? o || (e.first = d) : (r.next = d, r.e.next = d.e), n !== null && (n.prev = d, n.e.prev = d.e), d;
|
|
1824
|
+
} finally {
|
|
1825
|
+
}
|
|
1826
|
+
}
|
|
1827
|
+
function Te(t, e, r) {
|
|
1828
|
+
for (var n = t.next ? (
|
|
1829
|
+
/** @type {TemplateNode} */
|
|
1830
|
+
t.next.e.nodes_start
|
|
1831
|
+
) : r, i = e ? (
|
|
1832
|
+
/** @type {TemplateNode} */
|
|
1833
|
+
e.e.nodes_start
|
|
1834
|
+
) : r, f = (
|
|
1835
|
+
/** @type {TemplateNode} */
|
|
1836
|
+
t.e.nodes_start
|
|
1837
|
+
); f !== null && f !== n; ) {
|
|
1838
|
+
var a = (
|
|
1839
|
+
/** @type {TemplateNode} */
|
|
1840
|
+
/* @__PURE__ */ we(f)
|
|
1841
|
+
);
|
|
1842
|
+
i.before(f), f = a;
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
function W(t, e, r) {
|
|
1846
|
+
e === null ? t.first = r : (e.next = r, e.e.next = r && r.e), r !== null && (r.prev = e, r.e.prev = e && e.e);
|
|
1847
|
+
}
|
|
1848
|
+
function ki(t, e) {
|
|
1849
|
+
var r = void 0, n;
|
|
1850
|
+
ge(() => {
|
|
1851
|
+
r !== (r = e()) && (n && (K(n), n = null), r && (n = Nt(() => {
|
|
1852
|
+
Be(() => (
|
|
1853
|
+
/** @type {(node: Element) => void} */
|
|
1854
|
+
r(t)
|
|
1855
|
+
));
|
|
1856
|
+
})));
|
|
1857
|
+
});
|
|
1858
|
+
}
|
|
1859
|
+
function nn(t) {
|
|
1860
|
+
var e, r, n = "";
|
|
1861
|
+
if (typeof t == "string" || typeof t == "number") n += t;
|
|
1862
|
+
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
1863
|
+
var i = t.length;
|
|
1864
|
+
for (e = 0; e < i; e++) t[e] && (r = nn(t[e])) && (n && (n += " "), n += r);
|
|
1865
|
+
} else for (r in t) t[r] && (n && (n += " "), n += r);
|
|
1866
|
+
return n;
|
|
1867
|
+
}
|
|
1868
|
+
function Ii() {
|
|
1869
|
+
for (var t, e, r = 0, n = "", i = arguments.length; r < i; r++) (t = arguments[r]) && (e = nn(t)) && (n && (n += " "), n += e);
|
|
1870
|
+
return n;
|
|
1871
|
+
}
|
|
1872
|
+
function Ri(t) {
|
|
1873
|
+
return typeof t == "object" ? Ii(t) : t ?? "";
|
|
1874
|
+
}
|
|
1875
|
+
const or = [...`
|
|
1876
|
+
\r\f \v\uFEFF`];
|
|
1877
|
+
function $i(t, e, r) {
|
|
1878
|
+
var n = t == null ? "" : "" + t;
|
|
1879
|
+
if (e && (n = n ? n + " " + e : e), r) {
|
|
1880
|
+
for (var i in r)
|
|
1881
|
+
if (r[i])
|
|
1882
|
+
n = n ? n + " " + i : i;
|
|
1883
|
+
else if (n.length)
|
|
1884
|
+
for (var f = i.length, a = 0; (a = n.indexOf(i, a)) >= 0; ) {
|
|
1885
|
+
var l = a + f;
|
|
1886
|
+
(a === 0 || or.includes(n[a - 1])) && (l === n.length || or.includes(n[l])) ? n = (a === 0 ? "" : n.substring(0, a)) + n.substring(l + 1) : a = l;
|
|
1887
|
+
}
|
|
1888
|
+
}
|
|
1889
|
+
return n === "" ? null : n;
|
|
1890
|
+
}
|
|
1891
|
+
function cr(t, e = !1) {
|
|
1892
|
+
var r = e ? " !important;" : ";", n = "";
|
|
1893
|
+
for (var i in t) {
|
|
1894
|
+
var f = t[i];
|
|
1895
|
+
f != null && f !== "" && (n += " " + i + ": " + f + r);
|
|
1896
|
+
}
|
|
1897
|
+
return n;
|
|
1898
|
+
}
|
|
1899
|
+
function Oe(t) {
|
|
1900
|
+
return t[0] !== "-" || t[1] !== "-" ? t.toLowerCase() : t;
|
|
1901
|
+
}
|
|
1902
|
+
function Mi(t, e) {
|
|
1903
|
+
if (e) {
|
|
1904
|
+
var r = "", n, i;
|
|
1905
|
+
if (Array.isArray(e) ? (n = e[0], i = e[1]) : n = e, t) {
|
|
1906
|
+
t = String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
|
|
1907
|
+
var f = !1, a = 0, l = !1, u = [];
|
|
1908
|
+
n && u.push(...Object.keys(n).map(Oe)), i && u.push(...Object.keys(i).map(Oe));
|
|
1909
|
+
var s = 0, o = -1;
|
|
1910
|
+
const d = t.length;
|
|
1911
|
+
for (var v = 0; v < d; v++) {
|
|
1912
|
+
var _ = t[v];
|
|
1913
|
+
if (l ? _ === "/" && t[v - 1] === "*" && (l = !1) : f ? f === _ && (f = !1) : _ === "/" && t[v + 1] === "*" ? l = !0 : _ === '"' || _ === "'" ? f = _ : _ === "(" ? a++ : _ === ")" && a--, !l && f === !1 && a === 0) {
|
|
1914
|
+
if (_ === ":" && o === -1)
|
|
1915
|
+
o = v;
|
|
1916
|
+
else if (_ === ";" || v === d - 1) {
|
|
1917
|
+
if (o !== -1) {
|
|
1918
|
+
var p = Oe(t.substring(s, o).trim());
|
|
1919
|
+
if (!u.includes(p)) {
|
|
1920
|
+
_ !== ";" && v++;
|
|
1921
|
+
var c = t.substring(s, v).trim();
|
|
1922
|
+
r += " " + c + ";";
|
|
1923
|
+
}
|
|
1924
|
+
}
|
|
1925
|
+
s = v + 1, o = -1;
|
|
1926
|
+
}
|
|
1927
|
+
}
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
return n && (r += cr(n)), i && (r += cr(i, !0)), r = r.trim(), r === "" ? null : r;
|
|
1931
|
+
}
|
|
1932
|
+
return t == null ? null : String(t);
|
|
1933
|
+
}
|
|
1934
|
+
function Li(t, e, r, n, i, f) {
|
|
1935
|
+
var a = t.__className;
|
|
1936
|
+
if (a !== r || a === void 0) {
|
|
1937
|
+
var l = $i(r, n, f);
|
|
1938
|
+
l == null ? t.removeAttribute("class") : e ? t.className = l : t.setAttribute("class", l), t.__className = r;
|
|
1939
|
+
} else if (f && i !== f)
|
|
1940
|
+
for (var u in f) {
|
|
1941
|
+
var s = !!f[u];
|
|
1942
|
+
(i == null || s !== !!i[u]) && t.classList.toggle(u, s);
|
|
1943
|
+
}
|
|
1944
|
+
return f;
|
|
1945
|
+
}
|
|
1946
|
+
function Pe(t, e = {}, r, n) {
|
|
1947
|
+
for (var i in r) {
|
|
1948
|
+
var f = r[i];
|
|
1949
|
+
e[i] !== f && (r[i] == null ? t.style.removeProperty(i) : t.style.setProperty(i, f, n));
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
function Fi(t, e, r, n) {
|
|
1953
|
+
var i = t.__style;
|
|
1954
|
+
if (i !== e) {
|
|
1955
|
+
var f = Mi(e, n);
|
|
1956
|
+
f == null ? t.removeAttribute("style") : t.style.cssText = f, t.__style = e;
|
|
1957
|
+
} else n && (Array.isArray(n) ? (Pe(t, r == null ? void 0 : r[0], n[0]), Pe(t, r == null ? void 0 : r[1], n[1], "important")) : Pe(t, r, n));
|
|
1958
|
+
return n;
|
|
1959
|
+
}
|
|
1960
|
+
function Me(t, e, r = !1) {
|
|
1961
|
+
if (t.multiple) {
|
|
1962
|
+
if (e == null)
|
|
1963
|
+
return;
|
|
1964
|
+
if (!ve(e))
|
|
1965
|
+
return Hn();
|
|
1966
|
+
for (var n of t.options)
|
|
1967
|
+
n.selected = e.includes(vr(n));
|
|
1968
|
+
return;
|
|
1969
|
+
}
|
|
1970
|
+
for (n of t.options) {
|
|
1971
|
+
var i = vr(n);
|
|
1972
|
+
if (ri(i, e)) {
|
|
1973
|
+
n.selected = !0;
|
|
1974
|
+
return;
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
(!r || e !== void 0) && (t.selectedIndex = -1);
|
|
1978
|
+
}
|
|
1979
|
+
function Di(t) {
|
|
1980
|
+
var e = new MutationObserver(() => {
|
|
1981
|
+
Me(t, t.__value);
|
|
1982
|
+
});
|
|
1983
|
+
e.observe(t, {
|
|
1984
|
+
// Listen to option element changes
|
|
1985
|
+
childList: !0,
|
|
1986
|
+
subtree: !0,
|
|
1987
|
+
// because of <optgroup>
|
|
1988
|
+
// Listen to option element value attribute changes
|
|
1989
|
+
// (doesn't get notified of select value changes,
|
|
1990
|
+
// because that property is not reflected as an attribute)
|
|
1991
|
+
attributes: !0,
|
|
1992
|
+
attributeFilter: ["value"]
|
|
1993
|
+
}), Dr(() => {
|
|
1994
|
+
e.disconnect();
|
|
1995
|
+
});
|
|
1996
|
+
}
|
|
1997
|
+
function vr(t) {
|
|
1998
|
+
return "__value" in t ? t.__value : t.value;
|
|
1999
|
+
}
|
|
2000
|
+
const Lt = Symbol("class"), Ft = Symbol("style"), fn = Symbol("is custom element"), an = Symbol("is html");
|
|
2001
|
+
function Ef(t, e) {
|
|
2002
|
+
var r = We(t);
|
|
2003
|
+
r.value === (r.value = // treat null and undefined the same for the initial value
|
|
2004
|
+
e ?? void 0) || // @ts-expect-error
|
|
2005
|
+
// `progress` elements always need their value set when it's `0`
|
|
2006
|
+
t.value === e && (e !== 0 || t.nodeName !== "PROGRESS") || (t.value = e ?? "");
|
|
2007
|
+
}
|
|
2008
|
+
function xi(t, e) {
|
|
2009
|
+
e ? t.hasAttribute("selected") || t.setAttribute("selected", "") : t.removeAttribute("selected");
|
|
2010
|
+
}
|
|
2011
|
+
function _r(t, e, r, n) {
|
|
2012
|
+
var i = We(t);
|
|
2013
|
+
i[e] !== (i[e] = r) && (e === "loading" && (t[Mn] = r), r == null ? t.removeAttribute(e) : typeof r != "string" && sn(t).includes(e) ? t[e] = r : t.setAttribute(e, r));
|
|
2014
|
+
}
|
|
2015
|
+
function ji(t, e, r, n, i = !1, f = !1) {
|
|
2016
|
+
var a = We(t), l = a[fn], u = !a[an], s = e || {}, o = t.tagName === "OPTION";
|
|
2017
|
+
for (var v in e)
|
|
2018
|
+
v in r || (r[v] = null);
|
|
2019
|
+
r.class ? r.class = Ri(r.class) : (n || r[Lt]) && (r.class = null), r[Ft] && (r.style ?? (r.style = null));
|
|
2020
|
+
var _ = sn(t);
|
|
2021
|
+
for (const g in r) {
|
|
2022
|
+
let b = r[g];
|
|
2023
|
+
if (o && g === "value" && b == null) {
|
|
2024
|
+
t.value = t.__value = "", s[g] = b;
|
|
2025
|
+
continue;
|
|
2026
|
+
}
|
|
2027
|
+
if (g === "class") {
|
|
2028
|
+
var p = t.namespaceURI === "http://www.w3.org/1999/xhtml";
|
|
2029
|
+
Li(t, p, b, n, e == null ? void 0 : e[Lt], r[Lt]), s[g] = b, s[Lt] = r[Lt];
|
|
2030
|
+
continue;
|
|
2031
|
+
}
|
|
2032
|
+
if (g === "style") {
|
|
2033
|
+
Fi(t, b, e == null ? void 0 : e[Ft], r[Ft]), s[g] = b, s[Ft] = r[Ft];
|
|
2034
|
+
continue;
|
|
2035
|
+
}
|
|
2036
|
+
var c = s[g];
|
|
2037
|
+
if (!(b === c && !(b === void 0 && t.hasAttribute(g)))) {
|
|
2038
|
+
s[g] = b;
|
|
2039
|
+
var d = g[0] + g[1];
|
|
2040
|
+
if (d !== "$$")
|
|
2041
|
+
if (d === "on") {
|
|
2042
|
+
const m = {}, y = "$$" + g;
|
|
2043
|
+
let E = g.slice(2);
|
|
2044
|
+
var h = Ti(E);
|
|
2045
|
+
if (Ai(E) && (E = E.slice(0, -7), m.capture = !0), !h && c) {
|
|
2046
|
+
if (b != null) continue;
|
|
2047
|
+
t.removeEventListener(E, s[y], m), s[y] = null;
|
|
2048
|
+
}
|
|
2049
|
+
if (b != null)
|
|
2050
|
+
if (h)
|
|
2051
|
+
t[`__${E}`] = b, yi([E]);
|
|
2052
|
+
else {
|
|
2053
|
+
let M = function(B) {
|
|
2054
|
+
s[g].call(this, B);
|
|
2055
|
+
};
|
|
2056
|
+
s[y] = Jr(E, t, M, m);
|
|
2057
|
+
}
|
|
2058
|
+
else h && (t[`__${E}`] = void 0);
|
|
2059
|
+
} else if (g === "style")
|
|
2060
|
+
_r(t, g, b);
|
|
2061
|
+
else if (g === "autofocus")
|
|
2062
|
+
si(
|
|
2063
|
+
/** @type {HTMLElement} */
|
|
2064
|
+
t,
|
|
2065
|
+
!!b
|
|
2066
|
+
);
|
|
2067
|
+
else if (!l && (g === "__value" || g === "value" && b != null))
|
|
2068
|
+
t.value = t.__value = b;
|
|
2069
|
+
else if (g === "selected" && o)
|
|
2070
|
+
xi(
|
|
2071
|
+
/** @type {HTMLOptionElement} */
|
|
2072
|
+
t,
|
|
2073
|
+
b
|
|
2074
|
+
);
|
|
2075
|
+
else {
|
|
2076
|
+
var w = g;
|
|
2077
|
+
u || (w = Pi(w));
|
|
2078
|
+
var T = w === "defaultValue" || w === "defaultChecked";
|
|
2079
|
+
if (b == null && !l && !T)
|
|
2080
|
+
if (a[g] = null, w === "value" || w === "checked") {
|
|
2081
|
+
let m = (
|
|
2082
|
+
/** @type {HTMLInputElement} */
|
|
2083
|
+
t
|
|
2084
|
+
);
|
|
2085
|
+
const y = e === void 0;
|
|
2086
|
+
if (w === "value") {
|
|
2087
|
+
let E = m.defaultValue;
|
|
2088
|
+
m.removeAttribute(w), m.defaultValue = E, m.value = m.__value = y ? E : null;
|
|
2089
|
+
} else {
|
|
2090
|
+
let E = m.defaultChecked;
|
|
2091
|
+
m.removeAttribute(w), m.defaultChecked = E, m.checked = y ? E : !1;
|
|
2092
|
+
}
|
|
2093
|
+
} else
|
|
2094
|
+
t.removeAttribute(g);
|
|
2095
|
+
else T || _.includes(w) && (l || typeof b != "string") ? (t[w] = b, w in a && (a[w] = P)) : typeof b != "function" && _r(t, w, b);
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
return s;
|
|
2100
|
+
}
|
|
2101
|
+
function mf(t, e, r = [], n = [], i, f = !1, a = !1) {
|
|
2102
|
+
kr(r, n, (l) => {
|
|
2103
|
+
var u = void 0, s = {}, o = t.nodeName === "SELECT", v = !1;
|
|
2104
|
+
if (ge(() => {
|
|
2105
|
+
var p = e(...l.map(F)), c = ji(
|
|
2106
|
+
t,
|
|
2107
|
+
u,
|
|
2108
|
+
p,
|
|
2109
|
+
i,
|
|
2110
|
+
f,
|
|
2111
|
+
a
|
|
2112
|
+
);
|
|
2113
|
+
v && o && "value" in p && Me(
|
|
2114
|
+
/** @type {HTMLSelectElement} */
|
|
2115
|
+
t,
|
|
2116
|
+
p.value
|
|
2117
|
+
);
|
|
2118
|
+
for (let h of Object.getOwnPropertySymbols(s))
|
|
2119
|
+
p[h] || K(s[h]);
|
|
2120
|
+
for (let h of Object.getOwnPropertySymbols(p)) {
|
|
2121
|
+
var d = p[h];
|
|
2122
|
+
h.description === Pn && (!u || d !== u[h]) && (s[h] && K(s[h]), s[h] = Nt(() => ki(t, () => d))), c[h] = d;
|
|
2123
|
+
}
|
|
2124
|
+
u = c;
|
|
2125
|
+
}), o) {
|
|
2126
|
+
var _ = (
|
|
2127
|
+
/** @type {HTMLSelectElement} */
|
|
2128
|
+
t
|
|
2129
|
+
);
|
|
2130
|
+
Be(() => {
|
|
2131
|
+
Me(
|
|
2132
|
+
_,
|
|
2133
|
+
/** @type {Record<string | symbol, any>} */
|
|
2134
|
+
u.value,
|
|
2135
|
+
!0
|
|
2136
|
+
), Di(_);
|
|
2137
|
+
});
|
|
2138
|
+
}
|
|
2139
|
+
v = !0;
|
|
2140
|
+
});
|
|
2141
|
+
}
|
|
2142
|
+
function We(t) {
|
|
2143
|
+
return (
|
|
2144
|
+
/** @type {Record<string | symbol, unknown>} **/
|
|
2145
|
+
// @ts-expect-error
|
|
2146
|
+
t.__attributes ?? (t.__attributes = {
|
|
2147
|
+
[fn]: t.nodeName.includes("-"),
|
|
2148
|
+
[an]: t.namespaceURI === On
|
|
2149
|
+
})
|
|
2150
|
+
);
|
|
2151
|
+
}
|
|
2152
|
+
var dr = /* @__PURE__ */ new Map();
|
|
2153
|
+
function sn(t) {
|
|
2154
|
+
var e = t.getAttribute("is") || t.nodeName, r = dr.get(e);
|
|
2155
|
+
if (r) return r;
|
|
2156
|
+
dr.set(e, r = []);
|
|
2157
|
+
for (var n, i = t, f = Element.prototype; f !== i; ) {
|
|
2158
|
+
n = mr(i);
|
|
2159
|
+
for (var a in n)
|
|
2160
|
+
n[a].set && r.push(a);
|
|
2161
|
+
i = Fe(i);
|
|
2162
|
+
}
|
|
2163
|
+
return r;
|
|
2164
|
+
}
|
|
2165
|
+
const Ui = () => performance.now(), J = {
|
|
2166
|
+
// don't access requestAnimationFrame eagerly outside method
|
|
2167
|
+
// this allows basic testing of user code without JSDOM
|
|
2168
|
+
// bunder will eval and remove ternary when the user's app is built
|
|
2169
|
+
tick: (
|
|
2170
|
+
/** @param {any} _ */
|
|
2171
|
+
(t) => requestAnimationFrame(t)
|
|
2172
|
+
),
|
|
2173
|
+
now: () => Ui(),
|
|
2174
|
+
tasks: /* @__PURE__ */ new Set()
|
|
2175
|
+
};
|
|
2176
|
+
function un() {
|
|
2177
|
+
const t = J.now();
|
|
2178
|
+
J.tasks.forEach((e) => {
|
|
2179
|
+
e.c(t) || (J.tasks.delete(e), e.f());
|
|
2180
|
+
}), J.tasks.size !== 0 && J.tick(un);
|
|
2181
|
+
}
|
|
2182
|
+
function qi(t) {
|
|
2183
|
+
let e;
|
|
2184
|
+
return J.tasks.size === 0 && J.tick(un), {
|
|
2185
|
+
promise: new Promise((r) => {
|
|
2186
|
+
J.tasks.add(e = { c: t, f: r });
|
|
2187
|
+
}),
|
|
2188
|
+
abort() {
|
|
2189
|
+
J.tasks.delete(e);
|
|
2190
|
+
}
|
|
2191
|
+
};
|
|
2192
|
+
}
|
|
2193
|
+
function ee(t, e) {
|
|
2194
|
+
It(() => {
|
|
2195
|
+
t.dispatchEvent(new CustomEvent(e));
|
|
2196
|
+
});
|
|
2197
|
+
}
|
|
2198
|
+
function Vi(t) {
|
|
2199
|
+
if (t === "float") return "cssFloat";
|
|
2200
|
+
if (t === "offset") return "cssOffset";
|
|
2201
|
+
if (t.startsWith("--")) return t;
|
|
2202
|
+
const e = t.split("-");
|
|
2203
|
+
return e.length === 1 ? e[0] : e[0] + e.slice(1).map(
|
|
2204
|
+
/** @param {any} word */
|
|
2205
|
+
(r) => r[0].toUpperCase() + r.slice(1)
|
|
2206
|
+
).join("");
|
|
2207
|
+
}
|
|
2208
|
+
function pr(t) {
|
|
2209
|
+
const e = {}, r = t.split(";");
|
|
2210
|
+
for (const n of r) {
|
|
2211
|
+
const [i, f] = n.split(":");
|
|
2212
|
+
if (!i || f === void 0) break;
|
|
2213
|
+
const a = Vi(i.trim());
|
|
2214
|
+
e[a] = f.trim();
|
|
2215
|
+
}
|
|
2216
|
+
return e;
|
|
2217
|
+
}
|
|
2218
|
+
const Bi = (t) => t;
|
|
2219
|
+
function Af(t, e, r, n) {
|
|
2220
|
+
var i = (t & An) !== 0, f = "both", a, l = e.inert, u = e.style.overflow, s, o;
|
|
2221
|
+
function v() {
|
|
2222
|
+
return It(() => a ?? (a = r()(e, (n == null ? void 0 : n()) ?? /** @type {P} */
|
|
2223
|
+
{}, {
|
|
2224
|
+
direction: f
|
|
2225
|
+
})));
|
|
2226
|
+
}
|
|
2227
|
+
var _ = {
|
|
2228
|
+
is_global: i,
|
|
2229
|
+
in() {
|
|
2230
|
+
e.inert = l, ee(e, "introstart"), s = Le(e, v(), o, 1, () => {
|
|
2231
|
+
ee(e, "introend"), s == null || s.abort(), s = a = void 0, e.style.overflow = u;
|
|
2232
|
+
});
|
|
2233
|
+
},
|
|
2234
|
+
out(h) {
|
|
2235
|
+
e.inert = !0, ee(e, "outrostart"), o = Le(e, v(), s, 0, () => {
|
|
2236
|
+
ee(e, "outroend"), h == null || h();
|
|
2237
|
+
});
|
|
2238
|
+
},
|
|
2239
|
+
stop: () => {
|
|
2240
|
+
s == null || s.abort(), o == null || o.abort();
|
|
2241
|
+
}
|
|
2242
|
+
}, p = (
|
|
2243
|
+
/** @type {Effect} */
|
|
2244
|
+
S
|
|
2245
|
+
);
|
|
2246
|
+
if ((p.transitions ?? (p.transitions = [])).push(_), tn) {
|
|
2247
|
+
var c = i;
|
|
2248
|
+
if (!c) {
|
|
2249
|
+
for (var d = (
|
|
2250
|
+
/** @type {Effect | null} */
|
|
2251
|
+
p.parent
|
|
2252
|
+
); d && (d.f & pe) !== 0; )
|
|
2253
|
+
for (; (d = d.parent) && (d.f & ht) === 0; )
|
|
2254
|
+
;
|
|
2255
|
+
c = !d || (d.f & de) !== 0;
|
|
2256
|
+
}
|
|
2257
|
+
c && Be(() => {
|
|
2258
|
+
Qt(() => _.in());
|
|
2259
|
+
});
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2262
|
+
function Le(t, e, r, n, i) {
|
|
2263
|
+
var f = n === 1;
|
|
2264
|
+
if (bt(e)) {
|
|
2265
|
+
var a, l = !1;
|
|
2266
|
+
return zt(() => {
|
|
2267
|
+
if (!l) {
|
|
2268
|
+
var h = e({ direction: f ? "in" : "out" });
|
|
2269
|
+
a = Le(t, h, r, n, i);
|
|
2270
|
+
}
|
|
2271
|
+
}), {
|
|
2272
|
+
abort: () => {
|
|
2273
|
+
l = !0, a == null || a.abort();
|
|
2274
|
+
},
|
|
2275
|
+
deactivate: () => a.deactivate(),
|
|
2276
|
+
reset: () => a.reset(),
|
|
2277
|
+
t: () => a.t()
|
|
2278
|
+
};
|
|
2279
|
+
}
|
|
2280
|
+
if (r == null || r.deactivate(), !(e != null && e.duration))
|
|
2281
|
+
return i(), {
|
|
2282
|
+
abort: Mt,
|
|
2283
|
+
deactivate: Mt,
|
|
2284
|
+
reset: Mt,
|
|
2285
|
+
t: () => n
|
|
2286
|
+
};
|
|
2287
|
+
const { delay: u = 0, css: s, tick: o, easing: v = Bi } = e;
|
|
2288
|
+
var _ = [];
|
|
2289
|
+
if (f && r === void 0 && (o && o(0, 1), s)) {
|
|
2290
|
+
var p = pr(s(0, 1));
|
|
2291
|
+
_.push(p, p);
|
|
2292
|
+
}
|
|
2293
|
+
var c = () => 1 - n, d = t.animate(_, { duration: u, fill: "forwards" });
|
|
2294
|
+
return d.onfinish = () => {
|
|
2295
|
+
d.cancel();
|
|
2296
|
+
var h = (r == null ? void 0 : r.t()) ?? 1 - n;
|
|
2297
|
+
r == null || r.abort();
|
|
2298
|
+
var w = n - h, T = (
|
|
2299
|
+
/** @type {number} */
|
|
2300
|
+
e.duration * Math.abs(w)
|
|
2301
|
+
), g = [];
|
|
2302
|
+
if (T > 0) {
|
|
2303
|
+
var b = !1;
|
|
2304
|
+
if (s)
|
|
2305
|
+
for (var m = Math.ceil(T / 16.666666666666668), y = 0; y <= m; y += 1) {
|
|
2306
|
+
var E = h + w * v(y / m), M = pr(s(E, 1 - E));
|
|
2307
|
+
g.push(M), b || (b = M.overflow === "hidden");
|
|
2308
|
+
}
|
|
2309
|
+
b && (t.style.overflow = "hidden"), c = () => {
|
|
2310
|
+
var B = (
|
|
2311
|
+
/** @type {number} */
|
|
2312
|
+
/** @type {globalThis.Animation} */
|
|
2313
|
+
d.currentTime
|
|
2314
|
+
);
|
|
2315
|
+
return h + w * v(B / T);
|
|
2316
|
+
}, o && qi(() => {
|
|
2317
|
+
if (d.playState !== "running") return !1;
|
|
2318
|
+
var B = c();
|
|
2319
|
+
return o(B, 1 - B), !0;
|
|
2320
|
+
});
|
|
2321
|
+
}
|
|
2322
|
+
d = t.animate(g, { duration: T, fill: "forwards" }), d.onfinish = () => {
|
|
2323
|
+
c = () => n, o == null || o(n, 1 - n), i();
|
|
2324
|
+
};
|
|
2325
|
+
}, {
|
|
2326
|
+
abort: () => {
|
|
2327
|
+
d && (d.cancel(), d.effect = null, d.onfinish = Mt);
|
|
2328
|
+
},
|
|
2329
|
+
deactivate: () => {
|
|
2330
|
+
i = Mt;
|
|
2331
|
+
},
|
|
2332
|
+
reset: () => {
|
|
2333
|
+
n === 0 && (o == null || o(1, 0));
|
|
2334
|
+
},
|
|
2335
|
+
t: () => c()
|
|
2336
|
+
};
|
|
2337
|
+
}
|
|
2338
|
+
function Sf(t = !1) {
|
|
2339
|
+
const e = (
|
|
2340
|
+
/** @type {ComponentContextLegacy} */
|
|
2341
|
+
C
|
|
2342
|
+
), r = e.l.u;
|
|
2343
|
+
if (!r) return;
|
|
2344
|
+
let n = () => wi(e.s);
|
|
2345
|
+
if (t) {
|
|
2346
|
+
let i = 0, f = (
|
|
2347
|
+
/** @type {Record<string, any>} */
|
|
2348
|
+
{}
|
|
2349
|
+
);
|
|
2350
|
+
const a = /* @__PURE__ */ Zt(() => {
|
|
2351
|
+
let l = !1;
|
|
2352
|
+
const u = e.s;
|
|
2353
|
+
for (const s in u)
|
|
2354
|
+
u[s] !== f[s] && (f[s] = u[s], l = !0);
|
|
2355
|
+
return l && i++, i;
|
|
2356
|
+
});
|
|
2357
|
+
n = () => F(a);
|
|
2358
|
+
}
|
|
2359
|
+
r.b.length && oi(() => {
|
|
2360
|
+
hr(e, n), Ne(r.b);
|
|
2361
|
+
}), fr(() => {
|
|
2362
|
+
const i = Qt(() => r.m.map(In));
|
|
2363
|
+
return () => {
|
|
2364
|
+
for (const f of i)
|
|
2365
|
+
typeof f == "function" && f();
|
|
2366
|
+
};
|
|
2367
|
+
}), r.a.length && fr(() => {
|
|
2368
|
+
hr(e, n), Ne(r.a);
|
|
2369
|
+
});
|
|
2370
|
+
}
|
|
2371
|
+
function hr(t, e) {
|
|
2372
|
+
if (t.l.s)
|
|
2373
|
+
for (const r of t.l.s) F(r);
|
|
2374
|
+
e();
|
|
2375
|
+
}
|
|
2376
|
+
let re = !1;
|
|
2377
|
+
function Hi(t) {
|
|
2378
|
+
var e = re;
|
|
2379
|
+
try {
|
|
2380
|
+
return re = !1, [t(), re];
|
|
2381
|
+
} finally {
|
|
2382
|
+
re = e;
|
|
2383
|
+
}
|
|
2384
|
+
}
|
|
2385
|
+
const Yi = {
|
|
2386
|
+
get(t, e) {
|
|
2387
|
+
if (!t.exclude.includes(e))
|
|
2388
|
+
return t.props[e];
|
|
2389
|
+
},
|
|
2390
|
+
set(t, e) {
|
|
2391
|
+
return !1;
|
|
2392
|
+
},
|
|
2393
|
+
getOwnPropertyDescriptor(t, e) {
|
|
2394
|
+
if (!t.exclude.includes(e) && e in t.props)
|
|
2395
|
+
return {
|
|
2396
|
+
enumerable: !0,
|
|
2397
|
+
configurable: !0,
|
|
2398
|
+
value: t.props[e]
|
|
2399
|
+
};
|
|
2400
|
+
},
|
|
2401
|
+
has(t, e) {
|
|
2402
|
+
return t.exclude.includes(e) ? !1 : e in t.props;
|
|
2403
|
+
},
|
|
2404
|
+
ownKeys(t) {
|
|
2405
|
+
return Reflect.ownKeys(t.props).filter((e) => !t.exclude.includes(e));
|
|
2406
|
+
}
|
|
2407
|
+
};
|
|
2408
|
+
// @__NO_SIDE_EFFECTS__
|
|
2409
|
+
function Tf(t, e, r) {
|
|
2410
|
+
return new Proxy(
|
|
2411
|
+
{ props: t, exclude: e },
|
|
2412
|
+
Yi
|
|
2413
|
+
);
|
|
2414
|
+
}
|
|
2415
|
+
const Wi = {
|
|
2416
|
+
get(t, e) {
|
|
2417
|
+
let r = t.props.length;
|
|
2418
|
+
for (; r--; ) {
|
|
2419
|
+
let n = t.props[r];
|
|
2420
|
+
if (bt(n) && (n = n()), typeof n == "object" && n !== null && e in n) return n[e];
|
|
2421
|
+
}
|
|
2422
|
+
},
|
|
2423
|
+
set(t, e, r) {
|
|
2424
|
+
let n = t.props.length;
|
|
2425
|
+
for (; n--; ) {
|
|
2426
|
+
let i = t.props[n];
|
|
2427
|
+
bt(i) && (i = i());
|
|
2428
|
+
const f = mt(i, e);
|
|
2429
|
+
if (f && f.set)
|
|
2430
|
+
return f.set(r), !0;
|
|
2431
|
+
}
|
|
2432
|
+
return !1;
|
|
2433
|
+
},
|
|
2434
|
+
getOwnPropertyDescriptor(t, e) {
|
|
2435
|
+
let r = t.props.length;
|
|
2436
|
+
for (; r--; ) {
|
|
2437
|
+
let n = t.props[r];
|
|
2438
|
+
if (bt(n) && (n = n()), typeof n == "object" && n !== null && e in n) {
|
|
2439
|
+
const i = mt(n, e);
|
|
2440
|
+
return i && !i.configurable && (i.configurable = !0), i;
|
|
2441
|
+
}
|
|
2442
|
+
}
|
|
2443
|
+
},
|
|
2444
|
+
has(t, e) {
|
|
2445
|
+
if (e === Q || e === Tr) return !1;
|
|
2446
|
+
for (let r of t.props)
|
|
2447
|
+
if (bt(r) && (r = r()), r != null && e in r) return !0;
|
|
2448
|
+
return !1;
|
|
2449
|
+
},
|
|
2450
|
+
ownKeys(t) {
|
|
2451
|
+
const e = [];
|
|
2452
|
+
for (let r of t.props)
|
|
2453
|
+
if (bt(r) && (r = r()), !!r) {
|
|
2454
|
+
for (const n in r)
|
|
2455
|
+
e.includes(n) || e.push(n);
|
|
2456
|
+
for (const n of Object.getOwnPropertySymbols(r))
|
|
2457
|
+
e.includes(n) || e.push(n);
|
|
2458
|
+
}
|
|
2459
|
+
return e;
|
|
2460
|
+
}
|
|
2461
|
+
};
|
|
2462
|
+
function Of(...t) {
|
|
2463
|
+
return new Proxy({ props: t }, Wi);
|
|
2464
|
+
}
|
|
2465
|
+
function Pf(t, e, r, n) {
|
|
2466
|
+
var g;
|
|
2467
|
+
var i = !Gt || (r & bn) !== 0, f = (r & En) !== 0, a = (r & mn) !== 0, l = (
|
|
2468
|
+
/** @type {V} */
|
|
2469
|
+
n
|
|
2470
|
+
), u = !0, s = () => (u && (u = !1, l = a ? Qt(
|
|
2471
|
+
/** @type {() => V} */
|
|
2472
|
+
n
|
|
2473
|
+
) : (
|
|
2474
|
+
/** @type {V} */
|
|
2475
|
+
n
|
|
2476
|
+
)), l), o;
|
|
2477
|
+
if (f) {
|
|
2478
|
+
var v = Q in t || Tr in t;
|
|
2479
|
+
o = ((g = mt(t, e)) == null ? void 0 : g.set) ?? (v && e in t ? (b) => t[e] = b : void 0);
|
|
2480
|
+
}
|
|
2481
|
+
var _, p = !1;
|
|
2482
|
+
f ? [_, p] = Hi(() => (
|
|
2483
|
+
/** @type {V} */
|
|
2484
|
+
t[e]
|
|
2485
|
+
)) : _ = /** @type {V} */
|
|
2486
|
+
t[e], _ === void 0 && n !== void 0 && (_ = s(), o && (i && Un(), o(_)));
|
|
2487
|
+
var c;
|
|
2488
|
+
if (i ? c = () => {
|
|
2489
|
+
var b = (
|
|
2490
|
+
/** @type {V} */
|
|
2491
|
+
t[e]
|
|
2492
|
+
);
|
|
2493
|
+
return b === void 0 ? s() : (u = !0, b);
|
|
2494
|
+
} : c = () => {
|
|
2495
|
+
var b = (
|
|
2496
|
+
/** @type {V} */
|
|
2497
|
+
t[e]
|
|
2498
|
+
);
|
|
2499
|
+
return b !== void 0 && (l = /** @type {V} */
|
|
2500
|
+
void 0), b === void 0 ? l : b;
|
|
2501
|
+
}, i && (r & yn) === 0)
|
|
2502
|
+
return c;
|
|
2503
|
+
if (o) {
|
|
2504
|
+
var d = t.$$legacy;
|
|
2505
|
+
return (
|
|
2506
|
+
/** @type {() => V} */
|
|
2507
|
+
(function(b, m) {
|
|
2508
|
+
return arguments.length > 0 ? ((!i || !m || d || p) && o(m ? c() : b), b) : c();
|
|
2509
|
+
})
|
|
2510
|
+
);
|
|
2511
|
+
}
|
|
2512
|
+
var h = !1, w = ((r & gn) !== 0 ? Zt : qe)(() => (h = !1, c()));
|
|
2513
|
+
f && F(w);
|
|
2514
|
+
var T = (
|
|
2515
|
+
/** @type {Effect} */
|
|
2516
|
+
S
|
|
2517
|
+
);
|
|
2518
|
+
return (
|
|
2519
|
+
/** @type {() => V} */
|
|
2520
|
+
(function(b, m) {
|
|
2521
|
+
if (arguments.length > 0) {
|
|
2522
|
+
const y = m ? F(w) : i && f ? Et(b) : b;
|
|
2523
|
+
return X(w, y), h = !0, l !== void 0 && (l = y), b;
|
|
2524
|
+
}
|
|
2525
|
+
return gt && h || (T.f & wt) !== 0 ? w.v : F(w);
|
|
2526
|
+
})
|
|
2527
|
+
);
|
|
2528
|
+
}
|
|
2529
|
+
const Gi = (t) => t;
|
|
2530
|
+
function ln(t) {
|
|
2531
|
+
const e = t - 1;
|
|
2532
|
+
return e * e * e + 1;
|
|
2533
|
+
}
|
|
2534
|
+
function wr(t) {
|
|
2535
|
+
const e = typeof t == "string" && t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);
|
|
2536
|
+
return e ? [parseFloat(e[1]), e[2] || "px"] : [
|
|
2537
|
+
/** @type {number} */
|
|
2538
|
+
t,
|
|
2539
|
+
"px"
|
|
2540
|
+
];
|
|
2541
|
+
}
|
|
2542
|
+
function Cf(t, { delay: e = 0, duration: r = 400, easing: n = Gi } = {}) {
|
|
2543
|
+
const i = +getComputedStyle(t).opacity;
|
|
2544
|
+
return {
|
|
2545
|
+
delay: e,
|
|
2546
|
+
duration: r,
|
|
2547
|
+
easing: n,
|
|
2548
|
+
css: (f) => `opacity: ${f * i}`
|
|
2549
|
+
};
|
|
2550
|
+
}
|
|
2551
|
+
function Nf(t, { delay: e = 0, duration: r = 400, easing: n = ln, x: i = 0, y: f = 0, opacity: a = 0 } = {}) {
|
|
2552
|
+
const l = getComputedStyle(t), u = +l.opacity, s = l.transform === "none" ? "" : l.transform, o = u * (1 - a), [v, _] = wr(i), [p, c] = wr(f);
|
|
2553
|
+
return {
|
|
2554
|
+
delay: e,
|
|
2555
|
+
duration: r,
|
|
2556
|
+
easing: n,
|
|
2557
|
+
css: (d, h) => `
|
|
2558
|
+
transform: ${s} translate(${(1 - d) * v}${_}, ${(1 - d) * p}${c});
|
|
2559
|
+
opacity: ${u - o * h}`
|
|
2560
|
+
};
|
|
2561
|
+
}
|
|
2562
|
+
function kf(t, { delay: e = 0, duration: r = 400, easing: n = ln, axis: i = "y" } = {}) {
|
|
2563
|
+
const f = getComputedStyle(t), a = +f.opacity, l = i === "y" ? "height" : "width", u = parseFloat(f[l]), s = i === "y" ? ["top", "bottom"] : ["left", "right"], o = s.map(
|
|
2564
|
+
(w) => (
|
|
2565
|
+
/** @type {'Left' | 'Right' | 'Top' | 'Bottom'} */
|
|
2566
|
+
`${w[0].toUpperCase()}${w.slice(1)}`
|
|
2567
|
+
)
|
|
2568
|
+
), v = parseFloat(f[`padding${o[0]}`]), _ = parseFloat(f[`padding${o[1]}`]), p = parseFloat(f[`margin${o[0]}`]), c = parseFloat(f[`margin${o[1]}`]), d = parseFloat(
|
|
2569
|
+
f[`border${o[0]}Width`]
|
|
2570
|
+
), h = parseFloat(
|
|
2571
|
+
f[`border${o[1]}Width`]
|
|
2572
|
+
);
|
|
2573
|
+
return {
|
|
2574
|
+
delay: e,
|
|
2575
|
+
duration: r,
|
|
2576
|
+
easing: n,
|
|
2577
|
+
css: (w) => `overflow: hidden;opacity: ${Math.min(w * 20, 1) * a};${l}: ${w * u}px;padding-${s[0]}: ${w * v}px;padding-${s[1]}: ${w * _}px;margin-${s[0]}: ${w * p}px;margin-${s[1]}: ${w * c}px;border-${s[0]}-width: ${w * d}px;border-${s[1]}-width: ${w * h}px;min-${l}: 0`
|
|
2578
|
+
};
|
|
2579
|
+
}
|
|
2580
|
+
export {
|
|
2581
|
+
Q as $,
|
|
2582
|
+
X as A,
|
|
2583
|
+
_f as B,
|
|
2584
|
+
Fi as C,
|
|
2585
|
+
qe as D,
|
|
2586
|
+
vf as E,
|
|
2587
|
+
mf as F,
|
|
2588
|
+
ef as G,
|
|
2589
|
+
ge as H,
|
|
2590
|
+
pe as I,
|
|
2591
|
+
Nt as J,
|
|
2592
|
+
K,
|
|
2593
|
+
Mt as L,
|
|
2594
|
+
Xt as M,
|
|
2595
|
+
N,
|
|
2596
|
+
Lr as O,
|
|
2597
|
+
Br as P,
|
|
2598
|
+
zi as Q,
|
|
2599
|
+
qt as R,
|
|
2600
|
+
S,
|
|
2601
|
+
Ye as T,
|
|
2602
|
+
hf as U,
|
|
2603
|
+
Be as V,
|
|
2604
|
+
af as W,
|
|
2605
|
+
jr as X,
|
|
2606
|
+
mt as Y,
|
|
2607
|
+
Dr as Z,
|
|
2608
|
+
zt as _,
|
|
2609
|
+
uf as a,
|
|
2610
|
+
Tf as a0,
|
|
2611
|
+
bf as a1,
|
|
2612
|
+
tf as a2,
|
|
2613
|
+
Zi as a3,
|
|
2614
|
+
Of as a4,
|
|
2615
|
+
Cf as a5,
|
|
2616
|
+
kf as a6,
|
|
2617
|
+
Ef as a7,
|
|
2618
|
+
Di as a8,
|
|
2619
|
+
Me as a9,
|
|
2620
|
+
gf as b,
|
|
2621
|
+
df as c,
|
|
2622
|
+
pf as d,
|
|
2623
|
+
Qi as e,
|
|
2624
|
+
nf as f,
|
|
2625
|
+
Ji as g,
|
|
2626
|
+
wi as h,
|
|
2627
|
+
Sf as i,
|
|
2628
|
+
cf as j,
|
|
2629
|
+
yf as k,
|
|
2630
|
+
sf as l,
|
|
2631
|
+
rf as m,
|
|
2632
|
+
Ri as n,
|
|
2633
|
+
F as o,
|
|
2634
|
+
Pf as p,
|
|
2635
|
+
Li as q,
|
|
2636
|
+
_r as r,
|
|
2637
|
+
ff as s,
|
|
2638
|
+
lf as t,
|
|
2639
|
+
Qt as u,
|
|
2640
|
+
wf as v,
|
|
2641
|
+
of as w,
|
|
2642
|
+
Af as x,
|
|
2643
|
+
Nf as y,
|
|
2644
|
+
ei as z
|
|
2645
|
+
};
|