fleethub-core 1.12.6 → 1.12.7

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.
@@ -2,8 +2,6 @@
2
2
  let imports = {};
3
3
  imports['__wbindgen_placeholder__'] = module.exports;
4
4
  imports['equipment-bonus'] = require('equipment-bonus');
5
- let wasm;
6
- const { TextDecoder, TextEncoder } = require(`util`);
7
5
 
8
6
  function addToExternrefTable0(obj) {
9
7
  const idx = wasm.__externref_table_alloc();
@@ -20,10 +18,6 @@ function handleError(f, args) {
20
18
  }
21
19
  }
22
20
 
23
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
24
-
25
- cachedTextDecoder.decode();
26
-
27
21
  let cachedUint8ArrayMemory0 = null;
28
22
 
29
23
  function getUint8ArrayMemory0() {
@@ -33,27 +27,38 @@ function getUint8ArrayMemory0() {
33
27
  return cachedUint8ArrayMemory0;
34
28
  }
35
29
 
30
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
31
+
32
+ cachedTextDecoder.decode();
33
+
34
+ function decodeText(ptr, len) {
35
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
36
+ }
37
+
36
38
  function getStringFromWasm0(ptr, len) {
37
39
  ptr = ptr >>> 0;
38
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
40
+ return decodeText(ptr, len);
41
+ }
42
+
43
+ function getArrayU8FromWasm0(ptr, len) {
44
+ ptr = ptr >>> 0;
45
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
39
46
  }
40
47
 
41
48
  let WASM_VECTOR_LEN = 0;
42
49
 
43
- let cachedTextEncoder = new TextEncoder('utf-8');
50
+ const cachedTextEncoder = new TextEncoder();
44
51
 
45
- const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
46
- ? function (arg, view) {
47
- return cachedTextEncoder.encodeInto(arg, view);
52
+ if (!('encodeInto' in cachedTextEncoder)) {
53
+ cachedTextEncoder.encodeInto = function (arg, view) {
54
+ const buf = cachedTextEncoder.encode(arg);
55
+ view.set(buf);
56
+ return {
57
+ read: arg.length,
58
+ written: buf.length
59
+ };
60
+ }
48
61
  }
49
- : function (arg, view) {
50
- const buf = cachedTextEncoder.encode(arg);
51
- view.set(buf);
52
- return {
53
- read: arg.length,
54
- written: buf.length
55
- };
56
- });
57
62
 
58
63
  function passStringToWasm0(arg, malloc, realloc) {
59
64
 
@@ -84,7 +89,7 @@ function passStringToWasm0(arg, malloc, realloc) {
84
89
  }
85
90
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
86
91
  const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
87
- const ret = encodeString(arg, view);
92
+ const ret = cachedTextEncoder.encodeInto(arg, view);
88
93
 
89
94
  offset += ret.written;
90
95
  ptr = realloc(ptr, len, offset, 1) >>> 0;
@@ -130,18 +135,6 @@ function takeFromExternrefTable0(idx) {
130
135
  return value;
131
136
  }
132
137
 
133
- function getArrayU8FromWasm0(ptr, len) {
134
- ptr = ptr >>> 0;
135
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
136
- }
137
-
138
- function passArray8ToWasm0(arg, malloc) {
139
- const ptr = malloc(arg.length * 1, 1) >>> 0;
140
- getUint8ArrayMemory0().set(arg, ptr / 1);
141
- WASM_VECTOR_LEN = arg.length;
142
- return ptr;
143
- }
144
-
145
138
  let cachedUint16ArrayMemory0 = null;
146
139
 
147
140
  function getUint16ArrayMemory0() {
@@ -157,24 +150,31 @@ function passArray16ToWasm0(arg, malloc) {
157
150
  WASM_VECTOR_LEN = arg.length;
158
151
  return ptr;
159
152
  }
153
+
154
+ function passArray8ToWasm0(arg, malloc) {
155
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
156
+ getUint8ArrayMemory0().set(arg, ptr / 1);
157
+ WASM_VECTOR_LEN = arg.length;
158
+ return ptr;
159
+ }
160
+
161
+ function getArrayU16FromWasm0(ptr, len) {
162
+ ptr = ptr >>> 0;
163
+ return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
164
+ }
160
165
  /**
161
166
  * @param {ShipConditions} value
162
167
  * @returns {ShipConditions}
163
168
  */
164
- module.exports.parse_ship_conditions = function(value) {
169
+ exports.parse_ship_conditions = function(value) {
165
170
  const ret = wasm.parse_ship_conditions(value);
166
171
  return ret;
167
172
  };
168
173
 
169
- module.exports.set_panic_hook = function() {
174
+ exports.set_panic_hook = function() {
170
175
  wasm.set_panic_hook();
171
176
  };
172
177
 
173
- function getArrayU16FromWasm0(ptr, len) {
174
- ptr = ptr >>> 0;
175
- return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
176
- }
177
-
178
178
  const AirSquadronFinalization = (typeof FinalizationRegistry === 'undefined')
179
179
  ? { register: () => {}, unregister: () => {} }
180
180
  : new FinalizationRegistry(ptr => wasm.__wbg_airsquadron_free(ptr >>> 0, 1));
@@ -304,7 +304,9 @@ class AirSquadron {
304
304
  return ret;
305
305
  }
306
306
  }
307
- module.exports.AirSquadron = AirSquadron;
307
+ if (Symbol.dispose) AirSquadron.prototype[Symbol.dispose] = AirSquadron.prototype.free;
308
+
309
+ exports.AirSquadron = AirSquadron;
308
310
 
309
311
  const AnalyzerFinalization = (typeof FinalizationRegistry === 'undefined')
310
312
  ? { register: () => {}, unregister: () => {} }
@@ -387,7 +389,9 @@ class Analyzer {
387
389
  return takeFromExternrefTable0(ret[0]);
388
390
  }
389
391
  }
390
- module.exports.Analyzer = Analyzer;
392
+ if (Symbol.dispose) Analyzer.prototype[Symbol.dispose] = Analyzer.prototype.free;
393
+
394
+ exports.Analyzer = Analyzer;
391
395
 
392
396
  const CompFinalization = (typeof FinalizationRegistry === 'undefined')
393
397
  ? { register: () => {}, unregister: () => {} }
@@ -676,7 +680,9 @@ class Comp {
676
680
  return ret >>> 0;
677
681
  }
678
682
  }
679
- module.exports.Comp = Comp;
683
+ if (Symbol.dispose) Comp.prototype[Symbol.dispose] = Comp.prototype.free;
684
+
685
+ exports.Comp = Comp;
680
686
 
681
687
  const FhCoreFinalization = (typeof FinalizationRegistry === 'undefined')
682
688
  ? { register: () => {}, unregister: () => {} }
@@ -798,7 +804,9 @@ class FhCore {
798
804
  return Analyzer.__wrap(ret);
799
805
  }
800
806
  }
801
- module.exports.FhCore = FhCore;
807
+ if (Symbol.dispose) FhCore.prototype[Symbol.dispose] = FhCore.prototype.free;
808
+
809
+ exports.FhCore = FhCore;
802
810
 
803
811
  const FleetFinalization = (typeof FinalizationRegistry === 'undefined')
804
812
  ? { register: () => {}, unregister: () => {} }
@@ -1010,7 +1018,9 @@ class Fleet {
1010
1018
  wasm.fleet_reset_battle_state(this.__wbg_ptr);
1011
1019
  }
1012
1020
  }
