fleethub-core 1.11.25 → 1.12.2

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.
@@ -1,15 +1,32 @@
1
+
1
2
  let imports = {};
2
3
  imports['__wbindgen_placeholder__'] = module.exports;
3
4
  let wasm;
4
5
  const { createEquipmentBonuses } = require(`equipment-bonus`);
5
6
  const { TextDecoder, TextEncoder } = require(`util`);
6
7
 
8
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
9
+
10
+ cachedTextDecoder.decode();
11
+
12
+ let cachedUint8ArrayMemory0 = null;
13
+
14
+ function getUint8ArrayMemory0() {
15
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
16
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
17
+ }
18
+ return cachedUint8ArrayMemory0;
19
+ }
20
+
21
+ function getStringFromWasm0(ptr, len) {
22
+ ptr = ptr >>> 0;
23
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
24
+ }
25
+
7
26
  const heap = new Array(128).fill(undefined);
8
27
 
9
28
  heap.push(undefined, null, true, false);
10
29
 
11
- function getObject(idx) { return heap[idx]; }
12
-
13
30
  let heap_next = heap.length;
14
31
 
15
32
  function addHeapObject(obj) {
@@ -21,6 +38,8 @@ function addHeapObject(obj) {
21
38
  return idx;
22
39
  }
23
40
 
41
+ function getObject(idx) { return heap[idx]; }
42
+
24
43
  function dropObject(idx) {
25
44
  if (idx < 132) return;
26
45
  heap[idx] = heap_next;
@@ -33,24 +52,6 @@ function takeObject(idx) {
33
52
  return ret;
34
53
  }
35
54
 
36
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
37
-
38
- cachedTextDecoder.decode();
39
-
40
- let cachedUint8Memory0 = null;
41
-
42
- function getUint8Memory0() {
43
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
44
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
45
- }
46
- return cachedUint8Memory0;
47
- }
48
-
49
- function getStringFromWasm0(ptr, len) {
50
- ptr = ptr >>> 0;
51
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
52
- }
53
-
54
55
  let WASM_VECTOR_LEN = 0;
55
56
 
56
57
  let cachedTextEncoder = new TextEncoder('utf-8');
@@ -73,7 +74,7 @@ function passStringToWasm0(arg, malloc, realloc) {
73
74
  if (realloc === undefined) {
74
75
  const buf = cachedTextEncoder.encode(arg);
75
76
  const ptr = malloc(buf.length, 1) >>> 0;
76
- getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
77
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
77
78
  WASM_VECTOR_LEN = buf.length;
78
79
  return ptr;
79
80
  }
@@ -81,7 +82,7 @@ function passStringToWasm0(arg, malloc, realloc) {
81
82
  let len = arg.length;
82
83
  let ptr = malloc(len, 1) >>> 0;
83
84
 
84
- const mem = getUint8Memory0();
85
+ const mem = getUint8ArrayMemory0();
85
86
 
86
87
  let offset = 0;
87
88
 
@@ -96,10 +97,11 @@ function passStringToWasm0(arg, malloc, realloc) {
96
97
  arg = arg.slice(offset);
97
98
  }
98
99
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
99
- const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
100
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
100
101
  const ret = encodeString(arg, view);
101
102
 
102
103
  offset += ret.written;
104
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
103
105
  }
104
106
 
105
107
  WASM_VECTOR_LEN = offset;
@@ -110,39 +112,21 @@ function isLikeNone(x) {
110
112
  return x === undefined || x === null;
111
113
  }
112
114
 
113
- let cachedInt32Memory0 = null;
115
+ let cachedDataViewMemory0 = null;
114
116
 
115
- function getInt32Memory0() {
116
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
117
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
117
+ function getDataViewMemory0() {
118
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
119
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
118
120
  }
119
- return cachedInt32Memory0;
120
- }
121
- /**
122
- * @param {ShipConditions} value
123
- * @returns {ShipConditions}
124
- */
125
- module.exports.parse_ship_conditions = function(value) {
126
- const ret = wasm.parse_ship_conditions(addHeapObject(value));
127
- return takeObject(ret);
128
- };
129
-
130
- let cachedUint32Memory0 = null;
131
-
132
- function getUint32Memory0() {
133
- if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
134
- cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
135
- }
136
- return cachedUint32Memory0;
121
+ return cachedDataViewMemory0;
137
122
  }
138
123
 
139
124
  function getArrayJsValueFromWasm0(ptr, len) {
140
125
  ptr = ptr >>> 0;
141
- const mem = getUint32Memory0();
142
- const slice = mem.subarray(ptr / 4, ptr / 4 + len);
126
+ const mem = getDataViewMemory0();
143
127
  const result = [];
144
- for (let i = 0; i < slice.length; i++) {
145
- result.push(takeObject(slice[i]));
128
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
129
+ result.push(takeObject(mem.getUint32(i, true)));
146
130
  }
147
131
  return result;
148
132
  }
@@ -153,53 +137,52 @@ function _assertClass(instance, klass) {
153
137
  }
154
138
  return instance.ptr;
155
139
  }
156
-
157
- let cachedFloat64Memory0 = null;
158
-
159
- function getFloat64Memory0() {
160
- if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
161
- cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
162
- }
163
- return cachedFloat64Memory0;
164
- }
140
+ /**
141
+ */
142
+ module.exports.set_panic_hook = function() {
143
+ wasm.set_panic_hook();
144
+ };
165
145
 
166
146
  function getArrayU8FromWasm0(ptr, len) {
167
147
  ptr = ptr >>> 0;
168
- return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
148
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
169
149
  }
170
150
 
171
151
  function passArray8ToWasm0(arg, malloc) {
172
152
  const ptr = malloc(arg.length * 1, 1) >>> 0;
173
- getUint8Memory0().set(arg, ptr / 1);
153
+ getUint8ArrayMemory0().set(arg, ptr / 1);
174
154
  WASM_VECTOR_LEN = arg.length;
175
155
  return ptr;
176
156
  }
177
- /**
178
- */
179
- module.exports.set_panic_hook = function() {
180
- wasm.set_panic_hook();
181
- };
182
157
 
183
- let cachedUint16Memory0 = null;
158
+ let cachedUint16ArrayMemory0 = null;
184
159
 
