@mediapipe/tasks-vision 0.10.34 → 0.10.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -199,14 +199,17 @@ var EXITSTATUS;
199
199
  // include: runtime_stack_check.js
200
200
  // end include: runtime_stack_check.js
201
201
  // include: runtime_exceptions.js
202
+ // Base Emscripten EH error class
203
+ class EmscriptenEH {}
204
+
205
+ class EmscriptenSjLj extends EmscriptenEH {}
206
+
202
207
  // end include: runtime_exceptions.js
203
208
  // include: runtime_debug.js
204
209
  // end include: runtime_debug.js
205
210
  var readyPromiseResolve, readyPromiseReject;
206
211
 
207
212
  // 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
213
  var runtimeInitialized = false;
211
214
 
212
215
  function updateMemoryViews() {
@@ -258,9 +261,11 @@ function postRun() {
258
261
  callRuntimeCallbacks(onPostRuns);
259
262
  }
260
263
 
261
- /** @param {string|number=} what */ function abort(what) {
264
+ /**
265
+ * @param {string|number=} what
266
+ */ function abort(what) {
262
267
  Module["onAbort"]?.(what);
263
- what = "Aborted(" + what + ")";
268
+ what = `Aborted(${what})`;
264
269
  // TODO(sbc): Should we remove printing and leave it up to whoever
265
270
  // catches the exception?
266
271
  err(what);
@@ -931,6 +936,22 @@ var Browser = {
931
936
  }
932
937
  };
933
938
 
939
+ /** @type {!Int16Array} */ var HEAP16;
940
+
941
+ /** @type {!Int32Array} */ var HEAP32;
942
+
943
+ /** @type {!Int8Array} */ var HEAP8;
944
+
945
+ /** @type {!Float32Array} */ var HEAPF32;
946
+
947
+ /** @type {!Float64Array} */ var HEAPF64;
948
+
949
+ /** @type {!Uint16Array} */ var HEAPU16;
950
+
951
+ /** @type {!Uint32Array} */ var HEAPU32;
952
+
953
+ /** @type {!Uint8Array} */ var HEAPU8;
954
+
934
955
  var callRuntimeCallbacks = callbacks => {
935
956
  while (callbacks.length > 0) {
936
957
  // Pass the module as the first argument.
@@ -998,17 +1019,14 @@ class ExceptionInfo {
998
1019
  }
999
1020
  }
1000
1021
 
1001
- var exceptionLast = 0;
1002
-
1003
1022
  var uncaughtExceptionCount = 0;
1004
1023
 
1005
1024
  var ___cxa_throw = (ptr, type, destructor) => {
1006
1025
  var info = new ExceptionInfo(ptr);
1007
1026
  // Initialize ExceptionInfo content after it was allocated in __cxa_allocate_exception.
1008
1027
  info.init(type, destructor);
1009
- exceptionLast = ptr;
1010
1028
  uncaughtExceptionCount++;
1011
- throw exceptionLast;
1029
+ abort();
1012
1030
  };
1013
1031
 
1014
1032
  var PATH = {
@@ -1075,13 +1093,10 @@ var initRandomFill = () => {
1075
1093
  var nodeCrypto = require("node:crypto");
1076
1094
  return view => nodeCrypto.randomFillSync(view);
1077
1095
  }
1078
- return view => crypto.getRandomValues(view);
1096
+ return view => (crypto.getRandomValues(view), 0);
1079
1097
  };
1080
1098
 
1081
- var randomFill = view => {
1082
- // Lazily init on the first invocation.
1083
- (randomFill = initRandomFill())(view);
1084
- };
1099
+ var randomFill = view => (randomFill = initRandomFill())(view);
1085
1100
 
1086
1101
  var PATH_FS = {
1087
1102
  resolve: (...args) => {
@@ -1476,12 +1491,14 @@ var MEMFS = {
1476
1491
  } else if (FS.isFile(node.mode)) {
1477
1492
  node.node_ops = MEMFS.ops_table.file.node;
1478
1493
  node.stream_ops = MEMFS.ops_table.file.stream;
1494
+ // The actual number of bytes used in the typed array, as opposed to
1495
+ // contents.length which gives the whole capacity.
1479
1496
  node.usedBytes = 0;
1480
- // The actual number of bytes used in the typed array, as opposed to contents.length which gives the whole capacity.
1481
- // When the byte data of the file is populated, this will point to either a typed array, or a normal JS array. Typed arrays are preferred
1482
- // for performance, and used by default. However, typed arrays are not resizable like normal JS arrays are, so there is a small disk size
1483
- // penalty involved for appending file writes that continuously grow a file similar to std::vector capacity vs used -scheme.
1484
- node.contents = null;
1497
+ // The byte data of the file is stored in a typed array.
1498
+ // Note: typed arrays are not resizable like normal JS arrays are, so
1499
+ // there is a small penalty involved for appending file writes that
1500
+ // continuously grow a file similar to std::vector capacity vs used.
1501
+ node.contents = MEMFS.emptyFileContents ??= new Uint8Array(0);
1485
1502
  } else if (FS.isLink(node.mode)) {
1486
1503
  node.node_ops = MEMFS.ops_table.link.node;
1487
1504
  node.stream_ops = MEMFS.ops_table.link.stream;
@@ -1498,42 +1515,34 @@ var MEMFS = {
1498
1515
  return node;
1499
1516
  },
1500
1517
  getFileDataAsTypedArray(node) {
1501
- if (!node.contents) return new Uint8Array(0);
1502
- if (node.contents.subarray) return node.contents.subarray(0, node.usedBytes);
1503
- // Make sure to not return excess unused bytes.
1504
- return new Uint8Array(node.contents);
1518
+ return node.contents.subarray(0, node.usedBytes);
1505
1519
  },
1506
1520
  expandFileStorage(node, newCapacity) {
1507
- var prevCapacity = node.contents ? node.contents.length : 0;
1521
+ var prevCapacity = node.contents.length;
1508
1522
  if (prevCapacity >= newCapacity) return;
1509
1523
  // No need to expand, the storage was already large enough.
1510
- // Don't expand strictly to the given requested limit if it's only a very small increase, but instead geometrically grow capacity.
1511
- // For small filesizes (<1MB), perform size*2 geometric increase, but for large sizes, do a much more conservative size*1.125 increase to
1512
- // avoid overshooting the allocation cap by a very large margin.
1524
+ // Don't expand strictly to the given requested limit if it's only a very
1525
+ // small increase, but instead geometrically grow capacity.
1526
+ // For small filesizes (<1MB), perform size*2 geometric increase, but for
1527
+ // large sizes, do a much more conservative size*1.125 increase to avoid
1528
+ // overshooting the allocation cap by a very large margin.
1513
1529
  var CAPACITY_DOUBLING_MAX = 1024 * 1024;
1514
1530
  newCapacity = Math.max(newCapacity, (prevCapacity * (prevCapacity < CAPACITY_DOUBLING_MAX ? 2 : 1.125)) >>> 0);
1515
- if (prevCapacity != 0) newCapacity = Math.max(newCapacity, 256);
1531
+ if (prevCapacity) newCapacity = Math.max(newCapacity, 256);
1516
1532
  // At minimum allocate 256b for each file when expanding.
1517
- var oldContents = node.contents;
1533
+ var oldContents = MEMFS.getFileDataAsTypedArray(node);
1518
1534
  node.contents = new Uint8Array(newCapacity);
1519
1535
  // Allocate new storage.
1520
- if (node.usedBytes > 0) node.contents.set(oldContents.subarray(0, node.usedBytes), 0);
1536
+ node.contents.set(oldContents);
1521
1537
  },
1522
1538
  resizeFileStorage(node, newSize) {
1523
1539
  if (node.usedBytes == newSize) return;
1524
- if (newSize == 0) {
1525
- node.contents = null;
1526
- // Fully decommit when requesting a resize to zero.
1527
- node.usedBytes = 0;
1528
- } else {
1529
- var oldContents = node.contents;
1530
- node.contents = new Uint8Array(newSize);
1531
- // Allocate new storage.
1532
- if (oldContents) {
1533
- node.contents.set(oldContents.subarray(0, Math.min(newSize, node.usedBytes)));
1534
- }
1535
- node.usedBytes = newSize;
1536
- }
1540
+ var oldContents = node.contents;
1541
+ node.contents = new Uint8Array(newSize);
1542
+ // Allocate new storage.
1543
+ node.contents.set(oldContents.subarray(0, Math.min(newSize, node.usedBytes)));
1544
+ // Copy old data over to the new storage.
1545
+ node.usedBytes = newSize;
1537
1546
  },
1538
1547
  node_ops: {
1539
1548
  getattr(node) {
@@ -1638,12 +1647,7 @@ var MEMFS = {
1638
1647
  var contents = stream.node.contents;
1639
1648
  if (position >= stream.node.usedBytes) return 0;
1640
1649
  var size = Math.min(stream.node.usedBytes - position, length);
1641
- if (size > 8 && contents.subarray) {
1642
- // non-trivial, and typed array
1643
- buffer.set(contents.subarray(position, position + size), offset);
1644
- } else {
1645
- for (var i = 0; i < size; i++) buffer[offset + i] = contents[position + i];
1646
- }
1650
+ buffer.set(contents.subarray(position, position + size), offset);
1647
1651
  return size;
1648
1652
  },
1649
1653
  write(stream, buffer, offset, length, position, canOwn) {
@@ -1657,34 +1661,19 @@ var MEMFS = {
1657
1661
  if (!length) return 0;
1658
1662
  var node = stream.node;
1659
1663
  node.mtime = node.ctime = Date.now();
1660
- if (buffer.subarray && (!node.contents || node.contents.subarray)) {
1661
- // This write is from a typed array to a typed array?
1662
- if (canOwn) {
1663
- node.contents = buffer.subarray(offset, offset + length);
1664
- node.usedBytes = length;
1665
- return length;
1666
- } else if (node.usedBytes === 0 && position === 0) {
1667
- // 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.
1668
- node.contents = buffer.slice(offset, offset + length);
1669
- node.usedBytes = length;
1670
- return length;
1671
- } else if (position + length <= node.usedBytes) {
1672
- // Writing to an already allocated and used subrange of the file?
1673
- node.contents.set(buffer.subarray(offset, offset + length), position);
1674
- return length;
1675
- }
1676
- }
1677
- // Appending to an existing file and we need to reallocate, or source data did not come as a typed array.
1678
- MEMFS.expandFileStorage(node, position + length);
1679
- if (node.contents.subarray && buffer.subarray) {
1664
+ if (canOwn) {
1665
+ node.contents = buffer.subarray(offset, offset + length);
1666
+ node.usedBytes = length;
1667
+ } else if (node.usedBytes === 0 && position === 0) {
1668
+ // 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.
1669
+ node.contents = buffer.slice(offset, offset + length);
1670
+ node.usedBytes = length;
1671
+ } else {
1672
+ MEMFS.expandFileStorage(node, position + length);
1680
1673
  // Use typed array write which is available.
1681
1674
  node.contents.set(buffer.subarray(offset, offset + length), position);
1682
- } else {
1683
- for (var i = 0; i < length; i++) {
1684
- node.contents[position + i] = buffer[offset + i];
1685
- }
1675
+ node.usedBytes = Math.max(node.usedBytes, position + length);
1686
1676
  }
1687
- node.usedBytes = Math.max(node.usedBytes, position + length);
1688
1677
  return length;
1689
1678
  },
1690
1679
  llseek(stream, offset, whence) {
@@ -1709,7 +1698,7 @@ var MEMFS = {
1709
1698
  var allocated;
1710
1699
  var contents = stream.node.contents;
1711
1700
  // Only make a new copy when MAP_PRIVATE is specified.
1712
- if (!(flags & 2) && contents && contents.buffer === HEAP8.buffer) {
1701
+ if (!(flags & 2) && contents.buffer === HEAP8.buffer) {
1713
1702
  // We can't emulate MAP_SHARED when the file is not backed by the
1714
1703
  // buffer we're mapping to (e.g. the HEAP buffer).
1715
1704
  allocated = false;
@@ -1746,6 +1735,7 @@ var MEMFS = {
1746
1735
  };
1747
1736
 
1748
1737
  var FS_modeStringToFlags = str => {
1738
+ if (typeof str != "string") return str;
1749
1739
  var flagModes = {
1750
1740
  "r": 0,
1751
1741
  "r+": 2,
@@ -1761,6 +1751,16 @@ var FS_modeStringToFlags = str => {
1761
1751
  return flags;
1762
1752
  };
1763
1753
 
1754
+ var FS_fileDataToTypedArray = data => {
1755
+ if (typeof data == "string") {
1756
+ data = intArrayFromString(data, true);
1757
+ }
1758
+ if (!data.subarray) {
1759
+ data = new Uint8Array(data);
1760
+ }
1761
+ return data;
1762
+ };
1763
+
1764
1764
  var FS_getMode = (canRead, canWrite) => {
1765
1765
  var mode = 0;
1766
1766
  if (canRead) mode |= 292 | 73;
@@ -2737,7 +2737,7 @@ var FS = {
2737
2737
  if (path === "") {
2738
2738
  throw new FS.ErrnoError(44);
2739
2739
  }
2740
- flags = typeof flags == "string" ? FS_modeStringToFlags(flags) : flags;
2740
+ flags = FS_modeStringToFlags(flags);
2741
2741
  if ((flags & 64)) {
2742
2742
  mode = (mode & 4095) | 32768;
2743
2743
  } else {
@@ -2969,14 +2969,8 @@ var FS = {
2969
2969
  writeFile(path, data, opts = {}) {
2970
2970
  opts.flags = opts.flags || 577;
2971
2971
  var stream = FS.open(path, opts.flags, opts.mode);
2972
- if (typeof data == "string") {
2973
- data = new Uint8Array(intArrayFromString(data, true));
2974
- }
2975
- if (ArrayBuffer.isView(data)) {
2976
- FS.write(stream, data, 0, data.byteLength, undefined, opts.canOwn);
2977
- } else {
2978
- abort("Unsupported data type");
2979
- }
2972
+ data = FS_fileDataToTypedArray(data);
2973
+ FS.write(stream, data, 0, data.byteLength, undefined, opts.canOwn);
2980
2974
  FS.close(stream);
2981
2975
  },
2982
2976
  cwd: () => FS.currentPath,
@@ -3206,11 +3200,7 @@ var FS = {
3206
3200
  var mode = FS_getMode(canRead, canWrite);
3207
3201
  var node = FS.create(path, mode);
3208
3202
  if (data) {
3209
- if (typeof data == "string") {
3210
- var arr = new Array(data.length);
3211
- for (var i = 0, len = data.length; i < len; ++i) arr[i] = data.charCodeAt(i);
3212
- data = arr;
3213
- }
3203
+ data = FS_fileDataToTypedArray(data);
3214
3204
  // make sure we can write to the file
3215
3205
  FS.chmod(node, mode | 146);
3216
3206
  var stream = FS.open(node, 577);
@@ -3941,6 +3931,7 @@ var emval_handles = [ 0, 1, , 1, null, 1, true, 1, false, 1 ];
3941
3931
 
3942
3932
  var __emval_decref = handle => {
3943
3933
  if (handle > 9 && 0 === --emval_handles[handle + 1]) {
3934
+ var value = emval_handles[handle];
3944
3935
  emval_handles[handle] = undefined;
3945
3936
  emval_freelist.push(handle);
3946
3937
  }
@@ -5842,7 +5833,7 @@ var WebGPU = {
5842
5833
  ToneMappingMode: [ , "standard", "extended" ],
5843
5834
  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" ],
5844
5835
  VertexStepMode: [ , "vertex", "instance" ],
5845
- 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" ]
5836
+ 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" ]
5846
5837
  };
5847
5838
 
5848
5839
  var _emscripten_webgpu_get_device = () => {
@@ -7450,15 +7441,7 @@ function _mediapipe_webgl_tex_image_drawable(drawableHandle) {
7450
7441
  GLctx.texImage2D(GLctx.TEXTURE_2D, 0, GLctx.RGBA, GLctx.RGBA, GLctx.UNSIGNED_BYTE, drawable);
7451
7442
  }
7452
7443
 
7453
- function _random_get(buffer, size) {
7454
- try {
7455
- randomFill(HEAPU8.subarray(buffer, buffer + size));
7456
- return 0;
7457
- } catch (e) {
7458
- if (typeof FS == "undefined" || !(e.name === "ErrnoError")) throw e;
7459
- return e.errno;
7460
- }
7461
- }
7444
+ var _random_get = (buffer, size) => randomFill(HEAPU8.subarray(buffer, buffer + size));
7462
7445
 
7463
7446
  var _wgpuCommandEncoderBeginComputePass = (encoderPtr, descriptor) => {
7464
7447
  var desc;
@@ -8066,12 +8049,12 @@ Module["FS_createLazyFile"] = FS_createLazyFile;
8066
8049
  // End JS library exports
8067
8050
  // end include: postlibrary.js
8068
8051
  var ASM_CONSTS = {
8069
- 1484179: $0 => {
8052
+ 1462283: $0 => {
8070
8053
  const canvas = Emval.toValue($0);
8071
8054
  const context = canvas.getContext("webgpu");
8072
8055
  return WebGPU.importJsTexture(context.getCurrentTexture());
8073
8056
  },
8074
- 1484322: ($0, $1, $2, $3, $4) => {
8057
+ 1462426: ($0, $1, $2, $3, $4) => {
8075
8058
  const drawable = Emval.toValue($0);
8076
8059
  const device = WebGPU.getJsObject($1);
8077
8060
  const texture = WebGPU.getJsObject($2);
@@ -8083,7 +8066,7 @@ var ASM_CONSTS = {
8083
8066
  texture
8084
8067
  }, [ width, height ]);
8085
8068
  },
8086
- 1484581: ($0, $1, $2, $3) => {
8069
+ 1462685: ($0, $1, $2, $3) => {
8087
8070
  const sourceExtTex = Emval.toValue($0);
8088
8071
  const device = WebGPU.getJsObject($1);
8089
8072
  const sampler = WebGPU.getJsObject($2);
@@ -8100,29 +8083,29 @@ var ASM_CONSTS = {
8100
8083
  });
8101
8084
  return WebGPU.importJsBindGroup(bindGroup);
8102
8085
  },
8103
- 1484951: ($0, $1) => {
8086
+ 1463055: ($0, $1) => {
8104
8087
  const input = Emval.toValue($0);
8105
8088
  const output = Emval.toValue($1);
8106
8089
  const ctx = output.getContext("2d");
8107
8090
  ctx.drawImage(input, 0, 0, output.width, output.height);
8108
8091
  },
8109
- 1485116: ($0, $1) => {
8092
+ 1463220: ($0, $1) => {
8110
8093
  const inputArray = Emval.toValue($0);
8111
8094
  const output = Emval.toValue($1);
8112
8095
  const ctx = output.getContext("2d");
8113
8096
  const image_data = new ImageData(inputArray, output.width, output.height);
8114
8097
  ctx.putImageData(image_data, 0, 0);
8115
8098
  },
8116
- 1485340: ($0, $1) => {
8099
+ 1463444: ($0, $1) => {
8117
8100
  const input = Emval.toValue($0);
8118
8101
  const outputArray = Emval.toValue($1);
8119
8102
  const ctx = input.getContext("2d");
8120
8103
  const data = ctx.getImageData(0, 0, input.width, input.height);
8121
8104
  outputArray.set(data.data);
8122
8105
  },
8123
- 1485544: () => (typeof HTMLCanvasElement !== "undefined"),
8124
- 1485599: () => !!Module["preinitializedWebGPUDevice"],
8125
- 1485650: () => {
8106
+ 1463648: () => (typeof HTMLCanvasElement !== "undefined"),
8107
+ 1463703: () => !!Module["preinitializedWebGPUDevice"],
8108
+ 1463754: () => {
8126
8109
  specialHTMLTargets["#canvas"] = Module.canvas;
8127
8110
  }
8128
8111
  };
@@ -8373,7 +8356,7 @@ function custom_emscripten_dbgn(str, len) {
8373
8356
  }
8374
8357
 
8375
8358
  // Imports from the Wasm binary.
8376
- var _free, _malloc, _wgpuDeviceAddRef, _addBoundTextureAsImageToStream, _attachImageListener, _attachImageVectorListener, _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, _emwgpuOnCreateRenderPipelineCompleted, _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_ji, dynCall_jii, dynCall_iiiijij, dynCall_viiji, dynCall_viji, dynCall_iiiji, dynCall_jjj, dynCall_iiiijj, dynCall_viijj, dynCall_viiijjj, dynCall_vij, dynCall_viijii, dynCall_viiiji, dynCall_vijjj, dynCall_vj, dynCall_viij, dynCall_jiji, dynCall_iiiiij, dynCall_iiiiijj, dynCall_iiiiiijj, memory, _kVersionStampBuildChangelistStr, _kVersionStampCitcSnapshotStr, _kVersionStampCitcWorkspaceIdStr, _kVersionStampSourceUriStr, _kVersionStampBuildClientStr, _kVersionStampBuildClientMintStatusStr, _kVersionStampBuildCompilerStr, _kVersionStampBuildDateTimePstStr, _kVersionStampBuildDepotPathStr, _kVersionStampBuildIdStr, _kVersionStampBuildInfoStr, _kVersionStampBuildLabelStr, _kVersionStampBuildTargetStr, _kVersionStampBuildTimestampStr, _kVersionStampBuildToolStr, _kVersionStampG3BuildTargetStr, _kVersionStampVerifiableStr, _kVersionStampBuildFdoTypeStr, _kVersionStampBuildBaselineChangelistStr, _kVersionStampBuildLtoTypeStr, _kVersionStampBuildPropellerTypeStr, _kVersionStampBuildPghoTypeStr, _kVersionStampBuildUsernameStr, _kVersionStampBuildHostnameStr, _kVersionStampBuildDirectoryStr, _kVersionStampBuildChangelistInt, _kVersionStampCitcSnapshotInt, _kVersionStampBuildClientMintStatusInt, _kVersionStampBuildTimestampInt, _kVersionStampVerifiableInt, _kVersionStampBuildCoverageEnabledInt, _kVersionStampBuildBaselineChangelistInt, _kVersionStampPrecookedTimestampStr, _kVersionStampPrecookedClientInfoStr, __indirect_function_table, wasmMemory, wasmTable;
8359
+ var _free, _malloc, _wgpuDeviceAddRef, _addBoundTextureAsImageToStream, _attachImageListener, _attachImageVectorListener, _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, _emwgpuOnCreateRenderPipelineCompleted, _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_ji, dynCall_jii, dynCall_iiiijij, dynCall_viiji, dynCall_viji, dynCall_iiiji, dynCall_jjj, dynCall_iiiijj, dynCall_viijj, dynCall_viiijjj, dynCall_vij, dynCall_viiiji, dynCall_viijii, dynCall_vijjj, dynCall_vj, dynCall_viij, dynCall_jiji, dynCall_iiiiij, dynCall_iiiiijj, dynCall_iiiiiijj, memory, _kVersionStampBuildChangelistStr, _kVersionStampCitcSnapshotStr, _kVersionStampCitcWorkspaceIdStr, _kVersionStampSourceUriStr, _kVersionStampBuildClientStr, _kVersionStampBuildClientMintStatusStr, _kVersionStampBuildCompilerStr, _kVersionStampBuildDateTimePstStr, _kVersionStampBuildDepotPathStr, _kVersionStampBuildIdStr, _kVersionStampBuildInfoStr, _kVersionStampBuildLabelStr, _kVersionStampBuildTargetStr, _kVersionStampBuildTimestampStr, _kVersionStampBuildToolStr, _kVersionStampG3BuildTargetStr, _kVersionStampVerifiableStr, _kVersionStampBuildFdoTypeStr, _kVersionStampBuildBaselineChangelistStr, _kVersionStampBuildLtoTypeStr, _kVersionStampBuildPropellerTypeStr, _kVersionStampBuildPghoTypeStr, _kVersionStampBuildUsernameStr, _kVersionStampBuildHostnameStr, _kVersionStampBuildDirectoryStr, _kVersionStampBuildChangelistInt, _kVersionStampCitcSnapshotInt, _kVersionStampBuildClientMintStatusInt, _kVersionStampBuildTimestampInt, _kVersionStampVerifiableInt, _kVersionStampBuildCoverageEnabledInt, _kVersionStampBuildBaselineChangelistInt, _kVersionStampPrecookedTimestampStr, _kVersionStampPrecookedClientInfoStr, __indirect_function_table, wasmMemory, wasmTable;
8377
8360
 
8378
8361
  function assignWasmExports(wasmExports) {
8379
8362
  _free = Module["_free"] = wasmExports["Td"];
@@ -8496,8 +8479,8 @@ function assignWasmExports(wasmExports) {
8496
8479
  dynCall_viijj = wasmExports["dynCall_viijj"];
8497
8480
  dynCall_viiijjj = wasmExports["dynCall_viiijjj"];
8498
8481
  dynCall_vij = wasmExports["dynCall_vij"];
8499
- dynCall_viijii = wasmExports["dynCall_viijii"];
8500
8482
  dynCall_viiiji = wasmExports["dynCall_viiiji"];
8483
+ dynCall_viijii = wasmExports["dynCall_viijii"];
8501
8484
  dynCall_vijjj = wasmExports["dynCall_vijjj"];
8502
8485
  dynCall_vj = wasmExports["dynCall_vj"];
8503
8486
  dynCall_viij = wasmExports["dynCall_viij"];
@@ -8562,7 +8545,7 @@ var wasmImports = {
8562
8545
  /** @export */ Vc: JsOnSimpleListenerUint,
8563
8546
  /** @export */ Uc: JsOnUint8ArrayImageListener,
8564
8547
  /** @export */ Tc: JsOnUint8ArrayImageVectorListener,
8565
- /** @export */ O: JsOnVectorFinishedListener,
8548
+ /** @export */ P: JsOnVectorFinishedListener,
8566
8549
  /** @export */ Sc: JsOnVectorListenerBool,
8567
8550
  /** @export */ Rc: JsOnVectorListenerDouble,
8568
8551
  /** @export */ Qc: JsOnVectorListenerFloat,
@@ -8593,7 +8576,7 @@ var wasmImports = {
8593
8576
  /** @export */ xc: __embind_register_bool,
8594
8577
  /** @export */ wc: __embind_register_emval,
8595
8578
  /** @export */ jb: __embind_register_float,
8596
- /** @export */ I: __embind_register_integer,
8579
+ /** @export */ J: __embind_register_integer,
8597
8580
  /** @export */ q: __embind_register_memory_view,
8598
8581
  /** @export */ vc: __embind_register_std_string,
8599
8582
  /** @export */ Ma: __embind_register_std_wstring,
@@ -8633,7 +8616,7 @@ var wasmImports = {
8633
8616
  /** @export */ jc: _emscripten_webgl_get_context_attributes,
8634
8617
  /** @export */ ha: _emscripten_webgl_get_current_context,
8635
8618
  /** @export */ ic: _emscripten_webgl_make_context_current,
8636
- /** @export */ Q: _emscripten_webgpu_get_device,
8619
+ /** @export */ R: _emscripten_webgpu_get_device,
8637
8620
  /** @export */ hc: _emwgpuBufferDestroy,
8638
8621
  /** @export */ gc: _emwgpuBufferGetMappedRange,
8639
8622
  /** @export */ fc: _emwgpuBufferUnmap,
@@ -8662,15 +8645,15 @@ var wasmImports = {
8662
8645
  /** @export */ cb: _glBlendEquation,
8663
8646
  /** @export */ $b: _glBlendFunc,
8664
8647
  /** @export */ j: _glBufferData,
8665
- /** @export */ H: _glClear,
8666
- /** @export */ X: _glClearColor,
8648
+ /** @export */ I: _glClear,
8649
+ /** @export */ H: _glClearColor,
8667
8650
  /** @export */ da: _glClientWaitSync,
8668
8651
  /** @export */ ga: _glColorMask,
8669
8652
  /** @export */ bb: _glCompileShader,
8670
8653
  /** @export */ ab: _glCreateProgram,
8671
8654
  /** @export */ $a: _glCreateShader,
8672
8655
  /** @export */ o: _glDeleteBuffers,
8673
- /** @export */ P: _glDeleteFramebuffers,
8656
+ /** @export */ Q: _glDeleteFramebuffers,
8674
8657
  /** @export */ h: _glDeleteProgram,
8675
8658
  /** @export */ sa: _glDeleteShader,
8676
8659
  /** @export */ ra: _glDeleteSync,
@@ -8689,7 +8672,7 @@ var wasmImports = {
8689
8672
  /** @export */ C: _glFramebufferTexture2D,
8690
8673
  /** @export */ Ya: _glFramebufferTextureLayer,
8691
8674
  /** @export */ s: _glGenBuffers,
8692
- /** @export */ W: _glGenFramebuffers,
8675
+ /** @export */ X: _glGenFramebuffers,
8693
8676
  /** @export */ F: _glGenTextures,
8694
8677
  /** @export */ B: _glGenVertexArrays,
8695
8678
  /** @export */ Xa: _glGetAttribLocation,
@@ -8699,7 +8682,7 @@ var wasmImports = {
8699
8682
  /** @export */ Yb: _glGetProgramiv,
8700
8683
  /** @export */ Xb: _glGetShaderInfoLog,
8701
8684
  /** @export */ Wb: _glGetShaderiv,
8702
- /** @export */ N: _glGetString,
8685
+ /** @export */ O: _glGetString,
8703
8686
  /** @export */ Vb: _glGetUniformBlockIndex,
8704
8687
  /** @export */ d: _glGetUniformLocation,
8705
8688
  /** @export */ Ub: _glLineWidth,
@@ -8713,16 +8696,16 @@ var wasmImports = {
8713
8696
  /** @export */ f: _glTexParameteri,
8714
8697
  /** @export */ ma: _glTexStorage2D,
8715
8698
  /** @export */ Tb: _glTexStorage3D,
8716
- /** @export */ V: _glTexSubImage2D,
8699
+ /** @export */ W: _glTexSubImage2D,
8717
8700
  /** @export */ Sb: _glTexSubImage3D,
8718
- /** @export */ M: _glUniform1f,
8701
+ /** @export */ N: _glUniform1f,
8719
8702
  /** @export */ la: _glUniform1fv,
8720
8703
  /** @export */ e: _glUniform1i,
8721
- /** @export */ U: _glUniform2f,
8704
+ /** @export */ V: _glUniform2f,
8722
8705
  /** @export */ Rb: _glUniform2fv,
8723
8706
  /** @export */ Ia: _glUniform3f,
8724
8707
  /** @export */ Ta: _glUniform4f,
8725
- /** @export */ T: _glUniform4fv,
8708
+ /** @export */ U: _glUniform4fv,
8726
8709
  /** @export */ Qb: _glUniform4iv,
8727
8710
  /** @export */ Pb: _glUniformBlockBinding,
8728
8711
  /** @export */ Ob: _glUniformMatrix2fv,
@@ -8730,7 +8713,7 @@ var wasmImports = {
8730
8713
  /** @export */ Ha: _glUniformMatrix4fv,
8731
8714
  /** @export */ g: _glUseProgram,
8732
8715
  /** @export */ k: _glVertexAttribPointer,
8733
- /** @export */ S: _glViewport,
8716
+ /** @export */ T: _glViewport,
8734
8717
  /** @export */ Ga: hardware_concurrency,
8735
8718
  /** @export */ Bb: mediapipe_create_utility_canvas2d,
8736
8719
  /** @export */ Ab: _mediapipe_find_canvas_event_target,
@@ -8743,7 +8726,7 @@ var wasmImports = {
8743
8726
  /** @export */ wb: _wgpuCommandEncoderCopyBufferToTexture,
8744
8727
  /** @export */ vb: _wgpuCommandEncoderCopyTextureToBuffer,
8745
8728
  /** @export */ ub: _wgpuCommandEncoderCopyTextureToTexture,
8746
- /** @export */ L: _wgpuCommandEncoderFinish,
8729
+ /** @export */ M: _wgpuCommandEncoderFinish,
8747
8730
  /** @export */ Da: _wgpuComputePassEncoderDispatchWorkgroups,
8748
8731
  /** @export */ Ca: _wgpuComputePassEncoderEnd,
8749
8732
  /** @export */ Ba: _wgpuComputePassEncoderSetBindGroup,
@@ -8751,13 +8734,13 @@ var wasmImports = {
8751
8734
  /** @export */ za: _wgpuComputePipelineGetBindGroupLayout,
8752
8735
  /** @export */ ca: _wgpuDeviceCreateBindGroup,
8753
8736
  /** @export */ tb: _wgpuDeviceCreateBindGroupLayout,
8754
- /** @export */ K: _wgpuDeviceCreateCommandEncoder,
8737
+ /** @export */ L: _wgpuDeviceCreateCommandEncoder,
8755
8738
  /** @export */ sb: _wgpuDeviceCreateComputePipeline,
8756
8739
  /** @export */ rb: _wgpuDeviceCreatePipelineLayout,
8757
8740
  /** @export */ Sa: _wgpuDeviceCreateRenderPipeline,
8758
- /** @export */ R: _wgpuDeviceCreateSampler,
8741
+ /** @export */ S: _wgpuDeviceCreateSampler,
8759
8742
  /** @export */ ba: _wgpuDeviceCreateTexture,
8760
- /** @export */ J: _wgpuQueueSubmit,
8743
+ /** @export */ K: _wgpuQueueSubmit,
8761
8744
  /** @export */ ka: _wgpuQueueWriteBuffer,
8762
8745
  /** @export */ qb: _wgpuQueueWriteTexture,
8763
8746
  /** @export */ ya: _wgpuRenderPassEncoderDraw,
Binary file