1013
- module.exports.Fleet = Fleet;
1021
+ if (Symbol.dispose) Fleet.prototype[Symbol.dispose] = Fleet.prototype.free;
1022
+
1023
+ exports.Fleet = Fleet;
1014
1024
 
1015
1025
  const GearFinalization = (typeof FinalizationRegistry === 'undefined')
1016
1026
  ? { register: () => {}, unregister: () => {} }
@@ -1357,7 +1367,7 @@ class Gear {
1357
1367
  * @returns {boolean}
1358
1368
  */
1359
1369
  has_proficiency() {
1360
- const ret = wasm.gear_has_proficiency(this.__wbg_ptr);
1370
+ const ret = wasm.gear_can_be_deployed_to_land_base(this.__wbg_ptr);
1361
1371
  return ret !== 0;
1362
1372
  }
1363
1373
  /**
@@ -1501,7 +1511,9 @@ class Gear {
1501
1511
  return ret !== 0;
1502
1512
  }
1503
1513
  }
1504
- module.exports.Gear = Gear;
1514
+ if (Symbol.dispose) Gear.prototype[Symbol.dispose] = Gear.prototype.free;
1515
+
1516
+ exports.Gear = Gear;
1505
1517
 
1506
1518
  const OrgFinalization = (typeof FinalizationRegistry === 'undefined')
1507
1519
  ? { register: () => {}, unregister: () => {} }
@@ -1555,7 +1567,7 @@ class Org {
1555
1567
  * @returns {bigint}
1556
1568
  */
1557
1569
  get hash() {
1558
- const ret = wasm.__wbg_get_org_hash(this.__wbg_ptr);
1570
+ const ret = wasm.__wbg_get_gear_hash(this.__wbg_ptr);
1559
1571
  return BigInt.asUintN(64, ret);
1560
1572
  }
1561
1573
  /**
@@ -1826,7 +1838,9 @@ class Org {
1826
1838
  return ret;
1827
1839
  }
1828
1840
  }
1829
- module.exports.Org = Org;
1841
+ if (Symbol.dispose) Org.prototype[Symbol.dispose] = Org.prototype.free;
1842
+
1843
+ exports.Org = Org;
1830
1844
 
1831
1845
  const ShipFinalization = (typeof FinalizationRegistry === 'undefined')
1832
1846
  ? { register: () => {}, unregister: () => {} }
@@ -1853,29 +1867,6 @@ class Ship {
1853
1867
  const ptr = this.__destroy_into_raw();
1854
1868
  wasm.__wbg_ship_free(ptr, 0);
1855
1869
  }
1856
- /**
1857
- * @returns {number | undefined}
1858
- */
1859
- state_day_gunfit_accuracy() {
1860
- const ret = wasm.ship_state_day_gunfit_accuracy(this.__wbg_ptr);
1861
- return ret[0] === 0 ? undefined : ret[1];
1862
- }
1863
- /**
1864
- * @returns {number | undefined}
1865
- */
1866
- state_night_gunfit_accuracy() {
1867
- const ret = wasm.ship_state_night_gunfit_accuracy(this.__wbg_ptr);
1868
- return ret[0] === 0 ? undefined : ret[1];
1869
- }
1870
- /**
1871
- * フィット砲補正
1872
- * @param {boolean} is_night
1873
- * @returns {number}
1874
- */
1875
- gunfit_accuracy(is_night) {
1876
- const ret = wasm.ship_gunfit_accuracy(this.__wbg_ptr, is_night);
1877
- return ret;
1878
- }
1879
1870
  /**
1880
1871
  * @returns {string}
1881
1872
  */
@@ -2582,30 +2573,50 @@ class Ship {
2582
2573
  const ret = wasm.ship_ohko_power(this.__wbg_ptr);
2583
2574
  return ret[0] === 0 ? undefined : ret[1];
2584
2575
  }
2576
+ /**
2577
+ * @returns {number | undefined}
2578
+ */
2579
+ state_day_gunfit_accuracy() {
2580
+ const ret = wasm.ship_state_day_gunfit_accuracy(this.__wbg_ptr);
2581
+ return ret[0] === 0 ? undefined : ret[1];
2582
+ }
2583
+ /**
2584
+ * @returns {number | undefined}
2585
+ */
2586
+ state_night_gunfit_accuracy() {
2587
+ const ret = wasm.ship_state_night_gunfit_accuracy(this.__wbg_ptr);
2588
+ return ret[0] === 0 ? undefined : ret[1];
2589
+ }
2590
+ /**
2591
+ * フィット砲補正
2592
+ * @param {boolean} is_night
2593
+ * @returns {number}
2594
+ */
2595
+ gunfit_accuracy(is_night) {
2596
+ const ret = wasm.ship_gunfit_accuracy(this.__wbg_ptr, is_night);
2597
+ return ret;
2598
+ }
2585
2599
  }
