@fedimint/core-web 0.0.2 → 0.0.3
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/LICENSE +21 -0
- package/README.md +34 -13
- package/dist/FedimintWallet.d.ts +47 -12
- package/dist/FedimintWallet.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/wallet.d.ts +19 -3
- package/dist/types/wallet.d.ts.map +1 -1
- package/dist/worker.js +2 -0
- package/dist/worker.js.map +1 -0
- package/node_modules/fedimint-client-wasm/fedimint_client_wasm.d.ts +49 -0
- package/node_modules/fedimint-client-wasm/fedimint_client_wasm.js +4 -0
- package/node_modules/fedimint-client-wasm/fedimint_client_wasm_bg.js +1411 -0
- package/{dist/assets/fedimint_client_wasm_bg-DxOUItb-.wasm → node_modules/fedimint-client-wasm/fedimint_client_wasm_bg.wasm} +0 -0
- package/node_modules/fedimint-client-wasm/package.json +26 -0
- package/package.json +10 -5
- package/src/FedimintWallet.ts +225 -91
- package/src/types/wallet.ts +25 -2
- package/src/worker.js +80 -0
- package/wasm/fedimint_client_wasm.d.ts +41 -96
- package/wasm/fedimint_client_wasm.js +4 -1120
- package/wasm/fedimint_client_wasm_bg.js +1197 -659
- package/wasm/fedimint_client_wasm_bg.wasm +0 -0
- package/wasm/fedimint_client_wasm_bg.wasm.d.ts +108 -32
- package/wasm/package.json +26 -0
- package/dist/wasm.worker.d.ts +0 -1
- package/dist/wasm.worker.d.ts.map +0 -1
- package/src/vite-env.d.ts +0 -1
- package/src/wasm.worker.ts +0 -41
|
@@ -1,873 +1,1411 @@
|
|
|
1
|
-
let wasm
|
|
1
|
+
let wasm
|
|
2
2
|
export function __wbg_set_wasm(val) {
|
|
3
|
-
|
|
3
|
+
wasm = val
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
const heap = new Array(128).fill(undefined)
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
heap.push(undefined, null, true, false)
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
function getObject(idx) {
|
|
11
|
+
return heap[idx]
|
|
12
|
+
}
|
|
12
13
|
|
|
13
|
-
let heap_next = heap.length
|
|
14
|
+
let heap_next = heap.length
|
|
14
15
|
|
|
15
16
|
function dropObject(idx) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
if (idx < 132) return
|
|
18
|
+
heap[idx] = heap_next
|
|
19
|
+
heap_next = idx
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
function takeObject(idx) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const ret = getObject(idx)
|
|
24
|
+
dropObject(idx)
|
|
25
|
+
return ret
|
|
26
|
+
}
|
|
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
|
|
25
35
|
}
|
|
26
36
|
|
|
27
|
-
const lTextDecoder =
|
|
37
|
+
const lTextDecoder =
|
|
38
|
+
typeof TextDecoder === 'undefined'
|
|
39
|
+
? (0, module.require)('util').TextDecoder
|
|
40
|
+
: TextDecoder
|
|
28
41
|
|
|
29
|
-
let cachedTextDecoder = new lTextDecoder('utf-8', {
|
|
42
|
+
let cachedTextDecoder = new lTextDecoder('utf-8', {
|
|
43
|
+
ignoreBOM: true,
|
|
44
|
+
fatal: true,
|
|
45
|
+
})
|
|
30
46
|
|
|
31
|
-
cachedTextDecoder.decode()
|
|
47
|
+
cachedTextDecoder.decode()
|
|
32
48
|
|
|
33
|
-
let cachedUint8Memory0 = null
|
|
49
|
+
let cachedUint8Memory0 = null
|
|
34
50
|
|
|
35
51
|
function getUint8Memory0() {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
52
|
+
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
53
|
+
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer)
|
|
54
|
+
}
|
|
55
|
+
return cachedUint8Memory0
|
|
40
56
|
}
|
|
41
57
|
|
|
42
58
|
function getStringFromWasm0(ptr, len) {
|
|
43
|
-
|
|
44
|
-
|
|
59
|
+
ptr = ptr >>> 0
|
|
60
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len))
|
|
45
61
|
}
|
|
46
62
|
|
|
47
|
-
|
|
48
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
49
|
-
const idx = heap_next;
|
|
50
|
-
heap_next = heap[idx];
|
|
51
|
-
|
|
52
|
-
heap[idx] = obj;
|
|
53
|
-
return idx;
|
|
54
|
-
}
|
|
63
|
+
let WASM_VECTOR_LEN = 0
|
|
55
64
|
|
|
56
|
-
|
|
65
|
+
const lTextEncoder =
|
|
66
|
+
typeof TextEncoder === 'undefined'
|
|
67
|
+
? (0, module.require)('util').TextEncoder
|
|
68
|
+
: TextEncoder
|
|
57
69
|
|
|
58
|
-
|
|
70
|
+
let cachedTextEncoder = new lTextEncoder('utf-8')
|
|
59
71
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
72
|
+
const encodeString =
|
|
73
|
+
typeof cachedTextEncoder.encodeInto === 'function'
|
|
63
74
|
? function (arg, view) {
|
|
64
|
-
|
|
65
|
-
}
|
|
75
|
+
return cachedTextEncoder.encodeInto(arg, view)
|
|
76
|
+
}
|
|
66
77
|
: function (arg, view) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
78
|
+
const buf = cachedTextEncoder.encode(arg)
|
|
79
|
+
view.set(buf)
|
|
80
|
+
return {
|
|
81
|
+
read: arg.length,
|
|
82
|
+
written: buf.length,
|
|
83
|
+
}
|
|
84
|
+
}
|
|
74
85
|
|
|
75
86
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
87
|
+
if (realloc === undefined) {
|
|
88
|
+
const buf = cachedTextEncoder.encode(arg)
|
|
89
|
+
const ptr = malloc(buf.length, 1) >>> 0
|
|
90
|
+
getUint8Memory0()
|
|
91
|
+
.subarray(ptr, ptr + buf.length)
|
|
92
|
+
.set(buf)
|
|
93
|
+
WASM_VECTOR_LEN = buf.length
|
|
94
|
+
return ptr
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
let len = arg.length
|
|
98
|
+
let ptr = malloc(len, 1) >>> 0
|
|
99
|
+
|
|
100
|
+
const mem = getUint8Memory0()
|
|
101
|
+
|
|
102
|
+
let offset = 0
|
|
103
|
+
|
|
104
|
+
for (; offset < len; offset++) {
|
|
105
|
+
const code = arg.charCodeAt(offset)
|
|
106
|
+
if (code > 0x7f) break
|
|
107
|
+
mem[ptr + offset] = code
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
if (offset !== len) {
|
|
111
|
+
if (offset !== 0) {
|
|
112
|
+
arg = arg.slice(offset)
|
|
96
113
|
}
|
|
114
|
+
ptr = realloc(ptr, len, (len = offset + arg.length * 3), 1) >>> 0
|
|
115
|
+
const view = getUint8Memory0().subarray(ptr + offset, ptr + len)
|
|
116
|
+
const ret = encodeString(arg, view)
|
|
97
117
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
103
|
-
const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
|
|
104
|
-
const ret = encodeString(arg, view);
|
|
105
|
-
|
|
106
|
-
offset += ret.written;
|
|
107
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
108
|
-
}
|
|
118
|
+
offset += ret.written
|
|
119
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0
|
|
120
|
+
}
|
|
109
121
|
|
|
110
|
-
|
|
111
|
-
|
|
122
|
+
WASM_VECTOR_LEN = offset
|
|
123
|
+
return ptr
|
|
112
124
|
}
|
|
113
125
|
|
|
114
126
|
function isLikeNone(x) {
|
|
115
|
-
|
|
127
|
+
return x === undefined || x === null
|
|
116
128
|
}
|
|
117
129
|
|
|
118
|
-
let cachedInt32Memory0 = null
|
|
130
|
+
let cachedInt32Memory0 = null
|
|
119
131
|
|
|
120
132
|
function getInt32Memory0() {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
133
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
134
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer)
|
|
135
|
+
}
|
|
136
|
+
return cachedInt32Memory0
|
|
125
137
|
}
|
|
126
138
|
|
|
127
139
|
function debugString(val) {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
if (type == 'function') {
|
|
145
|
-
const name = val.name;
|
|
146
|
-
if (typeof name == 'string' && name.length > 0) {
|
|
147
|
-
return `Function(${name})`;
|
|
148
|
-
} else {
|
|
149
|
-
return 'Function';
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
// objects
|
|
153
|
-
if (Array.isArray(val)) {
|
|
154
|
-
const length = val.length;
|
|
155
|
-
let debug = '[';
|
|
156
|
-
if (length > 0) {
|
|
157
|
-
debug += debugString(val[0]);
|
|
158
|
-
}
|
|
159
|
-
for(let i = 1; i < length; i++) {
|
|
160
|
-
debug += ', ' + debugString(val[i]);
|
|
161
|
-
}
|
|
162
|
-
debug += ']';
|
|
163
|
-
return debug;
|
|
140
|
+
// primitive types
|
|
141
|
+
const type = typeof val
|
|
142
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
143
|
+
return `${val}`
|
|
144
|
+
}
|
|
145
|
+
if (type == 'string') {
|
|
146
|
+
return `"${val}"`
|
|
147
|
+
}
|
|
148
|
+
if (type == 'symbol') {
|
|
149
|
+
const description = val.description
|
|
150
|
+
if (description == null) {
|
|
151
|
+
return 'Symbol'
|
|
152
|
+
} else {
|
|
153
|
+
return `Symbol(${description})`
|
|
164
154
|
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
if (
|
|
169
|
-
|
|
155
|
+
}
|
|
156
|
+
if (type == 'function') {
|
|
157
|
+
const name = val.name
|
|
158
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
159
|
+
return `Function(${name})`
|
|
170
160
|
} else {
|
|
171
|
-
|
|
172
|
-
return toString.call(val);
|
|
161
|
+
return 'Function'
|
|
173
162
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
return 'Object';
|
|
182
|
-
}
|
|
163
|
+
}
|
|
164
|
+
// objects
|
|
165
|
+
if (Array.isArray(val)) {
|
|
166
|
+
const length = val.length
|
|
167
|
+
let debug = '['
|
|
168
|
+
if (length > 0) {
|
|
169
|
+
debug += debugString(val[0])
|
|
183
170
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
171
|
+
for (let i = 1; i < length; i++) {
|
|
172
|
+
debug += ', ' + debugString(val[i])
|
|
187
173
|
}
|
|
188
|
-
|
|
189
|
-
return
|
|
174
|
+
debug += ']'
|
|
175
|
+
return debug
|
|
176
|
+
}
|
|
177
|
+
// Test for built-in
|
|
178
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val))
|
|
179
|
+
let className
|
|
180
|
+
if (builtInMatches.length > 1) {
|
|
181
|
+
className = builtInMatches[1]
|
|
182
|
+
} else {
|
|
183
|
+
// Failed to match the standard '[object ClassName]'
|
|
184
|
+
return toString.call(val)
|
|
185
|
+
}
|
|
186
|
+
if (className == 'Object') {
|
|
187
|
+
// we're a user defined class or Object
|
|
188
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
189
|
+
// easier than looping through ownProperties of `val`.
|
|
190
|
+
try {
|
|
191
|
+
return 'Object(' + JSON.stringify(val) + ')'
|
|
192
|
+
} catch (_) {
|
|
193
|
+
return 'Object'
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
// errors
|
|
197
|
+
if (val instanceof Error) {
|
|
198
|
+
return `${val.name}: ${val.message}\n${val.stack}`
|
|
199
|
+
}
|
|
200
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
201
|
+
return className
|
|
190
202
|
}
|
|
191
203
|
|
|
192
|
-
const CLOSURE_DTORS =
|
|
204
|
+
const CLOSURE_DTORS =
|
|
205
|
+
typeof FinalizationRegistry === 'undefined'
|
|
193
206
|
? { register: () => {}, unregister: () => {} }
|
|
194
|
-
: new FinalizationRegistry(state => {
|
|
195
|
-
|
|
196
|
-
})
|
|
207
|
+
: new FinalizationRegistry((state) => {
|
|
208
|
+
wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b)
|
|
209
|
+
})
|
|
197
210
|
|
|
198
211
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
212
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor }
|
|
213
|
+
const real = (...args) => {
|
|
214
|
+
// First up with a closure we increment the internal reference
|
|
215
|
+
// count. This ensures that the Rust closure environment won't
|
|
216
|
+
// be deallocated while we're invoking it.
|
|
217
|
+
state.cnt++
|
|
218
|
+
const a = state.a
|
|
219
|
+
state.a = 0
|
|
220
|
+
try {
|
|
221
|
+
return f(a, state.b, ...args)
|
|
222
|
+
} finally {
|
|
223
|
+
if (--state.cnt === 0) {
|
|
224
|
+
wasm.__wbindgen_export_2.get(state.dtor)(a, state.b)
|
|
225
|
+
CLOSURE_DTORS.unregister(state)
|
|
226
|
+
} else {
|
|
227
|
+
state.a = a
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
real.original = state
|
|
232
|
+
CLOSURE_DTORS.register(real, state, state)
|
|
233
|
+
return real
|
|
234
|
+
}
|
|
235
|
+
function __wbg_adapter_32(arg0, arg1, arg2) {
|
|
236
|
+
try {
|
|
237
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16)
|
|
238
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8697e16cd1c64495(
|
|
239
|
+
retptr,
|
|
240
|
+
arg0,
|
|
241
|
+
arg1,
|
|
242
|
+
addHeapObject(arg2),
|
|
243
|
+
)
|
|
244
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0]
|
|
245
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1]
|
|
246
|
+
if (r1) {
|
|
247
|
+
throw takeObject(r0)
|
|
248
|
+
}
|
|
249
|
+
} finally {
|
|
250
|
+
wasm.__wbindgen_add_to_stack_pointer(16)
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
function __wbg_adapter_35(arg0, arg1, arg2) {
|
|
255
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h31a94cc9a05d5ca0(
|
|
256
|
+
arg0,
|
|
257
|
+
arg1,
|
|
258
|
+
addHeapObject(arg2),
|
|
259
|
+
)
|
|
221
260
|
}
|
|
222
|
-
|
|
223
|
-
|
|
261
|
+
|
|
262
|
+
function __wbg_adapter_42(arg0, arg1) {
|
|
263
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4d11ec113460b95d(
|
|
264
|
+
arg0,
|
|
265
|
+
arg1,
|
|
266
|
+
)
|
|
224
267
|
}
|
|
225
268
|
|
|
226
|
-
function
|
|
227
|
-
|
|
269
|
+
function __wbg_adapter_45(arg0, arg1, arg2) {
|
|
270
|
+
try {
|
|
271
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16)
|
|
272
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he7056307c6986185(
|
|
273
|
+
retptr,
|
|
274
|
+
arg0,
|
|
275
|
+
arg1,
|
|
276
|
+
addHeapObject(arg2),
|
|
277
|
+
)
|
|
278
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0]
|
|
279
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1]
|
|
280
|
+
if (r1) {
|
|
281
|
+
throw takeObject(r0)
|
|
282
|
+
}
|
|
283
|
+
} finally {
|
|
284
|
+
wasm.__wbindgen_add_to_stack_pointer(16)
|
|
285
|
+
}
|
|
228
286
|
}
|
|
229
287
|
|
|
230
|
-
function
|
|
231
|
-
|
|
288
|
+
function __wbg_adapter_48(arg0, arg1) {
|
|
289
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5b16159cdfa166b0(
|
|
290
|
+
arg0,
|
|
291
|
+
arg1,
|
|
292
|
+
)
|
|
232
293
|
}
|
|
233
294
|
|
|
234
|
-
function
|
|
235
|
-
|
|
295
|
+
function __wbg_adapter_51(arg0, arg1, arg2) {
|
|
296
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hebf1bd391d12b3cb(
|
|
297
|
+
arg0,
|
|
298
|
+
arg1,
|
|
299
|
+
addHeapObject(arg2),
|
|
300
|
+
)
|
|
236
301
|
}
|
|
237
302
|
|
|
238
|
-
function
|
|
239
|
-
|
|
303
|
+
function __wbg_adapter_54(arg0, arg1) {
|
|
304
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h09ee3e3abd173580(
|
|
305
|
+
arg0,
|
|
306
|
+
arg1,
|
|
307
|
+
)
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
let stack_pointer = 128
|
|
311
|
+
|
|
312
|
+
function addBorrowedObject(obj) {
|
|
313
|
+
if (stack_pointer == 1) throw new Error('out of js stack')
|
|
314
|
+
heap[--stack_pointer] = obj
|
|
315
|
+
return stack_pointer
|
|
240
316
|
}
|
|
241
317
|
|
|
242
318
|
function handleError(f, args) {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
319
|
+
try {
|
|
320
|
+
return f.apply(this, args)
|
|
321
|
+
} catch (e) {
|
|
322
|
+
wasm.__wbindgen_exn_store(addHeapObject(e))
|
|
323
|
+
}
|
|
248
324
|
}
|
|
249
325
|
|
|
250
326
|
function getArrayU8FromWasm0(ptr, len) {
|
|
251
|
-
|
|
252
|
-
|
|
327
|
+
ptr = ptr >>> 0
|
|
328
|
+
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len)
|
|
253
329
|
}
|
|
254
|
-
function
|
|
255
|
-
|
|
330
|
+
function __wbg_adapter_261(arg0, arg1, arg2, arg3) {
|
|
331
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h8bdaa9faeb7d5075(
|
|
332
|
+
arg0,
|
|
333
|
+
arg1,
|
|
334
|
+
addHeapObject(arg2),
|
|
335
|
+
addHeapObject(arg3),
|
|
336
|
+
)
|
|
256
337
|
}
|
|
257
338
|
|
|
258
|
-
const
|
|
339
|
+
const RpcHandleFinalization =
|
|
340
|
+
typeof FinalizationRegistry === 'undefined'
|
|
259
341
|
? { register: () => {}, unregister: () => {} }
|
|
260
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
342
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_rpchandle_free(ptr >>> 0))
|
|
261
343
|
/**
|
|
262
|
-
*/
|
|
263
|
-
export class
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
344
|
+
*/
|
|
345
|
+
export class RpcHandle {
|
|
346
|
+
static __wrap(ptr) {
|
|
347
|
+
ptr = ptr >>> 0
|
|
348
|
+
const obj = Object.create(RpcHandle.prototype)
|
|
349
|
+
obj.__wbg_ptr = ptr
|
|
350
|
+
RpcHandleFinalization.register(obj, obj.__wbg_ptr, obj)
|
|
351
|
+
return obj
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
__destroy_into_raw() {
|
|
355
|
+
const ptr = this.__wbg_ptr
|
|
356
|
+
this.__wbg_ptr = 0
|
|
357
|
+
RpcHandleFinalization.unregister(this)
|
|
358
|
+
return ptr
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
free() {
|
|
362
|
+
const ptr = this.__destroy_into_raw()
|
|
363
|
+
wasm.__wbg_rpchandle_free(ptr)
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
*/
|
|
367
|
+
cancel() {
|
|
368
|
+
wasm.rpchandle_cancel(this.__wbg_ptr)
|
|
369
|
+
}
|
|
370
|
+
}
|
|
279
371
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
372
|
+
const WasmClientFinalization =
|
|
373
|
+
typeof FinalizationRegistry === 'undefined'
|
|
374
|
+
? { register: () => {}, unregister: () => {} }
|
|
375
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_wasmclient_free(ptr >>> 0))
|
|
376
|
+
/**
|
|
377
|
+
*/
|
|
378
|
+
export class WasmClient {
|
|
379
|
+
static __wrap(ptr) {
|
|
380
|
+
ptr = ptr >>> 0
|
|
381
|
+
const obj = Object.create(WasmClient.prototype)
|
|
382
|
+
obj.__wbg_ptr = ptr
|
|
383
|
+
WasmClientFinalization.register(obj, obj.__wbg_ptr, obj)
|
|
384
|
+
return obj
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
__destroy_into_raw() {
|
|
388
|
+
const ptr = this.__wbg_ptr
|
|
389
|
+
this.__wbg_ptr = 0
|
|
390
|
+
WasmClientFinalization.unregister(this)
|
|
391
|
+
return ptr
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
free() {
|
|
395
|
+
const ptr = this.__destroy_into_raw()
|
|
396
|
+
wasm.__wbg_wasmclient_free(ptr)
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* Open fedimint client with already joined federation.
|
|
400
|
+
*
|
|
401
|
+
* After you have joined a federation, you can reopen the fedimint client
|
|
402
|
+
* with same client_name. Opening client with same name at same time is
|
|
403
|
+
* not supported. You can close the current client by calling
|
|
404
|
+
* `client.free()`. NOTE: The client will remain active until all the
|
|
405
|
+
* running rpc calls have finished.
|
|
406
|
+
* @param {string} client_name
|
|
407
|
+
* @returns {Promise<WasmClient | undefined>}
|
|
408
|
+
*/
|
|
409
|
+
static open(client_name) {
|
|
410
|
+
const ptr0 = passStringToWasm0(
|
|
411
|
+
client_name,
|
|
412
|
+
wasm.__wbindgen_malloc,
|
|
413
|
+
wasm.__wbindgen_realloc,
|
|
414
|
+
)
|
|
415
|
+
const len0 = WASM_VECTOR_LEN
|
|
416
|
+
const ret = wasm.wasmclient_open(ptr0, len0)
|
|
417
|
+
return takeObject(ret)
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* Open a fedimint client by join a federation.
|
|
421
|
+
* @param {string} client_name
|
|
422
|
+
* @param {string} invite_code
|
|
423
|
+
* @returns {Promise<WasmClient>}
|
|
424
|
+
*/
|
|
425
|
+
static join_federation(client_name, invite_code) {
|
|
426
|
+
const ptr0 = passStringToWasm0(
|
|
427
|
+
client_name,
|
|
428
|
+
wasm.__wbindgen_malloc,
|
|
429
|
+
wasm.__wbindgen_realloc,
|
|
430
|
+
)
|
|
431
|
+
const len0 = WASM_VECTOR_LEN
|
|
432
|
+
const ptr1 = passStringToWasm0(
|
|
433
|
+
invite_code,
|
|
434
|
+
wasm.__wbindgen_malloc,
|
|
435
|
+
wasm.__wbindgen_realloc,
|
|
436
|
+
)
|
|
437
|
+
const len1 = WASM_VECTOR_LEN
|
|
438
|
+
const ret = wasm.wasmclient_join_federation(ptr0, len0, ptr1, len1)
|
|
439
|
+
return takeObject(ret)
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* Call a fedimint client rpc the responses are returned using `cb`
|
|
443
|
+
* callback. Each rpc call *can* return multiple responses by calling
|
|
444
|
+
* `cb` multiple times. The returned RpcHandle can be used to cancel the
|
|
445
|
+
* operation.
|
|
446
|
+
* @param {string} module
|
|
447
|
+
* @param {string} method
|
|
448
|
+
* @param {string} payload
|
|
449
|
+
* @param {Function} cb
|
|
450
|
+
* @returns {RpcHandle}
|
|
451
|
+
*/
|
|
452
|
+
rpc(module, method, payload, cb) {
|
|
453
|
+
try {
|
|
454
|
+
const ptr0 = passStringToWasm0(
|
|
455
|
+
module,
|
|
456
|
+
wasm.__wbindgen_malloc,
|
|
457
|
+
wasm.__wbindgen_realloc,
|
|
458
|
+
)
|
|
459
|
+
const len0 = WASM_VECTOR_LEN
|
|
460
|
+
const ptr1 = passStringToWasm0(
|
|
461
|
+
method,
|
|
462
|
+
wasm.__wbindgen_malloc,
|
|
463
|
+
wasm.__wbindgen_realloc,
|
|
464
|
+
)
|
|
465
|
+
const len1 = WASM_VECTOR_LEN
|
|
466
|
+
const ptr2 = passStringToWasm0(
|
|
467
|
+
payload,
|
|
468
|
+
wasm.__wbindgen_malloc,
|
|
469
|
+
wasm.__wbindgen_realloc,
|
|
470
|
+
)
|
|
471
|
+
const len2 = WASM_VECTOR_LEN
|
|
472
|
+
const ret = wasm.wasmclient_rpc(
|
|
473
|
+
this.__wbg_ptr,
|
|
474
|
+
ptr0,
|
|
475
|
+
len0,
|
|
476
|
+
ptr1,
|
|
477
|
+
len1,
|
|
478
|
+
ptr2,
|
|
479
|
+
len2,
|
|
480
|
+
addBorrowedObject(cb),
|
|
481
|
+
)
|
|
482
|
+
return RpcHandle.__wrap(ret)
|
|
483
|
+
} finally {
|
|
484
|
+
heap[stack_pointer++] = undefined
|
|
335
485
|
}
|
|
486
|
+
}
|
|
336
487
|
}
|
|
337
488
|
|
|
338
489
|
export function __wbg_wasmclient_new(arg0) {
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
}
|
|
490
|
+
const ret = WasmClient.__wrap(arg0)
|
|
491
|
+
return addHeapObject(ret)
|
|
492
|
+
}
|
|
342
493
|
|
|
343
494
|
export function __wbindgen_object_drop_ref(arg0) {
|
|
344
|
-
|
|
345
|
-
}
|
|
495
|
+
takeObject(arg0)
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
export function __wbindgen_object_clone_ref(arg0) {
|
|
499
|
+
const ret = getObject(arg0)
|
|
500
|
+
return addHeapObject(ret)
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
|
504
|
+
const ret = getStringFromWasm0(arg0, arg1)
|
|
505
|
+
return addHeapObject(ret)
|
|
506
|
+
}
|
|
346
507
|
|
|
347
508
|
export function __wbindgen_cb_drop(arg0) {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
}
|
|
509
|
+
const obj = takeObject(arg0).original
|
|
510
|
+
if (obj.cnt-- == 1) {
|
|
511
|
+
obj.a = 0
|
|
512
|
+
return true
|
|
513
|
+
}
|
|
514
|
+
const ret = false
|
|
515
|
+
return ret
|
|
516
|
+
}
|
|
356
517
|
|
|
357
518
|
export function __wbindgen_error_new(arg0, arg1) {
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
export function __wbindgen_string_new(arg0, arg1) {
|
|
363
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
364
|
-
return addHeapObject(ret);
|
|
365
|
-
};
|
|
519
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1))
|
|
520
|
+
return addHeapObject(ret)
|
|
521
|
+
}
|
|
366
522
|
|
|
367
523
|
export function __wbindgen_string_get(arg0, arg1) {
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
const ret = getObject(arg0);
|
|
378
|
-
return addHeapObject(ret);
|
|
379
|
-
};
|
|
524
|
+
const obj = getObject(arg1)
|
|
525
|
+
const ret = typeof obj === 'string' ? obj : undefined
|
|
526
|
+
var ptr1 = isLikeNone(ret)
|
|
527
|
+
? 0
|
|
528
|
+
: passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc)
|
|
529
|
+
var len1 = WASM_VECTOR_LEN
|
|
530
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1
|
|
531
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1
|
|
532
|
+
}
|
|
380
533
|
|
|
381
534
|
export function __wbg_fetch_25e3a297f7b04639(arg0) {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
}
|
|
535
|
+
const ret = fetch(getObject(arg0))
|
|
536
|
+
return addHeapObject(ret)
|
|
537
|
+
}
|
|
385
538
|
|
|
386
539
|
export function __wbindgen_is_string(arg0) {
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
}
|
|
540
|
+
const ret = typeof getObject(arg0) === 'string'
|
|
541
|
+
return ret
|
|
542
|
+
}
|
|
390
543
|
|
|
391
|
-
export function
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
}
|
|
544
|
+
export function __wbindgen_is_falsy(arg0) {
|
|
545
|
+
const ret = !getObject(arg0)
|
|
546
|
+
return ret
|
|
547
|
+
}
|
|
395
548
|
|
|
396
|
-
export function
|
|
397
|
-
|
|
398
|
-
|
|
549
|
+
export function __wbg_new_abda76e883ba8a5f() {
|
|
550
|
+
const ret = new Error()
|
|
551
|
+
return addHeapObject(ret)
|
|
552
|
+
}
|
|
399
553
|
|
|
400
|
-
export function
|
|
401
|
-
|
|
402
|
-
|
|
554
|
+
export function __wbg_stack_658279fe44541cf6(arg0, arg1) {
|
|
555
|
+
const ret = getObject(arg1).stack
|
|
556
|
+
const ptr1 = passStringToWasm0(
|
|
557
|
+
ret,
|
|
558
|
+
wasm.__wbindgen_malloc,
|
|
559
|
+
wasm.__wbindgen_realloc,
|
|
560
|
+
)
|
|
561
|
+
const len1 = WASM_VECTOR_LEN
|
|
562
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1
|
|
563
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1
|
|
564
|
+
}
|
|
403
565
|
|
|
404
|
-
export function
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
566
|
+
export function __wbg_error_f851667af71bcfc6(arg0, arg1) {
|
|
567
|
+
let deferred0_0
|
|
568
|
+
let deferred0_1
|
|
569
|
+
try {
|
|
570
|
+
deferred0_0 = arg0
|
|
571
|
+
deferred0_1 = arg1
|
|
572
|
+
console.error(getStringFromWasm0(arg0, arg1))
|
|
573
|
+
} finally {
|
|
574
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1)
|
|
575
|
+
}
|
|
576
|
+
}
|
|
408
577
|
|
|
409
|
-
export function
|
|
410
|
-
|
|
411
|
-
|
|
578
|
+
export function __wbg_fetch_693453ca3f88c055(arg0, arg1) {
|
|
579
|
+
const ret = getObject(arg0).fetch(getObject(arg1))
|
|
580
|
+
return addHeapObject(ret)
|
|
581
|
+
}
|
|
412
582
|
|
|
413
583
|
export function __wbindgen_number_new(arg0) {
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
}
|
|
584
|
+
const ret = arg0
|
|
585
|
+
return addHeapObject(ret)
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
export function __wbg_instanceof_IdbFactory_32ca5b61b481d0d4(arg0) {
|
|
589
|
+
let result
|
|
590
|
+
try {
|
|
591
|
+
result = getObject(arg0) instanceof IDBFactory
|
|
592
|
+
} catch (_) {
|
|
593
|
+
result = false
|
|
594
|
+
}
|
|
595
|
+
const ret = result
|
|
596
|
+
return ret
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
export function __wbg_open_65e0826fa9c7929c() {
|
|
600
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
601
|
+
const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), arg3 >>> 0)
|
|
602
|
+
return addHeapObject(ret)
|
|
603
|
+
}, arguments)
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
export function __wbg_open_7cc5c5a15ff86a65() {
|
|
607
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
608
|
+
const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2))
|
|
609
|
+
return addHeapObject(ret)
|
|
610
|
+
}, arguments)
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
export function __wbg_key_f5b181c13a2893c4() {
|
|
614
|
+
return handleError(function (arg0) {
|
|
615
|
+
const ret = getObject(arg0).key
|
|
616
|
+
return addHeapObject(ret)
|
|
617
|
+
}, arguments)
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
export function __wbg_advance_4a9fc46f41566dd7() {
|
|
621
|
+
return handleError(function (arg0, arg1) {
|
|
622
|
+
getObject(arg0).advance(arg1 >>> 0)
|
|
623
|
+
}, arguments)
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
export function __wbg_continue_ff6b09291a37ea4f() {
|
|
627
|
+
return handleError(function (arg0) {
|
|
628
|
+
getObject(arg0).continue()
|
|
629
|
+
}, arguments)
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
export function __wbg_target_52ddf6955f636bf5(arg0) {
|
|
633
|
+
const ret = getObject(arg0).target
|
|
634
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret)
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
export function __wbg_objectStoreNames_71c3096b04c76bcd(arg0) {
|
|
638
|
+
const ret = getObject(arg0).objectStoreNames
|
|
639
|
+
return addHeapObject(ret)
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
export function __wbg_createObjectStore_45c05e7be9907fde() {
|
|
643
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
644
|
+
const ret = getObject(arg0).createObjectStore(
|
|
645
|
+
getStringFromWasm0(arg1, arg2),
|
|
646
|
+
getObject(arg3),
|
|
647
|
+
)
|
|
648
|
+
return addHeapObject(ret)
|
|
649
|
+
}, arguments)
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
export function __wbg_deleteObjectStore_517effefcf018434() {
|
|
653
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
654
|
+
getObject(arg0).deleteObjectStore(getStringFromWasm0(arg1, arg2))
|
|
655
|
+
}, arguments)
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
export function __wbg_transaction_632c349fd48458fb() {
|
|
659
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
660
|
+
const ret = getObject(arg0).transaction(getObject(arg1), takeObject(arg2))
|
|
661
|
+
return addHeapObject(ret)
|
|
662
|
+
}, arguments)
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
export function __wbg_new_7a20246daa6eec7e() {
|
|
666
|
+
return handleError(function () {
|
|
667
|
+
const ret = new Headers()
|
|
668
|
+
return addHeapObject(ret)
|
|
669
|
+
}, arguments)
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
export function __wbg_append_aa3f462f9e2b5ff2() {
|
|
673
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
674
|
+
getObject(arg0).append(
|
|
675
|
+
getStringFromWasm0(arg1, arg2),
|
|
676
|
+
getStringFromWasm0(arg3, arg4),
|
|
677
|
+
)
|
|
678
|
+
}, arguments)
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
export function __wbg_value_818a84b71c8d6a92() {
|
|
682
|
+
return handleError(function (arg0) {
|
|
683
|
+
const ret = getObject(arg0).value
|
|
684
|
+
return addHeapObject(ret)
|
|
685
|
+
}, arguments)
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
export function __wbg_newwithstrandinit_f581dff0d19a8b03() {
|
|
689
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
690
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2))
|
|
691
|
+
return addHeapObject(ret)
|
|
692
|
+
}, arguments)
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
export function __wbg_indexNames_cd26d0c4a3e2e6d3(arg0) {
|
|
696
|
+
const ret = getObject(arg0).indexNames
|
|
697
|
+
return addHeapObject(ret)
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
export function __wbg_createIndex_e1a9dfc378a45abb() {
|
|
701
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
702
|
+
const ret = getObject(arg0).createIndex(
|
|
703
|
+
getStringFromWasm0(arg1, arg2),
|
|
704
|
+
getObject(arg3),
|
|
705
|
+
getObject(arg4),
|
|
706
|
+
)
|
|
707
|
+
return addHeapObject(ret)
|
|
708
|
+
}, arguments)
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
export function __wbg_delete_e8e3bfaf1ea215be() {
|
|
712
|
+
return handleError(function (arg0, arg1) {
|
|
713
|
+
const ret = getObject(arg0).delete(getObject(arg1))
|
|
714
|
+
return addHeapObject(ret)
|
|
715
|
+
}, arguments)
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
export function __wbg_deleteIndex_fdc764ebf52d4c6e() {
|
|
719
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
720
|
+
getObject(arg0).deleteIndex(getStringFromWasm0(arg1, arg2))
|
|
721
|
+
}, arguments)
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
export function __wbg_openCursor_218846b7f56f5d54() {
|
|
725
|
+
return handleError(function (arg0) {
|
|
726
|
+
const ret = getObject(arg0).openCursor()
|
|
727
|
+
return addHeapObject(ret)
|
|
728
|
+
}, arguments)
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
export function __wbg_openCursor_31878cfe72aac75c() {
|
|
732
|
+
return handleError(function (arg0, arg1) {
|
|
733
|
+
const ret = getObject(arg0).openCursor(getObject(arg1))
|
|
734
|
+
return addHeapObject(ret)
|
|
735
|
+
}, arguments)
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
export function __wbg_openCursor_028e15e1e8bc1d13() {
|
|
739
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
740
|
+
const ret = getObject(arg0).openCursor(getObject(arg1), takeObject(arg2))
|
|
741
|
+
return addHeapObject(ret)
|
|
742
|
+
}, arguments)
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
export function __wbg_put_23b163c3aeb63c96() {
|
|
746
|
+
return handleError(function (arg0, arg1) {
|
|
747
|
+
const ret = getObject(arg0).put(getObject(arg1))
|
|
748
|
+
return addHeapObject(ret)
|
|
749
|
+
}, arguments)
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
export function __wbg_put_f50a8dd6e4a8a13a() {
|
|
753
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
754
|
+
const ret = getObject(arg0).put(getObject(arg1), getObject(arg2))
|
|
755
|
+
return addHeapObject(ret)
|
|
756
|
+
}, arguments)
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
export function __wbg_setonupgradeneeded_73793bc200a4f7b8(arg0, arg1) {
|
|
760
|
+
getObject(arg0).onupgradeneeded = getObject(arg1)
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
export function __wbg_result_915d75a0bb0397a1() {
|
|
764
|
+
return handleError(function (arg0) {
|
|
765
|
+
const ret = getObject(arg0).result
|
|
766
|
+
return addHeapObject(ret)
|
|
767
|
+
}, arguments)
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
export function __wbg_error_a093a4b69c2260a3() {
|
|
771
|
+
return handleError(function (arg0) {
|
|
772
|
+
const ret = getObject(arg0).error
|
|
773
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret)
|
|
774
|
+
}, arguments)
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
export function __wbg_transaction_fe8e1f87ae7ea4cc(arg0) {
|
|
778
|
+
const ret = getObject(arg0).transaction
|
|
779
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret)
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
export function __wbg_setonsuccess_a04d5d5a703ed886(arg0, arg1) {
|
|
783
|
+
getObject(arg0).onsuccess = getObject(arg1)
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
export function __wbg_setonerror_80c9bac4e4864adf(arg0, arg1) {
|
|
787
|
+
getObject(arg0).onerror = getObject(arg1)
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
export function __wbg_setonabort_568145f0fa09b9be(arg0, arg1) {
|
|
791
|
+
getObject(arg0).onabort = getObject(arg1)
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
export function __wbg_setoncomplete_e9993a45b7bfaec4(arg0, arg1) {
|
|
795
|
+
getObject(arg0).oncomplete = getObject(arg1)
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
export function __wbg_setonerror_d17408c3482b10eb(arg0, arg1) {
|
|
799
|
+
getObject(arg0).onerror = getObject(arg1)
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
export function __wbg_abort_7691b818613905b3() {
|
|
803
|
+
return handleError(function (arg0) {
|
|
804
|
+
getObject(arg0).abort()
|
|
805
|
+
}, arguments)
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
export function __wbg_commit_07f92304c2c4ba17() {
|
|
809
|
+
return handleError(function (arg0) {
|
|
810
|
+
getObject(arg0).commit()
|
|
811
|
+
}, arguments)
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
export function __wbg_objectStore_b0e52dee7e737df7() {
|
|
815
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
816
|
+
const ret = getObject(arg0).objectStore(getStringFromWasm0(arg1, arg2))
|
|
817
|
+
return addHeapObject(ret)
|
|
818
|
+
}, arguments)
|
|
819
|
+
}
|
|
417
820
|
|
|
418
821
|
export function __wbg_instanceof_Response_4c3b1446206114d1(arg0) {
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
}
|
|
822
|
+
let result
|
|
823
|
+
try {
|
|
824
|
+
result = getObject(arg0) instanceof Response
|
|
825
|
+
} catch (_) {
|
|
826
|
+
result = false
|
|
827
|
+
}
|
|
828
|
+
const ret = result
|
|
829
|
+
return ret
|
|
830
|
+
}
|
|
428
831
|
|
|
429
832
|
export function __wbg_url_83a6a4f65f7a2b38(arg0, arg1) {
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
833
|
+
const ret = getObject(arg1).url
|
|
834
|
+
const ptr1 = passStringToWasm0(
|
|
835
|
+
ret,
|
|
836
|
+
wasm.__wbindgen_malloc,
|
|
837
|
+
wasm.__wbindgen_realloc,
|
|
838
|
+
)
|
|
839
|
+
const len1 = WASM_VECTOR_LEN
|
|
840
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1
|
|
841
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1
|
|
842
|
+
}
|
|
436
843
|
|
|
437
844
|
export function __wbg_status_d6d47ad2837621eb(arg0) {
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
}
|
|
845
|
+
const ret = getObject(arg0).status
|
|
846
|
+
return ret
|
|
847
|
+
}
|
|
441
848
|
|
|
442
849
|
export function __wbg_headers_24def508a7518df9(arg0) {
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
}
|
|
850
|
+
const ret = getObject(arg0).headers
|
|
851
|
+
return addHeapObject(ret)
|
|
852
|
+
}
|
|
446
853
|
|
|
447
|
-
export function __wbg_arrayBuffer_5b2688e3dd873fed() {
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
854
|
+
export function __wbg_arrayBuffer_5b2688e3dd873fed() {
|
|
855
|
+
return handleError(function (arg0) {
|
|
856
|
+
const ret = getObject(arg0).arrayBuffer()
|
|
857
|
+
return addHeapObject(ret)
|
|
858
|
+
}, arguments)
|
|
859
|
+
}
|
|
451
860
|
|
|
452
|
-
export function __wbg_text_668782292b0bc561() {
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
861
|
+
export function __wbg_text_668782292b0bc561() {
|
|
862
|
+
return handleError(function (arg0) {
|
|
863
|
+
const ret = getObject(arg0).text()
|
|
864
|
+
return addHeapObject(ret)
|
|
865
|
+
}, arguments)
|
|
866
|
+
}
|
|
456
867
|
|
|
457
|
-
export function
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
}
|
|
868
|
+
export function __wbg_data_ba3ea616b5392abf(arg0) {
|
|
869
|
+
const ret = getObject(arg0).data
|
|
870
|
+
return addHeapObject(ret)
|
|
871
|
+
}
|
|
461
872
|
|
|
462
|
-
export function
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
}
|
|
873
|
+
export function __wbg_length_acb2c4bcbfef2f1a(arg0) {
|
|
874
|
+
const ret = getObject(arg0).length
|
|
875
|
+
return ret
|
|
876
|
+
}
|
|
466
877
|
|
|
467
|
-
export function
|
|
468
|
-
|
|
469
|
-
|
|
878
|
+
export function __wbg_contains_f2be25be0242ccea(arg0, arg1, arg2) {
|
|
879
|
+
const ret = getObject(arg0).contains(getStringFromWasm0(arg1, arg2))
|
|
880
|
+
return ret
|
|
881
|
+
}
|
|
470
882
|
|
|
471
|
-
export function
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
883
|
+
export function __wbg_get_f31a9f341421cffd(arg0, arg1, arg2) {
|
|
884
|
+
const ret = getObject(arg1)[arg2 >>> 0]
|
|
885
|
+
var ptr1 = isLikeNone(ret)
|
|
886
|
+
? 0
|
|
887
|
+
: passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc)
|
|
888
|
+
var len1 = WASM_VECTOR_LEN
|
|
889
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1
|
|
890
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1
|
|
891
|
+
}
|
|
475
892
|
|
|
476
|
-
export function
|
|
477
|
-
|
|
478
|
-
|
|
893
|
+
export function __wbg_addEventListener_9bf60ea8a362e5e4() {
|
|
894
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
895
|
+
getObject(arg0).addEventListener(
|
|
896
|
+
getStringFromWasm0(arg1, arg2),
|
|
897
|
+
getObject(arg3),
|
|
898
|
+
)
|
|
899
|
+
}, arguments)
|
|
900
|
+
}
|
|
479
901
|
|
|
480
|
-
export function
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
902
|
+
export function __wbg_addEventListener_374cbfd2bbc19ccf() {
|
|
903
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
904
|
+
getObject(arg0).addEventListener(
|
|
905
|
+
getStringFromWasm0(arg1, arg2),
|
|
906
|
+
getObject(arg3),
|
|
907
|
+
getObject(arg4),
|
|
908
|
+
)
|
|
909
|
+
}, arguments)
|
|
910
|
+
}
|
|
484
911
|
|
|
485
|
-
export function
|
|
486
|
-
|
|
487
|
-
|
|
912
|
+
export function __wbg_dispatchEvent_40c3472e9e4dcf5e() {
|
|
913
|
+
return handleError(function (arg0, arg1) {
|
|
914
|
+
const ret = getObject(arg0).dispatchEvent(getObject(arg1))
|
|
915
|
+
return ret
|
|
916
|
+
}, arguments)
|
|
917
|
+
}
|
|
488
918
|
|
|
489
|
-
export function
|
|
490
|
-
|
|
491
|
-
|
|
919
|
+
export function __wbg_removeEventListener_66ee1536a0b32c11() {
|
|
920
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
921
|
+
getObject(arg0).removeEventListener(
|
|
922
|
+
getStringFromWasm0(arg1, arg2),
|
|
923
|
+
getObject(arg3),
|
|
924
|
+
)
|
|
925
|
+
}, arguments)
|
|
926
|
+
}
|
|
492
927
|
|
|
493
|
-
export function
|
|
494
|
-
|
|
495
|
-
|
|
928
|
+
export function __wbg_signal_3c701f5f40a5f08d(arg0) {
|
|
929
|
+
const ret = getObject(arg0).signal
|
|
930
|
+
return addHeapObject(ret)
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
export function __wbg_new_0ae46f44b7485bb2() {
|
|
934
|
+
return handleError(function () {
|
|
935
|
+
const ret = new AbortController()
|
|
936
|
+
return addHeapObject(ret)
|
|
937
|
+
}, arguments)
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
export function __wbg_abort_2c4fb490d878d2b2(arg0) {
|
|
941
|
+
getObject(arg0).abort()
|
|
942
|
+
}
|
|
496
943
|
|
|
497
944
|
export function __wbg_wasClean_1efd9561c5671b45(arg0) {
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
}
|
|
945
|
+
const ret = getObject(arg0).wasClean
|
|
946
|
+
return ret
|
|
947
|
+
}
|
|
501
948
|
|
|
502
949
|
export function __wbg_code_72a380a2ce61a242(arg0) {
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
}
|
|
950
|
+
const ret = getObject(arg0).code
|
|
951
|
+
return ret
|
|
952
|
+
}
|
|
506
953
|
|
|
507
954
|
export function __wbg_reason_ad453a16ee68a1b9(arg0, arg1) {
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
}, arguments) };
|
|
519
|
-
|
|
520
|
-
export function __wbg_newwithstrandinit_f581dff0d19a8b03() { return handleError(function (arg0, arg1, arg2) {
|
|
521
|
-
const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
522
|
-
return addHeapObject(ret);
|
|
523
|
-
}, arguments) };
|
|
524
|
-
|
|
525
|
-
export function __wbg_new_7a20246daa6eec7e() { return handleError(function () {
|
|
526
|
-
const ret = new Headers();
|
|
527
|
-
return addHeapObject(ret);
|
|
528
|
-
}, arguments) };
|
|
529
|
-
|
|
530
|
-
export function __wbg_append_aa3f462f9e2b5ff2() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
531
|
-
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
532
|
-
}, arguments) };
|
|
955
|
+
const ret = getObject(arg1).reason
|
|
956
|
+
const ptr1 = passStringToWasm0(
|
|
957
|
+
ret,
|
|
958
|
+
wasm.__wbindgen_malloc,
|
|
959
|
+
wasm.__wbindgen_realloc,
|
|
960
|
+
)
|
|
961
|
+
const len1 = WASM_VECTOR_LEN
|
|
962
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1
|
|
963
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1
|
|
964
|
+
}
|
|
533
965
|
|
|
534
|
-
export function
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
966
|
+
export function __wbg_newwitheventinitdict_744eb6eb61245b7c() {
|
|
967
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
968
|
+
const ret = new CloseEvent(getStringFromWasm0(arg0, arg1), getObject(arg2))
|
|
969
|
+
return addHeapObject(ret)
|
|
970
|
+
}, arguments)
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
export function __wbg_readyState_c8f9a5deaec3bb41(arg0) {
|
|
974
|
+
const ret = getObject(arg0).readyState
|
|
975
|
+
return ret
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
export function __wbg_setbinaryType_68fc3c6feda7310c(arg0, arg1) {
|
|
979
|
+
getObject(arg0).binaryType = takeObject(arg1)
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
export function __wbg_new_2575c598b4006174() {
|
|
983
|
+
return handleError(function (arg0, arg1) {
|
|
984
|
+
const ret = new WebSocket(getStringFromWasm0(arg0, arg1))
|
|
985
|
+
return addHeapObject(ret)
|
|
986
|
+
}, arguments)
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
export function __wbg_close_328b8b803521cbdd() {
|
|
990
|
+
return handleError(function (arg0) {
|
|
991
|
+
getObject(arg0).close()
|
|
992
|
+
}, arguments)
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
export function __wbg_send_5bf3f962e9ffe0f6() {
|
|
996
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
997
|
+
getObject(arg0).send(getStringFromWasm0(arg1, arg2))
|
|
998
|
+
}, arguments)
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
export function __wbg_send_2ba7d32fcb03b9a4() {
|
|
1002
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
1003
|
+
getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2))
|
|
1004
|
+
}, arguments)
|
|
1005
|
+
}
|
|
538
1006
|
|
|
539
1007
|
export function __wbg_clearTimeout_541ac0980ffcef74(arg0) {
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
}
|
|
1008
|
+
const ret = clearTimeout(takeObject(arg0))
|
|
1009
|
+
return addHeapObject(ret)
|
|
1010
|
+
}
|
|
543
1011
|
|
|
544
|
-
export function __wbg_setTimeout_7d81d052875b0f4f() {
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
1012
|
+
export function __wbg_setTimeout_7d81d052875b0f4f() {
|
|
1013
|
+
return handleError(function (arg0, arg1) {
|
|
1014
|
+
const ret = setTimeout(getObject(arg0), arg1)
|
|
1015
|
+
return addHeapObject(ret)
|
|
1016
|
+
}, arguments)
|
|
1017
|
+
}
|
|
548
1018
|
|
|
549
1019
|
export function __wbg_queueMicrotask_3cbae2ec6b6cd3d6(arg0) {
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
}
|
|
1020
|
+
const ret = getObject(arg0).queueMicrotask
|
|
1021
|
+
return addHeapObject(ret)
|
|
1022
|
+
}
|
|
553
1023
|
|
|
554
1024
|
export function __wbindgen_is_function(arg0) {
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
}
|
|
1025
|
+
const ret = typeof getObject(arg0) === 'function'
|
|
1026
|
+
return ret
|
|
1027
|
+
}
|
|
558
1028
|
|
|
559
1029
|
export function __wbg_queueMicrotask_481971b0d87f3dd4(arg0) {
|
|
560
|
-
|
|
561
|
-
}
|
|
1030
|
+
queueMicrotask(getObject(arg0))
|
|
1031
|
+
}
|
|
562
1032
|
|
|
563
1033
|
export function __wbg_clearTimeout_76877dbc010e786d(arg0) {
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
}
|
|
1034
|
+
const ret = clearTimeout(takeObject(arg0))
|
|
1035
|
+
return addHeapObject(ret)
|
|
1036
|
+
}
|
|
567
1037
|
|
|
568
|
-
export function __wbg_setTimeout_75cb9b6991a4031d() {
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
1038
|
+
export function __wbg_setTimeout_75cb9b6991a4031d() {
|
|
1039
|
+
return handleError(function (arg0, arg1) {
|
|
1040
|
+
const ret = setTimeout(getObject(arg0), arg1)
|
|
1041
|
+
return addHeapObject(ret)
|
|
1042
|
+
}, arguments)
|
|
1043
|
+
}
|
|
572
1044
|
|
|
573
1045
|
export function __wbg_crypto_1d1f22824a6a080c(arg0) {
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
}
|
|
1046
|
+
const ret = getObject(arg0).crypto
|
|
1047
|
+
return addHeapObject(ret)
|
|
1048
|
+
}
|
|
577
1049
|
|
|
578
1050
|
export function __wbindgen_is_object(arg0) {
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
}
|
|
1051
|
+
const val = getObject(arg0)
|
|
1052
|
+
const ret = typeof val === 'object' && val !== null
|
|
1053
|
+
return ret
|
|
1054
|
+
}
|
|
583
1055
|
|
|
584
1056
|
export function __wbg_process_4a72847cc503995b(arg0) {
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
}
|
|
1057
|
+
const ret = getObject(arg0).process
|
|
1058
|
+
return addHeapObject(ret)
|
|
1059
|
+
}
|
|
588
1060
|
|
|
589
1061
|
export function __wbg_versions_f686565e586dd935(arg0) {
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
}
|
|
1062
|
+
const ret = getObject(arg0).versions
|
|
1063
|
+
return addHeapObject(ret)
|
|
1064
|
+
}
|
|
593
1065
|
|
|
594
1066
|
export function __wbg_node_104a2ff8d6ea03a2(arg0) {
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
}
|
|
1067
|
+
const ret = getObject(arg0).node
|
|
1068
|
+
return addHeapObject(ret)
|
|
1069
|
+
}
|
|
598
1070
|
|
|
599
|
-
export function __wbg_require_cca90b1a94a0255b() {
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
1071
|
+
export function __wbg_require_cca90b1a94a0255b() {
|
|
1072
|
+
return handleError(function () {
|
|
1073
|
+
const ret = module.require
|
|
1074
|
+
return addHeapObject(ret)
|
|
1075
|
+
}, arguments)
|
|
1076
|
+
}
|
|
603
1077
|
|
|
604
1078
|
export function __wbg_msCrypto_eb05e62b530a1508(arg0) {
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
}
|
|
1079
|
+
const ret = getObject(arg0).msCrypto
|
|
1080
|
+
return addHeapObject(ret)
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
export function __wbg_randomFillSync_5c9c955aa56b6049() {
|
|
1084
|
+
return handleError(function (arg0, arg1) {
|
|
1085
|
+
getObject(arg0).randomFillSync(takeObject(arg1))
|
|
1086
|
+
}, arguments)
|
|
1087
|
+
}
|
|
608
1088
|
|
|
609
|
-
export function
|
|
610
|
-
|
|
611
|
-
|
|
1089
|
+
export function __wbg_getRandomValues_3aa56aa6edec874c() {
|
|
1090
|
+
return handleError(function (arg0, arg1) {
|
|
1091
|
+
getObject(arg0).getRandomValues(getObject(arg1))
|
|
1092
|
+
}, arguments)
|
|
1093
|
+
}
|
|
612
1094
|
|
|
613
|
-
export function
|
|
614
|
-
|
|
615
|
-
|
|
1095
|
+
export function __wbg_new_16b304a2cfa7ff4a() {
|
|
1096
|
+
const ret = new Array()
|
|
1097
|
+
return addHeapObject(ret)
|
|
1098
|
+
}
|
|
616
1099
|
|
|
617
1100
|
export function __wbg_newnoargs_e258087cd0daa0ea(arg0, arg1) {
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
}
|
|
1101
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1))
|
|
1102
|
+
return addHeapObject(ret)
|
|
1103
|
+
}
|
|
621
1104
|
|
|
622
1105
|
export function __wbg_next_40fc327bfc8770e6(arg0) {
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
}
|
|
1106
|
+
const ret = getObject(arg0).next
|
|
1107
|
+
return addHeapObject(ret)
|
|
1108
|
+
}
|
|
626
1109
|
|
|
627
|
-
export function __wbg_next_196c84450b364254() {
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
1110
|
+
export function __wbg_next_196c84450b364254() {
|
|
1111
|
+
return handleError(function (arg0) {
|
|
1112
|
+
const ret = getObject(arg0).next()
|
|
1113
|
+
return addHeapObject(ret)
|
|
1114
|
+
}, arguments)
|
|
1115
|
+
}
|
|
631
1116
|
|
|
632
1117
|
export function __wbg_done_298b57d23c0fc80c(arg0) {
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
}
|
|
1118
|
+
const ret = getObject(arg0).done
|
|
1119
|
+
return ret
|
|
1120
|
+
}
|
|
636
1121
|
|
|
637
1122
|
export function __wbg_value_d93c65011f51a456(arg0) {
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
}
|
|
1123
|
+
const ret = getObject(arg0).value
|
|
1124
|
+
return addHeapObject(ret)
|
|
1125
|
+
}
|
|
641
1126
|
|
|
642
1127
|
export function __wbg_iterator_2cee6dadfd956dfa() {
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
}
|
|
1128
|
+
const ret = Symbol.iterator
|
|
1129
|
+
return addHeapObject(ret)
|
|
1130
|
+
}
|
|
646
1131
|
|
|
647
|
-
export function __wbg_get_e3c254076557e348() {
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
1132
|
+
export function __wbg_get_e3c254076557e348() {
|
|
1133
|
+
return handleError(function (arg0, arg1) {
|
|
1134
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1))
|
|
1135
|
+
return addHeapObject(ret)
|
|
1136
|
+
}, arguments)
|
|
1137
|
+
}
|
|
651
1138
|
|
|
652
|
-
export function __wbg_call_27c0f87801dedf93() {
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
1139
|
+
export function __wbg_call_27c0f87801dedf93() {
|
|
1140
|
+
return handleError(function (arg0, arg1) {
|
|
1141
|
+
const ret = getObject(arg0).call(getObject(arg1))
|
|
1142
|
+
return addHeapObject(ret)
|
|
1143
|
+
}, arguments)
|
|
1144
|
+
}
|
|
656
1145
|
|
|
657
1146
|
export function __wbg_new_72fb9a18b5ae2624() {
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
export function __wbg_self_ce0dbfc45cf2f5be() {
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
const ret =
|
|
679
|
-
return addHeapObject(ret)
|
|
680
|
-
}, arguments)
|
|
1147
|
+
const ret = new Object()
|
|
1148
|
+
return addHeapObject(ret)
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
export function __wbg_self_ce0dbfc45cf2f5be() {
|
|
1152
|
+
return handleError(function () {
|
|
1153
|
+
const ret = self.self
|
|
1154
|
+
return addHeapObject(ret)
|
|
1155
|
+
}, arguments)
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
export function __wbg_window_c6fb939a7f436783() {
|
|
1159
|
+
return handleError(function () {
|
|
1160
|
+
const ret = window.window
|
|
1161
|
+
return addHeapObject(ret)
|
|
1162
|
+
}, arguments)
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
export function __wbg_globalThis_d1e6af4856ba331b() {
|
|
1166
|
+
return handleError(function () {
|
|
1167
|
+
const ret = globalThis.globalThis
|
|
1168
|
+
return addHeapObject(ret)
|
|
1169
|
+
}, arguments)
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
export function __wbg_global_207b558942527489() {
|
|
1173
|
+
return handleError(function () {
|
|
1174
|
+
const ret = global.global
|
|
1175
|
+
return addHeapObject(ret)
|
|
1176
|
+
}, arguments)
|
|
1177
|
+
}
|
|
681
1178
|
|
|
682
1179
|
export function __wbindgen_is_undefined(arg0) {
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
}
|
|
1180
|
+
const ret = getObject(arg0) === undefined
|
|
1181
|
+
return ret
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
export function __wbg_push_a5b05aedc7234f9f(arg0, arg1) {
|
|
1185
|
+
const ret = getObject(arg0).push(getObject(arg1))
|
|
1186
|
+
return ret
|
|
1187
|
+
}
|
|
686
1188
|
|
|
687
1189
|
export function __wbg_instanceof_ArrayBuffer_836825be07d4c9d2(arg0) {
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
}
|
|
1190
|
+
let result
|
|
1191
|
+
try {
|
|
1192
|
+
result = getObject(arg0) instanceof ArrayBuffer
|
|
1193
|
+
} catch (_) {
|
|
1194
|
+
result = false
|
|
1195
|
+
}
|
|
1196
|
+
const ret = result
|
|
1197
|
+
return ret
|
|
1198
|
+
}
|
|
697
1199
|
|
|
698
1200
|
export function __wbg_instanceof_Error_e20bb56fd5591a93(arg0) {
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
}
|
|
1201
|
+
let result
|
|
1202
|
+
try {
|
|
1203
|
+
result = getObject(arg0) instanceof Error
|
|
1204
|
+
} catch (_) {
|
|
1205
|
+
result = false
|
|
1206
|
+
}
|
|
1207
|
+
const ret = result
|
|
1208
|
+
return ret
|
|
1209
|
+
}
|
|
708
1210
|
|
|
709
1211
|
export function __wbg_message_5bf28016c2b49cfb(arg0) {
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
}
|
|
1212
|
+
const ret = getObject(arg0).message
|
|
1213
|
+
return addHeapObject(ret)
|
|
1214
|
+
}
|
|
713
1215
|
|
|
714
1216
|
export function __wbg_name_e7429f0dda6079e2(arg0) {
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
}
|
|
1217
|
+
const ret = getObject(arg0).name
|
|
1218
|
+
return addHeapObject(ret)
|
|
1219
|
+
}
|
|
718
1220
|
|
|
719
1221
|
export function __wbg_toString_ffe4c9ea3b3532e9(arg0) {
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
}
|
|
1222
|
+
const ret = getObject(arg0).toString()
|
|
1223
|
+
return addHeapObject(ret)
|
|
1224
|
+
}
|
|
723
1225
|
|
|
724
|
-
export function __wbg_call_b3ca7c6051f9bec1() {
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
1226
|
+
export function __wbg_call_b3ca7c6051f9bec1() {
|
|
1227
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
1228
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2))
|
|
1229
|
+
return addHeapObject(ret)
|
|
1230
|
+
}, arguments)
|
|
1231
|
+
}
|
|
728
1232
|
|
|
729
1233
|
export function __wbg_getTime_2bc4375165f02d15(arg0) {
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
}
|
|
1234
|
+
const ret = getObject(arg0).getTime()
|
|
1235
|
+
return ret
|
|
1236
|
+
}
|
|
733
1237
|
|
|
734
1238
|
export function __wbg_new0_7d84e5b2cd9fdc73() {
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
}
|
|
1239
|
+
const ret = new Date()
|
|
1240
|
+
return addHeapObject(ret)
|
|
1241
|
+
}
|
|
738
1242
|
|
|
739
1243
|
export function __wbg_new_81740750da40724f(arg0, arg1) {
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
};
|
|
751
|
-
const ret = new Promise(cb0);
|
|
752
|
-
return addHeapObject(ret);
|
|
753
|
-
} finally {
|
|
754
|
-
state0.a = state0.b = 0;
|
|
1244
|
+
try {
|
|
1245
|
+
var state0 = { a: arg0, b: arg1 }
|
|
1246
|
+
var cb0 = (arg0, arg1) => {
|
|
1247
|
+
const a = state0.a
|
|
1248
|
+
state0.a = 0
|
|
1249
|
+
try {
|
|
1250
|
+
return __wbg_adapter_261(a, state0.b, arg0, arg1)
|
|
1251
|
+
} finally {
|
|
1252
|
+
state0.a = a
|
|
1253
|
+
}
|
|
755
1254
|
}
|
|
756
|
-
|
|
1255
|
+
const ret = new Promise(cb0)
|
|
1256
|
+
return addHeapObject(ret)
|
|
1257
|
+
} finally {
|
|
1258
|
+
state0.a = state0.b = 0
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
757
1261
|
|
|
758
1262
|
export function __wbg_resolve_b0083a7967828ec8(arg0) {
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
}
|
|
1263
|
+
const ret = Promise.resolve(getObject(arg0))
|
|
1264
|
+
return addHeapObject(ret)
|
|
1265
|
+
}
|
|
762
1266
|
|
|
763
1267
|
export function __wbg_then_0c86a60e8fcfe9f6(arg0, arg1) {
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
}
|
|
1268
|
+
const ret = getObject(arg0).then(getObject(arg1))
|
|
1269
|
+
return addHeapObject(ret)
|
|
1270
|
+
}
|
|
767
1271
|
|
|
768
1272
|
export function __wbg_then_a73caa9a87991566(arg0, arg1, arg2) {
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
}
|
|
1273
|
+
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2))
|
|
1274
|
+
return addHeapObject(ret)
|
|
1275
|
+
}
|
|
772
1276
|
|
|
773
1277
|
export function __wbg_buffer_12d079cc21e14bdb(arg0) {
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
}
|
|
1278
|
+
const ret = getObject(arg0).buffer
|
|
1279
|
+
return addHeapObject(ret)
|
|
1280
|
+
}
|
|
777
1281
|
|
|
778
|
-
export function __wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb(
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
1282
|
+
export function __wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb(
|
|
1283
|
+
arg0,
|
|
1284
|
+
arg1,
|
|
1285
|
+
arg2,
|
|
1286
|
+
) {
|
|
1287
|
+
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0)
|
|
1288
|
+
return addHeapObject(ret)
|
|
1289
|
+
}
|
|
782
1290
|
|
|
783
1291
|
export function __wbg_new_63b92bc8671ed464(arg0) {
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
}
|
|
1292
|
+
const ret = new Uint8Array(getObject(arg0))
|
|
1293
|
+
return addHeapObject(ret)
|
|
1294
|
+
}
|
|
787
1295
|
|
|
788
1296
|
export function __wbg_set_a47bac70306a19a7(arg0, arg1, arg2) {
|
|
789
|
-
|
|
790
|
-
}
|
|
1297
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0)
|
|
1298
|
+
}
|
|
791
1299
|
|
|
792
1300
|
export function __wbg_length_c20a40f15020d68a(arg0) {
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
}
|
|
1301
|
+
const ret = getObject(arg0).length
|
|
1302
|
+
return ret
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
export function __wbg_instanceof_Uint8Array_2b3bbecd033d19f6(arg0) {
|
|
1306
|
+
let result
|
|
1307
|
+
try {
|
|
1308
|
+
result = getObject(arg0) instanceof Uint8Array
|
|
1309
|
+
} catch (_) {
|
|
1310
|
+
result = false
|
|
1311
|
+
}
|
|
1312
|
+
const ret = result
|
|
1313
|
+
return ret
|
|
1314
|
+
}
|
|
796
1315
|
|
|
797
1316
|
export function __wbg_newwithlength_e9b4878cebadb3d3(arg0) {
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
}
|
|
1317
|
+
const ret = new Uint8Array(arg0 >>> 0)
|
|
1318
|
+
return addHeapObject(ret)
|
|
1319
|
+
}
|
|
801
1320
|
|
|
802
1321
|
export function __wbg_subarray_a1f73cd4b5b42fe1(arg0, arg1, arg2) {
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
}
|
|
1322
|
+
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0)
|
|
1323
|
+
return addHeapObject(ret)
|
|
1324
|
+
}
|
|
806
1325
|
|
|
807
|
-
export function __wbg_has_0af94d20077affa2() {
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
1326
|
+
export function __wbg_has_0af94d20077affa2() {
|
|
1327
|
+
return handleError(function (arg0, arg1) {
|
|
1328
|
+
const ret = Reflect.has(getObject(arg0), getObject(arg1))
|
|
1329
|
+
return ret
|
|
1330
|
+
}, arguments)
|
|
1331
|
+
}
|
|
811
1332
|
|
|
812
|
-
export function __wbg_set_1f9b04f170055d33() {
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
1333
|
+
export function __wbg_set_1f9b04f170055d33() {
|
|
1334
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
1335
|
+
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2))
|
|
1336
|
+
return ret
|
|
1337
|
+
}, arguments)
|
|
1338
|
+
}
|
|
816
1339
|
|
|
817
|
-
export function __wbg_stringify_8887fe74e1c50d81() {
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
1340
|
+
export function __wbg_stringify_8887fe74e1c50d81() {
|
|
1341
|
+
return handleError(function (arg0) {
|
|
1342
|
+
const ret = JSON.stringify(getObject(arg0))
|
|
1343
|
+
return addHeapObject(ret)
|
|
1344
|
+
}, arguments)
|
|
1345
|
+
}
|
|
821
1346
|
|
|
822
1347
|
export function __wbindgen_debug_string(arg0, arg1) {
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
1348
|
+
const ret = debugString(getObject(arg1))
|
|
1349
|
+
const ptr1 = passStringToWasm0(
|
|
1350
|
+
ret,
|
|
1351
|
+
wasm.__wbindgen_malloc,
|
|
1352
|
+
wasm.__wbindgen_realloc,
|
|
1353
|
+
)
|
|
1354
|
+
const len1 = WASM_VECTOR_LEN
|
|
1355
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1
|
|
1356
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1
|
|
1357
|
+
}
|
|
829
1358
|
|
|
830
1359
|
export function __wbindgen_throw(arg0, arg1) {
|
|
831
|
-
|
|
832
|
-
}
|
|
1360
|
+
throw new Error(getStringFromWasm0(arg0, arg1))
|
|
1361
|
+
}
|
|
833
1362
|
|
|
834
1363
|
export function __wbindgen_memory() {
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
export function
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
export function
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
export function
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
export function
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
export function __wbindgen_closure_wrapper12882(arg0, arg1, arg2) {
|
|
860
|
-
const ret = makeMutClosure(arg0, arg1, 6368, __wbg_adapter_40);
|
|
861
|
-
return addHeapObject(ret);
|
|
862
|
-
};
|
|
863
|
-
|
|
864
|
-
export function __wbindgen_closure_wrapper13597(arg0, arg1, arg2) {
|
|
865
|
-
const ret = makeMutClosure(arg0, arg1, 6553, __wbg_adapter_43);
|
|
866
|
-
return addHeapObject(ret);
|
|
867
|
-
};
|
|
868
|
-
|
|
869
|
-
export function __wbindgen_closure_wrapper13638(arg0, arg1, arg2) {
|
|
870
|
-
const ret = makeMutClosure(arg0, arg1, 6573, __wbg_adapter_46);
|
|
871
|
-
return addHeapObject(ret);
|
|
872
|
-
};
|
|
1364
|
+
const ret = wasm.memory
|
|
1365
|
+
return addHeapObject(ret)
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
export function __wbindgen_closure_wrapper1470(arg0, arg1, arg2) {
|
|
1369
|
+
const ret = makeMutClosure(arg0, arg1, 485, __wbg_adapter_32)
|
|
1370
|
+
return addHeapObject(ret)
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
export function __wbindgen_closure_wrapper11865(arg0, arg1, arg2) {
|
|
1374
|
+
const ret = makeMutClosure(arg0, arg1, 5994, __wbg_adapter_35)
|
|
1375
|
+
return addHeapObject(ret)
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
export function __wbindgen_closure_wrapper11867(arg0, arg1, arg2) {
|
|
1379
|
+
const ret = makeMutClosure(arg0, arg1, 5994, __wbg_adapter_35)
|
|
1380
|
+
return addHeapObject(ret)
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
export function __wbindgen_closure_wrapper11869(arg0, arg1, arg2) {
|
|
1384
|
+
const ret = makeMutClosure(arg0, arg1, 5994, __wbg_adapter_35)
|
|
1385
|
+
return addHeapObject(ret)
|
|
1386
|
+
}
|
|
873
1387
|
|
|
1388
|
+
export function __wbindgen_closure_wrapper11871(arg0, arg1, arg2) {
|
|
1389
|
+
const ret = makeMutClosure(arg0, arg1, 5994, __wbg_adapter_42)
|
|
1390
|
+
return addHeapObject(ret)
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
export function __wbindgen_closure_wrapper11927(arg0, arg1, arg2) {
|
|
1394
|
+
const ret = makeMutClosure(arg0, arg1, 6019, __wbg_adapter_45)
|
|
1395
|
+
return addHeapObject(ret)
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
export function __wbindgen_closure_wrapper13201(arg0, arg1, arg2) {
|
|
1399
|
+
const ret = makeMutClosure(arg0, arg1, 6419, __wbg_adapter_48)
|
|
1400
|
+
return addHeapObject(ret)
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
export function __wbindgen_closure_wrapper13916(arg0, arg1, arg2) {
|
|
1404
|
+
const ret = makeMutClosure(arg0, arg1, 6604, __wbg_adapter_51)
|
|
1405
|
+
return addHeapObject(ret)
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
export function __wbindgen_closure_wrapper13957(arg0, arg1, arg2) {
|
|
1409
|
+
const ret = makeMutClosure(arg0, arg1, 6624, __wbg_adapter_54)
|
|
1410
|
+
return addHeapObject(ret)
|
|
1411
|
+
}
|