@breeztech/breez-sdk-spark 0.0.1-dev2
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/breez-sdk-spark.tgz +0 -0
- package/bundler/breez_sdk_spark_wasm.d.ts +403 -0
- package/bundler/breez_sdk_spark_wasm.js +5 -0
- package/bundler/breez_sdk_spark_wasm_bg.js +1301 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +65 -0
- package/bundler/package.json +17 -0
- package/bundler/snippets/wasm-array-cp-201e2a98f0e691f7/copy.min.js +1 -0
- package/deno/breez_sdk_spark_wasm.d.ts +403 -0
- package/deno/breez_sdk_spark_wasm.js +1178 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +65 -0
- package/deno/snippets/wasm-array-cp-201e2a98f0e691f7/copy.min.js +1 -0
- package/nodejs/breez_sdk_spark_wasm.d.ts +403 -0
- package/nodejs/breez_sdk_spark_wasm.js +1312 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +65 -0
- package/nodejs/package.json +11 -0
- package/nodejs/snippets/wasm-array-cp-201e2a98f0e691f7/copy.min.js +1 -0
- package/package.json +33 -0
- package/web/breez_sdk_spark_wasm.d.ts +492 -0
- package/web/breez_sdk_spark_wasm.js +1269 -0
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +65 -0
- package/web/package.json +15 -0
- package/web/snippets/wasm-array-cp-201e2a98f0e691f7/copy.min.js +1 -0
|
@@ -0,0 +1,1312 @@
|
|
|
1
|
+
|
|
2
|
+
let imports = {};
|
|
3
|
+
imports['__wbindgen_placeholder__'] = module.exports;
|
|
4
|
+
let wasm;
|
|
5
|
+
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
|
+
|
|
7
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
8
|
+
|
|
9
|
+
cachedTextDecoder.decode();
|
|
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
|
+
|
|
20
|
+
function getStringFromWasm0(ptr, len) {
|
|
21
|
+
ptr = ptr >>> 0;
|
|
22
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function addToExternrefTable0(obj) {
|
|
26
|
+
const idx = wasm.__externref_table_alloc();
|
|
27
|
+
wasm.__wbindgen_export_2.set(idx, obj);
|
|
28
|
+
return idx;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function handleError(f, args) {
|
|
32
|
+
try {
|
|
33
|
+
return f.apply(this, args);
|
|
34
|
+
} catch (e) {
|
|
35
|
+
const idx = addToExternrefTable0(e);
|
|
36
|
+
wasm.__wbindgen_exn_store(idx);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function isLikeNone(x) {
|
|
41
|
+
return x === undefined || x === null;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
45
|
+
ptr = ptr >>> 0;
|
|
46
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
let cachedDataViewMemory0 = null;
|
|
50
|
+
|
|
51
|
+
function getDataViewMemory0() {
|
|
52
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
53
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
54
|
+
}
|
|
55
|
+
return cachedDataViewMemory0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
let WASM_VECTOR_LEN = 0;
|
|
59
|
+
|
|
60
|
+
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
61
|
+
|
|
62
|
+
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
63
|
+
? function (arg, view) {
|
|
64
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
|
65
|
+
}
|
|
66
|
+
: function (arg, view) {
|
|
67
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
68
|
+
view.set(buf);
|
|
69
|
+
return {
|
|
70
|
+
read: arg.length,
|
|
71
|
+
written: buf.length
|
|
72
|
+
};
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
76
|
+
|
|
77
|
+
if (realloc === undefined) {
|
|
78
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
79
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
80
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
81
|
+
WASM_VECTOR_LEN = buf.length;
|
|
82
|
+
return ptr;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
let len = arg.length;
|
|
86
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
87
|
+
|
|
88
|
+
const mem = getUint8ArrayMemory0();
|
|
89
|
+
|
|
90
|
+
let offset = 0;
|
|
91
|
+
|
|
92
|
+
for (; offset < len; offset++) {
|
|
93
|
+
const code = arg.charCodeAt(offset);
|
|
94
|
+
if (code > 0x7F) break;
|
|
95
|
+
mem[ptr + offset] = code;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (offset !== len) {
|
|
99
|
+
if (offset !== 0) {
|
|
100
|
+
arg = arg.slice(offset);
|
|
101
|
+
}
|
|
102
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
103
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
104
|
+
const ret = encodeString(arg, view);
|
|
105
|
+
|
|
106
|
+
offset += ret.written;
|
|
107
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
WASM_VECTOR_LEN = offset;
|
|
111
|
+
return ptr;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
115
|
+
? { register: () => {}, unregister: () => {} }
|
|
116
|
+
: new FinalizationRegistry(state => {
|
|
117
|
+
wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b)
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
121
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
122
|
+
const real = (...args) => {
|
|
123
|
+
// First up with a closure we increment the internal reference
|
|
124
|
+
// count. This ensures that the Rust closure environment won't
|
|
125
|
+
// be deallocated while we're invoking it.
|
|
126
|
+
state.cnt++;
|
|
127
|
+
const a = state.a;
|
|
128
|
+
state.a = 0;
|
|
129
|
+
try {
|
|
130
|
+
return f(a, state.b, ...args);
|
|
131
|
+
} finally {
|
|
132
|
+
if (--state.cnt === 0) {
|
|
133
|
+
wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
|
|
134
|
+
CLOSURE_DTORS.unregister(state);
|
|
135
|
+
} else {
|
|
136
|
+
state.a = a;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
real.original = state;
|
|
141
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
142
|
+
return real;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
function debugString(val) {
|
|
146
|
+
// primitive types
|
|
147
|
+
const type = typeof val;
|
|
148
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
149
|
+
return `${val}`;
|
|
150
|
+
}
|
|
151
|
+
if (type == 'string') {
|
|
152
|
+
return `"${val}"`;
|
|
153
|
+
}
|
|
154
|
+
if (type == 'symbol') {
|
|
155
|
+
const description = val.description;
|
|
156
|
+
if (description == null) {
|
|
157
|
+
return 'Symbol';
|
|
158
|
+
} else {
|
|
159
|
+
return `Symbol(${description})`;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
if (type == 'function') {
|
|
163
|
+
const name = val.name;
|
|
164
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
165
|
+
return `Function(${name})`;
|
|
166
|
+
} else {
|
|
167
|
+
return 'Function';
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
// objects
|
|
171
|
+
if (Array.isArray(val)) {
|
|
172
|
+
const length = val.length;
|
|
173
|
+
let debug = '[';
|
|
174
|
+
if (length > 0) {
|
|
175
|
+
debug += debugString(val[0]);
|
|
176
|
+
}
|
|
177
|
+
for(let i = 1; i < length; i++) {
|
|
178
|
+
debug += ', ' + debugString(val[i]);
|
|
179
|
+
}
|
|
180
|
+
debug += ']';
|
|
181
|
+
return debug;
|
|
182
|
+
}
|
|
183
|
+
// Test for built-in
|
|
184
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
185
|
+
let className;
|
|
186
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
187
|
+
className = builtInMatches[1];
|
|
188
|
+
} else {
|
|
189
|
+
// Failed to match the standard '[object ClassName]'
|
|
190
|
+
return toString.call(val);
|
|
191
|
+
}
|
|
192
|
+
if (className == 'Object') {
|
|
193
|
+
// we're a user defined class or Object
|
|
194
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
195
|
+
// easier than looping through ownProperties of `val`.
|
|
196
|
+
try {
|
|
197
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
198
|
+
} catch (_) {
|
|
199
|
+
return 'Object';
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
// errors
|
|
203
|
+
if (val instanceof Error) {
|
|
204
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
205
|
+
}
|
|
206
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
207
|
+
return className;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
function takeFromExternrefTable0(idx) {
|
|
211
|
+
const value = wasm.__wbindgen_export_2.get(idx);
|
|
212
|
+
wasm.__externref_table_dealloc(idx);
|
|
213
|
+
return value;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* @param {Logger} logger
|
|
217
|
+
* @param {string | null} [filter]
|
|
218
|
+
* @returns {Promise<void>}
|
|
219
|
+
*/
|
|
220
|
+
module.exports.initLogging = function(logger, filter) {
|
|
221
|
+
var ptr0 = isLikeNone(filter) ? 0 : passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
222
|
+
var len0 = WASM_VECTOR_LEN;
|
|
223
|
+
const ret = wasm.initLogging(logger, ptr0, len0);
|
|
224
|
+
return ret;
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* @param {Network} network
|
|
229
|
+
* @returns {Config}
|
|
230
|
+
*/
|
|
231
|
+
module.exports.defaultConfig = function(network) {
|
|
232
|
+
const ret = wasm.defaultConfig(network);
|
|
233
|
+
return ret;
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* @param {string} input
|
|
238
|
+
* @returns {Promise<InputType>}
|
|
239
|
+
*/
|
|
240
|
+
module.exports.parse = function(input) {
|
|
241
|
+
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
242
|
+
const len0 = WASM_VECTOR_LEN;
|
|
243
|
+
const ret = wasm.parse(ptr0, len0);
|
|
244
|
+
return ret;
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Entry point invoked by JavaScript in a worker.
|
|
249
|
+
* @param {number} ptr
|
|
250
|
+
*/
|
|
251
|
+
module.exports.task_worker_entry_point = function(ptr) {
|
|
252
|
+
const ret = wasm.task_worker_entry_point(ptr);
|
|
253
|
+
if (ret[1]) {
|
|
254
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
function __wbg_adapter_32(arg0, arg1) {
|
|
259
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hba09e218ab7e6d49(arg0, arg1);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
function __wbg_adapter_35(arg0, arg1, arg2) {
|
|
263
|
+
wasm.closure3753_externref_shim(arg0, arg1, arg2);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
function __wbg_adapter_252(arg0, arg1, arg2, arg3) {
|
|
267
|
+
wasm.closure4035_externref_shim(arg0, arg1, arg2, arg3);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
271
|
+
|
|
272
|
+
const __wbindgen_enum_ReferrerPolicy = ["", "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "unsafe-url", "same-origin", "strict-origin", "strict-origin-when-cross-origin"];
|
|
273
|
+
|
|
274
|
+
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
275
|
+
|
|
276
|
+
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
277
|
+
|
|
278
|
+
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
279
|
+
|
|
280
|
+
const __wbindgen_enum_RequestRedirect = ["follow", "error", "manual"];
|
|
281
|
+
|
|
282
|
+
const BreezSdkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
283
|
+
? { register: () => {}, unregister: () => {} }
|
|
284
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_breezsdk_free(ptr >>> 0, 1));
|
|
285
|
+
|
|
286
|
+
class BreezSdk {
|
|
287
|
+
|
|
288
|
+
static __wrap(ptr) {
|
|
289
|
+
ptr = ptr >>> 0;
|
|
290
|
+
const obj = Object.create(BreezSdk.prototype);
|
|
291
|
+
obj.__wbg_ptr = ptr;
|
|
292
|
+
BreezSdkFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
293
|
+
return obj;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
__destroy_into_raw() {
|
|
297
|
+
const ptr = this.__wbg_ptr;
|
|
298
|
+
this.__wbg_ptr = 0;
|
|
299
|
+
BreezSdkFinalization.unregister(this);
|
|
300
|
+
return ptr;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
free() {
|
|
304
|
+
const ptr = this.__destroy_into_raw();
|
|
305
|
+
wasm.__wbg_breezsdk_free(ptr, 0);
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* @param {EventListener} listener
|
|
309
|
+
* @returns {string}
|
|
310
|
+
*/
|
|
311
|
+
addEventListener(listener) {
|
|
312
|
+
let deferred1_0;
|
|
313
|
+
let deferred1_1;
|
|
314
|
+
try {
|
|
315
|
+
const ret = wasm.breezsdk_addEventListener(this.__wbg_ptr, listener);
|
|
316
|
+
deferred1_0 = ret[0];
|
|
317
|
+
deferred1_1 = ret[1];
|
|
318
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
319
|
+
} finally {
|
|
320
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* @param {string} id
|
|
325
|
+
* @returns {boolean}
|
|
326
|
+
*/
|
|
327
|
+
removeEventListener(id) {
|
|
328
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
329
|
+
const len0 = WASM_VECTOR_LEN;
|
|
330
|
+
const ret = wasm.breezsdk_removeEventListener(this.__wbg_ptr, ptr0, len0);
|
|
331
|
+
return ret !== 0;
|
|
332
|
+
}
|
|
333
|
+
disconnect() {
|
|
334
|
+
const ret = wasm.breezsdk_disconnect(this.__wbg_ptr);
|
|
335
|
+
if (ret[1]) {
|
|
336
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* @param {GetInfoRequest} request
|
|
341
|
+
* @returns {GetInfoResponse}
|
|
342
|
+
*/
|
|
343
|
+
getInfo(request) {
|
|
344
|
+
const ret = wasm.breezsdk_getInfo(this.__wbg_ptr, request);
|
|
345
|
+
if (ret[2]) {
|
|
346
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
347
|
+
}
|
|
348
|
+
return takeFromExternrefTable0(ret[0]);
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* @param {PrepareReceivePaymentRequest} request
|
|
352
|
+
* @returns {PrepareReceivePaymentResponse}
|
|
353
|
+
*/
|
|
354
|
+
prepareReceivePayment(request) {
|
|
355
|
+
const ret = wasm.breezsdk_prepareReceivePayment(this.__wbg_ptr, request);
|
|
356
|
+
if (ret[2]) {
|
|
357
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
358
|
+
}
|
|
359
|
+
return takeFromExternrefTable0(ret[0]);
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* @param {ReceivePaymentRequest} request
|
|
363
|
+
* @returns {Promise<ReceivePaymentResponse>}
|
|
364
|
+
*/
|
|
365
|
+
receivePayment(request) {
|
|
366
|
+
const ret = wasm.breezsdk_receivePayment(this.__wbg_ptr, request);
|
|
367
|
+
return ret;
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* @param {PrepareSendPaymentRequest} request
|
|
371
|
+
* @returns {Promise<PrepareSendPaymentResponse>}
|
|
372
|
+
*/
|
|
373
|
+
prepareSendPayment(request) {
|
|
374
|
+
const ret = wasm.breezsdk_prepareSendPayment(this.__wbg_ptr, request);
|
|
375
|
+
return ret;
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* @param {PrepareLnurlPayRequest} request
|
|
379
|
+
* @returns {Promise<PrepareLnurlPayResponse>}
|
|
380
|
+
*/
|
|
381
|
+
prepareLnurlPay(request) {
|
|
382
|
+
const ret = wasm.breezsdk_prepareLnurlPay(this.__wbg_ptr, request);
|
|
383
|
+
return ret;
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* @param {LnurlPayRequest} request
|
|
387
|
+
* @returns {Promise<LnurlPayResponse>}
|
|
388
|
+
*/
|
|
389
|
+
lnurlPay(request) {
|
|
390
|
+
const ret = wasm.breezsdk_lnurlPay(this.__wbg_ptr, request);
|
|
391
|
+
return ret;
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* @param {SendPaymentRequest} request
|
|
395
|
+
* @returns {Promise<SendPaymentResponse>}
|
|
396
|
+
*/
|
|
397
|
+
sendPayment(request) {
|
|
398
|
+
const ret = wasm.breezsdk_sendPayment(this.__wbg_ptr, request);
|
|
399
|
+
return ret;
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* @param {SyncWalletRequest} request
|
|
403
|
+
* @returns {SyncWalletResponse}
|
|
404
|
+
*/
|
|
405
|
+
syncWallet(request) {
|
|
406
|
+
const ret = wasm.breezsdk_syncWallet(this.__wbg_ptr, request);
|
|
407
|
+
if (ret[2]) {
|
|
408
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
409
|
+
}
|
|
410
|
+
return takeFromExternrefTable0(ret[0]);
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* @param {ListPaymentsRequest} request
|
|
414
|
+
* @returns {ListPaymentsResponse}
|
|
415
|
+
*/
|
|
416
|
+
listPayments(request) {
|
|
417
|
+
const ret = wasm.breezsdk_listPayments(this.__wbg_ptr, request);
|
|
418
|
+
if (ret[2]) {
|
|
419
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
420
|
+
}
|
|
421
|
+
return takeFromExternrefTable0(ret[0]);
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* @param {GetPaymentRequest} request
|
|
425
|
+
* @returns {GetPaymentResponse}
|
|
426
|
+
*/
|
|
427
|
+
getPayment(request) {
|
|
428
|
+
const ret = wasm.breezsdk_getPayment(this.__wbg_ptr, request);
|
|
429
|
+
if (ret[2]) {
|
|
430
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
431
|
+
}
|
|
432
|
+
return takeFromExternrefTable0(ret[0]);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
module.exports.BreezSdk = BreezSdk;
|
|
436
|
+
|
|
437
|
+
const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
438
|
+
? { register: () => {}, unregister: () => {} }
|
|
439
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr >>> 0, 1));
|
|
440
|
+
|
|
441
|
+
class IntoUnderlyingByteSource {
|
|
442
|
+
|
|
443
|
+
__destroy_into_raw() {
|
|
444
|
+
const ptr = this.__wbg_ptr;
|
|
445
|
+
this.__wbg_ptr = 0;
|
|
446
|
+
IntoUnderlyingByteSourceFinalization.unregister(this);
|
|
447
|
+
return ptr;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
free() {
|
|
451
|
+
const ptr = this.__destroy_into_raw();
|
|
452
|
+
wasm.__wbg_intounderlyingbytesource_free(ptr, 0);
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* @returns {ReadableStreamType}
|
|
456
|
+
*/
|
|
457
|
+
get type() {
|
|
458
|
+
const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
|
|
459
|
+
return __wbindgen_enum_ReadableStreamType[ret];
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* @returns {number}
|
|
463
|
+
*/
|
|
464
|
+
get autoAllocateChunkSize() {
|
|
465
|
+
const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr);
|
|
466
|
+
return ret >>> 0;
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* @param {ReadableByteStreamController} controller
|
|
470
|
+
*/
|
|
471
|
+
start(controller) {
|
|
472
|
+
wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller);
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* @param {ReadableByteStreamController} controller
|
|
476
|
+
* @returns {Promise<any>}
|
|
477
|
+
*/
|
|
478
|
+
pull(controller) {
|
|
479
|
+
const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, controller);
|
|
480
|
+
return ret;
|
|
481
|
+
}
|
|
482
|
+
cancel() {
|
|
483
|
+
const ptr = this.__destroy_into_raw();
|
|
484
|
+
wasm.intounderlyingbytesource_cancel(ptr);
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
module.exports.IntoUnderlyingByteSource = IntoUnderlyingByteSource;
|
|
488
|
+
|
|
489
|
+
const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
490
|
+
? { register: () => {}, unregister: () => {} }
|
|
491
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr >>> 0, 1));
|
|
492
|
+
|
|
493
|
+
class IntoUnderlyingSink {
|
|
494
|
+
|
|
495
|
+
__destroy_into_raw() {
|
|
496
|
+
const ptr = this.__wbg_ptr;
|
|
497
|
+
this.__wbg_ptr = 0;
|
|
498
|
+
IntoUnderlyingSinkFinalization.unregister(this);
|
|
499
|
+
return ptr;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
free() {
|
|
503
|
+
const ptr = this.__destroy_into_raw();
|
|
504
|
+
wasm.__wbg_intounderlyingsink_free(ptr, 0);
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* @param {any} chunk
|
|
508
|
+
* @returns {Promise<any>}
|
|
509
|
+
*/
|
|
510
|
+
write(chunk) {
|
|
511
|
+
const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk);
|
|
512
|
+
return ret;
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* @returns {Promise<any>}
|
|
516
|
+
*/
|
|
517
|
+
close() {
|
|
518
|
+
const ptr = this.__destroy_into_raw();
|
|
519
|
+
const ret = wasm.intounderlyingsink_close(ptr);
|
|
520
|
+
return ret;
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* @param {any} reason
|
|
524
|
+
* @returns {Promise<any>}
|
|
525
|
+
*/
|
|
526
|
+
abort(reason) {
|
|
527
|
+
const ptr = this.__destroy_into_raw();
|
|
528
|
+
const ret = wasm.intounderlyingsink_abort(ptr, reason);
|
|
529
|
+
return ret;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
module.exports.IntoUnderlyingSink = IntoUnderlyingSink;
|
|
533
|
+
|
|
534
|
+
const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
535
|
+
? { register: () => {}, unregister: () => {} }
|
|
536
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr >>> 0, 1));
|
|
537
|
+
|
|
538
|
+
class IntoUnderlyingSource {
|
|
539
|
+
|
|
540
|
+
__destroy_into_raw() {
|
|
541
|
+
const ptr = this.__wbg_ptr;
|
|
542
|
+
this.__wbg_ptr = 0;
|
|
543
|
+
IntoUnderlyingSourceFinalization.unregister(this);
|
|
544
|
+
return ptr;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
free() {
|
|
548
|
+
const ptr = this.__destroy_into_raw();
|
|
549
|
+
wasm.__wbg_intounderlyingsource_free(ptr, 0);
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* @param {ReadableStreamDefaultController} controller
|
|
553
|
+
* @returns {Promise<any>}
|
|
554
|
+
*/
|
|
555
|
+
pull(controller) {
|
|
556
|
+
const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, controller);
|
|
557
|
+
return ret;
|
|
558
|
+
}
|
|
559
|
+
cancel() {
|
|
560
|
+
const ptr = this.__destroy_into_raw();
|
|
561
|
+
wasm.intounderlyingsource_cancel(ptr);
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
module.exports.IntoUnderlyingSource = IntoUnderlyingSource;
|
|
565
|
+
|
|
566
|
+
const SdkBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
567
|
+
? { register: () => {}, unregister: () => {} }
|
|
568
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_sdkbuilder_free(ptr >>> 0, 1));
|
|
569
|
+
|
|
570
|
+
class SdkBuilder {
|
|
571
|
+
|
|
572
|
+
static __wrap(ptr) {
|
|
573
|
+
ptr = ptr >>> 0;
|
|
574
|
+
const obj = Object.create(SdkBuilder.prototype);
|
|
575
|
+
obj.__wbg_ptr = ptr;
|
|
576
|
+
SdkBuilderFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
577
|
+
return obj;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
__destroy_into_raw() {
|
|
581
|
+
const ptr = this.__wbg_ptr;
|
|
582
|
+
this.__wbg_ptr = 0;
|
|
583
|
+
SdkBuilderFinalization.unregister(this);
|
|
584
|
+
return ptr;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
free() {
|
|
588
|
+
const ptr = this.__destroy_into_raw();
|
|
589
|
+
wasm.__wbg_sdkbuilder_free(ptr, 0);
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* @param {Config} config
|
|
593
|
+
* @param {string} mnemonic
|
|
594
|
+
* @param {string} data_dir
|
|
595
|
+
* @returns {SdkBuilder}
|
|
596
|
+
*/
|
|
597
|
+
static new(config, mnemonic, data_dir) {
|
|
598
|
+
const ptr0 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
599
|
+
const len0 = WASM_VECTOR_LEN;
|
|
600
|
+
const ptr1 = passStringToWasm0(data_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
601
|
+
const len1 = WASM_VECTOR_LEN;
|
|
602
|
+
const ret = wasm.sdkbuilder_new(config, ptr0, len0, ptr1, len1);
|
|
603
|
+
if (ret[2]) {
|
|
604
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
605
|
+
}
|
|
606
|
+
return SdkBuilder.__wrap(ret[0]);
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* @param {string} url
|
|
610
|
+
* @param {Credentials | null} [credentials]
|
|
611
|
+
* @returns {SdkBuilder}
|
|
612
|
+
*/
|
|
613
|
+
withRestChainService(url, credentials) {
|
|
614
|
+
const ptr = this.__destroy_into_raw();
|
|
615
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
616
|
+
const len0 = WASM_VECTOR_LEN;
|
|
617
|
+
const ret = wasm.sdkbuilder_withRestChainService(ptr, ptr0, len0, isLikeNone(credentials) ? 0 : addToExternrefTable0(credentials));
|
|
618
|
+
return SdkBuilder.__wrap(ret);
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* @returns {Promise<BreezSdk>}
|
|
622
|
+
*/
|
|
623
|
+
build() {
|
|
624
|
+
const ptr = this.__destroy_into_raw();
|
|
625
|
+
const ret = wasm.sdkbuilder_build(ptr);
|
|
626
|
+
return ret;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
module.exports.SdkBuilder = SdkBuilder;
|
|
630
|
+
|
|
631
|
+
module.exports.__wbg_abort_410ec47a64ac6117 = function(arg0, arg1) {
|
|
632
|
+
arg0.abort(arg1);
|
|
633
|
+
};
|
|
634
|
+
|
|
635
|
+
module.exports.__wbg_abort_775ef1d17fc65868 = function(arg0) {
|
|
636
|
+
arg0.abort();
|
|
637
|
+
};
|
|
638
|
+
|
|
639
|
+
module.exports.__wbg_append_8c7dd8d641a5f01b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
640
|
+
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
641
|
+
}, arguments) };
|
|
642
|
+
|
|
643
|
+
module.exports.__wbg_arrayBuffer_d1b44c4390db422f = function() { return handleError(function (arg0) {
|
|
644
|
+
const ret = arg0.arrayBuffer();
|
|
645
|
+
return ret;
|
|
646
|
+
}, arguments) };
|
|
647
|
+
|
|
648
|
+
module.exports.__wbg_body_0b8fd1fe671660df = function(arg0) {
|
|
649
|
+
const ret = arg0.body;
|
|
650
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
651
|
+
};
|
|
652
|
+
|
|
653
|
+
module.exports.__wbg_breezsdk_new = function(arg0) {
|
|
654
|
+
const ret = BreezSdk.__wrap(arg0);
|
|
655
|
+
return ret;
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
module.exports.__wbg_buffer_09165b52af8c5237 = function(arg0) {
|
|
659
|
+
const ret = arg0.buffer;
|
|
660
|
+
return ret;
|
|
661
|
+
};
|
|
662
|
+
|
|
663
|
+
module.exports.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
|
664
|
+
const ret = arg0.buffer;
|
|
665
|
+
return ret;
|
|
666
|
+
};
|
|
667
|
+
|
|
668
|
+
module.exports.__wbg_byobRequest_77d9adf63337edfb = function(arg0) {
|
|
669
|
+
const ret = arg0.byobRequest;
|
|
670
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
module.exports.__wbg_byteLength_e674b853d9c77e1d = function(arg0) {
|
|
674
|
+
const ret = arg0.byteLength;
|
|
675
|
+
return ret;
|
|
676
|
+
};
|
|
677
|
+
|
|
678
|
+
module.exports.__wbg_byteOffset_fd862df290ef848d = function(arg0) {
|
|
679
|
+
const ret = arg0.byteOffset;
|
|
680
|
+
return ret;
|
|
681
|
+
};
|
|
682
|
+
|
|
683
|
+
module.exports.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
|
|
684
|
+
const ret = arg0.call(arg1);
|
|
685
|
+
return ret;
|
|
686
|
+
}, arguments) };
|
|
687
|
+
|
|
688
|
+
module.exports.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
689
|
+
const ret = arg0.call(arg1, arg2);
|
|
690
|
+
return ret;
|
|
691
|
+
}, arguments) };
|
|
692
|
+
|
|
693
|
+
module.exports.__wbg_cancel_8a308660caa6cadf = function(arg0) {
|
|
694
|
+
const ret = arg0.cancel();
|
|
695
|
+
return ret;
|
|
696
|
+
};
|
|
697
|
+
|
|
698
|
+
module.exports.__wbg_catch_a6e601879b2610e9 = function(arg0, arg1) {
|
|
699
|
+
const ret = arg0.catch(arg1);
|
|
700
|
+
return ret;
|
|
701
|
+
};
|
|
702
|
+
|
|
703
|
+
module.exports.__wbg_clearTimeout_0b53d391c1b94dda = function(arg0) {
|
|
704
|
+
const ret = clearTimeout(arg0);
|
|
705
|
+
return ret;
|
|
706
|
+
};
|
|
707
|
+
|
|
708
|
+
module.exports.__wbg_close_304cc1fef3466669 = function() { return handleError(function (arg0) {
|
|
709
|
+
arg0.close();
|
|
710
|
+
}, arguments) };
|
|
711
|
+
|
|
712
|
+
module.exports.__wbg_close_5ce03e29be453811 = function() { return handleError(function (arg0) {
|
|
713
|
+
arg0.close();
|
|
714
|
+
}, arguments) };
|
|
715
|
+
|
|
716
|
+
module.exports.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
717
|
+
const ret = arg0.crypto;
|
|
718
|
+
return ret;
|
|
719
|
+
};
|
|
720
|
+
|
|
721
|
+
module.exports.__wbg_done_769e5ede4b31c67b = function(arg0) {
|
|
722
|
+
const ret = arg0.done;
|
|
723
|
+
return ret;
|
|
724
|
+
};
|
|
725
|
+
|
|
726
|
+
module.exports.__wbg_enqueue_bb16ba72f537dc9e = function() { return handleError(function (arg0, arg1) {
|
|
727
|
+
arg0.enqueue(arg1);
|
|
728
|
+
}, arguments) };
|
|
729
|
+
|
|
730
|
+
module.exports.__wbg_error_e98c298703cffa97 = function(arg0, arg1) {
|
|
731
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
732
|
+
};
|
|
733
|
+
|
|
734
|
+
module.exports.__wbg_fetch_07cd86dd296a5a63 = function(arg0, arg1, arg2) {
|
|
735
|
+
const ret = arg0.fetch(arg1, arg2);
|
|
736
|
+
return ret;
|
|
737
|
+
};
|
|
738
|
+
|
|
739
|
+
module.exports.__wbg_fetch_11bff8299d0ecd2b = function(arg0) {
|
|
740
|
+
const ret = fetch(arg0);
|
|
741
|
+
return ret;
|
|
742
|
+
};
|
|
743
|
+
|
|
744
|
+
module.exports.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
|
|
745
|
+
const ret = arg0.fetch(arg1);
|
|
746
|
+
return ret;
|
|
747
|
+
};
|
|
748
|
+
|
|
749
|
+
module.exports.__wbg_fetch_769f3df592e37b75 = function(arg0, arg1) {
|
|
750
|
+
const ret = fetch(arg0, arg1);
|
|
751
|
+
return ret;
|
|
752
|
+
};
|
|
753
|
+
|
|
754
|
+
module.exports.__wbg_getDate_ef336e14594b35ce = function(arg0) {
|
|
755
|
+
const ret = arg0.getDate();
|
|
756
|
+
return ret;
|
|
757
|
+
};
|
|
758
|
+
|
|
759
|
+
module.exports.__wbg_getDay_3da98b461c969439 = function(arg0) {
|
|
760
|
+
const ret = arg0.getDay();
|
|
761
|
+
return ret;
|
|
762
|
+
};
|
|
763
|
+
|
|
764
|
+
module.exports.__wbg_getFullYear_17d3c9e4db748eb7 = function(arg0) {
|
|
765
|
+
const ret = arg0.getFullYear();
|
|
766
|
+
return ret;
|
|
767
|
+
};
|
|
768
|
+
|
|
769
|
+
module.exports.__wbg_getHours_70451b8de3ce8638 = function(arg0) {
|
|
770
|
+
const ret = arg0.getHours();
|
|
771
|
+
return ret;
|
|
772
|
+
};
|
|
773
|
+
|
|
774
|
+
module.exports.__wbg_getMinutes_e793d718371e18f7 = function(arg0) {
|
|
775
|
+
const ret = arg0.getMinutes();
|
|
776
|
+
return ret;
|
|
777
|
+
};
|
|
778
|
+
|
|
779
|
+
module.exports.__wbg_getMonth_d37edcd23642c97d = function(arg0) {
|
|
780
|
+
const ret = arg0.getMonth();
|
|
781
|
+
return ret;
|
|
782
|
+
};
|
|
783
|
+
|
|
784
|
+
module.exports.__wbg_getRandomValues_8e6341dd77432a34 = function() { return handleError(function (arg0, arg1) {
|
|
785
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
786
|
+
}, arguments) };
|
|
787
|
+
|
|
788
|
+
module.exports.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
789
|
+
arg0.getRandomValues(arg1);
|
|
790
|
+
}, arguments) };
|
|
791
|
+
|
|
792
|
+
module.exports.__wbg_getRandomValues_e14bd3de0db61032 = function() { return handleError(function (arg0, arg1) {
|
|
793
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
794
|
+
}, arguments) };
|
|
795
|
+
|
|
796
|
+
module.exports.__wbg_getReader_48e00749fe3f6089 = function() { return handleError(function (arg0) {
|
|
797
|
+
const ret = arg0.getReader();
|
|
798
|
+
return ret;
|
|
799
|
+
}, arguments) };
|
|
800
|
+
|
|
801
|
+
module.exports.__wbg_getSeconds_755197b634cca692 = function(arg0) {
|
|
802
|
+
const ret = arg0.getSeconds();
|
|
803
|
+
return ret;
|
|
804
|
+
};
|
|
805
|
+
|
|
806
|
+
module.exports.__wbg_getTime_46267b1c24877e30 = function(arg0) {
|
|
807
|
+
const ret = arg0.getTime();
|
|
808
|
+
return ret;
|
|
809
|
+
};
|
|
810
|
+
|
|
811
|
+
module.exports.__wbg_getTimezoneOffset_6b5752021c499c47 = function(arg0) {
|
|
812
|
+
const ret = arg0.getTimezoneOffset();
|
|
813
|
+
return ret;
|
|
814
|
+
};
|
|
815
|
+
|
|
816
|
+
module.exports.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
|
|
817
|
+
const ret = Reflect.get(arg0, arg1);
|
|
818
|
+
return ret;
|
|
819
|
+
}, arguments) };
|
|
820
|
+
|
|
821
|
+
module.exports.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
|
|
822
|
+
const ret = arg0[arg1 >>> 0];
|
|
823
|
+
return ret;
|
|
824
|
+
};
|
|
825
|
+
|
|
826
|
+
module.exports.__wbg_getdone_d47073731acd3e74 = function(arg0) {
|
|
827
|
+
const ret = arg0.done;
|
|
828
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
829
|
+
};
|
|
830
|
+
|
|
831
|
+
module.exports.__wbg_getvalue_009dcd63692bee1f = function(arg0) {
|
|
832
|
+
const ret = arg0.value;
|
|
833
|
+
return ret;
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
module.exports.__wbg_has_a5ea9117f258a0ec = function() { return handleError(function (arg0, arg1) {
|
|
837
|
+
const ret = Reflect.has(arg0, arg1);
|
|
838
|
+
return ret;
|
|
839
|
+
}, arguments) };
|
|
840
|
+
|
|
841
|
+
module.exports.__wbg_headers_9cb51cfd2ac780a4 = function(arg0) {
|
|
842
|
+
const ret = arg0.headers;
|
|
843
|
+
return ret;
|
|
844
|
+
};
|
|
845
|
+
|
|
846
|
+
module.exports.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function(arg0) {
|
|
847
|
+
let result;
|
|
848
|
+
try {
|
|
849
|
+
result = arg0 instanceof Response;
|
|
850
|
+
} catch (_) {
|
|
851
|
+
result = false;
|
|
852
|
+
}
|
|
853
|
+
const ret = result;
|
|
854
|
+
return ret;
|
|
855
|
+
};
|
|
856
|
+
|
|
857
|
+
module.exports.__wbg_iterator_9a24c88df860dc65 = function() {
|
|
858
|
+
const ret = Symbol.iterator;
|
|
859
|
+
return ret;
|
|
860
|
+
};
|
|
861
|
+
|
|
862
|
+
module.exports.__wbg_length_a446193dc22c12f8 = function(arg0) {
|
|
863
|
+
const ret = arg0.length;
|
|
864
|
+
return ret;
|
|
865
|
+
};
|
|
866
|
+
|
|
867
|
+
module.exports.__wbg_length_d56737991078581b = function(arg0) {
|
|
868
|
+
const ret = arg0.length;
|
|
869
|
+
return ret;
|
|
870
|
+
};
|
|
871
|
+
|
|
872
|
+
module.exports.__wbg_log_62b3ddcc89229688 = function(arg0, arg1) {
|
|
873
|
+
arg0.log(arg1);
|
|
874
|
+
};
|
|
875
|
+
|
|
876
|
+
module.exports.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
877
|
+
const ret = arg0.msCrypto;
|
|
878
|
+
return ret;
|
|
879
|
+
};
|
|
880
|
+
|
|
881
|
+
module.exports.__wbg_new0_f788a2397c7ca929 = function() {
|
|
882
|
+
const ret = new Date();
|
|
883
|
+
return ret;
|
|
884
|
+
};
|
|
885
|
+
|
|
886
|
+
module.exports.__wbg_new_018dcc2d6c8c2f6a = function() { return handleError(function () {
|
|
887
|
+
const ret = new Headers();
|
|
888
|
+
return ret;
|
|
889
|
+
}, arguments) };
|
|
890
|
+
|
|
891
|
+
module.exports.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
|
892
|
+
try {
|
|
893
|
+
var state0 = {a: arg0, b: arg1};
|
|
894
|
+
var cb0 = (arg0, arg1) => {
|
|
895
|
+
const a = state0.a;
|
|
896
|
+
state0.a = 0;
|
|
897
|
+
try {
|
|
898
|
+
return __wbg_adapter_252(a, state0.b, arg0, arg1);
|
|
899
|
+
} finally {
|
|
900
|
+
state0.a = a;
|
|
901
|
+
}
|
|
902
|
+
};
|
|
903
|
+
const ret = new Promise(cb0);
|
|
904
|
+
return ret;
|
|
905
|
+
} finally {
|
|
906
|
+
state0.a = state0.b = 0;
|
|
907
|
+
}
|
|
908
|
+
};
|
|
909
|
+
|
|
910
|
+
module.exports.__wbg_new_31a97dac4f10fab7 = function(arg0) {
|
|
911
|
+
const ret = new Date(arg0);
|
|
912
|
+
return ret;
|
|
913
|
+
};
|
|
914
|
+
|
|
915
|
+
module.exports.__wbg_new_405e22f390576ce2 = function() {
|
|
916
|
+
const ret = new Object();
|
|
917
|
+
return ret;
|
|
918
|
+
};
|
|
919
|
+
|
|
920
|
+
module.exports.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
921
|
+
const ret = new Uint8Array(arg0);
|
|
922
|
+
return ret;
|
|
923
|
+
};
|
|
924
|
+
|
|
925
|
+
module.exports.__wbg_new_c68d7209be747379 = function(arg0, arg1) {
|
|
926
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
927
|
+
return ret;
|
|
928
|
+
};
|
|
929
|
+
|
|
930
|
+
module.exports.__wbg_new_e25e5aab09ff45db = function() { return handleError(function () {
|
|
931
|
+
const ret = new AbortController();
|
|
932
|
+
return ret;
|
|
933
|
+
}, arguments) };
|
|
934
|
+
|
|
935
|
+
module.exports.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
|
|
936
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
937
|
+
return ret;
|
|
938
|
+
};
|
|
939
|
+
|
|
940
|
+
module.exports.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
|
|
941
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
942
|
+
return ret;
|
|
943
|
+
};
|
|
944
|
+
|
|
945
|
+
module.exports.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
|
|
946
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
947
|
+
return ret;
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
module.exports.__wbg_newwithstrandinit_06c535e0a867c635 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
951
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
952
|
+
return ret;
|
|
953
|
+
}, arguments) };
|
|
954
|
+
|
|
955
|
+
module.exports.__wbg_newwithyearmonthday_03748851282a850d = function(arg0, arg1, arg2) {
|
|
956
|
+
const ret = new Date(arg0 >>> 0, arg1, arg2);
|
|
957
|
+
return ret;
|
|
958
|
+
};
|
|
959
|
+
|
|
960
|
+
module.exports.__wbg_next_25feadfc0913fea9 = function(arg0) {
|
|
961
|
+
const ret = arg0.next;
|
|
962
|
+
return ret;
|
|
963
|
+
};
|
|
964
|
+
|
|
965
|
+
module.exports.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) {
|
|
966
|
+
const ret = arg0.next();
|
|
967
|
+
return ret;
|
|
968
|
+
}, arguments) };
|
|
969
|
+
|
|
970
|
+
module.exports.__wbg_node_905d3e251edff8a2 = function(arg0) {
|
|
971
|
+
const ret = arg0.node;
|
|
972
|
+
return ret;
|
|
973
|
+
};
|
|
974
|
+
|
|
975
|
+
module.exports.__wbg_now_2c95c9de01293173 = function(arg0) {
|
|
976
|
+
const ret = arg0.now();
|
|
977
|
+
return ret;
|
|
978
|
+
};
|
|
979
|
+
|
|
980
|
+
module.exports.__wbg_now_2f0bbf3fd348701f = function(arg0) {
|
|
981
|
+
const ret = globalThis.performance.now();
|
|
982
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
983
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
984
|
+
};
|
|
985
|
+
|
|
986
|
+
module.exports.__wbg_now_6af59e24f5a53ad4 = function() { return handleError(function () {
|
|
987
|
+
const ret = Date.now();
|
|
988
|
+
return ret;
|
|
989
|
+
}, arguments) };
|
|
990
|
+
|
|
991
|
+
module.exports.__wbg_now_807e54c39636c349 = function() {
|
|
992
|
+
const ret = Date.now();
|
|
993
|
+
return ret;
|
|
994
|
+
};
|
|
995
|
+
|
|
996
|
+
module.exports.__wbg_onEvent_3a18bdd7cfd911cb = function(arg0, arg1) {
|
|
997
|
+
arg0.onEvent(arg1);
|
|
998
|
+
};
|
|
999
|
+
|
|
1000
|
+
module.exports.__wbg_parse_def2e24ef1252aff = function() { return handleError(function (arg0, arg1) {
|
|
1001
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
1002
|
+
return ret;
|
|
1003
|
+
}, arguments) };
|
|
1004
|
+
|
|
1005
|
+
module.exports.__wbg_performance_7a3ffd0b17f663ad = function(arg0) {
|
|
1006
|
+
const ret = arg0.performance;
|
|
1007
|
+
return ret;
|
|
1008
|
+
};
|
|
1009
|
+
|
|
1010
|
+
module.exports.__wbg_postMessage_83a8d58d3fcb6c13 = function() { return handleError(function (arg0, arg1) {
|
|
1011
|
+
arg0.postMessage(arg1);
|
|
1012
|
+
}, arguments) };
|
|
1013
|
+
|
|
1014
|
+
module.exports.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
|
|
1015
|
+
const ret = arg0.process;
|
|
1016
|
+
return ret;
|
|
1017
|
+
};
|
|
1018
|
+
|
|
1019
|
+
module.exports.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
|
|
1020
|
+
queueMicrotask(arg0);
|
|
1021
|
+
};
|
|
1022
|
+
|
|
1023
|
+
module.exports.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
|
|
1024
|
+
const ret = arg0.queueMicrotask;
|
|
1025
|
+
return ret;
|
|
1026
|
+
};
|
|
1027
|
+
|
|
1028
|
+
module.exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
|
|
1029
|
+
arg0.randomFillSync(arg1);
|
|
1030
|
+
}, arguments) };
|
|
1031
|
+
|
|
1032
|
+
module.exports.__wbg_random_3ad904d98382defe = function() {
|
|
1033
|
+
const ret = Math.random();
|
|
1034
|
+
return ret;
|
|
1035
|
+
};
|
|
1036
|
+
|
|
1037
|
+
module.exports.__wbg_read_a2434af1186cb56c = function(arg0) {
|
|
1038
|
+
const ret = arg0.read();
|
|
1039
|
+
return ret;
|
|
1040
|
+
};
|
|
1041
|
+
|
|
1042
|
+
module.exports.__wbg_releaseLock_091899af97991d2e = function(arg0) {
|
|
1043
|
+
arg0.releaseLock();
|
|
1044
|
+
};
|
|
1045
|
+
|
|
1046
|
+
module.exports.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
|
|
1047
|
+
const ret = module.require;
|
|
1048
|
+
return ret;
|
|
1049
|
+
}, arguments) };
|
|
1050
|
+
|
|
1051
|
+
module.exports.__wbg_resolve_4851785c9c5f573d = function(arg0) {
|
|
1052
|
+
const ret = Promise.resolve(arg0);
|
|
1053
|
+
return ret;
|
|
1054
|
+
};
|
|
1055
|
+
|
|
1056
|
+
module.exports.__wbg_respond_1f279fa9f8edcb1c = function() { return handleError(function (arg0, arg1) {
|
|
1057
|
+
arg0.respond(arg1 >>> 0);
|
|
1058
|
+
}, arguments) };
|
|
1059
|
+
|
|
1060
|
+
module.exports.__wbg_setTimeout_73ce8df12de4f2f2 = function(arg0, arg1) {
|
|
1061
|
+
const ret = setTimeout(arg0, arg1);
|
|
1062
|
+
return ret;
|
|
1063
|
+
};
|
|
1064
|
+
|
|
1065
|
+
module.exports.__wbg_setTimeout_8f06012fba12034e = function(arg0, arg1) {
|
|
1066
|
+
globalThis.setTimeout(arg0, arg1);
|
|
1067
|
+
};
|
|
1068
|
+
|
|
1069
|
+
module.exports.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
1070
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
1071
|
+
};
|
|
1072
|
+
|
|
1073
|
+
module.exports.__wbg_setbody_5923b78a95eedf29 = function(arg0, arg1) {
|
|
1074
|
+
arg0.body = arg1;
|
|
1075
|
+
};
|
|
1076
|
+
|
|
1077
|
+
module.exports.__wbg_setcache_12f17c3a980650e4 = function(arg0, arg1) {
|
|
1078
|
+
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1079
|
+
};
|
|
1080
|
+
|
|
1081
|
+
module.exports.__wbg_setcredentials_c3a22f1cd105a2c6 = function(arg0, arg1) {
|
|
1082
|
+
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1083
|
+
};
|
|
1084
|
+
|
|
1085
|
+
module.exports.__wbg_setheaders_834c0bdb6a8949ad = function(arg0, arg1) {
|
|
1086
|
+
arg0.headers = arg1;
|
|
1087
|
+
};
|
|
1088
|
+
|
|
1089
|
+
module.exports.__wbg_setintegrity_564a2397cf837760 = function(arg0, arg1, arg2) {
|
|
1090
|
+
arg0.integrity = getStringFromWasm0(arg1, arg2);
|
|
1091
|
+
};
|
|
1092
|
+
|
|
1093
|
+
module.exports.__wbg_setmethod_3c5280fe5d890842 = function(arg0, arg1, arg2) {
|
|
1094
|
+
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1095
|
+
};
|
|
1096
|
+
|
|
1097
|
+
module.exports.__wbg_setmode_5dc300b865044b65 = function(arg0, arg1) {
|
|
1098
|
+
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1099
|
+
};
|
|
1100
|
+
|
|
1101
|
+
module.exports.__wbg_setredirect_40e6a7f717a2f86a = function(arg0, arg1) {
|
|
1102
|
+
arg0.redirect = __wbindgen_enum_RequestRedirect[arg1];
|
|
1103
|
+
};
|
|
1104
|
+
|
|
1105
|
+
module.exports.__wbg_setreferrer_fea46c1230e5e29a = function(arg0, arg1, arg2) {
|
|
1106
|
+
arg0.referrer = getStringFromWasm0(arg1, arg2);
|
|
1107
|
+
};
|
|
1108
|
+
|
|
1109
|
+
module.exports.__wbg_setreferrerpolicy_b73612479f761b6f = function(arg0, arg1) {
|
|
1110
|
+
arg0.referrerPolicy = __wbindgen_enum_ReferrerPolicy[arg1];
|
|
1111
|
+
};
|
|
1112
|
+
|
|
1113
|
+
module.exports.__wbg_setsignal_75b21ef3a81de905 = function(arg0, arg1) {
|
|
1114
|
+
arg0.signal = arg1;
|
|
1115
|
+
};
|
|
1116
|
+
|
|
1117
|
+
module.exports.__wbg_signal_aaf9ad74119f20a4 = function(arg0) {
|
|
1118
|
+
const ret = arg0.signal;
|
|
1119
|
+
return ret;
|
|
1120
|
+
};
|
|
1121
|
+
|
|
1122
|
+
module.exports.__wbg_slice_972c243648c9fd2e = function(arg0, arg1, arg2) {
|
|
1123
|
+
const ret = arg0.slice(arg1 >>> 0, arg2 >>> 0);
|
|
1124
|
+
return ret;
|
|
1125
|
+
};
|
|
1126
|
+
|
|
1127
|
+
module.exports.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
|
|
1128
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1129
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1130
|
+
};
|
|
1131
|
+
|
|
1132
|
+
module.exports.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
|
|
1133
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1134
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1135
|
+
};
|
|
1136
|
+
|
|
1137
|
+
module.exports.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
|
|
1138
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
1139
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1140
|
+
};
|
|
1141
|
+
|
|
1142
|
+
module.exports.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
|
|
1143
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
1144
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1145
|
+
};
|
|
1146
|
+
|
|
1147
|
+
module.exports.__wbg_status_f6360336ca686bf0 = function(arg0) {
|
|
1148
|
+
const ret = arg0.status;
|
|
1149
|
+
return ret;
|
|
1150
|
+
};
|
|
1151
|
+
|
|
1152
|
+
module.exports.__wbg_stringify_f7ed6987935b4a24 = function() { return handleError(function (arg0) {
|
|
1153
|
+
const ret = JSON.stringify(arg0);
|
|
1154
|
+
return ret;
|
|
1155
|
+
}, arguments) };
|
|
1156
|
+
|
|
1157
|
+
module.exports.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
|
|
1158
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1159
|
+
return ret;
|
|
1160
|
+
};
|
|
1161
|
+
|
|
1162
|
+
module.exports.__wbg_text_7805bea50de2af49 = function() { return handleError(function (arg0) {
|
|
1163
|
+
const ret = arg0.text();
|
|
1164
|
+
return ret;
|
|
1165
|
+
}, arguments) };
|
|
1166
|
+
|
|
1167
|
+
module.exports.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
|
|
1168
|
+
const ret = arg0.then(arg1);
|
|
1169
|
+
return ret;
|
|
1170
|
+
};
|
|
1171
|
+
|
|
1172
|
+
module.exports.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
|
|
1173
|
+
const ret = arg0.then(arg1, arg2);
|
|
1174
|
+
return ret;
|
|
1175
|
+
};
|
|
1176
|
+
|
|
1177
|
+
module.exports.__wbg_toString_5285597960676b7b = function(arg0) {
|
|
1178
|
+
const ret = arg0.toString();
|
|
1179
|
+
return ret;
|
|
1180
|
+
};
|
|
1181
|
+
|
|
1182
|
+
module.exports.__wbg_toString_ba82658ec370add0 = function() { return handleError(function (arg0, arg1) {
|
|
1183
|
+
const ret = arg0.toString(arg1);
|
|
1184
|
+
return ret;
|
|
1185
|
+
}, arguments) };
|
|
1186
|
+
|
|
1187
|
+
module.exports.__wbg_url_ae10c34ca209681d = function(arg0, arg1) {
|
|
1188
|
+
const ret = arg1.url;
|
|
1189
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1190
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1191
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1192
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1193
|
+
};
|
|
1194
|
+
|
|
1195
|
+
module.exports.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
|
|
1196
|
+
const ret = arg0.value;
|
|
1197
|
+
return ret;
|
|
1198
|
+
};
|
|
1199
|
+
|
|
1200
|
+
module.exports.__wbg_versions_c01dfd4722a88165 = function(arg0) {
|
|
1201
|
+
const ret = arg0.versions;
|
|
1202
|
+
return ret;
|
|
1203
|
+
};
|
|
1204
|
+
|
|
1205
|
+
module.exports.__wbg_view_fd8a56e8983f448d = function(arg0) {
|
|
1206
|
+
const ret = arg0.view;
|
|
1207
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1208
|
+
};
|
|
1209
|
+
|
|
1210
|
+
module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
1211
|
+
const obj = arg0.original;
|
|
1212
|
+
if (obj.cnt-- == 1) {
|
|
1213
|
+
obj.a = 0;
|
|
1214
|
+
return true;
|
|
1215
|
+
}
|
|
1216
|
+
const ret = false;
|
|
1217
|
+
return ret;
|
|
1218
|
+
};
|
|
1219
|
+
|
|
1220
|
+
module.exports.__wbindgen_closure_wrapper11718 = function(arg0, arg1, arg2) {
|
|
1221
|
+
const ret = makeMutClosure(arg0, arg1, 3736, __wbg_adapter_32);
|
|
1222
|
+
return ret;
|
|
1223
|
+
};
|
|
1224
|
+
|
|
1225
|
+
module.exports.__wbindgen_closure_wrapper11751 = function(arg0, arg1, arg2) {
|
|
1226
|
+
const ret = makeMutClosure(arg0, arg1, 3754, __wbg_adapter_35);
|
|
1227
|
+
return ret;
|
|
1228
|
+
};
|
|
1229
|
+
|
|
1230
|
+
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
1231
|
+
const ret = debugString(arg1);
|
|
1232
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1233
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1234
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1235
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1236
|
+
};
|
|
1237
|
+
|
|
1238
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
1239
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1240
|
+
return ret;
|
|
1241
|
+
};
|
|
1242
|
+
|
|
1243
|
+
module.exports.__wbindgen_init_externref_table = function() {
|
|
1244
|
+
const table = wasm.__wbindgen_export_2;
|
|
1245
|
+
const offset = table.grow(4);
|
|
1246
|
+
table.set(0, undefined);
|
|
1247
|
+
table.set(offset + 0, undefined);
|
|
1248
|
+
table.set(offset + 1, null);
|
|
1249
|
+
table.set(offset + 2, true);
|
|
1250
|
+
table.set(offset + 3, false);
|
|
1251
|
+
;
|
|
1252
|
+
};
|
|
1253
|
+
|
|
1254
|
+
module.exports.__wbindgen_is_function = function(arg0) {
|
|
1255
|
+
const ret = typeof(arg0) === 'function';
|
|
1256
|
+
return ret;
|
|
1257
|
+
};
|
|
1258
|
+
|
|
1259
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
1260
|
+
const val = arg0;
|
|
1261
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
1262
|
+
return ret;
|
|
1263
|
+
};
|
|
1264
|
+
|
|
1265
|
+
module.exports.__wbindgen_is_string = function(arg0) {
|
|
1266
|
+
const ret = typeof(arg0) === 'string';
|
|
1267
|
+
return ret;
|
|
1268
|
+
};
|
|
1269
|
+
|
|
1270
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
1271
|
+
const ret = arg0 === undefined;
|
|
1272
|
+
return ret;
|
|
1273
|
+
};
|
|
1274
|
+
|
|
1275
|
+
module.exports.__wbindgen_memory = function() {
|
|
1276
|
+
const ret = wasm.memory;
|
|
1277
|
+
return ret;
|
|
1278
|
+
};
|
|
1279
|
+
|
|
1280
|
+
module.exports.__wbindgen_number_new = function(arg0) {
|
|
1281
|
+
const ret = arg0;
|
|
1282
|
+
return ret;
|
|
1283
|
+
};
|
|
1284
|
+
|
|
1285
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
1286
|
+
const obj = arg1;
|
|
1287
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1288
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1289
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1290
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1291
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1292
|
+
};
|
|
1293
|
+
|
|
1294
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
1295
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1296
|
+
return ret;
|
|
1297
|
+
};
|
|
1298
|
+
|
|
1299
|
+
module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
1300
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1301
|
+
};
|
|
1302
|
+
|
|
1303
|
+
const path = require('path').join(__dirname, 'breez_sdk_spark_wasm_bg.wasm');
|
|
1304
|
+
const bytes = require('fs').readFileSync(path);
|
|
1305
|
+
|
|
1306
|
+
const wasmModule = new WebAssembly.Module(bytes);
|
|
1307
|
+
const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
|
|
1308
|
+
wasm = wasmInstance.exports;
|
|
1309
|
+
module.exports.__wasm = wasm;
|
|
1310
|
+
|
|
1311
|
+
wasm.__wbindgen_start();
|
|
1312
|
+
|