@cartridge/controller-wasm 0.3.19 → 0.7.14-0df5a4c

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.
@@ -5,43 +5,6 @@ export function __wbg_set_wasm(val) {
5
5
  wasm = val;
6
6
  }
7
7
 
8
-
9
- let cachedUint8ArrayMemory0 = null;
10
-
11
- function getUint8ArrayMemory0() {
12
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
13
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
14
- }
15
- return cachedUint8ArrayMemory0;
16
- }
17
-
18
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
19
-
20
- cachedTextDecoder.decode();
21
-
22
- const MAX_SAFARI_DECODE_BYTES = 2146435072;
23
- let numBytesDecoded = 0;
24
- function decodeText(ptr, len) {
25
- numBytesDecoded += len;
26
- if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
27
- cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
28
- cachedTextDecoder.decode();
29
- numBytesDecoded = len;
30
- }
31
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
32
- }
33
-
34
- function getStringFromWasm0(ptr, len) {
35
- ptr = ptr >>> 0;
36
- return decodeText(ptr, len);
37
- }
38
-
39
- let heap = new Array(128).fill(undefined);
40
-
41
- heap.push(undefined, null, true, false);
42
-
43
- let heap_next = heap.length;
44
-
45
8
  function addHeapObject(obj) {
46
9
  if (heap_next === heap.length) heap.push(heap.length + 1);
47
10
  const idx = heap_next;
@@ -51,74 +14,15 @@ function addHeapObject(obj) {
51
14
  return idx;
52
15
  }
53
16
 
54
- function getObject(idx) { return heap[idx]; }
55
-
56
- let WASM_VECTOR_LEN = 0;
57
-
58
- const cachedTextEncoder = new TextEncoder();
59
-
60
- if (!('encodeInto' in cachedTextEncoder)) {
61
- cachedTextEncoder.encodeInto = function (arg, view) {
62
- const buf = cachedTextEncoder.encode(arg);
63
- view.set(buf);
64
- return {
65
- read: arg.length,
66
- written: buf.length
67
- };
68
- }
69
- }
70
-
71
- function passStringToWasm0(arg, malloc, realloc) {
72
-
73
- if (realloc === undefined) {
74
- const buf = cachedTextEncoder.encode(arg);
75
- const ptr = malloc(buf.length, 1) >>> 0;
76
- getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
77
- WASM_VECTOR_LEN = buf.length;
78
- return ptr;
79
- }
80
-
81
- let len = arg.length;
82
- let ptr = malloc(len, 1) >>> 0;
83
-
84
- const mem = getUint8ArrayMemory0();
85
-
86
- let offset = 0;
87
-
88
- for (; offset < len; offset++) {
89
- const code = arg.charCodeAt(offset);
90
- if (code > 0x7F) break;
91
- mem[ptr + offset] = code;
92
- }
93
-
94
- if (offset !== len) {
95
- if (offset !== 0) {
96
- arg = arg.slice(offset);
97
- }
98
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
99
- const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
100
- const ret = cachedTextEncoder.encodeInto(arg, view);
101
-
102
- offset += ret.written;
103
- ptr = realloc(ptr, len, offset, 1) >>> 0;
104
- }
105
-
106
- WASM_VECTOR_LEN = offset;
107
- return ptr;
108
- }
109
-
110
- let cachedDataViewMemory0 = null;
111
-
112
- function getDataViewMemory0() {
113
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
114
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
17
+ function _assertClass(instance, klass) {
18
+ if (!(instance instanceof klass)) {
19
+ throw new Error(`expected instance of ${klass.name}`);
115
20
  }
116
- return cachedDataViewMemory0;
117
21
  }
118
22
 
119
- function isLikeNone(x) {
120
- return x === undefined || x === null;
121
- }
23
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
24
+ ? { register: () => {}, unregister: () => {} }
25
+ : new FinalizationRegistry(state => state.dtor(state.a, state.b));
122
26
 
123
27
  function debugString(val) {
124
28
  // primitive types
@@ -185,24 +89,20 @@ function debugString(val) {
185
89
  return className;
186
90
  }
187
91
 
188
- function handleError(f, args) {
189
- try {
190
- return f.apply(this, args);
191
- } catch (e) {
192
- wasm.__wbindgen_export3(addHeapObject(e));
193
- }
194
- }
195
-
196
92
  function dropObject(idx) {
197
93
  if (idx < 132) return;
198
94
  heap[idx] = heap_next;
199
95
  heap_next = idx;
200
96
  }
201
97
 
202
- function takeObject(idx) {
203
- const ret = getObject(idx);
204
- dropObject(idx);
205
- return ret;
98
+ function getArrayJsValueFromWasm0(ptr, len) {
99
+ ptr = ptr >>> 0;
100
+ const mem = getDataViewMemory0();
101
+ const result = [];
102
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
103
+ result.push(takeObject(mem.getUint32(i, true)));
104
+ }
105
+ return result;
206
106
  }
207
107
 
208
108
  function getArrayU8FromWasm0(ptr, len) {
@@ -210,9 +110,45 @@ function getArrayU8FromWasm0(ptr, len) {
210
110
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
211
111
  }
212
112
 
213
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
214
- ? { register: () => {}, unregister: () => {} }
215
- : new FinalizationRegistry(state => state.dtor(state.a, state.b));
113
+ let cachedDataViewMemory0 = null;
114
+ function getDataViewMemory0() {
115
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
116
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
117
+ }
118
+ return cachedDataViewMemory0;
119
+ }
120
+
121
+ function getStringFromWasm0(ptr, len) {
122
+ ptr = ptr >>> 0;
123
+ return decodeText(ptr, len);
124
+ }
125
+
126
+ let cachedUint8ArrayMemory0 = null;
127
+ function getUint8ArrayMemory0() {
128
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
129
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
130
+ }
131
+ return cachedUint8ArrayMemory0;
132
+ }
133
+
134
+ function getObject(idx) { return heap[idx]; }
135
+
136
+ function handleError(f, args) {
137
+ try {
138
+ return f.apply(this, args);
139
+ } catch (e) {
140
+ wasm.__wbindgen_export3(addHeapObject(e));
141
+ }
142
+ }
143
+
144
+ let heap = new Array(128).fill(undefined);
145
+ heap.push(undefined, null, true, false);
146
+
147
+ let heap_next = heap.length;
148
+
149
+ function isLikeNone(x) {
150
+ return x === undefined || x === null;
151
+ }
216
152
 
217
153
  function makeClosure(arg0, arg1, dtor, f) {
218
154
  const state = { a: arg0, b: arg1, cnt: 1, dtor };
@@ -276,183 +212,94 @@ function passArrayJsValueToWasm0(array, malloc) {
276
212
  WASM_VECTOR_LEN = array.length;
277
213
  return ptr;
278
214
  }
279
- /**
280
- * Computes the Starknet contract address for a controller account without needing a full instance.
281
- *
282
- * # Arguments
283
- *
284
- * * `class_hash` - The class hash of the account contract (JsFelt).
285
- * * `owner` - The owner configuration for the account.
286
- * * `salt` - The salt used for address calculation (JsFelt).
287
- *
288
- * # Returns
289
- *
290
- * The computed Starknet contract address as a `JsFelt`.
291
- * @param {JsFelt} class_hash
292
- * @param {Owner} owner
293
- * @param {JsFelt} salt
294
- * @returns {JsFelt}
295
- */
296
- export function computeAccountAddress(class_hash, owner, salt) {
297
- try {
298
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
299
- wasm.computeAccountAddress(retptr, addHeapObject(class_hash), addHeapObject(owner), addHeapObject(salt));
300
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
301
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
302
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
303
- if (r2) {
304
- throw takeObject(r1);
305
- }
306
- return takeObject(r0);
307
- } finally {
308
- wasm.__wbindgen_add_to_stack_pointer(16);
215
+
216
+ function passStringToWasm0(arg, malloc, realloc) {
217
+ if (realloc === undefined) {
218
+ const buf = cachedTextEncoder.encode(arg);
219
+ const ptr = malloc(buf.length, 1) >>> 0;
220
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
221
+ WASM_VECTOR_LEN = buf.length;
222
+ return ptr;
309
223
  }
310
- }
311
224
 
312
- function _assertClass(instance, klass) {
313
- if (!(instance instanceof klass)) {
314
- throw new Error(`expected instance of ${klass.name}`);
225
+ let len = arg.length;
226
+ let ptr = malloc(len, 1) >>> 0;
227
+
228
+ const mem = getUint8ArrayMemory0();
229
+
230
+ let offset = 0;
231
+
232
+ for (; offset < len; offset++) {
233
+ const code = arg.charCodeAt(offset);
234
+ if (code > 0x7F) break;
235
+ mem[ptr + offset] = code;
315
236
  }
316
- }
237
+ if (offset !== len) {
238
+ if (offset !== 0) {
239
+ arg = arg.slice(offset);
240
+ }
241
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
242
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
243
+ const ret = cachedTextEncoder.encodeInto(arg, view);
317
244
 
318
- function getArrayJsValueFromWasm0(ptr, len) {
319
- ptr = ptr >>> 0;
320
- const mem = getDataViewMemory0();
321
- const result = [];
322
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
323
- result.push(takeObject(mem.getUint32(i, true)));
245
+ offset += ret.written;
246
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
324
247
  }
325
- return result;
248
+
249
+ WASM_VECTOR_LEN = offset;
250
+ return ptr;
326
251
  }
327
- /**
328
- * Subscribes to the creation of a session for a given controller, session_key_guid and cartridge api url.
329
- * The goal of this function is to know from any place when the register session flow has been completed, and to
330
- * get the authorization.
331
- * @param {JsFelt} session_key_guid
332
- * @param {string} cartridge_api_url
333
- * @returns {Promise<JsSubscribeSessionResult>}
334
- */
335
- export function subscribeCreateSession(session_key_guid, cartridge_api_url) {
336
- const ptr0 = passStringToWasm0(cartridge_api_url, wasm.__wbindgen_export, wasm.__wbindgen_export2);
337
- const len0 = WASM_VECTOR_LEN;
338
- const ret = wasm.subscribeCreateSession(addHeapObject(session_key_guid), ptr0, len0);
339
- return takeObject(ret);
252
+
253
+ function takeObject(idx) {
254
+ const ret = getObject(idx);
255
+ dropObject(idx);
256
+ return ret;
340
257
  }
341
258
 
342
- /**
343
- * @param {Signer} signer
344
- * @returns {JsFelt}
345
- */
346
- export function signerToGuid(signer) {
347
- try {
348
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
349
- wasm.signerToGuid(retptr, addHeapObject(signer));
350
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
351
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
352
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
353
- if (r2) {
354
- throw takeObject(r1);
355
- }
356
- return takeObject(r0);
357
- } finally {
358
- wasm.__wbindgen_add_to_stack_pointer(16);
259
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
260
+ cachedTextDecoder.decode();
261
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
262
+ let numBytesDecoded = 0;
263
+ function decodeText(ptr, len) {
264
+ numBytesDecoded += len;
265
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
266
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
267
+ cachedTextDecoder.decode();
268
+ numBytesDecoded = len;
359
269
  }
270
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
360
271
  }
361
272
 
362
- function __wasm_bindgen_func_elem_8823(arg0, arg1, arg2) {
363
- wasm.__wasm_bindgen_func_elem_8823(arg0, arg1, addHeapObject(arg2));
273
+ const cachedTextEncoder = new TextEncoder();
274
+
275
+ if (!('encodeInto' in cachedTextEncoder)) {
276
+ cachedTextEncoder.encodeInto = function (arg, view) {
277
+ const buf = cachedTextEncoder.encode(arg);
278
+ view.set(buf);
279
+ return {
280
+ read: arg.length,
281
+ written: buf.length
282
+ };
283
+ }
364
284
  }
365
285
 
366
- function __wasm_bindgen_func_elem_8679(arg0, arg1) {
367
- wasm.__wasm_bindgen_func_elem_8679(arg0, arg1);
286
+ let WASM_VECTOR_LEN = 0;
287
+
288
+ function __wasm_bindgen_func_elem_8857(arg0, arg1, arg2) {
289
+ wasm.__wasm_bindgen_func_elem_8857(arg0, arg1, addHeapObject(arg2));
368
290
  }
369
291
 
370
- function __wasm_bindgen_func_elem_3186(arg0, arg1, arg2) {
371
- wasm.__wasm_bindgen_func_elem_3186(arg0, arg1, addHeapObject(arg2));
292
+ function __wasm_bindgen_func_elem_3187(arg0, arg1, arg2) {
293
+ wasm.__wasm_bindgen_func_elem_3187(arg0, arg1, addHeapObject(arg2));
372
294
  }
373
295
 
374
- function __wasm_bindgen_func_elem_10951(arg0, arg1, arg2, arg3) {
375
- wasm.__wasm_bindgen_func_elem_10951(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
296
+ function __wasm_bindgen_func_elem_8709(arg0, arg1) {
297
+ wasm.__wasm_bindgen_func_elem_8709(arg0, arg1);
376
298
  }
377
299
 
378
- /**
379
- * @enum {1 | 20 | 24 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 40 | 41 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 10 | 64 | 65 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146}
380
- */
381
- export const ErrorCode = Object.freeze({
382
- StarknetFailedToReceiveTransaction: 1, "1": "StarknetFailedToReceiveTransaction",
383
- StarknetContractNotFound: 20, "20": "StarknetContractNotFound",
384
- StarknetBlockNotFound: 24, "24": "StarknetBlockNotFound",
385
- StarknetInvalidTransactionIndex: 27, "27": "StarknetInvalidTransactionIndex",
386
- StarknetClassHashNotFound: 28, "28": "StarknetClassHashNotFound",
387
- StarknetTransactionHashNotFound: 29, "29": "StarknetTransactionHashNotFound",
388
- StarknetPageSizeTooBig: 31, "31": "StarknetPageSizeTooBig",
389
- StarknetNoBlocks: 32, "32": "StarknetNoBlocks",
390
- StarknetInvalidContinuationToken: 33, "33": "StarknetInvalidContinuationToken",
391
- StarknetTooManyKeysInFilter: 34, "34": "StarknetTooManyKeysInFilter",
392
- StarknetContractError: 40, "40": "StarknetContractError",
393
- StarknetTransactionExecutionError: 41, "41": "StarknetTransactionExecutionError",
394
- StarknetClassAlreadyDeclared: 51, "51": "StarknetClassAlreadyDeclared",
395
- StarknetInvalidTransactionNonce: 52, "52": "StarknetInvalidTransactionNonce",
396
- StarknetInsufficientMaxFee: 53, "53": "StarknetInsufficientMaxFee",
397
- StarknetInsufficientAccountBalance: 54, "54": "StarknetInsufficientAccountBalance",
398
- StarknetValidationFailure: 55, "55": "StarknetValidationFailure",
399
- StarknetCompilationFailed: 56, "56": "StarknetCompilationFailed",
400
- StarknetContractClassSizeIsTooLarge: 57, "57": "StarknetContractClassSizeIsTooLarge",
401
- StarknetNonAccount: 58, "58": "StarknetNonAccount",
402
- StarknetDuplicateTx: 59, "59": "StarknetDuplicateTx",
403
- StarknetCompiledClassHashMismatch: 60, "60": "StarknetCompiledClassHashMismatch",
404
- StarknetUnsupportedTxVersion: 61, "61": "StarknetUnsupportedTxVersion",
405
- StarknetUnsupportedContractClassVersion: 62, "62": "StarknetUnsupportedContractClassVersion",
406
- StarknetUnexpectedError: 63, "63": "StarknetUnexpectedError",
407
- StarknetNoTraceAvailable: 10, "10": "StarknetNoTraceAvailable",
408
- StarknetReplacementTransactionUnderpriced: 64, "64": "StarknetReplacementTransactionUnderpriced",
409
- StarknetFeeBelowMinimum: 65, "65": "StarknetFeeBelowMinimum",
410
- SignError: 101, "101": "SignError",
411
- StorageError: 102, "102": "StorageError",
412
- AccountFactoryError: 103, "103": "AccountFactoryError",
413
- PaymasterExecutionTimeNotReached: 104, "104": "PaymasterExecutionTimeNotReached",
414
- PaymasterExecutionTimePassed: 105, "105": "PaymasterExecutionTimePassed",
415
- PaymasterInvalidCaller: 106, "106": "PaymasterInvalidCaller",
416
- PaymasterRateLimitExceeded: 107, "107": "PaymasterRateLimitExceeded",
417
- PaymasterNotSupported: 108, "108": "PaymasterNotSupported",
418
- PaymasterHttp: 109, "109": "PaymasterHttp",
419
- PaymasterExcecution: 110, "110": "PaymasterExcecution",
420
- PaymasterSerialization: 111, "111": "PaymasterSerialization",
421
- CartridgeControllerNotDeployed: 112, "112": "CartridgeControllerNotDeployed",
422
- InsufficientBalance: 113, "113": "InsufficientBalance",
423
- OriginError: 114, "114": "OriginError",
424
- EncodingError: 115, "115": "EncodingError",
425
- SerdeWasmBindgenError: 116, "116": "SerdeWasmBindgenError",
426
- CairoSerdeError: 117, "117": "CairoSerdeError",
427
- CairoShortStringToFeltError: 118, "118": "CairoShortStringToFeltError",
428
- DeviceCreateCredential: 119, "119": "DeviceCreateCredential",
429
- DeviceGetAssertion: 120, "120": "DeviceGetAssertion",
430
- DeviceBadAssertion: 121, "121": "DeviceBadAssertion",
431
- DeviceChannel: 122, "122": "DeviceChannel",
432
- DeviceOrigin: 123, "123": "DeviceOrigin",
433
- AccountSigning: 124, "124": "AccountSigning",
434
- AccountProvider: 125, "125": "AccountProvider",
435
- AccountClassHashCalculation: 126, "126": "AccountClassHashCalculation",
436
- AccountFeeOutOfRange: 128, "128": "AccountFeeOutOfRange",
437
- ProviderRateLimited: 129, "129": "ProviderRateLimited",
438
- ProviderArrayLengthMismatch: 130, "130": "ProviderArrayLengthMismatch",
439
- ProviderOther: 131, "131": "ProviderOther",
440
- SessionAlreadyRegistered: 132, "132": "SessionAlreadyRegistered",
441
- UrlParseError: 133, "133": "UrlParseError",
442
- Base64DecodeError: 134, "134": "Base64DecodeError",
443
- CoseError: 135, "135": "CoseError",
444
- PolicyChainIdMismatch: 136, "136": "PolicyChainIdMismatch",
445
- InvalidOwner: 137, "137": "InvalidOwner",
446
- GasPriceTooHigh: 138, "138": "GasPriceTooHigh",
447
- TransactionTimeout: 139, "139": "TransactionTimeout",
448
- ConversionError: 140, "140": "ConversionError",
449
- InvalidChainId: 141, "141": "InvalidChainId",
450
- SessionRefreshRequired: 142, "142": "SessionRefreshRequired",
451
- ManualExecutionRequired: 143, "143": "ManualExecutionRequired",
452
- ForbiddenEntrypoint: 144, "144": "ForbiddenEntrypoint",
453
- GasAmountTooHigh: 145, "145": "GasAmountTooHigh",
454
- ApproveExecutionRequired: 146, "146": "ApproveExecutionRequired",
455
- });
300
+ function __wasm_bindgen_func_elem_10966(arg0, arg1, arg2, arg3) {
301
+ wasm.__wasm_bindgen_func_elem_10966(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
302
+ }
456
303
 
457
304
  const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
458
305
 
@@ -464,8 +311,39 @@ const CartridgeAccountFinalization = (typeof FinalizationRegistry === 'undefined
464
311
  ? { register: () => {}, unregister: () => {} }
465
312
  : new FinalizationRegistry(ptr => wasm.__wbg_cartridgeaccount_free(ptr >>> 0, 1));
466
313
 
467
- export class CartridgeAccount {
314
+ const CartridgeAccountMetaFinalization = (typeof FinalizationRegistry === 'undefined')
315
+ ? { register: () => {}, unregister: () => {} }
316
+ : new FinalizationRegistry(ptr => wasm.__wbg_cartridgeaccountmeta_free(ptr >>> 0, 1));
468
317
 
318
+ const CartridgeAccountWithMetaFinalization = (typeof FinalizationRegistry === 'undefined')
319
+ ? { register: () => {}, unregister: () => {} }
320
+ : new FinalizationRegistry(ptr => wasm.__wbg_cartridgeaccountwithmeta_free(ptr >>> 0, 1));
321
+
322
+ const ControllerFactoryFinalization = (typeof FinalizationRegistry === 'undefined')
323
+ ? { register: () => {}, unregister: () => {} }
324
+ : new FinalizationRegistry(ptr => wasm.__wbg_controllerfactory_free(ptr >>> 0, 1));
325
+
326
+ const JsChainConfigFinalization = (typeof FinalizationRegistry === 'undefined')
327
+ ? { register: () => {}, unregister: () => {} }
328
+ : new FinalizationRegistry(ptr => wasm.__wbg_jschainconfig_free(ptr >>> 0, 1));
329
+
330
+ const JsControllerErrorFinalization = (typeof FinalizationRegistry === 'undefined')
331
+ ? { register: () => {}, unregister: () => {} }
332
+ : new FinalizationRegistry(ptr => wasm.__wbg_jscontrollererror_free(ptr >>> 0, 1));
333
+
334
+ const LoginResultFinalization = (typeof FinalizationRegistry === 'undefined')
335
+ ? { register: () => {}, unregister: () => {} }
336
+ : new FinalizationRegistry(ptr => wasm.__wbg_loginresult_free(ptr >>> 0, 1));
337
+
338
+ const MultiChainAccountFinalization = (typeof FinalizationRegistry === 'undefined')
339
+ ? { register: () => {}, unregister: () => {} }
340
+ : new FinalizationRegistry(ptr => wasm.__wbg_multichainaccount_free(ptr >>> 0, 1));
341
+
342
+ const MultiChainAccountMetaFinalization = (typeof FinalizationRegistry === 'undefined')
343
+ ? { register: () => {}, unregister: () => {} }
344
+ : new FinalizationRegistry(ptr => wasm.__wbg_multichainaccountmeta_free(ptr >>> 0, 1));
345
+
346
+ export class CartridgeAccount {
469
347
  static __wrap(ptr) {
470
348
  ptr = ptr >>> 0;
471
349
  const obj = Object.create(CartridgeAccount.prototype);
@@ -473,14 +351,12 @@ export class CartridgeAccount {
473
351
  CartridgeAccountFinalization.register(obj, obj.__wbg_ptr, obj);
474
352
  return obj;
475
353
  }
476
-
477
354
  __destroy_into_raw() {
478
355
  const ptr = this.__wbg_ptr;
479
356
  this.__wbg_ptr = 0;
480
357
  CartridgeAccountFinalization.unregister(this);
481
358
  return ptr;
482
359
  }
483
-
484
360
  free() {
485
361
  const ptr = this.__destroy_into_raw();
486
362
  wasm.__wbg_cartridgeaccount_free(ptr, 0);
@@ -828,12 +704,26 @@ export class CartridgeAccount {
828
704
  const ret = wasm.cartridgeaccount_signExecuteFromOutside(this.__wbg_ptr, ptr0, len0);
829
705
  return takeObject(ret);
830
706
  }
707
+ /**
708
+ * Checks if there are stored policies for a given app_id.
709
+ *
710
+ * # Parameters
711
+ * - `app_id`: The application identifier to check for stored policies
712
+ *
713
+ * # Returns
714
+ * `true` if policies exist for the given app_id, `false` otherwise
715
+ * @param {string} app_id
716
+ * @returns {Promise<boolean>}
717
+ */
718
+ hasPoliciesForAppId(app_id) {
719
+ const ptr0 = passStringToWasm0(app_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
720
+ const len0 = WASM_VECTOR_LEN;
721
+ const ret = wasm.cartridgeaccount_hasPoliciesForAppId(this.__wbg_ptr, ptr0, len0);
722
+ return takeObject(ret);
723
+ }
831
724
  }
832
725
  if (Symbol.dispose) CartridgeAccount.prototype[Symbol.dispose] = CartridgeAccount.prototype.free;
833
726
 
834
- const CartridgeAccountMetaFinalization = (typeof FinalizationRegistry === 'undefined')
835
- ? { register: () => {}, unregister: () => {} }
836
- : new FinalizationRegistry(ptr => wasm.__wbg_cartridgeaccountmeta_free(ptr >>> 0, 1));
837
727
  /**
838
728
  * A type for accessing fixed attributes of `CartridgeAccount`.
839
729
  *
@@ -848,7 +738,6 @@ const CartridgeAccountMetaFinalization = (typeof FinalizationRegistry === 'undef
848
738
  * be needed.
849
739
  */
850
740
  export class CartridgeAccountMeta {
851
-
852
741
  static __wrap(ptr) {
853
742
  ptr = ptr >>> 0;
854
743
  const obj = Object.create(CartridgeAccountMeta.prototype);
@@ -856,14 +745,12 @@ export class CartridgeAccountMeta {
856
745
  CartridgeAccountMetaFinalization.register(obj, obj.__wbg_ptr, obj);
857
746
  return obj;
858
747
  }
859
-
860
748
  __destroy_into_raw() {
861
749
  const ptr = this.__wbg_ptr;
862
750
  this.__wbg_ptr = 0;
863
751
  CartridgeAccountMetaFinalization.unregister(this);
864
752
  return ptr;
865
753
  }
866
-
867
754
  free() {
868
755
  const ptr = this.__destroy_into_raw();
869
756
  wasm.__wbg_cartridgeaccountmeta_free(ptr, 0);
@@ -980,9 +867,6 @@ export class CartridgeAccountMeta {
980
867
  }
981
868
  if (Symbol.dispose) CartridgeAccountMeta.prototype[Symbol.dispose] = CartridgeAccountMeta.prototype.free;
982
869
 
983
- const CartridgeAccountWithMetaFinalization = (typeof FinalizationRegistry === 'undefined')
984
- ? { register: () => {}, unregister: () => {} }
985
- : new FinalizationRegistry(ptr => wasm.__wbg_cartridgeaccountwithmeta_free(ptr >>> 0, 1));
986
870
  /**
987
871
  * A type used as the return type for constructing `CartridgeAccount` to provide an extra,
988
872
  * separately borrowable `meta` field for synchronously accessing fixed fields.
@@ -991,7 +875,6 @@ const CartridgeAccountWithMetaFinalization = (typeof FinalizationRegistry === 'u
991
875
  * don't implement `IntoWasmAbi` which is needed for crossing JS-WASM boundary.
992
876
  */
993
877
  export class CartridgeAccountWithMeta {
994
-
995
878
  static __wrap(ptr) {
996
879
  ptr = ptr >>> 0;
997
880
  const obj = Object.create(CartridgeAccountWithMeta.prototype);
@@ -999,14 +882,12 @@ export class CartridgeAccountWithMeta {
999
882
  CartridgeAccountWithMetaFinalization.register(obj, obj.__wbg_ptr, obj);
1000
883
  return obj;
1001
884
  }
1002
-
1003
885
  __destroy_into_raw() {
1004
886
  const ptr = this.__wbg_ptr;
1005
887
  this.__wbg_ptr = 0;
1006
888
  CartridgeAccountWithMetaFinalization.unregister(this);
1007
889
  return ptr;
1008
890
  }
1009
-
1010
891
  free() {
1011
892
  const ptr = this.__destroy_into_raw();
1012
893
  wasm.__wbg_cartridgeaccountwithmeta_free(ptr, 0);
@@ -1029,19 +910,13 @@ export class CartridgeAccountWithMeta {
1029
910
  }
1030
911
  if (Symbol.dispose) CartridgeAccountWithMeta.prototype[Symbol.dispose] = CartridgeAccountWithMeta.prototype.free;
1031
912
 
1032
- const ControllerFactoryFinalization = (typeof FinalizationRegistry === 'undefined')
1033
- ? { register: () => {}, unregister: () => {} }
1034
- : new FinalizationRegistry(ptr => wasm.__wbg_controllerfactory_free(ptr >>> 0, 1));
1035
-
1036
913
  export class ControllerFactory {
1037
-
1038
914
  __destroy_into_raw() {
1039
915
  const ptr = this.__wbg_ptr;
1040
916
  this.__wbg_ptr = 0;
1041
917
  ControllerFactoryFinalization.unregister(this);
1042
918
  return ptr;
1043
919
  }
1044
-
1045
920
  free() {
1046
921
  const ptr = this.__destroy_into_raw();
1047
922
  wasm.__wbg_controllerfactory_free(ptr, 0);
@@ -1130,28 +1005,101 @@ export class ControllerFactory {
1130
1005
  }
1131
1006
  if (Symbol.dispose) ControllerFactory.prototype[Symbol.dispose] = ControllerFactory.prototype.free;
1132
1007
 
1133
- const JsChainConfigFinalization = (typeof FinalizationRegistry === 'undefined')
1134
- ? { register: () => {}, unregister: () => {} }
1135
- : new FinalizationRegistry(ptr => wasm.__wbg_jschainconfig_free(ptr >>> 0, 1));
1008
+ /**
1009
+ * @enum {1 | 20 | 24 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 40 | 41 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 10 | 64 | 65 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146}
1010
+ */
1011
+ export const ErrorCode = Object.freeze({
1012
+ StarknetFailedToReceiveTransaction: 1, "1": "StarknetFailedToReceiveTransaction",
1013
+ StarknetContractNotFound: 20, "20": "StarknetContractNotFound",
1014
+ StarknetBlockNotFound: 24, "24": "StarknetBlockNotFound",
1015
+ StarknetInvalidTransactionIndex: 27, "27": "StarknetInvalidTransactionIndex",
1016
+ StarknetClassHashNotFound: 28, "28": "StarknetClassHashNotFound",
1017
+ StarknetTransactionHashNotFound: 29, "29": "StarknetTransactionHashNotFound",
1018
+ StarknetPageSizeTooBig: 31, "31": "StarknetPageSizeTooBig",
1019
+ StarknetNoBlocks: 32, "32": "StarknetNoBlocks",
1020
+ StarknetInvalidContinuationToken: 33, "33": "StarknetInvalidContinuationToken",
1021
+ StarknetTooManyKeysInFilter: 34, "34": "StarknetTooManyKeysInFilter",
1022
+ StarknetContractError: 40, "40": "StarknetContractError",
1023
+ StarknetTransactionExecutionError: 41, "41": "StarknetTransactionExecutionError",
1024
+ StarknetClassAlreadyDeclared: 51, "51": "StarknetClassAlreadyDeclared",
1025
+ StarknetInvalidTransactionNonce: 52, "52": "StarknetInvalidTransactionNonce",
1026
+ StarknetInsufficientMaxFee: 53, "53": "StarknetInsufficientMaxFee",
1027
+ StarknetInsufficientAccountBalance: 54, "54": "StarknetInsufficientAccountBalance",
1028
+ StarknetValidationFailure: 55, "55": "StarknetValidationFailure",
1029
+ StarknetCompilationFailed: 56, "56": "StarknetCompilationFailed",
1030
+ StarknetContractClassSizeIsTooLarge: 57, "57": "StarknetContractClassSizeIsTooLarge",
1031
+ StarknetNonAccount: 58, "58": "StarknetNonAccount",
1032
+ StarknetDuplicateTx: 59, "59": "StarknetDuplicateTx",
1033
+ StarknetCompiledClassHashMismatch: 60, "60": "StarknetCompiledClassHashMismatch",
1034
+ StarknetUnsupportedTxVersion: 61, "61": "StarknetUnsupportedTxVersion",
1035
+ StarknetUnsupportedContractClassVersion: 62, "62": "StarknetUnsupportedContractClassVersion",
1036
+ StarknetUnexpectedError: 63, "63": "StarknetUnexpectedError",
1037
+ StarknetNoTraceAvailable: 10, "10": "StarknetNoTraceAvailable",
1038
+ StarknetReplacementTransactionUnderpriced: 64, "64": "StarknetReplacementTransactionUnderpriced",
1039
+ StarknetFeeBelowMinimum: 65, "65": "StarknetFeeBelowMinimum",
1040
+ SignError: 101, "101": "SignError",
1041
+ StorageError: 102, "102": "StorageError",
1042
+ AccountFactoryError: 103, "103": "AccountFactoryError",
1043
+ PaymasterExecutionTimeNotReached: 104, "104": "PaymasterExecutionTimeNotReached",
1044
+ PaymasterExecutionTimePassed: 105, "105": "PaymasterExecutionTimePassed",
1045
+ PaymasterInvalidCaller: 106, "106": "PaymasterInvalidCaller",
1046
+ PaymasterRateLimitExceeded: 107, "107": "PaymasterRateLimitExceeded",
1047
+ PaymasterNotSupported: 108, "108": "PaymasterNotSupported",
1048
+ PaymasterHttp: 109, "109": "PaymasterHttp",
1049
+ PaymasterExcecution: 110, "110": "PaymasterExcecution",
1050
+ PaymasterSerialization: 111, "111": "PaymasterSerialization",
1051
+ CartridgeControllerNotDeployed: 112, "112": "CartridgeControllerNotDeployed",
1052
+ InsufficientBalance: 113, "113": "InsufficientBalance",
1053
+ OriginError: 114, "114": "OriginError",
1054
+ EncodingError: 115, "115": "EncodingError",
1055
+ SerdeWasmBindgenError: 116, "116": "SerdeWasmBindgenError",
1056
+ CairoSerdeError: 117, "117": "CairoSerdeError",
1057
+ CairoShortStringToFeltError: 118, "118": "CairoShortStringToFeltError",
1058
+ DeviceCreateCredential: 119, "119": "DeviceCreateCredential",
1059
+ DeviceGetAssertion: 120, "120": "DeviceGetAssertion",
1060
+ DeviceBadAssertion: 121, "121": "DeviceBadAssertion",
1061
+ DeviceChannel: 122, "122": "DeviceChannel",
1062
+ DeviceOrigin: 123, "123": "DeviceOrigin",
1063
+ AccountSigning: 124, "124": "AccountSigning",
1064
+ AccountProvider: 125, "125": "AccountProvider",
1065
+ AccountClassHashCalculation: 126, "126": "AccountClassHashCalculation",
1066
+ AccountFeeOutOfRange: 128, "128": "AccountFeeOutOfRange",
1067
+ ProviderRateLimited: 129, "129": "ProviderRateLimited",
1068
+ ProviderArrayLengthMismatch: 130, "130": "ProviderArrayLengthMismatch",
1069
+ ProviderOther: 131, "131": "ProviderOther",
1070
+ SessionAlreadyRegistered: 132, "132": "SessionAlreadyRegistered",
1071
+ UrlParseError: 133, "133": "UrlParseError",
1072
+ Base64DecodeError: 134, "134": "Base64DecodeError",
1073
+ CoseError: 135, "135": "CoseError",
1074
+ PolicyChainIdMismatch: 136, "136": "PolicyChainIdMismatch",
1075
+ InvalidOwner: 137, "137": "InvalidOwner",
1076
+ GasPriceTooHigh: 138, "138": "GasPriceTooHigh",
1077
+ TransactionTimeout: 139, "139": "TransactionTimeout",
1078
+ ConversionError: 140, "140": "ConversionError",
1079
+ InvalidChainId: 141, "141": "InvalidChainId",
1080
+ SessionRefreshRequired: 142, "142": "SessionRefreshRequired",
1081
+ ManualExecutionRequired: 143, "143": "ManualExecutionRequired",
1082
+ ForbiddenEntrypoint: 144, "144": "ForbiddenEntrypoint",
1083
+ GasAmountTooHigh: 145, "145": "GasAmountTooHigh",
1084
+ ApproveExecutionRequired: 146, "146": "ApproveExecutionRequired",
1085
+ });
1086
+
1136
1087
  /**
1137
1088
  * JavaScript-friendly chain configuration
1138
1089
  */
1139
1090
  export class JsChainConfig {
1140
-
1141
1091
  static __unwrap(jsValue) {
1142
1092
  if (!(jsValue instanceof JsChainConfig)) {
1143
1093
  return 0;
1144
1094
  }
1145
1095
  return jsValue.__destroy_into_raw();
1146
1096
  }
1147
-
1148
1097
  __destroy_into_raw() {
1149
1098
  const ptr = this.__wbg_ptr;
1150
1099
  this.__wbg_ptr = 0;
1151
1100
  JsChainConfigFinalization.unregister(this);
1152
1101
  return ptr;
1153
1102
  }
1154
-
1155
1103
  free() {
1156
1104
  const ptr = this.__destroy_into_raw();
1157
1105
  wasm.__wbg_jschainconfig_free(ptr, 0);
@@ -1213,12 +1161,7 @@ export class JsChainConfig {
1213
1161
  }
1214
1162
  if (Symbol.dispose) JsChainConfig.prototype[Symbol.dispose] = JsChainConfig.prototype.free;
1215
1163
 
1216
- const JsControllerErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1217
- ? { register: () => {}, unregister: () => {} }
1218
- : new FinalizationRegistry(ptr => wasm.__wbg_jscontrollererror_free(ptr >>> 0, 1));
1219
-
1220
1164
  export class JsControllerError {
1221
-
1222
1165
  static __wrap(ptr) {
1223
1166
  ptr = ptr >>> 0;
1224
1167
  const obj = Object.create(JsControllerError.prototype);
@@ -1226,14 +1169,12 @@ export class JsControllerError {
1226
1169
  JsControllerErrorFinalization.register(obj, obj.__wbg_ptr, obj);
1227
1170
  return obj;
1228
1171
  }
1229
-
1230
1172
  __destroy_into_raw() {
1231
1173
  const ptr = this.__wbg_ptr;
1232
1174
  this.__wbg_ptr = 0;
1233
1175
  JsControllerErrorFinalization.unregister(this);
1234
1176
  return ptr;
1235
1177
  }
1236
-
1237
1178
  free() {
1238
1179
  const ptr = this.__destroy_into_raw();
1239
1180
  wasm.__wbg_jscontrollererror_free(ptr, 0);
@@ -1308,12 +1249,7 @@ export class JsControllerError {
1308
1249
  }
1309
1250
  if (Symbol.dispose) JsControllerError.prototype[Symbol.dispose] = JsControllerError.prototype.free;
1310
1251
 
1311
- const LoginResultFinalization = (typeof FinalizationRegistry === 'undefined')
1312
- ? { register: () => {}, unregister: () => {} }
1313
- : new FinalizationRegistry(ptr => wasm.__wbg_loginresult_free(ptr >>> 0, 1));
1314
-
1315
1252
  export class LoginResult {
1316
-
1317
1253
  static __wrap(ptr) {
1318
1254
  ptr = ptr >>> 0;
1319
1255
  const obj = Object.create(LoginResult.prototype);
@@ -1321,14 +1257,12 @@ export class LoginResult {
1321
1257
  LoginResultFinalization.register(obj, obj.__wbg_ptr, obj);
1322
1258
  return obj;
1323
1259
  }
1324
-
1325
1260
  __destroy_into_raw() {
1326
1261
  const ptr = this.__wbg_ptr;
1327
1262
  this.__wbg_ptr = 0;
1328
1263
  LoginResultFinalization.unregister(this);
1329
1264
  return ptr;
1330
1265
  }
1331
-
1332
1266
  free() {
1333
1267
  const ptr = this.__destroy_into_raw();
1334
1268
  wasm.__wbg_loginresult_free(ptr, 0);
@@ -1344,14 +1278,10 @@ export class LoginResult {
1344
1278
  }
1345
1279
  if (Symbol.dispose) LoginResult.prototype[Symbol.dispose] = LoginResult.prototype.free;
1346
1280
 
1347
- const MultiChainAccountFinalization = (typeof FinalizationRegistry === 'undefined')
1348
- ? { register: () => {}, unregister: () => {} }
1349
- : new FinalizationRegistry(ptr => wasm.__wbg_multichainaccount_free(ptr >>> 0, 1));
1350
1281
  /**
1351
1282
  * WASM bindings for MultiChainController
1352
1283
  */
1353
1284
  export class MultiChainAccount {
1354
-
1355
1285
  static __wrap(ptr) {
1356
1286
  ptr = ptr >>> 0;
1357
1287
  const obj = Object.create(MultiChainAccount.prototype);
@@ -1359,14 +1289,12 @@ export class MultiChainAccount {
1359
1289
  MultiChainAccountFinalization.register(obj, obj.__wbg_ptr, obj);
1360
1290
  return obj;
1361
1291
  }
1362
-
1363
1292
  __destroy_into_raw() {
1364
1293
  const ptr = this.__wbg_ptr;
1365
1294
  this.__wbg_ptr = 0;
1366
1295
  MultiChainAccountFinalization.unregister(this);
1367
1296
  return ptr;
1368
1297
  }
1369
-
1370
1298
  free() {
1371
1299
  const ptr = this.__destroy_into_raw();
1372
1300
  wasm.__wbg_multichainaccount_free(ptr, 0);
@@ -1431,21 +1359,16 @@ export class MultiChainAccount {
1431
1359
  }
1432
1360
  if (Symbol.dispose) MultiChainAccount.prototype[Symbol.dispose] = MultiChainAccount.prototype.free;
1433
1361
 
1434
- const MultiChainAccountMetaFinalization = (typeof FinalizationRegistry === 'undefined')
1435
- ? { register: () => {}, unregister: () => {} }
1436
- : new FinalizationRegistry(ptr => wasm.__wbg_multichainaccountmeta_free(ptr >>> 0, 1));
1437
1362
  /**
1438
1363
  * Metadata for displaying multi-chain information
1439
1364
  */
1440
1365
  export class MultiChainAccountMeta {
1441
-
1442
1366
  __destroy_into_raw() {
1443
1367
  const ptr = this.__wbg_ptr;
1444
1368
  this.__wbg_ptr = 0;
1445
1369
  MultiChainAccountMetaFinalization.unregister(this);
1446
1370
  return ptr;
1447
1371
  }
1448
-
1449
1372
  free() {
1450
1373
  const ptr = this.__destroy_into_raw();
1451
1374
  wasm.__wbg_multichainaccountmeta_free(ptr, 0);
@@ -1488,7 +1411,75 @@ export class MultiChainAccountMeta {
1488
1411
  }
1489
1412
  if (Symbol.dispose) MultiChainAccountMeta.prototype[Symbol.dispose] = MultiChainAccountMeta.prototype.free;
1490
1413
 
1491
- export function __wbg_Error_e83987f665cf5504(arg0, arg1) {
1414
+ /**
1415
+ * Computes the Starknet contract address for a controller account without needing a full instance.
1416
+ *
1417
+ * # Arguments
1418
+ *
1419
+ * * `class_hash` - The class hash of the account contract (JsFelt).
1420
+ * * `owner` - The owner configuration for the account.
1421
+ * * `salt` - The salt used for address calculation (JsFelt).
1422
+ *
1423
+ * # Returns
1424
+ *
1425
+ * The computed Starknet contract address as a `JsFelt`.
1426
+ * @param {JsFelt} class_hash
1427
+ * @param {Owner} owner
1428
+ * @param {JsFelt} salt
1429
+ * @returns {JsFelt}
1430
+ */
1431
+ export function computeAccountAddress(class_hash, owner, salt) {
1432
+ try {
1433
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1434
+ wasm.computeAccountAddress(retptr, addHeapObject(class_hash), addHeapObject(owner), addHeapObject(salt));
1435
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1436
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1437
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1438
+ if (r2) {
1439
+ throw takeObject(r1);
1440
+ }
1441
+ return takeObject(r0);
1442
+ } finally {
1443
+ wasm.__wbindgen_add_to_stack_pointer(16);
1444
+ }
1445
+ }
1446
+
1447
+ /**
1448
+ * @param {Signer} signer
1449
+ * @returns {JsFelt}
1450
+ */
1451
+ export function signerToGuid(signer) {
1452
+ try {
1453
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1454
+ wasm.signerToGuid(retptr, addHeapObject(signer));
1455
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1456
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1457
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1458
+ if (r2) {
1459
+ throw takeObject(r1);
1460
+ }
1461
+ return takeObject(r0);
1462
+ } finally {
1463
+ wasm.__wbindgen_add_to_stack_pointer(16);
1464
+ }
1465
+ }
1466
+
1467
+ /**
1468
+ * Subscribes to the creation of a session for a given controller, session_key_guid and cartridge api url.
1469
+ * The goal of this function is to know from any place when the register session flow has been completed, and to
1470
+ * get the authorization.
1471
+ * @param {JsFelt} session_key_guid
1472
+ * @param {string} cartridge_api_url
1473
+ * @returns {Promise<JsSubscribeSessionResult>}
1474
+ */
1475
+ export function subscribeCreateSession(session_key_guid, cartridge_api_url) {
1476
+ const ptr0 = passStringToWasm0(cartridge_api_url, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1477
+ const len0 = WASM_VECTOR_LEN;
1478
+ const ret = wasm.subscribeCreateSession(addHeapObject(session_key_guid), ptr0, len0);
1479
+ return takeObject(ret);
1480
+ }
1481
+
1482
+ export function __wbg_Error_52673b7de5a0ca89(arg0, arg1) {
1492
1483
  const ret = Error(getStringFromWasm0(arg0, arg1));
1493
1484
  return addHeapObject(ret);
1494
1485
  };
@@ -1501,13 +1492,13 @@ export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
1501
1492
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1502
1493
  };
1503
1494
 
1504
- export function __wbg___wbindgen_boolean_get_6d5a1ee65bab5f68(arg0) {
1495
+ export function __wbg___wbindgen_boolean_get_dea25b33882b895b(arg0) {
1505
1496
  const v = getObject(arg0);
1506
1497
  const ret = typeof(v) === 'boolean' ? v : undefined;
1507
1498
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
1508
1499
  };
1509
1500
 
1510
- export function __wbg___wbindgen_debug_string_df47ffb5e35e6763(arg0, arg1) {
1501
+ export function __wbg___wbindgen_debug_string_adfb662ae34724b6(arg0, arg1) {
1511
1502
  const ret = debugString(getObject(arg1));
1512
1503
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1513
1504
  const len1 = WASM_VECTOR_LEN;
@@ -1515,45 +1506,45 @@ export function __wbg___wbindgen_debug_string_df47ffb5e35e6763(arg0, arg1) {
1515
1506
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1516
1507
  };
1517
1508
 
1518
- export function __wbg___wbindgen_in_bb933bd9e1b3bc0f(arg0, arg1) {
1509
+ export function __wbg___wbindgen_in_0d3e1e8f0c669317(arg0, arg1) {
1519
1510
  const ret = getObject(arg0) in getObject(arg1);
1520
1511
  return ret;
1521
1512
  };
1522
1513
 
1523
- export function __wbg___wbindgen_is_function_ee8a6c5833c90377(arg0) {
1514
+ export function __wbg___wbindgen_is_function_8d400b8b1af978cd(arg0) {
1524
1515
  const ret = typeof(getObject(arg0)) === 'function';
1525
1516
  return ret;
1526
1517
  };
1527
1518
 
1528
- export function __wbg___wbindgen_is_object_c818261d21f283a4(arg0) {
1519
+ export function __wbg___wbindgen_is_object_ce774f3490692386(arg0) {
1529
1520
  const val = getObject(arg0);
1530
1521
  const ret = typeof(val) === 'object' && val !== null;
1531
1522
  return ret;
1532
1523
  };
1533
1524
 
1534
- export function __wbg___wbindgen_is_string_fbb76cb2940daafd(arg0) {
1525
+ export function __wbg___wbindgen_is_string_704ef9c8fc131030(arg0) {
1535
1526
  const ret = typeof(getObject(arg0)) === 'string';
1536
1527
  return ret;
1537
1528
  };
1538
1529
 
1539
- export function __wbg___wbindgen_is_undefined_2d472862bd29a478(arg0) {
1530
+ export function __wbg___wbindgen_is_undefined_f6b95eab589e0269(arg0) {
1540
1531
  const ret = getObject(arg0) === undefined;
1541
1532
  return ret;
1542
1533
  };
1543
1534
 
1544
- export function __wbg___wbindgen_jsval_loose_eq_b664b38a2f582147(arg0, arg1) {
1535
+ export function __wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d(arg0, arg1) {
1545
1536
  const ret = getObject(arg0) == getObject(arg1);
1546
1537
  return ret;
1547
1538
  };
1548
1539
 
1549
- export function __wbg___wbindgen_number_get_a20bf9b85341449d(arg0, arg1) {
1540
+ export function __wbg___wbindgen_number_get_9619185a74197f95(arg0, arg1) {
1550
1541
  const obj = getObject(arg1);
1551
1542
  const ret = typeof(obj) === 'number' ? obj : undefined;
1552
1543
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1553
1544
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1554
1545
  };
1555
1546
 
1556
- export function __wbg___wbindgen_string_get_e4f06c90489ad01b(arg0, arg1) {
1547
+ export function __wbg___wbindgen_string_get_a2a31e16edf96e42(arg0, arg1) {
1557
1548
  const obj = getObject(arg1);
1558
1549
  const ret = typeof(obj) === 'string' ? obj : undefined;
1559
1550
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
@@ -1562,41 +1553,41 @@ export function __wbg___wbindgen_string_get_e4f06c90489ad01b(arg0, arg1) {
1562
1553
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1563
1554
  };
1564
1555
 
1565
- export function __wbg___wbindgen_throw_b855445ff6a94295(arg0, arg1) {
1556
+ export function __wbg___wbindgen_throw_dd24417ed36fc46e(arg0, arg1) {
1566
1557
  throw new Error(getStringFromWasm0(arg0, arg1));
1567
1558
  };
1568
1559
 
1569
- export function __wbg__wbg_cb_unref_2454a539ea5790d9(arg0) {
1560
+ export function __wbg__wbg_cb_unref_87dfb5aaa0cbcea7(arg0) {
1570
1561
  getObject(arg0)._wbg_cb_unref();
1571
1562
  };
1572
1563
 
1573
- export function __wbg_abort_28ad55c5825b004d(arg0, arg1) {
1574
- getObject(arg0).abort(getObject(arg1));
1564
+ export function __wbg_abort_07646c894ebbf2bd(arg0) {
1565
+ getObject(arg0).abort();
1575
1566
  };
1576
1567
 
1577
- export function __wbg_abort_e7eb059f72f9ed0c(arg0) {
1578
- getObject(arg0).abort();
1568
+ export function __wbg_abort_399ecbcfd6ef3c8e(arg0, arg1) {
1569
+ getObject(arg0).abort(getObject(arg1));
1579
1570
  };
1580
1571
 
1581
- export function __wbg_addEventListener_7a418931447b2eae() { return handleError(function (arg0, arg1, arg2, arg3) {
1572
+ export function __wbg_addEventListener_6a82629b3d430a48() { return handleError(function (arg0, arg1, arg2, arg3) {
1582
1573
  getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
1583
1574
  }, arguments) };
1584
1575
 
1585
- export function __wbg_append_b577eb3a177bc0fa() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1576
+ export function __wbg_append_c5cbdf46455cc776() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1586
1577
  getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1587
1578
  }, arguments) };
1588
1579
 
1589
- export function __wbg_arrayBuffer_b375eccb84b4ddf3() { return handleError(function (arg0) {
1580
+ export function __wbg_arrayBuffer_c04af4fce566092d() { return handleError(function (arg0) {
1590
1581
  const ret = getObject(arg0).arrayBuffer();
1591
1582
  return addHeapObject(ret);
1592
1583
  }, arguments) };
1593
1584
 
1594
- export function __wbg_call_525440f72fbfc0ea() { return handleError(function (arg0, arg1, arg2) {
1585
+ export function __wbg_call_3020136f7a2d6e44() { return handleError(function (arg0, arg1, arg2) {
1595
1586
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
1596
1587
  return addHeapObject(ret);
1597
1588
  }, arguments) };
1598
1589
 
1599
- export function __wbg_call_e762c39fa8ea36bf() { return handleError(function (arg0, arg1) {
1590
+ export function __wbg_call_abb4ff46ce38be40() { return handleError(function (arg0, arg1) {
1600
1591
  const ret = getObject(arg0).call(getObject(arg1));
1601
1592
  return addHeapObject(ret);
1602
1593
  }, arguments) };
@@ -1611,21 +1602,21 @@ export function __wbg_cartridgeaccountwithmeta_new(arg0) {
1611
1602
  return addHeapObject(ret);
1612
1603
  };
1613
1604
 
1614
- export function __wbg_clearTimeout_7a42b49784aea641(arg0) {
1605
+ export function __wbg_clearTimeout_b716ecb44bea14ed(arg0) {
1615
1606
  const ret = clearTimeout(takeObject(arg0));
1616
1607
  return addHeapObject(ret);
1617
1608
  };
1618
1609
 
1619
- export function __wbg_clear_cb2a4a548aeda3df() { return handleError(function (arg0) {
1610
+ export function __wbg_clear_9fc28ed354d59d5e() { return handleError(function (arg0) {
1620
1611
  getObject(arg0).clear();
1621
1612
  }, arguments) };
1622
1613
 
1623
- export function __wbg_create_00dd406d2e274297() { return handleError(function (arg0, arg1) {
1614
+ export function __wbg_create_07d71296a0909e61() { return handleError(function (arg0, arg1) {
1624
1615
  const ret = getObject(arg0).create(getObject(arg1));
1625
1616
  return addHeapObject(ret);
1626
1617
  }, arguments) };
1627
1618
 
1628
- export function __wbg_credentials_8cadf6cea6a4f922(arg0) {
1619
+ export function __wbg_credentials_36e0572b476d4883(arg0) {
1629
1620
  const ret = getObject(arg0).credentials;
1630
1621
  return addHeapObject(ret);
1631
1622
  };
@@ -1635,41 +1626,41 @@ export function __wbg_crypto_574e78ad8b13b65f(arg0) {
1635
1626
  return addHeapObject(ret);
1636
1627
  };
1637
1628
 
1638
- export function __wbg_data_ee4306d069f24f2d(arg0) {
1629
+ export function __wbg_data_8bf4ae669a78a688(arg0) {
1639
1630
  const ret = getObject(arg0).data;
1640
1631
  return addHeapObject(ret);
1641
1632
  };
1642
1633
 
1643
- export function __wbg_done_2042aa2670fb1db1(arg0) {
1634
+ export function __wbg_done_62ea16af4ce34b24(arg0) {
1644
1635
  const ret = getObject(arg0).done;
1645
1636
  return ret;
1646
1637
  };
1647
1638
 
1648
- export function __wbg_error_a7f8fbb0523dae15(arg0) {
1639
+ export function __wbg_error_7bc7d576a6aaf855(arg0) {
1649
1640
  console.error(getObject(arg0));
1650
1641
  };
1651
1642
 
1652
- export function __wbg_fetch_74a3e84ebd2c9a0e(arg0) {
1643
+ export function __wbg_fetch_7fb7602a1bf647ec(arg0) {
1653
1644
  const ret = fetch(getObject(arg0));
1654
1645
  return addHeapObject(ret);
1655
1646
  };
1656
1647
 
1657
- export function __wbg_fetch_f1856afdb49415d1(arg0) {
1658
- const ret = fetch(getObject(arg0));
1648
+ export function __wbg_fetch_90447c28cc0b095e(arg0, arg1) {
1649
+ const ret = getObject(arg0).fetch(getObject(arg1));
1659
1650
  return addHeapObject(ret);
1660
1651
  };
1661
1652
 
1662
- export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
1663
- const ret = getObject(arg0).fetch(getObject(arg1));
1653
+ export function __wbg_fetch_f1856afdb49415d1(arg0) {
1654
+ const ret = fetch(getObject(arg0));
1664
1655
  return addHeapObject(ret);
1665
1656
  };
1666
1657
 
1667
- export function __wbg_getClientExtensionResults_3fbb568c5f7347cf(arg0) {
1658
+ export function __wbg_getClientExtensionResults_8668622b21a5eef7(arg0) {
1668
1659
  const ret = getObject(arg0).getClientExtensionResults();
1669
1660
  return addHeapObject(ret);
1670
1661
  };
1671
1662
 
1672
- export function __wbg_getItem_89f57d6acc51a876() { return handleError(function (arg0, arg1, arg2, arg3) {
1663
+ export function __wbg_getItem_1340bfc9a10d5991() { return handleError(function (arg0, arg1, arg2, arg3) {
1673
1664
  const ret = getObject(arg1).getItem(getStringFromWasm0(arg2, arg3));
1674
1665
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1675
1666
  var len1 = WASM_VECTOR_LEN;
@@ -1681,17 +1672,17 @@ export function __wbg_getRandomValues_b8f5dbd5f3995a9e() { return handleError(fu
1681
1672
  getObject(arg0).getRandomValues(getObject(arg1));
1682
1673
  }, arguments) };
1683
1674
 
1684
- export function __wbg_getTime_14776bfb48a1bff9(arg0) {
1675
+ export function __wbg_getTime_ad1e9878a735af08(arg0) {
1685
1676
  const ret = getObject(arg0).getTime();
1686
1677
  return ret;
1687
1678
  };
1688
1679
 
1689
- export function __wbg_get_de97927282f5fc02() { return handleError(function (arg0, arg1) {
1680
+ export function __wbg_get_29726a9b608aea28() { return handleError(function (arg0, arg1) {
1690
1681
  const ret = getObject(arg0).get(getObject(arg1));
1691
1682
  return addHeapObject(ret);
1692
1683
  }, arguments) };
1693
1684
 
1694
- export function __wbg_get_efcb449f58ec27c2() { return handleError(function (arg0, arg1) {
1685
+ export function __wbg_get_af9dab7e9603ea93() { return handleError(function (arg0, arg1) {
1695
1686
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
1696
1687
  return addHeapObject(ret);
1697
1688
  }, arguments) };
@@ -1701,17 +1692,17 @@ export function __wbg_get_with_ref_key_1dc361bd10053bfe(arg0, arg1) {
1701
1692
  return addHeapObject(ret);
1702
1693
  };
1703
1694
 
1704
- export function __wbg_has_787fafc980c3ccdb() { return handleError(function (arg0, arg1) {
1695
+ export function __wbg_has_0e670569d65d3a45() { return handleError(function (arg0, arg1) {
1705
1696
  const ret = Reflect.has(getObject(arg0), getObject(arg1));
1706
1697
  return ret;
1707
1698
  }, arguments) };
1708
1699
 
1709
- export function __wbg_headers_b87d7eaba61c3278(arg0) {
1700
+ export function __wbg_headers_654c30e1bcccc552(arg0) {
1710
1701
  const ret = getObject(arg0).headers;
1711
1702
  return addHeapObject(ret);
1712
1703
  };
1713
1704
 
1714
- export function __wbg_instanceof_ArrayBuffer_70beb1189ca63b38(arg0) {
1705
+ export function __wbg_instanceof_ArrayBuffer_f3320d2419cd0355(arg0) {
1715
1706
  let result;
1716
1707
  try {
1717
1708
  result = getObject(arg0) instanceof ArrayBuffer;
@@ -1722,7 +1713,7 @@ export function __wbg_instanceof_ArrayBuffer_70beb1189ca63b38(arg0) {
1722
1713
  return ret;
1723
1714
  };
1724
1715
 
1725
- export function __wbg_instanceof_Object_10bb762262230c68(arg0) {
1716
+ export function __wbg_instanceof_Object_577e21051f7bcb79(arg0) {
1726
1717
  let result;
1727
1718
  try {
1728
1719
  result = getObject(arg0) instanceof Object;
@@ -1733,7 +1724,7 @@ export function __wbg_instanceof_Object_10bb762262230c68(arg0) {
1733
1724
  return ret;
1734
1725
  };
1735
1726
 
1736
- export function __wbg_instanceof_Response_f4f3e87e07f3135c(arg0) {
1727
+ export function __wbg_instanceof_Response_cd74d1c2ac92cb0b(arg0) {
1737
1728
  let result;
1738
1729
  try {
1739
1730
  result = getObject(arg0) instanceof Response;
@@ -1744,7 +1735,7 @@ export function __wbg_instanceof_Response_f4f3e87e07f3135c(arg0) {
1744
1735
  return ret;
1745
1736
  };
1746
1737
 
1747
- export function __wbg_instanceof_Uint8Array_20c8e73002f7af98(arg0) {
1738
+ export function __wbg_instanceof_Uint8Array_da54ccc9d3e09434(arg0) {
1748
1739
  let result;
1749
1740
  try {
1750
1741
  result = getObject(arg0) instanceof Uint8Array;
@@ -1755,7 +1746,7 @@ export function __wbg_instanceof_Uint8Array_20c8e73002f7af98(arg0) {
1755
1746
  return ret;
1756
1747
  };
1757
1748
 
1758
- export function __wbg_instanceof_Window_4846dbb3de56c84c(arg0) {
1749
+ export function __wbg_instanceof_Window_b5cf7783caa68180(arg0) {
1759
1750
  let result;
1760
1751
  try {
1761
1752
  result = getObject(arg0) instanceof Window;
@@ -1766,7 +1757,7 @@ export function __wbg_instanceof_Window_4846dbb3de56c84c(arg0) {
1766
1757
  return ret;
1767
1758
  };
1768
1759
 
1769
- export function __wbg_instanceof_WorkerGlobalScope_e31f49b6d33fcadd(arg0) {
1760
+ export function __wbg_instanceof_WorkerGlobalScope_9a3411db21c65a54(arg0) {
1770
1761
  let result;
1771
1762
  try {
1772
1763
  result = getObject(arg0) instanceof WorkerGlobalScope;
@@ -1777,13 +1768,13 @@ export function __wbg_instanceof_WorkerGlobalScope_e31f49b6d33fcadd(arg0) {
1777
1768
  return ret;
1778
1769
  };
1779
1770
 
1780
- export function __wbg_iterator_e5822695327a3c39() {
1771
+ export function __wbg_iterator_27b7c8b35ab3e86b() {
1781
1772
  const ret = Symbol.iterator;
1782
1773
  return addHeapObject(ret);
1783
1774
  };
1784
1775
 
1785
1776
  export function __wbg_jschainconfig_unwrap(arg0) {
1786
- const ret = JsChainConfig.__unwrap(takeObject(arg0));
1777
+ const ret = JsChainConfig.__unwrap(getObject(arg0));
1787
1778
  return ret;
1788
1779
  };
1789
1780
 
@@ -1792,22 +1783,22 @@ export function __wbg_jscontrollererror_new(arg0) {
1792
1783
  return addHeapObject(ret);
1793
1784
  };
1794
1785
 
1795
- export function __wbg_length_69bca3cb64fc8748(arg0) {
1786
+ export function __wbg_length_22ac23eaec9d8053(arg0) {
1796
1787
  const ret = getObject(arg0).length;
1797
1788
  return ret;
1798
1789
  };
1799
1790
 
1800
- export function __wbg_localStorage_3034501cd2b3da3f() { return handleError(function (arg0) {
1791
+ export function __wbg_localStorage_e7a9e9fee8fc608d() { return handleError(function (arg0) {
1801
1792
  const ret = getObject(arg0).localStorage;
1802
1793
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1803
1794
  }, arguments) };
1804
1795
 
1805
- export function __wbg_location_ef1665506d996dd9(arg0) {
1796
+ export function __wbg_location_962e75c1c1b3ebed(arg0) {
1806
1797
  const ret = getObject(arg0).location;
1807
1798
  return addHeapObject(ret);
1808
1799
  };
1809
1800
 
1810
- export function __wbg_log_8cec76766b8c0e33(arg0) {
1801
+ export function __wbg_log_1d990106d99dacb7(arg0) {
1811
1802
  console.log(getObject(arg0));
1812
1803
  };
1813
1804
 
@@ -1826,39 +1817,59 @@ export function __wbg_multichainaccount_new(arg0) {
1826
1817
  return addHeapObject(ret);
1827
1818
  };
1828
1819
 
1829
- export function __wbg_navigator_971384882e8ea23a(arg0) {
1820
+ export function __wbg_navigator_b49edef831236138(arg0) {
1830
1821
  const ret = getObject(arg0).navigator;
1831
1822
  return addHeapObject(ret);
1832
1823
  };
1833
1824
 
1834
- export function __wbg_new_0_f9740686d739025c() {
1825
+ export function __wbg_new_0_23cedd11d9b40c9d() {
1835
1826
  const ret = new Date();
1836
1827
  return addHeapObject(ret);
1837
1828
  };
1838
1829
 
1839
- export function __wbg_new_1acc0b6eea89d040() {
1830
+ export function __wbg_new_1ba21ce319a06297() {
1840
1831
  const ret = new Object();
1841
1832
  return addHeapObject(ret);
1842
1833
  };
1843
1834
 
1844
- export function __wbg_new_2531773dac38ebb3() { return handleError(function () {
1845
- const ret = new AbortController();
1835
+ export function __wbg_new_25f239778d6112b9() {
1836
+ const ret = new Array();
1846
1837
  return addHeapObject(ret);
1847
- }, arguments) };
1838
+ };
1848
1839
 
1849
1840
  export function __wbg_new_2658d63118834d8e() {
1850
1841
  const ret = new Mutex();
1851
1842
  return addHeapObject(ret);
1852
1843
  };
1853
1844
 
1854
- export function __wbg_new_3c3d849046688a66(arg0, arg1) {
1845
+ export function __wbg_new_3c79b3bb1b32b7d3() { return handleError(function () {
1846
+ const ret = new Headers();
1847
+ return addHeapObject(ret);
1848
+ }, arguments) };
1849
+
1850
+ export function __wbg_new_6421f6084cc5bc5a(arg0) {
1851
+ const ret = new Uint8Array(getObject(arg0));
1852
+ return addHeapObject(ret);
1853
+ };
1854
+
1855
+ export function __wbg_new_881a222c65f168fc() { return handleError(function () {
1856
+ const ret = new AbortController();
1857
+ return addHeapObject(ret);
1858
+ }, arguments) };
1859
+
1860
+ export function __wbg_new_b546ae120718850e() {
1861
+ const ret = new Map();
1862
+ return addHeapObject(ret);
1863
+ };
1864
+
1865
+ export function __wbg_new_ff12d2b041fb48f1(arg0, arg1) {
1855
1866
  try {
1856
1867
  var state0 = {a: arg0, b: arg1};
1857
1868
  var cb0 = (arg0, arg1) => {
1858
1869
  const a = state0.a;
1859
1870
  state0.a = 0;
1860
1871
  try {
1861
- return __wasm_bindgen_func_elem_10951(a, state0.b, arg0, arg1);
1872
+ return __wasm_bindgen_func_elem_10966(a, state0.b, arg0, arg1);
1862
1873
  } finally {
1863
1874
  state0.a = a;
1864
1875
  }
@@ -1870,62 +1881,42 @@ export function __wbg_new_3c3d849046688a66(arg0, arg1) {
1870
1881
  }
1871
1882
  };
1872
1883
 
1873
- export function __wbg_new_5a79be3ab53b8aa5(arg0) {
1874
- const ret = new Uint8Array(getObject(arg0));
1875
- return addHeapObject(ret);
1876
- };
1877
-
1878
- export function __wbg_new_68651c719dcda04e() {
1879
- const ret = new Map();
1880
- return addHeapObject(ret);
1881
- };
1882
-
1883
- export function __wbg_new_9edf9838a2def39c() { return handleError(function () {
1884
- const ret = new Headers();
1885
- return addHeapObject(ret);
1886
- }, arguments) };
1887
-
1888
- export function __wbg_new_e17d9f43105b08be() {
1889
- const ret = new Array();
1890
- return addHeapObject(ret);
1891
- };
1892
-
1893
- export function __wbg_new_from_slice_92f4d78ca282a2d2(arg0, arg1) {
1884
+ export function __wbg_new_from_slice_f9c22b9153b26992(arg0, arg1) {
1894
1885
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1895
1886
  return addHeapObject(ret);
1896
1887
  };
1897
1888
 
1898
- export function __wbg_new_no_args_ee98eee5275000a4(arg0, arg1) {
1889
+ export function __wbg_new_no_args_cb138f77cf6151ee(arg0, arg1) {
1899
1890
  const ret = new Function(getStringFromWasm0(arg0, arg1));
1900
1891
  return addHeapObject(ret);
1901
1892
  };
1902
1893
 
1903
- export function __wbg_new_with_length_01aa0dc35aa13543(arg0) {
1894
+ export function __wbg_new_with_length_aa5eaf41d35235e5(arg0) {
1904
1895
  const ret = new Uint8Array(arg0 >>> 0);
1905
1896
  return addHeapObject(ret);
1906
1897
  };
1907
1898
 
1908
- export function __wbg_new_with_str_and_init_0ae7728b6ec367b1() { return handleError(function (arg0, arg1, arg2) {
1899
+ export function __wbg_new_with_str_and_init_c5748f76f5108934() { return handleError(function (arg0, arg1, arg2) {
1909
1900
  const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
1910
1901
  return addHeapObject(ret);
1911
1902
  }, arguments) };
1912
1903
 
1913
- export function __wbg_next_020810e0ae8ebcb0() { return handleError(function (arg0) {
1914
- const ret = getObject(arg0).next();
1915
- return addHeapObject(ret);
1916
- }, arguments) };
1917
-
1918
- export function __wbg_next_2c826fe5dfec6b6a(arg0) {
1904
+ export function __wbg_next_138a17bbf04e926c(arg0) {
1919
1905
  const ret = getObject(arg0).next;
1920
1906
  return addHeapObject(ret);
1921
1907
  };
1922
1908
 
1909
+ export function __wbg_next_3cfe5c0fe2a4cc53() { return handleError(function (arg0) {
1910
+ const ret = getObject(arg0).next();
1911
+ return addHeapObject(ret);
1912
+ }, arguments) };
1913
+
1923
1914
  export function __wbg_node_905d3e251edff8a2(arg0) {
1924
1915
  const ret = getObject(arg0).node;
1925
1916
  return addHeapObject(ret);
1926
1917
  };
1927
1918
 
1928
- export function __wbg_now_793306c526e2e3b6() {
1919
+ export function __wbg_now_69d776cd24f5215b() {
1929
1920
  const ret = Date.now();
1930
1921
  return ret;
1931
1922
  };
@@ -1935,28 +1926,28 @@ export function __wbg_obtain_a9626b3b96e6dc2c(arg0) {
1935
1926
  return addHeapObject(ret);
1936
1927
  };
1937
1928
 
1938
- export function __wbg_open_fb2ffe46992a06d3() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1929
+ export function __wbg_open_1611d5d1a9d8cf79() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1939
1930
  const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), getStringFromWasm0(arg5, arg6));
1940
1931
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1941
1932
  }, arguments) };
1942
1933
 
1943
- export function __wbg_origin_2b5e7986f349f4f3() { return handleError(function (arg0, arg1) {
1934
+ export function __wbg_origin_4ab782e7fd21eede(arg0, arg1) {
1944
1935
  const ret = getObject(arg1).origin;
1945
1936
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1946
1937
  const len1 = WASM_VECTOR_LEN;
1947
1938
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1948
1939
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1949
- }, arguments) };
1940
+ };
1950
1941
 
1951
- export function __wbg_origin_fe3e49d24e97a343(arg0, arg1) {
1942
+ export function __wbg_origin_c4ac149104b9ebad() { return handleError(function (arg0, arg1) {
1952
1943
  const ret = getObject(arg1).origin;
1953
1944
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1954
1945
  const len1 = WASM_VECTOR_LEN;
1955
1946
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1956
1947
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1957
- };
1948
+ }, arguments) };
1958
1949
 
1959
- export function __wbg_parse_41503dcdc1dc43f2(arg0, arg1) {
1950
+ export function __wbg_parse_7ff95c018af680b3(arg0, arg1) {
1960
1951
  let deferred0_0;
1961
1952
  let deferred0_1;
1962
1953
  try {
@@ -1974,21 +1965,21 @@ export function __wbg_process_dc0fbacc7c1c06f7(arg0) {
1974
1965
  return addHeapObject(ret);
1975
1966
  };
1976
1967
 
1977
- export function __wbg_prototypesetcall_2a6620b6922694b2(arg0, arg1, arg2) {
1968
+ export function __wbg_prototypesetcall_dfe9b766cdc1f1fd(arg0, arg1, arg2) {
1978
1969
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
1979
1970
  };
1980
1971
 
1981
- export function __wbg_push_df81a39d04db858c(arg0, arg1) {
1972
+ export function __wbg_push_7d9be8f38fc13975(arg0, arg1) {
1982
1973
  const ret = getObject(arg0).push(getObject(arg1));
1983
1974
  return ret;
1984
1975
  };
1985
1976
 
1986
- export function __wbg_queueMicrotask_34d692c25c47d05b(arg0) {
1977
+ export function __wbg_queueMicrotask_9b549dfce8865860(arg0) {
1987
1978
  const ret = getObject(arg0).queueMicrotask;
1988
1979
  return addHeapObject(ret);
1989
1980
  };
1990
1981
 
1991
- export function __wbg_queueMicrotask_9d76cacb20c84d58(arg0) {
1982
+ export function __wbg_queueMicrotask_fca69f5bfad613a5(arg0) {
1992
1983
  queueMicrotask(getObject(arg0));
1993
1984
  };
1994
1985
 
@@ -1996,11 +1987,11 @@ export function __wbg_randomFillSync_ac0988aba3254290() { return handleError(fun
1996
1987
  getObject(arg0).randomFillSync(takeObject(arg1));
1997
1988
  }, arguments) };
1998
1989
 
1999
- export function __wbg_removeEventListener_aa21ef619e743518() { return handleError(function (arg0, arg1, arg2, arg3) {
1990
+ export function __wbg_removeEventListener_565e273024b68b75() { return handleError(function (arg0, arg1, arg2, arg3) {
2000
1991
  getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
2001
1992
  }, arguments) };
2002
1993
 
2003
- export function __wbg_removeItem_0e1e70f1687b5304() { return handleError(function (arg0, arg1, arg2) {
1994
+ export function __wbg_removeItem_33ed1aeb2dc68e96() { return handleError(function (arg0, arg1, arg2) {
2004
1995
  getObject(arg0).removeItem(getStringFromWasm0(arg1, arg2));
2005
1996
  }, arguments) };
2006
1997
 
@@ -2009,30 +2000,30 @@ export function __wbg_require_60cc747a6bc5215a() { return handleError(function (
2009
2000
  return addHeapObject(ret);
2010
2001
  }, arguments) };
2011
2002
 
2012
- export function __wbg_resolve_caf97c30b83f7053(arg0) {
2003
+ export function __wbg_resolve_fd5bfbaa4ce36e1e(arg0) {
2013
2004
  const ret = Promise.resolve(getObject(arg0));
2014
2005
  return addHeapObject(ret);
2015
2006
  };
2016
2007
 
2017
- export function __wbg_setItem_64dfb54d7b20d84c() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2008
+ export function __wbg_setItem_1167ad38996d6426() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2018
2009
  getObject(arg0).setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
2019
2010
  }, arguments) };
2020
2011
 
2021
- export function __wbg_setTimeout_780ac15e3df4c663() { return handleError(function (arg0, arg1, arg2) {
2012
+ export function __wbg_setTimeout_06477c23d31efef1() { return handleError(function (arg0, arg1, arg2) {
2022
2013
  const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
2023
2014
  return ret;
2024
2015
  }, arguments) };
2025
2016
 
2026
- export function __wbg_setTimeout_7bb3429662ab1e70(arg0, arg1) {
2027
- const ret = setTimeout(getObject(arg0), arg1);
2028
- return addHeapObject(ret);
2029
- };
2030
-
2031
- export function __wbg_setTimeout_d673afe2a3649259() { return handleError(function (arg0, arg1, arg2) {
2017
+ export function __wbg_setTimeout_425032fd8860bd1e() { return handleError(function (arg0, arg1, arg2) {
2032
2018
  const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
2033
2019
  return ret;
2034
2020
  }, arguments) };
2035
2021
 
2022
+ export function __wbg_setTimeout_4302406184dcc5be(arg0, arg1) {
2023
+ const ret = setTimeout(getObject(arg0), arg1);
2024
+ return addHeapObject(ret);
2025
+ };
2026
+
2036
2027
  export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
2037
2028
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
2038
2029
  };
@@ -2041,45 +2032,45 @@ export function __wbg_set_3fda3bac07393de4(arg0, arg1, arg2) {
2041
2032
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
2042
2033
  };
2043
2034
 
2044
- export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
2045
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
2046
- return addHeapObject(ret);
2047
- };
2048
-
2049
- export function __wbg_set_body_3c365989753d61f4(arg0, arg1) {
2050
- getObject(arg0).body = getObject(arg1);
2051
- };
2035
+ export function __wbg_set_781438a03c0c3c81() { return handleError(function (arg0, arg1, arg2) {
2036
+ const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
2037
+ return ret;
2038
+ }, arguments) };
2052
2039
 
2053
- export function __wbg_set_c213c871859d6500(arg0, arg1, arg2) {
2040
+ export function __wbg_set_7df433eea03a5c14(arg0, arg1, arg2) {
2054
2041
  getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
2055
2042
  };
2056
2043
 
2057
- export function __wbg_set_c2abbebe8b9ebee1() { return handleError(function (arg0, arg1, arg2) {
2058
- const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
2059
- return ret;
2060
- }, arguments) };
2044
+ export function __wbg_set_body_8e743242d6076a4f(arg0, arg1) {
2045
+ getObject(arg0).body = getObject(arg1);
2046
+ };
2061
2047
 
2062
- export function __wbg_set_cache_2f9deb19b92b81e3(arg0, arg1) {
2048
+ export function __wbg_set_cache_0e437c7c8e838b9b(arg0, arg1) {
2063
2049
  getObject(arg0).cache = __wbindgen_enum_RequestCache[arg1];
2064
2050
  };
2065
2051
 
2066
- export function __wbg_set_credentials_f621cd2d85c0c228(arg0, arg1) {
2052
+ export function __wbg_set_credentials_55ae7c3c106fd5be(arg0, arg1) {
2067
2053
  getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
2068
2054
  };
2069
2055
 
2070
- export function __wbg_set_headers_6926da238cd32ee4(arg0, arg1) {
2056
+ export function __wbg_set_efaaf145b9377369(arg0, arg1, arg2) {
2057
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
2058
+ return addHeapObject(ret);
2059
+ };
2060
+
2061
+ export function __wbg_set_headers_5671cf088e114d2b(arg0, arg1) {
2071
2062
  getObject(arg0).headers = getObject(arg1);
2072
2063
  };
2073
2064
 
2074
- export function __wbg_set_method_c02d8cbbe204ac2d(arg0, arg1, arg2) {
2065
+ export function __wbg_set_method_76c69e41b3570627(arg0, arg1, arg2) {
2075
2066
  getObject(arg0).method = getStringFromWasm0(arg1, arg2);
2076
2067
  };
2077
2068
 
2078
- export function __wbg_set_mode_52ef73cfa79639cb(arg0, arg1) {
2069
+ export function __wbg_set_mode_611016a6818fc690(arg0, arg1) {
2079
2070
  getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
2080
2071
  };
2081
2072
 
2082
- export function __wbg_set_signal_dda2cf7ccb6bee0f(arg0, arg1) {
2073
+ export function __wbg_set_signal_e89be862d0091009(arg0, arg1) {
2083
2074
  getObject(arg0).signal = getObject(arg1);
2084
2075
  };
2085
2076
 
@@ -2101,37 +2092,37 @@ export function __wbg_signMessage_c732ea9d998cac79() { return handleError(functi
2101
2092
  }
2102
2093
  }, arguments) };
2103
2094
 
2104
- export function __wbg_signal_4db5aa055bf9eb9a(arg0) {
2095
+ export function __wbg_signal_3c14fbdc89694b39(arg0) {
2105
2096
  const ret = getObject(arg0).signal;
2106
2097
  return addHeapObject(ret);
2107
2098
  };
2108
2099
 
2109
- export function __wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e() {
2100
+ export function __wbg_static_accessor_GLOBAL_769e6b65d6557335() {
2110
2101
  const ret = typeof global === 'undefined' ? null : global;
2111
2102
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
2112
2103
  };
2113
2104
 
2114
- export function __wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac() {
2105
+ export function __wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1() {
2115
2106
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
2116
2107
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
2117
2108
  };
2118
2109
 
2119
- export function __wbg_static_accessor_SELF_6fdf4b64710cc91b() {
2110
+ export function __wbg_static_accessor_SELF_08f5a74c69739274() {
2120
2111
  const ret = typeof self === 'undefined' ? null : self;
2121
2112
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
2122
2113
  };
2123
2114
 
2124
- export function __wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2() {
2115
+ export function __wbg_static_accessor_WINDOW_a8924b26aa92d024() {
2125
2116
  const ret = typeof window === 'undefined' ? null : window;
2126
2117
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
2127
2118
  };
2128
2119
 
2129
- export function __wbg_status_de7eed5a7a5bfd5d(arg0) {
2120
+ export function __wbg_status_9bfc680efca4bdfd(arg0) {
2130
2121
  const ret = getObject(arg0).status;
2131
2122
  return ret;
2132
2123
  };
2133
2124
 
2134
- export function __wbg_stringify_404baa47f2ce77aa(arg0, arg1) {
2125
+ export function __wbg_stringify_56d3c6664110414f(arg0, arg1) {
2135
2126
  const ret = JSON.stringify(getObject(arg1));
2136
2127
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2137
2128
  var len1 = WASM_VECTOR_LEN;
@@ -2139,32 +2130,32 @@ export function __wbg_stringify_404baa47f2ce77aa(arg0, arg1) {
2139
2130
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2140
2131
  };
2141
2132
 
2142
- export function __wbg_stringify_b5fb28f6465d9c3e() { return handleError(function (arg0) {
2133
+ export function __wbg_stringify_655a6390e1f5eb6b() { return handleError(function (arg0) {
2143
2134
  const ret = JSON.stringify(getObject(arg0));
2144
2135
  return addHeapObject(ret);
2145
2136
  }, arguments) };
2146
2137
 
2147
- export function __wbg_subarray_480600f3d6a9f26c(arg0, arg1, arg2) {
2138
+ export function __wbg_subarray_845f2f5bce7d061a(arg0, arg1, arg2) {
2148
2139
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
2149
2140
  return addHeapObject(ret);
2150
2141
  };
2151
2142
 
2152
- export function __wbg_text_dc33c15c17bdfb52() { return handleError(function (arg0) {
2143
+ export function __wbg_text_51046bb33d257f63() { return handleError(function (arg0) {
2153
2144
  const ret = getObject(arg0).text();
2154
2145
  return addHeapObject(ret);
2155
2146
  }, arguments) };
2156
2147
 
2157
- export function __wbg_then_4f46f6544e6b4a28(arg0, arg1) {
2158
- const ret = getObject(arg0).then(getObject(arg1));
2148
+ export function __wbg_then_429f7caf1026411d(arg0, arg1, arg2) {
2149
+ const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
2159
2150
  return addHeapObject(ret);
2160
2151
  };
2161
2152
 
2162
- export function __wbg_then_70d05cf780a18d77(arg0, arg1, arg2) {
2163
- const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
2153
+ export function __wbg_then_4f95312d68691235(arg0, arg1) {
2154
+ const ret = getObject(arg0).then(getObject(arg1));
2164
2155
  return addHeapObject(ret);
2165
2156
  };
2166
2157
 
2167
- export function __wbg_url_b36d2a5008eb056f(arg0, arg1) {
2158
+ export function __wbg_url_b6d11838a4f95198(arg0, arg1) {
2168
2159
  const ret = getObject(arg1).url;
2169
2160
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2170
2161
  const len1 = WASM_VECTOR_LEN;
@@ -2172,7 +2163,7 @@ export function __wbg_url_b36d2a5008eb056f(arg0, arg1) {
2172
2163
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2173
2164
  };
2174
2165
 
2175
- export function __wbg_userAgent_b20949aa6be940a6() { return handleError(function (arg0, arg1) {
2166
+ export function __wbg_userAgent_e18bc0cc9ad38ec1() { return handleError(function (arg0, arg1) {
2176
2167
  const ret = getObject(arg1).userAgent;
2177
2168
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2178
2169
  const len1 = WASM_VECTOR_LEN;
@@ -2180,7 +2171,7 @@ export function __wbg_userAgent_b20949aa6be940a6() { return handleError(function
2180
2171
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2181
2172
  }, arguments) };
2182
2173
 
2183
- export function __wbg_value_692627309814bb8c(arg0) {
2174
+ export function __wbg_value_57b7b035e117f7ee(arg0) {
2184
2175
  const ret = getObject(arg0).value;
2185
2176
  return addHeapObject(ret);
2186
2177
  };
@@ -2190,6 +2181,12 @@ export function __wbg_versions_c01dfd4722a88165(arg0) {
2190
2181
  return addHeapObject(ret);
2191
2182
  };
2192
2183
 
2184
+ export function __wbindgen_cast_049472464cf157cc(arg0, arg1) {
2185
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 970, function: Function { arguments: [], shim_idx: 971, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2186
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_8700, __wasm_bindgen_func_elem_8709);
2187
+ return addHeapObject(ret);
2188
+ };
2189
+
2193
2190
  export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
2194
2191
  // Cast intrinsic for `Ref(String) -> Externref`.
2195
2192
  const ret = getStringFromWasm0(arg0, arg1);
@@ -2198,13 +2195,13 @@ export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
2198
2195
 
2199
2196
  export function __wbindgen_cast_4082834687a71a5d(arg0, arg1) {
2200
2197
  // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
2201
- const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_225, __wasm_bindgen_func_elem_3186);
2198
+ const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_225, __wasm_bindgen_func_elem_3187);
2202
2199
  return addHeapObject(ret);
2203
2200
  };
2204
2201
 
2205
- export function __wbindgen_cast_4892f1fb8f346ce7(arg0, arg1) {
2206
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1000, function: Function { arguments: [Externref], shim_idx: 1001, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2207
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_8808, __wasm_bindgen_func_elem_8823);
2202
+ export function __wbindgen_cast_74f525bc4433b335(arg0, arg1) {
2203
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1003, function: Function { arguments: [Externref], shim_idx: 1004, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2204
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_8842, __wasm_bindgen_func_elem_8857);
2208
2205
  return addHeapObject(ret);
2209
2206
  };
2210
2207
 
@@ -2226,12 +2223,6 @@ export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
2226
2223
  return addHeapObject(ret);
2227
2224
  };
2228
2225
 
2229
- export function __wbindgen_cast_d92f130ade9da151(arg0, arg1) {
2230
- // Cast intrinsic for `Closure(Closure { dtor_idx: 967, function: Function { arguments: [], shim_idx: 968, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2231
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_8670, __wasm_bindgen_func_elem_8679);
2232
- return addHeapObject(ret);
2233
- };
2234
-
2235
2226
  export function __wbindgen_object_clone_ref(arg0) {
2236
2227
  const ret = getObject(arg0);
2237
2228
  return addHeapObject(ret);
@@ -2240,4 +2231,3 @@ export function __wbindgen_object_clone_ref(arg0) {
2240
2231
  export function __wbindgen_object_drop_ref(arg0) {
2241
2232
  takeObject(arg0);
2242
2233
  };
2243
-