@pie-players/pie-tool-answer-eliminator 0.3.41 → 0.3.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tool-answer-eliminator.js +544 -528
- package/package.json +4 -4
|
@@ -4,12 +4,12 @@ if (typeof window < "u") {
|
|
|
4
4
|
((Ir = (Er = window).__svelte ?? (Er.__svelte = {})).v ?? (Ir.v = /* @__PURE__ */ new Set())).add("5");
|
|
5
5
|
}
|
|
6
6
|
var kt = {}, M = /* @__PURE__ */ Symbol();
|
|
7
|
-
var
|
|
7
|
+
var un = Array.isArray, dn = Array.prototype.indexOf, Ke = Array.prototype.includes, fn = Array.from, Ct = Object.keys, $t = Object.defineProperty, Oe = Object.getOwnPropertyDescriptor, hn = Object.prototype, pn = Array.prototype, vn = Object.getPrototypeOf, kr = Object.isExtensible, gn = () => {
|
|
8
8
|
};
|
|
9
|
-
function
|
|
9
|
+
function mn(e) {
|
|
10
10
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function _n() {
|
|
13
13
|
var e, t;
|
|
14
14
|
return {
|
|
15
15
|
promise: new Promise((r, i) => {
|
|
@@ -19,51 +19,51 @@ function gn() {
|
|
|
19
19
|
reject: t
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
var
|
|
22
|
+
var Zs = 1 << 24, re = 1024, le = 2048, Fe = 4096, ei = 8192, yn = 16384, ti = 32768, Cr = 1 << 25, ri = 65536, ea = 1 << 17, ta = 1 << 18, ut = 1 << 19, bn = 1 << 20, dt = 65536, $r = 1 << 21, ra = 1 << 22, ii = 1 << 23, nt = /* @__PURE__ */ Symbol("$state"), ni = /* @__PURE__ */ Symbol("legacy props"), wn = /* @__PURE__ */ Symbol("proxy path"), lr = new class extends Error {
|
|
23
23
|
constructor(...t) {
|
|
24
24
|
super(...t), u(this, "name", "StaleReactionError"), u(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
25
25
|
}
|
|
26
|
-
}(),
|
|
27
|
-
function
|
|
26
|
+
}(), na = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
27
|
+
function Tn(e) {
|
|
28
28
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function An(e) {
|
|
31
31
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Sn() {
|
|
34
34
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function In(e) {
|
|
37
37
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function En() {
|
|
40
40
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function kn() {
|
|
43
43
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Cn(e) {
|
|
46
46
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function $n() {
|
|
49
49
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Ln() {
|
|
52
52
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function On() {
|
|
55
55
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Rn() {
|
|
58
58
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Mn() {
|
|
61
61
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function oi(e) {
|
|
64
64
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Pn() {
|
|
67
67
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
68
68
|
}
|
|
69
69
|
var Z = !1;
|
|
@@ -73,19 +73,19 @@ function pt(e) {
|
|
|
73
73
|
var N;
|
|
74
74
|
function at(e) {
|
|
75
75
|
if (e === null)
|
|
76
|
-
throw
|
|
76
|
+
throw oi(), kt;
|
|
77
77
|
return N = e;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function si() {
|
|
80
80
|
return at(/* @__PURE__ */ Ze(N));
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function xn(e = 1) {
|
|
83
83
|
if (Z) {
|
|
84
84
|
for (var t = e, r = N; t--; ) r = /* @__PURE__ */ Ze(r);
|
|
85
85
|
N = r;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Hn(e = !0) {
|
|
89
89
|
for (var t = 0, r = N; ; ) {
|
|
90
90
|
if (r.nodeType === 8) {
|
|
91
91
|
var i = r.data;
|
|
@@ -98,27 +98,27 @@ function Pn(e = !0) {
|
|
|
98
98
|
e && r.remove(), r = n;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function ai(e) {
|
|
102
102
|
return e === this.v;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Nn(e, t) {
|
|
105
105
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
return !
|
|
107
|
+
function li(e) {
|
|
108
|
+
return !Nn(e, this.v);
|
|
109
109
|
}
|
|
110
110
|
var we = !1, ft = !1;
|
|
111
111
|
function Lr(e, t) {
|
|
112
|
-
return e.label = t,
|
|
112
|
+
return e.label = t, Dn(e.v, t), e;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
return e?.[
|
|
114
|
+
function Dn(e, t) {
|
|
115
|
+
return e?.[wn]?.(t), e;
|
|
116
116
|
}
|
|
117
117
|
var L = null;
|
|
118
118
|
function Lt(e) {
|
|
119
119
|
L = e;
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function ci(e, t = !1, r) {
|
|
122
122
|
L = {
|
|
123
123
|
p: L,
|
|
124
124
|
i: !1,
|
|
@@ -134,11 +134,11 @@ function ai(e, t = !1, r) {
|
|
|
134
134
|
} : null
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function ui(e) {
|
|
138
138
|
var t = L, r = t.e;
|
|
139
139
|
if (r !== null) {
|
|
140
140
|
t.e = null;
|
|
141
|
-
for (var i of r)
|
|
141
|
+
for (var i of r) Hi(i);
|
|
142
142
|
}
|
|
143
143
|
return e !== void 0 && (t.x = e), t.i = !0, L = t.p, e ?? {};
|
|
144
144
|
}
|
|
@@ -146,26 +146,26 @@ function xt() {
|
|
|
146
146
|
return !ft || L !== null && L.l === null;
|
|
147
147
|
}
|
|
148
148
|
var $e = [];
|
|
149
|
-
function
|
|
149
|
+
function di() {
|
|
150
150
|
var e = $e;
|
|
151
|
-
$e = [],
|
|
151
|
+
$e = [], mn(e);
|
|
152
152
|
}
|
|
153
153
|
function Ue(e) {
|
|
154
154
|
if ($e.length === 0 && !ot) {
|
|
155
155
|
var t = $e;
|
|
156
156
|
queueMicrotask(() => {
|
|
157
|
-
t === $e &&
|
|
157
|
+
t === $e && di();
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
160
|
$e.push(e);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
163
|
-
for (; $e.length > 0; )
|
|
162
|
+
function Fn() {
|
|
163
|
+
for (; $e.length > 0; ) di();
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function fi(e) {
|
|
166
166
|
var t = A;
|
|
167
167
|
if (t === null)
|
|
168
|
-
return T.f |=
|
|
168
|
+
return T.f |= ii, e;
|
|
169
169
|
if ((t.f & 32768) === 0 && (t.f & 4) === 0)
|
|
170
170
|
throw e;
|
|
171
171
|
Ge(e, t);
|
|
@@ -185,23 +185,23 @@ function Ge(e, t) {
|
|
|
185
185
|
}
|
|
186
186
|
throw e;
|
|
187
187
|
}
|
|
188
|
-
var
|
|
188
|
+
var Bn = ~(le | Fe | re);
|
|
189
189
|
function O(e, t) {
|
|
190
|
-
e.f = e.f &
|
|
190
|
+
e.f = e.f & Bn | t;
|
|
191
191
|
}
|
|
192
192
|
function cr(e) {
|
|
193
193
|
(e.f & 512) !== 0 || e.deps === null ? O(e, re) : O(e, Fe);
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function hi(e) {
|
|
196
196
|
if (e !== null)
|
|
197
197
|
for (const t of e)
|
|
198
|
-
(t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^= dt,
|
|
198
|
+
(t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^= dt, hi(t.deps));
|
|
199
199
|
}
|
|
200
|
-
function
|
|
201
|
-
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e),
|
|
200
|
+
function pi(e, t, r) {
|
|
201
|
+
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e), hi(e.deps), O(e, re);
|
|
202
202
|
}
|
|
203
|
-
var
|
|
204
|
-
function
|
|
203
|
+
var jn = !1, vt = !1;
|
|
204
|
+
function zn(e) {
|
|
205
205
|
var t = vt;
|
|
206
206
|
try {
|
|
207
207
|
return vt = !1, [e(), vt];
|
|
@@ -209,14 +209,14 @@ function Bn(e) {
|
|
|
209
209
|
vt = t;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function vi(e, t) {
|
|
213
213
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
214
214
|
}
|
|
215
215
|
function ur(e, t) {
|
|
216
|
-
|
|
216
|
+
vi(e, t), t.add(e);
|
|
217
217
|
}
|
|
218
218
|
function w(e, t, r) {
|
|
219
|
-
|
|
219
|
+
vi(e, t), t.set(e, r);
|
|
220
220
|
}
|
|
221
221
|
function S(e, t, r) {
|
|
222
222
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
|
|
@@ -228,10 +228,10 @@ function a(e, t) {
|
|
|
228
228
|
function b(e, t, r) {
|
|
229
229
|
return e.set(S(e, t), r), r;
|
|
230
230
|
}
|
|
231
|
-
var
|
|
232
|
-
var
|
|
231
|
+
var gi, oe = /* @__PURE__ */ new Set(), I = null, Or = null, x = null, Ut = null, ot = !1, zt = !1, Ye = null, Ot = null, mi = 0;
|
|
232
|
+
var Vn = 1, Rt = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Yt = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakSet(), Qe = class _i {
|
|
233
233
|
constructor() {
|
|
234
|
-
ur(this, F), u(this, "id",
|
|
234
|
+
ur(this, F), u(this, "id", Vn++), u(this, "current", /* @__PURE__ */ new Map()), u(this, "previous", /* @__PURE__ */ new Map()), w(this, Rt, /* @__PURE__ */ new Set()), w(this, gt, /* @__PURE__ */ new Set()), w(this, tt, /* @__PURE__ */ new Set()), w(this, ke, /* @__PURE__ */ new Map()), w(this, ye, /* @__PURE__ */ new Map()), w(this, wt, null), w(this, J, []), w(this, Yt, []), w(this, Xe, /* @__PURE__ */ new Set()), w(this, Re, /* @__PURE__ */ new Set()), w(this, be, /* @__PURE__ */ new Map()), w(this, Tt, /* @__PURE__ */ new Set()), u(this, "is_fork", !1), w(this, mt, !1), w(this, qe, /* @__PURE__ */ new Set());
|
|
235
235
|
}
|
|
236
236
|
skip_effect(t) {
|
|
237
237
|
a(be, this).has(t) || a(be, this).set(t, {
|
|
@@ -264,7 +264,7 @@ var jn = 1, Rt = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap
|
|
|
264
264
|
try {
|
|
265
265
|
zt = !0, I = this, S(F, this, dr).call(this);
|
|
266
266
|
} finally {
|
|
267
|
-
|
|
267
|
+
mi = 0, Ut = null, Ye = null, Ot = null, zt = !1, I = null, x = null, xe.clear();
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
270
|
discard() {
|
|
@@ -310,11 +310,11 @@ var jn = 1, Rt = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap
|
|
|
310
310
|
a(tt, this).clear();
|
|
311
311
|
}
|
|
312
312
|
settled() {
|
|
313
|
-
return (a(wt, this) ?? b(wt, this,
|
|
313
|
+
return (a(wt, this) ?? b(wt, this, _n())).promise;
|
|
314
314
|
}
|
|
315
315
|
static ensure() {
|
|
316
316
|
if (I === null) {
|
|
317
|
-
const t = I = new
|
|
317
|
+
const t = I = new _i();
|
|
318
318
|
zt || (oe.add(I), ot || Ue(() => {
|
|
319
319
|
I === t && t.flush();
|
|
320
320
|
}));
|
|
@@ -345,7 +345,7 @@ var jn = 1, Rt = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap
|
|
|
345
345
|
for (var r = t; r.parent !== null; ) {
|
|
346
346
|
r = r.parent;
|
|
347
347
|
var i = r.f;
|
|
348
|
-
if (Ye !== null && r === A && (we || (T === null || (T.f & 2) === 0) && !
|
|
348
|
+
if (Ye !== null && r === A && (we || (T === null || (T.f & 2) === 0) && !jn))
|
|
349
349
|
return;
|
|
350
350
|
if ((i & 96) !== 0) {
|
|
351
351
|
if ((i & 1024) === 0) return;
|
|
@@ -355,11 +355,11 @@ var jn = 1, Rt = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap
|
|
|
355
355
|
a(J, this).push(r);
|
|
356
356
|
}
|
|
357
357
|
};
|
|
358
|
-
|
|
358
|
+
gi = Qe;
|
|
359
359
|
function Xt() {
|
|
360
360
|
return this.is_fork || a(ye, this).size > 0;
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function Gn() {
|
|
363
363
|
for (const r of a(qe, this)) for (const i of a(ye, r).keys()) {
|
|
364
364
|
for (var e = !1, t = i; t.parent !== null; ) {
|
|
365
365
|
if (a(be, this).has(t)) {
|
|
@@ -373,7 +373,7 @@ function zn() {
|
|
|
373
373
|
return !1;
|
|
374
374
|
}
|
|
375
375
|
function dr() {
|
|
376
|
-
if (
|
|
376
|
+
if (mi++ > 1e3 && (oe.delete(this), qn()), !S(F, this, Xt).call(this)) {
|
|
377
377
|
for (const s of a(Xe, this))
|
|
378
378
|
a(Re, this).delete(s), O(s, le), this.schedule(s);
|
|
379
379
|
for (const s of a(Re, this))
|
|
@@ -383,17 +383,17 @@ function dr() {
|
|
|
383
383
|
b(J, this, []), this.apply();
|
|
384
384
|
var t = Ye = [], r = [], i = Ot = [];
|
|
385
385
|
for (const s of e) try {
|
|
386
|
-
S(F, this,
|
|
386
|
+
S(F, this, yi).call(this, s, t, r);
|
|
387
387
|
} catch (l) {
|
|
388
|
-
throw
|
|
388
|
+
throw Ti(s), l;
|
|
389
389
|
}
|
|
390
390
|
if (I = null, i.length > 0) {
|
|
391
|
-
var n =
|
|
391
|
+
var n = gi.ensure();
|
|
392
392
|
for (const s of i) n.schedule(s);
|
|
393
393
|
}
|
|
394
|
-
if (Ye = null, Ot = null, S(F, this, Xt).call(this) || S(F, this,
|
|
394
|
+
if (Ye = null, Ot = null, S(F, this, Xt).call(this) || S(F, this, Gn).call(this)) {
|
|
395
395
|
S(F, this, Jt).call(this, r), S(F, this, Jt).call(this, t);
|
|
396
|
-
for (const [s, l] of a(be, this))
|
|
396
|
+
for (const [s, l] of a(be, this)) wi(s, l);
|
|
397
397
|
} else {
|
|
398
398
|
a(ke, this).size === 0 && oe.delete(this), a(Xe, this).clear(), a(Re, this).clear();
|
|
399
399
|
for (const s of a(Rt, this)) s(this);
|
|
@@ -404,9 +404,9 @@ function dr() {
|
|
|
404
404
|
const s = o ?? (o = this);
|
|
405
405
|
a(J, s).push(...a(J, this).filter((l) => !a(J, s).includes(l)));
|
|
406
406
|
}
|
|
407
|
-
o !== null && (oe.add(o), S(F, o, dr).call(o)), we && !oe.has(this) && S(F, this,
|
|
407
|
+
o !== null && (oe.add(o), S(F, o, dr).call(o)), we && !oe.has(this) && S(F, this, Wn).call(this);
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function yi(e, t, r) {
|
|
410
410
|
e.f ^= re;
|
|
411
411
|
for (var i = e.first; i !== null; ) {
|
|
412
412
|
var n = i.f, o = (n & 96) !== 0;
|
|
@@ -429,41 +429,41 @@ function mi(e, t, r) {
|
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
function Jt(e) {
|
|
432
|
-
for (var t = 0; t < e.length; t += 1)
|
|
433
|
-
}
|
|
434
|
-
function
|
|
435
|
-
for (const
|
|
436
|
-
var e =
|
|
437
|
-
for (const [
|
|
438
|
-
if (
|
|
439
|
-
var r =
|
|
440
|
-
if (e && v !== r)
|
|
432
|
+
for (var t = 0; t < e.length; t += 1) pi(e[t], a(Xe, this), a(Re, this));
|
|
433
|
+
}
|
|
434
|
+
function Wn() {
|
|
435
|
+
for (const f of oe) {
|
|
436
|
+
var e = f.id < this.id, t = [];
|
|
437
|
+
for (const [d, [v, h]] of this.current) {
|
|
438
|
+
if (f.current.has(d)) {
|
|
439
|
+
var r = f.current.get(d)[0];
|
|
440
|
+
if (e && v !== r) f.current.set(d, [v, h]);
|
|
441
441
|
else continue;
|
|
442
442
|
}
|
|
443
|
-
t.push(
|
|
443
|
+
t.push(d);
|
|
444
444
|
}
|
|
445
|
-
var i = [...
|
|
445
|
+
var i = [...f.current.keys()].filter((d) => !this.current.has(d));
|
|
446
446
|
if (i.length === 0)
|
|
447
|
-
e &&
|
|
447
|
+
e && f.discard();
|
|
448
448
|
else if (t.length > 0) {
|
|
449
|
-
if (e) for (const
|
|
450
|
-
(v.f & 4194320) !== 0 ?
|
|
449
|
+
if (e) for (const d of a(Tt, this)) f.unskip_effect(d, (v) => {
|
|
450
|
+
(v.f & 4194320) !== 0 ? f.schedule(v) : S(F, f, Jt).call(f, [v]);
|
|
451
451
|
});
|
|
452
|
-
|
|
452
|
+
f.activate();
|
|
453
453
|
var n = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
454
|
-
for (var s of t)
|
|
454
|
+
for (var s of t) bi(s, i, n, o);
|
|
455
455
|
o = /* @__PURE__ */ new Map();
|
|
456
|
-
var l = [...
|
|
457
|
-
for (const
|
|
458
|
-
if (a(J,
|
|
459
|
-
|
|
460
|
-
for (var c of a(J,
|
|
461
|
-
b(J,
|
|
456
|
+
var l = [...f.current.keys()].filter((d) => this.current.has(d) ? this.current.get(d)[0] !== d : !0);
|
|
457
|
+
for (const d of a(Yt, this)) (d.f & 155648) === 0 && fr(d, l, o) && ((d.f & 4194320) !== 0 ? (O(d, le), f.schedule(d)) : a(Xe, f).add(d));
|
|
458
|
+
if (a(J, f).length > 0) {
|
|
459
|
+
f.apply();
|
|
460
|
+
for (var c of a(J, f)) S(F, f, yi).call(f, c, [], []);
|
|
461
|
+
b(J, f, []);
|
|
462
462
|
}
|
|
463
|
-
|
|
463
|
+
f.deactivate();
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
for (const
|
|
466
|
+
for (const f of oe) a(qe, f).has(this) && (a(qe, f).delete(this), a(qe, f).size === 0 && !S(F, f, Xt).call(f) && (f.activate(), S(F, f, dr).call(f)));
|
|
467
467
|
}
|
|
468
468
|
function ue(e) {
|
|
469
469
|
var t = ot;
|
|
@@ -471,21 +471,21 @@ function ue(e) {
|
|
|
471
471
|
try {
|
|
472
472
|
var r;
|
|
473
473
|
for (e && (I !== null && !I.is_fork && I.flush(), r = e()); ; ) {
|
|
474
|
-
if (
|
|
474
|
+
if (Fn(), I === null) return r;
|
|
475
475
|
I.flush();
|
|
476
476
|
}
|
|
477
477
|
} finally {
|
|
478
478
|
ot = t;
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function qn() {
|
|
482
482
|
if (0) {
|
|
483
483
|
var e;
|
|
484
484
|
for (const r of I.current.keys()) for (const [i, n] of r.updated ?? [])
|
|
485
485
|
var t;
|
|
486
486
|
}
|
|
487
487
|
try {
|
|
488
|
-
|
|
488
|
+
En();
|
|
489
489
|
} catch (r) {
|
|
490
490
|
Ge(r, Ut);
|
|
491
491
|
}
|
|
@@ -496,7 +496,7 @@ function Rr(e) {
|
|
|
496
496
|
if (t !== 0) {
|
|
497
497
|
for (var r = 0; r < t; ) {
|
|
498
498
|
var i = e[r++];
|
|
499
|
-
if ((i.f & 24576) === 0 && ht(i) && (de = /* @__PURE__ */ new Set(), Je(i), i.deps === null && i.first === null && i.nodes === null && i.teardown === null && i.ac === null &&
|
|
499
|
+
if ((i.f & 24576) === 0 && ht(i) && (de = /* @__PURE__ */ new Set(), Je(i), i.deps === null && i.first === null && i.nodes === null && i.teardown === null && i.ac === null && Di(i), de?.size > 0)) {
|
|
500
500
|
xe.clear();
|
|
501
501
|
for (const n of de) {
|
|
502
502
|
if ((n.f & 24576) !== 0) continue;
|
|
@@ -515,11 +515,11 @@ function Rr(e) {
|
|
|
515
515
|
de = null;
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function bi(e, t, r, i) {
|
|
519
519
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
520
520
|
for (const n of e.reactions) {
|
|
521
521
|
const o = n.f;
|
|
522
|
-
(o & 2) !== 0 ?
|
|
522
|
+
(o & 2) !== 0 ? bi(n, t, r, i) : (o & 4194320) !== 0 && (o & 2048) === 0 && fr(n, t, i) && (O(n, le), hr(n));
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
function fr(e, t, r) {
|
|
@@ -535,19 +535,19 @@ function fr(e, t, r) {
|
|
|
535
535
|
function hr(e) {
|
|
536
536
|
I.schedule(e);
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function wi(e, t) {
|
|
539
539
|
if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
|
|
540
540
|
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), O(e, re);
|
|
541
541
|
for (var r = e.first; r !== null; )
|
|
542
|
-
|
|
542
|
+
wi(r, t), r = r.next;
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function Ti(e) {
|
|
546
546
|
O(e, re);
|
|
547
547
|
for (var t = e.first; t !== null; )
|
|
548
|
-
|
|
548
|
+
Ti(t), t = t.next;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function Kn(e) {
|
|
551
551
|
let t = 0, r = Ht(0), i;
|
|
552
552
|
return () => {
|
|
553
553
|
mr() && (m(r), _r(() => (t === 0 && (i = Dt(() => e(() => st(r)))), t += 1, () => {
|
|
@@ -557,31 +557,31 @@ function Wn(e) {
|
|
|
557
557
|
})));
|
|
558
558
|
};
|
|
559
559
|
}
|
|
560
|
-
var
|
|
561
|
-
function
|
|
562
|
-
new
|
|
560
|
+
var Un = ri | ut;
|
|
561
|
+
function Yn(e, t, r, i) {
|
|
562
|
+
new Xn(e, t, r, i);
|
|
563
563
|
}
|
|
564
|
-
var ee = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), ne = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), Mr = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakSet(),
|
|
564
|
+
var ee = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), ne = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), Mr = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakSet(), Xn = class {
|
|
565
565
|
constructor(e, t, r, i) {
|
|
566
|
-
ur(this, P), u(this, "parent", void 0), u(this, "is_pending", !1), u(this, "transform_error", void 0), w(this, ee, void 0), w(this, Qt, Z ? N : null), w(this, ne, void 0), w(this, lt, void 0), w(this, q, void 0), w(this, se, null), w(this, V, null), w(this, X, null), w(this, Me, null), w(this, ze, 0), w(this, Pe, 0), w(this, _t, !1), w(this, Zt, /* @__PURE__ */ new Set()), w(this, er, /* @__PURE__ */ new Set()), w(this, Ie, null), w(this, Mr,
|
|
566
|
+
ur(this, P), u(this, "parent", void 0), u(this, "is_pending", !1), u(this, "transform_error", void 0), w(this, ee, void 0), w(this, Qt, Z ? N : null), w(this, ne, void 0), w(this, lt, void 0), w(this, q, void 0), w(this, se, null), w(this, V, null), w(this, X, null), w(this, Me, null), w(this, ze, 0), w(this, Pe, 0), w(this, _t, !1), w(this, Zt, /* @__PURE__ */ new Set()), w(this, er, /* @__PURE__ */ new Set()), w(this, Ie, null), w(this, Mr, Kn(() => (b(Ie, this, Ht(a(ze, this))), () => {
|
|
567
567
|
b(Ie, this, null);
|
|
568
568
|
}))), b(ee, this, e), b(ne, this, t), b(lt, this, (n) => {
|
|
569
569
|
var o = A;
|
|
570
570
|
o.b = this, o.f |= 128, r(n);
|
|
571
|
-
}), this.parent = A.b, this.transform_error = i ?? this.parent?.transform_error ?? ((n) => n), b(q, this,
|
|
571
|
+
}), this.parent = A.b, this.transform_error = i ?? this.parent?.transform_error ?? ((n) => n), b(q, this, vo(() => {
|
|
572
572
|
if (Z) {
|
|
573
573
|
const n = a(Qt, this);
|
|
574
|
-
|
|
574
|
+
si();
|
|
575
575
|
const o = n.data === "[!";
|
|
576
576
|
if (n.data.startsWith("[?")) {
|
|
577
577
|
const s = JSON.parse(n.data.slice(2));
|
|
578
|
-
S(P, this,
|
|
579
|
-
} else o ? S(P, this,
|
|
580
|
-
} else S(P, this,
|
|
581
|
-
},
|
|
578
|
+
S(P, this, Qn).call(this, s);
|
|
579
|
+
} else o ? S(P, this, Zn).call(this) : S(P, this, Jn).call(this);
|
|
580
|
+
} else S(P, this, Ai).call(this);
|
|
581
|
+
}, Un)), Z && b(ee, this, N);
|
|
582
582
|
}
|
|
583
583
|
defer_effect(e) {
|
|
584
|
-
|
|
584
|
+
pi(e, a(Zt, this), a(er, this));
|
|
585
585
|
}
|
|
586
586
|
is_rendered() {
|
|
587
587
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -590,8 +590,8 @@ var ee = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), ne =
|
|
|
590
590
|
return !!a(ne, this).pending;
|
|
591
591
|
}
|
|
592
592
|
update_pending_count(e, t) {
|
|
593
|
-
S(P, this,
|
|
594
|
-
b(_t, this, !1), a(Ie, this) &&
|
|
593
|
+
S(P, this, Si).call(this, e, t), b(ze, this, a(ze, this) + e), !(!a(Ie, this) || a(_t, this)) && (b(_t, this, !0), Ue(() => {
|
|
594
|
+
b(_t, this, !1), a(Ie, this) && Ci(a(Ie, this), a(ze, this));
|
|
595
595
|
}));
|
|
596
596
|
}
|
|
597
597
|
get_effect_pending() {
|
|
@@ -604,36 +604,36 @@ var ee = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), ne =
|
|
|
604
604
|
})) : S(P, this, Pr).call(this, e);
|
|
605
605
|
}
|
|
606
606
|
};
|
|
607
|
-
function
|
|
607
|
+
function Jn() {
|
|
608
608
|
try {
|
|
609
609
|
b(se, this, De(() => a(lt, this).call(this, a(ee, this))));
|
|
610
610
|
} catch (e) {
|
|
611
611
|
this.error(e);
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function Qn(e) {
|
|
615
615
|
const t = a(ne, this).failed;
|
|
616
616
|
t && b(X, this, De(() => {
|
|
617
617
|
t(a(ee, this), () => e, () => () => {
|
|
618
618
|
});
|
|
619
619
|
}));
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function Zn() {
|
|
622
622
|
const e = a(ne, this).pending;
|
|
623
623
|
e && (this.is_pending = !0, b(V, this, De(() => e(a(ee, this)))), Ue(() => {
|
|
624
|
-
var t = b(Me, this, document.createDocumentFragment()), r =
|
|
624
|
+
var t = b(Me, this, document.createDocumentFragment()), r = Mi();
|
|
625
625
|
t.append(r), b(se, this, S(P, this, tr).call(this, () => De(() => a(lt, this).call(this, r)))), a(Pe, this) === 0 && (a(ee, this).before(t), b(Me, this, null), Nt(a(V, this), () => {
|
|
626
626
|
b(V, this, null);
|
|
627
627
|
}), S(P, this, pr).call(this, I));
|
|
628
628
|
}));
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function Ai() {
|
|
631
631
|
try {
|
|
632
632
|
if (this.is_pending = this.has_pending_snippet(), b(Pe, this, 0), b(ze, this, 0), b(se, this, De(() => {
|
|
633
633
|
a(lt, this).call(this, a(ee, this));
|
|
634
634
|
})), a(Pe, this) > 0) {
|
|
635
635
|
var e = b(Me, this, document.createDocumentFragment());
|
|
636
|
-
|
|
636
|
+
_o(a(se, this), e);
|
|
637
637
|
const t = a(ne, this).pending;
|
|
638
638
|
b(V, this, De(() => t(a(ee, this))));
|
|
639
639
|
} else S(P, this, pr).call(this, I);
|
|
@@ -650,16 +650,16 @@ function tr(e) {
|
|
|
650
650
|
try {
|
|
651
651
|
return Qe.ensure(), e();
|
|
652
652
|
} catch (n) {
|
|
653
|
-
return
|
|
653
|
+
return fi(n), null;
|
|
654
654
|
} finally {
|
|
655
655
|
Te(t), ae(r), Lt(i);
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function Si(e, t) {
|
|
659
659
|
if (!this.has_pending_snippet()) {
|
|
660
660
|
if (this.parent) {
|
|
661
661
|
var r;
|
|
662
|
-
S(P, r = this.parent,
|
|
662
|
+
S(P, r = this.parent, Si).call(r, e, t);
|
|
663
663
|
}
|
|
664
664
|
return;
|
|
665
665
|
}
|
|
@@ -668,19 +668,19 @@ function Ti(e, t) {
|
|
|
668
668
|
}), a(Me, this) && (a(ee, this).before(a(Me, this)), b(Me, this, null)));
|
|
669
669
|
}
|
|
670
670
|
function Pr(e) {
|
|
671
|
-
a(se, this) && (te(a(se, this)), b(se, this, null)), a(V, this) && (te(a(V, this)), b(V, this, null)), a(X, this) && (te(a(X, this)), b(X, this, null)), Z && (at(a(Qt, this)),
|
|
671
|
+
a(se, this) && (te(a(se, this)), b(se, this, null)), a(V, this) && (te(a(V, this)), b(V, this, null)), a(X, this) && (te(a(X, this)), b(X, this, null)), Z && (at(a(Qt, this)), xn(), at(Hn()));
|
|
672
672
|
var t = a(ne, this).onerror;
|
|
673
673
|
let r = a(ne, this).failed;
|
|
674
674
|
var i = !1, n = !1;
|
|
675
675
|
const o = () => {
|
|
676
676
|
if (i) {
|
|
677
|
-
|
|
677
|
+
Pn();
|
|
678
678
|
return;
|
|
679
679
|
}
|
|
680
|
-
i = !0, n &&
|
|
680
|
+
i = !0, n && Rn(), a(X, this) !== null && Nt(a(X, this), () => {
|
|
681
681
|
b(X, this, null);
|
|
682
682
|
}), S(P, this, tr).call(this, () => {
|
|
683
|
-
S(P, this,
|
|
683
|
+
S(P, this, Ai).call(this);
|
|
684
684
|
});
|
|
685
685
|
}, s = (l) => {
|
|
686
686
|
try {
|
|
@@ -717,7 +717,7 @@ function vr(e) {
|
|
|
717
717
|
ctx: L,
|
|
718
718
|
deps: null,
|
|
719
719
|
effects: null,
|
|
720
|
-
equals:
|
|
720
|
+
equals: ai,
|
|
721
721
|
f: t,
|
|
722
722
|
fn: e,
|
|
723
723
|
reactions: null,
|
|
@@ -731,14 +731,14 @@ function vr(e) {
|
|
|
731
731
|
// @__NO_SIDE_EFFECTS__
|
|
732
732
|
function xr(e) {
|
|
733
733
|
const t = /* @__PURE__ */ vr(e);
|
|
734
|
-
return we ||
|
|
734
|
+
return we || Bi(t), t;
|
|
735
735
|
}
|
|
736
736
|
// @__NO_SIDE_EFFECTS__
|
|
737
|
-
function
|
|
737
|
+
function eo(e) {
|
|
738
738
|
const t = /* @__PURE__ */ vr(e);
|
|
739
|
-
return t.equals =
|
|
739
|
+
return t.equals = li, t;
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function to(e) {
|
|
742
742
|
var t = e.effects;
|
|
743
743
|
if (t !== null) {
|
|
744
744
|
e.effects = null;
|
|
@@ -748,39 +748,39 @@ function Zn(e) {
|
|
|
748
748
|
function gr(e) {
|
|
749
749
|
var t, r = A, i = e.parent;
|
|
750
750
|
if (!fe && i !== null && (i.f & 24576) !== 0)
|
|
751
|
-
return
|
|
751
|
+
return Mn(), e.v;
|
|
752
752
|
Te(i);
|
|
753
753
|
try {
|
|
754
|
-
e.f &= ~dt,
|
|
754
|
+
e.f &= ~dt, to(e), t = Gi(e);
|
|
755
755
|
} finally {
|
|
756
756
|
Te(r);
|
|
757
757
|
}
|
|
758
758
|
return t;
|
|
759
759
|
}
|
|
760
|
-
function
|
|
760
|
+
function Ii(e) {
|
|
761
761
|
var t = gr(e);
|
|
762
|
-
if (!e.equals(t) && (e.wv =
|
|
762
|
+
if (!e.equals(t) && (e.wv = zi(), (!I?.is_fork || e.deps === null) && (I !== null ? I.capture(e, t, !0) : e.v = t, e.deps === null))) {
|
|
763
763
|
O(e, re);
|
|
764
764
|
return;
|
|
765
765
|
}
|
|
766
766
|
fe || (x !== null ? (mr() || I?.is_fork) && x.set(e, t) : cr(e));
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function ro(e) {
|
|
769
769
|
if (e.effects !== null)
|
|
770
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(lr), t.teardown =
|
|
770
|
+
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(lr), t.teardown = gn, t.ac = null, ct(t, 0), yr(t));
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function Ei(e) {
|
|
773
773
|
if (e.effects !== null)
|
|
774
774
|
for (const t of e.effects) t.teardown && Je(t);
|
|
775
775
|
}
|
|
776
776
|
var rr = /* @__PURE__ */ new Set(), xe = /* @__PURE__ */ new Map();
|
|
777
|
-
var
|
|
777
|
+
var ki = !1;
|
|
778
778
|
function Ht(e, t) {
|
|
779
779
|
var r = {
|
|
780
780
|
f: 0,
|
|
781
781
|
v: e,
|
|
782
782
|
reactions: null,
|
|
783
|
-
equals:
|
|
783
|
+
equals: ai,
|
|
784
784
|
rv: 0,
|
|
785
785
|
wv: 0
|
|
786
786
|
};
|
|
@@ -789,23 +789,23 @@ function Ht(e, t) {
|
|
|
789
789
|
// @__NO_SIDE_EFFECTS__
|
|
790
790
|
function H(e, t) {
|
|
791
791
|
const r = Ht(e, t);
|
|
792
|
-
return
|
|
792
|
+
return Bi(r), r;
|
|
793
793
|
}
|
|
794
794
|
// @__NO_SIDE_EFFECTS__
|
|
795
|
-
function
|
|
795
|
+
function io(e, t = !1, r = !0) {
|
|
796
796
|
const i = Ht(e);
|
|
797
|
-
if (t || (i.equals =
|
|
797
|
+
if (t || (i.equals = li), ft && r && L !== null && L.l !== null) {
|
|
798
798
|
var n;
|
|
799
799
|
((n = L.l).s ?? (n.s = [])).push(i);
|
|
800
800
|
}
|
|
801
801
|
return i;
|
|
802
802
|
}
|
|
803
803
|
function $(e, t, r = !1) {
|
|
804
|
-
T !== null && (!Q || (T.f & 131072) !== 0) && xt() && (T.f & 4325394) !== 0 && (K === null || !Ke.call(K, e)) &&
|
|
804
|
+
T !== null && (!Q || (T.f & 131072) !== 0) && xt() && (T.f & 4325394) !== 0 && (K === null || !Ke.call(K, e)) && On();
|
|
805
805
|
let i = r ? We(t) : t;
|
|
806
|
-
return
|
|
806
|
+
return Ci(e, i, Ot);
|
|
807
807
|
}
|
|
808
|
-
function
|
|
808
|
+
function Ci(e, t, r = null) {
|
|
809
809
|
if (!e.equals(t)) {
|
|
810
810
|
xe.set(e, fe ? t : e.v);
|
|
811
811
|
var i = Qe.ensure();
|
|
@@ -813,12 +813,12 @@ function Ei(e, t, r = null) {
|
|
|
813
813
|
const n = e;
|
|
814
814
|
(e.f & 2048) !== 0 && gr(n), x === null && cr(n);
|
|
815
815
|
}
|
|
816
|
-
e.wv =
|
|
816
|
+
e.wv = zi(), $i(e, le, r), xt() && A !== null && (A.f & 1024) !== 0 && (A.f & 96) === 0 && (W === null ? bo([e]) : W.push(e)), !i.is_fork && rr.size > 0 && !ki && no();
|
|
817
817
|
}
|
|
818
818
|
return t;
|
|
819
819
|
}
|
|
820
|
-
function
|
|
821
|
-
|
|
820
|
+
function no() {
|
|
821
|
+
ki = !1;
|
|
822
822
|
for (const e of rr)
|
|
823
823
|
(e.f & 1024) !== 0 && O(e, Fe), ht(e) && Je(e);
|
|
824
824
|
rr.clear();
|
|
@@ -826,29 +826,29 @@ function ro() {
|
|
|
826
826
|
function st(e) {
|
|
827
827
|
$(e, e.v + 1);
|
|
828
828
|
}
|
|
829
|
-
function
|
|
829
|
+
function $i(e, t, r) {
|
|
830
830
|
var i = e.reactions;
|
|
831
831
|
if (i !== null)
|
|
832
832
|
for (var n = xt(), o = i.length, s = 0; s < o; s++) {
|
|
833
833
|
var l = i[s], c = l.f;
|
|
834
834
|
if (!(!n && l === A)) {
|
|
835
|
-
var
|
|
836
|
-
if (
|
|
837
|
-
var
|
|
838
|
-
x?.delete(
|
|
839
|
-
} else if (
|
|
835
|
+
var f = (c & le) === 0;
|
|
836
|
+
if (f && O(l, t), (c & 2) !== 0) {
|
|
837
|
+
var d = l;
|
|
838
|
+
x?.delete(d), (c & 65536) === 0 && (c & 512 && (l.f |= dt), $i(d, Fe, r));
|
|
839
|
+
} else if (f) {
|
|
840
840
|
var v = l;
|
|
841
841
|
(c & 16) !== 0 && de !== null && de.add(v), r !== null ? r.push(v) : hr(v);
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
845
|
}
|
|
846
|
-
var
|
|
846
|
+
var oo = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
847
847
|
function We(e) {
|
|
848
848
|
if (typeof e != "object" || e === null || nt in e) return e;
|
|
849
|
-
const t =
|
|
850
|
-
if (t !==
|
|
851
|
-
var r = /* @__PURE__ */ new Map(), i =
|
|
849
|
+
const t = vn(e);
|
|
850
|
+
if (t !== hn && t !== pn) return e;
|
|
851
|
+
var r = /* @__PURE__ */ new Map(), i = un(e), n = /* @__PURE__ */ H(0), o = null, s = He, l = (v) => {
|
|
852
852
|
if (He === s) return v();
|
|
853
853
|
var h = T, g = He;
|
|
854
854
|
ae(null), Dr(s);
|
|
@@ -857,17 +857,17 @@ function We(e) {
|
|
|
857
857
|
};
|
|
858
858
|
i && r.set("length", /* @__PURE__ */ H(e.length, o));
|
|
859
859
|
var c = "";
|
|
860
|
-
let
|
|
861
|
-
function
|
|
862
|
-
if (!
|
|
863
|
-
|
|
864
|
-
for (const [h, g] of r) Lr(g,
|
|
865
|
-
|
|
860
|
+
let f = !1;
|
|
861
|
+
function d(v) {
|
|
862
|
+
if (!f) {
|
|
863
|
+
f = !0, c = v, Lr(n, `${c} version`);
|
|
864
|
+
for (const [h, g] of r) Lr(g, so(c, h));
|
|
865
|
+
f = !1;
|
|
866
866
|
}
|
|
867
867
|
}
|
|
868
868
|
return new Proxy(e, {
|
|
869
869
|
defineProperty(v, h, g) {
|
|
870
|
-
(!("value" in g) || g.configurable === !1 || g.enumerable === !1 || g.writable === !1) &&
|
|
870
|
+
(!("value" in g) || g.configurable === !1 || g.enumerable === !1 || g.writable === !1) && $n();
|
|
871
871
|
var p = r.get(h);
|
|
872
872
|
return p === void 0 ? l(() => {
|
|
873
873
|
var y = /* @__PURE__ */ H(g.value, o);
|
|
@@ -954,40 +954,40 @@ function We(e) {
|
|
|
954
954
|
return h;
|
|
955
955
|
},
|
|
956
956
|
setPrototypeOf() {
|
|
957
|
-
|
|
957
|
+
Ln();
|
|
958
958
|
}
|
|
959
959
|
});
|
|
960
960
|
}
|
|
961
|
-
function
|
|
962
|
-
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` :
|
|
961
|
+
function so(e, t) {
|
|
962
|
+
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : oo.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
963
963
|
}
|
|
964
|
-
var Hr,
|
|
964
|
+
var Hr, ao, Li, Oi, Ri;
|
|
965
965
|
function ir() {
|
|
966
966
|
if (Hr === void 0) {
|
|
967
|
-
Hr = window,
|
|
967
|
+
Hr = window, ao = document, Li = /Firefox/.test(navigator.userAgent);
|
|
968
968
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
969
|
-
|
|
969
|
+
Oi = Oe(t, "firstChild").get, Ri = Oe(t, "nextSibling").get, kr(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), kr(r) && (r.__t = void 0);
|
|
970
970
|
}
|
|
971
971
|
}
|
|
972
|
-
function
|
|
972
|
+
function Mi(e = "") {
|
|
973
973
|
return document.createTextNode(e);
|
|
974
974
|
}
|
|
975
975
|
// @__NO_SIDE_EFFECTS__
|
|
976
976
|
function nr(e) {
|
|
977
|
-
return
|
|
977
|
+
return Oi.call(e);
|
|
978
978
|
}
|
|
979
979
|
// @__NO_SIDE_EFFECTS__
|
|
980
980
|
function Ze(e) {
|
|
981
|
-
return
|
|
981
|
+
return Ri.call(e);
|
|
982
982
|
}
|
|
983
|
-
function
|
|
983
|
+
function lo(e) {
|
|
984
984
|
e.textContent = "";
|
|
985
985
|
}
|
|
986
|
-
function
|
|
986
|
+
function Pi(e, t, r) {
|
|
987
987
|
let i = r ? { is: r } : void 0;
|
|
988
988
|
return document.createElementNS(t ?? "http://www.w3.org/1999/xhtml", e, i);
|
|
989
989
|
}
|
|
990
|
-
function
|
|
990
|
+
function xi(e) {
|
|
991
991
|
var t = T, r = A;
|
|
992
992
|
ae(null), Te(null);
|
|
993
993
|
try {
|
|
@@ -996,16 +996,16 @@ function Mi(e) {
|
|
|
996
996
|
ae(t), Te(r);
|
|
997
997
|
}
|
|
998
998
|
}
|
|
999
|
-
function
|
|
1000
|
-
A === null && (T === null &&
|
|
999
|
+
function co(e) {
|
|
1000
|
+
A === null && (T === null && In(e), Sn()), fe && An(e);
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1002
|
+
function uo(e, t) {
|
|
1003
1003
|
var r = t.last;
|
|
1004
1004
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1005
1005
|
}
|
|
1006
1006
|
function Be(e, t) {
|
|
1007
1007
|
var r = A;
|
|
1008
|
-
r !== null && (r.f & 8192) !== 0 && (e |=
|
|
1008
|
+
r !== null && (r.f & 8192) !== 0 && (e |= ei);
|
|
1009
1009
|
var i = {
|
|
1010
1010
|
ctx: L,
|
|
1011
1011
|
deps: null,
|
|
@@ -1031,9 +1031,9 @@ function Be(e, t) {
|
|
|
1031
1031
|
} catch (s) {
|
|
1032
1032
|
throw te(i), s;
|
|
1033
1033
|
}
|
|
1034
|
-
n.deps === null && n.teardown === null && n.nodes === null && n.first === n.last && (n.f & 524288) === 0 && (n = n.first, (e & 16) !== 0 && (e & 65536) !== 0 && n !== null && (n.f |=
|
|
1034
|
+
n.deps === null && n.teardown === null && n.nodes === null && n.first === n.last && (n.f & 524288) === 0 && (n = n.first, (e & 16) !== 0 && (e & 65536) !== 0 && n !== null && (n.f |= ri));
|
|
1035
1035
|
}
|
|
1036
|
-
if (n !== null && (n.parent = r, r !== null &&
|
|
1036
|
+
if (n !== null && (n.parent = r, r !== null && uo(n, r), T !== null && (T.f & 2) !== 0 && (e & 64) === 0)) {
|
|
1037
1037
|
var o = T;
|
|
1038
1038
|
(o.effects ?? (o.effects = [])).push(n);
|
|
1039
1039
|
}
|
|
@@ -1043,24 +1043,24 @@ function mr() {
|
|
|
1043
1043
|
return T !== null && !Q;
|
|
1044
1044
|
}
|
|
1045
1045
|
function Ce(e) {
|
|
1046
|
-
|
|
1046
|
+
co("$effect");
|
|
1047
1047
|
var t = A.f;
|
|
1048
1048
|
if (!T && (t & 32) !== 0 && (t & 32768) === 0) {
|
|
1049
1049
|
var r = L;
|
|
1050
1050
|
(r.e ?? (r.e = [])).push(e);
|
|
1051
|
-
} else return
|
|
1051
|
+
} else return Hi(e);
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1054
|
-
return Be(4 |
|
|
1053
|
+
function Hi(e) {
|
|
1054
|
+
return Be(4 | bn, e);
|
|
1055
1055
|
}
|
|
1056
|
-
function
|
|
1056
|
+
function fo(e) {
|
|
1057
1057
|
Qe.ensure();
|
|
1058
1058
|
const t = Be(64 | ut, e);
|
|
1059
1059
|
return () => {
|
|
1060
1060
|
te(t);
|
|
1061
1061
|
};
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1063
|
+
function ho(e) {
|
|
1064
1064
|
Qe.ensure();
|
|
1065
1065
|
const t = Be(64 | ut, e);
|
|
1066
1066
|
return (r = {}) => new Promise((i) => {
|
|
@@ -1069,20 +1069,20 @@ function uo(e) {
|
|
|
1069
1069
|
}) : (te(t), i(void 0));
|
|
1070
1070
|
});
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function po(e) {
|
|
1073
1073
|
return Be(4, e);
|
|
1074
1074
|
}
|
|
1075
1075
|
function _r(e, t = 0) {
|
|
1076
1076
|
return Be(8 | t, e);
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1078
|
+
function vo(e, t = 0) {
|
|
1079
1079
|
var r = Be(16 | t, e);
|
|
1080
1080
|
return r;
|
|
1081
1081
|
}
|
|
1082
1082
|
function De(e) {
|
|
1083
1083
|
return Be(32 | ut, e);
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1085
|
+
function Ni(e) {
|
|
1086
1086
|
var t = e.teardown;
|
|
1087
1087
|
if (t !== null) {
|
|
1088
1088
|
const r = fe, i = T;
|
|
@@ -1098,14 +1098,14 @@ function yr(e, t = !1) {
|
|
|
1098
1098
|
var r = e.first;
|
|
1099
1099
|
for (e.first = e.last = null; r !== null; ) {
|
|
1100
1100
|
const n = r.ac;
|
|
1101
|
-
n !== null &&
|
|
1101
|
+
n !== null && xi(() => {
|
|
1102
1102
|
n.abort(lr);
|
|
1103
1103
|
});
|
|
1104
1104
|
var i = r.next;
|
|
1105
1105
|
(r.f & 64) !== 0 ? r.parent = null : te(r, t), r = i;
|
|
1106
1106
|
}
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1108
|
+
function go(e) {
|
|
1109
1109
|
for (var t = e.first; t !== null; ) {
|
|
1110
1110
|
var r = t.next;
|
|
1111
1111
|
(t.f & 32) === 0 && te(t), t = r;
|
|
@@ -1113,26 +1113,26 @@ function po(e) {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
function te(e, t = !0) {
|
|
1115
1115
|
var r = !1;
|
|
1116
|
-
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (
|
|
1116
|
+
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (mo(e.nodes.start, e.nodes.end), r = !0), O(e, Cr), yr(e, t && !r), ct(e, 0);
|
|
1117
1117
|
var i = e.nodes && e.nodes.t;
|
|
1118
1118
|
if (i !== null) for (const o of i) o.stop();
|
|
1119
|
-
|
|
1119
|
+
Ni(e), e.f ^= Cr, e.f |= yn;
|
|
1120
1120
|
var n = e.parent;
|
|
1121
|
-
n !== null && n.first !== null &&
|
|
1121
|
+
n !== null && n.first !== null && Di(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1122
1122
|
}
|
|
1123
|
-
function
|
|
1123
|
+
function mo(e, t) {
|
|
1124
1124
|
for (; e !== null; ) {
|
|
1125
1125
|
var r = e === t ? null : /* @__PURE__ */ Ze(e);
|
|
1126
1126
|
e.remove(), e = r;
|
|
1127
1127
|
}
|
|
1128
1128
|
}
|
|
1129
|
-
function
|
|
1129
|
+
function Di(e) {
|
|
1130
1130
|
var t = e.parent, r = e.prev, i = e.next;
|
|
1131
1131
|
r !== null && (r.next = i), i !== null && (i.prev = r), t !== null && (t.first === e && (t.first = i), t.last === e && (t.last = r));
|
|
1132
1132
|
}
|
|
1133
1133
|
function Nt(e, t, r = !0) {
|
|
1134
1134
|
var i = [];
|
|
1135
|
-
|
|
1135
|
+
Fi(e, i, !0);
|
|
1136
1136
|
var n = () => {
|
|
1137
1137
|
r && te(e), t && t();
|
|
1138
1138
|
}, o = i.length;
|
|
@@ -1141,9 +1141,9 @@ function Nt(e, t, r = !0) {
|
|
|
1141
1141
|
for (var l of i) l.out(s);
|
|
1142
1142
|
} else n();
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1144
|
+
function Fi(e, t, r) {
|
|
1145
1145
|
if ((e.f & 8192) === 0) {
|
|
1146
|
-
e.f ^=
|
|
1146
|
+
e.f ^= ei;
|
|
1147
1147
|
var i = e.nodes && e.nodes.t;
|
|
1148
1148
|
if (i !== null)
|
|
1149
1149
|
for (const l of i) (l.is_global || r) && t.push(l);
|
|
@@ -1151,20 +1151,20 @@ function Ni(e, t, r) {
|
|
|
1151
1151
|
var o = n.next;
|
|
1152
1152
|
if ((n.f & 64) === 0) {
|
|
1153
1153
|
var s = (n.f & 65536) !== 0 || (n.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1154
|
-
|
|
1154
|
+
Fi(n, t, s ? r : !1);
|
|
1155
1155
|
}
|
|
1156
1156
|
n = o;
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function _o(e, t) {
|
|
1161
1161
|
if (e.nodes)
|
|
1162
1162
|
for (var r = e.nodes.start, i = e.nodes.end; r !== null; ) {
|
|
1163
1163
|
var n = r === i ? null : /* @__PURE__ */ Ze(r);
|
|
1164
1164
|
t.append(r), r = n;
|
|
1165
1165
|
}
|
|
1166
1166
|
}
|
|
1167
|
-
var
|
|
1167
|
+
var yo = null, At = !1, fe = !1;
|
|
1168
1168
|
function Nr(e) {
|
|
1169
1169
|
fe = e;
|
|
1170
1170
|
}
|
|
@@ -1177,19 +1177,19 @@ function Te(e) {
|
|
|
1177
1177
|
A = e;
|
|
1178
1178
|
}
|
|
1179
1179
|
var K = null;
|
|
1180
|
-
function
|
|
1180
|
+
function Bi(e) {
|
|
1181
1181
|
T !== null && (!we || (T.f & 2) !== 0) && (K === null ? K = [e] : K.push(e));
|
|
1182
1182
|
}
|
|
1183
1183
|
var B = null, z = 0, W = null;
|
|
1184
|
-
function
|
|
1184
|
+
function bo(e) {
|
|
1185
1185
|
W = e;
|
|
1186
1186
|
}
|
|
1187
|
-
var
|
|
1187
|
+
var ji = 1, Le = 0, He = Le;
|
|
1188
1188
|
function Dr(e) {
|
|
1189
1189
|
He = e;
|
|
1190
1190
|
}
|
|
1191
|
-
function
|
|
1192
|
-
return ++
|
|
1191
|
+
function zi() {
|
|
1192
|
+
return ++ji;
|
|
1193
1193
|
}
|
|
1194
1194
|
function ht(e) {
|
|
1195
1195
|
var t = e.f;
|
|
@@ -1197,29 +1197,29 @@ function ht(e) {
|
|
|
1197
1197
|
if (t & 2 && (e.f &= ~dt), (t & 4096) !== 0) {
|
|
1198
1198
|
for (var r = e.deps, i = r.length, n = 0; n < i; n++) {
|
|
1199
1199
|
var o = r[n];
|
|
1200
|
-
if (ht(o) &&
|
|
1200
|
+
if (ht(o) && Ii(o), o.wv > e.wv) return !0;
|
|
1201
1201
|
}
|
|
1202
1202
|
(t & 512) !== 0 && x === null && O(e, re);
|
|
1203
1203
|
}
|
|
1204
1204
|
return !1;
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1206
|
+
function Vi(e, t, r = !0) {
|
|
1207
1207
|
var i = e.reactions;
|
|
1208
1208
|
if (i !== null && !(!we && K !== null && Ke.call(K, e)))
|
|
1209
1209
|
for (var n = 0; n < i.length; n++) {
|
|
1210
1210
|
var o = i[n];
|
|
1211
|
-
(o.f & 2) !== 0 ?
|
|
1211
|
+
(o.f & 2) !== 0 ? Vi(o, t, !1) : t === o && (r ? O(o, le) : (o.f & 1024) !== 0 && O(o, Fe), hr(o));
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1215
|
-
var t = B, r = z, i = W, n = T, o = K, s = L, l = Q, c = He,
|
|
1216
|
-
B = null, z = 0, W = null, T = (
|
|
1214
|
+
function Gi(e) {
|
|
1215
|
+
var t = B, r = z, i = W, n = T, o = K, s = L, l = Q, c = He, f = e.f;
|
|
1216
|
+
B = null, z = 0, W = null, T = (f & 96) === 0 ? e : null, K = null, Lt(e.ctx), Q = !1, He = ++Le, e.ac !== null && (xi(() => {
|
|
1217
1217
|
e.ac.abort(lr);
|
|
1218
1218
|
}), e.ac = null);
|
|
1219
1219
|
try {
|
|
1220
1220
|
e.f |= $r;
|
|
1221
|
-
var
|
|
1222
|
-
e.f |=
|
|
1221
|
+
var d = e.fn, v = d();
|
|
1222
|
+
e.f |= ti;
|
|
1223
1223
|
var h = e.deps, g = I?.is_fork;
|
|
1224
1224
|
if (B !== null) {
|
|
1225
1225
|
var p;
|
|
@@ -1231,23 +1231,23 @@ function zi(e) {
|
|
|
1231
1231
|
((y = h[p]).reactions ?? (y.reactions = [])).push(e);
|
|
1232
1232
|
}
|
|
1233
1233
|
} else !g && h !== null && z < h.length && (ct(e, z), h.length = z);
|
|
1234
|
-
if (xt() && W !== null && !Q && h !== null && (e.f & 6146) === 0) for (p = 0; p < W.length; p++)
|
|
1234
|
+
if (xt() && W !== null && !Q && h !== null && (e.f & 6146) === 0) for (p = 0; p < W.length; p++) Vi(W[p], e);
|
|
1235
1235
|
if (n !== null && n !== e) {
|
|
1236
1236
|
if (Le++, n.deps !== null) for (let _ = 0; _ < r; _ += 1) n.deps[_].rv = Le;
|
|
1237
1237
|
if (t !== null) for (const _ of t) _.rv = Le;
|
|
1238
1238
|
W !== null && (i === null ? i = W : i.push(...W));
|
|
1239
1239
|
}
|
|
1240
|
-
return (e.f & 8388608) !== 0 && (e.f ^=
|
|
1240
|
+
return (e.f & 8388608) !== 0 && (e.f ^= ii), v;
|
|
1241
1241
|
} catch (_) {
|
|
1242
|
-
return
|
|
1242
|
+
return fi(_);
|
|
1243
1243
|
} finally {
|
|
1244
1244
|
e.f ^= $r, B = t, z = r, W = i, T = n, K = o, Lt(s), Q = l, He = c;
|
|
1245
1245
|
}
|
|
1246
1246
|
}
|
|
1247
|
-
function
|
|
1247
|
+
function wo(e, t) {
|
|
1248
1248
|
let r = t.reactions;
|
|
1249
1249
|
if (r !== null) {
|
|
1250
|
-
var i =
|
|
1250
|
+
var i = dn.call(r, e);
|
|
1251
1251
|
if (i !== -1) {
|
|
1252
1252
|
var n = r.length - 1;
|
|
1253
1253
|
n === 0 ? r = t.reactions = null : (r[i] = r[n], r.pop());
|
|
@@ -1255,13 +1255,13 @@ function yo(e, t) {
|
|
|
1255
1255
|
}
|
|
1256
1256
|
if (r === null && (t.f & 2) !== 0 && (B === null || !Ke.call(B, t))) {
|
|
1257
1257
|
var o = t;
|
|
1258
|
-
(o.f & 512) !== 0 && (o.f ^= 512, o.f &= ~dt), o.v !== M && cr(o),
|
|
1258
|
+
(o.f & 512) !== 0 && (o.f ^= 512, o.f &= ~dt), o.v !== M && cr(o), ro(o), ct(o, 0);
|
|
1259
1259
|
}
|
|
1260
1260
|
}
|
|
1261
1261
|
function ct(e, t) {
|
|
1262
1262
|
var r = e.deps;
|
|
1263
1263
|
if (r !== null)
|
|
1264
|
-
for (var i = t; i < r.length; i++)
|
|
1264
|
+
for (var i = t; i < r.length; i++) wo(e, r[i]);
|
|
1265
1265
|
}
|
|
1266
1266
|
function Je(e) {
|
|
1267
1267
|
var t = e.f;
|
|
@@ -1271,9 +1271,9 @@ function Je(e) {
|
|
|
1271
1271
|
if (A = e, At = !0, 0)
|
|
1272
1272
|
var n, o;
|
|
1273
1273
|
try {
|
|
1274
|
-
(t & 16777232) !== 0 ?
|
|
1275
|
-
var s =
|
|
1276
|
-
if (e.teardown = typeof s == "function" ? s : null, e.wv =
|
|
1274
|
+
(t & 16777232) !== 0 ? go(e) : yr(e), Ni(e);
|
|
1275
|
+
var s = Gi(e);
|
|
1276
|
+
if (e.teardown = typeof s == "function" ? s : null, e.wv = ji, 0)
|
|
1277
1277
|
for (var l of e.deps) ;
|
|
1278
1278
|
} finally {
|
|
1279
1279
|
At = i, A = r;
|
|
@@ -1282,7 +1282,7 @@ function Je(e) {
|
|
|
1282
1282
|
}
|
|
1283
1283
|
function m(e) {
|
|
1284
1284
|
var t = (e.f & 2) !== 0;
|
|
1285
|
-
if (
|
|
1285
|
+
if (yo?.add(e), T !== null && !Q && !(A !== null && (A.f & 16384) !== 0) && (K === null || !Ke.call(K, e))) {
|
|
1286
1286
|
var r = T.deps;
|
|
1287
1287
|
if ((T.f & 2097152) !== 0)
|
|
1288
1288
|
e.rv < Le && (e.rv = Le, B === null && r !== null && r[z] === e ? z++ : B === null ? B = [e] : B.push(e));
|
|
@@ -1305,26 +1305,26 @@ function m(e) {
|
|
|
1305
1305
|
if (t) {
|
|
1306
1306
|
var c = e;
|
|
1307
1307
|
if (fe) {
|
|
1308
|
-
var
|
|
1309
|
-
return ((c.f & 1024) === 0 && c.reactions !== null ||
|
|
1308
|
+
var f = c.v;
|
|
1309
|
+
return ((c.f & 1024) === 0 && c.reactions !== null || qi(c)) && (f = gr(c)), xe.set(c, f), f;
|
|
1310
1310
|
}
|
|
1311
|
-
var
|
|
1312
|
-
ht(c) && (
|
|
1311
|
+
var d = (c.f & 512) === 0 && !Q && T !== null && (At || (T.f & 512) !== 0), v = (c.f & ti) === 0;
|
|
1312
|
+
ht(c) && (d && (c.f |= 512), Ii(c)), d && !v && (Ei(c), Wi(c));
|
|
1313
1313
|
}
|
|
1314
1314
|
if (x?.has(e)) return x.get(e);
|
|
1315
1315
|
if ((e.f & 8388608) !== 0) throw e.v;
|
|
1316
1316
|
return e.v;
|
|
1317
1317
|
}
|
|
1318
|
-
function
|
|
1318
|
+
function Wi(e) {
|
|
1319
1319
|
if (e.f |= 512, e.deps !== null)
|
|
1320
1320
|
for (const t of e.deps)
|
|
1321
|
-
(t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (
|
|
1321
|
+
(t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (Ei(t), Wi(t));
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1323
|
+
function qi(e) {
|
|
1324
1324
|
if (e.v === M) return !0;
|
|
1325
1325
|
if (e.deps === null) return !1;
|
|
1326
1326
|
for (const t of e.deps)
|
|
1327
|
-
if (xe.has(t) || (t.f & 2) !== 0 &&
|
|
1327
|
+
if (xe.has(t) || (t.f & 2) !== 0 && qi(t)) return !0;
|
|
1328
1328
|
return !1;
|
|
1329
1329
|
}
|
|
1330
1330
|
function Dt(e) {
|
|
@@ -1335,7 +1335,7 @@ function Dt(e) {
|
|
|
1335
1335
|
Q = t;
|
|
1336
1336
|
}
|
|
1337
1337
|
}
|
|
1338
|
-
var yt = /* @__PURE__ */ Symbol("events"),
|
|
1338
|
+
var yt = /* @__PURE__ */ Symbol("events"), To = /* @__PURE__ */ new Set(), Fr = /* @__PURE__ */ new Set(), Br = null;
|
|
1339
1339
|
function jr(e) {
|
|
1340
1340
|
var t = this, r = t.ownerDocument, i = e.type, n = e.composedPath?.() || [], o = n[0] || e.target;
|
|
1341
1341
|
Br = e;
|
|
@@ -1346,9 +1346,9 @@ function jr(e) {
|
|
|
1346
1346
|
e[yt] = t;
|
|
1347
1347
|
return;
|
|
1348
1348
|
}
|
|
1349
|
-
var
|
|
1350
|
-
if (
|
|
1351
|
-
c <=
|
|
1349
|
+
var f = n.indexOf(t);
|
|
1350
|
+
if (f === -1) return;
|
|
1351
|
+
c <= f && (s = c);
|
|
1352
1352
|
}
|
|
1353
1353
|
if (o = n[s] || e.target, o !== t) {
|
|
1354
1354
|
$t(e, "currentTarget", {
|
|
@@ -1357,7 +1357,7 @@ function jr(e) {
|
|
|
1357
1357
|
return o || r;
|
|
1358
1358
|
}
|
|
1359
1359
|
});
|
|
1360
|
-
var
|
|
1360
|
+
var d = T, v = A;
|
|
1361
1361
|
ae(null), Te(null);
|
|
1362
1362
|
try {
|
|
1363
1363
|
for (var h, g = []; o !== null; ) {
|
|
@@ -1378,17 +1378,17 @@ function jr(e) {
|
|
|
1378
1378
|
throw h;
|
|
1379
1379
|
}
|
|
1380
1380
|
} finally {
|
|
1381
|
-
e[yt] = t, delete e.currentTarget, ae(
|
|
1381
|
+
e[yt] = t, delete e.currentTarget, ae(d), Te(v);
|
|
1382
1382
|
}
|
|
1383
1383
|
}
|
|
1384
1384
|
}
|
|
1385
|
-
var
|
|
1386
|
-
function
|
|
1387
|
-
return
|
|
1385
|
+
var Ao = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1386
|
+
function So(e) {
|
|
1387
|
+
return Ao?.createHTML(e) ?? e;
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1390
|
-
var t =
|
|
1391
|
-
return t.innerHTML =
|
|
1389
|
+
function Io(e) {
|
|
1390
|
+
var t = Pi("template");
|
|
1391
|
+
return t.innerHTML = So(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1392
1392
|
}
|
|
1393
1393
|
function St(e, t) {
|
|
1394
1394
|
var r = A;
|
|
@@ -1400,13 +1400,13 @@ function St(e, t) {
|
|
|
1400
1400
|
});
|
|
1401
1401
|
}
|
|
1402
1402
|
// @__NO_SIDE_EFFECTS__
|
|
1403
|
-
function
|
|
1403
|
+
function Eo(e, t) {
|
|
1404
1404
|
var r = (t & 1) !== 0, i = (t & 2) !== 0, n, o = !e.startsWith("<!>");
|
|
1405
1405
|
return () => {
|
|
1406
1406
|
if (Z)
|
|
1407
1407
|
return St(N, null), N;
|
|
1408
|
-
n === void 0 && (n =
|
|
1409
|
-
var s = i ||
|
|
1408
|
+
n === void 0 && (n = Io(o ? e : "<!>" + e), r || (n = /* @__PURE__ */ nr(n)));
|
|
1409
|
+
var s = i || Li ? document.importNode(n, !0) : n.cloneNode(!0);
|
|
1410
1410
|
if (r) {
|
|
1411
1411
|
var l = /* @__PURE__ */ nr(s), c = s.lastChild;
|
|
1412
1412
|
St(l, c);
|
|
@@ -1414,15 +1414,15 @@ function So(e, t) {
|
|
|
1414
1414
|
return s;
|
|
1415
1415
|
};
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1417
|
+
function Ki(e, t) {
|
|
1418
1418
|
if (Z) {
|
|
1419
1419
|
var r = A;
|
|
1420
|
-
((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = N),
|
|
1420
|
+
((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = N), si();
|
|
1421
1421
|
return;
|
|
1422
1422
|
}
|
|
1423
1423
|
e !== null && e.before(t);
|
|
1424
1424
|
}
|
|
1425
|
-
var
|
|
1425
|
+
var ko = [
|
|
1426
1426
|
"allowfullscreen",
|
|
1427
1427
|
"async",
|
|
1428
1428
|
"autofocus",
|
|
@@ -1451,8 +1451,8 @@ var Io = [
|
|
|
1451
1451
|
"defer",
|
|
1452
1452
|
"disablepictureinpicture",
|
|
1453
1453
|
"disableremoteplayback"
|
|
1454
|
-
],
|
|
1455
|
-
...
|
|
1454
|
+
], oa = [
|
|
1455
|
+
...ko,
|
|
1456
1456
|
"formNoValidate",
|
|
1457
1457
|
"isMap",
|
|
1458
1458
|
"noModule",
|
|
@@ -1467,17 +1467,17 @@ var Io = [
|
|
|
1467
1467
|
"allowFullscreen",
|
|
1468
1468
|
"disablePictureInPicture",
|
|
1469
1469
|
"disableRemotePlayback"
|
|
1470
|
-
],
|
|
1471
|
-
function
|
|
1472
|
-
return
|
|
1470
|
+
], Co = ["touchstart", "touchmove"];
|
|
1471
|
+
function $o(e) {
|
|
1472
|
+
return Co.includes(e);
|
|
1473
1473
|
}
|
|
1474
|
-
var
|
|
1474
|
+
var Lo = [
|
|
1475
1475
|
"$state",
|
|
1476
1476
|
"$state.raw",
|
|
1477
1477
|
"$derived",
|
|
1478
1478
|
"$derived.by"
|
|
1479
|
-
],
|
|
1480
|
-
...
|
|
1479
|
+
], sa = [
|
|
1480
|
+
...Lo,
|
|
1481
1481
|
"$state.eager",
|
|
1482
1482
|
"$state.snapshot",
|
|
1483
1483
|
"$props",
|
|
@@ -1493,17 +1493,17 @@ var Co = [
|
|
|
1493
1493
|
"$inspect.trace",
|
|
1494
1494
|
"$host"
|
|
1495
1495
|
], zr = !0;
|
|
1496
|
-
function
|
|
1497
|
-
return
|
|
1496
|
+
function Ui(e, t) {
|
|
1497
|
+
return Yi(e, t);
|
|
1498
1498
|
}
|
|
1499
|
-
function
|
|
1499
|
+
function Oo(e, t) {
|
|
1500
1500
|
ir(), t.intro = t.intro ?? !1;
|
|
1501
1501
|
const r = t.target, i = Z, n = N;
|
|
1502
1502
|
try {
|
|
1503
1503
|
for (var o = /* @__PURE__ */ nr(r); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ Ze(o);
|
|
1504
1504
|
if (!o) throw kt;
|
|
1505
1505
|
pt(!0), at(o);
|
|
1506
|
-
const s =
|
|
1506
|
+
const s = Yi(e, {
|
|
1507
1507
|
...t,
|
|
1508
1508
|
anchor: o
|
|
1509
1509
|
});
|
|
@@ -1511,30 +1511,30 @@ function $o(e, t) {
|
|
|
1511
1511
|
} catch (s) {
|
|
1512
1512
|
if (s instanceof Error && s.message.split(`
|
|
1513
1513
|
`).some((l) => l.startsWith("https://svelte.dev/e/"))) throw s;
|
|
1514
|
-
return s !== kt && console.warn("Failed to hydrate: ", s), t.recover === !1 &&
|
|
1514
|
+
return s !== kt && console.warn("Failed to hydrate: ", s), t.recover === !1 && kn(), ir(), lo(r), pt(!1), Ui(e, t);
|
|
1515
1515
|
} finally {
|
|
1516
1516
|
pt(i), at(n);
|
|
1517
1517
|
}
|
|
1518
1518
|
}
|
|
1519
1519
|
var bt = /* @__PURE__ */ new Map();
|
|
1520
|
-
function
|
|
1520
|
+
function Yi(e, { target: t, anchor: r, props: i = {}, events: n, context: o, intro: s = !0, transformError: l }) {
|
|
1521
1521
|
ir();
|
|
1522
|
-
var c = void 0,
|
|
1523
|
-
var
|
|
1524
|
-
|
|
1522
|
+
var c = void 0, f = ho(() => {
|
|
1523
|
+
var d = r ?? t.appendChild(Mi());
|
|
1524
|
+
Yn(d, { pending: () => {
|
|
1525
1525
|
} }, (g) => {
|
|
1526
|
-
|
|
1526
|
+
ci({});
|
|
1527
1527
|
var p = L;
|
|
1528
1528
|
if (o && (p.c = o), n && (i.$$events = n), Z && St(g, null), zr = s, c = e(g, i) || {}, zr = !0, Z && (A.nodes.end = N, N === null || N.nodeType !== 8 || N.data !== "]"))
|
|
1529
|
-
throw
|
|
1530
|
-
|
|
1529
|
+
throw oi(), kt;
|
|
1530
|
+
ui();
|
|
1531
1531
|
}, l);
|
|
1532
1532
|
var v = /* @__PURE__ */ new Set(), h = (g) => {
|
|
1533
1533
|
for (var p = 0; p < g.length; p++) {
|
|
1534
1534
|
var y = g[p];
|
|
1535
1535
|
if (!v.has(y)) {
|
|
1536
1536
|
v.add(y);
|
|
1537
|
-
var _ =
|
|
1537
|
+
var _ = $o(y);
|
|
1538
1538
|
for (const C of [t, document]) {
|
|
1539
1539
|
var E = bt.get(C);
|
|
1540
1540
|
E === void 0 && (E = /* @__PURE__ */ new Map(), bt.set(C, E));
|
|
@@ -1544,28 +1544,28 @@ function Ki(e, { target: t, anchor: r, props: i = {}, events: n, context: o, int
|
|
|
1544
1544
|
}
|
|
1545
1545
|
}
|
|
1546
1546
|
};
|
|
1547
|
-
return h(
|
|
1547
|
+
return h(fn(To)), Fr.add(h), () => {
|
|
1548
1548
|
for (var g of v) for (const _ of [t, document]) {
|
|
1549
1549
|
var p = bt.get(_), y = p.get(g);
|
|
1550
1550
|
--y == 0 ? (_.removeEventListener(g, jr), p.delete(g), p.size === 0 && bt.delete(_)) : p.set(g, y);
|
|
1551
1551
|
}
|
|
1552
|
-
Fr.delete(h),
|
|
1552
|
+
Fr.delete(h), d !== r && d.parentNode?.removeChild(d);
|
|
1553
1553
|
};
|
|
1554
1554
|
});
|
|
1555
|
-
return or.set(c,
|
|
1555
|
+
return or.set(c, f), c;
|
|
1556
1556
|
}
|
|
1557
1557
|
var or = /* @__PURE__ */ new WeakMap();
|
|
1558
|
-
function
|
|
1558
|
+
function Ro(e, t) {
|
|
1559
1559
|
const r = or.get(e);
|
|
1560
1560
|
return r ? (or.delete(e), r(t)) : Promise.resolve();
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1563
|
-
L === null &&
|
|
1562
|
+
function Mo(e) {
|
|
1563
|
+
L === null && Tn("onMount"), ft && L.l !== null ? Po(L).m.push(e) : Ce(() => {
|
|
1564
1564
|
const t = Dt(e);
|
|
1565
1565
|
if (typeof t == "function") return t;
|
|
1566
1566
|
});
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1568
|
+
function Po(e) {
|
|
1569
1569
|
var t = e.l;
|
|
1570
1570
|
return t.u ?? (t.u = {
|
|
1571
1571
|
a: [],
|
|
@@ -1573,34 +1573,34 @@ function Ro(e) {
|
|
|
1573
1573
|
m: []
|
|
1574
1574
|
});
|
|
1575
1575
|
}
|
|
1576
|
-
var
|
|
1576
|
+
var Xi, Ve = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), Vt = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakSet(), Ji = class {
|
|
1577
1577
|
constructor(e) {
|
|
1578
1578
|
ur(this, Vr), w(this, Ve, /* @__PURE__ */ new WeakMap()), w(this, Mt, void 0), w(this, Vt, void 0), b(Vt, this, e);
|
|
1579
1579
|
}
|
|
1580
1580
|
observe(e, t) {
|
|
1581
1581
|
var r = a(Ve, this).get(e) || /* @__PURE__ */ new Set();
|
|
1582
|
-
return r.add(t), a(Ve, this).set(e, r), S(Vr, this,
|
|
1582
|
+
return r.add(t), a(Ve, this).set(e, r), S(Vr, this, xo).call(this).observe(e, a(Vt, this)), () => {
|
|
1583
1583
|
var i = a(Ve, this).get(e);
|
|
1584
1584
|
i.delete(t), i.size === 0 && (a(Ve, this).delete(e), a(Mt, this).unobserve(e));
|
|
1585
1585
|
};
|
|
1586
1586
|
}
|
|
1587
1587
|
};
|
|
1588
|
-
|
|
1589
|
-
function
|
|
1588
|
+
Xi = Ji;
|
|
1589
|
+
function xo() {
|
|
1590
1590
|
return a(Mt, this) ?? b(Mt, this, new ResizeObserver((e) => {
|
|
1591
1591
|
for (var t of e) {
|
|
1592
|
-
|
|
1592
|
+
Xi.entries.set(t.target, t);
|
|
1593
1593
|
for (var r of a(Ve, this).get(t.target) || []) r(t);
|
|
1594
1594
|
}
|
|
1595
1595
|
}));
|
|
1596
1596
|
}
|
|
1597
|
-
u(
|
|
1597
|
+
u(Ji, "entries", /* @__PURE__ */ new WeakMap());
|
|
1598
1598
|
function Gr(e, t) {
|
|
1599
1599
|
return e === t || e?.[nt] === t;
|
|
1600
1600
|
}
|
|
1601
|
-
function
|
|
1601
|
+
function Ho(e = {}, t, r, i) {
|
|
1602
1602
|
var n = L.r, o = A;
|
|
1603
|
-
return
|
|
1603
|
+
return po(() => {
|
|
1604
1604
|
var s, l;
|
|
1605
1605
|
return _r(() => {
|
|
1606
1606
|
s = l, l = i?.() || [], Dt(() => {
|
|
@@ -1609,39 +1609,39 @@ function Po(e = {}, t, r, i) {
|
|
|
1609
1609
|
}), () => {
|
|
1610
1610
|
let c = o;
|
|
1611
1611
|
for (; c !== n && c.parent !== null && c.parent.f & 33554432; ) c = c.parent;
|
|
1612
|
-
const
|
|
1612
|
+
const f = () => {
|
|
1613
1613
|
l && Gr(r(...l), e) && t(null, ...l);
|
|
1614
|
-
},
|
|
1614
|
+
}, d = c.teardown;
|
|
1615
1615
|
c.teardown = () => {
|
|
1616
|
-
|
|
1616
|
+
f(), d?.();
|
|
1617
1617
|
};
|
|
1618
1618
|
};
|
|
1619
1619
|
}), e;
|
|
1620
1620
|
}
|
|
1621
1621
|
function ge(e, t, r, i) {
|
|
1622
|
-
var n = !ft || (r & 2) !== 0, o = (r & 8) !== 0, s = (r & 16) !== 0, l = i, c = !0,
|
|
1623
|
-
let
|
|
1622
|
+
var n = !ft || (r & 2) !== 0, o = (r & 8) !== 0, s = (r & 16) !== 0, l = i, c = !0, f = () => (c && (c = !1, l = s ? Dt(i) : i), l);
|
|
1623
|
+
let d;
|
|
1624
1624
|
if (o) {
|
|
1625
|
-
var v = nt in e ||
|
|
1626
|
-
|
|
1625
|
+
var v = nt in e || ni in e;
|
|
1626
|
+
d = Oe(e, t)?.set ?? (v && t in e ? (C) => e[t] = C : void 0);
|
|
1627
1627
|
}
|
|
1628
1628
|
var h, g = !1;
|
|
1629
|
-
o ? [h, g] =
|
|
1629
|
+
o ? [h, g] = zn(() => e[t]) : h = e[t], h === void 0 && i !== void 0 && (h = f(), d && (n && Cn(t), d(h)));
|
|
1630
1630
|
var p;
|
|
1631
1631
|
if (n ? p = () => {
|
|
1632
1632
|
var C = e[t];
|
|
1633
|
-
return C === void 0 ?
|
|
1633
|
+
return C === void 0 ? f() : (c = !0, C);
|
|
1634
1634
|
} : p = () => {
|
|
1635
1635
|
var C = e[t];
|
|
1636
1636
|
return C !== void 0 && (l = void 0), C === void 0 ? l : C;
|
|
1637
1637
|
}, n && (r & 4) === 0) return p;
|
|
1638
|
-
if (
|
|
1638
|
+
if (d) {
|
|
1639
1639
|
var y = e.$$legacy;
|
|
1640
1640
|
return (function(C, U) {
|
|
1641
|
-
return arguments.length > 0 ? ((!n || !U || y || g) &&
|
|
1641
|
+
return arguments.length > 0 ? ((!n || !U || y || g) && d(U ? p() : C), C) : p();
|
|
1642
1642
|
});
|
|
1643
1643
|
}
|
|
1644
|
-
var _ = !1, E = ((r & 1) !== 0 ? vr :
|
|
1644
|
+
var _ = !1, E = ((r & 1) !== 0 ? vr : eo)(() => (_ = !1, p()));
|
|
1645
1645
|
o && m(E);
|
|
1646
1646
|
var j = A;
|
|
1647
1647
|
return (function(C, U) {
|
|
@@ -1652,14 +1652,14 @@ function ge(e, t, r, i) {
|
|
|
1652
1652
|
return fe && _ || (j.f & 16384) !== 0 ? E.v : m(E);
|
|
1653
1653
|
});
|
|
1654
1654
|
}
|
|
1655
|
-
function
|
|
1656
|
-
return new
|
|
1655
|
+
function No(e) {
|
|
1656
|
+
return new Do(e);
|
|
1657
1657
|
}
|
|
1658
|
-
var Ee = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(),
|
|
1658
|
+
var Ee = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), Do = class {
|
|
1659
1659
|
constructor(e) {
|
|
1660
1660
|
w(this, Ee, void 0), w(this, ie, void 0);
|
|
1661
1661
|
var t = /* @__PURE__ */ new Map(), r = (n, o) => {
|
|
1662
|
-
var s = /* @__PURE__ */
|
|
1662
|
+
var s = /* @__PURE__ */ io(o, !1, !1);
|
|
1663
1663
|
return t.set(n, s), s;
|
|
1664
1664
|
};
|
|
1665
1665
|
const i = new Proxy({
|
|
@@ -1670,13 +1670,13 @@ var Ee = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), Ho =
|
|
|
1670
1670
|
return m(t.get(o) ?? r(o, Reflect.get(n, o)));
|
|
1671
1671
|
},
|
|
1672
1672
|
has(n, o) {
|
|
1673
|
-
return o ===
|
|
1673
|
+
return o === ni ? !0 : (m(t.get(o) ?? r(o, Reflect.get(n, o))), Reflect.has(n, o));
|
|
1674
1674
|
},
|
|
1675
1675
|
set(n, o, s) {
|
|
1676
1676
|
return $(t.get(o) ?? r(o, s), s), Reflect.set(n, o, s);
|
|
1677
1677
|
}
|
|
1678
1678
|
});
|
|
1679
|
-
b(ie, this, (e.hydrate ?
|
|
1679
|
+
b(ie, this, (e.hydrate ? Oo : Ui)(e.component, {
|
|
1680
1680
|
target: e.target,
|
|
1681
1681
|
anchor: e.anchor,
|
|
1682
1682
|
props: i,
|
|
@@ -1698,7 +1698,7 @@ var Ee = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), Ho =
|
|
|
1698
1698
|
a(ie, this).$set = (n) => {
|
|
1699
1699
|
Object.assign(i, n);
|
|
1700
1700
|
}, a(ie, this).$destroy = () => {
|
|
1701
|
-
|
|
1701
|
+
Ro(a(ie, this));
|
|
1702
1702
|
};
|
|
1703
1703
|
}
|
|
1704
1704
|
$set(e) {
|
|
@@ -1714,8 +1714,8 @@ var Ee = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), Ho =
|
|
|
1714
1714
|
$destroy() {
|
|
1715
1715
|
a(ie, this).$destroy();
|
|
1716
1716
|
}
|
|
1717
|
-
},
|
|
1718
|
-
typeof HTMLElement == "function" && (
|
|
1717
|
+
}, Qi;
|
|
1718
|
+
typeof HTMLElement == "function" && (Qi = class extends HTMLElement {
|
|
1719
1719
|
constructor(e, t, r) {
|
|
1720
1720
|
super(), u(this, "$$ctor", void 0), u(this, "$$s", void 0), u(this, "$$c", void 0), u(this, "$$cn", !1), u(this, "$$d", {}), u(this, "$$r", !1), u(this, "$$p_d", {}), u(this, "$$l", {}), u(this, "$$l_u", /* @__PURE__ */ new Map()), u(this, "$$me", void 0), u(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
1721
1721
|
}
|
|
@@ -1736,19 +1736,19 @@ typeof HTMLElement == "function" && (Xi = class extends HTMLElement {
|
|
|
1736
1736
|
if (this.$$cn = !0, !this.$$c) {
|
|
1737
1737
|
let e = function(i) {
|
|
1738
1738
|
return (n) => {
|
|
1739
|
-
const o =
|
|
1740
|
-
i !== "default" && (o.name = i),
|
|
1739
|
+
const o = Pi("slot");
|
|
1740
|
+
i !== "default" && (o.name = i), Ki(n, o);
|
|
1741
1741
|
};
|
|
1742
1742
|
};
|
|
1743
1743
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
1744
|
-
const t = {}, r =
|
|
1744
|
+
const t = {}, r = Fo(this);
|
|
1745
1745
|
for (const i of this.$$s) i in r && (i === "default" && !this.$$d.children ? (this.$$d.children = e(i), t.default = !0) : t[i] = e(i));
|
|
1746
1746
|
for (const i of this.attributes) {
|
|
1747
1747
|
const n = this.$$g_p(i.name);
|
|
1748
1748
|
n in this.$$d || (this.$$d[n] = It(n, i.value, this.$$p_d, "toProp"));
|
|
1749
1749
|
}
|
|
1750
1750
|
for (const i in this.$$p_d) !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
1751
|
-
this.$$c =
|
|
1751
|
+
this.$$c = No({
|
|
1752
1752
|
component: this.$$ctor,
|
|
1753
1753
|
target: this.$$shadowRoot || this,
|
|
1754
1754
|
props: {
|
|
@@ -1756,7 +1756,7 @@ typeof HTMLElement == "function" && (Xi = class extends HTMLElement {
|
|
|
1756
1756
|
$$slots: t,
|
|
1757
1757
|
$$host: this
|
|
1758
1758
|
}
|
|
1759
|
-
}), this.$$me =
|
|
1759
|
+
}), this.$$me = fo(() => {
|
|
1760
1760
|
_r(() => {
|
|
1761
1761
|
this.$$r = !0;
|
|
1762
1762
|
for (const i of Ct(this.$$c)) {
|
|
@@ -1813,14 +1813,14 @@ function It(e, t, r, i) {
|
|
|
1813
1813
|
return t;
|
|
1814
1814
|
}
|
|
1815
1815
|
}
|
|
1816
|
-
function
|
|
1816
|
+
function Fo(e) {
|
|
1817
1817
|
const t = {};
|
|
1818
1818
|
return e.childNodes.forEach((r) => {
|
|
1819
1819
|
t[r.slot || "default"] = !0;
|
|
1820
1820
|
}), t;
|
|
1821
1821
|
}
|
|
1822
|
-
function
|
|
1823
|
-
let s = class extends
|
|
1822
|
+
function Bo(e, t, r, i, n, o) {
|
|
1823
|
+
let s = class extends Qi {
|
|
1824
1824
|
constructor() {
|
|
1825
1825
|
super(e, r, n), this.$$p_d = t;
|
|
1826
1826
|
}
|
|
@@ -1835,8 +1835,8 @@ function Do(e, t, r, i, n, o) {
|
|
|
1835
1835
|
},
|
|
1836
1836
|
set(c) {
|
|
1837
1837
|
c = It(l, c, t), this.$$d[l] = c;
|
|
1838
|
-
var
|
|
1839
|
-
|
|
1838
|
+
var f = this.$$c;
|
|
1839
|
+
f && (Oe(f, l)?.get ? f[l] = c : f.$set({ [l]: c }));
|
|
1840
1840
|
}
|
|
1841
1841
|
});
|
|
1842
1842
|
}), i.forEach((l) => {
|
|
@@ -1845,14 +1845,14 @@ function Do(e, t, r, i, n, o) {
|
|
|
1845
1845
|
} });
|
|
1846
1846
|
}), o && (s = o(s)), e.element = s, s;
|
|
1847
1847
|
}
|
|
1848
|
-
var
|
|
1848
|
+
var jo = class extends Event {
|
|
1849
1849
|
constructor(e, t, r, i) {
|
|
1850
1850
|
super("context-request", {
|
|
1851
1851
|
bubbles: !0,
|
|
1852
1852
|
composed: !0
|
|
1853
1853
|
}), u(this, "context", void 0), u(this, "contextTarget", void 0), u(this, "callback", void 0), u(this, "subscribe", void 0), this.context = e, this.contextTarget = t, this.callback = r, this.subscribe = i ?? !1;
|
|
1854
1854
|
}
|
|
1855
|
-
},
|
|
1855
|
+
}, zo = class {
|
|
1856
1856
|
constructor(e, t) {
|
|
1857
1857
|
u(this, "host", void 0), u(this, "context", void 0), u(this, "subscribe", void 0), u(this, "onValue", void 0), u(this, "isConnected", !1), u(this, "unsubscribe", void 0), u(this, "currentValue", void 0), u(this, "handleValue", (r, i) => {
|
|
1858
1858
|
i !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = i), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = r, this.onValue?.(r);
|
|
@@ -1868,21 +1868,21 @@ var Fo = class extends Event {
|
|
|
1868
1868
|
return this.currentValue;
|
|
1869
1869
|
}
|
|
1870
1870
|
requestValue() {
|
|
1871
|
-
this.host.dispatchEvent(new
|
|
1871
|
+
this.host.dispatchEvent(new jo(this.context, this.host, this.handleValue, this.subscribe));
|
|
1872
1872
|
}
|
|
1873
|
-
}, Ft = (e) => e,
|
|
1874
|
-
function
|
|
1873
|
+
}, Ft = (e) => e, Vo = Ft(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.runtimeContext")), aa = Ft(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), Go = Ft(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.shellContext")), la = Ft(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.regionScopeContext"));
|
|
1874
|
+
function Zi(e, t, r) {
|
|
1875
1875
|
let i = !1;
|
|
1876
|
-
const n = new
|
|
1876
|
+
const n = new zo(e, {
|
|
1877
1877
|
context: t,
|
|
1878
1878
|
subscribe: !0,
|
|
1879
|
-
onValue: (
|
|
1880
|
-
i = !0, r(
|
|
1879
|
+
onValue: (f) => {
|
|
1880
|
+
i = !0, r(f);
|
|
1881
1881
|
}
|
|
1882
1882
|
});
|
|
1883
1883
|
n.connect();
|
|
1884
|
-
const o = (
|
|
1885
|
-
|
|
1884
|
+
const o = (f) => {
|
|
1885
|
+
f.context === t && n.requestValue();
|
|
1886
1886
|
};
|
|
1887
1887
|
e.addEventListener("context-provider", o);
|
|
1888
1888
|
let s = 0;
|
|
@@ -1897,17 +1897,17 @@ function Ji(e, t, r) {
|
|
|
1897
1897
|
globalThis.clearInterval(c), e.removeEventListener("context-provider", o), n.disconnect();
|
|
1898
1898
|
};
|
|
1899
1899
|
}
|
|
1900
|
-
function Vo(e, t) {
|
|
1901
|
-
return Ji(e, jo, t);
|
|
1902
|
-
}
|
|
1903
|
-
function Go(e, t) {
|
|
1904
|
-
return Ji(e, zo, t);
|
|
1905
|
-
}
|
|
1906
1900
|
function Wo(e, t) {
|
|
1907
|
-
return
|
|
1901
|
+
return Zi(e, Vo, t);
|
|
1908
1902
|
}
|
|
1909
1903
|
function qo(e, t) {
|
|
1910
|
-
return
|
|
1904
|
+
return Zi(e, Go, t);
|
|
1905
|
+
}
|
|
1906
|
+
function Ko(e, t) {
|
|
1907
|
+
return Wo(e, t);
|
|
1908
|
+
}
|
|
1909
|
+
function Uo(e, t) {
|
|
1910
|
+
return qo(e, t);
|
|
1911
1911
|
}
|
|
1912
1912
|
var Wr;
|
|
1913
1913
|
(function(e) {
|
|
@@ -1917,12 +1917,12 @@ var qr;
|
|
|
1917
1917
|
(function(e) {
|
|
1918
1918
|
e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange", e.UNDERLINE = "underline";
|
|
1919
1919
|
})(qr || (qr = {}));
|
|
1920
|
-
function
|
|
1920
|
+
function en(e) {
|
|
1921
1921
|
return (...t) => {
|
|
1922
1922
|
console.debug(`[${e}]`, ...t);
|
|
1923
1923
|
};
|
|
1924
1924
|
}
|
|
1925
|
-
var
|
|
1925
|
+
var ca = en("I18nService"), Gt = {
|
|
1926
1926
|
assessment: [],
|
|
1927
1927
|
section: [],
|
|
1928
1928
|
item: [],
|
|
@@ -1943,19 +1943,19 @@ function me(e, t) {
|
|
|
1943
1943
|
if (e.find((r) => typeof r != "string") !== void 0) throw new Error(`Invalid tools config at "${t}": all entries must be strings.`);
|
|
1944
1944
|
return e;
|
|
1945
1945
|
}
|
|
1946
|
-
function
|
|
1946
|
+
function Yo(e) {
|
|
1947
1947
|
if (e != null) {
|
|
1948
1948
|
if (!Ne(e)) throw new Error('Invalid tools config at "placement": expected an object with section/item/passage arrays.');
|
|
1949
1949
|
return e;
|
|
1950
1950
|
}
|
|
1951
1951
|
}
|
|
1952
|
-
function
|
|
1952
|
+
function Xo(e) {
|
|
1953
1953
|
if (e != null) {
|
|
1954
1954
|
if (!Ne(e)) throw new Error('Invalid tools config at "policy": expected an object with allowed/blocked arrays.');
|
|
1955
1955
|
return e;
|
|
1956
1956
|
}
|
|
1957
1957
|
}
|
|
1958
|
-
function
|
|
1958
|
+
function Jo(e, t) {
|
|
1959
1959
|
if (t == null) return;
|
|
1960
1960
|
if (!Ne(t)) throw new Error(`Invalid tools config at "providers.${e}": expected an object.`);
|
|
1961
1961
|
const r = t;
|
|
@@ -1964,14 +1964,14 @@ function Yo(e, t) {
|
|
|
1964
1964
|
if ("provider" in r && r.provider !== void 0 && !Ne(r.provider)) throw new Error(`Invalid tools config at "providers.${e}.provider": expected an object.`);
|
|
1965
1965
|
return r;
|
|
1966
1966
|
}
|
|
1967
|
-
function
|
|
1967
|
+
function Qo(e) {
|
|
1968
1968
|
if (e == null) return {};
|
|
1969
1969
|
if (!Ne(e)) throw new Error('Invalid tools config at "providers": expected an object keyed by tool id.');
|
|
1970
1970
|
const t = {};
|
|
1971
|
-
for (const [r, i] of Object.entries(e)) t[r] =
|
|
1971
|
+
for (const [r, i] of Object.entries(e)) t[r] = Jo(r, i);
|
|
1972
1972
|
return t;
|
|
1973
1973
|
}
|
|
1974
|
-
function
|
|
1974
|
+
function tn(e) {
|
|
1975
1975
|
const t = e.trim();
|
|
1976
1976
|
return t || "";
|
|
1977
1977
|
}
|
|
@@ -1980,20 +1980,20 @@ function _e(e) {
|
|
|
1980
1980
|
const t = /* @__PURE__ */ new Set();
|
|
1981
1981
|
for (const r of e) {
|
|
1982
1982
|
if (typeof r != "string") throw new Error("Invalid tools config: tool list entries must be strings.");
|
|
1983
|
-
const i =
|
|
1983
|
+
const i = tn(r);
|
|
1984
1984
|
i && t.add(i);
|
|
1985
1985
|
}
|
|
1986
1986
|
return Array.from(t);
|
|
1987
1987
|
}
|
|
1988
|
-
function
|
|
1988
|
+
function Zo(e, t) {
|
|
1989
1989
|
if (e != null) {
|
|
1990
1990
|
if (e === "on" || e === "off") return e;
|
|
1991
1991
|
throw new Error(`Invalid tools config at "${t}": expected "on" or "off", got ${JSON.stringify(e)}.`);
|
|
1992
1992
|
}
|
|
1993
1993
|
}
|
|
1994
|
-
function
|
|
1994
|
+
function es(e) {
|
|
1995
1995
|
if (e != null && !Ne(e)) throw new Error('Invalid tools config: expected an object with "policy", "placement", and "providers".');
|
|
1996
|
-
const t =
|
|
1996
|
+
const t = Xo(e?.policy), r = Yo(e?.placement), i = Qo(e?.providers), n = Zo(e?.pnpEnforcement, "pnpEnforcement"), o = {
|
|
1997
1997
|
policy: {
|
|
1998
1998
|
allowed: _e(me(t?.allowed, "policy.allowed")),
|
|
1999
1999
|
blocked: _e(me(t?.blocked, "policy.blocked"))
|
|
@@ -2007,7 +2007,7 @@ function Qo(e) {
|
|
|
2007
2007
|
};
|
|
2008
2008
|
return n && (o.pnpEnforcement = n), o;
|
|
2009
2009
|
}
|
|
2010
|
-
var
|
|
2010
|
+
var ts = [
|
|
2011
2011
|
"assessment",
|
|
2012
2012
|
"section",
|
|
2013
2013
|
"item",
|
|
@@ -2018,7 +2018,7 @@ var Zo = [
|
|
|
2018
2018
|
function Et(e, t) {
|
|
2019
2019
|
if (typeof e != "string" || e.trim().length === 0) throw new Error(`Invalid tool registration: "${t}" must be a non-empty string.`);
|
|
2020
2020
|
}
|
|
2021
|
-
var
|
|
2021
|
+
var rs = [
|
|
2022
2022
|
{
|
|
2023
2023
|
pattern: /<script\b/i,
|
|
2024
2024
|
reason: "contains a <script> tag"
|
|
@@ -2036,17 +2036,17 @@ var es = [
|
|
|
2036
2036
|
reason: "contains a <foreignObject> element"
|
|
2037
2037
|
}
|
|
2038
2038
|
];
|
|
2039
|
-
function
|
|
2039
|
+
function is(e, t, r) {
|
|
2040
2040
|
const i = t.trimStart(), n = i.toLowerCase().startsWith("<svg"), o = /^https?:/i.test(i);
|
|
2041
2041
|
if (/^data:/i.test(i)) throw new Error(`Invalid tool registration "${e}": "${r}" may not be a data: URL.`);
|
|
2042
2042
|
if (!(!n && !o)) {
|
|
2043
|
-
for (const { pattern: s, reason: l } of
|
|
2043
|
+
for (const { pattern: s, reason: l } of rs) if (s.test(t)) throw new Error(`Invalid tool registration "${e}": "${r}" ${l}. Inline SVG icons must not include scriptable content.`);
|
|
2044
2044
|
}
|
|
2045
2045
|
}
|
|
2046
2046
|
function Kr(e) {
|
|
2047
2047
|
if (Et(e.toolId, "toolId"), Et(e.name, "name"), Et(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.`);
|
|
2048
|
-
if (typeof e.icon == "string" &&
|
|
2049
|
-
const t = e.supportedLevels.find((r) => !
|
|
2048
|
+
if (typeof e.icon == "string" && is(e.toolId, e.icon, "icon"), !Array.isArray(e.supportedLevels) || e.supportedLevels.length === 0) throw new Error(`Invalid tool registration "${e.toolId}": "supportedLevels" must be a non-empty array.`);
|
|
2049
|
+
const t = e.supportedLevels.find((r) => !ts.includes(r));
|
|
2050
2050
|
if (t) throw new Error(`Invalid tool registration "${e.toolId}": unsupported level "${t}".`);
|
|
2051
2051
|
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)}".`);
|
|
2052
2052
|
if (e.singletonScope !== void 0 && e.singletonScope !== "section") throw new Error(`Invalid tool registration "${e.toolId}": unsupported singletonScope "${String(e.singletonScope)}".`);
|
|
@@ -2055,12 +2055,12 @@ function Kr(e) {
|
|
|
2055
2055
|
if (typeof e.isVisibleInContext != "function") throw new Error(`Invalid tool registration "${e.toolId}": "isVisibleInContext" must be a function.`);
|
|
2056
2056
|
if (typeof e.renderToolbar != "function") throw new Error(`Invalid tool registration "${e.toolId}": "renderToolbar" must be a function.`);
|
|
2057
2057
|
}
|
|
2058
|
-
var
|
|
2058
|
+
var ns = class {
|
|
2059
2059
|
constructor() {
|
|
2060
2060
|
u(this, "tools", /* @__PURE__ */ new Map()), u(this, "pnpIndex", /* @__PURE__ */ new Map()), u(this, "componentOverrides", {}), u(this, "moduleLoaders", /* @__PURE__ */ new Map()), u(this, "loadedToolModules", /* @__PURE__ */ new Set()), u(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
|
|
2061
2061
|
}
|
|
2062
2062
|
normalizeToolId(e) {
|
|
2063
|
-
return
|
|
2063
|
+
return tn(e);
|
|
2064
2064
|
}
|
|
2065
2065
|
normalizeToolIds(e) {
|
|
2066
2066
|
return e.map((t) => this.normalizeToolId(t));
|
|
@@ -2198,20 +2198,20 @@ var rs = class {
|
|
|
2198
2198
|
return i.renderToolbar(t, n);
|
|
2199
2199
|
}
|
|
2200
2200
|
};
|
|
2201
|
-
function
|
|
2201
|
+
function rn(e) {
|
|
2202
2202
|
return e.level === "item";
|
|
2203
2203
|
}
|
|
2204
|
-
function
|
|
2204
|
+
function os(e) {
|
|
2205
2205
|
return e.level === "passage";
|
|
2206
2206
|
}
|
|
2207
|
-
function
|
|
2207
|
+
function ss(e) {
|
|
2208
2208
|
return e.level === "rubric";
|
|
2209
2209
|
}
|
|
2210
|
-
function
|
|
2210
|
+
function nn(e) {
|
|
2211
2211
|
return e.level === "element";
|
|
2212
2212
|
}
|
|
2213
2213
|
function br(e) {
|
|
2214
|
-
if (
|
|
2214
|
+
if (nn(e)) {
|
|
2215
2215
|
const t = e.item.config;
|
|
2216
2216
|
if (!t) return "";
|
|
2217
2217
|
const r = [], i = (l) => l.replace(/<[^>]*>/g, " ").trim(), n = t.elements?.[e.elementId];
|
|
@@ -2221,12 +2221,12 @@ function br(e) {
|
|
|
2221
2221
|
for (const l of Object.values(s))
|
|
2222
2222
|
if (typeof l == "string" && r.push(i(l)), Array.isArray(l)) {
|
|
2223
2223
|
for (const c of l) if (c && typeof c == "object")
|
|
2224
|
-
for (const
|
|
2224
|
+
for (const f of Object.values(c)) typeof f == "string" && r.push(i(f));
|
|
2225
2225
|
}
|
|
2226
2226
|
}
|
|
2227
2227
|
return r.filter(Boolean).join(" ").trim();
|
|
2228
2228
|
}
|
|
2229
|
-
if (
|
|
2229
|
+
if (rn(e)) {
|
|
2230
2230
|
const t = e.item;
|
|
2231
2231
|
if (!t?.config) return "";
|
|
2232
2232
|
const r = t.config, i = [], n = (c) => c.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2237,15 +2237,15 @@ function br(e) {
|
|
|
2237
2237
|
const s = r.models, l = Array.isArray(s) ? s : s && typeof s == "object" ? Object.values(s) : [];
|
|
2238
2238
|
for (const c of l)
|
|
2239
2239
|
if (!(!c || typeof c != "object")) {
|
|
2240
|
-
for (const
|
|
2241
|
-
if (typeof
|
|
2242
|
-
for (const
|
|
2243
|
-
for (const v of Object.values(
|
|
2240
|
+
for (const f of Object.values(c))
|
|
2241
|
+
if (typeof f == "string" && i.push(n(f)), Array.isArray(f)) {
|
|
2242
|
+
for (const d of f) if (d && typeof d == "object")
|
|
2243
|
+
for (const v of Object.values(d)) typeof v == "string" && i.push(n(v));
|
|
2244
2244
|
}
|
|
2245
2245
|
}
|
|
2246
2246
|
return i.filter(Boolean).join(" ").trim();
|
|
2247
2247
|
}
|
|
2248
|
-
if (
|
|
2248
|
+
if (os(e)) {
|
|
2249
2249
|
const t = e.passage;
|
|
2250
2250
|
if (!t?.config) return "";
|
|
2251
2251
|
const r = t.config, i = [], n = (c) => c.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2256,15 +2256,15 @@ function br(e) {
|
|
|
2256
2256
|
const s = r.models, l = Array.isArray(s) ? s : s && typeof s == "object" ? Object.values(s) : [];
|
|
2257
2257
|
for (const c of l)
|
|
2258
2258
|
if (!(!c || typeof c != "object")) {
|
|
2259
|
-
for (const
|
|
2260
|
-
if (typeof
|
|
2261
|
-
for (const
|
|
2262
|
-
for (const v of Object.values(
|
|
2259
|
+
for (const f of Object.values(c))
|
|
2260
|
+
if (typeof f == "string" && i.push(n(f)), Array.isArray(f)) {
|
|
2261
|
+
for (const d of f) if (d && typeof d == "object")
|
|
2262
|
+
for (const v of Object.values(d)) typeof v == "string" && i.push(n(v));
|
|
2263
2263
|
}
|
|
2264
2264
|
}
|
|
2265
2265
|
return i.filter(Boolean).join(" ").trim();
|
|
2266
2266
|
}
|
|
2267
|
-
if (
|
|
2267
|
+
if (ss(e)) {
|
|
2268
2268
|
const t = e.rubricBlock;
|
|
2269
2269
|
return t.passage?.config ? (t.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (t.content || "").replace(/<[^>]*>/g, " ").trim();
|
|
2270
2270
|
}
|
|
@@ -2281,7 +2281,7 @@ function Bt(e) {
|
|
|
2281
2281
|
/\d+\s*[+\-*/=]\s*\d+/
|
|
2282
2282
|
].some((r) => r.test(t));
|
|
2283
2283
|
}
|
|
2284
|
-
function
|
|
2284
|
+
function as(e) {
|
|
2285
2285
|
const t = [
|
|
2286
2286
|
"pie-multiple-choice",
|
|
2287
2287
|
"pie-inline-choice",
|
|
@@ -2290,7 +2290,7 @@ function os(e) {
|
|
|
2290
2290
|
"inline-choice",
|
|
2291
2291
|
"select-text"
|
|
2292
2292
|
];
|
|
2293
|
-
if (
|
|
2293
|
+
if (nn(e)) {
|
|
2294
2294
|
const r = e.item.config;
|
|
2295
2295
|
if (!r?.models) return !1;
|
|
2296
2296
|
const i = (Array.isArray(r.models) ? r.models : Object.values(r.models)).find((o) => o && typeof o == "object" && o.id === e.elementId);
|
|
@@ -2298,7 +2298,7 @@ function os(e) {
|
|
|
2298
2298
|
const n = i.element || "";
|
|
2299
2299
|
return t.includes(n);
|
|
2300
2300
|
}
|
|
2301
|
-
if (
|
|
2301
|
+
if (rn(e)) {
|
|
2302
2302
|
const r = e.item.config?.models;
|
|
2303
2303
|
return (Array.isArray(r) ? r : r && typeof r == "object" ? Object.values(r) : []).some((i) => {
|
|
2304
2304
|
if (!i || typeof i != "object") return !1;
|
|
@@ -2311,7 +2311,7 @@ function os(e) {
|
|
|
2311
2311
|
function jt(e) {
|
|
2312
2312
|
return br(e).trim().length >= 10;
|
|
2313
2313
|
}
|
|
2314
|
-
function
|
|
2314
|
+
function ls(e) {
|
|
2315
2315
|
const t = br(e);
|
|
2316
2316
|
return [
|
|
2317
2317
|
/chemistry|chemical|element|atom|molecule|compound/i,
|
|
@@ -2322,23 +2322,23 @@ function ss(e) {
|
|
|
2322
2322
|
/physics|force|energy|velocity|acceleration/i
|
|
2323
2323
|
].some((r) => r.test(t));
|
|
2324
2324
|
}
|
|
2325
|
-
var
|
|
2325
|
+
var cs = [
|
|
2326
2326
|
"assessment",
|
|
2327
2327
|
"section",
|
|
2328
2328
|
"item",
|
|
2329
2329
|
"passage",
|
|
2330
2330
|
"rubric"
|
|
2331
|
-
],
|
|
2332
|
-
function
|
|
2333
|
-
return
|
|
2331
|
+
], us = new Set(cs);
|
|
2332
|
+
function ds(e) {
|
|
2333
|
+
return us.has(e);
|
|
2334
2334
|
}
|
|
2335
2335
|
function wr(e, t, r) {
|
|
2336
2336
|
const i = e.trim(), n = r.trim();
|
|
2337
2337
|
if (!i || !n) throw new Error("Tool instance ids require non-empty tool and scope ids");
|
|
2338
|
-
if (!
|
|
2338
|
+
if (!ds(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
|
|
2339
2339
|
return `${i}:${t}:${n}`;
|
|
2340
2340
|
}
|
|
2341
|
-
var
|
|
2341
|
+
var fs = class {
|
|
2342
2342
|
constructor() {
|
|
2343
2343
|
u(this, "providerId", "desmos-calculator"), u(this, "providerName", "Desmos Calculator"), u(this, "category", "calculator"), u(this, "version", "1.10"), u(this, "requiresAuth", !0), u(this, "desmosProvider", null), u(this, "config", null);
|
|
2344
2344
|
}
|
|
@@ -2415,16 +2415,16 @@ var us = class {
|
|
|
2415
2415
|
destroy() {
|
|
2416
2416
|
this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
|
|
2417
2417
|
}
|
|
2418
|
-
},
|
|
2418
|
+
}, hs = (e, t) => {
|
|
2419
2419
|
const r = t?.useSentenceSegmenter !== !1;
|
|
2420
2420
|
try {
|
|
2421
2421
|
if (!r) throw new Error("Segmenter disabled by policy");
|
|
2422
2422
|
const s = globalThis.Intl?.Segmenter;
|
|
2423
2423
|
if (typeof s == "function") {
|
|
2424
|
-
const l = new s(t?.locale, { granularity: "sentence" }), c = Array.from(l.segment(e)).map((
|
|
2425
|
-
text:
|
|
2426
|
-
offset:
|
|
2427
|
-
})).filter((
|
|
2424
|
+
const l = new s(t?.locale, { granularity: "sentence" }), c = Array.from(l.segment(e)).map((f) => ({
|
|
2425
|
+
text: f.segment,
|
|
2426
|
+
offset: f.index
|
|
2427
|
+
})).filter((f) => f.text.trim().length > 0);
|
|
2428
2428
|
if (c.length > 0) return c;
|
|
2429
2429
|
}
|
|
2430
2430
|
} catch {
|
|
@@ -2442,14 +2442,14 @@ var us = class {
|
|
|
2442
2442
|
text: e,
|
|
2443
2443
|
offset: 0
|
|
2444
2444
|
}];
|
|
2445
|
-
},
|
|
2445
|
+
}, ps = class {
|
|
2446
2446
|
constructor() {
|
|
2447
2447
|
u(this, "providerId", "browser"), u(this, "providerName", "Browser Speech Synthesis"), u(this, "version", "1.0.0");
|
|
2448
2448
|
}
|
|
2449
2449
|
async initialize(e) {
|
|
2450
2450
|
if (typeof window > "u") throw new Error("BrowserTTSProvider requires browser environment");
|
|
2451
2451
|
if (!("speechSynthesis" in window)) throw new Error("Browser does not support Speech Synthesis API");
|
|
2452
|
-
return new
|
|
2452
|
+
return new vs(e);
|
|
2453
2453
|
}
|
|
2454
2454
|
supportsFeature(e) {
|
|
2455
2455
|
return !0;
|
|
@@ -2466,7 +2466,7 @@ var us = class {
|
|
|
2466
2466
|
}
|
|
2467
2467
|
destroy() {
|
|
2468
2468
|
}
|
|
2469
|
-
},
|
|
2469
|
+
}, vs = class {
|
|
2470
2470
|
constructor(e) {
|
|
2471
2471
|
u(this, "utterance", null), u(this, "config", null), u(this, "_isPlaying", !1), u(this, "_isPaused", !1), u(this, "speakRunId", 0), u(this, "onWordBoundary", void 0), this.config = e;
|
|
2472
2472
|
}
|
|
@@ -2504,16 +2504,16 @@ var us = class {
|
|
|
2504
2504
|
for (const s of r) {
|
|
2505
2505
|
const l = s.text.trim();
|
|
2506
2506
|
if (!l) continue;
|
|
2507
|
-
const c = s.text.search(/\S/),
|
|
2507
|
+
const c = s.text.search(/\S/), f = s.offset + (c === -1 ? 0 : c);
|
|
2508
2508
|
if (!n) {
|
|
2509
|
-
n = l, o =
|
|
2509
|
+
n = l, o = f;
|
|
2510
2510
|
continue;
|
|
2511
2511
|
}
|
|
2512
|
-
const
|
|
2513
|
-
|
|
2512
|
+
const d = `${n} ${l}`;
|
|
2513
|
+
d.length <= 260 ? n = d : (i.push({
|
|
2514
2514
|
text: n,
|
|
2515
2515
|
offset: o
|
|
2516
|
-
}), n = l, o =
|
|
2516
|
+
}), n = l, o = f);
|
|
2517
2517
|
}
|
|
2518
2518
|
return n && i.push({
|
|
2519
2519
|
text: n,
|
|
@@ -2536,7 +2536,7 @@ var us = class {
|
|
|
2536
2536
|
}
|
|
2537
2537
|
segmentSentences(e) {
|
|
2538
2538
|
const t = this.getSegmentationPolicy();
|
|
2539
|
-
return
|
|
2539
|
+
return hs(e, {
|
|
2540
2540
|
locale: t.locale,
|
|
2541
2541
|
useSentenceSegmenter: t.useSentenceSegmenter
|
|
2542
2542
|
});
|
|
@@ -2579,8 +2579,8 @@ var us = class {
|
|
|
2579
2579
|
r === this.speakRunId && (this._isPaused = !1);
|
|
2580
2580
|
}, this.utterance.onboundary = (o) => {
|
|
2581
2581
|
if (r !== this.speakRunId || (console.log("[BrowserProvider] Boundary event:", o.name, "charIndex:", o.charIndex, "charLength:", o.charLength), o.name !== "word" || !this.onWordBoundary) || this.getHighlightMode() === "sentence") return;
|
|
2582
|
-
const s = Math.max(0, Math.min(o.charIndex, Math.max(0, e.length - 1))), l = Number(o.charLength || 0), c = this.inferWordLength(e, s),
|
|
2583
|
-
console.log("[BrowserProvider] Calling onWordBoundary with word:",
|
|
2582
|
+
const s = Math.max(0, Math.min(o.charIndex, Math.max(0, e.length - 1))), l = Number(o.charLength || 0), c = this.inferWordLength(e, s), f = Number.isFinite(l) && l > 0 && l <= 80 && s + l <= e.length ? l : c, d = e.substring(s, Math.min(e.length, s + f)).trim(), v = t + s;
|
|
2583
|
+
console.log("[BrowserProvider] Calling onWordBoundary with word:", d, "at position:", v), this.onWordBoundary(d, v, f);
|
|
2584
2584
|
}, speechSynthesis.speak(this.utterance);
|
|
2585
2585
|
});
|
|
2586
2586
|
}
|
|
@@ -2605,7 +2605,7 @@ var us = class {
|
|
|
2605
2605
|
...e.providerOptions || {}
|
|
2606
2606
|
});
|
|
2607
2607
|
}
|
|
2608
|
-
},
|
|
2608
|
+
}, gs = class {
|
|
2609
2609
|
async emitTelemetry(e, t) {
|
|
2610
2610
|
try {
|
|
2611
2611
|
await this.config?.onTelemetry?.(e, t);
|
|
@@ -2637,7 +2637,7 @@ var us = class {
|
|
|
2637
2637
|
}
|
|
2638
2638
|
async _initializeBrowserTTS(e) {
|
|
2639
2639
|
if (typeof window > "u" || !("speechSynthesis" in window)) throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
|
|
2640
|
-
this.ttsProvider = new
|
|
2640
|
+
this.ttsProvider = new ps(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
|
|
2641
2641
|
}
|
|
2642
2642
|
async _initializeServerTTS(e) {
|
|
2643
2643
|
if (!e.apiEndpoint) throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
|
|
@@ -2695,7 +2695,7 @@ var us = class {
|
|
|
2695
2695
|
destroy() {
|
|
2696
2696
|
this.ttsProvider && (this.ttsProvider.destroy(), this.ttsProvider = null), this.config = null, console.log("[TTSToolProvider] Destroyed");
|
|
2697
2697
|
}
|
|
2698
|
-
},
|
|
2698
|
+
}, ms = /* @__PURE__ */ new Set([
|
|
2699
2699
|
"annotation-xml",
|
|
2700
2700
|
"color-profile",
|
|
2701
2701
|
"font-face",
|
|
@@ -2704,16 +2704,16 @@ var us = class {
|
|
|
2704
2704
|
"font-face-format",
|
|
2705
2705
|
"font-face-name",
|
|
2706
2706
|
"missing-glyph"
|
|
2707
|
-
]),
|
|
2707
|
+
]), _s = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, ys = (e, t = "custom element tag") => {
|
|
2708
2708
|
if (!e || typeof e != "string") throw new Error(`Invalid ${t}: expected a non-empty string`);
|
|
2709
2709
|
const r = e.trim();
|
|
2710
2710
|
if (!r) throw new Error(`Invalid ${t}: tag is empty`);
|
|
2711
2711
|
if (r !== r.toLowerCase()) throw new Error(`Invalid ${t} "${r}": custom element names must be lowercase`);
|
|
2712
2712
|
if (!r.includes("-")) throw new Error(`Invalid ${t} "${r}": custom element names must include a hyphen`);
|
|
2713
|
-
if (
|
|
2714
|
-
if (!
|
|
2713
|
+
if (ms.has(r)) throw new Error(`Invalid ${t} "${r}": this name is reserved by the HTML spec`);
|
|
2714
|
+
if (!_s.test(r)) throw new Error(`Invalid ${t} "${r}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
|
|
2715
2715
|
return r;
|
|
2716
|
-
},
|
|
2716
|
+
}, on = {
|
|
2717
2717
|
calculator: "pie-tool-calculator",
|
|
2718
2718
|
textToSpeech: "pie-tool-text-to-speech",
|
|
2719
2719
|
ruler: "pie-tool-ruler",
|
|
@@ -2726,22 +2726,38 @@ var us = class {
|
|
|
2726
2726
|
annotationToolbar: "pie-tool-annotation-toolbar",
|
|
2727
2727
|
graph: "pie-tool-graph",
|
|
2728
2728
|
periodicTable: "pie-tool-periodic-table"
|
|
2729
|
-
},
|
|
2730
|
-
const n =
|
|
2729
|
+
}, bs = (e, t) => ys(t?.toolTagMap?.[e] ?? on[e] ?? e, `tool component tag for "${e}"`), ws = (e) => document.createElement(e), ce = (e, t, r, i) => {
|
|
2730
|
+
const n = bs(e, i), o = i?.toolComponentFactories?.[e] ?? i?.toolComponentFactory;
|
|
2731
2731
|
return o ? o({
|
|
2732
2732
|
toolId: e,
|
|
2733
2733
|
tagName: n,
|
|
2734
2734
|
context: t,
|
|
2735
2735
|
toolbarContext: r
|
|
2736
|
-
}) :
|
|
2737
|
-
}
|
|
2736
|
+
}) : ws(n);
|
|
2737
|
+
};
|
|
2738
|
+
function Ur(e) {
|
|
2739
|
+
return e === "basic" || e === "scientific" ? e : null;
|
|
2740
|
+
}
|
|
2741
|
+
function Ts(e) {
|
|
2742
|
+
const t = e.getToolRenderParams?.("calculator") ?? {}, r = Ur(t.calculatorType), i = t.availableTypes;
|
|
2743
|
+
return {
|
|
2744
|
+
calculatorType: r,
|
|
2745
|
+
availableTypes: Array.isArray(i) ? i.map((n) => Ur(n)).filter((n) => n !== null) : r ? [r] : null,
|
|
2746
|
+
displayName: r === "scientific" ? "Scientific Calculator" : r === "basic" ? "Basic Calculator" : "Calculator"
|
|
2747
|
+
};
|
|
2748
|
+
}
|
|
2749
|
+
function Yr(e, t, r) {
|
|
2750
|
+
const i = e;
|
|
2751
|
+
t ? (i.calculatorType = t, e.setAttribute("calculator-type", t)) : (delete i.calculatorType, e.removeAttribute("calculator-type")), r && r.length > 0 ? i.availableTypes = r : delete i.availableTypes;
|
|
2752
|
+
}
|
|
2753
|
+
var As = {
|
|
2738
2754
|
toolId: "calculator",
|
|
2739
2755
|
name: "Calculator",
|
|
2740
2756
|
description: "Multi-type calculator (basic, scientific, graphing)",
|
|
2741
2757
|
icon: "calculator",
|
|
2742
2758
|
provider: {
|
|
2743
2759
|
getProviderId: (e) => typeof e?.provider?.id == "string" && e.provider.id.length > 0 ? e.provider.id : "calculator-desmos",
|
|
2744
|
-
createProvider: () => new
|
|
2760
|
+
createProvider: () => new fs(),
|
|
2745
2761
|
getInitConfig: (e) => e?.provider?.init ?? {},
|
|
2746
2762
|
getAuthFetcher: (e) => {
|
|
2747
2763
|
const t = e?.provider?.runtime?.authFetcher;
|
|
@@ -2767,23 +2783,23 @@ var us = class {
|
|
|
2767
2783
|
return Bt(e);
|
|
2768
2784
|
},
|
|
2769
2785
|
renderToolbar(e, t) {
|
|
2770
|
-
const r = wr(this.toolId, t.scope.level, t.scope.scopeId),
|
|
2771
|
-
|
|
2772
|
-
const
|
|
2786
|
+
const { calculatorType: r, availableTypes: i, displayName: n } = Ts(t), o = wr(this.toolId, t.scope.level, t.scope.scopeId), s = t.componentOverrides, l = ce(this.toolId, e, t, s);
|
|
2787
|
+
l.setAttribute("tool-id", o), l.toolkitCoordinator = t.toolkitCoordinator, Yr(l, r, i);
|
|
2788
|
+
const c = r === null ? "Open scientific calculator" : `Open ${n.toLowerCase()}`, f = r === null ? "Close scientific calculator" : `Close ${n.toLowerCase()}`, d = {
|
|
2773
2789
|
toolId: this.toolId,
|
|
2774
|
-
label:
|
|
2790
|
+
label: n,
|
|
2775
2791
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
2776
2792
|
disabled: !1,
|
|
2777
|
-
ariaLabel:
|
|
2778
|
-
tooltip:
|
|
2793
|
+
ariaLabel: c,
|
|
2794
|
+
tooltip: n,
|
|
2779
2795
|
onClick: () => t.toggleTool(this.toolId),
|
|
2780
|
-
active: t.isToolVisible(
|
|
2796
|
+
active: t.isToolVisible(o)
|
|
2781
2797
|
};
|
|
2782
|
-
let
|
|
2783
|
-
return
|
|
2798
|
+
let v = d.active;
|
|
2799
|
+
return l.visible = d.active, {
|
|
2784
2800
|
toolId: this.toolId,
|
|
2785
2801
|
elements: [{
|
|
2786
|
-
element:
|
|
2802
|
+
element: l,
|
|
2787
2803
|
mount: "after-buttons",
|
|
2788
2804
|
shell: {
|
|
2789
2805
|
title: this.name,
|
|
@@ -2796,24 +2812,24 @@ var us = class {
|
|
|
2796
2812
|
minHeight: 420
|
|
2797
2813
|
}
|
|
2798
2814
|
}],
|
|
2799
|
-
button:
|
|
2815
|
+
button: d,
|
|
2800
2816
|
sync: () => {
|
|
2801
|
-
const
|
|
2802
|
-
|
|
2817
|
+
const h = t.isToolVisible(o);
|
|
2818
|
+
d.active = h, d.label = n, d.ariaLabel = h ? f : c, d.tooltip = h ? `Close ${n.toLowerCase()}` : n, v !== h && (l.visible = h, v = h), l.toolkitCoordinator !== t.toolkitCoordinator && (l.toolkitCoordinator = t.toolkitCoordinator), Yr(l, r, i);
|
|
2803
2819
|
},
|
|
2804
|
-
subscribeActive: (
|
|
2805
|
-
|
|
2820
|
+
subscribeActive: (h) => t.subscribeVisibility ? t.subscribeVisibility(() => {
|
|
2821
|
+
h(t.isToolVisible(o));
|
|
2806
2822
|
}) : () => {
|
|
2807
2823
|
}
|
|
2808
2824
|
};
|
|
2809
2825
|
}
|
|
2810
|
-
},
|
|
2826
|
+
}, Ss = /* @__PURE__ */ new Set([
|
|
2811
2827
|
"reserved-row",
|
|
2812
2828
|
"expanding-row",
|
|
2813
2829
|
"floating-overlay",
|
|
2814
2830
|
"left-aligned"
|
|
2815
|
-
]),
|
|
2816
|
-
if (!Array.isArray(e)) return [...
|
|
2831
|
+
]), Xr = (e) => e && typeof e == "object" ? e : {}, Is = (e) => e === "polly" || e === "google" || e === "server", G = (e, t) => e === void 0 ? t : e, Pt = (e, t = "left-aligned") => typeof e == "string" && Ss.has(e) ? e : t, Jr = Object.freeze([0.8, 1.25]), qt = (e) => {
|
|
2832
|
+
if (!Array.isArray(e)) return [...Jr];
|
|
2817
2833
|
if (e.length === 0) return [];
|
|
2818
2834
|
const t = /* @__PURE__ */ new Set();
|
|
2819
2835
|
for (const r of e) {
|
|
@@ -2821,13 +2837,13 @@ var us = class {
|
|
|
2821
2837
|
const i = Math.round(r * 100) / 100;
|
|
2822
2838
|
i !== 1 && t.add(i);
|
|
2823
2839
|
}
|
|
2824
|
-
return t.size ? Array.from(t) : [...
|
|
2825
|
-
},
|
|
2840
|
+
return t.size ? Array.from(t) : [...Jr];
|
|
2841
|
+
}, Es = (e) => {
|
|
2826
2842
|
const t = {
|
|
2827
2843
|
...e,
|
|
2828
2844
|
layoutMode: Pt(e.layoutMode)
|
|
2829
2845
|
}, r = e.backend || "browser";
|
|
2830
|
-
if (!
|
|
2846
|
+
if (!Is(r)) return t;
|
|
2831
2847
|
const i = {
|
|
2832
2848
|
...t,
|
|
2833
2849
|
apiEndpoint: G(t.apiEndpoint, "/api/tts"),
|
|
@@ -2849,13 +2865,13 @@ var us = class {
|
|
|
2849
2865
|
defaultVoice: G(i.defaultVoice, "en-US-Wavenet-A")
|
|
2850
2866
|
} : i;
|
|
2851
2867
|
}, Kt = (e) => {
|
|
2852
|
-
const t =
|
|
2853
|
-
return
|
|
2868
|
+
const t = Xr(e), r = Xr(e?.settings);
|
|
2869
|
+
return Es({
|
|
2854
2870
|
...t,
|
|
2855
2871
|
...r
|
|
2856
2872
|
});
|
|
2857
|
-
}, sr = (e) => e.backend || "browser",
|
|
2858
|
-
const t = sr(e), r =
|
|
2873
|
+
}, sr = (e) => e.backend || "browser", sn = (e, t) => t === "polly" || t === "google" ? t : e.serverProvider || e.provider, an = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), ks = (e) => {
|
|
2874
|
+
const t = sr(e), r = sn(e, t), i = an(e, r);
|
|
2859
2875
|
return {
|
|
2860
2876
|
voice: e.defaultVoice,
|
|
2861
2877
|
rate: e.rate,
|
|
@@ -2879,8 +2895,8 @@ var us = class {
|
|
|
2879
2895
|
includeAuthOnAssetFetch: e.includeAuthOnAssetFetch,
|
|
2880
2896
|
validateEndpoint: e.validateEndpoint
|
|
2881
2897
|
};
|
|
2882
|
-
},
|
|
2883
|
-
switch (
|
|
2898
|
+
}, ln = (e) => Pt(e.layoutMode), Cs = (e) => {
|
|
2899
|
+
switch (ln(e)) {
|
|
2884
2900
|
case "reserved-row":
|
|
2885
2901
|
return {
|
|
2886
2902
|
mount: "before-buttons",
|
|
@@ -2906,21 +2922,21 @@ var us = class {
|
|
|
2906
2922
|
}
|
|
2907
2923
|
};
|
|
2908
2924
|
}
|
|
2909
|
-
}, rt = /* @__PURE__ */ new Map(),
|
|
2925
|
+
}, rt = /* @__PURE__ */ new Map(), $s = "__pieToolElementUnmount", Qr = "pie-tool-active-change", Ls = {
|
|
2910
2926
|
toolId: "textToSpeech",
|
|
2911
2927
|
name: "Text to Speech",
|
|
2912
2928
|
description: "Read content aloud",
|
|
2913
2929
|
icon: "volume-up",
|
|
2914
2930
|
provider: {
|
|
2915
2931
|
getProviderId: () => "tts",
|
|
2916
|
-
createProvider: (e) => new
|
|
2932
|
+
createProvider: (e) => new gs(sr(Kt(e))),
|
|
2917
2933
|
getInitConfig: (e) => {
|
|
2918
|
-
const t = Kt(e), r = sr(t), i =
|
|
2934
|
+
const t = Kt(e), r = sr(t), i = sn(t, r);
|
|
2919
2935
|
return {
|
|
2920
2936
|
backend: r,
|
|
2921
2937
|
serverProvider: i,
|
|
2922
|
-
transportMode:
|
|
2923
|
-
...
|
|
2938
|
+
transportMode: an(t, i),
|
|
2939
|
+
...ks(t)
|
|
2924
2940
|
};
|
|
2925
2941
|
},
|
|
2926
2942
|
getAuthFetcher: (e) => {
|
|
@@ -2946,38 +2962,38 @@ var us = class {
|
|
|
2946
2962
|
return jt(e);
|
|
2947
2963
|
},
|
|
2948
2964
|
renderToolbar(e, t) {
|
|
2949
|
-
const r = () => Kt(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), i = () => qt(r().speedOptions), n = () =>
|
|
2950
|
-
const
|
|
2951
|
-
return
|
|
2965
|
+
const r = () => Kt(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), i = () => qt(r().speedOptions), n = () => ln(r()), o = () => Cs(r()), s = wr(this.toolId, t.scope.level, t.scope.scopeId), l = () => {
|
|
2966
|
+
const d = t.ui?.size;
|
|
2967
|
+
return d === "sm" || d === "lg" ? d : "md";
|
|
2952
2968
|
}, c = () => {
|
|
2953
|
-
let
|
|
2954
|
-
return
|
|
2955
|
-
rt.get(s) ===
|
|
2956
|
-
}, rt.set(s,
|
|
2957
|
-
},
|
|
2969
|
+
let d = rt.get(s);
|
|
2970
|
+
return d && typeof d.isConnected == "boolean" && !d.isConnected && (rt.delete(s), d = void 0), d || (d = document.createElement("pie-tool-tts-inline"), d[$s] = () => {
|
|
2971
|
+
rt.get(s) === d && rt.delete(s);
|
|
2972
|
+
}, rt.set(s, d)), d.setAttribute("tool-id", s), d.setAttribute("catalog-id", t.catalogId || t.itemId), d.setAttribute("language", t.language || "en-US"), d.setAttribute("size", l()), d.setAttribute("layout-mode", n()), d.speedOptions = i(), d;
|
|
2973
|
+
}, f = o();
|
|
2958
2974
|
return {
|
|
2959
2975
|
toolId: this.toolId,
|
|
2960
2976
|
button: null,
|
|
2961
2977
|
elements: [{
|
|
2962
2978
|
element: c(),
|
|
2963
|
-
mount:
|
|
2979
|
+
mount: f.mount,
|
|
2964
2980
|
layoutHints: { controlsRow: {
|
|
2965
|
-
reserveSpace:
|
|
2966
|
-
showWhenToolActive:
|
|
2981
|
+
reserveSpace: f.controlsRow.reserveSpace,
|
|
2982
|
+
showWhenToolActive: f.controlsRow.expandWhenToolActive
|
|
2967
2983
|
} }
|
|
2968
2984
|
}],
|
|
2969
|
-
subscribeActive: (
|
|
2985
|
+
subscribeActive: (d) => {
|
|
2970
2986
|
const v = c(), h = (g) => {
|
|
2971
2987
|
const p = g.detail;
|
|
2972
|
-
|
|
2988
|
+
d(p?.active === !0);
|
|
2973
2989
|
};
|
|
2974
|
-
return v.addEventListener(
|
|
2975
|
-
v.removeEventListener(
|
|
2990
|
+
return v.addEventListener(Qr, h), () => {
|
|
2991
|
+
v.removeEventListener(Qr, h);
|
|
2976
2992
|
};
|
|
2977
2993
|
},
|
|
2978
2994
|
sync: () => {
|
|
2979
|
-
const
|
|
2980
|
-
|
|
2995
|
+
const d = c();
|
|
2996
|
+
d.setAttribute("tool-id", s), d.setAttribute("catalog-id", t.catalogId || t.itemId), d.setAttribute("language", t.language || "en-US"), d.setAttribute("size", l()), d.setAttribute("layout-mode", n()), d.speedOptions = i();
|
|
2981
2997
|
}
|
|
2982
2998
|
};
|
|
2983
2999
|
}
|
|
@@ -3000,7 +3016,7 @@ function pe(e) {
|
|
|
3000
3016
|
function Tr(e, t) {
|
|
3001
3017
|
e.setAttribute("data-pie-tool-surface", t);
|
|
3002
3018
|
}
|
|
3003
|
-
var
|
|
3019
|
+
var Os = {
|
|
3004
3020
|
toolId: "ruler",
|
|
3005
3021
|
name: "Ruler",
|
|
3006
3022
|
description: "On-screen ruler for measurements",
|
|
@@ -3042,7 +3058,7 @@ var Cs = {
|
|
|
3042
3058
|
subscribeActive: r.subscribeActive
|
|
3043
3059
|
};
|
|
3044
3060
|
}
|
|
3045
|
-
},
|
|
3061
|
+
}, Rs = {
|
|
3046
3062
|
toolId: "protractor",
|
|
3047
3063
|
name: "Protractor",
|
|
3048
3064
|
description: "On-screen protractor for angle measurements",
|
|
@@ -3084,7 +3100,7 @@ var Cs = {
|
|
|
3084
3100
|
subscribeActive: r.subscribeActive
|
|
3085
3101
|
};
|
|
3086
3102
|
}
|
|
3087
|
-
},
|
|
3103
|
+
}, Ms = {
|
|
3088
3104
|
toolId: "answerEliminator",
|
|
3089
3105
|
name: "Answer Eliminator",
|
|
3090
3106
|
description: "Strike through answer choices",
|
|
@@ -3097,7 +3113,7 @@ var Cs = {
|
|
|
3097
3113
|
"choiceMasking"
|
|
3098
3114
|
],
|
|
3099
3115
|
isVisibleInContext(e) {
|
|
3100
|
-
return
|
|
3116
|
+
return as(e);
|
|
3101
3117
|
},
|
|
3102
3118
|
renderToolbar(e, t) {
|
|
3103
3119
|
const r = he(this.toolId, t), i = t.componentOverrides ?? {}, n = ce(this.toolId, e, t, i);
|
|
@@ -3131,7 +3147,7 @@ var Cs = {
|
|
|
3131
3147
|
subscribeActive: r.subscribeActive
|
|
3132
3148
|
};
|
|
3133
3149
|
}
|
|
3134
|
-
},
|
|
3150
|
+
}, Ps = {
|
|
3135
3151
|
toolId: "highlighter",
|
|
3136
3152
|
name: "Highlighter",
|
|
3137
3153
|
description: "Highlight text",
|
|
@@ -3182,7 +3198,7 @@ var Cs = {
|
|
|
3182
3198
|
subscribeActive: r.subscribeActive
|
|
3183
3199
|
};
|
|
3184
3200
|
}
|
|
3185
|
-
},
|
|
3201
|
+
}, xs = {
|
|
3186
3202
|
toolId: "lineReader",
|
|
3187
3203
|
name: "Line Reader",
|
|
3188
3204
|
description: "Reading guide overlay",
|
|
@@ -3231,7 +3247,7 @@ var Cs = {
|
|
|
3231
3247
|
subscribeActive: r.subscribeActive
|
|
3232
3248
|
};
|
|
3233
3249
|
}
|
|
3234
|
-
},
|
|
3250
|
+
}, Hs = {
|
|
3235
3251
|
toolId: "theme",
|
|
3236
3252
|
name: "Theme",
|
|
3237
3253
|
description: "Accessible themes and contrast",
|
|
@@ -3287,7 +3303,7 @@ var Cs = {
|
|
|
3287
3303
|
subscribeActive: r.subscribeActive
|
|
3288
3304
|
};
|
|
3289
3305
|
}
|
|
3290
|
-
},
|
|
3306
|
+
}, Ns = {
|
|
3291
3307
|
toolId: "annotationToolbar",
|
|
3292
3308
|
name: "Highlighter",
|
|
3293
3309
|
description: "Highlight and annotate text",
|
|
@@ -3338,7 +3354,7 @@ var Cs = {
|
|
|
3338
3354
|
subscribeActive: r.subscribeActive
|
|
3339
3355
|
};
|
|
3340
3356
|
}
|
|
3341
|
-
},
|
|
3357
|
+
}, Ds = {
|
|
3342
3358
|
toolId: "graph",
|
|
3343
3359
|
name: "Graph",
|
|
3344
3360
|
description: "Graphing calculator and coordinate plane",
|
|
@@ -3391,7 +3407,7 @@ var Cs = {
|
|
|
3391
3407
|
subscribeActive: r.subscribeActive
|
|
3392
3408
|
};
|
|
3393
3409
|
}
|
|
3394
|
-
},
|
|
3410
|
+
}, Fs = {
|
|
3395
3411
|
toolId: "periodicTable",
|
|
3396
3412
|
name: "Periodic Table",
|
|
3397
3413
|
description: "Chemistry periodic table reference",
|
|
@@ -3403,7 +3419,7 @@ var Cs = {
|
|
|
3403
3419
|
"elementReference"
|
|
3404
3420
|
],
|
|
3405
3421
|
isVisibleInContext(e) {
|
|
3406
|
-
return
|
|
3422
|
+
return ls(e);
|
|
3407
3423
|
},
|
|
3408
3424
|
renderToolbar(e, t) {
|
|
3409
3425
|
const r = he(this.toolId, t), i = {
|
|
@@ -3443,54 +3459,54 @@ var Cs = {
|
|
|
3443
3459
|
subscribeActive: r.subscribeActive
|
|
3444
3460
|
};
|
|
3445
3461
|
}
|
|
3446
|
-
},
|
|
3447
|
-
|
|
3448
|
-
ks,
|
|
3449
|
-
Cs,
|
|
3450
|
-
$s,
|
|
3462
|
+
}, Bs = [
|
|
3463
|
+
As,
|
|
3451
3464
|
Ls,
|
|
3452
3465
|
Os,
|
|
3453
3466
|
Rs,
|
|
3454
3467
|
Ms,
|
|
3455
3468
|
Ps,
|
|
3456
3469
|
xs,
|
|
3457
|
-
Hs
|
|
3470
|
+
Hs,
|
|
3471
|
+
Ns,
|
|
3472
|
+
Ds,
|
|
3473
|
+
Fs
|
|
3458
3474
|
];
|
|
3459
|
-
function
|
|
3460
|
-
const t = new
|
|
3475
|
+
function js(e = {}) {
|
|
3476
|
+
const t = new ns(), r = {
|
|
3461
3477
|
toolTagMap: {
|
|
3462
|
-
...
|
|
3478
|
+
...on,
|
|
3463
3479
|
...e.toolTagMap || {}
|
|
3464
3480
|
},
|
|
3465
3481
|
toolComponentFactory: e.toolComponentFactory,
|
|
3466
3482
|
toolComponentFactories: e.toolComponentFactories
|
|
3467
3483
|
}, i = (n) => e.overrides?.[n.toolId] || n;
|
|
3468
|
-
return e.includePackagedTools &&
|
|
3484
|
+
return e.includePackagedTools && zs(t, {
|
|
3469
3485
|
toolIds: e.toolIds,
|
|
3470
3486
|
applyOverrides: i
|
|
3471
3487
|
}), e.toolModuleLoaders && Object.keys(e.toolModuleLoaders).length > 0 && t.setToolModuleLoaders(e.toolModuleLoaders), t.setComponentOverrides(r), t;
|
|
3472
3488
|
}
|
|
3473
|
-
function
|
|
3489
|
+
function zs(e, t = {}) {
|
|
3474
3490
|
const r = t.toolIds && t.toolIds.length > 0 ? new Set(t.toolIds) : null, i = t.applyOverrides || ((n) => n);
|
|
3475
|
-
for (const n of
|
|
3491
|
+
for (const n of Bs)
|
|
3476
3492
|
r && !r.has(n.toolId) || e.register(i(n));
|
|
3477
3493
|
}
|
|
3478
|
-
function
|
|
3479
|
-
return
|
|
3494
|
+
function Vs(e = {}) {
|
|
3495
|
+
return js({
|
|
3480
3496
|
...e,
|
|
3481
3497
|
includePackagedTools: !0
|
|
3482
3498
|
});
|
|
3483
3499
|
}
|
|
3484
|
-
function
|
|
3485
|
-
const e =
|
|
3500
|
+
function Gs() {
|
|
3501
|
+
const e = Vs(), t = /* @__PURE__ */ new Set();
|
|
3486
3502
|
for (const r of e.getAllTools()) for (const i of r.pnpSupportIds || []) t.add(i);
|
|
3487
3503
|
return [...t].sort();
|
|
3488
3504
|
}
|
|
3489
|
-
var
|
|
3490
|
-
supports: [...
|
|
3505
|
+
var Ws = Gs(), ua = {
|
|
3506
|
+
supports: [...Ws],
|
|
3491
3507
|
prohibitedSupports: [],
|
|
3492
3508
|
activateAtInit: []
|
|
3493
|
-
},
|
|
3509
|
+
}, qs = {
|
|
3494
3510
|
visual: {
|
|
3495
3511
|
magnification: "magnification",
|
|
3496
3512
|
screenMagnifier: "screenMagnifier",
|
|
@@ -3603,15 +3619,15 @@ var zs = js(), aa = {
|
|
|
3603
3619
|
itemGlossary: "itemGlossary",
|
|
3604
3620
|
tutorialAvailable: "tutorialAvailable"
|
|
3605
3621
|
}
|
|
3606
|
-
},
|
|
3622
|
+
}, da = Object.values(qs).flatMap((e) => Object.values(e)), fa = en("ToolCoordinator"), ar;
|
|
3607
3623
|
(function(e) {
|
|
3608
3624
|
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";
|
|
3609
3625
|
})(ar || (ar = {}));
|
|
3610
|
-
var
|
|
3626
|
+
var Zr;
|
|
3611
3627
|
(function(e) {
|
|
3612
3628
|
e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
|
|
3613
|
-
})(
|
|
3614
|
-
var
|
|
3629
|
+
})(Zr || (Zr = {}));
|
|
3630
|
+
var ha = es({
|
|
3615
3631
|
policy: {
|
|
3616
3632
|
allowed: [],
|
|
3617
3633
|
blocked: []
|
|
@@ -3622,7 +3638,7 @@ var ua = Qo({
|
|
|
3622
3638
|
passage: []
|
|
3623
3639
|
},
|
|
3624
3640
|
providers: {}
|
|
3625
|
-
}),
|
|
3641
|
+
}), cn, Ae = class Y {
|
|
3626
3642
|
constructor() {
|
|
3627
3643
|
u(this, "elementType", "multiple-choice"), u(this, "priority", 100);
|
|
3628
3644
|
}
|
|
@@ -3671,13 +3687,13 @@ var ua = Qo({
|
|
|
3671
3687
|
for (const r of t.querySelectorAll(".feedback-tick")) r.setAttribute(Y.FEEDBACK_HOOK_ATTR, "true");
|
|
3672
3688
|
}
|
|
3673
3689
|
};
|
|
3674
|
-
|
|
3690
|
+
cn = Ae;
|
|
3675
3691
|
u(Ae, "CHOICE_HOOK_ATTR", "data-pie-answer-eliminator-choice");
|
|
3676
3692
|
u(Ae, "LABEL_HOOK_ATTR", "data-pie-answer-eliminator-label");
|
|
3677
3693
|
u(Ae, "ROOT_HOOK_ATTR", "data-pie-answer-eliminator-root");
|
|
3678
3694
|
u(Ae, "FEEDBACK_HOOK_ATTR", "data-pie-answer-eliminator-feedback-tick");
|
|
3679
|
-
u(Ae, "CHOICE_SELECTOR", `[${
|
|
3680
|
-
var
|
|
3695
|
+
u(Ae, "CHOICE_SELECTOR", `[${cn.CHOICE_HOOK_ATTR}="true"], .corespring-checkbox, .corespring-radio-button`);
|
|
3696
|
+
var Ks = class {
|
|
3681
3697
|
constructor() {
|
|
3682
3698
|
u(this, "elementType", "ebsr"), u(this, "priority", 95), u(this, "mcAdapter", new Ae());
|
|
3683
3699
|
}
|
|
@@ -3703,7 +3719,7 @@ var Gs = class {
|
|
|
3703
3719
|
getButtonContainer(e) {
|
|
3704
3720
|
return this.mcAdapter.getButtonContainer(e);
|
|
3705
3721
|
}
|
|
3706
|
-
},
|
|
3722
|
+
}, Us = class {
|
|
3707
3723
|
constructor() {
|
|
3708
3724
|
u(this, "elementType", "inline-dropdown"), u(this, "priority", 90);
|
|
3709
3725
|
}
|
|
@@ -3729,12 +3745,12 @@ var Gs = class {
|
|
|
3729
3745
|
getButtonContainer(e) {
|
|
3730
3746
|
return e;
|
|
3731
3747
|
}
|
|
3732
|
-
},
|
|
3748
|
+
}, Ys = class {
|
|
3733
3749
|
constructor() {
|
|
3734
3750
|
u(this, "adapters", void 0), this.adapters = [
|
|
3735
3751
|
new Ae(),
|
|
3736
|
-
new
|
|
3737
|
-
new
|
|
3752
|
+
new Ks(),
|
|
3753
|
+
new Us()
|
|
3738
3754
|
].sort((e, t) => t.priority - e.priority);
|
|
3739
3755
|
}
|
|
3740
3756
|
findAdapter(e) {
|
|
@@ -3947,7 +3963,7 @@ u(ve, "ELIMINATED_ATTR", "data-pie-answer-eliminated");
|
|
|
3947
3963
|
u(ve, "ELIMINATED_ID_ATTR", "data-pie-answer-eliminated-id");
|
|
3948
3964
|
var Ar = class it {
|
|
3949
3965
|
constructor(t = "strikethrough", r = "right") {
|
|
3950
|
-
u(this, "registry", void 0), u(this, "strategy", void 0), u(this, "eliminatedChoices", /* @__PURE__ */ new Set()), u(this, "choiceElements", /* @__PURE__ */ new Map()), u(this, "choiceButtons", /* @__PURE__ */ new Map()), u(this, "choiceAdapters", /* @__PURE__ */ new Map()), u(this, "buttonAlignment", "right"), u(this, "shouldRestoreState", !0), u(this, "storeIntegration", null), this.registry = new
|
|
3966
|
+
u(this, "registry", void 0), u(this, "strategy", void 0), u(this, "eliminatedChoices", /* @__PURE__ */ new Set()), u(this, "choiceElements", /* @__PURE__ */ new Map()), u(this, "choiceButtons", /* @__PURE__ */ new Map()), u(this, "choiceAdapters", /* @__PURE__ */ new Map()), u(this, "buttonAlignment", "right"), u(this, "shouldRestoreState", !0), u(this, "storeIntegration", null), this.registry = new Ys(), this.strategy = this.createStrategy(t), this.strategy.initialize(), this.buttonAlignment = r;
|
|
3951
3967
|
}
|
|
3952
3968
|
createStrategy(t) {
|
|
3953
3969
|
return t === "mask" ? new je() : new ve();
|
|
@@ -4091,20 +4107,20 @@ var Ar = class it {
|
|
|
4091
4107
|
};
|
|
4092
4108
|
u(Ar, "TOGGLE_CLASS", "pie-answer-eliminator-toggle");
|
|
4093
4109
|
u(Ar, "TOGGLE_ACTIVE_CLASS", "pie-answer-eliminator-toggle--active");
|
|
4094
|
-
var
|
|
4095
|
-
function
|
|
4096
|
-
|
|
4097
|
-
let r = ge(t, "visible", 7, !1), i = ge(t, "toolId", 7, "answerEliminator"), n = ge(t, "strategy", 7, "strikethrough"), o = ge(t, "alwaysOn", 7, !1), s = ge(t, "buttonAlignment", 7, "right"), l = ge(t, "scopeElement", 7, null), c = ge(t, "elementToolStateStore", 7, null),
|
|
4110
|
+
var Xs = /* @__PURE__ */ Eo('<div style="display: none;" aria-hidden="true"></div>');
|
|
4111
|
+
function Js(e, t) {
|
|
4112
|
+
ci(t, !0);
|
|
4113
|
+
let r = ge(t, "visible", 7, !1), i = ge(t, "toolId", 7, "answerEliminator"), n = ge(t, "strategy", 7, "strikethrough"), o = ge(t, "alwaysOn", 7, !1), s = ge(t, "buttonAlignment", 7, "right"), l = ge(t, "scopeElement", 7, null), c = ge(t, "elementToolStateStore", 7, null), f = ge(t, "globalElementId", 7, ""), d = /* @__PURE__ */ H(null), v = /* @__PURE__ */ H(null), h = /* @__PURE__ */ H(null);
|
|
4098
4114
|
const g = /* @__PURE__ */ xr(() => m(v)?.toolCoordinator);
|
|
4099
4115
|
let p = /* @__PURE__ */ H(null), y = /* @__PURE__ */ H(null), _ = /* @__PURE__ */ H(null), E = /* @__PURE__ */ H(null), j = /* @__PURE__ */ xr(() => o() || r());
|
|
4100
4116
|
Ce(() => {
|
|
4101
|
-
if (m(
|
|
4102
|
-
return
|
|
4117
|
+
if (m(d))
|
|
4118
|
+
return Ko(m(d), (k) => {
|
|
4103
4119
|
$(v, k, !0);
|
|
4104
4120
|
});
|
|
4105
4121
|
}), Ce(() => {
|
|
4106
|
-
if (m(
|
|
4107
|
-
return
|
|
4122
|
+
if (m(d))
|
|
4123
|
+
return Uo(m(d), (k) => {
|
|
4108
4124
|
$(h, k, !0);
|
|
4109
4125
|
});
|
|
4110
4126
|
});
|
|
@@ -4130,8 +4146,8 @@ function Us(e, t) {
|
|
|
4130
4146
|
Ce(() => {
|
|
4131
4147
|
!m(g) || !i() || (m(E) && m(_) && (m(E) !== m(g) || m(_) !== i()) && (m(E).unregisterTool(m(_)), $(E, null), $(_, null)), m(_) || (m(g).registerTool(i(), "Answer Eliminator", void 0, ar.MODAL), $(E, m(g), !0), $(_, i())));
|
|
4132
4148
|
}), Ce(() => {
|
|
4133
|
-
m(p) && c() &&
|
|
4134
|
-
}),
|
|
4149
|
+
m(p) && c() && f() && m(p).setStoreIntegration(c(), f());
|
|
4150
|
+
}), Mo(() => ($(p, new Ar(n(), s()), !0), m(p) && c() && f() && m(p).setStoreIntegration(c(), f()), m(j) ? U() : m(p).cleanup(), () => {
|
|
4135
4151
|
m(p)?.destroy(), $(p, null), m(E) && m(_) && (m(E).unregisterTool(m(_)), $(E, null), $(_, null));
|
|
4136
4152
|
})), Ce(() => {
|
|
4137
4153
|
const k = m(h)?.contextVersion ?? null;
|
|
@@ -4189,15 +4205,15 @@ function Us(e, t) {
|
|
|
4189
4205
|
c(k), ue();
|
|
4190
4206
|
},
|
|
4191
4207
|
get globalElementId() {
|
|
4192
|
-
return
|
|
4208
|
+
return f();
|
|
4193
4209
|
},
|
|
4194
4210
|
set globalElementId(k = "") {
|
|
4195
|
-
|
|
4211
|
+
f(k), ue();
|
|
4196
4212
|
}
|
|
4197
|
-
}, Sr =
|
|
4198
|
-
return
|
|
4213
|
+
}, Sr = Xs();
|
|
4214
|
+
return Ho(Sr, (k) => $(d, k), () => m(d)), Ki(e, Sr), ui(et);
|
|
4199
4215
|
}
|
|
4200
|
-
customElements.define("pie-tool-answer-eliminator",
|
|
4216
|
+
customElements.define("pie-tool-answer-eliminator", Bo(Js, {
|
|
4201
4217
|
visible: {
|
|
4202
4218
|
attribute: "visible",
|
|
4203
4219
|
type: "Boolean"
|
|
@@ -4223,5 +4239,5 @@ customElements.define("pie-tool-answer-eliminator", Do(Us, {
|
|
|
4223
4239
|
globalElementId: { type: "String" }
|
|
4224
4240
|
}, [], [], { mode: "open" }));
|
|
4225
4241
|
export {
|
|
4226
|
-
|
|
4242
|
+
Js as default
|
|
4227
4243
|
};
|