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