@pie-players/pie-tool-annotation-toolbar 0.3.41 → 0.3.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tool-annotation-toolbar.js +653 -637
- package/package.json +3 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as b } from "./defineProperty-CyepwRr5.js";
|
|
2
2
|
if (typeof window < "u") {
|
|
3
|
-
var
|
|
4
|
-
((
|
|
3
|
+
var Cn, Mn;
|
|
4
|
+
((Cn = (Mn = window).__svelte ?? (Mn.__svelte = {})).v ?? (Cn.v = /* @__PURE__ */ new Set())).add("5");
|
|
5
5
|
}
|
|
6
6
|
var gt = {}, j = /* @__PURE__ */ Symbol();
|
|
7
|
-
var
|
|
7
|
+
var hi = Array.isArray, Ro = Array.prototype.indexOf, _t = Array.prototype.includes, br = Array.from, ur = Object.keys, fr = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, Co = Object.getOwnPropertyDescriptors, Mo = Object.prototype, Po = Array.prototype, pi = Object.getPrototypeOf, Pn = Object.isExtensible, xo = () => {
|
|
8
8
|
};
|
|
9
|
-
function
|
|
9
|
+
function No(e) {
|
|
10
10
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function vi() {
|
|
13
13
|
var e, t;
|
|
14
14
|
return {
|
|
15
15
|
promise: new Promise((r, n) => {
|
|
@@ -19,85 +19,85 @@ function hi() {
|
|
|
19
19
|
reject: t
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
var
|
|
22
|
+
var Ol = 1 << 24, ie = 1024, ve = 2048, lt = 4096, rn = 8192, Do = 16384, nn = 32768, xn = 1 << 25, on = 65536, Ll = 1 << 17, Rl = 1 << 18, St = 1 << 19, Vo = 1 << 20, Pt = 1 << 25, zt = 65536, Nn = 1 << 21, jo = 1 << 22, dr = 1 << 23, xt = /* @__PURE__ */ Symbol("$state"), gi = /* @__PURE__ */ Symbol("legacy props"), zo = /* @__PURE__ */ Symbol(""), Wo = /* @__PURE__ */ Symbol("proxy path");
|
|
23
23
|
var $e = new class extends Error {
|
|
24
24
|
constructor(...t) {
|
|
25
25
|
super(...t), b(this, "name", "StaleReactionError"), b(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
26
26
|
}
|
|
27
|
-
}(),
|
|
28
|
-
function
|
|
27
|
+
}(), Ho = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
28
|
+
function Bo() {
|
|
29
29
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Fo(e, t, r) {
|
|
32
32
|
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function qo(e) {
|
|
35
35
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Uo() {
|
|
38
38
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Go(e) {
|
|
41
41
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Ko() {
|
|
44
44
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Yo() {
|
|
47
47
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function Xo(e) {
|
|
50
50
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Jo() {
|
|
53
53
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Qo() {
|
|
56
56
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Zo() {
|
|
59
59
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function es() {
|
|
62
62
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function ts() {
|
|
65
65
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function yr(e) {
|
|
68
68
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function rs() {
|
|
71
71
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
72
72
|
}
|
|
73
|
-
var
|
|
73
|
+
var M = !1;
|
|
74
74
|
function Oe(e) {
|
|
75
|
-
|
|
75
|
+
M = e;
|
|
76
76
|
}
|
|
77
|
-
var
|
|
77
|
+
var C;
|
|
78
78
|
function X(e) {
|
|
79
79
|
if (e === null)
|
|
80
|
-
throw
|
|
81
|
-
return
|
|
80
|
+
throw yr(), gt;
|
|
81
|
+
return C = e;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
return X(/* @__PURE__ */ Se(
|
|
83
|
+
function wr() {
|
|
84
|
+
return X(/* @__PURE__ */ Se(C));
|
|
85
85
|
}
|
|
86
86
|
function Kt(e) {
|
|
87
|
-
if (
|
|
88
|
-
if (/* @__PURE__ */ Se(
|
|
89
|
-
throw
|
|
90
|
-
|
|
87
|
+
if (M) {
|
|
88
|
+
if (/* @__PURE__ */ Se(C) !== null)
|
|
89
|
+
throw yr(), gt;
|
|
90
|
+
C = e;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
if (
|
|
95
|
-
for (var t = e, r =
|
|
96
|
-
|
|
93
|
+
function ns(e = 1) {
|
|
94
|
+
if (M) {
|
|
95
|
+
for (var t = e, r = C; t--; ) r = /* @__PURE__ */ Se(r);
|
|
96
|
+
C = r;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
function hr(e = !0) {
|
|
100
|
-
for (var t = 0, r =
|
|
100
|
+
for (var t = 0, r = C; ; ) {
|
|
101
101
|
if (r.nodeType === 8) {
|
|
102
102
|
var n = r.data;
|
|
103
103
|
if (n === "]") {
|
|
@@ -109,32 +109,32 @@ function hr(e = !0) {
|
|
|
109
109
|
e && r.remove(), r = i;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function _i(e) {
|
|
113
113
|
if (!e || e.nodeType !== 8)
|
|
114
|
-
throw
|
|
114
|
+
throw yr(), gt;
|
|
115
115
|
return e.data;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function mi(e) {
|
|
118
118
|
return e === this.v;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function is(e, t) {
|
|
121
121
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
return !
|
|
123
|
+
function bi(e) {
|
|
124
|
+
return !is(e, this.v);
|
|
125
125
|
}
|
|
126
126
|
var Le = !1, Tr = !1;
|
|
127
127
|
function Dn(e, t) {
|
|
128
|
-
return e.label = t,
|
|
128
|
+
return e.label = t, os(e.v, t), e;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
return e?.[
|
|
130
|
+
function os(e, t) {
|
|
131
|
+
return e?.[Wo]?.(t), e;
|
|
132
132
|
}
|
|
133
133
|
var W = null;
|
|
134
134
|
function mt(e) {
|
|
135
135
|
W = e;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function yi(e, t = !1, r) {
|
|
138
138
|
W = {
|
|
139
139
|
p: W,
|
|
140
140
|
i: !1,
|
|
@@ -150,11 +150,11 @@ function mi(e, t = !1, r) {
|
|
|
150
150
|
} : null
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function wi(e) {
|
|
154
154
|
var t = W, r = t.e;
|
|
155
155
|
if (r !== null) {
|
|
156
156
|
t.e = null;
|
|
157
|
-
for (var n of r)
|
|
157
|
+
for (var n of r) Ki(n);
|
|
158
158
|
}
|
|
159
159
|
return e !== void 0 && (t.x = e), t.i = !0, W = t.p, e ?? {};
|
|
160
160
|
}
|
|
@@ -162,23 +162,23 @@ function Wt() {
|
|
|
162
162
|
return !Tr || W !== null && W.l === null;
|
|
163
163
|
}
|
|
164
164
|
var Ye = [];
|
|
165
|
-
function
|
|
165
|
+
function Ti() {
|
|
166
166
|
var e = Ye;
|
|
167
|
-
Ye = [],
|
|
167
|
+
Ye = [], No(e);
|
|
168
168
|
}
|
|
169
169
|
function ot(e) {
|
|
170
170
|
if (Ye.length === 0 && !Nt) {
|
|
171
171
|
var t = Ye;
|
|
172
172
|
queueMicrotask(() => {
|
|
173
|
-
t === Ye &&
|
|
173
|
+
t === Ye && Ti();
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
Ye.push(e);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
for (; Ye.length > 0; )
|
|
178
|
+
function ss() {
|
|
179
|
+
for (; Ye.length > 0; ) Ti();
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Si(e) {
|
|
182
182
|
var t = A;
|
|
183
183
|
if (t === null)
|
|
184
184
|
return $.f |= dr, e;
|
|
@@ -201,23 +201,23 @@ function Be(e, t) {
|
|
|
201
201
|
}
|
|
202
202
|
throw e;
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var as = ~(ve | lt | ie);
|
|
205
205
|
function N(e, t) {
|
|
206
|
-
e.f = e.f &
|
|
206
|
+
e.f = e.f & as | t;
|
|
207
207
|
}
|
|
208
208
|
function sn(e) {
|
|
209
209
|
(e.f & 512) !== 0 || e.deps === null ? N(e, ie) : N(e, lt);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function ki(e) {
|
|
212
212
|
if (e !== null)
|
|
213
213
|
for (const t of e)
|
|
214
|
-
(t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^= zt,
|
|
214
|
+
(t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^= zt, ki(t.deps));
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e),
|
|
216
|
+
function Ai(e, t, r) {
|
|
217
|
+
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e), ki(e.deps), N(e, ie);
|
|
218
218
|
}
|
|
219
|
-
var
|
|
220
|
-
function
|
|
219
|
+
var ls = !1, Yt = !1;
|
|
220
|
+
function cs(e) {
|
|
221
221
|
var t = Yt;
|
|
222
222
|
try {
|
|
223
223
|
return Yt = !1, [e(), Yt];
|
|
@@ -225,14 +225,14 @@ function as(e) {
|
|
|
225
225
|
Yt = t;
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function Ii(e, t) {
|
|
229
229
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
230
230
|
}
|
|
231
231
|
function an(e, t) {
|
|
232
|
-
|
|
232
|
+
Ii(e, t), t.add(e);
|
|
233
233
|
}
|
|
234
234
|
function S(e, t, r) {
|
|
235
|
-
|
|
235
|
+
Ii(e, t), t.set(e, r);
|
|
236
236
|
}
|
|
237
237
|
function L(e, t, r) {
|
|
238
238
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
|
|
@@ -244,10 +244,10 @@ function l(e, t) {
|
|
|
244
244
|
function k(e, t, r) {
|
|
245
245
|
return e.set(L(e, t), r), r;
|
|
246
246
|
}
|
|
247
|
-
var
|
|
248
|
-
var
|
|
247
|
+
var Ei, ye = /* @__PURE__ */ new Set(), I = null, Vn = null, q = null, Hr = null, Nt = !1, Or = !1, bt = null, pr = null, $i = 0;
|
|
248
|
+
var us = 1, vr = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), nr = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), Br = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakSet(), ct = class Oi {
|
|
249
249
|
constructor() {
|
|
250
|
-
an(this, K), b(this, "id",
|
|
250
|
+
an(this, K), b(this, "id", us++), b(this, "current", /* @__PURE__ */ new Map()), b(this, "previous", /* @__PURE__ */ new Map()), S(this, vr, /* @__PURE__ */ new Set()), S(this, Xt, /* @__PURE__ */ new Set()), S(this, Et, /* @__PURE__ */ new Set()), S(this, Ke, /* @__PURE__ */ new Map()), S(this, ze, /* @__PURE__ */ new Map()), S(this, nr, null), S(this, fe, []), S(this, Br, []), S(this, yt, /* @__PURE__ */ new Set()), S(this, Ze, /* @__PURE__ */ new Set()), S(this, He, /* @__PURE__ */ new Map()), S(this, ir, /* @__PURE__ */ new Set()), b(this, "is_fork", !1), S(this, Jt, !1), S(this, vt, /* @__PURE__ */ new Set());
|
|
251
251
|
}
|
|
252
252
|
skip_effect(t) {
|
|
253
253
|
l(He, this).has(t) || l(He, this).set(t, {
|
|
@@ -280,12 +280,12 @@ var ls = 1, vr = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap
|
|
|
280
280
|
try {
|
|
281
281
|
Or = !0, I = this, L(K, this, ln).call(this);
|
|
282
282
|
} finally {
|
|
283
|
-
|
|
283
|
+
$i = 0, Hr = null, bt = null, pr = null, Or = !1, I = null, q = null, rt.clear();
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
discard() {
|
|
287
287
|
for (const t of l(Xt, this)) t(this);
|
|
288
|
-
l(Xt, this).clear(), l(Et, this).clear(),
|
|
288
|
+
l(Xt, this).clear(), l(Et, this).clear(), ye.delete(this);
|
|
289
289
|
}
|
|
290
290
|
register_created_effect(t) {
|
|
291
291
|
l(Br, this).push(t);
|
|
@@ -308,7 +308,7 @@ var ls = 1, vr = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap
|
|
|
308
308
|
}));
|
|
309
309
|
}
|
|
310
310
|
transfer_effects(t, r) {
|
|
311
|
-
for (const n of t) l(
|
|
311
|
+
for (const n of t) l(yt, this).add(n);
|
|
312
312
|
for (const n of r) l(Ze, this).add(n);
|
|
313
313
|
t.clear(), r.clear();
|
|
314
314
|
}
|
|
@@ -326,25 +326,25 @@ var ls = 1, vr = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap
|
|
|
326
326
|
l(Et, this).clear();
|
|
327
327
|
}
|
|
328
328
|
settled() {
|
|
329
|
-
return (l(nr, this) ?? k(nr, this,
|
|
329
|
+
return (l(nr, this) ?? k(nr, this, vi())).promise;
|
|
330
330
|
}
|
|
331
331
|
static ensure() {
|
|
332
332
|
if (I === null) {
|
|
333
|
-
const t = I = new
|
|
334
|
-
Or || (
|
|
333
|
+
const t = I = new Oi();
|
|
334
|
+
Or || (ye.add(I), Nt || ot(() => {
|
|
335
335
|
I === t && t.flush();
|
|
336
336
|
}));
|
|
337
337
|
}
|
|
338
338
|
return I;
|
|
339
339
|
}
|
|
340
340
|
apply() {
|
|
341
|
-
if (!Le || !this.is_fork &&
|
|
341
|
+
if (!Le || !this.is_fork && ye.size === 1) {
|
|
342
342
|
q = null;
|
|
343
343
|
return;
|
|
344
344
|
}
|
|
345
345
|
q = /* @__PURE__ */ new Map();
|
|
346
346
|
for (const [n, [i]] of this.current) q.set(n, i);
|
|
347
|
-
for (const n of
|
|
347
|
+
for (const n of ye)
|
|
348
348
|
if (!(n === this || n.is_fork)) {
|
|
349
349
|
var t = !1, r = !1;
|
|
350
350
|
if (n.id < this.id) for (const [i, [, o]] of n.current)
|
|
@@ -361,7 +361,7 @@ var ls = 1, vr = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap
|
|
|
361
361
|
for (var r = t; r.parent !== null; ) {
|
|
362
362
|
r = r.parent;
|
|
363
363
|
var n = r.f;
|
|
364
|
-
if (bt !== null && r === A && (Le || ($ === null || ($.f & 2) === 0) && !
|
|
364
|
+
if (bt !== null && r === A && (Le || ($ === null || ($.f & 2) === 0) && !ls))
|
|
365
365
|
return;
|
|
366
366
|
if ((n & 96) !== 0) {
|
|
367
367
|
if ((n & 1024) === 0) return;
|
|
@@ -371,11 +371,11 @@ var ls = 1, vr = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap
|
|
|
371
371
|
l(fe, this).push(r);
|
|
372
372
|
}
|
|
373
373
|
};
|
|
374
|
-
|
|
374
|
+
Ei = ct;
|
|
375
375
|
function Fr() {
|
|
376
376
|
return this.is_fork || l(ze, this).size > 0;
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function fs() {
|
|
379
379
|
for (const r of l(vt, this)) for (const n of l(ze, r).keys()) {
|
|
380
380
|
for (var e = !1, t = n; t.parent !== null; ) {
|
|
381
381
|
if (l(He, this).has(t)) {
|
|
@@ -389,8 +389,8 @@ function cs() {
|
|
|
389
389
|
return !1;
|
|
390
390
|
}
|
|
391
391
|
function ln() {
|
|
392
|
-
if (
|
|
393
|
-
for (const s of l(
|
|
392
|
+
if ($i++ > 1e3 && (ye.delete(this), hs()), !L(K, this, Fr).call(this)) {
|
|
393
|
+
for (const s of l(yt, this))
|
|
394
394
|
l(Ze, this).delete(s), N(s, ve), this.schedule(s);
|
|
395
395
|
for (const s of l(Ze, this))
|
|
396
396
|
N(s, lt), this.schedule(s);
|
|
@@ -399,19 +399,19 @@ function ln() {
|
|
|
399
399
|
k(fe, this, []), this.apply();
|
|
400
400
|
var t = bt = [], r = [], n = pr = [];
|
|
401
401
|
for (const s of e) try {
|
|
402
|
-
L(K, this,
|
|
402
|
+
L(K, this, Li).call(this, s, t, r);
|
|
403
403
|
} catch (a) {
|
|
404
|
-
throw
|
|
404
|
+
throw Mi(s), a;
|
|
405
405
|
}
|
|
406
406
|
if (I = null, n.length > 0) {
|
|
407
|
-
var i =
|
|
407
|
+
var i = Ei.ensure();
|
|
408
408
|
for (const s of n) i.schedule(s);
|
|
409
409
|
}
|
|
410
|
-
if (bt = null, pr = null, L(K, this, Fr).call(this) || L(K, this,
|
|
410
|
+
if (bt = null, pr = null, L(K, this, Fr).call(this) || L(K, this, fs).call(this)) {
|
|
411
411
|
L(K, this, qr).call(this, r), L(K, this, qr).call(this, t);
|
|
412
|
-
for (const [s, a] of l(He, this))
|
|
412
|
+
for (const [s, a] of l(He, this)) Ci(s, a);
|
|
413
413
|
} else {
|
|
414
|
-
l(Ke, this).size === 0 &&
|
|
414
|
+
l(Ke, this).size === 0 && ye.delete(this), l(yt, this).clear(), l(Ze, this).clear();
|
|
415
415
|
for (const s of l(vr, this)) s(this);
|
|
416
416
|
l(vr, this).clear(), Vn = this, jn(r), jn(t), Vn = null, l(nr, this)?.resolve();
|
|
417
417
|
}
|
|
@@ -420,9 +420,9 @@ function ln() {
|
|
|
420
420
|
const s = o ?? (o = this);
|
|
421
421
|
l(fe, s).push(...l(fe, this).filter((a) => !l(fe, s).includes(a)));
|
|
422
422
|
}
|
|
423
|
-
o !== null && (
|
|
423
|
+
o !== null && (ye.add(o), L(K, o, ln).call(o)), Le && !ye.has(this) && L(K, this, ds).call(this);
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function Li(e, t, r) {
|
|
426
426
|
e.f ^= ie;
|
|
427
427
|
for (var n = e.first; n !== null; ) {
|
|
428
428
|
var i = n.f, o = (i & 96) !== 0;
|
|
@@ -445,10 +445,10 @@ function $i(e, t, r) {
|
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
function qr(e) {
|
|
448
|
-
for (var t = 0; t < e.length; t += 1)
|
|
448
|
+
for (var t = 0; t < e.length; t += 1) Ai(e[t], l(yt, this), l(Ze, this));
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
for (const u of
|
|
450
|
+
function ds() {
|
|
451
|
+
for (const u of ye) {
|
|
452
452
|
var e = u.id < this.id, t = [];
|
|
453
453
|
for (const [f, [p, d]] of this.current) {
|
|
454
454
|
if (u.current.has(f)) {
|
|
@@ -467,19 +467,19 @@ function us() {
|
|
|
467
467
|
});
|
|
468
468
|
u.activate();
|
|
469
469
|
var i = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
470
|
-
for (var s of t)
|
|
470
|
+
for (var s of t) Ri(s, n, i, o);
|
|
471
471
|
o = /* @__PURE__ */ new Map();
|
|
472
472
|
var a = [...u.current.keys()].filter((f) => this.current.has(f) ? this.current.get(f)[0] !== f : !0);
|
|
473
|
-
for (const f of l(Br, this)) (f.f & 155648) === 0 && cn(f, a, o) && ((f.f & 4194320) !== 0 ? (N(f, ve), u.schedule(f)) : l(
|
|
473
|
+
for (const f of l(Br, this)) (f.f & 155648) === 0 && cn(f, a, o) && ((f.f & 4194320) !== 0 ? (N(f, ve), u.schedule(f)) : l(yt, u).add(f));
|
|
474
474
|
if (l(fe, u).length > 0) {
|
|
475
475
|
u.apply();
|
|
476
|
-
for (var c of l(fe, u)) L(K, u,
|
|
476
|
+
for (var c of l(fe, u)) L(K, u, Li).call(u, c, [], []);
|
|
477
477
|
k(fe, u, []);
|
|
478
478
|
}
|
|
479
479
|
u.deactivate();
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
for (const u of
|
|
482
|
+
for (const u of ye) l(vt, u).has(this) && (l(vt, u).delete(this), l(vt, u).size === 0 && !L(K, u, Fr).call(u) && (u.activate(), L(K, u, ln).call(u)));
|
|
483
483
|
}
|
|
484
484
|
function or(e) {
|
|
485
485
|
var t = Nt;
|
|
@@ -487,21 +487,21 @@ function or(e) {
|
|
|
487
487
|
try {
|
|
488
488
|
var r;
|
|
489
489
|
for (e && (I !== null && !I.is_fork && I.flush(), r = e()); ; ) {
|
|
490
|
-
if (
|
|
490
|
+
if (ss(), I === null) return r;
|
|
491
491
|
I.flush();
|
|
492
492
|
}
|
|
493
493
|
} finally {
|
|
494
494
|
Nt = t;
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function hs() {
|
|
498
498
|
if (0) {
|
|
499
499
|
var e;
|
|
500
500
|
for (const r of I.current.keys()) for (const [n, i] of r.updated ?? [])
|
|
501
501
|
var t;
|
|
502
502
|
}
|
|
503
503
|
try {
|
|
504
|
-
|
|
504
|
+
Ko();
|
|
505
505
|
} catch (r) {
|
|
506
506
|
Be(r, Hr);
|
|
507
507
|
}
|
|
@@ -512,7 +512,7 @@ function jn(e) {
|
|
|
512
512
|
if (t !== 0) {
|
|
513
513
|
for (var r = 0; r < t; ) {
|
|
514
514
|
var n = e[r++];
|
|
515
|
-
if ((n.f & 24576) === 0 && Ht(n) && (me = /* @__PURE__ */ new Set(), Tt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null &&
|
|
515
|
+
if ((n.f & 24576) === 0 && Ht(n) && (me = /* @__PURE__ */ new Set(), Tt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Ji(n), me?.size > 0)) {
|
|
516
516
|
rt.clear();
|
|
517
517
|
for (const i of me) {
|
|
518
518
|
if ((i.f & 24576) !== 0) continue;
|
|
@@ -531,11 +531,11 @@ function jn(e) {
|
|
|
531
531
|
me = null;
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function Ri(e, t, r, n) {
|
|
535
535
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
536
536
|
for (const i of e.reactions) {
|
|
537
537
|
const o = i.f;
|
|
538
|
-
(o & 2) !== 0 ?
|
|
538
|
+
(o & 2) !== 0 ? Ri(i, t, r, n) : (o & 4194320) !== 0 && (o & 2048) === 0 && cn(i, t, n) && (N(i, ve), un(i));
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
function cn(e, t, r) {
|
|
@@ -551,19 +551,19 @@ function cn(e, t, r) {
|
|
|
551
551
|
function un(e) {
|
|
552
552
|
I.schedule(e);
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Ci(e, t) {
|
|
555
555
|
if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
|
|
556
556
|
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), N(e, ie);
|
|
557
557
|
for (var r = e.first; r !== null; )
|
|
558
|
-
|
|
558
|
+
Ci(r, t), r = r.next;
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function Mi(e) {
|
|
562
562
|
N(e, ie);
|
|
563
563
|
for (var t = e.first; t !== null; )
|
|
564
|
-
|
|
564
|
+
Mi(t), t = t.next;
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function ps(e) {
|
|
567
567
|
let t = 0, r = st(0), n;
|
|
568
568
|
return () => {
|
|
569
569
|
gn() && (_(r), _n(() => (t === 0 && (n = Tn(() => e(() => Dt(r)))), t += 1, () => {
|
|
@@ -573,31 +573,31 @@ function ds(e) {
|
|
|
573
573
|
})));
|
|
574
574
|
};
|
|
575
575
|
}
|
|
576
|
-
var
|
|
577
|
-
function
|
|
578
|
-
new
|
|
576
|
+
var vs = on | St;
|
|
577
|
+
function gs(e, t, r, n) {
|
|
578
|
+
new _s(e, t, r, n);
|
|
579
579
|
}
|
|
580
|
-
var he = /* @__PURE__ */ new WeakMap(), Ur = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakMap(), Vt = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakMap(),
|
|
580
|
+
var he = /* @__PURE__ */ new WeakMap(), Ur = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakMap(), Vt = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), Gr = /* @__PURE__ */ new WeakMap(), Kr = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), zn = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakSet(), _s = class {
|
|
581
581
|
constructor(e, t, r, n) {
|
|
582
|
-
an(this, B), b(this, "parent", void 0), b(this, "is_pending", !1), b(this, "transform_error", void 0), S(this, he, void 0), S(this, Ur,
|
|
582
|
+
an(this, B), b(this, "parent", void 0), b(this, "is_pending", !1), b(this, "transform_error", void 0), S(this, he, void 0), S(this, Ur, M ? C : null), S(this, be, void 0), S(this, Vt, void 0), S(this, re, void 0), S(this, we, null), S(this, Z, null), S(this, ue, null), S(this, et, null), S(this, dt, 0), S(this, tt, 0), S(this, Qt, !1), S(this, Gr, /* @__PURE__ */ new Set()), S(this, Kr, /* @__PURE__ */ new Set()), S(this, Ue, null), S(this, zn, ps(() => (k(Ue, this, st(l(dt, this))), () => {
|
|
583
583
|
k(Ue, this, null);
|
|
584
584
|
}))), k(he, this, e), k(be, this, t), k(Vt, this, (i) => {
|
|
585
585
|
var o = A;
|
|
586
586
|
o.b = this, o.f |= 128, r(i);
|
|
587
587
|
}), this.parent = A.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), k(re, this, mn(() => {
|
|
588
|
-
if (
|
|
588
|
+
if (M) {
|
|
589
589
|
const i = l(Ur, this);
|
|
590
|
-
|
|
590
|
+
wr();
|
|
591
591
|
const o = i.data === "[!";
|
|
592
592
|
if (i.data.startsWith("[?")) {
|
|
593
593
|
const s = JSON.parse(i.data.slice(2));
|
|
594
|
-
L(B, this,
|
|
595
|
-
} else o ? L(B, this,
|
|
596
|
-
} else L(B, this,
|
|
597
|
-
},
|
|
594
|
+
L(B, this, bs).call(this, s);
|
|
595
|
+
} else o ? L(B, this, ys).call(this) : L(B, this, ms).call(this);
|
|
596
|
+
} else L(B, this, Pi).call(this);
|
|
597
|
+
}, vs)), M && k(he, this, C);
|
|
598
598
|
}
|
|
599
599
|
defer_effect(e) {
|
|
600
|
-
|
|
600
|
+
Ai(e, l(Gr, this), l(Kr, this));
|
|
601
601
|
}
|
|
602
602
|
is_rendered() {
|
|
603
603
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -606,8 +606,8 @@ var he = /* @__PURE__ */ new WeakMap(), Ur = /* @__PURE__ */ new WeakMap(), be =
|
|
|
606
606
|
return !!l(be, this).pending;
|
|
607
607
|
}
|
|
608
608
|
update_pending_count(e, t) {
|
|
609
|
-
L(B, this,
|
|
610
|
-
k(Qt, this, !1), l(Ue, this) &&
|
|
609
|
+
L(B, this, xi).call(this, e, t), k(dt, this, l(dt, this) + e), !(!l(Ue, this) || l(Qt, this)) && (k(Qt, this, !0), ot(() => {
|
|
610
|
+
k(Qt, this, !1), l(Ue, this) && wt(l(Ue, this), l(dt, this));
|
|
611
611
|
}));
|
|
612
612
|
}
|
|
613
613
|
get_effect_pending() {
|
|
@@ -615,41 +615,41 @@ var he = /* @__PURE__ */ new WeakMap(), Ur = /* @__PURE__ */ new WeakMap(), be =
|
|
|
615
615
|
}
|
|
616
616
|
error(e) {
|
|
617
617
|
if (!l(be, this).onerror && !l(be, this).failed) throw e;
|
|
618
|
-
I?.is_fork ? (l(
|
|
618
|
+
I?.is_fork ? (l(we, this) && I.skip_effect(l(we, this)), l(Z, this) && I.skip_effect(l(Z, this)), l(ue, this) && I.skip_effect(l(ue, this)), I.on_fork_commit(() => {
|
|
619
619
|
L(B, this, Wn).call(this, e);
|
|
620
620
|
})) : L(B, this, Wn).call(this, e);
|
|
621
621
|
}
|
|
622
622
|
};
|
|
623
|
-
function
|
|
623
|
+
function ms() {
|
|
624
624
|
try {
|
|
625
|
-
k(
|
|
625
|
+
k(we, this, oe(() => l(Vt, this).call(this, l(he, this))));
|
|
626
626
|
} catch (e) {
|
|
627
627
|
this.error(e);
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function bs(e) {
|
|
631
631
|
const t = l(be, this).failed;
|
|
632
632
|
t && k(ue, this, oe(() => {
|
|
633
633
|
t(l(he, this), () => e, () => () => {
|
|
634
634
|
});
|
|
635
635
|
}));
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function ys() {
|
|
638
638
|
const e = l(be, this).pending;
|
|
639
639
|
e && (this.is_pending = !0, k(Z, this, oe(() => e(l(he, this)))), ot(() => {
|
|
640
640
|
var t = k(et, this, document.createDocumentFragment()), r = pe();
|
|
641
|
-
t.append(r), k(
|
|
641
|
+
t.append(r), k(we, this, L(B, this, Yr).call(this, () => oe(() => l(Vt, this).call(this, r)))), l(tt, this) === 0 && (l(he, this).before(t), k(et, this, null), ut(l(Z, this), () => {
|
|
642
642
|
k(Z, this, null);
|
|
643
643
|
}), L(B, this, fn).call(this, I));
|
|
644
644
|
}));
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function Pi() {
|
|
647
647
|
try {
|
|
648
|
-
if (this.is_pending = this.has_pending_snippet(), k(tt, this, 0), k(dt, this, 0), k(
|
|
648
|
+
if (this.is_pending = this.has_pending_snippet(), k(tt, this, 0), k(dt, this, 0), k(we, this, oe(() => {
|
|
649
649
|
l(Vt, this).call(this, l(he, this));
|
|
650
650
|
})), l(tt, this) > 0) {
|
|
651
651
|
var e = k(et, this, document.createDocumentFragment());
|
|
652
|
-
|
|
652
|
+
wn(l(we, this), e);
|
|
653
653
|
const t = l(be, this).pending;
|
|
654
654
|
k(Z, this, oe(() => t(l(he, this))));
|
|
655
655
|
} else L(B, this, fn).call(this, I);
|
|
@@ -666,16 +666,16 @@ function Yr(e) {
|
|
|
666
666
|
try {
|
|
667
667
|
return ct.ensure(), e();
|
|
668
668
|
} catch (i) {
|
|
669
|
-
return
|
|
669
|
+
return Si(i), null;
|
|
670
670
|
} finally {
|
|
671
671
|
Te(t), se(r), mt(n);
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function xi(e, t) {
|
|
675
675
|
if (!this.has_pending_snippet()) {
|
|
676
676
|
if (this.parent) {
|
|
677
677
|
var r;
|
|
678
|
-
L(B, r = this.parent,
|
|
678
|
+
L(B, r = this.parent, xi).call(r, e, t);
|
|
679
679
|
}
|
|
680
680
|
return;
|
|
681
681
|
}
|
|
@@ -684,19 +684,19 @@ function Ci(e, t) {
|
|
|
684
684
|
}), l(et, this) && (l(he, this).before(l(et, this)), k(et, this, null)));
|
|
685
685
|
}
|
|
686
686
|
function Wn(e) {
|
|
687
|
-
l(
|
|
687
|
+
l(we, this) && (U(l(we, this)), k(we, this, null)), l(Z, this) && (U(l(Z, this)), k(Z, this, null)), l(ue, this) && (U(l(ue, this)), k(ue, this, null)), M && (X(l(Ur, this)), ns(), X(hr()));
|
|
688
688
|
var t = l(be, this).onerror;
|
|
689
689
|
let r = l(be, this).failed;
|
|
690
690
|
var n = !1, i = !1;
|
|
691
691
|
const o = () => {
|
|
692
692
|
if (n) {
|
|
693
|
-
|
|
693
|
+
rs();
|
|
694
694
|
return;
|
|
695
695
|
}
|
|
696
|
-
n = !0, i &&
|
|
696
|
+
n = !0, i && es(), l(ue, this) !== null && ut(l(ue, this), () => {
|
|
697
697
|
k(ue, this, null);
|
|
698
698
|
}), L(B, this, Yr).call(this, () => {
|
|
699
|
-
L(B, this,
|
|
699
|
+
L(B, this, Pi).call(this);
|
|
700
700
|
});
|
|
701
701
|
}, s = (a) => {
|
|
702
702
|
try {
|
|
@@ -726,14 +726,14 @@ function Wn(e) {
|
|
|
726
726
|
a !== null && typeof a == "object" && typeof a.then == "function" ? a.then(s, (c) => Be(c, l(re, this) && l(re, this).parent)) : s(a);
|
|
727
727
|
});
|
|
728
728
|
}
|
|
729
|
-
function
|
|
729
|
+
function ws(e, t, r, n) {
|
|
730
730
|
const i = Wt() ? Sr : dn;
|
|
731
731
|
var o = e.filter((d) => !d.settled);
|
|
732
732
|
if (r.length === 0 && o.length === 0) {
|
|
733
733
|
n(t.map(i));
|
|
734
734
|
return;
|
|
735
735
|
}
|
|
736
|
-
var s = A, a =
|
|
736
|
+
var s = A, a = Ts(), c = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((d) => d.promise)) : null;
|
|
737
737
|
function u(d) {
|
|
738
738
|
a();
|
|
739
739
|
try {
|
|
@@ -747,15 +747,15 @@ function bs(e, t, r, n) {
|
|
|
747
747
|
c.then(() => u(t.map(i)));
|
|
748
748
|
return;
|
|
749
749
|
}
|
|
750
|
-
var f =
|
|
750
|
+
var f = Ni();
|
|
751
751
|
function p() {
|
|
752
|
-
Promise.all(r.map((d) => /* @__PURE__ */
|
|
752
|
+
Promise.all(r.map((d) => /* @__PURE__ */ Ss(d))).then((d) => u([...t.map(i), ...d])).catch((d) => Be(d, s)).finally(() => f());
|
|
753
753
|
}
|
|
754
754
|
c ? c.then(() => {
|
|
755
755
|
a(), p(), gr();
|
|
756
756
|
}) : p();
|
|
757
757
|
}
|
|
758
|
-
function
|
|
758
|
+
function Ts() {
|
|
759
759
|
var e = A, t = $, r = W, n = I;
|
|
760
760
|
if (0) var i;
|
|
761
761
|
return function(s = !0) {
|
|
@@ -765,7 +765,7 @@ function ws() {
|
|
|
765
765
|
function gr(e = !0) {
|
|
766
766
|
Te(null), se(null), mt(null), e && I?.deactivate();
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function Ni() {
|
|
769
769
|
var e = A, t = e.b, r = I, n = t.is_rendered();
|
|
770
770
|
return t.update_pending_count(1, r), r.increment(n, e), (i = !1) => {
|
|
771
771
|
t.update_pending_count(-1, r), r.decrement(n, e, i);
|
|
@@ -778,7 +778,7 @@ function Sr(e) {
|
|
|
778
778
|
ctx: W,
|
|
779
779
|
deps: null,
|
|
780
780
|
effects: null,
|
|
781
|
-
equals:
|
|
781
|
+
equals: mi,
|
|
782
782
|
f: t,
|
|
783
783
|
fn: e,
|
|
784
784
|
reactions: null,
|
|
@@ -790,12 +790,12 @@ function Sr(e) {
|
|
|
790
790
|
};
|
|
791
791
|
}
|
|
792
792
|
// @__NO_SIDE_EFFECTS__
|
|
793
|
-
function
|
|
793
|
+
function Ss(e, t, r) {
|
|
794
794
|
let n = A;
|
|
795
|
-
n === null &&
|
|
795
|
+
n === null && Bo();
|
|
796
796
|
var i = void 0, o = st(j), s = !$, a = /* @__PURE__ */ new Map();
|
|
797
|
-
return
|
|
798
|
-
var c = A, u =
|
|
797
|
+
return xs(() => {
|
|
798
|
+
var c = A, u = vi();
|
|
799
799
|
i = u.promise;
|
|
800
800
|
try {
|
|
801
801
|
Promise.resolve(e()).then(u.resolve, u.reject).finally(gr);
|
|
@@ -804,7 +804,7 @@ function ys(e, t, r) {
|
|
|
804
804
|
}
|
|
805
805
|
var f = I;
|
|
806
806
|
if (s) {
|
|
807
|
-
if ((c.f & 32768) !== 0) var p =
|
|
807
|
+
if ((c.f & 32768) !== 0) var p = Ni();
|
|
808
808
|
if (n.b.is_rendered())
|
|
809
809
|
a.get(f)?.reject($e), a.delete(f);
|
|
810
810
|
else {
|
|
@@ -816,11 +816,11 @@ function ys(e, t, r) {
|
|
|
816
816
|
const d = (h, g = void 0) => {
|
|
817
817
|
if (p && p(g === $e), !(g === $e || (c.f & 16384) !== 0)) {
|
|
818
818
|
if (f.activate(), g)
|
|
819
|
-
o.f |= dr,
|
|
819
|
+
o.f |= dr, wt(o, g);
|
|
820
820
|
else {
|
|
821
|
-
(o.f & 8388608) !== 0 && (o.f ^= dr),
|
|
822
|
-
for (const [
|
|
823
|
-
if (a.delete(
|
|
821
|
+
(o.f & 8388608) !== 0 && (o.f ^= dr), wt(o, h);
|
|
822
|
+
for (const [w, v] of a) {
|
|
823
|
+
if (a.delete(w), w === f) break;
|
|
824
824
|
v.reject($e);
|
|
825
825
|
}
|
|
826
826
|
}
|
|
@@ -828,7 +828,7 @@ function ys(e, t, r) {
|
|
|
828
828
|
}
|
|
829
829
|
};
|
|
830
830
|
u.promise.then(d, (h) => d(null, h || "unknown"));
|
|
831
|
-
}),
|
|
831
|
+
}), Cs(() => {
|
|
832
832
|
for (const c of a.values()) c.reject($e);
|
|
833
833
|
}), new Promise((c) => {
|
|
834
834
|
function u(f) {
|
|
@@ -843,14 +843,14 @@ function ys(e, t, r) {
|
|
|
843
843
|
// @__NO_SIDE_EFFECTS__
|
|
844
844
|
function Lr(e) {
|
|
845
845
|
const t = /* @__PURE__ */ Sr(e);
|
|
846
|
-
return Le ||
|
|
846
|
+
return Le || eo(t), t;
|
|
847
847
|
}
|
|
848
848
|
// @__NO_SIDE_EFFECTS__
|
|
849
849
|
function dn(e) {
|
|
850
850
|
const t = /* @__PURE__ */ Sr(e);
|
|
851
|
-
return t.equals =
|
|
851
|
+
return t.equals = bi, t;
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function ks(e) {
|
|
854
854
|
var t = e.effects;
|
|
855
855
|
if (t !== null) {
|
|
856
856
|
e.effects = null;
|
|
@@ -860,39 +860,39 @@ function Ts(e) {
|
|
|
860
860
|
function hn(e) {
|
|
861
861
|
var t, r = A, n = e.parent;
|
|
862
862
|
if (!Re && n !== null && (n.f & 24576) !== 0)
|
|
863
|
-
return
|
|
863
|
+
return ts(), e.v;
|
|
864
864
|
Te(n);
|
|
865
865
|
try {
|
|
866
|
-
e.f &= ~zt,
|
|
866
|
+
e.f &= ~zt, ks(e), t = io(e);
|
|
867
867
|
} finally {
|
|
868
868
|
Te(r);
|
|
869
869
|
}
|
|
870
870
|
return t;
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function Di(e) {
|
|
873
873
|
var t = hn(e);
|
|
874
|
-
if (!e.equals(t) && (e.wv =
|
|
874
|
+
if (!e.equals(t) && (e.wv = ro(), (!I?.is_fork || e.deps === null) && (I !== null ? I.capture(e, t, !0) : e.v = t, e.deps === null))) {
|
|
875
875
|
N(e, ie);
|
|
876
876
|
return;
|
|
877
877
|
}
|
|
878
878
|
Re || (q !== null ? (gn() || I?.is_fork) && q.set(e, t) : sn(e));
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function As(e) {
|
|
881
881
|
if (e.effects !== null)
|
|
882
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort($e), t.teardown =
|
|
882
|
+
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort($e), t.teardown = xo, t.ac = null, jt(t, 0), bn(t));
|
|
883
883
|
}
|
|
884
|
-
function
|
|
884
|
+
function Vi(e) {
|
|
885
885
|
if (e.effects !== null)
|
|
886
886
|
for (const t of e.effects) t.teardown && Tt(t);
|
|
887
887
|
}
|
|
888
888
|
var Xr = /* @__PURE__ */ new Set(), rt = /* @__PURE__ */ new Map();
|
|
889
|
-
var
|
|
889
|
+
var ji = !1;
|
|
890
890
|
function st(e, t) {
|
|
891
891
|
var r = {
|
|
892
892
|
f: 0,
|
|
893
893
|
v: e,
|
|
894
894
|
reactions: null,
|
|
895
|
-
equals:
|
|
895
|
+
equals: mi,
|
|
896
896
|
rv: 0,
|
|
897
897
|
wv: 0
|
|
898
898
|
};
|
|
@@ -901,23 +901,23 @@ function st(e, t) {
|
|
|
901
901
|
// @__NO_SIDE_EFFECTS__
|
|
902
902
|
function z(e, t) {
|
|
903
903
|
const r = st(e, t);
|
|
904
|
-
return
|
|
904
|
+
return eo(r), r;
|
|
905
905
|
}
|
|
906
906
|
// @__NO_SIDE_EFFECTS__
|
|
907
|
-
function
|
|
907
|
+
function zi(e, t = !1, r = !0) {
|
|
908
908
|
const n = st(e);
|
|
909
|
-
if (t || (n.equals =
|
|
909
|
+
if (t || (n.equals = bi), Tr && r && W !== null && W.l !== null) {
|
|
910
910
|
var i;
|
|
911
911
|
((i = W.l).s ?? (i.s = [])).push(n);
|
|
912
912
|
}
|
|
913
913
|
return n;
|
|
914
914
|
}
|
|
915
915
|
function O(e, t, r = !1) {
|
|
916
|
-
$ !== null && (!de || ($.f & 131072) !== 0) && Wt() && ($.f & 4325394) !== 0 && (ne === null || !_t.call(ne, e)) &&
|
|
916
|
+
$ !== null && (!de || ($.f & 131072) !== 0) && Wt() && ($.f & 4325394) !== 0 && (ne === null || !_t.call(ne, e)) && Zo();
|
|
917
917
|
let n = r ? Xe(t) : t;
|
|
918
|
-
return
|
|
918
|
+
return wt(e, n, pr);
|
|
919
919
|
}
|
|
920
|
-
function
|
|
920
|
+
function wt(e, t, r = null) {
|
|
921
921
|
if (!e.equals(t)) {
|
|
922
922
|
rt.set(e, Re ? t : e.v);
|
|
923
923
|
var n = ct.ensure();
|
|
@@ -925,12 +925,12 @@ function yt(e, t, r = null) {
|
|
|
925
925
|
const i = e;
|
|
926
926
|
(e.f & 2048) !== 0 && hn(i), q === null && sn(i);
|
|
927
927
|
}
|
|
928
|
-
e.wv =
|
|
928
|
+
e.wv = ro(), Wi(e, ve, r), Wt() && A !== null && (A.f & 1024) !== 0 && (A.f & 96) === 0 && (te === null ? js([e]) : te.push(e)), !n.is_fork && Xr.size > 0 && !ji && Is();
|
|
929
929
|
}
|
|
930
930
|
return t;
|
|
931
931
|
}
|
|
932
|
-
function
|
|
933
|
-
|
|
932
|
+
function Is() {
|
|
933
|
+
ji = !1;
|
|
934
934
|
for (const e of Xr)
|
|
935
935
|
(e.f & 1024) !== 0 && N(e, lt), Ht(e) && Tt(e);
|
|
936
936
|
Xr.clear();
|
|
@@ -938,7 +938,7 @@ function ks() {
|
|
|
938
938
|
function Dt(e) {
|
|
939
939
|
O(e, e.v + 1);
|
|
940
940
|
}
|
|
941
|
-
function
|
|
941
|
+
function Wi(e, t, r) {
|
|
942
942
|
var n = e.reactions;
|
|
943
943
|
if (n !== null)
|
|
944
944
|
for (var i = Wt(), o = n.length, s = 0; s < o; s++) {
|
|
@@ -947,7 +947,7 @@ function ji(e, t, r) {
|
|
|
947
947
|
var u = (c & ve) === 0;
|
|
948
948
|
if (u && N(a, t), (c & 2) !== 0) {
|
|
949
949
|
var f = a;
|
|
950
|
-
q?.delete(f), (c & 65536) === 0 && (c & 512 && (a.f |= zt),
|
|
950
|
+
q?.delete(f), (c & 65536) === 0 && (c & 512 && (a.f |= zt), Wi(f, lt, r));
|
|
951
951
|
} else if (u) {
|
|
952
952
|
var p = a;
|
|
953
953
|
(c & 16) !== 0 && me !== null && me.add(p), r !== null ? r.push(p) : un(p);
|
|
@@ -955,12 +955,12 @@ function ji(e, t, r) {
|
|
|
955
955
|
}
|
|
956
956
|
}
|
|
957
957
|
}
|
|
958
|
-
var
|
|
958
|
+
var Es = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
959
959
|
function Xe(e) {
|
|
960
960
|
if (typeof e != "object" || e === null || xt in e) return e;
|
|
961
|
-
const t =
|
|
962
|
-
if (t !==
|
|
963
|
-
var r = /* @__PURE__ */ new Map(), n =
|
|
961
|
+
const t = pi(e);
|
|
962
|
+
if (t !== Mo && t !== Po) return e;
|
|
963
|
+
var r = /* @__PURE__ */ new Map(), n = hi(e), i = /* @__PURE__ */ z(0), o = null, s = nt, a = (p) => {
|
|
964
964
|
if (nt === s) return p();
|
|
965
965
|
var d = $, h = nt;
|
|
966
966
|
se(null), qn(s);
|
|
@@ -973,17 +973,17 @@ function Xe(e) {
|
|
|
973
973
|
function f(p) {
|
|
974
974
|
if (!u) {
|
|
975
975
|
u = !0, c = p, Dn(i, `${c} version`);
|
|
976
|
-
for (const [d, h] of r) Dn(h,
|
|
976
|
+
for (const [d, h] of r) Dn(h, $s(c, d));
|
|
977
977
|
u = !1;
|
|
978
978
|
}
|
|
979
979
|
}
|
|
980
980
|
return new Proxy(e, {
|
|
981
981
|
defineProperty(p, d, h) {
|
|
982
|
-
(!("value" in h) || h.configurable === !1 || h.enumerable === !1 || h.writable === !1) &&
|
|
982
|
+
(!("value" in h) || h.configurable === !1 || h.enumerable === !1 || h.writable === !1) && Jo();
|
|
983
983
|
var g = r.get(d);
|
|
984
984
|
return g === void 0 ? a(() => {
|
|
985
|
-
var
|
|
986
|
-
return r.set(d,
|
|
985
|
+
var w = /* @__PURE__ */ z(h.value, o);
|
|
986
|
+
return r.set(d, w), w;
|
|
987
987
|
}) : O(g, h.value, !0), !0;
|
|
988
988
|
},
|
|
989
989
|
deleteProperty(p, d) {
|
|
@@ -999,10 +999,10 @@ function Xe(e) {
|
|
|
999
999
|
},
|
|
1000
1000
|
get(p, d, h) {
|
|
1001
1001
|
if (d === xt) return e;
|
|
1002
|
-
var g = r.get(d),
|
|
1003
|
-
if (g === void 0 && (!
|
|
1004
|
-
var
|
|
1005
|
-
return
|
|
1002
|
+
var g = r.get(d), w = d in p;
|
|
1003
|
+
if (g === void 0 && (!w || Qe(p, d)?.writable) && (g = a(() => {
|
|
1004
|
+
var y = /* @__PURE__ */ z(Xe(w ? p[d] : j), o);
|
|
1005
|
+
return y;
|
|
1006
1006
|
}), r.set(d, g)), g !== void 0) {
|
|
1007
1007
|
var v = _(g);
|
|
1008
1008
|
return v === j ? void 0 : v;
|
|
@@ -1015,8 +1015,8 @@ function Xe(e) {
|
|
|
1015
1015
|
var g = r.get(d);
|
|
1016
1016
|
g && (h.value = _(g));
|
|
1017
1017
|
} else if (h === void 0) {
|
|
1018
|
-
var
|
|
1019
|
-
if (
|
|
1018
|
+
var w = r.get(d), v = w?.v;
|
|
1019
|
+
if (w !== void 0 && v !== j) return {
|
|
1020
1020
|
enumerable: !0,
|
|
1021
1021
|
configurable: !0,
|
|
1022
1022
|
value: v,
|
|
@@ -1029,22 +1029,22 @@ function Xe(e) {
|
|
|
1029
1029
|
if (d === xt) return !0;
|
|
1030
1030
|
var h = r.get(d), g = h !== void 0 && h.v !== j || Reflect.has(p, d);
|
|
1031
1031
|
return (h !== void 0 || A !== null && (!g || Qe(p, d)?.writable)) && (h === void 0 && (h = a(() => {
|
|
1032
|
-
var
|
|
1033
|
-
return
|
|
1032
|
+
var w = /* @__PURE__ */ z(g ? Xe(p[d]) : j, o);
|
|
1033
|
+
return w;
|
|
1034
1034
|
}), r.set(d, h)), _(h) === j) ? !1 : g;
|
|
1035
1035
|
},
|
|
1036
1036
|
set(p, d, h, g) {
|
|
1037
|
-
var
|
|
1038
|
-
if (n && d === "length") for (var
|
|
1039
|
-
var x = r.get(
|
|
1040
|
-
x !== void 0 ? O(x, j) :
|
|
1037
|
+
var w = r.get(d), v = d in p;
|
|
1038
|
+
if (n && d === "length") for (var y = h; y < w.v; y += 1) {
|
|
1039
|
+
var x = r.get(y + "");
|
|
1040
|
+
x !== void 0 ? O(x, j) : y in p && (x = a(() => /* @__PURE__ */ z(j, o)), r.set(y + "", x));
|
|
1041
1041
|
}
|
|
1042
|
-
if (
|
|
1043
|
-
(!v || Qe(p, d)?.writable) && (
|
|
1042
|
+
if (w === void 0)
|
|
1043
|
+
(!v || Qe(p, d)?.writable) && (w = a(() => /* @__PURE__ */ z(void 0, o)), O(w, Xe(h)), r.set(d, w));
|
|
1044
1044
|
else {
|
|
1045
|
-
v =
|
|
1045
|
+
v = w.v !== j;
|
|
1046
1046
|
var E = a(() => Xe(h));
|
|
1047
|
-
O(
|
|
1047
|
+
O(w, E);
|
|
1048
1048
|
}
|
|
1049
1049
|
var P = Reflect.getOwnPropertyDescriptor(p, d);
|
|
1050
1050
|
if (P?.set && P.set.call(g, h), !v) {
|
|
@@ -1058,27 +1058,27 @@ function Xe(e) {
|
|
|
1058
1058
|
},
|
|
1059
1059
|
ownKeys(p) {
|
|
1060
1060
|
_(i);
|
|
1061
|
-
var d = Reflect.ownKeys(p).filter((
|
|
1062
|
-
var v = r.get(
|
|
1061
|
+
var d = Reflect.ownKeys(p).filter((w) => {
|
|
1062
|
+
var v = r.get(w);
|
|
1063
1063
|
return v === void 0 || v.v !== j;
|
|
1064
1064
|
});
|
|
1065
1065
|
for (var [h, g] of r) g.v !== j && !(h in p) && d.push(h);
|
|
1066
1066
|
return d;
|
|
1067
1067
|
},
|
|
1068
1068
|
setPrototypeOf() {
|
|
1069
|
-
|
|
1069
|
+
Qo();
|
|
1070
1070
|
}
|
|
1071
1071
|
});
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1074
|
-
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` :
|
|
1073
|
+
function $s(e, t) {
|
|
1074
|
+
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : Es.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
1075
1075
|
}
|
|
1076
|
-
var Hn,
|
|
1076
|
+
var Hn, Os, Hi, Bi, Fi;
|
|
1077
1077
|
function Jr() {
|
|
1078
1078
|
if (Hn === void 0) {
|
|
1079
|
-
Hn = window,
|
|
1079
|
+
Hn = window, Os = document, Hi = /Firefox/.test(navigator.userAgent);
|
|
1080
1080
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1081
|
-
|
|
1081
|
+
Bi = Qe(t, "firstChild").get, Fi = Qe(t, "nextSibling").get, Pn(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Pn(r) && (r.__t = void 0);
|
|
1082
1082
|
}
|
|
1083
1083
|
}
|
|
1084
1084
|
function pe(e = "") {
|
|
@@ -1086,16 +1086,16 @@ function pe(e = "") {
|
|
|
1086
1086
|
}
|
|
1087
1087
|
// @__NO_SIDE_EFFECTS__
|
|
1088
1088
|
function at(e) {
|
|
1089
|
-
return
|
|
1089
|
+
return Bi.call(e);
|
|
1090
1090
|
}
|
|
1091
1091
|
// @__NO_SIDE_EFFECTS__
|
|
1092
1092
|
function Se(e) {
|
|
1093
|
-
return
|
|
1093
|
+
return Fi.call(e);
|
|
1094
1094
|
}
|
|
1095
1095
|
function Zt(e, t) {
|
|
1096
|
-
if (!
|
|
1097
|
-
var r = /* @__PURE__ */ at(
|
|
1098
|
-
if (r === null) r =
|
|
1096
|
+
if (!M) return /* @__PURE__ */ at(e);
|
|
1097
|
+
var r = /* @__PURE__ */ at(C);
|
|
1098
|
+
if (r === null) r = C.appendChild(pe());
|
|
1099
1099
|
else if (t && r.nodeType !== 3) {
|
|
1100
1100
|
var n = pe();
|
|
1101
1101
|
return r?.before(n), X(n), n;
|
|
@@ -1103,24 +1103,24 @@ function Zt(e, t) {
|
|
|
1103
1103
|
return t && vn(r), X(r), r;
|
|
1104
1104
|
}
|
|
1105
1105
|
function Rr(e, t = !1) {
|
|
1106
|
-
if (!
|
|
1106
|
+
if (!M) {
|
|
1107
1107
|
var r = /* @__PURE__ */ at(e);
|
|
1108
1108
|
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Se(r) : r;
|
|
1109
1109
|
}
|
|
1110
1110
|
if (t) {
|
|
1111
|
-
if (
|
|
1111
|
+
if (C?.nodeType !== 3) {
|
|
1112
1112
|
var n = pe();
|
|
1113
|
-
return
|
|
1113
|
+
return C?.before(n), X(n), n;
|
|
1114
1114
|
}
|
|
1115
|
-
vn(
|
|
1115
|
+
vn(C);
|
|
1116
1116
|
}
|
|
1117
|
-
return
|
|
1117
|
+
return C;
|
|
1118
1118
|
}
|
|
1119
1119
|
function Pe(e, t = 1, r = !1) {
|
|
1120
|
-
let n =
|
|
1120
|
+
let n = M ? C : e;
|
|
1121
1121
|
for (var i; t--; )
|
|
1122
1122
|
i = n, n = /* @__PURE__ */ Se(n);
|
|
1123
|
-
if (!
|
|
1123
|
+
if (!M) return n;
|
|
1124
1124
|
if (r) {
|
|
1125
1125
|
if (n?.nodeType !== 3) {
|
|
1126
1126
|
var o = pe();
|
|
@@ -1130,10 +1130,10 @@ function Pe(e, t = 1, r = !1) {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
return X(n), n;
|
|
1132
1132
|
}
|
|
1133
|
-
function
|
|
1133
|
+
function qi(e) {
|
|
1134
1134
|
e.textContent = "";
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function Ui() {
|
|
1137
1137
|
return !Le || me !== null ? !1 : (A.f & nn) !== 0;
|
|
1138
1138
|
}
|
|
1139
1139
|
function pn(e, t, r) {
|
|
@@ -1146,7 +1146,7 @@ function vn(e) {
|
|
|
1146
1146
|
for (; t !== null && t.nodeType === 3; )
|
|
1147
1147
|
t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1148
1148
|
}
|
|
1149
|
-
function
|
|
1149
|
+
function Gi(e) {
|
|
1150
1150
|
var t = $, r = A;
|
|
1151
1151
|
se(null), Te(null);
|
|
1152
1152
|
try {
|
|
@@ -1155,10 +1155,10 @@ function qi(e) {
|
|
|
1155
1155
|
se(t), Te(r);
|
|
1156
1156
|
}
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1159
|
-
A === null && ($ === null &&
|
|
1158
|
+
function Ls(e) {
|
|
1159
|
+
A === null && ($ === null && Go(e), Uo()), Re && qo(e);
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function Rs(e, t) {
|
|
1162
1162
|
var r = t.last;
|
|
1163
1163
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1164
1164
|
}
|
|
@@ -1192,7 +1192,7 @@ function ke(e, t) {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
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 |= on));
|
|
1194
1194
|
}
|
|
1195
|
-
if (i !== null && (i.parent = r, r !== null &&
|
|
1195
|
+
if (i !== null && (i.parent = r, r !== null && Rs(i, r), $ !== null && ($.f & 2) !== 0 && (e & 64) === 0)) {
|
|
1196
1196
|
var o = $;
|
|
1197
1197
|
(o.effects ?? (o.effects = [])).push(i);
|
|
1198
1198
|
}
|
|
@@ -1201,29 +1201,29 @@ function ke(e, t) {
|
|
|
1201
1201
|
function gn() {
|
|
1202
1202
|
return $ !== null && !de;
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1204
|
+
function Cs(e) {
|
|
1205
1205
|
const t = ke(8, null);
|
|
1206
1206
|
return N(t, ie), t.teardown = e, t;
|
|
1207
1207
|
}
|
|
1208
1208
|
function Bn(e) {
|
|
1209
|
-
|
|
1209
|
+
Ls("$effect");
|
|
1210
1210
|
var t = A.f;
|
|
1211
1211
|
if (!$ && (t & 32) !== 0 && (t & 32768) === 0) {
|
|
1212
1212
|
var r = W;
|
|
1213
1213
|
(r.e ?? (r.e = [])).push(e);
|
|
1214
|
-
} else return
|
|
1214
|
+
} else return Ki(e);
|
|
1215
1215
|
}
|
|
1216
|
-
function
|
|
1217
|
-
return ke(4 |
|
|
1216
|
+
function Ki(e) {
|
|
1217
|
+
return ke(4 | Vo, e);
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1219
|
+
function Ms(e) {
|
|
1220
1220
|
ct.ensure();
|
|
1221
1221
|
const t = ke(64 | St, e);
|
|
1222
1222
|
return () => {
|
|
1223
1223
|
U(t);
|
|
1224
1224
|
};
|
|
1225
1225
|
}
|
|
1226
|
-
function
|
|
1226
|
+
function Ps(e) {
|
|
1227
1227
|
ct.ensure();
|
|
1228
1228
|
const t = ke(64 | St, e);
|
|
1229
1229
|
return (r = {}) => new Promise((n) => {
|
|
@@ -1232,17 +1232,17 @@ function Ms(e) {
|
|
|
1232
1232
|
}) : (U(t), n(void 0));
|
|
1233
1233
|
});
|
|
1234
1234
|
}
|
|
1235
|
-
function
|
|
1235
|
+
function Yi(e) {
|
|
1236
1236
|
return ke(4, e);
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1239
|
-
return ke(
|
|
1238
|
+
function xs(e) {
|
|
1239
|
+
return ke(jo | St, e);
|
|
1240
1240
|
}
|
|
1241
1241
|
function _n(e, t = 0) {
|
|
1242
1242
|
return ke(8 | t, e);
|
|
1243
1243
|
}
|
|
1244
1244
|
function er(e, t = [], r = [], n = []) {
|
|
1245
|
-
|
|
1245
|
+
ws(n, t, r, (i) => {
|
|
1246
1246
|
ke(8, () => e(...i.map(_)));
|
|
1247
1247
|
});
|
|
1248
1248
|
}
|
|
@@ -1253,7 +1253,7 @@ function mn(e, t = 0) {
|
|
|
1253
1253
|
function oe(e) {
|
|
1254
1254
|
return ke(32 | St, e);
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1256
|
+
function Xi(e) {
|
|
1257
1257
|
var t = e.teardown;
|
|
1258
1258
|
if (t !== null) {
|
|
1259
1259
|
const r = Re, n = $;
|
|
@@ -1269,14 +1269,14 @@ function bn(e, t = !1) {
|
|
|
1269
1269
|
var r = e.first;
|
|
1270
1270
|
for (e.first = e.last = null; r !== null; ) {
|
|
1271
1271
|
const i = r.ac;
|
|
1272
|
-
i !== null &&
|
|
1272
|
+
i !== null && Gi(() => {
|
|
1273
1273
|
i.abort($e);
|
|
1274
1274
|
});
|
|
1275
1275
|
var n = r.next;
|
|
1276
1276
|
(r.f & 64) !== 0 ? r.parent = null : U(r, t), r = n;
|
|
1277
1277
|
}
|
|
1278
1278
|
}
|
|
1279
|
-
function
|
|
1279
|
+
function Ns(e) {
|
|
1280
1280
|
for (var t = e.first; t !== null; ) {
|
|
1281
1281
|
var r = t.next;
|
|
1282
1282
|
(t.f & 32) === 0 && U(t), t = r;
|
|
@@ -1284,26 +1284,26 @@ function Ps(e) {
|
|
|
1284
1284
|
}
|
|
1285
1285
|
function U(e, t = !0) {
|
|
1286
1286
|
var r = !1;
|
|
1287
|
-
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (
|
|
1287
|
+
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (Ds(e.nodes.start, e.nodes.end), r = !0), N(e, xn), bn(e, t && !r), jt(e, 0);
|
|
1288
1288
|
var n = e.nodes && e.nodes.t;
|
|
1289
1289
|
if (n !== null) for (const o of n) o.stop();
|
|
1290
|
-
|
|
1290
|
+
Xi(e), e.f ^= xn, e.f |= Do;
|
|
1291
1291
|
var i = e.parent;
|
|
1292
|
-
i !== null && i.first !== null &&
|
|
1292
|
+
i !== null && i.first !== null && Ji(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1293
1293
|
}
|
|
1294
|
-
function
|
|
1294
|
+
function Ds(e, t) {
|
|
1295
1295
|
for (; e !== null; ) {
|
|
1296
1296
|
var r = e === t ? null : /* @__PURE__ */ Se(e);
|
|
1297
1297
|
e.remove(), e = r;
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
1300
|
-
function
|
|
1300
|
+
function Ji(e) {
|
|
1301
1301
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1302
1302
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1303
1303
|
}
|
|
1304
1304
|
function ut(e, t, r = !0) {
|
|
1305
1305
|
var n = [];
|
|
1306
|
-
|
|
1306
|
+
Qi(e, n, !0);
|
|
1307
1307
|
var i = () => {
|
|
1308
1308
|
r && U(e), t && t();
|
|
1309
1309
|
}, o = n.length;
|
|
@@ -1312,7 +1312,7 @@ function ut(e, t, r = !0) {
|
|
|
1312
1312
|
for (var a of n) a.out(s);
|
|
1313
1313
|
} else i();
|
|
1314
1314
|
}
|
|
1315
|
-
function
|
|
1315
|
+
function Qi(e, t, r) {
|
|
1316
1316
|
if ((e.f & 8192) === 0) {
|
|
1317
1317
|
e.f ^= rn;
|
|
1318
1318
|
var n = e.nodes && e.nodes.t;
|
|
@@ -1322,35 +1322,35 @@ function Xi(e, t, r) {
|
|
|
1322
1322
|
var o = i.next;
|
|
1323
1323
|
if ((i.f & 64) === 0) {
|
|
1324
1324
|
var s = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1325
|
-
|
|
1325
|
+
Qi(i, t, s ? r : !1);
|
|
1326
1326
|
}
|
|
1327
1327
|
i = o;
|
|
1328
1328
|
}
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1332
|
-
|
|
1331
|
+
function yn(e) {
|
|
1332
|
+
Zi(e, !0);
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function Zi(e, t) {
|
|
1335
1335
|
if ((e.f & 8192) !== 0) {
|
|
1336
1336
|
e.f ^= rn, (e.f & 1024) === 0 && (N(e, ve), ct.ensure().schedule(e));
|
|
1337
1337
|
for (var r = e.first; r !== null; ) {
|
|
1338
1338
|
var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1339
|
-
|
|
1339
|
+
Zi(r, i ? t : !1), r = n;
|
|
1340
1340
|
}
|
|
1341
1341
|
var o = e.nodes && e.nodes.t;
|
|
1342
1342
|
if (o !== null)
|
|
1343
1343
|
for (const s of o) (s.is_global || t) && s.in();
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
|
-
function
|
|
1346
|
+
function wn(e, t) {
|
|
1347
1347
|
if (e.nodes)
|
|
1348
1348
|
for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
|
|
1349
1349
|
var i = r === n ? null : /* @__PURE__ */ Se(r);
|
|
1350
1350
|
t.append(r), r = i;
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
|
-
var
|
|
1353
|
+
var Vs = null, sr = !1, Re = !1;
|
|
1354
1354
|
function Fn(e) {
|
|
1355
1355
|
Re = e;
|
|
1356
1356
|
}
|
|
@@ -1363,19 +1363,19 @@ function Te(e) {
|
|
|
1363
1363
|
A = e;
|
|
1364
1364
|
}
|
|
1365
1365
|
var ne = null;
|
|
1366
|
-
function
|
|
1366
|
+
function eo(e) {
|
|
1367
1367
|
$ !== null && (!Le || ($.f & 2) !== 0) && (ne === null ? ne = [e] : ne.push(e));
|
|
1368
1368
|
}
|
|
1369
1369
|
var Y = null, Q = 0, te = null;
|
|
1370
|
-
function
|
|
1370
|
+
function js(e) {
|
|
1371
1371
|
te = e;
|
|
1372
1372
|
}
|
|
1373
|
-
var
|
|
1373
|
+
var to = 1, Je = 0, nt = Je;
|
|
1374
1374
|
function qn(e) {
|
|
1375
1375
|
nt = e;
|
|
1376
1376
|
}
|
|
1377
|
-
function
|
|
1378
|
-
return ++
|
|
1377
|
+
function ro() {
|
|
1378
|
+
return ++to;
|
|
1379
1379
|
}
|
|
1380
1380
|
function Ht(e) {
|
|
1381
1381
|
var t = e.f;
|
|
@@ -1383,23 +1383,23 @@ function Ht(e) {
|
|
|
1383
1383
|
if (t & 2 && (e.f &= ~zt), (t & 4096) !== 0) {
|
|
1384
1384
|
for (var r = e.deps, n = r.length, i = 0; i < n; i++) {
|
|
1385
1385
|
var o = r[i];
|
|
1386
|
-
if (Ht(o) &&
|
|
1386
|
+
if (Ht(o) && Di(o), o.wv > e.wv) return !0;
|
|
1387
1387
|
}
|
|
1388
1388
|
(t & 512) !== 0 && q === null && N(e, ie);
|
|
1389
1389
|
}
|
|
1390
1390
|
return !1;
|
|
1391
1391
|
}
|
|
1392
|
-
function
|
|
1392
|
+
function no(e, t, r = !0) {
|
|
1393
1393
|
var n = e.reactions;
|
|
1394
1394
|
if (n !== null && !(!Le && ne !== null && _t.call(ne, e)))
|
|
1395
1395
|
for (var i = 0; i < n.length; i++) {
|
|
1396
1396
|
var o = n[i];
|
|
1397
|
-
(o.f & 2) !== 0 ?
|
|
1397
|
+
(o.f & 2) !== 0 ? no(o, t, !1) : t === o && (r ? N(o, ve) : (o.f & 1024) !== 0 && N(o, lt), un(o));
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
1400
|
-
function
|
|
1400
|
+
function io(e) {
|
|
1401
1401
|
var t = Y, r = Q, n = te, i = $, o = ne, s = W, a = de, c = nt, u = e.f;
|
|
1402
|
-
Y = null, Q = 0, te = null, $ = (u & 96) === 0 ? e : null, ne = null, mt(e.ctx), de = !1, nt = ++Je, e.ac !== null && (
|
|
1402
|
+
Y = null, Q = 0, te = null, $ = (u & 96) === 0 ? e : null, ne = null, mt(e.ctx), de = !1, nt = ++Je, e.ac !== null && (Gi(() => {
|
|
1403
1403
|
e.ac.abort($e);
|
|
1404
1404
|
}), e.ac = null);
|
|
1405
1405
|
try {
|
|
@@ -1413,11 +1413,11 @@ function ro(e) {
|
|
|
1413
1413
|
for (d.length = Q + Y.length, g = 0; g < Y.length; g++) d[Q + g] = Y[g];
|
|
1414
1414
|
else e.deps = d = Y;
|
|
1415
1415
|
if (gn() && (e.f & 512) !== 0) for (g = Q; g < d.length; g++) {
|
|
1416
|
-
var
|
|
1417
|
-
((
|
|
1416
|
+
var w;
|
|
1417
|
+
((w = d[g]).reactions ?? (w.reactions = [])).push(e);
|
|
1418
1418
|
}
|
|
1419
1419
|
} else !h && d !== null && Q < d.length && (jt(e, Q), d.length = Q);
|
|
1420
|
-
if (Wt() && te !== null && !de && d !== null && (e.f & 6146) === 0) for (g = 0; g < te.length; g++)
|
|
1420
|
+
if (Wt() && te !== null && !de && d !== null && (e.f & 6146) === 0) for (g = 0; g < te.length; g++) no(te[g], e);
|
|
1421
1421
|
if (i !== null && i !== e) {
|
|
1422
1422
|
if (Je++, i.deps !== null) for (let v = 0; v < r; v += 1) i.deps[v].rv = Je;
|
|
1423
1423
|
if (t !== null) for (const v of t) v.rv = Je;
|
|
@@ -1425,15 +1425,15 @@ function ro(e) {
|
|
|
1425
1425
|
}
|
|
1426
1426
|
return (e.f & 8388608) !== 0 && (e.f ^= dr), p;
|
|
1427
1427
|
} catch (v) {
|
|
1428
|
-
return
|
|
1428
|
+
return Si(v);
|
|
1429
1429
|
} finally {
|
|
1430
1430
|
e.f ^= Nn, Y = t, Q = r, te = n, $ = i, ne = o, mt(s), de = a, nt = c;
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function zs(e, t) {
|
|
1434
1434
|
let r = t.reactions;
|
|
1435
1435
|
if (r !== null) {
|
|
1436
|
-
var n =
|
|
1436
|
+
var n = Ro.call(r, e);
|
|
1437
1437
|
if (n !== -1) {
|
|
1438
1438
|
var i = r.length - 1;
|
|
1439
1439
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
@@ -1441,13 +1441,13 @@ function Vs(e, t) {
|
|
|
1441
1441
|
}
|
|
1442
1442
|
if (r === null && (t.f & 2) !== 0 && (Y === null || !_t.call(Y, t))) {
|
|
1443
1443
|
var o = t;
|
|
1444
|
-
(o.f & 512) !== 0 && (o.f ^= 512, o.f &= ~zt), o.v !== j && sn(o),
|
|
1444
|
+
(o.f & 512) !== 0 && (o.f ^= 512, o.f &= ~zt), o.v !== j && sn(o), As(o), jt(o, 0);
|
|
1445
1445
|
}
|
|
1446
1446
|
}
|
|
1447
1447
|
function jt(e, t) {
|
|
1448
1448
|
var r = e.deps;
|
|
1449
1449
|
if (r !== null)
|
|
1450
|
-
for (var n = t; n < r.length; n++)
|
|
1450
|
+
for (var n = t; n < r.length; n++) zs(e, r[n]);
|
|
1451
1451
|
}
|
|
1452
1452
|
function Tt(e) {
|
|
1453
1453
|
var t = e.f;
|
|
@@ -1457,9 +1457,9 @@ function Tt(e) {
|
|
|
1457
1457
|
if (A = e, sr = !0, 0)
|
|
1458
1458
|
var i, o;
|
|
1459
1459
|
try {
|
|
1460
|
-
(t & 16777232) !== 0 ?
|
|
1461
|
-
var s =
|
|
1462
|
-
if (e.teardown = typeof s == "function" ? s : null, e.wv =
|
|
1460
|
+
(t & 16777232) !== 0 ? Ns(e) : bn(e), Xi(e);
|
|
1461
|
+
var s = io(e);
|
|
1462
|
+
if (e.teardown = typeof s == "function" ? s : null, e.wv = to, 0)
|
|
1463
1463
|
for (var a of e.deps) ;
|
|
1464
1464
|
} finally {
|
|
1465
1465
|
sr = n, A = r;
|
|
@@ -1468,7 +1468,7 @@ function Tt(e) {
|
|
|
1468
1468
|
}
|
|
1469
1469
|
function _(e) {
|
|
1470
1470
|
var t = (e.f & 2) !== 0;
|
|
1471
|
-
if (
|
|
1471
|
+
if (Vs?.add(e), $ !== null && !de && !(A !== null && (A.f & 16384) !== 0) && (ne === null || !_t.call(ne, e))) {
|
|
1472
1472
|
var r = $.deps;
|
|
1473
1473
|
if (($.f & 2097152) !== 0)
|
|
1474
1474
|
e.rv < Je && (e.rv = Je, Y === null && r !== null && r[Q] === e ? Q++ : Y === null ? Y = [e] : Y.push(e));
|
|
@@ -1492,25 +1492,25 @@ function _(e) {
|
|
|
1492
1492
|
var c = e;
|
|
1493
1493
|
if (Re) {
|
|
1494
1494
|
var u = c.v;
|
|
1495
|
-
return ((c.f & 1024) === 0 && c.reactions !== null ||
|
|
1495
|
+
return ((c.f & 1024) === 0 && c.reactions !== null || so(c)) && (u = hn(c)), rt.set(c, u), u;
|
|
1496
1496
|
}
|
|
1497
1497
|
var f = (c.f & 512) === 0 && !de && $ !== null && (sr || ($.f & 512) !== 0), p = (c.f & nn) === 0;
|
|
1498
|
-
Ht(c) && (f && (c.f |= 512),
|
|
1498
|
+
Ht(c) && (f && (c.f |= 512), Di(c)), f && !p && (Vi(c), oo(c));
|
|
1499
1499
|
}
|
|
1500
1500
|
if (q?.has(e)) return q.get(e);
|
|
1501
1501
|
if ((e.f & 8388608) !== 0) throw e.v;
|
|
1502
1502
|
return e.v;
|
|
1503
1503
|
}
|
|
1504
|
-
function
|
|
1504
|
+
function oo(e) {
|
|
1505
1505
|
if (e.f |= 512, e.deps !== null)
|
|
1506
1506
|
for (const t of e.deps)
|
|
1507
|
-
(t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (
|
|
1507
|
+
(t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (Vi(t), oo(t));
|
|
1508
1508
|
}
|
|
1509
|
-
function
|
|
1509
|
+
function so(e) {
|
|
1510
1510
|
if (e.v === j) return !0;
|
|
1511
1511
|
if (e.deps === null) return !1;
|
|
1512
1512
|
for (const t of e.deps)
|
|
1513
|
-
if (rt.has(t) || (t.f & 2) !== 0 &&
|
|
1513
|
+
if (rt.has(t) || (t.f & 2) !== 0 && so(t)) return !0;
|
|
1514
1514
|
return !1;
|
|
1515
1515
|
}
|
|
1516
1516
|
function Tn(e) {
|
|
@@ -1521,12 +1521,12 @@ function Tn(e) {
|
|
|
1521
1521
|
de = t;
|
|
1522
1522
|
}
|
|
1523
1523
|
}
|
|
1524
|
-
var pt = /* @__PURE__ */ Symbol("events"),
|
|
1524
|
+
var pt = /* @__PURE__ */ Symbol("events"), ao = /* @__PURE__ */ new Set(), Qr = /* @__PURE__ */ new Set();
|
|
1525
1525
|
function $t(e, t, r) {
|
|
1526
1526
|
(t[pt] ?? (t[pt] = {}))[e] = r;
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1529
|
-
for (var t = 0; t < e.length; t++)
|
|
1528
|
+
function Ws(e) {
|
|
1529
|
+
for (var t = 0; t < e.length; t++) ao.add(e[t]);
|
|
1530
1530
|
for (var r of Qr) r(e);
|
|
1531
1531
|
}
|
|
1532
1532
|
var Un = null;
|
|
@@ -1557,8 +1557,8 @@ function Gn(e) {
|
|
|
1557
1557
|
for (var d, h = []; o !== null; ) {
|
|
1558
1558
|
var g = o.assignedSlot || o.parentNode || o.host || null;
|
|
1559
1559
|
try {
|
|
1560
|
-
var
|
|
1561
|
-
|
|
1560
|
+
var w = o[pt]?.[n];
|
|
1561
|
+
w != null && (!o.disabled || e.target === o) && w.call(o, e);
|
|
1562
1562
|
} catch (v) {
|
|
1563
1563
|
d ? h.push(v) : d = v;
|
|
1564
1564
|
}
|
|
@@ -1576,13 +1576,13 @@ function Gn(e) {
|
|
|
1576
1576
|
}
|
|
1577
1577
|
}
|
|
1578
1578
|
}
|
|
1579
|
-
var
|
|
1580
|
-
function
|
|
1581
|
-
return
|
|
1579
|
+
var Hs = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1580
|
+
function Bs(e) {
|
|
1581
|
+
return Hs?.createHTML(e) ?? e;
|
|
1582
1582
|
}
|
|
1583
|
-
function
|
|
1583
|
+
function Fs(e) {
|
|
1584
1584
|
var t = pn("template");
|
|
1585
|
-
return t.innerHTML =
|
|
1585
|
+
return t.innerHTML = Bs(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1586
1586
|
}
|
|
1587
1587
|
function ar(e, t) {
|
|
1588
1588
|
var r = A;
|
|
@@ -1597,10 +1597,10 @@ function ar(e, t) {
|
|
|
1597
1597
|
function ft(e, t) {
|
|
1598
1598
|
var r = (t & 1) !== 0, n = (t & 2) !== 0, i, o = !e.startsWith("<!>");
|
|
1599
1599
|
return () => {
|
|
1600
|
-
if (
|
|
1601
|
-
return ar(
|
|
1602
|
-
i === void 0 && (i =
|
|
1603
|
-
var s = n ||
|
|
1600
|
+
if (M)
|
|
1601
|
+
return ar(C, null), C;
|
|
1602
|
+
i === void 0 && (i = Fs(o ? e : "<!>" + e), r || (i = /* @__PURE__ */ at(i)));
|
|
1603
|
+
var s = n || Hi ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1604
1604
|
if (r) {
|
|
1605
1605
|
var a = /* @__PURE__ */ at(s), c = s.lastChild;
|
|
1606
1606
|
ar(a, c);
|
|
@@ -1609,14 +1609,14 @@ function ft(e, t) {
|
|
|
1609
1609
|
};
|
|
1610
1610
|
}
|
|
1611
1611
|
function je(e, t) {
|
|
1612
|
-
if (
|
|
1612
|
+
if (M) {
|
|
1613
1613
|
var r = A;
|
|
1614
|
-
((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end =
|
|
1614
|
+
((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = C), wr();
|
|
1615
1615
|
return;
|
|
1616
1616
|
}
|
|
1617
1617
|
e !== null && e.before(t);
|
|
1618
1618
|
}
|
|
1619
|
-
var
|
|
1619
|
+
var qs = [
|
|
1620
1620
|
"allowfullscreen",
|
|
1621
1621
|
"async",
|
|
1622
1622
|
"autofocus",
|
|
@@ -1645,8 +1645,8 @@ var Bs = [
|
|
|
1645
1645
|
"defer",
|
|
1646
1646
|
"disablepictureinpicture",
|
|
1647
1647
|
"disableremoteplayback"
|
|
1648
|
-
],
|
|
1649
|
-
...
|
|
1648
|
+
], Ml = [
|
|
1649
|
+
...qs,
|
|
1650
1650
|
"formNoValidate",
|
|
1651
1651
|
"isMap",
|
|
1652
1652
|
"noModule",
|
|
@@ -1661,17 +1661,17 @@ var Bs = [
|
|
|
1661
1661
|
"allowFullscreen",
|
|
1662
1662
|
"disablePictureInPicture",
|
|
1663
1663
|
"disableRemotePlayback"
|
|
1664
|
-
],
|
|
1665
|
-
function
|
|
1666
|
-
return
|
|
1664
|
+
], Us = ["touchstart", "touchmove"];
|
|
1665
|
+
function Gs(e) {
|
|
1666
|
+
return Us.includes(e);
|
|
1667
1667
|
}
|
|
1668
|
-
var
|
|
1668
|
+
var Ks = [
|
|
1669
1669
|
"$state",
|
|
1670
1670
|
"$state.raw",
|
|
1671
1671
|
"$derived",
|
|
1672
1672
|
"$derived.by"
|
|
1673
|
-
],
|
|
1674
|
-
...
|
|
1673
|
+
], Pl = [
|
|
1674
|
+
...Ks,
|
|
1675
1675
|
"$state.eager",
|
|
1676
1676
|
"$state.snapshot",
|
|
1677
1677
|
"$props",
|
|
@@ -1691,17 +1691,17 @@ function Yn(e, t) {
|
|
|
1691
1691
|
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1692
1692
|
r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = `${r}`);
|
|
1693
1693
|
}
|
|
1694
|
-
function
|
|
1695
|
-
return
|
|
1694
|
+
function lo(e, t) {
|
|
1695
|
+
return co(e, t);
|
|
1696
1696
|
}
|
|
1697
|
-
function
|
|
1697
|
+
function Ys(e, t) {
|
|
1698
1698
|
Jr(), t.intro = t.intro ?? !1;
|
|
1699
|
-
const r = t.target, n =
|
|
1699
|
+
const r = t.target, n = M, i = C;
|
|
1700
1700
|
try {
|
|
1701
1701
|
for (var o = /* @__PURE__ */ at(r); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ Se(o);
|
|
1702
1702
|
if (!o) throw gt;
|
|
1703
1703
|
Oe(!0), X(o);
|
|
1704
|
-
const s =
|
|
1704
|
+
const s = co(e, {
|
|
1705
1705
|
...t,
|
|
1706
1706
|
anchor: o
|
|
1707
1707
|
});
|
|
@@ -1709,43 +1709,43 @@ function Gs(e, t) {
|
|
|
1709
1709
|
} catch (s) {
|
|
1710
1710
|
if (s instanceof Error && s.message.split(`
|
|
1711
1711
|
`).some((a) => a.startsWith("https://svelte.dev/e/"))) throw s;
|
|
1712
|
-
return s !== gt && console.warn("Failed to hydrate: ", s), t.recover === !1 &&
|
|
1712
|
+
return s !== gt && console.warn("Failed to hydrate: ", s), t.recover === !1 && Yo(), Jr(), qi(r), Oe(!1), lo(e, t);
|
|
1713
1713
|
} finally {
|
|
1714
1714
|
Oe(n), X(i);
|
|
1715
1715
|
}
|
|
1716
1716
|
}
|
|
1717
1717
|
var tr = /* @__PURE__ */ new Map();
|
|
1718
|
-
function
|
|
1718
|
+
function co(e, { target: t, anchor: r, props: n = {}, events: i, context: o, intro: s = !0, transformError: a }) {
|
|
1719
1719
|
Jr();
|
|
1720
|
-
var c = void 0, u =
|
|
1720
|
+
var c = void 0, u = Ps(() => {
|
|
1721
1721
|
var f = r ?? t.appendChild(pe());
|
|
1722
|
-
|
|
1722
|
+
gs(f, { pending: () => {
|
|
1723
1723
|
} }, (h) => {
|
|
1724
|
-
|
|
1724
|
+
yi({});
|
|
1725
1725
|
var g = W;
|
|
1726
|
-
if (o && (g.c = o), i && (n.$$events = i),
|
|
1727
|
-
throw
|
|
1728
|
-
|
|
1726
|
+
if (o && (g.c = o), i && (n.$$events = i), M && ar(h, null), Kn = s, c = e(h, n) || {}, Kn = !0, M && (A.nodes.end = C, C === null || C.nodeType !== 8 || C.data !== "]"))
|
|
1727
|
+
throw yr(), gt;
|
|
1728
|
+
wi();
|
|
1729
1729
|
}, a);
|
|
1730
1730
|
var p = /* @__PURE__ */ new Set(), d = (h) => {
|
|
1731
1731
|
for (var g = 0; g < h.length; g++) {
|
|
1732
|
-
var
|
|
1733
|
-
if (!p.has(
|
|
1734
|
-
p.add(
|
|
1735
|
-
var v =
|
|
1732
|
+
var w = h[g];
|
|
1733
|
+
if (!p.has(w)) {
|
|
1734
|
+
p.add(w);
|
|
1735
|
+
var v = Gs(w);
|
|
1736
1736
|
for (const E of [t, document]) {
|
|
1737
|
-
var
|
|
1738
|
-
|
|
1739
|
-
var x =
|
|
1740
|
-
x === void 0 ? (E.addEventListener(
|
|
1737
|
+
var y = tr.get(E);
|
|
1738
|
+
y === void 0 && (y = /* @__PURE__ */ new Map(), tr.set(E, y));
|
|
1739
|
+
var x = y.get(w);
|
|
1740
|
+
x === void 0 ? (E.addEventListener(w, Gn, { passive: v }), y.set(w, 1)) : y.set(w, x + 1);
|
|
1741
1741
|
}
|
|
1742
1742
|
}
|
|
1743
1743
|
}
|
|
1744
1744
|
};
|
|
1745
|
-
return d(br(
|
|
1745
|
+
return d(br(ao)), Qr.add(d), () => {
|
|
1746
1746
|
for (var h of p) for (const v of [t, document]) {
|
|
1747
|
-
var g = tr.get(v),
|
|
1748
|
-
--
|
|
1747
|
+
var g = tr.get(v), w = g.get(h);
|
|
1748
|
+
--w == 0 ? (v.removeEventListener(h, Gn), g.delete(h), g.size === 0 && tr.delete(v)) : g.set(h, w);
|
|
1749
1749
|
}
|
|
1750
1750
|
Qr.delete(d), f !== r && f.parentNode?.removeChild(f);
|
|
1751
1751
|
};
|
|
@@ -1753,17 +1753,17 @@ function ao(e, { target: t, anchor: r, props: n = {}, events: i, context: o, int
|
|
|
1753
1753
|
return Zr.set(c, u), c;
|
|
1754
1754
|
}
|
|
1755
1755
|
var Zr = /* @__PURE__ */ new WeakMap();
|
|
1756
|
-
function
|
|
1756
|
+
function Xs(e, t) {
|
|
1757
1757
|
const r = Zr.get(e);
|
|
1758
1758
|
return r ? (Zr.delete(e), r(t)) : Promise.resolve();
|
|
1759
1759
|
}
|
|
1760
|
-
var Ee = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), ce = /* @__PURE__ */ new WeakMap(), Ot = /* @__PURE__ */ new WeakMap(),
|
|
1760
|
+
var Ee = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), ce = /* @__PURE__ */ new WeakMap(), Ot = /* @__PURE__ */ new WeakMap(), Cr = /* @__PURE__ */ new WeakMap(), Mr = /* @__PURE__ */ new WeakMap(), Xn = /* @__PURE__ */ new WeakMap(), Js = class {
|
|
1761
1761
|
constructor(e, t = !0) {
|
|
1762
|
-
b(this, "anchor", void 0), S(this, Ee, /* @__PURE__ */ new Map()), S(this, xe, /* @__PURE__ */ new Map()), S(this, ce, /* @__PURE__ */ new Map()), S(this, Ot, /* @__PURE__ */ new Set()), S(this,
|
|
1762
|
+
b(this, "anchor", void 0), S(this, Ee, /* @__PURE__ */ new Map()), S(this, xe, /* @__PURE__ */ new Map()), S(this, ce, /* @__PURE__ */ new Map()), S(this, Ot, /* @__PURE__ */ new Set()), S(this, Cr, !0), S(this, Mr, (r) => {
|
|
1763
1763
|
if (l(Ee, this).has(r)) {
|
|
1764
1764
|
var n = l(Ee, this).get(r), i = l(xe, this).get(n);
|
|
1765
1765
|
if (i)
|
|
1766
|
-
|
|
1766
|
+
yn(i), l(Ot, this).delete(n);
|
|
1767
1767
|
else {
|
|
1768
1768
|
var o = l(ce, this).get(n);
|
|
1769
1769
|
o && (l(xe, this).set(n, o.effect), l(ce, this).delete(n), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), i = o.effect);
|
|
@@ -1778,24 +1778,24 @@ var Ee = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), ce =
|
|
|
1778
1778
|
const c = () => {
|
|
1779
1779
|
if (Array.from(l(Ee, this).values()).includes(s)) {
|
|
1780
1780
|
var u = document.createDocumentFragment();
|
|
1781
|
-
|
|
1781
|
+
wn(a, u), u.append(pe()), l(ce, this).set(s, {
|
|
1782
1782
|
effect: a,
|
|
1783
1783
|
fragment: u
|
|
1784
1784
|
});
|
|
1785
1785
|
} else U(a);
|
|
1786
1786
|
l(Ot, this).delete(s), l(xe, this).delete(s);
|
|
1787
1787
|
};
|
|
1788
|
-
l(
|
|
1788
|
+
l(Cr, this) || !i ? (l(Ot, this).add(s), ut(a, c, !1)) : c();
|
|
1789
1789
|
}
|
|
1790
1790
|
}
|
|
1791
1791
|
}), S(this, Xn, (r) => {
|
|
1792
1792
|
l(Ee, this).delete(r);
|
|
1793
1793
|
const n = Array.from(l(Ee, this).values());
|
|
1794
1794
|
for (const [i, o] of l(ce, this)) n.includes(i) || (U(o.effect), l(ce, this).delete(i));
|
|
1795
|
-
}), this.anchor = e, k(
|
|
1795
|
+
}), this.anchor = e, k(Cr, this, t);
|
|
1796
1796
|
}
|
|
1797
1797
|
ensure(e, t) {
|
|
1798
|
-
var r = I, n =
|
|
1798
|
+
var r = I, n = Ui();
|
|
1799
1799
|
if (t && !l(xe, this).has(e) && !l(ce, this).has(e)) if (n) {
|
|
1800
1800
|
var i = document.createDocumentFragment(), o = pe();
|
|
1801
1801
|
i.append(o), l(ce, this).set(e, {
|
|
@@ -1806,18 +1806,18 @@ var Ee = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), ce =
|
|
|
1806
1806
|
if (l(Ee, this).set(r, e), n) {
|
|
1807
1807
|
for (const [s, a] of l(xe, this)) s === e ? r.unskip_effect(a) : r.skip_effect(a);
|
|
1808
1808
|
for (const [s, a] of l(ce, this)) s === e ? r.unskip_effect(a.effect) : r.skip_effect(a.effect);
|
|
1809
|
-
r.oncommit(l(
|
|
1809
|
+
r.oncommit(l(Mr, this)), r.ondiscard(l(Xn, this));
|
|
1810
1810
|
} else
|
|
1811
|
-
|
|
1811
|
+
M && (this.anchor = C), l(Mr, this).call(this, r);
|
|
1812
1812
|
}
|
|
1813
1813
|
};
|
|
1814
1814
|
function Lt(e, t, r = !1) {
|
|
1815
1815
|
var n;
|
|
1816
|
-
|
|
1817
|
-
var i = new
|
|
1816
|
+
M && (n = C, wr());
|
|
1817
|
+
var i = new Js(e), o = r ? on : 0;
|
|
1818
1818
|
function s(a, c) {
|
|
1819
|
-
if (
|
|
1820
|
-
var u =
|
|
1819
|
+
if (M) {
|
|
1820
|
+
var u = _i(n);
|
|
1821
1821
|
if (a !== parseInt(u.substring(1))) {
|
|
1822
1822
|
var f = hr();
|
|
1823
1823
|
X(f), i.anchor = f, Oe(!1), i.ensure(a, c), Oe(!0);
|
|
@@ -1833,10 +1833,10 @@ function Lt(e, t, r = !1) {
|
|
|
1833
1833
|
}), a || s(-1, null);
|
|
1834
1834
|
}, o);
|
|
1835
1835
|
}
|
|
1836
|
-
function
|
|
1836
|
+
function Qs(e, t) {
|
|
1837
1837
|
return t;
|
|
1838
1838
|
}
|
|
1839
|
-
function
|
|
1839
|
+
function Zs(e, t, r) {
|
|
1840
1840
|
for (var n = [], i = t.length, o, s = t.length, a = 0; a < i; a++) {
|
|
1841
1841
|
let p = t[a];
|
|
1842
1842
|
ut(p, () => {
|
|
@@ -1852,7 +1852,7 @@ function Js(e, t, r) {
|
|
|
1852
1852
|
var c = n.length === 0 && r !== null;
|
|
1853
1853
|
if (c) {
|
|
1854
1854
|
var u = r, f = u.parentNode;
|
|
1855
|
-
|
|
1855
|
+
qi(f), f.append(u), e.items.clear();
|
|
1856
1856
|
}
|
|
1857
1857
|
en(e, t, !c);
|
|
1858
1858
|
} else
|
|
@@ -1869,47 +1869,47 @@ function en(e, t, r = !0) {
|
|
|
1869
1869
|
}
|
|
1870
1870
|
for (var i = 0; i < t.length; i++) {
|
|
1871
1871
|
var o = t[i];
|
|
1872
|
-
n?.has(o) ? (o.f |= Pt,
|
|
1872
|
+
n?.has(o) ? (o.f |= Pt, wn(o, document.createDocumentFragment())) : U(t[i], r);
|
|
1873
1873
|
}
|
|
1874
1874
|
}
|
|
1875
1875
|
var rr;
|
|
1876
|
-
function
|
|
1876
|
+
function ea(e, t, r, n, i, o = null) {
|
|
1877
1877
|
var s = e, a = /* @__PURE__ */ new Map();
|
|
1878
1878
|
if ((t & 4) !== 0) {
|
|
1879
1879
|
var c = e;
|
|
1880
|
-
s =
|
|
1880
|
+
s = M ? X(/* @__PURE__ */ at(c)) : c.appendChild(pe());
|
|
1881
1881
|
}
|
|
1882
|
-
|
|
1882
|
+
M && wr();
|
|
1883
1883
|
var u = null, f = /* @__PURE__ */ dn(() => {
|
|
1884
|
-
var
|
|
1885
|
-
return
|
|
1884
|
+
var y = r();
|
|
1885
|
+
return hi(y) ? y : y == null ? [] : br(y);
|
|
1886
1886
|
}), p, d = /* @__PURE__ */ new Map(), h = !0;
|
|
1887
|
-
function g(
|
|
1888
|
-
(v.effect.f & 16384) === 0 && (v.pending.delete(
|
|
1887
|
+
function g(y) {
|
|
1888
|
+
(v.effect.f & 16384) === 0 && (v.pending.delete(y), v.fallback = u, ta(v, p, s, t, n), u !== null && (p.length === 0 ? (u.f & 33554432) === 0 ? yn(u) : (u.f ^= Pt, Mt(u, null, s)) : ut(u, () => {
|
|
1889
1889
|
u = null;
|
|
1890
1890
|
})));
|
|
1891
1891
|
}
|
|
1892
|
-
function y
|
|
1893
|
-
v.pending.delete(
|
|
1892
|
+
function w(y) {
|
|
1893
|
+
v.pending.delete(y);
|
|
1894
1894
|
}
|
|
1895
1895
|
var v = {
|
|
1896
1896
|
effect: mn(() => {
|
|
1897
1897
|
p = _(f);
|
|
1898
|
-
var
|
|
1898
|
+
var y = p.length;
|
|
1899
1899
|
let x = !1;
|
|
1900
|
-
|
|
1901
|
-
for (var E = /* @__PURE__ */ new Set(), P = I, H =
|
|
1902
|
-
|
|
1900
|
+
M && _i(s) === "[!" != (y === 0) && (s = hr(), X(s), Oe(!1), x = !0);
|
|
1901
|
+
for (var E = /* @__PURE__ */ new Set(), P = I, H = Ui(), D = 0; D < y; D += 1) {
|
|
1902
|
+
M && C.nodeType === 8 && C.data === "]" && (s = C, x = !0, Oe(!1));
|
|
1903
1903
|
var G = p[D], ge = n(G, D);
|
|
1904
1904
|
if (0)
|
|
1905
1905
|
var Bt;
|
|
1906
1906
|
var V = h ? null : a.get(ge);
|
|
1907
|
-
V ? (V.v &&
|
|
1907
|
+
V ? (V.v && wt(V.v, G), V.i && wt(V.i, D), H && P.unskip_effect(V.e)) : (V = ra(a, h ? s : rr ?? (rr = pe()), G, ge, D, i, t, r), h || (V.e.f |= Pt), a.set(ge, V)), E.add(ge);
|
|
1908
1908
|
}
|
|
1909
|
-
if (
|
|
1909
|
+
if (y === 0 && o && !u && (h ? u = oe(() => o(s)) : (u = oe(() => o(rr ?? (rr = pe()))), u.f |= Pt)), y > E.size && Fo("", "", ""), M && y > 0 && X(hr()), !h)
|
|
1910
1910
|
if (d.set(P, E), H) {
|
|
1911
1911
|
for (const [Ft, Er] of a) E.has(Ft) || P.skip_effect(Er.e);
|
|
1912
|
-
P.oncommit(g), P.ondiscard(
|
|
1912
|
+
P.oncommit(g), P.ondiscard(w);
|
|
1913
1913
|
} else g(P);
|
|
1914
1914
|
x && Oe(!0), _(f);
|
|
1915
1915
|
}),
|
|
@@ -1919,24 +1919,24 @@ function Qs(e, t, r, n, i, o = null) {
|
|
|
1919
1919
|
outrogroups: null,
|
|
1920
1920
|
fallback: u
|
|
1921
1921
|
};
|
|
1922
|
-
h = !1,
|
|
1922
|
+
h = !1, M && (s = C);
|
|
1923
1923
|
}
|
|
1924
1924
|
function Rt(e) {
|
|
1925
1925
|
for (; e !== null && (e.f & 32) === 0; ) e = e.next;
|
|
1926
1926
|
return e;
|
|
1927
1927
|
}
|
|
1928
|
-
function
|
|
1929
|
-
var o = (n & 8) !== 0, s = t.length, a = e.items, c = Rt(e.effect.first), u, f = null, p, d = [], h = [], g,
|
|
1930
|
-
if (o) for (
|
|
1931
|
-
g = t[
|
|
1932
|
-
for (
|
|
1933
|
-
if (g = t[
|
|
1928
|
+
function ta(e, t, r, n, i) {
|
|
1929
|
+
var o = (n & 8) !== 0, s = t.length, a = e.items, c = Rt(e.effect.first), u, f = null, p, d = [], h = [], g, w, v, y;
|
|
1930
|
+
if (o) for (y = 0; y < s; y += 1)
|
|
1931
|
+
g = t[y], w = i(g, y), v = a.get(w).e, (v.f & 33554432) === 0 && (v.nodes?.a?.measure(), (p ?? (p = /* @__PURE__ */ new Set())).add(v));
|
|
1932
|
+
for (y = 0; y < s; y += 1) {
|
|
1933
|
+
if (g = t[y], w = i(g, y), v = a.get(w).e, e.outrogroups !== null) for (const V of e.outrogroups)
|
|
1934
1934
|
V.pending.delete(v), V.done.delete(v);
|
|
1935
|
-
if ((v.f & 8192) !== 0 && (
|
|
1936
|
-
if (v.f ^= Pt, v === c)
|
|
1935
|
+
if ((v.f & 8192) !== 0 && (yn(v), o && (v.nodes?.a?.unfix(), (p ?? (p = /* @__PURE__ */ new Set())).delete(v))), (v.f & 33554432) !== 0)
|
|
1936
|
+
if (v.f ^= Pt, v === c) Mt(v, null, r);
|
|
1937
1937
|
else {
|
|
1938
1938
|
var x = f ? f.next : c;
|
|
1939
|
-
v === e.effect.last && (e.effect.last = v.prev), v.prev && (v.prev.next = v.next), v.next && (v.next.prev = v.prev), Ne(e, f, v), Ne(e, v, x),
|
|
1939
|
+
v === e.effect.last && (e.effect.last = v.prev), v.prev && (v.prev.next = v.next), v.next && (v.next.prev = v.prev), Ne(e, f, v), Ne(e, v, x), Mt(v, x, r), f = v, d = [], h = [], c = Rt(f.next);
|
|
1940
1940
|
continue;
|
|
1941
1941
|
}
|
|
1942
1942
|
if (v !== c) {
|
|
@@ -1945,11 +1945,11 @@ function Zs(e, t, r, n, i) {
|
|
|
1945
1945
|
var E = h[0], P;
|
|
1946
1946
|
f = E.prev;
|
|
1947
1947
|
var H = d[0], D = d[d.length - 1];
|
|
1948
|
-
for (P = 0; P < d.length; P += 1)
|
|
1948
|
+
for (P = 0; P < d.length; P += 1) Mt(d[P], E, r);
|
|
1949
1949
|
for (P = 0; P < h.length; P += 1) u.delete(h[P]);
|
|
1950
|
-
Ne(e, H.prev, D.next), Ne(e, f, H), Ne(e, D, E), c = E, f = D,
|
|
1950
|
+
Ne(e, H.prev, D.next), Ne(e, f, H), Ne(e, D, E), c = E, f = D, y -= 1, d = [], h = [];
|
|
1951
1951
|
} else
|
|
1952
|
-
u.delete(v),
|
|
1952
|
+
u.delete(v), Mt(v, c, r), Ne(e, v.prev, v.next), Ne(e, v, f === null ? e.effect.first : f.next), Ne(e, f, v), f = v;
|
|
1953
1953
|
continue;
|
|
1954
1954
|
}
|
|
1955
1955
|
for (d = [], h = []; c !== null && c !== v; )
|
|
@@ -1972,10 +1972,10 @@ function Zs(e, t, r, n, i) {
|
|
|
1972
1972
|
if (ge > 0) {
|
|
1973
1973
|
var Bt = (n & 4) !== 0 && s === 0 ? r : null;
|
|
1974
1974
|
if (o) {
|
|
1975
|
-
for (
|
|
1976
|
-
for (
|
|
1975
|
+
for (y = 0; y < ge; y += 1) G[y].nodes?.a?.measure();
|
|
1976
|
+
for (y = 0; y < ge; y += 1) G[y].nodes?.a?.fix();
|
|
1977
1977
|
}
|
|
1978
|
-
|
|
1978
|
+
Zs(e, G, Bt);
|
|
1979
1979
|
}
|
|
1980
1980
|
}
|
|
1981
1981
|
o && ot(() => {
|
|
@@ -1983,8 +1983,8 @@ function Zs(e, t, r, n, i) {
|
|
|
1983
1983
|
for (v of p) v.nodes?.a?.apply();
|
|
1984
1984
|
});
|
|
1985
1985
|
}
|
|
1986
|
-
function
|
|
1987
|
-
var c = (s & 1) !== 0 ? (s & 16) === 0 ? /* @__PURE__ */
|
|
1986
|
+
function ra(e, t, r, n, i, o, s, a) {
|
|
1987
|
+
var c = (s & 1) !== 0 ? (s & 16) === 0 ? /* @__PURE__ */ zi(r, !1, !1) : st(r) : null, u = (s & 2) !== 0 ? st(i) : null;
|
|
1988
1988
|
return {
|
|
1989
1989
|
v: c,
|
|
1990
1990
|
i: u,
|
|
@@ -1993,7 +1993,7 @@ function ea(e, t, r, n, i, o, s, a) {
|
|
|
1993
1993
|
}))
|
|
1994
1994
|
};
|
|
1995
1995
|
}
|
|
1996
|
-
function
|
|
1996
|
+
function Mt(e, t, r) {
|
|
1997
1997
|
if (e.nodes)
|
|
1998
1998
|
for (var n = e.nodes.start, i = e.nodes.end, o = t && (t.f & 33554432) === 0 ? t.nodes.start : r; n !== null; ) {
|
|
1999
1999
|
var s = /* @__PURE__ */ Se(n);
|
|
@@ -2004,8 +2004,8 @@ function Ct(e, t, r) {
|
|
|
2004
2004
|
function Ne(e, t, r) {
|
|
2005
2005
|
t === null ? e.effect.first = r : t.next = r, r === null ? e.effect.last = t : r.prev = t;
|
|
2006
2006
|
}
|
|
2007
|
-
function
|
|
2008
|
-
|
|
2007
|
+
function na(e, t) {
|
|
2008
|
+
Yi(() => {
|
|
2009
2009
|
var r = e.getRootNode(), n = r.host ? r : r.head ?? r.ownerDocument.head;
|
|
2010
2010
|
if (!n.querySelector("#" + t.hash)) {
|
|
2011
2011
|
const i = pn("style");
|
|
@@ -2024,7 +2024,7 @@ function Jn(e, t = !1) {
|
|
|
2024
2024
|
function Pr(e) {
|
|
2025
2025
|
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
2026
2026
|
}
|
|
2027
|
-
function
|
|
2027
|
+
function ia(e, t) {
|
|
2028
2028
|
if (t) {
|
|
2029
2029
|
var r = "", n, i;
|
|
2030
2030
|
if (Array.isArray(t) ? (n = t[0], i = t[1]) : n = t, e) {
|
|
@@ -2032,12 +2032,12 @@ function ra(e, t) {
|
|
|
2032
2032
|
var o = !1, s = 0, a = !1, c = [];
|
|
2033
2033
|
n && c.push(...Object.keys(n).map(Pr)), i && c.push(...Object.keys(i).map(Pr));
|
|
2034
2034
|
var u = 0, f = -1;
|
|
2035
|
-
const
|
|
2036
|
-
for (var p = 0; p <
|
|
2035
|
+
const w = e.length;
|
|
2036
|
+
for (var p = 0; p < w; p++) {
|
|
2037
2037
|
var d = e[p];
|
|
2038
2038
|
if (a ? d === "/" && e[p - 1] === "*" && (a = !1) : o ? o === d && (o = !1) : d === "/" && e[p + 1] === "*" ? a = !0 : d === '"' || d === "'" ? o = d : d === "(" ? s++ : d === ")" && s--, !a && o === !1 && s === 0) {
|
|
2039
2039
|
if (d === ":" && f === -1) f = p;
|
|
2040
|
-
else if (d === ";" || p ===
|
|
2040
|
+
else if (d === ";" || p === w - 1) {
|
|
2041
2041
|
if (f !== -1) {
|
|
2042
2042
|
var h = Pr(e.substring(u, f).trim());
|
|
2043
2043
|
if (!c.includes(h)) {
|
|
@@ -2063,67 +2063,67 @@ function xr(e, t = {}, r, n) {
|
|
|
2063
2063
|
}
|
|
2064
2064
|
function Qn(e, t, r, n) {
|
|
2065
2065
|
var i = e.__style;
|
|
2066
|
-
if (
|
|
2067
|
-
var o =
|
|
2068
|
-
(!
|
|
2066
|
+
if (M || i !== t) {
|
|
2067
|
+
var o = ia(t, n);
|
|
2068
|
+
(!M || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e.__style = t;
|
|
2069
2069
|
} else n && (Array.isArray(n) ? (xr(e, r?.[0], n[0]), xr(e, r?.[1], n[1], "important")) : xr(e, r, n));
|
|
2070
2070
|
return n;
|
|
2071
2071
|
}
|
|
2072
|
-
var
|
|
2072
|
+
var oa = /* @__PURE__ */ Symbol("is custom element"), sa = /* @__PURE__ */ Symbol("is html"), aa = Ho ? "link" : "LINK";
|
|
2073
2073
|
function Zn(e, t, r, n) {
|
|
2074
|
-
var i =
|
|
2075
|
-
if (
|
|
2074
|
+
var i = la(e);
|
|
2075
|
+
if (M && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === aa)) {
|
|
2076
2076
|
n || void 0;
|
|
2077
2077
|
return;
|
|
2078
2078
|
}
|
|
2079
|
-
i[t] !== (i[t] = r) && (t === "loading" && (e[
|
|
2079
|
+
i[t] !== (i[t] = r) && (t === "loading" && (e[zo] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && ca(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
2080
2080
|
}
|
|
2081
|
-
function
|
|
2081
|
+
function la(e) {
|
|
2082
2082
|
return e.__attributes ?? (e.__attributes = {
|
|
2083
|
-
[
|
|
2084
|
-
[
|
|
2083
|
+
[oa]: e.nodeName.includes("-"),
|
|
2084
|
+
[sa]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
2085
2085
|
});
|
|
2086
2086
|
}
|
|
2087
2087
|
var ei = /* @__PURE__ */ new Map();
|
|
2088
|
-
function
|
|
2088
|
+
function ca(e) {
|
|
2089
2089
|
var t = e.getAttribute("is") || e.nodeName, r = ei.get(t);
|
|
2090
2090
|
if (r) return r;
|
|
2091
2091
|
ei.set(t, r = []);
|
|
2092
2092
|
for (var n, i = e, o = Element.prototype; o !== i; ) {
|
|
2093
|
-
n =
|
|
2093
|
+
n = Co(i);
|
|
2094
2094
|
for (var s in n) n[s].set && r.push(s);
|
|
2095
|
-
i =
|
|
2095
|
+
i = pi(i);
|
|
2096
2096
|
}
|
|
2097
2097
|
return r;
|
|
2098
2098
|
}
|
|
2099
|
-
var
|
|
2099
|
+
var uo, ht = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap(), Nr = /* @__PURE__ */ new WeakMap(), ti = /* @__PURE__ */ new WeakSet(), fo = class {
|
|
2100
2100
|
constructor(e) {
|
|
2101
2101
|
an(this, ti), S(this, ht, /* @__PURE__ */ new WeakMap()), S(this, _r, void 0), S(this, Nr, void 0), k(Nr, this, e);
|
|
2102
2102
|
}
|
|
2103
2103
|
observe(e, t) {
|
|
2104
2104
|
var r = l(ht, this).get(e) || /* @__PURE__ */ new Set();
|
|
2105
|
-
return r.add(t), l(ht, this).set(e, r), L(ti, this,
|
|
2105
|
+
return r.add(t), l(ht, this).set(e, r), L(ti, this, ua).call(this).observe(e, l(Nr, this)), () => {
|
|
2106
2106
|
var n = l(ht, this).get(e);
|
|
2107
2107
|
n.delete(t), n.size === 0 && (l(ht, this).delete(e), l(_r, this).unobserve(e));
|
|
2108
2108
|
};
|
|
2109
2109
|
}
|
|
2110
2110
|
};
|
|
2111
|
-
|
|
2112
|
-
function
|
|
2111
|
+
uo = fo;
|
|
2112
|
+
function ua() {
|
|
2113
2113
|
return l(_r, this) ?? k(_r, this, new ResizeObserver((e) => {
|
|
2114
2114
|
for (var t of e) {
|
|
2115
|
-
|
|
2115
|
+
uo.entries.set(t.target, t);
|
|
2116
2116
|
for (var r of l(ht, this).get(t.target) || []) r(t);
|
|
2117
2117
|
}
|
|
2118
2118
|
}));
|
|
2119
2119
|
}
|
|
2120
|
-
b(
|
|
2120
|
+
b(fo, "entries", /* @__PURE__ */ new WeakMap());
|
|
2121
2121
|
function ri(e, t) {
|
|
2122
2122
|
return e === t || e?.[xt] === t;
|
|
2123
2123
|
}
|
|
2124
2124
|
function ni(e = {}, t, r, n) {
|
|
2125
2125
|
var i = W.r, o = A;
|
|
2126
|
-
return
|
|
2126
|
+
return Yi(() => {
|
|
2127
2127
|
var s, a;
|
|
2128
2128
|
return _n(() => {
|
|
2129
2129
|
s = a, a = n?.() || [], Tn(() => {
|
|
@@ -2145,11 +2145,11 @@ function Dr(e, t, r, n) {
|
|
|
2145
2145
|
var i = !Tr || (r & 2) !== 0, o = (r & 8) !== 0, s = (r & 16) !== 0, a = n, c = !0, u = () => (c && (c = !1, a = s ? Tn(n) : n), a);
|
|
2146
2146
|
let f;
|
|
2147
2147
|
if (o) {
|
|
2148
|
-
var p = xt in e ||
|
|
2148
|
+
var p = xt in e || gi in e;
|
|
2149
2149
|
f = Qe(e, t)?.set ?? (p && t in e ? (E) => e[t] = E : void 0);
|
|
2150
2150
|
}
|
|
2151
2151
|
var d, h = !1;
|
|
2152
|
-
o ? [d, h] =
|
|
2152
|
+
o ? [d, h] = cs(() => e[t]) : d = e[t], d === void 0 && n !== void 0 && (d = u(), f && (i && Xo(t), f(d)));
|
|
2153
2153
|
var g;
|
|
2154
2154
|
if (i ? g = () => {
|
|
2155
2155
|
var E = e[t];
|
|
@@ -2159,30 +2159,30 @@ function Dr(e, t, r, n) {
|
|
|
2159
2159
|
return E !== void 0 && (a = void 0), E === void 0 ? a : E;
|
|
2160
2160
|
}, i && (r & 4) === 0) return g;
|
|
2161
2161
|
if (f) {
|
|
2162
|
-
var
|
|
2162
|
+
var w = e.$$legacy;
|
|
2163
2163
|
return (function(E, P) {
|
|
2164
|
-
return arguments.length > 0 ? ((!i || !P ||
|
|
2164
|
+
return arguments.length > 0 ? ((!i || !P || w || h) && f(P ? g() : E), E) : g();
|
|
2165
2165
|
});
|
|
2166
2166
|
}
|
|
2167
|
-
var v = !1,
|
|
2168
|
-
o && _(
|
|
2167
|
+
var v = !1, y = ((r & 1) !== 0 ? Sr : dn)(() => (v = !1, g()));
|
|
2168
|
+
o && _(y);
|
|
2169
2169
|
var x = A;
|
|
2170
2170
|
return (function(E, P) {
|
|
2171
2171
|
if (arguments.length > 0) {
|
|
2172
|
-
const H = P ? _(
|
|
2173
|
-
return O(
|
|
2172
|
+
const H = P ? _(y) : i && o ? Xe(E) : E;
|
|
2173
|
+
return O(y, H), v = !0, a !== void 0 && (a = H), E;
|
|
2174
2174
|
}
|
|
2175
|
-
return Re && v || (x.f & 16384) !== 0 ?
|
|
2175
|
+
return Re && v || (x.f & 16384) !== 0 ? y.v : _(y);
|
|
2176
2176
|
});
|
|
2177
2177
|
}
|
|
2178
|
-
function
|
|
2179
|
-
return new
|
|
2178
|
+
function fa(e) {
|
|
2179
|
+
return new da(e);
|
|
2180
2180
|
}
|
|
2181
|
-
var Ge = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(),
|
|
2181
|
+
var Ge = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(), da = class {
|
|
2182
2182
|
constructor(e) {
|
|
2183
2183
|
S(this, Ge, void 0), S(this, _e, void 0);
|
|
2184
2184
|
var t = /* @__PURE__ */ new Map(), r = (i, o) => {
|
|
2185
|
-
var s = /* @__PURE__ */
|
|
2185
|
+
var s = /* @__PURE__ */ zi(o, !1, !1);
|
|
2186
2186
|
return t.set(i, s), s;
|
|
2187
2187
|
};
|
|
2188
2188
|
const n = new Proxy({
|
|
@@ -2193,13 +2193,13 @@ var Ge = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(), ua =
|
|
|
2193
2193
|
return _(t.get(o) ?? r(o, Reflect.get(i, o)));
|
|
2194
2194
|
},
|
|
2195
2195
|
has(i, o) {
|
|
2196
|
-
return o ===
|
|
2196
|
+
return o === gi ? !0 : (_(t.get(o) ?? r(o, Reflect.get(i, o))), Reflect.has(i, o));
|
|
2197
2197
|
},
|
|
2198
2198
|
set(i, o, s) {
|
|
2199
2199
|
return O(t.get(o) ?? r(o, s), s), Reflect.set(i, o, s);
|
|
2200
2200
|
}
|
|
2201
2201
|
});
|
|
2202
|
-
k(_e, this, (e.hydrate ?
|
|
2202
|
+
k(_e, this, (e.hydrate ? Ys : lo)(e.component, {
|
|
2203
2203
|
target: e.target,
|
|
2204
2204
|
anchor: e.anchor,
|
|
2205
2205
|
props: n,
|
|
@@ -2221,7 +2221,7 @@ var Ge = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(), ua =
|
|
|
2221
2221
|
l(_e, this).$set = (i) => {
|
|
2222
2222
|
Object.assign(n, i);
|
|
2223
2223
|
}, l(_e, this).$destroy = () => {
|
|
2224
|
-
|
|
2224
|
+
Xs(l(_e, this));
|
|
2225
2225
|
};
|
|
2226
2226
|
}
|
|
2227
2227
|
$set(e) {
|
|
@@ -2237,8 +2237,8 @@ var Ge = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(), ua =
|
|
|
2237
2237
|
$destroy() {
|
|
2238
2238
|
l(_e, this).$destroy();
|
|
2239
2239
|
}
|
|
2240
|
-
},
|
|
2241
|
-
typeof HTMLElement == "function" && (
|
|
2240
|
+
}, ho;
|
|
2241
|
+
typeof HTMLElement == "function" && (ho = class extends HTMLElement {
|
|
2242
2242
|
constructor(e, t, r) {
|
|
2243
2243
|
super(), b(this, "$$ctor", void 0), b(this, "$$s", void 0), b(this, "$$c", void 0), b(this, "$$cn", !1), b(this, "$$d", {}), b(this, "$$r", !1), b(this, "$$p_d", {}), b(this, "$$l", {}), b(this, "$$l_u", /* @__PURE__ */ new Map()), b(this, "$$me", void 0), b(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2244
2244
|
}
|
|
@@ -2264,14 +2264,14 @@ typeof HTMLElement == "function" && (uo = class extends HTMLElement {
|
|
|
2264
2264
|
};
|
|
2265
2265
|
};
|
|
2266
2266
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2267
|
-
const t = {}, r =
|
|
2267
|
+
const t = {}, r = ha(this);
|
|
2268
2268
|
for (const n of this.$$s) n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
|
|
2269
2269
|
for (const n of this.attributes) {
|
|
2270
2270
|
const i = this.$$g_p(n.name);
|
|
2271
2271
|
i in this.$$d || (this.$$d[i] = lr(i, n.value, this.$$p_d, "toProp"));
|
|
2272
2272
|
}
|
|
2273
2273
|
for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2274
|
-
this.$$c =
|
|
2274
|
+
this.$$c = fa({
|
|
2275
2275
|
component: this.$$ctor,
|
|
2276
2276
|
target: this.$$shadowRoot || this,
|
|
2277
2277
|
props: {
|
|
@@ -2279,7 +2279,7 @@ typeof HTMLElement == "function" && (uo = class extends HTMLElement {
|
|
|
2279
2279
|
$$slots: t,
|
|
2280
2280
|
$$host: this
|
|
2281
2281
|
}
|
|
2282
|
-
}), this.$$me =
|
|
2282
|
+
}), this.$$me = Ms(() => {
|
|
2283
2283
|
_n(() => {
|
|
2284
2284
|
this.$$r = !0;
|
|
2285
2285
|
for (const n of ur(this.$$c)) {
|
|
@@ -2336,14 +2336,14 @@ function lr(e, t, r, n) {
|
|
|
2336
2336
|
return t;
|
|
2337
2337
|
}
|
|
2338
2338
|
}
|
|
2339
|
-
function
|
|
2339
|
+
function ha(e) {
|
|
2340
2340
|
const t = {};
|
|
2341
2341
|
return e.childNodes.forEach((r) => {
|
|
2342
2342
|
t[r.slot || "default"] = !0;
|
|
2343
2343
|
}), t;
|
|
2344
2344
|
}
|
|
2345
|
-
function
|
|
2346
|
-
let s = class extends
|
|
2345
|
+
function pa(e, t, r, n, i, o) {
|
|
2346
|
+
let s = class extends ho {
|
|
2347
2347
|
constructor() {
|
|
2348
2348
|
super(e, r, i), this.$$p_d = t;
|
|
2349
2349
|
}
|
|
@@ -2368,14 +2368,14 @@ function da(e, t, r, n, i, o) {
|
|
|
2368
2368
|
} });
|
|
2369
2369
|
}), o && (s = o(s)), e.element = s, s;
|
|
2370
2370
|
}
|
|
2371
|
-
var
|
|
2371
|
+
var va = class extends Event {
|
|
2372
2372
|
constructor(e, t, r, n) {
|
|
2373
2373
|
super("context-request", {
|
|
2374
2374
|
bubbles: !0,
|
|
2375
2375
|
composed: !0
|
|
2376
2376
|
}), b(this, "context", void 0), b(this, "contextTarget", void 0), b(this, "callback", void 0), b(this, "subscribe", void 0), this.context = e, this.contextTarget = t, this.callback = r, this.subscribe = n ?? !1;
|
|
2377
2377
|
}
|
|
2378
|
-
},
|
|
2378
|
+
}, ga = class {
|
|
2379
2379
|
constructor(e, t) {
|
|
2380
2380
|
b(this, "host", void 0), b(this, "context", void 0), b(this, "subscribe", void 0), b(this, "onValue", void 0), b(this, "isConnected", !1), b(this, "unsubscribe", void 0), b(this, "currentValue", void 0), b(this, "handleValue", (r, n) => {
|
|
2381
2381
|
n !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = n), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = r, this.onValue?.(r);
|
|
@@ -2391,12 +2391,12 @@ var ha = class extends Event {
|
|
|
2391
2391
|
return this.currentValue;
|
|
2392
2392
|
}
|
|
2393
2393
|
requestValue() {
|
|
2394
|
-
this.host.dispatchEvent(new
|
|
2394
|
+
this.host.dispatchEvent(new va(this.context, this.host, this.handleValue, this.subscribe));
|
|
2395
2395
|
}
|
|
2396
|
-
}, kr = (e) => e,
|
|
2397
|
-
function
|
|
2396
|
+
}, kr = (e) => e, xl = kr(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.runtimeContext")), Nl = kr(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), _a = kr(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.shellContext")), ma = kr(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.regionScopeContext"));
|
|
2397
|
+
function po(e, t, r) {
|
|
2398
2398
|
let n = !1;
|
|
2399
|
-
const i = new
|
|
2399
|
+
const i = new ga(e, {
|
|
2400
2400
|
context: t,
|
|
2401
2401
|
subscribe: !0,
|
|
2402
2402
|
onValue: (u) => {
|
|
@@ -2420,11 +2420,11 @@ function fo(e, t, r) {
|
|
|
2420
2420
|
globalThis.clearInterval(c), e.removeEventListener("context-provider", o), i.disconnect();
|
|
2421
2421
|
};
|
|
2422
2422
|
}
|
|
2423
|
-
function
|
|
2424
|
-
return
|
|
2423
|
+
function ba(e, t) {
|
|
2424
|
+
return po(e, _a, t);
|
|
2425
2425
|
}
|
|
2426
|
-
function
|
|
2427
|
-
return
|
|
2426
|
+
function ya(e, t) {
|
|
2427
|
+
return po(e, ma, t);
|
|
2428
2428
|
}
|
|
2429
2429
|
var ii;
|
|
2430
2430
|
(function(e) {
|
|
@@ -2434,12 +2434,12 @@ var We;
|
|
|
2434
2434
|
(function(e) {
|
|
2435
2435
|
e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange", e.UNDERLINE = "underline";
|
|
2436
2436
|
})(We || (We = {}));
|
|
2437
|
-
function
|
|
2437
|
+
function vo(e) {
|
|
2438
2438
|
return (...t) => {
|
|
2439
2439
|
console.debug(`[${e}]`, ...t);
|
|
2440
2440
|
};
|
|
2441
2441
|
}
|
|
2442
|
-
var
|
|
2442
|
+
var Dl = vo("I18nService"), Vr = {
|
|
2443
2443
|
assessment: [],
|
|
2444
2444
|
section: [],
|
|
2445
2445
|
item: [],
|
|
@@ -2460,19 +2460,19 @@ function De(e, t) {
|
|
|
2460
2460
|
if (e.find((r) => typeof r != "string") !== void 0) throw new Error(`Invalid tools config at "${t}": all entries must be strings.`);
|
|
2461
2461
|
return e;
|
|
2462
2462
|
}
|
|
2463
|
-
function
|
|
2463
|
+
function wa(e) {
|
|
2464
2464
|
if (e != null) {
|
|
2465
2465
|
if (!it(e)) throw new Error('Invalid tools config at "placement": expected an object with section/item/passage arrays.');
|
|
2466
2466
|
return e;
|
|
2467
2467
|
}
|
|
2468
2468
|
}
|
|
2469
|
-
function
|
|
2469
|
+
function Ta(e) {
|
|
2470
2470
|
if (e != null) {
|
|
2471
2471
|
if (!it(e)) throw new Error('Invalid tools config at "policy": expected an object with allowed/blocked arrays.');
|
|
2472
2472
|
return e;
|
|
2473
2473
|
}
|
|
2474
2474
|
}
|
|
2475
|
-
function
|
|
2475
|
+
function Sa(e, t) {
|
|
2476
2476
|
if (t == null) return;
|
|
2477
2477
|
if (!it(t)) throw new Error(`Invalid tools config at "providers.${e}": expected an object.`);
|
|
2478
2478
|
const r = t;
|
|
@@ -2481,14 +2481,14 @@ function ya(e, t) {
|
|
|
2481
2481
|
if ("provider" in r && r.provider !== void 0 && !it(r.provider)) throw new Error(`Invalid tools config at "providers.${e}.provider": expected an object.`);
|
|
2482
2482
|
return r;
|
|
2483
2483
|
}
|
|
2484
|
-
function
|
|
2484
|
+
function ka(e) {
|
|
2485
2485
|
if (e == null) return {};
|
|
2486
2486
|
if (!it(e)) throw new Error('Invalid tools config at "providers": expected an object keyed by tool id.');
|
|
2487
2487
|
const t = {};
|
|
2488
|
-
for (const [r, n] of Object.entries(e)) t[r] =
|
|
2488
|
+
for (const [r, n] of Object.entries(e)) t[r] = Sa(r, n);
|
|
2489
2489
|
return t;
|
|
2490
2490
|
}
|
|
2491
|
-
function
|
|
2491
|
+
function go(e) {
|
|
2492
2492
|
const t = e.trim();
|
|
2493
2493
|
return t || "";
|
|
2494
2494
|
}
|
|
@@ -2497,20 +2497,20 @@ function Ve(e) {
|
|
|
2497
2497
|
const t = /* @__PURE__ */ new Set();
|
|
2498
2498
|
for (const r of e) {
|
|
2499
2499
|
if (typeof r != "string") throw new Error("Invalid tools config: tool list entries must be strings.");
|
|
2500
|
-
const n =
|
|
2500
|
+
const n = go(r);
|
|
2501
2501
|
n && t.add(n);
|
|
2502
2502
|
}
|
|
2503
2503
|
return Array.from(t);
|
|
2504
2504
|
}
|
|
2505
|
-
function
|
|
2505
|
+
function Aa(e, t) {
|
|
2506
2506
|
if (e != null) {
|
|
2507
2507
|
if (e === "on" || e === "off") return e;
|
|
2508
2508
|
throw new Error(`Invalid tools config at "${t}": expected "on" or "off", got ${JSON.stringify(e)}.`);
|
|
2509
2509
|
}
|
|
2510
2510
|
}
|
|
2511
|
-
function
|
|
2511
|
+
function Ia(e) {
|
|
2512
2512
|
if (e != null && !it(e)) throw new Error('Invalid tools config: expected an object with "policy", "placement", and "providers".');
|
|
2513
|
-
const t =
|
|
2513
|
+
const t = Ta(e?.policy), r = wa(e?.placement), n = ka(e?.providers), i = Aa(e?.pnpEnforcement, "pnpEnforcement"), o = {
|
|
2514
2514
|
policy: {
|
|
2515
2515
|
allowed: Ve(De(t?.allowed, "policy.allowed")),
|
|
2516
2516
|
blocked: Ve(De(t?.blocked, "policy.blocked"))
|
|
@@ -2524,7 +2524,7 @@ function ka(e) {
|
|
|
2524
2524
|
};
|
|
2525
2525
|
return i && (o.pnpEnforcement = i), o;
|
|
2526
2526
|
}
|
|
2527
|
-
var
|
|
2527
|
+
var Ea = [
|
|
2528
2528
|
"assessment",
|
|
2529
2529
|
"section",
|
|
2530
2530
|
"item",
|
|
@@ -2535,7 +2535,7 @@ var Aa = [
|
|
|
2535
2535
|
function cr(e, t) {
|
|
2536
2536
|
if (typeof e != "string" || e.trim().length === 0) throw new Error(`Invalid tool registration: "${t}" must be a non-empty string.`);
|
|
2537
2537
|
}
|
|
2538
|
-
var
|
|
2538
|
+
var $a = [
|
|
2539
2539
|
{
|
|
2540
2540
|
pattern: /<script\b/i,
|
|
2541
2541
|
reason: "contains a <script> tag"
|
|
@@ -2553,17 +2553,17 @@ var Ia = [
|
|
|
2553
2553
|
reason: "contains a <foreignObject> element"
|
|
2554
2554
|
}
|
|
2555
2555
|
];
|
|
2556
|
-
function
|
|
2556
|
+
function Oa(e, t, r) {
|
|
2557
2557
|
const n = t.trimStart(), i = n.toLowerCase().startsWith("<svg"), o = /^https?:/i.test(n);
|
|
2558
2558
|
if (/^data:/i.test(n)) throw new Error(`Invalid tool registration "${e}": "${r}" may not be a data: URL.`);
|
|
2559
2559
|
if (!(!i && !o)) {
|
|
2560
|
-
for (const { pattern: s, reason: a } of
|
|
2560
|
+
for (const { pattern: s, reason: a } of $a) if (s.test(t)) throw new Error(`Invalid tool registration "${e}": "${r}" ${a}. Inline SVG icons must not include scriptable content.`);
|
|
2561
2561
|
}
|
|
2562
2562
|
}
|
|
2563
2563
|
function oi(e) {
|
|
2564
2564
|
if (cr(e.toolId, "toolId"), cr(e.name, "name"), cr(e.description, "description"), typeof e.icon != "string" && typeof e.icon != "function") throw new Error(`Invalid tool registration "${e.toolId}": "icon" must be a string or function.`);
|
|
2565
|
-
if (typeof e.icon == "string" &&
|
|
2566
|
-
const t = e.supportedLevels.find((r) => !
|
|
2565
|
+
if (typeof e.icon == "string" && Oa(e.toolId, e.icon, "icon"), !Array.isArray(e.supportedLevels) || e.supportedLevels.length === 0) throw new Error(`Invalid tool registration "${e.toolId}": "supportedLevels" must be a non-empty array.`);
|
|
2566
|
+
const t = e.supportedLevels.find((r) => !Ea.includes(r));
|
|
2567
2567
|
if (t) throw new Error(`Invalid tool registration "${e.toolId}": unsupported level "${t}".`);
|
|
2568
2568
|
if (e.activation !== void 0 && e.activation !== "toolbar-toggle" && e.activation !== "selection-gateway") throw new Error(`Invalid tool registration "${e.toolId}": unsupported activation "${String(e.activation)}".`);
|
|
2569
2569
|
if (e.singletonScope !== void 0 && e.singletonScope !== "section") throw new Error(`Invalid tool registration "${e.toolId}": unsupported singletonScope "${String(e.singletonScope)}".`);
|
|
@@ -2572,12 +2572,12 @@ function oi(e) {
|
|
|
2572
2572
|
if (typeof e.isVisibleInContext != "function") throw new Error(`Invalid tool registration "${e.toolId}": "isVisibleInContext" must be a function.`);
|
|
2573
2573
|
if (typeof e.renderToolbar != "function") throw new Error(`Invalid tool registration "${e.toolId}": "renderToolbar" must be a function.`);
|
|
2574
2574
|
}
|
|
2575
|
-
var
|
|
2575
|
+
var La = class {
|
|
2576
2576
|
constructor() {
|
|
2577
2577
|
b(this, "tools", /* @__PURE__ */ new Map()), b(this, "pnpIndex", /* @__PURE__ */ new Map()), b(this, "componentOverrides", {}), b(this, "moduleLoaders", /* @__PURE__ */ new Map()), b(this, "loadedToolModules", /* @__PURE__ */ new Set()), b(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
|
|
2578
2578
|
}
|
|
2579
2579
|
normalizeToolId(e) {
|
|
2580
|
-
return
|
|
2580
|
+
return go(e);
|
|
2581
2581
|
}
|
|
2582
2582
|
normalizeToolIds(e) {
|
|
2583
2583
|
return e.map((t) => this.normalizeToolId(t));
|
|
@@ -2715,20 +2715,20 @@ var $a = class {
|
|
|
2715
2715
|
return n.renderToolbar(t, i);
|
|
2716
2716
|
}
|
|
2717
2717
|
};
|
|
2718
|
-
function
|
|
2718
|
+
function _o(e) {
|
|
2719
2719
|
return e.level === "item";
|
|
2720
2720
|
}
|
|
2721
|
-
function
|
|
2721
|
+
function Ra(e) {
|
|
2722
2722
|
return e.level === "passage";
|
|
2723
2723
|
}
|
|
2724
|
-
function
|
|
2724
|
+
function Ca(e) {
|
|
2725
2725
|
return e.level === "rubric";
|
|
2726
2726
|
}
|
|
2727
|
-
function
|
|
2727
|
+
function mo(e) {
|
|
2728
2728
|
return e.level === "element";
|
|
2729
2729
|
}
|
|
2730
2730
|
function Sn(e) {
|
|
2731
|
-
if (
|
|
2731
|
+
if (mo(e)) {
|
|
2732
2732
|
const t = e.item.config;
|
|
2733
2733
|
if (!t) return "";
|
|
2734
2734
|
const r = [], n = (a) => a.replace(/<[^>]*>/g, " ").trim(), i = t.elements?.[e.elementId];
|
|
@@ -2743,7 +2743,7 @@ function Sn(e) {
|
|
|
2743
2743
|
}
|
|
2744
2744
|
return r.filter(Boolean).join(" ").trim();
|
|
2745
2745
|
}
|
|
2746
|
-
if (
|
|
2746
|
+
if (_o(e)) {
|
|
2747
2747
|
const t = e.item;
|
|
2748
2748
|
if (!t?.config) return "";
|
|
2749
2749
|
const r = t.config, n = [], i = (c) => c.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2762,7 +2762,7 @@ function Sn(e) {
|
|
|
2762
2762
|
}
|
|
2763
2763
|
return n.filter(Boolean).join(" ").trim();
|
|
2764
2764
|
}
|
|
2765
|
-
if (
|
|
2765
|
+
if (Ra(e)) {
|
|
2766
2766
|
const t = e.passage;
|
|
2767
2767
|
if (!t?.config) return "";
|
|
2768
2768
|
const r = t.config, n = [], i = (c) => c.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2781,7 +2781,7 @@ function Sn(e) {
|
|
|
2781
2781
|
}
|
|
2782
2782
|
return n.filter(Boolean).join(" ").trim();
|
|
2783
2783
|
}
|
|
2784
|
-
if (
|
|
2784
|
+
if (Ca(e)) {
|
|
2785
2785
|
const t = e.rubricBlock;
|
|
2786
2786
|
return t.passage?.config ? (t.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (t.content || "").replace(/<[^>]*>/g, " ").trim();
|
|
2787
2787
|
}
|
|
@@ -2798,7 +2798,7 @@ function Ar(e) {
|
|
|
2798
2798
|
/\d+\s*[+\-*/=]\s*\d+/
|
|
2799
2799
|
].some((r) => r.test(t));
|
|
2800
2800
|
}
|
|
2801
|
-
function
|
|
2801
|
+
function Ma(e) {
|
|
2802
2802
|
const t = [
|
|
2803
2803
|
"pie-multiple-choice",
|
|
2804
2804
|
"pie-inline-choice",
|
|
@@ -2807,7 +2807,7 @@ function Ra(e) {
|
|
|
2807
2807
|
"inline-choice",
|
|
2808
2808
|
"select-text"
|
|
2809
2809
|
];
|
|
2810
|
-
if (
|
|
2810
|
+
if (mo(e)) {
|
|
2811
2811
|
const r = e.item.config;
|
|
2812
2812
|
if (!r?.models) return !1;
|
|
2813
2813
|
const n = (Array.isArray(r.models) ? r.models : Object.values(r.models)).find((o) => o && typeof o == "object" && o.id === e.elementId);
|
|
@@ -2815,7 +2815,7 @@ function Ra(e) {
|
|
|
2815
2815
|
const i = n.element || "";
|
|
2816
2816
|
return t.includes(i);
|
|
2817
2817
|
}
|
|
2818
|
-
if (
|
|
2818
|
+
if (_o(e)) {
|
|
2819
2819
|
const r = e.item.config?.models;
|
|
2820
2820
|
return (Array.isArray(r) ? r : r && typeof r == "object" ? Object.values(r) : []).some((n) => {
|
|
2821
2821
|
if (!n || typeof n != "object") return !1;
|
|
@@ -2828,7 +2828,7 @@ function Ra(e) {
|
|
|
2828
2828
|
function Ir(e) {
|
|
2829
2829
|
return Sn(e).trim().length >= 10;
|
|
2830
2830
|
}
|
|
2831
|
-
function
|
|
2831
|
+
function Pa(e) {
|
|
2832
2832
|
const t = Sn(e);
|
|
2833
2833
|
return [
|
|
2834
2834
|
/chemistry|chemical|element|atom|molecule|compound/i,
|
|
@@ -2839,23 +2839,23 @@ function Ma(e) {
|
|
|
2839
2839
|
/physics|force|energy|velocity|acceleration/i
|
|
2840
2840
|
].some((r) => r.test(t));
|
|
2841
2841
|
}
|
|
2842
|
-
var
|
|
2842
|
+
var xa = [
|
|
2843
2843
|
"assessment",
|
|
2844
2844
|
"section",
|
|
2845
2845
|
"item",
|
|
2846
2846
|
"passage",
|
|
2847
2847
|
"rubric"
|
|
2848
|
-
],
|
|
2849
|
-
function
|
|
2850
|
-
return
|
|
2848
|
+
], Na = new Set(xa);
|
|
2849
|
+
function Da(e) {
|
|
2850
|
+
return Na.has(e);
|
|
2851
2851
|
}
|
|
2852
2852
|
function kn(e, t, r) {
|
|
2853
2853
|
const n = e.trim(), i = r.trim();
|
|
2854
2854
|
if (!n || !i) throw new Error("Tool instance ids require non-empty tool and scope ids");
|
|
2855
|
-
if (!
|
|
2855
|
+
if (!Da(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
|
|
2856
2856
|
return `${n}:${t}:${i}`;
|
|
2857
2857
|
}
|
|
2858
|
-
var
|
|
2858
|
+
var Va = class {
|
|
2859
2859
|
constructor() {
|
|
2860
2860
|
b(this, "providerId", "desmos-calculator"), b(this, "providerName", "Desmos Calculator"), b(this, "category", "calculator"), b(this, "version", "1.10"), b(this, "requiresAuth", !0), b(this, "desmosProvider", null), b(this, "config", null);
|
|
2861
2861
|
}
|
|
@@ -2932,7 +2932,7 @@ var Na = class {
|
|
|
2932
2932
|
destroy() {
|
|
2933
2933
|
this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
|
|
2934
2934
|
}
|
|
2935
|
-
},
|
|
2935
|
+
}, ja = (e, t) => {
|
|
2936
2936
|
const r = t?.useSentenceSegmenter !== !1;
|
|
2937
2937
|
try {
|
|
2938
2938
|
if (!r) throw new Error("Segmenter disabled by policy");
|
|
@@ -2959,14 +2959,14 @@ var Na = class {
|
|
|
2959
2959
|
text: e,
|
|
2960
2960
|
offset: 0
|
|
2961
2961
|
}];
|
|
2962
|
-
},
|
|
2962
|
+
}, za = class {
|
|
2963
2963
|
constructor() {
|
|
2964
2964
|
b(this, "providerId", "browser"), b(this, "providerName", "Browser Speech Synthesis"), b(this, "version", "1.0.0");
|
|
2965
2965
|
}
|
|
2966
2966
|
async initialize(e) {
|
|
2967
2967
|
if (typeof window > "u") throw new Error("BrowserTTSProvider requires browser environment");
|
|
2968
2968
|
if (!("speechSynthesis" in window)) throw new Error("Browser does not support Speech Synthesis API");
|
|
2969
|
-
return new
|
|
2969
|
+
return new Wa(e);
|
|
2970
2970
|
}
|
|
2971
2971
|
supportsFeature(e) {
|
|
2972
2972
|
return !0;
|
|
@@ -2983,7 +2983,7 @@ var Na = class {
|
|
|
2983
2983
|
}
|
|
2984
2984
|
destroy() {
|
|
2985
2985
|
}
|
|
2986
|
-
},
|
|
2986
|
+
}, Wa = class {
|
|
2987
2987
|
constructor(e) {
|
|
2988
2988
|
b(this, "utterance", null), b(this, "config", null), b(this, "_isPlaying", !1), b(this, "_isPaused", !1), b(this, "speakRunId", 0), b(this, "onWordBoundary", void 0), this.config = e;
|
|
2989
2989
|
}
|
|
@@ -3053,7 +3053,7 @@ var Na = class {
|
|
|
3053
3053
|
}
|
|
3054
3054
|
segmentSentences(e) {
|
|
3055
3055
|
const t = this.getSegmentationPolicy();
|
|
3056
|
-
return
|
|
3056
|
+
return ja(e, {
|
|
3057
3057
|
locale: t.locale,
|
|
3058
3058
|
useSentenceSegmenter: t.useSentenceSegmenter
|
|
3059
3059
|
});
|
|
@@ -3122,7 +3122,7 @@ var Na = class {
|
|
|
3122
3122
|
...e.providerOptions || {}
|
|
3123
3123
|
});
|
|
3124
3124
|
}
|
|
3125
|
-
},
|
|
3125
|
+
}, Ha = class {
|
|
3126
3126
|
async emitTelemetry(e, t) {
|
|
3127
3127
|
try {
|
|
3128
3128
|
await this.config?.onTelemetry?.(e, t);
|
|
@@ -3154,7 +3154,7 @@ var Na = class {
|
|
|
3154
3154
|
}
|
|
3155
3155
|
async _initializeBrowserTTS(e) {
|
|
3156
3156
|
if (typeof window > "u" || !("speechSynthesis" in window)) throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
|
|
3157
|
-
this.ttsProvider = new
|
|
3157
|
+
this.ttsProvider = new za(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
|
|
3158
3158
|
}
|
|
3159
3159
|
async _initializeServerTTS(e) {
|
|
3160
3160
|
if (!e.apiEndpoint) throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
|
|
@@ -3212,7 +3212,7 @@ var Na = class {
|
|
|
3212
3212
|
destroy() {
|
|
3213
3213
|
this.ttsProvider && (this.ttsProvider.destroy(), this.ttsProvider = null), this.config = null, console.log("[TTSToolProvider] Destroyed");
|
|
3214
3214
|
}
|
|
3215
|
-
},
|
|
3215
|
+
}, Ba = /* @__PURE__ */ new Set([
|
|
3216
3216
|
"annotation-xml",
|
|
3217
3217
|
"color-profile",
|
|
3218
3218
|
"font-face",
|
|
@@ -3221,16 +3221,16 @@ var Na = class {
|
|
|
3221
3221
|
"font-face-format",
|
|
3222
3222
|
"font-face-name",
|
|
3223
3223
|
"missing-glyph"
|
|
3224
|
-
]),
|
|
3224
|
+
]), Fa = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, qa = (e, t = "custom element tag") => {
|
|
3225
3225
|
if (!e || typeof e != "string") throw new Error(`Invalid ${t}: expected a non-empty string`);
|
|
3226
3226
|
const r = e.trim();
|
|
3227
3227
|
if (!r) throw new Error(`Invalid ${t}: tag is empty`);
|
|
3228
3228
|
if (r !== r.toLowerCase()) throw new Error(`Invalid ${t} "${r}": custom element names must be lowercase`);
|
|
3229
3229
|
if (!r.includes("-")) throw new Error(`Invalid ${t} "${r}": custom element names must include a hyphen`);
|
|
3230
|
-
if (
|
|
3231
|
-
if (!
|
|
3230
|
+
if (Ba.has(r)) throw new Error(`Invalid ${t} "${r}": this name is reserved by the HTML spec`);
|
|
3231
|
+
if (!Fa.test(r)) throw new Error(`Invalid ${t} "${r}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
|
|
3232
3232
|
return r;
|
|
3233
|
-
},
|
|
3233
|
+
}, bo = {
|
|
3234
3234
|
calculator: "pie-tool-calculator",
|
|
3235
3235
|
textToSpeech: "pie-tool-text-to-speech",
|
|
3236
3236
|
ruler: "pie-tool-ruler",
|
|
@@ -3243,22 +3243,38 @@ var Na = class {
|
|
|
3243
3243
|
annotationToolbar: "pie-tool-annotation-toolbar",
|
|
3244
3244
|
graph: "pie-tool-graph",
|
|
3245
3245
|
periodicTable: "pie-tool-periodic-table"
|
|
3246
|
-
},
|
|
3247
|
-
const i =
|
|
3246
|
+
}, Ua = (e, t) => qa(t?.toolTagMap?.[e] ?? bo[e] ?? e, `tool component tag for "${e}"`), Ga = (e) => document.createElement(e), Ae = (e, t, r, n) => {
|
|
3247
|
+
const i = Ua(e, n), o = n?.toolComponentFactories?.[e] ?? n?.toolComponentFactory;
|
|
3248
3248
|
return o ? o({
|
|
3249
3249
|
toolId: e,
|
|
3250
3250
|
tagName: i,
|
|
3251
3251
|
context: t,
|
|
3252
3252
|
toolbarContext: r
|
|
3253
|
-
}) :
|
|
3254
|
-
}
|
|
3253
|
+
}) : Ga(i);
|
|
3254
|
+
};
|
|
3255
|
+
function si(e) {
|
|
3256
|
+
return e === "basic" || e === "scientific" ? e : null;
|
|
3257
|
+
}
|
|
3258
|
+
function Ka(e) {
|
|
3259
|
+
const t = e.getToolRenderParams?.("calculator") ?? {}, r = si(t.calculatorType), n = t.availableTypes;
|
|
3260
|
+
return {
|
|
3261
|
+
calculatorType: r,
|
|
3262
|
+
availableTypes: Array.isArray(n) ? n.map((i) => si(i)).filter((i) => i !== null) : r ? [r] : null,
|
|
3263
|
+
displayName: r === "scientific" ? "Scientific Calculator" : r === "basic" ? "Basic Calculator" : "Calculator"
|
|
3264
|
+
};
|
|
3265
|
+
}
|
|
3266
|
+
function ai(e, t, r) {
|
|
3267
|
+
const n = e;
|
|
3268
|
+
t ? (n.calculatorType = t, e.setAttribute("calculator-type", t)) : (delete n.calculatorType, e.removeAttribute("calculator-type")), r && r.length > 0 ? n.availableTypes = r : delete n.availableTypes;
|
|
3269
|
+
}
|
|
3270
|
+
var Ya = {
|
|
3255
3271
|
toolId: "calculator",
|
|
3256
3272
|
name: "Calculator",
|
|
3257
3273
|
description: "Multi-type calculator (basic, scientific, graphing)",
|
|
3258
3274
|
icon: "calculator",
|
|
3259
3275
|
provider: {
|
|
3260
3276
|
getProviderId: (e) => typeof e?.provider?.id == "string" && e.provider.id.length > 0 ? e.provider.id : "calculator-desmos",
|
|
3261
|
-
createProvider: () => new
|
|
3277
|
+
createProvider: () => new Va(),
|
|
3262
3278
|
getInitConfig: (e) => e?.provider?.init ?? {},
|
|
3263
3279
|
getAuthFetcher: (e) => {
|
|
3264
3280
|
const t = e?.provider?.runtime?.authFetcher;
|
|
@@ -3284,23 +3300,23 @@ var Na = class {
|
|
|
3284
3300
|
return Ar(e);
|
|
3285
3301
|
},
|
|
3286
3302
|
renderToolbar(e, t) {
|
|
3287
|
-
const r = kn(this.toolId, t.scope.level, t.scope.scopeId),
|
|
3288
|
-
|
|
3289
|
-
const
|
|
3303
|
+
const { calculatorType: r, availableTypes: n, displayName: i } = Ka(t), o = kn(this.toolId, t.scope.level, t.scope.scopeId), s = t.componentOverrides, a = Ae(this.toolId, e, t, s);
|
|
3304
|
+
a.setAttribute("tool-id", o), a.toolkitCoordinator = t.toolkitCoordinator, ai(a, r, n);
|
|
3305
|
+
const c = r === null ? "Open scientific calculator" : `Open ${i.toLowerCase()}`, u = r === null ? "Close scientific calculator" : `Close ${i.toLowerCase()}`, f = {
|
|
3290
3306
|
toolId: this.toolId,
|
|
3291
|
-
label:
|
|
3307
|
+
label: i,
|
|
3292
3308
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
3293
3309
|
disabled: !1,
|
|
3294
|
-
ariaLabel:
|
|
3295
|
-
tooltip:
|
|
3310
|
+
ariaLabel: c,
|
|
3311
|
+
tooltip: i,
|
|
3296
3312
|
onClick: () => t.toggleTool(this.toolId),
|
|
3297
|
-
active: t.isToolVisible(
|
|
3313
|
+
active: t.isToolVisible(o)
|
|
3298
3314
|
};
|
|
3299
|
-
let
|
|
3300
|
-
return
|
|
3315
|
+
let p = f.active;
|
|
3316
|
+
return a.visible = f.active, {
|
|
3301
3317
|
toolId: this.toolId,
|
|
3302
3318
|
elements: [{
|
|
3303
|
-
element:
|
|
3319
|
+
element: a,
|
|
3304
3320
|
mount: "after-buttons",
|
|
3305
3321
|
shell: {
|
|
3306
3322
|
title: this.name,
|
|
@@ -3313,24 +3329,24 @@ var Na = class {
|
|
|
3313
3329
|
minHeight: 420
|
|
3314
3330
|
}
|
|
3315
3331
|
}],
|
|
3316
|
-
button:
|
|
3332
|
+
button: f,
|
|
3317
3333
|
sync: () => {
|
|
3318
|
-
const
|
|
3319
|
-
|
|
3334
|
+
const d = t.isToolVisible(o);
|
|
3335
|
+
f.active = d, f.label = i, f.ariaLabel = d ? u : c, f.tooltip = d ? `Close ${i.toLowerCase()}` : i, p !== d && (a.visible = d, p = d), a.toolkitCoordinator !== t.toolkitCoordinator && (a.toolkitCoordinator = t.toolkitCoordinator), ai(a, r, n);
|
|
3320
3336
|
},
|
|
3321
|
-
subscribeActive: (
|
|
3322
|
-
|
|
3337
|
+
subscribeActive: (d) => t.subscribeVisibility ? t.subscribeVisibility(() => {
|
|
3338
|
+
d(t.isToolVisible(o));
|
|
3323
3339
|
}) : () => {
|
|
3324
3340
|
}
|
|
3325
3341
|
};
|
|
3326
3342
|
}
|
|
3327
|
-
},
|
|
3343
|
+
}, Xa = /* @__PURE__ */ new Set([
|
|
3328
3344
|
"reserved-row",
|
|
3329
3345
|
"expanding-row",
|
|
3330
3346
|
"floating-overlay",
|
|
3331
3347
|
"left-aligned"
|
|
3332
|
-
]),
|
|
3333
|
-
if (!Array.isArray(e)) return [...
|
|
3348
|
+
]), li = (e) => e && typeof e == "object" ? e : {}, Ja = (e) => e === "polly" || e === "google" || e === "server", ee = (e, t) => e === void 0 ? t : e, mr = (e, t = "left-aligned") => typeof e == "string" && Xa.has(e) ? e : t, ci = Object.freeze([0.8, 1.25]), zr = (e) => {
|
|
3349
|
+
if (!Array.isArray(e)) return [...ci];
|
|
3334
3350
|
if (e.length === 0) return [];
|
|
3335
3351
|
const t = /* @__PURE__ */ new Set();
|
|
3336
3352
|
for (const r of e) {
|
|
@@ -3338,13 +3354,13 @@ var Na = class {
|
|
|
3338
3354
|
const n = Math.round(r * 100) / 100;
|
|
3339
3355
|
n !== 1 && t.add(n);
|
|
3340
3356
|
}
|
|
3341
|
-
return t.size ? Array.from(t) : [...
|
|
3342
|
-
},
|
|
3357
|
+
return t.size ? Array.from(t) : [...ci];
|
|
3358
|
+
}, Qa = (e) => {
|
|
3343
3359
|
const t = {
|
|
3344
3360
|
...e,
|
|
3345
3361
|
layoutMode: mr(e.layoutMode)
|
|
3346
3362
|
}, r = e.backend || "browser";
|
|
3347
|
-
if (!
|
|
3363
|
+
if (!Ja(r)) return t;
|
|
3348
3364
|
const n = {
|
|
3349
3365
|
...t,
|
|
3350
3366
|
apiEndpoint: ee(t.apiEndpoint, "/api/tts"),
|
|
@@ -3366,13 +3382,13 @@ var Na = class {
|
|
|
3366
3382
|
defaultVoice: ee(n.defaultVoice, "en-US-Wavenet-A")
|
|
3367
3383
|
} : n;
|
|
3368
3384
|
}, Wr = (e) => {
|
|
3369
|
-
const t =
|
|
3370
|
-
return
|
|
3385
|
+
const t = li(e), r = li(e?.settings);
|
|
3386
|
+
return Qa({
|
|
3371
3387
|
...t,
|
|
3372
3388
|
...r
|
|
3373
3389
|
});
|
|
3374
|
-
}, tn = (e) => e.backend || "browser",
|
|
3375
|
-
const t = tn(e), r =
|
|
3390
|
+
}, tn = (e) => e.backend || "browser", yo = (e, t) => t === "polly" || t === "google" ? t : e.serverProvider || e.provider, wo = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), Za = (e) => {
|
|
3391
|
+
const t = tn(e), r = yo(e, t), n = wo(e, r);
|
|
3376
3392
|
return {
|
|
3377
3393
|
voice: e.defaultVoice,
|
|
3378
3394
|
rate: e.rate,
|
|
@@ -3396,8 +3412,8 @@ var Na = class {
|
|
|
3396
3412
|
includeAuthOnAssetFetch: e.includeAuthOnAssetFetch,
|
|
3397
3413
|
validateEndpoint: e.validateEndpoint
|
|
3398
3414
|
};
|
|
3399
|
-
},
|
|
3400
|
-
switch (
|
|
3415
|
+
}, To = (e) => mr(e.layoutMode), el = (e) => {
|
|
3416
|
+
switch (To(e)) {
|
|
3401
3417
|
case "reserved-row":
|
|
3402
3418
|
return {
|
|
3403
3419
|
mount: "before-buttons",
|
|
@@ -3423,21 +3439,21 @@ var Na = class {
|
|
|
3423
3439
|
}
|
|
3424
3440
|
};
|
|
3425
3441
|
}
|
|
3426
|
-
},
|
|
3442
|
+
}, Ct = /* @__PURE__ */ new Map(), tl = "__pieToolElementUnmount", ui = "pie-tool-active-change", rl = {
|
|
3427
3443
|
toolId: "textToSpeech",
|
|
3428
3444
|
name: "Text to Speech",
|
|
3429
3445
|
description: "Read content aloud",
|
|
3430
3446
|
icon: "volume-up",
|
|
3431
3447
|
provider: {
|
|
3432
3448
|
getProviderId: () => "tts",
|
|
3433
|
-
createProvider: (e) => new
|
|
3449
|
+
createProvider: (e) => new Ha(tn(Wr(e))),
|
|
3434
3450
|
getInitConfig: (e) => {
|
|
3435
|
-
const t = Wr(e), r = tn(t), n =
|
|
3451
|
+
const t = Wr(e), r = tn(t), n = yo(t, r);
|
|
3436
3452
|
return {
|
|
3437
3453
|
backend: r,
|
|
3438
3454
|
serverProvider: n,
|
|
3439
|
-
transportMode:
|
|
3440
|
-
...
|
|
3455
|
+
transportMode: wo(t, n),
|
|
3456
|
+
...Za(t)
|
|
3441
3457
|
};
|
|
3442
3458
|
},
|
|
3443
3459
|
getAuthFetcher: (e) => {
|
|
@@ -3463,14 +3479,14 @@ var Na = class {
|
|
|
3463
3479
|
return Ir(e);
|
|
3464
3480
|
},
|
|
3465
3481
|
renderToolbar(e, t) {
|
|
3466
|
-
const r = () => Wr(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), n = () => zr(r().speedOptions), i = () =>
|
|
3482
|
+
const r = () => Wr(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), n = () => zr(r().speedOptions), i = () => To(r()), o = () => el(r()), s = kn(this.toolId, t.scope.level, t.scope.scopeId), a = () => {
|
|
3467
3483
|
const f = t.ui?.size;
|
|
3468
3484
|
return f === "sm" || f === "lg" ? f : "md";
|
|
3469
3485
|
}, c = () => {
|
|
3470
|
-
let f =
|
|
3471
|
-
return f && typeof f.isConnected == "boolean" && !f.isConnected && (
|
|
3472
|
-
|
|
3473
|
-
},
|
|
3486
|
+
let f = Ct.get(s);
|
|
3487
|
+
return f && typeof f.isConnected == "boolean" && !f.isConnected && (Ct.delete(s), f = void 0), f || (f = document.createElement("pie-tool-tts-inline"), f[tl] = () => {
|
|
3488
|
+
Ct.get(s) === f && Ct.delete(s);
|
|
3489
|
+
}, Ct.set(s, f)), f.setAttribute("tool-id", s), f.setAttribute("catalog-id", t.catalogId || t.itemId), f.setAttribute("language", t.language || "en-US"), f.setAttribute("size", a()), f.setAttribute("layout-mode", i()), f.speedOptions = n(), f;
|
|
3474
3490
|
}, u = o();
|
|
3475
3491
|
return {
|
|
3476
3492
|
toolId: this.toolId,
|
|
@@ -3488,8 +3504,8 @@ var Na = class {
|
|
|
3488
3504
|
const g = h.detail;
|
|
3489
3505
|
f(g?.active === !0);
|
|
3490
3506
|
};
|
|
3491
|
-
return p.addEventListener(
|
|
3492
|
-
p.removeEventListener(
|
|
3507
|
+
return p.addEventListener(ui, d), () => {
|
|
3508
|
+
p.removeEventListener(ui, d);
|
|
3493
3509
|
};
|
|
3494
3510
|
},
|
|
3495
3511
|
sync: () => {
|
|
@@ -3499,7 +3515,7 @@ var Na = class {
|
|
|
3499
3515
|
};
|
|
3500
3516
|
}
|
|
3501
3517
|
};
|
|
3502
|
-
function
|
|
3518
|
+
function Ce(e, t) {
|
|
3503
3519
|
const r = kn(e, t.scope.level, t.scope.scopeId);
|
|
3504
3520
|
return {
|
|
3505
3521
|
fullToolId: r,
|
|
@@ -3510,14 +3526,14 @@ function Me(e, t) {
|
|
|
3510
3526
|
}
|
|
3511
3527
|
};
|
|
3512
3528
|
}
|
|
3513
|
-
function
|
|
3529
|
+
function Me(e) {
|
|
3514
3530
|
const t = e.isActive();
|
|
3515
3531
|
e.button.active = t, e.overlay.visible = t, e.onActiveChange?.(t);
|
|
3516
3532
|
}
|
|
3517
3533
|
function An(e, t) {
|
|
3518
3534
|
e.setAttribute("data-pie-tool-surface", t);
|
|
3519
3535
|
}
|
|
3520
|
-
var
|
|
3536
|
+
var nl = {
|
|
3521
3537
|
toolId: "ruler",
|
|
3522
3538
|
name: "Ruler",
|
|
3523
3539
|
description: "On-screen ruler for measurements",
|
|
@@ -3532,7 +3548,7 @@ var el = {
|
|
|
3532
3548
|
return Ar(e);
|
|
3533
3549
|
},
|
|
3534
3550
|
renderToolbar(e, t) {
|
|
3535
|
-
const r =
|
|
3551
|
+
const r = Ce(this.toolId, t), n = {
|
|
3536
3552
|
toolId: this.toolId,
|
|
3537
3553
|
label: this.name,
|
|
3538
3554
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -3550,7 +3566,7 @@ var el = {
|
|
|
3550
3566
|
mount: "after-buttons"
|
|
3551
3567
|
}],
|
|
3552
3568
|
sync: () => {
|
|
3553
|
-
|
|
3569
|
+
Me({
|
|
3554
3570
|
button: n,
|
|
3555
3571
|
overlay: o,
|
|
3556
3572
|
isActive: r.isActive
|
|
@@ -3559,7 +3575,7 @@ var el = {
|
|
|
3559
3575
|
subscribeActive: r.subscribeActive
|
|
3560
3576
|
};
|
|
3561
3577
|
}
|
|
3562
|
-
},
|
|
3578
|
+
}, il = {
|
|
3563
3579
|
toolId: "protractor",
|
|
3564
3580
|
name: "Protractor",
|
|
3565
3581
|
description: "On-screen protractor for angle measurements",
|
|
@@ -3574,7 +3590,7 @@ var el = {
|
|
|
3574
3590
|
return Ar(e);
|
|
3575
3591
|
},
|
|
3576
3592
|
renderToolbar(e, t) {
|
|
3577
|
-
const r =
|
|
3593
|
+
const r = Ce(this.toolId, t), n = {
|
|
3578
3594
|
toolId: this.toolId,
|
|
3579
3595
|
label: this.name,
|
|
3580
3596
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -3592,7 +3608,7 @@ var el = {
|
|
|
3592
3608
|
mount: "after-buttons"
|
|
3593
3609
|
}],
|
|
3594
3610
|
sync: () => {
|
|
3595
|
-
|
|
3611
|
+
Me({
|
|
3596
3612
|
button: n,
|
|
3597
3613
|
overlay: o,
|
|
3598
3614
|
isActive: r.isActive
|
|
@@ -3601,7 +3617,7 @@ var el = {
|
|
|
3601
3617
|
subscribeActive: r.subscribeActive
|
|
3602
3618
|
};
|
|
3603
3619
|
}
|
|
3604
|
-
},
|
|
3620
|
+
}, ol = {
|
|
3605
3621
|
toolId: "answerEliminator",
|
|
3606
3622
|
name: "Answer Eliminator",
|
|
3607
3623
|
description: "Strike through answer choices",
|
|
@@ -3614,10 +3630,10 @@ var el = {
|
|
|
3614
3630
|
"choiceMasking"
|
|
3615
3631
|
],
|
|
3616
3632
|
isVisibleInContext(e) {
|
|
3617
|
-
return
|
|
3633
|
+
return Ma(e);
|
|
3618
3634
|
},
|
|
3619
3635
|
renderToolbar(e, t) {
|
|
3620
|
-
const r =
|
|
3636
|
+
const r = Ce(this.toolId, t), n = t.componentOverrides ?? {}, i = Ae(this.toolId, e, t, n);
|
|
3621
3637
|
i.setAttribute("tool-id", r.fullToolId), i.setAttribute("strategy", "strikethrough"), i.setAttribute("button-alignment", "inline");
|
|
3622
3638
|
const o = {
|
|
3623
3639
|
toolId: this.toolId,
|
|
@@ -3637,7 +3653,7 @@ var el = {
|
|
|
3637
3653
|
mount: "after-buttons"
|
|
3638
3654
|
}],
|
|
3639
3655
|
sync: () => {
|
|
3640
|
-
|
|
3656
|
+
Me({
|
|
3641
3657
|
button: o,
|
|
3642
3658
|
overlay: i,
|
|
3643
3659
|
isActive: r.isActive
|
|
@@ -3648,7 +3664,7 @@ var el = {
|
|
|
3648
3664
|
subscribeActive: r.subscribeActive
|
|
3649
3665
|
};
|
|
3650
3666
|
}
|
|
3651
|
-
},
|
|
3667
|
+
}, sl = {
|
|
3652
3668
|
toolId: "highlighter",
|
|
3653
3669
|
name: "Highlighter",
|
|
3654
3670
|
description: "Highlight text",
|
|
@@ -3669,7 +3685,7 @@ var el = {
|
|
|
3669
3685
|
return Ir(e);
|
|
3670
3686
|
},
|
|
3671
3687
|
renderToolbar(e, t) {
|
|
3672
|
-
const r =
|
|
3688
|
+
const r = Ce(this.toolId, t), n = {
|
|
3673
3689
|
toolId: this.toolId,
|
|
3674
3690
|
label: this.name,
|
|
3675
3691
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -3687,7 +3703,7 @@ var el = {
|
|
|
3687
3703
|
mount: "after-buttons"
|
|
3688
3704
|
}],
|
|
3689
3705
|
sync: () => {
|
|
3690
|
-
|
|
3706
|
+
Me({
|
|
3691
3707
|
button: n,
|
|
3692
3708
|
overlay: o,
|
|
3693
3709
|
isActive: r.isActive,
|
|
@@ -3699,7 +3715,7 @@ var el = {
|
|
|
3699
3715
|
subscribeActive: r.subscribeActive
|
|
3700
3716
|
};
|
|
3701
3717
|
}
|
|
3702
|
-
},
|
|
3718
|
+
}, al = {
|
|
3703
3719
|
toolId: "lineReader",
|
|
3704
3720
|
name: "Line Reader",
|
|
3705
3721
|
description: "Reading guide overlay",
|
|
@@ -3721,7 +3737,7 @@ var el = {
|
|
|
3721
3737
|
return Ir(e);
|
|
3722
3738
|
},
|
|
3723
3739
|
renderToolbar(e, t) {
|
|
3724
|
-
const r =
|
|
3740
|
+
const r = Ce(this.toolId, t), n = {
|
|
3725
3741
|
toolId: this.toolId,
|
|
3726
3742
|
label: this.name,
|
|
3727
3743
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -3739,7 +3755,7 @@ var el = {
|
|
|
3739
3755
|
mount: "after-buttons"
|
|
3740
3756
|
}],
|
|
3741
3757
|
sync: () => {
|
|
3742
|
-
|
|
3758
|
+
Me({
|
|
3743
3759
|
button: n,
|
|
3744
3760
|
overlay: o,
|
|
3745
3761
|
isActive: r.isActive
|
|
@@ -3748,7 +3764,7 @@ var el = {
|
|
|
3748
3764
|
subscribeActive: r.subscribeActive
|
|
3749
3765
|
};
|
|
3750
3766
|
}
|
|
3751
|
-
},
|
|
3767
|
+
}, ll = {
|
|
3752
3768
|
toolId: "theme",
|
|
3753
3769
|
name: "Theme",
|
|
3754
3770
|
description: "Accessible themes and contrast",
|
|
@@ -3767,7 +3783,7 @@ var el = {
|
|
|
3767
3783
|
return !0;
|
|
3768
3784
|
},
|
|
3769
3785
|
renderToolbar(e, t) {
|
|
3770
|
-
const r =
|
|
3786
|
+
const r = Ce(this.toolId, t), n = {
|
|
3771
3787
|
toolId: this.toolId,
|
|
3772
3788
|
label: this.name,
|
|
3773
3789
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -3795,7 +3811,7 @@ var el = {
|
|
|
3795
3811
|
}
|
|
3796
3812
|
}],
|
|
3797
3813
|
sync: () => {
|
|
3798
|
-
|
|
3814
|
+
Me({
|
|
3799
3815
|
button: n,
|
|
3800
3816
|
overlay: o,
|
|
3801
3817
|
isActive: r.isActive
|
|
@@ -3804,7 +3820,7 @@ var el = {
|
|
|
3804
3820
|
subscribeActive: r.subscribeActive
|
|
3805
3821
|
};
|
|
3806
3822
|
}
|
|
3807
|
-
},
|
|
3823
|
+
}, cl = {
|
|
3808
3824
|
toolId: "annotationToolbar",
|
|
3809
3825
|
name: "Highlighter",
|
|
3810
3826
|
description: "Highlight and annotate text",
|
|
@@ -3828,7 +3844,7 @@ var el = {
|
|
|
3828
3844
|
return Ir(e);
|
|
3829
3845
|
},
|
|
3830
3846
|
renderToolbar(e, t) {
|
|
3831
|
-
const r =
|
|
3847
|
+
const r = Ce(this.toolId, t), n = {
|
|
3832
3848
|
toolId: this.toolId,
|
|
3833
3849
|
label: this.name,
|
|
3834
3850
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -3846,7 +3862,7 @@ var el = {
|
|
|
3846
3862
|
mount: "after-buttons"
|
|
3847
3863
|
}],
|
|
3848
3864
|
sync: () => {
|
|
3849
|
-
|
|
3865
|
+
Me({
|
|
3850
3866
|
button: n,
|
|
3851
3867
|
overlay: o,
|
|
3852
3868
|
isActive: r.isActive
|
|
@@ -3855,7 +3871,7 @@ var el = {
|
|
|
3855
3871
|
subscribeActive: r.subscribeActive
|
|
3856
3872
|
};
|
|
3857
3873
|
}
|
|
3858
|
-
},
|
|
3874
|
+
}, ul = {
|
|
3859
3875
|
toolId: "graph",
|
|
3860
3876
|
name: "Graph",
|
|
3861
3877
|
description: "Graphing calculator and coordinate plane",
|
|
@@ -3871,7 +3887,7 @@ var el = {
|
|
|
3871
3887
|
return Ar(e);
|
|
3872
3888
|
},
|
|
3873
3889
|
renderToolbar(e, t) {
|
|
3874
|
-
const r =
|
|
3890
|
+
const r = Ce(this.toolId, t), n = {
|
|
3875
3891
|
toolId: this.toolId,
|
|
3876
3892
|
label: this.name,
|
|
3877
3893
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -3899,7 +3915,7 @@ var el = {
|
|
|
3899
3915
|
}
|
|
3900
3916
|
}],
|
|
3901
3917
|
sync: () => {
|
|
3902
|
-
|
|
3918
|
+
Me({
|
|
3903
3919
|
button: n,
|
|
3904
3920
|
overlay: o,
|
|
3905
3921
|
isActive: r.isActive
|
|
@@ -3908,7 +3924,7 @@ var el = {
|
|
|
3908
3924
|
subscribeActive: r.subscribeActive
|
|
3909
3925
|
};
|
|
3910
3926
|
}
|
|
3911
|
-
},
|
|
3927
|
+
}, fl = {
|
|
3912
3928
|
toolId: "periodicTable",
|
|
3913
3929
|
name: "Periodic Table",
|
|
3914
3930
|
description: "Chemistry periodic table reference",
|
|
@@ -3920,10 +3936,10 @@ var el = {
|
|
|
3920
3936
|
"elementReference"
|
|
3921
3937
|
],
|
|
3922
3938
|
isVisibleInContext(e) {
|
|
3923
|
-
return
|
|
3939
|
+
return Pa(e);
|
|
3924
3940
|
},
|
|
3925
3941
|
renderToolbar(e, t) {
|
|
3926
|
-
const r =
|
|
3942
|
+
const r = Ce(this.toolId, t), n = {
|
|
3927
3943
|
toolId: this.toolId,
|
|
3928
3944
|
label: this.name,
|
|
3929
3945
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -3951,7 +3967,7 @@ var el = {
|
|
|
3951
3967
|
}
|
|
3952
3968
|
}],
|
|
3953
3969
|
sync: () => {
|
|
3954
|
-
|
|
3970
|
+
Me({
|
|
3955
3971
|
button: n,
|
|
3956
3972
|
overlay: o,
|
|
3957
3973
|
isActive: r.isActive
|
|
@@ -3960,54 +3976,54 @@ var el = {
|
|
|
3960
3976
|
subscribeActive: r.subscribeActive
|
|
3961
3977
|
};
|
|
3962
3978
|
}
|
|
3963
|
-
},
|
|
3964
|
-
|
|
3965
|
-
Za,
|
|
3966
|
-
el,
|
|
3967
|
-
tl,
|
|
3979
|
+
}, dl = [
|
|
3980
|
+
Ya,
|
|
3968
3981
|
rl,
|
|
3969
3982
|
nl,
|
|
3970
3983
|
il,
|
|
3971
3984
|
ol,
|
|
3972
3985
|
sl,
|
|
3973
3986
|
al,
|
|
3974
|
-
ll
|
|
3987
|
+
ll,
|
|
3988
|
+
cl,
|
|
3989
|
+
ul,
|
|
3990
|
+
fl
|
|
3975
3991
|
];
|
|
3976
|
-
function
|
|
3977
|
-
const t = new
|
|
3992
|
+
function hl(e = {}) {
|
|
3993
|
+
const t = new La(), r = {
|
|
3978
3994
|
toolTagMap: {
|
|
3979
|
-
...
|
|
3995
|
+
...bo,
|
|
3980
3996
|
...e.toolTagMap || {}
|
|
3981
3997
|
},
|
|
3982
3998
|
toolComponentFactory: e.toolComponentFactory,
|
|
3983
3999
|
toolComponentFactories: e.toolComponentFactories
|
|
3984
4000
|
}, n = (i) => e.overrides?.[i.toolId] || i;
|
|
3985
|
-
return e.includePackagedTools &&
|
|
4001
|
+
return e.includePackagedTools && pl(t, {
|
|
3986
4002
|
toolIds: e.toolIds,
|
|
3987
4003
|
applyOverrides: n
|
|
3988
4004
|
}), e.toolModuleLoaders && Object.keys(e.toolModuleLoaders).length > 0 && t.setToolModuleLoaders(e.toolModuleLoaders), t.setComponentOverrides(r), t;
|
|
3989
4005
|
}
|
|
3990
|
-
function
|
|
4006
|
+
function pl(e, t = {}) {
|
|
3991
4007
|
const r = t.toolIds && t.toolIds.length > 0 ? new Set(t.toolIds) : null, n = t.applyOverrides || ((i) => i);
|
|
3992
|
-
for (const i of
|
|
4008
|
+
for (const i of dl)
|
|
3993
4009
|
r && !r.has(i.toolId) || e.register(n(i));
|
|
3994
4010
|
}
|
|
3995
|
-
function
|
|
3996
|
-
return
|
|
4011
|
+
function vl(e = {}) {
|
|
4012
|
+
return hl({
|
|
3997
4013
|
...e,
|
|
3998
4014
|
includePackagedTools: !0
|
|
3999
4015
|
});
|
|
4000
4016
|
}
|
|
4001
|
-
function
|
|
4002
|
-
const e =
|
|
4017
|
+
function gl() {
|
|
4018
|
+
const e = vl(), t = /* @__PURE__ */ new Set();
|
|
4003
4019
|
for (const r of e.getAllTools()) for (const n of r.pnpSupportIds || []) t.add(n);
|
|
4004
4020
|
return [...t].sort();
|
|
4005
4021
|
}
|
|
4006
|
-
var
|
|
4007
|
-
supports: [...
|
|
4022
|
+
var _l = gl(), Vl = {
|
|
4023
|
+
supports: [..._l],
|
|
4008
4024
|
prohibitedSupports: [],
|
|
4009
4025
|
activateAtInit: []
|
|
4010
|
-
},
|
|
4026
|
+
}, ml = {
|
|
4011
4027
|
visual: {
|
|
4012
4028
|
magnification: "magnification",
|
|
4013
4029
|
screenMagnifier: "screenMagnifier",
|
|
@@ -4120,15 +4136,15 @@ var pl = hl(), xl = {
|
|
|
4120
4136
|
itemGlossary: "itemGlossary",
|
|
4121
4137
|
tutorialAvailable: "tutorialAvailable"
|
|
4122
4138
|
}
|
|
4123
|
-
},
|
|
4139
|
+
}, jl = Object.values(ml).flatMap((e) => Object.values(e)), zl = vo("ToolCoordinator"), fi;
|
|
4124
4140
|
(function(e) {
|
|
4125
4141
|
e[e.BASE = 0] = "BASE", e[e.TOOL = 1e3] = "TOOL", e[e.MODAL = 2e3] = "MODAL", e[e.CONTROL = 3e3] = "CONTROL", e[e.HIGHLIGHT = 4e3] = "HIGHLIGHT";
|
|
4126
|
-
})(
|
|
4127
|
-
var
|
|
4142
|
+
})(fi || (fi = {}));
|
|
4143
|
+
var di;
|
|
4128
4144
|
(function(e) {
|
|
4129
4145
|
e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
|
|
4130
|
-
})(
|
|
4131
|
-
var
|
|
4146
|
+
})(di || (di = {}));
|
|
4147
|
+
var Wl = Ia({
|
|
4132
4148
|
policy: {
|
|
4133
4149
|
allowed: [],
|
|
4134
4150
|
blocked: []
|
|
@@ -4139,7 +4155,7 @@ var Vl = ka({
|
|
|
4139
4155
|
passage: []
|
|
4140
4156
|
},
|
|
4141
4157
|
providers: {}
|
|
4142
|
-
}),
|
|
4158
|
+
}), bl = /* @__PURE__ */ ft('<button class="pie-tool-annotation-toolbar__highlight-swatch svelte-g8qu62"><span class="pie-sr-only svelte-g8qu62"> </span></button>'), yl = /* @__PURE__ */ ft('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-g8qu62" aria-label="Read selected text aloud" title="Read Aloud"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><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), wl = /* @__PURE__ */ ft('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--warning svelte-g8qu62" aria-label="Remove this annotation" title="Remove"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><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__ */ ft('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--danger svelte-g8qu62" aria-label="Clear all annotations from document" title="Clear All">Clear All</button>'), Sl = /* @__PURE__ */ ft('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <!> <!>', 1), kl = /* @__PURE__ */ ft('<div class="pie-tool-annotation-toolbar notranslate svelte-g8qu62" role="toolbar" aria-label="Text annotation toolbar" translate="no"><!> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-g8qu62" aria-label="Underline selected text" title="Underline"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><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>'), Al = /* @__PURE__ */ ft('<div style="display: none;" aria-hidden="true"></div> <!> <div role="status" aria-live="polite" aria-atomic="true" class="pie-sr-only svelte-g8qu62"> </div>', 1), Il = {
|
|
4143
4159
|
hash: "svelte-g8qu62",
|
|
4144
4160
|
code: `.pie-tool-annotation-toolbar.svelte-g8qu62 {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);border:1px solid var(--pie-border, #d1d5db);box-shadow:0 10px 25px -8px rgb(0 0 0 / 0.3);user-select:none;}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62 {width:2.5rem;height:2rem;border:2px solid color-mix(in srgb, var(--pie-border-dark, #111827) 20%, transparent);border-radius:0.375rem;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;padding:0;}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62:hover {transform:scale(1.1);border-color:color-mix(in srgb, var(--pie-border-dark, #111827) 45%, transparent);box-shadow:0 2px 8px rgb(0 0 0 / 0.15);}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62:focus-visible {outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #3f51b5));outline-offset:2px;}.pie-tool-annotation-toolbar.svelte-g8qu62 .divider-horizontal:where(.svelte-g8qu62) {height:auto;width:1px;background-color:color-mix(in srgb, var(--pie-border, #d1d5db) 70%, transparent);}
|
|
4145
4161
|
|
|
@@ -4147,8 +4163,8 @@ var Vl = ka({
|
|
|
4147
4163
|
|
|
4148
4164
|
/* Button styling */.pie-tool-annotation-toolbar__button.svelte-g8qu62 {display:inline-flex;align-items:center;justify-content:center;gap:0.35rem;padding:0.4rem 0.55rem;border:1px solid var(--pie-button-border, #d1d5db);border-radius:0.4rem;background:var(--pie-button-bg, #fff);color:var(--pie-button-color, var(--pie-text, #111827));cursor:pointer;}.pie-tool-annotation-toolbar__button--icon.svelte-g8qu62 {min-width:2rem;min-height:2rem;padding:0.45rem;}.pie-tool-annotation-toolbar__button.svelte-g8qu62:hover {background:var(--pie-button-hover-bg, #f9fafb);color:var(--pie-button-hover-color, var(--pie-text, #111827));border-color:var(--pie-button-hover-border, #9ca3af);}.pie-tool-annotation-toolbar__button.svelte-g8qu62:focus-visible {outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #3f51b5));outline-offset:2px;}.pie-tool-annotation-toolbar__button.svelte-g8qu62:disabled {opacity:0.6;cursor:not-allowed;}.pie-tool-annotation-toolbar__button--warning.svelte-g8qu62 {color:var(--pie-missing-icon, #92400e);}.pie-tool-annotation-toolbar__button--danger.svelte-g8qu62 {color:var(--pie-incorrect-icon, #b91c1c);}.pie-tool-annotation-toolbar__button.svelte-g8qu62 svg:where(.svelte-g8qu62) {width:18px;height:18px;}`
|
|
4149
4165
|
};
|
|
4150
|
-
function
|
|
4151
|
-
|
|
4166
|
+
function El(e, t) {
|
|
4167
|
+
yi(t, !0), na(e, Il);
|
|
4152
4168
|
let r = Dr(t, "enabled", 7, !0), n = Dr(t, "highlightCoordinator", 7, null), i = Dr(t, "ttsService", 7, null);
|
|
4153
4169
|
const o = typeof window < "u", s = "pie-annotations", a = [
|
|
4154
4170
|
{
|
|
@@ -4190,7 +4206,7 @@ function kl(e, t) {
|
|
|
4190
4206
|
x: 0,
|
|
4191
4207
|
y: 0
|
|
4192
4208
|
}
|
|
4193
|
-
})), g = /* @__PURE__ */ z(!1),
|
|
4209
|
+
})), g = /* @__PURE__ */ z(!1), w = /* @__PURE__ */ z(!1), v = /* @__PURE__ */ z(""), y = /* @__PURE__ */ z(0), x = /* @__PURE__ */ z(null), E = /* @__PURE__ */ Lr(() => _(y) > 0), P = /* @__PURE__ */ Lr(() => _(x) !== null), H = /* @__PURE__ */ Lr(() => _(d)?.scopeElement || _(p)?.scopeElement || null);
|
|
4194
4210
|
function D() {
|
|
4195
4211
|
const m = _(u)?.ownerDocument;
|
|
4196
4212
|
return _(H) || m?.documentElement || document.documentElement;
|
|
@@ -4238,7 +4254,7 @@ function kl(e, t) {
|
|
|
4238
4254
|
const m = sessionStorage.getItem(G());
|
|
4239
4255
|
if (!m) return;
|
|
4240
4256
|
const T = JSON.parse(m), R = D(), F = n().importAnnotations(T, R);
|
|
4241
|
-
console.log(`[AnnotationToolbar] Restored ${F} annotations`), O(
|
|
4257
|
+
console.log(`[AnnotationToolbar] Restored ${F} annotations`), O(y, n().getAnnotations().length, !0);
|
|
4242
4258
|
} catch (m) {
|
|
4243
4259
|
console.error("[AnnotationToolbar] Failed to load annotations:", m);
|
|
4244
4260
|
}
|
|
@@ -4257,8 +4273,8 @@ function kl(e, t) {
|
|
|
4257
4273
|
const At = R.length > 30 ? R.substring(0, 30) + "..." : R;
|
|
4258
4274
|
O(v, `Annotation toolbar opened for "${At}"`), setTimeout(() => {
|
|
4259
4275
|
O(v, "");
|
|
4260
|
-
}, 2e3), O(
|
|
4261
|
-
O(
|
|
4276
|
+
}, 2e3), O(w, !0), setTimeout(() => {
|
|
4277
|
+
O(w, !1);
|
|
4262
4278
|
}, 100);
|
|
4263
4279
|
}
|
|
4264
4280
|
function Ie() {
|
|
@@ -4267,13 +4283,13 @@ function kl(e, t) {
|
|
|
4267
4283
|
function In(m) {
|
|
4268
4284
|
if (!_(h).selectedRange || !n()) return;
|
|
4269
4285
|
const T = _(h).selectedText;
|
|
4270
|
-
n().addAnnotation(_(h).selectedRange, m), O(
|
|
4286
|
+
n().addAnnotation(_(h).selectedRange, m), O(y, n().getAnnotations().length, !0), Ft();
|
|
4271
4287
|
const R = m === We.UNDERLINE ? "underlined" : `highlighted in ${m}`, F = T.length > 30 ? T.substring(0, 30) + "..." : T;
|
|
4272
4288
|
O(v, `"${F}" ${R}`), setTimeout(() => {
|
|
4273
4289
|
O(v, "");
|
|
4274
4290
|
}, 3e3), Ie();
|
|
4275
4291
|
}
|
|
4276
|
-
function
|
|
4292
|
+
function So() {
|
|
4277
4293
|
if (!_(x) || !n()) {
|
|
4278
4294
|
console.warn("[AnnotationToolbar] No overlapping annotation to remove");
|
|
4279
4295
|
return;
|
|
@@ -4287,19 +4303,19 @@ function kl(e, t) {
|
|
|
4287
4303
|
const T = m.range.toString();
|
|
4288
4304
|
n().removeAnnotation(_(x));
|
|
4289
4305
|
const R = n().getAnnotations().length;
|
|
4290
|
-
O(
|
|
4306
|
+
O(y, R, !0), console.log("[AnnotationToolbar] Annotations remaining:", R), Ft();
|
|
4291
4307
|
const F = T.length > 30 ? T.substring(0, 30) + "..." : T;
|
|
4292
4308
|
O(v, `Removed annotation from "${F}"`), setTimeout(() => {
|
|
4293
4309
|
O(v, "");
|
|
4294
4310
|
}, 3e3), Ie();
|
|
4295
4311
|
}
|
|
4296
|
-
function
|
|
4297
|
-
const m = _(
|
|
4298
|
-
n()?.clearAnnotations(), O(
|
|
4312
|
+
function ko() {
|
|
4313
|
+
const m = _(y);
|
|
4314
|
+
n()?.clearAnnotations(), O(y, 0), sessionStorage.removeItem(G()), O(v, `${m} annotation${m === 1 ? "" : "s"} cleared`), setTimeout(() => {
|
|
4299
4315
|
O(v, "");
|
|
4300
4316
|
}, 3e3), Ie();
|
|
4301
4317
|
}
|
|
4302
|
-
async function
|
|
4318
|
+
async function Ao() {
|
|
4303
4319
|
if (!(!_(h).selectedRange || !i())) {
|
|
4304
4320
|
O(g, !0);
|
|
4305
4321
|
try {
|
|
@@ -4315,7 +4331,7 @@ function kl(e, t) {
|
|
|
4315
4331
|
m.key === "Escape" && _(h).isVisible && (m.preventDefault(), Ie());
|
|
4316
4332
|
}
|
|
4317
4333
|
function Ut(m) {
|
|
4318
|
-
!_(h).isVisible || _(
|
|
4334
|
+
!_(h).isVisible || _(w) || _(f) && !_(f).contains(m.target) && Ie();
|
|
4319
4335
|
}
|
|
4320
4336
|
Bn(() => {
|
|
4321
4337
|
if (!o) return;
|
|
@@ -4327,16 +4343,16 @@ function kl(e, t) {
|
|
|
4327
4343
|
};
|
|
4328
4344
|
}), Bn(() => {
|
|
4329
4345
|
if (!_(u)) return;
|
|
4330
|
-
const m =
|
|
4346
|
+
const m = ba(_(u), (R) => {
|
|
4331
4347
|
O(p, R, !0);
|
|
4332
|
-
}), T =
|
|
4348
|
+
}), T = ya(_(u), (R) => {
|
|
4333
4349
|
O(d, R, !0);
|
|
4334
4350
|
});
|
|
4335
4351
|
return () => {
|
|
4336
4352
|
T(), m();
|
|
4337
4353
|
};
|
|
4338
4354
|
});
|
|
4339
|
-
var
|
|
4355
|
+
var Io = {
|
|
4340
4356
|
get enabled() {
|
|
4341
4357
|
return r();
|
|
4342
4358
|
},
|
|
@@ -4355,51 +4371,51 @@ function kl(e, t) {
|
|
|
4355
4371
|
set ttsService(m = null) {
|
|
4356
4372
|
i(m), or();
|
|
4357
4373
|
}
|
|
4358
|
-
}, $n =
|
|
4374
|
+
}, $n = Al(), On = Rr($n);
|
|
4359
4375
|
ni(On, (m) => O(u, m), () => _(u));
|
|
4360
|
-
var Ln = Pe(On, 2),
|
|
4361
|
-
var T =
|
|
4362
|
-
|
|
4363
|
-
var J =
|
|
4376
|
+
var Ln = Pe(On, 2), Eo = (m) => {
|
|
4377
|
+
var T = kl(), R = Zt(T);
|
|
4378
|
+
ea(R, 17, () => a, Qs, (ae, le) => {
|
|
4379
|
+
var J = bl(), Gt = Zt(J), $r = Zt(Gt, !0);
|
|
4364
4380
|
Kt(Gt), Kt(J), er(() => {
|
|
4365
4381
|
Qn(J, `background-color: ${_(le).hex ?? ""};`), Zn(J, "aria-label", _(le).label), Zn(J, "title", _(le).label), Yn($r, _(le).label);
|
|
4366
4382
|
}), $t("click", J, () => In(_(le).name)), je(ae, J);
|
|
4367
4383
|
});
|
|
4368
4384
|
var F = Pe(R, 2), Fe = Pe(F, 2), kt = (ae) => {
|
|
4369
|
-
var le =
|
|
4370
|
-
er(() => J.disabled = _(g)), $t("click", J,
|
|
4385
|
+
var le = yl(), J = Pe(Rr(le), 2);
|
|
4386
|
+
er(() => J.disabled = _(g)), $t("click", J, Ao), je(ae, le);
|
|
4371
4387
|
};
|
|
4372
4388
|
Lt(Fe, (ae) => {
|
|
4373
4389
|
i() && ae(kt);
|
|
4374
4390
|
});
|
|
4375
|
-
var At = Pe(Fe, 2),
|
|
4376
|
-
var le =
|
|
4377
|
-
var It =
|
|
4378
|
-
$t("click", It,
|
|
4391
|
+
var At = Pe(Fe, 2), Oo = (ae) => {
|
|
4392
|
+
var le = Sl(), J = Pe(Rr(le), 2), Gt = (qe) => {
|
|
4393
|
+
var It = wl();
|
|
4394
|
+
$t("click", It, So), je(qe, It);
|
|
4379
4395
|
};
|
|
4380
4396
|
Lt(J, (qe) => {
|
|
4381
4397
|
_(P) && qe(Gt);
|
|
4382
4398
|
});
|
|
4383
|
-
var $r = Pe(J, 2),
|
|
4384
|
-
var It =
|
|
4385
|
-
$t("click", It,
|
|
4399
|
+
var $r = Pe(J, 2), Lo = (qe) => {
|
|
4400
|
+
var It = Tl();
|
|
4401
|
+
$t("click", It, ko), je(qe, It);
|
|
4386
4402
|
};
|
|
4387
4403
|
Lt($r, (qe) => {
|
|
4388
|
-
_(E) && qe(
|
|
4404
|
+
_(E) && qe(Lo);
|
|
4389
4405
|
}), je(ae, le);
|
|
4390
4406
|
};
|
|
4391
4407
|
Lt(At, (ae) => {
|
|
4392
|
-
(_(P) || _(E)) && ae(
|
|
4408
|
+
(_(P) || _(E)) && ae(Oo);
|
|
4393
4409
|
}), Kt(T), ni(T, (ae) => O(f, ae), () => _(f)), er(() => Qn(T, `left:${_(h).toolbarPosition.x}px; top:${_(h).toolbarPosition.y}px; transform: translate(-50%, -100%);`)), $t("click", F, () => In(We.UNDERLINE)), je(m, T);
|
|
4394
4410
|
};
|
|
4395
4411
|
Lt(Ln, (m) => {
|
|
4396
|
-
_(h).isVisible && m(
|
|
4412
|
+
_(h).isVisible && m(Eo);
|
|
4397
4413
|
});
|
|
4398
|
-
var Rn = Pe(Ln, 2),
|
|
4399
|
-
return Kt(Rn), er(() => Yn(
|
|
4414
|
+
var Rn = Pe(Ln, 2), $o = Zt(Rn, !0);
|
|
4415
|
+
return Kt(Rn), er(() => Yn($o, _(v))), je(e, $n), wi(Io);
|
|
4400
4416
|
}
|
|
4401
|
-
|
|
4402
|
-
customElements.define("pie-tool-annotation-toolbar",
|
|
4417
|
+
Ws(["click"]);
|
|
4418
|
+
customElements.define("pie-tool-annotation-toolbar", pa(El, {
|
|
4403
4419
|
enabled: {
|
|
4404
4420
|
attribute: "enabled",
|
|
4405
4421
|
type: "Boolean"
|
|
@@ -4408,5 +4424,5 @@ customElements.define("pie-tool-annotation-toolbar", da(kl, {
|
|
|
4408
4424
|
ttsService: { type: "Object" }
|
|
4409
4425
|
}, [], [], { mode: "open" }));
|
|
4410
4426
|
export {
|
|
4411
|
-
|
|
4427
|
+
El as default
|
|
4412
4428
|
};
|