@pie-players/pie-tool-annotation-toolbar 0.3.20 → 0.3.21
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.
|
@@ -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 mn, bn;
|
|
4
|
+
((mn = (bn = window).__svelte ?? (bn.__svelte = {})).v ?? (mn.v = /* @__PURE__ */ new Set())).add("5");
|
|
5
5
|
}
|
|
6
|
-
var dt = {}, W = Symbol(),
|
|
7
|
-
var
|
|
6
|
+
var dt = {}, W = Symbol(), nl = Symbol("filename");
|
|
7
|
+
var Qn = Array.isArray, po = Array.prototype.indexOf, ht = Array.prototype.includes, dr = Array.from, ir = Object.keys, or = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, go = Object.getOwnPropertyDescriptors, _o = Object.prototype, mo = Array.prototype, Zn = Object.getPrototypeOf, yn = Object.isExtensible, bo = () => {
|
|
8
8
|
};
|
|
9
|
-
function
|
|
9
|
+
function yo(e) {
|
|
10
10
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ei() {
|
|
13
13
|
var e, t;
|
|
14
14
|
return {
|
|
15
15
|
promise: new Promise((r, n) => {
|
|
@@ -19,51 +19,51 @@ function Zn() {
|
|
|
19
19
|
reject: t
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
var
|
|
22
|
+
var il = 1 << 24, re = 1024, me = 2048, nt = 4096, Hr = 8192, wo = 16384, qr = 32768, wn = 1 << 25, Gr = 65536, ol = 1 << 17, sl = 1 << 18, mt = 1 << 19, To = 1 << 20, Et = 1 << 25, Mt = 65536, Tn = 1 << 21, So = 1 << 22, sr = 1 << 23, Ot = Symbol("$state"), ti = Symbol("legacy props"), ko = Symbol(""), Ao = Symbol("proxy path"), Ae = new class extends Error {
|
|
23
23
|
constructor(...t) {
|
|
24
24
|
super(...t), b(this, "name", "StaleReactionError"), b(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
25
25
|
}
|
|
26
|
-
}(),
|
|
27
|
-
function
|
|
26
|
+
}(), Io = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
27
|
+
function $o() {
|
|
28
28
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Eo(e, t, r) {
|
|
31
31
|
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Oo(e) {
|
|
34
34
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Ro() {
|
|
37
37
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Lo(e) {
|
|
40
40
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Po() {
|
|
43
43
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Co() {
|
|
46
46
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function xo(e) {
|
|
49
49
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Mo() {
|
|
52
52
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function No() {
|
|
55
55
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Do() {
|
|
58
58
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Vo() {
|
|
61
61
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
62
62
|
}
|
|
63
63
|
function hr(e) {
|
|
64
64
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function jo() {
|
|
67
67
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
68
68
|
}
|
|
69
69
|
var P = !1;
|
|
@@ -86,7 +86,7 @@ function Ft(e) {
|
|
|
86
86
|
R = e;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function zo(e = 1) {
|
|
90
90
|
if (P) {
|
|
91
91
|
for (var t = e, r = R; t--; ) r = /* @__PURE__ */ be(r);
|
|
92
92
|
R = r;
|
|
@@ -105,32 +105,32 @@ function ar(e = !0) {
|
|
|
105
105
|
e && r.remove(), r = i;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function ri(e) {
|
|
109
109
|
if (!e || e.nodeType !== 8)
|
|
110
110
|
throw hr(), dt;
|
|
111
111
|
return e.data;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function ni(e) {
|
|
114
114
|
return e === this.v;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Wo(e, t) {
|
|
117
117
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
return !
|
|
119
|
+
function ii(e) {
|
|
120
|
+
return !Wo(e, this.v);
|
|
121
121
|
}
|
|
122
122
|
var je = !1, pr = !1;
|
|
123
|
-
function
|
|
124
|
-
return e.label = t,
|
|
123
|
+
function Sn(e, t) {
|
|
124
|
+
return e.label = t, Bo(e.v, t), e;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
return e?.[
|
|
126
|
+
function Bo(e, t) {
|
|
127
|
+
return e?.[Ao]?.(t), e;
|
|
128
128
|
}
|
|
129
129
|
var z = null;
|
|
130
130
|
function vt(e) {
|
|
131
131
|
z = e;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function oi(e, t = !1, r) {
|
|
134
134
|
z = {
|
|
135
135
|
p: z,
|
|
136
136
|
i: !1,
|
|
@@ -146,11 +146,11 @@ function ii(e, t = !1, r) {
|
|
|
146
146
|
} : null
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function si(e) {
|
|
150
150
|
var t = z, r = t.e;
|
|
151
151
|
if (r !== null) {
|
|
152
152
|
t.e = null;
|
|
153
|
-
for (var n of r)
|
|
153
|
+
for (var n of r) xi(n);
|
|
154
154
|
}
|
|
155
155
|
return e !== void 0 && (t.x = e), t.i = !0, z = t.p, e ?? {};
|
|
156
156
|
}
|
|
@@ -158,23 +158,23 @@ function Nt() {
|
|
|
158
158
|
return !pr || z !== null && z.l === null;
|
|
159
159
|
}
|
|
160
160
|
var Ge = [];
|
|
161
|
-
function
|
|
161
|
+
function ai() {
|
|
162
162
|
var e = Ge;
|
|
163
|
-
Ge = [],
|
|
163
|
+
Ge = [], yo(e);
|
|
164
164
|
}
|
|
165
165
|
function et(e) {
|
|
166
166
|
if (Ge.length === 0 && !Rt) {
|
|
167
167
|
var t = Ge;
|
|
168
168
|
queueMicrotask(() => {
|
|
169
|
-
t === Ge &&
|
|
169
|
+
t === Ge && ai();
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
172
|
Ge.push(e);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
for (; Ge.length > 0; )
|
|
174
|
+
function Fo() {
|
|
175
|
+
for (; Ge.length > 0; ) ai();
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function li(e) {
|
|
178
178
|
var t = A;
|
|
179
179
|
if (t === null)
|
|
180
180
|
return I.f |= sr, e;
|
|
@@ -197,23 +197,23 @@ function Ne(e, t) {
|
|
|
197
197
|
}
|
|
198
198
|
throw e;
|
|
199
199
|
}
|
|
200
|
-
var
|
|
200
|
+
var Ho = ~(me | nt | re);
|
|
201
201
|
function N(e, t) {
|
|
202
|
-
e.f = e.f &
|
|
202
|
+
e.f = e.f & Ho | t;
|
|
203
203
|
}
|
|
204
204
|
function Ur(e) {
|
|
205
205
|
e.f & 512 || e.deps === null ? N(e, re) : N(e, nt);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function ci(e) {
|
|
208
208
|
if (e !== null)
|
|
209
209
|
for (const t of e)
|
|
210
|
-
!(t.f & 2) || !(t.f & 65536) || (t.f ^= Mt,
|
|
210
|
+
!(t.f & 2) || !(t.f & 65536) || (t.f ^= Mt, ci(t.deps));
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e),
|
|
212
|
+
function ui(e, t, r) {
|
|
213
|
+
e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e), ci(e.deps), N(e, re);
|
|
214
214
|
}
|
|
215
|
-
var
|
|
216
|
-
function
|
|
215
|
+
var qo = !1, Ht = !1;
|
|
216
|
+
function Go(e) {
|
|
217
217
|
var t = Ht;
|
|
218
218
|
try {
|
|
219
219
|
return Ht = !1, [e(), Ht];
|
|
@@ -221,14 +221,14 @@ function qo(e) {
|
|
|
221
221
|
Ht = t;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function fi(e, t) {
|
|
225
225
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
226
226
|
}
|
|
227
227
|
function Kr(e, t) {
|
|
228
|
-
|
|
228
|
+
fi(e, t), t.add(e);
|
|
229
229
|
}
|
|
230
230
|
function k(e, t, r) {
|
|
231
|
-
|
|
231
|
+
fi(e, t), t.set(e, r);
|
|
232
232
|
}
|
|
233
233
|
function x(e, t, r) {
|
|
234
234
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
|
|
@@ -240,10 +240,10 @@ function c(e, t) {
|
|
|
240
240
|
function T(e, t, r) {
|
|
241
241
|
return e.set(x(e, t), r), r;
|
|
242
242
|
}
|
|
243
|
-
var
|
|
244
|
-
var
|
|
243
|
+
var di, $e = /* @__PURE__ */ new Set(), L = null, kn = null, K = null, xr = null, Rt = !1, Tr = !1, pt = null, lr = null, hi = 0;
|
|
244
|
+
var Uo = 1, cr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakSet(), it = class vi {
|
|
245
245
|
constructor() {
|
|
246
|
-
Kr(this, pe), b(this, "id",
|
|
246
|
+
Kr(this, pe), b(this, "id", Uo++), b(this, "current", /* @__PURE__ */ new Map()), b(this, "previous", /* @__PURE__ */ new Map()), k(this, cr, /* @__PURE__ */ new Set()), k(this, qt, /* @__PURE__ */ new Set()), k(this, at, 0), k(this, lt, 0), k(this, Qt, null), k(this, le, []), k(this, Pt, /* @__PURE__ */ new Set()), k(this, Xe, /* @__PURE__ */ new Set()), k(this, qe, /* @__PURE__ */ new Map()), b(this, "is_fork", !1), k(this, Gt, !1);
|
|
247
247
|
}
|
|
248
248
|
skip_effect(t) {
|
|
249
249
|
c(qe, this).has(t) || c(qe, this).set(t, {
|
|
@@ -273,9 +273,9 @@ var Go = 1, cr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap
|
|
|
273
273
|
flush() {
|
|
274
274
|
var t = null;
|
|
275
275
|
try {
|
|
276
|
-
Tr = !0, L = this, x(pe, this,
|
|
276
|
+
Tr = !0, L = this, x(pe, this, pi).call(this);
|
|
277
277
|
} finally {
|
|
278
|
-
|
|
278
|
+
hi = 0, xr = null, pt = null, lr = null, Tr = !1, L = null, K = null, Ve.clear();
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
discard() {
|
|
@@ -302,11 +302,11 @@ var Go = 1, cr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap
|
|
|
302
302
|
c(qt, this).add(t);
|
|
303
303
|
}
|
|
304
304
|
settled() {
|
|
305
|
-
return (c(Qt, this) ?? T(Qt, this,
|
|
305
|
+
return (c(Qt, this) ?? T(Qt, this, ei())).promise;
|
|
306
306
|
}
|
|
307
307
|
static ensure() {
|
|
308
308
|
if (L === null) {
|
|
309
|
-
const t = L = new
|
|
309
|
+
const t = L = new vi();
|
|
310
310
|
Tr || ($e.add(L), Rt || et(() => {
|
|
311
311
|
L === t && t.flush();
|
|
312
312
|
}));
|
|
@@ -331,7 +331,7 @@ var Go = 1, cr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap
|
|
|
331
331
|
for (var r = t; r.parent !== null; ) {
|
|
332
332
|
r = r.parent;
|
|
333
333
|
var n = r.f;
|
|
334
|
-
if (pt !== null && r === A && (je || (I === null || !(I.f & 2)) && !
|
|
334
|
+
if (pt !== null && r === A && (je || (I === null || !(I.f & 2)) && !qo))
|
|
335
335
|
return;
|
|
336
336
|
if (n & 96) {
|
|
337
337
|
if (!(n & 1024)) return;
|
|
@@ -341,12 +341,12 @@ var Go = 1, cr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap
|
|
|
341
341
|
c(le, this).push(r);
|
|
342
342
|
}
|
|
343
343
|
};
|
|
344
|
-
|
|
345
|
-
function
|
|
344
|
+
di = it;
|
|
345
|
+
function An() {
|
|
346
346
|
return this.is_fork || c(lt, this) > 0;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
if (
|
|
348
|
+
function pi() {
|
|
349
|
+
if (hi++ > 1e3 && ($e.delete(this), Yo()), !x(pe, this, An).call(this)) {
|
|
350
350
|
for (const s of c(Pt, this))
|
|
351
351
|
c(Xe, this).delete(s), N(s, me), this.schedule(s);
|
|
352
352
|
for (const s of c(Xe, this))
|
|
@@ -356,30 +356,30 @@ function vi() {
|
|
|
356
356
|
T(le, this, []), this.apply();
|
|
357
357
|
var t = pt = [], r = [], n = lr = [];
|
|
358
358
|
for (const s of e) try {
|
|
359
|
-
x(pe, this,
|
|
359
|
+
x(pe, this, gi).call(this, s, t, r);
|
|
360
360
|
} catch (a) {
|
|
361
|
-
throw
|
|
361
|
+
throw yi(s), a;
|
|
362
362
|
}
|
|
363
363
|
if (L = null, n.length > 0) {
|
|
364
|
-
var i =
|
|
364
|
+
var i = di.ensure();
|
|
365
365
|
for (const s of n) i.schedule(s);
|
|
366
366
|
}
|
|
367
|
-
if (pt = null, lr = null, x(pe, this,
|
|
368
|
-
x(pe, this,
|
|
369
|
-
for (const [s, a] of c(qe, this))
|
|
367
|
+
if (pt = null, lr = null, x(pe, this, An).call(this)) {
|
|
368
|
+
x(pe, this, In).call(this, r), x(pe, this, In).call(this, t);
|
|
369
|
+
for (const [s, a] of c(qe, this)) bi(s, a);
|
|
370
370
|
} else {
|
|
371
371
|
c(at, this) === 0 && $e.delete(this), c(Pt, this).clear(), c(Xe, this).clear();
|
|
372
372
|
for (const s of c(cr, this)) s(this);
|
|
373
|
-
c(cr, this).clear(),
|
|
373
|
+
c(cr, this).clear(), kn = this, $n(r), $n(t), kn = null, c(Qt, this)?.resolve();
|
|
374
374
|
}
|
|
375
375
|
var o = L;
|
|
376
376
|
if (c(le, this).length > 0) {
|
|
377
377
|
const s = o ?? (o = this);
|
|
378
378
|
c(le, s).push(...c(le, this).filter((a) => !c(le, s).includes(a)));
|
|
379
379
|
}
|
|
380
|
-
o !== null && ($e.add(o), x(pe, o,
|
|
380
|
+
o !== null && ($e.add(o), x(pe, o, pi).call(o)), $e.has(this) || x(pe, this, Ko).call(this);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function gi(e, t, r) {
|
|
383
383
|
e.f ^= re;
|
|
384
384
|
for (var n = e.first; n !== null; ) {
|
|
385
385
|
var i = n.f, o = (i & 96) !== 0;
|
|
@@ -401,10 +401,10 @@ function pi(e, t, r) {
|
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
function
|
|
405
|
-
for (var t = 0; t < e.length; t += 1)
|
|
404
|
+
function In(e) {
|
|
405
|
+
for (var t = 0; t < e.length; t += 1) ui(e[t], c(Pt, this), c(Xe, this));
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function Ko() {
|
|
408
408
|
for (const a of $e) {
|
|
409
409
|
var e = a.id < this.id, t = [];
|
|
410
410
|
for (const [l, u] of this.current) {
|
|
@@ -418,10 +418,10 @@ function Uo() {
|
|
|
418
418
|
else if (t.length > 0) {
|
|
419
419
|
a.activate();
|
|
420
420
|
var n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map();
|
|
421
|
-
for (var o of t)
|
|
421
|
+
for (var o of t) _i(o, r, n, i);
|
|
422
422
|
if (c(le, a).length > 0) {
|
|
423
423
|
a.apply();
|
|
424
|
-
for (var s of c(le, a)) x(pe, a,
|
|
424
|
+
for (var s of c(le, a)) x(pe, a, gi).call(a, s, [], []);
|
|
425
425
|
T(le, a, []);
|
|
426
426
|
}
|
|
427
427
|
a.deactivate();
|
|
@@ -434,32 +434,32 @@ function Zt(e) {
|
|
|
434
434
|
try {
|
|
435
435
|
var r;
|
|
436
436
|
for (e && (L !== null && !L.is_fork && L.flush(), r = e()); ; ) {
|
|
437
|
-
if (
|
|
437
|
+
if (Fo(), L === null) return r;
|
|
438
438
|
L.flush();
|
|
439
439
|
}
|
|
440
440
|
} finally {
|
|
441
441
|
Rt = t;
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function Yo() {
|
|
445
445
|
if (0) {
|
|
446
446
|
var e;
|
|
447
447
|
for (const r of L.current.keys()) for (const [n, i] of r.updated ?? [])
|
|
448
448
|
var t;
|
|
449
449
|
}
|
|
450
450
|
try {
|
|
451
|
-
|
|
451
|
+
Po();
|
|
452
452
|
} catch (r) {
|
|
453
453
|
Ne(r, xr);
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
456
|
var ge = null;
|
|
457
|
-
function
|
|
457
|
+
function $n(e) {
|
|
458
458
|
var t = e.length;
|
|
459
459
|
if (t !== 0) {
|
|
460
460
|
for (var r = 0; r < t; ) {
|
|
461
461
|
var n = e[r++];
|
|
462
|
-
if (!(n.f & 24576) && Dt(n) && (ge = /* @__PURE__ */ new Set(), _t(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null &&
|
|
462
|
+
if (!(n.f & 24576) && Dt(n) && (ge = /* @__PURE__ */ new Set(), _t(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Di(n), ge?.size > 0)) {
|
|
463
463
|
Ve.clear();
|
|
464
464
|
for (const i of ge) {
|
|
465
465
|
if (i.f & 24576) continue;
|
|
@@ -478,19 +478,19 @@ function In(e) {
|
|
|
478
478
|
ge = null;
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function _i(e, t, r, n) {
|
|
482
482
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
483
483
|
for (const i of e.reactions) {
|
|
484
484
|
const o = i.f;
|
|
485
|
-
o & 2 ?
|
|
485
|
+
o & 2 ? _i(i, t, r, n) : o & 4194320 && !(o & 2048) && mi(i, t, n) && (N(i, me), Yr(i));
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function mi(e, t, r) {
|
|
489
489
|
const n = r.get(e);
|
|
490
490
|
if (n !== void 0) return n;
|
|
491
491
|
if (e.deps !== null) for (const i of e.deps) {
|
|
492
492
|
if (ht.call(t, i)) return !0;
|
|
493
|
-
if (i.f & 2 &&
|
|
493
|
+
if (i.f & 2 && mi(i, t, r))
|
|
494
494
|
return r.set(i, !0), !0;
|
|
495
495
|
}
|
|
496
496
|
return r.set(e, !1), !1;
|
|
@@ -498,19 +498,19 @@ function _i(e, t, r) {
|
|
|
498
498
|
function Yr(e) {
|
|
499
499
|
L.schedule(e);
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function bi(e, t) {
|
|
502
502
|
if (!(e.f & 32 && e.f & 1024)) {
|
|
503
503
|
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), N(e, re);
|
|
504
504
|
for (var r = e.first; r !== null; )
|
|
505
|
-
|
|
505
|
+
bi(r, t), r = r.next;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function yi(e) {
|
|
509
509
|
N(e, re);
|
|
510
510
|
for (var t = e.first; t !== null; )
|
|
511
|
-
|
|
511
|
+
yi(t), t = t.next;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Xo(e) {
|
|
514
514
|
let t = 0, r = tt(0), n;
|
|
515
515
|
return () => {
|
|
516
516
|
tn() && (_(r), rn(() => (t === 0 && (n = ln(() => e(() => Lt(r)))), t += 1, () => {
|
|
@@ -520,13 +520,13 @@ function Yo(e) {
|
|
|
520
520
|
})));
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
|
-
var
|
|
524
|
-
function
|
|
525
|
-
new
|
|
523
|
+
var Jo = Gr | mt;
|
|
524
|
+
function Qo(e, t, r, n) {
|
|
525
|
+
new Zo(e, t, r, n);
|
|
526
526
|
}
|
|
527
|
-
var ce = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(), Mr = /* @__PURE__ */ new WeakMap(), Nr = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap(),
|
|
527
|
+
var ce = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(), Mr = /* @__PURE__ */ new WeakMap(), Nr = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap(), En = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakSet(), Zo = class {
|
|
528
528
|
constructor(e, t, r, n) {
|
|
529
|
-
Kr(this, G), b(this, "parent", void 0), b(this, "is_pending", !1), b(this, "transform_error", void 0), k(this, ce, void 0), k(this, Sr, P ? R : null), k(this, Me, void 0), k(this, Ct, void 0), k(this, Z, void 0), k(this, De, null), k(this, ue, null), k(this, ke, null), k(this, Je, null), k(this, ct, 0), k(this, Qe, 0), k(this, Ut, !1), k(this, Mr, /* @__PURE__ */ new Set()), k(this, Nr, /* @__PURE__ */ new Set()), k(this, Fe, null), k(this,
|
|
529
|
+
Kr(this, G), b(this, "parent", void 0), b(this, "is_pending", !1), b(this, "transform_error", void 0), k(this, ce, void 0), k(this, Sr, P ? R : null), k(this, Me, void 0), k(this, Ct, void 0), k(this, Z, void 0), k(this, De, null), k(this, ue, null), k(this, ke, null), k(this, Je, null), k(this, ct, 0), k(this, Qe, 0), k(this, Ut, !1), k(this, Mr, /* @__PURE__ */ new Set()), k(this, Nr, /* @__PURE__ */ new Set()), k(this, Fe, null), k(this, En, Xo(() => (T(Fe, this, tt(c(ct, this))), () => {
|
|
530
530
|
T(Fe, this, null);
|
|
531
531
|
}))), T(ce, this, e), T(Me, this, t), T(Ct, this, (i) => {
|
|
532
532
|
var o = A;
|
|
@@ -538,13 +538,13 @@ var ce = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Me =
|
|
|
538
538
|
const o = i.data === "[!";
|
|
539
539
|
if (i.data.startsWith("[?")) {
|
|
540
540
|
const s = JSON.parse(i.data.slice(2));
|
|
541
|
-
x(G, this,
|
|
542
|
-
} else o ? x(G, this,
|
|
543
|
-
} else x(G, this,
|
|
544
|
-
},
|
|
541
|
+
x(G, this, ts).call(this, s);
|
|
542
|
+
} else o ? x(G, this, rs).call(this) : x(G, this, es).call(this);
|
|
543
|
+
} else x(G, this, On).call(this);
|
|
544
|
+
}, Jo)), P && T(ce, this, R);
|
|
545
545
|
}
|
|
546
546
|
defer_effect(e) {
|
|
547
|
-
|
|
547
|
+
ui(e, c(Mr, this), c(Nr, this));
|
|
548
548
|
}
|
|
549
549
|
is_rendered() {
|
|
550
550
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -553,28 +553,28 @@ var ce = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Me =
|
|
|
553
553
|
return !!c(Me, this).pending;
|
|
554
554
|
}
|
|
555
555
|
update_pending_count(e, t) {
|
|
556
|
-
x(G, this,
|
|
556
|
+
x(G, this, wi).call(this, e, t), T(ct, this, c(ct, this) + e), !(!c(Fe, this) || c(Ut, this)) && (T(Ut, this, !0), et(() => {
|
|
557
557
|
T(Ut, this, !1), c(Fe, this) && gt(c(Fe, this), c(ct, this));
|
|
558
558
|
}));
|
|
559
559
|
}
|
|
560
560
|
get_effect_pending() {
|
|
561
|
-
return c(
|
|
561
|
+
return c(En, this).call(this), _(c(Fe, this));
|
|
562
562
|
}
|
|
563
563
|
error(e) {
|
|
564
564
|
var t = c(Me, this).onerror;
|
|
565
565
|
let r = c(Me, this).failed;
|
|
566
566
|
if (!t && !r) throw e;
|
|
567
|
-
c(De, this) && (H(c(De, this)), T(De, this, null)), c(ue, this) && (H(c(ue, this)), T(ue, this, null)), c(ke, this) && (H(c(ke, this)), T(ke, this, null)), P && (Y(c(Sr, this)),
|
|
567
|
+
c(De, this) && (H(c(De, this)), T(De, this, null)), c(ue, this) && (H(c(ue, this)), T(ue, this, null)), c(ke, this) && (H(c(ke, this)), T(ke, this, null)), P && (Y(c(Sr, this)), zo(), Y(ar()));
|
|
568
568
|
var n = !1, i = !1;
|
|
569
569
|
const o = () => {
|
|
570
570
|
if (n) {
|
|
571
|
-
|
|
571
|
+
jo();
|
|
572
572
|
return;
|
|
573
573
|
}
|
|
574
|
-
n = !0, i &&
|
|
574
|
+
n = !0, i && Vo(), c(ke, this) !== null && ot(c(ke, this), () => {
|
|
575
575
|
T(ke, this, null);
|
|
576
576
|
}), x(G, this, Dr).call(this, () => {
|
|
577
|
-
x(G, this,
|
|
577
|
+
x(G, this, On).call(this);
|
|
578
578
|
});
|
|
579
579
|
}, s = (a) => {
|
|
580
580
|
try {
|
|
@@ -605,21 +605,21 @@ var ce = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Me =
|
|
|
605
605
|
});
|
|
606
606
|
}
|
|
607
607
|
};
|
|
608
|
-
function
|
|
608
|
+
function es() {
|
|
609
609
|
try {
|
|
610
610
|
T(De, this, ne(() => c(Ct, this).call(this, c(ce, this))));
|
|
611
611
|
} catch (e) {
|
|
612
612
|
this.error(e);
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function ts(e) {
|
|
616
616
|
const t = c(Me, this).failed;
|
|
617
617
|
t && T(ke, this, ne(() => {
|
|
618
618
|
t(c(ce, this), () => e, () => () => {
|
|
619
619
|
});
|
|
620
620
|
}));
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function rs() {
|
|
623
623
|
const e = c(Me, this).pending;
|
|
624
624
|
e && (this.is_pending = !0, T(ue, this, ne(() => e(c(ce, this)))), et(() => {
|
|
625
625
|
var t = T(Je, this, document.createDocumentFragment()), r = de();
|
|
@@ -628,7 +628,7 @@ function ts() {
|
|
|
628
628
|
}), x(G, this, Xr).call(this, L));
|
|
629
629
|
}));
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function On() {
|
|
632
632
|
try {
|
|
633
633
|
if (this.is_pending = this.has_pending_snippet(), T(Qe, this, 0), T(ct, this, 0), T(De, this, ne(() => {
|
|
634
634
|
c(Ct, this).call(this, c(ce, this));
|
|
@@ -651,16 +651,16 @@ function Dr(e) {
|
|
|
651
651
|
try {
|
|
652
652
|
return it.ensure(), e();
|
|
653
653
|
} catch (i) {
|
|
654
|
-
return
|
|
654
|
+
return li(i), null;
|
|
655
655
|
} finally {
|
|
656
656
|
_e(t), ie(r), vt(n);
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function wi(e, t) {
|
|
660
660
|
if (!this.has_pending_snippet()) {
|
|
661
661
|
if (this.parent) {
|
|
662
662
|
var r;
|
|
663
|
-
x(G, r = this.parent,
|
|
663
|
+
x(G, r = this.parent, wi).call(r, e, t);
|
|
664
664
|
}
|
|
665
665
|
return;
|
|
666
666
|
}
|
|
@@ -668,14 +668,14 @@ function yi(e, t) {
|
|
|
668
668
|
T(ue, this, null);
|
|
669
669
|
}), c(Je, this) && (c(ce, this).before(c(Je, this)), T(Je, this, null)));
|
|
670
670
|
}
|
|
671
|
-
function
|
|
671
|
+
function ns(e, t, r, n) {
|
|
672
672
|
const i = Nt() ? gr : Jr;
|
|
673
673
|
var o = e.filter((f) => !f.settled);
|
|
674
674
|
if (r.length === 0 && o.length === 0) {
|
|
675
675
|
n(t.map(i));
|
|
676
676
|
return;
|
|
677
677
|
}
|
|
678
|
-
var s = A, a =
|
|
678
|
+
var s = A, a = is(), l = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((f) => f.promise)) : null;
|
|
679
679
|
function u(f) {
|
|
680
680
|
a();
|
|
681
681
|
try {
|
|
@@ -689,15 +689,15 @@ function rs(e, t, r, n) {
|
|
|
689
689
|
l.then(() => u(t.map(i)));
|
|
690
690
|
return;
|
|
691
691
|
}
|
|
692
|
-
var p =
|
|
692
|
+
var p = Ti();
|
|
693
693
|
function v() {
|
|
694
|
-
Promise.all(r.map((f) => /* @__PURE__ */
|
|
694
|
+
Promise.all(r.map((f) => /* @__PURE__ */ os(f))).then((f) => u([...t.map(i), ...f])).catch((f) => Ne(f, s)).finally(() => p());
|
|
695
695
|
}
|
|
696
696
|
l ? l.then(() => {
|
|
697
697
|
a(), v(), ur();
|
|
698
698
|
}) : v();
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function is() {
|
|
701
701
|
var e = A, t = I, r = z, n = L;
|
|
702
702
|
if (0) var i;
|
|
703
703
|
return function(s = !0) {
|
|
@@ -707,7 +707,7 @@ function ns() {
|
|
|
707
707
|
function ur(e = !0) {
|
|
708
708
|
_e(null), ie(null), vt(null), e && L?.deactivate();
|
|
709
709
|
}
|
|
710
|
-
function
|
|
710
|
+
function Ti() {
|
|
711
711
|
var e = A.b, t = L, r = e.is_rendered();
|
|
712
712
|
return e.update_pending_count(1, t), t.increment(r), (n = !1) => {
|
|
713
713
|
e.update_pending_count(-1, t), t.decrement(r, n);
|
|
@@ -720,7 +720,7 @@ function gr(e) {
|
|
|
720
720
|
ctx: z,
|
|
721
721
|
deps: null,
|
|
722
722
|
effects: null,
|
|
723
|
-
equals:
|
|
723
|
+
equals: ni,
|
|
724
724
|
f: t,
|
|
725
725
|
fn: e,
|
|
726
726
|
reactions: null,
|
|
@@ -732,12 +732,12 @@ function gr(e) {
|
|
|
732
732
|
};
|
|
733
733
|
}
|
|
734
734
|
// @__NO_SIDE_EFFECTS__
|
|
735
|
-
function
|
|
735
|
+
function os(e, t, r) {
|
|
736
736
|
let n = A;
|
|
737
|
-
n === null &&
|
|
737
|
+
n === null && $o();
|
|
738
738
|
var i = void 0, o = tt(W), s = !I, a = /* @__PURE__ */ new Map();
|
|
739
|
-
return
|
|
740
|
-
var l = A, u =
|
|
739
|
+
return ms(() => {
|
|
740
|
+
var l = A, u = ei();
|
|
741
741
|
i = u.promise;
|
|
742
742
|
try {
|
|
743
743
|
Promise.resolve(e()).then(u.resolve, u.reject).finally(ur);
|
|
@@ -746,7 +746,7 @@ function is(e, t, r) {
|
|
|
746
746
|
}
|
|
747
747
|
var p = L;
|
|
748
748
|
if (s) {
|
|
749
|
-
if (l.f & 32768) var v =
|
|
749
|
+
if (l.f & 32768) var v = Ti();
|
|
750
750
|
if (n.b.is_rendered())
|
|
751
751
|
a.get(p)?.reject(Ae), a.delete(p);
|
|
752
752
|
else {
|
|
@@ -770,7 +770,7 @@ function is(e, t, r) {
|
|
|
770
770
|
}
|
|
771
771
|
};
|
|
772
772
|
u.promise.then(f, (d) => f(null, d || "unknown"));
|
|
773
|
-
}),
|
|
773
|
+
}), ps(() => {
|
|
774
774
|
for (const l of a.values()) l.reject(Ae);
|
|
775
775
|
}), new Promise((l) => {
|
|
776
776
|
function u(p) {
|
|
@@ -785,21 +785,21 @@ function is(e, t, r) {
|
|
|
785
785
|
// @__NO_SIDE_EFFECTS__
|
|
786
786
|
function kr(e) {
|
|
787
787
|
const t = /* @__PURE__ */ gr(e);
|
|
788
|
-
return je ||
|
|
788
|
+
return je || zi(t), t;
|
|
789
789
|
}
|
|
790
790
|
// @__NO_SIDE_EFFECTS__
|
|
791
791
|
function Jr(e) {
|
|
792
792
|
const t = /* @__PURE__ */ gr(e);
|
|
793
|
-
return t.equals =
|
|
793
|
+
return t.equals = ii, t;
|
|
794
794
|
}
|
|
795
|
-
function
|
|
795
|
+
function ss(e) {
|
|
796
796
|
var t = e.effects;
|
|
797
797
|
if (t !== null) {
|
|
798
798
|
e.effects = null;
|
|
799
799
|
for (var r = 0; r < t.length; r += 1) H(t[r]);
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function as(e) {
|
|
803
803
|
for (var t = e.parent; t !== null; ) {
|
|
804
804
|
if (!(t.f & 2)) return t.f & 16384 ? null : t;
|
|
805
805
|
t = t.parent;
|
|
@@ -808,41 +808,41 @@ function ss(e) {
|
|
|
808
808
|
}
|
|
809
809
|
function Qr(e) {
|
|
810
810
|
var t, r = A;
|
|
811
|
-
if (_e(
|
|
811
|
+
if (_e(as(e)), 0)
|
|
812
812
|
try {
|
|
813
813
|
} finally {
|
|
814
814
|
}
|
|
815
815
|
else try {
|
|
816
|
-
e.f &= ~Mt,
|
|
816
|
+
e.f &= ~Mt, ss(e), t = Hi(e);
|
|
817
817
|
} finally {
|
|
818
818
|
_e(r);
|
|
819
819
|
}
|
|
820
820
|
return t;
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function Si(e) {
|
|
823
823
|
var t = e.v, r = Qr(e);
|
|
824
|
-
if (!e.equals(r) && (e.wv =
|
|
824
|
+
if (!e.equals(r) && (e.wv = Bi(), (!L?.is_fork || e.deps === null) && (e.v = r, L?.capture(e, t), e.deps === null))) {
|
|
825
825
|
N(e, re);
|
|
826
826
|
return;
|
|
827
827
|
}
|
|
828
828
|
ze || (K !== null ? (tn() || L?.is_fork) && K.set(e, r) : Ur(e));
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function ls(e) {
|
|
831
831
|
if (e.effects !== null)
|
|
832
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(Ae), t.teardown =
|
|
832
|
+
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(Ae), t.teardown = bo, t.ac = null, xt(t, 0), on(t));
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function ki(e) {
|
|
835
835
|
if (e.effects !== null)
|
|
836
836
|
for (const t of e.effects) t.teardown && _t(t);
|
|
837
837
|
}
|
|
838
838
|
var Vr = /* @__PURE__ */ new Set(), Ve = /* @__PURE__ */ new Map();
|
|
839
|
-
var
|
|
839
|
+
var Ai = !1;
|
|
840
840
|
function tt(e, t) {
|
|
841
841
|
var r = {
|
|
842
842
|
f: 0,
|
|
843
843
|
v: e,
|
|
844
844
|
reactions: null,
|
|
845
|
-
equals:
|
|
845
|
+
equals: ni,
|
|
846
846
|
rv: 0,
|
|
847
847
|
wv: 0
|
|
848
848
|
};
|
|
@@ -851,19 +851,19 @@ function tt(e, t) {
|
|
|
851
851
|
// @__NO_SIDE_EFFECTS__
|
|
852
852
|
function j(e, t) {
|
|
853
853
|
const r = tt(e, t);
|
|
854
|
-
return
|
|
854
|
+
return zi(r), r;
|
|
855
855
|
}
|
|
856
856
|
// @__NO_SIDE_EFFECTS__
|
|
857
|
-
function
|
|
857
|
+
function Ii(e, t = !1, r = !0) {
|
|
858
858
|
const n = tt(e);
|
|
859
|
-
if (t || (n.equals =
|
|
859
|
+
if (t || (n.equals = ii), pr && r && z !== null && z.l !== null) {
|
|
860
860
|
var i;
|
|
861
861
|
((i = z.l).s ?? (i.s = [])).push(n);
|
|
862
862
|
}
|
|
863
863
|
return n;
|
|
864
864
|
}
|
|
865
865
|
function E(e, t, r = !1) {
|
|
866
|
-
I !== null && (!fe || I.f & 131072) && Nt() && I.f & 4325394 && (te === null || !ht.call(te, e)) &&
|
|
866
|
+
I !== null && (!fe || I.f & 131072) && Nt() && I.f & 4325394 && (te === null || !ht.call(te, e)) && Do();
|
|
867
867
|
let n = r ? Ue(t) : t;
|
|
868
868
|
return gt(e, n, lr);
|
|
869
869
|
}
|
|
@@ -876,12 +876,12 @@ function gt(e, t, r = null) {
|
|
|
876
876
|
const o = e;
|
|
877
877
|
e.f & 2048 && Qr(o), K === null && Ur(o);
|
|
878
878
|
}
|
|
879
|
-
e.wv =
|
|
879
|
+
e.wv = Bi(), $i(e, me, r), Nt() && A !== null && A.f & 1024 && !(A.f & 96) && (ee === null ? Ts([e]) : ee.push(e)), !i.is_fork && Vr.size > 0 && !Ai && cs();
|
|
880
880
|
}
|
|
881
881
|
return t;
|
|
882
882
|
}
|
|
883
|
-
function
|
|
884
|
-
|
|
883
|
+
function cs() {
|
|
884
|
+
Ai = !1;
|
|
885
885
|
for (const e of Vr)
|
|
886
886
|
e.f & 1024 && N(e, nt), Dt(e) && _t(e);
|
|
887
887
|
Vr.clear();
|
|
@@ -889,7 +889,7 @@ function ls() {
|
|
|
889
889
|
function Lt(e) {
|
|
890
890
|
E(e, e.v + 1);
|
|
891
891
|
}
|
|
892
|
-
function
|
|
892
|
+
function $i(e, t, r) {
|
|
893
893
|
var n = e.reactions;
|
|
894
894
|
if (n !== null)
|
|
895
895
|
for (var i = Nt(), o = n.length, s = 0; s < o; s++) {
|
|
@@ -898,7 +898,7 @@ function Ii(e, t, r) {
|
|
|
898
898
|
var u = (l & me) === 0;
|
|
899
899
|
if (u && N(a, t), l & 2) {
|
|
900
900
|
var p = a;
|
|
901
|
-
K?.delete(p), l & 65536 || (l & 512 && (a.f |= Mt),
|
|
901
|
+
K?.delete(p), l & 65536 || (l & 512 && (a.f |= Mt), $i(p, nt, r));
|
|
902
902
|
} else if (u) {
|
|
903
903
|
var v = a;
|
|
904
904
|
l & 16 && ge !== null && ge.add(v), r !== null ? r.push(v) : Yr(v);
|
|
@@ -906,31 +906,31 @@ function Ii(e, t, r) {
|
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
908
|
}
|
|
909
|
-
var
|
|
909
|
+
var us = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
910
910
|
function Ue(e) {
|
|
911
911
|
if (typeof e != "object" || e === null || Ot in e) return e;
|
|
912
|
-
const t =
|
|
913
|
-
if (t !==
|
|
914
|
-
var r = /* @__PURE__ */ new Map(), n =
|
|
912
|
+
const t = Zn(e);
|
|
913
|
+
if (t !== _o && t !== mo) return e;
|
|
914
|
+
var r = /* @__PURE__ */ new Map(), n = Qn(e), i = /* @__PURE__ */ j(0), o = null, s = Ze, a = (v) => {
|
|
915
915
|
if (Ze === s) return v();
|
|
916
916
|
var f = I, d = Ze;
|
|
917
|
-
ie(null),
|
|
917
|
+
ie(null), Cn(s);
|
|
918
918
|
var g = v();
|
|
919
|
-
return ie(f),
|
|
919
|
+
return ie(f), Cn(d), g;
|
|
920
920
|
};
|
|
921
921
|
n && r.set("length", /* @__PURE__ */ j(e.length, o));
|
|
922
922
|
var l = "";
|
|
923
923
|
let u = !1;
|
|
924
924
|
function p(v) {
|
|
925
925
|
if (!u) {
|
|
926
|
-
u = !0, l = v,
|
|
927
|
-
for (const [f, d] of r)
|
|
926
|
+
u = !0, l = v, Sn(i, `${l} version`);
|
|
927
|
+
for (const [f, d] of r) Sn(d, fs(l, f));
|
|
928
928
|
u = !1;
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
931
|
return new Proxy(e, {
|
|
932
932
|
defineProperty(v, f, d) {
|
|
933
|
-
(!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) &&
|
|
933
|
+
(!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) && Mo();
|
|
934
934
|
var g = r.get(f);
|
|
935
935
|
return g === void 0 ? a(() => {
|
|
936
936
|
var w = /* @__PURE__ */ j(d.value, o);
|
|
@@ -1017,19 +1017,19 @@ function Ue(e) {
|
|
|
1017
1017
|
return f;
|
|
1018
1018
|
},
|
|
1019
1019
|
setPrototypeOf() {
|
|
1020
|
-
|
|
1020
|
+
No();
|
|
1021
1021
|
}
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1025
|
-
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` :
|
|
1024
|
+
function fs(e, t) {
|
|
1025
|
+
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : us.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
1026
1026
|
}
|
|
1027
|
-
var
|
|
1027
|
+
var Rn, ds, Ei, Oi, Ri;
|
|
1028
1028
|
function jr() {
|
|
1029
|
-
if (
|
|
1030
|
-
|
|
1029
|
+
if (Rn === void 0) {
|
|
1030
|
+
Rn = window, ds = document, Ei = /Firefox/.test(navigator.userAgent);
|
|
1031
1031
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1032
|
-
|
|
1032
|
+
Oi = Ye(t, "firstChild").get, Ri = Ye(t, "nextSibling").get, yn(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), yn(r) && (r.__t = void 0);
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
1035
|
function de(e = "") {
|
|
@@ -1037,11 +1037,11 @@ function de(e = "") {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
// @__NO_SIDE_EFFECTS__
|
|
1039
1039
|
function rt(e) {
|
|
1040
|
-
return
|
|
1040
|
+
return Oi.call(e);
|
|
1041
1041
|
}
|
|
1042
1042
|
// @__NO_SIDE_EFFECTS__
|
|
1043
1043
|
function be(e) {
|
|
1044
|
-
return
|
|
1044
|
+
return Ri.call(e);
|
|
1045
1045
|
}
|
|
1046
1046
|
function Kt(e, t) {
|
|
1047
1047
|
if (!P) return /* @__PURE__ */ rt(e);
|
|
@@ -1081,10 +1081,10 @@ function Re(e, t = 1, r = !1) {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
return Y(n), n;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function Li(e) {
|
|
1085
1085
|
e.textContent = "";
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function Pi() {
|
|
1088
1088
|
return !je || ge !== null ? !1 : (A.f & qr) !== 0;
|
|
1089
1089
|
}
|
|
1090
1090
|
function Zr(e, t, r) {
|
|
@@ -1097,7 +1097,7 @@ function en(e) {
|
|
|
1097
1097
|
for (; t !== null && t.nodeType === 3; )
|
|
1098
1098
|
t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1100
|
+
function Ci(e) {
|
|
1101
1101
|
var t = I, r = A;
|
|
1102
1102
|
ie(null), _e(null);
|
|
1103
1103
|
try {
|
|
@@ -1106,10 +1106,10 @@ function Pi(e) {
|
|
|
1106
1106
|
ie(t), _e(r);
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
|
-
function
|
|
1110
|
-
A === null && (I === null &&
|
|
1109
|
+
function hs(e) {
|
|
1110
|
+
A === null && (I === null && Lo(e), Ro()), ze && Oo(e);
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1112
|
+
function vs(e, t) {
|
|
1113
1113
|
var r = t.last;
|
|
1114
1114
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1115
1115
|
}
|
|
@@ -1141,7 +1141,7 @@ function ye(e, t) {
|
|
|
1141
1141
|
}
|
|
1142
1142
|
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= Gr));
|
|
1143
1143
|
}
|
|
1144
|
-
if (i !== null && (i.parent = r, r !== null &&
|
|
1144
|
+
if (i !== null && (i.parent = r, r !== null && vs(i, r), I !== null && I.f & 2 && !(e & 64))) {
|
|
1145
1145
|
var o = I;
|
|
1146
1146
|
(o.effects ?? (o.effects = [])).push(i);
|
|
1147
1147
|
}
|
|
@@ -1150,29 +1150,29 @@ function ye(e, t) {
|
|
|
1150
1150
|
function tn() {
|
|
1151
1151
|
return I !== null && !fe;
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1153
|
+
function ps(e) {
|
|
1154
1154
|
const t = ye(8, null);
|
|
1155
1155
|
return N(t, re), t.teardown = e, t;
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1158
|
-
|
|
1157
|
+
function Ln(e) {
|
|
1158
|
+
hs("$effect");
|
|
1159
1159
|
var t = A.f;
|
|
1160
1160
|
if (!I && t & 32 && !(t & 32768)) {
|
|
1161
1161
|
var r = z;
|
|
1162
1162
|
(r.e ?? (r.e = [])).push(e);
|
|
1163
|
-
} else return
|
|
1163
|
+
} else return xi(e);
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1166
|
-
return ye(4 |
|
|
1165
|
+
function xi(e) {
|
|
1166
|
+
return ye(4 | To, e);
|
|
1167
1167
|
}
|
|
1168
|
-
function
|
|
1168
|
+
function gs(e) {
|
|
1169
1169
|
it.ensure();
|
|
1170
1170
|
const t = ye(64 | mt, e);
|
|
1171
1171
|
return () => {
|
|
1172
1172
|
H(t);
|
|
1173
1173
|
};
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function _s(e) {
|
|
1176
1176
|
it.ensure();
|
|
1177
1177
|
const t = ye(64 | mt, e);
|
|
1178
1178
|
return (r = {}) => new Promise((n) => {
|
|
@@ -1181,17 +1181,17 @@ function gs(e) {
|
|
|
1181
1181
|
}) : (H(t), n(void 0));
|
|
1182
1182
|
});
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1184
|
+
function Mi(e) {
|
|
1185
1185
|
return ye(4, e);
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1188
|
-
return ye(
|
|
1187
|
+
function ms(e) {
|
|
1188
|
+
return ye(So | mt, e);
|
|
1189
1189
|
}
|
|
1190
1190
|
function rn(e, t = 0) {
|
|
1191
1191
|
return ye(8 | t, e);
|
|
1192
1192
|
}
|
|
1193
1193
|
function Yt(e, t = [], r = [], n = []) {
|
|
1194
|
-
|
|
1194
|
+
ns(n, t, r, (i) => {
|
|
1195
1195
|
ye(8, () => e(...i.map(_)));
|
|
1196
1196
|
});
|
|
1197
1197
|
}
|
|
@@ -1202,15 +1202,15 @@ function nn(e, t = 0) {
|
|
|
1202
1202
|
function ne(e) {
|
|
1203
1203
|
return ye(32 | mt, e);
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1205
|
+
function Ni(e) {
|
|
1206
1206
|
var t = e.teardown;
|
|
1207
1207
|
if (t !== null) {
|
|
1208
1208
|
const r = ze, n = I;
|
|
1209
|
-
|
|
1209
|
+
Pn(!0), ie(null);
|
|
1210
1210
|
try {
|
|
1211
1211
|
t.call(null);
|
|
1212
1212
|
} finally {
|
|
1213
|
-
|
|
1213
|
+
Pn(r), ie(n);
|
|
1214
1214
|
}
|
|
1215
1215
|
}
|
|
1216
1216
|
}
|
|
@@ -1218,14 +1218,14 @@ function on(e, t = !1) {
|
|
|
1218
1218
|
var r = e.first;
|
|
1219
1219
|
for (e.first = e.last = null; r !== null; ) {
|
|
1220
1220
|
const i = r.ac;
|
|
1221
|
-
i !== null &&
|
|
1221
|
+
i !== null && Ci(() => {
|
|
1222
1222
|
i.abort(Ae);
|
|
1223
1223
|
});
|
|
1224
1224
|
var n = r.next;
|
|
1225
1225
|
r.f & 64 ? r.parent = null : H(r, t), r = n;
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
|
-
function
|
|
1228
|
+
function bs(e) {
|
|
1229
1229
|
for (var t = e.first; t !== null; ) {
|
|
1230
1230
|
var r = t.next;
|
|
1231
1231
|
t.f & 32 || H(t), t = r;
|
|
@@ -1233,26 +1233,26 @@ function ms(e) {
|
|
|
1233
1233
|
}
|
|
1234
1234
|
function H(e, t = !0) {
|
|
1235
1235
|
var r = !1;
|
|
1236
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (
|
|
1236
|
+
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (ys(e.nodes.start, e.nodes.end), r = !0), N(e, wn), on(e, t && !r), xt(e, 0);
|
|
1237
1237
|
var n = e.nodes && e.nodes.t;
|
|
1238
1238
|
if (n !== null) for (const o of n) o.stop();
|
|
1239
|
-
|
|
1239
|
+
Ni(e), e.f ^= wn, e.f |= wo;
|
|
1240
1240
|
var i = e.parent;
|
|
1241
|
-
i !== null && i.first !== null &&
|
|
1241
|
+
i !== null && i.first !== null && Di(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1243
|
+
function ys(e, t) {
|
|
1244
1244
|
for (; e !== null; ) {
|
|
1245
1245
|
var r = e === t ? null : /* @__PURE__ */ be(e);
|
|
1246
1246
|
e.remove(), e = r;
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function Di(e) {
|
|
1250
1250
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1251
1251
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1252
1252
|
}
|
|
1253
1253
|
function ot(e, t, r = !0) {
|
|
1254
1254
|
var n = [];
|
|
1255
|
-
|
|
1255
|
+
Vi(e, n, !0);
|
|
1256
1256
|
var i = () => {
|
|
1257
1257
|
r && H(e), t && t();
|
|
1258
1258
|
}, o = n.length;
|
|
@@ -1261,7 +1261,7 @@ function ot(e, t, r = !0) {
|
|
|
1261
1261
|
for (var a of n) a.out(s);
|
|
1262
1262
|
} else i();
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1264
|
+
function Vi(e, t, r) {
|
|
1265
1265
|
if (!(e.f & 8192)) {
|
|
1266
1266
|
e.f ^= Hr;
|
|
1267
1267
|
var n = e.nodes && e.nodes.t;
|
|
@@ -1269,19 +1269,19 @@ function Di(e, t, r) {
|
|
|
1269
1269
|
for (const a of n) (a.is_global || r) && t.push(a);
|
|
1270
1270
|
for (var i = e.first; i !== null; ) {
|
|
1271
1271
|
var o = i.next, s = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1272
|
-
|
|
1272
|
+
Vi(i, t, s ? r : !1), i = o;
|
|
1273
1273
|
}
|
|
1274
1274
|
}
|
|
1275
1275
|
}
|
|
1276
1276
|
function sn(e) {
|
|
1277
|
-
|
|
1277
|
+
ji(e, !0);
|
|
1278
1278
|
}
|
|
1279
|
-
function
|
|
1279
|
+
function ji(e, t) {
|
|
1280
1280
|
if (e.f & 8192) {
|
|
1281
1281
|
e.f ^= Hr, e.f & 1024 || (N(e, me), it.ensure().schedule(e));
|
|
1282
1282
|
for (var r = e.first; r !== null; ) {
|
|
1283
1283
|
var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1284
|
-
|
|
1284
|
+
ji(r, i ? t : !1), r = n;
|
|
1285
1285
|
}
|
|
1286
1286
|
var o = e.nodes && e.nodes.t;
|
|
1287
1287
|
if (o !== null)
|
|
@@ -1295,8 +1295,8 @@ function an(e, t) {
|
|
|
1295
1295
|
t.append(r), r = i;
|
|
1296
1296
|
}
|
|
1297
1297
|
}
|
|
1298
|
-
var
|
|
1299
|
-
function
|
|
1298
|
+
var ws = null, er = !1, ze = !1;
|
|
1299
|
+
function Pn(e) {
|
|
1300
1300
|
ze = e;
|
|
1301
1301
|
}
|
|
1302
1302
|
var I = null, fe = !1;
|
|
@@ -1308,19 +1308,19 @@ function _e(e) {
|
|
|
1308
1308
|
A = e;
|
|
1309
1309
|
}
|
|
1310
1310
|
var te = null;
|
|
1311
|
-
function
|
|
1311
|
+
function zi(e) {
|
|
1312
1312
|
I !== null && (!je || I.f & 2) && (te === null ? te = [e] : te.push(e));
|
|
1313
1313
|
}
|
|
1314
1314
|
var U = null, J = 0, ee = null;
|
|
1315
|
-
function
|
|
1315
|
+
function Ts(e) {
|
|
1316
1316
|
ee = e;
|
|
1317
1317
|
}
|
|
1318
|
-
var
|
|
1319
|
-
function
|
|
1318
|
+
var Wi = 1, Ke = 0, Ze = Ke;
|
|
1319
|
+
function Cn(e) {
|
|
1320
1320
|
Ze = e;
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1323
|
-
return ++
|
|
1322
|
+
function Bi() {
|
|
1323
|
+
return ++Wi;
|
|
1324
1324
|
}
|
|
1325
1325
|
function Dt(e) {
|
|
1326
1326
|
var t = e.f;
|
|
@@ -1328,27 +1328,27 @@ function Dt(e) {
|
|
|
1328
1328
|
if (t & 2 && (e.f &= ~Mt), t & 4096) {
|
|
1329
1329
|
for (var r = e.deps, n = r.length, i = 0; i < n; i++) {
|
|
1330
1330
|
var o = r[i];
|
|
1331
|
-
if (Dt(o) &&
|
|
1331
|
+
if (Dt(o) && Si(o), o.wv > e.wv) return !0;
|
|
1332
1332
|
}
|
|
1333
1333
|
t & 512 && K === null && N(e, re);
|
|
1334
1334
|
}
|
|
1335
1335
|
return !1;
|
|
1336
1336
|
}
|
|
1337
|
-
function
|
|
1337
|
+
function Fi(e, t, r = !0) {
|
|
1338
1338
|
var n = e.reactions;
|
|
1339
1339
|
if (n !== null && !(!je && te !== null && ht.call(te, e)))
|
|
1340
1340
|
for (var i = 0; i < n.length; i++) {
|
|
1341
1341
|
var o = n[i];
|
|
1342
|
-
o.f & 2 ?
|
|
1342
|
+
o.f & 2 ? Fi(o, t, !1) : t === o && (r ? N(o, me) : o.f & 1024 && N(o, nt), Yr(o));
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
|
-
function
|
|
1345
|
+
function Hi(e) {
|
|
1346
1346
|
var t = U, r = J, n = ee, i = I, o = te, s = z, a = fe, l = Ze, u = e.f;
|
|
1347
|
-
U = null, J = 0, ee = null, I = u & 96 ? null : e, te = null, vt(e.ctx), fe = !1, Ze = ++Ke, e.ac !== null && (
|
|
1347
|
+
U = null, J = 0, ee = null, I = u & 96 ? null : e, te = null, vt(e.ctx), fe = !1, Ze = ++Ke, e.ac !== null && (Ci(() => {
|
|
1348
1348
|
e.ac.abort(Ae);
|
|
1349
1349
|
}), e.ac = null);
|
|
1350
1350
|
try {
|
|
1351
|
-
e.f |=
|
|
1351
|
+
e.f |= Tn;
|
|
1352
1352
|
var p = e.fn, v = p();
|
|
1353
1353
|
e.f |= qr;
|
|
1354
1354
|
var f = e.deps, d = L?.is_fork;
|
|
@@ -1362,7 +1362,7 @@ function Fi(e) {
|
|
|
1362
1362
|
((w = f[g]).reactions ?? (w.reactions = [])).push(e);
|
|
1363
1363
|
}
|
|
1364
1364
|
} else !d && f !== null && J < f.length && (xt(e, J), f.length = J);
|
|
1365
|
-
if (Nt() && ee !== null && !fe && f !== null && !(e.f & 6146)) for (g = 0; g < ee.length; g++)
|
|
1365
|
+
if (Nt() && ee !== null && !fe && f !== null && !(e.f & 6146)) for (g = 0; g < ee.length; g++) Fi(ee[g], e);
|
|
1366
1366
|
if (i !== null && i !== e) {
|
|
1367
1367
|
if (Ke++, i.deps !== null) for (let h = 0; h < r; h += 1) i.deps[h].rv = Ke;
|
|
1368
1368
|
if (t !== null) for (const h of t) h.rv = Ke;
|
|
@@ -1370,15 +1370,15 @@ function Fi(e) {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
return e.f & 8388608 && (e.f ^= sr), v;
|
|
1372
1372
|
} catch (h) {
|
|
1373
|
-
return
|
|
1373
|
+
return li(h);
|
|
1374
1374
|
} finally {
|
|
1375
|
-
e.f ^=
|
|
1375
|
+
e.f ^= Tn, U = t, J = r, ee = n, I = i, te = o, vt(s), fe = a, Ze = l;
|
|
1376
1376
|
}
|
|
1377
1377
|
}
|
|
1378
|
-
function
|
|
1378
|
+
function Ss(e, t) {
|
|
1379
1379
|
let r = t.reactions;
|
|
1380
1380
|
if (r !== null) {
|
|
1381
|
-
var n =
|
|
1381
|
+
var n = po.call(r, e);
|
|
1382
1382
|
if (n !== -1) {
|
|
1383
1383
|
var i = r.length - 1;
|
|
1384
1384
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
@@ -1386,13 +1386,13 @@ function Ts(e, t) {
|
|
|
1386
1386
|
}
|
|
1387
1387
|
if (r === null && t.f & 2 && (U === null || !ht.call(U, t))) {
|
|
1388
1388
|
var o = t;
|
|
1389
|
-
o.f & 512 && (o.f ^= 512, o.f &= ~Mt), Ur(o),
|
|
1389
|
+
o.f & 512 && (o.f ^= 512, o.f &= ~Mt), Ur(o), ls(o), xt(o, 0);
|
|
1390
1390
|
}
|
|
1391
1391
|
}
|
|
1392
1392
|
function xt(e, t) {
|
|
1393
1393
|
var r = e.deps;
|
|
1394
1394
|
if (r !== null)
|
|
1395
|
-
for (var n = t; n < r.length; n++)
|
|
1395
|
+
for (var n = t; n < r.length; n++) Ss(e, r[n]);
|
|
1396
1396
|
}
|
|
1397
1397
|
function _t(e) {
|
|
1398
1398
|
var t = e.f;
|
|
@@ -1402,9 +1402,9 @@ function _t(e) {
|
|
|
1402
1402
|
if (A = e, er = !0, 0)
|
|
1403
1403
|
var i, o;
|
|
1404
1404
|
try {
|
|
1405
|
-
t & 16777232 ?
|
|
1406
|
-
var s =
|
|
1407
|
-
if (e.teardown = typeof s == "function" ? s : null, e.wv =
|
|
1405
|
+
t & 16777232 ? bs(e) : on(e), Ni(e);
|
|
1406
|
+
var s = Hi(e);
|
|
1407
|
+
if (e.teardown = typeof s == "function" ? s : null, e.wv = Wi, 0)
|
|
1408
1408
|
for (var a of e.deps) ;
|
|
1409
1409
|
} finally {
|
|
1410
1410
|
er = n, A = r;
|
|
@@ -1413,7 +1413,7 @@ function _t(e) {
|
|
|
1413
1413
|
}
|
|
1414
1414
|
function _(e) {
|
|
1415
1415
|
var t = (e.f & 2) !== 0;
|
|
1416
|
-
if (
|
|
1416
|
+
if (ws?.add(e), I !== null && !fe && !(A !== null && A.f & 16384) && (te === null || !ht.call(te, e))) {
|
|
1417
1417
|
var r = I.deps;
|
|
1418
1418
|
if (I.f & 2097152)
|
|
1419
1419
|
e.rv < Ke && (e.rv = Ke, U === null && r !== null && r[J] === e ? J++ : U === null ? U = [e] : U.push(e));
|
|
@@ -1437,25 +1437,25 @@ function _(e) {
|
|
|
1437
1437
|
var l = e;
|
|
1438
1438
|
if (ze) {
|
|
1439
1439
|
var u = l.v;
|
|
1440
|
-
return (!(l.f & 1024) && l.reactions !== null ||
|
|
1440
|
+
return (!(l.f & 1024) && l.reactions !== null || Gi(l)) && (u = Qr(l)), Ve.set(l, u), u;
|
|
1441
1441
|
}
|
|
1442
1442
|
var p = (l.f & 512) === 0 && !fe && I !== null && (er || (I.f & 512) !== 0), v = (l.f & qr) === 0;
|
|
1443
|
-
Dt(l) && (p && (l.f |= 512),
|
|
1443
|
+
Dt(l) && (p && (l.f |= 512), Si(l)), p && !v && (ki(l), qi(l));
|
|
1444
1444
|
}
|
|
1445
1445
|
if (K?.has(e)) return K.get(e);
|
|
1446
1446
|
if (e.f & 8388608) throw e.v;
|
|
1447
1447
|
return e.v;
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function qi(e) {
|
|
1450
1450
|
if (e.f |= 512, e.deps !== null)
|
|
1451
1451
|
for (const t of e.deps)
|
|
1452
|
-
(t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (
|
|
1452
|
+
(t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (ki(t), qi(t));
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1454
|
+
function Gi(e) {
|
|
1455
1455
|
if (e.v === W) return !0;
|
|
1456
1456
|
if (e.deps === null) return !1;
|
|
1457
1457
|
for (const t of e.deps)
|
|
1458
|
-
if (Ve.has(t) || t.f & 2 &&
|
|
1458
|
+
if (Ve.has(t) || t.f & 2 && Gi(t)) return !0;
|
|
1459
1459
|
return !1;
|
|
1460
1460
|
}
|
|
1461
1461
|
function ln(e) {
|
|
@@ -1466,19 +1466,19 @@ function ln(e) {
|
|
|
1466
1466
|
fe = t;
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
1469
|
-
var ft = Symbol("events"),
|
|
1469
|
+
var ft = Symbol("events"), Ui = /* @__PURE__ */ new Set(), zr = /* @__PURE__ */ new Set();
|
|
1470
1470
|
function Tt(e, t, r) {
|
|
1471
1471
|
(t[ft] ?? (t[ft] = {}))[e] = r;
|
|
1472
1472
|
}
|
|
1473
|
-
function
|
|
1474
|
-
for (var t = 0; t < e.length; t++)
|
|
1473
|
+
function ks(e) {
|
|
1474
|
+
for (var t = 0; t < e.length; t++) Ui.add(e[t]);
|
|
1475
1475
|
for (var r of zr) r(e);
|
|
1476
1476
|
}
|
|
1477
|
-
var
|
|
1478
|
-
function
|
|
1477
|
+
var xn = null;
|
|
1478
|
+
function Mn(e) {
|
|
1479
1479
|
var t = this, r = t.ownerDocument, n = e.type, i = e.composedPath?.() || [], o = i[0] || e.target;
|
|
1480
|
-
|
|
1481
|
-
var s = 0, a =
|
|
1480
|
+
xn = e;
|
|
1481
|
+
var s = 0, a = xn === e && e[ft];
|
|
1482
1482
|
if (a) {
|
|
1483
1483
|
var l = i.indexOf(a);
|
|
1484
1484
|
if (l !== -1 && (t === document || t === window)) {
|
|
@@ -1521,13 +1521,13 @@ function xn(e) {
|
|
|
1521
1521
|
}
|
|
1522
1522
|
}
|
|
1523
1523
|
}
|
|
1524
|
-
var
|
|
1525
|
-
function As(e) {
|
|
1526
|
-
return ks?.createHTML(e) ?? e;
|
|
1527
|
-
}
|
|
1524
|
+
var As = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1528
1525
|
function Is(e) {
|
|
1526
|
+
return As?.createHTML(e) ?? e;
|
|
1527
|
+
}
|
|
1528
|
+
function $s(e) {
|
|
1529
1529
|
var t = Zr("template");
|
|
1530
|
-
return t.innerHTML =
|
|
1530
|
+
return t.innerHTML = Is(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1531
1531
|
}
|
|
1532
1532
|
function tr(e, t) {
|
|
1533
1533
|
var r = A;
|
|
@@ -1544,8 +1544,8 @@ function st(e, t) {
|
|
|
1544
1544
|
return () => {
|
|
1545
1545
|
if (P)
|
|
1546
1546
|
return tr(R, null), R;
|
|
1547
|
-
i === void 0 && (i =
|
|
1548
|
-
var s = n ||
|
|
1547
|
+
i === void 0 && (i = $s(o ? e : "<!>" + e), r || (i = /* @__PURE__ */ rt(i)));
|
|
1548
|
+
var s = n || Ei ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1549
1549
|
if (r) {
|
|
1550
1550
|
var a = /* @__PURE__ */ rt(s), l = s.lastChild;
|
|
1551
1551
|
tr(a, l);
|
|
@@ -1561,7 +1561,7 @@ function Ce(e, t) {
|
|
|
1561
1561
|
}
|
|
1562
1562
|
e !== null && e.before(t);
|
|
1563
1563
|
}
|
|
1564
|
-
var
|
|
1564
|
+
var Es = [
|
|
1565
1565
|
"allowfullscreen",
|
|
1566
1566
|
"async",
|
|
1567
1567
|
"autofocus",
|
|
@@ -1590,8 +1590,8 @@ var $s = [
|
|
|
1590
1590
|
"defer",
|
|
1591
1591
|
"disablepictureinpicture",
|
|
1592
1592
|
"disableremoteplayback"
|
|
1593
|
-
],
|
|
1594
|
-
|
|
1593
|
+
], ll = [
|
|
1594
|
+
...Es,
|
|
1595
1595
|
"formNoValidate",
|
|
1596
1596
|
"isMap",
|
|
1597
1597
|
"noModule",
|
|
@@ -1606,17 +1606,17 @@ var $s = [
|
|
|
1606
1606
|
"allowFullscreen",
|
|
1607
1607
|
"disablePictureInPicture",
|
|
1608
1608
|
"disableRemotePlayback"
|
|
1609
|
-
],
|
|
1610
|
-
function
|
|
1611
|
-
return
|
|
1609
|
+
], Os = ["touchstart", "touchmove"];
|
|
1610
|
+
function Rs(e) {
|
|
1611
|
+
return Os.includes(e);
|
|
1612
1612
|
}
|
|
1613
|
-
var
|
|
1613
|
+
var Ls = [
|
|
1614
1614
|
"$state",
|
|
1615
1615
|
"$state.raw",
|
|
1616
1616
|
"$derived",
|
|
1617
1617
|
"$derived.by"
|
|
1618
|
-
],
|
|
1619
|
-
...
|
|
1618
|
+
], cl = [
|
|
1619
|
+
...Ls,
|
|
1620
1620
|
"$state.eager",
|
|
1621
1621
|
"$state.snapshot",
|
|
1622
1622
|
"$props",
|
|
@@ -1631,22 +1631,22 @@ var Rs = [
|
|
|
1631
1631
|
"$inspect().with",
|
|
1632
1632
|
"$inspect.trace",
|
|
1633
1633
|
"$host"
|
|
1634
|
-
],
|
|
1635
|
-
function
|
|
1634
|
+
], Nn = !0;
|
|
1635
|
+
function Dn(e, t) {
|
|
1636
1636
|
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1637
1637
|
r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = `${r}`);
|
|
1638
1638
|
}
|
|
1639
|
-
function
|
|
1640
|
-
return
|
|
1639
|
+
function Ki(e, t) {
|
|
1640
|
+
return Yi(e, t);
|
|
1641
1641
|
}
|
|
1642
|
-
function
|
|
1642
|
+
function Ps(e, t) {
|
|
1643
1643
|
jr(), t.intro = t.intro ?? !1;
|
|
1644
1644
|
const r = t.target, n = P, i = R;
|
|
1645
1645
|
try {
|
|
1646
1646
|
for (var o = /* @__PURE__ */ rt(r); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ be(o);
|
|
1647
1647
|
if (!o) throw dt;
|
|
1648
1648
|
Ie(!0), Y(o);
|
|
1649
|
-
const s =
|
|
1649
|
+
const s = Yi(e, {
|
|
1650
1650
|
...t,
|
|
1651
1651
|
anchor: o
|
|
1652
1652
|
});
|
|
@@ -1654,43 +1654,43 @@ function Ls(e, t) {
|
|
|
1654
1654
|
} catch (s) {
|
|
1655
1655
|
if (s instanceof Error && s.message.split(`
|
|
1656
1656
|
`).some((a) => a.startsWith("https://svelte.dev/e/"))) throw s;
|
|
1657
|
-
return s !== dt && console.warn("Failed to hydrate: ", s), t.recover === !1 &&
|
|
1657
|
+
return s !== dt && console.warn("Failed to hydrate: ", s), t.recover === !1 && Co(), jr(), Li(r), Ie(!1), Ki(e, t);
|
|
1658
1658
|
} finally {
|
|
1659
1659
|
Ie(n), Y(i);
|
|
1660
1660
|
}
|
|
1661
1661
|
}
|
|
1662
1662
|
var Xt = /* @__PURE__ */ new Map();
|
|
1663
|
-
function
|
|
1663
|
+
function Yi(e, { target: t, anchor: r, props: n = {}, events: i, context: o, intro: s = !0, transformError: a }) {
|
|
1664
1664
|
jr();
|
|
1665
|
-
var l = void 0, u =
|
|
1665
|
+
var l = void 0, u = _s(() => {
|
|
1666
1666
|
var p = r ?? t.appendChild(de());
|
|
1667
|
-
|
|
1667
|
+
Qo(p, { pending: () => {
|
|
1668
1668
|
} }, (d) => {
|
|
1669
|
-
|
|
1669
|
+
oi({});
|
|
1670
1670
|
var g = z;
|
|
1671
|
-
if (o && (g.c = o), i && (n.$$events = i), P && tr(d, null),
|
|
1671
|
+
if (o && (g.c = o), i && (n.$$events = i), P && tr(d, null), Nn = s, l = e(d, n) || {}, Nn = !0, P && (A.nodes.end = R, R === null || R.nodeType !== 8 || R.data !== "]"))
|
|
1672
1672
|
throw hr(), dt;
|
|
1673
|
-
|
|
1673
|
+
si();
|
|
1674
1674
|
}, a);
|
|
1675
1675
|
var v = /* @__PURE__ */ new Set(), f = (d) => {
|
|
1676
1676
|
for (var g = 0; g < d.length; g++) {
|
|
1677
1677
|
var w = d[g];
|
|
1678
1678
|
if (!v.has(w)) {
|
|
1679
1679
|
v.add(w);
|
|
1680
|
-
var h =
|
|
1680
|
+
var h = Rs(w);
|
|
1681
1681
|
for (const $ of [t, document]) {
|
|
1682
1682
|
var y = Xt.get($);
|
|
1683
1683
|
y === void 0 && (y = /* @__PURE__ */ new Map(), Xt.set($, y));
|
|
1684
1684
|
var M = y.get(w);
|
|
1685
|
-
M === void 0 ? ($.addEventListener(w,
|
|
1685
|
+
M === void 0 ? ($.addEventListener(w, Mn, { passive: h }), y.set(w, 1)) : y.set(w, M + 1);
|
|
1686
1686
|
}
|
|
1687
1687
|
}
|
|
1688
1688
|
}
|
|
1689
1689
|
};
|
|
1690
|
-
return f(dr(
|
|
1690
|
+
return f(dr(Ui)), zr.add(f), () => {
|
|
1691
1691
|
for (var d of v) for (const h of [t, document]) {
|
|
1692
1692
|
var g = Xt.get(h), w = g.get(d);
|
|
1693
|
-
--w == 0 ? (h.removeEventListener(d,
|
|
1693
|
+
--w == 0 ? (h.removeEventListener(d, Mn), g.delete(d), g.size === 0 && Xt.delete(h)) : g.set(d, w);
|
|
1694
1694
|
}
|
|
1695
1695
|
zr.delete(f), p !== r && p.parentNode?.removeChild(p);
|
|
1696
1696
|
};
|
|
@@ -1698,11 +1698,11 @@ function Ki(e, { target: t, anchor: r, props: n = {}, events: i, context: o, int
|
|
|
1698
1698
|
return Wr.set(l, u), l;
|
|
1699
1699
|
}
|
|
1700
1700
|
var Wr = /* @__PURE__ */ new WeakMap();
|
|
1701
|
-
function
|
|
1701
|
+
function Cs(e, t) {
|
|
1702
1702
|
const r = Wr.get(e);
|
|
1703
1703
|
return r ? (Wr.delete(e), r(t)) : Promise.resolve();
|
|
1704
1704
|
}
|
|
1705
|
-
var Se = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Ir = /* @__PURE__ */ new WeakMap(), $r = /* @__PURE__ */ new WeakMap(),
|
|
1705
|
+
var Se = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Ir = /* @__PURE__ */ new WeakMap(), $r = /* @__PURE__ */ new WeakMap(), Vn = /* @__PURE__ */ new WeakMap(), xs = class {
|
|
1706
1706
|
constructor(e, t = !0) {
|
|
1707
1707
|
b(this, "anchor", void 0), k(this, Se, /* @__PURE__ */ new Map()), k(this, Le, /* @__PURE__ */ new Map()), k(this, ae, /* @__PURE__ */ new Map()), k(this, St, /* @__PURE__ */ new Set()), k(this, Ir, !0), k(this, $r, (r) => {
|
|
1708
1708
|
if (c(Se, this).has(r)) {
|
|
@@ -1733,14 +1733,14 @@ var Se = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), ae =
|
|
|
1733
1733
|
c(Ir, this) || !i ? (c(St, this).add(s), ot(a, l, !1)) : l();
|
|
1734
1734
|
}
|
|
1735
1735
|
}
|
|
1736
|
-
}), k(this,
|
|
1736
|
+
}), k(this, Vn, (r) => {
|
|
1737
1737
|
c(Se, this).delete(r);
|
|
1738
1738
|
const n = Array.from(c(Se, this).values());
|
|
1739
1739
|
for (const [i, o] of c(ae, this)) n.includes(i) || (H(o.effect), c(ae, this).delete(i));
|
|
1740
1740
|
}), this.anchor = e, T(Ir, this, t);
|
|
1741
1741
|
}
|
|
1742
1742
|
ensure(e, t) {
|
|
1743
|
-
var r = L, n =
|
|
1743
|
+
var r = L, n = Pi();
|
|
1744
1744
|
if (t && !c(Le, this).has(e) && !c(ae, this).has(e)) if (n) {
|
|
1745
1745
|
var i = document.createDocumentFragment(), o = de();
|
|
1746
1746
|
i.append(o), c(ae, this).set(e, {
|
|
@@ -1751,7 +1751,7 @@ var Se = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), ae =
|
|
|
1751
1751
|
if (c(Se, this).set(r, e), n) {
|
|
1752
1752
|
for (const [s, a] of c(Le, this)) s === e ? r.unskip_effect(a) : r.skip_effect(a);
|
|
1753
1753
|
for (const [s, a] of c(ae, this)) s === e ? r.unskip_effect(a.effect) : r.skip_effect(a.effect);
|
|
1754
|
-
r.oncommit(c($r, this)), r.ondiscard(c(
|
|
1754
|
+
r.oncommit(c($r, this)), r.ondiscard(c(Vn, this));
|
|
1755
1755
|
} else
|
|
1756
1756
|
P && (this.anchor = R), c($r, this).call(this, r);
|
|
1757
1757
|
}
|
|
@@ -1759,10 +1759,10 @@ var Se = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), ae =
|
|
|
1759
1759
|
function kt(e, t, r = !1) {
|
|
1760
1760
|
var n;
|
|
1761
1761
|
P && (n = R, vr());
|
|
1762
|
-
var i = new
|
|
1762
|
+
var i = new xs(e), o = r ? Gr : 0;
|
|
1763
1763
|
function s(a, l) {
|
|
1764
1764
|
if (P) {
|
|
1765
|
-
var u =
|
|
1765
|
+
var u = ri(n);
|
|
1766
1766
|
if (a !== parseInt(u.substring(1))) {
|
|
1767
1767
|
var p = ar();
|
|
1768
1768
|
Y(p), i.anchor = p, Ie(!1), i.ensure(a, l), Ie(!0);
|
|
@@ -1778,10 +1778,10 @@ function kt(e, t, r = !1) {
|
|
|
1778
1778
|
}), a || s(-1, null);
|
|
1779
1779
|
}, o);
|
|
1780
1780
|
}
|
|
1781
|
-
function
|
|
1781
|
+
function Ms(e, t) {
|
|
1782
1782
|
return t;
|
|
1783
1783
|
}
|
|
1784
|
-
function
|
|
1784
|
+
function Ns(e, t, r) {
|
|
1785
1785
|
for (var n = [], i = t.length, o, s = t.length, a = 0; a < i; a++) {
|
|
1786
1786
|
let v = t[a];
|
|
1787
1787
|
ot(v, () => {
|
|
@@ -1797,7 +1797,7 @@ function Ms(e, t, r) {
|
|
|
1797
1797
|
var l = n.length === 0 && r !== null;
|
|
1798
1798
|
if (l) {
|
|
1799
1799
|
var u = r, p = u.parentNode;
|
|
1800
|
-
|
|
1800
|
+
Li(p), p.append(u), e.items.clear();
|
|
1801
1801
|
}
|
|
1802
1802
|
Br(e, t, !l);
|
|
1803
1803
|
} else
|
|
@@ -1818,7 +1818,7 @@ function Br(e, t, r = !0) {
|
|
|
1818
1818
|
}
|
|
1819
1819
|
}
|
|
1820
1820
|
var Jt;
|
|
1821
|
-
function
|
|
1821
|
+
function Ds(e, t, r, n, i, o = null) {
|
|
1822
1822
|
var s = e, a = /* @__PURE__ */ new Map();
|
|
1823
1823
|
if (t & 4) {
|
|
1824
1824
|
var l = e;
|
|
@@ -1827,10 +1827,10 @@ function Ns(e, t, r, n, i, o = null) {
|
|
|
1827
1827
|
P && vr();
|
|
1828
1828
|
var u = null, p = /* @__PURE__ */ Jr(() => {
|
|
1829
1829
|
var y = r();
|
|
1830
|
-
return
|
|
1830
|
+
return Qn(y) ? y : y == null ? [] : dr(y);
|
|
1831
1831
|
}), v, f = /* @__PURE__ */ new Map(), d = !0;
|
|
1832
1832
|
function g(y) {
|
|
1833
|
-
h.effect.f & 16384 || (h.pending.delete(y), h.fallback = u,
|
|
1833
|
+
h.effect.f & 16384 || (h.pending.delete(y), h.fallback = u, Vs(h, v, s, t, n), u !== null && (v.length === 0 ? u.f & 33554432 ? (u.f ^= Et, $t(u, null, s)) : sn(u) : ot(u, () => {
|
|
1834
1834
|
u = null;
|
|
1835
1835
|
})));
|
|
1836
1836
|
}
|
|
@@ -1842,16 +1842,16 @@ function Ns(e, t, r, n, i, o = null) {
|
|
|
1842
1842
|
v = _(p);
|
|
1843
1843
|
var y = v.length;
|
|
1844
1844
|
let M = !1;
|
|
1845
|
-
P &&
|
|
1846
|
-
for (var $ = /* @__PURE__ */ new Set(), C = L, B =
|
|
1845
|
+
P && ri(s) === "[!" != (y === 0) && (s = ar(), Y(s), Ie(!1), M = !0);
|
|
1846
|
+
for (var $ = /* @__PURE__ */ new Set(), C = L, B = Pi(), D = 0; D < y; D += 1) {
|
|
1847
1847
|
P && R.nodeType === 8 && R.data === "]" && (s = R, M = !0, Ie(!1));
|
|
1848
1848
|
var q = v[D], he = n(q, D);
|
|
1849
1849
|
if (0)
|
|
1850
1850
|
var Vt;
|
|
1851
1851
|
var V = d ? null : a.get(he);
|
|
1852
|
-
V ? (V.v && gt(V.v, q), V.i && gt(V.i, D), B && C.unskip_effect(V.e)) : (V =
|
|
1852
|
+
V ? (V.v && gt(V.v, q), V.i && gt(V.i, D), B && C.unskip_effect(V.e)) : (V = js(a, d ? s : Jt ?? (Jt = de()), q, he, D, i, t, r), d || (V.e.f |= Et), a.set(he, V)), $.add(he);
|
|
1853
1853
|
}
|
|
1854
|
-
if (y === 0 && o && !u && (d ? u = ne(() => o(s)) : (u = ne(() => o(Jt ?? (Jt = de()))), u.f |= Et)), y > $.size &&
|
|
1854
|
+
if (y === 0 && o && !u && (d ? u = ne(() => o(s)) : (u = ne(() => o(Jt ?? (Jt = de()))), u.f |= Et)), y > $.size && Eo("", "", ""), P && y > 0 && Y(ar()), !d)
|
|
1855
1855
|
if (f.set(C, $), B) {
|
|
1856
1856
|
for (const [jt, yr] of a) $.has(jt) || C.skip_effect(yr.e);
|
|
1857
1857
|
C.oncommit(g), C.ondiscard(w);
|
|
@@ -1870,7 +1870,7 @@ function At(e) {
|
|
|
1870
1870
|
for (; e !== null && !(e.f & 32); ) e = e.next;
|
|
1871
1871
|
return e;
|
|
1872
1872
|
}
|
|
1873
|
-
function
|
|
1873
|
+
function Vs(e, t, r, n, i) {
|
|
1874
1874
|
var o = (n & 8) !== 0, s = t.length, a = e.items, l = At(e.effect.first), u, p = null, v, f = [], d = [], g, w, h, y;
|
|
1875
1875
|
if (o) for (y = 0; y < s; y += 1)
|
|
1876
1876
|
g = t[y], w = i(g, y), h = a.get(w).e, h.f & 33554432 || (h.nodes?.a?.measure(), (v ?? (v = /* @__PURE__ */ new Set())).add(h));
|
|
@@ -1920,7 +1920,7 @@ function Ds(e, t, r, n, i) {
|
|
|
1920
1920
|
for (y = 0; y < he; y += 1) q[y].nodes?.a?.measure();
|
|
1921
1921
|
for (y = 0; y < he; y += 1) q[y].nodes?.a?.fix();
|
|
1922
1922
|
}
|
|
1923
|
-
|
|
1923
|
+
Ns(e, q, Vt);
|
|
1924
1924
|
}
|
|
1925
1925
|
}
|
|
1926
1926
|
o && et(() => {
|
|
@@ -1928,8 +1928,8 @@ function Ds(e, t, r, n, i) {
|
|
|
1928
1928
|
for (h of v) h.nodes?.a?.apply();
|
|
1929
1929
|
});
|
|
1930
1930
|
}
|
|
1931
|
-
function
|
|
1932
|
-
var l = s & 1 ? s & 16 ? tt(r) : /* @__PURE__ */
|
|
1931
|
+
function js(e, t, r, n, i, o, s, a) {
|
|
1932
|
+
var l = s & 1 ? s & 16 ? tt(r) : /* @__PURE__ */ Ii(r, !1, !1) : null, u = s & 2 ? tt(i) : null;
|
|
1933
1933
|
return {
|
|
1934
1934
|
v: l,
|
|
1935
1935
|
i: u,
|
|
@@ -1949,8 +1949,8 @@ function $t(e, t, r) {
|
|
|
1949
1949
|
function Pe(e, t, r) {
|
|
1950
1950
|
t === null ? e.effect.first = r : t.next = r, r === null ? e.effect.last = t : r.prev = t;
|
|
1951
1951
|
}
|
|
1952
|
-
function
|
|
1953
|
-
|
|
1952
|
+
function zs(e, t) {
|
|
1953
|
+
Mi(() => {
|
|
1954
1954
|
var r = e.getRootNode(), n = r.host ? r : r.head ?? r.ownerDocument.head;
|
|
1955
1955
|
if (!n.querySelector("#" + t.hash)) {
|
|
1956
1956
|
const i = Zr("style");
|
|
@@ -1958,9 +1958,9 @@ function js(e, t) {
|
|
|
1958
1958
|
}
|
|
1959
1959
|
});
|
|
1960
1960
|
}
|
|
1961
|
-
var
|
|
1961
|
+
var ul = [...`
|
|
1962
1962
|
\r\f \v\uFEFF`];
|
|
1963
|
-
function
|
|
1963
|
+
function jn(e, t = !1) {
|
|
1964
1964
|
var r = t ? " !important;" : ";", n = "";
|
|
1965
1965
|
for (var i of Object.keys(e)) {
|
|
1966
1966
|
var o = e[i];
|
|
@@ -1971,7 +1971,7 @@ function Vn(e, t = !1) {
|
|
|
1971
1971
|
function Er(e) {
|
|
1972
1972
|
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
1973
1973
|
}
|
|
1974
|
-
function
|
|
1974
|
+
function Ws(e, t) {
|
|
1975
1975
|
if (t) {
|
|
1976
1976
|
var r = "", n, i;
|
|
1977
1977
|
if (Array.isArray(t) ? (n = t[0], i = t[1]) : n = t, e) {
|
|
@@ -1998,7 +1998,7 @@ function zs(e, t) {
|
|
|
1998
1998
|
}
|
|
1999
1999
|
}
|
|
2000
2000
|
}
|
|
2001
|
-
return n && (r +=
|
|
2001
|
+
return n && (r += jn(n)), i && (r += jn(i, !0)), r = r.trim(), r === "" ? null : r;
|
|
2002
2002
|
}
|
|
2003
2003
|
return e == null ? null : String(e);
|
|
2004
2004
|
}
|
|
@@ -2008,79 +2008,79 @@ function Or(e, t = {}, r, n) {
|
|
|
2008
2008
|
t[i] !== o && (r[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, o, n));
|
|
2009
2009
|
}
|
|
2010
2010
|
}
|
|
2011
|
-
function
|
|
2011
|
+
function zn(e, t, r, n) {
|
|
2012
2012
|
var i = e.__style;
|
|
2013
2013
|
if (P || i !== t) {
|
|
2014
|
-
var o =
|
|
2014
|
+
var o = Ws(t, n);
|
|
2015
2015
|
(!P || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e.__style = t;
|
|
2016
2016
|
} else n && (Array.isArray(n) ? (Or(e, r?.[0], n[0]), Or(e, r?.[1], n[1], "important")) : Or(e, r, n));
|
|
2017
2017
|
return n;
|
|
2018
2018
|
}
|
|
2019
|
-
var
|
|
2020
|
-
function
|
|
2021
|
-
var i =
|
|
2022
|
-
if (P && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName ===
|
|
2019
|
+
var Bs = Symbol("is custom element"), Fs = Symbol("is html"), Hs = Io ? "link" : "LINK";
|
|
2020
|
+
function Wn(e, t, r, n) {
|
|
2021
|
+
var i = qs(e);
|
|
2022
|
+
if (P && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Hs)) {
|
|
2023
2023
|
n || void 0;
|
|
2024
2024
|
return;
|
|
2025
2025
|
}
|
|
2026
|
-
i[t] !== (i[t] = r) && (t === "loading" && (e[
|
|
2026
|
+
i[t] !== (i[t] = r) && (t === "loading" && (e[ko] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Gs(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
2027
2027
|
}
|
|
2028
|
-
function
|
|
2028
|
+
function qs(e) {
|
|
2029
2029
|
return e.__attributes ?? (e.__attributes = {
|
|
2030
|
-
[
|
|
2031
|
-
[
|
|
2030
|
+
[Bs]: e.nodeName.includes("-"),
|
|
2031
|
+
[Fs]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
2032
2032
|
});
|
|
2033
2033
|
}
|
|
2034
|
-
var
|
|
2035
|
-
function
|
|
2036
|
-
var t = e.getAttribute("is") || e.nodeName, r =
|
|
2034
|
+
var Bn = /* @__PURE__ */ new Map();
|
|
2035
|
+
function Gs(e) {
|
|
2036
|
+
var t = e.getAttribute("is") || e.nodeName, r = Bn.get(t);
|
|
2037
2037
|
if (r) return r;
|
|
2038
|
-
|
|
2038
|
+
Bn.set(t, r = []);
|
|
2039
2039
|
for (var n, i = e, o = Element.prototype; o !== i; ) {
|
|
2040
|
-
n =
|
|
2040
|
+
n = go(i);
|
|
2041
2041
|
for (var s in n) n[s].set && r.push(s);
|
|
2042
|
-
i =
|
|
2042
|
+
i = Zn(i);
|
|
2043
2043
|
}
|
|
2044
2044
|
return r;
|
|
2045
2045
|
}
|
|
2046
|
-
var
|
|
2046
|
+
var Xi, ut = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), Rr = /* @__PURE__ */ new WeakMap(), Fn = /* @__PURE__ */ new WeakSet(), Ji = class {
|
|
2047
2047
|
constructor(e) {
|
|
2048
|
-
Kr(this,
|
|
2048
|
+
Kr(this, Fn), k(this, ut, /* @__PURE__ */ new WeakMap()), k(this, fr, void 0), k(this, Rr, void 0), T(Rr, this, e);
|
|
2049
2049
|
}
|
|
2050
2050
|
observe(e, t) {
|
|
2051
2051
|
var r = c(ut, this).get(e) || /* @__PURE__ */ new Set();
|
|
2052
|
-
return r.add(t), c(ut, this).set(e, r), x(
|
|
2052
|
+
return r.add(t), c(ut, this).set(e, r), x(Fn, this, Us).call(this).observe(e, c(Rr, this)), () => {
|
|
2053
2053
|
var n = c(ut, this).get(e);
|
|
2054
2054
|
n.delete(t), n.size === 0 && (c(ut, this).delete(e), c(fr, this).unobserve(e));
|
|
2055
2055
|
};
|
|
2056
2056
|
}
|
|
2057
2057
|
};
|
|
2058
|
-
|
|
2059
|
-
function
|
|
2058
|
+
Xi = Ji;
|
|
2059
|
+
function Us() {
|
|
2060
2060
|
return c(fr, this) ?? T(fr, this, new ResizeObserver((e) => {
|
|
2061
2061
|
for (var t of e) {
|
|
2062
|
-
|
|
2062
|
+
Xi.entries.set(t.target, t);
|
|
2063
2063
|
for (var r of c(ut, this).get(t.target) || []) r(t);
|
|
2064
2064
|
}
|
|
2065
2065
|
}));
|
|
2066
2066
|
}
|
|
2067
|
-
b(
|
|
2068
|
-
function
|
|
2067
|
+
b(Ji, "entries", /* @__PURE__ */ new WeakMap());
|
|
2068
|
+
function Hn(e, t) {
|
|
2069
2069
|
return e === t || e?.[Ot] === t;
|
|
2070
2070
|
}
|
|
2071
|
-
function
|
|
2071
|
+
function qn(e = {}, t, r, n) {
|
|
2072
2072
|
var i = z.r, o = A;
|
|
2073
|
-
return
|
|
2073
|
+
return Mi(() => {
|
|
2074
2074
|
var s, a;
|
|
2075
2075
|
return rn(() => {
|
|
2076
2076
|
s = a, a = n?.() || [], ln(() => {
|
|
2077
|
-
e !== r(...a) && (t(e, ...a), s &&
|
|
2077
|
+
e !== r(...a) && (t(e, ...a), s && Hn(r(...s), e) && t(null, ...s));
|
|
2078
2078
|
});
|
|
2079
2079
|
}), () => {
|
|
2080
2080
|
let l = o;
|
|
2081
2081
|
for (; l !== i && l.parent !== null && l.parent.f & 33554432; ) l = l.parent;
|
|
2082
2082
|
const u = () => {
|
|
2083
|
-
a &&
|
|
2083
|
+
a && Hn(r(...a), e) && t(null, ...a);
|
|
2084
2084
|
}, p = l.teardown;
|
|
2085
2085
|
l.teardown = () => {
|
|
2086
2086
|
u(), p?.();
|
|
@@ -2092,11 +2092,11 @@ function Lr(e, t, r, n) {
|
|
|
2092
2092
|
var i = !pr || (r & 2) !== 0, o = (r & 8) !== 0, s = (r & 16) !== 0, a = n, l = !0, u = () => (l && (l = !1, a = s ? ln(n) : n), a);
|
|
2093
2093
|
let p;
|
|
2094
2094
|
if (o) {
|
|
2095
|
-
var v = Ot in e ||
|
|
2095
|
+
var v = Ot in e || ti in e;
|
|
2096
2096
|
p = Ye(e, t)?.set ?? (v && t in e ? ($) => e[t] = $ : void 0);
|
|
2097
2097
|
}
|
|
2098
2098
|
var f, d = !1;
|
|
2099
|
-
o ? [f, d] =
|
|
2099
|
+
o ? [f, d] = Go(() => e[t]) : f = e[t], f === void 0 && n !== void 0 && (f = u(), p && (i && xo(t), p(f)));
|
|
2100
2100
|
var g;
|
|
2101
2101
|
if (i ? g = () => {
|
|
2102
2102
|
var $ = e[t];
|
|
@@ -2122,14 +2122,14 @@ function Lr(e, t, r, n) {
|
|
|
2122
2122
|
return ze && h || M.f & 16384 ? y.v : _(y);
|
|
2123
2123
|
};
|
|
2124
2124
|
}
|
|
2125
|
-
function
|
|
2126
|
-
return new
|
|
2125
|
+
function Ks(e) {
|
|
2126
|
+
return new Ys(e);
|
|
2127
2127
|
}
|
|
2128
|
-
var He = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(),
|
|
2128
|
+
var He = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), Ys = class {
|
|
2129
2129
|
constructor(e) {
|
|
2130
2130
|
k(this, He, void 0), k(this, ve, void 0);
|
|
2131
2131
|
var t = /* @__PURE__ */ new Map(), r = (i, o) => {
|
|
2132
|
-
var s = /* @__PURE__ */
|
|
2132
|
+
var s = /* @__PURE__ */ Ii(o, !1, !1);
|
|
2133
2133
|
return t.set(i, s), s;
|
|
2134
2134
|
};
|
|
2135
2135
|
const n = new Proxy({
|
|
@@ -2140,13 +2140,13 @@ var He = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), Ks =
|
|
|
2140
2140
|
return _(t.get(o) ?? r(o, Reflect.get(i, o)));
|
|
2141
2141
|
},
|
|
2142
2142
|
has(i, o) {
|
|
2143
|
-
return o ===
|
|
2143
|
+
return o === ti ? !0 : (_(t.get(o) ?? r(o, Reflect.get(i, o))), Reflect.has(i, o));
|
|
2144
2144
|
},
|
|
2145
2145
|
set(i, o, s) {
|
|
2146
2146
|
return E(t.get(o) ?? r(o, s), s), Reflect.set(i, o, s);
|
|
2147
2147
|
}
|
|
2148
2148
|
});
|
|
2149
|
-
T(ve, this, (e.hydrate ?
|
|
2149
|
+
T(ve, this, (e.hydrate ? Ps : Ki)(e.component, {
|
|
2150
2150
|
target: e.target,
|
|
2151
2151
|
anchor: e.anchor,
|
|
2152
2152
|
props: n,
|
|
@@ -2168,7 +2168,7 @@ var He = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), Ks =
|
|
|
2168
2168
|
c(ve, this).$set = (i) => {
|
|
2169
2169
|
Object.assign(n, i);
|
|
2170
2170
|
}, c(ve, this).$destroy = () => {
|
|
2171
|
-
|
|
2171
|
+
Cs(c(ve, this));
|
|
2172
2172
|
};
|
|
2173
2173
|
}
|
|
2174
2174
|
$set(e) {
|
|
@@ -2184,8 +2184,8 @@ var He = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), Ks =
|
|
|
2184
2184
|
$destroy() {
|
|
2185
2185
|
c(ve, this).$destroy();
|
|
2186
2186
|
}
|
|
2187
|
-
},
|
|
2188
|
-
typeof HTMLElement == "function" && (
|
|
2187
|
+
}, Qi;
|
|
2188
|
+
typeof HTMLElement == "function" && (Qi = class extends HTMLElement {
|
|
2189
2189
|
constructor(e, t, r) {
|
|
2190
2190
|
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));
|
|
2191
2191
|
}
|
|
@@ -2211,14 +2211,14 @@ typeof HTMLElement == "function" && (Ji = class extends HTMLElement {
|
|
|
2211
2211
|
};
|
|
2212
2212
|
};
|
|
2213
2213
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2214
|
-
const t = {}, r =
|
|
2214
|
+
const t = {}, r = Xs(this);
|
|
2215
2215
|
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));
|
|
2216
2216
|
for (const n of this.attributes) {
|
|
2217
2217
|
const i = this.$$g_p(n.name);
|
|
2218
2218
|
i in this.$$d || (this.$$d[i] = rr(i, n.value, this.$$p_d, "toProp"));
|
|
2219
2219
|
}
|
|
2220
2220
|
for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2221
|
-
this.$$c =
|
|
2221
|
+
this.$$c = Ks({
|
|
2222
2222
|
component: this.$$ctor,
|
|
2223
2223
|
target: this.$$shadowRoot || this,
|
|
2224
2224
|
props: {
|
|
@@ -2226,7 +2226,7 @@ typeof HTMLElement == "function" && (Ji = class extends HTMLElement {
|
|
|
2226
2226
|
$$slots: t,
|
|
2227
2227
|
$$host: this
|
|
2228
2228
|
}
|
|
2229
|
-
}), this.$$me =
|
|
2229
|
+
}), this.$$me = gs(() => {
|
|
2230
2230
|
rn(() => {
|
|
2231
2231
|
this.$$r = !0;
|
|
2232
2232
|
for (const n of ir(this.$$c)) {
|
|
@@ -2283,14 +2283,14 @@ function rr(e, t, r, n) {
|
|
|
2283
2283
|
return t;
|
|
2284
2284
|
}
|
|
2285
2285
|
}
|
|
2286
|
-
function
|
|
2286
|
+
function Xs(e) {
|
|
2287
2287
|
const t = {};
|
|
2288
2288
|
return e.childNodes.forEach((r) => {
|
|
2289
2289
|
t[r.slot || "default"] = !0;
|
|
2290
2290
|
}), t;
|
|
2291
2291
|
}
|
|
2292
|
-
function
|
|
2293
|
-
let s = class extends
|
|
2292
|
+
function Js(e, t, r, n, i, o) {
|
|
2293
|
+
let s = class extends Qi {
|
|
2294
2294
|
constructor() {
|
|
2295
2295
|
super(e, r, i), this.$$p_d = t;
|
|
2296
2296
|
}
|
|
@@ -2315,14 +2315,14 @@ function Xs(e, t, r, n, i, o) {
|
|
|
2315
2315
|
} });
|
|
2316
2316
|
}), o && (s = o(s)), e.element = s, s;
|
|
2317
2317
|
}
|
|
2318
|
-
var
|
|
2318
|
+
var Qs = class extends Event {
|
|
2319
2319
|
constructor(e, t, r, n) {
|
|
2320
2320
|
super("context-request", {
|
|
2321
2321
|
bubbles: !0,
|
|
2322
2322
|
composed: !0
|
|
2323
2323
|
}), 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;
|
|
2324
2324
|
}
|
|
2325
|
-
},
|
|
2325
|
+
}, Zs = class {
|
|
2326
2326
|
constructor(e, t) {
|
|
2327
2327
|
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) => {
|
|
2328
2328
|
n !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = n), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = r, this.onValue?.(r);
|
|
@@ -2338,12 +2338,12 @@ var Js = class extends Event {
|
|
|
2338
2338
|
return this.currentValue;
|
|
2339
2339
|
}
|
|
2340
2340
|
requestValue() {
|
|
2341
|
-
this.host.dispatchEvent(new
|
|
2341
|
+
this.host.dispatchEvent(new Qs(this.context, this.host, this.handleValue, this.subscribe));
|
|
2342
2342
|
}
|
|
2343
|
-
}, _r = (e) => e,
|
|
2344
|
-
function
|
|
2343
|
+
}, _r = (e) => e, fl = _r(Symbol.for("pie.assessmentToolkit.runtimeContext")), dl = _r(Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), ea = _r(Symbol.for("pie.assessmentToolkit.shellContext")), ta = _r(Symbol.for("pie.assessmentToolkit.regionScopeContext"));
|
|
2344
|
+
function Zi(e, t, r) {
|
|
2345
2345
|
let n = !1;
|
|
2346
|
-
const i = new
|
|
2346
|
+
const i = new Zs(e, {
|
|
2347
2347
|
context: t,
|
|
2348
2348
|
subscribe: !0,
|
|
2349
2349
|
onValue: (u) => {
|
|
@@ -2367,42 +2367,42 @@ function Qi(e, t, r) {
|
|
|
2367
2367
|
globalThis.clearInterval(l), e.removeEventListener("context-provider", o), i.disconnect();
|
|
2368
2368
|
};
|
|
2369
2369
|
}
|
|
2370
|
-
function ta(e, t) {
|
|
2371
|
-
return Qi(e, Zs, t);
|
|
2372
|
-
}
|
|
2373
2370
|
function ra(e, t) {
|
|
2374
|
-
return
|
|
2371
|
+
return Zi(e, ea, t);
|
|
2375
2372
|
}
|
|
2376
|
-
|
|
2373
|
+
function na(e, t) {
|
|
2374
|
+
return Zi(e, ta, t);
|
|
2375
|
+
}
|
|
2376
|
+
var Gn;
|
|
2377
2377
|
(function(e) {
|
|
2378
2378
|
e.TTS_WORD = "tts-word", e.TTS_SENTENCE = "tts-sentence", e.ANNOTATION = "annotation";
|
|
2379
|
-
})(
|
|
2379
|
+
})(Gn || (Gn = {}));
|
|
2380
2380
|
var xe;
|
|
2381
2381
|
(function(e) {
|
|
2382
2382
|
e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange", e.UNDERLINE = "underline";
|
|
2383
2383
|
})(xe || (xe = {}));
|
|
2384
|
-
function
|
|
2384
|
+
function eo(e) {
|
|
2385
2385
|
return (...t) => {
|
|
2386
2386
|
console.debug(`[${e}]`, ...t);
|
|
2387
2387
|
};
|
|
2388
2388
|
}
|
|
2389
|
-
var
|
|
2389
|
+
var hl = eo("I18nService"), Pr = {
|
|
2390
2390
|
assessment: [],
|
|
2391
2391
|
section: [],
|
|
2392
2392
|
item: [],
|
|
2393
2393
|
passage: [],
|
|
2394
2394
|
rubric: [],
|
|
2395
2395
|
element: []
|
|
2396
|
-
},
|
|
2396
|
+
}, vl = {
|
|
2397
2397
|
section: [...Pr.section],
|
|
2398
2398
|
item: [...Pr.item],
|
|
2399
2399
|
passage: [...Pr.passage]
|
|
2400
2400
|
};
|
|
2401
|
-
function
|
|
2401
|
+
function ia(e) {
|
|
2402
2402
|
const t = e.trim();
|
|
2403
2403
|
return t || "";
|
|
2404
2404
|
}
|
|
2405
|
-
var
|
|
2405
|
+
var oa = [
|
|
2406
2406
|
"assessment",
|
|
2407
2407
|
"section",
|
|
2408
2408
|
"item",
|
|
@@ -2413,10 +2413,10 @@ var ia = [
|
|
|
2413
2413
|
function nr(e, t) {
|
|
2414
2414
|
if (typeof e != "string" || e.trim().length === 0) throw new Error(`Invalid tool registration: "${t}" must be a non-empty string.`);
|
|
2415
2415
|
}
|
|
2416
|
-
function
|
|
2416
|
+
function Un(e) {
|
|
2417
2417
|
if (nr(e.toolId, "toolId"), nr(e.name, "name"), nr(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.`);
|
|
2418
2418
|
if (!Array.isArray(e.supportedLevels) || e.supportedLevels.length === 0) throw new Error(`Invalid tool registration "${e.toolId}": "supportedLevels" must be a non-empty array.`);
|
|
2419
|
-
const t = e.supportedLevels.find((r) => !
|
|
2419
|
+
const t = e.supportedLevels.find((r) => !oa.includes(r));
|
|
2420
2420
|
if (t) throw new Error(`Invalid tool registration "${e.toolId}": unsupported level "${t}".`);
|
|
2421
2421
|
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)}".`);
|
|
2422
2422
|
if (e.singletonScope !== void 0 && e.singletonScope !== "section") throw new Error(`Invalid tool registration "${e.toolId}": unsupported singletonScope "${String(e.singletonScope)}".`);
|
|
@@ -2425,23 +2425,23 @@ function Gn(e) {
|
|
|
2425
2425
|
if (typeof e.isVisibleInContext != "function") throw new Error(`Invalid tool registration "${e.toolId}": "isVisibleInContext" must be a function.`);
|
|
2426
2426
|
if (typeof e.renderToolbar != "function") throw new Error(`Invalid tool registration "${e.toolId}": "renderToolbar" must be a function.`);
|
|
2427
2427
|
}
|
|
2428
|
-
var
|
|
2428
|
+
var sa = class {
|
|
2429
2429
|
constructor() {
|
|
2430
2430
|
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());
|
|
2431
2431
|
}
|
|
2432
2432
|
normalizeToolId(e) {
|
|
2433
|
-
return
|
|
2433
|
+
return ia(e);
|
|
2434
2434
|
}
|
|
2435
2435
|
normalizeToolIds(e) {
|
|
2436
2436
|
return e.map((t) => this.normalizeToolId(t));
|
|
2437
2437
|
}
|
|
2438
2438
|
register(e) {
|
|
2439
|
-
if (
|
|
2439
|
+
if (Un(e), this.tools.has(e.toolId)) throw new Error(`Tool '${e.toolId}' is already registered`);
|
|
2440
2440
|
if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const t of e.pnpSupportIds)
|
|
2441
2441
|
this.pnpIndex.has(t) || this.pnpIndex.set(t, /* @__PURE__ */ new Set()), this.pnpIndex.get(t).add(e.toolId);
|
|
2442
2442
|
}
|
|
2443
2443
|
override(e) {
|
|
2444
|
-
if (
|
|
2444
|
+
if (Un(e), !this.tools.has(e.toolId)) throw new Error(`Cannot override non-existent tool '${e.toolId}'`);
|
|
2445
2445
|
const t = this.tools.get(e.toolId);
|
|
2446
2446
|
if (t.pnpSupportIds) for (const r of t.pnpSupportIds) this.pnpIndex.get(r)?.delete(e.toolId);
|
|
2447
2447
|
if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const r of e.pnpSupportIds)
|
|
@@ -2568,20 +2568,20 @@ var oa = class {
|
|
|
2568
2568
|
return n.renderToolbar(t, i);
|
|
2569
2569
|
}
|
|
2570
2570
|
};
|
|
2571
|
-
function
|
|
2571
|
+
function to(e) {
|
|
2572
2572
|
return e.level === "item";
|
|
2573
2573
|
}
|
|
2574
|
-
function
|
|
2574
|
+
function aa(e) {
|
|
2575
2575
|
return e.level === "passage";
|
|
2576
2576
|
}
|
|
2577
|
-
function
|
|
2577
|
+
function la(e) {
|
|
2578
2578
|
return e.level === "rubric";
|
|
2579
2579
|
}
|
|
2580
|
-
function
|
|
2580
|
+
function ro(e) {
|
|
2581
2581
|
return e.level === "element";
|
|
2582
2582
|
}
|
|
2583
2583
|
function cn(e) {
|
|
2584
|
-
if (
|
|
2584
|
+
if (ro(e)) {
|
|
2585
2585
|
const t = e.item.config;
|
|
2586
2586
|
if (!t) return "";
|
|
2587
2587
|
const r = [], n = (a) => a.replace(/<[^>]*>/g, " ").trim(), i = t.elements?.[e.elementId];
|
|
@@ -2596,7 +2596,7 @@ function cn(e) {
|
|
|
2596
2596
|
}
|
|
2597
2597
|
return r.filter(Boolean).join(" ").trim();
|
|
2598
2598
|
}
|
|
2599
|
-
if (
|
|
2599
|
+
if (to(e)) {
|
|
2600
2600
|
const t = e.item;
|
|
2601
2601
|
if (!t?.config) return "";
|
|
2602
2602
|
const r = t.config, n = [], i = (l) => l.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2615,7 +2615,7 @@ function cn(e) {
|
|
|
2615
2615
|
}
|
|
2616
2616
|
return n.filter(Boolean).join(" ").trim();
|
|
2617
2617
|
}
|
|
2618
|
-
if (
|
|
2618
|
+
if (aa(e)) {
|
|
2619
2619
|
const t = e.passage;
|
|
2620
2620
|
if (!t?.config) return "";
|
|
2621
2621
|
const r = t.config, n = [], i = (l) => l.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2634,7 +2634,7 @@ function cn(e) {
|
|
|
2634
2634
|
}
|
|
2635
2635
|
return n.filter(Boolean).join(" ").trim();
|
|
2636
2636
|
}
|
|
2637
|
-
if (
|
|
2637
|
+
if (la(e)) {
|
|
2638
2638
|
const t = e.rubricBlock;
|
|
2639
2639
|
return t.passage?.config ? (t.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (t.content || "").replace(/<[^>]*>/g, " ").trim();
|
|
2640
2640
|
}
|
|
@@ -2651,7 +2651,7 @@ function mr(e) {
|
|
|
2651
2651
|
/\d+\s*[+\-*/=]\s*\d+/
|
|
2652
2652
|
].some((r) => r.test(t));
|
|
2653
2653
|
}
|
|
2654
|
-
function
|
|
2654
|
+
function ca(e) {
|
|
2655
2655
|
const t = [
|
|
2656
2656
|
"pie-multiple-choice",
|
|
2657
2657
|
"pie-inline-choice",
|
|
@@ -2660,7 +2660,7 @@ function la(e) {
|
|
|
2660
2660
|
"inline-choice",
|
|
2661
2661
|
"select-text"
|
|
2662
2662
|
];
|
|
2663
|
-
if (
|
|
2663
|
+
if (ro(e)) {
|
|
2664
2664
|
const r = e.item.config;
|
|
2665
2665
|
if (!r?.models) return !1;
|
|
2666
2666
|
const n = (Array.isArray(r.models) ? r.models : Object.values(r.models)).find((o) => o && typeof o == "object" && o.id === e.elementId);
|
|
@@ -2668,7 +2668,7 @@ function la(e) {
|
|
|
2668
2668
|
const i = n.element || "";
|
|
2669
2669
|
return t.includes(i);
|
|
2670
2670
|
}
|
|
2671
|
-
if (
|
|
2671
|
+
if (to(e)) {
|
|
2672
2672
|
const r = e.item.config?.models;
|
|
2673
2673
|
return (Array.isArray(r) ? r : r && typeof r == "object" ? Object.values(r) : []).some((n) => {
|
|
2674
2674
|
if (!n || typeof n != "object") return !1;
|
|
@@ -2681,7 +2681,7 @@ function la(e) {
|
|
|
2681
2681
|
function br(e) {
|
|
2682
2682
|
return cn(e).trim().length >= 10;
|
|
2683
2683
|
}
|
|
2684
|
-
function
|
|
2684
|
+
function ua(e) {
|
|
2685
2685
|
const t = cn(e);
|
|
2686
2686
|
return [
|
|
2687
2687
|
/chemistry|chemical|element|atom|molecule|compound/i,
|
|
@@ -2692,23 +2692,23 @@ function ca(e) {
|
|
|
2692
2692
|
/physics|force|energy|velocity|acceleration/i
|
|
2693
2693
|
].some((r) => r.test(t));
|
|
2694
2694
|
}
|
|
2695
|
-
var
|
|
2695
|
+
var fa = [
|
|
2696
2696
|
"assessment",
|
|
2697
2697
|
"section",
|
|
2698
2698
|
"item",
|
|
2699
2699
|
"passage",
|
|
2700
2700
|
"rubric"
|
|
2701
|
-
],
|
|
2702
|
-
function
|
|
2703
|
-
return
|
|
2701
|
+
], da = new Set(fa);
|
|
2702
|
+
function ha(e) {
|
|
2703
|
+
return da.has(e);
|
|
2704
2704
|
}
|
|
2705
2705
|
function un(e, t, r) {
|
|
2706
2706
|
const n = e.trim(), i = r.trim();
|
|
2707
2707
|
if (!n || !i) throw new Error("Tool instance ids require non-empty tool and scope ids");
|
|
2708
|
-
if (!
|
|
2708
|
+
if (!ha(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
|
|
2709
2709
|
return `${n}:${t}:${i}`;
|
|
2710
2710
|
}
|
|
2711
|
-
var
|
|
2711
|
+
var va = class {
|
|
2712
2712
|
constructor() {
|
|
2713
2713
|
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);
|
|
2714
2714
|
}
|
|
@@ -2783,7 +2783,7 @@ var ha = class {
|
|
|
2783
2783
|
destroy() {
|
|
2784
2784
|
this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
|
|
2785
2785
|
}
|
|
2786
|
-
},
|
|
2786
|
+
}, pa = (e, t) => {
|
|
2787
2787
|
const r = t?.useSentenceSegmenter !== !1;
|
|
2788
2788
|
try {
|
|
2789
2789
|
if (!r) throw new Error("Segmenter disabled by policy");
|
|
@@ -2810,14 +2810,14 @@ var ha = class {
|
|
|
2810
2810
|
text: e,
|
|
2811
2811
|
offset: 0
|
|
2812
2812
|
}];
|
|
2813
|
-
},
|
|
2813
|
+
}, ga = class {
|
|
2814
2814
|
constructor() {
|
|
2815
2815
|
b(this, "providerId", "browser"), b(this, "providerName", "Browser Speech Synthesis"), b(this, "version", "1.0.0");
|
|
2816
2816
|
}
|
|
2817
2817
|
async initialize(e) {
|
|
2818
2818
|
if (typeof window > "u") throw new Error("BrowserTTSProvider requires browser environment");
|
|
2819
2819
|
if (!("speechSynthesis" in window)) throw new Error("Browser does not support Speech Synthesis API");
|
|
2820
|
-
return new
|
|
2820
|
+
return new _a(e);
|
|
2821
2821
|
}
|
|
2822
2822
|
supportsFeature(e) {
|
|
2823
2823
|
return !0;
|
|
@@ -2834,7 +2834,7 @@ var ha = class {
|
|
|
2834
2834
|
}
|
|
2835
2835
|
destroy() {
|
|
2836
2836
|
}
|
|
2837
|
-
},
|
|
2837
|
+
}, _a = class {
|
|
2838
2838
|
constructor(e) {
|
|
2839
2839
|
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;
|
|
2840
2840
|
}
|
|
@@ -2904,7 +2904,7 @@ var ha = class {
|
|
|
2904
2904
|
}
|
|
2905
2905
|
segmentSentences(e) {
|
|
2906
2906
|
const t = this.getSegmentationPolicy();
|
|
2907
|
-
return
|
|
2907
|
+
return pa(e, {
|
|
2908
2908
|
locale: t.locale,
|
|
2909
2909
|
useSentenceSegmenter: t.useSentenceSegmenter
|
|
2910
2910
|
});
|
|
@@ -2973,7 +2973,7 @@ var ha = class {
|
|
|
2973
2973
|
...e.providerOptions || {}
|
|
2974
2974
|
});
|
|
2975
2975
|
}
|
|
2976
|
-
},
|
|
2976
|
+
}, ma = class {
|
|
2977
2977
|
async emitTelemetry(e, t) {
|
|
2978
2978
|
try {
|
|
2979
2979
|
await this.config?.onTelemetry?.(e, t);
|
|
@@ -3005,7 +3005,7 @@ var ha = class {
|
|
|
3005
3005
|
}
|
|
3006
3006
|
async _initializeBrowserTTS(e) {
|
|
3007
3007
|
if (typeof window > "u" || !("speechSynthesis" in window)) throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
|
|
3008
|
-
this.ttsProvider = new
|
|
3008
|
+
this.ttsProvider = new ga(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
|
|
3009
3009
|
}
|
|
3010
3010
|
async _initializeServerTTS(e) {
|
|
3011
3011
|
if (!e.apiEndpoint) throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
|
|
@@ -3016,7 +3016,7 @@ var ha = class {
|
|
|
3016
3016
|
backend: e.serverProvider || e.backend
|
|
3017
3017
|
}), this.ttsProvider = new (await (async () => {
|
|
3018
3018
|
try {
|
|
3019
|
-
const r = await import("./dist-
|
|
3019
|
+
const r = await import("./dist-Bud4G4lv.js");
|
|
3020
3020
|
return await this.emitTelemetry("pie-tool-library-load-success", {
|
|
3021
3021
|
toolId: "tts",
|
|
3022
3022
|
operation: "server-provider-module-import",
|
|
@@ -3061,7 +3061,7 @@ var ha = class {
|
|
|
3061
3061
|
destroy() {
|
|
3062
3062
|
this.ttsProvider && (this.ttsProvider.destroy(), this.ttsProvider = null), this.config = null, console.log("[TTSToolProvider] Destroyed");
|
|
3063
3063
|
}
|
|
3064
|
-
},
|
|
3064
|
+
}, ba = /* @__PURE__ */ new Set([
|
|
3065
3065
|
"annotation-xml",
|
|
3066
3066
|
"color-profile",
|
|
3067
3067
|
"font-face",
|
|
@@ -3070,16 +3070,16 @@ var ha = class {
|
|
|
3070
3070
|
"font-face-format",
|
|
3071
3071
|
"font-face-name",
|
|
3072
3072
|
"missing-glyph"
|
|
3073
|
-
]),
|
|
3073
|
+
]), ya = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, wa = (e, t = "custom element tag") => {
|
|
3074
3074
|
if (!e || typeof e != "string") throw new Error(`Invalid ${t}: expected a non-empty string`);
|
|
3075
3075
|
const r = e.trim();
|
|
3076
3076
|
if (!r) throw new Error(`Invalid ${t}: tag is empty`);
|
|
3077
3077
|
if (r !== r.toLowerCase()) throw new Error(`Invalid ${t} "${r}": custom element names must be lowercase`);
|
|
3078
3078
|
if (!r.includes("-")) throw new Error(`Invalid ${t} "${r}": custom element names must include a hyphen`);
|
|
3079
|
-
if (
|
|
3080
|
-
if (!
|
|
3079
|
+
if (ba.has(r)) throw new Error(`Invalid ${t} "${r}": this name is reserved by the HTML spec`);
|
|
3080
|
+
if (!ya.test(r)) throw new Error(`Invalid ${t} "${r}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
|
|
3081
3081
|
return r;
|
|
3082
|
-
},
|
|
3082
|
+
}, no = {
|
|
3083
3083
|
calculator: "pie-tool-calculator",
|
|
3084
3084
|
textToSpeech: "pie-tool-text-to-speech",
|
|
3085
3085
|
ruler: "pie-tool-ruler",
|
|
@@ -3092,22 +3092,22 @@ var ha = class {
|
|
|
3092
3092
|
annotationToolbar: "pie-tool-annotation-toolbar",
|
|
3093
3093
|
graph: "pie-tool-graph",
|
|
3094
3094
|
periodicTable: "pie-tool-periodic-table"
|
|
3095
|
-
},
|
|
3096
|
-
const i =
|
|
3095
|
+
}, Ta = (e, t) => wa(t?.toolTagMap?.[e] ?? no[e] ?? e, `tool component tag for "${e}"`), Sa = (e) => document.createElement(e), we = (e, t, r, n) => {
|
|
3096
|
+
const i = Ta(e, n), o = n?.toolComponentFactories?.[e] ?? n?.toolComponentFactory;
|
|
3097
3097
|
return o ? o({
|
|
3098
3098
|
toolId: e,
|
|
3099
3099
|
tagName: i,
|
|
3100
3100
|
context: t,
|
|
3101
3101
|
toolbarContext: r
|
|
3102
|
-
}) :
|
|
3103
|
-
},
|
|
3102
|
+
}) : Sa(i);
|
|
3103
|
+
}, ka = {
|
|
3104
3104
|
toolId: "calculator",
|
|
3105
3105
|
name: "Calculator",
|
|
3106
3106
|
description: "Multi-type calculator (basic, scientific, graphing)",
|
|
3107
3107
|
icon: "calculator",
|
|
3108
3108
|
provider: {
|
|
3109
3109
|
getProviderId: (e) => typeof e?.provider?.id == "string" && e.provider.id.length > 0 ? e.provider.id : "calculator-desmos",
|
|
3110
|
-
createProvider: () => new
|
|
3110
|
+
createProvider: () => new va(),
|
|
3111
3111
|
getInitConfig: (e) => e?.provider?.init ?? {},
|
|
3112
3112
|
getAuthFetcher: (e) => {
|
|
3113
3113
|
const t = e?.provider?.runtime?.authFetcher;
|
|
@@ -3173,9 +3173,9 @@ var ha = class {
|
|
|
3173
3173
|
}
|
|
3174
3174
|
};
|
|
3175
3175
|
}
|
|
3176
|
-
},
|
|
3176
|
+
}, Kn = (e) => e && typeof e == "object" ? e : {}, Aa = (e) => e === "polly" || e === "google" || e === "server", Q = (e, t) => e === void 0 ? t : e, Ia = (e) => {
|
|
3177
3177
|
const t = e.backend || "browser";
|
|
3178
|
-
if (!
|
|
3178
|
+
if (!Aa(t)) return e;
|
|
3179
3179
|
const r = {
|
|
3180
3180
|
...e,
|
|
3181
3181
|
apiEndpoint: Q(e.apiEndpoint, "/api/tts"),
|
|
@@ -3197,13 +3197,13 @@ var ha = class {
|
|
|
3197
3197
|
defaultVoice: Q(r.defaultVoice, "en-US-Wavenet-A")
|
|
3198
3198
|
} : r;
|
|
3199
3199
|
}, Cr = (e) => {
|
|
3200
|
-
const t =
|
|
3201
|
-
return
|
|
3200
|
+
const t = Kn(e), r = Kn(e?.settings);
|
|
3201
|
+
return Ia({
|
|
3202
3202
|
...t,
|
|
3203
3203
|
...r
|
|
3204
3204
|
});
|
|
3205
|
-
}, Fr = (e) => e.backend || "browser",
|
|
3206
|
-
const t = Fr(e), r =
|
|
3205
|
+
}, Fr = (e) => e.backend || "browser", io = (e, t) => e.serverProvider || e.provider || (t === "polly" || t === "google" ? t : void 0), oo = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), $a = (e) => {
|
|
3206
|
+
const t = Fr(e), r = io(e, t), n = oo(e, r);
|
|
3207
3207
|
return {
|
|
3208
3208
|
voice: e.defaultVoice,
|
|
3209
3209
|
rate: e.rate,
|
|
@@ -3227,30 +3227,30 @@ var ha = class {
|
|
|
3227
3227
|
includeAuthOnAssetFetch: e.includeAuthOnAssetFetch,
|
|
3228
3228
|
validateEndpoint: e.validateEndpoint
|
|
3229
3229
|
};
|
|
3230
|
-
}, It = /* @__PURE__ */ new Map(),
|
|
3231
|
-
if (!Array.isArray(e)) return [...
|
|
3230
|
+
}, It = /* @__PURE__ */ new Map(), Ea = "__pieToolElementUnmount", Yn = Object.freeze([1.5, 2]), Oa = (e) => {
|
|
3231
|
+
if (!Array.isArray(e)) return [...Yn];
|
|
3232
3232
|
const t = /* @__PURE__ */ new Set();
|
|
3233
3233
|
for (const r of e) {
|
|
3234
3234
|
if (typeof r != "number" || !Number.isFinite(r) || r <= 0) continue;
|
|
3235
3235
|
const n = Math.round(r * 100) / 100;
|
|
3236
3236
|
n !== 1 && t.add(n);
|
|
3237
3237
|
}
|
|
3238
|
-
return t.size ? Array.from(t) : [...
|
|
3239
|
-
},
|
|
3238
|
+
return t.size ? Array.from(t) : [...Yn];
|
|
3239
|
+
}, Ra = {
|
|
3240
3240
|
toolId: "textToSpeech",
|
|
3241
3241
|
name: "Text to Speech",
|
|
3242
3242
|
description: "Read content aloud",
|
|
3243
3243
|
icon: "volume-up",
|
|
3244
3244
|
provider: {
|
|
3245
3245
|
getProviderId: () => "tts",
|
|
3246
|
-
createProvider: (e) => new
|
|
3246
|
+
createProvider: (e) => new ma(Fr(Cr(e))),
|
|
3247
3247
|
getInitConfig: (e) => {
|
|
3248
|
-
const t = Cr(e), r = Fr(t), n =
|
|
3248
|
+
const t = Cr(e), r = Fr(t), n = io(t, r);
|
|
3249
3249
|
return {
|
|
3250
3250
|
backend: r,
|
|
3251
3251
|
serverProvider: n,
|
|
3252
|
-
transportMode:
|
|
3253
|
-
|
|
3252
|
+
transportMode: oo(t, n),
|
|
3253
|
+
...$a(t)
|
|
3254
3254
|
};
|
|
3255
3255
|
},
|
|
3256
3256
|
getAuthFetcher: (e) => {
|
|
@@ -3275,12 +3275,12 @@ var ha = class {
|
|
|
3275
3275
|
return br(e);
|
|
3276
3276
|
},
|
|
3277
3277
|
renderToolbar(e, t) {
|
|
3278
|
-
const r = () =>
|
|
3278
|
+
const r = () => Oa(Cr(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0).speedOptions), n = un(this.toolId, t.scope.level, t.scope.scopeId), i = () => {
|
|
3279
3279
|
const s = t.ui?.size;
|
|
3280
3280
|
return s === "sm" || s === "lg" ? s : "md";
|
|
3281
3281
|
}, o = () => {
|
|
3282
3282
|
let s = It.get(n);
|
|
3283
|
-
return s && typeof s.isConnected == "boolean" && !s.isConnected && (It.delete(n), s = void 0), s || (s = document.createElement("pie-tool-tts-inline"), s[
|
|
3283
|
+
return s && typeof s.isConnected == "boolean" && !s.isConnected && (It.delete(n), s = void 0), s || (s = document.createElement("pie-tool-tts-inline"), s[Ea] = () => {
|
|
3284
3284
|
It.get(n) === s && It.delete(n);
|
|
3285
3285
|
}, It.set(n, s)), s.setAttribute("tool-id", n), s.setAttribute("catalog-id", t.catalogId || t.itemId), s.setAttribute("language", t.language || "en-US"), s.setAttribute("size", i()), s.speedOptions = r(), s;
|
|
3286
3286
|
};
|
|
@@ -3313,7 +3313,10 @@ function Oe(e) {
|
|
|
3313
3313
|
const t = e.isActive();
|
|
3314
3314
|
e.button.active = t, e.overlay.visible = t, e.onActiveChange?.(t);
|
|
3315
3315
|
}
|
|
3316
|
-
|
|
3316
|
+
function fn(e, t) {
|
|
3317
|
+
e.setAttribute("data-pie-tool-surface", t);
|
|
3318
|
+
}
|
|
3319
|
+
var La = {
|
|
3317
3320
|
toolId: "ruler",
|
|
3318
3321
|
name: "Ruler",
|
|
3319
3322
|
description: "On-screen ruler for measurements",
|
|
@@ -3334,7 +3337,7 @@ var Ra = {
|
|
|
3334
3337
|
onClick: () => t.toggleTool(this.toolId),
|
|
3335
3338
|
active: r.isActive()
|
|
3336
3339
|
}, i = t.componentOverrides ?? {}, o = we(this.toolId, e, t, i);
|
|
3337
|
-
return o.setAttribute("tool-id", r.fullToolId), {
|
|
3340
|
+
return o.setAttribute("tool-id", r.fullToolId), fn(o, "frameless"), {
|
|
3338
3341
|
toolId: this.toolId,
|
|
3339
3342
|
button: n,
|
|
3340
3343
|
elements: [{
|
|
@@ -3351,7 +3354,7 @@ var Ra = {
|
|
|
3351
3354
|
subscribeActive: r.subscribeActive
|
|
3352
3355
|
};
|
|
3353
3356
|
}
|
|
3354
|
-
},
|
|
3357
|
+
}, Pa = {
|
|
3355
3358
|
toolId: "protractor",
|
|
3356
3359
|
name: "Protractor",
|
|
3357
3360
|
description: "On-screen protractor for angle measurements",
|
|
@@ -3372,7 +3375,7 @@ var Ra = {
|
|
|
3372
3375
|
onClick: () => t.toggleTool(this.toolId),
|
|
3373
3376
|
active: r.isActive()
|
|
3374
3377
|
}, i = t.componentOverrides ?? {}, o = we(this.toolId, e, t, i);
|
|
3375
|
-
return o.setAttribute("tool-id", r.fullToolId), {
|
|
3378
|
+
return o.setAttribute("tool-id", r.fullToolId), fn(o, "frameless"), {
|
|
3376
3379
|
toolId: this.toolId,
|
|
3377
3380
|
button: n,
|
|
3378
3381
|
elements: [{
|
|
@@ -3389,7 +3392,7 @@ var Ra = {
|
|
|
3389
3392
|
subscribeActive: r.subscribeActive
|
|
3390
3393
|
};
|
|
3391
3394
|
}
|
|
3392
|
-
},
|
|
3395
|
+
}, Ca = {
|
|
3393
3396
|
toolId: "answerEliminator",
|
|
3394
3397
|
name: "Answer Eliminator",
|
|
3395
3398
|
description: "Strike through answer choices",
|
|
@@ -3402,7 +3405,7 @@ var Ra = {
|
|
|
3402
3405
|
"choiceMasking"
|
|
3403
3406
|
],
|
|
3404
3407
|
isVisibleInContext(e) {
|
|
3405
|
-
return
|
|
3408
|
+
return ca(e);
|
|
3406
3409
|
},
|
|
3407
3410
|
renderToolbar(e, t) {
|
|
3408
3411
|
const r = Ee(this.toolId, t), n = t.componentOverrides ?? {}, i = we(this.toolId, e, t, n);
|
|
@@ -3436,7 +3439,7 @@ var Ra = {
|
|
|
3436
3439
|
subscribeActive: r.subscribeActive
|
|
3437
3440
|
};
|
|
3438
3441
|
}
|
|
3439
|
-
},
|
|
3442
|
+
}, xa = {
|
|
3440
3443
|
toolId: "highlighter",
|
|
3441
3444
|
name: "Highlighter",
|
|
3442
3445
|
description: "Highlight text",
|
|
@@ -3487,7 +3490,7 @@ var Ra = {
|
|
|
3487
3490
|
subscribeActive: r.subscribeActive
|
|
3488
3491
|
};
|
|
3489
3492
|
}
|
|
3490
|
-
},
|
|
3493
|
+
}, Ma = {
|
|
3491
3494
|
toolId: "lineReader",
|
|
3492
3495
|
name: "Line Reader",
|
|
3493
3496
|
description: "Reading guide overlay",
|
|
@@ -3518,7 +3521,7 @@ var Ra = {
|
|
|
3518
3521
|
onClick: () => t.toggleTool(this.toolId),
|
|
3519
3522
|
active: r.isActive()
|
|
3520
3523
|
}, i = t.componentOverrides ?? {}, o = we(this.toolId, e, t, i);
|
|
3521
|
-
return o.setAttribute("tool-id", r.fullToolId), {
|
|
3524
|
+
return o.setAttribute("tool-id", r.fullToolId), fn(o, "frameless"), {
|
|
3522
3525
|
toolId: this.toolId,
|
|
3523
3526
|
button: n,
|
|
3524
3527
|
elements: [{
|
|
@@ -3535,7 +3538,7 @@ var Ra = {
|
|
|
3535
3538
|
subscribeActive: r.subscribeActive
|
|
3536
3539
|
};
|
|
3537
3540
|
}
|
|
3538
|
-
},
|
|
3541
|
+
}, Na = {
|
|
3539
3542
|
toolId: "theme",
|
|
3540
3543
|
name: "Theme",
|
|
3541
3544
|
description: "Accessible themes and contrast",
|
|
@@ -3591,7 +3594,7 @@ var Ra = {
|
|
|
3591
3594
|
subscribeActive: r.subscribeActive
|
|
3592
3595
|
};
|
|
3593
3596
|
}
|
|
3594
|
-
},
|
|
3597
|
+
}, Da = {
|
|
3595
3598
|
toolId: "annotationToolbar",
|
|
3596
3599
|
name: "Highlighter",
|
|
3597
3600
|
description: "Highlight and annotate text",
|
|
@@ -3642,7 +3645,7 @@ var Ra = {
|
|
|
3642
3645
|
subscribeActive: r.subscribeActive
|
|
3643
3646
|
};
|
|
3644
3647
|
}
|
|
3645
|
-
},
|
|
3648
|
+
}, Va = {
|
|
3646
3649
|
toolId: "graph",
|
|
3647
3650
|
name: "Graph",
|
|
3648
3651
|
description: "Graphing calculator and coordinate plane",
|
|
@@ -3695,7 +3698,7 @@ var Ra = {
|
|
|
3695
3698
|
subscribeActive: r.subscribeActive
|
|
3696
3699
|
};
|
|
3697
3700
|
}
|
|
3698
|
-
},
|
|
3701
|
+
}, ja = {
|
|
3699
3702
|
toolId: "periodicTable",
|
|
3700
3703
|
name: "Periodic Table",
|
|
3701
3704
|
description: "Chemistry periodic table reference",
|
|
@@ -3707,7 +3710,7 @@ var Ra = {
|
|
|
3707
3710
|
"elementReference"
|
|
3708
3711
|
],
|
|
3709
3712
|
isVisibleInContext(e) {
|
|
3710
|
-
return
|
|
3713
|
+
return ua(e);
|
|
3711
3714
|
},
|
|
3712
3715
|
renderToolbar(e, t) {
|
|
3713
3716
|
const r = Ee(this.toolId, t), n = {
|
|
@@ -3747,9 +3750,8 @@ var Ra = {
|
|
|
3747
3750
|
subscribeActive: r.subscribeActive
|
|
3748
3751
|
};
|
|
3749
3752
|
}
|
|
3750
|
-
},
|
|
3751
|
-
|
|
3752
|
-
Oa,
|
|
3753
|
+
}, za = [
|
|
3754
|
+
ka,
|
|
3753
3755
|
Ra,
|
|
3754
3756
|
La,
|
|
3755
3757
|
Pa,
|
|
@@ -3758,43 +3760,44 @@ var Ra = {
|
|
|
3758
3760
|
Ma,
|
|
3759
3761
|
Na,
|
|
3760
3762
|
Da,
|
|
3761
|
-
Va
|
|
3763
|
+
Va,
|
|
3764
|
+
ja
|
|
3762
3765
|
];
|
|
3763
|
-
function
|
|
3764
|
-
const t = new
|
|
3766
|
+
function Wa(e = {}) {
|
|
3767
|
+
const t = new sa(), r = {
|
|
3765
3768
|
toolTagMap: {
|
|
3766
|
-
...
|
|
3769
|
+
...no,
|
|
3767
3770
|
...e.toolTagMap || {}
|
|
3768
3771
|
},
|
|
3769
3772
|
toolComponentFactory: e.toolComponentFactory,
|
|
3770
3773
|
toolComponentFactories: e.toolComponentFactories
|
|
3771
3774
|
}, n = (i) => e.overrides?.[i.toolId] || i;
|
|
3772
|
-
return e.includePackagedTools &&
|
|
3775
|
+
return e.includePackagedTools && Ba(t, {
|
|
3773
3776
|
toolIds: e.toolIds,
|
|
3774
3777
|
applyOverrides: n
|
|
3775
3778
|
}), e.toolModuleLoaders && Object.keys(e.toolModuleLoaders).length > 0 && t.setToolModuleLoaders(e.toolModuleLoaders), t.setComponentOverrides(r), t;
|
|
3776
3779
|
}
|
|
3777
|
-
function
|
|
3780
|
+
function Ba(e, t = {}) {
|
|
3778
3781
|
const r = t.toolIds && t.toolIds.length > 0 ? new Set(t.toolIds) : null, n = t.applyOverrides || ((i) => i);
|
|
3779
|
-
for (const i of
|
|
3782
|
+
for (const i of za)
|
|
3780
3783
|
r && !r.has(i.toolId) || e.register(n(i));
|
|
3781
3784
|
}
|
|
3782
|
-
function
|
|
3783
|
-
return
|
|
3785
|
+
function Fa(e = {}) {
|
|
3786
|
+
return Wa({
|
|
3784
3787
|
...e,
|
|
3785
3788
|
includePackagedTools: !0
|
|
3786
3789
|
});
|
|
3787
3790
|
}
|
|
3788
|
-
function
|
|
3789
|
-
const e =
|
|
3791
|
+
function Ha() {
|
|
3792
|
+
const e = Fa(), t = /* @__PURE__ */ new Set();
|
|
3790
3793
|
for (const r of e.getAllTools()) for (const n of r.pnpSupportIds || []) t.add(n);
|
|
3791
3794
|
return [...t].sort();
|
|
3792
3795
|
}
|
|
3793
|
-
var
|
|
3794
|
-
supports: [...
|
|
3796
|
+
var qa = Ha(), pl = {
|
|
3797
|
+
supports: [...qa],
|
|
3795
3798
|
prohibitedSupports: [],
|
|
3796
3799
|
activateAtInit: []
|
|
3797
|
-
},
|
|
3800
|
+
}, Ga = {
|
|
3798
3801
|
visual: {
|
|
3799
3802
|
magnification: "magnification",
|
|
3800
3803
|
screenMagnifier: "screenMagnifier",
|
|
@@ -3907,15 +3910,15 @@ var Ha = Fa(), vl = {
|
|
|
3907
3910
|
itemGlossary: "itemGlossary",
|
|
3908
3911
|
tutorialAvailable: "tutorialAvailable"
|
|
3909
3912
|
}
|
|
3910
|
-
},
|
|
3913
|
+
}, gl = Object.values(Ga).flatMap((e) => Object.values(e)), _l = eo("ToolCoordinator"), Xn;
|
|
3911
3914
|
(function(e) {
|
|
3912
3915
|
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";
|
|
3913
|
-
})(
|
|
3914
|
-
var
|
|
3916
|
+
})(Xn || (Xn = {}));
|
|
3917
|
+
var Jn;
|
|
3915
3918
|
(function(e) {
|
|
3916
3919
|
e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
|
|
3917
|
-
})(
|
|
3918
|
-
var
|
|
3920
|
+
})(Jn || (Jn = {}));
|
|
3921
|
+
var Ua = /* @__PURE__ */ st('<button class="pie-tool-annotation-toolbar__highlight-swatch svelte-g8qu62"><span class="pie-sr-only svelte-g8qu62"> </span></button>'), Ka = /* @__PURE__ */ st('<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), Ya = /* @__PURE__ */ st('<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>'), Xa = /* @__PURE__ */ st('<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>'), Ja = /* @__PURE__ */ st('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <!> <!>', 1), Qa = /* @__PURE__ */ st('<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>'), Za = /* @__PURE__ */ st('<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), el = {
|
|
3919
3922
|
hash: "svelte-g8qu62",
|
|
3920
3923
|
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);}
|
|
3921
3924
|
|
|
@@ -3923,8 +3926,8 @@ var Ga = /* @__PURE__ */ st('<button class="pie-tool-annotation-toolbar__highlig
|
|
|
3923
3926
|
|
|
3924
3927
|
/* 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;}`
|
|
3925
3928
|
};
|
|
3926
|
-
function
|
|
3927
|
-
|
|
3929
|
+
function tl(e, t) {
|
|
3930
|
+
oi(t, !0), zs(e, el);
|
|
3928
3931
|
let r = Lr(t, "enabled", 7, !0), n = Lr(t, "highlightCoordinator", 7, null), i = Lr(t, "ttsService", 7, null);
|
|
3929
3932
|
const o = typeof window < "u", s = "pie-annotations", a = [
|
|
3930
3933
|
{
|
|
@@ -4040,7 +4043,7 @@ function el(e, t) {
|
|
|
4040
4043
|
function Te() {
|
|
4041
4044
|
_(g) && i() && (i().stop(), E(g, !1)), _(d).isVisible = !1, _(d).selectedText = "", _(d).selectedRange = null;
|
|
4042
4045
|
}
|
|
4043
|
-
function
|
|
4046
|
+
function dn(m) {
|
|
4044
4047
|
if (!_(d).selectedRange || !n()) return;
|
|
4045
4048
|
const S = _(d).selectedText;
|
|
4046
4049
|
n().addAnnotation(_(d).selectedRange, m), E(y, n().getAnnotations().length, !0), jt();
|
|
@@ -4049,7 +4052,7 @@ function el(e, t) {
|
|
|
4049
4052
|
E(h, "");
|
|
4050
4053
|
}, 3e3), Te();
|
|
4051
4054
|
}
|
|
4052
|
-
function
|
|
4055
|
+
function so() {
|
|
4053
4056
|
if (!_(M) || !n()) {
|
|
4054
4057
|
console.warn("[AnnotationToolbar] No overlapping annotation to remove");
|
|
4055
4058
|
return;
|
|
@@ -4069,13 +4072,13 @@ function el(e, t) {
|
|
|
4069
4072
|
E(h, "");
|
|
4070
4073
|
}, 3e3), Te();
|
|
4071
4074
|
}
|
|
4072
|
-
function
|
|
4075
|
+
function ao() {
|
|
4073
4076
|
const m = _(y);
|
|
4074
4077
|
n()?.clearAnnotations(), E(y, 0), sessionStorage.removeItem(q()), E(h, `${m} annotation${m === 1 ? "" : "s"} cleared`), setTimeout(() => {
|
|
4075
4078
|
E(h, "");
|
|
4076
4079
|
}, 3e3), Te();
|
|
4077
4080
|
}
|
|
4078
|
-
async function
|
|
4081
|
+
async function lo() {
|
|
4079
4082
|
if (!(!_(d).selectedRange || !i())) {
|
|
4080
4083
|
E(g, !0);
|
|
4081
4084
|
try {
|
|
@@ -4087,32 +4090,32 @@ function el(e, t) {
|
|
|
4087
4090
|
}
|
|
4088
4091
|
}
|
|
4089
4092
|
}
|
|
4090
|
-
function
|
|
4093
|
+
function hn(m) {
|
|
4091
4094
|
m.key === "Escape" && _(d).isVisible && (m.preventDefault(), Te());
|
|
4092
4095
|
}
|
|
4093
4096
|
function Wt(m) {
|
|
4094
4097
|
!_(d).isVisible || _(w) || _(p) && !_(p).contains(m.target) && Te();
|
|
4095
4098
|
}
|
|
4096
|
-
|
|
4099
|
+
Ln(() => {
|
|
4097
4100
|
if (!o) return;
|
|
4098
4101
|
const m = setTimeout(() => {
|
|
4099
4102
|
yr();
|
|
4100
4103
|
}, 2e3), S = _(B) || document;
|
|
4101
|
-
return S.addEventListener("mouseup", zt), S.addEventListener("click", Wt), S.addEventListener("touchend", zt), S.addEventListener("touchstart", Wt), document.addEventListener("keydown",
|
|
4102
|
-
clearTimeout(m), S.removeEventListener("mouseup", zt), S.removeEventListener("click", Wt), S.removeEventListener("touchend", zt), S.removeEventListener("touchstart", Wt), document.removeEventListener("keydown",
|
|
4104
|
+
return S.addEventListener("mouseup", zt), S.addEventListener("click", Wt), S.addEventListener("touchend", zt), S.addEventListener("touchstart", Wt), document.addEventListener("keydown", hn), window.addEventListener("scroll", Te, !0), () => {
|
|
4105
|
+
clearTimeout(m), S.removeEventListener("mouseup", zt), S.removeEventListener("click", Wt), S.removeEventListener("touchend", zt), S.removeEventListener("touchstart", Wt), document.removeEventListener("keydown", hn), window.removeEventListener("scroll", Te, !0);
|
|
4103
4106
|
};
|
|
4104
|
-
}),
|
|
4107
|
+
}), Ln(() => {
|
|
4105
4108
|
if (!_(u)) return;
|
|
4106
|
-
const m =
|
|
4109
|
+
const m = ra(_(u), (O) => {
|
|
4107
4110
|
E(v, O, !0);
|
|
4108
|
-
}), S =
|
|
4111
|
+
}), S = na(_(u), (O) => {
|
|
4109
4112
|
E(f, O, !0);
|
|
4110
4113
|
});
|
|
4111
4114
|
return () => {
|
|
4112
4115
|
S(), m();
|
|
4113
4116
|
};
|
|
4114
4117
|
});
|
|
4115
|
-
var
|
|
4118
|
+
var co = {
|
|
4116
4119
|
get enabled() {
|
|
4117
4120
|
return r();
|
|
4118
4121
|
},
|
|
@@ -4131,51 +4134,51 @@ function el(e, t) {
|
|
|
4131
4134
|
set ttsService(m = null) {
|
|
4132
4135
|
i(m), Zt();
|
|
4133
4136
|
}
|
|
4134
|
-
},
|
|
4135
|
-
|
|
4136
|
-
var
|
|
4137
|
-
var S =
|
|
4138
|
-
|
|
4139
|
-
var X =
|
|
4137
|
+
}, vn = Za(), pn = Ar(vn);
|
|
4138
|
+
qn(pn, (m) => E(u, m), () => _(u));
|
|
4139
|
+
var gn = Re(pn, 2), uo = (m) => {
|
|
4140
|
+
var S = Qa(), O = Kt(S);
|
|
4141
|
+
Ds(O, 17, () => a, Ms, (oe, se) => {
|
|
4142
|
+
var X = Ua(), Bt = Kt(X), wr = Kt(Bt, !0);
|
|
4140
4143
|
Ft(Bt), Ft(X), Yt(() => {
|
|
4141
|
-
|
|
4142
|
-
}), Tt("click", X, () =>
|
|
4144
|
+
zn(X, `background-color: ${_(se).hex ?? ""};`), Wn(X, "aria-label", _(se).label), Wn(X, "title", _(se).label), Dn(wr, _(se).label);
|
|
4145
|
+
}), Tt("click", X, () => dn(_(se).name)), Ce(oe, X);
|
|
4143
4146
|
});
|
|
4144
4147
|
var F = Re(O, 2), We = Re(F, 2), bt = (oe) => {
|
|
4145
|
-
var se =
|
|
4146
|
-
Yt(() => X.disabled = _(g)), Tt("click", X,
|
|
4148
|
+
var se = Ka(), X = Re(Ar(se), 2);
|
|
4149
|
+
Yt(() => X.disabled = _(g)), Tt("click", X, lo), Ce(oe, se);
|
|
4147
4150
|
};
|
|
4148
4151
|
kt(We, (oe) => {
|
|
4149
4152
|
i() && oe(bt);
|
|
4150
4153
|
});
|
|
4151
|
-
var yt = Re(We, 2),
|
|
4152
|
-
var se =
|
|
4153
|
-
var wt =
|
|
4154
|
-
Tt("click", wt,
|
|
4154
|
+
var yt = Re(We, 2), ho = (oe) => {
|
|
4155
|
+
var se = Ja(), X = Re(Ar(se), 2), Bt = (Be) => {
|
|
4156
|
+
var wt = Ya();
|
|
4157
|
+
Tt("click", wt, so), Ce(Be, wt);
|
|
4155
4158
|
};
|
|
4156
4159
|
kt(X, (Be) => {
|
|
4157
4160
|
_(C) && Be(Bt);
|
|
4158
4161
|
});
|
|
4159
|
-
var wr = Re(X, 2),
|
|
4160
|
-
var wt =
|
|
4161
|
-
Tt("click", wt,
|
|
4162
|
+
var wr = Re(X, 2), vo = (Be) => {
|
|
4163
|
+
var wt = Xa();
|
|
4164
|
+
Tt("click", wt, ao), Ce(Be, wt);
|
|
4162
4165
|
};
|
|
4163
4166
|
kt(wr, (Be) => {
|
|
4164
|
-
_($) && Be(
|
|
4167
|
+
_($) && Be(vo);
|
|
4165
4168
|
}), Ce(oe, se);
|
|
4166
4169
|
};
|
|
4167
4170
|
kt(yt, (oe) => {
|
|
4168
|
-
(_(C) || _($)) && oe(
|
|
4169
|
-
}), Ft(S),
|
|
4171
|
+
(_(C) || _($)) && oe(ho);
|
|
4172
|
+
}), Ft(S), qn(S, (oe) => E(p, oe), () => _(p)), Yt(() => zn(S, `left:${_(d).toolbarPosition.x}px; top:${_(d).toolbarPosition.y}px; transform: translate(-50%, -100%);`)), Tt("click", F, () => dn(xe.UNDERLINE)), Ce(m, S);
|
|
4170
4173
|
};
|
|
4171
|
-
kt(
|
|
4172
|
-
_(d).isVisible && m(
|
|
4174
|
+
kt(gn, (m) => {
|
|
4175
|
+
_(d).isVisible && m(uo);
|
|
4173
4176
|
});
|
|
4174
|
-
var
|
|
4175
|
-
return Ft(
|
|
4177
|
+
var _n = Re(gn, 2), fo = Kt(_n, !0);
|
|
4178
|
+
return Ft(_n), Yt(() => Dn(fo, _(h))), Ce(e, vn), si(co);
|
|
4176
4179
|
}
|
|
4177
|
-
|
|
4178
|
-
customElements.define("pie-tool-annotation-toolbar",
|
|
4180
|
+
ks(["click"]);
|
|
4181
|
+
customElements.define("pie-tool-annotation-toolbar", Js(tl, {
|
|
4179
4182
|
enabled: {
|
|
4180
4183
|
attribute: "enabled",
|
|
4181
4184
|
type: "Boolean"
|
|
@@ -4184,5 +4187,5 @@ customElements.define("pie-tool-annotation-toolbar", Xs(el, {
|
|
|
4184
4187
|
ttsService: { type: "Object" }
|
|
4185
4188
|
}, [], [], { mode: "open" }));
|
|
4186
4189
|
export {
|
|
4187
|
-
|
|
4190
|
+
tl as default
|
|
4188
4191
|
};
|