bitmask-core 0.7.6-beta.3 → 0.11.0-beta.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.
- package/README.md +4 -1
- package/bitmask_core.d.ts +95 -220
- package/bitmask_core.js +681 -682
- package/bitmask_core_bg.js +913 -668
- package/bitmask_core_bg.wasm +0 -0
- package/bitmask_core_bg.wasm.d.ts +27 -42
- package/constants.js +1 -8
- package/constants.ts +1 -8
- package/package.json +1 -1
- package/rgb.d.ts +39 -54
- package/rgb.d.ts.map +1 -1
- package/rgb.js +129 -70
- package/rgb.ts +122 -127
package/bitmask_core.js
CHANGED
|
@@ -1,42 +1,22 @@
|
|
|
1
1
|
let wasm;
|
|
2
2
|
|
|
3
|
-
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
4
|
-
|
|
5
|
-
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
6
|
-
|
|
7
|
-
let cachedUint8Memory0 = null;
|
|
8
|
-
|
|
9
|
-
function getUint8Memory0() {
|
|
10
|
-
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
11
|
-
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
12
|
-
}
|
|
13
|
-
return cachedUint8Memory0;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function getStringFromWasm0(ptr, len) {
|
|
17
|
-
ptr = ptr >>> 0;
|
|
18
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
19
|
-
}
|
|
20
|
-
|
|
21
3
|
const heap = new Array(128).fill(undefined);
|
|
22
4
|
|
|
23
5
|
heap.push(undefined, null, true, false);
|
|
24
6
|
|
|
25
|
-
let heap_next = heap.length;
|
|
26
|
-
|
|
27
|
-
function addHeapObject(obj) {
|
|
28
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
29
|
-
const idx = heap_next;
|
|
30
|
-
heap_next = heap[idx];
|
|
31
|
-
|
|
32
|
-
heap[idx] = obj;
|
|
33
|
-
return idx;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
7
|
function getObject(idx) { return heap[idx]; }
|
|
37
8
|
|
|
38
9
|
let WASM_VECTOR_LEN = 0;
|
|
39
10
|
|
|
11
|
+
let cachedUint8ArrayMemory0 = null;
|
|
12
|
+
|
|
13
|
+
function getUint8ArrayMemory0() {
|
|
14
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
15
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
16
|
+
}
|
|
17
|
+
return cachedUint8ArrayMemory0;
|
|
18
|
+
}
|
|
19
|
+
|
|
40
20
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
41
21
|
|
|
42
22
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -57,7 +37,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
57
37
|
if (realloc === undefined) {
|
|
58
38
|
const buf = cachedTextEncoder.encode(arg);
|
|
59
39
|
const ptr = malloc(buf.length, 1) >>> 0;
|
|
60
|
-
|
|
40
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
61
41
|
WASM_VECTOR_LEN = buf.length;
|
|
62
42
|
return ptr;
|
|
63
43
|
}
|
|
@@ -65,7 +45,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
65
45
|
let len = arg.length;
|
|
66
46
|
let ptr = malloc(len, 1) >>> 0;
|
|
67
47
|
|
|
68
|
-
const mem =
|
|
48
|
+
const mem = getUint8ArrayMemory0();
|
|
69
49
|
|
|
70
50
|
let offset = 0;
|
|
71
51
|
|
|
@@ -80,10 +60,11 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
80
60
|
arg = arg.slice(offset);
|
|
81
61
|
}
|
|
82
62
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
83
|
-
const view =
|
|
63
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
84
64
|
const ret = encodeString(arg, view);
|
|
85
65
|
|
|
86
66
|
offset += ret.written;
|
|
67
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
87
68
|
}
|
|
88
69
|
|
|
89
70
|
WASM_VECTOR_LEN = offset;
|
|
@@ -94,15 +75,17 @@ function isLikeNone(x) {
|
|
|
94
75
|
return x === undefined || x === null;
|
|
95
76
|
}
|
|
96
77
|
|
|
97
|
-
let
|
|
78
|
+
let cachedDataViewMemory0 = null;
|
|
98
79
|
|
|
99
|
-
function
|
|
100
|
-
if (
|
|
101
|
-
|
|
80
|
+
function getDataViewMemory0() {
|
|
81
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
82
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
102
83
|
}
|
|
103
|
-
return
|
|
84
|
+
return cachedDataViewMemory0;
|
|
104
85
|
}
|
|
105
86
|
|
|
87
|
+
let heap_next = heap.length;
|
|
88
|
+
|
|
106
89
|
function dropObject(idx) {
|
|
107
90
|
if (idx < 132) return;
|
|
108
91
|
heap[idx] = heap_next;
|
|
@@ -115,22 +98,22 @@ function takeObject(idx) {
|
|
|
115
98
|
return ret;
|
|
116
99
|
}
|
|
117
100
|
|
|
118
|
-
|
|
101
|
+
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
119
102
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
return
|
|
103
|
+
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
104
|
+
|
|
105
|
+
function getStringFromWasm0(ptr, len) {
|
|
106
|
+
ptr = ptr >>> 0;
|
|
107
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
125
108
|
}
|
|
126
109
|
|
|
127
|
-
|
|
110
|
+
function addHeapObject(obj) {
|
|
111
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
112
|
+
const idx = heap_next;
|
|
113
|
+
heap_next = heap[idx];
|
|
128
114
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
|
|
132
|
-
}
|
|
133
|
-
return cachedBigInt64Memory0;
|
|
115
|
+
heap[idx] = obj;
|
|
116
|
+
return idx;
|
|
134
117
|
}
|
|
135
118
|
|
|
136
119
|
function debugString(val) {
|
|
@@ -198,6 +181,12 @@ function debugString(val) {
|
|
|
198
181
|
return className;
|
|
199
182
|
}
|
|
200
183
|
|
|
184
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
185
|
+
? { register: () => {}, unregister: () => {} }
|
|
186
|
+
: new FinalizationRegistry(state => {
|
|
187
|
+
wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b)
|
|
188
|
+
});
|
|
189
|
+
|
|
201
190
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
202
191
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
203
192
|
const real = (...args) => {
|
|
@@ -212,204 +201,201 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
212
201
|
} finally {
|
|
213
202
|
if (--state.cnt === 0) {
|
|
214
203
|
wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
|
|
215
|
-
|
|
204
|
+
CLOSURE_DTORS.unregister(state);
|
|
216
205
|
} else {
|
|
217
206
|
state.a = a;
|
|
218
207
|
}
|
|
219
208
|
}
|
|
220
209
|
};
|
|
221
210
|
real.original = state;
|
|
222
|
-
|
|
211
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
223
212
|
return real;
|
|
224
213
|
}
|
|
225
|
-
function
|
|
226
|
-
wasm.
|
|
214
|
+
function __wbg_adapter_52(arg0, arg1, arg2) {
|
|
215
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4a8f0a711fd89483(arg0, arg1, addHeapObject(arg2));
|
|
227
216
|
}
|
|
228
217
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
* @param {boolean} hidden
|
|
232
|
-
* @returns {Promise<any>}
|
|
233
|
-
*/
|
|
234
|
-
export function list_contracts(nostr_hex_sk, hidden) {
|
|
235
|
-
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
236
|
-
const len0 = WASM_VECTOR_LEN;
|
|
237
|
-
const ret = wasm.list_contracts(ptr0, len0, hidden);
|
|
238
|
-
return takeObject(ret);
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* @param {string} nostr_hex_sk
|
|
243
|
-
* @param {string} request
|
|
244
|
-
* @returns {Promise<any>}
|
|
245
|
-
*/
|
|
246
|
-
export function get_contract(nostr_hex_sk, request) {
|
|
247
|
-
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
248
|
-
const len0 = WASM_VECTOR_LEN;
|
|
249
|
-
const ptr1 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
250
|
-
const len1 = WASM_VECTOR_LEN;
|
|
251
|
-
const ret = wasm.get_contract(ptr0, len0, ptr1, len1);
|
|
252
|
-
return takeObject(ret);
|
|
218
|
+
function __wbg_adapter_57(arg0, arg1, arg2) {
|
|
219
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h67989bb546254912(arg0, arg1, addHeapObject(arg2));
|
|
253
220
|
}
|
|
254
221
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
* @param {string} request
|
|
258
|
-
* @returns {Promise<any>}
|
|
259
|
-
*/
|
|
260
|
-
export function import_contract(nostr_hex_sk, request) {
|
|
261
|
-
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
262
|
-
const len0 = WASM_VECTOR_LEN;
|
|
263
|
-
const ptr1 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
264
|
-
const len1 = WASM_VECTOR_LEN;
|
|
265
|
-
const ret = wasm.import_contract(ptr0, len0, ptr1, len1);
|
|
266
|
-
return takeObject(ret);
|
|
222
|
+
function __wbg_adapter_60(arg0, arg1, arg2) {
|
|
223
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h44bb1f1f44df6b9a(arg0, arg1, addHeapObject(arg2));
|
|
267
224
|
}
|
|
268
225
|
|
|
269
|
-
|
|
270
|
-
*
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
export function issue_contract(nostr_hex_sk, request) {
|
|
275
|
-
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
276
|
-
const len0 = WASM_VECTOR_LEN;
|
|
277
|
-
const ret = wasm.issue_contract(ptr0, len0, addHeapObject(request));
|
|
278
|
-
return takeObject(ret);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* @param {string} nostr_hex_sk
|
|
283
|
-
* @param {any} request
|
|
284
|
-
* @returns {Promise<any>}
|
|
285
|
-
*/
|
|
286
|
-
export function issue_contract_proxy(nostr_hex_sk, request) {
|
|
287
|
-
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
288
|
-
const len0 = WASM_VECTOR_LEN;
|
|
289
|
-
const ret = wasm.issue_contract_proxy(ptr0, len0, addHeapObject(request));
|
|
290
|
-
return takeObject(ret);
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* @param {string} nostr_hex_sk
|
|
295
|
-
* @param {any} request
|
|
296
|
-
* @returns {Promise<any>}
|
|
297
|
-
*/
|
|
298
|
-
export function create_rgb_invoice(nostr_hex_sk, request) {
|
|
299
|
-
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
300
|
-
const len0 = WASM_VECTOR_LEN;
|
|
301
|
-
const ret = wasm.create_rgb_invoice(ptr0, len0, addHeapObject(request));
|
|
302
|
-
return takeObject(ret);
|
|
226
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
227
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
228
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
229
|
+
WASM_VECTOR_LEN = arg.length;
|
|
230
|
+
return ptr;
|
|
303
231
|
}
|
|
304
|
-
|
|
305
232
|
/**
|
|
306
|
-
* @param {string}
|
|
307
|
-
* @param {string}
|
|
233
|
+
* @param {string} secret_key
|
|
234
|
+
* @param {string} name
|
|
235
|
+
* @param {Uint8Array} data
|
|
236
|
+
* @param {boolean} force
|
|
237
|
+
* @param {Uint8Array | undefined} [metadata]
|
|
308
238
|
* @returns {Promise<any>}
|
|
309
239
|
*/
|
|
310
|
-
export function
|
|
311
|
-
const ptr0 = passStringToWasm0(
|
|
240
|
+
export function store(secret_key, name, data, force, metadata) {
|
|
241
|
+
const ptr0 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
312
242
|
const len0 = WASM_VECTOR_LEN;
|
|
313
|
-
const ptr1 = passStringToWasm0(
|
|
243
|
+
const ptr1 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
314
244
|
const len1 = WASM_VECTOR_LEN;
|
|
315
|
-
const
|
|
245
|
+
const ptr2 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
246
|
+
const len2 = WASM_VECTOR_LEN;
|
|
247
|
+
var ptr3 = isLikeNone(metadata) ? 0 : passArray8ToWasm0(metadata, wasm.__wbindgen_malloc);
|
|
248
|
+
var len3 = WASM_VECTOR_LEN;
|
|
249
|
+
const ret = wasm.store(ptr0, len0, ptr1, len1, ptr2, len2, force, ptr3, len3);
|
|
316
250
|
return takeObject(ret);
|
|
317
251
|
}
|
|
318
252
|
|
|
319
253
|
/**
|
|
320
|
-
* @param {string}
|
|
254
|
+
* @param {string} secret_key
|
|
255
|
+
* @param {string} name
|
|
321
256
|
* @returns {Promise<any>}
|
|
322
257
|
*/
|
|
323
|
-
export function
|
|
324
|
-
const ptr0 = passStringToWasm0(
|
|
258
|
+
export function retrieve(secret_key, name) {
|
|
259
|
+
const ptr0 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
325
260
|
const len0 = WASM_VECTOR_LEN;
|
|
326
|
-
const
|
|
261
|
+
const ptr1 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
262
|
+
const len1 = WASM_VECTOR_LEN;
|
|
263
|
+
const ret = wasm.retrieve(ptr0, len0, ptr1, len1);
|
|
327
264
|
return takeObject(ret);
|
|
328
265
|
}
|
|
329
266
|
|
|
330
267
|
/**
|
|
331
|
-
* @param {string}
|
|
332
|
-
* @param {
|
|
268
|
+
* @param {string} secret_key
|
|
269
|
+
* @param {string} name
|
|
333
270
|
* @returns {Promise<any>}
|
|
334
271
|
*/
|
|
335
|
-
export function
|
|
336
|
-
const ptr0 = passStringToWasm0(
|
|
272
|
+
export function retrieve_metadata(secret_key, name) {
|
|
273
|
+
const ptr0 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
337
274
|
const len0 = WASM_VECTOR_LEN;
|
|
338
|
-
const
|
|
275
|
+
const ptr1 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
276
|
+
const len1 = WASM_VECTOR_LEN;
|
|
277
|
+
const ret = wasm.retrieve_metadata(ptr0, len0, ptr1, len1);
|
|
339
278
|
return takeObject(ret);
|
|
340
279
|
}
|
|
341
280
|
|
|
342
281
|
/**
|
|
343
|
-
* @param {
|
|
344
|
-
* @
|
|
345
|
-
* @returns {Promise<any>}
|
|
282
|
+
* @param {Uint8Array} bytes
|
|
283
|
+
* @returns {string}
|
|
346
284
|
*/
|
|
347
|
-
export function
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
285
|
+
export function encode_hex(bytes) {
|
|
286
|
+
let deferred2_0;
|
|
287
|
+
let deferred2_1;
|
|
288
|
+
try {
|
|
289
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
290
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
291
|
+
const len0 = WASM_VECTOR_LEN;
|
|
292
|
+
wasm.encode_hex(retptr, ptr0, len0);
|
|
293
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
294
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
295
|
+
deferred2_0 = r0;
|
|
296
|
+
deferred2_1 = r1;
|
|
297
|
+
return getStringFromWasm0(r0, r1);
|
|
298
|
+
} finally {
|
|
299
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
300
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
301
|
+
}
|
|
352
302
|
}
|
|
353
303
|
|
|
354
304
|
/**
|
|
355
|
-
* @param {
|
|
356
|
-
* @
|
|
357
|
-
* @param {any} secrets
|
|
358
|
-
* @returns {Promise<any>}
|
|
305
|
+
* @param {Uint8Array} bytes
|
|
306
|
+
* @returns {string}
|
|
359
307
|
*/
|
|
360
|
-
export function
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
308
|
+
export function encode_base64(bytes) {
|
|
309
|
+
let deferred2_0;
|
|
310
|
+
let deferred2_1;
|
|
311
|
+
try {
|
|
312
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
313
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
314
|
+
const len0 = WASM_VECTOR_LEN;
|
|
315
|
+
wasm.encode_base64(retptr, ptr0, len0);
|
|
316
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
317
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
318
|
+
deferred2_0 = r0;
|
|
319
|
+
deferred2_1 = r1;
|
|
320
|
+
return getStringFromWasm0(r0, r1);
|
|
321
|
+
} finally {
|
|
322
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
323
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
324
|
+
}
|
|
365
325
|
}
|
|
366
326
|
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
* @returns {Promise<any>}
|
|
371
|
-
*/
|
|
372
|
-
export function accept_transfer(nostr_hex_sk, request) {
|
|
373
|
-
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
374
|
-
const len0 = WASM_VECTOR_LEN;
|
|
375
|
-
const ret = wasm.accept_transfer(ptr0, len0, addHeapObject(request));
|
|
376
|
-
return takeObject(ret);
|
|
327
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
328
|
+
ptr = ptr >>> 0;
|
|
329
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
377
330
|
}
|
|
378
|
-
|
|
379
331
|
/**
|
|
380
|
-
* @param {string}
|
|
381
|
-
* @
|
|
382
|
-
* @returns {Promise<any>}
|
|
332
|
+
* @param {string} string
|
|
333
|
+
* @returns {Uint8Array}
|
|
383
334
|
*/
|
|
384
|
-
export function
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
335
|
+
export function decode_hex(string) {
|
|
336
|
+
try {
|
|
337
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
338
|
+
const ptr0 = passStringToWasm0(string, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
339
|
+
const len0 = WASM_VECTOR_LEN;
|
|
340
|
+
wasm.decode_hex(retptr, ptr0, len0);
|
|
341
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
342
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
343
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
344
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
345
|
+
if (r3) {
|
|
346
|
+
throw takeObject(r2);
|
|
347
|
+
}
|
|
348
|
+
var v2 = getArrayU8FromWasm0(r0, r1).slice();
|
|
349
|
+
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
350
|
+
return v2;
|
|
351
|
+
} finally {
|
|
352
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
353
|
+
}
|
|
391
354
|
}
|
|
392
355
|
|
|
393
356
|
/**
|
|
394
|
-
* @param {string}
|
|
395
|
-
* @returns {
|
|
357
|
+
* @param {string} string
|
|
358
|
+
* @returns {Uint8Array}
|
|
396
359
|
*/
|
|
397
|
-
export function
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
360
|
+
export function decode_base64(string) {
|
|
361
|
+
try {
|
|
362
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
363
|
+
const ptr0 = passStringToWasm0(string, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
364
|
+
const len0 = WASM_VECTOR_LEN;
|
|
365
|
+
wasm.decode_base64(retptr, ptr0, len0);
|
|
366
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
367
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
368
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
369
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
370
|
+
if (r3) {
|
|
371
|
+
throw takeObject(r2);
|
|
372
|
+
}
|
|
373
|
+
var v2 = getArrayU8FromWasm0(r0, r1).slice();
|
|
374
|
+
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
375
|
+
return v2;
|
|
376
|
+
} finally {
|
|
377
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
378
|
+
}
|
|
402
379
|
}
|
|
403
380
|
|
|
404
381
|
/**
|
|
405
|
-
* @
|
|
406
|
-
* @returns {Promise<any>}
|
|
382
|
+
* @returns {string}
|
|
407
383
|
*/
|
|
408
|
-
export function
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
384
|
+
export function get_rgb_version() {
|
|
385
|
+
let deferred1_0;
|
|
386
|
+
let deferred1_1;
|
|
387
|
+
try {
|
|
388
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
389
|
+
wasm.get_rgb_version(retptr);
|
|
390
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
391
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
392
|
+
deferred1_0 = r0;
|
|
393
|
+
deferred1_1 = r1;
|
|
394
|
+
return getStringFromWasm0(r0, r1);
|
|
395
|
+
} finally {
|
|
396
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
397
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
398
|
+
}
|
|
413
399
|
}
|
|
414
400
|
|
|
415
401
|
/**
|
|
@@ -417,32 +403,10 @@ export function verify_transfers(nostr_hex_sk) {
|
|
|
417
403
|
* @param {any} request
|
|
418
404
|
* @returns {Promise<any>}
|
|
419
405
|
*/
|
|
420
|
-
export function
|
|
421
|
-
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
422
|
-
const len0 = WASM_VECTOR_LEN;
|
|
423
|
-
const ret = wasm.get_swap(ptr0, len0, addHeapObject(request));
|
|
424
|
-
return takeObject(ret);
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* @param {string} nostr_hex_sk
|
|
429
|
-
* @returns {Promise<any>}
|
|
430
|
-
*/
|
|
431
|
-
export function public_offers(nostr_hex_sk) {
|
|
432
|
-
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
433
|
-
const len0 = WASM_VECTOR_LEN;
|
|
434
|
-
const ret = wasm.public_offers(ptr0, len0);
|
|
435
|
-
return takeObject(ret);
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
/**
|
|
439
|
-
* @param {string} nostr_hex_sk
|
|
440
|
-
* @returns {Promise<any>}
|
|
441
|
-
*/
|
|
442
|
-
export function my_offers(nostr_hex_sk) {
|
|
406
|
+
export function create_watcher(nostr_hex_sk, request) {
|
|
443
407
|
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
444
408
|
const len0 = WASM_VECTOR_LEN;
|
|
445
|
-
const ret = wasm.
|
|
409
|
+
const ret = wasm.create_watcher(ptr0, len0, addHeapObject(request));
|
|
446
410
|
return takeObject(ret);
|
|
447
411
|
}
|
|
448
412
|
|
|
@@ -450,137 +414,138 @@ export function my_offers(nostr_hex_sk) {
|
|
|
450
414
|
* @param {string} nostr_hex_sk
|
|
451
415
|
* @returns {Promise<any>}
|
|
452
416
|
*/
|
|
453
|
-
export function
|
|
417
|
+
export function destroy_watcher(nostr_hex_sk) {
|
|
454
418
|
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
455
419
|
const len0 = WASM_VECTOR_LEN;
|
|
456
|
-
const ret = wasm.
|
|
420
|
+
const ret = wasm.destroy_watcher(ptr0, len0);
|
|
457
421
|
return takeObject(ret);
|
|
458
422
|
}
|
|
459
423
|
|
|
460
424
|
/**
|
|
461
425
|
* @param {string} nostr_hex_sk
|
|
462
|
-
* @param {any} request
|
|
463
426
|
* @returns {Promise<any>}
|
|
464
427
|
*/
|
|
465
|
-
export function
|
|
428
|
+
export function check_watcher(nostr_hex_sk) {
|
|
466
429
|
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
467
430
|
const len0 = WASM_VECTOR_LEN;
|
|
468
|
-
const ret = wasm.
|
|
431
|
+
const ret = wasm.check_watcher(ptr0, len0);
|
|
469
432
|
return takeObject(ret);
|
|
470
433
|
}
|
|
471
434
|
|
|
472
435
|
/**
|
|
473
436
|
* @param {string} nostr_hex_sk
|
|
474
|
-
* @param {any} request
|
|
475
|
-
* @param {any} secrets
|
|
476
437
|
* @returns {Promise<any>}
|
|
477
438
|
*/
|
|
478
|
-
export function
|
|
439
|
+
export function watcher_rgb_wallet(nostr_hex_sk) {
|
|
479
440
|
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
480
441
|
const len0 = WASM_VECTOR_LEN;
|
|
481
|
-
const ret = wasm.
|
|
442
|
+
const ret = wasm.watcher_rgb_wallet(ptr0, len0);
|
|
482
443
|
return takeObject(ret);
|
|
483
444
|
}
|
|
484
445
|
|
|
485
446
|
/**
|
|
486
447
|
* @param {string} nostr_hex_sk
|
|
487
|
-
* @param {
|
|
488
|
-
* @param {any} secrets
|
|
448
|
+
* @param {string} request
|
|
489
449
|
* @returns {Promise<any>}
|
|
490
450
|
*/
|
|
491
|
-
export function
|
|
451
|
+
export function watcher_next_address(nostr_hex_sk, request) {
|
|
492
452
|
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
493
453
|
const len0 = WASM_VECTOR_LEN;
|
|
494
|
-
const
|
|
454
|
+
const ptr1 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
455
|
+
const len1 = WASM_VECTOR_LEN;
|
|
456
|
+
const ret = wasm.watcher_next_address(ptr0, len0, ptr1, len1);
|
|
495
457
|
return takeObject(ret);
|
|
496
458
|
}
|
|
497
459
|
|
|
498
460
|
/**
|
|
499
461
|
* @param {string} nostr_hex_sk
|
|
500
|
-
* @param {
|
|
501
|
-
* @param {any} secrets
|
|
462
|
+
* @param {string} request
|
|
502
463
|
* @returns {Promise<any>}
|
|
503
464
|
*/
|
|
504
|
-
export function
|
|
465
|
+
export function watcher_next_utxo(nostr_hex_sk, request) {
|
|
505
466
|
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
506
467
|
const len0 = WASM_VECTOR_LEN;
|
|
507
|
-
const
|
|
468
|
+
const ptr1 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
469
|
+
const len1 = WASM_VECTOR_LEN;
|
|
470
|
+
const ret = wasm.watcher_next_utxo(ptr0, len0, ptr1, len1);
|
|
508
471
|
return takeObject(ret);
|
|
509
472
|
}
|
|
510
473
|
|
|
511
474
|
/**
|
|
512
475
|
* @param {string} nostr_hex_sk
|
|
513
|
-
* @param {
|
|
476
|
+
* @param {string} request
|
|
514
477
|
* @returns {Promise<any>}
|
|
515
478
|
*/
|
|
516
|
-
export function
|
|
479
|
+
export function watcher_unspent_utxos(nostr_hex_sk, request) {
|
|
517
480
|
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
518
481
|
const len0 = WASM_VECTOR_LEN;
|
|
519
|
-
const
|
|
482
|
+
const ptr1 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
483
|
+
const len1 = WASM_VECTOR_LEN;
|
|
484
|
+
const ret = wasm.watcher_unspent_utxos(ptr0, len0, ptr1, len1);
|
|
520
485
|
return takeObject(ret);
|
|
521
486
|
}
|
|
522
487
|
|
|
523
488
|
/**
|
|
524
489
|
* @param {string} nostr_hex_sk
|
|
525
|
-
* @param {
|
|
526
|
-
* @param {any} secrets
|
|
490
|
+
* @param {string} request
|
|
527
491
|
* @returns {Promise<any>}
|
|
528
492
|
*/
|
|
529
|
-
export function
|
|
493
|
+
export function get_contract(nostr_hex_sk, request) {
|
|
530
494
|
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
531
495
|
const len0 = WASM_VECTOR_LEN;
|
|
532
|
-
const
|
|
496
|
+
const ptr1 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
497
|
+
const len1 = WASM_VECTOR_LEN;
|
|
498
|
+
const ret = wasm.get_contract(ptr0, len0, ptr1, len1);
|
|
533
499
|
return takeObject(ret);
|
|
534
500
|
}
|
|
535
501
|
|
|
536
502
|
/**
|
|
537
503
|
* @param {string} nostr_hex_sk
|
|
538
|
-
* @param {
|
|
539
|
-
* @param {any} secrets
|
|
504
|
+
* @param {boolean} arg1
|
|
540
505
|
* @returns {Promise<any>}
|
|
541
506
|
*/
|
|
542
|
-
export function
|
|
507
|
+
export function list_contracts(nostr_hex_sk, arg1) {
|
|
543
508
|
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
544
509
|
const len0 = WASM_VECTOR_LEN;
|
|
545
|
-
const ret = wasm.
|
|
510
|
+
const ret = wasm.list_contracts(ptr0, len0, arg1);
|
|
546
511
|
return takeObject(ret);
|
|
547
512
|
}
|
|
548
513
|
|
|
549
514
|
/**
|
|
550
515
|
* @param {string} nostr_hex_sk
|
|
551
|
-
* @param {
|
|
516
|
+
* @param {string} request
|
|
552
517
|
* @returns {Promise<any>}
|
|
553
518
|
*/
|
|
554
|
-
export function
|
|
519
|
+
export function import_contract(nostr_hex_sk, request) {
|
|
555
520
|
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
556
521
|
const len0 = WASM_VECTOR_LEN;
|
|
557
|
-
const
|
|
522
|
+
const ptr1 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
523
|
+
const len1 = WASM_VECTOR_LEN;
|
|
524
|
+
const ret = wasm.import_contract(ptr0, len0, ptr1, len1);
|
|
558
525
|
return takeObject(ret);
|
|
559
526
|
}
|
|
560
527
|
|
|
561
528
|
/**
|
|
562
529
|
* @param {string} nostr_hex_sk
|
|
563
530
|
* @param {any} request
|
|
564
|
-
* @param {any} secrets
|
|
565
531
|
* @returns {Promise<any>}
|
|
566
532
|
*/
|
|
567
|
-
export function
|
|
533
|
+
export function issue_contract(nostr_hex_sk, request) {
|
|
568
534
|
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
569
535
|
const len0 = WASM_VECTOR_LEN;
|
|
570
|
-
const ret = wasm.
|
|
536
|
+
const ret = wasm.issue_contract(ptr0, len0, addHeapObject(request));
|
|
571
537
|
return takeObject(ret);
|
|
572
538
|
}
|
|
573
539
|
|
|
574
540
|
/**
|
|
575
541
|
* @param {string} nostr_hex_sk
|
|
576
542
|
* @param {any} request
|
|
577
|
-
* @param {any} secrets
|
|
578
543
|
* @returns {Promise<any>}
|
|
579
544
|
*/
|
|
580
|
-
export function
|
|
545
|
+
export function issue_contract_proxy(nostr_hex_sk, request) {
|
|
581
546
|
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
582
547
|
const len0 = WASM_VECTOR_LEN;
|
|
583
|
-
const ret = wasm.
|
|
548
|
+
const ret = wasm.issue_contract_proxy(ptr0, len0, addHeapObject(request));
|
|
584
549
|
return takeObject(ret);
|
|
585
550
|
}
|
|
586
551
|
|
|
@@ -589,51 +554,46 @@ export function create_auction_bid(nostr_hex_sk, request, secrets) {
|
|
|
589
554
|
* @param {any} request
|
|
590
555
|
* @returns {Promise<any>}
|
|
591
556
|
*/
|
|
592
|
-
export function
|
|
557
|
+
export function create_rgb_invoice(nostr_hex_sk, request) {
|
|
593
558
|
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
594
559
|
const len0 = WASM_VECTOR_LEN;
|
|
595
|
-
const ret = wasm.
|
|
560
|
+
const ret = wasm.create_rgb_invoice(ptr0, len0, addHeapObject(request));
|
|
596
561
|
return takeObject(ret);
|
|
597
562
|
}
|
|
598
563
|
|
|
599
564
|
/**
|
|
600
565
|
* @param {string} nostr_hex_sk
|
|
601
|
-
* @param {
|
|
602
|
-
* @param {any} secrets
|
|
603
|
-
* @param {bigint} fee
|
|
604
|
-
* @param {string} max_claim
|
|
566
|
+
* @param {string} request
|
|
605
567
|
* @returns {Promise<any>}
|
|
606
568
|
*/
|
|
607
|
-
export function
|
|
569
|
+
export function remove_rgb_invoice(nostr_hex_sk, request) {
|
|
608
570
|
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
609
571
|
const len0 = WASM_VECTOR_LEN;
|
|
610
|
-
const ptr1 = passStringToWasm0(
|
|
572
|
+
const ptr1 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
611
573
|
const len1 = WASM_VECTOR_LEN;
|
|
612
|
-
const ret = wasm.
|
|
574
|
+
const ret = wasm.remove_rgb_invoice(ptr0, len0, ptr1, len1);
|
|
613
575
|
return takeObject(ret);
|
|
614
576
|
}
|
|
615
577
|
|
|
616
578
|
/**
|
|
617
579
|
* @param {string} nostr_hex_sk
|
|
618
|
-
* @param {any} request
|
|
619
580
|
* @returns {Promise<any>}
|
|
620
581
|
*/
|
|
621
|
-
export function
|
|
582
|
+
export function list_rgb_invoices(nostr_hex_sk) {
|
|
622
583
|
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
623
584
|
const len0 = WASM_VECTOR_LEN;
|
|
624
|
-
const ret = wasm.
|
|
585
|
+
const ret = wasm.list_rgb_invoices(ptr0, len0);
|
|
625
586
|
return takeObject(ret);
|
|
626
587
|
}
|
|
627
588
|
|
|
628
589
|
/**
|
|
629
|
-
* @param {string}
|
|
630
|
-
* @param {any} request
|
|
590
|
+
* @param {string} invoice
|
|
631
591
|
* @returns {Promise<any>}
|
|
632
592
|
*/
|
|
633
|
-
export function
|
|
634
|
-
const ptr0 = passStringToWasm0(
|
|
593
|
+
export function decode_rgb_invoice(invoice) {
|
|
594
|
+
const ptr0 = passStringToWasm0(invoice, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
635
595
|
const len0 = WASM_VECTOR_LEN;
|
|
636
|
-
const ret = wasm.
|
|
596
|
+
const ret = wasm.decode_rgb_invoice(ptr0, len0);
|
|
637
597
|
return takeObject(ret);
|
|
638
598
|
}
|
|
639
599
|
|
|
@@ -642,120 +602,96 @@ export function close_airdrop_offer(nostr_hex_sk, request) {
|
|
|
642
602
|
* @param {any} request
|
|
643
603
|
* @returns {Promise<any>}
|
|
644
604
|
*/
|
|
645
|
-
export function
|
|
605
|
+
export function can_create_transfer_contract(nostr_hex_sk, request) {
|
|
646
606
|
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
647
607
|
const len0 = WASM_VECTOR_LEN;
|
|
648
|
-
const ret = wasm.
|
|
608
|
+
const ret = wasm.can_create_transfer_contract(ptr0, len0, addHeapObject(request));
|
|
649
609
|
return takeObject(ret);
|
|
650
610
|
}
|
|
651
611
|
|
|
652
612
|
/**
|
|
653
613
|
* @param {string} nostr_hex_sk
|
|
614
|
+
* @param {any} request
|
|
654
615
|
* @returns {Promise<any>}
|
|
655
616
|
*/
|
|
656
|
-
export function
|
|
617
|
+
export function create_rgb_transfer(nostr_hex_sk, request) {
|
|
657
618
|
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
658
619
|
const len0 = WASM_VECTOR_LEN;
|
|
659
|
-
const ret = wasm.
|
|
620
|
+
const ret = wasm.create_rgb_transfer(ptr0, len0, addHeapObject(request));
|
|
660
621
|
return takeObject(ret);
|
|
661
622
|
}
|
|
662
623
|
|
|
663
624
|
/**
|
|
664
625
|
* @param {string} nostr_hex_sk
|
|
626
|
+
* @param {any} request
|
|
627
|
+
* @param {any} secrets
|
|
665
628
|
* @returns {Promise<any>}
|
|
666
629
|
*/
|
|
667
|
-
export function
|
|
630
|
+
export function create_and_publish_rgb_transfer(nostr_hex_sk, request, secrets) {
|
|
668
631
|
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
669
632
|
const len0 = WASM_VECTOR_LEN;
|
|
670
|
-
const ret = wasm.
|
|
633
|
+
const ret = wasm.create_and_publish_rgb_transfer(ptr0, len0, addHeapObject(request), addHeapObject(secrets));
|
|
671
634
|
return takeObject(ret);
|
|
672
635
|
}
|
|
673
636
|
|
|
674
637
|
/**
|
|
675
|
-
* @param {string}
|
|
676
|
-
* @param {
|
|
638
|
+
* @param {string} _nostr_hex_sk
|
|
639
|
+
* @param {any} request
|
|
677
640
|
* @returns {Promise<any>}
|
|
678
641
|
*/
|
|
679
|
-
export function
|
|
680
|
-
const ptr0 = passStringToWasm0(
|
|
642
|
+
export function psbt_sign_file(_nostr_hex_sk, request) {
|
|
643
|
+
const ptr0 = passStringToWasm0(_nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
681
644
|
const len0 = WASM_VECTOR_LEN;
|
|
682
|
-
const
|
|
683
|
-
const len1 = WASM_VECTOR_LEN;
|
|
684
|
-
const ret = wasm.watcher_next_address(ptr0, len0, ptr1, len1);
|
|
645
|
+
const ret = wasm.psbt_sign_file(ptr0, len0, addHeapObject(request));
|
|
685
646
|
return takeObject(ret);
|
|
686
647
|
}
|
|
687
648
|
|
|
688
649
|
/**
|
|
689
650
|
* @param {string} nostr_hex_sk
|
|
690
|
-
* @param {
|
|
651
|
+
* @param {any} request
|
|
691
652
|
* @returns {Promise<any>}
|
|
692
653
|
*/
|
|
693
|
-
export function
|
|
654
|
+
export function accept_transfer(nostr_hex_sk, request) {
|
|
694
655
|
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
695
656
|
const len0 = WASM_VECTOR_LEN;
|
|
696
|
-
const
|
|
697
|
-
const len1 = WASM_VECTOR_LEN;
|
|
698
|
-
const ret = wasm.watcher_next_utxo(ptr0, len0, ptr1, len1);
|
|
657
|
+
const ret = wasm.accept_transfer(ptr0, len0, addHeapObject(request));
|
|
699
658
|
return takeObject(ret);
|
|
700
659
|
}
|
|
701
660
|
|
|
702
661
|
/**
|
|
703
662
|
* @param {string} nostr_hex_sk
|
|
704
|
-
* @param {
|
|
663
|
+
* @param {any} request
|
|
705
664
|
* @returns {Promise<any>}
|
|
706
665
|
*/
|
|
707
|
-
export function
|
|
666
|
+
export function save_transfer(nostr_hex_sk, request) {
|
|
708
667
|
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
709
668
|
const len0 = WASM_VECTOR_LEN;
|
|
710
|
-
const
|
|
711
|
-
const len1 = WASM_VECTOR_LEN;
|
|
712
|
-
const ret = wasm.watcher_unspent_utxos(ptr0, len0, ptr1, len1);
|
|
669
|
+
const ret = wasm.save_transfer(ptr0, len0, addHeapObject(request));
|
|
713
670
|
return takeObject(ret);
|
|
714
671
|
}
|
|
715
672
|
|
|
716
673
|
/**
|
|
717
|
-
* @param {string}
|
|
718
|
-
* @param {any} request
|
|
674
|
+
* @param {string} nostr_hex_sk
|
|
719
675
|
* @returns {Promise<any>}
|
|
720
676
|
*/
|
|
721
|
-
export function
|
|
722
|
-
const ptr0 = passStringToWasm0(
|
|
677
|
+
export function list_transfers(nostr_hex_sk) {
|
|
678
|
+
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
723
679
|
const len0 = WASM_VECTOR_LEN;
|
|
724
|
-
const ret = wasm.
|
|
680
|
+
const ret = wasm.list_transfers(ptr0, len0);
|
|
725
681
|
return takeObject(ret);
|
|
726
682
|
}
|
|
727
683
|
|
|
728
684
|
/**
|
|
729
|
-
* @param {string}
|
|
685
|
+
* @param {string} nostr_hex_sk
|
|
730
686
|
* @returns {Promise<any>}
|
|
731
687
|
*/
|
|
732
|
-
export function
|
|
733
|
-
const ptr0 = passStringToWasm0(
|
|
688
|
+
export function verify_transfers(nostr_hex_sk) {
|
|
689
|
+
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
734
690
|
const len0 = WASM_VECTOR_LEN;
|
|
735
|
-
const ret = wasm.
|
|
691
|
+
const ret = wasm.verify_transfers(ptr0, len0);
|
|
736
692
|
return takeObject(ret);
|
|
737
693
|
}
|
|
738
694
|
|
|
739
|
-
/**
|
|
740
|
-
* @returns {string}
|
|
741
|
-
*/
|
|
742
|
-
export function get_rgb_version() {
|
|
743
|
-
let deferred1_0;
|
|
744
|
-
let deferred1_1;
|
|
745
|
-
try {
|
|
746
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
747
|
-
wasm.get_rgb_version(retptr);
|
|
748
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
749
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
750
|
-
deferred1_0 = r0;
|
|
751
|
-
deferred1_1 = r1;
|
|
752
|
-
return getStringFromWasm0(r0, r1);
|
|
753
|
-
} finally {
|
|
754
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
755
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
|
|
759
695
|
/**
|
|
760
696
|
* @returns {Promise<any>}
|
|
761
697
|
*/
|
|
@@ -821,8 +757,8 @@ export function hash_password(password) {
|
|
|
821
757
|
const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
822
758
|
const len0 = WASM_VECTOR_LEN;
|
|
823
759
|
wasm.hash_password(retptr, ptr0, len0);
|
|
824
|
-
var r0 =
|
|
825
|
-
var r1 =
|
|
760
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
761
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
826
762
|
deferred2_0 = r0;
|
|
827
763
|
deferred2_1 = r1;
|
|
828
764
|
return getStringFromWasm0(r0, r1);
|
|
@@ -1182,159 +1118,32 @@ export function swap_ln_btc(address, amount, token) {
|
|
|
1182
1118
|
return takeObject(ret);
|
|
1183
1119
|
}
|
|
1184
1120
|
|
|
1185
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
1186
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
1187
|
-
getUint8Memory0().set(arg, ptr / 1);
|
|
1188
|
-
WASM_VECTOR_LEN = arg.length;
|
|
1189
|
-
return ptr;
|
|
1190
|
-
}
|
|
1191
|
-
/**
|
|
1192
|
-
* @param {string} secret_key
|
|
1193
|
-
* @param {string} name
|
|
1194
|
-
* @param {Uint8Array} data
|
|
1195
|
-
* @param {boolean} force
|
|
1196
|
-
* @param {Uint8Array | undefined} [metadata]
|
|
1197
|
-
* @returns {Promise<any>}
|
|
1198
|
-
*/
|
|
1199
|
-
export function store(secret_key, name, data, force, metadata) {
|
|
1200
|
-
const ptr0 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1201
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1202
|
-
const ptr1 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1203
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1204
|
-
const ptr2 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
1205
|
-
const len2 = WASM_VECTOR_LEN;
|
|
1206
|
-
var ptr3 = isLikeNone(metadata) ? 0 : passArray8ToWasm0(metadata, wasm.__wbindgen_malloc);
|
|
1207
|
-
var len3 = WASM_VECTOR_LEN;
|
|
1208
|
-
const ret = wasm.store(ptr0, len0, ptr1, len1, ptr2, len2, force, ptr3, len3);
|
|
1209
|
-
return takeObject(ret);
|
|
1210
|
-
}
|
|
1211
|
-
|
|
1212
|
-
/**
|
|
1213
|
-
* @param {string} secret_key
|
|
1214
|
-
* @param {string} name
|
|
1215
|
-
* @returns {Promise<any>}
|
|
1216
|
-
*/
|
|
1217
|
-
export function retrieve(secret_key, name) {
|
|
1218
|
-
const ptr0 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1219
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1220
|
-
const ptr1 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1221
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1222
|
-
const ret = wasm.retrieve(ptr0, len0, ptr1, len1);
|
|
1223
|
-
return takeObject(ret);
|
|
1224
|
-
}
|
|
1225
|
-
|
|
1226
1121
|
/**
|
|
1227
|
-
* @param {string}
|
|
1228
|
-
* @param {string}
|
|
1122
|
+
* @param {string} pubkey
|
|
1123
|
+
* @param {string} token
|
|
1229
1124
|
* @returns {Promise<any>}
|
|
1230
1125
|
*/
|
|
1231
|
-
export function
|
|
1232
|
-
const ptr0 = passStringToWasm0(
|
|
1126
|
+
export function new_nostr_pubkey(pubkey, token) {
|
|
1127
|
+
const ptr0 = passStringToWasm0(pubkey, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1233
1128
|
const len0 = WASM_VECTOR_LEN;
|
|
1234
|
-
const ptr1 = passStringToWasm0(
|
|
1129
|
+
const ptr1 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1235
1130
|
const len1 = WASM_VECTOR_LEN;
|
|
1236
|
-
const ret = wasm.
|
|
1237
|
-
return takeObject(ret);
|
|
1238
|
-
}
|
|
1239
|
-
|
|
1240
|
-
/**
|
|
1241
|
-
* @param {
|
|
1242
|
-
* @
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1253
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1254
|
-
deferred2_0 = r0;
|
|
1255
|
-
deferred2_1 = r1;
|
|
1256
|
-
return getStringFromWasm0(r0, r1);
|
|
1257
|
-
} finally {
|
|
1258
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1259
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1260
|
-
}
|
|
1261
|
-
}
|
|
1262
|
-
|
|
1263
|
-
/**
|
|
1264
|
-
* @param {Uint8Array} bytes
|
|
1265
|
-
* @returns {string}
|
|
1266
|
-
*/
|
|
1267
|
-
export function encode_base64(bytes) {
|
|
1268
|
-
let deferred2_0;
|
|
1269
|
-
let deferred2_1;
|
|
1270
|
-
try {
|
|
1271
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1272
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
1273
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1274
|
-
wasm.encode_base64(retptr, ptr0, len0);
|
|
1275
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1276
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1277
|
-
deferred2_0 = r0;
|
|
1278
|
-
deferred2_1 = r1;
|
|
1279
|
-
return getStringFromWasm0(r0, r1);
|
|
1280
|
-
} finally {
|
|
1281
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1282
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1283
|
-
}
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
1287
|
-
ptr = ptr >>> 0;
|
|
1288
|
-
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
1289
|
-
}
|
|
1290
|
-
/**
|
|
1291
|
-
* @param {string} string
|
|
1292
|
-
* @returns {Uint8Array}
|
|
1293
|
-
*/
|
|
1294
|
-
export function decode_hex(string) {
|
|
1295
|
-
try {
|
|
1296
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1297
|
-
const ptr0 = passStringToWasm0(string, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1298
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1299
|
-
wasm.decode_hex(retptr, ptr0, len0);
|
|
1300
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1301
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1302
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
1303
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
1304
|
-
if (r3) {
|
|
1305
|
-
throw takeObject(r2);
|
|
1306
|
-
}
|
|
1307
|
-
var v2 = getArrayU8FromWasm0(r0, r1).slice();
|
|
1308
|
-
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
1309
|
-
return v2;
|
|
1310
|
-
} finally {
|
|
1311
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1312
|
-
}
|
|
1313
|
-
}
|
|
1314
|
-
|
|
1315
|
-
/**
|
|
1316
|
-
* @param {string} string
|
|
1317
|
-
* @returns {Uint8Array}
|
|
1318
|
-
*/
|
|
1319
|
-
export function decode_base64(string) {
|
|
1320
|
-
try {
|
|
1321
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1322
|
-
const ptr0 = passStringToWasm0(string, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1323
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1324
|
-
wasm.decode_base64(retptr, ptr0, len0);
|
|
1325
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1326
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1327
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
1328
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
1329
|
-
if (r3) {
|
|
1330
|
-
throw takeObject(r2);
|
|
1331
|
-
}
|
|
1332
|
-
var v2 = getArrayU8FromWasm0(r0, r1).slice();
|
|
1333
|
-
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
1334
|
-
return v2;
|
|
1335
|
-
} finally {
|
|
1336
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1337
|
-
}
|
|
1131
|
+
const ret = wasm.new_nostr_pubkey(ptr0, len0, ptr1, len1);
|
|
1132
|
+
return takeObject(ret);
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* @param {string} pubkey
|
|
1137
|
+
* @param {string} token
|
|
1138
|
+
* @returns {Promise<any>}
|
|
1139
|
+
*/
|
|
1140
|
+
export function update_nostr_pubkey(pubkey, token) {
|
|
1141
|
+
const ptr0 = passStringToWasm0(pubkey, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1142
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1143
|
+
const ptr1 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1144
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1145
|
+
const ret = wasm.update_nostr_pubkey(ptr0, len0, ptr1, len1);
|
|
1146
|
+
return takeObject(ret);
|
|
1338
1147
|
}
|
|
1339
1148
|
|
|
1340
1149
|
/**
|
|
@@ -1350,8 +1159,8 @@ export function convert_contract_amount_raw(decimal, precision) {
|
|
|
1350
1159
|
const ptr0 = passStringToWasm0(decimal, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1351
1160
|
const len0 = WASM_VECTOR_LEN;
|
|
1352
1161
|
wasm.convert_contract_amount_raw(retptr, ptr0, len0, precision);
|
|
1353
|
-
var r0 =
|
|
1354
|
-
var r1 =
|
|
1162
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1163
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1355
1164
|
deferred2_0 = r0;
|
|
1356
1165
|
deferred2_1 = r1;
|
|
1357
1166
|
return getStringFromWasm0(r0, r1);
|
|
@@ -1372,8 +1181,8 @@ export function convert_contract_amount_string(amount, precision) {
|
|
|
1372
1181
|
try {
|
|
1373
1182
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1374
1183
|
wasm.convert_contract_amount_string(retptr, amount, precision);
|
|
1375
|
-
var r0 =
|
|
1376
|
-
var r1 =
|
|
1184
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1185
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1377
1186
|
deferred1_0 = r0;
|
|
1378
1187
|
deferred1_1 = r1;
|
|
1379
1188
|
return getStringFromWasm0(r0, r1);
|
|
@@ -1407,8 +1216,8 @@ export function parse_contract_amount_precision(amount, precision) {
|
|
|
1407
1216
|
const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1408
1217
|
const len0 = WASM_VECTOR_LEN;
|
|
1409
1218
|
wasm.parse_contract_amount_precision(retptr, ptr0, len0, precision);
|
|
1410
|
-
var r0 =
|
|
1411
|
-
var r1 =
|
|
1219
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1220
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1412
1221
|
deferred2_0 = r0;
|
|
1413
1222
|
deferred2_1 = r1;
|
|
1414
1223
|
return getStringFromWasm0(r0, r1);
|
|
@@ -1426,50 +1235,12 @@ export function version() {
|
|
|
1426
1235
|
return takeObject(ret);
|
|
1427
1236
|
}
|
|
1428
1237
|
|
|
1429
|
-
/**
|
|
1430
|
-
* @param {string} pubkey
|
|
1431
|
-
* @param {string} token
|
|
1432
|
-
* @returns {Promise<any>}
|
|
1433
|
-
*/
|
|
1434
|
-
export function new_nostr_pubkey(pubkey, token) {
|
|
1435
|
-
const ptr0 = passStringToWasm0(pubkey, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1436
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1437
|
-
const ptr1 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1438
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1439
|
-
const ret = wasm.new_nostr_pubkey(ptr0, len0, ptr1, len1);
|
|
1440
|
-
return takeObject(ret);
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
|
-
/**
|
|
1444
|
-
* @param {string} pubkey
|
|
1445
|
-
* @param {string} token
|
|
1446
|
-
* @returns {Promise<any>}
|
|
1447
|
-
*/
|
|
1448
|
-
export function update_nostr_pubkey(pubkey, token) {
|
|
1449
|
-
const ptr0 = passStringToWasm0(pubkey, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1450
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1451
|
-
const ptr1 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1452
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1453
|
-
const ret = wasm.update_nostr_pubkey(ptr0, len0, ptr1, len1);
|
|
1454
|
-
return takeObject(ret);
|
|
1455
|
-
}
|
|
1456
|
-
|
|
1457
|
-
let cachedUint32Memory0 = null;
|
|
1458
|
-
|
|
1459
|
-
function getUint32Memory0() {
|
|
1460
|
-
if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
|
|
1461
|
-
cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
|
|
1462
|
-
}
|
|
1463
|
-
return cachedUint32Memory0;
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1466
1238
|
function getArrayJsValueFromWasm0(ptr, len) {
|
|
1467
1239
|
ptr = ptr >>> 0;
|
|
1468
|
-
const mem =
|
|
1469
|
-
const slice = mem.subarray(ptr / 4, ptr / 4 + len);
|
|
1240
|
+
const mem = getDataViewMemory0();
|
|
1470
1241
|
const result = [];
|
|
1471
|
-
for (let i =
|
|
1472
|
-
result.push(takeObject(
|
|
1242
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
1243
|
+
result.push(takeObject(mem.getUint32(i, true)));
|
|
1473
1244
|
}
|
|
1474
1245
|
return result;
|
|
1475
1246
|
}
|
|
@@ -1481,8 +1252,8 @@ function handleError(f, args) {
|
|
|
1481
1252
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
1482
1253
|
}
|
|
1483
1254
|
}
|
|
1484
|
-
function
|
|
1485
|
-
wasm.
|
|
1255
|
+
function __wbg_adapter_379(arg0, arg1, arg2, arg3) {
|
|
1256
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h33e096e989ef8747(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1486
1257
|
}
|
|
1487
1258
|
|
|
1488
1259
|
async function __wbg_load(module, imports) {
|
|
@@ -1519,38 +1290,28 @@ async function __wbg_load(module, imports) {
|
|
|
1519
1290
|
function __wbg_get_imports() {
|
|
1520
1291
|
const imports = {};
|
|
1521
1292
|
imports.wbg = {};
|
|
1522
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
1523
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
1524
|
-
return addHeapObject(ret);
|
|
1525
|
-
};
|
|
1526
1293
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
1527
1294
|
const obj = getObject(arg1);
|
|
1528
1295
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1529
1296
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1530
1297
|
var len1 = WASM_VECTOR_LEN;
|
|
1531
|
-
|
|
1532
|
-
|
|
1298
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1299
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1533
1300
|
};
|
|
1534
1301
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
1535
1302
|
takeObject(arg0);
|
|
1536
1303
|
};
|
|
1537
|
-
imports.wbg.
|
|
1538
|
-
const
|
|
1539
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1540
|
-
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
1541
|
-
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
1542
|
-
};
|
|
1543
|
-
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
1544
|
-
const ret = arg0;
|
|
1304
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
1305
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1545
1306
|
return addHeapObject(ret);
|
|
1546
1307
|
};
|
|
1547
1308
|
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
1548
1309
|
const ret = getObject(arg0);
|
|
1549
1310
|
return addHeapObject(ret);
|
|
1550
1311
|
};
|
|
1551
|
-
imports.wbg.
|
|
1552
|
-
const ret =
|
|
1553
|
-
return ret;
|
|
1312
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
1313
|
+
const ret = arg0;
|
|
1314
|
+
return addHeapObject(ret);
|
|
1554
1315
|
};
|
|
1555
1316
|
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
1556
1317
|
const obj = takeObject(arg0).original;
|
|
@@ -1561,9 +1322,10 @@ function __wbg_get_imports() {
|
|
|
1561
1322
|
const ret = false;
|
|
1562
1323
|
return ret;
|
|
1563
1324
|
};
|
|
1564
|
-
imports.wbg.
|
|
1565
|
-
const
|
|
1566
|
-
|
|
1325
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
1326
|
+
const v = getObject(arg0);
|
|
1327
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
1328
|
+
return ret;
|
|
1567
1329
|
};
|
|
1568
1330
|
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
1569
1331
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
@@ -1581,19 +1343,28 @@ function __wbg_get_imports() {
|
|
|
1581
1343
|
const ret = getObject(arg0) === getObject(arg1);
|
|
1582
1344
|
return ret;
|
|
1583
1345
|
};
|
|
1346
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
1347
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1348
|
+
return addHeapObject(ret);
|
|
1349
|
+
};
|
|
1584
1350
|
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
1585
1351
|
const val = getObject(arg0);
|
|
1586
1352
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1587
1353
|
return ret;
|
|
1588
1354
|
};
|
|
1355
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
1356
|
+
const ret = getObject(arg0) === undefined;
|
|
1357
|
+
return ret;
|
|
1358
|
+
};
|
|
1589
1359
|
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
1590
1360
|
const ret = getObject(arg0) in getObject(arg1);
|
|
1591
1361
|
return ret;
|
|
1592
1362
|
};
|
|
1593
|
-
imports.wbg.
|
|
1594
|
-
const
|
|
1595
|
-
const ret = typeof(
|
|
1596
|
-
|
|
1363
|
+
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
1364
|
+
const obj = getObject(arg1);
|
|
1365
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1366
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1367
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1597
1368
|
};
|
|
1598
1369
|
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
1599
1370
|
const ret = BigInt.asUintN(64, arg0);
|
|
@@ -1607,8 +1378,8 @@ function __wbg_get_imports() {
|
|
|
1607
1378
|
const ret = getObject(arg1).stack;
|
|
1608
1379
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1609
1380
|
const len1 = WASM_VECTOR_LEN;
|
|
1610
|
-
|
|
1611
|
-
|
|
1381
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1382
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1612
1383
|
};
|
|
1613
1384
|
imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
1614
1385
|
let deferred0_0;
|
|
@@ -1633,8 +1404,8 @@ function __wbg_get_imports() {
|
|
|
1633
1404
|
const ret = String(getObject(arg1));
|
|
1634
1405
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1635
1406
|
const len1 = WASM_VECTOR_LEN;
|
|
1636
|
-
|
|
1637
|
-
|
|
1407
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1408
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1638
1409
|
};
|
|
1639
1410
|
imports.wbg.__wbg_getwithrefkey_4a92a5eca60879b9 = function(arg0, arg1) {
|
|
1640
1411
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
@@ -1660,20 +1431,19 @@ function __wbg_get_imports() {
|
|
|
1660
1431
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
1661
1432
|
console.trace(...v0);
|
|
1662
1433
|
};
|
|
1663
|
-
imports.wbg.
|
|
1664
|
-
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
1665
|
-
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
1666
|
-
console.warn(...v0);
|
|
1667
|
-
};
|
|
1668
|
-
imports.wbg.__wbg_fetch_eadcbc7351113537 = function(arg0) {
|
|
1434
|
+
imports.wbg.__wbg_fetch_9b133f5ec268a7b8 = function(arg0) {
|
|
1669
1435
|
const ret = fetch(getObject(arg0));
|
|
1670
1436
|
return addHeapObject(ret);
|
|
1671
1437
|
};
|
|
1438
|
+
imports.wbg.__wbindgen_is_null = function(arg0) {
|
|
1439
|
+
const ret = getObject(arg0) === null;
|
|
1440
|
+
return ret;
|
|
1441
|
+
};
|
|
1672
1442
|
imports.wbg.__wbg_fetch_27eb4c0a08a9ca04 = function(arg0) {
|
|
1673
1443
|
const ret = fetch(getObject(arg0));
|
|
1674
1444
|
return addHeapObject(ret);
|
|
1675
1445
|
};
|
|
1676
|
-
imports.wbg.
|
|
1446
|
+
imports.wbg.__wbg_queueMicrotask_48421b3cc9052b68 = function(arg0) {
|
|
1677
1447
|
const ret = getObject(arg0).queueMicrotask;
|
|
1678
1448
|
return addHeapObject(ret);
|
|
1679
1449
|
};
|
|
@@ -1681,10 +1451,10 @@ function __wbg_get_imports() {
|
|
|
1681
1451
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
1682
1452
|
return ret;
|
|
1683
1453
|
};
|
|
1684
|
-
imports.wbg.
|
|
1454
|
+
imports.wbg.__wbg_queueMicrotask_12a30234db4045d3 = function(arg0) {
|
|
1685
1455
|
queueMicrotask(getObject(arg0));
|
|
1686
1456
|
};
|
|
1687
|
-
imports.wbg.
|
|
1457
|
+
imports.wbg.__wbg_instanceof_Window_5012736c80a01584 = function(arg0) {
|
|
1688
1458
|
let result;
|
|
1689
1459
|
try {
|
|
1690
1460
|
result = getObject(arg0) instanceof Window;
|
|
@@ -1694,15 +1464,15 @@ function __wbg_get_imports() {
|
|
|
1694
1464
|
const ret = result;
|
|
1695
1465
|
return ret;
|
|
1696
1466
|
};
|
|
1697
|
-
imports.wbg.
|
|
1467
|
+
imports.wbg.__wbg_fetch_f3adf866d8944b41 = function(arg0, arg1) {
|
|
1698
1468
|
const ret = getObject(arg0).fetch(getObject(arg1));
|
|
1699
1469
|
return addHeapObject(ret);
|
|
1700
1470
|
};
|
|
1701
|
-
imports.wbg.
|
|
1471
|
+
imports.wbg.__wbg_setTimeout_73b734ca971c19f4 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1702
1472
|
const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
|
|
1703
1473
|
return ret;
|
|
1704
1474
|
}, arguments) };
|
|
1705
|
-
imports.wbg.
|
|
1475
|
+
imports.wbg.__wbg_instanceof_WorkerGlobalScope_e34c8a505711a78e = function(arg0) {
|
|
1706
1476
|
let result;
|
|
1707
1477
|
try {
|
|
1708
1478
|
result = getObject(arg0) instanceof WorkerGlobalScope;
|
|
@@ -1712,64 +1482,290 @@ function __wbg_get_imports() {
|
|
|
1712
1482
|
const ret = result;
|
|
1713
1483
|
return ret;
|
|
1714
1484
|
};
|
|
1715
|
-
imports.wbg.
|
|
1485
|
+
imports.wbg.__wbg_fetch_ba7fe179e527d942 = function(arg0, arg1) {
|
|
1716
1486
|
const ret = getObject(arg0).fetch(getObject(arg1));
|
|
1717
1487
|
return addHeapObject(ret);
|
|
1718
1488
|
};
|
|
1719
|
-
imports.wbg.
|
|
1720
|
-
const ret = getObject(arg0).
|
|
1489
|
+
imports.wbg.__wbg_indexNames_f6708f233630e491 = function(arg0) {
|
|
1490
|
+
const ret = getObject(arg0).indexNames;
|
|
1721
1491
|
return addHeapObject(ret);
|
|
1722
1492
|
};
|
|
1723
|
-
imports.wbg.
|
|
1724
|
-
const ret =
|
|
1493
|
+
imports.wbg.__wbg_createIndex_6d4c3e20ee0f1066 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1494
|
+
const ret = getObject(arg0).createIndex(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4));
|
|
1725
1495
|
return addHeapObject(ret);
|
|
1726
1496
|
}, arguments) };
|
|
1727
|
-
imports.wbg.
|
|
1728
|
-
getObject(arg0).
|
|
1729
|
-
};
|
|
1730
|
-
imports.wbg.
|
|
1497
|
+
imports.wbg.__wbg_deleteIndex_86b1a90a771f3fd2 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1498
|
+
getObject(arg0).deleteIndex(getStringFromWasm0(arg1, arg2));
|
|
1499
|
+
}, arguments) };
|
|
1500
|
+
imports.wbg.__wbg_get_88b5e79e9daccb9f = function() { return handleError(function (arg0, arg1) {
|
|
1501
|
+
const ret = getObject(arg0).get(getObject(arg1));
|
|
1502
|
+
return addHeapObject(ret);
|
|
1503
|
+
}, arguments) };
|
|
1504
|
+
imports.wbg.__wbg_index_c90226e82bd94b45 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1505
|
+
const ret = getObject(arg0).index(getStringFromWasm0(arg1, arg2));
|
|
1506
|
+
return addHeapObject(ret);
|
|
1507
|
+
}, arguments) };
|
|
1508
|
+
imports.wbg.__wbg_put_b697dfdbcfb0598f = function() { return handleError(function (arg0, arg1) {
|
|
1509
|
+
const ret = getObject(arg0).put(getObject(arg1));
|
|
1510
|
+
return addHeapObject(ret);
|
|
1511
|
+
}, arguments) };
|
|
1512
|
+
imports.wbg.__wbg_put_f83d95662936dee7 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1513
|
+
const ret = getObject(arg0).put(getObject(arg1), getObject(arg2));
|
|
1514
|
+
return addHeapObject(ret);
|
|
1515
|
+
}, arguments) };
|
|
1516
|
+
imports.wbg.__wbg_new_e27c93803e1acc42 = function() { return handleError(function () {
|
|
1731
1517
|
const ret = new Headers();
|
|
1732
1518
|
return addHeapObject(ret);
|
|
1733
1519
|
}, arguments) };
|
|
1734
|
-
imports.wbg.
|
|
1520
|
+
imports.wbg.__wbg_append_f3a4426bb50622c5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1735
1521
|
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1736
1522
|
}, arguments) };
|
|
1737
|
-
imports.wbg.
|
|
1523
|
+
imports.wbg.__wbg_set_b3c7c6d2e5e783d6 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1738
1524
|
getObject(arg0).set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1739
1525
|
}, arguments) };
|
|
1740
|
-
imports.wbg.
|
|
1741
|
-
const ret =
|
|
1526
|
+
imports.wbg.__wbg_keyPath_99296ea462206d00 = function() { return handleError(function (arg0) {
|
|
1527
|
+
const ret = getObject(arg0).keyPath;
|
|
1742
1528
|
return addHeapObject(ret);
|
|
1743
1529
|
}, arguments) };
|
|
1744
|
-
imports.wbg.
|
|
1745
|
-
getObject(arg0).
|
|
1530
|
+
imports.wbg.__wbg_multiEntry_986f6867169805dd = function(arg0) {
|
|
1531
|
+
const ret = getObject(arg0).multiEntry;
|
|
1532
|
+
return ret;
|
|
1533
|
+
};
|
|
1534
|
+
imports.wbg.__wbg_unique_3abe1f8c203c19fd = function(arg0) {
|
|
1535
|
+
const ret = getObject(arg0).unique;
|
|
1536
|
+
return ret;
|
|
1537
|
+
};
|
|
1538
|
+
imports.wbg.__wbg_new_ac9dbf743c2383ee = function() { return handleError(function () {
|
|
1539
|
+
const ret = new URLSearchParams();
|
|
1540
|
+
return addHeapObject(ret);
|
|
1746
1541
|
}, arguments) };
|
|
1747
|
-
imports.wbg.
|
|
1748
|
-
getObject(arg0).
|
|
1542
|
+
imports.wbg.__wbg_signal_41e46ccad44bb5e2 = function(arg0) {
|
|
1543
|
+
const ret = getObject(arg0).signal;
|
|
1544
|
+
return addHeapObject(ret);
|
|
1545
|
+
};
|
|
1546
|
+
imports.wbg.__wbg_new_ebf2727385ee825c = function() { return handleError(function () {
|
|
1547
|
+
const ret = new AbortController();
|
|
1548
|
+
return addHeapObject(ret);
|
|
1549
|
+
}, arguments) };
|
|
1550
|
+
imports.wbg.__wbg_abort_8659d889a7877ae3 = function(arg0) {
|
|
1551
|
+
getObject(arg0).abort();
|
|
1552
|
+
};
|
|
1553
|
+
imports.wbg.__wbg_instanceof_IdbFactory_9c1359c26643add1 = function(arg0) {
|
|
1554
|
+
let result;
|
|
1555
|
+
try {
|
|
1556
|
+
result = getObject(arg0) instanceof IDBFactory;
|
|
1557
|
+
} catch (_) {
|
|
1558
|
+
result = false;
|
|
1559
|
+
}
|
|
1560
|
+
const ret = result;
|
|
1561
|
+
return ret;
|
|
1562
|
+
};
|
|
1563
|
+
imports.wbg.__wbg_deleteDatabase_78cc29fc7dccc638 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1564
|
+
const ret = getObject(arg0).deleteDatabase(getStringFromWasm0(arg1, arg2));
|
|
1565
|
+
return addHeapObject(ret);
|
|
1566
|
+
}, arguments) };
|
|
1567
|
+
imports.wbg.__wbg_open_a89af1720976a433 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1568
|
+
const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2));
|
|
1569
|
+
return addHeapObject(ret);
|
|
1570
|
+
}, arguments) };
|
|
1571
|
+
imports.wbg.__wbg_open_e8f45f3526088828 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1572
|
+
const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
|
|
1573
|
+
return addHeapObject(ret);
|
|
1574
|
+
}, arguments) };
|
|
1575
|
+
imports.wbg.__wbg_url_87b699cb6519ba34 = function(arg0, arg1) {
|
|
1576
|
+
const ret = getObject(arg1).url;
|
|
1577
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1578
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1579
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1580
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1581
|
+
};
|
|
1582
|
+
imports.wbg.__wbg_newwithstr_31920be5b8b6d221 = function() { return handleError(function (arg0, arg1) {
|
|
1583
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1));
|
|
1584
|
+
return addHeapObject(ret);
|
|
1585
|
+
}, arguments) };
|
|
1586
|
+
imports.wbg.__wbg_newwithstrandinit_a31c69e4cc337183 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1587
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
1588
|
+
return addHeapObject(ret);
|
|
1749
1589
|
}, arguments) };
|
|
1750
|
-
imports.wbg.
|
|
1590
|
+
imports.wbg.__wbg_setautoincrement_56aa89e6d3e15210 = function(arg0, arg1) {
|
|
1591
|
+
getObject(arg0).autoIncrement = arg1 !== 0;
|
|
1592
|
+
};
|
|
1593
|
+
imports.wbg.__wbg_setkeypath_e6a7c50640d3005a = function(arg0, arg1) {
|
|
1594
|
+
getObject(arg0).keyPath = getObject(arg1);
|
|
1595
|
+
};
|
|
1596
|
+
imports.wbg.__wbg_setbody_734cb3d7ee8e6e96 = function(arg0, arg1) {
|
|
1597
|
+
getObject(arg0).body = getObject(arg1);
|
|
1598
|
+
};
|
|
1599
|
+
imports.wbg.__wbg_setcredentials_2b67800db3f7b621 = function(arg0, arg1) {
|
|
1600
|
+
getObject(arg0).credentials = ["omit","same-origin","include",][arg1];
|
|
1601
|
+
};
|
|
1602
|
+
imports.wbg.__wbg_setheaders_be10a5ab566fd06f = function(arg0, arg1) {
|
|
1603
|
+
getObject(arg0).headers = getObject(arg1);
|
|
1604
|
+
};
|
|
1605
|
+
imports.wbg.__wbg_setmethod_dc68a742c2db5c6a = function(arg0, arg1, arg2) {
|
|
1606
|
+
getObject(arg0).method = getStringFromWasm0(arg1, arg2);
|
|
1607
|
+
};
|
|
1608
|
+
imports.wbg.__wbg_setmode_a781aae2bd3df202 = function(arg0, arg1) {
|
|
1609
|
+
getObject(arg0).mode = ["same-origin","no-cors","cors","navigate",][arg1];
|
|
1610
|
+
};
|
|
1611
|
+
imports.wbg.__wbg_setsignal_91c4e8ebd04eb935 = function(arg0, arg1) {
|
|
1612
|
+
getObject(arg0).signal = getObject(arg1);
|
|
1613
|
+
};
|
|
1614
|
+
imports.wbg.__wbg_length_82021578cc4f0d2c = function(arg0) {
|
|
1615
|
+
const ret = getObject(arg0).length;
|
|
1616
|
+
return ret;
|
|
1617
|
+
};
|
|
1618
|
+
imports.wbg.__wbg_get_913f8df8566b2d82 = function(arg0, arg1, arg2) {
|
|
1619
|
+
const ret = getObject(arg1)[arg2 >>> 0];
|
|
1620
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1621
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1622
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1623
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1624
|
+
};
|
|
1625
|
+
imports.wbg.__wbg_target_b7cb1739bee70928 = function(arg0) {
|
|
1626
|
+
const ret = getObject(arg0).target;
|
|
1627
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1628
|
+
};
|
|
1629
|
+
imports.wbg.__wbg_search_f384756d8e27fd66 = function(arg0, arg1) {
|
|
1751
1630
|
const ret = getObject(arg1).search;
|
|
1752
1631
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1753
1632
|
const len1 = WASM_VECTOR_LEN;
|
|
1754
|
-
|
|
1755
|
-
|
|
1633
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1634
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1756
1635
|
};
|
|
1757
|
-
imports.wbg.
|
|
1636
|
+
imports.wbg.__wbg_setsearch_b9d03a586b9a2fa4 = function(arg0, arg1, arg2) {
|
|
1758
1637
|
getObject(arg0).search = getStringFromWasm0(arg1, arg2);
|
|
1759
1638
|
};
|
|
1760
|
-
imports.wbg.
|
|
1639
|
+
imports.wbg.__wbg_new_33db4be5d9963ec1 = function() { return handleError(function (arg0, arg1) {
|
|
1761
1640
|
const ret = new URL(getStringFromWasm0(arg0, arg1));
|
|
1762
1641
|
return addHeapObject(ret);
|
|
1763
1642
|
}, arguments) };
|
|
1764
|
-
imports.wbg.
|
|
1765
|
-
|
|
1643
|
+
imports.wbg.__wbg_settype_b6ab7b74bd1908a1 = function(arg0, arg1, arg2) {
|
|
1644
|
+
getObject(arg0).type = getStringFromWasm0(arg1, arg2);
|
|
1645
|
+
};
|
|
1646
|
+
imports.wbg.__wbg_setmultientry_a4c0f50fb1bb8977 = function(arg0, arg1) {
|
|
1647
|
+
getObject(arg0).multiEntry = arg1 !== 0;
|
|
1648
|
+
};
|
|
1649
|
+
imports.wbg.__wbg_setunique_6f46c3f803001492 = function(arg0, arg1) {
|
|
1650
|
+
getObject(arg0).unique = arg1 !== 0;
|
|
1651
|
+
};
|
|
1652
|
+
imports.wbg.__wbg_newwithu8arraysequenceandoptions_c8bc456a23f02fca = function() { return handleError(function (arg0, arg1) {
|
|
1653
|
+
const ret = new Blob(getObject(arg0), getObject(arg1));
|
|
1766
1654
|
return addHeapObject(ret);
|
|
1767
1655
|
}, arguments) };
|
|
1768
|
-
imports.wbg.
|
|
1769
|
-
const ret = new
|
|
1656
|
+
imports.wbg.__wbg_new_f9f1d655d855a601 = function() { return handleError(function () {
|
|
1657
|
+
const ret = new FormData();
|
|
1658
|
+
return addHeapObject(ret);
|
|
1659
|
+
}, arguments) };
|
|
1660
|
+
imports.wbg.__wbg_append_876bddfd2c8b42fb = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1661
|
+
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
1662
|
+
}, arguments) };
|
|
1663
|
+
imports.wbg.__wbg_append_fc486ec9757bf1c1 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1664
|
+
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getObject(arg3), getStringFromWasm0(arg4, arg5));
|
|
1665
|
+
}, arguments) };
|
|
1666
|
+
imports.wbg.__wbg_instanceof_IdbDatabase_2c9f91b2db322a72 = function(arg0) {
|
|
1667
|
+
let result;
|
|
1668
|
+
try {
|
|
1669
|
+
result = getObject(arg0) instanceof IDBDatabase;
|
|
1670
|
+
} catch (_) {
|
|
1671
|
+
result = false;
|
|
1672
|
+
}
|
|
1673
|
+
const ret = result;
|
|
1674
|
+
return ret;
|
|
1675
|
+
};
|
|
1676
|
+
imports.wbg.__wbg_objectStoreNames_2fc72464aff4baed = function(arg0) {
|
|
1677
|
+
const ret = getObject(arg0).objectStoreNames;
|
|
1678
|
+
return addHeapObject(ret);
|
|
1679
|
+
};
|
|
1680
|
+
imports.wbg.__wbg_setonversionchange_b1a0928064e9b758 = function(arg0, arg1) {
|
|
1681
|
+
getObject(arg0).onversionchange = getObject(arg1);
|
|
1682
|
+
};
|
|
1683
|
+
imports.wbg.__wbg_close_7bef29d1d5feecdb = function(arg0) {
|
|
1684
|
+
getObject(arg0).close();
|
|
1685
|
+
};
|
|
1686
|
+
imports.wbg.__wbg_createObjectStore_cfb780710dbc3ad2 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1687
|
+
const ret = getObject(arg0).createObjectStore(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
1688
|
+
return addHeapObject(ret);
|
|
1689
|
+
}, arguments) };
|
|
1690
|
+
imports.wbg.__wbg_deleteObjectStore_745da9b507613eca = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1691
|
+
getObject(arg0).deleteObjectStore(getStringFromWasm0(arg1, arg2));
|
|
1692
|
+
}, arguments) };
|
|
1693
|
+
imports.wbg.__wbg_transaction_66168ca19ab39a78 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1694
|
+
const ret = getObject(arg0).transaction(getObject(arg1), ["readonly","readwrite","versionchange","readwriteflush","cleanup",][arg2]);
|
|
1695
|
+
return addHeapObject(ret);
|
|
1696
|
+
}, arguments) };
|
|
1697
|
+
imports.wbg.__wbg_instanceof_IdbOpenDbRequest_c0d2e9c902441588 = function(arg0) {
|
|
1698
|
+
let result;
|
|
1699
|
+
try {
|
|
1700
|
+
result = getObject(arg0) instanceof IDBOpenDBRequest;
|
|
1701
|
+
} catch (_) {
|
|
1702
|
+
result = false;
|
|
1703
|
+
}
|
|
1704
|
+
const ret = result;
|
|
1705
|
+
return ret;
|
|
1706
|
+
};
|
|
1707
|
+
imports.wbg.__wbg_setonupgradeneeded_8f3f0ac5d7130a6f = function(arg0, arg1) {
|
|
1708
|
+
getObject(arg0).onupgradeneeded = getObject(arg1);
|
|
1709
|
+
};
|
|
1710
|
+
imports.wbg.__wbg_instanceof_IdbRequest_44d99b46adafe829 = function(arg0) {
|
|
1711
|
+
let result;
|
|
1712
|
+
try {
|
|
1713
|
+
result = getObject(arg0) instanceof IDBRequest;
|
|
1714
|
+
} catch (_) {
|
|
1715
|
+
result = false;
|
|
1716
|
+
}
|
|
1717
|
+
const ret = result;
|
|
1718
|
+
return ret;
|
|
1719
|
+
};
|
|
1720
|
+
imports.wbg.__wbg_result_fd2dae625828961d = function() { return handleError(function (arg0) {
|
|
1721
|
+
const ret = getObject(arg0).result;
|
|
1722
|
+
return addHeapObject(ret);
|
|
1723
|
+
}, arguments) };
|
|
1724
|
+
imports.wbg.__wbg_error_1221bc1f1d0b14d3 = function() { return handleError(function (arg0) {
|
|
1725
|
+
const ret = getObject(arg0).error;
|
|
1726
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1727
|
+
}, arguments) };
|
|
1728
|
+
imports.wbg.__wbg_transaction_0549f2d854da77a6 = function(arg0) {
|
|
1729
|
+
const ret = getObject(arg0).transaction;
|
|
1730
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1731
|
+
};
|
|
1732
|
+
imports.wbg.__wbg_setonsuccess_962c293b6e38a5d5 = function(arg0, arg1) {
|
|
1733
|
+
getObject(arg0).onsuccess = getObject(arg1);
|
|
1734
|
+
};
|
|
1735
|
+
imports.wbg.__wbg_setonerror_bd61d0a61808ca40 = function(arg0, arg1) {
|
|
1736
|
+
getObject(arg0).onerror = getObject(arg1);
|
|
1737
|
+
};
|
|
1738
|
+
imports.wbg.__wbg_instanceof_IdbTransaction_d3f561bdf80cbd35 = function(arg0) {
|
|
1739
|
+
let result;
|
|
1740
|
+
try {
|
|
1741
|
+
result = getObject(arg0) instanceof IDBTransaction;
|
|
1742
|
+
} catch (_) {
|
|
1743
|
+
result = false;
|
|
1744
|
+
}
|
|
1745
|
+
const ret = result;
|
|
1746
|
+
return ret;
|
|
1747
|
+
};
|
|
1748
|
+
imports.wbg.__wbg_error_5c7bb46bfc30aee8 = function(arg0) {
|
|
1749
|
+
const ret = getObject(arg0).error;
|
|
1750
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1751
|
+
};
|
|
1752
|
+
imports.wbg.__wbg_setonabort_aedc77f0151af20c = function(arg0, arg1) {
|
|
1753
|
+
getObject(arg0).onabort = getObject(arg1);
|
|
1754
|
+
};
|
|
1755
|
+
imports.wbg.__wbg_setoncomplete_a9e0ec1d6568a6d9 = function(arg0, arg1) {
|
|
1756
|
+
getObject(arg0).oncomplete = getObject(arg1);
|
|
1757
|
+
};
|
|
1758
|
+
imports.wbg.__wbg_setonerror_00500154a07e987d = function(arg0, arg1) {
|
|
1759
|
+
getObject(arg0).onerror = getObject(arg1);
|
|
1760
|
+
};
|
|
1761
|
+
imports.wbg.__wbg_commit_d40764961dd886fa = function() { return handleError(function (arg0) {
|
|
1762
|
+
getObject(arg0).commit();
|
|
1763
|
+
}, arguments) };
|
|
1764
|
+
imports.wbg.__wbg_objectStore_80724f9f6d33ab5b = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1765
|
+
const ret = getObject(arg0).objectStore(getStringFromWasm0(arg1, arg2));
|
|
1770
1766
|
return addHeapObject(ret);
|
|
1771
1767
|
}, arguments) };
|
|
1772
|
-
imports.wbg.
|
|
1768
|
+
imports.wbg.__wbg_instanceof_Response_e91b7eb7c611a9ae = function(arg0) {
|
|
1773
1769
|
let result;
|
|
1774
1770
|
try {
|
|
1775
1771
|
result = getObject(arg0) instanceof Response;
|
|
@@ -1779,44 +1775,29 @@ function __wbg_get_imports() {
|
|
|
1779
1775
|
const ret = result;
|
|
1780
1776
|
return ret;
|
|
1781
1777
|
};
|
|
1782
|
-
imports.wbg.
|
|
1778
|
+
imports.wbg.__wbg_url_1bf85c8abeb8c92d = function(arg0, arg1) {
|
|
1783
1779
|
const ret = getObject(arg1).url;
|
|
1784
1780
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1785
1781
|
const len1 = WASM_VECTOR_LEN;
|
|
1786
|
-
|
|
1787
|
-
|
|
1782
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1783
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1788
1784
|
};
|
|
1789
|
-
imports.wbg.
|
|
1785
|
+
imports.wbg.__wbg_status_ae8de515694c5c7c = function(arg0) {
|
|
1790
1786
|
const ret = getObject(arg0).status;
|
|
1791
1787
|
return ret;
|
|
1792
1788
|
};
|
|
1793
|
-
imports.wbg.
|
|
1789
|
+
imports.wbg.__wbg_headers_5e283e8345689121 = function(arg0) {
|
|
1794
1790
|
const ret = getObject(arg0).headers;
|
|
1795
1791
|
return addHeapObject(ret);
|
|
1796
1792
|
};
|
|
1797
|
-
imports.wbg.
|
|
1793
|
+
imports.wbg.__wbg_arrayBuffer_a5fbad63cc7e663b = function() { return handleError(function (arg0) {
|
|
1798
1794
|
const ret = getObject(arg0).arrayBuffer();
|
|
1799
1795
|
return addHeapObject(ret);
|
|
1800
1796
|
}, arguments) };
|
|
1801
|
-
imports.wbg.
|
|
1797
|
+
imports.wbg.__wbg_text_a94b91ea8700357a = function() { return handleError(function (arg0) {
|
|
1802
1798
|
const ret = getObject(arg0).text();
|
|
1803
1799
|
return addHeapObject(ret);
|
|
1804
1800
|
}, arguments) };
|
|
1805
|
-
imports.wbg.__wbg_url_70f3179afe0eccd6 = function(arg0, arg1) {
|
|
1806
|
-
const ret = getObject(arg1).url;
|
|
1807
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1808
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1809
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
1810
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
1811
|
-
};
|
|
1812
|
-
imports.wbg.__wbg_newwithstr_19bf69d1840d2816 = function() { return handleError(function (arg0, arg1) {
|
|
1813
|
-
const ret = new Request(getStringFromWasm0(arg0, arg1));
|
|
1814
|
-
return addHeapObject(ret);
|
|
1815
|
-
}, arguments) };
|
|
1816
|
-
imports.wbg.__wbg_newwithstrandinit_9fd2fc855c6327eb = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1817
|
-
const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
1818
|
-
return addHeapObject(ret);
|
|
1819
|
-
}, arguments) };
|
|
1820
1801
|
imports.wbg.__wbg_crypto_d05b68a3572bb8ca = function(arg0) {
|
|
1821
1802
|
const ret = getObject(arg0).crypto;
|
|
1822
1803
|
return addHeapObject(ret);
|
|
@@ -1847,79 +1828,79 @@ function __wbg_get_imports() {
|
|
|
1847
1828
|
imports.wbg.__wbg_getRandomValues_7e42b4fb8779dc6d = function() { return handleError(function (arg0, arg1) {
|
|
1848
1829
|
getObject(arg0).getRandomValues(getObject(arg1));
|
|
1849
1830
|
}, arguments) };
|
|
1850
|
-
imports.wbg.
|
|
1831
|
+
imports.wbg.__wbg_get_3baa728f9d58d3f6 = function(arg0, arg1) {
|
|
1851
1832
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
1852
1833
|
return addHeapObject(ret);
|
|
1853
1834
|
};
|
|
1854
|
-
imports.wbg.
|
|
1835
|
+
imports.wbg.__wbg_length_ae22078168b726f5 = function(arg0) {
|
|
1855
1836
|
const ret = getObject(arg0).length;
|
|
1856
1837
|
return ret;
|
|
1857
1838
|
};
|
|
1858
|
-
imports.wbg.
|
|
1839
|
+
imports.wbg.__wbg_new_a220cf903aa02ca2 = function() {
|
|
1859
1840
|
const ret = new Array();
|
|
1860
1841
|
return addHeapObject(ret);
|
|
1861
1842
|
};
|
|
1862
|
-
imports.wbg.
|
|
1843
|
+
imports.wbg.__wbg_newnoargs_76313bd6ff35d0f2 = function(arg0, arg1) {
|
|
1863
1844
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1864
1845
|
return addHeapObject(ret);
|
|
1865
1846
|
};
|
|
1866
|
-
imports.wbg.
|
|
1847
|
+
imports.wbg.__wbg_next_de3e9db4440638b2 = function(arg0) {
|
|
1867
1848
|
const ret = getObject(arg0).next;
|
|
1868
1849
|
return addHeapObject(ret);
|
|
1869
1850
|
};
|
|
1870
|
-
imports.wbg.
|
|
1851
|
+
imports.wbg.__wbg_next_f9cb570345655b9a = function() { return handleError(function (arg0) {
|
|
1871
1852
|
const ret = getObject(arg0).next();
|
|
1872
1853
|
return addHeapObject(ret);
|
|
1873
1854
|
}, arguments) };
|
|
1874
|
-
imports.wbg.
|
|
1855
|
+
imports.wbg.__wbg_done_bfda7aa8f252b39f = function(arg0) {
|
|
1875
1856
|
const ret = getObject(arg0).done;
|
|
1876
1857
|
return ret;
|
|
1877
1858
|
};
|
|
1878
|
-
imports.wbg.
|
|
1859
|
+
imports.wbg.__wbg_value_6d39332ab4788d86 = function(arg0) {
|
|
1879
1860
|
const ret = getObject(arg0).value;
|
|
1880
1861
|
return addHeapObject(ret);
|
|
1881
1862
|
};
|
|
1882
|
-
imports.wbg.
|
|
1863
|
+
imports.wbg.__wbg_iterator_888179a48810a9fe = function() {
|
|
1883
1864
|
const ret = Symbol.iterator;
|
|
1884
1865
|
return addHeapObject(ret);
|
|
1885
1866
|
};
|
|
1886
|
-
imports.wbg.
|
|
1867
|
+
imports.wbg.__wbg_get_224d16597dbbfd96 = function() { return handleError(function (arg0, arg1) {
|
|
1887
1868
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
1888
1869
|
return addHeapObject(ret);
|
|
1889
1870
|
}, arguments) };
|
|
1890
|
-
imports.wbg.
|
|
1871
|
+
imports.wbg.__wbg_call_1084a111329e68ce = function() { return handleError(function (arg0, arg1) {
|
|
1891
1872
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
1892
1873
|
return addHeapObject(ret);
|
|
1893
1874
|
}, arguments) };
|
|
1894
|
-
imports.wbg.
|
|
1875
|
+
imports.wbg.__wbg_new_525245e2b9901204 = function() {
|
|
1895
1876
|
const ret = new Object();
|
|
1896
1877
|
return addHeapObject(ret);
|
|
1897
1878
|
};
|
|
1898
|
-
imports.wbg.
|
|
1879
|
+
imports.wbg.__wbg_self_3093d5d1f7bcb682 = function() { return handleError(function () {
|
|
1899
1880
|
const ret = self.self;
|
|
1900
1881
|
return addHeapObject(ret);
|
|
1901
1882
|
}, arguments) };
|
|
1902
|
-
imports.wbg.
|
|
1883
|
+
imports.wbg.__wbg_window_3bcfc4d31bc012f8 = function() { return handleError(function () {
|
|
1903
1884
|
const ret = window.window;
|
|
1904
1885
|
return addHeapObject(ret);
|
|
1905
1886
|
}, arguments) };
|
|
1906
|
-
imports.wbg.
|
|
1887
|
+
imports.wbg.__wbg_globalThis_86b222e13bdf32ed = function() { return handleError(function () {
|
|
1907
1888
|
const ret = globalThis.globalThis;
|
|
1908
1889
|
return addHeapObject(ret);
|
|
1909
1890
|
}, arguments) };
|
|
1910
|
-
imports.wbg.
|
|
1891
|
+
imports.wbg.__wbg_global_e5a3fe56f8be9485 = function() { return handleError(function () {
|
|
1911
1892
|
const ret = global.global;
|
|
1912
1893
|
return addHeapObject(ret);
|
|
1913
1894
|
}, arguments) };
|
|
1914
|
-
imports.wbg.
|
|
1895
|
+
imports.wbg.__wbg_isArray_8364a5371e9737d8 = function(arg0) {
|
|
1915
1896
|
const ret = Array.isArray(getObject(arg0));
|
|
1916
1897
|
return ret;
|
|
1917
1898
|
};
|
|
1918
|
-
imports.wbg.
|
|
1899
|
+
imports.wbg.__wbg_push_37c89022f34c01ca = function(arg0, arg1) {
|
|
1919
1900
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
1920
1901
|
return ret;
|
|
1921
1902
|
};
|
|
1922
|
-
imports.wbg.
|
|
1903
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_61dfc3198373c902 = function(arg0) {
|
|
1923
1904
|
let result;
|
|
1924
1905
|
try {
|
|
1925
1906
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -1929,7 +1910,7 @@ function __wbg_get_imports() {
|
|
|
1929
1910
|
const ret = result;
|
|
1930
1911
|
return ret;
|
|
1931
1912
|
};
|
|
1932
|
-
imports.wbg.
|
|
1913
|
+
imports.wbg.__wbg_instanceof_Error_69bde193b0cc95e3 = function(arg0) {
|
|
1933
1914
|
let result;
|
|
1934
1915
|
try {
|
|
1935
1916
|
result = getObject(arg0) instanceof Error;
|
|
@@ -1939,54 +1920,54 @@ function __wbg_get_imports() {
|
|
|
1939
1920
|
const ret = result;
|
|
1940
1921
|
return ret;
|
|
1941
1922
|
};
|
|
1942
|
-
imports.wbg.
|
|
1923
|
+
imports.wbg.__wbg_message_e18bae0a0e2c097a = function(arg0) {
|
|
1943
1924
|
const ret = getObject(arg0).message;
|
|
1944
1925
|
return addHeapObject(ret);
|
|
1945
1926
|
};
|
|
1946
|
-
imports.wbg.
|
|
1927
|
+
imports.wbg.__wbg_name_ac78212e803c7941 = function(arg0) {
|
|
1947
1928
|
const ret = getObject(arg0).name;
|
|
1948
1929
|
return addHeapObject(ret);
|
|
1949
1930
|
};
|
|
1950
|
-
imports.wbg.
|
|
1931
|
+
imports.wbg.__wbg_toString_9d18e102ca933e68 = function(arg0) {
|
|
1951
1932
|
const ret = getObject(arg0).toString();
|
|
1952
1933
|
return addHeapObject(ret);
|
|
1953
1934
|
};
|
|
1954
|
-
imports.wbg.
|
|
1935
|
+
imports.wbg.__wbg_call_89af060b4e1523f2 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1955
1936
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
1956
1937
|
return addHeapObject(ret);
|
|
1957
1938
|
}, arguments) };
|
|
1958
|
-
imports.wbg.
|
|
1939
|
+
imports.wbg.__wbg_isSafeInteger_7f1ed56200d90674 = function(arg0) {
|
|
1959
1940
|
const ret = Number.isSafeInteger(getObject(arg0));
|
|
1960
1941
|
return ret;
|
|
1961
1942
|
};
|
|
1962
|
-
imports.wbg.
|
|
1943
|
+
imports.wbg.__wbg_getTime_91058879093a1589 = function(arg0) {
|
|
1963
1944
|
const ret = getObject(arg0).getTime();
|
|
1964
1945
|
return ret;
|
|
1965
1946
|
};
|
|
1966
|
-
imports.wbg.
|
|
1947
|
+
imports.wbg.__wbg_new0_65387337a95cf44d = function() {
|
|
1967
1948
|
const ret = new Date();
|
|
1968
1949
|
return addHeapObject(ret);
|
|
1969
1950
|
};
|
|
1970
|
-
imports.wbg.
|
|
1951
|
+
imports.wbg.__wbg_now_b7a162010a9e75b4 = function() {
|
|
1971
1952
|
const ret = Date.now();
|
|
1972
1953
|
return ret;
|
|
1973
1954
|
};
|
|
1974
|
-
imports.wbg.
|
|
1955
|
+
imports.wbg.__wbg_entries_7a0e06255456ebcd = function(arg0) {
|
|
1975
1956
|
const ret = Object.entries(getObject(arg0));
|
|
1976
1957
|
return addHeapObject(ret);
|
|
1977
1958
|
};
|
|
1978
|
-
imports.wbg.
|
|
1959
|
+
imports.wbg.__wbg_toString_e17a6671146f47c1 = function(arg0) {
|
|
1979
1960
|
const ret = getObject(arg0).toString();
|
|
1980
1961
|
return addHeapObject(ret);
|
|
1981
1962
|
};
|
|
1982
|
-
imports.wbg.
|
|
1963
|
+
imports.wbg.__wbg_new_b85e72ed1bfd57f9 = function(arg0, arg1) {
|
|
1983
1964
|
try {
|
|
1984
1965
|
var state0 = {a: arg0, b: arg1};
|
|
1985
1966
|
var cb0 = (arg0, arg1) => {
|
|
1986
1967
|
const a = state0.a;
|
|
1987
1968
|
state0.a = 0;
|
|
1988
1969
|
try {
|
|
1989
|
-
return
|
|
1970
|
+
return __wbg_adapter_379(a, state0.b, arg0, arg1);
|
|
1990
1971
|
} finally {
|
|
1991
1972
|
state0.a = a;
|
|
1992
1973
|
}
|
|
@@ -1997,46 +1978,46 @@ function __wbg_get_imports() {
|
|
|
1997
1978
|
state0.a = state0.b = 0;
|
|
1998
1979
|
}
|
|
1999
1980
|
};
|
|
2000
|
-
imports.wbg.
|
|
1981
|
+
imports.wbg.__wbg_allSettled_1e88fcd38af20b3d = function(arg0) {
|
|
2001
1982
|
const ret = Promise.allSettled(getObject(arg0));
|
|
2002
1983
|
return addHeapObject(ret);
|
|
2003
1984
|
};
|
|
2004
|
-
imports.wbg.
|
|
1985
|
+
imports.wbg.__wbg_any_8926b8e07e172db9 = function(arg0) {
|
|
2005
1986
|
const ret = Promise.any(getObject(arg0));
|
|
2006
1987
|
return addHeapObject(ret);
|
|
2007
1988
|
};
|
|
2008
|
-
imports.wbg.
|
|
1989
|
+
imports.wbg.__wbg_resolve_570458cb99d56a43 = function(arg0) {
|
|
2009
1990
|
const ret = Promise.resolve(getObject(arg0));
|
|
2010
1991
|
return addHeapObject(ret);
|
|
2011
1992
|
};
|
|
2012
|
-
imports.wbg.
|
|
1993
|
+
imports.wbg.__wbg_then_95e6edc0f89b73b1 = function(arg0, arg1) {
|
|
2013
1994
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
2014
1995
|
return addHeapObject(ret);
|
|
2015
1996
|
};
|
|
2016
|
-
imports.wbg.
|
|
1997
|
+
imports.wbg.__wbg_then_876bb3c633745cc6 = function(arg0, arg1, arg2) {
|
|
2017
1998
|
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
2018
1999
|
return addHeapObject(ret);
|
|
2019
2000
|
};
|
|
2020
|
-
imports.wbg.
|
|
2001
|
+
imports.wbg.__wbg_buffer_b7b08af79b0b0974 = function(arg0) {
|
|
2021
2002
|
const ret = getObject(arg0).buffer;
|
|
2022
2003
|
return addHeapObject(ret);
|
|
2023
2004
|
};
|
|
2024
|
-
imports.wbg.
|
|
2005
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9 = function(arg0, arg1, arg2) {
|
|
2025
2006
|
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
2026
2007
|
return addHeapObject(ret);
|
|
2027
2008
|
};
|
|
2028
|
-
imports.wbg.
|
|
2009
|
+
imports.wbg.__wbg_new_ea1883e1e5e86686 = function(arg0) {
|
|
2029
2010
|
const ret = new Uint8Array(getObject(arg0));
|
|
2030
2011
|
return addHeapObject(ret);
|
|
2031
2012
|
};
|
|
2032
|
-
imports.wbg.
|
|
2013
|
+
imports.wbg.__wbg_set_d1e79e2388520f18 = function(arg0, arg1, arg2) {
|
|
2033
2014
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
2034
2015
|
};
|
|
2035
|
-
imports.wbg.
|
|
2016
|
+
imports.wbg.__wbg_length_8339fcf5d8ecd12e = function(arg0) {
|
|
2036
2017
|
const ret = getObject(arg0).length;
|
|
2037
2018
|
return ret;
|
|
2038
2019
|
};
|
|
2039
|
-
imports.wbg.
|
|
2020
|
+
imports.wbg.__wbg_instanceof_Uint8Array_247a91427532499e = function(arg0) {
|
|
2040
2021
|
let result;
|
|
2041
2022
|
try {
|
|
2042
2023
|
result = getObject(arg0) instanceof Uint8Array;
|
|
@@ -2046,38 +2027,34 @@ function __wbg_get_imports() {
|
|
|
2046
2027
|
const ret = result;
|
|
2047
2028
|
return ret;
|
|
2048
2029
|
};
|
|
2049
|
-
imports.wbg.
|
|
2030
|
+
imports.wbg.__wbg_newwithlength_ec548f448387c968 = function(arg0) {
|
|
2050
2031
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
2051
2032
|
return addHeapObject(ret);
|
|
2052
2033
|
};
|
|
2053
|
-
imports.wbg.
|
|
2034
|
+
imports.wbg.__wbg_subarray_7c2e3576afe181d1 = function(arg0, arg1, arg2) {
|
|
2054
2035
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
2055
2036
|
return addHeapObject(ret);
|
|
2056
2037
|
};
|
|
2057
|
-
imports.wbg.
|
|
2058
|
-
const ret = Reflect.has(getObject(arg0), getObject(arg1));
|
|
2059
|
-
return ret;
|
|
2060
|
-
}, arguments) };
|
|
2061
|
-
imports.wbg.__wbg_set_37a50e901587b477 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2062
|
-
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
2063
|
-
return ret;
|
|
2064
|
-
}, arguments) };
|
|
2065
|
-
imports.wbg.__wbg_stringify_daa6661e90c04140 = function() { return handleError(function (arg0) {
|
|
2038
|
+
imports.wbg.__wbg_stringify_bbf45426c92a6bf5 = function() { return handleError(function (arg0) {
|
|
2066
2039
|
const ret = JSON.stringify(getObject(arg0));
|
|
2067
2040
|
return addHeapObject(ret);
|
|
2068
2041
|
}, arguments) };
|
|
2042
|
+
imports.wbg.__wbg_has_4bfbc01db38743f7 = function() { return handleError(function (arg0, arg1) {
|
|
2043
|
+
const ret = Reflect.has(getObject(arg0), getObject(arg1));
|
|
2044
|
+
return ret;
|
|
2045
|
+
}, arguments) };
|
|
2069
2046
|
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
2070
2047
|
const v = getObject(arg1);
|
|
2071
2048
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
2072
|
-
|
|
2073
|
-
|
|
2049
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
2050
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
2074
2051
|
};
|
|
2075
2052
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
2076
2053
|
const ret = debugString(getObject(arg1));
|
|
2077
2054
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2078
2055
|
const len1 = WASM_VECTOR_LEN;
|
|
2079
|
-
|
|
2080
|
-
|
|
2056
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2057
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2081
2058
|
};
|
|
2082
2059
|
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
2083
2060
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
@@ -2086,26 +2063,36 @@ function __wbg_get_imports() {
|
|
|
2086
2063
|
const ret = wasm.memory;
|
|
2087
2064
|
return addHeapObject(ret);
|
|
2088
2065
|
};
|
|
2089
|
-
imports.wbg.
|
|
2090
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2066
|
+
imports.wbg.__wbindgen_closure_wrapper5369 = function(arg0, arg1, arg2) {
|
|
2067
|
+
const ret = makeMutClosure(arg0, arg1, 1209, __wbg_adapter_52);
|
|
2068
|
+
return addHeapObject(ret);
|
|
2069
|
+
};
|
|
2070
|
+
imports.wbg.__wbindgen_closure_wrapper5371 = function(arg0, arg1, arg2) {
|
|
2071
|
+
const ret = makeMutClosure(arg0, arg1, 1209, __wbg_adapter_52);
|
|
2072
|
+
return addHeapObject(ret);
|
|
2073
|
+
};
|
|
2074
|
+
imports.wbg.__wbindgen_closure_wrapper7788 = function(arg0, arg1, arg2) {
|
|
2075
|
+
const ret = makeMutClosure(arg0, arg1, 1607, __wbg_adapter_57);
|
|
2076
|
+
return addHeapObject(ret);
|
|
2077
|
+
};
|
|
2078
|
+
imports.wbg.__wbindgen_closure_wrapper16453 = function(arg0, arg1, arg2) {
|
|
2079
|
+
const ret = makeMutClosure(arg0, arg1, 3549, __wbg_adapter_60);
|
|
2091
2080
|
return addHeapObject(ret);
|
|
2092
2081
|
};
|
|
2093
2082
|
|
|
2094
2083
|
return imports;
|
|
2095
2084
|
}
|
|
2096
2085
|
|
|
2097
|
-
function __wbg_init_memory(imports,
|
|
2086
|
+
function __wbg_init_memory(imports, memory) {
|
|
2098
2087
|
|
|
2099
2088
|
}
|
|
2100
2089
|
|
|
2101
2090
|
function __wbg_finalize_init(instance, module) {
|
|
2102
2091
|
wasm = instance.exports;
|
|
2103
2092
|
__wbg_init.__wbindgen_wasm_module = module;
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
cachedUint32Memory0 = null;
|
|
2108
|
-
cachedUint8Memory0 = null;
|
|
2093
|
+
cachedDataViewMemory0 = null;
|
|
2094
|
+
cachedUint8ArrayMemory0 = null;
|
|
2095
|
+
|
|
2109
2096
|
|
|
2110
2097
|
|
|
2111
2098
|
return wasm;
|
|
@@ -2114,6 +2101,12 @@ function __wbg_finalize_init(instance, module) {
|
|
|
2114
2101
|
function initSync(module) {
|
|
2115
2102
|
if (wasm !== undefined) return wasm;
|
|
2116
2103
|
|
|
2104
|
+
|
|
2105
|
+
if (typeof module !== 'undefined' && Object.getPrototypeOf(module) === Object.prototype)
|
|
2106
|
+
({module} = module)
|
|
2107
|
+
else
|
|
2108
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
2109
|
+
|
|
2117
2110
|
const imports = __wbg_get_imports();
|
|
2118
2111
|
|
|
2119
2112
|
__wbg_init_memory(imports);
|
|
@@ -2127,24 +2120,30 @@ function initSync(module) {
|
|
|
2127
2120
|
return __wbg_finalize_init(instance, module);
|
|
2128
2121
|
}
|
|
2129
2122
|
|
|
2130
|
-
async function __wbg_init(
|
|
2123
|
+
async function __wbg_init(module_or_path) {
|
|
2131
2124
|
if (wasm !== undefined) return wasm;
|
|
2132
2125
|
|
|
2133
|
-
|
|
2134
|
-
|
|
2126
|
+
|
|
2127
|
+
if (typeof module_or_path !== 'undefined' && Object.getPrototypeOf(module_or_path) === Object.prototype)
|
|
2128
|
+
({module_or_path} = module_or_path)
|
|
2129
|
+
else
|
|
2130
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
2131
|
+
|
|
2132
|
+
if (typeof module_or_path === 'undefined') {
|
|
2133
|
+
module_or_path = new URL('bitmask_core_bg.wasm', import.meta.url);
|
|
2135
2134
|
}
|
|
2136
2135
|
const imports = __wbg_get_imports();
|
|
2137
2136
|
|
|
2138
|
-
if (typeof
|
|
2139
|
-
|
|
2137
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
2138
|
+
module_or_path = fetch(module_or_path);
|
|
2140
2139
|
}
|
|
2141
2140
|
|
|
2142
2141
|
__wbg_init_memory(imports);
|
|
2143
2142
|
|
|
2144
|
-
const { instance, module } = await __wbg_load(await
|
|
2143
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
2145
2144
|
|
|
2146
2145
|
return __wbg_finalize_init(instance, module);
|
|
2147
2146
|
}
|
|
2148
2147
|
|
|
2149
|
-
export { initSync }
|
|
2148
|
+
export { initSync };
|
|
2150
2149
|
export default __wbg_init;
|