@pie-players/pie-section-player 0.3.17 → 0.3.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +76 -2
- package/dist/components/shared/player-action.d.ts +0 -2
- package/dist/components/shared/player-action.d.ts.map +1 -1
- package/dist/components/shared/player-preload.d.ts.map +1 -1
- package/dist/components/shared/section-player-runtime.d.ts +38 -7
- package/dist/components/shared/section-player-runtime.d.ts.map +1 -1
- package/dist/components/shared/section-player-view-state.d.ts.map +1 -1
- package/dist/contracts/layout-contract.d.ts +1 -1
- package/dist/contracts/layout-contract.d.ts.map +1 -1
- package/dist/contracts/layout-parity-metadata.d.ts.map +1 -1
- package/dist/controllers/SectionController.d.ts.map +1 -1
- package/dist/index-BRKsQ6Im-_GY8ip1I.js +442 -0
- package/dist/index-BRKsQ6Im.js +460 -0
- package/dist/{index-DF-Dk87f-lxErM8bo.js → index-QLtHZ4Yz-B0r-CUMY.js} +88 -37
- package/dist/{index-DF-Dk87f.js → index-QLtHZ4Yz.js} +102 -50
- package/dist/pie-section-player.js +4511 -3508
- package/dist/{player-preload-Dxvgw3gW.js → player-preload-DGzat3U_.js} +2481 -2464
- package/dist/{tool-annotation-toolbar-BOoJpOXj.js → tool-annotation-toolbar-BCBoCQa5.js} +1172 -1087
- package/dist/utils/player-preload.js +1 -1
- package/package.json +10 -10
- package/dist/index-CGqExkh0-DYpgzOOU.js +0 -338
- package/dist/index-CGqExkh0.js +0 -354
|
@@ -1,140 +1,140 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ui = Object.defineProperty, Jn = (e) => {
|
|
2
2
|
throw TypeError(e);
|
|
3
|
-
},
|
|
4
|
-
typeof window < "u" && ((
|
|
5
|
-
const
|
|
6
|
-
var
|
|
7
|
-
const
|
|
3
|
+
}, di = (e, t, o) => t in e ? ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, m = (e, t, o) => di(e, typeof t != "symbol" ? t + "" : t, o), on = (e, t, o) => t.has(e) || Jn("Cannot " + o), u = (e, t, o) => (on(e, t, "read from private field"), o ? o.call(e) : t.get(e)), k = (e, t, o) => t.has(e) ? Jn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, o), I = (e, t, o, n) => (on(e, t, "write to private field"), t.set(e, o), o), M = (e, t, o) => (on(e, t, "access private method"), o), xn;
|
|
4
|
+
typeof window < "u" && ((xn = window.__svelte ?? (window.__svelte = {})).v ?? (xn.v = /* @__PURE__ */ new Set())).add("5");
|
|
5
|
+
const fi = 1, hi = 2, pi = 16, vi = 1, gi = 2, Yn = "[", nn = "[!", An = "[?", rn = "]", xt = {}, V = /* @__PURE__ */ Symbol(), Zn = "http://www.w3.org/1999/xhtml", mi = !1;
|
|
6
|
+
var Xn = Array.isArray, bi = Array.prototype.indexOf, At = Array.prototype.includes, So = Array.from, To = Object.keys, Io = Object.defineProperty, St = Object.getOwnPropertyDescriptor, yi = Object.getOwnPropertyDescriptors, wi = Object.prototype, Ti = Array.prototype, Qn = Object.getPrototypeOf, _n = Object.isExtensible;
|
|
7
|
+
const Ii = () => {
|
|
8
8
|
};
|
|
9
|
-
function
|
|
9
|
+
function $i(e) {
|
|
10
10
|
for (var t = 0; t < e.length; t++)
|
|
11
11
|
e[t]();
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function er() {
|
|
14
14
|
var e, t, o = new Promise((n, r) => {
|
|
15
15
|
e = n, t = r;
|
|
16
16
|
});
|
|
17
17
|
return { promise: o, resolve: e, reject: t };
|
|
18
18
|
}
|
|
19
|
-
const j = 2,
|
|
19
|
+
const j = 2, Rt = 4, _t = 8, sn = 1 << 24, Qe = 16, me = 32, et = 64, Wo = 128, ne = 512, N = 1024, W = 2048, ge = 4096, B = 8192, $e = 16384, gt = 32768, Ct = 65536, Cn = 1 << 17, ki = 1 << 18, mt = 1 << 19, Si = 1 << 20, Me = 1 << 25, dt = 65536, Do = 1 << 21, ln = 1 << 22, Ye = 1 << 23, fo = /* @__PURE__ */ Symbol("$state"), xi = /* @__PURE__ */ Symbol("legacy props"), Ai = /* @__PURE__ */ Symbol(""), st = new class extends Error {
|
|
20
20
|
constructor() {
|
|
21
21
|
super(...arguments), m(this, "name", "StaleReactionError"), m(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
22
22
|
}
|
|
23
|
-
}(),
|
|
23
|
+
}(), _i = (
|
|
24
24
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
25
25
|
!!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml")
|
|
26
|
-
),
|
|
27
|
-
function
|
|
26
|
+
), xo = 3, Qt = 8;
|
|
27
|
+
function Ci() {
|
|
28
28
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Ei(e, t, o) {
|
|
31
31
|
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Pi(e) {
|
|
34
34
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Li() {
|
|
37
37
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Mi(e) {
|
|
40
40
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Oi() {
|
|
43
43
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Ri() {
|
|
46
46
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Vi() {
|
|
49
49
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
50
50
|
}
|
|
51
51
|
function Ni() {
|
|
52
52
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function ji() {
|
|
55
55
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Wi() {
|
|
58
58
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Ao(e) {
|
|
61
61
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Di() {
|
|
64
64
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
65
65
|
}
|
|
66
66
|
let P = !1;
|
|
67
|
-
function
|
|
67
|
+
function Oe(e) {
|
|
68
68
|
P = e;
|
|
69
69
|
}
|
|
70
70
|
let C;
|
|
71
|
-
function
|
|
71
|
+
function Y(e) {
|
|
72
72
|
if (e === null)
|
|
73
|
-
throw
|
|
73
|
+
throw Ao(), xt;
|
|
74
74
|
return C = e;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return
|
|
76
|
+
function _o() {
|
|
77
|
+
return Y(/* @__PURE__ */ Se(C));
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function io(e) {
|
|
80
80
|
if (P) {
|
|
81
|
-
if (/* @__PURE__ */
|
|
82
|
-
throw
|
|
81
|
+
if (/* @__PURE__ */ Se(C) !== null)
|
|
82
|
+
throw Ao(), xt;
|
|
83
83
|
C = e;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function zi(e = 1) {
|
|
87
87
|
if (P) {
|
|
88
88
|
for (var t = e, o = C; t--; )
|
|
89
89
|
o = /** @type {TemplateNode} */
|
|
90
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ Se(o);
|
|
91
91
|
C = o;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function $o(e = !0) {
|
|
95
95
|
for (var t = 0, o = C; ; ) {
|
|
96
|
-
if (o.nodeType ===
|
|
96
|
+
if (o.nodeType === Qt) {
|
|
97
97
|
var n = (
|
|
98
98
|
/** @type {Comment} */
|
|
99
99
|
o.data
|
|
100
100
|
);
|
|
101
|
-
if (n ===
|
|
101
|
+
if (n === rn) {
|
|
102
102
|
if (t === 0) return o;
|
|
103
103
|
t -= 1;
|
|
104
|
-
} else (n === Yn || n ===
|
|
104
|
+
} else (n === Yn || n === nn || // "[1", "[2", etc. for if blocks
|
|
105
105
|
n[0] === "[" && !isNaN(Number(n.slice(1)))) && (t += 1);
|
|
106
106
|
}
|
|
107
107
|
var r = (
|
|
108
108
|
/** @type {TemplateNode} */
|
|
109
|
-
/* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ Se(o)
|
|
110
110
|
);
|
|
111
111
|
e && o.remove(), o = r;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
if (!e || e.nodeType !==
|
|
116
|
-
throw
|
|
114
|
+
function tr(e) {
|
|
115
|
+
if (!e || e.nodeType !== Qt)
|
|
116
|
+
throw Ao(), xt;
|
|
117
117
|
return (
|
|
118
118
|
/** @type {Comment} */
|
|
119
119
|
e.data
|
|
120
120
|
);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function or(e) {
|
|
123
123
|
return e === this.v;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function qi(e, t) {
|
|
126
126
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
return !
|
|
128
|
+
function nr(e) {
|
|
129
|
+
return !qi(e, this.v);
|
|
130
130
|
}
|
|
131
|
-
let
|
|
132
|
-
function
|
|
133
|
-
|
|
131
|
+
let Bi = !1, ie = null;
|
|
132
|
+
function Et(e) {
|
|
133
|
+
ie = e;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
|
|
137
|
-
p:
|
|
135
|
+
function rr(e, t = !1, o) {
|
|
136
|
+
ie = {
|
|
137
|
+
p: ie,
|
|
138
138
|
i: !1,
|
|
139
139
|
c: null,
|
|
140
140
|
e: null,
|
|
@@ -143,52 +143,52 @@ function nr(e, t = !1, o) {
|
|
|
143
143
|
l: null
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function ir(e) {
|
|
147
147
|
var t = (
|
|
148
148
|
/** @type {ComponentContext} */
|
|
149
|
-
|
|
149
|
+
ie
|
|
150
150
|
), o = t.e;
|
|
151
151
|
if (o !== null) {
|
|
152
152
|
t.e = null;
|
|
153
153
|
for (var n of o)
|
|
154
|
-
|
|
154
|
+
Er(n);
|
|
155
155
|
}
|
|
156
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
156
|
+
return e !== void 0 && (t.x = e), t.i = !0, ie = t.p, e ?? /** @type {T} */
|
|
157
157
|
{};
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function sr() {
|
|
160
160
|
return !0;
|
|
161
161
|
}
|
|
162
|
-
let
|
|
163
|
-
function
|
|
164
|
-
var e =
|
|
165
|
-
|
|
162
|
+
let lt = [];
|
|
163
|
+
function lr() {
|
|
164
|
+
var e = lt;
|
|
165
|
+
lt = [], $i(e);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
168
|
-
if (
|
|
169
|
-
var t =
|
|
167
|
+
function ft(e) {
|
|
168
|
+
if (lt.length === 0 && !Ut) {
|
|
169
|
+
var t = lt;
|
|
170
170
|
queueMicrotask(() => {
|
|
171
|
-
t ===
|
|
171
|
+
t === lt && lr();
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
|
-
|
|
174
|
+
lt.push(e);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
for (;
|
|
178
|
-
|
|
176
|
+
function Hi() {
|
|
177
|
+
for (; lt.length > 0; )
|
|
178
|
+
lr();
|
|
179
179
|
}
|
|
180
|
-
function
|
|
181
|
-
var t =
|
|
180
|
+
function ar(e) {
|
|
181
|
+
var t = x;
|
|
182
182
|
if (t === null)
|
|
183
183
|
return S.f |= Ye, e;
|
|
184
|
-
if ((t.f &
|
|
184
|
+
if ((t.f & gt) === 0 && (t.f & Rt) === 0)
|
|
185
185
|
throw e;
|
|
186
|
-
|
|
186
|
+
Je(e, t);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Je(e, t) {
|
|
189
189
|
for (; t !== null; ) {
|
|
190
|
-
if ((t.f &
|
|
191
|
-
if ((t.f &
|
|
190
|
+
if ((t.f & Wo) !== 0) {
|
|
191
|
+
if ((t.f & gt) === 0)
|
|
192
192
|
throw e;
|
|
193
193
|
try {
|
|
194
194
|
t.b.error(e);
|
|
@@ -201,37 +201,37 @@ function Ke(e, t) {
|
|
|
201
201
|
}
|
|
202
202
|
throw e;
|
|
203
203
|
}
|
|
204
|
-
const
|
|
204
|
+
const Fi = -7169;
|
|
205
205
|
function O(e, t) {
|
|
206
|
-
e.f = e.f &
|
|
206
|
+
e.f = e.f & Fi | t;
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
(e.f &
|
|
208
|
+
function an(e) {
|
|
209
|
+
(e.f & ne) !== 0 || e.deps === null ? O(e, N) : O(e, ge);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function cr(e) {
|
|
212
212
|
if (e !== null)
|
|
213
213
|
for (const t of e)
|
|
214
|
-
(t.f & j) === 0 || (t.f &
|
|
214
|
+
(t.f & j) === 0 || (t.f & dt) === 0 || (t.f ^= dt, cr(
|
|
215
215
|
/** @type {Derived} */
|
|
216
216
|
t.deps
|
|
217
217
|
));
|
|
218
218
|
}
|
|
219
|
-
function
|
|
220
|
-
(e.f &
|
|
219
|
+
function ur(e, t, o) {
|
|
220
|
+
(e.f & W) !== 0 ? t.add(e) : (e.f & ge) !== 0 && o.add(e), cr(e.deps), O(e, N);
|
|
221
221
|
}
|
|
222
|
-
const
|
|
223
|
-
let L = null,
|
|
224
|
-
var
|
|
225
|
-
const
|
|
222
|
+
const ho = /* @__PURE__ */ new Set();
|
|
223
|
+
let L = null, ve = null, G = [], Co = null, Ut = !1, Pt = null, Gi = 1;
|
|
224
|
+
var nt, Bt, ze, rt, wt, Kt, at, Ee, Ht, we, zo, qo, Bo, Ho;
|
|
225
|
+
const Ui = class dr {
|
|
226
226
|
constructor() {
|
|
227
|
-
|
|
227
|
+
k(this, we), m(this, "id", Gi++), m(this, "current", /* @__PURE__ */ new Map()), m(this, "previous", /* @__PURE__ */ new Map()), k(this, nt, /* @__PURE__ */ new Set()), k(this, Bt, /* @__PURE__ */ new Set()), k(this, ze, 0), k(this, rt, 0), k(this, wt, null), k(this, Kt, /* @__PURE__ */ new Set()), k(this, at, /* @__PURE__ */ new Set()), k(this, Ee, /* @__PURE__ */ new Map()), m(this, "is_fork", !1), k(this, Ht, !1);
|
|
228
228
|
}
|
|
229
229
|
/**
|
|
230
230
|
* Add an effect to the #skipped_branches map and reset its children
|
|
231
231
|
* @param {Effect} effect
|
|
232
232
|
*/
|
|
233
233
|
skip_effect(t) {
|
|
234
|
-
u(this,
|
|
234
|
+
u(this, Ee).has(t) || u(this, Ee).set(t, { d: [], m: [] });
|
|
235
235
|
}
|
|
236
236
|
/**
|
|
237
237
|
* Remove an effect from the #skipped_branches map and reschedule
|
|
@@ -239,13 +239,13 @@ const Gi = class ur {
|
|
|
239
239
|
* @param {Effect} effect
|
|
240
240
|
*/
|
|
241
241
|
unskip_effect(t) {
|
|
242
|
-
var o = u(this,
|
|
242
|
+
var o = u(this, Ee).get(t);
|
|
243
243
|
if (o) {
|
|
244
|
-
u(this,
|
|
244
|
+
u(this, Ee).delete(t);
|
|
245
245
|
for (var n of o.d)
|
|
246
|
-
O(n,
|
|
246
|
+
O(n, W), Ie(n);
|
|
247
247
|
for (n of o.m)
|
|
248
|
-
O(n,
|
|
248
|
+
O(n, ge), Ie(n);
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
/**
|
|
@@ -254,19 +254,19 @@ const Gi = class ur {
|
|
|
254
254
|
*/
|
|
255
255
|
process(t) {
|
|
256
256
|
G = [], this.apply();
|
|
257
|
-
var o =
|
|
257
|
+
var o = Pt = [], n = [];
|
|
258
258
|
for (const r of t)
|
|
259
|
-
M(this,
|
|
260
|
-
if (
|
|
261
|
-
M(this,
|
|
262
|
-
for (const [r, i] of u(this,
|
|
263
|
-
|
|
259
|
+
M(this, we, qo).call(this, r, o, n);
|
|
260
|
+
if (Pt = null, M(this, we, zo).call(this)) {
|
|
261
|
+
M(this, we, Bo).call(this, n), M(this, we, Bo).call(this, o);
|
|
262
|
+
for (const [r, i] of u(this, Ee))
|
|
263
|
+
vr(r, i);
|
|
264
264
|
} else {
|
|
265
265
|
L = null;
|
|
266
|
-
for (const r of u(this,
|
|
267
|
-
u(this,
|
|
266
|
+
for (const r of u(this, nt)) r(this);
|
|
267
|
+
u(this, nt).clear(), u(this, ze) === 0 && M(this, we, Ho).call(this), En(n), En(o), u(this, Kt).clear(), u(this, at).clear(), u(this, wt)?.resolve();
|
|
268
268
|
}
|
|
269
|
-
|
|
269
|
+
ve = null;
|
|
270
270
|
}
|
|
271
271
|
/**
|
|
272
272
|
* Associate a change to a given source with the current
|
|
@@ -275,65 +275,65 @@ const Gi = class ur {
|
|
|
275
275
|
* @param {any} value
|
|
276
276
|
*/
|
|
277
277
|
capture(t, o) {
|
|
278
|
-
o !==
|
|
278
|
+
o !== V && !this.previous.has(t) && this.previous.set(t, o), (t.f & Ye) === 0 && (this.current.set(t, t.v), ve?.set(t, t.v));
|
|
279
279
|
}
|
|
280
280
|
activate() {
|
|
281
281
|
L = this, this.apply();
|
|
282
282
|
}
|
|
283
283
|
deactivate() {
|
|
284
|
-
L === this && (L = null,
|
|
284
|
+
L === this && (L = null, ve = null);
|
|
285
285
|
}
|
|
286
286
|
flush() {
|
|
287
287
|
if (G.length > 0)
|
|
288
|
-
L = this,
|
|
289
|
-
else if (u(this,
|
|
290
|
-
for (const t of u(this,
|
|
291
|
-
u(this,
|
|
288
|
+
L = this, fr();
|
|
289
|
+
else if (u(this, ze) === 0 && !this.is_fork) {
|
|
290
|
+
for (const t of u(this, nt)) t(this);
|
|
291
|
+
u(this, nt).clear(), M(this, we, Ho).call(this), u(this, wt)?.resolve();
|
|
292
292
|
}
|
|
293
293
|
this.deactivate();
|
|
294
294
|
}
|
|
295
295
|
discard() {
|
|
296
|
-
for (const t of u(this,
|
|
297
|
-
u(this,
|
|
296
|
+
for (const t of u(this, Bt)) t(this);
|
|
297
|
+
u(this, Bt).clear();
|
|
298
298
|
}
|
|
299
299
|
/**
|
|
300
300
|
*
|
|
301
301
|
* @param {boolean} blocking
|
|
302
302
|
*/
|
|
303
303
|
increment(t) {
|
|
304
|
-
I(this,
|
|
304
|
+
I(this, ze, u(this, ze) + 1), t && I(this, rt, u(this, rt) + 1);
|
|
305
305
|
}
|
|
306
306
|
/**
|
|
307
307
|
*
|
|
308
308
|
* @param {boolean} blocking
|
|
309
309
|
*/
|
|
310
310
|
decrement(t) {
|
|
311
|
-
I(this,
|
|
312
|
-
I(this,
|
|
311
|
+
I(this, ze, u(this, ze) - 1), t && I(this, rt, u(this, rt) - 1), !u(this, Ht) && (I(this, Ht, !0), ft(() => {
|
|
312
|
+
I(this, Ht, !1), M(this, we, zo).call(this) ? G.length > 0 && this.flush() : this.revive();
|
|
313
313
|
}));
|
|
314
314
|
}
|
|
315
315
|
revive() {
|
|
316
|
-
for (const t of u(this,
|
|
317
|
-
u(this,
|
|
318
|
-
for (const t of u(this,
|
|
319
|
-
O(t,
|
|
316
|
+
for (const t of u(this, Kt))
|
|
317
|
+
u(this, at).delete(t), O(t, W), Ie(t);
|
|
318
|
+
for (const t of u(this, at))
|
|
319
|
+
O(t, ge), Ie(t);
|
|
320
320
|
this.flush();
|
|
321
321
|
}
|
|
322
322
|
/** @param {(batch: Batch) => void} fn */
|
|
323
323
|
oncommit(t) {
|
|
324
|
-
u(this,
|
|
324
|
+
u(this, nt).add(t);
|
|
325
325
|
}
|
|
326
326
|
/** @param {(batch: Batch) => void} fn */
|
|
327
327
|
ondiscard(t) {
|
|
328
|
-
u(this,
|
|
328
|
+
u(this, Bt).add(t);
|
|
329
329
|
}
|
|
330
330
|
settled() {
|
|
331
|
-
return (u(this,
|
|
331
|
+
return (u(this, wt) ?? I(this, wt, er())).promise;
|
|
332
332
|
}
|
|
333
333
|
static ensure() {
|
|
334
334
|
if (L === null) {
|
|
335
|
-
const t = L = new
|
|
336
|
-
|
|
335
|
+
const t = L = new dr();
|
|
336
|
+
ho.add(L), Ut || ft(() => {
|
|
337
337
|
L === t && t.flush();
|
|
338
338
|
});
|
|
339
339
|
}
|
|
@@ -342,8 +342,8 @@ const Gi = class ur {
|
|
|
342
342
|
apply() {
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
|
-
|
|
346
|
-
return this.is_fork || u(this,
|
|
345
|
+
nt = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakSet(), zo = function() {
|
|
346
|
+
return this.is_fork || u(this, rt) > 0;
|
|
347
347
|
}, /**
|
|
348
348
|
* Traverse the effect tree, executing effects or stashing
|
|
349
349
|
* them for later execution as appropriate
|
|
@@ -351,12 +351,12 @@ ot = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), We = /*
|
|
|
351
351
|
* @param {Effect[]} effects
|
|
352
352
|
* @param {Effect[]} render_effects
|
|
353
353
|
*/
|
|
354
|
-
|
|
355
|
-
e.f ^=
|
|
354
|
+
qo = function(e, t, o) {
|
|
355
|
+
e.f ^= N;
|
|
356
356
|
for (var n = e.first; n !== null; ) {
|
|
357
|
-
var r = n.f, i = (r & (
|
|
357
|
+
var r = n.f, i = (r & (me | et)) !== 0, s = i && (r & N) !== 0, l = (r & B) !== 0, a = s || u(this, Ee).has(n);
|
|
358
358
|
if (!a && n.fn !== null) {
|
|
359
|
-
i ? l || (n.f ^=
|
|
359
|
+
i ? l || (n.f ^= N) : (r & Rt) !== 0 ? t.push(n) : (r & (_t | sn)) !== 0 && l ? o.push(n) : eo(n) && (Ot(n), (r & Qe) !== 0 && (u(this, at).add(n), l && O(n, W)));
|
|
360
360
|
var c = n.first;
|
|
361
361
|
if (c !== null) {
|
|
362
362
|
n = c;
|
|
@@ -375,15 +375,15 @@ Bo = function(e, t, o) {
|
|
|
375
375
|
}, /**
|
|
376
376
|
* @param {Effect[]} effects
|
|
377
377
|
*/
|
|
378
|
-
|
|
378
|
+
Bo = function(e) {
|
|
379
379
|
for (var t = 0; t < e.length; t += 1)
|
|
380
|
-
|
|
381
|
-
},
|
|
380
|
+
ur(e[t], u(this, Kt), u(this, at));
|
|
381
|
+
}, Ho = function() {
|
|
382
382
|
var e;
|
|
383
|
-
if (
|
|
383
|
+
if (ho.size > 1) {
|
|
384
384
|
this.previous.clear();
|
|
385
|
-
var t = L, o =
|
|
386
|
-
for (const i of
|
|
385
|
+
var t = L, o = ve, n = !0;
|
|
386
|
+
for (const i of ho) {
|
|
387
387
|
if (i === this) {
|
|
388
388
|
n = !1;
|
|
389
389
|
continue;
|
|
@@ -405,105 +405,105 @@ qo = function(e) {
|
|
|
405
405
|
G = [];
|
|
406
406
|
const a = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Map();
|
|
407
407
|
for (const d of s)
|
|
408
|
-
|
|
408
|
+
hr(d, l, a, c);
|
|
409
409
|
if (G.length > 0) {
|
|
410
410
|
L = i, i.apply();
|
|
411
411
|
for (const d of G)
|
|
412
|
-
M(e = i,
|
|
412
|
+
M(e = i, we, qo).call(e, d, [], []);
|
|
413
413
|
i.deactivate();
|
|
414
414
|
}
|
|
415
415
|
G = r;
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
L = t,
|
|
418
|
+
L = t, ve = o;
|
|
419
419
|
}
|
|
420
|
-
u(this,
|
|
420
|
+
u(this, Ee).clear(), ho.delete(this);
|
|
421
421
|
};
|
|
422
|
-
let
|
|
423
|
-
function
|
|
424
|
-
var t =
|
|
425
|
-
|
|
422
|
+
let ht = Ui;
|
|
423
|
+
function po(e) {
|
|
424
|
+
var t = Ut;
|
|
425
|
+
Ut = !0;
|
|
426
426
|
try {
|
|
427
427
|
for (var o; ; ) {
|
|
428
|
-
if (
|
|
429
|
-
return
|
|
428
|
+
if (Hi(), G.length === 0 && (L?.flush(), G.length === 0))
|
|
429
|
+
return Co = null, /** @type {T} */
|
|
430
430
|
o;
|
|
431
|
-
|
|
431
|
+
fr();
|
|
432
432
|
}
|
|
433
433
|
} finally {
|
|
434
|
-
|
|
434
|
+
Ut = t;
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function fr() {
|
|
438
438
|
try {
|
|
439
439
|
for (var e = 0; G.length > 0; ) {
|
|
440
|
-
var t =
|
|
440
|
+
var t = ht.ensure();
|
|
441
441
|
if (e++ > 1e3) {
|
|
442
442
|
var o, n;
|
|
443
|
-
|
|
443
|
+
Ki();
|
|
444
444
|
}
|
|
445
|
-
t.process(G),
|
|
445
|
+
t.process(G), Ze.clear();
|
|
446
446
|
}
|
|
447
447
|
} finally {
|
|
448
|
-
G = [],
|
|
448
|
+
G = [], Co = null, Pt = null;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function Ki() {
|
|
452
452
|
try {
|
|
453
|
-
|
|
453
|
+
Oi();
|
|
454
454
|
} catch (e) {
|
|
455
|
-
|
|
455
|
+
Je(e, Co);
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
|
-
let
|
|
459
|
-
function
|
|
458
|
+
let Ce = null;
|
|
459
|
+
function En(e) {
|
|
460
460
|
var t = e.length;
|
|
461
461
|
if (t !== 0) {
|
|
462
462
|
for (var o = 0; o < t; ) {
|
|
463
463
|
var n = e[o++];
|
|
464
|
-
if ((n.f & (
|
|
465
|
-
|
|
466
|
-
for (const r of
|
|
467
|
-
if ((r.f & (
|
|
464
|
+
if ((n.f & ($e | B)) === 0 && eo(n) && (Ce = /* @__PURE__ */ new Set(), Ot(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Mr(n), Ce?.size > 0)) {
|
|
465
|
+
Ze.clear();
|
|
466
|
+
for (const r of Ce) {
|
|
467
|
+
if ((r.f & ($e | B)) !== 0) continue;
|
|
468
468
|
const i = [r];
|
|
469
469
|
let s = r.parent;
|
|
470
470
|
for (; s !== null; )
|
|
471
|
-
|
|
471
|
+
Ce.has(s) && (Ce.delete(s), i.push(s)), s = s.parent;
|
|
472
472
|
for (let l = i.length - 1; l >= 0; l--) {
|
|
473
473
|
const a = i[l];
|
|
474
|
-
(a.f & (
|
|
474
|
+
(a.f & ($e | B)) === 0 && Ot(a);
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
|
|
477
|
+
Ce.clear();
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
|
|
480
|
+
Ce = null;
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function hr(e, t, o, n) {
|
|
484
484
|
if (!o.has(e) && (o.add(e), e.reactions !== null))
|
|
485
485
|
for (const r of e.reactions) {
|
|
486
486
|
const i = r.f;
|
|
487
|
-
(i & j) !== 0 ?
|
|
487
|
+
(i & j) !== 0 ? hr(
|
|
488
488
|
/** @type {Derived} */
|
|
489
489
|
r,
|
|
490
490
|
t,
|
|
491
491
|
o,
|
|
492
492
|
n
|
|
493
|
-
) : (i & (
|
|
493
|
+
) : (i & (ln | Qe)) !== 0 && (i & W) === 0 && pr(r, t, n) && (O(r, W), Ie(
|
|
494
494
|
/** @type {Effect} */
|
|
495
495
|
r
|
|
496
496
|
));
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function pr(e, t, o) {
|
|
500
500
|
const n = o.get(e);
|
|
501
501
|
if (n !== void 0) return n;
|
|
502
502
|
if (e.deps !== null)
|
|
503
503
|
for (const r of e.deps) {
|
|
504
|
-
if (
|
|
504
|
+
if (At.call(t, r))
|
|
505
505
|
return !0;
|
|
506
|
-
if ((r.f & j) !== 0 &&
|
|
506
|
+
if ((r.f & j) !== 0 && pr(
|
|
507
507
|
/** @type {Derived} */
|
|
508
508
|
r,
|
|
509
509
|
t,
|
|
@@ -517,48 +517,48 @@ function hr(e, t, o) {
|
|
|
517
517
|
}
|
|
518
518
|
return o.set(e, !1), !1;
|
|
519
519
|
}
|
|
520
|
-
function
|
|
521
|
-
var t =
|
|
522
|
-
if (o?.is_pending && (e.f & (
|
|
520
|
+
function Ie(e) {
|
|
521
|
+
var t = Co = e, o = t.b;
|
|
522
|
+
if (o?.is_pending && (e.f & (Rt | _t | sn)) !== 0 && (e.f & gt) === 0) {
|
|
523
523
|
o.defer_effect(e);
|
|
524
524
|
return;
|
|
525
525
|
}
|
|
526
526
|
for (; t.parent !== null; ) {
|
|
527
527
|
t = t.parent;
|
|
528
528
|
var n = t.f;
|
|
529
|
-
if (
|
|
529
|
+
if (Pt !== null && t === x && (e.f & _t) === 0)
|
|
530
530
|
return;
|
|
531
|
-
if ((n & (
|
|
532
|
-
if ((n &
|
|
531
|
+
if ((n & (et | me)) !== 0) {
|
|
532
|
+
if ((n & N) === 0)
|
|
533
533
|
return;
|
|
534
|
-
t.f ^=
|
|
534
|
+
t.f ^= N;
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
G.push(t);
|
|
538
538
|
}
|
|
539
|
-
function
|
|
540
|
-
if (!((e.f &
|
|
541
|
-
(e.f &
|
|
539
|
+
function vr(e, t) {
|
|
540
|
+
if (!((e.f & me) !== 0 && (e.f & N) !== 0)) {
|
|
541
|
+
(e.f & W) !== 0 ? t.d.push(e) : (e.f & ge) !== 0 && t.m.push(e), O(e, N);
|
|
542
542
|
for (var o = e.first; o !== null; )
|
|
543
|
-
|
|
543
|
+
vr(o, t), o = o.next;
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
|
-
function
|
|
547
|
-
let t = 0, o =
|
|
546
|
+
function Ji(e) {
|
|
547
|
+
let t = 0, o = pt(0), n;
|
|
548
548
|
return () => {
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
t -= 1, t === 0 && (n?.(), n = void 0,
|
|
549
|
+
fn() && (p(o), hn(() => (t === 0 && (n = Br(() => e(() => Zt(o)))), t += 1, () => {
|
|
550
|
+
ft(() => {
|
|
551
|
+
t -= 1, t === 0 && (n?.(), n = void 0, Zt(o));
|
|
552
552
|
});
|
|
553
553
|
})));
|
|
554
554
|
};
|
|
555
555
|
}
|
|
556
|
-
var Yi =
|
|
557
|
-
function
|
|
558
|
-
new
|
|
556
|
+
var Yi = Ct | mt;
|
|
557
|
+
function Zi(e, t, o, n) {
|
|
558
|
+
new Xi(e, t, o, n);
|
|
559
559
|
}
|
|
560
|
-
var
|
|
561
|
-
class
|
|
560
|
+
var te, vo, Pe, It, J, Le, oe, Te, qe, it, Be, Ft, Jt, Yt, He, Fo, q, gr, mr, br, Go, so, ko, Uo;
|
|
561
|
+
class Xi {
|
|
562
562
|
/**
|
|
563
563
|
* @param {TemplateNode} node
|
|
564
564
|
* @param {BoundaryProps} props
|
|
@@ -566,37 +566,37 @@ class Zi {
|
|
|
566
566
|
* @param {((error: unknown) => unknown) | undefined} [transform_error]
|
|
567
567
|
*/
|
|
568
568
|
constructor(t, o, n, r) {
|
|
569
|
-
|
|
570
|
-
I(this,
|
|
571
|
-
}))), I(this,
|
|
569
|
+
k(this, q), m(this, "parent"), m(this, "is_pending", !1), m(this, "transform_error"), k(this, te), k(this, vo, P ? C : null), k(this, Pe), k(this, It), k(this, J), k(this, Le, null), k(this, oe, null), k(this, Te, null), k(this, qe, null), k(this, it, 0), k(this, Be, 0), k(this, Ft, !1), k(this, Jt, /* @__PURE__ */ new Set()), k(this, Yt, /* @__PURE__ */ new Set()), k(this, He, null), k(this, Fo, Ji(() => (I(this, He, pt(u(this, it))), () => {
|
|
570
|
+
I(this, He, null);
|
|
571
|
+
}))), I(this, te, t), I(this, Pe, o), I(this, It, (i) => {
|
|
572
572
|
var s = (
|
|
573
573
|
/** @type {Effect} */
|
|
574
|
-
|
|
574
|
+
x
|
|
575
575
|
);
|
|
576
|
-
s.b = this, s.f |=
|
|
576
|
+
s.b = this, s.f |= Wo, n(i);
|
|
577
577
|
}), this.parent = /** @type {Effect} */
|
|
578
|
-
|
|
578
|
+
x.b, this.transform_error = r ?? this.parent?.transform_error ?? ((i) => i), I(this, J, pn(() => {
|
|
579
579
|
if (P) {
|
|
580
580
|
const i = (
|
|
581
581
|
/** @type {Comment} */
|
|
582
|
-
u(this,
|
|
582
|
+
u(this, vo)
|
|
583
583
|
);
|
|
584
|
-
|
|
585
|
-
const s = i.data ===
|
|
586
|
-
if (i.data.startsWith(
|
|
587
|
-
const l = JSON.parse(i.data.slice(
|
|
588
|
-
M(this, q,
|
|
589
|
-
} else s ? M(this, q,
|
|
584
|
+
_o();
|
|
585
|
+
const s = i.data === nn;
|
|
586
|
+
if (i.data.startsWith(An)) {
|
|
587
|
+
const l = JSON.parse(i.data.slice(An.length));
|
|
588
|
+
M(this, q, mr).call(this, l);
|
|
589
|
+
} else s ? M(this, q, br).call(this) : M(this, q, gr).call(this);
|
|
590
590
|
} else
|
|
591
|
-
M(this, q,
|
|
592
|
-
}, Yi)), P && I(this,
|
|
591
|
+
M(this, q, Go).call(this);
|
|
592
|
+
}, Yi)), P && I(this, te, C);
|
|
593
593
|
}
|
|
594
594
|
/**
|
|
595
595
|
* Defer an effect inside a pending boundary until the boundary resolves
|
|
596
596
|
* @param {Effect} effect
|
|
597
597
|
*/
|
|
598
598
|
defer_effect(t) {
|
|
599
|
-
|
|
599
|
+
ur(t, u(this, Jt), u(this, Yt));
|
|
600
600
|
}
|
|
601
601
|
/**
|
|
602
602
|
* Returns `false` if the effect exists inside a boundary whose pending snippet is shown
|
|
@@ -606,7 +606,7 @@ class Zi {
|
|
|
606
606
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
607
607
|
}
|
|
608
608
|
has_pending_snippet() {
|
|
609
|
-
return !!u(this,
|
|
609
|
+
return !!u(this, Pe).pending;
|
|
610
610
|
}
|
|
611
611
|
/**
|
|
612
612
|
* Update the source that powers `$effect.pending()` inside this boundary,
|
|
@@ -615,169 +615,169 @@ class Zi {
|
|
|
615
615
|
* @param {1 | -1} d
|
|
616
616
|
*/
|
|
617
617
|
update_pending_count(t) {
|
|
618
|
-
M(this, q,
|
|
619
|
-
I(this,
|
|
618
|
+
M(this, q, Uo).call(this, t), I(this, it, u(this, it) + t), !(!u(this, He) || u(this, Ft)) && (I(this, Ft, !0), ft(() => {
|
|
619
|
+
I(this, Ft, !1), u(this, He) && Lt(u(this, He), u(this, it));
|
|
620
620
|
}));
|
|
621
621
|
}
|
|
622
622
|
get_effect_pending() {
|
|
623
|
-
return u(this,
|
|
623
|
+
return u(this, Fo).call(this), p(
|
|
624
624
|
/** @type {Source<number>} */
|
|
625
|
-
u(this,
|
|
625
|
+
u(this, He)
|
|
626
626
|
);
|
|
627
627
|
}
|
|
628
628
|
/** @param {unknown} error */
|
|
629
629
|
error(t) {
|
|
630
|
-
var o = u(this,
|
|
631
|
-
let n = u(this,
|
|
630
|
+
var o = u(this, Pe).onerror;
|
|
631
|
+
let n = u(this, Pe).failed;
|
|
632
632
|
if (!o && !n)
|
|
633
633
|
throw t;
|
|
634
|
-
u(this,
|
|
634
|
+
u(this, Le) && (H(u(this, Le)), I(this, Le, null)), u(this, oe) && (H(u(this, oe)), I(this, oe, null)), u(this, Te) && (H(u(this, Te)), I(this, Te, null)), P && (Y(
|
|
635
635
|
/** @type {TemplateNode} */
|
|
636
|
-
u(this,
|
|
637
|
-
),
|
|
636
|
+
u(this, vo)
|
|
637
|
+
), zi(), Y($o()));
|
|
638
638
|
var r = !1, i = !1;
|
|
639
639
|
const s = () => {
|
|
640
640
|
if (r) {
|
|
641
|
-
|
|
641
|
+
Di();
|
|
642
642
|
return;
|
|
643
643
|
}
|
|
644
|
-
r = !0, i &&
|
|
645
|
-
I(this,
|
|
646
|
-
}), M(this, q,
|
|
647
|
-
|
|
644
|
+
r = !0, i && Wi(), u(this, Te) !== null && vt(u(this, Te), () => {
|
|
645
|
+
I(this, Te, null);
|
|
646
|
+
}), M(this, q, ko).call(this, () => {
|
|
647
|
+
ht.ensure(), M(this, q, Go).call(this);
|
|
648
648
|
});
|
|
649
649
|
}, l = (a) => {
|
|
650
650
|
try {
|
|
651
651
|
i = !0, o?.(a, s), i = !1;
|
|
652
652
|
} catch (c) {
|
|
653
|
-
|
|
653
|
+
Je(c, u(this, J) && u(this, J).parent);
|
|
654
654
|
}
|
|
655
|
-
n && I(this,
|
|
656
|
-
|
|
655
|
+
n && I(this, Te, M(this, q, ko).call(this, () => {
|
|
656
|
+
ht.ensure();
|
|
657
657
|
try {
|
|
658
|
-
return
|
|
658
|
+
return he(() => {
|
|
659
659
|
var c = (
|
|
660
660
|
/** @type {Effect} */
|
|
661
|
-
|
|
661
|
+
x
|
|
662
662
|
);
|
|
663
|
-
c.b = this, c.f |=
|
|
664
|
-
u(this,
|
|
663
|
+
c.b = this, c.f |= Wo, n(
|
|
664
|
+
u(this, te),
|
|
665
665
|
() => a,
|
|
666
666
|
() => s
|
|
667
667
|
);
|
|
668
668
|
});
|
|
669
669
|
} catch (c) {
|
|
670
|
-
return
|
|
670
|
+
return Je(
|
|
671
671
|
c,
|
|
672
672
|
/** @type {Effect} */
|
|
673
|
-
u(this,
|
|
673
|
+
u(this, J).parent
|
|
674
674
|
), null;
|
|
675
675
|
}
|
|
676
676
|
}));
|
|
677
677
|
};
|
|
678
|
-
|
|
678
|
+
ft(() => {
|
|
679
679
|
var a;
|
|
680
680
|
try {
|
|
681
681
|
a = this.transform_error(t);
|
|
682
682
|
} catch (c) {
|
|
683
|
-
|
|
683
|
+
Je(c, u(this, J) && u(this, J).parent);
|
|
684
684
|
return;
|
|
685
685
|
}
|
|
686
686
|
a !== null && typeof a == "object" && typeof /** @type {any} */
|
|
687
687
|
a.then == "function" ? a.then(
|
|
688
688
|
l,
|
|
689
689
|
/** @param {unknown} e */
|
|
690
|
-
(c) =>
|
|
690
|
+
(c) => Je(c, u(this, J) && u(this, J).parent)
|
|
691
691
|
) : l(a);
|
|
692
692
|
});
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
|
|
695
|
+
te = /* @__PURE__ */ new WeakMap(), vo = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Yt = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), Fo = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakSet(), gr = function() {
|
|
696
696
|
try {
|
|
697
|
-
I(this,
|
|
697
|
+
I(this, Le, he(() => u(this, It).call(this, u(this, te))));
|
|
698
698
|
} catch (e) {
|
|
699
699
|
this.error(e);
|
|
700
700
|
}
|
|
701
701
|
}, /**
|
|
702
702
|
* @param {unknown} error The deserialized error from the server's hydration comment
|
|
703
703
|
*/
|
|
704
|
-
|
|
705
|
-
const t = u(this,
|
|
706
|
-
t && I(this,
|
|
704
|
+
mr = function(e) {
|
|
705
|
+
const t = u(this, Pe).failed;
|
|
706
|
+
t && I(this, Te, he(() => {
|
|
707
707
|
t(
|
|
708
|
-
u(this,
|
|
708
|
+
u(this, te),
|
|
709
709
|
() => e,
|
|
710
710
|
() => () => {
|
|
711
711
|
}
|
|
712
712
|
);
|
|
713
713
|
}));
|
|
714
|
-
},
|
|
715
|
-
const e = u(this,
|
|
716
|
-
e && (this.is_pending = !0, I(this,
|
|
717
|
-
var t = I(this,
|
|
718
|
-
t.append(o), I(this,
|
|
714
|
+
}, br = function() {
|
|
715
|
+
const e = u(this, Pe).pending;
|
|
716
|
+
e && (this.is_pending = !0, I(this, oe, he(() => e(u(this, te)))), ft(() => {
|
|
717
|
+
var t = I(this, qe, document.createDocumentFragment()), o = Re();
|
|
718
|
+
t.append(o), I(this, Le, M(this, q, ko).call(this, () => (ht.ensure(), he(() => u(this, It).call(this, o))))), u(this, Be) === 0 && (u(this, te).before(t), I(this, qe, null), vt(
|
|
719
719
|
/** @type {Effect} */
|
|
720
|
-
u(this,
|
|
720
|
+
u(this, oe),
|
|
721
721
|
() => {
|
|
722
|
-
I(this,
|
|
722
|
+
I(this, oe, null);
|
|
723
723
|
}
|
|
724
|
-
), M(this, q,
|
|
724
|
+
), M(this, q, so).call(this));
|
|
725
725
|
}));
|
|
726
|
-
},
|
|
726
|
+
}, Go = function() {
|
|
727
727
|
try {
|
|
728
|
-
if (this.is_pending = this.has_pending_snippet(), I(this,
|
|
729
|
-
u(this,
|
|
730
|
-
})), u(this,
|
|
731
|
-
var e = I(this,
|
|
732
|
-
|
|
728
|
+
if (this.is_pending = this.has_pending_snippet(), I(this, Be, 0), I(this, it, 0), I(this, Le, he(() => {
|
|
729
|
+
u(this, It).call(this, u(this, te));
|
|
730
|
+
})), u(this, Be) > 0) {
|
|
731
|
+
var e = I(this, qe, document.createDocumentFragment());
|
|
732
|
+
mn(u(this, Le), e);
|
|
733
733
|
const t = (
|
|
734
734
|
/** @type {(anchor: Node) => void} */
|
|
735
|
-
u(this,
|
|
735
|
+
u(this, Pe).pending
|
|
736
736
|
);
|
|
737
|
-
I(this,
|
|
737
|
+
I(this, oe, he(() => t(u(this, te))));
|
|
738
738
|
} else
|
|
739
|
-
M(this, q,
|
|
739
|
+
M(this, q, so).call(this);
|
|
740
740
|
} catch (t) {
|
|
741
741
|
this.error(t);
|
|
742
742
|
}
|
|
743
|
-
},
|
|
743
|
+
}, so = function() {
|
|
744
744
|
this.is_pending = !1;
|
|
745
|
-
for (const e of u(this,
|
|
746
|
-
O(e,
|
|
745
|
+
for (const e of u(this, Jt))
|
|
746
|
+
O(e, W), Ie(e);
|
|
747
747
|
for (const e of u(this, Yt))
|
|
748
|
-
O(e,
|
|
749
|
-
u(this,
|
|
748
|
+
O(e, ge), Ie(e);
|
|
749
|
+
u(this, Jt).clear(), u(this, Yt).clear();
|
|
750
750
|
}, /**
|
|
751
751
|
* @template T
|
|
752
752
|
* @param {() => T} fn
|
|
753
753
|
*/
|
|
754
|
-
|
|
755
|
-
var t =
|
|
756
|
-
|
|
754
|
+
ko = function(e) {
|
|
755
|
+
var t = x, o = S, n = ie;
|
|
756
|
+
ke(u(this, J)), se(u(this, J)), Et(u(this, J).ctx);
|
|
757
757
|
try {
|
|
758
758
|
return e();
|
|
759
759
|
} catch (r) {
|
|
760
|
-
return
|
|
760
|
+
return ar(r), null;
|
|
761
761
|
} finally {
|
|
762
|
-
|
|
762
|
+
ke(t), se(o), Et(n);
|
|
763
763
|
}
|
|
764
764
|
}, /**
|
|
765
765
|
* Updates the pending count associated with the currently visible pending snippet,
|
|
766
766
|
* if any, such that we can replace the snippet with content once work is done
|
|
767
767
|
* @param {1 | -1} d
|
|
768
768
|
*/
|
|
769
|
-
|
|
769
|
+
Uo = function(e) {
|
|
770
770
|
var t;
|
|
771
771
|
if (!this.has_pending_snippet()) {
|
|
772
|
-
this.parent && M(t = this.parent, q,
|
|
772
|
+
this.parent && M(t = this.parent, q, Uo).call(t, e);
|
|
773
773
|
return;
|
|
774
774
|
}
|
|
775
|
-
I(this,
|
|
776
|
-
I(this,
|
|
777
|
-
}), u(this,
|
|
775
|
+
I(this, Be, u(this, Be) + e), u(this, Be) === 0 && (M(this, q, so).call(this), u(this, oe) && vt(u(this, oe), () => {
|
|
776
|
+
I(this, oe, null);
|
|
777
|
+
}), u(this, qe) && (u(this, te).before(u(this, qe)), I(this, qe, null)));
|
|
778
778
|
};
|
|
779
|
-
function
|
|
780
|
-
const r =
|
|
779
|
+
function Qi(e, t, o, n) {
|
|
780
|
+
const r = Eo;
|
|
781
781
|
var i = e.filter((f) => !f.settled);
|
|
782
782
|
if (o.length === 0 && i.length === 0) {
|
|
783
783
|
n(t.map(r));
|
|
@@ -785,40 +785,40 @@ function Xi(e, t, o, n) {
|
|
|
785
785
|
}
|
|
786
786
|
var s = (
|
|
787
787
|
/** @type {Effect} */
|
|
788
|
-
|
|
789
|
-
), l =
|
|
788
|
+
x
|
|
789
|
+
), l = es(), a = i.length === 1 ? i[0].promise : i.length > 1 ? Promise.all(i.map((f) => f.promise)) : null;
|
|
790
790
|
function c(f) {
|
|
791
791
|
l();
|
|
792
792
|
try {
|
|
793
793
|
n(f);
|
|
794
794
|
} catch (b) {
|
|
795
|
-
(s.f &
|
|
795
|
+
(s.f & $e) === 0 && Je(b, s);
|
|
796
796
|
}
|
|
797
|
-
|
|
797
|
+
Ko();
|
|
798
798
|
}
|
|
799
799
|
if (o.length === 0) {
|
|
800
800
|
a.then(() => c(t.map(r)));
|
|
801
801
|
return;
|
|
802
802
|
}
|
|
803
803
|
function d() {
|
|
804
|
-
l(), Promise.all(o.map((f) => /* @__PURE__ */
|
|
804
|
+
l(), Promise.all(o.map((f) => /* @__PURE__ */ os(f))).then((f) => c([...t.map(r), ...f])).catch((f) => Je(f, s));
|
|
805
805
|
}
|
|
806
806
|
a ? a.then(d) : d();
|
|
807
807
|
}
|
|
808
|
-
function
|
|
809
|
-
var e =
|
|
808
|
+
function es() {
|
|
809
|
+
var e = x, t = S, o = ie, n = L;
|
|
810
810
|
return function(r = !0) {
|
|
811
|
-
|
|
811
|
+
ke(e), se(t), Et(o), r && n?.activate();
|
|
812
812
|
};
|
|
813
813
|
}
|
|
814
|
-
function
|
|
815
|
-
|
|
814
|
+
function Ko(e = !0) {
|
|
815
|
+
ke(null), se(null), Et(null), e && L?.deactivate();
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function ts() {
|
|
818
818
|
var e = (
|
|
819
819
|
/** @type {Boundary} */
|
|
820
820
|
/** @type {Effect} */
|
|
821
|
-
|
|
821
|
+
x.b
|
|
822
822
|
), t = (
|
|
823
823
|
/** @type {Batch} */
|
|
824
824
|
L
|
|
@@ -828,72 +828,72 @@ function es() {
|
|
|
828
828
|
};
|
|
829
829
|
}
|
|
830
830
|
// @__NO_SIDE_EFFECTS__
|
|
831
|
-
function
|
|
832
|
-
var t = j |
|
|
831
|
+
function Eo(e) {
|
|
832
|
+
var t = j | W, o = S !== null && (S.f & j) !== 0 ? (
|
|
833
833
|
/** @type {Derived} */
|
|
834
834
|
S
|
|
835
835
|
) : null;
|
|
836
|
-
return
|
|
837
|
-
ctx:
|
|
836
|
+
return x !== null && (x.f |= mt), {
|
|
837
|
+
ctx: ie,
|
|
838
838
|
deps: null,
|
|
839
839
|
effects: null,
|
|
840
|
-
equals:
|
|
840
|
+
equals: or,
|
|
841
841
|
f: t,
|
|
842
842
|
fn: e,
|
|
843
843
|
reactions: null,
|
|
844
844
|
rv: 0,
|
|
845
845
|
v: (
|
|
846
846
|
/** @type {V} */
|
|
847
|
-
|
|
847
|
+
V
|
|
848
848
|
),
|
|
849
849
|
wv: 0,
|
|
850
|
-
parent: o ??
|
|
850
|
+
parent: o ?? x,
|
|
851
851
|
ac: null
|
|
852
852
|
};
|
|
853
853
|
}
|
|
854
854
|
// @__NO_SIDE_EFFECTS__
|
|
855
|
-
function
|
|
856
|
-
|
|
855
|
+
function os(e, t, o) {
|
|
856
|
+
x === null && Ci();
|
|
857
857
|
var n = (
|
|
858
858
|
/** @type {Promise<V>} */
|
|
859
859
|
/** @type {unknown} */
|
|
860
860
|
void 0
|
|
861
|
-
), r =
|
|
861
|
+
), r = pt(
|
|
862
862
|
/** @type {V} */
|
|
863
|
-
|
|
863
|
+
V
|
|
864
864
|
), i = !S, s = /* @__PURE__ */ new Map();
|
|
865
|
-
return
|
|
866
|
-
var l =
|
|
865
|
+
return hs(() => {
|
|
866
|
+
var l = er();
|
|
867
867
|
n = l.promise;
|
|
868
868
|
try {
|
|
869
|
-
Promise.resolve(e()).then(l.resolve, l.reject).finally(
|
|
869
|
+
Promise.resolve(e()).then(l.resolve, l.reject).finally(Ko);
|
|
870
870
|
} catch (f) {
|
|
871
|
-
l.reject(f),
|
|
871
|
+
l.reject(f), Ko();
|
|
872
872
|
}
|
|
873
873
|
var a = (
|
|
874
874
|
/** @type {Batch} */
|
|
875
875
|
L
|
|
876
876
|
);
|
|
877
877
|
if (i) {
|
|
878
|
-
var c =
|
|
879
|
-
s.get(a)?.reject(
|
|
878
|
+
var c = ts();
|
|
879
|
+
s.get(a)?.reject(st), s.delete(a), s.set(a, l);
|
|
880
880
|
}
|
|
881
881
|
const d = (f, b = void 0) => {
|
|
882
882
|
if (a.activate(), b)
|
|
883
|
-
b !==
|
|
883
|
+
b !== st && (r.f |= Ye, Lt(r, b));
|
|
884
884
|
else {
|
|
885
|
-
(r.f & Ye) !== 0 && (r.f ^= Ye),
|
|
885
|
+
(r.f & Ye) !== 0 && (r.f ^= Ye), Lt(r, f);
|
|
886
886
|
for (const [g, h] of s) {
|
|
887
887
|
if (s.delete(g), g === a) break;
|
|
888
|
-
h.reject(
|
|
888
|
+
h.reject(st);
|
|
889
889
|
}
|
|
890
890
|
}
|
|
891
891
|
c && c();
|
|
892
892
|
};
|
|
893
893
|
l.promise.then(d, (f) => d(null, f || "unknown"));
|
|
894
|
-
}),
|
|
894
|
+
}), us(() => {
|
|
895
895
|
for (const l of s.values())
|
|
896
|
-
l.reject(
|
|
896
|
+
l.reject(st);
|
|
897
897
|
}), new Promise((l) => {
|
|
898
898
|
function a(c) {
|
|
899
899
|
function d() {
|
|
@@ -905,16 +905,16 @@ function ts(e, t, o) {
|
|
|
905
905
|
});
|
|
906
906
|
}
|
|
907
907
|
// @__NO_SIDE_EFFECTS__
|
|
908
|
-
function
|
|
909
|
-
const t = /* @__PURE__ */
|
|
910
|
-
return
|
|
908
|
+
function Ro(e) {
|
|
909
|
+
const t = /* @__PURE__ */ Eo(e);
|
|
910
|
+
return Vr(t), t;
|
|
911
911
|
}
|
|
912
912
|
// @__NO_SIDE_EFFECTS__
|
|
913
|
-
function os(e) {
|
|
914
|
-
const t = /* @__PURE__ */ Co(e);
|
|
915
|
-
return t.equals = or, t;
|
|
916
|
-
}
|
|
917
913
|
function ns(e) {
|
|
914
|
+
const t = /* @__PURE__ */ Eo(e);
|
|
915
|
+
return t.equals = nr, t;
|
|
916
|
+
}
|
|
917
|
+
function rs(e) {
|
|
918
918
|
var t = e.effects;
|
|
919
919
|
if (t !== null) {
|
|
920
920
|
e.effects = null;
|
|
@@ -925,10 +925,10 @@ function ns(e) {
|
|
|
925
925
|
);
|
|
926
926
|
}
|
|
927
927
|
}
|
|
928
|
-
function
|
|
928
|
+
function is(e) {
|
|
929
929
|
for (var t = e.parent; t !== null; ) {
|
|
930
930
|
if ((t.f & j) === 0)
|
|
931
|
-
return (t.f &
|
|
931
|
+
return (t.f & $e) === 0 ? (
|
|
932
932
|
/** @type {Effect} */
|
|
933
933
|
t
|
|
934
934
|
) : null;
|
|
@@ -936,44 +936,44 @@ function rs(e) {
|
|
|
936
936
|
}
|
|
937
937
|
return null;
|
|
938
938
|
}
|
|
939
|
-
function
|
|
940
|
-
var t, o =
|
|
941
|
-
|
|
939
|
+
function cn(e) {
|
|
940
|
+
var t, o = x;
|
|
941
|
+
ke(is(e));
|
|
942
942
|
try {
|
|
943
|
-
e.f &= ~
|
|
943
|
+
e.f &= ~dt, rs(e), t = Dr(e);
|
|
944
944
|
} finally {
|
|
945
|
-
|
|
945
|
+
ke(o);
|
|
946
946
|
}
|
|
947
947
|
return t;
|
|
948
948
|
}
|
|
949
|
-
function
|
|
950
|
-
var t =
|
|
951
|
-
if (!e.equals(t) && (e.wv =
|
|
952
|
-
O(e,
|
|
949
|
+
function yr(e) {
|
|
950
|
+
var t = cn(e);
|
|
951
|
+
if (!e.equals(t) && (e.wv = jr(), (!L?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
|
|
952
|
+
O(e, N);
|
|
953
953
|
return;
|
|
954
954
|
}
|
|
955
|
-
|
|
955
|
+
Xe || (ve !== null ? (fn() || L?.is_fork) && ve.set(e, t) : an(e));
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function ss(e) {
|
|
958
958
|
if (e.effects !== null)
|
|
959
959
|
for (const t of e.effects)
|
|
960
|
-
(t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(
|
|
960
|
+
(t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(st), t.teardown = Ii, t.ac = null, Xt(t, 0), vn(t));
|
|
961
961
|
}
|
|
962
|
-
function
|
|
962
|
+
function wr(e) {
|
|
963
963
|
if (e.effects !== null)
|
|
964
964
|
for (const t of e.effects)
|
|
965
|
-
t.teardown &&
|
|
965
|
+
t.teardown && Ot(t);
|
|
966
966
|
}
|
|
967
|
-
let
|
|
968
|
-
const
|
|
969
|
-
let
|
|
970
|
-
function
|
|
967
|
+
let Jo = /* @__PURE__ */ new Set();
|
|
968
|
+
const Ze = /* @__PURE__ */ new Map();
|
|
969
|
+
let Tr = !1;
|
|
970
|
+
function pt(e, t) {
|
|
971
971
|
var o = {
|
|
972
972
|
f: 0,
|
|
973
973
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
974
974
|
v: e,
|
|
975
975
|
reactions: null,
|
|
976
|
-
equals:
|
|
976
|
+
equals: or,
|
|
977
977
|
rv: 0,
|
|
978
978
|
wv: 0
|
|
979
979
|
};
|
|
@@ -981,79 +981,79 @@ function ht(e, t) {
|
|
|
981
981
|
}
|
|
982
982
|
// @__NO_SIDE_EFFECTS__
|
|
983
983
|
function R(e, t) {
|
|
984
|
-
const o =
|
|
985
|
-
return
|
|
984
|
+
const o = pt(e);
|
|
985
|
+
return Vr(o), o;
|
|
986
986
|
}
|
|
987
987
|
// @__NO_SIDE_EFFECTS__
|
|
988
|
-
function
|
|
989
|
-
const n =
|
|
990
|
-
return t || (n.equals =
|
|
988
|
+
function Ir(e, t = !1, o = !0) {
|
|
989
|
+
const n = pt(e);
|
|
990
|
+
return t || (n.equals = nr), n;
|
|
991
991
|
}
|
|
992
992
|
function A(e, t, o = !1) {
|
|
993
993
|
S !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
994
994
|
// to ensure we error if state is set inside an inspect effect
|
|
995
|
-
(!
|
|
996
|
-
let n = o ?
|
|
997
|
-
return
|
|
995
|
+
(!pe || (S.f & Cn) !== 0) && sr() && (S.f & (j | Qe | ln | Cn)) !== 0 && (re === null || !At.call(re, e)) && ji();
|
|
996
|
+
let n = o ? $t(t) : t;
|
|
997
|
+
return Lt(e, n);
|
|
998
998
|
}
|
|
999
|
-
function
|
|
999
|
+
function Lt(e, t) {
|
|
1000
1000
|
if (!e.equals(t)) {
|
|
1001
1001
|
var o = e.v;
|
|
1002
|
-
|
|
1003
|
-
var n =
|
|
1002
|
+
Xe ? Ze.set(e, t) : Ze.set(e, o), e.v = t;
|
|
1003
|
+
var n = ht.ensure();
|
|
1004
1004
|
if (n.capture(e, o), (e.f & j) !== 0) {
|
|
1005
1005
|
const r = (
|
|
1006
1006
|
/** @type {Derived} */
|
|
1007
1007
|
e
|
|
1008
1008
|
);
|
|
1009
|
-
(e.f &
|
|
1009
|
+
(e.f & W) !== 0 && cn(r), an(r);
|
|
1010
1010
|
}
|
|
1011
|
-
e.wv =
|
|
1011
|
+
e.wv = jr(), $r(e, W), x !== null && (x.f & N) !== 0 && (x.f & (me | et)) === 0 && (ee === null ? gs([e]) : ee.push(e)), !n.is_fork && Jo.size > 0 && !Tr && ls();
|
|
1012
1012
|
}
|
|
1013
1013
|
return t;
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1016
|
-
|
|
1017
|
-
for (const e of
|
|
1018
|
-
(e.f &
|
|
1019
|
-
|
|
1015
|
+
function ls() {
|
|
1016
|
+
Tr = !1;
|
|
1017
|
+
for (const e of Jo)
|
|
1018
|
+
(e.f & N) !== 0 && O(e, ge), eo(e) && Ot(e);
|
|
1019
|
+
Jo.clear();
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1021
|
+
function Zt(e) {
|
|
1022
1022
|
A(e, e.v + 1);
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1024
|
+
function $r(e, t) {
|
|
1025
1025
|
var o = e.reactions;
|
|
1026
1026
|
if (o !== null)
|
|
1027
1027
|
for (var n = o.length, r = 0; r < n; r++) {
|
|
1028
|
-
var i = o[r], s = i.f, l = (s &
|
|
1028
|
+
var i = o[r], s = i.f, l = (s & W) === 0;
|
|
1029
1029
|
if (l && O(i, t), (s & j) !== 0) {
|
|
1030
1030
|
var a = (
|
|
1031
1031
|
/** @type {Derived} */
|
|
1032
1032
|
i
|
|
1033
1033
|
);
|
|
1034
|
-
|
|
1035
|
-
} else l && ((s &
|
|
1034
|
+
ve?.delete(a), (s & dt) === 0 && (s & ne && (i.f |= dt), $r(a, ge));
|
|
1035
|
+
} else l && ((s & Qe) !== 0 && Ce !== null && Ce.add(
|
|
1036
1036
|
/** @type {Effect} */
|
|
1037
1037
|
i
|
|
1038
|
-
),
|
|
1038
|
+
), Ie(
|
|
1039
1039
|
/** @type {Effect} */
|
|
1040
1040
|
i
|
|
1041
1041
|
));
|
|
1042
1042
|
}
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1045
|
-
if (typeof e != "object" || e === null ||
|
|
1044
|
+
function $t(e) {
|
|
1045
|
+
if (typeof e != "object" || e === null || fo in e)
|
|
1046
1046
|
return e;
|
|
1047
|
-
const t =
|
|
1048
|
-
if (t !==
|
|
1047
|
+
const t = Qn(e);
|
|
1048
|
+
if (t !== wi && t !== Ti)
|
|
1049
1049
|
return e;
|
|
1050
|
-
var o = /* @__PURE__ */ new Map(), n =
|
|
1051
|
-
if (
|
|
1050
|
+
var o = /* @__PURE__ */ new Map(), n = Xn(e), r = /* @__PURE__ */ R(0), i = ut, s = (l) => {
|
|
1051
|
+
if (ut === i)
|
|
1052
1052
|
return l();
|
|
1053
|
-
var a = S, c =
|
|
1054
|
-
|
|
1053
|
+
var a = S, c = ut;
|
|
1054
|
+
se(null), On(i);
|
|
1055
1055
|
var d = l();
|
|
1056
|
-
return
|
|
1056
|
+
return se(a), On(c), d;
|
|
1057
1057
|
};
|
|
1058
1058
|
return n && o.set("length", /* @__PURE__ */ R(
|
|
1059
1059
|
/** @type {any[]} */
|
|
@@ -1063,7 +1063,7 @@ function It(e) {
|
|
|
1063
1063
|
e,
|
|
1064
1064
|
{
|
|
1065
1065
|
defineProperty(l, a, c) {
|
|
1066
|
-
(!("value" in c) || c.configurable === !1 || c.enumerable === !1 || c.writable === !1) &&
|
|
1066
|
+
(!("value" in c) || c.configurable === !1 || c.enumerable === !1 || c.writable === !1) && Vi();
|
|
1067
1067
|
var d = o.get(a);
|
|
1068
1068
|
return d === void 0 ? s(() => {
|
|
1069
1069
|
var f = /* @__PURE__ */ R(c.value);
|
|
@@ -1074,23 +1074,23 @@ function It(e) {
|
|
|
1074
1074
|
var c = o.get(a);
|
|
1075
1075
|
if (c === void 0) {
|
|
1076
1076
|
if (a in l) {
|
|
1077
|
-
const d = s(() => /* @__PURE__ */ R(
|
|
1078
|
-
o.set(a, d),
|
|
1077
|
+
const d = s(() => /* @__PURE__ */ R(V));
|
|
1078
|
+
o.set(a, d), Zt(r);
|
|
1079
1079
|
}
|
|
1080
1080
|
} else
|
|
1081
|
-
A(c,
|
|
1081
|
+
A(c, V), Zt(r);
|
|
1082
1082
|
return !0;
|
|
1083
1083
|
},
|
|
1084
1084
|
get(l, a, c) {
|
|
1085
|
-
if (a ===
|
|
1085
|
+
if (a === fo)
|
|
1086
1086
|
return e;
|
|
1087
1087
|
var d = o.get(a), f = a in l;
|
|
1088
|
-
if (d === void 0 && (!f ||
|
|
1089
|
-
var g =
|
|
1088
|
+
if (d === void 0 && (!f || St(l, a)?.writable) && (d = s(() => {
|
|
1089
|
+
var g = $t(f ? l[a] : V), h = /* @__PURE__ */ R(g);
|
|
1090
1090
|
return h;
|
|
1091
1091
|
}), o.set(a, d)), d !== void 0) {
|
|
1092
1092
|
var b = p(d);
|
|
1093
|
-
return b ===
|
|
1093
|
+
return b === V ? void 0 : b;
|
|
1094
1094
|
}
|
|
1095
1095
|
return Reflect.get(l, a, c);
|
|
1096
1096
|
},
|
|
@@ -1101,7 +1101,7 @@ function It(e) {
|
|
|
1101
1101
|
d && (c.value = p(d));
|
|
1102
1102
|
} else if (c === void 0) {
|
|
1103
1103
|
var f = o.get(a), b = f?.v;
|
|
1104
|
-
if (f !== void 0 && b !==
|
|
1104
|
+
if (f !== void 0 && b !== V)
|
|
1105
1105
|
return {
|
|
1106
1106
|
enumerable: !0,
|
|
1107
1107
|
configurable: !0,
|
|
@@ -1112,16 +1112,16 @@ function It(e) {
|
|
|
1112
1112
|
return c;
|
|
1113
1113
|
},
|
|
1114
1114
|
has(l, a) {
|
|
1115
|
-
if (a ===
|
|
1115
|
+
if (a === fo)
|
|
1116
1116
|
return !0;
|
|
1117
|
-
var c = o.get(a), d = c !== void 0 && c.v !==
|
|
1118
|
-
if (c !== void 0 ||
|
|
1117
|
+
var c = o.get(a), d = c !== void 0 && c.v !== V || Reflect.has(l, a);
|
|
1118
|
+
if (c !== void 0 || x !== null && (!d || St(l, a)?.writable)) {
|
|
1119
1119
|
c === void 0 && (c = s(() => {
|
|
1120
|
-
var b = d ?
|
|
1120
|
+
var b = d ? $t(l[a]) : V, g = /* @__PURE__ */ R(b);
|
|
1121
1121
|
return g;
|
|
1122
1122
|
}), o.set(a, c));
|
|
1123
1123
|
var f = p(c);
|
|
1124
|
-
if (f ===
|
|
1124
|
+
if (f === V)
|
|
1125
1125
|
return !1;
|
|
1126
1126
|
}
|
|
1127
1127
|
return d;
|
|
@@ -1132,13 +1132,13 @@ function It(e) {
|
|
|
1132
1132
|
for (var g = c; g < /** @type {Source<number>} */
|
|
1133
1133
|
f.v; g += 1) {
|
|
1134
1134
|
var h = o.get(g + "");
|
|
1135
|
-
h !== void 0 ? A(h,
|
|
1135
|
+
h !== void 0 ? A(h, V) : g in l && (h = s(() => /* @__PURE__ */ R(V)), o.set(g + "", h));
|
|
1136
1136
|
}
|
|
1137
1137
|
if (f === void 0)
|
|
1138
|
-
(!b ||
|
|
1138
|
+
(!b || St(l, a)?.writable) && (f = s(() => /* @__PURE__ */ R(void 0)), A(f, $t(c)), o.set(a, f));
|
|
1139
1139
|
else {
|
|
1140
|
-
b = f.v !==
|
|
1141
|
-
var w = s(() =>
|
|
1140
|
+
b = f.v !== V;
|
|
1141
|
+
var w = s(() => $t(c));
|
|
1142
1142
|
A(f, w);
|
|
1143
1143
|
}
|
|
1144
1144
|
var T = Reflect.getOwnPropertyDescriptor(l, a);
|
|
@@ -1150,7 +1150,7 @@ function It(e) {
|
|
|
1150
1150
|
), E = Number(a);
|
|
1151
1151
|
Number.isInteger(E) && E >= $.v && A($, E + 1);
|
|
1152
1152
|
}
|
|
1153
|
-
|
|
1153
|
+
Zt(r);
|
|
1154
1154
|
}
|
|
1155
1155
|
return !0;
|
|
1156
1156
|
},
|
|
@@ -1158,10 +1158,10 @@ function It(e) {
|
|
|
1158
1158
|
p(r);
|
|
1159
1159
|
var a = Reflect.ownKeys(l).filter((f) => {
|
|
1160
1160
|
var b = o.get(f);
|
|
1161
|
-
return b === void 0 || b.v !==
|
|
1161
|
+
return b === void 0 || b.v !== V;
|
|
1162
1162
|
});
|
|
1163
1163
|
for (var [c, d] of o)
|
|
1164
|
-
d.v !==
|
|
1164
|
+
d.v !== V && !(c in l) && a.push(c);
|
|
1165
1165
|
return a;
|
|
1166
1166
|
},
|
|
1167
1167
|
setPrototypeOf() {
|
|
@@ -1170,129 +1170,129 @@ function It(e) {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
);
|
|
1172
1172
|
}
|
|
1173
|
-
var
|
|
1173
|
+
var Pn, kr, Sr, xr;
|
|
1174
1174
|
function Yo() {
|
|
1175
|
-
if (
|
|
1176
|
-
|
|
1175
|
+
if (Pn === void 0) {
|
|
1176
|
+
Pn = window, kr = /Firefox/.test(navigator.userAgent);
|
|
1177
1177
|
var e = Element.prototype, t = Node.prototype, o = Text.prototype;
|
|
1178
|
-
|
|
1178
|
+
Sr = St(t, "firstChild").get, xr = St(t, "nextSibling").get, _n(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), _n(o) && (o.__t = void 0);
|
|
1179
1179
|
}
|
|
1180
1180
|
}
|
|
1181
|
-
function
|
|
1181
|
+
function Re(e = "") {
|
|
1182
1182
|
return document.createTextNode(e);
|
|
1183
1183
|
}
|
|
1184
1184
|
// @__NO_SIDE_EFFECTS__
|
|
1185
|
-
function
|
|
1185
|
+
function Mt(e) {
|
|
1186
1186
|
return (
|
|
1187
1187
|
/** @type {TemplateNode | null} */
|
|
1188
|
-
|
|
1188
|
+
Sr.call(e)
|
|
1189
1189
|
);
|
|
1190
1190
|
}
|
|
1191
1191
|
// @__NO_SIDE_EFFECTS__
|
|
1192
|
-
function
|
|
1192
|
+
function Se(e) {
|
|
1193
1193
|
return (
|
|
1194
1194
|
/** @type {TemplateNode | null} */
|
|
1195
|
-
|
|
1195
|
+
xr.call(e)
|
|
1196
1196
|
);
|
|
1197
1197
|
}
|
|
1198
|
-
function
|
|
1198
|
+
function lo(e, t) {
|
|
1199
1199
|
if (!P)
|
|
1200
|
-
return /* @__PURE__ */
|
|
1201
|
-
var o = /* @__PURE__ */
|
|
1200
|
+
return /* @__PURE__ */ Mt(e);
|
|
1201
|
+
var o = /* @__PURE__ */ Mt(C);
|
|
1202
1202
|
if (o === null)
|
|
1203
|
-
o = C.appendChild(
|
|
1204
|
-
else if (t && o.nodeType !==
|
|
1205
|
-
var n =
|
|
1206
|
-
return o?.before(n),
|
|
1203
|
+
o = C.appendChild(Re());
|
|
1204
|
+
else if (t && o.nodeType !== xo) {
|
|
1205
|
+
var n = Re();
|
|
1206
|
+
return o?.before(n), Y(n), n;
|
|
1207
1207
|
}
|
|
1208
|
-
return t &&
|
|
1208
|
+
return t && dn(
|
|
1209
1209
|
/** @type {Text} */
|
|
1210
1210
|
o
|
|
1211
|
-
),
|
|
1211
|
+
), Y(o), o;
|
|
1212
1212
|
}
|
|
1213
|
-
function
|
|
1213
|
+
function Vo(e, t = !1) {
|
|
1214
1214
|
if (!P) {
|
|
1215
|
-
var o = /* @__PURE__ */
|
|
1216
|
-
return o instanceof Comment && o.data === "" ? /* @__PURE__ */
|
|
1215
|
+
var o = /* @__PURE__ */ Mt(e);
|
|
1216
|
+
return o instanceof Comment && o.data === "" ? /* @__PURE__ */ Se(o) : o;
|
|
1217
1217
|
}
|
|
1218
1218
|
if (t) {
|
|
1219
|
-
if (C?.nodeType !==
|
|
1220
|
-
var n =
|
|
1221
|
-
return C?.before(n),
|
|
1219
|
+
if (C?.nodeType !== xo) {
|
|
1220
|
+
var n = Re();
|
|
1221
|
+
return C?.before(n), Y(n), n;
|
|
1222
1222
|
}
|
|
1223
|
-
|
|
1223
|
+
dn(
|
|
1224
1224
|
/** @type {Text} */
|
|
1225
1225
|
C
|
|
1226
1226
|
);
|
|
1227
1227
|
}
|
|
1228
1228
|
return C;
|
|
1229
1229
|
}
|
|
1230
|
-
function
|
|
1230
|
+
function We(e, t = 1, o = !1) {
|
|
1231
1231
|
let n = P ? C : e;
|
|
1232
1232
|
for (var r; t--; )
|
|
1233
1233
|
r = n, n = /** @type {TemplateNode} */
|
|
1234
|
-
/* @__PURE__ */
|
|
1234
|
+
/* @__PURE__ */ Se(n);
|
|
1235
1235
|
if (!P)
|
|
1236
1236
|
return n;
|
|
1237
1237
|
if (o) {
|
|
1238
|
-
if (n?.nodeType !==
|
|
1239
|
-
var i =
|
|
1240
|
-
return n === null ? r?.after(i) : n.before(i),
|
|
1238
|
+
if (n?.nodeType !== xo) {
|
|
1239
|
+
var i = Re();
|
|
1240
|
+
return n === null ? r?.after(i) : n.before(i), Y(i), i;
|
|
1241
1241
|
}
|
|
1242
|
-
|
|
1242
|
+
dn(
|
|
1243
1243
|
/** @type {Text} */
|
|
1244
1244
|
n
|
|
1245
1245
|
);
|
|
1246
1246
|
}
|
|
1247
|
-
return
|
|
1247
|
+
return Y(n), n;
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function Ar(e) {
|
|
1250
1250
|
e.textContent = "";
|
|
1251
1251
|
}
|
|
1252
|
-
function
|
|
1252
|
+
function _r() {
|
|
1253
1253
|
return !1;
|
|
1254
1254
|
}
|
|
1255
|
-
function
|
|
1255
|
+
function un(e, t, o) {
|
|
1256
1256
|
return (
|
|
1257
1257
|
/** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
|
|
1258
|
-
document.createElementNS(
|
|
1258
|
+
document.createElementNS(Zn, e, void 0)
|
|
1259
1259
|
);
|
|
1260
1260
|
}
|
|
1261
|
-
function
|
|
1261
|
+
function dn(e) {
|
|
1262
1262
|
if (
|
|
1263
1263
|
/** @type {string} */
|
|
1264
1264
|
e.nodeValue.length < 65536
|
|
1265
1265
|
)
|
|
1266
1266
|
return;
|
|
1267
1267
|
let t = e.nextSibling;
|
|
1268
|
-
for (; t !== null && t.nodeType ===
|
|
1268
|
+
for (; t !== null && t.nodeType === xo; )
|
|
1269
1269
|
t.remove(), e.nodeValue += /** @type {string} */
|
|
1270
1270
|
t.nodeValue, t = e.nextSibling;
|
|
1271
1271
|
}
|
|
1272
|
-
function
|
|
1273
|
-
var t = S, o =
|
|
1274
|
-
|
|
1272
|
+
function Cr(e) {
|
|
1273
|
+
var t = S, o = x;
|
|
1274
|
+
se(null), ke(null);
|
|
1275
1275
|
try {
|
|
1276
1276
|
return e();
|
|
1277
1277
|
} finally {
|
|
1278
|
-
|
|
1278
|
+
se(t), ke(o);
|
|
1279
1279
|
}
|
|
1280
1280
|
}
|
|
1281
|
-
function
|
|
1282
|
-
|
|
1281
|
+
function as(e) {
|
|
1282
|
+
x === null && (S === null && Mi(), Li()), Xe && Pi();
|
|
1283
1283
|
}
|
|
1284
|
-
function
|
|
1284
|
+
function cs(e, t) {
|
|
1285
1285
|
var o = t.last;
|
|
1286
1286
|
o === null ? t.last = t.first = e : (o.next = e, e.prev = o, t.last = e);
|
|
1287
1287
|
}
|
|
1288
|
-
function
|
|
1289
|
-
var o =
|
|
1290
|
-
o !== null && (o.f &
|
|
1288
|
+
function xe(e, t) {
|
|
1289
|
+
var o = x;
|
|
1290
|
+
o !== null && (o.f & B) !== 0 && (e |= B);
|
|
1291
1291
|
var n = {
|
|
1292
|
-
ctx:
|
|
1292
|
+
ctx: ie,
|
|
1293
1293
|
deps: null,
|
|
1294
1294
|
nodes: null,
|
|
1295
|
-
f: e |
|
|
1295
|
+
f: e | W | ne,
|
|
1296
1296
|
first: null,
|
|
1297
1297
|
fn: t,
|
|
1298
1298
|
last: null,
|
|
@@ -1304,18 +1304,18 @@ function Se(e, t) {
|
|
|
1304
1304
|
wv: 0,
|
|
1305
1305
|
ac: null
|
|
1306
1306
|
}, r = n;
|
|
1307
|
-
if ((e &
|
|
1308
|
-
|
|
1307
|
+
if ((e & Rt) !== 0)
|
|
1308
|
+
Pt !== null ? Pt.push(n) : Ie(n);
|
|
1309
1309
|
else if (t !== null) {
|
|
1310
1310
|
try {
|
|
1311
|
-
|
|
1311
|
+
Ot(n);
|
|
1312
1312
|
} catch (s) {
|
|
1313
1313
|
throw H(n), s;
|
|
1314
1314
|
}
|
|
1315
1315
|
r.deps === null && r.teardown === null && r.nodes === null && r.first === r.last && // either `null`, or a singular child
|
|
1316
|
-
(r.f &
|
|
1316
|
+
(r.f & mt) === 0 && (r = r.first, (e & Qe) !== 0 && (e & Ct) !== 0 && r !== null && (r.f |= Ct));
|
|
1317
1317
|
}
|
|
1318
|
-
if (r !== null && (r.parent = o, o !== null &&
|
|
1318
|
+
if (r !== null && (r.parent = o, o !== null && cs(r, o), S !== null && (S.f & j) !== 0 && (e & et) === 0)) {
|
|
1319
1319
|
var i = (
|
|
1320
1320
|
/** @type {Derived} */
|
|
1321
1321
|
S
|
|
@@ -1324,125 +1324,125 @@ function Se(e, t) {
|
|
|
1324
1324
|
}
|
|
1325
1325
|
return n;
|
|
1326
1326
|
}
|
|
1327
|
-
function
|
|
1328
|
-
return S !== null && !
|
|
1327
|
+
function fn() {
|
|
1328
|
+
return S !== null && !pe;
|
|
1329
1329
|
}
|
|
1330
|
-
function
|
|
1331
|
-
const t =
|
|
1332
|
-
return O(t,
|
|
1330
|
+
function us(e) {
|
|
1331
|
+
const t = xe(_t, null);
|
|
1332
|
+
return O(t, N), t.teardown = e, t;
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1335
|
-
|
|
1334
|
+
function Ln(e) {
|
|
1335
|
+
as();
|
|
1336
1336
|
var t = (
|
|
1337
1337
|
/** @type {Effect} */
|
|
1338
|
-
|
|
1339
|
-
), o = !S && (t &
|
|
1338
|
+
x.f
|
|
1339
|
+
), o = !S && (t & me) !== 0 && (t & gt) === 0;
|
|
1340
1340
|
if (o) {
|
|
1341
1341
|
var n = (
|
|
1342
1342
|
/** @type {ComponentContext} */
|
|
1343
|
-
|
|
1343
|
+
ie
|
|
1344
1344
|
);
|
|
1345
1345
|
(n.e ?? (n.e = [])).push(e);
|
|
1346
1346
|
} else
|
|
1347
|
-
return
|
|
1347
|
+
return Er(e);
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1350
|
-
return
|
|
1349
|
+
function Er(e) {
|
|
1350
|
+
return xe(Rt | Si, e);
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1353
|
-
|
|
1354
|
-
const t =
|
|
1352
|
+
function ds(e) {
|
|
1353
|
+
ht.ensure();
|
|
1354
|
+
const t = xe(et | mt, e);
|
|
1355
1355
|
return () => {
|
|
1356
1356
|
H(t);
|
|
1357
1357
|
};
|
|
1358
1358
|
}
|
|
1359
|
-
function
|
|
1360
|
-
|
|
1361
|
-
const t =
|
|
1359
|
+
function fs(e) {
|
|
1360
|
+
ht.ensure();
|
|
1361
|
+
const t = xe(et | mt, e);
|
|
1362
1362
|
return (o = {}) => new Promise((n) => {
|
|
1363
|
-
o.outro ?
|
|
1363
|
+
o.outro ? vt(t, () => {
|
|
1364
1364
|
H(t), n(void 0);
|
|
1365
1365
|
}) : (H(t), n(void 0));
|
|
1366
1366
|
});
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1369
|
-
return
|
|
1368
|
+
function Pr(e) {
|
|
1369
|
+
return xe(Rt, e);
|
|
1370
1370
|
}
|
|
1371
|
-
function
|
|
1372
|
-
return
|
|
1371
|
+
function hs(e) {
|
|
1372
|
+
return xe(ln | mt, e);
|
|
1373
1373
|
}
|
|
1374
|
-
function
|
|
1375
|
-
return
|
|
1374
|
+
function hn(e, t = 0) {
|
|
1375
|
+
return xe(_t | t, e);
|
|
1376
1376
|
}
|
|
1377
|
-
function
|
|
1378
|
-
|
|
1379
|
-
|
|
1377
|
+
function ao(e, t = [], o = [], n = []) {
|
|
1378
|
+
Qi(n, t, o, (r) => {
|
|
1379
|
+
xe(_t, () => e(...r.map(p)));
|
|
1380
1380
|
});
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1383
|
-
var o =
|
|
1382
|
+
function pn(e, t = 0) {
|
|
1383
|
+
var o = xe(Qe | t, e);
|
|
1384
1384
|
return o;
|
|
1385
1385
|
}
|
|
1386
|
-
function
|
|
1387
|
-
return
|
|
1386
|
+
function he(e) {
|
|
1387
|
+
return xe(me | mt, e);
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function Lr(e) {
|
|
1390
1390
|
var t = e.teardown;
|
|
1391
1391
|
if (t !== null) {
|
|
1392
|
-
const o =
|
|
1393
|
-
|
|
1392
|
+
const o = Xe, n = S;
|
|
1393
|
+
Mn(!0), se(null);
|
|
1394
1394
|
try {
|
|
1395
1395
|
t.call(null);
|
|
1396
1396
|
} finally {
|
|
1397
|
-
|
|
1397
|
+
Mn(o), se(n);
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
1400
1400
|
}
|
|
1401
|
-
function
|
|
1401
|
+
function vn(e, t = !1) {
|
|
1402
1402
|
var o = e.first;
|
|
1403
1403
|
for (e.first = e.last = null; o !== null; ) {
|
|
1404
1404
|
const r = o.ac;
|
|
1405
|
-
r !== null &&
|
|
1406
|
-
r.abort(
|
|
1405
|
+
r !== null && Cr(() => {
|
|
1406
|
+
r.abort(st);
|
|
1407
1407
|
});
|
|
1408
1408
|
var n = o.next;
|
|
1409
|
-
(o.f &
|
|
1409
|
+
(o.f & et) !== 0 ? o.parent = null : H(o, t), o = n;
|
|
1410
1410
|
}
|
|
1411
1411
|
}
|
|
1412
|
-
function
|
|
1412
|
+
function ps(e) {
|
|
1413
1413
|
for (var t = e.first; t !== null; ) {
|
|
1414
1414
|
var o = t.next;
|
|
1415
|
-
(t.f &
|
|
1415
|
+
(t.f & me) === 0 && H(t), t = o;
|
|
1416
1416
|
}
|
|
1417
1417
|
}
|
|
1418
1418
|
function H(e, t = !0) {
|
|
1419
1419
|
var o = !1;
|
|
1420
|
-
(t || (e.f &
|
|
1420
|
+
(t || (e.f & ki) !== 0) && e.nodes !== null && e.nodes.end !== null && (vs(
|
|
1421
1421
|
e.nodes.start,
|
|
1422
1422
|
/** @type {TemplateNode} */
|
|
1423
1423
|
e.nodes.end
|
|
1424
|
-
), o = !0),
|
|
1424
|
+
), o = !0), vn(e, t && !o), Xt(e, 0), O(e, $e);
|
|
1425
1425
|
var n = e.nodes && e.nodes.t;
|
|
1426
1426
|
if (n !== null)
|
|
1427
1427
|
for (const i of n)
|
|
1428
1428
|
i.stop();
|
|
1429
|
-
|
|
1429
|
+
Lr(e);
|
|
1430
1430
|
var r = e.parent;
|
|
1431
|
-
r !== null && r.first !== null &&
|
|
1431
|
+
r !== null && r.first !== null && Mr(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function vs(e, t) {
|
|
1434
1434
|
for (; e !== null; ) {
|
|
1435
|
-
var o = e === t ? null : /* @__PURE__ */
|
|
1435
|
+
var o = e === t ? null : /* @__PURE__ */ Se(e);
|
|
1436
1436
|
e.remove(), e = o;
|
|
1437
1437
|
}
|
|
1438
1438
|
}
|
|
1439
|
-
function
|
|
1439
|
+
function Mr(e) {
|
|
1440
1440
|
var t = e.parent, o = e.prev, n = e.next;
|
|
1441
1441
|
o !== null && (o.next = n), n !== null && (n.prev = o), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = o));
|
|
1442
1442
|
}
|
|
1443
|
-
function
|
|
1443
|
+
function vt(e, t, o = !0) {
|
|
1444
1444
|
var n = [];
|
|
1445
|
-
|
|
1445
|
+
Or(e, n, !0);
|
|
1446
1446
|
var r = () => {
|
|
1447
1447
|
o && H(e), t && t();
|
|
1448
1448
|
}, i = n.length;
|
|
@@ -1453,31 +1453,31 @@ function pt(e, t, o = !0) {
|
|
|
1453
1453
|
} else
|
|
1454
1454
|
r();
|
|
1455
1455
|
}
|
|
1456
|
-
function
|
|
1457
|
-
if ((e.f &
|
|
1458
|
-
e.f ^=
|
|
1456
|
+
function Or(e, t, o) {
|
|
1457
|
+
if ((e.f & B) === 0) {
|
|
1458
|
+
e.f ^= B;
|
|
1459
1459
|
var n = e.nodes && e.nodes.t;
|
|
1460
1460
|
if (n !== null)
|
|
1461
1461
|
for (const l of n)
|
|
1462
1462
|
(l.is_global || o) && t.push(l);
|
|
1463
1463
|
for (var r = e.first; r !== null; ) {
|
|
1464
|
-
var i = r.next, s = (r.f &
|
|
1464
|
+
var i = r.next, s = (r.f & Ct) !== 0 || // If this is a branch effect without a block effect parent,
|
|
1465
1465
|
// it means the parent block effect was pruned. In that case,
|
|
1466
1466
|
// transparency information was transferred to the branch effect.
|
|
1467
|
-
(r.f &
|
|
1468
|
-
|
|
1467
|
+
(r.f & me) !== 0 && (e.f & Qe) !== 0;
|
|
1468
|
+
Or(r, t, s ? o : !1), r = i;
|
|
1469
1469
|
}
|
|
1470
1470
|
}
|
|
1471
1471
|
}
|
|
1472
|
-
function
|
|
1473
|
-
|
|
1472
|
+
function gn(e) {
|
|
1473
|
+
Rr(e, !0);
|
|
1474
1474
|
}
|
|
1475
|
-
function
|
|
1476
|
-
if ((e.f &
|
|
1477
|
-
e.f ^=
|
|
1475
|
+
function Rr(e, t) {
|
|
1476
|
+
if ((e.f & B) !== 0) {
|
|
1477
|
+
e.f ^= B;
|
|
1478
1478
|
for (var o = e.first; o !== null; ) {
|
|
1479
|
-
var n = o.next, r = (o.f &
|
|
1480
|
-
|
|
1479
|
+
var n = o.next, r = (o.f & Ct) !== 0 || (o.f & me) !== 0;
|
|
1480
|
+
Rr(o, r ? t : !1), o = n;
|
|
1481
1481
|
}
|
|
1482
1482
|
var i = e.nodes && e.nodes.t;
|
|
1483
1483
|
if (i !== null)
|
|
@@ -1485,135 +1485,135 @@ function Or(e, t) {
|
|
|
1485
1485
|
(s.is_global || t) && s.in();
|
|
1486
1486
|
}
|
|
1487
1487
|
}
|
|
1488
|
-
function
|
|
1488
|
+
function mn(e, t) {
|
|
1489
1489
|
if (e.nodes)
|
|
1490
1490
|
for (var o = e.nodes.start, n = e.nodes.end; o !== null; ) {
|
|
1491
|
-
var r = o === n ? null : /* @__PURE__ */
|
|
1491
|
+
var r = o === n ? null : /* @__PURE__ */ Se(o);
|
|
1492
1492
|
t.append(o), o = r;
|
|
1493
1493
|
}
|
|
1494
1494
|
}
|
|
1495
|
-
let
|
|
1496
|
-
function
|
|
1497
|
-
|
|
1495
|
+
let go = !1, Xe = !1;
|
|
1496
|
+
function Mn(e) {
|
|
1497
|
+
Xe = e;
|
|
1498
1498
|
}
|
|
1499
|
-
let S = null,
|
|
1500
|
-
function
|
|
1499
|
+
let S = null, pe = !1;
|
|
1500
|
+
function se(e) {
|
|
1501
1501
|
S = e;
|
|
1502
1502
|
}
|
|
1503
|
-
let
|
|
1504
|
-
function
|
|
1505
|
-
|
|
1503
|
+
let x = null;
|
|
1504
|
+
function ke(e) {
|
|
1505
|
+
x = e;
|
|
1506
1506
|
}
|
|
1507
|
-
let
|
|
1508
|
-
function
|
|
1509
|
-
S !== null && (
|
|
1507
|
+
let re = null;
|
|
1508
|
+
function Vr(e) {
|
|
1509
|
+
S !== null && (re === null ? re = [e] : re.push(e));
|
|
1510
1510
|
}
|
|
1511
|
-
let F = null, K = 0,
|
|
1512
|
-
function
|
|
1513
|
-
|
|
1511
|
+
let F = null, K = 0, ee = null;
|
|
1512
|
+
function gs(e) {
|
|
1513
|
+
ee = e;
|
|
1514
1514
|
}
|
|
1515
|
-
let Nr = 1,
|
|
1516
|
-
function
|
|
1517
|
-
|
|
1515
|
+
let Nr = 1, ct = 0, ut = ct;
|
|
1516
|
+
function On(e) {
|
|
1517
|
+
ut = e;
|
|
1518
1518
|
}
|
|
1519
|
-
function
|
|
1519
|
+
function jr() {
|
|
1520
1520
|
return ++Nr;
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1522
|
+
function eo(e) {
|
|
1523
1523
|
var t = e.f;
|
|
1524
|
-
if ((t &
|
|
1524
|
+
if ((t & W) !== 0)
|
|
1525
1525
|
return !0;
|
|
1526
|
-
if (t & j && (e.f &= ~
|
|
1526
|
+
if (t & j && (e.f &= ~dt), (t & ge) !== 0) {
|
|
1527
1527
|
for (var o = (
|
|
1528
1528
|
/** @type {Value[]} */
|
|
1529
1529
|
e.deps
|
|
1530
1530
|
), n = o.length, r = 0; r < n; r++) {
|
|
1531
1531
|
var i = o[r];
|
|
1532
|
-
if (
|
|
1532
|
+
if (eo(
|
|
1533
1533
|
/** @type {Derived} */
|
|
1534
1534
|
i
|
|
1535
|
-
) &&
|
|
1535
|
+
) && yr(
|
|
1536
1536
|
/** @type {Derived} */
|
|
1537
1537
|
i
|
|
1538
1538
|
), i.wv > e.wv)
|
|
1539
1539
|
return !0;
|
|
1540
1540
|
}
|
|
1541
|
-
(t &
|
|
1541
|
+
(t & ne) !== 0 && // During time traveling we don't want to reset the status so that
|
|
1542
1542
|
// traversal of the graph in the other batches still happens
|
|
1543
|
-
|
|
1543
|
+
ve === null && O(e, N);
|
|
1544
1544
|
}
|
|
1545
1545
|
return !1;
|
|
1546
1546
|
}
|
|
1547
|
-
function
|
|
1547
|
+
function Wr(e, t, o = !0) {
|
|
1548
1548
|
var n = e.reactions;
|
|
1549
|
-
if (n !== null && !(
|
|
1549
|
+
if (n !== null && !(re !== null && At.call(re, e)))
|
|
1550
1550
|
for (var r = 0; r < n.length; r++) {
|
|
1551
1551
|
var i = n[r];
|
|
1552
|
-
(i.f & j) !== 0 ?
|
|
1552
|
+
(i.f & j) !== 0 ? Wr(
|
|
1553
1553
|
/** @type {Derived} */
|
|
1554
1554
|
i,
|
|
1555
1555
|
t,
|
|
1556
1556
|
!1
|
|
1557
|
-
) : t === i && (o ? O(i,
|
|
1557
|
+
) : t === i && (o ? O(i, W) : (i.f & N) !== 0 && O(i, ge), Ie(
|
|
1558
1558
|
/** @type {Effect} */
|
|
1559
1559
|
i
|
|
1560
1560
|
));
|
|
1561
1561
|
}
|
|
1562
1562
|
}
|
|
1563
|
-
function
|
|
1564
|
-
var t, o = F, n = K, r =
|
|
1563
|
+
function Dr(e) {
|
|
1564
|
+
var t, o = F, n = K, r = ee, i = S, s = re, l = ie, a = pe, c = ut, d = e.f;
|
|
1565
1565
|
F = /** @type {null | Value[]} */
|
|
1566
|
-
null, K = 0,
|
|
1567
|
-
e.ac.abort(
|
|
1566
|
+
null, K = 0, ee = null, S = (d & (me | et)) === 0 ? e : null, re = null, Et(e.ctx), pe = !1, ut = ++ct, e.ac !== null && (Cr(() => {
|
|
1567
|
+
e.ac.abort(st);
|
|
1568
1568
|
}), e.ac = null);
|
|
1569
1569
|
try {
|
|
1570
|
-
e.f |=
|
|
1570
|
+
e.f |= Do;
|
|
1571
1571
|
var f = (
|
|
1572
1572
|
/** @type {Function} */
|
|
1573
1573
|
e.fn
|
|
1574
1574
|
), b = f();
|
|
1575
|
-
e.f |=
|
|
1575
|
+
e.f |= gt;
|
|
1576
1576
|
var g = e.deps, h = L?.is_fork;
|
|
1577
1577
|
if (F !== null) {
|
|
1578
1578
|
var w;
|
|
1579
|
-
if (h ||
|
|
1579
|
+
if (h || Xt(e, K), g !== null && K > 0)
|
|
1580
1580
|
for (g.length = K + F.length, w = 0; w < F.length; w++)
|
|
1581
1581
|
g[K + w] = F[w];
|
|
1582
1582
|
else
|
|
1583
1583
|
e.deps = g = F;
|
|
1584
|
-
if (
|
|
1584
|
+
if (fn() && (e.f & ne) !== 0)
|
|
1585
1585
|
for (w = K; w < g.length; w++)
|
|
1586
1586
|
((t = g[w]).reactions ?? (t.reactions = [])).push(e);
|
|
1587
|
-
} else !h && g !== null && K < g.length && (
|
|
1588
|
-
if (
|
|
1587
|
+
} else !h && g !== null && K < g.length && (Xt(e, K), g.length = K);
|
|
1588
|
+
if (sr() && ee !== null && !pe && g !== null && (e.f & (j | ge | W)) === 0)
|
|
1589
1589
|
for (w = 0; w < /** @type {Source[]} */
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1590
|
+
ee.length; w++)
|
|
1591
|
+
Wr(
|
|
1592
|
+
ee[w],
|
|
1593
1593
|
/** @type {Effect} */
|
|
1594
1594
|
e
|
|
1595
1595
|
);
|
|
1596
1596
|
if (i !== null && i !== e) {
|
|
1597
|
-
if (
|
|
1597
|
+
if (ct++, i.deps !== null)
|
|
1598
1598
|
for (let T = 0; T < n; T += 1)
|
|
1599
|
-
i.deps[T].rv =
|
|
1599
|
+
i.deps[T].rv = ct;
|
|
1600
1600
|
if (o !== null)
|
|
1601
1601
|
for (const T of o)
|
|
1602
|
-
T.rv =
|
|
1603
|
-
|
|
1604
|
-
|
|
1602
|
+
T.rv = ct;
|
|
1603
|
+
ee !== null && (r === null ? r = ee : r.push(.../** @type {Source[]} */
|
|
1604
|
+
ee));
|
|
1605
1605
|
}
|
|
1606
1606
|
return (e.f & Ye) !== 0 && (e.f ^= Ye), b;
|
|
1607
1607
|
} catch (T) {
|
|
1608
|
-
return
|
|
1608
|
+
return ar(T);
|
|
1609
1609
|
} finally {
|
|
1610
|
-
e.f ^=
|
|
1610
|
+
e.f ^= Do, F = o, K = n, ee = r, S = i, re = s, Et(l), pe = a, ut = c;
|
|
1611
1611
|
}
|
|
1612
1612
|
}
|
|
1613
|
-
function
|
|
1613
|
+
function ms(e, t) {
|
|
1614
1614
|
let o = t.reactions;
|
|
1615
1615
|
if (o !== null) {
|
|
1616
|
-
var n =
|
|
1616
|
+
var n = bi.call(o, e);
|
|
1617
1617
|
if (n !== -1) {
|
|
1618
1618
|
var r = o.length - 1;
|
|
1619
1619
|
r === 0 ? o = t.reactions = null : (o[n] = o[r], o.pop());
|
|
@@ -1622,114 +1622,114 @@ function gs(e, t) {
|
|
|
1622
1622
|
if (o === null && (t.f & j) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1623
1623
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1624
1624
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1625
|
-
(F === null || !
|
|
1625
|
+
(F === null || !At.call(F, t))) {
|
|
1626
1626
|
var i = (
|
|
1627
1627
|
/** @type {Derived} */
|
|
1628
1628
|
t
|
|
1629
1629
|
);
|
|
1630
|
-
(i.f &
|
|
1630
|
+
(i.f & ne) !== 0 && (i.f ^= ne, i.f &= ~dt), an(i), ss(i), Xt(i, 0);
|
|
1631
1631
|
}
|
|
1632
1632
|
}
|
|
1633
|
-
function
|
|
1633
|
+
function Xt(e, t) {
|
|
1634
1634
|
var o = e.deps;
|
|
1635
1635
|
if (o !== null)
|
|
1636
1636
|
for (var n = t; n < o.length; n++)
|
|
1637
|
-
|
|
1637
|
+
ms(e, o[n]);
|
|
1638
1638
|
}
|
|
1639
|
-
function
|
|
1639
|
+
function Ot(e) {
|
|
1640
1640
|
var t = e.f;
|
|
1641
|
-
if ((t &
|
|
1642
|
-
O(e,
|
|
1643
|
-
var o =
|
|
1644
|
-
|
|
1641
|
+
if ((t & $e) === 0) {
|
|
1642
|
+
O(e, N);
|
|
1643
|
+
var o = x, n = go;
|
|
1644
|
+
x = e, go = !0;
|
|
1645
1645
|
try {
|
|
1646
|
-
(t & (
|
|
1647
|
-
var r =
|
|
1646
|
+
(t & (Qe | sn)) !== 0 ? ps(e) : vn(e), Lr(e);
|
|
1647
|
+
var r = Dr(e);
|
|
1648
1648
|
e.teardown = typeof r == "function" ? r : null, e.wv = Nr;
|
|
1649
1649
|
var i;
|
|
1650
|
-
|
|
1650
|
+
mi && Bi && (e.f & W) !== 0 && e.deps;
|
|
1651
1651
|
} finally {
|
|
1652
|
-
|
|
1652
|
+
go = n, x = o;
|
|
1653
1653
|
}
|
|
1654
1654
|
}
|
|
1655
1655
|
}
|
|
1656
1656
|
function p(e) {
|
|
1657
1657
|
var t = e.f, o = (t & j) !== 0;
|
|
1658
|
-
if (S !== null && !
|
|
1659
|
-
var n =
|
|
1660
|
-
if (!n && (
|
|
1658
|
+
if (S !== null && !pe) {
|
|
1659
|
+
var n = x !== null && (x.f & $e) !== 0;
|
|
1660
|
+
if (!n && (re === null || !At.call(re, e))) {
|
|
1661
1661
|
var r = S.deps;
|
|
1662
|
-
if ((S.f &
|
|
1663
|
-
e.rv <
|
|
1662
|
+
if ((S.f & Do) !== 0)
|
|
1663
|
+
e.rv < ct && (e.rv = ct, F === null && r !== null && r[K] === e ? K++ : F === null ? F = [e] : F.push(e));
|
|
1664
1664
|
else {
|
|
1665
1665
|
(S.deps ?? (S.deps = [])).push(e);
|
|
1666
1666
|
var i = e.reactions;
|
|
1667
|
-
i === null ? e.reactions = [S] :
|
|
1667
|
+
i === null ? e.reactions = [S] : At.call(i, S) || i.push(S);
|
|
1668
1668
|
}
|
|
1669
1669
|
}
|
|
1670
1670
|
}
|
|
1671
|
-
if (
|
|
1672
|
-
return
|
|
1671
|
+
if (Xe && Ze.has(e))
|
|
1672
|
+
return Ze.get(e);
|
|
1673
1673
|
if (o) {
|
|
1674
1674
|
var s = (
|
|
1675
1675
|
/** @type {Derived} */
|
|
1676
1676
|
e
|
|
1677
1677
|
);
|
|
1678
|
-
if (
|
|
1678
|
+
if (Xe) {
|
|
1679
1679
|
var l = s.v;
|
|
1680
|
-
return ((s.f &
|
|
1680
|
+
return ((s.f & N) === 0 && s.reactions !== null || qr(s)) && (l = cn(s)), Ze.set(s, l), l;
|
|
1681
1681
|
}
|
|
1682
|
-
var a = (s.f &
|
|
1683
|
-
|
|
1682
|
+
var a = (s.f & ne) === 0 && !pe && S !== null && (go || (S.f & ne) !== 0), c = (s.f & gt) === 0;
|
|
1683
|
+
eo(s) && (a && (s.f |= ne), yr(s)), a && !c && (wr(s), zr(s));
|
|
1684
1684
|
}
|
|
1685
|
-
if (
|
|
1686
|
-
return
|
|
1685
|
+
if (ve?.has(e))
|
|
1686
|
+
return ve.get(e);
|
|
1687
1687
|
if ((e.f & Ye) !== 0)
|
|
1688
1688
|
throw e.v;
|
|
1689
1689
|
return e.v;
|
|
1690
1690
|
}
|
|
1691
|
-
function
|
|
1692
|
-
if (e.f |=
|
|
1691
|
+
function zr(e) {
|
|
1692
|
+
if (e.f |= ne, e.deps !== null)
|
|
1693
1693
|
for (const t of e.deps)
|
|
1694
|
-
(t.reactions ?? (t.reactions = [])).push(e), (t.f & j) !== 0 && (t.f &
|
|
1694
|
+
(t.reactions ?? (t.reactions = [])).push(e), (t.f & j) !== 0 && (t.f & ne) === 0 && (wr(
|
|
1695
1695
|
/** @type {Derived} */
|
|
1696
1696
|
t
|
|
1697
|
-
),
|
|
1697
|
+
), zr(
|
|
1698
1698
|
/** @type {Derived} */
|
|
1699
1699
|
t
|
|
1700
1700
|
));
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1703
|
-
if (e.v ===
|
|
1702
|
+
function qr(e) {
|
|
1703
|
+
if (e.v === V) return !0;
|
|
1704
1704
|
if (e.deps === null) return !1;
|
|
1705
1705
|
for (const t of e.deps)
|
|
1706
|
-
if (
|
|
1706
|
+
if (Ze.has(t) || (t.f & j) !== 0 && qr(
|
|
1707
1707
|
/** @type {Derived} */
|
|
1708
1708
|
t
|
|
1709
1709
|
))
|
|
1710
1710
|
return !0;
|
|
1711
1711
|
return !1;
|
|
1712
1712
|
}
|
|
1713
|
-
function
|
|
1714
|
-
var t =
|
|
1713
|
+
function Br(e) {
|
|
1714
|
+
var t = pe;
|
|
1715
1715
|
try {
|
|
1716
|
-
return
|
|
1716
|
+
return pe = !0, e();
|
|
1717
1717
|
} finally {
|
|
1718
|
-
|
|
1718
|
+
pe = t;
|
|
1719
1719
|
}
|
|
1720
1720
|
}
|
|
1721
|
-
const
|
|
1722
|
-
function
|
|
1723
|
-
(t[
|
|
1721
|
+
const kt = /* @__PURE__ */ Symbol("events"), Hr = /* @__PURE__ */ new Set(), Zo = /* @__PURE__ */ new Set();
|
|
1722
|
+
function Wt(e, t, o) {
|
|
1723
|
+
(t[kt] ?? (t[kt] = {}))[e] = o;
|
|
1724
1724
|
}
|
|
1725
|
-
function
|
|
1725
|
+
function bs(e) {
|
|
1726
1726
|
for (var t = 0; t < e.length; t++)
|
|
1727
|
-
|
|
1728
|
-
for (var o of
|
|
1727
|
+
Hr.add(e[t]);
|
|
1728
|
+
for (var o of Zo)
|
|
1729
1729
|
o(e);
|
|
1730
1730
|
}
|
|
1731
|
-
let
|
|
1732
|
-
function
|
|
1731
|
+
let Rn = null;
|
|
1732
|
+
function Vn(e) {
|
|
1733
1733
|
var t = this, o = (
|
|
1734
1734
|
/** @type {Node} */
|
|
1735
1735
|
t.ownerDocument
|
|
@@ -1737,13 +1737,13 @@ function Rn(e) {
|
|
|
1737
1737
|
/** @type {null | Element} */
|
|
1738
1738
|
r[0] || e.target
|
|
1739
1739
|
);
|
|
1740
|
-
|
|
1741
|
-
var s = 0, l =
|
|
1740
|
+
Rn = e;
|
|
1741
|
+
var s = 0, l = Rn === e && e[kt];
|
|
1742
1742
|
if (l) {
|
|
1743
1743
|
var a = r.indexOf(l);
|
|
1744
1744
|
if (a !== -1 && (t === document || t === /** @type {any} */
|
|
1745
1745
|
window)) {
|
|
1746
|
-
e[
|
|
1746
|
+
e[kt] = t;
|
|
1747
1747
|
return;
|
|
1748
1748
|
}
|
|
1749
1749
|
var c = r.indexOf(t);
|
|
@@ -1753,20 +1753,20 @@ function Rn(e) {
|
|
|
1753
1753
|
}
|
|
1754
1754
|
if (i = /** @type {Element} */
|
|
1755
1755
|
r[s] || e.target, i !== t) {
|
|
1756
|
-
|
|
1756
|
+
Io(e, "currentTarget", {
|
|
1757
1757
|
configurable: !0,
|
|
1758
1758
|
get() {
|
|
1759
1759
|
return i || o;
|
|
1760
1760
|
}
|
|
1761
1761
|
});
|
|
1762
|
-
var d = S, f =
|
|
1763
|
-
|
|
1762
|
+
var d = S, f = x;
|
|
1763
|
+
se(null), ke(null);
|
|
1764
1764
|
try {
|
|
1765
1765
|
for (var b, g = []; i !== null; ) {
|
|
1766
1766
|
var h = i.assignedSlot || i.parentNode || /** @type {any} */
|
|
1767
1767
|
i.host || null;
|
|
1768
1768
|
try {
|
|
1769
|
-
var w = i[
|
|
1769
|
+
var w = i[kt]?.[n];
|
|
1770
1770
|
w != null && (!/** @type {any} */
|
|
1771
1771
|
i.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1772
1772
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
@@ -1786,67 +1786,67 @@ function Rn(e) {
|
|
|
1786
1786
|
throw b;
|
|
1787
1787
|
}
|
|
1788
1788
|
} finally {
|
|
1789
|
-
e[
|
|
1789
|
+
e[kt] = t, delete e.currentTarget, se(d), ke(f);
|
|
1790
1790
|
}
|
|
1791
1791
|
}
|
|
1792
1792
|
}
|
|
1793
|
-
const
|
|
1793
|
+
const ys = (
|
|
1794
1794
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
1795
1795
|
globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
|
|
1796
1796
|
/** @param {string} html */
|
|
1797
1797
|
createHTML: (e) => e
|
|
1798
1798
|
})
|
|
1799
1799
|
);
|
|
1800
|
-
function
|
|
1800
|
+
function ws(e) {
|
|
1801
1801
|
return (
|
|
1802
1802
|
/** @type {string} */
|
|
1803
|
-
|
|
1803
|
+
ys?.createHTML(e) ?? e
|
|
1804
1804
|
);
|
|
1805
1805
|
}
|
|
1806
|
-
function
|
|
1807
|
-
var t =
|
|
1808
|
-
return t.innerHTML =
|
|
1806
|
+
function Ts(e) {
|
|
1807
|
+
var t = un("template");
|
|
1808
|
+
return t.innerHTML = ws(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1809
1809
|
}
|
|
1810
|
-
function
|
|
1810
|
+
function mo(e, t) {
|
|
1811
1811
|
var o = (
|
|
1812
1812
|
/** @type {Effect} */
|
|
1813
|
-
|
|
1813
|
+
x
|
|
1814
1814
|
);
|
|
1815
1815
|
o.nodes === null && (o.nodes = { start: e, end: t, a: null, t: null });
|
|
1816
1816
|
}
|
|
1817
1817
|
// @__NO_SIDE_EFFECTS__
|
|
1818
|
-
function
|
|
1819
|
-
var o = (t &
|
|
1818
|
+
function bt(e, t) {
|
|
1819
|
+
var o = (t & vi) !== 0, n = (t & gi) !== 0, r, i = !e.startsWith("<!>");
|
|
1820
1820
|
return () => {
|
|
1821
1821
|
if (P)
|
|
1822
|
-
return
|
|
1823
|
-
r === void 0 && (r =
|
|
1824
|
-
/* @__PURE__ */
|
|
1822
|
+
return mo(C, null), C;
|
|
1823
|
+
r === void 0 && (r = Ts(i ? e : "<!>" + e), o || (r = /** @type {TemplateNode} */
|
|
1824
|
+
/* @__PURE__ */ Mt(r)));
|
|
1825
1825
|
var s = (
|
|
1826
1826
|
/** @type {TemplateNode} */
|
|
1827
|
-
n ||
|
|
1827
|
+
n || kr ? document.importNode(r, !0) : r.cloneNode(!0)
|
|
1828
1828
|
);
|
|
1829
1829
|
if (o) {
|
|
1830
1830
|
var l = (
|
|
1831
1831
|
/** @type {TemplateNode} */
|
|
1832
|
-
/* @__PURE__ */
|
|
1832
|
+
/* @__PURE__ */ Mt(s)
|
|
1833
1833
|
), a = (
|
|
1834
1834
|
/** @type {TemplateNode} */
|
|
1835
1835
|
s.lastChild
|
|
1836
1836
|
);
|
|
1837
|
-
|
|
1837
|
+
mo(l, a);
|
|
1838
1838
|
} else
|
|
1839
|
-
|
|
1839
|
+
mo(s, s);
|
|
1840
1840
|
return s;
|
|
1841
1841
|
};
|
|
1842
1842
|
}
|
|
1843
|
-
function
|
|
1843
|
+
function Fe(e, t) {
|
|
1844
1844
|
if (P) {
|
|
1845
1845
|
var o = (
|
|
1846
1846
|
/** @type {Effect & { nodes: EffectNodes }} */
|
|
1847
|
-
|
|
1847
|
+
x
|
|
1848
1848
|
);
|
|
1849
|
-
((o.f &
|
|
1849
|
+
((o.f & gt) === 0 || o.nodes.end === null) && (o.nodes.end = C), _o();
|
|
1850
1850
|
return;
|
|
1851
1851
|
}
|
|
1852
1852
|
e !== null && e.before(
|
|
@@ -1854,48 +1854,48 @@ function He(e, t) {
|
|
|
1854
1854
|
t
|
|
1855
1855
|
);
|
|
1856
1856
|
}
|
|
1857
|
-
const
|
|
1858
|
-
function
|
|
1859
|
-
return
|
|
1857
|
+
const Is = ["touchstart", "touchmove"];
|
|
1858
|
+
function $s(e) {
|
|
1859
|
+
return Is.includes(e);
|
|
1860
1860
|
}
|
|
1861
1861
|
function Nn(e, t) {
|
|
1862
1862
|
var o = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1863
1863
|
o !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = o, e.nodeValue = `${o}`);
|
|
1864
1864
|
}
|
|
1865
|
-
function
|
|
1866
|
-
return
|
|
1865
|
+
function Fr(e, t) {
|
|
1866
|
+
return Gr(e, t);
|
|
1867
1867
|
}
|
|
1868
|
-
function
|
|
1868
|
+
function ks(e, t) {
|
|
1869
1869
|
Yo(), t.intro = t.intro ?? !1;
|
|
1870
1870
|
const o = t.target, n = P, r = C;
|
|
1871
1871
|
try {
|
|
1872
|
-
for (var i = /* @__PURE__ */
|
|
1872
|
+
for (var i = /* @__PURE__ */ Mt(o); i && (i.nodeType !== Qt || /** @type {Comment} */
|
|
1873
1873
|
i.data !== Yn); )
|
|
1874
|
-
i = /* @__PURE__ */
|
|
1874
|
+
i = /* @__PURE__ */ Se(i);
|
|
1875
1875
|
if (!i)
|
|
1876
|
-
throw
|
|
1877
|
-
|
|
1876
|
+
throw xt;
|
|
1877
|
+
Oe(!0), Y(
|
|
1878
1878
|
/** @type {Comment} */
|
|
1879
1879
|
i
|
|
1880
1880
|
);
|
|
1881
|
-
const s =
|
|
1882
|
-
return
|
|
1881
|
+
const s = Gr(e, { ...t, anchor: i });
|
|
1882
|
+
return Oe(!1), /** @type {Exports} */
|
|
1883
1883
|
s;
|
|
1884
1884
|
} catch (s) {
|
|
1885
1885
|
if (s instanceof Error && s.message.split(`
|
|
1886
1886
|
`).some((l) => l.startsWith("https://svelte.dev/e/")))
|
|
1887
1887
|
throw s;
|
|
1888
|
-
return s !==
|
|
1888
|
+
return s !== xt && console.warn("Failed to hydrate: ", s), t.recover === !1 && Ri(), Yo(), Ar(o), Oe(!1), Fr(e, t);
|
|
1889
1889
|
} finally {
|
|
1890
|
-
|
|
1890
|
+
Oe(n), Y(r);
|
|
1891
1891
|
}
|
|
1892
1892
|
}
|
|
1893
|
-
const
|
|
1894
|
-
function
|
|
1893
|
+
const co = /* @__PURE__ */ new Map();
|
|
1894
|
+
function Gr(e, { target: t, anchor: o, props: n = {}, events: r, context: i, intro: s = !0, transformError: l }) {
|
|
1895
1895
|
Yo();
|
|
1896
|
-
var a = void 0, c =
|
|
1897
|
-
var d = o ?? t.appendChild(
|
|
1898
|
-
|
|
1896
|
+
var a = void 0, c = fs(() => {
|
|
1897
|
+
var d = o ?? t.appendChild(Re());
|
|
1898
|
+
Zi(
|
|
1899
1899
|
/** @type {TemplateNode} */
|
|
1900
1900
|
d,
|
|
1901
1901
|
{
|
|
@@ -1903,19 +1903,19 @@ function Fr(e, { target: t, anchor: o, props: n = {}, events: r, context: i, int
|
|
|
1903
1903
|
}
|
|
1904
1904
|
},
|
|
1905
1905
|
(g) => {
|
|
1906
|
-
|
|
1906
|
+
rr({});
|
|
1907
1907
|
var h = (
|
|
1908
1908
|
/** @type {ComponentContext} */
|
|
1909
|
-
|
|
1909
|
+
ie
|
|
1910
1910
|
);
|
|
1911
|
-
if (i && (h.c = i), r && (n.$$events = r), P &&
|
|
1911
|
+
if (i && (h.c = i), r && (n.$$events = r), P && mo(
|
|
1912
1912
|
/** @type {TemplateNode} */
|
|
1913
1913
|
g,
|
|
1914
1914
|
null
|
|
1915
|
-
), a = e(g, n) || {}, P && (
|
|
1916
|
-
C.data !==
|
|
1917
|
-
throw
|
|
1918
|
-
|
|
1915
|
+
), a = e(g, n) || {}, P && (x.nodes.end = C, C === null || C.nodeType !== Qt || /** @type {Comment} */
|
|
1916
|
+
C.data !== rn))
|
|
1917
|
+
throw Ao(), xt;
|
|
1918
|
+
ir();
|
|
1919
1919
|
},
|
|
1920
1920
|
l
|
|
1921
1921
|
);
|
|
@@ -1924,82 +1924,82 @@ function Fr(e, { target: t, anchor: o, props: n = {}, events: r, context: i, int
|
|
|
1924
1924
|
var w = g[h];
|
|
1925
1925
|
if (!f.has(w)) {
|
|
1926
1926
|
f.add(w);
|
|
1927
|
-
var T =
|
|
1928
|
-
for (const
|
|
1929
|
-
var $ =
|
|
1930
|
-
$ === void 0 && ($ = /* @__PURE__ */ new Map(),
|
|
1927
|
+
var T = $s(w);
|
|
1928
|
+
for (const le of [t, document]) {
|
|
1929
|
+
var $ = co.get(le);
|
|
1930
|
+
$ === void 0 && ($ = /* @__PURE__ */ new Map(), co.set(le, $));
|
|
1931
1931
|
var E = $.get(w);
|
|
1932
|
-
E === void 0 ? (
|
|
1932
|
+
E === void 0 ? (le.addEventListener(w, Vn, { passive: T }), $.set(w, 1)) : $.set(w, E + 1);
|
|
1933
1933
|
}
|
|
1934
1934
|
}
|
|
1935
1935
|
}
|
|
1936
1936
|
};
|
|
1937
|
-
return b(
|
|
1937
|
+
return b(So(Hr)), Zo.add(b), () => {
|
|
1938
1938
|
for (var g of f)
|
|
1939
1939
|
for (const T of [t, document]) {
|
|
1940
1940
|
var h = (
|
|
1941
1941
|
/** @type {Map<string, number>} */
|
|
1942
|
-
|
|
1942
|
+
co.get(T)
|
|
1943
1943
|
), w = (
|
|
1944
1944
|
/** @type {number} */
|
|
1945
1945
|
h.get(g)
|
|
1946
1946
|
);
|
|
1947
|
-
--w == 0 ? (T.removeEventListener(g,
|
|
1947
|
+
--w == 0 ? (T.removeEventListener(g, Vn), h.delete(g), h.size === 0 && co.delete(T)) : h.set(g, w);
|
|
1948
1948
|
}
|
|
1949
|
-
|
|
1949
|
+
Zo.delete(b), d !== o && d.parentNode?.removeChild(d);
|
|
1950
1950
|
};
|
|
1951
1951
|
});
|
|
1952
|
-
return
|
|
1952
|
+
return Xo.set(a, c), a;
|
|
1953
1953
|
}
|
|
1954
|
-
let
|
|
1955
|
-
function
|
|
1956
|
-
const o =
|
|
1957
|
-
return o ? (
|
|
1954
|
+
let Xo = /* @__PURE__ */ new WeakMap();
|
|
1955
|
+
function Ss(e, t) {
|
|
1956
|
+
const o = Xo.get(e);
|
|
1957
|
+
return o ? (Xo.delete(e), o(t)) : Promise.resolve();
|
|
1958
1958
|
}
|
|
1959
|
-
var
|
|
1960
|
-
class
|
|
1959
|
+
var be, Ge, ye, Tt, bo, Qo, Ur;
|
|
1960
|
+
class xs {
|
|
1961
1961
|
/**
|
|
1962
1962
|
* @param {TemplateNode} anchor
|
|
1963
1963
|
* @param {boolean} transition
|
|
1964
1964
|
*/
|
|
1965
1965
|
constructor(t, o = !0) {
|
|
1966
|
-
m(this, "anchor"),
|
|
1967
|
-
if (u(this,
|
|
1966
|
+
m(this, "anchor"), k(this, be, /* @__PURE__ */ new Map()), k(this, Ge, /* @__PURE__ */ new Map()), k(this, ye, /* @__PURE__ */ new Map()), k(this, Tt, /* @__PURE__ */ new Set()), k(this, bo, !0), k(this, Qo, (n) => {
|
|
1967
|
+
if (u(this, be).has(n)) {
|
|
1968
1968
|
var r = (
|
|
1969
1969
|
/** @type {Key} */
|
|
1970
|
-
u(this,
|
|
1971
|
-
), i = u(this,
|
|
1970
|
+
u(this, be).get(n)
|
|
1971
|
+
), i = u(this, Ge).get(r);
|
|
1972
1972
|
if (i)
|
|
1973
|
-
|
|
1973
|
+
gn(i), u(this, Tt).delete(r);
|
|
1974
1974
|
else {
|
|
1975
|
-
var s = u(this,
|
|
1976
|
-
s && (s.effect.f &
|
|
1975
|
+
var s = u(this, ye).get(r);
|
|
1976
|
+
s && (s.effect.f & B) === 0 && (u(this, Ge).set(r, s.effect), u(this, ye).delete(r), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), i = s.effect);
|
|
1977
1977
|
}
|
|
1978
|
-
for (const [l, a] of u(this,
|
|
1979
|
-
if (u(this,
|
|
1978
|
+
for (const [l, a] of u(this, be)) {
|
|
1979
|
+
if (u(this, be).delete(l), l === n)
|
|
1980
1980
|
break;
|
|
1981
|
-
const c = u(this,
|
|
1982
|
-
c && (H(c.effect), u(this,
|
|
1981
|
+
const c = u(this, ye).get(a);
|
|
1982
|
+
c && (H(c.effect), u(this, ye).delete(a));
|
|
1983
1983
|
}
|
|
1984
|
-
for (const [l, a] of u(this,
|
|
1985
|
-
if (l === r || u(this,
|
|
1984
|
+
for (const [l, a] of u(this, Ge)) {
|
|
1985
|
+
if (l === r || u(this, Tt).has(l) || (a.f & B) !== 0) continue;
|
|
1986
1986
|
const c = () => {
|
|
1987
|
-
if (Array.from(u(this,
|
|
1987
|
+
if (Array.from(u(this, be).values()).includes(l)) {
|
|
1988
1988
|
var d = document.createDocumentFragment();
|
|
1989
|
-
|
|
1989
|
+
mn(a, d), d.append(Re()), u(this, ye).set(l, { effect: a, fragment: d });
|
|
1990
1990
|
} else
|
|
1991
1991
|
H(a);
|
|
1992
|
-
u(this,
|
|
1992
|
+
u(this, Tt).delete(l), u(this, Ge).delete(l);
|
|
1993
1993
|
};
|
|
1994
|
-
u(this,
|
|
1994
|
+
u(this, bo) || !i ? (u(this, Tt).add(l), vt(a, c, !1)) : c();
|
|
1995
1995
|
}
|
|
1996
1996
|
}
|
|
1997
|
-
}),
|
|
1998
|
-
u(this,
|
|
1999
|
-
const r = Array.from(u(this,
|
|
2000
|
-
for (const [i, s] of u(this,
|
|
2001
|
-
r.includes(i) || (H(s.effect), u(this,
|
|
2002
|
-
}), this.anchor = t, I(this,
|
|
1997
|
+
}), k(this, Ur, (n) => {
|
|
1998
|
+
u(this, be).delete(n);
|
|
1999
|
+
const r = Array.from(u(this, be).values());
|
|
2000
|
+
for (const [i, s] of u(this, ye))
|
|
2001
|
+
r.includes(i) || (H(s.effect), u(this, ye).delete(i));
|
|
2002
|
+
}), this.anchor = t, I(this, bo, o);
|
|
2003
2003
|
}
|
|
2004
2004
|
/**
|
|
2005
2005
|
*
|
|
@@ -2010,46 +2010,46 @@ class Ss {
|
|
|
2010
2010
|
var n = (
|
|
2011
2011
|
/** @type {Batch} */
|
|
2012
2012
|
L
|
|
2013
|
-
), r =
|
|
2014
|
-
o && !u(this,
|
|
2013
|
+
), r = _r();
|
|
2014
|
+
o && !u(this, Ge).has(t) && !u(this, ye).has(t) && u(this, Ge).set(
|
|
2015
2015
|
t,
|
|
2016
|
-
|
|
2017
|
-
), u(this,
|
|
2016
|
+
he(() => o(this.anchor))
|
|
2017
|
+
), u(this, be).set(n, t), r || (P && (this.anchor = C), u(this, Qo).call(this, n));
|
|
2018
2018
|
}
|
|
2019
2019
|
}
|
|
2020
|
-
|
|
2021
|
-
function
|
|
2020
|
+
be = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), bo = /* @__PURE__ */ new WeakMap(), Qo = /* @__PURE__ */ new WeakMap(), Ur = /* @__PURE__ */ new WeakMap();
|
|
2021
|
+
function Dt(e, t, o = !1) {
|
|
2022
2022
|
var n;
|
|
2023
|
-
P && (n = C,
|
|
2024
|
-
var r = new
|
|
2023
|
+
P && (n = C, _o());
|
|
2024
|
+
var r = new xs(e), i = o ? Ct : 0;
|
|
2025
2025
|
function s(l, a) {
|
|
2026
2026
|
if (P) {
|
|
2027
|
-
var c =
|
|
2027
|
+
var c = tr(
|
|
2028
2028
|
/** @type {TemplateNode} */
|
|
2029
2029
|
n
|
|
2030
2030
|
);
|
|
2031
2031
|
if (l !== parseInt(c.substring(1))) {
|
|
2032
|
-
var d =
|
|
2033
|
-
|
|
2032
|
+
var d = $o();
|
|
2033
|
+
Y(d), r.anchor = d, Oe(!1), r.ensure(l, a), Oe(!0);
|
|
2034
2034
|
return;
|
|
2035
2035
|
}
|
|
2036
2036
|
}
|
|
2037
2037
|
r.ensure(l, a);
|
|
2038
2038
|
}
|
|
2039
|
-
|
|
2039
|
+
pn(() => {
|
|
2040
2040
|
var l = !1;
|
|
2041
2041
|
t((a, c = 0) => {
|
|
2042
2042
|
l = !0, s(c, a);
|
|
2043
2043
|
}), l || s(-1, null);
|
|
2044
2044
|
}, i);
|
|
2045
2045
|
}
|
|
2046
|
-
function
|
|
2046
|
+
function As(e, t) {
|
|
2047
2047
|
return t;
|
|
2048
2048
|
}
|
|
2049
|
-
function
|
|
2049
|
+
function _s(e, t, o) {
|
|
2050
2050
|
for (var n = [], r = t.length, i, s = t.length, l = 0; l < r; l++) {
|
|
2051
2051
|
let f = t[l];
|
|
2052
|
-
|
|
2052
|
+
vt(
|
|
2053
2053
|
f,
|
|
2054
2054
|
() => {
|
|
2055
2055
|
if (i) {
|
|
@@ -2058,7 +2058,7 @@ function As(e, t, o) {
|
|
|
2058
2058
|
/** @type {Set<EachOutroGroup>} */
|
|
2059
2059
|
e.outrogroups
|
|
2060
2060
|
);
|
|
2061
|
-
|
|
2061
|
+
en(e, So(i.done)), b.delete(i), b.size === 0 && (e.outrogroups = null);
|
|
2062
2062
|
}
|
|
2063
2063
|
} else
|
|
2064
2064
|
s -= 1;
|
|
@@ -2076,16 +2076,16 @@ function As(e, t, o) {
|
|
|
2076
2076
|
/** @type {Element} */
|
|
2077
2077
|
c.parentNode
|
|
2078
2078
|
);
|
|
2079
|
-
|
|
2079
|
+
Ar(d), d.append(c), e.items.clear();
|
|
2080
2080
|
}
|
|
2081
|
-
|
|
2081
|
+
en(e, t, !a);
|
|
2082
2082
|
} else
|
|
2083
2083
|
i = {
|
|
2084
2084
|
pending: new Set(t),
|
|
2085
2085
|
done: /* @__PURE__ */ new Set()
|
|
2086
2086
|
}, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(i);
|
|
2087
2087
|
}
|
|
2088
|
-
function
|
|
2088
|
+
function en(e, t, o = !0) {
|
|
2089
2089
|
var n;
|
|
2090
2090
|
if (e.pending.size > 0) {
|
|
2091
2091
|
n = /* @__PURE__ */ new Set();
|
|
@@ -2099,159 +2099,159 @@ function Qo(e, t, o = !0) {
|
|
|
2099
2099
|
for (var r = 0; r < t.length; r++) {
|
|
2100
2100
|
var i = t[r];
|
|
2101
2101
|
if (n?.has(i)) {
|
|
2102
|
-
i.f |=
|
|
2102
|
+
i.f |= Me;
|
|
2103
2103
|
const s = document.createDocumentFragment();
|
|
2104
|
-
|
|
2104
|
+
mn(i, s);
|
|
2105
2105
|
} else
|
|
2106
2106
|
H(t[r], o);
|
|
2107
2107
|
}
|
|
2108
2108
|
}
|
|
2109
|
-
var
|
|
2110
|
-
function
|
|
2109
|
+
var uo;
|
|
2110
|
+
function Cs(e, t, o, n, r, i = null) {
|
|
2111
2111
|
var s = e, l = /* @__PURE__ */ new Map();
|
|
2112
|
-
P &&
|
|
2113
|
-
var a = null, c = /* @__PURE__ */
|
|
2112
|
+
P && _o();
|
|
2113
|
+
var a = null, c = /* @__PURE__ */ ns(() => {
|
|
2114
2114
|
var $ = o();
|
|
2115
|
-
return
|
|
2115
|
+
return Xn($) ? $ : $ == null ? [] : So($);
|
|
2116
2116
|
}), d, f = /* @__PURE__ */ new Map(), b = !0;
|
|
2117
2117
|
function g($) {
|
|
2118
|
-
(T.effect.f &
|
|
2118
|
+
(T.effect.f & $e) === 0 && (T.pending.delete($), T.fallback = a, Es(T, d, s, t, n), a !== null && (d.length === 0 ? (a.f & Me) === 0 ? gn(a) : (a.f ^= Me, Gt(a, null, s)) : vt(a, () => {
|
|
2119
2119
|
a = null;
|
|
2120
2120
|
})));
|
|
2121
2121
|
}
|
|
2122
2122
|
function h($) {
|
|
2123
2123
|
T.pending.delete($);
|
|
2124
2124
|
}
|
|
2125
|
-
var w =
|
|
2125
|
+
var w = pn(() => {
|
|
2126
2126
|
d = /** @type {V[]} */
|
|
2127
2127
|
p(c);
|
|
2128
2128
|
var $ = d.length;
|
|
2129
2129
|
let E = !1;
|
|
2130
2130
|
if (P) {
|
|
2131
|
-
var
|
|
2132
|
-
|
|
2131
|
+
var le = tr(s) === nn;
|
|
2132
|
+
le !== ($ === 0) && (s = $o(), Y(s), Oe(!1), E = !0);
|
|
2133
2133
|
}
|
|
2134
|
-
for (var
|
|
2134
|
+
for (var ae = /* @__PURE__ */ new Set(), D = (
|
|
2135
2135
|
/** @type {Batch} */
|
|
2136
2136
|
L
|
|
2137
|
-
),
|
|
2138
|
-
P && C.nodeType ===
|
|
2139
|
-
C.data ===
|
|
2140
|
-
C, E = !0,
|
|
2141
|
-
var X = d[Z],
|
|
2142
|
-
|
|
2137
|
+
), je = _r(), Z = 0; Z < $; Z += 1) {
|
|
2138
|
+
P && C.nodeType === Qt && /** @type {Comment} */
|
|
2139
|
+
C.data === rn && (s = /** @type {Comment} */
|
|
2140
|
+
C, E = !0, Oe(!1));
|
|
2141
|
+
var X = d[Z], yt = n(X, Z), ce = b ? null : l.get(yt);
|
|
2142
|
+
ce ? (ce.v && Lt(ce.v, X), ce.i && Lt(ce.i, Z), je && D.unskip_effect(ce.e)) : (ce = Ps(
|
|
2143
2143
|
l,
|
|
2144
|
-
b ? s :
|
|
2144
|
+
b ? s : uo ?? (uo = Re()),
|
|
2145
2145
|
X,
|
|
2146
|
-
|
|
2146
|
+
yt,
|
|
2147
2147
|
Z,
|
|
2148
2148
|
r,
|
|
2149
2149
|
t,
|
|
2150
2150
|
o
|
|
2151
|
-
), b || (
|
|
2151
|
+
), b || (ce.e.f |= Me), l.set(yt, ce)), ae.add(yt);
|
|
2152
2152
|
}
|
|
2153
|
-
if ($ === 0 && i && !a && (b ? a =
|
|
2154
|
-
if (f.set(
|
|
2155
|
-
for (const [
|
|
2156
|
-
|
|
2157
|
-
|
|
2153
|
+
if ($ === 0 && i && !a && (b ? a = he(() => i(s)) : (a = he(() => i(uo ?? (uo = Re()))), a.f |= Me)), $ > ae.size && Ei(), P && $ > 0 && Y($o()), !b)
|
|
2154
|
+
if (f.set(D, ae), je) {
|
|
2155
|
+
for (const [to, Mo] of l)
|
|
2156
|
+
ae.has(to) || D.skip_effect(Mo.e);
|
|
2157
|
+
D.oncommit(g), D.ondiscard(h);
|
|
2158
2158
|
} else
|
|
2159
|
-
g(
|
|
2160
|
-
E &&
|
|
2159
|
+
g(D);
|
|
2160
|
+
E && Oe(!0), p(c);
|
|
2161
2161
|
}), T = { effect: w, items: l, pending: f, outrogroups: null, fallback: a };
|
|
2162
2162
|
b = !1, P && (s = C);
|
|
2163
2163
|
}
|
|
2164
|
-
function
|
|
2165
|
-
for (; e !== null && (e.f &
|
|
2164
|
+
function zt(e) {
|
|
2165
|
+
for (; e !== null && (e.f & me) === 0; )
|
|
2166
2166
|
e = e.next;
|
|
2167
2167
|
return e;
|
|
2168
2168
|
}
|
|
2169
|
-
function
|
|
2170
|
-
var i = t.length, s = e.items, l =
|
|
2169
|
+
function Es(e, t, o, n, r) {
|
|
2170
|
+
var i = t.length, s = e.items, l = zt(e.effect.first), a, c = null, d = [], f = [], b, g, h, w;
|
|
2171
2171
|
for (w = 0; w < i; w += 1) {
|
|
2172
2172
|
if (b = t[w], g = r(b, w), h = /** @type {EachItem} */
|
|
2173
2173
|
s.get(g).e, e.outrogroups !== null)
|
|
2174
2174
|
for (const X of e.outrogroups)
|
|
2175
2175
|
X.pending.delete(h), X.done.delete(h);
|
|
2176
|
-
if ((h.f &
|
|
2177
|
-
if (h.f ^=
|
|
2178
|
-
|
|
2176
|
+
if ((h.f & Me) !== 0)
|
|
2177
|
+
if (h.f ^= Me, h === l)
|
|
2178
|
+
Gt(h, null, o);
|
|
2179
2179
|
else {
|
|
2180
2180
|
var T = c ? c.next : l;
|
|
2181
|
-
h === e.effect.last && (e.effect.last = h.prev), h.prev && (h.prev.next = h.next), h.next && (h.next.prev = h.prev),
|
|
2181
|
+
h === e.effect.last && (e.effect.last = h.prev), h.prev && (h.prev.next = h.next), h.next && (h.next.prev = h.prev), De(e, c, h), De(e, h, T), Gt(h, T, o), c = h, d = [], f = [], l = zt(c.next);
|
|
2182
2182
|
continue;
|
|
2183
2183
|
}
|
|
2184
|
-
if ((h.f &
|
|
2184
|
+
if ((h.f & B) !== 0 && gn(h), h !== l) {
|
|
2185
2185
|
if (a !== void 0 && a.has(h)) {
|
|
2186
2186
|
if (d.length < f.length) {
|
|
2187
2187
|
var $ = f[0], E;
|
|
2188
2188
|
c = $.prev;
|
|
2189
|
-
var
|
|
2189
|
+
var le = d[0], ae = d[d.length - 1];
|
|
2190
2190
|
for (E = 0; E < d.length; E += 1)
|
|
2191
|
-
|
|
2191
|
+
Gt(d[E], $, o);
|
|
2192
2192
|
for (E = 0; E < f.length; E += 1)
|
|
2193
2193
|
a.delete(f[E]);
|
|
2194
|
-
|
|
2194
|
+
De(e, le.prev, ae.next), De(e, c, le), De(e, ae, $), l = $, c = ae, w -= 1, d = [], f = [];
|
|
2195
2195
|
} else
|
|
2196
|
-
a.delete(h),
|
|
2196
|
+
a.delete(h), Gt(h, l, o), De(e, h.prev, h.next), De(e, h, c === null ? e.effect.first : c.next), De(e, c, h), c = h;
|
|
2197
2197
|
continue;
|
|
2198
2198
|
}
|
|
2199
2199
|
for (d = [], f = []; l !== null && l !== h; )
|
|
2200
|
-
(a ?? (a = /* @__PURE__ */ new Set())).add(l), f.push(l), l =
|
|
2200
|
+
(a ?? (a = /* @__PURE__ */ new Set())).add(l), f.push(l), l = zt(l.next);
|
|
2201
2201
|
if (l === null)
|
|
2202
2202
|
continue;
|
|
2203
2203
|
}
|
|
2204
|
-
(h.f &
|
|
2204
|
+
(h.f & Me) === 0 && d.push(h), c = h, l = zt(h.next);
|
|
2205
2205
|
}
|
|
2206
2206
|
if (e.outrogroups !== null) {
|
|
2207
2207
|
for (const X of e.outrogroups)
|
|
2208
|
-
X.pending.size === 0 && (
|
|
2208
|
+
X.pending.size === 0 && (en(e, So(X.done)), e.outrogroups?.delete(X));
|
|
2209
2209
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
2210
2210
|
}
|
|
2211
2211
|
if (l !== null || a !== void 0) {
|
|
2212
|
-
var
|
|
2212
|
+
var D = [];
|
|
2213
2213
|
if (a !== void 0)
|
|
2214
2214
|
for (h of a)
|
|
2215
|
-
(h.f &
|
|
2215
|
+
(h.f & B) === 0 && D.push(h);
|
|
2216
2216
|
for (; l !== null; )
|
|
2217
|
-
(l.f &
|
|
2218
|
-
var
|
|
2219
|
-
if (
|
|
2217
|
+
(l.f & B) === 0 && l !== e.fallback && D.push(l), l = zt(l.next);
|
|
2218
|
+
var je = D.length;
|
|
2219
|
+
if (je > 0) {
|
|
2220
2220
|
var Z = null;
|
|
2221
|
-
|
|
2221
|
+
_s(e, D, Z);
|
|
2222
2222
|
}
|
|
2223
2223
|
}
|
|
2224
2224
|
}
|
|
2225
|
-
function
|
|
2226
|
-
var a = (s &
|
|
2225
|
+
function Ps(e, t, o, n, r, i, s, l) {
|
|
2226
|
+
var a = (s & fi) !== 0 ? (s & pi) === 0 ? /* @__PURE__ */ Ir(o, !1, !1) : pt(o) : null, c = (s & hi) !== 0 ? pt(r) : null;
|
|
2227
2227
|
return {
|
|
2228
2228
|
v: a,
|
|
2229
2229
|
i: c,
|
|
2230
|
-
e:
|
|
2230
|
+
e: he(() => (i(t, a ?? o, c ?? r, l), () => {
|
|
2231
2231
|
e.delete(n);
|
|
2232
2232
|
}))
|
|
2233
2233
|
};
|
|
2234
2234
|
}
|
|
2235
|
-
function
|
|
2235
|
+
function Gt(e, t, o) {
|
|
2236
2236
|
if (e.nodes)
|
|
2237
|
-
for (var n = e.nodes.start, r = e.nodes.end, i = t && (t.f &
|
|
2237
|
+
for (var n = e.nodes.start, r = e.nodes.end, i = t && (t.f & Me) === 0 ? (
|
|
2238
2238
|
/** @type {EffectNodes} */
|
|
2239
2239
|
t.nodes.start
|
|
2240
2240
|
) : o; n !== null; ) {
|
|
2241
2241
|
var s = (
|
|
2242
2242
|
/** @type {TemplateNode} */
|
|
2243
|
-
/* @__PURE__ */
|
|
2243
|
+
/* @__PURE__ */ Se(n)
|
|
2244
2244
|
);
|
|
2245
2245
|
if (i.before(n), n === r)
|
|
2246
2246
|
return;
|
|
2247
2247
|
n = s;
|
|
2248
2248
|
}
|
|
2249
2249
|
}
|
|
2250
|
-
function
|
|
2250
|
+
function De(e, t, o) {
|
|
2251
2251
|
t === null ? e.effect.first = o : t.next = o, o === null ? e.effect.last = t : o.prev = t;
|
|
2252
2252
|
}
|
|
2253
|
-
function
|
|
2254
|
-
|
|
2253
|
+
function Ls(e, t) {
|
|
2254
|
+
Pr(() => {
|
|
2255
2255
|
var o = e.getRootNode(), n = (
|
|
2256
2256
|
/** @type {ShadowRoot} */
|
|
2257
2257
|
o.host ? (
|
|
@@ -2264,63 +2264,63 @@ function Ps(e, t) {
|
|
|
2264
2264
|
)
|
|
2265
2265
|
);
|
|
2266
2266
|
if (!n.querySelector("#" + t.hash)) {
|
|
2267
|
-
const r =
|
|
2267
|
+
const r = un("style");
|
|
2268
2268
|
r.id = t.hash, r.textContent = t.code, n.appendChild(r);
|
|
2269
2269
|
}
|
|
2270
2270
|
});
|
|
2271
2271
|
}
|
|
2272
|
-
function
|
|
2272
|
+
function Ms(e, t) {
|
|
2273
2273
|
return e == null ? null : String(e);
|
|
2274
2274
|
}
|
|
2275
|
-
function
|
|
2275
|
+
function jn(e, t, o, n) {
|
|
2276
2276
|
var r = e.__style;
|
|
2277
2277
|
if (P || r !== t) {
|
|
2278
|
-
var i =
|
|
2278
|
+
var i = Ms(t);
|
|
2279
2279
|
(!P || i !== e.getAttribute("style")) && (i == null ? e.removeAttribute("style") : e.style.cssText = i), e.__style = t;
|
|
2280
2280
|
}
|
|
2281
2281
|
return n;
|
|
2282
2282
|
}
|
|
2283
|
-
const
|
|
2284
|
-
function
|
|
2283
|
+
const Os = /* @__PURE__ */ Symbol("is custom element"), Rs = /* @__PURE__ */ Symbol("is html"), Vs = _i ? "link" : "LINK";
|
|
2284
|
+
function Wn(e, t, o, n) {
|
|
2285
2285
|
var r = Ns(e);
|
|
2286
|
-
P && (r[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName ===
|
|
2286
|
+
P && (r[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Vs) || r[t] !== (r[t] = o) && (t === "loading" && (e[Ai] = o), o == null ? e.removeAttribute(t) : typeof o != "string" && js(e).includes(t) ? e[t] = o : e.setAttribute(t, o));
|
|
2287
2287
|
}
|
|
2288
2288
|
function Ns(e) {
|
|
2289
2289
|
return (
|
|
2290
2290
|
/** @type {Record<string | symbol, unknown>} **/
|
|
2291
2291
|
// @ts-expect-error
|
|
2292
2292
|
e.__attributes ?? (e.__attributes = {
|
|
2293
|
-
[
|
|
2294
|
-
[
|
|
2293
|
+
[Os]: e.nodeName.includes("-"),
|
|
2294
|
+
[Rs]: e.namespaceURI === Zn
|
|
2295
2295
|
})
|
|
2296
2296
|
);
|
|
2297
2297
|
}
|
|
2298
|
-
var
|
|
2299
|
-
function
|
|
2300
|
-
var t = e.getAttribute("is") || e.nodeName, o =
|
|
2298
|
+
var Dn = /* @__PURE__ */ new Map();
|
|
2299
|
+
function js(e) {
|
|
2300
|
+
var t = e.getAttribute("is") || e.nodeName, o = Dn.get(t);
|
|
2301
2301
|
if (o) return o;
|
|
2302
|
-
|
|
2302
|
+
Dn.set(t, o = []);
|
|
2303
2303
|
for (var n, r = e, i = Element.prototype; i !== r; ) {
|
|
2304
|
-
n =
|
|
2304
|
+
n = yi(r);
|
|
2305
2305
|
for (var s in n)
|
|
2306
2306
|
n[s].set && o.push(s);
|
|
2307
|
-
r =
|
|
2307
|
+
r = Qn(r);
|
|
2308
2308
|
}
|
|
2309
2309
|
return o;
|
|
2310
2310
|
}
|
|
2311
|
-
function
|
|
2312
|
-
return e === t || e?.[
|
|
2311
|
+
function zn(e, t) {
|
|
2312
|
+
return e === t || e?.[fo] === t;
|
|
2313
2313
|
}
|
|
2314
|
-
function
|
|
2315
|
-
return
|
|
2314
|
+
function qn(e = {}, t, o, n) {
|
|
2315
|
+
return Pr(() => {
|
|
2316
2316
|
var r, i;
|
|
2317
|
-
return
|
|
2318
|
-
r = i, i = [],
|
|
2319
|
-
e !== o(...i) && (t(e, ...i), r &&
|
|
2317
|
+
return hn(() => {
|
|
2318
|
+
r = i, i = [], Br(() => {
|
|
2319
|
+
e !== o(...i) && (t(e, ...i), r && zn(o(...r), e) && t(null, ...r));
|
|
2320
2320
|
});
|
|
2321
2321
|
}), () => {
|
|
2322
|
-
|
|
2323
|
-
i &&
|
|
2322
|
+
ft(() => {
|
|
2323
|
+
i && zn(o(...i), e) && t(null, ...i);
|
|
2324
2324
|
});
|
|
2325
2325
|
};
|
|
2326
2326
|
}), e;
|
|
@@ -2341,9 +2341,9 @@ function No(e, t, o, n) {
|
|
|
2341
2341
|
);
|
|
2342
2342
|
return b === void 0 ? s() : (i = !0, b);
|
|
2343
2343
|
};
|
|
2344
|
-
var c = !1, d = /* @__PURE__ */
|
|
2344
|
+
var c = !1, d = /* @__PURE__ */ Eo(() => (c = !1, a())), f = (
|
|
2345
2345
|
/** @type {Effect} */
|
|
2346
|
-
|
|
2346
|
+
x
|
|
2347
2347
|
);
|
|
2348
2348
|
return (
|
|
2349
2349
|
/** @type {() => V} */
|
|
@@ -2352,24 +2352,24 @@ function No(e, t, o, n) {
|
|
|
2352
2352
|
const h = g ? p(d) : b;
|
|
2353
2353
|
return A(d, h), c = !0, r !== void 0 && (r = h), b;
|
|
2354
2354
|
}
|
|
2355
|
-
return
|
|
2355
|
+
return Xe && c || (f.f & $e) !== 0 ? d.v : p(d);
|
|
2356
2356
|
})
|
|
2357
2357
|
);
|
|
2358
2358
|
}
|
|
2359
|
-
function
|
|
2360
|
-
return new
|
|
2359
|
+
function Ws(e) {
|
|
2360
|
+
return new Ds(e);
|
|
2361
2361
|
}
|
|
2362
|
-
var
|
|
2363
|
-
class
|
|
2362
|
+
var Ue, fe;
|
|
2363
|
+
class Ds {
|
|
2364
2364
|
/**
|
|
2365
2365
|
* @param {ComponentConstructorOptions & {
|
|
2366
2366
|
* component: any;
|
|
2367
2367
|
* }} options
|
|
2368
2368
|
*/
|
|
2369
2369
|
constructor(t) {
|
|
2370
|
-
|
|
2370
|
+
k(this, Ue), k(this, fe);
|
|
2371
2371
|
var o = /* @__PURE__ */ new Map(), n = (i, s) => {
|
|
2372
|
-
var l = /* @__PURE__ */
|
|
2372
|
+
var l = /* @__PURE__ */ Ir(s, !1, !1);
|
|
2373
2373
|
return o.set(i, l), l;
|
|
2374
2374
|
};
|
|
2375
2375
|
const r = new Proxy(
|
|
@@ -2379,14 +2379,14 @@ class zs {
|
|
|
2379
2379
|
return p(o.get(s) ?? n(s, Reflect.get(i, s)));
|
|
2380
2380
|
},
|
|
2381
2381
|
has(i, s) {
|
|
2382
|
-
return s ===
|
|
2382
|
+
return s === xi ? !0 : (p(o.get(s) ?? n(s, Reflect.get(i, s))), Reflect.has(i, s));
|
|
2383
2383
|
},
|
|
2384
2384
|
set(i, s, l) {
|
|
2385
2385
|
return A(o.get(s) ?? n(s, l), l), Reflect.set(i, s, l);
|
|
2386
2386
|
}
|
|
2387
2387
|
}
|
|
2388
2388
|
);
|
|
2389
|
-
I(this,
|
|
2389
|
+
I(this, fe, (t.hydrate ? ks : Fr)(t.component, {
|
|
2390
2390
|
target: t.target,
|
|
2391
2391
|
anchor: t.anchor,
|
|
2392
2392
|
props: r,
|
|
@@ -2394,28 +2394,28 @@ class zs {
|
|
|
2394
2394
|
intro: t.intro ?? !1,
|
|
2395
2395
|
recover: t.recover,
|
|
2396
2396
|
transformError: t.transformError
|
|
2397
|
-
})), (!t?.props?.$$host || t.sync === !1) &&
|
|
2398
|
-
for (const i of Object.keys(u(this,
|
|
2399
|
-
i === "$set" || i === "$destroy" || i === "$on" ||
|
|
2397
|
+
})), (!t?.props?.$$host || t.sync === !1) && po(), I(this, Ue, r.$$events);
|
|
2398
|
+
for (const i of Object.keys(u(this, fe)))
|
|
2399
|
+
i === "$set" || i === "$destroy" || i === "$on" || Io(this, i, {
|
|
2400
2400
|
get() {
|
|
2401
|
-
return u(this,
|
|
2401
|
+
return u(this, fe)[i];
|
|
2402
2402
|
},
|
|
2403
2403
|
/** @param {any} value */
|
|
2404
2404
|
set(s) {
|
|
2405
|
-
u(this,
|
|
2405
|
+
u(this, fe)[i] = s;
|
|
2406
2406
|
},
|
|
2407
2407
|
enumerable: !0
|
|
2408
2408
|
});
|
|
2409
|
-
u(this,
|
|
2409
|
+
u(this, fe).$set = /** @param {Record<string, any>} next */
|
|
2410
2410
|
(i) => {
|
|
2411
2411
|
Object.assign(r, i);
|
|
2412
|
-
}, u(this,
|
|
2413
|
-
|
|
2412
|
+
}, u(this, fe).$destroy = () => {
|
|
2413
|
+
Ss(u(this, fe));
|
|
2414
2414
|
};
|
|
2415
2415
|
}
|
|
2416
2416
|
/** @param {Record<string, any>} props */
|
|
2417
2417
|
$set(t) {
|
|
2418
|
-
u(this,
|
|
2418
|
+
u(this, fe).$set(t);
|
|
2419
2419
|
}
|
|
2420
2420
|
/**
|
|
2421
2421
|
* @param {string} event
|
|
@@ -2423,22 +2423,22 @@ class zs {
|
|
|
2423
2423
|
* @returns {any}
|
|
2424
2424
|
*/
|
|
2425
2425
|
$on(t, o) {
|
|
2426
|
-
u(this,
|
|
2426
|
+
u(this, Ue)[t] = u(this, Ue)[t] || [];
|
|
2427
2427
|
const n = (...r) => o.call(this, ...r);
|
|
2428
|
-
return u(this,
|
|
2429
|
-
u(this,
|
|
2428
|
+
return u(this, Ue)[t].push(n), () => {
|
|
2429
|
+
u(this, Ue)[t] = u(this, Ue)[t].filter(
|
|
2430
2430
|
/** @param {any} fn */
|
|
2431
2431
|
(r) => r !== n
|
|
2432
2432
|
);
|
|
2433
2433
|
};
|
|
2434
2434
|
}
|
|
2435
2435
|
$destroy() {
|
|
2436
|
-
u(this,
|
|
2436
|
+
u(this, fe).$destroy();
|
|
2437
2437
|
}
|
|
2438
2438
|
}
|
|
2439
|
-
|
|
2440
|
-
let
|
|
2441
|
-
typeof HTMLElement == "function" && (
|
|
2439
|
+
Ue = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap();
|
|
2440
|
+
let Kr;
|
|
2441
|
+
typeof HTMLElement == "function" && (Kr = class extends HTMLElement {
|
|
2442
2442
|
/**
|
|
2443
2443
|
* @param {*} $$componentCtor
|
|
2444
2444
|
* @param {*} $$slots
|
|
@@ -2474,22 +2474,22 @@ typeof HTMLElement == "function" && (Ur = class extends HTMLElement {
|
|
|
2474
2474
|
if (this.$$cn = !0, !this.$$c) {
|
|
2475
2475
|
let e = function(n) {
|
|
2476
2476
|
return (r) => {
|
|
2477
|
-
const i =
|
|
2478
|
-
n !== "default" && (i.name = n),
|
|
2477
|
+
const i = un("slot");
|
|
2478
|
+
n !== "default" && (i.name = n), Fe(r, i);
|
|
2479
2479
|
};
|
|
2480
2480
|
};
|
|
2481
2481
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
2482
2482
|
return;
|
|
2483
|
-
const t = {}, o =
|
|
2483
|
+
const t = {}, o = zs(this);
|
|
2484
2484
|
for (const n of this.$$s)
|
|
2485
2485
|
n in o && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
|
|
2486
2486
|
for (const n of this.attributes) {
|
|
2487
2487
|
const r = this.$$g_p(n.name);
|
|
2488
|
-
r in this.$$d || (this.$$d[r] =
|
|
2488
|
+
r in this.$$d || (this.$$d[r] = yo(r, n.value, this.$$p_d, "toProp"));
|
|
2489
2489
|
}
|
|
2490
2490
|
for (const n in this.$$p_d)
|
|
2491
2491
|
!(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2492
|
-
this.$$c =
|
|
2492
|
+
this.$$c = Ws({
|
|
2493
2493
|
component: this.$$ctor,
|
|
2494
2494
|
target: this.$$shadowRoot || this,
|
|
2495
2495
|
props: {
|
|
@@ -2497,13 +2497,13 @@ typeof HTMLElement == "function" && (Ur = class extends HTMLElement {
|
|
|
2497
2497
|
$$slots: t,
|
|
2498
2498
|
$$host: this
|
|
2499
2499
|
}
|
|
2500
|
-
}), this.$$me =
|
|
2501
|
-
|
|
2500
|
+
}), this.$$me = ds(() => {
|
|
2501
|
+
hn(() => {
|
|
2502
2502
|
this.$$r = !0;
|
|
2503
|
-
for (const n of
|
|
2503
|
+
for (const n of To(this.$$c)) {
|
|
2504
2504
|
if (!this.$$p_d[n]?.reflect) continue;
|
|
2505
2505
|
this.$$d[n] = this.$$c[n];
|
|
2506
|
-
const r =
|
|
2506
|
+
const r = yo(
|
|
2507
2507
|
n,
|
|
2508
2508
|
this.$$d[n],
|
|
2509
2509
|
this.$$p_d,
|
|
@@ -2530,7 +2530,7 @@ typeof HTMLElement == "function" && (Ur = class extends HTMLElement {
|
|
|
2530
2530
|
* @param {string} newValue
|
|
2531
2531
|
*/
|
|
2532
2532
|
attributeChangedCallback(e, t, o) {
|
|
2533
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
2533
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = yo(e, o, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2534
2534
|
}
|
|
2535
2535
|
disconnectedCallback() {
|
|
2536
2536
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2541,12 +2541,12 @@ typeof HTMLElement == "function" && (Ur = class extends HTMLElement {
|
|
|
2541
2541
|
* @param {string} attribute_name
|
|
2542
2542
|
*/
|
|
2543
2543
|
$$g_p(e) {
|
|
2544
|
-
return
|
|
2544
|
+
return To(this.$$p_d).find(
|
|
2545
2545
|
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
2546
2546
|
) || e;
|
|
2547
2547
|
}
|
|
2548
2548
|
});
|
|
2549
|
-
function
|
|
2549
|
+
function yo(e, t, o, n) {
|
|
2550
2550
|
const r = o[e]?.type;
|
|
2551
2551
|
if (t = r === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !o[e])
|
|
2552
2552
|
return t;
|
|
@@ -2576,7 +2576,7 @@ function bo(e, t, o, n) {
|
|
|
2576
2576
|
return t;
|
|
2577
2577
|
}
|
|
2578
2578
|
}
|
|
2579
|
-
function
|
|
2579
|
+
function zs(e) {
|
|
2580
2580
|
const t = {};
|
|
2581
2581
|
return e.childNodes.forEach((o) => {
|
|
2582
2582
|
t[
|
|
@@ -2585,33 +2585,33 @@ function Ws(e) {
|
|
|
2585
2585
|
] = !0;
|
|
2586
2586
|
}), t;
|
|
2587
2587
|
}
|
|
2588
|
-
function
|
|
2589
|
-
let s = class extends
|
|
2588
|
+
function qs(e, t, o, n, r, i) {
|
|
2589
|
+
let s = class extends Kr {
|
|
2590
2590
|
constructor() {
|
|
2591
2591
|
super(e, o, r), this.$$p_d = t;
|
|
2592
2592
|
}
|
|
2593
2593
|
static get observedAttributes() {
|
|
2594
|
-
return
|
|
2594
|
+
return To(t).map(
|
|
2595
2595
|
(l) => (t[l].attribute || l).toLowerCase()
|
|
2596
2596
|
);
|
|
2597
2597
|
}
|
|
2598
2598
|
};
|
|
2599
|
-
return
|
|
2600
|
-
|
|
2599
|
+
return To(t).forEach((l) => {
|
|
2600
|
+
Io(s.prototype, l, {
|
|
2601
2601
|
get() {
|
|
2602
2602
|
return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
|
|
2603
2603
|
},
|
|
2604
2604
|
set(a) {
|
|
2605
|
-
a =
|
|
2605
|
+
a = yo(l, a, t), this.$$d[l] = a;
|
|
2606
2606
|
var c = this.$$c;
|
|
2607
2607
|
if (c) {
|
|
2608
|
-
var d =
|
|
2608
|
+
var d = St(c, l)?.get;
|
|
2609
2609
|
d ? c[l] = a : c.$set({ [l]: a });
|
|
2610
2610
|
}
|
|
2611
2611
|
}
|
|
2612
2612
|
});
|
|
2613
2613
|
}), n.forEach((l) => {
|
|
2614
|
-
|
|
2614
|
+
Io(s.prototype, l, {
|
|
2615
2615
|
get() {
|
|
2616
2616
|
return this.$$c?.[l];
|
|
2617
2617
|
}
|
|
@@ -2619,12 +2619,12 @@ function Bs(e, t, o, n, r, i) {
|
|
|
2619
2619
|
}), e.element = /** @type {any} */
|
|
2620
2620
|
s, s;
|
|
2621
2621
|
}
|
|
2622
|
-
class
|
|
2622
|
+
class Bs extends Event {
|
|
2623
2623
|
constructor(t, o, n, r) {
|
|
2624
2624
|
super("context-request", { bubbles: !0, composed: !0 }), m(this, "context"), m(this, "contextTarget"), m(this, "callback"), m(this, "subscribe"), this.context = t, this.contextTarget = o, this.callback = n, this.subscribe = r ?? !1;
|
|
2625
2625
|
}
|
|
2626
2626
|
}
|
|
2627
|
-
class
|
|
2627
|
+
class Hs {
|
|
2628
2628
|
constructor(t, o) {
|
|
2629
2629
|
m(this, "host"), m(this, "context"), m(this, "subscribe"), m(this, "onValue"), m(this, "isConnected", !1), m(this, "unsubscribe"), m(this, "currentValue"), m(this, "handleValue", (n, r) => {
|
|
2630
2630
|
r !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = r), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = n, this.onValue?.(n);
|
|
@@ -2640,13 +2640,13 @@ class Ds {
|
|
|
2640
2640
|
return this.currentValue;
|
|
2641
2641
|
}
|
|
2642
2642
|
requestValue() {
|
|
2643
|
-
this.host.dispatchEvent(new
|
|
2643
|
+
this.host.dispatchEvent(new Bs(this.context, this.host, this.handleValue, this.subscribe));
|
|
2644
2644
|
}
|
|
2645
2645
|
}
|
|
2646
|
-
const
|
|
2646
|
+
const Jr = (e) => e, Fs = Jr(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.shellContext")), Gs = Jr(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.regionScopeContext"));
|
|
2647
2647
|
function Yr(e, t, o) {
|
|
2648
2648
|
let n = !1;
|
|
2649
|
-
const r = new
|
|
2649
|
+
const r = new Hs(e, {
|
|
2650
2650
|
context: t,
|
|
2651
2651
|
subscribe: !0,
|
|
2652
2652
|
onValue: (c) => {
|
|
@@ -2670,29 +2670,24 @@ function Yr(e, t, o) {
|
|
|
2670
2670
|
globalThis.clearInterval(a), e.removeEventListener("context-provider", i), r.disconnect();
|
|
2671
2671
|
};
|
|
2672
2672
|
}
|
|
2673
|
-
function Gs(e, t) {
|
|
2674
|
-
return Yr(e, Hs, t);
|
|
2675
|
-
}
|
|
2676
2673
|
function Us(e, t) {
|
|
2677
2674
|
return Yr(e, Fs, t);
|
|
2678
2675
|
}
|
|
2679
|
-
|
|
2676
|
+
function Ks(e, t) {
|
|
2677
|
+
return Yr(e, Gs, t);
|
|
2678
|
+
}
|
|
2679
|
+
var Bn;
|
|
2680
2680
|
(function(e) {
|
|
2681
2681
|
e.TTS_WORD = "tts-word", e.TTS_SENTENCE = "tts-sentence", e.ANNOTATION = "annotation";
|
|
2682
|
-
})(
|
|
2683
|
-
var
|
|
2682
|
+
})(Bn || (Bn = {}));
|
|
2683
|
+
var Ke;
|
|
2684
2684
|
(function(e) {
|
|
2685
2685
|
e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange", e.UNDERLINE = "underline";
|
|
2686
|
-
})(
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
colorScheme: "theme"
|
|
2690
|
-
};
|
|
2691
|
-
function Ys(e) {
|
|
2692
|
-
const t = e.trim();
|
|
2693
|
-
return t ? Ks[t] || t : "";
|
|
2686
|
+
})(Ke || (Ke = {}));
|
|
2687
|
+
function Js(e) {
|
|
2688
|
+
return e.trim() || "";
|
|
2694
2689
|
}
|
|
2695
|
-
const
|
|
2690
|
+
const Ys = [
|
|
2696
2691
|
"assessment",
|
|
2697
2692
|
"section",
|
|
2698
2693
|
"item",
|
|
@@ -2700,16 +2695,16 @@ const Js = [
|
|
|
2700
2695
|
"rubric",
|
|
2701
2696
|
"element"
|
|
2702
2697
|
];
|
|
2703
|
-
function
|
|
2698
|
+
function wo(e, t) {
|
|
2704
2699
|
if (typeof e != "string" || e.trim().length === 0)
|
|
2705
2700
|
throw new Error(`Invalid tool registration: "${t}" must be a non-empty string.`);
|
|
2706
2701
|
}
|
|
2707
|
-
function
|
|
2708
|
-
if (
|
|
2702
|
+
function Hn(e) {
|
|
2703
|
+
if (wo(e.toolId, "toolId"), wo(e.name, "name"), wo(e.description, "description"), typeof e.icon != "string" && typeof e.icon != "function")
|
|
2709
2704
|
throw new Error(`Invalid tool registration "${e.toolId}": "icon" must be a string or function.`);
|
|
2710
2705
|
if (!Array.isArray(e.supportedLevels) || e.supportedLevels.length === 0)
|
|
2711
2706
|
throw new Error(`Invalid tool registration "${e.toolId}": "supportedLevels" must be a non-empty array.`);
|
|
2712
|
-
const t = e.supportedLevels.find((o) => !
|
|
2707
|
+
const t = e.supportedLevels.find((o) => !Ys.includes(o));
|
|
2713
2708
|
if (t)
|
|
2714
2709
|
throw new Error(`Invalid tool registration "${e.toolId}": unsupported level "${t}".`);
|
|
2715
2710
|
if (e.activation !== void 0 && e.activation !== "toolbar-toggle" && e.activation !== "selection-gateway")
|
|
@@ -2733,7 +2728,7 @@ class Zs {
|
|
|
2733
2728
|
* Normalize a single tool alias to canonical toolId.
|
|
2734
2729
|
*/
|
|
2735
2730
|
normalizeToolId(t) {
|
|
2736
|
-
return
|
|
2731
|
+
return Js(t);
|
|
2737
2732
|
}
|
|
2738
2733
|
/**
|
|
2739
2734
|
* Normalize a list of tool aliases to canonical toolIds.
|
|
@@ -2748,7 +2743,7 @@ class Zs {
|
|
|
2748
2743
|
* @throws Error if toolId is already registered
|
|
2749
2744
|
*/
|
|
2750
2745
|
register(t) {
|
|
2751
|
-
if (
|
|
2746
|
+
if (Hn(t), this.tools.has(t.toolId))
|
|
2752
2747
|
throw new Error(`Tool '${t.toolId}' is already registered`);
|
|
2753
2748
|
if (this.tools.set(t.toolId, t), t.pnpSupportIds)
|
|
2754
2749
|
for (const o of t.pnpSupportIds)
|
|
@@ -2760,7 +2755,7 @@ class Zs {
|
|
|
2760
2755
|
* @param registration - New tool registration (must have existing toolId)
|
|
2761
2756
|
*/
|
|
2762
2757
|
override(t) {
|
|
2763
|
-
if (
|
|
2758
|
+
if (Hn(t), !this.tools.has(t.toolId))
|
|
2764
2759
|
throw new Error(`Cannot override non-existent tool '${t.toolId}'`);
|
|
2765
2760
|
const o = this.tools.get(t.toolId);
|
|
2766
2761
|
if (o.pnpSupportIds)
|
|
@@ -2934,7 +2929,7 @@ class Zs {
|
|
|
2934
2929
|
setToolModuleLoaders(t) {
|
|
2935
2930
|
for (const [o, n] of Object.entries(t))
|
|
2936
2931
|
if (n) {
|
|
2937
|
-
if (
|
|
2932
|
+
if (wo(o, "tool module loader id"), typeof n != "function")
|
|
2938
2933
|
throw new Error(`Invalid tool module loader for "${o}": expected a function.`);
|
|
2939
2934
|
this.moduleLoaders.set(o, n);
|
|
2940
2935
|
}
|
|
@@ -2993,7 +2988,7 @@ class Zs {
|
|
|
2993
2988
|
return r.renderToolbar(o, i);
|
|
2994
2989
|
}
|
|
2995
2990
|
}
|
|
2996
|
-
function
|
|
2991
|
+
function Zr(e) {
|
|
2997
2992
|
return e.level === "item";
|
|
2998
2993
|
}
|
|
2999
2994
|
function Xs(e) {
|
|
@@ -3002,11 +2997,11 @@ function Xs(e) {
|
|
|
3002
2997
|
function Qs(e) {
|
|
3003
2998
|
return e.level === "rubric";
|
|
3004
2999
|
}
|
|
3005
|
-
function
|
|
3000
|
+
function Xr(e) {
|
|
3006
3001
|
return e.level === "element";
|
|
3007
3002
|
}
|
|
3008
|
-
function
|
|
3009
|
-
if (
|
|
3003
|
+
function bn(e) {
|
|
3004
|
+
if (Xr(e)) {
|
|
3010
3005
|
const t = e.item.config;
|
|
3011
3006
|
if (!t)
|
|
3012
3007
|
return "";
|
|
@@ -3024,7 +3019,7 @@ function mn(e) {
|
|
|
3024
3019
|
}
|
|
3025
3020
|
return o.filter(Boolean).join(" ").trim();
|
|
3026
3021
|
}
|
|
3027
|
-
if (
|
|
3022
|
+
if (Zr(e)) {
|
|
3028
3023
|
const t = e.item;
|
|
3029
3024
|
if (!t?.config)
|
|
3030
3025
|
return "";
|
|
@@ -3076,8 +3071,8 @@ function mn(e) {
|
|
|
3076
3071
|
}
|
|
3077
3072
|
return "";
|
|
3078
3073
|
}
|
|
3079
|
-
function
|
|
3080
|
-
const t =
|
|
3074
|
+
function Po(e) {
|
|
3075
|
+
const t = bn(e);
|
|
3081
3076
|
return [
|
|
3082
3077
|
/<math[>\s]/i,
|
|
3083
3078
|
// MathML
|
|
@@ -3102,7 +3097,7 @@ function el(e) {
|
|
|
3102
3097
|
"inline-choice",
|
|
3103
3098
|
"select-text"
|
|
3104
3099
|
];
|
|
3105
|
-
if (
|
|
3100
|
+
if (Xr(e)) {
|
|
3106
3101
|
const o = e.item.config;
|
|
3107
3102
|
if (!o?.models)
|
|
3108
3103
|
return !1;
|
|
@@ -3112,7 +3107,7 @@ function el(e) {
|
|
|
3112
3107
|
const r = n.element || "";
|
|
3113
3108
|
return t.includes(r);
|
|
3114
3109
|
}
|
|
3115
|
-
if (
|
|
3110
|
+
if (Zr(e)) {
|
|
3116
3111
|
const o = e.item.config?.models;
|
|
3117
3112
|
return (Array.isArray(o) ? o : o && typeof o == "object" ? Object.values(o) : []).some((n) => {
|
|
3118
3113
|
if (!n || typeof n != "object")
|
|
@@ -3123,11 +3118,11 @@ function el(e) {
|
|
|
3123
3118
|
}
|
|
3124
3119
|
return !1;
|
|
3125
3120
|
}
|
|
3126
|
-
function
|
|
3127
|
-
return
|
|
3121
|
+
function Lo(e) {
|
|
3122
|
+
return bn(e).trim().length >= 10;
|
|
3128
3123
|
}
|
|
3129
3124
|
function tl(e) {
|
|
3130
|
-
const t =
|
|
3125
|
+
const t = bn(e);
|
|
3131
3126
|
return [
|
|
3132
3127
|
/chemistry|chemical|element|atom|molecule|compound/i,
|
|
3133
3128
|
/periodic\s+table/i,
|
|
@@ -3149,7 +3144,7 @@ const ol = [
|
|
|
3149
3144
|
function rl(e) {
|
|
3150
3145
|
return nl.has(e);
|
|
3151
3146
|
}
|
|
3152
|
-
function
|
|
3147
|
+
function yn(e, t, o) {
|
|
3153
3148
|
const n = e.trim(), r = o.trim();
|
|
3154
3149
|
if (!n || !r)
|
|
3155
3150
|
throw new Error("Tool instance ids require non-empty tool and scope ids");
|
|
@@ -3161,6 +3156,13 @@ class il {
|
|
|
3161
3156
|
constructor() {
|
|
3162
3157
|
m(this, "providerId", "desmos-calculator"), m(this, "providerName", "Desmos Calculator"), m(this, "category", "calculator"), m(this, "version", "1.10"), m(this, "requiresAuth", !0), m(this, "desmosProvider", null), m(this, "config", null);
|
|
3163
3158
|
}
|
|
3159
|
+
async emitTelemetry(t, o) {
|
|
3160
|
+
try {
|
|
3161
|
+
await this.config?.onTelemetry?.(t, o);
|
|
3162
|
+
} catch (n) {
|
|
3163
|
+
console.warn("[DesmosToolProvider] telemetry callback failed:", n);
|
|
3164
|
+
}
|
|
3165
|
+
}
|
|
3164
3166
|
/**
|
|
3165
3167
|
* Initialize Desmos calculator provider
|
|
3166
3168
|
*
|
|
@@ -3175,15 +3177,41 @@ class il {
|
|
|
3175
3177
|
return;
|
|
3176
3178
|
}
|
|
3177
3179
|
this.config = t;
|
|
3178
|
-
const o =
|
|
3179
|
-
this.
|
|
3180
|
+
const o = Date.now();
|
|
3181
|
+
await this.emitTelemetry("pie-tool-library-load-start", {
|
|
3182
|
+
toolId: "calculator",
|
|
3183
|
+
operation: "desmos-provider-module-import",
|
|
3184
|
+
backend: "desmos"
|
|
3185
|
+
});
|
|
3186
|
+
const n = await (async () => {
|
|
3187
|
+
try {
|
|
3188
|
+
const r = await import("./index-QLtHZ4Yz-B0r-CUMY.js");
|
|
3189
|
+
return await this.emitTelemetry("pie-tool-library-load-success", {
|
|
3190
|
+
toolId: "calculator",
|
|
3191
|
+
operation: "desmos-provider-module-import",
|
|
3192
|
+
backend: "desmos",
|
|
3193
|
+
duration: Date.now() - o
|
|
3194
|
+
}), r;
|
|
3195
|
+
} catch (r) {
|
|
3196
|
+
throw await this.emitTelemetry("pie-tool-library-load-error", {
|
|
3197
|
+
toolId: "calculator",
|
|
3198
|
+
operation: "desmos-provider-module-import",
|
|
3199
|
+
backend: "desmos",
|
|
3200
|
+
duration: Date.now() - o,
|
|
3201
|
+
errorType: "ToolLibraryLoadError",
|
|
3202
|
+
message: r instanceof Error ? r.message : String(r)
|
|
3203
|
+
}), r;
|
|
3204
|
+
}
|
|
3205
|
+
})();
|
|
3206
|
+
this.desmosProvider = new n.DesmosCalculatorProvider();
|
|
3180
3207
|
try {
|
|
3181
3208
|
await this.desmosProvider.initialize({
|
|
3182
3209
|
apiKey: t.apiKey,
|
|
3183
|
-
proxyEndpoint: t.proxyEndpoint
|
|
3210
|
+
proxyEndpoint: t.proxyEndpoint,
|
|
3211
|
+
onTelemetry: t.onTelemetry
|
|
3184
3212
|
}), console.log(`[DesmosToolProvider] Initialized successfully ${t.proxyEndpoint ? "(using proxy)" : t.apiKey ? "(direct API key)" : "(no auth)"}`);
|
|
3185
|
-
} catch (
|
|
3186
|
-
throw console.error("[DesmosToolProvider] Initialization failed:",
|
|
3213
|
+
} catch (r) {
|
|
3214
|
+
throw console.error("[DesmosToolProvider] Initialization failed:", r), new Error("Failed to initialize Desmos calculator provider. Check API key or proxy endpoint.");
|
|
3187
3215
|
}
|
|
3188
3216
|
}
|
|
3189
3217
|
/**
|
|
@@ -3439,6 +3467,13 @@ class cl {
|
|
|
3439
3467
|
constructor(t = "browser") {
|
|
3440
3468
|
m(this, "providerId", "tts-service"), m(this, "providerName", "Text-to-Speech"), m(this, "category", "tts"), m(this, "version", "1.0"), m(this, "requiresAuth"), m(this, "ttsProvider", null), m(this, "config", null), this.requiresAuth = t !== "browser";
|
|
3441
3469
|
}
|
|
3470
|
+
async emitTelemetry(t, o) {
|
|
3471
|
+
try {
|
|
3472
|
+
await this.config?.onTelemetry?.(t, o);
|
|
3473
|
+
} catch (n) {
|
|
3474
|
+
console.warn("[TTSToolProvider] telemetry callback failed:", n);
|
|
3475
|
+
}
|
|
3476
|
+
}
|
|
3442
3477
|
/**
|
|
3443
3478
|
* Initialize TTS provider
|
|
3444
3479
|
*
|
|
@@ -3480,8 +3515,33 @@ class cl {
|
|
|
3480
3515
|
async _initializeServerTTS(t) {
|
|
3481
3516
|
if (!t.apiEndpoint)
|
|
3482
3517
|
throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
|
|
3483
|
-
const o =
|
|
3484
|
-
this.
|
|
3518
|
+
const o = Date.now();
|
|
3519
|
+
await this.emitTelemetry("pie-tool-library-load-start", {
|
|
3520
|
+
toolId: "tts",
|
|
3521
|
+
operation: "server-provider-module-import",
|
|
3522
|
+
backend: t.serverProvider || t.backend
|
|
3523
|
+
});
|
|
3524
|
+
const n = await (async () => {
|
|
3525
|
+
try {
|
|
3526
|
+
const r = await import("./index-BRKsQ6Im-_GY8ip1I.js");
|
|
3527
|
+
return await this.emitTelemetry("pie-tool-library-load-success", {
|
|
3528
|
+
toolId: "tts",
|
|
3529
|
+
operation: "server-provider-module-import",
|
|
3530
|
+
backend: t.serverProvider || t.backend,
|
|
3531
|
+
duration: Date.now() - o
|
|
3532
|
+
}), r;
|
|
3533
|
+
} catch (r) {
|
|
3534
|
+
throw await this.emitTelemetry("pie-tool-library-load-error", {
|
|
3535
|
+
toolId: "tts",
|
|
3536
|
+
operation: "server-provider-module-import",
|
|
3537
|
+
backend: t.serverProvider || t.backend,
|
|
3538
|
+
duration: Date.now() - o,
|
|
3539
|
+
errorType: "ToolLibraryLoadError",
|
|
3540
|
+
message: r instanceof Error ? r.message : String(r)
|
|
3541
|
+
}), r;
|
|
3542
|
+
}
|
|
3543
|
+
})();
|
|
3544
|
+
this.ttsProvider = new n.ServerTTSProvider(), console.log(`[TTSToolProvider] Server TTS initialized (provider: ${t.serverProvider || t.backend})`);
|
|
3485
3545
|
}
|
|
3486
3546
|
/**
|
|
3487
3547
|
* Create a TTS provider instance
|
|
@@ -3562,7 +3622,7 @@ const ul = /* @__PURE__ */ new Set([
|
|
|
3562
3622
|
if (!dl.test(o))
|
|
3563
3623
|
throw new Error(`Invalid ${t} "${o}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
|
|
3564
3624
|
return o;
|
|
3565
|
-
},
|
|
3625
|
+
}, Qr = {
|
|
3566
3626
|
calculator: "pie-tool-calculator",
|
|
3567
3627
|
textToSpeech: "pie-tool-text-to-speech",
|
|
3568
3628
|
ruler: "pie-tool-ruler",
|
|
@@ -3576,9 +3636,9 @@ const ul = /* @__PURE__ */ new Set([
|
|
|
3576
3636
|
graph: "pie-tool-graph",
|
|
3577
3637
|
periodicTable: "pie-tool-periodic-table"
|
|
3578
3638
|
}, hl = (e, t) => {
|
|
3579
|
-
const o = t?.toolTagMap?.[e] ??
|
|
3639
|
+
const o = t?.toolTagMap?.[e] ?? Qr[e] ?? e;
|
|
3580
3640
|
return fl(o, `tool component tag for "${e}"`);
|
|
3581
|
-
}, pl = (e) => document.createElement(e),
|
|
3641
|
+
}, pl = (e) => document.createElement(e), Ae = (e, t, o, n) => {
|
|
3582
3642
|
const r = hl(e, n), i = n?.toolComponentFactories?.[e] ?? n?.toolComponentFactory;
|
|
3583
3643
|
return i ? i({ toolId: e, tagName: r, context: t, toolbarContext: o }) : pl(r);
|
|
3584
3644
|
}, vl = {
|
|
@@ -3625,10 +3685,10 @@ const ul = /* @__PURE__ */ new Set([
|
|
|
3625
3685
|
* (MathML, LaTeX, arithmetic markers).
|
|
3626
3686
|
*/
|
|
3627
3687
|
isVisibleInContext(e) {
|
|
3628
|
-
return
|
|
3688
|
+
return Po(e);
|
|
3629
3689
|
},
|
|
3630
3690
|
renderToolbar(e, t) {
|
|
3631
|
-
const o =
|
|
3691
|
+
const o = yn(this.toolId, t.scope.level, t.scope.scopeId), n = t.componentOverrides, r = Ae(this.toolId, e, t, n);
|
|
3632
3692
|
r.setAttribute("tool-id", o), r.toolkitCoordinator = t.toolkitCoordinator;
|
|
3633
3693
|
const i = {
|
|
3634
3694
|
toolId: this.toolId,
|
|
@@ -3670,11 +3730,38 @@ const ul = /* @__PURE__ */ new Set([
|
|
|
3670
3730
|
}
|
|
3671
3731
|
};
|
|
3672
3732
|
}
|
|
3673
|
-
},
|
|
3674
|
-
const t =
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
const
|
|
3733
|
+
}, Fn = (e) => e && typeof e == "object" ? e : {}, gl = (e) => e === "polly" || e === "google" || e === "server", Q = (e, t) => e === void 0 ? t : e, ml = (e) => {
|
|
3734
|
+
const t = e.backend || "browser";
|
|
3735
|
+
if (!gl(t))
|
|
3736
|
+
return e;
|
|
3737
|
+
const o = {
|
|
3738
|
+
...e,
|
|
3739
|
+
apiEndpoint: Q(e.apiEndpoint, "/api/tts"),
|
|
3740
|
+
transportMode: Q(e.transportMode, "pie"),
|
|
3741
|
+
endpointValidationMode: Q(e.endpointValidationMode, "voices"),
|
|
3742
|
+
validateEndpoint: Q(e.validateEndpoint, !0),
|
|
3743
|
+
includeAuthOnAssetFetch: Q(e.includeAuthOnAssetFetch, !1),
|
|
3744
|
+
rate: Q(e.rate, 1),
|
|
3745
|
+
language: Q(e.language, "en-US")
|
|
3746
|
+
};
|
|
3747
|
+
return t === "polly" ? {
|
|
3748
|
+
...o,
|
|
3749
|
+
defaultVoice: Q(o.defaultVoice, "Joanna"),
|
|
3750
|
+
engine: Q(o.engine, "neural"),
|
|
3751
|
+
format: Q(o.format, "mp3"),
|
|
3752
|
+
speechMarksMode: Q(o.speechMarksMode, "word+sentence")
|
|
3753
|
+
} : t === "google" ? {
|
|
3754
|
+
...o,
|
|
3755
|
+
defaultVoice: Q(o.defaultVoice, "en-US-Wavenet-A")
|
|
3756
|
+
} : o;
|
|
3757
|
+
}, jo = (e) => {
|
|
3758
|
+
const t = Fn(e), o = Fn(e?.settings);
|
|
3759
|
+
return ml({
|
|
3760
|
+
...t,
|
|
3761
|
+
...o
|
|
3762
|
+
});
|
|
3763
|
+
}, tn = (e) => e.backend || "browser", ei = (e, t) => e.serverProvider || e.provider || (t === "polly" || t === "google" ? t : void 0), ti = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), bl = (e) => {
|
|
3764
|
+
const t = tn(e), o = ei(e, t), n = ti(e, o);
|
|
3678
3765
|
return {
|
|
3679
3766
|
voice: e.defaultVoice,
|
|
3680
3767
|
rate: e.rate,
|
|
@@ -3700,9 +3787,9 @@ const ul = /* @__PURE__ */ new Set([
|
|
|
3700
3787
|
includeAuthOnAssetFetch: e.includeAuthOnAssetFetch,
|
|
3701
3788
|
validateEndpoint: e.validateEndpoint
|
|
3702
3789
|
};
|
|
3703
|
-
},
|
|
3790
|
+
}, qt = /* @__PURE__ */ new Map(), yl = "__pieToolElementUnmount", Gn = Object.freeze([1.5, 2]), wl = (e) => {
|
|
3704
3791
|
if (!Array.isArray(e))
|
|
3705
|
-
return [...
|
|
3792
|
+
return [...Gn];
|
|
3706
3793
|
const t = /* @__PURE__ */ new Set();
|
|
3707
3794
|
for (const o of e) {
|
|
3708
3795
|
if (typeof o != "number" || !Number.isFinite(o) || o <= 0)
|
|
@@ -3710,8 +3797,8 @@ const ul = /* @__PURE__ */ new Set([
|
|
|
3710
3797
|
const n = Math.round(o * 100) / 100;
|
|
3711
3798
|
n !== 1 && t.add(n);
|
|
3712
3799
|
}
|
|
3713
|
-
return t.size ? Array.from(t) : [...
|
|
3714
|
-
},
|
|
3800
|
+
return t.size ? Array.from(t) : [...Gn];
|
|
3801
|
+
}, Tl = {
|
|
3715
3802
|
toolId: "textToSpeech",
|
|
3716
3803
|
name: "Text to Speech",
|
|
3717
3804
|
description: "Read content aloud",
|
|
@@ -3719,16 +3806,16 @@ const ul = /* @__PURE__ */ new Set([
|
|
|
3719
3806
|
provider: {
|
|
3720
3807
|
getProviderId: () => "tts",
|
|
3721
3808
|
createProvider: (e) => {
|
|
3722
|
-
const t =
|
|
3723
|
-
return new cl(
|
|
3809
|
+
const t = jo(e);
|
|
3810
|
+
return new cl(tn(t));
|
|
3724
3811
|
},
|
|
3725
3812
|
getInitConfig: (e) => {
|
|
3726
|
-
const t =
|
|
3813
|
+
const t = jo(e), o = tn(t), n = ei(t, o), r = ti(t, n);
|
|
3727
3814
|
return {
|
|
3728
3815
|
backend: o,
|
|
3729
3816
|
serverProvider: n,
|
|
3730
3817
|
transportMode: r,
|
|
3731
|
-
...
|
|
3818
|
+
...bl(t)
|
|
3732
3819
|
};
|
|
3733
3820
|
},
|
|
3734
3821
|
getAuthFetcher: (e) => {
|
|
@@ -3758,20 +3845,20 @@ const ul = /* @__PURE__ */ new Set([
|
|
|
3758
3845
|
* - Context contains readable text (at least 10 characters)
|
|
3759
3846
|
*/
|
|
3760
3847
|
isVisibleInContext(e) {
|
|
3761
|
-
return
|
|
3848
|
+
return Lo(e);
|
|
3762
3849
|
},
|
|
3763
3850
|
renderToolbar(e, t) {
|
|
3764
3851
|
const o = () => {
|
|
3765
|
-
const s =
|
|
3766
|
-
return
|
|
3767
|
-
}, n =
|
|
3852
|
+
const s = jo(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0);
|
|
3853
|
+
return wl(s.speedOptions);
|
|
3854
|
+
}, n = yn(this.toolId, t.scope.level, t.scope.scopeId), r = () => {
|
|
3768
3855
|
const s = t.ui?.size;
|
|
3769
3856
|
return s === "sm" || s === "lg" ? s : "md";
|
|
3770
3857
|
}, i = () => {
|
|
3771
|
-
let s =
|
|
3772
|
-
return s && typeof s.isConnected == "boolean" && !s.isConnected && (
|
|
3773
|
-
|
|
3774
|
-
},
|
|
3858
|
+
let s = qt.get(n);
|
|
3859
|
+
return s && typeof s.isConnected == "boolean" && !s.isConnected && (qt.delete(n), s = void 0), s || (s = document.createElement("pie-tool-tts-inline"), s[yl] = () => {
|
|
3860
|
+
qt.get(n) === s && qt.delete(n);
|
|
3861
|
+
}, qt.set(n, s)), s.setAttribute("tool-id", n), s.setAttribute("catalog-id", t.catalogId || t.itemId), s.setAttribute("language", t.language || "en-US"), s.setAttribute("size", r()), s.speedOptions = o(), s;
|
|
3775
3862
|
};
|
|
3776
3863
|
return {
|
|
3777
3864
|
toolId: this.toolId,
|
|
@@ -3784,15 +3871,13 @@ const ul = /* @__PURE__ */ new Set([
|
|
|
3784
3871
|
],
|
|
3785
3872
|
sync: () => {
|
|
3786
3873
|
const s = i();
|
|
3787
|
-
s.setAttribute("tool-id", n), s.setAttribute("catalog-id", t.catalogId || t.itemId), s.setAttribute("language", t.language || "en-US"), s.setAttribute("size", r()), s.speedOptions = o()
|
|
3788
|
-
console.error("[ttsToolRegistration] Failed to initialize TTS service:", l);
|
|
3789
|
-
});
|
|
3874
|
+
s.setAttribute("tool-id", n), s.setAttribute("catalog-id", t.catalogId || t.itemId), s.setAttribute("language", t.language || "en-US"), s.setAttribute("size", r()), s.speedOptions = o();
|
|
3790
3875
|
}
|
|
3791
3876
|
};
|
|
3792
3877
|
}
|
|
3793
3878
|
};
|
|
3794
|
-
function
|
|
3795
|
-
const o =
|
|
3879
|
+
function Ve(e, t) {
|
|
3880
|
+
const o = yn(e, t.scope.level, t.scope.scopeId);
|
|
3796
3881
|
return {
|
|
3797
3882
|
fullToolId: o,
|
|
3798
3883
|
isActive: () => t.isToolVisible(o),
|
|
@@ -3806,7 +3891,7 @@ function Ne(e) {
|
|
|
3806
3891
|
const t = e.isActive();
|
|
3807
3892
|
e.button.active = t, e.overlay.visible = t, e.onActiveChange?.(t);
|
|
3808
3893
|
}
|
|
3809
|
-
const
|
|
3894
|
+
const Il = {
|
|
3810
3895
|
toolId: "ruler",
|
|
3811
3896
|
name: "Ruler",
|
|
3812
3897
|
description: "On-screen ruler for measurements",
|
|
@@ -3825,10 +3910,10 @@ const wl = {
|
|
|
3825
3910
|
* Pass 2: Ruler is relevant when math content is present
|
|
3826
3911
|
*/
|
|
3827
3912
|
isVisibleInContext(e) {
|
|
3828
|
-
return
|
|
3913
|
+
return Po(e);
|
|
3829
3914
|
},
|
|
3830
3915
|
renderToolbar(e, t) {
|
|
3831
|
-
const o =
|
|
3916
|
+
const o = Ve(this.toolId, t), n = {
|
|
3832
3917
|
toolId: this.toolId,
|
|
3833
3918
|
label: this.name,
|
|
3834
3919
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -3837,7 +3922,7 @@ const wl = {
|
|
|
3837
3922
|
tooltip: "Ruler",
|
|
3838
3923
|
onClick: () => t.toggleTool(this.toolId),
|
|
3839
3924
|
active: o.isActive()
|
|
3840
|
-
}, r = t.componentOverrides ?? {}, i =
|
|
3925
|
+
}, r = t.componentOverrides ?? {}, i = Ae(this.toolId, e, t, r);
|
|
3841
3926
|
return i.setAttribute("tool-id", o.fullToolId), {
|
|
3842
3927
|
toolId: this.toolId,
|
|
3843
3928
|
button: n,
|
|
@@ -3852,7 +3937,7 @@ const wl = {
|
|
|
3852
3937
|
subscribeActive: o.subscribeActive
|
|
3853
3938
|
};
|
|
3854
3939
|
}
|
|
3855
|
-
},
|
|
3940
|
+
}, $l = {
|
|
3856
3941
|
toolId: "protractor",
|
|
3857
3942
|
name: "Protractor",
|
|
3858
3943
|
description: "On-screen protractor for angle measurements",
|
|
@@ -3871,10 +3956,10 @@ const wl = {
|
|
|
3871
3956
|
* Pass 2: Protractor is relevant when math content is present
|
|
3872
3957
|
*/
|
|
3873
3958
|
isVisibleInContext(e) {
|
|
3874
|
-
return
|
|
3959
|
+
return Po(e);
|
|
3875
3960
|
},
|
|
3876
3961
|
renderToolbar(e, t) {
|
|
3877
|
-
const o =
|
|
3962
|
+
const o = Ve(this.toolId, t), n = {
|
|
3878
3963
|
toolId: this.toolId,
|
|
3879
3964
|
label: this.name,
|
|
3880
3965
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -3883,7 +3968,7 @@ const wl = {
|
|
|
3883
3968
|
tooltip: "Protractor",
|
|
3884
3969
|
onClick: () => t.toggleTool(this.toolId),
|
|
3885
3970
|
active: o.isActive()
|
|
3886
|
-
}, r = t.componentOverrides ?? {}, i =
|
|
3971
|
+
}, r = t.componentOverrides ?? {}, i = Ae(this.toolId, e, t, r);
|
|
3887
3972
|
return i.setAttribute("tool-id", o.fullToolId), {
|
|
3888
3973
|
toolId: this.toolId,
|
|
3889
3974
|
button: n,
|
|
@@ -3898,7 +3983,7 @@ const wl = {
|
|
|
3898
3983
|
subscribeActive: o.subscribeActive
|
|
3899
3984
|
};
|
|
3900
3985
|
}
|
|
3901
|
-
},
|
|
3986
|
+
}, kl = {
|
|
3902
3987
|
toolId: "answerEliminator",
|
|
3903
3988
|
name: "Answer Eliminator",
|
|
3904
3989
|
description: "Strike through answer choices",
|
|
@@ -3924,7 +4009,7 @@ const wl = {
|
|
|
3924
4009
|
return el(e);
|
|
3925
4010
|
},
|
|
3926
4011
|
renderToolbar(e, t) {
|
|
3927
|
-
const o =
|
|
4012
|
+
const o = Ve(this.toolId, t), n = t.componentOverrides ?? {}, r = Ae(this.toolId, e, t, n);
|
|
3928
4013
|
r.setAttribute("tool-id", o.fullToolId), r.setAttribute("strategy", "strikethrough"), r.setAttribute("button-alignment", "inline");
|
|
3929
4014
|
const i = {
|
|
3930
4015
|
toolId: this.toolId,
|
|
@@ -3952,7 +4037,7 @@ const wl = {
|
|
|
3952
4037
|
subscribeActive: o.subscribeActive
|
|
3953
4038
|
};
|
|
3954
4039
|
}
|
|
3955
|
-
},
|
|
4040
|
+
}, Sl = {
|
|
3956
4041
|
toolId: "highlighter",
|
|
3957
4042
|
name: "Highlighter",
|
|
3958
4043
|
description: "Highlight text",
|
|
@@ -3966,10 +4051,10 @@ const wl = {
|
|
|
3966
4051
|
* Pass 2: Highlighter is relevant when readable text is available
|
|
3967
4052
|
*/
|
|
3968
4053
|
isVisibleInContext(e) {
|
|
3969
|
-
return
|
|
4054
|
+
return Lo(e);
|
|
3970
4055
|
},
|
|
3971
4056
|
renderToolbar(e, t) {
|
|
3972
|
-
const o =
|
|
4057
|
+
const o = Ve(this.toolId, t), n = {
|
|
3973
4058
|
toolId: this.toolId,
|
|
3974
4059
|
label: this.name,
|
|
3975
4060
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -3978,7 +4063,7 @@ const wl = {
|
|
|
3978
4063
|
tooltip: "Highlight",
|
|
3979
4064
|
onClick: () => t.toggleTool(this.toolId),
|
|
3980
4065
|
active: o.isActive()
|
|
3981
|
-
}, r = t.componentOverrides ?? {}, i =
|
|
4066
|
+
}, r = t.componentOverrides ?? {}, i = Ae(this.toolId, e, t, r);
|
|
3982
4067
|
return i.setAttribute("tool-id", o.fullToolId), {
|
|
3983
4068
|
toolId: this.toolId,
|
|
3984
4069
|
button: n,
|
|
@@ -4021,10 +4106,10 @@ const wl = {
|
|
|
4021
4106
|
* Pass 2: Line reader is relevant when readable text is present
|
|
4022
4107
|
*/
|
|
4023
4108
|
isVisibleInContext(e) {
|
|
4024
|
-
return
|
|
4109
|
+
return Lo(e);
|
|
4025
4110
|
},
|
|
4026
4111
|
renderToolbar(e, t) {
|
|
4027
|
-
const o =
|
|
4112
|
+
const o = Ve(this.toolId, t), n = {
|
|
4028
4113
|
toolId: this.toolId,
|
|
4029
4114
|
label: this.name,
|
|
4030
4115
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -4033,7 +4118,7 @@ const wl = {
|
|
|
4033
4118
|
tooltip: "Line Reader",
|
|
4034
4119
|
onClick: () => t.toggleTool(this.toolId),
|
|
4035
4120
|
active: o.isActive()
|
|
4036
|
-
}, r = t.componentOverrides ?? {}, i =
|
|
4121
|
+
}, r = t.componentOverrides ?? {}, i = Ae(this.toolId, e, t, r);
|
|
4037
4122
|
return i.setAttribute("tool-id", o.fullToolId), {
|
|
4038
4123
|
toolId: this.toolId,
|
|
4039
4124
|
button: n,
|
|
@@ -4048,7 +4133,7 @@ const wl = {
|
|
|
4048
4133
|
subscribeActive: o.subscribeActive
|
|
4049
4134
|
};
|
|
4050
4135
|
}
|
|
4051
|
-
},
|
|
4136
|
+
}, Al = {
|
|
4052
4137
|
toolId: "theme",
|
|
4053
4138
|
name: "Theme",
|
|
4054
4139
|
description: "Accessible themes and contrast",
|
|
@@ -4080,7 +4165,7 @@ const wl = {
|
|
|
4080
4165
|
return !0;
|
|
4081
4166
|
},
|
|
4082
4167
|
renderToolbar(e, t) {
|
|
4083
|
-
const o =
|
|
4168
|
+
const o = Ve(this.toolId, t), n = {
|
|
4084
4169
|
toolId: this.toolId,
|
|
4085
4170
|
label: this.name,
|
|
4086
4171
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -4089,7 +4174,7 @@ const wl = {
|
|
|
4089
4174
|
tooltip: "Theme",
|
|
4090
4175
|
onClick: () => t.toggleTool(this.toolId),
|
|
4091
4176
|
active: o.isActive()
|
|
4092
|
-
}, r = t.componentOverrides ?? {}, i =
|
|
4177
|
+
}, r = t.componentOverrides ?? {}, i = Ae(this.toolId, e, t, r);
|
|
4093
4178
|
return i.setAttribute("tool-id", o.fullToolId), {
|
|
4094
4179
|
toolId: this.toolId,
|
|
4095
4180
|
button: n,
|
|
@@ -4119,7 +4204,7 @@ const wl = {
|
|
|
4119
4204
|
subscribeActive: o.subscribeActive
|
|
4120
4205
|
};
|
|
4121
4206
|
}
|
|
4122
|
-
},
|
|
4207
|
+
}, _l = {
|
|
4123
4208
|
toolId: "annotationToolbar",
|
|
4124
4209
|
name: "Highlighter",
|
|
4125
4210
|
description: "Highlight and annotate text",
|
|
@@ -4146,10 +4231,10 @@ const wl = {
|
|
|
4146
4231
|
* Pass 2: Annotation is relevant when readable text is present
|
|
4147
4232
|
*/
|
|
4148
4233
|
isVisibleInContext(e) {
|
|
4149
|
-
return
|
|
4234
|
+
return Lo(e);
|
|
4150
4235
|
},
|
|
4151
4236
|
renderToolbar(e, t) {
|
|
4152
|
-
const o =
|
|
4237
|
+
const o = Ve(this.toolId, t), n = {
|
|
4153
4238
|
toolId: this.toolId,
|
|
4154
4239
|
label: this.name,
|
|
4155
4240
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -4158,7 +4243,7 @@ const wl = {
|
|
|
4158
4243
|
tooltip: "Highlight",
|
|
4159
4244
|
onClick: () => t.toggleTool(this.toolId),
|
|
4160
4245
|
active: o.isActive()
|
|
4161
|
-
}, r = t.componentOverrides ?? {}, i =
|
|
4246
|
+
}, r = t.componentOverrides ?? {}, i = Ae(this.toolId, e, t, r);
|
|
4162
4247
|
return i.setAttribute("tool-id", o.fullToolId), {
|
|
4163
4248
|
toolId: this.toolId,
|
|
4164
4249
|
button: n,
|
|
@@ -4173,7 +4258,7 @@ const wl = {
|
|
|
4173
4258
|
subscribeActive: o.subscribeActive
|
|
4174
4259
|
};
|
|
4175
4260
|
}
|
|
4176
|
-
},
|
|
4261
|
+
}, Cl = {
|
|
4177
4262
|
toolId: "graph",
|
|
4178
4263
|
name: "Graph",
|
|
4179
4264
|
description: "Graphing calculator and coordinate plane",
|
|
@@ -4196,10 +4281,10 @@ const wl = {
|
|
|
4196
4281
|
* Pass 2: Graph is relevant when math content is present
|
|
4197
4282
|
*/
|
|
4198
4283
|
isVisibleInContext(e) {
|
|
4199
|
-
return
|
|
4284
|
+
return Po(e);
|
|
4200
4285
|
},
|
|
4201
4286
|
renderToolbar(e, t) {
|
|
4202
|
-
const o =
|
|
4287
|
+
const o = Ve(this.toolId, t), n = {
|
|
4203
4288
|
toolId: this.toolId,
|
|
4204
4289
|
label: this.name,
|
|
4205
4290
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -4208,7 +4293,7 @@ const wl = {
|
|
|
4208
4293
|
tooltip: "Graph",
|
|
4209
4294
|
onClick: () => t.toggleTool(this.toolId),
|
|
4210
4295
|
active: o.isActive()
|
|
4211
|
-
}, r = t.componentOverrides ?? {}, i =
|
|
4296
|
+
}, r = t.componentOverrides ?? {}, i = Ae(this.toolId, e, t, r);
|
|
4212
4297
|
return i.setAttribute("tool-id", o.fullToolId), {
|
|
4213
4298
|
toolId: this.toolId,
|
|
4214
4299
|
button: n,
|
|
@@ -4238,7 +4323,7 @@ const wl = {
|
|
|
4238
4323
|
subscribeActive: o.subscribeActive
|
|
4239
4324
|
};
|
|
4240
4325
|
}
|
|
4241
|
-
},
|
|
4326
|
+
}, El = {
|
|
4242
4327
|
toolId: "periodicTable",
|
|
4243
4328
|
name: "Periodic Table",
|
|
4244
4329
|
description: "Chemistry periodic table reference",
|
|
@@ -4262,7 +4347,7 @@ const wl = {
|
|
|
4262
4347
|
return tl(e);
|
|
4263
4348
|
},
|
|
4264
4349
|
renderToolbar(e, t) {
|
|
4265
|
-
const o =
|
|
4350
|
+
const o = Ve(this.toolId, t), n = {
|
|
4266
4351
|
toolId: this.toolId,
|
|
4267
4352
|
label: this.name,
|
|
4268
4353
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -4271,7 +4356,7 @@ const wl = {
|
|
|
4271
4356
|
tooltip: "Periodic Table",
|
|
4272
4357
|
onClick: () => t.toggleTool(this.toolId),
|
|
4273
4358
|
active: o.isActive()
|
|
4274
|
-
}, r = t.componentOverrides ?? {}, i =
|
|
4359
|
+
}, r = t.componentOverrides ?? {}, i = Ae(this.toolId, e, t, r);
|
|
4275
4360
|
return i.setAttribute("tool-id", o.fullToolId), {
|
|
4276
4361
|
toolId: this.toolId,
|
|
4277
4362
|
button: n,
|
|
@@ -4301,53 +4386,53 @@ const wl = {
|
|
|
4301
4386
|
subscribeActive: o.subscribeActive
|
|
4302
4387
|
};
|
|
4303
4388
|
}
|
|
4304
|
-
},
|
|
4389
|
+
}, Pl = [
|
|
4305
4390
|
vl,
|
|
4306
|
-
yl,
|
|
4307
|
-
wl,
|
|
4308
4391
|
Tl,
|
|
4309
4392
|
Il,
|
|
4310
4393
|
$l,
|
|
4311
|
-
xl,
|
|
4312
4394
|
kl,
|
|
4395
|
+
Sl,
|
|
4396
|
+
xl,
|
|
4313
4397
|
Al,
|
|
4314
4398
|
_l,
|
|
4315
|
-
Cl
|
|
4399
|
+
Cl,
|
|
4400
|
+
El
|
|
4316
4401
|
];
|
|
4317
|
-
function
|
|
4402
|
+
function Ll(e = {}) {
|
|
4318
4403
|
const t = new Zs(), o = {
|
|
4319
4404
|
toolTagMap: {
|
|
4320
|
-
...
|
|
4405
|
+
...Qr,
|
|
4321
4406
|
...e.toolTagMap || {}
|
|
4322
4407
|
},
|
|
4323
4408
|
toolComponentFactory: e.toolComponentFactory,
|
|
4324
4409
|
toolComponentFactories: e.toolComponentFactories
|
|
4325
4410
|
}, n = (r) => e.overrides?.[r.toolId] || r;
|
|
4326
|
-
return e.includePackagedTools &&
|
|
4411
|
+
return e.includePackagedTools && Ml(t, {
|
|
4327
4412
|
toolIds: e.toolIds,
|
|
4328
4413
|
applyOverrides: n
|
|
4329
4414
|
}), e.toolModuleLoaders && Object.keys(e.toolModuleLoaders).length > 0 && t.setToolModuleLoaders(e.toolModuleLoaders), t.setComponentOverrides(o), t;
|
|
4330
4415
|
}
|
|
4331
|
-
function
|
|
4416
|
+
function Ml(e, t = {}) {
|
|
4332
4417
|
const o = t.toolIds && t.toolIds.length > 0 ? new Set(t.toolIds) : null, n = t.applyOverrides || ((r) => r);
|
|
4333
|
-
for (const r of
|
|
4418
|
+
for (const r of Pl)
|
|
4334
4419
|
o && !o.has(r.toolId) || e.register(n(r));
|
|
4335
4420
|
}
|
|
4336
|
-
function
|
|
4337
|
-
return
|
|
4421
|
+
function Ol(e = {}) {
|
|
4422
|
+
return Ll({
|
|
4338
4423
|
...e,
|
|
4339
4424
|
includePackagedTools: !0
|
|
4340
4425
|
});
|
|
4341
4426
|
}
|
|
4342
|
-
function
|
|
4343
|
-
const e =
|
|
4427
|
+
function Rl() {
|
|
4428
|
+
const e = Ol(), t = /* @__PURE__ */ new Set();
|
|
4344
4429
|
for (const o of e.getAllTools())
|
|
4345
4430
|
for (const n of o.pnpSupportIds || [])
|
|
4346
4431
|
t.add(n);
|
|
4347
4432
|
return [...t].sort();
|
|
4348
4433
|
}
|
|
4349
|
-
|
|
4350
|
-
const
|
|
4434
|
+
Rl();
|
|
4435
|
+
const Vl = {
|
|
4351
4436
|
/**
|
|
4352
4437
|
* Visual accessibility features
|
|
4353
4438
|
* For students with low vision, color blindness, or visual processing needs
|
|
@@ -4518,17 +4603,17 @@ const Rl = {
|
|
|
4518
4603
|
tutorialAvailable: "tutorialAvailable"
|
|
4519
4604
|
}
|
|
4520
4605
|
};
|
|
4521
|
-
Object.values(
|
|
4522
|
-
var
|
|
4606
|
+
Object.values(Vl).flatMap((e) => Object.values(e));
|
|
4607
|
+
var Un;
|
|
4523
4608
|
(function(e) {
|
|
4524
4609
|
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";
|
|
4525
|
-
})(
|
|
4526
|
-
var
|
|
4610
|
+
})(Un || (Un = {}));
|
|
4611
|
+
var Kn;
|
|
4527
4612
|
(function(e) {
|
|
4528
4613
|
e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
|
|
4529
|
-
})(
|
|
4530
|
-
var Nl = /* @__PURE__ */
|
|
4531
|
-
const
|
|
4614
|
+
})(Kn || (Kn = {}));
|
|
4615
|
+
var Nl = /* @__PURE__ */ bt('<button class="pie-tool-annotation-toolbar__highlight-swatch svelte-g8qu62"><span class="pie-sr-only svelte-g8qu62"> </span></button>'), jl = /* @__PURE__ */ bt('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-g8qu62" aria-label="Read selected text aloud" title="Read Aloud"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z"></path></svg></button>', 1), Wl = /* @__PURE__ */ bt('<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>'), Dl = /* @__PURE__ */ bt('<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>'), zl = /* @__PURE__ */ bt('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <!> <!>', 1), ql = /* @__PURE__ */ bt('<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>'), Bl = /* @__PURE__ */ bt('<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);
|
|
4616
|
+
const Hl = {
|
|
4532
4617
|
hash: "svelte-g8qu62",
|
|
4533
4618
|
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);}
|
|
4534
4619
|
|
|
@@ -4536,27 +4621,27 @@ const Dl = {
|
|
|
4536
4621
|
|
|
4537
4622
|
/* 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;}`
|
|
4538
4623
|
};
|
|
4539
|
-
function
|
|
4540
|
-
|
|
4624
|
+
function Fl(e, t) {
|
|
4625
|
+
rr(t, !0), Ls(e, Hl);
|
|
4541
4626
|
let o = No(t, "enabled", 7, !0), n = No(t, "highlightCoordinator", 7, null), r = No(t, "ttsService", 7, null);
|
|
4542
4627
|
const i = typeof window < "u", s = "pie-annotations", l = [
|
|
4543
4628
|
{
|
|
4544
|
-
name:
|
|
4629
|
+
name: Ke.YELLOW,
|
|
4545
4630
|
hex: "#fde995",
|
|
4546
4631
|
label: "Yellow highlight"
|
|
4547
4632
|
},
|
|
4548
4633
|
{
|
|
4549
|
-
name:
|
|
4634
|
+
name: Ke.PINK,
|
|
4550
4635
|
hex: "#ff9fae",
|
|
4551
4636
|
label: "Pink highlight"
|
|
4552
4637
|
},
|
|
4553
4638
|
{
|
|
4554
|
-
name:
|
|
4639
|
+
name: Ke.BLUE,
|
|
4555
4640
|
hex: "#a7e0f6",
|
|
4556
4641
|
label: "Blue highlight"
|
|
4557
4642
|
},
|
|
4558
4643
|
{
|
|
4559
|
-
name:
|
|
4644
|
+
name: Ke.GREEN,
|
|
4560
4645
|
hex: "#a6e1c5",
|
|
4561
4646
|
label: "Green highlight"
|
|
4562
4647
|
}
|
|
@@ -4571,7 +4656,7 @@ function Hl(e, t) {
|
|
|
4571
4656
|
'[role="button"]',
|
|
4572
4657
|
'[role="textbox"]'
|
|
4573
4658
|
];
|
|
4574
|
-
let c = /* @__PURE__ */ R(null), d = /* @__PURE__ */ R(null), f = /* @__PURE__ */ R(null), b = /* @__PURE__ */ R(null), g = /* @__PURE__ */ R(
|
|
4659
|
+
let c = /* @__PURE__ */ R(null), d = /* @__PURE__ */ R(null), f = /* @__PURE__ */ R(null), b = /* @__PURE__ */ R(null), g = /* @__PURE__ */ R($t({
|
|
4575
4660
|
isVisible: !1,
|
|
4576
4661
|
selectedText: "",
|
|
4577
4662
|
selectedRange: null,
|
|
@@ -4582,10 +4667,10 @@ function Hl(e, t) {
|
|
|
4582
4667
|
), T = /* @__PURE__ */ R(
|
|
4583
4668
|
""
|
|
4584
4669
|
// For screen readers when toolbar is repositioned
|
|
4585
|
-
), $ = /* @__PURE__ */ R(0), E = /* @__PURE__ */ R(null),
|
|
4586
|
-
function
|
|
4670
|
+
), $ = /* @__PURE__ */ R(0), E = /* @__PURE__ */ R(null), le = /* @__PURE__ */ Ro(() => p($) > 0), ae = /* @__PURE__ */ Ro(() => p(E) !== null), D = /* @__PURE__ */ Ro(() => p(b)?.scopeElement || p(f)?.scopeElement || null);
|
|
4671
|
+
function je() {
|
|
4587
4672
|
const v = p(c)?.ownerDocument;
|
|
4588
|
-
return p(
|
|
4673
|
+
return p(D) || v?.documentElement || document.documentElement;
|
|
4589
4674
|
}
|
|
4590
4675
|
function Z() {
|
|
4591
4676
|
const v = p(f)?.canonicalItemId || p(f)?.itemId || "global";
|
|
@@ -4595,15 +4680,15 @@ function Hl(e, t) {
|
|
|
4595
4680
|
if (!n()) return null;
|
|
4596
4681
|
const y = n().getAnnotations();
|
|
4597
4682
|
for (const _ of y) {
|
|
4598
|
-
const
|
|
4599
|
-
if (
|
|
4600
|
-
|
|
4601
|
-
|
|
4683
|
+
const z = v.compareBoundaryPoints(Range.START_TO_START, _.range), tt = v.compareBoundaryPoints(Range.END_TO_END, _.range), Vt = v.compareBoundaryPoints(Range.START_TO_END, _.range), Nt = v.compareBoundaryPoints(Range.END_TO_START, _.range);
|
|
4684
|
+
if (z >= 0 && tt <= 0 || // selection inside annotation
|
|
4685
|
+
z <= 0 && tt >= 0 || // annotation inside selection
|
|
4686
|
+
Vt > 0 && Nt < 0)
|
|
4602
4687
|
return _.id;
|
|
4603
4688
|
}
|
|
4604
4689
|
return null;
|
|
4605
4690
|
}
|
|
4606
|
-
function
|
|
4691
|
+
function yt(v) {
|
|
4607
4692
|
if (v.nodeType !== Node.ELEMENT_NODE && v.nodeType !== Node.TEXT_NODE)
|
|
4608
4693
|
return !1;
|
|
4609
4694
|
const y = v.nodeType === Node.TEXT_NODE ? v.parentElement : v;
|
|
@@ -4615,40 +4700,40 @@ function Hl(e, t) {
|
|
|
4615
4700
|
}
|
|
4616
4701
|
}) : !1;
|
|
4617
4702
|
}
|
|
4618
|
-
function
|
|
4619
|
-
if (!p(
|
|
4703
|
+
function ce(v) {
|
|
4704
|
+
if (!p(D)) return !0;
|
|
4620
4705
|
const y = v.commonAncestorContainer, _ = y.nodeType === Node.TEXT_NODE ? y.parentElement : y;
|
|
4621
|
-
return !!_ && p(
|
|
4706
|
+
return !!_ && p(D).contains(_);
|
|
4622
4707
|
}
|
|
4623
|
-
function
|
|
4708
|
+
function to() {
|
|
4624
4709
|
if (!(!i || !n()))
|
|
4625
4710
|
try {
|
|
4626
|
-
const v =
|
|
4711
|
+
const v = je(), y = n().exportAnnotations(v);
|
|
4627
4712
|
sessionStorage.setItem(Z(), JSON.stringify(y));
|
|
4628
4713
|
} catch (v) {
|
|
4629
4714
|
console.error("[AnnotationToolbar] Failed to save annotations:", v);
|
|
4630
4715
|
}
|
|
4631
4716
|
}
|
|
4632
|
-
function
|
|
4717
|
+
function Mo() {
|
|
4633
4718
|
if (!(!i || !n()))
|
|
4634
4719
|
try {
|
|
4635
4720
|
const v = sessionStorage.getItem(Z());
|
|
4636
4721
|
if (!v) return;
|
|
4637
|
-
const y = JSON.parse(v), _ =
|
|
4638
|
-
console.log(`[AnnotationToolbar] Restored ${
|
|
4722
|
+
const y = JSON.parse(v), _ = je(), z = n().importAnnotations(y, _);
|
|
4723
|
+
console.log(`[AnnotationToolbar] Restored ${z} annotations`), A($, n().getAnnotations().length, !0);
|
|
4639
4724
|
} catch (v) {
|
|
4640
4725
|
console.error("[AnnotationToolbar] Failed to load annotations:", v);
|
|
4641
4726
|
}
|
|
4642
4727
|
}
|
|
4643
|
-
function
|
|
4728
|
+
function oo() {
|
|
4644
4729
|
if (!o() || !i) return;
|
|
4645
4730
|
const v = window.getSelection();
|
|
4646
|
-
if (!v || v.rangeCount === 0) return
|
|
4731
|
+
if (!v || v.rangeCount === 0) return _e();
|
|
4647
4732
|
const y = v.getRangeAt(0), _ = v.toString().trim();
|
|
4648
|
-
if (!_ || !
|
|
4649
|
-
return
|
|
4650
|
-
const
|
|
4651
|
-
A(E, X(y), !0), p(g).isVisible = !0, p(g).selectedText = _, p(g).selectedRange = y.cloneRange(), p(g).toolbarPosition = { x:
|
|
4733
|
+
if (!_ || !ce(y) || !yt(y.commonAncestorContainer))
|
|
4734
|
+
return _e();
|
|
4735
|
+
const z = y.getBoundingClientRect(), tt = z.left + z.width / 2, Vt = z.top - 8;
|
|
4736
|
+
A(E, X(y), !0), p(g).isVisible = !0, p(g).selectedText = _, p(g).selectedRange = y.cloneRange(), p(g).toolbarPosition = { x: tt, y: Vt };
|
|
4652
4737
|
const Nt = _.length > 30 ? _.substring(0, 30) + "..." : _;
|
|
4653
4738
|
A(T, `Annotation toolbar opened for "${Nt}"`), setTimeout(
|
|
4654
4739
|
() => {
|
|
@@ -4662,22 +4747,22 @@ function Hl(e, t) {
|
|
|
4662
4747
|
100
|
|
4663
4748
|
);
|
|
4664
4749
|
}
|
|
4665
|
-
function
|
|
4750
|
+
function _e() {
|
|
4666
4751
|
p(h) && r() && (r().stop(), A(h, !1)), p(g).isVisible = !1, p(g).selectedText = "", p(g).selectedRange = null;
|
|
4667
4752
|
}
|
|
4668
|
-
function
|
|
4753
|
+
function wn(v) {
|
|
4669
4754
|
if (!p(g).selectedRange || !n()) return;
|
|
4670
4755
|
const y = p(g).selectedText;
|
|
4671
|
-
n().addAnnotation(p(g).selectedRange, v), A($, n().getAnnotations().length, !0),
|
|
4672
|
-
const _ = v ===
|
|
4673
|
-
A(T, `"${
|
|
4756
|
+
n().addAnnotation(p(g).selectedRange, v), A($, n().getAnnotations().length, !0), to();
|
|
4757
|
+
const _ = v === Ke.UNDERLINE ? "underlined" : `highlighted in ${v}`, z = y.length > 30 ? y.substring(0, 30) + "..." : y;
|
|
4758
|
+
A(T, `"${z}" ${_}`), setTimeout(
|
|
4674
4759
|
() => {
|
|
4675
4760
|
A(T, "");
|
|
4676
4761
|
},
|
|
4677
4762
|
3e3
|
|
4678
|
-
),
|
|
4763
|
+
), _e();
|
|
4679
4764
|
}
|
|
4680
|
-
function
|
|
4765
|
+
function oi() {
|
|
4681
4766
|
if (!p(E) || !n()) {
|
|
4682
4767
|
console.warn("[AnnotationToolbar] No overlapping annotation to remove");
|
|
4683
4768
|
return;
|
|
@@ -4691,29 +4776,29 @@ function Hl(e, t) {
|
|
|
4691
4776
|
const y = v.range.toString();
|
|
4692
4777
|
n().removeAnnotation(p(E));
|
|
4693
4778
|
const _ = n().getAnnotations().length;
|
|
4694
|
-
A($, _, !0), console.log("[AnnotationToolbar] Annotations remaining:", _),
|
|
4695
|
-
const
|
|
4696
|
-
A(T, `Removed annotation from "${
|
|
4779
|
+
A($, _, !0), console.log("[AnnotationToolbar] Annotations remaining:", _), to();
|
|
4780
|
+
const z = y.length > 30 ? y.substring(0, 30) + "..." : y;
|
|
4781
|
+
A(T, `Removed annotation from "${z}"`), setTimeout(
|
|
4697
4782
|
() => {
|
|
4698
4783
|
A(T, "");
|
|
4699
4784
|
},
|
|
4700
4785
|
3e3
|
|
4701
|
-
),
|
|
4786
|
+
), _e();
|
|
4702
4787
|
}
|
|
4703
|
-
function
|
|
4788
|
+
function ni() {
|
|
4704
4789
|
const v = p($);
|
|
4705
4790
|
n()?.clearAnnotations(), A($, 0), sessionStorage.removeItem(Z()), A(T, `${v} annotation${v === 1 ? "" : "s"} cleared`), setTimeout(
|
|
4706
4791
|
() => {
|
|
4707
4792
|
A(T, "");
|
|
4708
4793
|
},
|
|
4709
4794
|
3e3
|
|
4710
|
-
),
|
|
4795
|
+
), _e();
|
|
4711
4796
|
}
|
|
4712
|
-
async function
|
|
4797
|
+
async function ri() {
|
|
4713
4798
|
if (!(!p(g).selectedRange || !r())) {
|
|
4714
4799
|
A(h, !0);
|
|
4715
4800
|
try {
|
|
4716
|
-
console.log("[AnnotationToolbar] Speaking range:", p(g).selectedRange.toString().substring(0, 50)), await r().speakRange(p(g).selectedRange, { contentRoot:
|
|
4801
|
+
console.log("[AnnotationToolbar] Speaking range:", p(g).selectedRange.toString().substring(0, 50)), await r().speakRange(p(g).selectedRange, { contentRoot: je() }), console.log("[AnnotationToolbar] TTS completed successfully");
|
|
4717
4802
|
} catch (v) {
|
|
4718
4803
|
console.error("[AnnotationToolbar] TTS error:", v), alert(`TTS failed: ${v instanceof Error ? v.message : String(v)}`);
|
|
4719
4804
|
} finally {
|
|
@@ -4721,116 +4806,116 @@ function Hl(e, t) {
|
|
|
4721
4806
|
}
|
|
4722
4807
|
}
|
|
4723
4808
|
}
|
|
4724
|
-
function
|
|
4725
|
-
v.key === "Escape" && p(g).isVisible && (v.preventDefault(),
|
|
4809
|
+
function Tn(v) {
|
|
4810
|
+
v.key === "Escape" && p(g).isVisible && (v.preventDefault(), _e());
|
|
4726
4811
|
}
|
|
4727
|
-
function
|
|
4728
|
-
!p(g).isVisible || p(w) || p(d) && !p(d).contains(v.target) &&
|
|
4812
|
+
function no(v) {
|
|
4813
|
+
!p(g).isVisible || p(w) || p(d) && !p(d).contains(v.target) && _e();
|
|
4729
4814
|
}
|
|
4730
|
-
|
|
4815
|
+
Ln(() => {
|
|
4731
4816
|
if (!i) return;
|
|
4732
4817
|
const v = setTimeout(
|
|
4733
4818
|
() => {
|
|
4734
|
-
|
|
4819
|
+
Mo();
|
|
4735
4820
|
},
|
|
4736
4821
|
2e3
|
|
4737
|
-
), y = p(
|
|
4738
|
-
return y.addEventListener("mouseup",
|
|
4739
|
-
clearTimeout(v), y.removeEventListener("mouseup",
|
|
4822
|
+
), y = p(D) || document;
|
|
4823
|
+
return y.addEventListener("mouseup", oo), y.addEventListener("click", no), y.addEventListener("touchend", oo), y.addEventListener("touchstart", no), document.addEventListener("keydown", Tn), window.addEventListener("scroll", _e, !0), () => {
|
|
4824
|
+
clearTimeout(v), y.removeEventListener("mouseup", oo), y.removeEventListener("click", no), y.removeEventListener("touchend", oo), y.removeEventListener("touchstart", no), document.removeEventListener("keydown", Tn), window.removeEventListener("scroll", _e, !0);
|
|
4740
4825
|
};
|
|
4741
|
-
}),
|
|
4826
|
+
}), Ln(() => {
|
|
4742
4827
|
if (!p(c)) return;
|
|
4743
|
-
const v =
|
|
4828
|
+
const v = Us(p(c), (_) => {
|
|
4744
4829
|
A(f, _, !0);
|
|
4745
|
-
}), y =
|
|
4830
|
+
}), y = Ks(p(c), (_) => {
|
|
4746
4831
|
A(b, _, !0);
|
|
4747
4832
|
});
|
|
4748
4833
|
return () => {
|
|
4749
4834
|
y(), v();
|
|
4750
4835
|
};
|
|
4751
4836
|
});
|
|
4752
|
-
var
|
|
4837
|
+
var ii = {
|
|
4753
4838
|
get enabled() {
|
|
4754
4839
|
return o();
|
|
4755
4840
|
},
|
|
4756
4841
|
set enabled(v = !0) {
|
|
4757
|
-
o(v),
|
|
4842
|
+
o(v), po();
|
|
4758
4843
|
},
|
|
4759
4844
|
get highlightCoordinator() {
|
|
4760
4845
|
return n();
|
|
4761
4846
|
},
|
|
4762
4847
|
set highlightCoordinator(v = null) {
|
|
4763
|
-
n(v),
|
|
4848
|
+
n(v), po();
|
|
4764
4849
|
},
|
|
4765
4850
|
get ttsService() {
|
|
4766
4851
|
return r();
|
|
4767
4852
|
},
|
|
4768
4853
|
set ttsService(v = null) {
|
|
4769
|
-
r(v),
|
|
4854
|
+
r(v), po();
|
|
4770
4855
|
}
|
|
4771
|
-
},
|
|
4772
|
-
|
|
4773
|
-
var
|
|
4856
|
+
}, In = Bl(), $n = Vo(In);
|
|
4857
|
+
qn($n, (v) => A(c, v), () => p(c));
|
|
4858
|
+
var kn = We($n, 2);
|
|
4774
4859
|
{
|
|
4775
|
-
var
|
|
4776
|
-
var y =
|
|
4777
|
-
|
|
4778
|
-
var U = Nl(),
|
|
4779
|
-
ro
|
|
4780
|
-
|
|
4781
|
-
}),
|
|
4860
|
+
var si = (v) => {
|
|
4861
|
+
var y = ql(), _ = lo(y);
|
|
4862
|
+
Cs(_, 17, () => l, As, (ue, de) => {
|
|
4863
|
+
var U = Nl(), ro = lo(U), Oo = lo(ro, !0);
|
|
4864
|
+
io(ro), io(U), ao(() => {
|
|
4865
|
+
jn(U, `background-color: ${p(de).hex ?? ""};`), Wn(U, "aria-label", p(de).label), Wn(U, "title", p(de).label), Nn(Oo, p(de).label);
|
|
4866
|
+
}), Wt("click", U, () => wn(p(de).name)), Fe(ue, U);
|
|
4782
4867
|
});
|
|
4783
|
-
var
|
|
4868
|
+
var z = We(_, 2), tt = We(z, 2);
|
|
4784
4869
|
{
|
|
4785
|
-
var
|
|
4786
|
-
var
|
|
4787
|
-
|
|
4870
|
+
var Vt = (ue) => {
|
|
4871
|
+
var de = jl(), U = We(Vo(de), 2);
|
|
4872
|
+
ao(() => U.disabled = p(h)), Wt("click", U, ri), Fe(ue, de);
|
|
4788
4873
|
};
|
|
4789
|
-
|
|
4790
|
-
r() &&
|
|
4874
|
+
Dt(tt, (ue) => {
|
|
4875
|
+
r() && ue(Vt);
|
|
4791
4876
|
});
|
|
4792
4877
|
}
|
|
4793
|
-
var Nt =
|
|
4878
|
+
var Nt = We(tt, 2);
|
|
4794
4879
|
{
|
|
4795
|
-
var
|
|
4796
|
-
var
|
|
4880
|
+
var ai = (ue) => {
|
|
4881
|
+
var de = zl(), U = We(Vo(de), 2);
|
|
4797
4882
|
{
|
|
4798
|
-
var
|
|
4799
|
-
var
|
|
4800
|
-
|
|
4883
|
+
var ro = (ot) => {
|
|
4884
|
+
var jt = Wl();
|
|
4885
|
+
Wt("click", jt, oi), Fe(ot, jt);
|
|
4801
4886
|
};
|
|
4802
|
-
|
|
4803
|
-
p(
|
|
4887
|
+
Dt(U, (ot) => {
|
|
4888
|
+
p(ae) && ot(ro);
|
|
4804
4889
|
});
|
|
4805
4890
|
}
|
|
4806
|
-
var
|
|
4891
|
+
var Oo = We(U, 2);
|
|
4807
4892
|
{
|
|
4808
|
-
var
|
|
4809
|
-
var
|
|
4810
|
-
|
|
4893
|
+
var ci = (ot) => {
|
|
4894
|
+
var jt = Dl();
|
|
4895
|
+
Wt("click", jt, ni), Fe(ot, jt);
|
|
4811
4896
|
};
|
|
4812
|
-
|
|
4813
|
-
p(
|
|
4897
|
+
Dt(Oo, (ot) => {
|
|
4898
|
+
p(le) && ot(ci);
|
|
4814
4899
|
});
|
|
4815
4900
|
}
|
|
4816
|
-
|
|
4901
|
+
Fe(ue, de);
|
|
4817
4902
|
};
|
|
4818
|
-
|
|
4819
|
-
(p(
|
|
4903
|
+
Dt(Nt, (ue) => {
|
|
4904
|
+
(p(ae) || p(le)) && ue(ai);
|
|
4820
4905
|
});
|
|
4821
4906
|
}
|
|
4822
|
-
|
|
4907
|
+
io(y), qn(y, (ue) => A(d, ue), () => p(d)), ao(() => jn(y, `left:${p(g).toolbarPosition.x}px; top:${p(g).toolbarPosition.y}px; transform: translate(-50%, -100%);`)), Wt("click", z, () => wn(Ke.UNDERLINE)), Fe(v, y);
|
|
4823
4908
|
};
|
|
4824
|
-
|
|
4825
|
-
p(g).isVisible && v(
|
|
4909
|
+
Dt(kn, (v) => {
|
|
4910
|
+
p(g).isVisible && v(si);
|
|
4826
4911
|
});
|
|
4827
4912
|
}
|
|
4828
|
-
var
|
|
4829
|
-
return
|
|
4913
|
+
var Sn = We(kn, 2), li = lo(Sn, !0);
|
|
4914
|
+
return io(Sn), ao(() => Nn(li, p(T))), Fe(e, In), ir(ii);
|
|
4830
4915
|
}
|
|
4831
|
-
|
|
4832
|
-
customElements.define("pie-tool-annotation-toolbar",
|
|
4833
|
-
|
|
4916
|
+
bs(["click"]);
|
|
4917
|
+
customElements.define("pie-tool-annotation-toolbar", qs(
|
|
4918
|
+
Fl,
|
|
4834
4919
|
{
|
|
4835
4920
|
enabled: { attribute: "enabled", type: "Boolean" },
|
|
4836
4921
|
highlightCoordinator: { type: "Object" },
|
|
@@ -4841,5 +4926,5 @@ customElements.define("pie-tool-annotation-toolbar", Bs(
|
|
|
4841
4926
|
{ mode: "open" }
|
|
4842
4927
|
));
|
|
4843
4928
|
export {
|
|
4844
|
-
|
|
4929
|
+
Fl as default
|
|
4845
4930
|
};
|