2586
- module.exports.Ship = Ship;
2600
+ if (Symbol.dispose) Ship.prototype[Symbol.dispose] = Ship.prototype.free;
2587
2601
 
2588
- module.exports.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
2589
- const ret = arg0.buffer;
2590
- return ret;
2591
- };
2602
+ exports.Ship = Ship;
2592
2603
 
2593
- module.exports.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
2604
+ exports.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
2594
2605
  const ret = arg0.call(arg1);
2595
2606
  return ret;
2596
2607
  }, arguments) };
2597
2608
 
2598
- module.exports.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
2609
+ exports.__wbg_call_a5400b25a865cfd8 = function() { return handleError(function (arg0, arg1, arg2) {
2599
2610
  const ret = arg0.call(arg1, arg2);
2600
2611
  return ret;
2601
2612
  }, arguments) };
2602
2613
 
2603
- module.exports.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
2614
+ exports.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
2604
2615
  const ret = arg0.crypto;
2605
2616
  return ret;
2606
2617
  };
2607
2618
 
2608
- module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
2619
+ exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
2609
2620
  let deferred0_0;
2610
2621
  let deferred0_1;
2611
2622
  try {
@@ -2617,84 +2628,79 @@ module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
2617
2628
  }
2618
2629
  };
2619
2630
 
