@pie-players/pie-tool-annotation-toolbar 0.3.30 → 0.3.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tool-annotation-toolbar.js +1217 -1137
- package/package.json +3 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as b } from "./defineProperty-CyepwRr5.js";
|
|
2
2
|
if (typeof window < "u") {
|
|
3
|
-
var
|
|
4
|
-
((
|
|
3
|
+
var Mn, Cn;
|
|
4
|
+
((Mn = (Cn = window).__svelte ?? (Cn.__svelte = {})).v ?? (Mn.v = /* @__PURE__ */ new Set())).add("5");
|
|
5
5
|
}
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var gt = {}, j = Symbol(), Il = Symbol("filename");
|
|
7
|
+
var fi = Array.isArray, Oo = Array.prototype.indexOf, _t = Array.prototype.includes, br = Array.from, ur = Object.keys, fr = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, Lo = Object.getOwnPropertyDescriptors, Ro = Object.prototype, Mo = Array.prototype, di = Object.getPrototypeOf, xn = Object.isExtensible, Co = () => {
|
|
8
8
|
};
|
|
9
|
-
function
|
|
9
|
+
function xo(e) {
|
|
10
10
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function hi() {
|
|
13
13
|
var e, t;
|
|
14
14
|
return {
|
|
15
15
|
promise: new Promise((r, n) => {
|
|
@@ -19,54 +19,54 @@ function ci() {
|
|
|
19
19
|
reject: t
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
var
|
|
22
|
+
var El = 1 << 24, ie = 1024, ve = 2048, lt = 4096, rn = 8192, Po = 16384, nn = 32768, Pn = 1 << 25, on = 65536, $l = 1 << 17, Ol = 1 << 18, St = 1 << 19, No = 1 << 20, xt = 1 << 25, zt = 65536, Nn = 1 << 21, Do = 1 << 22, dr = 1 << 23, Pt = Symbol("$state"), pi = Symbol("legacy props"), Vo = Symbol(""), jo = Symbol("proxy path"), Ll = Symbol("hmr anchor"), $e = new class extends Error {
|
|
23
23
|
constructor(...t) {
|
|
24
24
|
super(...t), b(this, "name", "StaleReactionError"), b(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
25
25
|
}
|
|
26
|
-
}(),
|
|
27
|
-
function
|
|
26
|
+
}(), zo = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
27
|
+
function Wo() {
|
|
28
28
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Ho(e, t, r) {
|
|
31
31
|
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Bo(e) {
|
|
34
34
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function qo() {
|
|
37
37
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Fo(e) {
|
|
40
40
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Uo() {
|
|
43
43
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Go() {
|
|
46
46
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Ko(e) {
|
|
49
49
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Yo() {
|
|
52
52
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Xo() {
|
|
55
55
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Jo() {
|
|
58
58
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Qo() {
|
|
61
61
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Zo() {
|
|
64
64
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function wr(e) {
|
|
67
67
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function es() {
|
|
70
70
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
71
71
|
}
|
|
72
72
|
var C = !1;
|
|
@@ -76,26 +76,26 @@ function Oe(e) {
|
|
|
76
76
|
var M;
|
|
77
77
|
function X(e) {
|
|
78
78
|
if (e === null)
|
|
79
|
-
throw
|
|
79
|
+
throw wr(), gt;
|
|
80
80
|
return M = e;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function yr() {
|
|
83
83
|
return X(/* @__PURE__ */ Se(M));
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Kt(e) {
|
|
86
86
|
if (C) {
|
|
87
87
|
if (/* @__PURE__ */ Se(M) !== null)
|
|
88
|
-
throw
|
|
88
|
+
throw wr(), gt;
|
|
89
89
|
M = e;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function ts(e = 1) {
|
|
93
93
|
if (C) {
|
|
94
94
|
for (var t = e, r = M; t--; ) r = /* @__PURE__ */ Se(r);
|
|
95
95
|
M = r;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function hr(e = !0) {
|
|
99
99
|
for (var t = 0, r = M; ; ) {
|
|
100
100
|
if (r.nodeType === 8) {
|
|
101
101
|
var n = r.data;
|
|
@@ -108,32 +108,32 @@ function ur(e = !0) {
|
|
|
108
108
|
e && r.remove(), r = i;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function vi(e) {
|
|
112
112
|
if (!e || e.nodeType !== 8)
|
|
113
|
-
throw
|
|
113
|
+
throw wr(), gt;
|
|
114
114
|
return e.data;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function gi(e) {
|
|
117
117
|
return e === this.v;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function rs(e, t) {
|
|
120
120
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
return !
|
|
122
|
+
function _i(e) {
|
|
123
|
+
return !rs(e, this.v);
|
|
124
124
|
}
|
|
125
|
-
var
|
|
126
|
-
function
|
|
127
|
-
return e.label = t,
|
|
125
|
+
var Le = !1, Tr = !1;
|
|
126
|
+
function Dn(e, t) {
|
|
127
|
+
return e.label = t, ns(e.v, t), e;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
return e?.[
|
|
129
|
+
function ns(e, t) {
|
|
130
|
+
return e?.[jo]?.(t), e;
|
|
131
131
|
}
|
|
132
132
|
var W = null;
|
|
133
|
-
function
|
|
133
|
+
function mt(e) {
|
|
134
134
|
W = e;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function mi(e, t = !1, r) {
|
|
137
137
|
W = {
|
|
138
138
|
p: W,
|
|
139
139
|
i: !1,
|
|
@@ -142,50 +142,50 @@ function vi(e, t = !1, r) {
|
|
|
142
142
|
s: e,
|
|
143
143
|
x: null,
|
|
144
144
|
r: A,
|
|
145
|
-
l:
|
|
145
|
+
l: Tr && !t ? {
|
|
146
146
|
s: null,
|
|
147
147
|
u: null,
|
|
148
148
|
$: []
|
|
149
149
|
} : null
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function bi(e) {
|
|
153
153
|
var t = W, r = t.e;
|
|
154
154
|
if (r !== null) {
|
|
155
155
|
t.e = null;
|
|
156
|
-
for (var n of r)
|
|
156
|
+
for (var n of r) Ui(n);
|
|
157
157
|
}
|
|
158
158
|
return e !== void 0 && (t.x = e), t.i = !0, W = t.p, e ?? {};
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
return !
|
|
160
|
+
function Wt() {
|
|
161
|
+
return !Tr || W !== null && W.l === null;
|
|
162
162
|
}
|
|
163
|
-
var
|
|
164
|
-
function
|
|
165
|
-
var e =
|
|
166
|
-
|
|
163
|
+
var Ye = [];
|
|
164
|
+
function wi() {
|
|
165
|
+
var e = Ye;
|
|
166
|
+
Ye = [], xo(e);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
if (
|
|
170
|
-
var t =
|
|
168
|
+
function ot(e) {
|
|
169
|
+
if (Ye.length === 0 && !Nt) {
|
|
170
|
+
var t = Ye;
|
|
171
171
|
queueMicrotask(() => {
|
|
172
|
-
t ===
|
|
172
|
+
t === Ye && wi();
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
-
|
|
175
|
+
Ye.push(e);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
for (;
|
|
177
|
+
function is() {
|
|
178
|
+
for (; Ye.length > 0; ) wi();
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function yi(e) {
|
|
181
181
|
var t = A;
|
|
182
182
|
if (t === null)
|
|
183
|
-
return
|
|
183
|
+
return $.f |= dr, e;
|
|
184
184
|
if (!(t.f & 32768) && !(t.f & 4))
|
|
185
185
|
throw e;
|
|
186
|
-
|
|
186
|
+
Be(e, t);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Be(e, t) {
|
|
189
189
|
for (; t !== null; ) {
|
|
190
190
|
if (t.f & 128) {
|
|
191
191
|
if (!(t.f & 32768)) throw e;
|
|
@@ -200,167 +200,167 @@ function We(e, t) {
|
|
|
200
200
|
}
|
|
201
201
|
throw e;
|
|
202
202
|
}
|
|
203
|
-
var
|
|
203
|
+
var os = ~(ve | lt | ie);
|
|
204
204
|
function N(e, t) {
|
|
205
|
-
e.f = e.f &
|
|
205
|
+
e.f = e.f & os | t;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
e.f & 512 || e.deps === null ? N(e, ie) : N(e,
|
|
207
|
+
function sn(e) {
|
|
208
|
+
e.f & 512 || e.deps === null ? N(e, ie) : N(e, lt);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Ti(e) {
|
|
211
211
|
if (e !== null)
|
|
212
212
|
for (const t of e)
|
|
213
|
-
!(t.f & 2) || !(t.f & 65536) || (t.f ^=
|
|
213
|
+
!(t.f & 2) || !(t.f & 65536) || (t.f ^= zt, Ti(t.deps));
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e),
|
|
215
|
+
function Si(e, t, r) {
|
|
216
|
+
e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e), Ti(e.deps), N(e, ie);
|
|
217
217
|
}
|
|
218
|
-
var
|
|
219
|
-
function
|
|
220
|
-
var t =
|
|
218
|
+
var ss = !1, Yt = !1;
|
|
219
|
+
function as(e) {
|
|
220
|
+
var t = Yt;
|
|
221
221
|
try {
|
|
222
|
-
return
|
|
222
|
+
return Yt = !1, [e(), Yt];
|
|
223
223
|
} finally {
|
|
224
|
-
|
|
224
|
+
Yt = t;
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function ki(e, t) {
|
|
228
228
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
229
229
|
}
|
|
230
|
-
function
|
|
231
|
-
|
|
230
|
+
function an(e, t) {
|
|
231
|
+
ki(e, t), t.add(e);
|
|
232
232
|
}
|
|
233
233
|
function S(e, t, r) {
|
|
234
|
-
|
|
234
|
+
ki(e, t), t.set(e, r);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function L(e, t, r) {
|
|
237
237
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
|
|
238
238
|
throw new TypeError("Private element is not present on this object");
|
|
239
239
|
}
|
|
240
240
|
function l(e, t) {
|
|
241
|
-
return e.get(
|
|
241
|
+
return e.get(L(e, t));
|
|
242
242
|
}
|
|
243
243
|
function k(e, t, r) {
|
|
244
|
-
return e.set(
|
|
244
|
+
return e.set(L(e, t), r), r;
|
|
245
245
|
}
|
|
246
|
-
var
|
|
247
|
-
var
|
|
246
|
+
var Ai, we = /* @__PURE__ */ new Set(), I = null, Vn = null, F = null, Hr = null, Nt = !1, Or = !1, bt = null, pr = null, Ii = 0;
|
|
247
|
+
var ls = 1, vr = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), nr = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), Br = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakSet(), ct = class Ei {
|
|
248
248
|
constructor() {
|
|
249
|
-
|
|
249
|
+
an(this, K), b(this, "id", ls++), b(this, "current", /* @__PURE__ */ new Map()), b(this, "previous", /* @__PURE__ */ new Map()), S(this, vr, /* @__PURE__ */ new Set()), S(this, Xt, /* @__PURE__ */ new Set()), S(this, Et, /* @__PURE__ */ new Set()), S(this, Ke, /* @__PURE__ */ new Map()), S(this, ze, /* @__PURE__ */ new Map()), S(this, nr, null), S(this, fe, []), S(this, Br, []), S(this, wt, /* @__PURE__ */ new Set()), S(this, Ze, /* @__PURE__ */ new Set()), S(this, He, /* @__PURE__ */ new Map()), S(this, ir, /* @__PURE__ */ new Set()), b(this, "is_fork", !1), S(this, Jt, !1), S(this, vt, /* @__PURE__ */ new Set());
|
|
250
250
|
}
|
|
251
251
|
skip_effect(t) {
|
|
252
|
-
l(
|
|
252
|
+
l(He, this).has(t) || l(He, this).set(t, {
|
|
253
253
|
d: [],
|
|
254
254
|
m: []
|
|
255
|
-
}), l(
|
|
255
|
+
}), l(ir, this).delete(t);
|
|
256
256
|
}
|
|
257
257
|
unskip_effect(t, r = (n) => this.schedule(n)) {
|
|
258
|
-
var n = l(
|
|
258
|
+
var n = l(He, this).get(t);
|
|
259
259
|
if (n) {
|
|
260
|
-
l(
|
|
260
|
+
l(He, this).delete(t);
|
|
261
261
|
for (var i of n.d)
|
|
262
|
-
N(i,
|
|
262
|
+
N(i, ve), r(i);
|
|
263
263
|
for (i of n.m)
|
|
264
|
-
N(i,
|
|
264
|
+
N(i, lt), r(i);
|
|
265
265
|
}
|
|
266
|
-
l(
|
|
266
|
+
l(ir, this).add(t);
|
|
267
267
|
}
|
|
268
268
|
capture(t, r, n = !1) {
|
|
269
|
-
t.v !== j && !this.previous.has(t) && this.previous.set(t, t.v), t.f & 8388608 || (this.current.set(t, [r, n]),
|
|
269
|
+
t.v !== j && !this.previous.has(t) && this.previous.set(t, t.v), t.f & 8388608 || (this.current.set(t, [r, n]), F?.set(t, r)), this.is_fork || (t.v = r);
|
|
270
270
|
}
|
|
271
271
|
activate() {
|
|
272
272
|
I = this;
|
|
273
273
|
}
|
|
274
274
|
deactivate() {
|
|
275
|
-
I = null,
|
|
275
|
+
I = null, F = null;
|
|
276
276
|
}
|
|
277
277
|
flush() {
|
|
278
278
|
var t = null;
|
|
279
279
|
try {
|
|
280
|
-
|
|
280
|
+
Or = !0, I = this, L(K, this, ln).call(this);
|
|
281
281
|
} finally {
|
|
282
|
-
|
|
282
|
+
Ii = 0, Hr = null, bt = null, pr = null, Or = !1, I = null, F = null, rt.clear();
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
discard() {
|
|
286
|
-
for (const t of l(
|
|
287
|
-
l(
|
|
286
|
+
for (const t of l(Xt, this)) t(this);
|
|
287
|
+
l(Xt, this).clear(), l(Et, this).clear(), we.delete(this);
|
|
288
288
|
}
|
|
289
289
|
register_created_effect(t) {
|
|
290
|
-
l(
|
|
290
|
+
l(Br, this).push(t);
|
|
291
291
|
}
|
|
292
292
|
increment(t, r) {
|
|
293
|
-
let n = l(
|
|
294
|
-
if (l(
|
|
295
|
-
let i = l(
|
|
296
|
-
l(
|
|
293
|
+
let n = l(Ke, this).get(r) ?? 0;
|
|
294
|
+
if (l(Ke, this).set(r, n + 1), t) {
|
|
295
|
+
let i = l(ze, this).get(r) ?? 0;
|
|
296
|
+
l(ze, this).set(r, i + 1);
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
decrement(t, r, n) {
|
|
300
|
-
let i = l(
|
|
301
|
-
if (i === 1 ? l(
|
|
302
|
-
let o = l(
|
|
303
|
-
o === 1 ? l(
|
|
300
|
+
let i = l(Ke, this).get(r) ?? 0;
|
|
301
|
+
if (i === 1 ? l(Ke, this).delete(r) : l(Ke, this).set(r, i - 1), t) {
|
|
302
|
+
let o = l(ze, this).get(r) ?? 0;
|
|
303
|
+
o === 1 ? l(ze, this).delete(r) : l(ze, this).set(r, o - 1);
|
|
304
304
|
}
|
|
305
|
-
l(
|
|
306
|
-
k(
|
|
305
|
+
l(Jt, this) || n || (k(Jt, this, !0), ot(() => {
|
|
306
|
+
k(Jt, this, !1), this.flush();
|
|
307
307
|
}));
|
|
308
308
|
}
|
|
309
309
|
transfer_effects(t, r) {
|
|
310
|
-
for (const n of t) l(
|
|
311
|
-
for (const n of r) l(
|
|
310
|
+
for (const n of t) l(wt, this).add(n);
|
|
311
|
+
for (const n of r) l(Ze, this).add(n);
|
|
312
312
|
t.clear(), r.clear();
|
|
313
313
|
}
|
|
314
314
|
oncommit(t) {
|
|
315
|
-
l(
|
|
315
|
+
l(vr, this).add(t);
|
|
316
316
|
}
|
|
317
317
|
ondiscard(t) {
|
|
318
|
-
l(
|
|
318
|
+
l(Xt, this).add(t);
|
|
319
319
|
}
|
|
320
320
|
on_fork_commit(t) {
|
|
321
|
-
l(
|
|
321
|
+
l(Et, this).add(t);
|
|
322
322
|
}
|
|
323
323
|
run_fork_commit_callbacks() {
|
|
324
|
-
for (const t of l(
|
|
325
|
-
l(
|
|
324
|
+
for (const t of l(Et, this)) t(this);
|
|
325
|
+
l(Et, this).clear();
|
|
326
326
|
}
|
|
327
327
|
settled() {
|
|
328
|
-
return (l(
|
|
328
|
+
return (l(nr, this) ?? k(nr, this, hi())).promise;
|
|
329
329
|
}
|
|
330
330
|
static ensure() {
|
|
331
331
|
if (I === null) {
|
|
332
|
-
const t = I = new
|
|
333
|
-
|
|
332
|
+
const t = I = new Ei();
|
|
333
|
+
Or || (we.add(I), Nt || ot(() => {
|
|
334
334
|
I === t && t.flush();
|
|
335
335
|
}));
|
|
336
336
|
}
|
|
337
337
|
return I;
|
|
338
338
|
}
|
|
339
339
|
apply() {
|
|
340
|
-
if (!
|
|
341
|
-
|
|
340
|
+
if (!Le || !this.is_fork && we.size === 1) {
|
|
341
|
+
F = null;
|
|
342
342
|
return;
|
|
343
343
|
}
|
|
344
|
-
|
|
345
|
-
for (const [n, [i]] of this.current)
|
|
346
|
-
for (const n of
|
|
344
|
+
F = /* @__PURE__ */ new Map();
|
|
345
|
+
for (const [n, [i]] of this.current) F.set(n, i);
|
|
346
|
+
for (const n of we)
|
|
347
347
|
if (!(n === this || n.is_fork)) {
|
|
348
348
|
var t = !1, r = !1;
|
|
349
349
|
if (n.id < this.id) for (const [i, [, o]] of n.current)
|
|
350
350
|
o || (t || (t = this.current.has(i)), r || (r = !this.current.has(i)));
|
|
351
|
-
if (t && r) l(
|
|
352
|
-
else for (const [i, o] of n.previous)
|
|
351
|
+
if (t && r) l(vt, this).add(n);
|
|
352
|
+
else for (const [i, o] of n.previous) F.has(i) || F.set(i, o);
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
schedule(t) {
|
|
356
|
-
if (
|
|
356
|
+
if (Hr = t, t.b?.is_pending && t.f & 16777228 && !(t.f & 32768)) {
|
|
357
357
|
t.b.defer_effect(t);
|
|
358
358
|
return;
|
|
359
359
|
}
|
|
360
360
|
for (var r = t; r.parent !== null; ) {
|
|
361
361
|
r = r.parent;
|
|
362
362
|
var n = r.f;
|
|
363
|
-
if (
|
|
363
|
+
if (bt !== null && r === A && (Le || ($ === null || !($.f & 2)) && !ss))
|
|
364
364
|
return;
|
|
365
365
|
if (n & 96) {
|
|
366
366
|
if (!(n & 1024)) return;
|
|
@@ -370,14 +370,14 @@ var ns = 1, dr = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE__ */ new WeakMap
|
|
|
370
370
|
l(fe, this).push(r);
|
|
371
371
|
}
|
|
372
372
|
};
|
|
373
|
-
|
|
374
|
-
function
|
|
375
|
-
return this.is_fork || l(
|
|
373
|
+
Ai = ct;
|
|
374
|
+
function qr() {
|
|
375
|
+
return this.is_fork || l(ze, this).size > 0;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
for (const r of l(
|
|
377
|
+
function cs() {
|
|
378
|
+
for (const r of l(vt, this)) for (const n of l(ze, r).keys()) {
|
|
379
379
|
for (var e = !1, t = n; t.parent !== null; ) {
|
|
380
|
-
if (l(
|
|
380
|
+
if (l(He, this).has(t)) {
|
|
381
381
|
e = !0;
|
|
382
382
|
break;
|
|
383
383
|
}
|
|
@@ -387,46 +387,46 @@ function is() {
|
|
|
387
387
|
}
|
|
388
388
|
return !1;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
391
|
-
if (
|
|
392
|
-
for (const s of l(
|
|
393
|
-
l(
|
|
394
|
-
for (const s of l(
|
|
395
|
-
N(s,
|
|
390
|
+
function ln() {
|
|
391
|
+
if (Ii++ > 1e3 && (we.delete(this), fs()), !L(K, this, qr).call(this)) {
|
|
392
|
+
for (const s of l(wt, this))
|
|
393
|
+
l(Ze, this).delete(s), N(s, ve), this.schedule(s);
|
|
394
|
+
for (const s of l(Ze, this))
|
|
395
|
+
N(s, lt), this.schedule(s);
|
|
396
396
|
}
|
|
397
397
|
const e = l(fe, this);
|
|
398
398
|
k(fe, this, []), this.apply();
|
|
399
|
-
var t =
|
|
399
|
+
var t = bt = [], r = [], n = pr = [];
|
|
400
400
|
for (const s of e) try {
|
|
401
|
-
|
|
401
|
+
L(K, this, $i).call(this, s, t, r);
|
|
402
402
|
} catch (a) {
|
|
403
|
-
throw
|
|
403
|
+
throw Ri(s), a;
|
|
404
404
|
}
|
|
405
405
|
if (I = null, n.length > 0) {
|
|
406
|
-
var i =
|
|
406
|
+
var i = Ai.ensure();
|
|
407
407
|
for (const s of n) i.schedule(s);
|
|
408
408
|
}
|
|
409
|
-
if (
|
|
410
|
-
|
|
411
|
-
for (const [s, a] of l(
|
|
409
|
+
if (bt = null, pr = null, L(K, this, qr).call(this) || L(K, this, cs).call(this)) {
|
|
410
|
+
L(K, this, Fr).call(this, r), L(K, this, Fr).call(this, t);
|
|
411
|
+
for (const [s, a] of l(He, this)) Li(s, a);
|
|
412
412
|
} else {
|
|
413
|
-
l(
|
|
414
|
-
for (const s of l(
|
|
415
|
-
l(
|
|
413
|
+
l(Ke, this).size === 0 && we.delete(this), l(wt, this).clear(), l(Ze, this).clear();
|
|
414
|
+
for (const s of l(vr, this)) s(this);
|
|
415
|
+
l(vr, this).clear(), Vn = this, jn(r), jn(t), Vn = null, l(nr, this)?.resolve();
|
|
416
416
|
}
|
|
417
417
|
var o = I;
|
|
418
418
|
if (l(fe, this).length > 0) {
|
|
419
419
|
const s = o ?? (o = this);
|
|
420
420
|
l(fe, s).push(...l(fe, this).filter((a) => !l(fe, s).includes(a)));
|
|
421
421
|
}
|
|
422
|
-
o !== null && (
|
|
422
|
+
o !== null && (we.add(o), L(K, o, ln).call(o)), Le && !we.has(this) && L(K, this, us).call(this);
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function $i(e, t, r) {
|
|
425
425
|
e.f ^= ie;
|
|
426
426
|
for (var n = e.first; n !== null; ) {
|
|
427
427
|
var i = n.f, o = (i & 96) !== 0;
|
|
428
|
-
if (!(o && i & 1024 || i & 8192 || l(
|
|
429
|
-
o ? n.f ^= ie : i & 4 ? t.push(n) :
|
|
428
|
+
if (!(o && i & 1024 || i & 8192 || l(He, this).has(n)) && n.fn !== null) {
|
|
429
|
+
o ? n.f ^= ie : i & 4 ? t.push(n) : Le && i & 16777224 ? r.push(n) : Ht(n) && (i & 16 && l(Ze, this).add(n), Tt(n));
|
|
430
430
|
var s = n.first;
|
|
431
431
|
if (s !== null) {
|
|
432
432
|
n = s;
|
|
@@ -443,16 +443,16 @@ function ki(e, t, r) {
|
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
for (var t = 0; t < e.length; t += 1)
|
|
446
|
+
function Fr(e) {
|
|
447
|
+
for (var t = 0; t < e.length; t += 1) Si(e[t], l(wt, this), l(Ze, this));
|
|
448
448
|
}
|
|
449
|
-
function
|
|
450
|
-
for (const u of
|
|
449
|
+
function us() {
|
|
450
|
+
for (const u of we) {
|
|
451
451
|
var e = u.id < this.id, t = [];
|
|
452
|
-
for (const [f, [
|
|
452
|
+
for (const [f, [p, d]] of this.current) {
|
|
453
453
|
if (u.current.has(f)) {
|
|
454
454
|
var r = u.current.get(f)[0];
|
|
455
|
-
if (e &&
|
|
455
|
+
if (e && p !== r) u.current.set(f, [p, d]);
|
|
456
456
|
else continue;
|
|
457
457
|
}
|
|
458
458
|
t.push(f);
|
|
@@ -461,58 +461,58 @@ function os() {
|
|
|
461
461
|
if (n.length === 0)
|
|
462
462
|
e && u.discard();
|
|
463
463
|
else if (t.length > 0) {
|
|
464
|
-
if (e) for (const f of l(
|
|
465
|
-
|
|
464
|
+
if (e) for (const f of l(ir, this)) u.unskip_effect(f, (p) => {
|
|
465
|
+
p.f & 4194320 ? u.schedule(p) : L(K, u, Fr).call(u, [p]);
|
|
466
466
|
});
|
|
467
467
|
u.activate();
|
|
468
468
|
var i = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
469
|
-
for (var s of t)
|
|
469
|
+
for (var s of t) Oi(s, n, i, o);
|
|
470
470
|
o = /* @__PURE__ */ new Map();
|
|
471
471
|
var a = [...u.current.keys()].filter((f) => this.current.has(f) ? this.current.get(f)[0] !== f : !0);
|
|
472
|
-
for (const f of l(
|
|
472
|
+
for (const f of l(Br, this)) !(f.f & 155648) && cn(f, a, o) && (f.f & 4194320 ? (N(f, ve), u.schedule(f)) : l(wt, u).add(f));
|
|
473
473
|
if (l(fe, u).length > 0) {
|
|
474
474
|
u.apply();
|
|
475
|
-
for (var c of l(fe, u))
|
|
475
|
+
for (var c of l(fe, u)) L(K, u, $i).call(u, c, [], []);
|
|
476
476
|
k(fe, u, []);
|
|
477
477
|
}
|
|
478
478
|
u.deactivate();
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
for (const u of
|
|
481
|
+
for (const u of we) l(vt, u).has(this) && (l(vt, u).delete(this), l(vt, u).size === 0 && !L(K, u, qr).call(u) && (u.activate(), L(K, u, ln).call(u)));
|
|
482
482
|
}
|
|
483
|
-
function
|
|
484
|
-
var t =
|
|
485
|
-
|
|
483
|
+
function or(e) {
|
|
484
|
+
var t = Nt;
|
|
485
|
+
Nt = !0;
|
|
486
486
|
try {
|
|
487
487
|
var r;
|
|
488
488
|
for (e && (I !== null && !I.is_fork && I.flush(), r = e()); ; ) {
|
|
489
|
-
if (
|
|
489
|
+
if (is(), I === null) return r;
|
|
490
490
|
I.flush();
|
|
491
491
|
}
|
|
492
492
|
} finally {
|
|
493
|
-
|
|
493
|
+
Nt = t;
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function fs() {
|
|
497
497
|
if (0) {
|
|
498
498
|
var e;
|
|
499
499
|
for (const r of I.current.keys()) for (const [n, i] of r.updated ?? [])
|
|
500
500
|
var t;
|
|
501
501
|
}
|
|
502
502
|
try {
|
|
503
|
-
|
|
503
|
+
Uo();
|
|
504
504
|
} catch (r) {
|
|
505
|
-
|
|
505
|
+
Be(r, Hr);
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
var me = null;
|
|
509
|
-
function
|
|
509
|
+
function jn(e) {
|
|
510
510
|
var t = e.length;
|
|
511
511
|
if (t !== 0) {
|
|
512
512
|
for (var r = 0; r < t; ) {
|
|
513
513
|
var n = e[r++];
|
|
514
|
-
if (!(n.f & 24576) &&
|
|
515
|
-
|
|
514
|
+
if (!(n.f & 24576) && Ht(n) && (me = /* @__PURE__ */ new Set(), Tt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Yi(n), me?.size > 0)) {
|
|
515
|
+
rt.clear();
|
|
516
516
|
for (const i of me) {
|
|
517
517
|
if (i.f & 24576) continue;
|
|
518
518
|
const o = [i];
|
|
@@ -521,7 +521,7 @@ function xn(e) {
|
|
|
521
521
|
me.has(s) && (me.delete(s), o.push(s)), s = s.parent;
|
|
522
522
|
for (let a = o.length - 1; a >= 0; a--) {
|
|
523
523
|
const c = o[a];
|
|
524
|
-
c.f & 24576 ||
|
|
524
|
+
c.f & 24576 || Tt(c);
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
me.clear();
|
|
@@ -530,73 +530,73 @@ function xn(e) {
|
|
|
530
530
|
me = null;
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function Oi(e, t, r, n) {
|
|
534
534
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
535
535
|
for (const i of e.reactions) {
|
|
536
536
|
const o = i.f;
|
|
537
|
-
o & 2 ?
|
|
537
|
+
o & 2 ? Oi(i, t, r, n) : o & 4194320 && !(o & 2048) && cn(i, t, n) && (N(i, ve), un(i));
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function cn(e, t, r) {
|
|
541
541
|
const n = r.get(e);
|
|
542
542
|
if (n !== void 0) return n;
|
|
543
543
|
if (e.deps !== null) for (const i of e.deps) {
|
|
544
|
-
if (
|
|
545
|
-
if (i.f & 2 &&
|
|
544
|
+
if (_t.call(t, i)) return !0;
|
|
545
|
+
if (i.f & 2 && cn(i, t, r))
|
|
546
546
|
return r.set(i, !0), !0;
|
|
547
547
|
}
|
|
548
548
|
return r.set(e, !1), !1;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function un(e) {
|
|
551
551
|
I.schedule(e);
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function Li(e, t) {
|
|
554
554
|
if (!(e.f & 32 && e.f & 1024)) {
|
|
555
555
|
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), N(e, ie);
|
|
556
556
|
for (var r = e.first; r !== null; )
|
|
557
|
-
|
|
557
|
+
Li(r, t), r = r.next;
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function Ri(e) {
|
|
561
561
|
N(e, ie);
|
|
562
562
|
for (var t = e.first; t !== null; )
|
|
563
|
-
|
|
563
|
+
Ri(t), t = t.next;
|
|
564
564
|
}
|
|
565
|
-
function
|
|
566
|
-
let t = 0, r =
|
|
565
|
+
function ds(e) {
|
|
566
|
+
let t = 0, r = st(0), n;
|
|
567
567
|
return () => {
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
t -= 1, t === 0 && (n?.(), n = void 0,
|
|
568
|
+
gn() && (_(r), _n(() => (t === 0 && (n = Tn(() => e(() => Dt(r)))), t += 1, () => {
|
|
569
|
+
ot(() => {
|
|
570
|
+
t -= 1, t === 0 && (n?.(), n = void 0, Dt(r));
|
|
571
571
|
});
|
|
572
572
|
})));
|
|
573
573
|
};
|
|
574
574
|
}
|
|
575
|
-
var
|
|
576
|
-
function
|
|
577
|
-
new
|
|
575
|
+
var hs = on | St;
|
|
576
|
+
function ps(e, t, r, n) {
|
|
577
|
+
new vs(e, t, r, n);
|
|
578
578
|
}
|
|
579
|
-
var he = /* @__PURE__ */ new WeakMap(),
|
|
579
|
+
var he = /* @__PURE__ */ new WeakMap(), Ur = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakMap(), Vt = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), Gr = /* @__PURE__ */ new WeakMap(), Kr = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), zn = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakSet(), vs = class {
|
|
580
580
|
constructor(e, t, r, n) {
|
|
581
|
-
|
|
582
|
-
k(
|
|
583
|
-
}))), k(he, this, e), k(be, this, t), k(
|
|
581
|
+
an(this, B), b(this, "parent", void 0), b(this, "is_pending", !1), b(this, "transform_error", void 0), S(this, he, void 0), S(this, Ur, C ? M : null), S(this, be, void 0), S(this, Vt, void 0), S(this, re, void 0), S(this, ye, null), S(this, Z, null), S(this, ue, null), S(this, et, null), S(this, dt, 0), S(this, tt, 0), S(this, Qt, !1), S(this, Gr, /* @__PURE__ */ new Set()), S(this, Kr, /* @__PURE__ */ new Set()), S(this, Ue, null), S(this, zn, ds(() => (k(Ue, this, st(l(dt, this))), () => {
|
|
582
|
+
k(Ue, this, null);
|
|
583
|
+
}))), k(he, this, e), k(be, this, t), k(Vt, this, (i) => {
|
|
584
584
|
var o = A;
|
|
585
585
|
o.b = this, o.f |= 128, r(i);
|
|
586
|
-
}), this.parent = A.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), k(re, this,
|
|
586
|
+
}), this.parent = A.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), k(re, this, mn(() => {
|
|
587
587
|
if (C) {
|
|
588
|
-
const i = l(
|
|
589
|
-
|
|
588
|
+
const i = l(Ur, this);
|
|
589
|
+
yr();
|
|
590
590
|
const o = i.data === "[!";
|
|
591
591
|
if (i.data.startsWith("[?")) {
|
|
592
592
|
const s = JSON.parse(i.data.slice(2));
|
|
593
|
-
|
|
594
|
-
} else o ?
|
|
595
|
-
} else
|
|
596
|
-
},
|
|
593
|
+
L(B, this, _s).call(this, s);
|
|
594
|
+
} else o ? L(B, this, ms).call(this) : L(B, this, gs).call(this);
|
|
595
|
+
} else L(B, this, Mi).call(this);
|
|
596
|
+
}, hs)), C && k(he, this, M);
|
|
597
597
|
}
|
|
598
598
|
defer_effect(e) {
|
|
599
|
-
|
|
599
|
+
Si(e, l(Gr, this), l(Kr, this));
|
|
600
600
|
}
|
|
601
601
|
is_rendered() {
|
|
602
602
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -605,179 +605,179 @@ var he = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap(), be =
|
|
|
605
605
|
return !!l(be, this).pending;
|
|
606
606
|
}
|
|
607
607
|
update_pending_count(e, t) {
|
|
608
|
-
|
|
609
|
-
k(
|
|
608
|
+
L(B, this, Ci).call(this, e, t), k(dt, this, l(dt, this) + e), !(!l(Ue, this) || l(Qt, this)) && (k(Qt, this, !0), ot(() => {
|
|
609
|
+
k(Qt, this, !1), l(Ue, this) && yt(l(Ue, this), l(dt, this));
|
|
610
610
|
}));
|
|
611
611
|
}
|
|
612
612
|
get_effect_pending() {
|
|
613
|
-
return l(
|
|
613
|
+
return l(zn, this).call(this), _(l(Ue, this));
|
|
614
614
|
}
|
|
615
615
|
error(e) {
|
|
616
616
|
if (!l(be, this).onerror && !l(be, this).failed) throw e;
|
|
617
|
-
I?.is_fork ? (l(
|
|
618
|
-
|
|
619
|
-
})) :
|
|
617
|
+
I?.is_fork ? (l(ye, this) && I.skip_effect(l(ye, this)), l(Z, this) && I.skip_effect(l(Z, this)), l(ue, this) && I.skip_effect(l(ue, this)), I.on_fork_commit(() => {
|
|
618
|
+
L(B, this, Wn).call(this, e);
|
|
619
|
+
})) : L(B, this, Wn).call(this, e);
|
|
620
620
|
}
|
|
621
621
|
};
|
|
622
|
-
function
|
|
622
|
+
function gs() {
|
|
623
623
|
try {
|
|
624
|
-
k(
|
|
624
|
+
k(ye, this, oe(() => l(Vt, this).call(this, l(he, this))));
|
|
625
625
|
} catch (e) {
|
|
626
626
|
this.error(e);
|
|
627
627
|
}
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function _s(e) {
|
|
630
630
|
const t = l(be, this).failed;
|
|
631
631
|
t && k(ue, this, oe(() => {
|
|
632
632
|
t(l(he, this), () => e, () => () => {
|
|
633
633
|
});
|
|
634
634
|
}));
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function ms() {
|
|
637
637
|
const e = l(be, this).pending;
|
|
638
|
-
e && (this.is_pending = !0, k(Z, this, oe(() => e(l(he, this)))),
|
|
639
|
-
var t = k(
|
|
640
|
-
t.append(r), k(
|
|
638
|
+
e && (this.is_pending = !0, k(Z, this, oe(() => e(l(he, this)))), ot(() => {
|
|
639
|
+
var t = k(et, this, document.createDocumentFragment()), r = pe();
|
|
640
|
+
t.append(r), k(ye, this, L(B, this, Yr).call(this, () => oe(() => l(Vt, this).call(this, r)))), l(tt, this) === 0 && (l(he, this).before(t), k(et, this, null), ut(l(Z, this), () => {
|
|
641
641
|
k(Z, this, null);
|
|
642
|
-
}),
|
|
642
|
+
}), L(B, this, fn).call(this, I));
|
|
643
643
|
}));
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function Mi() {
|
|
646
646
|
try {
|
|
647
|
-
if (this.is_pending = this.has_pending_snippet(), k(
|
|
648
|
-
l(
|
|
649
|
-
})), l(
|
|
650
|
-
var e = k(
|
|
651
|
-
|
|
647
|
+
if (this.is_pending = this.has_pending_snippet(), k(tt, this, 0), k(dt, this, 0), k(ye, this, oe(() => {
|
|
648
|
+
l(Vt, this).call(this, l(he, this));
|
|
649
|
+
})), l(tt, this) > 0) {
|
|
650
|
+
var e = k(et, this, document.createDocumentFragment());
|
|
651
|
+
yn(l(ye, this), e);
|
|
652
652
|
const t = l(be, this).pending;
|
|
653
653
|
k(Z, this, oe(() => t(l(he, this))));
|
|
654
|
-
} else
|
|
654
|
+
} else L(B, this, fn).call(this, I);
|
|
655
655
|
} catch (t) {
|
|
656
656
|
this.error(t);
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
|
-
function
|
|
660
|
-
this.is_pending = !1, e.transfer_effects(l(
|
|
659
|
+
function fn(e) {
|
|
660
|
+
this.is_pending = !1, e.transfer_effects(l(Gr, this), l(Kr, this));
|
|
661
661
|
}
|
|
662
|
-
function
|
|
663
|
-
var t = A, r =
|
|
664
|
-
Te(l(re, this)), se(l(re, this)),
|
|
662
|
+
function Yr(e) {
|
|
663
|
+
var t = A, r = $, n = W;
|
|
664
|
+
Te(l(re, this)), se(l(re, this)), mt(l(re, this).ctx);
|
|
665
665
|
try {
|
|
666
|
-
return
|
|
666
|
+
return ct.ensure(), e();
|
|
667
667
|
} catch (i) {
|
|
668
|
-
return
|
|
668
|
+
return yi(i), null;
|
|
669
669
|
} finally {
|
|
670
|
-
Te(t), se(r),
|
|
670
|
+
Te(t), se(r), mt(n);
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function Ci(e, t) {
|
|
674
674
|
if (!this.has_pending_snippet()) {
|
|
675
675
|
if (this.parent) {
|
|
676
676
|
var r;
|
|
677
|
-
|
|
677
|
+
L(B, r = this.parent, Ci).call(r, e, t);
|
|
678
678
|
}
|
|
679
679
|
return;
|
|
680
680
|
}
|
|
681
|
-
k(
|
|
681
|
+
k(tt, this, l(tt, this) + e), l(tt, this) === 0 && (L(B, this, fn).call(this, t), l(Z, this) && ut(l(Z, this), () => {
|
|
682
682
|
k(Z, this, null);
|
|
683
|
-
}), l(
|
|
683
|
+
}), l(et, this) && (l(he, this).before(l(et, this)), k(et, this, null)));
|
|
684
684
|
}
|
|
685
|
-
function
|
|
686
|
-
l(
|
|
685
|
+
function Wn(e) {
|
|
686
|
+
l(ye, this) && (U(l(ye, this)), k(ye, this, null)), l(Z, this) && (U(l(Z, this)), k(Z, this, null)), l(ue, this) && (U(l(ue, this)), k(ue, this, null)), C && (X(l(Ur, this)), ts(), X(hr()));
|
|
687
687
|
var t = l(be, this).onerror;
|
|
688
688
|
let r = l(be, this).failed;
|
|
689
689
|
var n = !1, i = !1;
|
|
690
690
|
const o = () => {
|
|
691
691
|
if (n) {
|
|
692
|
-
|
|
692
|
+
es();
|
|
693
693
|
return;
|
|
694
694
|
}
|
|
695
|
-
n = !0, i &&
|
|
695
|
+
n = !0, i && Qo(), l(ue, this) !== null && ut(l(ue, this), () => {
|
|
696
696
|
k(ue, this, null);
|
|
697
|
-
}),
|
|
698
|
-
|
|
697
|
+
}), L(B, this, Yr).call(this, () => {
|
|
698
|
+
L(B, this, Mi).call(this);
|
|
699
699
|
});
|
|
700
700
|
}, s = (a) => {
|
|
701
701
|
try {
|
|
702
702
|
i = !0, t?.(a, o), i = !1;
|
|
703
703
|
} catch (c) {
|
|
704
|
-
|
|
704
|
+
Be(c, l(re, this) && l(re, this).parent);
|
|
705
705
|
}
|
|
706
|
-
r && k(ue, this,
|
|
706
|
+
r && k(ue, this, L(B, this, Yr).call(this, () => {
|
|
707
707
|
try {
|
|
708
708
|
return oe(() => {
|
|
709
709
|
var c = A;
|
|
710
710
|
c.b = this, c.f |= 128, r(l(he, this), () => a, () => o);
|
|
711
711
|
});
|
|
712
712
|
} catch (c) {
|
|
713
|
-
return
|
|
713
|
+
return Be(c, l(re, this).parent), null;
|
|
714
714
|
}
|
|
715
715
|
}));
|
|
716
716
|
};
|
|
717
|
-
|
|
717
|
+
ot(() => {
|
|
718
718
|
var a;
|
|
719
719
|
try {
|
|
720
720
|
a = this.transform_error(e);
|
|
721
721
|
} catch (c) {
|
|
722
|
-
|
|
722
|
+
Be(c, l(re, this) && l(re, this).parent);
|
|
723
723
|
return;
|
|
724
724
|
}
|
|
725
|
-
a !== null && typeof a == "object" && typeof a.then == "function" ? a.then(s, (c) =>
|
|
725
|
+
a !== null && typeof a == "object" && typeof a.then == "function" ? a.then(s, (c) => Be(c, l(re, this) && l(re, this).parent)) : s(a);
|
|
726
726
|
});
|
|
727
727
|
}
|
|
728
|
-
function
|
|
729
|
-
const i =
|
|
728
|
+
function bs(e, t, r, n) {
|
|
729
|
+
const i = Wt() ? Sr : dn;
|
|
730
730
|
var o = e.filter((d) => !d.settled);
|
|
731
731
|
if (r.length === 0 && o.length === 0) {
|
|
732
732
|
n(t.map(i));
|
|
733
733
|
return;
|
|
734
734
|
}
|
|
735
|
-
var s = A, a =
|
|
735
|
+
var s = A, a = ws(), c = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((d) => d.promise)) : null;
|
|
736
736
|
function u(d) {
|
|
737
737
|
a();
|
|
738
738
|
try {
|
|
739
739
|
n(d);
|
|
740
740
|
} catch (h) {
|
|
741
|
-
s.f & 16384 ||
|
|
741
|
+
s.f & 16384 || Be(h, s);
|
|
742
742
|
}
|
|
743
|
-
|
|
743
|
+
gr();
|
|
744
744
|
}
|
|
745
745
|
if (r.length === 0) {
|
|
746
746
|
c.then(() => u(t.map(i)));
|
|
747
747
|
return;
|
|
748
748
|
}
|
|
749
|
-
var f =
|
|
750
|
-
function
|
|
751
|
-
Promise.all(r.map((d) => /* @__PURE__ */
|
|
749
|
+
var f = xi();
|
|
750
|
+
function p() {
|
|
751
|
+
Promise.all(r.map((d) => /* @__PURE__ */ ys(d))).then((d) => u([...t.map(i), ...d])).catch((d) => Be(d, s)).finally(() => f());
|
|
752
752
|
}
|
|
753
753
|
c ? c.then(() => {
|
|
754
|
-
a(),
|
|
755
|
-
}) :
|
|
754
|
+
a(), p(), gr();
|
|
755
|
+
}) : p();
|
|
756
756
|
}
|
|
757
|
-
function
|
|
758
|
-
var e = A, t =
|
|
757
|
+
function ws() {
|
|
758
|
+
var e = A, t = $, r = W, n = I;
|
|
759
759
|
if (0) var i;
|
|
760
760
|
return function(s = !0) {
|
|
761
|
-
Te(e), se(t),
|
|
761
|
+
Te(e), se(t), mt(r), s && !(e.f & 16384) && (n?.activate(), n?.apply());
|
|
762
762
|
};
|
|
763
763
|
}
|
|
764
|
-
function
|
|
765
|
-
Te(null), se(null),
|
|
764
|
+
function gr(e = !0) {
|
|
765
|
+
Te(null), se(null), mt(null), e && I?.deactivate();
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function xi() {
|
|
768
768
|
var e = A, t = e.b, r = I, n = t.is_rendered();
|
|
769
769
|
return t.update_pending_count(1, r), r.increment(n, e), (i = !1) => {
|
|
770
770
|
t.update_pending_count(-1, r), r.decrement(n, e, i);
|
|
771
771
|
};
|
|
772
772
|
}
|
|
773
773
|
// @__NO_SIDE_EFFECTS__
|
|
774
|
-
function
|
|
775
|
-
var t = 2 |
|
|
776
|
-
return A !== null && (A.f |=
|
|
774
|
+
function Sr(e) {
|
|
775
|
+
var t = 2 | ve;
|
|
776
|
+
return A !== null && (A.f |= St), {
|
|
777
777
|
ctx: W,
|
|
778
778
|
deps: null,
|
|
779
779
|
effects: null,
|
|
780
|
-
equals:
|
|
780
|
+
equals: gi,
|
|
781
781
|
f: t,
|
|
782
782
|
fn: e,
|
|
783
783
|
reactions: null,
|
|
@@ -789,112 +789,112 @@ function yr(e) {
|
|
|
789
789
|
};
|
|
790
790
|
}
|
|
791
791
|
// @__NO_SIDE_EFFECTS__
|
|
792
|
-
function
|
|
792
|
+
function ys(e, t, r) {
|
|
793
793
|
let n = A;
|
|
794
|
-
n === null &&
|
|
795
|
-
var i = void 0, o =
|
|
796
|
-
return
|
|
797
|
-
var c = A, u =
|
|
794
|
+
n === null && Wo();
|
|
795
|
+
var i = void 0, o = st(j), s = !$, a = /* @__PURE__ */ new Map();
|
|
796
|
+
return Cs(() => {
|
|
797
|
+
var c = A, u = hi();
|
|
798
798
|
i = u.promise;
|
|
799
799
|
try {
|
|
800
|
-
Promise.resolve(e()).then(u.resolve, u.reject).finally(
|
|
800
|
+
Promise.resolve(e()).then(u.resolve, u.reject).finally(gr);
|
|
801
801
|
} catch (h) {
|
|
802
|
-
u.reject(h),
|
|
802
|
+
u.reject(h), gr();
|
|
803
803
|
}
|
|
804
804
|
var f = I;
|
|
805
805
|
if (s) {
|
|
806
|
-
if (c.f & 32768) var
|
|
806
|
+
if (c.f & 32768) var p = xi();
|
|
807
807
|
if (n.b.is_rendered())
|
|
808
|
-
a.get(f)?.reject(
|
|
808
|
+
a.get(f)?.reject($e), a.delete(f);
|
|
809
809
|
else {
|
|
810
|
-
for (const h of a.values()) h.reject(
|
|
810
|
+
for (const h of a.values()) h.reject($e);
|
|
811
811
|
a.clear();
|
|
812
812
|
}
|
|
813
813
|
a.set(f, u);
|
|
814
814
|
}
|
|
815
815
|
const d = (h, g = void 0) => {
|
|
816
|
-
if (
|
|
816
|
+
if (p && p(g === $e), !(g === $e || c.f & 16384)) {
|
|
817
817
|
if (f.activate(), g)
|
|
818
|
-
o.f |=
|
|
818
|
+
o.f |= dr, yt(o, g);
|
|
819
819
|
else {
|
|
820
|
-
o.f & 8388608 && (o.f ^=
|
|
821
|
-
for (const [
|
|
822
|
-
if (a.delete(
|
|
823
|
-
|
|
820
|
+
o.f & 8388608 && (o.f ^= dr), yt(o, h);
|
|
821
|
+
for (const [y, v] of a) {
|
|
822
|
+
if (a.delete(y), y === f) break;
|
|
823
|
+
v.reject($e);
|
|
824
824
|
}
|
|
825
825
|
}
|
|
826
826
|
f.deactivate();
|
|
827
827
|
}
|
|
828
828
|
};
|
|
829
829
|
u.promise.then(d, (h) => d(null, h || "unknown"));
|
|
830
|
-
}),
|
|
831
|
-
for (const c of a.values()) c.reject(
|
|
830
|
+
}), Ls(() => {
|
|
831
|
+
for (const c of a.values()) c.reject($e);
|
|
832
832
|
}), new Promise((c) => {
|
|
833
833
|
function u(f) {
|
|
834
|
-
function
|
|
834
|
+
function p() {
|
|
835
835
|
f === i ? c(o) : u(i);
|
|
836
836
|
}
|
|
837
|
-
f.then(
|
|
837
|
+
f.then(p, p);
|
|
838
838
|
}
|
|
839
839
|
u(i);
|
|
840
840
|
});
|
|
841
841
|
}
|
|
842
842
|
// @__NO_SIDE_EFFECTS__
|
|
843
|
-
function
|
|
844
|
-
const t = /* @__PURE__ */
|
|
845
|
-
return
|
|
843
|
+
function Lr(e) {
|
|
844
|
+
const t = /* @__PURE__ */ Sr(e);
|
|
845
|
+
return Le || Qi(t), t;
|
|
846
846
|
}
|
|
847
847
|
// @__NO_SIDE_EFFECTS__
|
|
848
|
-
function
|
|
849
|
-
const t = /* @__PURE__ */
|
|
850
|
-
return t.equals =
|
|
848
|
+
function dn(e) {
|
|
849
|
+
const t = /* @__PURE__ */ Sr(e);
|
|
850
|
+
return t.equals = _i, t;
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function Ts(e) {
|
|
853
853
|
var t = e.effects;
|
|
854
854
|
if (t !== null) {
|
|
855
855
|
e.effects = null;
|
|
856
856
|
for (var r = 0; r < t.length; r += 1) U(t[r]);
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function hn(e) {
|
|
860
860
|
var t, r = A, n = e.parent;
|
|
861
|
-
if (!
|
|
862
|
-
return
|
|
861
|
+
if (!Re && n !== null && n.f & 24576)
|
|
862
|
+
return Zo(), e.v;
|
|
863
863
|
if (Te(n), 0)
|
|
864
864
|
try {
|
|
865
865
|
} finally {
|
|
866
866
|
}
|
|
867
867
|
else try {
|
|
868
|
-
e.f &= ~
|
|
868
|
+
e.f &= ~zt, Ts(e), t = ro(e);
|
|
869
869
|
} finally {
|
|
870
870
|
Te(r);
|
|
871
871
|
}
|
|
872
872
|
return t;
|
|
873
873
|
}
|
|
874
|
-
function
|
|
875
|
-
var t =
|
|
876
|
-
if (!e.equals(t) && (e.wv =
|
|
874
|
+
function Pi(e) {
|
|
875
|
+
var t = hn(e);
|
|
876
|
+
if (!e.equals(t) && (e.wv = eo(), (!I?.is_fork || e.deps === null) && (I !== null ? I.capture(e, t, !0) : e.v = t, e.deps === null))) {
|
|
877
877
|
N(e, ie);
|
|
878
878
|
return;
|
|
879
879
|
}
|
|
880
|
-
|
|
880
|
+
Re || (F !== null ? (gn() || I?.is_fork) && F.set(e, t) : sn(e));
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function Ss(e) {
|
|
883
883
|
if (e.effects !== null)
|
|
884
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(
|
|
884
|
+
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort($e), t.teardown = Co, t.ac = null, jt(t, 0), bn(t));
|
|
885
885
|
}
|
|
886
|
-
function
|
|
886
|
+
function Ni(e) {
|
|
887
887
|
if (e.effects !== null)
|
|
888
|
-
for (const t of e.effects) t.teardown &&
|
|
888
|
+
for (const t of e.effects) t.teardown && Tt(t);
|
|
889
889
|
}
|
|
890
|
-
var
|
|
891
|
-
var
|
|
892
|
-
function
|
|
890
|
+
var Xr = /* @__PURE__ */ new Set(), rt = /* @__PURE__ */ new Map();
|
|
891
|
+
var Di = !1;
|
|
892
|
+
function st(e, t) {
|
|
893
893
|
var r = {
|
|
894
894
|
f: 0,
|
|
895
895
|
v: e,
|
|
896
896
|
reactions: null,
|
|
897
|
-
equals:
|
|
897
|
+
equals: gi,
|
|
898
898
|
rv: 0,
|
|
899
899
|
wv: 0
|
|
900
900
|
};
|
|
@@ -902,254 +902,254 @@ function nt(e, t) {
|
|
|
902
902
|
}
|
|
903
903
|
// @__NO_SIDE_EFFECTS__
|
|
904
904
|
function z(e, t) {
|
|
905
|
-
const r =
|
|
906
|
-
return
|
|
905
|
+
const r = st(e, t);
|
|
906
|
+
return Qi(r), r;
|
|
907
907
|
}
|
|
908
908
|
// @__NO_SIDE_EFFECTS__
|
|
909
|
-
function
|
|
910
|
-
const n =
|
|
911
|
-
if (t || (n.equals =
|
|
909
|
+
function Vi(e, t = !1, r = !0) {
|
|
910
|
+
const n = st(e);
|
|
911
|
+
if (t || (n.equals = _i), Tr && r && W !== null && W.l !== null) {
|
|
912
912
|
var i;
|
|
913
913
|
((i = W.l).s ?? (i.s = [])).push(n);
|
|
914
914
|
}
|
|
915
915
|
return n;
|
|
916
916
|
}
|
|
917
917
|
function O(e, t, r = !1) {
|
|
918
|
-
|
|
919
|
-
let n = r ?
|
|
920
|
-
return
|
|
918
|
+
$ !== null && (!de || $.f & 131072) && Wt() && $.f & 4325394 && (ne === null || !_t.call(ne, e)) && Jo();
|
|
919
|
+
let n = r ? Xe(t) : t;
|
|
920
|
+
return yt(e, n, pr);
|
|
921
921
|
}
|
|
922
|
-
function
|
|
922
|
+
function yt(e, t, r = null) {
|
|
923
923
|
if (!e.equals(t)) {
|
|
924
|
-
|
|
925
|
-
var n =
|
|
924
|
+
rt.set(e, Re ? t : e.v);
|
|
925
|
+
var n = ct.ensure();
|
|
926
926
|
if (n.capture(e, t), e.f & 2) {
|
|
927
927
|
const i = e;
|
|
928
|
-
e.f & 2048 &&
|
|
928
|
+
e.f & 2048 && hn(i), F === null && sn(i);
|
|
929
929
|
}
|
|
930
|
-
e.wv =
|
|
930
|
+
e.wv = eo(), ji(e, ve, r), Wt() && A !== null && A.f & 1024 && !(A.f & 96) && (te === null ? Ds([e]) : te.push(e)), !n.is_fork && Xr.size > 0 && !Di && ks();
|
|
931
931
|
}
|
|
932
932
|
return t;
|
|
933
933
|
}
|
|
934
|
-
function
|
|
935
|
-
|
|
936
|
-
for (const e of
|
|
937
|
-
e.f & 1024 && N(e,
|
|
938
|
-
|
|
934
|
+
function ks() {
|
|
935
|
+
Di = !1;
|
|
936
|
+
for (const e of Xr)
|
|
937
|
+
e.f & 1024 && N(e, lt), Ht(e) && Tt(e);
|
|
938
|
+
Xr.clear();
|
|
939
939
|
}
|
|
940
|
-
function
|
|
940
|
+
function Dt(e) {
|
|
941
941
|
O(e, e.v + 1);
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function ji(e, t, r) {
|
|
944
944
|
var n = e.reactions;
|
|
945
945
|
if (n !== null)
|
|
946
|
-
for (var i =
|
|
946
|
+
for (var i = Wt(), o = n.length, s = 0; s < o; s++) {
|
|
947
947
|
var a = n[s], c = a.f;
|
|
948
948
|
if (!(!i && a === A)) {
|
|
949
|
-
var u = (c &
|
|
949
|
+
var u = (c & ve) === 0;
|
|
950
950
|
if (u && N(a, t), c & 2) {
|
|
951
951
|
var f = a;
|
|
952
|
-
|
|
952
|
+
F?.delete(f), c & 65536 || (c & 512 && (a.f |= zt), ji(f, lt, r));
|
|
953
953
|
} else if (u) {
|
|
954
|
-
var
|
|
955
|
-
c & 16 && me !== null && me.add(
|
|
954
|
+
var p = a;
|
|
955
|
+
c & 16 && me !== null && me.add(p), r !== null ? r.push(p) : un(p);
|
|
956
956
|
}
|
|
957
957
|
}
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
|
-
var
|
|
961
|
-
function
|
|
962
|
-
if (typeof e != "object" || e === null ||
|
|
963
|
-
const t =
|
|
964
|
-
if (t !==
|
|
965
|
-
var r = /* @__PURE__ */ new Map(), n =
|
|
966
|
-
if (
|
|
967
|
-
var d =
|
|
968
|
-
se(null),
|
|
969
|
-
var g =
|
|
970
|
-
return se(d),
|
|
960
|
+
var As = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
961
|
+
function Xe(e) {
|
|
962
|
+
if (typeof e != "object" || e === null || Pt in e) return e;
|
|
963
|
+
const t = di(e);
|
|
964
|
+
if (t !== Ro && t !== Mo) return e;
|
|
965
|
+
var r = /* @__PURE__ */ new Map(), n = fi(e), i = /* @__PURE__ */ z(0), o = null, s = nt, a = (p) => {
|
|
966
|
+
if (nt === s) return p();
|
|
967
|
+
var d = $, h = nt;
|
|
968
|
+
se(null), Fn(s);
|
|
969
|
+
var g = p();
|
|
970
|
+
return se(d), Fn(h), g;
|
|
971
971
|
};
|
|
972
972
|
n && r.set("length", /* @__PURE__ */ z(e.length, o));
|
|
973
973
|
var c = "";
|
|
974
974
|
let u = !1;
|
|
975
|
-
function f(
|
|
975
|
+
function f(p) {
|
|
976
976
|
if (!u) {
|
|
977
|
-
u = !0, c =
|
|
978
|
-
for (const [d, h] of r)
|
|
977
|
+
u = !0, c = p, Dn(i, `${c} version`);
|
|
978
|
+
for (const [d, h] of r) Dn(h, Is(c, d));
|
|
979
979
|
u = !1;
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
982
|
return new Proxy(e, {
|
|
983
|
-
defineProperty(
|
|
984
|
-
(!("value" in h) || h.configurable === !1 || h.enumerable === !1 || h.writable === !1) &&
|
|
983
|
+
defineProperty(p, d, h) {
|
|
984
|
+
(!("value" in h) || h.configurable === !1 || h.enumerable === !1 || h.writable === !1) && Yo();
|
|
985
985
|
var g = r.get(d);
|
|
986
986
|
return g === void 0 ? a(() => {
|
|
987
|
-
var
|
|
988
|
-
return r.set(d,
|
|
987
|
+
var y = /* @__PURE__ */ z(h.value, o);
|
|
988
|
+
return r.set(d, y), y;
|
|
989
989
|
}) : O(g, h.value, !0), !0;
|
|
990
990
|
},
|
|
991
|
-
deleteProperty(
|
|
991
|
+
deleteProperty(p, d) {
|
|
992
992
|
var h = r.get(d);
|
|
993
993
|
if (h === void 0) {
|
|
994
|
-
if (d in
|
|
994
|
+
if (d in p) {
|
|
995
995
|
const g = a(() => /* @__PURE__ */ z(j, o));
|
|
996
|
-
r.set(d, g),
|
|
996
|
+
r.set(d, g), Dt(i);
|
|
997
997
|
}
|
|
998
998
|
} else
|
|
999
|
-
O(h, j),
|
|
999
|
+
O(h, j), Dt(i);
|
|
1000
1000
|
return !0;
|
|
1001
1001
|
},
|
|
1002
|
-
get(
|
|
1003
|
-
if (d ===
|
|
1004
|
-
var g = r.get(d),
|
|
1005
|
-
if (g === void 0 && (!
|
|
1006
|
-
var
|
|
1007
|
-
return
|
|
1002
|
+
get(p, d, h) {
|
|
1003
|
+
if (d === Pt) return e;
|
|
1004
|
+
var g = r.get(d), y = d in p;
|
|
1005
|
+
if (g === void 0 && (!y || Qe(p, d)?.writable) && (g = a(() => {
|
|
1006
|
+
var w = /* @__PURE__ */ z(Xe(y ? p[d] : j), o);
|
|
1007
|
+
return w;
|
|
1008
1008
|
}), r.set(d, g)), g !== void 0) {
|
|
1009
|
-
var
|
|
1010
|
-
return
|
|
1009
|
+
var v = _(g);
|
|
1010
|
+
return v === j ? void 0 : v;
|
|
1011
1011
|
}
|
|
1012
|
-
return Reflect.get(
|
|
1012
|
+
return Reflect.get(p, d, h);
|
|
1013
1013
|
},
|
|
1014
|
-
getOwnPropertyDescriptor(
|
|
1015
|
-
var h = Reflect.getOwnPropertyDescriptor(
|
|
1014
|
+
getOwnPropertyDescriptor(p, d) {
|
|
1015
|
+
var h = Reflect.getOwnPropertyDescriptor(p, d);
|
|
1016
1016
|
if (h && "value" in h) {
|
|
1017
1017
|
var g = r.get(d);
|
|
1018
1018
|
g && (h.value = _(g));
|
|
1019
1019
|
} else if (h === void 0) {
|
|
1020
|
-
var
|
|
1021
|
-
if (
|
|
1020
|
+
var y = r.get(d), v = y?.v;
|
|
1021
|
+
if (y !== void 0 && v !== j) return {
|
|
1022
1022
|
enumerable: !0,
|
|
1023
1023
|
configurable: !0,
|
|
1024
|
-
value:
|
|
1024
|
+
value: v,
|
|
1025
1025
|
writable: !0
|
|
1026
1026
|
};
|
|
1027
1027
|
}
|
|
1028
1028
|
return h;
|
|
1029
1029
|
},
|
|
1030
|
-
has(
|
|
1031
|
-
if (d ===
|
|
1032
|
-
var h = r.get(d), g = h !== void 0 && h.v !== j || Reflect.has(
|
|
1033
|
-
return (h !== void 0 || A !== null && (!g ||
|
|
1034
|
-
var
|
|
1035
|
-
return
|
|
1030
|
+
has(p, d) {
|
|
1031
|
+
if (d === Pt) return !0;
|
|
1032
|
+
var h = r.get(d), g = h !== void 0 && h.v !== j || Reflect.has(p, d);
|
|
1033
|
+
return (h !== void 0 || A !== null && (!g || Qe(p, d)?.writable)) && (h === void 0 && (h = a(() => {
|
|
1034
|
+
var y = /* @__PURE__ */ z(g ? Xe(p[d]) : j, o);
|
|
1035
|
+
return y;
|
|
1036
1036
|
}), r.set(d, h)), _(h) === j) ? !1 : g;
|
|
1037
1037
|
},
|
|
1038
|
-
set(
|
|
1039
|
-
var
|
|
1040
|
-
if (n && d === "length") for (var
|
|
1041
|
-
var
|
|
1042
|
-
|
|
1038
|
+
set(p, d, h, g) {
|
|
1039
|
+
var y = r.get(d), v = d in p;
|
|
1040
|
+
if (n && d === "length") for (var w = h; w < y.v; w += 1) {
|
|
1041
|
+
var P = r.get(w + "");
|
|
1042
|
+
P !== void 0 ? O(P, j) : w in p && (P = a(() => /* @__PURE__ */ z(j, o)), r.set(w + "", P));
|
|
1043
1043
|
}
|
|
1044
|
-
if (
|
|
1045
|
-
(!
|
|
1044
|
+
if (y === void 0)
|
|
1045
|
+
(!v || Qe(p, d)?.writable) && (y = a(() => /* @__PURE__ */ z(void 0, o)), O(y, Xe(h)), r.set(d, y));
|
|
1046
1046
|
else {
|
|
1047
|
-
|
|
1048
|
-
var
|
|
1049
|
-
O(
|
|
1047
|
+
v = y.v !== j;
|
|
1048
|
+
var E = a(() => Xe(h));
|
|
1049
|
+
O(y, E);
|
|
1050
1050
|
}
|
|
1051
|
-
var
|
|
1052
|
-
if (
|
|
1051
|
+
var x = Reflect.getOwnPropertyDescriptor(p, d);
|
|
1052
|
+
if (x?.set && x.set.call(g, h), !v) {
|
|
1053
1053
|
if (n && typeof d == "string") {
|
|
1054
1054
|
var H = r.get("length"), D = Number(d);
|
|
1055
1055
|
Number.isInteger(D) && D >= H.v && O(H, D + 1);
|
|
1056
1056
|
}
|
|
1057
|
-
|
|
1057
|
+
Dt(i);
|
|
1058
1058
|
}
|
|
1059
1059
|
return !0;
|
|
1060
1060
|
},
|
|
1061
|
-
ownKeys(
|
|
1061
|
+
ownKeys(p) {
|
|
1062
1062
|
_(i);
|
|
1063
|
-
var d = Reflect.ownKeys(
|
|
1064
|
-
var
|
|
1065
|
-
return
|
|
1063
|
+
var d = Reflect.ownKeys(p).filter((y) => {
|
|
1064
|
+
var v = r.get(y);
|
|
1065
|
+
return v === void 0 || v.v !== j;
|
|
1066
1066
|
});
|
|
1067
|
-
for (var [h, g] of r) g.v !== j && !(h in
|
|
1067
|
+
for (var [h, g] of r) g.v !== j && !(h in p) && d.push(h);
|
|
1068
1068
|
return d;
|
|
1069
1069
|
},
|
|
1070
1070
|
setPrototypeOf() {
|
|
1071
|
-
|
|
1071
|
+
Xo();
|
|
1072
1072
|
}
|
|
1073
1073
|
});
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1076
|
-
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` :
|
|
1075
|
+
function Is(e, t) {
|
|
1076
|
+
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : As.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
1077
1077
|
}
|
|
1078
|
-
var
|
|
1079
|
-
function
|
|
1080
|
-
if (
|
|
1081
|
-
|
|
1078
|
+
var Hn, Es, zi, Wi, Hi;
|
|
1079
|
+
function Jr() {
|
|
1080
|
+
if (Hn === void 0) {
|
|
1081
|
+
Hn = window, Es = document, zi = /Firefox/.test(navigator.userAgent);
|
|
1082
1082
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1083
|
-
|
|
1083
|
+
Wi = Qe(t, "firstChild").get, Hi = Qe(t, "nextSibling").get, xn(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), xn(r) && (r.__t = void 0);
|
|
1084
1084
|
}
|
|
1085
1085
|
}
|
|
1086
|
-
function
|
|
1086
|
+
function pe(e = "") {
|
|
1087
1087
|
return document.createTextNode(e);
|
|
1088
1088
|
}
|
|
1089
1089
|
// @__NO_SIDE_EFFECTS__
|
|
1090
|
-
function
|
|
1091
|
-
return
|
|
1090
|
+
function at(e) {
|
|
1091
|
+
return Wi.call(e);
|
|
1092
1092
|
}
|
|
1093
1093
|
// @__NO_SIDE_EFFECTS__
|
|
1094
1094
|
function Se(e) {
|
|
1095
|
-
return
|
|
1095
|
+
return Hi.call(e);
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1098
|
-
if (!C) return /* @__PURE__ */
|
|
1099
|
-
var r = /* @__PURE__ */
|
|
1100
|
-
if (r === null) r = M.appendChild(
|
|
1097
|
+
function Zt(e, t) {
|
|
1098
|
+
if (!C) return /* @__PURE__ */ at(e);
|
|
1099
|
+
var r = /* @__PURE__ */ at(M);
|
|
1100
|
+
if (r === null) r = M.appendChild(pe());
|
|
1101
1101
|
else if (t && r.nodeType !== 3) {
|
|
1102
|
-
var n =
|
|
1102
|
+
var n = pe();
|
|
1103
1103
|
return r?.before(n), X(n), n;
|
|
1104
1104
|
}
|
|
1105
|
-
return t &&
|
|
1105
|
+
return t && vn(r), X(r), r;
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1107
|
+
function Rr(e, t = !1) {
|
|
1108
1108
|
if (!C) {
|
|
1109
|
-
var r = /* @__PURE__ */
|
|
1109
|
+
var r = /* @__PURE__ */ at(e);
|
|
1110
1110
|
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Se(r) : r;
|
|
1111
1111
|
}
|
|
1112
1112
|
if (t) {
|
|
1113
1113
|
if (M?.nodeType !== 3) {
|
|
1114
|
-
var n =
|
|
1114
|
+
var n = pe();
|
|
1115
1115
|
return M?.before(n), X(n), n;
|
|
1116
1116
|
}
|
|
1117
|
-
|
|
1117
|
+
vn(M);
|
|
1118
1118
|
}
|
|
1119
1119
|
return M;
|
|
1120
1120
|
}
|
|
1121
|
-
function
|
|
1121
|
+
function xe(e, t = 1, r = !1) {
|
|
1122
1122
|
let n = C ? M : e;
|
|
1123
1123
|
for (var i; t--; )
|
|
1124
1124
|
i = n, n = /* @__PURE__ */ Se(n);
|
|
1125
1125
|
if (!C) return n;
|
|
1126
1126
|
if (r) {
|
|
1127
1127
|
if (n?.nodeType !== 3) {
|
|
1128
|
-
var o =
|
|
1128
|
+
var o = pe();
|
|
1129
1129
|
return n === null ? i?.after(o) : n.before(o), X(o), o;
|
|
1130
1130
|
}
|
|
1131
|
-
|
|
1131
|
+
vn(n);
|
|
1132
1132
|
}
|
|
1133
1133
|
return X(n), n;
|
|
1134
1134
|
}
|
|
1135
|
-
function
|
|
1135
|
+
function Bi(e) {
|
|
1136
1136
|
e.textContent = "";
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1139
|
-
return !
|
|
1138
|
+
function qi() {
|
|
1139
|
+
return !Le || me !== null ? !1 : (A.f & nn) !== 0;
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function pn(e, t, r) {
|
|
1142
1142
|
let n = r ? { is: r } : void 0;
|
|
1143
1143
|
return document.createElementNS(t ?? "http://www.w3.org/1999/xhtml", e, n);
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1145
|
+
function vn(e) {
|
|
1146
1146
|
if (e.nodeValue.length < 65536) return;
|
|
1147
1147
|
let t = e.nextSibling;
|
|
1148
1148
|
for (; t !== null && t.nodeType === 3; )
|
|
1149
1149
|
t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1150
1150
|
}
|
|
1151
|
-
function
|
|
1152
|
-
var t =
|
|
1151
|
+
function Fi(e) {
|
|
1152
|
+
var t = $, r = A;
|
|
1153
1153
|
se(null), Te(null);
|
|
1154
1154
|
try {
|
|
1155
1155
|
return e();
|
|
@@ -1157,21 +1157,21 @@ function Wi(e) {
|
|
|
1157
1157
|
se(t), Te(r);
|
|
1158
1158
|
}
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1161
|
-
A === null && (
|
|
1160
|
+
function $s(e) {
|
|
1161
|
+
A === null && ($ === null && Fo(e), qo()), Re && Bo(e);
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1163
|
+
function Os(e, t) {
|
|
1164
1164
|
var r = t.last;
|
|
1165
1165
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1166
1166
|
}
|
|
1167
1167
|
function ke(e, t) {
|
|
1168
1168
|
var r = A;
|
|
1169
|
-
r !== null && r.f & 8192 && (e |=
|
|
1169
|
+
r !== null && r.f & 8192 && (e |= rn);
|
|
1170
1170
|
var n = {
|
|
1171
1171
|
ctx: W,
|
|
1172
1172
|
deps: null,
|
|
1173
1173
|
nodes: null,
|
|
1174
|
-
f: e |
|
|
1174
|
+
f: e | ve | 512,
|
|
1175
1175
|
first: null,
|
|
1176
1176
|
fn: t,
|
|
1177
1177
|
last: null,
|
|
@@ -1185,100 +1185,100 @@ function ke(e, t) {
|
|
|
1185
1185
|
};
|
|
1186
1186
|
I?.register_created_effect(n);
|
|
1187
1187
|
var i = n;
|
|
1188
|
-
if (e & 4)
|
|
1188
|
+
if (e & 4) bt !== null ? bt.push(n) : ct.ensure().schedule(n);
|
|
1189
1189
|
else if (t !== null) {
|
|
1190
1190
|
try {
|
|
1191
|
-
|
|
1191
|
+
Tt(n);
|
|
1192
1192
|
} catch (s) {
|
|
1193
1193
|
throw U(n), s;
|
|
1194
1194
|
}
|
|
1195
|
-
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |=
|
|
1195
|
+
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= on));
|
|
1196
1196
|
}
|
|
1197
|
-
if (i !== null && (i.parent = r, r !== null &&
|
|
1198
|
-
var o =
|
|
1197
|
+
if (i !== null && (i.parent = r, r !== null && Os(i, r), $ !== null && $.f & 2 && !(e & 64))) {
|
|
1198
|
+
var o = $;
|
|
1199
1199
|
(o.effects ?? (o.effects = [])).push(i);
|
|
1200
1200
|
}
|
|
1201
1201
|
return n;
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1204
|
-
return
|
|
1203
|
+
function gn() {
|
|
1204
|
+
return $ !== null && !de;
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1206
|
+
function Ls(e) {
|
|
1207
1207
|
const t = ke(8, null);
|
|
1208
1208
|
return N(t, ie), t.teardown = e, t;
|
|
1209
1209
|
}
|
|
1210
|
-
function
|
|
1211
|
-
|
|
1210
|
+
function Bn(e) {
|
|
1211
|
+
$s("$effect");
|
|
1212
1212
|
var t = A.f;
|
|
1213
|
-
if (
|
|
1213
|
+
if (!$ && t & 32 && !(t & 32768)) {
|
|
1214
1214
|
var r = W;
|
|
1215
1215
|
(r.e ?? (r.e = [])).push(e);
|
|
1216
|
-
} else return
|
|
1216
|
+
} else return Ui(e);
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1219
|
-
return ke(4 |
|
|
1218
|
+
function Ui(e) {
|
|
1219
|
+
return ke(4 | No, e);
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1222
|
-
|
|
1223
|
-
const t = ke(64 |
|
|
1221
|
+
function Rs(e) {
|
|
1222
|
+
ct.ensure();
|
|
1223
|
+
const t = ke(64 | St, e);
|
|
1224
1224
|
return () => {
|
|
1225
1225
|
U(t);
|
|
1226
1226
|
};
|
|
1227
1227
|
}
|
|
1228
|
-
function
|
|
1229
|
-
|
|
1230
|
-
const t = ke(64 |
|
|
1228
|
+
function Ms(e) {
|
|
1229
|
+
ct.ensure();
|
|
1230
|
+
const t = ke(64 | St, e);
|
|
1231
1231
|
return (r = {}) => new Promise((n) => {
|
|
1232
|
-
r.outro ?
|
|
1232
|
+
r.outro ? ut(t, () => {
|
|
1233
1233
|
U(t), n(void 0);
|
|
1234
1234
|
}) : (U(t), n(void 0));
|
|
1235
1235
|
});
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function Gi(e) {
|
|
1238
1238
|
return ke(4, e);
|
|
1239
1239
|
}
|
|
1240
|
-
function
|
|
1241
|
-
return ke(
|
|
1240
|
+
function Cs(e) {
|
|
1241
|
+
return ke(Do | St, e);
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1243
|
+
function _n(e, t = 0) {
|
|
1244
1244
|
return ke(8 | t, e);
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1247
|
-
|
|
1246
|
+
function er(e, t = [], r = [], n = []) {
|
|
1247
|
+
bs(n, t, r, (i) => {
|
|
1248
1248
|
ke(8, () => e(...i.map(_)));
|
|
1249
1249
|
});
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1251
|
+
function mn(e, t = 0) {
|
|
1252
1252
|
var r = ke(16 | t, e);
|
|
1253
1253
|
return r;
|
|
1254
1254
|
}
|
|
1255
1255
|
function oe(e) {
|
|
1256
|
-
return ke(32 |
|
|
1256
|
+
return ke(32 | St, e);
|
|
1257
1257
|
}
|
|
1258
|
-
function
|
|
1258
|
+
function Ki(e) {
|
|
1259
1259
|
var t = e.teardown;
|
|
1260
1260
|
if (t !== null) {
|
|
1261
|
-
const r =
|
|
1262
|
-
|
|
1261
|
+
const r = Re, n = $;
|
|
1262
|
+
qn(!0), se(null);
|
|
1263
1263
|
try {
|
|
1264
1264
|
t.call(null);
|
|
1265
1265
|
} finally {
|
|
1266
|
-
|
|
1266
|
+
qn(r), se(n);
|
|
1267
1267
|
}
|
|
1268
1268
|
}
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function bn(e, t = !1) {
|
|
1271
1271
|
var r = e.first;
|
|
1272
1272
|
for (e.first = e.last = null; r !== null; ) {
|
|
1273
1273
|
const i = r.ac;
|
|
1274
|
-
i !== null &&
|
|
1275
|
-
i.abort(
|
|
1274
|
+
i !== null && Fi(() => {
|
|
1275
|
+
i.abort($e);
|
|
1276
1276
|
});
|
|
1277
1277
|
var n = r.next;
|
|
1278
1278
|
r.f & 64 ? r.parent = null : U(r, t), r = n;
|
|
1279
1279
|
}
|
|
1280
1280
|
}
|
|
1281
|
-
function
|
|
1281
|
+
function xs(e) {
|
|
1282
1282
|
for (var t = e.first; t !== null; ) {
|
|
1283
1283
|
var r = t.next;
|
|
1284
1284
|
t.f & 32 || U(t), t = r;
|
|
@@ -1286,26 +1286,26 @@ function Os(e) {
|
|
|
1286
1286
|
}
|
|
1287
1287
|
function U(e, t = !0) {
|
|
1288
1288
|
var r = !1;
|
|
1289
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (
|
|
1289
|
+
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Ps(e.nodes.start, e.nodes.end), r = !0), N(e, Pn), bn(e, t && !r), jt(e, 0);
|
|
1290
1290
|
var n = e.nodes && e.nodes.t;
|
|
1291
1291
|
if (n !== null) for (const o of n) o.stop();
|
|
1292
|
-
|
|
1292
|
+
Ki(e), e.f ^= Pn, e.f |= Po;
|
|
1293
1293
|
var i = e.parent;
|
|
1294
|
-
i !== null && i.first !== null &&
|
|
1294
|
+
i !== null && i.first !== null && Yi(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1295
1295
|
}
|
|
1296
|
-
function
|
|
1296
|
+
function Ps(e, t) {
|
|
1297
1297
|
for (; e !== null; ) {
|
|
1298
1298
|
var r = e === t ? null : /* @__PURE__ */ Se(e);
|
|
1299
1299
|
e.remove(), e = r;
|
|
1300
1300
|
}
|
|
1301
1301
|
}
|
|
1302
|
-
function
|
|
1302
|
+
function Yi(e) {
|
|
1303
1303
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1304
1304
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1305
1305
|
}
|
|
1306
|
-
function
|
|
1306
|
+
function ut(e, t, r = !0) {
|
|
1307
1307
|
var n = [];
|
|
1308
|
-
|
|
1308
|
+
Xi(e, n, !0);
|
|
1309
1309
|
var i = () => {
|
|
1310
1310
|
r && U(e), t && t();
|
|
1311
1311
|
}, o = n.length;
|
|
@@ -1314,9 +1314,9 @@ function at(e, t, r = !0) {
|
|
|
1314
1314
|
for (var a of n) a.out(s);
|
|
1315
1315
|
} else i();
|
|
1316
1316
|
}
|
|
1317
|
-
function
|
|
1317
|
+
function Xi(e, t, r) {
|
|
1318
1318
|
if (!(e.f & 8192)) {
|
|
1319
|
-
e.f ^=
|
|
1319
|
+
e.f ^= rn;
|
|
1320
1320
|
var n = e.nodes && e.nodes.t;
|
|
1321
1321
|
if (n !== null)
|
|
1322
1322
|
for (const a of n) (a.is_global || r) && t.push(a);
|
|
@@ -1324,198 +1324,198 @@ function Ui(e, t, r) {
|
|
|
1324
1324
|
var o = i.next;
|
|
1325
1325
|
if (!(i.f & 64)) {
|
|
1326
1326
|
var s = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1327
|
-
|
|
1327
|
+
Xi(i, t, s ? r : !1);
|
|
1328
1328
|
}
|
|
1329
1329
|
i = o;
|
|
1330
1330
|
}
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1334
|
-
|
|
1333
|
+
function wn(e) {
|
|
1334
|
+
Ji(e, !0);
|
|
1335
1335
|
}
|
|
1336
|
-
function
|
|
1336
|
+
function Ji(e, t) {
|
|
1337
1337
|
if (e.f & 8192) {
|
|
1338
|
-
e.f ^=
|
|
1338
|
+
e.f ^= rn, e.f & 1024 || (N(e, ve), ct.ensure().schedule(e));
|
|
1339
1339
|
for (var r = e.first; r !== null; ) {
|
|
1340
1340
|
var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1341
|
-
|
|
1341
|
+
Ji(r, i ? t : !1), r = n;
|
|
1342
1342
|
}
|
|
1343
1343
|
var o = e.nodes && e.nodes.t;
|
|
1344
1344
|
if (o !== null)
|
|
1345
1345
|
for (const s of o) (s.is_global || t) && s.in();
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
|
-
function
|
|
1348
|
+
function yn(e, t) {
|
|
1349
1349
|
if (e.nodes)
|
|
1350
1350
|
for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
|
|
1351
1351
|
var i = r === n ? null : /* @__PURE__ */ Se(r);
|
|
1352
1352
|
t.append(r), r = i;
|
|
1353
1353
|
}
|
|
1354
1354
|
}
|
|
1355
|
-
var
|
|
1356
|
-
function
|
|
1357
|
-
|
|
1355
|
+
var Ns = null, sr = !1, Re = !1;
|
|
1356
|
+
function qn(e) {
|
|
1357
|
+
Re = e;
|
|
1358
1358
|
}
|
|
1359
|
-
var
|
|
1359
|
+
var $ = null, de = !1;
|
|
1360
1360
|
function se(e) {
|
|
1361
|
-
|
|
1361
|
+
$ = e;
|
|
1362
1362
|
}
|
|
1363
1363
|
var A = null;
|
|
1364
1364
|
function Te(e) {
|
|
1365
1365
|
A = e;
|
|
1366
1366
|
}
|
|
1367
1367
|
var ne = null;
|
|
1368
|
-
function
|
|
1369
|
-
|
|
1368
|
+
function Qi(e) {
|
|
1369
|
+
$ !== null && (!Le || $.f & 2) && (ne === null ? ne = [e] : ne.push(e));
|
|
1370
1370
|
}
|
|
1371
1371
|
var Y = null, Q = 0, te = null;
|
|
1372
|
-
function
|
|
1372
|
+
function Ds(e) {
|
|
1373
1373
|
te = e;
|
|
1374
1374
|
}
|
|
1375
|
-
var
|
|
1376
|
-
function
|
|
1377
|
-
|
|
1375
|
+
var Zi = 1, Je = 0, nt = Je;
|
|
1376
|
+
function Fn(e) {
|
|
1377
|
+
nt = e;
|
|
1378
1378
|
}
|
|
1379
|
-
function
|
|
1380
|
-
return ++
|
|
1379
|
+
function eo() {
|
|
1380
|
+
return ++Zi;
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1382
|
+
function Ht(e) {
|
|
1383
1383
|
var t = e.f;
|
|
1384
1384
|
if (t & 2048) return !0;
|
|
1385
|
-
if (t & 2 && (e.f &= ~
|
|
1385
|
+
if (t & 2 && (e.f &= ~zt), t & 4096) {
|
|
1386
1386
|
for (var r = e.deps, n = r.length, i = 0; i < n; i++) {
|
|
1387
1387
|
var o = r[i];
|
|
1388
|
-
if (
|
|
1388
|
+
if (Ht(o) && Pi(o), o.wv > e.wv) return !0;
|
|
1389
1389
|
}
|
|
1390
|
-
t & 512 &&
|
|
1390
|
+
t & 512 && F === null && N(e, ie);
|
|
1391
1391
|
}
|
|
1392
1392
|
return !1;
|
|
1393
1393
|
}
|
|
1394
|
-
function
|
|
1394
|
+
function to(e, t, r = !0) {
|
|
1395
1395
|
var n = e.reactions;
|
|
1396
|
-
if (n !== null && !(!
|
|
1396
|
+
if (n !== null && !(!Le && ne !== null && _t.call(ne, e)))
|
|
1397
1397
|
for (var i = 0; i < n.length; i++) {
|
|
1398
1398
|
var o = n[i];
|
|
1399
|
-
o.f & 2 ?
|
|
1399
|
+
o.f & 2 ? to(o, t, !1) : t === o && (r ? N(o, ve) : o.f & 1024 && N(o, lt), un(o));
|
|
1400
1400
|
}
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1403
|
-
var t = Y, r = Q, n = te, i =
|
|
1404
|
-
Y = null, Q = 0, te = null,
|
|
1405
|
-
e.ac.abort(
|
|
1402
|
+
function ro(e) {
|
|
1403
|
+
var t = Y, r = Q, n = te, i = $, o = ne, s = W, a = de, c = nt, u = e.f;
|
|
1404
|
+
Y = null, Q = 0, te = null, $ = u & 96 ? null : e, ne = null, mt(e.ctx), de = !1, nt = ++Je, e.ac !== null && (Fi(() => {
|
|
1405
|
+
e.ac.abort($e);
|
|
1406
1406
|
}), e.ac = null);
|
|
1407
1407
|
try {
|
|
1408
|
-
e.f |=
|
|
1409
|
-
var f = e.fn,
|
|
1410
|
-
e.f |=
|
|
1408
|
+
e.f |= Nn;
|
|
1409
|
+
var f = e.fn, p = f();
|
|
1410
|
+
e.f |= nn;
|
|
1411
1411
|
var d = e.deps, h = I?.is_fork;
|
|
1412
1412
|
if (Y !== null) {
|
|
1413
1413
|
var g;
|
|
1414
|
-
if (h ||
|
|
1414
|
+
if (h || jt(e, Q), d !== null && Q > 0)
|
|
1415
1415
|
for (d.length = Q + Y.length, g = 0; g < Y.length; g++) d[Q + g] = Y[g];
|
|
1416
1416
|
else e.deps = d = Y;
|
|
1417
|
-
if (
|
|
1418
|
-
var
|
|
1419
|
-
((
|
|
1417
|
+
if (gn() && e.f & 512) for (g = Q; g < d.length; g++) {
|
|
1418
|
+
var y;
|
|
1419
|
+
((y = d[g]).reactions ?? (y.reactions = [])).push(e);
|
|
1420
1420
|
}
|
|
1421
|
-
} else !h && d !== null && Q < d.length && (
|
|
1422
|
-
if (
|
|
1421
|
+
} else !h && d !== null && Q < d.length && (jt(e, Q), d.length = Q);
|
|
1422
|
+
if (Wt() && te !== null && !de && d !== null && !(e.f & 6146)) for (g = 0; g < te.length; g++) to(te[g], e);
|
|
1423
1423
|
if (i !== null && i !== e) {
|
|
1424
|
-
if (
|
|
1425
|
-
if (t !== null) for (const
|
|
1424
|
+
if (Je++, i.deps !== null) for (let v = 0; v < r; v += 1) i.deps[v].rv = Je;
|
|
1425
|
+
if (t !== null) for (const v of t) v.rv = Je;
|
|
1426
1426
|
te !== null && (n === null ? n = te : n.push(...te));
|
|
1427
1427
|
}
|
|
1428
|
-
return e.f & 8388608 && (e.f ^=
|
|
1429
|
-
} catch (
|
|
1430
|
-
return
|
|
1428
|
+
return e.f & 8388608 && (e.f ^= dr), p;
|
|
1429
|
+
} catch (v) {
|
|
1430
|
+
return yi(v);
|
|
1431
1431
|
} finally {
|
|
1432
|
-
e.f ^=
|
|
1432
|
+
e.f ^= Nn, Y = t, Q = r, te = n, $ = i, ne = o, mt(s), de = a, nt = c;
|
|
1433
1433
|
}
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1435
|
+
function Vs(e, t) {
|
|
1436
1436
|
let r = t.reactions;
|
|
1437
1437
|
if (r !== null) {
|
|
1438
|
-
var n =
|
|
1438
|
+
var n = Oo.call(r, e);
|
|
1439
1439
|
if (n !== -1) {
|
|
1440
1440
|
var i = r.length - 1;
|
|
1441
1441
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
1442
1442
|
}
|
|
1443
1443
|
}
|
|
1444
|
-
if (r === null && t.f & 2 && (Y === null || !
|
|
1444
|
+
if (r === null && t.f & 2 && (Y === null || !_t.call(Y, t))) {
|
|
1445
1445
|
var o = t;
|
|
1446
|
-
o.f & 512 && (o.f ^= 512, o.f &= ~
|
|
1446
|
+
o.f & 512 && (o.f ^= 512, o.f &= ~zt), o.v !== j && sn(o), Ss(o), jt(o, 0);
|
|
1447
1447
|
}
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function jt(e, t) {
|
|
1450
1450
|
var r = e.deps;
|
|
1451
1451
|
if (r !== null)
|
|
1452
|
-
for (var n = t; n < r.length; n++)
|
|
1452
|
+
for (var n = t; n < r.length; n++) Vs(e, r[n]);
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1454
|
+
function Tt(e) {
|
|
1455
1455
|
var t = e.f;
|
|
1456
1456
|
if (!(t & 16384)) {
|
|
1457
1457
|
N(e, ie);
|
|
1458
|
-
var r = A, n =
|
|
1459
|
-
if (A = e,
|
|
1458
|
+
var r = A, n = sr;
|
|
1459
|
+
if (A = e, sr = !0, 0)
|
|
1460
1460
|
var i, o;
|
|
1461
1461
|
try {
|
|
1462
|
-
t & 16777232 ?
|
|
1463
|
-
var s =
|
|
1464
|
-
if (e.teardown = typeof s == "function" ? s : null, e.wv =
|
|
1462
|
+
t & 16777232 ? xs(e) : bn(e), Ki(e);
|
|
1463
|
+
var s = ro(e);
|
|
1464
|
+
if (e.teardown = typeof s == "function" ? s : null, e.wv = Zi, 0)
|
|
1465
1465
|
for (var a of e.deps) ;
|
|
1466
1466
|
} finally {
|
|
1467
|
-
|
|
1467
|
+
sr = n, A = r;
|
|
1468
1468
|
}
|
|
1469
1469
|
}
|
|
1470
1470
|
}
|
|
1471
1471
|
function _(e) {
|
|
1472
1472
|
var t = (e.f & 2) !== 0;
|
|
1473
|
-
if (
|
|
1474
|
-
var r =
|
|
1475
|
-
if (
|
|
1476
|
-
e.rv <
|
|
1473
|
+
if (Ns?.add(e), $ !== null && !de && !(A !== null && A.f & 16384) && (ne === null || !_t.call(ne, e))) {
|
|
1474
|
+
var r = $.deps;
|
|
1475
|
+
if ($.f & 2097152)
|
|
1476
|
+
e.rv < Je && (e.rv = Je, Y === null && r !== null && r[Q] === e ? Q++ : Y === null ? Y = [e] : Y.push(e));
|
|
1477
1477
|
else {
|
|
1478
1478
|
var n;
|
|
1479
|
-
((n =
|
|
1479
|
+
((n = $).deps ?? (n.deps = [])).push(e);
|
|
1480
1480
|
var i = e.reactions;
|
|
1481
|
-
i === null ? e.reactions = [
|
|
1481
|
+
i === null ? e.reactions = [$] : _t.call(i, $) || i.push($);
|
|
1482
1482
|
}
|
|
1483
1483
|
}
|
|
1484
1484
|
if (0) {
|
|
1485
1485
|
if (!de && reactivity_loss_tracker && !reactivity_loss_tracker.warned && !(reactivity_loss_tracker.effect.f & 2097152) && !reactivity_loss_tracker.effect_deps.has(e))
|
|
1486
1486
|
var o;
|
|
1487
|
-
if (tracing_mode_flag && !de && tracing_expressions !== null &&
|
|
1487
|
+
if (tracing_mode_flag && !de && tracing_expressions !== null && $ !== null && tracing_expressions.reaction === $ && !e.trace) {
|
|
1488
1488
|
if (o)
|
|
1489
1489
|
var s, a;
|
|
1490
1490
|
}
|
|
1491
1491
|
}
|
|
1492
|
-
if (
|
|
1492
|
+
if (Re && rt.has(e)) return rt.get(e);
|
|
1493
1493
|
if (t) {
|
|
1494
1494
|
var c = e;
|
|
1495
|
-
if (
|
|
1495
|
+
if (Re) {
|
|
1496
1496
|
var u = c.v;
|
|
1497
|
-
return (!(c.f & 1024) && c.reactions !== null ||
|
|
1497
|
+
return (!(c.f & 1024) && c.reactions !== null || io(c)) && (u = hn(c)), rt.set(c, u), u;
|
|
1498
1498
|
}
|
|
1499
|
-
var f = (c.f & 512) === 0 && !de &&
|
|
1500
|
-
|
|
1499
|
+
var f = (c.f & 512) === 0 && !de && $ !== null && (sr || ($.f & 512) !== 0), p = (c.f & nn) === 0;
|
|
1500
|
+
Ht(c) && (f && (c.f |= 512), Pi(c)), f && !p && (Ni(c), no(c));
|
|
1501
1501
|
}
|
|
1502
|
-
if (
|
|
1502
|
+
if (F?.has(e)) return F.get(e);
|
|
1503
1503
|
if (e.f & 8388608) throw e.v;
|
|
1504
1504
|
return e.v;
|
|
1505
1505
|
}
|
|
1506
|
-
function
|
|
1506
|
+
function no(e) {
|
|
1507
1507
|
if (e.f |= 512, e.deps !== null)
|
|
1508
1508
|
for (const t of e.deps)
|
|
1509
|
-
(t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (
|
|
1509
|
+
(t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (Ni(t), no(t));
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function io(e) {
|
|
1512
1512
|
if (e.v === j) return !0;
|
|
1513
1513
|
if (e.deps === null) return !1;
|
|
1514
1514
|
for (const t of e.deps)
|
|
1515
|
-
if (
|
|
1515
|
+
if (rt.has(t) || t.f & 2 && io(t)) return !0;
|
|
1516
1516
|
return !1;
|
|
1517
1517
|
}
|
|
1518
|
-
function
|
|
1518
|
+
function Tn(e) {
|
|
1519
1519
|
var t = de;
|
|
1520
1520
|
try {
|
|
1521
1521
|
return de = !0, e();
|
|
@@ -1523,23 +1523,23 @@ function mn(e) {
|
|
|
1523
1523
|
de = t;
|
|
1524
1524
|
}
|
|
1525
1525
|
}
|
|
1526
|
-
var
|
|
1527
|
-
function
|
|
1528
|
-
(t[
|
|
1526
|
+
var pt = Symbol("events"), oo = /* @__PURE__ */ new Set(), Qr = /* @__PURE__ */ new Set();
|
|
1527
|
+
function $t(e, t, r) {
|
|
1528
|
+
(t[pt] ?? (t[pt] = {}))[e] = r;
|
|
1529
1529
|
}
|
|
1530
|
-
function
|
|
1531
|
-
for (var t = 0; t < e.length; t++)
|
|
1532
|
-
for (var r of
|
|
1530
|
+
function js(e) {
|
|
1531
|
+
for (var t = 0; t < e.length; t++) oo.add(e[t]);
|
|
1532
|
+
for (var r of Qr) r(e);
|
|
1533
1533
|
}
|
|
1534
|
-
var
|
|
1535
|
-
function
|
|
1534
|
+
var Un = null;
|
|
1535
|
+
function Gn(e) {
|
|
1536
1536
|
var t = this, r = t.ownerDocument, n = e.type, i = e.composedPath?.() || [], o = i[0] || e.target;
|
|
1537
|
-
|
|
1538
|
-
var s = 0, a =
|
|
1537
|
+
Un = e;
|
|
1538
|
+
var s = 0, a = Un === e && e[pt];
|
|
1539
1539
|
if (a) {
|
|
1540
1540
|
var c = i.indexOf(a);
|
|
1541
1541
|
if (c !== -1 && (t === document || t === window)) {
|
|
1542
|
-
e[
|
|
1542
|
+
e[pt] = t;
|
|
1543
1543
|
return;
|
|
1544
1544
|
}
|
|
1545
1545
|
var u = i.indexOf(t);
|
|
@@ -1547,46 +1547,46 @@ function Bn(e) {
|
|
|
1547
1547
|
c <= u && (s = c);
|
|
1548
1548
|
}
|
|
1549
1549
|
if (o = i[s] || e.target, o !== t) {
|
|
1550
|
-
|
|
1550
|
+
fr(e, "currentTarget", {
|
|
1551
1551
|
configurable: !0,
|
|
1552
1552
|
get() {
|
|
1553
1553
|
return o || r;
|
|
1554
1554
|
}
|
|
1555
1555
|
});
|
|
1556
|
-
var f =
|
|
1556
|
+
var f = $, p = A;
|
|
1557
1557
|
se(null), Te(null);
|
|
1558
1558
|
try {
|
|
1559
1559
|
for (var d, h = []; o !== null; ) {
|
|
1560
1560
|
var g = o.assignedSlot || o.parentNode || o.host || null;
|
|
1561
1561
|
try {
|
|
1562
|
-
var
|
|
1563
|
-
|
|
1564
|
-
} catch (
|
|
1565
|
-
d ? h.push(
|
|
1562
|
+
var y = o[pt]?.[n];
|
|
1563
|
+
y != null && (!o.disabled || e.target === o) && y.call(o, e);
|
|
1564
|
+
} catch (v) {
|
|
1565
|
+
d ? h.push(v) : d = v;
|
|
1566
1566
|
}
|
|
1567
1567
|
if (e.cancelBubble || g === t || g === null) break;
|
|
1568
1568
|
o = g;
|
|
1569
1569
|
}
|
|
1570
1570
|
if (d) {
|
|
1571
|
-
for (let
|
|
1572
|
-
throw
|
|
1571
|
+
for (let v of h) queueMicrotask(() => {
|
|
1572
|
+
throw v;
|
|
1573
1573
|
});
|
|
1574
1574
|
throw d;
|
|
1575
1575
|
}
|
|
1576
1576
|
} finally {
|
|
1577
|
-
e[
|
|
1577
|
+
e[pt] = t, delete e.currentTarget, se(f), Te(p);
|
|
1578
1578
|
}
|
|
1579
1579
|
}
|
|
1580
1580
|
}
|
|
1581
|
-
var
|
|
1582
|
-
function
|
|
1583
|
-
return
|
|
1581
|
+
var zs = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1582
|
+
function Ws(e) {
|
|
1583
|
+
return zs?.createHTML(e) ?? e;
|
|
1584
1584
|
}
|
|
1585
|
-
function
|
|
1586
|
-
var t =
|
|
1587
|
-
return t.innerHTML =
|
|
1585
|
+
function Hs(e) {
|
|
1586
|
+
var t = pn("template");
|
|
1587
|
+
return t.innerHTML = Ws(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1588
1588
|
}
|
|
1589
|
-
function
|
|
1589
|
+
function ar(e, t) {
|
|
1590
1590
|
var r = A;
|
|
1591
1591
|
r.nodes === null && (r.nodes = {
|
|
1592
1592
|
start: e,
|
|
@@ -1596,29 +1596,29 @@ function ir(e, t) {
|
|
|
1596
1596
|
});
|
|
1597
1597
|
}
|
|
1598
1598
|
// @__NO_SIDE_EFFECTS__
|
|
1599
|
-
function
|
|
1599
|
+
function ft(e, t) {
|
|
1600
1600
|
var r = (t & 1) !== 0, n = (t & 2) !== 0, i, o = !e.startsWith("<!>");
|
|
1601
1601
|
return () => {
|
|
1602
1602
|
if (C)
|
|
1603
|
-
return
|
|
1604
|
-
i === void 0 && (i =
|
|
1605
|
-
var s = n ||
|
|
1603
|
+
return ar(M, null), M;
|
|
1604
|
+
i === void 0 && (i = Hs(o ? e : "<!>" + e), r || (i = /* @__PURE__ */ at(i)));
|
|
1605
|
+
var s = n || zi ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1606
1606
|
if (r) {
|
|
1607
|
-
var a = /* @__PURE__ */
|
|
1608
|
-
|
|
1609
|
-
} else
|
|
1607
|
+
var a = /* @__PURE__ */ at(s), c = s.lastChild;
|
|
1608
|
+
ar(a, c);
|
|
1609
|
+
} else ar(s, s);
|
|
1610
1610
|
return s;
|
|
1611
1611
|
};
|
|
1612
1612
|
}
|
|
1613
|
-
function
|
|
1613
|
+
function je(e, t) {
|
|
1614
1614
|
if (C) {
|
|
1615
1615
|
var r = A;
|
|
1616
|
-
(!(r.f & 32768) || r.nodes.end === null) && (r.nodes.end = M),
|
|
1616
|
+
(!(r.f & 32768) || r.nodes.end === null) && (r.nodes.end = M), yr();
|
|
1617
1617
|
return;
|
|
1618
1618
|
}
|
|
1619
1619
|
e !== null && e.before(t);
|
|
1620
1620
|
}
|
|
1621
|
-
var
|
|
1621
|
+
var Bs = [
|
|
1622
1622
|
"allowfullscreen",
|
|
1623
1623
|
"async",
|
|
1624
1624
|
"autofocus",
|
|
@@ -1647,8 +1647,8 @@ var Vs = [
|
|
|
1647
1647
|
"defer",
|
|
1648
1648
|
"disablepictureinpicture",
|
|
1649
1649
|
"disableremoteplayback"
|
|
1650
|
-
],
|
|
1651
|
-
...
|
|
1650
|
+
], Ml = [
|
|
1651
|
+
...Bs,
|
|
1652
1652
|
"formNoValidate",
|
|
1653
1653
|
"isMap",
|
|
1654
1654
|
"noModule",
|
|
@@ -1663,17 +1663,17 @@ var Vs = [
|
|
|
1663
1663
|
"allowFullscreen",
|
|
1664
1664
|
"disablePictureInPicture",
|
|
1665
1665
|
"disableRemotePlayback"
|
|
1666
|
-
],
|
|
1667
|
-
function
|
|
1668
|
-
return
|
|
1666
|
+
], qs = ["touchstart", "touchmove"];
|
|
1667
|
+
function Fs(e) {
|
|
1668
|
+
return qs.includes(e);
|
|
1669
1669
|
}
|
|
1670
|
-
var
|
|
1670
|
+
var Us = [
|
|
1671
1671
|
"$state",
|
|
1672
1672
|
"$state.raw",
|
|
1673
1673
|
"$derived",
|
|
1674
1674
|
"$derived.by"
|
|
1675
|
-
],
|
|
1676
|
-
...
|
|
1675
|
+
], Cl = [
|
|
1676
|
+
...Us,
|
|
1677
1677
|
"$state.eager",
|
|
1678
1678
|
"$state.snapshot",
|
|
1679
1679
|
"$props",
|
|
@@ -1688,22 +1688,22 @@ var Ws = [
|
|
|
1688
1688
|
"$inspect().with",
|
|
1689
1689
|
"$inspect.trace",
|
|
1690
1690
|
"$host"
|
|
1691
|
-
],
|
|
1692
|
-
function
|
|
1691
|
+
], Kn = !0;
|
|
1692
|
+
function Yn(e, t) {
|
|
1693
1693
|
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1694
1694
|
r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = `${r}`);
|
|
1695
1695
|
}
|
|
1696
|
-
function
|
|
1697
|
-
return
|
|
1696
|
+
function so(e, t) {
|
|
1697
|
+
return ao(e, t);
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1700
|
-
|
|
1699
|
+
function Gs(e, t) {
|
|
1700
|
+
Jr(), t.intro = t.intro ?? !1;
|
|
1701
1701
|
const r = t.target, n = C, i = M;
|
|
1702
1702
|
try {
|
|
1703
|
-
for (var o = /* @__PURE__ */
|
|
1704
|
-
if (!o) throw
|
|
1703
|
+
for (var o = /* @__PURE__ */ at(r); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ Se(o);
|
|
1704
|
+
if (!o) throw gt;
|
|
1705
1705
|
Oe(!0), X(o);
|
|
1706
|
-
const s =
|
|
1706
|
+
const s = ao(e, {
|
|
1707
1707
|
...t,
|
|
1708
1708
|
anchor: o
|
|
1709
1709
|
});
|
|
@@ -1711,141 +1711,141 @@ function Hs(e, t) {
|
|
|
1711
1711
|
} catch (s) {
|
|
1712
1712
|
if (s instanceof Error && s.message.split(`
|
|
1713
1713
|
`).some((a) => a.startsWith("https://svelte.dev/e/"))) throw s;
|
|
1714
|
-
return s !==
|
|
1714
|
+
return s !== gt && console.warn("Failed to hydrate: ", s), t.recover === !1 && Go(), Jr(), Bi(r), Oe(!1), so(e, t);
|
|
1715
1715
|
} finally {
|
|
1716
1716
|
Oe(n), X(i);
|
|
1717
1717
|
}
|
|
1718
1718
|
}
|
|
1719
|
-
var
|
|
1720
|
-
function
|
|
1721
|
-
|
|
1722
|
-
var c = void 0, u =
|
|
1723
|
-
var f = r ?? t.appendChild(
|
|
1724
|
-
|
|
1719
|
+
var tr = /* @__PURE__ */ new Map();
|
|
1720
|
+
function ao(e, { target: t, anchor: r, props: n = {}, events: i, context: o, intro: s = !0, transformError: a }) {
|
|
1721
|
+
Jr();
|
|
1722
|
+
var c = void 0, u = Ms(() => {
|
|
1723
|
+
var f = r ?? t.appendChild(pe());
|
|
1724
|
+
ps(f, { pending: () => {
|
|
1725
1725
|
} }, (h) => {
|
|
1726
|
-
|
|
1726
|
+
mi({});
|
|
1727
1727
|
var g = W;
|
|
1728
|
-
if (o && (g.c = o), i && (n.$$events = i), C &&
|
|
1729
|
-
throw
|
|
1730
|
-
|
|
1728
|
+
if (o && (g.c = o), i && (n.$$events = i), C && ar(h, null), Kn = s, c = e(h, n) || {}, Kn = !0, C && (A.nodes.end = M, M === null || M.nodeType !== 8 || M.data !== "]"))
|
|
1729
|
+
throw wr(), gt;
|
|
1730
|
+
bi();
|
|
1731
1731
|
}, a);
|
|
1732
|
-
var
|
|
1732
|
+
var p = /* @__PURE__ */ new Set(), d = (h) => {
|
|
1733
1733
|
for (var g = 0; g < h.length; g++) {
|
|
1734
|
-
var
|
|
1735
|
-
if (!
|
|
1736
|
-
|
|
1737
|
-
var
|
|
1738
|
-
for (const
|
|
1739
|
-
var
|
|
1740
|
-
|
|
1741
|
-
var
|
|
1742
|
-
|
|
1734
|
+
var y = h[g];
|
|
1735
|
+
if (!p.has(y)) {
|
|
1736
|
+
p.add(y);
|
|
1737
|
+
var v = Fs(y);
|
|
1738
|
+
for (const E of [t, document]) {
|
|
1739
|
+
var w = tr.get(E);
|
|
1740
|
+
w === void 0 && (w = /* @__PURE__ */ new Map(), tr.set(E, w));
|
|
1741
|
+
var P = w.get(y);
|
|
1742
|
+
P === void 0 ? (E.addEventListener(y, Gn, { passive: v }), w.set(y, 1)) : w.set(y, P + 1);
|
|
1743
1743
|
}
|
|
1744
1744
|
}
|
|
1745
1745
|
}
|
|
1746
1746
|
};
|
|
1747
|
-
return d(
|
|
1748
|
-
for (var h of
|
|
1749
|
-
var g =
|
|
1750
|
-
--
|
|
1747
|
+
return d(br(oo)), Qr.add(d), () => {
|
|
1748
|
+
for (var h of p) for (const v of [t, document]) {
|
|
1749
|
+
var g = tr.get(v), y = g.get(h);
|
|
1750
|
+
--y == 0 ? (v.removeEventListener(h, Gn), g.delete(h), g.size === 0 && tr.delete(v)) : g.set(h, y);
|
|
1751
1751
|
}
|
|
1752
|
-
|
|
1752
|
+
Qr.delete(d), f !== r && f.parentNode?.removeChild(f);
|
|
1753
1753
|
};
|
|
1754
1754
|
});
|
|
1755
|
-
return
|
|
1755
|
+
return Zr.set(c, u), c;
|
|
1756
1756
|
}
|
|
1757
|
-
var
|
|
1758
|
-
function
|
|
1759
|
-
const r =
|
|
1760
|
-
return r ? (
|
|
1757
|
+
var Zr = /* @__PURE__ */ new WeakMap();
|
|
1758
|
+
function Ks(e, t) {
|
|
1759
|
+
const r = Zr.get(e);
|
|
1760
|
+
return r ? (Zr.delete(e), r(t)) : Promise.resolve();
|
|
1761
1761
|
}
|
|
1762
|
-
var
|
|
1762
|
+
var Ee = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), ce = /* @__PURE__ */ new WeakMap(), Ot = /* @__PURE__ */ new WeakMap(), Mr = /* @__PURE__ */ new WeakMap(), Cr = /* @__PURE__ */ new WeakMap(), Xn = /* @__PURE__ */ new WeakMap(), Ys = class {
|
|
1763
1763
|
constructor(e, t = !0) {
|
|
1764
|
-
b(this, "anchor", void 0), S(this,
|
|
1765
|
-
if (l(
|
|
1766
|
-
var n = l(
|
|
1764
|
+
b(this, "anchor", void 0), S(this, Ee, /* @__PURE__ */ new Map()), S(this, Pe, /* @__PURE__ */ new Map()), S(this, ce, /* @__PURE__ */ new Map()), S(this, Ot, /* @__PURE__ */ new Set()), S(this, Mr, !0), S(this, Cr, (r) => {
|
|
1765
|
+
if (l(Ee, this).has(r)) {
|
|
1766
|
+
var n = l(Ee, this).get(r), i = l(Pe, this).get(n);
|
|
1767
1767
|
if (i)
|
|
1768
|
-
|
|
1768
|
+
wn(i), l(Ot, this).delete(n);
|
|
1769
1769
|
else {
|
|
1770
1770
|
var o = l(ce, this).get(n);
|
|
1771
|
-
o && (l(
|
|
1771
|
+
o && (l(Pe, this).set(n, o.effect), l(ce, this).delete(n), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), i = o.effect);
|
|
1772
1772
|
}
|
|
1773
|
-
for (const [s, a] of l(
|
|
1774
|
-
if (l(
|
|
1773
|
+
for (const [s, a] of l(Ee, this)) {
|
|
1774
|
+
if (l(Ee, this).delete(s), s === r) break;
|
|
1775
1775
|
const c = l(ce, this).get(a);
|
|
1776
1776
|
c && (U(c.effect), l(ce, this).delete(a));
|
|
1777
1777
|
}
|
|
1778
|
-
for (const [s, a] of l(
|
|
1779
|
-
if (s === n || l(
|
|
1778
|
+
for (const [s, a] of l(Pe, this)) {
|
|
1779
|
+
if (s === n || l(Ot, this).has(s)) continue;
|
|
1780
1780
|
const c = () => {
|
|
1781
|
-
if (Array.from(l(
|
|
1781
|
+
if (Array.from(l(Ee, this).values()).includes(s)) {
|
|
1782
1782
|
var u = document.createDocumentFragment();
|
|
1783
|
-
|
|
1783
|
+
yn(a, u), u.append(pe()), l(ce, this).set(s, {
|
|
1784
1784
|
effect: a,
|
|
1785
1785
|
fragment: u
|
|
1786
1786
|
});
|
|
1787
1787
|
} else U(a);
|
|
1788
|
-
l(
|
|
1788
|
+
l(Ot, this).delete(s), l(Pe, this).delete(s);
|
|
1789
1789
|
};
|
|
1790
|
-
l(
|
|
1790
|
+
l(Mr, this) || !i ? (l(Ot, this).add(s), ut(a, c, !1)) : c();
|
|
1791
1791
|
}
|
|
1792
1792
|
}
|
|
1793
|
-
}), S(this,
|
|
1794
|
-
l(
|
|
1795
|
-
const n = Array.from(l(
|
|
1793
|
+
}), S(this, Xn, (r) => {
|
|
1794
|
+
l(Ee, this).delete(r);
|
|
1795
|
+
const n = Array.from(l(Ee, this).values());
|
|
1796
1796
|
for (const [i, o] of l(ce, this)) n.includes(i) || (U(o.effect), l(ce, this).delete(i));
|
|
1797
|
-
}), this.anchor = e, k(
|
|
1797
|
+
}), this.anchor = e, k(Mr, this, t);
|
|
1798
1798
|
}
|
|
1799
1799
|
ensure(e, t) {
|
|
1800
|
-
var r = I, n =
|
|
1801
|
-
if (t && !l(
|
|
1802
|
-
var i = document.createDocumentFragment(), o =
|
|
1800
|
+
var r = I, n = qi();
|
|
1801
|
+
if (t && !l(Pe, this).has(e) && !l(ce, this).has(e)) if (n) {
|
|
1802
|
+
var i = document.createDocumentFragment(), o = pe();
|
|
1803
1803
|
i.append(o), l(ce, this).set(e, {
|
|
1804
1804
|
effect: oe(() => t(o)),
|
|
1805
1805
|
fragment: i
|
|
1806
1806
|
});
|
|
1807
|
-
} else l(
|
|
1808
|
-
if (l(
|
|
1809
|
-
for (const [s, a] of l(
|
|
1807
|
+
} else l(Pe, this).set(e, oe(() => t(this.anchor)));
|
|
1808
|
+
if (l(Ee, this).set(r, e), n) {
|
|
1809
|
+
for (const [s, a] of l(Pe, this)) s === e ? r.unskip_effect(a) : r.skip_effect(a);
|
|
1810
1810
|
for (const [s, a] of l(ce, this)) s === e ? r.unskip_effect(a.effect) : r.skip_effect(a.effect);
|
|
1811
|
-
r.oncommit(l(
|
|
1811
|
+
r.oncommit(l(Cr, this)), r.ondiscard(l(Xn, this));
|
|
1812
1812
|
} else
|
|
1813
|
-
C && (this.anchor = M), l(
|
|
1813
|
+
C && (this.anchor = M), l(Cr, this).call(this, r);
|
|
1814
1814
|
}
|
|
1815
1815
|
};
|
|
1816
|
-
function
|
|
1816
|
+
function Lt(e, t, r = !1) {
|
|
1817
1817
|
var n;
|
|
1818
|
-
C && (n = M,
|
|
1819
|
-
var i = new
|
|
1818
|
+
C && (n = M, yr());
|
|
1819
|
+
var i = new Ys(e), o = r ? on : 0;
|
|
1820
1820
|
function s(a, c) {
|
|
1821
1821
|
if (C) {
|
|
1822
|
-
var u =
|
|
1822
|
+
var u = vi(n);
|
|
1823
1823
|
if (a !== parseInt(u.substring(1))) {
|
|
1824
|
-
var f =
|
|
1824
|
+
var f = hr();
|
|
1825
1825
|
X(f), i.anchor = f, Oe(!1), i.ensure(a, c), Oe(!0);
|
|
1826
1826
|
return;
|
|
1827
1827
|
}
|
|
1828
1828
|
}
|
|
1829
1829
|
i.ensure(a, c);
|
|
1830
1830
|
}
|
|
1831
|
-
|
|
1831
|
+
mn(() => {
|
|
1832
1832
|
var a = !1;
|
|
1833
1833
|
t((c, u = 0) => {
|
|
1834
1834
|
a = !0, s(u, c);
|
|
1835
1835
|
}), a || s(-1, null);
|
|
1836
1836
|
}, o);
|
|
1837
1837
|
}
|
|
1838
|
-
function
|
|
1838
|
+
function Xs(e, t) {
|
|
1839
1839
|
return t;
|
|
1840
1840
|
}
|
|
1841
|
-
function
|
|
1841
|
+
function Js(e, t, r) {
|
|
1842
1842
|
for (var n = [], i = t.length, o, s = t.length, a = 0; a < i; a++) {
|
|
1843
|
-
let
|
|
1844
|
-
|
|
1843
|
+
let p = t[a];
|
|
1844
|
+
ut(p, () => {
|
|
1845
1845
|
if (o) {
|
|
1846
|
-
if (o.pending.delete(
|
|
1846
|
+
if (o.pending.delete(p), o.done.add(p), o.pending.size === 0) {
|
|
1847
1847
|
var d = e.outrogroups;
|
|
1848
|
-
|
|
1848
|
+
en(e, br(o.done)), d.delete(o), d.size === 0 && (e.outrogroups = null);
|
|
1849
1849
|
}
|
|
1850
1850
|
} else s -= 1;
|
|
1851
1851
|
}, !1);
|
|
@@ -1854,16 +1854,16 @@ function Us(e, t, r) {
|
|
|
1854
1854
|
var c = n.length === 0 && r !== null;
|
|
1855
1855
|
if (c) {
|
|
1856
1856
|
var u = r, f = u.parentNode;
|
|
1857
|
-
|
|
1857
|
+
Bi(f), f.append(u), e.items.clear();
|
|
1858
1858
|
}
|
|
1859
|
-
|
|
1859
|
+
en(e, t, !c);
|
|
1860
1860
|
} else
|
|
1861
1861
|
o = {
|
|
1862
1862
|
pending: new Set(t),
|
|
1863
1863
|
done: /* @__PURE__ */ new Set()
|
|
1864
1864
|
}, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(o);
|
|
1865
1865
|
}
|
|
1866
|
-
function
|
|
1866
|
+
function en(e, t, r = !0) {
|
|
1867
1867
|
var n;
|
|
1868
1868
|
if (e.pending.size > 0) {
|
|
1869
1869
|
n = /* @__PURE__ */ new Set();
|
|
@@ -1871,49 +1871,49 @@ function Xr(e, t, r = !0) {
|
|
|
1871
1871
|
}
|
|
1872
1872
|
for (var i = 0; i < t.length; i++) {
|
|
1873
1873
|
var o = t[i];
|
|
1874
|
-
n?.has(o) ? (o.f |=
|
|
1874
|
+
n?.has(o) ? (o.f |= xt, yn(o, document.createDocumentFragment())) : U(t[i], r);
|
|
1875
1875
|
}
|
|
1876
1876
|
}
|
|
1877
|
-
var
|
|
1878
|
-
function
|
|
1877
|
+
var rr;
|
|
1878
|
+
function Qs(e, t, r, n, i, o = null) {
|
|
1879
1879
|
var s = e, a = /* @__PURE__ */ new Map();
|
|
1880
1880
|
if (t & 4) {
|
|
1881
1881
|
var c = e;
|
|
1882
|
-
s = C ? X(/* @__PURE__ */
|
|
1883
|
-
}
|
|
1884
|
-
C &&
|
|
1885
|
-
var u = null, f = /* @__PURE__ */
|
|
1886
|
-
var
|
|
1887
|
-
return
|
|
1888
|
-
}),
|
|
1889
|
-
function g(
|
|
1890
|
-
|
|
1882
|
+
s = C ? X(/* @__PURE__ */ at(c)) : c.appendChild(pe());
|
|
1883
|
+
}
|
|
1884
|
+
C && yr();
|
|
1885
|
+
var u = null, f = /* @__PURE__ */ dn(() => {
|
|
1886
|
+
var w = r();
|
|
1887
|
+
return fi(w) ? w : w == null ? [] : br(w);
|
|
1888
|
+
}), p, d = /* @__PURE__ */ new Map(), h = !0;
|
|
1889
|
+
function g(w) {
|
|
1890
|
+
v.effect.f & 16384 || (v.pending.delete(w), v.fallback = u, Zs(v, p, s, t, n), u !== null && (p.length === 0 ? u.f & 33554432 ? (u.f ^= xt, Ct(u, null, s)) : wn(u) : ut(u, () => {
|
|
1891
1891
|
u = null;
|
|
1892
1892
|
})));
|
|
1893
1893
|
}
|
|
1894
|
-
function w
|
|
1895
|
-
|
|
1896
|
-
}
|
|
1897
|
-
var
|
|
1898
|
-
effect:
|
|
1899
|
-
|
|
1900
|
-
var
|
|
1901
|
-
let
|
|
1902
|
-
C &&
|
|
1903
|
-
for (var
|
|
1904
|
-
C && M.nodeType === 8 && M.data === "]" && (s = M,
|
|
1905
|
-
var G =
|
|
1894
|
+
function y(w) {
|
|
1895
|
+
v.pending.delete(w);
|
|
1896
|
+
}
|
|
1897
|
+
var v = {
|
|
1898
|
+
effect: mn(() => {
|
|
1899
|
+
p = _(f);
|
|
1900
|
+
var w = p.length;
|
|
1901
|
+
let P = !1;
|
|
1902
|
+
C && vi(s) === "[!" != (w === 0) && (s = hr(), X(s), Oe(!1), P = !0);
|
|
1903
|
+
for (var E = /* @__PURE__ */ new Set(), x = I, H = qi(), D = 0; D < w; D += 1) {
|
|
1904
|
+
C && M.nodeType === 8 && M.data === "]" && (s = M, P = !0, Oe(!1));
|
|
1905
|
+
var G = p[D], ge = n(G, D);
|
|
1906
1906
|
if (0)
|
|
1907
|
-
var
|
|
1907
|
+
var Bt;
|
|
1908
1908
|
var V = h ? null : a.get(ge);
|
|
1909
|
-
V ? (V.v &&
|
|
1909
|
+
V ? (V.v && yt(V.v, G), V.i && yt(V.i, D), H && x.unskip_effect(V.e)) : (V = ea(a, h ? s : rr ?? (rr = pe()), G, ge, D, i, t, r), h || (V.e.f |= xt), a.set(ge, V)), E.add(ge);
|
|
1910
1910
|
}
|
|
1911
|
-
if (
|
|
1912
|
-
if (d.set(
|
|
1913
|
-
for (const [
|
|
1914
|
-
|
|
1915
|
-
} else g(
|
|
1916
|
-
|
|
1911
|
+
if (w === 0 && o && !u && (h ? u = oe(() => o(s)) : (u = oe(() => o(rr ?? (rr = pe()))), u.f |= xt)), w > E.size && Ho("", "", ""), C && w > 0 && X(hr()), !h)
|
|
1912
|
+
if (d.set(x, E), H) {
|
|
1913
|
+
for (const [qt, Er] of a) E.has(qt) || x.skip_effect(Er.e);
|
|
1914
|
+
x.oncommit(g), x.ondiscard(y);
|
|
1915
|
+
} else g(x);
|
|
1916
|
+
P && Oe(!0), _(f);
|
|
1917
1917
|
}),
|
|
1918
1918
|
flags: t,
|
|
1919
1919
|
items: a,
|
|
@@ -1923,70 +1923,70 @@ function Gs(e, t, r, n, i, o = null) {
|
|
|
1923
1923
|
};
|
|
1924
1924
|
h = !1, C && (s = M);
|
|
1925
1925
|
}
|
|
1926
|
-
function
|
|
1926
|
+
function Rt(e) {
|
|
1927
1927
|
for (; e !== null && !(e.f & 32); ) e = e.next;
|
|
1928
1928
|
return e;
|
|
1929
1929
|
}
|
|
1930
|
-
function
|
|
1931
|
-
var o = (n & 8) !== 0, s = t.length, a = e.items, c =
|
|
1932
|
-
if (o) for (
|
|
1933
|
-
g = t[
|
|
1934
|
-
for (
|
|
1935
|
-
if (g = t[
|
|
1936
|
-
V.pending.delete(
|
|
1937
|
-
if (
|
|
1938
|
-
if (
|
|
1930
|
+
function Zs(e, t, r, n, i) {
|
|
1931
|
+
var o = (n & 8) !== 0, s = t.length, a = e.items, c = Rt(e.effect.first), u, f = null, p, d = [], h = [], g, y, v, w;
|
|
1932
|
+
if (o) for (w = 0; w < s; w += 1)
|
|
1933
|
+
g = t[w], y = i(g, w), v = a.get(y).e, v.f & 33554432 || (v.nodes?.a?.measure(), (p ?? (p = /* @__PURE__ */ new Set())).add(v));
|
|
1934
|
+
for (w = 0; w < s; w += 1) {
|
|
1935
|
+
if (g = t[w], y = i(g, w), v = a.get(y).e, e.outrogroups !== null) for (const V of e.outrogroups)
|
|
1936
|
+
V.pending.delete(v), V.done.delete(v);
|
|
1937
|
+
if (v.f & 8192 && (wn(v), o && (v.nodes?.a?.unfix(), (p ?? (p = /* @__PURE__ */ new Set())).delete(v))), v.f & 33554432)
|
|
1938
|
+
if (v.f ^= xt, v === c) Ct(v, null, r);
|
|
1939
1939
|
else {
|
|
1940
|
-
var
|
|
1941
|
-
|
|
1940
|
+
var P = f ? f.next : c;
|
|
1941
|
+
v === e.effect.last && (e.effect.last = v.prev), v.prev && (v.prev.next = v.next), v.next && (v.next.prev = v.prev), Ne(e, f, v), Ne(e, v, P), Ct(v, P, r), f = v, d = [], h = [], c = Rt(f.next);
|
|
1942
1942
|
continue;
|
|
1943
1943
|
}
|
|
1944
|
-
if (
|
|
1945
|
-
if (u !== void 0 && u.has(
|
|
1944
|
+
if (v !== c) {
|
|
1945
|
+
if (u !== void 0 && u.has(v)) {
|
|
1946
1946
|
if (d.length < h.length) {
|
|
1947
|
-
var
|
|
1948
|
-
f =
|
|
1947
|
+
var E = h[0], x;
|
|
1948
|
+
f = E.prev;
|
|
1949
1949
|
var H = d[0], D = d[d.length - 1];
|
|
1950
|
-
for (
|
|
1951
|
-
for (
|
|
1952
|
-
Ne(e, H.prev, D.next), Ne(e, f, H), Ne(e, D,
|
|
1950
|
+
for (x = 0; x < d.length; x += 1) Ct(d[x], E, r);
|
|
1951
|
+
for (x = 0; x < h.length; x += 1) u.delete(h[x]);
|
|
1952
|
+
Ne(e, H.prev, D.next), Ne(e, f, H), Ne(e, D, E), c = E, f = D, w -= 1, d = [], h = [];
|
|
1953
1953
|
} else
|
|
1954
|
-
u.delete(
|
|
1954
|
+
u.delete(v), Ct(v, c, r), Ne(e, v.prev, v.next), Ne(e, v, f === null ? e.effect.first : f.next), Ne(e, f, v), f = v;
|
|
1955
1955
|
continue;
|
|
1956
1956
|
}
|
|
1957
|
-
for (d = [], h = []; c !== null && c !==
|
|
1958
|
-
(u ?? (u = /* @__PURE__ */ new Set())).add(c), h.push(c), c =
|
|
1957
|
+
for (d = [], h = []; c !== null && c !== v; )
|
|
1958
|
+
(u ?? (u = /* @__PURE__ */ new Set())).add(c), h.push(c), c = Rt(c.next);
|
|
1959
1959
|
if (c === null) continue;
|
|
1960
1960
|
}
|
|
1961
|
-
|
|
1961
|
+
v.f & 33554432 || d.push(v), f = v, c = Rt(v.next);
|
|
1962
1962
|
}
|
|
1963
1963
|
if (e.outrogroups !== null) {
|
|
1964
|
-
for (const V of e.outrogroups) V.pending.size === 0 && (
|
|
1964
|
+
for (const V of e.outrogroups) V.pending.size === 0 && (en(e, br(V.done)), e.outrogroups?.delete(V));
|
|
1965
1965
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
1966
1966
|
}
|
|
1967
1967
|
if (c !== null || u !== void 0) {
|
|
1968
1968
|
var G = [];
|
|
1969
1969
|
if (u !== void 0)
|
|
1970
|
-
for (
|
|
1970
|
+
for (v of u) v.f & 8192 || G.push(v);
|
|
1971
1971
|
for (; c !== null; )
|
|
1972
|
-
!(c.f & 8192) && c !== e.fallback && G.push(c), c =
|
|
1972
|
+
!(c.f & 8192) && c !== e.fallback && G.push(c), c = Rt(c.next);
|
|
1973
1973
|
var ge = G.length;
|
|
1974
1974
|
if (ge > 0) {
|
|
1975
|
-
var
|
|
1975
|
+
var Bt = n & 4 && s === 0 ? r : null;
|
|
1976
1976
|
if (o) {
|
|
1977
|
-
for (
|
|
1978
|
-
for (
|
|
1977
|
+
for (w = 0; w < ge; w += 1) G[w].nodes?.a?.measure();
|
|
1978
|
+
for (w = 0; w < ge; w += 1) G[w].nodes?.a?.fix();
|
|
1979
1979
|
}
|
|
1980
|
-
|
|
1980
|
+
Js(e, G, Bt);
|
|
1981
1981
|
}
|
|
1982
1982
|
}
|
|
1983
|
-
o &&
|
|
1984
|
-
if (
|
|
1985
|
-
for (
|
|
1983
|
+
o && ot(() => {
|
|
1984
|
+
if (p !== void 0)
|
|
1985
|
+
for (v of p) v.nodes?.a?.apply();
|
|
1986
1986
|
});
|
|
1987
1987
|
}
|
|
1988
|
-
function
|
|
1989
|
-
var c = s & 1 ? s & 16 ?
|
|
1988
|
+
function ea(e, t, r, n, i, o, s, a) {
|
|
1989
|
+
var c = s & 1 ? s & 16 ? st(r) : /* @__PURE__ */ Vi(r, !1, !1) : null, u = s & 2 ? st(i) : null;
|
|
1990
1990
|
return {
|
|
1991
1991
|
v: c,
|
|
1992
1992
|
i: u,
|
|
@@ -1995,7 +1995,7 @@ function Ys(e, t, r, n, i, o, s, a) {
|
|
|
1995
1995
|
}))
|
|
1996
1996
|
};
|
|
1997
1997
|
}
|
|
1998
|
-
function
|
|
1998
|
+
function Ct(e, t, r) {
|
|
1999
1999
|
if (e.nodes)
|
|
2000
2000
|
for (var n = e.nodes.start, i = e.nodes.end, o = t && !(t.f & 33554432) ? t.nodes.start : r; n !== null; ) {
|
|
2001
2001
|
var s = /* @__PURE__ */ Se(n);
|
|
@@ -2006,16 +2006,16 @@ function Rt(e, t, r) {
|
|
|
2006
2006
|
function Ne(e, t, r) {
|
|
2007
2007
|
t === null ? e.effect.first = r : t.next = r, r === null ? e.effect.last = t : r.prev = t;
|
|
2008
2008
|
}
|
|
2009
|
-
function
|
|
2010
|
-
|
|
2009
|
+
function ta(e, t) {
|
|
2010
|
+
Gi(() => {
|
|
2011
2011
|
var r = e.getRootNode(), n = r.host ? r : r.head ?? r.ownerDocument.head;
|
|
2012
2012
|
if (!n.querySelector("#" + t.hash)) {
|
|
2013
|
-
const i =
|
|
2013
|
+
const i = pn("style");
|
|
2014
2014
|
i.id = t.hash, i.textContent = t.code, n.appendChild(i);
|
|
2015
2015
|
}
|
|
2016
2016
|
});
|
|
2017
2017
|
}
|
|
2018
|
-
function
|
|
2018
|
+
function Jn(e, t = !1) {
|
|
2019
2019
|
var r = t ? " !important;" : ";", n = "";
|
|
2020
2020
|
for (var i of Object.keys(e)) {
|
|
2021
2021
|
var o = e[i];
|
|
@@ -2023,119 +2023,119 @@ function Gn(e, t = !1) {
|
|
|
2023
2023
|
}
|
|
2024
2024
|
return n;
|
|
2025
2025
|
}
|
|
2026
|
-
function
|
|
2026
|
+
function xr(e) {
|
|
2027
2027
|
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
2028
2028
|
}
|
|
2029
|
-
function
|
|
2029
|
+
function ra(e, t) {
|
|
2030
2030
|
if (t) {
|
|
2031
2031
|
var r = "", n, i;
|
|
2032
2032
|
if (Array.isArray(t) ? (n = t[0], i = t[1]) : n = t, e) {
|
|
2033
2033
|
e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
|
|
2034
2034
|
var o = !1, s = 0, a = !1, c = [];
|
|
2035
|
-
n && c.push(...Object.keys(n).map(
|
|
2035
|
+
n && c.push(...Object.keys(n).map(xr)), i && c.push(...Object.keys(i).map(xr));
|
|
2036
2036
|
var u = 0, f = -1;
|
|
2037
|
-
const
|
|
2038
|
-
for (var
|
|
2039
|
-
var d = e[
|
|
2040
|
-
if (a ? d === "/" && e[
|
|
2041
|
-
if (d === ":" && f === -1) f =
|
|
2042
|
-
else if (d === ";" ||
|
|
2037
|
+
const y = e.length;
|
|
2038
|
+
for (var p = 0; p < y; p++) {
|
|
2039
|
+
var d = e[p];
|
|
2040
|
+
if (a ? d === "/" && e[p - 1] === "*" && (a = !1) : o ? o === d && (o = !1) : d === "/" && e[p + 1] === "*" ? a = !0 : d === '"' || d === "'" ? o = d : d === "(" ? s++ : d === ")" && s--, !a && o === !1 && s === 0) {
|
|
2041
|
+
if (d === ":" && f === -1) f = p;
|
|
2042
|
+
else if (d === ";" || p === y - 1) {
|
|
2043
2043
|
if (f !== -1) {
|
|
2044
|
-
var h =
|
|
2044
|
+
var h = xr(e.substring(u, f).trim());
|
|
2045
2045
|
if (!c.includes(h)) {
|
|
2046
|
-
d !== ";" &&
|
|
2047
|
-
var g = e.substring(u,
|
|
2046
|
+
d !== ";" && p++;
|
|
2047
|
+
var g = e.substring(u, p).trim();
|
|
2048
2048
|
r += " " + g + ";";
|
|
2049
2049
|
}
|
|
2050
2050
|
}
|
|
2051
|
-
u =
|
|
2051
|
+
u = p + 1, f = -1;
|
|
2052
2052
|
}
|
|
2053
2053
|
}
|
|
2054
2054
|
}
|
|
2055
2055
|
}
|
|
2056
|
-
return n && (r +=
|
|
2056
|
+
return n && (r += Jn(n)), i && (r += Jn(i, !0)), r = r.trim(), r === "" ? null : r;
|
|
2057
2057
|
}
|
|
2058
2058
|
return e == null ? null : String(e);
|
|
2059
2059
|
}
|
|
2060
|
-
function
|
|
2060
|
+
function Pr(e, t = {}, r, n) {
|
|
2061
2061
|
for (var i in r) {
|
|
2062
2062
|
var o = r[i];
|
|
2063
2063
|
t[i] !== o && (r[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, o, n));
|
|
2064
2064
|
}
|
|
2065
2065
|
}
|
|
2066
|
-
function
|
|
2066
|
+
function Qn(e, t, r, n) {
|
|
2067
2067
|
var i = e.__style;
|
|
2068
2068
|
if (C || i !== t) {
|
|
2069
|
-
var o =
|
|
2069
|
+
var o = ra(t, n);
|
|
2070
2070
|
(!C || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e.__style = t;
|
|
2071
|
-
} else n && (Array.isArray(n) ? (
|
|
2071
|
+
} else n && (Array.isArray(n) ? (Pr(e, r?.[0], n[0]), Pr(e, r?.[1], n[1], "important")) : Pr(e, r, n));
|
|
2072
2072
|
return n;
|
|
2073
2073
|
}
|
|
2074
|
-
var
|
|
2075
|
-
function
|
|
2076
|
-
var i =
|
|
2077
|
-
if (C && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName ===
|
|
2074
|
+
var na = Symbol("is custom element"), ia = Symbol("is html"), oa = zo ? "link" : "LINK";
|
|
2075
|
+
function Zn(e, t, r, n) {
|
|
2076
|
+
var i = sa(e);
|
|
2077
|
+
if (C && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === oa)) {
|
|
2078
2078
|
n || void 0;
|
|
2079
2079
|
return;
|
|
2080
2080
|
}
|
|
2081
|
-
i[t] !== (i[t] = r) && (t === "loading" && (e[
|
|
2081
|
+
i[t] !== (i[t] = r) && (t === "loading" && (e[Vo] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && aa(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2083
|
+
function sa(e) {
|
|
2084
2084
|
return e.__attributes ?? (e.__attributes = {
|
|
2085
|
-
[
|
|
2086
|
-
[
|
|
2085
|
+
[na]: e.nodeName.includes("-"),
|
|
2086
|
+
[ia]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
2087
2087
|
});
|
|
2088
2088
|
}
|
|
2089
|
-
var
|
|
2090
|
-
function
|
|
2091
|
-
var t = e.getAttribute("is") || e.nodeName, r =
|
|
2089
|
+
var ei = /* @__PURE__ */ new Map();
|
|
2090
|
+
function aa(e) {
|
|
2091
|
+
var t = e.getAttribute("is") || e.nodeName, r = ei.get(t);
|
|
2092
2092
|
if (r) return r;
|
|
2093
|
-
|
|
2093
|
+
ei.set(t, r = []);
|
|
2094
2094
|
for (var n, i = e, o = Element.prototype; o !== i; ) {
|
|
2095
|
-
n =
|
|
2095
|
+
n = Lo(i);
|
|
2096
2096
|
for (var s in n) n[s].set && r.push(s);
|
|
2097
|
-
i =
|
|
2097
|
+
i = di(i);
|
|
2098
2098
|
}
|
|
2099
2099
|
return r;
|
|
2100
2100
|
}
|
|
2101
|
-
var
|
|
2101
|
+
var lo, ht = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap(), Nr = /* @__PURE__ */ new WeakMap(), ti = /* @__PURE__ */ new WeakSet(), co = class {
|
|
2102
2102
|
constructor(e) {
|
|
2103
|
-
|
|
2103
|
+
an(this, ti), S(this, ht, /* @__PURE__ */ new WeakMap()), S(this, _r, void 0), S(this, Nr, void 0), k(Nr, this, e);
|
|
2104
2104
|
}
|
|
2105
2105
|
observe(e, t) {
|
|
2106
|
-
var r = l(
|
|
2107
|
-
return r.add(t), l(
|
|
2108
|
-
var n = l(
|
|
2109
|
-
n.delete(t), n.size === 0 && (l(
|
|
2106
|
+
var r = l(ht, this).get(e) || /* @__PURE__ */ new Set();
|
|
2107
|
+
return r.add(t), l(ht, this).set(e, r), L(ti, this, la).call(this).observe(e, l(Nr, this)), () => {
|
|
2108
|
+
var n = l(ht, this).get(e);
|
|
2109
|
+
n.delete(t), n.size === 0 && (l(ht, this).delete(e), l(_r, this).unobserve(e));
|
|
2110
2110
|
};
|
|
2111
2111
|
}
|
|
2112
2112
|
};
|
|
2113
|
-
|
|
2114
|
-
function
|
|
2115
|
-
return l(
|
|
2113
|
+
lo = co;
|
|
2114
|
+
function la() {
|
|
2115
|
+
return l(_r, this) ?? k(_r, this, new ResizeObserver((e) => {
|
|
2116
2116
|
for (var t of e) {
|
|
2117
|
-
|
|
2118
|
-
for (var r of l(
|
|
2117
|
+
lo.entries.set(t.target, t);
|
|
2118
|
+
for (var r of l(ht, this).get(t.target) || []) r(t);
|
|
2119
2119
|
}
|
|
2120
2120
|
}));
|
|
2121
2121
|
}
|
|
2122
|
-
b(
|
|
2123
|
-
function
|
|
2124
|
-
return e === t || e?.[
|
|
2122
|
+
b(co, "entries", /* @__PURE__ */ new WeakMap());
|
|
2123
|
+
function ri(e, t) {
|
|
2124
|
+
return e === t || e?.[Pt] === t;
|
|
2125
2125
|
}
|
|
2126
|
-
function
|
|
2126
|
+
function ni(e = {}, t, r, n) {
|
|
2127
2127
|
var i = W.r, o = A;
|
|
2128
|
-
return
|
|
2128
|
+
return Gi(() => {
|
|
2129
2129
|
var s, a;
|
|
2130
|
-
return
|
|
2131
|
-
s = a, a = n?.() || [],
|
|
2132
|
-
e !== r(...a) && (t(e, ...a), s &&
|
|
2130
|
+
return _n(() => {
|
|
2131
|
+
s = a, a = n?.() || [], Tn(() => {
|
|
2132
|
+
e !== r(...a) && (t(e, ...a), s && ri(r(...s), e) && t(null, ...s));
|
|
2133
2133
|
});
|
|
2134
2134
|
}), () => {
|
|
2135
2135
|
let c = o;
|
|
2136
2136
|
for (; c !== i && c.parent !== null && c.parent.f & 33554432; ) c = c.parent;
|
|
2137
2137
|
const u = () => {
|
|
2138
|
-
a &&
|
|
2138
|
+
a && ri(r(...a), e) && t(null, ...a);
|
|
2139
2139
|
}, f = c.teardown;
|
|
2140
2140
|
c.teardown = () => {
|
|
2141
2141
|
u(), f?.();
|
|
@@ -2143,48 +2143,48 @@ function Zn(e = {}, t, r, n) {
|
|
|
2143
2143
|
};
|
|
2144
2144
|
}), e;
|
|
2145
2145
|
}
|
|
2146
|
-
function
|
|
2147
|
-
var i = !
|
|
2146
|
+
function Dr(e, t, r, n) {
|
|
2147
|
+
var i = !Tr || (r & 2) !== 0, o = (r & 8) !== 0, s = (r & 16) !== 0, a = n, c = !0, u = () => (c && (c = !1, a = s ? Tn(n) : n), a);
|
|
2148
2148
|
let f;
|
|
2149
2149
|
if (o) {
|
|
2150
|
-
var
|
|
2151
|
-
f =
|
|
2150
|
+
var p = Pt in e || pi in e;
|
|
2151
|
+
f = Qe(e, t)?.set ?? (p && t in e ? (E) => e[t] = E : void 0);
|
|
2152
2152
|
}
|
|
2153
2153
|
var d, h = !1;
|
|
2154
|
-
o ? [d, h] =
|
|
2154
|
+
o ? [d, h] = as(() => e[t]) : d = e[t], d === void 0 && n !== void 0 && (d = u(), f && (i && Ko(t), f(d)));
|
|
2155
2155
|
var g;
|
|
2156
2156
|
if (i ? g = () => {
|
|
2157
|
-
var
|
|
2158
|
-
return
|
|
2157
|
+
var E = e[t];
|
|
2158
|
+
return E === void 0 ? u() : (c = !0, E);
|
|
2159
2159
|
} : g = () => {
|
|
2160
|
-
var
|
|
2161
|
-
return
|
|
2160
|
+
var E = e[t];
|
|
2161
|
+
return E !== void 0 && (a = void 0), E === void 0 ? a : E;
|
|
2162
2162
|
}, i && !(r & 4)) return g;
|
|
2163
2163
|
if (f) {
|
|
2164
|
-
var
|
|
2165
|
-
return function(
|
|
2166
|
-
return arguments.length > 0 ? ((!i || !
|
|
2164
|
+
var y = e.$$legacy;
|
|
2165
|
+
return function(E, x) {
|
|
2166
|
+
return arguments.length > 0 ? ((!i || !x || y || h) && f(x ? g() : E), E) : g();
|
|
2167
2167
|
};
|
|
2168
2168
|
}
|
|
2169
|
-
var
|
|
2170
|
-
o && _(
|
|
2171
|
-
var
|
|
2172
|
-
return function(
|
|
2169
|
+
var v = !1, w = (r & 1 ? Sr : dn)(() => (v = !1, g()));
|
|
2170
|
+
o && _(w);
|
|
2171
|
+
var P = A;
|
|
2172
|
+
return function(E, x) {
|
|
2173
2173
|
if (arguments.length > 0) {
|
|
2174
|
-
const H =
|
|
2175
|
-
return O(
|
|
2174
|
+
const H = x ? _(w) : i && o ? Xe(E) : E;
|
|
2175
|
+
return O(w, H), v = !0, a !== void 0 && (a = H), E;
|
|
2176
2176
|
}
|
|
2177
|
-
return
|
|
2177
|
+
return Re && v || P.f & 16384 ? w.v : _(w);
|
|
2178
2178
|
};
|
|
2179
2179
|
}
|
|
2180
|
-
function
|
|
2181
|
-
return new
|
|
2180
|
+
function ca(e) {
|
|
2181
|
+
return new ua(e);
|
|
2182
2182
|
}
|
|
2183
|
-
var
|
|
2183
|
+
var Ge = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(), ua = class {
|
|
2184
2184
|
constructor(e) {
|
|
2185
|
-
S(this,
|
|
2185
|
+
S(this, Ge, void 0), S(this, _e, void 0);
|
|
2186
2186
|
var t = /* @__PURE__ */ new Map(), r = (i, o) => {
|
|
2187
|
-
var s = /* @__PURE__ */
|
|
2187
|
+
var s = /* @__PURE__ */ Vi(o, !1, !1);
|
|
2188
2188
|
return t.set(i, s), s;
|
|
2189
2189
|
};
|
|
2190
2190
|
const n = new Proxy({
|
|
@@ -2195,13 +2195,13 @@ var qe = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(), oa =
|
|
|
2195
2195
|
return _(t.get(o) ?? r(o, Reflect.get(i, o)));
|
|
2196
2196
|
},
|
|
2197
2197
|
has(i, o) {
|
|
2198
|
-
return o ===
|
|
2198
|
+
return o === pi ? !0 : (_(t.get(o) ?? r(o, Reflect.get(i, o))), Reflect.has(i, o));
|
|
2199
2199
|
},
|
|
2200
2200
|
set(i, o, s) {
|
|
2201
2201
|
return O(t.get(o) ?? r(o, s), s), Reflect.set(i, o, s);
|
|
2202
2202
|
}
|
|
2203
2203
|
});
|
|
2204
|
-
k(_e, this, (e.hydrate ?
|
|
2204
|
+
k(_e, this, (e.hydrate ? Gs : so)(e.component, {
|
|
2205
2205
|
target: e.target,
|
|
2206
2206
|
anchor: e.anchor,
|
|
2207
2207
|
props: n,
|
|
@@ -2209,9 +2209,9 @@ var qe = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(), oa =
|
|
|
2209
2209
|
intro: e.intro ?? !1,
|
|
2210
2210
|
recover: e.recover,
|
|
2211
2211
|
transformError: e.transformError
|
|
2212
|
-
})), !
|
|
2212
|
+
})), !Le && (!e?.props?.$$host || e.sync === !1) && or(), k(Ge, this, n.$$events);
|
|
2213
2213
|
for (const i of Object.keys(l(_e, this)))
|
|
2214
|
-
i === "$set" || i === "$destroy" || i === "$on" ||
|
|
2214
|
+
i === "$set" || i === "$destroy" || i === "$on" || fr(this, i, {
|
|
2215
2215
|
get() {
|
|
2216
2216
|
return l(_e, this)[i];
|
|
2217
2217
|
},
|
|
@@ -2223,24 +2223,24 @@ var qe = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(), oa =
|
|
|
2223
2223
|
l(_e, this).$set = (i) => {
|
|
2224
2224
|
Object.assign(n, i);
|
|
2225
2225
|
}, l(_e, this).$destroy = () => {
|
|
2226
|
-
|
|
2226
|
+
Ks(l(_e, this));
|
|
2227
2227
|
};
|
|
2228
2228
|
}
|
|
2229
2229
|
$set(e) {
|
|
2230
2230
|
l(_e, this).$set(e);
|
|
2231
2231
|
}
|
|
2232
2232
|
$on(e, t) {
|
|
2233
|
-
l(
|
|
2233
|
+
l(Ge, this)[e] = l(Ge, this)[e] || [];
|
|
2234
2234
|
const r = (...n) => t.call(this, ...n);
|
|
2235
|
-
return l(
|
|
2236
|
-
l(
|
|
2235
|
+
return l(Ge, this)[e].push(r), () => {
|
|
2236
|
+
l(Ge, this)[e] = l(Ge, this)[e].filter((n) => n !== r);
|
|
2237
2237
|
};
|
|
2238
2238
|
}
|
|
2239
2239
|
$destroy() {
|
|
2240
2240
|
l(_e, this).$destroy();
|
|
2241
2241
|
}
|
|
2242
|
-
},
|
|
2243
|
-
typeof HTMLElement == "function" && (
|
|
2242
|
+
}, uo;
|
|
2243
|
+
typeof HTMLElement == "function" && (uo = class extends HTMLElement {
|
|
2244
2244
|
constructor(e, t, r) {
|
|
2245
2245
|
super(), b(this, "$$ctor", void 0), b(this, "$$s", void 0), b(this, "$$c", void 0), b(this, "$$cn", !1), b(this, "$$d", {}), b(this, "$$r", !1), b(this, "$$p_d", {}), b(this, "$$l", {}), b(this, "$$l_u", /* @__PURE__ */ new Map()), b(this, "$$me", void 0), b(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2246
2246
|
}
|
|
@@ -2261,19 +2261,19 @@ typeof HTMLElement == "function" && (so = class extends HTMLElement {
|
|
|
2261
2261
|
if (this.$$cn = !0, !this.$$c) {
|
|
2262
2262
|
let e = function(n) {
|
|
2263
2263
|
return (i) => {
|
|
2264
|
-
const o =
|
|
2265
|
-
n !== "default" && (o.name = n),
|
|
2264
|
+
const o = pn("slot");
|
|
2265
|
+
n !== "default" && (o.name = n), je(i, o);
|
|
2266
2266
|
};
|
|
2267
2267
|
};
|
|
2268
2268
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2269
|
-
const t = {}, r =
|
|
2269
|
+
const t = {}, r = fa(this);
|
|
2270
2270
|
for (const n of this.$$s) n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
|
|
2271
2271
|
for (const n of this.attributes) {
|
|
2272
2272
|
const i = this.$$g_p(n.name);
|
|
2273
|
-
i in this.$$d || (this.$$d[i] =
|
|
2273
|
+
i in this.$$d || (this.$$d[i] = lr(i, n.value, this.$$p_d, "toProp"));
|
|
2274
2274
|
}
|
|
2275
2275
|
for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2276
|
-
this.$$c =
|
|
2276
|
+
this.$$c = ca({
|
|
2277
2277
|
component: this.$$ctor,
|
|
2278
2278
|
target: this.$$shadowRoot || this,
|
|
2279
2279
|
props: {
|
|
@@ -2281,13 +2281,13 @@ typeof HTMLElement == "function" && (so = class extends HTMLElement {
|
|
|
2281
2281
|
$$slots: t,
|
|
2282
2282
|
$$host: this
|
|
2283
2283
|
}
|
|
2284
|
-
}), this.$$me =
|
|
2285
|
-
|
|
2284
|
+
}), this.$$me = Rs(() => {
|
|
2285
|
+
_n(() => {
|
|
2286
2286
|
this.$$r = !0;
|
|
2287
|
-
for (const n of
|
|
2287
|
+
for (const n of ur(this.$$c)) {
|
|
2288
2288
|
if (!this.$$p_d[n]?.reflect) continue;
|
|
2289
2289
|
this.$$d[n] = this.$$c[n];
|
|
2290
|
-
const i =
|
|
2290
|
+
const i = lr(n, this.$$d[n], this.$$p_d, "toAttribute");
|
|
2291
2291
|
i == null ? this.removeAttribute(this.$$p_d[n].attribute || n) : this.setAttribute(this.$$p_d[n].attribute || n, i);
|
|
2292
2292
|
}
|
|
2293
2293
|
this.$$r = !1;
|
|
@@ -2301,7 +2301,7 @@ typeof HTMLElement == "function" && (so = class extends HTMLElement {
|
|
|
2301
2301
|
}
|
|
2302
2302
|
}
|
|
2303
2303
|
attributeChangedCallback(e, t, r) {
|
|
2304
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
2304
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = lr(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2305
2305
|
}
|
|
2306
2306
|
disconnectedCallback() {
|
|
2307
2307
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2309,10 +2309,10 @@ typeof HTMLElement == "function" && (so = class extends HTMLElement {
|
|
|
2309
2309
|
});
|
|
2310
2310
|
}
|
|
2311
2311
|
$$g_p(e) {
|
|
2312
|
-
return
|
|
2312
|
+
return ur(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
2313
2313
|
}
|
|
2314
2314
|
});
|
|
2315
|
-
function
|
|
2315
|
+
function lr(e, t, r, n) {
|
|
2316
2316
|
const i = r[e]?.type;
|
|
2317
2317
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e]) return t;
|
|
2318
2318
|
if (n === "toAttribute") switch (i) {
|
|
@@ -2338,46 +2338,46 @@ function or(e, t, r, n) {
|
|
|
2338
2338
|
return t;
|
|
2339
2339
|
}
|
|
2340
2340
|
}
|
|
2341
|
-
function
|
|
2341
|
+
function fa(e) {
|
|
2342
2342
|
const t = {};
|
|
2343
2343
|
return e.childNodes.forEach((r) => {
|
|
2344
2344
|
t[r.slot || "default"] = !0;
|
|
2345
2345
|
}), t;
|
|
2346
2346
|
}
|
|
2347
|
-
function
|
|
2348
|
-
let s = class extends
|
|
2347
|
+
function da(e, t, r, n, i, o) {
|
|
2348
|
+
let s = class extends uo {
|
|
2349
2349
|
constructor() {
|
|
2350
2350
|
super(e, r, i), this.$$p_d = t;
|
|
2351
2351
|
}
|
|
2352
2352
|
static get observedAttributes() {
|
|
2353
|
-
return
|
|
2353
|
+
return ur(t).map((a) => (t[a].attribute || a).toLowerCase());
|
|
2354
2354
|
}
|
|
2355
2355
|
};
|
|
2356
|
-
return
|
|
2357
|
-
|
|
2356
|
+
return ur(t).forEach((a) => {
|
|
2357
|
+
fr(s.prototype, a, {
|
|
2358
2358
|
get() {
|
|
2359
2359
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
2360
2360
|
},
|
|
2361
2361
|
set(c) {
|
|
2362
|
-
c =
|
|
2362
|
+
c = lr(a, c, t), this.$$d[a] = c;
|
|
2363
2363
|
var u = this.$$c;
|
|
2364
|
-
u && (
|
|
2364
|
+
u && (Qe(u, a)?.get ? u[a] = c : u.$set({ [a]: c }));
|
|
2365
2365
|
}
|
|
2366
2366
|
});
|
|
2367
2367
|
}), n.forEach((a) => {
|
|
2368
|
-
|
|
2368
|
+
fr(s.prototype, a, { get() {
|
|
2369
2369
|
return this.$$c?.[a];
|
|
2370
2370
|
} });
|
|
2371
2371
|
}), o && (s = o(s)), e.element = s, s;
|
|
2372
2372
|
}
|
|
2373
|
-
var
|
|
2373
|
+
var ha = class extends Event {
|
|
2374
2374
|
constructor(e, t, r, n) {
|
|
2375
2375
|
super("context-request", {
|
|
2376
2376
|
bubbles: !0,
|
|
2377
2377
|
composed: !0
|
|
2378
2378
|
}), b(this, "context", void 0), b(this, "contextTarget", void 0), b(this, "callback", void 0), b(this, "subscribe", void 0), this.context = e, this.contextTarget = t, this.callback = r, this.subscribe = n ?? !1;
|
|
2379
2379
|
}
|
|
2380
|
-
},
|
|
2380
|
+
}, pa = class {
|
|
2381
2381
|
constructor(e, t) {
|
|
2382
2382
|
b(this, "host", void 0), b(this, "context", void 0), b(this, "subscribe", void 0), b(this, "onValue", void 0), b(this, "isConnected", !1), b(this, "unsubscribe", void 0), b(this, "currentValue", void 0), b(this, "handleValue", (r, n) => {
|
|
2383
2383
|
n !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = n), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = r, this.onValue?.(r);
|
|
@@ -2393,12 +2393,12 @@ var la = class extends Event {
|
|
|
2393
2393
|
return this.currentValue;
|
|
2394
2394
|
}
|
|
2395
2395
|
requestValue() {
|
|
2396
|
-
this.host.dispatchEvent(new
|
|
2396
|
+
this.host.dispatchEvent(new ha(this.context, this.host, this.handleValue, this.subscribe));
|
|
2397
2397
|
}
|
|
2398
|
-
},
|
|
2399
|
-
function
|
|
2398
|
+
}, kr = (e) => e, xl = kr(Symbol.for("pie.assessmentToolkit.runtimeContext")), Pl = kr(Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), va = kr(Symbol.for("pie.assessmentToolkit.shellContext")), ga = kr(Symbol.for("pie.assessmentToolkit.regionScopeContext"));
|
|
2399
|
+
function fo(e, t, r) {
|
|
2400
2400
|
let n = !1;
|
|
2401
|
-
const i = new
|
|
2401
|
+
const i = new pa(e, {
|
|
2402
2402
|
context: t,
|
|
2403
2403
|
subscribe: !0,
|
|
2404
2404
|
onValue: (u) => {
|
|
@@ -2422,42 +2422,111 @@ function ao(e, t, r) {
|
|
|
2422
2422
|
globalThis.clearInterval(c), e.removeEventListener("context-provider", o), i.disconnect();
|
|
2423
2423
|
};
|
|
2424
2424
|
}
|
|
2425
|
-
function
|
|
2426
|
-
return
|
|
2425
|
+
function _a(e, t) {
|
|
2426
|
+
return fo(e, va, t);
|
|
2427
2427
|
}
|
|
2428
|
-
function
|
|
2429
|
-
return
|
|
2428
|
+
function ma(e, t) {
|
|
2429
|
+
return fo(e, ga, t);
|
|
2430
2430
|
}
|
|
2431
|
-
var
|
|
2431
|
+
var ii;
|
|
2432
2432
|
(function(e) {
|
|
2433
2433
|
e.TTS_WORD = "tts-word", e.TTS_SENTENCE = "tts-sentence", e.ANNOTATION = "annotation";
|
|
2434
|
-
})(
|
|
2435
|
-
var
|
|
2434
|
+
})(ii || (ii = {}));
|
|
2435
|
+
var We;
|
|
2436
2436
|
(function(e) {
|
|
2437
2437
|
e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange", e.UNDERLINE = "underline";
|
|
2438
|
-
})(
|
|
2439
|
-
function
|
|
2438
|
+
})(We || (We = {}));
|
|
2439
|
+
function ho(e) {
|
|
2440
2440
|
return (...t) => {
|
|
2441
2441
|
console.debug(`[${e}]`, ...t);
|
|
2442
2442
|
};
|
|
2443
2443
|
}
|
|
2444
|
-
var
|
|
2444
|
+
var Nl = ho("I18nService"), Vr = {
|
|
2445
2445
|
assessment: [],
|
|
2446
2446
|
section: [],
|
|
2447
2447
|
item: [],
|
|
2448
2448
|
passage: [],
|
|
2449
2449
|
rubric: [],
|
|
2450
2450
|
element: []
|
|
2451
|
-
},
|
|
2452
|
-
section: [...
|
|
2453
|
-
item: [...
|
|
2454
|
-
passage: [...
|
|
2451
|
+
}, jr = {
|
|
2452
|
+
section: [...Vr.section],
|
|
2453
|
+
item: [...Vr.item],
|
|
2454
|
+
passage: [...Vr.passage]
|
|
2455
2455
|
};
|
|
2456
|
-
function
|
|
2456
|
+
function it(e) {
|
|
2457
|
+
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
2458
|
+
}
|
|
2459
|
+
function De(e, t) {
|
|
2460
|
+
if (e == null) return [];
|
|
2461
|
+
if (!Array.isArray(e)) throw new Error(`Invalid tools config at "${t}": expected an array of tool ids.`);
|
|
2462
|
+
if (e.find((r) => typeof r != "string") !== void 0) throw new Error(`Invalid tools config at "${t}": all entries must be strings.`);
|
|
2463
|
+
return e;
|
|
2464
|
+
}
|
|
2465
|
+
function ba(e) {
|
|
2466
|
+
if (e != null) {
|
|
2467
|
+
if (!it(e)) throw new Error('Invalid tools config at "placement": expected an object with section/item/passage arrays.');
|
|
2468
|
+
return e;
|
|
2469
|
+
}
|
|
2470
|
+
}
|
|
2471
|
+
function wa(e) {
|
|
2472
|
+
if (e != null) {
|
|
2473
|
+
if (!it(e)) throw new Error('Invalid tools config at "policy": expected an object with allowed/blocked arrays.');
|
|
2474
|
+
return e;
|
|
2475
|
+
}
|
|
2476
|
+
}
|
|
2477
|
+
function ya(e, t) {
|
|
2478
|
+
if (t == null) return;
|
|
2479
|
+
if (!it(t)) throw new Error(`Invalid tools config at "providers.${e}": expected an object.`);
|
|
2480
|
+
const r = t;
|
|
2481
|
+
if ("enabled" in r && r.enabled !== void 0 && typeof r.enabled != "boolean") throw new Error(`Invalid tools config at "providers.${e}.enabled": expected a boolean.`);
|
|
2482
|
+
if ("settings" in r && r.settings !== void 0 && !it(r.settings)) throw new Error(`Invalid tools config at "providers.${e}.settings": expected an object.`);
|
|
2483
|
+
if ("provider" in r && r.provider !== void 0 && !it(r.provider)) throw new Error(`Invalid tools config at "providers.${e}.provider": expected an object.`);
|
|
2484
|
+
return r;
|
|
2485
|
+
}
|
|
2486
|
+
function Ta(e) {
|
|
2487
|
+
if (e == null) return {};
|
|
2488
|
+
if (!it(e)) throw new Error('Invalid tools config at "providers": expected an object keyed by tool id.');
|
|
2489
|
+
const t = {};
|
|
2490
|
+
for (const [r, n] of Object.entries(e)) t[r] = ya(r, n);
|
|
2491
|
+
return t;
|
|
2492
|
+
}
|
|
2493
|
+
function po(e) {
|
|
2457
2494
|
const t = e.trim();
|
|
2458
2495
|
return t || "";
|
|
2459
2496
|
}
|
|
2460
|
-
|
|
2497
|
+
function Ve(e) {
|
|
2498
|
+
if (!e || e.length === 0) return [];
|
|
2499
|
+
const t = /* @__PURE__ */ new Set();
|
|
2500
|
+
for (const r of e) {
|
|
2501
|
+
if (typeof r != "string") throw new Error("Invalid tools config: tool list entries must be strings.");
|
|
2502
|
+
const n = po(r);
|
|
2503
|
+
n && t.add(n);
|
|
2504
|
+
}
|
|
2505
|
+
return Array.from(t);
|
|
2506
|
+
}
|
|
2507
|
+
function Sa(e) {
|
|
2508
|
+
if (e != null) {
|
|
2509
|
+
if (e === "on" || e === "off") return e;
|
|
2510
|
+
throw new Error(`Invalid tools config at "qtiEnforcement": expected "on" or "off", got ${JSON.stringify(e)}.`);
|
|
2511
|
+
}
|
|
2512
|
+
}
|
|
2513
|
+
function ka(e) {
|
|
2514
|
+
if (e != null && !it(e)) throw new Error('Invalid tools config: expected an object with "policy", "placement", and "providers".');
|
|
2515
|
+
const t = wa(e?.policy), r = ba(e?.placement), n = Ta(e?.providers), i = Sa(e?.qtiEnforcement), o = {
|
|
2516
|
+
policy: {
|
|
2517
|
+
allowed: Ve(De(t?.allowed, "policy.allowed")),
|
|
2518
|
+
blocked: Ve(De(t?.blocked, "policy.blocked"))
|
|
2519
|
+
},
|
|
2520
|
+
placement: {
|
|
2521
|
+
section: Ve(De(r?.section, "placement.section")).length ? Ve(De(r?.section, "placement.section")) : [...jr.section],
|
|
2522
|
+
item: Ve(De(r?.item, "placement.item")).length ? Ve(De(r?.item, "placement.item")) : [...jr.item],
|
|
2523
|
+
passage: Ve(De(r?.passage, "placement.passage")).length ? Ve(De(r?.passage, "placement.passage")) : [...jr.passage]
|
|
2524
|
+
},
|
|
2525
|
+
providers: n
|
|
2526
|
+
};
|
|
2527
|
+
return i && (o.qtiEnforcement = i), o;
|
|
2528
|
+
}
|
|
2529
|
+
var Aa = [
|
|
2461
2530
|
"assessment",
|
|
2462
2531
|
"section",
|
|
2463
2532
|
"item",
|
|
@@ -2465,10 +2534,10 @@ var pa = [
|
|
|
2465
2534
|
"rubric",
|
|
2466
2535
|
"element"
|
|
2467
2536
|
];
|
|
2468
|
-
function
|
|
2537
|
+
function cr(e, t) {
|
|
2469
2538
|
if (typeof e != "string" || e.trim().length === 0) throw new Error(`Invalid tool registration: "${t}" must be a non-empty string.`);
|
|
2470
2539
|
}
|
|
2471
|
-
var
|
|
2540
|
+
var Ia = [
|
|
2472
2541
|
{
|
|
2473
2542
|
pattern: /<script\b/i,
|
|
2474
2543
|
reason: "contains a <script> tag"
|
|
@@ -2486,17 +2555,17 @@ var ga = [
|
|
|
2486
2555
|
reason: "contains a <foreignObject> element"
|
|
2487
2556
|
}
|
|
2488
2557
|
];
|
|
2489
|
-
function
|
|
2558
|
+
function Ea(e, t, r) {
|
|
2490
2559
|
const n = t.trimStart(), i = n.toLowerCase().startsWith("<svg"), o = /^https?:/i.test(n);
|
|
2491
2560
|
if (/^data:/i.test(n)) throw new Error(`Invalid tool registration "${e}": "${r}" may not be a data: URL.`);
|
|
2492
2561
|
if (!(!i && !o)) {
|
|
2493
|
-
for (const { pattern: s, reason: a } of
|
|
2562
|
+
for (const { pattern: s, reason: a } of Ia) if (s.test(t)) throw new Error(`Invalid tool registration "${e}": "${r}" ${a}. Inline SVG icons must not include scriptable content.`);
|
|
2494
2563
|
}
|
|
2495
2564
|
}
|
|
2496
|
-
function
|
|
2497
|
-
if (
|
|
2498
|
-
if (typeof e.icon == "string" &&
|
|
2499
|
-
const t = e.supportedLevels.find((r) => !
|
|
2565
|
+
function oi(e) {
|
|
2566
|
+
if (cr(e.toolId, "toolId"), cr(e.name, "name"), cr(e.description, "description"), typeof e.icon != "string" && typeof e.icon != "function") throw new Error(`Invalid tool registration "${e.toolId}": "icon" must be a string or function.`);
|
|
2567
|
+
if (typeof e.icon == "string" && Ea(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.`);
|
|
2568
|
+
const t = e.supportedLevels.find((r) => !Aa.includes(r));
|
|
2500
2569
|
if (t) throw new Error(`Invalid tool registration "${e.toolId}": unsupported level "${t}".`);
|
|
2501
2570
|
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)}".`);
|
|
2502
2571
|
if (e.singletonScope !== void 0 && e.singletonScope !== "section") throw new Error(`Invalid tool registration "${e.toolId}": unsupported singletonScope "${String(e.singletonScope)}".`);
|
|
@@ -2505,23 +2574,23 @@ function ti(e) {
|
|
|
2505
2574
|
if (typeof e.isVisibleInContext != "function") throw new Error(`Invalid tool registration "${e.toolId}": "isVisibleInContext" must be a function.`);
|
|
2506
2575
|
if (typeof e.renderToolbar != "function") throw new Error(`Invalid tool registration "${e.toolId}": "renderToolbar" must be a function.`);
|
|
2507
2576
|
}
|
|
2508
|
-
var
|
|
2577
|
+
var $a = class {
|
|
2509
2578
|
constructor() {
|
|
2510
2579
|
b(this, "tools", /* @__PURE__ */ new Map()), b(this, "pnpIndex", /* @__PURE__ */ new Map()), b(this, "componentOverrides", {}), b(this, "moduleLoaders", /* @__PURE__ */ new Map()), b(this, "loadedToolModules", /* @__PURE__ */ new Set()), b(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
|
|
2511
2580
|
}
|
|
2512
2581
|
normalizeToolId(e) {
|
|
2513
|
-
return
|
|
2582
|
+
return po(e);
|
|
2514
2583
|
}
|
|
2515
2584
|
normalizeToolIds(e) {
|
|
2516
2585
|
return e.map((t) => this.normalizeToolId(t));
|
|
2517
2586
|
}
|
|
2518
2587
|
register(e) {
|
|
2519
|
-
if (
|
|
2588
|
+
if (oi(e), this.tools.has(e.toolId)) throw new Error(`Tool '${e.toolId}' is already registered`);
|
|
2520
2589
|
if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const t of e.pnpSupportIds)
|
|
2521
2590
|
this.pnpIndex.has(t) || this.pnpIndex.set(t, /* @__PURE__ */ new Set()), this.pnpIndex.get(t).add(e.toolId);
|
|
2522
2591
|
}
|
|
2523
2592
|
override(e) {
|
|
2524
|
-
if (
|
|
2593
|
+
if (oi(e), !this.tools.has(e.toolId)) throw new Error(`Cannot override non-existent tool '${e.toolId}'`);
|
|
2525
2594
|
const t = this.tools.get(e.toolId);
|
|
2526
2595
|
if (t.pnpSupportIds) for (const r of t.pnpSupportIds) this.pnpIndex.get(r)?.delete(e.toolId);
|
|
2527
2596
|
if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const r of e.pnpSupportIds)
|
|
@@ -2606,7 +2675,7 @@ var ma = class {
|
|
|
2606
2675
|
setToolModuleLoaders(e) {
|
|
2607
2676
|
for (const [t, r] of Object.entries(e))
|
|
2608
2677
|
if (r) {
|
|
2609
|
-
if (
|
|
2678
|
+
if (cr(t, "tool module loader id"), typeof r != "function") throw new Error(`Invalid tool module loader for "${t}": expected a function.`);
|
|
2610
2679
|
this.moduleLoaders.set(t, r);
|
|
2611
2680
|
}
|
|
2612
2681
|
}
|
|
@@ -2648,20 +2717,20 @@ var ma = class {
|
|
|
2648
2717
|
return n.renderToolbar(t, i);
|
|
2649
2718
|
}
|
|
2650
2719
|
};
|
|
2651
|
-
function
|
|
2720
|
+
function vo(e) {
|
|
2652
2721
|
return e.level === "item";
|
|
2653
2722
|
}
|
|
2654
|
-
function
|
|
2723
|
+
function Oa(e) {
|
|
2655
2724
|
return e.level === "passage";
|
|
2656
2725
|
}
|
|
2657
|
-
function
|
|
2726
|
+
function La(e) {
|
|
2658
2727
|
return e.level === "rubric";
|
|
2659
2728
|
}
|
|
2660
|
-
function
|
|
2729
|
+
function go(e) {
|
|
2661
2730
|
return e.level === "element";
|
|
2662
2731
|
}
|
|
2663
|
-
function
|
|
2664
|
-
if (
|
|
2732
|
+
function Sn(e) {
|
|
2733
|
+
if (go(e)) {
|
|
2665
2734
|
const t = e.item.config;
|
|
2666
2735
|
if (!t) return "";
|
|
2667
2736
|
const r = [], n = (a) => a.replace(/<[^>]*>/g, " ").trim(), i = t.elements?.[e.elementId];
|
|
@@ -2676,7 +2745,7 @@ function bn(e) {
|
|
|
2676
2745
|
}
|
|
2677
2746
|
return r.filter(Boolean).join(" ").trim();
|
|
2678
2747
|
}
|
|
2679
|
-
if (
|
|
2748
|
+
if (vo(e)) {
|
|
2680
2749
|
const t = e.item;
|
|
2681
2750
|
if (!t?.config) return "";
|
|
2682
2751
|
const r = t.config, n = [], i = (c) => c.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2690,12 +2759,12 @@ function bn(e) {
|
|
|
2690
2759
|
for (const u of Object.values(c))
|
|
2691
2760
|
if (typeof u == "string" && n.push(i(u)), Array.isArray(u)) {
|
|
2692
2761
|
for (const f of u) if (f && typeof f == "object")
|
|
2693
|
-
for (const
|
|
2762
|
+
for (const p of Object.values(f)) typeof p == "string" && n.push(i(p));
|
|
2694
2763
|
}
|
|
2695
2764
|
}
|
|
2696
2765
|
return n.filter(Boolean).join(" ").trim();
|
|
2697
2766
|
}
|
|
2698
|
-
if (
|
|
2767
|
+
if (Oa(e)) {
|
|
2699
2768
|
const t = e.passage;
|
|
2700
2769
|
if (!t?.config) return "";
|
|
2701
2770
|
const r = t.config, n = [], i = (c) => c.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2709,19 +2778,19 @@ function bn(e) {
|
|
|
2709
2778
|
for (const u of Object.values(c))
|
|
2710
2779
|
if (typeof u == "string" && n.push(i(u)), Array.isArray(u)) {
|
|
2711
2780
|
for (const f of u) if (f && typeof f == "object")
|
|
2712
|
-
for (const
|
|
2781
|
+
for (const p of Object.values(f)) typeof p == "string" && n.push(i(p));
|
|
2713
2782
|
}
|
|
2714
2783
|
}
|
|
2715
2784
|
return n.filter(Boolean).join(" ").trim();
|
|
2716
2785
|
}
|
|
2717
|
-
if (
|
|
2786
|
+
if (La(e)) {
|
|
2718
2787
|
const t = e.rubricBlock;
|
|
2719
2788
|
return t.passage?.config ? (t.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (t.content || "").replace(/<[^>]*>/g, " ").trim();
|
|
2720
2789
|
}
|
|
2721
2790
|
return "";
|
|
2722
2791
|
}
|
|
2723
|
-
function
|
|
2724
|
-
const t =
|
|
2792
|
+
function Ar(e) {
|
|
2793
|
+
const t = Sn(e);
|
|
2725
2794
|
return [
|
|
2726
2795
|
/<math[>\s]/i,
|
|
2727
2796
|
/\\\[([^\]]+)\\\]/,
|
|
@@ -2731,7 +2800,7 @@ function Tr(e) {
|
|
|
2731
2800
|
/\d+\s*[+\-*/=]\s*\d+/
|
|
2732
2801
|
].some((r) => r.test(t));
|
|
2733
2802
|
}
|
|
2734
|
-
function
|
|
2803
|
+
function Ra(e) {
|
|
2735
2804
|
const t = [
|
|
2736
2805
|
"pie-multiple-choice",
|
|
2737
2806
|
"pie-inline-choice",
|
|
@@ -2740,7 +2809,7 @@ function wa(e) {
|
|
|
2740
2809
|
"inline-choice",
|
|
2741
2810
|
"select-text"
|
|
2742
2811
|
];
|
|
2743
|
-
if (
|
|
2812
|
+
if (go(e)) {
|
|
2744
2813
|
const r = e.item.config;
|
|
2745
2814
|
if (!r?.models) return !1;
|
|
2746
2815
|
const n = (Array.isArray(r.models) ? r.models : Object.values(r.models)).find((o) => o && typeof o == "object" && o.id === e.elementId);
|
|
@@ -2748,7 +2817,7 @@ function wa(e) {
|
|
|
2748
2817
|
const i = n.element || "";
|
|
2749
2818
|
return t.includes(i);
|
|
2750
2819
|
}
|
|
2751
|
-
if (
|
|
2820
|
+
if (vo(e)) {
|
|
2752
2821
|
const r = e.item.config?.models;
|
|
2753
2822
|
return (Array.isArray(r) ? r : r && typeof r == "object" ? Object.values(r) : []).some((n) => {
|
|
2754
2823
|
if (!n || typeof n != "object") return !1;
|
|
@@ -2758,11 +2827,11 @@ function wa(e) {
|
|
|
2758
2827
|
}
|
|
2759
2828
|
return !1;
|
|
2760
2829
|
}
|
|
2761
|
-
function
|
|
2762
|
-
return
|
|
2830
|
+
function Ir(e) {
|
|
2831
|
+
return Sn(e).trim().length >= 10;
|
|
2763
2832
|
}
|
|
2764
|
-
function
|
|
2765
|
-
const t =
|
|
2833
|
+
function Ma(e) {
|
|
2834
|
+
const t = Sn(e);
|
|
2766
2835
|
return [
|
|
2767
2836
|
/chemistry|chemical|element|atom|molecule|compound/i,
|
|
2768
2837
|
/periodic\s+table/i,
|
|
@@ -2772,23 +2841,23 @@ function Ta(e) {
|
|
|
2772
2841
|
/physics|force|energy|velocity|acceleration/i
|
|
2773
2842
|
].some((r) => r.test(t));
|
|
2774
2843
|
}
|
|
2775
|
-
var
|
|
2844
|
+
var Ca = [
|
|
2776
2845
|
"assessment",
|
|
2777
2846
|
"section",
|
|
2778
2847
|
"item",
|
|
2779
2848
|
"passage",
|
|
2780
2849
|
"rubric"
|
|
2781
|
-
],
|
|
2782
|
-
function
|
|
2783
|
-
return
|
|
2850
|
+
], xa = new Set(Ca);
|
|
2851
|
+
function Pa(e) {
|
|
2852
|
+
return xa.has(e);
|
|
2784
2853
|
}
|
|
2785
|
-
function
|
|
2854
|
+
function kn(e, t, r) {
|
|
2786
2855
|
const n = e.trim(), i = r.trim();
|
|
2787
2856
|
if (!n || !i) throw new Error("Tool instance ids require non-empty tool and scope ids");
|
|
2788
|
-
if (!
|
|
2857
|
+
if (!Pa(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
|
|
2789
2858
|
return `${n}:${t}:${i}`;
|
|
2790
2859
|
}
|
|
2791
|
-
var
|
|
2860
|
+
var Na = class {
|
|
2792
2861
|
constructor() {
|
|
2793
2862
|
b(this, "providerId", "desmos-calculator"), b(this, "providerName", "Desmos Calculator"), b(this, "category", "calculator"), b(this, "version", "1.10"), b(this, "requiresAuth", !0), b(this, "desmosProvider", null), b(this, "config", null);
|
|
2794
2863
|
}
|
|
@@ -2865,7 +2934,7 @@ var Ia = class {
|
|
|
2865
2934
|
destroy() {
|
|
2866
2935
|
this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
|
|
2867
2936
|
}
|
|
2868
|
-
},
|
|
2937
|
+
}, Da = (e, t) => {
|
|
2869
2938
|
const r = t?.useSentenceSegmenter !== !1;
|
|
2870
2939
|
try {
|
|
2871
2940
|
if (!r) throw new Error("Segmenter disabled by policy");
|
|
@@ -2892,14 +2961,14 @@ var Ia = class {
|
|
|
2892
2961
|
text: e,
|
|
2893
2962
|
offset: 0
|
|
2894
2963
|
}];
|
|
2895
|
-
},
|
|
2964
|
+
}, Va = class {
|
|
2896
2965
|
constructor() {
|
|
2897
2966
|
b(this, "providerId", "browser"), b(this, "providerName", "Browser Speech Synthesis"), b(this, "version", "1.0.0");
|
|
2898
2967
|
}
|
|
2899
2968
|
async initialize(e) {
|
|
2900
2969
|
if (typeof window > "u") throw new Error("BrowserTTSProvider requires browser environment");
|
|
2901
2970
|
if (!("speechSynthesis" in window)) throw new Error("Browser does not support Speech Synthesis API");
|
|
2902
|
-
return new
|
|
2971
|
+
return new ja(e);
|
|
2903
2972
|
}
|
|
2904
2973
|
supportsFeature(e) {
|
|
2905
2974
|
return !0;
|
|
@@ -2916,7 +2985,7 @@ var Ia = class {
|
|
|
2916
2985
|
}
|
|
2917
2986
|
destroy() {
|
|
2918
2987
|
}
|
|
2919
|
-
},
|
|
2988
|
+
}, ja = class {
|
|
2920
2989
|
constructor(e) {
|
|
2921
2990
|
b(this, "utterance", null), b(this, "config", null), b(this, "_isPlaying", !1), b(this, "_isPaused", !1), b(this, "speakRunId", 0), b(this, "onWordBoundary", void 0), this.config = e;
|
|
2922
2991
|
}
|
|
@@ -2986,7 +3055,7 @@ var Ia = class {
|
|
|
2986
3055
|
}
|
|
2987
3056
|
segmentSentences(e) {
|
|
2988
3057
|
const t = this.getSegmentationPolicy();
|
|
2989
|
-
return
|
|
3058
|
+
return Da(e, {
|
|
2990
3059
|
locale: t.locale,
|
|
2991
3060
|
useSentenceSegmenter: t.useSentenceSegmenter
|
|
2992
3061
|
});
|
|
@@ -3029,8 +3098,8 @@ var Ia = class {
|
|
|
3029
3098
|
r === this.speakRunId && (this._isPaused = !1);
|
|
3030
3099
|
}, this.utterance.onboundary = (o) => {
|
|
3031
3100
|
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;
|
|
3032
|
-
const s = Math.max(0, Math.min(o.charIndex, Math.max(0, e.length - 1))), a = Number(o.charLength || 0), c = this.inferWordLength(e, s), u = Number.isFinite(a) && a > 0 && a <= 80 && s + a <= e.length ? a : c, f = e.substring(s, Math.min(e.length, s + u)).trim(),
|
|
3033
|
-
console.log("[BrowserProvider] Calling onWordBoundary with word:", f, "at position:",
|
|
3101
|
+
const s = Math.max(0, Math.min(o.charIndex, Math.max(0, e.length - 1))), a = Number(o.charLength || 0), c = this.inferWordLength(e, s), u = Number.isFinite(a) && a > 0 && a <= 80 && s + a <= e.length ? a : c, f = e.substring(s, Math.min(e.length, s + u)).trim(), p = t + s;
|
|
3102
|
+
console.log("[BrowserProvider] Calling onWordBoundary with word:", f, "at position:", p), this.onWordBoundary(f, p, u);
|
|
3034
3103
|
}, speechSynthesis.speak(this.utterance);
|
|
3035
3104
|
});
|
|
3036
3105
|
}
|
|
@@ -3055,7 +3124,7 @@ var Ia = class {
|
|
|
3055
3124
|
...e.providerOptions || {}
|
|
3056
3125
|
});
|
|
3057
3126
|
}
|
|
3058
|
-
},
|
|
3127
|
+
}, za = class {
|
|
3059
3128
|
async emitTelemetry(e, t) {
|
|
3060
3129
|
try {
|
|
3061
3130
|
await this.config?.onTelemetry?.(e, t);
|
|
@@ -3087,7 +3156,7 @@ var Ia = class {
|
|
|
3087
3156
|
}
|
|
3088
3157
|
async _initializeBrowserTTS(e) {
|
|
3089
3158
|
if (typeof window > "u" || !("speechSynthesis" in window)) throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
|
|
3090
|
-
this.ttsProvider = new
|
|
3159
|
+
this.ttsProvider = new Va(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
|
|
3091
3160
|
}
|
|
3092
3161
|
async _initializeServerTTS(e) {
|
|
3093
3162
|
if (!e.apiEndpoint) throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
|
|
@@ -3145,7 +3214,7 @@ var Ia = class {
|
|
|
3145
3214
|
destroy() {
|
|
3146
3215
|
this.ttsProvider && (this.ttsProvider.destroy(), this.ttsProvider = null), this.config = null, console.log("[TTSToolProvider] Destroyed");
|
|
3147
3216
|
}
|
|
3148
|
-
},
|
|
3217
|
+
}, Wa = /* @__PURE__ */ new Set([
|
|
3149
3218
|
"annotation-xml",
|
|
3150
3219
|
"color-profile",
|
|
3151
3220
|
"font-face",
|
|
@@ -3154,16 +3223,16 @@ var Ia = class {
|
|
|
3154
3223
|
"font-face-format",
|
|
3155
3224
|
"font-face-name",
|
|
3156
3225
|
"missing-glyph"
|
|
3157
|
-
]),
|
|
3226
|
+
]), Ha = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, Ba = (e, t = "custom element tag") => {
|
|
3158
3227
|
if (!e || typeof e != "string") throw new Error(`Invalid ${t}: expected a non-empty string`);
|
|
3159
3228
|
const r = e.trim();
|
|
3160
3229
|
if (!r) throw new Error(`Invalid ${t}: tag is empty`);
|
|
3161
3230
|
if (r !== r.toLowerCase()) throw new Error(`Invalid ${t} "${r}": custom element names must be lowercase`);
|
|
3162
3231
|
if (!r.includes("-")) throw new Error(`Invalid ${t} "${r}": custom element names must include a hyphen`);
|
|
3163
|
-
if (
|
|
3164
|
-
if (!
|
|
3232
|
+
if (Wa.has(r)) throw new Error(`Invalid ${t} "${r}": this name is reserved by the HTML spec`);
|
|
3233
|
+
if (!Ha.test(r)) throw new Error(`Invalid ${t} "${r}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
|
|
3165
3234
|
return r;
|
|
3166
|
-
},
|
|
3235
|
+
}, _o = {
|
|
3167
3236
|
calculator: "pie-tool-calculator",
|
|
3168
3237
|
textToSpeech: "pie-tool-text-to-speech",
|
|
3169
3238
|
ruler: "pie-tool-ruler",
|
|
@@ -3176,22 +3245,22 @@ var Ia = class {
|
|
|
3176
3245
|
annotationToolbar: "pie-tool-annotation-toolbar",
|
|
3177
3246
|
graph: "pie-tool-graph",
|
|
3178
3247
|
periodicTable: "pie-tool-periodic-table"
|
|
3179
|
-
},
|
|
3180
|
-
const i =
|
|
3248
|
+
}, qa = (e, t) => Ba(t?.toolTagMap?.[e] ?? _o[e] ?? e, `tool component tag for "${e}"`), Fa = (e) => document.createElement(e), Ae = (e, t, r, n) => {
|
|
3249
|
+
const i = qa(e, n), o = n?.toolComponentFactories?.[e] ?? n?.toolComponentFactory;
|
|
3181
3250
|
return o ? o({
|
|
3182
3251
|
toolId: e,
|
|
3183
3252
|
tagName: i,
|
|
3184
3253
|
context: t,
|
|
3185
3254
|
toolbarContext: r
|
|
3186
|
-
}) :
|
|
3187
|
-
},
|
|
3255
|
+
}) : Fa(i);
|
|
3256
|
+
}, Ua = {
|
|
3188
3257
|
toolId: "calculator",
|
|
3189
3258
|
name: "Calculator",
|
|
3190
3259
|
description: "Multi-type calculator (basic, scientific, graphing)",
|
|
3191
3260
|
icon: "calculator",
|
|
3192
3261
|
provider: {
|
|
3193
3262
|
getProviderId: (e) => typeof e?.provider?.id == "string" && e.provider.id.length > 0 ? e.provider.id : "calculator-desmos",
|
|
3194
|
-
createProvider: () => new
|
|
3263
|
+
createProvider: () => new Na(),
|
|
3195
3264
|
getInitConfig: (e) => e?.provider?.init ?? {},
|
|
3196
3265
|
getAuthFetcher: (e) => {
|
|
3197
3266
|
const t = e?.provider?.runtime?.authFetcher;
|
|
@@ -3214,10 +3283,10 @@ var Ia = class {
|
|
|
3214
3283
|
"scientificCalculator"
|
|
3215
3284
|
],
|
|
3216
3285
|
isVisibleInContext(e) {
|
|
3217
|
-
return
|
|
3286
|
+
return Ar(e);
|
|
3218
3287
|
},
|
|
3219
3288
|
renderToolbar(e, t) {
|
|
3220
|
-
const r =
|
|
3289
|
+
const r = kn(this.toolId, t.scope.level, t.scope.scopeId), n = t.componentOverrides, i = Ae(this.toolId, e, t, n);
|
|
3221
3290
|
i.setAttribute("tool-id", r), i.toolkitCoordinator = t.toolkitCoordinator;
|
|
3222
3291
|
const o = {
|
|
3223
3292
|
toolId: this.toolId,
|
|
@@ -3257,13 +3326,13 @@ var Ia = class {
|
|
|
3257
3326
|
}
|
|
3258
3327
|
};
|
|
3259
3328
|
}
|
|
3260
|
-
},
|
|
3329
|
+
}, Ga = /* @__PURE__ */ new Set([
|
|
3261
3330
|
"reserved-row",
|
|
3262
3331
|
"expanding-row",
|
|
3263
3332
|
"floating-overlay",
|
|
3264
3333
|
"left-aligned"
|
|
3265
|
-
]),
|
|
3266
|
-
if (!Array.isArray(e)) return [...
|
|
3334
|
+
]), si = (e) => e && typeof e == "object" ? e : {}, Ka = (e) => e === "polly" || e === "google" || e === "server", ee = (e, t) => e === void 0 ? t : e, mr = (e, t = "left-aligned") => typeof e == "string" && Ga.has(e) ? e : t, ai = Object.freeze([0.8, 1.25]), zr = (e) => {
|
|
3335
|
+
if (!Array.isArray(e)) return [...ai];
|
|
3267
3336
|
if (e.length === 0) return [];
|
|
3268
3337
|
const t = /* @__PURE__ */ new Set();
|
|
3269
3338
|
for (const r of e) {
|
|
@@ -3271,13 +3340,13 @@ var Ia = class {
|
|
|
3271
3340
|
const n = Math.round(r * 100) / 100;
|
|
3272
3341
|
n !== 1 && t.add(n);
|
|
3273
3342
|
}
|
|
3274
|
-
return t.size ? Array.from(t) : [...
|
|
3275
|
-
},
|
|
3343
|
+
return t.size ? Array.from(t) : [...ai];
|
|
3344
|
+
}, Ya = (e) => {
|
|
3276
3345
|
const t = {
|
|
3277
3346
|
...e,
|
|
3278
|
-
layoutMode:
|
|
3347
|
+
layoutMode: mr(e.layoutMode)
|
|
3279
3348
|
}, r = e.backend || "browser";
|
|
3280
|
-
if (!
|
|
3349
|
+
if (!Ka(r)) return t;
|
|
3281
3350
|
const n = {
|
|
3282
3351
|
...t,
|
|
3283
3352
|
apiEndpoint: ee(t.apiEndpoint, "/api/tts"),
|
|
@@ -3298,14 +3367,14 @@ var Ia = class {
|
|
|
3298
3367
|
...n,
|
|
3299
3368
|
defaultVoice: ee(n.defaultVoice, "en-US-Wavenet-A")
|
|
3300
3369
|
} : n;
|
|
3301
|
-
},
|
|
3302
|
-
const t =
|
|
3303
|
-
return
|
|
3370
|
+
}, Wr = (e) => {
|
|
3371
|
+
const t = si(e), r = si(e?.settings);
|
|
3372
|
+
return Ya({
|
|
3304
3373
|
...t,
|
|
3305
3374
|
...r
|
|
3306
3375
|
});
|
|
3307
|
-
},
|
|
3308
|
-
const t =
|
|
3376
|
+
}, tn = (e) => e.backend || "browser", mo = (e, t) => t === "polly" || t === "google" ? t : e.serverProvider || e.provider, bo = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), Xa = (e) => {
|
|
3377
|
+
const t = tn(e), r = mo(e, t), n = bo(e, r);
|
|
3309
3378
|
return {
|
|
3310
3379
|
voice: e.defaultVoice,
|
|
3311
3380
|
rate: e.rate,
|
|
@@ -3329,8 +3398,8 @@ var Ia = class {
|
|
|
3329
3398
|
includeAuthOnAssetFetch: e.includeAuthOnAssetFetch,
|
|
3330
3399
|
validateEndpoint: e.validateEndpoint
|
|
3331
3400
|
};
|
|
3332
|
-
},
|
|
3333
|
-
switch (
|
|
3401
|
+
}, wo = (e) => mr(e.layoutMode), Ja = (e) => {
|
|
3402
|
+
switch (wo(e)) {
|
|
3334
3403
|
case "reserved-row":
|
|
3335
3404
|
return {
|
|
3336
3405
|
mount: "before-buttons",
|
|
@@ -3356,21 +3425,21 @@ var Ia = class {
|
|
|
3356
3425
|
}
|
|
3357
3426
|
};
|
|
3358
3427
|
}
|
|
3359
|
-
},
|
|
3428
|
+
}, Mt = /* @__PURE__ */ new Map(), Qa = "__pieToolElementUnmount", li = "pie-tool-active-change", Za = {
|
|
3360
3429
|
toolId: "textToSpeech",
|
|
3361
3430
|
name: "Text to Speech",
|
|
3362
3431
|
description: "Read content aloud",
|
|
3363
3432
|
icon: "volume-up",
|
|
3364
3433
|
provider: {
|
|
3365
3434
|
getProviderId: () => "tts",
|
|
3366
|
-
createProvider: (e) => new
|
|
3435
|
+
createProvider: (e) => new za(tn(Wr(e))),
|
|
3367
3436
|
getInitConfig: (e) => {
|
|
3368
|
-
const t =
|
|
3437
|
+
const t = Wr(e), r = tn(t), n = mo(t, r);
|
|
3369
3438
|
return {
|
|
3370
3439
|
backend: r,
|
|
3371
3440
|
serverProvider: n,
|
|
3372
|
-
transportMode:
|
|
3373
|
-
...
|
|
3441
|
+
transportMode: bo(t, n),
|
|
3442
|
+
...Xa(t)
|
|
3374
3443
|
};
|
|
3375
3444
|
},
|
|
3376
3445
|
getAuthFetcher: (e) => {
|
|
@@ -3379,9 +3448,9 @@ var Ia = class {
|
|
|
3379
3448
|
},
|
|
3380
3449
|
sanitizeConfig: (e) => {
|
|
3381
3450
|
const t = e.settings && typeof e.settings == "object" ? { ...e.settings } : void 0;
|
|
3382
|
-
t && "layoutMode" in t && (t.layoutMode =
|
|
3451
|
+
t && "layoutMode" in t && (t.layoutMode = mr(t.layoutMode)), t && "speedOptions" in t && (t.speedOptions = zr(t.speedOptions));
|
|
3383
3452
|
const r = { ...e };
|
|
3384
|
-
return "layoutMode" in r && (r.layoutMode =
|
|
3453
|
+
return "layoutMode" in r && (r.layoutMode = mr(r.layoutMode)), "speedOptions" in r && (r.speedOptions = zr(r.speedOptions)), t && (r.settings = t), r;
|
|
3385
3454
|
},
|
|
3386
3455
|
lazy: !0
|
|
3387
3456
|
},
|
|
@@ -3393,17 +3462,17 @@ var Ia = class {
|
|
|
3393
3462
|
"speechOutput"
|
|
3394
3463
|
],
|
|
3395
3464
|
isVisibleInContext(e) {
|
|
3396
|
-
return
|
|
3465
|
+
return Ir(e);
|
|
3397
3466
|
},
|
|
3398
3467
|
renderToolbar(e, t) {
|
|
3399
|
-
const r = () =>
|
|
3468
|
+
const r = () => Wr(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), n = () => zr(r().speedOptions), i = () => wo(r()), o = () => Ja(r()), s = kn(this.toolId, t.scope.level, t.scope.scopeId), a = () => {
|
|
3400
3469
|
const f = t.ui?.size;
|
|
3401
3470
|
return f === "sm" || f === "lg" ? f : "md";
|
|
3402
3471
|
}, c = () => {
|
|
3403
|
-
let f =
|
|
3404
|
-
return f && typeof f.isConnected == "boolean" && !f.isConnected && (
|
|
3405
|
-
|
|
3406
|
-
},
|
|
3472
|
+
let f = Mt.get(s);
|
|
3473
|
+
return f && typeof f.isConnected == "boolean" && !f.isConnected && (Mt.delete(s), f = void 0), f || (f = document.createElement("pie-tool-tts-inline"), f[Qa] = () => {
|
|
3474
|
+
Mt.get(s) === f && Mt.delete(s);
|
|
3475
|
+
}, Mt.set(s, f)), f.setAttribute("tool-id", s), f.setAttribute("catalog-id", t.catalogId || t.itemId), f.setAttribute("language", t.language || "en-US"), f.setAttribute("size", a()), f.setAttribute("layout-mode", i()), f.speedOptions = n(), f;
|
|
3407
3476
|
}, u = o();
|
|
3408
3477
|
return {
|
|
3409
3478
|
toolId: this.toolId,
|
|
@@ -3417,12 +3486,12 @@ var Ia = class {
|
|
|
3417
3486
|
} }
|
|
3418
3487
|
}],
|
|
3419
3488
|
subscribeActive: (f) => {
|
|
3420
|
-
const
|
|
3489
|
+
const p = c(), d = (h) => {
|
|
3421
3490
|
const g = h.detail;
|
|
3422
3491
|
f(g?.active === !0);
|
|
3423
3492
|
};
|
|
3424
|
-
return
|
|
3425
|
-
|
|
3493
|
+
return p.addEventListener(li, d), () => {
|
|
3494
|
+
p.removeEventListener(li, d);
|
|
3426
3495
|
};
|
|
3427
3496
|
},
|
|
3428
3497
|
sync: () => {
|
|
@@ -3433,7 +3502,7 @@ var Ia = class {
|
|
|
3433
3502
|
}
|
|
3434
3503
|
};
|
|
3435
3504
|
function Me(e, t) {
|
|
3436
|
-
const r =
|
|
3505
|
+
const r = kn(e, t.scope.level, t.scope.scopeId);
|
|
3437
3506
|
return {
|
|
3438
3507
|
fullToolId: r,
|
|
3439
3508
|
isActive: () => t.isToolVisible(r),
|
|
@@ -3447,10 +3516,10 @@ function Ce(e) {
|
|
|
3447
3516
|
const t = e.isActive();
|
|
3448
3517
|
e.button.active = t, e.overlay.visible = t, e.onActiveChange?.(t);
|
|
3449
3518
|
}
|
|
3450
|
-
function
|
|
3519
|
+
function An(e, t) {
|
|
3451
3520
|
e.setAttribute("data-pie-tool-surface", t);
|
|
3452
3521
|
}
|
|
3453
|
-
var
|
|
3522
|
+
var el = {
|
|
3454
3523
|
toolId: "ruler",
|
|
3455
3524
|
name: "Ruler",
|
|
3456
3525
|
description: "On-screen ruler for measurements",
|
|
@@ -3462,7 +3531,7 @@ var Fa = {
|
|
|
3462
3531
|
],
|
|
3463
3532
|
pnpSupportIds: ["ruler", "measurement"],
|
|
3464
3533
|
isVisibleInContext(e) {
|
|
3465
|
-
return
|
|
3534
|
+
return Ar(e);
|
|
3466
3535
|
},
|
|
3467
3536
|
renderToolbar(e, t) {
|
|
3468
3537
|
const r = Me(this.toolId, t), n = {
|
|
@@ -3475,7 +3544,7 @@ var Fa = {
|
|
|
3475
3544
|
onClick: () => t.toggleTool(this.toolId),
|
|
3476
3545
|
active: r.isActive()
|
|
3477
3546
|
}, i = t.componentOverrides ?? {}, o = Ae(this.toolId, e, t, i);
|
|
3478
|
-
return o.setAttribute("tool-id", r.fullToolId),
|
|
3547
|
+
return o.setAttribute("tool-id", r.fullToolId), An(o, "frameless"), {
|
|
3479
3548
|
toolId: this.toolId,
|
|
3480
3549
|
button: n,
|
|
3481
3550
|
elements: [{
|
|
@@ -3492,7 +3561,7 @@ var Fa = {
|
|
|
3492
3561
|
subscribeActive: r.subscribeActive
|
|
3493
3562
|
};
|
|
3494
3563
|
}
|
|
3495
|
-
},
|
|
3564
|
+
}, tl = {
|
|
3496
3565
|
toolId: "protractor",
|
|
3497
3566
|
name: "Protractor",
|
|
3498
3567
|
description: "On-screen protractor for angle measurements",
|
|
@@ -3504,7 +3573,7 @@ var Fa = {
|
|
|
3504
3573
|
],
|
|
3505
3574
|
pnpSupportIds: ["protractor", "angleMeasurement"],
|
|
3506
3575
|
isVisibleInContext(e) {
|
|
3507
|
-
return
|
|
3576
|
+
return Ar(e);
|
|
3508
3577
|
},
|
|
3509
3578
|
renderToolbar(e, t) {
|
|
3510
3579
|
const r = Me(this.toolId, t), n = {
|
|
@@ -3517,7 +3586,7 @@ var Fa = {
|
|
|
3517
3586
|
onClick: () => t.toggleTool(this.toolId),
|
|
3518
3587
|
active: r.isActive()
|
|
3519
3588
|
}, i = t.componentOverrides ?? {}, o = Ae(this.toolId, e, t, i);
|
|
3520
|
-
return o.setAttribute("tool-id", r.fullToolId),
|
|
3589
|
+
return o.setAttribute("tool-id", r.fullToolId), An(o, "frameless"), {
|
|
3521
3590
|
toolId: this.toolId,
|
|
3522
3591
|
button: n,
|
|
3523
3592
|
elements: [{
|
|
@@ -3534,7 +3603,7 @@ var Fa = {
|
|
|
3534
3603
|
subscribeActive: r.subscribeActive
|
|
3535
3604
|
};
|
|
3536
3605
|
}
|
|
3537
|
-
},
|
|
3606
|
+
}, rl = {
|
|
3538
3607
|
toolId: "answerEliminator",
|
|
3539
3608
|
name: "Answer Eliminator",
|
|
3540
3609
|
description: "Strike through answer choices",
|
|
@@ -3547,7 +3616,7 @@ var Fa = {
|
|
|
3547
3616
|
"choiceMasking"
|
|
3548
3617
|
],
|
|
3549
3618
|
isVisibleInContext(e) {
|
|
3550
|
-
return
|
|
3619
|
+
return Ra(e);
|
|
3551
3620
|
},
|
|
3552
3621
|
renderToolbar(e, t) {
|
|
3553
3622
|
const r = Me(this.toolId, t), n = t.componentOverrides ?? {}, i = Ae(this.toolId, e, t, n);
|
|
@@ -3581,7 +3650,7 @@ var Fa = {
|
|
|
3581
3650
|
subscribeActive: r.subscribeActive
|
|
3582
3651
|
};
|
|
3583
3652
|
}
|
|
3584
|
-
},
|
|
3653
|
+
}, nl = {
|
|
3585
3654
|
toolId: "highlighter",
|
|
3586
3655
|
name: "Highlighter",
|
|
3587
3656
|
description: "Highlight text",
|
|
@@ -3599,7 +3668,7 @@ var Fa = {
|
|
|
3599
3668
|
"annotation"
|
|
3600
3669
|
],
|
|
3601
3670
|
isVisibleInContext(e) {
|
|
3602
|
-
return
|
|
3671
|
+
return Ir(e);
|
|
3603
3672
|
},
|
|
3604
3673
|
renderToolbar(e, t) {
|
|
3605
3674
|
const r = Me(this.toolId, t), n = {
|
|
@@ -3632,7 +3701,7 @@ var Fa = {
|
|
|
3632
3701
|
subscribeActive: r.subscribeActive
|
|
3633
3702
|
};
|
|
3634
3703
|
}
|
|
3635
|
-
},
|
|
3704
|
+
}, il = {
|
|
3636
3705
|
toolId: "lineReader",
|
|
3637
3706
|
name: "Line Reader",
|
|
3638
3707
|
description: "Reading guide overlay",
|
|
@@ -3651,7 +3720,7 @@ var Fa = {
|
|
|
3651
3720
|
"trackingGuide"
|
|
3652
3721
|
],
|
|
3653
3722
|
isVisibleInContext(e) {
|
|
3654
|
-
return
|
|
3723
|
+
return Ir(e);
|
|
3655
3724
|
},
|
|
3656
3725
|
renderToolbar(e, t) {
|
|
3657
3726
|
const r = Me(this.toolId, t), n = {
|
|
@@ -3664,7 +3733,7 @@ var Fa = {
|
|
|
3664
3733
|
onClick: () => t.toggleTool(this.toolId),
|
|
3665
3734
|
active: r.isActive()
|
|
3666
3735
|
}, i = t.componentOverrides ?? {}, o = Ae(this.toolId, e, t, i);
|
|
3667
|
-
return o.setAttribute("tool-id", r.fullToolId),
|
|
3736
|
+
return o.setAttribute("tool-id", r.fullToolId), An(o, "frameless"), {
|
|
3668
3737
|
toolId: this.toolId,
|
|
3669
3738
|
button: n,
|
|
3670
3739
|
elements: [{
|
|
@@ -3681,7 +3750,7 @@ var Fa = {
|
|
|
3681
3750
|
subscribeActive: r.subscribeActive
|
|
3682
3751
|
};
|
|
3683
3752
|
}
|
|
3684
|
-
},
|
|
3753
|
+
}, ol = {
|
|
3685
3754
|
toolId: "theme",
|
|
3686
3755
|
name: "Theme",
|
|
3687
3756
|
description: "Accessible themes and contrast",
|
|
@@ -3737,7 +3806,7 @@ var Fa = {
|
|
|
3737
3806
|
subscribeActive: r.subscribeActive
|
|
3738
3807
|
};
|
|
3739
3808
|
}
|
|
3740
|
-
},
|
|
3809
|
+
}, sl = {
|
|
3741
3810
|
toolId: "annotationToolbar",
|
|
3742
3811
|
name: "Highlighter",
|
|
3743
3812
|
description: "Highlight and annotate text",
|
|
@@ -3758,7 +3827,7 @@ var Fa = {
|
|
|
3758
3827
|
"annotation"
|
|
3759
3828
|
],
|
|
3760
3829
|
isVisibleInContext(e) {
|
|
3761
|
-
return
|
|
3830
|
+
return Ir(e);
|
|
3762
3831
|
},
|
|
3763
3832
|
renderToolbar(e, t) {
|
|
3764
3833
|
const r = Me(this.toolId, t), n = {
|
|
@@ -3788,7 +3857,7 @@ var Fa = {
|
|
|
3788
3857
|
subscribeActive: r.subscribeActive
|
|
3789
3858
|
};
|
|
3790
3859
|
}
|
|
3791
|
-
},
|
|
3860
|
+
}, al = {
|
|
3792
3861
|
toolId: "graph",
|
|
3793
3862
|
name: "Graph",
|
|
3794
3863
|
description: "Graphing calculator and coordinate plane",
|
|
@@ -3801,7 +3870,7 @@ var Fa = {
|
|
|
3801
3870
|
"graphingTool"
|
|
3802
3871
|
],
|
|
3803
3872
|
isVisibleInContext(e) {
|
|
3804
|
-
return
|
|
3873
|
+
return Ar(e);
|
|
3805
3874
|
},
|
|
3806
3875
|
renderToolbar(e, t) {
|
|
3807
3876
|
const r = Me(this.toolId, t), n = {
|
|
@@ -3841,7 +3910,7 @@ var Fa = {
|
|
|
3841
3910
|
subscribeActive: r.subscribeActive
|
|
3842
3911
|
};
|
|
3843
3912
|
}
|
|
3844
|
-
},
|
|
3913
|
+
}, ll = {
|
|
3845
3914
|
toolId: "periodicTable",
|
|
3846
3915
|
name: "Periodic Table",
|
|
3847
3916
|
description: "Chemistry periodic table reference",
|
|
@@ -3853,7 +3922,7 @@ var Fa = {
|
|
|
3853
3922
|
"elementReference"
|
|
3854
3923
|
],
|
|
3855
3924
|
isVisibleInContext(e) {
|
|
3856
|
-
return
|
|
3925
|
+
return Ma(e);
|
|
3857
3926
|
},
|
|
3858
3927
|
renderToolbar(e, t) {
|
|
3859
3928
|
const r = Me(this.toolId, t), n = {
|
|
@@ -3893,54 +3962,54 @@ var Fa = {
|
|
|
3893
3962
|
subscribeActive: r.subscribeActive
|
|
3894
3963
|
};
|
|
3895
3964
|
}
|
|
3896
|
-
},
|
|
3897
|
-
Na,
|
|
3898
|
-
Ba,
|
|
3899
|
-
Fa,
|
|
3900
|
-
qa,
|
|
3965
|
+
}, cl = [
|
|
3901
3966
|
Ua,
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3967
|
+
Za,
|
|
3968
|
+
el,
|
|
3969
|
+
tl,
|
|
3970
|
+
rl,
|
|
3971
|
+
nl,
|
|
3972
|
+
il,
|
|
3973
|
+
ol,
|
|
3974
|
+
sl,
|
|
3975
|
+
al,
|
|
3976
|
+
ll
|
|
3908
3977
|
];
|
|
3909
|
-
function
|
|
3910
|
-
const t = new
|
|
3978
|
+
function ul(e = {}) {
|
|
3979
|
+
const t = new $a(), r = {
|
|
3911
3980
|
toolTagMap: {
|
|
3912
|
-
...
|
|
3981
|
+
..._o,
|
|
3913
3982
|
...e.toolTagMap || {}
|
|
3914
3983
|
},
|
|
3915
3984
|
toolComponentFactory: e.toolComponentFactory,
|
|
3916
3985
|
toolComponentFactories: e.toolComponentFactories
|
|
3917
3986
|
}, n = (i) => e.overrides?.[i.toolId] || i;
|
|
3918
|
-
return e.includePackagedTools &&
|
|
3987
|
+
return e.includePackagedTools && fl(t, {
|
|
3919
3988
|
toolIds: e.toolIds,
|
|
3920
3989
|
applyOverrides: n
|
|
3921
3990
|
}), e.toolModuleLoaders && Object.keys(e.toolModuleLoaders).length > 0 && t.setToolModuleLoaders(e.toolModuleLoaders), t.setComponentOverrides(r), t;
|
|
3922
3991
|
}
|
|
3923
|
-
function
|
|
3992
|
+
function fl(e, t = {}) {
|
|
3924
3993
|
const r = t.toolIds && t.toolIds.length > 0 ? new Set(t.toolIds) : null, n = t.applyOverrides || ((i) => i);
|
|
3925
|
-
for (const i of
|
|
3994
|
+
for (const i of cl)
|
|
3926
3995
|
r && !r.has(i.toolId) || e.register(n(i));
|
|
3927
3996
|
}
|
|
3928
|
-
function
|
|
3929
|
-
return
|
|
3997
|
+
function dl(e = {}) {
|
|
3998
|
+
return ul({
|
|
3930
3999
|
...e,
|
|
3931
4000
|
includePackagedTools: !0
|
|
3932
4001
|
});
|
|
3933
4002
|
}
|
|
3934
|
-
function
|
|
3935
|
-
const e =
|
|
4003
|
+
function hl() {
|
|
4004
|
+
const e = dl(), t = /* @__PURE__ */ new Set();
|
|
3936
4005
|
for (const r of e.getAllTools()) for (const n of r.pnpSupportIds || []) t.add(n);
|
|
3937
4006
|
return [...t].sort();
|
|
3938
4007
|
}
|
|
3939
|
-
var
|
|
3940
|
-
supports: [...
|
|
4008
|
+
var pl = hl(), Dl = {
|
|
4009
|
+
supports: [...pl],
|
|
3941
4010
|
prohibitedSupports: [],
|
|
3942
4011
|
activateAtInit: []
|
|
3943
|
-
},
|
|
4012
|
+
}, vl = {
|
|
3944
4013
|
visual: {
|
|
3945
4014
|
magnification: "magnification",
|
|
3946
4015
|
screenMagnifier: "screenMagnifier",
|
|
@@ -4053,15 +4122,26 @@ var il = nl(), El = {
|
|
|
4053
4122
|
itemGlossary: "itemGlossary",
|
|
4054
4123
|
tutorialAvailable: "tutorialAvailable"
|
|
4055
4124
|
}
|
|
4056
|
-
},
|
|
4125
|
+
}, Vl = Object.values(vl).flatMap((e) => Object.values(e)), jl = ho("ToolCoordinator"), ci;
|
|
4057
4126
|
(function(e) {
|
|
4058
4127
|
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";
|
|
4059
|
-
})(
|
|
4060
|
-
var
|
|
4128
|
+
})(ci || (ci = {}));
|
|
4129
|
+
var ui;
|
|
4061
4130
|
(function(e) {
|
|
4062
4131
|
e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
|
|
4063
|
-
})(
|
|
4064
|
-
var
|
|
4132
|
+
})(ui || (ui = {}));
|
|
4133
|
+
var zl = ka({
|
|
4134
|
+
policy: {
|
|
4135
|
+
allowed: [],
|
|
4136
|
+
blocked: []
|
|
4137
|
+
},
|
|
4138
|
+
placement: {
|
|
4139
|
+
section: [],
|
|
4140
|
+
item: [],
|
|
4141
|
+
passage: []
|
|
4142
|
+
},
|
|
4143
|
+
providers: {}
|
|
4144
|
+
}), gl = /* @__PURE__ */ ft('<button class="pie-tool-annotation-toolbar__highlight-swatch svelte-g8qu62"><span class="pie-sr-only svelte-g8qu62"> </span></button>'), _l = /* @__PURE__ */ ft('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-g8qu62" aria-label="Read selected text aloud" title="Read Aloud"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z"></path></svg></button>', 1), ml = /* @__PURE__ */ ft('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--warning svelte-g8qu62" aria-label="Remove this annotation" title="Remove"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"></path></svg></button>'), bl = /* @__PURE__ */ ft('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--danger svelte-g8qu62" aria-label="Clear all annotations from document" title="Clear All">Clear All</button>'), wl = /* @__PURE__ */ ft('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <!> <!>', 1), yl = /* @__PURE__ */ ft('<div class="pie-tool-annotation-toolbar notranslate svelte-g8qu62" role="toolbar" aria-label="Text annotation toolbar" translate="no"><!> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-g8qu62" aria-label="Underline selected text" title="Underline"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z"></path></svg></button> <!> <!></div>'), Tl = /* @__PURE__ */ ft('<div style="display: none;" aria-hidden="true"></div> <!> <div role="status" aria-live="polite" aria-atomic="true" class="pie-sr-only svelte-g8qu62"> </div>', 1), Sl = {
|
|
4065
4145
|
hash: "svelte-g8qu62",
|
|
4066
4146
|
code: `.pie-tool-annotation-toolbar.svelte-g8qu62 {position:fixed;z-index:4200;display:flex;gap:0.25rem;padding:0.5rem;border-radius:0.5rem;background:var(--pie-background, #fff);color:var(--pie-text, #111827);border:1px solid var(--pie-border, #d1d5db);box-shadow:0 10px 25px -8px rgb(0 0 0 / 0.3);user-select:none;}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62 {width:2.5rem;height:2rem;border:2px solid color-mix(in srgb, var(--pie-border-dark, #111827) 20%, transparent);border-radius:0.375rem;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;padding:0;}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62:hover {transform:scale(1.1);border-color:color-mix(in srgb, var(--pie-border-dark, #111827) 45%, transparent);box-shadow:0 2px 8px rgb(0 0 0 / 0.15);}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62:focus-visible {outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #3f51b5));outline-offset:2px;}.pie-tool-annotation-toolbar.svelte-g8qu62 .divider-horizontal:where(.svelte-g8qu62) {height:auto;width:1px;background-color:color-mix(in srgb, var(--pie-border, #d1d5db) 70%, transparent);}
|
|
4067
4147
|
|
|
@@ -4069,27 +4149,27 @@ var sl = /* @__PURE__ */ lt('<button class="pie-tool-annotation-toolbar__highlig
|
|
|
4069
4149
|
|
|
4070
4150
|
/* Button styling */.pie-tool-annotation-toolbar__button.svelte-g8qu62 {display:inline-flex;align-items:center;justify-content:center;gap:0.35rem;padding:0.4rem 0.55rem;border:1px solid var(--pie-button-border, #d1d5db);border-radius:0.4rem;background:var(--pie-button-bg, #fff);color:var(--pie-button-color, var(--pie-text, #111827));cursor:pointer;}.pie-tool-annotation-toolbar__button--icon.svelte-g8qu62 {min-width:2rem;min-height:2rem;padding:0.45rem;}.pie-tool-annotation-toolbar__button.svelte-g8qu62:hover {background:var(--pie-button-hover-bg, #f9fafb);color:var(--pie-button-hover-color, var(--pie-text, #111827));border-color:var(--pie-button-hover-border, #9ca3af);}.pie-tool-annotation-toolbar__button.svelte-g8qu62:focus-visible {outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #3f51b5));outline-offset:2px;}.pie-tool-annotation-toolbar__button.svelte-g8qu62:disabled {opacity:0.6;cursor:not-allowed;}.pie-tool-annotation-toolbar__button--warning.svelte-g8qu62 {color:var(--pie-missing-icon, #92400e);}.pie-tool-annotation-toolbar__button--danger.svelte-g8qu62 {color:var(--pie-incorrect-icon, #b91c1c);}.pie-tool-annotation-toolbar__button.svelte-g8qu62 svg:where(.svelte-g8qu62) {width:18px;height:18px;}`
|
|
4071
4151
|
};
|
|
4072
|
-
function
|
|
4073
|
-
|
|
4074
|
-
let r =
|
|
4152
|
+
function kl(e, t) {
|
|
4153
|
+
mi(t, !0), ta(e, Sl);
|
|
4154
|
+
let r = Dr(t, "enabled", 7, !0), n = Dr(t, "highlightCoordinator", 7, null), i = Dr(t, "ttsService", 7, null);
|
|
4075
4155
|
const o = typeof window < "u", s = "pie-annotations", a = [
|
|
4076
4156
|
{
|
|
4077
|
-
name:
|
|
4157
|
+
name: We.YELLOW,
|
|
4078
4158
|
hex: "#fde995",
|
|
4079
4159
|
label: "Yellow highlight"
|
|
4080
4160
|
},
|
|
4081
4161
|
{
|
|
4082
|
-
name:
|
|
4162
|
+
name: We.PINK,
|
|
4083
4163
|
hex: "#ff9fae",
|
|
4084
4164
|
label: "Pink highlight"
|
|
4085
4165
|
},
|
|
4086
4166
|
{
|
|
4087
|
-
name:
|
|
4167
|
+
name: We.BLUE,
|
|
4088
4168
|
hex: "#a7e0f6",
|
|
4089
4169
|
label: "Blue highlight"
|
|
4090
4170
|
},
|
|
4091
4171
|
{
|
|
4092
|
-
name:
|
|
4172
|
+
name: We.GREEN,
|
|
4093
4173
|
hex: "#a6e1c5",
|
|
4094
4174
|
label: "Green highlight"
|
|
4095
4175
|
}
|
|
@@ -4104,7 +4184,7 @@ function vl(e, t) {
|
|
|
4104
4184
|
'[role="button"]',
|
|
4105
4185
|
'[role="textbox"]'
|
|
4106
4186
|
];
|
|
4107
|
-
let u = /* @__PURE__ */ z(null), f = /* @__PURE__ */ z(null),
|
|
4187
|
+
let u = /* @__PURE__ */ z(null), f = /* @__PURE__ */ z(null), p = /* @__PURE__ */ z(null), d = /* @__PURE__ */ z(null), h = /* @__PURE__ */ z(Xe({
|
|
4108
4188
|
isVisible: !1,
|
|
4109
4189
|
selectedText: "",
|
|
4110
4190
|
selectedRange: null,
|
|
@@ -4112,29 +4192,29 @@ function vl(e, t) {
|
|
|
4112
4192
|
x: 0,
|
|
4113
4193
|
y: 0
|
|
4114
4194
|
}
|
|
4115
|
-
})), g = /* @__PURE__ */ z(!1),
|
|
4195
|
+
})), g = /* @__PURE__ */ z(!1), y = /* @__PURE__ */ z(!1), v = /* @__PURE__ */ z(""), w = /* @__PURE__ */ z(0), P = /* @__PURE__ */ z(null), E = /* @__PURE__ */ Lr(() => _(w) > 0), x = /* @__PURE__ */ Lr(() => _(P) !== null), H = /* @__PURE__ */ Lr(() => _(d)?.scopeElement || _(p)?.scopeElement || null);
|
|
4116
4196
|
function D() {
|
|
4117
4197
|
const m = _(u)?.ownerDocument;
|
|
4118
4198
|
return _(H) || m?.documentElement || document.documentElement;
|
|
4119
4199
|
}
|
|
4120
4200
|
function G() {
|
|
4121
|
-
return `${s}:${_(
|
|
4201
|
+
return `${s}:${_(p)?.canonicalItemId || _(p)?.itemId || "global"}`;
|
|
4122
4202
|
}
|
|
4123
4203
|
function ge(m) {
|
|
4124
4204
|
if (!n()) return null;
|
|
4125
4205
|
const T = n().getAnnotations();
|
|
4126
|
-
for (const
|
|
4127
|
-
const
|
|
4128
|
-
if (
|
|
4206
|
+
for (const R of T) {
|
|
4207
|
+
const q = m.compareBoundaryPoints(Range.START_TO_START, R.range), qe = m.compareBoundaryPoints(Range.END_TO_END, R.range), kt = m.compareBoundaryPoints(Range.START_TO_END, R.range), At = m.compareBoundaryPoints(Range.END_TO_START, R.range);
|
|
4208
|
+
if (q >= 0 && qe <= 0 || q <= 0 && qe >= 0 || kt > 0 && At < 0) return R.id;
|
|
4129
4209
|
}
|
|
4130
4210
|
return null;
|
|
4131
4211
|
}
|
|
4132
|
-
function
|
|
4212
|
+
function Bt(m) {
|
|
4133
4213
|
if (m.nodeType !== Node.ELEMENT_NODE && m.nodeType !== Node.TEXT_NODE) return !1;
|
|
4134
4214
|
const T = m.nodeType === Node.TEXT_NODE ? m.parentElement : m;
|
|
4135
|
-
return T ? !c.some((
|
|
4215
|
+
return T ? !c.some((R) => {
|
|
4136
4216
|
try {
|
|
4137
|
-
return T.closest(
|
|
4217
|
+
return T.closest(R) !== null;
|
|
4138
4218
|
} catch {
|
|
4139
4219
|
return !1;
|
|
4140
4220
|
}
|
|
@@ -4142,10 +4222,10 @@ function vl(e, t) {
|
|
|
4142
4222
|
}
|
|
4143
4223
|
function V(m) {
|
|
4144
4224
|
if (!_(H)) return !0;
|
|
4145
|
-
const T = m.commonAncestorContainer,
|
|
4146
|
-
return !!
|
|
4225
|
+
const T = m.commonAncestorContainer, R = T.nodeType === Node.TEXT_NODE ? T.parentElement : T;
|
|
4226
|
+
return !!R && _(H).contains(R);
|
|
4147
4227
|
}
|
|
4148
|
-
function
|
|
4228
|
+
function qt() {
|
|
4149
4229
|
if (!(!o || !n()))
|
|
4150
4230
|
try {
|
|
4151
4231
|
const m = D(), T = n().exportAnnotations(m);
|
|
@@ -4154,74 +4234,74 @@ function vl(e, t) {
|
|
|
4154
4234
|
console.error("[AnnotationToolbar] Failed to save annotations:", m);
|
|
4155
4235
|
}
|
|
4156
4236
|
}
|
|
4157
|
-
function
|
|
4237
|
+
function Er() {
|
|
4158
4238
|
if (!(!o || !n()))
|
|
4159
4239
|
try {
|
|
4160
4240
|
const m = sessionStorage.getItem(G());
|
|
4161
4241
|
if (!m) return;
|
|
4162
|
-
const T = JSON.parse(m),
|
|
4163
|
-
console.log(`[AnnotationToolbar] Restored ${
|
|
4242
|
+
const T = JSON.parse(m), R = D(), q = n().importAnnotations(T, R);
|
|
4243
|
+
console.log(`[AnnotationToolbar] Restored ${q} annotations`), O(w, n().getAnnotations().length, !0);
|
|
4164
4244
|
} catch (m) {
|
|
4165
4245
|
console.error("[AnnotationToolbar] Failed to load annotations:", m);
|
|
4166
4246
|
}
|
|
4167
4247
|
}
|
|
4168
|
-
function
|
|
4248
|
+
function Ft() {
|
|
4169
4249
|
if (!r() || !o) return;
|
|
4170
4250
|
const m = window.getSelection();
|
|
4171
4251
|
if (!m || m.rangeCount === 0) return Ie();
|
|
4172
|
-
const T = m.getRangeAt(0),
|
|
4173
|
-
if (!
|
|
4174
|
-
const
|
|
4175
|
-
O(
|
|
4176
|
-
x:
|
|
4177
|
-
y:
|
|
4252
|
+
const T = m.getRangeAt(0), R = m.toString().trim();
|
|
4253
|
+
if (!R || !V(T) || !Bt(T.commonAncestorContainer)) return Ie();
|
|
4254
|
+
const q = T.getBoundingClientRect(), qe = q.left + q.width / 2, kt = q.top - 8;
|
|
4255
|
+
O(P, ge(T), !0), _(h).isVisible = !0, _(h).selectedText = R, _(h).selectedRange = T.cloneRange(), _(h).toolbarPosition = {
|
|
4256
|
+
x: qe,
|
|
4257
|
+
y: kt
|
|
4178
4258
|
};
|
|
4179
|
-
const
|
|
4180
|
-
O(
|
|
4181
|
-
O(
|
|
4182
|
-
}, 2e3), O(
|
|
4183
|
-
O(
|
|
4259
|
+
const At = R.length > 30 ? R.substring(0, 30) + "..." : R;
|
|
4260
|
+
O(v, `Annotation toolbar opened for "${At}"`), setTimeout(() => {
|
|
4261
|
+
O(v, "");
|
|
4262
|
+
}, 2e3), O(y, !0), setTimeout(() => {
|
|
4263
|
+
O(y, !1);
|
|
4184
4264
|
}, 100);
|
|
4185
4265
|
}
|
|
4186
4266
|
function Ie() {
|
|
4187
4267
|
_(g) && i() && (i().stop(), O(g, !1)), _(h).isVisible = !1, _(h).selectedText = "", _(h).selectedRange = null;
|
|
4188
4268
|
}
|
|
4189
|
-
function
|
|
4269
|
+
function In(m) {
|
|
4190
4270
|
if (!_(h).selectedRange || !n()) return;
|
|
4191
4271
|
const T = _(h).selectedText;
|
|
4192
|
-
n().addAnnotation(_(h).selectedRange, m), O(
|
|
4193
|
-
const
|
|
4194
|
-
O(
|
|
4195
|
-
O(
|
|
4272
|
+
n().addAnnotation(_(h).selectedRange, m), O(w, n().getAnnotations().length, !0), qt();
|
|
4273
|
+
const R = m === We.UNDERLINE ? "underlined" : `highlighted in ${m}`, q = T.length > 30 ? T.substring(0, 30) + "..." : T;
|
|
4274
|
+
O(v, `"${q}" ${R}`), setTimeout(() => {
|
|
4275
|
+
O(v, "");
|
|
4196
4276
|
}, 3e3), Ie();
|
|
4197
4277
|
}
|
|
4198
|
-
function
|
|
4199
|
-
if (!_(
|
|
4278
|
+
function yo() {
|
|
4279
|
+
if (!_(P) || !n()) {
|
|
4200
4280
|
console.warn("[AnnotationToolbar] No overlapping annotation to remove");
|
|
4201
4281
|
return;
|
|
4202
4282
|
}
|
|
4203
|
-
console.log("[AnnotationToolbar] Removing annotation:", _(
|
|
4204
|
-
const m = n().getAnnotation(_(
|
|
4283
|
+
console.log("[AnnotationToolbar] Removing annotation:", _(P));
|
|
4284
|
+
const m = n().getAnnotation(_(P));
|
|
4205
4285
|
if (!m) {
|
|
4206
|
-
console.warn("[AnnotationToolbar] Annotation not found:", _(
|
|
4286
|
+
console.warn("[AnnotationToolbar] Annotation not found:", _(P));
|
|
4207
4287
|
return;
|
|
4208
4288
|
}
|
|
4209
4289
|
const T = m.range.toString();
|
|
4210
|
-
n().removeAnnotation(_(
|
|
4211
|
-
const
|
|
4212
|
-
O(
|
|
4213
|
-
const
|
|
4214
|
-
O(
|
|
4215
|
-
O(
|
|
4290
|
+
n().removeAnnotation(_(P));
|
|
4291
|
+
const R = n().getAnnotations().length;
|
|
4292
|
+
O(w, R, !0), console.log("[AnnotationToolbar] Annotations remaining:", R), qt();
|
|
4293
|
+
const q = T.length > 30 ? T.substring(0, 30) + "..." : T;
|
|
4294
|
+
O(v, `Removed annotation from "${q}"`), setTimeout(() => {
|
|
4295
|
+
O(v, "");
|
|
4216
4296
|
}, 3e3), Ie();
|
|
4217
4297
|
}
|
|
4218
|
-
function
|
|
4219
|
-
const m = _(
|
|
4220
|
-
n()?.clearAnnotations(), O(
|
|
4221
|
-
O(
|
|
4298
|
+
function To() {
|
|
4299
|
+
const m = _(w);
|
|
4300
|
+
n()?.clearAnnotations(), O(w, 0), sessionStorage.removeItem(G()), O(v, `${m} annotation${m === 1 ? "" : "s"} cleared`), setTimeout(() => {
|
|
4301
|
+
O(v, "");
|
|
4222
4302
|
}, 3e3), Ie();
|
|
4223
4303
|
}
|
|
4224
|
-
async function
|
|
4304
|
+
async function So() {
|
|
4225
4305
|
if (!(!_(h).selectedRange || !i())) {
|
|
4226
4306
|
O(g, !0);
|
|
4227
4307
|
try {
|
|
@@ -4233,95 +4313,95 @@ function vl(e, t) {
|
|
|
4233
4313
|
}
|
|
4234
4314
|
}
|
|
4235
4315
|
}
|
|
4236
|
-
function
|
|
4316
|
+
function En(m) {
|
|
4237
4317
|
m.key === "Escape" && _(h).isVisible && (m.preventDefault(), Ie());
|
|
4238
4318
|
}
|
|
4239
|
-
function
|
|
4240
|
-
!_(h).isVisible || _(
|
|
4319
|
+
function Ut(m) {
|
|
4320
|
+
!_(h).isVisible || _(y) || _(f) && !_(f).contains(m.target) && Ie();
|
|
4241
4321
|
}
|
|
4242
|
-
|
|
4322
|
+
Bn(() => {
|
|
4243
4323
|
if (!o) return;
|
|
4244
4324
|
const m = setTimeout(() => {
|
|
4245
|
-
|
|
4325
|
+
Er();
|
|
4246
4326
|
}, 2e3), T = _(H) || document;
|
|
4247
|
-
return T.addEventListener("mouseup",
|
|
4248
|
-
clearTimeout(m), T.removeEventListener("mouseup",
|
|
4327
|
+
return T.addEventListener("mouseup", Ft), T.addEventListener("click", Ut), T.addEventListener("touchend", Ft), T.addEventListener("touchstart", Ut), document.addEventListener("keydown", En), window.addEventListener("scroll", Ie, !0), () => {
|
|
4328
|
+
clearTimeout(m), T.removeEventListener("mouseup", Ft), T.removeEventListener("click", Ut), T.removeEventListener("touchend", Ft), T.removeEventListener("touchstart", Ut), document.removeEventListener("keydown", En), window.removeEventListener("scroll", Ie, !0);
|
|
4249
4329
|
};
|
|
4250
|
-
}),
|
|
4330
|
+
}), Bn(() => {
|
|
4251
4331
|
if (!_(u)) return;
|
|
4252
|
-
const m =
|
|
4253
|
-
O(
|
|
4254
|
-
}), T =
|
|
4255
|
-
O(d,
|
|
4332
|
+
const m = _a(_(u), (R) => {
|
|
4333
|
+
O(p, R, !0);
|
|
4334
|
+
}), T = ma(_(u), (R) => {
|
|
4335
|
+
O(d, R, !0);
|
|
4256
4336
|
});
|
|
4257
4337
|
return () => {
|
|
4258
4338
|
T(), m();
|
|
4259
4339
|
};
|
|
4260
4340
|
});
|
|
4261
|
-
var
|
|
4341
|
+
var ko = {
|
|
4262
4342
|
get enabled() {
|
|
4263
4343
|
return r();
|
|
4264
4344
|
},
|
|
4265
4345
|
set enabled(m = !0) {
|
|
4266
|
-
r(m),
|
|
4346
|
+
r(m), or();
|
|
4267
4347
|
},
|
|
4268
4348
|
get highlightCoordinator() {
|
|
4269
4349
|
return n();
|
|
4270
4350
|
},
|
|
4271
4351
|
set highlightCoordinator(m = null) {
|
|
4272
|
-
n(m),
|
|
4352
|
+
n(m), or();
|
|
4273
4353
|
},
|
|
4274
4354
|
get ttsService() {
|
|
4275
4355
|
return i();
|
|
4276
4356
|
},
|
|
4277
4357
|
set ttsService(m = null) {
|
|
4278
|
-
i(m),
|
|
4358
|
+
i(m), or();
|
|
4279
4359
|
}
|
|
4280
|
-
},
|
|
4281
|
-
|
|
4282
|
-
var
|
|
4283
|
-
var T =
|
|
4284
|
-
|
|
4285
|
-
var J =
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
}),
|
|
4360
|
+
}, $n = Tl(), On = Rr($n);
|
|
4361
|
+
ni(On, (m) => O(u, m), () => _(u));
|
|
4362
|
+
var Ln = xe(On, 2), Ao = (m) => {
|
|
4363
|
+
var T = yl(), R = Zt(T);
|
|
4364
|
+
Qs(R, 17, () => a, Xs, (ae, le) => {
|
|
4365
|
+
var J = gl(), Gt = Zt(J), $r = Zt(Gt, !0);
|
|
4366
|
+
Kt(Gt), Kt(J), er(() => {
|
|
4367
|
+
Qn(J, `background-color: ${_(le).hex ?? ""};`), Zn(J, "aria-label", _(le).label), Zn(J, "title", _(le).label), Yn($r, _(le).label);
|
|
4368
|
+
}), $t("click", J, () => In(_(le).name)), je(ae, J);
|
|
4289
4369
|
});
|
|
4290
|
-
var
|
|
4291
|
-
var le =
|
|
4292
|
-
|
|
4370
|
+
var q = xe(R, 2), qe = xe(q, 2), kt = (ae) => {
|
|
4371
|
+
var le = _l(), J = xe(Rr(le), 2);
|
|
4372
|
+
er(() => J.disabled = _(g)), $t("click", J, So), je(ae, le);
|
|
4293
4373
|
};
|
|
4294
|
-
|
|
4295
|
-
i() && ae(
|
|
4374
|
+
Lt(qe, (ae) => {
|
|
4375
|
+
i() && ae(kt);
|
|
4296
4376
|
});
|
|
4297
|
-
var
|
|
4298
|
-
var le =
|
|
4299
|
-
var
|
|
4300
|
-
|
|
4377
|
+
var At = xe(qe, 2), Eo = (ae) => {
|
|
4378
|
+
var le = wl(), J = xe(Rr(le), 2), Gt = (Fe) => {
|
|
4379
|
+
var It = ml();
|
|
4380
|
+
$t("click", It, yo), je(Fe, It);
|
|
4301
4381
|
};
|
|
4302
|
-
|
|
4303
|
-
_(
|
|
4382
|
+
Lt(J, (Fe) => {
|
|
4383
|
+
_(x) && Fe(Gt);
|
|
4304
4384
|
});
|
|
4305
|
-
var
|
|
4306
|
-
var
|
|
4307
|
-
|
|
4385
|
+
var $r = xe(J, 2), $o = (Fe) => {
|
|
4386
|
+
var It = bl();
|
|
4387
|
+
$t("click", It, To), je(Fe, It);
|
|
4308
4388
|
};
|
|
4309
|
-
$
|
|
4310
|
-
_(
|
|
4311
|
-
}),
|
|
4389
|
+
Lt($r, (Fe) => {
|
|
4390
|
+
_(E) && Fe($o);
|
|
4391
|
+
}), je(ae, le);
|
|
4312
4392
|
};
|
|
4313
|
-
|
|
4314
|
-
(_(
|
|
4315
|
-
}),
|
|
4393
|
+
Lt(At, (ae) => {
|
|
4394
|
+
(_(x) || _(E)) && ae(Eo);
|
|
4395
|
+
}), Kt(T), ni(T, (ae) => O(f, ae), () => _(f)), er(() => Qn(T, `left:${_(h).toolbarPosition.x}px; top:${_(h).toolbarPosition.y}px; transform: translate(-50%, -100%);`)), $t("click", q, () => In(We.UNDERLINE)), je(m, T);
|
|
4316
4396
|
};
|
|
4317
|
-
|
|
4318
|
-
_(h).isVisible && m(
|
|
4397
|
+
Lt(Ln, (m) => {
|
|
4398
|
+
_(h).isVisible && m(Ao);
|
|
4319
4399
|
});
|
|
4320
|
-
var
|
|
4321
|
-
return
|
|
4400
|
+
var Rn = xe(Ln, 2), Io = Zt(Rn, !0);
|
|
4401
|
+
return Kt(Rn), er(() => Yn(Io, _(v))), je(e, $n), bi(ko);
|
|
4322
4402
|
}
|
|
4323
|
-
|
|
4324
|
-
customElements.define("pie-tool-annotation-toolbar",
|
|
4403
|
+
js(["click"]);
|
|
4404
|
+
customElements.define("pie-tool-annotation-toolbar", da(kl, {
|
|
4325
4405
|
enabled: {
|
|
4326
4406
|
attribute: "enabled",
|
|
4327
4407
|
type: "Boolean"
|
|
@@ -4330,5 +4410,5 @@ customElements.define("pie-tool-annotation-toolbar", aa(vl, {
|
|
|
4330
4410
|
ttsService: { type: "Object" }
|
|
4331
4411
|
}, [], [], { mode: "open" }));
|
|
4332
4412
|
export {
|
|
4333
|
-
|
|
4413
|
+
kl as default
|
|
4334
4414
|
};
|