fleethub-core 1.3.1 → 1.4.0
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/node/fleethub_core.d.ts +605 -589
- package/node/fleethub_core.js +111 -207
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +151 -154
- package/package.json +5 -2
- package/pkg/fleethub_core.d.ts +605 -589
- package/pkg/fleethub_core_bg.js +110 -206
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +151 -154
package/node/fleethub_core.js
CHANGED
|
@@ -1,41 +1,17 @@
|
|
|
1
1
|
let imports = {};
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
|
-
const {
|
|
5
|
-
|
|
6
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
7
|
-
|
|
8
|
-
cachedTextDecoder.decode();
|
|
9
|
-
|
|
10
|
-
let cachegetUint8Memory0 = null;
|
|
11
|
-
function getUint8Memory0() {
|
|
12
|
-
if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== wasm.memory.buffer) {
|
|
13
|
-
cachegetUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
14
|
-
}
|
|
15
|
-
return cachegetUint8Memory0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function getStringFromWasm0(ptr, len) {
|
|
19
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
20
|
-
}
|
|
4
|
+
const { createEquipmentBonuses } = require(`equipment-bonus`);
|
|
5
|
+
const { TextEncoder, TextDecoder } = require(`util`);
|
|
21
6
|
|
|
22
7
|
const heap = new Array(32).fill(undefined);
|
|
23
8
|
|
|
24
9
|
heap.push(undefined, null, true, false);
|
|
25
10
|
|
|
26
|
-
let heap_next = heap.length;
|
|
27
|
-
|
|
28
|
-
function addHeapObject(obj) {
|
|
29
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
30
|
-
const idx = heap_next;
|
|
31
|
-
heap_next = heap[idx];
|
|
32
|
-
|
|
33
|
-
heap[idx] = obj;
|
|
34
|
-
return idx;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
11
|
function getObject(idx) { return heap[idx]; }
|
|
38
12
|
|
|
13
|
+
let heap_next = heap.length;
|
|
14
|
+
|
|
39
15
|
function dropObject(idx) {
|
|
40
16
|
if (idx < 36) return;
|
|
41
17
|
heap[idx] = heap_next;
|
|
@@ -50,6 +26,14 @@ function takeObject(idx) {
|
|
|
50
26
|
|
|
51
27
|
let WASM_VECTOR_LEN = 0;
|
|
52
28
|
|
|
29
|
+
let cachegetUint8Memory0 = null;
|
|
30
|
+
function getUint8Memory0() {
|
|
31
|
+
if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== wasm.memory.buffer) {
|
|
32
|
+
cachegetUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
33
|
+
}
|
|
34
|
+
return cachegetUint8Memory0;
|
|
35
|
+
}
|
|
36
|
+
|
|
53
37
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
54
38
|
|
|
55
39
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -111,71 +95,27 @@ function getInt32Memory0() {
|
|
|
111
95
|
return cachegetInt32Memory0;
|
|
112
96
|
}
|
|
113
97
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
if (
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
if (type == 'function') {
|
|
132
|
-
const name = val.name;
|
|
133
|
-
if (typeof name == 'string' && name.length > 0) {
|
|
134
|
-
return `Function(${name})`;
|
|
135
|
-
} else {
|
|
136
|
-
return 'Function';
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
// objects
|
|
140
|
-
if (Array.isArray(val)) {
|
|
141
|
-
const length = val.length;
|
|
142
|
-
let debug = '[';
|
|
143
|
-
if (length > 0) {
|
|
144
|
-
debug += debugString(val[0]);
|
|
145
|
-
}
|
|
146
|
-
for(let i = 1; i < length; i++) {
|
|
147
|
-
debug += ', ' + debugString(val[i]);
|
|
148
|
-
}
|
|
149
|
-
debug += ']';
|
|
150
|
-
return debug;
|
|
151
|
-
}
|
|
152
|
-
// Test for built-in
|
|
153
|
-
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
154
|
-
let className;
|
|
155
|
-
if (builtInMatches.length > 1) {
|
|
156
|
-
className = builtInMatches[1];
|
|
157
|
-
} else {
|
|
158
|
-
// Failed to match the standard '[object ClassName]'
|
|
159
|
-
return toString.call(val);
|
|
160
|
-
}
|
|
161
|
-
if (className == 'Object') {
|
|
162
|
-
// we're a user defined class or Object
|
|
163
|
-
// JSON.stringify avoids problems with cycles, and is generally much
|
|
164
|
-
// easier than looping through ownProperties of `val`.
|
|
165
|
-
try {
|
|
166
|
-
return 'Object(' + JSON.stringify(val) + ')';
|
|
167
|
-
} catch (_) {
|
|
168
|
-
return 'Object';
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
// errors
|
|
172
|
-
if (val instanceof Error) {
|
|
173
|
-
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
174
|
-
}
|
|
175
|
-
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
176
|
-
return className;
|
|
98
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
99
|
+
|
|
100
|
+
cachedTextDecoder.decode();
|
|
101
|
+
|
|
102
|
+
function getStringFromWasm0(ptr, len) {
|
|
103
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function addHeapObject(obj) {
|
|
107
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
108
|
+
const idx = heap_next;
|
|
109
|
+
heap_next = heap[idx];
|
|
110
|
+
|
|
111
|
+
heap[idx] = obj;
|
|
112
|
+
return idx;
|
|
177
113
|
}
|
|
178
114
|
|
|
115
|
+
const u32CvtShim = new Uint32Array(2);
|
|
116
|
+
|
|
117
|
+
const uint64CvtShim = new BigUint64Array(u32CvtShim.buffer);
|
|
118
|
+
|
|
179
119
|
function _assertClass(instance, klass) {
|
|
180
120
|
if (!(instance instanceof klass)) {
|
|
181
121
|
throw new Error(`expected instance of ${klass.name}`);
|
|
@@ -183,10 +123,6 @@ function _assertClass(instance, klass) {
|
|
|
183
123
|
return instance.ptr;
|
|
184
124
|
}
|
|
185
125
|
|
|
186
|
-
function isLikeNone(x) {
|
|
187
|
-
return x === undefined || x === null;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
126
|
let cachegetFloat64Memory0 = null;
|
|
191
127
|
function getFloat64Memory0() {
|
|
192
128
|
if (cachegetFloat64Memory0 === null || cachegetFloat64Memory0.buffer !== wasm.memory.buffer) {
|
|
@@ -195,9 +131,9 @@ function getFloat64Memory0() {
|
|
|
195
131
|
return cachegetFloat64Memory0;
|
|
196
132
|
}
|
|
197
133
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
134
|
+
function isLikeNone(x) {
|
|
135
|
+
return x === undefined || x === null;
|
|
136
|
+
}
|
|
201
137
|
|
|
202
138
|
let cachegetUint32Memory0 = null;
|
|
203
139
|
function getUint32Memory0() {
|
|
@@ -228,57 +164,13 @@ function getUint16Memory0() {
|
|
|
228
164
|
function getArrayU16FromWasm0(ptr, len) {
|
|
229
165
|
return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
|
|
230
166
|
}
|
|
231
|
-
/**
|
|
232
|
-
* @param {Gear} gear
|
|
233
|
-
* @returns {boolean}
|
|
234
|
-
*/
|
|
235
|
-
module.exports.air_squadron_can_equip = function(gear) {
|
|
236
|
-
_assertClass(gear, Gear);
|
|
237
|
-
const ret = wasm.air_squadron_can_equip(gear.ptr);
|
|
238
|
-
return ret !== 0;
|
|
239
|
-
};
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* @param {OrgType} org_type
|
|
243
|
-
* @returns {boolean}
|
|
244
|
-
*/
|
|
245
|
-
module.exports.org_type_is_single = function(org_type) {
|
|
246
|
-
const ret = wasm.org_type_is_single(addHeapObject(org_type));
|
|
247
|
-
return ret !== 0;
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* @param {OrgType} org_type
|
|
252
|
-
* @returns {Formation}
|
|
253
|
-
*/
|
|
254
|
-
module.exports.org_type_default_formation = function(org_type) {
|
|
255
|
-
const ret = wasm.org_type_default_formation(addHeapObject(org_type));
|
|
256
|
-
return takeObject(ret);
|
|
257
|
-
};
|
|
258
167
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
return ret !== 0;
|
|
266
|
-
};
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* @param {OrgType} org_type
|
|
270
|
-
* @returns {Side}
|
|
271
|
-
*/
|
|
272
|
-
module.exports.org_type_side = function(org_type) {
|
|
273
|
-
const ret = wasm.org_type_side(addHeapObject(org_type));
|
|
274
|
-
return takeObject(ret);
|
|
275
|
-
};
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
*/
|
|
279
|
-
module.exports.set_panic_hook = function() {
|
|
280
|
-
wasm.set_panic_hook();
|
|
281
|
-
};
|
|
168
|
+
function passArray16ToWasm0(arg, malloc) {
|
|
169
|
+
const ptr = malloc(arg.length * 2);
|
|
170
|
+
getUint16Memory0().set(arg, ptr / 2);
|
|
171
|
+
WASM_VECTOR_LEN = arg.length;
|
|
172
|
+
return ptr;
|
|
173
|
+
}
|
|
282
174
|
|
|
283
175
|
function getArrayU8FromWasm0(ptr, len) {
|
|
284
176
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -290,13 +182,11 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
290
182
|
WASM_VECTOR_LEN = arg.length;
|
|
291
183
|
return ptr;
|
|
292
184
|
}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
return ptr;
|
|
299
|
-
}
|
|
185
|
+
/**
|
|
186
|
+
*/
|
|
187
|
+
module.exports.set_panic_hook = function() {
|
|
188
|
+
wasm.set_panic_hook();
|
|
189
|
+
};
|
|
300
190
|
|
|
301
191
|
function handleError(f, args) {
|
|
302
192
|
try {
|
|
@@ -399,15 +289,6 @@ class AirSquadron {
|
|
|
399
289
|
return ret === 0 ? undefined : Gear.__wrap(ret);
|
|
400
290
|
}
|
|
401
291
|
/**
|
|
402
|
-
* @param {Gear} gear
|
|
403
|
-
* @returns {boolean}
|
|
404
|
-
*/
|
|
405
|
-
can_equip(gear) {
|
|
406
|
-
_assertClass(gear, Gear);
|
|
407
|
-
const ret = wasm.airsquadron_can_equip(this.ptr, gear.ptr);
|
|
408
|
-
return ret !== 0;
|
|
409
|
-
}
|
|
410
|
-
/**
|
|
411
292
|
* @param {number} index
|
|
412
293
|
* @returns {number}
|
|
413
294
|
*/
|
|
@@ -496,14 +377,14 @@ class Analyzer {
|
|
|
496
377
|
/**
|
|
497
378
|
* @param {Comp} comp
|
|
498
379
|
* @param {Formation} formation
|
|
499
|
-
* @param {number}
|
|
380
|
+
* @param {number} ship_anti_air_resist
|
|
500
381
|
* @param {number} fleet_anti_air_resist
|
|
501
382
|
* @param {number | undefined} aaci
|
|
502
383
|
* @returns {CompAntiAirInfo}
|
|
503
384
|
*/
|
|
504
|
-
analyze_anti_air(comp, formation,
|
|
385
|
+
analyze_anti_air(comp, formation, ship_anti_air_resist, fleet_anti_air_resist, aaci) {
|
|
505
386
|
_assertClass(comp, Comp);
|
|
506
|
-
const ret = wasm.analyzer_analyze_anti_air(this.ptr, comp.ptr, addHeapObject(formation),
|
|
387
|
+
const ret = wasm.analyzer_analyze_anti_air(this.ptr, comp.ptr, addHeapObject(formation), ship_anti_air_resist, fleet_anti_air_resist, isLikeNone(aaci) ? 0xFFFFFF : aaci);
|
|
507
388
|
return takeObject(ret);
|
|
508
389
|
}
|
|
509
390
|
/**
|
|
@@ -783,12 +664,12 @@ class Comp {
|
|
|
783
664
|
return takeObject(ret);
|
|
784
665
|
}
|
|
785
666
|
/**
|
|
786
|
-
*
|
|
667
|
+
* 艦隊防空値
|
|
787
668
|
* @param {number} formation_mod
|
|
788
669
|
* @returns {number}
|
|
789
670
|
*/
|
|
790
|
-
|
|
791
|
-
const ret = wasm.
|
|
671
|
+
adjusted_anti_air(formation_mod) {
|
|
672
|
+
const ret = wasm.comp_adjusted_anti_air(this.ptr, formation_mod);
|
|
792
673
|
return ret;
|
|
793
674
|
}
|
|
794
675
|
/**
|
|
@@ -869,13 +750,12 @@ class FhCore {
|
|
|
869
750
|
wasm.__wbg_fhcore_free(ptr);
|
|
870
751
|
}
|
|
871
752
|
/**
|
|
872
|
-
* @param {
|
|
873
|
-
* @param {Function} js_fn
|
|
753
|
+
* @param {MasterData} js_master
|
|
874
754
|
*/
|
|
875
|
-
constructor(js_master
|
|
755
|
+
constructor(js_master) {
|
|
876
756
|
try {
|
|
877
757
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
878
|
-
wasm.fhcore_new(retptr, addHeapObject(js_master)
|
|
758
|
+
wasm.fhcore_new(retptr, addHeapObject(js_master));
|
|
879
759
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
880
760
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
881
761
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -936,6 +816,13 @@ class FhCore {
|
|
|
936
816
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
937
817
|
}
|
|
938
818
|
/**
|
|
819
|
+
* @returns {Ship[]}
|
|
820
|
+
*/
|
|
821
|
+
create_all_ships() {
|
|
822
|
+
const ret = wasm.fhcore_create_all_ships(this.ptr);
|
|
823
|
+
return takeObject(ret);
|
|
824
|
+
}
|
|
825
|
+
/**
|
|
939
826
|
* @param {Uint16Array} main
|
|
940
827
|
* @param {Uint16Array | undefined} escort
|
|
941
828
|
* @returns {Comp}
|
|
@@ -1657,15 +1544,15 @@ class Gear {
|
|
|
1657
1544
|
}
|
|
1658
1545
|
/**
|
|
1659
1546
|
*/
|
|
1660
|
-
get
|
|
1661
|
-
const ret = wasm.
|
|
1547
|
+
get ship_anti_air_resistance() {
|
|
1548
|
+
const ret = wasm.__wbg_get_gear_ship_anti_air_resistance(this.ptr);
|
|
1662
1549
|
return ret;
|
|
1663
1550
|
}
|
|
1664
1551
|
/**
|
|
1665
1552
|
* @param {number} arg0
|
|
1666
1553
|
*/
|
|
1667
|
-
set
|
|
1668
|
-
wasm.
|
|
1554
|
+
set ship_anti_air_resistance(arg0) {
|
|
1555
|
+
wasm.__wbg_set_gear_ship_anti_air_resistance(this.ptr, arg0);
|
|
1669
1556
|
}
|
|
1670
1557
|
/**
|
|
1671
1558
|
*/
|
|
@@ -1754,7 +1641,7 @@ class Gear {
|
|
|
1754
1641
|
* @returns {boolean}
|
|
1755
1642
|
*/
|
|
1756
1643
|
has_proficiency() {
|
|
1757
|
-
const ret = wasm.
|
|
1644
|
+
const ret = wasm.gear_can_be_deployed_to_land_base(this.ptr);
|
|
1758
1645
|
return ret !== 0;
|
|
1759
1646
|
}
|
|
1760
1647
|
/**
|
|
@@ -1790,15 +1677,15 @@ class Gear {
|
|
|
1790
1677
|
/**
|
|
1791
1678
|
* @returns {number}
|
|
1792
1679
|
*/
|
|
1793
|
-
|
|
1794
|
-
const ret = wasm.
|
|
1680
|
+
fleet_anti_air_mod() {
|
|
1681
|
+
const ret = wasm.gear_fleet_anti_air_mod(this.ptr);
|
|
1795
1682
|
return ret;
|
|
1796
1683
|
}
|
|
1797
1684
|
/**
|
|
1798
1685
|
* @returns {number}
|
|
1799
1686
|
*/
|
|
1800
|
-
|
|
1801
|
-
const ret = wasm.
|
|
1687
|
+
ship_anti_air_mod() {
|
|
1688
|
+
const ret = wasm.gear_ship_anti_air_mod(this.ptr);
|
|
1802
1689
|
return ret;
|
|
1803
1690
|
}
|
|
1804
1691
|
/**
|
|
@@ -1876,6 +1763,13 @@ class Gear {
|
|
|
1876
1763
|
const ret = wasm.gear_expedition_bonus(this.ptr);
|
|
1877
1764
|
return ret;
|
|
1878
1765
|
}
|
|
1766
|
+
/**
|
|
1767
|
+
* @returns {boolean}
|
|
1768
|
+
*/
|
|
1769
|
+
can_be_deployed_to_land_base() {
|
|
1770
|
+
const ret = wasm.gear_can_be_deployed_to_land_base(this.ptr);
|
|
1771
|
+
return ret !== 0;
|
|
1772
|
+
}
|
|
1879
1773
|
}
|
|
1880
1774
|
module.exports.Gear = Gear;
|
|
1881
1775
|
|
|
@@ -2053,15 +1947,15 @@ class IBonuses {
|
|
|
2053
1947
|
}
|
|
2054
1948
|
/**
|
|
2055
1949
|
*/
|
|
2056
|
-
get
|
|
2057
|
-
const ret = wasm.
|
|
1950
|
+
get ship_anti_air() {
|
|
1951
|
+
const ret = wasm.__wbg_get_ibonuses_ship_anti_air(this.ptr);
|
|
2058
1952
|
return ret;
|
|
2059
1953
|
}
|
|
2060
1954
|
/**
|
|
2061
1955
|
* @param {number} arg0
|
|
2062
1956
|
*/
|
|
2063
|
-
set
|
|
2064
|
-
wasm.
|
|
1957
|
+
set ship_anti_air(arg0) {
|
|
1958
|
+
wasm.__wbg_set_ibonuses_ship_anti_air(this.ptr, arg0);
|
|
2065
1959
|
}
|
|
2066
1960
|
/**
|
|
2067
1961
|
*/
|
|
@@ -3151,6 +3045,13 @@ class Ship {
|
|
|
3151
3045
|
return ret;
|
|
3152
3046
|
}
|
|
3153
3047
|
/**
|
|
3048
|
+
* @returns {number}
|
|
3049
|
+
*/
|
|
3050
|
+
get torpedo_accuracy_mod() {
|
|
3051
|
+
const ret = wasm.ship_torpedo_accuracy_mod(this.ptr);
|
|
3052
|
+
return ret;
|
|
3053
|
+
}
|
|
3054
|
+
/**
|
|
3154
3055
|
* @returns {boolean}
|
|
3155
3056
|
*/
|
|
3156
3057
|
is_installation() {
|
|
@@ -3219,8 +3120,8 @@ class Ship {
|
|
|
3219
3120
|
/**
|
|
3220
3121
|
* @returns {number}
|
|
3221
3122
|
*/
|
|
3222
|
-
|
|
3223
|
-
const ret = wasm.
|
|
3123
|
+
fleet_anti_air_mod() {
|
|
3124
|
+
const ret = wasm.ship_fleet_anti_air_mod(this.ptr);
|
|
3224
3125
|
return ret;
|
|
3225
3126
|
}
|
|
3226
3127
|
/**
|
|
@@ -3329,8 +3230,8 @@ class Ship {
|
|
|
3329
3230
|
}
|
|
3330
3231
|
module.exports.Ship = Ship;
|
|
3331
3232
|
|
|
3332
|
-
module.exports.
|
|
3333
|
-
const ret =
|
|
3233
|
+
module.exports.__wbg_ship_new = function(arg0) {
|
|
3234
|
+
const ret = Ship.__wrap(arg0);
|
|
3334
3235
|
return addHeapObject(ret);
|
|
3335
3236
|
};
|
|
3336
3237
|
|
|
@@ -3338,6 +3239,11 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
3338
3239
|
takeObject(arg0);
|
|
3339
3240
|
};
|
|
3340
3241
|
|
|
3242
|
+
module.exports.__wbg_createEquipmentBonuses_273b5cec732de9f9 = function(arg0, arg1) {
|
|
3243
|
+
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
3244
|
+
return addHeapObject(ret);
|
|
3245
|
+
};
|
|
3246
|
+
|
|
3341
3247
|
module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
3342
3248
|
const obj = getObject(arg1);
|
|
3343
3249
|
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
@@ -3347,13 +3253,14 @@ module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
|
3347
3253
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3348
3254
|
};
|
|
3349
3255
|
|
|
3350
|
-
module.exports.
|
|
3351
|
-
const ret =
|
|
3256
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
3257
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
3352
3258
|
return addHeapObject(ret);
|
|
3353
3259
|
};
|
|
3354
3260
|
|
|
3355
|
-
module.exports.
|
|
3356
|
-
|
|
3261
|
+
module.exports.__wbindgen_json_parse = function(arg0, arg1) {
|
|
3262
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
3263
|
+
return addHeapObject(ret);
|
|
3357
3264
|
};
|
|
3358
3265
|
|
|
3359
3266
|
module.exports.__wbg_new_693216e109162396 = function() {
|
|
@@ -3431,6 +3338,11 @@ module.exports.__wbg_msCrypto_d07655bf62361f21 = function(arg0) {
|
|
|
3431
3338
|
return addHeapObject(ret);
|
|
3432
3339
|
};
|
|
3433
3340
|
|
|
3341
|
+
module.exports.__wbg_new_94fb1279cf6afea5 = function() {
|
|
3342
|
+
const ret = new Array();
|
|
3343
|
+
return addHeapObject(ret);
|
|
3344
|
+
};
|
|
3345
|
+
|
|
3434
3346
|
module.exports.__wbg_newnoargs_e23b458e372830de = function(arg0, arg1) {
|
|
3435
3347
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
3436
3348
|
return addHeapObject(ret);
|
|
@@ -3446,10 +3358,10 @@ module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
|
3446
3358
|
return addHeapObject(ret);
|
|
3447
3359
|
};
|
|
3448
3360
|
|
|
3449
|
-
module.exports.
|
|
3450
|
-
const ret = getObject(arg0).
|
|
3451
|
-
return
|
|
3452
|
-
}
|
|
3361
|
+
module.exports.__wbg_push_40c6a90f1805aa90 = function(arg0, arg1) {
|
|
3362
|
+
const ret = getObject(arg0).push(getObject(arg1));
|
|
3363
|
+
return ret;
|
|
3364
|
+
};
|
|
3453
3365
|
|
|
3454
3366
|
module.exports.__wbg_self_99737b4dcdf6f0d8 = function() { return handleError(function () {
|
|
3455
3367
|
const ret = self.self;
|
|
@@ -3505,14 +3417,6 @@ module.exports.__wbg_subarray_da527dbd24eafb6b = function(arg0, arg1, arg2) {
|
|
|
3505
3417
|
return addHeapObject(ret);
|
|
3506
3418
|
};
|
|
3507
3419
|
|
|
3508
|
-
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
3509
|
-
const ret = debugString(getObject(arg1));
|
|
3510
|
-
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3511
|
-
const len0 = WASM_VECTOR_LEN;
|
|
3512
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
3513
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3514
|
-
};
|
|
3515
|
-
|
|
3516
3420
|
module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
3517
3421
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
3518
3422
|
};
|
|
Binary file
|