2620
- module.exports.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
2631
+ exports.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
2621
2632
  arg0.getRandomValues(arg1);
2622
2633
  }, arguments) };
2623
2634
 
2624
- module.exports.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
2625
- const ret = arg0.msCrypto;
2635
+ exports.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
2636
+ const ret = arg0.length;
2626
2637
  return ret;
2627
2638
  };
2628
2639
 
2629
- module.exports.__wbg_new_78feb108b6472713 = function() {
2630
- const ret = new Array();
2640
+ exports.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
2641
+ const ret = arg0.msCrypto;
2631
2642
  return ret;
2632
2643
  };
2633
2644
 
2634
- module.exports.__wbg_new_8a6f238a6ece86ea = function() {
2635
- const ret = new Error();
2645
+ exports.__wbg_new_1f3a344cf3123716 = function() {
2646
+ const ret = new Array();
2636
2647
  return ret;
2637
2648
  };
2638
2649
 
2639
- module.exports.__wbg_new_a12002a7f91c75be = function(arg0) {
2640
- const ret = new Uint8Array(arg0);
2650
+ exports.__wbg_new_8a6f238a6ece86ea = function() {
2651
+ const ret = new Error();
2641
2652
  return ret;
2642
2653
  };
2643
2654
 
2644
- module.exports.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
2655
+ exports.__wbg_newnoargs_254190557c45b4ec = function(arg0, arg1) {
2645
2656
  const ret = new Function(getStringFromWasm0(arg0, arg1));
2646
2657
  return ret;
2647
2658
  };
2648
2659
 
2649
- module.exports.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
2650
- const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
2651
- return ret;
2652
- };
2653
-
2654
- module.exports.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
2660
+ exports.__wbg_newwithlength_a167dcc7aaa3ba77 = function(arg0) {
2655
2661
  const ret = new Uint8Array(arg0 >>> 0);
2656
2662
  return ret;
2657
2663
  };
2658
2664
 
2659
- module.exports.__wbg_node_02999533c4ea02e3 = function(arg0) {
2665
+ exports.__wbg_node_02999533c4ea02e3 = function(arg0) {
2660
2666
  const ret = arg0.node;
2661
2667
  return ret;
2662
2668
  };
2663
2669
 
2664
- module.exports.__wbg_parse_def2e24ef1252aff = function() { return handleError(function (arg0, arg1) {
2670
+ exports.__wbg_parse_442f5ba02e5eaf8b = function() { return handleError(function (arg0, arg1) {
2665
2671
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
2666
2672
  return ret;
2667
2673
  }, arguments) };
2668
2674
 
2669
- module.exports.__wbg_process_5c1d670bc53614b8 = function(arg0) {
2675
+ exports.__wbg_process_5c1d670bc53614b8 = function(arg0) {
2670
2676
  const ret = arg0.process;
2671
2677
  return ret;
2672
2678
  };
2673
2679
 
2674
- module.exports.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) {
2680
+ exports.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
2681
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
2682
+ };
2683
+
2684
+ exports.__wbg_push_330b2eb93e4e1212 = function(arg0, arg1) {
2675
2685
  const ret = arg0.push(arg1);
2676
2686
  return ret;
2677
2687
  };
2678
2688
 
2679
- module.exports.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() { return handleError(function (arg0, arg1) {
2689
+ exports.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() { return handleError(function (arg0, arg1) {
2680
2690
  arg0.randomFillSync(arg1);
2681
2691
  }, arguments) };
2682
2692
 
2683
- module.exports.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () {
2693
+ exports.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () {
2684
2694
  const ret = module.require;
2685
2695
  return ret;
2686
2696
  }, arguments) };
2687
2697
 
2688
- module.exports.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
2689
- arg0.set(arg1, arg2 >>> 0);
2690
- };
2691
-
2692
- module.exports.__wbg_ship_new = function(arg0) {
2698
+ exports.__wbg_ship_new = function(arg0) {
2693
2699
  const ret = Ship.__wrap(arg0);
2694
2700
  return ret;
2695
2701
  };
2696
2702
 
2697
- module.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
2703
+ exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
2698
2704
  const ret = arg1.stack;
2699
2705
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2700
2706
  const len1 = WASM_VECTOR_LEN;
@@ -2702,79 +2708,63 @@ module.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
2702
2708
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2703
2709
  };
2704
2710
 
2705
- module.exports.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
2711
+ exports.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() {
2706
2712
  const ret = typeof global === 'undefined' ? null : global;
2707
2713
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2708
2714
  };
2709
2715
 
2710
- module.exports.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
2716
+ exports.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function() {
2711
2717
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
2712
2718
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2713
2719
  };
2714
2720
 
2715
- module.exports.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
2721
+ exports.__wbg_static_accessor_SELF_995b214ae681ff99 = function() {
2716
2722
  const ret = typeof self === 'undefined' ? null : self;
2717
2723
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2718
2724
  };
2719
2725
 
2720
- module.exports.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
2726
+ exports.__wbg_static_accessor_WINDOW_cde3890479c675ea = function() {
2721
2727
  const ret = typeof window === 'undefined' ? null : window;
2722
2728
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2723
2729
  };
2724
2730
 
2725
- module.exports.__wbg_stringify_f7ed6987935b4a24 = function() { return handleError(function (arg0) {
2731
+ exports.__wbg_stringify_b98c93d0a190446a = function() { return handleError(function (arg0) {
2726
2732
  const ret = JSON.stringify(arg0);
2727
2733
  return ret;
2728
2734
  }, arguments) };
2729
2735
 
2730
- module.exports.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
2736
+ exports.__wbg_subarray_70fd07feefe14294 = function(arg0, arg1, arg2) {
2731
2737
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
2732
2738
  return ret;
2733
2739
  };
2734
2740
 
2735
- module.exports.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
2741
+ exports.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
2736
2742
  const ret = arg0.versions;
2737
2743
  return ret;
2738
2744
  };
2739
2745
 
2740
- module.exports.__wbindgen_init_externref_table = function() {
2741
- const table = wasm.__wbindgen_export_2;
2742
- const offset = table.grow(4);
2743
- table.set(0, undefined);
2744
- table.set(offset + 0, undefined);
2745
- table.set(offset + 1, null);
2746
- table.set(offset + 2, true);
2747
- table.set(offset + 3, false);
2748
- ;
2749
- };
2750
-
2751
- module.exports.__wbindgen_is_function = function(arg0) {
2746
+ exports.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
2752
2747
  const ret = typeof(arg0) === 'function';
2753
2748
  return ret;
2754
2749
  };
2755
2750
 
2756
- module.exports.__wbindgen_is_object = function(arg0) {
2751
+ exports.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) {
2757
2752
  const val = arg0;
2758
2753
  const ret = typeof(val) === 'object' && val !== null;
2759
2754
  return ret;
2760
2755
  };
2761
2756
 
2762
- module.exports.__wbindgen_is_string = function(arg0) {
2757
+ exports.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
2763
2758
  const ret = typeof(arg0) === 'string';
2764
2759
  return ret;
2765
2760
  };
2766
2761
 
2767
- module.exports.__wbindgen_is_undefined = function(arg0) {
2762
+ exports.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) {
2768
2763
  const ret = arg0 === undefined;
2769
2764
  return ret;
2770
2765
  };
2771
2766
 
2772
- module.exports.__wbindgen_memory = function() {
2773
- const ret = wasm.memory;
2774
- return ret;
2775
- };
2776
-
2777
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
2767
+ exports.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) {
2778
2768
  const obj = arg1;
2779
2769
  const ret = typeof(obj) === 'string' ? obj : undefined;
2780
2770
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -2783,22 +2773,37 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2783
2773
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2784
2774
  };
2785
2775
 
2786
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2776
+ exports.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
2777
+ throw new Error(getStringFromWasm0(arg0, arg1));
2778
+ };
2779
+
2780
+ exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
2781
+ // Cast intrinsic for `Ref(String) -> Externref`.
2787
2782
  const ret = getStringFromWasm0(arg0, arg1);
2788
2783
  return ret;
2789
2784
  };
2790
2785
 
2791
- module.exports.__wbindgen_throw = function(arg0, arg1) {
2792
- throw new Error(getStringFromWasm0(arg0, arg1));
2786
+ exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
2787
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
2788
+ const ret = getArrayU8FromWasm0(arg0, arg1);
2789
+ return ret;
2793
2790
  };
2794
2791
 
2795
- const path = require('path').join(__dirname, 'fleethub_core_bg.wasm');
2796
- const bytes = require('fs').readFileSync(path);
2792
+ exports.__wbindgen_init_externref_table = function() {
2793
+ const table = wasm.__wbindgen_export_2;
2794
+ const offset = table.grow(4);
2795
+ table.set(0, undefined);
2796
+ table.set(offset + 0, undefined);
2797
+ table.set(offset + 1, null);
2798
+ table.set(offset + 2, true);
2799
+ table.set(offset + 3, false);
2800
+ ;
2801
+ };
2797
2802
 
2798
- const wasmModule = new WebAssembly.Module(bytes);
2799
- const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
2800
- wasm = wasmInstance.exports;
2801
- module.exports.__wasm = wasm;
2803
+ const wasmPath = `${__dirname}/fleethub_core_bg.wasm`;
2804
+ const wasmBytes = require('fs').readFileSync(wasmPath);
2805
+ const wasmModule = new WebAssembly.Module(wasmBytes);
2806
+ const wasm = exports.__wasm = new WebAssembly.Instance(wasmModule, imports).exports;
2802
2807
 
2803
2808
  wasm.__wbindgen_start();
2804
2809
 
Binary file