@beff/aula 0.3.1 → 0.4.0
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.
|
Binary file
|
package/dist/generated/aula.js
CHANGED
|
@@ -48020,11 +48020,11 @@ export function instantiate(getCoreModule, imports, instantiateCore, options) {
|
|
|
48020
48020
|
let base = base50 + i * 8;
|
|
48021
48021
|
var len49 = dataView(_jcoDataViewCacheContext, memory0).getUint32(base + 4, !0);
|
|
48022
48022
|
var base49 = dataView(_jcoDataViewCacheContext, memory0).getUint32(base + 0, !0) >>> 0;
|
|
48023
|
-
if (base49 < 0 || len49 < 0 || len49 >
|
|
48023
|
+
if (base49 < 0 || len49 < 0 || len49 > 5592405 || base49 > memory0.buffer.byteLength || len49 > Math.floor((memory0.buffer.byteLength - base49) / 48)) throw new WebAssemblyRuntimeError("wasm trap: out of bounds memory access");
|
|
48024
48024
|
if (base49 % 8 != 0) throw TypeError(`list pointer [${base49}] is not aligned to 8`);
|
|
48025
48025
|
var result49 = [];
|
|
48026
48026
|
for (let i = 0; i < len49; i++) {
|
|
48027
|
-
let base = base49 + i *
|
|
48027
|
+
let base = base49 + i * 48;
|
|
48028
48028
|
var ptr43 = dataView(_jcoDataViewCacheContext, memory0).getUint32(base + 0, !0) >>> 0;
|
|
48029
48029
|
var len43 = dataView(_jcoDataViewCacheContext, memory0).getUint32(base + 4, !0) >>> 0;
|
|
48030
48030
|
if (ptr43 > memory0.buffer.byteLength || len43 > Math.floor((memory0.buffer.byteLength - ptr43) / 1)) throw new WebAssemblyRuntimeError("string pointer/length out of bounds of memory");
|
|
@@ -48074,8 +48074,7 @@ export function instantiate(getCoreModule, imports, instantiateCore, options) {
|
|
|
48074
48074
|
kind: enum46,
|
|
48075
48075
|
place: variant48,
|
|
48076
48076
|
leadIn: dataView(_jcoDataViewCacheContext, memory0).getFloat64(base + 32, !0),
|
|
48077
|
-
pause: dataView(_jcoDataViewCacheContext, memory0).getFloat64(base + 40, !0)
|
|
48078
|
-
speed: dataView(_jcoDataViewCacheContext, memory0).getFloat64(base + 48, !0)
|
|
48077
|
+
pause: dataView(_jcoDataViewCacheContext, memory0).getFloat64(base + 40, !0)
|
|
48079
48078
|
});
|
|
48080
48079
|
}
|
|
48081
48080
|
result50.push(result49);
|
|
@@ -48162,15 +48161,15 @@ export function instantiate(getCoreModule, imports, instantiateCore, options) {
|
|
|
48162
48161
|
if (result && typeof result.then == "function") return Promise.resolve(result).finally(restore);
|
|
48163
48162
|
restore();
|
|
48164
48163
|
return result;
|
|
48165
|
-
})(0, 0, 8, len7 *
|
|
48164
|
+
})(0, 0, 8, len7 * 48);
|
|
48166
48165
|
result7 >>>= 0;
|
|
48167
48166
|
if (result7 % 8 != 0) throw new WebAssemblyRuntimeError("realloc return: result not aligned");
|
|
48168
|
-
if (result7 > memory0.buffer.byteLength || len7 > Math.floor((memory0.buffer.byteLength - result7) /
|
|
48169
|
-
if (result7 < 0 || len7 < 0 || len7 >
|
|
48167
|
+
if (result7 > memory0.buffer.byteLength || len7 > Math.floor((memory0.buffer.byteLength - result7) / 48)) throw new WebAssemblyRuntimeError("realloc return: beyond end of memory");
|
|
48168
|
+
if (result7 < 0 || len7 < 0 || len7 > 5592405 || result7 > memory0.buffer.byteLength || len7 > Math.floor((memory0.buffer.byteLength - result7) / 48)) throw new WebAssemblyRuntimeError("wasm trap: out of bounds memory access");
|
|
48170
48169
|
for (let i = 0; i < vec7.length; i++) {
|
|
48171
48170
|
let e = vec7[i];
|
|
48172
|
-
let base = result7 + i *
|
|
48173
|
-
var { text: v0_0, words: v0_1, kind: v0_2, place: v0_3, leadIn: v0_4, pause: v0_5
|
|
48171
|
+
let base = result7 + i * 48;
|
|
48172
|
+
var { text: v0_0, words: v0_1, kind: v0_2, place: v0_3, leadIn: v0_4, pause: v0_5 } = e;
|
|
48174
48173
|
var encodeRes = _utf8AllocateAndEncode(TEXT_ENCODER_UTF8, v0_0, ((...args) => {
|
|
48175
48174
|
let state = getOrCreateAsyncState(_jcoComponentStateLookupContext, 3);
|
|
48176
48175
|
let previousMayLeave = state.mayLeave;
|
|
@@ -48312,7 +48311,6 @@ export function instantiate(getCoreModule, imports, instantiateCore, options) {
|
|
|
48312
48311
|
}
|
|
48313
48312
|
dataView(_jcoDataViewCacheContext, memory0).setFloat64(base + 32, +v0_4, !0);
|
|
48314
48313
|
dataView(_jcoDataViewCacheContext, memory0).setFloat64(base + 40, +v0_5, !0);
|
|
48315
|
-
dataView(_jcoDataViewCacheContext, memory0).setFloat64(base + 48, +v0_6, !0);
|
|
48316
48314
|
}
|
|
48317
48315
|
var vec11 = arg1;
|
|
48318
48316
|
var len11 = vec11.length;
|
|
@@ -51065,15 +51063,15 @@ export function instantiate(getCoreModule, imports, instantiateCore, options) {
|
|
|
51065
51063
|
if (result && typeof result.then == "function") return Promise.resolve(result).finally(restore);
|
|
51066
51064
|
restore();
|
|
51067
51065
|
return result;
|
|
51068
|
-
})(0, 0, 8, len7 *
|
|
51066
|
+
})(0, 0, 8, len7 * 48);
|
|
51069
51067
|
result7 >>>= 0;
|
|
51070
51068
|
if (result7 % 8 != 0) throw new WebAssemblyRuntimeError("realloc return: result not aligned");
|
|
51071
|
-
if (result7 > memory0.buffer.byteLength || len7 > Math.floor((memory0.buffer.byteLength - result7) /
|
|
51072
|
-
if (result7 < 0 || len7 < 0 || len7 >
|
|
51069
|
+
if (result7 > memory0.buffer.byteLength || len7 > Math.floor((memory0.buffer.byteLength - result7) / 48)) throw new WebAssemblyRuntimeError("realloc return: beyond end of memory");
|
|
51070
|
+
if (result7 < 0 || len7 < 0 || len7 > 5592405 || result7 > memory0.buffer.byteLength || len7 > Math.floor((memory0.buffer.byteLength - result7) / 48)) throw new WebAssemblyRuntimeError("wasm trap: out of bounds memory access");
|
|
51073
51071
|
for (let i = 0; i < vec7.length; i++) {
|
|
51074
51072
|
let e = vec7[i];
|
|
51075
|
-
let base = result7 + i *
|
|
51076
|
-
var { text: v0_0, words: v0_1, kind: v0_2, place: v0_3, leadIn: v0_4, pause: v0_5
|
|
51073
|
+
let base = result7 + i * 48;
|
|
51074
|
+
var { text: v0_0, words: v0_1, kind: v0_2, place: v0_3, leadIn: v0_4, pause: v0_5 } = e;
|
|
51077
51075
|
var encodeRes = _utf8AllocateAndEncode(TEXT_ENCODER_UTF8, v0_0, ((...args) => {
|
|
51078
51076
|
let state = getOrCreateAsyncState(_jcoComponentStateLookupContext, 3);
|
|
51079
51077
|
let previousMayLeave = state.mayLeave;
|
|
@@ -51215,7 +51213,6 @@ export function instantiate(getCoreModule, imports, instantiateCore, options) {
|
|
|
51215
51213
|
}
|
|
51216
51214
|
dataView(_jcoDataViewCacheContext, memory0).setFloat64(base + 32, +v0_4, !0);
|
|
51217
51215
|
dataView(_jcoDataViewCacheContext, memory0).setFloat64(base + 40, +v0_5, !0);
|
|
51218
|
-
dataView(_jcoDataViewCacheContext, memory0).setFloat64(base + 48, +v0_6, !0);
|
|
51219
51216
|
}
|
|
51220
51217
|
_debugLog("[iface=\"aula:engine/engine\", function=\"estimate-narration\"][Instruction::CallWasm] enter", {
|
|
51221
51218
|
funcName: "estimate-narration",
|
|
@@ -54893,7 +54890,7 @@ export function instantiate(getCoreModule, imports, instantiateCore, options) {
|
|
|
54893
54890
|
valData2 = new Uint8Array(val2.buffer || val2, val2.byteOffset, valLenBytes2);
|
|
54894
54891
|
new Uint8Array(memory0.buffer, ptr2, valLenBytes2).set(valData2);
|
|
54895
54892
|
}
|
|
54896
|
-
var { voice: v3_0,
|
|
54893
|
+
var { voice: v3_0, durations: v3_1 } = arg2;
|
|
54897
54894
|
var variant4 = v3_0;
|
|
54898
54895
|
let variant4_0;
|
|
54899
54896
|
let variant4_1;
|
|
@@ -54905,7 +54902,7 @@ export function instantiate(getCoreModule, imports, instantiateCore, options) {
|
|
|
54905
54902
|
variant4_0 = 1;
|
|
54906
54903
|
variant4_1 = toUint32(_jcoStrictNumericContext, e);
|
|
54907
54904
|
}
|
|
54908
|
-
var variant6 =
|
|
54905
|
+
var variant6 = v3_1;
|
|
54909
54906
|
let variant6_0;
|
|
54910
54907
|
let variant6_1;
|
|
54911
54908
|
let variant6_2;
|
|
@@ -54962,7 +54959,7 @@ export function instantiate(getCoreModule, imports, instantiateCore, options) {
|
|
|
54962
54959
|
}
|
|
54963
54960
|
_debugLog("[iface=\"aula:engine/tts\", function=\"[method]tts-model.speak\"][Instruction::CallWasm] enter", {
|
|
54964
54961
|
funcName: "[method]tts-model.speak",
|
|
54965
|
-
paramCount:
|
|
54962
|
+
paramCount: 8,
|
|
54966
54963
|
async: !1,
|
|
54967
54964
|
postReturn: !0
|
|
54968
54965
|
});
|
|
@@ -54972,7 +54969,7 @@ export function instantiate(getCoreModule, imports, instantiateCore, options) {
|
|
|
54972
54969
|
taskID: task.id(),
|
|
54973
54970
|
threadID,
|
|
54974
54971
|
componentIdx: task.componentIdx(),
|
|
54975
|
-
fn: () => ttsMethodTtsModelSpeak(handle0, ptr2, len2, variant4_0, variant4_1,
|
|
54972
|
+
fn: () => ttsMethodTtsModelSpeak(handle0, ptr2, len2, variant4_0, variant4_1, variant6_0, variant6_1, variant6_2)
|
|
54976
54973
|
});
|
|
54977
54974
|
} catch (err) {
|
|
54978
54975
|
_debugLog("[Instruction::CallWasm] error during sync call", {
|
|
@@ -55233,7 +55230,7 @@ export function instantiate(getCoreModule, imports, instantiateCore, options) {
|
|
|
55233
55230
|
valData2 = new Uint8Array(val2.buffer || val2, val2.byteOffset, valLenBytes2);
|
|
55234
55231
|
new Uint8Array(memory0.buffer, ptr2, valLenBytes2).set(valData2);
|
|
55235
55232
|
}
|
|
55236
|
-
var { voice: v3_0,
|
|
55233
|
+
var { voice: v3_0, durations: v3_1 } = arg2;
|
|
55237
55234
|
var variant4 = v3_0;
|
|
55238
55235
|
let variant4_0;
|
|
55239
55236
|
let variant4_1;
|
|
@@ -55245,7 +55242,7 @@ export function instantiate(getCoreModule, imports, instantiateCore, options) {
|
|
|
55245
55242
|
variant4_0 = 1;
|
|
55246
55243
|
variant4_1 = toUint32(_jcoStrictNumericContext, e);
|
|
55247
55244
|
}
|
|
55248
|
-
var variant6 =
|
|
55245
|
+
var variant6 = v3_1;
|
|
55249
55246
|
let variant6_0;
|
|
55250
55247
|
let variant6_1;
|
|
55251
55248
|
let variant6_2;
|
|
@@ -55302,7 +55299,7 @@ export function instantiate(getCoreModule, imports, instantiateCore, options) {
|
|
|
55302
55299
|
}
|
|
55303
55300
|
_debugLog("[iface=\"aula:engine/tts\", function=\"[method]tts-model.durations\"][Instruction::CallWasm] enter", {
|
|
55304
55301
|
funcName: "[method]tts-model.durations",
|
|
55305
|
-
paramCount:
|
|
55302
|
+
paramCount: 8,
|
|
55306
55303
|
async: !1,
|
|
55307
55304
|
postReturn: !0
|
|
55308
55305
|
});
|
|
@@ -55312,7 +55309,7 @@ export function instantiate(getCoreModule, imports, instantiateCore, options) {
|
|
|
55312
55309
|
taskID: task.id(),
|
|
55313
55310
|
threadID,
|
|
55314
55311
|
componentIdx: task.componentIdx(),
|
|
55315
|
-
fn: () => ttsMethodTtsModelDurations(handle0, ptr2, len2, variant4_0, variant4_1,
|
|
55312
|
+
fn: () => ttsMethodTtsModelDurations(handle0, ptr2, len2, variant4_0, variant4_1, variant6_0, variant6_1, variant6_2)
|
|
55316
55313
|
});
|
|
55317
55314
|
} catch (err) {
|
|
55318
55315
|
_debugLog("[Instruction::CallWasm] error during sync call", {
|
|
@@ -55565,7 +55562,7 @@ export function instantiate(getCoreModule, imports, instantiateCore, options) {
|
|
|
55565
55562
|
valData2 = new Uint8Array(val2.buffer || val2, val2.byteOffset, valLenBytes2);
|
|
55566
55563
|
new Uint8Array(memory0.buffer, ptr2, valLenBytes2).set(valData2);
|
|
55567
55564
|
}
|
|
55568
|
-
var { voice: v3_0,
|
|
55565
|
+
var { voice: v3_0, durations: v3_1 } = arg2;
|
|
55569
55566
|
var variant4 = v3_0;
|
|
55570
55567
|
let variant4_0;
|
|
55571
55568
|
let variant4_1;
|
|
@@ -55577,7 +55574,7 @@ export function instantiate(getCoreModule, imports, instantiateCore, options) {
|
|
|
55577
55574
|
variant4_0 = 1;
|
|
55578
55575
|
variant4_1 = toUint32(_jcoStrictNumericContext, e);
|
|
55579
55576
|
}
|
|
55580
|
-
var variant6 =
|
|
55577
|
+
var variant6 = v3_1;
|
|
55581
55578
|
let variant6_0;
|
|
55582
55579
|
let variant6_1;
|
|
55583
55580
|
let variant6_2;
|
|
@@ -55634,7 +55631,7 @@ export function instantiate(getCoreModule, imports, instantiateCore, options) {
|
|
|
55634
55631
|
}
|
|
55635
55632
|
_debugLog("[iface=\"aula:engine/tts\", function=\"[method]tts-model.encode\"][Instruction::CallWasm] enter", {
|
|
55636
55633
|
funcName: "[method]tts-model.encode",
|
|
55637
|
-
paramCount:
|
|
55634
|
+
paramCount: 8,
|
|
55638
55635
|
async: !1,
|
|
55639
55636
|
postReturn: !0
|
|
55640
55637
|
});
|
|
@@ -55644,7 +55641,7 @@ export function instantiate(getCoreModule, imports, instantiateCore, options) {
|
|
|
55644
55641
|
taskID: task.id(),
|
|
55645
55642
|
threadID,
|
|
55646
55643
|
componentIdx: task.componentIdx(),
|
|
55647
|
-
fn: () => ttsMethodTtsModelEncode(handle0, ptr2, len2, variant4_0, variant4_1,
|
|
55644
|
+
fn: () => ttsMethodTtsModelEncode(handle0, ptr2, len2, variant4_0, variant4_1, variant6_0, variant6_1, variant6_2)
|
|
55648
55645
|
});
|
|
55649
55646
|
} catch (err) {
|
|
55650
55647
|
_debugLog("[Instruction::CallWasm] error during sync call", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beff/aula",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The aula engine for narrated explainer videos: the Manim CE API, defineChapter, its rows, readChapter and renderChapter over a Rust WebAssembly component. Chapters and kits import it; the aula command is @beff/aula-cli.",
|
|
6
6
|
"license": "MIT AND GPL-3.0-or-later",
|