@balancy/wasm 1.0.13 → 1.0.15

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.
@@ -326,7 +326,7 @@
326
326
  }
327
327
  }
328
328
  var require$1 = module.createRequire((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('node/index.umd.js', document.baseURI).href)));
329
- var Module = function() {
329
+ var Balancy = function() {
330
330
  return function() {
331
331
  var _this = this;
332
332
  var moduleArg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -344,6 +344,7 @@
344
344
  "incrementExceptionRefcount",
345
345
  "decrementExceptionRefcount",
346
346
  "_memory",
347
+ "___indirect_function_table",
347
348
  "__Z14emscriptenInitRKN7Balancy11JSAppConfigE",
348
349
  "_balancyStop",
349
350
  "__Z21emscriptenUpdateTimerv",
@@ -486,7 +487,7 @@
486
487
  "_balancySoftPurchaseStoreItem",
487
488
  "_balancySoftPurchaseGameOffer",
488
489
  "_balancySoftPurchaseGameOfferGroup",
489
- "___indirect_function_table",
490
+ "_balancyWebViewRequest",
490
491
  "_main",
491
492
  "onRuntimeInitialized"
492
493
  ].forEach(function(prop) {
@@ -1210,9 +1211,16 @@
1210
1211
  ptr
1211
1212
  ].concat(_to_consumable_array(args)));
1212
1213
  };
1214
+ var wasmTableMirror = [];
1213
1215
  var wasmTable;
1214
1216
  var getWasmTableEntry = function(funcPtr) {
1215
- return wasmTable.get(funcPtr);
1217
+ var func = wasmTableMirror[funcPtr];
1218
+ if (!func) {
1219
+ if (funcPtr >= wasmTableMirror.length) wasmTableMirror.length = funcPtr + 1;
1220
+ wasmTableMirror[funcPtr] = func = wasmTable.get(funcPtr);
1221
+ }
1222
+ assert(wasmTable.get(funcPtr) == func, "JavaScript-side Wasm function table mirror is out of date!");
1223
+ return func;
1216
1224
  };
1217
1225
  var dynCall = function(sig, ptr) {
1218
1226
  var args = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
@@ -6222,10 +6230,8 @@
6222
6230
  }
6223
6231
  });
6224
6232
  };
