@pie-players/pie-section-player 0.3.46 → 0.3.47
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/chunks/{dist-DfQrc9XY-6d8e61c6.js → dist-DfQrc9XY-c51dad0d.js} +1 -1
- package/dist/chunks/{dist-Dns3leWh-4f7af4d3.js → dist-Dns3leWh-7382d83a.js} +1 -1
- package/dist/chunks/{sre-CXN7ed6H-7db47d5d.js → sre-CXN7ed6H-f7f64527.js} +1 -1
- package/dist/chunks/{tool-annotation-toolbar-db5bfbec.js → tool-annotation-toolbar-611c837c.js} +4 -4
- package/dist/pie-section-player.js +220 -220
- package/package.json +10 -10
- /package/dist/chunks/{defineProperty-Dt7ri80W-76aeaed7.js → defineProperty-Dt7ri80W-3decf760.js} +0 -0
- /package/dist/chunks/{dist-c4148994.js → dist-c770ad18.js} +0 -0
- /package/dist/chunks/{dist-24a90544.js → dist-fed7cb49.js} +0 -0
- /package/dist/chunks/{module-c1d68911.js → module-a516757f.js} +0 -0
|
@@ -4387,7 +4387,7 @@ var wU = class {
|
|
|
4387
4387
|
});
|
|
4388
4388
|
const n = await (async () => {
|
|
4389
4389
|
try {
|
|
4390
|
-
const o = await import("./chunks/dist-
|
|
4390
|
+
const o = await import("./chunks/dist-c770ad18.js");
|
|
4391
4391
|
return await this.emitTelemetry("pie-tool-library-load-success", {
|
|
4392
4392
|
toolId: "calculator",
|
|
4393
4393
|
operation: "desmos-provider-module-import",
|
|
@@ -4674,7 +4674,7 @@ var wU = class {
|
|
|
4674
4674
|
});
|
|
4675
4675
|
const n = await (async () => {
|
|
4676
4676
|
try {
|
|
4677
|
-
const o = await import("./chunks/dist-
|
|
4677
|
+
const o = await import("./chunks/dist-fed7cb49.js");
|
|
4678
4678
|
return await this.emitTelemetry("pie-tool-library-load-success", {
|
|
4679
4679
|
toolId: "textToSpeech",
|
|
4680
4680
|
operation: "server-provider-module-import",
|
|
@@ -15511,7 +15511,7 @@ async function JO(e) {
|
|
|
15511
15511
|
}
|
|
15512
15512
|
bf = (async () => {
|
|
15513
15513
|
try {
|
|
15514
|
-
const { _dll_pie_lib__math_rendering: t } = await import("./chunks/module-
|
|
15514
|
+
const { _dll_pie_lib__math_rendering: t } = await import("./chunks/module-a516757f.js");
|
|
15515
15515
|
RN(t), AN.debug("Math rendering module initialized (both globals set)");
|
|
15516
15516
|
} catch (t) {
|
|
15517
15517
|
throw AN.error("Failed to initialize math rendering:", t), t;
|
|
@@ -15974,7 +15974,7 @@ function Sf(e) {
|
|
|
15974
15974
|
endpoint: t.endpoints?.load ?? null
|
|
15975
15975
|
}) : "";
|
|
15976
15976
|
}
|
|
15977
|
-
async function
|
|
15977
|
+
async function e5(e, t) {
|
|
15978
15978
|
const n = Ps(e);
|
|
15979
15979
|
if (!n) throw new Error("Delivery backend is not configured.");
|
|
15980
15980
|
if (!n.itemId) throw new Error("backend.delivery.itemId is required to load from backend.");
|
|
@@ -15990,12 +15990,12 @@ async function e7(e, t) {
|
|
|
15990
15990
|
metadata: s.metadata
|
|
15991
15991
|
};
|
|
15992
15992
|
}
|
|
15993
|
-
async function
|
|
15993
|
+
async function t5(e, t) {
|
|
15994
15994
|
const n = Ps(e);
|
|
15995
15995
|
if (!n) throw new Error("Delivery backend is not configured.");
|
|
15996
15996
|
return typeof n.client?.saveSession == "function" ? n.client.saveSession(t) : Yq(n, e.auth, t);
|
|
15997
15997
|
}
|
|
15998
|
-
async function
|
|
15998
|
+
async function n5(e, t, n) {
|
|
15999
15999
|
const o = Ps(e);
|
|
16000
16000
|
if (!o) throw new Error("Delivery backend is not configured.");
|
|
16001
16001
|
const s = {
|
|
@@ -16018,20 +16018,20 @@ var ud = {
|
|
|
16018
16018
|
retryDelayMs: 3e3,
|
|
16019
16019
|
timeoutMs: 12e4
|
|
16020
16020
|
}
|
|
16021
|
-
},
|
|
16022
|
-
function
|
|
16021
|
+
}, r5 = /^pie-/i, PN = "pie-image-scroll";
|
|
16022
|
+
function o5(e, t) {
|
|
16023
16023
|
let n = e.parentElement;
|
|
16024
16024
|
for (; n && n !== t; ) {
|
|
16025
|
-
if (
|
|
16025
|
+
if (r5.test(n.tagName)) return !0;
|
|
16026
16026
|
n = n.parentElement;
|
|
16027
16027
|
}
|
|
16028
16028
|
return !1;
|
|
16029
16029
|
}
|
|
16030
|
-
function
|
|
16030
|
+
function i5(e) {
|
|
16031
16031
|
const t = e.getAttribute("alt"), n = t ? t.trim() : "";
|
|
16032
16032
|
return n ? `Scrollable image: ${n}` : "Scrollable image";
|
|
16033
16033
|
}
|
|
16034
|
-
function
|
|
16034
|
+
function s5(e) {
|
|
16035
16035
|
if (!e) return "";
|
|
16036
16036
|
if (!/<img\b/i.test(e) || typeof window > "u" || !window.document) return e;
|
|
16037
16037
|
const t = typeof DOMParser < "u" ? DOMParser : window.DOMParser;
|
|
@@ -16043,22 +16043,22 @@ function s7(e) {
|
|
|
16043
16043
|
let c = !1;
|
|
16044
16044
|
for (const d of s) {
|
|
16045
16045
|
const f = d.parentElement;
|
|
16046
|
-
if (!f || f.classList && f.classList.contains(PN) ||
|
|
16046
|
+
if (!f || f.classList && f.classList.contains(PN) || o5(d, o)) continue;
|
|
16047
16047
|
const p = n.createElement("span");
|
|
16048
|
-
p.className = PN, p.setAttribute("tabindex", "0"), p.setAttribute("role", "region"), p.setAttribute("aria-label",
|
|
16048
|
+
p.className = PN, p.setAttribute("tabindex", "0"), p.setAttribute("role", "region"), p.setAttribute("aria-label", i5(d)), f.insertBefore(p, d), p.appendChild(d), c = !0;
|
|
16049
16049
|
}
|
|
16050
16050
|
return c ? o.innerHTML : e;
|
|
16051
16051
|
}
|
|
16052
|
-
var
|
|
16053
|
-
function
|
|
16052
|
+
var a5 = /^pie-/i, LN = "pie-table-scroll";
|
|
16053
|
+
function l5(e, t) {
|
|
16054
16054
|
let n = e.parentElement;
|
|
16055
16055
|
for (; n && n !== t; ) {
|
|
16056
|
-
if (
|
|
16056
|
+
if (a5.test(n.tagName)) return !0;
|
|
16057
16057
|
n = n.parentElement;
|
|
16058
16058
|
}
|
|
16059
16059
|
return !1;
|
|
16060
16060
|
}
|
|
16061
|
-
function
|
|
16061
|
+
function c5(e) {
|
|
16062
16062
|
const t = e.getAttribute("aria-label");
|
|
16063
16063
|
if (t?.trim()) return `Scrollable table: ${t.trim()}`;
|
|
16064
16064
|
const n = e.getAttribute("aria-labelledby");
|
|
@@ -16073,7 +16073,7 @@ function c7(e) {
|
|
|
16073
16073
|
const o = e.querySelector("caption")?.textContent?.trim();
|
|
16074
16074
|
return o ? `Scrollable table: ${o}` : "Scrollable table";
|
|
16075
16075
|
}
|
|
16076
|
-
function
|
|
16076
|
+
function u5(e) {
|
|
16077
16077
|
if (!e) return "";
|
|
16078
16078
|
if (!/<table\b/i.test(e) || typeof window > "u" || !window.document) return e;
|
|
16079
16079
|
const t = typeof DOMParser < "u" ? DOMParser : window.DOMParser;
|
|
@@ -16085,13 +16085,13 @@ function u7(e) {
|
|
|
16085
16085
|
let c = !1;
|
|
16086
16086
|
for (const d of s) {
|
|
16087
16087
|
const f = d.parentElement;
|
|
16088
|
-
if (!f || f.classList && f.classList.contains(LN) ||
|
|
16088
|
+
if (!f || f.classList && f.classList.contains(LN) || l5(d, o)) continue;
|
|
16089
16089
|
const p = n.createElement("div");
|
|
16090
|
-
p.className = LN, p.setAttribute("tabindex", "0"), p.setAttribute("role", "region"), p.setAttribute("aria-label",
|
|
16090
|
+
p.className = LN, p.setAttribute("tabindex", "0"), p.setAttribute("role", "region"), p.setAttribute("aria-label", c5(d)), f.insertBefore(p, d), p.appendChild(d), c = !0;
|
|
16091
16091
|
}
|
|
16092
16092
|
return c ? o.innerHTML : e;
|
|
16093
16093
|
}
|
|
16094
|
-
var
|
|
16094
|
+
var d5 = [
|
|
16095
16095
|
"slot",
|
|
16096
16096
|
"role",
|
|
16097
16097
|
"tabindex",
|
|
@@ -16106,7 +16106,7 @@ var d7 = [
|
|
|
16106
16106
|
"disabled",
|
|
16107
16107
|
"lang",
|
|
16108
16108
|
"dir"
|
|
16109
|
-
],
|
|
16109
|
+
], f5 = ["pie-id"], h5 = [
|
|
16110
16110
|
"script",
|
|
16111
16111
|
"iframe",
|
|
16112
16112
|
"object",
|
|
@@ -16116,7 +16116,7 @@ var d7 = [
|
|
|
16116
16116
|
"meta",
|
|
16117
16117
|
"link",
|
|
16118
16118
|
"foreignobject"
|
|
16119
|
-
],
|
|
16119
|
+
], p5 = [
|
|
16120
16120
|
"onerror",
|
|
16121
16121
|
"onload",
|
|
16122
16122
|
"onclick",
|
|
@@ -16134,23 +16134,23 @@ var d7 = [
|
|
|
16134
16134
|
"onbeforeunload",
|
|
16135
16135
|
"formaction",
|
|
16136
16136
|
"xlink:href"
|
|
16137
|
-
],
|
|
16138
|
-
function
|
|
16137
|
+
], m5 = /^pie-[a-z0-9-]+$/i, g5 = /^(id|class|style|slot|role|tabindex|hidden|disabled|lang|dir|data-[\w-]+|aria-[\w-]+|pie-[\w-]+|model-[\w-]+|session-[\w-]+|config-[\w-]+|context-[\w-]+)$/i, Wp = null;
|
|
16138
|
+
function v5() {
|
|
16139
16139
|
if (Wp) return Wp;
|
|
16140
16140
|
if (typeof window > "u" || !window.document) return null;
|
|
16141
16141
|
const e = hN;
|
|
16142
16142
|
return Wp = typeof e == "function" ? e(window) : hN, Wp;
|
|
16143
16143
|
}
|
|
16144
|
-
function
|
|
16144
|
+
function y5(e, t = {}) {
|
|
16145
16145
|
if (!e) return "";
|
|
16146
|
-
const n =
|
|
16146
|
+
const n = v5();
|
|
16147
16147
|
if (!n) return "";
|
|
16148
16148
|
const o = (t.allowedCustomElements ?? []).map((d) => d.toLowerCase()), s = new Set(o), c = n.sanitize(e, {
|
|
16149
16149
|
ADD_TAGS: o,
|
|
16150
|
-
ADD_ATTR:
|
|
16151
|
-
ADD_URI_SAFE_ATTR:
|
|
16152
|
-
FORBID_TAGS:
|
|
16153
|
-
FORBID_ATTR:
|
|
16150
|
+
ADD_ATTR: d5,
|
|
16151
|
+
ADD_URI_SAFE_ATTR: f5,
|
|
16152
|
+
FORBID_TAGS: h5,
|
|
16153
|
+
FORBID_ATTR: p5,
|
|
16154
16154
|
ALLOW_UNKNOWN_PROTOCOLS: !1,
|
|
16155
16155
|
SANITIZE_DOM: !0,
|
|
16156
16156
|
SANITIZE_NAMED_PROPS: !1,
|
|
@@ -16160,18 +16160,18 @@ function y7(e, t = {}) {
|
|
|
16160
16160
|
CUSTOM_ELEMENT_HANDLING: {
|
|
16161
16161
|
tagNameCheck: (d) => {
|
|
16162
16162
|
const f = d.toLowerCase();
|
|
16163
|
-
return
|
|
16163
|
+
return m5.test(f) || s.has(f);
|
|
16164
16164
|
},
|
|
16165
|
-
attributeNameCheck: (d) =>
|
|
16165
|
+
attributeNameCheck: (d) => g5.test(d),
|
|
16166
16166
|
allowCustomizedBuiltInElements: !1
|
|
16167
16167
|
},
|
|
16168
16168
|
RETURN_TRUSTED_TYPE: !1
|
|
16169
16169
|
});
|
|
16170
|
-
return
|
|
16170
|
+
return u5(s5(typeof c == "string" ? c : String(c ?? "")));
|
|
16171
16171
|
}
|
|
16172
|
-
function
|
|
16172
|
+
function b5(e = {}) {
|
|
16173
16173
|
const { allowedCustomElements: t } = e;
|
|
16174
|
-
return (n) =>
|
|
16174
|
+
return (n) => y5(n, { allowedCustomElements: t });
|
|
16175
16175
|
}
|
|
16176
16176
|
function DN(e) {
|
|
16177
16177
|
const t = /* @__PURE__ */ new Set();
|
|
@@ -16182,7 +16182,7 @@ function DN(e) {
|
|
|
16182
16182
|
}
|
|
16183
16183
|
return [...t];
|
|
16184
16184
|
}
|
|
16185
|
-
var
|
|
16185
|
+
var E5 = "-pie-editor--";
|
|
16186
16186
|
Qe(class ex extends CustomEvent {
|
|
16187
16187
|
constructor(t, n = !1) {
|
|
16188
16188
|
super(ex.TYPE, {
|
|
@@ -16364,7 +16364,7 @@ function cx(e) {
|
|
|
16364
16364
|
return ar.error("[asset-handler] Failed to read pasted file", t), null;
|
|
16365
16365
|
}
|
|
16366
16366
|
}
|
|
16367
|
-
var
|
|
16367
|
+
var S5 = class {
|
|
16368
16368
|
constructor(e, t, n, o, s) {
|
|
16369
16369
|
Qe(this, "element", void 0), Qe(this, "onInsertImage", void 0), Qe(this, "onDeleteImage", void 0), Qe(this, "onInsertSound", void 0), Qe(this, "onDeleteSound", void 0), Qe(this, "listeners", []), this.element = e, this.onInsertImage = t, this.onDeleteImage = n, this.onInsertSound = o, this.onDeleteSound = s;
|
|
16370
16370
|
}
|
|
@@ -16417,7 +16417,7 @@ var S7 = class {
|
|
|
16417
16417
|
}), this.listeners = [], ar.debug("[AssetEventManager] All event listeners detached");
|
|
16418
16418
|
}
|
|
16419
16419
|
};
|
|
16420
|
-
function
|
|
16420
|
+
function T5(e) {
|
|
16421
16421
|
return (t) => {
|
|
16422
16422
|
ar.debug("[createDefaultImageInsertHandler] Creating DataURL handler");
|
|
16423
16423
|
let n = null;
|
|
@@ -16459,7 +16459,7 @@ function T7(e) {
|
|
|
16459
16459
|
});
|
|
16460
16460
|
};
|
|
16461
16461
|
}
|
|
16462
|
-
function
|
|
16462
|
+
function w5(e) {
|
|
16463
16463
|
return (t) => {
|
|
16464
16464
|
ar.debug("[createDefaultSoundInsertHandler] Creating DataURL handler");
|
|
16465
16465
|
let n = null;
|
|
@@ -16502,12 +16502,12 @@ function w7(e) {
|
|
|
16502
16502
|
});
|
|
16503
16503
|
};
|
|
16504
16504
|
}
|
|
16505
|
-
function
|
|
16505
|
+
function I5() {
|
|
16506
16506
|
return (e, t) => {
|
|
16507
16507
|
ar.debug("[createDefaultImageDeleteHandler] Delete requested for:", e.substring(0, 50)), t();
|
|
16508
16508
|
};
|
|
16509
16509
|
}
|
|
16510
|
-
function
|
|
16510
|
+
function C5() {
|
|
16511
16511
|
return (e, t) => {
|
|
16512
16512
|
ar.debug("[createDefaultSoundDeleteHandler] Delete requested for:", e.substring(0, 50)), t();
|
|
16513
16513
|
};
|
|
@@ -16525,18 +16525,18 @@ var yi = /* @__PURE__ */ (function(e) {
|
|
|
16525
16525
|
},
|
|
16526
16526
|
eventListeners: {}
|
|
16527
16527
|
};
|
|
16528
|
-
function
|
|
16528
|
+
function N5(e) {
|
|
16529
16529
|
return e && typeof e.pie == "object";
|
|
16530
16530
|
}
|
|
16531
16531
|
function FN(e) {
|
|
16532
16532
|
return typeof e == "function" && "prototype" in e && e.prototype instanceof HTMLElement;
|
|
16533
16533
|
}
|
|
16534
|
-
function
|
|
16534
|
+
function A5(e) {
|
|
16535
16535
|
return e && typeof e.PIE_REGISTRY == "object";
|
|
16536
16536
|
}
|
|
16537
16537
|
var tv = () => {
|
|
16538
16538
|
let e;
|
|
16539
|
-
return
|
|
16539
|
+
return A5(window) ? e = window.PIE_REGISTRY : (e = {}, window.PIE_REGISTRY = e), e;
|
|
16540
16540
|
}, dx = (e) => {
|
|
16541
16541
|
if (!e) throw new Error("Parameter is required: input");
|
|
16542
16542
|
const t = e.charAt(0) === "@" ? e.match(/^(@[^/]+\/[^/@]+)(?:\/([^@]+))?(?:@([\s\S]+))?/) : e.match(/^([^/@]+)(?:\/([^@]+))?(?:@([\s\S]+))?/);
|
|
@@ -16546,7 +16546,7 @@ var tv = () => {
|
|
|
16546
16546
|
path: t[2] || "",
|
|
16547
16547
|
version: t[3] || ""
|
|
16548
16548
|
};
|
|
16549
|
-
},
|
|
16549
|
+
}, R5 = (e) => e.split("+").map((t) => dx(t).name).join("+"), fx = (e, t, n) => {
|
|
16550
16550
|
if (!e) throw new Error("session data is required");
|
|
16551
16551
|
const o = e.find((c) => c.id === t);
|
|
16552
16552
|
if (o) return n && !o.element && (o.element = n), o;
|
|
@@ -16581,14 +16581,14 @@ var tv = () => {
|
|
|
16581
16581
|
function pg(e) {
|
|
16582
16582
|
return !!e && typeof e == "object" && !Array.isArray(e);
|
|
16583
16583
|
}
|
|
16584
|
-
function
|
|
16584
|
+
function _5(e) {
|
|
16585
16585
|
try {
|
|
16586
16586
|
return dx(e).name;
|
|
16587
16587
|
} catch {
|
|
16588
16588
|
return e;
|
|
16589
16589
|
}
|
|
16590
16590
|
}
|
|
16591
|
-
function
|
|
16591
|
+
function O5(e) {
|
|
16592
16592
|
return e.split("/").pop() || e;
|
|
16593
16593
|
}
|
|
16594
16594
|
function UN(e, t) {
|
|
@@ -16596,15 +16596,15 @@ function UN(e, t) {
|
|
|
16596
16596
|
for (const n of t) if (Object.prototype.hasOwnProperty.call(e, n)) return e[n];
|
|
16597
16597
|
}
|
|
16598
16598
|
}
|
|
16599
|
-
function
|
|
16599
|
+
function x5(e, t) {
|
|
16600
16600
|
return t === void 0 ? e ?? {} : pg(e) && pg(t) ? {
|
|
16601
16601
|
...e,
|
|
16602
16602
|
...t
|
|
16603
16603
|
} : t;
|
|
16604
16604
|
}
|
|
16605
16605
|
function hx(e, t, n) {
|
|
16606
|
-
const o =
|
|
16607
|
-
return
|
|
16606
|
+
const o = _5(n), s = O5(o);
|
|
16607
|
+
return x5(UN(e, [
|
|
16608
16608
|
n,
|
|
16609
16609
|
o,
|
|
16610
16610
|
t
|
|
@@ -16622,7 +16622,7 @@ function px(e, t) {
|
|
|
16622
16622
|
function mx(e, t) {
|
|
16623
16623
|
return Array.from(e.querySelectorAll(t));
|
|
16624
16624
|
}
|
|
16625
|
-
function
|
|
16625
|
+
function M5(e, t = {}, n) {
|
|
16626
16626
|
const o = n.container ?? document, s = [];
|
|
16627
16627
|
if (la.debug("[initializeAuthoringConfigures] Starting initialization"), la.debug("[initializeAuthoringConfigures] Config:", e), la.debug("[initializeAuthoringConfigures] Configuration:", t), la.debug("[initializeAuthoringConfigures] Env:", n.env), !e?.elements || !e?.models) return la.warn("[initializeAuthoringConfigures] Invalid config - missing elements or models"), s;
|
|
16628
16628
|
for (const [c, d] of Object.entries(e.elements)) {
|
|
@@ -16645,10 +16645,10 @@ function M7(e, t = {}, n) {
|
|
|
16645
16645
|
}
|
|
16646
16646
|
return la.debug("[initializeAuthoringConfigures] Initialization complete"), s;
|
|
16647
16647
|
}
|
|
16648
|
-
function
|
|
16648
|
+
function k5(e) {
|
|
16649
16649
|
return nv(e.localName);
|
|
16650
16650
|
}
|
|
16651
|
-
function
|
|
16651
|
+
function P5(e) {
|
|
16652
16652
|
if (!e || typeof e != "object") return !1;
|
|
16653
16653
|
const t = e;
|
|
16654
16654
|
if (t.hasErrors === !0) return !0;
|
|
@@ -16666,7 +16666,7 @@ async function BN(e, t = {}, n = {}) {
|
|
|
16666
16666
|
for (const p of f) {
|
|
16667
16667
|
const g = px(e.models, p);
|
|
16668
16668
|
if (!g) continue;
|
|
16669
|
-
const m =
|
|
16669
|
+
const m = k5(p), y = hx(t, c, String(d)), E = typeof m?.validate == "function" ? await m.validate(g, y) : void 0;
|
|
16670
16670
|
s.push({
|
|
16671
16671
|
...g,
|
|
16672
16672
|
...pg(E) ? E : {},
|
|
@@ -16677,15 +16677,15 @@ async function BN(e, t = {}, n = {}) {
|
|
|
16677
16677
|
}
|
|
16678
16678
|
}
|
|
16679
16679
|
return {
|
|
16680
|
-
hasErrors: s.some((c) =>
|
|
16680
|
+
hasErrors: s.some((c) => P5(c.validation)),
|
|
16681
16681
|
validatedModels: s
|
|
16682
16682
|
};
|
|
16683
16683
|
}
|
|
16684
16684
|
function Vp(e) {
|
|
16685
16685
|
return e instanceof Error ? e : new Error(String(e ?? "Unknown authoring error"));
|
|
16686
16686
|
}
|
|
16687
|
-
function
|
|
16688
|
-
return new
|
|
16687
|
+
function L5(e, t, n) {
|
|
16688
|
+
return new S5(e, t.onInsertImage ? (o) => {
|
|
16689
16689
|
try {
|
|
16690
16690
|
t.onInsertImage?.(o);
|
|
16691
16691
|
} catch (s) {
|
|
@@ -16719,13 +16719,13 @@ var sb = Jo("configure-init", () => Lo());
|
|
|
16719
16719
|
function HN(e, t, n) {
|
|
16720
16720
|
if (sb.debug("[initializeConfiguresFromLoadedBundle] Starting initialization"), !e?.elements || !e?.models) return sb.warn("[initializeConfiguresFromLoadedBundle] Invalid config - missing elements or models"), [];
|
|
16721
16721
|
tv();
|
|
16722
|
-
const o =
|
|
16722
|
+
const o = M5(e, t, n);
|
|
16723
16723
|
return sb.debug("[initializeConfiguresFromLoadedBundle] Initialization complete"), o;
|
|
16724
16724
|
}
|
|
16725
|
-
var
|
|
16725
|
+
var D5 = (e) => e.mode !== "evaluate", $5 = (e) => ({
|
|
16726
16726
|
...e,
|
|
16727
16727
|
role: "instructor"
|
|
16728
|
-
}),
|
|
16728
|
+
}), F5 = "https://proxy.pie-api.com/bundles/";
|
|
16729
16729
|
function gx(e) {
|
|
16730
16730
|
try {
|
|
16731
16731
|
const t = {
|
|
@@ -16740,12 +16740,12 @@ function gx(e) {
|
|
|
16740
16740
|
}
|
|
16741
16741
|
}
|
|
16742
16742
|
typeof window < "u" && window.PIE_BUILDER_ORIGIN_URL || gx("PUBLIC_BUILDER_ORIGIN_URL");
|
|
16743
|
-
var
|
|
16743
|
+
var U5 = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || gx("PUBLIC_BUILDER_BUNDLE_URL") || F5, dT = (...e) => e.reduce((t, n) => {
|
|
16744
16744
|
for (const o in n) Object.hasOwn(n, o) && n[o] !== null && n[o] !== void 0 && (t[o] = n[o]);
|
|
16745
16745
|
return t;
|
|
16746
16746
|
}, {});
|
|
16747
16747
|
Jo("math-rendering", () => Lo());
|
|
16748
|
-
var
|
|
16748
|
+
var B5 = /* @__PURE__ */ new Set([
|
|
16749
16749
|
"annotation-xml",
|
|
16750
16750
|
"color-profile",
|
|
16751
16751
|
"font-face",
|
|
@@ -16754,16 +16754,16 @@ var B7 = /* @__PURE__ */ new Set([
|
|
|
16754
16754
|
"font-face-format",
|
|
16755
16755
|
"font-face-name",
|
|
16756
16756
|
"missing-glyph"
|
|
16757
|
-
]),
|
|
16757
|
+
]), H5 = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, fT = (e, t = "custom element tag") => {
|
|
16758
16758
|
if (!e || typeof e != "string") throw new Error(`Invalid ${t}: expected a non-empty string`);
|
|
16759
16759
|
const n = e.trim();
|
|
16760
16760
|
if (!n) throw new Error(`Invalid ${t}: tag is empty`);
|
|
16761
16761
|
if (n !== n.toLowerCase()) throw new Error(`Invalid ${t} "${n}": custom element names must be lowercase`);
|
|
16762
16762
|
if (!n.includes("-")) throw new Error(`Invalid ${t} "${n}": custom element names must include a hyphen`);
|
|
16763
|
-
if (
|
|
16764
|
-
if (!
|
|
16763
|
+
if (B5.has(n)) throw new Error(`Invalid ${t} "${n}": this name is reserved by the HTML spec`);
|
|
16764
|
+
if (!H5.test(n)) throw new Error(`Invalid ${t} "${n}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
|
|
16765
16765
|
return n;
|
|
16766
|
-
},
|
|
16766
|
+
}, j5 = (e) => typeof DOMException < "u" && e instanceof DOMException ? e.name === "NotSupportedError" || e.code === DOMException.NOT_SUPPORTED_ERR : (typeof e == "object" && e !== null && "name" in e ? String(e.name) : "") === "NotSupportedError", jN = (e, t, n = "custom element tag") => {
|
|
16767
16767
|
const o = fT(e, n);
|
|
16768
16768
|
if (customElements.get(o)) return {
|
|
16769
16769
|
status: "already-defined",
|
|
@@ -16775,7 +16775,7 @@ var B7 = /* @__PURE__ */ new Set([
|
|
|
16775
16775
|
tagName: o
|
|
16776
16776
|
};
|
|
16777
16777
|
} catch (s) {
|
|
16778
|
-
if (!
|
|
16778
|
+
if (!j5(s)) throw s;
|
|
16779
16779
|
if (customElements.get(o)) return {
|
|
16780
16780
|
status: "already-defined",
|
|
16781
16781
|
tagName: o
|
|
@@ -16788,7 +16788,7 @@ var B7 = /* @__PURE__ */ new Set([
|
|
|
16788
16788
|
if (typeof e != "object") return typeof e;
|
|
16789
16789
|
const t = Object.keys(e), n = e.default, o = n && typeof n == "object" ? Object.keys(n) : [];
|
|
16790
16790
|
return o.length > 0 ? `object(keys=[${t.join(",")}],defaultKeys=[${o.join(",")}])` : `object(keys=[${t.join(",")}])`;
|
|
16791
|
-
},
|
|
16791
|
+
}, z5 = (e) => {
|
|
16792
16792
|
if (!e) return null;
|
|
16793
16793
|
if (typeof e == "function") return e;
|
|
16794
16794
|
if (typeof e != "object") return null;
|
|
@@ -16800,13 +16800,13 @@ var B7 = /* @__PURE__ */ new Set([
|
|
|
16800
16800
|
if (typeof o == "function") return (s, c, d, f) => o.call(n, s, c, d, f);
|
|
16801
16801
|
}
|
|
16802
16802
|
return null;
|
|
16803
|
-
},
|
|
16803
|
+
}, W5 = (e, t) => {
|
|
16804
16804
|
e.dispatchEvent(new CustomEvent("pie-controller-error", {
|
|
16805
16805
|
detail: t,
|
|
16806
16806
|
bubbles: !0,
|
|
16807
16807
|
composed: !0
|
|
16808
16808
|
}));
|
|
16809
|
-
},
|
|
16809
|
+
}, V5 = async (e, t, n, o, s, c) => {
|
|
16810
16810
|
gi.debug(`${c} Using controller, env:`, s), gi.debug(`${c} Model before filter:`, {
|
|
16811
16811
|
id: t.id,
|
|
16812
16812
|
element: t.element,
|
|
@@ -16814,7 +16814,7 @@ var B7 = /* @__PURE__ */ new Set([
|
|
|
16814
16814
|
});
|
|
16815
16815
|
const d = (f, p, g) => (gi.debug(`${c} updateSession called for ${f} with:`, g), Object.assign(n, g), Promise.resolve());
|
|
16816
16816
|
try {
|
|
16817
|
-
const f =
|
|
16817
|
+
const f = z5(o);
|
|
16818
16818
|
if (!f) throw new Error(`Controller contract mismatch: expected a model() function but received ${vx(o)}`);
|
|
16819
16819
|
const p = await f(t, n, s, d), g = p && typeof p == "object" ? p : {}, m = {
|
|
16820
16820
|
id: t.id,
|
|
@@ -16831,7 +16831,7 @@ var B7 = /* @__PURE__ */ new Set([
|
|
|
16831
16831
|
} catch (f) {
|
|
16832
16832
|
throw gi.error(`${c} ❌ Controller error:`, f), f;
|
|
16833
16833
|
}
|
|
16834
|
-
},
|
|
16834
|
+
}, q5 = (e) => {
|
|
16835
16835
|
const { config: t, session: n, env: o, eventListeners: s, invokeControllerForModel: c } = dT(ux, e);
|
|
16836
16836
|
if (!o) throw new Error("env is required");
|
|
16837
16837
|
if (!n) throw new Error("session is required");
|
|
@@ -16843,7 +16843,7 @@ var B7 = /* @__PURE__ */ new Set([
|
|
|
16843
16843
|
eventListeners: s,
|
|
16844
16844
|
invokeControllerForModel: c
|
|
16845
16845
|
};
|
|
16846
|
-
},
|
|
16846
|
+
}, G5 = (e, t, n, o) => {
|
|
16847
16847
|
const { config: s, session: c, env: d, eventListeners: f, invokeControllerForModel: p } = n, g = s.models?.find((y) => y.id === e.id);
|
|
16848
16848
|
if (!g) throw gi.error(`${o} Model not found for`, t), /* @__PURE__ */ new Error(`model not found for ${t}`);
|
|
16849
16849
|
const m = fx(c, g.id, g.element);
|
|
@@ -16859,9 +16859,9 @@ var B7 = /* @__PURE__ */ new Set([
|
|
|
16859
16859
|
mode: d.mode,
|
|
16860
16860
|
role: d.role,
|
|
16861
16861
|
hasCorrectResponse: "correctResponse" in g
|
|
16862
|
-
}),
|
|
16862
|
+
}), V5(e, g, m, y, d, `${o}(${t}#${e.id})`).catch((E) => {
|
|
16863
16863
|
const S = E instanceof Error ? E.message : String(E), N = S.includes("Controller contract mismatch");
|
|
16864
|
-
gi.error(`${o} Controller failed for ${t}#${e.id}:`, E),
|
|
16864
|
+
gi.error(`${o} Controller failed for ${t}#${e.id}:`, E), W5(e, {
|
|
16865
16865
|
code: N ? "PIE_CONTROLLER_CONTRACT_ERROR" : "PIE_CONTROLLER_RUNTIME_ERROR",
|
|
16866
16866
|
message: `${t} controller failed while applying model for ${e.id}. ${S}`,
|
|
16867
16867
|
elementName: t,
|
|
@@ -16872,13 +16872,13 @@ var B7 = /* @__PURE__ */ new Set([
|
|
|
16872
16872
|
});
|
|
16873
16873
|
} else gi.debug(`${o} Direct model assignment for ${t}#${e.id} (no controller invocation requested)`), e.model = g, e.session = m;
|
|
16874
16874
|
}, yx = (e, t) => {
|
|
16875
|
-
const n =
|
|
16875
|
+
const n = q5(t), { container: o } = dT(ux, t), s = (o || document).querySelectorAll(e);
|
|
16876
16876
|
if (!s || s.length === 0) {
|
|
16877
16877
|
gi.debug(`no elements found for ${e}`);
|
|
16878
16878
|
return;
|
|
16879
16879
|
}
|
|
16880
16880
|
s.forEach((c) => {
|
|
16881
|
-
|
|
16881
|
+
G5(c, e, n, "[updatePieElement]");
|
|
16882
16882
|
});
|
|
16883
16883
|
}, Iu = (e, t, n, o) => {
|
|
16884
16884
|
gi.debug("[updatePieElements] Updating all elements with env:", n), Object.entries(e.elements).forEach(([s, c]) => {
|
|
@@ -16889,8 +16889,8 @@ var B7 = /* @__PURE__ */ new Set([
|
|
|
16889
16889
|
container: o
|
|
16890
16890
|
});
|
|
16891
16891
|
});
|
|
16892
|
-
}, Dn = Jo("pie-initialization", () => Lo()),
|
|
16893
|
-
buildServiceBase:
|
|
16892
|
+
}, Dn = Jo("pie-initialization", () => Lo()), Y5 = {
|
|
16893
|
+
buildServiceBase: U5,
|
|
16894
16894
|
bundleType: yi.player,
|
|
16895
16895
|
env: {
|
|
16896
16896
|
mode: "gather",
|
|
@@ -16920,7 +16920,7 @@ var B7 = /* @__PURE__ */ new Set([
|
|
|
16920
16920
|
}), e.model = f), c && Object.entries(c).forEach(([m, y]) => {
|
|
16921
16921
|
e.addEventListener(m, y);
|
|
16922
16922
|
});
|
|
16923
|
-
}, zN = (e, t) => fT(e +
|
|
16923
|
+
}, zN = (e, t) => fT(e + E5, `editor element tag for ${t}`), WN = (e, t, n, o, s = !1) => {
|
|
16924
16924
|
yx(e, {
|
|
16925
16925
|
config: t,
|
|
16926
16926
|
session: n,
|
|
@@ -16945,7 +16945,7 @@ var B7 = /* @__PURE__ */ new Set([
|
|
|
16945
16945
|
Dn.warn(`[registerPieElementsFromBundle] Skipping "${g}" — no bundle module available and the tag is not yet registered. Will bind on next update if the host's loader registers it.`);
|
|
16946
16946
|
return;
|
|
16947
16947
|
}
|
|
16948
|
-
const m =
|
|
16948
|
+
const m = R5(p);
|
|
16949
16949
|
Dn.debug(`[registerPieElementsFromBundle] Package without version: "${m}"`);
|
|
16950
16950
|
const y = e[m];
|
|
16951
16951
|
if (Dn.debug("[registerPieElementsFromBundle] elementData result:", y ? "FOUND" : "UNDEFINED"), !y) throw Dn.error(`[registerPieElementsFromBundle] ❌ Package "${m}" not found in bundle!`), Dn.error(`[registerPieElementsFromBundle] Lookup key: "${m}"`), Dn.error("[registerPieElementsFromBundle] Available packages:", Object.keys(e)), /* @__PURE__ */ new Error(`pie ${m} not found in ${Object.keys(e)}`);
|
|
@@ -17022,15 +17022,15 @@ var B7 = /* @__PURE__ */ new Set([
|
|
|
17022
17022
|
} else Dn.error(`[registerPieElementsFromBundle] pie.Element for ${m} is not a valid custom element constructor.`);
|
|
17023
17023
|
}), c;
|
|
17024
17024
|
}, qN = (e, t, n = {}) => {
|
|
17025
|
-
const o = tv(), s = dT(
|
|
17026
|
-
if (
|
|
17025
|
+
const o = tv(), s = dT(Y5, n);
|
|
17026
|
+
if (N5(window)) {
|
|
17027
17027
|
Dn.debug("[initializePiesFromLoadedBundle] window.pie available");
|
|
17028
17028
|
const c = window.pie.default;
|
|
17029
17029
|
VN(c, e, t, o, s);
|
|
17030
17030
|
return;
|
|
17031
17031
|
}
|
|
17032
17032
|
Dn.debug("[initializePiesFromLoadedBundle] window.pie not present; using update-only path. Already-registered tags will be bound now; missing tags are expected to be registered by the host's loader and will bind on the next update pass."), VN(null, e, t, o, s);
|
|
17033
|
-
},
|
|
17033
|
+
}, K5 = class {
|
|
17034
17034
|
constructor() {
|
|
17035
17035
|
Qe(this, "initialized", !1), Qe(this, "config", void 0);
|
|
17036
17036
|
}
|
|
@@ -17092,7 +17092,7 @@ var B7 = /* @__PURE__ */ new Set([
|
|
|
17092
17092
|
transformAttributes(e) {
|
|
17093
17093
|
return this.config?.attributeTransformer ? this.config.attributeTransformer(e) : e;
|
|
17094
17094
|
}
|
|
17095
|
-
}, bx = class extends
|
|
17095
|
+
}, bx = class extends K5 {
|
|
17096
17096
|
constructor(...e) {
|
|
17097
17097
|
super(...e), Qe(this, "providerId", "newrelic"), Qe(this, "providerName", "New Relic");
|
|
17098
17098
|
}
|
|
@@ -17140,21 +17140,21 @@ function XN(e) {
|
|
|
17140
17140
|
const t = e.trackPageActions;
|
|
17141
17141
|
return typeof t == "boolean" ? t : void 0;
|
|
17142
17142
|
}
|
|
17143
|
-
function
|
|
17143
|
+
function X5(e, t) {
|
|
17144
17144
|
return e.kind === "value" || e.kind === "null" ? e : t;
|
|
17145
17145
|
}
|
|
17146
|
-
var qp,
|
|
17147
|
-
function
|
|
17146
|
+
var qp, J5 = Jo("instrumentation-provider-resolution", () => Lo());
|
|
17147
|
+
function Q5() {
|
|
17148
17148
|
return qp || (qp = new bx(), qp.initialize()), qp;
|
|
17149
17149
|
}
|
|
17150
|
-
function
|
|
17151
|
-
const t = YN(e.runtimePlayer), n = YN(e.player), o = XN(t), s = XN(n), c = o ?? s ?? !1, d =
|
|
17150
|
+
function Z5(e) {
|
|
17151
|
+
const t = YN(e.runtimePlayer), n = YN(e.player), o = XN(t), s = XN(n), c = o ?? s ?? !1, d = X5(KN(t), KN(n));
|
|
17152
17152
|
if (d.kind !== "null") {
|
|
17153
|
-
if (d.kind === "unset") return c ?
|
|
17153
|
+
if (d.kind === "unset") return c ? Q5() : void 0;
|
|
17154
17154
|
if (ev(d.value)) return d.value;
|
|
17155
17155
|
if (e.debug) {
|
|
17156
17156
|
const f = e.component ? `[${e.component}] ` : "";
|
|
17157
|
-
|
|
17157
|
+
J5.warn(`${f}Ignoring invalid instrumentation provider; expected InstrumentationProvider contract`);
|
|
17158
17158
|
}
|
|
17159
17159
|
}
|
|
17160
17160
|
}
|
|
@@ -17166,7 +17166,7 @@ var Tf = {
|
|
|
17166
17166
|
initialRetryDelay: 500,
|
|
17167
17167
|
maxRetryDelay: 5e3,
|
|
17168
17168
|
debug: !1
|
|
17169
|
-
},
|
|
17169
|
+
}, e7 = 80, t7 = 1200, n7 = 75, r7 = class {
|
|
17170
17170
|
constructor(e = {}) {
|
|
17171
17171
|
Qe(this, "config", void 0), Qe(this, "logger", void 0), Qe(this, "observer", null), Qe(this, "mutationObserver", null), Qe(this, "errorHandler", null), Qe(this, "retryAttempts", /* @__PURE__ */ new Map()), Qe(this, "retryTargets", /* @__PURE__ */ new Map()), Qe(this, "container", null), Qe(this, "isBrowser", void 0), Qe(this, "containerResources", /* @__PURE__ */ new Set()), Qe(this, "provider", void 0), Qe(this, "ownsProvider", void 0), Qe(this, "manageProviderLifecycle", void 0), Qe(this, "started", !1), Qe(this, "lifecycleVersion", 0), Qe(this, "pendingRetryTimers", /* @__PURE__ */ new Map()), Qe(this, "retryInFlight", /* @__PURE__ */ new Set()), Qe(this, "pendingMediaChecks", /* @__PURE__ */ new Map());
|
|
17172
17172
|
const t = ev(e.instrumentationProvider) ? e.instrumentationProvider : void 0, n = !!t, o = e.manageProviderLifecycle ?? !n;
|
|
@@ -17186,7 +17186,7 @@ var Tf = {
|
|
|
17186
17186
|
return this.config.debug || Lo();
|
|
17187
17187
|
}
|
|
17188
17188
|
truncateUrl(e) {
|
|
17189
|
-
return e.length >
|
|
17189
|
+
return e.length > e7 ? "..." + e.slice(-77) : e;
|
|
17190
17190
|
}
|
|
17191
17191
|
getOriginalUrl(e) {
|
|
17192
17192
|
try {
|
|
@@ -17503,7 +17503,7 @@ var Tf = {
|
|
|
17503
17503
|
return;
|
|
17504
17504
|
}
|
|
17505
17505
|
this.isMediaRetryRecovered(e) && (this.dispatchEvent("pie-resource-load-success", t), this.finalizeRetrySuccess(e, t));
|
|
17506
|
-
},
|
|
17506
|
+
}, n7), d = setTimeout(() => {
|
|
17507
17507
|
if (!this.isLifecycleActive(n)) {
|
|
17508
17508
|
this.clearPendingMediaCheck(e);
|
|
17509
17509
|
return;
|
|
@@ -17513,7 +17513,7 @@ var Tf = {
|
|
|
17513
17513
|
return;
|
|
17514
17514
|
}
|
|
17515
17515
|
this.clearPendingMediaCheck(e), this.handleMediaRetryReconciliationTimeout(e, t);
|
|
17516
|
-
},
|
|
17516
|
+
}, t7);
|
|
17517
17517
|
for (const { mediaEl: f } of o) {
|
|
17518
17518
|
const p = () => {
|
|
17519
17519
|
this.isLifecycleActive(n) && this.retryAttempts.has(e) && this.isMediaRetryRecovered(e) && (this.dispatchEvent("pie-resource-load-success", t), this.finalizeRetrySuccess(e, t));
|
|
@@ -17779,8 +17779,8 @@ var Tf = {
|
|
|
17779
17779
|
failedResources: e.sort((t, n) => n.attempts - t.attempts)
|
|
17780
17780
|
};
|
|
17781
17781
|
}
|
|
17782
|
-
},
|
|
17783
|
-
function
|
|
17782
|
+
}, o7 = 5e3;
|
|
17783
|
+
function i7(e, t, n, o = "pie-player") {
|
|
17784
17784
|
const s = Jo("use-resource-monitor", n);
|
|
17785
17785
|
let c = /* @__PURE__ */ un(null), d = /* @__PURE__ */ un(!1), f = /* @__PURE__ */ un(null), p = /* @__PURE__ */ un(""), g = /* @__PURE__ */ un(void 0);
|
|
17786
17786
|
return go(() => {
|
|
@@ -17807,12 +17807,12 @@ function i5(e, t, n, o = "pie-player") {
|
|
|
17807
17807
|
retryDelay: R,
|
|
17808
17808
|
hasCustomProvider: !!x,
|
|
17809
17809
|
hasContainer: !!m
|
|
17810
|
-
}), yt(c, new
|
|
17810
|
+
}), yt(c, new r7({
|
|
17811
17811
|
trackPageActions: S,
|
|
17812
17812
|
instrumentationProvider: x,
|
|
17813
17813
|
maxRetries: N,
|
|
17814
17814
|
initialRetryDelay: R,
|
|
17815
|
-
maxRetryDelay:
|
|
17815
|
+
maxRetryDelay: o7,
|
|
17816
17816
|
debug: E
|
|
17817
17817
|
}), !0), ie(c).start(m), yt(d, !0), yt(f, m, !0), yt(g, x, !0), yt(p, k, !0), s.info(`✅ Resource monitoring enabled for ${o}` + (S ? x ? " (with custom instrumentation provider)" : " (with New Relic tracking)" : " (retry only)")));
|
|
17818
17818
|
});
|
|
@@ -17836,7 +17836,7 @@ function i5(e, t, n, o = "pie-player") {
|
|
|
17836
17836
|
}
|
|
17837
17837
|
};
|
|
17838
17838
|
}
|
|
17839
|
-
var
|
|
17839
|
+
var s7 = /* @__PURE__ */ Xo(`<div class="pie-player-error" style="
|
|
17840
17840
|
padding: 20px;
|
|
17841
17841
|
margin: 20px 0;
|
|
17842
17842
|
border: 2px solid #d32f2f;
|
|
@@ -17844,7 +17844,7 @@ var s5 = /* @__PURE__ */ Xo(`<div class="pie-player-error" style="
|
|
|
17844
17844
|
background-color: #ffebee;
|
|
17845
17845
|
color: #c62828;
|
|
17846
17846
|
font-family: sans-serif;
|
|
17847
|
-
"><h3 style="margin: 0 0 10px 0">Player Error</h3> <p style="margin: 0"> </p></div>`),
|
|
17847
|
+
"><h3 style="margin: 0 0 10px 0">Player Error</h3> <p style="margin: 0"> </p></div>`), a7 = /* @__PURE__ */ Xo(`<div class="pie-player-error" style="
|
|
17848
17848
|
padding: 20px;
|
|
17849
17849
|
margin: 20px 0;
|
|
17850
17850
|
border: 2px solid #d32f2f;
|
|
@@ -17852,13 +17852,13 @@ var s5 = /* @__PURE__ */ Xo(`<div class="pie-player-error" style="
|
|
|
17852
17852
|
background-color: #ffebee;
|
|
17853
17853
|
color: #c62828;
|
|
17854
17854
|
font-family: sans-serif;
|
|
17855
|
-
"><h3 style="margin: 0 0 10px 0">Authoring Backend Configuration Error</h3> <p style="margin: 0"> </p></div>`), JN = /* @__PURE__ */ Xo("<div></div>"),
|
|
17856
|
-
hash: "svelte-
|
|
17857
|
-
code: `.pie-item-player.svelte-
|
|
17858
|
-
.pie-item-container.svelte-
|
|
17855
|
+
"><h3 style="margin: 0 0 10px 0">Authoring Backend Configuration Error</h3> <p style="margin: 0"> </p></div>`), JN = /* @__PURE__ */ Xo("<div></div>"), l7 = /* @__PURE__ */ Xo("<div><!> <!> <!></div>"), c7 = {
|
|
17856
|
+
hash: "svelte-1c9l227",
|
|
17857
|
+
code: `.pie-item-player.svelte-1c9l227 {display:block;width:100%;}.pie-passage-container.svelte-1c9l227,
|
|
17858
|
+
.pie-item-container.svelte-1c9l227 {display:block;width:100%;}.pie-item-player--resize-allowed.svelte-1c9l227 .pie-passage-container:where(.svelte-1c9l227) {max-width:100%;overflow:auto;resize:horizontal;}`
|
|
17859
17859
|
};
|
|
17860
17860
|
function hT(e, t) {
|
|
17861
|
-
pl(t, !0), Rd(e,
|
|
17861
|
+
pl(t, !0), Rd(e, c7);
|
|
17862
17862
|
const n = Jo("pie-item-player", () => Lo());
|
|
17863
17863
|
let o = at(t, "itemConfig", 7), s = at(t, "passageConfig", 7, null), c = at(t, "env", 23, () => ({
|
|
17864
17864
|
mode: "gather",
|
|
@@ -17882,7 +17882,7 @@ function hT(e, t) {
|
|
|
17882
17882
|
return DN(Object.keys(fe));
|
|
17883
17883
|
});
|
|
17884
17884
|
function Re(fe, xe) {
|
|
17885
|
-
return fe ? k() ? fe : Q() ? Q()(fe) :
|
|
17885
|
+
return fe ? k() ? fe : Q() ? Q()(fe) : b5({ allowedCustomElements: xe })(fe) : "";
|
|
17886
17886
|
}
|
|
17887
17887
|
const ye = /* @__PURE__ */ gn(() => o()?.markup ? Re(N() === "author" && o().elements ? W(o().markup, o().elements) : o().markup, ie(le)) : ""), Ke = /* @__PURE__ */ gn(() => s()?.markup ? Re(N() === "author" && s().elements ? W(s().markup, s().elements) : s().markup, ie(pe)) : "");
|
|
17888
17888
|
function me(fe, xe = "ITEM_PLAYER_RUNTIME_ERROR") {
|
|
@@ -17900,7 +17900,7 @@ function hT(e, t) {
|
|
|
17900
17900
|
};
|
|
17901
17901
|
}
|
|
17902
17902
|
function qe(fe) {
|
|
17903
|
-
const xe =
|
|
17903
|
+
const xe = Z5({
|
|
17904
17904
|
player: { loaderConfig: S() },
|
|
17905
17905
|
component: "pie-item-player",
|
|
17906
17906
|
debug: Lo()
|
|
@@ -17957,14 +17957,14 @@ function hT(e, t) {
|
|
|
17957
17957
|
onInsertSound: U(),
|
|
17958
17958
|
onDeleteSound: oe()
|
|
17959
17959
|
} : (n.warn("[PieItemPlayer] Authoring backend mode is 'demo'. Using non-production media handlers."), {
|
|
17960
|
-
onInsertImage:
|
|
17960
|
+
onInsertImage: T5((fe) => {
|
|
17961
17961
|
n.debug("[PieItemPlayer] Demo image insert completed:", fe);
|
|
17962
17962
|
}),
|
|
17963
|
-
onDeleteImage:
|
|
17964
|
-
onInsertSound:
|
|
17963
|
+
onDeleteImage: I5(),
|
|
17964
|
+
onInsertSound: w5((fe) => {
|
|
17965
17965
|
n.debug("[PieItemPlayer] Demo sound insert completed:", fe);
|
|
17966
17966
|
}),
|
|
17967
|
-
onDeleteSound:
|
|
17967
|
+
onDeleteSound: C5()
|
|
17968
17968
|
});
|
|
17969
17969
|
}
|
|
17970
17970
|
async function Fe() {
|
|
@@ -17983,11 +17983,11 @@ function hT(e, t) {
|
|
|
17983
17983
|
}
|
|
17984
17984
|
async function lt(fe = !1) {
|
|
17985
17985
|
if (!f() || !o() || ie(He) && !fe) return;
|
|
17986
|
-
if (!
|
|
17986
|
+
if (!D5(c())) {
|
|
17987
17987
|
n.debug("[PieItemPlayer] Skipping populateCorrectResponses - env not suitable (mode=%s)", c().mode);
|
|
17988
17988
|
return;
|
|
17989
17989
|
}
|
|
17990
|
-
const xe = $
|
|
17990
|
+
const xe = $5(c()), ot = [];
|
|
17991
17991
|
for (const Ot of o().models) {
|
|
17992
17992
|
const ln = nv(Ot.element);
|
|
17993
17993
|
if (n.debug("[PieItemPlayer] Controller lookup for %s: %s (createCorrectResponseSession=%s)", Ot.element, ln ? "FOUND" : "NOT FOUND", ln ? "YES" : "NO"), ln && ln.createCorrectResponseSession) try {
|
|
@@ -18032,7 +18032,7 @@ function hT(e, t) {
|
|
|
18032
18032
|
y()
|
|
18033
18033
|
].filter(Boolean).join(" ")), Mt = /* @__PURE__ */ gn(() => ["pie-item-player", p() ? "pie-item-player--resize-allowed" : ""].filter(Boolean).join(" "));
|
|
18034
18034
|
let nt = /* @__PURE__ */ un(!1), _t = /* @__PURE__ */ un(!1), _e = /* @__PURE__ */ un(null), Xe = /* @__PURE__ */ un(!1), ht = /* @__PURE__ */ un(""), q = /* @__PURE__ */ un(null);
|
|
18035
|
-
|
|
18035
|
+
i7(() => ie(q), () => S(), () => Lo(), "pie-item-player"), go(() => {
|
|
18036
18036
|
!o() || ie(nt) || (n.debug("[PieItemPlayer] Item config received, initializing after DOM renders..."), n.debug("[PieItemPlayer] Mode:", N()), EE().then(async () => {
|
|
18037
18037
|
try {
|
|
18038
18038
|
if (yt(X, null), n.debug("[PieItemPlayer] DOM ready, initializing PIE elements"), n.debug("[PieItemPlayer] Config:", {
|
|
@@ -18065,7 +18065,7 @@ function hT(e, t) {
|
|
|
18065
18065
|
})), n.debug("[PieItemPlayer] Passage configure elements initialized")), ke("model-loaded", {
|
|
18066
18066
|
models: ot,
|
|
18067
18067
|
configuration: R()
|
|
18068
|
-
}), ie(q) && fe && (yt(Z,
|
|
18068
|
+
}), ie(q) && fe && (yt(Z, L5(ie(q), fe, (Ze, Ot) => {
|
|
18069
18069
|
n.error(`[PieItemPlayer] ${Ze} failed:`, Ot);
|
|
18070
18070
|
}), !0), ie(Z).attach(), n.debug("[PieItemPlayer] Asset event manager attached"));
|
|
18071
18071
|
} else n.debug("[PieItemPlayer] Initializing in view mode"), qN(o(), [], {
|
|
@@ -18344,30 +18344,30 @@ function hT(e, t) {
|
|
|
18344
18344
|
set includeSrHeading(fe = !0) {
|
|
18345
18345
|
Be(fe), it();
|
|
18346
18346
|
}
|
|
18347
|
-
}, Ge =
|
|
18348
|
-
var xe =
|
|
18347
|
+
}, Ge = l7(), Lt = $r(Ge), rt = (fe) => {
|
|
18348
|
+
var xe = s7(), ot = es($r(xe), 2), Ze = $r(ot, !0);
|
|
18349
18349
|
Nr(ot), Nr(xe), vo(() => ih(Ze, ie(X))), Xr(fe, xe);
|
|
18350
18350
|
};
|
|
18351
18351
|
Gu(Lt, (fe) => {
|
|
18352
18352
|
ie(X) && fe(rt);
|
|
18353
18353
|
});
|
|
18354
18354
|
var Dt = es(Lt, 2), dt = (fe) => {
|
|
18355
|
-
var xe =
|
|
18355
|
+
var xe = a7(), ot = es($r(xe), 2), Ze = $r(ot, !0);
|
|
18356
18356
|
Nr(ot), Nr(xe), vo(() => ih(Ze, ie(de))), Xr(fe, xe);
|
|
18357
18357
|
}, kt = (fe) => {
|
|
18358
18358
|
var xe = JN();
|
|
18359
|
-
QC(xe, () => ie(Ke), !0), Nr(xe), vo(() => il(xe, 1, Yy(ie(mt)), "svelte-
|
|
18359
|
+
QC(xe, () => ie(Ke), !0), Nr(xe), vo(() => il(xe, 1, Yy(ie(mt)), "svelte-1c9l227")), Xr(fe, xe);
|
|
18360
18360
|
};
|
|
18361
18361
|
Gu(Dt, (fe) => {
|
|
18362
18362
|
ie(de) ? fe(dt) : ie(Ke) && fe(kt, 1);
|
|
18363
18363
|
});
|
|
18364
18364
|
var Ft = es(Dt, 2), Jt = (fe) => {
|
|
18365
18365
|
var xe = JN();
|
|
18366
|
-
QC(xe, () => ie(ye), !0), Nr(xe), vo(() => il(xe, 1, Yy(ie(ut)), "svelte-
|
|
18366
|
+
QC(xe, () => ie(ye), !0), Nr(xe), vo(() => il(xe, 1, Yy(ie(ut)), "svelte-1c9l227")), Xr(fe, xe);
|
|
18367
18367
|
};
|
|
18368
18368
|
return Gu(Ft, (fe) => {
|
|
18369
18369
|
!ie(de) && ie(ye) && fe(Jt);
|
|
18370
|
-
}), Nr(Ge), sh(Ge, (fe) => yt(q, fe), () => ie(q)), vo(() => il(Ge, 1, Yy(ie(Mt)), "svelte-
|
|
18370
|
+
}), Nr(Ge), sh(Ge, (fe) => yt(q, fe), () => ie(q)), vo(() => il(Ge, 1, Yy(ie(Mt)), "svelte-1c9l227")), Xr(e, Ge), ml(Le);
|
|
18371
18371
|
}
|
|
18372
18372
|
Yc(hT, {
|
|
18373
18373
|
itemConfig: {},
|
|
@@ -18398,12 +18398,12 @@ Yc(hT, {
|
|
|
18398
18398
|
baseHeadingLevel: {},
|
|
18399
18399
|
includeSrHeading: {}
|
|
18400
18400
|
}, [], ["validateModels"], { mode: "open" });
|
|
18401
|
-
var
|
|
18402
|
-
hash: "svelte-
|
|
18403
|
-
code: ".pie-preview-toggle.svelte-
|
|
18401
|
+
var u7 = /* @__PURE__ */ Xo('<div class="pie-preview-toggle svelte-3v5isx"><div class="toggle-tabs svelte-3v5isx" 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>'), d7 = {
|
|
18402
|
+
hash: "svelte-3v5isx",
|
|
18403
|
+
code: ".pie-preview-toggle.svelte-3v5isx {display:block;width:100%;margin-bottom:1rem;}.toggle-tabs.svelte-3v5isx {display:flex;border-bottom:2px solid #e0e0e0;gap:0.5rem;}.toggle-tab.svelte-3v5isx {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-3v5isx:hover {color:#333;background:rgba(0, 0, 0, 0.05);}.toggle-tab.svelte-3v5isx:focus {outline:2px solid #1976d2;outline-offset:2px;}.toggle-tab.active.svelte-3v5isx {color:#1976d2;border-bottom-color:#1976d2;}.toggle-tab.svelte-3v5isx:active {transform:translateY(1px);}"
|
|
18404
18404
|
};
|
|
18405
18405
|
function Ex(e, t) {
|
|
18406
|
-
pl(t, !0), Rd(e,
|
|
18406
|
+
pl(t, !0), Rd(e, d7);
|
|
18407
18407
|
const n = Jo("pie-preview-toggle", () => Lo());
|
|
18408
18408
|
let o = at(t, "mode", 7, "author"), s = at(t, "onModeChange", 7);
|
|
18409
18409
|
function c(S) {
|
|
@@ -18428,12 +18428,12 @@ function Ex(e, t) {
|
|
|
18428
18428
|
set onModeChange(S) {
|
|
18429
18429
|
s(S), it();
|
|
18430
18430
|
}
|
|
18431
|
-
}, f =
|
|
18431
|
+
}, f = u7(), p = $r(f), g = $r(p);
|
|
18432
18432
|
let m;
|
|
18433
18433
|
var y = es(g, 2);
|
|
18434
18434
|
let E;
|
|
18435
18435
|
return Nr(p), Nr(f), vo(() => {
|
|
18436
|
-
m = il(g, 1, "toggle-tab svelte-
|
|
18436
|
+
m = il(g, 1, "toggle-tab svelte-3v5isx", null, m, { active: o() === "author" }), $c(g, "aria-selected", o() === "author"), E = il(y, 1, "toggle-tab svelte-3v5isx", null, E, { active: o() === "preview" }), $c(y, "aria-selected", o() === "preview");
|
|
18437
18437
|
}), oh("click", g, () => c("author")), oh("click", y, () => c("preview")), Xr(e, f), ml(d);
|
|
18438
18438
|
}
|
|
18439
18439
|
ZS(["click"]);
|
|
@@ -18441,12 +18441,12 @@ Yc(Ex, {
|
|
|
18441
18441
|
mode: {},
|
|
18442
18442
|
onModeChange: {}
|
|
18443
18443
|
}, [], [], { mode: "open" });
|
|
18444
|
-
var
|
|
18445
|
-
hash: "svelte-
|
|
18446
|
-
code: ".pie-preview-layout.svelte-
|
|
18444
|
+
var f7 = /* @__PURE__ */ Xo('<div class="pie-preview-layout svelte-1dn6s8n"><!> <div class="preview-content svelte-1dn6s8n" role="tabpanel"><!></div></div>'), h7 = {
|
|
18445
|
+
hash: "svelte-1dn6s8n",
|
|
18446
|
+
code: ".pie-preview-layout.svelte-1dn6s8n {display:block;width:100%;}.preview-content.svelte-1dn6s8n {display:block;width:100%;padding:1rem 0;}"
|
|
18447
18447
|
};
|
|
18448
|
-
function
|
|
18449
|
-
pl(t, !0), Rd(e,
|
|
18448
|
+
function p7(e, t) {
|
|
18449
|
+
pl(t, !0), Rd(e, h7);
|
|
18450
18450
|
const n = Jo("pie-preview-layout", () => Lo());
|
|
18451
18451
|
let o = at(t, "mode", 15, "author"), s = at(t, "itemConfig", 7), c = at(t, "passageConfig", 7, null), d = at(t, "configuration", 23, () => ({})), f = at(t, "env", 23, () => ({
|
|
18452
18452
|
mode: "gather",
|
|
@@ -18598,7 +18598,7 @@ function p5(e, t) {
|
|
|
18598
18598
|
set includeSrHeading(W = !0) {
|
|
18599
18599
|
Me(W), it();
|
|
18600
18600
|
}
|
|
18601
|
-
}, de =
|
|
18601
|
+
}, de = f7(), ae = $r(de);
|
|
18602
18602
|
Ex(ae, {
|
|
18603
18603
|
get mode() {
|
|
18604
18604
|
return ie(Ne);
|
|
@@ -18679,7 +18679,7 @@ function p5(e, t) {
|
|
|
18679
18679
|
$c(X, "id", `${ie(Ne) ?? ""}-panel`), $c(X, "aria-labelledby", `${ie(Ne) ?? ""}-tab`);
|
|
18680
18680
|
}), Xr(e, de), ml(Z);
|
|
18681
18681
|
}
|
|
18682
|
-
Yc(
|
|
18682
|
+
Yc(p7, {
|
|
18683
18683
|
mode: {},
|
|
18684
18684
|
itemConfig: {},
|
|
18685
18685
|
passageConfig: {},
|
|
@@ -18705,13 +18705,13 @@ Yc(p5, {
|
|
|
18705
18705
|
includeSrHeading: {}
|
|
18706
18706
|
}, [], [], { mode: "open" });
|
|
18707
18707
|
rW();
|
|
18708
|
-
var
|
|
18709
|
-
hash: "svelte-
|
|
18710
|
-
code: `.pie-loading.svelte-
|
|
18711
|
-
animation: svelte-
|
|
18712
|
-
animation: svelte-
|
|
18708
|
+
var m7 = /* @__PURE__ */ Xo("<div></div>"), g7 = {
|
|
18709
|
+
hash: "svelte-15vnxgm",
|
|
18710
|
+
code: `.pie-loading.svelte-15vnxgm {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-15vnxgm {position:fixed;}.pie-loading.svelte-15vnxgm: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;
|
|
18711
|
+
animation: svelte-15vnxgm-spinPulse 1s infinite linear;margin:-25px 0 0 -25px;position:absolute;top:50%;left:50%;}.pie-loading.svelte-15vnxgm: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;
|
|
18712
|
+
animation: svelte-15vnxgm-spinoffPulse 1s infinite linear;margin:-15px 0 0 -15px;position:absolute;top:50%;left:50%;}
|
|
18713
18713
|
|
|
18714
|
-
@keyframes svelte-
|
|
18714
|
+
@keyframes svelte-15vnxgm-spinPulse {
|
|
18715
18715
|
0% {
|
|
18716
18716
|
transform: rotate(160deg);
|
|
18717
18717
|
opacity: 0;
|
|
@@ -18727,7 +18727,7 @@ var m5 = /* @__PURE__ */ Xo("<div></div>"), g5 = {
|
|
|
18727
18727
|
}
|
|
18728
18728
|
}
|
|
18729
18729
|
|
|
18730
|
-
@keyframes svelte-
|
|
18730
|
+
@keyframes svelte-15vnxgm-spinoffPulse {
|
|
18731
18731
|
0% {
|
|
18732
18732
|
transform: rotate(0deg);
|
|
18733
18733
|
}
|
|
@@ -18737,7 +18737,7 @@ var m5 = /* @__PURE__ */ Xo("<div></div>"), g5 = {
|
|
|
18737
18737
|
}`
|
|
18738
18738
|
};
|
|
18739
18739
|
function Sx(e, t) {
|
|
18740
|
-
pl(t, !1), Rd(e,
|
|
18740
|
+
pl(t, !1), Rd(e, g7);
|
|
18741
18741
|
let n = at(t, "fixed", 12, !1);
|
|
18742
18742
|
var o = {
|
|
18743
18743
|
get fixed() {
|
|
@@ -18746,16 +18746,16 @@ function Sx(e, t) {
|
|
|
18746
18746
|
set fixed(c) {
|
|
18747
18747
|
n(c), it();
|
|
18748
18748
|
}
|
|
18749
|
-
}, s =
|
|
18750
|
-
return vo(() => il(s, 1, `pie-loading ${n() ? "fixed" : ""}`, "svelte-
|
|
18749
|
+
}, s = m7();
|
|
18750
|
+
return vo(() => il(s, 1, `pie-loading ${n() ? "fixed" : ""}`, "svelte-15vnxgm")), Xr(e, s), ml(o);
|
|
18751
18751
|
}
|
|
18752
18752
|
Yc(Sx, { fixed: {} }, [], [], { mode: "open" });
|
|
18753
|
-
var
|
|
18754
|
-
hash: "svelte-
|
|
18755
|
-
code: ".tool-settings-button.svelte-
|
|
18753
|
+
var v7 = /* @__PURE__ */ Xo('<button type="button" class="tool-settings-button btn btn-ghost btn-sm btn-circle svelte-57plqq"><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-57plqq"><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>'), y7 = {
|
|
18754
|
+
hash: "svelte-57plqq",
|
|
18755
|
+
code: ".tool-settings-button.svelte-57plqq {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-57plqq:hover {background:rgba(255, 255, 255, 0.1);}.tool-settings-button.svelte-57plqq:focus-visible {outline:2px solid currentColor;outline-offset:2px;}.tool-settings-button.svelte-57plqq svg:where(.svelte-57plqq) {width:20px;height:20px;display:block;}"
|
|
18756
18756
|
};
|
|
18757
|
-
function
|
|
18758
|
-
pl(t, !0), Rd(e,
|
|
18757
|
+
function b7(e, t) {
|
|
18758
|
+
pl(t, !0), Rd(e, y7);
|
|
18759
18759
|
let n = at(t, "buttonEl", 7, null), o = at(t, "onClick", 7), s = at(t, "ariaLabel", 7, "Settings"), c = at(t, "active", 7, !1);
|
|
18760
18760
|
var d = {
|
|
18761
18761
|
get buttonEl() {
|
|
@@ -18782,7 +18782,7 @@ function b5(e, t) {
|
|
|
18782
18782
|
set active(p = !1) {
|
|
18783
18783
|
c(p), it();
|
|
18784
18784
|
}
|
|
18785
|
-
}, f =
|
|
18785
|
+
}, f = v7();
|
|
18786
18786
|
return sh(f, (p) => n(p), () => n()), vo(() => {
|
|
18787
18787
|
$c(f, "aria-label", s()), $c(f, "aria-pressed", c());
|
|
18788
18788
|
}), oh("click", f, function(...p) {
|
|
@@ -18790,7 +18790,7 @@ function b5(e, t) {
|
|
|
18790
18790
|
}), Xr(e, f), ml(d);
|
|
18791
18791
|
}
|
|
18792
18792
|
ZS(["click"]);
|
|
18793
|
-
Yc(
|
|
18793
|
+
Yc(b7, {
|
|
18794
18794
|
buttonEl: {},
|
|
18795
18795
|
onClick: {},
|
|
18796
18796
|
ariaLabel: {},
|
|
@@ -18805,13 +18805,13 @@ var Tx = [
|
|
|
18805
18805
|
"[contenteditable]:not([contenteditable='false'])",
|
|
18806
18806
|
"[tabindex]:not([tabindex='-1'])"
|
|
18807
18807
|
].join(",");
|
|
18808
|
-
function
|
|
18808
|
+
function E7(e) {
|
|
18809
18809
|
return !e.matches(Tx) || e.hasAttribute("disabled") || e.closest("[inert]") ? !1 : e.offsetParent !== null || e.getClientRects().length > 0;
|
|
18810
18810
|
}
|
|
18811
18811
|
function wx(e) {
|
|
18812
|
-
return Array.from(e.querySelectorAll(Tx)).filter((t) =>
|
|
18812
|
+
return Array.from(e.querySelectorAll(Tx)).filter((t) => E7(t));
|
|
18813
18813
|
}
|
|
18814
|
-
function
|
|
18814
|
+
function S7(e, t) {
|
|
18815
18815
|
try {
|
|
18816
18816
|
if (t && e.contains(t)) {
|
|
18817
18817
|
t.focus();
|
|
@@ -18826,7 +18826,7 @@ function S5(e, t) {
|
|
|
18826
18826
|
} catch {
|
|
18827
18827
|
}
|
|
18828
18828
|
}
|
|
18829
|
-
function
|
|
18829
|
+
function T7(e, t = {}) {
|
|
18830
18830
|
const n = typeof document < "u" ? document.activeElement : null, o = t.wrap ?? !0, s = (c) => {
|
|
18831
18831
|
if (c.key === "Escape") {
|
|
18832
18832
|
t.onEscape?.();
|
|
@@ -18846,7 +18846,7 @@ function T5(e, t = {}) {
|
|
|
18846
18846
|
}
|
|
18847
18847
|
p === d.length - 1 && (o ? (c.preventDefault(), d[0].focus()) : t.onTabExit?.("forward", c));
|
|
18848
18848
|
};
|
|
18849
|
-
return queueMicrotask(() =>
|
|
18849
|
+
return queueMicrotask(() => S7(e, t.initialFocus)), e.addEventListener("keydown", s), () => {
|
|
18850
18850
|
e.removeEventListener("keydown", s);
|
|
18851
18851
|
try {
|
|
18852
18852
|
n?.focus?.();
|
|
@@ -18854,8 +18854,8 @@ function T5(e, t = {}) {
|
|
|
18854
18854
|
}
|
|
18855
18855
|
};
|
|
18856
18856
|
}
|
|
18857
|
-
var
|
|
18858
|
-
function
|
|
18857
|
+
var w7 = /* @__PURE__ */ Xo('<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);
|
|
18858
|
+
function I7(e, t) {
|
|
18859
18859
|
pl(t, !0);
|
|
18860
18860
|
let n = at(t, "open", 7), o = at(t, "title", 7, "Settings"), s = at(t, "onClose", 7), c = at(t, "anchorEl", 7, null), d = at(t, "children", 7), f = /* @__PURE__ */ un(null), p = /* @__PURE__ */ un(null), g = null;
|
|
18861
18861
|
go(() => {
|
|
@@ -18863,7 +18863,7 @@ function I5(e, t) {
|
|
|
18863
18863
|
g?.(), g = null;
|
|
18864
18864
|
return;
|
|
18865
18865
|
}
|
|
18866
|
-
return g?.(), g =
|
|
18866
|
+
return g?.(), g = T7(ie(f), { onEscape: s() }), () => {
|
|
18867
18867
|
g?.(), g = null;
|
|
18868
18868
|
};
|
|
18869
18869
|
}), go(() => {
|
|
@@ -18919,7 +18919,7 @@ function I5(e, t) {
|
|
|
18919
18919
|
d(N), it();
|
|
18920
18920
|
}
|
|
18921
18921
|
}, y = jW(), E = VC(y), S = (N) => {
|
|
18922
|
-
var R =
|
|
18922
|
+
var R = w7(), x = VC(R), k = es(x, 2), Q = $r(k), V = $r(Q), $ = $r(V, !0);
|
|
18923
18923
|
Nr(V);
|
|
18924
18924
|
var U = es(V, 2);
|
|
18925
18925
|
Nr(Q);
|
|
@@ -18937,14 +18937,14 @@ function I5(e, t) {
|
|
|
18937
18937
|
}), Xr(e, y), ml(m);
|
|
18938
18938
|
}
|
|
18939
18939
|
ZS(["mousedown", "click"]);
|
|
18940
|
-
Yc(
|
|
18940
|
+
Yc(I7, {
|
|
18941
18941
|
open: {},
|
|
18942
18942
|
title: {},
|
|
18943
18943
|
onClose: {},
|
|
18944
18944
|
anchorEl: {},
|
|
18945
18945
|
children: {}
|
|
18946
18946
|
}, [], [], { mode: "open" });
|
|
18947
|
-
var
|
|
18947
|
+
var C7 = /* @__PURE__ */ Xo(`<div class="pie-player-error" style="
|
|
18948
18948
|
padding: 20px;
|
|
18949
18949
|
margin: 20px;
|
|
18950
18950
|
border: 2px solid #d32f2f;
|
|
@@ -18952,12 +18952,12 @@ var C5 = /* @__PURE__ */ Xo(`<div class="pie-player-error" style="
|
|
|
18952
18952
|
background-color: #ffebee;
|
|
18953
18953
|
color: #c62828;
|
|
18954
18954
|
font-family: sans-serif;
|
|
18955
|
-
"><h3 style="margin: 0 0 10px 0">Configuration Error</h3> <p style="margin: 0"> </p></div>`),
|
|
18955
|
+
"><h3 style="margin: 0 0 10px 0">Configuration Error</h3> <p style="margin: 0"> </p></div>`), N7 = /* @__PURE__ */ Xo('<p class="pie-item-player-build-warning svelte-z49opb" role="status" aria-live="polite" aria-atomic="true"> </p>'), A7 = /* @__PURE__ */ Xo('<div class="pie-item-player-loading svelte-z49opb"><!> <!></div>'), QN = /* @__PURE__ */ Xo("<div><!></div>"), R7 = {
|
|
18956
18956
|
hash: "svelte-z49opb",
|
|
18957
18957
|
code: ":host {display:block;}.pie-item-player {width:100%;}.pie-player-item-container {width:100%;}.pie-item-player-loading.svelte-z49opb {display:flex;flex-direction:column;align-items:center;gap:12px;}.pie-item-player-build-warning.svelte-z49opb {margin:0;font-size:0.95rem;color:#9a6700;text-align:center;}"
|
|
18958
18958
|
};
|
|
18959
18959
|
function Ix(e, t) {
|
|
18960
|
-
pl(t, !0), Rd(e,
|
|
18960
|
+
pl(t, !0), Rd(e, R7);
|
|
18961
18961
|
let n = at(t, "config", 7, null), o = at(t, "session", 23, () => ({
|
|
18962
18962
|
id: "",
|
|
18963
18963
|
data: []
|
|
@@ -19377,7 +19377,7 @@ function Ix(e, t) {
|
|
|
19377
19377
|
async function J(Y, b) {
|
|
19378
19378
|
if (Y !== "delivery") throw new Error("backend.authoring is reserved but not implemented in this delivery pass.");
|
|
19379
19379
|
if (!Ne() || !Qq(Ne())) throw new Error("backend.delivery is not configured.");
|
|
19380
|
-
const w = await
|
|
19380
|
+
const w = await e5(Ne(), Ve(s()));
|
|
19381
19381
|
b && Sf(Ne()) !== b || (yt(Le, w.config, !0), yt(Ge, w.session, !0), yt(Lt, ie(Lt) + 1), Bn("backend-load-complete", {
|
|
19382
19382
|
scope: "delivery",
|
|
19383
19383
|
operation: "load",
|
|
@@ -19391,7 +19391,7 @@ function Ix(e, t) {
|
|
|
19391
19391
|
async function pt() {
|
|
19392
19392
|
if (!Ne() || !Ps(Ne())) throw new Error("backend.delivery is not configured.");
|
|
19393
19393
|
const Y = Ps(Ne()), b = Ur(Y.sessionId);
|
|
19394
|
-
await
|
|
19394
|
+
await t5(Ne(), {
|
|
19395
19395
|
itemId: Y.itemId,
|
|
19396
19396
|
sessionId: Y.sessionId,
|
|
19397
19397
|
assignmentId: Y.assignmentId,
|
|
@@ -19411,7 +19411,7 @@ function Ix(e, t) {
|
|
|
19411
19411
|
}
|
|
19412
19412
|
async function cn(Y) {
|
|
19413
19413
|
if (!Ne() || !Ps(Ne())) throw new Error("backend.delivery is not configured.");
|
|
19414
|
-
const b = Ps(Ne()), w = Ur(b.sessionId), O = await
|
|
19414
|
+
const b = Ps(Ne()), w = Ur(b.sessionId), O = await n5(Ne(), {
|
|
19415
19415
|
itemId: b.itemId,
|
|
19416
19416
|
sessionId: b.sessionId,
|
|
19417
19417
|
assignmentId: b.assignmentId,
|
|
@@ -19743,13 +19743,13 @@ function Ix(e, t) {
|
|
|
19743
19743
|
X(Y), it();
|
|
19744
19744
|
}
|
|
19745
19745
|
}, br = QN(), to = $r(br), El = (Y) => {
|
|
19746
|
-
var b =
|
|
19746
|
+
var b = C7(), w = es($r(b), 2), O = $r(w, !0);
|
|
19747
19747
|
Nr(w), Nr(b), vo(() => ih(O, ie(Xe))), Xr(Y, b);
|
|
19748
19748
|
}, Li = (Y) => {
|
|
19749
|
-
var b =
|
|
19749
|
+
var b = A7(), w = $r(b);
|
|
19750
19750
|
Sx(w, {});
|
|
19751
19751
|
var O = es(w, 2), j = (ee) => {
|
|
19752
|
-
var he =
|
|
19752
|
+
var he = N7(), vt = $r(he, !0);
|
|
19753
19753
|
Nr(he), vo(() => ih(vt, ie(Ue))), Xr(ee, he);
|
|
19754
19754
|
};
|
|
19755
19755
|
Gu(O, (ee) => {
|
|
@@ -19963,10 +19963,10 @@ function Cx() {
|
|
|
19963
19963
|
Cx().catch((e) => {
|
|
19964
19964
|
console.error("[pie-item-player] Failed to initialize math rendering:", e), ym = null;
|
|
19965
19965
|
});
|
|
19966
|
-
function
|
|
19966
|
+
function _7(e = "pie-item-player") {
|
|
19967
19967
|
nT(e, Ix, "pie-item-player tagName");
|
|
19968
19968
|
}
|
|
19969
|
-
|
|
19969
|
+
_7();
|
|
19970
19970
|
var Gf = class extends Error {
|
|
19971
19971
|
constructor(e, t) {
|
|
19972
19972
|
super(rv(t)), this.name = "PreloadStageError", this.stage = e, this.cause = t;
|
|
@@ -19975,10 +19975,10 @@ var Gf = class extends Error {
|
|
|
19975
19975
|
function Nx(e) {
|
|
19976
19976
|
return Mi(e, () => ki());
|
|
19977
19977
|
}
|
|
19978
|
-
function
|
|
19978
|
+
function O7(e) {
|
|
19979
19979
|
return e?.mode === "author" ? "author" : "delivery";
|
|
19980
19980
|
}
|
|
19981
|
-
function
|
|
19981
|
+
function x7(e) {
|
|
19982
19982
|
const t = (n) => {
|
|
19983
19983
|
const o = n.config?.elements || {};
|
|
19984
19984
|
return !o || typeof o != "object" ? "" : Object.entries(o).filter(([s, c]) => typeof s == "string" && s.trim().length > 0 && typeof c == "string" && c.trim().length > 0).sort(([s], [c]) => s.localeCompare(c)).map(([s, c]) => `${s}=${c}`).join(",");
|
|
@@ -19994,7 +19994,7 @@ function Ax(e, t) {
|
|
|
19994
19994
|
function rv(e) {
|
|
19995
19995
|
return e instanceof Error ? e.message : String(e);
|
|
19996
19996
|
}
|
|
19997
|
-
function
|
|
19997
|
+
function M7(e) {
|
|
19998
19998
|
for (const [t, n] of e.entries()) try {
|
|
19999
19999
|
w2(n?.config);
|
|
20000
20000
|
} catch (o) {
|
|
@@ -20002,7 +20002,7 @@ function M5(e) {
|
|
|
20002
20002
|
throw new Error(`${s}: ${c}`);
|
|
20003
20003
|
}
|
|
20004
20004
|
}
|
|
20005
|
-
function
|
|
20005
|
+
function k7(e, t) {
|
|
20006
20006
|
for (const [n, o] of e.entries()) {
|
|
20007
20007
|
const s = typeof o?.id == "string" ? o.id : `renderable-${n}`, c = d_(o?.config).warnings, d = Array.isArray(c) ? c.filter((f) => typeof f == "string") : [];
|
|
20008
20008
|
for (const f of d) t.warn(Ax("validate-config", `${s}: ${f}`));
|
|
@@ -20014,7 +20014,7 @@ function kE(e) {
|
|
|
20014
20014
|
kind: "esm",
|
|
20015
20015
|
cdnBaseUrl: String(t?.esmCdnUrl || "https://cdn.jsdelivr.net/npm"),
|
|
20016
20016
|
moduleResolution: t?.moduleResolution === "import-map" ? "import-map" : "url",
|
|
20017
|
-
view:
|
|
20017
|
+
view: O7(e.resolvedPlayerEnv),
|
|
20018
20018
|
loadControllers: !0
|
|
20019
20019
|
};
|
|
20020
20020
|
const n = String(t?.bundleHost || e.iifeBundleHost || "").trim();
|
|
@@ -20033,10 +20033,10 @@ function ZN(e) {
|
|
|
20033
20033
|
function eA(e) {
|
|
20034
20034
|
return !e || e.kind !== "iife" ? "" : e.bundleHost;
|
|
20035
20035
|
}
|
|
20036
|
-
async function
|
|
20036
|
+
async function P7(e) {
|
|
20037
20037
|
const t = e.logger ?? Nx("pie-section-player-items-pane");
|
|
20038
20038
|
try {
|
|
20039
|
-
|
|
20039
|
+
M7(e.renderables), k7(e.renderables, t);
|
|
20040
20040
|
} catch (c) {
|
|
20041
20041
|
throw new Gf("validate-config", c);
|
|
20042
20042
|
}
|
|
@@ -20063,7 +20063,7 @@ async function P5(e) {
|
|
|
20063
20063
|
throw new Gf(s, c);
|
|
20064
20064
|
}
|
|
20065
20065
|
}
|
|
20066
|
-
var
|
|
20066
|
+
var L7 = {
|
|
20067
20067
|
id: "",
|
|
20068
20068
|
data: []
|
|
20069
20069
|
}, pT = {
|
|
@@ -20081,14 +20081,14 @@ var L5 = {
|
|
|
20081
20081
|
testAttemptSession: null,
|
|
20082
20082
|
itemViewModels: []
|
|
20083
20083
|
};
|
|
20084
|
-
function
|
|
20084
|
+
function D7(e, t) {
|
|
20085
20085
|
return Rx(e, t)?.canonicalItemId || "";
|
|
20086
20086
|
}
|
|
20087
|
-
function $
|
|
20087
|
+
function $7(e, t) {
|
|
20088
20088
|
return Rx(e, t)?.session;
|
|
20089
20089
|
}
|
|
20090
|
-
function
|
|
20091
|
-
return $
|
|
20090
|
+
function F7(e, t) {
|
|
20091
|
+
return $7(e, t) || L7;
|
|
20092
20092
|
}
|
|
20093
20093
|
function Rx(e, t) {
|
|
20094
20094
|
const n = t.id || "";
|
|
@@ -20117,20 +20117,20 @@ function mT() {
|
|
|
20117
20117
|
function PE(e, t) {
|
|
20118
20118
|
return e === t ? !0 : !e || !t ? !1 : e.sectionId === t.sectionId && e.attemptId === t.attemptId;
|
|
20119
20119
|
}
|
|
20120
|
-
function
|
|
20120
|
+
function U7(e) {
|
|
20121
20121
|
const t = e.sectionId ?? "";
|
|
20122
20122
|
return t ? {
|
|
20123
20123
|
sectionId: t,
|
|
20124
20124
|
attemptId: e.attemptId ?? ""
|
|
20125
20125
|
} : null;
|
|
20126
20126
|
}
|
|
20127
|
-
function
|
|
20127
|
+
function B7(e) {
|
|
20128
20128
|
return e.runtimeError ? "error" : e.allLoadingComplete ? "ready" : e.interactionReady ? "interaction-ready" : e.sectionReady ? "loading" : "bootstrapping";
|
|
20129
20129
|
}
|
|
20130
20130
|
function _x(e) {
|
|
20131
20131
|
const t = e.signals.sectionReady && e.signals.allLoadingComplete, n = e.mode === "strict" ? t : e.signals.interactionReady;
|
|
20132
20132
|
return {
|
|
20133
|
-
phase:
|
|
20133
|
+
phase: B7({
|
|
20134
20134
|
...e.signals,
|
|
20135
20135
|
allLoadingComplete: t,
|
|
20136
20136
|
interactionReady: n
|
|
@@ -20140,7 +20140,7 @@ function _x(e) {
|
|
|
20140
20140
|
reason: e.reason
|
|
20141
20141
|
};
|
|
20142
20142
|
}
|
|
20143
|
-
function
|
|
20143
|
+
function H7(e) {
|
|
20144
20144
|
switch (e) {
|
|
20145
20145
|
case "idle":
|
|
20146
20146
|
return null;
|
|
@@ -20155,7 +20155,7 @@ function H5(e) {
|
|
|
20155
20155
|
}
|
|
20156
20156
|
}
|
|
20157
20157
|
function mg(e, t, n, o = "entered") {
|
|
20158
|
-
const s =
|
|
20158
|
+
const s = H7(t);
|
|
20159
20159
|
s && e.push({
|
|
20160
20160
|
kind: "stage-change",
|
|
20161
20161
|
stage: s,
|
|
@@ -20177,7 +20177,7 @@ function tA(e) {
|
|
|
20177
20177
|
outputs: n
|
|
20178
20178
|
};
|
|
20179
20179
|
}
|
|
20180
|
-
function
|
|
20180
|
+
function j7(e, t) {
|
|
20181
20181
|
if (e.phase === "idle" || e.phase === "disposed") return {
|
|
20182
20182
|
state: e,
|
|
20183
20183
|
outputs: []
|
|
@@ -20287,7 +20287,7 @@ function bm(e, t) {
|
|
|
20287
20287
|
};
|
|
20288
20288
|
}
|
|
20289
20289
|
case "update-readiness-signals":
|
|
20290
|
-
return
|
|
20290
|
+
return j7(e, {
|
|
20291
20291
|
signals: t.signals,
|
|
20292
20292
|
mode: t.mode,
|
|
20293
20293
|
loadedCount: t.loadedCount,
|
|
@@ -20329,7 +20329,7 @@ function bm(e, t) {
|
|
|
20329
20329
|
};
|
|
20330
20330
|
}
|
|
20331
20331
|
}
|
|
20332
|
-
var
|
|
20332
|
+
var z7 = class {
|
|
20333
20333
|
constructor() {
|
|
20334
20334
|
F(this, "state", mT()), F(this, "listeners", /* @__PURE__ */ new Set());
|
|
20335
20335
|
}
|
|
@@ -20359,7 +20359,7 @@ var z5 = class {
|
|
|
20359
20359
|
}
|
|
20360
20360
|
}
|
|
20361
20361
|
};
|
|
20362
|
-
function
|
|
20362
|
+
function W7(e) {
|
|
20363
20363
|
const { coordinator: t, dispatchCoreInput: n } = e;
|
|
20364
20364
|
let o = 0, s = null, c = null, d = !1;
|
|
20365
20365
|
const f = t.subscribeFrameworkErrors((y) => {
|
|
@@ -20429,7 +20429,7 @@ function W5(e) {
|
|
|
20429
20429
|
dispose: m
|
|
20430
20430
|
};
|
|
20431
20431
|
}
|
|
20432
|
-
function
|
|
20432
|
+
function V7(e) {
|
|
20433
20433
|
const { runtimeId: t, sourceCe: n } = e;
|
|
20434
20434
|
let o = e.host;
|
|
20435
20435
|
const s = e.now ?? (() => (/* @__PURE__ */ new Date()).toISOString());
|
|
@@ -20483,7 +20483,7 @@ function V5(e) {
|
|
|
20483
20483
|
setHost: g
|
|
20484
20484
|
};
|
|
20485
20485
|
}
|
|
20486
|
-
function
|
|
20486
|
+
function q7(e) {
|
|
20487
20487
|
const { bus: t } = e;
|
|
20488
20488
|
function n(o) {
|
|
20489
20489
|
switch (o.kind) {
|
|
@@ -20499,7 +20499,7 @@ function q5(e) {
|
|
|
20499
20499
|
}
|
|
20500
20500
|
return { dispatch: n };
|
|
20501
20501
|
}
|
|
20502
|
-
function
|
|
20502
|
+
function G7(e = {}) {
|
|
20503
20503
|
let t = e.hook;
|
|
20504
20504
|
function n(s) {
|
|
20505
20505
|
if (t)
|
|
@@ -20517,7 +20517,7 @@ function G5(e = {}) {
|
|
|
20517
20517
|
setHook: o
|
|
20518
20518
|
};
|
|
20519
20519
|
}
|
|
20520
|
-
function
|
|
20520
|
+
function Y7() {
|
|
20521
20521
|
const e = /* @__PURE__ */ new Set();
|
|
20522
20522
|
function t(c) {
|
|
20523
20523
|
if (c.length === 0) return;
|
|
@@ -20548,14 +20548,14 @@ function Y5() {
|
|
|
20548
20548
|
getListenerCount: s
|
|
20549
20549
|
};
|
|
20550
20550
|
}
|
|
20551
|
-
var
|
|
20551
|
+
var K7 = class {
|
|
20552
20552
|
constructor(e) {
|
|
20553
|
-
F(this, "core", void 0), F(this, "domEventBridge", void 0), F(this, "frameworkErrorBridge", void 0), F(this, "instrumentationBridge", void 0), F(this, "subscriberFanout", void 0), F(this, "coordinatorBridge", void 0), F(this, "unsubscribeCore", void 0), F(this, "disposed", !1), this.core = e.core ?? new
|
|
20553
|
+
F(this, "core", void 0), F(this, "domEventBridge", void 0), F(this, "frameworkErrorBridge", void 0), F(this, "instrumentationBridge", void 0), F(this, "subscriberFanout", void 0), F(this, "coordinatorBridge", void 0), F(this, "unsubscribeCore", void 0), F(this, "disposed", !1), this.core = e.core ?? new z7(), this.domEventBridge = V7({
|
|
20554
20554
|
host: e.host,
|
|
20555
20555
|
runtimeId: e.runtimeId,
|
|
20556
20556
|
sourceCe: e.sourceCe,
|
|
20557
20557
|
now: e.now
|
|
20558
|
-
}), this.frameworkErrorBridge =
|
|
20558
|
+
}), this.frameworkErrorBridge = q7({ bus: e.frameworkErrorBus }), this.instrumentationBridge = G7({ hook: e.instrumentationHook }), this.subscriberFanout = Y7(), this.coordinatorBridge = e.coordinator ? W7({
|
|
20559
20559
|
coordinator: e.coordinator,
|
|
20560
20560
|
dispatchCoreInput: (t) => this.dispatchInput(t)
|
|
20561
20561
|
}) : null, this.unsubscribeCore = this.core.subscribe((t) => {
|
|
@@ -20614,14 +20614,14 @@ function xx(e) {
|
|
|
20614
20614
|
const t = e.runtime ?? {};
|
|
20615
20615
|
return t.onFrameworkError !== void 0 ? t.onFrameworkError : e.onFrameworkError;
|
|
20616
20616
|
}
|
|
20617
|
-
function
|
|
20617
|
+
function X7(e) {
|
|
20618
20618
|
const t = e.runtime?.tools || {}, n = t.placement || {};
|
|
20619
20619
|
return {
|
|
20620
20620
|
...t,
|
|
20621
20621
|
placement: { ...n }
|
|
20622
20622
|
};
|
|
20623
20623
|
}
|
|
20624
|
-
function
|
|
20624
|
+
function J7(e) {
|
|
20625
20625
|
const t = e.runtime || {}, n = t.player ? { ...t.player } : null;
|
|
20626
20626
|
return {
|
|
20627
20627
|
...t,
|
|
@@ -20645,7 +20645,7 @@ function J5(e) {
|
|
|
20645
20645
|
};
|
|
20646
20646
|
}
|
|
20647
20647
|
function Mx(e, t) {
|
|
20648
|
-
const n = e.assessmentId ?? "section-demo-direct", o =
|
|
20648
|
+
const n = e.assessmentId ?? "section-demo-direct", o = X7({ runtime: e.runtime }), s = J7({
|
|
20649
20649
|
assessmentId: n,
|
|
20650
20650
|
runtime: e.runtime,
|
|
20651
20651
|
effectiveToolsConfig: o,
|
|
@@ -20683,7 +20683,7 @@ var rA = {
|
|
|
20683
20683
|
attributes: { strategy: "preloaded" }
|
|
20684
20684
|
}
|
|
20685
20685
|
};
|
|
20686
|
-
function
|
|
20686
|
+
function Q7(e) {
|
|
20687
20687
|
const t = String(e.effectiveRuntime?.playerType || e.playerType || "iife"), n = rA[t] || rA.iife, o = n?.tagName || "pie-item-player", s = n?.attributes || {}, c = n?.props || {}, d = e.effectiveRuntime?.player || {}, f = c.loaderOptions || {}, p = d.loaderOptions || {};
|
|
20688
20688
|
return {
|
|
20689
20689
|
effectivePlayerType: t,
|
|
@@ -20702,23 +20702,23 @@ function Q5(e) {
|
|
|
20702
20702
|
strategy: ij(s?.strategy || t, "iife")
|
|
20703
20703
|
};
|
|
20704
20704
|
}
|
|
20705
|
-
function
|
|
20705
|
+
function Z7(e) {
|
|
20706
20706
|
return e.map((t) => t?.entity);
|
|
20707
20707
|
}
|
|
20708
20708
|
function eG(e) {
|
|
20709
|
-
return Mx(e, { resolvePlayerRuntime:
|
|
20709
|
+
return Mx(e, { resolvePlayerRuntime: Q7 });
|
|
20710
20710
|
}
|
|
20711
20711
|
function tG(e) {
|
|
20712
20712
|
return e.detail?.composition || pT;
|
|
20713
20713
|
}
|
|
20714
20714
|
function kx(e) {
|
|
20715
|
-
const t =
|
|
20715
|
+
const t = Z7(e.renderables || []);
|
|
20716
20716
|
return {
|
|
20717
20717
|
compositionModel: e,
|
|
20718
20718
|
passages: e.passages || [],
|
|
20719
20719
|
items: e.items || [],
|
|
20720
20720
|
renderables: t,
|
|
20721
|
-
renderablesSignature:
|
|
20721
|
+
renderablesSignature: x7(e.renderables || [])
|
|
20722
20722
|
};
|
|
20723
20723
|
}
|
|
20724
20724
|
function nG(e) {
|
|
@@ -20739,7 +20739,7 @@ function oG(e) {
|
|
|
20739
20739
|
return {
|
|
20740
20740
|
config: e.item.config || {},
|
|
20741
20741
|
env: e.resolvedPlayerEnv,
|
|
20742
|
-
session:
|
|
20742
|
+
session: F7(e.compositionModel, e.item),
|
|
20743
20743
|
attributes: {
|
|
20744
20744
|
...e.resolvedPlayerAttributes || {},
|
|
20745
20745
|
strategy: e.playerStrategy
|
|
@@ -20748,7 +20748,7 @@ function oG(e) {
|
|
|
20748
20748
|
};
|
|
20749
20749
|
}
|
|
20750
20750
|
function iG(e) {
|
|
20751
|
-
return
|
|
20751
|
+
return D7(e.compositionModel, e.item);
|
|
20752
20752
|
}
|
|
20753
20753
|
var sG = /* @__PURE__ */ Un('<div class="pie-section-player-content-card svelte-pqze5h"><div class="pie-section-player-content-card-body pie-section-player-item-content pie-section-player__item-content svelte-pqze5h">Loading section content...</div></div>'), aG = /* @__PURE__ */ Un("<pie-section-player-item-card></pie-section-player-item-card>", 2), lG = /* @__PURE__ */ Un('<div style="display:none" aria-hidden="true"></div> <!> <div class="pie-section-player-scroll-hint svelte-pqze5h" aria-hidden="true"><svg class="pie-section-player-scroll-caret svelte-pqze5h" viewBox="0 0 24 24" width="28" height="28" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5" stroke="#6b7280" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none"></path></svg></div>', 1), cG = {
|
|
20754
20754
|
hash: "svelte-pqze5h",
|
|
@@ -20769,7 +20769,7 @@ function uG(e, t) {
|
|
|
20769
20769
|
hosted: d()?.hosted ?? null,
|
|
20770
20770
|
envMode: s()?.mode ?? null,
|
|
20771
20771
|
loaderOptions: d()?.loaderOptions ?? null
|
|
20772
|
-
})), Q = Iz(() => (C(k), N() ? bo(() =>
|
|
20772
|
+
})), Q = Iz(() => (C(k), N() ? bo(() => P7({
|
|
20773
20773
|
strategy: f(),
|
|
20774
20774
|
renderables: E(),
|
|
20775
20775
|
resolvedPlayerProps: d(),
|
|
@@ -21163,7 +21163,7 @@ var yG = class {
|
|
|
21163
21163
|
this.adapter.setHost(e.host), e.instrumentationHook !== void 0 && this.adapter.setInstrumentationHook(e.instrumentationHook);
|
|
21164
21164
|
return;
|
|
21165
21165
|
}
|
|
21166
|
-
this.adapter = new
|
|
21166
|
+
this.adapter = new K7({
|
|
21167
21167
|
host: e.host,
|
|
21168
21168
|
runtimeId: this.runtimeId,
|
|
21169
21169
|
sourceCe: e.sourceCe,
|
|
@@ -21434,7 +21434,7 @@ var lA, cA, PG = (e, t, n) => {
|
|
|
21434
21434
|
if (typeof Eu < "u") return Eu.apply(this, arguments);
|
|
21435
21435
|
throw Error('Dynamic require of "' + e + '" is not supported');
|
|
21436
21436
|
}), $G = LG((e, t) => {
|
|
21437
|
-
var n = "/
|
|
21437
|
+
var n = "/home/runner/work/pie-players/pie-players/node_modules/.bun/speech-rule-engine@5.0.0-rc.1/node_modules/speech-rule-engine/lib";
|
|
21438
21438
|
(function(o, s) {
|
|
21439
21439
|
typeof e == "object" && typeof t == "object" ? t.exports = s() : typeof define == "function" && define.amd ? define([], s) : typeof e == "object" ? e.SRE = s() : o.SRE = s();
|
|
21440
21440
|
})(e, () => (() => {
|
|
@@ -41999,7 +41999,7 @@ var c8 = class {
|
|
|
41999
41999
|
});
|
|
42000
42000
|
const n = await (async () => {
|
|
42001
42001
|
try {
|
|
42002
|
-
const o = await import("./chunks/dist-
|
|
42002
|
+
const o = await import("./chunks/dist-c770ad18.js");
|
|
42003
42003
|
return await this.emitTelemetry("pie-tool-library-load-success", {
|
|
42004
42004
|
toolId: "calculator",
|
|
42005
42005
|
operation: "desmos-provider-module-import",
|
|
@@ -42286,7 +42286,7 @@ var c8 = class {
|
|
|
42286
42286
|
});
|
|
42287
42287
|
const n = await (async () => {
|
|
42288
42288
|
try {
|
|
42289
|
-
const o = await import("./chunks/dist-
|
|
42289
|
+
const o = await import("./chunks/dist-fed7cb49.js");
|
|
42290
42290
|
return await this.emitTelemetry("pie-tool-library-load-success", {
|
|
42291
42291
|
toolId: "textToSpeech",
|
|
42292
42292
|
operation: "server-provider-module-import",
|
|
@@ -51059,7 +51059,7 @@ function ZX(e, t) {
|
|
|
51059
51059
|
hn(() => {
|
|
51060
51060
|
if (!C(qe) || C(ze)) return;
|
|
51061
51061
|
let _e = !1;
|
|
51062
|
-
return import("./chunks/tool-annotation-toolbar-
|
|
51062
|
+
return import("./chunks/tool-annotation-toolbar-611c837c.js").then(() => {
|
|
51063
51063
|
_e || Et(ze, !0);
|
|
51064
51064
|
}).catch(() => {
|
|
51065
51065
|
_e || Et(ze, !1);
|
|
@@ -51714,7 +51714,7 @@ function $h(e, t) {
|
|
|
51714
51714
|
sourceCe: oe(),
|
|
51715
51715
|
frameworkErrorBus: X
|
|
51716
51716
|
}), Re = !0;
|
|
51717
|
-
const Se =
|
|
51717
|
+
const Se = U7({
|
|
51718
51718
|
sectionId: c(),
|
|
51719
51719
|
attemptId: d()
|
|
51720
51720
|
}), Rt = C(qe).length;
|