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