6225
- var runtimeKeepaliveCounter = 0;
6226
- var __emscripten_runtime_keepalive_clear = function() {
6227
- noExitRuntime = false;
6228
- runtimeKeepaliveCounter = 0;
6233
+ var __emscripten_memcpy_js = function(dest, src, num) {
6234
+ return HEAPU8.copyWithin(dest, src, src + num);
6229
6235
  };
6230
6236
  var emval_returnValue = function(returnType, destructorsRef, handle) {
6231
6237
  var destructors = [];
@@ -6378,25 +6384,6 @@
6378
6384
  var yday = monthDaysCumulative[date.getMonth()] + date.getDate() - 1;
6379
6385
  return yday;
6380
6386
  };
6381
- function __localtime_js(time_low, time_high, tmPtr) {
6382
- var time = convertI32PairToI53Checked(time_low, time_high);
6383
- var date = new Date(time * 1e3);
6384
- HEAP32[tmPtr >> 2] = date.getSeconds();
6385
- HEAP32[tmPtr + 4 >> 2] = date.getMinutes();
6386
- HEAP32[tmPtr + 8 >> 2] = date.getHours();
6387
- HEAP32[tmPtr + 12 >> 2] = date.getDate();
6388
- HEAP32[tmPtr + 16 >> 2] = date.getMonth();
6389
- HEAP32[tmPtr + 20 >> 2] = date.getFullYear() - 1900;
6390
- HEAP32[tmPtr + 24 >> 2] = date.getDay();
6391
- var yday = ydayFromDate(date) | 0;
6392
- HEAP32[tmPtr + 28 >> 2] = yday;
6393
- HEAP32[tmPtr + 36 >> 2] = -(date.getTimezoneOffset() * 60);
6394
- var start = new Date(date.getFullYear(), 0, 1);
6395
- var summerOffset = new Date(date.getFullYear(), 6, 1).getTimezoneOffset();
6396
- var winterOffset = start.getTimezoneOffset();
6397
- var dst = (summerOffset != winterOffset && date.getTimezoneOffset() == Math.min(winterOffset, summerOffset)) | 0;
6398
- HEAP32[tmPtr + 32 >> 2] = dst;
6399
- }
6400
6387
  var __mktime_js = function __mktime_js(tmPtr) {
6401
6388
  var ret = function() {
6402
6389
  var date = new Date(HEAP32[tmPtr + 20 >> 2] + 1900, HEAP32[tmPtr + 16 >> 2], HEAP32[tmPtr + 12 >> 2], HEAP32[tmPtr + 8 >> 2], HEAP32[tmPtr + 4 >> 2], HEAP32[tmPtr >> 2], 0);
@@ -6430,85 +6417,6 @@
6430
6417
  }();
6431
6418
  return setTempRet0((tempDouble = ret, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? +Math.floor(tempDouble / 4294967296) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)), ret >>> 0;
6432
6419
  };
6433
- var timers = {};
6434
- var handleException = function(e) {
6435
- if (_instanceof(e, ExitStatus) || e == "unwind") {
6436
- return EXITSTATUS;
6437
- }
6438
- checkStackCookie();
6439
- if (_instanceof(e, WebAssembly.RuntimeError)) {
6440
- if (_emscripten_stack_get_current() <= 0) {
6441
- _$err("Stack overflow detected. You can try increasing -sSTACK_SIZE (currently set to 16777216)");
6442
- }
6443
- }
6444
- quit_(1, e);
6445
- };
6446
- var keepRuntimeAlive = function() {
6447
- return noExitRuntime || runtimeKeepaliveCounter > 0;
6448
- };
6449
- var _proc_exit = function(code) {
6450
- EXITSTATUS = code;
6451
- if (!keepRuntimeAlive()) {
6452
- var _Module_onExit;
6453
- (_Module_onExit = Module["onExit"]) === null || _Module_onExit === void 0 ? void 0 : _Module_onExit.call(Module, code);
6454
- ABORT = true;
6455
- }
6456
- quit_(code, new ExitStatus(code));
6457
- };
6458
- var exitJS = function(status, implicit) {
6459
- EXITSTATUS = status;
6460
- checkUnflushedContent();
6461
- if (keepRuntimeAlive() && !implicit) {
6462
- var msg = "program exited (with status: ".concat(status, "), but keepRuntimeAlive() is set (counter=").concat(runtimeKeepaliveCounter, ") due to an async operation, so halting execution but not exiting the runtime or preventing further async execution (you can use emscripten_force_exit, if you want to force a true shutdown)");
6463
- readyPromiseReject(msg);
6464
- _$err(msg);
6465
- }
6466
- _proc_exit(status);
6467
- };
6468
- var _exit = exitJS;
6469
- var maybeExit = function() {
6470
- if (!keepRuntimeAlive()) {
6471
- try {
6472
- _exit(EXITSTATUS);
6473
- } catch (e) {
6474
- handleException(e);
6475
- }
6476
- }
6477
- };
6478
- var callUserCallback = function(func) {
6479
- if (ABORT) {
6480
- _$err("user callback triggered after runtime exited or application aborted. Ignoring.");
6481
- return;
6482
- }
6483
- try {
6484
- func();
6485
- maybeExit();
6486
- } catch (e) {
6487
- handleException(e);
6488
- }
6489
- };
6490
- var _emscripten_get_now = function() {
6491
- return performance.now();
6492
- };
6493
- var __setitimer_js = function(which, timeout_ms) {
6494
- if (timers[which]) {
6495
- clearTimeout(timers[which].id);
6496
- delete timers[which];
6497
- }
6498
- if (!timeout_ms) return 0;
6499
- var id = setTimeout(function() {
6500
- assert(which in timers);
6501
- delete timers[which];
6502
- callUserCallback(function() {
6503
- return __emscripten_timeout(which, _emscripten_get_now());
6504
- });
6505
- }, timeout_ms);
6506
- timers[which] = {
6507
- id: id,
6508
- timeout_ms: timeout_ms
6509
- };
6510
- return 0;
6511
- };
6512
6420
  var __tzset_js = function(timezone, daylight, std_name, dst_name) {
6513
6421
  var currentYear = (new Date).getFullYear();
6514
6422
  var winter = new Date(currentYear, 0, 1);
@@ -6539,6 +6447,9 @@
6539
6447
  stringToUTF8(summerName, std_name, 17);
6540
6448
  }
6541
6449
  };
6450
+ var _emscripten_get_now = function() {
6451
+ return performance.now();
6452
+ };
6542
6453
  var _emscripten_date_now = function() {
6543
6454
  return Date.now();
6544
6455
  };
@@ -6755,40 +6666,49 @@
6755
6666
  return e.errno;
6756
6667
  }
6757
6668
  }
