@pie-players/pie-tool-line-reader 1.0.0-beta.3 → 1.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/tool-line-reader.js +1706 -1336
- package/package.json +3 -3
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 as, clampPointWithinBlock as
|
|
4
|
-
import { resolveInterfaceI18n as
|
|
1
|
+
import { coerceBooleanAttributes as zs } from "@pie-players/pie-players-shared/ui/attribute-coercion";
|
|
2
|
+
import { ZIndexLayer as Ls, connectToolRuntimeContext as Hs, createToolCoordinatorRegistration as Ds } from "@pie-players/pie-assessment-toolkit/tools/registration";
|
|
3
|
+
import { DEFAULT_CONTAINMENT_GUTTER as js, OVERLAY_PLACEMENT_NUDGES as li, OVERLAY_PLACEMENT_ROTATIONS as Fs, clampPointWithinBlock as Bs, createFocusReturn as qs, createPointerDragController as Us, createPointerGesture as Ys, dockUprightControls as Gs, resolveContainingBlockRect as Vs } from "@pie-players/pie-players-shared";
|
|
4
|
+
import { resolveInterfaceI18n as Ks } from "@pie-players/pie-players-shared/i18n/provider";
|
|
5
5
|
if (typeof window < "u") {
|
|
6
|
-
var
|
|
7
|
-
((
|
|
6
|
+
var jn, Fn;
|
|
7
|
+
((jn = (Fn = window).__svelte ?? (Fn.__svelte = {})).v ?? (jn.v = /* @__PURE__ */ new Set())).add("5");
|
|
8
8
|
}
|
|
9
|
-
var
|
|
10
|
-
var
|
|
9
|
+
var ze = {}, F = /* @__PURE__ */ Symbol("uninitialized");
|
|
10
|
+
var fi = Array.isArray, Xs = Array.prototype.indexOf, Bt = Array.prototype.includes, Cr = Array.from, wr = Object.keys, qt = Object.defineProperty, Ze = Object.getOwnPropertyDescriptor, Zs = Object.getOwnPropertyDescriptors, Js = Object.prototype, Qs = Array.prototype, ui = Object.getPrototypeOf, Bn = Object.isExtensible, ea = () => {
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function ta(e) {
|
|
13
13
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function ci() {
|
|
16
16
|
var e, t;
|
|
17
17
|
return {
|
|
18
18
|
promise: new Promise((r, n) => {
|
|
@@ -22,79 +22,87 @@ function On() {
|
|
|
22
22
|
reject: t
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function ra(e, t) {
|
|
26
|
+
if (Array.isArray(e)) return e;
|
|
27
|
+
if (t === void 0 || !(Symbol.iterator in e)) return Array.from(e);
|
|
28
|
+
const r = [];
|
|
29
|
+
for (const n of e)
|
|
30
|
+
if (r.push(n), r.length === t) break;
|
|
31
|
+
return r;
|
|
32
|
+
}
|
|
33
|
+
function Ut(e) {
|
|
26
34
|
"@babel/helpers - typeof";
|
|
27
|
-
return
|
|
35
|
+
return Ut = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
28
36
|
return typeof t;
|
|
29
37
|
} : function(t) {
|
|
30
38
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
31
|
-
},
|
|
39
|
+
}, Ut(e);
|
|
32
40
|
}
|
|
33
|
-
function
|
|
34
|
-
if (
|
|
41
|
+
function na(e, t) {
|
|
42
|
+
if (Ut(e) != "object" || !e) return e;
|
|
35
43
|
var r = e[Symbol.toPrimitive];
|
|
36
44
|
if (r !== void 0) {
|
|
37
45
|
var n = r.call(e, t || "default");
|
|
38
|
-
if (
|
|
46
|
+
if (Ut(n) != "object") return n;
|
|
39
47
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
40
48
|
}
|
|
41
49
|
return (t === "string" ? String : Number)(e);
|
|
42
50
|
}
|
|
43
|
-
function
|
|
44
|
-
var t =
|
|
45
|
-
return
|
|
51
|
+
function ia(e) {
|
|
52
|
+
var t = na(e, "string");
|
|
53
|
+
return Ut(t) == "symbol" ? t : t + "";
|
|
46
54
|
}
|
|
47
|
-
function
|
|
48
|
-
return (t =
|
|
55
|
+
function I(e, t, r) {
|
|
56
|
+
return (t = ia(t)) in e ? Object.defineProperty(e, t, {
|
|
49
57
|
value: r,
|
|
50
58
|
enumerable: !0,
|
|
51
59
|
configurable: !0,
|
|
52
60
|
writable: !0
|
|
53
61
|
}) : e[t] = r, e;
|
|
54
62
|
}
|
|
55
|
-
var
|
|
56
|
-
var
|
|
63
|
+
var Qo = 1 << 24, ie = 1024, ee = 2048, it = 4096, cn = 8192, di = 16384, dn = 32768, Xr = 1 << 25, hn = 65536, el = 1 << 17, tl = 1 << 18, mt = 1 << 19, sa = 1 << 20, Ht = 1 << 25, qn = 1 << 21, aa = 1 << 22, br = 1 << 23, Dt = /* @__PURE__ */ Symbol("$state"), hi = /* @__PURE__ */ Symbol("component"), vi = /* @__PURE__ */ Symbol("legacy props"), oa = /* @__PURE__ */ Symbol(""), la = /* @__PURE__ */ Symbol("proxy path"), Zr = /* @__PURE__ */ Symbol("attributes"), Jr = /* @__PURE__ */ Symbol("class"), Qr = /* @__PURE__ */ Symbol("style"), pr = /* @__PURE__ */ Symbol("text");
|
|
64
|
+
var Xt = new class extends Error {
|
|
57
65
|
constructor(...t) {
|
|
58
|
-
super(...t),
|
|
66
|
+
super(...t), I(this, "name", "StaleReactionError"), I(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
59
67
|
}
|
|
60
|
-
}(),
|
|
61
|
-
function
|
|
68
|
+
}(), fa = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
69
|
+
function ua() {
|
|
62
70
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
63
71
|
}
|
|
64
|
-
function
|
|
72
|
+
function Nr(e) {
|
|
65
73
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
66
74
|
}
|
|
67
|
-
function
|
|
75
|
+
function ca() {
|
|
68
76
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
69
77
|
}
|
|
70
|
-
var
|
|
71
|
-
function
|
|
72
|
-
|
|
78
|
+
var R = !1;
|
|
79
|
+
function Te(e) {
|
|
80
|
+
R = e;
|
|
73
81
|
}
|
|
74
|
-
var
|
|
75
|
-
function
|
|
82
|
+
var P;
|
|
83
|
+
function Z(e) {
|
|
76
84
|
if (e === null)
|
|
77
|
-
throw
|
|
78
|
-
return
|
|
85
|
+
throw Nr(), ze;
|
|
86
|
+
return P = e;
|
|
79
87
|
}
|
|
80
|
-
function
|
|
81
|
-
return
|
|
88
|
+
function Ir() {
|
|
89
|
+
return Z(/* @__PURE__ */ $e(P));
|
|
82
90
|
}
|
|
83
|
-
function
|
|
84
|
-
if (
|
|
85
|
-
if (/* @__PURE__ */
|
|
86
|
-
throw
|
|
87
|
-
|
|
91
|
+
function qe(e) {
|
|
92
|
+
if (R) {
|
|
93
|
+
if (/* @__PURE__ */ $e(P) !== null)
|
|
94
|
+
throw Nr(), ze;
|
|
95
|
+
P = e;
|
|
88
96
|
}
|
|
89
97
|
}
|
|
90
|
-
function
|
|
91
|
-
if (
|
|
92
|
-
for (var t = e, r =
|
|
93
|
-
|
|
98
|
+
function da(e = 1) {
|
|
99
|
+
if (R) {
|
|
100
|
+
for (var t = e, r = P; t--; ) r = /* @__PURE__ */ $e(r);
|
|
101
|
+
P = r;
|
|
94
102
|
}
|
|
95
103
|
}
|
|
96
|
-
function
|
|
97
|
-
for (var t = 0, r =
|
|
104
|
+
function mr(e = !0) {
|
|
105
|
+
for (var t = 0, r = P; ; ) {
|
|
98
106
|
if (r.nodeType === 8) {
|
|
99
107
|
var n = r.data;
|
|
100
108
|
if (n === "]") {
|
|
@@ -102,405 +110,408 @@ function Hn(e = !0) {
|
|
|
102
110
|
t -= 1;
|
|
103
111
|
} else (n === "[" || n === "[!" || n[0] === "[" && !isNaN(Number(n.slice(1)))) && (t += 1);
|
|
104
112
|
}
|
|
105
|
-
var i = /* @__PURE__ */
|
|
113
|
+
var i = /* @__PURE__ */ $e(r);
|
|
106
114
|
e && r.remove(), r = i;
|
|
107
115
|
}
|
|
108
116
|
}
|
|
109
|
-
function
|
|
117
|
+
function vn(e) {
|
|
110
118
|
if (!e || e.nodeType !== 8)
|
|
111
|
-
throw
|
|
119
|
+
throw Nr(), ze;
|
|
112
120
|
return e.data;
|
|
113
121
|
}
|
|
114
|
-
function
|
|
122
|
+
function pi(e) {
|
|
115
123
|
return e === this.v;
|
|
116
124
|
}
|
|
117
|
-
function
|
|
125
|
+
function ha(e, t) {
|
|
118
126
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
119
127
|
}
|
|
120
|
-
function
|
|
121
|
-
return !
|
|
128
|
+
function _i(e) {
|
|
129
|
+
return !ha(e, this.v);
|
|
122
130
|
}
|
|
123
|
-
function
|
|
131
|
+
function va(e) {
|
|
124
132
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
125
133
|
}
|
|
126
|
-
function
|
|
134
|
+
function pa() {
|
|
127
135
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
128
136
|
}
|
|
129
|
-
function
|
|
137
|
+
function _a(e, t, r) {
|
|
138
|
+
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
139
|
+
}
|
|
140
|
+
function ga(e) {
|
|
130
141
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
131
142
|
}
|
|
132
|
-
function
|
|
143
|
+
function wa() {
|
|
133
144
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
134
145
|
}
|
|
135
|
-
function
|
|
146
|
+
function ba(e) {
|
|
136
147
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
137
148
|
}
|
|
138
|
-
function
|
|
149
|
+
function ma() {
|
|
139
150
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
140
151
|
}
|
|
141
|
-
function
|
|
152
|
+
function ya() {
|
|
142
153
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
143
154
|
}
|
|
144
|
-
function
|
|
155
|
+
function ka(e) {
|
|
145
156
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
146
157
|
}
|
|
147
|
-
function
|
|
158
|
+
function $a() {
|
|
148
159
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
149
160
|
}
|
|
150
|
-
function
|
|
161
|
+
function xa() {
|
|
151
162
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
152
163
|
}
|
|
153
|
-
function
|
|
164
|
+
function Ea() {
|
|
154
165
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
155
166
|
}
|
|
156
|
-
function
|
|
167
|
+
function Sa() {
|
|
157
168
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
158
169
|
}
|
|
159
|
-
var
|
|
160
|
-
function
|
|
161
|
-
return e.label = t,
|
|
170
|
+
var De = !1, Zt = !1;
|
|
171
|
+
function Un(e, t) {
|
|
172
|
+
return e.label = t, Ta(e.v, t), e;
|
|
162
173
|
}
|
|
163
|
-
function
|
|
164
|
-
return e?.[
|
|
174
|
+
function Ta(e, t) {
|
|
175
|
+
return e?.[la]?.(t), e;
|
|
165
176
|
}
|
|
166
|
-
var
|
|
167
|
-
function
|
|
168
|
-
|
|
177
|
+
var z = null;
|
|
178
|
+
function _t(e) {
|
|
179
|
+
z = e;
|
|
169
180
|
}
|
|
170
|
-
function
|
|
171
|
-
|
|
172
|
-
p:
|
|
181
|
+
function pn(e, t = !1, r) {
|
|
182
|
+
z = {
|
|
183
|
+
p: z,
|
|
173
184
|
i: !1,
|
|
174
185
|
c: null,
|
|
175
186
|
e: null,
|
|
176
187
|
s: e,
|
|
177
188
|
x: null,
|
|
178
|
-
r:
|
|
179
|
-
l:
|
|
189
|
+
r: T,
|
|
190
|
+
l: Zt && !t ? {
|
|
180
191
|
s: null,
|
|
181
192
|
u: null,
|
|
182
193
|
$: []
|
|
183
194
|
} : null
|
|
184
195
|
};
|
|
185
196
|
}
|
|
186
|
-
function
|
|
187
|
-
var t =
|
|
197
|
+
function _n(e) {
|
|
198
|
+
var t = z, r = t.e;
|
|
188
199
|
if (r !== null) {
|
|
189
200
|
t.e = null;
|
|
190
|
-
for (var n of r)
|
|
201
|
+
for (var n of r) Hi(n);
|
|
191
202
|
}
|
|
192
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
203
|
+
return e !== void 0 && (t.x = e), t.i = !0, z = t.p, gn(e);
|
|
193
204
|
}
|
|
194
|
-
function
|
|
195
|
-
return
|
|
205
|
+
function gn(e = {}) {
|
|
206
|
+
return qt(e, hi, { value: !0 }), e;
|
|
196
207
|
}
|
|
197
|
-
function
|
|
198
|
-
return !
|
|
208
|
+
function Jt() {
|
|
209
|
+
return !Zt || z !== null && z.l === null;
|
|
199
210
|
}
|
|
200
|
-
var
|
|
201
|
-
function
|
|
202
|
-
var e =
|
|
203
|
-
|
|
211
|
+
var Ve = [];
|
|
212
|
+
function gi() {
|
|
213
|
+
var e = Ve;
|
|
214
|
+
Ve = [], ta(e);
|
|
204
215
|
}
|
|
205
|
-
function
|
|
206
|
-
if (
|
|
207
|
-
var t =
|
|
216
|
+
function Le(e) {
|
|
217
|
+
if (Ve.length === 0 && !jt) {
|
|
218
|
+
var t = Ve;
|
|
208
219
|
queueMicrotask(() => {
|
|
209
|
-
t ===
|
|
220
|
+
t === Ve && gi();
|
|
210
221
|
});
|
|
211
222
|
}
|
|
212
|
-
|
|
223
|
+
Ve.push(e);
|
|
213
224
|
}
|
|
214
|
-
function
|
|
215
|
-
for (;
|
|
225
|
+
function Aa() {
|
|
226
|
+
for (; Ve.length > 0; ) gi();
|
|
216
227
|
}
|
|
217
|
-
var
|
|
218
|
-
function
|
|
219
|
-
e.f = e.f &
|
|
228
|
+
var Ma = ~(ee | it | ie);
|
|
229
|
+
function L(e, t) {
|
|
230
|
+
e.f = e.f & Ma | t;
|
|
220
231
|
}
|
|
221
|
-
function
|
|
222
|
-
(e.f & 512) !== 0 || e.deps === null ?
|
|
232
|
+
function wn(e) {
|
|
233
|
+
(e.f & 512) !== 0 || e.deps === null ? L(e, ie) : L(e, it);
|
|
223
234
|
}
|
|
224
|
-
function
|
|
225
|
-
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e),
|
|
235
|
+
function wi(e, t, r) {
|
|
236
|
+
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e), L(e, ie);
|
|
226
237
|
}
|
|
227
|
-
function
|
|
228
|
-
var t =
|
|
229
|
-
|
|
238
|
+
function Wr(e) {
|
|
239
|
+
var t = M, r = T;
|
|
240
|
+
ae(null), ke(null);
|
|
230
241
|
try {
|
|
231
242
|
return e();
|
|
232
243
|
} finally {
|
|
233
|
-
|
|
244
|
+
ae(t), ke(r);
|
|
234
245
|
}
|
|
235
246
|
}
|
|
236
|
-
function
|
|
237
|
-
const i =
|
|
238
|
-
var s = e.filter((f) => !f.settled),
|
|
247
|
+
function Ra(e, t, r, n) {
|
|
248
|
+
const i = Jt() ? Yt : bn;
|
|
249
|
+
var s = e.filter((f) => !f.settled), a = t.map(i);
|
|
239
250
|
if (r.length === 0 && s.length === 0) {
|
|
240
|
-
n(
|
|
251
|
+
n(a);
|
|
241
252
|
return;
|
|
242
253
|
}
|
|
243
|
-
var l =
|
|
244
|
-
function
|
|
254
|
+
var l = T, u = Pa(), v = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((f) => f.promise)) : null;
|
|
255
|
+
function _(f) {
|
|
245
256
|
if ((l.f & 16384) === 0) {
|
|
246
|
-
|
|
257
|
+
u();
|
|
247
258
|
try {
|
|
248
|
-
n([...
|
|
259
|
+
n([...a, ...f]);
|
|
249
260
|
} catch (g) {
|
|
250
|
-
|
|
261
|
+
ye(g, l);
|
|
251
262
|
}
|
|
252
|
-
|
|
263
|
+
yr();
|
|
253
264
|
}
|
|
254
265
|
}
|
|
255
|
-
var
|
|
266
|
+
var c = bi();
|
|
256
267
|
if (r.length === 0) {
|
|
257
|
-
v.then(() =>
|
|
268
|
+
v.then(() => _([])).finally(c);
|
|
258
269
|
return;
|
|
259
270
|
}
|
|
260
|
-
function
|
|
261
|
-
Promise.all(r.map((f) => /* @__PURE__ */
|
|
271
|
+
function h() {
|
|
272
|
+
Promise.all(r.map((f) => /* @__PURE__ */ Ca(f))).then(_).catch((f) => ye(f, l)).finally(c);
|
|
262
273
|
}
|
|
263
274
|
v ? v.then(() => {
|
|
264
275
|
if ((l.f & 16384) !== 0) {
|
|
265
|
-
|
|
276
|
+
c();
|
|
266
277
|
return;
|
|
267
278
|
}
|
|
268
|
-
|
|
269
|
-
}) :
|
|
279
|
+
u(), h(), yr();
|
|
280
|
+
}) : h();
|
|
270
281
|
}
|
|
271
|
-
function
|
|
272
|
-
var e =
|
|
282
|
+
function Pa() {
|
|
283
|
+
var e = T, t = M, r = z, n = A;
|
|
273
284
|
if (0) var i;
|
|
274
|
-
return function(
|
|
275
|
-
|
|
285
|
+
return function(a = !0) {
|
|
286
|
+
ke(e), ae(t), _t(r), a && (e.f & 16384) === 0 && (n?.activate(), n?.apply());
|
|
276
287
|
};
|
|
277
288
|
}
|
|
278
|
-
var
|
|
279
|
-
function
|
|
280
|
-
|
|
289
|
+
var Oa = !1;
|
|
290
|
+
function yr(e = !0) {
|
|
291
|
+
Oa = !1, ke(null), ae(null), _t(null), e && A?.deactivate();
|
|
281
292
|
}
|
|
282
|
-
function
|
|
283
|
-
var e =
|
|
293
|
+
function bi() {
|
|
294
|
+
var e = T, t = e.b, r = A, n = !!t?.is_rendered();
|
|
284
295
|
return t?.update_pending_count(1, r), r.increment(n, e), () => {
|
|
285
296
|
t?.update_pending_count(-1, r), r.decrement(n, e);
|
|
286
297
|
};
|
|
287
298
|
}
|
|
288
299
|
// @__NO_SIDE_EFFECTS__
|
|
289
|
-
function
|
|
290
|
-
var t = 2 |
|
|
291
|
-
return
|
|
292
|
-
ctx:
|
|
300
|
+
function Yt(e) {
|
|
301
|
+
var t = 2 | ee;
|
|
302
|
+
return T !== null && (T.f |= mt), {
|
|
303
|
+
ctx: z,
|
|
293
304
|
deps: null,
|
|
294
305
|
effects: null,
|
|
295
|
-
equals:
|
|
306
|
+
equals: pi,
|
|
296
307
|
f: t,
|
|
297
308
|
fn: e,
|
|
298
309
|
reactions: null,
|
|
299
310
|
rv: 0,
|
|
300
|
-
v:
|
|
311
|
+
v: F,
|
|
301
312
|
wv: 0,
|
|
302
|
-
parent:
|
|
313
|
+
parent: T,
|
|
303
314
|
ac: null
|
|
304
315
|
};
|
|
305
316
|
}
|
|
306
|
-
var
|
|
317
|
+
var Rt = /* @__PURE__ */ Symbol("obsolete");
|
|
307
318
|
// @__NO_SIDE_EFFECTS__
|
|
308
|
-
function
|
|
309
|
-
let n =
|
|
310
|
-
n === null &&
|
|
311
|
-
var i = void 0, s =
|
|
312
|
-
return
|
|
313
|
-
var
|
|
319
|
+
function Ca(e, t, r) {
|
|
320
|
+
let n = T;
|
|
321
|
+
n === null && pa();
|
|
322
|
+
var i = void 0, s = nt(F), a = !M, l = /* @__PURE__ */ new Set();
|
|
323
|
+
return Za(() => {
|
|
324
|
+
var u = T, v = ci();
|
|
314
325
|
i = v.promise;
|
|
315
326
|
try {
|
|
316
327
|
Promise.resolve(e()).then(v.resolve, (f) => {
|
|
317
|
-
f !==
|
|
318
|
-
}).finally(
|
|
328
|
+
f !== Xt && v.reject(f);
|
|
329
|
+
}).finally(yr);
|
|
319
330
|
} catch (f) {
|
|
320
|
-
v.reject(f),
|
|
331
|
+
v.reject(f), yr();
|
|
321
332
|
}
|
|
322
|
-
var
|
|
323
|
-
if (
|
|
324
|
-
if ((
|
|
325
|
-
if (n.b?.is_rendered())
|
|
326
|
-
else for (const f of l.values()) f.reject(
|
|
327
|
-
l.add(v),
|
|
333
|
+
var _ = A;
|
|
334
|
+
if (a) {
|
|
335
|
+
if ((u.f & 32768) !== 0) var c = bi();
|
|
336
|
+
if (n.b?.is_rendered()) _.async_deriveds.get(u)?.reject(Rt);
|
|
337
|
+
else for (const f of l.values()) f.reject(Rt);
|
|
338
|
+
l.add(v), _.async_deriveds.set(u, v);
|
|
328
339
|
}
|
|
329
|
-
const
|
|
330
|
-
|
|
340
|
+
const h = (f, g = void 0) => {
|
|
341
|
+
c?.(), l.delete(v), g !== Rt && (_.activate(), g ? (s.f |= br, gt(s, g)) : ((s.f & 8388608) !== 0 && (s.f ^= br), gt(s, f)), _.deactivate());
|
|
331
342
|
};
|
|
332
|
-
v.promise.then(
|
|
333
|
-
}),
|
|
334
|
-
for (const
|
|
335
|
-
}), new Promise((
|
|
336
|
-
function v(
|
|
337
|
-
function
|
|
338
|
-
|
|
343
|
+
v.promise.then(h, (f) => h(null, f || "unknown"));
|
|
344
|
+
}), Va(() => {
|
|
345
|
+
for (const u of l) u.reject(Rt);
|
|
346
|
+
}), new Promise((u) => {
|
|
347
|
+
function v(_) {
|
|
348
|
+
function c() {
|
|
349
|
+
_ === i ? u(s) : v(i);
|
|
339
350
|
}
|
|
340
|
-
|
|
351
|
+
_.then(c, c);
|
|
341
352
|
}
|
|
342
353
|
v(i);
|
|
343
354
|
});
|
|
344
355
|
}
|
|
345
356
|
// @__NO_SIDE_EFFECTS__
|
|
346
|
-
function
|
|
347
|
-
const t = /* @__PURE__ */
|
|
348
|
-
return
|
|
357
|
+
function Pt(e) {
|
|
358
|
+
const t = /* @__PURE__ */ Yt(e);
|
|
359
|
+
return De || Ui(t), t;
|
|
349
360
|
}
|
|
350
361
|
// @__NO_SIDE_EFFECTS__
|
|
351
|
-
function
|
|
352
|
-
const t = /* @__PURE__ */
|
|
353
|
-
return t.equals =
|
|
362
|
+
function bn(e) {
|
|
363
|
+
const t = /* @__PURE__ */ Yt(e);
|
|
364
|
+
return t.equals = _i, t;
|
|
354
365
|
}
|
|
355
|
-
function
|
|
366
|
+
function Na(e) {
|
|
356
367
|
var t = e.effects;
|
|
357
368
|
if (t !== null) {
|
|
358
369
|
e.effects = null;
|
|
359
|
-
for (var r = 0; r < t.length; r += 1)
|
|
370
|
+
for (var r = 0; r < t.length; r += 1) V(t[r]);
|
|
360
371
|
}
|
|
361
372
|
}
|
|
362
|
-
function
|
|
363
|
-
var t, r =
|
|
364
|
-
if (!
|
|
365
|
-
return
|
|
366
|
-
|
|
373
|
+
function mn(e) {
|
|
374
|
+
var t, r = T, n = e.parent;
|
|
375
|
+
if (!Me && n !== null && e.v !== F && (n.f & 24576) !== 0)
|
|
376
|
+
return ua(), e.v;
|
|
377
|
+
ke(n);
|
|
367
378
|
try {
|
|
368
|
-
|
|
379
|
+
Na(e), t = Ki(e);
|
|
369
380
|
} finally {
|
|
370
|
-
|
|
381
|
+
ke(r);
|
|
371
382
|
}
|
|
372
383
|
return t;
|
|
373
384
|
}
|
|
374
|
-
function
|
|
375
|
-
var t =
|
|
376
|
-
if (!e.equals(t) && (e.wv =
|
|
377
|
-
|
|
385
|
+
function mi(e) {
|
|
386
|
+
var t = mn(e);
|
|
387
|
+
if (!e.equals(t) && (e.wv = Gi(), (!A?.is_fork || e.deps === null) && (A !== null ? (A.capture(e, t, !0), vt?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
388
|
+
L(e, ie);
|
|
378
389
|
return;
|
|
379
390
|
}
|
|
380
|
-
|
|
391
|
+
Me || (G !== null ? (Sn() || A?.is_fork) && G.set(e, t) : wn(e));
|
|
381
392
|
}
|
|
382
|
-
function
|
|
393
|
+
function Ia(e) {
|
|
383
394
|
if (e.effects !== null)
|
|
384
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null &&
|
|
385
|
-
t.ac.abort(
|
|
386
|
-
}), t.fn !== null && (t.teardown =
|
|
395
|
+
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && Wr(() => {
|
|
396
|
+
t.ac.abort(Xt), t.ac = null;
|
|
397
|
+
}), t.fn !== null && (t.teardown = ea), Vt(t, 0), Mn(t));
|
|
387
398
|
}
|
|
388
|
-
function
|
|
399
|
+
function yi(e) {
|
|
389
400
|
if (e.effects !== null)
|
|
390
|
-
for (const t of e.effects) t.teardown && t.fn !== null &&
|
|
401
|
+
for (const t of e.effects) t.teardown && t.fn !== null && wt(t);
|
|
391
402
|
}
|
|
392
|
-
function
|
|
403
|
+
function ki(e, t) {
|
|
393
404
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
394
405
|
}
|
|
395
|
-
function
|
|
396
|
-
|
|
406
|
+
function yn(e, t) {
|
|
407
|
+
ki(e, t), t.add(e);
|
|
397
408
|
}
|
|
398
|
-
function
|
|
399
|
-
|
|
409
|
+
function S(e, t, r) {
|
|
410
|
+
ki(e, t), t.set(e, r);
|
|
400
411
|
}
|
|
401
|
-
function
|
|
412
|
+
function k(e, t, r) {
|
|
402
413
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
|
|
403
414
|
throw new TypeError("Private element is not present on this object");
|
|
404
415
|
}
|
|
405
|
-
function
|
|
406
|
-
return e.set(
|
|
416
|
+
function $(e, t, r) {
|
|
417
|
+
return e.set(k(e, t), r), r;
|
|
407
418
|
}
|
|
408
|
-
function
|
|
409
|
-
return e.get(
|
|
419
|
+
function o(e, t) {
|
|
420
|
+
return e.get(k(e, t));
|
|
410
421
|
}
|
|
411
|
-
var
|
|
412
|
-
var
|
|
422
|
+
var $i, kr = null, ft = null, A = null, vt = null, G = null, en = null, jt = !1, Dr = !1, Gt = null, $r = null, xi = 0;
|
|
423
|
+
var Wa = 1, xr = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), Er = /* @__PURE__ */ new WeakMap(), ur = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), Ot = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakSet(), st = class Ei {
|
|
413
424
|
constructor() {
|
|
414
|
-
|
|
425
|
+
yn(this, W), I(this, "id", Wa++), S(this, xr, !1), I(this, "linked", !0), S(this, Je, null), S(this, Ke, null), I(this, "async_deriveds", /* @__PURE__ */ new Map()), I(this, "current", /* @__PURE__ */ new Map()), I(this, "previous", /* @__PURE__ */ new Map()), S(this, Er, /* @__PURE__ */ new Set()), S(this, ur, /* @__PURE__ */ new Set()), S(this, ut, 0), S(this, Be, /* @__PURE__ */ new Map()), S(this, Ot, null), S(this, le, []), S(this, tn, []), S(this, rt, /* @__PURE__ */ new Set()), S(this, Ae, /* @__PURE__ */ new Set()), S(this, Ce, /* @__PURE__ */ new Map()), S(this, _r, /* @__PURE__ */ new Set()), I(this, "is_fork", !1), S(this, Ct, !1), ft === null ? kr = ft = this : ($(Ke, ft, this), $(Je, this, ft)), ft = this;
|
|
415
426
|
}
|
|
416
427
|
skip_effect(t) {
|
|
417
|
-
|
|
428
|
+
o(Ce, this).has(t) || o(Ce, this).set(t, {
|
|
418
429
|
d: [],
|
|
419
430
|
m: []
|
|
420
|
-
}),
|
|
431
|
+
}), o(_r, this).delete(t);
|
|
421
432
|
}
|
|
422
433
|
unskip_effect(t, r = (n) => this.schedule(n)) {
|
|
423
|
-
var n =
|
|
434
|
+
var n = o(Ce, this).get(t);
|
|
424
435
|
if (n) {
|
|
425
|
-
|
|
436
|
+
o(Ce, this).delete(t);
|
|
426
437
|
for (var i of n.d)
|
|
427
|
-
|
|
438
|
+
L(i, ee), r(i);
|
|
428
439
|
for (i of n.m)
|
|
429
|
-
|
|
440
|
+
L(i, it), r(i);
|
|
430
441
|
}
|
|
431
|
-
|
|
442
|
+
o(_r, this).add(t);
|
|
432
443
|
}
|
|
433
444
|
capture(t, r, n = !1) {
|
|
434
|
-
t.v !==
|
|
445
|
+
t.v !== F && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [r, n]), G?.set(t, r)), this.is_fork || (t.v = r);
|
|
435
446
|
}
|
|
436
447
|
activate() {
|
|
437
|
-
|
|
448
|
+
A = this;
|
|
438
449
|
}
|
|
439
450
|
deactivate() {
|
|
440
|
-
|
|
451
|
+
A = null, G = null;
|
|
441
452
|
}
|
|
442
453
|
flush() {
|
|
443
454
|
try {
|
|
444
|
-
|
|
455
|
+
Dr = !0, A = this, k(W, this, Sr).call(this);
|
|
445
456
|
} finally {
|
|
446
|
-
|
|
457
|
+
xi = 0, en = null, Gt = null, $r = null, Dr = !1, A = null, G = null, me.clear();
|
|
447
458
|
}
|
|
448
459
|
}
|
|
449
460
|
discard() {
|
|
450
|
-
for (const t of
|
|
451
|
-
|
|
452
|
-
for (const t of this.async_deriveds.values()) t.reject(
|
|
453
|
-
|
|
461
|
+
for (const t of o(ur, this)) t(this);
|
|
462
|
+
o(ur, this).clear();
|
|
463
|
+
for (const t of this.async_deriveds.values()) t.reject(Rt);
|
|
464
|
+
k(W, this, Tr).call(this), o(Ot, this)?.resolve();
|
|
454
465
|
}
|
|
455
466
|
register_created_effect(t) {
|
|
456
|
-
|
|
467
|
+
o(tn, this).push(t);
|
|
457
468
|
}
|
|
458
469
|
increment(t, r) {
|
|
459
|
-
if (
|
|
460
|
-
let n =
|
|
461
|
-
|
|
470
|
+
if ($(ut, this, o(ut, this) + 1), t) {
|
|
471
|
+
let n = o(Be, this).get(r) ?? 0;
|
|
472
|
+
o(Be, this).set(r, n + 1);
|
|
462
473
|
}
|
|
463
474
|
}
|
|
464
475
|
decrement(t, r) {
|
|
465
|
-
if (
|
|
466
|
-
let n =
|
|
467
|
-
n === 1 ?
|
|
476
|
+
if ($(ut, this, o(ut, this) - 1), t) {
|
|
477
|
+
let n = o(Be, this).get(r) ?? 0;
|
|
478
|
+
n === 1 ? o(Be, this).delete(r) : o(Be, this).set(r, n - 1);
|
|
468
479
|
}
|
|
469
|
-
|
|
470
|
-
|
|
480
|
+
o(Ct, this) || ($(Ct, this, !0), Le(() => {
|
|
481
|
+
$(Ct, this, !1), this.linked && this.flush();
|
|
471
482
|
}));
|
|
472
483
|
}
|
|
473
484
|
transfer_effects(t, r) {
|
|
474
|
-
for (const n of t)
|
|
475
|
-
for (const n of r)
|
|
485
|
+
for (const n of t) o(rt, this).add(n);
|
|
486
|
+
for (const n of r) o(Ae, this).add(n);
|
|
476
487
|
t.clear(), r.clear();
|
|
477
488
|
}
|
|
478
489
|
oncommit(t) {
|
|
479
|
-
|
|
490
|
+
o(Er, this).add(t);
|
|
480
491
|
}
|
|
481
492
|
ondiscard(t) {
|
|
482
|
-
|
|
493
|
+
o(ur, this).add(t);
|
|
483
494
|
}
|
|
484
495
|
settled() {
|
|
485
|
-
return (
|
|
496
|
+
return (o(Ot, this) ?? $(Ot, this, ci())).promise;
|
|
486
497
|
}
|
|
487
498
|
static ensure() {
|
|
488
|
-
if (
|
|
489
|
-
const t =
|
|
490
|
-
!
|
|
491
|
-
|
|
499
|
+
if (A === null) {
|
|
500
|
+
const t = A = new Ei();
|
|
501
|
+
!Dr && !jt && Le(() => {
|
|
502
|
+
o(xr, t) || t.flush();
|
|
492
503
|
});
|
|
493
504
|
}
|
|
494
|
-
return
|
|
505
|
+
return A;
|
|
495
506
|
}
|
|
496
507
|
apply() {
|
|
497
|
-
if (!
|
|
498
|
-
|
|
508
|
+
if (!De || !this.is_fork && o(Je, this) === null && o(Ke, this) === null) {
|
|
509
|
+
G = null;
|
|
499
510
|
return;
|
|
500
511
|
}
|
|
501
|
-
|
|
502
|
-
for (const [r, [n]] of this.current)
|
|
503
|
-
for (let r =
|
|
512
|
+
G = /* @__PURE__ */ new Map();
|
|
513
|
+
for (const [r, [n]] of this.current) G.set(r, n);
|
|
514
|
+
for (let r = kr; r !== null; r = o(Ke, r))
|
|
504
515
|
if (!(r === this || r.is_fork)) {
|
|
505
516
|
var t = !1;
|
|
506
517
|
if (r.id < this.id) {
|
|
@@ -511,23 +522,23 @@ var Qs = 1, Zt = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap
|
|
|
511
522
|
}
|
|
512
523
|
}
|
|
513
524
|
if (!t)
|
|
514
|
-
for (const [n, i] of r.previous)
|
|
525
|
+
for (const [n, i] of r.previous) G.has(n) || G.set(n, i);
|
|
515
526
|
}
|
|
516
527
|
}
|
|
517
528
|
schedule(t) {
|
|
518
|
-
if (
|
|
529
|
+
if (en = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
|
|
519
530
|
t.b.defer_effect(t);
|
|
520
531
|
return;
|
|
521
532
|
}
|
|
522
|
-
|
|
533
|
+
o(le, this).push(t);
|
|
523
534
|
}
|
|
524
535
|
};
|
|
525
|
-
|
|
526
|
-
function
|
|
536
|
+
$i = st;
|
|
537
|
+
function Yn() {
|
|
527
538
|
if (this.is_fork) return !0;
|
|
528
|
-
for (const r of
|
|
539
|
+
for (const r of o(Be, this).keys()) {
|
|
529
540
|
for (var e = r, t = !1; e.parent !== null; ) {
|
|
530
|
-
if (
|
|
541
|
+
if (o(Ce, this).has(e)) {
|
|
531
542
|
t = !0;
|
|
532
543
|
break;
|
|
533
544
|
}
|
|
@@ -537,9 +548,9 @@ function vn() {
|
|
|
537
548
|
}
|
|
538
549
|
return !1;
|
|
539
550
|
}
|
|
540
|
-
function
|
|
551
|
+
function Si() {
|
|
541
552
|
var e = [];
|
|
542
|
-
for (const i of
|
|
553
|
+
for (const i of o(le, this))
|
|
543
554
|
if (!((i.f & 16384) !== 0 || (i.f & 6144) === 0)) {
|
|
544
555
|
for (var t = i, r = !1; t.parent !== null; ) {
|
|
545
556
|
t = t.parent;
|
|
@@ -549,63 +560,63 @@ function Qn() {
|
|
|
549
560
|
r = !0;
|
|
550
561
|
break;
|
|
551
562
|
}
|
|
552
|
-
t.f ^=
|
|
563
|
+
t.f ^= ie;
|
|
553
564
|
}
|
|
554
565
|
}
|
|
555
566
|
r || e.push(t);
|
|
556
567
|
}
|
|
557
|
-
return
|
|
568
|
+
return $(le, this, []), e;
|
|
558
569
|
}
|
|
559
|
-
function
|
|
560
|
-
|
|
561
|
-
for (const
|
|
562
|
-
|
|
563
|
-
for (const
|
|
564
|
-
|
|
570
|
+
function Sr() {
|
|
571
|
+
$(xr, this, !0);
|
|
572
|
+
for (const a of o(rt, this))
|
|
573
|
+
o(Ae, this).delete(a), L(a, ee), this.schedule(a);
|
|
574
|
+
for (const a of o(Ae, this))
|
|
575
|
+
L(a, it), this.schedule(a);
|
|
565
576
|
this.apply();
|
|
566
|
-
for (var e =
|
|
567
|
-
|
|
568
|
-
for (const
|
|
569
|
-
|
|
577
|
+
for (var e = Gt = [], t = [], r = $r = []; o(le, this).length > 0; ) {
|
|
578
|
+
xi++ > 1e3 && (k(W, this, Tr).call(this), Da());
|
|
579
|
+
for (const a of k(W, this, Si).call(this)) try {
|
|
580
|
+
k(W, this, Ti).call(this, a, e, t);
|
|
570
581
|
} catch (l) {
|
|
571
|
-
throw
|
|
582
|
+
throw Ri(a), k(W, this, Yn).call(this) || this.discard(), l;
|
|
572
583
|
}
|
|
573
584
|
}
|
|
574
|
-
if (
|
|
575
|
-
var n =
|
|
576
|
-
for (const
|
|
585
|
+
if (A = null, r.length > 0) {
|
|
586
|
+
var n = $i.ensure();
|
|
587
|
+
for (const a of r) n.schedule(a);
|
|
577
588
|
}
|
|
578
|
-
if (
|
|
579
|
-
|
|
580
|
-
for (const [
|
|
581
|
-
r.length > 0 &&
|
|
589
|
+
if (Gt = null, $r = null, k(W, this, Yn).call(this)) {
|
|
590
|
+
k(W, this, Nt).call(this, t), k(W, this, Nt).call(this, e);
|
|
591
|
+
for (const [a, l] of o(Ce, this)) Mi(a, l);
|
|
592
|
+
r.length > 0 && k(W, A, Sr).call(A);
|
|
582
593
|
return;
|
|
583
594
|
}
|
|
584
|
-
const i =
|
|
595
|
+
const i = k(W, this, za).call(this);
|
|
585
596
|
if (i) {
|
|
586
|
-
|
|
597
|
+
k(W, this, Nt).call(this, t), k(W, this, Nt).call(this, e), k(W, i, La).call(i, this);
|
|
587
598
|
return;
|
|
588
599
|
}
|
|
589
|
-
|
|
590
|
-
for (const
|
|
591
|
-
|
|
592
|
-
var s =
|
|
593
|
-
if (
|
|
600
|
+
o(rt, this).clear(), o(Ae, this).clear();
|
|
601
|
+
for (const a of o(Er, this)) a(this);
|
|
602
|
+
o(Er, this).clear(), vt = this, Gn(t), Gn(e), vt = null, o(Ot, this)?.resolve();
|
|
603
|
+
var s = A;
|
|
604
|
+
if (o(ut, this) === 0 && (o(le, this).length === 0 || s !== null) && (k(W, this, Tr).call(this), De && (k(W, this, Ha).call(this), A = s)), o(le, this).length > 0)
|
|
594
605
|
if (s !== null) {
|
|
595
|
-
for (const
|
|
596
|
-
|
|
606
|
+
for (const a of o(le, this)) o(le, s).push(a);
|
|
607
|
+
$(le, this, []);
|
|
597
608
|
} else s = this;
|
|
598
|
-
s !== null && (
|
|
609
|
+
s !== null && (me.clear(), k(W, s, Sr).call(s));
|
|
599
610
|
}
|
|
600
|
-
function
|
|
601
|
-
e.f ^=
|
|
611
|
+
function Ti(e, t, r) {
|
|
612
|
+
e.f ^= ie;
|
|
602
613
|
for (var n = e.first; n !== null; ) {
|
|
603
614
|
var i = n.f, s = (i & 96) !== 0;
|
|
604
|
-
if (!(s && (i & 1024) !== 0 || (i & 8192) !== 0 ||
|
|
605
|
-
s ? n.f ^=
|
|
606
|
-
var
|
|
607
|
-
if (
|
|
608
|
-
n =
|
|
615
|
+
if (!(s && (i & 1024) !== 0 || (i & 8192) !== 0 || o(Ce, this).has(n)) && n.fn !== null) {
|
|
616
|
+
s ? n.f ^= ie : (i & 4) !== 0 ? t.push(n) : De && (i & 16777224) !== 0 ? r.push(n) : Qt(n) && ((i & 16) !== 0 && o(Ae, this).add(n), wt(n));
|
|
617
|
+
var a = n.first;
|
|
618
|
+
if (a !== null) {
|
|
619
|
+
n = a;
|
|
609
620
|
continue;
|
|
610
621
|
}
|
|
611
622
|
}
|
|
@@ -619,463 +630,463 @@ function ei(e, t, r) {
|
|
|
619
630
|
}
|
|
620
631
|
}
|
|
621
632
|
}
|
|
622
|
-
function
|
|
623
|
-
for (var e =
|
|
633
|
+
function za() {
|
|
634
|
+
for (var e = o(Je, this); e !== null; ) {
|
|
624
635
|
if (!e.is_fork) {
|
|
625
636
|
for (const [t, [, r]] of this.current) if (e.current.has(t) && !r) return e;
|
|
626
637
|
}
|
|
627
|
-
e =
|
|
638
|
+
e = o(Je, e);
|
|
628
639
|
}
|
|
629
640
|
return null;
|
|
630
641
|
}
|
|
631
|
-
function
|
|
642
|
+
function La(e) {
|
|
632
643
|
for (const [r, n] of e.current)
|
|
633
644
|
!this.previous.has(r) && e.previous.has(r) && this.previous.set(r, e.previous.get(r)), this.current.set(r, n);
|
|
634
645
|
for (const [r, n] of e.async_deriveds) {
|
|
635
646
|
const i = this.async_deriveds.get(r);
|
|
636
647
|
i && n.promise.then(i.resolve).catch(i.reject);
|
|
637
648
|
}
|
|
638
|
-
e.async_deriveds.clear(), this.transfer_effects(
|
|
649
|
+
e.async_deriveds.clear(), this.transfer_effects(o(rt, e), o(Ae, e));
|
|
639
650
|
const t = (r) => {
|
|
640
651
|
var n = r.reactions;
|
|
641
652
|
if (n !== null && !((r.f & 2) !== 0 && (r.f & 6144) === 0))
|
|
642
|
-
for (const
|
|
643
|
-
var i =
|
|
644
|
-
if ((i & 2) !== 0) t(
|
|
653
|
+
for (const a of n) {
|
|
654
|
+
var i = a.f;
|
|
655
|
+
if ((i & 2) !== 0) t(a);
|
|
645
656
|
else {
|
|
646
|
-
var s =
|
|
647
|
-
i & 4194320 && !this.async_deriveds.has(s) && (
|
|
657
|
+
var s = a;
|
|
658
|
+
i & 4194320 && !this.async_deriveds.has(s) && (o(Ae, this).delete(s), L(s, ee), this.schedule(s));
|
|
648
659
|
}
|
|
649
660
|
}
|
|
650
661
|
};
|
|
651
662
|
for (const r of this.current.keys()) t(r);
|
|
652
|
-
this.oncommit(() => e.discard()),
|
|
653
|
-
}
|
|
654
|
-
function
|
|
655
|
-
for (var t = 0; t < e.length; t += 1)
|
|
656
|
-
}
|
|
657
|
-
function
|
|
658
|
-
for (let
|
|
659
|
-
var e =
|
|
660
|
-
for (const [
|
|
661
|
-
if (
|
|
662
|
-
var r =
|
|
663
|
-
if (e &&
|
|
663
|
+
this.oncommit(() => e.discard()), k(W, e, Tr).call(e), A = this, k(W, this, Sr).call(this);
|
|
664
|
+
}
|
|
665
|
+
function Nt(e) {
|
|
666
|
+
for (var t = 0; t < e.length; t += 1) wi(e[t], o(rt, this), o(Ae, this));
|
|
667
|
+
}
|
|
668
|
+
function Ha() {
|
|
669
|
+
for (let _ = kr; _ !== null; _ = o(Ke, _)) {
|
|
670
|
+
var e = _.id < this.id, t = [];
|
|
671
|
+
for (const [c, [h, f]] of this.current) {
|
|
672
|
+
if (_.current.has(c)) {
|
|
673
|
+
var r = _.current.get(c)[0];
|
|
674
|
+
if (e && h !== r) _.current.set(c, [h, f]);
|
|
664
675
|
else continue;
|
|
665
676
|
}
|
|
666
|
-
t.push(
|
|
677
|
+
t.push(c);
|
|
667
678
|
}
|
|
668
|
-
if (e) for (const [
|
|
669
|
-
const f =
|
|
670
|
-
f &&
|
|
679
|
+
if (e) for (const [c, h] of this.async_deriveds) {
|
|
680
|
+
const f = _.async_deriveds.get(c);
|
|
681
|
+
f && h.promise.then(f.resolve).catch(f.reject);
|
|
671
682
|
}
|
|
672
|
-
var n = [...
|
|
673
|
-
if (!(!
|
|
674
|
-
var i = n.filter((
|
|
683
|
+
var n = [..._.current.keys()].filter((c) => !_.current.get(c)[1]);
|
|
684
|
+
if (!(!o(xr, _) || n.length === 0)) {
|
|
685
|
+
var i = n.filter((c) => !this.current.has(c));
|
|
675
686
|
if (i.length === 0)
|
|
676
|
-
e &&
|
|
687
|
+
e && _.discard();
|
|
677
688
|
else if (t.length > 0) {
|
|
678
|
-
if (e) for (const
|
|
679
|
-
(
|
|
689
|
+
if (e) for (const c of o(_r, this)) _.unskip_effect(c, (h) => {
|
|
690
|
+
(h.f & 4194320) !== 0 ? _.schedule(h) : k(W, _, Nt).call(_, [h]);
|
|
680
691
|
});
|
|
681
|
-
|
|
682
|
-
var s = /* @__PURE__ */ new Set(),
|
|
683
|
-
for (var l of t)
|
|
684
|
-
|
|
685
|
-
var
|
|
686
|
-
const f = this.current.get(
|
|
687
|
-
return f ? f[0] !==
|
|
688
|
-
}).map(([
|
|
689
|
-
if (
|
|
690
|
-
for (const
|
|
691
|
-
if (
|
|
692
|
-
|
|
693
|
-
for (var v of
|
|
692
|
+
_.activate();
|
|
693
|
+
var s = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
|
|
694
|
+
for (var l of t) Ai(l, i, s, a);
|
|
695
|
+
a = /* @__PURE__ */ new Map();
|
|
696
|
+
var u = [..._.current].filter(([c, h]) => {
|
|
697
|
+
const f = this.current.get(c);
|
|
698
|
+
return f ? f[0] !== h[0] || f[1] !== h[1] : !0;
|
|
699
|
+
}).map(([c]) => c);
|
|
700
|
+
if (u.length > 0)
|
|
701
|
+
for (const c of o(tn, this)) (c.f & 155648) === 0 && kn(c, u, a) && ((c.f & 4194320) !== 0 ? (L(c, ee), _.schedule(c)) : o(rt, _).add(c));
|
|
702
|
+
if (o(le, _).length > 0 && !o(Ct, _)) {
|
|
703
|
+
_.apply();
|
|
704
|
+
for (var v of k(W, _, Si).call(_)) k(W, _, Ti).call(_, v, [], []);
|
|
694
705
|
}
|
|
695
|
-
|
|
706
|
+
_.deactivate();
|
|
696
707
|
}
|
|
697
708
|
}
|
|
698
709
|
}
|
|
699
710
|
}
|
|
700
|
-
function
|
|
711
|
+
function Tr() {
|
|
701
712
|
if (this.linked) {
|
|
702
|
-
var e =
|
|
703
|
-
e === null ?
|
|
713
|
+
var e = o(Je, this), t = o(Ke, this);
|
|
714
|
+
e === null ? kr = t : $(Ke, e, t), t === null ? ft = e : $(Je, t, e), this.linked = !1;
|
|
704
715
|
}
|
|
705
716
|
}
|
|
706
|
-
function
|
|
707
|
-
var t =
|
|
708
|
-
|
|
717
|
+
function Se(e) {
|
|
718
|
+
var t = jt, r = vt;
|
|
719
|
+
vt = null, jt = !0;
|
|
709
720
|
try {
|
|
710
721
|
var n;
|
|
711
|
-
for (e && (
|
|
712
|
-
if (
|
|
713
|
-
|
|
722
|
+
for (e && (Se(), n = e()); ; ) {
|
|
723
|
+
if (Aa(), A === null) return n;
|
|
724
|
+
A.flush();
|
|
714
725
|
}
|
|
715
726
|
} finally {
|
|
716
|
-
|
|
727
|
+
jt = t, vt = r;
|
|
717
728
|
}
|
|
718
729
|
}
|
|
719
|
-
function
|
|
730
|
+
function Da() {
|
|
720
731
|
if (0) {
|
|
721
732
|
var e;
|
|
722
|
-
for (const r of
|
|
733
|
+
for (const r of A.current.keys()) for (const [n, i] of r.updated ?? [])
|
|
723
734
|
var t;
|
|
724
735
|
}
|
|
725
736
|
try {
|
|
726
|
-
|
|
737
|
+
ma();
|
|
727
738
|
} catch (r) {
|
|
728
|
-
|
|
739
|
+
ye(r, en);
|
|
729
740
|
}
|
|
730
741
|
}
|
|
731
|
-
var
|
|
732
|
-
function
|
|
742
|
+
var _e = null;
|
|
743
|
+
function Gn(e) {
|
|
733
744
|
var t = e.length;
|
|
734
745
|
if (t !== 0) {
|
|
735
746
|
for (var r = 0; r < t; ) {
|
|
736
747
|
var n = e[r++];
|
|
737
|
-
if ((n.f & 24576) === 0 &&
|
|
738
|
-
|
|
739
|
-
for (const i of
|
|
748
|
+
if ((n.f & 24576) === 0 && Qt(n) && (_e = /* @__PURE__ */ new Set(), wt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Fi(n), _e?.size > 0)) {
|
|
749
|
+
me.clear();
|
|
750
|
+
for (const i of _e) {
|
|
740
751
|
if ((i.f & 24576) !== 0) continue;
|
|
741
752
|
const s = [i];
|
|
742
|
-
let
|
|
743
|
-
for (;
|
|
744
|
-
|
|
753
|
+
let a = i.parent;
|
|
754
|
+
for (; a !== null; )
|
|
755
|
+
_e.has(a) && (_e.delete(a), s.push(a)), a = a.parent;
|
|
745
756
|
for (let l = s.length - 1; l >= 0; l--) {
|
|
746
|
-
const
|
|
747
|
-
(
|
|
757
|
+
const u = s[l];
|
|
758
|
+
(u.f & 24576) === 0 && wt(u);
|
|
748
759
|
}
|
|
749
760
|
}
|
|
750
|
-
|
|
761
|
+
_e.clear();
|
|
751
762
|
}
|
|
752
763
|
}
|
|
753
|
-
|
|
764
|
+
_e = null;
|
|
754
765
|
}
|
|
755
766
|
}
|
|
756
|
-
function
|
|
767
|
+
function Ai(e, t, r, n) {
|
|
757
768
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
758
769
|
for (const i of e.reactions) {
|
|
759
770
|
const s = i.f;
|
|
760
|
-
(s & 2) !== 0 ?
|
|
771
|
+
(s & 2) !== 0 ? Ai(i, t, r, n) : (s & 4194320) !== 0 && (s & 2048) === 0 && kn(i, t, n) && (L(i, ee), $n(i));
|
|
761
772
|
}
|
|
762
773
|
}
|
|
763
|
-
function
|
|
774
|
+
function kn(e, t, r) {
|
|
764
775
|
const n = r.get(e);
|
|
765
776
|
if (n !== void 0) return n;
|
|
766
777
|
if (e.deps !== null) for (const i of e.deps) {
|
|
767
|
-
if (
|
|
768
|
-
if ((i.f & 2) !== 0 &&
|
|
778
|
+
if (Bt.call(t, i)) return !0;
|
|
779
|
+
if ((i.f & 2) !== 0 && kn(i, t, r))
|
|
769
780
|
return r.set(i, !0), !0;
|
|
770
781
|
}
|
|
771
782
|
return r.set(e, !1), !1;
|
|
772
783
|
}
|
|
773
|
-
function
|
|
774
|
-
|
|
784
|
+
function $n(e) {
|
|
785
|
+
A.schedule(e);
|
|
775
786
|
}
|
|
776
|
-
function
|
|
787
|
+
function Mi(e, t) {
|
|
777
788
|
if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
|
|
778
|
-
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e),
|
|
789
|
+
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), L(e, ie);
|
|
779
790
|
for (var r = e.first; r !== null; )
|
|
780
|
-
|
|
791
|
+
Mi(r, t), r = r.next;
|
|
781
792
|
}
|
|
782
793
|
}
|
|
783
|
-
function
|
|
784
|
-
|
|
794
|
+
function Ri(e) {
|
|
795
|
+
L(e, ie);
|
|
785
796
|
for (var t = e.first; t !== null; )
|
|
786
|
-
|
|
797
|
+
Ri(t), t = t.next;
|
|
787
798
|
}
|
|
788
|
-
var
|
|
789
|
-
var
|
|
790
|
-
function
|
|
799
|
+
var Ar = /* @__PURE__ */ new Set(), me = /* @__PURE__ */ new Map();
|
|
800
|
+
var Pi = !1;
|
|
801
|
+
function nt(e, t) {
|
|
791
802
|
var r = {
|
|
792
803
|
f: 0,
|
|
793
804
|
v: e,
|
|
794
805
|
reactions: null,
|
|
795
|
-
equals:
|
|
806
|
+
equals: pi,
|
|
796
807
|
rv: 0,
|
|
797
808
|
wv: 0
|
|
798
809
|
};
|
|
799
810
|
return r;
|
|
800
811
|
}
|
|
801
812
|
// @__NO_SIDE_EFFECTS__
|
|
802
|
-
function
|
|
803
|
-
const r =
|
|
804
|
-
return
|
|
813
|
+
function B(e, t) {
|
|
814
|
+
const r = nt(e, t);
|
|
815
|
+
return Ui(r), r;
|
|
805
816
|
}
|
|
806
817
|
// @__NO_SIDE_EFFECTS__
|
|
807
|
-
function
|
|
808
|
-
const n =
|
|
809
|
-
if (t || (n.equals =
|
|
818
|
+
function Oi(e, t = !1, r = !0) {
|
|
819
|
+
const n = nt(e);
|
|
820
|
+
if (t || (n.equals = _i), Zt && r && z !== null && z.l !== null) {
|
|
810
821
|
var i;
|
|
811
|
-
((i =
|
|
822
|
+
((i = z.l).s ?? (i.s = [])).push(n);
|
|
812
823
|
}
|
|
813
824
|
return n;
|
|
814
825
|
}
|
|
815
|
-
function
|
|
816
|
-
|
|
817
|
-
let n = r ?
|
|
818
|
-
return
|
|
826
|
+
function C(e, t, r = !1) {
|
|
827
|
+
M !== null && (!fe || (M.f & 131072) !== 0) && Jt() && (M.f & 4325394) !== 0 && (ce === null || !ce.has(e)) && Ea();
|
|
828
|
+
let n = r ? Ie(t) : t;
|
|
829
|
+
return gt(e, n, $r);
|
|
819
830
|
}
|
|
820
|
-
var
|
|
821
|
-
function
|
|
831
|
+
var Ue = null, rn = 0;
|
|
832
|
+
function gt(e, t, r = null) {
|
|
822
833
|
if (!e.equals(t)) {
|
|
823
|
-
|
|
824
|
-
var n =
|
|
834
|
+
Me ? me.set(e, t) : me.has(e) || me.set(e, e.v);
|
|
835
|
+
var n = st.ensure();
|
|
825
836
|
if (n.capture(e, t), (e.f & 2) !== 0) {
|
|
826
837
|
const i = e;
|
|
827
|
-
(e.f & 2048) !== 0 &&
|
|
838
|
+
(e.f & 2048) !== 0 && mn(i), G === null && wn(i);
|
|
828
839
|
}
|
|
829
|
-
e.wv =
|
|
840
|
+
e.wv = Gi(), Ue = null, rn = 0, Ci(e, ee, r), Ue = null, Jt() && T !== null && (T.f & 1024) !== 0 && (T.f & 96) === 0 && (re === null ? to([e]) : re.push(e)), !n.is_fork && Ar.size > 0 && !Pi && ja();
|
|
830
841
|
}
|
|
831
842
|
return t;
|
|
832
843
|
}
|
|
833
|
-
function
|
|
834
|
-
|
|
835
|
-
for (const e of
|
|
836
|
-
(e.f & 1024) !== 0 &&
|
|
844
|
+
function ja() {
|
|
845
|
+
Pi = !1;
|
|
846
|
+
for (const e of Ar) {
|
|
847
|
+
(e.f & 1024) !== 0 && L(e, it);
|
|
837
848
|
let t;
|
|
838
849
|
try {
|
|
839
|
-
t =
|
|
850
|
+
t = Qt(e);
|
|
840
851
|
} catch {
|
|
841
852
|
t = !0;
|
|
842
853
|
}
|
|
843
|
-
t &&
|
|
854
|
+
t && wt(e);
|
|
844
855
|
}
|
|
845
|
-
|
|
856
|
+
Ar.clear();
|
|
846
857
|
}
|
|
847
|
-
function
|
|
848
|
-
|
|
858
|
+
function Ft(e) {
|
|
859
|
+
C(e, e.v + 1);
|
|
849
860
|
}
|
|
850
|
-
function
|
|
861
|
+
function Ci(e, t, r) {
|
|
851
862
|
var n = e.reactions;
|
|
852
863
|
if (n !== null) {
|
|
853
|
-
var i =
|
|
854
|
-
if (
|
|
855
|
-
if (
|
|
856
|
-
|
|
857
|
-
}
|
|
858
|
-
for (var
|
|
859
|
-
var l = n[
|
|
860
|
-
if (!(!i && l ===
|
|
861
|
-
var v = (
|
|
862
|
-
if (v &&
|
|
863
|
-
else if ((
|
|
864
|
-
var
|
|
865
|
-
|
|
864
|
+
var i = Jt(), s = n.length;
|
|
865
|
+
if (rn += s, rn > 1e5 && Ue === null && (Ue = /* @__PURE__ */ new Set()), Ue !== null) {
|
|
866
|
+
if (Ue.has(e)) return;
|
|
867
|
+
Ue.add(e);
|
|
868
|
+
}
|
|
869
|
+
for (var a = 0; a < s; a++) {
|
|
870
|
+
var l = n[a], u = l.f;
|
|
871
|
+
if (!(!i && l === T)) {
|
|
872
|
+
var v = (u & ee) === 0;
|
|
873
|
+
if (v && L(l, t), (u & 131072) !== 0) Ar.add(l);
|
|
874
|
+
else if ((u & 2) !== 0) {
|
|
875
|
+
var _ = l;
|
|
876
|
+
G?.delete(_), Ci(_, it, r);
|
|
866
877
|
} else if (v) {
|
|
867
|
-
var
|
|
868
|
-
(
|
|
878
|
+
var c = l;
|
|
879
|
+
(u & 16) !== 0 && _e !== null && _e.add(c), r !== null ? r.push(c) : $n(c);
|
|
869
880
|
}
|
|
870
881
|
}
|
|
871
882
|
}
|
|
872
883
|
}
|
|
873
884
|
}
|
|
874
|
-
var
|
|
875
|
-
function
|
|
876
|
-
if (typeof e != "object" || e === null ||
|
|
877
|
-
const t =
|
|
878
|
-
if (t !==
|
|
879
|
-
var r = /* @__PURE__ */ new Map(), n =
|
|
880
|
-
if (
|
|
881
|
-
var
|
|
882
|
-
|
|
883
|
-
var g =
|
|
884
|
-
return
|
|
885
|
+
var Fa = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
886
|
+
function Ie(e) {
|
|
887
|
+
if (typeof e != "object" || e === null || Dt in e || hi in e) return e;
|
|
888
|
+
const t = ui(e);
|
|
889
|
+
if (t !== Js && t !== Qs) return e;
|
|
890
|
+
var r = /* @__PURE__ */ new Map(), n = fi(e), i = /* @__PURE__ */ B(0), s = null, a = Qe, l = (c) => {
|
|
891
|
+
if (Qe === a) return c();
|
|
892
|
+
var h = M, f = Qe;
|
|
893
|
+
ae(null), Xn(a);
|
|
894
|
+
var g = c();
|
|
895
|
+
return ae(h), Xn(f), g;
|
|
885
896
|
};
|
|
886
|
-
n && r.set("length", /* @__PURE__ */
|
|
887
|
-
var
|
|
897
|
+
n && r.set("length", /* @__PURE__ */ B(e.length, s));
|
|
898
|
+
var u = "";
|
|
888
899
|
let v = !1;
|
|
889
|
-
function
|
|
900
|
+
function _(c) {
|
|
890
901
|
if (!v) {
|
|
891
|
-
v = !0,
|
|
892
|
-
for (const [
|
|
902
|
+
v = !0, u = c, Un(i, `${u} version`);
|
|
903
|
+
for (const [h, f] of r) Un(f, Ba(u, h));
|
|
893
904
|
v = !1;
|
|
894
905
|
}
|
|
895
906
|
}
|
|
896
907
|
return new Proxy(e, {
|
|
897
|
-
defineProperty(
|
|
898
|
-
(!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) &&
|
|
899
|
-
var g = r.get(
|
|
908
|
+
defineProperty(c, h, f) {
|
|
909
|
+
(!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && $a();
|
|
910
|
+
var g = r.get(h);
|
|
900
911
|
return g === void 0 ? l(() => {
|
|
901
|
-
var
|
|
902
|
-
return r.set(
|
|
903
|
-
}) :
|
|
912
|
+
var b = /* @__PURE__ */ B(f.value, s);
|
|
913
|
+
return r.set(h, b), b;
|
|
914
|
+
}) : C(g, f.value, !0), !0;
|
|
904
915
|
},
|
|
905
|
-
deleteProperty(
|
|
906
|
-
var f = r.get(
|
|
916
|
+
deleteProperty(c, h) {
|
|
917
|
+
var f = r.get(h);
|
|
907
918
|
if (f === void 0) {
|
|
908
|
-
if (
|
|
909
|
-
const g = l(() => /* @__PURE__ */
|
|
910
|
-
r.set(
|
|
919
|
+
if (h in c) {
|
|
920
|
+
const g = l(() => /* @__PURE__ */ B(F, s));
|
|
921
|
+
r.set(h, g), Ft(i);
|
|
911
922
|
}
|
|
912
923
|
} else
|
|
913
|
-
|
|
924
|
+
C(f, F), Ft(i);
|
|
914
925
|
return !0;
|
|
915
926
|
},
|
|
916
|
-
get(
|
|
917
|
-
if (
|
|
918
|
-
var g = r.get(
|
|
919
|
-
if (g === void 0 && (!
|
|
920
|
-
var
|
|
921
|
-
return
|
|
922
|
-
}), r.set(
|
|
923
|
-
var
|
|
924
|
-
return
|
|
927
|
+
get(c, h, f) {
|
|
928
|
+
if (h === Dt) return e;
|
|
929
|
+
var g = r.get(h), b = h in c;
|
|
930
|
+
if (g === void 0 && (!b || Ze(c, h)?.writable) && (g = l(() => {
|
|
931
|
+
var m = Ie(b ? c[h] : F), y = /* @__PURE__ */ B(m, s);
|
|
932
|
+
return y;
|
|
933
|
+
}), r.set(h, g)), g !== void 0) {
|
|
934
|
+
var p = d(g);
|
|
935
|
+
return p === F ? void 0 : p;
|
|
925
936
|
}
|
|
926
|
-
return Reflect.get(
|
|
937
|
+
return Reflect.get(c, h, f);
|
|
927
938
|
},
|
|
928
|
-
getOwnPropertyDescriptor(
|
|
929
|
-
this.has?.(
|
|
930
|
-
var f = Reflect.getOwnPropertyDescriptor(
|
|
939
|
+
getOwnPropertyDescriptor(c, h) {
|
|
940
|
+
this.has?.(c, h);
|
|
941
|
+
var f = Reflect.getOwnPropertyDescriptor(c, h), g = r.get(h);
|
|
931
942
|
if (g !== void 0) {
|
|
932
|
-
var
|
|
933
|
-
if (
|
|
934
|
-
if (f && "value" in f) f.value =
|
|
943
|
+
var b = d(g);
|
|
944
|
+
if (b === F) return;
|
|
945
|
+
if (f && "value" in f) f.value = b;
|
|
935
946
|
else return {
|
|
936
947
|
enumerable: !0,
|
|
937
948
|
configurable: !0,
|
|
938
|
-
value:
|
|
949
|
+
value: b,
|
|
939
950
|
writable: !0
|
|
940
951
|
};
|
|
941
952
|
}
|
|
942
953
|
return f;
|
|
943
954
|
},
|
|
944
|
-
has(
|
|
945
|
-
if (
|
|
946
|
-
var f = r.get(
|
|
947
|
-
return (f !== void 0 ||
|
|
948
|
-
var
|
|
949
|
-
return
|
|
950
|
-
}), r.set(
|
|
955
|
+
has(c, h) {
|
|
956
|
+
if (h === Dt) return !0;
|
|
957
|
+
var f = r.get(h), g = f !== void 0 && f.v !== F || Reflect.has(c, h);
|
|
958
|
+
return (f !== void 0 || T !== null && (!g || Ze(c, h)?.writable)) && (f === void 0 && (f = l(() => {
|
|
959
|
+
var b = g ? Ie(c[h]) : F, p = /* @__PURE__ */ B(b, s);
|
|
960
|
+
return p;
|
|
961
|
+
}), r.set(h, f)), d(f) === F) ? !1 : g;
|
|
951
962
|
},
|
|
952
|
-
set(
|
|
953
|
-
var
|
|
954
|
-
if (n &&
|
|
955
|
-
var
|
|
956
|
-
|
|
963
|
+
set(c, h, f, g) {
|
|
964
|
+
var b = r.get(h), p = h in c;
|
|
965
|
+
if (n && h === "length") for (var m = f; m < b.v; m += 1) {
|
|
966
|
+
var y = r.get(m + "");
|
|
967
|
+
y !== void 0 ? C(y, F) : m in c && (y = l(() => /* @__PURE__ */ B(F, s)), r.set(m + "", y));
|
|
957
968
|
}
|
|
958
|
-
if (
|
|
959
|
-
(
|
|
969
|
+
if (b === void 0)
|
|
970
|
+
(!p || Ze(c, h)?.writable) && (b = l(() => /* @__PURE__ */ B(void 0, s)), C(b, Ie(f)), r.set(h, b));
|
|
960
971
|
else {
|
|
961
|
-
|
|
962
|
-
var
|
|
963
|
-
|
|
972
|
+
p = b.v !== F;
|
|
973
|
+
var O = l(() => Ie(f));
|
|
974
|
+
C(b, O);
|
|
964
975
|
}
|
|
965
|
-
var
|
|
966
|
-
if (
|
|
967
|
-
if (n && typeof
|
|
968
|
-
var
|
|
969
|
-
Number.isInteger(
|
|
976
|
+
var x = Reflect.getOwnPropertyDescriptor(c, h);
|
|
977
|
+
if (x?.set && x.set.call(g, f), !p) {
|
|
978
|
+
if (n && typeof h == "string") {
|
|
979
|
+
var H = r.get("length"), D = Number(h);
|
|
980
|
+
Number.isInteger(D) && D >= H.v && C(H, D + 1);
|
|
970
981
|
}
|
|
971
|
-
|
|
982
|
+
Ft(i);
|
|
972
983
|
}
|
|
973
984
|
return !0;
|
|
974
985
|
},
|
|
975
|
-
ownKeys(
|
|
976
|
-
|
|
977
|
-
var
|
|
978
|
-
var
|
|
979
|
-
return
|
|
986
|
+
ownKeys(c) {
|
|
987
|
+
d(i);
|
|
988
|
+
var h = Reflect.ownKeys(c).filter((b) => {
|
|
989
|
+
var p = r.get(b);
|
|
990
|
+
return p === void 0 || p.v !== F;
|
|
980
991
|
});
|
|
981
|
-
for (var [f, g] of r) g.v !==
|
|
982
|
-
return
|
|
992
|
+
for (var [f, g] of r) g.v !== F && !(f in c) && h.push(f);
|
|
993
|
+
return h;
|
|
983
994
|
},
|
|
984
995
|
setPrototypeOf() {
|
|
985
|
-
|
|
996
|
+
xa();
|
|
986
997
|
}
|
|
987
998
|
});
|
|
988
999
|
}
|
|
989
|
-
function
|
|
990
|
-
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` :
|
|
1000
|
+
function Ba(e, t) {
|
|
1001
|
+
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : Fa.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
991
1002
|
}
|
|
992
|
-
var
|
|
993
|
-
function
|
|
994
|
-
if (
|
|
995
|
-
|
|
1003
|
+
var Vn, qa, Ni, Ii, Wi;
|
|
1004
|
+
function nn() {
|
|
1005
|
+
if (Vn === void 0) {
|
|
1006
|
+
Vn = window, qa = document, Ni = /Firefox/.test(navigator.userAgent);
|
|
996
1007
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
997
|
-
|
|
1008
|
+
Ii = Ze(t, "firstChild").get, Wi = Ze(t, "nextSibling").get, Bn(e) && (e[Jr] = void 0, e[Zr] = null, e[Qr] = void 0, e.__e = void 0), Bn(r) && (r[pr] = void 0);
|
|
998
1009
|
}
|
|
999
1010
|
}
|
|
1000
|
-
function
|
|
1011
|
+
function ne(e = "") {
|
|
1001
1012
|
return document.createTextNode(e);
|
|
1002
1013
|
}
|
|
1003
1014
|
// @__NO_SIDE_EFFECTS__
|
|
1004
|
-
function
|
|
1005
|
-
return
|
|
1015
|
+
function He(e) {
|
|
1016
|
+
return Ii.call(e);
|
|
1006
1017
|
}
|
|
1007
1018
|
// @__NO_SIDE_EFFECTS__
|
|
1008
|
-
function
|
|
1009
|
-
return
|
|
1019
|
+
function $e(e) {
|
|
1020
|
+
return Wi.call(e);
|
|
1010
1021
|
}
|
|
1011
|
-
function
|
|
1012
|
-
if (!
|
|
1013
|
-
var r = /* @__PURE__ */
|
|
1014
|
-
if (r === null) r =
|
|
1022
|
+
function Ye(e, t) {
|
|
1023
|
+
if (!R) return /* @__PURE__ */ He(e);
|
|
1024
|
+
var r = /* @__PURE__ */ He(P);
|
|
1025
|
+
if (r === null) r = P.appendChild(ne());
|
|
1015
1026
|
else if (t && r.nodeType !== 3) {
|
|
1016
|
-
var n =
|
|
1017
|
-
return r?.before(n),
|
|
1027
|
+
var n = ne();
|
|
1028
|
+
return r?.before(n), Z(n), n;
|
|
1018
1029
|
}
|
|
1019
|
-
return t &&
|
|
1030
|
+
return t && En(r), Z(r), r;
|
|
1020
1031
|
}
|
|
1021
|
-
function
|
|
1022
|
-
if (!
|
|
1023
|
-
var r = /* @__PURE__ */
|
|
1024
|
-
return r instanceof Comment && r.data === "" ? /* @__PURE__ */
|
|
1032
|
+
function Mr(e, t = !1) {
|
|
1033
|
+
if (!R) {
|
|
1034
|
+
var r = /* @__PURE__ */ He(e);
|
|
1035
|
+
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ $e(r) : r;
|
|
1025
1036
|
}
|
|
1026
1037
|
if (t) {
|
|
1027
|
-
if (
|
|
1028
|
-
var n =
|
|
1029
|
-
return
|
|
1038
|
+
if (P?.nodeType !== 3) {
|
|
1039
|
+
var n = ne();
|
|
1040
|
+
return P?.before(n), Z(n), n;
|
|
1030
1041
|
}
|
|
1031
|
-
|
|
1042
|
+
En(P);
|
|
1032
1043
|
}
|
|
1033
|
-
return
|
|
1044
|
+
return P;
|
|
1034
1045
|
}
|
|
1035
|
-
function
|
|
1036
|
-
if (!
|
|
1037
|
-
var r =
|
|
1038
|
-
return
|
|
1046
|
+
function It(e, t = !1) {
|
|
1047
|
+
if (!R) return /* @__PURE__ */ He(e);
|
|
1048
|
+
var r = Ye(e, t);
|
|
1049
|
+
return qe(e), r;
|
|
1039
1050
|
}
|
|
1040
|
-
function
|
|
1041
|
-
let n =
|
|
1051
|
+
function ge(e, t = 1, r = !1) {
|
|
1052
|
+
let n = R ? P : e;
|
|
1042
1053
|
for (var i; t--; )
|
|
1043
|
-
i = n, n = /* @__PURE__ */
|
|
1044
|
-
if (!
|
|
1054
|
+
i = n, n = /* @__PURE__ */ $e(n);
|
|
1055
|
+
if (!R) return n;
|
|
1045
1056
|
if (r) {
|
|
1046
1057
|
if (n?.nodeType !== 3) {
|
|
1047
|
-
var s =
|
|
1048
|
-
return n === null ? i?.after(s) : n.before(s),
|
|
1058
|
+
var s = ne();
|
|
1059
|
+
return n === null ? i?.after(s) : n.before(s), Z(s), s;
|
|
1049
1060
|
}
|
|
1050
|
-
|
|
1061
|
+
En(n);
|
|
1051
1062
|
}
|
|
1052
|
-
return
|
|
1063
|
+
return Z(n), n;
|
|
1053
1064
|
}
|
|
1054
|
-
function
|
|
1065
|
+
function zi(e) {
|
|
1055
1066
|
e.textContent = "";
|
|
1056
1067
|
}
|
|
1057
|
-
function
|
|
1058
|
-
return !
|
|
1068
|
+
function Li() {
|
|
1069
|
+
return !De || _e !== null ? !1 : (T.f & dn) !== 0;
|
|
1059
1070
|
}
|
|
1060
|
-
function
|
|
1071
|
+
function xn(e, t, r) {
|
|
1061
1072
|
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);
|
|
1062
1073
|
}
|
|
1063
|
-
function
|
|
1074
|
+
function En(e) {
|
|
1064
1075
|
if (e.nodeValue.length < 65536) return;
|
|
1065
1076
|
let t = e.nextSibling;
|
|
1066
1077
|
for (; t !== null && t.nodeType === 3; )
|
|
1067
1078
|
t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1068
1079
|
}
|
|
1069
|
-
function
|
|
1070
|
-
var t =
|
|
1080
|
+
function Ua(e) {
|
|
1081
|
+
var t = T;
|
|
1071
1082
|
if (t === null)
|
|
1072
|
-
return
|
|
1083
|
+
return M.f |= br, e;
|
|
1073
1084
|
if ((t.f & 32768) === 0 && (t.f & 4) === 0)
|
|
1074
1085
|
throw e;
|
|
1075
|
-
|
|
1086
|
+
ye(e, t);
|
|
1076
1087
|
}
|
|
1077
|
-
function
|
|
1078
|
-
if (e ===
|
|
1088
|
+
function ye(e, t) {
|
|
1089
|
+
if (e === ze) throw e;
|
|
1079
1090
|
if (!(t !== null && (t.f & 16384) !== 0)) {
|
|
1080
1091
|
for (; t !== null; ) {
|
|
1081
1092
|
if ((t.f & 128) !== 0 && (t.f & 33570816) === 0) {
|
|
@@ -1092,21 +1103,21 @@ function ce(e, t) {
|
|
|
1092
1103
|
throw e;
|
|
1093
1104
|
}
|
|
1094
1105
|
}
|
|
1095
|
-
function
|
|
1096
|
-
|
|
1106
|
+
function Ya(e) {
|
|
1107
|
+
T === null && (M === null && ba(e), wa()), Me && ga(e);
|
|
1097
1108
|
}
|
|
1098
|
-
function
|
|
1109
|
+
function Ga(e, t) {
|
|
1099
1110
|
var r = t.last;
|
|
1100
1111
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1101
1112
|
}
|
|
1102
|
-
function
|
|
1103
|
-
var r =
|
|
1104
|
-
r !== null && (r.f & 8192) !== 0 && (e |=
|
|
1113
|
+
function xe(e, t) {
|
|
1114
|
+
var r = T;
|
|
1115
|
+
r !== null && (r.f & 8192) !== 0 && (e |= cn);
|
|
1105
1116
|
var n = {
|
|
1106
|
-
ctx:
|
|
1117
|
+
ctx: z,
|
|
1107
1118
|
deps: null,
|
|
1108
1119
|
nodes: null,
|
|
1109
|
-
f: e |
|
|
1120
|
+
f: e | ee | 512,
|
|
1110
1121
|
first: null,
|
|
1111
1122
|
fn: t,
|
|
1112
1123
|
last: null,
|
|
@@ -1118,425 +1129,425 @@ function he(e, t) {
|
|
|
1118
1129
|
wv: 0,
|
|
1119
1130
|
ac: null
|
|
1120
1131
|
};
|
|
1121
|
-
|
|
1132
|
+
A?.register_created_effect(n);
|
|
1122
1133
|
var i = n;
|
|
1123
1134
|
if ((e & 4) !== 0)
|
|
1124
|
-
|
|
1135
|
+
Gt !== null ? Gt.push(n) : st.ensure().schedule(n);
|
|
1125
1136
|
else if (t !== null) {
|
|
1126
1137
|
try {
|
|
1127
|
-
|
|
1128
|
-
} catch (
|
|
1129
|
-
throw
|
|
1138
|
+
wt(n);
|
|
1139
|
+
} catch (a) {
|
|
1140
|
+
throw V(n), a;
|
|
1130
1141
|
}
|
|
1131
|
-
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 |=
|
|
1142
|
+
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 |= hn));
|
|
1132
1143
|
}
|
|
1133
|
-
if (i !== null && (i.parent = r, r !== null &&
|
|
1134
|
-
var s =
|
|
1144
|
+
if (i !== null && (i.parent = r, r !== null && Ga(i, r), M !== null && (M.f & 2) !== 0 && (e & 64) === 0)) {
|
|
1145
|
+
var s = M;
|
|
1135
1146
|
(s.effects ?? (s.effects = [])).push(i);
|
|
1136
1147
|
}
|
|
1137
1148
|
return n;
|
|
1138
1149
|
}
|
|
1139
|
-
function
|
|
1140
|
-
return
|
|
1150
|
+
function Sn() {
|
|
1151
|
+
return M !== null && !fe;
|
|
1141
1152
|
}
|
|
1142
|
-
function
|
|
1143
|
-
const t =
|
|
1144
|
-
return
|
|
1153
|
+
function Va(e) {
|
|
1154
|
+
const t = xe(8, null);
|
|
1155
|
+
return L(t, ie), t.teardown = e, t;
|
|
1145
1156
|
}
|
|
1146
|
-
function
|
|
1147
|
-
|
|
1148
|
-
var t =
|
|
1149
|
-
if (!
|
|
1150
|
-
var r =
|
|
1157
|
+
function Oe(e) {
|
|
1158
|
+
Ya("$effect");
|
|
1159
|
+
var t = T.f;
|
|
1160
|
+
if (!M && (t & 32) !== 0 && z !== null && !z.i) {
|
|
1161
|
+
var r = z;
|
|
1151
1162
|
(r.e ?? (r.e = [])).push(e);
|
|
1152
|
-
} else return
|
|
1163
|
+
} else return Hi(e);
|
|
1153
1164
|
}
|
|
1154
|
-
function
|
|
1155
|
-
return
|
|
1165
|
+
function Hi(e) {
|
|
1166
|
+
return xe(4 | sa, e);
|
|
1156
1167
|
}
|
|
1157
|
-
function
|
|
1158
|
-
|
|
1159
|
-
const t =
|
|
1168
|
+
function Ka(e) {
|
|
1169
|
+
st.ensure();
|
|
1170
|
+
const t = xe(64 | mt, e);
|
|
1160
1171
|
return () => {
|
|
1161
|
-
|
|
1172
|
+
V(t);
|
|
1162
1173
|
};
|
|
1163
1174
|
}
|
|
1164
|
-
function
|
|
1165
|
-
|
|
1166
|
-
const t =
|
|
1175
|
+
function Xa(e) {
|
|
1176
|
+
st.ensure();
|
|
1177
|
+
const t = xe(64 | mt, e);
|
|
1167
1178
|
return (r = {}) => new Promise((n) => {
|
|
1168
|
-
r.outro ?
|
|
1169
|
-
|
|
1170
|
-
}) : (
|
|
1179
|
+
r.outro ? at(t, () => {
|
|
1180
|
+
V(t), n(void 0);
|
|
1181
|
+
}) : (V(t), n(void 0));
|
|
1171
1182
|
});
|
|
1172
1183
|
}
|
|
1173
|
-
function
|
|
1174
|
-
return
|
|
1184
|
+
function Di(e) {
|
|
1185
|
+
return xe(4, e);
|
|
1175
1186
|
}
|
|
1176
|
-
function
|
|
1177
|
-
return
|
|
1187
|
+
function Za(e) {
|
|
1188
|
+
return xe(aa | mt, e);
|
|
1178
1189
|
}
|
|
1179
|
-
function
|
|
1180
|
-
return
|
|
1190
|
+
function Tn(e, t = 0) {
|
|
1191
|
+
return xe(8 | t, e);
|
|
1181
1192
|
}
|
|
1182
|
-
function
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
e(...i.map(
|
|
1193
|
+
function Wt(e, t = [], r = [], n = []) {
|
|
1194
|
+
Ra(n, t, r, (i) => {
|
|
1195
|
+
xe(8, () => {
|
|
1196
|
+
e(...i.map(d));
|
|
1186
1197
|
});
|
|
1187
1198
|
});
|
|
1188
1199
|
}
|
|
1189
|
-
function
|
|
1190
|
-
var r =
|
|
1200
|
+
function An(e, t = 0) {
|
|
1201
|
+
var r = xe(16 | t, e);
|
|
1191
1202
|
return r;
|
|
1192
1203
|
}
|
|
1193
|
-
function
|
|
1194
|
-
return
|
|
1204
|
+
function se(e) {
|
|
1205
|
+
return xe(32 | mt, e);
|
|
1195
1206
|
}
|
|
1196
|
-
function
|
|
1207
|
+
function ji(e) {
|
|
1197
1208
|
var t = e.teardown;
|
|
1198
1209
|
if (t !== null) {
|
|
1199
|
-
const r =
|
|
1200
|
-
|
|
1210
|
+
const r = Me, n = M;
|
|
1211
|
+
Kn(!0), ae(null);
|
|
1201
1212
|
try {
|
|
1202
1213
|
t.call(null);
|
|
1203
1214
|
} catch (i) {
|
|
1204
|
-
|
|
1215
|
+
ye(i, e.parent);
|
|
1205
1216
|
} finally {
|
|
1206
|
-
|
|
1217
|
+
Kn(r), ae(n);
|
|
1207
1218
|
}
|
|
1208
1219
|
}
|
|
1209
1220
|
}
|
|
1210
|
-
function
|
|
1221
|
+
function Mn(e, t = !1) {
|
|
1211
1222
|
var r = e.first;
|
|
1212
1223
|
for (e.first = e.last = null; r !== null; ) {
|
|
1213
1224
|
const i = r.ac;
|
|
1214
|
-
i !== null &&
|
|
1215
|
-
i.abort(
|
|
1225
|
+
i !== null && Wr(() => {
|
|
1226
|
+
i.abort(Xt);
|
|
1216
1227
|
});
|
|
1217
1228
|
var n = r.next;
|
|
1218
|
-
(r.f & 64) !== 0 ? r.parent = null :
|
|
1229
|
+
(r.f & 64) !== 0 ? r.parent = null : V(r, t), r = n;
|
|
1219
1230
|
}
|
|
1220
1231
|
}
|
|
1221
|
-
function
|
|
1232
|
+
function Ja(e) {
|
|
1222
1233
|
for (var t = e.first; t !== null; ) {
|
|
1223
1234
|
var r = t.next;
|
|
1224
|
-
(t.f & 32) === 0 &&
|
|
1235
|
+
(t.f & 32) === 0 && V(t), t = r;
|
|
1225
1236
|
}
|
|
1226
1237
|
}
|
|
1227
|
-
function
|
|
1238
|
+
function V(e, t = !0) {
|
|
1228
1239
|
var r = !1;
|
|
1229
|
-
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (
|
|
1240
|
+
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (Qa(e.nodes.start, e.nodes.end), r = !0), e.f |= Xr, Mn(e, t && !r), Vt(e, 0);
|
|
1230
1241
|
var n = e.nodes && e.nodes.t;
|
|
1231
1242
|
if (n !== null) for (const s of n) s.stop();
|
|
1232
|
-
|
|
1243
|
+
ji(e), e.f ^= Xr, e.f |= di;
|
|
1233
1244
|
var i = e.parent;
|
|
1234
|
-
i !== null && i.first !== null &&
|
|
1245
|
+
i !== null && i.first !== null && Fi(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1235
1246
|
}
|
|
1236
|
-
function
|
|
1247
|
+
function Qa(e, t) {
|
|
1237
1248
|
for (; e !== null; ) {
|
|
1238
|
-
var r = e === t ? null : /* @__PURE__ */
|
|
1249
|
+
var r = e === t ? null : /* @__PURE__ */ $e(e);
|
|
1239
1250
|
e.remove(), e = r;
|
|
1240
1251
|
}
|
|
1241
1252
|
}
|
|
1242
|
-
function
|
|
1253
|
+
function Fi(e) {
|
|
1243
1254
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1244
1255
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1245
1256
|
}
|
|
1246
|
-
function
|
|
1257
|
+
function at(e, t, r = !0) {
|
|
1247
1258
|
var n = [];
|
|
1248
|
-
e.f |= 256,
|
|
1259
|
+
e.f |= 256, Bi(e, n, !0);
|
|
1249
1260
|
var i = () => {
|
|
1250
|
-
r &&
|
|
1261
|
+
r && V(e), t && t();
|
|
1251
1262
|
}, s = n.length;
|
|
1252
1263
|
if (s > 0) {
|
|
1253
|
-
var
|
|
1254
|
-
for (var l of n) l.out(
|
|
1264
|
+
var a = () => --s || i();
|
|
1265
|
+
for (var l of n) l.out(a);
|
|
1255
1266
|
} else i();
|
|
1256
1267
|
}
|
|
1257
|
-
function
|
|
1268
|
+
function Bi(e, t, r) {
|
|
1258
1269
|
if ((e.f & 8192) === 0) {
|
|
1259
|
-
e.f ^=
|
|
1270
|
+
e.f ^= cn;
|
|
1260
1271
|
var n = e.nodes && e.nodes.t;
|
|
1261
1272
|
if (n !== null)
|
|
1262
1273
|
for (const l of n) (l.is_global || r) && t.push(l);
|
|
1263
1274
|
for (var i = e.first; i !== null; ) {
|
|
1264
1275
|
var s = i.next;
|
|
1265
1276
|
if ((i.f & 64) === 0) {
|
|
1266
|
-
var
|
|
1267
|
-
|
|
1277
|
+
var a = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1278
|
+
Bi(i, t, a ? r : !1);
|
|
1268
1279
|
}
|
|
1269
1280
|
i = s;
|
|
1270
1281
|
}
|
|
1271
1282
|
}
|
|
1272
1283
|
}
|
|
1273
|
-
function
|
|
1274
|
-
e.f &= -257,
|
|
1284
|
+
function Rr(e) {
|
|
1285
|
+
e.f &= -257, qi(e, !0);
|
|
1275
1286
|
}
|
|
1276
|
-
function
|
|
1287
|
+
function qi(e, t) {
|
|
1277
1288
|
if ((e.f & 256) === 0 && (e.f & 8192) !== 0) {
|
|
1278
|
-
e.f ^=
|
|
1289
|
+
e.f ^= cn, (e.f & 1024) === 0 && (L(e, ee), st.ensure().schedule(e));
|
|
1279
1290
|
for (var r = e.first; r !== null; ) {
|
|
1280
1291
|
var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1281
|
-
|
|
1292
|
+
qi(r, i ? t : !1), r = n;
|
|
1282
1293
|
}
|
|
1283
1294
|
var s = e.nodes && e.nodes.t;
|
|
1284
1295
|
if (s !== null)
|
|
1285
|
-
for (const
|
|
1296
|
+
for (const a of s) (a.is_global || t) && a.in();
|
|
1286
1297
|
}
|
|
1287
1298
|
}
|
|
1288
|
-
function
|
|
1299
|
+
function Rn(e, t) {
|
|
1289
1300
|
if (e.nodes)
|
|
1290
1301
|
for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
|
|
1291
|
-
var i = r === n ? null : /* @__PURE__ */
|
|
1302
|
+
var i = r === n ? null : /* @__PURE__ */ $e(r);
|
|
1292
1303
|
t.append(r), r = i;
|
|
1293
1304
|
}
|
|
1294
1305
|
}
|
|
1295
|
-
var
|
|
1296
|
-
function
|
|
1297
|
-
|
|
1306
|
+
var eo = null, Me = !1;
|
|
1307
|
+
function Kn(e) {
|
|
1308
|
+
Me = e;
|
|
1298
1309
|
}
|
|
1299
|
-
var
|
|
1300
|
-
function
|
|
1301
|
-
|
|
1310
|
+
var M = null, fe = !1;
|
|
1311
|
+
function ae(e) {
|
|
1312
|
+
M = e;
|
|
1302
1313
|
}
|
|
1303
|
-
var
|
|
1304
|
-
function
|
|
1305
|
-
|
|
1314
|
+
var T = null;
|
|
1315
|
+
function ke(e) {
|
|
1316
|
+
T = e;
|
|
1306
1317
|
}
|
|
1307
|
-
var
|
|
1308
|
-
function
|
|
1309
|
-
|
|
1318
|
+
var ce = null;
|
|
1319
|
+
function Ui(e) {
|
|
1320
|
+
M !== null && (!De && (M.f & 2097152) !== 0 || (M.f & 2) !== 0) && (ce ?? (ce = /* @__PURE__ */ new Set())).add(e);
|
|
1310
1321
|
}
|
|
1311
|
-
var
|
|
1312
|
-
function
|
|
1313
|
-
|
|
1322
|
+
var K = null, J = 0, re = null;
|
|
1323
|
+
function to(e) {
|
|
1324
|
+
re = e;
|
|
1314
1325
|
}
|
|
1315
|
-
var
|
|
1316
|
-
function
|
|
1317
|
-
|
|
1326
|
+
var Yi = 1, Xe = 0, Qe = Xe;
|
|
1327
|
+
function Xn(e) {
|
|
1328
|
+
Qe = e;
|
|
1318
1329
|
}
|
|
1319
|
-
function
|
|
1320
|
-
return ++
|
|
1330
|
+
function Gi() {
|
|
1331
|
+
return ++Yi;
|
|
1321
1332
|
}
|
|
1322
|
-
function
|
|
1333
|
+
function Qt(e) {
|
|
1323
1334
|
var t = e.f;
|
|
1324
1335
|
if ((t & 2048) !== 0) return !0;
|
|
1325
1336
|
if ((t & 4096) !== 0) {
|
|
1326
1337
|
for (var r = e.deps, n = r.length, i = 0; i < n; i++) {
|
|
1327
1338
|
var s = r[i];
|
|
1328
|
-
if (
|
|
1339
|
+
if (Qt(s) && mi(s), s.wv > e.wv) return !0;
|
|
1329
1340
|
}
|
|
1330
|
-
(t & 512) !== 0 &&
|
|
1341
|
+
(t & 512) !== 0 && G === null && L(e, ie);
|
|
1331
1342
|
}
|
|
1332
1343
|
return !1;
|
|
1333
1344
|
}
|
|
1334
|
-
function
|
|
1345
|
+
function Vi(e, t, r = !0) {
|
|
1335
1346
|
var n = e.reactions;
|
|
1336
|
-
if (n !== null && !(!
|
|
1347
|
+
if (n !== null && !(!De && ce !== null && ce.has(e)))
|
|
1337
1348
|
for (var i = 0; i < n.length; i++) {
|
|
1338
1349
|
var s = n[i];
|
|
1339
|
-
(s.f & 2) !== 0 ?
|
|
1350
|
+
(s.f & 2) !== 0 ? Vi(s, t, !1) : t === s && (r ? L(s, ee) : (s.f & 1024) !== 0 && L(s, it), $n(s));
|
|
1340
1351
|
}
|
|
1341
1352
|
}
|
|
1342
|
-
function
|
|
1343
|
-
var t =
|
|
1344
|
-
|
|
1345
|
-
e.ac.abort(
|
|
1353
|
+
function Ki(e) {
|
|
1354
|
+
var t = K, r = J, n = re, i = M, s = ce, a = z, l = fe, u = Qe, v = e.f;
|
|
1355
|
+
K = null, J = 0, re = null, M = (v & 96) === 0 ? e : null, ce = null, _t(e.ctx), fe = !1, Qe = ++Xe, e.ac !== null && (Wr(() => {
|
|
1356
|
+
e.ac.abort(Xt);
|
|
1346
1357
|
}), e.ac = null);
|
|
1347
1358
|
try {
|
|
1359
|
+
e.f |= qn;
|
|
1360
|
+
var _ = e.fn, c = _();
|
|
1348
1361
|
e.f |= dn;
|
|
1349
|
-
var
|
|
1350
|
-
e.f
|
|
1351
|
-
var c = yn(e);
|
|
1352
|
-
if (Mt() && X !== null && !ee && c !== null && (e.f & 6146) === 0) for (var f = 0; f < X.length; f++) yi(X[f], e);
|
|
1362
|
+
var h = Zn(e);
|
|
1363
|
+
if (Jt() && re !== null && !fe && h !== null && (e.f & 6146) === 0) for (var f = 0; f < re.length; f++) Vi(re[f], e);
|
|
1353
1364
|
if (i !== null && i !== e) {
|
|
1354
|
-
if (
|
|
1355
|
-
if (t !== null) for (const g of t) g.rv =
|
|
1356
|
-
|
|
1365
|
+
if (Xe++, i.deps !== null) for (let g = 0; g < r; g += 1) i.deps[g].rv = Xe;
|
|
1366
|
+
if (t !== null) for (const g of t) g.rv = Xe;
|
|
1367
|
+
re !== null && (n === null ? n = re : n.push(...re));
|
|
1357
1368
|
}
|
|
1358
|
-
return (e.f & 8388608) !== 0 && (e.f ^=
|
|
1369
|
+
return (e.f & 8388608) !== 0 && (e.f ^= br), c;
|
|
1359
1370
|
} catch (g) {
|
|
1360
|
-
return
|
|
1371
|
+
return Zn(e), Ua(g);
|
|
1361
1372
|
} finally {
|
|
1362
|
-
e.f ^=
|
|
1373
|
+
e.f ^= qn, K = t, J = r, re = n, M = i, ce = s, _t(a), fe = l, Qe = u;
|
|
1363
1374
|
}
|
|
1364
1375
|
}
|
|
1365
|
-
function
|
|
1366
|
-
var t = e.deps, r =
|
|
1367
|
-
if (
|
|
1376
|
+
function Zn(e) {
|
|
1377
|
+
var t = e.deps, r = A?.is_fork;
|
|
1378
|
+
if (K !== null) {
|
|
1368
1379
|
var n;
|
|
1369
|
-
if (r ||
|
|
1370
|
-
for (t.length =
|
|
1371
|
-
else e.deps = t =
|
|
1372
|
-
if (
|
|
1380
|
+
if (r || Vt(e, J), t !== null && J > 0)
|
|
1381
|
+
for (t.length = J + K.length, n = 0; n < K.length; n++) t[J + n] = K[n];
|
|
1382
|
+
else e.deps = t = K;
|
|
1383
|
+
if (Sn() && (e.f & 512) !== 0) for (n = J; n < t.length; n++) {
|
|
1373
1384
|
var i;
|
|
1374
1385
|
((i = t[n]).reactions ?? (i.reactions = [])).push(e);
|
|
1375
1386
|
}
|
|
1376
|
-
} else !r && t !== null &&
|
|
1387
|
+
} else !r && t !== null && J < t.length && (Vt(e, J), t.length = J);
|
|
1377
1388
|
return t;
|
|
1378
1389
|
}
|
|
1379
|
-
function
|
|
1390
|
+
function ro(e, t) {
|
|
1380
1391
|
let r = t.reactions;
|
|
1381
1392
|
if (r !== null) {
|
|
1382
|
-
var n =
|
|
1393
|
+
var n = Xs.call(r, e);
|
|
1383
1394
|
if (n !== -1) {
|
|
1384
1395
|
var i = r.length - 1;
|
|
1385
1396
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
1386
1397
|
}
|
|
1387
1398
|
}
|
|
1388
|
-
if (r === null && (t.f & 2) !== 0 && (
|
|
1399
|
+
if (r === null && (t.f & 2) !== 0 && (K === null || !Bt.call(K, t))) {
|
|
1389
1400
|
var s = t;
|
|
1390
|
-
(s.f & 512) !== 0 && (s.f ^= 512), s.v !==
|
|
1391
|
-
s.ac.abort(
|
|
1392
|
-
}),
|
|
1401
|
+
(s.f & 512) !== 0 && (s.f ^= 512), s.v !== F && wn(s), s.ac !== null && Wr(() => {
|
|
1402
|
+
s.ac.abort(Xt), s.ac = null, L(s, ee);
|
|
1403
|
+
}), Ia(s), Vt(s, 0);
|
|
1393
1404
|
}
|
|
1394
1405
|
}
|
|
1395
|
-
function
|
|
1406
|
+
function Vt(e, t) {
|
|
1396
1407
|
var r = e.deps;
|
|
1397
1408
|
if (r !== null)
|
|
1398
|
-
for (var n = t; n < r.length; n++)
|
|
1409
|
+
for (var n = t; n < r.length; n++) ro(e, r[n]);
|
|
1399
1410
|
}
|
|
1400
|
-
function
|
|
1411
|
+
function wt(e) {
|
|
1401
1412
|
var t = e.f;
|
|
1402
1413
|
if ((t & 16384) === 0) {
|
|
1403
|
-
|
|
1404
|
-
var r =
|
|
1405
|
-
if (
|
|
1414
|
+
L(e, ie);
|
|
1415
|
+
var r = T;
|
|
1416
|
+
if (T = e, 0)
|
|
1406
1417
|
var n, i;
|
|
1407
1418
|
try {
|
|
1408
|
-
(t & 16777232) !== 0 ?
|
|
1409
|
-
var s =
|
|
1410
|
-
if (e.teardown = typeof s == "function" ? s : null, e.wv =
|
|
1411
|
-
for (var
|
|
1419
|
+
(t & 16777232) !== 0 ? Ja(e) : Mn(e), ji(e);
|
|
1420
|
+
var s = Ki(e);
|
|
1421
|
+
if (e.teardown = typeof s == "function" ? s : null, e.wv = Yi, 0)
|
|
1422
|
+
for (var a of e.deps) ;
|
|
1412
1423
|
} finally {
|
|
1413
|
-
|
|
1424
|
+
T = r;
|
|
1414
1425
|
}
|
|
1415
1426
|
}
|
|
1416
1427
|
}
|
|
1417
|
-
function
|
|
1428
|
+
function d(e) {
|
|
1418
1429
|
var t = (e.f & 2) !== 0;
|
|
1419
|
-
if (
|
|
1420
|
-
var r =
|
|
1421
|
-
if ((
|
|
1422
|
-
e.rv <
|
|
1430
|
+
if (eo?.add(e), M !== null && !fe && !(T !== null && (T.f & 16384) !== 0) && (ce === null || !ce.has(e))) {
|
|
1431
|
+
var r = M.deps;
|
|
1432
|
+
if ((M.f & 2097152) !== 0)
|
|
1433
|
+
e.rv < Xe && (e.rv = Xe, K === null && r !== null && r[J] === e ? J++ : K === null ? K = [e] : K.push(e));
|
|
1423
1434
|
else {
|
|
1424
1435
|
var n;
|
|
1425
|
-
(n =
|
|
1436
|
+
(n = M).deps ?? (n.deps = []), Bt.call(M.deps, e) || M.deps.push(e);
|
|
1426
1437
|
var i = e.reactions;
|
|
1427
|
-
i === null ? e.reactions = [
|
|
1438
|
+
i === null ? e.reactions = [M] : Bt.call(i, M) || i.push(M);
|
|
1428
1439
|
}
|
|
1429
1440
|
}
|
|
1430
1441
|
if (0) {
|
|
1431
|
-
if (!
|
|
1442
|
+
if (!fe && reactivity_loss_tracker && A === null && vt === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
|
|
1432
1443
|
var s;
|
|
1433
|
-
if (tracing_mode_flag && !
|
|
1444
|
+
if (tracing_mode_flag && !fe && tracing_expressions !== null && M !== null && tracing_expressions.reaction === M && !e.trace) {
|
|
1434
1445
|
if (s)
|
|
1435
|
-
var
|
|
1446
|
+
var a, l;
|
|
1436
1447
|
}
|
|
1437
1448
|
}
|
|
1438
|
-
if (
|
|
1449
|
+
if (Me && me.has(e)) return me.get(e);
|
|
1439
1450
|
if (t) {
|
|
1440
|
-
var
|
|
1441
|
-
if (
|
|
1442
|
-
var v =
|
|
1443
|
-
return ((
|
|
1451
|
+
var u = e;
|
|
1452
|
+
if (Me) {
|
|
1453
|
+
var v = u.v;
|
|
1454
|
+
return ((u.f & 1024) === 0 && u.reactions !== null || Zi(u)) && (v = mn(u)), me.set(u, v), v;
|
|
1444
1455
|
}
|
|
1445
|
-
var
|
|
1446
|
-
|
|
1456
|
+
var _ = (u.f & 512) === 0 && !fe && M !== null && (M.f & 512) !== 0, c = (u.f & dn) === 0;
|
|
1457
|
+
Qt(u) && (_ && (u.f |= 512), mi(u)), _ && !c && (yi(u), Xi(u));
|
|
1447
1458
|
}
|
|
1448
|
-
if (
|
|
1459
|
+
if (G?.has(e)) return G.get(e);
|
|
1449
1460
|
if ((e.f & 8388608) !== 0) throw e.v;
|
|
1450
1461
|
return e.v;
|
|
1451
1462
|
}
|
|
1452
|
-
function
|
|
1463
|
+
function Xi(e) {
|
|
1453
1464
|
if (e.f |= 512, e.deps !== null)
|
|
1454
1465
|
for (const r of e.deps) {
|
|
1455
1466
|
var t = r.reactions;
|
|
1456
|
-
t === null ? r.reactions = [e] :
|
|
1467
|
+
t === null ? r.reactions = [e] : Bt.call(t, e) || t.push(e), (r.f & 2) !== 0 && (r.f & 512) === 0 && (yi(r), Xi(r));
|
|
1457
1468
|
}
|
|
1458
1469
|
}
|
|
1459
|
-
function
|
|
1460
|
-
if (e.v ===
|
|
1470
|
+
function Zi(e) {
|
|
1471
|
+
if (e.v === F) return !0;
|
|
1461
1472
|
if (e.deps === null) return !1;
|
|
1462
1473
|
for (const t of e.deps)
|
|
1463
|
-
if (
|
|
1474
|
+
if (me.has(t) || (t.f & 2) !== 0 && Zi(t)) return !0;
|
|
1464
1475
|
return !1;
|
|
1465
1476
|
}
|
|
1466
|
-
function
|
|
1467
|
-
var t =
|
|
1477
|
+
function bt(e) {
|
|
1478
|
+
var t = fe;
|
|
1468
1479
|
try {
|
|
1469
|
-
return
|
|
1480
|
+
return fe = !0, e();
|
|
1470
1481
|
} finally {
|
|
1471
|
-
|
|
1482
|
+
fe = t;
|
|
1472
1483
|
}
|
|
1473
1484
|
}
|
|
1474
|
-
var
|
|
1475
|
-
function
|
|
1476
|
-
(t[
|
|
1485
|
+
var ht = /* @__PURE__ */ Symbol("events"), Ji = /* @__PURE__ */ new Set(), sn = /* @__PURE__ */ new Set();
|
|
1486
|
+
function we(e, t, r) {
|
|
1487
|
+
(t[ht] ?? (t[ht] = {}))[e] = r;
|
|
1477
1488
|
}
|
|
1478
|
-
function
|
|
1479
|
-
for (var t = 0; t < e.length; t++)
|
|
1480
|
-
for (var r of
|
|
1489
|
+
function Qi(e) {
|
|
1490
|
+
for (var t = 0; t < e.length; t++) Ji.add(e[t]);
|
|
1491
|
+
for (var r of sn) r(e);
|
|
1481
1492
|
}
|
|
1482
|
-
var
|
|
1483
|
-
function
|
|
1493
|
+
var jr = null, Fr = !1;
|
|
1494
|
+
function Jn(e) {
|
|
1484
1495
|
var t = this, r = t.ownerDocument, n = e.type, i = e.composedPath?.() || [], s = i[0] || e.target;
|
|
1485
|
-
|
|
1486
|
-
|
|
1496
|
+
jr = e, Fr || (Fr = !0, setTimeout(() => {
|
|
1497
|
+
Fr = !1, jr = null;
|
|
1487
1498
|
}));
|
|
1488
|
-
var
|
|
1499
|
+
var a = 0, l = jr === e && e[ht];
|
|
1489
1500
|
if (l) {
|
|
1490
|
-
var
|
|
1491
|
-
if (
|
|
1492
|
-
e[
|
|
1501
|
+
var u = i.indexOf(l);
|
|
1502
|
+
if (u !== -1 && (t === document || t === window)) {
|
|
1503
|
+
e[ht] = t;
|
|
1493
1504
|
return;
|
|
1494
1505
|
}
|
|
1495
1506
|
var v = i.indexOf(t);
|
|
1496
1507
|
if (v === -1) return;
|
|
1497
|
-
|
|
1508
|
+
u <= v && (a = u);
|
|
1498
1509
|
}
|
|
1499
|
-
if (s = i[
|
|
1500
|
-
|
|
1510
|
+
if (s = i[a] || e.target, s !== t) {
|
|
1511
|
+
qt(e, "currentTarget", {
|
|
1501
1512
|
configurable: !0,
|
|
1502
1513
|
get() {
|
|
1503
1514
|
return s || r;
|
|
1504
1515
|
}
|
|
1505
1516
|
});
|
|
1506
|
-
var
|
|
1507
|
-
|
|
1517
|
+
var _ = M, c = T;
|
|
1518
|
+
ae(null), ke(null);
|
|
1508
1519
|
try {
|
|
1509
|
-
for (var
|
|
1520
|
+
for (var h, f = []; s !== null && s !== t; ) {
|
|
1510
1521
|
try {
|
|
1511
|
-
var g = s[
|
|
1522
|
+
var g = s[ht]?.[n];
|
|
1512
1523
|
g != null && (!s.disabled || e.target === s) && g.call(s, e);
|
|
1513
|
-
} catch (
|
|
1514
|
-
|
|
1524
|
+
} catch (b) {
|
|
1525
|
+
h ? f.push(b) : h = b;
|
|
1515
1526
|
}
|
|
1516
1527
|
if (e.cancelBubble) break;
|
|
1517
|
-
|
|
1528
|
+
a++, s = a < i.length ? i[a] : null;
|
|
1518
1529
|
}
|
|
1519
|
-
if (
|
|
1520
|
-
for (let
|
|
1521
|
-
throw
|
|
1530
|
+
if (h) {
|
|
1531
|
+
for (let b of f) queueMicrotask(() => {
|
|
1532
|
+
throw b;
|
|
1522
1533
|
});
|
|
1523
|
-
throw
|
|
1534
|
+
throw h;
|
|
1524
1535
|
}
|
|
1525
1536
|
} finally {
|
|
1526
|
-
e[
|
|
1537
|
+
e[ht] = t, delete e.currentTarget, ae(_), ke(c);
|
|
1527
1538
|
}
|
|
1528
1539
|
}
|
|
1529
1540
|
}
|
|
1530
|
-
var
|
|
1531
|
-
function
|
|
1532
|
-
return
|
|
1541
|
+
var no = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1542
|
+
function io(e) {
|
|
1543
|
+
return no?.createHTML(e) ?? e;
|
|
1533
1544
|
}
|
|
1534
|
-
function
|
|
1535
|
-
var t =
|
|
1536
|
-
return t.innerHTML =
|
|
1545
|
+
function so(e) {
|
|
1546
|
+
var t = xn("template");
|
|
1547
|
+
return t.innerHTML = io(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1537
1548
|
}
|
|
1538
|
-
function
|
|
1539
|
-
var r =
|
|
1549
|
+
function pt(e, t) {
|
|
1550
|
+
var r = T;
|
|
1540
1551
|
r.nodes === null && (r.nodes = {
|
|
1541
1552
|
start: e,
|
|
1542
1553
|
end: t,
|
|
@@ -1545,35 +1556,35 @@ function nt(e, t) {
|
|
|
1545
1556
|
});
|
|
1546
1557
|
}
|
|
1547
1558
|
// @__NO_SIDE_EFFECTS__
|
|
1548
|
-
function
|
|
1559
|
+
function er(e, t) {
|
|
1549
1560
|
var r = (t & 1) !== 0, n = (t & 2) !== 0, i, s = !e.startsWith("<!>");
|
|
1550
1561
|
return () => {
|
|
1551
|
-
if (
|
|
1552
|
-
return
|
|
1553
|
-
i === void 0 && (i =
|
|
1554
|
-
var
|
|
1562
|
+
if (R)
|
|
1563
|
+
return pt(P, null), P;
|
|
1564
|
+
i === void 0 && (i = so(s ? e : "<!>" + e), r || (i = /* @__PURE__ */ He(i)));
|
|
1565
|
+
var a = n || Ni ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1555
1566
|
if (r) {
|
|
1556
|
-
var l = /* @__PURE__ */
|
|
1557
|
-
|
|
1558
|
-
} else
|
|
1559
|
-
return
|
|
1567
|
+
var l = /* @__PURE__ */ He(a), u = a.lastChild;
|
|
1568
|
+
pt(l, u);
|
|
1569
|
+
} else pt(a, a);
|
|
1570
|
+
return a;
|
|
1560
1571
|
};
|
|
1561
1572
|
}
|
|
1562
|
-
function
|
|
1563
|
-
if (
|
|
1564
|
-
return
|
|
1565
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), r =
|
|
1566
|
-
return e.append(t, r),
|
|
1573
|
+
function ao() {
|
|
1574
|
+
if (R)
|
|
1575
|
+
return pt(P, null), P;
|
|
1576
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), r = ne();
|
|
1577
|
+
return e.append(t, r), pt(t, r), e;
|
|
1567
1578
|
}
|
|
1568
|
-
function
|
|
1569
|
-
if (
|
|
1570
|
-
var r =
|
|
1571
|
-
((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end =
|
|
1579
|
+
function Ne(e, t) {
|
|
1580
|
+
if (R) {
|
|
1581
|
+
var r = T;
|
|
1582
|
+
((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = P), Ir();
|
|
1572
1583
|
return;
|
|
1573
1584
|
}
|
|
1574
1585
|
e !== null && e.before(t);
|
|
1575
1586
|
}
|
|
1576
|
-
var
|
|
1587
|
+
var oo = [
|
|
1577
1588
|
"allowfullscreen",
|
|
1578
1589
|
"async",
|
|
1579
1590
|
"autofocus",
|
|
@@ -1602,8 +1613,8 @@ var Pa = [
|
|
|
1602
1613
|
"defer",
|
|
1603
1614
|
"disablepictureinpicture",
|
|
1604
1615
|
"disableremoteplayback"
|
|
1605
|
-
],
|
|
1606
|
-
...
|
|
1616
|
+
], nl = [
|
|
1617
|
+
...oo,
|
|
1607
1618
|
"formNoValidate",
|
|
1608
1619
|
"isMap",
|
|
1609
1620
|
"noModule",
|
|
@@ -1618,17 +1629,17 @@ var Pa = [
|
|
|
1618
1629
|
"allowFullscreen",
|
|
1619
1630
|
"disablePictureInPicture",
|
|
1620
1631
|
"disableRemotePlayback"
|
|
1621
|
-
],
|
|
1622
|
-
function
|
|
1623
|
-
return
|
|
1632
|
+
], lo = ["touchstart", "touchmove"];
|
|
1633
|
+
function fo(e) {
|
|
1634
|
+
return lo.includes(e);
|
|
1624
1635
|
}
|
|
1625
|
-
var
|
|
1636
|
+
var uo = [
|
|
1626
1637
|
"$state",
|
|
1627
1638
|
"$state.raw",
|
|
1628
1639
|
"$derived",
|
|
1629
1640
|
"$derived.by"
|
|
1630
|
-
],
|
|
1631
|
-
...
|
|
1641
|
+
], il = [
|
|
1642
|
+
...uo,
|
|
1632
1643
|
"$state.eager",
|
|
1633
1644
|
"$state.snapshot",
|
|
1634
1645
|
"$props",
|
|
@@ -1644,333 +1655,333 @@ var Ia = [
|
|
|
1644
1655
|
"$inspect.trace",
|
|
1645
1656
|
"$host"
|
|
1646
1657
|
];
|
|
1647
|
-
function
|
|
1648
|
-
let t = 0, r =
|
|
1658
|
+
function co(e) {
|
|
1659
|
+
let t = 0, r = nt(0), n;
|
|
1649
1660
|
return () => {
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
t -= 1, t === 0 && (n?.(), n = void 0,
|
|
1661
|
+
Sn() && (d(r), Tn(() => (t === 0 && (n = bt(() => e(() => Ft(r)))), t += 1, () => {
|
|
1662
|
+
Le(() => {
|
|
1663
|
+
t -= 1, t === 0 && (n?.(), n = void 0, Ft(r));
|
|
1653
1664
|
});
|
|
1654
1665
|
})));
|
|
1655
1666
|
};
|
|
1656
1667
|
}
|
|
1657
|
-
var
|
|
1658
|
-
function
|
|
1659
|
-
new
|
|
1668
|
+
var ho = hn | mt;
|
|
1669
|
+
function vo(e, t, r, n) {
|
|
1670
|
+
new po(e, t, r, n);
|
|
1660
1671
|
}
|
|
1661
|
-
var
|
|
1672
|
+
var de = /* @__PURE__ */ new WeakMap(), an = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), on = /* @__PURE__ */ new WeakMap(), ln = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakSet(), po = class {
|
|
1662
1673
|
constructor(e, t, r, n) {
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
}))),
|
|
1666
|
-
var s =
|
|
1674
|
+
yn(this, N), I(this, "parent", void 0), I(this, "is_pending", !1), I(this, "transform_error", void 0), S(this, de, void 0), S(this, an, R ? P : null), S(this, be, void 0), S(this, Kt, void 0), S(this, X, void 0), S(this, he, null), S(this, Q, null), S(this, ue, null), S(this, We, null), S(this, ct, 0), S(this, et, 0), S(this, cr, !1), S(this, on, /* @__PURE__ */ new Set()), S(this, ln, /* @__PURE__ */ new Set()), S(this, je, null), S(this, Qn, co(() => ($(je, this, nt(o(ct, this))), () => {
|
|
1675
|
+
$(je, this, null);
|
|
1676
|
+
}))), $(de, this, e), $(be, this, t), $(Kt, this, (i) => {
|
|
1677
|
+
var s = T;
|
|
1667
1678
|
s.b = this, s.f |= 128, r(i);
|
|
1668
|
-
}), this.parent =
|
|
1669
|
-
if (
|
|
1670
|
-
const i =
|
|
1671
|
-
|
|
1679
|
+
}), this.parent = T.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), $(X, this, An(() => {
|
|
1680
|
+
if (R) {
|
|
1681
|
+
const i = vn(o(an, this));
|
|
1682
|
+
Ir();
|
|
1672
1683
|
const s = i === "[!";
|
|
1673
1684
|
if (i.startsWith("[?")) {
|
|
1674
|
-
const
|
|
1675
|
-
|
|
1676
|
-
} else s ?
|
|
1677
|
-
} else
|
|
1678
|
-
},
|
|
1685
|
+
const a = JSON.parse(i.slice(2));
|
|
1686
|
+
k(N, this, go).call(this, a);
|
|
1687
|
+
} else s ? k(N, this, wo).call(this) : k(N, this, _o).call(this);
|
|
1688
|
+
} else k(N, this, ts).call(this);
|
|
1689
|
+
}, ho)), R && $(de, this, P);
|
|
1679
1690
|
}
|
|
1680
1691
|
defer_effect(e) {
|
|
1681
|
-
|
|
1692
|
+
wi(e, o(on, this), o(ln, this));
|
|
1682
1693
|
}
|
|
1683
1694
|
is_rendered() {
|
|
1684
1695
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
1685
1696
|
}
|
|
1686
1697
|
has_pending_snippet() {
|
|
1687
|
-
return !!
|
|
1698
|
+
return !!o(be, this).pending;
|
|
1688
1699
|
}
|
|
1689
1700
|
update_pending_count(e, t) {
|
|
1690
|
-
|
|
1691
|
-
|
|
1701
|
+
k(N, this, rs).call(this, e, t), $(ct, this, o(ct, this) + e), !(!o(je, this) || o(cr, this)) && ($(cr, this, !0), Le(() => {
|
|
1702
|
+
$(cr, this, !1), o(je, this) && gt(o(je, this), o(ct, this));
|
|
1692
1703
|
}));
|
|
1693
1704
|
}
|
|
1694
1705
|
get_effect_pending() {
|
|
1695
|
-
return
|
|
1706
|
+
return o(Qn, this).call(this), d(o(je, this));
|
|
1696
1707
|
}
|
|
1697
1708
|
error(e) {
|
|
1698
|
-
if (e ===
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
})) :
|
|
1709
|
+
if (e === ze || !o(be, this).onerror && !o(be, this).failed) throw e;
|
|
1710
|
+
A?.is_fork ? (o(he, this) && A.skip_effect(o(he, this)), o(Q, this) && A.skip_effect(o(Q, this)), o(ue, this) && A.skip_effect(o(ue, this)), A.oncommit(() => {
|
|
1711
|
+
k(N, this, tt).call(this) || k(N, this, ei).call(this, e);
|
|
1712
|
+
})) : k(N, this, ei).call(this, e);
|
|
1702
1713
|
}
|
|
1703
1714
|
};
|
|
1704
|
-
function
|
|
1715
|
+
function _o() {
|
|
1705
1716
|
try {
|
|
1706
|
-
|
|
1717
|
+
$(he, this, se(() => o(Kt, this).call(this, o(de, this))));
|
|
1707
1718
|
} catch (e) {
|
|
1708
1719
|
this.error(e);
|
|
1709
1720
|
}
|
|
1710
1721
|
}
|
|
1711
|
-
function
|
|
1712
|
-
const t =
|
|
1713
|
-
|
|
1714
|
-
t(
|
|
1722
|
+
function go(e) {
|
|
1723
|
+
const t = o(be, this).failed, { reset: r, invoke_onerror: n } = k(N, this, es).call(this, e);
|
|
1724
|
+
Le(n), t && $(ue, this, se(() => {
|
|
1725
|
+
t(o(de, this), () => e, () => r);
|
|
1715
1726
|
}));
|
|
1716
1727
|
}
|
|
1717
|
-
function
|
|
1728
|
+
function es(e) {
|
|
1718
1729
|
var t = !1, r = !1;
|
|
1719
1730
|
const n = () => {
|
|
1720
|
-
if (!
|
|
1731
|
+
if (!k(N, this, tt).call(this)) {
|
|
1721
1732
|
if (t) {
|
|
1722
|
-
|
|
1733
|
+
ca();
|
|
1723
1734
|
return;
|
|
1724
1735
|
}
|
|
1725
|
-
t = !0, r &&
|
|
1726
|
-
|
|
1727
|
-
}),
|
|
1728
|
-
|
|
1736
|
+
t = !0, r && Sa(), o(ue, this) !== null && at(o(ue, this), () => {
|
|
1737
|
+
$(ue, this, null);
|
|
1738
|
+
}), k(N, this, Pn).call(this, () => {
|
|
1739
|
+
k(N, this, ts).call(this);
|
|
1729
1740
|
});
|
|
1730
1741
|
}
|
|
1731
1742
|
};
|
|
1732
1743
|
return {
|
|
1733
1744
|
reset: n,
|
|
1734
1745
|
invoke_onerror: () => {
|
|
1735
|
-
if (!
|
|
1746
|
+
if (!k(N, this, tt).call(this))
|
|
1736
1747
|
try {
|
|
1737
|
-
r = !0,
|
|
1748
|
+
r = !0, o(be, this).onerror?.(e, n), r = !1;
|
|
1738
1749
|
} catch (s) {
|
|
1739
|
-
|
|
1750
|
+
ye(s, o(X, this) && o(X, this).parent);
|
|
1740
1751
|
}
|
|
1741
1752
|
}
|
|
1742
1753
|
};
|
|
1743
1754
|
}
|
|
1744
|
-
function
|
|
1745
|
-
return (
|
|
1755
|
+
function tt() {
|
|
1756
|
+
return (o(X, this).f & (di | Xr)) !== 0;
|
|
1746
1757
|
}
|
|
1747
|
-
function
|
|
1748
|
-
const e =
|
|
1749
|
-
e && (this.is_pending = !0,
|
|
1750
|
-
if (!
|
|
1751
|
-
var t =
|
|
1752
|
-
if (t.append(r),
|
|
1758
|
+
function wo() {
|
|
1759
|
+
const e = o(be, this).pending;
|
|
1760
|
+
e && (this.is_pending = !0, $(Q, this, se(() => e(o(de, this)))), Le(() => {
|
|
1761
|
+
if (!k(N, this, tt).call(this)) {
|
|
1762
|
+
var t = $(We, this, document.createDocumentFragment()), r = ne(), n = !1;
|
|
1763
|
+
if (t.append(r), $(he, this, k(N, this, Pn).call(this, () => {
|
|
1753
1764
|
try {
|
|
1754
|
-
return
|
|
1765
|
+
return se(() => o(Kt, this).call(this, r));
|
|
1755
1766
|
} catch (i) {
|
|
1756
1767
|
try {
|
|
1757
1768
|
this.error(i), n = !0;
|
|
1758
1769
|
} catch (s) {
|
|
1759
|
-
|
|
1770
|
+
ye(s, o(X, this).parent);
|
|
1760
1771
|
}
|
|
1761
1772
|
return null;
|
|
1762
1773
|
}
|
|
1763
|
-
})),
|
|
1764
|
-
|
|
1774
|
+
})), o(he, this) === null) {
|
|
1775
|
+
$(We, this, null), n && k(N, this, Pr).call(this, A);
|
|
1765
1776
|
return;
|
|
1766
1777
|
}
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
}),
|
|
1778
|
+
o(et, this) === 0 && (o(de, this).before(t), $(We, this, null), at(o(Q, this), () => {
|
|
1779
|
+
$(Q, this, null);
|
|
1780
|
+
}), k(N, this, Pr).call(this, A));
|
|
1770
1781
|
}
|
|
1771
1782
|
}));
|
|
1772
1783
|
}
|
|
1773
|
-
function
|
|
1784
|
+
function ts() {
|
|
1774
1785
|
try {
|
|
1775
|
-
if (this.is_pending = this.has_pending_snippet(),
|
|
1776
|
-
|
|
1777
|
-
})),
|
|
1778
|
-
var e =
|
|
1779
|
-
|
|
1780
|
-
const t =
|
|
1781
|
-
|
|
1782
|
-
} else
|
|
1786
|
+
if (this.is_pending = this.has_pending_snippet(), $(et, this, 0), $(ct, this, 0), $(he, this, se(() => {
|
|
1787
|
+
o(Kt, this).call(this, o(de, this));
|
|
1788
|
+
})), o(et, this) > 0) {
|
|
1789
|
+
var e = $(We, this, document.createDocumentFragment());
|
|
1790
|
+
Rn(o(he, this), e);
|
|
1791
|
+
const t = o(be, this).pending;
|
|
1792
|
+
$(Q, this, se(() => t(o(de, this))));
|
|
1793
|
+
} else k(N, this, Pr).call(this, A);
|
|
1783
1794
|
} catch (t) {
|
|
1784
1795
|
this.error(t);
|
|
1785
1796
|
}
|
|
1786
1797
|
}
|
|
1787
|
-
function
|
|
1788
|
-
this.is_pending = !1, e.transfer_effects(
|
|
1798
|
+
function Pr(e) {
|
|
1799
|
+
this.is_pending = !1, e.transfer_effects(o(on, this), o(ln, this));
|
|
1789
1800
|
}
|
|
1790
|
-
function
|
|
1791
|
-
var t =
|
|
1792
|
-
|
|
1801
|
+
function Pn(e) {
|
|
1802
|
+
var t = T, r = M, n = z;
|
|
1803
|
+
ke(o(X, this)), ae(o(X, this)), _t(o(X, this).ctx);
|
|
1793
1804
|
try {
|
|
1794
|
-
return
|
|
1805
|
+
return st.ensure(), e();
|
|
1795
1806
|
} finally {
|
|
1796
|
-
|
|
1807
|
+
ke(t), ae(r), _t(n);
|
|
1797
1808
|
}
|
|
1798
1809
|
}
|
|
1799
|
-
function
|
|
1810
|
+
function rs(e, t) {
|
|
1800
1811
|
if (!this.has_pending_snippet()) {
|
|
1801
1812
|
if (this.parent) {
|
|
1802
1813
|
var r;
|
|
1803
|
-
|
|
1814
|
+
k(N, r = this.parent, rs).call(r, e, t);
|
|
1804
1815
|
}
|
|
1805
1816
|
return;
|
|
1806
1817
|
}
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
}),
|
|
1818
|
+
$(et, this, o(et, this) + e), o(et, this) === 0 && (k(N, this, Pr).call(this, t), o(Q, this) && at(o(Q, this), () => {
|
|
1819
|
+
$(Q, this, null);
|
|
1820
|
+
}), o(We, this) && (o(de, this).before(o(We, this)), $(We, this, null)));
|
|
1810
1821
|
}
|
|
1811
|
-
function
|
|
1812
|
-
|
|
1813
|
-
let t =
|
|
1822
|
+
function ei(e) {
|
|
1823
|
+
o(he, this) && (V(o(he, this)), $(he, this, null)), o(Q, this) && (V(o(Q, this)), $(Q, this, null)), o(ue, this) && (V(o(ue, this)), $(ue, this, null)), R && (Z(o(an, this)), da(), Z(mr()));
|
|
1824
|
+
let t = o(be, this).failed;
|
|
1814
1825
|
const r = (n) => {
|
|
1815
|
-
if (
|
|
1816
|
-
const { reset: i, invoke_onerror: s } =
|
|
1817
|
-
s(), t && !
|
|
1826
|
+
if (k(N, this, tt).call(this)) return;
|
|
1827
|
+
const { reset: i, invoke_onerror: s } = k(N, this, es).call(this, n);
|
|
1828
|
+
s(), t && !k(N, this, tt).call(this) && $(ue, this, k(N, this, Pn).call(this, () => {
|
|
1818
1829
|
try {
|
|
1819
|
-
return
|
|
1820
|
-
var
|
|
1821
|
-
|
|
1830
|
+
return se(() => {
|
|
1831
|
+
var a = T;
|
|
1832
|
+
a.b = this, a.f |= 128, t(o(de, this), () => n, () => i);
|
|
1822
1833
|
});
|
|
1823
|
-
} catch (
|
|
1824
|
-
return
|
|
1834
|
+
} catch (a) {
|
|
1835
|
+
return ye(a, o(X, this).parent), null;
|
|
1825
1836
|
}
|
|
1826
1837
|
}));
|
|
1827
1838
|
};
|
|
1828
|
-
|
|
1829
|
-
if (!
|
|
1839
|
+
Le(() => {
|
|
1840
|
+
if (!k(N, this, tt).call(this)) {
|
|
1830
1841
|
var n;
|
|
1831
1842
|
try {
|
|
1832
1843
|
n = this.transform_error(e);
|
|
1833
1844
|
} catch (i) {
|
|
1834
|
-
|
|
1845
|
+
ye(i, o(X, this) && o(X, this).parent);
|
|
1835
1846
|
return;
|
|
1836
1847
|
}
|
|
1837
|
-
n !== null && typeof n == "object" && typeof n.then == "function" ? n.then(r, (i) =>
|
|
1848
|
+
n !== null && typeof n == "object" && typeof n.then == "function" ? n.then(r, (i) => ye(i, o(X, this) && o(X, this).parent)) : r(n);
|
|
1838
1849
|
}
|
|
1839
1850
|
});
|
|
1840
1851
|
}
|
|
1841
|
-
var
|
|
1842
|
-
function
|
|
1852
|
+
var ti = !0;
|
|
1853
|
+
function zt(e, t) {
|
|
1843
1854
|
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1844
|
-
r !== (e[
|
|
1855
|
+
r !== (e[pr] ?? (e[pr] = e.nodeValue)) && (e[pr] = r, e.nodeValue = `${r}`);
|
|
1845
1856
|
}
|
|
1846
|
-
function
|
|
1847
|
-
return
|
|
1857
|
+
function ns(e, t) {
|
|
1858
|
+
return is(e, t);
|
|
1848
1859
|
}
|
|
1849
|
-
function
|
|
1850
|
-
|
|
1851
|
-
const r = t.target, n =
|
|
1860
|
+
function bo(e, t) {
|
|
1861
|
+
nn(), t.intro = t.intro ?? !1;
|
|
1862
|
+
const r = t.target, n = R, i = P;
|
|
1852
1863
|
try {
|
|
1853
|
-
for (var s = /* @__PURE__ */
|
|
1854
|
-
if (!s) throw
|
|
1855
|
-
|
|
1856
|
-
const
|
|
1864
|
+
for (var s = /* @__PURE__ */ He(r); s && (s.nodeType !== 8 || s.data !== "["); ) s = /* @__PURE__ */ $e(s);
|
|
1865
|
+
if (!s) throw ze;
|
|
1866
|
+
Te(!0), Z(s);
|
|
1867
|
+
const a = is(e, {
|
|
1857
1868
|
...t,
|
|
1858
1869
|
anchor: s
|
|
1859
1870
|
});
|
|
1860
|
-
return
|
|
1861
|
-
} catch (
|
|
1862
|
-
if (
|
|
1863
|
-
`).some((l) => l.startsWith("https://svelte.dev/e/"))) throw
|
|
1864
|
-
return
|
|
1871
|
+
return Te(!1), a;
|
|
1872
|
+
} catch (a) {
|
|
1873
|
+
if (a instanceof Error && a.message.split(`
|
|
1874
|
+
`).some((l) => l.startsWith("https://svelte.dev/e/"))) throw a;
|
|
1875
|
+
return a !== ze && console.warn("Failed to hydrate: ", a), t.recover === !1 && ya(), nn(), zi(r), Te(!1), ns(e, t);
|
|
1865
1876
|
} finally {
|
|
1866
|
-
|
|
1877
|
+
Te(n), Z(i);
|
|
1867
1878
|
}
|
|
1868
1879
|
}
|
|
1869
|
-
var
|
|
1870
|
-
function
|
|
1871
|
-
|
|
1872
|
-
var
|
|
1873
|
-
var
|
|
1874
|
-
|
|
1880
|
+
var dr = /* @__PURE__ */ new Map();
|
|
1881
|
+
function is(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: a = !0, transformError: l }) {
|
|
1882
|
+
nn();
|
|
1883
|
+
var u = void 0, v = Xa(() => {
|
|
1884
|
+
var _ = r ?? t.appendChild(ne());
|
|
1885
|
+
vo(_, { pending: () => {
|
|
1875
1886
|
} }, (f) => {
|
|
1876
|
-
|
|
1877
|
-
var g =
|
|
1878
|
-
if (s && (g.c = s), i && (n.$$events = i),
|
|
1879
|
-
throw
|
|
1880
|
-
|
|
1887
|
+
pn({});
|
|
1888
|
+
var g = z;
|
|
1889
|
+
if (s && (g.c = s), i && (n.$$events = i), R && pt(f, null), ti = a, u = e(f, n) || gn(), ti = !0, R && (T.nodes.end = P, P === null || P.nodeType !== 8 || P.data !== "]"))
|
|
1890
|
+
throw Nr(), ze;
|
|
1891
|
+
_n();
|
|
1881
1892
|
}, l);
|
|
1882
|
-
var
|
|
1893
|
+
var c = /* @__PURE__ */ new Set(), h = (f) => {
|
|
1883
1894
|
for (var g = 0; g < f.length; g++) {
|
|
1884
|
-
var
|
|
1885
|
-
if (!
|
|
1886
|
-
|
|
1887
|
-
var
|
|
1888
|
-
for (const
|
|
1889
|
-
var
|
|
1890
|
-
|
|
1891
|
-
var
|
|
1892
|
-
|
|
1895
|
+
var b = f[g];
|
|
1896
|
+
if (!c.has(b)) {
|
|
1897
|
+
c.add(b);
|
|
1898
|
+
var p = fo(b);
|
|
1899
|
+
for (const O of [t, document]) {
|
|
1900
|
+
var m = dr.get(O);
|
|
1901
|
+
m === void 0 && (m = /* @__PURE__ */ new Map(), dr.set(O, m));
|
|
1902
|
+
var y = m.get(b);
|
|
1903
|
+
y === void 0 ? (O.addEventListener(b, Jn, { passive: p }), m.set(b, 1)) : m.set(b, y + 1);
|
|
1893
1904
|
}
|
|
1894
1905
|
}
|
|
1895
1906
|
}
|
|
1896
1907
|
};
|
|
1897
|
-
return
|
|
1898
|
-
for (var f of
|
|
1899
|
-
var g =
|
|
1900
|
-
--
|
|
1908
|
+
return h(Cr(Ji)), sn.add(h), () => {
|
|
1909
|
+
for (var f of c) for (const p of [t, document]) {
|
|
1910
|
+
var g = dr.get(p), b = g.get(f);
|
|
1911
|
+
--b == 0 ? (p.removeEventListener(f, Jn), g.delete(f), g.size === 0 && dr.delete(p)) : g.set(f, b);
|
|
1901
1912
|
}
|
|
1902
|
-
|
|
1913
|
+
sn.delete(h), _ !== r && _.parentNode?.removeChild(_);
|
|
1903
1914
|
};
|
|
1904
1915
|
});
|
|
1905
|
-
return
|
|
1916
|
+
return fn.set(u, v), u;
|
|
1906
1917
|
}
|
|
1907
|
-
var
|
|
1908
|
-
function
|
|
1909
|
-
const r =
|
|
1910
|
-
return r ? (
|
|
1918
|
+
var fn = /* @__PURE__ */ new WeakMap();
|
|
1919
|
+
function mo(e, t) {
|
|
1920
|
+
const r = fn.get(e);
|
|
1921
|
+
return r ? (fn.delete(e), r(t)) : Promise.resolve();
|
|
1911
1922
|
}
|
|
1912
|
-
var
|
|
1923
|
+
var Ee = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), Br = /* @__PURE__ */ new WeakMap(), qr = /* @__PURE__ */ new WeakMap(), ri = /* @__PURE__ */ new WeakMap(), yo = class {
|
|
1913
1924
|
constructor(e, t = !0) {
|
|
1914
|
-
|
|
1915
|
-
if (
|
|
1916
|
-
var n =
|
|
1925
|
+
I(this, "anchor", void 0), S(this, Ee, /* @__PURE__ */ new Map()), S(this, Re, /* @__PURE__ */ new Map()), S(this, oe, /* @__PURE__ */ new Map()), S(this, Tt, /* @__PURE__ */ new Set()), S(this, Br, !0), S(this, qr, (r) => {
|
|
1926
|
+
if (o(Ee, this).has(r)) {
|
|
1927
|
+
var n = o(Ee, this).get(r), i = o(Re, this).get(n);
|
|
1917
1928
|
if (i)
|
|
1918
|
-
|
|
1929
|
+
Rr(i), o(Tt, this).delete(n);
|
|
1919
1930
|
else {
|
|
1920
|
-
var s =
|
|
1921
|
-
s && (
|
|
1931
|
+
var s = o(oe, this).get(n);
|
|
1932
|
+
s && (Rr(s.effect), o(Re, this).set(n, s.effect), o(oe, this).delete(n), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), i = s.effect);
|
|
1922
1933
|
}
|
|
1923
|
-
for (const [
|
|
1924
|
-
if (
|
|
1925
|
-
const
|
|
1926
|
-
|
|
1934
|
+
for (const [a, l] of o(Ee, this)) {
|
|
1935
|
+
if (o(Ee, this).delete(a), a === r) break;
|
|
1936
|
+
const u = o(oe, this).get(l);
|
|
1937
|
+
u && (V(u.effect), o(oe, this).delete(l));
|
|
1927
1938
|
}
|
|
1928
|
-
for (const [
|
|
1929
|
-
if (
|
|
1930
|
-
const
|
|
1931
|
-
if (Array.from(
|
|
1939
|
+
for (const [a, l] of o(Re, this)) {
|
|
1940
|
+
if (a === n || o(Tt, this).has(a)) continue;
|
|
1941
|
+
const u = () => {
|
|
1942
|
+
if (Array.from(o(Ee, this).values()).includes(a)) {
|
|
1932
1943
|
var v = document.createDocumentFragment();
|
|
1933
|
-
|
|
1944
|
+
Rn(l, v), v.append(ne()), o(oe, this).set(a, {
|
|
1934
1945
|
effect: l,
|
|
1935
1946
|
fragment: v
|
|
1936
1947
|
});
|
|
1937
|
-
} else
|
|
1938
|
-
|
|
1948
|
+
} else V(l);
|
|
1949
|
+
o(Tt, this).delete(a), o(Re, this).delete(a);
|
|
1939
1950
|
};
|
|
1940
|
-
|
|
1951
|
+
o(Br, this) || !i ? (o(Tt, this).add(a), at(l, u, !1)) : u();
|
|
1941
1952
|
}
|
|
1942
1953
|
}
|
|
1943
|
-
}),
|
|
1944
|
-
|
|
1945
|
-
const n = Array.from(
|
|
1946
|
-
for (const [i, s] of
|
|
1947
|
-
}), this.anchor = e,
|
|
1954
|
+
}), S(this, ri, (r) => {
|
|
1955
|
+
o(Ee, this).delete(r);
|
|
1956
|
+
const n = Array.from(o(Ee, this).values());
|
|
1957
|
+
for (const [i, s] of o(oe, this)) n.includes(i) || (V(s.effect), o(oe, this).delete(i));
|
|
1958
|
+
}), this.anchor = e, $(Br, this, t);
|
|
1948
1959
|
}
|
|
1949
1960
|
ensure(e, t) {
|
|
1950
|
-
var r =
|
|
1951
|
-
if (t && !
|
|
1961
|
+
var r = A, n = Li();
|
|
1962
|
+
if (t && !o(Re, this).has(e) && !o(oe, this).has(e))
|
|
1952
1963
|
if (n) {
|
|
1953
|
-
var i = document.createDocumentFragment(), s =
|
|
1954
|
-
i.append(s),
|
|
1955
|
-
effect:
|
|
1964
|
+
var i = document.createDocumentFragment(), s = ne();
|
|
1965
|
+
i.append(s), o(oe, this).set(e, {
|
|
1966
|
+
effect: se(() => t(s)),
|
|
1956
1967
|
fragment: i
|
|
1957
1968
|
});
|
|
1958
|
-
} else
|
|
1959
|
-
if (
|
|
1960
|
-
for (const [
|
|
1961
|
-
for (const [
|
|
1962
|
-
r.oncommit(
|
|
1969
|
+
} else o(Re, this).set(e, se(() => t(this.anchor)));
|
|
1970
|
+
if (o(Ee, this).set(r, e), n) {
|
|
1971
|
+
for (const [a, l] of o(Re, this)) a === e ? r.unskip_effect(l) : r.skip_effect(l);
|
|
1972
|
+
for (const [a, l] of o(oe, this)) a === e ? r.unskip_effect(l.effect) : r.skip_effect(l.effect);
|
|
1973
|
+
r.oncommit(o(qr, this)), r.ondiscard(o(ri, this));
|
|
1963
1974
|
} else
|
|
1964
|
-
|
|
1975
|
+
R && (this.anchor = P), o(qr, this).call(this, r);
|
|
1965
1976
|
}
|
|
1966
1977
|
};
|
|
1967
|
-
function
|
|
1968
|
-
|
|
1969
|
-
const t =
|
|
1978
|
+
function ko(e) {
|
|
1979
|
+
z === null && va("onMount"), Zt && z.l !== null ? $o(z).m.push(e) : Oe(() => {
|
|
1980
|
+
const t = bt(e);
|
|
1970
1981
|
if (typeof t == "function") return t;
|
|
1971
1982
|
});
|
|
1972
1983
|
}
|
|
1973
|
-
function
|
|
1984
|
+
function $o(e) {
|
|
1974
1985
|
var t = e.l;
|
|
1975
1986
|
return t.u ?? (t.u = {
|
|
1976
1987
|
a: [],
|
|
@@ -1978,39 +1989,231 @@ function Ga(e) {
|
|
|
1978
1989
|
m: []
|
|
1979
1990
|
});
|
|
1980
1991
|
}
|
|
1981
|
-
function
|
|
1992
|
+
function ss(e, t, r = !1) {
|
|
1982
1993
|
var n;
|
|
1983
|
-
|
|
1984
|
-
var i = new
|
|
1985
|
-
function
|
|
1986
|
-
if (
|
|
1987
|
-
var v =
|
|
1994
|
+
R && (n = P, Ir());
|
|
1995
|
+
var i = new yo(e), s = r ? hn : 0;
|
|
1996
|
+
function a(l, u) {
|
|
1997
|
+
if (R) {
|
|
1998
|
+
var v = vn(n);
|
|
1988
1999
|
if (l !== parseInt(v.substring(1))) {
|
|
1989
|
-
var
|
|
1990
|
-
|
|
2000
|
+
var _ = mr();
|
|
2001
|
+
Z(_), i.anchor = _, Te(!1), i.ensure(l, u), Te(!0);
|
|
1991
2002
|
return;
|
|
1992
2003
|
}
|
|
1993
2004
|
}
|
|
1994
|
-
i.ensure(l,
|
|
2005
|
+
i.ensure(l, u);
|
|
1995
2006
|
}
|
|
1996
|
-
|
|
2007
|
+
An(() => {
|
|
1997
2008
|
var l = !1;
|
|
1998
|
-
t((
|
|
1999
|
-
l = !0,
|
|
2000
|
-
}), l ||
|
|
2009
|
+
t((u, v = 0) => {
|
|
2010
|
+
l = !0, a(v, u);
|
|
2011
|
+
}), l || a(-1, null);
|
|
2001
2012
|
}, s);
|
|
2002
2013
|
}
|
|
2003
|
-
function
|
|
2004
|
-
|
|
2005
|
-
|
|
2014
|
+
function xo(e, t) {
|
|
2015
|
+
return t;
|
|
2016
|
+
}
|
|
2017
|
+
function Eo(e, t, r) {
|
|
2018
|
+
for (var n = [], i = t.length, s, a = t.length, l = 0; l < i; l++) {
|
|
2019
|
+
let c = t[l];
|
|
2020
|
+
at(c, () => {
|
|
2021
|
+
if (s) {
|
|
2022
|
+
if (s.pending.delete(c), s.done.add(c), s.pending.size === 0) {
|
|
2023
|
+
var h = e.outrogroups;
|
|
2024
|
+
un(e, Cr(s.done)), h.delete(s), h.size === 0 && (e.outrogroups = null);
|
|
2025
|
+
}
|
|
2026
|
+
} else a -= 1;
|
|
2027
|
+
}, !1);
|
|
2028
|
+
}
|
|
2029
|
+
if (a === 0) {
|
|
2030
|
+
var u = n.length === 0 && r !== null && e.pending.size === 0;
|
|
2031
|
+
if (u) {
|
|
2032
|
+
var v = r, _ = v.parentNode;
|
|
2033
|
+
zi(_), _.append(v), e.items.clear();
|
|
2034
|
+
}
|
|
2035
|
+
un(e, t, !u);
|
|
2036
|
+
} else
|
|
2037
|
+
s = {
|
|
2038
|
+
pending: new Set(t),
|
|
2039
|
+
done: /* @__PURE__ */ new Set()
|
|
2040
|
+
}, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(s);
|
|
2041
|
+
}
|
|
2042
|
+
function un(e, t, r = !0) {
|
|
2043
|
+
var n;
|
|
2044
|
+
if (e.pending.size > 0) {
|
|
2045
|
+
n = /* @__PURE__ */ new Set();
|
|
2046
|
+
for (const a of e.pending.values()) for (const l of a) n.add(e.items.get(l).e);
|
|
2047
|
+
}
|
|
2048
|
+
for (var i = 0; i < t.length; i++) {
|
|
2049
|
+
var s = t[i];
|
|
2050
|
+
if (n?.has(s)) {
|
|
2051
|
+
s.f |= Ht;
|
|
2052
|
+
const a = document.createDocumentFragment();
|
|
2053
|
+
Rn(s, a);
|
|
2054
|
+
} else V(t[i], r);
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2057
|
+
var hr;
|
|
2058
|
+
function Ur(e, t, r, n, i, s = null) {
|
|
2059
|
+
var a = e, l = /* @__PURE__ */ new Map();
|
|
2060
|
+
if ((t & 4) !== 0) {
|
|
2061
|
+
var u = e;
|
|
2062
|
+
a = R ? Z(/* @__PURE__ */ He(u)) : u.appendChild(ne());
|
|
2063
|
+
}
|
|
2064
|
+
R && Ir();
|
|
2065
|
+
var v = null, _ = /* @__PURE__ */ bn(() => {
|
|
2066
|
+
var p = r();
|
|
2067
|
+
return fi(p) ? p : p == null ? [] : Cr(p);
|
|
2068
|
+
}), c = /* @__PURE__ */ new Map(), h = !0;
|
|
2069
|
+
function f(p) {
|
|
2070
|
+
if ((b.effect.f & 16384) === 0) {
|
|
2071
|
+
b.pending.delete(p);
|
|
2072
|
+
var m = d(_);
|
|
2073
|
+
b.fallback = v, So(b, m, a, t, n), v !== null && (m.length === 0 ? (v.f & 33554432) === 0 ? Rr(v) : (v.f ^= Ht, Lt(v, null, a)) : at(v, () => {
|
|
2074
|
+
v = null;
|
|
2075
|
+
}));
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2078
|
+
function g(p) {
|
|
2079
|
+
b.pending.delete(p);
|
|
2080
|
+
}
|
|
2081
|
+
var b = {
|
|
2082
|
+
effect: An(() => {
|
|
2083
|
+
var p = d(_), m = p.length;
|
|
2084
|
+
let y = !1;
|
|
2085
|
+
R && vn(a) === "[!" != (m === 0) && (a = mr(), Z(a), Te(!1), y = !0);
|
|
2086
|
+
for (var O = /* @__PURE__ */ new Set(), x = A, H = Li(), D = 0; D < m; D += 1) {
|
|
2087
|
+
R && P.nodeType === 8 && P.data === "]" && (a = P, y = !0, Te(!1));
|
|
2088
|
+
var te = p[D], ve = n(te, D);
|
|
2089
|
+
if (0)
|
|
2090
|
+
var yt;
|
|
2091
|
+
var j = h ? null : l.get(ve);
|
|
2092
|
+
j ? (j.v && gt(j.v, te), j.i && gt(j.i, D), H && x.unskip_effect(j.e)) : (j = To(l, h ? a : hr ?? (hr = ne()), te, ve, D, i, t, r), h || (j.e.f |= Ht), l.set(ve, j)), O.add(ve);
|
|
2093
|
+
}
|
|
2094
|
+
if (m === 0 && s && !v && (h ? v = se(() => s(a)) : (v = se(() => s(hr ?? (hr = ne()))), v.f |= Ht)), m > O.size && _a("", "", ""), R && m > 0 && Z(mr()), !h)
|
|
2095
|
+
if (c.set(x, O), H) {
|
|
2096
|
+
for (const [tr, rr] of l) O.has(tr) || x.skip_effect(rr.e);
|
|
2097
|
+
x.oncommit(f), x.ondiscard(g);
|
|
2098
|
+
} else f(x);
|
|
2099
|
+
y && Te(!0), d(_);
|
|
2100
|
+
}),
|
|
2101
|
+
flags: t,
|
|
2102
|
+
items: l,
|
|
2103
|
+
pending: c,
|
|
2104
|
+
outrogroups: null,
|
|
2105
|
+
fallback: v
|
|
2106
|
+
};
|
|
2107
|
+
h = !1, R && (a = P);
|
|
2108
|
+
}
|
|
2109
|
+
function At(e) {
|
|
2110
|
+
for (; e !== null && (e.f & 32) === 0; ) e = e.next;
|
|
2111
|
+
return e;
|
|
2112
|
+
}
|
|
2113
|
+
function So(e, t, r, n, i) {
|
|
2114
|
+
var s = (n & 8) !== 0, a = t.length, l = e.items, u = At(e.effect.first), v, _ = null, c, h = [], f = [], g, b, p, m;
|
|
2115
|
+
if (s) for (m = 0; m < a; m += 1)
|
|
2116
|
+
g = t[m], b = i(g, m), p = l.get(b).e, (p.f & 33554432) === 0 && (p.nodes?.a?.measure(), (c ?? (c = /* @__PURE__ */ new Set())).add(p));
|
|
2117
|
+
for (m = 0; m < a; m += 1) {
|
|
2118
|
+
if (g = t[m], b = i(g, m), p = l.get(b).e, e.outrogroups !== null) for (const j of e.outrogroups)
|
|
2119
|
+
j.pending.delete(p), j.done.delete(p);
|
|
2120
|
+
if ((p.f & 8192) !== 0 && (Rr(p), s && (p.nodes?.a?.unfix(), (c ?? (c = /* @__PURE__ */ new Set())).delete(p))), (p.f & 33554432) !== 0)
|
|
2121
|
+
if (p.f ^= Ht, p === u) Lt(p, null, r);
|
|
2122
|
+
else {
|
|
2123
|
+
var y = _ ? _.next : u;
|
|
2124
|
+
p === e.effect.last && (e.effect.last = p.prev), p.prev && (p.prev.next = p.next), p.next && (p.next.prev = p.prev), Pe(e, _, p), Pe(e, p, y), Lt(p, y, r), _ = p, h = [], f = [], u = At(_.next);
|
|
2125
|
+
continue;
|
|
2126
|
+
}
|
|
2127
|
+
if (p !== u) {
|
|
2128
|
+
if (v !== void 0 && v.has(p)) {
|
|
2129
|
+
if (h.length < f.length) {
|
|
2130
|
+
var O = f[0], x;
|
|
2131
|
+
_ = O.prev;
|
|
2132
|
+
var H = h[0], D = h[h.length - 1];
|
|
2133
|
+
for (x = 0; x < h.length; x += 1) Lt(h[x], O, r);
|
|
2134
|
+
for (x = 0; x < f.length; x += 1) v.delete(f[x]);
|
|
2135
|
+
Pe(e, H.prev, D.next), Pe(e, _, H), Pe(e, D, O), u = O, _ = D, m -= 1, h = [], f = [];
|
|
2136
|
+
} else
|
|
2137
|
+
v.delete(p), Lt(p, u, r), Pe(e, p.prev, p.next), Pe(e, p, _ === null ? e.effect.first : _.next), Pe(e, _, p), _ = p;
|
|
2138
|
+
continue;
|
|
2139
|
+
}
|
|
2140
|
+
for (h = [], f = []; u !== null && u !== p; )
|
|
2141
|
+
(v ?? (v = /* @__PURE__ */ new Set())).add(u), f.push(u), u = At(u.next);
|
|
2142
|
+
if (u === null) continue;
|
|
2143
|
+
}
|
|
2144
|
+
(p.f & 33554432) === 0 && h.push(p), _ = p, u = At(p.next);
|
|
2145
|
+
}
|
|
2146
|
+
if (e.outrogroups !== null) {
|
|
2147
|
+
for (const j of e.outrogroups) j.pending.size === 0 && (un(e, Cr(j.done)), e.outrogroups?.delete(j));
|
|
2148
|
+
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
2149
|
+
}
|
|
2150
|
+
if (u !== null || v !== void 0) {
|
|
2151
|
+
var te = [];
|
|
2152
|
+
if (v !== void 0)
|
|
2153
|
+
for (p of v) (p.f & 8192) === 0 && te.push(p);
|
|
2154
|
+
for (; u !== null; )
|
|
2155
|
+
(u.f & 8192) === 0 && u !== e.fallback && te.push(u), u = At(u.next);
|
|
2156
|
+
var ve = te.length;
|
|
2157
|
+
if (ve > 0) {
|
|
2158
|
+
var yt = (n & 4) !== 0 && a === 0 ? r : null;
|
|
2159
|
+
if (s) {
|
|
2160
|
+
for (m = 0; m < ve; m += 1) te[m].nodes?.a?.measure();
|
|
2161
|
+
for (m = 0; m < ve; m += 1) te[m].nodes?.a?.fix();
|
|
2162
|
+
}
|
|
2163
|
+
Eo(e, te, yt);
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
s && Le(() => {
|
|
2167
|
+
if (c !== void 0)
|
|
2168
|
+
for (p of c) p.nodes?.a?.apply();
|
|
2169
|
+
});
|
|
2170
|
+
}
|
|
2171
|
+
function To(e, t, r, n, i, s, a, l) {
|
|
2172
|
+
var u = (a & 1) !== 0 ? (a & 16) === 0 ? /* @__PURE__ */ Oi(r, !1, !1) : nt(r) : null, v = (a & 2) !== 0 ? nt(i) : null;
|
|
2173
|
+
return {
|
|
2174
|
+
v: u,
|
|
2175
|
+
i: v,
|
|
2176
|
+
e: se(() => (s(t, u ?? r, v ?? i, l), () => {
|
|
2177
|
+
e.delete(n);
|
|
2178
|
+
}))
|
|
2179
|
+
};
|
|
2180
|
+
}
|
|
2181
|
+
function Lt(e, t, r) {
|
|
2182
|
+
if (e.nodes)
|
|
2183
|
+
for (var n = e.nodes.start, i = e.nodes.end, s = t && (t.f & 33554432) === 0 ? t.nodes.start : r; n !== null; ) {
|
|
2184
|
+
var a = /* @__PURE__ */ $e(n);
|
|
2185
|
+
if (s.before(n), n === i) return;
|
|
2186
|
+
n = a;
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2189
|
+
function Pe(e, t, r) {
|
|
2190
|
+
t === null ? e.effect.first = r : t.next = r, r === null ? e.effect.last = t : r.prev = t;
|
|
2191
|
+
}
|
|
2192
|
+
function as(e, t) {
|
|
2193
|
+
Di(() => {
|
|
2194
|
+
e = T?.parent?.nodes?.start ?? e;
|
|
2006
2195
|
var r = e.getRootNode(), n = r.host ? r : r.head ?? r.ownerDocument.head;
|
|
2007
2196
|
if (!n.querySelector("#" + t.hash)) {
|
|
2008
|
-
const i =
|
|
2197
|
+
const i = xn("style");
|
|
2009
2198
|
i.id = t.hash, i.textContent = t.code, n.appendChild(i);
|
|
2010
2199
|
}
|
|
2011
2200
|
});
|
|
2012
2201
|
}
|
|
2013
|
-
|
|
2202
|
+
var ni = [...`
|
|
2203
|
+
\r\f \v\uFEFF`];
|
|
2204
|
+
function Ao(e, t, r) {
|
|
2205
|
+
var n = e == null ? "" : "" + e;
|
|
2206
|
+
if (t && (n = n ? n + " " + t : t), r) {
|
|
2207
|
+
for (var i of Object.keys(r)) if (r[i]) n = n ? n + " " + i : i;
|
|
2208
|
+
else if (n.length)
|
|
2209
|
+
for (var s = i.length, a = 0; (a = n.indexOf(i, a)) >= 0; ) {
|
|
2210
|
+
var l = a + s;
|
|
2211
|
+
(a === 0 || ni.includes(n[a - 1])) && (l === n.length || ni.includes(n[l])) ? n = (a === 0 ? "" : n.substring(0, a)) + n.substring(l + 1) : a = l;
|
|
2212
|
+
}
|
|
2213
|
+
}
|
|
2214
|
+
return n === "" ? null : n;
|
|
2215
|
+
}
|
|
2216
|
+
function ii(e, t = !1) {
|
|
2014
2217
|
var r = t ? " !important;" : ";", n = "";
|
|
2015
2218
|
for (var i of Object.keys(e)) {
|
|
2016
2219
|
var s = e[i];
|
|
@@ -2018,194 +2221,205 @@ function Mn(e, t = !1) {
|
|
|
2018
2221
|
}
|
|
2019
2222
|
return n;
|
|
2020
2223
|
}
|
|
2021
|
-
function
|
|
2224
|
+
function Yr(e) {
|
|
2022
2225
|
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
2023
2226
|
}
|
|
2024
|
-
function
|
|
2227
|
+
function Mo(e, t) {
|
|
2025
2228
|
if (t) {
|
|
2026
2229
|
var r = "", n, i;
|
|
2027
2230
|
if (Array.isArray(t) ? (n = t[0], i = t[1]) : n = t, e) {
|
|
2028
2231
|
e = String(e).replaceAll(/\/\*.*?\*\//g, "").trim();
|
|
2029
|
-
var s = !1,
|
|
2030
|
-
n &&
|
|
2031
|
-
var v = 0,
|
|
2032
|
-
const
|
|
2033
|
-
for (var
|
|
2034
|
-
var
|
|
2035
|
-
if (l ?
|
|
2036
|
-
if (
|
|
2037
|
-
else if (
|
|
2038
|
-
if (
|
|
2039
|
-
var f =
|
|
2040
|
-
if (!
|
|
2041
|
-
|
|
2042
|
-
var g = e.substring(v,
|
|
2232
|
+
var s = !1, a = 0, l = !1, u = [];
|
|
2233
|
+
n && u.push(...Object.keys(n).map(Yr)), i && u.push(...Object.keys(i).map(Yr));
|
|
2234
|
+
var v = 0, _ = -1;
|
|
2235
|
+
const b = e.length;
|
|
2236
|
+
for (var c = 0; c < b; c++) {
|
|
2237
|
+
var h = e[c];
|
|
2238
|
+
if (l ? h === "/" && e[c - 1] === "*" && (l = !1) : s ? s === h && (s = !1) : h === "/" && e[c + 1] === "*" ? l = !0 : h === '"' || h === "'" ? s = h : h === "(" ? a++ : h === ")" && a--, !l && s === !1 && a === 0) {
|
|
2239
|
+
if (h === ":" && _ === -1) _ = c;
|
|
2240
|
+
else if (h === ";" || c === b - 1) {
|
|
2241
|
+
if (_ !== -1) {
|
|
2242
|
+
var f = Yr(e.substring(v, _).trim());
|
|
2243
|
+
if (!u.includes(f)) {
|
|
2244
|
+
h !== ";" && c++;
|
|
2245
|
+
var g = e.substring(v, c).trim();
|
|
2043
2246
|
r += " " + g + ";";
|
|
2044
2247
|
}
|
|
2045
2248
|
}
|
|
2046
|
-
v =
|
|
2249
|
+
v = c + 1, _ = -1;
|
|
2047
2250
|
}
|
|
2048
2251
|
}
|
|
2049
2252
|
}
|
|
2050
2253
|
}
|
|
2051
|
-
return n && (r +=
|
|
2254
|
+
return n && (r += ii(n)), i && (r += ii(i, !0)), r = r.trim(), r === "" ? null : r;
|
|
2052
2255
|
}
|
|
2053
2256
|
return e == null ? null : String(e);
|
|
2054
2257
|
}
|
|
2055
|
-
function
|
|
2258
|
+
function Mt(e, t, r, n, i, s) {
|
|
2259
|
+
var a = e[Jr];
|
|
2260
|
+
if (R || a !== r || a === void 0) {
|
|
2261
|
+
var l = Ao(r, n, s);
|
|
2262
|
+
(!R || l !== e.getAttribute("class")) && (l == null ? e.removeAttribute("class") : t ? e.className = l : e.setAttribute("class", l)), e[Jr] = r;
|
|
2263
|
+
} else if (s && i !== s) for (var u in s) {
|
|
2264
|
+
var v = !!s[u];
|
|
2265
|
+
(i == null || v !== !!i[u]) && e.classList.toggle(u, v);
|
|
2266
|
+
}
|
|
2267
|
+
return s;
|
|
2268
|
+
}
|
|
2269
|
+
function Gr(e, t = {}, r, n) {
|
|
2056
2270
|
for (var i in r) {
|
|
2057
2271
|
var s = r[i];
|
|
2058
2272
|
t[i] !== s && (r[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, s, n));
|
|
2059
2273
|
}
|
|
2060
2274
|
}
|
|
2061
|
-
function
|
|
2062
|
-
var i = e[
|
|
2063
|
-
if (
|
|
2064
|
-
var s =
|
|
2065
|
-
(!
|
|
2066
|
-
} else n && (Array.isArray(n) ? (
|
|
2275
|
+
function Ro(e, t, r, n) {
|
|
2276
|
+
var i = e[Qr];
|
|
2277
|
+
if (R || i !== t) {
|
|
2278
|
+
var s = Mo(t, n);
|
|
2279
|
+
(!R || s !== e.getAttribute("style")) && (s == null ? e.removeAttribute("style") : e.style.cssText = s), e[Qr] = t;
|
|
2280
|
+
} else n && (Array.isArray(n) ? (Gr(e, r?.[0], n[0]), Gr(e, r?.[1], n[1], "important")) : Gr(e, r, n));
|
|
2067
2281
|
return n;
|
|
2068
2282
|
}
|
|
2069
|
-
var
|
|
2070
|
-
function
|
|
2071
|
-
var i =
|
|
2072
|
-
if (
|
|
2283
|
+
var Po = /* @__PURE__ */ Symbol("is custom element"), Oo = /* @__PURE__ */ Symbol("is html"), Co = fa ? "link" : "LINK";
|
|
2284
|
+
function Y(e, t, r, n) {
|
|
2285
|
+
var i = No(e);
|
|
2286
|
+
if (R && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Co)) {
|
|
2073
2287
|
n || void 0;
|
|
2074
2288
|
return;
|
|
2075
2289
|
}
|
|
2076
|
-
i[t] !== (i[t] = r) && (t === "loading" && (e[
|
|
2290
|
+
i[t] !== (i[t] = r) && (t === "loading" && (e[oa] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Io(e).has(t) ? e[t] = r : e.setAttribute(t, r));
|
|
2077
2291
|
}
|
|
2078
|
-
function
|
|
2079
|
-
return e[
|
|
2080
|
-
[
|
|
2081
|
-
[
|
|
2292
|
+
function No(e) {
|
|
2293
|
+
return e[Zr] ?? (e[Zr] = {
|
|
2294
|
+
[Po]: e.nodeName.includes("-"),
|
|
2295
|
+
[Oo]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
2082
2296
|
});
|
|
2083
2297
|
}
|
|
2084
|
-
var
|
|
2085
|
-
function
|
|
2086
|
-
var t = e.getAttribute("is") || e.nodeName, r =
|
|
2298
|
+
var si = /* @__PURE__ */ new Map();
|
|
2299
|
+
function Io(e) {
|
|
2300
|
+
var t = e.getAttribute("is") || e.nodeName, r = si.get(t);
|
|
2087
2301
|
if (r) return r;
|
|
2088
|
-
|
|
2302
|
+
si.set(t, r = /* @__PURE__ */ new Set());
|
|
2089
2303
|
for (var n, i = e, s = Element.prototype; s !== i; ) {
|
|
2090
|
-
n =
|
|
2091
|
-
for (var
|
|
2092
|
-
i =
|
|
2304
|
+
n = Zs(i);
|
|
2305
|
+
for (var a in n) n[a].set && a !== "innerHTML" && a !== "textContent" && a !== "innerText" && r.add(a);
|
|
2306
|
+
i = ui(i);
|
|
2093
2307
|
}
|
|
2094
2308
|
return r;
|
|
2095
2309
|
}
|
|
2096
|
-
var
|
|
2310
|
+
var os, dt = /* @__PURE__ */ new WeakMap(), Or = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), ai = /* @__PURE__ */ new WeakSet(), ls = class {
|
|
2097
2311
|
constructor(e) {
|
|
2098
|
-
|
|
2312
|
+
yn(this, ai), S(this, dt, /* @__PURE__ */ new WeakMap()), S(this, Or, void 0), S(this, Vr, void 0), $(Vr, this, e);
|
|
2099
2313
|
}
|
|
2100
2314
|
observe(e, t) {
|
|
2101
|
-
var r =
|
|
2102
|
-
return r.add(t),
|
|
2103
|
-
var n =
|
|
2104
|
-
n.delete(t), n.size === 0 && (
|
|
2315
|
+
var r = o(dt, this).get(e) || /* @__PURE__ */ new Set();
|
|
2316
|
+
return r.add(t), o(dt, this).set(e, r), k(ai, this, Wo).call(this).observe(e, o(Vr, this)), () => {
|
|
2317
|
+
var n = o(dt, this).get(e);
|
|
2318
|
+
n.delete(t), n.size === 0 && (o(dt, this).delete(e), o(Or, this).unobserve(e));
|
|
2105
2319
|
};
|
|
2106
2320
|
}
|
|
2107
2321
|
};
|
|
2108
|
-
|
|
2109
|
-
function
|
|
2110
|
-
return
|
|
2322
|
+
os = ls;
|
|
2323
|
+
function Wo() {
|
|
2324
|
+
return o(Or, this) ?? $(Or, this, new ResizeObserver((e) => {
|
|
2111
2325
|
for (var t of e) {
|
|
2112
|
-
|
|
2113
|
-
for (var r of
|
|
2326
|
+
os.entries.set(t.target, t);
|
|
2327
|
+
for (var r of o(dt, this).get(t.target) || []) r(t);
|
|
2114
2328
|
}
|
|
2115
2329
|
}));
|
|
2116
2330
|
}
|
|
2117
|
-
|
|
2118
|
-
function
|
|
2119
|
-
return e === t || e?.[
|
|
2120
|
-
}
|
|
2121
|
-
function
|
|
2122
|
-
var i =
|
|
2123
|
-
return
|
|
2124
|
-
var
|
|
2125
|
-
return
|
|
2126
|
-
|
|
2127
|
-
|
|
2331
|
+
I(ls, "entries", /* @__PURE__ */ new WeakMap());
|
|
2332
|
+
function Kr(e, t) {
|
|
2333
|
+
return e === t || e?.[Dt] === t;
|
|
2334
|
+
}
|
|
2335
|
+
function fs(e = gn(), t, r, n) {
|
|
2336
|
+
var i = z.r, s = T;
|
|
2337
|
+
return Di(() => {
|
|
2338
|
+
var a, l;
|
|
2339
|
+
return Tn(() => {
|
|
2340
|
+
a = l, l = n?.() || [], bt(() => {
|
|
2341
|
+
Kr(r(...l), e) || (t(e, ...l), a && Kr(r(...a), e) && t(null, ...a));
|
|
2128
2342
|
});
|
|
2129
2343
|
}), () => {
|
|
2130
|
-
let
|
|
2131
|
-
for (;
|
|
2344
|
+
let u = s;
|
|
2345
|
+
for (; u !== i && u.parent !== null && u.parent.f & 33554432; ) u = u.parent;
|
|
2132
2346
|
const v = () => {
|
|
2133
|
-
l &&
|
|
2134
|
-
},
|
|
2135
|
-
|
|
2136
|
-
v(),
|
|
2347
|
+
l && Kr(r(...l), e) && t(null, ...l);
|
|
2348
|
+
}, _ = u.teardown;
|
|
2349
|
+
u.teardown = () => {
|
|
2350
|
+
v(), _?.();
|
|
2137
2351
|
};
|
|
2138
2352
|
};
|
|
2139
2353
|
}), e;
|
|
2140
2354
|
}
|
|
2141
|
-
var
|
|
2142
|
-
function
|
|
2143
|
-
var t =
|
|
2355
|
+
var vr = !1;
|
|
2356
|
+
function zo(e) {
|
|
2357
|
+
var t = vr;
|
|
2144
2358
|
try {
|
|
2145
|
-
return
|
|
2359
|
+
return vr = !1, [e(), vr];
|
|
2146
2360
|
} finally {
|
|
2147
|
-
|
|
2361
|
+
vr = t;
|
|
2148
2362
|
}
|
|
2149
2363
|
}
|
|
2150
|
-
function
|
|
2151
|
-
var i = !
|
|
2152
|
-
let
|
|
2364
|
+
function Ge(e, t, r, n) {
|
|
2365
|
+
var i = !Zt || (r & 2) !== 0, s = (r & 8) !== 0, a = (r & 16) !== 0, l = n, u = !0, v = void 0, _ = () => a && i ? (v ?? (v = /* @__PURE__ */ Yt(n)), d(v)) : (u && (u = !1, l = a ? bt(n) : n), l);
|
|
2366
|
+
let c;
|
|
2153
2367
|
if (s) {
|
|
2154
|
-
var
|
|
2155
|
-
|
|
2368
|
+
var h = Dt in e || vi in e;
|
|
2369
|
+
c = Ze(e, t)?.set ?? (h && t in e ? (x) => e[t] = x : void 0);
|
|
2156
2370
|
}
|
|
2157
2371
|
var f, g = !1;
|
|
2158
|
-
s ? [f, g] =
|
|
2159
|
-
var
|
|
2160
|
-
if (i ?
|
|
2161
|
-
var
|
|
2162
|
-
return
|
|
2163
|
-
} :
|
|
2164
|
-
var
|
|
2165
|
-
return
|
|
2166
|
-
}, i && (r & 4) === 0) return
|
|
2167
|
-
if (
|
|
2168
|
-
var
|
|
2169
|
-
return (function(
|
|
2170
|
-
return arguments.length > 0 ? ((!i || !
|
|
2372
|
+
s ? [f, g] = zo(() => e[t]) : f = e[t], f === void 0 && n !== void 0 && (f = _(), c && (i && ka(t), c(f)));
|
|
2373
|
+
var b;
|
|
2374
|
+
if (i ? b = () => {
|
|
2375
|
+
var x = e[t];
|
|
2376
|
+
return x === void 0 ? _() : (u = !0, x);
|
|
2377
|
+
} : b = () => {
|
|
2378
|
+
var x = e[t];
|
|
2379
|
+
return x !== void 0 && (l = void 0), x === void 0 ? l : x;
|
|
2380
|
+
}, i && (r & 4) === 0) return b;
|
|
2381
|
+
if (c) {
|
|
2382
|
+
var p = e.$$legacy;
|
|
2383
|
+
return (function(x, H) {
|
|
2384
|
+
return arguments.length > 0 ? ((!i || !H || p || g) && c(H ? b() : x), x) : b();
|
|
2171
2385
|
});
|
|
2172
2386
|
}
|
|
2173
|
-
var
|
|
2174
|
-
s &&
|
|
2175
|
-
var
|
|
2176
|
-
return (function(
|
|
2387
|
+
var m = !1, y = ((r & 1) !== 0 ? Yt : bn)(() => (m = !1, b()));
|
|
2388
|
+
s && d(y);
|
|
2389
|
+
var O = T;
|
|
2390
|
+
return (function(x, H) {
|
|
2177
2391
|
if (arguments.length > 0) {
|
|
2178
|
-
const
|
|
2179
|
-
return
|
|
2392
|
+
const D = H ? d(y) : i && s ? Ie(x) : x;
|
|
2393
|
+
return C(y, D), m = !0, l !== void 0 && (l = D), x;
|
|
2180
2394
|
}
|
|
2181
|
-
return
|
|
2395
|
+
return Me && m || (O.f & 16384) !== 0 ? y.v : d(y);
|
|
2182
2396
|
});
|
|
2183
2397
|
}
|
|
2184
|
-
function
|
|
2185
|
-
return new
|
|
2398
|
+
function Lo(e) {
|
|
2399
|
+
return new Ho(e);
|
|
2186
2400
|
}
|
|
2187
|
-
var
|
|
2401
|
+
var Fe = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), Ho = class {
|
|
2188
2402
|
constructor(e) {
|
|
2189
|
-
|
|
2403
|
+
S(this, Fe, void 0), S(this, pe, void 0);
|
|
2190
2404
|
var t = /* @__PURE__ */ new Map(), r = (i, s) => {
|
|
2191
|
-
var
|
|
2192
|
-
return t.set(i,
|
|
2405
|
+
var a = /* @__PURE__ */ Oi(s, !1, !1);
|
|
2406
|
+
return t.set(i, a), a;
|
|
2193
2407
|
};
|
|
2194
2408
|
const n = new Proxy({
|
|
2195
2409
|
...e.props || {},
|
|
2196
2410
|
$$events: {}
|
|
2197
2411
|
}, {
|
|
2198
2412
|
get(i, s) {
|
|
2199
|
-
return
|
|
2413
|
+
return d(t.get(s) ?? r(s, Reflect.get(i, s)));
|
|
2200
2414
|
},
|
|
2201
2415
|
has(i, s) {
|
|
2202
|
-
return s ===
|
|
2416
|
+
return s === vi ? !0 : (d(t.get(s) ?? r(s, Reflect.get(i, s))), Reflect.has(i, s));
|
|
2203
2417
|
},
|
|
2204
|
-
set(i, s,
|
|
2205
|
-
return
|
|
2418
|
+
set(i, s, a) {
|
|
2419
|
+
return C(t.get(s) ?? r(s, a), a), Reflect.set(i, s, a);
|
|
2206
2420
|
}
|
|
2207
2421
|
});
|
|
2208
|
-
|
|
2422
|
+
$(pe, this, (e.hydrate ? bo : ns)(e.component, {
|
|
2209
2423
|
target: e.target,
|
|
2210
2424
|
anchor: e.anchor,
|
|
2211
2425
|
props: n,
|
|
@@ -2213,40 +2427,40 @@ var Oe = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), oo =
|
|
|
2213
2427
|
intro: e.intro ?? !1,
|
|
2214
2428
|
recover: e.recover,
|
|
2215
2429
|
transformError: e.transformError
|
|
2216
|
-
})), !
|
|
2217
|
-
for (const i of Object.keys(
|
|
2218
|
-
i === "$set" || i === "$destroy" || i === "$on" ||
|
|
2430
|
+
})), !De && (!e?.props?.$$host || e.sync === !1) && Se(), $(Fe, this, n.$$events);
|
|
2431
|
+
for (const i of Object.keys(o(pe, this)))
|
|
2432
|
+
i === "$set" || i === "$destroy" || i === "$on" || qt(this, i, {
|
|
2219
2433
|
get() {
|
|
2220
|
-
return
|
|
2434
|
+
return o(pe, this)[i];
|
|
2221
2435
|
},
|
|
2222
2436
|
set(s) {
|
|
2223
|
-
|
|
2437
|
+
o(pe, this)[i] = s;
|
|
2224
2438
|
},
|
|
2225
2439
|
enumerable: !0
|
|
2226
2440
|
});
|
|
2227
|
-
|
|
2441
|
+
o(pe, this).$set = (i) => {
|
|
2228
2442
|
Object.assign(n, i);
|
|
2229
|
-
},
|
|
2230
|
-
|
|
2443
|
+
}, o(pe, this).$destroy = () => {
|
|
2444
|
+
mo(o(pe, this));
|
|
2231
2445
|
};
|
|
2232
2446
|
}
|
|
2233
2447
|
$set(e) {
|
|
2234
|
-
|
|
2448
|
+
o(pe, this).$set(e);
|
|
2235
2449
|
}
|
|
2236
2450
|
$on(e, t) {
|
|
2237
|
-
|
|
2451
|
+
o(Fe, this)[e] = o(Fe, this)[e] || [];
|
|
2238
2452
|
const r = (...n) => t.call(this, ...n);
|
|
2239
|
-
return
|
|
2240
|
-
|
|
2453
|
+
return o(Fe, this)[e].push(r), () => {
|
|
2454
|
+
o(Fe, this)[e] = o(Fe, this)[e].filter((n) => n !== r);
|
|
2241
2455
|
};
|
|
2242
2456
|
}
|
|
2243
2457
|
$destroy() {
|
|
2244
|
-
|
|
2458
|
+
o(pe, this).$destroy();
|
|
2245
2459
|
}
|
|
2246
|
-
},
|
|
2247
|
-
typeof HTMLElement == "function" && (
|
|
2460
|
+
}, us;
|
|
2461
|
+
typeof HTMLElement == "function" && (us = class extends HTMLElement {
|
|
2248
2462
|
constructor(e, t, r) {
|
|
2249
|
-
super(),
|
|
2463
|
+
super(), I(this, "$$ctor", void 0), I(this, "$$s", void 0), I(this, "$$c", void 0), I(this, "$$cn", !1), I(this, "$$d", {}), I(this, "$$r", !1), I(this, "$$p_d", {}), I(this, "$$l", {}), I(this, "$$l_u", /* @__PURE__ */ new Map()), I(this, "$$me", void 0), I(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2250
2464
|
}
|
|
2251
2465
|
addEventListener(e, t, r) {
|
|
2252
2466
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
@@ -2265,19 +2479,19 @@ typeof HTMLElement == "function" && (Ci = class extends HTMLElement {
|
|
|
2265
2479
|
if (this.$$cn = !0, !this.$$c) {
|
|
2266
2480
|
let e = function(n) {
|
|
2267
2481
|
return (i) => {
|
|
2268
|
-
const s =
|
|
2269
|
-
n !== "default" && (s.name = n),
|
|
2482
|
+
const s = xn("slot");
|
|
2483
|
+
n !== "default" && (s.name = n), Ne(i, s);
|
|
2270
2484
|
};
|
|
2271
2485
|
};
|
|
2272
2486
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2273
|
-
const t = {}, r =
|
|
2487
|
+
const t = {}, r = Do(this);
|
|
2274
2488
|
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));
|
|
2275
2489
|
for (const n of this.attributes) {
|
|
2276
2490
|
const i = this.$$g_p(n.name);
|
|
2277
|
-
i in this.$$d || (this.$$d[i] =
|
|
2491
|
+
i in this.$$d || (this.$$d[i] = gr(i, n.value, this.$$p_d, "toProp"));
|
|
2278
2492
|
}
|
|
2279
2493
|
for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2280
|
-
this.$$c =
|
|
2494
|
+
this.$$c = Lo({
|
|
2281
2495
|
component: this.$$ctor,
|
|
2282
2496
|
target: this.$$shadowRoot || this,
|
|
2283
2497
|
props: {
|
|
@@ -2285,13 +2499,13 @@ typeof HTMLElement == "function" && (Ci = class extends HTMLElement {
|
|
|
2285
2499
|
$$slots: t,
|
|
2286
2500
|
$$host: this
|
|
2287
2501
|
}
|
|
2288
|
-
}), this.$$me =
|
|
2289
|
-
|
|
2502
|
+
}), this.$$me = Ka(() => {
|
|
2503
|
+
Tn(() => {
|
|
2290
2504
|
this.$$r = !0;
|
|
2291
|
-
for (const n of
|
|
2505
|
+
for (const n of wr(this.$$c)) {
|
|
2292
2506
|
if (!this.$$p_d[n]?.reflect) continue;
|
|
2293
2507
|
this.$$d[n] = this.$$c[n];
|
|
2294
|
-
const i =
|
|
2508
|
+
const i = gr(n, this.$$d[n], this.$$p_d, "toAttribute");
|
|
2295
2509
|
i == null ? this.removeAttribute(this.$$p_d[n].attribute || n) : this.setAttribute(this.$$p_d[n].attribute || n, i);
|
|
2296
2510
|
}
|
|
2297
2511
|
this.$$r = !1;
|
|
@@ -2305,7 +2519,7 @@ typeof HTMLElement == "function" && (Ci = class extends HTMLElement {
|
|
|
2305
2519
|
}
|
|
2306
2520
|
}
|
|
2307
2521
|
attributeChangedCallback(e, t, r) {
|
|
2308
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
2522
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = gr(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2309
2523
|
}
|
|
2310
2524
|
disconnectedCallback() {
|
|
2311
2525
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2313,10 +2527,10 @@ typeof HTMLElement == "function" && (Ci = class extends HTMLElement {
|
|
|
2313
2527
|
});
|
|
2314
2528
|
}
|
|
2315
2529
|
$$g_p(e) {
|
|
2316
|
-
return
|
|
2530
|
+
return wr(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
2317
2531
|
}
|
|
2318
2532
|
});
|
|
2319
|
-
function
|
|
2533
|
+
function gr(e, t, r, n) {
|
|
2320
2534
|
const i = r[e]?.type;
|
|
2321
2535
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e]) return t;
|
|
2322
2536
|
if (n === "toAttribute") switch (i) {
|
|
@@ -2342,45 +2556,133 @@ function qt(e, t, r, n) {
|
|
|
2342
2556
|
return t;
|
|
2343
2557
|
}
|
|
2344
2558
|
}
|
|
2345
|
-
function
|
|
2559
|
+
function Do(e) {
|
|
2346
2560
|
const t = {};
|
|
2347
2561
|
return e.childNodes.forEach((r) => {
|
|
2348
2562
|
t[r.slot || "default"] = !0;
|
|
2349
2563
|
}), t;
|
|
2350
2564
|
}
|
|
2351
|
-
function
|
|
2352
|
-
let
|
|
2565
|
+
function cs(e, t, r, n, i, s) {
|
|
2566
|
+
let a = class extends us {
|
|
2353
2567
|
constructor() {
|
|
2354
2568
|
super(e, r, i), this.$$p_d = t;
|
|
2355
2569
|
}
|
|
2356
2570
|
static get observedAttributes() {
|
|
2357
|
-
return
|
|
2571
|
+
return wr(t).map((l) => (t[l].attribute || l).toLowerCase());
|
|
2358
2572
|
}
|
|
2359
2573
|
};
|
|
2360
|
-
return
|
|
2361
|
-
|
|
2574
|
+
return wr(t).forEach((l) => {
|
|
2575
|
+
qt(a.prototype, l, {
|
|
2362
2576
|
get() {
|
|
2363
2577
|
return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
|
|
2364
2578
|
},
|
|
2365
|
-
set(
|
|
2366
|
-
|
|
2579
|
+
set(u) {
|
|
2580
|
+
u = gr(l, u, t), this.$$d[l] = u;
|
|
2367
2581
|
var v = this.$$c;
|
|
2368
|
-
v && (
|
|
2582
|
+
v && (Ze(v, l)?.get ? v[l] = u : v.$set({ [l]: u }));
|
|
2369
2583
|
}
|
|
2370
2584
|
});
|
|
2371
2585
|
}), n.forEach((l) => {
|
|
2372
|
-
|
|
2586
|
+
qt(a.prototype, l, { get() {
|
|
2373
2587
|
return this.$$c?.[l];
|
|
2374
2588
|
} });
|
|
2375
|
-
}), s && (
|
|
2376
|
-
}
|
|
2377
|
-
var
|
|
2589
|
+
}), s && (a = s(a)), e.element = a, a;
|
|
2590
|
+
}
|
|
2591
|
+
var oi = /* @__PURE__ */ er('<button type="button"><span aria-hidden="true"> </span></button>'), jo = /* @__PURE__ */ er('<span class="pie-tool-placement__controls-divider svelte-nt6qeh" aria-hidden="true"></span> <!>', 1), Fo = /* @__PURE__ */ er('<span class="pie-tool-placement__controls-divider svelte-nt6qeh" aria-hidden="true"></span> <button type="button"><span aria-hidden="true"> </span></button> <button type="button"><span aria-hidden="true"> </span></button>', 1), Bo = /* @__PURE__ */ er('<div role="group"><!> <!> <!></div>'), qo = {
|
|
2592
|
+
hash: "svelte-nt6qeh",
|
|
2593
|
+
code: `.pie-tool-placement__controls.svelte-nt6qeh {align-items:center;background:var(--pie-background, #fff);border:1px solid var(--pie-border-light, #cbd5e0);border-radius:8px;box-shadow:0 2px 6px color-mix(in srgb, var(--pie-black, #000) 15%, transparent);
|
|
2594
|
+
/* So the docking's max-width bounds the whole strip. */box-sizing:border-box;cursor:default;
|
|
2595
|
+
/* Arrows and turn glyphs are physical directions, whatever the script. */direction:ltr;display:flex;
|
|
2596
|
+
/* Rows only where an upright tool's docking caps the width. */flex-wrap:wrap;gap:4px;left:0;padding:4px;position:absolute;top:0;visibility:hidden;white-space:nowrap;
|
|
2597
|
+
/* Its own width, where a narrow tool would otherwise squeeze it. */width:max-content;}
|
|
2598
|
+
|
|
2599
|
+
/* The tool is the controls' parent. */:focus-within > .pie-tool-placement__controls.svelte-nt6qeh {visibility:visible;}.pie-tool-placement__control.svelte-nt6qeh {align-items:center;background:var(--pie-button-bg, var(--pie-background, #fff));border:1px solid var(--pie-button-border, var(--pie-border, #94a3b8));border-radius:6px;color:var(--pie-button-color, var(--pie-text, #111827));cursor:pointer;display:inline-flex;font:inherit;font-size:14px;justify-content:center;min-height:32px;min-width:32px;padding:0 6px;}.pie-tool-placement__control.svelte-nt6qeh:hover {background:var(--pie-button-hover-bg, var(--pie-background-dark, #f3f5f7));}.pie-tool-placement__control.svelte-nt6qeh:focus-visible {outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #4a90e2));outline-offset:1px;}.pie-tool-placement__controls-divider.svelte-nt6qeh {align-self:stretch;background:var(--pie-border-light, #cbd5e0);margin:0 2px;width:1px;}`
|
|
2600
|
+
};
|
|
2601
|
+
function ds(e, t) {
|
|
2602
|
+
pn(t, !0), as(e, qo);
|
|
2603
|
+
let r = Ge(t, "controller", 7), n = Ge(t, "i18n", 7), i = Ge(t, "classPrefix", 7), s = Ge(t, "sizes", 23, () => []), a = Ge(t, "element", 15);
|
|
2604
|
+
var l = {
|
|
2605
|
+
get controller() {
|
|
2606
|
+
return r();
|
|
2607
|
+
},
|
|
2608
|
+
set controller(f) {
|
|
2609
|
+
r(f), Se();
|
|
2610
|
+
},
|
|
2611
|
+
get i18n() {
|
|
2612
|
+
return n();
|
|
2613
|
+
},
|
|
2614
|
+
set i18n(f) {
|
|
2615
|
+
n(f), Se();
|
|
2616
|
+
},
|
|
2617
|
+
get classPrefix() {
|
|
2618
|
+
return i();
|
|
2619
|
+
},
|
|
2620
|
+
set classPrefix(f) {
|
|
2621
|
+
i(f), Se();
|
|
2622
|
+
},
|
|
2623
|
+
get sizes() {
|
|
2624
|
+
return s();
|
|
2625
|
+
},
|
|
2626
|
+
set sizes(f = []) {
|
|
2627
|
+
s(f), Se();
|
|
2628
|
+
},
|
|
2629
|
+
get element() {
|
|
2630
|
+
return a();
|
|
2631
|
+
},
|
|
2632
|
+
set element(f) {
|
|
2633
|
+
a(f), Se();
|
|
2634
|
+
}
|
|
2635
|
+
}, u = Bo(), v = Ye(u);
|
|
2636
|
+
Ur(v, 17, () => Object.entries(li), ([f, g]) => f, (f, g) => {
|
|
2637
|
+
var b = /* @__PURE__ */ Pt(() => ra(d(g), 2));
|
|
2638
|
+
let p = () => d(b)[0], m = () => d(b)[1];
|
|
2639
|
+
var y = oi(), O = Ye(y), x = It(O, !0);
|
|
2640
|
+
qe(y), Wt((H) => {
|
|
2641
|
+
Mt(y, 1, `pie-tool-placement__control ${i() ?? ""}__control`, "svelte-nt6qeh"), Y(y, "aria-label", H), zt(x, m().glyph);
|
|
2642
|
+
}, [() => n().t(m().labelKey)]), we("click", y, () => r().nudge(p())), Ne(f, y);
|
|
2643
|
+
});
|
|
2644
|
+
var _ = ge(v, 2), c = (f) => {
|
|
2645
|
+
var g = jo(), b = ge(Mr(g), 2);
|
|
2646
|
+
Ur(b, 16, () => Fs, (p) => p, (p, m) => {
|
|
2647
|
+
var y = oi(), O = Ye(y), x = It(O);
|
|
2648
|
+
qe(y), Wt((H, D) => {
|
|
2649
|
+
Mt(y, 1, `pie-tool-placement__control ${i() ?? ""}__control`, "svelte-nt6qeh"), Y(y, "aria-label", H), zt(x, `${m > 0 ? "↻" : "↺"}${D ?? ""}°`);
|
|
2650
|
+
}, [() => n().t(m > 0 ? "toolkit.placement.rotateClockwiseA11y" : "toolkit.placement.rotateCounterclockwiseA11y", { degrees: Math.abs(m) }), () => Math.abs(m)]), we("click", y, () => r().rotateBy?.(m)), Ne(p, y);
|
|
2651
|
+
}), Ne(f, g);
|
|
2652
|
+
};
|
|
2653
|
+
ss(_, (f) => {
|
|
2654
|
+
r().rotateBy && f(c);
|
|
2655
|
+
});
|
|
2656
|
+
var h = ge(_, 2);
|
|
2657
|
+
return Ur(h, 17, s, xo, (f, g) => {
|
|
2658
|
+
var b = Fo(), p = ge(Mr(b), 2), m = Ye(p), y = It(m, !0);
|
|
2659
|
+
qe(p);
|
|
2660
|
+
var O = ge(p, 2), x = Ye(O), H = It(x, !0);
|
|
2661
|
+
qe(O), Wt(() => {
|
|
2662
|
+
Mt(p, 1, `pie-tool-placement__control ${i() ?? ""}__control`, "svelte-nt6qeh"), Y(p, "aria-label", d(g).shrink.label), zt(y, d(g).shrink.glyph), Mt(O, 1, `pie-tool-placement__control ${i() ?? ""}__control`, "svelte-nt6qeh"), Y(O, "aria-label", d(g).grow.label), zt(H, d(g).grow.glyph);
|
|
2663
|
+
}), we("click", p, () => d(g).step(-1)), we("click", O, () => d(g).step(1)), Ne(f, b);
|
|
2664
|
+
}), qe(u), fs(u, (f) => a(f), () => a()), Wt((f) => {
|
|
2665
|
+
Mt(u, 1, `pie-tool-placement__controls ${i() ?? ""}__controls`, "svelte-nt6qeh"), Y(u, "aria-label", f);
|
|
2666
|
+
}, [() => n().t(r().rotateBy ? "toolkit.placement.controlsA11y" : "toolkit.placement.moveAndResizeA11y")]), we("pointerdown", u, (f) => {
|
|
2667
|
+
f.stopPropagation(), f.preventDefault();
|
|
2668
|
+
}), Ne(e, u), _n(l);
|
|
2669
|
+
}
|
|
2670
|
+
Qi(["pointerdown", "click"]);
|
|
2671
|
+
cs(ds, {
|
|
2672
|
+
controller: {},
|
|
2673
|
+
i18n: {},
|
|
2674
|
+
classPrefix: {},
|
|
2675
|
+
sizes: {},
|
|
2676
|
+
element: {}
|
|
2677
|
+
}, [], [], { mode: "open" });
|
|
2678
|
+
var Uo = /* @__PURE__ */ er('<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), Yo = {
|
|
2378
2679
|
hash: "svelte-a1a4bp",
|
|
2379
2680
|
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;
|
|
2380
2681
|
/*
|
|
2381
2682
|
* Ink-derived rather than fixed black: on a dark scheme this reads as a soft
|
|
2382
2683
|
* halo separating the window from the page instead of vanishing into it.
|
|
2383
|
-
*/box-shadow:0px 2px 4px 0px color-mix(in srgb, var(--pie-text, #000) 8%, transparent);cursor:move;overflow:visible;position:absolute;transform:translate(-50%, -50%);user-select:none;pointer-events:auto;touch-action:none;}.pie-tool-line-reader.svelte-a1a4bp:focus-visible {outline:3px solid var(--pie-button-focus-outline, var(--pie-primary, #4A90E2));
|
|
2684
|
+
*/box-shadow:0px 2px 4px 0px color-mix(in srgb, var(--pie-text, #000) 8%, transparent);cursor:move;overflow:visible;position:absolute;transform:translate(-50%, -50%);user-select:none;pointer-events:auto;touch-action:none;}.pie-tool-line-reader.svelte-a1a4bp:focus-visible {outline:3px solid var(--pie-button-focus-outline, var(--pie-primary, #4A90E2));
|
|
2685
|
+
/* Inside the containment gutter, so the block never clips the ring. */outline-offset:1px;}
|
|
2384
2686
|
|
|
2385
2687
|
/*
|
|
2386
2688
|
* Window frame: largely obscures the page content it covers. The fill stays a
|
|
@@ -2438,276 +2740,344 @@ var uo = /* @__PURE__ */ Aa('<div class="pie-sr-only svelte-a1a4bp" role="status
|
|
|
2438
2740
|
|
|
2439
2741
|
/* 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;}`
|
|
2440
2742
|
};
|
|
2441
|
-
function
|
|
2442
|
-
|
|
2443
|
-
let r =
|
|
2743
|
+
function Go(e, t) {
|
|
2744
|
+
pn(t, !0), as(e, Yo);
|
|
2745
|
+
let r = Ge(t, "visible", 7, !1), n = Ge(t, "toolId", 7, "lineReader");
|
|
2444
2746
|
const i = typeof window < "u";
|
|
2445
|
-
let s = /* @__PURE__ */
|
|
2446
|
-
const l =
|
|
2447
|
-
let
|
|
2747
|
+
let s = /* @__PURE__ */ B(void 0), a = /* @__PURE__ */ B(void 0);
|
|
2748
|
+
const l = qs();
|
|
2749
|
+
let u = /* @__PURE__ */ B(null);
|
|
2750
|
+
const v = /* @__PURE__ */ Pt(() => d(u)?.toolCoordinator);
|
|
2751
|
+
let _ = /* @__PURE__ */ B(null), c = /* @__PURE__ */ B(Ie({
|
|
2448
2752
|
x: 0,
|
|
2449
2753
|
y: 0
|
|
2450
|
-
})),
|
|
2451
|
-
const
|
|
2452
|
-
getPosition: () =>
|
|
2453
|
-
setPosition: (
|
|
2454
|
-
|
|
2754
|
+
})), h = !1;
|
|
2755
|
+
const f = Us({
|
|
2756
|
+
getPosition: () => d(c),
|
|
2757
|
+
setPosition: (w) => {
|
|
2758
|
+
C(c, sr(w), !0);
|
|
2455
2759
|
},
|
|
2456
|
-
onDragStart: (
|
|
2760
|
+
onDragStart: (w) => d(v)?.bringToFront(w)
|
|
2457
2761
|
});
|
|
2458
|
-
let
|
|
2762
|
+
let g = /* @__PURE__ */ B(600), b = /* @__PURE__ */ B(24), p = /* @__PURE__ */ B(48), m = /* @__PURE__ */ B(Ie({
|
|
2459
2763
|
paneHeight: 0,
|
|
2460
2764
|
frameBandHeight: 0,
|
|
2461
2765
|
width: 0,
|
|
2462
2766
|
mouseX: 0,
|
|
2463
2767
|
mouseY: 0
|
|
2464
2768
|
}));
|
|
2465
|
-
const
|
|
2466
|
-
let
|
|
2467
|
-
const
|
|
2468
|
-
|
|
2469
|
-
if (
|
|
2470
|
-
return
|
|
2471
|
-
|
|
2769
|
+
const y = /* @__PURE__ */ Pt(() => Ks(d(u)));
|
|
2770
|
+
let O = /* @__PURE__ */ B("");
|
|
2771
|
+
const x = Ds("Line Reader", Ls.TOOL), H = 12, D = 200, te = 32, ve = 240, yt = 200, j = 2e3, tr = js, rr = 10, kt = 10, On = 20, zr = /* @__PURE__ */ Pt(() => d(b) + d(p) * 2);
|
|
2772
|
+
Oe(() => {
|
|
2773
|
+
if (d(s))
|
|
2774
|
+
return Hs(d(s), (w) => {
|
|
2775
|
+
C(u, w, !0);
|
|
2472
2776
|
});
|
|
2473
2777
|
});
|
|
2474
|
-
let
|
|
2475
|
-
function
|
|
2476
|
-
|
|
2477
|
-
|
|
2778
|
+
let ot = null;
|
|
2779
|
+
function nr(w) {
|
|
2780
|
+
ot !== null && clearTimeout(ot), C(O, w, !0), ot = setTimeout(() => {
|
|
2781
|
+
C(O, ""), ot = null;
|
|
2478
2782
|
}, 1e3);
|
|
2479
2783
|
}
|
|
2480
|
-
function
|
|
2481
|
-
return Math.max(
|
|
2784
|
+
function Cn(w) {
|
|
2785
|
+
return Math.max(H, Math.min(D, w));
|
|
2482
2786
|
}
|
|
2483
|
-
function
|
|
2484
|
-
return Math.max(
|
|
2787
|
+
function Nn(w) {
|
|
2788
|
+
return Math.max(te, Math.min(ve, w));
|
|
2485
2789
|
}
|
|
2486
|
-
function
|
|
2487
|
-
const
|
|
2488
|
-
return Math.max(
|
|
2790
|
+
function ir(w) {
|
|
2791
|
+
const E = Wn()?.width, q = E === void 0 ? j : Math.min(j, E - tr * 2);
|
|
2792
|
+
return Math.max(yt, Math.min(Math.max(yt, q), w));
|
|
2489
2793
|
}
|
|
2490
|
-
function
|
|
2491
|
-
return
|
|
2794
|
+
function In() {
|
|
2795
|
+
return Vs(d(s));
|
|
2492
2796
|
}
|
|
2493
|
-
function
|
|
2494
|
-
const
|
|
2495
|
-
return
|
|
2496
|
-
width:
|
|
2497
|
-
height:
|
|
2797
|
+
function Wn() {
|
|
2798
|
+
const w = In();
|
|
2799
|
+
return w && {
|
|
2800
|
+
width: w.width,
|
|
2801
|
+
height: w.height
|
|
2498
2802
|
};
|
|
2499
2803
|
}
|
|
2500
|
-
function
|
|
2501
|
-
const
|
|
2502
|
-
if (!
|
|
2503
|
-
const
|
|
2504
|
-
return
|
|
2505
|
-
x:
|
|
2506
|
-
y:
|
|
2804
|
+
function hs() {
|
|
2805
|
+
const w = In();
|
|
2806
|
+
if (!w) return;
|
|
2807
|
+
const E = Math.max(w.left, 0), q = Math.max(w.top, 0), lt = Math.min(w.right, window.innerWidth), U = Math.min(w.bottom, window.innerHeight);
|
|
2808
|
+
return lt <= E || U <= q ? {
|
|
2809
|
+
x: w.width / 2,
|
|
2810
|
+
y: w.height / 2
|
|
2507
2811
|
} : {
|
|
2508
|
-
x: (
|
|
2509
|
-
y: (q +
|
|
2812
|
+
x: (E + lt) / 2 - w.left,
|
|
2813
|
+
y: (q + U) / 2 - w.top
|
|
2510
2814
|
};
|
|
2511
2815
|
}
|
|
2512
|
-
function
|
|
2513
|
-
const
|
|
2514
|
-
return
|
|
2515
|
-
width:
|
|
2516
|
-
height:
|
|
2517
|
-
},
|
|
2518
|
-
}
|
|
2519
|
-
function
|
|
2520
|
-
|
|
2521
|
-
}
|
|
2522
|
-
function
|
|
2523
|
-
|
|
2524
|
-
}
|
|
2525
|
-
function
|
|
2526
|
-
|
|
2527
|
-
}
|
|
2528
|
-
function
|
|
2529
|
-
|
|
2816
|
+
function sr(w) {
|
|
2817
|
+
const E = Wn();
|
|
2818
|
+
return E ? Bs(w, {
|
|
2819
|
+
width: d(g),
|
|
2820
|
+
height: d(zr)
|
|
2821
|
+
}, E, tr) : w;
|
|
2822
|
+
}
|
|
2823
|
+
function $t() {
|
|
2824
|
+
C(c, sr(d(c)), !0);
|
|
2825
|
+
}
|
|
2826
|
+
function xt(w) {
|
|
2827
|
+
C(b, Cn(d(b) + w), !0), $t(), nr(d(y).t("tools.lineReader.windowHeightAnnounce", { pixels: d(b) }));
|
|
2828
|
+
}
|
|
2829
|
+
function Lr(w) {
|
|
2830
|
+
C(p, Nn(d(p) + w), !0), $t(), nr(d(y).t("tools.lineReader.frameHeightAnnounce", { pixels: d(p) }));
|
|
2831
|
+
}
|
|
2832
|
+
function Hr(w) {
|
|
2833
|
+
C(g, ir(d(g) + w), !0), $t(), nr(d(y).t("tools.lineReader.widthAnnounce", { pixels: d(g) }));
|
|
2834
|
+
}
|
|
2835
|
+
function Et(w) {
|
|
2836
|
+
const { dx: E, dy: q, announceKey: lt } = li[w];
|
|
2837
|
+
C(c, sr({
|
|
2838
|
+
x: d(c).x + E * rr,
|
|
2839
|
+
y: d(c).y + q * rr
|
|
2840
|
+
}), !0), nr(d(y).t(lt, { position: Math.round(E === 0 ? d(c).y : d(c).x) }));
|
|
2841
|
+
}
|
|
2842
|
+
const vs = { nudge: Et }, ps = /* @__PURE__ */ Pt(() => [
|
|
2843
|
+
{
|
|
2844
|
+
shrink: {
|
|
2845
|
+
glyph: "−",
|
|
2846
|
+
label: d(y).t("tools.lineReader.shorterWindowA11y")
|
|
2847
|
+
},
|
|
2848
|
+
grow: {
|
|
2849
|
+
glyph: "+",
|
|
2850
|
+
label: d(y).t("tools.lineReader.tallerWindowA11y")
|
|
2851
|
+
},
|
|
2852
|
+
step: (w) => xt(w * kt)
|
|
2853
|
+
},
|
|
2854
|
+
{
|
|
2855
|
+
shrink: {
|
|
2856
|
+
glyph: "↕−",
|
|
2857
|
+
label: d(y).t("tools.lineReader.shorterFrameA11y")
|
|
2858
|
+
},
|
|
2859
|
+
grow: {
|
|
2860
|
+
glyph: "↕+",
|
|
2861
|
+
label: d(y).t("tools.lineReader.tallerFrameA11y")
|
|
2862
|
+
},
|
|
2863
|
+
step: (w) => Lr(w * kt)
|
|
2864
|
+
},
|
|
2865
|
+
{
|
|
2866
|
+
shrink: {
|
|
2867
|
+
glyph: "↔−",
|
|
2868
|
+
label: d(y).t("tools.lineReader.narrowerA11y")
|
|
2869
|
+
},
|
|
2870
|
+
grow: {
|
|
2871
|
+
glyph: "↔+",
|
|
2872
|
+
label: d(y).t("tools.lineReader.widerA11y")
|
|
2873
|
+
},
|
|
2874
|
+
step: (w) => Hr(w * On)
|
|
2875
|
+
}
|
|
2876
|
+
]);
|
|
2877
|
+
function zn() {
|
|
2878
|
+
d(s) && d(a) && Gs(d(s), d(a));
|
|
2530
2879
|
}
|
|
2531
|
-
function
|
|
2532
|
-
|
|
2880
|
+
function Ln() {
|
|
2881
|
+
d(v) && n() && (l.restore(), d(v).hideTool(n()));
|
|
2533
2882
|
}
|
|
2534
|
-
function
|
|
2535
|
-
const
|
|
2883
|
+
function _s(w) {
|
|
2884
|
+
const E = w.target, q = E.closest(".pie-tool-line-reader__resize-handle");
|
|
2536
2885
|
if (q) {
|
|
2537
|
-
|
|
2886
|
+
ws(w, q.classList.contains("pie-tool-line-reader__resize-handle--frame") ? "frame" : "pane", q);
|
|
2538
2887
|
return;
|
|
2539
2888
|
}
|
|
2540
|
-
|
|
2889
|
+
E.closest("button") || gs(w);
|
|
2541
2890
|
}
|
|
2542
|
-
const
|
|
2543
|
-
onMove:
|
|
2891
|
+
const ar = Ys({
|
|
2892
|
+
onMove: bs,
|
|
2544
2893
|
onEnd: () => {
|
|
2545
|
-
|
|
2894
|
+
f.endDragging(), C(_, null);
|
|
2546
2895
|
}
|
|
2547
2896
|
});
|
|
2548
|
-
function
|
|
2549
|
-
!
|
|
2550
|
-
}
|
|
2551
|
-
function
|
|
2552
|
-
|
|
2553
|
-
paneHeight:
|
|
2554
|
-
frameBandHeight:
|
|
2555
|
-
width:
|
|
2556
|
-
mouseX:
|
|
2557
|
-
mouseY:
|
|
2558
|
-
}, !0),
|
|
2559
|
-
}
|
|
2560
|
-
function
|
|
2561
|
-
if (
|
|
2562
|
-
|
|
2897
|
+
function gs(w) {
|
|
2898
|
+
!d(s) || !ar.begin(w, d(s)) || (d(s).focus({ preventScroll: !0 }), f.startDragging(w, d(s)));
|
|
2899
|
+
}
|
|
2900
|
+
function ws(w, E, q) {
|
|
2901
|
+
w.stopPropagation(), !(!d(s) || !ar.begin(w, d(s))) && (d(s).setPointerCapture(w.pointerId), q.focus({ preventScroll: !0 }), C(_, E, !0), C(m, {
|
|
2902
|
+
paneHeight: d(b),
|
|
2903
|
+
frameBandHeight: d(p),
|
|
2904
|
+
width: d(g),
|
|
2905
|
+
mouseX: w.clientX,
|
|
2906
|
+
mouseY: w.clientY
|
|
2907
|
+
}, !0), d(v)?.bringToFront(d(s)));
|
|
2908
|
+
}
|
|
2909
|
+
function bs(w) {
|
|
2910
|
+
if (f.isDragging()) {
|
|
2911
|
+
f.handlePointerMove(w);
|
|
2563
2912
|
return;
|
|
2564
2913
|
}
|
|
2565
|
-
if (!
|
|
2566
|
-
const
|
|
2567
|
-
if (
|
|
2568
|
-
|
|
2914
|
+
if (!d(_)) return;
|
|
2915
|
+
const E = w.clientY - d(m).mouseY;
|
|
2916
|
+
if (d(_) === "pane") {
|
|
2917
|
+
C(b, Cn(d(m).paneHeight + E * 2), !0);
|
|
2569
2918
|
return;
|
|
2570
2919
|
}
|
|
2571
|
-
|
|
2920
|
+
C(p, Nn(d(m).frameBandHeight + E), !0), C(g, ir(d(m).width + (w.clientX - d(m).mouseX) * 2), !0), $t();
|
|
2572
2921
|
}
|
|
2573
|
-
function
|
|
2574
|
-
let
|
|
2575
|
-
switch (
|
|
2922
|
+
function ms(w) {
|
|
2923
|
+
let E = !1;
|
|
2924
|
+
switch (w.key) {
|
|
2576
2925
|
case "ArrowUp":
|
|
2577
|
-
|
|
2578
|
-
x: u(v).x,
|
|
2579
|
-
y: u(v).y - Pt
|
|
2580
|
-
}), !0), Ae(u($).t("toolkit.announce.movedUp", { position: Math.round(u(v).y) })), k = !0;
|
|
2926
|
+
Et("up"), E = !0;
|
|
2581
2927
|
break;
|
|
2582
2928
|
case "ArrowDown":
|
|
2583
|
-
|
|
2584
|
-
x: u(v).x,
|
|
2585
|
-
y: u(v).y + Pt
|
|
2586
|
-
}), !0), Ae(u($).t("toolkit.announce.movedDown", { position: Math.round(u(v).y) })), k = !0;
|
|
2929
|
+
Et("down"), E = !0;
|
|
2587
2930
|
break;
|
|
2588
2931
|
case "ArrowLeft":
|
|
2589
|
-
|
|
2590
|
-
x: u(v).x - Pt,
|
|
2591
|
-
y: u(v).y
|
|
2592
|
-
}), !0), Ae(u($).t("toolkit.announce.movedLeft", { position: Math.round(u(v).x) })), k = !0;
|
|
2932
|
+
Et("left"), E = !0;
|
|
2593
2933
|
break;
|
|
2594
2934
|
case "ArrowRight":
|
|
2595
|
-
|
|
2596
|
-
x: u(v).x + Pt,
|
|
2597
|
-
y: u(v).y
|
|
2598
|
-
}), !0), Ae(u($).t("toolkit.announce.movedRight", { position: Math.round(u(v).x) })), k = !0;
|
|
2935
|
+
Et("right"), E = !0;
|
|
2599
2936
|
break;
|
|
2600
2937
|
case "+":
|
|
2601
2938
|
case "=":
|
|
2602
|
-
|
|
2939
|
+
xt(kt), E = !0;
|
|
2603
2940
|
break;
|
|
2604
2941
|
case "-":
|
|
2605
2942
|
case "_":
|
|
2606
|
-
|
|
2943
|
+
xt(-10), E = !0;
|
|
2607
2944
|
break;
|
|
2608
2945
|
case "Escape":
|
|
2609
|
-
|
|
2946
|
+
Ln(), E = !0;
|
|
2610
2947
|
}
|
|
2611
|
-
|
|
2948
|
+
E && w.preventDefault();
|
|
2612
2949
|
}
|
|
2613
|
-
function
|
|
2614
|
-
let
|
|
2615
|
-
switch (
|
|
2950
|
+
function ys(w) {
|
|
2951
|
+
let E = !1;
|
|
2952
|
+
switch (w.key) {
|
|
2616
2953
|
case "ArrowUp":
|
|
2617
|
-
|
|
2954
|
+
xt(-10), E = !0;
|
|
2618
2955
|
break;
|
|
2619
2956
|
case "ArrowDown":
|
|
2620
|
-
|
|
2957
|
+
xt(kt), E = !0;
|
|
2621
2958
|
}
|
|
2622
|
-
|
|
2959
|
+
E && (w.preventDefault(), w.stopPropagation());
|
|
2623
2960
|
}
|
|
2624
|
-
function
|
|
2625
|
-
let
|
|
2626
|
-
switch (
|
|
2961
|
+
function ks(w) {
|
|
2962
|
+
let E = !1;
|
|
2963
|
+
switch (w.key) {
|
|
2627
2964
|
case "ArrowUp":
|
|
2628
|
-
|
|
2965
|
+
Lr(-10), E = !0;
|
|
2629
2966
|
break;
|
|
2630
2967
|
case "ArrowDown":
|
|
2631
|
-
|
|
2968
|
+
Lr(kt), E = !0;
|
|
2632
2969
|
break;
|
|
2633
2970
|
case "ArrowLeft":
|
|
2634
|
-
|
|
2971
|
+
Hr(-20), E = !0;
|
|
2635
2972
|
break;
|
|
2636
2973
|
case "ArrowRight":
|
|
2637
|
-
|
|
2974
|
+
Hr(On), E = !0;
|
|
2638
2975
|
}
|
|
2639
|
-
|
|
2976
|
+
E && (w.preventDefault(), w.stopPropagation());
|
|
2640
2977
|
}
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
}),
|
|
2644
|
-
|
|
2978
|
+
Oe(() => x.sync(d(v), n())), ko(() => () => {
|
|
2979
|
+
ot !== null && clearTimeout(ot), ar.release(), x.release();
|
|
2980
|
+
}), Oe(() => {
|
|
2981
|
+
d(v) && d(s) && n() && d(v).updateToolElement(n(), d(s));
|
|
2645
2982
|
});
|
|
2646
|
-
function
|
|
2647
|
-
if (
|
|
2648
|
-
const
|
|
2649
|
-
|
|
2650
|
-
}
|
|
2651
|
-
|
|
2652
|
-
r() ||
|
|
2653
|
-
}),
|
|
2654
|
-
if (!r() || !
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2983
|
+
function $s() {
|
|
2984
|
+
if (h) return;
|
|
2985
|
+
const w = hs();
|
|
2986
|
+
w && (h = !0, C(g, ir(d(g)), !0), C(c, sr(w), !0));
|
|
2987
|
+
}
|
|
2988
|
+
Oe(() => {
|
|
2989
|
+
r() || bt(() => ar.release());
|
|
2990
|
+
}), Oe(() => {
|
|
2991
|
+
if (!r() || !d(s)) return;
|
|
2992
|
+
const w = d(s);
|
|
2993
|
+
bt(() => {
|
|
2994
|
+
$s(), l.capture(w);
|
|
2995
|
+
});
|
|
2996
|
+
const E = setTimeout(() => d(s)?.focus({ preventScroll: !0 }), 100);
|
|
2997
|
+
return () => clearTimeout(E);
|
|
2998
|
+
}), Oe(() => {
|
|
2999
|
+
d(c).x, d(c).y, d(g), d(zr), d(a);
|
|
3000
|
+
const w = requestAnimationFrame(zn);
|
|
3001
|
+
return () => cancelAnimationFrame(w);
|
|
3002
|
+
}), Oe(() => {
|
|
2659
3003
|
if (!i || !r()) return;
|
|
2660
|
-
const
|
|
2661
|
-
|
|
3004
|
+
const w = () => {
|
|
3005
|
+
C(g, ir(d(g)), !0), $t(), zn();
|
|
2662
3006
|
};
|
|
2663
|
-
return window.addEventListener("resize",
|
|
3007
|
+
return window.addEventListener("resize", w), () => window.removeEventListener("resize", w);
|
|
2664
3008
|
});
|
|
2665
|
-
var
|
|
3009
|
+
var xs = {
|
|
2666
3010
|
get visible() {
|
|
2667
3011
|
return r();
|
|
2668
3012
|
},
|
|
2669
|
-
set visible(
|
|
2670
|
-
r(
|
|
3013
|
+
set visible(w = !1) {
|
|
3014
|
+
r(w), Se();
|
|
2671
3015
|
},
|
|
2672
3016
|
get toolId() {
|
|
2673
3017
|
return n();
|
|
2674
3018
|
},
|
|
2675
|
-
set toolId(
|
|
2676
|
-
n(
|
|
2677
|
-
}
|
|
2678
|
-
},
|
|
2679
|
-
var
|
|
2680
|
-
|
|
2681
|
-
|
|
3019
|
+
set toolId(w = "lineReader") {
|
|
3020
|
+
n(w), Se();
|
|
3021
|
+
}
|
|
3022
|
+
}, Hn = ao(), Es = Mr(Hn), Ss = (w) => {
|
|
3023
|
+
var E = Uo(), q = Mr(E), lt = It(q, !0), U = ge(q, 2);
|
|
3024
|
+
let Dn;
|
|
3025
|
+
var or = ge(Ye(U), 4), lr = ge(or, 2), fr = ge(lr, 2), Ts = ge(fr, 2);
|
|
3026
|
+
ds(Ts, {
|
|
3027
|
+
get controller() {
|
|
3028
|
+
return vs;
|
|
3029
|
+
},
|
|
3030
|
+
get i18n() {
|
|
3031
|
+
return d(y);
|
|
3032
|
+
},
|
|
3033
|
+
classPrefix: "pie-tool-line-reader",
|
|
3034
|
+
get sizes() {
|
|
3035
|
+
return d(ps);
|
|
3036
|
+
},
|
|
3037
|
+
get element() {
|
|
3038
|
+
return d(a);
|
|
3039
|
+
},
|
|
3040
|
+
set element(St) {
|
|
3041
|
+
C(a, St, !0);
|
|
3042
|
+
}
|
|
3043
|
+
}), qe(U), fs(U, (St) => C(s, St), () => d(s)), Wt((St, As, Ms, Rs, Ps, Os, Cs, Ns, Is, Ws) => {
|
|
3044
|
+
zt(lt, d(O)), Y(U, "lang", St), Y(U, "dir", As), Y(U, "aria-label", Ms), Y(U, "aria-roledescription", Rs), Dn = Ro(U, "", Dn, {
|
|
3045
|
+
left: `${d(c).x ?? ""}px`,
|
|
3046
|
+
top: `${d(c).y ?? ""}px`,
|
|
3047
|
+
width: `${d(g) ?? ""}px`,
|
|
3048
|
+
height: `${d(zr) ?? ""}px`,
|
|
3049
|
+
"--pie-tool-line-reader-band-height": `${d(p) ?? ""}px`,
|
|
3050
|
+
"--pie-tool-line-reader-side-width": "12px"
|
|
3051
|
+
}), Y(or, "title", Ps), Y(or, "aria-label", Os), Y(lr, "title", Cs), Y(lr, "aria-label", Ns), Y(fr, "title", Is), Y(fr, "aria-label", Ws), U.dir = U.dir;
|
|
2682
3052
|
}, [
|
|
2683
|
-
() =>
|
|
2684
|
-
() =>
|
|
2685
|
-
() =>
|
|
2686
|
-
paneHeight:
|
|
2687
|
-
frameHeight:
|
|
3053
|
+
() => d(y).getLocale(),
|
|
3054
|
+
() => d(y).getDirection?.() ?? "ltr",
|
|
3055
|
+
() => d(y).t("tools.lineReader.applicationA11y", {
|
|
3056
|
+
paneHeight: d(b),
|
|
3057
|
+
frameHeight: d(p)
|
|
2688
3058
|
}),
|
|
2689
|
-
() =>
|
|
2690
|
-
() =>
|
|
2691
|
-
() =>
|
|
2692
|
-
() =>
|
|
2693
|
-
() =>
|
|
2694
|
-
() =>
|
|
2695
|
-
() =>
|
|
2696
|
-
frameHeight:
|
|
2697
|
-
width:
|
|
3059
|
+
() => d(y).t("tools.lineReader.roleA11y"),
|
|
3060
|
+
() => d(y).t("tools.lineReader.close"),
|
|
3061
|
+
() => d(y).t("tools.lineReader.close"),
|
|
3062
|
+
() => d(y).t("tools.lineReader.resizeWindowA11y"),
|
|
3063
|
+
() => d(y).t("tools.lineReader.resizeWindowFullA11y", { paneHeight: d(b) }),
|
|
3064
|
+
() => d(y).t("tools.lineReader.resizeFrameA11y"),
|
|
3065
|
+
() => d(y).t("tools.lineReader.resizeFrameFullA11y", {
|
|
3066
|
+
frameHeight: d(p),
|
|
3067
|
+
width: d(g)
|
|
2698
3068
|
})
|
|
2699
|
-
]),
|
|
3069
|
+
]), we("pointerdown", U, _s), we("keydown", U, ms), we("click", or, Ln), we("keydown", lr, ys), we("keydown", fr, ks), Ne(w, E);
|
|
2700
3070
|
};
|
|
2701
|
-
return
|
|
2702
|
-
r() &&
|
|
2703
|
-
}),
|
|
3071
|
+
return ss(Es, (w) => {
|
|
3072
|
+
r() && w(Ss);
|
|
3073
|
+
}), Ne(e, Hn), _n(xs);
|
|
2704
3074
|
}
|
|
2705
|
-
|
|
3075
|
+
Qi([
|
|
2706
3076
|
"pointerdown",
|
|
2707
3077
|
"keydown",
|
|
2708
3078
|
"click"
|
|
2709
3079
|
]);
|
|
2710
|
-
|
|
3080
|
+
Vo("pie-tool-line-reader", cs(Go, {
|
|
2711
3081
|
visible: {
|
|
2712
3082
|
attribute: "visible",
|
|
2713
3083
|
type: "Boolean"
|
|
@@ -2716,10 +3086,10 @@ vo("pie-tool-line-reader", fo(ho, {
|
|
|
2716
3086
|
attribute: "tool-id",
|
|
2717
3087
|
type: "String"
|
|
2718
3088
|
}
|
|
2719
|
-
}, [], [], { mode: "open" },
|
|
2720
|
-
function
|
|
3089
|
+
}, [], [], { mode: "open" }, zs));
|
|
3090
|
+
function Vo(e, t) {
|
|
2721
3091
|
customElements.get(e) || customElements.define(e, t);
|
|
2722
3092
|
}
|
|
2723
3093
|
export {
|
|
2724
|
-
|
|
3094
|
+
Go as default
|
|
2725
3095
|
};
|