@balancy/wasm 1.0.14 → 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.
package/dist/index.es.js CHANGED
@@ -318,7 +318,7 @@ function _ts_generator(thisArg, body) {
318
318
  };
319
319
  }
320
320
  }
321
- var Module = function() {
321
+ var Balancy = function() {
322
322
  var _scriptName = import.meta.url;
323
323
  return function() {
324
324
  var _this = this;
@@ -337,6 +337,7 @@ var Module = function() {
337
337
  "incrementExceptionRefcount",
338
338
  "decrementExceptionRefcount",
339
339
  "_memory",
340
+ "___indirect_function_table",
340
341
  "__Z14emscriptenInitRKN7Balancy11JSAppConfigE",
341
342
  "_balancyStop",
342
343
  "__Z21emscriptenUpdateTimerv",
@@ -479,7 +480,7 @@ var Module = function() {
479
480
  "_balancySoftPurchaseStoreItem",
480
481
  "_balancySoftPurchaseGameOffer",
481
482
  "_balancySoftPurchaseGameOfferGroup",
482
- "___indirect_function_table",
483
+ "_balancyWebViewRequest",
483
484
  "_main",
484
485
  "onRuntimeInitialized"
485
486
  ].forEach(function(prop) {
@@ -1197,9 +1198,16 @@ var Module = function() {
1197
1198
  ptr
1198
1199
  ].concat(_to_consumable_array(args)));
1199
1200
  };
1201
+ var wasmTableMirror = [];
1200
1202
  var wasmTable;
1201
1203
  var getWasmTableEntry = function(funcPtr) {
1202
- return wasmTable.get(funcPtr);
1204
+ var func = wasmTableMirror[funcPtr];
1205
+ if (!func) {
1206
+ if (funcPtr >= wasmTableMirror.length) wasmTableMirror.length = funcPtr + 1;
1207
+ wasmTableMirror[funcPtr] = func = wasmTable.get(funcPtr);
1208
+ }
1209
+ assert(wasmTable.get(funcPtr) == func, "JavaScript-side Wasm function table mirror is out of date!");
1210
+ return func;
1203
1211
  };
1204
1212
  var dynCall = function(sig, ptr) {
1205
1213
  var args = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
@@ -6184,10 +6192,8 @@ var Module = function() {
6184
6192
  }
6185
6193
  });
6186
6194
  };
6187
- var runtimeKeepaliveCounter = 0;
6188
- var __emscripten_runtime_keepalive_clear = function() {
6189
- noExitRuntime = false;
6190
- runtimeKeepaliveCounter = 0;
6195
+ var __emscripten_memcpy_js = function(dest, src, num) {
6196
+ return HEAPU8.copyWithin(dest, src, src + num);
6191
6197
  };
6192
6198
  var emval_returnValue = function(returnType, destructorsRef, handle) {
6193
6199
  var destructors = [];
@@ -6340,25 +6346,6 @@ var Module = function() {
6340
6346
  var yday = monthDaysCumulative[date.getMonth()] + date.getDate() - 1;
6341
6347
  return yday;
6342
6348
  };
6343
- function __localtime_js(time_low, time_high, tmPtr) {
6344
- var time = convertI32PairToI53Checked(time_low, time_high);
6345
- var date = new Date(time * 1e3);
6346
- HEAP32[tmPtr >> 2] = date.getSeconds();
6347
- HEAP32[tmPtr + 4 >> 2] = date.getMinutes();
6348
- HEAP32[tmPtr + 8 >> 2] = date.getHours();
6349
- HEAP32[tmPtr + 12 >> 2] = date.getDate();
6350
- HEAP32[tmPtr + 16 >> 2] = date.getMonth();
6351
- HEAP32[tmPtr + 20 >> 2] = date.getFullYear() - 1900;
6352
- HEAP32[tmPtr + 24 >> 2] = date.getDay();
6353
- var yday = ydayFromDate(date) | 0;
6354
- HEAP32[tmPtr + 28 >> 2] = yday;
6355
- HEAP32[tmPtr + 36 >> 2] = -(date.getTimezoneOffset() * 60);
6356
- var start = new Date(date.getFullYear(), 0, 1);
6357
- var summerOffset = new Date(date.getFullYear(), 6, 1).getTimezoneOffset();
6358
- var winterOffset = start.getTimezoneOffset();
6359
- var dst = (summerOffset != winterOffset && date.getTimezoneOffset() == Math.min(winterOffset, summerOffset)) | 0;
6360
- HEAP32[tmPtr + 32 >> 2] = dst;
6361
- }
6362
6349
  var __mktime_js = function __mktime_js(tmPtr) {
6363
6350
  var ret = function() {
6364
6351
  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);
@@ -6392,85 +6379,6 @@ var Module = function() {
6392
6379
  }();
6393
6380
  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;
6394
6381
  };
6395
- var timers = {};
6396
- var handleException = function(e) {
6397
- if (_instanceof(e, ExitStatus) || e == "unwind") {
6398
- return EXITSTATUS;
6399
- }
6400
- checkStackCookie();
6401
- if (_instanceof(e, WebAssembly.RuntimeError)) {
6402
- if (_emscripten_stack_get_current() <= 0) {
6403
- _$err("Stack overflow detected. You can try increasing -sSTACK_SIZE (currently set to 16777216)");
6404
- }
6405
- }
6406
- quit_(1, e);
6407
- };
6408
- var keepRuntimeAlive = function() {
6409
- return noExitRuntime || runtimeKeepaliveCounter > 0;
6410
- };
6411
- var _proc_exit = function(code) {
6412
- EXITSTATUS = code;
6413
- if (!keepRuntimeAlive()) {
6414
- var _Module_onExit;
6415
- (_Module_onExit = Module["onExit"]) === null || _Module_onExit === void 0 ? void 0 : _Module_onExit.call(Module, code);
6416
- ABORT = true;
6417
- }
6418
- quit_(code, new ExitStatus(code));
6419
- };
6420
- var exitJS = function(status, implicit) {
6421
- EXITSTATUS = status;
6422
- checkUnflushedContent();
6423
- if (keepRuntimeAlive() && !implicit) {
6424
- 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)");
6425
- readyPromiseReject(msg);
6426
- _$err(msg);
6427
- }
6428
- _proc_exit(status);
6429
- };
6430
- var _exit = exitJS;
6431
- var maybeExit = function() {
6432
- if (!keepRuntimeAlive()) {
6433
- try {
6434
- _exit(EXITSTATUS);
6435
- } catch (e) {
6436
- handleException(e);
6437
- }
6438
- }
6439
- };
6440
- var callUserCallback = function(func) {
6441
- if (ABORT) {
6442
- _$err("user callback triggered after runtime exited or application aborted. Ignoring.");
6443
- return;
6444
- }
6445
- try {
6446
- func();
6447
- maybeExit();
6448
- } catch (e) {
6449
- handleException(e);
6450
- }
6451
- };
6452
- var _emscripten_get_now = function() {
6453
- return performance.now();
6454
- };
6455
- var __setitimer_js = function(which, timeout_ms) {
6456
- if (timers[which]) {
6457
- clearTimeout(timers[which].id);
6458
- delete timers[which];
6459
- }
6460
- if (!timeout_ms) return 0;
6461
- var id = setTimeout(function() {
6462
- assert(which in timers);
6463
- delete timers[which];
6464
- callUserCallback(function() {
6465
- return __emscripten_timeout(which, _emscripten_get_now());
6466
- });
6467
- }, timeout_ms);
6468
- timers[which] = {
6469
- id: id,
6470
- timeout_ms: timeout_ms
6471
- };
6472
- return 0;
6473
- };
6474
6382
  var __tzset_js = function(timezone, daylight, std_name, dst_name) {
6475
6383
  var currentYear = (new Date).getFullYear();
6476
6384
  var winter = new Date(currentYear, 0, 1);
@@ -6501,6 +6409,9 @@ var Module = function() {
6501
6409
  stringToUTF8(summerName, std_name, 17);
6502
6410
  }
6503
6411
  };
6412
+ var _emscripten_get_now = function() {
6413
+ return performance.now();
6414
+ };
6504
6415
  var _emscripten_date_now = function() {
6505
6416
  return Date.now();
6506
6417
  };
@@ -6717,38 +6628,49 @@ var Module = function() {
6717
6628
  return e.errno;
6718
6629
  }
6719
6630
  }
6720
- var writeArrayToMemory = function(array, buffer) {
6721
- assert(array.length >= 0, "writeArrayToMemory array must have a length (should be an array or typed array)");
6722
- HEAP8.set(array, buffer);
6631
+ function _random_get(buffer, size) {
6632
+ try {
6633
+ randomFill(HEAPU8.subarray(buffer, buffer + size));
6634
+ return 0;
6635
+ } catch (e) {
6636
+ if (typeof FS == "undefined" || !(e.name === "ErrnoError")) throw e;
6637
+ return e.errno;
6638
+ }
6639
+ }
6640
+ var runtimeKeepaliveCounter = 0;
6641
+ var keepRuntimeAlive = function() {
6642
+ return noExitRuntime || runtimeKeepaliveCounter > 0;
6723
6643
  };
6724
- var _uuid_generate = function(out) {
6725
- var uuid = null;
6726
- if (typeof window.crypto != "undefined" && typeof window.crypto.getRandomValues != "undefined") {
6727
- uuid = new Uint8Array(16);
6728
- window.crypto.getRandomValues(uuid);
6644
+ var _proc_exit = function(code) {
6645
+ EXITSTATUS = code;
6646
+ if (!keepRuntimeAlive()) {
6647
+ var _Module_onExit;
6648
+ (_Module_onExit = Module["onExit"]) === null || _Module_onExit === void 0 ? void 0 : _Module_onExit.call(Module, code);
6649
+ ABORT = true;
6729
6650
  }
6730
- if (!uuid) {
6731
- uuid = new Array(16);
6732
- var d = (new Date).getTime();
6733
- for(var i = 0; i < 16; i++){
6734
- var r = (d + Math.random() * 256) % 256 | 0;
6735
- d = d / 256 | 0;
6736
- uuid[i] = r;
6737
- }
6651
+ quit_(code, new ExitStatus(code));
6652
+ };
6653
+ var exitJS = function(status, implicit) {
6654
+ EXITSTATUS = status;
6655
+ checkUnflushedContent();
6656
+ if (keepRuntimeAlive() && !implicit) {
6657
+ 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)");
6658
+ readyPromiseReject(msg);
6659
+ _$err(msg);
6738
6660
  }
6739
- uuid[6] = uuid[6] & 15 | 64;
6740
- uuid[8] = uuid[8] & 63 | 128;
6741
- writeArrayToMemory(uuid, out);
6661
+ _proc_exit(status);
6742
6662
  };
6743
- var _uuid_unparse = function(uu, out, upper) {
6744
- var i = 0;
6745
- var uuid = "xxxx-xx-xx-xx-xxxxxx".replace(/[x]/g, function(c) {
6746
- var r = upper ? HEAPU8[uu + i].toString(16).toUpperCase() : HEAPU8[uu + i].toString(16);
6747
- r = r.length === 1 ? "0" + r : r;
6748
- i++;
6749
- return r;
6750
- });
6751
- stringToUTF8(uuid, out, 37);
6663
+ var handleException = function(e) {
6664
+ if (_instanceof(e, ExitStatus) || e == "unwind") {
6665
+ return EXITSTATUS;
6666
+ }
6667
+ checkStackCookie();
6668
+ if (_instanceof(e, WebAssembly.RuntimeError)) {
6669
+ if (_emscripten_stack_get_current() <= 0) {
6670
+ _$err("Stack overflow detected. You can try increasing -sSTACK_SIZE (currently set to 16777216)");
6671
+ }
6672
+ }
6673
+ quit_(1, e);
6752
6674
  };
6753
6675
  var uleb128Encode = function(n, target) {
6754
6676
  assert(n < 16384);
@@ -6870,7 +6792,8 @@ var Module = function() {
6870
6792
  return wasmTable.length - 1;
6871
6793
  };
6872
6794
  var setWasmTableEntry = function(idx, func) {
6873
- return wasmTable.set(idx, func);
6795
+ wasmTable.set(idx, func);
6796
+ wasmTableMirror[idx] = wasmTable.get(idx);
6874
6797
  };
6875
6798
  var addFunction = function(func, sig) {
6876
6799
  assert(typeof func != "undefined");
@@ -6910,6 +6833,10 @@ var Module = function() {
6910
6833
  assert(func, "Cannot call unknown function " + ident + ", make sure it is exported");
6911
6834
  return func;
6912
6835
  };
6836
+ var writeArrayToMemory = function(array, buffer) {
6837
+ assert(array.length >= 0, "writeArrayToMemory array must have a length (should be an array or typed array)");
6838
+ HEAP8.set(array, buffer);
6839
+ };
6913
6840
  var stackAlloc = function(sz) {
6914
6841
  return __emscripten_stack_alloc(sz);
6915
6842
  };
@@ -7087,7 +7014,7 @@ var Module = function() {
7087
7014
  _embind_register_std_wstring: __embind_register_std_wstring,
7088
7015
  _embind_register_value_array: __embind_register_value_array,
7089
7016
  _embind_register_void: __embind_register_void,
7090
- _emscripten_runtime_keepalive_clear: __emscripten_runtime_keepalive_clear,
7017
+ _emscripten_memcpy_js: __emscripten_memcpy_js,
7091
7018
  _emval_as: __emval_as,
7092
7019
  _emval_call: __emval_call,
7093
7020
  _emval_decref: __emval_decref,
@@ -7098,9 +7025,7 @@ var Module = function() {
7098
7025
  _emval_run_destructors: __emval_run_destructors,
7099
7026
  _emval_take_value: __emval_take_value,
7100
7027
  _gmtime_js: __gmtime_js,
7101
- _localtime_js: __localtime_js,
7102
7028
  _mktime_js: __mktime_js,
7103
- _setitimer_js: __setitimer_js,
7104
7029
  _tzset_js: __tzset_js,
7105
7030
  clock_time_get: _clock_time_get,
7106
7031
  emscripten_resize_heap: _emscripten_resize_heap,
@@ -7111,8 +7036,9 @@ var Module = function() {
7111
7036
  fd_read: _fd_read,
7112
7037
  fd_seek: _fd_seek,
7113
7038
  fd_write: _fd_write,
7114
- invoke_dii: invoke_dii,
7115
- invoke_fii: invoke_fii,
7039
+ invoke_diii: invoke_diii,
7040
+ invoke_fiii: invoke_fiii,
7041
+ invoke_i: invoke_i,
7116
7042
  invoke_ii: invoke_ii,
7117
7043
  invoke_iii: invoke_iii,
7118
7044
  invoke_iiii: invoke_iiii,
@@ -7121,13 +7047,14 @@ var Module = function() {
7121
7047
  invoke_iiiiii: invoke_iiiiii,
7122
7048
  invoke_iiiiiii: invoke_iiiiiii,
7123
7049
  invoke_iiiiiiii: invoke_iiiiiiii,
7050
+ invoke_iiiiiiiiiii: invoke_iiiiiiiiiii,
7124
7051
  invoke_iiiiiiiiiiii: invoke_iiiiiiiiiiii,
7052
+ invoke_iiiiiiiiiiiii: invoke_iiiiiiiiiiiii,
7125
7053
  invoke_iiiiij: invoke_iiiiij,
7126
- invoke_iiiij: invoke_iiiij,
7127
- invoke_iiij: invoke_iiij,
7128
- invoke_iij: invoke_iij,
7054
+ invoke_iiji: invoke_iiji,
7129
7055
  invoke_j: invoke_j,
7130
7056
  invoke_jiii: invoke_jiii,
7057
+ invoke_jiiii: invoke_jiiii,
7131
7058
  invoke_v: invoke_v,
7132
7059
  invoke_vi: invoke_vi,
7133
7060
  invoke_vii: invoke_vii,
@@ -7139,16 +7066,12 @@ var Module = function() {
7139
7066
  invoke_viiiiiiiiii: invoke_viiiiiiiiii,
7140
7067
  invoke_viiiiiiiiiiiiiii: invoke_viiiiiiiiiiiiiii,
7141
7068
  js_fetch: js_fetch,
7142
- proc_exit: _proc_exit,
7143
- uuid_generate: _uuid_generate,
7144
- uuid_unparse: _uuid_unparse
7069
+ random_get: _random_get
7145
7070
  };
7146
7071
  var wasmExports;
7147
7072
  createWasm();
7148
- var ___getTypeName = createExportWrapper("__getTypeName", 1);
7149
7073
  var _main = Module["_main"] = createExportWrapper("main", 2);
7150
7074
  Module["__Z14emscriptenInitRKN7Balancy11JSAppConfigE"] = createExportWrapper("_Z14emscriptenInitRKN7Balancy11JSAppConfigE", 1);
7151
- var _free = Module["_free"] = createExportWrapper("free", 1);
7152
7075
  Module["_balancyStop"] = createExportWrapper("balancyStop", 0);
7153
7076
  Module["__Z21emscriptenUpdateTimerv"] = createExportWrapper("_Z21emscriptenUpdateTimerv", 0);
7154
7077
  Module["__Z25jsbalancyGetModelByUnnyIdNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE"] = createExportWrapper("_Z25jsbalancyGetModelByUnnyIdNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE", 1);
@@ -7223,6 +7146,8 @@ var Module = function() {
7223
7146
  Module["_balancyGetTimeOffset"] = createExportWrapper("balancyGetTimeOffset", 0);
7224
7147
  Module["_balancySetTimeOffset"] = createExportWrapper("balancySetTimeOffset", 1);
7225
7148
  var _malloc = Module["_malloc"] = createExportWrapper("malloc", 1);
7149
+ var ___getTypeName = createExportWrapper("__getTypeName", 1);
7150
+ var _free = Module["_free"] = createExportWrapper("free", 1);
7226
7151
  Module["_balancySetLogCallback"] = createExportWrapper("balancySetLogCallback", 1);
7227
7152
  Module["_balancySetInvokeInMainThreadCallback"] = createExportWrapper("balancySetInvokeInMainThreadCallback", 1);
7228
7153
  Module["_balancyInvokeMethodInMainThread"] = createExportWrapper("balancyInvokeMethodInMainThread", 1);
@@ -7290,8 +7215,8 @@ var Module = function() {
7290
7215
  Module["_balancySoftPurchaseStoreItem"] = createExportWrapper("balancySoftPurchaseStoreItem", 1);
7291
7216
  Module["_balancySoftPurchaseGameOffer"] = createExportWrapper("balancySoftPurchaseGameOffer", 1);
7292
7217
  Module["_balancySoftPurchaseGameOfferGroup"] = createExportWrapper("balancySoftPurchaseGameOfferGroup", 2);
7218
+ Module["_balancyWebViewRequest"] = createExportWrapper("balancyWebViewRequest", 1);
7293
7219
  var _fflush = createExportWrapper("fflush", 1);
7294
- var __emscripten_timeout = createExportWrapper("_emscripten_timeout", 2);
7295
7220
  var _strerror = createExportWrapper("strerror", 1);
7296
7221
  var _setThrew = createExportWrapper("setThrew", 2);
7297
7222
  var __emscripten_tempret_set = createExportWrapper("_emscripten_tempret_set", 1);
@@ -7315,79 +7240,81 @@ var Module = function() {
7315
7240
  var ___get_exception_message = createExportWrapper("__get_exception_message", 3);
7316
7241
  var ___cxa_can_catch = createExportWrapper("__cxa_can_catch", 3);
7317
7242
  var ___cxa_get_exception_ptr = createExportWrapper("__cxa_get_exception_ptr", 1);
7318
- var dynCall_iii = Module["dynCall_iii"] = createExportWrapper("dynCall_iii", 3);
7319
- var dynCall_vii = Module["dynCall_vii"] = createExportWrapper("dynCall_vii", 3);
7320
7243
  var dynCall_vi = Module["dynCall_vi"] = createExportWrapper("dynCall_vi", 2);
7321
- var dynCall_v = Module["dynCall_v"] = createExportWrapper("dynCall_v", 1);
7322
7244
  var dynCall_ii = Module["dynCall_ii"] = createExportWrapper("dynCall_ii", 2);
7323
- var dynCall_viiii = Module["dynCall_viiii"] = createExportWrapper("dynCall_viiii", 5);
7324
- var dynCall_viiiii = Module["dynCall_viiiii"] = createExportWrapper("dynCall_viiiii", 6);
7245
+ var dynCall_vii = Module["dynCall_vii"] = createExportWrapper("dynCall_vii", 3);
7246
+ var dynCall_v = Module["dynCall_v"] = createExportWrapper("dynCall_v", 1);
7247
+ var dynCall_iii = Module["dynCall_iii"] = createExportWrapper("dynCall_iii", 3);
7325
7248
  var dynCall_iiii = Module["dynCall_iiii"] = createExportWrapper("dynCall_iiii", 4);
7326
7249
  var dynCall_jiii = Module["dynCall_jiii"] = createExportWrapper("dynCall_jiii", 4);
7327
7250
  Module["dynCall_jii"] = createExportWrapper("dynCall_jii", 3);
7328
- Module["dynCall_fiii"] = createExportWrapper("dynCall_fiii", 4);
7329
- var dynCall_fii = Module["dynCall_fii"] = createExportWrapper("dynCall_fii", 3);
7330
- Module["dynCall_diii"] = createExportWrapper("dynCall_diii", 4);
7331
- var dynCall_dii = Module["dynCall_dii"] = createExportWrapper("dynCall_dii", 3);
7251
+ var dynCall_fiii = Module["dynCall_fiii"] = createExportWrapper("dynCall_fiii", 4);
7252
+ Module["dynCall_fii"] = createExportWrapper("dynCall_fii", 3);
7253
+ var dynCall_diii = Module["dynCall_diii"] = createExportWrapper("dynCall_diii", 4);
7254
+ Module["dynCall_dii"] = createExportWrapper("dynCall_dii", 3);
7332
7255
  var dynCall_viii = Module["dynCall_viii"] = createExportWrapper("dynCall_viii", 4);
7333
7256
  var dynCall_iiiii = Module["dynCall_iiiii"] = createExportWrapper("dynCall_iiiii", 5);
7257
+ var dynCall_viiii = Module["dynCall_viiii"] = createExportWrapper("dynCall_viiii", 5);
7334
7258
  Module["dynCall_viiij"] = createExportWrapper("dynCall_viiij", 6);
7335
7259
  Module["dynCall_viij"] = createExportWrapper("dynCall_viij", 5);
7260
+ Module["dynCall_viiif"] = createExportWrapper("dynCall_viiif", 5);
7336
7261
  Module["dynCall_viif"] = createExportWrapper("dynCall_viif", 4);
7337
7262
  Module["dynCall_viidi"] = createExportWrapper("dynCall_viidi", 5);
7338
7263
  Module["dynCall_vidi"] = createExportWrapper("dynCall_vidi", 4);
7339
- Module["dynCall_i"] = createExportWrapper("dynCall_i", 1);
7340
- Module["dynCall_viiif"] = createExportWrapper("dynCall_viiif", 5);
7264
+ var dynCall_i = Module["dynCall_i"] = createExportWrapper("dynCall_i", 1);
7265
+ var dynCall_viiiii = Module["dynCall_viiiii"] = createExportWrapper("dynCall_viiiii", 6);
7266
+ Module["dynCall_viiiiii"] = createExportWrapper("dynCall_viiiiii", 7);
7341
7267
  Module["dynCall_iiiif"] = createExportWrapper("dynCall_iiiif", 5);
7342
7268
  var dynCall_viid = Module["dynCall_viid"] = createExportWrapper("dynCall_viid", 4);
7343
7269
  Module["dynCall_viiid"] = createExportWrapper("dynCall_viiid", 5);
7344
7270
  Module["dynCall_iiiid"] = createExportWrapper("dynCall_iiiid", 5);
7345
- var dynCall_iiiij = Module["dynCall_iiiij"] = createExportWrapper("dynCall_iiiij", 6);
7346
- Module["dynCall_viiiiii"] = createExportWrapper("dynCall_viiiiii", 7);
7271
+ Module["dynCall_iiiij"] = createExportWrapper("dynCall_iiiij", 6);
7347
7272
  var dynCall_iiiiii = Module["dynCall_iiiiii"] = createExportWrapper("dynCall_iiiiii", 6);
7348
- var dynCall_iiiiid = Module["dynCall_iiiiid"] = createExportWrapper("dynCall_iiiiid", 6);
7349
- var dynCall_iiiiij = Module["dynCall_iiiiij"] = createExportWrapper("dynCall_iiiiij", 7);
7273
+ Module["dynCall_iidd"] = createExportWrapper("dynCall_iidd", 4);
7274
+ Module["dynCall_didd"] = createExportWrapper("dynCall_didd", 4);
7350
7275
  var dynCall_j = Module["dynCall_j"] = createExportWrapper("dynCall_j", 1);
7351
- var dynCall_iiij = Module["dynCall_iiij"] = createExportWrapper("dynCall_iiij", 5);
7352
7276
  Module["dynCall_iidiiii"] = createExportWrapper("dynCall_iidiiii", 7);
7353
7277
  Module["dynCall_jiji"] = createExportWrapper("dynCall_jiji", 5);
7354
- var dynCall_iij = Module["dynCall_iij"] = createExportWrapper("dynCall_iij", 4);
7278
+ var dynCall_iiiiij = Module["dynCall_iiiiij"] = createExportWrapper("dynCall_iiiiij", 7);
7279
+ var dynCall_iiiiid = Module["dynCall_iiiiid"] = createExportWrapper("dynCall_iiiiid", 6);
7280
+ Module["dynCall_viijii"] = createExportWrapper("dynCall_viijii", 7);
7355
7281
  var dynCall_iiiiiiii = Module["dynCall_iiiiiiii"] = createExportWrapper("dynCall_iiiiiiii", 8);
7282
+ var dynCall_iiiiiiiiiii = Module["dynCall_iiiiiiiiiii"] = createExportWrapper("dynCall_iiiiiiiiiii", 11);
7283
+ var dynCall_jiiii = Module["dynCall_jiiii"] = createExportWrapper("dynCall_jiiii", 5);
7284
+ var dynCall_iiiiiiiiiiiii = Module["dynCall_iiiiiiiiiiiii"] = createExportWrapper("dynCall_iiiiiiiiiiiii", 13);
7356
7285
  var dynCall_viiiiiii = Module["dynCall_viiiiiii"] = createExportWrapper("dynCall_viiiiiii", 8);
7357
7286
  var dynCall_iiiiiii = Module["dynCall_iiiiiii"] = createExportWrapper("dynCall_iiiiiii", 7);
7358
7287
  var dynCall_iiiiiiiiiiii = Module["dynCall_iiiiiiiiiiii"] = createExportWrapper("dynCall_iiiiiiiiiiii", 12);
7359
7288
  var dynCall_viiiiiiiiii = Module["dynCall_viiiiiiiiii"] = createExportWrapper("dynCall_viiiiiiiiii", 11);
7360
7289
  var dynCall_viiiiiiiiiiiiiii = Module["dynCall_viiiiiiiiiiiiiii"] = createExportWrapper("dynCall_viiiiiiiiiiiiiii", 16);
7361
- Module["dynCall_iidd"] = createExportWrapper("dynCall_iidd", 4);
7362
- Module["dynCall_didd"] = createExportWrapper("dynCall_didd", 4);
7363
- Module["dynCall_viijii"] = createExportWrapper("dynCall_viijii", 7);
7364
7290
  Module["dynCall_iiiiiiiii"] = createExportWrapper("dynCall_iiiiiiiii", 9);
7365
7291
  Module["dynCall_iiiiijj"] = createExportWrapper("dynCall_iiiiijj", 9);
7366
7292
  Module["dynCall_iiiiiijj"] = createExportWrapper("dynCall_iiiiiijj", 10);
7367
- function invoke_vii(index, a1, a2) {
7293
+ var dynCall_iiji = Module["dynCall_iiji"] = createExportWrapper("dynCall_iiji", 5);
7294
+ function invoke_iii(index, a1, a2) {
7368
7295
  var sp = stackSave();
7369
7296
  try {
7370
- dynCall_vii(index, a1, a2);
7297
+ return dynCall_iii(index, a1, a2);
7371
7298
  } catch (e) {
7372
7299
  stackRestore(sp);
7373
7300
  if (!_instanceof(e, EmscriptenEH)) throw e;
7374
7301
  _setThrew(1, 0);
7375
7302
  }
7376
7303
  }
7377
- function invoke_viiii(index, a1, a2, a3, a4) {
7304
+ function invoke_ii(index, a1) {
7378
7305
  var sp = stackSave();
7379
7306
  try {
7380
- dynCall_viiii(index, a1, a2, a3, a4);
7307
+ return dynCall_ii(index, a1);
7381
7308
  } catch (e) {
7382
7309
  stackRestore(sp);
7383
7310
  if (!_instanceof(e, EmscriptenEH)) throw e;
7384
7311
  _setThrew(1, 0);
7385
7312
  }
7386
7313
  }
7387
- function invoke_viii(index, a1, a2, a3) {
7314
+ function invoke_vii(index, a1, a2) {
7388
7315
  var sp = stackSave();
7389
7316
  try {
7390
- dynCall_viii(index, a1, a2, a3);
7317
+ dynCall_vii(index, a1, a2);
7391
7318
  } catch (e) {
7392
7319
  stackRestore(sp);
7393
7320
  if (!_instanceof(e, EmscriptenEH)) throw e;
@@ -7404,20 +7331,20 @@ var Module = function() {
7404
7331
  _setThrew(1, 0);
7405
7332
  }
7406
7333
  }
7407
- function invoke_iii(index, a1, a2) {
7334
+ function invoke_viiii(index, a1, a2, a3, a4) {
7408
7335
  var sp = stackSave();
7409
7336
  try {
7410
- return dynCall_iii(index, a1, a2);
7337
+ dynCall_viiii(index, a1, a2, a3, a4);
7411
7338
  } catch (e) {
7412
7339
  stackRestore(sp);
7413
7340
  if (!_instanceof(e, EmscriptenEH)) throw e;
7414
7341
  _setThrew(1, 0);
7415
7342
  }
7416
7343
  }
7417
- function invoke_iiiii(index, a1, a2, a3, a4) {
7344
+ function invoke_viii(index, a1, a2, a3) {
7418
7345
  var sp = stackSave();
7419
7346
  try {
7420
- return dynCall_iiiii(index, a1, a2, a3, a4);
7347
+ dynCall_viii(index, a1, a2, a3);
7421
7348
  } catch (e) {
7422
7349
  stackRestore(sp);
7423
7350
  if (!_instanceof(e, EmscriptenEH)) throw e;
@@ -7434,10 +7361,10 @@ var Module = function() {
7434
7361
  _setThrew(1, 0);
7435
7362
  }
7436
7363
  }
7437
- function invoke_ii(index, a1) {
7364
+ function invoke_iiiii(index, a1, a2, a3, a4) {
7438
7365
  var sp = stackSave();
7439
7366
  try {
7440
- return dynCall_ii(index, a1);
7367
+ return dynCall_iiiii(index, a1, a2, a3, a4);
7441
7368
  } catch (e) {
7442
7369
  stackRestore(sp);
7443
7370
  if (!_instanceof(e, EmscriptenEH)) throw e;
@@ -7464,6 +7391,26 @@ var Module = function() {
7464
7391
  _setThrew(1, 0);
7465
7392
  }
7466
7393
  }
7394
+ function invoke_viiiii(index, a1, a2, a3, a4, a5) {
7395
+ var sp = stackSave();
7396
+ try {
7397
+ dynCall_viiiii(index, a1, a2, a3, a4, a5);
7398
+ } catch (e) {
7399
+ stackRestore(sp);
7400
+ if (!_instanceof(e, EmscriptenEH)) throw e;
7401
+ _setThrew(1, 0);
7402
+ }
7403
+ }
7404
+ function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
7405
+ var sp = stackSave();
7406
+ try {
7407
+ return dynCall_iiiiiii(index, a1, a2, a3, a4, a5, a6);
7408
+ } catch (e) {
7409
+ stackRestore(sp);
7410
+ if (!_instanceof(e, EmscriptenEH)) throw e;
7411
+ _setThrew(1, 0);
7412
+ }
7413
+ }
7467
7414
  function invoke_iiiiid(index, a1, a2, a3, a4, a5) {
7468
7415
  var sp = stackSave();
7469
7416
  try {
@@ -7484,140 +7431,140 @@ var Module = function() {
7484
7431
  _setThrew(1, 0);
7485
7432
  }
7486
7433
  }
7487
- function invoke_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
7434
+ function invoke_iiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) {
7488
7435
  var sp = stackSave();
7489
7436
  try {
7490
- dynCall_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7);
7437
+ return dynCall_iiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
7491
7438
  } catch (e) {
7492
7439
  stackRestore(sp);
7493
7440
  if (!_instanceof(e, EmscriptenEH)) throw e;
7494
7441
  _setThrew(1, 0);
7495
7442
  }
7496
7443
  }
7497
- function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) {
7444
+ function invoke_iiiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) {
7498
7445
  var sp = stackSave();
7499
7446
  try {
7500
- return dynCall_iiiiiii(index, a1, a2, a3, a4, a5, a6);
7447
+ return dynCall_iiiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12);
7501
7448
  } catch (e) {
7502
7449
  stackRestore(sp);
7503
7450
  if (!_instanceof(e, EmscriptenEH)) throw e;
7504
7451
  _setThrew(1, 0);
7505
7452
  }
7506
7453
  }
7507
- function invoke_iiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) {
7454
+ function invoke_fiii(index, a1, a2, a3) {
7508
7455
  var sp = stackSave();
7509
7456
  try {
7510
- return dynCall_iiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
7457
+ return dynCall_fiii(index, a1, a2, a3);
7511
7458
  } catch (e) {
7512
7459
  stackRestore(sp);
7513
7460
  if (!_instanceof(e, EmscriptenEH)) throw e;
7514
7461
  _setThrew(1, 0);
7515
7462
  }
7516
7463
  }
7517
- function invoke_viiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) {
7464
+ function invoke_diii(index, a1, a2, a3) {
7518
7465
  var sp = stackSave();
7519
7466
  try {
7520
- dynCall_viiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
7467
+ return dynCall_diii(index, a1, a2, a3);
7521
7468
  } catch (e) {
7522
7469
  stackRestore(sp);
7523
7470
  if (!_instanceof(e, EmscriptenEH)) throw e;
7524
7471
  _setThrew(1, 0);
7525
7472
  }
7526
7473
  }
7527
- function invoke_viiiiiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15) {
7474
+ function invoke_i(index) {
7528
7475
  var sp = stackSave();
7529
7476
  try {
7530
- dynCall_viiiiiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15);
7477
+ return dynCall_i(index);
7531
7478
  } catch (e) {
7532
7479
  stackRestore(sp);
7533
7480
  if (!_instanceof(e, EmscriptenEH)) throw e;
7534
7481
  _setThrew(1, 0);
7535
7482
  }
7536
7483
  }
7537
- function invoke_viiiii(index, a1, a2, a3, a4, a5) {
7484
+ function invoke_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7) {
7538
7485
  var sp = stackSave();
7539
7486
  try {
7540
- dynCall_viiiii(index, a1, a2, a3, a4, a5);
7487
+ dynCall_viiiiiii(index, a1, a2, a3, a4, a5, a6, a7);
7541
7488
  } catch (e) {
7542
7489
  stackRestore(sp);
7543
7490
  if (!_instanceof(e, EmscriptenEH)) throw e;
7544
7491
  _setThrew(1, 0);
7545
7492
  }
7546
7493
  }
7547
- function invoke_fii(index, a1, a2) {
7494
+ function invoke_iiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) {
7548
7495
  var sp = stackSave();
7549
7496
  try {
7550
- return dynCall_fii(index, a1, a2);
7497
+ return dynCall_iiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
7551
7498
  } catch (e) {
7552
7499
  stackRestore(sp);
7553
7500
  if (!_instanceof(e, EmscriptenEH)) throw e;
7554
7501
  _setThrew(1, 0);
7555
7502
  }
7556
7503
  }
7557
- function invoke_dii(index, a1, a2) {
7504
+ function invoke_viiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) {
7558
7505
  var sp = stackSave();
7559
7506
  try {
7560
- return dynCall_dii(index, a1, a2);
7507
+ dynCall_viiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
7561
7508
  } catch (e) {
7562
7509
  stackRestore(sp);
7563
7510
  if (!_instanceof(e, EmscriptenEH)) throw e;
7564
7511
  _setThrew(1, 0);
7565
7512
  }
7566
7513
  }
7567
- function invoke_viid(index, a1, a2, a3) {
7514
+ function invoke_viiiiiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15) {
7568
7515
  var sp = stackSave();
7569
7516
  try {
7570
- dynCall_viid(index, a1, a2, a3);
7517
+ dynCall_viiiiiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15);
7571
7518
  } catch (e) {
7572
7519
  stackRestore(sp);
7573
7520
  if (!_instanceof(e, EmscriptenEH)) throw e;
7574
7521
  _setThrew(1, 0);
7575
7522
  }
7576
7523
  }
7577
- function invoke_j(index) {
7524
+ function invoke_viid(index, a1, a2, a3) {
7578
7525
  var sp = stackSave();
7579
7526
  try {
7580
- return dynCall_j(index);
7527
+ dynCall_viid(index, a1, a2, a3);
7581
7528
  } catch (e) {
7582
7529
  stackRestore(sp);
7583
7530
  if (!_instanceof(e, EmscriptenEH)) throw e;
7584
7531
  _setThrew(1, 0);
7585
7532
  }
7586
7533
  }
7587
- function invoke_iiij(index, a1, a2, a3, a4) {
7534
+ function invoke_j(index) {
7588
7535
  var sp = stackSave();
7589
7536
  try {
7590
- return dynCall_iiij(index, a1, a2, a3, a4);
7537
+ return dynCall_j(index);
7591
7538
  } catch (e) {
7592
7539
  stackRestore(sp);
7593
7540
  if (!_instanceof(e, EmscriptenEH)) throw e;
7594
7541
  _setThrew(1, 0);
7595
7542
  }
7596
7543
  }
7597
- function invoke_iiiij(index, a1, a2, a3, a4, a5) {
7544
+ function invoke_iiiiij(index, a1, a2, a3, a4, a5, a6) {
7598
7545
  var sp = stackSave();
7599
7546
  try {
7600
- return dynCall_iiiij(index, a1, a2, a3, a4, a5);
7547
+ return dynCall_iiiiij(index, a1, a2, a3, a4, a5, a6);
7601
7548
  } catch (e) {
7602
7549
  stackRestore(sp);
7603
7550
  if (!_instanceof(e, EmscriptenEH)) throw e;
7604
7551
  _setThrew(1, 0);
7605
7552
  }
7606
7553
  }
7607
- function invoke_iiiiij(index, a1, a2, a3, a4, a5, a6) {
7554
+ function invoke_jiiii(index, a1, a2, a3, a4) {
7608
7555
  var sp = stackSave();
7609
7556
  try {
7610
- return dynCall_iiiiij(index, a1, a2, a3, a4, a5, a6);
7557
+ return dynCall_jiiii(index, a1, a2, a3, a4);
7611
7558
  } catch (e) {
7612
7559
  stackRestore(sp);
7613
7560
  if (!_instanceof(e, EmscriptenEH)) throw e;
7614
7561
  _setThrew(1, 0);
7615
7562
  }
7616
7563
  }
7617
- function invoke_iij(index, a1, a2, a3) {
7564
+ function invoke_iiji(index, a1, a2, a3, a4) {
7618
7565
  var sp = stackSave();
7619
7566
  try {
7620
- return dynCall_iij(index, a1, a2, a3);
7567
+ return dynCall_iiji(index, a1, a2, a3, a4);
7621
7568
  } catch (e) {
7622
7569
  stackRestore(sp);
7623
7570
  if (!_instanceof(e, EmscriptenEH)) throw e;
@@ -7667,6 +7614,8 @@ var Module = function() {
7667
7614
  "autoResumeAudioContext",
7668
7615
  "runtimeKeepalivePush",
7669
7616
  "runtimeKeepalivePop",
7617
+ "callUserCallback",
7618
+ "maybeExit",
7670
7619
  "asmjsMangle",
7671
7620
  "HandleAllocator",
7672
7621
  "getNativeTypeSize",
@@ -7826,12 +7775,8 @@ var Module = function() {
7826
7775
  "getExecutableName",
7827
7776
  "dynCallLegacy",
7828
7777
  "getDynCaller",
7829
- "setWasmTableEntry",
7830
- "getWasmTableEntry",
7831
7778
  "handleException",
7832
7779
  "keepRuntimeAlive",
7833
- "callUserCallback",
7834
- "maybeExit",
7835
7780
  "asyncLoad",
7836
7781
  "alignMemory",
7837
7782
  "mmapAlloc",
@@ -8152,8 +8097,8 @@ var Module = function() {
8152
8097
  // @ts-ignore
8153
8098
  var initialize = function() {
8154
8099
  var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
8155
- console.log('im browser', Module);
8156
- return Module(options);
8100
+ console.log('im browser', Balancy);
8101
+ return Balancy(options);
8157
8102
  };
8158
8103
 
8159
8104
  export { initialize };