6758
- var writeArrayToMemory = function(array, buffer) {
6759
- assert(array.length >= 0, "writeArrayToMemory array must have a length (should be an array or typed array)");
6760
- HEAP8.set(array, buffer);
6669
+ function _random_get(buffer, size) {
6670
+ try {
6671
+ randomFill(HEAPU8.subarray(buffer, buffer + size));
6672
+ return 0;
6673
+ } catch (e) {
6674
+ if (typeof FS == "undefined" || !(e.name === "ErrnoError")) throw e;
6675
+ return e.errno;
6676
+ }
6677
+ }
6678
+ var runtimeKeepaliveCounter = 0;
6679
+ var keepRuntimeAlive = function() {
6680
+ return noExitRuntime || runtimeKeepaliveCounter > 0;
6761
6681
  };
6762
- var _uuid_generate = function(out) {
6763
- var uuid = null;
6764
- {
6765
- try {
6766
- var rb = require$1("crypto")["randomBytes"];
6767
- uuid = rb(16);
6768
- } catch (e) {}
6682
+ var _proc_exit = function(code) {
6683
+ EXITSTATUS = code;
6684
+ if (!keepRuntimeAlive()) {
6685
+ var _Module_onExit;
6686
+ (_Module_onExit = Module["onExit"]) === null || _Module_onExit === void 0 ? void 0 : _Module_onExit.call(Module, code);
6687
+ ABORT = true;
6769
6688
  }
6770
- if (!uuid) {
6771
- uuid = new Array(16);
6772
- var d = (new Date).getTime();
6773
- for(var i = 0; i < 16; i++){
6774
- var r = (d + Math.random() * 256) % 256 | 0;
6775
- d = d / 256 | 0;
6776
- uuid[i] = r;
6777
- }
6689
+ quit_(code, new ExitStatus(code));
6690
+ };
6691
+ var exitJS = function(status, implicit) {
6692
+ EXITSTATUS = status;
6693
+ checkUnflushedContent();
6694
+ if (keepRuntimeAlive() && !implicit) {
6695
+ var msg = "program exited (with status: ".concat(status, "), but keepRuntimeAlive() is set (counter=").concat(runtimeKeepaliveCounter, ") due to an async operation, so halting execution but not exiting the runtime or preventing further async execution (you can use emscripten_force_exit, if you want to force a true shutdown)");
6696
+ readyPromiseReject(msg);
6697
+ _$err(msg);
6778
6698
  }
6779
- uuid[6] = uuid[6] & 15 | 64;
6780
- uuid[8] = uuid[8] & 63 | 128;
6781
- writeArrayToMemory(uuid, out);
6699
+ _proc_exit(status);
6782
6700
  };
6783
- var _uuid_unparse = function(uu, out, upper) {
6784
- var i = 0;
6785
- var uuid = "xxxx-xx-xx-xx-xxxxxx".replace(/[x]/g, function(c) {
6786
- var r = upper ? HEAPU8[uu + i].toString(16).toUpperCase() : HEAPU8[uu + i].toString(16);
6787
- r = r.length === 1 ? "0" + r : r;
6788
- i++;
6789
- return r;
6790
- });
6791
- stringToUTF8(uuid, out, 37);
6701
+ var handleException = function(e) {
6702
+ if (_instanceof(e, ExitStatus) || e == "unwind") {
6703
+ return EXITSTATUS;
6704
+ }
6705
+ checkStackCookie();
6706
+ if (_instanceof(e, WebAssembly.RuntimeError)) {
6707
+ if (_emscripten_stack_get_current() <= 0) {
6708
+ _$err("Stack overflow detected. You can try increasing -sSTACK_SIZE (currently set to 16777216)");
6709
+ }
6710
+ }
6711
+ quit_(1, e);
6792
6712
  };
6793
6713
  var uleb128Encode = function(n, target) {
6794
6714
  assert(n < 16384);
@@ -6910,7 +6830,8 @@
6910
6830
  return wasmTable.length - 1;
6911
6831
  };
6912
6832
  var setWasmTableEntry = function(idx, func) {
6913
- return wasmTable.set(idx, func);
6833
+ wasmTable.set(idx, func);
6834
+ wasmTableMirror[idx] = wasmTable.get(idx);
6914
6835
  };
6915
6836
  var addFunction = function(func, sig) {
6916
6837
  assert(typeof func != "undefined");
@@ -6950,6 +6871,10 @@
6950
6871
  assert(func, "Cannot call unknown function " + ident + ", make sure it is exported");
6951
6872
  return func;
6952
6873
  };
6874
+ var writeArrayToMemory = function(array, buffer) {
6875
+ assert(array.length >= 0, "writeArrayToMemory array must have a length (should be an array or typed array)");
6876
+ HEAP8.set(array, buffer);
6877
+ };
6953
6878
  var stackAlloc = function(sz) {
6954
6879
  return __emscripten_stack_alloc(sz);
6955
6880
  };
@@ -7127,7 +7052,7 @@
7127
7052
  _embind_register_std_wstring: __embind_register_std_wstring,
7128
7053
  _embind_register_value_array: __embind_register_value_array,
7129
7054
  _embind_register_void: __embind_register_void,
7130
- _emscripten_runtime_keepalive_clear: __emscripten_runtime_keepalive_clear,
7055
+ _emscripten_memcpy_js: __emscripten_memcpy_js,
7131
7056
  _emval_as: __emval_as,
7132
7057
  _emval_call: __emval_call,
7133
7058
  _emval_decref: __emval_decref,
@@ -7138,9 +7063,7 @@
7138
7063
  _emval_run_destructors: __emval_run_destructors,
7139
7064
  _emval_take_value: __emval_take_value,
7140
7065
  _gmtime_js: __gmtime_js,
7141
- _localtime_js: __localtime_js,
7142
7066
  _mktime_js: __mktime_js,
7143
- _setitimer_js: __setitimer_js,
7144
7067
  _tzset_js: __tzset_js,
7145
7068
  clock_time_get: _clock_time_get,
7146
7069
  emscripten_resize_heap: _emscripten_resize_heap,
@@ -7151,8 +7074,9 @@
7151
7074
  fd_read: _fd_read,
7152
7075
  fd_seek: _fd_seek,
7153
7076
  fd_write: _fd_write,
7154
- invoke_dii: invoke_dii,
7155
- invoke_fii: invoke_fii,
7077
+ invoke_diii: invoke_diii,
7078
+ invoke_fiii: invoke_fiii,
7079
+ invoke_i: invoke_i,
7156
7080
  invoke_ii: invoke_ii,
7157
7081
  invoke_iii: invoke_iii,
7158
7082
  invoke_iiii: invoke_iiii,
@@ -7161,13 +7085,14 @@
7161
7085
  invoke_iiiiii: invoke_iiiiii,
7162
7086
  invoke_iiiiiii: invoke_iiiiiii,
7163
7087
  invoke_iiiiiiii: invoke_iiiiiiii,
7088
+ invoke_iiiiiiiiiii: invoke_iiiiiiiiiii,
7164
7089
  invoke_iiiiiiiiiiii: invoke_iiiiiiiiiiii,
7090
+ invoke_iiiiiiiiiiiii: invoke_iiiiiiiiiiiii,
7165
7091
  invoke_iiiiij: invoke_iiiiij,
7166
- invoke_iiiij: invoke_iiiij,
7167
- invoke_iiij: invoke_iiij,
7168
- invoke_iij: invoke_iij,
7092
+ invoke_iiji: invoke_iiji,
7169
7093
  invoke_j: invoke_j,
7170
7094
  invoke_jiii: invoke_jiii,
7095
+ invoke_jiiii: invoke_jiiii,
7171
7096
  invoke_v: invoke_v,
7172
7097
  invoke_vi: invoke_vi,
7173
7098
  invoke_vii: invoke_vii,
@@ -7179,16 +7104,12 @@
7179
7104
  invoke_viiiiiiiiii: invoke_viiiiiiiiii,
7180
7105
  invoke_viiiiiiiiiiiiiii: invoke_viiiiiiiiiiiiiii,
7181
7106
  js_fetch: js_fetch,
7182
- proc_exit: _proc_exit,
7183
- uuid_generate: _uuid_generate,
7184
- uuid_unparse: _uuid_unparse
7107
+ random_get: _random_get
7185
7108
  };
7186
7109
  var wasmExports;
7187
7110
  createWasm();
7188
- var ___getTypeName = createExportWrapper("__getTypeName", 1);
7189
7111
  var _main = Module["_main"] = createExportWrapper("main", 2);
7190
7112
  Module["__Z14emscriptenInitRKN7Balancy11JSAppConfigE"] = createExportWrapper("_Z14emscriptenInitRKN7Balancy11JSAppConfigE", 1);
7191
- var _free = Module["_free"] = createExportWrapper("free", 1);
7192
7113
  Module["_balancyStop"] = createExportWrapper("balancyStop", 0);
7193
7114
  Module["__Z21emscriptenUpdateTimerv"] = createExportWrapper("_Z21emscriptenUpdateTimerv", 0);
7194
7115
  Module["__Z25jsbalancyGetModelByUnnyIdNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE"] = createExportWrapper("_Z25jsbalancyGetModelByUnnyIdNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE", 1);
@@ -7263,6 +7184,8 @@
7263
7184
  Module["_balancyGetTimeOffset"] = createExportWrapper("balancyGetTimeOffset", 0);
7264
7185
  Module["_balancySetTimeOffset"] = createExportWrapper("balancySetTimeOffset", 1);
7265
7186
  var _malloc = Module["_malloc"] = createExportWrapper("malloc", 1);
7187
+ var ___getTypeName = createExportWrapper("__getTypeName", 1);
7188
+ var _free = Module["_free"] = createExportWrapper("free", 1);
7266
7189
  Module["_balancySetLogCallback"] = createExportWrapper("balancySetLogCallback", 1);
7267
7190
  Module["_balancySetInvokeInMainThreadCallback"] = createExportWrapper("balancySetInvokeInMainThreadCallback", 1);
7268
7191
  Module["_balancyInvokeMethodInMainThread"] = createExportWrapper("balancyInvokeMethodInMainThread", 1);
@@ -7330,8 +7253,8 @@
7330
7253
  Module["_balancySoftPurchaseStoreItem"] = createExportWrapper("balancySoftPurchaseStoreItem", 1);
7331
7254
  Module["_balancySoftPurchaseGameOffer"] = createExportWrapper("balancySoftPurchaseGameOffer", 1);
7332
7255
  Module["_balancySoftPurchaseGameOfferGroup"] = createExportWrapper("balancySoftPurchaseGameOfferGroup", 2);
7256
+ Module["_balancyWebViewRequest"] = createExportWrapper("balancyWebViewRequest", 1);
7333
7257
  var _fflush = createExportWrapper("fflush", 1);
7334
- var __emscripten_timeout = createExportWrapper("_emscripten_timeout", 2);
7335
7258
  var _strerror = createExportWrapper("strerror", 1);
7336
7259
  var _setThrew = createExportWrapper("setThrew", 2);
7337
7260
  var __emscripten_tempret_set = createExportWrapper("_emscripten_tempret_set", 1);
@@ -7355,79 +7278,81 @@
7355
7278
  var ___get_exception_message = createExportWrapper("__get_exception_message", 3);
7356
7279
  var ___cxa_can_catch = createExportWrapper("__cxa_can_catch", 3);
7357
7280
  var ___cxa_get_exception_ptr = createExportWrapper("__cxa_get_exception_ptr", 1);
7358
- var dynCall_iii = Module["dynCall_iii"] = createExportWrapper("dynCall_iii", 3);
7359
- var dynCall_vii = Module["dynCall_vii"] = createExportWrapper("dynCall_vii", 3);
7360
7281
  var dynCall_vi = Module["dynCall_vi"] = createExportWrapper("dynCall_vi", 2);
7361
- var dynCall_v = Module["dynCall_v"] = createExportWrapper("dynCall_v", 1);
7362
7282
  var dynCall_ii = Module["dynCall_ii"] = createExportWrapper("dynCall_ii", 2);
7363
- var dynCall_viiii = Module["dynCall_viiii"] = createExportWrapper("dynCall_viiii", 5);
7364
- var dynCall_viiiii = Module["dynCall_viiiii"] = createExportWrapper("dynCall_viiiii", 6);
7283
+ var dynCall_vii = Module["dynCall_vii"] = createExportWrapper("dynCall_vii", 3);
7284
+ var dynCall_v = Module["dynCall_v"] = createExportWrapper("dynCall_v", 1);
7285
+ var dynCall_iii = Module["dynCall_iii"] = createExportWrapper("dynCall_iii", 3);
7365
7286
  var dynCall_iiii = Module["dynCall_iiii"] = createExportWrapper("dynCall_iiii", 4);
7366
7287
  var dynCall_jiii = Module["dynCall_jiii"] = createExportWrapper("dynCall_jiii", 4);
7367
7288
  Module["dynCall_jii"] = createExportWrapper("dynCall_jii", 3);
7368
- Module["dynCall_fiii"] = createExportWrapper("dynCall_fiii", 4);
7369
- var dynCall_fii = Module["dynCall_fii"] = createExportWrapper("dynCall_fii", 3);
7370
- Module["dynCall_diii"] = createExportWrapper("dynCall_diii", 4);
7371
- var dynCall_dii = Module["dynCall_dii"] = createExportWrapper("dynCall_dii", 3);
7289
+ var dynCall_fiii = Module["dynCall_fiii"] = createExportWrapper("dynCall_fiii", 4);
7290
+ Module["dynCall_fii"] = createExportWrapper("dynCall_fii", 3);
7291
+ var dynCall_diii = Module["dynCall_diii"] = createExportWrapper("dynCall_diii", 4);
7292
+ Module["dynCall_dii"] = createExportWrapper("dynCall_dii", 3);
7372
7293
  var dynCall_viii = Module["dynCall_viii"] = createExportWrapper("dynCall_viii", 4);
7373
7294
  var dynCall_iiiii = Module["dynCall_iiiii"] = createExportWrapper("dynCall_iiiii", 5);
7295
+ var dynCall_viiii = Module["dynCall_viiii"] = createExportWrapper("dynCall_viiii", 5);
7374
7296
  Module["dynCall_viiij"] = createExportWrapper("dynCall_viiij", 6);
7375
7297
  Module["dynCall_viij"] = createExportWrapper("dynCall_viij", 5);
7298
+ Module["dynCall_viiif"] = createExportWrapper("dynCall_viiif", 5);
7376
7299
  Module["dynCall_viif"] = createExportWrapper("dynCall_viif", 4);
7377
7300
  Module["dynCall_viidi"] = createExportWrapper("dynCall_viidi", 5);
7378
7301
  Module["dynCall_vidi"] = createExportWrapper("dynCall_vidi", 4);
7379
- Module["dynCall_i"] = createExportWrapper("dynCall_i", 1);
7380
- Module["dynCall_viiif"] = createExportWrapper("dynCall_viiif", 5);
7302
+ var dynCall_i = Module["dynCall_i"] = createExportWrapper("dynCall_i", 1);
7303
+ var dynCall_viiiii = Module["dynCall_viiiii"] = createExportWrapper("dynCall_viiiii", 6);
7304
+ Module["dynCall_viiiiii"] = createExportWrapper("dynCall_viiiiii", 7);
7381
7305
  Module["dynCall_iiiif"] = createExportWrapper("dynCall_iiiif", 5);
7382
7306
  var dynCall_viid = Module["dynCall_viid"] = createExportWrapper("dynCall_viid", 4);
7383
7307
  Module["dynCall_viiid"] = createExportWrapper("dynCall_viiid", 5);
7384
7308
  Module["dynCall_iiiid"] = createExportWrapper("dynCall_iiiid", 5);
7385
- var dynCall_iiiij = Module["dynCall_iiiij"] = createExportWrapper("dynCall_iiiij", 6);
7386
- Module["dynCall_viiiiii"] = createExportWrapper("dynCall_viiiiii", 7);
7309
+ Module["dynCall_iiiij"] = createExportWrapper("dynCall_iiiij", 6);
7387
7310
  var dynCall_iiiiii = Module["dynCall_iiiiii"] = createExportWrapper("dynCall_iiiiii", 6);
7388
- var dynCall_iiiiid = Module["dynCall_iiiiid"] = createExportWrapper("dynCall_iiiiid", 6);
7389
- var dynCall_iiiiij = Module["dynCall_iiiiij"] = createExportWrapper("dynCall_iiiiij", 7);
7311
+ Module["dynCall_iidd"] = createExportWrapper("dynCall_iidd", 4);
7312
+ Module["dynCall_didd"] = createExportWrapper("dynCall_didd", 4);
7390
7313
  var dynCall_j = Module["dynCall_j"] = createExportWrapper("dynCall_j", 1);
7391
- var dynCall_iiij = Module["dynCall_iiij"] = createExportWrapper("dynCall_iiij", 5);
7392
7314
  Module["dynCall_iidiiii"] = createExportWrapper("dynCall_iidiiii", 7);
7393
7315
  Module["dynCall_jiji"] = createExportWrapper("dynCall_jiji", 5);
7394
- var dynCall_iij = Module["dynCall_iij"] = createExportWrapper("dynCall_iij", 4);
7316
+ var dynCall_iiiiij = Module["dynCall_iiiiij"] = createExportWrapper("dynCall_iiiiij", 7);
7317
+ var dynCall_iiiiid = Module["dynCall_iiiiid"] = createExportWrapper("dynCall_iiiiid", 6);
7318
+ Module["dynCall_viijii"] = createExportWrapper("dynCall_viijii", 7);
7395
7319
  var dynCall_iiiiiiii = Module["dynCall_iiiiiiii"] = createExportWrapper("dynCall_iiiiiiii", 8);
7320
+ var dynCall_iiiiiiiiiii = Module["dynCall_iiiiiiiiiii"] = createExportWrapper("dynCall_iiiiiiiiiii", 11);
7321
+ var dynCall_jiiii = Module["dynCall_jiiii"] = createExportWrapper("dynCall_jiiii", 5);
7322
+ var dynCall_iiiiiiiiiiiii = Module["dynCall_iiiiiiiiiiiii"] = createExportWrapper("dynCall_iiiiiiiiiiiii", 13);
7396
7323
  var dynCall_viiiiiii = Module["dynCall_viiiiiii"] = createExportWrapper("dynCall_viiiiiii", 8);
7397
7324
  var dynCall_iiiiiii = Module["dynCall_iiiiiii"] = createExportWrapper("dynCall_iiiiiii", 7);
7398
7325
  var dynCall_iiiiiiiiiiii = Module["dynCall_iiiiiiiiiiii"] = createExportWrapper("dynCall_iiiiiiiiiiii", 12);
7399
7326
  var dynCall_viiiiiiiiii = Module["dynCall_viiiiiiiiii"] = createExportWrapper("dynCall_viiiiiiiiii", 11);
7400
7327
  var dynCall_viiiiiiiiiiiiiii = Module["dynCall_viiiiiiiiiiiiiii"] = createExportWrapper("dynCall_viiiiiiiiiiiiiii", 16);
7401
- Module["dynCall_iidd"] = createExportWrapper("dynCall_iidd", 4);
7402
- Module["dynCall_didd"] = createExportWrapper("dynCall_didd", 4);
7403
- Module["dynCall_viijii"] = createExportWrapper("dynCall_viijii", 7);
7404
7328
  Module["dynCall_iiiiiiiii"] = createExportWrapper("dynCall_iiiiiiiii", 9);
7405
7329
  Module["dynCall_iiiiijj"] = createExportWrapper("dynCall_iiiiijj", 9);
7406
7330
  Module["dynCall_iiiiiijj"] = createExportWrapper("dynCall_iiiiiijj", 10);
7407
- function invoke_vii(index, a1, a2) {
7331
+ var dynCall_iiji = Module["dynCall_iiji"] = createExportWrapper("dynCall_iiji", 5);
7332
+ function invoke_iii(index, a1, a2) {
7408
7333
  var sp = stackSave();
7409
7334
  try {
7410
- dynCall_vii(index, a1, a2);
7335
+ return dynCall_iii(index, a1, a2);
7411
7336
  } catch (e) {
7412
7337
  stackRestore(sp);
7413
7338
  if (!_instanceof(e, EmscriptenEH)) throw e;
7414
7339
  _setThrew(1, 0);
7415
7340
  }
7416
7341
  }
7417
- function invoke_viiii(index, a1, a2, a3, a4) {
7342
+ function invoke_ii(index, a1) {
7418
7343
  var sp = stackSave();
7419
7344
  try {
7420
- dynCall_viiii(index, a1, a2, a3, a4);
7345
+ return dynCall_ii(index, a1);
7421
7346
  } catch (e) {
7422
7347
  stackRestore(sp);
7423
7348
  if (!_instanceof(e, EmscriptenEH)) throw e;
7424
7349
  _setThrew(1, 0);
7425
7350
  }
7426
7351
  }
7427
- function invoke_viii(index, a1, a2, a3) {
7352
+ function invoke_vii(index, a1, a2) {
7428
7353
  var sp = stackSave();
7429
7354
  try {
7430
- dynCall_viii(index, a1, a2, a3);
7355
+ dynCall_vii(index, a1, a2);
7431
7356
  } catch (e) {
7432
7357
  stackRestore(sp);
7433
7358
  if (!_instanceof(e, EmscriptenEH)) throw e;
@@ -7444,20 +7369,20 @@
7444
7369
  _setThrew(1, 0);
7445
7370
  }
7446
7371
  }
7447
- function invoke_iii(index, a1, a2) {
7372
+ function invoke_viiii(index, a1, a2, a3, a4) {
7448
7373
  var sp = stackSave();
7449
7374
  try {
7450
- return dynCall_iii(index, a1, a2);
7375
+ dynCall_viiii(index, a1, a2, a3, a4);
7451
7376
  } catch (e) {
7452
7377
  stackRestore(sp);
7453
7378
  if (!_instanceof(e, EmscriptenEH)) throw e;
7454
7379
  _setThrew(1, 0);
7455
7380
  }
7456
7381
  }
7457
- function invoke_iiiii(index, a1, a2, a3, a4) {
7382
+ function invoke_viii(index, a1, a2, a3) {
7458
7383
  var sp = stackSave();
7459
7384
  try {
7460
- return dynCall_iiiii(index, a1, a2, a3, a4);
7385
+ dynCall_viii(index, a1, a2, a3);
7461
7386
  } catch (e) {
7462
7387
  stackRestore(sp);
7463
7388
  if (!_instanceof(e, EmscriptenEH)) throw e;
@@ -7474,10 +7399,10 @@
7474
7399
  _setThrew(1, 0);
7475
7400
  }
7476
7401
  }
7477
- function invoke_ii(index, a1) {
7402
+ function invoke_iiiii(index, a1, a2, a3, a4) {
7478
7403
  var sp = stackSave();
7479
7404
  try {
7480
- return dynCall_ii(index, a1);
7405
+ return dynCall_iiiii(index, a1, a2, a3, a4);
7481
7406
  } catch (e) {
7482
7407
  stackRestore(sp);
7483
7408
  if (!_instanceof(e, EmscriptenEH)) throw e;
@@ -7504,6 +7429,26 @@
7504
7429
  _setThrew(1, 0);
7505
7430
  }
7506
7431
  }
7432
+ function invoke_viiiii(index, a1, a2, a3, a4, a5) {
7433
+ var sp = stackSave();
7434
+ try {
7435
+ dynCall_viiiii(index, a1, a2, a3, a4, a5);
7436
+ } catch (e) {
7437
+ stackRestore(sp);
7438
+ if (!_instanceof(e, EmscriptenEH)) throw e;
7439
+ _setThrew(1, 0);
7440
+ }
7441
+ }
7442
+ function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
7443
+ var sp = stackSave();
7444
+ try {
7445
+ return dynCall_iiiiiii(index, a1, a2, a3, a4, a5, a6);
7446
+ } catch (e) {
7447
+ stackRestore(sp);
7448
+ if (!_instanceof(e, EmscriptenEH)) throw e;
7449
+ _setThrew(1, 0);
7450
+ }
7451
+ }
7507
7452
  function invoke_iiiiid(index, a1, a2, a3, a4, a5) {
7508
7453
  var sp = stackSave();
7509
7454
  try {
@@ -7524,140 +7469,140 @@
7524
7469
  _setThrew(1, 0);
7525
7470
  }
7526
7471
  }
7527
- function invoke_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
7472
+ function invoke_iiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) {
7528
7473
  var sp = stackSave();
7529
7474
  try {
7530
- dynCall_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7);
7475
+ return dynCall_iiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
7531
7476
  } catch (e) {
7532
7477
  stackRestore(sp);
7533
7478
  if (!_instanceof(e, EmscriptenEH)) throw e;
7534
7479
  _setThrew(1, 0);
7535
7480
  }
7536
7481
  }
7537
- function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
7482
+ function invoke_iiiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) {
7538
7483
  var sp = stackSave();
7539
7484
  try {
7540
- return dynCall_iiiiiii(index, a1, a2, a3, a4, a5, a6);
7485
+ return dynCall_iiiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12);
7541
7486
  } catch (e) {
7542
7487
  stackRestore(sp);
7543
7488
  if (!_instanceof(e, EmscriptenEH)) throw e;
7544
7489
  _setThrew(1, 0);
7545
7490
  }
7546
7491
  }
7547
- function invoke_iiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) {
7492
+ function invoke_fiii(index, a1, a2, a3) {
7548
7493
  var sp = stackSave();
7549
7494
  try {
7550
- return dynCall_iiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
7495
+ return dynCall_fiii(index, a1, a2, a3);
7551
7496
  } catch (e) {
7552
7497
  stackRestore(sp);
7553
7498
  if (!_instanceof(e, EmscriptenEH)) throw e;
7554
7499
  _setThrew(1, 0);
7555
7500
  }
7556
7501
  }
7557
- function invoke_viiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) {
7502
+ function invoke_diii(index, a1, a2, a3) {
7558
7503
  var sp = stackSave();
7559
7504
  try {
7560
- dynCall_viiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
7505
+ return dynCall_diii(index, a1, a2, a3);
7561
7506
  } catch (e) {
7562
7507
  stackRestore(sp);
7563
7508
  if (!_instanceof(e, EmscriptenEH)) throw e;
7564
7509
  _setThrew(1, 0);
7565
7510
  }
7566
7511
  }
7567
- function invoke_viiiiiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15) {
7512
+ function invoke_i(index) {
7568
7513
  var sp = stackSave();
7569
7514
  try {
7570
- dynCall_viiiiiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15);
7515
+ return dynCall_i(index);
7571
7516
  } catch (e) {
7572
7517
  stackRestore(sp);
7573
7518
  if (!_instanceof(e, EmscriptenEH)) throw e;
7574
7519
  _setThrew(1, 0);
7575
7520
  }
7576
7521
  }
7577
- function invoke_viiiii(index, a1, a2, a3, a4, a5) {
7522
+ function invoke_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
7578
7523
  var sp = stackSave();
7579
7524
  try {
7580
- dynCall_viiiii(index, a1, a2, a3, a4, a5);
7525
+ dynCall_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7);
7581
7526
  } catch (e) {
7582
7527
  stackRestore(sp);
7583
7528
  if (!_instanceof(e, EmscriptenEH)) throw e;
7584
7529
  _setThrew(1, 0);
7585
7530
  }
7586
7531
  }
7587
- function invoke_fii(index, a1, a2) {
7532
+ function invoke_iiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) {
7588
7533
  var sp = stackSave();
7589
7534
  try {
7590
- return dynCall_fii(index, a1, a2);
7535
+ return dynCall_iiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
7591
7536
  } catch (e) {
7592
7537
  stackRestore(sp);
7593
7538
  if (!_instanceof(e, EmscriptenEH)) throw e;
7594
7539
  _setThrew(1, 0);
7595
7540
  }
7596
7541
  }
7597
- function invoke_dii(index, a1, a2) {
7542
+ function invoke_viiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) {
7598
7543
  var sp = stackSave();
7599
7544
  try {
7600
- return dynCall_dii(index, a1, a2);
7545
+ dynCall_viiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
7601
7546
  } catch (e) {
7602
7547
  stackRestore(sp);
7603
7548
  if (!_instanceof(e, EmscriptenEH)) throw e;
7604
7549
  _setThrew(1, 0);
7605
7550
  }
7606
7551
  }
7607
- function invoke_viid(index, a1, a2, a3) {
7552
+ function invoke_viiiiiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15) {
7608
7553
  var sp = stackSave();
7609
7554
  try {
7610
- dynCall_viid(index, a1, a2, a3);
7555
+ dynCall_viiiiiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15);
7611
7556
  } catch (e) {
7612
7557
  stackRestore(sp);
7613
7558
  if (!_instanceof(e, EmscriptenEH)) throw e;
7614
7559
  _setThrew(1, 0);
7615
7560
  }
7616
7561
  }
7617
- function invoke_j(index) {
7562
+ function invoke_viid(index, a1, a2, a3) {
7618
7563
  var sp = stackSave();
7619
7564
  try {
7620
- return dynCall_j(index);
7565
+ dynCall_viid(index, a1, a2, a3);
7621
7566
  } catch (e) {
7622
7567
  stackRestore(sp);
7623
7568
  if (!_instanceof(e, EmscriptenEH)) throw e;
7624
7569
  _setThrew(1, 0);
7625
7570
  }
7626
7571
  }
7627
- function invoke_iiij(index, a1, a2, a3, a4) {
7572
+ function invoke_j(index) {
7628
7573
  var sp = stackSave();
7629
7574
  try {
7630
- return dynCall_iiij(index, a1, a2, a3, a4);
7575
+ return dynCall_j(index);
7631
7576
  } catch (e) {
7632
7577
  stackRestore(sp);
7633
7578
  if (!_instanceof(e, EmscriptenEH)) throw e;
7634
7579
  _setThrew(1, 0);
7635
7580
  }
7636
7581
  }
7637
- function invoke_iiiij(index, a1, a2, a3, a4, a5) {
7582
+ function invoke_iiiiij(index, a1, a2, a3, a4, a5, a6) {
7638
7583
  var sp = stackSave();
7639
7584
  try {
7640
- return dynCall_iiiij(index, a1, a2, a3, a4, a5);
7585
+ return dynCall_iiiiij(index, a1, a2, a3, a4, a5, a6);
7641
7586
  } catch (e) {
7642
7587
  stackRestore(sp);
7643
7588
  if (!_instanceof(e, EmscriptenEH)) throw e;
7644
7589
  _setThrew(1, 0);
7645
7590
  }
7646
7591
  }
7647
- function invoke_iiiiij(index, a1, a2, a3, a4, a5, a6) {
7592
+ function invoke_jiiii(index, a1, a2, a3, a4) {
7648
7593
  var sp = stackSave();
7649
7594
  try {
7650
- return dynCall_iiiiij(index, a1, a2, a3, a4, a5, a6);
7595
+ return dynCall_jiiii(index, a1, a2, a3, a4);
7651
7596
  } catch (e) {
7652
7597
  stackRestore(sp);
7653
7598
  if (!_instanceof(e, EmscriptenEH)) throw e;
7654
7599
  _setThrew(1, 0);
7655
7600
  }
7656
7601
  }
7657
- function invoke_iij(index, a1, a2, a3) {
7602
+ function invoke_iiji(index, a1, a2, a3, a4) {
7658
7603
  var sp = stackSave();
7659
7604
  try {
7660
- return dynCall_iij(index, a1, a2, a3);
7605
+ return dynCall_iiji(index, a1, a2, a3, a4);
7661
7606
  } catch (e) {
7662
7607
  stackRestore(sp);
7663
7608
  if (!_instanceof(e, EmscriptenEH)) throw e;
@@ -7707,6 +7652,8 @@
7707
7652
  "autoResumeAudioContext",
7708
7653
  "runtimeKeepalivePush",
7709
7654
  "runtimeKeepalivePop",
7655
+ "callUserCallback",
7656
+ "maybeExit",
7710
7657
  "asmjsMangle",
7711
7658
  "HandleAllocator",
7712
7659
  "getNativeTypeSize",
@@ -7866,12 +7813,8 @@
7866
7813
  "getExecutableName",
7867
7814
  "dynCallLegacy",
7868
7815
  "getDynCaller",
7869
- "setWasmTableEntry",
7870
- "getWasmTableEntry",
7871
7816
  "handleException",
7872
7817
  "keepRuntimeAlive",
7873
- "callUserCallback",
7874
- "maybeExit",
7875
7818
  "asyncLoad",
7876
7819
  "alignMemory",
7877
7820
  "mmapAlloc",
@@ -8192,7 +8135,7 @@
8192
8135
  // @ts-ignore
8193
8136
  var initialize = function() {
8194
8137
  var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
8195
- return Module(options);
8138
+ return Balancy(options);
8196
8139
  };
8197
8140
 
8198
8141
  exports.initialize = initialize;