@pie-qti/player-elements 0.1.21 → 0.1.23
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/{define-XpbOHJoz.js → define-CqE08oOW.js} +3486 -2816
- package/dist/define-CqE08oOW.js.map +1 -0
- package/dist/{dist-CU6ScSS-.js → dist-B1Rc9Jhz.js} +4 -4
- package/dist/{dist-CU6ScSS-.js.map → dist-B1Rc9Jhz.js.map} +1 -1
- package/dist/dist-CQEJemjs.js +5061 -0
- package/dist/dist-CQEJemjs.js.map +1 -0
- package/dist/{dist-4hIHy9-L.js → dist-CsEP48m1.js} +2369 -2677
- package/dist/dist-CsEP48m1.js.map +1 -0
- package/dist/{dist-CxqtFqGy.js → dist-DQ_jFQFX.js} +22 -13
- package/dist/dist-DQ_jFQFX.js.map +1 -0
- package/dist/{element-DNnKo2Uk.js → element-DU-n15ch.js} +2 -2
- package/dist/{element-DNnKo2Uk.js.map → element-DU-n15ch.js.map} +1 -1
- package/dist/{element-class-iN9MRyjF-D6u8ACFm.js → element-class-DBV-1lkb-BeszDwN_.js} +2402 -2400
- package/dist/element-class-DBV-1lkb-BeszDwN_.js.map +1 -0
- package/dist/elements.js +3 -3
- package/dist/index.js +3 -3
- package/dist/item-toolbar-element-iE73NEkH.js +1922 -0
- package/dist/item-toolbar-element-iE73NEkH.js.map +1 -0
- package/dist/mathlive.min-3RSVNrlY-rQOKt03P.js +4 -0
- package/dist/mathlive.min-3RSVNrlY-rQOKt03P.js.map +1 -0
- package/dist/pie-assessment-toolkit-element-BGOTMhdG.js +8300 -0
- package/dist/pie-assessment-toolkit-element-BGOTMhdG.js.map +1 -0
- package/dist/pie-tool-calculator-CkQb5qxg.js +2243 -0
- package/dist/pie-tool-calculator-CkQb5qxg.js.map +1 -0
- package/dist/register-players.js +1 -1
- package/dist/register-players.js.map +1 -1
- package/dist/register.js +8227 -10359
- package/dist/register.js.map +1 -1
- package/dist/{resolveItems-hMDtJOXa.js → resolveItems-DhQQhD2k.js} +1808 -2164
- package/dist/resolveItems-DhQQhD2k.js.map +1 -0
- package/dist/{chunk-foFoljWS.js → rolldown-runtime-CEFd7nDs.js} +10 -3
- package/dist/{root--0fyaoNu.js → root-Dqg3cyBt.js} +12 -12
- package/dist/root-Dqg3cyBt.js.map +1 -0
- package/dist/{sre-CFPLI6BY.js → sre-BD1SyGce.js} +105 -85
- package/dist/{sre-CFPLI6BY.js.map → sre-BD1SyGce.js.map} +1 -1
- package/dist/tool-tts-inline-CA3VjWU4.js +3670 -0
- package/dist/tool-tts-inline-CA3VjWU4.js.map +1 -0
- package/dist/{tag-names-ClLtKtXt.js → types-BFOGFD4R.js} +4 -22
- package/dist/types-BFOGFD4R.js.map +1 -0
- package/package.json +8 -8
- package/dist/define-XpbOHJoz.js.map +0 -1
- package/dist/dist-4hIHy9-L.js.map +0 -1
- package/dist/dist-CxqtFqGy.js.map +0 -1
- package/dist/dist-Nkkk25AH.js +0 -1275
- package/dist/dist-Nkkk25AH.js.map +0 -1
- package/dist/element-class-iN9MRyjF-D6u8ACFm.js.map +0 -1
- package/dist/item-toolbar-element-3k36WOlC.js +0 -6086
- package/dist/item-toolbar-element-3k36WOlC.js.map +0 -1
- package/dist/mathlive.min-DeR46YTX-DamfKay_.js +0 -38802
- package/dist/mathlive.min-DeR46YTX-DamfKay_.js.map +0 -1
- package/dist/pie-assessment-toolkit-element-CP-OMtE6.js +0 -28516
- package/dist/pie-assessment-toolkit-element-CP-OMtE6.js.map +0 -1
- package/dist/pie-tool-calculator-VzYEjxiY.js +0 -2309
- package/dist/pie-tool-calculator-VzYEjxiY.js.map +0 -1
- package/dist/resolveItems-hMDtJOXa.js.map +0 -1
- package/dist/root--0fyaoNu.js.map +0 -1
- package/dist/tag-names-ClLtKtXt.js.map +0 -1
- package/dist/tool-tts-inline-B-xT_sdY.js +0 -2641
- package/dist/tool-tts-inline-B-xT_sdY.js.map +0 -1
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
//#region \0rolldown/runtime.js
|
|
2
|
-
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t
|
|
2
|
+
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t, n) => () => {
|
|
3
|
+
if (n) throw n[0];
|
|
4
|
+
try {
|
|
5
|
+
return e && (t = e(e = 0)), t;
|
|
6
|
+
} catch (e) {
|
|
7
|
+
throw n = [e], e;
|
|
8
|
+
}
|
|
9
|
+
}, s = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), c = (e, n) => {
|
|
3
10
|
let r = {};
|
|
4
11
|
for (var i in e) t(r, i, {
|
|
5
12
|
get: e[i],
|
|
@@ -12,10 +19,10 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
12
19
|
enumerable: !(s = n(i, d)) || s.enumerable
|
|
13
20
|
});
|
|
14
21
|
return e;
|
|
15
|
-
}, u = (n, r,
|
|
22
|
+
}, u = (n, r, o) => (o = n == null ? {} : e(i(n)), l(r || !n || !n.__esModule || !a.call(n, "default") ? t(o, "default", {
|
|
16
23
|
value: n,
|
|
17
24
|
enumerable: !0
|
|
18
|
-
}) :
|
|
25
|
+
}) : o, n)), d = (e) => a.call(e, "module.exports") ? e["module.exports"] : l(t({}, "__esModule", { value: !0 }), e), f = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
19
26
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
20
27
|
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
21
28
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as e,
|
|
2
|
-
//#region ../../node_modules/.bun/@pie-players+pie-context@0.3.
|
|
1
|
+
import { a as e, i as t } from "./types-BFOGFD4R.js";
|
|
2
|
+
//#region ../../node_modules/.bun/@pie-players+pie-context@0.3.67/node_modules/@pie-players/pie-context/dist/provider.js
|
|
3
3
|
var n = class {
|
|
4
4
|
host;
|
|
5
5
|
context;
|
|
@@ -10,7 +10,7 @@ var n = class {
|
|
|
10
10
|
this.host = e, this.context = t.context, this.currentValue = t.initialValue;
|
|
11
11
|
}
|
|
12
12
|
connect() {
|
|
13
|
-
this.isConnected || (this.isConnected = !0, this.host.addEventListener("context-request", this.handleContextRequest), this.host.addEventListener("context-provider", this.handleContextProvider), this.host.dispatchEvent(new
|
|
13
|
+
this.isConnected || (this.isConnected = !0, this.host.addEventListener("context-request", this.handleContextRequest), this.host.addEventListener("context-provider", this.handleContextProvider), this.host.dispatchEvent(new t(this.context, this.host)));
|
|
14
14
|
}
|
|
15
15
|
disconnect() {
|
|
16
16
|
this.isConnected && (this.isConnected = !1, this.host.removeEventListener("context-request", this.handleContextRequest), this.host.removeEventListener("context-provider", this.handleContextProvider), this.subscriptions.clear());
|
|
@@ -42,11 +42,11 @@ var n = class {
|
|
|
42
42
|
unsubscribe: n
|
|
43
43
|
}), e.callback(this.currentValue, n);
|
|
44
44
|
};
|
|
45
|
-
handleContextProvider = (
|
|
46
|
-
if (
|
|
45
|
+
handleContextProvider = (t) => {
|
|
46
|
+
if (t.context !== this.context || this.getContextTarget(t, this.host) === this.host) return;
|
|
47
47
|
let n = /* @__PURE__ */ new Set();
|
|
48
|
-
for (let [
|
|
49
|
-
|
|
48
|
+
for (let [t, { consumerHost: r }] of this.subscriptions) n.has(t) || (n.add(t), r.dispatchEvent(new e(this.context, r, t, !0)));
|
|
49
|
+
t.stopPropagation();
|
|
50
50
|
};
|
|
51
51
|
notifySubscribers() {
|
|
52
52
|
for (let e of this.subscriptions.values()) e.callback(this.currentValue, e.unsubscribe);
|
|
@@ -81,13 +81,13 @@ var n = class {
|
|
|
81
81
|
callbackRef: new WeakRef(i)
|
|
82
82
|
}), t.requests = r(t.requests));
|
|
83
83
|
};
|
|
84
|
-
onContextProvider = (
|
|
85
|
-
let n = this.pendingByContext.get(
|
|
84
|
+
onContextProvider = (t) => {
|
|
85
|
+
let n = this.pendingByContext.get(t.context);
|
|
86
86
|
if (!(!n || n.requests.length === 0)) {
|
|
87
|
-
this.pendingByContext.delete(
|
|
87
|
+
this.pendingByContext.delete(t.context);
|
|
88
88
|
for (let r of n.requests) {
|
|
89
89
|
let n = r.requestorRef.deref(), i = r.callbackRef.deref();
|
|
90
|
-
!n || !i || n.dispatchEvent(new t
|
|
90
|
+
!n || !i || n.dispatchEvent(new e(t.context, n, i, !0));
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
};
|
|
@@ -95,4 +95,4 @@ var n = class {
|
|
|
95
95
|
//#endregion
|
|
96
96
|
export { n, i as t };
|
|
97
97
|
|
|
98
|
-
//# sourceMappingURL=root
|
|
98
|
+
//# sourceMappingURL=root-Dqg3cyBt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-Dqg3cyBt.js","names":[],"sources":["../../../node_modules/.bun/@pie-players+pie-context@0.3.67/node_modules/@pie-players/pie-context/dist/provider.js","../../../node_modules/.bun/@pie-players+pie-context@0.3.67/node_modules/@pie-players/pie-context/dist/root.js"],"sourcesContent":["import { ContextProviderEvent, ContextRequestEvent } from \"./events.js\";\nexport class ContextProvider {\n host;\n context;\n currentValue;\n subscriptions = new Map();\n isConnected = false;\n constructor(host, options) {\n this.host = host;\n this.context = options.context;\n this.currentValue = options.initialValue;\n }\n connect() {\n if (this.isConnected)\n return;\n this.isConnected = true;\n this.host.addEventListener(\"context-request\", this.handleContextRequest);\n this.host.addEventListener(\"context-provider\", this.handleContextProvider);\n this.host.dispatchEvent(new ContextProviderEvent(this.context, this.host));\n }\n disconnect() {\n if (!this.isConnected)\n return;\n this.isConnected = false;\n this.host.removeEventListener(\"context-request\", this.handleContextRequest);\n this.host.removeEventListener(\"context-provider\", this.handleContextProvider);\n this.subscriptions.clear();\n }\n setValue(value, force = false) {\n if (!force && Object.is(this.currentValue, value))\n return;\n this.currentValue = value;\n this.notifySubscribers();\n }\n get value() {\n return this.currentValue;\n }\n getContextTarget(event, fallback) {\n if (\"contextTarget\" in event && event.contextTarget) {\n return event.contextTarget;\n }\n const path = typeof event.composedPath === \"function\" ? event.composedPath() : [];\n const firstPathTarget = path[0];\n return firstPathTarget ? firstPathTarget : fallback;\n }\n handleContextRequest = (event) => {\n if (event.context !== this.context)\n return;\n const consumerHost = this.getContextTarget(event, this.host);\n if (consumerHost === this.host)\n return;\n // Closest provider wins for this context key.\n event.stopPropagation();\n if (!event.subscribe) {\n event.callback(this.currentValue);\n return;\n }\n const existing = this.subscriptions.get(event.callback);\n existing?.unsubscribe();\n const unsubscribe = () => {\n this.subscriptions.delete(event.callback);\n };\n this.subscriptions.set(event.callback, {\n consumerHost,\n callback: event.callback,\n unsubscribe,\n });\n event.callback(this.currentValue, unsubscribe);\n };\n handleContextProvider = (event) => {\n if (event.context !== this.context)\n return;\n const providerHost = this.getContextTarget(event, this.host);\n if (providerHost === this.host)\n return;\n // A newly connected nested provider should take over matching consumers.\n const seen = new Set();\n for (const [callback, { consumerHost }] of this.subscriptions) {\n if (seen.has(callback))\n continue;\n seen.add(callback);\n consumerHost.dispatchEvent(new ContextRequestEvent(this.context, consumerHost, callback, true));\n }\n event.stopPropagation();\n };\n notifySubscribers() {\n for (const subscription of this.subscriptions.values()) {\n subscription.callback(this.currentValue, subscription.unsubscribe);\n }\n }\n}\nexport const provideContext = (host, options) => new ContextProvider(host, options);\n","import { ContextRequestEvent } from \"./events.js\";\nconst getLivePending = (pending) => {\n const requests = [];\n for (const entry of pending) {\n if (entry.requestorRef.deref() && entry.callbackRef.deref()) {\n requests.push(entry);\n }\n }\n return requests;\n};\nexport class ContextRoot {\n host;\n pendingByContext = new Map();\n attached = false;\n constructor(host) {\n this.host = host;\n }\n attach() {\n if (this.attached)\n return;\n this.attached = true;\n this.host.addEventListener(\"context-request\", this.onContextRequest);\n this.host.addEventListener(\"context-provider\", this.onContextProvider);\n }\n detach() {\n if (!this.attached)\n return;\n this.attached = false;\n this.host.removeEventListener(\"context-request\", this.onContextRequest);\n this.host.removeEventListener(\"context-provider\", this.onContextProvider);\n this.pendingByContext.clear();\n }\n onContextRequest = (event) => {\n if (!event.subscribe)\n return;\n let pending = this.pendingByContext.get(event.context);\n if (!pending) {\n pending = {\n callbacks: new WeakMap(),\n requests: [],\n };\n this.pendingByContext.set(event.context, pending);\n }\n const requestor = event.contextTarget;\n const callback = event.callback;\n let seenForRequestor = pending.callbacks.get(requestor);\n if (!seenForRequestor) {\n seenForRequestor = new WeakSet();\n pending.callbacks.set(requestor, seenForRequestor);\n }\n if (seenForRequestor.has(callback))\n return;\n seenForRequestor.add(callback);\n pending.requests.push({\n requestorRef: new WeakRef(requestor),\n callbackRef: new WeakRef(callback),\n });\n pending.requests = getLivePending(pending.requests);\n };\n onContextProvider = (event) => {\n const pending = this.pendingByContext.get(event.context);\n if (!pending || pending.requests.length === 0)\n return;\n this.pendingByContext.delete(event.context);\n for (const entry of pending.requests) {\n const requestor = entry.requestorRef.deref();\n const callback = entry.callbackRef.deref();\n if (!requestor || !callback)\n continue;\n requestor.dispatchEvent(new ContextRequestEvent(event.context, requestor, callback, true));\n }\n };\n}\n"],"x_google_ignoreList":[0,1],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as e, t } from "./
|
|
1
|
+
import { i as e, t } from "./rolldown-runtime-CEFd7nDs.js";
|
|
2
2
|
//#region ../../node_modules/.bun/speech-rule-engine@5.0.0-rc.4/node_modules/speech-rule-engine/lib/sre.js
|
|
3
3
|
var n = /* @__PURE__ */ t(((t, n) => {
|
|
4
4
|
(function(e, r) {
|
|
@@ -3989,17 +3989,19 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
3989
3989
|
}
|
|
3990
3990
|
function pe(e) {
|
|
3991
3991
|
var t = null;
|
|
3992
|
-
if ((n = e.nodeType) == 1 && (t = (t = (t = e.textContent) == null || t == null ? e.innerText : t) == null || t == null ? "" : t), typeof t != "string")
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
3992
|
+
if ((n = e.nodeType) == 1 && (t = (t = (t = e.textContent) == null || t == null ? e.innerText : t) == null || t == null ? "" : t), typeof t != "string") {
|
|
3993
|
+
if (de && e.nodeName.toLowerCase() == "title" && n == 1) t = e.text;
|
|
3994
|
+
else if (n == 9 || n == 1) {
|
|
3995
|
+
e = n == 9 ? e.documentElement : e.firstChild;
|
|
3996
|
+
var n = 0, r = [];
|
|
3997
|
+
for (t = ""; e;) {
|
|
3998
|
+
do
|
|
3999
|
+
e.nodeType != 1 && (t += e.nodeValue), de && e.nodeName.toLowerCase() == "title" && (t += e.text), r[n++] = e;
|
|
4000
|
+
while (e = e.firstChild);
|
|
4001
|
+
for (; n && !(e = r[--n].nextSibling););
|
|
4002
|
+
}
|
|
4003
|
+
} else t = e.nodeValue;
|
|
4004
|
+
}
|
|
4003
4005
|
return "" + t;
|
|
4004
4006
|
}
|
|
4005
4007
|
function w(e, t, n) {
|
|
@@ -4402,10 +4404,10 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
4402
4404
|
}, 0, 1), R("string-length", 1, !1, !0, function(e, t) {
|
|
4403
4405
|
return (t ? ke(t, e) : pe(e.a)).length;
|
|
4404
4406
|
}, 0, 1), R("substring", 3, !1, !1, function(e, t, n, r) {
|
|
4405
|
-
if (n = F(n, e), isNaN(n) ||
|
|
4407
|
+
if (n = F(n, e), isNaN(n) || 1 / 0 == n || -1 / 0 == n || (r = r ? F(r, e) : 1 / 0, isNaN(r) || -1 / 0 === r)) return "";
|
|
4406
4408
|
n = Math.round(n) - 1;
|
|
4407
4409
|
var i = Math.max(n, 0);
|
|
4408
|
-
return e = ke(t, e),
|
|
4410
|
+
return e = ke(t, e), 1 / 0 == r ? e.substring(i) : e.substring(i, n + Math.round(r));
|
|
4409
4411
|
}, 2, 3), R("substring-after", 3, !1, !1, function(e, t, n) {
|
|
4410
4412
|
return t = ke(t, e), e = ke(n, e), (n = t.indexOf(e)) == -1 ? "" : t.substring(n + e.length);
|
|
4411
4413
|
}, 2), R("substring-before", 3, !1, !1, function(e, t, n) {
|
|
@@ -4537,9 +4539,10 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
4537
4539
|
if (!(t instanceof j)) throw Error("Filter expression must evaluate to nodeset.");
|
|
4538
4540
|
for (var n = 0, r = (e = this.c).length; n < r && t.l; n++) {
|
|
4539
4541
|
var i, a = e[n], o = Se(t, a.c.a);
|
|
4540
|
-
if (a.g || a.c != ot)
|
|
4541
|
-
|
|
4542
|
-
|
|
4542
|
+
if (a.g || a.c != ot) {
|
|
4543
|
+
if (a.g || a.c != ct) for (i = we(o), t = a.a(new Le(i)); (i = we(o)) != null;) t = M(t, i = a.a(new Le(i)));
|
|
4544
|
+
else i = we(o), t = a.a(new Le(i));
|
|
4545
|
+
} else {
|
|
4543
4546
|
for (i = we(o); (t = we(o)) && (!i.contains || i.contains(t)) && 8 & t.compareDocumentPosition(i); i = t);
|
|
4544
4547
|
t = a.a(new Le(i));
|
|
4545
4548
|
}
|
|
@@ -4570,10 +4573,12 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
4570
4573
|
}, "Predicates:");
|
|
4571
4574
|
}, o($e), $e.prototype.a = function(e) {
|
|
4572
4575
|
var t = e.a, n = null, r = null, i = null, a = 0;
|
|
4573
|
-
if ((n = this.f) && (r = n.name, i = n.s ? ke(n.s, e) : null, a = 1), this.u)
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4576
|
+
if ((n = this.f) && (r = n.name, i = n.s ? ke(n.s, e) : null, a = 1), this.u) {
|
|
4577
|
+
if (this.g || this.c != it) {
|
|
4578
|
+
if (t = we(e = Se(new $e(at, new Be("node")).a(e)))) for (n = this.m(t, r, i, a); (t = we(e)) != null;) n = M(n, this.m(t, r, i, a));
|
|
4579
|
+
else n = new j();
|
|
4580
|
+
} else n = T(this.o, t, r, i), n = H(this.h, n, a);
|
|
4581
|
+
} else n = this.m(e.a, r, i, a);
|
|
4577
4582
|
return n;
|
|
4578
4583
|
}, $e.prototype.m = function(e, t, n, r) {
|
|
4579
4584
|
return e = this.c.f(this.o, e, t, n), H(this.h, e, r);
|
|
@@ -4608,8 +4613,10 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
4608
4613
|
var n = new j();
|
|
4609
4614
|
if ((a = e.f()) == "style" && de && t.style) return P(n, new S(t.style, t, "style", t.style.cssText)), n;
|
|
4610
4615
|
var r = t.attributes;
|
|
4611
|
-
if (r)
|
|
4612
|
-
|
|
4616
|
+
if (r) {
|
|
4617
|
+
if (e instanceof Be && e.b === null || a == "*") for (var i, a = 0; i = r[a]; a++) de ? i.nodeValue && P(n, C(t, i)) : P(n, i);
|
|
4618
|
+
else (i = r.getNamedItem(a)) && (de ? i.nodeValue && P(n, C(t, i)) : P(n, i));
|
|
4619
|
+
}
|
|
4613
4620
|
return n;
|
|
4614
4621
|
}, !1), it = nt("child", function(e, t, r, i, a) {
|
|
4615
4622
|
return (de ? me : O).call(null, e, t, n(r) ? r : null, n(i) ? i : null, a || new j());
|
|
@@ -4831,12 +4838,14 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
4831
4838
|
};
|
|
4832
4839
|
}
|
|
4833
4840
|
function Et(e, t) {
|
|
4834
|
-
if (t == 0)
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4841
|
+
if (t == 0) {
|
|
4842
|
+
if (e instanceof j) t = 4;
|
|
4843
|
+
else if (typeof e == "string") t = 2;
|
|
4844
|
+
else if (typeof e == "number") t = 1;
|
|
4845
|
+
else {
|
|
4846
|
+
if (typeof e != "boolean") throw Error("Unexpected evaluation result.");
|
|
4847
|
+
t = 3;
|
|
4848
|
+
}
|
|
4840
4849
|
}
|
|
4841
4850
|
if (t != 2 && t != 1 && t != 3 && !(e instanceof j)) throw Error("value could not be converted to the specified type");
|
|
4842
4851
|
var n;
|
|
@@ -5040,7 +5049,7 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
5040
5049
|
return s.LOCALES.get(e) ? e : (console.error(`Locale ${e} does not exist! Using ${s.LOCALES.get(t)} instead.`), t);
|
|
5041
5050
|
}
|
|
5042
5051
|
}
|
|
5043
|
-
s.VERSION = "5.0.0-rc.4", s.LOCALES = new Map([
|
|
5052
|
+
s.VERSION = "5.0.0-rc.4", s.LOCALES = /* @__PURE__ */ new Map([
|
|
5044
5053
|
["af", "Afrikaans"],
|
|
5045
5054
|
["ca", "Catalan"],
|
|
5046
5055
|
["da", "Danish"],
|
|
@@ -5225,7 +5234,10 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
5225
5234
|
let t = e.split("."), n = {};
|
|
5226
5235
|
if (t.length > this.order.length) throw Error("Invalid dynamic constraint: " + n);
|
|
5227
5236
|
let r = 0;
|
|
5228
|
-
for (let e, i = 0; e = this.order[i], t.length; i++, r++)
|
|
5237
|
+
for (let e, i = 0; e = this.order[i], t.length; i++, r++) {
|
|
5238
|
+
let r = t.shift();
|
|
5239
|
+
n[e] = r;
|
|
5240
|
+
}
|
|
5229
5241
|
return new x(n, this.order.slice(0, r));
|
|
5230
5242
|
}
|
|
5231
5243
|
}
|
|
@@ -6441,10 +6453,12 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
6441
6453
|
}
|
|
6442
6454
|
function et(e) {
|
|
6443
6455
|
let t = e % 1e3, n = "", r = rt.ones[Math.floor(t / 100)];
|
|
6444
|
-
if (n += r ? r + rt.numSep + "honderd" : "", t %= 100, t)
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6456
|
+
if (n += r ? r + rt.numSep + "honderd" : "", t %= 100, t) {
|
|
6457
|
+
if (n += n ? rt.numSep : "", r = rt.ones[t], r) n += r;
|
|
6458
|
+
else {
|
|
6459
|
+
let e = rt.tens[Math.floor(t / 10)];
|
|
6460
|
+
r = rt.ones[t % 10], n += r ? r + "-en-" + e : e;
|
|
6461
|
+
}
|
|
6448
6462
|
}
|
|
6449
6463
|
return n;
|
|
6450
6464
|
}
|
|
@@ -6510,12 +6524,13 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
6510
6524
|
let r = e % (t > 1 ? 1e6 : 1e3);
|
|
6511
6525
|
if (r) {
|
|
6512
6526
|
let e = lt.large[t];
|
|
6513
|
-
if (t)
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6527
|
+
if (t) {
|
|
6528
|
+
if (t === 1) n = (r === 1 ? "" : ot(r) + lt.numSep) + e + (n ? lt.numSep + n : "");
|
|
6529
|
+
else {
|
|
6530
|
+
let t = st(r);
|
|
6531
|
+
e = r === 1 ? e : e.replace(/\u00f3$/, "ons"), n = t + lt.numSep + e + (n ? lt.numSep + n : "");
|
|
6532
|
+
}
|
|
6533
|
+
} else n = ot(r);
|
|
6519
6534
|
}
|
|
6520
6535
|
e = Math.floor(e / (t > 1 ? 1e6 : 1e3)), t++;
|
|
6521
6536
|
}
|
|
@@ -6542,10 +6557,12 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
6542
6557
|
}
|
|
6543
6558
|
function pt(e, t = !1) {
|
|
6544
6559
|
let n = e % 1e3, r = "", i = gt.ones[Math.floor(n / 100)];
|
|
6545
|
-
if (r += i ? ft(i, !0) + " hundrede" : "", n %= 100, n)
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
|
|
6560
|
+
if (r += i ? ft(i, !0) + " hundrede" : "", n %= 100, n) {
|
|
6561
|
+
if (r += r ? " og " : "", i = t ? gt.special.smallOrdinals[n] : gt.ones[n], i) r += i;
|
|
6562
|
+
else {
|
|
6563
|
+
let e = t ? gt.special.tensOrdinals[Math.floor(n / 10)] : gt.tens[Math.floor(n / 10)];
|
|
6564
|
+
i = gt.ones[n % 10], r += i ? ft(i) + "og" + e : e;
|
|
6565
|
+
}
|
|
6549
6566
|
}
|
|
6550
6567
|
return r;
|
|
6551
6568
|
}
|
|
@@ -6586,10 +6603,12 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
6586
6603
|
}
|
|
6587
6604
|
function yt(e) {
|
|
6588
6605
|
let t = e % 1e3, n = "", r = St.ones[Math.floor(t / 100)];
|
|
6589
|
-
if (n += r ? vt(r) + "hundert" : "", t %= 100, t)
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6606
|
+
if (n += r ? vt(r) + "hundert" : "", t %= 100, t) {
|
|
6607
|
+
if (n += n ? St.numSep : "", r = St.ones[t], r) n += r;
|
|
6608
|
+
else {
|
|
6609
|
+
let e = St.tens[Math.floor(t / 10)];
|
|
6610
|
+
r = St.ones[t % 10], n += r ? vt(r) + "und" + e : e;
|
|
6611
|
+
}
|
|
6593
6612
|
}
|
|
6594
6613
|
return n;
|
|
6595
6614
|
}
|
|
@@ -9010,8 +9029,8 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
9010
9029
|
})(ci ||= {});
|
|
9011
9030
|
class li {
|
|
9012
9031
|
static fromXml(e) {
|
|
9013
|
-
let t =
|
|
9014
|
-
return
|
|
9032
|
+
let t = parseInt(e.getAttribute("id"), 10), n = new li(t);
|
|
9033
|
+
return n.type = e.tagName, li.setAttribute(n, e, "role"), li.setAttribute(n, e, "font"), li.setAttribute(n, e, "embellished"), li.setAttribute(n, e, "fencepointer", "fencePointer"), e.getAttribute("annotation") && n.parseAnnotation(e.getAttribute("annotation")), ni(n, e), li.processChildren(n, e), n;
|
|
9015
9034
|
}
|
|
9016
9035
|
static setAttribute(e, t, n, r) {
|
|
9017
9036
|
r ||= n;
|
|
@@ -9501,7 +9520,7 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
9501
9520
|
}
|
|
9502
9521
|
static tableToSquare_(e) {
|
|
9503
9522
|
let t = e.childNodes[0];
|
|
9504
|
-
X(t, L.UNKNOWN) && (Hi(e) ?
|
|
9523
|
+
X(t, L.UNKNOWN) && (t.role = Hi(e) ? L.DETERMINANT : L.SQUAREMATRIX);
|
|
9505
9524
|
}
|
|
9506
9525
|
static getComponentRoles_(e) {
|
|
9507
9526
|
let t = e.role;
|
|
@@ -9545,9 +9564,9 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
9545
9564
|
static numberRole_(e, t, n) {
|
|
9546
9565
|
if (e.role === L.UNKNOWN) return n.every(function(e) {
|
|
9547
9566
|
return e.type === I.NUMBER && e.role === L.INTEGER || e.type === I.PUNCTUATION && e.role === L.COMMA;
|
|
9548
|
-
}) ? (e.role = L.INTEGER, void (t[0] === "0" && e.addAnnotation("general", "basenumber"))) : void (n.every(function(e) {
|
|
9567
|
+
}) ? (e.role = L.INTEGER, void (t[0] === "0" && e.addAnnotation("general", "basenumber"))) : void (e.role = n.every(function(e) {
|
|
9549
9568
|
return e.type === I.NUMBER && e.role === L.INTEGER || e.type === I.PUNCTUATION;
|
|
9550
|
-
}) ?
|
|
9569
|
+
}) ? L.FLOAT : L.OTHERNUMBER);
|
|
9551
9570
|
}
|
|
9552
9571
|
static exprFont_(e) {
|
|
9553
9572
|
e.font === R.UNKNOWN && Z.compSemantics(e, "font", R);
|
|
@@ -9800,7 +9819,7 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
9800
9819
|
], t), t;
|
|
9801
9820
|
}
|
|
9802
9821
|
constructor() {
|
|
9803
|
-
this.funcAppls = {}, this.splitRoles = new Map([[L.SUBTRACTION, L.NEGATIVE], [L.ADDITION, L.POSITIVE]]), this.splitOps = [
|
|
9822
|
+
this.funcAppls = {}, this.splitRoles = /* @__PURE__ */ new Map([[L.SUBTRACTION, L.NEGATIVE], [L.ADDITION, L.POSITIVE]]), this.splitOps = [
|
|
9804
9823
|
"−",
|
|
9805
9824
|
"-",
|
|
9806
9825
|
"‐",
|
|
@@ -10189,7 +10208,7 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
10189
10208
|
})) return n.role = e, n;
|
|
10190
10209
|
}
|
|
10191
10210
|
let r = t[0];
|
|
10192
|
-
return Mi(e, t, 0) ?
|
|
10211
|
+
return n.role = Mi(e, t, 0) ? r.childNodes.length && !r.embellished ? r.role : L.STARTPUNCT : Mi(e, t, e.length - 1) ? r.childNodes.length && !r.embellished ? r.role : L.ENDPUNCT : t.every((e) => X(e, L.DUMMY)) ? L.TEXT : t.every((e) => X(e, L.SPACE)) ? L.SPACE : L.SEQUENCE, n;
|
|
10193
10212
|
}
|
|
10194
10213
|
dummyNode_(e) {
|
|
10195
10214
|
let t = Z.getInstance().factory_.makeMultipleContentNodes(e.length - 1, An.invisibleComma);
|
|
@@ -10683,13 +10702,13 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
10683
10702
|
let t = e.childNodes[0].childNodes[0].childNodes[0].textContent;
|
|
10684
10703
|
return G.singleton(t.match(/^\(.+\)$/) ? t.slice(1, -1) : t);
|
|
10685
10704
|
}
|
|
10686
|
-
let Ra = new Map([
|
|
10705
|
+
let Ra = /* @__PURE__ */ new Map([
|
|
10687
10706
|
[3, "CSFleftsuperscript"],
|
|
10688
10707
|
[4, "CSFleftsubscript"],
|
|
10689
10708
|
[2, "CSFbaseline"],
|
|
10690
10709
|
[1, "CSFrightsubscript"],
|
|
10691
10710
|
[0, "CSFrightsuperscript"]
|
|
10692
|
-
]), za = new Map([
|
|
10711
|
+
]), za = /* @__PURE__ */ new Map([
|
|
10693
10712
|
[4, 2],
|
|
10694
10713
|
[3, 3],
|
|
10695
10714
|
[2, 1],
|
|
@@ -12045,7 +12064,7 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
12045
12064
|
(function(e) {
|
|
12046
12065
|
e[e.ENTER = 13] = "ENTER", e[e.ESC = 27] = "ESC", e[e.SPACE = 32] = "SPACE", e[e.PAGE_UP = 33] = "PAGE_UP", e[e.PAGE_DOWN = 34] = "PAGE_DOWN", e[e.END = 35] = "END", e[e.HOME = 36] = "HOME", e[e.LEFT = 37] = "LEFT", e[e.UP = 38] = "UP", e[e.RIGHT = 39] = "RIGHT", e[e.DOWN = 40] = "DOWN", e[e.TAB = 9] = "TAB", e[e.LESS = 188] = "LESS", e[e.GREATER = 190] = "GREATER", e[e.DASH = 189] = "DASH", e[e.ZERO = 48] = "ZERO", e[e.ONE = 49] = "ONE", e[e.TWO = 50] = "TWO", e[e.THREE = 51] = "THREE", e[e.FOUR = 52] = "FOUR", e[e.FIVE = 53] = "FIVE", e[e.SIX = 54] = "SIX", e[e.SEVEN = 55] = "SEVEN", e[e.EIGHT = 56] = "EIGHT", e[e.NINE = 57] = "NINE", e[e.A = 65] = "A", e[e.B = 66] = "B", e[e.C = 67] = "C", e[e.D = 68] = "D", e[e.E = 69] = "E", e[e.F = 70] = "F", e[e.G = 71] = "G", e[e.H = 72] = "H", e[e.I = 73] = "I", e[e.J = 74] = "J", e[e.K = 75] = "K", e[e.L = 76] = "L", e[e.M = 77] = "M", e[e.N = 78] = "N", e[e.O = 79] = "O", e[e.P = 80] = "P", e[e.Q = 81] = "Q", e[e.R = 82] = "R", e[e.S = 83] = "S", e[e.T = 84] = "T", e[e.U = 85] = "U", e[e.V = 86] = "V", e[e.W = 87] = "W", e[e.X = 88] = "X", e[e.Y = 89] = "Y", e[e.Z = 90] = "Z";
|
|
12047
12066
|
})(ws ||= {});
|
|
12048
|
-
let Ts = new Map([
|
|
12067
|
+
let Ts = /* @__PURE__ */ new Map([
|
|
12049
12068
|
[13, "ENTER"],
|
|
12050
12069
|
[27, "ESC"],
|
|
12051
12070
|
[32, "SPACE"],
|
|
@@ -12428,8 +12447,8 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
12428
12447
|
OP: lc
|
|
12429
12448
|
};
|
|
12430
12449
|
function qs(e) {
|
|
12431
|
-
let t =
|
|
12432
|
-
return
|
|
12450
|
+
let t = F(e), n = Ks[t];
|
|
12451
|
+
return n ? n(e) : e.textContent;
|
|
12433
12452
|
}
|
|
12434
12453
|
let Js = /* @__PURE__ */ new Map();
|
|
12435
12454
|
function Ys(e, t) {
|
|
@@ -12552,7 +12571,7 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
12552
12571
|
return t = typeof e == "number" ? e <= 250 ? "short" : e <= 500 ? "medium" : "long" : e, uc.PAUSE_PUNCTUATION.get(t) || "";
|
|
12553
12572
|
}
|
|
12554
12573
|
}
|
|
12555
|
-
uc.PAUSE_PUNCTUATION = new Map([
|
|
12574
|
+
uc.PAUSE_PUNCTUATION = /* @__PURE__ */ new Map([
|
|
12556
12575
|
["short", ","],
|
|
12557
12576
|
["medium", ";"],
|
|
12558
12577
|
["long", "."]
|
|
@@ -12603,7 +12622,7 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
12603
12622
|
return t;
|
|
12604
12623
|
}
|
|
12605
12624
|
}
|
|
12606
|
-
let pc = new dc(), mc = new Map([
|
|
12625
|
+
let pc = new dc(), mc = /* @__PURE__ */ new Map([
|
|
12607
12626
|
[y.NONE, new fc()],
|
|
12608
12627
|
[y.COUNTING, new class extends fc {
|
|
12609
12628
|
finalize(e) {
|
|
@@ -13301,7 +13320,7 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
13301
13320
|
return r.match(/^\s*$/) ? null : r;
|
|
13302
13321
|
}
|
|
13303
13322
|
constructor(e) {
|
|
13304
|
-
super("MathML"), this.options = e, q.options = e, this.parseMap_ = new Map([
|
|
13323
|
+
super("MathML"), this.options = e, q.options = e, this.parseMap_ = /* @__PURE__ */ new Map([
|
|
13305
13324
|
[J.SEMANTICS, this.semantics_.bind(this)],
|
|
13306
13325
|
[J.MATH, this.rows_.bind(this)],
|
|
13307
13326
|
[J.MROW, this.rows_.bind(this)],
|
|
@@ -14118,7 +14137,7 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
14118
14137
|
if (n) {
|
|
14119
14138
|
S.getInstance().output("Walktree Case 1.1.1.0");
|
|
14120
14139
|
let i = function(e, t) {
|
|
14121
|
-
let n = A(e.childNodes), r =
|
|
14140
|
+
let n = A(e.childNodes), r = 1 / 0, i = -1 / 0;
|
|
14122
14141
|
return t.forEach(function(e) {
|
|
14123
14142
|
let t = n.indexOf(e);
|
|
14124
14143
|
t !== -1 && (r = Math.min(r, t), i = Math.max(i, t));
|
|
@@ -14336,7 +14355,7 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
14336
14355
|
return r.length === 1 ? r[0] : e;
|
|
14337
14356
|
}
|
|
14338
14357
|
function ou(e) {
|
|
14339
|
-
return we(e.toString()).toString().replace(
|
|
14358
|
+
return we(e.toString()).toString().replace(RegExp(Xc, "g"), "");
|
|
14340
14359
|
}
|
|
14341
14360
|
function su(e, t) {
|
|
14342
14361
|
let n = !!t, r = t || [], i = e.parent, a = e.contentNodes.map(function(e) {
|
|
@@ -14674,14 +14693,15 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
14674
14693
|
}
|
|
14675
14694
|
getMathml() {
|
|
14676
14695
|
let e = tu(this.semantic.contentNodes[0]), t = this.semantic.contentNodes[1] ? tu(this.semantic.contentNodes[1]) : null;
|
|
14677
|
-
if (this.inner = this.semantic.childNodes.map(Nl), this.mml)
|
|
14678
|
-
|
|
14679
|
-
|
|
14680
|
-
|
|
14681
|
-
|
|
14682
|
-
|
|
14683
|
-
|
|
14684
|
-
|
|
14696
|
+
if (this.inner = this.semantic.childNodes.map(Nl), this.mml) {
|
|
14697
|
+
if (F(this.mml) === J.MFENCED) {
|
|
14698
|
+
let n = this.mml.childNodes;
|
|
14699
|
+
this.mml.insertBefore(e, n[0] || null), t && this.mml.appendChild(t), this.mml = nu(this.mml);
|
|
14700
|
+
} else {
|
|
14701
|
+
let n = [e, this.mml];
|
|
14702
|
+
t && n.push(t), this.mml = Pl(n, this.semantic);
|
|
14703
|
+
}
|
|
14704
|
+
} else this.mml = Pl([e].concat(this.inner, [t]), this.semantic);
|
|
14685
14705
|
return $c(this.mml, this.semantic), this.mml;
|
|
14686
14706
|
}
|
|
14687
14707
|
}
|
|
@@ -15093,8 +15113,8 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
15093
15113
|
e.style.color = n.foreground, e.style.position = "relative";
|
|
15094
15114
|
let r = e.bbox;
|
|
15095
15115
|
if (r && r.w) {
|
|
15096
|
-
let i =
|
|
15097
|
-
|
|
15116
|
+
let i = xe("span"), a = parseFloat(e.style.paddingLeft || "0");
|
|
15117
|
+
i.style.backgroundColor = n.background, i.style.opacity = n.alphaback.toString(), i.style.display = "inline-block", i.style.height = r.h + r.d + .1 + "em", i.style.verticalAlign = -r.d + "em", i.style.marginTop = i.style.marginBottom = "-0.05em", i.style.width = r.w + 0 + "em", i.style.marginLeft = a - 0 + "em", i.style.marginRight = -r.w - 0 - a + "em", e.parentNode.insertBefore(i, e), t.box = i;
|
|
15098
15118
|
}
|
|
15099
15119
|
return t;
|
|
15100
15120
|
}
|
|
@@ -16005,10 +16025,10 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
16005
16025
|
};
|
|
16006
16026
|
class Cd {
|
|
16007
16027
|
static factory(e, t, n, r) {
|
|
16008
|
-
let i = (e) => Fu(r, e), a = n.nodeDict, o = i(e), s = t.map(i), c =
|
|
16028
|
+
let i = (e) => Fu(r, e), a = n.nodeDict, o = i(e), s = t.map(i), c = t.map(function(e) {
|
|
16009
16029
|
return a[e];
|
|
16010
|
-
}), a[e]);
|
|
16011
|
-
return
|
|
16030
|
+
}), l = new Cd(c, a[e]);
|
|
16031
|
+
return l.domNodes = s, l.domPrimary_ = o, l.allNodes = Cd.generateAllVisibleNodes_(t, s, a, r), l;
|
|
16012
16032
|
}
|
|
16013
16033
|
static generateAllVisibleNodes_(e, t, n, r) {
|
|
16014
16034
|
let i = [];
|
|
@@ -16074,7 +16094,7 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
16074
16094
|
Td.STATE = {};
|
|
16075
16095
|
class Ed {
|
|
16076
16096
|
constructor(e, t, n, r) {
|
|
16077
|
-
this.node = e, this.generator = t, this.highlighter = n, this.modifier = !1, this.keyMapping = new Map([
|
|
16097
|
+
this.node = e, this.generator = t, this.highlighter = n, this.modifier = !1, this.keyMapping = /* @__PURE__ */ new Map([
|
|
16078
16098
|
[ws.UP, this.up.bind(this)],
|
|
16079
16099
|
[ws.DOWN, this.down.bind(this)],
|
|
16080
16100
|
[ws.RIGHT, this.right.bind(this)],
|
|
@@ -16865,8 +16885,8 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
16865
16885
|
domain: E.getInstance().options.domain,
|
|
16866
16886
|
style: E.getInstance().options.style
|
|
16867
16887
|
}), Nd.LocalState.highlighter = function(e, t, n) {
|
|
16868
|
-
let r = new Ou(e, t), i =
|
|
16869
|
-
return
|
|
16888
|
+
let r = new Ou(e, t), i = n.renderer === "NativeMML" && n.browser === "Safari" ? "MML-CSS" : n.renderer === "SVG" && n.browser === "v3" ? "SVG-V3" : n.renderer, a = new (ju[i] || ju.NativeMML)();
|
|
16889
|
+
return a.setColor(r), a;
|
|
16870
16890
|
}({ color: "black" }, { color: "white" }, { renderer: "NativeMML" });
|
|
16871
16891
|
let n = Rd("enriched", e), r = function(e, t) {
|
|
16872
16892
|
let n = Ld(e);
|
|
@@ -16985,8 +17005,8 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
16985
17005
|
}
|
|
16986
17006
|
function cf(e, t) {
|
|
16987
17007
|
return nf(this, void 0, void 0, function* () {
|
|
16988
|
-
let n =
|
|
16989
|
-
return Hu.relevantPreferences(
|
|
17008
|
+
let n = j(e), r = new Lu(n), i = r.stree.root.querySelectorAll((e) => e.id.toString() === t)[0] ?? r.stree.root;
|
|
17009
|
+
return Hu.relevantPreferences(i);
|
|
16990
17010
|
});
|
|
16991
17011
|
}
|
|
16992
17012
|
function lf(e, t, n) {
|
|
@@ -17225,4 +17245,4 @@ var n = /* @__PURE__ */ t(((t, n) => {
|
|
|
17225
17245
|
//#endregion
|
|
17226
17246
|
export default n();
|
|
17227
17247
|
|
|
17228
|
-
//# sourceMappingURL=sre-
|
|
17248
|
+
//# sourceMappingURL=sre-BD1SyGce.js.map
|