185
- function getUint16Memory0() {
186
- if (cachedUint16Memory0 === null || cachedUint16Memory0.byteLength === 0) {
187
- cachedUint16Memory0 = new Uint16Array(wasm.memory.buffer);
160
+ function getUint16ArrayMemory0() {
161
+ if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) {
162
+ cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
188
163
  }
189
- return cachedUint16Memory0;
164
+ return cachedUint16ArrayMemory0;
190
165
  }
191
166
 
192
167
  function getArrayU16FromWasm0(ptr, len) {
193
168
  ptr = ptr >>> 0;
194
- return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
169
+ return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
195
170
  }
196
171
 
197
172
  function passArray16ToWasm0(arg, malloc) {
198
173
  const ptr = malloc(arg.length * 2, 2) >>> 0;
199
- getUint16Memory0().set(arg, ptr / 2);
174
+ getUint16ArrayMemory0().set(arg, ptr / 2);
200
175
  WASM_VECTOR_LEN = arg.length;
201
176
  return ptr;
202
177
  }
178
+ /**
179
+ * @param {ShipConditions} value
180
+ * @returns {ShipConditions}
181
+ */
182
+ module.exports.parse_ship_conditions = function(value) {
183
+ const ret = wasm.parse_ship_conditions(addHeapObject(value));
184
+ return takeObject(ret);
185
+ };
203
186
 
204
187
  function handleError(f, args) {
205
188
  try {
@@ -209,7 +192,9 @@ function handleError(f, args) {
209
192
  }
210
193
  }
211
194
 
212
- const AirSquadronFinalization = new FinalizationRegistry(ptr => wasm.__wbg_airsquadron_free(ptr >>> 0));
195
+ const AirSquadronFinalization = (typeof FinalizationRegistry === 'undefined')
196
+ ? { register: () => {}, unregister: () => {} }
197
+ : new FinalizationRegistry(ptr => wasm.__wbg_airsquadron_free(ptr >>> 0, 1));
213
198
  /**
214
199
  */
215
200
  class AirSquadron {
@@ -231,7 +216,7 @@ class AirSquadron {
231
216
 
232
217
  free() {
233
218
  const ptr = this.__destroy_into_raw();
234
- wasm.__wbg_airsquadron_free(ptr);
219
+ wasm.__wbg_airsquadron_free(ptr, 0);
235
220
  }
236
221
  /**
237
222
  * @returns {string}
@@ -242,8 +227,8 @@ class AirSquadron {
242
227
  try {
243
228
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
244
229
  wasm.__wbg_get_airsquadron_id(retptr, this.__wbg_ptr);
245
- var r0 = getInt32Memory0()[retptr / 4 + 0];
246
- var r1 = getInt32Memory0()[retptr / 4 + 1];
230
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
231
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
247
232
  deferred1_0 = r0;
248
233
  deferred1_1 = r1;
249
234
  return getStringFromWasm0(r0, r1);
@@ -304,9 +289,9 @@ class AirSquadron {
304
289
  try {
305
290
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
306
291
  wasm.airsquadron_get_slot_size(retptr, this.__wbg_ptr, index);
307
- var r0 = getInt32Memory0()[retptr / 4 + 0];
308
- var r1 = getInt32Memory0()[retptr / 4 + 1];
309
- var r2 = getInt32Memory0()[retptr / 4 + 2];
292
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
293
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
294
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
310
295
  if (r2) {
311
296
  throw takeObject(r1);
312
297
  }
@@ -323,9 +308,9 @@ class AirSquadron {
323
308
  try {
324
309
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
325
310
  wasm.airsquadron_get_max_slot_size(retptr, this.__wbg_ptr, index);
326
- var r0 = getInt32Memory0()[retptr / 4 + 0];
327
- var r1 = getInt32Memory0()[retptr / 4 + 1];
328
- var r2 = getInt32Memory0()[retptr / 4 + 2];
311
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
312
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
313
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
329
314
  if (r2) {
330
315
  throw takeObject(r1);
331
316
  }
@@ -359,7 +344,9 @@ class AirSquadron {
359
344
  }
360
345
  module.exports.AirSquadron = AirSquadron;
361
346
 
362
- const AnalyzerFinalization = new FinalizationRegistry(ptr => wasm.__wbg_analyzer_free(ptr >>> 0));
347
+ const AnalyzerFinalization = (typeof FinalizationRegistry === 'undefined')
348
+ ? { register: () => {}, unregister: () => {} }
349
+ : new FinalizationRegistry(ptr => wasm.__wbg_analyzer_free(ptr >>> 0, 1));
363
350
  /**
364
351
  */
365
352
  class Analyzer {
@@ -381,7 +368,7 @@ class Analyzer {
381
368
 
382
369
  free() {
383
370
  const ptr = this.__destroy_into_raw();
384
- wasm.__wbg_analyzer_free(ptr);
371
+ wasm.__wbg_analyzer_free(ptr, 0);
385
372
  }
386
373
  /**
387
374
  * @param {ShipAnalyzerConfig} config
@@ -435,9 +422,9 @@ class Analyzer {
435
422
  _assertClass(player_comp, Comp);
436
423
  _assertClass(enemy_comp, Comp);
437
424
  wasm.analyzer_simulate_support_shelling(retptr, this.__wbg_ptr, player_comp.__wbg_ptr, enemy_comp.__wbg_ptr, addHeapObject(config), times);
438
- var r0 = getInt32Memory0()[retptr / 4 + 0];
439
- var r1 = getInt32Memory0()[retptr / 4 + 1];
440
- var r2 = getInt32Memory0()[retptr / 4 + 2];
425
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
426
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
427
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
441
428
  if (r2) {
442
429
  throw takeObject(r1);
443
430
  }
@@ -449,7 +436,9 @@ class Analyzer {
449
436
  }
450
437
  module.exports.Analyzer = Analyzer;
451
438
 
452
- const CompFinalization = new FinalizationRegistry(ptr => wasm.__wbg_comp_free(ptr >>> 0));
439
+ const CompFinalization = (typeof FinalizationRegistry === 'undefined')
440
+ ? { register: () => {}, unregister: () => {} }
441
+ : new FinalizationRegistry(ptr => wasm.__wbg_comp_free(ptr >>> 0, 1));
453
442
  /**
454
443
  */
455
444
  class Comp {
@@ -471,7 +460,7 @@ class Comp {
471
460
 
472
461
  free() {
473
462
  const ptr = this.__destroy_into_raw();
474
- wasm.__wbg_comp_free(ptr);
463
+ wasm.__wbg_comp_free(ptr, 0);
475
464
  }
476
465
  /**
477
466
  * @returns {OrgType}
@@ -510,7 +499,7 @@ class Comp {
510
499
  return ret === 0 ? undefined : Fleet.__wrap(ret);
511
500
  }
512
501
  /**
513
- * @param {Fleet | undefined} arg0
502
+ * @param {Fleet | undefined} [arg0]
514
503
  */
515
504
  set escort(arg0) {
516
505
  let ptr0 = 0;
@@ -528,7 +517,7 @@ class Comp {
528
517
  return ret === 0 ? undefined : Fleet.__wrap(ret);
529
518
  }
530
519
  /**
531
- * @param {Fleet | undefined} arg0
520
+ * @param {Fleet | undefined} [arg0]
532
521
  */
533
522
  set route_sup(arg0) {
534
523
  let ptr0 = 0;
@@ -546,7 +535,7 @@ class Comp {
546
535
  return ret === 0 ? undefined : Fleet.__wrap(ret);
547
536
  }
548
537
  /**
549
- * @param {Fleet | undefined} arg0
538
+ * @param {Fleet | undefined} [arg0]
550
539
  */
551
540
  set boss_sup(arg0) {
552
541
  let ptr0 = 0;
@@ -601,12 +590,12 @@ class Comp {
601
590
  try {
602
591
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
603
592
  wasm.comp_first_ship_id(retptr, this.__wbg_ptr);
604
- var r0 = getInt32Memory0()[retptr / 4 + 0];
605
- var r1 = getInt32Memory0()[retptr / 4 + 1];
593
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
594
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
606
595
  let v1;
607
596
  if (r0 !== 0) {
608
597
  v1 = getStringFromWasm0(r0, r1).slice();
609
- wasm.__wbindgen_free(r0, r1 * 1);
598
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
610
599
  }
611
600
  return v1;
612
601
  } finally {
@@ -635,12 +624,12 @@ class Comp {
635
624
  try {
636
625
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
637
626
  wasm.comp_get_fleet_id(retptr, this.__wbg_ptr, addHeapObject(ft));
638
- var r0 = getInt32Memory0()[retptr / 4 + 0];
639
- var r1 = getInt32Memory0()[retptr / 4 + 1];
627
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
628
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
640
629
  let v1;
641
630
  if (r0 !== 0) {
642
631
  v1 = getStringFromWasm0(r0, r1).slice();
643
- wasm.__wbindgen_free(r0, r1 * 1);
632
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
644
633
  }
645
634
  return v1;
646
635
  } finally {
@@ -665,12 +654,12 @@ class Comp {
665
654
  try {
666
655
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
667
656
  wasm.comp_get_ship_entity_id(retptr, this.__wbg_ptr, addHeapObject(ft), addHeapObject(key));
668
- var r0 = getInt32Memory0()[retptr / 4 + 0];
669
- var r1 = getInt32Memory0()[retptr / 4 + 1];
657
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
658
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
670
659
  let v1;
671
660
  if (r0 !== 0) {
672
661
  v1 = getStringFromWasm0(r0, r1).slice();
673
- wasm.__wbindgen_free(r0, r1 * 1);
662
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
674
663
  }
675
664
  return v1;
676
665
  } finally {
@@ -713,8 +702,8 @@ class Comp {
713
702
  try {
714
703
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
715
704
  wasm.comp_fighter_power(retptr, this.__wbg_ptr, escort_participates, addHeapObject(air_type));
716
- var r0 = getInt32Memory0()[retptr / 4 + 0];
717
- var r1 = getInt32Memory0()[retptr / 4 + 1];
705
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
706
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
718
707
  return r0 === 0 ? undefined : r1;
719
708
  } finally {
720
709
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -729,8 +718,8 @@ class Comp {
729
718
  try {
730
719
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
731
720
  wasm.comp_elos(retptr, this.__wbg_ptr, node_divaricated_factor);
732
- var r0 = getInt32Memory0()[retptr / 4 + 0];
733
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
721
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
722
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
734
723
  return r0 === 0 ? undefined : r2;
735
724
  } finally {
736
725
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -746,7 +735,7 @@ class Comp {
746
735
  }
747
736
  /**
748
737
  * @param {Ship} ship
749
- * @param {Formation | undefined} formation
738
+ * @param {Formation | undefined} [formation]
750
739
  * @returns {ShipConditions}
751
740
  */
752
741
  get_ship_conditions(ship, formation) {
@@ -762,8 +751,8 @@ class Comp {
762
751
  try {
763
752
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
764
753
  wasm.comp_fleet_los_mod(retptr, this.__wbg_ptr, addHeapObject(fleet_type));
765
- var r0 = getInt32Memory0()[retptr / 4 + 0];
766
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
754
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
755
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
767
756
  return r0 === 0 ? undefined : r2;
768
757
  } finally {
769
758
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -779,19 +768,13 @@ class Comp {
779
768
  }
780
769
  module.exports.Comp = Comp;
781
770
 
782
- const FhCoreFinalization = new FinalizationRegistry(ptr => wasm.__wbg_fhcore_free(ptr >>> 0));
771
+ const FhCoreFinalization = (typeof FinalizationRegistry === 'undefined')
772
+ ? { register: () => {}, unregister: () => {} }
773
+ : new FinalizationRegistry(ptr => wasm.__wbg_fhcore_free(ptr >>> 0, 1));
783
774
  /**
784
775
  */
785
776
  class FhCore {
786
777
 
787
- static __wrap(ptr) {
788
- ptr = ptr >>> 0;
789
- const obj = Object.create(FhCore.prototype);
790
- obj.__wbg_ptr = ptr;
791
- FhCoreFinalization.register(obj, obj.__wbg_ptr, obj);
792
- return obj;
793
- }
794
-
795
778
  __destroy_into_raw() {
796
779
  const ptr = this.__wbg_ptr;
797
780
  this.__wbg_ptr = 0;
@@ -801,7 +784,7 @@ class FhCore {
801
784
 
802
785
  free() {
803
786
  const ptr = this.__destroy_into_raw();
804
- wasm.__wbg_fhcore_free(ptr);
787
+ wasm.__wbg_fhcore_free(ptr, 0);
805
788
  }
806
789
  /**
807
790
  * @param {MasterData} js_master
@@ -810,19 +793,21 @@ class FhCore {
810
793
  try {
811
794
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
812
795
  wasm.fhcore_new(retptr, addHeapObject(js_master));
813
- var r0 = getInt32Memory0()[retptr / 4 + 0];
814
- var r1 = getInt32Memory0()[retptr / 4 + 1];
815
- var r2 = getInt32Memory0()[retptr / 4 + 2];
796
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
797
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
798
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
816
799
  if (r2) {
817
800
  throw takeObject(r1);
818
801
  }
819
- return FhCore.__wrap(r0);
802
+ this.__wbg_ptr = r0 >>> 0;
803
+ FhCoreFinalization.register(this, this.__wbg_ptr, this);
804
+ return this;
820
805
  } finally {
821
806
  wasm.__wbindgen_add_to_stack_pointer(16);
822
807
  }
823
808
  }
824
809
  /**
825
- * @param {GearState | undefined} input
810
+ * @param {GearState | undefined} [input]
826
811
  * @returns {Gear | undefined}
827
812
  */
828
813
  create_gear(input) {
@@ -830,7 +815,7 @@ class FhCore {
830
815
  return ret === 0 ? undefined : Gear.__wrap(ret);
831
816
  }
832
817
  /**
833
- * @param {ShipState | undefined} input
818
+ * @param {ShipState | undefined} [input]
834
819
  * @returns {Ship | undefined}
835
820
  */
836
821
  create_ship(input) {
@@ -838,7 +823,7 @@ class FhCore {
838
823
  return ret === 0 ? undefined : Ship.__wrap(ret);
839
824
  }
840
825
  /**
841
- * @param {AirSquadronState | undefined} input
826
+ * @param {AirSquadronState | undefined} [input]
842
827
  * @returns {AirSquadron}
843
828
  */
844
829
  create_air_squadron(input) {
@@ -846,7 +831,7 @@ class FhCore {
846
831
  return AirSquadron.__wrap(ret);
847
832
  }
848
833
  /**
849
- * @param {FleetState | undefined} input
834
+ * @param {FleetState | undefined} [input]
850
835
  * @returns {Fleet}
851
836
  */
852
837
  create_fleet(input) {
@@ -854,7 +839,7 @@ class FhCore {
854
839
  return Fleet.__wrap(ret);
855
840
  }
856
841
  /**
857
- * @param {OrgState | undefined} input
842
+ * @param {OrgState | undefined} [input]
858
843
  * @returns {Org | undefined}
859
844
  */
860
845
  create_org(input) {
@@ -886,7 +871,7 @@ class FhCore {
886
871
  }
887
872
  /**
888
873
  * @param {Uint16Array} main
889
- * @param {Uint16Array | undefined} escort
874
+ * @param {Uint16Array | undefined} [escort]
890
875
  * @returns {Comp}
891
876
  */
892
877
  create_comp_by_map_enemy(main, escort) {
@@ -914,7 +899,9 @@ class FhCore {
914
899
  }
915
900
  module.exports.FhCore = FhCore;
916
901
 
917
- const FleetFinalization = new FinalizationRegistry(ptr => wasm.__wbg_fleet_free(ptr >>> 0));
902
+ const FleetFinalization = (typeof FinalizationRegistry === 'undefined')
903
+ ? { register: () => {}, unregister: () => {} }
904
+ : new FinalizationRegistry(ptr => wasm.__wbg_fleet_free(ptr >>> 0, 1));
918
905
  /**
919
906
  */
920
907
  class Fleet {
@@ -936,7 +923,7 @@ class Fleet {
936
923
 
937
924
  free() {
938
925
  const ptr = this.__destroy_into_raw();
939
- wasm.__wbg_fleet_free(ptr);
926
+ wasm.__wbg_fleet_free(ptr, 0);
940
927
  }
941
928
  /**
942
929
  * @returns {string}
@@ -947,8 +934,8 @@ class Fleet {
947
934
  try {
948
935
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
949
936
  wasm.__wbg_get_fleet_id(retptr, this.__wbg_ptr);
950
- var r0 = getInt32Memory0()[retptr / 4 + 0];
951
- var r1 = getInt32Memory0()[retptr / 4 + 1];
937
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
938
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
952
939
  deferred1_0 = r0;
953
940
  deferred1_1 = r1;
954
941
  return getStringFromWasm0(r0, r1);
@@ -993,10 +980,10 @@ class Fleet {
993
980
  try {
994
981
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
995
982
  wasm.fleet_ship_keys(retptr, this.__wbg_ptr);
996
- var r0 = getInt32Memory0()[retptr / 4 + 0];
997
- var r1 = getInt32Memory0()[retptr / 4 + 1];
983
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
984
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
998
985
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
999
- wasm.__wbindgen_free(r0, r1 * 4);
986
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
1000
987
  return v1;
1001
988
  } finally {
1002
989
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1009,10 +996,10 @@ class Fleet {
1009
996
  try {
1010
997
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1011
998
  wasm.fleet_ship_ids(retptr, this.__wbg_ptr);
1012
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1013
- var r1 = getInt32Memory0()[retptr / 4 + 1];
999
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1000
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1014
1001
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
1015
- wasm.__wbindgen_free(r0, r1 * 4);
1002
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
1016
1003
  return v1;
1017
1004
  } finally {
1018
1005
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1025,10 +1012,10 @@ class Fleet {
1025
1012
  try {
1026
1013
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1027
1014
  wasm.fleet_get_gear_ids_by_improvable(retptr, this.__wbg_ptr);
1028
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1029
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1015
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1016
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1030
1017
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
1031
- wasm.__wbindgen_free(r0, r1 * 4);
1018
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
1032
1019
  return v1;
1033
1020
  } finally {
1034
1021
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1041,10 +1028,10 @@ class Fleet {
1041
1028
  try {
1042
1029
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1043
1030
  wasm.fleet_get_gear_ids_by_proficiency(retptr, this.__wbg_ptr);
1044
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1045
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1031
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1032
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1046
1033
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
1047
- wasm.__wbindgen_free(r0, r1 * 4);
1034
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
1048
1035
  return v1;
1049
1036
  } finally {
1050
1037
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1107,8 +1094,8 @@ class Fleet {
1107
1094
  try {
1108
1095
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1109
1096
  wasm.fleet_fleet_los_mod(retptr, this.__wbg_ptr);
1110
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1111
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
1097
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1098
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
1112
1099
  return r0 === 0 ? undefined : r2;
1113
1100
  } finally {
1114
1101
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1122,8 +1109,8 @@ class Fleet {
1122
1109
  try {
1123
1110
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1124
1111
  wasm.fleet_fighter_power(retptr, this.__wbg_ptr, addHeapObject(air_type));
1125
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1126
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1112
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1113
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1127
1114
  return r0 === 0 ? undefined : r1;
1128
1115
  } finally {
1129
1116
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1139,8 +1126,8 @@ class Fleet {
1139
1126
  try {
1140
1127
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1141
1128
  wasm.fleet_elos(retptr, this.__wbg_ptr, hq_level, node_divaricated_factor);
1142
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1143
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
1129
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1130
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
1144
1131
  return r0 === 0 ? undefined : r2;
1145
1132
  } finally {
1146
1133
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1154,8 +1141,8 @@ class Fleet {
1154
1141
  try {
1155
1142
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1156
1143
  wasm.fleet_aviation_detection_score(retptr, this.__wbg_ptr);
1157
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1158
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
1144
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1145
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
1159
1146
  return r0 === 0 ? undefined : r2;
1160
1147
  } finally {
1161
1148
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1179,8 +1166,8 @@ class Fleet {
1179
1166
  const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1180
1167
  const len0 = WASM_VECTOR_LEN;
1181
1168
  wasm.fleet_sum_ship_stat_by(retptr, this.__wbg_ptr, ptr0, len0);
1182
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1183
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
1169
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1170
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
1184
1171
  return r0 === 0 ? undefined : r2;
1185
1172
  } finally {
1186
1173
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1194,7 +1181,9 @@ class Fleet {
1194
1181
  }
1195
1182
  module.exports.Fleet = Fleet;
1196
1183
 
1197
- const GearFinalization = new FinalizationRegistry(ptr => wasm.__wbg_gear_free(ptr >>> 0));
1184
+ const GearFinalization = (typeof FinalizationRegistry === 'undefined')
1185
+ ? { register: () => {}, unregister: () => {} }
1186
+ : new FinalizationRegistry(ptr => wasm.__wbg_gear_free(ptr >>> 0, 1));
1198
1187
  /**
1199
1188
  */
1200
1189
  class Gear {
@@ -1216,7 +1205,7 @@ class Gear {
1216
1205
 
1217
1206
  free() {
1218
1207
  const ptr = this.__destroy_into_raw();
1219
- wasm.__wbg_gear_free(ptr);
1208
+ wasm.__wbg_gear_free(ptr, 0);
1220
1209
  }
1221
1210
  /**
1222
1211
  * @returns {string}
@@ -1227,8 +1216,8 @@ class Gear {
1227
1216
  try {
1228
1217
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1229
1218
  wasm.__wbg_get_gear_id(retptr, this.__wbg_ptr);
1230
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1231
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1219
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1220
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1232
1221
  deferred1_0 = r0;
1233
1222
  deferred1_1 = r1;
1234
1223
  return getStringFromWasm0(r0, r1);
@@ -1289,8 +1278,8 @@ class Gear {
1289
1278
  try {
1290
1279
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1291
1280
  wasm.__wbg_get_gear_name(retptr, this.__wbg_ptr);
1292
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1293
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1281
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1282
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1294
1283
  deferred1_0 = r0;
1295
1284
  deferred1_1 = r1;
1296
1285
  return getStringFromWasm0(r0, r1);
@@ -1314,10 +1303,10 @@ class Gear {
1314
1303
  try {
1315
1304
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1316
1305
  wasm.__wbg_get_gear_types(retptr, this.__wbg_ptr);
1317
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1318
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1306
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1307
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1319
1308
  var v1 = getArrayU8FromWasm0(r0, r1).slice();
1320
- wasm.__wbindgen_free(r0, r1 * 1);
1309
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
1321
1310
  return v1;
1322
1311
  } finally {
1323
1312
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1553,7 +1542,7 @@ class Gear {
1553
1542
  * @returns {boolean}
1554
1543
  */
1555
1544
  has_proficiency() {
1556
- const ret = wasm.gear_can_be_deployed_to_land_base(this.__wbg_ptr);
1545
+ const ret = wasm.gear_has_proficiency(this.__wbg_ptr);
1557
1546
  return ret !== 0;
1558
1547
  }
1559
1548
  /**
@@ -1699,7 +1688,9 @@ class Gear {
1699
1688
  }
1700
1689
  module.exports.Gear = Gear;
1701
1690
 
1702
- const OrgFinalization = new FinalizationRegistry(ptr => wasm.__wbg_org_free(ptr >>> 0));
1691
+ const OrgFinalization = (typeof FinalizationRegistry === 'undefined')
1692
+ ? { register: () => {}, unregister: () => {} }
1693
+ : new FinalizationRegistry(ptr => wasm.__wbg_org_free(ptr >>> 0, 1));
1703
1694
  /**
1704
1695
  */
1705
1696
  class Org {
@@ -1721,7 +1712,7 @@ class Org {
1721
1712
 
1722
1713
  free() {
1723
1714
  const ptr = this.__destroy_into_raw();
1724
- wasm.__wbg_org_free(ptr);
1715
+ wasm.__wbg_org_free(ptr, 0);
1725
1716
  }
1726
1717
  /**
1727
1718
  * @returns {string}
@@ -1732,8 +1723,8 @@ class Org {
1732
1723
  try {
1733
1724
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1734
1725
  wasm.__wbg_get_org_id(retptr, this.__wbg_ptr);
1735
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1736
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1726
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1727
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1737
1728
  deferred1_0 = r0;
1738
1729
  deferred1_1 = r1;
1739
1730
  return getStringFromWasm0(r0, r1);
@@ -1754,7 +1745,7 @@ class Org {
1754
1745
  * @returns {bigint}
1755
1746
  */
1756
1747
  get hash() {
1757
- const ret = wasm.__wbg_get_org_hash(this.__wbg_ptr);
1748
+ const ret = wasm.__wbg_get_gear_hash(this.__wbg_ptr);
1758
1749
  return BigInt.asUintN(64, ret);
1759
1750
  }
1760
1751
  /**
@@ -1799,12 +1790,12 @@ class Org {
1799
1790
  try {
1800
1791
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1801
1792
  wasm.org_first_ship_id(retptr, this.__wbg_ptr);
1802
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1803
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1793
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1794
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1804
1795
  let v1;
1805
1796
  if (r0 !== 0) {
1806
1797
  v1 = getStringFromWasm0(r0, r1).slice();
1807
- wasm.__wbindgen_free(r0, r1 * 1);
1798
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
1808
1799
  }
1809
1800
  return v1;
1810
1801
  } finally {
@@ -1829,12 +1820,12 @@ class Org {
1829
1820
  try {
1830
1821
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1831
1822
  wasm.org_get_ship_eid(retptr, this.__wbg_ptr, addHeapObject(fleet_key), addHeapObject(ship_key));
1832
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1833
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1823
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1824
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1834
1825
  let v1;
1835
1826
  if (r0 !== 0) {
1836
1827
  v1 = getStringFromWasm0(r0, r1).slice();
1837
- wasm.__wbindgen_free(r0, r1 * 1);
1828
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
1838
1829
  }
1839
1830
  return v1;
1840
1831
  } finally {
@@ -1851,8 +1842,8 @@ class Org {
1851
1842
  try {
1852
1843
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1853
1844
  wasm.org_get_fleet_id(retptr, this.__wbg_ptr, addHeapObject(key));
1854
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1855
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1845
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1846
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1856
1847
  deferred1_0 = r0;
1857
1848
  deferred1_1 = r1;
1858
1849
  return getStringFromWasm0(r0, r1);
@@ -1868,10 +1859,10 @@ class Org {
1868
1859
  try {
1869
1860
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1870
1861
  wasm.org_air_squadron_ids(retptr, this.__wbg_ptr);
1871
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1872
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1862
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1863
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1873
1864
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
1874
- wasm.__wbindgen_free(r0, r1 * 4);
1865
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
1875
1866
  return v1;
1876
1867
  } finally {
1877
1868
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1884,10 +1875,10 @@ class Org {
1884
1875
  try {
1885
1876
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1886
1877
  wasm.org_main_ship_ids(retptr, this.__wbg_ptr);
1887
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1888
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1878
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1879
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1889
1880
  var v1 = getArrayU16FromWasm0(r0, r1).slice();
1890
- wasm.__wbindgen_free(r0, r1 * 2);
1881
+ wasm.__wbindgen_free(r0, r1 * 2, 2);
1891
1882
  return v1;
1892
1883
  } finally {
1893
1884
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1900,10 +1891,10 @@ class Org {
1900
1891
  try {
1901
1892
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1902
1893
  wasm.org_escort_ship_ids(retptr, this.__wbg_ptr);
1903
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1904
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1894
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1895
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1905
1896
  var v1 = getArrayU16FromWasm0(r0, r1).slice();
1906
- wasm.__wbindgen_free(r0, r1 * 2);
1897
+ wasm.__wbindgen_free(r0, r1 * 2, 2);
1907
1898
  return v1;
1908
1899
  } finally {
1909
1900
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1944,10 +1935,10 @@ class Org {
1944
1935
  try {
1945
1936
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1946
1937
  wasm.org_ship_keys(retptr, this.__wbg_ptr, addHeapObject(key));
1947
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1948
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1938
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1939
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1949
1940
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
1950
- wasm.__wbindgen_free(r0, r1 * 4);
1941
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
1951
1942
  return v1;
1952
1943
  } finally {
1953
1944
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1978,9 +1969,9 @@ class Org {
1978
1969
  const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1979
1970
  const len0 = WASM_VECTOR_LEN;
1980
1971
  wasm.org_get_air_squadron(retptr, this.__wbg_ptr, ptr0, len0);
1981
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1982
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1983
- var r2 = getInt32Memory0()[retptr / 4 + 2];
1972
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1973
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1974
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1984
1975
  if (r2) {
1985
1976
  throw takeObject(r1);
1986
1977
  }
@@ -1996,10 +1987,10 @@ class Org {
1996
1987
  try {
1997
1988
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1998
1989
  wasm.org_get_air_squadron_gear_ids_by_improvable(retptr, this.__wbg_ptr);
1999
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2000
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1990
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1991
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2001
1992
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
2002
- wasm.__wbindgen_free(r0, r1 * 4);
1993
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
2003
1994
  return v1;
2004
1995
  } finally {
2005
1996
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2012,10 +2003,10 @@ class Org {
2012
2003
  try {
2013
2004
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2014
2005
  wasm.org_get_air_squadron_gear_ids_by_proficiency(retptr, this.__wbg_ptr);
2015
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2016
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2006
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2007
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2017
2008
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
2018
- wasm.__wbindgen_free(r0, r1 * 4);
2009
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
2019
2010
  return v1;
2020
2011
  } finally {
2021
2012
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2095,7 +2086,9 @@ class Org {
2095
2086
  }
2096
2087
  module.exports.Org = Org;
2097
2088
 
2098
- const ShipFinalization = new FinalizationRegistry(ptr => wasm.__wbg_ship_free(ptr >>> 0));
2089
+ const ShipFinalization = (typeof FinalizationRegistry === 'undefined')
2090
+ ? { register: () => {}, unregister: () => {} }
2091
+ : new FinalizationRegistry(ptr => wasm.__wbg_ship_free(ptr >>> 0, 1));
2099
2092
  /**
2100
2093
  */
2101
2094
  class Ship {
@@ -2117,7 +2110,7 @@ class Ship {
2117
2110
 
2118
2111
  free() {
2119
2112
  const ptr = this.__destroy_into_raw();
2120
- wasm.__wbg_ship_free(ptr);
2113
+ wasm.__wbg_ship_free(ptr, 0);
2121
2114
  }
2122
2115
  /**
2123
2116
  * @returns {string}
@@ -2128,8 +2121,8 @@ class Ship {
2128
2121
  try {
2129
2122
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2130
2123
  wasm.__wbg_get_ship_id(retptr, this.__wbg_ptr);
2131
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2132
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2124
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2125
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2133
2126
  deferred1_0 = r0;
2134
2127
  deferred1_1 = r1;
2135
2128
  return getStringFromWasm0(r0, r1);
@@ -2367,8 +2360,8 @@ class Ship {
2367
2360
  try {
2368
2361
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2369
2362
  wasm.ship_name(retptr, this.__wbg_ptr);
2370
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2371
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2363
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2364
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2372
2365
  deferred1_0 = r0;
2373
2366
  deferred1_1 = r1;
2374
2367
  return getStringFromWasm0(r0, r1);
@@ -2386,8 +2379,8 @@ class Ship {
2386
2379
  try {
2387
2380
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2388
2381
  wasm.ship_yomi(retptr, this.__wbg_ptr);
2389
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2390
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2382
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2383
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2391
2384
  deferred1_0 = r0;
2392
2385
  deferred1_1 = r1;
2393
2386
  return getStringFromWasm0(r0, r1);
@@ -2474,10 +2467,10 @@ class Ship {
2474
2467
  try {
2475
2468
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2476
2469
  wasm.ship_gear_keys(retptr, this.__wbg_ptr);
2477
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2478
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2470
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2471
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2479
2472
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
2480
- wasm.__wbindgen_free(r0, r1 * 4);
2473
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
2481
2474
  return v1;
2482
2475
  } finally {
2483
2476
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2758,8 +2751,8 @@ class Ship {
2758
2751
  try {
2759
2752
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2760
2753
  wasm.ship_fighter_power(retptr, this.__wbg_ptr, addHeapObject(air_type));
2761
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2762
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2754
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2755
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2763
2756
  return r0 === 0 ? undefined : r1;
2764
2757
  } finally {
2765
2758
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2772,8 +2765,8 @@ class Ship {
2772
2765
  try {
2773
2766
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2774
2767
  wasm.ship_fleet_los_factor(retptr, this.__wbg_ptr);
2775
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2776
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
2768
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2769
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
2777
2770
  return r0 === 0 ? undefined : r2;
2778
2771
  } finally {
2779
2772
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2788,8 +2781,8 @@ class Ship {
2788
2781
  try {
2789
2782
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2790
2783
  wasm.ship_ship_adjusted_anti_air(retptr, this.__wbg_ptr, addHeapObject(side));
2791
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2792
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
2784
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2785
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
2793
2786
  return r0 === 0 ? undefined : r2;
2794
2787
  } finally {
2795
2788
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2817,8 +2810,8 @@ class Ship {
2817
2810
  try {
2818
2811
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2819
2812
  wasm.ship_basic_accuracy_term(retptr, this.__wbg_ptr);
2820
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2821
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
2813
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2814
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
2822
2815
  return r0 === 0 ? undefined : r2;
2823
2816
  } finally {
2824
2817
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2831,8 +2824,8 @@ class Ship {
2831
2824
  try {
2832
2825
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2833
2826
  wasm.ship_basic_evasion_term(retptr, this.__wbg_ptr);
2834
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2835
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
2827
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2828
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
2836
2829
  return r0 === 0 ? undefined : r2;
2837
2830
  } finally {
2838
2831
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2848,8 +2841,8 @@ class Ship {
2848
2841
  try {
2849
2842
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2850
2843
  wasm.ship_evasion_term(retptr, this.__wbg_ptr, formation_mod, postcap_additive, postcap_multiplicative);
2851
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2852
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
2844
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2845
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
2853
2846
  return r0 === 0 ? undefined : r2;
2854
2847
  } finally {
2855
2848
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2863,8 +2856,8 @@ class Ship {
2863
2856
  try {
2864
2857
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2865
2858
  wasm.ship_basic_defense_power(retptr, this.__wbg_ptr, armor_penetration);
2866
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2867
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
2859
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2860
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
2868
2861
  return r0 === 0 ? undefined : r2;
2869
2862
  } finally {
2870
2863
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2885,8 +2878,8 @@ class Ship {
2885
2878
  try {
2886
2879
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2887
2880
  wasm.ship_elos(retptr, this.__wbg_ptr, node_divaricated_factor);
2888
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2889
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
2881
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2882
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
2890
2883
  return r0 === 0 ? undefined : r2;
2891
2884
  } finally {
2892
2885
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2900,8 +2893,8 @@ class Ship {
2900
2893
  try {
2901
2894
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2902
2895
  wasm.ship_ohko_power(retptr, this.__wbg_ptr);
2903
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2904
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
2896
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2897
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
2905
2898
  return r0 === 0 ? undefined : r2;
2906
2899
  } finally {
2907
2900
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2914,8 +2907,8 @@ class Ship {
2914
2907
  try {
2915
2908
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2916
2909
  wasm.ship_state_day_gunfit_accuracy(retptr, this.__wbg_ptr);
2917
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2918
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
2910
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2911
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
2919
2912
  return r0 === 0 ? undefined : r2;
2920
2913
  } finally {
2921
2914
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2928,8 +2921,8 @@ class Ship {
2928
2921
  try {
2929
2922
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2930
2923
  wasm.ship_state_night_gunfit_accuracy(retptr, this.__wbg_ptr);
2931
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2932
- var r2 = getFloat64Memory0()[retptr / 8 + 1];
2924
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2925
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
2933
2926
  return r0 === 0 ? undefined : r2;
2934
2927
  } finally {
2935
2928
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2947,8 +2940,8 @@ class Ship {
2947
2940
  }
2948
2941
  module.exports.Ship = Ship;
2949
2942
 
2950
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
2951
- const ret = getObject(arg0);
2943
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2944
+ const ret = getStringFromWasm0(arg0, arg1);
2952
2945
  return addHeapObject(ret);
2953
2946
  };
2954
2947
 
@@ -2956,26 +2949,26 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2956
2949
  takeObject(arg0);
2957
2950
  };
2958
2951
 
2959
- module.exports.__wbindgen_is_undefined = function(arg0) {
2960
- const ret = getObject(arg0) === undefined;
2961
- return ret;
2962
- };
2963
-
2964
2952
  module.exports.__wbg_ship_new = function(arg0) {
2965
2953
  const ret = Ship.__wrap(arg0);
2966
2954
  return addHeapObject(ret);
2967
2955
  };
2968
2956
 
2969
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2970
- const ret = getStringFromWasm0(arg0, arg1);
2957
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
2958
+ const ret = getObject(arg0);
2971
2959
  return addHeapObject(ret);
2972
2960
  };
2973
2961
 
2974
- module.exports.__wbg_createEquipmentBonuses_20cc025f54382784 = function(arg0, arg1) {
2962
+ module.exports.__wbg_createEquipmentBonuses_031a77b32ed94c4c = function(arg0, arg1) {
2975
2963
  const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
2976
2964
  return addHeapObject(ret);
2977
2965
  };
2978
2966
 
2967
+ module.exports.__wbindgen_is_undefined = function(arg0) {
2968
+ const ret = getObject(arg0) === undefined;
2969
+ return ret;
2970
+ };
2971
+
2979
2972
  module.exports.__wbg_new_abda76e883ba8a5f = function() {
2980
2973
  const ret = new Error();
2981
2974
  return addHeapObject(ret);
@@ -2985,8 +2978,8 @@ module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
2985
2978
  const ret = getObject(arg1).stack;
2986
2979
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2987
2980
  const len1 = WASM_VECTOR_LEN;
2988
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2989
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2981
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2982
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2990
2983
  };
2991
2984
 
2992
2985
  module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
@@ -3001,7 +2994,7 @@ module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
3001
2994
  }
3002
2995
  };
3003
2996
 
3004
- module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) {
2997
+ module.exports.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
3005
2998
  const ret = getObject(arg0).crypto;
3006
2999
  return addHeapObject(ret);
3007
3000
  };
@@ -3012,17 +3005,17 @@ module.exports.__wbindgen_is_object = function(arg0) {
3012
3005
  return ret;
3013
3006
  };
3014
3007
 
3015
- module.exports.__wbg_process_298734cf255a885d = function(arg0) {
3008
+ module.exports.__wbg_process_4a72847cc503995b = function(arg0) {
3016
3009
  const ret = getObject(arg0).process;
3017
3010
  return addHeapObject(ret);
3018
3011
  };
3019
3012
 
3020
- module.exports.__wbg_versions_e2e78e134e3e5d01 = function(arg0) {
3013
+ module.exports.__wbg_versions_f686565e586dd935 = function(arg0) {
3021
3014
  const ret = getObject(arg0).versions;
3022
3015
  return addHeapObject(ret);
3023
3016
  };
3024
3017
 
3025
- module.exports.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
3018
+ module.exports.__wbg_node_104a2ff8d6ea03a2 = function(arg0) {
3026
3019
  const ret = getObject(arg0).node;
3027
3020
  return addHeapObject(ret);
3028
3021
  };
@@ -3032,12 +3025,7 @@ module.exports.__wbindgen_is_string = function(arg0) {
3032
3025
  return ret;
3033
3026
  };
3034
3027
 
3035
- module.exports.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
3036
- const ret = getObject(arg0).msCrypto;
3037
- return addHeapObject(ret);
3038
- };
3039
-
3040
- module.exports.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
3028
+ module.exports.__wbg_require_cca90b1a94a0255b = function() { return handleError(function () {
3041
3029
  const ret = module.require;
3042
3030
  return addHeapObject(ret);
3043
3031
  }, arguments) };
@@ -3047,25 +3035,30 @@ module.exports.__wbindgen_is_function = function(arg0) {
3047
3035
  return ret;
3048
3036
  };
3049
3037
 
3050
- module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
3051
- getObject(arg0).getRandomValues(getObject(arg1));
3052
- }, arguments) };
3038
+ module.exports.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
3039
+ const ret = getObject(arg0).msCrypto;
3040
+ return addHeapObject(ret);
3041
+ };
3053
3042
 
3054
- module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
3043
+ module.exports.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
3055
3044
  getObject(arg0).randomFillSync(takeObject(arg1));
3056
3045
  }, arguments) };
3057
3046
 
3058
- module.exports.__wbg_new_898a68150f225f2e = function() {
3047
+ module.exports.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
3048
+ getObject(arg0).getRandomValues(getObject(arg1));
3049
+ }, arguments) };
3050
+
3051
+ module.exports.__wbg_new_a220cf903aa02ca2 = function() {
3059
3052
  const ret = new Array();
3060
3053
  return addHeapObject(ret);
3061
3054
  };
3062
3055
 
3063
- module.exports.__wbg_newnoargs_581967eacc0e2604 = function(arg0, arg1) {
3056
+ module.exports.__wbg_newnoargs_76313bd6ff35d0f2 = function(arg0, arg1) {
3064
3057
  const ret = new Function(getStringFromWasm0(arg0, arg1));
3065
3058
  return addHeapObject(ret);
3066
3059
  };
3067
3060
 
3068
- module.exports.__wbg_call_cb65541d95d71282 = function() { return handleError(function (arg0, arg1) {
3061
+ module.exports.__wbg_call_1084a111329e68ce = function() { return handleError(function (arg0, arg1) {
3069
3062
  const ret = getObject(arg0).call(getObject(arg1));
3070
3063
  return addHeapObject(ret);
3071
3064
  }, arguments) };
@@ -3075,75 +3068,75 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
3075
3068
  const ret = typeof(obj) === 'string' ? obj : undefined;
3076
3069
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3077
3070
  var len1 = WASM_VECTOR_LEN;
3078
- getInt32Memory0()[arg0 / 4 + 1] = len1;
3079
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
3071
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3072
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3080
3073
  };
3081
3074
 
3082
- module.exports.__wbg_self_1ff1d729e9aae938 = function() { return handleError(function () {
3075
+ module.exports.__wbg_self_3093d5d1f7bcb682 = function() { return handleError(function () {
3083
3076
  const ret = self.self;
3084
3077
  return addHeapObject(ret);
3085
3078
  }, arguments) };
3086
3079
 
3087
- module.exports.__wbg_window_5f4faef6c12b79ec = function() { return handleError(function () {
3080
+ module.exports.__wbg_window_3bcfc4d31bc012f8 = function() { return handleError(function () {
3088
3081
  const ret = window.window;
3089
3082
  return addHeapObject(ret);
3090
3083
  }, arguments) };
3091
3084
 
3092
- module.exports.__wbg_globalThis_1d39714405582d3c = function() { return handleError(function () {
3085
+ module.exports.__wbg_globalThis_86b222e13bdf32ed = function() { return handleError(function () {
3093
3086
  const ret = globalThis.globalThis;
3094
3087
  return addHeapObject(ret);
3095
3088
  }, arguments) };
3096
3089
 
3097
- module.exports.__wbg_global_651f05c6a0944d1c = function() { return handleError(function () {
3090
+ module.exports.__wbg_global_e5a3fe56f8be9485 = function() { return handleError(function () {
3098
3091
  const ret = global.global;
3099
3092
  return addHeapObject(ret);
3100
3093
  }, arguments) };
3101
3094
 
3102
- module.exports.__wbg_push_ca1c26067ef907ac = function(arg0, arg1) {
3095
+ module.exports.__wbg_push_37c89022f34c01ca = function(arg0, arg1) {
3103
3096
  const ret = getObject(arg0).push(getObject(arg1));
3104
3097
  return ret;
3105
3098
  };
3106
3099
 
3107
- module.exports.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) {
3100
+ module.exports.__wbg_call_89af060b4e1523f2 = function() { return handleError(function (arg0, arg1, arg2) {
3108
3101
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
3109
3102
  return addHeapObject(ret);
3110
3103
  }, arguments) };
3111
3104
 
3112
- module.exports.__wbg_buffer_085ec1f694018c4f = function(arg0) {
3105
+ module.exports.__wbg_buffer_b7b08af79b0b0974 = function(arg0) {
3113
3106
  const ret = getObject(arg0).buffer;
3114
3107
  return addHeapObject(ret);
3115
3108
  };
3116
3109
 
3117
- module.exports.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa = function(arg0, arg1, arg2) {
3110
+ module.exports.__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9 = function(arg0, arg1, arg2) {
3118
3111
  const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
3119
3112
  return addHeapObject(ret);
3120
3113
  };
3121
3114
 
3122
- module.exports.__wbg_new_8125e318e6245eed = function(arg0) {
3115
+ module.exports.__wbg_new_ea1883e1e5e86686 = function(arg0) {
3123
3116
  const ret = new Uint8Array(getObject(arg0));
3124
3117
  return addHeapObject(ret);
3125
3118
  };
3126
3119
 
3127
- module.exports.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) {
3120
+ module.exports.__wbg_set_d1e79e2388520f18 = function(arg0, arg1, arg2) {
3128
3121
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
3129
3122
  };
3130
3123
 
3131
- module.exports.__wbg_newwithlength_e5d69174d6984cd7 = function(arg0) {
3124
+ module.exports.__wbg_newwithlength_ec548f448387c968 = function(arg0) {
3132
3125
  const ret = new Uint8Array(arg0 >>> 0);
3133
3126
  return addHeapObject(ret);
3134
3127
  };
3135
3128
 
3136
- module.exports.__wbg_subarray_13db269f57aa838d = function(arg0, arg1, arg2) {
3129
+ module.exports.__wbg_subarray_7c2e3576afe181d1 = function(arg0, arg1, arg2) {
3137
3130
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
3138
3131
  return addHeapObject(ret);
3139
3132
  };
3140
3133
 
3141
- module.exports.__wbg_parse_670c19d4e984792e = function() { return handleError(function (arg0, arg1) {
3134
+ module.exports.__wbg_parse_52202f117ec9ecfa = function() { return handleError(function (arg0, arg1) {
3142
3135
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
3143
3136
  return addHeapObject(ret);
3144
3137
  }, arguments) };
3145
3138
 
3146
- module.exports.__wbg_stringify_e25465938f3f611f = function() { return handleError(function (arg0) {
3139
+ module.exports.__wbg_stringify_bbf45426c92a6bf5 = function() { return handleError(function (arg0) {
3147
3140
  const ret = JSON.stringify(getObject(arg0));
3148
3141
  return addHeapObject(ret);
3149
3142
  }, arguments) };