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