@bitcredit/bcr-ebill-wasm 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +744 -0
- package/index.js +2049 -0
- package/index_bg.wasm +0 -0
- package/package.json +15 -0
package/index.js
ADDED
|
@@ -0,0 +1,2049 @@
|
|
|
1
|
+
let wasm;
|
|
2
|
+
|
|
3
|
+
let WASM_VECTOR_LEN = 0;
|
|
4
|
+
|
|
5
|
+
let cachedUint8ArrayMemory0 = null;
|
|
6
|
+
|
|
7
|
+
function getUint8ArrayMemory0() {
|
|
8
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
9
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
10
|
+
}
|
|
11
|
+
return cachedUint8ArrayMemory0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
15
|
+
|
|
16
|
+
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
17
|
+
? function (arg, view) {
|
|
18
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
|
19
|
+
}
|
|
20
|
+
: function (arg, view) {
|
|
21
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
22
|
+
view.set(buf);
|
|
23
|
+
return {
|
|
24
|
+
read: arg.length,
|
|
25
|
+
written: buf.length
|
|
26
|
+
};
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
30
|
+
|
|
31
|
+
if (realloc === undefined) {
|
|
32
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
33
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
34
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
35
|
+
WASM_VECTOR_LEN = buf.length;
|
|
36
|
+
return ptr;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
let len = arg.length;
|
|
40
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
41
|
+
|
|
42
|
+
const mem = getUint8ArrayMemory0();
|
|
43
|
+
|
|
44
|
+
let offset = 0;
|
|
45
|
+
|
|
46
|
+
for (; offset < len; offset++) {
|
|
47
|
+
const code = arg.charCodeAt(offset);
|
|
48
|
+
if (code > 0x7F) break;
|
|
49
|
+
mem[ptr + offset] = code;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
if (offset !== len) {
|
|
53
|
+
if (offset !== 0) {
|
|
54
|
+
arg = arg.slice(offset);
|
|
55
|
+
}
|
|
56
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
57
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
58
|
+
const ret = encodeString(arg, view);
|
|
59
|
+
|
|
60
|
+
offset += ret.written;
|
|
61
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
WASM_VECTOR_LEN = offset;
|
|
65
|
+
return ptr;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
let cachedDataViewMemory0 = null;
|
|
69
|
+
|
|
70
|
+
function getDataViewMemory0() {
|
|
71
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
72
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
73
|
+
}
|
|
74
|
+
return cachedDataViewMemory0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function addToExternrefTable0(obj) {
|
|
78
|
+
const idx = wasm.__externref_table_alloc();
|
|
79
|
+
wasm.__wbindgen_export_4.set(idx, obj);
|
|
80
|
+
return idx;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function handleError(f, args) {
|
|
84
|
+
try {
|
|
85
|
+
return f.apply(this, args);
|
|
86
|
+
} catch (e) {
|
|
87
|
+
const idx = addToExternrefTable0(e);
|
|
88
|
+
wasm.__wbindgen_exn_store(idx);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
93
|
+
|
|
94
|
+
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
95
|
+
|
|
96
|
+
function getStringFromWasm0(ptr, len) {
|
|
97
|
+
ptr = ptr >>> 0;
|
|
98
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function isLikeNone(x) {
|
|
102
|
+
return x === undefined || x === null;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
106
|
+
ptr = ptr >>> 0;
|
|
107
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
111
|
+
? { register: () => {}, unregister: () => {} }
|
|
112
|
+
: new FinalizationRegistry(state => {
|
|
113
|
+
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
117
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
118
|
+
const real = (...args) => {
|
|
119
|
+
// First up with a closure we increment the internal reference
|
|
120
|
+
// count. This ensures that the Rust closure environment won't
|
|
121
|
+
// be deallocated while we're invoking it.
|
|
122
|
+
state.cnt++;
|
|
123
|
+
const a = state.a;
|
|
124
|
+
state.a = 0;
|
|
125
|
+
try {
|
|
126
|
+
return f(a, state.b, ...args);
|
|
127
|
+
} finally {
|
|
128
|
+
if (--state.cnt === 0) {
|
|
129
|
+
wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
|
|
130
|
+
CLOSURE_DTORS.unregister(state);
|
|
131
|
+
} else {
|
|
132
|
+
state.a = a;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
real.original = state;
|
|
137
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
138
|
+
return real;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function debugString(val) {
|
|
142
|
+
// primitive types
|
|
143
|
+
const type = typeof val;
|
|
144
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
145
|
+
return `${val}`;
|
|
146
|
+
}
|
|
147
|
+
if (type == 'string') {
|
|
148
|
+
return `"${val}"`;
|
|
149
|
+
}
|
|
150
|
+
if (type == 'symbol') {
|
|
151
|
+
const description = val.description;
|
|
152
|
+
if (description == null) {
|
|
153
|
+
return 'Symbol';
|
|
154
|
+
} else {
|
|
155
|
+
return `Symbol(${description})`;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
if (type == 'function') {
|
|
159
|
+
const name = val.name;
|
|
160
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
161
|
+
return `Function(${name})`;
|
|
162
|
+
} else {
|
|
163
|
+
return 'Function';
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
// objects
|
|
167
|
+
if (Array.isArray(val)) {
|
|
168
|
+
const length = val.length;
|
|
169
|
+
let debug = '[';
|
|
170
|
+
if (length > 0) {
|
|
171
|
+
debug += debugString(val[0]);
|
|
172
|
+
}
|
|
173
|
+
for(let i = 1; i < length; i++) {
|
|
174
|
+
debug += ', ' + debugString(val[i]);
|
|
175
|
+
}
|
|
176
|
+
debug += ']';
|
|
177
|
+
return debug;
|
|
178
|
+
}
|
|
179
|
+
// Test for built-in
|
|
180
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
181
|
+
let className;
|
|
182
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
183
|
+
className = builtInMatches[1];
|
|
184
|
+
} else {
|
|
185
|
+
// Failed to match the standard '[object ClassName]'
|
|
186
|
+
return toString.call(val);
|
|
187
|
+
}
|
|
188
|
+
if (className == 'Object') {
|
|
189
|
+
// we're a user defined class or Object
|
|
190
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
191
|
+
// easier than looping through ownProperties of `val`.
|
|
192
|
+
try {
|
|
193
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
194
|
+
} catch (_) {
|
|
195
|
+
return 'Object';
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
// errors
|
|
199
|
+
if (val instanceof Error) {
|
|
200
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
201
|
+
}
|
|
202
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
203
|
+
return className;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* @param {Config} cfg
|
|
207
|
+
* @returns {Promise<void>}
|
|
208
|
+
*/
|
|
209
|
+
export function initialize_api(cfg) {
|
|
210
|
+
const ret = wasm.initialize_api(cfg);
|
|
211
|
+
return ret;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
function __wbg_adapter_54(arg0, arg1) {
|
|
215
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbe6873c45b27b351(arg0, arg1);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
function takeFromExternrefTable0(idx) {
|
|
219
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
220
|
+
wasm.__externref_table_dealloc(idx);
|
|
221
|
+
return value;
|
|
222
|
+
}
|
|
223
|
+
function __wbg_adapter_57(arg0, arg1, arg2) {
|
|
224
|
+
const ret = wasm.closure3939_externref_shim_multivalue_shim(arg0, arg1, arg2);
|
|
225
|
+
if (ret[1]) {
|
|
226
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
function __wbg_adapter_60(arg0, arg1) {
|
|
231
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h05c7f237f3bb177e(arg0, arg1);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
function __wbg_adapter_63(arg0, arg1, arg2) {
|
|
235
|
+
wasm.closure5466_externref_shim(arg0, arg1, arg2);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
function __wbg_adapter_66(arg0, arg1, arg2) {
|
|
239
|
+
wasm.closure5720_externref_shim(arg0, arg1, arg2);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
function __wbg_adapter_69(arg0, arg1) {
|
|
243
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf2e94f04a8ad2147(arg0, arg1);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
function __wbg_adapter_72(arg0, arg1, arg2) {
|
|
247
|
+
wasm.closure5931_externref_shim(arg0, arg1, arg2);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
function __wbg_adapter_429(arg0, arg1, arg2, arg3) {
|
|
251
|
+
wasm.closure6063_externref_shim(arg0, arg1, arg2, arg3);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* @enum {0 | 1}
|
|
256
|
+
*/
|
|
257
|
+
export const ContactTypeWeb = Object.freeze({
|
|
258
|
+
Person: 0, "0": "Person",
|
|
259
|
+
Company: 1, "1": "Company",
|
|
260
|
+
});
|
|
261
|
+
/**
|
|
262
|
+
* @enum {0 | 1}
|
|
263
|
+
*/
|
|
264
|
+
export const IdentityTypeWeb = Object.freeze({
|
|
265
|
+
Person: 0, "0": "Person",
|
|
266
|
+
Company: 1, "1": "Company",
|
|
267
|
+
});
|
|
268
|
+
|
|
269
|
+
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
270
|
+
|
|
271
|
+
const __wbindgen_enum_IdbCursorDirection = ["next", "nextunique", "prev", "prevunique"];
|
|
272
|
+
|
|
273
|
+
const __wbindgen_enum_IdbTransactionMode = ["readonly", "readwrite", "versionchange", "readwriteflush", "cleanup"];
|
|
274
|
+
|
|
275
|
+
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
276
|
+
|
|
277
|
+
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
278
|
+
|
|
279
|
+
const ApiFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
280
|
+
? { register: () => {}, unregister: () => {} }
|
|
281
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_api_free(ptr >>> 0, 1));
|
|
282
|
+
|
|
283
|
+
export class Api {
|
|
284
|
+
|
|
285
|
+
__destroy_into_raw() {
|
|
286
|
+
const ptr = this.__wbg_ptr;
|
|
287
|
+
this.__wbg_ptr = 0;
|
|
288
|
+
ApiFinalization.unregister(this);
|
|
289
|
+
return ptr;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
free() {
|
|
293
|
+
const ptr = this.__destroy_into_raw();
|
|
294
|
+
wasm.__wbg_api_free(ptr, 0);
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* @returns {General}
|
|
298
|
+
*/
|
|
299
|
+
static general() {
|
|
300
|
+
const ret = wasm.api_bill();
|
|
301
|
+
return General.__wrap(ret);
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* @returns {Contact}
|
|
305
|
+
*/
|
|
306
|
+
static contact() {
|
|
307
|
+
const ret = wasm.api_bill();
|
|
308
|
+
return Contact.__wrap(ret);
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* @returns {Identity}
|
|
312
|
+
*/
|
|
313
|
+
static identity() {
|
|
314
|
+
const ret = wasm.api_bill();
|
|
315
|
+
return Identity.__wrap(ret);
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* @returns {Notification}
|
|
319
|
+
*/
|
|
320
|
+
static notification() {
|
|
321
|
+
const ret = wasm.api_bill();
|
|
322
|
+
return Notification.__wrap(ret);
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* @returns {Company}
|
|
326
|
+
*/
|
|
327
|
+
static company() {
|
|
328
|
+
const ret = wasm.api_bill();
|
|
329
|
+
return Company.__wrap(ret);
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* @returns {Bill}
|
|
333
|
+
*/
|
|
334
|
+
static bill() {
|
|
335
|
+
const ret = wasm.api_bill();
|
|
336
|
+
return Bill.__wrap(ret);
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* @returns {Quote}
|
|
340
|
+
*/
|
|
341
|
+
static quote() {
|
|
342
|
+
const ret = wasm.api_bill();
|
|
343
|
+
return Quote.__wrap(ret);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
const BillFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
348
|
+
? { register: () => {}, unregister: () => {} }
|
|
349
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_bill_free(ptr >>> 0, 1));
|
|
350
|
+
|
|
351
|
+
export class Bill {
|
|
352
|
+
|
|
353
|
+
static __wrap(ptr) {
|
|
354
|
+
ptr = ptr >>> 0;
|
|
355
|
+
const obj = Object.create(Bill.prototype);
|
|
356
|
+
obj.__wbg_ptr = ptr;
|
|
357
|
+
BillFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
358
|
+
return obj;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
__destroy_into_raw() {
|
|
362
|
+
const ptr = this.__wbg_ptr;
|
|
363
|
+
this.__wbg_ptr = 0;
|
|
364
|
+
BillFinalization.unregister(this);
|
|
365
|
+
return ptr;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
free() {
|
|
369
|
+
const ptr = this.__destroy_into_raw();
|
|
370
|
+
wasm.__wbg_bill_free(ptr, 0);
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* @returns {Bill}
|
|
374
|
+
*/
|
|
375
|
+
static new() {
|
|
376
|
+
const ret = wasm.bill_new();
|
|
377
|
+
return Bill.__wrap(ret);
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* @param {string} id
|
|
381
|
+
* @returns {EndorsementsResponse}
|
|
382
|
+
*/
|
|
383
|
+
endorsements(id) {
|
|
384
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
385
|
+
const len0 = WASM_VECTOR_LEN;
|
|
386
|
+
const ret = wasm.bill_endorsements(this.__wbg_ptr, ptr0, len0);
|
|
387
|
+
return ret;
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* @param {string} id
|
|
391
|
+
* @returns {PastEndorseesResponse}
|
|
392
|
+
*/
|
|
393
|
+
past_endorsees(id) {
|
|
394
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
395
|
+
const len0 = WASM_VECTOR_LEN;
|
|
396
|
+
const ret = wasm.bill_past_endorsees(this.__wbg_ptr, ptr0, len0);
|
|
397
|
+
return ret;
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* @param {string} id
|
|
401
|
+
* @returns {BillCombinedBitcoinKeyWeb}
|
|
402
|
+
*/
|
|
403
|
+
bitcoin_key(id) {
|
|
404
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
405
|
+
const len0 = WASM_VECTOR_LEN;
|
|
406
|
+
const ret = wasm.bill_bitcoin_key(this.__wbg_ptr, ptr0, len0);
|
|
407
|
+
return ret;
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* @param {string} bill_id
|
|
411
|
+
* @param {string} file_name
|
|
412
|
+
* @returns {BinaryFileResponse}
|
|
413
|
+
*/
|
|
414
|
+
attachment(bill_id, file_name) {
|
|
415
|
+
const ptr0 = passStringToWasm0(bill_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
416
|
+
const len0 = WASM_VECTOR_LEN;
|
|
417
|
+
const ptr1 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
418
|
+
const len1 = WASM_VECTOR_LEN;
|
|
419
|
+
const ret = wasm.bill_attachment(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
420
|
+
return ret;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* @param {UploadFile} payload
|
|
424
|
+
* @returns {UploadFilesResponse}
|
|
425
|
+
*/
|
|
426
|
+
upload(payload) {
|
|
427
|
+
const ret = wasm.bill_upload(this.__wbg_ptr, payload);
|
|
428
|
+
return ret;
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* @param {BillsSearchFilterPayload} payload
|
|
432
|
+
* @returns {LightBillsResponse}
|
|
433
|
+
*/
|
|
434
|
+
search(payload) {
|
|
435
|
+
const ret = wasm.bill_search(this.__wbg_ptr, payload);
|
|
436
|
+
return ret;
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* @returns {LightBillsResponse}
|
|
440
|
+
*/
|
|
441
|
+
list_light() {
|
|
442
|
+
const ret = wasm.bill_list_light(this.__wbg_ptr);
|
|
443
|
+
return ret;
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* @returns {BillsResponse}
|
|
447
|
+
*/
|
|
448
|
+
list() {
|
|
449
|
+
const ret = wasm.bill_list(this.__wbg_ptr);
|
|
450
|
+
return ret;
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* @returns {BillsResponse}
|
|
454
|
+
*/
|
|
455
|
+
list_all() {
|
|
456
|
+
const ret = wasm.bill_list_all(this.__wbg_ptr);
|
|
457
|
+
return ret;
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* @param {string} id
|
|
461
|
+
* @returns {BillNumbersToWordsForSum}
|
|
462
|
+
*/
|
|
463
|
+
numbers_to_words_for_sum(id) {
|
|
464
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
465
|
+
const len0 = WASM_VECTOR_LEN;
|
|
466
|
+
const ret = wasm.bill_numbers_to_words_for_sum(this.__wbg_ptr, ptr0, len0);
|
|
467
|
+
return ret;
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* @param {string} id
|
|
471
|
+
* @returns {BitcreditBillWeb}
|
|
472
|
+
*/
|
|
473
|
+
detail(id) {
|
|
474
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
475
|
+
const len0 = WASM_VECTOR_LEN;
|
|
476
|
+
const ret = wasm.bill_detail(this.__wbg_ptr, ptr0, len0);
|
|
477
|
+
return ret;
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* @returns {Promise<void>}
|
|
481
|
+
*/
|
|
482
|
+
check_payment() {
|
|
483
|
+
const ret = wasm.bill_check_payment(this.__wbg_ptr);
|
|
484
|
+
return ret;
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* @param {BitcreditBillPayload} payload
|
|
488
|
+
* @returns {BillId}
|
|
489
|
+
*/
|
|
490
|
+
issue(payload) {
|
|
491
|
+
const ret = wasm.bill_issue(this.__wbg_ptr, payload);
|
|
492
|
+
return ret;
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* @param {OfferToSellBitcreditBillPayload} payload
|
|
496
|
+
* @returns {Promise<void>}
|
|
497
|
+
*/
|
|
498
|
+
offer_to_sell(payload) {
|
|
499
|
+
const ret = wasm.bill_offer_to_sell(this.__wbg_ptr, payload);
|
|
500
|
+
return ret;
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* @param {EndorseBitcreditBillPayload} payload
|
|
504
|
+
* @returns {Promise<void>}
|
|
505
|
+
*/
|
|
506
|
+
endorse_bill(payload) {
|
|
507
|
+
const ret = wasm.bill_endorse_bill(this.__wbg_ptr, payload);
|
|
508
|
+
return ret;
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* @param {RequestToPayBitcreditBillPayload} payload
|
|
512
|
+
* @returns {Promise<void>}
|
|
513
|
+
*/
|
|
514
|
+
request_to_pay(payload) {
|
|
515
|
+
const ret = wasm.bill_request_to_pay(this.__wbg_ptr, payload);
|
|
516
|
+
return ret;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* @param {RequestToAcceptBitcreditBillPayload} payload
|
|
520
|
+
* @returns {Promise<void>}
|
|
521
|
+
*/
|
|
522
|
+
request_to_accept(payload) {
|
|
523
|
+
const ret = wasm.bill_request_to_accept(this.__wbg_ptr, payload);
|
|
524
|
+
return ret;
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* @param {AcceptBitcreditBillPayload} payload
|
|
528
|
+
* @returns {Promise<void>}
|
|
529
|
+
*/
|
|
530
|
+
accept(payload) {
|
|
531
|
+
const ret = wasm.bill_accept(this.__wbg_ptr, payload);
|
|
532
|
+
return ret;
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* @param {RequestToMintBitcreditBillPayload} payload
|
|
536
|
+
* @returns {Promise<void>}
|
|
537
|
+
*/
|
|
538
|
+
request_to_mint(payload) {
|
|
539
|
+
const ret = wasm.bill_request_to_mint(this.__wbg_ptr, payload);
|
|
540
|
+
return ret;
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* @param {MintBitcreditBillPayload} payload
|
|
544
|
+
* @returns {Promise<void>}
|
|
545
|
+
*/
|
|
546
|
+
mint_bill(payload) {
|
|
547
|
+
const ret = wasm.bill_mint_bill(this.__wbg_ptr, payload);
|
|
548
|
+
return ret;
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* @param {RejectActionBillPayload} payload
|
|
552
|
+
* @returns {Promise<void>}
|
|
553
|
+
*/
|
|
554
|
+
reject_to_accept(payload) {
|
|
555
|
+
const ret = wasm.bill_reject_to_accept(this.__wbg_ptr, payload);
|
|
556
|
+
return ret;
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* @param {RejectActionBillPayload} payload
|
|
560
|
+
* @returns {Promise<void>}
|
|
561
|
+
*/
|
|
562
|
+
reject_to_pay(payload) {
|
|
563
|
+
const ret = wasm.bill_reject_to_pay(this.__wbg_ptr, payload);
|
|
564
|
+
return ret;
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
* @param {RejectActionBillPayload} payload
|
|
568
|
+
* @returns {Promise<void>}
|
|
569
|
+
*/
|
|
570
|
+
reject_to_buy(payload) {
|
|
571
|
+
const ret = wasm.bill_reject_to_buy(this.__wbg_ptr, payload);
|
|
572
|
+
return ret;
|
|
573
|
+
}
|
|
574
|
+
/**
|
|
575
|
+
* @param {RejectActionBillPayload} payload
|
|
576
|
+
* @returns {Promise<void>}
|
|
577
|
+
*/
|
|
578
|
+
reject_to_pay_recourse(payload) {
|
|
579
|
+
const ret = wasm.bill_reject_to_pay_recourse(this.__wbg_ptr, payload);
|
|
580
|
+
return ret;
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* @param {RequestRecourseForPaymentPayload} payload
|
|
584
|
+
* @returns {Promise<void>}
|
|
585
|
+
*/
|
|
586
|
+
request_to_recourse_bill_payment(payload) {
|
|
587
|
+
const ret = wasm.bill_request_to_recourse_bill_payment(this.__wbg_ptr, payload);
|
|
588
|
+
return ret;
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* @param {RequestRecourseForPaymentPayload} payload
|
|
592
|
+
* @returns {Promise<void>}
|
|
593
|
+
*/
|
|
594
|
+
request_to_recourse_bill_acceptance(payload) {
|
|
595
|
+
const ret = wasm.bill_request_to_recourse_bill_acceptance(this.__wbg_ptr, payload);
|
|
596
|
+
return ret;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
const CompanyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
601
|
+
? { register: () => {}, unregister: () => {} }
|
|
602
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_company_free(ptr >>> 0, 1));
|
|
603
|
+
|
|
604
|
+
export class Company {
|
|
605
|
+
|
|
606
|
+
static __wrap(ptr) {
|
|
607
|
+
ptr = ptr >>> 0;
|
|
608
|
+
const obj = Object.create(Company.prototype);
|
|
609
|
+
obj.__wbg_ptr = ptr;
|
|
610
|
+
CompanyFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
611
|
+
return obj;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
__destroy_into_raw() {
|
|
615
|
+
const ptr = this.__wbg_ptr;
|
|
616
|
+
this.__wbg_ptr = 0;
|
|
617
|
+
CompanyFinalization.unregister(this);
|
|
618
|
+
return ptr;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
free() {
|
|
622
|
+
const ptr = this.__destroy_into_raw();
|
|
623
|
+
wasm.__wbg_company_free(ptr, 0);
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* @returns {Company}
|
|
627
|
+
*/
|
|
628
|
+
static new() {
|
|
629
|
+
const ret = wasm.company_new();
|
|
630
|
+
return Company.__wrap(ret);
|
|
631
|
+
}
|
|
632
|
+
/**
|
|
633
|
+
* @param {string} id
|
|
634
|
+
* @param {string} file_name
|
|
635
|
+
* @returns {BinaryFileResponse}
|
|
636
|
+
*/
|
|
637
|
+
file(id, file_name) {
|
|
638
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
639
|
+
const len0 = WASM_VECTOR_LEN;
|
|
640
|
+
const ptr1 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
641
|
+
const len1 = WASM_VECTOR_LEN;
|
|
642
|
+
const ret = wasm.company_file(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
643
|
+
return ret;
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* @param {UploadFile} payload
|
|
647
|
+
* @returns {UploadFilesResponse}
|
|
648
|
+
*/
|
|
649
|
+
upload(payload) {
|
|
650
|
+
const ret = wasm.company_upload(this.__wbg_ptr, payload);
|
|
651
|
+
return ret;
|
|
652
|
+
}
|
|
653
|
+
/**
|
|
654
|
+
* @returns {CompaniesResponse}
|
|
655
|
+
*/
|
|
656
|
+
list() {
|
|
657
|
+
const ret = wasm.company_list(this.__wbg_ptr);
|
|
658
|
+
return ret;
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* @param {string} id
|
|
662
|
+
* @returns {ListSignatoriesResponse}
|
|
663
|
+
*/
|
|
664
|
+
list_signatories(id) {
|
|
665
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
666
|
+
const len0 = WASM_VECTOR_LEN;
|
|
667
|
+
const ret = wasm.company_list_signatories(this.__wbg_ptr, ptr0, len0);
|
|
668
|
+
return ret;
|
|
669
|
+
}
|
|
670
|
+
/**
|
|
671
|
+
* @param {string} id
|
|
672
|
+
* @returns {CompanyWeb}
|
|
673
|
+
*/
|
|
674
|
+
detail(id) {
|
|
675
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
676
|
+
const len0 = WASM_VECTOR_LEN;
|
|
677
|
+
const ret = wasm.company_detail(this.__wbg_ptr, ptr0, len0);
|
|
678
|
+
return ret;
|
|
679
|
+
}
|
|
680
|
+
/**
|
|
681
|
+
* @param {CreateCompanyPayload} payload
|
|
682
|
+
* @returns {CompanyWeb}
|
|
683
|
+
*/
|
|
684
|
+
create(payload) {
|
|
685
|
+
const ret = wasm.company_create(this.__wbg_ptr, payload);
|
|
686
|
+
return ret;
|
|
687
|
+
}
|
|
688
|
+
/**
|
|
689
|
+
* @param {EditCompanyPayload} payload
|
|
690
|
+
* @returns {Promise<void>}
|
|
691
|
+
*/
|
|
692
|
+
edit(payload) {
|
|
693
|
+
const ret = wasm.company_edit(this.__wbg_ptr, payload);
|
|
694
|
+
return ret;
|
|
695
|
+
}
|
|
696
|
+
/**
|
|
697
|
+
* @param {AddSignatoryPayload} payload
|
|
698
|
+
* @returns {Promise<void>}
|
|
699
|
+
*/
|
|
700
|
+
add_signatory(payload) {
|
|
701
|
+
const ret = wasm.company_add_signatory(this.__wbg_ptr, payload);
|
|
702
|
+
return ret;
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
* @param {RemoveSignatoryPayload} payload
|
|
706
|
+
* @returns {Promise<void>}
|
|
707
|
+
*/
|
|
708
|
+
remove_signatory(payload) {
|
|
709
|
+
const ret = wasm.company_remove_signatory(this.__wbg_ptr, payload);
|
|
710
|
+
return ret;
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
const ContactFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
715
|
+
? { register: () => {}, unregister: () => {} }
|
|
716
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_contact_free(ptr >>> 0, 1));
|
|
717
|
+
|
|
718
|
+
export class Contact {
|
|
719
|
+
|
|
720
|
+
static __wrap(ptr) {
|
|
721
|
+
ptr = ptr >>> 0;
|
|
722
|
+
const obj = Object.create(Contact.prototype);
|
|
723
|
+
obj.__wbg_ptr = ptr;
|
|
724
|
+
ContactFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
725
|
+
return obj;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
__destroy_into_raw() {
|
|
729
|
+
const ptr = this.__wbg_ptr;
|
|
730
|
+
this.__wbg_ptr = 0;
|
|
731
|
+
ContactFinalization.unregister(this);
|
|
732
|
+
return ptr;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
free() {
|
|
736
|
+
const ptr = this.__destroy_into_raw();
|
|
737
|
+
wasm.__wbg_contact_free(ptr, 0);
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* @returns {Contact}
|
|
741
|
+
*/
|
|
742
|
+
static new() {
|
|
743
|
+
const ret = wasm.contact_new();
|
|
744
|
+
return Contact.__wrap(ret);
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
* @param {string} id
|
|
748
|
+
* @param {string} file_name
|
|
749
|
+
* @returns {BinaryFileResponse}
|
|
750
|
+
*/
|
|
751
|
+
file(id, file_name) {
|
|
752
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
753
|
+
const len0 = WASM_VECTOR_LEN;
|
|
754
|
+
const ptr1 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
755
|
+
const len1 = WASM_VECTOR_LEN;
|
|
756
|
+
const ret = wasm.contact_file(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
757
|
+
return ret;
|
|
758
|
+
}
|
|
759
|
+
/**
|
|
760
|
+
* @param {UploadFile} payload
|
|
761
|
+
* @returns {UploadFilesResponse}
|
|
762
|
+
*/
|
|
763
|
+
upload(payload) {
|
|
764
|
+
const ret = wasm.contact_upload(this.__wbg_ptr, payload);
|
|
765
|
+
return ret;
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* @returns {ContactsResponse}
|
|
769
|
+
*/
|
|
770
|
+
list() {
|
|
771
|
+
const ret = wasm.contact_list(this.__wbg_ptr);
|
|
772
|
+
return ret;
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
* @param {string} node_id
|
|
776
|
+
* @returns {ContactWeb}
|
|
777
|
+
*/
|
|
778
|
+
detail(node_id) {
|
|
779
|
+
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
780
|
+
const len0 = WASM_VECTOR_LEN;
|
|
781
|
+
const ret = wasm.contact_detail(this.__wbg_ptr, ptr0, len0);
|
|
782
|
+
return ret;
|
|
783
|
+
}
|
|
784
|
+
/**
|
|
785
|
+
* @param {string} node_id
|
|
786
|
+
* @returns {Promise<void>}
|
|
787
|
+
*/
|
|
788
|
+
remove(node_id) {
|
|
789
|
+
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
790
|
+
const len0 = WASM_VECTOR_LEN;
|
|
791
|
+
const ret = wasm.contact_remove(this.__wbg_ptr, ptr0, len0);
|
|
792
|
+
return ret;
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* @param {NewContactPayload} payload
|
|
796
|
+
* @returns {ContactWeb}
|
|
797
|
+
*/
|
|
798
|
+
create(payload) {
|
|
799
|
+
const ret = wasm.contact_create(this.__wbg_ptr, payload);
|
|
800
|
+
return ret;
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* @param {EditContactPayload} payload
|
|
804
|
+
* @returns {Promise<void>}
|
|
805
|
+
*/
|
|
806
|
+
edit(payload) {
|
|
807
|
+
const ret = wasm.contact_edit(this.__wbg_ptr, payload);
|
|
808
|
+
return ret;
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
const GeneralFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
813
|
+
? { register: () => {}, unregister: () => {} }
|
|
814
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_general_free(ptr >>> 0, 1));
|
|
815
|
+
|
|
816
|
+
export class General {
|
|
817
|
+
|
|
818
|
+
static __wrap(ptr) {
|
|
819
|
+
ptr = ptr >>> 0;
|
|
820
|
+
const obj = Object.create(General.prototype);
|
|
821
|
+
obj.__wbg_ptr = ptr;
|
|
822
|
+
GeneralFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
823
|
+
return obj;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
__destroy_into_raw() {
|
|
827
|
+
const ptr = this.__wbg_ptr;
|
|
828
|
+
this.__wbg_ptr = 0;
|
|
829
|
+
GeneralFinalization.unregister(this);
|
|
830
|
+
return ptr;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
free() {
|
|
834
|
+
const ptr = this.__destroy_into_raw();
|
|
835
|
+
wasm.__wbg_general_free(ptr, 0);
|
|
836
|
+
}
|
|
837
|
+
/**
|
|
838
|
+
* @returns {General}
|
|
839
|
+
*/
|
|
840
|
+
static new() {
|
|
841
|
+
const ret = wasm.general_new();
|
|
842
|
+
return General.__wrap(ret);
|
|
843
|
+
}
|
|
844
|
+
/**
|
|
845
|
+
* @returns {StatusResponse}
|
|
846
|
+
*/
|
|
847
|
+
status() {
|
|
848
|
+
const ret = wasm.general_status(this.__wbg_ptr);
|
|
849
|
+
return ret;
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* @returns {CurrenciesResponse}
|
|
853
|
+
*/
|
|
854
|
+
currencies() {
|
|
855
|
+
const ret = wasm.general_currencies(this.__wbg_ptr);
|
|
856
|
+
return ret;
|
|
857
|
+
}
|
|
858
|
+
/**
|
|
859
|
+
* @param {string} file_upload_id
|
|
860
|
+
* @returns {BinaryFileResponse}
|
|
861
|
+
*/
|
|
862
|
+
temp_file(file_upload_id) {
|
|
863
|
+
const ptr0 = passStringToWasm0(file_upload_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
864
|
+
const len0 = WASM_VECTOR_LEN;
|
|
865
|
+
const ret = wasm.general_temp_file(this.__wbg_ptr, ptr0, len0);
|
|
866
|
+
return ret;
|
|
867
|
+
}
|
|
868
|
+
/**
|
|
869
|
+
* @param {string} currency
|
|
870
|
+
* @returns {OverviewResponse}
|
|
871
|
+
*/
|
|
872
|
+
overview(currency) {
|
|
873
|
+
const ptr0 = passStringToWasm0(currency, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
874
|
+
const len0 = WASM_VECTOR_LEN;
|
|
875
|
+
const ret = wasm.general_overview(this.__wbg_ptr, ptr0, len0);
|
|
876
|
+
return ret;
|
|
877
|
+
}
|
|
878
|
+
/**
|
|
879
|
+
* @param {GeneralSearchFilterPayload} payload
|
|
880
|
+
* @returns {GeneralSearchResponse}
|
|
881
|
+
*/
|
|
882
|
+
search(payload) {
|
|
883
|
+
const ret = wasm.general_search(this.__wbg_ptr, payload);
|
|
884
|
+
return ret;
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
const IdentityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
889
|
+
? { register: () => {}, unregister: () => {} }
|
|
890
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_identity_free(ptr >>> 0, 1));
|
|
891
|
+
|
|
892
|
+
export class Identity {
|
|
893
|
+
|
|
894
|
+
static __wrap(ptr) {
|
|
895
|
+
ptr = ptr >>> 0;
|
|
896
|
+
const obj = Object.create(Identity.prototype);
|
|
897
|
+
obj.__wbg_ptr = ptr;
|
|
898
|
+
IdentityFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
899
|
+
return obj;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
__destroy_into_raw() {
|
|
903
|
+
const ptr = this.__wbg_ptr;
|
|
904
|
+
this.__wbg_ptr = 0;
|
|
905
|
+
IdentityFinalization.unregister(this);
|
|
906
|
+
return ptr;
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
free() {
|
|
910
|
+
const ptr = this.__destroy_into_raw();
|
|
911
|
+
wasm.__wbg_identity_free(ptr, 0);
|
|
912
|
+
}
|
|
913
|
+
/**
|
|
914
|
+
* @returns {Identity}
|
|
915
|
+
*/
|
|
916
|
+
static new() {
|
|
917
|
+
const ret = wasm.identity_new();
|
|
918
|
+
return Identity.__wrap(ret);
|
|
919
|
+
}
|
|
920
|
+
/**
|
|
921
|
+
* @param {string} file_name
|
|
922
|
+
* @returns {BinaryFileResponse}
|
|
923
|
+
*/
|
|
924
|
+
file(file_name) {
|
|
925
|
+
const ptr0 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
926
|
+
const len0 = WASM_VECTOR_LEN;
|
|
927
|
+
const ret = wasm.identity_file(this.__wbg_ptr, ptr0, len0);
|
|
928
|
+
return ret;
|
|
929
|
+
}
|
|
930
|
+
/**
|
|
931
|
+
* @param {UploadFile} payload
|
|
932
|
+
* @returns {UploadFilesResponse}
|
|
933
|
+
*/
|
|
934
|
+
upload(payload) {
|
|
935
|
+
const ret = wasm.identity_upload(this.__wbg_ptr, payload);
|
|
936
|
+
return ret;
|
|
937
|
+
}
|
|
938
|
+
/**
|
|
939
|
+
* @returns {Promise<any>}
|
|
940
|
+
*/
|
|
941
|
+
detail() {
|
|
942
|
+
const ret = wasm.identity_detail(this.__wbg_ptr);
|
|
943
|
+
return ret;
|
|
944
|
+
}
|
|
945
|
+
/**
|
|
946
|
+
* @param {NewIdentityPayload} payload
|
|
947
|
+
* @returns {Promise<void>}
|
|
948
|
+
*/
|
|
949
|
+
create(payload) {
|
|
950
|
+
const ret = wasm.identity_create(this.__wbg_ptr, payload);
|
|
951
|
+
return ret;
|
|
952
|
+
}
|
|
953
|
+
/**
|
|
954
|
+
* @param {ChangeIdentityPayload} payload
|
|
955
|
+
* @returns {Promise<void>}
|
|
956
|
+
*/
|
|
957
|
+
change(payload) {
|
|
958
|
+
const ret = wasm.identity_change(this.__wbg_ptr, payload);
|
|
959
|
+
return ret;
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* @returns {SwitchIdentity}
|
|
963
|
+
*/
|
|
964
|
+
active() {
|
|
965
|
+
const ret = wasm.identity_active(this.__wbg_ptr);
|
|
966
|
+
return ret;
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* @param {SwitchIdentity} switch_identity_payload
|
|
970
|
+
* @returns {Promise<void>}
|
|
971
|
+
*/
|
|
972
|
+
switch(switch_identity_payload) {
|
|
973
|
+
const ret = wasm.identity_switch(this.__wbg_ptr, switch_identity_payload);
|
|
974
|
+
return ret;
|
|
975
|
+
}
|
|
976
|
+
/**
|
|
977
|
+
* @returns {SeedPhrase}
|
|
978
|
+
*/
|
|
979
|
+
seed_backup() {
|
|
980
|
+
const ret = wasm.identity_seed_backup(this.__wbg_ptr);
|
|
981
|
+
return ret;
|
|
982
|
+
}
|
|
983
|
+
/**
|
|
984
|
+
* @param {SeedPhrase} payload
|
|
985
|
+
* @returns {Promise<void>}
|
|
986
|
+
*/
|
|
987
|
+
seed_recover(payload) {
|
|
988
|
+
const ret = wasm.identity_seed_recover(this.__wbg_ptr, payload);
|
|
989
|
+
return ret;
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
const NotificationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
994
|
+
? { register: () => {}, unregister: () => {} }
|
|
995
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_notification_free(ptr >>> 0, 1));
|
|
996
|
+
|
|
997
|
+
export class Notification {
|
|
998
|
+
|
|
999
|
+
static __wrap(ptr) {
|
|
1000
|
+
ptr = ptr >>> 0;
|
|
1001
|
+
const obj = Object.create(Notification.prototype);
|
|
1002
|
+
obj.__wbg_ptr = ptr;
|
|
1003
|
+
NotificationFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1004
|
+
return obj;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
__destroy_into_raw() {
|
|
1008
|
+
const ptr = this.__wbg_ptr;
|
|
1009
|
+
this.__wbg_ptr = 0;
|
|
1010
|
+
NotificationFinalization.unregister(this);
|
|
1011
|
+
return ptr;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
free() {
|
|
1015
|
+
const ptr = this.__destroy_into_raw();
|
|
1016
|
+
wasm.__wbg_notification_free(ptr, 0);
|
|
1017
|
+
}
|
|
1018
|
+
/**
|
|
1019
|
+
* @returns {Notification}
|
|
1020
|
+
*/
|
|
1021
|
+
static new() {
|
|
1022
|
+
const ret = wasm.company_new();
|
|
1023
|
+
return Notification.__wrap(ret);
|
|
1024
|
+
}
|
|
1025
|
+
/**
|
|
1026
|
+
* @param {Function} callback
|
|
1027
|
+
* @returns {Promise<void>}
|
|
1028
|
+
*/
|
|
1029
|
+
subscribe(callback) {
|
|
1030
|
+
const ret = wasm.notification_subscribe(this.__wbg_ptr, callback);
|
|
1031
|
+
return ret;
|
|
1032
|
+
}
|
|
1033
|
+
/**
|
|
1034
|
+
* @param {boolean | null} [active]
|
|
1035
|
+
* @param {string | null} [reference_id]
|
|
1036
|
+
* @param {string | null} [notification_type]
|
|
1037
|
+
* @param {bigint | null} [limit]
|
|
1038
|
+
* @param {bigint | null} [offset]
|
|
1039
|
+
* @returns {NotificationWeb[]}
|
|
1040
|
+
*/
|
|
1041
|
+
list(active, reference_id, notification_type, limit, offset) {
|
|
1042
|
+
var ptr0 = isLikeNone(reference_id) ? 0 : passStringToWasm0(reference_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1043
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1044
|
+
var ptr1 = isLikeNone(notification_type) ? 0 : passStringToWasm0(notification_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1045
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1046
|
+
const ret = wasm.notification_list(this.__wbg_ptr, isLikeNone(active) ? 0xFFFFFF : active ? 1 : 0, ptr0, len0, ptr1, len1, !isLikeNone(limit), isLikeNone(limit) ? BigInt(0) : limit, !isLikeNone(offset), isLikeNone(offset) ? BigInt(0) : offset);
|
|
1047
|
+
return ret;
|
|
1048
|
+
}
|
|
1049
|
+
/**
|
|
1050
|
+
* @param {string} notification_id
|
|
1051
|
+
* @returns {Promise<void>}
|
|
1052
|
+
*/
|
|
1053
|
+
mark_as_done(notification_id) {
|
|
1054
|
+
const ptr0 = passStringToWasm0(notification_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1055
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1056
|
+
const ret = wasm.notification_mark_as_done(this.__wbg_ptr, ptr0, len0);
|
|
1057
|
+
return ret;
|
|
1058
|
+
}
|
|
1059
|
+
/**
|
|
1060
|
+
* @param {any} payload
|
|
1061
|
+
* @returns {Promise<void>}
|
|
1062
|
+
*/
|
|
1063
|
+
trigger_test_msg(payload) {
|
|
1064
|
+
const ret = wasm.notification_trigger_test_msg(this.__wbg_ptr, payload);
|
|
1065
|
+
return ret;
|
|
1066
|
+
}
|
|
1067
|
+
/**
|
|
1068
|
+
* @param {string} node_id
|
|
1069
|
+
* @returns {Promise<void>}
|
|
1070
|
+
*/
|
|
1071
|
+
trigger_test_notification(node_id) {
|
|
1072
|
+
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1073
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1074
|
+
const ret = wasm.notification_trigger_test_notification(this.__wbg_ptr, ptr0, len0);
|
|
1075
|
+
return ret;
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
const QuoteFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1080
|
+
? { register: () => {}, unregister: () => {} }
|
|
1081
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_quote_free(ptr >>> 0, 1));
|
|
1082
|
+
|
|
1083
|
+
export class Quote {
|
|
1084
|
+
|
|
1085
|
+
static __wrap(ptr) {
|
|
1086
|
+
ptr = ptr >>> 0;
|
|
1087
|
+
const obj = Object.create(Quote.prototype);
|
|
1088
|
+
obj.__wbg_ptr = ptr;
|
|
1089
|
+
QuoteFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1090
|
+
return obj;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
__destroy_into_raw() {
|
|
1094
|
+
const ptr = this.__wbg_ptr;
|
|
1095
|
+
this.__wbg_ptr = 0;
|
|
1096
|
+
QuoteFinalization.unregister(this);
|
|
1097
|
+
return ptr;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
free() {
|
|
1101
|
+
const ptr = this.__destroy_into_raw();
|
|
1102
|
+
wasm.__wbg_quote_free(ptr, 0);
|
|
1103
|
+
}
|
|
1104
|
+
/**
|
|
1105
|
+
* @returns {Quote}
|
|
1106
|
+
*/
|
|
1107
|
+
static new() {
|
|
1108
|
+
const ret = wasm.contact_new();
|
|
1109
|
+
return Quote.__wrap(ret);
|
|
1110
|
+
}
|
|
1111
|
+
/**
|
|
1112
|
+
* @param {string} id
|
|
1113
|
+
* @returns {BitcreditEbillQuote}
|
|
1114
|
+
*/
|
|
1115
|
+
get(id) {
|
|
1116
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1117
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1118
|
+
const ret = wasm.quote_get(this.__wbg_ptr, ptr0, len0);
|
|
1119
|
+
return ret;
|
|
1120
|
+
}
|
|
1121
|
+
/**
|
|
1122
|
+
* @param {string} id
|
|
1123
|
+
* @returns {BitcreditEbillQuote}
|
|
1124
|
+
*/
|
|
1125
|
+
accept(id) {
|
|
1126
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1127
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1128
|
+
const ret = wasm.quote_accept(this.__wbg_ptr, ptr0, len0);
|
|
1129
|
+
return ret;
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
async function __wbg_load(module, imports) {
|
|
1134
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
1135
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
1136
|
+
try {
|
|
1137
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
1138
|
+
|
|
1139
|
+
} catch (e) {
|
|
1140
|
+
if (module.headers.get('Content-Type') != 'application/wasm') {
|
|
1141
|
+
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
1142
|
+
|
|
1143
|
+
} else {
|
|
1144
|
+
throw e;
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
const bytes = await module.arrayBuffer();
|
|
1150
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
1151
|
+
|
|
1152
|
+
} else {
|
|
1153
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
1154
|
+
|
|
1155
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
1156
|
+
return { instance, module };
|
|
1157
|
+
|
|
1158
|
+
} else {
|
|
1159
|
+
return instance;
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
function __wbg_get_imports() {
|
|
1165
|
+
const imports = {};
|
|
1166
|
+
imports.wbg = {};
|
|
1167
|
+
imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
1168
|
+
const ret = String(arg1);
|
|
1169
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1170
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1171
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1172
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1173
|
+
};
|
|
1174
|
+
imports.wbg.__wbg_abort_410ec47a64ac6117 = function(arg0, arg1) {
|
|
1175
|
+
arg0.abort(arg1);
|
|
1176
|
+
};
|
|
1177
|
+
imports.wbg.__wbg_abort_775ef1d17fc65868 = function(arg0) {
|
|
1178
|
+
arg0.abort();
|
|
1179
|
+
};
|
|
1180
|
+
imports.wbg.__wbg_abort_99fc644e2c79c9fb = function() { return handleError(function (arg0) {
|
|
1181
|
+
arg0.abort();
|
|
1182
|
+
}, arguments) };
|
|
1183
|
+
imports.wbg.__wbg_advance_b3ccc91b80962d79 = function() { return handleError(function (arg0, arg1) {
|
|
1184
|
+
arg0.advance(arg1 >>> 0);
|
|
1185
|
+
}, arguments) };
|
|
1186
|
+
imports.wbg.__wbg_append_8c7dd8d641a5f01b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1187
|
+
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1188
|
+
}, arguments) };
|
|
1189
|
+
imports.wbg.__wbg_arrayBuffer_d1b44c4390db422f = function() { return handleError(function (arg0) {
|
|
1190
|
+
const ret = arg0.arrayBuffer();
|
|
1191
|
+
return ret;
|
|
1192
|
+
}, arguments) };
|
|
1193
|
+
imports.wbg.__wbg_bound_f2afc3766d4545cf = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1194
|
+
const ret = IDBKeyRange.bound(arg0, arg1, arg2 !== 0, arg3 !== 0);
|
|
1195
|
+
return ret;
|
|
1196
|
+
}, arguments) };
|
|
1197
|
+
imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
|
1198
|
+
const ret = arg0.buffer;
|
|
1199
|
+
return ret;
|
|
1200
|
+
};
|
|
1201
|
+
imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
|
|
1202
|
+
const ret = arg0.call(arg1);
|
|
1203
|
+
return ret;
|
|
1204
|
+
}, arguments) };
|
|
1205
|
+
imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1206
|
+
const ret = arg0.call(arg1, arg2);
|
|
1207
|
+
return ret;
|
|
1208
|
+
}, arguments) };
|
|
1209
|
+
imports.wbg.__wbg_clearInterval_dd1e598f425db353 = function(arg0) {
|
|
1210
|
+
const ret = clearInterval(arg0);
|
|
1211
|
+
return ret;
|
|
1212
|
+
};
|
|
1213
|
+
imports.wbg.__wbg_clearTimeout_4397cdf06dd2e6ef = function(arg0) {
|
|
1214
|
+
const ret = clearTimeout(arg0);
|
|
1215
|
+
return ret;
|
|
1216
|
+
};
|
|
1217
|
+
imports.wbg.__wbg_clearTimeout_5a54f8841c30079a = function(arg0) {
|
|
1218
|
+
const ret = clearTimeout(arg0);
|
|
1219
|
+
return ret;
|
|
1220
|
+
};
|
|
1221
|
+
imports.wbg.__wbg_close_2893b7d056a0627d = function() { return handleError(function (arg0) {
|
|
1222
|
+
arg0.close();
|
|
1223
|
+
}, arguments) };
|
|
1224
|
+
imports.wbg.__wbg_code_cfd8f6868bdaed9b = function(arg0) {
|
|
1225
|
+
const ret = arg0.code;
|
|
1226
|
+
return ret;
|
|
1227
|
+
};
|
|
1228
|
+
imports.wbg.__wbg_code_f4ec1e6e2e1b0417 = function(arg0) {
|
|
1229
|
+
const ret = arg0.code;
|
|
1230
|
+
return ret;
|
|
1231
|
+
};
|
|
1232
|
+
imports.wbg.__wbg_contains_b952b06daf857803 = function(arg0, arg1, arg2) {
|
|
1233
|
+
const ret = arg0.contains(getStringFromWasm0(arg1, arg2));
|
|
1234
|
+
return ret;
|
|
1235
|
+
};
|
|
1236
|
+
imports.wbg.__wbg_continue_c46c11d3dbe1b030 = function() { return handleError(function (arg0) {
|
|
1237
|
+
arg0.continue();
|
|
1238
|
+
}, arguments) };
|
|
1239
|
+
imports.wbg.__wbg_createIndex_873ac48adc772309 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1240
|
+
const ret = arg0.createIndex(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
|
1241
|
+
return ret;
|
|
1242
|
+
}, arguments) };
|
|
1243
|
+
imports.wbg.__wbg_createObjectStore_d2f9e1016f4d81b9 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1244
|
+
const ret = arg0.createObjectStore(getStringFromWasm0(arg1, arg2), arg3);
|
|
1245
|
+
return ret;
|
|
1246
|
+
}, arguments) };
|
|
1247
|
+
imports.wbg.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
|
|
1248
|
+
const ret = arg0.crypto;
|
|
1249
|
+
return ret;
|
|
1250
|
+
};
|
|
1251
|
+
imports.wbg.__wbg_data_432d9c3df2630942 = function(arg0) {
|
|
1252
|
+
const ret = arg0.data;
|
|
1253
|
+
return ret;
|
|
1254
|
+
};
|
|
1255
|
+
imports.wbg.__wbg_debug_e17b51583ca6a632 = function(arg0, arg1, arg2, arg3) {
|
|
1256
|
+
console.debug(arg0, arg1, arg2, arg3);
|
|
1257
|
+
};
|
|
1258
|
+
imports.wbg.__wbg_deleteIndex_e6717aa0e9691894 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1259
|
+
arg0.deleteIndex(getStringFromWasm0(arg1, arg2));
|
|
1260
|
+
}, arguments) };
|
|
1261
|
+
imports.wbg.__wbg_deleteObjectStore_3f08ae00cd288224 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1262
|
+
arg0.deleteObjectStore(getStringFromWasm0(arg1, arg2));
|
|
1263
|
+
}, arguments) };
|
|
1264
|
+
imports.wbg.__wbg_delete_200677093b4cf756 = function() { return handleError(function (arg0, arg1) {
|
|
1265
|
+
const ret = arg0.delete(arg1);
|
|
1266
|
+
return ret;
|
|
1267
|
+
}, arguments) };
|
|
1268
|
+
imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) {
|
|
1269
|
+
const ret = arg0.done;
|
|
1270
|
+
return ret;
|
|
1271
|
+
};
|
|
1272
|
+
imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
|
|
1273
|
+
const ret = Object.entries(arg0);
|
|
1274
|
+
return ret;
|
|
1275
|
+
};
|
|
1276
|
+
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
1277
|
+
let deferred0_0;
|
|
1278
|
+
let deferred0_1;
|
|
1279
|
+
try {
|
|
1280
|
+
deferred0_0 = arg0;
|
|
1281
|
+
deferred0_1 = arg1;
|
|
1282
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
1283
|
+
} finally {
|
|
1284
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1285
|
+
}
|
|
1286
|
+
};
|
|
1287
|
+
imports.wbg.__wbg_error_80de38b3f7cc3c3c = function(arg0, arg1, arg2, arg3) {
|
|
1288
|
+
console.error(arg0, arg1, arg2, arg3);
|
|
1289
|
+
};
|
|
1290
|
+
imports.wbg.__wbg_error_ff4ddaabdfc5dbb3 = function() { return handleError(function (arg0) {
|
|
1291
|
+
const ret = arg0.error;
|
|
1292
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1293
|
+
}, arguments) };
|
|
1294
|
+
imports.wbg.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
|
|
1295
|
+
const ret = arg0.fetch(arg1);
|
|
1296
|
+
return ret;
|
|
1297
|
+
};
|
|
1298
|
+
imports.wbg.__wbg_fetch_991491c8dac859a5 = function(arg0) {
|
|
1299
|
+
const ret = fetch(arg0);
|
|
1300
|
+
return ret;
|
|
1301
|
+
};
|
|
1302
|
+
imports.wbg.__wbg_getRandomValues_78e016fdd1d721cf = function() { return handleError(function (arg0, arg1) {
|
|
1303
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1304
|
+
}, arguments) };
|
|
1305
|
+
imports.wbg.__wbg_getRandomValues_7dd14472e5bb087d = function() { return handleError(function (arg0, arg1) {
|
|
1306
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1307
|
+
}, arguments) };
|
|
1308
|
+
imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
|
|
1309
|
+
arg0.getRandomValues(arg1);
|
|
1310
|
+
}, arguments) };
|
|
1311
|
+
imports.wbg.__wbg_getTime_46267b1c24877e30 = function(arg0) {
|
|
1312
|
+
const ret = arg0.getTime();
|
|
1313
|
+
return ret;
|
|
1314
|
+
};
|
|
1315
|
+
imports.wbg.__wbg_getTimezoneOffset_6b5752021c499c47 = function(arg0) {
|
|
1316
|
+
const ret = arg0.getTimezoneOffset();
|
|
1317
|
+
return ret;
|
|
1318
|
+
};
|
|
1319
|
+
imports.wbg.__wbg_get_4f73335ab78445db = function(arg0, arg1, arg2) {
|
|
1320
|
+
const ret = arg1[arg2 >>> 0];
|
|
1321
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1322
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1323
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1324
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1325
|
+
};
|
|
1326
|
+
imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
|
|
1327
|
+
const ret = Reflect.get(arg0, arg1);
|
|
1328
|
+
return ret;
|
|
1329
|
+
}, arguments) };
|
|
1330
|
+
imports.wbg.__wbg_get_8da03f81f6a1111e = function() { return handleError(function (arg0, arg1) {
|
|
1331
|
+
const ret = arg0.get(arg1);
|
|
1332
|
+
return ret;
|
|
1333
|
+
}, arguments) };
|
|
1334
|
+
imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
|
|
1335
|
+
const ret = arg0[arg1 >>> 0];
|
|
1336
|
+
return ret;
|
|
1337
|
+
};
|
|
1338
|
+
imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
|
|
1339
|
+
const ret = arg0[arg1];
|
|
1340
|
+
return ret;
|
|
1341
|
+
};
|
|
1342
|
+
imports.wbg.__wbg_has_a5ea9117f258a0ec = function() { return handleError(function (arg0, arg1) {
|
|
1343
|
+
const ret = Reflect.has(arg0, arg1);
|
|
1344
|
+
return ret;
|
|
1345
|
+
}, arguments) };
|
|
1346
|
+
imports.wbg.__wbg_headers_9cb51cfd2ac780a4 = function(arg0) {
|
|
1347
|
+
const ret = arg0.headers;
|
|
1348
|
+
return ret;
|
|
1349
|
+
};
|
|
1350
|
+
imports.wbg.__wbg_indexNames_0ed82a19d7d88aa3 = function(arg0) {
|
|
1351
|
+
const ret = arg0.indexNames;
|
|
1352
|
+
return ret;
|
|
1353
|
+
};
|
|
1354
|
+
imports.wbg.__wbg_info_033d8b8a0838f1d3 = function(arg0, arg1, arg2, arg3) {
|
|
1355
|
+
console.info(arg0, arg1, arg2, arg3);
|
|
1356
|
+
};
|
|
1357
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
|
|
1358
|
+
let result;
|
|
1359
|
+
try {
|
|
1360
|
+
result = arg0 instanceof ArrayBuffer;
|
|
1361
|
+
} catch (_) {
|
|
1362
|
+
result = false;
|
|
1363
|
+
}
|
|
1364
|
+
const ret = result;
|
|
1365
|
+
return ret;
|
|
1366
|
+
};
|
|
1367
|
+
imports.wbg.__wbg_instanceof_Blob_ca721ef3bdab15d1 = function(arg0) {
|
|
1368
|
+
let result;
|
|
1369
|
+
try {
|
|
1370
|
+
result = arg0 instanceof Blob;
|
|
1371
|
+
} catch (_) {
|
|
1372
|
+
result = false;
|
|
1373
|
+
}
|
|
1374
|
+
const ret = result;
|
|
1375
|
+
return ret;
|
|
1376
|
+
};
|
|
1377
|
+
imports.wbg.__wbg_instanceof_IdbFactory_12eaba3366f4302f = function(arg0) {
|
|
1378
|
+
let result;
|
|
1379
|
+
try {
|
|
1380
|
+
result = arg0 instanceof IDBFactory;
|
|
1381
|
+
} catch (_) {
|
|
1382
|
+
result = false;
|
|
1383
|
+
}
|
|
1384
|
+
const ret = result;
|
|
1385
|
+
return ret;
|
|
1386
|
+
};
|
|
1387
|
+
imports.wbg.__wbg_instanceof_Map_f3469ce2244d2430 = function(arg0) {
|
|
1388
|
+
let result;
|
|
1389
|
+
try {
|
|
1390
|
+
result = arg0 instanceof Map;
|
|
1391
|
+
} catch (_) {
|
|
1392
|
+
result = false;
|
|
1393
|
+
}
|
|
1394
|
+
const ret = result;
|
|
1395
|
+
return ret;
|
|
1396
|
+
};
|
|
1397
|
+
imports.wbg.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function(arg0) {
|
|
1398
|
+
let result;
|
|
1399
|
+
try {
|
|
1400
|
+
result = arg0 instanceof Response;
|
|
1401
|
+
} catch (_) {
|
|
1402
|
+
result = false;
|
|
1403
|
+
}
|
|
1404
|
+
const ret = result;
|
|
1405
|
+
return ret;
|
|
1406
|
+
};
|
|
1407
|
+
imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
|
|
1408
|
+
let result;
|
|
1409
|
+
try {
|
|
1410
|
+
result = arg0 instanceof Uint8Array;
|
|
1411
|
+
} catch (_) {
|
|
1412
|
+
result = false;
|
|
1413
|
+
}
|
|
1414
|
+
const ret = result;
|
|
1415
|
+
return ret;
|
|
1416
|
+
};
|
|
1417
|
+
imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
|
|
1418
|
+
const ret = Array.isArray(arg0);
|
|
1419
|
+
return ret;
|
|
1420
|
+
};
|
|
1421
|
+
imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
|
|
1422
|
+
const ret = Number.isSafeInteger(arg0);
|
|
1423
|
+
return ret;
|
|
1424
|
+
};
|
|
1425
|
+
imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() {
|
|
1426
|
+
const ret = Symbol.iterator;
|
|
1427
|
+
return ret;
|
|
1428
|
+
};
|
|
1429
|
+
imports.wbg.__wbg_key_29fefecef430db96 = function() { return handleError(function (arg0) {
|
|
1430
|
+
const ret = arg0.key;
|
|
1431
|
+
return ret;
|
|
1432
|
+
}, arguments) };
|
|
1433
|
+
imports.wbg.__wbg_length_52b6c4580c5ec934 = function(arg0) {
|
|
1434
|
+
const ret = arg0.length;
|
|
1435
|
+
return ret;
|
|
1436
|
+
};
|
|
1437
|
+
imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
|
|
1438
|
+
const ret = arg0.length;
|
|
1439
|
+
return ret;
|
|
1440
|
+
};
|
|
1441
|
+
imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
|
|
1442
|
+
const ret = arg0.length;
|
|
1443
|
+
return ret;
|
|
1444
|
+
};
|
|
1445
|
+
imports.wbg.__wbg_log_cad59bb680daec67 = function(arg0, arg1, arg2, arg3) {
|
|
1446
|
+
console.log(arg0, arg1, arg2, arg3);
|
|
1447
|
+
};
|
|
1448
|
+
imports.wbg.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
|
|
1449
|
+
const ret = arg0.msCrypto;
|
|
1450
|
+
return ret;
|
|
1451
|
+
};
|
|
1452
|
+
imports.wbg.__wbg_new0_f788a2397c7ca929 = function() {
|
|
1453
|
+
const ret = new Date();
|
|
1454
|
+
return ret;
|
|
1455
|
+
};
|
|
1456
|
+
imports.wbg.__wbg_new_018dcc2d6c8c2f6a = function() { return handleError(function () {
|
|
1457
|
+
const ret = new Headers();
|
|
1458
|
+
return ret;
|
|
1459
|
+
}, arguments) };
|
|
1460
|
+
imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
|
1461
|
+
try {
|
|
1462
|
+
var state0 = {a: arg0, b: arg1};
|
|
1463
|
+
var cb0 = (arg0, arg1) => {
|
|
1464
|
+
const a = state0.a;
|
|
1465
|
+
state0.a = 0;
|
|
1466
|
+
try {
|
|
1467
|
+
return __wbg_adapter_429(a, state0.b, arg0, arg1);
|
|
1468
|
+
} finally {
|
|
1469
|
+
state0.a = a;
|
|
1470
|
+
}
|
|
1471
|
+
};
|
|
1472
|
+
const ret = new Promise(cb0);
|
|
1473
|
+
return ret;
|
|
1474
|
+
} finally {
|
|
1475
|
+
state0.a = state0.b = 0;
|
|
1476
|
+
}
|
|
1477
|
+
};
|
|
1478
|
+
imports.wbg.__wbg_new_31a97dac4f10fab7 = function(arg0) {
|
|
1479
|
+
const ret = new Date(arg0);
|
|
1480
|
+
return ret;
|
|
1481
|
+
};
|
|
1482
|
+
imports.wbg.__wbg_new_405e22f390576ce2 = function() {
|
|
1483
|
+
const ret = new Object();
|
|
1484
|
+
return ret;
|
|
1485
|
+
};
|
|
1486
|
+
imports.wbg.__wbg_new_5e0be73521bc8c17 = function() {
|
|
1487
|
+
const ret = new Map();
|
|
1488
|
+
return ret;
|
|
1489
|
+
};
|
|
1490
|
+
imports.wbg.__wbg_new_78feb108b6472713 = function() {
|
|
1491
|
+
const ret = new Array();
|
|
1492
|
+
return ret;
|
|
1493
|
+
};
|
|
1494
|
+
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
|
1495
|
+
const ret = new Error();
|
|
1496
|
+
return ret;
|
|
1497
|
+
};
|
|
1498
|
+
imports.wbg.__wbg_new_92c54fc74574ef55 = function() { return handleError(function (arg0, arg1) {
|
|
1499
|
+
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
|
1500
|
+
return ret;
|
|
1501
|
+
}, arguments) };
|
|
1502
|
+
imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
1503
|
+
const ret = new Uint8Array(arg0);
|
|
1504
|
+
return ret;
|
|
1505
|
+
};
|
|
1506
|
+
imports.wbg.__wbg_new_e25e5aab09ff45db = function() { return handleError(function () {
|
|
1507
|
+
const ret = new AbortController();
|
|
1508
|
+
return ret;
|
|
1509
|
+
}, arguments) };
|
|
1510
|
+
imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
|
|
1511
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1512
|
+
return ret;
|
|
1513
|
+
};
|
|
1514
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
|
|
1515
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1516
|
+
return ret;
|
|
1517
|
+
};
|
|
1518
|
+
imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
|
|
1519
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
1520
|
+
return ret;
|
|
1521
|
+
};
|
|
1522
|
+
imports.wbg.__wbg_newwithstrandinit_06c535e0a867c635 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1523
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1524
|
+
return ret;
|
|
1525
|
+
}, arguments) };
|
|
1526
|
+
imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
|
|
1527
|
+
const ret = arg0.next;
|
|
1528
|
+
return ret;
|
|
1529
|
+
};
|
|
1530
|
+
imports.wbg.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) {
|
|
1531
|
+
const ret = arg0.next();
|
|
1532
|
+
return ret;
|
|
1533
|
+
}, arguments) };
|
|
1534
|
+
imports.wbg.__wbg_node_02999533c4ea02e3 = function(arg0) {
|
|
1535
|
+
const ret = arg0.node;
|
|
1536
|
+
return ret;
|
|
1537
|
+
};
|
|
1538
|
+
imports.wbg.__wbg_now_71123b9940376874 = function(arg0) {
|
|
1539
|
+
const ret = arg0.now();
|
|
1540
|
+
return ret;
|
|
1541
|
+
};
|
|
1542
|
+
imports.wbg.__wbg_now_807e54c39636c349 = function() {
|
|
1543
|
+
const ret = Date.now();
|
|
1544
|
+
return ret;
|
|
1545
|
+
};
|
|
1546
|
+
imports.wbg.__wbg_now_9e28294e2edd6344 = function() { return handleError(function () {
|
|
1547
|
+
const ret = Date.now();
|
|
1548
|
+
return ret;
|
|
1549
|
+
}, arguments) };
|
|
1550
|
+
imports.wbg.__wbg_now_d18023d54d4e5500 = function(arg0) {
|
|
1551
|
+
const ret = arg0.now();
|
|
1552
|
+
return ret;
|
|
1553
|
+
};
|
|
1554
|
+
imports.wbg.__wbg_objectStoreNames_9bb1ab04a7012aaf = function(arg0) {
|
|
1555
|
+
const ret = arg0.objectStoreNames;
|
|
1556
|
+
return ret;
|
|
1557
|
+
};
|
|
1558
|
+
imports.wbg.__wbg_objectStore_21878d46d25b64b6 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1559
|
+
const ret = arg0.objectStore(getStringFromWasm0(arg1, arg2));
|
|
1560
|
+
return ret;
|
|
1561
|
+
}, arguments) };
|
|
1562
|
+
imports.wbg.__wbg_openCursor_238e247d18bde2cd = function() { return handleError(function (arg0) {
|
|
1563
|
+
const ret = arg0.openCursor();
|
|
1564
|
+
return ret;
|
|
1565
|
+
}, arguments) };
|
|
1566
|
+
imports.wbg.__wbg_openCursor_6fd4dab51810d238 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1567
|
+
const ret = arg0.openCursor(arg1, __wbindgen_enum_IdbCursorDirection[arg2]);
|
|
1568
|
+
return ret;
|
|
1569
|
+
}, arguments) };
|
|
1570
|
+
imports.wbg.__wbg_openCursor_f4b061aa6d804b93 = function() { return handleError(function (arg0, arg1) {
|
|
1571
|
+
const ret = arg0.openCursor(arg1);
|
|
1572
|
+
return ret;
|
|
1573
|
+
}, arguments) };
|
|
1574
|
+
imports.wbg.__wbg_open_88b1390d99a7c691 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1575
|
+
const ret = arg0.open(getStringFromWasm0(arg1, arg2));
|
|
1576
|
+
return ret;
|
|
1577
|
+
}, arguments) };
|
|
1578
|
+
imports.wbg.__wbg_open_e0c0b2993eb596e1 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1579
|
+
const ret = arg0.open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
|
|
1580
|
+
return ret;
|
|
1581
|
+
}, arguments) };
|
|
1582
|
+
imports.wbg.__wbg_performance_1a2515c93daf8b0c = function(arg0) {
|
|
1583
|
+
const ret = arg0.performance;
|
|
1584
|
+
return ret;
|
|
1585
|
+
};
|
|
1586
|
+
imports.wbg.__wbg_process_5c1d670bc53614b8 = function(arg0) {
|
|
1587
|
+
const ret = arg0.process;
|
|
1588
|
+
return ret;
|
|
1589
|
+
};
|
|
1590
|
+
imports.wbg.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) {
|
|
1591
|
+
const ret = arg0.push(arg1);
|
|
1592
|
+
return ret;
|
|
1593
|
+
};
|
|
1594
|
+
imports.wbg.__wbg_put_066faa31a6a88f5b = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1595
|
+
const ret = arg0.put(arg1, arg2);
|
|
1596
|
+
return ret;
|
|
1597
|
+
}, arguments) };
|
|
1598
|
+
imports.wbg.__wbg_put_9ef5363941008835 = function() { return handleError(function (arg0, arg1) {
|
|
1599
|
+
const ret = arg0.put(arg1);
|
|
1600
|
+
return ret;
|
|
1601
|
+
}, arguments) };
|
|
1602
|
+
imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
|
|
1603
|
+
queueMicrotask(arg0);
|
|
1604
|
+
};
|
|
1605
|
+
imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
|
|
1606
|
+
const ret = arg0.queueMicrotask;
|
|
1607
|
+
return ret;
|
|
1608
|
+
};
|
|
1609
|
+
imports.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() { return handleError(function (arg0, arg1) {
|
|
1610
|
+
arg0.randomFillSync(arg1);
|
|
1611
|
+
}, arguments) };
|
|
1612
|
+
imports.wbg.__wbg_readyState_7ef6e63c349899ed = function(arg0) {
|
|
1613
|
+
const ret = arg0.readyState;
|
|
1614
|
+
return ret;
|
|
1615
|
+
};
|
|
1616
|
+
imports.wbg.__wbg_reason_49f1cede8bcf23dd = function(arg0, arg1) {
|
|
1617
|
+
const ret = arg1.reason;
|
|
1618
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1619
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1620
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1621
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1622
|
+
};
|
|
1623
|
+
imports.wbg.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () {
|
|
1624
|
+
const ret = module.require;
|
|
1625
|
+
return ret;
|
|
1626
|
+
}, arguments) };
|
|
1627
|
+
imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
|
|
1628
|
+
const ret = Promise.resolve(arg0);
|
|
1629
|
+
return ret;
|
|
1630
|
+
};
|
|
1631
|
+
imports.wbg.__wbg_result_f29afabdf2c05826 = function() { return handleError(function (arg0) {
|
|
1632
|
+
const ret = arg0.result;
|
|
1633
|
+
return ret;
|
|
1634
|
+
}, arguments) };
|
|
1635
|
+
imports.wbg.__wbg_send_0293179ba074ffb4 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1636
|
+
arg0.send(getStringFromWasm0(arg1, arg2));
|
|
1637
|
+
}, arguments) };
|
|
1638
|
+
imports.wbg.__wbg_send_fc0c204e8a1757f4 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1639
|
+
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
1640
|
+
}, arguments) };
|
|
1641
|
+
imports.wbg.__wbg_setInterval_ed3b5e3c3ebb8a6d = function() { return handleError(function (arg0, arg1) {
|
|
1642
|
+
const ret = setInterval(arg0, arg1);
|
|
1643
|
+
return ret;
|
|
1644
|
+
}, arguments) };
|
|
1645
|
+
imports.wbg.__wbg_setTimeout_d69c3ce010c0e055 = function(arg0, arg1) {
|
|
1646
|
+
const ret = setTimeout(arg0, arg1);
|
|
1647
|
+
return ret;
|
|
1648
|
+
};
|
|
1649
|
+
imports.wbg.__wbg_setTimeout_db2dbaeefb6f39c7 = function() { return handleError(function (arg0, arg1) {
|
|
1650
|
+
const ret = setTimeout(arg0, arg1);
|
|
1651
|
+
return ret;
|
|
1652
|
+
}, arguments) };
|
|
1653
|
+
imports.wbg.__wbg_setTimeout_efd7c11531df1743 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1654
|
+
const ret = arg0.setTimeout(arg1, arg2);
|
|
1655
|
+
return ret;
|
|
1656
|
+
}, arguments) };
|
|
1657
|
+
imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
|
|
1658
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1659
|
+
};
|
|
1660
|
+
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
1661
|
+
arg0[arg1] = arg2;
|
|
1662
|
+
};
|
|
1663
|
+
imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
1664
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
1665
|
+
};
|
|
1666
|
+
imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) {
|
|
1667
|
+
const ret = arg0.set(arg1, arg2);
|
|
1668
|
+
return ret;
|
|
1669
|
+
};
|
|
1670
|
+
imports.wbg.__wbg_setautoincrement_8b4327709e9ee7d9 = function(arg0, arg1) {
|
|
1671
|
+
arg0.autoIncrement = arg1 !== 0;
|
|
1672
|
+
};
|
|
1673
|
+
imports.wbg.__wbg_setbinaryType_92fa1ffd873b327c = function(arg0, arg1) {
|
|
1674
|
+
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
1675
|
+
};
|
|
1676
|
+
imports.wbg.__wbg_setbody_5923b78a95eedf29 = function(arg0, arg1) {
|
|
1677
|
+
arg0.body = arg1;
|
|
1678
|
+
};
|
|
1679
|
+
imports.wbg.__wbg_setcredentials_c3a22f1cd105a2c6 = function(arg0, arg1) {
|
|
1680
|
+
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1681
|
+
};
|
|
1682
|
+
imports.wbg.__wbg_setheaders_834c0bdb6a8949ad = function(arg0, arg1) {
|
|
1683
|
+
arg0.headers = arg1;
|
|
1684
|
+
};
|
|
1685
|
+
imports.wbg.__wbg_setkeypath_691179e313c26ae1 = function(arg0, arg1) {
|
|
1686
|
+
arg0.keyPath = arg1;
|
|
1687
|
+
};
|
|
1688
|
+
imports.wbg.__wbg_setmethod_3c5280fe5d890842 = function(arg0, arg1, arg2) {
|
|
1689
|
+
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1690
|
+
};
|
|
1691
|
+
imports.wbg.__wbg_setmode_5dc300b865044b65 = function(arg0, arg1) {
|
|
1692
|
+
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1693
|
+
};
|
|
1694
|
+
imports.wbg.__wbg_setmultientry_4c4eee871f29837a = function(arg0, arg1) {
|
|
1695
|
+
arg0.multiEntry = arg1 !== 0;
|
|
1696
|
+
};
|
|
1697
|
+
imports.wbg.__wbg_setonabort_3bf4db6614fa98e9 = function(arg0, arg1) {
|
|
1698
|
+
arg0.onabort = arg1;
|
|
1699
|
+
};
|
|
1700
|
+
imports.wbg.__wbg_setonclose_14fc475a49d488fc = function(arg0, arg1) {
|
|
1701
|
+
arg0.onclose = arg1;
|
|
1702
|
+
};
|
|
1703
|
+
imports.wbg.__wbg_setoncomplete_4d19df0dadb7c4d4 = function(arg0, arg1) {
|
|
1704
|
+
arg0.oncomplete = arg1;
|
|
1705
|
+
};
|
|
1706
|
+
imports.wbg.__wbg_setonerror_8639efe354b947cd = function(arg0, arg1) {
|
|
1707
|
+
arg0.onerror = arg1;
|
|
1708
|
+
};
|
|
1709
|
+
imports.wbg.__wbg_setonerror_b0d9d723b8fddbbb = function(arg0, arg1) {
|
|
1710
|
+
arg0.onerror = arg1;
|
|
1711
|
+
};
|
|
1712
|
+
imports.wbg.__wbg_setonerror_d7e3056cc6e56085 = function(arg0, arg1) {
|
|
1713
|
+
arg0.onerror = arg1;
|
|
1714
|
+
};
|
|
1715
|
+
imports.wbg.__wbg_setonmessage_6eccab530a8fb4c7 = function(arg0, arg1) {
|
|
1716
|
+
arg0.onmessage = arg1;
|
|
1717
|
+
};
|
|
1718
|
+
imports.wbg.__wbg_setonopen_2da654e1f39745d5 = function(arg0, arg1) {
|
|
1719
|
+
arg0.onopen = arg1;
|
|
1720
|
+
};
|
|
1721
|
+
imports.wbg.__wbg_setonsuccess_afa464ee777a396d = function(arg0, arg1) {
|
|
1722
|
+
arg0.onsuccess = arg1;
|
|
1723
|
+
};
|
|
1724
|
+
imports.wbg.__wbg_setonupgradeneeded_fcf7ce4f2eb0cb5f = function(arg0, arg1) {
|
|
1725
|
+
arg0.onupgradeneeded = arg1;
|
|
1726
|
+
};
|
|
1727
|
+
imports.wbg.__wbg_setsignal_75b21ef3a81de905 = function(arg0, arg1) {
|
|
1728
|
+
arg0.signal = arg1;
|
|
1729
|
+
};
|
|
1730
|
+
imports.wbg.__wbg_setunique_dd24c422aa05df89 = function(arg0, arg1) {
|
|
1731
|
+
arg0.unique = arg1 !== 0;
|
|
1732
|
+
};
|
|
1733
|
+
imports.wbg.__wbg_signal_aaf9ad74119f20a4 = function(arg0) {
|
|
1734
|
+
const ret = arg0.signal;
|
|
1735
|
+
return ret;
|
|
1736
|
+
};
|
|
1737
|
+
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
1738
|
+
const ret = arg1.stack;
|
|
1739
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1740
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1741
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1742
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1743
|
+
};
|
|
1744
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
|
|
1745
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1746
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1747
|
+
};
|
|
1748
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
|
|
1749
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1750
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1751
|
+
};
|
|
1752
|
+
imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
|
|
1753
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
1754
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1755
|
+
};
|
|
1756
|
+
imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
|
|
1757
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
1758
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1759
|
+
};
|
|
1760
|
+
imports.wbg.__wbg_status_f6360336ca686bf0 = function(arg0) {
|
|
1761
|
+
const ret = arg0.status;
|
|
1762
|
+
return ret;
|
|
1763
|
+
};
|
|
1764
|
+
imports.wbg.__wbg_stringify_f7ed6987935b4a24 = function() { return handleError(function (arg0) {
|
|
1765
|
+
const ret = JSON.stringify(arg0);
|
|
1766
|
+
return ret;
|
|
1767
|
+
}, arguments) };
|
|
1768
|
+
imports.wbg.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
|
|
1769
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1770
|
+
return ret;
|
|
1771
|
+
};
|
|
1772
|
+
imports.wbg.__wbg_target_0a62d9d79a2a1ede = function(arg0) {
|
|
1773
|
+
const ret = arg0.target;
|
|
1774
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1775
|
+
};
|
|
1776
|
+
imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
|
|
1777
|
+
const ret = arg0.then(arg1);
|
|
1778
|
+
return ret;
|
|
1779
|
+
};
|
|
1780
|
+
imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
|
|
1781
|
+
const ret = arg0.then(arg1, arg2);
|
|
1782
|
+
return ret;
|
|
1783
|
+
};
|
|
1784
|
+
imports.wbg.__wbg_toString_c813bbd34d063839 = function(arg0) {
|
|
1785
|
+
const ret = arg0.toString();
|
|
1786
|
+
return ret;
|
|
1787
|
+
};
|
|
1788
|
+
imports.wbg.__wbg_transaction_d6d07c3c9963c49e = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1789
|
+
const ret = arg0.transaction(arg1, __wbindgen_enum_IdbTransactionMode[arg2]);
|
|
1790
|
+
return ret;
|
|
1791
|
+
}, arguments) };
|
|
1792
|
+
imports.wbg.__wbg_transaction_e713aa7b07ccaedd = function(arg0) {
|
|
1793
|
+
const ret = arg0.transaction;
|
|
1794
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1795
|
+
};
|
|
1796
|
+
imports.wbg.__wbg_url_ae10c34ca209681d = function(arg0, arg1) {
|
|
1797
|
+
const ret = arg1.url;
|
|
1798
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1799
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1800
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1801
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1802
|
+
};
|
|
1803
|
+
imports.wbg.__wbg_url_ce9ab75bf9627ae4 = function(arg0, arg1) {
|
|
1804
|
+
const ret = arg1.url;
|
|
1805
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1806
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1807
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1808
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1809
|
+
};
|
|
1810
|
+
imports.wbg.__wbg_value_68c4e9a54bb7fd5e = function() { return handleError(function (arg0) {
|
|
1811
|
+
const ret = arg0.value;
|
|
1812
|
+
return ret;
|
|
1813
|
+
}, arguments) };
|
|
1814
|
+
imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
|
|
1815
|
+
const ret = arg0.value;
|
|
1816
|
+
return ret;
|
|
1817
|
+
};
|
|
1818
|
+
imports.wbg.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
|
|
1819
|
+
const ret = arg0.versions;
|
|
1820
|
+
return ret;
|
|
1821
|
+
};
|
|
1822
|
+
imports.wbg.__wbg_warn_aaf1f4664a035bd6 = function(arg0, arg1, arg2, arg3) {
|
|
1823
|
+
console.warn(arg0, arg1, arg2, arg3);
|
|
1824
|
+
};
|
|
1825
|
+
imports.wbg.__wbg_wasClean_605b4fd66d44354a = function(arg0) {
|
|
1826
|
+
const ret = arg0.wasClean;
|
|
1827
|
+
return ret;
|
|
1828
|
+
};
|
|
1829
|
+
imports.wbg.__wbindgen_as_number = function(arg0) {
|
|
1830
|
+
const ret = +arg0;
|
|
1831
|
+
return ret;
|
|
1832
|
+
};
|
|
1833
|
+
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
1834
|
+
const ret = arg0;
|
|
1835
|
+
return ret;
|
|
1836
|
+
};
|
|
1837
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
1838
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1839
|
+
return ret;
|
|
1840
|
+
};
|
|
1841
|
+
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
1842
|
+
const v = arg1;
|
|
1843
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1844
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1845
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1846
|
+
};
|
|
1847
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
1848
|
+
const v = arg0;
|
|
1849
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
1850
|
+
return ret;
|
|
1851
|
+
};
|
|
1852
|
+
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
1853
|
+
const obj = arg0.original;
|
|
1854
|
+
if (obj.cnt-- == 1) {
|
|
1855
|
+
obj.a = 0;
|
|
1856
|
+
return true;
|
|
1857
|
+
}
|
|
1858
|
+
const ret = false;
|
|
1859
|
+
return ret;
|
|
1860
|
+
};
|
|
1861
|
+
imports.wbg.__wbindgen_closure_wrapper21534 = function(arg0, arg1, arg2) {
|
|
1862
|
+
const ret = makeMutClosure(arg0, arg1, 3940, __wbg_adapter_57);
|
|
1863
|
+
return ret;
|
|
1864
|
+
};
|
|
1865
|
+
imports.wbg.__wbindgen_closure_wrapper22044 = function(arg0, arg1, arg2) {
|
|
1866
|
+
const ret = makeMutClosure(arg0, arg1, 4088, __wbg_adapter_60);
|
|
1867
|
+
return ret;
|
|
1868
|
+
};
|
|
1869
|
+
imports.wbg.__wbindgen_closure_wrapper27146 = function(arg0, arg1, arg2) {
|
|
1870
|
+
const ret = makeMutClosure(arg0, arg1, 5467, __wbg_adapter_63);
|
|
1871
|
+
return ret;
|
|
1872
|
+
};
|
|
1873
|
+
imports.wbg.__wbindgen_closure_wrapper27781 = function(arg0, arg1, arg2) {
|
|
1874
|
+
const ret = makeMutClosure(arg0, arg1, 5721, __wbg_adapter_66);
|
|
1875
|
+
return ret;
|
|
1876
|
+
};
|
|
1877
|
+
imports.wbg.__wbindgen_closure_wrapper29020 = function(arg0, arg1, arg2) {
|
|
1878
|
+
const ret = makeMutClosure(arg0, arg1, 5922, __wbg_adapter_69);
|
|
1879
|
+
return ret;
|
|
1880
|
+
};
|
|
1881
|
+
imports.wbg.__wbindgen_closure_wrapper29045 = function(arg0, arg1, arg2) {
|
|
1882
|
+
const ret = makeMutClosure(arg0, arg1, 5932, __wbg_adapter_72);
|
|
1883
|
+
return ret;
|
|
1884
|
+
};
|
|
1885
|
+
imports.wbg.__wbindgen_closure_wrapper3151 = function(arg0, arg1, arg2) {
|
|
1886
|
+
const ret = makeMutClosure(arg0, arg1, 1144, __wbg_adapter_54);
|
|
1887
|
+
return ret;
|
|
1888
|
+
};
|
|
1889
|
+
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
1890
|
+
const ret = debugString(arg1);
|
|
1891
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1892
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1893
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1894
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1895
|
+
};
|
|
1896
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
1897
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1898
|
+
return ret;
|
|
1899
|
+
};
|
|
1900
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
1901
|
+
const ret = arg0 in arg1;
|
|
1902
|
+
return ret;
|
|
1903
|
+
};
|
|
1904
|
+
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
1905
|
+
const table = wasm.__wbindgen_export_4;
|
|
1906
|
+
const offset = table.grow(4);
|
|
1907
|
+
table.set(0, undefined);
|
|
1908
|
+
table.set(offset + 0, undefined);
|
|
1909
|
+
table.set(offset + 1, null);
|
|
1910
|
+
table.set(offset + 2, true);
|
|
1911
|
+
table.set(offset + 3, false);
|
|
1912
|
+
;
|
|
1913
|
+
};
|
|
1914
|
+
imports.wbg.__wbindgen_is_bigint = function(arg0) {
|
|
1915
|
+
const ret = typeof(arg0) === 'bigint';
|
|
1916
|
+
return ret;
|
|
1917
|
+
};
|
|
1918
|
+
imports.wbg.__wbindgen_is_falsy = function(arg0) {
|
|
1919
|
+
const ret = !arg0;
|
|
1920
|
+
return ret;
|
|
1921
|
+
};
|
|
1922
|
+
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
1923
|
+
const ret = typeof(arg0) === 'function';
|
|
1924
|
+
return ret;
|
|
1925
|
+
};
|
|
1926
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
1927
|
+
const val = arg0;
|
|
1928
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
1929
|
+
return ret;
|
|
1930
|
+
};
|
|
1931
|
+
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
1932
|
+
const ret = typeof(arg0) === 'string';
|
|
1933
|
+
return ret;
|
|
1934
|
+
};
|
|
1935
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
1936
|
+
const ret = arg0 === undefined;
|
|
1937
|
+
return ret;
|
|
1938
|
+
};
|
|
1939
|
+
imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
1940
|
+
const ret = arg0 === arg1;
|
|
1941
|
+
return ret;
|
|
1942
|
+
};
|
|
1943
|
+
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
1944
|
+
const ret = arg0 == arg1;
|
|
1945
|
+
return ret;
|
|
1946
|
+
};
|
|
1947
|
+
imports.wbg.__wbindgen_memory = function() {
|
|
1948
|
+
const ret = wasm.memory;
|
|
1949
|
+
return ret;
|
|
1950
|
+
};
|
|
1951
|
+
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
1952
|
+
const obj = arg1;
|
|
1953
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1954
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1955
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1956
|
+
};
|
|
1957
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
1958
|
+
const ret = arg0;
|
|
1959
|
+
return ret;
|
|
1960
|
+
};
|
|
1961
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
1962
|
+
const obj = arg1;
|
|
1963
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1964
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1965
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1966
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1967
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1968
|
+
};
|
|
1969
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
1970
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1971
|
+
return ret;
|
|
1972
|
+
};
|
|
1973
|
+
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
1974
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1975
|
+
};
|
|
1976
|
+
|
|
1977
|
+
return imports;
|
|
1978
|
+
}
|
|
1979
|
+
|
|
1980
|
+
function __wbg_init_memory(imports, memory) {
|
|
1981
|
+
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1984
|
+
function __wbg_finalize_init(instance, module) {
|
|
1985
|
+
wasm = instance.exports;
|
|
1986
|
+
__wbg_init.__wbindgen_wasm_module = module;
|
|
1987
|
+
cachedDataViewMemory0 = null;
|
|
1988
|
+
cachedUint8ArrayMemory0 = null;
|
|
1989
|
+
|
|
1990
|
+
|
|
1991
|
+
wasm.__wbindgen_start();
|
|
1992
|
+
return wasm;
|
|
1993
|
+
}
|
|
1994
|
+
|
|
1995
|
+
function initSync(module) {
|
|
1996
|
+
if (wasm !== undefined) return wasm;
|
|
1997
|
+
|
|
1998
|
+
|
|
1999
|
+
if (typeof module !== 'undefined') {
|
|
2000
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
2001
|
+
({module} = module)
|
|
2002
|
+
} else {
|
|
2003
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
const imports = __wbg_get_imports();
|
|
2008
|
+
|
|
2009
|
+
__wbg_init_memory(imports);
|
|
2010
|
+
|
|
2011
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
2012
|
+
module = new WebAssembly.Module(module);
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
2016
|
+
|
|
2017
|
+
return __wbg_finalize_init(instance, module);
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
async function __wbg_init(module_or_path) {
|
|
2021
|
+
if (wasm !== undefined) return wasm;
|
|
2022
|
+
|
|
2023
|
+
|
|
2024
|
+
if (typeof module_or_path !== 'undefined') {
|
|
2025
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
2026
|
+
({module_or_path} = module_or_path)
|
|
2027
|
+
} else {
|
|
2028
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
if (typeof module_or_path === 'undefined') {
|
|
2033
|
+
module_or_path = new URL('index_bg.wasm', import.meta.url);
|
|
2034
|
+
}
|
|
2035
|
+
const imports = __wbg_get_imports();
|
|
2036
|
+
|
|
2037
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
2038
|
+
module_or_path = fetch(module_or_path);
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
__wbg_init_memory(imports);
|
|
2042
|
+
|
|
2043
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
2044
|
+
|
|
2045
|
+
return __wbg_finalize_init(instance, module);
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
export { initSync };
|
|
2049
|
+
export default __wbg_init;
|