@pie-framework/pie-fixed-player-static 1.0.0-351df72.4 → 1.0.0-351df72.5
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 +2 -2
- package/dist/pie-fixed-player.js +1135 -1177
- package/package.json +3 -3
package/dist/pie-fixed-player.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
var Rr = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var nn = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
5
|
+
var Or = (e, t, n) => t in e ? Rr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
+
var X = (e, t, n) => Or(e, typeof t != "symbol" ? t + "" : t, n), rn = (e, t, n) => t.has(e) || nn("Cannot " + n);
|
|
7
|
+
var N = (e, t, n) => (rn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Ot = (e, t, n) => t.has(e) ? nn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Ft = (e, t, n, r) => (rn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
|
|
8
8
|
const Fr = "5";
|
|
9
|
-
var
|
|
10
|
-
typeof window < "u" && ((
|
|
11
|
-
const
|
|
12
|
-
var Gt = Array.isArray,
|
|
9
|
+
var kn;
|
|
10
|
+
typeof window < "u" && ((kn = window.__svelte ?? (window.__svelte = {})).v ?? (kn.v = /* @__PURE__ */ new Set())).add(Fr);
|
|
11
|
+
const Tr = 1, Br = 4, Ur = 8, Ar = 16, Dr = 2, yt = "[", qt = "[!", Jt = "]", Ue = {}, M = Symbol(), I = Symbol("filename"), on = !0, se = 2, Rn = 4, wt = 8, Vt = 16, fe = 32, Se = 64, ct = 128, G = 256, ut = 512, Q = 1024, de = 2048, Le = 4096, De = 8192, $t = 16384, Nr = 32768, Yt = 65536, On = 1 << 18, Mr = 1 << 19, Fn = 1 << 20, Ut = 1 << 21, Ee = Symbol("$state"), ze = Symbol("$state metadata"), Tn = Symbol("legacy props");
|
|
12
|
+
var Gt = Array.isArray, Qr = Array.prototype.indexOf, jr = Array.from, ft = Object.keys, re = Object.defineProperty, be = Object.getOwnPropertyDescriptor, Bn = Object.prototype, zr = Array.prototype, Un = Object.getPrototypeOf, sn = Object.isExtensible;
|
|
13
13
|
function An(e) {
|
|
14
14
|
for (var t = 0; t < e.length; t++)
|
|
15
15
|
e[t]();
|
|
16
16
|
}
|
|
17
|
-
let
|
|
17
|
+
let He = [], At = [];
|
|
18
18
|
function Dn() {
|
|
19
|
-
var e =
|
|
20
|
-
|
|
19
|
+
var e = He;
|
|
20
|
+
He = [], An(e);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
var e =
|
|
24
|
-
|
|
22
|
+
function qr() {
|
|
23
|
+
var e = At;
|
|
24
|
+
At = [], An(e);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
|
|
26
|
+
function Jr(e) {
|
|
27
|
+
He.length === 0 && queueMicrotask(Dn), He.push(e);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
|
|
29
|
+
function ln() {
|
|
30
|
+
He.length > 0 && Dn(), At.length > 0 && qr();
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Nn(e) {
|
|
33
33
|
return e === this.v;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Vr(e, t) {
|
|
36
36
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
return !
|
|
38
|
+
function Mn(e) {
|
|
39
|
+
return !Vr(e, this.v);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Yr(e, t, n) {
|
|
42
42
|
{
|
|
43
43
|
const r = new Error(`component_api_changed
|
|
44
44
|
${e} called \`${t}\` on an instance of ${n}, which is no longer valid in Svelte 5
|
|
@@ -46,7 +46,7 @@ https://svelte.dev/e/component_api_changed`);
|
|
|
46
46
|
throw r.name = "Svelte error", r;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function Gr(e, t) {
|
|
50
50
|
{
|
|
51
51
|
const n = new Error(`component_api_invalid_new
|
|
52
52
|
Attempted to instantiate ${e} with \`new ${t}\`, which is no longer valid in Svelte 5. If this component is not under your control, set the \`compatibility.componentApi\` compiler option to \`4\` to keep it working.
|
|
@@ -54,7 +54,7 @@ https://svelte.dev/e/component_api_invalid_new`);
|
|
|
54
54
|
throw n.name = "Svelte error", n;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Wr() {
|
|
58
58
|
{
|
|
59
59
|
const e = new Error(`derived_references_self
|
|
60
60
|
A derived value cannot reference itself recursively
|
|
@@ -62,7 +62,7 @@ https://svelte.dev/e/derived_references_self`);
|
|
|
62
62
|
throw e.name = "Svelte error", e;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Xr(e) {
|
|
66
66
|
{
|
|
67
67
|
const t = new Error(`effect_in_teardown
|
|
68
68
|
\`${e}\` cannot be used inside an effect cleanup function
|
|
@@ -70,13 +70,13 @@ https://svelte.dev/e/effect_in_teardown`);
|
|
|
70
70
|
throw t.name = "Svelte error", t;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Hr() {
|
|
74
74
|
{
|
|
75
75
|
const e = new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");
|
|
76
76
|
throw e.name = "Svelte error", e;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Zr(e) {
|
|
80
80
|
{
|
|
81
81
|
const t = new Error(`effect_orphan
|
|
82
82
|
\`${e}\` can only be used inside an effect (e.g. during component initialisation)
|
|
@@ -84,7 +84,7 @@ https://svelte.dev/e/effect_orphan`);
|
|
|
84
84
|
throw t.name = "Svelte error", t;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Kr() {
|
|
88
88
|
{
|
|
89
89
|
const e = new Error(`effect_update_depth_exceeded
|
|
90
90
|
Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
|
|
@@ -92,7 +92,7 @@ https://svelte.dev/e/effect_update_depth_exceeded`);
|
|
|
92
92
|
throw e.name = "Svelte error", e;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function eo() {
|
|
96
96
|
{
|
|
97
97
|
const e = new Error(`hydration_failed
|
|
98
98
|
Failed to hydrate the application
|
|
@@ -100,7 +100,7 @@ https://svelte.dev/e/hydration_failed`);
|
|
|
100
100
|
throw e.name = "Svelte error", e;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function to(e) {
|
|
104
104
|
{
|
|
105
105
|
const t = new Error(`props_invalid_value
|
|
106
106
|
Cannot do \`bind:${e}={undefined}\` when \`${e}\` has a fallback value
|
|
@@ -108,7 +108,7 @@ https://svelte.dev/e/props_invalid_value`);
|
|
|
108
108
|
throw t.name = "Svelte error", t;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function no(e) {
|
|
112
112
|
{
|
|
113
113
|
const t = new Error(`rune_outside_svelte
|
|
114
114
|
The \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
|
|
@@ -116,54 +116,54 @@ https://svelte.dev/e/rune_outside_svelte`);
|
|
|
116
116
|
throw t.name = "Svelte error", t;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function ro() {
|
|
120
120
|
{
|
|
121
121
|
const e = new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");
|
|
122
122
|
throw e.name = "Svelte error", e;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function oo() {
|
|
126
126
|
{
|
|
127
127
|
const e = new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");
|
|
128
128
|
throw e.name = "Svelte error", e;
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function so() {
|
|
132
132
|
{
|
|
133
133
|
const e = new Error("state_unsafe_mutation\nUpdating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");
|
|
134
134
|
throw e.name = "Svelte error", e;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
let
|
|
138
|
-
var
|
|
139
|
-
function
|
|
137
|
+
let io = !1;
|
|
138
|
+
var lo = "font-weight: bold", ao = "font-weight: normal";
|
|
139
|
+
function an(e) {
|
|
140
140
|
console.warn(`%c[svelte] state_snapshot_uncloneable
|
|
141
141
|
%c${e ? `The following properties cannot be cloned with \`$state.snapshot\` — the return value contains the originals:
|
|
142
142
|
|
|
143
143
|
${e}` : "Value cannot be cloned with `$state.snapshot` — the original value was returned"}
|
|
144
|
-
https://svelte.dev/e/state_snapshot_uncloneable`,
|
|
144
|
+
https://svelte.dev/e/state_snapshot_uncloneable`, lo, ao);
|
|
145
145
|
}
|
|
146
|
-
const
|
|
147
|
-
function
|
|
146
|
+
const co = [];
|
|
147
|
+
function uo(e, t = !1) {
|
|
148
148
|
if (!t) {
|
|
149
|
-
const n = [], r =
|
|
149
|
+
const n = [], r = Je(e, /* @__PURE__ */ new Map(), "", n);
|
|
150
150
|
if (n.length === 1 && n[0] === "")
|
|
151
|
-
|
|
151
|
+
an();
|
|
152
152
|
else if (n.length > 0) {
|
|
153
|
-
const
|
|
154
|
-
let i =
|
|
153
|
+
const s = n.length > 10 ? n.slice(0, 7) : n.slice(0, 10), o = n.length - s.length;
|
|
154
|
+
let i = s.map((l) => `- <value>${l}`).join(`
|
|
155
155
|
`);
|
|
156
|
-
|
|
157
|
-
- ...and ${
|
|
156
|
+
o > 0 && (i += `
|
|
157
|
+
- ...and ${o} more`), an(i);
|
|
158
158
|
}
|
|
159
159
|
return r;
|
|
160
160
|
}
|
|
161
|
-
return
|
|
161
|
+
return Je(e, /* @__PURE__ */ new Map(), "", co);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Je(e, t, n, r, s = null) {
|
|
164
164
|
if (typeof e == "object" && e !== null) {
|
|
165
|
-
var
|
|
166
|
-
if (
|
|
165
|
+
var o = t.get(e);
|
|
166
|
+
if (o !== void 0) return o;
|
|
167
167
|
if (e instanceof Map) return (
|
|
168
168
|
/** @type {Snapshot<T>} */
|
|
169
169
|
new Map(e)
|
|
@@ -177,17 +177,17 @@ function Ge(e, t, n, r, o = null) {
|
|
|
177
177
|
/** @type {Snapshot<any>} */
|
|
178
178
|
Array(e.length)
|
|
179
179
|
);
|
|
180
|
-
t.set(e, i),
|
|
180
|
+
t.set(e, i), s !== null && t.set(s, i);
|
|
181
181
|
for (var l = 0; l < e.length; l += 1) {
|
|
182
|
-
var
|
|
183
|
-
l in e && (i[l] =
|
|
182
|
+
var d = e[l];
|
|
183
|
+
l in e && (i[l] = Je(d, t, `${n}[${l}]`, r));
|
|
184
184
|
}
|
|
185
185
|
return i;
|
|
186
186
|
}
|
|
187
|
-
if (
|
|
188
|
-
i = {}, t.set(e, i),
|
|
187
|
+
if (Un(e) === Bn) {
|
|
188
|
+
i = {}, t.set(e, i), s !== null && t.set(s, i);
|
|
189
189
|
for (var a in e)
|
|
190
|
-
i[a] =
|
|
190
|
+
i[a] = Je(e[a], t, `${n}.${a}`, r);
|
|
191
191
|
return i;
|
|
192
192
|
}
|
|
193
193
|
if (e instanceof Date)
|
|
@@ -197,7 +197,7 @@ function Ge(e, t, n, r, o = null) {
|
|
|
197
197
|
);
|
|
198
198
|
if (typeof /** @type {T & { toJSON?: any } } */
|
|
199
199
|
e.toJSON == "function")
|
|
200
|
-
return
|
|
200
|
+
return Je(
|
|
201
201
|
/** @type {T & { toJSON(): any } } */
|
|
202
202
|
e.toJSON(),
|
|
203
203
|
t,
|
|
@@ -222,90 +222,90 @@ function Ge(e, t, n, r, o = null) {
|
|
|
222
222
|
e;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
var
|
|
226
|
-
function
|
|
227
|
-
if (typeof e != "object" || e === null ||
|
|
225
|
+
var qe = null;
|
|
226
|
+
function $e(e, t) {
|
|
227
|
+
if (typeof e != "object" || e === null || Ee in e)
|
|
228
228
|
return e;
|
|
229
|
-
const n =
|
|
230
|
-
if (n !==
|
|
229
|
+
const n = Un(e);
|
|
230
|
+
if (n !== Bn && n !== zr)
|
|
231
231
|
return e;
|
|
232
|
-
var r = /* @__PURE__ */ new Map(),
|
|
233
|
-
var
|
|
234
|
-
|
|
232
|
+
var r = /* @__PURE__ */ new Map(), s = Gt(e), o = B(0), i = E, l = (a) => {
|
|
233
|
+
var f = E;
|
|
234
|
+
me(i);
|
|
235
235
|
var c;
|
|
236
236
|
{
|
|
237
|
-
var u =
|
|
238
|
-
|
|
237
|
+
var u = qe;
|
|
238
|
+
qe = d, c = a(), qe = u;
|
|
239
239
|
}
|
|
240
|
-
return
|
|
240
|
+
return me(f), c;
|
|
241
241
|
};
|
|
242
|
-
|
|
242
|
+
s && r.set("length", B(
|
|
243
243
|
/** @type {any[]} */
|
|
244
244
|
e.length
|
|
245
245
|
));
|
|
246
|
-
var
|
|
247
|
-
if (
|
|
248
|
-
parent:
|
|
246
|
+
var d;
|
|
247
|
+
if (d = {
|
|
248
|
+
parent: qe,
|
|
249
249
|
owners: null
|
|
250
250
|
}, t) {
|
|
251
|
-
const a = t.v?.[
|
|
252
|
-
|
|
251
|
+
const a = t.v?.[ze]?.owners;
|
|
252
|
+
d.owners = a ? new Set(a) : null;
|
|
253
253
|
} else
|
|
254
|
-
|
|
254
|
+
d.owners = qe === null ? U !== null ? /* @__PURE__ */ new Set([U.function]) : null : /* @__PURE__ */ new Set();
|
|
255
255
|
return new Proxy(
|
|
256
256
|
/** @type {any} */
|
|
257
257
|
e,
|
|
258
258
|
{
|
|
259
|
-
defineProperty(a,
|
|
260
|
-
(!("value" in c) || c.configurable === !1 || c.enumerable === !1 || c.writable === !1) &&
|
|
261
|
-
var u = r.get(
|
|
262
|
-
return u === void 0 ? (u = l(() =>
|
|
259
|
+
defineProperty(a, f, c) {
|
|
260
|
+
(!("value" in c) || c.configurable === !1 || c.enumerable === !1 || c.writable === !1) && ro();
|
|
261
|
+
var u = r.get(f);
|
|
262
|
+
return u === void 0 ? (u = l(() => B(c.value)), r.set(f, u)) : $(
|
|
263
263
|
u,
|
|
264
|
-
l(() =>
|
|
264
|
+
l(() => $e(c.value))
|
|
265
265
|
), !0;
|
|
266
266
|
},
|
|
267
|
-
deleteProperty(a,
|
|
268
|
-
var c = r.get(
|
|
267
|
+
deleteProperty(a, f) {
|
|
268
|
+
var c = r.get(f);
|
|
269
269
|
if (c === void 0)
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
l(() =>
|
|
270
|
+
f in a && r.set(
|
|
271
|
+
f,
|
|
272
|
+
l(() => B(M))
|
|
273
273
|
);
|
|
274
274
|
else {
|
|
275
|
-
if (
|
|
275
|
+
if (s && typeof f == "string") {
|
|
276
276
|
var u = (
|
|
277
277
|
/** @type {Source<number>} */
|
|
278
278
|
r.get("length")
|
|
279
|
-
), v = Number(
|
|
280
|
-
Number.isInteger(v) && v < u.v &&
|
|
279
|
+
), v = Number(f);
|
|
280
|
+
Number.isInteger(v) && v < u.v && $(u, v);
|
|
281
281
|
}
|
|
282
|
-
|
|
282
|
+
$(c, M), cn(o);
|
|
283
283
|
}
|
|
284
284
|
return !0;
|
|
285
285
|
},
|
|
286
|
-
get(a,
|
|
287
|
-
if (
|
|
288
|
-
return
|
|
289
|
-
if (
|
|
286
|
+
get(a, f, c) {
|
|
287
|
+
if (f === ze)
|
|
288
|
+
return d;
|
|
289
|
+
if (f === Ee)
|
|
290
290
|
return e;
|
|
291
|
-
var u = r.get(
|
|
292
|
-
if (u === void 0 && (!v ||
|
|
291
|
+
var u = r.get(f), v = f in a;
|
|
292
|
+
if (u === void 0 && (!v || be(a, f)?.writable) && (u = l(() => B($e(v ? a[f] : M))), r.set(f, u)), u !== void 0) {
|
|
293
293
|
var _ = m(u);
|
|
294
294
|
{
|
|
295
|
-
var
|
|
296
|
-
|
|
295
|
+
var g = _?.[ze];
|
|
296
|
+
g && g?.parent !== d && yn(d, g);
|
|
297
297
|
}
|
|
298
298
|
return _ === M ? void 0 : _;
|
|
299
299
|
}
|
|
300
|
-
return Reflect.get(a,
|
|
300
|
+
return Reflect.get(a, f, c);
|
|
301
301
|
},
|
|
302
|
-
getOwnPropertyDescriptor(a,
|
|
303
|
-
var c = Reflect.getOwnPropertyDescriptor(a,
|
|
302
|
+
getOwnPropertyDescriptor(a, f) {
|
|
303
|
+
var c = Reflect.getOwnPropertyDescriptor(a, f);
|
|
304
304
|
if (c && "value" in c) {
|
|
305
|
-
var u = r.get(
|
|
305
|
+
var u = r.get(f);
|
|
306
306
|
u && (c.value = m(u));
|
|
307
307
|
} else if (c === void 0) {
|
|
308
|
-
var v = r.get(
|
|
308
|
+
var v = r.get(f), _ = v?.v;
|
|
309
309
|
if (v !== void 0 && _ !== M)
|
|
310
310
|
return {
|
|
311
311
|
enumerable: !0,
|
|
@@ -316,116 +316,116 @@ function Ee(e, t) {
|
|
|
316
316
|
}
|
|
317
317
|
return c;
|
|
318
318
|
},
|
|
319
|
-
has(a,
|
|
320
|
-
if (
|
|
319
|
+
has(a, f) {
|
|
320
|
+
if (f === ze || f === Ee)
|
|
321
321
|
return !0;
|
|
322
|
-
var c = r.get(
|
|
323
|
-
if (c !== void 0 ||
|
|
324
|
-
c === void 0 && (c = l(() =>
|
|
322
|
+
var c = r.get(f), u = c !== void 0 && c.v !== M || Reflect.has(a, f);
|
|
323
|
+
if (c !== void 0 || S !== null && (!u || be(a, f)?.writable)) {
|
|
324
|
+
c === void 0 && (c = l(() => B(u ? $e(a[f]) : M)), r.set(f, c));
|
|
325
325
|
var v = m(c);
|
|
326
326
|
if (v === M)
|
|
327
327
|
return !1;
|
|
328
328
|
}
|
|
329
329
|
return u;
|
|
330
330
|
},
|
|
331
|
-
set(a,
|
|
332
|
-
var v = r.get(
|
|
333
|
-
if (
|
|
334
|
-
for (var
|
|
335
|
-
v.v;
|
|
336
|
-
var
|
|
337
|
-
|
|
331
|
+
set(a, f, c, u) {
|
|
332
|
+
var v = r.get(f), _ = f in a;
|
|
333
|
+
if (s && f === "length")
|
|
334
|
+
for (var g = c; g < /** @type {Source<number>} */
|
|
335
|
+
v.v; g += 1) {
|
|
336
|
+
var w = r.get(g + "");
|
|
337
|
+
w !== void 0 ? $(w, M) : g in a && (w = l(() => B(M)), r.set(g + "", w));
|
|
338
338
|
}
|
|
339
|
-
v === void 0 ? (!_ ||
|
|
339
|
+
v === void 0 ? (!_ || be(a, f)?.writable) && (v = l(() => B(void 0)), $(
|
|
340
340
|
v,
|
|
341
|
-
l(() =>
|
|
342
|
-
), r.set(
|
|
341
|
+
l(() => $e(c))
|
|
342
|
+
), r.set(f, v)) : (_ = v.v !== M, $(
|
|
343
343
|
v,
|
|
344
|
-
l(() =>
|
|
344
|
+
l(() => $e(c))
|
|
345
345
|
));
|
|
346
346
|
{
|
|
347
|
-
var
|
|
348
|
-
|
|
347
|
+
var k = c?.[ze];
|
|
348
|
+
k && k?.parent !== d && yn(d, k), Do(d);
|
|
349
349
|
}
|
|
350
|
-
var
|
|
351
|
-
if (
|
|
352
|
-
if (
|
|
353
|
-
var
|
|
350
|
+
var x = Reflect.getOwnPropertyDescriptor(a, f);
|
|
351
|
+
if (x?.set && x.set.call(u, c), !_) {
|
|
352
|
+
if (s && typeof f == "string") {
|
|
353
|
+
var A = (
|
|
354
354
|
/** @type {Source<number>} */
|
|
355
355
|
r.get("length")
|
|
356
|
-
),
|
|
357
|
-
Number.isInteger(
|
|
356
|
+
), R = Number(f);
|
|
357
|
+
Number.isInteger(R) && R >= A.v && $(A, R + 1);
|
|
358
358
|
}
|
|
359
|
-
|
|
359
|
+
cn(o);
|
|
360
360
|
}
|
|
361
361
|
return !0;
|
|
362
362
|
},
|
|
363
363
|
ownKeys(a) {
|
|
364
|
-
m(
|
|
365
|
-
var
|
|
364
|
+
m(o);
|
|
365
|
+
var f = Reflect.ownKeys(a).filter((v) => {
|
|
366
366
|
var _ = r.get(v);
|
|
367
367
|
return _ === void 0 || _.v !== M;
|
|
368
368
|
});
|
|
369
369
|
for (var [c, u] of r)
|
|
370
|
-
u.v !== M && !(c in a) &&
|
|
371
|
-
return
|
|
370
|
+
u.v !== M && !(c in a) && f.push(c);
|
|
371
|
+
return f;
|
|
372
372
|
},
|
|
373
373
|
setPrototypeOf() {
|
|
374
|
-
|
|
374
|
+
oo();
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
);
|
|
378
378
|
}
|
|
379
|
-
function
|
|
380
|
-
|
|
379
|
+
function cn(e, t = 1) {
|
|
380
|
+
$(e, e.v + t);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function Ve(e) {
|
|
383
383
|
try {
|
|
384
|
-
if (e !== null && typeof e == "object" &&
|
|
385
|
-
return e[
|
|
384
|
+
if (e !== null && typeof e == "object" && Ee in e)
|
|
385
|
+
return e[Ee];
|
|
386
386
|
} catch {
|
|
387
387
|
}
|
|
388
388
|
return e;
|
|
389
389
|
}
|
|
390
|
-
let
|
|
391
|
-
const
|
|
392
|
-
function
|
|
393
|
-
|
|
390
|
+
let Ae = /* @__PURE__ */ new Set();
|
|
391
|
+
const Ze = /* @__PURE__ */ new Map();
|
|
392
|
+
function un(e) {
|
|
393
|
+
Ae = e;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function Qn(e, t) {
|
|
396
396
|
var n = {
|
|
397
397
|
f: 0,
|
|
398
398
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
399
399
|
v: e,
|
|
400
400
|
reactions: null,
|
|
401
|
-
equals:
|
|
401
|
+
equals: Nn,
|
|
402
402
|
rv: 0,
|
|
403
403
|
wv: 0
|
|
404
404
|
};
|
|
405
405
|
return n;
|
|
406
406
|
}
|
|
407
|
-
function
|
|
408
|
-
const n =
|
|
407
|
+
function B(e, t) {
|
|
408
|
+
const n = Qn(e);
|
|
409
409
|
return Gn(n), n;
|
|
410
410
|
}
|
|
411
411
|
// @__NO_SIDE_EFFECTS__
|
|
412
|
-
function
|
|
413
|
-
const n =
|
|
414
|
-
return t || (n.equals =
|
|
412
|
+
function jn(e, t = !1) {
|
|
413
|
+
const n = Qn(e);
|
|
414
|
+
return t || (n.equals = Mn), n;
|
|
415
415
|
}
|
|
416
|
-
function
|
|
417
|
-
|
|
418
|
-
let r = n ?
|
|
419
|
-
return
|
|
416
|
+
function $(e, t, n = !1) {
|
|
417
|
+
E !== null && !ne && dr() && (E.f & (se | Vt)) !== 0 && !ae?.includes(e) && so();
|
|
418
|
+
let r = n ? $e(t, e) : t;
|
|
419
|
+
return fo(e, r);
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function fo(e, t) {
|
|
422
422
|
if (!e.equals(t)) {
|
|
423
423
|
var n = e.v;
|
|
424
|
-
if (nt ?
|
|
425
|
-
const r = Array.from(
|
|
426
|
-
for (const
|
|
427
|
-
(
|
|
428
|
-
|
|
424
|
+
if (nt ? Ze.set(e, t) : Ze.set(e, n), e.v = t, e.wv = Xn(), zn(e, de), S !== null && (S.f & Q) !== 0 && (S.f & (fe | Se)) === 0 && (V === null ? Eo([e]) : V.push(e)), Ae.size > 0) {
|
|
425
|
+
const r = Array.from(Ae);
|
|
426
|
+
for (const s of r)
|
|
427
|
+
(s.f & Q) !== 0 && H(s, Le), je(s) && Ct(s);
|
|
428
|
+
Ae.clear();
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
return t;
|
|
@@ -433,35 +433,35 @@ function go(e, t) {
|
|
|
433
433
|
function zn(e, t) {
|
|
434
434
|
var n = e.reactions;
|
|
435
435
|
if (n !== null)
|
|
436
|
-
for (var r = n.length,
|
|
437
|
-
var
|
|
436
|
+
for (var r = n.length, s = 0; s < r; s++) {
|
|
437
|
+
var o = n[s], i = o.f;
|
|
438
438
|
if ((i & de) === 0) {
|
|
439
|
-
if ((i &
|
|
440
|
-
|
|
439
|
+
if ((i & On) !== 0) {
|
|
440
|
+
Ae.add(o);
|
|
441
441
|
continue;
|
|
442
442
|
}
|
|
443
|
-
|
|
443
|
+
H(o, t), (i & (Q | G)) !== 0 && ((i & se) !== 0 ? zn(
|
|
444
444
|
/** @type {Derived} */
|
|
445
|
-
|
|
446
|
-
|
|
445
|
+
o,
|
|
446
|
+
Le
|
|
447
447
|
) : Pt(
|
|
448
448
|
/** @type {Effect} */
|
|
449
|
-
|
|
449
|
+
o
|
|
450
450
|
));
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
454
|
// @__NO_SIDE_EFFECTS__
|
|
455
|
-
function
|
|
456
|
-
var t =
|
|
455
|
+
function Wt(e) {
|
|
456
|
+
var t = se | de, n = E !== null && (E.f & se) !== 0 ? (
|
|
457
457
|
/** @type {Derived} */
|
|
458
|
-
|
|
458
|
+
E
|
|
459
459
|
) : null;
|
|
460
|
-
return
|
|
461
|
-
ctx:
|
|
460
|
+
return S === null || n !== null && (n.f & G) !== 0 ? t |= G : S.f |= Fn, {
|
|
461
|
+
ctx: U,
|
|
462
462
|
deps: null,
|
|
463
463
|
effects: null,
|
|
464
|
-
equals:
|
|
464
|
+
equals: Nn,
|
|
465
465
|
f: t,
|
|
466
466
|
fn: e,
|
|
467
467
|
reactions: null,
|
|
@@ -471,11 +471,11 @@ function Xt(e) {
|
|
|
471
471
|
null
|
|
472
472
|
),
|
|
473
473
|
wv: 0,
|
|
474
|
-
parent: n ??
|
|
474
|
+
parent: n ?? S
|
|
475
475
|
};
|
|
476
476
|
}
|
|
477
|
-
function
|
|
478
|
-
const t = /* @__PURE__ */
|
|
477
|
+
function pe(e) {
|
|
478
|
+
const t = /* @__PURE__ */ Wt(e);
|
|
479
479
|
return Gn(t), t;
|
|
480
480
|
}
|
|
481
481
|
function qn(e) {
|
|
@@ -490,9 +490,9 @@ function qn(e) {
|
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
let Tt = [];
|
|
493
|
-
function
|
|
493
|
+
function ho(e) {
|
|
494
494
|
for (var t = e.parent; t !== null; ) {
|
|
495
|
-
if ((t.f &
|
|
495
|
+
if ((t.f & se) === 0)
|
|
496
496
|
return (
|
|
497
497
|
/** @type {Effect} */
|
|
498
498
|
t
|
|
@@ -501,79 +501,79 @@ function po(e) {
|
|
|
501
501
|
}
|
|
502
502
|
return null;
|
|
503
503
|
}
|
|
504
|
-
function
|
|
505
|
-
var t, n =
|
|
506
|
-
|
|
504
|
+
function vo(e) {
|
|
505
|
+
var t, n = S;
|
|
506
|
+
Ne(ho(e));
|
|
507
507
|
{
|
|
508
|
-
let r =
|
|
509
|
-
|
|
508
|
+
let r = Ae;
|
|
509
|
+
un(/* @__PURE__ */ new Set());
|
|
510
510
|
try {
|
|
511
|
-
Tt.includes(e) &&
|
|
511
|
+
Tt.includes(e) && Wr(), Tt.push(e), qn(e), t = Zn(e);
|
|
512
512
|
} finally {
|
|
513
|
-
|
|
513
|
+
Ne(n), un(r), Tt.pop();
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
return t;
|
|
517
517
|
}
|
|
518
518
|
function Jn(e) {
|
|
519
|
-
var t =
|
|
520
|
-
|
|
519
|
+
var t = vo(e), n = (ge || (e.f & G) !== 0) && e.deps !== null ? Le : Q;
|
|
520
|
+
H(e, n), e.equals(t) || (e.v = t, e.wv = Xn());
|
|
521
521
|
}
|
|
522
|
-
var
|
|
523
|
-
function
|
|
522
|
+
var Me = "font-weight: bold", Qe = "font-weight: normal";
|
|
523
|
+
function _o(e) {
|
|
524
524
|
console.warn(`%c[svelte] console_log_state
|
|
525
525
|
%cYour \`console.${e}\` contained \`$state\` proxies. Consider using \`$inspect(...)\` or \`$state.snapshot(...)\` instead
|
|
526
|
-
https://svelte.dev/e/console_log_state`,
|
|
526
|
+
https://svelte.dev/e/console_log_state`, Me, Qe);
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function po(e) {
|
|
529
529
|
console.warn(`%c[svelte] hydration_html_changed
|
|
530
530
|
%c${e ? `The value of an \`{@html ...}\` block ${e} changed between server and client renders. The client value will be ignored in favour of the server value` : "The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
|
|
531
|
-
https://svelte.dev/e/hydration_html_changed`,
|
|
531
|
+
https://svelte.dev/e/hydration_html_changed`, Me, Qe);
|
|
532
532
|
}
|
|
533
533
|
function Et(e) {
|
|
534
534
|
console.warn(`%c[svelte] hydration_mismatch
|
|
535
535
|
%cHydration failed because the initial UI does not match what was rendered on the server
|
|
536
|
-
https://svelte.dev/e/hydration_mismatch`,
|
|
536
|
+
https://svelte.dev/e/hydration_mismatch`, Me, Qe);
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function go() {
|
|
539
539
|
console.warn(`%c[svelte] lifecycle_double_unmount
|
|
540
540
|
%cTried to unmount a component that was not mounted
|
|
541
|
-
https://svelte.dev/e/lifecycle_double_unmount`,
|
|
541
|
+
https://svelte.dev/e/lifecycle_double_unmount`, Me, Qe);
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function fn(e, t) {
|
|
544
544
|
console.warn(`%c[svelte] ownership_invalid_mutation
|
|
545
545
|
%c${e ? `${e} mutated a value owned by ${t}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead` : "Mutating a value outside the component that created it is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead"}
|
|
546
|
-
https://svelte.dev/e/ownership_invalid_mutation`,
|
|
546
|
+
https://svelte.dev/e/ownership_invalid_mutation`, Me, Qe);
|
|
547
547
|
}
|
|
548
548
|
function it(e) {
|
|
549
549
|
console.warn(`%c[svelte] state_proxy_equality_mismatch
|
|
550
550
|
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${e}\` will produce unexpected results
|
|
551
|
-
https://svelte.dev/e/state_proxy_equality_mismatch`,
|
|
551
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`, Me, Qe);
|
|
552
552
|
}
|
|
553
|
-
let
|
|
554
|
-
function
|
|
555
|
-
|
|
553
|
+
let F = !1;
|
|
554
|
+
function Fe(e) {
|
|
555
|
+
F = e;
|
|
556
556
|
}
|
|
557
557
|
let O;
|
|
558
558
|
function ce(e) {
|
|
559
559
|
if (e === null)
|
|
560
|
-
throw Et(),
|
|
560
|
+
throw Et(), Ue;
|
|
561
561
|
return O = e;
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function Ke() {
|
|
564
564
|
return ce(
|
|
565
565
|
/** @type {TemplateNode} */
|
|
566
|
-
/* @__PURE__ */
|
|
566
|
+
/* @__PURE__ */ Ie(O)
|
|
567
567
|
);
|
|
568
568
|
}
|
|
569
|
-
function
|
|
570
|
-
if (
|
|
571
|
-
if (/* @__PURE__ */
|
|
572
|
-
throw Et(),
|
|
569
|
+
function K(e) {
|
|
570
|
+
if (F) {
|
|
571
|
+
if (/* @__PURE__ */ Ie(O) !== null)
|
|
572
|
+
throw Et(), Ue;
|
|
573
573
|
O = e;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function mo() {
|
|
577
577
|
for (var e = 0, t = O; ; ) {
|
|
578
578
|
if (t.nodeType === 8) {
|
|
579
579
|
var n = (
|
|
@@ -587,81 +587,81 @@ function Eo() {
|
|
|
587
587
|
}
|
|
588
588
|
var r = (
|
|
589
589
|
/** @type {TemplateNode} */
|
|
590
|
-
/* @__PURE__ */
|
|
590
|
+
/* @__PURE__ */ Ie(t)
|
|
591
591
|
);
|
|
592
592
|
t.remove(), t = r;
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function yo() {
|
|
596
596
|
const e = Array.prototype, t = Array.__svelte_cleanup;
|
|
597
597
|
t && t();
|
|
598
|
-
const { indexOf: n, lastIndexOf: r, includes:
|
|
599
|
-
e.indexOf = function(
|
|
600
|
-
const l = n.call(this,
|
|
598
|
+
const { indexOf: n, lastIndexOf: r, includes: s } = e;
|
|
599
|
+
e.indexOf = function(o, i) {
|
|
600
|
+
const l = n.call(this, o, i);
|
|
601
601
|
if (l === -1) {
|
|
602
|
-
for (let
|
|
603
|
-
if (
|
|
602
|
+
for (let d = i ?? 0; d < this.length; d += 1)
|
|
603
|
+
if (Ve(this[d]) === o) {
|
|
604
604
|
it("array.indexOf(...)");
|
|
605
605
|
break;
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
608
|
return l;
|
|
609
|
-
}, e.lastIndexOf = function(
|
|
610
|
-
const l = r.call(this,
|
|
609
|
+
}, e.lastIndexOf = function(o, i) {
|
|
610
|
+
const l = r.call(this, o, i ?? this.length - 1);
|
|
611
611
|
if (l === -1) {
|
|
612
|
-
for (let
|
|
613
|
-
if (
|
|
612
|
+
for (let d = 0; d <= (i ?? this.length - 1); d += 1)
|
|
613
|
+
if (Ve(this[d]) === o) {
|
|
614
614
|
it("array.lastIndexOf(...)");
|
|
615
615
|
break;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
618
|
return l;
|
|
619
|
-
}, e.includes = function(
|
|
620
|
-
const l =
|
|
619
|
+
}, e.includes = function(o, i) {
|
|
620
|
+
const l = s.call(this, o, i);
|
|
621
621
|
if (!l) {
|
|
622
|
-
for (let
|
|
623
|
-
if (
|
|
622
|
+
for (let d = 0; d < this.length; d += 1)
|
|
623
|
+
if (Ve(this[d]) === o) {
|
|
624
624
|
it("array.includes(...)");
|
|
625
625
|
break;
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
628
|
return l;
|
|
629
629
|
}, Array.__svelte_cleanup = () => {
|
|
630
|
-
e.indexOf = n, e.lastIndexOf = r, e.includes =
|
|
630
|
+
e.indexOf = n, e.lastIndexOf = r, e.includes = s;
|
|
631
631
|
};
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function T(e, t, n = !0) {
|
|
634
634
|
try {
|
|
635
|
-
e === t != (
|
|
635
|
+
e === t != (Ve(e) === Ve(t)) && it(n ? "===" : "!==");
|
|
636
636
|
} catch {
|
|
637
637
|
}
|
|
638
638
|
return e === t === n;
|
|
639
639
|
}
|
|
640
|
-
var
|
|
641
|
-
function
|
|
642
|
-
if (
|
|
643
|
-
|
|
640
|
+
var dn, Xt, Vn, Yn;
|
|
641
|
+
function Dt() {
|
|
642
|
+
if (dn === void 0) {
|
|
643
|
+
dn = window, Xt = /Firefox/.test(navigator.userAgent);
|
|
644
644
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
645
|
-
Vn =
|
|
645
|
+
Vn = be(t, "firstChild").get, Yn = be(t, "nextSibling").get, sn(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), sn(n) && (n.__t = void 0), e.__svelte_meta = null, yo();
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
function dt(e = "") {
|
|
649
649
|
return document.createTextNode(e);
|
|
650
650
|
}
|
|
651
651
|
// @__NO_SIDE_EFFECTS__
|
|
652
|
-
function
|
|
652
|
+
function et(e) {
|
|
653
653
|
return Vn.call(e);
|
|
654
654
|
}
|
|
655
655
|
// @__NO_SIDE_EFFECTS__
|
|
656
|
-
function
|
|
656
|
+
function Ie(e) {
|
|
657
657
|
return Yn.call(e);
|
|
658
658
|
}
|
|
659
|
-
function
|
|
660
|
-
if (!
|
|
661
|
-
return /* @__PURE__ */
|
|
659
|
+
function ee(e, t) {
|
|
660
|
+
if (!F)
|
|
661
|
+
return /* @__PURE__ */ et(e);
|
|
662
662
|
var n = (
|
|
663
663
|
/** @type {TemplateNode} */
|
|
664
|
-
/* @__PURE__ */
|
|
664
|
+
/* @__PURE__ */ et(O)
|
|
665
665
|
);
|
|
666
666
|
if (n === null)
|
|
667
667
|
n = O.appendChild(dt());
|
|
@@ -671,84 +671,84 @@ function Z(e, t) {
|
|
|
671
671
|
}
|
|
672
672
|
return ce(n), n;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
let r =
|
|
676
|
-
for (var
|
|
677
|
-
|
|
678
|
-
/* @__PURE__ */
|
|
679
|
-
if (!
|
|
674
|
+
function Nt(e, t = 1, n = !1) {
|
|
675
|
+
let r = F ? O : e;
|
|
676
|
+
for (var s; t--; )
|
|
677
|
+
s = r, r = /** @type {TemplateNode} */
|
|
678
|
+
/* @__PURE__ */ Ie(r);
|
|
679
|
+
if (!F)
|
|
680
680
|
return r;
|
|
681
|
-
var
|
|
682
|
-
if (n &&
|
|
681
|
+
var o = r?.nodeType;
|
|
682
|
+
if (n && o !== 3) {
|
|
683
683
|
var i = dt();
|
|
684
|
-
return r === null ?
|
|
684
|
+
return r === null ? s?.after(i) : r.before(i), ce(i), i;
|
|
685
685
|
}
|
|
686
686
|
return ce(r), /** @type {TemplateNode} */
|
|
687
687
|
r;
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function wo(e) {
|
|
690
690
|
e.textContent = "";
|
|
691
691
|
}
|
|
692
|
-
const
|
|
693
|
-
let lt = !1, ht = !1, vt = null,
|
|
694
|
-
function
|
|
692
|
+
const hn = /* @__PURE__ */ new WeakSet();
|
|
693
|
+
let lt = !1, ht = !1, vt = null, Ce = !1, nt = !1;
|
|
694
|
+
function vn(e) {
|
|
695
695
|
nt = e;
|
|
696
696
|
}
|
|
697
|
-
let
|
|
698
|
-
function oe(e) {
|
|
699
|
-
$ = e;
|
|
700
|
-
}
|
|
701
|
-
let E = null;
|
|
697
|
+
let Ye = [], _t = [], E = null, ne = !1;
|
|
702
698
|
function me(e) {
|
|
703
699
|
E = e;
|
|
704
700
|
}
|
|
701
|
+
let S = null;
|
|
702
|
+
function Ne(e) {
|
|
703
|
+
S = e;
|
|
704
|
+
}
|
|
705
705
|
let ae = null;
|
|
706
|
-
function
|
|
706
|
+
function $o(e) {
|
|
707
707
|
ae = e;
|
|
708
708
|
}
|
|
709
709
|
function Gn(e) {
|
|
710
|
-
|
|
710
|
+
E !== null && E.f & Ut && (ae === null ? $o([e]) : ae.push(e));
|
|
711
711
|
}
|
|
712
|
-
let
|
|
713
|
-
function
|
|
714
|
-
|
|
712
|
+
let D = null, q = 0, V = null;
|
|
713
|
+
function Eo(e) {
|
|
714
|
+
V = e;
|
|
715
715
|
}
|
|
716
|
-
let Wn = 1,
|
|
716
|
+
let Wn = 1, pt = 0, ge = !1;
|
|
717
717
|
function Xn() {
|
|
718
718
|
return ++Wn;
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function je(e) {
|
|
721
721
|
var t = e.f;
|
|
722
722
|
if ((t & de) !== 0)
|
|
723
723
|
return !0;
|
|
724
|
-
if ((t &
|
|
725
|
-
var n = e.deps, r = (t &
|
|
724
|
+
if ((t & Le) !== 0) {
|
|
725
|
+
var n = e.deps, r = (t & G) !== 0;
|
|
726
726
|
if (n !== null) {
|
|
727
|
-
var
|
|
727
|
+
var s, o, i = (t & ut) !== 0, l = r && S !== null && !ge, d = n.length;
|
|
728
728
|
if (i || l) {
|
|
729
729
|
var a = (
|
|
730
730
|
/** @type {Derived} */
|
|
731
731
|
e
|
|
732
|
-
),
|
|
733
|
-
for (
|
|
734
|
-
|
|
735
|
-
i && (a.f ^= ut), l &&
|
|
732
|
+
), f = a.parent;
|
|
733
|
+
for (s = 0; s < d; s++)
|
|
734
|
+
o = n[s], (i || !o?.reactions?.includes(a)) && (o.reactions ?? (o.reactions = [])).push(a);
|
|
735
|
+
i && (a.f ^= ut), l && f !== null && (f.f & G) === 0 && (a.f ^= G);
|
|
736
736
|
}
|
|
737
|
-
for (
|
|
738
|
-
if (
|
|
737
|
+
for (s = 0; s < d; s++)
|
|
738
|
+
if (o = n[s], je(
|
|
739
739
|
/** @type {Derived} */
|
|
740
|
-
|
|
740
|
+
o
|
|
741
741
|
) && Jn(
|
|
742
742
|
/** @type {Derived} */
|
|
743
|
-
|
|
744
|
-
),
|
|
743
|
+
o
|
|
744
|
+
), o.wv > e.wv)
|
|
745
745
|
return !0;
|
|
746
746
|
}
|
|
747
|
-
(!r ||
|
|
747
|
+
(!r || S !== null && !ge) && H(e, Q);
|
|
748
748
|
}
|
|
749
749
|
return !1;
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function _n(e, t) {
|
|
752
752
|
for (var n = t; n !== null; ) {
|
|
753
753
|
if ((n.f & ct) !== 0)
|
|
754
754
|
try {
|
|
@@ -770,199 +770,199 @@ function bt(e, t, n, r) {
|
|
|
770
770
|
throw e;
|
|
771
771
|
return;
|
|
772
772
|
}
|
|
773
|
-
if (n !== null && (lt = !0), r === null || !(e instanceof Error) ||
|
|
774
|
-
|
|
773
|
+
if (n !== null && (lt = !0), r === null || !(e instanceof Error) || hn.has(e)) {
|
|
774
|
+
_n(e, t);
|
|
775
775
|
return;
|
|
776
776
|
}
|
|
777
|
-
|
|
778
|
-
const
|
|
779
|
-
|
|
777
|
+
hn.add(e);
|
|
778
|
+
const s = [], o = t.fn?.name;
|
|
779
|
+
o && s.push(o);
|
|
780
780
|
let i = r;
|
|
781
781
|
for (; i !== null; ) {
|
|
782
782
|
{
|
|
783
|
-
var l = i.function?.[
|
|
783
|
+
var l = i.function?.[I];
|
|
784
784
|
if (l) {
|
|
785
|
-
const
|
|
786
|
-
|
|
785
|
+
const f = l.split("/").pop();
|
|
786
|
+
s.push(f);
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
789
|
i = i.p;
|
|
790
790
|
}
|
|
791
|
-
const
|
|
792
|
-
|
|
791
|
+
const d = Xt ? " " : " ";
|
|
792
|
+
re(e, "message", {
|
|
793
793
|
value: e.message + `
|
|
794
|
-
${
|
|
795
|
-
${
|
|
794
|
+
${s.map((f) => `
|
|
795
|
+
${d}in ${f}`).join("")}
|
|
796
796
|
`
|
|
797
|
-
}),
|
|
798
|
-
value:
|
|
797
|
+
}), re(e, "component_stack", {
|
|
798
|
+
value: s
|
|
799
799
|
});
|
|
800
800
|
const a = e.stack;
|
|
801
801
|
if (a) {
|
|
802
|
-
const
|
|
802
|
+
const f = a.split(`
|
|
803
803
|
`), c = [];
|
|
804
|
-
for (let u = 0; u <
|
|
805
|
-
const v =
|
|
804
|
+
for (let u = 0; u < f.length; u++) {
|
|
805
|
+
const v = f[u];
|
|
806
806
|
v.includes("svelte/src/internal") || c.push(v);
|
|
807
807
|
}
|
|
808
|
-
|
|
808
|
+
re(e, "stack", {
|
|
809
809
|
value: c.join(`
|
|
810
810
|
`)
|
|
811
811
|
});
|
|
812
812
|
}
|
|
813
|
-
if (
|
|
813
|
+
if (_n(e, t), pn(t))
|
|
814
814
|
throw e;
|
|
815
815
|
}
|
|
816
816
|
function Hn(e, t, n = !0) {
|
|
817
817
|
var r = e.reactions;
|
|
818
818
|
if (r !== null)
|
|
819
|
-
for (var
|
|
820
|
-
var
|
|
821
|
-
ae?.includes(e) || ((
|
|
819
|
+
for (var s = 0; s < r.length; s++) {
|
|
820
|
+
var o = r[s];
|
|
821
|
+
ae?.includes(e) || ((o.f & se) !== 0 ? Hn(
|
|
822
822
|
/** @type {Derived} */
|
|
823
|
-
|
|
823
|
+
o,
|
|
824
824
|
t,
|
|
825
825
|
!1
|
|
826
|
-
) : t ===
|
|
826
|
+
) : t === o && (n ? H(o, de) : (o.f & Q) !== 0 && H(o, Le), Pt(
|
|
827
827
|
/** @type {Effect} */
|
|
828
|
-
|
|
828
|
+
o
|
|
829
829
|
)));
|
|
830
830
|
}
|
|
831
831
|
}
|
|
832
832
|
function Zn(e) {
|
|
833
833
|
var v;
|
|
834
|
-
var t =
|
|
835
|
-
|
|
836
|
-
null,
|
|
834
|
+
var t = D, n = q, r = V, s = E, o = ge, i = ae, l = U, d = ne, a = e.f;
|
|
835
|
+
D = /** @type {null | Value[]} */
|
|
836
|
+
null, q = 0, V = null, ge = (a & G) !== 0 && (ne || !Ce || E === null), E = (a & (fe | Se)) === 0 ? e : null, ae = null, wn(e.ctx), ne = !1, pt++, e.f |= Ut;
|
|
837
837
|
try {
|
|
838
|
-
var
|
|
838
|
+
var f = (
|
|
839
839
|
/** @type {Function} */
|
|
840
840
|
(0, e.fn)()
|
|
841
841
|
), c = e.deps;
|
|
842
|
-
if (
|
|
842
|
+
if (D !== null) {
|
|
843
843
|
var u;
|
|
844
|
-
if (
|
|
845
|
-
for (c.length =
|
|
846
|
-
c[
|
|
844
|
+
if (gt(e, q), c !== null && q > 0)
|
|
845
|
+
for (c.length = q + D.length, u = 0; u < D.length; u++)
|
|
846
|
+
c[q + u] = D[u];
|
|
847
847
|
else
|
|
848
|
-
e.deps = c =
|
|
849
|
-
if (!
|
|
850
|
-
for (u =
|
|
848
|
+
e.deps = c = D;
|
|
849
|
+
if (!ge)
|
|
850
|
+
for (u = q; u < c.length; u++)
|
|
851
851
|
((v = c[u]).reactions ?? (v.reactions = [])).push(e);
|
|
852
|
-
} else c !== null &&
|
|
853
|
-
if (dr() &&
|
|
852
|
+
} else c !== null && q < c.length && (gt(e, q), c.length = q);
|
|
853
|
+
if (dr() && V !== null && !ne && c !== null && (e.f & (se | Le | de)) === 0)
|
|
854
854
|
for (u = 0; u < /** @type {Source[]} */
|
|
855
|
-
|
|
855
|
+
V.length; u++)
|
|
856
856
|
Hn(
|
|
857
|
-
|
|
857
|
+
V[u],
|
|
858
858
|
/** @type {Effect} */
|
|
859
859
|
e
|
|
860
860
|
);
|
|
861
|
-
return
|
|
862
|
-
|
|
861
|
+
return s !== null && (pt++, V !== null && (r === null ? r = V : r.push(.../** @type {Source[]} */
|
|
862
|
+
V))), f;
|
|
863
863
|
} finally {
|
|
864
|
-
|
|
864
|
+
D = t, q = n, V = r, E = s, ge = o, ae = i, wn(l), ne = d, e.f ^= Ut;
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function bo(e, t) {
|
|
868
868
|
let n = t.reactions;
|
|
869
869
|
if (n !== null) {
|
|
870
|
-
var r =
|
|
870
|
+
var r = Qr.call(n, e);
|
|
871
871
|
if (r !== -1) {
|
|
872
|
-
var
|
|
873
|
-
|
|
872
|
+
var s = n.length - 1;
|
|
873
|
+
s === 0 ? n = t.reactions = null : (n[r] = n[s], n.pop());
|
|
874
874
|
}
|
|
875
875
|
}
|
|
876
|
-
n === null && (t.f &
|
|
876
|
+
n === null && (t.f & se) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
877
877
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
878
878
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
879
|
-
(
|
|
879
|
+
(D === null || !D.includes(t)) && (H(t, Le), (t.f & (G | ut)) === 0 && (t.f ^= ut), qn(
|
|
880
880
|
/** @type {Derived} **/
|
|
881
881
|
t
|
|
882
|
-
),
|
|
882
|
+
), gt(
|
|
883
883
|
/** @type {Derived} **/
|
|
884
884
|
t,
|
|
885
885
|
0
|
|
886
886
|
));
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function gt(e, t) {
|
|
889
889
|
var n = e.deps;
|
|
890
890
|
if (n !== null)
|
|
891
891
|
for (var r = t; r < n.length; r++)
|
|
892
|
-
|
|
892
|
+
bo(e, n[r]);
|
|
893
893
|
}
|
|
894
894
|
function Ct(e) {
|
|
895
895
|
var t = e.f;
|
|
896
896
|
if ((t & $t) === 0) {
|
|
897
|
-
|
|
898
|
-
var n =
|
|
899
|
-
|
|
897
|
+
H(e, Q);
|
|
898
|
+
var n = S, r = U, s = Ce;
|
|
899
|
+
S = e, Ce = !0;
|
|
900
900
|
{
|
|
901
|
-
var
|
|
902
|
-
|
|
901
|
+
var o = Pe;
|
|
902
|
+
$n(e.component_function);
|
|
903
903
|
}
|
|
904
904
|
try {
|
|
905
|
-
(t & Vt) !== 0 ?
|
|
905
|
+
(t & Vt) !== 0 ? To(e) : rr(e), nr(e);
|
|
906
906
|
var i = Zn(e);
|
|
907
907
|
e.teardown = typeof i == "function" ? i : null, e.wv = Wn;
|
|
908
|
-
var l = e.deps,
|
|
909
|
-
|
|
908
|
+
var l = e.deps, d;
|
|
909
|
+
on && io && e.f & de, on && _t.push(e);
|
|
910
910
|
} catch (a) {
|
|
911
911
|
bt(a, e, n, r || e.ctx);
|
|
912
912
|
} finally {
|
|
913
|
-
|
|
913
|
+
Ce = s, S = n, $n(o);
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function gn() {
|
|
918
918
|
console.error(
|
|
919
919
|
"Last ten effects were: ",
|
|
920
920
|
_t.slice(-10).map((e) => e.fn)
|
|
921
921
|
), _t = [];
|
|
922
922
|
}
|
|
923
|
-
function
|
|
923
|
+
function Co() {
|
|
924
924
|
try {
|
|
925
|
-
|
|
925
|
+
Kr();
|
|
926
926
|
} catch (e) {
|
|
927
|
-
if (
|
|
927
|
+
if (re(e, "stack", {
|
|
928
928
|
value: ""
|
|
929
929
|
}), vt !== null)
|
|
930
930
|
try {
|
|
931
931
|
bt(e, vt, null, null);
|
|
932
932
|
} catch (t) {
|
|
933
|
-
throw
|
|
933
|
+
throw gn(), t;
|
|
934
934
|
}
|
|
935
935
|
else
|
|
936
|
-
throw
|
|
936
|
+
throw gn(), e;
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
939
|
function Kn() {
|
|
940
|
-
var e =
|
|
940
|
+
var e = Ce;
|
|
941
941
|
try {
|
|
942
942
|
var t = 0;
|
|
943
|
-
for (
|
|
944
|
-
t++ > 1e3 &&
|
|
945
|
-
var n =
|
|
946
|
-
|
|
947
|
-
for (var
|
|
948
|
-
var
|
|
949
|
-
|
|
943
|
+
for (Ce = !0; Ye.length > 0; ) {
|
|
944
|
+
t++ > 1e3 && Co();
|
|
945
|
+
var n = Ye, r = n.length;
|
|
946
|
+
Ye = [];
|
|
947
|
+
for (var s = 0; s < r; s++) {
|
|
948
|
+
var o = So(n[s]);
|
|
949
|
+
Po(o);
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
952
|
} finally {
|
|
953
|
-
ht = !1,
|
|
953
|
+
ht = !1, Ce = e, vt = null, _t = [], Ze.clear();
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
|
-
function
|
|
956
|
+
function Po(e) {
|
|
957
957
|
var t = e.length;
|
|
958
958
|
if (t !== 0)
|
|
959
959
|
for (var n = 0; n < t; n++) {
|
|
960
960
|
var r = e[n];
|
|
961
|
-
if ((r.f & ($t |
|
|
961
|
+
if ((r.f & ($t | De)) === 0)
|
|
962
962
|
try {
|
|
963
|
-
|
|
964
|
-
} catch (
|
|
965
|
-
bt(
|
|
963
|
+
je(r) && (Ct(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? or(r) : r.fn = null));
|
|
964
|
+
} catch (s) {
|
|
965
|
+
bt(s, r, null, r.ctx);
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
968
|
}
|
|
@@ -971,29 +971,29 @@ function Pt(e) {
|
|
|
971
971
|
for (var t = vt = e; t.parent !== null; ) {
|
|
972
972
|
t = t.parent;
|
|
973
973
|
var n = t.f;
|
|
974
|
-
if ((n & (
|
|
975
|
-
if ((n &
|
|
976
|
-
t.f ^=
|
|
974
|
+
if ((n & (Se | fe)) !== 0) {
|
|
975
|
+
if ((n & Q) === 0) return;
|
|
976
|
+
t.f ^= Q;
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
|
-
|
|
979
|
+
Ye.push(t);
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function So(e) {
|
|
982
982
|
for (var t = [], n = e; n !== null; ) {
|
|
983
|
-
var r = n.f,
|
|
984
|
-
if (!
|
|
983
|
+
var r = n.f, s = (r & (fe | Se)) !== 0, o = s && (r & Q) !== 0;
|
|
984
|
+
if (!o && (r & De) === 0) {
|
|
985
985
|
if ((r & Rn) !== 0)
|
|
986
986
|
t.push(n);
|
|
987
|
-
else if (
|
|
988
|
-
n.f ^=
|
|
987
|
+
else if (s)
|
|
988
|
+
n.f ^= Q;
|
|
989
989
|
else {
|
|
990
|
-
var i =
|
|
990
|
+
var i = E;
|
|
991
991
|
try {
|
|
992
|
-
|
|
992
|
+
E = n, je(n) && Ct(n);
|
|
993
993
|
} catch (a) {
|
|
994
994
|
bt(a, n, null, n.ctx);
|
|
995
995
|
} finally {
|
|
996
|
-
|
|
996
|
+
E = i;
|
|
997
997
|
}
|
|
998
998
|
}
|
|
999
999
|
var l = n.first;
|
|
@@ -1002,67 +1002,67 @@ function ko(e) {
|
|
|
1002
1002
|
continue;
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
1005
|
-
var
|
|
1006
|
-
for (n = n.next; n === null &&
|
|
1007
|
-
n =
|
|
1005
|
+
var d = n.parent;
|
|
1006
|
+
for (n = n.next; n === null && d !== null; )
|
|
1007
|
+
n = d.next, d = d.parent;
|
|
1008
1008
|
}
|
|
1009
1009
|
return t;
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function P(e) {
|
|
1012
1012
|
var t;
|
|
1013
|
-
for (
|
|
1014
|
-
ht = !0, Kn(),
|
|
1013
|
+
for (ln(); Ye.length > 0; )
|
|
1014
|
+
ht = !0, Kn(), ln();
|
|
1015
1015
|
return (
|
|
1016
1016
|
/** @type {T} */
|
|
1017
1017
|
t
|
|
1018
1018
|
);
|
|
1019
1019
|
}
|
|
1020
1020
|
async function er() {
|
|
1021
|
-
await Promise.resolve(),
|
|
1021
|
+
await Promise.resolve(), P();
|
|
1022
1022
|
}
|
|
1023
1023
|
function m(e) {
|
|
1024
|
-
var t = e.f, n = (t &
|
|
1025
|
-
if (
|
|
1024
|
+
var t = e.f, n = (t & se) !== 0;
|
|
1025
|
+
if (E !== null && !ne) {
|
|
1026
1026
|
if (!ae?.includes(e)) {
|
|
1027
|
-
var r =
|
|
1028
|
-
e.rv <
|
|
1027
|
+
var r = E.deps;
|
|
1028
|
+
e.rv < pt && (e.rv = pt, D === null && r !== null && r[q] === e ? q++ : D === null ? D = [e] : (!ge || !D.includes(e)) && D.push(e));
|
|
1029
1029
|
}
|
|
1030
1030
|
} else if (n && /** @type {Derived} */
|
|
1031
1031
|
e.deps === null && /** @type {Derived} */
|
|
1032
1032
|
e.effects === null) {
|
|
1033
|
-
var
|
|
1033
|
+
var s = (
|
|
1034
1034
|
/** @type {Derived} */
|
|
1035
1035
|
e
|
|
1036
|
-
),
|
|
1037
|
-
|
|
1036
|
+
), o = s.parent;
|
|
1037
|
+
o !== null && (o.f & G) === 0 && (s.f ^= G);
|
|
1038
1038
|
}
|
|
1039
|
-
return n && (
|
|
1040
|
-
e,
|
|
1039
|
+
return n && (s = /** @type {Derived} */
|
|
1040
|
+
e, je(s) && Jn(s)), nt && Ze.has(e) ? Ze.get(e) : e.v;
|
|
1041
1041
|
}
|
|
1042
1042
|
function Mt(e) {
|
|
1043
|
-
var t =
|
|
1043
|
+
var t = ne;
|
|
1044
1044
|
try {
|
|
1045
|
-
return
|
|
1045
|
+
return ne = !0, e();
|
|
1046
1046
|
} finally {
|
|
1047
|
-
|
|
1047
|
+
ne = t;
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
1050
|
-
const
|
|
1051
|
-
function
|
|
1052
|
-
e.f = e.f &
|
|
1050
|
+
const Lo = -7169;
|
|
1051
|
+
function H(e, t) {
|
|
1052
|
+
e.f = e.f & Lo | t;
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1055
|
-
|
|
1054
|
+
function Io(e) {
|
|
1055
|
+
S === null && E === null && Zr(e), E !== null && (E.f & G) !== 0 && S === null && Hr(), nt && Xr(e);
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function xo(e, t) {
|
|
1058
1058
|
var n = t.last;
|
|
1059
1059
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1062
|
-
for (var
|
|
1063
|
-
|
|
1064
|
-
var
|
|
1065
|
-
ctx:
|
|
1061
|
+
function xe(e, t, n, r = !0) {
|
|
1062
|
+
for (var s = S; s !== null && (s.f & On) !== 0; )
|
|
1063
|
+
s = s.parent;
|
|
1064
|
+
var o = {
|
|
1065
|
+
ctx: U,
|
|
1066
1066
|
deps: null,
|
|
1067
1067
|
nodes_start: null,
|
|
1068
1068
|
nodes_end: null,
|
|
@@ -1071,94 +1071,94 @@ function ke(e, t, n, r = !0) {
|
|
|
1071
1071
|
fn: t,
|
|
1072
1072
|
last: null,
|
|
1073
1073
|
next: null,
|
|
1074
|
-
parent:
|
|
1074
|
+
parent: s,
|
|
1075
1075
|
prev: null,
|
|
1076
1076
|
teardown: null,
|
|
1077
1077
|
transitions: null,
|
|
1078
1078
|
wv: 0
|
|
1079
1079
|
};
|
|
1080
|
-
if (
|
|
1080
|
+
if (o.component_function = Pe, n)
|
|
1081
1081
|
try {
|
|
1082
|
-
Ct(
|
|
1083
|
-
} catch (
|
|
1084
|
-
throw ue(
|
|
1082
|
+
Ct(o), o.f |= Nr;
|
|
1083
|
+
} catch (d) {
|
|
1084
|
+
throw ue(o), d;
|
|
1085
1085
|
}
|
|
1086
|
-
else t !== null && Pt(
|
|
1087
|
-
var i = n &&
|
|
1088
|
-
if (!i && r && (
|
|
1086
|
+
else t !== null && Pt(o);
|
|
1087
|
+
var i = n && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & (Fn | ct)) === 0;
|
|
1088
|
+
if (!i && r && (s !== null && xo(o, s), E !== null && (E.f & se) !== 0)) {
|
|
1089
1089
|
var l = (
|
|
1090
1090
|
/** @type {Derived} */
|
|
1091
|
-
|
|
1091
|
+
E
|
|
1092
1092
|
);
|
|
1093
|
-
(l.effects ?? (l.effects = [])).push(
|
|
1093
|
+
(l.effects ?? (l.effects = [])).push(o);
|
|
1094
1094
|
}
|
|
1095
|
-
return
|
|
1095
|
+
return o;
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1098
|
-
const t =
|
|
1099
|
-
return
|
|
1097
|
+
function ko(e) {
|
|
1098
|
+
const t = xe(wt, null, !1);
|
|
1099
|
+
return H(t, Q), t.teardown = e, t;
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1102
|
-
|
|
1103
|
-
var t =
|
|
1104
|
-
if (
|
|
1101
|
+
function Te(e) {
|
|
1102
|
+
Io("$effect");
|
|
1103
|
+
var t = S !== null && (S.f & fe) !== 0 && U !== null && !U.m;
|
|
1104
|
+
if (re(e, "name", {
|
|
1105
1105
|
value: "$effect"
|
|
1106
1106
|
}), t) {
|
|
1107
1107
|
var n = (
|
|
1108
1108
|
/** @type {ComponentContext} */
|
|
1109
|
-
|
|
1109
|
+
U
|
|
1110
1110
|
);
|
|
1111
1111
|
(n.e ?? (n.e = [])).push({
|
|
1112
1112
|
fn: e,
|
|
1113
|
-
effect:
|
|
1114
|
-
reaction:
|
|
1113
|
+
effect: S,
|
|
1114
|
+
reaction: E
|
|
1115
1115
|
});
|
|
1116
1116
|
} else {
|
|
1117
1117
|
var r = tr(e);
|
|
1118
1118
|
return r;
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
|
-
function
|
|
1122
|
-
const t =
|
|
1121
|
+
function Ro(e) {
|
|
1122
|
+
const t = xe(Se, e, !0);
|
|
1123
1123
|
return () => {
|
|
1124
1124
|
ue(t);
|
|
1125
1125
|
};
|
|
1126
1126
|
}
|
|
1127
|
-
function
|
|
1128
|
-
const t =
|
|
1127
|
+
function Oo(e) {
|
|
1128
|
+
const t = xe(Se, e, !0);
|
|
1129
1129
|
return (n = {}) => new Promise((r) => {
|
|
1130
|
-
n.outro ?
|
|
1130
|
+
n.outro ? Qt(t, () => {
|
|
1131
1131
|
ue(t), r(void 0);
|
|
1132
1132
|
}) : (ue(t), r(void 0));
|
|
1133
1133
|
});
|
|
1134
1134
|
}
|
|
1135
1135
|
function tr(e) {
|
|
1136
|
-
return
|
|
1136
|
+
return xe(Rn, e, !1);
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1139
|
-
return
|
|
1138
|
+
function Fo(e) {
|
|
1139
|
+
return xe(wt, e, !0);
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1142
|
-
const r = t.map(n),
|
|
1143
|
-
return
|
|
1141
|
+
function Ge(e, t = [], n = Wt) {
|
|
1142
|
+
const r = t.map(n), s = () => e(...r.map(m));
|
|
1143
|
+
return re(s, "name", {
|
|
1144
1144
|
value: "{expression}"
|
|
1145
|
-
}),
|
|
1145
|
+
}), Ht(s);
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1148
|
-
return
|
|
1147
|
+
function Ht(e, t = 0) {
|
|
1148
|
+
return xe(wt | Vt | t, e, !0);
|
|
1149
1149
|
}
|
|
1150
1150
|
function mt(e, t = !0) {
|
|
1151
|
-
return
|
|
1151
|
+
return xe(wt | fe, e, !0, t);
|
|
1152
1152
|
}
|
|
1153
1153
|
function nr(e) {
|
|
1154
1154
|
var t = e.teardown;
|
|
1155
1155
|
if (t !== null) {
|
|
1156
|
-
const n = nt, r =
|
|
1157
|
-
|
|
1156
|
+
const n = nt, r = E;
|
|
1157
|
+
vn(!0), me(null);
|
|
1158
1158
|
try {
|
|
1159
1159
|
t.call(null);
|
|
1160
1160
|
} finally {
|
|
1161
|
-
|
|
1161
|
+
vn(n), me(r);
|
|
1162
1162
|
}
|
|
1163
1163
|
}
|
|
1164
1164
|
}
|
|
@@ -1166,10 +1166,10 @@ function rr(e, t = !1) {
|
|
|
1166
1166
|
var n = e.first;
|
|
1167
1167
|
for (e.first = e.last = null; n !== null; ) {
|
|
1168
1168
|
var r = n.next;
|
|
1169
|
-
(n.f &
|
|
1169
|
+
(n.f & Se) !== 0 ? n.parent = null : ue(n, t), n = r;
|
|
1170
1170
|
}
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1172
|
+
function To(e) {
|
|
1173
1173
|
for (var t = e.first; t !== null; ) {
|
|
1174
1174
|
var n = t.next;
|
|
1175
1175
|
(t.f & fe) === 0 && ue(t), t = n;
|
|
@@ -1177,21 +1177,21 @@ function Do(e) {
|
|
|
1177
1177
|
}
|
|
1178
1178
|
function ue(e, t = !0) {
|
|
1179
1179
|
var n = !1;
|
|
1180
|
-
if ((t || (e.f &
|
|
1181
|
-
for (var r = e.nodes_start,
|
|
1182
|
-
var
|
|
1180
|
+
if ((t || (e.f & Mr) !== 0) && e.nodes_start !== null) {
|
|
1181
|
+
for (var r = e.nodes_start, s = e.nodes_end; r !== null; ) {
|
|
1182
|
+
var o = r === s ? null : (
|
|
1183
1183
|
/** @type {TemplateNode} */
|
|
1184
|
-
/* @__PURE__ */
|
|
1184
|
+
/* @__PURE__ */ Ie(r)
|
|
1185
1185
|
);
|
|
1186
|
-
r.remove(), r =
|
|
1186
|
+
r.remove(), r = o;
|
|
1187
1187
|
}
|
|
1188
1188
|
n = !0;
|
|
1189
1189
|
}
|
|
1190
|
-
rr(e, t && !n),
|
|
1190
|
+
rr(e, t && !n), gt(e, 0), H(e, $t);
|
|
1191
1191
|
var i = e.transitions;
|
|
1192
1192
|
if (i !== null)
|
|
1193
|
-
for (const
|
|
1194
|
-
|
|
1193
|
+
for (const d of i)
|
|
1194
|
+
d.stop();
|
|
1195
1195
|
nr(e);
|
|
1196
1196
|
var l = e.parent;
|
|
1197
1197
|
l !== null && l.first !== null && or(e), e.component_function = null, e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes_start = e.nodes_end = null;
|
|
@@ -1200,55 +1200,55 @@ function or(e) {
|
|
|
1200
1200
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1201
1201
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1203
|
+
function Qt(e, t) {
|
|
1204
1204
|
var n = [];
|
|
1205
|
-
sr(e, n, !0),
|
|
1205
|
+
sr(e, n, !0), Bo(n, () => {
|
|
1206
1206
|
ue(e), t && t();
|
|
1207
1207
|
});
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1209
|
+
function Bo(e, t) {
|
|
1210
1210
|
var n = e.length;
|
|
1211
1211
|
if (n > 0) {
|
|
1212
1212
|
var r = () => --n || t();
|
|
1213
|
-
for (var
|
|
1214
|
-
|
|
1213
|
+
for (var s of e)
|
|
1214
|
+
s.out(r);
|
|
1215
1215
|
} else
|
|
1216
1216
|
t();
|
|
1217
1217
|
}
|
|
1218
1218
|
function sr(e, t, n) {
|
|
1219
|
-
if ((e.f &
|
|
1220
|
-
if (e.f ^=
|
|
1219
|
+
if ((e.f & De) === 0) {
|
|
1220
|
+
if (e.f ^= De, e.transitions !== null)
|
|
1221
1221
|
for (const i of e.transitions)
|
|
1222
1222
|
(i.is_global || n) && t.push(i);
|
|
1223
1223
|
for (var r = e.first; r !== null; ) {
|
|
1224
|
-
var
|
|
1225
|
-
sr(r, t,
|
|
1224
|
+
var s = r.next, o = (r.f & Yt) !== 0 || (r.f & fe) !== 0;
|
|
1225
|
+
sr(r, t, o ? n : !1), r = s;
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1229
|
+
function mn(e) {
|
|
1230
1230
|
ir(e, !0);
|
|
1231
1231
|
}
|
|
1232
1232
|
function ir(e, t) {
|
|
1233
|
-
if ((e.f &
|
|
1234
|
-
e.f ^=
|
|
1233
|
+
if ((e.f & De) !== 0) {
|
|
1234
|
+
e.f ^= De, (e.f & Q) === 0 && (e.f ^= Q), je(e) && (H(e, de), Pt(e));
|
|
1235
1235
|
for (var n = e.first; n !== null; ) {
|
|
1236
|
-
var r = n.next,
|
|
1237
|
-
ir(n,
|
|
1236
|
+
var r = n.next, s = (n.f & Yt) !== 0 || (n.f & fe) !== 0;
|
|
1237
|
+
ir(n, s ? t : !1), n = r;
|
|
1238
1238
|
}
|
|
1239
1239
|
if (e.transitions !== null)
|
|
1240
|
-
for (const
|
|
1241
|
-
(
|
|
1240
|
+
for (const o of e.transitions)
|
|
1241
|
+
(o.is_global || t) && o.in();
|
|
1242
1242
|
}
|
|
1243
1243
|
}
|
|
1244
|
-
const
|
|
1245
|
-
function
|
|
1244
|
+
const We = {}, Uo = /at (?:.+ \()?(.+):(\d+):(\d+)\)?$/, Ao = /@(.+):(\d+):(\d+)$/;
|
|
1245
|
+
function Zt() {
|
|
1246
1246
|
const e = new Error().stack;
|
|
1247
1247
|
if (!e) return null;
|
|
1248
1248
|
const t = [];
|
|
1249
1249
|
for (const n of e.split(`
|
|
1250
1250
|
`)) {
|
|
1251
|
-
let r =
|
|
1251
|
+
let r = Uo.exec(n) ?? Ao.exec(n);
|
|
1252
1252
|
r && t.push({
|
|
1253
1253
|
file: r[1],
|
|
1254
1254
|
line: +r[2],
|
|
@@ -1258,27 +1258,27 @@ function Kt() {
|
|
|
1258
1258
|
return t;
|
|
1259
1259
|
}
|
|
1260
1260
|
function lr() {
|
|
1261
|
-
const e =
|
|
1261
|
+
const e = Zt()?.slice(4);
|
|
1262
1262
|
if (!e) return null;
|
|
1263
1263
|
for (let t = 0; t < e.length; t++) {
|
|
1264
|
-
const n = e[t], r =
|
|
1264
|
+
const n = e[t], r = We[n.file];
|
|
1265
1265
|
if (!r) {
|
|
1266
1266
|
if (t === 0) return null;
|
|
1267
1267
|
continue;
|
|
1268
1268
|
}
|
|
1269
|
-
for (const
|
|
1270
|
-
if (
|
|
1269
|
+
for (const s of r) {
|
|
1270
|
+
if (s.end == null)
|
|
1271
1271
|
return null;
|
|
1272
|
-
if (
|
|
1273
|
-
return
|
|
1272
|
+
if (s.start.line < n.line && s.end.line > n.line)
|
|
1273
|
+
return s.component;
|
|
1274
1274
|
}
|
|
1275
1275
|
}
|
|
1276
1276
|
return null;
|
|
1277
1277
|
}
|
|
1278
1278
|
function ar() {
|
|
1279
1279
|
var t;
|
|
1280
|
-
const e =
|
|
1281
|
-
e && (
|
|
1280
|
+
const e = Zt()?.[2];
|
|
1281
|
+
e && (We[t = e.file] ?? (We[t] = [])).push({
|
|
1282
1282
|
start: e,
|
|
1283
1283
|
// @ts-expect-error
|
|
1284
1284
|
end: null,
|
|
@@ -1287,13 +1287,13 @@ function ar() {
|
|
|
1287
1287
|
});
|
|
1288
1288
|
}
|
|
1289
1289
|
function cr(e) {
|
|
1290
|
-
const t =
|
|
1290
|
+
const t = Zt()?.[2];
|
|
1291
1291
|
if (t) {
|
|
1292
|
-
const n =
|
|
1292
|
+
const n = We[t.file], r = n[n.length - 1];
|
|
1293
1293
|
r.end = t, r.component = e;
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
|
-
function
|
|
1296
|
+
function yn(e, t) {
|
|
1297
1297
|
if (t.owners !== null)
|
|
1298
1298
|
for (; e; ) {
|
|
1299
1299
|
if (e.owners === null) {
|
|
@@ -1307,10 +1307,10 @@ function wn(e, t) {
|
|
|
1307
1307
|
}
|
|
1308
1308
|
function ur(e, t) {
|
|
1309
1309
|
return e.owners === null ? !0 : e.owners.has(t) || // This helps avoid false positives when using HMR, where the component function is replaced
|
|
1310
|
-
|
|
1310
|
+
I in t && [...e.owners].some(
|
|
1311
1311
|
(n) => (
|
|
1312
1312
|
/** @type {any} */
|
|
1313
|
-
n[
|
|
1313
|
+
n[I] === t[I]
|
|
1314
1314
|
)
|
|
1315
1315
|
) || e.parent !== null && ur(e.parent, t);
|
|
1316
1316
|
}
|
|
@@ -1320,24 +1320,24 @@ function fr(e) {
|
|
|
1320
1320
|
e.parent
|
|
1321
1321
|
);
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1323
|
+
function Do(e) {
|
|
1324
1324
|
const t = lr();
|
|
1325
1325
|
if (t && !ur(e, t)) {
|
|
1326
1326
|
let n = fr(e);
|
|
1327
|
-
n[
|
|
1327
|
+
n[I] !== t[I] ? fn(t[I], n[I]) : fn();
|
|
1328
1328
|
}
|
|
1329
1329
|
}
|
|
1330
|
-
let
|
|
1331
|
-
function
|
|
1332
|
-
|
|
1330
|
+
let U = null;
|
|
1331
|
+
function wn(e) {
|
|
1332
|
+
U = e;
|
|
1333
1333
|
}
|
|
1334
|
-
let
|
|
1335
|
-
function
|
|
1336
|
-
|
|
1334
|
+
let Pe = null;
|
|
1335
|
+
function $n(e) {
|
|
1336
|
+
Pe = e;
|
|
1337
1337
|
}
|
|
1338
|
-
function
|
|
1339
|
-
var r =
|
|
1340
|
-
p:
|
|
1338
|
+
function Kt(e, t = !1, n) {
|
|
1339
|
+
var r = U = {
|
|
1340
|
+
p: U,
|
|
1341
1341
|
c: null,
|
|
1342
1342
|
d: !1,
|
|
1343
1343
|
e: null,
|
|
@@ -1346,28 +1346,28 @@ function en(e, t = !1, n) {
|
|
|
1346
1346
|
x: null,
|
|
1347
1347
|
l: null
|
|
1348
1348
|
};
|
|
1349
|
-
|
|
1349
|
+
ko(() => {
|
|
1350
1350
|
r.d = !0;
|
|
1351
|
-
}),
|
|
1351
|
+
}), U.function = n, Pe = n;
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1354
|
-
const t =
|
|
1353
|
+
function en(e) {
|
|
1354
|
+
const t = U;
|
|
1355
1355
|
if (t !== null) {
|
|
1356
1356
|
e !== void 0 && (t.x = e);
|
|
1357
1357
|
const i = t.e;
|
|
1358
1358
|
if (i !== null) {
|
|
1359
|
-
var n =
|
|
1359
|
+
var n = S, r = E;
|
|
1360
1360
|
t.e = null;
|
|
1361
1361
|
try {
|
|
1362
|
-
for (var
|
|
1363
|
-
var
|
|
1364
|
-
|
|
1362
|
+
for (var s = 0; s < i.length; s++) {
|
|
1363
|
+
var o = i[s];
|
|
1364
|
+
Ne(o.effect), me(o.reaction), tr(o.fn);
|
|
1365
1365
|
}
|
|
1366
1366
|
} finally {
|
|
1367
|
-
|
|
1367
|
+
Ne(n), me(r);
|
|
1368
1368
|
}
|
|
1369
1369
|
}
|
|
1370
|
-
|
|
1370
|
+
U = t.p, Pe = t.p?.function ?? null, t.m = !0;
|
|
1371
1371
|
}
|
|
1372
1372
|
return e || /** @type {T} */
|
|
1373
1373
|
{};
|
|
@@ -1375,47 +1375,47 @@ function tn(e) {
|
|
|
1375
1375
|
function dr() {
|
|
1376
1376
|
return !0;
|
|
1377
1377
|
}
|
|
1378
|
-
const
|
|
1379
|
-
function
|
|
1380
|
-
e = e.replace(
|
|
1378
|
+
const No = /\r/g;
|
|
1379
|
+
function Mo(e) {
|
|
1380
|
+
e = e.replace(No, "");
|
|
1381
1381
|
let t = 5381, n = e.length;
|
|
1382
1382
|
for (; n--; ) t = (t << 5) - t ^ e.charCodeAt(n);
|
|
1383
1383
|
return (t >>> 0).toString(36);
|
|
1384
1384
|
}
|
|
1385
|
-
const
|
|
1386
|
-
function
|
|
1387
|
-
return
|
|
1385
|
+
const Qo = ["touchstart", "touchmove"];
|
|
1386
|
+
function jo(e) {
|
|
1387
|
+
return Qo.includes(e);
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function zo(e) {
|
|
1390
1390
|
return e?.replace(/\//g, "/");
|
|
1391
1391
|
}
|
|
1392
|
-
var
|
|
1393
|
-
function
|
|
1394
|
-
var n =
|
|
1395
|
-
n || (n = /* @__PURE__ */ new Set(),
|
|
1392
|
+
var En = /* @__PURE__ */ new Map();
|
|
1393
|
+
function qo(e, t) {
|
|
1394
|
+
var n = En.get(e);
|
|
1395
|
+
n || (n = /* @__PURE__ */ new Set(), En.set(e, n)), n.add(t);
|
|
1396
1396
|
}
|
|
1397
1397
|
function ye(e, t, n) {
|
|
1398
1398
|
return (...r) => {
|
|
1399
|
-
const
|
|
1400
|
-
var
|
|
1401
|
-
return hr(
|
|
1399
|
+
const s = e(...r);
|
|
1400
|
+
var o = F ? s : s.nodeType === 11 ? s.firstChild : s;
|
|
1401
|
+
return hr(o, t, n), s;
|
|
1402
1402
|
};
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1404
|
+
function Jo(e, t, n) {
|
|
1405
1405
|
e.__svelte_meta = {
|
|
1406
1406
|
loc: { file: t, line: n[0], column: n[1] }
|
|
1407
1407
|
}, n[2] && hr(e.firstChild, t, n[2]);
|
|
1408
1408
|
}
|
|
1409
1409
|
function hr(e, t, n) {
|
|
1410
|
-
for (var r = 0,
|
|
1411
|
-
if (
|
|
1412
|
-
var
|
|
1410
|
+
for (var r = 0, s = 0; e && r < n.length; ) {
|
|
1411
|
+
if (F && e.nodeType === 8) {
|
|
1412
|
+
var o = (
|
|
1413
1413
|
/** @type {Comment} */
|
|
1414
1414
|
e
|
|
1415
1415
|
);
|
|
1416
|
-
|
|
1416
|
+
o.data === yt || o.data === qt ? s += 1 : o.data[0] === Jt && (s -= 1);
|
|
1417
1417
|
}
|
|
1418
|
-
|
|
1418
|
+
s === 0 && e.nodeType === 1 && Jo(
|
|
1419
1419
|
/** @type {Element} */
|
|
1420
1420
|
e,
|
|
1421
1421
|
t,
|
|
@@ -1423,68 +1423,68 @@ function hr(e, t, n) {
|
|
|
1423
1423
|
), e = e.nextSibling;
|
|
1424
1424
|
}
|
|
1425
1425
|
}
|
|
1426
|
-
const
|
|
1426
|
+
const Vo = /* @__PURE__ */ new Set(), bn = /* @__PURE__ */ new Set();
|
|
1427
1427
|
function rt(e) {
|
|
1428
1428
|
var t = this, n = (
|
|
1429
1429
|
/** @type {Node} */
|
|
1430
1430
|
t.ownerDocument
|
|
1431
|
-
), r = e.type,
|
|
1431
|
+
), r = e.type, s = e.composedPath?.() || [], o = (
|
|
1432
1432
|
/** @type {null | Element} */
|
|
1433
|
-
|
|
1433
|
+
s[0] || e.target
|
|
1434
1434
|
), i = 0, l = e.__root;
|
|
1435
1435
|
if (l) {
|
|
1436
|
-
var
|
|
1437
|
-
if (
|
|
1436
|
+
var d = s.indexOf(l);
|
|
1437
|
+
if (d !== -1 && (t === document || t === /** @type {any} */
|
|
1438
1438
|
window)) {
|
|
1439
1439
|
e.__root = t;
|
|
1440
1440
|
return;
|
|
1441
1441
|
}
|
|
1442
|
-
var a =
|
|
1442
|
+
var a = s.indexOf(t);
|
|
1443
1443
|
if (a === -1)
|
|
1444
1444
|
return;
|
|
1445
|
-
|
|
1445
|
+
d <= a && (i = d);
|
|
1446
1446
|
}
|
|
1447
|
-
if (
|
|
1448
|
-
|
|
1449
|
-
|
|
1447
|
+
if (o = /** @type {Element} */
|
|
1448
|
+
s[i] || e.target, o !== t) {
|
|
1449
|
+
re(e, "currentTarget", {
|
|
1450
1450
|
configurable: !0,
|
|
1451
1451
|
get() {
|
|
1452
|
-
return
|
|
1452
|
+
return o || n;
|
|
1453
1453
|
}
|
|
1454
1454
|
});
|
|
1455
|
-
var
|
|
1456
|
-
|
|
1455
|
+
var f = E, c = S;
|
|
1456
|
+
me(null), Ne(null);
|
|
1457
1457
|
try {
|
|
1458
|
-
for (var u, v = [];
|
|
1459
|
-
var _ =
|
|
1460
|
-
|
|
1458
|
+
for (var u, v = []; o !== null; ) {
|
|
1459
|
+
var _ = o.assignedSlot || o.parentNode || /** @type {any} */
|
|
1460
|
+
o.host || null;
|
|
1461
1461
|
try {
|
|
1462
|
-
var
|
|
1463
|
-
if (
|
|
1464
|
-
|
|
1462
|
+
var g = o["__" + r];
|
|
1463
|
+
if (g != null && (!/** @type {any} */
|
|
1464
|
+
o.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1465
1465
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1466
|
-
e.target ===
|
|
1467
|
-
if (Gt(
|
|
1468
|
-
var [
|
|
1469
|
-
|
|
1466
|
+
e.target === o))
|
|
1467
|
+
if (Gt(g)) {
|
|
1468
|
+
var [w, ...k] = g;
|
|
1469
|
+
w.apply(o, [e, ...k]);
|
|
1470
1470
|
} else
|
|
1471
|
-
|
|
1472
|
-
} catch (
|
|
1473
|
-
u ? v.push(
|
|
1471
|
+
g.call(o, e);
|
|
1472
|
+
} catch (x) {
|
|
1473
|
+
u ? v.push(x) : u = x;
|
|
1474
1474
|
}
|
|
1475
1475
|
if (e.cancelBubble || _ === t || _ === null)
|
|
1476
1476
|
break;
|
|
1477
|
-
|
|
1477
|
+
o = _;
|
|
1478
1478
|
}
|
|
1479
1479
|
if (u) {
|
|
1480
|
-
for (let
|
|
1480
|
+
for (let x of v)
|
|
1481
1481
|
queueMicrotask(() => {
|
|
1482
|
-
throw
|
|
1482
|
+
throw x;
|
|
1483
1483
|
});
|
|
1484
1484
|
throw u;
|
|
1485
1485
|
}
|
|
1486
1486
|
} finally {
|
|
1487
|
-
e.__root = t, delete e.currentTarget,
|
|
1487
|
+
e.__root = t, delete e.currentTarget, me(f), Ne(c);
|
|
1488
1488
|
}
|
|
1489
1489
|
}
|
|
1490
1490
|
}
|
|
@@ -1492,42 +1492,31 @@ function vr(e) {
|
|
|
1492
1492
|
var t = document.createElement("template");
|
|
1493
1493
|
return t.innerHTML = e, t.content;
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1495
|
+
function tt(e, t) {
|
|
1496
1496
|
var n = (
|
|
1497
1497
|
/** @type {Effect} */
|
|
1498
|
-
|
|
1498
|
+
S
|
|
1499
1499
|
);
|
|
1500
1500
|
n.nodes_start === null && (n.nodes_start = e, n.nodes_end = t);
|
|
1501
1501
|
}
|
|
1502
1502
|
// @__NO_SIDE_EFFECTS__
|
|
1503
1503
|
function we(e, t) {
|
|
1504
|
-
var n = (t &
|
|
1504
|
+
var n = (t & Dr) !== 0, r, s = !e.startsWith("<!>");
|
|
1505
1505
|
return () => {
|
|
1506
|
-
if (
|
|
1507
|
-
return
|
|
1508
|
-
|
|
1509
|
-
/* @__PURE__ */
|
|
1510
|
-
var
|
|
1506
|
+
if (F)
|
|
1507
|
+
return tt(O, null), O;
|
|
1508
|
+
r === void 0 && (r = vr(s ? e : "<!>" + e), r = /** @type {Node} */
|
|
1509
|
+
/* @__PURE__ */ et(r));
|
|
1510
|
+
var o = (
|
|
1511
1511
|
/** @type {TemplateNode} */
|
|
1512
|
-
|
|
1512
|
+
n || Xt ? document.importNode(r, !0) : r.cloneNode(!0)
|
|
1513
1513
|
);
|
|
1514
|
-
|
|
1515
|
-
var l = (
|
|
1516
|
-
/** @type {TemplateNode} */
|
|
1517
|
-
/* @__PURE__ */ je(i)
|
|
1518
|
-
), h = (
|
|
1519
|
-
/** @type {TemplateNode} */
|
|
1520
|
-
i.lastChild
|
|
1521
|
-
);
|
|
1522
|
-
Me(l, h);
|
|
1523
|
-
} else
|
|
1524
|
-
Me(i, i);
|
|
1525
|
-
return i;
|
|
1514
|
+
return tt(o, o), o;
|
|
1526
1515
|
};
|
|
1527
1516
|
}
|
|
1528
1517
|
function le(e, t) {
|
|
1529
|
-
if (
|
|
1530
|
-
|
|
1518
|
+
if (F) {
|
|
1519
|
+
S.nodes_end = O, Ke();
|
|
1531
1520
|
return;
|
|
1532
1521
|
}
|
|
1533
1522
|
e !== null && e.before(
|
|
@@ -1535,103 +1524,103 @@ function le(e, t) {
|
|
|
1535
1524
|
t
|
|
1536
1525
|
);
|
|
1537
1526
|
}
|
|
1538
|
-
function
|
|
1527
|
+
function Yo(e, t) {
|
|
1539
1528
|
var n = t == null ? "" : typeof t == "object" ? t + "" : t;
|
|
1540
1529
|
n !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = n, e.nodeValue = n + "");
|
|
1541
1530
|
}
|
|
1542
1531
|
function _r(e, t) {
|
|
1543
|
-
return
|
|
1532
|
+
return pr(e, t);
|
|
1544
1533
|
}
|
|
1545
|
-
function
|
|
1546
|
-
|
|
1547
|
-
const n = t.target, r =
|
|
1534
|
+
function Go(e, t) {
|
|
1535
|
+
Dt(), t.intro = t.intro ?? !1;
|
|
1536
|
+
const n = t.target, r = F, s = O;
|
|
1548
1537
|
try {
|
|
1549
|
-
for (var
|
|
1538
|
+
for (var o = (
|
|
1550
1539
|
/** @type {TemplateNode} */
|
|
1551
|
-
/* @__PURE__ */
|
|
1552
|
-
);
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
/* @__PURE__ */
|
|
1556
|
-
if (!
|
|
1557
|
-
throw
|
|
1558
|
-
|
|
1540
|
+
/* @__PURE__ */ et(n)
|
|
1541
|
+
); o && (o.nodeType !== 8 || /** @type {Comment} */
|
|
1542
|
+
o.data !== yt); )
|
|
1543
|
+
o = /** @type {TemplateNode} */
|
|
1544
|
+
/* @__PURE__ */ Ie(o);
|
|
1545
|
+
if (!o)
|
|
1546
|
+
throw Ue;
|
|
1547
|
+
Fe(!0), ce(
|
|
1559
1548
|
/** @type {Comment} */
|
|
1560
|
-
|
|
1561
|
-
),
|
|
1562
|
-
const i =
|
|
1549
|
+
o
|
|
1550
|
+
), Ke();
|
|
1551
|
+
const i = pr(e, { ...t, anchor: o });
|
|
1563
1552
|
if (O === null || O.nodeType !== 8 || /** @type {Comment} */
|
|
1564
1553
|
O.data !== Jt)
|
|
1565
|
-
throw Et(),
|
|
1566
|
-
return
|
|
1554
|
+
throw Et(), Ue;
|
|
1555
|
+
return Fe(!1), /** @type {Exports} */
|
|
1567
1556
|
i;
|
|
1568
1557
|
} catch (i) {
|
|
1569
|
-
if (i ===
|
|
1570
|
-
return t.recover === !1 &&
|
|
1558
|
+
if (i === Ue)
|
|
1559
|
+
return t.recover === !1 && eo(), Dt(), wo(n), Fe(!1), _r(e, t);
|
|
1571
1560
|
throw i;
|
|
1572
1561
|
} finally {
|
|
1573
|
-
|
|
1562
|
+
Fe(r), ce(s);
|
|
1574
1563
|
}
|
|
1575
1564
|
}
|
|
1576
|
-
const
|
|
1577
|
-
function
|
|
1578
|
-
|
|
1579
|
-
var l = /* @__PURE__ */ new Set(),
|
|
1565
|
+
const Oe = /* @__PURE__ */ new Map();
|
|
1566
|
+
function pr(e, { target: t, anchor: n, props: r = {}, events: s, context: o, intro: i = !0 }) {
|
|
1567
|
+
Dt();
|
|
1568
|
+
var l = /* @__PURE__ */ new Set(), d = (c) => {
|
|
1580
1569
|
for (var u = 0; u < c.length; u++) {
|
|
1581
1570
|
var v = c[u];
|
|
1582
1571
|
if (!l.has(v)) {
|
|
1583
1572
|
l.add(v);
|
|
1584
|
-
var _ =
|
|
1573
|
+
var _ = jo(v);
|
|
1585
1574
|
t.addEventListener(v, rt, { passive: _ });
|
|
1586
|
-
var
|
|
1587
|
-
|
|
1575
|
+
var g = Oe.get(v);
|
|
1576
|
+
g === void 0 ? (document.addEventListener(v, rt, { passive: _ }), Oe.set(v, 1)) : Oe.set(v, g + 1);
|
|
1588
1577
|
}
|
|
1589
1578
|
}
|
|
1590
1579
|
};
|
|
1591
|
-
|
|
1592
|
-
var a = void 0,
|
|
1580
|
+
d(jr(Vo)), bn.add(d);
|
|
1581
|
+
var a = void 0, f = Oo(() => {
|
|
1593
1582
|
var c = n ?? t.appendChild(dt());
|
|
1594
1583
|
return mt(() => {
|
|
1595
|
-
if (
|
|
1596
|
-
|
|
1584
|
+
if (o) {
|
|
1585
|
+
Kt({});
|
|
1597
1586
|
var u = (
|
|
1598
1587
|
/** @type {ComponentContext} */
|
|
1599
|
-
|
|
1588
|
+
U
|
|
1600
1589
|
);
|
|
1601
|
-
u.c =
|
|
1590
|
+
u.c = o;
|
|
1602
1591
|
}
|
|
1603
|
-
|
|
1592
|
+
s && (r.$$events = s), F && tt(
|
|
1604
1593
|
/** @type {TemplateNode} */
|
|
1605
1594
|
c,
|
|
1606
1595
|
null
|
|
1607
|
-
), a = e(c, r) || {},
|
|
1596
|
+
), a = e(c, r) || {}, F && (S.nodes_end = O), o && en();
|
|
1608
1597
|
}), () => {
|
|
1609
1598
|
for (var u of l) {
|
|
1610
1599
|
t.removeEventListener(u, rt);
|
|
1611
1600
|
var v = (
|
|
1612
1601
|
/** @type {number} */
|
|
1613
|
-
|
|
1602
|
+
Oe.get(u)
|
|
1614
1603
|
);
|
|
1615
|
-
--v === 0 ? (document.removeEventListener(u, rt),
|
|
1604
|
+
--v === 0 ? (document.removeEventListener(u, rt), Oe.delete(u)) : Oe.set(u, v);
|
|
1616
1605
|
}
|
|
1617
|
-
|
|
1606
|
+
bn.delete(d), c !== n && c.parentNode?.removeChild(c);
|
|
1618
1607
|
};
|
|
1619
1608
|
});
|
|
1620
|
-
return jt.set(a,
|
|
1609
|
+
return jt.set(a, f), a;
|
|
1621
1610
|
}
|
|
1622
1611
|
let jt = /* @__PURE__ */ new WeakMap();
|
|
1623
|
-
function
|
|
1612
|
+
function Wo(e, t) {
|
|
1624
1613
|
const n = jt.get(e);
|
|
1625
|
-
return n ? (jt.delete(e), n(t)) : (
|
|
1614
|
+
return n ? (jt.delete(e), n(t)) : (go(), Promise.resolve());
|
|
1626
1615
|
}
|
|
1627
|
-
function
|
|
1628
|
-
e &&
|
|
1616
|
+
function gr(e) {
|
|
1617
|
+
e && Gr(e[I] ?? "a component", e.name);
|
|
1629
1618
|
}
|
|
1630
1619
|
function mr() {
|
|
1631
|
-
const e =
|
|
1620
|
+
const e = U?.function;
|
|
1632
1621
|
function t(n) {
|
|
1633
|
-
const r = lr()?.[
|
|
1634
|
-
|
|
1622
|
+
const r = lr()?.[I] ?? "Something";
|
|
1623
|
+
Yr(r, n, e[I]);
|
|
1635
1624
|
}
|
|
1636
1625
|
return {
|
|
1637
1626
|
$destroy: () => t("$destroy()"),
|
|
@@ -1639,79 +1628,79 @@ function mr() {
|
|
|
1639
1628
|
$set: () => t("$set(...)")
|
|
1640
1629
|
};
|
|
1641
1630
|
}
|
|
1642
|
-
function
|
|
1643
|
-
|
|
1644
|
-
var
|
|
1645
|
-
const
|
|
1631
|
+
function Xe(e, t, [n, r] = [0, 0]) {
|
|
1632
|
+
F && n === 0 && Ke();
|
|
1633
|
+
var s = e, o = null, i = null, l = M, d = n > 0 ? Yt : 0, a = !1;
|
|
1634
|
+
const f = (u, v = !0) => {
|
|
1646
1635
|
a = !0, c(v, u);
|
|
1647
1636
|
}, c = (u, v) => {
|
|
1648
1637
|
if (l === (l = u)) return;
|
|
1649
1638
|
let _ = !1;
|
|
1650
|
-
if (
|
|
1639
|
+
if (F && r !== -1) {
|
|
1651
1640
|
if (n === 0) {
|
|
1652
|
-
const
|
|
1641
|
+
const w = (
|
|
1653
1642
|
/** @type {Comment} */
|
|
1654
|
-
|
|
1643
|
+
s.data
|
|
1655
1644
|
);
|
|
1656
|
-
|
|
1645
|
+
w === yt ? r = 0 : w === qt ? r = 1 / 0 : (r = parseInt(w.substring(1)), r !== r && (r = l ? 1 / 0 : -1));
|
|
1657
1646
|
}
|
|
1658
|
-
const
|
|
1659
|
-
!!l ===
|
|
1647
|
+
const g = r > n;
|
|
1648
|
+
!!l === g && (s = mo(), ce(s), Fe(!1), _ = !0, r = -1);
|
|
1660
1649
|
}
|
|
1661
|
-
l ? (
|
|
1650
|
+
l ? (o ? mn(o) : v && (o = mt(() => v(s))), i && Qt(i, () => {
|
|
1662
1651
|
i = null;
|
|
1663
|
-
})) : (i ?
|
|
1664
|
-
|
|
1665
|
-
})), _ &&
|
|
1652
|
+
})) : (i ? mn(i) : v && (i = mt(() => v(s, [n + 1, r]))), o && Qt(o, () => {
|
|
1653
|
+
o = null;
|
|
1654
|
+
})), _ && Fe(!0);
|
|
1666
1655
|
};
|
|
1667
|
-
|
|
1668
|
-
a = !1, t(
|
|
1669
|
-
},
|
|
1656
|
+
Ht(() => {
|
|
1657
|
+
a = !1, t(f), a || c(null, null);
|
|
1658
|
+
}, d), F && (s = O);
|
|
1670
1659
|
}
|
|
1671
|
-
function
|
|
1672
|
-
if (!t || t ===
|
|
1660
|
+
function Xo(e, t, n) {
|
|
1661
|
+
if (!t || t === Mo(String(n ?? ""))) return;
|
|
1673
1662
|
let r;
|
|
1674
|
-
const
|
|
1675
|
-
|
|
1663
|
+
const s = e.__svelte_meta?.loc;
|
|
1664
|
+
s ? r = `near ${s.file}:${s.line}:${s.column}` : Pe?.[I] && (r = `in ${Pe[I]}`), po(zo(r));
|
|
1676
1665
|
}
|
|
1677
|
-
function
|
|
1678
|
-
var
|
|
1679
|
-
|
|
1666
|
+
function Cn(e, t, n, r, s) {
|
|
1667
|
+
var o = e, i = "", l;
|
|
1668
|
+
Ht(() => {
|
|
1680
1669
|
if (i === (i = t() ?? "")) {
|
|
1681
|
-
|
|
1670
|
+
F && Ke();
|
|
1682
1671
|
return;
|
|
1683
1672
|
}
|
|
1684
1673
|
l !== void 0 && (ue(l), l = void 0), i !== "" && (l = mt(() => {
|
|
1685
|
-
if (
|
|
1686
|
-
for (var
|
|
1674
|
+
if (F) {
|
|
1675
|
+
for (var d = (
|
|
1687
1676
|
/** @type {Comment} */
|
|
1688
1677
|
O.data
|
|
1689
|
-
), a =
|
|
1678
|
+
), a = Ke(), f = a; a !== null && (a.nodeType !== 8 || /** @type {Comment} */
|
|
1690
1679
|
a.data !== ""); )
|
|
1691
|
-
|
|
1692
|
-
/* @__PURE__ */
|
|
1680
|
+
f = a, a = /** @type {TemplateNode} */
|
|
1681
|
+
/* @__PURE__ */ Ie(a);
|
|
1693
1682
|
if (a === null)
|
|
1694
|
-
throw Et(),
|
|
1695
|
-
|
|
1683
|
+
throw Et(), Ue;
|
|
1684
|
+
Xo(
|
|
1696
1685
|
/** @type {Element} */
|
|
1697
1686
|
a.parentNode,
|
|
1698
|
-
|
|
1687
|
+
d,
|
|
1699
1688
|
i
|
|
1700
|
-
),
|
|
1689
|
+
), tt(O, f), o = ce(a);
|
|
1701
1690
|
return;
|
|
1702
1691
|
}
|
|
1703
1692
|
var c = i + "", u = vr(c);
|
|
1704
|
-
|
|
1693
|
+
tt(
|
|
1705
1694
|
/** @type {TemplateNode} */
|
|
1706
|
-
/* @__PURE__ */
|
|
1695
|
+
/* @__PURE__ */ et(u),
|
|
1707
1696
|
/** @type {TemplateNode} */
|
|
1708
1697
|
u.lastChild
|
|
1709
|
-
),
|
|
1698
|
+
), o.before(u);
|
|
1710
1699
|
}));
|
|
1711
1700
|
});
|
|
1712
1701
|
}
|
|
1713
1702
|
function yr(e, t) {
|
|
1714
|
-
|
|
1703
|
+
Jr(() => {
|
|
1715
1704
|
var n = e.getRootNode(), r = (
|
|
1716
1705
|
/** @type {ShadowRoot} */
|
|
1717
1706
|
n.host ? (
|
|
@@ -1724,65 +1713,22 @@ function yr(e, t) {
|
|
|
1724
1713
|
)
|
|
1725
1714
|
);
|
|
1726
1715
|
if (!r.querySelector("#" + t.hash)) {
|
|
1727
|
-
const
|
|
1728
|
-
|
|
1716
|
+
const s = document.createElement("style");
|
|
1717
|
+
s.id = t.hash, s.textContent = t.code, r.appendChild(s), qo(t.hash, s);
|
|
1729
1718
|
}
|
|
1730
1719
|
});
|
|
1731
1720
|
}
|
|
1732
|
-
function
|
|
1721
|
+
function Ho(e, t, n) {
|
|
1733
1722
|
var r = e == null ? "" : "" + e;
|
|
1734
1723
|
return t && (r = r ? r + " " + t : t), r === "" ? null : r;
|
|
1735
1724
|
}
|
|
1736
|
-
function
|
|
1725
|
+
function Be(e, t, n, r, s, o) {
|
|
1737
1726
|
var i = e.__className;
|
|
1738
|
-
if (
|
|
1739
|
-
var l =
|
|
1740
|
-
(!
|
|
1741
|
-
}
|
|
1742
|
-
return s;
|
|
1743
|
-
}
|
|
1744
|
-
const ns = Symbol("is custom element"), rs = Symbol("is html");
|
|
1745
|
-
function os(e, t, n, r) {
|
|
1746
|
-
var o = is(e);
|
|
1747
|
-
x && (o[t] = e.getAttribute(t)), o[t] !== (o[t] = n) && (n == null ? e.removeAttribute(t) : typeof n != "string" && wr(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
|
|
1748
|
-
}
|
|
1749
|
-
function ss(e, t, n) {
|
|
1750
|
-
var r = $, o = E;
|
|
1751
|
-
let s = x;
|
|
1752
|
-
x && ge(!1), oe(null), me(null);
|
|
1753
|
-
try {
|
|
1754
|
-
// `style` should use `set_attribute` rather than the setter
|
|
1755
|
-
t !== "style" && // Don't compute setters for custom elements while they aren't registered yet,
|
|
1756
|
-
// because during their upgrade/instantiation they might add more setters.
|
|
1757
|
-
// Instead, fall back to a simple "an object, then set as property" heuristic.
|
|
1758
|
-
(Qt.has(e.nodeName) || // customElements may not be available in browser extension contexts
|
|
1759
|
-
!customElements || customElements.get(e.tagName.toLowerCase()) ? wr(e).includes(t) : n && typeof n == "object") ? e[t] = n : os(e, t, n == null ? n : String(n));
|
|
1760
|
-
} finally {
|
|
1761
|
-
oe(r), me(o), s && ge(!0);
|
|
1762
|
-
}
|
|
1763
|
-
}
|
|
1764
|
-
function is(e) {
|
|
1765
|
-
return (
|
|
1766
|
-
/** @type {Record<string | symbol, unknown>} **/
|
|
1767
|
-
// @ts-expect-error
|
|
1768
|
-
e.__attributes ?? (e.__attributes = {
|
|
1769
|
-
[ns]: e.nodeName.includes("-"),
|
|
1770
|
-
[rs]: e.namespaceURI === jr
|
|
1771
|
-
})
|
|
1772
|
-
);
|
|
1773
|
-
}
|
|
1774
|
-
var Qt = /* @__PURE__ */ new Map();
|
|
1775
|
-
function wr(e) {
|
|
1776
|
-
var t = Qt.get(e.nodeName);
|
|
1777
|
-
if (t) return t;
|
|
1778
|
-
Qt.set(e.nodeName, t = []);
|
|
1779
|
-
for (var n, r = e, o = Element.prototype; o !== r; ) {
|
|
1780
|
-
n = Vr(r);
|
|
1781
|
-
for (var s in n)
|
|
1782
|
-
n[s].set && t.push(s);
|
|
1783
|
-
r = Wt(r);
|
|
1727
|
+
if (F || i !== n || i === void 0) {
|
|
1728
|
+
var l = Ho(n, r);
|
|
1729
|
+
(!F || l !== e.getAttribute("class")) && (l == null ? e.removeAttribute("class") : e.className = l), e.__className = n;
|
|
1784
1730
|
}
|
|
1785
|
-
return
|
|
1731
|
+
return o;
|
|
1786
1732
|
}
|
|
1787
1733
|
{
|
|
1788
1734
|
let e = function(t) {
|
|
@@ -1794,7 +1740,7 @@ function wr(e) {
|
|
|
1794
1740
|
get: () => {
|
|
1795
1741
|
if (n !== void 0)
|
|
1796
1742
|
return n;
|
|
1797
|
-
|
|
1743
|
+
no(t);
|
|
1798
1744
|
},
|
|
1799
1745
|
set: (r) => {
|
|
1800
1746
|
n = r;
|
|
@@ -1802,11 +1748,11 @@ function wr(e) {
|
|
|
1802
1748
|
});
|
|
1803
1749
|
}
|
|
1804
1750
|
};
|
|
1805
|
-
var
|
|
1751
|
+
var Es = e;
|
|
1806
1752
|
e("$state"), e("$effect"), e("$derived"), e("$inspect"), e("$props"), e("$bindable");
|
|
1807
1753
|
}
|
|
1808
1754
|
let ot = !1;
|
|
1809
|
-
function
|
|
1755
|
+
function Zo(e) {
|
|
1810
1756
|
var t = ot;
|
|
1811
1757
|
try {
|
|
1812
1758
|
return ot = !1, [e(), ot];
|
|
@@ -1814,62 +1760,62 @@ function ls(e) {
|
|
|
1814
1760
|
ot = t;
|
|
1815
1761
|
}
|
|
1816
1762
|
}
|
|
1817
|
-
function
|
|
1763
|
+
function Pn(e) {
|
|
1818
1764
|
return e.ctx?.d ?? !1;
|
|
1819
1765
|
}
|
|
1820
|
-
function
|
|
1821
|
-
var
|
|
1822
|
-
i ? [a,
|
|
1766
|
+
function L(e, t, n, r) {
|
|
1767
|
+
var s = (n & Tr) !== 0, o = !0, i = (n & Ur) !== 0, l = (n & Ar) !== 0, d = !1, a;
|
|
1768
|
+
i ? [a, d] = Zo(() => (
|
|
1823
1769
|
/** @type {V} */
|
|
1824
1770
|
e[t]
|
|
1825
1771
|
)) : a = /** @type {V} */
|
|
1826
1772
|
e[t];
|
|
1827
|
-
var
|
|
1773
|
+
var f = Ee in e || Tn in e, c = i && (be(e, t)?.set ?? (f && t in e && ((b) => e[t] = b))) || void 0, u = (
|
|
1828
1774
|
/** @type {V} */
|
|
1829
1775
|
r
|
|
1830
|
-
), v = !0, _ = !1,
|
|
1776
|
+
), v = !0, _ = !1, g = () => (_ = !0, v && (v = !1, l ? u = Mt(
|
|
1831
1777
|
/** @type {() => V} */
|
|
1832
1778
|
r
|
|
1833
1779
|
) : u = /** @type {V} */
|
|
1834
1780
|
r), u);
|
|
1835
|
-
a === void 0 && r !== void 0 && (c &&
|
|
1836
|
-
var
|
|
1837
|
-
if (
|
|
1838
|
-
var
|
|
1781
|
+
a === void 0 && r !== void 0 && (c && o && to(t), a = g(), c && c(a));
|
|
1782
|
+
var w;
|
|
1783
|
+
if (w = () => {
|
|
1784
|
+
var b = (
|
|
1839
1785
|
/** @type {V} */
|
|
1840
1786
|
e[t]
|
|
1841
1787
|
);
|
|
1842
|
-
return
|
|
1843
|
-
}, (n &
|
|
1844
|
-
return
|
|
1788
|
+
return b === void 0 ? g() : (v = !0, _ = !1, b);
|
|
1789
|
+
}, (n & Br) === 0)
|
|
1790
|
+
return w;
|
|
1845
1791
|
if (c) {
|
|
1846
|
-
var
|
|
1847
|
-
return function(
|
|
1848
|
-
return arguments.length > 0 ? ((!
|
|
1792
|
+
var k = e.$$legacy;
|
|
1793
|
+
return function(b, j) {
|
|
1794
|
+
return arguments.length > 0 ? ((!j || k || d) && c(j ? w() : b), b) : w();
|
|
1849
1795
|
};
|
|
1850
1796
|
}
|
|
1851
|
-
var
|
|
1852
|
-
var
|
|
1853
|
-
return
|
|
1797
|
+
var x = !1, A = /* @__PURE__ */ jn(a), R = /* @__PURE__ */ Wt(() => {
|
|
1798
|
+
var b = w(), j = m(A);
|
|
1799
|
+
return x ? (x = !1, j) : A.v = b;
|
|
1854
1800
|
});
|
|
1855
|
-
return i && m(
|
|
1801
|
+
return i && m(R), s || (R.equals = Mn), function(b, j) {
|
|
1856
1802
|
if (arguments.length > 0) {
|
|
1857
|
-
const
|
|
1858
|
-
if (!
|
|
1859
|
-
if (
|
|
1860
|
-
return
|
|
1861
|
-
Mt(() => m(
|
|
1803
|
+
const Z = j ? m(R) : i ? $e(b) : b;
|
|
1804
|
+
if (!R.equals(Z)) {
|
|
1805
|
+
if (x = !0, $(A, Z), _ && u !== void 0 && (u = Z), Pn(R))
|
|
1806
|
+
return b;
|
|
1807
|
+
Mt(() => m(R));
|
|
1862
1808
|
}
|
|
1863
|
-
return
|
|
1809
|
+
return b;
|
|
1864
1810
|
}
|
|
1865
|
-
return
|
|
1811
|
+
return Pn(R) ? R.v : m(R);
|
|
1866
1812
|
};
|
|
1867
1813
|
}
|
|
1868
|
-
function
|
|
1869
|
-
return new
|
|
1814
|
+
function Ko(e) {
|
|
1815
|
+
return new es(e);
|
|
1870
1816
|
}
|
|
1871
|
-
var ie,
|
|
1872
|
-
class
|
|
1817
|
+
var ie, Y;
|
|
1818
|
+
class es {
|
|
1873
1819
|
/**
|
|
1874
1820
|
* @param {ComponentConstructorOptions & {
|
|
1875
1821
|
* component: any;
|
|
@@ -1879,54 +1825,54 @@ class cs {
|
|
|
1879
1825
|
/** @type {any} */
|
|
1880
1826
|
Ot(this, ie);
|
|
1881
1827
|
/** @type {Record<string, any>} */
|
|
1882
|
-
Ot(this,
|
|
1883
|
-
var n = /* @__PURE__ */ new Map(), r = (
|
|
1884
|
-
var l = /* @__PURE__ */
|
|
1885
|
-
return n.set(
|
|
1828
|
+
Ot(this, Y);
|
|
1829
|
+
var n = /* @__PURE__ */ new Map(), r = (o, i) => {
|
|
1830
|
+
var l = /* @__PURE__ */ jn(i);
|
|
1831
|
+
return n.set(o, l), l;
|
|
1886
1832
|
};
|
|
1887
|
-
const
|
|
1833
|
+
const s = new Proxy(
|
|
1888
1834
|
{ ...t.props || {}, $$events: {} },
|
|
1889
1835
|
{
|
|
1890
|
-
get(
|
|
1891
|
-
return m(n.get(i) ?? r(i, Reflect.get(
|
|
1836
|
+
get(o, i) {
|
|
1837
|
+
return m(n.get(i) ?? r(i, Reflect.get(o, i)));
|
|
1892
1838
|
},
|
|
1893
|
-
has(
|
|
1894
|
-
return i ===
|
|
1839
|
+
has(o, i) {
|
|
1840
|
+
return i === Tn ? !0 : (m(n.get(i) ?? r(i, Reflect.get(o, i))), Reflect.has(o, i));
|
|
1895
1841
|
},
|
|
1896
|
-
set(
|
|
1897
|
-
return
|
|
1842
|
+
set(o, i, l) {
|
|
1843
|
+
return $(n.get(i) ?? r(i, l), l), Reflect.set(o, i, l);
|
|
1898
1844
|
}
|
|
1899
1845
|
}
|
|
1900
1846
|
);
|
|
1901
|
-
|
|
1847
|
+
Ft(this, Y, (t.hydrate ? Go : _r)(t.component, {
|
|
1902
1848
|
target: t.target,
|
|
1903
1849
|
anchor: t.anchor,
|
|
1904
|
-
props:
|
|
1850
|
+
props: s,
|
|
1905
1851
|
context: t.context,
|
|
1906
1852
|
intro: t.intro ?? !1,
|
|
1907
1853
|
recover: t.recover
|
|
1908
|
-
})), (!t?.props?.$$host || t.sync === !1) &&
|
|
1909
|
-
for (const
|
|
1910
|
-
|
|
1854
|
+
})), (!t?.props?.$$host || t.sync === !1) && P(), Ft(this, ie, s.$$events);
|
|
1855
|
+
for (const o of Object.keys(N(this, Y)))
|
|
1856
|
+
o === "$set" || o === "$destroy" || o === "$on" || re(this, o, {
|
|
1911
1857
|
get() {
|
|
1912
|
-
return
|
|
1858
|
+
return N(this, Y)[o];
|
|
1913
1859
|
},
|
|
1914
1860
|
/** @param {any} value */
|
|
1915
1861
|
set(i) {
|
|
1916
|
-
|
|
1862
|
+
N(this, Y)[o] = i;
|
|
1917
1863
|
},
|
|
1918
1864
|
enumerable: !0
|
|
1919
1865
|
});
|
|
1920
|
-
|
|
1921
|
-
(
|
|
1922
|
-
Object.assign(
|
|
1923
|
-
},
|
|
1924
|
-
|
|
1866
|
+
N(this, Y).$set = /** @param {Record<string, any>} next */
|
|
1867
|
+
(o) => {
|
|
1868
|
+
Object.assign(s, o);
|
|
1869
|
+
}, N(this, Y).$destroy = () => {
|
|
1870
|
+
Wo(N(this, Y));
|
|
1925
1871
|
};
|
|
1926
1872
|
}
|
|
1927
1873
|
/** @param {Record<string, any>} props */
|
|
1928
1874
|
$set(t) {
|
|
1929
|
-
|
|
1875
|
+
N(this, Y).$set(t);
|
|
1930
1876
|
}
|
|
1931
1877
|
/**
|
|
1932
1878
|
* @param {string} event
|
|
@@ -1934,22 +1880,22 @@ class cs {
|
|
|
1934
1880
|
* @returns {any}
|
|
1935
1881
|
*/
|
|
1936
1882
|
$on(t, n) {
|
|
1937
|
-
|
|
1938
|
-
const r = (...
|
|
1939
|
-
return
|
|
1940
|
-
|
|
1883
|
+
N(this, ie)[t] = N(this, ie)[t] || [];
|
|
1884
|
+
const r = (...s) => n.call(this, ...s);
|
|
1885
|
+
return N(this, ie)[t].push(r), () => {
|
|
1886
|
+
N(this, ie)[t] = N(this, ie)[t].filter(
|
|
1941
1887
|
/** @param {any} fn */
|
|
1942
|
-
(
|
|
1888
|
+
(s) => s !== r
|
|
1943
1889
|
);
|
|
1944
1890
|
};
|
|
1945
1891
|
}
|
|
1946
1892
|
$destroy() {
|
|
1947
|
-
|
|
1893
|
+
N(this, Y).$destroy();
|
|
1948
1894
|
}
|
|
1949
1895
|
}
|
|
1950
|
-
ie = new WeakMap(),
|
|
1951
|
-
let
|
|
1952
|
-
typeof HTMLElement == "function" && (
|
|
1896
|
+
ie = new WeakMap(), Y = new WeakMap();
|
|
1897
|
+
let wr;
|
|
1898
|
+
typeof HTMLElement == "function" && (wr = class extends HTMLElement {
|
|
1953
1899
|
/**
|
|
1954
1900
|
* @param {*} $$componentCtor
|
|
1955
1901
|
* @param {*} $$slots
|
|
@@ -1958,25 +1904,25 @@ typeof HTMLElement == "function" && ($r = class extends HTMLElement {
|
|
|
1958
1904
|
constructor(t, n, r) {
|
|
1959
1905
|
super();
|
|
1960
1906
|
/** The Svelte component constructor */
|
|
1961
|
-
|
|
1907
|
+
X(this, "$$ctor");
|
|
1962
1908
|
/** Slots */
|
|
1963
|
-
|
|
1909
|
+
X(this, "$$s");
|
|
1964
1910
|
/** @type {any} The Svelte component instance */
|
|
1965
|
-
|
|
1911
|
+
X(this, "$$c");
|
|
1966
1912
|
/** Whether or not the custom element is connected */
|
|
1967
|
-
|
|
1913
|
+
X(this, "$$cn", !1);
|
|
1968
1914
|
/** @type {Record<string, any>} Component props data */
|
|
1969
|
-
|
|
1915
|
+
X(this, "$$d", {});
|
|
1970
1916
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
1971
|
-
|
|
1917
|
+
X(this, "$$r", !1);
|
|
1972
1918
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
1973
|
-
|
|
1919
|
+
X(this, "$$p_d", {});
|
|
1974
1920
|
/** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
|
|
1975
|
-
|
|
1921
|
+
X(this, "$$l", {});
|
|
1976
1922
|
/** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
|
|
1977
|
-
|
|
1923
|
+
X(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
1978
1924
|
/** @type {any} The managed render effect for reflecting attributes */
|
|
1979
|
-
|
|
1925
|
+
X(this, "$$me");
|
|
1980
1926
|
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
1981
1927
|
}
|
|
1982
1928
|
/**
|
|
@@ -1986,8 +1932,8 @@ typeof HTMLElement == "function" && ($r = class extends HTMLElement {
|
|
|
1986
1932
|
*/
|
|
1987
1933
|
addEventListener(t, n, r) {
|
|
1988
1934
|
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
|
|
1989
|
-
const
|
|
1990
|
-
this.$$l_u.set(n,
|
|
1935
|
+
const s = this.$$c.$on(t, n);
|
|
1936
|
+
this.$$l_u.set(n, s);
|
|
1991
1937
|
}
|
|
1992
1938
|
super.addEventListener(t, n, r);
|
|
1993
1939
|
}
|
|
@@ -1998,31 +1944,31 @@ typeof HTMLElement == "function" && ($r = class extends HTMLElement {
|
|
|
1998
1944
|
*/
|
|
1999
1945
|
removeEventListener(t, n, r) {
|
|
2000
1946
|
if (super.removeEventListener(t, n, r), this.$$c) {
|
|
2001
|
-
const
|
|
2002
|
-
|
|
1947
|
+
const s = this.$$l_u.get(n);
|
|
1948
|
+
s && (s(), this.$$l_u.delete(n));
|
|
2003
1949
|
}
|
|
2004
1950
|
}
|
|
2005
1951
|
async connectedCallback() {
|
|
2006
1952
|
if (this.$$cn = !0, !this.$$c) {
|
|
2007
|
-
let n = function(
|
|
1953
|
+
let n = function(o) {
|
|
2008
1954
|
return (i) => {
|
|
2009
1955
|
const l = document.createElement("slot");
|
|
2010
|
-
|
|
1956
|
+
o !== "default" && (l.name = o), le(i, l);
|
|
2011
1957
|
};
|
|
2012
1958
|
};
|
|
2013
1959
|
var t = n;
|
|
2014
1960
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
2015
1961
|
return;
|
|
2016
|
-
const r = {},
|
|
2017
|
-
for (const
|
|
2018
|
-
|
|
2019
|
-
for (const
|
|
2020
|
-
const i = this.$$g_p(
|
|
2021
|
-
i in this.$$d || (this.$$d[i] = at(i,
|
|
1962
|
+
const r = {}, s = ts(this);
|
|
1963
|
+
for (const o of this.$$s)
|
|
1964
|
+
o in s && (o === "default" && !this.$$d.children ? (this.$$d.children = n(o), r.default = !0) : r[o] = n(o));
|
|
1965
|
+
for (const o of this.attributes) {
|
|
1966
|
+
const i = this.$$g_p(o.name);
|
|
1967
|
+
i in this.$$d || (this.$$d[i] = at(i, o.value, this.$$p_d, "toProp"));
|
|
2022
1968
|
}
|
|
2023
|
-
for (const
|
|
2024
|
-
!(
|
|
2025
|
-
this.$$c =
|
|
1969
|
+
for (const o in this.$$p_d)
|
|
1970
|
+
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
1971
|
+
this.$$c = Ko({
|
|
2026
1972
|
component: this.$$ctor,
|
|
2027
1973
|
target: this.shadowRoot || this,
|
|
2028
1974
|
props: {
|
|
@@ -2030,26 +1976,26 @@ typeof HTMLElement == "function" && ($r = class extends HTMLElement {
|
|
|
2030
1976
|
$$slots: r,
|
|
2031
1977
|
$$host: this
|
|
2032
1978
|
}
|
|
2033
|
-
}), this.$$me =
|
|
2034
|
-
|
|
1979
|
+
}), this.$$me = Ro(() => {
|
|
1980
|
+
Fo(() => {
|
|
2035
1981
|
this.$$r = !0;
|
|
2036
|
-
for (const
|
|
2037
|
-
if (!this.$$p_d[
|
|
2038
|
-
this.$$d[
|
|
1982
|
+
for (const o of ft(this.$$c)) {
|
|
1983
|
+
if (!this.$$p_d[o]?.reflect) continue;
|
|
1984
|
+
this.$$d[o] = this.$$c[o];
|
|
2039
1985
|
const i = at(
|
|
2040
|
-
|
|
2041
|
-
this.$$d[
|
|
1986
|
+
o,
|
|
1987
|
+
this.$$d[o],
|
|
2042
1988
|
this.$$p_d,
|
|
2043
1989
|
"toAttribute"
|
|
2044
1990
|
);
|
|
2045
|
-
i == null ? this.removeAttribute(this.$$p_d[
|
|
1991
|
+
i == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, i);
|
|
2046
1992
|
}
|
|
2047
1993
|
this.$$r = !1;
|
|
2048
1994
|
});
|
|
2049
1995
|
});
|
|
2050
|
-
for (const
|
|
2051
|
-
for (const i of this.$$l[
|
|
2052
|
-
const l = this.$$c.$on(
|
|
1996
|
+
for (const o in this.$$l)
|
|
1997
|
+
for (const i of this.$$l[o]) {
|
|
1998
|
+
const l = this.$$c.$on(o, i);
|
|
2053
1999
|
this.$$l_u.set(i, l);
|
|
2054
2000
|
}
|
|
2055
2001
|
this.$$l = {};
|
|
@@ -2080,11 +2026,11 @@ typeof HTMLElement == "function" && ($r = class extends HTMLElement {
|
|
|
2080
2026
|
}
|
|
2081
2027
|
});
|
|
2082
2028
|
function at(e, t, n, r) {
|
|
2083
|
-
const
|
|
2084
|
-
if (t =
|
|
2029
|
+
const s = n[e]?.type;
|
|
2030
|
+
if (t = s === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
2085
2031
|
return t;
|
|
2086
2032
|
if (r === "toAttribute")
|
|
2087
|
-
switch (
|
|
2033
|
+
switch (s) {
|
|
2088
2034
|
case "Object":
|
|
2089
2035
|
case "Array":
|
|
2090
2036
|
return t == null ? null : JSON.stringify(t);
|
|
@@ -2096,7 +2042,7 @@ function at(e, t, n, r) {
|
|
|
2096
2042
|
return t;
|
|
2097
2043
|
}
|
|
2098
2044
|
else
|
|
2099
|
-
switch (
|
|
2045
|
+
switch (s) {
|
|
2100
2046
|
case "Object":
|
|
2101
2047
|
case "Array":
|
|
2102
2048
|
return t && JSON.parse(t);
|
|
@@ -2109,7 +2055,7 @@ function at(e, t, n, r) {
|
|
|
2109
2055
|
return t;
|
|
2110
2056
|
}
|
|
2111
2057
|
}
|
|
2112
|
-
function
|
|
2058
|
+
function ts(e) {
|
|
2113
2059
|
const t = {};
|
|
2114
2060
|
return e.childNodes.forEach((n) => {
|
|
2115
2061
|
t[
|
|
@@ -2118,10 +2064,10 @@ function us(e) {
|
|
|
2118
2064
|
] = !0;
|
|
2119
2065
|
}), t;
|
|
2120
2066
|
}
|
|
2121
|
-
function
|
|
2122
|
-
let i = class extends
|
|
2067
|
+
function $r(e, t, n, r, s, o) {
|
|
2068
|
+
let i = class extends wr {
|
|
2123
2069
|
constructor() {
|
|
2124
|
-
super(e, n,
|
|
2070
|
+
super(e, n, s), this.$$p_d = t;
|
|
2125
2071
|
}
|
|
2126
2072
|
static get observedAttributes() {
|
|
2127
2073
|
return ft(t).map(
|
|
@@ -2130,21 +2076,21 @@ function Er(e, t, n, r, o, s) {
|
|
|
2130
2076
|
}
|
|
2131
2077
|
};
|
|
2132
2078
|
return ft(t).forEach((l) => {
|
|
2133
|
-
|
|
2079
|
+
re(i.prototype, l, {
|
|
2134
2080
|
get() {
|
|
2135
2081
|
return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
|
|
2136
2082
|
},
|
|
2137
|
-
set(
|
|
2138
|
-
|
|
2083
|
+
set(d) {
|
|
2084
|
+
d = at(l, d, t), this.$$d[l] = d;
|
|
2139
2085
|
var a = this.$$c;
|
|
2140
2086
|
if (a) {
|
|
2141
|
-
var
|
|
2142
|
-
|
|
2087
|
+
var f = be(a, l)?.get;
|
|
2088
|
+
f ? a[l] = d : a.$set({ [l]: d });
|
|
2143
2089
|
}
|
|
2144
2090
|
}
|
|
2145
2091
|
});
|
|
2146
2092
|
}), r.forEach((l) => {
|
|
2147
|
-
|
|
2093
|
+
re(i.prototype, l, {
|
|
2148
2094
|
get() {
|
|
2149
2095
|
return this.$$c?.[l];
|
|
2150
2096
|
}
|
|
@@ -2152,23 +2098,23 @@ function Er(e, t, n, r, o, s) {
|
|
|
2152
2098
|
}), e.element = /** @type {any} */
|
|
2153
2099
|
i, i;
|
|
2154
2100
|
}
|
|
2155
|
-
function
|
|
2101
|
+
function te(e, ...t) {
|
|
2156
2102
|
return Mt(() => {
|
|
2157
2103
|
try {
|
|
2158
2104
|
let n = !1;
|
|
2159
2105
|
const r = [];
|
|
2160
|
-
for (const
|
|
2161
|
-
|
|
2162
|
-
n && (
|
|
2106
|
+
for (const s of t)
|
|
2107
|
+
s && typeof s == "object" && Ee in s ? (r.push(uo(s, !0)), n = !0) : r.push(s);
|
|
2108
|
+
n && (_o(e), console.log("%c[snapshot]", "color: grey", ...r));
|
|
2163
2109
|
} catch {
|
|
2164
2110
|
}
|
|
2165
2111
|
}), t;
|
|
2166
2112
|
}
|
|
2167
|
-
const
|
|
2113
|
+
const Sn = "-pie-editor--", Er = (...e) => e.reduce((t, n) => {
|
|
2168
2114
|
for (const r in n)
|
|
2169
2115
|
n.hasOwnProperty(r) && n[r] !== null && n[r] !== void 0 && (t[r] = n[r]);
|
|
2170
2116
|
return t;
|
|
2171
|
-
}, {}),
|
|
2117
|
+
}, {}), br = {}, ns = "https://builder.pie-api.com", rs = br.PUBLIC_BUILDER_ORIGIN_URL || ns, os = br.PUBLIC_BUILDER_BUNDLE_URL || `${rs}/api/v1/bundles/`, ss = (e) => {
|
|
2172
2118
|
if (!e)
|
|
2173
2119
|
throw new Error("Parameter is required: input");
|
|
2174
2120
|
const t = e.charAt(0) === "@" ? e.match(/^(@[^/]+\/[^/@]+)(?:\/([^@]+))?(?:@([\s\S]+))?/) : e.match(/^([^/@]+)(?:\/([^@]+))?(?:@([\s\S]+))?/);
|
|
@@ -2179,33 +2125,33 @@ const Ln = "-pie-editor--", br = (...e) => e.reduce((t, n) => {
|
|
|
2179
2125
|
path: t[2] || "",
|
|
2180
2126
|
version: t[3] || ""
|
|
2181
2127
|
};
|
|
2182
|
-
},
|
|
2183
|
-
function
|
|
2128
|
+
}, is = (e) => e.split("+").map((t) => ss(t).name).join("+");
|
|
2129
|
+
function ls(e) {
|
|
2184
2130
|
return e && typeof e.pie == "object";
|
|
2185
2131
|
}
|
|
2186
|
-
function
|
|
2132
|
+
function Ln(e) {
|
|
2187
2133
|
return typeof e == "function" && "prototype" in e && e.prototype instanceof HTMLElement;
|
|
2188
2134
|
}
|
|
2189
|
-
function
|
|
2135
|
+
function as(e) {
|
|
2190
2136
|
return e && typeof e.PIE_REGISTRY == "object";
|
|
2191
2137
|
}
|
|
2192
|
-
const
|
|
2138
|
+
const Cr = () => {
|
|
2193
2139
|
let e;
|
|
2194
|
-
return
|
|
2195
|
-
},
|
|
2140
|
+
return as(window) ? e = window.PIE_REGISTRY : (e = {}, window.PIE_REGISTRY = e), e;
|
|
2141
|
+
}, Pr = (e, t, n) => {
|
|
2196
2142
|
if (!e)
|
|
2197
2143
|
throw new Error("session data is required");
|
|
2198
|
-
const r = e.find((
|
|
2144
|
+
const r = e.find((o) => o.id === t);
|
|
2199
2145
|
if (r)
|
|
2200
2146
|
return n && !r.element && (r.element = n), r;
|
|
2201
|
-
const
|
|
2202
|
-
return e.push(
|
|
2147
|
+
const s = n ? { id: t, element: n } : { id: t };
|
|
2148
|
+
return e.push(s), s;
|
|
2203
2149
|
}, st = (e, t, n) => {
|
|
2204
|
-
console.log("[updatePieElements] Updating all elements with env:", n), Object.entries(e.elements).forEach(([r,
|
|
2150
|
+
console.log("[updatePieElements] Updating all elements with env:", n), Object.entries(e.elements).forEach(([r, s]) => {
|
|
2205
2151
|
zt(r, { config: e, session: t, env: n });
|
|
2206
2152
|
});
|
|
2207
|
-
},
|
|
2208
|
-
const t =
|
|
2153
|
+
}, tn = (e) => {
|
|
2154
|
+
const t = Cr();
|
|
2209
2155
|
console.log(`[findPieController] Looking for controller for: ${e}`), console.log("[findPieController] Registry has entries for:", Object.keys(t));
|
|
2210
2156
|
const n = t[e];
|
|
2211
2157
|
if (!n) {
|
|
@@ -2222,15 +2168,15 @@ const Pr = () => {
|
|
|
2222
2168
|
return r ? console.log(`[findPieController] ✅ Controller found for ${e} with functions:`, Object.keys(r)) : (console.error(
|
|
2223
2169
|
`[findPieController] ❌ CRITICAL: Registry entry exists for ${e} but controller is missing!`
|
|
2224
2170
|
), console.error("[findPieController] Entry:", n), console.error("[findPieController] This is a fatal error - PIE elements MUST have controllers")), r;
|
|
2225
|
-
},
|
|
2171
|
+
}, cs = {
|
|
2226
2172
|
invokeControllerForModel: !0,
|
|
2227
2173
|
env: { mode: "gather", role: "student", partialScoring: !1 }
|
|
2228
2174
|
}, zt = (e, t) => {
|
|
2229
|
-
const { config: n, session: r, env:
|
|
2230
|
-
|
|
2175
|
+
const { config: n, session: r, env: s, eventListeners: o, invokeControllerForModel: i } = Er(
|
|
2176
|
+
cs,
|
|
2231
2177
|
t
|
|
2232
2178
|
);
|
|
2233
|
-
if (!
|
|
2179
|
+
if (!s)
|
|
2234
2180
|
throw new Error("env is required");
|
|
2235
2181
|
if (!r)
|
|
2236
2182
|
throw new Error("session is required");
|
|
@@ -2241,79 +2187,79 @@ const Pr = () => {
|
|
|
2241
2187
|
console.debug(`no elements found for ${e}`);
|
|
2242
2188
|
return;
|
|
2243
2189
|
}
|
|
2244
|
-
l.forEach((
|
|
2245
|
-
const a =
|
|
2246
|
-
let
|
|
2247
|
-
if (!
|
|
2190
|
+
l.forEach((d) => {
|
|
2191
|
+
const a = d;
|
|
2192
|
+
let f = t?.config?.models?.find((u) => u.id === d.id);
|
|
2193
|
+
if (!f)
|
|
2248
2194
|
throw console.error("[updatePieElement] Model not found for", e, t), new Error(`model not found for ${e}`);
|
|
2249
|
-
console.log(`[updatePieElement] Updating ${e}#${
|
|
2250
|
-
const c =
|
|
2251
|
-
if (a.session = c,
|
|
2252
|
-
const u =
|
|
2195
|
+
console.log(`[updatePieElement] Updating ${e}#${d.id}, env:`, s);
|
|
2196
|
+
const c = Pr(r, f.id, f.element);
|
|
2197
|
+
if (a.session = c, s && i) {
|
|
2198
|
+
const u = tn(e);
|
|
2253
2199
|
if (!u && e === "pie-passage") {
|
|
2254
|
-
console.log("[updatePieElement] pie-passage has no controller (expected), using direct model assignment"), a.model =
|
|
2200
|
+
console.log("[updatePieElement] pie-passage has no controller (expected), using direct model assignment"), a.model = f;
|
|
2255
2201
|
return;
|
|
2256
2202
|
}
|
|
2257
2203
|
if (!u)
|
|
2258
2204
|
throw console.error(`[updatePieElement] ❌ FATAL: No controller found for ${e}`), new Error(`No controller found for ${e}. PIE elements MUST have controllers.`);
|
|
2259
|
-
console.log(`[updatePieElement] Invoking controller for ${e}#${
|
|
2260
|
-
mode:
|
|
2261
|
-
role:
|
|
2262
|
-
hasCorrectResponse: "correctResponse" in
|
|
2205
|
+
console.log(`[updatePieElement] Invoking controller for ${e}#${d.id}`, {
|
|
2206
|
+
mode: s.mode,
|
|
2207
|
+
role: s.role,
|
|
2208
|
+
hasCorrectResponse: "correctResponse" in f
|
|
2263
2209
|
});
|
|
2264
|
-
const v = (_,
|
|
2265
|
-
u.model(
|
|
2266
|
-
const
|
|
2267
|
-
id:
|
|
2268
|
-
element:
|
|
2210
|
+
const v = (_, g, w) => (console.log(`[updatePieElement] updateSession called for ${_} with:`, w), Object.assign(c, w), Promise.resolve());
|
|
2211
|
+
u.model(f, c, s, v).then((_) => {
|
|
2212
|
+
const g = {
|
|
2213
|
+
id: f.id,
|
|
2214
|
+
element: f.element,
|
|
2269
2215
|
..._
|
|
2270
2216
|
};
|
|
2271
|
-
console.log(`[updatePieElement] ✅ Model updated for ${e}#${
|
|
2272
|
-
id:
|
|
2273
|
-
element:
|
|
2274
|
-
hasCorrectResponse: "correctResponse" in
|
|
2275
|
-
mode:
|
|
2276
|
-
role:
|
|
2277
|
-
}), a.model =
|
|
2217
|
+
console.log(`[updatePieElement] ✅ Model updated for ${e}#${d.id}:`, {
|
|
2218
|
+
id: g.id,
|
|
2219
|
+
element: g.element,
|
|
2220
|
+
hasCorrectResponse: "correctResponse" in g,
|
|
2221
|
+
mode: s.mode,
|
|
2222
|
+
role: s.role
|
|
2223
|
+
}), a.model = g;
|
|
2278
2224
|
}).catch((_) => {
|
|
2279
|
-
throw console.error(`[updatePieElement] ❌ Controller error for ${e}#${
|
|
2225
|
+
throw console.error(`[updatePieElement] ❌ Controller error for ${e}#${d.id}:`, _), _;
|
|
2280
2226
|
});
|
|
2281
2227
|
} else
|
|
2282
2228
|
console.log(
|
|
2283
|
-
`[updatePieElement] Direct model assignment for ${e}#${
|
|
2284
|
-
), a.model =
|
|
2285
|
-
|
|
2229
|
+
`[updatePieElement] Direct model assignment for ${e}#${d.id} (no controller invocation requested)`
|
|
2230
|
+
), a.model = f;
|
|
2231
|
+
o && Object.entries(o).forEach(([u, v]) => {
|
|
2286
2232
|
a.addEventListener(u, v);
|
|
2287
2233
|
});
|
|
2288
2234
|
});
|
|
2289
|
-
},
|
|
2290
|
-
buildServiceBase:
|
|
2235
|
+
}, us = {
|
|
2236
|
+
buildServiceBase: os,
|
|
2291
2237
|
bundleType: "client-player.js",
|
|
2292
2238
|
env: { mode: "gather", role: "student" }
|
|
2293
|
-
},
|
|
2294
|
-
const { config: n, session: r, env:
|
|
2239
|
+
}, Bt = (e, t) => {
|
|
2240
|
+
const { config: n, session: r, env: s, eventListeners: o } = t, i = e.tagName.toLowerCase();
|
|
2295
2241
|
console.log(`[initializePieElement] Initializing ${i}#${e.id}`);
|
|
2296
2242
|
let l = n?.models?.find((c) => c.id === e.id);
|
|
2297
2243
|
if (!l) {
|
|
2298
2244
|
console.warn(`[initializePieElement] Model not found for element ${i}#${e.id}`);
|
|
2299
2245
|
return;
|
|
2300
2246
|
}
|
|
2301
|
-
const
|
|
2302
|
-
e.session =
|
|
2303
|
-
const a =
|
|
2247
|
+
const d = Pr(r, l.id, l.element);
|
|
2248
|
+
e.session = d, console.log(`[initializePieElement] Session set for ${i}#${e.id}:`, d);
|
|
2249
|
+
const a = tn(i);
|
|
2304
2250
|
if (!a)
|
|
2305
2251
|
throw console.error(`[initializePieElement] ❌ FATAL: No controller found for ${i}`), new Error(
|
|
2306
2252
|
`No controller found for ${i}. PIE elements MUST have controllers. Check bundle loading and registration.`
|
|
2307
2253
|
);
|
|
2308
|
-
if (!
|
|
2254
|
+
if (!s)
|
|
2309
2255
|
throw console.error(`[initializePieElement] ❌ FATAL: No env provided for ${i}`), new Error(`No env provided for ${i}. PIE elements require an env object with mode and role.`);
|
|
2310
|
-
console.log(`[initializePieElement] Using controller for ${i}, env:`,
|
|
2256
|
+
console.log(`[initializePieElement] Using controller for ${i}, env:`, s), console.log("[initializePieElement] Model before filter:", {
|
|
2311
2257
|
id: l.id,
|
|
2312
2258
|
element: l.element,
|
|
2313
2259
|
hasCorrectResponse: "correctResponse" in l
|
|
2314
2260
|
});
|
|
2315
|
-
const
|
|
2316
|
-
a.model(l,
|
|
2261
|
+
const f = (c, u, v) => (console.log(`[initializePieElement] updateSession called for ${c} with:`, v), Object.assign(d, v), Promise.resolve());
|
|
2262
|
+
a.model(l, d, s, f).then((c) => {
|
|
2317
2263
|
const u = {
|
|
2318
2264
|
id: l.id,
|
|
2319
2265
|
element: l.element,
|
|
@@ -2323,60 +2269,60 @@ const Pr = () => {
|
|
|
2323
2269
|
id: u.id,
|
|
2324
2270
|
element: u.element,
|
|
2325
2271
|
hasCorrectResponse: "correctResponse" in u,
|
|
2326
|
-
mode:
|
|
2327
|
-
role:
|
|
2272
|
+
mode: s.mode,
|
|
2273
|
+
role: s.role
|
|
2328
2274
|
}), e.model = u;
|
|
2329
2275
|
}).catch((c) => {
|
|
2330
2276
|
throw console.error(`[initializePieElement] ❌ Controller error for ${i}:`, c), c;
|
|
2331
|
-
}),
|
|
2277
|
+
}), o && Object.entries(o).forEach(([c, u]) => {
|
|
2332
2278
|
e.addEventListener(c, u);
|
|
2333
2279
|
});
|
|
2334
|
-
},
|
|
2335
|
-
const r =
|
|
2336
|
-
if (
|
|
2280
|
+
}, In = (e, t, n = {}) => {
|
|
2281
|
+
const r = Cr(), s = Er(us, n);
|
|
2282
|
+
if (ls(window)) {
|
|
2337
2283
|
console.log("[initializePiesFromLoadedBundle] window.pie available");
|
|
2338
|
-
const
|
|
2339
|
-
console.log("[initializePiesFromLoadedBundle] Available packages in bundle:", Object.keys(
|
|
2284
|
+
const o = window.pie.default;
|
|
2285
|
+
console.log("[initializePiesFromLoadedBundle] Available packages in bundle:", Object.keys(o)), console.log("[initializePiesFromLoadedBundle] config.elements:", e.elements), Object.entries(e.elements).forEach(([i, l]) => {
|
|
2340
2286
|
console.log(`[initializePiesFromLoadedBundle] Processing element: ${i} -> ${l}`);
|
|
2341
|
-
const
|
|
2342
|
-
console.log(`[initializePiesFromLoadedBundle] Package without version: "${
|
|
2343
|
-
`[initializePiesFromLoadedBundle] Exact match check: "${
|
|
2344
|
-
|
|
2287
|
+
const d = is(l);
|
|
2288
|
+
console.log(`[initializePiesFromLoadedBundle] Package without version: "${d}"`), console.log(`[initializePiesFromLoadedBundle] Looking up elementModule["${d}"]`), console.log("[initializePiesFromLoadedBundle] Available keys in elementModule:", Object.keys(o)), console.log(
|
|
2289
|
+
`[initializePiesFromLoadedBundle] Exact match check: "${d}" in elementModule =`,
|
|
2290
|
+
d in o
|
|
2345
2291
|
);
|
|
2346
|
-
const a =
|
|
2292
|
+
const a = o[d];
|
|
2347
2293
|
if (console.log("[initializePiesFromLoadedBundle] elementData result:", a ? "FOUND" : "UNDEFINED"), !a)
|
|
2348
|
-
throw console.error(`[initializePiesFromLoadedBundle] ❌ Package "${
|
|
2294
|
+
throw console.error(`[initializePiesFromLoadedBundle] ❌ Package "${d}" not found in bundle!`), console.error(`[initializePiesFromLoadedBundle] Lookup key: "${d}"`), console.error("[initializePiesFromLoadedBundle] Available packages:", Object.keys(o)), console.error(
|
|
2349
2295
|
"[initializePiesFromLoadedBundle] Key comparison:",
|
|
2350
|
-
Object.keys(
|
|
2351
|
-
bundleKey:
|
|
2352
|
-
lookupKey:
|
|
2353
|
-
match:
|
|
2354
|
-
bundleKeyLength:
|
|
2355
|
-
lookupKeyLength:
|
|
2296
|
+
Object.keys(o).map((f) => ({
|
|
2297
|
+
bundleKey: f,
|
|
2298
|
+
lookupKey: d,
|
|
2299
|
+
match: f === d,
|
|
2300
|
+
bundleKeyLength: f.length,
|
|
2301
|
+
lookupKeyLength: d.length
|
|
2356
2302
|
}))
|
|
2357
|
-
), new Error(`pie ${
|
|
2358
|
-
if (console.log(`[initializePiesFromLoadedBundle] elementData for ${
|
|
2303
|
+
), new Error(`pie ${d} not found in ${Object.keys(o)}`);
|
|
2304
|
+
if (console.log(`[initializePiesFromLoadedBundle] elementData for ${d}:`, {
|
|
2359
2305
|
hasController: !!a.controller,
|
|
2360
2306
|
hasElement: !!a.Element,
|
|
2361
2307
|
hasConfig: !!a.config,
|
|
2362
2308
|
controllerKeys: a.controller ? Object.keys(a.controller) : []
|
|
2363
2309
|
}), !a.controller)
|
|
2364
2310
|
throw console.error(
|
|
2365
|
-
`[initializePiesFromLoadedBundle] ❌ CRITICAL: No controller found in elementData for ${
|
|
2366
|
-
), console.error("[initializePiesFromLoadedBundle] elementData:", a), new Error(`No controller found for ${
|
|
2311
|
+
`[initializePiesFromLoadedBundle] ❌ CRITICAL: No controller found in elementData for ${d}!`
|
|
2312
|
+
), console.error("[initializePiesFromLoadedBundle] elementData:", a), new Error(`No controller found for ${d}. PIE elements MUST have controllers!`);
|
|
2367
2313
|
if (customElements.get(i)) {
|
|
2368
2314
|
if (zt(i, {
|
|
2369
2315
|
config: e,
|
|
2370
2316
|
session: t,
|
|
2371
2317
|
env: n.env,
|
|
2372
2318
|
...n.eventListeners?.[i] && { eventListeners: n.eventListeners[i] }
|
|
2373
|
-
}),
|
|
2374
|
-
const
|
|
2375
|
-
zt(
|
|
2319
|
+
}), s.bundleType === "editor.js") {
|
|
2320
|
+
const f = i + Sn;
|
|
2321
|
+
zt(f, {
|
|
2376
2322
|
config: e,
|
|
2377
2323
|
session: t,
|
|
2378
|
-
...n.eventListeners?.[
|
|
2379
|
-
eventListeners: n.eventListeners[
|
|
2324
|
+
...n.eventListeners?.[f] && {
|
|
2325
|
+
eventListeners: n.eventListeners[f]
|
|
2380
2326
|
}
|
|
2381
2327
|
});
|
|
2382
2328
|
}
|
|
@@ -2389,11 +2335,11 @@ const Pr = () => {
|
|
|
2389
2335
|
}, console.log(`[initializePiesFromLoadedBundle] Registry entry for ${i}:`, {
|
|
2390
2336
|
hasController: !!r[i].controller,
|
|
2391
2337
|
controllerFunctions: r[i].controller ? Object.keys(r[i].controller) : []
|
|
2392
|
-
}),
|
|
2338
|
+
}), Ln(a.Element)) {
|
|
2393
2339
|
customElements.define(i, a.Element);
|
|
2394
|
-
const
|
|
2395
|
-
if (console.log(`Found ${
|
|
2396
|
-
|
|
2340
|
+
const f = document.querySelectorAll(i);
|
|
2341
|
+
if (console.log(`Found ${f.length} elements for tag '${i}'`), f.forEach((c) => {
|
|
2342
|
+
Bt(c, {
|
|
2397
2343
|
config: e,
|
|
2398
2344
|
session: t,
|
|
2399
2345
|
env: n.env,
|
|
@@ -2410,18 +2356,18 @@ const Pr = () => {
|
|
|
2410
2356
|
u.type === "childList" && u.addedNodes.forEach((v) => {
|
|
2411
2357
|
if (v.nodeType === Node.ELEMENT_NODE) {
|
|
2412
2358
|
const _ = v.tagName.toLowerCase();
|
|
2413
|
-
r[_] &&
|
|
2359
|
+
r[_] && Bt(v, {
|
|
2414
2360
|
config: e,
|
|
2415
2361
|
session: t,
|
|
2416
2362
|
env: n.env,
|
|
2417
2363
|
eventListeners: n.eventListeners?.[_]
|
|
2418
|
-
}), v.querySelectorAll("*").forEach((
|
|
2419
|
-
const
|
|
2420
|
-
r[
|
|
2364
|
+
}), v.querySelectorAll("*").forEach((g) => {
|
|
2365
|
+
const w = g.tagName.toLowerCase();
|
|
2366
|
+
r[w] && Bt(g, {
|
|
2421
2367
|
config: e,
|
|
2422
2368
|
session: t,
|
|
2423
2369
|
env: n.env,
|
|
2424
|
-
eventListeners: n.eventListeners?.[
|
|
2370
|
+
eventListeners: n.eventListeners?.[w]
|
|
2425
2371
|
});
|
|
2426
2372
|
});
|
|
2427
2373
|
}
|
|
@@ -2430,27 +2376,27 @@ const Pr = () => {
|
|
|
2430
2376
|
}), window._pieElementObserver.observe(document.body, {
|
|
2431
2377
|
childList: !0,
|
|
2432
2378
|
subtree: !0
|
|
2433
|
-
})),
|
|
2434
|
-
if (
|
|
2435
|
-
const c = i +
|
|
2379
|
+
})), s.bundleType === "editor.js")
|
|
2380
|
+
if (Ln(a.Configure)) {
|
|
2381
|
+
const c = i + Sn;
|
|
2436
2382
|
customElements.define(c, a.Configure), customElements.whenDefined(c).then(() => {
|
|
2437
2383
|
console.debug(`defined custom PIE editor element: ${c}`);
|
|
2438
2384
|
});
|
|
2439
2385
|
} else
|
|
2440
2386
|
console.error(
|
|
2441
|
-
`pie.Configure for ${
|
|
2387
|
+
`pie.Configure for ${d} is not a valid custom element constructor.`,
|
|
2442
2388
|
a.configure
|
|
2443
2389
|
);
|
|
2444
2390
|
} else
|
|
2445
|
-
console.error(`pie.Element for ${
|
|
2391
|
+
console.error(`pie.Element for ${d} is not a valid custom element constructor.`);
|
|
2446
2392
|
});
|
|
2447
2393
|
} else
|
|
2448
2394
|
console.error("window.pie not found; was the bundle inlined correctly?");
|
|
2449
2395
|
};
|
|
2450
2396
|
ar();
|
|
2451
|
-
|
|
2452
|
-
var
|
|
2453
|
-
const
|
|
2397
|
+
oe[I] = "src/lib/components/PieItemPlayer.svelte";
|
|
2398
|
+
var fs = ye(/* @__PURE__ */ we("<div><!></div>"), oe[I], [[226, 2]]), ds = ye(/* @__PURE__ */ we("<div><!></div>"), oe[I], [[232, 2]]), hs = ye(/* @__PURE__ */ we('<div class="pie-item-player svelte-d1rctr"><!> <!></div>'), oe[I], [[224, 0]]);
|
|
2399
|
+
const vs = {
|
|
2454
2400
|
hash: "svelte-d1rctr",
|
|
2455
2401
|
code: `
|
|
2456
2402
|
.pie-item-player.svelte-d1rctr {
|
|
@@ -2466,180 +2412,180 @@ const bs = {
|
|
|
2466
2412
|
|
|
2467
2413
|
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGllSXRlbVBsYXllci5zdmVsdGUiLCJtYXBwaW5ncyI6IjtBQThPQSxDQUFDLDhCQUFnQixDQUFDO0FBQ2xCLEVBQUUsY0FBYztBQUNoQixFQUFFLFdBQVc7QUFDYjs7QUFFQSxDQUFDLG9DQUFzQjtBQUN2QixDQUFDLGlDQUFtQixDQUFDO0FBQ3JCLEVBQUUsY0FBYztBQUNoQixFQUFFLFdBQVc7QUFDYiIsIm5hbWVzIjpbXSwiaWdub3JlTGlzdCI6W10sInNvdXJjZXMiOlsiUGllSXRlbVBsYXllci5zdmVsdGUiXX0= */`
|
|
2468
2414
|
};
|
|
2469
|
-
function
|
|
2470
|
-
|
|
2471
|
-
let n =
|
|
2472
|
-
const _ = (
|
|
2473
|
-
|
|
2474
|
-
const
|
|
2475
|
-
detail:
|
|
2415
|
+
function oe(e, t) {
|
|
2416
|
+
gr(new.target), Kt(t, !0, oe), yr(e, vs);
|
|
2417
|
+
let n = L(t, "itemConfig", 7), r = L(t, "passageConfig", 7, null), s = L(t, "env", 23, () => ({ mode: "gather", role: "student" })), o = L(t, "session", 23, () => []), i = L(t, "addCorrectResponse", 7, !1), l = L(t, "customClassname", 7, ""), d = L(t, "passageContainerClass", 7, ""), a = L(t, "containerClass", 7, ""), f = L(t, "onLoadComplete", 7), c = L(t, "onPlayerError", 7), u = L(t, "onSessionChanged", 7), v = B(!1);
|
|
2418
|
+
const _ = (p, h) => {
|
|
2419
|
+
T(p, "load-complete") && f() ? f()(h) : T(p, "player-error") && c() ? c()(h) : T(p, "session-changed") && u() && u()(h);
|
|
2420
|
+
const y = new CustomEvent(p, {
|
|
2421
|
+
detail: h,
|
|
2476
2422
|
bubbles: !0,
|
|
2477
2423
|
composed: !0
|
|
2478
2424
|
// Allow events to cross shadow DOM boundaries
|
|
2479
2425
|
});
|
|
2480
|
-
dispatchEvent(
|
|
2426
|
+
dispatchEvent(y);
|
|
2481
2427
|
};
|
|
2482
|
-
async function
|
|
2428
|
+
async function g() {
|
|
2483
2429
|
if (!i() || !n() || m(v)) return;
|
|
2484
2430
|
console.log("[PieItemPlayer] Populating session with correct responses");
|
|
2485
|
-
const
|
|
2486
|
-
for (const
|
|
2487
|
-
const
|
|
2488
|
-
if (
|
|
2431
|
+
const p = [];
|
|
2432
|
+
for (const h of n().models) {
|
|
2433
|
+
const y = tn(h.element);
|
|
2434
|
+
if (y && y.createCorrectResponseSession)
|
|
2489
2435
|
try {
|
|
2490
|
-
const
|
|
2491
|
-
|
|
2492
|
-
id:
|
|
2493
|
-
element:
|
|
2494
|
-
...
|
|
2436
|
+
const C = await y.createCorrectResponseSession(h, s()), { id: W, ...J } = C;
|
|
2437
|
+
p.push({
|
|
2438
|
+
id: h.id,
|
|
2439
|
+
element: h.element,
|
|
2440
|
+
...J
|
|
2495
2441
|
});
|
|
2496
|
-
} catch (
|
|
2497
|
-
console.warn(...
|
|
2442
|
+
} catch (C) {
|
|
2443
|
+
console.warn(...te("warn", `[PieItemPlayer] Failed to create correct response for ${h.element}:`, C));
|
|
2498
2444
|
}
|
|
2499
2445
|
}
|
|
2500
|
-
|
|
2446
|
+
o().length = 0, o().push(...p), $(v, !0), console.log(...te("log", "[PieItemPlayer] Correct responses added to session:", o()));
|
|
2501
2447
|
}
|
|
2502
|
-
const
|
|
2448
|
+
const w = pe(() => [
|
|
2503
2449
|
"pie-passage-container",
|
|
2504
2450
|
l(),
|
|
2505
|
-
|
|
2506
|
-
].filter(Boolean).join(" ")),
|
|
2451
|
+
d()
|
|
2452
|
+
].filter(Boolean).join(" ")), k = pe(() => [
|
|
2507
2453
|
"pie-item-container",
|
|
2508
2454
|
l(),
|
|
2509
2455
|
a()
|
|
2510
2456
|
].filter(Boolean).join(" "));
|
|
2511
|
-
let
|
|
2512
|
-
|
|
2513
|
-
!n() || m(
|
|
2457
|
+
let x = B(!1), A = B(!1), R = B(!1);
|
|
2458
|
+
Te(() => {
|
|
2459
|
+
!n() || m(x) || (console.log("[PieItemPlayer] Item config received, initializing after DOM renders..."), er().then(async () => {
|
|
2514
2460
|
try {
|
|
2515
|
-
if (console.log("[PieItemPlayer] DOM ready, initializing PIE elements"), console.log(...
|
|
2461
|
+
if (console.log("[PieItemPlayer] DOM ready, initializing PIE elements"), console.log(...te("log", "[PieItemPlayer] Config:", {
|
|
2516
2462
|
itemElements: Object.keys(n().elements || {}),
|
|
2517
2463
|
itemModels: (n().models || []).length,
|
|
2518
2464
|
passageElements: r() ? Object.keys(r().elements || {}) : [],
|
|
2519
2465
|
passageModels: r() ? (r().models || []).length : 0,
|
|
2520
|
-
sessionLength:
|
|
2466
|
+
sessionLength: o().length,
|
|
2521
2467
|
addCorrectResponse: i(),
|
|
2522
|
-
env:
|
|
2523
|
-
})),
|
|
2524
|
-
const
|
|
2525
|
-
if (m(
|
|
2468
|
+
env: s()
|
|
2469
|
+
})), In(n(), [], { env: s() }), console.log("[PieItemPlayer] Item bundle initialized and controllers registered"), r() && (In(r(), [], { env: s() }), console.log("[PieItemPlayer] Passage bundle initialized and controllers registered")), await g(), console.log(...te("log", "[PieItemPlayer] Updating elements with session (length=" + o().length + ")")), st(n(), o(), s()), r() && st(r(), o(), s()), $(x, !0), !m(A)) {
|
|
2470
|
+
const p = document.querySelector(".pie-item-player"), h = (y) => {
|
|
2471
|
+
if (m(R))
|
|
2526
2472
|
return;
|
|
2527
|
-
const
|
|
2528
|
-
console.log("[PieItemPlayer] session-changed event received from PIE element"),
|
|
2473
|
+
const C = y;
|
|
2474
|
+
console.log("[PieItemPlayer] session-changed event received from PIE element"), $(R, !0);
|
|
2529
2475
|
try {
|
|
2530
|
-
_("session-changed",
|
|
2476
|
+
_("session-changed", C.detail);
|
|
2531
2477
|
} finally {
|
|
2532
2478
|
setTimeout(
|
|
2533
2479
|
() => {
|
|
2534
|
-
|
|
2480
|
+
$(R, !1);
|
|
2535
2481
|
},
|
|
2536
2482
|
0
|
|
2537
2483
|
);
|
|
2538
2484
|
}
|
|
2539
2485
|
};
|
|
2540
|
-
|
|
2486
|
+
p && (p.addEventListener("session-changed", h), $(A, !0), console.log("[PieItemPlayer] session-changed listener attached to root element"));
|
|
2541
2487
|
}
|
|
2542
2488
|
_("load-complete");
|
|
2543
|
-
} catch (
|
|
2544
|
-
console.error(...
|
|
2489
|
+
} catch (p) {
|
|
2490
|
+
console.error(...te("error", "[PieItemPlayer] Error initializing:", p)), _("player-error", p.message);
|
|
2545
2491
|
}
|
|
2546
2492
|
}));
|
|
2547
|
-
}),
|
|
2548
|
-
!m(
|
|
2493
|
+
}), Te(() => {
|
|
2494
|
+
!m(x) || !s() || !n() || !o() || (console.log("[PieItemPlayer] Dependencies changed, updating elements"), console.log(...te("log", "[PieItemPlayer] Env:", s())), console.log(...te("log", "[PieItemPlayer] Session (length=" + o().length + "):", o())), st(n(), o(), s()), r() && st(r(), o(), s()));
|
|
2549
2495
|
});
|
|
2550
|
-
var
|
|
2496
|
+
var b = hs(), j = ee(b);
|
|
2551
2497
|
{
|
|
2552
|
-
var
|
|
2553
|
-
var
|
|
2554
|
-
|
|
2498
|
+
var Z = (p) => {
|
|
2499
|
+
var h = fs(), y = ee(h);
|
|
2500
|
+
Cn(y, () => r().markup), K(h), Ge(() => Be(h, 1, m(w), "svelte-d1rctr")), le(p, h);
|
|
2555
2501
|
};
|
|
2556
|
-
|
|
2557
|
-
r()?.markup &&
|
|
2502
|
+
Xe(j, (p) => {
|
|
2503
|
+
r()?.markup && p(Z);
|
|
2558
2504
|
});
|
|
2559
2505
|
}
|
|
2560
|
-
var St =
|
|
2506
|
+
var St = Nt(j, 2);
|
|
2561
2507
|
{
|
|
2562
|
-
var Lt = (
|
|
2563
|
-
var
|
|
2564
|
-
|
|
2508
|
+
var Lt = (p) => {
|
|
2509
|
+
var h = ds(), y = ee(h);
|
|
2510
|
+
Cn(y, () => n().markup), K(h), Ge(() => Be(h, 1, m(k), "svelte-d1rctr")), le(p, h);
|
|
2565
2511
|
};
|
|
2566
|
-
|
|
2567
|
-
n()?.markup &&
|
|
2512
|
+
Xe(St, (p) => {
|
|
2513
|
+
n()?.markup && p(Lt);
|
|
2568
2514
|
});
|
|
2569
2515
|
}
|
|
2570
|
-
return
|
|
2516
|
+
return K(b), le(e, b), en({
|
|
2571
2517
|
get itemConfig() {
|
|
2572
2518
|
return n();
|
|
2573
2519
|
},
|
|
2574
|
-
set itemConfig(
|
|
2575
|
-
n(
|
|
2520
|
+
set itemConfig(p) {
|
|
2521
|
+
n(p), P();
|
|
2576
2522
|
},
|
|
2577
2523
|
get passageConfig() {
|
|
2578
2524
|
return r();
|
|
2579
2525
|
},
|
|
2580
|
-
set passageConfig(
|
|
2581
|
-
r(
|
|
2526
|
+
set passageConfig(p = null) {
|
|
2527
|
+
r(p), P();
|
|
2582
2528
|
},
|
|
2583
2529
|
get env() {
|
|
2584
|
-
return
|
|
2530
|
+
return s();
|
|
2585
2531
|
},
|
|
2586
|
-
set env(
|
|
2587
|
-
|
|
2532
|
+
set env(p = { mode: "gather", role: "student" }) {
|
|
2533
|
+
s(p), P();
|
|
2588
2534
|
},
|
|
2589
2535
|
get session() {
|
|
2590
|
-
return
|
|
2536
|
+
return o();
|
|
2591
2537
|
},
|
|
2592
|
-
set session(
|
|
2593
|
-
|
|
2538
|
+
set session(p = []) {
|
|
2539
|
+
o(p), P();
|
|
2594
2540
|
},
|
|
2595
2541
|
get addCorrectResponse() {
|
|
2596
2542
|
return i();
|
|
2597
2543
|
},
|
|
2598
|
-
set addCorrectResponse(
|
|
2599
|
-
i(
|
|
2544
|
+
set addCorrectResponse(p = !1) {
|
|
2545
|
+
i(p), P();
|
|
2600
2546
|
},
|
|
2601
2547
|
get customClassname() {
|
|
2602
2548
|
return l();
|
|
2603
2549
|
},
|
|
2604
|
-
set customClassname(
|
|
2605
|
-
l(
|
|
2550
|
+
set customClassname(p = "") {
|
|
2551
|
+
l(p), P();
|
|
2606
2552
|
},
|
|
2607
2553
|
get passageContainerClass() {
|
|
2608
|
-
return
|
|
2554
|
+
return d();
|
|
2609
2555
|
},
|
|
2610
|
-
set passageContainerClass(
|
|
2611
|
-
|
|
2556
|
+
set passageContainerClass(p = "") {
|
|
2557
|
+
d(p), P();
|
|
2612
2558
|
},
|
|
2613
2559
|
get containerClass() {
|
|
2614
2560
|
return a();
|
|
2615
2561
|
},
|
|
2616
|
-
set containerClass(
|
|
2617
|
-
a(
|
|
2562
|
+
set containerClass(p = "") {
|
|
2563
|
+
a(p), P();
|
|
2618
2564
|
},
|
|
2619
2565
|
get onLoadComplete() {
|
|
2620
|
-
return
|
|
2566
|
+
return f();
|
|
2621
2567
|
},
|
|
2622
|
-
set onLoadComplete(
|
|
2623
|
-
|
|
2568
|
+
set onLoadComplete(p) {
|
|
2569
|
+
f(p), P();
|
|
2624
2570
|
},
|
|
2625
2571
|
get onPlayerError() {
|
|
2626
2572
|
return c();
|
|
2627
2573
|
},
|
|
2628
|
-
set onPlayerError(
|
|
2629
|
-
c(
|
|
2574
|
+
set onPlayerError(p) {
|
|
2575
|
+
c(p), P();
|
|
2630
2576
|
},
|
|
2631
2577
|
get onSessionChanged() {
|
|
2632
2578
|
return u();
|
|
2633
2579
|
},
|
|
2634
|
-
set onSessionChanged(
|
|
2635
|
-
u(
|
|
2580
|
+
set onSessionChanged(p) {
|
|
2581
|
+
u(p), P();
|
|
2636
2582
|
},
|
|
2637
2583
|
...mr()
|
|
2638
2584
|
});
|
|
2639
2585
|
}
|
|
2640
|
-
cr(
|
|
2641
|
-
|
|
2642
|
-
|
|
2586
|
+
cr(oe);
|
|
2587
|
+
$r(
|
|
2588
|
+
oe,
|
|
2643
2589
|
{
|
|
2644
2590
|
itemConfig: {},
|
|
2645
2591
|
passageConfig: {},
|
|
@@ -2657,12 +2603,12 @@ Er(
|
|
|
2657
2603
|
[],
|
|
2658
2604
|
!0
|
|
2659
2605
|
);
|
|
2660
|
-
const
|
|
2606
|
+
const xn = {
|
|
2661
2607
|
trackPageActions: !1
|
|
2662
2608
|
};
|
|
2663
2609
|
ar();
|
|
2664
|
-
he[
|
|
2665
|
-
var
|
|
2610
|
+
he[I] = "src/lib/tags/pie-fixed-player/PieFixedPlayer.svelte";
|
|
2611
|
+
var _s = ye(
|
|
2666
2612
|
/* @__PURE__ */ we(`<div class="pie-player-error" style="
|
|
2667
2613
|
padding: 20px;
|
|
2668
2614
|
margin: 20px;
|
|
@@ -2672,10 +2618,10 @@ var Cs = ye(
|
|
|
2672
2618
|
color: #c62828;
|
|
2673
2619
|
font-family: sans-serif;
|
|
2674
2620
|
"><h3 style="margin: 0 0 10px 0">⚠️ Configuration Error</h3> <p style="margin: 0"> </p></div>`),
|
|
2675
|
-
he[
|
|
2676
|
-
[[
|
|
2677
|
-
),
|
|
2678
|
-
const
|
|
2621
|
+
he[I],
|
|
2622
|
+
[[281, 2, [[290, 3], [291, 3]]]]
|
|
2623
|
+
), ps = ye(/* @__PURE__ */ we('<div class="pie-loading" style="padding: 20px; text-align: center;"><p>Loading...</p></div>'), he[I], [[294, 2, [[295, 3]]]]), gs = ye(/* @__PURE__ */ we('<div class="pie-stimulus-container" style="display: flex; gap: 20px; width: 100%;"><div style="flex: 1; min-width: 0;"><!></div> <div style="flex: 1; min-width: 0;"><!></div></div>'), he[I], [[300, 2, [[301, 3], [316, 3]]]]), ms = ye(/* @__PURE__ */ we("<div><!></div>"), he[I], [[334, 2]]), ys = ye(/* @__PURE__ */ we("<div><!></div>"), he[I], [[279, 0]]);
|
|
2624
|
+
const ws = {
|
|
2679
2625
|
hash: "svelte-1ol77e0",
|
|
2680
2626
|
code: `
|
|
2681
2627
|
:host {
|
|
@@ -2691,273 +2637,285 @@ const xs = {
|
|
|
2691
2637
|
width: 100%;
|
|
2692
2638
|
}
|
|
2693
2639
|
|
|
2694
|
-
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
2640
|
+
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGllRml4ZWRQbGF5ZXIuc3ZlbHRlIiwibWFwcGluZ3MiOiI7QUFtV0EsQ0FBQyxLQUFLLENBQUM7QUFDUCxFQUFFLGNBQWM7QUFDaEI7QUFDQTtBQUNBLENBQVMsaUJBQWtCLENBQUM7QUFDNUIsRUFBRSxXQUFXO0FBQ2I7QUFDQTtBQUNBLENBQVMsc0JBQXVCO0FBQ2hDLENBQVMsMEJBQTJCLENBQUM7QUFDckMsRUFBRSxXQUFXO0FBQ2IiLCJuYW1lcyI6W10sImlnbm9yZUxpc3QiOltdLCJzb3VyY2VzIjpbIlBpZUZpeGVkUGxheWVyLnN2ZWx0ZSJdfQ== */`
|
|
2695
2641
|
};
|
|
2696
2642
|
function he(e, t) {
|
|
2697
|
-
|
|
2698
|
-
let n =
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2643
|
+
gr(new.target), Kt(t, !0, he), yr(e, ws);
|
|
2644
|
+
let n = L(t, "config", 7, null), r = L(t, "session", 23, () => ({ id: "", data: [] })), s = L(t, "env", 23, () => ({ mode: "gather", role: "student" })), o = L(t, "addCorrectResponse", 7, !1), i = L(t, "renderStimulus", 7, !0), l = L(t, "allowedResize", 7, !1), d = L(t, "showBottomBorder", 7, !1), a = L(t, "customClassname", 7, ""), f = L(t, "containerClass", 7, ""), c = L(t, "passageContainerClass", 7, ""), u = L(t, "externalStyleUrls", 7, ""), v = L(t, "loaderConfig", 7, xn);
|
|
2645
|
+
const _ = T(typeof window, "undefined", !1) && T(typeof document, "undefined", !1);
|
|
2646
|
+
let g = B(!0), w = B(null), k = B(null), x = B(null);
|
|
2647
|
+
B(!1);
|
|
2648
|
+
const A = a() || `pie-player-${Date.now().toString(36)}`;
|
|
2649
|
+
Te(() => {
|
|
2702
2650
|
if (n()) {
|
|
2703
2651
|
performance.mark("pie-load-end");
|
|
2704
2652
|
try {
|
|
2705
|
-
const
|
|
2706
|
-
if (
|
|
2707
|
-
|
|
2708
|
-
else if (
|
|
2709
|
-
|
|
2653
|
+
const h = T(typeof n(), "string") ? JSON.parse(n()) : n();
|
|
2654
|
+
if (h.pie && h.passage)
|
|
2655
|
+
$(k, h.pie, !0), $(x, i() ? h.passage : null, !0), $(g, !1), $(w, null);
|
|
2656
|
+
else if (h.elements || h.models || h.markup)
|
|
2657
|
+
$(k, h, !0), $(x, null), $(g, !1), $(w, null);
|
|
2710
2658
|
else {
|
|
2711
|
-
const
|
|
2712
|
-
w
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2659
|
+
const y = "Invalid config: must contain elements, models, and markup, or pie/passage structure";
|
|
2660
|
+
if ($(w, y), $(g, !1), _ && v()?.trackPageActions)
|
|
2661
|
+
try {
|
|
2662
|
+
const C = window?.newrelic;
|
|
2663
|
+
C && T(typeof C.noticeError, "function") && C.noticeError(new Error(y), {
|
|
2664
|
+
component: "pie-fixed-player",
|
|
2665
|
+
errorType: "InvalidConfig"
|
|
2666
|
+
});
|
|
2667
|
+
} catch {
|
|
2668
|
+
console.debug("[pie-fixed-player] New Relic tracking skipped");
|
|
2669
|
+
}
|
|
2716
2670
|
}
|
|
2717
|
-
} catch (
|
|
2718
|
-
const
|
|
2719
|
-
w
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2671
|
+
} catch (h) {
|
|
2672
|
+
const y = `Error parsing config: ${h.message}`;
|
|
2673
|
+
if ($(w, y), $(g, !1), _ && v()?.trackPageActions)
|
|
2674
|
+
try {
|
|
2675
|
+
const C = window?.newrelic;
|
|
2676
|
+
C && T(typeof C.noticeError, "function") && C.noticeError(h, {
|
|
2677
|
+
component: "pie-fixed-player",
|
|
2678
|
+
errorType: "ConfigParseError"
|
|
2679
|
+
});
|
|
2680
|
+
} catch {
|
|
2681
|
+
console.debug("[pie-fixed-player] New Relic tracking skipped");
|
|
2682
|
+
}
|
|
2723
2683
|
}
|
|
2724
2684
|
} else
|
|
2725
|
-
|
|
2685
|
+
$(k, null), $(x, null), $(g, !0);
|
|
2726
2686
|
});
|
|
2727
|
-
const
|
|
2728
|
-
if (!(!
|
|
2729
|
-
if (document.querySelector(`style[data-pie-style="${
|
|
2730
|
-
console.log(...
|
|
2687
|
+
const R = async (h) => {
|
|
2688
|
+
if (!(!_ || !h || T(typeof h, "string", !1))) {
|
|
2689
|
+
if (document.querySelector(`style[data-pie-style="${h}"]`)) {
|
|
2690
|
+
console.log(...te("log", `[pie-fixed-player] Stylesheet already loaded: ${h}`));
|
|
2731
2691
|
return;
|
|
2732
2692
|
}
|
|
2733
2693
|
try {
|
|
2734
|
-
const
|
|
2735
|
-
|
|
2736
|
-
} catch (
|
|
2737
|
-
console.error(...
|
|
2694
|
+
const W = (await (await fetch(h)).text()).replace(/([^\r\n,{}]+)(,(?=[^}]*{)|\s*{)/g, `.pie-fixed-player.${A} $1$2`), J = document.createElement("style");
|
|
2695
|
+
J.setAttribute("data-pie-style", h), J.textContent = W, document.head.appendChild(J), console.log(...te("log", `[pie-fixed-player] Loaded and scoped stylesheet: ${h}`));
|
|
2696
|
+
} catch (y) {
|
|
2697
|
+
console.error(...te("error", `[pie-fixed-player] Failed to load external stylesheet: ${h}`, y));
|
|
2738
2698
|
}
|
|
2739
2699
|
}
|
|
2740
2700
|
};
|
|
2741
|
-
|
|
2742
|
-
u() &&
|
|
2743
|
-
|
|
2701
|
+
Te(() => {
|
|
2702
|
+
u() && T(typeof u(), "string") && u().split(",").map((y) => y.trim()).forEach((y) => {
|
|
2703
|
+
y && R(y);
|
|
2744
2704
|
});
|
|
2745
|
-
}),
|
|
2746
|
-
if (!m(
|
|
2747
|
-
const
|
|
2748
|
-
Array.isArray(
|
|
2749
|
-
const
|
|
2750
|
-
|
|
2705
|
+
}), Te(() => {
|
|
2706
|
+
if (!m(k)?.resources?.stylesheets) return;
|
|
2707
|
+
const h = m(k).resources.stylesheets;
|
|
2708
|
+
Array.isArray(h) && h.forEach((y) => {
|
|
2709
|
+
const C = y?.url;
|
|
2710
|
+
C && T(typeof C, "string") && R(C);
|
|
2751
2711
|
});
|
|
2752
|
-
}),
|
|
2753
|
-
|
|
2754
|
-
Object.keys(m(
|
|
2755
|
-
document.querySelectorAll(
|
|
2756
|
-
|
|
2712
|
+
}), Te(() => {
|
|
2713
|
+
d() && T(s().mode, "evaluate") && m(k)?.elements && er().then(() => {
|
|
2714
|
+
Object.keys(m(k).elements).forEach((y) => {
|
|
2715
|
+
document.querySelectorAll(y).forEach((W) => {
|
|
2716
|
+
W instanceof HTMLElement && (W.style.borderBottom = "1px solid #ddd", W.style.paddingBottom = "20px", W.style.marginBottom = "20px");
|
|
2757
2717
|
});
|
|
2758
2718
|
});
|
|
2759
2719
|
});
|
|
2760
2720
|
});
|
|
2761
|
-
const b = (
|
|
2762
|
-
const
|
|
2763
|
-
detail:
|
|
2721
|
+
const b = (h) => {
|
|
2722
|
+
const y = new CustomEvent(h.type, {
|
|
2723
|
+
detail: h.detail,
|
|
2764
2724
|
bubbles: !0,
|
|
2765
2725
|
composed: !0
|
|
2766
2726
|
});
|
|
2767
|
-
dispatchEvent(
|
|
2768
|
-
},
|
|
2769
|
-
b(
|
|
2727
|
+
dispatchEvent(y);
|
|
2728
|
+
}, j = (h) => {
|
|
2729
|
+
b(h);
|
|
2770
2730
|
};
|
|
2771
|
-
var
|
|
2772
|
-
|
|
2773
|
-
var
|
|
2731
|
+
var Z = ys();
|
|
2732
|
+
Be(Z, 1, `pie-fixed-player ${A ?? ""}`);
|
|
2733
|
+
var St = ee(Z);
|
|
2774
2734
|
{
|
|
2775
|
-
var
|
|
2776
|
-
var
|
|
2777
|
-
|
|
2778
|
-
},
|
|
2735
|
+
var Lt = (h) => {
|
|
2736
|
+
var y = _s(), C = Nt(ee(y), 2), W = ee(C, !0);
|
|
2737
|
+
K(C), K(y), Ge(() => Yo(W, m(w))), le(h, y);
|
|
2738
|
+
}, p = (h, y) => {
|
|
2779
2739
|
{
|
|
2780
|
-
var
|
|
2781
|
-
var
|
|
2782
|
-
le(
|
|
2783
|
-
},
|
|
2740
|
+
var C = (J) => {
|
|
2741
|
+
var It = ps();
|
|
2742
|
+
le(J, It);
|
|
2743
|
+
}, W = (J, It) => {
|
|
2784
2744
|
{
|
|
2785
|
-
var
|
|
2786
|
-
var
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
const xt = _e(() => N(typeof o(), "string") ? JSON.parse(o()) : o()), ve = _e(() => (N(typeof r(), "string") ? JSON.parse(r()) : r()).data || []);
|
|
2790
|
-
ne(It, {
|
|
2745
|
+
var Sr = (ke) => {
|
|
2746
|
+
var ve = gs(), Re = ee(ve), xt = ee(Re);
|
|
2747
|
+
const kt = pe(() => T(typeof s(), "string") ? JSON.parse(s()) : s()), _e = pe(() => (T(typeof r(), "string") ? JSON.parse(r()) : r()).data || []);
|
|
2748
|
+
oe(xt, {
|
|
2791
2749
|
get itemConfig() {
|
|
2792
|
-
return m(
|
|
2750
|
+
return m(x);
|
|
2793
2751
|
},
|
|
2794
2752
|
get env() {
|
|
2795
|
-
return m(
|
|
2753
|
+
return m(kt);
|
|
2796
2754
|
},
|
|
2797
2755
|
get session() {
|
|
2798
|
-
return m(
|
|
2756
|
+
return m(_e);
|
|
2799
2757
|
},
|
|
2800
2758
|
get addCorrectResponse() {
|
|
2801
|
-
return
|
|
2759
|
+
return o();
|
|
2802
2760
|
},
|
|
2803
|
-
customClassname:
|
|
2804
|
-
onLoadComplete: (
|
|
2805
|
-
onPlayerError: (
|
|
2806
|
-
onSessionChanged: (
|
|
2807
|
-
}),
|
|
2808
|
-
var
|
|
2809
|
-
const
|
|
2810
|
-
|
|
2761
|
+
customClassname: A,
|
|
2762
|
+
onLoadComplete: (z) => b(new CustomEvent("load-complete", { detail: z })),
|
|
2763
|
+
onPlayerError: (z) => b(new CustomEvent("player-error", { detail: z })),
|
|
2764
|
+
onSessionChanged: (z) => j(new CustomEvent("session-changed", { detail: z }))
|
|
2765
|
+
}), K(Re);
|
|
2766
|
+
var Rt = Nt(Re, 2), Ir = ee(Rt);
|
|
2767
|
+
const xr = pe(() => T(typeof s(), "string") ? JSON.parse(s()) : s()), kr = pe(() => (T(typeof r(), "string") ? JSON.parse(r()) : r()).data || []);
|
|
2768
|
+
oe(Ir, {
|
|
2811
2769
|
get itemConfig() {
|
|
2812
|
-
return m(
|
|
2770
|
+
return m(k);
|
|
2813
2771
|
},
|
|
2814
2772
|
get env() {
|
|
2815
|
-
return m(
|
|
2773
|
+
return m(xr);
|
|
2816
2774
|
},
|
|
2817
2775
|
get session() {
|
|
2818
|
-
return m(
|
|
2776
|
+
return m(kr);
|
|
2819
2777
|
},
|
|
2820
2778
|
get addCorrectResponse() {
|
|
2821
|
-
return
|
|
2779
|
+
return o();
|
|
2822
2780
|
},
|
|
2823
|
-
customClassname:
|
|
2824
|
-
onLoadComplete: (
|
|
2825
|
-
onPlayerError: (
|
|
2826
|
-
onSessionChanged: (
|
|
2827
|
-
}),
|
|
2828
|
-
|
|
2829
|
-
}), le(
|
|
2830
|
-
},
|
|
2831
|
-
var
|
|
2832
|
-
const
|
|
2833
|
-
|
|
2781
|
+
customClassname: A,
|
|
2782
|
+
onLoadComplete: (z) => b(new CustomEvent("load-complete", { detail: z })),
|
|
2783
|
+
onPlayerError: (z) => b(new CustomEvent("player-error", { detail: z })),
|
|
2784
|
+
onSessionChanged: (z) => j(new CustomEvent("session-changed", { detail: z }))
|
|
2785
|
+
}), K(Rt), K(ve), Ge(() => {
|
|
2786
|
+
Be(Re, 1, `player-stimulus-container ${c() ?? ""}`), Be(Rt, 1, `player-item-container ${f() ?? ""}`);
|
|
2787
|
+
}), le(ke, ve);
|
|
2788
|
+
}, Lr = (ke) => {
|
|
2789
|
+
var ve = ms(), Re = ee(ve);
|
|
2790
|
+
const xt = pe(() => T(typeof s(), "string") ? JSON.parse(s()) : s()), kt = pe(() => (T(typeof r(), "string") ? JSON.parse(r()) : r()).data || []);
|
|
2791
|
+
oe(Re, {
|
|
2834
2792
|
get itemConfig() {
|
|
2835
|
-
return m(
|
|
2793
|
+
return m(k);
|
|
2836
2794
|
},
|
|
2837
2795
|
get passageConfig() {
|
|
2838
|
-
return m(
|
|
2796
|
+
return m(x);
|
|
2839
2797
|
},
|
|
2840
2798
|
get env() {
|
|
2841
|
-
return m(
|
|
2799
|
+
return m(xt);
|
|
2842
2800
|
},
|
|
2843
2801
|
get session() {
|
|
2844
|
-
return m(
|
|
2802
|
+
return m(kt);
|
|
2845
2803
|
},
|
|
2846
2804
|
get addCorrectResponse() {
|
|
2847
|
-
return
|
|
2805
|
+
return o();
|
|
2848
2806
|
},
|
|
2849
|
-
customClassname:
|
|
2807
|
+
customClassname: A,
|
|
2850
2808
|
get passageContainerClass() {
|
|
2851
2809
|
return c();
|
|
2852
2810
|
},
|
|
2853
2811
|
get containerClass() {
|
|
2854
|
-
return
|
|
2812
|
+
return f();
|
|
2855
2813
|
},
|
|
2856
|
-
onLoadComplete: (
|
|
2857
|
-
onPlayerError: (
|
|
2858
|
-
onSessionChanged: (
|
|
2859
|
-
}),
|
|
2814
|
+
onLoadComplete: (_e) => b(new CustomEvent("load-complete", { detail: _e })),
|
|
2815
|
+
onPlayerError: (_e) => b(new CustomEvent("player-error", { detail: _e })),
|
|
2816
|
+
onSessionChanged: (_e) => j(new CustomEvent("session-changed", { detail: _e }))
|
|
2817
|
+
}), K(ve), Ge(() => Be(ve, 1, `player-item-container ${f() ?? ""}`)), le(ke, ve);
|
|
2860
2818
|
};
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
(
|
|
2864
|
-
m(
|
|
2819
|
+
Xe(
|
|
2820
|
+
J,
|
|
2821
|
+
(ke) => {
|
|
2822
|
+
m(x) && i() ? ke(Sr) : ke(Lr, !1);
|
|
2865
2823
|
},
|
|
2866
|
-
|
|
2824
|
+
It
|
|
2867
2825
|
);
|
|
2868
2826
|
}
|
|
2869
2827
|
};
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
(
|
|
2873
|
-
m(
|
|
2828
|
+
Xe(
|
|
2829
|
+
h,
|
|
2830
|
+
(J) => {
|
|
2831
|
+
m(g) || !m(k) ? J(C) : J(W, !1);
|
|
2874
2832
|
},
|
|
2875
|
-
|
|
2833
|
+
y
|
|
2876
2834
|
);
|
|
2877
2835
|
}
|
|
2878
2836
|
};
|
|
2879
|
-
|
|
2880
|
-
m(
|
|
2837
|
+
Xe(St, (h) => {
|
|
2838
|
+
m(w) ? h(Lt) : h(p, !1);
|
|
2881
2839
|
});
|
|
2882
2840
|
}
|
|
2883
|
-
return
|
|
2841
|
+
return K(Z), le(e, Z), en({
|
|
2884
2842
|
get config() {
|
|
2885
2843
|
return n();
|
|
2886
2844
|
},
|
|
2887
|
-
set config(
|
|
2888
|
-
n(
|
|
2845
|
+
set config(h = null) {
|
|
2846
|
+
n(h), P();
|
|
2889
2847
|
},
|
|
2890
2848
|
get session() {
|
|
2891
2849
|
return r();
|
|
2892
2850
|
},
|
|
2893
|
-
set session(
|
|
2894
|
-
r(
|
|
2851
|
+
set session(h = { id: "", data: [] }) {
|
|
2852
|
+
r(h), P();
|
|
2895
2853
|
},
|
|
2896
2854
|
get env() {
|
|
2897
|
-
return
|
|
2855
|
+
return s();
|
|
2898
2856
|
},
|
|
2899
|
-
set env(
|
|
2900
|
-
|
|
2857
|
+
set env(h = { mode: "gather", role: "student" }) {
|
|
2858
|
+
s(h), P();
|
|
2901
2859
|
},
|
|
2902
2860
|
get addCorrectResponse() {
|
|
2903
|
-
return
|
|
2861
|
+
return o();
|
|
2904
2862
|
},
|
|
2905
|
-
set addCorrectResponse(
|
|
2906
|
-
|
|
2863
|
+
set addCorrectResponse(h = !1) {
|
|
2864
|
+
o(h), P();
|
|
2907
2865
|
},
|
|
2908
2866
|
get renderStimulus() {
|
|
2909
2867
|
return i();
|
|
2910
2868
|
},
|
|
2911
|
-
set renderStimulus(
|
|
2912
|
-
i(
|
|
2869
|
+
set renderStimulus(h = !0) {
|
|
2870
|
+
i(h), P();
|
|
2913
2871
|
},
|
|
2914
2872
|
get allowedResize() {
|
|
2915
2873
|
return l();
|
|
2916
2874
|
},
|
|
2917
|
-
set allowedResize(
|
|
2918
|
-
l(
|
|
2875
|
+
set allowedResize(h = !1) {
|
|
2876
|
+
l(h), P();
|
|
2919
2877
|
},
|
|
2920
2878
|
get showBottomBorder() {
|
|
2921
|
-
return
|
|
2879
|
+
return d();
|
|
2922
2880
|
},
|
|
2923
|
-
set showBottomBorder(
|
|
2924
|
-
h
|
|
2881
|
+
set showBottomBorder(h = !1) {
|
|
2882
|
+
d(h), P();
|
|
2925
2883
|
},
|
|
2926
2884
|
get customClassname() {
|
|
2927
2885
|
return a();
|
|
2928
2886
|
},
|
|
2929
|
-
set customClassname(
|
|
2930
|
-
a(
|
|
2887
|
+
set customClassname(h = "") {
|
|
2888
|
+
a(h), P();
|
|
2931
2889
|
},
|
|
2932
2890
|
get containerClass() {
|
|
2933
|
-
return
|
|
2891
|
+
return f();
|
|
2934
2892
|
},
|
|
2935
|
-
set containerClass(
|
|
2936
|
-
|
|
2893
|
+
set containerClass(h = "") {
|
|
2894
|
+
f(h), P();
|
|
2937
2895
|
},
|
|
2938
2896
|
get passageContainerClass() {
|
|
2939
2897
|
return c();
|
|
2940
2898
|
},
|
|
2941
|
-
set passageContainerClass(
|
|
2942
|
-
c(
|
|
2899
|
+
set passageContainerClass(h = "") {
|
|
2900
|
+
c(h), P();
|
|
2943
2901
|
},
|
|
2944
2902
|
get externalStyleUrls() {
|
|
2945
2903
|
return u();
|
|
2946
2904
|
},
|
|
2947
|
-
set externalStyleUrls(
|
|
2948
|
-
u(
|
|
2905
|
+
set externalStyleUrls(h = "") {
|
|
2906
|
+
u(h), P();
|
|
2949
2907
|
},
|
|
2950
2908
|
get loaderConfig() {
|
|
2951
2909
|
return v();
|
|
2952
2910
|
},
|
|
2953
|
-
set loaderConfig(
|
|
2954
|
-
v(
|
|
2911
|
+
set loaderConfig(h = xn) {
|
|
2912
|
+
v(h), P();
|
|
2955
2913
|
},
|
|
2956
2914
|
...mr()
|
|
2957
2915
|
});
|
|
2958
2916
|
}
|
|
2959
2917
|
cr(he);
|
|
2960
|
-
customElements.define("pie-fixed-player",
|
|
2918
|
+
customElements.define("pie-fixed-player", $r(
|
|
2961
2919
|
he,
|
|
2962
2920
|
{
|
|
2963
2921
|
config: { attribute: "config", type: "Object" },
|