@pie-players/pie-section-player-tools-event-debugger 0.3.4 → 0.3.7
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/EventPanel.svelte +156 -53
- package/dist/section-player-tools-event-debugger.js +1242 -1201
- package/package.json +3 -3
|
@@ -2,36 +2,36 @@ var Ds = Object.defineProperty;
|
|
|
2
2
|
var Kr = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var u = (e, t, n) => (
|
|
8
|
-
var
|
|
9
|
-
typeof window < "u" && ((
|
|
10
|
-
const
|
|
11
|
-
var
|
|
5
|
+
var zs = (e, t, n) => t in e ? Ds(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
+
var z = (e, t, n) => zs(e, typeof t != "symbol" ? t + "" : t, n), sr = (e, t, n) => t.has(e) || Kr("Cannot " + n);
|
|
7
|
+
var u = (e, t, n) => (sr(e, t, "read from private field"), n ? n.call(e) : t.get(e)), x = (e, t, n) => t.has(e) ? Kr("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), $ = (e, t, n, r) => (sr(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), L = (e, t, n) => (sr(e, t, "access private method"), n);
|
|
8
|
+
var di;
|
|
9
|
+
typeof window < "u" && ((di = window.__svelte ?? (window.__svelte = {})).v ?? (di.v = /* @__PURE__ */ new Set())).add("5");
|
|
10
|
+
const Ls = 1, Ps = 2, Fs = 16, Hs = 1, js = 2, vi = "[", xr = "[!", Gr = "[?", Er = "]", Yt = {}, W = /* @__PURE__ */ Symbol(), hi = "http://www.w3.org/1999/xhtml", lr = !1;
|
|
11
|
+
var Sr = Array.isArray, Vs = Array.prototype.indexOf, Wt = Array.prototype.includes, Hn = Array.from, Nn = Object.keys, On = Object.defineProperty, Ot = Object.getOwnPropertyDescriptor, Bs = Object.getOwnPropertyDescriptors, Ys = Object.prototype, Ws = Array.prototype, pi = Object.getPrototypeOf, Zr = Object.isExtensible;
|
|
12
12
|
const qs = () => {
|
|
13
13
|
};
|
|
14
14
|
function Us(e) {
|
|
15
15
|
for (var t = 0; t < e.length; t++)
|
|
16
16
|
e[t]();
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function _i() {
|
|
19
19
|
var e, t, n = new Promise((r, i) => {
|
|
20
20
|
e = r, t = i;
|
|
21
21
|
});
|
|
22
22
|
return { promise: n, resolve: e, reject: t };
|
|
23
23
|
}
|
|
24
|
-
const J = 2,
|
|
24
|
+
const J = 2, Zt = 4, qt = 8, Cr = 1 << 24, ct = 16, Ie = 32, dt = 64, ar = 128, me = 512, U = 1024, X = 2048, Me = 4096, Q = 8192, je = 16384, Mt = 32768, Ut = 65536, Qr = 1 << 17, Xs = 1 << 18, At = 1 << 19, Js = 1 << 20, Ge = 1 << 25, kt = 65536, ur = 1 << 21, kr = 1 << 22, ot = 1 << 23, or = /* @__PURE__ */ Symbol("$state"), Ks = /* @__PURE__ */ Symbol("legacy props"), Gs = /* @__PURE__ */ Symbol(""), _t = new class extends Error {
|
|
25
25
|
constructor() {
|
|
26
26
|
super(...arguments);
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
z(this, "name", "StaleReactionError");
|
|
28
|
+
z(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
29
29
|
}
|
|
30
30
|
}(), Zs = (
|
|
31
31
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
32
32
|
!!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml")
|
|
33
|
-
), jn = 3,
|
|
34
|
-
function
|
|
33
|
+
), jn = 3, mn = 8;
|
|
34
|
+
function Tr(e) {
|
|
35
35
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
36
36
|
}
|
|
37
37
|
function Qs() {
|
|
@@ -73,73 +73,73 @@ function Vn(e) {
|
|
|
73
73
|
function fo() {
|
|
74
74
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
75
75
|
}
|
|
76
|
-
let
|
|
77
|
-
function
|
|
78
|
-
|
|
76
|
+
let k = !1;
|
|
77
|
+
function Ze(e) {
|
|
78
|
+
k = e;
|
|
79
79
|
}
|
|
80
|
-
let
|
|
81
|
-
function
|
|
80
|
+
let S;
|
|
81
|
+
function ce(e) {
|
|
82
82
|
if (e === null)
|
|
83
|
-
throw Vn(),
|
|
84
|
-
return
|
|
83
|
+
throw Vn(), Yt;
|
|
84
|
+
return S = e;
|
|
85
85
|
}
|
|
86
86
|
function Bn() {
|
|
87
|
-
return
|
|
87
|
+
return ce(/* @__PURE__ */ Be(S));
|
|
88
88
|
}
|
|
89
89
|
function T(e) {
|
|
90
|
-
if (
|
|
91
|
-
if (/* @__PURE__ */
|
|
92
|
-
throw Vn(),
|
|
93
|
-
|
|
90
|
+
if (k) {
|
|
91
|
+
if (/* @__PURE__ */ Be(S) !== null)
|
|
92
|
+
throw Vn(), Yt;
|
|
93
|
+
S = e;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
function co(e = 1) {
|
|
97
|
-
if (
|
|
98
|
-
for (var t = e, n =
|
|
97
|
+
if (k) {
|
|
98
|
+
for (var t = e, n = S; t--; )
|
|
99
99
|
n = /** @type {TemplateNode} */
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
|
|
100
|
+
/* @__PURE__ */ Be(n);
|
|
101
|
+
S = n;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
for (var t = 0, n =
|
|
106
|
-
if (n.nodeType ===
|
|
104
|
+
function Dn(e = !0) {
|
|
105
|
+
for (var t = 0, n = S; ; ) {
|
|
106
|
+
if (n.nodeType === mn) {
|
|
107
107
|
var r = (
|
|
108
108
|
/** @type {Comment} */
|
|
109
109
|
n.data
|
|
110
110
|
);
|
|
111
|
-
if (r ===
|
|
111
|
+
if (r === Er) {
|
|
112
112
|
if (t === 0) return n;
|
|
113
113
|
t -= 1;
|
|
114
|
-
} else (r ===
|
|
114
|
+
} else (r === vi || r === xr || // "[1", "[2", etc. for if blocks
|
|
115
115
|
r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
|
|
116
116
|
}
|
|
117
117
|
var i = (
|
|
118
118
|
/** @type {TemplateNode} */
|
|
119
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ Be(n)
|
|
120
120
|
);
|
|
121
121
|
e && n.remove(), n = i;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
if (!e || e.nodeType !==
|
|
126
|
-
throw Vn(),
|
|
124
|
+
function gi(e) {
|
|
125
|
+
if (!e || e.nodeType !== mn)
|
|
126
|
+
throw Vn(), Yt;
|
|
127
127
|
return (
|
|
128
128
|
/** @type {Comment} */
|
|
129
129
|
e.data
|
|
130
130
|
);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function mi(e) {
|
|
133
133
|
return e === this.v;
|
|
134
134
|
}
|
|
135
135
|
function vo(e, t) {
|
|
136
136
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function wi(e) {
|
|
139
139
|
return !vo(e, this.v);
|
|
140
140
|
}
|
|
141
141
|
let ho = !1, te = null;
|
|
142
|
-
function
|
|
142
|
+
function Xt(e) {
|
|
143
143
|
te = e;
|
|
144
144
|
}
|
|
145
145
|
function Yn(e, t = !1, n) {
|
|
@@ -161,44 +161,44 @@ function Wn(e) {
|
|
|
161
161
|
if (n !== null) {
|
|
162
162
|
t.e = null;
|
|
163
163
|
for (var r of n)
|
|
164
|
-
|
|
164
|
+
Yi(r);
|
|
165
165
|
}
|
|
166
166
|
return e !== void 0 && (t.x = e), t.i = !0, te = t.p, e ?? /** @type {T} */
|
|
167
167
|
{};
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function bi() {
|
|
170
170
|
return !0;
|
|
171
171
|
}
|
|
172
|
-
let
|
|
173
|
-
function
|
|
174
|
-
var e =
|
|
175
|
-
|
|
172
|
+
let gt = [];
|
|
173
|
+
function yi() {
|
|
174
|
+
var e = gt;
|
|
175
|
+
gt = [], Us(e);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
if (
|
|
179
|
-
var t =
|
|
177
|
+
function Dt(e) {
|
|
178
|
+
if (gt.length === 0 && !dn) {
|
|
179
|
+
var t = gt;
|
|
180
180
|
queueMicrotask(() => {
|
|
181
|
-
t ===
|
|
181
|
+
t === gt && yi();
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
|
-
|
|
184
|
+
gt.push(e);
|
|
185
185
|
}
|
|
186
186
|
function po() {
|
|
187
|
-
for (;
|
|
188
|
-
|
|
187
|
+
for (; gt.length > 0; )
|
|
188
|
+
yi();
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
var t =
|
|
190
|
+
function $i(e) {
|
|
191
|
+
var t = C;
|
|
192
192
|
if (t === null)
|
|
193
|
-
return E.f |=
|
|
194
|
-
if ((t.f &
|
|
193
|
+
return E.f |= ot, e;
|
|
194
|
+
if ((t.f & Mt) === 0 && (t.f & Zt) === 0)
|
|
195
195
|
throw e;
|
|
196
|
-
|
|
196
|
+
st(e, t);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function st(e, t) {
|
|
199
199
|
for (; t !== null; ) {
|
|
200
|
-
if ((t.f &
|
|
201
|
-
if ((t.f &
|
|
200
|
+
if ((t.f & ar) !== 0) {
|
|
201
|
+
if ((t.f & Mt) === 0)
|
|
202
202
|
throw e;
|
|
203
203
|
try {
|
|
204
204
|
t.b.error(e);
|
|
@@ -212,78 +212,78 @@ function it(e, t) {
|
|
|
212
212
|
throw e;
|
|
213
213
|
}
|
|
214
214
|
const _o = -7169;
|
|
215
|
-
function
|
|
215
|
+
function F(e, t) {
|
|
216
216
|
e.f = e.f & _o | t;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
219
|
-
(e.f &
|
|
218
|
+
function Mr(e) {
|
|
219
|
+
(e.f & me) !== 0 || e.deps === null ? F(e, U) : F(e, Me);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function xi(e) {
|
|
222
222
|
if (e !== null)
|
|
223
223
|
for (const t of e)
|
|
224
|
-
(t.f & J) === 0 || (t.f &
|
|
224
|
+
(t.f & J) === 0 || (t.f & kt) === 0 || (t.f ^= kt, xi(
|
|
225
225
|
/** @type {Derived} */
|
|
226
226
|
t.deps
|
|
227
227
|
));
|
|
228
228
|
}
|
|
229
|
-
function
|
|
230
|
-
(e.f & X) !== 0 ? t.add(e) : (e.f &
|
|
229
|
+
function Ei(e, t, n) {
|
|
230
|
+
(e.f & X) !== 0 ? t.add(e) : (e.f & Me) !== 0 && n.add(e), xi(e.deps), F(e, U);
|
|
231
231
|
}
|
|
232
232
|
const kn = /* @__PURE__ */ new Set();
|
|
233
|
-
let
|
|
234
|
-
var
|
|
235
|
-
const
|
|
233
|
+
let D = null, Ce = null, ie = [], qn = null, dn = !1, Jt = null, go = 1;
|
|
234
|
+
var nt, zt, bt, Lt, Pt, Ft, rt, ze, Ht, oe, fr, cr, dr, vr;
|
|
235
|
+
const Hr = class Hr {
|
|
236
236
|
constructor() {
|
|
237
237
|
x(this, oe);
|
|
238
238
|
// for debugging. TODO remove once async is stable
|
|
239
|
-
|
|
239
|
+
z(this, "id", go++);
|
|
240
240
|
/**
|
|
241
241
|
* The current values of any sources that are updated in this batch
|
|
242
242
|
* They keys of this map are identical to `this.#previous`
|
|
243
243
|
* @type {Map<Source, any>}
|
|
244
244
|
*/
|
|
245
|
-
|
|
245
|
+
z(this, "current", /* @__PURE__ */ new Map());
|
|
246
246
|
/**
|
|
247
247
|
* The values of any sources that are updated in this batch _before_ those updates took place.
|
|
248
248
|
* They keys of this map are identical to `this.#current`
|
|
249
249
|
* @type {Map<Source, any>}
|
|
250
250
|
*/
|
|
251
|
-
|
|
251
|
+
z(this, "previous", /* @__PURE__ */ new Map());
|
|
252
252
|
/**
|
|
253
253
|
* When the batch is committed (and the DOM is updated), we need to remove old branches
|
|
254
254
|
* and append new ones by calling the functions added inside (if/each/key/etc) blocks
|
|
255
255
|
* @type {Set<(batch: Batch) => void>}
|
|
256
256
|
*/
|
|
257
|
-
x(this,
|
|
257
|
+
x(this, nt, /* @__PURE__ */ new Set());
|
|
258
258
|
/**
|
|
259
259
|
* If a fork is discarded, we need to destroy any effects that are no longer needed
|
|
260
260
|
* @type {Set<(batch: Batch) => void>}
|
|
261
261
|
*/
|
|
262
|
-
x(this,
|
|
262
|
+
x(this, zt, /* @__PURE__ */ new Set());
|
|
263
263
|
/**
|
|
264
264
|
* The number of async effects that are currently in flight
|
|
265
265
|
*/
|
|
266
|
-
x(this,
|
|
266
|
+
x(this, bt, 0);
|
|
267
267
|
/**
|
|
268
268
|
* The number of async effects that are currently in flight, _not_ inside a pending boundary
|
|
269
269
|
*/
|
|
270
|
-
x(this,
|
|
270
|
+
x(this, Lt, 0);
|
|
271
271
|
/**
|
|
272
272
|
* A deferred that resolves when the batch is committed, used with `settled()`
|
|
273
273
|
* TODO replace with Promise.withResolvers once supported widely enough
|
|
274
274
|
* @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
|
|
275
275
|
*/
|
|
276
|
-
x(this,
|
|
276
|
+
x(this, Pt, null);
|
|
277
277
|
/**
|
|
278
278
|
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
279
279
|
* @type {Set<Effect>}
|
|
280
280
|
*/
|
|
281
|
-
x(this,
|
|
281
|
+
x(this, Ft, /* @__PURE__ */ new Set());
|
|
282
282
|
/**
|
|
283
283
|
* Deferred effects that are MAYBE_DIRTY
|
|
284
284
|
* @type {Set<Effect>}
|
|
285
285
|
*/
|
|
286
|
-
x(this,
|
|
286
|
+
x(this, rt, /* @__PURE__ */ new Set());
|
|
287
287
|
/**
|
|
288
288
|
* A map of branches that still exist, but will be destroyed when this batch
|
|
289
289
|
* is committed — we skip over these during `process`.
|
|
@@ -291,16 +291,16 @@ const Br = class Br {
|
|
|
291
291
|
* so they can be rescheduled if the branch survives.
|
|
292
292
|
* @type {Map<Effect, { d: Effect[], m: Effect[] }>}
|
|
293
293
|
*/
|
|
294
|
-
x(this,
|
|
295
|
-
|
|
296
|
-
x(this,
|
|
294
|
+
x(this, ze, /* @__PURE__ */ new Map());
|
|
295
|
+
z(this, "is_fork", !1);
|
|
296
|
+
x(this, Ht, !1);
|
|
297
297
|
}
|
|
298
298
|
/**
|
|
299
299
|
* Add an effect to the #skipped_branches map and reset its children
|
|
300
300
|
* @param {Effect} effect
|
|
301
301
|
*/
|
|
302
302
|
skip_effect(t) {
|
|
303
|
-
u(this,
|
|
303
|
+
u(this, ze).has(t) || u(this, ze).set(t, { d: [], m: [] });
|
|
304
304
|
}
|
|
305
305
|
/**
|
|
306
306
|
* Remove an effect from the #skipped_branches map and reschedule
|
|
@@ -308,13 +308,13 @@ const Br = class Br {
|
|
|
308
308
|
* @param {Effect} effect
|
|
309
309
|
*/
|
|
310
310
|
unskip_effect(t) {
|
|
311
|
-
var n = u(this,
|
|
311
|
+
var n = u(this, ze).get(t);
|
|
312
312
|
if (n) {
|
|
313
|
-
u(this,
|
|
313
|
+
u(this, ze).delete(t);
|
|
314
314
|
for (var r of n.d)
|
|
315
|
-
|
|
315
|
+
F(r, X), He(r);
|
|
316
316
|
for (r of n.m)
|
|
317
|
-
|
|
317
|
+
F(r, Me), He(r);
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
/**
|
|
@@ -323,19 +323,19 @@ const Br = class Br {
|
|
|
323
323
|
*/
|
|
324
324
|
process(t) {
|
|
325
325
|
ie = [], this.apply();
|
|
326
|
-
var n =
|
|
326
|
+
var n = Jt = [], r = [];
|
|
327
327
|
for (const i of t)
|
|
328
|
-
L(this, oe,
|
|
329
|
-
if (
|
|
330
|
-
L(this, oe,
|
|
331
|
-
for (const [i, s] of u(this,
|
|
332
|
-
|
|
328
|
+
L(this, oe, cr).call(this, i, n, r);
|
|
329
|
+
if (Jt = null, L(this, oe, fr).call(this)) {
|
|
330
|
+
L(this, oe, dr).call(this, r), L(this, oe, dr).call(this, n);
|
|
331
|
+
for (const [i, s] of u(this, ze))
|
|
332
|
+
Ti(i, s);
|
|
333
333
|
} else {
|
|
334
|
-
|
|
335
|
-
for (const i of u(this,
|
|
336
|
-
u(this,
|
|
334
|
+
D = null;
|
|
335
|
+
for (const i of u(this, nt)) i(this);
|
|
336
|
+
u(this, nt).clear(), u(this, bt) === 0 && L(this, oe, vr).call(this), ei(r), ei(n), u(this, Ft).clear(), u(this, rt).clear(), u(this, Pt)?.resolve();
|
|
337
337
|
}
|
|
338
|
-
|
|
338
|
+
Ce = null;
|
|
339
339
|
}
|
|
340
340
|
/**
|
|
341
341
|
* Associate a change to a given source with the current
|
|
@@ -344,75 +344,75 @@ const Br = class Br {
|
|
|
344
344
|
* @param {any} value
|
|
345
345
|
*/
|
|
346
346
|
capture(t, n) {
|
|
347
|
-
n !==
|
|
347
|
+
n !== W && !this.previous.has(t) && this.previous.set(t, n), (t.f & ot) === 0 && (this.current.set(t, t.v), Ce?.set(t, t.v));
|
|
348
348
|
}
|
|
349
349
|
activate() {
|
|
350
|
-
|
|
350
|
+
D = this, this.apply();
|
|
351
351
|
}
|
|
352
352
|
deactivate() {
|
|
353
|
-
|
|
353
|
+
D === this && (D = null, Ce = null);
|
|
354
354
|
}
|
|
355
355
|
flush() {
|
|
356
356
|
if (ie.length > 0)
|
|
357
|
-
|
|
358
|
-
else if (u(this,
|
|
359
|
-
for (const t of u(this,
|
|
360
|
-
u(this,
|
|
357
|
+
D = this, Si();
|
|
358
|
+
else if (u(this, bt) === 0 && !this.is_fork) {
|
|
359
|
+
for (const t of u(this, nt)) t(this);
|
|
360
|
+
u(this, nt).clear(), L(this, oe, vr).call(this), u(this, Pt)?.resolve();
|
|
361
361
|
}
|
|
362
362
|
this.deactivate();
|
|
363
363
|
}
|
|
364
364
|
discard() {
|
|
365
|
-
for (const t of u(this,
|
|
366
|
-
u(this,
|
|
365
|
+
for (const t of u(this, zt)) t(this);
|
|
366
|
+
u(this, zt).clear();
|
|
367
367
|
}
|
|
368
368
|
/**
|
|
369
369
|
*
|
|
370
370
|
* @param {boolean} blocking
|
|
371
371
|
*/
|
|
372
372
|
increment(t) {
|
|
373
|
-
$(this,
|
|
373
|
+
$(this, bt, u(this, bt) + 1), t && $(this, Lt, u(this, Lt) + 1);
|
|
374
374
|
}
|
|
375
375
|
/**
|
|
376
376
|
*
|
|
377
377
|
* @param {boolean} blocking
|
|
378
378
|
*/
|
|
379
379
|
decrement(t) {
|
|
380
|
-
$(this,
|
|
381
|
-
$(this,
|
|
380
|
+
$(this, bt, u(this, bt) - 1), t && $(this, Lt, u(this, Lt) - 1), !u(this, Ht) && ($(this, Ht, !0), Dt(() => {
|
|
381
|
+
$(this, Ht, !1), L(this, oe, fr).call(this) ? ie.length > 0 && this.flush() : this.revive();
|
|
382
382
|
}));
|
|
383
383
|
}
|
|
384
384
|
revive() {
|
|
385
|
-
for (const t of u(this,
|
|
386
|
-
u(this,
|
|
387
|
-
for (const t of u(this,
|
|
388
|
-
|
|
385
|
+
for (const t of u(this, Ft))
|
|
386
|
+
u(this, rt).delete(t), F(t, X), He(t);
|
|
387
|
+
for (const t of u(this, rt))
|
|
388
|
+
F(t, Me), He(t);
|
|
389
389
|
this.flush();
|
|
390
390
|
}
|
|
391
391
|
/** @param {(batch: Batch) => void} fn */
|
|
392
392
|
oncommit(t) {
|
|
393
|
-
u(this,
|
|
393
|
+
u(this, nt).add(t);
|
|
394
394
|
}
|
|
395
395
|
/** @param {(batch: Batch) => void} fn */
|
|
396
396
|
ondiscard(t) {
|
|
397
|
-
u(this,
|
|
397
|
+
u(this, zt).add(t);
|
|
398
398
|
}
|
|
399
399
|
settled() {
|
|
400
|
-
return (u(this,
|
|
400
|
+
return (u(this, Pt) ?? $(this, Pt, _i())).promise;
|
|
401
401
|
}
|
|
402
402
|
static ensure() {
|
|
403
|
-
if (
|
|
404
|
-
const t =
|
|
405
|
-
kn.add(
|
|
406
|
-
|
|
403
|
+
if (D === null) {
|
|
404
|
+
const t = D = new Hr();
|
|
405
|
+
kn.add(D), dn || Dt(() => {
|
|
406
|
+
D === t && t.flush();
|
|
407
407
|
});
|
|
408
408
|
}
|
|
409
|
-
return
|
|
409
|
+
return D;
|
|
410
410
|
}
|
|
411
411
|
apply() {
|
|
412
412
|
}
|
|
413
413
|
};
|
|
414
|
-
|
|
415
|
-
return this.is_fork || u(this,
|
|
414
|
+
nt = new WeakMap(), zt = new WeakMap(), bt = new WeakMap(), Lt = new WeakMap(), Pt = new WeakMap(), Ft = new WeakMap(), rt = new WeakMap(), ze = new WeakMap(), Ht = new WeakMap(), oe = new WeakSet(), fr = function() {
|
|
415
|
+
return this.is_fork || u(this, Lt) > 0;
|
|
416
416
|
}, /**
|
|
417
417
|
* Traverse the effect tree, executing effects or stashing
|
|
418
418
|
* them for later execution as appropriate
|
|
@@ -420,12 +420,12 @@ tt = new WeakMap(), Pt = new WeakMap(), wt = new WeakMap(), Ft = new WeakMap(),
|
|
|
420
420
|
* @param {Effect[]} effects
|
|
421
421
|
* @param {Effect[]} render_effects
|
|
422
422
|
*/
|
|
423
|
-
|
|
423
|
+
cr = function(t, n, r) {
|
|
424
424
|
t.f ^= U;
|
|
425
425
|
for (var i = t.first; i !== null; ) {
|
|
426
|
-
var s = i.f, o = (s & (
|
|
426
|
+
var s = i.f, o = (s & (Ie | dt)) !== 0, l = o && (s & U) !== 0, a = (s & Q) !== 0, f = l || u(this, ze).has(i);
|
|
427
427
|
if (!f && i.fn !== null) {
|
|
428
|
-
o ? a || (i.f ^= U) : (s &
|
|
428
|
+
o ? a || (i.f ^= U) : (s & Zt) !== 0 ? n.push(i) : (s & (qt | Cr)) !== 0 && a ? r.push(i) : wn(i) && (Gt(i), (s & ct) !== 0 && (u(this, rt).add(i), a && F(i, X)));
|
|
429
429
|
var d = i.first;
|
|
430
430
|
if (d !== null) {
|
|
431
431
|
i = d;
|
|
@@ -444,14 +444,14 @@ dr = function(t, n, r) {
|
|
|
444
444
|
}, /**
|
|
445
445
|
* @param {Effect[]} effects
|
|
446
446
|
*/
|
|
447
|
-
|
|
447
|
+
dr = function(t) {
|
|
448
448
|
for (var n = 0; n < t.length; n += 1)
|
|
449
|
-
|
|
450
|
-
},
|
|
449
|
+
Ei(t[n], u(this, Ft), u(this, rt));
|
|
450
|
+
}, vr = function() {
|
|
451
451
|
var s;
|
|
452
452
|
if (kn.size > 1) {
|
|
453
453
|
this.previous.clear();
|
|
454
|
-
var t =
|
|
454
|
+
var t = D, n = Ce, r = !0;
|
|
455
455
|
for (const o of kn) {
|
|
456
456
|
if (o === this) {
|
|
457
457
|
r = !1;
|
|
@@ -474,106 +474,106 @@ vr = function(t) {
|
|
|
474
474
|
ie = [];
|
|
475
475
|
const f = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Map();
|
|
476
476
|
for (const v of l)
|
|
477
|
-
|
|
477
|
+
Ci(v, a, f, d);
|
|
478
478
|
if (ie.length > 0) {
|
|
479
|
-
|
|
479
|
+
D = o, o.apply();
|
|
480
480
|
for (const v of ie)
|
|
481
|
-
L(s = o, oe,
|
|
481
|
+
L(s = o, oe, cr).call(s, v, [], []);
|
|
482
482
|
o.deactivate();
|
|
483
483
|
}
|
|
484
484
|
ie = i;
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
|
|
487
|
+
D = t, Ce = n;
|
|
488
488
|
}
|
|
489
|
-
u(this,
|
|
489
|
+
u(this, ze).clear(), kn.delete(this);
|
|
490
490
|
};
|
|
491
|
-
let
|
|
492
|
-
function
|
|
493
|
-
var t =
|
|
494
|
-
|
|
491
|
+
let Qe = Hr;
|
|
492
|
+
function ge(e) {
|
|
493
|
+
var t = dn;
|
|
494
|
+
dn = !0;
|
|
495
495
|
try {
|
|
496
496
|
for (var n; ; ) {
|
|
497
|
-
if (po(), ie.length === 0 && (
|
|
497
|
+
if (po(), ie.length === 0 && (D?.flush(), ie.length === 0))
|
|
498
498
|
return qn = null, /** @type {T} */
|
|
499
499
|
n;
|
|
500
|
-
|
|
500
|
+
Si();
|
|
501
501
|
}
|
|
502
502
|
} finally {
|
|
503
|
-
|
|
503
|
+
dn = t;
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function Si() {
|
|
507
507
|
var e = null;
|
|
508
508
|
try {
|
|
509
509
|
for (var t = 0; ie.length > 0; ) {
|
|
510
|
-
var n =
|
|
510
|
+
var n = Qe.ensure();
|
|
511
511
|
if (t++ > 1e3) {
|
|
512
512
|
var r, i;
|
|
513
513
|
mo();
|
|
514
514
|
}
|
|
515
|
-
n.process(ie),
|
|
515
|
+
n.process(ie), lt.clear();
|
|
516
516
|
}
|
|
517
517
|
} finally {
|
|
518
|
-
ie = [], qn = null,
|
|
518
|
+
ie = [], qn = null, Jt = null;
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
function mo() {
|
|
522
522
|
try {
|
|
523
523
|
io();
|
|
524
524
|
} catch (e) {
|
|
525
|
-
|
|
525
|
+
st(e, qn);
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
|
-
let
|
|
529
|
-
function
|
|
528
|
+
let qe = null;
|
|
529
|
+
function ei(e) {
|
|
530
530
|
var t = e.length;
|
|
531
531
|
if (t !== 0) {
|
|
532
532
|
for (var n = 0; n < t; ) {
|
|
533
533
|
var r = e[n++];
|
|
534
|
-
if ((r.f & (
|
|
535
|
-
|
|
536
|
-
for (const i of
|
|
537
|
-
if ((i.f & (
|
|
534
|
+
if ((r.f & (je | Q)) === 0 && wn(r) && (qe = /* @__PURE__ */ new Set(), Gt(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Ui(r), qe?.size > 0)) {
|
|
535
|
+
lt.clear();
|
|
536
|
+
for (const i of qe) {
|
|
537
|
+
if ((i.f & (je | Q)) !== 0) continue;
|
|
538
538
|
const s = [i];
|
|
539
539
|
let o = i.parent;
|
|
540
540
|
for (; o !== null; )
|
|
541
|
-
|
|
541
|
+
qe.has(o) && (qe.delete(o), s.push(o)), o = o.parent;
|
|
542
542
|
for (let l = s.length - 1; l >= 0; l--) {
|
|
543
543
|
const a = s[l];
|
|
544
|
-
(a.f & (
|
|
544
|
+
(a.f & (je | Q)) === 0 && Gt(a);
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
|
-
|
|
547
|
+
qe.clear();
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
|
|
550
|
+
qe = null;
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function Ci(e, t, n, r) {
|
|
554
554
|
if (!n.has(e) && (n.add(e), e.reactions !== null))
|
|
555
555
|
for (const i of e.reactions) {
|
|
556
556
|
const s = i.f;
|
|
557
|
-
(s & J) !== 0 ?
|
|
557
|
+
(s & J) !== 0 ? Ci(
|
|
558
558
|
/** @type {Derived} */
|
|
559
559
|
i,
|
|
560
560
|
t,
|
|
561
561
|
n,
|
|
562
562
|
r
|
|
563
|
-
) : (s & (
|
|
563
|
+
) : (s & (kr | ct)) !== 0 && (s & X) === 0 && ki(i, t, r) && (F(i, X), He(
|
|
564
564
|
/** @type {Effect} */
|
|
565
565
|
i
|
|
566
566
|
));
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function ki(e, t, n) {
|
|
570
570
|
const r = n.get(e);
|
|
571
571
|
if (r !== void 0) return r;
|
|
572
572
|
if (e.deps !== null)
|
|
573
573
|
for (const i of e.deps) {
|
|
574
|
-
if (
|
|
574
|
+
if (Wt.call(t, i))
|
|
575
575
|
return !0;
|
|
576
|
-
if ((i.f & J) !== 0 &&
|
|
576
|
+
if ((i.f & J) !== 0 && ki(
|
|
577
577
|
/** @type {Derived} */
|
|
578
578
|
i,
|
|
579
579
|
t,
|
|
@@ -587,18 +587,18 @@ function Mi(e, t, n) {
|
|
|
587
587
|
}
|
|
588
588
|
return n.set(e, !1), !1;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function He(e) {
|
|
591
591
|
var t = qn = e, n = t.b;
|
|
592
|
-
if (n?.is_pending && (e.f & (
|
|
592
|
+
if (n?.is_pending && (e.f & (Zt | qt | Cr)) !== 0 && (e.f & Mt) === 0) {
|
|
593
593
|
n.defer_effect(e);
|
|
594
594
|
return;
|
|
595
595
|
}
|
|
596
596
|
for (; t.parent !== null; ) {
|
|
597
597
|
t = t.parent;
|
|
598
598
|
var r = t.f;
|
|
599
|
-
if (
|
|
599
|
+
if (Jt !== null && t === C && (e.f & qt) === 0)
|
|
600
600
|
return;
|
|
601
|
-
if ((r & (
|
|
601
|
+
if ((r & (dt | Ie)) !== 0) {
|
|
602
602
|
if ((r & U) === 0)
|
|
603
603
|
return;
|
|
604
604
|
t.f ^= U;
|
|
@@ -606,28 +606,28 @@ function ze(e) {
|
|
|
606
606
|
}
|
|
607
607
|
ie.push(t);
|
|
608
608
|
}
|
|
609
|
-
function
|
|
610
|
-
if (!((e.f &
|
|
611
|
-
(e.f & X) !== 0 ? t.d.push(e) : (e.f &
|
|
609
|
+
function Ti(e, t) {
|
|
610
|
+
if (!((e.f & Ie) !== 0 && (e.f & U) !== 0)) {
|
|
611
|
+
(e.f & X) !== 0 ? t.d.push(e) : (e.f & Me) !== 0 && t.m.push(e), F(e, U);
|
|
612
612
|
for (var n = e.first; n !== null; )
|
|
613
|
-
|
|
613
|
+
Ti(n, t), n = n.next;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
function wo(e) {
|
|
617
|
-
let t = 0, n =
|
|
617
|
+
let t = 0, n = Tt(0), r;
|
|
618
618
|
return () => {
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
t -= 1, t === 0 && (r?.(), r = void 0,
|
|
619
|
+
Nr() && (p(n), Wi(() => (t === 0 && (r = Xn(() => e(() => vn(n)))), t += 1, () => {
|
|
620
|
+
Dt(() => {
|
|
621
|
+
t -= 1, t === 0 && (r?.(), r = void 0, vn(n));
|
|
622
622
|
});
|
|
623
623
|
})));
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
|
-
var bo =
|
|
626
|
+
var bo = Ut | At;
|
|
627
627
|
function yo(e, t, n, r) {
|
|
628
628
|
new $o(e, t, n, r);
|
|
629
629
|
}
|
|
630
|
-
var
|
|
630
|
+
var ae, pn, Le, yt, re, Pe, ue, Ee, Xe, $t, it, jt, Vt, Bt, Je, Pn, P, Mi, Ai, Ii, hr, Mn, An, pr;
|
|
631
631
|
class $o {
|
|
632
632
|
/**
|
|
633
633
|
* @param {TemplateNode} node
|
|
@@ -638,39 +638,39 @@ class $o {
|
|
|
638
638
|
constructor(t, n, r, i) {
|
|
639
639
|
x(this, P);
|
|
640
640
|
/** @type {Boundary | null} */
|
|
641
|
-
|
|
642
|
-
|
|
641
|
+
z(this, "parent");
|
|
642
|
+
z(this, "is_pending", !1);
|
|
643
643
|
/**
|
|
644
644
|
* API-level transformError transform function. Transforms errors before they reach the `failed` snippet.
|
|
645
645
|
* Inherited from parent boundary, or defaults to identity.
|
|
646
646
|
* @type {(error: unknown) => unknown}
|
|
647
647
|
*/
|
|
648
|
-
|
|
648
|
+
z(this, "transform_error");
|
|
649
649
|
/** @type {TemplateNode} */
|
|
650
|
-
x(this,
|
|
650
|
+
x(this, ae);
|
|
651
651
|
/** @type {TemplateNode | null} */
|
|
652
|
-
x(this,
|
|
652
|
+
x(this, pn, k ? S : null);
|
|
653
653
|
/** @type {BoundaryProps} */
|
|
654
654
|
x(this, Le);
|
|
655
655
|
/** @type {((anchor: Node) => void)} */
|
|
656
|
-
x(this,
|
|
656
|
+
x(this, yt);
|
|
657
657
|
/** @type {Effect} */
|
|
658
658
|
x(this, re);
|
|
659
659
|
/** @type {Effect | null} */
|
|
660
660
|
x(this, Pe, null);
|
|
661
661
|
/** @type {Effect | null} */
|
|
662
|
-
x(this,
|
|
662
|
+
x(this, ue, null);
|
|
663
663
|
/** @type {Effect | null} */
|
|
664
|
-
x(this,
|
|
664
|
+
x(this, Ee, null);
|
|
665
665
|
/** @type {DocumentFragment | null} */
|
|
666
|
-
x(this,
|
|
667
|
-
x(this,
|
|
668
|
-
x(this,
|
|
669
|
-
x(this,
|
|
666
|
+
x(this, Xe, null);
|
|
667
|
+
x(this, $t, 0);
|
|
668
|
+
x(this, it, 0);
|
|
669
|
+
x(this, jt, !1);
|
|
670
670
|
/** @type {Set<Effect>} */
|
|
671
|
-
x(this,
|
|
671
|
+
x(this, Vt, /* @__PURE__ */ new Set());
|
|
672
672
|
/** @type {Set<Effect>} */
|
|
673
|
-
x(this,
|
|
673
|
+
x(this, Bt, /* @__PURE__ */ new Set());
|
|
674
674
|
/**
|
|
675
675
|
* A source containing the number of pending async deriveds/expressions.
|
|
676
676
|
* Only created if `$effect.pending()` is used inside the boundary,
|
|
@@ -678,39 +678,39 @@ class $o {
|
|
|
678
678
|
* calls followed by no-op flushes
|
|
679
679
|
* @type {Source<number> | null}
|
|
680
680
|
*/
|
|
681
|
-
x(this,
|
|
682
|
-
x(this,
|
|
683
|
-
$(this,
|
|
681
|
+
x(this, Je, null);
|
|
682
|
+
x(this, Pn, wo(() => ($(this, Je, Tt(u(this, $t))), () => {
|
|
683
|
+
$(this, Je, null);
|
|
684
684
|
})));
|
|
685
|
-
$(this,
|
|
685
|
+
$(this, ae, t), $(this, Le, n), $(this, yt, (s) => {
|
|
686
686
|
var o = (
|
|
687
687
|
/** @type {Effect} */
|
|
688
|
-
|
|
688
|
+
C
|
|
689
689
|
);
|
|
690
|
-
o.b = this, o.f |=
|
|
690
|
+
o.b = this, o.f |= ar, r(s);
|
|
691
691
|
}), this.parent = /** @type {Effect} */
|
|
692
|
-
|
|
693
|
-
if (
|
|
692
|
+
C.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), $(this, re, Or(() => {
|
|
693
|
+
if (k) {
|
|
694
694
|
const s = (
|
|
695
695
|
/** @type {Comment} */
|
|
696
|
-
u(this,
|
|
696
|
+
u(this, pn)
|
|
697
697
|
);
|
|
698
698
|
Bn();
|
|
699
|
-
const o = s.data ===
|
|
700
|
-
if (s.data.startsWith(
|
|
701
|
-
const a = JSON.parse(s.data.slice(
|
|
702
|
-
L(this, P,
|
|
703
|
-
} else o ? L(this, P, Ii).call(this) : L(this, P,
|
|
699
|
+
const o = s.data === xr;
|
|
700
|
+
if (s.data.startsWith(Gr)) {
|
|
701
|
+
const a = JSON.parse(s.data.slice(Gr.length));
|
|
702
|
+
L(this, P, Ai).call(this, a);
|
|
703
|
+
} else o ? L(this, P, Ii).call(this) : L(this, P, Mi).call(this);
|
|
704
704
|
} else
|
|
705
|
-
L(this, P,
|
|
706
|
-
}, bo)),
|
|
705
|
+
L(this, P, hr).call(this);
|
|
706
|
+
}, bo)), k && $(this, ae, S);
|
|
707
707
|
}
|
|
708
708
|
/**
|
|
709
709
|
* Defer an effect inside a pending boundary until the boundary resolves
|
|
710
710
|
* @param {Effect} effect
|
|
711
711
|
*/
|
|
712
712
|
defer_effect(t) {
|
|
713
|
-
|
|
713
|
+
Ei(t, u(this, Vt), u(this, Bt));
|
|
714
714
|
}
|
|
715
715
|
/**
|
|
716
716
|
* Returns `false` if the effect exists inside a boundary whose pending snippet is shown
|
|
@@ -729,14 +729,14 @@ class $o {
|
|
|
729
729
|
* @param {1 | -1} d
|
|
730
730
|
*/
|
|
731
731
|
update_pending_count(t) {
|
|
732
|
-
L(this, P,
|
|
733
|
-
$(this,
|
|
732
|
+
L(this, P, pr).call(this, t), $(this, $t, u(this, $t) + t), !(!u(this, Je) || u(this, jt)) && ($(this, jt, !0), Dt(() => {
|
|
733
|
+
$(this, jt, !1), u(this, Je) && Kt(u(this, Je), u(this, $t));
|
|
734
734
|
}));
|
|
735
735
|
}
|
|
736
736
|
get_effect_pending() {
|
|
737
|
-
return u(this,
|
|
737
|
+
return u(this, Pn).call(this), p(
|
|
738
738
|
/** @type {Source<number>} */
|
|
739
|
-
u(this,
|
|
739
|
+
u(this, Je)
|
|
740
740
|
);
|
|
741
741
|
}
|
|
742
742
|
/** @param {unknown} error */
|
|
@@ -745,43 +745,43 @@ class $o {
|
|
|
745
745
|
let r = u(this, Le).failed;
|
|
746
746
|
if (!n && !r)
|
|
747
747
|
throw t;
|
|
748
|
-
u(this, Pe) && (ee(u(this, Pe)), $(this, Pe, null)), u(this,
|
|
748
|
+
u(this, Pe) && (ee(u(this, Pe)), $(this, Pe, null)), u(this, ue) && (ee(u(this, ue)), $(this, ue, null)), u(this, Ee) && (ee(u(this, Ee)), $(this, Ee, null)), k && (ce(
|
|
749
749
|
/** @type {TemplateNode} */
|
|
750
|
-
u(this,
|
|
751
|
-
), co(),
|
|
750
|
+
u(this, pn)
|
|
751
|
+
), co(), ce(Dn()));
|
|
752
752
|
var i = !1, s = !1;
|
|
753
753
|
const o = () => {
|
|
754
754
|
if (i) {
|
|
755
755
|
fo();
|
|
756
756
|
return;
|
|
757
757
|
}
|
|
758
|
-
i = !0, s && uo(), u(this,
|
|
759
|
-
$(this,
|
|
760
|
-
}), L(this, P,
|
|
761
|
-
|
|
758
|
+
i = !0, s && uo(), u(this, Ee) !== null && Et(u(this, Ee), () => {
|
|
759
|
+
$(this, Ee, null);
|
|
760
|
+
}), L(this, P, An).call(this, () => {
|
|
761
|
+
Qe.ensure(), L(this, P, hr).call(this);
|
|
762
762
|
});
|
|
763
763
|
}, l = (a) => {
|
|
764
764
|
try {
|
|
765
765
|
s = !0, n?.(a, o), s = !1;
|
|
766
766
|
} catch (f) {
|
|
767
|
-
|
|
767
|
+
st(f, u(this, re) && u(this, re).parent);
|
|
768
768
|
}
|
|
769
|
-
r && $(this,
|
|
770
|
-
|
|
769
|
+
r && $(this, Ee, L(this, P, An).call(this, () => {
|
|
770
|
+
Qe.ensure();
|
|
771
771
|
try {
|
|
772
|
-
return
|
|
772
|
+
return _e(() => {
|
|
773
773
|
var f = (
|
|
774
774
|
/** @type {Effect} */
|
|
775
|
-
|
|
775
|
+
C
|
|
776
776
|
);
|
|
777
|
-
f.b = this, f.f |=
|
|
778
|
-
u(this,
|
|
777
|
+
f.b = this, f.f |= ar, r(
|
|
778
|
+
u(this, ae),
|
|
779
779
|
() => a,
|
|
780
780
|
() => o
|
|
781
781
|
);
|
|
782
782
|
});
|
|
783
783
|
} catch (f) {
|
|
784
|
-
return
|
|
784
|
+
return st(
|
|
785
785
|
f,
|
|
786
786
|
/** @type {Effect} */
|
|
787
787
|
u(this, re).parent
|
|
@@ -789,37 +789,37 @@ class $o {
|
|
|
789
789
|
}
|
|
790
790
|
}));
|
|
791
791
|
};
|
|
792
|
-
|
|
792
|
+
Dt(() => {
|
|
793
793
|
var a;
|
|
794
794
|
try {
|
|
795
795
|
a = this.transform_error(t);
|
|
796
796
|
} catch (f) {
|
|
797
|
-
|
|
797
|
+
st(f, u(this, re) && u(this, re).parent);
|
|
798
798
|
return;
|
|
799
799
|
}
|
|
800
800
|
a !== null && typeof a == "object" && typeof /** @type {any} */
|
|
801
801
|
a.then == "function" ? a.then(
|
|
802
802
|
l,
|
|
803
803
|
/** @param {unknown} e */
|
|
804
|
-
(f) =>
|
|
804
|
+
(f) => st(f, u(this, re) && u(this, re).parent)
|
|
805
805
|
) : l(a);
|
|
806
806
|
});
|
|
807
807
|
}
|
|
808
808
|
}
|
|
809
|
-
|
|
809
|
+
ae = new WeakMap(), pn = new WeakMap(), Le = new WeakMap(), yt = new WeakMap(), re = new WeakMap(), Pe = new WeakMap(), ue = new WeakMap(), Ee = new WeakMap(), Xe = new WeakMap(), $t = new WeakMap(), it = new WeakMap(), jt = new WeakMap(), Vt = new WeakMap(), Bt = new WeakMap(), Je = new WeakMap(), Pn = new WeakMap(), P = new WeakSet(), Mi = function() {
|
|
810
810
|
try {
|
|
811
|
-
$(this, Pe,
|
|
811
|
+
$(this, Pe, _e(() => u(this, yt).call(this, u(this, ae))));
|
|
812
812
|
} catch (t) {
|
|
813
813
|
this.error(t);
|
|
814
814
|
}
|
|
815
815
|
}, /**
|
|
816
816
|
* @param {unknown} error The deserialized error from the server's hydration comment
|
|
817
817
|
*/
|
|
818
|
-
|
|
818
|
+
Ai = function(t) {
|
|
819
819
|
const n = u(this, Le).failed;
|
|
820
|
-
n && $(this,
|
|
820
|
+
n && $(this, Ee, _e(() => {
|
|
821
821
|
n(
|
|
822
|
-
u(this,
|
|
822
|
+
u(this, ae),
|
|
823
823
|
() => t,
|
|
824
824
|
() => () => {
|
|
825
825
|
}
|
|
@@ -827,68 +827,68 @@ Ni = function(t) {
|
|
|
827
827
|
}));
|
|
828
828
|
}, Ii = function() {
|
|
829
829
|
const t = u(this, Le).pending;
|
|
830
|
-
t && (this.is_pending = !0, $(this,
|
|
831
|
-
var n = $(this,
|
|
832
|
-
n.append(r), $(this, Pe, L(this, P,
|
|
830
|
+
t && (this.is_pending = !0, $(this, ue, _e(() => t(u(this, ae)))), Dt(() => {
|
|
831
|
+
var n = $(this, Xe, document.createDocumentFragment()), r = Ae();
|
|
832
|
+
n.append(r), $(this, Pe, L(this, P, An).call(this, () => (Qe.ensure(), _e(() => u(this, yt).call(this, r))))), u(this, it) === 0 && (u(this, ae).before(n), $(this, Xe, null), Et(
|
|
833
833
|
/** @type {Effect} */
|
|
834
|
-
u(this,
|
|
834
|
+
u(this, ue),
|
|
835
835
|
() => {
|
|
836
|
-
$(this,
|
|
836
|
+
$(this, ue, null);
|
|
837
837
|
}
|
|
838
|
-
), L(this, P,
|
|
838
|
+
), L(this, P, Mn).call(this));
|
|
839
839
|
}));
|
|
840
|
-
},
|
|
840
|
+
}, hr = function() {
|
|
841
841
|
try {
|
|
842
|
-
if (this.is_pending = this.has_pending_snippet(), $(this,
|
|
843
|
-
u(this,
|
|
844
|
-
})), u(this,
|
|
845
|
-
var t = $(this,
|
|
846
|
-
|
|
842
|
+
if (this.is_pending = this.has_pending_snippet(), $(this, it, 0), $(this, $t, 0), $(this, Pe, _e(() => {
|
|
843
|
+
u(this, yt).call(this, u(this, ae));
|
|
844
|
+
})), u(this, it) > 0) {
|
|
845
|
+
var t = $(this, Xe, document.createDocumentFragment());
|
|
846
|
+
Lr(u(this, Pe), t);
|
|
847
847
|
const n = (
|
|
848
848
|
/** @type {(anchor: Node) => void} */
|
|
849
849
|
u(this, Le).pending
|
|
850
850
|
);
|
|
851
|
-
$(this,
|
|
851
|
+
$(this, ue, _e(() => n(u(this, ae))));
|
|
852
852
|
} else
|
|
853
|
-
L(this, P,
|
|
853
|
+
L(this, P, Mn).call(this);
|
|
854
854
|
} catch (n) {
|
|
855
855
|
this.error(n);
|
|
856
856
|
}
|
|
857
|
-
},
|
|
857
|
+
}, Mn = function() {
|
|
858
858
|
this.is_pending = !1;
|
|
859
|
+
for (const t of u(this, Vt))
|
|
860
|
+
F(t, X), He(t);
|
|
859
861
|
for (const t of u(this, Bt))
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
z(t, Ae), ze(t);
|
|
863
|
-
u(this, Bt).clear(), u(this, Yt).clear();
|
|
862
|
+
F(t, Me), He(t);
|
|
863
|
+
u(this, Vt).clear(), u(this, Bt).clear();
|
|
864
864
|
}, /**
|
|
865
865
|
* @template T
|
|
866
866
|
* @param {() => T} fn
|
|
867
867
|
*/
|
|
868
|
-
|
|
869
|
-
var n =
|
|
870
|
-
|
|
868
|
+
An = function(t) {
|
|
869
|
+
var n = C, r = E, i = te;
|
|
870
|
+
Ve(u(this, re)), be(u(this, re)), Xt(u(this, re).ctx);
|
|
871
871
|
try {
|
|
872
872
|
return t();
|
|
873
873
|
} catch (s) {
|
|
874
|
-
return
|
|
874
|
+
return $i(s), null;
|
|
875
875
|
} finally {
|
|
876
|
-
|
|
876
|
+
Ve(n), be(r), Xt(i);
|
|
877
877
|
}
|
|
878
878
|
}, /**
|
|
879
879
|
* Updates the pending count associated with the currently visible pending snippet,
|
|
880
880
|
* if any, such that we can replace the snippet with content once work is done
|
|
881
881
|
* @param {1 | -1} d
|
|
882
882
|
*/
|
|
883
|
-
|
|
883
|
+
pr = function(t) {
|
|
884
884
|
var n;
|
|
885
885
|
if (!this.has_pending_snippet()) {
|
|
886
|
-
this.parent && L(n = this.parent, P,
|
|
886
|
+
this.parent && L(n = this.parent, P, pr).call(n, t);
|
|
887
887
|
return;
|
|
888
888
|
}
|
|
889
|
-
$(this,
|
|
890
|
-
$(this,
|
|
891
|
-
}), u(this,
|
|
889
|
+
$(this, it, u(this, it) + t), u(this, it) === 0 && (L(this, P, Mn).call(this), u(this, ue) && Et(u(this, ue), () => {
|
|
890
|
+
$(this, ue, null);
|
|
891
|
+
}), u(this, Xe) && (u(this, ae).before(u(this, Xe)), $(this, Xe, null)));
|
|
892
892
|
};
|
|
893
893
|
function xo(e, t, n, r) {
|
|
894
894
|
const i = Un;
|
|
@@ -899,43 +899,43 @@ function xo(e, t, n, r) {
|
|
|
899
899
|
}
|
|
900
900
|
var o = (
|
|
901
901
|
/** @type {Effect} */
|
|
902
|
-
|
|
902
|
+
C
|
|
903
903
|
), l = Eo(), a = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((v) => v.promise)) : null;
|
|
904
904
|
function f(v) {
|
|
905
905
|
l();
|
|
906
906
|
try {
|
|
907
907
|
r(v);
|
|
908
908
|
} catch (_) {
|
|
909
|
-
(o.f &
|
|
909
|
+
(o.f & je) === 0 && st(_, o);
|
|
910
910
|
}
|
|
911
|
-
|
|
911
|
+
_r();
|
|
912
912
|
}
|
|
913
913
|
if (n.length === 0) {
|
|
914
914
|
a.then(() => f(t.map(i)));
|
|
915
915
|
return;
|
|
916
916
|
}
|
|
917
917
|
function d() {
|
|
918
|
-
l(), Promise.all(n.map((v) => /* @__PURE__ */
|
|
918
|
+
l(), Promise.all(n.map((v) => /* @__PURE__ */ Co(v))).then((v) => f([...t.map(i), ...v])).catch((v) => st(v, o));
|
|
919
919
|
}
|
|
920
920
|
a ? a.then(d) : d();
|
|
921
921
|
}
|
|
922
922
|
function Eo() {
|
|
923
|
-
var e =
|
|
923
|
+
var e = C, t = E, n = te, r = D;
|
|
924
924
|
return function(s = !0) {
|
|
925
|
-
|
|
925
|
+
Ve(e), be(t), Xt(n), s && r?.activate();
|
|
926
926
|
};
|
|
927
927
|
}
|
|
928
|
-
function
|
|
929
|
-
|
|
928
|
+
function _r(e = !0) {
|
|
929
|
+
Ve(null), be(null), Xt(null), e && D?.deactivate();
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function So() {
|
|
932
932
|
var e = (
|
|
933
933
|
/** @type {Boundary} */
|
|
934
934
|
/** @type {Effect} */
|
|
935
|
-
|
|
935
|
+
C.b
|
|
936
936
|
), t = (
|
|
937
937
|
/** @type {Batch} */
|
|
938
|
-
|
|
938
|
+
D
|
|
939
939
|
), n = e.is_rendered();
|
|
940
940
|
return e.update_pending_count(1), t.increment(n), () => {
|
|
941
941
|
e.update_pending_count(-1), t.decrement(n);
|
|
@@ -947,60 +947,60 @@ function Un(e) {
|
|
|
947
947
|
/** @type {Derived} */
|
|
948
948
|
E
|
|
949
949
|
) : null;
|
|
950
|
-
return
|
|
950
|
+
return C !== null && (C.f |= At), {
|
|
951
951
|
ctx: te,
|
|
952
952
|
deps: null,
|
|
953
953
|
effects: null,
|
|
954
|
-
equals:
|
|
954
|
+
equals: mi,
|
|
955
955
|
f: t,
|
|
956
956
|
fn: e,
|
|
957
957
|
reactions: null,
|
|
958
958
|
rv: 0,
|
|
959
959
|
v: (
|
|
960
960
|
/** @type {V} */
|
|
961
|
-
|
|
961
|
+
W
|
|
962
962
|
),
|
|
963
963
|
wv: 0,
|
|
964
|
-
parent: n ??
|
|
964
|
+
parent: n ?? C,
|
|
965
965
|
ac: null
|
|
966
966
|
};
|
|
967
967
|
}
|
|
968
968
|
// @__NO_SIDE_EFFECTS__
|
|
969
|
-
function
|
|
969
|
+
function Co(e, t, n) {
|
|
970
970
|
/** @type {Effect | null} */
|
|
971
|
-
|
|
971
|
+
C === null && Qs();
|
|
972
972
|
var i = (
|
|
973
973
|
/** @type {Promise<V>} */
|
|
974
974
|
/** @type {unknown} */
|
|
975
975
|
void 0
|
|
976
|
-
), s =
|
|
976
|
+
), s = Tt(
|
|
977
977
|
/** @type {V} */
|
|
978
|
-
|
|
978
|
+
W
|
|
979
979
|
), o = !E, l = /* @__PURE__ */ new Map();
|
|
980
|
-
return
|
|
981
|
-
var a =
|
|
980
|
+
return Po(() => {
|
|
981
|
+
var a = _i();
|
|
982
982
|
i = a.promise;
|
|
983
983
|
try {
|
|
984
|
-
Promise.resolve(e()).then(a.resolve, a.reject).finally(
|
|
984
|
+
Promise.resolve(e()).then(a.resolve, a.reject).finally(_r);
|
|
985
985
|
} catch (_) {
|
|
986
|
-
a.reject(_),
|
|
986
|
+
a.reject(_), _r();
|
|
987
987
|
}
|
|
988
988
|
var f = (
|
|
989
989
|
/** @type {Batch} */
|
|
990
|
-
|
|
990
|
+
D
|
|
991
991
|
);
|
|
992
992
|
if (o) {
|
|
993
|
-
var d =
|
|
994
|
-
l.get(f)?.reject(
|
|
993
|
+
var d = So();
|
|
994
|
+
l.get(f)?.reject(_t), l.delete(f), l.set(f, a);
|
|
995
995
|
}
|
|
996
|
-
const v = (_,
|
|
997
|
-
if (f.activate(),
|
|
998
|
-
|
|
996
|
+
const v = (_, m = void 0) => {
|
|
997
|
+
if (f.activate(), m)
|
|
998
|
+
m !== _t && (s.f |= ot, Kt(s, m));
|
|
999
999
|
else {
|
|
1000
|
-
(s.f &
|
|
1000
|
+
(s.f & ot) !== 0 && (s.f ^= ot), Kt(s, _);
|
|
1001
1001
|
for (const [c, b] of l) {
|
|
1002
1002
|
if (l.delete(c), c === f) break;
|
|
1003
|
-
b.reject(
|
|
1003
|
+
b.reject(_t);
|
|
1004
1004
|
}
|
|
1005
1005
|
}
|
|
1006
1006
|
d && d();
|
|
@@ -1008,7 +1008,7 @@ function So(e, t, n) {
|
|
|
1008
1008
|
a.promise.then(v, (_) => v(null, _ || "unknown"));
|
|
1009
1009
|
}), Oo(() => {
|
|
1010
1010
|
for (const a of l.values())
|
|
1011
|
-
a.reject(
|
|
1011
|
+
a.reject(_t);
|
|
1012
1012
|
}), new Promise((a) => {
|
|
1013
1013
|
function f(d) {
|
|
1014
1014
|
function v() {
|
|
@@ -1020,14 +1020,14 @@ function So(e, t, n) {
|
|
|
1020
1020
|
});
|
|
1021
1021
|
}
|
|
1022
1022
|
// @__NO_SIDE_EFFECTS__
|
|
1023
|
-
function
|
|
1023
|
+
function fn(e) {
|
|
1024
1024
|
const t = /* @__PURE__ */ Un(e);
|
|
1025
|
-
return
|
|
1025
|
+
return Ki(t), t;
|
|
1026
1026
|
}
|
|
1027
1027
|
// @__NO_SIDE_EFFECTS__
|
|
1028
1028
|
function ko(e) {
|
|
1029
1029
|
const t = /* @__PURE__ */ Un(e);
|
|
1030
|
-
return t.equals =
|
|
1030
|
+
return t.equals = wi, t;
|
|
1031
1031
|
}
|
|
1032
1032
|
function To(e) {
|
|
1033
1033
|
var t = e.effects;
|
|
@@ -1043,7 +1043,7 @@ function To(e) {
|
|
|
1043
1043
|
function Mo(e) {
|
|
1044
1044
|
for (var t = e.parent; t !== null; ) {
|
|
1045
1045
|
if ((t.f & J) === 0)
|
|
1046
|
-
return (t.f &
|
|
1046
|
+
return (t.f & je) === 0 ? (
|
|
1047
1047
|
/** @type {Effect} */
|
|
1048
1048
|
t
|
|
1049
1049
|
) : null;
|
|
@@ -1051,44 +1051,44 @@ function Mo(e) {
|
|
|
1051
1051
|
}
|
|
1052
1052
|
return null;
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1055
|
-
var t, n =
|
|
1056
|
-
|
|
1054
|
+
function Ar(e) {
|
|
1055
|
+
var t, n = C;
|
|
1056
|
+
Ve(Mo(e));
|
|
1057
1057
|
try {
|
|
1058
|
-
e.f &= ~
|
|
1058
|
+
e.f &= ~kt, To(e), t = es(e);
|
|
1059
1059
|
} finally {
|
|
1060
|
-
|
|
1060
|
+
Ve(n);
|
|
1061
1061
|
}
|
|
1062
1062
|
return t;
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1065
|
-
var t =
|
|
1066
|
-
if (!e.equals(t) && (e.wv =
|
|
1067
|
-
|
|
1064
|
+
function Ri(e) {
|
|
1065
|
+
var t = Ar(e);
|
|
1066
|
+
if (!e.equals(t) && (e.wv = Zi(), (!D?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
|
|
1067
|
+
F(e, U);
|
|
1068
1068
|
return;
|
|
1069
1069
|
}
|
|
1070
|
-
|
|
1070
|
+
ft || (Ce !== null ? (Nr() || D?.is_fork) && Ce.set(e, t) : Mr(e));
|
|
1071
1071
|
}
|
|
1072
1072
|
function Ao(e) {
|
|
1073
1073
|
if (e.effects !== null)
|
|
1074
1074
|
for (const t of e.effects)
|
|
1075
|
-
(t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(
|
|
1075
|
+
(t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(_t), t.teardown = qs, t.ac = null, hn(t, 0), Dr(t));
|
|
1076
1076
|
}
|
|
1077
|
-
function
|
|
1077
|
+
function Ni(e) {
|
|
1078
1078
|
if (e.effects !== null)
|
|
1079
1079
|
for (const t of e.effects)
|
|
1080
|
-
t.teardown &&
|
|
1080
|
+
t.teardown && Gt(t);
|
|
1081
1081
|
}
|
|
1082
|
-
let
|
|
1083
|
-
const
|
|
1084
|
-
let
|
|
1085
|
-
function
|
|
1082
|
+
let gr = /* @__PURE__ */ new Set();
|
|
1083
|
+
const lt = /* @__PURE__ */ new Map();
|
|
1084
|
+
let Oi = !1;
|
|
1085
|
+
function Tt(e, t) {
|
|
1086
1086
|
var n = {
|
|
1087
1087
|
f: 0,
|
|
1088
1088
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
1089
1089
|
v: e,
|
|
1090
1090
|
reactions: null,
|
|
1091
|
-
equals:
|
|
1091
|
+
equals: mi,
|
|
1092
1092
|
rv: 0,
|
|
1093
1093
|
wv: 0
|
|
1094
1094
|
};
|
|
@@ -1096,79 +1096,79 @@ function kt(e, t) {
|
|
|
1096
1096
|
}
|
|
1097
1097
|
// @__NO_SIDE_EFFECTS__
|
|
1098
1098
|
function j(e, t) {
|
|
1099
|
-
const n =
|
|
1100
|
-
return
|
|
1099
|
+
const n = Tt(e);
|
|
1100
|
+
return Ki(n), n;
|
|
1101
1101
|
}
|
|
1102
1102
|
// @__NO_SIDE_EFFECTS__
|
|
1103
|
-
function
|
|
1104
|
-
const r =
|
|
1105
|
-
return t || (r.equals =
|
|
1103
|
+
function Di(e, t = !1, n = !0) {
|
|
1104
|
+
const r = Tt(e);
|
|
1105
|
+
return t || (r.equals = wi), r;
|
|
1106
1106
|
}
|
|
1107
1107
|
function R(e, t, n = !1) {
|
|
1108
1108
|
E !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
1109
1109
|
// to ensure we error if state is set inside an inspect effect
|
|
1110
|
-
(!
|
|
1111
|
-
let r = n ?
|
|
1110
|
+
(!ke || (E.f & Qr) !== 0) && bi() && (E.f & (J | ct | kr | Qr)) !== 0 && (we === null || !Wt.call(we, e)) && ao();
|
|
1111
|
+
let r = n ? Nt(t) : t;
|
|
1112
1112
|
return Kt(e, r);
|
|
1113
1113
|
}
|
|
1114
1114
|
function Kt(e, t) {
|
|
1115
1115
|
if (!e.equals(t)) {
|
|
1116
1116
|
var n = e.v;
|
|
1117
|
-
|
|
1118
|
-
var r =
|
|
1117
|
+
ft ? lt.set(e, t) : lt.set(e, n), e.v = t;
|
|
1118
|
+
var r = Qe.ensure();
|
|
1119
1119
|
if (r.capture(e, n), (e.f & J) !== 0) {
|
|
1120
1120
|
const i = (
|
|
1121
1121
|
/** @type {Derived} */
|
|
1122
1122
|
e
|
|
1123
1123
|
);
|
|
1124
|
-
(e.f & X) !== 0 &&
|
|
1124
|
+
(e.f & X) !== 0 && Ar(i), Mr(i);
|
|
1125
1125
|
}
|
|
1126
|
-
e.wv =
|
|
1126
|
+
e.wv = Zi(), zi(e, X), C !== null && (C.f & U) !== 0 && (C.f & (Ie | dt)) === 0 && (he === null ? jo([e]) : he.push(e)), !r.is_fork && gr.size > 0 && !Oi && Io();
|
|
1127
1127
|
}
|
|
1128
1128
|
return t;
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1131
|
-
|
|
1132
|
-
for (const e of
|
|
1133
|
-
(e.f & U) !== 0 &&
|
|
1134
|
-
|
|
1130
|
+
function Io() {
|
|
1131
|
+
Oi = !1;
|
|
1132
|
+
for (const e of gr)
|
|
1133
|
+
(e.f & U) !== 0 && F(e, Me), wn(e) && Gt(e);
|
|
1134
|
+
gr.clear();
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function vn(e) {
|
|
1137
1137
|
R(e, e.v + 1);
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1139
|
+
function zi(e, t) {
|
|
1140
1140
|
var n = e.reactions;
|
|
1141
1141
|
if (n !== null)
|
|
1142
1142
|
for (var r = n.length, i = 0; i < r; i++) {
|
|
1143
1143
|
var s = n[i], o = s.f, l = (o & X) === 0;
|
|
1144
|
-
if (l &&
|
|
1144
|
+
if (l && F(s, t), (o & J) !== 0) {
|
|
1145
1145
|
var a = (
|
|
1146
1146
|
/** @type {Derived} */
|
|
1147
1147
|
s
|
|
1148
1148
|
);
|
|
1149
|
-
|
|
1150
|
-
} else l && ((o &
|
|
1149
|
+
Ce?.delete(a), (o & kt) === 0 && (o & me && (s.f |= kt), zi(a, Me));
|
|
1150
|
+
} else l && ((o & ct) !== 0 && qe !== null && qe.add(
|
|
1151
1151
|
/** @type {Effect} */
|
|
1152
1152
|
s
|
|
1153
|
-
),
|
|
1153
|
+
), He(
|
|
1154
1154
|
/** @type {Effect} */
|
|
1155
1155
|
s
|
|
1156
1156
|
));
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
1159
|
-
function
|
|
1160
|
-
if (typeof e != "object" || e === null ||
|
|
1159
|
+
function Nt(e) {
|
|
1160
|
+
if (typeof e != "object" || e === null || or in e)
|
|
1161
1161
|
return e;
|
|
1162
|
-
const t =
|
|
1162
|
+
const t = pi(e);
|
|
1163
1163
|
if (t !== Ys && t !== Ws)
|
|
1164
1164
|
return e;
|
|
1165
|
-
var n = /* @__PURE__ */ new Map(), r =
|
|
1166
|
-
if (
|
|
1165
|
+
var n = /* @__PURE__ */ new Map(), r = Sr(e), i = /* @__PURE__ */ j(0), s = St, o = (l) => {
|
|
1166
|
+
if (St === s)
|
|
1167
1167
|
return l();
|
|
1168
|
-
var a = E, f =
|
|
1169
|
-
|
|
1168
|
+
var a = E, f = St;
|
|
1169
|
+
be(null), ri(s);
|
|
1170
1170
|
var d = l();
|
|
1171
|
-
return
|
|
1171
|
+
return be(a), ri(f), d;
|
|
1172
1172
|
};
|
|
1173
1173
|
return r && n.set("length", /* @__PURE__ */ j(
|
|
1174
1174
|
/** @type {any[]} */
|
|
@@ -1189,23 +1189,23 @@ function Ot(e) {
|
|
|
1189
1189
|
var f = n.get(a);
|
|
1190
1190
|
if (f === void 0) {
|
|
1191
1191
|
if (a in l) {
|
|
1192
|
-
const d = o(() => /* @__PURE__ */ j(
|
|
1193
|
-
n.set(a, d),
|
|
1192
|
+
const d = o(() => /* @__PURE__ */ j(W));
|
|
1193
|
+
n.set(a, d), vn(i);
|
|
1194
1194
|
}
|
|
1195
1195
|
} else
|
|
1196
|
-
R(f,
|
|
1196
|
+
R(f, W), vn(i);
|
|
1197
1197
|
return !0;
|
|
1198
1198
|
},
|
|
1199
1199
|
get(l, a, f) {
|
|
1200
|
-
if (a ===
|
|
1200
|
+
if (a === or)
|
|
1201
1201
|
return e;
|
|
1202
1202
|
var d = n.get(a), v = a in l;
|
|
1203
|
-
if (d === void 0 && (!v ||
|
|
1204
|
-
var
|
|
1203
|
+
if (d === void 0 && (!v || Ot(l, a)?.writable) && (d = o(() => {
|
|
1204
|
+
var m = Nt(v ? l[a] : W), c = /* @__PURE__ */ j(m);
|
|
1205
1205
|
return c;
|
|
1206
1206
|
}), n.set(a, d)), d !== void 0) {
|
|
1207
|
-
var _ =
|
|
1208
|
-
return _ ===
|
|
1207
|
+
var _ = p(d);
|
|
1208
|
+
return _ === W ? void 0 : _;
|
|
1209
1209
|
}
|
|
1210
1210
|
return Reflect.get(l, a, f);
|
|
1211
1211
|
},
|
|
@@ -1213,10 +1213,10 @@ function Ot(e) {
|
|
|
1213
1213
|
var f = Reflect.getOwnPropertyDescriptor(l, a);
|
|
1214
1214
|
if (f && "value" in f) {
|
|
1215
1215
|
var d = n.get(a);
|
|
1216
|
-
d && (f.value =
|
|
1216
|
+
d && (f.value = p(d));
|
|
1217
1217
|
} else if (f === void 0) {
|
|
1218
1218
|
var v = n.get(a), _ = v?.v;
|
|
1219
|
-
if (v !== void 0 && _ !==
|
|
1219
|
+
if (v !== void 0 && _ !== W)
|
|
1220
1220
|
return {
|
|
1221
1221
|
enumerable: !0,
|
|
1222
1222
|
configurable: !0,
|
|
@@ -1227,16 +1227,16 @@ function Ot(e) {
|
|
|
1227
1227
|
return f;
|
|
1228
1228
|
},
|
|
1229
1229
|
has(l, a) {
|
|
1230
|
-
if (a ===
|
|
1230
|
+
if (a === or)
|
|
1231
1231
|
return !0;
|
|
1232
|
-
var f = n.get(a), d = f !== void 0 && f.v !==
|
|
1233
|
-
if (f !== void 0 ||
|
|
1232
|
+
var f = n.get(a), d = f !== void 0 && f.v !== W || Reflect.has(l, a);
|
|
1233
|
+
if (f !== void 0 || C !== null && (!d || Ot(l, a)?.writable)) {
|
|
1234
1234
|
f === void 0 && (f = o(() => {
|
|
1235
|
-
var _ = d ?
|
|
1236
|
-
return
|
|
1235
|
+
var _ = d ? Nt(l[a]) : W, m = /* @__PURE__ */ j(_);
|
|
1236
|
+
return m;
|
|
1237
1237
|
}), n.set(a, f));
|
|
1238
|
-
var v =
|
|
1239
|
-
if (v ===
|
|
1238
|
+
var v = p(f);
|
|
1239
|
+
if (v === W)
|
|
1240
1240
|
return !1;
|
|
1241
1241
|
}
|
|
1242
1242
|
return d;
|
|
@@ -1244,39 +1244,39 @@ function Ot(e) {
|
|
|
1244
1244
|
set(l, a, f, d) {
|
|
1245
1245
|
var v = n.get(a), _ = a in l;
|
|
1246
1246
|
if (r && a === "length")
|
|
1247
|
-
for (var
|
|
1248
|
-
v.v;
|
|
1249
|
-
var c = n.get(
|
|
1250
|
-
c !== void 0 ? R(c,
|
|
1247
|
+
for (var m = f; m < /** @type {Source<number>} */
|
|
1248
|
+
v.v; m += 1) {
|
|
1249
|
+
var c = n.get(m + "");
|
|
1250
|
+
c !== void 0 ? R(c, W) : m in l && (c = o(() => /* @__PURE__ */ j(W)), n.set(m + "", c));
|
|
1251
1251
|
}
|
|
1252
1252
|
if (v === void 0)
|
|
1253
|
-
(!_ ||
|
|
1253
|
+
(!_ || Ot(l, a)?.writable) && (v = o(() => /* @__PURE__ */ j(void 0)), R(v, Nt(f)), n.set(a, v));
|
|
1254
1254
|
else {
|
|
1255
|
-
_ = v.v !==
|
|
1256
|
-
var b = o(() =>
|
|
1255
|
+
_ = v.v !== W;
|
|
1256
|
+
var b = o(() => Nt(f));
|
|
1257
1257
|
R(v, b);
|
|
1258
1258
|
}
|
|
1259
|
-
var
|
|
1260
|
-
if (
|
|
1259
|
+
var w = Reflect.getOwnPropertyDescriptor(l, a);
|
|
1260
|
+
if (w?.set && w.set.call(d, f), !_) {
|
|
1261
1261
|
if (r && typeof a == "string") {
|
|
1262
|
-
var
|
|
1262
|
+
var y = (
|
|
1263
1263
|
/** @type {Source<number>} */
|
|
1264
1264
|
n.get("length")
|
|
1265
1265
|
), N = Number(a);
|
|
1266
|
-
Number.isInteger(N) && N >=
|
|
1266
|
+
Number.isInteger(N) && N >= y.v && R(y, N + 1);
|
|
1267
1267
|
}
|
|
1268
|
-
|
|
1268
|
+
vn(i);
|
|
1269
1269
|
}
|
|
1270
1270
|
return !0;
|
|
1271
1271
|
},
|
|
1272
1272
|
ownKeys(l) {
|
|
1273
|
-
|
|
1273
|
+
p(i);
|
|
1274
1274
|
var a = Reflect.ownKeys(l).filter((v) => {
|
|
1275
1275
|
var _ = n.get(v);
|
|
1276
|
-
return _ === void 0 || _.v !==
|
|
1276
|
+
return _ === void 0 || _.v !== W;
|
|
1277
1277
|
});
|
|
1278
1278
|
for (var [f, d] of n)
|
|
1279
|
-
d.v !==
|
|
1279
|
+
d.v !== W && !(f in l) && a.push(f);
|
|
1280
1280
|
return a;
|
|
1281
1281
|
},
|
|
1282
1282
|
setPrototypeOf() {
|
|
@@ -1285,95 +1285,95 @@ function Ot(e) {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
);
|
|
1287
1287
|
}
|
|
1288
|
-
var
|
|
1289
|
-
function
|
|
1290
|
-
if (
|
|
1291
|
-
|
|
1288
|
+
var ti, Li, Pi, Fi;
|
|
1289
|
+
function mr() {
|
|
1290
|
+
if (ti === void 0) {
|
|
1291
|
+
ti = window, Li = /Firefox/.test(navigator.userAgent);
|
|
1292
1292
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
1293
|
-
|
|
1293
|
+
Pi = Ot(t, "firstChild").get, Fi = Ot(t, "nextSibling").get, Zr(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Zr(n) && (n.__t = void 0);
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
|
-
function
|
|
1296
|
+
function Ae(e = "") {
|
|
1297
1297
|
return document.createTextNode(e);
|
|
1298
1298
|
}
|
|
1299
1299
|
// @__NO_SIDE_EFFECTS__
|
|
1300
|
-
function
|
|
1300
|
+
function ut(e) {
|
|
1301
1301
|
return (
|
|
1302
1302
|
/** @type {TemplateNode | null} */
|
|
1303
|
-
|
|
1303
|
+
Pi.call(e)
|
|
1304
1304
|
);
|
|
1305
1305
|
}
|
|
1306
1306
|
// @__NO_SIDE_EFFECTS__
|
|
1307
|
-
function
|
|
1307
|
+
function Be(e) {
|
|
1308
1308
|
return (
|
|
1309
1309
|
/** @type {TemplateNode | null} */
|
|
1310
|
-
|
|
1310
|
+
Fi.call(e)
|
|
1311
1311
|
);
|
|
1312
1312
|
}
|
|
1313
1313
|
function M(e, t) {
|
|
1314
|
-
if (!
|
|
1315
|
-
return /* @__PURE__ */
|
|
1316
|
-
var n = /* @__PURE__ */
|
|
1314
|
+
if (!k)
|
|
1315
|
+
return /* @__PURE__ */ ut(e);
|
|
1316
|
+
var n = /* @__PURE__ */ ut(S);
|
|
1317
1317
|
if (n === null)
|
|
1318
|
-
n =
|
|
1318
|
+
n = S.appendChild(Ae());
|
|
1319
1319
|
else if (t && n.nodeType !== jn) {
|
|
1320
|
-
var r =
|
|
1321
|
-
return n?.before(r),
|
|
1320
|
+
var r = Ae();
|
|
1321
|
+
return n?.before(r), ce(r), r;
|
|
1322
1322
|
}
|
|
1323
|
-
return t &&
|
|
1323
|
+
return t && Rr(
|
|
1324
1324
|
/** @type {Text} */
|
|
1325
1325
|
n
|
|
1326
|
-
),
|
|
1326
|
+
), ce(n), n;
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1329
|
-
if (!
|
|
1330
|
-
var n = /* @__PURE__ */
|
|
1331
|
-
return n instanceof Comment && n.data === "" ? /* @__PURE__ */
|
|
1328
|
+
function wr(e, t = !1) {
|
|
1329
|
+
if (!k) {
|
|
1330
|
+
var n = /* @__PURE__ */ ut(e);
|
|
1331
|
+
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Be(n) : n;
|
|
1332
1332
|
}
|
|
1333
1333
|
if (t) {
|
|
1334
|
-
if (
|
|
1335
|
-
var r =
|
|
1336
|
-
return
|
|
1334
|
+
if (S?.nodeType !== jn) {
|
|
1335
|
+
var r = Ae();
|
|
1336
|
+
return S?.before(r), ce(r), r;
|
|
1337
1337
|
}
|
|
1338
|
-
|
|
1338
|
+
Rr(
|
|
1339
1339
|
/** @type {Text} */
|
|
1340
|
-
|
|
1340
|
+
S
|
|
1341
1341
|
);
|
|
1342
1342
|
}
|
|
1343
|
-
return
|
|
1343
|
+
return S;
|
|
1344
1344
|
}
|
|
1345
|
-
function
|
|
1346
|
-
let r =
|
|
1345
|
+
function I(e, t = 1, n = !1) {
|
|
1346
|
+
let r = k ? S : e;
|
|
1347
1347
|
for (var i; t--; )
|
|
1348
1348
|
i = r, r = /** @type {TemplateNode} */
|
|
1349
|
-
/* @__PURE__ */
|
|
1350
|
-
if (!
|
|
1349
|
+
/* @__PURE__ */ Be(r);
|
|
1350
|
+
if (!k)
|
|
1351
1351
|
return r;
|
|
1352
1352
|
if (n) {
|
|
1353
1353
|
if (r?.nodeType !== jn) {
|
|
1354
|
-
var s =
|
|
1355
|
-
return r === null ? i?.after(s) : r.before(s),
|
|
1354
|
+
var s = Ae();
|
|
1355
|
+
return r === null ? i?.after(s) : r.before(s), ce(s), s;
|
|
1356
1356
|
}
|
|
1357
|
-
|
|
1357
|
+
Rr(
|
|
1358
1358
|
/** @type {Text} */
|
|
1359
1359
|
r
|
|
1360
1360
|
);
|
|
1361
1361
|
}
|
|
1362
|
-
return
|
|
1362
|
+
return ce(r), r;
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function Hi(e) {
|
|
1365
1365
|
e.textContent = "";
|
|
1366
1366
|
}
|
|
1367
|
-
function
|
|
1367
|
+
function ji() {
|
|
1368
1368
|
return !1;
|
|
1369
1369
|
}
|
|
1370
1370
|
function Ir(e, t, n) {
|
|
1371
1371
|
return (
|
|
1372
1372
|
/** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
|
|
1373
|
-
document.createElementNS(
|
|
1373
|
+
document.createElementNS(hi, e, void 0)
|
|
1374
1374
|
);
|
|
1375
1375
|
}
|
|
1376
|
-
function
|
|
1376
|
+
function Rr(e) {
|
|
1377
1377
|
if (
|
|
1378
1378
|
/** @type {string} */
|
|
1379
1379
|
e.nodeValue.length < 65536
|
|
@@ -1384,30 +1384,30 @@ function Or(e) {
|
|
|
1384
1384
|
t.remove(), e.nodeValue += /** @type {string} */
|
|
1385
1385
|
t.nodeValue, t = e.nextSibling;
|
|
1386
1386
|
}
|
|
1387
|
-
function
|
|
1388
|
-
var t = E, n =
|
|
1389
|
-
|
|
1387
|
+
function Vi(e) {
|
|
1388
|
+
var t = E, n = C;
|
|
1389
|
+
be(null), Ve(null);
|
|
1390
1390
|
try {
|
|
1391
1391
|
return e();
|
|
1392
1392
|
} finally {
|
|
1393
|
-
|
|
1393
|
+
be(t), Ve(n);
|
|
1394
1394
|
}
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1397
|
-
|
|
1396
|
+
function Ro(e) {
|
|
1397
|
+
C === null && (E === null && ro(), no()), ft && to();
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1399
|
+
function No(e, t) {
|
|
1400
1400
|
var n = t.last;
|
|
1401
1401
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1402
1402
|
}
|
|
1403
|
-
function
|
|
1404
|
-
var n =
|
|
1403
|
+
function Ye(e, t) {
|
|
1404
|
+
var n = C;
|
|
1405
1405
|
n !== null && (n.f & Q) !== 0 && (e |= Q);
|
|
1406
1406
|
var r = {
|
|
1407
1407
|
ctx: te,
|
|
1408
1408
|
deps: null,
|
|
1409
1409
|
nodes: null,
|
|
1410
|
-
f: e | X |
|
|
1410
|
+
f: e | X | me,
|
|
1411
1411
|
first: null,
|
|
1412
1412
|
fn: t,
|
|
1413
1413
|
last: null,
|
|
@@ -1419,18 +1419,18 @@ function Be(e, t) {
|
|
|
1419
1419
|
wv: 0,
|
|
1420
1420
|
ac: null
|
|
1421
1421
|
}, i = r;
|
|
1422
|
-
if ((e &
|
|
1423
|
-
|
|
1422
|
+
if ((e & Zt) !== 0)
|
|
1423
|
+
Jt !== null ? Jt.push(r) : He(r);
|
|
1424
1424
|
else if (t !== null) {
|
|
1425
1425
|
try {
|
|
1426
|
-
|
|
1426
|
+
Gt(r);
|
|
1427
1427
|
} catch (o) {
|
|
1428
1428
|
throw ee(r), o;
|
|
1429
1429
|
}
|
|
1430
1430
|
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
|
|
1431
|
-
(i.f &
|
|
1431
|
+
(i.f & At) === 0 && (i = i.first, (e & ct) !== 0 && (e & Ut) !== 0 && i !== null && (i.f |= Ut));
|
|
1432
1432
|
}
|
|
1433
|
-
if (i !== null && (i.parent = n, n !== null &&
|
|
1433
|
+
if (i !== null && (i.parent = n, n !== null && No(i, n), E !== null && (E.f & J) !== 0 && (e & dt) === 0)) {
|
|
1434
1434
|
var s = (
|
|
1435
1435
|
/** @type {Derived} */
|
|
1436
1436
|
E
|
|
@@ -1439,19 +1439,19 @@ function Be(e, t) {
|
|
|
1439
1439
|
}
|
|
1440
1440
|
return r;
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1443
|
-
return E !== null && !
|
|
1442
|
+
function Nr() {
|
|
1443
|
+
return E !== null && !ke;
|
|
1444
1444
|
}
|
|
1445
1445
|
function Oo(e) {
|
|
1446
|
-
const t =
|
|
1447
|
-
return
|
|
1446
|
+
const t = Ye(qt, null);
|
|
1447
|
+
return F(t, U), t.teardown = e, t;
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1450
|
-
|
|
1449
|
+
function Bi(e) {
|
|
1450
|
+
Ro();
|
|
1451
1451
|
var t = (
|
|
1452
1452
|
/** @type {Effect} */
|
|
1453
|
-
|
|
1454
|
-
), n = !E && (t &
|
|
1453
|
+
C.f
|
|
1454
|
+
), n = !E && (t & Ie) !== 0 && (t & Mt) === 0;
|
|
1455
1455
|
if (n) {
|
|
1456
1456
|
var r = (
|
|
1457
1457
|
/** @type {ComponentContext} */
|
|
@@ -1459,75 +1459,75 @@ function Wi(e) {
|
|
|
1459
1459
|
);
|
|
1460
1460
|
(r.e ?? (r.e = [])).push(e);
|
|
1461
1461
|
} else
|
|
1462
|
-
return
|
|
1462
|
+
return Yi(e);
|
|
1463
1463
|
}
|
|
1464
|
-
function
|
|
1465
|
-
return
|
|
1464
|
+
function Yi(e) {
|
|
1465
|
+
return Ye(Zt | Js, e);
|
|
1466
1466
|
}
|
|
1467
1467
|
function Do(e) {
|
|
1468
|
-
|
|
1469
|
-
const t =
|
|
1468
|
+
Qe.ensure();
|
|
1469
|
+
const t = Ye(dt | At, e);
|
|
1470
1470
|
return () => {
|
|
1471
1471
|
ee(t);
|
|
1472
1472
|
};
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1475
|
-
|
|
1476
|
-
const t =
|
|
1474
|
+
function zo(e) {
|
|
1475
|
+
Qe.ensure();
|
|
1476
|
+
const t = Ye(dt | At, e);
|
|
1477
1477
|
return (n = {}) => new Promise((r) => {
|
|
1478
|
-
n.outro ?
|
|
1478
|
+
n.outro ? Et(t, () => {
|
|
1479
1479
|
ee(t), r(void 0);
|
|
1480
1480
|
}) : (ee(t), r(void 0));
|
|
1481
1481
|
});
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1484
|
-
return
|
|
1483
|
+
function Lo(e) {
|
|
1484
|
+
return Ye(Zt, e);
|
|
1485
1485
|
}
|
|
1486
|
-
function
|
|
1487
|
-
return
|
|
1486
|
+
function Po(e) {
|
|
1487
|
+
return Ye(kr | At, e);
|
|
1488
1488
|
}
|
|
1489
|
-
function
|
|
1490
|
-
return
|
|
1489
|
+
function Wi(e, t = 0) {
|
|
1490
|
+
return Ye(qt | t, e);
|
|
1491
1491
|
}
|
|
1492
|
-
function
|
|
1492
|
+
function De(e, t = [], n = [], r = []) {
|
|
1493
1493
|
xo(r, t, n, (i) => {
|
|
1494
|
-
|
|
1494
|
+
Ye(qt, () => e(...i.map(p)));
|
|
1495
1495
|
});
|
|
1496
1496
|
}
|
|
1497
|
-
function
|
|
1498
|
-
var n =
|
|
1497
|
+
function Or(e, t = 0) {
|
|
1498
|
+
var n = Ye(ct | t, e);
|
|
1499
1499
|
return n;
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1502
|
-
return
|
|
1501
|
+
function _e(e) {
|
|
1502
|
+
return Ye(Ie | At, e);
|
|
1503
1503
|
}
|
|
1504
|
-
function
|
|
1504
|
+
function qi(e) {
|
|
1505
1505
|
var t = e.teardown;
|
|
1506
1506
|
if (t !== null) {
|
|
1507
|
-
const n =
|
|
1508
|
-
|
|
1507
|
+
const n = ft, r = E;
|
|
1508
|
+
ni(!0), be(null);
|
|
1509
1509
|
try {
|
|
1510
1510
|
t.call(null);
|
|
1511
1511
|
} finally {
|
|
1512
|
-
|
|
1512
|
+
ni(n), be(r);
|
|
1513
1513
|
}
|
|
1514
1514
|
}
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1516
|
+
function Dr(e, t = !1) {
|
|
1517
1517
|
var n = e.first;
|
|
1518
1518
|
for (e.first = e.last = null; n !== null; ) {
|
|
1519
1519
|
const i = n.ac;
|
|
1520
|
-
i !== null &&
|
|
1521
|
-
i.abort(
|
|
1520
|
+
i !== null && Vi(() => {
|
|
1521
|
+
i.abort(_t);
|
|
1522
1522
|
});
|
|
1523
1523
|
var r = n.next;
|
|
1524
|
-
(n.f &
|
|
1524
|
+
(n.f & dt) !== 0 ? n.parent = null : ee(n, t), n = r;
|
|
1525
1525
|
}
|
|
1526
1526
|
}
|
|
1527
|
-
function
|
|
1527
|
+
function Fo(e) {
|
|
1528
1528
|
for (var t = e.first; t !== null; ) {
|
|
1529
1529
|
var n = t.next;
|
|
1530
|
-
(t.f &
|
|
1530
|
+
(t.f & Ie) === 0 && ee(t), t = n;
|
|
1531
1531
|
}
|
|
1532
1532
|
}
|
|
1533
1533
|
function ee(e, t = !0) {
|
|
@@ -1536,28 +1536,28 @@ function ee(e, t = !0) {
|
|
|
1536
1536
|
e.nodes.start,
|
|
1537
1537
|
/** @type {TemplateNode} */
|
|
1538
1538
|
e.nodes.end
|
|
1539
|
-
), n = !0),
|
|
1539
|
+
), n = !0), Dr(e, t && !n), hn(e, 0), F(e, je);
|
|
1540
1540
|
var r = e.nodes && e.nodes.t;
|
|
1541
1541
|
if (r !== null)
|
|
1542
1542
|
for (const s of r)
|
|
1543
1543
|
s.stop();
|
|
1544
|
-
|
|
1544
|
+
qi(e);
|
|
1545
1545
|
var i = e.parent;
|
|
1546
|
-
i !== null && i.first !== null &&
|
|
1546
|
+
i !== null && i.first !== null && Ui(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
|
|
1547
1547
|
}
|
|
1548
1548
|
function Ho(e, t) {
|
|
1549
1549
|
for (; e !== null; ) {
|
|
1550
|
-
var n = e === t ? null : /* @__PURE__ */
|
|
1550
|
+
var n = e === t ? null : /* @__PURE__ */ Be(e);
|
|
1551
1551
|
e.remove(), e = n;
|
|
1552
1552
|
}
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function Ui(e) {
|
|
1555
1555
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1556
1556
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1557
1557
|
}
|
|
1558
|
-
function
|
|
1558
|
+
function Et(e, t, n = !0) {
|
|
1559
1559
|
var r = [];
|
|
1560
|
-
|
|
1560
|
+
Xi(e, r, !0);
|
|
1561
1561
|
var i = () => {
|
|
1562
1562
|
n && ee(e), t && t();
|
|
1563
1563
|
}, s = r.length;
|
|
@@ -1568,7 +1568,7 @@ function xt(e, t, n = !0) {
|
|
|
1568
1568
|
} else
|
|
1569
1569
|
i();
|
|
1570
1570
|
}
|
|
1571
|
-
function
|
|
1571
|
+
function Xi(e, t, n) {
|
|
1572
1572
|
if ((e.f & Q) === 0) {
|
|
1573
1573
|
e.f ^= Q;
|
|
1574
1574
|
var r = e.nodes && e.nodes.t;
|
|
@@ -1576,23 +1576,23 @@ function Gi(e, t, n) {
|
|
|
1576
1576
|
for (const l of r)
|
|
1577
1577
|
(l.is_global || n) && t.push(l);
|
|
1578
1578
|
for (var i = e.first; i !== null; ) {
|
|
1579
|
-
var s = i.next, o = (i.f &
|
|
1579
|
+
var s = i.next, o = (i.f & Ut) !== 0 || // If this is a branch effect without a block effect parent,
|
|
1580
1580
|
// it means the parent block effect was pruned. In that case,
|
|
1581
1581
|
// transparency information was transferred to the branch effect.
|
|
1582
|
-
(i.f &
|
|
1583
|
-
|
|
1582
|
+
(i.f & Ie) !== 0 && (e.f & ct) !== 0;
|
|
1583
|
+
Xi(i, t, o ? n : !1), i = s;
|
|
1584
1584
|
}
|
|
1585
1585
|
}
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1588
|
-
|
|
1587
|
+
function zr(e) {
|
|
1588
|
+
Ji(e, !0);
|
|
1589
1589
|
}
|
|
1590
|
-
function
|
|
1590
|
+
function Ji(e, t) {
|
|
1591
1591
|
if ((e.f & Q) !== 0) {
|
|
1592
1592
|
e.f ^= Q;
|
|
1593
1593
|
for (var n = e.first; n !== null; ) {
|
|
1594
|
-
var r = n.next, i = (n.f &
|
|
1595
|
-
|
|
1594
|
+
var r = n.next, i = (n.f & Ut) !== 0 || (n.f & Ie) !== 0;
|
|
1595
|
+
Ji(n, i ? t : !1), n = r;
|
|
1596
1596
|
}
|
|
1597
1597
|
var s = e.nodes && e.nodes.t;
|
|
1598
1598
|
if (s !== null)
|
|
@@ -1600,130 +1600,130 @@ function Ki(e, t) {
|
|
|
1600
1600
|
(o.is_global || t) && o.in();
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
1603
|
-
function
|
|
1603
|
+
function Lr(e, t) {
|
|
1604
1604
|
if (e.nodes)
|
|
1605
1605
|
for (var n = e.nodes.start, r = e.nodes.end; n !== null; ) {
|
|
1606
|
-
var i = n === r ? null : /* @__PURE__ */
|
|
1606
|
+
var i = n === r ? null : /* @__PURE__ */ Be(n);
|
|
1607
1607
|
t.append(n), n = i;
|
|
1608
1608
|
}
|
|
1609
1609
|
}
|
|
1610
|
-
let
|
|
1611
|
-
function
|
|
1612
|
-
|
|
1610
|
+
let In = !1, ft = !1;
|
|
1611
|
+
function ni(e) {
|
|
1612
|
+
ft = e;
|
|
1613
1613
|
}
|
|
1614
|
-
let E = null,
|
|
1615
|
-
function
|
|
1614
|
+
let E = null, ke = !1;
|
|
1615
|
+
function be(e) {
|
|
1616
1616
|
E = e;
|
|
1617
1617
|
}
|
|
1618
|
-
let
|
|
1619
|
-
function
|
|
1620
|
-
|
|
1618
|
+
let C = null;
|
|
1619
|
+
function Ve(e) {
|
|
1620
|
+
C = e;
|
|
1621
1621
|
}
|
|
1622
|
-
let
|
|
1623
|
-
function
|
|
1624
|
-
E !== null && (
|
|
1622
|
+
let we = null;
|
|
1623
|
+
function Ki(e) {
|
|
1624
|
+
E !== null && (we === null ? we = [e] : we.push(e));
|
|
1625
1625
|
}
|
|
1626
|
-
let se = null,
|
|
1626
|
+
let se = null, le = 0, he = null;
|
|
1627
1627
|
function jo(e) {
|
|
1628
|
-
|
|
1628
|
+
he = e;
|
|
1629
1629
|
}
|
|
1630
|
-
let
|
|
1631
|
-
function
|
|
1632
|
-
|
|
1630
|
+
let Gi = 1, mt = 0, St = mt;
|
|
1631
|
+
function ri(e) {
|
|
1632
|
+
St = e;
|
|
1633
1633
|
}
|
|
1634
|
-
function
|
|
1635
|
-
return ++
|
|
1634
|
+
function Zi() {
|
|
1635
|
+
return ++Gi;
|
|
1636
1636
|
}
|
|
1637
|
-
function
|
|
1637
|
+
function wn(e) {
|
|
1638
1638
|
var t = e.f;
|
|
1639
1639
|
if ((t & X) !== 0)
|
|
1640
1640
|
return !0;
|
|
1641
|
-
if (t & J && (e.f &= ~
|
|
1641
|
+
if (t & J && (e.f &= ~kt), (t & Me) !== 0) {
|
|
1642
1642
|
for (var n = (
|
|
1643
1643
|
/** @type {Value[]} */
|
|
1644
1644
|
e.deps
|
|
1645
1645
|
), r = n.length, i = 0; i < r; i++) {
|
|
1646
1646
|
var s = n[i];
|
|
1647
|
-
if (
|
|
1647
|
+
if (wn(
|
|
1648
1648
|
/** @type {Derived} */
|
|
1649
1649
|
s
|
|
1650
|
-
) &&
|
|
1650
|
+
) && Ri(
|
|
1651
1651
|
/** @type {Derived} */
|
|
1652
1652
|
s
|
|
1653
1653
|
), s.wv > e.wv)
|
|
1654
1654
|
return !0;
|
|
1655
1655
|
}
|
|
1656
|
-
(t &
|
|
1656
|
+
(t & me) !== 0 && // During time traveling we don't want to reset the status so that
|
|
1657
1657
|
// traversal of the graph in the other batches still happens
|
|
1658
|
-
|
|
1658
|
+
Ce === null && F(e, U);
|
|
1659
1659
|
}
|
|
1660
1660
|
return !1;
|
|
1661
1661
|
}
|
|
1662
|
-
function
|
|
1662
|
+
function Qi(e, t, n = !0) {
|
|
1663
1663
|
var r = e.reactions;
|
|
1664
|
-
if (r !== null && !(
|
|
1664
|
+
if (r !== null && !(we !== null && Wt.call(we, e)))
|
|
1665
1665
|
for (var i = 0; i < r.length; i++) {
|
|
1666
1666
|
var s = r[i];
|
|
1667
|
-
(s.f & J) !== 0 ?
|
|
1667
|
+
(s.f & J) !== 0 ? Qi(
|
|
1668
1668
|
/** @type {Derived} */
|
|
1669
1669
|
s,
|
|
1670
1670
|
t,
|
|
1671
1671
|
!1
|
|
1672
|
-
) : t === s && (n ?
|
|
1672
|
+
) : t === s && (n ? F(s, X) : (s.f & U) !== 0 && F(s, Me), He(
|
|
1673
1673
|
/** @type {Effect} */
|
|
1674
1674
|
s
|
|
1675
1675
|
));
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
|
-
function
|
|
1678
|
+
function es(e) {
|
|
1679
1679
|
var b;
|
|
1680
|
-
var t = se, n =
|
|
1680
|
+
var t = se, n = le, r = he, i = E, s = we, o = te, l = ke, a = St, f = e.f;
|
|
1681
1681
|
se = /** @type {null | Value[]} */
|
|
1682
|
-
null,
|
|
1683
|
-
e.ac.abort(
|
|
1682
|
+
null, le = 0, he = null, E = (f & (Ie | dt)) === 0 ? e : null, we = null, Xt(e.ctx), ke = !1, St = ++mt, e.ac !== null && (Vi(() => {
|
|
1683
|
+
e.ac.abort(_t);
|
|
1684
1684
|
}), e.ac = null);
|
|
1685
1685
|
try {
|
|
1686
|
-
e.f |=
|
|
1686
|
+
e.f |= ur;
|
|
1687
1687
|
var d = (
|
|
1688
1688
|
/** @type {Function} */
|
|
1689
1689
|
e.fn
|
|
1690
1690
|
), v = d();
|
|
1691
|
-
e.f |=
|
|
1692
|
-
var _ = e.deps,
|
|
1691
|
+
e.f |= Mt;
|
|
1692
|
+
var _ = e.deps, m = D?.is_fork;
|
|
1693
1693
|
if (se !== null) {
|
|
1694
1694
|
var c;
|
|
1695
|
-
if (
|
|
1696
|
-
for (_.length =
|
|
1697
|
-
_[
|
|
1695
|
+
if (m || hn(e, le), _ !== null && le > 0)
|
|
1696
|
+
for (_.length = le + se.length, c = 0; c < se.length; c++)
|
|
1697
|
+
_[le + c] = se[c];
|
|
1698
1698
|
else
|
|
1699
1699
|
e.deps = _ = se;
|
|
1700
|
-
if (
|
|
1701
|
-
for (c =
|
|
1700
|
+
if (Nr() && (e.f & me) !== 0)
|
|
1701
|
+
for (c = le; c < _.length; c++)
|
|
1702
1702
|
((b = _[c]).reactions ?? (b.reactions = [])).push(e);
|
|
1703
|
-
} else !
|
|
1704
|
-
if (
|
|
1703
|
+
} else !m && _ !== null && le < _.length && (hn(e, le), _.length = le);
|
|
1704
|
+
if (bi() && he !== null && !ke && _ !== null && (e.f & (J | Me | X)) === 0)
|
|
1705
1705
|
for (c = 0; c < /** @type {Source[]} */
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1706
|
+
he.length; c++)
|
|
1707
|
+
Qi(
|
|
1708
|
+
he[c],
|
|
1709
1709
|
/** @type {Effect} */
|
|
1710
1710
|
e
|
|
1711
1711
|
);
|
|
1712
1712
|
if (i !== null && i !== e) {
|
|
1713
|
-
if (
|
|
1714
|
-
for (let
|
|
1715
|
-
i.deps[
|
|
1713
|
+
if (mt++, i.deps !== null)
|
|
1714
|
+
for (let w = 0; w < n; w += 1)
|
|
1715
|
+
i.deps[w].rv = mt;
|
|
1716
1716
|
if (t !== null)
|
|
1717
|
-
for (const
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
}
|
|
1722
|
-
return (e.f &
|
|
1723
|
-
} catch (
|
|
1724
|
-
return
|
|
1717
|
+
for (const w of t)
|
|
1718
|
+
w.rv = mt;
|
|
1719
|
+
he !== null && (r === null ? r = he : r.push(.../** @type {Source[]} */
|
|
1720
|
+
he));
|
|
1721
|
+
}
|
|
1722
|
+
return (e.f & ot) !== 0 && (e.f ^= ot), v;
|
|
1723
|
+
} catch (w) {
|
|
1724
|
+
return $i(w);
|
|
1725
1725
|
} finally {
|
|
1726
|
-
e.f ^=
|
|
1726
|
+
e.f ^= ur, se = t, le = n, he = r, E = i, we = s, Xt(o), ke = l, St = a;
|
|
1727
1727
|
}
|
|
1728
1728
|
}
|
|
1729
1729
|
function Vo(e, t) {
|
|
@@ -1738,114 +1738,114 @@ function Vo(e, t) {
|
|
|
1738
1738
|
if (n === null && (t.f & J) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1739
1739
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1740
1740
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1741
|
-
(se === null || !
|
|
1741
|
+
(se === null || !Wt.call(se, t))) {
|
|
1742
1742
|
var s = (
|
|
1743
1743
|
/** @type {Derived} */
|
|
1744
1744
|
t
|
|
1745
1745
|
);
|
|
1746
|
-
(s.f &
|
|
1746
|
+
(s.f & me) !== 0 && (s.f ^= me, s.f &= ~kt), Mr(s), Ao(s), hn(s, 0);
|
|
1747
1747
|
}
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1749
|
+
function hn(e, t) {
|
|
1750
1750
|
var n = e.deps;
|
|
1751
1751
|
if (n !== null)
|
|
1752
1752
|
for (var r = t; r < n.length; r++)
|
|
1753
1753
|
Vo(e, n[r]);
|
|
1754
1754
|
}
|
|
1755
|
-
function
|
|
1755
|
+
function Gt(e) {
|
|
1756
1756
|
var t = e.f;
|
|
1757
|
-
if ((t &
|
|
1758
|
-
|
|
1759
|
-
var n =
|
|
1760
|
-
|
|
1757
|
+
if ((t & je) === 0) {
|
|
1758
|
+
F(e, U);
|
|
1759
|
+
var n = C, r = In;
|
|
1760
|
+
C = e, In = !0;
|
|
1761
1761
|
try {
|
|
1762
|
-
(t & (
|
|
1763
|
-
var i =
|
|
1764
|
-
e.teardown = typeof i == "function" ? i : null, e.wv =
|
|
1762
|
+
(t & (ct | Cr)) !== 0 ? Fo(e) : Dr(e), qi(e);
|
|
1763
|
+
var i = es(e);
|
|
1764
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = Gi;
|
|
1765
1765
|
var s;
|
|
1766
|
-
|
|
1766
|
+
lr && ho && (e.f & X) !== 0 && e.deps;
|
|
1767
1767
|
} finally {
|
|
1768
|
-
|
|
1768
|
+
In = r, C = n;
|
|
1769
1769
|
}
|
|
1770
1770
|
}
|
|
1771
1771
|
}
|
|
1772
|
-
function
|
|
1772
|
+
function p(e) {
|
|
1773
1773
|
var t = e.f, n = (t & J) !== 0;
|
|
1774
|
-
if (E !== null && !
|
|
1775
|
-
var r =
|
|
1776
|
-
if (!r && (
|
|
1774
|
+
if (E !== null && !ke) {
|
|
1775
|
+
var r = C !== null && (C.f & je) !== 0;
|
|
1776
|
+
if (!r && (we === null || !Wt.call(we, e))) {
|
|
1777
1777
|
var i = E.deps;
|
|
1778
|
-
if ((E.f &
|
|
1779
|
-
e.rv <
|
|
1778
|
+
if ((E.f & ur) !== 0)
|
|
1779
|
+
e.rv < mt && (e.rv = mt, se === null && i !== null && i[le] === e ? le++ : se === null ? se = [e] : se.push(e));
|
|
1780
1780
|
else {
|
|
1781
1781
|
(E.deps ?? (E.deps = [])).push(e);
|
|
1782
1782
|
var s = e.reactions;
|
|
1783
|
-
s === null ? e.reactions = [E] :
|
|
1783
|
+
s === null ? e.reactions = [E] : Wt.call(s, E) || s.push(E);
|
|
1784
1784
|
}
|
|
1785
1785
|
}
|
|
1786
1786
|
}
|
|
1787
|
-
if (
|
|
1788
|
-
return
|
|
1787
|
+
if (ft && lt.has(e))
|
|
1788
|
+
return lt.get(e);
|
|
1789
1789
|
if (n) {
|
|
1790
1790
|
var o = (
|
|
1791
1791
|
/** @type {Derived} */
|
|
1792
1792
|
e
|
|
1793
1793
|
);
|
|
1794
|
-
if (
|
|
1794
|
+
if (ft) {
|
|
1795
1795
|
var l = o.v;
|
|
1796
|
-
return ((o.f & U) === 0 && o.reactions !== null ||
|
|
1796
|
+
return ((o.f & U) === 0 && o.reactions !== null || ns(o)) && (l = Ar(o)), lt.set(o, l), l;
|
|
1797
1797
|
}
|
|
1798
|
-
var a = (o.f &
|
|
1799
|
-
|
|
1798
|
+
var a = (o.f & me) === 0 && !ke && E !== null && (In || (E.f & me) !== 0), f = (o.f & Mt) === 0;
|
|
1799
|
+
wn(o) && (a && (o.f |= me), Ri(o)), a && !f && (Ni(o), ts(o));
|
|
1800
1800
|
}
|
|
1801
|
-
if (
|
|
1802
|
-
return
|
|
1803
|
-
if ((e.f &
|
|
1801
|
+
if (Ce?.has(e))
|
|
1802
|
+
return Ce.get(e);
|
|
1803
|
+
if ((e.f & ot) !== 0)
|
|
1804
1804
|
throw e.v;
|
|
1805
1805
|
return e.v;
|
|
1806
1806
|
}
|
|
1807
|
-
function
|
|
1808
|
-
if (e.f |=
|
|
1807
|
+
function ts(e) {
|
|
1808
|
+
if (e.f |= me, e.deps !== null)
|
|
1809
1809
|
for (const t of e.deps)
|
|
1810
|
-
(t.reactions ?? (t.reactions = [])).push(e), (t.f & J) !== 0 && (t.f &
|
|
1810
|
+
(t.reactions ?? (t.reactions = [])).push(e), (t.f & J) !== 0 && (t.f & me) === 0 && (Ni(
|
|
1811
1811
|
/** @type {Derived} */
|
|
1812
1812
|
t
|
|
1813
|
-
),
|
|
1813
|
+
), ts(
|
|
1814
1814
|
/** @type {Derived} */
|
|
1815
1815
|
t
|
|
1816
1816
|
));
|
|
1817
1817
|
}
|
|
1818
|
-
function
|
|
1819
|
-
if (e.v ===
|
|
1818
|
+
function ns(e) {
|
|
1819
|
+
if (e.v === W) return !0;
|
|
1820
1820
|
if (e.deps === null) return !1;
|
|
1821
1821
|
for (const t of e.deps)
|
|
1822
|
-
if (
|
|
1822
|
+
if (lt.has(t) || (t.f & J) !== 0 && ns(
|
|
1823
1823
|
/** @type {Derived} */
|
|
1824
1824
|
t
|
|
1825
1825
|
))
|
|
1826
1826
|
return !0;
|
|
1827
1827
|
return !1;
|
|
1828
1828
|
}
|
|
1829
|
-
function
|
|
1830
|
-
var t =
|
|
1829
|
+
function Xn(e) {
|
|
1830
|
+
var t = ke;
|
|
1831
1831
|
try {
|
|
1832
|
-
return
|
|
1832
|
+
return ke = !0, e();
|
|
1833
1833
|
} finally {
|
|
1834
|
-
|
|
1834
|
+
ke = t;
|
|
1835
1835
|
}
|
|
1836
1836
|
}
|
|
1837
|
-
const
|
|
1838
|
-
function
|
|
1839
|
-
(t[
|
|
1837
|
+
const wt = /* @__PURE__ */ Symbol("events"), rs = /* @__PURE__ */ new Set(), br = /* @__PURE__ */ new Set();
|
|
1838
|
+
function Ue(e, t, n) {
|
|
1839
|
+
(t[wt] ?? (t[wt] = {}))[e] = n;
|
|
1840
1840
|
}
|
|
1841
|
-
function
|
|
1841
|
+
function Pr(e) {
|
|
1842
1842
|
for (var t = 0; t < e.length; t++)
|
|
1843
|
-
|
|
1844
|
-
for (var n of
|
|
1843
|
+
rs.add(e[t]);
|
|
1844
|
+
for (var n of br)
|
|
1845
1845
|
n(e);
|
|
1846
1846
|
}
|
|
1847
|
-
let
|
|
1848
|
-
function
|
|
1847
|
+
let ii = null;
|
|
1848
|
+
function si(e) {
|
|
1849
1849
|
var t = this, n = (
|
|
1850
1850
|
/** @type {Node} */
|
|
1851
1851
|
t.ownerDocument
|
|
@@ -1853,13 +1853,13 @@ function oi(e) {
|
|
|
1853
1853
|
/** @type {null | Element} */
|
|
1854
1854
|
i[0] || e.target
|
|
1855
1855
|
);
|
|
1856
|
-
|
|
1857
|
-
var o = 0, l =
|
|
1856
|
+
ii = e;
|
|
1857
|
+
var o = 0, l = ii === e && e[wt];
|
|
1858
1858
|
if (l) {
|
|
1859
1859
|
var a = i.indexOf(l);
|
|
1860
1860
|
if (a !== -1 && (t === document || t === /** @type {any} */
|
|
1861
1861
|
window)) {
|
|
1862
|
-
e[
|
|
1862
|
+
e[wt] = t;
|
|
1863
1863
|
return;
|
|
1864
1864
|
}
|
|
1865
1865
|
var f = i.indexOf(t);
|
|
@@ -1869,40 +1869,40 @@ function oi(e) {
|
|
|
1869
1869
|
}
|
|
1870
1870
|
if (s = /** @type {Element} */
|
|
1871
1871
|
i[o] || e.target, s !== t) {
|
|
1872
|
-
|
|
1872
|
+
On(e, "currentTarget", {
|
|
1873
1873
|
configurable: !0,
|
|
1874
1874
|
get() {
|
|
1875
1875
|
return s || n;
|
|
1876
1876
|
}
|
|
1877
1877
|
});
|
|
1878
|
-
var d = E, v =
|
|
1879
|
-
|
|
1878
|
+
var d = E, v = C;
|
|
1879
|
+
be(null), Ve(null);
|
|
1880
1880
|
try {
|
|
1881
|
-
for (var _,
|
|
1881
|
+
for (var _, m = []; s !== null; ) {
|
|
1882
1882
|
var c = s.assignedSlot || s.parentNode || /** @type {any} */
|
|
1883
1883
|
s.host || null;
|
|
1884
1884
|
try {
|
|
1885
|
-
var b = s[
|
|
1885
|
+
var b = s[wt]?.[r];
|
|
1886
1886
|
b != null && (!/** @type {any} */
|
|
1887
1887
|
s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1888
1888
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1889
1889
|
e.target === s) && b.call(s, e);
|
|
1890
|
-
} catch (
|
|
1891
|
-
_ ?
|
|
1890
|
+
} catch (w) {
|
|
1891
|
+
_ ? m.push(w) : _ = w;
|
|
1892
1892
|
}
|
|
1893
1893
|
if (e.cancelBubble || c === t || c === null)
|
|
1894
1894
|
break;
|
|
1895
1895
|
s = c;
|
|
1896
1896
|
}
|
|
1897
1897
|
if (_) {
|
|
1898
|
-
for (let
|
|
1898
|
+
for (let w of m)
|
|
1899
1899
|
queueMicrotask(() => {
|
|
1900
|
-
throw
|
|
1900
|
+
throw w;
|
|
1901
1901
|
});
|
|
1902
1902
|
throw _;
|
|
1903
1903
|
}
|
|
1904
1904
|
} finally {
|
|
1905
|
-
e[
|
|
1905
|
+
e[wt] = t, delete e.currentTarget, be(d), Ve(v);
|
|
1906
1906
|
}
|
|
1907
1907
|
}
|
|
1908
1908
|
}
|
|
@@ -1919,40 +1919,40 @@ function Yo(e) {
|
|
|
1919
1919
|
Bo?.createHTML(e) ?? e
|
|
1920
1920
|
);
|
|
1921
1921
|
}
|
|
1922
|
-
function
|
|
1922
|
+
function is(e) {
|
|
1923
1923
|
var t = Ir("template");
|
|
1924
1924
|
return t.innerHTML = Yo(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1925
1925
|
}
|
|
1926
|
-
function
|
|
1926
|
+
function at(e, t) {
|
|
1927
1927
|
var n = (
|
|
1928
1928
|
/** @type {Effect} */
|
|
1929
|
-
|
|
1929
|
+
C
|
|
1930
1930
|
);
|
|
1931
1931
|
n.nodes === null && (n.nodes = { start: e, end: t, a: null, t: null });
|
|
1932
1932
|
}
|
|
1933
1933
|
// @__NO_SIDE_EFFECTS__
|
|
1934
|
-
function
|
|
1934
|
+
function de(e, t) {
|
|
1935
1935
|
var n = (t & Hs) !== 0, r = (t & js) !== 0, i, s = !e.startsWith("<!>");
|
|
1936
1936
|
return () => {
|
|
1937
|
-
if (
|
|
1938
|
-
return
|
|
1939
|
-
i === void 0 && (i =
|
|
1940
|
-
/* @__PURE__ */
|
|
1937
|
+
if (k)
|
|
1938
|
+
return at(S, null), S;
|
|
1939
|
+
i === void 0 && (i = is(s ? e : "<!>" + e), n || (i = /** @type {TemplateNode} */
|
|
1940
|
+
/* @__PURE__ */ ut(i)));
|
|
1941
1941
|
var o = (
|
|
1942
1942
|
/** @type {TemplateNode} */
|
|
1943
|
-
r ||
|
|
1943
|
+
r || Li ? document.importNode(i, !0) : i.cloneNode(!0)
|
|
1944
1944
|
);
|
|
1945
1945
|
if (n) {
|
|
1946
1946
|
var l = (
|
|
1947
1947
|
/** @type {TemplateNode} */
|
|
1948
|
-
/* @__PURE__ */
|
|
1948
|
+
/* @__PURE__ */ ut(o)
|
|
1949
1949
|
), a = (
|
|
1950
1950
|
/** @type {TemplateNode} */
|
|
1951
1951
|
o.lastChild
|
|
1952
1952
|
);
|
|
1953
|
-
|
|
1953
|
+
at(l, a);
|
|
1954
1954
|
} else
|
|
1955
|
-
|
|
1955
|
+
at(o, o);
|
|
1956
1956
|
return o;
|
|
1957
1957
|
};
|
|
1958
1958
|
}
|
|
@@ -1960,43 +1960,43 @@ function le(e, t) {
|
|
|
1960
1960
|
function Wo(e, t, n = "svg") {
|
|
1961
1961
|
var r = !e.startsWith("<!>"), i = `<${n}>${r ? e : "<!>" + e}</${n}>`, s;
|
|
1962
1962
|
return () => {
|
|
1963
|
-
if (
|
|
1964
|
-
return
|
|
1963
|
+
if (k)
|
|
1964
|
+
return at(S, null), S;
|
|
1965
1965
|
if (!s) {
|
|
1966
1966
|
var o = (
|
|
1967
1967
|
/** @type {DocumentFragment} */
|
|
1968
|
-
|
|
1968
|
+
is(i)
|
|
1969
1969
|
), l = (
|
|
1970
1970
|
/** @type {Element} */
|
|
1971
|
-
/* @__PURE__ */
|
|
1971
|
+
/* @__PURE__ */ ut(o)
|
|
1972
1972
|
);
|
|
1973
1973
|
s = /** @type {Element} */
|
|
1974
|
-
/* @__PURE__ */
|
|
1974
|
+
/* @__PURE__ */ ut(l);
|
|
1975
1975
|
}
|
|
1976
1976
|
var a = (
|
|
1977
1977
|
/** @type {TemplateNode} */
|
|
1978
1978
|
s.cloneNode(!0)
|
|
1979
1979
|
);
|
|
1980
|
-
return
|
|
1980
|
+
return at(a, a), a;
|
|
1981
1981
|
};
|
|
1982
1982
|
}
|
|
1983
1983
|
// @__NO_SIDE_EFFECTS__
|
|
1984
|
-
function
|
|
1984
|
+
function ss(e, t) {
|
|
1985
1985
|
return /* @__PURE__ */ Wo(e, t, "svg");
|
|
1986
1986
|
}
|
|
1987
1987
|
function qo() {
|
|
1988
|
-
if (
|
|
1989
|
-
return
|
|
1990
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), n =
|
|
1991
|
-
return e.append(t, n),
|
|
1988
|
+
if (k)
|
|
1989
|
+
return at(S, null), S;
|
|
1990
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), n = Ae();
|
|
1991
|
+
return e.append(t, n), at(t, n), e;
|
|
1992
1992
|
}
|
|
1993
|
-
function
|
|
1994
|
-
if (
|
|
1993
|
+
function q(e, t) {
|
|
1994
|
+
if (k) {
|
|
1995
1995
|
var n = (
|
|
1996
1996
|
/** @type {Effect & { nodes: EffectNodes }} */
|
|
1997
|
-
|
|
1997
|
+
C
|
|
1998
1998
|
);
|
|
1999
|
-
((n.f &
|
|
1999
|
+
((n.f & Mt) === 0 || n.nodes.end === null) && (n.nodes.end = S), Bn();
|
|
2000
2000
|
return;
|
|
2001
2001
|
}
|
|
2002
2002
|
e !== null && e.before(
|
|
@@ -2012,39 +2012,39 @@ function Z(e, t) {
|
|
|
2012
2012
|
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
2013
2013
|
n !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = n, e.nodeValue = `${n}`);
|
|
2014
2014
|
}
|
|
2015
|
-
function
|
|
2016
|
-
return
|
|
2015
|
+
function os(e, t) {
|
|
2016
|
+
return ls(e, t);
|
|
2017
2017
|
}
|
|
2018
2018
|
function Jo(e, t) {
|
|
2019
|
-
|
|
2020
|
-
const n = t.target, r =
|
|
2019
|
+
mr(), t.intro = t.intro ?? !1;
|
|
2020
|
+
const n = t.target, r = k, i = S;
|
|
2021
2021
|
try {
|
|
2022
|
-
for (var s = /* @__PURE__ */
|
|
2023
|
-
s.data !==
|
|
2024
|
-
s = /* @__PURE__ */
|
|
2022
|
+
for (var s = /* @__PURE__ */ ut(n); s && (s.nodeType !== mn || /** @type {Comment} */
|
|
2023
|
+
s.data !== vi); )
|
|
2024
|
+
s = /* @__PURE__ */ Be(s);
|
|
2025
2025
|
if (!s)
|
|
2026
|
-
throw
|
|
2027
|
-
|
|
2026
|
+
throw Yt;
|
|
2027
|
+
Ze(!0), ce(
|
|
2028
2028
|
/** @type {Comment} */
|
|
2029
2029
|
s
|
|
2030
2030
|
);
|
|
2031
|
-
const o =
|
|
2032
|
-
return
|
|
2031
|
+
const o = ls(e, { ...t, anchor: s });
|
|
2032
|
+
return Ze(!1), /** @type {Exports} */
|
|
2033
2033
|
o;
|
|
2034
2034
|
} catch (o) {
|
|
2035
2035
|
if (o instanceof Error && o.message.split(`
|
|
2036
2036
|
`).some((l) => l.startsWith("https://svelte.dev/e/")))
|
|
2037
2037
|
throw o;
|
|
2038
|
-
return o !==
|
|
2038
|
+
return o !== Yt && console.warn("Failed to hydrate: ", o), t.recover === !1 && so(), mr(), Hi(n), Ze(!1), os(e, t);
|
|
2039
2039
|
} finally {
|
|
2040
|
-
|
|
2040
|
+
Ze(r), ce(i);
|
|
2041
2041
|
}
|
|
2042
2042
|
}
|
|
2043
|
-
const
|
|
2044
|
-
function
|
|
2045
|
-
|
|
2046
|
-
var a = void 0, f =
|
|
2047
|
-
var d = n ?? t.appendChild(
|
|
2043
|
+
const Tn = /* @__PURE__ */ new Map();
|
|
2044
|
+
function ls(e, { target: t, anchor: n, props: r = {}, events: i, context: s, intro: o = !0, transformError: l }) {
|
|
2045
|
+
mr();
|
|
2046
|
+
var a = void 0, f = zo(() => {
|
|
2047
|
+
var d = n ?? t.appendChild(Ae());
|
|
2048
2048
|
yo(
|
|
2049
2049
|
/** @type {TemplateNode} */
|
|
2050
2050
|
d,
|
|
@@ -2052,69 +2052,69 @@ function us(e, { target: t, anchor: n, props: r = {}, events: i, context: s, int
|
|
|
2052
2052
|
pending: () => {
|
|
2053
2053
|
}
|
|
2054
2054
|
},
|
|
2055
|
-
(
|
|
2055
|
+
(m) => {
|
|
2056
2056
|
Yn({});
|
|
2057
2057
|
var c = (
|
|
2058
2058
|
/** @type {ComponentContext} */
|
|
2059
2059
|
te
|
|
2060
2060
|
);
|
|
2061
|
-
if (s && (c.c = s), i && (r.$$events = i),
|
|
2061
|
+
if (s && (c.c = s), i && (r.$$events = i), k && at(
|
|
2062
2062
|
/** @type {TemplateNode} */
|
|
2063
|
-
|
|
2063
|
+
m,
|
|
2064
2064
|
null
|
|
2065
|
-
), a = e(
|
|
2066
|
-
|
|
2067
|
-
throw Vn(),
|
|
2065
|
+
), a = e(m, r) || {}, k && (C.nodes.end = S, S === null || S.nodeType !== mn || /** @type {Comment} */
|
|
2066
|
+
S.data !== Er))
|
|
2067
|
+
throw Vn(), Yt;
|
|
2068
2068
|
Wn();
|
|
2069
2069
|
},
|
|
2070
2070
|
l
|
|
2071
2071
|
);
|
|
2072
|
-
var v = /* @__PURE__ */ new Set(), _ = (
|
|
2073
|
-
for (var c = 0; c <
|
|
2074
|
-
var b =
|
|
2072
|
+
var v = /* @__PURE__ */ new Set(), _ = (m) => {
|
|
2073
|
+
for (var c = 0; c < m.length; c++) {
|
|
2074
|
+
var b = m[c];
|
|
2075
2075
|
if (!v.has(b)) {
|
|
2076
2076
|
v.add(b);
|
|
2077
|
-
var
|
|
2078
|
-
for (const
|
|
2079
|
-
var
|
|
2080
|
-
|
|
2081
|
-
var N =
|
|
2082
|
-
N === void 0 ? (
|
|
2077
|
+
var w = Xo(b);
|
|
2078
|
+
for (const A of [t, document]) {
|
|
2079
|
+
var y = Tn.get(A);
|
|
2080
|
+
y === void 0 && (y = /* @__PURE__ */ new Map(), Tn.set(A, y));
|
|
2081
|
+
var N = y.get(b);
|
|
2082
|
+
N === void 0 ? (A.addEventListener(b, si, { passive: w }), y.set(b, 1)) : y.set(b, N + 1);
|
|
2083
2083
|
}
|
|
2084
2084
|
}
|
|
2085
2085
|
}
|
|
2086
2086
|
};
|
|
2087
|
-
return _(Hn(
|
|
2088
|
-
for (var
|
|
2089
|
-
for (const
|
|
2087
|
+
return _(Hn(rs)), br.add(_), () => {
|
|
2088
|
+
for (var m of v)
|
|
2089
|
+
for (const w of [t, document]) {
|
|
2090
2090
|
var c = (
|
|
2091
2091
|
/** @type {Map<string, number>} */
|
|
2092
|
-
|
|
2092
|
+
Tn.get(w)
|
|
2093
2093
|
), b = (
|
|
2094
2094
|
/** @type {number} */
|
|
2095
|
-
c.get(
|
|
2095
|
+
c.get(m)
|
|
2096
2096
|
);
|
|
2097
|
-
--b == 0 ? (
|
|
2097
|
+
--b == 0 ? (w.removeEventListener(m, si), c.delete(m), c.size === 0 && Tn.delete(w)) : c.set(m, b);
|
|
2098
2098
|
}
|
|
2099
|
-
|
|
2099
|
+
br.delete(_), d !== n && d.parentNode?.removeChild(d);
|
|
2100
2100
|
};
|
|
2101
2101
|
});
|
|
2102
|
-
return
|
|
2102
|
+
return yr.set(a, f), a;
|
|
2103
2103
|
}
|
|
2104
|
-
let
|
|
2105
|
-
function
|
|
2106
|
-
const n =
|
|
2107
|
-
return n ? (
|
|
2104
|
+
let yr = /* @__PURE__ */ new WeakMap();
|
|
2105
|
+
function Ko(e, t) {
|
|
2106
|
+
const n = yr.get(e);
|
|
2107
|
+
return n ? (yr.delete(e), n(t)) : Promise.resolve();
|
|
2108
2108
|
}
|
|
2109
|
-
var Se, Fe,
|
|
2110
|
-
class
|
|
2109
|
+
var Se, Fe, fe, xt, _n, gn, Fn;
|
|
2110
|
+
class Go {
|
|
2111
2111
|
/**
|
|
2112
2112
|
* @param {TemplateNode} anchor
|
|
2113
2113
|
* @param {boolean} transition
|
|
2114
2114
|
*/
|
|
2115
2115
|
constructor(t, n = !0) {
|
|
2116
2116
|
/** @type {TemplateNode} */
|
|
2117
|
-
|
|
2117
|
+
z(this, "anchor");
|
|
2118
2118
|
/** @type {Map<Batch, Key>} */
|
|
2119
2119
|
x(this, Se, /* @__PURE__ */ new Map());
|
|
2120
2120
|
/**
|
|
@@ -2137,62 +2137,62 @@ class Ko {
|
|
|
2137
2137
|
* in the DOM, because their insertion is deferred.
|
|
2138
2138
|
* @type {Map<Key, Branch>}
|
|
2139
2139
|
*/
|
|
2140
|
-
x(this,
|
|
2140
|
+
x(this, fe, /* @__PURE__ */ new Map());
|
|
2141
2141
|
/**
|
|
2142
2142
|
* Keys of effects that are currently outroing
|
|
2143
2143
|
* @type {Set<Key>}
|
|
2144
2144
|
*/
|
|
2145
|
-
x(this,
|
|
2145
|
+
x(this, xt, /* @__PURE__ */ new Set());
|
|
2146
2146
|
/**
|
|
2147
2147
|
* Whether to pause (i.e. outro) on change, or destroy immediately.
|
|
2148
2148
|
* This is necessary for `<svelte:element>`
|
|
2149
2149
|
*/
|
|
2150
|
-
x(this,
|
|
2150
|
+
x(this, _n, !0);
|
|
2151
2151
|
/**
|
|
2152
2152
|
* @param {Batch} batch
|
|
2153
2153
|
*/
|
|
2154
|
-
x(this,
|
|
2154
|
+
x(this, gn, (t) => {
|
|
2155
2155
|
if (u(this, Se).has(t)) {
|
|
2156
2156
|
var n = (
|
|
2157
2157
|
/** @type {Key} */
|
|
2158
2158
|
u(this, Se).get(t)
|
|
2159
2159
|
), r = u(this, Fe).get(n);
|
|
2160
2160
|
if (r)
|
|
2161
|
-
|
|
2161
|
+
zr(r), u(this, xt).delete(n);
|
|
2162
2162
|
else {
|
|
2163
|
-
var i = u(this,
|
|
2164
|
-
i && (i.effect.f & Q) === 0 && (u(this, Fe).set(n, i.effect), u(this,
|
|
2163
|
+
var i = u(this, fe).get(n);
|
|
2164
|
+
i && (i.effect.f & Q) === 0 && (u(this, Fe).set(n, i.effect), u(this, fe).delete(n), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), r = i.effect);
|
|
2165
2165
|
}
|
|
2166
2166
|
for (const [s, o] of u(this, Se)) {
|
|
2167
2167
|
if (u(this, Se).delete(s), s === t)
|
|
2168
2168
|
break;
|
|
2169
|
-
const l = u(this,
|
|
2170
|
-
l && (ee(l.effect), u(this,
|
|
2169
|
+
const l = u(this, fe).get(o);
|
|
2170
|
+
l && (ee(l.effect), u(this, fe).delete(o));
|
|
2171
2171
|
}
|
|
2172
2172
|
for (const [s, o] of u(this, Fe)) {
|
|
2173
|
-
if (s === n || u(this,
|
|
2173
|
+
if (s === n || u(this, xt).has(s) || (o.f & Q) !== 0) continue;
|
|
2174
2174
|
const l = () => {
|
|
2175
2175
|
if (Array.from(u(this, Se).values()).includes(s)) {
|
|
2176
2176
|
var f = document.createDocumentFragment();
|
|
2177
|
-
|
|
2177
|
+
Lr(o, f), f.append(Ae()), u(this, fe).set(s, { effect: o, fragment: f });
|
|
2178
2178
|
} else
|
|
2179
2179
|
ee(o);
|
|
2180
|
-
u(this,
|
|
2180
|
+
u(this, xt).delete(s), u(this, Fe).delete(s);
|
|
2181
2181
|
};
|
|
2182
|
-
u(this,
|
|
2182
|
+
u(this, _n) || !r ? (u(this, xt).add(s), Et(o, l, !1)) : l();
|
|
2183
2183
|
}
|
|
2184
2184
|
}
|
|
2185
2185
|
});
|
|
2186
2186
|
/**
|
|
2187
2187
|
* @param {Batch} batch
|
|
2188
2188
|
*/
|
|
2189
|
-
x(this,
|
|
2189
|
+
x(this, Fn, (t) => {
|
|
2190
2190
|
u(this, Se).delete(t);
|
|
2191
2191
|
const n = Array.from(u(this, Se).values());
|
|
2192
|
-
for (const [r, i] of u(this,
|
|
2193
|
-
n.includes(r) || (ee(i.effect), u(this,
|
|
2192
|
+
for (const [r, i] of u(this, fe))
|
|
2193
|
+
n.includes(r) || (ee(i.effect), u(this, fe).delete(r));
|
|
2194
2194
|
});
|
|
2195
|
-
this.anchor = t, $(this,
|
|
2195
|
+
this.anchor = t, $(this, _n, n);
|
|
2196
2196
|
}
|
|
2197
2197
|
/**
|
|
2198
2198
|
*
|
|
@@ -2202,34 +2202,34 @@ class Ko {
|
|
|
2202
2202
|
ensure(t, n) {
|
|
2203
2203
|
var r = (
|
|
2204
2204
|
/** @type {Batch} */
|
|
2205
|
-
|
|
2206
|
-
), i =
|
|
2207
|
-
if (n && !u(this, Fe).has(t) && !u(this,
|
|
2205
|
+
D
|
|
2206
|
+
), i = ji();
|
|
2207
|
+
if (n && !u(this, Fe).has(t) && !u(this, fe).has(t))
|
|
2208
2208
|
if (i) {
|
|
2209
|
-
var s = document.createDocumentFragment(), o =
|
|
2210
|
-
s.append(o), u(this,
|
|
2211
|
-
effect:
|
|
2209
|
+
var s = document.createDocumentFragment(), o = Ae();
|
|
2210
|
+
s.append(o), u(this, fe).set(t, {
|
|
2211
|
+
effect: _e(() => n(o)),
|
|
2212
2212
|
fragment: s
|
|
2213
2213
|
});
|
|
2214
2214
|
} else
|
|
2215
2215
|
u(this, Fe).set(
|
|
2216
2216
|
t,
|
|
2217
|
-
|
|
2217
|
+
_e(() => n(this.anchor))
|
|
2218
2218
|
);
|
|
2219
2219
|
if (u(this, Se).set(r, t), i) {
|
|
2220
2220
|
for (const [l, a] of u(this, Fe))
|
|
2221
2221
|
l === t ? r.unskip_effect(a) : r.skip_effect(a);
|
|
2222
|
-
for (const [l, a] of u(this,
|
|
2222
|
+
for (const [l, a] of u(this, fe))
|
|
2223
2223
|
l === t ? r.unskip_effect(a.effect) : r.skip_effect(a.effect);
|
|
2224
|
-
r.oncommit(u(this,
|
|
2224
|
+
r.oncommit(u(this, gn)), r.ondiscard(u(this, Fn));
|
|
2225
2225
|
} else
|
|
2226
|
-
|
|
2226
|
+
k && (this.anchor = S), u(this, gn).call(this, r);
|
|
2227
2227
|
}
|
|
2228
2228
|
}
|
|
2229
|
-
Se = new WeakMap(), Fe = new WeakMap(),
|
|
2230
|
-
function
|
|
2231
|
-
te === null &&
|
|
2232
|
-
const t =
|
|
2229
|
+
Se = new WeakMap(), Fe = new WeakMap(), fe = new WeakMap(), xt = new WeakMap(), _n = new WeakMap(), gn = new WeakMap(), Fn = new WeakMap();
|
|
2230
|
+
function as(e) {
|
|
2231
|
+
te === null && Tr(), Bi(() => {
|
|
2232
|
+
const t = Xn(e);
|
|
2233
2233
|
if (typeof t == "function") return (
|
|
2234
2234
|
/** @type {() => void} */
|
|
2235
2235
|
t
|
|
@@ -2237,14 +2237,14 @@ function fs(e) {
|
|
|
2237
2237
|
});
|
|
2238
2238
|
}
|
|
2239
2239
|
function Zo(e) {
|
|
2240
|
-
te === null &&
|
|
2240
|
+
te === null && Tr(), as(() => () => Xn(e));
|
|
2241
2241
|
}
|
|
2242
2242
|
function Qo(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
2243
2243
|
return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
|
|
2244
2244
|
}
|
|
2245
2245
|
function el() {
|
|
2246
2246
|
const e = te;
|
|
2247
|
-
return e === null &&
|
|
2247
|
+
return e === null && Tr(), (t, n, r) => {
|
|
2248
2248
|
const i = (
|
|
2249
2249
|
/** @type {Record<string, Function | Function[]>} */
|
|
2250
2250
|
e.s.$$events?.[
|
|
@@ -2253,7 +2253,7 @@ function el() {
|
|
|
2253
2253
|
]
|
|
2254
2254
|
);
|
|
2255
2255
|
if (i) {
|
|
2256
|
-
const s =
|
|
2256
|
+
const s = Sr(i) ? i.slice() : [i], o = Qo(
|
|
2257
2257
|
/** @type {string} */
|
|
2258
2258
|
t,
|
|
2259
2259
|
n,
|
|
@@ -2266,25 +2266,25 @@ function el() {
|
|
|
2266
2266
|
return !0;
|
|
2267
2267
|
};
|
|
2268
2268
|
}
|
|
2269
|
-
function
|
|
2269
|
+
function Oe(e, t, n = !1) {
|
|
2270
2270
|
var r;
|
|
2271
|
-
|
|
2272
|
-
var i = new
|
|
2271
|
+
k && (r = S, Bn());
|
|
2272
|
+
var i = new Go(e), s = n ? Ut : 0;
|
|
2273
2273
|
function o(l, a) {
|
|
2274
|
-
if (
|
|
2275
|
-
var f =
|
|
2274
|
+
if (k) {
|
|
2275
|
+
var f = gi(
|
|
2276
2276
|
/** @type {TemplateNode} */
|
|
2277
2277
|
r
|
|
2278
2278
|
);
|
|
2279
2279
|
if (l !== parseInt(f.substring(1))) {
|
|
2280
|
-
var d =
|
|
2281
|
-
|
|
2280
|
+
var d = Dn();
|
|
2281
|
+
ce(d), i.anchor = d, Ze(!1), i.ensure(l, a), Ze(!0);
|
|
2282
2282
|
return;
|
|
2283
2283
|
}
|
|
2284
2284
|
}
|
|
2285
2285
|
i.ensure(l, a);
|
|
2286
2286
|
}
|
|
2287
|
-
|
|
2287
|
+
Or(() => {
|
|
2288
2288
|
var l = !1;
|
|
2289
2289
|
t((a, f = 0) => {
|
|
2290
2290
|
l = !0, o(f, a);
|
|
@@ -2294,7 +2294,7 @@ function Ee(e, t, n = !1) {
|
|
|
2294
2294
|
function tl(e, t, n) {
|
|
2295
2295
|
for (var r = [], i = t.length, s, o = t.length, l = 0; l < i; l++) {
|
|
2296
2296
|
let v = t[l];
|
|
2297
|
-
|
|
2297
|
+
Et(
|
|
2298
2298
|
v,
|
|
2299
2299
|
() => {
|
|
2300
2300
|
if (s) {
|
|
@@ -2303,7 +2303,7 @@ function tl(e, t, n) {
|
|
|
2303
2303
|
/** @type {Set<EachOutroGroup>} */
|
|
2304
2304
|
e.outrogroups
|
|
2305
2305
|
);
|
|
2306
|
-
|
|
2306
|
+
$r(e, Hn(s.done)), _.delete(s), _.size === 0 && (e.outrogroups = null);
|
|
2307
2307
|
}
|
|
2308
2308
|
} else
|
|
2309
2309
|
o -= 1;
|
|
@@ -2321,16 +2321,16 @@ function tl(e, t, n) {
|
|
|
2321
2321
|
/** @type {Element} */
|
|
2322
2322
|
f.parentNode
|
|
2323
2323
|
);
|
|
2324
|
-
|
|
2324
|
+
Hi(d), d.append(f), e.items.clear();
|
|
2325
2325
|
}
|
|
2326
|
-
|
|
2326
|
+
$r(e, t, !a);
|
|
2327
2327
|
} else
|
|
2328
2328
|
s = {
|
|
2329
2329
|
pending: new Set(t),
|
|
2330
2330
|
done: /* @__PURE__ */ new Set()
|
|
2331
2331
|
}, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(s);
|
|
2332
2332
|
}
|
|
2333
|
-
function
|
|
2333
|
+
function $r(e, t, n = !0) {
|
|
2334
2334
|
var r;
|
|
2335
2335
|
if (e.pending.size > 0) {
|
|
2336
2336
|
r = /* @__PURE__ */ new Set();
|
|
@@ -2346,138 +2346,138 @@ function xr(e, t, n = !0) {
|
|
|
2346
2346
|
if (r?.has(s)) {
|
|
2347
2347
|
s.f |= Ge;
|
|
2348
2348
|
const o = document.createDocumentFragment();
|
|
2349
|
-
|
|
2349
|
+
Lr(s, o);
|
|
2350
2350
|
} else
|
|
2351
2351
|
ee(t[i], n);
|
|
2352
2352
|
}
|
|
2353
2353
|
}
|
|
2354
|
-
var
|
|
2354
|
+
var oi;
|
|
2355
2355
|
function nl(e, t, n, r, i, s = null) {
|
|
2356
2356
|
var o = e, l = /* @__PURE__ */ new Map();
|
|
2357
|
-
|
|
2357
|
+
k && Bn();
|
|
2358
2358
|
var a = null, f = /* @__PURE__ */ ko(() => {
|
|
2359
|
-
var
|
|
2360
|
-
return
|
|
2359
|
+
var y = n();
|
|
2360
|
+
return Sr(y) ? y : y == null ? [] : Hn(y);
|
|
2361
2361
|
}), d, v = /* @__PURE__ */ new Map(), _ = !0;
|
|
2362
|
-
function
|
|
2363
|
-
(
|
|
2362
|
+
function m(y) {
|
|
2363
|
+
(w.effect.f & je) === 0 && (w.pending.delete(y), w.fallback = a, rl(w, d, o, t, r), a !== null && (d.length === 0 ? (a.f & Ge) === 0 ? zr(a) : (a.f ^= Ge, cn(a, null, o)) : Et(a, () => {
|
|
2364
2364
|
a = null;
|
|
2365
2365
|
})));
|
|
2366
2366
|
}
|
|
2367
|
-
function c(
|
|
2368
|
-
|
|
2367
|
+
function c(y) {
|
|
2368
|
+
w.pending.delete(y);
|
|
2369
2369
|
}
|
|
2370
|
-
var b =
|
|
2370
|
+
var b = Or(() => {
|
|
2371
2371
|
d = /** @type {V[]} */
|
|
2372
|
-
|
|
2373
|
-
var
|
|
2372
|
+
p(f);
|
|
2373
|
+
var y = d.length;
|
|
2374
2374
|
let N = !1;
|
|
2375
|
-
if (
|
|
2376
|
-
var
|
|
2377
|
-
|
|
2375
|
+
if (k) {
|
|
2376
|
+
var A = gi(o) === xr;
|
|
2377
|
+
A !== (y === 0) && (o = Dn(), ce(o), Ze(!1), N = !0);
|
|
2378
2378
|
}
|
|
2379
|
-
for (var
|
|
2379
|
+
for (var ne = /* @__PURE__ */ new Set(), V = (
|
|
2380
2380
|
/** @type {Batch} */
|
|
2381
|
-
|
|
2382
|
-
),
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
var
|
|
2387
|
-
|
|
2381
|
+
D
|
|
2382
|
+
), It = ji(), Re = 0; Re < y; Re += 1) {
|
|
2383
|
+
k && S.nodeType === mn && /** @type {Comment} */
|
|
2384
|
+
S.data === Er && (o = /** @type {Comment} */
|
|
2385
|
+
S, N = !0, Ze(!1));
|
|
2386
|
+
var ve = d[Re], et = r(ve, Re), ye = _ ? null : l.get(et);
|
|
2387
|
+
ye ? (ye.v && Kt(ye.v, ve), ye.i && Kt(ye.i, Re), It && V.unskip_effect(ye.e)) : (ye = il(
|
|
2388
2388
|
l,
|
|
2389
|
-
_ ? o :
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2389
|
+
_ ? o : oi ?? (oi = Ae()),
|
|
2390
|
+
ve,
|
|
2391
|
+
et,
|
|
2392
|
+
Re,
|
|
2393
2393
|
i,
|
|
2394
2394
|
t,
|
|
2395
2395
|
n
|
|
2396
|
-
), _ || (
|
|
2396
|
+
), _ || (ye.e.f |= Ge), l.set(et, ye)), ne.add(et);
|
|
2397
2397
|
}
|
|
2398
|
-
if (
|
|
2399
|
-
if (v.set(
|
|
2400
|
-
for (const [
|
|
2401
|
-
|
|
2402
|
-
|
|
2398
|
+
if (y === 0 && s && !a && (_ ? a = _e(() => s(o)) : (a = _e(() => s(oi ?? (oi = Ae()))), a.f |= Ge)), y > ne.size && eo(), k && y > 0 && ce(Dn()), !_)
|
|
2399
|
+
if (v.set(V, ne), It) {
|
|
2400
|
+
for (const [Qt, bn] of l)
|
|
2401
|
+
ne.has(Qt) || V.skip_effect(bn.e);
|
|
2402
|
+
V.oncommit(m), V.ondiscard(c);
|
|
2403
2403
|
} else
|
|
2404
|
-
|
|
2405
|
-
N &&
|
|
2406
|
-
}),
|
|
2407
|
-
_ = !1,
|
|
2404
|
+
m(V);
|
|
2405
|
+
N && Ze(!0), p(f);
|
|
2406
|
+
}), w = { effect: b, items: l, pending: v, outrogroups: null, fallback: a };
|
|
2407
|
+
_ = !1, k && (o = S);
|
|
2408
2408
|
}
|
|
2409
|
-
function
|
|
2410
|
-
for (; e !== null && (e.f &
|
|
2409
|
+
function un(e) {
|
|
2410
|
+
for (; e !== null && (e.f & Ie) === 0; )
|
|
2411
2411
|
e = e.next;
|
|
2412
2412
|
return e;
|
|
2413
2413
|
}
|
|
2414
2414
|
function rl(e, t, n, r, i) {
|
|
2415
|
-
var s = t.length, o = e.items, l =
|
|
2415
|
+
var s = t.length, o = e.items, l = un(e.effect.first), a, f = null, d = [], v = [], _, m, c, b;
|
|
2416
2416
|
for (b = 0; b < s; b += 1) {
|
|
2417
|
-
if (_ = t[b],
|
|
2418
|
-
o.get(
|
|
2419
|
-
for (const
|
|
2420
|
-
|
|
2417
|
+
if (_ = t[b], m = i(_, b), c = /** @type {EachItem} */
|
|
2418
|
+
o.get(m).e, e.outrogroups !== null)
|
|
2419
|
+
for (const ve of e.outrogroups)
|
|
2420
|
+
ve.pending.delete(c), ve.done.delete(c);
|
|
2421
2421
|
if ((c.f & Ge) !== 0)
|
|
2422
2422
|
if (c.f ^= Ge, c === l)
|
|
2423
|
-
|
|
2423
|
+
cn(c, null, n);
|
|
2424
2424
|
else {
|
|
2425
|
-
var
|
|
2426
|
-
c === e.effect.last && (e.effect.last = c.prev), c.prev && (c.prev.next = c.next), c.next && (c.next.prev = c.prev),
|
|
2425
|
+
var w = f ? f.next : l;
|
|
2426
|
+
c === e.effect.last && (e.effect.last = c.prev), c.prev && (c.prev.next = c.next), c.next && (c.next.prev = c.prev), tt(e, f, c), tt(e, c, w), cn(c, w, n), f = c, d = [], v = [], l = un(f.next);
|
|
2427
2427
|
continue;
|
|
2428
2428
|
}
|
|
2429
|
-
if ((c.f & Q) !== 0 &&
|
|
2429
|
+
if ((c.f & Q) !== 0 && zr(c), c !== l) {
|
|
2430
2430
|
if (a !== void 0 && a.has(c)) {
|
|
2431
2431
|
if (d.length < v.length) {
|
|
2432
|
-
var
|
|
2433
|
-
f =
|
|
2434
|
-
var
|
|
2432
|
+
var y = v[0], N;
|
|
2433
|
+
f = y.prev;
|
|
2434
|
+
var A = d[0], ne = d[d.length - 1];
|
|
2435
2435
|
for (N = 0; N < d.length; N += 1)
|
|
2436
|
-
|
|
2436
|
+
cn(d[N], y, n);
|
|
2437
2437
|
for (N = 0; N < v.length; N += 1)
|
|
2438
2438
|
a.delete(v[N]);
|
|
2439
|
-
|
|
2439
|
+
tt(e, A.prev, ne.next), tt(e, f, A), tt(e, ne, y), l = y, f = ne, b -= 1, d = [], v = [];
|
|
2440
2440
|
} else
|
|
2441
|
-
a.delete(c),
|
|
2441
|
+
a.delete(c), cn(c, l, n), tt(e, c.prev, c.next), tt(e, c, f === null ? e.effect.first : f.next), tt(e, f, c), f = c;
|
|
2442
2442
|
continue;
|
|
2443
2443
|
}
|
|
2444
2444
|
for (d = [], v = []; l !== null && l !== c; )
|
|
2445
|
-
(a ?? (a = /* @__PURE__ */ new Set())).add(l), v.push(l), l =
|
|
2445
|
+
(a ?? (a = /* @__PURE__ */ new Set())).add(l), v.push(l), l = un(l.next);
|
|
2446
2446
|
if (l === null)
|
|
2447
2447
|
continue;
|
|
2448
2448
|
}
|
|
2449
|
-
(c.f & Ge) === 0 && d.push(c), f = c, l =
|
|
2449
|
+
(c.f & Ge) === 0 && d.push(c), f = c, l = un(c.next);
|
|
2450
2450
|
}
|
|
2451
2451
|
if (e.outrogroups !== null) {
|
|
2452
|
-
for (const
|
|
2453
|
-
|
|
2452
|
+
for (const ve of e.outrogroups)
|
|
2453
|
+
ve.pending.size === 0 && ($r(e, Hn(ve.done)), e.outrogroups?.delete(ve));
|
|
2454
2454
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
2455
2455
|
}
|
|
2456
2456
|
if (l !== null || a !== void 0) {
|
|
2457
|
-
var
|
|
2457
|
+
var V = [];
|
|
2458
2458
|
if (a !== void 0)
|
|
2459
2459
|
for (c of a)
|
|
2460
|
-
(c.f & Q) === 0 &&
|
|
2460
|
+
(c.f & Q) === 0 && V.push(c);
|
|
2461
2461
|
for (; l !== null; )
|
|
2462
|
-
(l.f & Q) === 0 && l !== e.fallback &&
|
|
2463
|
-
var
|
|
2464
|
-
if (
|
|
2465
|
-
var
|
|
2466
|
-
tl(e,
|
|
2462
|
+
(l.f & Q) === 0 && l !== e.fallback && V.push(l), l = un(l.next);
|
|
2463
|
+
var It = V.length;
|
|
2464
|
+
if (It > 0) {
|
|
2465
|
+
var Re = null;
|
|
2466
|
+
tl(e, V, Re);
|
|
2467
2467
|
}
|
|
2468
2468
|
}
|
|
2469
2469
|
}
|
|
2470
2470
|
function il(e, t, n, r, i, s, o, l) {
|
|
2471
|
-
var a = (o &
|
|
2471
|
+
var a = (o & Ls) !== 0 ? (o & Fs) === 0 ? /* @__PURE__ */ Di(n, !1, !1) : Tt(n) : null, f = (o & Ps) !== 0 ? Tt(i) : null;
|
|
2472
2472
|
return {
|
|
2473
2473
|
v: a,
|
|
2474
2474
|
i: f,
|
|
2475
|
-
e:
|
|
2475
|
+
e: _e(() => (s(t, a ?? n, f ?? i, l), () => {
|
|
2476
2476
|
e.delete(r);
|
|
2477
2477
|
}))
|
|
2478
2478
|
};
|
|
2479
2479
|
}
|
|
2480
|
-
function
|
|
2480
|
+
function cn(e, t, n) {
|
|
2481
2481
|
if (e.nodes)
|
|
2482
2482
|
for (var r = e.nodes.start, i = e.nodes.end, s = t && (t.f & Ge) === 0 ? (
|
|
2483
2483
|
/** @type {EffectNodes} */
|
|
@@ -2485,18 +2485,18 @@ function un(e, t, n) {
|
|
|
2485
2485
|
) : n; r !== null; ) {
|
|
2486
2486
|
var o = (
|
|
2487
2487
|
/** @type {TemplateNode} */
|
|
2488
|
-
/* @__PURE__ */
|
|
2488
|
+
/* @__PURE__ */ Be(r)
|
|
2489
2489
|
);
|
|
2490
2490
|
if (s.before(r), r === i)
|
|
2491
2491
|
return;
|
|
2492
2492
|
r = o;
|
|
2493
2493
|
}
|
|
2494
2494
|
}
|
|
2495
|
-
function
|
|
2495
|
+
function tt(e, t, n) {
|
|
2496
2496
|
t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
|
|
2497
2497
|
}
|
|
2498
|
-
function
|
|
2499
|
-
|
|
2498
|
+
function us(e, t) {
|
|
2499
|
+
Lo(() => {
|
|
2500
2500
|
var n = e.getRootNode(), r = (
|
|
2501
2501
|
/** @type {ShadowRoot} */
|
|
2502
2502
|
n.host ? (
|
|
@@ -2514,25 +2514,25 @@ function sl(e, t) {
|
|
|
2514
2514
|
}
|
|
2515
2515
|
});
|
|
2516
2516
|
}
|
|
2517
|
-
function
|
|
2517
|
+
function fs(e) {
|
|
2518
2518
|
var t, n, r = "";
|
|
2519
2519
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
2520
2520
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
2521
2521
|
var i = e.length;
|
|
2522
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
2522
|
+
for (t = 0; t < i; t++) e[t] && (n = fs(e[t])) && (r && (r += " "), r += n);
|
|
2523
2523
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
2524
2524
|
return r;
|
|
2525
2525
|
}
|
|
2526
|
-
function
|
|
2527
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
2526
|
+
function sl() {
|
|
2527
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = fs(e)) && (r && (r += " "), r += t);
|
|
2528
2528
|
return r;
|
|
2529
2529
|
}
|
|
2530
|
-
function
|
|
2531
|
-
return typeof e == "object" ?
|
|
2530
|
+
function zn(e) {
|
|
2531
|
+
return typeof e == "object" ? sl(e) : e ?? "";
|
|
2532
2532
|
}
|
|
2533
|
-
const
|
|
2533
|
+
const li = [...`
|
|
2534
2534
|
\r\f \v\uFEFF`];
|
|
2535
|
-
function
|
|
2535
|
+
function ol(e, t, n) {
|
|
2536
2536
|
var r = e == null ? "" : "" + e;
|
|
2537
2537
|
if (t && (r = r ? r + " " + t : t), n) {
|
|
2538
2538
|
for (var i of Object.keys(n))
|
|
@@ -2541,19 +2541,19 @@ function ll(e, t, n) {
|
|
|
2541
2541
|
else if (r.length)
|
|
2542
2542
|
for (var s = i.length, o = 0; (o = r.indexOf(i, o)) >= 0; ) {
|
|
2543
2543
|
var l = o + s;
|
|
2544
|
-
(o === 0 ||
|
|
2544
|
+
(o === 0 || li.includes(r[o - 1])) && (l === r.length || li.includes(r[l])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(l + 1) : o = l;
|
|
2545
2545
|
}
|
|
2546
2546
|
}
|
|
2547
2547
|
return r === "" ? null : r;
|
|
2548
2548
|
}
|
|
2549
|
-
function
|
|
2549
|
+
function ll(e, t) {
|
|
2550
2550
|
return e == null ? null : String(e);
|
|
2551
2551
|
}
|
|
2552
2552
|
function Ct(e, t, n, r, i, s) {
|
|
2553
2553
|
var o = e.__className;
|
|
2554
|
-
if (
|
|
2555
|
-
var l =
|
|
2556
|
-
(!
|
|
2554
|
+
if (k || o !== n || o === void 0) {
|
|
2555
|
+
var l = ol(n, r, s);
|
|
2556
|
+
(!k || l !== e.getAttribute("class")) && (l == null ? e.removeAttribute("class") : t ? e.className = l : e.setAttribute("class", l)), e.__className = n;
|
|
2557
2557
|
} else if (s && i !== s)
|
|
2558
2558
|
for (var a in s) {
|
|
2559
2559
|
var f = !!s[a];
|
|
@@ -2561,43 +2561,43 @@ function Ct(e, t, n, r, i, s) {
|
|
|
2561
2561
|
}
|
|
2562
2562
|
return s;
|
|
2563
2563
|
}
|
|
2564
|
-
function
|
|
2564
|
+
function ai(e, t, n, r) {
|
|
2565
2565
|
var i = e.__style;
|
|
2566
|
-
if (
|
|
2567
|
-
var s =
|
|
2568
|
-
(!
|
|
2566
|
+
if (k || i !== t) {
|
|
2567
|
+
var s = ll(t);
|
|
2568
|
+
(!k || s !== e.getAttribute("style")) && (s == null ? e.removeAttribute("style") : e.style.cssText = s), e.__style = t;
|
|
2569
2569
|
}
|
|
2570
2570
|
return r;
|
|
2571
2571
|
}
|
|
2572
|
-
const
|
|
2573
|
-
function
|
|
2574
|
-
var i =
|
|
2575
|
-
|
|
2572
|
+
const al = /* @__PURE__ */ Symbol("is custom element"), ul = /* @__PURE__ */ Symbol("is html"), fl = Zs ? "link" : "LINK";
|
|
2573
|
+
function Ln(e, t, n, r) {
|
|
2574
|
+
var i = cl(e);
|
|
2575
|
+
k && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === fl) || i[t] !== (i[t] = n) && (t === "loading" && (e[Gs] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && dl(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
|
|
2576
2576
|
}
|
|
2577
|
-
function
|
|
2577
|
+
function cl(e) {
|
|
2578
2578
|
return (
|
|
2579
2579
|
/** @type {Record<string | symbol, unknown>} **/
|
|
2580
2580
|
// @ts-expect-error
|
|
2581
2581
|
e.__attributes ?? (e.__attributes = {
|
|
2582
|
-
[
|
|
2583
|
-
[
|
|
2582
|
+
[al]: e.nodeName.includes("-"),
|
|
2583
|
+
[ul]: e.namespaceURI === hi
|
|
2584
2584
|
})
|
|
2585
2585
|
);
|
|
2586
2586
|
}
|
|
2587
|
-
var
|
|
2588
|
-
function
|
|
2589
|
-
var t = e.getAttribute("is") || e.nodeName, n =
|
|
2587
|
+
var ui = /* @__PURE__ */ new Map();
|
|
2588
|
+
function dl(e) {
|
|
2589
|
+
var t = e.getAttribute("is") || e.nodeName, n = ui.get(t);
|
|
2590
2590
|
if (n) return n;
|
|
2591
|
-
|
|
2591
|
+
ui.set(t, n = []);
|
|
2592
2592
|
for (var r, i = e, s = Element.prototype; s !== i; ) {
|
|
2593
2593
|
r = Bs(i);
|
|
2594
2594
|
for (var o in r)
|
|
2595
2595
|
r[o].set && n.push(o);
|
|
2596
|
-
i =
|
|
2596
|
+
i = pi(i);
|
|
2597
2597
|
}
|
|
2598
2598
|
return n;
|
|
2599
2599
|
}
|
|
2600
|
-
function
|
|
2600
|
+
function Te(e, t, n, r) {
|
|
2601
2601
|
var i = (
|
|
2602
2602
|
/** @type {V} */
|
|
2603
2603
|
r
|
|
@@ -2615,24 +2615,24 @@ function Me(e, t, n, r) {
|
|
|
2615
2615
|
};
|
|
2616
2616
|
var f = !1, d = /* @__PURE__ */ Un(() => (f = !1, a())), v = (
|
|
2617
2617
|
/** @type {Effect} */
|
|
2618
|
-
|
|
2618
|
+
C
|
|
2619
2619
|
);
|
|
2620
2620
|
return (
|
|
2621
2621
|
/** @type {() => V} */
|
|
2622
|
-
(function(_,
|
|
2622
|
+
(function(_, m) {
|
|
2623
2623
|
if (arguments.length > 0) {
|
|
2624
|
-
const c =
|
|
2624
|
+
const c = m ? p(d) : _;
|
|
2625
2625
|
return R(d, c), f = !0, i !== void 0 && (i = c), _;
|
|
2626
2626
|
}
|
|
2627
|
-
return
|
|
2627
|
+
return ft && f || (v.f & je) !== 0 ? d.v : p(d);
|
|
2628
2628
|
})
|
|
2629
2629
|
);
|
|
2630
2630
|
}
|
|
2631
|
-
function
|
|
2632
|
-
return new
|
|
2631
|
+
function vl(e) {
|
|
2632
|
+
return new hl(e);
|
|
2633
2633
|
}
|
|
2634
|
-
var
|
|
2635
|
-
class
|
|
2634
|
+
var Ke, pe;
|
|
2635
|
+
class hl {
|
|
2636
2636
|
/**
|
|
2637
2637
|
* @param {ComponentConstructorOptions & {
|
|
2638
2638
|
* component: any;
|
|
@@ -2640,28 +2640,28 @@ class pl {
|
|
|
2640
2640
|
*/
|
|
2641
2641
|
constructor(t) {
|
|
2642
2642
|
/** @type {any} */
|
|
2643
|
-
x(this,
|
|
2643
|
+
x(this, Ke);
|
|
2644
2644
|
/** @type {Record<string, any>} */
|
|
2645
|
-
x(this,
|
|
2645
|
+
x(this, pe);
|
|
2646
2646
|
var n = /* @__PURE__ */ new Map(), r = (s, o) => {
|
|
2647
|
-
var l = /* @__PURE__ */
|
|
2647
|
+
var l = /* @__PURE__ */ Di(o, !1, !1);
|
|
2648
2648
|
return n.set(s, l), l;
|
|
2649
2649
|
};
|
|
2650
2650
|
const i = new Proxy(
|
|
2651
2651
|
{ ...t.props || {}, $$events: {} },
|
|
2652
2652
|
{
|
|
2653
2653
|
get(s, o) {
|
|
2654
|
-
return
|
|
2654
|
+
return p(n.get(o) ?? r(o, Reflect.get(s, o)));
|
|
2655
2655
|
},
|
|
2656
2656
|
has(s, o) {
|
|
2657
|
-
return o ===
|
|
2657
|
+
return o === Ks ? !0 : (p(n.get(o) ?? r(o, Reflect.get(s, o))), Reflect.has(s, o));
|
|
2658
2658
|
},
|
|
2659
2659
|
set(s, o, l) {
|
|
2660
2660
|
return R(n.get(o) ?? r(o, l), l), Reflect.set(s, o, l);
|
|
2661
2661
|
}
|
|
2662
2662
|
}
|
|
2663
2663
|
);
|
|
2664
|
-
$(this,
|
|
2664
|
+
$(this, pe, (t.hydrate ? Jo : os)(t.component, {
|
|
2665
2665
|
target: t.target,
|
|
2666
2666
|
anchor: t.anchor,
|
|
2667
2667
|
props: i,
|
|
@@ -2669,28 +2669,28 @@ class pl {
|
|
|
2669
2669
|
intro: t.intro ?? !1,
|
|
2670
2670
|
recover: t.recover,
|
|
2671
2671
|
transformError: t.transformError
|
|
2672
|
-
})), (!t?.props?.$$host || t.sync === !1) &&
|
|
2673
|
-
for (const s of Object.keys(u(this,
|
|
2674
|
-
s === "$set" || s === "$destroy" || s === "$on" ||
|
|
2672
|
+
})), (!t?.props?.$$host || t.sync === !1) && ge(), $(this, Ke, i.$$events);
|
|
2673
|
+
for (const s of Object.keys(u(this, pe)))
|
|
2674
|
+
s === "$set" || s === "$destroy" || s === "$on" || On(this, s, {
|
|
2675
2675
|
get() {
|
|
2676
|
-
return u(this,
|
|
2676
|
+
return u(this, pe)[s];
|
|
2677
2677
|
},
|
|
2678
2678
|
/** @param {any} value */
|
|
2679
2679
|
set(o) {
|
|
2680
|
-
u(this,
|
|
2680
|
+
u(this, pe)[s] = o;
|
|
2681
2681
|
},
|
|
2682
2682
|
enumerable: !0
|
|
2683
2683
|
});
|
|
2684
|
-
u(this,
|
|
2684
|
+
u(this, pe).$set = /** @param {Record<string, any>} next */
|
|
2685
2685
|
(s) => {
|
|
2686
2686
|
Object.assign(i, s);
|
|
2687
|
-
}, u(this,
|
|
2688
|
-
|
|
2687
|
+
}, u(this, pe).$destroy = () => {
|
|
2688
|
+
Ko(u(this, pe));
|
|
2689
2689
|
};
|
|
2690
2690
|
}
|
|
2691
2691
|
/** @param {Record<string, any>} props */
|
|
2692
2692
|
$set(t) {
|
|
2693
|
-
u(this,
|
|
2693
|
+
u(this, pe).$set(t);
|
|
2694
2694
|
}
|
|
2695
2695
|
/**
|
|
2696
2696
|
* @param {string} event
|
|
@@ -2698,22 +2698,22 @@ class pl {
|
|
|
2698
2698
|
* @returns {any}
|
|
2699
2699
|
*/
|
|
2700
2700
|
$on(t, n) {
|
|
2701
|
-
u(this,
|
|
2701
|
+
u(this, Ke)[t] = u(this, Ke)[t] || [];
|
|
2702
2702
|
const r = (...i) => n.call(this, ...i);
|
|
2703
|
-
return u(this,
|
|
2704
|
-
u(this,
|
|
2703
|
+
return u(this, Ke)[t].push(r), () => {
|
|
2704
|
+
u(this, Ke)[t] = u(this, Ke)[t].filter(
|
|
2705
2705
|
/** @param {any} fn */
|
|
2706
2706
|
(i) => i !== r
|
|
2707
2707
|
);
|
|
2708
2708
|
};
|
|
2709
2709
|
}
|
|
2710
2710
|
$destroy() {
|
|
2711
|
-
u(this,
|
|
2711
|
+
u(this, pe).$destroy();
|
|
2712
2712
|
}
|
|
2713
2713
|
}
|
|
2714
|
-
|
|
2715
|
-
let
|
|
2716
|
-
typeof HTMLElement == "function" && (
|
|
2714
|
+
Ke = new WeakMap(), pe = new WeakMap();
|
|
2715
|
+
let cs;
|
|
2716
|
+
typeof HTMLElement == "function" && (cs = class extends HTMLElement {
|
|
2717
2717
|
/**
|
|
2718
2718
|
* @param {*} $$componentCtor
|
|
2719
2719
|
* @param {*} $$slots
|
|
@@ -2722,27 +2722,27 @@ typeof HTMLElement == "function" && (ds = class extends HTMLElement {
|
|
|
2722
2722
|
constructor(t, n, r) {
|
|
2723
2723
|
super();
|
|
2724
2724
|
/** The Svelte component constructor */
|
|
2725
|
-
|
|
2725
|
+
z(this, "$$ctor");
|
|
2726
2726
|
/** Slots */
|
|
2727
|
-
|
|
2727
|
+
z(this, "$$s");
|
|
2728
2728
|
/** @type {any} The Svelte component instance */
|
|
2729
|
-
|
|
2729
|
+
z(this, "$$c");
|
|
2730
2730
|
/** Whether or not the custom element is connected */
|
|
2731
|
-
|
|
2731
|
+
z(this, "$$cn", !1);
|
|
2732
2732
|
/** @type {Record<string, any>} Component props data */
|
|
2733
|
-
|
|
2733
|
+
z(this, "$$d", {});
|
|
2734
2734
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
2735
|
-
|
|
2735
|
+
z(this, "$$r", !1);
|
|
2736
2736
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
2737
|
-
|
|
2737
|
+
z(this, "$$p_d", {});
|
|
2738
2738
|
/** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
|
|
2739
|
-
|
|
2739
|
+
z(this, "$$l", {});
|
|
2740
2740
|
/** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
|
|
2741
|
-
|
|
2741
|
+
z(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
2742
2742
|
/** @type {any} The managed render effect for reflecting attributes */
|
|
2743
|
-
|
|
2743
|
+
z(this, "$$me");
|
|
2744
2744
|
/** @type {ShadowRoot | null} The ShadowRoot of the custom element */
|
|
2745
|
-
|
|
2745
|
+
z(this, "$$shadowRoot", null);
|
|
2746
2746
|
this.$$ctor = t, this.$$s = n, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2747
2747
|
}
|
|
2748
2748
|
/**
|
|
@@ -2773,21 +2773,21 @@ typeof HTMLElement == "function" && (ds = class extends HTMLElement {
|
|
|
2773
2773
|
let t = function(i) {
|
|
2774
2774
|
return (s) => {
|
|
2775
2775
|
const o = Ir("slot");
|
|
2776
|
-
i !== "default" && (o.name = i),
|
|
2776
|
+
i !== "default" && (o.name = i), q(s, o);
|
|
2777
2777
|
};
|
|
2778
2778
|
};
|
|
2779
2779
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
2780
2780
|
return;
|
|
2781
|
-
const n = {}, r =
|
|
2781
|
+
const n = {}, r = pl(this);
|
|
2782
2782
|
for (const i of this.$$s)
|
|
2783
2783
|
i in r && (i === "default" && !this.$$d.children ? (this.$$d.children = t(i), n.default = !0) : n[i] = t(i));
|
|
2784
2784
|
for (const i of this.attributes) {
|
|
2785
2785
|
const s = this.$$g_p(i.name);
|
|
2786
|
-
s in this.$$d || (this.$$d[s] =
|
|
2786
|
+
s in this.$$d || (this.$$d[s] = Rn(s, i.value, this.$$p_d, "toProp"));
|
|
2787
2787
|
}
|
|
2788
2788
|
for (const i in this.$$p_d)
|
|
2789
2789
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
2790
|
-
this.$$c =
|
|
2790
|
+
this.$$c = vl({
|
|
2791
2791
|
component: this.$$ctor,
|
|
2792
2792
|
target: this.$$shadowRoot || this,
|
|
2793
2793
|
props: {
|
|
@@ -2796,12 +2796,12 @@ typeof HTMLElement == "function" && (ds = class extends HTMLElement {
|
|
|
2796
2796
|
$$host: this
|
|
2797
2797
|
}
|
|
2798
2798
|
}), this.$$me = Do(() => {
|
|
2799
|
-
|
|
2799
|
+
Wi(() => {
|
|
2800
2800
|
this.$$r = !0;
|
|
2801
|
-
for (const i of
|
|
2801
|
+
for (const i of Nn(this.$$c)) {
|
|
2802
2802
|
if (!this.$$p_d[i]?.reflect) continue;
|
|
2803
2803
|
this.$$d[i] = this.$$c[i];
|
|
2804
|
-
const s =
|
|
2804
|
+
const s = Rn(
|
|
2805
2805
|
i,
|
|
2806
2806
|
this.$$d[i],
|
|
2807
2807
|
this.$$p_d,
|
|
@@ -2828,7 +2828,7 @@ typeof HTMLElement == "function" && (ds = class extends HTMLElement {
|
|
|
2828
2828
|
* @param {string} newValue
|
|
2829
2829
|
*/
|
|
2830
2830
|
attributeChangedCallback(t, n, r) {
|
|
2831
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
2831
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Rn(t, r, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
|
|
2832
2832
|
}
|
|
2833
2833
|
disconnectedCallback() {
|
|
2834
2834
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2839,12 +2839,12 @@ typeof HTMLElement == "function" && (ds = class extends HTMLElement {
|
|
|
2839
2839
|
* @param {string} attribute_name
|
|
2840
2840
|
*/
|
|
2841
2841
|
$$g_p(t) {
|
|
2842
|
-
return
|
|
2842
|
+
return Nn(this.$$p_d).find(
|
|
2843
2843
|
(n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
|
|
2844
2844
|
) || t;
|
|
2845
2845
|
}
|
|
2846
2846
|
});
|
|
2847
|
-
function
|
|
2847
|
+
function Rn(e, t, n, r) {
|
|
2848
2848
|
const i = n[e]?.type;
|
|
2849
2849
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
2850
2850
|
return t;
|
|
@@ -2874,7 +2874,7 @@ function In(e, t, n, r) {
|
|
|
2874
2874
|
return t;
|
|
2875
2875
|
}
|
|
2876
2876
|
}
|
|
2877
|
-
function
|
|
2877
|
+
function pl(e) {
|
|
2878
2878
|
const t = {};
|
|
2879
2879
|
return e.childNodes.forEach((n) => {
|
|
2880
2880
|
t[
|
|
@@ -2883,33 +2883,33 @@ function _l(e) {
|
|
|
2883
2883
|
] = !0;
|
|
2884
2884
|
}), t;
|
|
2885
2885
|
}
|
|
2886
|
-
function
|
|
2887
|
-
let o = class extends
|
|
2886
|
+
function Fr(e, t, n, r, i, s) {
|
|
2887
|
+
let o = class extends cs {
|
|
2888
2888
|
constructor() {
|
|
2889
2889
|
super(e, n, i), this.$$p_d = t;
|
|
2890
2890
|
}
|
|
2891
2891
|
static get observedAttributes() {
|
|
2892
|
-
return
|
|
2892
|
+
return Nn(t).map(
|
|
2893
2893
|
(l) => (t[l].attribute || l).toLowerCase()
|
|
2894
2894
|
);
|
|
2895
2895
|
}
|
|
2896
2896
|
};
|
|
2897
|
-
return
|
|
2898
|
-
|
|
2897
|
+
return Nn(t).forEach((l) => {
|
|
2898
|
+
On(o.prototype, l, {
|
|
2899
2899
|
get() {
|
|
2900
2900
|
return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
|
|
2901
2901
|
},
|
|
2902
2902
|
set(a) {
|
|
2903
|
-
a =
|
|
2903
|
+
a = Rn(l, a, t), this.$$d[l] = a;
|
|
2904
2904
|
var f = this.$$c;
|
|
2905
2905
|
if (f) {
|
|
2906
|
-
var d =
|
|
2906
|
+
var d = Ot(f, l)?.get;
|
|
2907
2907
|
d ? f[l] = a : f.$set({ [l]: a });
|
|
2908
2908
|
}
|
|
2909
2909
|
}
|
|
2910
2910
|
});
|
|
2911
2911
|
}), r.forEach((l) => {
|
|
2912
|
-
|
|
2912
|
+
On(o.prototype, l, {
|
|
2913
2913
|
get() {
|
|
2914
2914
|
return this.$$c?.[l];
|
|
2915
2915
|
}
|
|
@@ -2917,109 +2917,114 @@ function Vr(e, t, n, r, i, s) {
|
|
|
2917
2917
|
}), e.element = /** @type {any} */
|
|
2918
2918
|
o, o;
|
|
2919
2919
|
}
|
|
2920
|
-
var
|
|
2921
|
-
function
|
|
2920
|
+
var _l = /* @__PURE__ */ de('<div role="button" tabindex="0" title="Resize window"><svg viewBox="0 0 16 16" fill="currentColor"><path d="M16 16V14H14V16H16Z"></path><path d="M16 11V9H14V11H16Z"></path><path d="M13 16V14H11V16H13Z"></path></svg></div>');
|
|
2921
|
+
function ds(e, t) {
|
|
2922
2922
|
Yn(t, !0);
|
|
2923
|
-
let n =
|
|
2923
|
+
let n = Te(t, "onPointerDown"), r = Te(t, "handleClass", 7, "absolute bottom-0 right-0 w-4 h-4 cursor-se-resize"), i = Te(t, "iconClass", 7, "w-full h-full text-base-content/30");
|
|
2924
2924
|
var s = {
|
|
2925
2925
|
get onPointerDown() {
|
|
2926
2926
|
return n();
|
|
2927
2927
|
},
|
|
2928
2928
|
set onPointerDown(a) {
|
|
2929
|
-
n(a),
|
|
2929
|
+
n(a), ge();
|
|
2930
2930
|
},
|
|
2931
2931
|
get handleClass() {
|
|
2932
2932
|
return r();
|
|
2933
2933
|
},
|
|
2934
2934
|
set handleClass(a = "absolute bottom-0 right-0 w-4 h-4 cursor-se-resize") {
|
|
2935
|
-
r(a),
|
|
2935
|
+
r(a), ge();
|
|
2936
2936
|
},
|
|
2937
2937
|
get iconClass() {
|
|
2938
2938
|
return i();
|
|
2939
2939
|
},
|
|
2940
2940
|
set iconClass(a = "w-full h-full text-base-content/30") {
|
|
2941
|
-
i(a),
|
|
2941
|
+
i(a), ge();
|
|
2942
2942
|
}
|
|
2943
|
-
}, o =
|
|
2944
|
-
return T(o),
|
|
2945
|
-
Ct(o, 1,
|
|
2946
|
-
}),
|
|
2943
|
+
}, o = _l(), l = M(o);
|
|
2944
|
+
return T(o), De(() => {
|
|
2945
|
+
Ct(o, 1, zn(r())), Ct(l, 0, zn(i()));
|
|
2946
|
+
}), Ue("mousedown", o, function(...a) {
|
|
2947
2947
|
n()?.apply(this, a);
|
|
2948
|
-
}),
|
|
2949
|
-
}
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
var
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2948
|
+
}), q(e, o), Wn(s);
|
|
2949
|
+
}
|
|
2950
|
+
Pr(["mousedown"]);
|
|
2951
|
+
Fr(ds, { onPointerDown: {}, handleClass: {}, iconClass: {} }, [], [], { mode: "open" });
|
|
2952
|
+
var gl = /* @__PURE__ */ ss('<svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 15l7-7 7 7"></path></svg>'), ml = /* @__PURE__ */ ss('<svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>'), wl = /* @__PURE__ */ de('<button><!></button> <button title="Close" aria-label="Close panel"><svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button>', 1);
|
|
2953
|
+
const bl = {
|
|
2954
|
+
hash: "svelte-dx0z4a",
|
|
2955
|
+
code: ".pie-window-controls__button.svelte-dx0z4a {display:inline-flex;align-items:center;justify-content:center;width:1.35rem;height:1.35rem;padding:0;border:1px solid rgba(148, 163, 184, 0.7);border-radius:9999px;background:rgba(255, 255, 255, 0.65);color:#334155;cursor:pointer;}.pie-window-controls__button.svelte-dx0z4a:hover {background:rgba(241, 245, 249, 0.95);}.pie-window-controls__button.svelte-dx0z4a:focus-visible {outline:2px solid #3b82f6;outline-offset:1px;}.pie-window-controls__icon.svelte-dx0z4a {display:block;}"
|
|
2956
|
+
};
|
|
2957
|
+
function vs(e, t) {
|
|
2958
|
+
Yn(t, !0), us(e, bl);
|
|
2959
|
+
let n = Te(t, "minimized", 7, !1), r = Te(t, "onToggle"), i = Te(t, "onClose"), s = Te(t, "buttonClass", 7, "");
|
|
2960
|
+
const o = /* @__PURE__ */ fn(() => (s() || "").trim() || "pie-window-controls__button");
|
|
2961
|
+
var l = {
|
|
2957
2962
|
get minimized() {
|
|
2958
2963
|
return n();
|
|
2959
2964
|
},
|
|
2960
|
-
set minimized(
|
|
2961
|
-
n(
|
|
2965
|
+
set minimized(c = !1) {
|
|
2966
|
+
n(c), ge();
|
|
2962
2967
|
},
|
|
2963
2968
|
get onToggle() {
|
|
2964
2969
|
return r();
|
|
2965
2970
|
},
|
|
2966
|
-
set onToggle(
|
|
2967
|
-
r(
|
|
2971
|
+
set onToggle(c) {
|
|
2972
|
+
r(c), ge();
|
|
2968
2973
|
},
|
|
2969
2974
|
get onClose() {
|
|
2970
2975
|
return i();
|
|
2971
2976
|
},
|
|
2972
|
-
set onClose(
|
|
2973
|
-
i(
|
|
2977
|
+
set onClose(c) {
|
|
2978
|
+
i(c), ge();
|
|
2974
2979
|
},
|
|
2975
2980
|
get buttonClass() {
|
|
2976
2981
|
return s();
|
|
2977
2982
|
},
|
|
2978
|
-
set buttonClass(
|
|
2979
|
-
s(
|
|
2983
|
+
set buttonClass(c = "") {
|
|
2984
|
+
s(c), ge();
|
|
2980
2985
|
}
|
|
2981
|
-
},
|
|
2986
|
+
}, a = wl(), f = wr(a), d = M(f);
|
|
2982
2987
|
{
|
|
2983
|
-
var
|
|
2984
|
-
var
|
|
2985
|
-
|
|
2986
|
-
},
|
|
2987
|
-
var
|
|
2988
|
-
|
|
2988
|
+
var v = (c) => {
|
|
2989
|
+
var b = gl();
|
|
2990
|
+
q(c, b);
|
|
2991
|
+
}, _ = (c) => {
|
|
2992
|
+
var b = ml();
|
|
2993
|
+
q(c, b);
|
|
2989
2994
|
};
|
|
2990
|
-
|
|
2991
|
-
n() ?
|
|
2995
|
+
Oe(d, (c) => {
|
|
2996
|
+
n() ? c(v) : c(_, -1);
|
|
2992
2997
|
});
|
|
2993
2998
|
}
|
|
2994
|
-
T(
|
|
2995
|
-
var
|
|
2996
|
-
return
|
|
2997
|
-
Ct(
|
|
2998
|
-
}),
|
|
2999
|
-
r()?.apply(this,
|
|
3000
|
-
}),
|
|
3001
|
-
i()?.apply(this,
|
|
3002
|
-
}),
|
|
3003
|
-
}
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
var yl = Object.defineProperty, $l = (e, t, n) => t in e ? yl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
3007
|
-
typeof window < "u" && ((
|
|
2999
|
+
T(f);
|
|
3000
|
+
var m = I(f, 2);
|
|
3001
|
+
return De(() => {
|
|
3002
|
+
Ct(f, 1, zn(p(o)), "svelte-dx0z4a"), Ln(f, "title", n() ? "Maximize" : "Minimize"), Ln(f, "aria-label", n() ? "Maximize panel" : "Minimize panel"), Ct(m, 1, zn(p(o)), "svelte-dx0z4a");
|
|
3003
|
+
}), Ue("click", f, function(...c) {
|
|
3004
|
+
r()?.apply(this, c);
|
|
3005
|
+
}), Ue("click", m, function(...c) {
|
|
3006
|
+
i()?.apply(this, c);
|
|
3007
|
+
}), q(e, a), Wn(l);
|
|
3008
|
+
}
|
|
3009
|
+
Pr(["click"]);
|
|
3010
|
+
Fr(vs, { minimized: {}, onToggle: {}, onClose: {}, buttonClass: {} }, [], [], { mode: "open" });
|
|
3011
|
+
var yl = Object.defineProperty, $l = (e, t, n) => t in e ? yl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, fi = (e, t, n) => $l(e, typeof t != "symbol" ? t + "" : t, n), ci;
|
|
3012
|
+
typeof window < "u" && ((ci = window.__svelte ?? (window.__svelte = {})).v ?? (ci.v = /* @__PURE__ */ new Set())).add("5");
|
|
3008
3013
|
new class extends Error {
|
|
3009
3014
|
constructor() {
|
|
3010
|
-
super(...arguments),
|
|
3015
|
+
super(...arguments), fi(this, "name", "StaleReactionError"), fi(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
3011
3016
|
}
|
|
3012
3017
|
}();
|
|
3013
3018
|
const xl = /* @__PURE__ */ new Set(), El = /* @__PURE__ */ new Set();
|
|
3014
|
-
function
|
|
3019
|
+
function hs(e) {
|
|
3015
3020
|
for (var t = 0; t < e.length; t++)
|
|
3016
3021
|
xl.add(e[t]);
|
|
3017
3022
|
for (var n of El)
|
|
3018
3023
|
n(e);
|
|
3019
3024
|
}
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
function
|
|
3025
|
+
hs(["click"]);
|
|
3026
|
+
hs(["mousedown"]);
|
|
3027
|
+
function Sl(e, t) {
|
|
3023
3028
|
const n = (d, v, _) => Math.max(v, Math.min(d, _)), r = n(
|
|
3024
3029
|
Math.round(e.width * t.widthRatio),
|
|
3025
3030
|
t.minWidth,
|
|
@@ -3031,52 +3036,52 @@ function Cl(e, t) {
|
|
|
3031
3036
|
), s = t.paddingX, o = t.paddingY, l = Math.max(s, e.width - r - s), a = l, f = Math.max(o, Math.round((e.height - i) / 2));
|
|
3032
3037
|
return { x: a, y: f, width: r, height: i };
|
|
3033
3038
|
}
|
|
3034
|
-
function
|
|
3039
|
+
function Cl(e) {
|
|
3035
3040
|
const t = e.padding ?? 0;
|
|
3036
3041
|
let n = !1, r = !1, i = 0, s = 0, o = 0, l = 0, a = 0, f = 0, d = 0, v = 0;
|
|
3037
|
-
const _ = (
|
|
3042
|
+
const _ = (w) => {
|
|
3038
3043
|
if (!n) return;
|
|
3039
|
-
const
|
|
3044
|
+
const y = e.getState(), N = w.clientX - i, A = w.clientY - s, ne = Math.max(t, window.innerWidth - y.width - t), V = Math.max(t, window.innerHeight - 100 - t);
|
|
3040
3045
|
e.setState({
|
|
3041
|
-
...
|
|
3042
|
-
x: Math.max(t, Math.min(o + N,
|
|
3043
|
-
y: Math.max(t, Math.min(l +
|
|
3046
|
+
...y,
|
|
3047
|
+
x: Math.max(t, Math.min(o + N, ne)),
|
|
3048
|
+
y: Math.max(t, Math.min(l + A, V))
|
|
3044
3049
|
});
|
|
3045
|
-
},
|
|
3050
|
+
}, m = (w) => {
|
|
3046
3051
|
if (!r) return;
|
|
3047
|
-
const
|
|
3052
|
+
const y = e.getState(), N = w.clientX - a, A = w.clientY - f, ne = Math.max(
|
|
3048
3053
|
e.minWidth,
|
|
3049
|
-
window.innerWidth -
|
|
3050
|
-
),
|
|
3054
|
+
window.innerWidth - y.x - t
|
|
3055
|
+
), V = Math.max(
|
|
3051
3056
|
e.minHeight,
|
|
3052
|
-
window.innerHeight -
|
|
3057
|
+
window.innerHeight - y.y - t
|
|
3053
3058
|
);
|
|
3054
3059
|
e.setState({
|
|
3055
|
-
...
|
|
3060
|
+
...y,
|
|
3056
3061
|
width: Math.max(
|
|
3057
3062
|
e.minWidth,
|
|
3058
|
-
Math.min(d + N,
|
|
3063
|
+
Math.min(d + N, ne)
|
|
3059
3064
|
),
|
|
3060
3065
|
height: Math.max(
|
|
3061
3066
|
e.minHeight,
|
|
3062
|
-
Math.min(v +
|
|
3067
|
+
Math.min(v + A, V)
|
|
3063
3068
|
)
|
|
3064
3069
|
});
|
|
3065
3070
|
}, c = () => {
|
|
3066
3071
|
n = !1, document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", c);
|
|
3067
3072
|
}, b = () => {
|
|
3068
|
-
r = !1, document.removeEventListener("mousemove",
|
|
3073
|
+
r = !1, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", b);
|
|
3069
3074
|
};
|
|
3070
3075
|
return {
|
|
3071
|
-
startDrag(
|
|
3072
|
-
n = !0, i =
|
|
3073
|
-
const
|
|
3074
|
-
o =
|
|
3076
|
+
startDrag(w) {
|
|
3077
|
+
n = !0, i = w.clientX, s = w.clientY;
|
|
3078
|
+
const y = e.getState();
|
|
3079
|
+
o = y.x, l = y.y, document.addEventListener("mousemove", _), document.addEventListener("mouseup", c);
|
|
3075
3080
|
},
|
|
3076
|
-
startResize(
|
|
3077
|
-
r = !0, a =
|
|
3078
|
-
const
|
|
3079
|
-
d =
|
|
3081
|
+
startResize(w) {
|
|
3082
|
+
r = !0, a = w.clientX, f = w.clientY;
|
|
3083
|
+
const y = e.getState();
|
|
3084
|
+
d = y.width, v = y.height, document.addEventListener("mousemove", m), document.addEventListener("mouseup", b), w.preventDefault(), w.stopPropagation();
|
|
3080
3085
|
},
|
|
3081
3086
|
stop() {
|
|
3082
3087
|
c(), b();
|
|
@@ -3086,134 +3091,177 @@ function Sl(e) {
|
|
|
3086
3091
|
function kl(e, t) {
|
|
3087
3092
|
return (e || void 0) === (t || void 0);
|
|
3088
3093
|
}
|
|
3089
|
-
function
|
|
3094
|
+
function Tl(e, t, n) {
|
|
3090
3095
|
const r = e?.key?.sectionId || "", i = e?.key?.attemptId || void 0;
|
|
3091
3096
|
return r !== t ? !1 : kl(i, n);
|
|
3092
3097
|
}
|
|
3093
|
-
function
|
|
3098
|
+
function Ml(e, t, n) {
|
|
3094
3099
|
return !e?.getSectionController || !t ? null : e.getSectionController({
|
|
3095
3100
|
sectionId: t,
|
|
3096
3101
|
attemptId: n
|
|
3097
3102
|
}) || null;
|
|
3098
3103
|
}
|
|
3099
|
-
var
|
|
3104
|
+
var Al = /* @__PURE__ */ de('<span class="pie-section-player-tools-event-debugger__status svelte-low4va">controller unavailable</span>'), Il = /* @__PURE__ */ de('<div class="pie-section-player-tools-event-debugger__empty svelte-low4va">No matching events yet. Interact with an item to capture controller events.</div>'), Rl = /* @__PURE__ */ de("<span> </span>"), Nl = /* @__PURE__ */ de("<span> </span>"), Ol = /* @__PURE__ */ de("<span> </span>"), Dl = /* @__PURE__ */ de("<span> </span>"), zl = /* @__PURE__ */ de('<button><div class="pie-section-player-tools-event-debugger__row-top svelte-low4va"><span class="pie-section-player-tools-event-debugger__event-type svelte-low4va"> </span> <span class="pie-section-player-tools-event-debugger__event-time svelte-low4va"> </span></div> <div class="pie-section-player-tools-event-debugger__row-meta svelte-low4va"><!> <!> <!> <!></div></button>'), Ll = /* @__PURE__ */ de('<div class="pie-section-player-tools-event-debugger__detail-meta svelte-low4va"><div><strong>Type:</strong> </div> <div><strong>Target:</strong> </div> <div><strong>Item:</strong> </div> <div><strong>Canonical:</strong> </div> <div><strong>Intent:</strong> </div> <div><strong>Duplicates:</strong> </div> <div><strong>Semantic Repeats:</strong> </div></div> <pre class="pie-section-player-tools-event-debugger__pre svelte-low4va"> </pre>', 1), Pl = /* @__PURE__ */ de('<div class="pie-section-player-tools-event-debugger__empty svelte-low4va">Select an event to inspect payload details.</div>'), Fl = /* @__PURE__ */ de('<div class="pie-section-player-tools-event-debugger__content-shell svelte-low4va"><div class="pie-section-player-tools-event-debugger__toolbar svelte-low4va"><div class="pie-section-player-tools-event-debugger__toggle-group svelte-low4va" role="group" aria-label="Event level filter"><button>item</button> <button>section</button></div> <button class="pie-section-player-tools-event-debugger__button svelte-low4va"> </button> <button class="pie-section-player-tools-event-debugger__button svelte-low4va">clear</button> <!></div> <div class="pie-section-player-tools-event-debugger__grid svelte-low4va"><div class="pie-section-player-tools-event-debugger__list svelte-low4va"><!></div> <div class="pie-section-player-tools-event-debugger__detail svelte-low4va"><!></div></div></div>'), Hl = /* @__PURE__ */ de('<div class="pie-section-player-tools-event-debugger svelte-low4va"><div class="pie-section-player-tools-event-debugger__header svelte-low4va" role="button" tabindex="0" aria-label="Drag event debugger panel"><div class="pie-section-player-tools-event-debugger__header-title svelte-low4va"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-event-debugger__icon-sm svelte-low4va" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 10h8M8 14h5m-7 7h12a2 2 0 002-2V5a2 2 0 00-2-2H6a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg> <h3 class="pie-section-player-tools-event-debugger__title svelte-low4va">Controller Events</h3></div> <div class="pie-section-player-tools-event-debugger__header-actions svelte-low4va"><!></div></div> <!> <!></div>');
|
|
3100
3105
|
const jl = {
|
|
3101
3106
|
hash: "svelte-low4va",
|
|
3102
3107
|
code: ".pie-section-player-tools-event-debugger.svelte-low4va {position:fixed;z-index:9999;background:var(--color-base-100, #fff);color:var(--color-base-content, #1f2937);border:2px solid var(--color-base-300, #d1d5db);border-radius:8px;box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25);overflow:hidden;font-family:var(--pie-font-family, Inter, system-ui, sans-serif);}.pie-section-player-tools-event-debugger__header.svelte-low4va {padding:8px 16px;display:flex;align-items:center;justify-content:space-between;background:var(--color-base-200, #f3f4f6);cursor:move;user-select:none;border-bottom:1px solid var(--color-base-300, #d1d5db);}.pie-section-player-tools-event-debugger__header-title.svelte-low4va {display:flex;align-items:center;gap:8px;}.pie-section-player-tools-event-debugger__icon-sm.svelte-low4va {width:1rem;height:1rem;}.pie-section-player-tools-event-debugger__title.svelte-low4va {margin:0;font-size:0.95rem;font-weight:700;}.pie-section-player-tools-event-debugger__header-actions.svelte-low4va {display:flex;gap:4px;}.pie-section-player-tools-event-debugger__content-shell.svelte-low4va {display:flex;flex-direction:column;min-height:0;}.pie-section-player-tools-event-debugger__toolbar.svelte-low4va {display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--color-base-300, #d1d5db);flex-wrap:wrap;}.pie-section-player-tools-event-debugger__button.svelte-low4va {border:1px solid var(--color-base-300, #d1d5db);background:var(--color-base-100, #fff);color:inherit;border-radius:6px;font-size:0.78rem;padding:6px 8px;}.pie-section-player-tools-event-debugger__toggle-group.svelte-low4va {display:inline-flex;border:1px solid var(--color-base-300, #d1d5db);border-radius:6px;overflow:hidden;}.pie-section-player-tools-event-debugger__toggle-button.svelte-low4va {border:none;background:var(--color-base-100, #fff);color:inherit;font-size:0.78rem;padding:6px 10px;cursor:pointer;}.pie-section-player-tools-event-debugger__toggle-button.svelte-low4va + .pie-section-player-tools-event-debugger__toggle-button:where(.svelte-low4va) {border-left:1px solid var(--color-base-300, #d1d5db);}.pie-section-player-tools-event-debugger__toggle-button--active.svelte-low4va {background:color-mix(in srgb, var(--color-primary, #2563eb) 18%, transparent);font-weight:600;}.pie-section-player-tools-event-debugger__status.svelte-low4va {font-size:0.72rem;opacity:0.75;}.pie-section-player-tools-event-debugger__grid.svelte-low4va {display:grid;grid-template-columns:minmax(180px, 1fr) minmax(260px, 1.3fr);flex:1;min-height:0;}.pie-section-player-tools-event-debugger__list.svelte-low4va {border-right:1px solid var(--color-base-300, #d1d5db);overflow:auto;}.pie-section-player-tools-event-debugger__detail.svelte-low4va {overflow:auto;}.pie-section-player-tools-event-debugger__row.svelte-low4va {display:block;width:100%;border:0;text-align:left;background:transparent;padding:8px 10px;border-bottom:1px solid var(--color-base-300, #e5e7eb);cursor:pointer;}.pie-section-player-tools-event-debugger__row--active.svelte-low4va {background:color-mix(in srgb, var(--color-primary, #2563eb) 14%, transparent);}.pie-section-player-tools-event-debugger__row-top.svelte-low4va {display:flex;justify-content:space-between;gap:8px;font-size:0.74rem;}.pie-section-player-tools-event-debugger__event-type.svelte-low4va {font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;font-weight:600;}.pie-section-player-tools-event-debugger__event-time.svelte-low4va {opacity:0.75;}.pie-section-player-tools-event-debugger__row-meta.svelte-low4va {margin-top:4px;display:flex;flex-wrap:wrap;gap:8px;font-size:0.7rem;opacity:0.88;}.pie-section-player-tools-event-debugger__detail-meta.svelte-low4va {display:grid;gap:3px;padding:10px 12px;font-size:0.78rem;border-bottom:1px solid var(--color-base-300, #d1d5db);}.pie-section-player-tools-event-debugger__pre.svelte-low4va {margin:0;padding:12px;font-size:0.74rem;line-height:1.35;white-space:pre-wrap;word-break:break-word;font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;}.pie-section-player-tools-event-debugger__empty.svelte-low4va {padding:12px;font-size:0.8rem;opacity:0.8;}"
|
|
3103
3108
|
};
|
|
3104
3109
|
function Vl(e, t) {
|
|
3105
|
-
Yn(t, !0),
|
|
3110
|
+
Yn(t, !0), us(e, jl);
|
|
3106
3111
|
const n = el();
|
|
3107
|
-
let r =
|
|
3108
|
-
|
|
3112
|
+
let r = Te(t, "maxEvents", 7, 200), i = Te(t, "toolkitCoordinator", 7, null), s = Te(t, "sectionId", 7, ""), o = Te(t, "attemptId", 7, void 0), l = /* @__PURE__ */ j(380), a = /* @__PURE__ */ j(100), f = /* @__PURE__ */ j(500), d = /* @__PURE__ */ j(620), v = /* @__PURE__ */ j(!1), _ = /* @__PURE__ */ j(!1), m = /* @__PURE__ */ j("item"), c = /* @__PURE__ */ j(null), b = /* @__PURE__ */ j(Nt([])), w = /* @__PURE__ */ j(!1), y = 1, N = !1;
|
|
3113
|
+
const A = {
|
|
3114
|
+
controller: null,
|
|
3115
|
+
lifecycle: null,
|
|
3116
|
+
activeSectionId: "",
|
|
3117
|
+
activeAttemptId: void 0
|
|
3118
|
+
};
|
|
3119
|
+
function ne(h) {
|
|
3109
3120
|
try {
|
|
3110
|
-
return structuredClone(
|
|
3121
|
+
return structuredClone(h);
|
|
3111
3122
|
} catch {
|
|
3112
3123
|
try {
|
|
3113
|
-
return JSON.parse(JSON.stringify(
|
|
3124
|
+
return JSON.parse(JSON.stringify(h));
|
|
3114
3125
|
} catch {
|
|
3115
|
-
return
|
|
3126
|
+
return h;
|
|
3116
3127
|
}
|
|
3117
3128
|
}
|
|
3118
3129
|
}
|
|
3119
|
-
function
|
|
3120
|
-
let
|
|
3130
|
+
function V(h, g) {
|
|
3131
|
+
let O = "";
|
|
3121
3132
|
try {
|
|
3122
|
-
|
|
3133
|
+
O = JSON.stringify(g);
|
|
3123
3134
|
} catch {
|
|
3124
|
-
|
|
3135
|
+
O = String(g);
|
|
3125
3136
|
}
|
|
3126
|
-
return `${
|
|
3137
|
+
return `${h}:${O}`;
|
|
3127
3138
|
}
|
|
3128
|
-
function
|
|
3129
|
-
const
|
|
3130
|
-
|
|
3131
|
-
let
|
|
3139
|
+
function It(h, g) {
|
|
3140
|
+
const O = g && typeof g == "object" ? { ...g } : g;
|
|
3141
|
+
O && typeof O == "object" && (delete O.timestamp, delete O.sourceRuntimeId);
|
|
3142
|
+
let H = "";
|
|
3132
3143
|
try {
|
|
3133
|
-
|
|
3144
|
+
H = JSON.stringify(O);
|
|
3134
3145
|
} catch {
|
|
3135
|
-
|
|
3146
|
+
H = String(O);
|
|
3136
3147
|
}
|
|
3137
|
-
return `${
|
|
3148
|
+
return `${h}:${H}`;
|
|
3138
3149
|
}
|
|
3139
|
-
function
|
|
3140
|
-
const
|
|
3141
|
-
return
|
|
3150
|
+
function Re(h) {
|
|
3151
|
+
const g = String(h || "");
|
|
3152
|
+
return g === "item-session-data-changed" || g === "item-session-meta-changed" || g === "item-selected" || g === "section-navigation-change" || g === "content-loaded" || g === "item-player-error" || g === "item-complete-changed" || g === "section-loading-complete" || g === "section-items-complete-changed" || g === "section-error" ? g : null;
|
|
3142
3153
|
}
|
|
3143
|
-
function
|
|
3144
|
-
return
|
|
3154
|
+
function ve(h) {
|
|
3155
|
+
return h === "section-navigation-change" || h === "section-loading-complete" || h === "section-items-complete-changed" || h === "section-error" ? "section" : "item";
|
|
3145
3156
|
}
|
|
3146
|
-
function
|
|
3147
|
-
return typeof
|
|
3157
|
+
function et(h) {
|
|
3158
|
+
return typeof h == "string" && h.trim() ? h : null;
|
|
3148
3159
|
}
|
|
3149
|
-
function
|
|
3150
|
-
const
|
|
3160
|
+
function ye(h, g) {
|
|
3161
|
+
const O = ne(h || {}), H = V(g, O), Ne = It(g, O);
|
|
3151
3162
|
return {
|
|
3152
|
-
id:
|
|
3153
|
-
type:
|
|
3154
|
-
timestamp: typeof
|
|
3163
|
+
id: y++,
|
|
3164
|
+
type: g,
|
|
3165
|
+
timestamp: typeof h.timestamp == "number" ? h.timestamp : Date.now(),
|
|
3155
3166
|
targetTag: "section-controller",
|
|
3156
|
-
itemId:
|
|
3157
|
-
canonicalItemId:
|
|
3158
|
-
intent:
|
|
3159
|
-
replayed: p?.replayed === !0,
|
|
3167
|
+
itemId: et(h?.itemId),
|
|
3168
|
+
canonicalItemId: et(h?.canonicalItemId),
|
|
3169
|
+
intent: et(h?.intent),
|
|
3160
3170
|
duplicateCount: 1,
|
|
3161
|
-
payload:
|
|
3162
|
-
fingerprint:
|
|
3163
|
-
semanticFingerprint:
|
|
3171
|
+
payload: O,
|
|
3172
|
+
fingerprint: H,
|
|
3173
|
+
semanticFingerprint: Ne
|
|
3164
3174
|
};
|
|
3165
3175
|
}
|
|
3166
|
-
function
|
|
3167
|
-
if (
|
|
3168
|
-
const
|
|
3169
|
-
if (!
|
|
3170
|
-
const
|
|
3171
|
-
if (
|
|
3176
|
+
function Qt(h) {
|
|
3177
|
+
if (p(_)) return;
|
|
3178
|
+
const g = Re(h?.type);
|
|
3179
|
+
if (!g) return;
|
|
3180
|
+
const O = ye(h, g), H = p(b)[0];
|
|
3181
|
+
if (H && H.fingerprint === O.fingerprint) {
|
|
3172
3182
|
R(
|
|
3173
3183
|
b,
|
|
3174
3184
|
[
|
|
3175
3185
|
{
|
|
3176
|
-
...
|
|
3177
|
-
timestamp:
|
|
3178
|
-
duplicateCount:
|
|
3186
|
+
...H,
|
|
3187
|
+
timestamp: O.timestamp,
|
|
3188
|
+
duplicateCount: H.duplicateCount + 1
|
|
3179
3189
|
},
|
|
3180
|
-
...
|
|
3190
|
+
...p(b).slice(1)
|
|
3181
3191
|
],
|
|
3182
3192
|
!0
|
|
3183
3193
|
);
|
|
3184
3194
|
return;
|
|
3185
3195
|
}
|
|
3186
|
-
const
|
|
3187
|
-
R(b, [
|
|
3188
|
-
}
|
|
3189
|
-
function
|
|
3190
|
-
|
|
3196
|
+
const Ne = Math.max(10, Math.min(2e3, r() || 200));
|
|
3197
|
+
R(b, [O, ...p(b)].slice(0, Ne), !0), p(c) == null && R(c, O.id, !0);
|
|
3198
|
+
}
|
|
3199
|
+
function bn(h) {
|
|
3200
|
+
Qt(h || {});
|
|
3201
|
+
}
|
|
3202
|
+
function ps() {
|
|
3203
|
+
return Ml(i(), s(), o());
|
|
3204
|
+
}
|
|
3205
|
+
function _s(h) {
|
|
3206
|
+
const g = h?.getRuntimeState?.();
|
|
3207
|
+
if (!g || typeof g != "object") return;
|
|
3208
|
+
const O = typeof g.totalItems == "number" ? g.totalItems : 0, H = Date.now();
|
|
3209
|
+
Qt({
|
|
3210
|
+
type: "section-items-complete-changed",
|
|
3211
|
+
complete: g.itemsComplete === !0,
|
|
3212
|
+
completedCount: typeof g.completedCount == "number" ? g.completedCount : 0,
|
|
3213
|
+
totalItems: O,
|
|
3214
|
+
timestamp: H
|
|
3215
|
+
}), g.loadingComplete === !0 && Qt({
|
|
3216
|
+
type: "section-loading-complete",
|
|
3217
|
+
totalRegistered: typeof g.totalRegistered == "number" ? g.totalRegistered : 0,
|
|
3218
|
+
totalLoaded: typeof g.totalLoaded == "number" ? g.totalLoaded : 0,
|
|
3219
|
+
timestamp: H
|
|
3220
|
+
});
|
|
3191
3221
|
}
|
|
3192
|
-
function
|
|
3193
|
-
|
|
3222
|
+
function en() {
|
|
3223
|
+
A.controller?.(), A.controller = null, A.activeSectionId = "", A.activeAttemptId = void 0;
|
|
3194
3224
|
}
|
|
3195
|
-
function
|
|
3196
|
-
|
|
3225
|
+
function Jn() {
|
|
3226
|
+
A.lifecycle?.(), A.lifecycle = null;
|
|
3197
3227
|
}
|
|
3198
|
-
function
|
|
3199
|
-
const
|
|
3200
|
-
if (R(
|
|
3201
|
-
|
|
3228
|
+
function jr() {
|
|
3229
|
+
const h = ps();
|
|
3230
|
+
if (R(w, !!h, !0), !h) {
|
|
3231
|
+
en();
|
|
3202
3232
|
return;
|
|
3203
3233
|
}
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3234
|
+
const g = o() || void 0;
|
|
3235
|
+
if (A.activeSectionId === s() && A.activeAttemptId === g && A.controller)
|
|
3236
|
+
return;
|
|
3237
|
+
en();
|
|
3238
|
+
const H = i()?.subscribeItemEvents?.({
|
|
3239
|
+
sectionId: s(),
|
|
3240
|
+
attemptId: o(),
|
|
3241
|
+
listener: bn
|
|
3242
|
+
}) || null, Ne = i()?.subscribeSectionLifecycleEvents?.({
|
|
3243
|
+
sectionId: s(),
|
|
3244
|
+
attemptId: o(),
|
|
3245
|
+
listener: bn
|
|
3246
|
+
}) || null;
|
|
3247
|
+
A.controller = () => {
|
|
3248
|
+
H?.(), Ne?.();
|
|
3249
|
+
}, A.activeSectionId = s(), A.activeAttemptId = g, _s(h);
|
|
3250
|
+
}
|
|
3251
|
+
function Vr() {
|
|
3252
|
+
N || (N = !0, queueMicrotask(() => {
|
|
3253
|
+
N = !1, jr();
|
|
3254
|
+
}));
|
|
3207
3255
|
}
|
|
3208
|
-
const
|
|
3256
|
+
const Kn = Cl({
|
|
3209
3257
|
getState: () => ({
|
|
3210
|
-
x:
|
|
3211
|
-
y:
|
|
3212
|
-
width:
|
|
3213
|
-
height:
|
|
3258
|
+
x: p(l),
|
|
3259
|
+
y: p(a),
|
|
3260
|
+
width: p(f),
|
|
3261
|
+
height: p(d)
|
|
3214
3262
|
}),
|
|
3215
|
-
setState: (
|
|
3216
|
-
R(l,
|
|
3263
|
+
setState: (h) => {
|
|
3264
|
+
R(l, h.x, !0), R(a, h.y, !0), R(f, h.width, !0), R(d, h.height, !0);
|
|
3217
3265
|
},
|
|
3218
3266
|
minWidth: 340,
|
|
3219
3267
|
minHeight: 260
|
|
@@ -3221,17 +3269,17 @@ function Vl(e, t) {
|
|
|
3221
3269
|
function gs() {
|
|
3222
3270
|
R(b, [], !0), R(c, null);
|
|
3223
3271
|
}
|
|
3224
|
-
function ms(
|
|
3225
|
-
return new Date(
|
|
3226
|
-
}
|
|
3227
|
-
const
|
|
3228
|
-
const
|
|
3229
|
-
for (const
|
|
3230
|
-
|
|
3231
|
-
return
|
|
3232
|
-
}),
|
|
3233
|
-
|
|
3234
|
-
const
|
|
3272
|
+
function ms(h) {
|
|
3273
|
+
return new Date(h).toLocaleTimeString();
|
|
3274
|
+
}
|
|
3275
|
+
const tn = /* @__PURE__ */ fn(() => p(b).filter((h) => ve(h.type) === p(m))), Gn = /* @__PURE__ */ fn(() => {
|
|
3276
|
+
const h = /* @__PURE__ */ new Map();
|
|
3277
|
+
for (const g of p(tn))
|
|
3278
|
+
h.set(g.semanticFingerprint, (h.get(g.semanticFingerprint) || 0) + g.duplicateCount);
|
|
3279
|
+
return h;
|
|
3280
|
+
}), $e = /* @__PURE__ */ fn(() => p(tn).find((h) => h.id === p(c)) || p(tn)[0] || null);
|
|
3281
|
+
as(() => {
|
|
3282
|
+
const h = Sl({ width: window.innerWidth, height: window.innerHeight }, {
|
|
3235
3283
|
widthRatio: 0.34,
|
|
3236
3284
|
heightRatio: 0.74,
|
|
3237
3285
|
minWidth: 380,
|
|
@@ -3241,217 +3289,209 @@ function Vl(e, t) {
|
|
|
3241
3289
|
paddingX: 16,
|
|
3242
3290
|
paddingY: 16
|
|
3243
3291
|
});
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3292
|
+
R(l, h.x, !0), R(a, h.y, !0), R(f, h.width, !0), R(d, h.height, !0);
|
|
3293
|
+
}), Bi(() => (i(), s(), o(), Xn(() => {
|
|
3294
|
+
jr(), Jn(), A.lifecycle = i()?.onSectionControllerLifecycle?.((h) => {
|
|
3295
|
+
if (!Tl(h, s(), o())) return;
|
|
3296
|
+
if (h?.type === "disposed") {
|
|
3297
|
+
en(), Vr();
|
|
3298
|
+
return;
|
|
3299
|
+
}
|
|
3300
|
+
const g = o() || void 0;
|
|
3301
|
+
A.controller && A.activeSectionId === s() && A.activeAttemptId === g || Vr();
|
|
3302
|
+
}) || null;
|
|
3251
3303
|
}), () => {
|
|
3252
|
-
|
|
3304
|
+
en(), Jn();
|
|
3253
3305
|
})), Zo(() => {
|
|
3254
|
-
|
|
3306
|
+
Kn.stop(), en(), Jn();
|
|
3255
3307
|
});
|
|
3256
3308
|
var ws = {
|
|
3257
3309
|
get maxEvents() {
|
|
3258
3310
|
return r();
|
|
3259
3311
|
},
|
|
3260
|
-
set maxEvents(
|
|
3261
|
-
r(
|
|
3312
|
+
set maxEvents(h = 200) {
|
|
3313
|
+
r(h), ge();
|
|
3262
3314
|
},
|
|
3263
3315
|
get toolkitCoordinator() {
|
|
3264
3316
|
return i();
|
|
3265
3317
|
},
|
|
3266
|
-
set toolkitCoordinator(
|
|
3267
|
-
i(
|
|
3318
|
+
set toolkitCoordinator(h = null) {
|
|
3319
|
+
i(h), ge();
|
|
3268
3320
|
},
|
|
3269
3321
|
get sectionId() {
|
|
3270
3322
|
return s();
|
|
3271
3323
|
},
|
|
3272
|
-
set sectionId(
|
|
3273
|
-
s(
|
|
3324
|
+
set sectionId(h = "") {
|
|
3325
|
+
s(h), ge();
|
|
3274
3326
|
},
|
|
3275
3327
|
get attemptId() {
|
|
3276
3328
|
return o();
|
|
3277
3329
|
},
|
|
3278
|
-
set attemptId(
|
|
3279
|
-
o(
|
|
3330
|
+
set attemptId(h = void 0) {
|
|
3331
|
+
o(h), ge();
|
|
3280
3332
|
}
|
|
3281
|
-
}, yn = Hl(), $n = M(yn),
|
|
3282
|
-
|
|
3333
|
+
}, yn = Hl(), $n = M(yn), Br = I(M($n), 2), bs = M(Br);
|
|
3334
|
+
vs(bs, {
|
|
3283
3335
|
get minimized() {
|
|
3284
|
-
return
|
|
3336
|
+
return p(v);
|
|
3285
3337
|
},
|
|
3286
|
-
onToggle: () => R(v, !
|
|
3338
|
+
onToggle: () => R(v, !p(v)),
|
|
3287
3339
|
onClose: () => n("close")
|
|
3288
|
-
}), T(
|
|
3289
|
-
var
|
|
3340
|
+
}), T(Br), T($n);
|
|
3341
|
+
var Yr = I($n, 2);
|
|
3290
3342
|
{
|
|
3291
|
-
var ys = (
|
|
3292
|
-
var
|
|
3343
|
+
var ys = (h) => {
|
|
3344
|
+
var g = Fl(), O = M(g), H = M(O), Ne = M(H);
|
|
3345
|
+
let Wr;
|
|
3346
|
+
var Zn = I(Ne, 2);
|
|
3293
3347
|
let qr;
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
T(ne);
|
|
3297
|
-
var xn = k(ne, 2), Es = M(xn, !0);
|
|
3348
|
+
T(H);
|
|
3349
|
+
var xn = I(H, 2), Es = M(xn, !0);
|
|
3298
3350
|
T(xn);
|
|
3299
|
-
var
|
|
3351
|
+
var Ur = I(xn, 2), Ss = I(Ur, 2);
|
|
3300
3352
|
{
|
|
3301
|
-
var
|
|
3302
|
-
var xe =
|
|
3303
|
-
|
|
3353
|
+
var Cs = (B) => {
|
|
3354
|
+
var xe = Al();
|
|
3355
|
+
q(B, xe);
|
|
3304
3356
|
};
|
|
3305
|
-
|
|
3306
|
-
|
|
3357
|
+
Oe(Ss, (B) => {
|
|
3358
|
+
p(w) || B(Cs);
|
|
3307
3359
|
});
|
|
3308
3360
|
}
|
|
3309
|
-
T(
|
|
3310
|
-
var
|
|
3361
|
+
T(O);
|
|
3362
|
+
var Xr = I(O, 2), Qn = M(Xr), ks = M(Qn);
|
|
3311
3363
|
{
|
|
3312
|
-
var Ts = (
|
|
3313
|
-
var xe =
|
|
3314
|
-
|
|
3315
|
-
}, Ms = (
|
|
3316
|
-
var xe = qo(),
|
|
3317
|
-
nl(
|
|
3318
|
-
var
|
|
3364
|
+
var Ts = (B) => {
|
|
3365
|
+
var xe = Il();
|
|
3366
|
+
q(B, xe);
|
|
3367
|
+
}, Ms = (B) => {
|
|
3368
|
+
var xe = qo(), nn = wr(xe);
|
|
3369
|
+
nl(nn, 17, () => p(tn), (vt) => vt.id, (vt, K) => {
|
|
3370
|
+
var We = zl();
|
|
3319
3371
|
let En;
|
|
3320
|
-
var
|
|
3321
|
-
T(
|
|
3322
|
-
var
|
|
3323
|
-
T(
|
|
3324
|
-
var
|
|
3372
|
+
var ht = M(We), rn = M(ht), sn = M(rn, !0);
|
|
3373
|
+
T(rn);
|
|
3374
|
+
var Sn = I(rn, 2), on = M(Sn, !0);
|
|
3375
|
+
T(Sn), T(ht);
|
|
3376
|
+
var Cn = I(ht, 2), Rt = M(Cn);
|
|
3325
3377
|
{
|
|
3326
|
-
var er = (
|
|
3327
|
-
var
|
|
3328
|
-
T(
|
|
3378
|
+
var er = (Y) => {
|
|
3379
|
+
var G = Rl(), pt = M(G);
|
|
3380
|
+
T(G), De(() => Z(pt, `item: ${p(K).itemId ?? ""}`)), q(Y, G);
|
|
3329
3381
|
};
|
|
3330
|
-
|
|
3331
|
-
|
|
3382
|
+
Oe(Rt, (Y) => {
|
|
3383
|
+
p(K).itemId && Y(er);
|
|
3332
3384
|
});
|
|
3333
3385
|
}
|
|
3334
|
-
var
|
|
3386
|
+
var ln = I(Rt, 2);
|
|
3335
3387
|
{
|
|
3336
|
-
var tr = (
|
|
3337
|
-
var
|
|
3338
|
-
|
|
3388
|
+
var tr = (Y) => {
|
|
3389
|
+
var G = Nl(), pt = M(G);
|
|
3390
|
+
T(G), De(() => Z(pt, `intent: ${p(K).intent ?? ""}`)), q(Y, G);
|
|
3339
3391
|
};
|
|
3340
|
-
|
|
3341
|
-
|
|
3392
|
+
Oe(ln, (Y) => {
|
|
3393
|
+
p(K).intent && Y(tr);
|
|
3342
3394
|
});
|
|
3343
3395
|
}
|
|
3344
|
-
var
|
|
3396
|
+
var an = I(ln, 2);
|
|
3345
3397
|
{
|
|
3346
|
-
var nr = (
|
|
3347
|
-
var
|
|
3348
|
-
T(
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3398
|
+
var nr = (Y) => {
|
|
3399
|
+
var G = Ol(), pt = M(G);
|
|
3400
|
+
T(G), De((Os) => Z(pt, `semantic repeats: ${Os ?? ""}`), [
|
|
3401
|
+
() => p(Gn).get(p(K).semanticFingerprint)
|
|
3402
|
+
]), q(Y, G);
|
|
3403
|
+
}, rr = /* @__PURE__ */ fn(() => (p(Gn).get(p(K).semanticFingerprint) || 0) > p(K).duplicateCount);
|
|
3404
|
+
Oe(an, (Y) => {
|
|
3405
|
+
p(rr) && Y(nr);
|
|
3352
3406
|
});
|
|
3353
3407
|
}
|
|
3354
|
-
var
|
|
3408
|
+
var ir = I(an, 2);
|
|
3355
3409
|
{
|
|
3356
|
-
var
|
|
3357
|
-
var
|
|
3358
|
-
T(
|
|
3359
|
-
() => h(Kn).get(h(K).semanticFingerprint)
|
|
3360
|
-
]), H(F, W);
|
|
3361
|
-
}, ir = /* @__PURE__ */ Tn(() => (h(Kn).get(h(K).semanticFingerprint) || 0) > h(K).duplicateCount);
|
|
3362
|
-
Ee(ln, (F) => {
|
|
3363
|
-
h(ir) && F(rr);
|
|
3364
|
-
});
|
|
3365
|
-
}
|
|
3366
|
-
var sr = k(ln, 2);
|
|
3367
|
-
{
|
|
3368
|
-
var Is = (F) => {
|
|
3369
|
-
var W = Dl(), ht = M(W);
|
|
3370
|
-
T(W), Oe(() => Z(ht, `dupes: ${h(K).duplicateCount ?? ""}`)), H(F, W);
|
|
3410
|
+
var Ns = (Y) => {
|
|
3411
|
+
var G = Dl(), pt = M(G);
|
|
3412
|
+
T(G), De(() => Z(pt, `dupes: ${p(K).duplicateCount ?? ""}`)), q(Y, G);
|
|
3371
3413
|
};
|
|
3372
|
-
|
|
3373
|
-
|
|
3414
|
+
Oe(ir, (Y) => {
|
|
3415
|
+
p(K).duplicateCount > 1 && Y(Ns);
|
|
3374
3416
|
});
|
|
3375
3417
|
}
|
|
3376
|
-
T(
|
|
3377
|
-
(
|
|
3378
|
-
En = Ct(
|
|
3379
|
-
"pie-section-player-tools-event-debugger__row--active":
|
|
3380
|
-
}), Z(
|
|
3418
|
+
T(Cn), T(We), De(
|
|
3419
|
+
(Y) => {
|
|
3420
|
+
En = Ct(We, 1, "pie-section-player-tools-event-debugger__row svelte-low4va", null, En, {
|
|
3421
|
+
"pie-section-player-tools-event-debugger__row--active": p($e)?.id === p(K).id
|
|
3422
|
+
}), Z(sn, p(K).type), Z(on, Y);
|
|
3381
3423
|
},
|
|
3382
|
-
[() => ms(
|
|
3383
|
-
),
|
|
3384
|
-
}),
|
|
3424
|
+
[() => ms(p(K).timestamp)]
|
|
3425
|
+
), Ue("click", We, () => R(c, p(K).id, !0)), q(vt, We);
|
|
3426
|
+
}), q(B, xe);
|
|
3385
3427
|
};
|
|
3386
|
-
|
|
3387
|
-
|
|
3428
|
+
Oe(ks, (B) => {
|
|
3429
|
+
p(tn).length === 0 ? B(Ts) : B(Ms, -1);
|
|
3388
3430
|
});
|
|
3389
3431
|
}
|
|
3390
3432
|
T(Qn);
|
|
3391
|
-
var
|
|
3433
|
+
var Jr = I(Qn, 2), As = M(Jr);
|
|
3392
3434
|
{
|
|
3393
|
-
var
|
|
3394
|
-
var xe =
|
|
3395
|
-
T(dt);
|
|
3396
|
-
var Ye = k(dt, 2), En = k(M(Ye));
|
|
3397
|
-
T(Ye);
|
|
3398
|
-
var vt = k(Ye, 2), nn = k(M(vt));
|
|
3435
|
+
var Is = (B) => {
|
|
3436
|
+
var xe = Ll(), nn = wr(xe), vt = M(nn), K = I(M(vt));
|
|
3399
3437
|
T(vt);
|
|
3400
|
-
var
|
|
3401
|
-
T(
|
|
3402
|
-
var
|
|
3438
|
+
var We = I(vt, 2), En = I(M(We));
|
|
3439
|
+
T(We);
|
|
3440
|
+
var ht = I(We, 2), rn = I(M(ht));
|
|
3441
|
+
T(ht);
|
|
3442
|
+
var sn = I(ht, 2), Sn = I(M(sn));
|
|
3403
3443
|
T(sn);
|
|
3404
|
-
var
|
|
3405
|
-
T(
|
|
3406
|
-
var
|
|
3407
|
-
T(
|
|
3408
|
-
var
|
|
3409
|
-
T(
|
|
3410
|
-
var
|
|
3411
|
-
T(
|
|
3412
|
-
(
|
|
3413
|
-
Z(K, ` ${
|
|
3444
|
+
var on = I(sn, 2), Cn = I(M(on));
|
|
3445
|
+
T(on);
|
|
3446
|
+
var Rt = I(on, 2), er = I(M(Rt));
|
|
3447
|
+
T(Rt);
|
|
3448
|
+
var ln = I(Rt, 2), tr = I(M(ln));
|
|
3449
|
+
T(ln), T(nn);
|
|
3450
|
+
var an = I(nn, 2), nr = M(an, !0);
|
|
3451
|
+
T(an), De(
|
|
3452
|
+
(rr, ir) => {
|
|
3453
|
+
Z(K, ` ${p($e).type ?? ""}`), Z(En, ` ${(p($e).targetTag || "unknown") ?? ""}`), Z(rn, ` ${(p($e).itemId || "n/a") ?? ""}`), Z(Sn, ` ${(p($e).canonicalItemId || "n/a") ?? ""}`), Z(Cn, ` ${(p($e).intent || "n/a") ?? ""}`), Z(er, ` ${p($e).duplicateCount ?? ""}`), Z(tr, ` ${rr ?? ""}`), Z(nr, ir);
|
|
3414
3454
|
},
|
|
3415
3455
|
[
|
|
3416
|
-
() =>
|
|
3417
|
-
() => JSON.stringify(
|
|
3456
|
+
() => p(Gn).get(p($e).semanticFingerprint) || p($e).duplicateCount,
|
|
3457
|
+
() => JSON.stringify(p($e).payload, null, 2)
|
|
3418
3458
|
]
|
|
3419
|
-
),
|
|
3420
|
-
},
|
|
3421
|
-
var xe =
|
|
3422
|
-
|
|
3459
|
+
), q(B, xe);
|
|
3460
|
+
}, Rs = (B) => {
|
|
3461
|
+
var xe = Pl();
|
|
3462
|
+
q(B, xe);
|
|
3423
3463
|
};
|
|
3424
|
-
|
|
3425
|
-
|
|
3464
|
+
Oe(As, (B) => {
|
|
3465
|
+
p($e) ? B(Is) : B(Rs, -1);
|
|
3426
3466
|
});
|
|
3427
3467
|
}
|
|
3428
|
-
T(
|
|
3429
|
-
|
|
3430
|
-
"pie-section-player-tools-event-debugger__toggle-button--active":
|
|
3431
|
-
}),
|
|
3432
|
-
"pie-section-player-tools-event-debugger__toggle-button--active":
|
|
3433
|
-
}),
|
|
3434
|
-
}),
|
|
3468
|
+
T(Jr), T(Xr), T(g), De(() => {
|
|
3469
|
+
ai(g, `height: ${p(d) - 50}px;`), Wr = Ct(Ne, 1, "pie-section-player-tools-event-debugger__toggle-button svelte-low4va", null, Wr, {
|
|
3470
|
+
"pie-section-player-tools-event-debugger__toggle-button--active": p(m) === "item"
|
|
3471
|
+
}), Ln(Ne, "aria-pressed", p(m) === "item"), qr = Ct(Zn, 1, "pie-section-player-tools-event-debugger__toggle-button svelte-low4va", null, qr, {
|
|
3472
|
+
"pie-section-player-tools-event-debugger__toggle-button--active": p(m) === "section"
|
|
3473
|
+
}), Ln(Zn, "aria-pressed", p(m) === "section"), Z(Es, p(_) ? "resume" : "pause");
|
|
3474
|
+
}), Ue("click", Ne, () => R(m, "item")), Ue("click", Zn, () => R(m, "section")), Ue("click", xn, () => R(_, !p(_))), Ue("click", Ur, gs), q(h, g);
|
|
3435
3475
|
};
|
|
3436
|
-
|
|
3437
|
-
|
|
3476
|
+
Oe(Yr, (h) => {
|
|
3477
|
+
p(v) || h(ys);
|
|
3438
3478
|
});
|
|
3439
3479
|
}
|
|
3440
|
-
var $s =
|
|
3480
|
+
var $s = I(Yr, 2);
|
|
3441
3481
|
{
|
|
3442
|
-
var xs = (
|
|
3443
|
-
|
|
3444
|
-
onPointerDown: (
|
|
3482
|
+
var xs = (h) => {
|
|
3483
|
+
ds(h, {
|
|
3484
|
+
onPointerDown: (g) => Kn.startResize(g)
|
|
3445
3485
|
});
|
|
3446
3486
|
};
|
|
3447
|
-
|
|
3448
|
-
|
|
3487
|
+
Oe($s, (h) => {
|
|
3488
|
+
p(v) || h(xs);
|
|
3449
3489
|
});
|
|
3450
3490
|
}
|
|
3451
|
-
return T(yn),
|
|
3491
|
+
return T(yn), De(() => ai(yn, `left: ${p(l) ?? ""}px; top: ${p(a) ?? ""}px; width: ${p(f) ?? ""}px; ${p(v) ? "height: auto;" : `height: ${p(d)}px;`}`)), Ue("mousedown", $n, (h) => Kn.startDrag(h)), q(e, yn), Wn(ws);
|
|
3452
3492
|
}
|
|
3453
|
-
|
|
3454
|
-
customElements.define("pie-section-player-tools-event-debugger",
|
|
3493
|
+
Pr(["mousedown", "click"]);
|
|
3494
|
+
customElements.define("pie-section-player-tools-event-debugger", Fr(
|
|
3455
3495
|
Vl,
|
|
3456
3496
|
{
|
|
3457
3497
|
maxEvents: { attribute: "max-events", type: "Number" },
|
|
@@ -3460,7 +3500,8 @@ customElements.define("pie-section-player-tools-event-debugger", Vr(
|
|
|
3460
3500
|
attemptId: { attribute: "attempt-id", type: "String" }
|
|
3461
3501
|
},
|
|
3462
3502
|
[],
|
|
3463
|
-
[]
|
|
3503
|
+
[],
|
|
3504
|
+
{ mode: "open" }
|
|
3464
3505
|
));
|
|
3465
3506
|
export {
|
|
3466
3507
|
Vl as default
|