Upload 4 files
Browse files
wasm/genai_wasm_internal.js
CHANGED
|
@@ -42,7 +42,7 @@ var ENVIRONMENT_IS_NODE = globalThis.process?.versions?.node && globalThis.proce
|
|
| 42 |
|
| 43 |
// --pre-jses are emitted after the Module integration code, so that they can
|
| 44 |
// refer to Module (if they choose; they can also define Module)
|
| 45 |
-
var
|
| 46 |
|
| 47 |
var thisProgram = "./this.program";
|
| 48 |
|
|
@@ -92,7 +92,7 @@ if (ENVIRONMENT_IS_NODE) {
|
|
| 92 |
if (process.argv.length > 1) {
|
| 93 |
thisProgram = process.argv[1].replace(/\\/g, "/");
|
| 94 |
}
|
| 95 |
-
|
| 96 |
quit_ = (status, toThrow) => {
|
| 97 |
process.exitCode = status;
|
| 98 |
throw toThrow;
|
|
@@ -199,14 +199,17 @@ var EXITSTATUS;
|
|
| 199 |
// include: runtime_stack_check.js
|
| 200 |
// end include: runtime_stack_check.js
|
| 201 |
// include: runtime_exceptions.js
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 202 |
// end include: runtime_exceptions.js
|
| 203 |
// include: runtime_debug.js
|
| 204 |
// end include: runtime_debug.js
|
| 205 |
var readyPromiseResolve, readyPromiseReject;
|
| 206 |
|
| 207 |
// Memory management
|
| 208 |
-
var /** @type {!Int8Array} */ HEAP8, /** @type {!Uint8Array} */ HEAPU8, /** @type {!Int16Array} */ HEAP16, /** @type {!Uint16Array} */ HEAPU16, /** @type {!Int32Array} */ HEAP32, /** @type {!Uint32Array} */ HEAPU32, /** @type {!Float32Array} */ HEAPF32, /** @type {!Float64Array} */ HEAPF64;
|
| 209 |
-
|
| 210 |
var runtimeInitialized = false;
|
| 211 |
|
| 212 |
function updateMemoryViews() {
|
|
@@ -241,7 +244,7 @@ function initRuntime() {
|
|
| 241 |
if (!Module["noFSInit"] && !FS.initialized) FS.init();
|
| 242 |
TTY.init();
|
| 243 |
// End ATINITS hooks
|
| 244 |
-
wasmExports["
|
| 245 |
// Begin ATPOSTCTORS hooks
|
| 246 |
FS.ignorePermissions = false;
|
| 247 |
}
|
|
@@ -258,9 +261,11 @@ function postRun() {
|
|
| 258 |
callRuntimeCallbacks(onPostRuns);
|
| 259 |
}
|
| 260 |
|
| 261 |
-
/**
|
|
|
|
|
|
|
| 262 |
Module["onAbort"]?.(what);
|
| 263 |
-
what =
|
| 264 |
// TODO(sbc): Should we remove printing and leave it up to whoever
|
| 265 |
// catches the exception?
|
| 266 |
err(what);
|
|
@@ -794,13 +799,8 @@ var Browser = {
|
|
| 794 |
// in the coordinates.
|
| 795 |
var canvas = Browser.getCanvas();
|
| 796 |
var rect = canvas.getBoundingClientRect();
|
| 797 |
-
|
| 798 |
-
|
| 799 |
-
// (see: http://www.w3.org/TR/2013/WD-cssom-view-20131217/)
|
| 800 |
-
var scrollX = ((typeof window.scrollX != "undefined") ? window.scrollX : window.pageXOffset);
|
| 801 |
-
var scrollY = ((typeof window.scrollY != "undefined") ? window.scrollY : window.pageYOffset);
|
| 802 |
-
var adjustedX = pageX - (scrollX + rect.left);
|
| 803 |
-
var adjustedY = pageY - (scrollY + rect.top);
|
| 804 |
// the canvas might be CSS-scaled compared to its backbuffer;
|
| 805 |
// SDL-using content will want mouse coordinates in terms
|
| 806 |
// of backbuffer units.
|
|
@@ -933,6 +933,22 @@ var Browser = {
|
|
| 933 |
}
|
| 934 |
};
|
| 935 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 936 |
var callRuntimeCallbacks = callbacks => {
|
| 937 |
while (callbacks.length > 0) {
|
| 938 |
// Pass the module as the first argument.
|
|
@@ -1016,8 +1032,6 @@ class ExceptionInfo {
|
|
| 1016 |
}
|
| 1017 |
}
|
| 1018 |
|
| 1019 |
-
var exceptionLast = 0;
|
| 1020 |
-
|
| 1021 |
var uncaughtExceptionCount = 0;
|
| 1022 |
|
| 1023 |
var convertI32PairToI53Checked = (lo, hi) => ((hi + 2097152) >>> 0 < 4194305 - !!lo) ? (lo >>> 0) + hi * 4294967296 : NaN;
|
|
@@ -1029,9 +1043,8 @@ function ___cxa_throw(ptr, type, destructor) {
|
|
| 1029 |
var info = new ExceptionInfo(ptr);
|
| 1030 |
// Initialize ExceptionInfo content after it was allocated in __cxa_allocate_exception.
|
| 1031 |
info.init(type, destructor);
|
| 1032 |
-
exceptionLast = ptr;
|
| 1033 |
uncaughtExceptionCount++;
|
| 1034 |
-
|
| 1035 |
}
|
| 1036 |
|
| 1037 |
function __Unwind_RaiseException(ex) {
|
|
@@ -1104,13 +1117,10 @@ var initRandomFill = () => {
|
|
| 1104 |
var nodeCrypto = require("node:crypto");
|
| 1105 |
return view => nodeCrypto.randomFillSync(view);
|
| 1106 |
}
|
| 1107 |
-
return view => crypto.getRandomValues(view);
|
| 1108 |
};
|
| 1109 |
|
| 1110 |
-
var randomFill = view =>
|
| 1111 |
-
// Lazily init on the first invocation.
|
| 1112 |
-
(randomFill = initRandomFill())(view);
|
| 1113 |
-
};
|
| 1114 |
|
| 1115 |
var PATH_FS = {
|
| 1116 |
resolve: (...args) => {
|
|
@@ -1507,12 +1517,14 @@ var MEMFS = {
|
|
| 1507 |
} else if (FS.isFile(node.mode)) {
|
| 1508 |
node.node_ops = MEMFS.ops_table.file.node;
|
| 1509 |
node.stream_ops = MEMFS.ops_table.file.stream;
|
|
|
|
|
|
|
| 1510 |
node.usedBytes = 0;
|
| 1511 |
-
// The
|
| 1512 |
-
//
|
| 1513 |
-
//
|
| 1514 |
-
//
|
| 1515 |
-
node.contents =
|
| 1516 |
} else if (FS.isLink(node.mode)) {
|
| 1517 |
node.node_ops = MEMFS.ops_table.link.node;
|
| 1518 |
node.stream_ops = MEMFS.ops_table.link.stream;
|
|
@@ -1529,42 +1541,34 @@ var MEMFS = {
|
|
| 1529 |
return node;
|
| 1530 |
},
|
| 1531 |
getFileDataAsTypedArray(node) {
|
| 1532 |
-
|
| 1533 |
-
if (node.contents.subarray) return node.contents.subarray(0, node.usedBytes);
|
| 1534 |
-
// Make sure to not return excess unused bytes.
|
| 1535 |
-
return new Uint8Array(node.contents);
|
| 1536 |
},
|
| 1537 |
expandFileStorage(node, newCapacity) {
|
| 1538 |
-
var prevCapacity = node.contents
|
| 1539 |
if (prevCapacity >= newCapacity) return;
|
| 1540 |
// No need to expand, the storage was already large enough.
|
| 1541 |
-
// Don't expand strictly to the given requested limit if it's only a very
|
| 1542 |
-
//
|
| 1543 |
-
//
|
|
|
|
|
|
|
| 1544 |
var CAPACITY_DOUBLING_MAX = 1024 * 1024;
|
| 1545 |
newCapacity = Math.max(newCapacity, (prevCapacity * (prevCapacity < CAPACITY_DOUBLING_MAX ? 2 : 1.125)) >>> 0);
|
| 1546 |
-
if (prevCapacity
|
| 1547 |
// At minimum allocate 256b for each file when expanding.
|
| 1548 |
-
var oldContents =
|
| 1549 |
node.contents = new Uint8Array(newCapacity);
|
| 1550 |
// Allocate new storage.
|
| 1551 |
-
|
| 1552 |
},
|
| 1553 |
resizeFileStorage(node, newSize) {
|
| 1554 |
if (node.usedBytes == newSize) return;
|
| 1555 |
-
|
| 1556 |
-
|
| 1557 |
-
|
| 1558 |
-
|
| 1559 |
-
|
| 1560 |
-
|
| 1561 |
-
node.contents = new Uint8Array(newSize);
|
| 1562 |
-
// Allocate new storage.
|
| 1563 |
-
if (oldContents) {
|
| 1564 |
-
node.contents.set(oldContents.subarray(0, Math.min(newSize, node.usedBytes)));
|
| 1565 |
-
}
|
| 1566 |
-
node.usedBytes = newSize;
|
| 1567 |
-
}
|
| 1568 |
},
|
| 1569 |
node_ops: {
|
| 1570 |
getattr(node) {
|
|
@@ -1669,12 +1673,7 @@ var MEMFS = {
|
|
| 1669 |
var contents = stream.node.contents;
|
| 1670 |
if (position >= stream.node.usedBytes) return 0;
|
| 1671 |
var size = Math.min(stream.node.usedBytes - position, length);
|
| 1672 |
-
|
| 1673 |
-
// non-trivial, and typed array
|
| 1674 |
-
buffer.set(contents.subarray(position, position + size), offset);
|
| 1675 |
-
} else {
|
| 1676 |
-
for (var i = 0; i < size; i++) buffer[offset + i] = contents[position + i];
|
| 1677 |
-
}
|
| 1678 |
return size;
|
| 1679 |
},
|
| 1680 |
write(stream, buffer, offset, length, position, canOwn) {
|
|
@@ -1688,34 +1687,19 @@ var MEMFS = {
|
|
| 1688 |
if (!length) return 0;
|
| 1689 |
var node = stream.node;
|
| 1690 |
node.mtime = node.ctime = Date.now();
|
| 1691 |
-
if (
|
| 1692 |
-
|
| 1693 |
-
|
| 1694 |
-
|
| 1695 |
-
|
| 1696 |
-
|
| 1697 |
-
|
| 1698 |
-
|
| 1699 |
-
|
| 1700 |
-
node.usedBytes = length;
|
| 1701 |
-
return length;
|
| 1702 |
-
} else if (position + length <= node.usedBytes) {
|
| 1703 |
-
// Writing to an already allocated and used subrange of the file?
|
| 1704 |
-
node.contents.set(buffer.subarray(offset, offset + length), position);
|
| 1705 |
-
return length;
|
| 1706 |
-
}
|
| 1707 |
-
}
|
| 1708 |
-
// Appending to an existing file and we need to reallocate, or source data did not come as a typed array.
|
| 1709 |
-
MEMFS.expandFileStorage(node, position + length);
|
| 1710 |
-
if (node.contents.subarray && buffer.subarray) {
|
| 1711 |
// Use typed array write which is available.
|
| 1712 |
node.contents.set(buffer.subarray(offset, offset + length), position);
|
| 1713 |
-
|
| 1714 |
-
for (var i = 0; i < length; i++) {
|
| 1715 |
-
node.contents[position + i] = buffer[offset + i];
|
| 1716 |
-
}
|
| 1717 |
}
|
| 1718 |
-
node.usedBytes = Math.max(node.usedBytes, position + length);
|
| 1719 |
return length;
|
| 1720 |
},
|
| 1721 |
llseek(stream, offset, whence) {
|
|
@@ -1740,7 +1724,7 @@ var MEMFS = {
|
|
| 1740 |
var allocated;
|
| 1741 |
var contents = stream.node.contents;
|
| 1742 |
// Only make a new copy when MAP_PRIVATE is specified.
|
| 1743 |
-
if (!(flags & 2) && contents
|
| 1744 |
// We can't emulate MAP_SHARED when the file is not backed by the
|
| 1745 |
// buffer we're mapping to (e.g. the HEAP buffer).
|
| 1746 |
allocated = false;
|
|
@@ -1777,6 +1761,7 @@ var MEMFS = {
|
|
| 1777 |
};
|
| 1778 |
|
| 1779 |
var FS_modeStringToFlags = str => {
|
|
|
|
| 1780 |
var flagModes = {
|
| 1781 |
"r": 0,
|
| 1782 |
"r+": 2,
|
|
@@ -1792,6 +1777,16 @@ var FS_modeStringToFlags = str => {
|
|
| 1792 |
return flags;
|
| 1793 |
};
|
| 1794 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1795 |
var FS_getMode = (canRead, canWrite) => {
|
| 1796 |
var mode = 0;
|
| 1797 |
if (canRead) mode |= 292 | 73;
|
|
@@ -1967,7 +1962,7 @@ var FS = {
|
|
| 1967 |
if (!PATH.isAbs(path)) {
|
| 1968 |
path = FS.cwd() + "/" + path;
|
| 1969 |
}
|
| 1970 |
-
// limit max consecutive symlinks to
|
| 1971 |
linkloop: for (var nlinks = 0; nlinks < 40; nlinks++) {
|
| 1972 |
// split the absolute path
|
| 1973 |
var parts = path.split("/").filter(p => !!p);
|
|
@@ -2250,7 +2245,14 @@ var FS = {
|
|
| 2250 |
var arg = setattr ? stream : node;
|
| 2251 |
setattr ??= node.node_ops.setattr;
|
| 2252 |
FS.checkOpExists(setattr, 63);
|
| 2253 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2254 |
},
|
| 2255 |
chrdev_stream_ops: {
|
| 2256 |
open(stream) {
|
|
@@ -2768,7 +2770,7 @@ var FS = {
|
|
| 2768 |
if (path === "") {
|
| 2769 |
throw new FS.ErrnoError(44);
|
| 2770 |
}
|
| 2771 |
-
flags =
|
| 2772 |
if ((flags & 64)) {
|
| 2773 |
mode = (mode & 4095) | 32768;
|
| 2774 |
} else {
|
|
@@ -2981,8 +2983,8 @@ var FS = {
|
|
| 2981 |
return stream.stream_ops.ioctl(stream, cmd, arg);
|
| 2982 |
},
|
| 2983 |
readFile(path, opts = {}) {
|
| 2984 |
-
opts.flags = opts.flags
|
| 2985 |
-
opts.encoding = opts.encoding
|
| 2986 |
if (opts.encoding !== "utf8" && opts.encoding !== "binary") {
|
| 2987 |
abort(`Invalid encoding type "${opts.encoding}"`);
|
| 2988 |
}
|
|
@@ -2998,16 +3000,10 @@ var FS = {
|
|
| 2998 |
return buf;
|
| 2999 |
},
|
| 3000 |
writeFile(path, data, opts = {}) {
|
| 3001 |
-
opts.flags = opts.flags
|
| 3002 |
var stream = FS.open(path, opts.flags, opts.mode);
|
| 3003 |
-
|
| 3004 |
-
|
| 3005 |
-
}
|
| 3006 |
-
if (ArrayBuffer.isView(data)) {
|
| 3007 |
-
FS.write(stream, data, 0, data.byteLength, undefined, opts.canOwn);
|
| 3008 |
-
} else {
|
| 3009 |
-
abort("Unsupported data type");
|
| 3010 |
-
}
|
| 3011 |
FS.close(stream);
|
| 3012 |
},
|
| 3013 |
cwd: () => FS.currentPath,
|
|
@@ -3237,11 +3233,7 @@ var FS = {
|
|
| 3237 |
var mode = FS_getMode(canRead, canWrite);
|
| 3238 |
var node = FS.create(path, mode);
|
| 3239 |
if (data) {
|
| 3240 |
-
|
| 3241 |
-
var arr = new Array(data.length);
|
| 3242 |
-
for (var i = 0, len = data.length; i < len; ++i) arr[i] = data.charCodeAt(i);
|
| 3243 |
-
data = arr;
|
| 3244 |
-
}
|
| 3245 |
// make sure we can write to the file
|
| 3246 |
FS.chmod(node, mode | 146);
|
| 3247 |
var stream = FS.open(node, 577);
|
|
@@ -3350,8 +3342,8 @@ var FS = {
|
|
| 3350 |
if (!hasByteServing) chunkSize = datalength;
|
| 3351 |
// Function to get a range from the remote URL.
|
| 3352 |
var doXHR = (from, to) => {
|
| 3353 |
-
if (from > to) abort(
|
| 3354 |
-
if (to > datalength - 1) abort(
|
| 3355 |
// TODO: Use mozResponseArrayBuffer, responseStream, etc. if available.
|
| 3356 |
var xhr = new XMLHttpRequest;
|
| 3357 |
xhr.open("GET", url, false);
|
|
@@ -3366,7 +3358,7 @@ var FS = {
|
|
| 3366 |
if (xhr.response !== undefined) {
|
| 3367 |
return new Uint8Array(/** @type{Array<number>} */ (xhr.response || []));
|
| 3368 |
}
|
| 3369 |
-
return intArrayFromString(xhr.responseText
|
| 3370 |
};
|
| 3371 |
var lazyArray = this;
|
| 3372 |
lazyArray.setDataGetter(chunkNum => {
|
|
@@ -3505,6 +3497,7 @@ var FS = {
|
|
| 3505 |
};
|
| 3506 |
|
| 3507 |
var SYSCALLS = {
|
|
|
|
| 3508 |
calculateAt(dirfd, path, allowEmpty) {
|
| 3509 |
if (PATH.isAbs(path)) {
|
| 3510 |
return path;
|
|
@@ -3675,7 +3668,8 @@ function ___syscall_fcntl64(fd, cmd, varargs) {
|
|
| 3675 |
case 4:
|
| 3676 |
{
|
| 3677 |
var arg = syscallGetVarargI();
|
| 3678 |
-
|
|
|
|
| 3679 |
return 0;
|
| 3680 |
}
|
| 3681 |
|
|
@@ -3716,7 +3710,7 @@ function ___syscall_fstat64(fd, buf) {
|
|
| 3716 |
function ___syscall_ftruncate64(fd, length_low, length_high) {
|
| 3717 |
var length = convertI32PairToI53Checked(length_low, length_high);
|
| 3718 |
try {
|
| 3719 |
-
if (isNaN(length)) return -
|
| 3720 |
FS.ftruncate(fd, length);
|
| 3721 |
return 0;
|
| 3722 |
} catch (e) {
|
|
@@ -3943,6 +3937,7 @@ function ___syscall_mkdirat(dirfd, path, mode) {
|
|
| 3943 |
try {
|
| 3944 |
path = SYSCALLS.getStr(path);
|
| 3945 |
path = SYSCALLS.calculateAt(dirfd, path);
|
|
|
|
| 3946 |
FS.mkdir(path, mode, 0);
|
| 3947 |
return 0;
|
| 3948 |
} catch (e) {
|
|
@@ -3975,6 +3970,9 @@ function ___syscall_openat(dirfd, path, flags, varargs) {
|
|
| 3975 |
path = SYSCALLS.getStr(path);
|
| 3976 |
path = SYSCALLS.calculateAt(dirfd, path);
|
| 3977 |
var mode = varargs ? syscallGetVarargI() : 0;
|
|
|
|
|
|
|
|
|
|
| 3978 |
return FS.open(path, flags, mode).fd;
|
| 3979 |
} catch (e) {
|
| 3980 |
if (typeof FS == "undefined" || !(e.name === "ErrnoError")) throw e;
|
|
@@ -3982,6 +3980,40 @@ function ___syscall_openat(dirfd, path, flags, varargs) {
|
|
| 3982 |
}
|
| 3983 |
}
|
| 3984 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3985 |
function ___syscall_stat64(path, buf) {
|
| 3986 |
path >>>= 0;
|
| 3987 |
buf >>>= 0;
|
|
@@ -3994,6 +4026,70 @@ function ___syscall_stat64(path, buf) {
|
|
| 3994 |
}
|
| 3995 |
}
|
| 3996 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3997 |
var __abort_js = () => abort("");
|
| 3998 |
|
| 3999 |
function __embind_register_bigint(primitiveType, name, size, minRange, maxRange) {
|
|
@@ -4082,6 +4178,7 @@ var emval_handles = [ 0, 1, , 1, null, 1, true, 1, false, 1 ];
|
|
| 4082 |
function __emval_decref(handle) {
|
| 4083 |
handle >>>= 0;
|
| 4084 |
if (handle > 9 && 0 === --emval_handles[handle + 1]) {
|
|
|
|
| 4085 |
emval_handles[handle] = undefined;
|
| 4086 |
emval_freelist.push(handle);
|
| 4087 |
}
|
|
@@ -5090,6 +5187,9 @@ var __mktime_js = function(tmPtr) {
|
|
| 5090 |
tmPtr >>>= 0;
|
| 5091 |
var ret = (() => {
|
| 5092 |
var date = new Date(HEAP32[(((tmPtr) + (20)) >>> 2) >>> 0] + 1900, HEAP32[(((tmPtr) + (16)) >>> 2) >>> 0], HEAP32[(((tmPtr) + (12)) >>> 2) >>> 0], HEAP32[(((tmPtr) + (8)) >>> 2) >>> 0], HEAP32[(((tmPtr) + (4)) >>> 2) >>> 0], HEAP32[((tmPtr) >>> 2) >>> 0], 0);
|
|
|
|
|
|
|
|
|
|
| 5093 |
// There's an ambiguous hour when the time goes back; the tm_isdst field is
|
| 5094 |
// used to disambiguate it. Date() basically guesses, so we fix it up if it
|
| 5095 |
// guessed wrong, or fill in tm_isdst with the guess if it's -1.
|
|
@@ -5119,12 +5219,8 @@ var __mktime_js = function(tmPtr) {
|
|
| 5119 |
HEAP32[(((tmPtr) + (12)) >>> 2) >>> 0] = date.getDate();
|
| 5120 |
HEAP32[(((tmPtr) + (16)) >>> 2) >>> 0] = date.getMonth();
|
| 5121 |
HEAP32[(((tmPtr) + (20)) >>> 2) >>> 0] = date.getYear();
|
| 5122 |
-
|
| 5123 |
-
|
| 5124 |
-
return -1;
|
| 5125 |
-
}
|
| 5126 |
-
// Return time in microseconds
|
| 5127 |
-
return timeMs / 1e3;
|
| 5128 |
})();
|
| 5129 |
return (setTempRet0((tempDouble = ret, (+(Math.abs(tempDouble))) >= 1 ? (tempDouble > 0 ? (+(Math.floor((tempDouble) / 4294967296))) >>> 0 : (~~((+(Math.ceil((tempDouble - +(((~~(tempDouble))) >>> 0)) / 4294967296))))) >>> 0) : 0)),
|
| 5130 |
ret >>> 0);
|
|
@@ -5507,7 +5603,7 @@ var getEmscriptenSupportedExtensions = ctx => {
|
|
| 5507 |
"EXT_color_buffer_float", "EXT_conservative_depth", "EXT_disjoint_timer_query_webgl2", "EXT_texture_norm16", "NV_shader_noperspective_interpolation", "WEBGL_clip_cull_distance", // WebGL 1 and WebGL 2 extensions
|
| 5508 |
"EXT_clip_control", "EXT_color_buffer_half_float", "EXT_depth_clamp", "EXT_float_blend", "EXT_polygon_offset_clamp", "EXT_texture_compression_bptc", "EXT_texture_compression_rgtc", "EXT_texture_filter_anisotropic", "KHR_parallel_shader_compile", "OES_texture_float_linear", "WEBGL_blend_func_extended", "WEBGL_compressed_texture_astc", "WEBGL_compressed_texture_etc", "WEBGL_compressed_texture_etc1", "WEBGL_compressed_texture_s3tc", "WEBGL_compressed_texture_s3tc_srgb", "WEBGL_debug_renderer_info", "WEBGL_debug_shaders", "WEBGL_lose_context", "WEBGL_multi_draw", "WEBGL_polygon_mode" ];
|
| 5509 |
// .getSupportedExtensions() can return null if context is lost, so coerce to empty array.
|
| 5510 |
-
return
|
| 5511 |
};
|
| 5512 |
|
| 5513 |
var registerPreMainLoop = f => {
|
|
@@ -5515,6 +5611,10 @@ var registerPreMainLoop = f => {
|
|
| 5515 |
typeof MainLoop != "undefined" && MainLoop.preMainLoop.push(f);
|
| 5516 |
};
|
| 5517 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5518 |
var GL = {
|
| 5519 |
counter: 1,
|
| 5520 |
buffers: [],
|
|
@@ -5691,7 +5791,7 @@ var GL = {
|
|
| 5691 |
var size = GL.calcBufLength(cb.size, cb.type, cb.stride, count);
|
| 5692 |
var buf = GL.getTempVertexBuffer(size);
|
| 5693 |
GLctx.bindBuffer(34962, buf);
|
| 5694 |
-
|
| 5695 |
cb.vertexAttribPointerAdaptor.call(GLctx, i, cb.size, cb.type, cb.normalized, cb.stride, 0);
|
| 5696 |
}
|
| 5697 |
},
|
|
@@ -5941,8 +6041,6 @@ var writeI53ToI64 = (ptr, num) => {
|
|
| 5941 |
HEAPU32[(((ptr) + (4)) >>> 2) >>> 0] = (num - lower) / 4294967296;
|
| 5942 |
};
|
| 5943 |
|
| 5944 |
-
var readI53FromI64 = ptr => HEAPU32[((ptr) >>> 2) >>> 0] + HEAP32[(((ptr) + (4)) >>> 2) >>> 0] * 4294967296;
|
| 5945 |
-
|
| 5946 |
var WebGPU = {
|
| 5947 |
Internals: {
|
| 5948 |
jsObjects: [],
|
|
@@ -6443,6 +6541,7 @@ var WebGPU = {
|
|
| 6443 |
20: "texture-formats-tier2",
|
| 6444 |
21: "primitive-index",
|
| 6445 |
22: "texture-component-swizzle",
|
|
|
|
| 6446 |
327692: "chromium-experimental-unorm16-texture-formats",
|
| 6447 |
327729: "chromium-experimental-multi-draw-indirect"
|
| 6448 |
},
|
|
@@ -6471,7 +6570,7 @@ var WebGPU = {
|
|
| 6471 |
ToneMappingMode: [ , "standard", "extended" ],
|
| 6472 |
VertexFormat: [ , "uint8", "uint8x2", "uint8x4", "sint8", "sint8x2", "sint8x4", "unorm8", "unorm8x2", "unorm8x4", "snorm8", "snorm8x2", "snorm8x4", "uint16", "uint16x2", "uint16x4", "sint16", "sint16x2", "sint16x4", "unorm16", "unorm16x2", "unorm16x4", "snorm16", "snorm16x2", "snorm16x4", "float16", "float16x2", "float16x4", "float32", "float32x2", "float32x3", "float32x4", "uint32", "uint32x2", "uint32x3", "uint32x4", "sint32", "sint32x2", "sint32x3", "sint32x4", "unorm10-10-10-2", "unorm8x4-bgra" ],
|
| 6473 |
VertexStepMode: [ , "vertex", "instance" ],
|
| 6474 |
-
WGSLLanguageFeatureName: [ , "readonly_and_readwrite_storage_textures", "packed_4x8_integer_dot_product", "unrestricted_pointer_parameters", "pointer_composite_access", "uniform_buffer_standard_layout", "subgroup_id", "texture_and_sampler_let", "subgroup_uniformity", "texture_formats_tier1" ]
|
| 6475 |
};
|
| 6476 |
|
| 6477 |
function _emscripten_webgpu_get_device() {
|
|
@@ -6679,12 +6778,11 @@ _emwgpuWaitAny.isAsync = true;
|
|
| 6679 |
|
| 6680 |
var ENV = {};
|
| 6681 |
|
| 6682 |
-
var getExecutableName = () => thisProgram
|
| 6683 |
|
| 6684 |
var getEnvStrings = () => {
|
| 6685 |
if (!getEnvStrings.strings) {
|
| 6686 |
// Default values.
|
| 6687 |
-
// Browser language detection #8751
|
| 6688 |
var lang = (globalThis.navigator?.language ?? "C").replace("-", "_") + ".UTF-8";
|
| 6689 |
var env = {
|
| 6690 |
"USER": "web_user",
|
|
@@ -6773,7 +6871,7 @@ function _fd_pread(fd, iov, iovcnt, offset_low, offset_high, pnum) {
|
|
| 6773 |
var offset = convertI32PairToI53Checked(offset_low, offset_high);
|
| 6774 |
pnum >>>= 0;
|
| 6775 |
try {
|
| 6776 |
-
if (isNaN(offset)) return
|
| 6777 |
var stream = SYSCALLS.getStreamFromFD(fd);
|
| 6778 |
var num = doReadv(stream, iov, iovcnt, offset);
|
| 6779 |
HEAPU32[((pnum) >>> 2) >>> 0] = num;
|
|
@@ -6803,7 +6901,7 @@ function _fd_seek(fd, offset_low, offset_high, whence, newOffset) {
|
|
| 6803 |
var offset = convertI32PairToI53Checked(offset_low, offset_high);
|
| 6804 |
newOffset >>>= 0;
|
| 6805 |
try {
|
| 6806 |
-
if (isNaN(offset)) return
|
| 6807 |
var stream = SYSCALLS.getStreamFromFD(fd);
|
| 6808 |
FS.llseek(stream, offset, whence);
|
| 6809 |
(tempI64 = [ stream.position >>> 0, (tempDouble = stream.position, (+(Math.abs(tempDouble))) >= 1 ? (tempDouble > 0 ? (+(Math.floor((tempDouble) / 4294967296))) >>> 0 : (~~((+(Math.ceil((tempDouble - +(((~~(tempDouble))) >>> 0)) / 4294967296))))) >>> 0) : 0) ],
|
|
@@ -7549,7 +7647,7 @@ var heapObjectForWebGLType = type => {
|
|
| 7549 |
|
| 7550 |
var toTypedArrayIndex = (pointer, heap) => pointer >>> (31 - Math.clz32(heap.BYTES_PER_ELEMENT));
|
| 7551 |
|
| 7552 |
-
var emscriptenWebGLGetTexPixelData = (type, format, width, height, pixels
|
| 7553 |
var heap = heapObjectForWebGLType(type);
|
| 7554 |
var sizePerPixel = colorChannelsInGlTextureFormat(format) * heap.BYTES_PER_ELEMENT;
|
| 7555 |
var bytes = computeUnpackAlignedImageSize(width, height, sizePerPixel);
|
|
@@ -7564,7 +7662,7 @@ function _emscripten_glReadPixels(x, y, width, height, format, type, pixels) {
|
|
| 7564 |
return;
|
| 7565 |
}
|
| 7566 |
}
|
| 7567 |
-
var pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels
|
| 7568 |
if (!pixelData) {
|
| 7569 |
GL.recordError(1280);
|
| 7570 |
return;
|
|
@@ -7591,7 +7689,7 @@ function _emscripten_glTexImage2D(target, level, internalFormat, width, height,
|
|
| 7591 |
return;
|
| 7592 |
}
|
| 7593 |
}
|
| 7594 |
-
var pixelData = pixels ? emscriptenWebGLGetTexPixelData(type, format, width, height, pixels
|
| 7595 |
GLctx.texImage2D(target, level, internalFormat, width, height, border, format, type, pixelData);
|
| 7596 |
}
|
| 7597 |
|
|
@@ -7605,16 +7703,15 @@ var _emscripten_glTexStorage2D = (x0, x1, x2, x3, x4) => GLctx.texStorage2D(x0,
|
|
| 7605 |
|
| 7606 |
var _glTexStorage2D = _emscripten_glTexStorage2D;
|
| 7607 |
|
| 7608 |
-
var
|
| 7609 |
-
|
| 7610 |
-
|
| 7611 |
-
|
| 7612 |
-
// p.uniformLocsById[location] stores either an integer, or a
|
| 7613 |
// WebGLUniformLocation.
|
| 7614 |
// If an integer, we have not yet bound the location, so do it now. The
|
| 7615 |
// integer value specifies the array index we should bind to.
|
| 7616 |
if (typeof webglLoc == "number") {
|
| 7617 |
-
|
| 7618 |
}
|
| 7619 |
// Else an already cached WebGLUniformLocation, return it.
|
| 7620 |
return webglLoc;
|
|
@@ -7623,6 +7720,8 @@ var webglGetUniformLocation = location => {
|
|
| 7623 |
}
|
| 7624 |
};
|
| 7625 |
|
|
|
|
|
|
|
| 7626 |
var _emscripten_glUniform1i = (location, v0) => {
|
| 7627 |
GLctx.uniform1i(webglGetUniformLocation(location), v0);
|
| 7628 |
};
|
|
@@ -7649,7 +7748,7 @@ function _emscripten_glVertexAttribPointer(index, size, type, normalized, stride
|
|
| 7649 |
cb.stride = stride;
|
| 7650 |
cb.ptr = ptr;
|
| 7651 |
cb.clientside = true;
|
| 7652 |
-
cb.vertexAttribPointerAdaptor = function(index, size, type, normalized, stride, ptr) {
|
| 7653 |
this.vertexAttribPointer(index, size, type, normalized, stride, ptr);
|
| 7654 |
};
|
| 7655 |
return;
|
|
@@ -7667,13 +7766,7 @@ var _glViewport = _emscripten_glViewport;
|
|
| 7667 |
function _random_get(buffer, size) {
|
| 7668 |
buffer >>>= 0;
|
| 7669 |
size >>>= 0;
|
| 7670 |
-
|
| 7671 |
-
randomFill(HEAPU8.subarray(buffer >>> 0, buffer + size >>> 0));
|
| 7672 |
-
return 0;
|
| 7673 |
-
} catch (e) {
|
| 7674 |
-
if (typeof FS == "undefined" || !(e.name === "ErrnoError")) throw e;
|
| 7675 |
-
return e.errno;
|
| 7676 |
-
}
|
| 7677 |
}
|
| 7678 |
|
| 7679 |
var _wgpuBufferGetSize = function(bufferPtr) {
|
|
@@ -7956,7 +8049,8 @@ function _wgpuDeviceCreatePipelineLayout(devicePtr, descriptor) {
|
|
| 7956 |
}
|
| 7957 |
var desc = {
|
| 7958 |
"label": WebGPU.makeStringFromOptionalStringView(descriptor + 4),
|
| 7959 |
-
"bindGroupLayouts": bgls
|
|
|
|
| 7960 |
};
|
| 7961 |
var device = WebGPU.getJsObject(devicePtr);
|
| 7962 |
var ptr = _emwgpuCreatePipelineLayout(0);
|
|
@@ -8247,7 +8341,7 @@ registerPreMainLoop(() => GL.newRenderingFrameStarted());
|
|
| 8247 |
if (Module["printErr"]) err = Module["printErr"];
|
| 8248 |
if (Module["wasmBinary"]) wasmBinary = Module["wasmBinary"];
|
| 8249 |
// End ATMODULES hooks
|
| 8250 |
-
if (Module["arguments"])
|
| 8251 |
if (Module["thisProgram"]) thisProgram = Module["thisProgram"];
|
| 8252 |
if (Module["preInit"]) {
|
| 8253 |
if (typeof Module["preInit"] == "function") Module["preInit"] = [ Module["preInit"] ];
|
|
@@ -8283,18 +8377,18 @@ Module["FS_createLazyFile"] = FS_createLazyFile;
|
|
| 8283 |
// End JS library exports
|
| 8284 |
// end include: postlibrary.js
|
| 8285 |
var ASM_CONSTS = {
|
| 8286 |
-
|
| 8287 |
-
|
| 8288 |
const retVal = Module.LLM_CANCEL_FLAG;
|
| 8289 |
Module.LLM_CANCEL_FLAG = undefined;
|
| 8290 |
return retVal || 0;
|
| 8291 |
},
|
| 8292 |
-
|
| 8293 |
const device = WebGPU.getJsObject($0);
|
| 8294 |
return device.features.has("subgroups");
|
| 8295 |
},
|
| 8296 |
-
|
| 8297 |
-
|
| 8298 |
specialHTMLTargets["#canvas"] = Module.canvas;
|
| 8299 |
}
|
| 8300 |
};
|
|
@@ -8476,13 +8570,6 @@ function hardware_concurrency() {
|
|
| 8476 |
return concurrency;
|
| 8477 |
}
|
| 8478 |
|
| 8479 |
-
function JsWrapErrorListener(code, message) {
|
| 8480 |
-
if (Module.errorListener) {
|
| 8481 |
-
const stringMessage = UTF8ToString(message);
|
| 8482 |
-
Module.errorListener(code, stringMessage);
|
| 8483 |
-
}
|
| 8484 |
-
}
|
| 8485 |
-
|
| 8486 |
function UseBottomLeftGpuOrigin() {
|
| 8487 |
return (Module && Module.gpuOriginForWebTexturesIsBottomLeft);
|
| 8488 |
}
|
|
@@ -8500,447 +8587,464 @@ function custom_emscripten_dbgn(str, len) {
|
|
| 8500 |
}
|
| 8501 |
}
|
| 8502 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8503 |
// Imports from the Wasm binary.
|
| 8504 |
-
var _free, _CreateLlmInferenceEngineConverted, _DeleteLlmInferenceEngine, _MakeSessionForPredict, _AddTextQueryChunk, _AddImageQueryChunk, _AddAudioQueryChunk, _malloc, _PredictSession, _FreeSession, _GetSizeInTokens, _wgpuDeviceAddRef, _registerModelResourcesGraphService, _bindTextureToStream, _addBoundTextureToStream, _addDoubleToInputStream, _addFloatToInputStream, _addBoolToInputStream, _addIntToInputStream, _addUintToInputStream, _addStringToInputStream, _addRawDataSpanToInputStream, _allocateBoolVector, _allocateFloatVector, _allocateDoubleVector, _allocateIntVector, _allocateUintVector, _allocateStringVector, _addBoolVectorEntry, _addFloatVectorEntry, _addDoubleVectorEntry, _addIntVectorEntry, _addUintVectorEntry, _addStringVectorEntry, _addBoolVectorToInputStream, _addFloatVectorToInputStream, _addDoubleVectorToInputStream, _addIntVectorToInputStream, _addUintVectorToInputStream, _addStringVectorToInputStream, _addFlatHashMapToInputStream, _addProtoToInputStream, _addEmptyPacketToInputStream, _addBoolToInputSidePacket, _addDoubleToInputSidePacket, _addFloatToInputSidePacket, _addIntToInputSidePacket, _addUintToInputSidePacket, _addStringToInputSidePacket, _addRawDataSpanToInputSidePacket, _addProtoToInputSidePacket, _addBoolVectorToInputSidePacket, _addDoubleVectorToInputSidePacket, _addFloatVectorToInputSidePacket, _addIntVectorToInputSidePacket, _addUintVectorToInputSidePacket, _addStringVectorToInputSidePacket, _attachBoolListener, _attachBoolVectorListener, _attachDoubleListener, _attachDoubleVectorListener, _attachFloatListener, _attachFloatVectorListener, _attachIntListener, _attachIntVectorListener, _attachUintListener, _attachUintVectorListener, _attachStringListener, _attachStringVectorListener, _attachProtoListener, _attachProtoVectorListener, _getGraphConfig, ___getTypeName, _emwgpuCreateBindGroup, _emwgpuCreateBindGroupLayout, _emwgpuCreateCommandBuffer, _emwgpuCreateCommandEncoder, _emwgpuCreateComputePassEncoder, _emwgpuCreateComputePipeline, _emwgpuCreateExternalTexture, _emwgpuCreatePipelineLayout, _emwgpuCreateQuerySet, _emwgpuCreateRenderBundle, _emwgpuCreateRenderBundleEncoder, _emwgpuCreateRenderPassEncoder, _emwgpuCreateRenderPipeline, _emwgpuCreateSampler, _emwgpuCreateSurface, _emwgpuCreateTexture, _emwgpuCreateTextureView, _emwgpuCreateAdapter, _emwgpuImportBuffer, _emwgpuCreateDevice, _emwgpuCreateQueue, _emwgpuCreateShaderModule, _emwgpuOnCreateComputePipelineCompleted, _emwgpuOnWorkDoneCompleted, _clearSubgraphs, _pushBinarySubgraph, _pushTextSubgraph, _changeBinaryGraph, _changeTextGraph, _processGl, _process, _bindTextureToCanvas, _requestShaderRefreshOnGraphChange, _waitUntilIdle, _closeGraph, _setAutoRenderToScreen, _emscripten_builtin_memalign, _memalign, __emscripten_tempret_set, __emscripten_stack_restore, __emscripten_stack_alloc, _emscripten_stack_get_current, dynCall_vii, dynCall_viiiiiii, dynCall_viiiiii, dynCall_v, dynCall_ii, dynCall_vi, dynCall_iiiii, dynCall_iii, dynCall_viii,
|
| 8505 |
|
| 8506 |
function assignWasmExports(wasmExports) {
|
| 8507 |
-
_free = Module["_free"] = wasmExports["
|
| 8508 |
-
_CreateLlmInferenceEngineConverted = Module["_CreateLlmInferenceEngineConverted"] = wasmExports["
|
| 8509 |
-
_DeleteLlmInferenceEngine = Module["_DeleteLlmInferenceEngine"] = wasmExports["
|
| 8510 |
-
_MakeSessionForPredict = Module["_MakeSessionForPredict"] = wasmExports["
|
| 8511 |
-
_AddTextQueryChunk = Module["_AddTextQueryChunk"] = wasmExports["
|
| 8512 |
-
_AddImageQueryChunk = Module["_AddImageQueryChunk"] = wasmExports["
|
| 8513 |
-
_AddAudioQueryChunk = Module["_AddAudioQueryChunk"] = wasmExports["
|
| 8514 |
-
_malloc = Module["_malloc"] = wasmExports["
|
| 8515 |
-
_PredictSession = Module["_PredictSession"] = wasmExports["
|
| 8516 |
-
_FreeSession = Module["_FreeSession"] = wasmExports["
|
| 8517 |
-
|
| 8518 |
-
|
| 8519 |
-
|
| 8520 |
-
|
| 8521 |
-
|
| 8522 |
-
|
| 8523 |
-
|
| 8524 |
-
|
| 8525 |
-
|
| 8526 |
-
|
| 8527 |
-
|
| 8528 |
-
|
| 8529 |
-
|
| 8530 |
-
|
| 8531 |
-
|
| 8532 |
-
|
| 8533 |
-
|
| 8534 |
-
|
| 8535 |
-
|
| 8536 |
-
|
| 8537 |
-
|
| 8538 |
-
|
| 8539 |
-
|
| 8540 |
-
|
| 8541 |
-
|
| 8542 |
-
|
| 8543 |
-
|
| 8544 |
-
|
| 8545 |
-
|
| 8546 |
-
|
| 8547 |
-
|
| 8548 |
-
|
| 8549 |
-
|
| 8550 |
-
|
| 8551 |
-
|
| 8552 |
-
|
| 8553 |
-
|
| 8554 |
-
|
| 8555 |
-
|
| 8556 |
-
|
| 8557 |
-
|
| 8558 |
-
|
| 8559 |
-
|
| 8560 |
-
|
| 8561 |
-
|
| 8562 |
-
|
| 8563 |
-
|
| 8564 |
-
|
| 8565 |
-
|
| 8566 |
-
|
| 8567 |
-
|
| 8568 |
-
|
| 8569 |
-
|
| 8570 |
-
|
| 8571 |
-
|
| 8572 |
-
|
| 8573 |
-
|
| 8574 |
-
|
| 8575 |
-
|
| 8576 |
-
|
| 8577 |
-
|
| 8578 |
-
|
| 8579 |
-
|
| 8580 |
-
|
| 8581 |
-
|
| 8582 |
-
|
| 8583 |
-
|
| 8584 |
-
|
| 8585 |
-
|
| 8586 |
-
|
| 8587 |
-
|
| 8588 |
-
|
| 8589 |
-
|
| 8590 |
-
|
| 8591 |
-
|
| 8592 |
-
|
| 8593 |
-
|
| 8594 |
-
|
| 8595 |
-
|
| 8596 |
-
|
| 8597 |
-
|
| 8598 |
-
|
| 8599 |
-
|
| 8600 |
-
|
| 8601 |
-
|
| 8602 |
-
|
| 8603 |
-
|
| 8604 |
-
|
| 8605 |
-
|
| 8606 |
-
|
| 8607 |
-
|
| 8608 |
-
|
| 8609 |
-
|
| 8610 |
-
|
| 8611 |
-
|
| 8612 |
-
|
| 8613 |
-
|
| 8614 |
-
|
| 8615 |
-
|
| 8616 |
-
|
| 8617 |
-
|
| 8618 |
-
|
| 8619 |
-
|
| 8620 |
-
|
| 8621 |
-
|
| 8622 |
-
|
| 8623 |
-
|
| 8624 |
-
|
| 8625 |
-
|
| 8626 |
-
|
| 8627 |
-
|
| 8628 |
-
|
| 8629 |
-
|
| 8630 |
-
|
| 8631 |
-
|
| 8632 |
-
|
| 8633 |
-
|
| 8634 |
-
|
| 8635 |
-
|
| 8636 |
-
|
| 8637 |
-
|
| 8638 |
-
|
| 8639 |
-
|
| 8640 |
-
|
| 8641 |
-
|
| 8642 |
-
|
| 8643 |
-
|
| 8644 |
-
|
| 8645 |
-
|
| 8646 |
-
|
| 8647 |
-
|
| 8648 |
-
|
| 8649 |
-
|
| 8650 |
-
|
| 8651 |
-
|
| 8652 |
-
|
| 8653 |
-
|
| 8654 |
-
|
| 8655 |
-
|
| 8656 |
-
|
| 8657 |
-
|
| 8658 |
-
|
| 8659 |
-
|
| 8660 |
-
|
| 8661 |
-
|
| 8662 |
-
|
| 8663 |
-
|
| 8664 |
-
|
| 8665 |
-
|
| 8666 |
-
|
| 8667 |
-
|
| 8668 |
-
|
| 8669 |
-
|
| 8670 |
-
|
| 8671 |
-
|
| 8672 |
-
|
| 8673 |
-
|
| 8674 |
-
|
| 8675 |
-
|
| 8676 |
-
|
| 8677 |
-
|
| 8678 |
-
|
| 8679 |
-
|
| 8680 |
-
|
| 8681 |
-
|
| 8682 |
-
|
| 8683 |
-
|
| 8684 |
-
|
| 8685 |
-
|
| 8686 |
-
|
| 8687 |
-
|
| 8688 |
-
|
| 8689 |
-
|
| 8690 |
-
|
| 8691 |
-
|
| 8692 |
-
|
| 8693 |
-
|
| 8694 |
-
|
| 8695 |
-
|
| 8696 |
-
|
| 8697 |
-
|
| 8698 |
-
|
| 8699 |
-
|
| 8700 |
-
|
| 8701 |
-
|
| 8702 |
-
|
| 8703 |
-
|
| 8704 |
-
|
| 8705 |
-
|
| 8706 |
-
|
| 8707 |
-
|
| 8708 |
-
|
| 8709 |
-
|
| 8710 |
-
|
| 8711 |
-
|
| 8712 |
-
|
| 8713 |
-
|
| 8714 |
-
|
| 8715 |
-
|
| 8716 |
-
|
| 8717 |
-
|
| 8718 |
-
|
| 8719 |
-
|
| 8720 |
-
|
| 8721 |
-
|
| 8722 |
-
|
| 8723 |
-
|
| 8724 |
-
|
| 8725 |
-
|
| 8726 |
-
|
| 8727 |
-
|
| 8728 |
-
|
| 8729 |
-
|
| 8730 |
-
|
| 8731 |
-
|
| 8732 |
-
|
| 8733 |
-
|
| 8734 |
-
|
| 8735 |
-
|
| 8736 |
-
|
| 8737 |
-
|
| 8738 |
-
|
| 8739 |
-
|
| 8740 |
-
|
| 8741 |
-
|
| 8742 |
-
|
| 8743 |
-
|
| 8744 |
-
|
| 8745 |
-
|
| 8746 |
-
|
| 8747 |
-
|
| 8748 |
-
|
| 8749 |
-
|
| 8750 |
-
|
| 8751 |
-
|
| 8752 |
-
|
| 8753 |
-
|
| 8754 |
-
|
| 8755 |
-
|
| 8756 |
-
|
| 8757 |
-
|
| 8758 |
-
|
| 8759 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8760 |
__indirect_function_table = wasmExports["__indirect_function_table"];
|
|
|
|
| 8761 |
}
|
| 8762 |
|
| 8763 |
var wasmImports = {
|
| 8764 |
-
/** @export */
|
| 8765 |
-
/** @export */
|
| 8766 |
-
/** @export */
|
| 8767 |
-
/** @export */
|
| 8768 |
-
/** @export */
|
| 8769 |
-
/** @export */
|
| 8770 |
-
/** @export */
|
| 8771 |
-
/** @export */
|
| 8772 |
-
/** @export */
|
| 8773 |
-
/** @export */
|
| 8774 |
-
/** @export */
|
| 8775 |
-
/** @export */
|
| 8776 |
-
/** @export */
|
| 8777 |
-
/** @export */
|
| 8778 |
-
/** @export */
|
| 8779 |
-
/** @export */
|
| 8780 |
-
/** @export */
|
| 8781 |
-
/** @export */
|
| 8782 |
-
/** @export */
|
| 8783 |
-
/** @export */
|
| 8784 |
-
/** @export */
|
| 8785 |
-
/** @export */
|
| 8786 |
-
/** @export */
|
| 8787 |
-
/** @export */
|
| 8788 |
-
/** @export */
|
| 8789 |
/** @export */ g: JsWrapSimpleListeners,
|
| 8790 |
-
/** @export */
|
| 8791 |
-
/** @export */
|
| 8792 |
-
/** @export */
|
| 8793 |
-
/** @export */
|
| 8794 |
-
/** @export */
|
| 8795 |
-
/** @export */
|
| 8796 |
-
/** @export */
|
| 8797 |
-
/** @export */
|
| 8798 |
-
/** @export */
|
| 8799 |
-
/** @export */
|
| 8800 |
-
/** @export */
|
| 8801 |
-
/** @export */
|
| 8802 |
-
/** @export */
|
| 8803 |
-
/** @export */
|
| 8804 |
-
/** @export */
|
| 8805 |
-
/** @export */
|
| 8806 |
-
/** @export */
|
| 8807 |
-
/** @export */
|
| 8808 |
-
/** @export */
|
| 8809 |
-
/** @export */
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8810 |
/** @export */ Gb: __abort_js,
|
| 8811 |
-
/** @export */
|
| 8812 |
/** @export */ Fb: __embind_register_bool,
|
| 8813 |
/** @export */ Eb: __embind_register_emval,
|
| 8814 |
-
/** @export */
|
| 8815 |
-
/** @export */
|
| 8816 |
-
/** @export */
|
| 8817 |
/** @export */ e: __embind_register_memory_view,
|
| 8818 |
/** @export */ Db: __embind_register_std_string,
|
| 8819 |
-
/** @export */
|
| 8820 |
/** @export */ Cb: __embind_register_void,
|
| 8821 |
-
/** @export */
|
| 8822 |
-
/** @export */
|
| 8823 |
-
/** @export */
|
| 8824 |
-
/** @export */
|
| 8825 |
-
/** @export */
|
| 8826 |
-
/** @export */
|
| 8827 |
-
/** @export */
|
| 8828 |
-
/** @export */
|
| 8829 |
-
/** @export */
|
| 8830 |
-
/** @export */
|
| 8831 |
/** @export */ Bb: __tzset_js,
|
| 8832 |
-
/** @export */
|
| 8833 |
/** @export */ Ab: custom_emscripten_dbgn,
|
| 8834 |
-
/** @export */
|
| 8835 |
-
/** @export */
|
| 8836 |
/** @export */ zb: _emscripten_get_heap_max,
|
| 8837 |
/** @export */ d: _emscripten_get_now,
|
| 8838 |
-
/** @export */
|
| 8839 |
/** @export */ yb: _emscripten_outn,
|
| 8840 |
/** @export */ xb: _emscripten_pc_get_function,
|
| 8841 |
/** @export */ wb: _emscripten_resize_heap,
|
| 8842 |
-
/** @export */
|
| 8843 |
/** @export */ vb: _emscripten_stack_unwind_buffer,
|
| 8844 |
/** @export */ ub: _emscripten_webgl_create_context,
|
| 8845 |
/** @export */ tb: _emscripten_webgl_destroy_context,
|
| 8846 |
/** @export */ sb: _emscripten_webgl_get_context_attributes,
|
| 8847 |
-
/** @export */
|
| 8848 |
/** @export */ rb: _emscripten_webgl_make_context_current,
|
| 8849 |
-
/** @export */
|
| 8850 |
/** @export */ qb: _emwgpuBufferDestroy,
|
| 8851 |
/** @export */ pb: _emwgpuBufferGetMappedRange,
|
| 8852 |
/** @export */ ob: _emwgpuBufferUnmap,
|
| 8853 |
/** @export */ nb: _emwgpuBufferWriteMappedRange,
|
| 8854 |
/** @export */ f: _emwgpuDelete,
|
| 8855 |
/** @export */ mb: _emwgpuDeviceCreateBuffer,
|
| 8856 |
-
/** @export */
|
| 8857 |
/** @export */ lb: _emwgpuDeviceCreateShaderModule,
|
| 8858 |
/** @export */ kb: _emwgpuDeviceDestroy,
|
| 8859 |
-
/** @export */
|
| 8860 |
/** @export */ jb: _emwgpuWaitAny,
|
| 8861 |
/** @export */ Kb: _environ_get,
|
| 8862 |
/** @export */ Jb: _environ_sizes_get,
|
| 8863 |
-
/** @export */
|
| 8864 |
-
/** @export */
|
| 8865 |
-
/** @export */
|
| 8866 |
-
/** @export */
|
| 8867 |
-
/** @export */
|
| 8868 |
-
/** @export */
|
| 8869 |
-
/** @export */
|
| 8870 |
-
/** @export */
|
| 8871 |
-
/** @export */
|
| 8872 |
-
/** @export */
|
| 8873 |
-
/** @export */
|
| 8874 |
-
/** @export */
|
| 8875 |
-
/** @export */
|
| 8876 |
-
/** @export */
|
| 8877 |
-
/** @export */
|
| 8878 |
-
/** @export */
|
| 8879 |
-
/** @export */
|
| 8880 |
-
/** @export */
|
| 8881 |
-
/** @export */
|
| 8882 |
-
/** @export */
|
| 8883 |
-
/** @export */
|
| 8884 |
-
/** @export */
|
| 8885 |
-
/** @export */
|
| 8886 |
-
/** @export */
|
| 8887 |
-
/** @export */
|
| 8888 |
-
/** @export */
|
| 8889 |
-
/** @export */
|
| 8890 |
-
/** @export */
|
| 8891 |
-
/** @export */
|
| 8892 |
-
/** @export */
|
| 8893 |
-
/** @export */
|
| 8894 |
-
/** @export */
|
| 8895 |
-
/** @export */
|
| 8896 |
-
/** @export */
|
| 8897 |
-
/** @export */
|
| 8898 |
-
/** @export */
|
| 8899 |
-
/** @export */
|
| 8900 |
-
/** @export */
|
| 8901 |
-
/** @export */
|
| 8902 |
-
/** @export */
|
| 8903 |
-
/** @export */
|
| 8904 |
-
/** @export */
|
| 8905 |
-
/** @export */
|
| 8906 |
-
/** @export */
|
| 8907 |
-
/** @export */
|
| 8908 |
-
/** @export */
|
| 8909 |
-
/** @export */
|
| 8910 |
-
/** @export */
|
| 8911 |
/** @export */ Ib: _proc_exit,
|
| 8912 |
/** @export */ Hb: _random_get,
|
| 8913 |
-
/** @export */
|
| 8914 |
-
/** @export */
|
| 8915 |
/** @export */ i: _wgpuCommandEncoderBeginComputePass,
|
| 8916 |
-
/** @export */
|
| 8917 |
-
/** @export */
|
| 8918 |
-
/** @export */
|
| 8919 |
/** @export */ c: _wgpuCommandEncoderFinish,
|
| 8920 |
-
/** @export */
|
| 8921 |
-
/** @export */
|
| 8922 |
/** @export */ h: _wgpuComputePassEncoderEnd,
|
| 8923 |
-
/** @export */
|
| 8924 |
-
/** @export */
|
| 8925 |
-
/** @export */
|
| 8926 |
-
/** @export */
|
| 8927 |
/** @export */ b: _wgpuDeviceCreateCommandEncoder,
|
| 8928 |
-
/** @export */
|
| 8929 |
-
/** @export */
|
| 8930 |
-
/** @export */
|
| 8931 |
-
/** @export */
|
| 8932 |
-
/** @export */
|
| 8933 |
-
/** @export */
|
| 8934 |
-
/** @export */
|
| 8935 |
/** @export */ a: _wgpuQueueSubmit,
|
| 8936 |
-
/** @export */
|
| 8937 |
-
/** @export */
|
| 8938 |
-
/** @export */
|
| 8939 |
-
/** @export */
|
| 8940 |
-
/** @export */
|
| 8941 |
-
/** @export */
|
| 8942 |
-
/** @export */
|
| 8943 |
-
/** @export */
|
| 8944 |
};
|
| 8945 |
|
| 8946 |
// Argument name here must shadow the `wasmExports` global so
|
|
@@ -8952,12 +9056,12 @@ function applySignatureConversions(wasmExports) {
|
|
| 8952 |
var makeWrapper_pp = f => a0 => f(a0) >>> 0;
|
| 8953 |
var makeWrapper_ppp = f => (a0, a1) => f(a0, a1) >>> 0;
|
| 8954 |
var makeWrapper_p = f => () => f() >>> 0;
|
| 8955 |
-
wasmExports["
|
| 8956 |
-
wasmExports["
|
| 8957 |
-
wasmExports["
|
| 8958 |
-
wasmExports["
|
| 8959 |
-
wasmExports["
|
| 8960 |
-
wasmExports["
|
| 8961 |
return wasmExports;
|
| 8962 |
}
|
| 8963 |
|
|
|
|
| 42 |
|
| 43 |
// --pre-jses are emitted after the Module integration code, so that they can
|
| 44 |
// refer to Module (if they choose; they can also define Module)
|
| 45 |
+
var programArgs = [];
|
| 46 |
|
| 47 |
var thisProgram = "./this.program";
|
| 48 |
|
|
|
|
| 92 |
if (process.argv.length > 1) {
|
| 93 |
thisProgram = process.argv[1].replace(/\\/g, "/");
|
| 94 |
}
|
| 95 |
+
programArgs = process.argv.slice(2);
|
| 96 |
quit_ = (status, toThrow) => {
|
| 97 |
process.exitCode = status;
|
| 98 |
throw toThrow;
|
|
|
|
| 199 |
// include: runtime_stack_check.js
|
| 200 |
// end include: runtime_stack_check.js
|
| 201 |
// include: runtime_exceptions.js
|
| 202 |
+
// Base Emscripten EH error class
|
| 203 |
+
class EmscriptenEH {}
|
| 204 |
+
|
| 205 |
+
class EmscriptenSjLj extends EmscriptenEH {}
|
| 206 |
+
|
| 207 |
// end include: runtime_exceptions.js
|
| 208 |
// include: runtime_debug.js
|
| 209 |
// end include: runtime_debug.js
|
| 210 |
var readyPromiseResolve, readyPromiseReject;
|
| 211 |
|
| 212 |
// Memory management
|
|
|
|
|
|
|
| 213 |
var runtimeInitialized = false;
|
| 214 |
|
| 215 |
function updateMemoryViews() {
|
|
|
|
| 244 |
if (!Module["noFSInit"] && !FS.initialized) FS.init();
|
| 245 |
TTY.init();
|
| 246 |
// End ATINITS hooks
|
| 247 |
+
wasmExports["xc"]();
|
| 248 |
// Begin ATPOSTCTORS hooks
|
| 249 |
FS.ignorePermissions = false;
|
| 250 |
}
|
|
|
|
| 261 |
callRuntimeCallbacks(onPostRuns);
|
| 262 |
}
|
| 263 |
|
| 264 |
+
/**
|
| 265 |
+
* @param {string|number=} what
|
| 266 |
+
*/ function abort(what) {
|
| 267 |
Module["onAbort"]?.(what);
|
| 268 |
+
what = `Aborted(${what})`;
|
| 269 |
// TODO(sbc): Should we remove printing and leave it up to whoever
|
| 270 |
// catches the exception?
|
| 271 |
err(what);
|
|
|
|
| 799 |
// in the coordinates.
|
| 800 |
var canvas = Browser.getCanvas();
|
| 801 |
var rect = canvas.getBoundingClientRect();
|
| 802 |
+
var adjustedX = pageX - (window.scrollX + rect.left);
|
| 803 |
+
var adjustedY = pageY - (window.scrollY + rect.top);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 804 |
// the canvas might be CSS-scaled compared to its backbuffer;
|
| 805 |
// SDL-using content will want mouse coordinates in terms
|
| 806 |
// of backbuffer units.
|
|
|
|
| 933 |
}
|
| 934 |
};
|
| 935 |
|
| 936 |
+
/** @type {!Int16Array} */ var HEAP16;
|
| 937 |
+
|
| 938 |
+
/** @type {!Int32Array} */ var HEAP32;
|
| 939 |
+
|
| 940 |
+
/** @type {!Int8Array} */ var HEAP8;
|
| 941 |
+
|
| 942 |
+
/** @type {!Float32Array} */ var HEAPF32;
|
| 943 |
+
|
| 944 |
+
/** @type {!Float64Array} */ var HEAPF64;
|
| 945 |
+
|
| 946 |
+
/** @type {!Uint16Array} */ var HEAPU16;
|
| 947 |
+
|
| 948 |
+
/** @type {!Uint32Array} */ var HEAPU32;
|
| 949 |
+
|
| 950 |
+
/** @type {!Uint8Array} */ var HEAPU8;
|
| 951 |
+
|
| 952 |
var callRuntimeCallbacks = callbacks => {
|
| 953 |
while (callbacks.length > 0) {
|
| 954 |
// Pass the module as the first argument.
|
|
|
|
| 1032 |
}
|
| 1033 |
}
|
| 1034 |
|
|
|
|
|
|
|
| 1035 |
var uncaughtExceptionCount = 0;
|
| 1036 |
|
| 1037 |
var convertI32PairToI53Checked = (lo, hi) => ((hi + 2097152) >>> 0 < 4194305 - !!lo) ? (lo >>> 0) + hi * 4294967296 : NaN;
|
|
|
|
| 1043 |
var info = new ExceptionInfo(ptr);
|
| 1044 |
// Initialize ExceptionInfo content after it was allocated in __cxa_allocate_exception.
|
| 1045 |
info.init(type, destructor);
|
|
|
|
| 1046 |
uncaughtExceptionCount++;
|
| 1047 |
+
abort();
|
| 1048 |
}
|
| 1049 |
|
| 1050 |
function __Unwind_RaiseException(ex) {
|
|
|
|
| 1117 |
var nodeCrypto = require("node:crypto");
|
| 1118 |
return view => nodeCrypto.randomFillSync(view);
|
| 1119 |
}
|
| 1120 |
+
return view => (crypto.getRandomValues(view), 0);
|
| 1121 |
};
|
| 1122 |
|
| 1123 |
+
var randomFill = view => (randomFill = initRandomFill())(view);
|
|
|
|
|
|
|
|
|
|
| 1124 |
|
| 1125 |
var PATH_FS = {
|
| 1126 |
resolve: (...args) => {
|
|
|
|
| 1517 |
} else if (FS.isFile(node.mode)) {
|
| 1518 |
node.node_ops = MEMFS.ops_table.file.node;
|
| 1519 |
node.stream_ops = MEMFS.ops_table.file.stream;
|
| 1520 |
+
// The actual number of bytes used in the typed array, as opposed to
|
| 1521 |
+
// contents.length which gives the whole capacity.
|
| 1522 |
node.usedBytes = 0;
|
| 1523 |
+
// The byte data of the file is stored in a typed array.
|
| 1524 |
+
// Note: typed arrays are not resizable like normal JS arrays are, so
|
| 1525 |
+
// there is a small penalty involved for appending file writes that
|
| 1526 |
+
// continuously grow a file similar to std::vector capacity vs used.
|
| 1527 |
+
node.contents = MEMFS.emptyFileContents ??= new Uint8Array(0);
|
| 1528 |
} else if (FS.isLink(node.mode)) {
|
| 1529 |
node.node_ops = MEMFS.ops_table.link.node;
|
| 1530 |
node.stream_ops = MEMFS.ops_table.link.stream;
|
|
|
|
| 1541 |
return node;
|
| 1542 |
},
|
| 1543 |
getFileDataAsTypedArray(node) {
|
| 1544 |
+
return node.contents.subarray(0, node.usedBytes);
|
|
|
|
|
|
|
|
|
|
| 1545 |
},
|
| 1546 |
expandFileStorage(node, newCapacity) {
|
| 1547 |
+
var prevCapacity = node.contents.length;
|
| 1548 |
if (prevCapacity >= newCapacity) return;
|
| 1549 |
// No need to expand, the storage was already large enough.
|
| 1550 |
+
// Don't expand strictly to the given requested limit if it's only a very
|
| 1551 |
+
// small increase, but instead geometrically grow capacity.
|
| 1552 |
+
// For small filesizes (<1MB), perform size*2 geometric increase, but for
|
| 1553 |
+
// large sizes, do a much more conservative size*1.125 increase to avoid
|
| 1554 |
+
// overshooting the allocation cap by a very large margin.
|
| 1555 |
var CAPACITY_DOUBLING_MAX = 1024 * 1024;
|
| 1556 |
newCapacity = Math.max(newCapacity, (prevCapacity * (prevCapacity < CAPACITY_DOUBLING_MAX ? 2 : 1.125)) >>> 0);
|
| 1557 |
+
if (prevCapacity) newCapacity = Math.max(newCapacity, 256);
|
| 1558 |
// At minimum allocate 256b for each file when expanding.
|
| 1559 |
+
var oldContents = MEMFS.getFileDataAsTypedArray(node);
|
| 1560 |
node.contents = new Uint8Array(newCapacity);
|
| 1561 |
// Allocate new storage.
|
| 1562 |
+
node.contents.set(oldContents);
|
| 1563 |
},
|
| 1564 |
resizeFileStorage(node, newSize) {
|
| 1565 |
if (node.usedBytes == newSize) return;
|
| 1566 |
+
var oldContents = node.contents;
|
| 1567 |
+
node.contents = new Uint8Array(newSize);
|
| 1568 |
+
// Allocate new storage.
|
| 1569 |
+
node.contents.set(oldContents.subarray(0, Math.min(newSize, node.usedBytes)));
|
| 1570 |
+
// Copy old data over to the new storage.
|
| 1571 |
+
node.usedBytes = newSize;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1572 |
},
|
| 1573 |
node_ops: {
|
| 1574 |
getattr(node) {
|
|
|
|
| 1673 |
var contents = stream.node.contents;
|
| 1674 |
if (position >= stream.node.usedBytes) return 0;
|
| 1675 |
var size = Math.min(stream.node.usedBytes - position, length);
|
| 1676 |
+
buffer.set(contents.subarray(position, position + size), offset);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1677 |
return size;
|
| 1678 |
},
|
| 1679 |
write(stream, buffer, offset, length, position, canOwn) {
|
|
|
|
| 1687 |
if (!length) return 0;
|
| 1688 |
var node = stream.node;
|
| 1689 |
node.mtime = node.ctime = Date.now();
|
| 1690 |
+
if (canOwn) {
|
| 1691 |
+
node.contents = buffer.subarray(offset, offset + length);
|
| 1692 |
+
node.usedBytes = length;
|
| 1693 |
+
} else if (node.usedBytes === 0 && position === 0) {
|
| 1694 |
+
// If this is a simple first write to an empty file, do a fast set since we don't need to care about old data.
|
| 1695 |
+
node.contents = buffer.slice(offset, offset + length);
|
| 1696 |
+
node.usedBytes = length;
|
| 1697 |
+
} else {
|
| 1698 |
+
MEMFS.expandFileStorage(node, position + length);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1699 |
// Use typed array write which is available.
|
| 1700 |
node.contents.set(buffer.subarray(offset, offset + length), position);
|
| 1701 |
+
node.usedBytes = Math.max(node.usedBytes, position + length);
|
|
|
|
|
|
|
|
|
|
| 1702 |
}
|
|
|
|
| 1703 |
return length;
|
| 1704 |
},
|
| 1705 |
llseek(stream, offset, whence) {
|
|
|
|
| 1724 |
var allocated;
|
| 1725 |
var contents = stream.node.contents;
|
| 1726 |
// Only make a new copy when MAP_PRIVATE is specified.
|
| 1727 |
+
if (!(flags & 2) && contents.buffer === HEAP8.buffer) {
|
| 1728 |
// We can't emulate MAP_SHARED when the file is not backed by the
|
| 1729 |
// buffer we're mapping to (e.g. the HEAP buffer).
|
| 1730 |
allocated = false;
|
|
|
|
| 1761 |
};
|
| 1762 |
|
| 1763 |
var FS_modeStringToFlags = str => {
|
| 1764 |
+
if (typeof str != "string") return str;
|
| 1765 |
var flagModes = {
|
| 1766 |
"r": 0,
|
| 1767 |
"r+": 2,
|
|
|
|
| 1777 |
return flags;
|
| 1778 |
};
|
| 1779 |
|
| 1780 |
+
var FS_fileDataToTypedArray = data => {
|
| 1781 |
+
if (typeof data == "string") {
|
| 1782 |
+
data = intArrayFromString(data, true);
|
| 1783 |
+
}
|
| 1784 |
+
if (!data.subarray) {
|
| 1785 |
+
data = new Uint8Array(data);
|
| 1786 |
+
}
|
| 1787 |
+
return data;
|
| 1788 |
+
};
|
| 1789 |
+
|
| 1790 |
var FS_getMode = (canRead, canWrite) => {
|
| 1791 |
var mode = 0;
|
| 1792 |
if (canRead) mode |= 292 | 73;
|
|
|
|
| 1962 |
if (!PATH.isAbs(path)) {
|
| 1963 |
path = FS.cwd() + "/" + path;
|
| 1964 |
}
|
| 1965 |
+
// limit max consecutive symlinks to SYMLOOP_MAX.
|
| 1966 |
linkloop: for (var nlinks = 0; nlinks < 40; nlinks++) {
|
| 1967 |
// split the absolute path
|
| 1968 |
var parts = path.split("/").filter(p => !!p);
|
|
|
|
| 2245 |
var arg = setattr ? stream : node;
|
| 2246 |
setattr ??= node.node_ops.setattr;
|
| 2247 |
FS.checkOpExists(setattr, 63);
|
| 2248 |
+
try {
|
| 2249 |
+
setattr(arg, attr);
|
| 2250 |
+
} catch (e) {
|
| 2251 |
+
if (e instanceof RangeError) {
|
| 2252 |
+
throw new FS.ErrnoError(22);
|
| 2253 |
+
}
|
| 2254 |
+
throw e;
|
| 2255 |
+
}
|
| 2256 |
},
|
| 2257 |
chrdev_stream_ops: {
|
| 2258 |
open(stream) {
|
|
|
|
| 2770 |
if (path === "") {
|
| 2771 |
throw new FS.ErrnoError(44);
|
| 2772 |
}
|
| 2773 |
+
flags = FS_modeStringToFlags(flags);
|
| 2774 |
if ((flags & 64)) {
|
| 2775 |
mode = (mode & 4095) | 32768;
|
| 2776 |
} else {
|
|
|
|
| 2983 |
return stream.stream_ops.ioctl(stream, cmd, arg);
|
| 2984 |
},
|
| 2985 |
readFile(path, opts = {}) {
|
| 2986 |
+
opts.flags = opts.flags ?? 0;
|
| 2987 |
+
opts.encoding = opts.encoding ?? "binary";
|
| 2988 |
if (opts.encoding !== "utf8" && opts.encoding !== "binary") {
|
| 2989 |
abort(`Invalid encoding type "${opts.encoding}"`);
|
| 2990 |
}
|
|
|
|
| 3000 |
return buf;
|
| 3001 |
},
|
| 3002 |
writeFile(path, data, opts = {}) {
|
| 3003 |
+
opts.flags = opts.flags ?? 577;
|
| 3004 |
var stream = FS.open(path, opts.flags, opts.mode);
|
| 3005 |
+
data = FS_fileDataToTypedArray(data);
|
| 3006 |
+
FS.write(stream, data, 0, data.byteLength, undefined, opts.canOwn);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3007 |
FS.close(stream);
|
| 3008 |
},
|
| 3009 |
cwd: () => FS.currentPath,
|
|
|
|
| 3233 |
var mode = FS_getMode(canRead, canWrite);
|
| 3234 |
var node = FS.create(path, mode);
|
| 3235 |
if (data) {
|
| 3236 |
+
data = FS_fileDataToTypedArray(data);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3237 |
// make sure we can write to the file
|
| 3238 |
FS.chmod(node, mode | 146);
|
| 3239 |
var stream = FS.open(node, 577);
|
|
|
|
| 3342 |
if (!hasByteServing) chunkSize = datalength;
|
| 3343 |
// Function to get a range from the remote URL.
|
| 3344 |
var doXHR = (from, to) => {
|
| 3345 |
+
if (from > to) abort(`invalid range (${from}, ${to}) or no bytes requested!`);
|
| 3346 |
+
if (to > datalength - 1) abort(`only ${datalength} bytes available! programmer error!`);
|
| 3347 |
// TODO: Use mozResponseArrayBuffer, responseStream, etc. if available.
|
| 3348 |
var xhr = new XMLHttpRequest;
|
| 3349 |
xhr.open("GET", url, false);
|
|
|
|
| 3358 |
if (xhr.response !== undefined) {
|
| 3359 |
return new Uint8Array(/** @type{Array<number>} */ (xhr.response || []));
|
| 3360 |
}
|
| 3361 |
+
return intArrayFromString(xhr.responseText ?? "", true);
|
| 3362 |
};
|
| 3363 |
var lazyArray = this;
|
| 3364 |
lazyArray.setDataGetter(chunkNum => {
|
|
|
|
| 3497 |
};
|
| 3498 |
|
| 3499 |
var SYSCALLS = {
|
| 3500 |
+
currentUmask: 18,
|
| 3501 |
calculateAt(dirfd, path, allowEmpty) {
|
| 3502 |
if (PATH.isAbs(path)) {
|
| 3503 |
return path;
|
|
|
|
| 3668 |
case 4:
|
| 3669 |
{
|
| 3670 |
var arg = syscallGetVarargI();
|
| 3671 |
+
var mask = 289792;
|
| 3672 |
+
stream.flags = (stream.flags & ~mask) | (arg & mask);
|
| 3673 |
return 0;
|
| 3674 |
}
|
| 3675 |
|
|
|
|
| 3710 |
function ___syscall_ftruncate64(fd, length_low, length_high) {
|
| 3711 |
var length = convertI32PairToI53Checked(length_low, length_high);
|
| 3712 |
try {
|
| 3713 |
+
if (isNaN(length)) return -22;
|
| 3714 |
FS.ftruncate(fd, length);
|
| 3715 |
return 0;
|
| 3716 |
} catch (e) {
|
|
|
|
| 3937 |
try {
|
| 3938 |
path = SYSCALLS.getStr(path);
|
| 3939 |
path = SYSCALLS.calculateAt(dirfd, path);
|
| 3940 |
+
mode &= ~SYSCALLS.currentUmask;
|
| 3941 |
FS.mkdir(path, mode, 0);
|
| 3942 |
return 0;
|
| 3943 |
} catch (e) {
|
|
|
|
| 3970 |
path = SYSCALLS.getStr(path);
|
| 3971 |
path = SYSCALLS.calculateAt(dirfd, path);
|
| 3972 |
var mode = varargs ? syscallGetVarargI() : 0;
|
| 3973 |
+
if (flags & 64) {
|
| 3974 |
+
mode &= ~SYSCALLS.currentUmask;
|
| 3975 |
+
}
|
| 3976 |
return FS.open(path, flags, mode).fd;
|
| 3977 |
} catch (e) {
|
| 3978 |
if (typeof FS == "undefined" || !(e.name === "ErrnoError")) throw e;
|
|
|
|
| 3980 |
}
|
| 3981 |
}
|
| 3982 |
|
| 3983 |
+
function ___syscall_readlinkat(dirfd, path, buf, bufsize) {
|
| 3984 |
+
path >>>= 0;
|
| 3985 |
+
buf >>>= 0;
|
| 3986 |
+
bufsize >>>= 0;
|
| 3987 |
+
try {
|
| 3988 |
+
path = SYSCALLS.getStr(path);
|
| 3989 |
+
path = SYSCALLS.calculateAt(dirfd, path);
|
| 3990 |
+
if (bufsize <= 0) return -28;
|
| 3991 |
+
var ret = FS.readlink(path);
|
| 3992 |
+
var len = Math.min(bufsize, lengthBytesUTF8(ret));
|
| 3993 |
+
var endChar = HEAP8[buf + len >>> 0];
|
| 3994 |
+
stringToUTF8(ret, buf, bufsize + 1);
|
| 3995 |
+
// readlink is one of the rare functions that write out a C string, but does never append a null to the output buffer(!)
|
| 3996 |
+
// stringToUTF8() always appends a null byte, so restore the character under the null byte after the write.
|
| 3997 |
+
HEAP8[buf + len >>> 0] = endChar;
|
| 3998 |
+
return len;
|
| 3999 |
+
} catch (e) {
|
| 4000 |
+
if (typeof FS == "undefined" || !(e.name === "ErrnoError")) throw e;
|
| 4001 |
+
return -e.errno;
|
| 4002 |
+
}
|
| 4003 |
+
}
|
| 4004 |
+
|
| 4005 |
+
function ___syscall_rmdir(path) {
|
| 4006 |
+
path >>>= 0;
|
| 4007 |
+
try {
|
| 4008 |
+
path = SYSCALLS.getStr(path);
|
| 4009 |
+
FS.rmdir(path);
|
| 4010 |
+
return 0;
|
| 4011 |
+
} catch (e) {
|
| 4012 |
+
if (typeof FS == "undefined" || !(e.name === "ErrnoError")) throw e;
|
| 4013 |
+
return -e.errno;
|
| 4014 |
+
}
|
| 4015 |
+
}
|
| 4016 |
+
|
| 4017 |
function ___syscall_stat64(path, buf) {
|
| 4018 |
path >>>= 0;
|
| 4019 |
buf >>>= 0;
|
|
|
|
| 4026 |
}
|
| 4027 |
}
|
| 4028 |
|
| 4029 |
+
function ___syscall_unlinkat(dirfd, path, flags) {
|
| 4030 |
+
path >>>= 0;
|
| 4031 |
+
try {
|
| 4032 |
+
path = SYSCALLS.getStr(path);
|
| 4033 |
+
path = SYSCALLS.calculateAt(dirfd, path);
|
| 4034 |
+
if (!flags) {
|
| 4035 |
+
FS.unlink(path);
|
| 4036 |
+
} else if (flags === 512) {
|
| 4037 |
+
FS.rmdir(path);
|
| 4038 |
+
} else {
|
| 4039 |
+
return -28;
|
| 4040 |
+
}
|
| 4041 |
+
return 0;
|
| 4042 |
+
} catch (e) {
|
| 4043 |
+
if (typeof FS == "undefined" || !(e.name === "ErrnoError")) throw e;
|
| 4044 |
+
return -e.errno;
|
| 4045 |
+
}
|
| 4046 |
+
}
|
| 4047 |
+
|
| 4048 |
+
var readI53FromI64 = ptr => HEAPU32[((ptr) >>> 2) >>> 0] + HEAP32[(((ptr) + (4)) >>> 2) >>> 0] * 4294967296;
|
| 4049 |
+
|
| 4050 |
+
function ___syscall_utimensat(dirfd, path, times, flags) {
|
| 4051 |
+
path >>>= 0;
|
| 4052 |
+
times >>>= 0;
|
| 4053 |
+
try {
|
| 4054 |
+
path = SYSCALLS.getStr(path);
|
| 4055 |
+
path = SYSCALLS.calculateAt(dirfd, path, true);
|
| 4056 |
+
var now = Date.now(), atime, mtime;
|
| 4057 |
+
if (!times) {
|
| 4058 |
+
atime = now;
|
| 4059 |
+
mtime = now;
|
| 4060 |
+
} else {
|
| 4061 |
+
var seconds = readI53FromI64(times);
|
| 4062 |
+
var nanoseconds = HEAP32[(((times) + (8)) >>> 2) >>> 0];
|
| 4063 |
+
if (nanoseconds == 1073741823) {
|
| 4064 |
+
atime = now;
|
| 4065 |
+
} else if (nanoseconds == 1073741822) {
|
| 4066 |
+
atime = null;
|
| 4067 |
+
} else {
|
| 4068 |
+
atime = (seconds * 1e3) + (nanoseconds / (1e3 * 1e3));
|
| 4069 |
+
}
|
| 4070 |
+
times += 16;
|
| 4071 |
+
seconds = readI53FromI64(times);
|
| 4072 |
+
nanoseconds = HEAP32[(((times) + (8)) >>> 2) >>> 0];
|
| 4073 |
+
if (nanoseconds == 1073741823) {
|
| 4074 |
+
mtime = now;
|
| 4075 |
+
} else if (nanoseconds == 1073741822) {
|
| 4076 |
+
mtime = null;
|
| 4077 |
+
} else {
|
| 4078 |
+
mtime = (seconds * 1e3) + (nanoseconds / (1e3 * 1e3));
|
| 4079 |
+
}
|
| 4080 |
+
}
|
| 4081 |
+
// null here means UTIME_OMIT was passed. If both were set to UTIME_OMIT then
|
| 4082 |
+
// we can skip the call completely.
|
| 4083 |
+
if ((mtime ?? atime) !== null) {
|
| 4084 |
+
FS.utime(path, atime, mtime);
|
| 4085 |
+
}
|
| 4086 |
+
return 0;
|
| 4087 |
+
} catch (e) {
|
| 4088 |
+
if (typeof FS == "undefined" || !(e.name === "ErrnoError")) throw e;
|
| 4089 |
+
return -e.errno;
|
| 4090 |
+
}
|
| 4091 |
+
}
|
| 4092 |
+
|
| 4093 |
var __abort_js = () => abort("");
|
| 4094 |
|
| 4095 |
function __embind_register_bigint(primitiveType, name, size, minRange, maxRange) {
|
|
|
|
| 4178 |
function __emval_decref(handle) {
|
| 4179 |
handle >>>= 0;
|
| 4180 |
if (handle > 9 && 0 === --emval_handles[handle + 1]) {
|
| 4181 |
+
var value = emval_handles[handle];
|
| 4182 |
emval_handles[handle] = undefined;
|
| 4183 |
emval_freelist.push(handle);
|
| 4184 |
}
|
|
|
|
| 5187 |
tmPtr >>>= 0;
|
| 5188 |
var ret = (() => {
|
| 5189 |
var date = new Date(HEAP32[(((tmPtr) + (20)) >>> 2) >>> 0] + 1900, HEAP32[(((tmPtr) + (16)) >>> 2) >>> 0], HEAP32[(((tmPtr) + (12)) >>> 2) >>> 0], HEAP32[(((tmPtr) + (8)) >>> 2) >>> 0], HEAP32[(((tmPtr) + (4)) >>> 2) >>> 0], HEAP32[((tmPtr) >>> 2) >>> 0], 0);
|
| 5190 |
+
if (isNaN(date.getTime())) {
|
| 5191 |
+
return -1;
|
| 5192 |
+
}
|
| 5193 |
// There's an ambiguous hour when the time goes back; the tm_isdst field is
|
| 5194 |
// used to disambiguate it. Date() basically guesses, so we fix it up if it
|
| 5195 |
// guessed wrong, or fill in tm_isdst with the guess if it's -1.
|
|
|
|
| 5219 |
HEAP32[(((tmPtr) + (12)) >>> 2) >>> 0] = date.getDate();
|
| 5220 |
HEAP32[(((tmPtr) + (16)) >>> 2) >>> 0] = date.getMonth();
|
| 5221 |
HEAP32[(((tmPtr) + (20)) >>> 2) >>> 0] = date.getYear();
|
| 5222 |
+
// Return time in seconds
|
| 5223 |
+
return date.getTime() / 1e3;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5224 |
})();
|
| 5225 |
return (setTempRet0((tempDouble = ret, (+(Math.abs(tempDouble))) >= 1 ? (tempDouble > 0 ? (+(Math.floor((tempDouble) / 4294967296))) >>> 0 : (~~((+(Math.ceil((tempDouble - +(((~~(tempDouble))) >>> 0)) / 4294967296))))) >>> 0) : 0)),
|
| 5226 |
ret >>> 0);
|
|
|
|
| 5603 |
"EXT_color_buffer_float", "EXT_conservative_depth", "EXT_disjoint_timer_query_webgl2", "EXT_texture_norm16", "NV_shader_noperspective_interpolation", "WEBGL_clip_cull_distance", // WebGL 1 and WebGL 2 extensions
|
| 5604 |
"EXT_clip_control", "EXT_color_buffer_half_float", "EXT_depth_clamp", "EXT_float_blend", "EXT_polygon_offset_clamp", "EXT_texture_compression_bptc", "EXT_texture_compression_rgtc", "EXT_texture_filter_anisotropic", "KHR_parallel_shader_compile", "OES_texture_float_linear", "WEBGL_blend_func_extended", "WEBGL_compressed_texture_astc", "WEBGL_compressed_texture_etc", "WEBGL_compressed_texture_etc1", "WEBGL_compressed_texture_s3tc", "WEBGL_compressed_texture_s3tc_srgb", "WEBGL_debug_renderer_info", "WEBGL_debug_shaders", "WEBGL_lose_context", "WEBGL_multi_draw", "WEBGL_polygon_mode" ];
|
| 5605 |
// .getSupportedExtensions() can return null if context is lost, so coerce to empty array.
|
| 5606 |
+
return ctx.getSupportedExtensions()?.filter(ext => supportedExtensions.includes(ext)) ?? [];
|
| 5607 |
};
|
| 5608 |
|
| 5609 |
var registerPreMainLoop = f => {
|
|
|
|
| 5611 |
typeof MainLoop != "undefined" && MainLoop.preMainLoop.push(f);
|
| 5612 |
};
|
| 5613 |
|
| 5614 |
+
var webglBufferSubData = (target, offset, size, data, src = HEAPU8) => {
|
| 5615 |
+
GLctx.bufferSubData(target, offset, src.subarray(data, data + size));
|
| 5616 |
+
};
|
| 5617 |
+
|
| 5618 |
var GL = {
|
| 5619 |
counter: 1,
|
| 5620 |
buffers: [],
|
|
|
|
| 5791 |
var size = GL.calcBufLength(cb.size, cb.type, cb.stride, count);
|
| 5792 |
var buf = GL.getTempVertexBuffer(size);
|
| 5793 |
GLctx.bindBuffer(34962, buf);
|
| 5794 |
+
webglBufferSubData(34962, 0, size, cb.ptr);
|
| 5795 |
cb.vertexAttribPointerAdaptor.call(GLctx, i, cb.size, cb.type, cb.normalized, cb.stride, 0);
|
| 5796 |
}
|
| 5797 |
},
|
|
|
|
| 6041 |
HEAPU32[(((ptr) + (4)) >>> 2) >>> 0] = (num - lower) / 4294967296;
|
| 6042 |
};
|
| 6043 |
|
|
|
|
|
|
|
| 6044 |
var WebGPU = {
|
| 6045 |
Internals: {
|
| 6046 |
jsObjects: [],
|
|
|
|
| 6541 |
20: "texture-formats-tier2",
|
| 6542 |
21: "primitive-index",
|
| 6543 |
22: "texture-component-swizzle",
|
| 6544 |
+
23: "subgroup-size-control",
|
| 6545 |
327692: "chromium-experimental-unorm16-texture-formats",
|
| 6546 |
327729: "chromium-experimental-multi-draw-indirect"
|
| 6547 |
},
|
|
|
|
| 6570 |
ToneMappingMode: [ , "standard", "extended" ],
|
| 6571 |
VertexFormat: [ , "uint8", "uint8x2", "uint8x4", "sint8", "sint8x2", "sint8x4", "unorm8", "unorm8x2", "unorm8x4", "snorm8", "snorm8x2", "snorm8x4", "uint16", "uint16x2", "uint16x4", "sint16", "sint16x2", "sint16x4", "unorm16", "unorm16x2", "unorm16x4", "snorm16", "snorm16x2", "snorm16x4", "float16", "float16x2", "float16x4", "float32", "float32x2", "float32x3", "float32x4", "uint32", "uint32x2", "uint32x3", "uint32x4", "sint32", "sint32x2", "sint32x3", "sint32x4", "unorm10-10-10-2", "unorm8x4-bgra" ],
|
| 6572 |
VertexStepMode: [ , "vertex", "instance" ],
|
| 6573 |
+
WGSLLanguageFeatureName: [ , "readonly_and_readwrite_storage_textures", "packed_4x8_integer_dot_product", "unrestricted_pointer_parameters", "pointer_composite_access", "uniform_buffer_standard_layout", "subgroup_id", "texture_and_sampler_let", "subgroup_uniformity", "texture_formats_tier1", "linear_indexing", "immediate_address_space" ]
|
| 6574 |
};
|
| 6575 |
|
| 6576 |
function _emscripten_webgpu_get_device() {
|
|
|
|
| 6778 |
|
| 6779 |
var ENV = {};
|
| 6780 |
|
| 6781 |
+
var getExecutableName = () => thisProgram;
|
| 6782 |
|
| 6783 |
var getEnvStrings = () => {
|
| 6784 |
if (!getEnvStrings.strings) {
|
| 6785 |
// Default values.
|
|
|
|
| 6786 |
var lang = (globalThis.navigator?.language ?? "C").replace("-", "_") + ".UTF-8";
|
| 6787 |
var env = {
|
| 6788 |
"USER": "web_user",
|
|
|
|
| 6871 |
var offset = convertI32PairToI53Checked(offset_low, offset_high);
|
| 6872 |
pnum >>>= 0;
|
| 6873 |
try {
|
| 6874 |
+
if (isNaN(offset)) return 22;
|
| 6875 |
var stream = SYSCALLS.getStreamFromFD(fd);
|
| 6876 |
var num = doReadv(stream, iov, iovcnt, offset);
|
| 6877 |
HEAPU32[((pnum) >>> 2) >>> 0] = num;
|
|
|
|
| 6901 |
var offset = convertI32PairToI53Checked(offset_low, offset_high);
|
| 6902 |
newOffset >>>= 0;
|
| 6903 |
try {
|
| 6904 |
+
if (isNaN(offset)) return 22;
|
| 6905 |
var stream = SYSCALLS.getStreamFromFD(fd);
|
| 6906 |
FS.llseek(stream, offset, whence);
|
| 6907 |
(tempI64 = [ stream.position >>> 0, (tempDouble = stream.position, (+(Math.abs(tempDouble))) >= 1 ? (tempDouble > 0 ? (+(Math.floor((tempDouble) / 4294967296))) >>> 0 : (~~((+(Math.ceil((tempDouble - +(((~~(tempDouble))) >>> 0)) / 4294967296))))) >>> 0) : 0) ],
|
|
|
|
| 7647 |
|
| 7648 |
var toTypedArrayIndex = (pointer, heap) => pointer >>> (31 - Math.clz32(heap.BYTES_PER_ELEMENT));
|
| 7649 |
|
| 7650 |
+
var emscriptenWebGLGetTexPixelData = (type, format, width, height, pixels) => {
|
| 7651 |
var heap = heapObjectForWebGLType(type);
|
| 7652 |
var sizePerPixel = colorChannelsInGlTextureFormat(format) * heap.BYTES_PER_ELEMENT;
|
| 7653 |
var bytes = computeUnpackAlignedImageSize(width, height, sizePerPixel);
|
|
|
|
| 7662 |
return;
|
| 7663 |
}
|
| 7664 |
}
|
| 7665 |
+
var pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels);
|
| 7666 |
if (!pixelData) {
|
| 7667 |
GL.recordError(1280);
|
| 7668 |
return;
|
|
|
|
| 7689 |
return;
|
| 7690 |
}
|
| 7691 |
}
|
| 7692 |
+
var pixelData = pixels ? emscriptenWebGLGetTexPixelData(type, format, width, height, pixels) : null;
|
| 7693 |
GLctx.texImage2D(target, level, internalFormat, width, height, border, format, type, pixelData);
|
| 7694 |
}
|
| 7695 |
|
|
|
|
| 7703 |
|
| 7704 |
var _glTexStorage2D = _emscripten_glTexStorage2D;
|
| 7705 |
|
| 7706 |
+
var webglGetProgramUniformLocation = (program, location) => {
|
| 7707 |
+
if (program) {
|
| 7708 |
+
var webglLoc = program.uniformLocsById[location];
|
| 7709 |
+
// program.uniformLocsById[location] stores either an integer, or a
|
|
|
|
| 7710 |
// WebGLUniformLocation.
|
| 7711 |
// If an integer, we have not yet bound the location, so do it now. The
|
| 7712 |
// integer value specifies the array index we should bind to.
|
| 7713 |
if (typeof webglLoc == "number") {
|
| 7714 |
+
program.uniformLocsById[location] = webglLoc = GLctx.getUniformLocation(program, program.uniformArrayNamesById[location] + (webglLoc > 0 ? `[${webglLoc}]` : ""));
|
| 7715 |
}
|
| 7716 |
// Else an already cached WebGLUniformLocation, return it.
|
| 7717 |
return webglLoc;
|
|
|
|
| 7720 |
}
|
| 7721 |
};
|
| 7722 |
|
| 7723 |
+
var webglGetUniformLocation = location => webglGetProgramUniformLocation(GLctx.currentProgram, location);
|
| 7724 |
+
|
| 7725 |
var _emscripten_glUniform1i = (location, v0) => {
|
| 7726 |
GLctx.uniform1i(webglGetUniformLocation(location), v0);
|
| 7727 |
};
|
|
|
|
| 7748 |
cb.stride = stride;
|
| 7749 |
cb.ptr = ptr;
|
| 7750 |
cb.clientside = true;
|
| 7751 |
+
cb.vertexAttribPointerAdaptor = /** @this {WebGLRenderingContext} */ function(index, size, type, normalized, stride, ptr) {
|
| 7752 |
this.vertexAttribPointer(index, size, type, normalized, stride, ptr);
|
| 7753 |
};
|
| 7754 |
return;
|
|
|
|
| 7766 |
function _random_get(buffer, size) {
|
| 7767 |
buffer >>>= 0;
|
| 7768 |
size >>>= 0;
|
| 7769 |
+
return randomFill(HEAPU8.subarray(buffer >>> 0, buffer + size >>> 0));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7770 |
}
|
| 7771 |
|
| 7772 |
var _wgpuBufferGetSize = function(bufferPtr) {
|
|
|
|
| 8049 |
}
|
| 8050 |
var desc = {
|
| 8051 |
"label": WebGPU.makeStringFromOptionalStringView(descriptor + 4),
|
| 8052 |
+
"bindGroupLayouts": bgls,
|
| 8053 |
+
"immediateSize": HEAPU32[(((descriptor) + (20)) >>> 2) >>> 0]
|
| 8054 |
};
|
| 8055 |
var device = WebGPU.getJsObject(devicePtr);
|
| 8056 |
var ptr = _emwgpuCreatePipelineLayout(0);
|
|
|
|
| 8341 |
if (Module["printErr"]) err = Module["printErr"];
|
| 8342 |
if (Module["wasmBinary"]) wasmBinary = Module["wasmBinary"];
|
| 8343 |
// End ATMODULES hooks
|
| 8344 |
+
if (Module["arguments"]) programArgs = Module["arguments"];
|
| 8345 |
if (Module["thisProgram"]) thisProgram = Module["thisProgram"];
|
| 8346 |
if (Module["preInit"]) {
|
| 8347 |
if (typeof Module["preInit"] == "function") Module["preInit"] = [ Module["preInit"] ];
|
|
|
|
| 8377 |
// End JS library exports
|
| 8378 |
// end include: postlibrary.js
|
| 8379 |
var ASM_CONSTS = {
|
| 8380 |
+
2087452: () => !!Module["preinitializedWebGPUDevice"],
|
| 8381 |
+
2087503: () => {
|
| 8382 |
const retVal = Module.LLM_CANCEL_FLAG;
|
| 8383 |
Module.LLM_CANCEL_FLAG = undefined;
|
| 8384 |
return retVal || 0;
|
| 8385 |
},
|
| 8386 |
+
2087602: $0 => {
|
| 8387 |
const device = WebGPU.getJsObject($0);
|
| 8388 |
return device.features.has("subgroups");
|
| 8389 |
},
|
| 8390 |
+
2087686: () => !!Module["preinitializedWebGPUDevice"],
|
| 8391 |
+
2087737: () => {
|
| 8392 |
specialHTMLTargets["#canvas"] = Module.canvas;
|
| 8393 |
}
|
| 8394 |
};
|
|
|
|
| 8570 |
return concurrency;
|
| 8571 |
}
|
| 8572 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8573 |
function UseBottomLeftGpuOrigin() {
|
| 8574 |
return (Module && Module.gpuOriginForWebTexturesIsBottomLeft);
|
| 8575 |
}
|
|
|
|
| 8587 |
}
|
| 8588 |
}
|
| 8589 |
|
| 8590 |
+
function JsWrapErrorListenerInternal(code, message) {
|
| 8591 |
+
if (Module.errorListener) {
|
| 8592 |
+
const stringMessage = UTF8ToString(message);
|
| 8593 |
+
Module.errorListener(code, stringMessage);
|
| 8594 |
+
}
|
| 8595 |
+
}
|
| 8596 |
+
|
| 8597 |
// Imports from the Wasm binary.
|
| 8598 |
+
var _free, _CreateLlmInferenceEngineConverted, _DeleteLlmInferenceEngine, _MakeSessionForPredict, _AddTextQueryChunk, _AddImageQueryChunk, _AddAudioQueryChunk, _malloc, _PredictSession, _FreeSession, _GetLiteRtModelOffset, _GetSizeInTokens, _wgpuDeviceAddRef, _registerModelResourcesGraphService, _bindTextureToStream, _addBoundTextureToStream, _addDoubleToInputStream, _addFloatToInputStream, _addBoolToInputStream, _addIntToInputStream, _addUintToInputStream, _addStringToInputStream, _addRawDataSpanToInputStream, _allocateBoolVector, _allocateFloatVector, _allocateDoubleVector, _allocateIntVector, _allocateUintVector, _allocateStringVector, _addBoolVectorEntry, _addFloatVectorEntry, _addDoubleVectorEntry, _addIntVectorEntry, _addUintVectorEntry, _addStringVectorEntry, _addBoolVectorToInputStream, _addFloatVectorToInputStream, _addDoubleVectorToInputStream, _addIntVectorToInputStream, _addUintVectorToInputStream, _addStringVectorToInputStream, _addFlatHashMapToInputStream, _addProtoToInputStream, _addEmptyPacketToInputStream, _addBoolToInputSidePacket, _addDoubleToInputSidePacket, _addFloatToInputSidePacket, _addIntToInputSidePacket, _addUintToInputSidePacket, _addStringToInputSidePacket, _addRawDataSpanToInputSidePacket, _addProtoToInputSidePacket, _addBoolVectorToInputSidePacket, _addDoubleVectorToInputSidePacket, _addFloatVectorToInputSidePacket, _addIntVectorToInputSidePacket, _addUintVectorToInputSidePacket, _addStringVectorToInputSidePacket, _attachBoolListener, _attachBoolVectorListener, _attachDoubleListener, _attachDoubleVectorListener, _attachFloatListener, _attachFloatVectorListener, _attachIntListener, _attachIntVectorListener, _attachUintListener, _attachUintVectorListener, _attachStringListener, _attachStringVectorListener, _attachProtoListener, _attachProtoVectorListener, _getGraphConfig, ___getTypeName, _emwgpuCreateBindGroup, _emwgpuCreateBindGroupLayout, _emwgpuCreateCommandBuffer, _emwgpuCreateCommandEncoder, _emwgpuCreateComputePassEncoder, _emwgpuCreateComputePipeline, _emwgpuCreateExternalTexture, _emwgpuCreatePipelineLayout, _emwgpuCreateQuerySet, _emwgpuCreateRenderBundle, _emwgpuCreateRenderBundleEncoder, _emwgpuCreateRenderPassEncoder, _emwgpuCreateRenderPipeline, _emwgpuCreateSampler, _emwgpuCreateSurface, _emwgpuCreateTexture, _emwgpuCreateTextureView, _emwgpuCreateAdapter, _emwgpuImportBuffer, _emwgpuCreateDevice, _emwgpuCreateQueue, _emwgpuCreateShaderModule, _emwgpuOnCreateComputePipelineCompleted, _emwgpuOnWorkDoneCompleted, _clearSubgraphs, _pushBinarySubgraph, _pushTextSubgraph, _changeBinaryGraph, _changeTextGraph, _processGl, _process, _bindTextureToCanvas, _requestShaderRefreshOnGraphChange, _waitUntilIdle, _closeGraph, _setAutoRenderToScreen, _emscripten_builtin_memalign, _memalign, __emscripten_tempret_set, __emscripten_stack_restore, __emscripten_stack_alloc, _emscripten_stack_get_current, dynCall_vii, dynCall_viiiiiii, dynCall_viiiiii, dynCall_v, dynCall_ii, dynCall_vi, dynCall_iiiii, dynCall_iii, dynCall_viii, dynCall_iiii, dynCall_iiiijij, dynCall_i, dynCall_ji, dynCall_viiii, dynCall_viiiii, dynCall_jii, dynCall_ff, dynCall_did, dynCall_iiiiiii, dynCall_iiiiii, dynCall_iiiiiiiiiii, dynCall_iiiiiiiiiiii, dynCall_iiiiiiiiiiiii, dynCall_viijj, dynCall_vijiii, dynCall_iiiiiiiii, dynCall_viiiiiiii, dynCall_iiiif, dynCall_viiiiiiiiiiiiiii, dynCall_viff, dynCall_viiffii, dynCall_viiffi, dynCall_viiiiiiiiii, dynCall_fi, dynCall_viiffff, dynCall_viiiiij, dynCall_vij, dynCall_viiiiiffii, dynCall_vif, dynCall_ddd, dynCall_dddd, dynCall_idd, dynCall_di, dynCall_jiiiijiiiii, dynCall_viiij, dynCall_viid, dynCall_vidd, dynCall_vifd, dynCall_viji, dynCall_viiiiiiiiiii, dynCall_iiif, dynCall_jiii, dynCall_iiiiiiii, dynCall_iiiiiiiiii, dynCall_iij, dynCall_iiiijj, dynCall_viiijjj, dynCall_fff, dynCall_viifii, dynCall_iff, dynCall_ijj, dynCall_fii, dynCall_vfiii, dynCall_jjj, dynCall_fiii, dynCall_viiiiiiiii, dynCall_viiiffii, dynCall_iiiiiffi, dynCall_viiiiiff, dynCall_viiiiiiiiiiiii, dynCall_viiiiiiiiiiii, dynCall_viiiiiiiiiiiiiiiii, dynCall_iifff, dynCall_iiff, dynCall_iiifiii, dynCall_iiffi, dynCall_iiffii, dynCall_viiiiiiiiiiiiii, dynCall_iif, dynCall_viijii, dynCall_iiiji, dynCall_viiif, dynCall_viiifiii, dynCall_fiif, dynCall_iiiifi, dynCall_iiiifiii, dynCall_iiifi, dynCall_viiiif, dynCall_viiiifii, dynCall_dii, dynCall_vifi, dynCall_vidi, dynCall_vijjj, dynCall_vj, dynCall_viij, dynCall_jiji, dynCall_iidiiiii, dynCall_iiiiij, dynCall_iiiiid, dynCall_iiiiijj, dynCall_iiiiiijj, _asyncify_start_unwind, _asyncify_stop_unwind, _asyncify_start_rewind, _asyncify_stop_rewind, memory, _kVersionStampBuildChangelistStr, _kVersionStampCitcSnapshotStr, _kVersionStampCitcWorkspaceIdStr, _kVersionStampSourceUriStr, _kVersionStampBuildClientStr, _kVersionStampBuildClientMintStatusStr, _kVersionStampBuildCompilerStr, _kVersionStampBuildDateTimePstStr, _kVersionStampBuildDepotPathStr, _kVersionStampBuildIdStr, _kVersionStampBuildInfoStr, _kVersionStampBuildLabelStr, _kVersionStampBuildTargetStr, _kVersionStampBuildTimestampStr, _kVersionStampBuildToolStr, _kVersionStampG3BuildTargetStr, _kVersionStampVerifiableStr, _kVersionStampBuildFdoTypeStr, _kVersionStampBuildBaselineChangelistStr, _kVersionStampBuildLtoTypeStr, _kVersionStampBuildPropellerTypeStr, _kVersionStampBuildPghoTypeStr, _kVersionStampBuildFdoProfileChangelistStr, _kVersionStampBuildMemprofProfileChangelistStr, _kVersionStampBuildUsernameStr, _kVersionStampBuildHostnameStr, _kVersionStampBuildDirectoryStr, _kVersionStampBuildChangelistInt, _kVersionStampCitcSnapshotInt, _kVersionStampBuildClientMintStatusInt, _kVersionStampBuildTimestampInt, _kVersionStampVerifiableInt, _kVersionStampBuildCoverageEnabledInt, _kVersionStampBuildBaselineChangelistInt, _kVersionStampPrecookedTimestampStr, _kVersionStampPrecookedClientInfoStr, __indirect_function_table, _kVersionStampBuildHasHardeningProtobuf, wasmMemory;
|
| 8599 |
|
| 8600 |
function assignWasmExports(wasmExports) {
|
| 8601 |
+
_free = Module["_free"] = wasmExports["gd"];
|
| 8602 |
+
_CreateLlmInferenceEngineConverted = Module["_CreateLlmInferenceEngineConverted"] = wasmExports["hd"];
|
| 8603 |
+
_DeleteLlmInferenceEngine = Module["_DeleteLlmInferenceEngine"] = wasmExports["id"];
|
| 8604 |
+
_MakeSessionForPredict = Module["_MakeSessionForPredict"] = wasmExports["jd"];
|
| 8605 |
+
_AddTextQueryChunk = Module["_AddTextQueryChunk"] = wasmExports["kd"];
|
| 8606 |
+
_AddImageQueryChunk = Module["_AddImageQueryChunk"] = wasmExports["ld"];
|
| 8607 |
+
_AddAudioQueryChunk = Module["_AddAudioQueryChunk"] = wasmExports["md"];
|
| 8608 |
+
_malloc = Module["_malloc"] = wasmExports["nd"];
|
| 8609 |
+
_PredictSession = Module["_PredictSession"] = wasmExports["od"];
|
| 8610 |
+
_FreeSession = Module["_FreeSession"] = wasmExports["pd"];
|
| 8611 |
+
_GetLiteRtModelOffset = Module["_GetLiteRtModelOffset"] = wasmExports["qd"];
|
| 8612 |
+
_GetSizeInTokens = Module["_GetSizeInTokens"] = wasmExports["rd"];
|
| 8613 |
+
_wgpuDeviceAddRef = wasmExports["sd"];
|
| 8614 |
+
_registerModelResourcesGraphService = Module["_registerModelResourcesGraphService"] = wasmExports["td"];
|
| 8615 |
+
_bindTextureToStream = Module["_bindTextureToStream"] = wasmExports["ud"];
|
| 8616 |
+
_addBoundTextureToStream = Module["_addBoundTextureToStream"] = wasmExports["vd"];
|
| 8617 |
+
_addDoubleToInputStream = Module["_addDoubleToInputStream"] = wasmExports["wd"];
|
| 8618 |
+
_addFloatToInputStream = Module["_addFloatToInputStream"] = wasmExports["xd"];
|
| 8619 |
+
_addBoolToInputStream = Module["_addBoolToInputStream"] = wasmExports["yd"];
|
| 8620 |
+
_addIntToInputStream = Module["_addIntToInputStream"] = wasmExports["zd"];
|
| 8621 |
+
_addUintToInputStream = Module["_addUintToInputStream"] = wasmExports["Ad"];
|
| 8622 |
+
_addStringToInputStream = Module["_addStringToInputStream"] = wasmExports["Bd"];
|
| 8623 |
+
_addRawDataSpanToInputStream = Module["_addRawDataSpanToInputStream"] = wasmExports["Cd"];
|
| 8624 |
+
_allocateBoolVector = Module["_allocateBoolVector"] = wasmExports["Dd"];
|
| 8625 |
+
_allocateFloatVector = Module["_allocateFloatVector"] = wasmExports["Ed"];
|
| 8626 |
+
_allocateDoubleVector = Module["_allocateDoubleVector"] = wasmExports["Fd"];
|
| 8627 |
+
_allocateIntVector = Module["_allocateIntVector"] = wasmExports["Gd"];
|
| 8628 |
+
_allocateUintVector = Module["_allocateUintVector"] = wasmExports["Hd"];
|
| 8629 |
+
_allocateStringVector = Module["_allocateStringVector"] = wasmExports["Id"];
|
| 8630 |
+
_addBoolVectorEntry = Module["_addBoolVectorEntry"] = wasmExports["Jd"];
|
| 8631 |
+
_addFloatVectorEntry = Module["_addFloatVectorEntry"] = wasmExports["Kd"];
|
| 8632 |
+
_addDoubleVectorEntry = Module["_addDoubleVectorEntry"] = wasmExports["Ld"];
|
| 8633 |
+
_addIntVectorEntry = Module["_addIntVectorEntry"] = wasmExports["Md"];
|
| 8634 |
+
_addUintVectorEntry = Module["_addUintVectorEntry"] = wasmExports["Nd"];
|
| 8635 |
+
_addStringVectorEntry = Module["_addStringVectorEntry"] = wasmExports["Od"];
|
| 8636 |
+
_addBoolVectorToInputStream = Module["_addBoolVectorToInputStream"] = wasmExports["Pd"];
|
| 8637 |
+
_addFloatVectorToInputStream = Module["_addFloatVectorToInputStream"] = wasmExports["Qd"];
|
| 8638 |
+
_addDoubleVectorToInputStream = Module["_addDoubleVectorToInputStream"] = wasmExports["Rd"];
|
| 8639 |
+
_addIntVectorToInputStream = Module["_addIntVectorToInputStream"] = wasmExports["Sd"];
|
| 8640 |
+
_addUintVectorToInputStream = Module["_addUintVectorToInputStream"] = wasmExports["Td"];
|
| 8641 |
+
_addStringVectorToInputStream = Module["_addStringVectorToInputStream"] = wasmExports["Ud"];
|
| 8642 |
+
_addFlatHashMapToInputStream = Module["_addFlatHashMapToInputStream"] = wasmExports["Vd"];
|
| 8643 |
+
_addProtoToInputStream = Module["_addProtoToInputStream"] = wasmExports["Wd"];
|
| 8644 |
+
_addEmptyPacketToInputStream = Module["_addEmptyPacketToInputStream"] = wasmExports["Xd"];
|
| 8645 |
+
_addBoolToInputSidePacket = Module["_addBoolToInputSidePacket"] = wasmExports["Yd"];
|
| 8646 |
+
_addDoubleToInputSidePacket = Module["_addDoubleToInputSidePacket"] = wasmExports["Zd"];
|
| 8647 |
+
_addFloatToInputSidePacket = Module["_addFloatToInputSidePacket"] = wasmExports["_d"];
|
| 8648 |
+
_addIntToInputSidePacket = Module["_addIntToInputSidePacket"] = wasmExports["$d"];
|
| 8649 |
+
_addUintToInputSidePacket = Module["_addUintToInputSidePacket"] = wasmExports["ae"];
|
| 8650 |
+
_addStringToInputSidePacket = Module["_addStringToInputSidePacket"] = wasmExports["be"];
|
| 8651 |
+
_addRawDataSpanToInputSidePacket = Module["_addRawDataSpanToInputSidePacket"] = wasmExports["ce"];
|
| 8652 |
+
_addProtoToInputSidePacket = Module["_addProtoToInputSidePacket"] = wasmExports["de"];
|
| 8653 |
+
_addBoolVectorToInputSidePacket = Module["_addBoolVectorToInputSidePacket"] = wasmExports["ee"];
|
| 8654 |
+
_addDoubleVectorToInputSidePacket = Module["_addDoubleVectorToInputSidePacket"] = wasmExports["fe"];
|
| 8655 |
+
_addFloatVectorToInputSidePacket = Module["_addFloatVectorToInputSidePacket"] = wasmExports["ge"];
|
| 8656 |
+
_addIntVectorToInputSidePacket = Module["_addIntVectorToInputSidePacket"] = wasmExports["he"];
|
| 8657 |
+
_addUintVectorToInputSidePacket = Module["_addUintVectorToInputSidePacket"] = wasmExports["ie"];
|
| 8658 |
+
_addStringVectorToInputSidePacket = Module["_addStringVectorToInputSidePacket"] = wasmExports["je"];
|
| 8659 |
+
_attachBoolListener = Module["_attachBoolListener"] = wasmExports["ke"];
|
| 8660 |
+
_attachBoolVectorListener = Module["_attachBoolVectorListener"] = wasmExports["le"];
|
| 8661 |
+
_attachDoubleListener = Module["_attachDoubleListener"] = wasmExports["me"];
|
| 8662 |
+
_attachDoubleVectorListener = Module["_attachDoubleVectorListener"] = wasmExports["ne"];
|
| 8663 |
+
_attachFloatListener = Module["_attachFloatListener"] = wasmExports["oe"];
|
| 8664 |
+
_attachFloatVectorListener = Module["_attachFloatVectorListener"] = wasmExports["pe"];
|
| 8665 |
+
_attachIntListener = Module["_attachIntListener"] = wasmExports["qe"];
|
| 8666 |
+
_attachIntVectorListener = Module["_attachIntVectorListener"] = wasmExports["re"];
|
| 8667 |
+
_attachUintListener = Module["_attachUintListener"] = wasmExports["se"];
|
| 8668 |
+
_attachUintVectorListener = Module["_attachUintVectorListener"] = wasmExports["te"];
|
| 8669 |
+
_attachStringListener = Module["_attachStringListener"] = wasmExports["ue"];
|
| 8670 |
+
_attachStringVectorListener = Module["_attachStringVectorListener"] = wasmExports["ve"];
|
| 8671 |
+
_attachProtoListener = Module["_attachProtoListener"] = wasmExports["we"];
|
| 8672 |
+
_attachProtoVectorListener = Module["_attachProtoVectorListener"] = wasmExports["xe"];
|
| 8673 |
+
_getGraphConfig = Module["_getGraphConfig"] = wasmExports["ye"];
|
| 8674 |
+
___getTypeName = wasmExports["ze"];
|
| 8675 |
+
_emwgpuCreateBindGroup = wasmExports["Ae"];
|
| 8676 |
+
_emwgpuCreateBindGroupLayout = wasmExports["Be"];
|
| 8677 |
+
_emwgpuCreateCommandBuffer = wasmExports["Ce"];
|
| 8678 |
+
_emwgpuCreateCommandEncoder = wasmExports["De"];
|
| 8679 |
+
_emwgpuCreateComputePassEncoder = wasmExports["Ee"];
|
| 8680 |
+
_emwgpuCreateComputePipeline = wasmExports["Fe"];
|
| 8681 |
+
_emwgpuCreateExternalTexture = wasmExports["Ge"];
|
| 8682 |
+
_emwgpuCreatePipelineLayout = wasmExports["He"];
|
| 8683 |
+
_emwgpuCreateQuerySet = wasmExports["Ie"];
|
| 8684 |
+
_emwgpuCreateRenderBundle = wasmExports["Je"];
|
| 8685 |
+
_emwgpuCreateRenderBundleEncoder = wasmExports["Ke"];
|
| 8686 |
+
_emwgpuCreateRenderPassEncoder = wasmExports["Le"];
|
| 8687 |
+
_emwgpuCreateRenderPipeline = wasmExports["Me"];
|
| 8688 |
+
_emwgpuCreateSampler = wasmExports["Ne"];
|
| 8689 |
+
_emwgpuCreateSurface = wasmExports["Oe"];
|
| 8690 |
+
_emwgpuCreateTexture = wasmExports["Pe"];
|
| 8691 |
+
_emwgpuCreateTextureView = wasmExports["Qe"];
|
| 8692 |
+
_emwgpuCreateAdapter = wasmExports["Re"];
|
| 8693 |
+
_emwgpuImportBuffer = wasmExports["Se"];
|
| 8694 |
+
_emwgpuCreateDevice = wasmExports["Te"];
|
| 8695 |
+
_emwgpuCreateQueue = wasmExports["Ue"];
|
| 8696 |
+
_emwgpuCreateShaderModule = wasmExports["Ve"];
|
| 8697 |
+
_emwgpuOnCreateComputePipelineCompleted = wasmExports["We"];
|
| 8698 |
+
_emwgpuOnWorkDoneCompleted = wasmExports["Xe"];
|
| 8699 |
+
_clearSubgraphs = Module["_clearSubgraphs"] = wasmExports["Ye"];
|
| 8700 |
+
_pushBinarySubgraph = Module["_pushBinarySubgraph"] = wasmExports["Ze"];
|
| 8701 |
+
_pushTextSubgraph = Module["_pushTextSubgraph"] = wasmExports["_e"];
|
| 8702 |
+
_changeBinaryGraph = Module["_changeBinaryGraph"] = wasmExports["$e"];
|
| 8703 |
+
_changeTextGraph = Module["_changeTextGraph"] = wasmExports["af"];
|
| 8704 |
+
_processGl = Module["_processGl"] = wasmExports["bf"];
|
| 8705 |
+
_process = Module["_process"] = wasmExports["cf"];
|
| 8706 |
+
_bindTextureToCanvas = Module["_bindTextureToCanvas"] = wasmExports["df"];
|
| 8707 |
+
_requestShaderRefreshOnGraphChange = Module["_requestShaderRefreshOnGraphChange"] = wasmExports["ef"];
|
| 8708 |
+
_waitUntilIdle = Module["_waitUntilIdle"] = wasmExports["ff"];
|
| 8709 |
+
_closeGraph = Module["_closeGraph"] = wasmExports["gf"];
|
| 8710 |
+
_setAutoRenderToScreen = Module["_setAutoRenderToScreen"] = wasmExports["hf"];
|
| 8711 |
+
_emscripten_builtin_memalign = wasmExports["kf"];
|
| 8712 |
+
_memalign = wasmExports["lf"];
|
| 8713 |
+
__emscripten_tempret_set = wasmExports["mf"];
|
| 8714 |
+
__emscripten_stack_restore = wasmExports["nf"];
|
| 8715 |
+
__emscripten_stack_alloc = wasmExports["of"];
|
| 8716 |
+
_emscripten_stack_get_current = wasmExports["pf"];
|
| 8717 |
+
dynCall_vii = dynCalls["vii"] = wasmExports["qf"];
|
| 8718 |
+
dynCall_viiiiiii = dynCalls["viiiiiii"] = wasmExports["rf"];
|
| 8719 |
+
dynCall_viiiiii = dynCalls["viiiiii"] = wasmExports["sf"];
|
| 8720 |
+
dynCall_v = dynCalls["v"] = wasmExports["tf"];
|
| 8721 |
+
dynCall_ii = dynCalls["ii"] = wasmExports["uf"];
|
| 8722 |
+
dynCall_vi = dynCalls["vi"] = wasmExports["vf"];
|
| 8723 |
+
dynCall_iiiii = dynCalls["iiiii"] = wasmExports["wf"];
|
| 8724 |
+
dynCall_iii = dynCalls["iii"] = wasmExports["xf"];
|
| 8725 |
+
dynCall_viii = dynCalls["viii"] = wasmExports["yf"];
|
| 8726 |
+
dynCall_iiii = dynCalls["iiii"] = wasmExports["zf"];
|
| 8727 |
+
dynCall_iiiijij = dynCalls["iiiijij"] = wasmExports["Af"];
|
| 8728 |
+
dynCall_i = dynCalls["i"] = wasmExports["Bf"];
|
| 8729 |
+
dynCall_ji = dynCalls["ji"] = wasmExports["Cf"];
|
| 8730 |
+
dynCall_viiii = dynCalls["viiii"] = wasmExports["Df"];
|
| 8731 |
+
dynCall_viiiii = dynCalls["viiiii"] = wasmExports["Ef"];
|
| 8732 |
+
dynCall_jii = dynCalls["jii"] = wasmExports["Ff"];
|
| 8733 |
+
dynCall_ff = dynCalls["ff"] = wasmExports["Gf"];
|
| 8734 |
+
dynCall_did = dynCalls["did"] = wasmExports["Hf"];
|
| 8735 |
+
dynCall_iiiiiii = dynCalls["iiiiiii"] = wasmExports["If"];
|
| 8736 |
+
dynCall_iiiiii = dynCalls["iiiiii"] = wasmExports["Jf"];
|
| 8737 |
+
dynCall_iiiiiiiiiii = dynCalls["iiiiiiiiiii"] = wasmExports["Kf"];
|
| 8738 |
+
dynCall_iiiiiiiiiiii = dynCalls["iiiiiiiiiiii"] = wasmExports["Lf"];
|
| 8739 |
+
dynCall_iiiiiiiiiiiii = dynCalls["iiiiiiiiiiiii"] = wasmExports["Mf"];
|
| 8740 |
+
dynCall_viijj = dynCalls["viijj"] = wasmExports["Nf"];
|
| 8741 |
+
dynCall_vijiii = dynCalls["vijiii"] = wasmExports["Of"];
|
| 8742 |
+
dynCall_iiiiiiiii = dynCalls["iiiiiiiii"] = wasmExports["Pf"];
|
| 8743 |
+
dynCall_viiiiiiii = dynCalls["viiiiiiii"] = wasmExports["Qf"];
|
| 8744 |
+
dynCall_iiiif = dynCalls["iiiif"] = wasmExports["Rf"];
|
| 8745 |
+
dynCall_viiiiiiiiiiiiiii = dynCalls["viiiiiiiiiiiiiii"] = wasmExports["Sf"];
|
| 8746 |
+
dynCall_viff = dynCalls["viff"] = wasmExports["Tf"];
|
| 8747 |
+
dynCall_viiffii = dynCalls["viiffii"] = wasmExports["Uf"];
|
| 8748 |
+
dynCall_viiffi = dynCalls["viiffi"] = wasmExports["Vf"];
|
| 8749 |
+
dynCall_viiiiiiiiii = dynCalls["viiiiiiiiii"] = wasmExports["Wf"];
|
| 8750 |
+
dynCall_fi = dynCalls["fi"] = wasmExports["Xf"];
|
| 8751 |
+
dynCall_viiffff = dynCalls["viiffff"] = wasmExports["Yf"];
|
| 8752 |
+
dynCall_viiiiij = dynCalls["viiiiij"] = wasmExports["Zf"];
|
| 8753 |
+
dynCall_vij = dynCalls["vij"] = wasmExports["_f"];
|
| 8754 |
+
dynCall_viiiiiffii = dynCalls["viiiiiffii"] = wasmExports["$f"];
|
| 8755 |
+
dynCall_vif = dynCalls["vif"] = wasmExports["ag"];
|
| 8756 |
+
dynCall_ddd = dynCalls["ddd"] = wasmExports["bg"];
|
| 8757 |
+
dynCall_dddd = dynCalls["dddd"] = wasmExports["cg"];
|
| 8758 |
+
dynCall_idd = dynCalls["idd"] = wasmExports["dg"];
|
| 8759 |
+
dynCall_di = dynCalls["di"] = wasmExports["eg"];
|
| 8760 |
+
dynCall_jiiiijiiiii = dynCalls["jiiiijiiiii"] = wasmExports["fg"];
|
| 8761 |
+
dynCall_viiij = dynCalls["viiij"] = wasmExports["gg"];
|
| 8762 |
+
dynCall_viid = dynCalls["viid"] = wasmExports["hg"];
|
| 8763 |
+
dynCall_vidd = dynCalls["vidd"] = wasmExports["ig"];
|
| 8764 |
+
dynCall_vifd = dynCalls["vifd"] = wasmExports["jg"];
|
| 8765 |
+
dynCall_viji = dynCalls["viji"] = wasmExports["kg"];
|
| 8766 |
+
dynCall_viiiiiiiiiii = dynCalls["viiiiiiiiiii"] = wasmExports["lg"];
|
| 8767 |
+
dynCall_iiif = dynCalls["iiif"] = wasmExports["mg"];
|
| 8768 |
+
dynCall_jiii = dynCalls["jiii"] = wasmExports["ng"];
|
| 8769 |
+
dynCall_iiiiiiii = dynCalls["iiiiiiii"] = wasmExports["og"];
|
| 8770 |
+
dynCall_iiiiiiiiii = dynCalls["iiiiiiiiii"] = wasmExports["pg"];
|
| 8771 |
+
dynCall_iij = dynCalls["iij"] = wasmExports["qg"];
|
| 8772 |
+
dynCall_iiiijj = dynCalls["iiiijj"] = wasmExports["rg"];
|
| 8773 |
+
dynCall_viiijjj = dynCalls["viiijjj"] = wasmExports["sg"];
|
| 8774 |
+
dynCall_fff = dynCalls["fff"] = wasmExports["tg"];
|
| 8775 |
+
dynCall_viifii = dynCalls["viifii"] = wasmExports["ug"];
|
| 8776 |
+
dynCall_iff = dynCalls["iff"] = wasmExports["vg"];
|
| 8777 |
+
dynCall_ijj = dynCalls["ijj"] = wasmExports["wg"];
|
| 8778 |
+
dynCall_fii = dynCalls["fii"] = wasmExports["xg"];
|
| 8779 |
+
dynCall_vfiii = dynCalls["vfiii"] = wasmExports["yg"];
|
| 8780 |
+
dynCall_jjj = dynCalls["jjj"] = wasmExports["zg"];
|
| 8781 |
+
dynCall_fiii = dynCalls["fiii"] = wasmExports["Ag"];
|
| 8782 |
+
dynCall_viiiiiiiii = dynCalls["viiiiiiiii"] = wasmExports["Bg"];
|
| 8783 |
+
dynCall_viiiffii = dynCalls["viiiffii"] = wasmExports["Cg"];
|
| 8784 |
+
dynCall_iiiiiffi = dynCalls["iiiiiffi"] = wasmExports["Dg"];
|
| 8785 |
+
dynCall_viiiiiff = dynCalls["viiiiiff"] = wasmExports["Eg"];
|
| 8786 |
+
dynCall_viiiiiiiiiiiii = dynCalls["viiiiiiiiiiiii"] = wasmExports["Fg"];
|
| 8787 |
+
dynCall_viiiiiiiiiiii = dynCalls["viiiiiiiiiiii"] = wasmExports["Gg"];
|
| 8788 |
+
dynCall_viiiiiiiiiiiiiiiii = dynCalls["viiiiiiiiiiiiiiiii"] = wasmExports["Hg"];
|
| 8789 |
+
dynCall_iifff = dynCalls["iifff"] = wasmExports["Ig"];
|
| 8790 |
+
dynCall_iiff = dynCalls["iiff"] = wasmExports["Jg"];
|
| 8791 |
+
dynCall_iiifiii = dynCalls["iiifiii"] = wasmExports["Kg"];
|
| 8792 |
+
dynCall_iiffi = dynCalls["iiffi"] = wasmExports["Lg"];
|
| 8793 |
+
dynCall_iiffii = dynCalls["iiffii"] = wasmExports["Mg"];
|
| 8794 |
+
dynCall_viiiiiiiiiiiiii = dynCalls["viiiiiiiiiiiiii"] = wasmExports["Ng"];
|
| 8795 |
+
dynCall_iif = dynCalls["iif"] = wasmExports["Og"];
|
| 8796 |
+
dynCall_viijii = dynCalls["viijii"] = wasmExports["Pg"];
|
| 8797 |
+
dynCall_iiiji = dynCalls["iiiji"] = wasmExports["Qg"];
|
| 8798 |
+
dynCall_viiif = dynCalls["viiif"] = wasmExports["Rg"];
|
| 8799 |
+
dynCall_viiifiii = dynCalls["viiifiii"] = wasmExports["Sg"];
|
| 8800 |
+
dynCall_fiif = dynCalls["fiif"] = wasmExports["Tg"];
|
| 8801 |
+
dynCall_iiiifi = dynCalls["iiiifi"] = wasmExports["Ug"];
|
| 8802 |
+
dynCall_iiiifiii = dynCalls["iiiifiii"] = wasmExports["Vg"];
|
| 8803 |
+
dynCall_iiifi = dynCalls["iiifi"] = wasmExports["Wg"];
|
| 8804 |
+
dynCall_viiiif = dynCalls["viiiif"] = wasmExports["Xg"];
|
| 8805 |
+
dynCall_viiiifii = dynCalls["viiiifii"] = wasmExports["Yg"];
|
| 8806 |
+
dynCall_dii = dynCalls["dii"] = wasmExports["Zg"];
|
| 8807 |
+
dynCall_vifi = dynCalls["vifi"] = wasmExports["_g"];
|
| 8808 |
+
dynCall_vidi = dynCalls["vidi"] = wasmExports["$g"];
|
| 8809 |
+
dynCall_vijjj = dynCalls["vijjj"] = wasmExports["ah"];
|
| 8810 |
+
dynCall_vj = dynCalls["vj"] = wasmExports["bh"];
|
| 8811 |
+
dynCall_viij = dynCalls["viij"] = wasmExports["ch"];
|
| 8812 |
+
dynCall_jiji = dynCalls["jiji"] = wasmExports["dh"];
|
| 8813 |
+
dynCall_iidiiiii = dynCalls["iidiiiii"] = wasmExports["eh"];
|
| 8814 |
+
dynCall_iiiiij = dynCalls["iiiiij"] = wasmExports["fh"];
|
| 8815 |
+
dynCall_iiiiid = dynCalls["iiiiid"] = wasmExports["gh"];
|
| 8816 |
+
dynCall_iiiiijj = dynCalls["iiiiijj"] = wasmExports["hh"];
|
| 8817 |
+
dynCall_iiiiiijj = dynCalls["iiiiiijj"] = wasmExports["ih"];
|
| 8818 |
+
_asyncify_start_unwind = wasmExports["jh"];
|
| 8819 |
+
_asyncify_stop_unwind = wasmExports["kh"];
|
| 8820 |
+
_asyncify_start_rewind = wasmExports["lh"];
|
| 8821 |
+
_asyncify_stop_rewind = wasmExports["mh"];
|
| 8822 |
+
memory = wasmMemory = wasmExports["wc"];
|
| 8823 |
+
_kVersionStampBuildChangelistStr = Module["_kVersionStampBuildChangelistStr"] = (wasmExports["yc"].value) >>> 0;
|
| 8824 |
+
_kVersionStampCitcSnapshotStr = Module["_kVersionStampCitcSnapshotStr"] = (wasmExports["zc"].value) >>> 0;
|
| 8825 |
+
_kVersionStampCitcWorkspaceIdStr = Module["_kVersionStampCitcWorkspaceIdStr"] = (wasmExports["Ac"].value) >>> 0;
|
| 8826 |
+
_kVersionStampSourceUriStr = Module["_kVersionStampSourceUriStr"] = (wasmExports["Bc"].value) >>> 0;
|
| 8827 |
+
_kVersionStampBuildClientStr = Module["_kVersionStampBuildClientStr"] = (wasmExports["Cc"].value) >>> 0;
|
| 8828 |
+
_kVersionStampBuildClientMintStatusStr = Module["_kVersionStampBuildClientMintStatusStr"] = (wasmExports["Dc"].value) >>> 0;
|
| 8829 |
+
_kVersionStampBuildCompilerStr = Module["_kVersionStampBuildCompilerStr"] = (wasmExports["Ec"].value) >>> 0;
|
| 8830 |
+
_kVersionStampBuildDateTimePstStr = Module["_kVersionStampBuildDateTimePstStr"] = (wasmExports["Fc"].value) >>> 0;
|
| 8831 |
+
_kVersionStampBuildDepotPathStr = Module["_kVersionStampBuildDepotPathStr"] = (wasmExports["Gc"].value) >>> 0;
|
| 8832 |
+
_kVersionStampBuildIdStr = Module["_kVersionStampBuildIdStr"] = (wasmExports["Hc"].value) >>> 0;
|
| 8833 |
+
_kVersionStampBuildInfoStr = Module["_kVersionStampBuildInfoStr"] = (wasmExports["Ic"].value) >>> 0;
|
| 8834 |
+
_kVersionStampBuildLabelStr = Module["_kVersionStampBuildLabelStr"] = (wasmExports["Jc"].value) >>> 0;
|
| 8835 |
+
_kVersionStampBuildTargetStr = Module["_kVersionStampBuildTargetStr"] = (wasmExports["Kc"].value) >>> 0;
|
| 8836 |
+
_kVersionStampBuildTimestampStr = Module["_kVersionStampBuildTimestampStr"] = (wasmExports["Lc"].value) >>> 0;
|
| 8837 |
+
_kVersionStampBuildToolStr = Module["_kVersionStampBuildToolStr"] = (wasmExports["Mc"].value) >>> 0;
|
| 8838 |
+
_kVersionStampG3BuildTargetStr = Module["_kVersionStampG3BuildTargetStr"] = (wasmExports["Nc"].value) >>> 0;
|
| 8839 |
+
_kVersionStampVerifiableStr = Module["_kVersionStampVerifiableStr"] = (wasmExports["Oc"].value) >>> 0;
|
| 8840 |
+
_kVersionStampBuildFdoTypeStr = Module["_kVersionStampBuildFdoTypeStr"] = (wasmExports["Pc"].value) >>> 0;
|
| 8841 |
+
_kVersionStampBuildBaselineChangelistStr = Module["_kVersionStampBuildBaselineChangelistStr"] = (wasmExports["Qc"].value) >>> 0;
|
| 8842 |
+
_kVersionStampBuildLtoTypeStr = Module["_kVersionStampBuildLtoTypeStr"] = (wasmExports["Rc"].value) >>> 0;
|
| 8843 |
+
_kVersionStampBuildPropellerTypeStr = Module["_kVersionStampBuildPropellerTypeStr"] = (wasmExports["Sc"].value) >>> 0;
|
| 8844 |
+
_kVersionStampBuildPghoTypeStr = Module["_kVersionStampBuildPghoTypeStr"] = (wasmExports["Tc"].value) >>> 0;
|
| 8845 |
+
_kVersionStampBuildFdoProfileChangelistStr = Module["_kVersionStampBuildFdoProfileChangelistStr"] = (wasmExports["Uc"].value) >>> 0;
|
| 8846 |
+
_kVersionStampBuildMemprofProfileChangelistStr = Module["_kVersionStampBuildMemprofProfileChangelistStr"] = (wasmExports["Vc"].value) >>> 0;
|
| 8847 |
+
_kVersionStampBuildUsernameStr = Module["_kVersionStampBuildUsernameStr"] = (wasmExports["Wc"].value) >>> 0;
|
| 8848 |
+
_kVersionStampBuildHostnameStr = Module["_kVersionStampBuildHostnameStr"] = (wasmExports["Xc"].value) >>> 0;
|
| 8849 |
+
_kVersionStampBuildDirectoryStr = Module["_kVersionStampBuildDirectoryStr"] = (wasmExports["Yc"].value) >>> 0;
|
| 8850 |
+
_kVersionStampBuildChangelistInt = Module["_kVersionStampBuildChangelistInt"] = (wasmExports["Zc"].value) >>> 0;
|
| 8851 |
+
_kVersionStampCitcSnapshotInt = Module["_kVersionStampCitcSnapshotInt"] = (wasmExports["_c"].value) >>> 0;
|
| 8852 |
+
_kVersionStampBuildClientMintStatusInt = Module["_kVersionStampBuildClientMintStatusInt"] = (wasmExports["$c"].value) >>> 0;
|
| 8853 |
+
_kVersionStampBuildTimestampInt = Module["_kVersionStampBuildTimestampInt"] = (wasmExports["ad"].value) >>> 0;
|
| 8854 |
+
_kVersionStampVerifiableInt = Module["_kVersionStampVerifiableInt"] = (wasmExports["bd"].value) >>> 0;
|
| 8855 |
+
_kVersionStampBuildCoverageEnabledInt = Module["_kVersionStampBuildCoverageEnabledInt"] = (wasmExports["cd"].value) >>> 0;
|
| 8856 |
+
_kVersionStampBuildBaselineChangelistInt = Module["_kVersionStampBuildBaselineChangelistInt"] = (wasmExports["dd"].value) >>> 0;
|
| 8857 |
+
_kVersionStampPrecookedTimestampStr = Module["_kVersionStampPrecookedTimestampStr"] = (wasmExports["ed"].value) >>> 0;
|
| 8858 |
+
_kVersionStampPrecookedClientInfoStr = Module["_kVersionStampPrecookedClientInfoStr"] = (wasmExports["fd"].value) >>> 0;
|
| 8859 |
__indirect_function_table = wasmExports["__indirect_function_table"];
|
| 8860 |
+
_kVersionStampBuildHasHardeningProtobuf = Module["_kVersionStampBuildHasHardeningProtobuf"] = (wasmExports["jf"].value) >>> 0;
|
| 8861 |
}
|
| 8862 |
|
| 8863 |
var wasmImports = {
|
| 8864 |
+
/** @export */ uc: DefaultErrorReporter,
|
| 8865 |
+
/** @export */ tc: GetAdapterArchitecture,
|
| 8866 |
+
/** @export */ sc: GetAdapterDescription,
|
| 8867 |
+
/** @export */ rc: GetAdapterDeviceName,
|
| 8868 |
+
/** @export */ qc: GetAdapterVendor,
|
| 8869 |
+
/** @export */ oc: JsGetDeviceMaxSubgroupSize,
|
| 8870 |
+
/** @export */ nc: JsGetDeviceMinSubgroupSize,
|
| 8871 |
+
/** @export */ mc: JsOnEmptyPacketListener,
|
| 8872 |
+
/** @export */ oa: JsOnSimpleListenerBinaryArray,
|
| 8873 |
+
/** @export */ lc: JsOnSimpleListenerBool,
|
| 8874 |
+
/** @export */ kc: JsOnSimpleListenerDouble,
|
| 8875 |
+
/** @export */ jc: JsOnSimpleListenerFloat,
|
| 8876 |
+
/** @export */ ic: JsOnSimpleListenerInt,
|
| 8877 |
+
/** @export */ hc: JsOnSimpleListenerString,
|
| 8878 |
+
/** @export */ gc: JsOnSimpleListenerUint,
|
| 8879 |
+
/** @export */ r: JsOnVectorFinishedListener,
|
| 8880 |
+
/** @export */ fc: JsOnVectorListenerBool,
|
| 8881 |
+
/** @export */ ec: JsOnVectorListenerDouble,
|
| 8882 |
+
/** @export */ dc: JsOnVectorListenerFloat,
|
| 8883 |
+
/** @export */ cc: JsOnVectorListenerInt,
|
| 8884 |
+
/** @export */ bc: JsOnVectorListenerProto,
|
| 8885 |
+
/** @export */ ac: JsOnVectorListenerString,
|
| 8886 |
+
/** @export */ $b: JsOnVectorListenerUint,
|
| 8887 |
+
/** @export */ na: JsProgressListener,
|
| 8888 |
+
/** @export */ _b: JsWrapErrorListenerInternal,
|
| 8889 |
/** @export */ g: JsWrapSimpleListeners,
|
| 8890 |
+
/** @export */ Zb: ThrowError,
|
| 8891 |
+
/** @export */ ma: UseBottomLeftGpuOrigin,
|
| 8892 |
+
/** @export */ Yb: __Unwind_RaiseException,
|
| 8893 |
+
/** @export */ vc: __asyncjs__CallReadDataFn,
|
| 8894 |
+
/** @export */ pc: __asyncjs__InvokeReadDataFn,
|
| 8895 |
+
/** @export */ N: __asyncjs__ReadBufferDataJs,
|
| 8896 |
+
/** @export */ Fa: __asyncjs__mediapipe_map_buffer_jspi,
|
| 8897 |
+
/** @export */ Xb: ___syscall_dup,
|
| 8898 |
+
/** @export */ Wb: ___syscall_faccessat,
|
| 8899 |
+
/** @export */ n: ___syscall_fcntl64,
|
| 8900 |
+
/** @export */ Vb: ___syscall_fstat64,
|
| 8901 |
+
/** @export */ Wa: ___syscall_ftruncate64,
|
| 8902 |
+
/** @export */ Ub: ___syscall_getcwd,
|
| 8903 |
+
/** @export */ Tb: ___syscall_getdents64,
|
| 8904 |
+
/** @export */ Sb: ___syscall_ioctl,
|
| 8905 |
+
/** @export */ Rb: ___syscall_lstat64,
|
| 8906 |
+
/** @export */ Qb: ___syscall_mkdirat,
|
| 8907 |
+
/** @export */ Pb: ___syscall_newfstatat,
|
| 8908 |
+
/** @export */ M: ___syscall_openat,
|
| 8909 |
+
/** @export */ Ob: ___syscall_readlinkat,
|
| 8910 |
+
/** @export */ Nb: ___syscall_rmdir,
|
| 8911 |
+
/** @export */ Mb: ___syscall_stat64,
|
| 8912 |
+
/** @export */ la: ___syscall_unlinkat,
|
| 8913 |
+
/** @export */ Lb: ___syscall_utimensat,
|
| 8914 |
/** @export */ Gb: __abort_js,
|
| 8915 |
+
/** @export */ Sa: __embind_register_bigint,
|
| 8916 |
/** @export */ Fb: __embind_register_bool,
|
| 8917 |
/** @export */ Eb: __embind_register_emval,
|
| 8918 |
+
/** @export */ ja: __embind_register_float,
|
| 8919 |
+
/** @export */ A: __embind_register_function,
|
| 8920 |
+
/** @export */ p: __embind_register_integer,
|
| 8921 |
/** @export */ e: __embind_register_memory_view,
|
| 8922 |
/** @export */ Db: __embind_register_std_string,
|
| 8923 |
+
/** @export */ L: __embind_register_std_wstring,
|
| 8924 |
/** @export */ Cb: __embind_register_void,
|
| 8925 |
+
/** @export */ ia: __emval_create_invoker,
|
| 8926 |
+
/** @export */ m: __emval_decref,
|
| 8927 |
+
/** @export */ q: __emval_incref,
|
| 8928 |
+
/** @export */ ha: __emval_invoke,
|
| 8929 |
+
/** @export */ ga: __emval_run_destructors,
|
| 8930 |
+
/** @export */ Ra: __gmtime_js,
|
| 8931 |
+
/** @export */ Qa: __localtime_js,
|
| 8932 |
+
/** @export */ Pa: __mktime_js,
|
| 8933 |
+
/** @export */ Oa: __mmap_js,
|
| 8934 |
+
/** @export */ Na: __munmap_js,
|
| 8935 |
/** @export */ Bb: __tzset_js,
|
| 8936 |
+
/** @export */ Va: _clock_time_get,
|
| 8937 |
/** @export */ Ab: custom_emscripten_dbgn,
|
| 8938 |
+
/** @export */ u: _emscripten_asm_const_int,
|
| 8939 |
+
/** @export */ K: _emscripten_errn,
|
| 8940 |
/** @export */ zb: _emscripten_get_heap_max,
|
| 8941 |
/** @export */ d: _emscripten_get_now,
|
| 8942 |
+
/** @export */ J: _emscripten_has_asyncify,
|
| 8943 |
/** @export */ yb: _emscripten_outn,
|
| 8944 |
/** @export */ xb: _emscripten_pc_get_function,
|
| 8945 |
/** @export */ wb: _emscripten_resize_heap,
|
| 8946 |
+
/** @export */ fa: _emscripten_stack_snapshot,
|
| 8947 |
/** @export */ vb: _emscripten_stack_unwind_buffer,
|
| 8948 |
/** @export */ ub: _emscripten_webgl_create_context,
|
| 8949 |
/** @export */ tb: _emscripten_webgl_destroy_context,
|
| 8950 |
/** @export */ sb: _emscripten_webgl_get_context_attributes,
|
| 8951 |
+
/** @export */ t: _emscripten_webgl_get_current_context,
|
| 8952 |
/** @export */ rb: _emscripten_webgl_make_context_current,
|
| 8953 |
+
/** @export */ ea: _emscripten_webgpu_get_device,
|
| 8954 |
/** @export */ qb: _emwgpuBufferDestroy,
|
| 8955 |
/** @export */ pb: _emwgpuBufferGetMappedRange,
|
| 8956 |
/** @export */ ob: _emwgpuBufferUnmap,
|
| 8957 |
/** @export */ nb: _emwgpuBufferWriteMappedRange,
|
| 8958 |
/** @export */ f: _emwgpuDelete,
|
| 8959 |
/** @export */ mb: _emwgpuDeviceCreateBuffer,
|
| 8960 |
+
/** @export */ Ma: _emwgpuDeviceCreateComputePipelineAsync,
|
| 8961 |
/** @export */ lb: _emwgpuDeviceCreateShaderModule,
|
| 8962 |
/** @export */ kb: _emwgpuDeviceDestroy,
|
| 8963 |
+
/** @export */ La: _emwgpuQueueOnSubmittedWorkDone,
|
| 8964 |
/** @export */ jb: _emwgpuWaitAny,
|
| 8965 |
/** @export */ Kb: _environ_get,
|
| 8966 |
/** @export */ Jb: _environ_sizes_get,
|
| 8967 |
+
/** @export */ da: _exit,
|
| 8968 |
+
/** @export */ v: _fd_close,
|
| 8969 |
+
/** @export */ Ua: _fd_pread,
|
| 8970 |
+
/** @export */ ka: _fd_read,
|
| 8971 |
+
/** @export */ Ta: _fd_seek,
|
| 8972 |
+
/** @export */ B: _fd_write,
|
| 8973 |
+
/** @export */ I: _glActiveTexture,
|
| 8974 |
+
/** @export */ ca: _glAttachShader,
|
| 8975 |
+
/** @export */ ib: _glBindAttribLocation,
|
| 8976 |
+
/** @export */ o: _glBindBuffer,
|
| 8977 |
+
/** @export */ z: _glBindFramebuffer,
|
| 8978 |
+
/** @export */ l: _glBindTexture,
|
| 8979 |
+
/** @export */ H: _glBufferData,
|
| 8980 |
+
/** @export */ s: _glClientWaitSync,
|
| 8981 |
+
/** @export */ hb: _glCompileShader,
|
| 8982 |
+
/** @export */ gb: _glCreateProgram,
|
| 8983 |
+
/** @export */ fb: _glCreateShader,
|
| 8984 |
+
/** @export */ ba: _glDeleteFramebuffers,
|
| 8985 |
+
/** @export */ eb: _glDeleteProgram,
|
| 8986 |
+
/** @export */ aa: _glDeleteShader,
|
| 8987 |
+
/** @export */ y: _glDeleteSync,
|
| 8988 |
+
/** @export */ $: _glDeleteTextures,
|
| 8989 |
+
/** @export */ _: _glDetachShader,
|
| 8990 |
+
/** @export */ Z: _glDisableVertexAttribArray,
|
| 8991 |
+
/** @export */ db: _glDrawArrays,
|
| 8992 |
+
/** @export */ Y: _glEnableVertexAttribArray,
|
| 8993 |
+
/** @export */ X: _glFenceSync,
|
| 8994 |
+
/** @export */ x: _glFinish,
|
| 8995 |
+
/** @export */ G: _glFramebufferTexture2D,
|
| 8996 |
+
/** @export */ W: _glGenBuffers,
|
| 8997 |
+
/** @export */ cb: _glGenFramebuffers,
|
| 8998 |
+
/** @export */ F: _glGenTextures,
|
| 8999 |
+
/** @export */ w: _glGetError,
|
| 9000 |
+
/** @export */ V: _glGetIntegerv,
|
| 9001 |
+
/** @export */ E: _glGetString,
|
| 9002 |
+
/** @export */ bb: _glGetUniformLocation,
|
| 9003 |
+
/** @export */ ab: _glLinkProgram,
|
| 9004 |
+
/** @export */ D: _glPixelStorei,
|
| 9005 |
+
/** @export */ U: _glReadPixels,
|
| 9006 |
+
/** @export */ $a: _glShaderSource,
|
| 9007 |
+
/** @export */ _a: _glTexImage2D,
|
| 9008 |
+
/** @export */ k: _glTexParameteri,
|
| 9009 |
+
/** @export */ T: _glTexStorage2D,
|
| 9010 |
+
/** @export */ Za: _glUniform1i,
|
| 9011 |
+
/** @export */ Ya: _glUseProgram,
|
| 9012 |
+
/** @export */ S: _glVertexAttribPointer,
|
| 9013 |
+
/** @export */ Xa: _glViewport,
|
| 9014 |
+
/** @export */ C: hardware_concurrency,
|
| 9015 |
/** @export */ Ib: _proc_exit,
|
| 9016 |
/** @export */ Hb: _random_get,
|
| 9017 |
+
/** @export */ Ka: _wgpuBufferGetSize,
|
| 9018 |
+
/** @export */ Ja: _wgpuBufferGetUsage,
|
| 9019 |
/** @export */ i: _wgpuCommandEncoderBeginComputePass,
|
| 9020 |
+
/** @export */ Ia: _wgpuCommandEncoderCopyBufferToBuffer,
|
| 9021 |
+
/** @export */ R: _wgpuCommandEncoderCopyTextureToBuffer,
|
| 9022 |
+
/** @export */ Ea: _wgpuCommandEncoderCopyTextureToTexture,
|
| 9023 |
/** @export */ c: _wgpuCommandEncoderFinish,
|
| 9024 |
+
/** @export */ Ha: _wgpuCommandEncoderResolveQuerySet,
|
| 9025 |
+
/** @export */ j: _wgpuComputePassEncoderDispatchWorkgroups,
|
| 9026 |
/** @export */ h: _wgpuComputePassEncoderEnd,
|
| 9027 |
+
/** @export */ Da: _wgpuComputePassEncoderSetBindGroup,
|
| 9028 |
+
/** @export */ Q: _wgpuComputePassEncoderSetPipeline,
|
| 9029 |
+
/** @export */ Ca: _wgpuDeviceCreateBindGroup,
|
| 9030 |
+
/** @export */ Ba: _wgpuDeviceCreateBindGroupLayout,
|
| 9031 |
/** @export */ b: _wgpuDeviceCreateCommandEncoder,
|
| 9032 |
+
/** @export */ Aa: _wgpuDeviceCreateComputePipeline,
|
| 9033 |
+
/** @export */ za: _wgpuDeviceCreatePipelineLayout,
|
| 9034 |
+
/** @export */ ya: _wgpuDeviceCreateQuerySet,
|
| 9035 |
+
/** @export */ xa: _wgpuDeviceCreateTexture,
|
| 9036 |
+
/** @export */ P: _wgpuDeviceGetAdapterInfo,
|
| 9037 |
+
/** @export */ wa: _wgpuDeviceGetLimits,
|
| 9038 |
+
/** @export */ va: _wgpuDeviceHasFeature,
|
| 9039 |
/** @export */ a: _wgpuQueueSubmit,
|
| 9040 |
+
/** @export */ Ga: _wgpuQueueWriteBuffer,
|
| 9041 |
+
/** @export */ ua: _wgpuQueueWriteTexture,
|
| 9042 |
+
/** @export */ ta: _wgpuTextureCreateView,
|
| 9043 |
+
/** @export */ O: _wgpuTextureDestroy,
|
| 9044 |
+
/** @export */ sa: _wgpuTextureGetDepthOrArrayLayers,
|
| 9045 |
+
/** @export */ ra: _wgpuTextureGetFormat,
|
| 9046 |
+
/** @export */ qa: _wgpuTextureGetHeight,
|
| 9047 |
+
/** @export */ pa: _wgpuTextureGetWidth
|
| 9048 |
};
|
| 9049 |
|
| 9050 |
// Argument name here must shadow the `wasmExports` global so
|
|
|
|
| 9056 |
var makeWrapper_pp = f => a0 => f(a0) >>> 0;
|
| 9057 |
var makeWrapper_ppp = f => (a0, a1) => f(a0, a1) >>> 0;
|
| 9058 |
var makeWrapper_p = f => () => f() >>> 0;
|
| 9059 |
+
wasmExports["nd"] = makeWrapper_pp(wasmExports["nd"]);
|
| 9060 |
+
wasmExports["ze"] = makeWrapper_pp(wasmExports["ze"]);
|
| 9061 |
+
wasmExports["kf"] = makeWrapper_ppp(wasmExports["kf"]);
|
| 9062 |
+
wasmExports["lf"] = makeWrapper_ppp(wasmExports["lf"]);
|
| 9063 |
+
wasmExports["of"] = makeWrapper_pp(wasmExports["of"]);
|
| 9064 |
+
wasmExports["pf"] = makeWrapper_p(wasmExports["pf"]);
|
| 9065 |
return wasmExports;
|
| 9066 |
}
|
| 9067 |
|
wasm/genai_wasm_internal.wasm
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:87a7324d0e26e1c1d880ba9a1c9864c8b17192c5d9db996cdf3bfaeb217f5483
|
| 3 |
+
size 27220715
|
wasm/genai_wasm_module_internal.js
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wasm/genai_wasm_module_internal.wasm
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2c741c991ab15c60485b4841c3ed4dc5e0265123ec905a99eab27148bf2a1c19
|
| 3 |
+
size 27220735
|