@pie-players/pie-section-player 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pie-section-player.js +407 -387
- package/dist/{tool-annotation-toolbar-9oNN3xoH.js → tool-annotation-toolbar-m4Mv2j0H.js} +451 -431
- package/package.json +7 -7
- package/src/components/PieSectionPlayerSplitPaneElement.svelte +1 -1
- package/src/components/PieSectionPlayerVerticalElement.svelte +1 -1
|
@@ -3185,9 +3185,9 @@ const Cp = {
|
|
|
3185
3185
|
tts: "textToSpeech",
|
|
3186
3186
|
colorScheme: "theme"
|
|
3187
3187
|
}, aa = {
|
|
3188
|
-
section: [
|
|
3189
|
-
item: [
|
|
3190
|
-
passage: [
|
|
3188
|
+
section: [],
|
|
3189
|
+
item: [],
|
|
3190
|
+
passage: []
|
|
3191
3191
|
}, la = {
|
|
3192
3192
|
section: [...aa.section],
|
|
3193
3193
|
item: [...aa.item],
|
|
@@ -9031,8 +9031,20 @@ const Kd = {
|
|
|
9031
9031
|
}
|
|
9032
9032
|
};
|
|
9033
9033
|
}
|
|
9034
|
-
}
|
|
9035
|
-
|
|
9034
|
+
}, xm = [
|
|
9035
|
+
bm,
|
|
9036
|
+
wm,
|
|
9037
|
+
Im,
|
|
9038
|
+
Sm,
|
|
9039
|
+
Em,
|
|
9040
|
+
Tm,
|
|
9041
|
+
Cm,
|
|
9042
|
+
Pm,
|
|
9043
|
+
km,
|
|
9044
|
+
Rm,
|
|
9045
|
+
$m
|
|
9046
|
+
];
|
|
9047
|
+
function Am(n = {}) {
|
|
9036
9048
|
const e = new cm(), t = {
|
|
9037
9049
|
toolTagMap: {
|
|
9038
9050
|
...Kd,
|
|
@@ -9041,24 +9053,32 @@ function xm(n = {}) {
|
|
|
9041
9053
|
toolComponentFactory: n.toolComponentFactory,
|
|
9042
9054
|
toolComponentFactories: n.toolComponentFactories
|
|
9043
9055
|
}, i = (r) => n.overrides?.[r.toolId] || r;
|
|
9044
|
-
return
|
|
9056
|
+
return n.includePackagedTools && Lm(e, {
|
|
9057
|
+
toolIds: n.toolIds,
|
|
9058
|
+
applyOverrides: i
|
|
9059
|
+
}), n.toolModuleLoaders && Object.keys(n.toolModuleLoaders).length > 0 && e.setToolModuleLoaders(n.toolModuleLoaders), e.setComponentOverrides(t), e;
|
|
9060
|
+
}
|
|
9061
|
+
function Lm(n, e = {}) {
|
|
9062
|
+
const t = e.toolIds && e.toolIds.length > 0 ? new Set(e.toolIds) : null, i = e.applyOverrides || ((r) => r);
|
|
9063
|
+
for (const r of xm)
|
|
9064
|
+
t && !t.has(r.toolId) || n.register(i(r));
|
|
9045
9065
|
}
|
|
9046
|
-
function
|
|
9047
|
-
const n =
|
|
9066
|
+
function Mm() {
|
|
9067
|
+
const n = Am(), e = /* @__PURE__ */ new Set();
|
|
9048
9068
|
for (const t of n.getAllTools())
|
|
9049
9069
|
for (const i of t.pnpSupportIds || [])
|
|
9050
9070
|
e.add(i);
|
|
9051
9071
|
return [...e].sort();
|
|
9052
9072
|
}
|
|
9053
|
-
const
|
|
9054
|
-
function
|
|
9073
|
+
const Om = Mm();
|
|
9074
|
+
function Nm() {
|
|
9055
9075
|
return {
|
|
9056
|
-
supports: [...
|
|
9076
|
+
supports: [...Om],
|
|
9057
9077
|
prohibitedSupports: [],
|
|
9058
9078
|
activateAtInit: []
|
|
9059
9079
|
};
|
|
9060
9080
|
}
|
|
9061
|
-
const
|
|
9081
|
+
const Dm = {
|
|
9062
9082
|
/**
|
|
9063
9083
|
* Visual accessibility features
|
|
9064
9084
|
* For students with low vision, color blindness, or visual processing needs
|
|
@@ -9229,15 +9249,15 @@ const Om = {
|
|
|
9229
9249
|
tutorialAvailable: "tutorialAvailable"
|
|
9230
9250
|
}
|
|
9231
9251
|
};
|
|
9232
|
-
Object.values(
|
|
9233
|
-
const
|
|
9252
|
+
Object.values(Dm).flatMap((n) => Object.values(n));
|
|
9253
|
+
const jm = 1;
|
|
9234
9254
|
function Wd() {
|
|
9235
9255
|
return (/* @__PURE__ */ new Date()).toISOString();
|
|
9236
9256
|
}
|
|
9237
|
-
function
|
|
9257
|
+
function zm(n) {
|
|
9238
9258
|
const e = Wd();
|
|
9239
9259
|
return {
|
|
9240
|
-
version:
|
|
9260
|
+
version: jm,
|
|
9241
9261
|
testAttemptSessionIdentifier: n.testAttemptSessionIdentifier,
|
|
9242
9262
|
assessmentId: n.assessmentId,
|
|
9243
9263
|
startedAt: e,
|
|
@@ -9253,7 +9273,7 @@ function Dm(n) {
|
|
|
9253
9273
|
itemSessions: {}
|
|
9254
9274
|
};
|
|
9255
9275
|
}
|
|
9256
|
-
function
|
|
9276
|
+
function Bm(n, e) {
|
|
9257
9277
|
if (!e)
|
|
9258
9278
|
return n;
|
|
9259
9279
|
const t = new Set(n.navigationState.visitedItemIdentifiers || []);
|
|
@@ -9265,7 +9285,7 @@ function jm(n, e) {
|
|
|
9265
9285
|
}
|
|
9266
9286
|
};
|
|
9267
9287
|
}
|
|
9268
|
-
function
|
|
9288
|
+
function Fm(n, e) {
|
|
9269
9289
|
return {
|
|
9270
9290
|
...n,
|
|
9271
9291
|
navigationState: {
|
|
@@ -9275,7 +9295,7 @@ function zm(n, e) {
|
|
|
9275
9295
|
}
|
|
9276
9296
|
};
|
|
9277
9297
|
}
|
|
9278
|
-
function
|
|
9298
|
+
function Vm(n, e) {
|
|
9279
9299
|
const { itemIdentifier: t, pieSessionId: i, isCompleted: r } = e;
|
|
9280
9300
|
if (!t || !i)
|
|
9281
9301
|
return n;
|
|
@@ -9300,7 +9320,7 @@ function Bm(n, e) {
|
|
|
9300
9320
|
function Aa(n) {
|
|
9301
9321
|
return Object.entries(n.itemSessions).reduce((e, [t, i]) => (i.session && (e[t] = i.session), e), {});
|
|
9302
9322
|
}
|
|
9303
|
-
class
|
|
9323
|
+
class Hm {
|
|
9304
9324
|
createUniqueId(e, t, i) {
|
|
9305
9325
|
const r = e.trim() || i;
|
|
9306
9326
|
let o = r, s = 2;
|
|
@@ -9397,11 +9417,11 @@ class Fm {
|
|
|
9397
9417
|
};
|
|
9398
9418
|
}
|
|
9399
9419
|
}
|
|
9400
|
-
class
|
|
9420
|
+
class Um {
|
|
9401
9421
|
navigate(e) {
|
|
9402
9422
|
if (e.isPageMode || e.index < 0 || e.index >= e.items.length) return null;
|
|
9403
|
-
const t = e.items[e.currentItemIndex]?.id || "", i = e.items[e.index]?.id || "", r =
|
|
9404
|
-
|
|
9423
|
+
const t = e.items[e.currentItemIndex]?.id || "", i = e.items[e.index]?.id || "", r = Bm(
|
|
9424
|
+
Fm(e.testAttemptSession, {
|
|
9405
9425
|
currentItemIndex: e.index,
|
|
9406
9426
|
currentSectionIdentifier: e.sectionIdentifier
|
|
9407
9427
|
}),
|
|
@@ -9420,11 +9440,11 @@ class Vm {
|
|
|
9420
9440
|
};
|
|
9421
9441
|
}
|
|
9422
9442
|
}
|
|
9423
|
-
function
|
|
9443
|
+
function qm(n, e = "iife") {
|
|
9424
9444
|
return n === "iife" || n === "esm" || n === "preloaded" ? n : e;
|
|
9425
9445
|
}
|
|
9426
|
-
const
|
|
9427
|
-
function
|
|
9446
|
+
const Km = "";
|
|
9447
|
+
function Wm(n, e) {
|
|
9428
9448
|
if (!n && !e)
|
|
9429
9449
|
return !0;
|
|
9430
9450
|
if (!n || !e || (n.id || "") !== (e.id || ""))
|
|
@@ -9435,7 +9455,7 @@ function qm(n, e) {
|
|
|
9435
9455
|
return !1;
|
|
9436
9456
|
}
|
|
9437
9457
|
}
|
|
9438
|
-
function La(n, e =
|
|
9458
|
+
function La(n, e = Km) {
|
|
9439
9459
|
if (n && typeof n == "object") {
|
|
9440
9460
|
const t = n;
|
|
9441
9461
|
return Array.isArray(t.data) ? {
|
|
@@ -9445,7 +9465,7 @@ function La(n, e = Um) {
|
|
|
9445
9465
|
}
|
|
9446
9466
|
return Array.isArray(n) ? { id: e, data: n } : { id: e, data: [] };
|
|
9447
9467
|
}
|
|
9448
|
-
function
|
|
9468
|
+
function Gm(n, e, t, i) {
|
|
9449
9469
|
const r = La(e, n), o = [...r.data], s = o.findIndex((a) => !a || typeof a != "object" ? !1 : a.id === t);
|
|
9450
9470
|
if (s >= 0) {
|
|
9451
9471
|
const a = o[s];
|
|
@@ -9470,7 +9490,7 @@ function Gd(n) {
|
|
|
9470
9490
|
const r = t;
|
|
9471
9491
|
if (Array.isArray(r.data)) {
|
|
9472
9492
|
const d = La(r, i), h = n.previousItemSession !== void 0 ? La(n.previousItemSession, i) : null, f = Object.keys(e);
|
|
9473
|
-
return f.length > 0 && f.every((p) => p === "session" || p === "complete" || p === "component" || p === "timestamp" || p === "sourceRuntimeId") && h &&
|
|
9493
|
+
return f.length > 0 && f.every((p) => p === "session" || p === "complete" || p === "component" || p === "timestamp" || p === "sourceRuntimeId") && h && Wm(d, h) ? {
|
|
9474
9494
|
itemId: i,
|
|
9475
9495
|
session: null,
|
|
9476
9496
|
intent: "metadata-only",
|
|
@@ -9493,7 +9513,7 @@ function Gd(n) {
|
|
|
9493
9513
|
component: typeof e.component == "string" ? e.component : void 0,
|
|
9494
9514
|
complete: typeof e.complete == "boolean" ? e.complete : void 0
|
|
9495
9515
|
};
|
|
9496
|
-
const a = typeof e.component == "string" ? e.component : typeof r.component == "string" ? r.component : "response", l = typeof r.id == "string" && r.id ? r.id : a, c =
|
|
9516
|
+
const a = typeof e.component == "string" ? e.component : typeof r.component == "string" ? r.component : "response", l = typeof r.id == "string" && r.id ? r.id : a, c = Gm(i, n.previousItemSession, l, { id: l, ...r });
|
|
9497
9517
|
return {
|
|
9498
9518
|
itemId: i,
|
|
9499
9519
|
session: c,
|
|
@@ -9502,10 +9522,10 @@ function Gd(n) {
|
|
|
9502
9522
|
complete: typeof e.complete == "boolean" ? e.complete : void 0
|
|
9503
9523
|
};
|
|
9504
9524
|
}
|
|
9505
|
-
class
|
|
9525
|
+
class Ym {
|
|
9506
9526
|
createEmptyCanonicalAttempt(e) {
|
|
9507
9527
|
const t = e.adapterItemRefs.map((i) => i?.identifier || i?.item?.id).filter((i) => typeof i == "string" && !!i);
|
|
9508
|
-
return
|
|
9528
|
+
return zm({
|
|
9509
9529
|
testAttemptSessionIdentifier: `tas_${e.assessmentId}_${e.sectionId}`,
|
|
9510
9530
|
assessmentId: e.assessmentId,
|
|
9511
9531
|
seed: `${e.assessmentId}:${e.sectionId}`,
|
|
@@ -9534,7 +9554,7 @@ class Wm {
|
|
|
9534
9554
|
previousItemSession: e.itemSessions[e.itemId]
|
|
9535
9555
|
}), i = t.itemId, r = t.session;
|
|
9536
9556
|
let o = e.testAttemptSession;
|
|
9537
|
-
r && i && (o =
|
|
9557
|
+
r && i && (o = Vm(
|
|
9538
9558
|
e.testAttemptSession,
|
|
9539
9559
|
{
|
|
9540
9560
|
itemIdentifier: i,
|
|
@@ -9561,9 +9581,9 @@ class Wm {
|
|
|
9561
9581
|
};
|
|
9562
9582
|
}
|
|
9563
9583
|
}
|
|
9564
|
-
class
|
|
9584
|
+
class Jm {
|
|
9565
9585
|
constructor() {
|
|
9566
|
-
this.contentService = new
|
|
9586
|
+
this.contentService = new Hm(), this.sessionService = new Ym(), this.itemNavigationService = new Um(), this.persistenceStrategy = null, this.persistenceContext = null, this.state = {
|
|
9567
9587
|
input: null,
|
|
9568
9588
|
viewModel: {
|
|
9569
9589
|
passages: [],
|
|
@@ -10081,7 +10101,7 @@ class Gm {
|
|
|
10081
10101
|
}), t;
|
|
10082
10102
|
}
|
|
10083
10103
|
}
|
|
10084
|
-
const
|
|
10104
|
+
const Xm = { id: "", data: [] }, Xs = {
|
|
10085
10105
|
section: null,
|
|
10086
10106
|
assessmentItemRefs: [],
|
|
10087
10107
|
passages: [],
|
|
@@ -10100,29 +10120,29 @@ function Ts(n) {
|
|
|
10100
10120
|
const e = n?.title;
|
|
10101
10121
|
return typeof e == "string" ? e.trim() : "";
|
|
10102
10122
|
}
|
|
10103
|
-
function
|
|
10123
|
+
function Zm(n, e) {
|
|
10104
10124
|
return Yd(n, e)?.canonicalItemId || "";
|
|
10105
10125
|
}
|
|
10106
|
-
function
|
|
10126
|
+
function Qm(n, e) {
|
|
10107
10127
|
return Yd(n, e)?.session;
|
|
10108
10128
|
}
|
|
10109
|
-
function
|
|
10110
|
-
return
|
|
10129
|
+
function eg(n, e) {
|
|
10130
|
+
return Qm(n, e) || Xm;
|
|
10111
10131
|
}
|
|
10112
10132
|
function Yd(n, e) {
|
|
10113
10133
|
const t = e.id || "";
|
|
10114
10134
|
if (t)
|
|
10115
10135
|
return n.itemViewModels.find((i) => i.itemId === t || i.canonicalItemId === t || i.item?.id === t);
|
|
10116
10136
|
}
|
|
10117
|
-
var
|
|
10137
|
+
var tg = Object.defineProperty, Jd = (n) => {
|
|
10118
10138
|
throw TypeError(n);
|
|
10119
|
-
},
|
|
10139
|
+
}, ng = (n, e, t) => e in n ? tg(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, J = (n, e, t) => ng(n, typeof e != "symbol" ? e + "" : e, t), pl = (n, e, t) => e.has(n) || Jd("Cannot " + t), T = (n, e, t) => (pl(n, e, "read from private field"), t ? t.call(n) : e.get(n)), ve = (n, e, t) => e.has(n) ? Jd("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), he = (n, e, t, i) => (pl(n, e, "write to private field"), e.set(n, t), t), Ot = (n, e, t) => (pl(n, e, "access private method"), t), Xl;
|
|
10120
10140
|
typeof window < "u" && ((Xl = window.__svelte ?? (window.__svelte = {})).v ?? (Xl.v = /* @__PURE__ */ new Set())).add("5");
|
|
10121
|
-
const
|
|
10122
|
-
var
|
|
10141
|
+
const ig = 1, rg = 2, og = 4, sg = 8, ag = 16, lg = 1, cg = 2, ml = "[", gl = "[!", Xd = "]", xr = {}, pt = /* @__PURE__ */ Symbol(), Zd = "http://www.w3.org/1999/xhtml", dg = !1;
|
|
10142
|
+
var ug = Array.isArray, fg = Array.prototype.indexOf, ho = Array.prototype.includes, hg = Array.from, Cs = Object.keys, _s = Object.defineProperty, Cr = Object.getOwnPropertyDescriptor, pg = Object.getOwnPropertyDescriptors, mg = Object.prototype, gg = Array.prototype, Qd = Object.getPrototypeOf, Zl = Object.isExtensible;
|
|
10123
10143
|
const eu = () => {
|
|
10124
10144
|
};
|
|
10125
|
-
function
|
|
10145
|
+
function vg(n) {
|
|
10126
10146
|
for (var e = 0; e < n.length; e++)
|
|
10127
10147
|
n[e]();
|
|
10128
10148
|
}
|
|
@@ -10132,54 +10152,54 @@ function tu() {
|
|
|
10132
10152
|
});
|
|
10133
10153
|
return { promise: t, resolve: n, reject: e };
|
|
10134
10154
|
}
|
|
10135
|
-
const It = 2, Bo = 4, Zs = 8, nu = 1 << 24, Ii = 16, Yn = 32, Zi = 64, Ma = 128, ln = 512, ct = 1024, St = 2048, $n = 4096, Hn = 8192, mi = 16384, bo = 32768, Ar = 65536, Ql = 1 << 17, iu = 1 << 18, zr = 1 << 19,
|
|
10155
|
+
const It = 2, Bo = 4, Zs = 8, nu = 1 << 24, Ii = 16, Yn = 32, Zi = 64, Ma = 128, ln = 512, ct = 1024, St = 2048, $n = 4096, Hn = 8192, mi = 16384, bo = 32768, Ar = 65536, Ql = 1 << 17, iu = 1 << 18, zr = 1 << 19, yg = 1 << 20, Lr = 65536, Oa = 1 << 21, vl = 1 << 22, Bi = 1 << 23, Lo = /* @__PURE__ */ Symbol("$state"), ru = /* @__PURE__ */ Symbol("legacy props"), bg = /* @__PURE__ */ Symbol(""), dr = new class extends Error {
|
|
10136
10156
|
constructor() {
|
|
10137
10157
|
super(...arguments), J(this, "name", "StaleReactionError"), J(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
10138
10158
|
}
|
|
10139
|
-
}(),
|
|
10159
|
+
}(), wg = (
|
|
10140
10160
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
10141
10161
|
!!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml")
|
|
10142
10162
|
), Qs = 3, Qo = 8;
|
|
10143
10163
|
function ou(n) {
|
|
10144
10164
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
10145
10165
|
}
|
|
10146
|
-
function
|
|
10166
|
+
function Ig() {
|
|
10147
10167
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
10148
10168
|
}
|
|
10149
|
-
function
|
|
10169
|
+
function Sg(n) {
|
|
10150
10170
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
10151
10171
|
}
|
|
10152
|
-
function
|
|
10172
|
+
function Eg() {
|
|
10153
10173
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
10154
10174
|
}
|
|
10155
|
-
function
|
|
10175
|
+
function Tg(n) {
|
|
10156
10176
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
10157
10177
|
}
|
|
10158
|
-
function
|
|
10178
|
+
function Cg() {
|
|
10159
10179
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
10160
10180
|
}
|
|
10161
|
-
function
|
|
10181
|
+
function _g() {
|
|
10162
10182
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
10163
10183
|
}
|
|
10164
|
-
function
|
|
10184
|
+
function Pg(n) {
|
|
10165
10185
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
10166
10186
|
}
|
|
10167
|
-
function
|
|
10187
|
+
function kg() {
|
|
10168
10188
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
10169
10189
|
}
|
|
10170
|
-
function
|
|
10190
|
+
function Rg() {
|
|
10171
10191
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
10172
10192
|
}
|
|
10173
|
-
function
|
|
10193
|
+
function $g() {
|
|
10174
10194
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
10175
10195
|
}
|
|
10176
|
-
function
|
|
10196
|
+
function xg() {
|
|
10177
10197
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
10178
10198
|
}
|
|
10179
10199
|
function es(n) {
|
|
10180
10200
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
10181
10201
|
}
|
|
10182
|
-
function
|
|
10202
|
+
function Ag() {
|
|
10183
10203
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
10184
10204
|
}
|
|
10185
10205
|
let Ne = !1;
|
|
@@ -10202,7 +10222,7 @@ function gt(n) {
|
|
|
10202
10222
|
Ae = n;
|
|
10203
10223
|
}
|
|
10204
10224
|
}
|
|
10205
|
-
function
|
|
10225
|
+
function Lg(n = 1) {
|
|
10206
10226
|
if (Ne) {
|
|
10207
10227
|
for (var e = n, t = Ae; e--; )
|
|
10208
10228
|
t = /** @type {TemplateNode} */
|
|
@@ -10230,7 +10250,7 @@ function su(n = !0) {
|
|
|
10230
10250
|
n && t.remove(), t = r;
|
|
10231
10251
|
}
|
|
10232
10252
|
}
|
|
10233
|
-
function
|
|
10253
|
+
function Mg(n) {
|
|
10234
10254
|
if (!n || n.nodeType !== Qo)
|
|
10235
10255
|
throw es(), xr;
|
|
10236
10256
|
return (
|
|
@@ -10241,14 +10261,14 @@ function Ag(n) {
|
|
|
10241
10261
|
function au(n) {
|
|
10242
10262
|
return n === this.v;
|
|
10243
10263
|
}
|
|
10244
|
-
function
|
|
10264
|
+
function Og(n, e) {
|
|
10245
10265
|
return n != n ? e == e : n !== e || n !== null && typeof n == "object" || typeof n == "function";
|
|
10246
10266
|
}
|
|
10247
10267
|
function lu(n) {
|
|
10248
|
-
return !
|
|
10268
|
+
return !Og(n, this.v);
|
|
10249
10269
|
}
|
|
10250
|
-
let wo = !1,
|
|
10251
|
-
function
|
|
10270
|
+
let wo = !1, Ng = !1;
|
|
10271
|
+
function Dg() {
|
|
10252
10272
|
wo = !0;
|
|
10253
10273
|
}
|
|
10254
10274
|
let nt = null;
|
|
@@ -10285,7 +10305,7 @@ function Io() {
|
|
|
10285
10305
|
let ur = [];
|
|
10286
10306
|
function cu() {
|
|
10287
10307
|
var n = ur;
|
|
10288
|
-
ur = [],
|
|
10308
|
+
ur = [], vg(n);
|
|
10289
10309
|
}
|
|
10290
10310
|
function Mr(n) {
|
|
10291
10311
|
if (ur.length === 0 && !Mo) {
|
|
@@ -10296,7 +10316,7 @@ function Mr(n) {
|
|
|
10296
10316
|
}
|
|
10297
10317
|
ur.push(n);
|
|
10298
10318
|
}
|
|
10299
|
-
function
|
|
10319
|
+
function jg() {
|
|
10300
10320
|
for (; ur.length > 0; )
|
|
10301
10321
|
cu();
|
|
10302
10322
|
}
|
|
@@ -10324,9 +10344,9 @@ function go(n, e) {
|
|
|
10324
10344
|
}
|
|
10325
10345
|
throw n;
|
|
10326
10346
|
}
|
|
10327
|
-
const
|
|
10347
|
+
const zg = -7169;
|
|
10328
10348
|
function tt(n, e) {
|
|
10329
|
-
n.f = n.f &
|
|
10349
|
+
n.f = n.f & zg | e;
|
|
10330
10350
|
}
|
|
10331
10351
|
function yl(n) {
|
|
10332
10352
|
(n.f & ln) !== 0 || n.deps === null ? tt(n, ct) : tt(n, $n);
|
|
@@ -10345,7 +10365,7 @@ function fu(n, e, t) {
|
|
|
10345
10365
|
const fs = /* @__PURE__ */ new Set();
|
|
10346
10366
|
let Ge = null, kn = null, Nt = [], ea = null, Na = !1, Mo = !1;
|
|
10347
10367
|
var Co, _o, _i, tr, Po, Ps, Yr, Li, ko, nr, Da, ja, hu;
|
|
10348
|
-
const
|
|
10368
|
+
const Bg = class pu {
|
|
10349
10369
|
constructor() {
|
|
10350
10370
|
ve(this, nr), J(this, "committed", !1), J(this, "current", /* @__PURE__ */ new Map()), J(this, "previous", /* @__PURE__ */ new Map()), ve(this, Co, /* @__PURE__ */ new Set()), ve(this, _o, /* @__PURE__ */ new Set()), ve(this, _i, 0), ve(this, tr, 0), ve(this, Po, null), ve(this, Ps, /* @__PURE__ */ new Set()), ve(this, Yr, /* @__PURE__ */ new Set()), ve(this, Li, /* @__PURE__ */ new Map()), J(this, "is_fork", !1), ve(this, ko, !1);
|
|
10351
10371
|
}
|
|
@@ -10541,13 +10561,13 @@ ja = function(n) {
|
|
|
10541
10561
|
}
|
|
10542
10562
|
this.committed = !0, fs.delete(this);
|
|
10543
10563
|
};
|
|
10544
|
-
let Or =
|
|
10564
|
+
let Or = Bg;
|
|
10545
10565
|
function L(n) {
|
|
10546
10566
|
var e = Mo;
|
|
10547
10567
|
Mo = !0;
|
|
10548
10568
|
try {
|
|
10549
10569
|
for (var t; ; ) {
|
|
10550
|
-
if (
|
|
10570
|
+
if (jg(), Nt.length === 0 && (Ge?.flush(), Nt.length === 0))
|
|
10551
10571
|
return ea = null, /** @type {T} */
|
|
10552
10572
|
t;
|
|
10553
10573
|
mu();
|
|
@@ -10563,7 +10583,7 @@ function mu() {
|
|
|
10563
10583
|
var e = Or.ensure();
|
|
10564
10584
|
if (n++ > 1e3) {
|
|
10565
10585
|
var t, i;
|
|
10566
|
-
|
|
10586
|
+
Fg();
|
|
10567
10587
|
}
|
|
10568
10588
|
e.process(Nt), Fi.clear();
|
|
10569
10589
|
}
|
|
@@ -10571,9 +10591,9 @@ function mu() {
|
|
|
10571
10591
|
Nt = [], Na = !1, ea = null;
|
|
10572
10592
|
}
|
|
10573
10593
|
}
|
|
10574
|
-
function
|
|
10594
|
+
function Fg() {
|
|
10575
10595
|
try {
|
|
10576
|
-
|
|
10596
|
+
Cg();
|
|
10577
10597
|
} catch (n) {
|
|
10578
10598
|
go(n, ea);
|
|
10579
10599
|
}
|
|
@@ -10660,7 +10680,7 @@ function yu(n, e) {
|
|
|
10660
10680
|
yu(t, e), t = t.next;
|
|
10661
10681
|
}
|
|
10662
10682
|
}
|
|
10663
|
-
function
|
|
10683
|
+
function Vg(n) {
|
|
10664
10684
|
let e = 0, t = ts(0), i;
|
|
10665
10685
|
return () => {
|
|
10666
10686
|
Sl() && (I(t), El(() => (e === 0 && (i = gi(() => n(() => Do(t)))), e += 1, () => {
|
|
@@ -10670,19 +10690,19 @@ function Bg(n) {
|
|
|
10670
10690
|
})));
|
|
10671
10691
|
};
|
|
10672
10692
|
}
|
|
10673
|
-
var
|
|
10674
|
-
function
|
|
10675
|
-
new
|
|
10693
|
+
var Hg = Ar | zr;
|
|
10694
|
+
function Ug(n, e, t) {
|
|
10695
|
+
new qg(n, e, t);
|
|
10676
10696
|
}
|
|
10677
10697
|
var wn, hs, Mi, Wr, ci, di, nn, Qn, Pi, ir, ki, Ro, Oo, No, Ri, za, yn, bu, wu, Ba, ks, Fa;
|
|
10678
|
-
class
|
|
10698
|
+
class qg {
|
|
10679
10699
|
/**
|
|
10680
10700
|
* @param {TemplateNode} node
|
|
10681
10701
|
* @param {BoundaryProps} props
|
|
10682
10702
|
* @param {((anchor: Node) => void)} children
|
|
10683
10703
|
*/
|
|
10684
10704
|
constructor(e, t, i) {
|
|
10685
|
-
ve(this, yn), J(this, "parent"), J(this, "is_pending", !1), ve(this, wn), ve(this, hs, Ne ? Ae : null), ve(this, Mi), ve(this, Wr), ve(this, ci), ve(this, di, null), ve(this, nn, null), ve(this, Qn, null), ve(this, Pi, null), ve(this, ir, 0), ve(this, ki, 0), ve(this, Ro, !1), ve(this, Oo, /* @__PURE__ */ new Set()), ve(this, No, /* @__PURE__ */ new Set()), ve(this, Ri, null), ve(this, za,
|
|
10705
|
+
ve(this, yn), J(this, "parent"), J(this, "is_pending", !1), ve(this, wn), ve(this, hs, Ne ? Ae : null), ve(this, Mi), ve(this, Wr), ve(this, ci), ve(this, di, null), ve(this, nn, null), ve(this, Qn, null), ve(this, Pi, null), ve(this, ir, 0), ve(this, ki, 0), ve(this, Ro, !1), ve(this, Oo, /* @__PURE__ */ new Set()), ve(this, No, /* @__PURE__ */ new Set()), ve(this, Ri, null), ve(this, za, Vg(() => (he(this, Ri, ts(T(this, ir))), () => {
|
|
10686
10706
|
he(this, Ri, null);
|
|
10687
10707
|
}))), he(this, wn, e), he(this, Mi, t), he(this, Wr, (r) => {
|
|
10688
10708
|
var o = (
|
|
@@ -10700,7 +10720,7 @@ class Hg {
|
|
|
10700
10720
|
po(), r.data === gl ? Ot(this, yn, wu).call(this) : Ot(this, yn, bu).call(this);
|
|
10701
10721
|
} else
|
|
10702
10722
|
Ot(this, yn, Ba).call(this);
|
|
10703
|
-
},
|
|
10723
|
+
}, Hg)), Ne && he(this, wn, Ae);
|
|
10704
10724
|
}
|
|
10705
10725
|
/**
|
|
10706
10726
|
* Defer an effect inside a pending boundary until the boundary resolves
|
|
@@ -10745,14 +10765,14 @@ class Hg {
|
|
|
10745
10765
|
T(this, di) && (jt(T(this, di)), he(this, di, null)), T(this, nn) && (jt(T(this, nn)), he(this, nn, null)), T(this, Qn) && (jt(T(this, Qn)), he(this, Qn, null)), Ne && (fn(
|
|
10746
10766
|
/** @type {TemplateNode} */
|
|
10747
10767
|
T(this, hs)
|
|
10748
|
-
),
|
|
10768
|
+
), Lg(), fn(su()));
|
|
10749
10769
|
var r = !1, o = !1;
|
|
10750
10770
|
const s = () => {
|
|
10751
10771
|
if (r) {
|
|
10752
|
-
|
|
10772
|
+
Ag();
|
|
10753
10773
|
return;
|
|
10754
10774
|
}
|
|
10755
|
-
r = !0, o &&
|
|
10775
|
+
r = !0, o && xg(), T(this, Qn) !== null && Fo(T(this, Qn), () => {
|
|
10756
10776
|
he(this, Qn, null);
|
|
10757
10777
|
}), Ot(this, yn, ks).call(this, () => {
|
|
10758
10778
|
Or.ensure(), Ot(this, yn, Ba).call(this);
|
|
@@ -10860,7 +10880,7 @@ Fa = function(n) {
|
|
|
10860
10880
|
}), T(this, Pi) && (T(this, wn).before(T(this, Pi)), he(this, Pi, null));
|
|
10861
10881
|
}
|
|
10862
10882
|
};
|
|
10863
|
-
function
|
|
10883
|
+
function Kg(n, e, t, i) {
|
|
10864
10884
|
const r = Io() ? ta : Iu;
|
|
10865
10885
|
var o = n.filter((f) => !f.settled);
|
|
10866
10886
|
if (t.length === 0 && o.length === 0) {
|
|
@@ -10870,7 +10890,7 @@ function Ug(n, e, t, i) {
|
|
|
10870
10890
|
var s = Ge, a = (
|
|
10871
10891
|
/** @type {Effect} */
|
|
10872
10892
|
Te
|
|
10873
|
-
), l =
|
|
10893
|
+
), l = Wg(), c = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((f) => f.promise)) : null;
|
|
10874
10894
|
function d(f) {
|
|
10875
10895
|
l();
|
|
10876
10896
|
try {
|
|
@@ -10885,11 +10905,11 @@ function Ug(n, e, t, i) {
|
|
|
10885
10905
|
return;
|
|
10886
10906
|
}
|
|
10887
10907
|
function h() {
|
|
10888
|
-
l(), Promise.all(t.map((f) => /* @__PURE__ */
|
|
10908
|
+
l(), Promise.all(t.map((f) => /* @__PURE__ */ Gg(f))).then((f) => d([...e.map(r), ...f])).catch((f) => go(f, a));
|
|
10889
10909
|
}
|
|
10890
10910
|
c ? c.then(h) : h();
|
|
10891
10911
|
}
|
|
10892
|
-
function
|
|
10912
|
+
function Wg() {
|
|
10893
10913
|
var n = Te, e = ye, t = nt, i = Ge;
|
|
10894
10914
|
return function(r = !0) {
|
|
10895
10915
|
Un(n), hn(e), mo(t), r && i?.activate();
|
|
@@ -10923,12 +10943,12 @@ function ta(n) {
|
|
|
10923
10943
|
};
|
|
10924
10944
|
}
|
|
10925
10945
|
// @__NO_SIDE_EFFECTS__
|
|
10926
|
-
function
|
|
10946
|
+
function Gg(n, e, t) {
|
|
10927
10947
|
let i = (
|
|
10928
10948
|
/** @type {Effect | null} */
|
|
10929
10949
|
Te
|
|
10930
10950
|
);
|
|
10931
|
-
i === null &&
|
|
10951
|
+
i === null && Ig();
|
|
10932
10952
|
var r = (
|
|
10933
10953
|
/** @type {Boundary} */
|
|
10934
10954
|
i.b
|
|
@@ -10940,7 +10960,7 @@ function Kg(n, e, t) {
|
|
|
10940
10960
|
/** @type {V} */
|
|
10941
10961
|
pt
|
|
10942
10962
|
), a = !ye, l = /* @__PURE__ */ new Map();
|
|
10943
|
-
return
|
|
10963
|
+
return av(() => {
|
|
10944
10964
|
var c = tu();
|
|
10945
10965
|
o = c.promise;
|
|
10946
10966
|
try {
|
|
@@ -10971,7 +10991,7 @@ function Kg(n, e, t) {
|
|
|
10971
10991
|
a && (r.update_pending_count(-1), d.decrement(h));
|
|
10972
10992
|
};
|
|
10973
10993
|
c.promise.then(f, (m) => f(null, m || "unknown"));
|
|
10974
|
-
}),
|
|
10994
|
+
}), rv(() => {
|
|
10975
10995
|
for (const c of l.values())
|
|
10976
10996
|
c.reject(dr);
|
|
10977
10997
|
}), new Promise((c) => {
|
|
@@ -10994,7 +11014,7 @@ function Iu(n) {
|
|
|
10994
11014
|
const e = /* @__PURE__ */ ta(n);
|
|
10995
11015
|
return e.equals = lu, e;
|
|
10996
11016
|
}
|
|
10997
|
-
function
|
|
11017
|
+
function Yg(n) {
|
|
10998
11018
|
var e = n.effects;
|
|
10999
11019
|
if (e !== null) {
|
|
11000
11020
|
n.effects = null;
|
|
@@ -11005,7 +11025,7 @@ function Wg(n) {
|
|
|
11005
11025
|
);
|
|
11006
11026
|
}
|
|
11007
11027
|
}
|
|
11008
|
-
function
|
|
11028
|
+
function Jg(n) {
|
|
11009
11029
|
for (var e = n.parent; e !== null; ) {
|
|
11010
11030
|
if ((e.f & It) === 0)
|
|
11011
11031
|
return (e.f & mi) === 0 ? (
|
|
@@ -11018,9 +11038,9 @@ function Gg(n) {
|
|
|
11018
11038
|
}
|
|
11019
11039
|
function bl(n) {
|
|
11020
11040
|
var e, t = Te;
|
|
11021
|
-
Un(
|
|
11041
|
+
Un(Jg(n));
|
|
11022
11042
|
try {
|
|
11023
|
-
n.f &= ~Lr,
|
|
11043
|
+
n.f &= ~Lr, Yg(n), e = Vu(n);
|
|
11024
11044
|
} finally {
|
|
11025
11045
|
Un(t);
|
|
11026
11046
|
}
|
|
@@ -11034,7 +11054,7 @@ function Su(n) {
|
|
|
11034
11054
|
}
|
|
11035
11055
|
Gi || (kn !== null ? (Sl() || Ge?.is_fork) && kn.set(n, e) : yl(n));
|
|
11036
11056
|
}
|
|
11037
|
-
function
|
|
11057
|
+
function Xg(n) {
|
|
11038
11058
|
if (n.effects !== null)
|
|
11039
11059
|
for (const e of n.effects)
|
|
11040
11060
|
(e.teardown || e.ac) && (e.teardown?.(), e.ac?.abort(dr), e.teardown = eu, e.ac = null, Vo(e, 0), Tl(e));
|
|
@@ -11065,7 +11085,7 @@ function Re(n, e) {
|
|
|
11065
11085
|
return ju(t), t;
|
|
11066
11086
|
}
|
|
11067
11087
|
// @__NO_SIDE_EFFECTS__
|
|
11068
|
-
function
|
|
11088
|
+
function Zg(n, e = !1, t = !0) {
|
|
11069
11089
|
var i;
|
|
11070
11090
|
const r = ts(n);
|
|
11071
11091
|
return e || (r.equals = lu), wo && t && nt !== null && nt.l !== null && ((i = nt.l).s ?? (i.s = [])).push(r), r;
|
|
@@ -11073,7 +11093,7 @@ function Jg(n, e = !1, t = !0) {
|
|
|
11073
11093
|
function K(n, e, t = !1) {
|
|
11074
11094
|
ye !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
11075
11095
|
// to ensure we error if state is set inside an inspect effect
|
|
11076
|
-
(!Pn || (ye.f & Ql) !== 0) && Io() && (ye.f & (It | Ii | vl | Ql)) !== 0 && (dn === null || !ho.call(dn, n)) &&
|
|
11096
|
+
(!Pn || (ye.f & Ql) !== 0) && Io() && (ye.f & (It | Ii | vl | Ql)) !== 0 && (dn === null || !ho.call(dn, n)) && $g();
|
|
11077
11097
|
let i = t ? fr(e) : e;
|
|
11078
11098
|
return Rs(n, i);
|
|
11079
11099
|
}
|
|
@@ -11089,11 +11109,11 @@ function Rs(n, e) {
|
|
|
11089
11109
|
);
|
|
11090
11110
|
(n.f & St) !== 0 && bl(r), yl(r);
|
|
11091
11111
|
}
|
|
11092
|
-
n.wv = Bu(), Cu(n, St), Io() && Te !== null && (Te.f & ct) !== 0 && (Te.f & (Yn | Zi)) === 0 && (Zt === null ?
|
|
11112
|
+
n.wv = Bu(), Cu(n, St), Io() && Te !== null && (Te.f & ct) !== 0 && (Te.f & (Yn | Zi)) === 0 && (Zt === null ? dv([n]) : Zt.push(n)), !i.is_fork && Ha.size > 0 && !Tu && Qg();
|
|
11093
11113
|
}
|
|
11094
11114
|
return e;
|
|
11095
11115
|
}
|
|
11096
|
-
function
|
|
11116
|
+
function Qg() {
|
|
11097
11117
|
Tu = !1;
|
|
11098
11118
|
for (const n of Ha)
|
|
11099
11119
|
(n.f & ct) !== 0 && tt(n, $n), ns(n) && vo(n);
|
|
@@ -11129,9 +11149,9 @@ function fr(n) {
|
|
|
11129
11149
|
if (typeof n != "object" || n === null || Lo in n)
|
|
11130
11150
|
return n;
|
|
11131
11151
|
const e = Qd(n);
|
|
11132
|
-
if (e !==
|
|
11152
|
+
if (e !== mg && e !== gg)
|
|
11133
11153
|
return n;
|
|
11134
|
-
var t = /* @__PURE__ */ new Map(), i =
|
|
11154
|
+
var t = /* @__PURE__ */ new Map(), i = ug(n), r = /* @__PURE__ */ Re(0), o = _r, s = (a) => {
|
|
11135
11155
|
if (_r === o)
|
|
11136
11156
|
return a();
|
|
11137
11157
|
var l = ye, c = _r;
|
|
@@ -11147,7 +11167,7 @@ function fr(n) {
|
|
|
11147
11167
|
n,
|
|
11148
11168
|
{
|
|
11149
11169
|
defineProperty(a, l, c) {
|
|
11150
|
-
(!("value" in c) || c.configurable === !1 || c.enumerable === !1 || c.writable === !1) &&
|
|
11170
|
+
(!("value" in c) || c.configurable === !1 || c.enumerable === !1 || c.writable === !1) && kg();
|
|
11151
11171
|
var d = t.get(l);
|
|
11152
11172
|
return d === void 0 ? s(() => {
|
|
11153
11173
|
var h = /* @__PURE__ */ Re(c.value);
|
|
@@ -11249,7 +11269,7 @@ function fr(n) {
|
|
|
11249
11269
|
return l;
|
|
11250
11270
|
},
|
|
11251
11271
|
setPrototypeOf() {
|
|
11252
|
-
|
|
11272
|
+
Rg();
|
|
11253
11273
|
}
|
|
11254
11274
|
}
|
|
11255
11275
|
);
|
|
@@ -11330,10 +11350,10 @@ function Vi(n, e = 1, t = !1) {
|
|
|
11330
11350
|
}
|
|
11331
11351
|
return fn(i), i;
|
|
11332
11352
|
}
|
|
11333
|
-
function
|
|
11353
|
+
function ev(n) {
|
|
11334
11354
|
n.textContent = "";
|
|
11335
11355
|
}
|
|
11336
|
-
function
|
|
11356
|
+
function tv() {
|
|
11337
11357
|
return !1;
|
|
11338
11358
|
}
|
|
11339
11359
|
function wl(n, e, t) {
|
|
@@ -11362,10 +11382,10 @@ function Ru(n) {
|
|
|
11362
11382
|
hn(e), Un(t);
|
|
11363
11383
|
}
|
|
11364
11384
|
}
|
|
11365
|
-
function
|
|
11366
|
-
Te === null && (ye === null &&
|
|
11385
|
+
function nv(n) {
|
|
11386
|
+
Te === null && (ye === null && Tg(), Eg()), Gi && Sg();
|
|
11367
11387
|
}
|
|
11368
|
-
function
|
|
11388
|
+
function iv(n, e) {
|
|
11369
11389
|
var t = e.last;
|
|
11370
11390
|
t === null ? e.last = e.first = n : (t.next = n, n.prev = t, e.last = n);
|
|
11371
11391
|
}
|
|
@@ -11397,7 +11417,7 @@ function Xn(n, e, t) {
|
|
|
11397
11417
|
else e !== null && _n(r);
|
|
11398
11418
|
var o = r;
|
|
11399
11419
|
if (t && o.deps === null && o.teardown === null && o.nodes === null && o.first === o.last && // either `null`, or a singular child
|
|
11400
|
-
(o.f & zr) === 0 && (o = o.first, (n & Ii) !== 0 && (n & Ar) !== 0 && o !== null && (o.f |= Ar)), o !== null && (o.parent = i, i !== null &&
|
|
11420
|
+
(o.f & zr) === 0 && (o = o.first, (n & Ii) !== 0 && (n & Ar) !== 0 && o !== null && (o.f |= Ar)), o !== null && (o.parent = i, i !== null && iv(o, i), ye !== null && (ye.f & It) !== 0 && (n & Zi) === 0)) {
|
|
11401
11421
|
var s = (
|
|
11402
11422
|
/** @type {Derived} */
|
|
11403
11423
|
ye
|
|
@@ -11409,12 +11429,12 @@ function Xn(n, e, t) {
|
|
|
11409
11429
|
function Sl() {
|
|
11410
11430
|
return ye !== null && !Pn;
|
|
11411
11431
|
}
|
|
11412
|
-
function
|
|
11432
|
+
function rv(n) {
|
|
11413
11433
|
const e = Xn(Zs, null, !1);
|
|
11414
11434
|
return tt(e, ct), e.teardown = n, e;
|
|
11415
11435
|
}
|
|
11416
11436
|
function rn(n) {
|
|
11417
|
-
|
|
11437
|
+
nv();
|
|
11418
11438
|
var e = (
|
|
11419
11439
|
/** @type {Effect} */
|
|
11420
11440
|
Te.f
|
|
@@ -11429,16 +11449,16 @@ function rn(n) {
|
|
|
11429
11449
|
return $u(n);
|
|
11430
11450
|
}
|
|
11431
11451
|
function $u(n) {
|
|
11432
|
-
return Xn(Bo |
|
|
11452
|
+
return Xn(Bo | yg, n, !1);
|
|
11433
11453
|
}
|
|
11434
|
-
function
|
|
11454
|
+
function ov(n) {
|
|
11435
11455
|
Or.ensure();
|
|
11436
11456
|
const e = Xn(Zi | zr, n, !0);
|
|
11437
11457
|
return () => {
|
|
11438
11458
|
jt(e);
|
|
11439
11459
|
};
|
|
11440
11460
|
}
|
|
11441
|
-
function
|
|
11461
|
+
function sv(n) {
|
|
11442
11462
|
Or.ensure();
|
|
11443
11463
|
const e = Xn(Zi | zr, n, !0);
|
|
11444
11464
|
return (t = {}) => new Promise((i) => {
|
|
@@ -11450,14 +11470,14 @@ function rv(n) {
|
|
|
11450
11470
|
function xu(n) {
|
|
11451
11471
|
return Xn(Bo, n, !1);
|
|
11452
11472
|
}
|
|
11453
|
-
function
|
|
11473
|
+
function av(n) {
|
|
11454
11474
|
return Xn(vl | zr, n, !0);
|
|
11455
11475
|
}
|
|
11456
11476
|
function El(n, e = 0) {
|
|
11457
11477
|
return Xn(Zs | e, n, !0);
|
|
11458
11478
|
}
|
|
11459
11479
|
function cn(n, e = [], t = [], i = []) {
|
|
11460
|
-
|
|
11480
|
+
Kg(i, e, t, (r) => {
|
|
11461
11481
|
Xn(Zs, () => n(...r.map(I)), !0);
|
|
11462
11482
|
});
|
|
11463
11483
|
}
|
|
@@ -11491,7 +11511,7 @@ function Tl(n, e = !1) {
|
|
|
11491
11511
|
(t.f & Zi) !== 0 ? t.parent = null : jt(t, e), t = i;
|
|
11492
11512
|
}
|
|
11493
11513
|
}
|
|
11494
|
-
function
|
|
11514
|
+
function lv(n) {
|
|
11495
11515
|
for (var e = n.first; e !== null; ) {
|
|
11496
11516
|
var t = e.next;
|
|
11497
11517
|
(e.f & Yn) === 0 && jt(e), e = t;
|
|
@@ -11551,7 +11571,7 @@ function Ou(n, e, t) {
|
|
|
11551
11571
|
}
|
|
11552
11572
|
}
|
|
11553
11573
|
}
|
|
11554
|
-
function
|
|
11574
|
+
function cv(n) {
|
|
11555
11575
|
Nu(n, !0);
|
|
11556
11576
|
}
|
|
11557
11577
|
function Nu(n, e) {
|
|
@@ -11591,7 +11611,7 @@ function ju(n) {
|
|
|
11591
11611
|
ye !== null && (dn === null ? dn = [n] : dn.push(n));
|
|
11592
11612
|
}
|
|
11593
11613
|
let Mt = null, Ht = 0, Zt = null;
|
|
11594
|
-
function
|
|
11614
|
+
function dv(n) {
|
|
11595
11615
|
Zt = n;
|
|
11596
11616
|
}
|
|
11597
11617
|
let zu = 1, hr = 0, _r = hr;
|
|
@@ -11692,10 +11712,10 @@ function Vu(n) {
|
|
|
11692
11712
|
n.f ^= Oa, Mt = t, Ht = i, Zt = r, ye = o, dn = s, mo(a), Pn = l, _r = c;
|
|
11693
11713
|
}
|
|
11694
11714
|
}
|
|
11695
|
-
function
|
|
11715
|
+
function uv(n, e) {
|
|
11696
11716
|
let t = e.reactions;
|
|
11697
11717
|
if (t !== null) {
|
|
11698
|
-
var i =
|
|
11718
|
+
var i = fg.call(t, n);
|
|
11699
11719
|
if (i !== -1) {
|
|
11700
11720
|
var r = t.length - 1;
|
|
11701
11721
|
r === 0 ? t = e.reactions = null : (t[i] = t[r], t.pop());
|
|
@@ -11709,14 +11729,14 @@ function cv(n, e) {
|
|
|
11709
11729
|
/** @type {Derived} */
|
|
11710
11730
|
e
|
|
11711
11731
|
);
|
|
11712
|
-
(o.f & ln) !== 0 && (o.f ^= ln, o.f &= ~Lr), yl(o),
|
|
11732
|
+
(o.f & ln) !== 0 && (o.f ^= ln, o.f &= ~Lr), yl(o), Xg(o), Vo(o, 0);
|
|
11713
11733
|
}
|
|
11714
11734
|
}
|
|
11715
11735
|
function Vo(n, e) {
|
|
11716
11736
|
var t = n.deps;
|
|
11717
11737
|
if (t !== null)
|
|
11718
11738
|
for (var i = e; i < t.length; i++)
|
|
11719
|
-
|
|
11739
|
+
uv(n, t[i]);
|
|
11720
11740
|
}
|
|
11721
11741
|
function vo(n) {
|
|
11722
11742
|
var e = n.f;
|
|
@@ -11725,11 +11745,11 @@ function vo(n) {
|
|
|
11725
11745
|
var t = Te, i = ps;
|
|
11726
11746
|
Te = n, ps = !0;
|
|
11727
11747
|
try {
|
|
11728
|
-
(e & (Ii | nu)) !== 0 ?
|
|
11748
|
+
(e & (Ii | nu)) !== 0 ? lv(n) : Tl(n), Au(n);
|
|
11729
11749
|
var r = Vu(n);
|
|
11730
11750
|
n.teardown = typeof r == "function" ? r : null, n.wv = zu;
|
|
11731
11751
|
var o;
|
|
11732
|
-
|
|
11752
|
+
dg && Ng && (n.f & St) !== 0 && n.deps;
|
|
11733
11753
|
} finally {
|
|
11734
11754
|
ps = i, Te = t;
|
|
11735
11755
|
}
|
|
@@ -11875,22 +11895,22 @@ function sc(n) {
|
|
|
11875
11895
|
}
|
|
11876
11896
|
}
|
|
11877
11897
|
}
|
|
11878
|
-
const
|
|
11898
|
+
const fv = (
|
|
11879
11899
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
11880
11900
|
globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
|
|
11881
11901
|
/** @param {string} html */
|
|
11882
11902
|
createHTML: (n) => n
|
|
11883
11903
|
})
|
|
11884
11904
|
);
|
|
11885
|
-
function
|
|
11905
|
+
function hv(n) {
|
|
11886
11906
|
return (
|
|
11887
11907
|
/** @type {string} */
|
|
11888
|
-
|
|
11908
|
+
fv?.createHTML(n) ?? n
|
|
11889
11909
|
);
|
|
11890
11910
|
}
|
|
11891
11911
|
function Wu(n, e = !1) {
|
|
11892
11912
|
var t = wl("template");
|
|
11893
|
-
return n = n.replaceAll("<!>", "<!---->"), t.innerHTML = e ?
|
|
11913
|
+
return n = n.replaceAll("<!>", "<!---->"), t.innerHTML = e ? hv(n) : n, t.content;
|
|
11894
11914
|
}
|
|
11895
11915
|
function Hi(n, e) {
|
|
11896
11916
|
var t = (
|
|
@@ -11901,7 +11921,7 @@ function Hi(n, e) {
|
|
|
11901
11921
|
}
|
|
11902
11922
|
// @__NO_SIDE_EFFECTS__
|
|
11903
11923
|
function pn(n, e) {
|
|
11904
|
-
var t = (e &
|
|
11924
|
+
var t = (e & lg) !== 0, i = (e & cg) !== 0, r, o = !n.startsWith("<!>");
|
|
11905
11925
|
return () => {
|
|
11906
11926
|
if (Ne)
|
|
11907
11927
|
return Hi(Ae, null), Ae;
|
|
@@ -11925,7 +11945,7 @@ function pn(n, e) {
|
|
|
11925
11945
|
return s;
|
|
11926
11946
|
};
|
|
11927
11947
|
}
|
|
11928
|
-
function
|
|
11948
|
+
function pv() {
|
|
11929
11949
|
if (Ne)
|
|
11930
11950
|
return Hi(Ae, null), Ae;
|
|
11931
11951
|
var n = document.createDocumentFragment(), e = document.createComment(""), t = Wi();
|
|
@@ -11945,9 +11965,9 @@ function Dt(n, e) {
|
|
|
11945
11965
|
e
|
|
11946
11966
|
);
|
|
11947
11967
|
}
|
|
11948
|
-
const
|
|
11949
|
-
function
|
|
11950
|
-
return
|
|
11968
|
+
const mv = ["touchstart", "touchmove"];
|
|
11969
|
+
function gv(n) {
|
|
11970
|
+
return mv.includes(n);
|
|
11951
11971
|
}
|
|
11952
11972
|
function _l(n, e) {
|
|
11953
11973
|
var t = e == null ? "" : typeof e == "object" ? e + "" : e;
|
|
@@ -11956,7 +11976,7 @@ function _l(n, e) {
|
|
|
11956
11976
|
function Gu(n, e) {
|
|
11957
11977
|
return Yu(n, e);
|
|
11958
11978
|
}
|
|
11959
|
-
function
|
|
11979
|
+
function vv(n, e) {
|
|
11960
11980
|
Ua(), e.intro = e.intro ?? !1;
|
|
11961
11981
|
const t = e.target, i = Ne, r = Ae;
|
|
11962
11982
|
try {
|
|
@@ -11976,7 +11996,7 @@ function mv(n, e) {
|
|
|
11976
11996
|
if (s instanceof Error && s.message.split(`
|
|
11977
11997
|
`).some((a) => a.startsWith("https://svelte.dev/e/")))
|
|
11978
11998
|
throw s;
|
|
11979
|
-
return s !== xr && console.warn("Failed to hydrate: ", s), e.recover === !1 &&
|
|
11999
|
+
return s !== xr && console.warn("Failed to hydrate: ", s), e.recover === !1 && _g(), Ua(), ev(t), Kr(!1), Gu(n, e);
|
|
11980
12000
|
} finally {
|
|
11981
12001
|
Kr(i), fn(r);
|
|
11982
12002
|
}
|
|
@@ -11984,9 +12004,9 @@ function mv(n, e) {
|
|
|
11984
12004
|
const as = /* @__PURE__ */ new Map();
|
|
11985
12005
|
function Yu(n, { target: e, anchor: t, props: i = {}, events: r, context: o, intro: s = !0 }) {
|
|
11986
12006
|
Ua();
|
|
11987
|
-
var a = void 0, l =
|
|
12007
|
+
var a = void 0, l = sv(() => {
|
|
11988
12008
|
var c = t ?? e.appendChild(Wi());
|
|
11989
|
-
|
|
12009
|
+
Ug(
|
|
11990
12010
|
/** @type {TemplateNode} */
|
|
11991
12011
|
c,
|
|
11992
12012
|
{
|
|
@@ -12014,7 +12034,7 @@ function Yu(n, { target: e, anchor: t, props: i = {}, events: r, context: o, int
|
|
|
12014
12034
|
var p = f[m];
|
|
12015
12035
|
if (!d.has(p)) {
|
|
12016
12036
|
d.add(p);
|
|
12017
|
-
var b =
|
|
12037
|
+
var b = gv(p);
|
|
12018
12038
|
for (const S of [e, document]) {
|
|
12019
12039
|
var v = as.get(S);
|
|
12020
12040
|
v === void 0 && (v = /* @__PURE__ */ new Map(), as.set(S, v));
|
|
@@ -12024,7 +12044,7 @@ function Yu(n, { target: e, anchor: t, props: i = {}, events: r, context: o, int
|
|
|
12024
12044
|
}
|
|
12025
12045
|
}
|
|
12026
12046
|
};
|
|
12027
|
-
return h(
|
|
12047
|
+
return h(hg(Ku)), qa.add(h), () => {
|
|
12028
12048
|
for (var f of d)
|
|
12029
12049
|
for (const b of [e, document]) {
|
|
12030
12050
|
var m = (
|
|
@@ -12042,7 +12062,7 @@ function Yu(n, { target: e, anchor: t, props: i = {}, events: r, context: o, int
|
|
|
12042
12062
|
return Ka.set(a, l), a;
|
|
12043
12063
|
}
|
|
12044
12064
|
let Ka = /* @__PURE__ */ new WeakMap();
|
|
12045
|
-
function
|
|
12065
|
+
function yv(n, e) {
|
|
12046
12066
|
const t = Ka.get(n);
|
|
12047
12067
|
return t ? (Ka.delete(n), t(e)) : Promise.resolve();
|
|
12048
12068
|
}
|
|
@@ -12064,7 +12084,7 @@ class Pl {
|
|
|
12064
12084
|
T(this, On).get(i)
|
|
12065
12085
|
), o = T(this, $i).get(r);
|
|
12066
12086
|
if (o)
|
|
12067
|
-
|
|
12087
|
+
cv(o), T(this, qr).delete(r);
|
|
12068
12088
|
else {
|
|
12069
12089
|
var s = T(this, Nn).get(r);
|
|
12070
12090
|
s && (T(this, $i).set(r, s.effect), T(this, Nn).delete(r), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), o = s.effect);
|
|
@@ -12104,7 +12124,7 @@ class Pl {
|
|
|
12104
12124
|
var i = (
|
|
12105
12125
|
/** @type {Batch} */
|
|
12106
12126
|
Ge
|
|
12107
|
-
), r =
|
|
12127
|
+
), r = tv();
|
|
12108
12128
|
t && !T(this, $i).has(e) && !T(this, Nn).has(e) && T(this, $i).set(
|
|
12109
12129
|
e,
|
|
12110
12130
|
rr(() => t(this.anchor))
|
|
@@ -12112,7 +12132,7 @@ class Pl {
|
|
|
12112
12132
|
}
|
|
12113
12133
|
}
|
|
12114
12134
|
On = /* @__PURE__ */ new WeakMap(), $i = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap(), qr = /* @__PURE__ */ new WeakMap(), ms = /* @__PURE__ */ new WeakMap(), Wa = /* @__PURE__ */ new WeakMap(), Ju = /* @__PURE__ */ new WeakMap();
|
|
12115
|
-
function
|
|
12135
|
+
function bv(n, e, ...t) {
|
|
12116
12136
|
var i = new Pl(n);
|
|
12117
12137
|
na(() => {
|
|
12118
12138
|
const r = e() ?? null;
|
|
@@ -12120,7 +12140,7 @@ function vv(n, e, ...t) {
|
|
|
12120
12140
|
}, Ar);
|
|
12121
12141
|
}
|
|
12122
12142
|
function Xu(n) {
|
|
12123
|
-
nt === null && ou(), wo && nt.l !== null ?
|
|
12143
|
+
nt === null && ou(), wo && nt.l !== null ? wv(nt).m.push(n) : rn(() => {
|
|
12124
12144
|
const e = gi(n);
|
|
12125
12145
|
if (typeof e == "function") return (
|
|
12126
12146
|
/** @type {() => void} */
|
|
@@ -12131,7 +12151,7 @@ function Xu(n) {
|
|
|
12131
12151
|
function Zu(n) {
|
|
12132
12152
|
nt === null && ou(), Xu(() => () => gi(n));
|
|
12133
12153
|
}
|
|
12134
|
-
function
|
|
12154
|
+
function wv(n) {
|
|
12135
12155
|
var e = (
|
|
12136
12156
|
/** @type {ComponentContextLegacy} */
|
|
12137
12157
|
n.l
|
|
@@ -12143,7 +12163,7 @@ function $s(n, e, t = !1) {
|
|
|
12143
12163
|
var i = new Pl(n), r = t ? Ar : 0;
|
|
12144
12164
|
function o(s, a) {
|
|
12145
12165
|
if (Ne) {
|
|
12146
|
-
const d =
|
|
12166
|
+
const d = Mg(n);
|
|
12147
12167
|
var l;
|
|
12148
12168
|
if (d === ml ? l = 0 : d === gl ? l = !1 : l = parseInt(d.substring(1)), s !== l) {
|
|
12149
12169
|
var c = su();
|
|
@@ -12160,14 +12180,14 @@ function $s(n, e, t = !1) {
|
|
|
12160
12180
|
}), s || o(!1, null);
|
|
12161
12181
|
}, r);
|
|
12162
12182
|
}
|
|
12163
|
-
const
|
|
12164
|
-
function
|
|
12183
|
+
const Iv = /* @__PURE__ */ Symbol("NaN");
|
|
12184
|
+
function Sv(n, e, t) {
|
|
12165
12185
|
Ne && po();
|
|
12166
12186
|
var i = new Pl(n), r = !Io();
|
|
12167
12187
|
na(() => {
|
|
12168
12188
|
var o = e();
|
|
12169
12189
|
o !== o && (o = /** @type {any} */
|
|
12170
|
-
|
|
12190
|
+
Iv), r && o !== null && typeof o == "object" && (o = /** @type {V} */
|
|
12171
12191
|
{}), i.ensure(o, t);
|
|
12172
12192
|
});
|
|
12173
12193
|
}
|
|
@@ -12245,16 +12265,16 @@ function Qu(n) {
|
|
|
12245
12265
|
} else for (t in n) n[t] && (i && (i += " "), i += t);
|
|
12246
12266
|
return i;
|
|
12247
12267
|
}
|
|
12248
|
-
function
|
|
12268
|
+
function Ev() {
|
|
12249
12269
|
for (var n, e, t = 0, i = "", r = arguments.length; t < r; t++) (n = arguments[t]) && (e = Qu(n)) && (i && (i += " "), i += e);
|
|
12250
12270
|
return i;
|
|
12251
12271
|
}
|
|
12252
12272
|
function lc(n) {
|
|
12253
|
-
return typeof n == "object" ?
|
|
12273
|
+
return typeof n == "object" ? Ev(n) : n ?? "";
|
|
12254
12274
|
}
|
|
12255
12275
|
const cc = [...`
|
|
12256
12276
|
\r\f \v\uFEFF`];
|
|
12257
|
-
function
|
|
12277
|
+
function Tv(n, e, t) {
|
|
12258
12278
|
var i = n == null ? "" : "" + n;
|
|
12259
12279
|
if (e && (i = i ? i + " " + e : e), t) {
|
|
12260
12280
|
for (var r in t)
|
|
@@ -12268,13 +12288,13 @@ function Sv(n, e, t) {
|
|
|
12268
12288
|
}
|
|
12269
12289
|
return i === "" ? null : i;
|
|
12270
12290
|
}
|
|
12271
|
-
function
|
|
12291
|
+
function Cv(n, e) {
|
|
12272
12292
|
return n == null ? null : String(n);
|
|
12273
12293
|
}
|
|
12274
12294
|
function Nr(n, e, t, i, r, o) {
|
|
12275
12295
|
var s = n.__className;
|
|
12276
12296
|
if (Ne || s !== t || s === void 0) {
|
|
12277
|
-
var a =
|
|
12297
|
+
var a = Tv(t, i, o);
|
|
12278
12298
|
(!Ne || a !== n.getAttribute("class")) && (a == null ? n.removeAttribute("class") : n.className = a), n.__className = t;
|
|
12279
12299
|
} else if (o && r !== o)
|
|
12280
12300
|
for (var l in o) {
|
|
@@ -12283,36 +12303,36 @@ function Nr(n, e, t, i, r, o) {
|
|
|
12283
12303
|
}
|
|
12284
12304
|
return o;
|
|
12285
12305
|
}
|
|
12286
|
-
function
|
|
12306
|
+
function _v(n, e, t, i) {
|
|
12287
12307
|
var r = n.__style;
|
|
12288
12308
|
if (Ne || r !== e) {
|
|
12289
|
-
var o =
|
|
12309
|
+
var o = Cv(e);
|
|
12290
12310
|
(!Ne || o !== n.getAttribute("style")) && (o == null ? n.removeAttribute("style") : n.style.cssText = o), n.__style = e;
|
|
12291
12311
|
}
|
|
12292
12312
|
return i;
|
|
12293
12313
|
}
|
|
12294
|
-
const
|
|
12314
|
+
const Pv = /* @__PURE__ */ Symbol("is custom element"), kv = /* @__PURE__ */ Symbol("is html"), Rv = wg ? "link" : "LINK";
|
|
12295
12315
|
function Dr(n, e, t, i) {
|
|
12296
|
-
var r =
|
|
12297
|
-
Ne && (r[e] = n.getAttribute(e), e === "src" || e === "srcset" || e === "href" && n.nodeName ===
|
|
12316
|
+
var r = $v(n);
|
|
12317
|
+
Ne && (r[e] = n.getAttribute(e), e === "src" || e === "srcset" || e === "href" && n.nodeName === Rv) || r[e] !== (r[e] = t) && (e === "loading" && (n[bg] = t), t == null ? n.removeAttribute(e) : typeof t != "string" && xv(n).includes(e) ? n[e] = t : n.setAttribute(e, t));
|
|
12298
12318
|
}
|
|
12299
|
-
function
|
|
12319
|
+
function $v(n) {
|
|
12300
12320
|
return (
|
|
12301
12321
|
/** @type {Record<string | symbol, unknown>} **/
|
|
12302
12322
|
// @ts-expect-error
|
|
12303
12323
|
n.__attributes ?? (n.__attributes = {
|
|
12304
|
-
[
|
|
12305
|
-
[
|
|
12324
|
+
[Pv]: n.nodeName.includes("-"),
|
|
12325
|
+
[kv]: n.namespaceURI === Zd
|
|
12306
12326
|
})
|
|
12307
12327
|
);
|
|
12308
12328
|
}
|
|
12309
12329
|
var dc = /* @__PURE__ */ new Map();
|
|
12310
|
-
function
|
|
12330
|
+
function xv(n) {
|
|
12311
12331
|
var e = n.getAttribute("is") || n.nodeName, t = dc.get(e);
|
|
12312
12332
|
if (t) return t;
|
|
12313
12333
|
dc.set(e, t = []);
|
|
12314
12334
|
for (var i, r = n, o = Element.prototype; o !== r; ) {
|
|
12315
|
-
i =
|
|
12335
|
+
i = pg(r);
|
|
12316
12336
|
for (var s in i)
|
|
12317
12337
|
i[s].set && t.push(s);
|
|
12318
12338
|
r = Qd(r);
|
|
@@ -12337,7 +12357,7 @@ function ia(n = {}, e, t, i) {
|
|
|
12337
12357
|
}), n;
|
|
12338
12358
|
}
|
|
12339
12359
|
let ls = !1;
|
|
12340
|
-
function
|
|
12360
|
+
function Av(n) {
|
|
12341
12361
|
var e = ls;
|
|
12342
12362
|
try {
|
|
12343
12363
|
return ls = !1, [n(), ls];
|
|
@@ -12346,7 +12366,7 @@ function $v(n) {
|
|
|
12346
12366
|
}
|
|
12347
12367
|
}
|
|
12348
12368
|
function M(n, e, t, i) {
|
|
12349
|
-
var r = !wo || (t &
|
|
12369
|
+
var r = !wo || (t & rg) !== 0, o = (t & sg) !== 0, s = (t & ag) !== 0, a = (
|
|
12350
12370
|
/** @type {V} */
|
|
12351
12371
|
i
|
|
12352
12372
|
), l = !0, c = () => (l && (l = !1, a = s ? gi(
|
|
@@ -12361,11 +12381,11 @@ function M(n, e, t, i) {
|
|
|
12361
12381
|
d = Cr(n, e)?.set ?? (h && e in n ? (R) => n[e] = R : void 0);
|
|
12362
12382
|
}
|
|
12363
12383
|
var f, m = !1;
|
|
12364
|
-
o ? [f, m] =
|
|
12384
|
+
o ? [f, m] = Av(() => (
|
|
12365
12385
|
/** @type {V} */
|
|
12366
12386
|
n[e]
|
|
12367
12387
|
)) : f = /** @type {V} */
|
|
12368
|
-
n[e], f === void 0 && i !== void 0 && (f = c(), d && (r &&
|
|
12388
|
+
n[e], f === void 0 && i !== void 0 && (f = c(), d && (r && Pg(), d(f)));
|
|
12369
12389
|
var p;
|
|
12370
12390
|
if (r ? p = () => {
|
|
12371
12391
|
var R = (
|
|
@@ -12380,7 +12400,7 @@ function M(n, e, t, i) {
|
|
|
12380
12400
|
);
|
|
12381
12401
|
return R !== void 0 && (a = /** @type {V} */
|
|
12382
12402
|
void 0), R === void 0 ? a : R;
|
|
12383
|
-
}, r && (t &
|
|
12403
|
+
}, r && (t & og) === 0)
|
|
12384
12404
|
return p;
|
|
12385
12405
|
if (d) {
|
|
12386
12406
|
var b = n.$$legacy;
|
|
@@ -12391,7 +12411,7 @@ function M(n, e, t, i) {
|
|
|
12391
12411
|
})
|
|
12392
12412
|
);
|
|
12393
12413
|
}
|
|
12394
|
-
var v = !1, g = ((t &
|
|
12414
|
+
var v = !1, g = ((t & ig) !== 0 ? ta : Iu)(() => (v = !1, p()));
|
|
12395
12415
|
o && I(g);
|
|
12396
12416
|
var S = (
|
|
12397
12417
|
/** @type {Effect} */
|
|
@@ -12408,11 +12428,11 @@ function M(n, e, t, i) {
|
|
|
12408
12428
|
})
|
|
12409
12429
|
);
|
|
12410
12430
|
}
|
|
12411
|
-
function
|
|
12412
|
-
return new
|
|
12431
|
+
function Lv(n) {
|
|
12432
|
+
return new Mv(n);
|
|
12413
12433
|
}
|
|
12414
12434
|
var xi, vn;
|
|
12415
|
-
class
|
|
12435
|
+
class Mv {
|
|
12416
12436
|
/**
|
|
12417
12437
|
* @param {ComponentConstructorOptions & {
|
|
12418
12438
|
* component: any;
|
|
@@ -12421,7 +12441,7 @@ class Av {
|
|
|
12421
12441
|
constructor(e) {
|
|
12422
12442
|
ve(this, xi), ve(this, vn);
|
|
12423
12443
|
var t = /* @__PURE__ */ new Map(), i = (o, s) => {
|
|
12424
|
-
var a = /* @__PURE__ */
|
|
12444
|
+
var a = /* @__PURE__ */ Zg(s, !1, !1);
|
|
12425
12445
|
return t.set(o, a), a;
|
|
12426
12446
|
};
|
|
12427
12447
|
const r = new Proxy(
|
|
@@ -12438,7 +12458,7 @@ class Av {
|
|
|
12438
12458
|
}
|
|
12439
12459
|
}
|
|
12440
12460
|
);
|
|
12441
|
-
he(this, vn, (e.hydrate ?
|
|
12461
|
+
he(this, vn, (e.hydrate ? vv : Gu)(e.component, {
|
|
12442
12462
|
target: e.target,
|
|
12443
12463
|
anchor: e.anchor,
|
|
12444
12464
|
props: r,
|
|
@@ -12461,7 +12481,7 @@ class Av {
|
|
|
12461
12481
|
(o) => {
|
|
12462
12482
|
Object.assign(r, o);
|
|
12463
12483
|
}, T(this, vn).$destroy = () => {
|
|
12464
|
-
|
|
12484
|
+
yv(T(this, vn));
|
|
12465
12485
|
};
|
|
12466
12486
|
}
|
|
12467
12487
|
/** @param {Record<string, any>} props */
|
|
@@ -12531,7 +12551,7 @@ typeof HTMLElement == "function" && (ef = class extends HTMLElement {
|
|
|
12531
12551
|
};
|
|
12532
12552
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
12533
12553
|
return;
|
|
12534
|
-
const e = {}, t =
|
|
12554
|
+
const e = {}, t = Ov(this);
|
|
12535
12555
|
for (const i of this.$$s)
|
|
12536
12556
|
i in t && (i === "default" && !this.$$d.children ? (this.$$d.children = n(i), e.default = !0) : e[i] = n(i));
|
|
12537
12557
|
for (const i of this.attributes) {
|
|
@@ -12540,7 +12560,7 @@ typeof HTMLElement == "function" && (ef = class extends HTMLElement {
|
|
|
12540
12560
|
}
|
|
12541
12561
|
for (const i in this.$$p_d)
|
|
12542
12562
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
12543
|
-
this.$$c =
|
|
12563
|
+
this.$$c = Lv({
|
|
12544
12564
|
component: this.$$ctor,
|
|
12545
12565
|
target: this.$$shadowRoot || this,
|
|
12546
12566
|
props: {
|
|
@@ -12548,7 +12568,7 @@ typeof HTMLElement == "function" && (ef = class extends HTMLElement {
|
|
|
12548
12568
|
$$slots: e,
|
|
12549
12569
|
$$host: this
|
|
12550
12570
|
}
|
|
12551
|
-
}), this.$$me =
|
|
12571
|
+
}), this.$$me = ov(() => {
|
|
12552
12572
|
El(() => {
|
|
12553
12573
|
this.$$r = !0;
|
|
12554
12574
|
for (const i of Cs(this.$$c)) {
|
|
@@ -12627,7 +12647,7 @@ function gs(n, e, t, i) {
|
|
|
12627
12647
|
return e;
|
|
12628
12648
|
}
|
|
12629
12649
|
}
|
|
12630
|
-
function
|
|
12650
|
+
function Ov(n) {
|
|
12631
12651
|
const e = {};
|
|
12632
12652
|
return n.childNodes.forEach((t) => {
|
|
12633
12653
|
e[
|
|
@@ -12670,10 +12690,10 @@ function Br(n, e, t, i, r, o) {
|
|
|
12670
12690
|
}), n.element = /** @type {any} */
|
|
12671
12691
|
s, s;
|
|
12672
12692
|
}
|
|
12673
|
-
const
|
|
12693
|
+
const Nv = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 };
|
|
12674
12694
|
function tf(n) {
|
|
12675
12695
|
try {
|
|
12676
|
-
const e =
|
|
12696
|
+
const e = Nv?.[n];
|
|
12677
12697
|
if (typeof e == "string" && e.length > 0)
|
|
12678
12698
|
return e;
|
|
12679
12699
|
} catch {
|
|
@@ -12687,10 +12707,10 @@ const fc = {
|
|
|
12687
12707
|
maxResourceRetries: 3,
|
|
12688
12708
|
resourceRetryDelay: 500
|
|
12689
12709
|
};
|
|
12690
|
-
function
|
|
12710
|
+
function Dv(n, e = "iife") {
|
|
12691
12711
|
return n === "iife" || n === "esm" || n === "preloaded" ? n : e;
|
|
12692
12712
|
}
|
|
12693
|
-
function
|
|
12713
|
+
function jv(n, e = "delivery") {
|
|
12694
12714
|
return n === "author" ? "author" : e;
|
|
12695
12715
|
}
|
|
12696
12716
|
function kl(n, e) {
|
|
@@ -12706,10 +12726,10 @@ function kl(n, e) {
|
|
|
12706
12726
|
error: (i, ...r) => console.error(t, i, ...r)
|
|
12707
12727
|
};
|
|
12708
12728
|
}
|
|
12709
|
-
function
|
|
12729
|
+
function zv() {
|
|
12710
12730
|
return typeof window < "u" && window.PIE_DEBUG === !0;
|
|
12711
12731
|
}
|
|
12712
|
-
class
|
|
12732
|
+
class Bv {
|
|
12713
12733
|
constructor() {
|
|
12714
12734
|
J(this, "currentRenderer", null);
|
|
12715
12735
|
}
|
|
@@ -12766,15 +12786,15 @@ class jv {
|
|
|
12766
12786
|
this.currentRenderer && (window[e] = this.currentRenderer, window[t] = this.currentRenderer);
|
|
12767
12787
|
}
|
|
12768
12788
|
}
|
|
12769
|
-
const hc = new
|
|
12770
|
-
async function
|
|
12789
|
+
const hc = new Bv();
|
|
12790
|
+
async function Fv(n = {}) {
|
|
12771
12791
|
const { _dll_pie_lib__math_rendering: e } = await import("./index-C1goqVqV-DS7afZzq.js");
|
|
12772
12792
|
return e;
|
|
12773
12793
|
}
|
|
12774
12794
|
async function nf(n) {
|
|
12775
12795
|
if (!(typeof window > "u") && !hc.isInitialized())
|
|
12776
12796
|
try {
|
|
12777
|
-
const e = n ?? await
|
|
12797
|
+
const e = n ?? await Fv();
|
|
12778
12798
|
hc.setRenderer(e), console.log("[MathRendering] ✅ Math rendering module initialized (both globals set)");
|
|
12779
12799
|
} catch (e) {
|
|
12780
12800
|
throw console.error("[MathRendering] ❌ Failed to initialize math rendering:", e), e;
|
|
@@ -12791,13 +12811,13 @@ var Ui;
|
|
|
12791
12811
|
function rf(n) {
|
|
12792
12812
|
return typeof n == "function" && "prototype" in n && n.prototype instanceof HTMLElement;
|
|
12793
12813
|
}
|
|
12794
|
-
function
|
|
12814
|
+
function Vv(n) {
|
|
12795
12815
|
return n && typeof n.PIE_REGISTRY == "object";
|
|
12796
12816
|
}
|
|
12797
12817
|
const xs = () => {
|
|
12798
12818
|
let n;
|
|
12799
|
-
return
|
|
12800
|
-
},
|
|
12819
|
+
return Vv(window) ? n = window.PIE_REGISTRY : (n = {}, window.PIE_REGISTRY = n), n;
|
|
12820
|
+
}, Hv = /* @__PURE__ */ new Set([
|
|
12801
12821
|
"annotation-xml",
|
|
12802
12822
|
"color-profile",
|
|
12803
12823
|
"font-face",
|
|
@@ -12806,7 +12826,7 @@ const xs = () => {
|
|
|
12806
12826
|
"font-face-format",
|
|
12807
12827
|
"font-face-name",
|
|
12808
12828
|
"missing-glyph"
|
|
12809
|
-
]),
|
|
12829
|
+
]), Uv = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, As = (n, e = "custom element tag") => {
|
|
12810
12830
|
if (!n || typeof n != "string")
|
|
12811
12831
|
throw new Error(`Invalid ${e}: expected a non-empty string`);
|
|
12812
12832
|
const t = n.trim();
|
|
@@ -12816,9 +12836,9 @@ const xs = () => {
|
|
|
12816
12836
|
throw new Error(`Invalid ${e} "${t}": custom element names must be lowercase`);
|
|
12817
12837
|
if (!t.includes("-"))
|
|
12818
12838
|
throw new Error(`Invalid ${e} "${t}": custom element names must include a hyphen`);
|
|
12819
|
-
if (
|
|
12839
|
+
if (Hv.has(t))
|
|
12820
12840
|
throw new Error(`Invalid ${e} "${t}": this name is reserved by the HTML spec`);
|
|
12821
|
-
if (!
|
|
12841
|
+
if (!Uv.test(t))
|
|
12822
12842
|
throw new Error(`Invalid ${e} "${t}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
|
|
12823
12843
|
return t;
|
|
12824
12844
|
};
|
|
@@ -12844,7 +12864,7 @@ const Ci = {
|
|
|
12844
12864
|
// 'delivery-a11y': { subpath: '/delivery-a11y', tagSuffix: '', fallback: 'delivery' }
|
|
12845
12865
|
// 'delivery-simple': { subpath: '/delivery-simple', tagSuffix: '', fallback: 'delivery' }
|
|
12846
12866
|
};
|
|
12847
|
-
class
|
|
12867
|
+
class qv {
|
|
12848
12868
|
constructor(e) {
|
|
12849
12869
|
J(this, "cdnBaseUrl"), J(this, "importMapInjected", !1), this.cdnBaseUrl = e.cdnBaseUrl, je = kl("esm-loader", e.debugEnabled || (() => !1));
|
|
12850
12870
|
}
|
|
@@ -12998,14 +13018,14 @@ const of = (n) => {
|
|
|
12998
13018
|
path: e[2] || "",
|
|
12999
13019
|
version: e[3] || ""
|
|
13000
13020
|
};
|
|
13001
|
-
},
|
|
13021
|
+
}, Kv = (n) => n.split("+").map((e) => of(e).name).join("+");
|
|
13002
13022
|
let _e;
|
|
13003
13023
|
const sf = "https://proxy.pie-api.com/bundles/";
|
|
13004
13024
|
typeof window < "u" && !window.pieHelpers && (window.pieHelpers = {
|
|
13005
13025
|
loadingScripts: {},
|
|
13006
13026
|
loadingPromises: {}
|
|
13007
13027
|
});
|
|
13008
|
-
class
|
|
13028
|
+
class Wv {
|
|
13009
13029
|
constructor(e) {
|
|
13010
13030
|
J(this, "config"), this.config = e, _e = kl("iife-loader", e.debugEnabled || (() => !1));
|
|
13011
13031
|
}
|
|
@@ -13077,7 +13097,7 @@ class qv {
|
|
|
13077
13097
|
const s = [], a = i === In.editor;
|
|
13078
13098
|
for (const [l, c] of Object.entries(e))
|
|
13079
13099
|
try {
|
|
13080
|
-
const d =
|
|
13100
|
+
const d = Kv(c);
|
|
13081
13101
|
_e.debug(`Registering element ${l} from package ${d} (full: ${c})`);
|
|
13082
13102
|
const h = o[d];
|
|
13083
13103
|
if (!h)
|
|
@@ -13179,7 +13199,7 @@ class qv {
|
|
|
13179
13199
|
return await Promise.all(t), { elements: e, val: !0 };
|
|
13180
13200
|
}
|
|
13181
13201
|
}
|
|
13182
|
-
const
|
|
13202
|
+
const Gv = (n) => {
|
|
13183
13203
|
const e = "--version-", t = (l) => {
|
|
13184
13204
|
const c = l.match(`${e}(\\d+-\\d+-\\d+)$`);
|
|
13185
13205
|
return c ? {
|
|
@@ -13254,7 +13274,7 @@ var yc;
|
|
|
13254
13274
|
n[n.ROOT = 0] = "ROOT", n[n.SUBJECT = 1] = "SUBJECT", n[n.LEVEL = 2] = "LEVEL", n[n.STANDARD = 3] = "STANDARD";
|
|
13255
13275
|
})(yc || (yc = {}));
|
|
13256
13276
|
In.player;
|
|
13257
|
-
class
|
|
13277
|
+
class Yv {
|
|
13258
13278
|
constructor() {
|
|
13259
13279
|
J(this, "store", /* @__PURE__ */ new Map());
|
|
13260
13280
|
}
|
|
@@ -13268,8 +13288,8 @@ class Wv {
|
|
|
13268
13288
|
this.store.delete(e);
|
|
13269
13289
|
}
|
|
13270
13290
|
}
|
|
13271
|
-
const
|
|
13272
|
-
function vs(n, e =
|
|
13291
|
+
const Jv = "";
|
|
13292
|
+
function vs(n, e = Jv) {
|
|
13273
13293
|
if (n && typeof n == "object") {
|
|
13274
13294
|
const t = n;
|
|
13275
13295
|
return Array.isArray(t.data) ? {
|
|
@@ -13291,8 +13311,8 @@ function Ho(n) {
|
|
|
13291
13311
|
return !0;
|
|
13292
13312
|
return !1;
|
|
13293
13313
|
}
|
|
13294
|
-
const
|
|
13295
|
-
function
|
|
13314
|
+
const Xv = "";
|
|
13315
|
+
function Zv(n) {
|
|
13296
13316
|
try {
|
|
13297
13317
|
return structuredClone(n);
|
|
13298
13318
|
} catch {
|
|
@@ -13302,9 +13322,9 @@ function Jv(n) {
|
|
|
13302
13322
|
};
|
|
13303
13323
|
}
|
|
13304
13324
|
}
|
|
13305
|
-
class
|
|
13325
|
+
class Qv {
|
|
13306
13326
|
constructor(e) {
|
|
13307
|
-
J(this, "storage"), J(this, "session"), J(this, "storageKey"), J(this, "sessionId"), this.storage = e.storage ?? new
|
|
13327
|
+
J(this, "storage"), J(this, "session"), J(this, "storageKey"), J(this, "sessionId"), this.storage = e.storage ?? new Yv(), this.storageKey = e.storageKey ?? `pie:item-controller:v1:${e.itemId}`, this.sessionId = e.sessionId ?? Xv, this.session = vs(e.initialSession, this.sessionId);
|
|
13308
13328
|
}
|
|
13309
13329
|
async hydrate() {
|
|
13310
13330
|
const e = await this.storage.load(this.storageKey);
|
|
@@ -13317,7 +13337,7 @@ class Xv {
|
|
|
13317
13337
|
await this.storage.clear?.(this.storageKey);
|
|
13318
13338
|
}
|
|
13319
13339
|
getSession() {
|
|
13320
|
-
return
|
|
13340
|
+
return Zv(this.session);
|
|
13321
13341
|
}
|
|
13322
13342
|
setSession(e, t = {}) {
|
|
13323
13343
|
const i = vs(e, this.sessionId);
|
|
@@ -13328,12 +13348,12 @@ class Xv {
|
|
|
13328
13348
|
return this.setSession(i, t);
|
|
13329
13349
|
}
|
|
13330
13350
|
}
|
|
13331
|
-
const
|
|
13351
|
+
const ey = vs, Di = {
|
|
13332
13352
|
trackPageActions: !1,
|
|
13333
13353
|
instrumentationProvider: void 0,
|
|
13334
13354
|
maxResourceRetries: 3,
|
|
13335
13355
|
resourceRetryDelay: 500
|
|
13336
|
-
},
|
|
13356
|
+
}, ty = "-pie-editor--", af = class lf extends CustomEvent {
|
|
13337
13357
|
constructor(e, t) {
|
|
13338
13358
|
super(lf.TYPE, { bubbles: !0, detail: { src: e, done: t } }), this.src = e, this.done = t;
|
|
13339
13359
|
}
|
|
@@ -13421,7 +13441,7 @@ class mf {
|
|
|
13421
13441
|
);
|
|
13422
13442
|
}
|
|
13423
13443
|
}
|
|
13424
|
-
class
|
|
13444
|
+
class ny {
|
|
13425
13445
|
constructor(e, t, i, r, o) {
|
|
13426
13446
|
J(this, "listeners", []), this.element = e, this.onInsertImage = t, this.onDeleteImage = i, this.onInsertSound = r, this.onDeleteSound = o;
|
|
13427
13447
|
}
|
|
@@ -13490,7 +13510,7 @@ class ey {
|
|
|
13490
13510
|
}), this.listeners = [], rt.debug("[AssetEventManager] All event listeners detached");
|
|
13491
13511
|
}
|
|
13492
13512
|
}
|
|
13493
|
-
function
|
|
13513
|
+
function iy(n) {
|
|
13494
13514
|
return (e) => {
|
|
13495
13515
|
rt.debug("[createDefaultImageInsertHandler] Creating DataURL handler");
|
|
13496
13516
|
const t = new mf(n);
|
|
@@ -13503,7 +13523,7 @@ function ty(n) {
|
|
|
13503
13523
|
}
|
|
13504
13524
|
};
|
|
13505
13525
|
}
|
|
13506
|
-
function
|
|
13526
|
+
function ry(n) {
|
|
13507
13527
|
return (e) => {
|
|
13508
13528
|
rt.debug("[createDefaultSoundInsertHandler] Creating DataURL handler");
|
|
13509
13529
|
const t = new mf(n);
|
|
@@ -13515,7 +13535,7 @@ function ny(n) {
|
|
|
13515
13535
|
}, i.click();
|
|
13516
13536
|
};
|
|
13517
13537
|
}
|
|
13518
|
-
function
|
|
13538
|
+
function oy() {
|
|
13519
13539
|
return (n, e) => {
|
|
13520
13540
|
rt.debug(
|
|
13521
13541
|
"[createDefaultImageDeleteHandler] Delete requested for:",
|
|
@@ -13523,7 +13543,7 @@ function iy() {
|
|
|
13523
13543
|
), e();
|
|
13524
13544
|
};
|
|
13525
13545
|
}
|
|
13526
|
-
function
|
|
13546
|
+
function sy() {
|
|
13527
13547
|
return (n, e) => {
|
|
13528
13548
|
rt.debug(
|
|
13529
13549
|
"[createDefaultSoundDeleteHandler] Delete requested for:",
|
|
@@ -13537,18 +13557,18 @@ const gf = {
|
|
|
13537
13557
|
env: { mode: "gather", role: "student", partialScoring: !1 },
|
|
13538
13558
|
eventListeners: {}
|
|
13539
13559
|
};
|
|
13540
|
-
function
|
|
13560
|
+
function ay(n) {
|
|
13541
13561
|
return n && typeof n.pie == "object";
|
|
13542
13562
|
}
|
|
13543
13563
|
function Ec(n) {
|
|
13544
13564
|
return typeof n == "function" && "prototype" in n && n.prototype instanceof HTMLElement;
|
|
13545
13565
|
}
|
|
13546
|
-
function
|
|
13566
|
+
function ly(n) {
|
|
13547
13567
|
return n && typeof n.PIE_REGISTRY == "object";
|
|
13548
13568
|
}
|
|
13549
13569
|
const ra = () => {
|
|
13550
13570
|
let n;
|
|
13551
|
-
return
|
|
13571
|
+
return ly(window) ? n = window.PIE_REGISTRY : (n = {}, window.PIE_REGISTRY = n), n;
|
|
13552
13572
|
}, vf = (n) => {
|
|
13553
13573
|
if (!n)
|
|
13554
13574
|
throw new Error("Parameter is required: input");
|
|
@@ -13560,7 +13580,7 @@ const ra = () => {
|
|
|
13560
13580
|
path: e[2] || "",
|
|
13561
13581
|
version: e[3] || ""
|
|
13562
13582
|
};
|
|
13563
|
-
},
|
|
13583
|
+
}, cy = (n) => n.split("+").map((e) => vf(e).name).join("+"), yf = (n, e, t) => {
|
|
13564
13584
|
if (!n)
|
|
13565
13585
|
throw new Error("session data is required");
|
|
13566
13586
|
const i = n.find((o) => o.id === e);
|
|
@@ -13615,16 +13635,16 @@ function Tc(n, e, t) {
|
|
|
13615
13635
|
"[initializeConfiguresFromLoadedBundle] ✅ Initialization complete"
|
|
13616
13636
|
);
|
|
13617
13637
|
}
|
|
13618
|
-
const
|
|
13638
|
+
const dy = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, uy = "https://proxy.pie-api.com", fy = `${uy}/bundles/`;
|
|
13619
13639
|
function bf(n) {
|
|
13620
13640
|
try {
|
|
13621
|
-
const e =
|
|
13641
|
+
const e = dy?.[n];
|
|
13622
13642
|
if (typeof e == "string" && e.length > 0) return e;
|
|
13623
13643
|
} catch {
|
|
13624
13644
|
}
|
|
13625
13645
|
}
|
|
13626
13646
|
typeof window < "u" && window.PIE_BUILDER_ORIGIN_URL || bf("PUBLIC_BUILDER_ORIGIN_URL");
|
|
13627
|
-
const
|
|
13647
|
+
const hy = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || bf("PUBLIC_BUILDER_BUNDLE_URL") || fy, Rl = (...n) => n.reduce((e, t) => {
|
|
13628
13648
|
for (const i in t)
|
|
13629
13649
|
Object.hasOwn(t, i) && t[i] !== null && t[i] !== void 0 && (e[i] = t[i]);
|
|
13630
13650
|
return e;
|
|
@@ -13673,7 +13693,7 @@ const uy = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || bf("PUBLIC_BU
|
|
|
13673
13693
|
);
|
|
13674
13694
|
}
|
|
13675
13695
|
return i;
|
|
13676
|
-
},
|
|
13696
|
+
}, py = /* @__PURE__ */ new Set([
|
|
13677
13697
|
"annotation-xml",
|
|
13678
13698
|
"color-profile",
|
|
13679
13699
|
"font-face",
|
|
@@ -13682,7 +13702,7 @@ const uy = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || bf("PUBLIC_BU
|
|
|
13682
13702
|
"font-face-format",
|
|
13683
13703
|
"font-face-name",
|
|
13684
13704
|
"missing-glyph"
|
|
13685
|
-
]),
|
|
13705
|
+
]), my = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, wf = (n, e = "custom element tag") => {
|
|
13686
13706
|
if (!n || typeof n != "string")
|
|
13687
13707
|
throw new Error(`Invalid ${e}: expected a non-empty string`);
|
|
13688
13708
|
const t = n.trim();
|
|
@@ -13696,16 +13716,16 @@ const uy = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || bf("PUBLIC_BU
|
|
|
13696
13716
|
throw new Error(
|
|
13697
13717
|
`Invalid ${e} "${t}": custom element names must include a hyphen`
|
|
13698
13718
|
);
|
|
13699
|
-
if (
|
|
13719
|
+
if (py.has(t))
|
|
13700
13720
|
throw new Error(
|
|
13701
13721
|
`Invalid ${e} "${t}": this name is reserved by the HTML spec`
|
|
13702
13722
|
);
|
|
13703
|
-
if (!
|
|
13723
|
+
if (!my.test(t))
|
|
13704
13724
|
throw new Error(
|
|
13705
13725
|
`Invalid ${e} "${t}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`
|
|
13706
13726
|
);
|
|
13707
13727
|
return t;
|
|
13708
|
-
}, on = Zn("pie-updates", () => vi()),
|
|
13728
|
+
}, on = Zn("pie-updates", () => vi()), gy = async (n, e, t, i, r, o) => {
|
|
13709
13729
|
on.debug(`${o} Using controller, env:`, r), on.debug(`${o} Model before filter:`, {
|
|
13710
13730
|
id: e.id,
|
|
13711
13731
|
element: e.element,
|
|
@@ -13736,7 +13756,7 @@ const uy = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || bf("PUBLIC_BU
|
|
|
13736
13756
|
} catch (a) {
|
|
13737
13757
|
throw on.error(`${o} ❌ Controller error:`, a), a;
|
|
13738
13758
|
}
|
|
13739
|
-
},
|
|
13759
|
+
}, vy = (n) => {
|
|
13740
13760
|
const { config: e, session: t, env: i, eventListeners: r, invokeControllerForModel: o } = Rl(gf, n);
|
|
13741
13761
|
if (!i)
|
|
13742
13762
|
throw new Error("env is required");
|
|
@@ -13745,7 +13765,7 @@ const uy = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || bf("PUBLIC_BU
|
|
|
13745
13765
|
if (!e)
|
|
13746
13766
|
throw new Error("config is required");
|
|
13747
13767
|
return { config: e, session: t, env: i, eventListeners: r, invokeControllerForModel: o };
|
|
13748
|
-
},
|
|
13768
|
+
}, yy = (n, e, t, i) => {
|
|
13749
13769
|
const { config: r, session: o, env: s, eventListeners: a, invokeControllerForModel: l } = t, c = r.models?.find((h) => h.id === n.id);
|
|
13750
13770
|
if (!c)
|
|
13751
13771
|
throw on.error(`${i} Model not found for`, e), new Error(`model not found for ${e}`);
|
|
@@ -13767,7 +13787,7 @@ const uy = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || bf("PUBLIC_BU
|
|
|
13767
13787
|
role: s.role,
|
|
13768
13788
|
hasCorrectResponse: "correctResponse" in c
|
|
13769
13789
|
}
|
|
13770
|
-
),
|
|
13790
|
+
), gy(
|
|
13771
13791
|
n,
|
|
13772
13792
|
c,
|
|
13773
13793
|
d,
|
|
@@ -13785,7 +13805,7 @@ const uy = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || bf("PUBLIC_BU
|
|
|
13785
13805
|
`${i} Direct model assignment for ${e}#${n.id} (no controller invocation requested)`
|
|
13786
13806
|
), n.model = c;
|
|
13787
13807
|
}, If = (n, e) => {
|
|
13788
|
-
const t =
|
|
13808
|
+
const t = vy(e), { container: i } = Rl(
|
|
13789
13809
|
gf,
|
|
13790
13810
|
e
|
|
13791
13811
|
), r = (i || document).querySelectorAll(n);
|
|
@@ -13794,7 +13814,7 @@ const uy = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || bf("PUBLIC_BU
|
|
|
13794
13814
|
return;
|
|
13795
13815
|
}
|
|
13796
13816
|
r.forEach((o) => {
|
|
13797
|
-
|
|
13817
|
+
yy(o, n, t, "[updatePieElement]");
|
|
13798
13818
|
});
|
|
13799
13819
|
}, Hr = (n, e, t, i) => {
|
|
13800
13820
|
on.debug("[updatePieElements] Updating all elements with env:", t), Object.entries(n.elements).forEach(([r, o]) => {
|
|
@@ -13803,8 +13823,8 @@ const uy = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || bf("PUBLIC_BU
|
|
|
13803
13823
|
}, Me = Zn(
|
|
13804
13824
|
"pie-initialization",
|
|
13805
13825
|
() => vi()
|
|
13806
|
-
),
|
|
13807
|
-
buildServiceBase:
|
|
13826
|
+
), by = {
|
|
13827
|
+
buildServiceBase: hy,
|
|
13808
13828
|
bundleType: Pt.player,
|
|
13809
13829
|
// Default to player.js (no controllers, server-processed models)
|
|
13810
13830
|
env: { mode: "gather", role: "student" }
|
|
@@ -13848,7 +13868,7 @@ const uy = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || bf("PUBLIC_BU
|
|
|
13848
13868
|
n.addEventListener(d, h);
|
|
13849
13869
|
});
|
|
13850
13870
|
}, Cc = (n, e) => wf(
|
|
13851
|
-
n +
|
|
13871
|
+
n + ty,
|
|
13852
13872
|
`editor element tag for ${e}`
|
|
13853
13873
|
), _c = (n, e, t, i, r = !1) => {
|
|
13854
13874
|
If(n, {
|
|
@@ -13860,7 +13880,7 @@ const uy = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || bf("PUBLIC_BU
|
|
|
13860
13880
|
eventListeners: i.eventListeners[n]
|
|
13861
13881
|
}
|
|
13862
13882
|
});
|
|
13863
|
-
},
|
|
13883
|
+
}, wy = (n, e, t, i, r) => {
|
|
13864
13884
|
const o = [], s = (a, l) => !l || l === document ? !0 : a instanceof Node && l.contains(a);
|
|
13865
13885
|
return Me.debug(
|
|
13866
13886
|
"[registerPieElementsFromBundle] Available packages in bundle:",
|
|
@@ -13881,7 +13901,7 @@ const uy = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || bf("PUBLIC_BU
|
|
|
13881
13901
|
Me.debug(
|
|
13882
13902
|
`[registerPieElementsFromBundle] Processing element: ${c} -> ${l}`
|
|
13883
13903
|
);
|
|
13884
|
-
const d =
|
|
13904
|
+
const d = cy(l);
|
|
13885
13905
|
Me.debug(
|
|
13886
13906
|
`[registerPieElementsFromBundle] Package without version: "${d}"`
|
|
13887
13907
|
);
|
|
@@ -14031,11 +14051,11 @@ const uy = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || bf("PUBLIC_BU
|
|
|
14031
14051
|
);
|
|
14032
14052
|
}), o;
|
|
14033
14053
|
}, Pc = (n, e, t = {}) => {
|
|
14034
|
-
const i = ra(), r = Rl(
|
|
14035
|
-
if (
|
|
14054
|
+
const i = ra(), r = Rl(by, t);
|
|
14055
|
+
if (ay(window)) {
|
|
14036
14056
|
Me.debug("[initializePiesFromLoadedBundle] window.pie available");
|
|
14037
14057
|
const o = window.pie.default;
|
|
14038
|
-
|
|
14058
|
+
wy(
|
|
14039
14059
|
o,
|
|
14040
14060
|
n,
|
|
14041
14061
|
e,
|
|
@@ -14047,7 +14067,7 @@ const uy = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || bf("PUBLIC_BU
|
|
|
14047
14067
|
"[initializePiesFromLoadedBundle] window.pie not found; was the bundle inlined correctly?"
|
|
14048
14068
|
);
|
|
14049
14069
|
};
|
|
14050
|
-
class
|
|
14070
|
+
class Iy {
|
|
14051
14071
|
constructor() {
|
|
14052
14072
|
J(this, "initialized", !1), J(this, "config");
|
|
14053
14073
|
}
|
|
@@ -14244,7 +14264,7 @@ class by {
|
|
|
14244
14264
|
return this.config?.attributeTransformer ? this.config.attributeTransformer(e) : e;
|
|
14245
14265
|
}
|
|
14246
14266
|
}
|
|
14247
|
-
class
|
|
14267
|
+
class Sy extends Iy {
|
|
14248
14268
|
constructor() {
|
|
14249
14269
|
super(...arguments), J(this, "providerId", "newrelic"), J(this, "providerName", "New Relic");
|
|
14250
14270
|
}
|
|
@@ -14335,8 +14355,8 @@ const Ur = {
|
|
|
14335
14355
|
initialRetryDelay: 500,
|
|
14336
14356
|
maxRetryDelay: 5e3,
|
|
14337
14357
|
debug: !1
|
|
14338
|
-
},
|
|
14339
|
-
class
|
|
14358
|
+
}, Ey = 80;
|
|
14359
|
+
class Ty {
|
|
14340
14360
|
constructor(e = {}) {
|
|
14341
14361
|
J(this, "config"), J(this, "logger"), J(this, "observer", null), J(this, "mutationObserver", null), J(this, "errorHandler", null), J(this, "retryAttempts", /* @__PURE__ */ new Map()), J(this, "container", null), J(this, "isBrowser"), J(this, "containerResources", /* @__PURE__ */ new Set()), J(this, "provider"), this.config = {
|
|
14342
14362
|
trackPageActions: e.trackPageActions ?? Ur.trackPageActions,
|
|
@@ -14345,7 +14365,7 @@ class Sy {
|
|
|
14345
14365
|
initialRetryDelay: e.initialRetryDelay ?? Ur.initialRetryDelay,
|
|
14346
14366
|
maxRetryDelay: e.maxRetryDelay ?? Ur.maxRetryDelay,
|
|
14347
14367
|
debug: e.debug ?? Ur.debug
|
|
14348
|
-
}, this.provider = this.config.instrumentationProvider ?? new
|
|
14368
|
+
}, this.provider = this.config.instrumentationProvider ?? new Sy(), this.provider.initialize().catch((t) => {
|
|
14349
14369
|
this.config.debug && console.warn(
|
|
14350
14370
|
"[ResourceMonitor] Failed to initialize instrumentation provider:",
|
|
14351
14371
|
t
|
|
@@ -14365,7 +14385,7 @@ class Sy {
|
|
|
14365
14385
|
* Truncate URL for display in logs
|
|
14366
14386
|
*/
|
|
14367
14387
|
truncateUrl(e) {
|
|
14368
|
-
return e.length >
|
|
14388
|
+
return e.length > Ey ? "..." + e.slice(-77) : e;
|
|
14369
14389
|
}
|
|
14370
14390
|
/**
|
|
14371
14391
|
* Strip retry parameters from URL to get the original URL
|
|
@@ -14879,8 +14899,8 @@ class Sy {
|
|
|
14879
14899
|
};
|
|
14880
14900
|
}
|
|
14881
14901
|
}
|
|
14882
|
-
const
|
|
14883
|
-
function
|
|
14902
|
+
const Cy = 5e3;
|
|
14903
|
+
function _y(n, e, t, i = "pie-player") {
|
|
14884
14904
|
const r = Zn("use-resource-monitor", t);
|
|
14885
14905
|
let o = /* @__PURE__ */ Re(null), s = /* @__PURE__ */ Re(!1);
|
|
14886
14906
|
return rn(() => {
|
|
@@ -14896,11 +14916,11 @@ function Ty(n, e, t, i = "pie-player") {
|
|
|
14896
14916
|
hasContainer: !!a
|
|
14897
14917
|
}), K(
|
|
14898
14918
|
o,
|
|
14899
|
-
new
|
|
14919
|
+
new Ty({
|
|
14900
14920
|
trackPageActions: l?.trackPageActions ?? !1,
|
|
14901
14921
|
maxRetries: l?.maxResourceRetries ?? Di.maxResourceRetries,
|
|
14902
14922
|
initialRetryDelay: l?.resourceRetryDelay ?? Di.resourceRetryDelay,
|
|
14903
|
-
maxRetryDelay:
|
|
14923
|
+
maxRetryDelay: Cy,
|
|
14904
14924
|
debug: c
|
|
14905
14925
|
}),
|
|
14906
14926
|
!0
|
|
@@ -14931,7 +14951,7 @@ function Ty(n, e, t, i = "pie-player") {
|
|
|
14931
14951
|
}
|
|
14932
14952
|
};
|
|
14933
14953
|
}
|
|
14934
|
-
var
|
|
14954
|
+
var Py = /* @__PURE__ */ pn(`<div class="pie-player-error" style="
|
|
14935
14955
|
padding: 20px;
|
|
14936
14956
|
margin: 20px 0;
|
|
14937
14957
|
border: 2px solid #d32f2f;
|
|
@@ -14939,14 +14959,14 @@ var Cy = /* @__PURE__ */ pn(`<div class="pie-player-error" style="
|
|
|
14939
14959
|
background-color: #ffebee;
|
|
14940
14960
|
color: #c62828;
|
|
14941
14961
|
font-family: sans-serif;
|
|
14942
|
-
"><h3 style="margin: 0 0 10px 0">Authoring Backend Configuration Error</h3> <p style="margin: 0"> </p></div>`),
|
|
14943
|
-
const
|
|
14962
|
+
"><h3 style="margin: 0 0 10px 0">Authoring Backend Configuration Error</h3> <p style="margin: 0"> </p></div>`), ky = /* @__PURE__ */ pn("<div><!></div>"), Ry = /* @__PURE__ */ pn("<div><!></div>"), $y = /* @__PURE__ */ pn('<div class="pie-item-player svelte-1vdwqez"><!> <!></div>');
|
|
14963
|
+
const xy = {
|
|
14944
14964
|
hash: "svelte-1vdwqez",
|
|
14945
14965
|
code: `.pie-item-player.svelte-1vdwqez {display:block;width:100%;}.pie-passage-container.svelte-1vdwqez,
|
|
14946
14966
|
.pie-item-container.svelte-1vdwqez {display:block;width:100%;}`
|
|
14947
14967
|
};
|
|
14948
14968
|
function xl(n, e) {
|
|
14949
|
-
Qi(e, !0), So(n,
|
|
14969
|
+
Qi(e, !0), So(n, xy);
|
|
14950
14970
|
const t = Zn("pie-item-player", () => vi());
|
|
14951
14971
|
let i = M(e, "itemConfig", 7), r = M(e, "passageConfig", 7, null), o = M(e, "env", 23, () => ({ mode: "gather", role: "student" })), s = M(e, "session", 23, () => []), a = M(e, "addCorrectResponse", 7, !1), l = M(e, "customClassName", 7, ""), c = M(e, "passageContainerClass", 7, ""), d = M(e, "containerClass", 7, ""), h = M(e, "bundleType", 23, () => Pt.player), f = M(e, "loaderConfig", 7, Di), m = M(e, "mode", 7, "view"), p = M(e, "configuration", 23, () => ({})), b = M(e, "authoringBackend", 7, "demo"), v = M(e, "ttsService", 7, null), g = M(e, "toolCoordinator", 7, null), S = M(e, "highlightCoordinator", 7, null), R = M(e, "onInsertImage", 7), k = M(e, "onDeleteImage", 7), j = M(e, "onInsertSound", 7), Z = M(e, "onDeleteSound", 7), Q = M(e, "onLoadComplete", 7), te = M(e, "onPlayerError", 7), Y = M(e, "onSessionChanged", 7), W = M(e, "onModelUpdated", 7), pe = /* @__PURE__ */ Re(!1), B = /* @__PURE__ */ Re(null), ie = /* @__PURE__ */ Re(null), F = /* @__PURE__ */ Re(null);
|
|
14952
14972
|
function ne(_, ee) {
|
|
@@ -14997,14 +15017,14 @@ function xl(n, e) {
|
|
|
14997
15017
|
onInsertSound: j(),
|
|
14998
15018
|
onDeleteSound: Z()
|
|
14999
15019
|
} : (t.warn("[PieItemPlayer] Authoring backend mode is 'demo'. Using non-production media handlers."), {
|
|
15000
|
-
onInsertImage:
|
|
15020
|
+
onInsertImage: iy((_) => {
|
|
15001
15021
|
t.debug("[PieItemPlayer] Demo image insert completed:", _);
|
|
15002
15022
|
}),
|
|
15003
|
-
onDeleteImage:
|
|
15004
|
-
onInsertSound:
|
|
15023
|
+
onDeleteImage: oy(),
|
|
15024
|
+
onInsertSound: ry((_) => {
|
|
15005
15025
|
t.debug("[PieItemPlayer] Demo sound insert completed:", _);
|
|
15006
15026
|
}),
|
|
15007
|
-
onDeleteSound:
|
|
15027
|
+
onDeleteSound: sy()
|
|
15008
15028
|
});
|
|
15009
15029
|
}
|
|
15010
15030
|
async function Ce(_ = !1) {
|
|
@@ -15051,7 +15071,7 @@ function xl(n, e) {
|
|
|
15051
15071
|
c()
|
|
15052
15072
|
].filter(Boolean).join(" ")), re = /* @__PURE__ */ Xe(() => ["pie-item-container", l(), d()].filter(Boolean).join(" "));
|
|
15053
15073
|
let Ye = /* @__PURE__ */ Re(!1), at = /* @__PURE__ */ Re(!1), dt = /* @__PURE__ */ Re(null), O = /* @__PURE__ */ Re(!1), Le = /* @__PURE__ */ Re(""), Ie = /* @__PURE__ */ Re(null);
|
|
15054
|
-
|
|
15074
|
+
_y(() => I(Ie), () => f(), () => vi(), "pie-item-player"), rn(() => {
|
|
15055
15075
|
!i() || I(Ye) || (t.debug("[PieItemPlayer] Item config received, initializing after DOM renders..."), t.debug("[PieItemPlayer] Mode:", m()), Hu().then(async () => {
|
|
15056
15076
|
try {
|
|
15057
15077
|
if (t.debug("[PieItemPlayer] DOM ready, initializing PIE elements"), t.debug("[PieItemPlayer] Config:", {
|
|
@@ -15073,7 +15093,7 @@ function xl(n, e) {
|
|
|
15073
15093
|
const ee = { ...o(), mode: "author", configuration: p() };
|
|
15074
15094
|
Tc(i(), p(), { env: ee }), t.debug("[PieItemPlayer] Configure elements initialized"), r() && (Tc(r(), p(), { env: ee }), t.debug("[PieItemPlayer] Passage configure elements initialized")), I(Ie) && _ && (K(
|
|
15075
15095
|
B,
|
|
15076
|
-
new
|
|
15096
|
+
new ny(
|
|
15077
15097
|
I(Ie),
|
|
15078
15098
|
_.onInsertImage ? (se) => {
|
|
15079
15099
|
try {
|
|
@@ -15352,13 +15372,13 @@ function xl(n, e) {
|
|
|
15352
15372
|
set onModelUpdated(_) {
|
|
15353
15373
|
W(_), L();
|
|
15354
15374
|
}
|
|
15355
|
-
}, Ze =
|
|
15375
|
+
}, Ze = $y(), Et = vt(Ze);
|
|
15356
15376
|
{
|
|
15357
15377
|
var mn = (_) => {
|
|
15358
|
-
var ee =
|
|
15378
|
+
var ee = Py(), se = Vi(vt(ee), 2), H = vt(se, !0);
|
|
15359
15379
|
gt(se), gt(ee), cn(() => _l(H, I(ie))), Dt(_, ee);
|
|
15360
15380
|
}, ut = (_) => {
|
|
15361
|
-
var ee =
|
|
15381
|
+
var ee = ky(), se = vt(ee);
|
|
15362
15382
|
ac(se, () => I(le)), gt(ee), cn(() => Nr(ee, 1, lc(I(st)), "svelte-1vdwqez")), Dt(_, ee);
|
|
15363
15383
|
};
|
|
15364
15384
|
$s(Et, (_) => {
|
|
@@ -15368,7 +15388,7 @@ function xl(n, e) {
|
|
|
15368
15388
|
var Tt = Vi(Et, 2);
|
|
15369
15389
|
{
|
|
15370
15390
|
var Ft = (_) => {
|
|
15371
|
-
var ee =
|
|
15391
|
+
var ee = Ry(), se = vt(ee);
|
|
15372
15392
|
ac(se, () => I(Ue)), gt(ee), cn(() => Nr(ee, 1, lc(I(re)), "svelte-1vdwqez")), Dt(_, ee);
|
|
15373
15393
|
};
|
|
15374
15394
|
$s(Tt, (_) => {
|
|
@@ -15409,13 +15429,13 @@ Br(
|
|
|
15409
15429
|
[],
|
|
15410
15430
|
{ mode: "open" }
|
|
15411
15431
|
);
|
|
15412
|
-
var
|
|
15413
|
-
const
|
|
15432
|
+
var Ay = /* @__PURE__ */ pn('<div class="pie-preview-toggle svelte-pc08kt"><div class="toggle-tabs svelte-pc08kt" role="tablist"><button type="button" role="tab" aria-controls="author-panel">Author</button> <button type="button" role="tab" aria-controls="preview-panel">Preview</button></div></div>');
|
|
15433
|
+
const Ly = {
|
|
15414
15434
|
hash: "svelte-pc08kt",
|
|
15415
15435
|
code: ".pie-preview-toggle.svelte-pc08kt {display:block;width:100%;margin-bottom:1rem;}.toggle-tabs.svelte-pc08kt {display:flex;border-bottom:2px solid #e0e0e0;gap:0.5rem;}.toggle-tab.svelte-pc08kt {padding:0.75rem 1.5rem;background:transparent;border:none;border-bottom:3px solid transparent;cursor:pointer;font-size:1rem;font-weight:500;color:#666;transition:all 0.2s ease;margin-bottom:-2px;}.toggle-tab.svelte-pc08kt:hover {color:#333;background:rgba(0, 0, 0, 0.05);}.toggle-tab.svelte-pc08kt:focus {outline:2px solid #1976d2;outline-offset:2px;}.toggle-tab.active.svelte-pc08kt {color:#1976d2;border-bottom-color:#1976d2;}.toggle-tab.svelte-pc08kt:active {transform:translateY(1px);}"
|
|
15416
15436
|
};
|
|
15417
15437
|
function Sf(n, e) {
|
|
15418
|
-
Qi(e, !0), So(n,
|
|
15438
|
+
Qi(e, !0), So(n, Ly);
|
|
15419
15439
|
const t = Zn("pie-preview-toggle", () => vi());
|
|
15420
15440
|
let i = M(e, "mode", 7, "author"), r = M(e, "onModeChange", 7);
|
|
15421
15441
|
function o(m) {
|
|
@@ -15436,7 +15456,7 @@ function Sf(n, e) {
|
|
|
15436
15456
|
set onModeChange(m) {
|
|
15437
15457
|
r(m), L();
|
|
15438
15458
|
}
|
|
15439
|
-
}, a =
|
|
15459
|
+
}, a = Ay(), l = vt(a), c = vt(l);
|
|
15440
15460
|
let d;
|
|
15441
15461
|
var h = Vi(c, 2);
|
|
15442
15462
|
let f;
|
|
@@ -15446,13 +15466,13 @@ function Sf(n, e) {
|
|
|
15446
15466
|
}
|
|
15447
15467
|
Cl(["click"]);
|
|
15448
15468
|
Br(Sf, { mode: {}, onModeChange: {} }, [], [], { mode: "open" });
|
|
15449
|
-
var
|
|
15450
|
-
const
|
|
15469
|
+
var My = /* @__PURE__ */ pn('<div class="pie-preview-layout svelte-eri5hf"><!> <div class="preview-content svelte-eri5hf" role="tabpanel"><!></div></div>');
|
|
15470
|
+
const Oy = {
|
|
15451
15471
|
hash: "svelte-eri5hf",
|
|
15452
15472
|
code: ".pie-preview-layout.svelte-eri5hf {display:block;width:100%;}.preview-content.svelte-eri5hf {display:block;width:100%;padding:1rem 0;}"
|
|
15453
15473
|
};
|
|
15454
|
-
function
|
|
15455
|
-
Qi(e, !0), So(n,
|
|
15474
|
+
function Ny(n, e) {
|
|
15475
|
+
Qi(e, !0), So(n, Oy);
|
|
15456
15476
|
const t = Zn("pie-preview-layout", () => vi());
|
|
15457
15477
|
let i = M(e, "mode", 15, "author"), r = M(e, "itemConfig", 7), o = M(e, "passageConfig", 7, null), s = M(e, "configuration", 23, () => ({})), a = M(e, "env", 23, () => ({ mode: "gather", role: "student" })), l = M(e, "session", 23, () => []), c = M(e, "addCorrectResponse", 7, !1), d = M(e, "customClassName", 7, ""), h = M(e, "passageContainerClass", 7, ""), f = M(e, "containerClass", 7, ""), m = M(e, "bundleType", 23, () => Pt.player), p = M(e, "bundleTypeAuthor", 23, () => Pt.editor), b = M(e, "bundleTypePreview", 23, () => Pt.player), v = M(e, "loaderConfig", 7, Di), g = M(e, "onInsertImage", 7), S = M(e, "onDeleteImage", 7), R = M(e, "onInsertSound", 7), k = M(e, "onDeleteSound", 7), j = M(e, "onLoadComplete", 7), Z = M(e, "onPlayerError", 7), Q = M(e, "onSessionChanged", 7), te = M(e, "onModelUpdated", 7), Y = /* @__PURE__ */ Re(fr(i()));
|
|
15458
15478
|
function W(D) {
|
|
@@ -15595,7 +15615,7 @@ function My(n, e) {
|
|
|
15595
15615
|
set onModelUpdated(D) {
|
|
15596
15616
|
te(D), L();
|
|
15597
15617
|
}
|
|
15598
|
-
}, ne =
|
|
15618
|
+
}, ne = My(), Ue = vt(ne);
|
|
15599
15619
|
Sf(Ue, {
|
|
15600
15620
|
get mode() {
|
|
15601
15621
|
return I(Y);
|
|
@@ -15603,7 +15623,7 @@ function My(n, e) {
|
|
|
15603
15623
|
onModeChange: W
|
|
15604
15624
|
});
|
|
15605
15625
|
var le = Vi(Ue, 2), be = vt(le);
|
|
15606
|
-
return
|
|
15626
|
+
return Sv(be, () => I(ie), (D) => {
|
|
15607
15627
|
xl(D, {
|
|
15608
15628
|
get itemConfig() {
|
|
15609
15629
|
return r();
|
|
@@ -15671,7 +15691,7 @@ function My(n, e) {
|
|
|
15671
15691
|
}), Dt(n, ne), er(F);
|
|
15672
15692
|
}
|
|
15673
15693
|
Br(
|
|
15674
|
-
|
|
15694
|
+
Ny,
|
|
15675
15695
|
{
|
|
15676
15696
|
mode: {},
|
|
15677
15697
|
itemConfig: {},
|
|
@@ -15700,9 +15720,9 @@ Br(
|
|
|
15700
15720
|
[],
|
|
15701
15721
|
{ mode: "open" }
|
|
15702
15722
|
);
|
|
15703
|
-
|
|
15704
|
-
var
|
|
15705
|
-
const
|
|
15723
|
+
Dg();
|
|
15724
|
+
var Dy = /* @__PURE__ */ pn("<div></div>");
|
|
15725
|
+
const jy = {
|
|
15706
15726
|
hash: "svelte-ycccss",
|
|
15707
15727
|
code: `.pie-loading.svelte-ycccss {position:absolute;height:100%;width:100%;background-color:#fff;bottom:0;left:0;right:0;top:0;z-index:9999;opacity:0.4;}.pie-loading.fixed.svelte-ycccss {position:fixed;}.pie-loading.svelte-ycccss:before {content:"";background-color:rgba(0, 0, 0, 0);border:5px solid rgba(63, 81, 181, 0.9);opacity:0.9;border-right:5px solid rgba(0, 0, 0, 0);border-left:5px solid rgba(0, 0, 0, 0);border-radius:50px;box-shadow:0 0 35px rgba(63, 81, 181, 0.9);width:50px;height:50px;
|
|
15708
15728
|
animation: svelte-ycccss-spinPulse 1s infinite linear;margin:-25px 0 0 -25px;position:absolute;top:50%;left:50%;}.pie-loading.svelte-ycccss:after {content:"";background-color:rgba(0, 0, 0, 0);border:5px solid rgba(63, 81, 181, 0.9);opacity:0.9;border-left:5px solid rgba(0, 0, 0, 0);border-right:5px solid rgba(0, 0, 0, 0);border-radius:50px;box-shadow:0 0 15px rgba(63, 81, 181, 0.9);width:30px;height:30px;
|
|
@@ -15734,7 +15754,7 @@ const Ny = {
|
|
|
15734
15754
|
}`
|
|
15735
15755
|
};
|
|
15736
15756
|
function Ef(n, e) {
|
|
15737
|
-
Qi(e, !1), So(n,
|
|
15757
|
+
Qi(e, !1), So(n, jy);
|
|
15738
15758
|
let t = M(e, "fixed", 12, !1);
|
|
15739
15759
|
var i = {
|
|
15740
15760
|
get fixed() {
|
|
@@ -15743,17 +15763,17 @@ function Ef(n, e) {
|
|
|
15743
15763
|
set fixed(o) {
|
|
15744
15764
|
t(o), L();
|
|
15745
15765
|
}
|
|
15746
|
-
}, r =
|
|
15766
|
+
}, r = Dy();
|
|
15747
15767
|
return cn(() => Nr(r, 1, `pie-loading ${t() ? "fixed" : ""}`, "svelte-ycccss")), Dt(n, r), er(i);
|
|
15748
15768
|
}
|
|
15749
15769
|
Br(Ef, { fixed: {} }, [], [], { mode: "open" });
|
|
15750
|
-
var
|
|
15751
|
-
const
|
|
15770
|
+
var zy = /* @__PURE__ */ pn('<button type="button" class="tool-settings-button btn btn-ghost btn-sm btn-circle svelte-fwrfn4"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 svelte-fwrfn4"><path stroke-linecap="round" stroke-linejoin="round" d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z"></path><path stroke-linecap="round" stroke-linejoin="round" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path></svg></button>');
|
|
15771
|
+
const By = {
|
|
15752
15772
|
hash: "svelte-fwrfn4",
|
|
15753
15773
|
code: ".tool-settings-button.svelte-fwrfn4 {display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0.25rem;border:none;border-radius:9999px;background:transparent;color:inherit;cursor:pointer;}.tool-settings-button.svelte-fwrfn4:hover {background:rgba(255, 255, 255, 0.1);}.tool-settings-button.svelte-fwrfn4:focus-visible {outline:2px solid currentColor;outline-offset:2px;}.tool-settings-button.svelte-fwrfn4 svg:where(.svelte-fwrfn4) {width:20px;height:20px;display:block;}"
|
|
15754
15774
|
};
|
|
15755
|
-
function
|
|
15756
|
-
Qi(e, !0), So(n,
|
|
15775
|
+
function Fy(n, e) {
|
|
15776
|
+
Qi(e, !0), So(n, By);
|
|
15757
15777
|
let t = M(e, "buttonEl", 7, null), i = M(e, "onClick", 7), r = M(e, "ariaLabel", 7, "Settings"), o = M(e, "active", 7, !1);
|
|
15758
15778
|
var s = {
|
|
15759
15779
|
get buttonEl() {
|
|
@@ -15780,7 +15800,7 @@ function zy(n, e) {
|
|
|
15780
15800
|
set active(l = !1) {
|
|
15781
15801
|
o(l), L();
|
|
15782
15802
|
}
|
|
15783
|
-
}, a =
|
|
15803
|
+
}, a = zy();
|
|
15784
15804
|
return ia(a, (l) => t(l), () => t()), cn(() => {
|
|
15785
15805
|
Dr(a, "aria-label", r()), Dr(a, "aria-pressed", o());
|
|
15786
15806
|
}), Jr("click", a, function(...l) {
|
|
@@ -15788,9 +15808,9 @@ function zy(n, e) {
|
|
|
15788
15808
|
}), Dt(n, a), er(s);
|
|
15789
15809
|
}
|
|
15790
15810
|
Cl(["click"]);
|
|
15791
|
-
Br(
|
|
15792
|
-
var
|
|
15793
|
-
function
|
|
15811
|
+
Br(Fy, { buttonEl: {}, onClick: {}, ariaLabel: {}, active: {} }, [], [], { mode: "open" });
|
|
15812
|
+
var Vy = /* @__PURE__ */ pn('<div class="fixed inset-0" aria-hidden="true" style="z-index: 4000;"></div> <div class="tool-settings-panel fixed w-80 rounded-box bg-base-100 shadow p-3 text-base-content" role="dialog" tabindex="-1"><div class="flex items-center justify-between gap-2 mb-2"><h2 class="font-semibold text-sm"> </h2> <button type="button" class="btn btn-ghost btn-xs" aria-label="Close settings">Close</button></div> <div class="text-sm"><!></div></div>', 1);
|
|
15813
|
+
function Hy(n, e) {
|
|
15794
15814
|
Qi(e, !0);
|
|
15795
15815
|
let t = M(e, "open", 7), i = M(e, "title", 7, "Settings"), r = M(e, "onClose", 7), o = M(e, "anchorEl", 7, null), s = M(e, "children", 7), a = /* @__PURE__ */ Re(null), l = /* @__PURE__ */ Re(null);
|
|
15796
15816
|
function c(p) {
|
|
@@ -15850,16 +15870,16 @@ function Fy(n, e) {
|
|
|
15850
15870
|
set children(p) {
|
|
15851
15871
|
s(p), L();
|
|
15852
15872
|
}
|
|
15853
|
-
}, h =
|
|
15873
|
+
}, h = pv(), f = nc(h);
|
|
15854
15874
|
{
|
|
15855
15875
|
var m = (p) => {
|
|
15856
|
-
var b =
|
|
15876
|
+
var b = Vy(), v = nc(b), g = Vi(v, 2), S = vt(g), R = vt(S), k = vt(R, !0);
|
|
15857
15877
|
gt(R);
|
|
15858
15878
|
var j = Vi(R, 2);
|
|
15859
15879
|
gt(S);
|
|
15860
15880
|
var Z = Vi(S, 2), Q = vt(Z);
|
|
15861
|
-
|
|
15862
|
-
Dr(g, "aria-label", i()),
|
|
15881
|
+
bv(Q, () => s() ?? eu), gt(Z), gt(g), ia(g, (te) => K(a, te), () => I(a)), cn(() => {
|
|
15882
|
+
Dr(g, "aria-label", i()), _v(g, `z-index: 4100; ${I(l) ? `top: ${I(l).top}px; ${I(l).left !== void 0 ? `left: ${I(l).left}px;` : `right: ${I(l).right}px;`}` : "top: 4rem; right: 1rem;"}`), _l(k, i());
|
|
15863
15883
|
}), Jr("mousedown", v, function(...te) {
|
|
15864
15884
|
r()?.apply(this, te);
|
|
15865
15885
|
}), Jr("keydown", g, c), Jr("click", j, function(...te) {
|
|
@@ -15873,8 +15893,8 @@ function Fy(n, e) {
|
|
|
15873
15893
|
return Dt(n, h), er(d);
|
|
15874
15894
|
}
|
|
15875
15895
|
Cl(["mousedown", "keydown", "click"]);
|
|
15876
|
-
Br(
|
|
15877
|
-
var
|
|
15896
|
+
Br(Hy, { open: {}, title: {}, onClose: {}, anchorEl: {}, children: {} }, [], [], { mode: "open" });
|
|
15897
|
+
var Uy = /* @__PURE__ */ pn(`<div class="pie-player-error" style="
|
|
15878
15898
|
padding: 20px;
|
|
15879
15899
|
margin: 20px;
|
|
15880
15900
|
border: 2px solid #d32f2f;
|
|
@@ -15882,15 +15902,15 @@ var Vy = /* @__PURE__ */ pn(`<div class="pie-player-error" style="
|
|
|
15882
15902
|
background-color: #ffebee;
|
|
15883
15903
|
color: #c62828;
|
|
15884
15904
|
font-family: sans-serif;
|
|
15885
|
-
"><h3 style="margin: 0 0 10px 0">Configuration Error</h3> <p style="margin: 0"> </p></div>`),
|
|
15886
|
-
const
|
|
15905
|
+
"><h3 style="margin: 0 0 10px 0">Configuration Error</h3> <p style="margin: 0"> </p></div>`), qy = /* @__PURE__ */ pn("<div><!></div>"), Ky = /* @__PURE__ */ pn("<div><!></div>");
|
|
15906
|
+
const Wy = {
|
|
15887
15907
|
hash: "svelte-z49opb",
|
|
15888
15908
|
code: ":host {display:block;}.pie-item-player {width:100%;}.pie-player-item-container {width:100%;}"
|
|
15889
15909
|
};
|
|
15890
15910
|
function Tf(n, e) {
|
|
15891
|
-
Qi(e, !0), So(n,
|
|
15911
|
+
Qi(e, !0), So(n, Wy);
|
|
15892
15912
|
let t = M(e, "config", 7, null), i = M(e, "session", 23, () => ({ id: "", data: [] })), r = M(e, "env", 23, () => ({ mode: "gather", role: "student" })), o = M(e, "addCorrectResponse", 7, !1), s = M(e, "showBottomBorder", 7, !1), a = M(e, "hosted", 7, !1), l = M(e, "debug", 7, ""), c = M(e, "customClassName", 7, ""), d = M(e, "containerClass", 7, ""), h = M(e, "externalStyleUrls", 7, ""), f = M(e, "loaderConfig", 7, fc), m = M(e, "strategy", 7, "iife"), p = M(e, "skipElementLoading", 7, !1), b = M(e, "mode", 7, "view"), v = M(e, "configuration", 23, () => ({})), g = M(e, "authoringBackend", 7, "demo"), S = M(e, "loaderOptions", 23, () => ({})), R = M(e, "ttsService", 7, null), k = M(e, "toolCoordinator", 7, null), j = M(e, "highlightCoordinator", 7, null), Z = M(e, "onInsertImage", 7, null), Q = M(e, "onDeleteImage", 7, null), te = M(e, "onInsertSound", 7, null), Y = M(e, "onDeleteSound", 7, null), W = M(e, "dispatchOnParent", 7, !1);
|
|
15893
|
-
const pe = typeof window < "u" && typeof document < "u", B = /* @__PURE__ */ Xe(() =>
|
|
15913
|
+
const pe = typeof window < "u" && typeof document < "u", B = /* @__PURE__ */ Xe(() => Dv(m(), "iife")), ie = /* @__PURE__ */ Xe(() => b() === "author" ? "author" : "view"), F = /* @__PURE__ */ Xe(() => S()?.bundleHost || sf), ne = /* @__PURE__ */ Xe(() => S()?.esmCdnUrl || "https://esm.sh"), Ue = /* @__PURE__ */ Xe(() => {
|
|
15894
15914
|
if (l() !== void 0 && l() !== null) {
|
|
15895
15915
|
const w = String(l()), z = !(w.toLowerCase() === "false" || w === "0" || w === "");
|
|
15896
15916
|
if (pe)
|
|
@@ -15900,7 +15920,7 @@ function Tf(n, e) {
|
|
|
15900
15920
|
}
|
|
15901
15921
|
return z;
|
|
15902
15922
|
}
|
|
15903
|
-
return
|
|
15923
|
+
return zv();
|
|
15904
15924
|
}), le = kl("pie-item-player", () => I(Ue));
|
|
15905
15925
|
let be = /* @__PURE__ */ Re(!0), D = /* @__PURE__ */ Re(null), we = /* @__PURE__ */ Re(null), ce = /* @__PURE__ */ Re(null), Ce = /* @__PURE__ */ Re(null), st = /* @__PURE__ */ Re("pie-item-player"), re = /* @__PURE__ */ Re(""), Ye = /* @__PURE__ */ Re(0);
|
|
15906
15926
|
function at(w) {
|
|
@@ -15913,7 +15933,7 @@ function Tf(n, e) {
|
|
|
15913
15933
|
return w;
|
|
15914
15934
|
}
|
|
15915
15935
|
function dt(w, z) {
|
|
15916
|
-
return (!I(Ce) || I(st) !== w) && (K(Ce, new
|
|
15936
|
+
return (!I(Ce) || I(st) !== w) && (K(Ce, new Qv({ itemId: w, initialSession: z }), !0), K(st, w, !0), K(re, JSON.stringify(I(Ce).getSession()), !0)), I(Ce);
|
|
15917
15937
|
}
|
|
15918
15938
|
function O(w, z, ue) {
|
|
15919
15939
|
const qe = w.setSession(z, {
|
|
@@ -15922,7 +15942,7 @@ function Tf(n, e) {
|
|
|
15922
15942
|
}), xe = JSON.stringify(qe);
|
|
15923
15943
|
return xe === I(re) ? !1 : (K(re, xe, !0), K(Ye, I(Ye) + 1), !0);
|
|
15924
15944
|
}
|
|
15925
|
-
const Le = /* @__PURE__ */ Xe(() => (I(Ye), I(Ce) ? I(Ce).getSession().data :
|
|
15945
|
+
const Le = /* @__PURE__ */ Xe(() => (I(Ye), I(Ce) ? I(Ce).getSession().data : ey(at(i())).data));
|
|
15926
15946
|
function Ie(w) {
|
|
15927
15947
|
let z = 5381;
|
|
15928
15948
|
for (let ue = 0; ue < w.length; ue++) z = (z << 5) + z ^ w.charCodeAt(ue);
|
|
@@ -15945,12 +15965,12 @@ function Tf(n, e) {
|
|
|
15945
15965
|
if (z = "validate-config", !ue.elements || !ue.models || !ue.markup)
|
|
15946
15966
|
throw new Error("Invalid config: must contain elements, models, and markup");
|
|
15947
15967
|
z = "makeUniqueTags";
|
|
15948
|
-
const qe =
|
|
15968
|
+
const qe = Gv({ config: ue }).config;
|
|
15949
15969
|
if (p())
|
|
15950
15970
|
le.debug("[pie-item-player] Skipping element loading; host is responsible for preload.");
|
|
15951
15971
|
else if (I(B) === "iife" || I(B) === "preloaded") {
|
|
15952
15972
|
z = "iife-load";
|
|
15953
|
-
const xe = new
|
|
15973
|
+
const xe = new Wv({
|
|
15954
15974
|
bundleHost: I(F),
|
|
15955
15975
|
debugEnabled: () => I(Ue)
|
|
15956
15976
|
}), Be = I(ie) === "author" ? In.editor : a() ? In.player : In.clientPlayer, it = Be !== In.editor && !a();
|
|
@@ -15959,10 +15979,10 @@ function Tf(n, e) {
|
|
|
15959
15979
|
await xe.elementsHaveLoaded(V);
|
|
15960
15980
|
} else {
|
|
15961
15981
|
z = "esm-load";
|
|
15962
|
-
const xe = new
|
|
15982
|
+
const xe = new qv({
|
|
15963
15983
|
cdnBaseUrl: I(ne),
|
|
15964
15984
|
debugEnabled: () => I(Ue)
|
|
15965
|
-
}), Be = S()?.view ||
|
|
15985
|
+
}), Be = S()?.view || jv(r()?.mode, "delivery");
|
|
15966
15986
|
await xe.load(qe, document, {
|
|
15967
15987
|
view: Be,
|
|
15968
15988
|
loadControllers: S()?.loadControllers ?? !0
|
|
@@ -16187,15 +16207,15 @@ function Tf(n, e) {
|
|
|
16187
16207
|
set dispatchOnParent(w = !1) {
|
|
16188
16208
|
W(w), L();
|
|
16189
16209
|
}
|
|
16190
|
-
}, de =
|
|
16210
|
+
}, de = Ky(), Qe = vt(de);
|
|
16191
16211
|
{
|
|
16192
16212
|
var Si = (w) => {
|
|
16193
|
-
var z =
|
|
16213
|
+
var z = Uy(), ue = Vi(vt(z), 2), qe = vt(ue, !0);
|
|
16194
16214
|
gt(ue), gt(z), cn(() => _l(qe, I(D))), Dt(w, z);
|
|
16195
16215
|
}, Yt = (w) => {
|
|
16196
16216
|
Ef(w, {});
|
|
16197
16217
|
}, A = (w) => {
|
|
16198
|
-
var z =
|
|
16218
|
+
var z = qy(), ue = vt(z);
|
|
16199
16219
|
{
|
|
16200
16220
|
let qe = /* @__PURE__ */ Xe(() => typeof r() == "string" ? JSON.parse(r()) : r()), xe = /* @__PURE__ */ Xe(() => I(ie) === "author" ? In.editor : In.clientPlayer), Be = /* @__PURE__ */ Xe(() => typeof v() == "string" ? JSON.parse(v()) : v()), it = /* @__PURE__ */ Xe(() => Z() ?? void 0), C = /* @__PURE__ */ Xe(() => Q() ?? void 0), V = /* @__PURE__ */ Xe(() => te() ?? void 0), De = /* @__PURE__ */ Xe(() => Y() ?? void 0);
|
|
16201
16221
|
xl(ue, {
|
|
@@ -16296,7 +16316,7 @@ customElements.define("pie-item-player", Br(
|
|
|
16296
16316
|
[],
|
|
16297
16317
|
[]
|
|
16298
16318
|
));
|
|
16299
|
-
function
|
|
16319
|
+
function Gy(n = "pie-item-player") {
|
|
16300
16320
|
const e = As(
|
|
16301
16321
|
n,
|
|
16302
16322
|
"pie-item-player tagName"
|
|
@@ -16306,7 +16326,7 @@ function Ky(n = "pie-item-player") {
|
|
|
16306
16326
|
Tf
|
|
16307
16327
|
);
|
|
16308
16328
|
}
|
|
16309
|
-
|
|
16329
|
+
Gy();
|
|
16310
16330
|
const kc = {
|
|
16311
16331
|
iife: {
|
|
16312
16332
|
tagName: "pie-item-player",
|
|
@@ -16340,7 +16360,7 @@ const kc = {
|
|
|
16340
16360
|
}
|
|
16341
16361
|
}
|
|
16342
16362
|
}, Ya = "section-demo-direct", Ls = "iife", Ja = !0, Xa = "inherit", Cf = { mode: "gather", role: "student" };
|
|
16343
|
-
function
|
|
16363
|
+
function Yy(n) {
|
|
16344
16364
|
const e = n.runtime?.tools || n.tools || {}, t = cr(e), i = ca(n.enabledTools), r = ca(n.itemToolbarTools), o = ca(n.passageToolbarTools);
|
|
16345
16365
|
return cr({
|
|
16346
16366
|
...t,
|
|
@@ -16352,7 +16372,7 @@ function Wy(n) {
|
|
|
16352
16372
|
}
|
|
16353
16373
|
});
|
|
16354
16374
|
}
|
|
16355
|
-
function
|
|
16375
|
+
function Jy(n) {
|
|
16356
16376
|
return {
|
|
16357
16377
|
assessmentId: n.assessmentId,
|
|
16358
16378
|
playerType: n.playerType,
|
|
@@ -16367,10 +16387,10 @@ function Gy(n) {
|
|
|
16367
16387
|
tools: n.effectiveToolsConfig
|
|
16368
16388
|
};
|
|
16369
16389
|
}
|
|
16370
|
-
function
|
|
16390
|
+
function Xy(n) {
|
|
16371
16391
|
const e = String(
|
|
16372
16392
|
n.effectiveRuntime?.playerType || n.playerType || Ls
|
|
16373
|
-
), t = kc[e] || kc.iife, i = t?.tagName || "pie-item-player", r = t?.attributes || {}, o = t?.props || {}, s = n.effectiveRuntime?.env || n.env || {}, a =
|
|
16393
|
+
), t = kc[e] || kc.iife, i = t?.tagName || "pie-item-player", r = t?.attributes || {}, o = t?.props || {}, s = n.effectiveRuntime?.env || n.env || {}, a = qm(
|
|
16374
16394
|
r?.strategy || e,
|
|
16375
16395
|
"iife"
|
|
16376
16396
|
);
|
|
@@ -16388,13 +16408,13 @@ function _f(n) {
|
|
|
16388
16408
|
return n.map((e) => e?.entity);
|
|
16389
16409
|
}
|
|
16390
16410
|
function Pf(n) {
|
|
16391
|
-
const e = n.assessmentId ?? Ya, t = n.playerType ?? Ls, i = n.player ?? null, r = n.lazyInit ?? Ja, o = n.accessibility ?? null, s = n.coordinator ?? null, a = n.createSectionController ?? null, l = n.isolation ?? Xa, c = n.env ?? null, d = n.tools ?? null, h =
|
|
16411
|
+
const e = n.assessmentId ?? Ya, t = n.playerType ?? Ls, i = n.player ?? null, r = n.lazyInit ?? Ja, o = n.accessibility ?? null, s = n.coordinator ?? null, a = n.createSectionController ?? null, l = n.isolation ?? Xa, c = n.env ?? null, d = n.tools ?? null, h = Yy({
|
|
16392
16412
|
runtime: n.runtime,
|
|
16393
16413
|
tools: d,
|
|
16394
16414
|
enabledTools: n.enabledTools,
|
|
16395
16415
|
itemToolbarTools: n.itemToolbarTools,
|
|
16396
16416
|
passageToolbarTools: n.passageToolbarTools
|
|
16397
|
-
}), f =
|
|
16417
|
+
}), f = Jy({
|
|
16398
16418
|
assessmentId: e,
|
|
16399
16419
|
playerType: t,
|
|
16400
16420
|
player: i,
|
|
@@ -16406,7 +16426,7 @@ function Pf(n) {
|
|
|
16406
16426
|
env: c,
|
|
16407
16427
|
runtime: n.runtime,
|
|
16408
16428
|
effectiveToolsConfig: h
|
|
16409
|
-
}), m =
|
|
16429
|
+
}), m = Xy({
|
|
16410
16430
|
effectiveRuntime: f,
|
|
16411
16431
|
playerType: t,
|
|
16412
16432
|
env: c
|
|
@@ -16417,13 +16437,13 @@ function Pf(n) {
|
|
|
16417
16437
|
playerRuntime: m
|
|
16418
16438
|
};
|
|
16419
16439
|
}
|
|
16420
|
-
var
|
|
16421
|
-
const
|
|
16440
|
+
var Zy = /* @__PURE__ */ He("<pie-tool-annotation-toolbar></pie-tool-annotation-toolbar>", 2), Qy = /* @__PURE__ */ He("<pie-assessment-toolkit><!> <!></pie-assessment-toolkit>", 2);
|
|
16441
|
+
const eb = {
|
|
16422
16442
|
hash: "svelte-19m8zbn",
|
|
16423
16443
|
code: ":host {display:block;width:100%;height:100%;min-height:0;}pie-assessment-toolkit.svelte-19m8zbn {display:flex;flex-direction:column;flex:1;width:100%;height:100%;min-height:0;overflow:hidden;}"
|
|
16424
16444
|
};
|
|
16425
|
-
function
|
|
16426
|
-
bi(e, !0), Ji(n,
|
|
16445
|
+
function tb(n, e) {
|
|
16446
|
+
bi(e, !0), Ji(n, eb);
|
|
16427
16447
|
let t = x(e, "assessmentId", 7, Ya), i = x(e, "runtime", 7, null), r = x(e, "section", 7, null), o = x(e, "sectionId", 7, ""), s = x(e, "attemptId", 7, ""), a = x(e, "playerType", 7, Ls), l = x(e, "player", 7, null), c = x(e, "lazyInit", 7, Ja), d = x(e, "tools", 7, null), h = x(e, "accessibility", 7, null), f = x(e, "coordinator", 7, null), m = x(e, "createSectionController", 7, null), p = x(e, "isolation", 7, Xa), b = x(e, "env", 7, null), v = /* @__PURE__ */ Pe(null), g = /* @__PURE__ */ Pe(null), S = /* @__PURE__ */ Pe(-1);
|
|
16428
16448
|
const R = np(), k = /* @__PURE__ */ N(() => i()?.assessmentId ?? t()), j = /* @__PURE__ */ N(() => i()?.playerType ?? a()), Z = /* @__PURE__ */ N(() => i()?.player ?? l()), Q = /* @__PURE__ */ N(() => i()?.lazyInit ?? c()), te = /* @__PURE__ */ N(() => i()?.tools ?? d()), Y = /* @__PURE__ */ N(() => i()?.accessibility ?? h()), W = /* @__PURE__ */ N(() => i()?.coordinator ?? f()), pe = /* @__PURE__ */ N(() => i()?.createSectionController ?? m()), B = /* @__PURE__ */ N(() => i()?.isolation ?? p()), ie = /* @__PURE__ */ N(() => i()?.env ?? b() ?? Cf);
|
|
16429
16449
|
let F = /* @__PURE__ */ N(() => {
|
|
@@ -16431,7 +16451,7 @@ function Qy(n, e) {
|
|
|
16431
16451
|
const O = r();
|
|
16432
16452
|
return O?.personalNeedsProfile || O?.settings?.personalNeedsProfile ? r() : {
|
|
16433
16453
|
...r(),
|
|
16434
|
-
personalNeedsProfile:
|
|
16454
|
+
personalNeedsProfile: Nm()
|
|
16435
16455
|
};
|
|
16436
16456
|
});
|
|
16437
16457
|
function ne(O, Le) {
|
|
@@ -16450,7 +16470,7 @@ function Qy(n, e) {
|
|
|
16450
16470
|
ke(() => {
|
|
16451
16471
|
if (!u(ce) || u(Ce)) return;
|
|
16452
16472
|
let O = !1;
|
|
16453
|
-
return import("./tool-annotation-toolbar-
|
|
16473
|
+
return import("./tool-annotation-toolbar-m4Mv2j0H.js").then(() => {
|
|
16454
16474
|
O || ae(Ce, !0);
|
|
16455
16475
|
}).catch(() => {
|
|
16456
16476
|
O || ae(Ce, !1);
|
|
@@ -16458,7 +16478,7 @@ function Qy(n, e) {
|
|
|
16458
16478
|
O = !0;
|
|
16459
16479
|
};
|
|
16460
16480
|
}), ke(() => {
|
|
16461
|
-
u(v) && (u(v).createSectionController = u(pe) || (() => new
|
|
16481
|
+
u(v) && (u(v).createSectionController = u(pe) || (() => new Jm()));
|
|
16462
16482
|
});
|
|
16463
16483
|
var st = {
|
|
16464
16484
|
get assessmentId() {
|
|
@@ -16545,12 +16565,12 @@ function Qy(n, e) {
|
|
|
16545
16565
|
set env(O = null) {
|
|
16546
16566
|
b(O), $();
|
|
16547
16567
|
}
|
|
16548
|
-
}, re =
|
|
16568
|
+
}, re = Qy();
|
|
16549
16569
|
G(() => q(re, "assessment-id", u(k))), G(() => q(re, "section", u(F))), G(() => q(re, "section-id", o())), G(() => q(re, "attempt-id", s())), G(() => q(re, "player-type", u(j))), G(() => q(re, "player", u(Z))), G(() => q(re, "env", u(ie))), G(() => q(re, "lazy-init", u(Q))), G(() => q(re, "tools", u(te))), G(() => q(re, "accessibility", u(Y))), G(() => q(re, "coordinator", u(W))), G(() => q(re, "isolation", u(B))), mt(re, 1, "svelte-19m8zbn");
|
|
16550
16570
|
var Ye = Ve(re);
|
|
16551
16571
|
{
|
|
16552
16572
|
var at = (O) => {
|
|
16553
|
-
var Le =
|
|
16573
|
+
var Le = Zy();
|
|
16554
16574
|
q(Le, "enabled", !0), G(() => q(Le, "ttsService", u(g).ttsService)), G(() => q(Le, "highlightCoordinator", u(g).highlightCoordinator)), Oe(O, Le);
|
|
16555
16575
|
};
|
|
16556
16576
|
_t(Ye, (O) => {
|
|
@@ -16561,7 +16581,7 @@ function Qy(n, e) {
|
|
|
16561
16581
|
return Ks(dt, e, "default", {}), ze(re), Zo(re, (O) => ae(v, O), () => u(v)), ti("composition-changed", re, Ue), ti("toolkit-ready", re, (O) => le(O, "toolkit-ready")), ti("section-ready", re, (O) => le(O, "section-ready")), ti("runtime-error", re, (O) => le(O, "runtime-error")), ti("session-changed", re, (O) => le(O, "session-changed")), ti("runtime-owned", re, (O) => le(O, "runtime-owned")), ti("runtime-inherited", re, (O) => le(O, "runtime-inherited")), Oe(n, re), wi(st);
|
|
16562
16582
|
}
|
|
16563
16583
|
customElements.define("pie-section-player-base", Xi(
|
|
16564
|
-
|
|
16584
|
+
tb,
|
|
16565
16585
|
{
|
|
16566
16586
|
assessmentId: { attribute: "assessment-id", type: "String" },
|
|
16567
16587
|
runtime: { type: "Object" },
|
|
@@ -16583,13 +16603,13 @@ customElements.define("pie-section-player-base", Xi(
|
|
|
16583
16603
|
{ mode: "open" }
|
|
16584
16604
|
));
|
|
16585
16605
|
const Rc = /* @__PURE__ */ new Map();
|
|
16586
|
-
var
|
|
16587
|
-
const
|
|
16606
|
+
var nb = /* @__PURE__ */ He('<div class="pie-item-shell-anchor svelte-ljk393" aria-hidden="true"></div> <!>', 1);
|
|
16607
|
+
const ib = {
|
|
16588
16608
|
hash: "svelte-ljk393",
|
|
16589
16609
|
code: ".pie-item-shell-anchor.svelte-ljk393 {display:none;}"
|
|
16590
16610
|
};
|
|
16591
|
-
function
|
|
16592
|
-
bi(e, !0), Ji(n,
|
|
16611
|
+
function rb(n, e) {
|
|
16612
|
+
bi(e, !0), Ji(n, ib);
|
|
16593
16613
|
const t = "pie-content-loaded", i = "pie-item-player-error";
|
|
16594
16614
|
let r = x(e, "itemId", 7, ""), o = x(e, "canonicalItemId", 7, ""), s = x(e, "contentKind", 7, "assessment-item"), a = x(e, "regionPolicy", 7, "default"), l = x(e, "scopeElement", 7, null), c = x(e, "item", 7, null), d = /* @__PURE__ */ Pe(null);
|
|
16595
16615
|
const h = Date.now();
|
|
@@ -16750,13 +16770,13 @@ function nb(n, e) {
|
|
|
16750
16770
|
set item(F = null) {
|
|
16751
16771
|
c(F), $();
|
|
16752
16772
|
}
|
|
16753
|
-
}, pe =
|
|
16773
|
+
}, pe = nb(), B = Ir(pe);
|
|
16754
16774
|
Zo(B, (F) => ae(d, F), () => u(d));
|
|
16755
16775
|
var ie = ot(B, 2);
|
|
16756
16776
|
return Ks(ie, e, "default", {}), Oe(n, pe), wi(W);
|
|
16757
16777
|
}
|
|
16758
16778
|
customElements.define("pie-item-shell", Xi(
|
|
16759
|
-
|
|
16779
|
+
rb,
|
|
16760
16780
|
{
|
|
16761
16781
|
itemId: { attribute: "item-id", type: "String" },
|
|
16762
16782
|
canonicalItemId: { attribute: "canonical-item-id", type: "String" },
|
|
@@ -16769,13 +16789,13 @@ customElements.define("pie-item-shell", Xi(
|
|
|
16769
16789
|
[],
|
|
16770
16790
|
{ mode: "open" }
|
|
16771
16791
|
));
|
|
16772
|
-
var
|
|
16773
|
-
const
|
|
16792
|
+
var ob = /* @__PURE__ */ He('<h2 class="svelte-7chqkg"> </h2>'), sb = /* @__PURE__ */ He('<pie-item-shell><div class="pie-section-player-content-card svelte-7chqkg"><div class="pie-section-player-content-card-header pie-section-player-item-header pie-section-player__item-header svelte-7chqkg" data-region="header"><!> <pie-item-toolbar></pie-item-toolbar></div> <div class="pie-section-player-content-card-body pie-section-player-item-content pie-section-player__item-content svelte-7chqkg" data-region="content"><!></div> <div data-region="footer"></div></div></pie-item-shell>', 2);
|
|
16793
|
+
const ab = {
|
|
16774
16794
|
hash: "svelte-7chqkg",
|
|
16775
16795
|
code: ".pie-section-player-content-card.svelte-7chqkg {border:1px solid var(--pie-border-light, #e5e7eb);border-radius:8px;background:var(--pie-background, #fff);color:var(--pie-text, #111827);}.pie-section-player-content-card-header.svelte-7chqkg {display:flex;align-items:center;gap:0.75rem;padding:0.75rem 1rem;border-bottom:1px solid var(--pie-border-light, #e5e7eb);}.pie-section-player-content-card-header.svelte-7chqkg h2:where(.svelte-7chqkg) {margin:0;font-size:0.95rem;font-weight:600;color:var(--pie-text, #111827);}.pie-section-player-content-card-header.svelte-7chqkg pie-item-toolbar:where(.svelte-7chqkg) {margin-left:auto;}.pie-section-player-content-card-body.svelte-7chqkg {padding:1rem;color:var(--pie-text, #111827);}"
|
|
16776
16796
|
};
|
|
16777
16797
|
function Al(n, e) {
|
|
16778
|
-
bi(e, !0), Ji(n,
|
|
16798
|
+
bi(e, !0), Ji(n, ab);
|
|
16779
16799
|
let t = x(e, "item", 7), i = x(e, "canonicalItemId", 7), r = x(e, "resolvedPlayerTag", 7), o = x(e, "playerAction", 7), s = x(e, "playerParams", 7), a = x(e, "itemToolbarTools", 7);
|
|
16780
16800
|
var l = {
|
|
16781
16801
|
get item() {
|
|
@@ -16814,12 +16834,12 @@ function Al(n, e) {
|
|
|
16814
16834
|
set itemToolbarTools(S) {
|
|
16815
16835
|
a(S), $();
|
|
16816
16836
|
}
|
|
16817
|
-
}, c =
|
|
16837
|
+
}, c = sb();
|
|
16818
16838
|
G(() => q(c, "item-id", t().id)), G(() => q(c, "canonical-item-id", i())), q(c, "content-kind", "assessment-item"), G(() => q(c, "item", t()));
|
|
16819
16839
|
var d = Ve(c), h = Ve(d), f = Ve(h);
|
|
16820
16840
|
{
|
|
16821
16841
|
var m = (S) => {
|
|
16822
|
-
var R =
|
|
16842
|
+
var R = ob(), k = Ve(R, !0);
|
|
16823
16843
|
ze(R), G((j) => $d(k, j), [() => Ts(t())]), Oe(S, R);
|
|
16824
16844
|
}, p = /* @__PURE__ */ N(() => Ts(t()));
|
|
16825
16845
|
_t(f, (S) => {
|
|
@@ -16847,13 +16867,13 @@ Xi(
|
|
|
16847
16867
|
[],
|
|
16848
16868
|
{ mode: "open" }
|
|
16849
16869
|
);
|
|
16850
|
-
var
|
|
16851
|
-
const
|
|
16870
|
+
var lb = /* @__PURE__ */ He('<div class="pie-passage-shell-anchor svelte-16sht1m" aria-hidden="true"></div> <!>', 1);
|
|
16871
|
+
const cb = {
|
|
16852
16872
|
hash: "svelte-16sht1m",
|
|
16853
16873
|
code: ".pie-passage-shell-anchor.svelte-16sht1m {display:none;}"
|
|
16854
16874
|
};
|
|
16855
|
-
function
|
|
16856
|
-
bi(e, !0), Ji(n,
|
|
16875
|
+
function db(n, e) {
|
|
16876
|
+
bi(e, !0), Ji(n, cb);
|
|
16857
16877
|
const t = "pie-content-loaded", i = "pie-item-player-error";
|
|
16858
16878
|
let r = x(e, "itemId", 7, ""), o = x(e, "canonicalItemId", 7, ""), s = x(e, "contentKind", 7, "rubric-block-stimulus"), a = x(e, "regionPolicy", 7, "default"), l = x(e, "scopeElement", 7, null), c = x(e, "item", 7, null), d = /* @__PURE__ */ Pe(null);
|
|
16859
16879
|
const h = Date.now();
|
|
@@ -16980,13 +17000,13 @@ function lb(n, e) {
|
|
|
16980
17000
|
set item(B = null) {
|
|
16981
17001
|
c(B), $();
|
|
16982
17002
|
}
|
|
16983
|
-
}, Y =
|
|
17003
|
+
}, Y = lb(), W = Ir(Y);
|
|
16984
17004
|
Zo(W, (B) => ae(d, B), () => u(d));
|
|
16985
17005
|
var pe = ot(W, 2);
|
|
16986
17006
|
return Ks(pe, e, "default", {}), Oe(n, Y), wi(te);
|
|
16987
17007
|
}
|
|
16988
17008
|
customElements.define("pie-passage-shell", Xi(
|
|
16989
|
-
|
|
17009
|
+
db,
|
|
16990
17010
|
{
|
|
16991
17011
|
itemId: { attribute: "item-id", type: "String" },
|
|
16992
17012
|
canonicalItemId: { attribute: "canonical-item-id", type: "String" },
|
|
@@ -16999,13 +17019,13 @@ customElements.define("pie-passage-shell", Xi(
|
|
|
16999
17019
|
[],
|
|
17000
17020
|
{ mode: "open" }
|
|
17001
17021
|
));
|
|
17002
|
-
var
|
|
17003
|
-
const
|
|
17022
|
+
var ub = /* @__PURE__ */ He('<h2 class="svelte-10ek8e9"> </h2>'), fb = /* @__PURE__ */ He('<pie-passage-shell><div class="pie-section-player-content-card svelte-10ek8e9"><div class="pie-section-player-content-card-header pie-section-player-passage-header pie-section-player__passage-header svelte-10ek8e9" data-region="header"><!> <pie-item-toolbar></pie-item-toolbar></div> <div class="pie-section-player-content-card-body pie-section-player-passage-content pie-section-player__passage-content svelte-10ek8e9" data-region="content"><!></div></div></pie-passage-shell>', 2);
|
|
17023
|
+
const hb = {
|
|
17004
17024
|
hash: "svelte-10ek8e9",
|
|
17005
17025
|
code: ".pie-section-player-content-card.svelte-10ek8e9 {border:1px solid var(--pie-border-light, #e5e7eb);border-radius:8px;background:var(--pie-background, #fff);color:var(--pie-text, #111827);}.pie-section-player-content-card-header.svelte-10ek8e9 {display:flex;align-items:center;gap:0.75rem;padding:0.75rem 1rem;border-bottom:1px solid var(--pie-border-light, #e5e7eb);}.pie-section-player-content-card-header.svelte-10ek8e9 h2:where(.svelte-10ek8e9) {margin:0;font-size:0.95rem;font-weight:600;color:var(--pie-text, #111827);}.pie-section-player-content-card-header.svelte-10ek8e9 pie-item-toolbar:where(.svelte-10ek8e9) {margin-left:auto;}.pie-section-player-content-card-body.svelte-10ek8e9 {padding:1rem;color:var(--pie-text, #111827);}"
|
|
17006
17026
|
};
|
|
17007
17027
|
function Ll(n, e) {
|
|
17008
|
-
bi(e, !0), Ji(n,
|
|
17028
|
+
bi(e, !0), Ji(n, hb);
|
|
17009
17029
|
let t = x(e, "passage", 7), i = x(e, "resolvedPlayerTag", 7), r = x(e, "playerAction", 7), o = x(e, "playerParams", 7), s = x(e, "passageToolbarTools", 7);
|
|
17010
17030
|
var a = {
|
|
17011
17031
|
get passage() {
|
|
@@ -17038,12 +17058,12 @@ function Ll(n, e) {
|
|
|
17038
17058
|
set passageToolbarTools(g) {
|
|
17039
17059
|
s(g), $();
|
|
17040
17060
|
}
|
|
17041
|
-
}, l =
|
|
17061
|
+
}, l = fb();
|
|
17042
17062
|
G(() => q(l, "item-id", t().id)), q(l, "content-kind", "rubric-block-stimulus"), G(() => q(l, "item", t()));
|
|
17043
17063
|
var c = Ve(l), d = Ve(c), h = Ve(d);
|
|
17044
17064
|
{
|
|
17045
17065
|
var f = (g) => {
|
|
17046
|
-
var S =
|
|
17066
|
+
var S = ub(), R = Ve(S, !0);
|
|
17047
17067
|
ze(S), G((k) => $d(R, k), [() => Ts(t())]), Oe(g, S);
|
|
17048
17068
|
}, m = /* @__PURE__ */ N(() => Ts(t()));
|
|
17049
17069
|
_t(h, (g) => {
|
|
@@ -17070,7 +17090,7 @@ Xi(
|
|
|
17070
17090
|
[],
|
|
17071
17091
|
{ mode: "open" }
|
|
17072
17092
|
);
|
|
17073
|
-
function
|
|
17093
|
+
function pb(n) {
|
|
17074
17094
|
if (!n) return "";
|
|
17075
17095
|
try {
|
|
17076
17096
|
return JSON.stringify(n);
|
|
@@ -17088,7 +17108,7 @@ function kf(n) {
|
|
|
17088
17108
|
function $c(n, e, t) {
|
|
17089
17109
|
const i = n, r = i[t.stateKey] || {};
|
|
17090
17110
|
r.config !== e.config && (i.config = e.config), r.env !== e.env && (i.env = e.env);
|
|
17091
|
-
const o =
|
|
17111
|
+
const o = pb(e.session);
|
|
17092
17112
|
e.session !== void 0 && r.sessionSignature !== o && (i.session = e.session);
|
|
17093
17113
|
for (const [s, a] of Object.entries(e.attributes || {}))
|
|
17094
17114
|
n.setAttribute(s, String(a));
|
|
@@ -17118,17 +17138,17 @@ function xf(n) {
|
|
|
17118
17138
|
return {
|
|
17119
17139
|
config: n.item.config || {},
|
|
17120
17140
|
env: n.resolvedPlayerEnv,
|
|
17121
|
-
session:
|
|
17141
|
+
session: eg(n.compositionModel, n.item),
|
|
17122
17142
|
attributes: n.resolvedPlayerAttributes || {},
|
|
17123
17143
|
props: n.resolvedPlayerProps || {},
|
|
17124
17144
|
skipElementLoading: n.playerStrategy !== "preloaded"
|
|
17125
17145
|
};
|
|
17126
17146
|
}
|
|
17127
17147
|
function Af(n) {
|
|
17128
|
-
return
|
|
17148
|
+
return Zm(n.compositionModel, n.item);
|
|
17129
17149
|
}
|
|
17130
|
-
var
|
|
17131
|
-
const
|
|
17150
|
+
var mb = /* @__PURE__ */ He("<pie-section-toolbar></pie-section-toolbar>", 2), gb = /* @__PURE__ */ He('<div class="pie-section-player-content-card svelte-1psecfm"><div class="pie-section-player-content-card-body pie-section-player-passage-content pie-section-player__passage-content svelte-1psecfm">Loading passage content...</div></div>'), vb = /* @__PURE__ */ He('<aside class="pie-section-player-passages-pane svelte-1psecfm" aria-label="Passages"><!></aside> <button type="button" aria-label="Resize panels"><span class="pie-section-player-split-divider-handle svelte-1psecfm"></span></button>', 1), yb = /* @__PURE__ */ He('<div class="pie-section-player-content-card svelte-1psecfm"><div class="pie-section-player-content-card-body pie-section-player-item-content pie-section-player__item-content svelte-1psecfm">Loading section content...</div></div>'), bb = /* @__PURE__ */ He('<aside class="pie-section-player-toolbar-pane pie-section-player-toolbar-pane--right svelte-1psecfm" aria-label="Section tools"><pie-section-toolbar></pie-section-toolbar></aside>', 2), wb = /* @__PURE__ */ He('<aside class="pie-section-player-toolbar-pane pie-section-player-toolbar-pane--left svelte-1psecfm" aria-label="Section tools"><pie-section-toolbar></pie-section-toolbar></aside>', 2), Ib = /* @__PURE__ */ He("<pie-section-toolbar></pie-section-toolbar>", 2), Sb = /* @__PURE__ */ He('<pie-section-player-base><div><!> <div><div><!> <main class="pie-section-player-items-pane svelte-1psecfm" aria-label="Items"><!></main></div> <!> <!></div> <!></div></pie-section-player-base>', 2);
|
|
17151
|
+
const Eb = {
|
|
17132
17152
|
hash: "svelte-1psecfm",
|
|
17133
17153
|
code: `:host {display:block;width:100%;height:100%;min-height:0;max-height:100%;overflow:hidden;}.pie-section-player-shell.svelte-1psecfm {display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden;background:var(--pie-background-dark, #ecedf1);}.pie-section-player-shell--left.svelte-1psecfm,
|
|
17134
17154
|
.pie-section-player-shell--right.svelte-1psecfm {flex-direction:row;}.pie-section-player-shell--left.svelte-1psecfm .pie-section-player-layout-body--inline:where(.svelte-1psecfm) {order:2;}.pie-section-player-shell--left.svelte-1psecfm .pie-section-player-toolbar-pane--left:where(.svelte-1psecfm) {order:1;}.pie-section-player-layout-body.svelte-1psecfm {display:grid;grid-template-columns:minmax(0, 1fr);flex:1;min-height:0;overflow:hidden;background:var(--pie-background-dark, #ecedf1);}.pie-section-player-layout-body--inline.svelte-1psecfm {grid-template-columns:minmax(0, 1fr) auto;gap:1rem;}.pie-section-player-split-content.svelte-1psecfm {display:grid;gap:0;min-height:0;height:100%;overflow:hidden;}.pie-section-player-split-content--no-passages.svelte-1psecfm .pie-section-player-items-pane:where(.svelte-1psecfm) {padding-left:0.5rem;}.pie-section-player-passages-pane.svelte-1psecfm,
|
|
@@ -17148,10 +17168,10 @@ const Ib = {
|
|
|
17148
17168
|
.pie-section-player-toolbar-pane--right.svelte-1psecfm {border:none;padding:0;}
|
|
17149
17169
|
}`
|
|
17150
17170
|
};
|
|
17151
|
-
function
|
|
17152
|
-
bi(e, !0), Ji(n,
|
|
17171
|
+
function Tb(n, e) {
|
|
17172
|
+
bi(e, !0), Ji(n, Eb);
|
|
17153
17173
|
const t = Al, i = Ll;
|
|
17154
|
-
let r = x(e, "assessmentId", 7), o = x(e, "runtime", 7, null), s = x(e, "section", 7, null), a = x(e, "sectionId", 7, ""), l = x(e, "attemptId", 7, ""), c = x(e, "playerType", 7), d = x(e, "player", 7), h = x(e, "lazyInit", 7), f = x(e, "tools", 7), m = x(e, "accessibility", 7), p = x(e, "coordinator", 7), b = x(e, "createSectionController", 7), v = x(e, "isolation", 7), g = x(e, "env", 7), S = x(e, "iifeBundleHost", 7), R = x(e, "showToolbar", 7, "
|
|
17174
|
+
let r = x(e, "assessmentId", 7), o = x(e, "runtime", 7, null), s = x(e, "section", 7, null), a = x(e, "sectionId", 7, ""), l = x(e, "attemptId", 7, ""), c = x(e, "playerType", 7), d = x(e, "player", 7), h = x(e, "lazyInit", 7), f = x(e, "tools", 7), m = x(e, "accessibility", 7), p = x(e, "coordinator", 7), b = x(e, "createSectionController", 7), v = x(e, "isolation", 7), g = x(e, "env", 7), S = x(e, "iifeBundleHost", 7), R = x(e, "showToolbar", 7, "false"), k = x(e, "toolbarPosition", 7, "right"), j = x(e, "enabledTools", 7, ""), Z = x(e, "itemToolbarTools", 7, ""), Q = x(e, "passageToolbarTools", 7, "");
|
|
17155
17175
|
function te(P) {
|
|
17156
17176
|
if (typeof P == "boolean")
|
|
17157
17177
|
return P;
|
|
@@ -17336,7 +17356,7 @@ function Sb(n, e) {
|
|
|
17336
17356
|
get showToolbar() {
|
|
17337
17357
|
return R();
|
|
17338
17358
|
},
|
|
17339
|
-
set showToolbar(P = "
|
|
17359
|
+
set showToolbar(P = "false") {
|
|
17340
17360
|
R(P), $();
|
|
17341
17361
|
},
|
|
17342
17362
|
get toolbarPosition() {
|
|
@@ -17363,12 +17383,12 @@ function Sb(n, e) {
|
|
|
17363
17383
|
set passageToolbarTools(P = "") {
|
|
17364
17384
|
Q(P), $();
|
|
17365
17385
|
}
|
|
17366
|
-
}, H =
|
|
17386
|
+
}, H = Sb();
|
|
17367
17387
|
G(() => q(H, "runtime", u(dt))), G(() => q(H, "section", s())), G(() => q(H, "section-id", a())), G(() => q(H, "attempt-id", l()));
|
|
17368
17388
|
var de = Ve(H), Qe = Ve(de);
|
|
17369
17389
|
{
|
|
17370
17390
|
var Si = (P) => {
|
|
17371
|
-
var U =
|
|
17391
|
+
var U = mb();
|
|
17372
17392
|
G(() => q(U, "position", k())), G(() => q(U, "enabled-tools", j())), G(() => mt(U, 1, `pie-section-player-toolbar pie-section-player-toolbar--${k()}`, "svelte-1psecfm")), Oe(P, U);
|
|
17373
17393
|
};
|
|
17374
17394
|
_t(Qe, (P) => {
|
|
@@ -17378,10 +17398,10 @@ function Sb(n, e) {
|
|
|
17378
17398
|
var Yt = ot(Qe, 2), A = Ve(Yt), w = Ve(A);
|
|
17379
17399
|
{
|
|
17380
17400
|
var z = (P) => {
|
|
17381
|
-
var U =
|
|
17401
|
+
var U = vb(), X = Ir(U), Fe = Ve(X);
|
|
17382
17402
|
{
|
|
17383
17403
|
var Ct = (Jt) => {
|
|
17384
|
-
var Vr =
|
|
17404
|
+
var Vr = gb();
|
|
17385
17405
|
Oe(Jt, Vr);
|
|
17386
17406
|
}, Fr = (Jt) => {
|
|
17387
17407
|
var Vr = Ul(), Lf = Ir(Vr);
|
|
@@ -17429,7 +17449,7 @@ function Sb(n, e) {
|
|
|
17429
17449
|
var ue = ot(w, 2), qe = Ve(ue);
|
|
17430
17450
|
{
|
|
17431
17451
|
var xe = (P) => {
|
|
17432
|
-
var U =
|
|
17452
|
+
var U = yb();
|
|
17433
17453
|
Oe(P, U);
|
|
17434
17454
|
}, Be = (P) => {
|
|
17435
17455
|
var U = Ul(), X = Ir(U);
|
|
@@ -17474,7 +17494,7 @@ function Sb(n, e) {
|
|
|
17474
17494
|
var it = ot(A, 2);
|
|
17475
17495
|
{
|
|
17476
17496
|
var C = (P) => {
|
|
17477
|
-
var U =
|
|
17497
|
+
var U = bb(), X = Ve(U);
|
|
17478
17498
|
q(X, "position", "right"), G(() => q(X, "enabled-tools", j())), mt(X, 1, "svelte-1psecfm"), ze(U), Oe(P, U);
|
|
17479
17499
|
};
|
|
17480
17500
|
_t(it, (P) => {
|
|
@@ -17484,7 +17504,7 @@ function Sb(n, e) {
|
|
|
17484
17504
|
var V = ot(it, 2);
|
|
17485
17505
|
{
|
|
17486
17506
|
var De = (P) => {
|
|
17487
|
-
var U =
|
|
17507
|
+
var U = wb(), X = Ve(U);
|
|
17488
17508
|
q(X, "position", "left"), G(() => q(X, "enabled-tools", j())), mt(X, 1, "svelte-1psecfm"), ze(U), Oe(P, U);
|
|
17489
17509
|
};
|
|
17490
17510
|
_t(V, (P) => {
|
|
@@ -17495,7 +17515,7 @@ function Sb(n, e) {
|
|
|
17495
17515
|
var Je = ot(Yt, 2);
|
|
17496
17516
|
{
|
|
17497
17517
|
var Ei = (P) => {
|
|
17498
|
-
var U =
|
|
17518
|
+
var U = Ib();
|
|
17499
17519
|
G(() => q(U, "position", k())), G(() => q(U, "enabled-tools", j())), G(() => mt(U, 1, `pie-section-player-toolbar pie-section-player-toolbar--${k()}`, "svelte-1psecfm")), Oe(P, U);
|
|
17500
17520
|
};
|
|
17501
17521
|
_t(Je, (P) => {
|
|
@@ -17508,7 +17528,7 @@ function Sb(n, e) {
|
|
|
17508
17528
|
}
|
|
17509
17529
|
Uh(["mousedown", "keydown"]);
|
|
17510
17530
|
customElements.define("pie-section-player-splitpane", Xi(
|
|
17511
|
-
|
|
17531
|
+
Tb,
|
|
17512
17532
|
{
|
|
17513
17533
|
assessmentId: { attribute: "assessment-id", type: "String" },
|
|
17514
17534
|
runtime: { type: "Object" },
|
|
@@ -17534,8 +17554,8 @@ customElements.define("pie-section-player-splitpane", Xi(
|
|
|
17534
17554
|
[],
|
|
17535
17555
|
[]
|
|
17536
17556
|
));
|
|
17537
|
-
var
|
|
17538
|
-
const
|
|
17557
|
+
var Cb = /* @__PURE__ */ He("<pie-section-toolbar></pie-section-toolbar>", 2), _b = /* @__PURE__ */ He('<div class="pie-section-player-content-card svelte-j50lbm"><div class="pie-section-player-content-card-body pie-section-player-item-content pie-section-player__item-content svelte-j50lbm">Loading section content...</div></div>'), Pb = /* @__PURE__ */ He('<section class="pie-section-player-passages-section svelte-j50lbm" aria-label="Passages"></section>'), kb = /* @__PURE__ */ He('<!> <section class="pie-section-player-items-section svelte-j50lbm" aria-label="Items"></section>', 1), Rb = /* @__PURE__ */ He('<aside class="pie-section-player-toolbar-pane pie-section-player-toolbar-pane--right svelte-j50lbm" aria-label="Section tools"><pie-section-toolbar></pie-section-toolbar></aside>', 2), $b = /* @__PURE__ */ He('<aside class="pie-section-player-toolbar-pane pie-section-player-toolbar-pane--left svelte-j50lbm" aria-label="Section tools"><pie-section-toolbar></pie-section-toolbar></aside>', 2), xb = /* @__PURE__ */ He("<pie-section-toolbar></pie-section-toolbar>", 2), Ab = /* @__PURE__ */ He('<pie-section-player-base><div><!> <div><div class="pie-section-player-vertical-content svelte-j50lbm"><!></div> <!> <!></div> <!></div></pie-section-player-base>', 2);
|
|
17558
|
+
const Lb = {
|
|
17539
17559
|
hash: "svelte-j50lbm",
|
|
17540
17560
|
code: `:host {display:block;width:100%;height:100%;min-height:0;max-height:100%;overflow:hidden;}.pie-section-player-shell.svelte-j50lbm {display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden;background:var(--pie-background-dark, #ecedf1);}.pie-section-player-shell--left.svelte-j50lbm,
|
|
17541
17561
|
.pie-section-player-shell--right.svelte-j50lbm {flex-direction:row;}.pie-section-player-shell--left.svelte-j50lbm .pie-section-player-layout-body--inline:where(.svelte-j50lbm) {order:2;}.pie-section-player-shell--left.svelte-j50lbm .pie-section-player-toolbar-pane--left:where(.svelte-j50lbm) {order:1;}.pie-section-player-layout-body.svelte-j50lbm {display:grid;grid-template-columns:minmax(0, 1fr);flex:1;min-height:0;overflow:hidden;background:var(--pie-background-dark, #ecedf1);}.pie-section-player-layout-body--inline.svelte-j50lbm {grid-template-columns:minmax(0, 1fr) auto;gap:1rem;}.pie-section-player-vertical-content.svelte-j50lbm {height:100%;max-height:100%;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;display:flex;flex-direction:column;gap:1rem;padding:0.5rem;box-sizing:border-box;background:var(--pie-background-dark, #ecedf1);}.pie-section-player-passages-section.svelte-j50lbm,
|
|
@@ -17546,10 +17566,10 @@ const xb = {
|
|
|
17546
17566
|
.pie-section-player-toolbar-pane--right.svelte-j50lbm {border:none;padding:0;}
|
|
17547
17567
|
}`
|
|
17548
17568
|
};
|
|
17549
|
-
function
|
|
17550
|
-
bi(e, !0), Ji(n,
|
|
17569
|
+
function Mb(n, e) {
|
|
17570
|
+
bi(e, !0), Ji(n, Lb);
|
|
17551
17571
|
const t = Al, i = Ll;
|
|
17552
|
-
let r = x(e, "assessmentId", 7), o = x(e, "runtime", 7, null), s = x(e, "section", 7, null), a = x(e, "sectionId", 7, ""), l = x(e, "attemptId", 7, ""), c = x(e, "playerType", 7), d = x(e, "player", 7), h = x(e, "lazyInit", 7), f = x(e, "tools", 7), m = x(e, "accessibility", 7), p = x(e, "coordinator", 7), b = x(e, "createSectionController", 7), v = x(e, "isolation", 7), g = x(e, "env", 7), S = x(e, "iifeBundleHost", 7), R = x(e, "showToolbar", 7, "
|
|
17572
|
+
let r = x(e, "assessmentId", 7), o = x(e, "runtime", 7, null), s = x(e, "section", 7, null), a = x(e, "sectionId", 7, ""), l = x(e, "attemptId", 7, ""), c = x(e, "playerType", 7), d = x(e, "player", 7), h = x(e, "lazyInit", 7), f = x(e, "tools", 7), m = x(e, "accessibility", 7), p = x(e, "coordinator", 7), b = x(e, "createSectionController", 7), v = x(e, "isolation", 7), g = x(e, "env", 7), S = x(e, "iifeBundleHost", 7), R = x(e, "showToolbar", 7, "false"), k = x(e, "toolbarPosition", 7, "right"), j = x(e, "enabledTools", 7, ""), Z = x(e, "itemToolbarTools", 7, ""), Q = x(e, "passageToolbarTools", 7, "");
|
|
17553
17573
|
function te(A) {
|
|
17554
17574
|
if (typeof A == "boolean")
|
|
17555
17575
|
return A;
|
|
@@ -17698,7 +17718,7 @@ function Ab(n, e) {
|
|
|
17698
17718
|
get showToolbar() {
|
|
17699
17719
|
return R();
|
|
17700
17720
|
},
|
|
17701
|
-
set showToolbar(A = "
|
|
17721
|
+
set showToolbar(A = "false") {
|
|
17702
17722
|
R(A), $();
|
|
17703
17723
|
},
|
|
17704
17724
|
get toolbarPosition() {
|
|
@@ -17725,12 +17745,12 @@ function Ab(n, e) {
|
|
|
17725
17745
|
set passageToolbarTools(A = "") {
|
|
17726
17746
|
Q(A), $();
|
|
17727
17747
|
}
|
|
17728
|
-
}, We =
|
|
17748
|
+
}, We = Ab();
|
|
17729
17749
|
G(() => q(We, "runtime", u(ce))), G(() => q(We, "section", s())), G(() => q(We, "section-id", a())), G(() => q(We, "attempt-id", l()));
|
|
17730
17750
|
var Ze = Ve(We), Et = Ve(Ze);
|
|
17731
17751
|
{
|
|
17732
17752
|
var mn = (A) => {
|
|
17733
|
-
var w =
|
|
17753
|
+
var w = Cb();
|
|
17734
17754
|
G(() => q(w, "position", k())), G(() => q(w, "enabled-tools", j())), G(() => mt(w, 1, `pie-section-player-toolbar pie-section-player-toolbar--${k()}`, "svelte-j50lbm")), Oe(A, w);
|
|
17735
17755
|
};
|
|
17736
17756
|
_t(Et, (A) => {
|
|
@@ -17740,13 +17760,13 @@ function Ab(n, e) {
|
|
|
17740
17760
|
var ut = ot(Et, 2), Tt = Ve(ut), Ft = Ve(Tt);
|
|
17741
17761
|
{
|
|
17742
17762
|
var _ = (A) => {
|
|
17743
|
-
var w =
|
|
17763
|
+
var w = _b();
|
|
17744
17764
|
Oe(A, w);
|
|
17745
17765
|
}, ee = (A) => {
|
|
17746
|
-
var w =
|
|
17766
|
+
var w = kb(), z = Ir(w);
|
|
17747
17767
|
{
|
|
17748
17768
|
var ue = (xe) => {
|
|
17749
|
-
var Be =
|
|
17769
|
+
var Be = Pb();
|
|
17750
17770
|
Is(Be, 23, () => u(ie), (it, C) => it.id || C, (it, C) => {
|
|
17751
17771
|
{
|
|
17752
17772
|
let V = /* @__PURE__ */ N(() => $f({
|
|
@@ -17822,7 +17842,7 @@ function Ab(n, e) {
|
|
|
17822
17842
|
var se = ot(Tt, 2);
|
|
17823
17843
|
{
|
|
17824
17844
|
var H = (A) => {
|
|
17825
|
-
var w =
|
|
17845
|
+
var w = Rb(), z = Ve(w);
|
|
17826
17846
|
q(z, "position", "right"), G(() => q(z, "enabled-tools", j())), mt(z, 1, "svelte-j50lbm"), ze(w), Oe(A, w);
|
|
17827
17847
|
};
|
|
17828
17848
|
_t(se, (A) => {
|
|
@@ -17832,7 +17852,7 @@ function Ab(n, e) {
|
|
|
17832
17852
|
var de = ot(se, 2);
|
|
17833
17853
|
{
|
|
17834
17854
|
var Qe = (A) => {
|
|
17835
|
-
var w =
|
|
17855
|
+
var w = $b(), z = Ve(w);
|
|
17836
17856
|
q(z, "position", "left"), G(() => q(z, "enabled-tools", j())), mt(z, 1, "svelte-j50lbm"), ze(w), Oe(A, w);
|
|
17837
17857
|
};
|
|
17838
17858
|
_t(de, (A) => {
|
|
@@ -17843,7 +17863,7 @@ function Ab(n, e) {
|
|
|
17843
17863
|
var Si = ot(ut, 2);
|
|
17844
17864
|
{
|
|
17845
17865
|
var Yt = (A) => {
|
|
17846
|
-
var w =
|
|
17866
|
+
var w = xb();
|
|
17847
17867
|
G(() => q(w, "position", k())), G(() => q(w, "enabled-tools", j())), G(() => mt(w, 1, `pie-section-player-toolbar pie-section-player-toolbar--${k()}`, "svelte-j50lbm")), Oe(A, w);
|
|
17848
17868
|
};
|
|
17849
17869
|
_t(Si, (A) => {
|
|
@@ -17855,7 +17875,7 @@ function Ab(n, e) {
|
|
|
17855
17875
|
}), ti("composition-changed", We, Ie), Oe(n, We), wi($e);
|
|
17856
17876
|
}
|
|
17857
17877
|
customElements.define("pie-section-player-vertical", Xi(
|
|
17858
|
-
|
|
17878
|
+
Mb,
|
|
17859
17879
|
{
|
|
17860
17880
|
assessmentId: { attribute: "assessment-id", type: "String" },
|
|
17861
17881
|
runtime: { type: "Object" },
|