@keyhive/keyhive 0.0.0-alpha.49 → 0.0.0-alpha.50

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.
@@ -1,33 +1,9 @@
1
1
  let wasm;
2
2
 
3
- let cachedUint8ArrayMemory0 = null;
4
-
5
- function getUint8ArrayMemory0() {
6
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
7
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
8
- }
9
- return cachedUint8ArrayMemory0;
10
- }
11
-
12
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
13
-
14
- cachedTextDecoder.decode();
15
-
16
- const MAX_SAFARI_DECODE_BYTES = 2146435072;
17
- let numBytesDecoded = 0;
18
- function decodeText(ptr, len) {
19
- numBytesDecoded += len;
20
- if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
21
- cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
22
- cachedTextDecoder.decode();
23
- numBytesDecoded = len;
24
- }
25
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
26
- }
27
-
28
- function getStringFromWasm0(ptr, len) {
29
- ptr = ptr >>> 0;
30
- return decodeText(ptr, len);
3
+ function addToExternrefTable0(obj) {
4
+ const idx = wasm.__externref_table_alloc();
5
+ wasm.__wbindgen_externrefs.set(idx, obj);
6
+ return idx;
31
7
  }
32
8
 
33
9
  function _assertClass(instance, klass) {
@@ -36,6 +12,10 @@ function _assertClass(instance, klass) {
36
12
  }
37
13
  }
38
14
 
15
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
16
+ ? { register: () => {}, unregister: () => {} }
17
+ : new FinalizationRegistry(state => state.dtor(state.a, state.b));
18
+
39
19
  function debugString(val) {
40
20
  // primitive types
41
21
  const type = typeof val;
@@ -101,62 +81,23 @@ function debugString(val) {
101
81
  return className;
102
82
  }
103
83
 
104
- let WASM_VECTOR_LEN = 0;
105
-
106
- const cachedTextEncoder = new TextEncoder();
107
-
108
- if (!('encodeInto' in cachedTextEncoder)) {
109
- cachedTextEncoder.encodeInto = function (arg, view) {
110
- const buf = cachedTextEncoder.encode(arg);
111
- view.set(buf);
112
- return {
113
- read: arg.length,
114
- written: buf.length
115
- };
84
+ function getArrayJsValueFromWasm0(ptr, len) {
85
+ ptr = ptr >>> 0;
86
+ const mem = getDataViewMemory0();
87
+ const result = [];
88
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
89
+ result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
116
90
  }
91
+ wasm.__externref_drop_slice(ptr, len);
92
+ return result;
117
93
  }
118
94
 
119
- function passStringToWasm0(arg, malloc, realloc) {
120
-
121
- if (realloc === undefined) {
122
- const buf = cachedTextEncoder.encode(arg);
123
- const ptr = malloc(buf.length, 1) >>> 0;
124
- getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
125
- WASM_VECTOR_LEN = buf.length;
126
- return ptr;
127
- }
128
-
129
- let len = arg.length;
130
- let ptr = malloc(len, 1) >>> 0;
131
-
132
- const mem = getUint8ArrayMemory0();
133
-
134
- let offset = 0;
135
-
136
- for (; offset < len; offset++) {
137
- const code = arg.charCodeAt(offset);
138
- if (code > 0x7F) break;
139
- mem[ptr + offset] = code;
140
- }
141
-
142
- if (offset !== len) {
143
- if (offset !== 0) {
144
- arg = arg.slice(offset);
145
- }
146
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
147
- const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
148
- const ret = cachedTextEncoder.encodeInto(arg, view);
149
-
150
- offset += ret.written;
151
- ptr = realloc(ptr, len, offset, 1) >>> 0;
152
- }
153
-
154
- WASM_VECTOR_LEN = offset;
155
- return ptr;
95
+ function getArrayU8FromWasm0(ptr, len) {
96
+ ptr = ptr >>> 0;
97
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
156
98
  }
157
99
 
158
100
  let cachedDataViewMemory0 = null;
159
-
160
101
  function getDataViewMemory0() {
161
102
  if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
162
103
  cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
@@ -164,10 +105,17 @@ function getDataViewMemory0() {
164
105
  return cachedDataViewMemory0;
165
106
  }
166
107
 
167
- function addToExternrefTable0(obj) {
168
- const idx = wasm.__externref_table_alloc();
169
- wasm.__wbindgen_externrefs.set(idx, obj);
170
- return idx;
108
+ function getStringFromWasm0(ptr, len) {
109
+ ptr = ptr >>> 0;
110
+ return decodeText(ptr, len);
111
+ }
112
+
113
+ let cachedUint8ArrayMemory0 = null;
114
+ function getUint8ArrayMemory0() {
115
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
116
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
117
+ }
118
+ return cachedUint8ArrayMemory0;
171
119
  }
172
120
 
173
121
  function handleError(f, args) {
@@ -179,30 +127,10 @@ function handleError(f, args) {
179
127
  }
180
128
  }
181
129
 
182
- function getArrayU8FromWasm0(ptr, len) {
183
- ptr = ptr >>> 0;
184
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
185
- }
186
-
187
130
  function isLikeNone(x) {
188
131
  return x === undefined || x === null;
189
132
  }
190
133
 
191
- function getArrayJsValueFromWasm0(ptr, len) {
192
- ptr = ptr >>> 0;
193
- const mem = getDataViewMemory0();
194
- const result = [];
195
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
196
- result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
197
- }
198
- wasm.__externref_drop_slice(ptr, len);
199
- return result;
200
- }
201
-
202
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
203
- ? { register: () => {}, unregister: () => {} }
204
- : new FinalizationRegistry(state => state.dtor(state.a, state.b));
205
-
206
134
  function makeMutClosure(arg0, arg1, dtor, f) {
207
135
  const state = { a: arg0, b: arg1, cnt: 1, dtor };
208
136
  const real = (...args) => {
@@ -231,12 +159,6 @@ function makeMutClosure(arg0, arg1, dtor, f) {
231
159
  return real;
232
160
  }
233
161
 
234
- function takeFromExternrefTable0(idx) {
235
- const value = wasm.__wbindgen_externrefs.get(idx);
236
- wasm.__externref_table_dealloc(idx);
237
- return value;
238
- }
239
-
240
162
  function passArray8ToWasm0(arg, malloc) {
241
163
  const ptr = malloc(arg.length * 1, 1) >>> 0;
242
164
  getUint8ArrayMemory0().set(arg, ptr / 1);
@@ -253,30 +175,244 @@ function passArrayJsValueToWasm0(array, malloc) {
253
175
  WASM_VECTOR_LEN = array.length;
254
176
  return ptr;
255
177
  }
256
- /**
257
- * Panic hook lets us get better error messages if our Rust code ever panics.
258
- *
259
- * This function needs to be called at least once during initialisation.
260
- * https://rustwasm.github.io/docs/wasm-pack/tutorials/npm-browser-packages/template-deep-dive/src-utils-rs.html#2-what-is-console_error_panic_hook
261
- */
262
- export function setPanicHook() {
263
- wasm.setPanicHook();
178
+
179
+ function passStringToWasm0(arg, malloc, realloc) {
180
+ if (realloc === undefined) {
181
+ const buf = cachedTextEncoder.encode(arg);
182
+ const ptr = malloc(buf.length, 1) >>> 0;
183
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
184
+ WASM_VECTOR_LEN = buf.length;
185
+ return ptr;
186
+ }
187
+
188
+ let len = arg.length;
189
+ let ptr = malloc(len, 1) >>> 0;
190
+
191
+ const mem = getUint8ArrayMemory0();
192
+
193
+ let offset = 0;
194
+
195
+ for (; offset < len; offset++) {
196
+ const code = arg.charCodeAt(offset);
197
+ if (code > 0x7F) break;
198
+ mem[ptr + offset] = code;
199
+ }
200
+ if (offset !== len) {
201
+ if (offset !== 0) {
202
+ arg = arg.slice(offset);
203
+ }
204
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
205
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
206
+ const ret = cachedTextEncoder.encodeInto(arg, view);
207
+
208
+ offset += ret.written;
209
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
210
+ }
211
+
212
+ WASM_VECTOR_LEN = offset;
213
+ return ptr;
214
+ }
215
+
216
+ function takeFromExternrefTable0(idx) {
217
+ const value = wasm.__wbindgen_externrefs.get(idx);
218
+ wasm.__externref_table_dealloc(idx);
219
+ return value;
220
+ }
221
+
222
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
223
+ cachedTextDecoder.decode();
224
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
225
+ let numBytesDecoded = 0;
226
+ function decodeText(ptr, len) {
227
+ numBytesDecoded += len;
228
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
229
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
230
+ cachedTextDecoder.decode();
231
+ numBytesDecoded = len;
232
+ }
233
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
234
+ }
235
+
236
+ const cachedTextEncoder = new TextEncoder();
237
+
238
+ if (!('encodeInto' in cachedTextEncoder)) {
239
+ cachedTextEncoder.encodeInto = function (arg, view) {
240
+ const buf = cachedTextEncoder.encode(arg);
241
+ view.set(buf);
242
+ return {
243
+ read: arg.length,
244
+ written: buf.length
245
+ };
246
+ }
264
247
  }
265
248
 
266
- function wasm_bindgen__convert__closures_____invoke__h270e774e62b586ab(arg0, arg1, arg2) {
267
- wasm.wasm_bindgen__convert__closures_____invoke__h270e774e62b586ab(arg0, arg1, arg2);
249
+ let WASM_VECTOR_LEN = 0;
250
+
251
+ function wasm_bindgen__convert__closures_____invoke__hb8b6941fceac7069(arg0, arg1, arg2) {
252
+ wasm.wasm_bindgen__convert__closures_____invoke__hb8b6941fceac7069(arg0, arg1, arg2);
268
253
  }
269
254
 
270
- function wasm_bindgen__convert__closures_____invoke__h1069d9784c192ccc(arg0, arg1, arg2, arg3) {
271
- wasm.wasm_bindgen__convert__closures_____invoke__h1069d9784c192ccc(arg0, arg1, arg2, arg3);
255
+ function wasm_bindgen__convert__closures_____invoke__h0e2a667a85375385(arg0, arg1, arg2, arg3) {
256
+ wasm.wasm_bindgen__convert__closures_____invoke__h0e2a667a85375385(arg0, arg1, arg2, arg3);
272
257
  }
273
258
 
274
259
  const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
275
260
  ? { register: () => {}, unregister: () => {} }
276
261
  : new FinalizationRegistry(ptr => wasm.__wbg_access_free(ptr >>> 0, 1));
277
262
 
278
- export class Access {
263
+ const AgentFinalization = (typeof FinalizationRegistry === 'undefined')
264
+ ? { register: () => {}, unregister: () => {} }
265
+ : new FinalizationRegistry(ptr => wasm.__wbg_agent_free(ptr >>> 0, 1));
266
+
267
+ const ArchiveFinalization = (typeof FinalizationRegistry === 'undefined')
268
+ ? { register: () => {}, unregister: () => {} }
269
+ : new FinalizationRegistry(ptr => wasm.__wbg_archive_free(ptr >>> 0, 1));
279
270
 
271
+ const CannotParseEd25519SigningKeyFinalization = (typeof FinalizationRegistry === 'undefined')
272
+ ? { register: () => {}, unregister: () => {} }
273
+ : new FinalizationRegistry(ptr => wasm.__wbg_cannotparseed25519signingkey_free(ptr >>> 0, 1));
274
+
275
+ const CannotParseIdentifierFinalization = (typeof FinalizationRegistry === 'undefined')
276
+ ? { register: () => {}, unregister: () => {} }
277
+ : new FinalizationRegistry(ptr => wasm.__wbg_cannotparseidentifier_free(ptr >>> 0, 1));
278
+
279
+ const CapabilityFinalization = (typeof FinalizationRegistry === 'undefined')
280
+ ? { register: () => {}, unregister: () => {} }
281
+ : new FinalizationRegistry(ptr => wasm.__wbg_capability_free(ptr >>> 0, 1));
282
+
283
+ const CgkaOperationFinalization = (typeof FinalizationRegistry === 'undefined')
284
+ ? { register: () => {}, unregister: () => {} }
285
+ : new FinalizationRegistry(ptr => wasm.__wbg_cgkaoperation_free(ptr >>> 0, 1));
286
+
287
+ const ChangeIdFinalization = (typeof FinalizationRegistry === 'undefined')
288
+ ? { register: () => {}, unregister: () => {} }
289
+ : new FinalizationRegistry(ptr => wasm.__wbg_changeid_free(ptr >>> 0, 1));
290
+
291
+ const CiphertextStoreFinalization = (typeof FinalizationRegistry === 'undefined')
292
+ ? { register: () => {}, unregister: () => {} }
293
+ : new FinalizationRegistry(ptr => wasm.__wbg_ciphertextstore_free(ptr >>> 0, 1));
294
+
295
+ const ContactCardFinalization = (typeof FinalizationRegistry === 'undefined')
296
+ ? { register: () => {}, unregister: () => {} }
297
+ : new FinalizationRegistry(ptr => wasm.__wbg_contactcard_free(ptr >>> 0, 1));
298
+
299
+ const DelegationFinalization = (typeof FinalizationRegistry === 'undefined')
300
+ ? { register: () => {}, unregister: () => {} }
301
+ : new FinalizationRegistry(ptr => wasm.__wbg_delegation_free(ptr >>> 0, 1));
302
+
303
+ const DocContentRefsFinalization = (typeof FinalizationRegistry === 'undefined')
304
+ ? { register: () => {}, unregister: () => {} }
305
+ : new FinalizationRegistry(ptr => wasm.__wbg_doccontentrefs_free(ptr >>> 0, 1));
306
+
307
+ const DocumentFinalization = (typeof FinalizationRegistry === 'undefined')
308
+ ? { register: () => {}, unregister: () => {} }
309
+ : new FinalizationRegistry(ptr => wasm.__wbg_document_free(ptr >>> 0, 1));
310
+
311
+ const DocumentIdFinalization = (typeof FinalizationRegistry === 'undefined')
312
+ ? { register: () => {}, unregister: () => {} }
313
+ : new FinalizationRegistry(ptr => wasm.__wbg_documentid_free(ptr >>> 0, 1));
314
+
315
+ const EncryptedFinalization = (typeof FinalizationRegistry === 'undefined')
316
+ ? { register: () => {}, unregister: () => {} }
317
+ : new FinalizationRegistry(ptr => wasm.__wbg_encrypted_free(ptr >>> 0, 1));
318
+
319
+ const EncryptedContentWithUpdateFinalization = (typeof FinalizationRegistry === 'undefined')
320
+ ? { register: () => {}, unregister: () => {} }
321
+ : new FinalizationRegistry(ptr => wasm.__wbg_encryptedcontentwithupdate_free(ptr >>> 0, 1));
322
+
323
+ const EventFinalization = (typeof FinalizationRegistry === 'undefined')
324
+ ? { register: () => {}, unregister: () => {} }
325
+ : new FinalizationRegistry(ptr => wasm.__wbg_event_free(ptr >>> 0, 1));
326
+
327
+ const GenerateWebCryptoErrorFinalization = (typeof FinalizationRegistry === 'undefined')
328
+ ? { register: () => {}, unregister: () => {} }
329
+ : new FinalizationRegistry(ptr => wasm.__wbg_generatewebcryptoerror_free(ptr >>> 0, 1));
330
+
331
+ const GroupFinalization = (typeof FinalizationRegistry === 'undefined')
332
+ ? { register: () => {}, unregister: () => {} }
333
+ : new FinalizationRegistry(ptr => wasm.__wbg_group_free(ptr >>> 0, 1));
334
+
335
+ const GroupIdFinalization = (typeof FinalizationRegistry === 'undefined')
336
+ ? { register: () => {}, unregister: () => {} }
337
+ : new FinalizationRegistry(ptr => wasm.__wbg_groupid_free(ptr >>> 0, 1));
338
+
339
+ const HistoryFinalization = (typeof FinalizationRegistry === 'undefined')
340
+ ? { register: () => {}, unregister: () => {} }
341
+ : new FinalizationRegistry(ptr => wasm.__wbg_history_free(ptr >>> 0, 1));
342
+
343
+ const IdentifierFinalization = (typeof FinalizationRegistry === 'undefined')
344
+ ? { register: () => {}, unregister: () => {} }
345
+ : new FinalizationRegistry(ptr => wasm.__wbg_identifier_free(ptr >>> 0, 1));
346
+
347
+ const IndividualFinalization = (typeof FinalizationRegistry === 'undefined')
348
+ ? { register: () => {}, unregister: () => {} }
349
+ : new FinalizationRegistry(ptr => wasm.__wbg_individual_free(ptr >>> 0, 1));
350
+
351
+ const IndividualIdFinalization = (typeof FinalizationRegistry === 'undefined')
352
+ ? { register: () => {}, unregister: () => {} }
353
+ : new FinalizationRegistry(ptr => wasm.__wbg_individualid_free(ptr >>> 0, 1));
354
+
355
+ const InvocationFinalization = (typeof FinalizationRegistry === 'undefined')
356
+ ? { register: () => {}, unregister: () => {} }
357
+ : new FinalizationRegistry(ptr => wasm.__wbg_invocation_free(ptr >>> 0, 1));
358
+
359
+ const KeyhiveFinalization = (typeof FinalizationRegistry === 'undefined')
360
+ ? { register: () => {}, unregister: () => {} }
361
+ : new FinalizationRegistry(ptr => wasm.__wbg_keyhive_free(ptr >>> 0, 1));
362
+
363
+ const MemberedFinalization = (typeof FinalizationRegistry === 'undefined')
364
+ ? { register: () => {}, unregister: () => {} }
365
+ : new FinalizationRegistry(ptr => wasm.__wbg_membered_free(ptr >>> 0, 1));
366
+
367
+ const MembershipFinalization = (typeof FinalizationRegistry === 'undefined')
368
+ ? { register: () => {}, unregister: () => {} }
369
+ : new FinalizationRegistry(ptr => wasm.__wbg_membership_free(ptr >>> 0, 1));
370
+
371
+ const PeerFinalization = (typeof FinalizationRegistry === 'undefined')
372
+ ? { register: () => {}, unregister: () => {} }
373
+ : new FinalizationRegistry(ptr => wasm.__wbg_peer_free(ptr >>> 0, 1));
374
+
375
+ const RevocationFinalization = (typeof FinalizationRegistry === 'undefined')
376
+ ? { register: () => {}, unregister: () => {} }
377
+ : new FinalizationRegistry(ptr => wasm.__wbg_revocation_free(ptr >>> 0, 1));
378
+
379
+ const ShareKeyFinalization = (typeof FinalizationRegistry === 'undefined')
380
+ ? { register: () => {}, unregister: () => {} }
381
+ : new FinalizationRegistry(ptr => wasm.__wbg_sharekey_free(ptr >>> 0, 1));
382
+
383
+ const SignedFinalization = (typeof FinalizationRegistry === 'undefined')
384
+ ? { register: () => {}, unregister: () => {} }
385
+ : new FinalizationRegistry(ptr => wasm.__wbg_signed_free(ptr >>> 0, 1));
386
+
387
+ const SignedCgkaOperationFinalization = (typeof FinalizationRegistry === 'undefined')
388
+ ? { register: () => {}, unregister: () => {} }
389
+ : new FinalizationRegistry(ptr => wasm.__wbg_signedcgkaoperation_free(ptr >>> 0, 1));
390
+
391
+ const SignedDelegationFinalization = (typeof FinalizationRegistry === 'undefined')
392
+ ? { register: () => {}, unregister: () => {} }
393
+ : new FinalizationRegistry(ptr => wasm.__wbg_signeddelegation_free(ptr >>> 0, 1));
394
+
395
+ const SignedInvocationFinalization = (typeof FinalizationRegistry === 'undefined')
396
+ ? { register: () => {}, unregister: () => {} }
397
+ : new FinalizationRegistry(ptr => wasm.__wbg_signedinvocation_free(ptr >>> 0, 1));
398
+
399
+ const SignedRevocationFinalization = (typeof FinalizationRegistry === 'undefined')
400
+ ? { register: () => {}, unregister: () => {} }
401
+ : new FinalizationRegistry(ptr => wasm.__wbg_signedrevocation_free(ptr >>> 0, 1));
402
+
403
+ const SignerFinalization = (typeof FinalizationRegistry === 'undefined')
404
+ ? { register: () => {}, unregister: () => {} }
405
+ : new FinalizationRegistry(ptr => wasm.__wbg_signer_free(ptr >>> 0, 1));
406
+
407
+ const StatsFinalization = (typeof FinalizationRegistry === 'undefined')
408
+ ? { register: () => {}, unregister: () => {} }
409
+ : new FinalizationRegistry(ptr => wasm.__wbg_stats_free(ptr >>> 0, 1));
410
+
411
+ const SummaryFinalization = (typeof FinalizationRegistry === 'undefined')
412
+ ? { register: () => {}, unregister: () => {} }
413
+ : new FinalizationRegistry(ptr => wasm.__wbg_summary_free(ptr >>> 0, 1));
414
+
415
+ export class Access {
280
416
  static __wrap(ptr) {
281
417
  ptr = ptr >>> 0;
282
418
  const obj = Object.create(Access.prototype);
@@ -284,14 +420,12 @@ export class Access {
284
420
  AccessFinalization.register(obj, obj.__wbg_ptr, obj);
285
421
  return obj;
286
422
  }
287
-
288
423
  __destroy_into_raw() {
289
424
  const ptr = this.__wbg_ptr;
290
425
  this.__wbg_ptr = 0;
291
426
  AccessFinalization.unregister(this);
292
427
  return ptr;
293
428
  }
294
-
295
429
  free() {
296
430
  const ptr = this.__destroy_into_raw();
297
431
  wasm.__wbg_access_free(ptr, 0);
@@ -324,12 +458,7 @@ export class Access {
324
458
  }
325
459
  if (Symbol.dispose) Access.prototype[Symbol.dispose] = Access.prototype.free;
326
460
 
327
- const AgentFinalization = (typeof FinalizationRegistry === 'undefined')
328
- ? { register: () => {}, unregister: () => {} }
329
- : new FinalizationRegistry(ptr => wasm.__wbg_agent_free(ptr >>> 0, 1));
330
-
331
461
  export class Agent {
332
-
333
462
  static __wrap(ptr) {
334
463
  ptr = ptr >>> 0;
335
464
  const obj = Object.create(Agent.prototype);
@@ -337,14 +466,12 @@ export class Agent {
337
466
  AgentFinalization.register(obj, obj.__wbg_ptr, obj);
338
467
  return obj;
339
468
  }
340
-
341
469
  __destroy_into_raw() {
342
470
  const ptr = this.__wbg_ptr;
343
471
  this.__wbg_ptr = 0;
344
472
  AgentFinalization.unregister(this);
345
473
  return ptr;
346
474
  }
347
-
348
475
  free() {
349
476
  const ptr = this.__destroy_into_raw();
350
477
  wasm.__wbg_agent_free(ptr, 0);
@@ -395,12 +522,7 @@ export class Agent {
395
522
  }
396
523
  if (Symbol.dispose) Agent.prototype[Symbol.dispose] = Agent.prototype.free;
397
524
 
398
- const ArchiveFinalization = (typeof FinalizationRegistry === 'undefined')
399
- ? { register: () => {}, unregister: () => {} }
400
- : new FinalizationRegistry(ptr => wasm.__wbg_archive_free(ptr >>> 0, 1));
401
-
402
525
  export class Archive {
403
-
404
526
  static __wrap(ptr) {
405
527
  ptr = ptr >>> 0;
406
528
  const obj = Object.create(Archive.prototype);
@@ -408,14 +530,12 @@ export class Archive {
408
530
  ArchiveFinalization.register(obj, obj.__wbg_ptr, obj);
409
531
  return obj;
410
532
  }
411
-
412
533
  __destroy_into_raw() {
413
534
  const ptr = this.__wbg_ptr;
414
535
  this.__wbg_ptr = 0;
415
536
  ArchiveFinalization.unregister(this);
416
537
  return ptr;
417
538
  }
418
-
419
539
  free() {
420
540
  const ptr = this.__destroy_into_raw();
421
541
  wasm.__wbg_archive_free(ptr, 0);
@@ -462,12 +582,7 @@ export class Archive {
462
582
  }
463
583
  if (Symbol.dispose) Archive.prototype[Symbol.dispose] = Archive.prototype.free;
464
584
 
465
- const CannotParseEd25519SigningKeyFinalization = (typeof FinalizationRegistry === 'undefined')
466
- ? { register: () => {}, unregister: () => {} }
467
- : new FinalizationRegistry(ptr => wasm.__wbg_cannotparseed25519signingkey_free(ptr >>> 0, 1));
468
-
469
585
  export class CannotParseEd25519SigningKey {
470
-
471
586
  static __wrap(ptr) {
472
587
  ptr = ptr >>> 0;
473
588
  const obj = Object.create(CannotParseEd25519SigningKey.prototype);
@@ -475,14 +590,12 @@ export class CannotParseEd25519SigningKey {
475
590
  CannotParseEd25519SigningKeyFinalization.register(obj, obj.__wbg_ptr, obj);
476
591
  return obj;
477
592
  }
478
-
479
593
  __destroy_into_raw() {
480
594
  const ptr = this.__wbg_ptr;
481
595
  this.__wbg_ptr = 0;
482
596
  CannotParseEd25519SigningKeyFinalization.unregister(this);
483
597
  return ptr;
484
598
  }
485
-
486
599
  free() {
487
600
  const ptr = this.__destroy_into_raw();
488
601
  wasm.__wbg_cannotparseed25519signingkey_free(ptr, 0);
@@ -490,12 +603,7 @@ export class CannotParseEd25519SigningKey {
490
603
  }
491
604
  if (Symbol.dispose) CannotParseEd25519SigningKey.prototype[Symbol.dispose] = CannotParseEd25519SigningKey.prototype.free;
492
605
 
493
- const CannotParseIdentifierFinalization = (typeof FinalizationRegistry === 'undefined')
494
- ? { register: () => {}, unregister: () => {} }
495
- : new FinalizationRegistry(ptr => wasm.__wbg_cannotparseidentifier_free(ptr >>> 0, 1));
496
-
497
606
  export class CannotParseIdentifier {
498
-
499
607
  static __wrap(ptr) {
500
608
  ptr = ptr >>> 0;
501
609
  const obj = Object.create(CannotParseIdentifier.prototype);
@@ -503,14 +611,12 @@ export class CannotParseIdentifier {
503
611
  CannotParseIdentifierFinalization.register(obj, obj.__wbg_ptr, obj);
504
612
  return obj;
505
613
  }
506
-
507
614
  __destroy_into_raw() {
508
615
  const ptr = this.__wbg_ptr;
509
616
  this.__wbg_ptr = 0;
510
617
  CannotParseIdentifierFinalization.unregister(this);
511
618
  return ptr;
512
619
  }
513
-
514
620
  free() {
515
621
  const ptr = this.__destroy_into_raw();
516
622
  wasm.__wbg_cannotparseidentifier_free(ptr, 0);
@@ -518,12 +624,7 @@ export class CannotParseIdentifier {
518
624
  }
519
625
  if (Symbol.dispose) CannotParseIdentifier.prototype[Symbol.dispose] = CannotParseIdentifier.prototype.free;
520
626
 
521
- const CapabilityFinalization = (typeof FinalizationRegistry === 'undefined')
522
- ? { register: () => {}, unregister: () => {} }
523
- : new FinalizationRegistry(ptr => wasm.__wbg_capability_free(ptr >>> 0, 1));
524
-
525
627
  export class Capability {
526
-
527
628
  static __wrap(ptr) {
528
629
  ptr = ptr >>> 0;
529
630
  const obj = Object.create(Capability.prototype);
@@ -531,14 +632,12 @@ export class Capability {
531
632
  CapabilityFinalization.register(obj, obj.__wbg_ptr, obj);
532
633
  return obj;
533
634
  }
534
-
535
635
  __destroy_into_raw() {
536
636
  const ptr = this.__wbg_ptr;
537
637
  this.__wbg_ptr = 0;
538
638
  CapabilityFinalization.unregister(this);
539
639
  return ptr;
540
640
  }
541
-
542
641
  free() {
543
642
  const ptr = this.__destroy_into_raw();
544
643
  wasm.__wbg_capability_free(ptr, 0);
@@ -567,12 +666,7 @@ export class Capability {
567
666
  }
568
667
  if (Symbol.dispose) Capability.prototype[Symbol.dispose] = Capability.prototype.free;
569
668
 
570
- const CgkaOperationFinalization = (typeof FinalizationRegistry === 'undefined')
571
- ? { register: () => {}, unregister: () => {} }
572
- : new FinalizationRegistry(ptr => wasm.__wbg_cgkaoperation_free(ptr >>> 0, 1));
573
-
574
669
  export class CgkaOperation {
575
-
576
670
  static __wrap(ptr) {
577
671
  ptr = ptr >>> 0;
578
672
  const obj = Object.create(CgkaOperation.prototype);
@@ -580,14 +674,12 @@ export class CgkaOperation {
580
674
  CgkaOperationFinalization.register(obj, obj.__wbg_ptr, obj);
581
675
  return obj;
582
676
  }
583
-
584
677
  __destroy_into_raw() {
585
678
  const ptr = this.__wbg_ptr;
586
679
  this.__wbg_ptr = 0;
587
680
  CgkaOperationFinalization.unregister(this);
588
681
  return ptr;
589
682
  }
590
-
591
683
  free() {
592
684
  const ptr = this.__destroy_into_raw();
593
685
  wasm.__wbg_cgkaoperation_free(ptr, 0);
@@ -610,12 +702,7 @@ export class CgkaOperation {
610
702
  }
611
703
  if (Symbol.dispose) CgkaOperation.prototype[Symbol.dispose] = CgkaOperation.prototype.free;
612
704
 
613
- const ChangeIdFinalization = (typeof FinalizationRegistry === 'undefined')
614
- ? { register: () => {}, unregister: () => {} }
615
- : new FinalizationRegistry(ptr => wasm.__wbg_changeid_free(ptr >>> 0, 1));
616
-
617
705
  export class ChangeId {
618
-
619
706
  static __wrap(ptr) {
620
707
  ptr = ptr >>> 0;
621
708
  const obj = Object.create(ChangeId.prototype);
@@ -623,21 +710,18 @@ export class ChangeId {
623
710
  ChangeIdFinalization.register(obj, obj.__wbg_ptr, obj);
624
711
  return obj;
625
712
  }
626
-
627
713
  static __unwrap(jsValue) {
628
714
  if (!(jsValue instanceof ChangeId)) {
629
715
  return 0;
630
716
  }
631
717
  return jsValue.__destroy_into_raw();
632
718
  }
633
-
634
719
  __destroy_into_raw() {
635
720
  const ptr = this.__wbg_ptr;
636
721
  this.__wbg_ptr = 0;
637
722
  ChangeIdFinalization.unregister(this);
638
723
  return ptr;
639
724
  }
640
-
641
725
  free() {
642
726
  const ptr = this.__destroy_into_raw();
643
727
  wasm.__wbg_changeid_free(ptr, 0);
@@ -673,12 +757,7 @@ export class ChangeId {
673
757
  }
674
758
  if (Symbol.dispose) ChangeId.prototype[Symbol.dispose] = ChangeId.prototype.free;
675
759
 
676
- const CiphertextStoreFinalization = (typeof FinalizationRegistry === 'undefined')
677
- ? { register: () => {}, unregister: () => {} }
678
- : new FinalizationRegistry(ptr => wasm.__wbg_ciphertextstore_free(ptr >>> 0, 1));
679
-
680
760
  export class CiphertextStore {
681
-
682
761
  static __wrap(ptr) {
683
762
  ptr = ptr >>> 0;
684
763
  const obj = Object.create(CiphertextStore.prototype);
@@ -686,14 +765,12 @@ export class CiphertextStore {
686
765
  CiphertextStoreFinalization.register(obj, obj.__wbg_ptr, obj);
687
766
  return obj;
688
767
  }
689
-
690
768
  __destroy_into_raw() {
691
769
  const ptr = this.__wbg_ptr;
692
770
  this.__wbg_ptr = 0;
693
771
  CiphertextStoreFinalization.unregister(this);
694
772
  return ptr;
695
773
  }
696
-
697
774
  free() {
698
775
  const ptr = this.__destroy_into_raw();
699
776
  wasm.__wbg_ciphertextstore_free(ptr, 0);
@@ -716,12 +793,7 @@ export class CiphertextStore {
716
793
  }
717
794
  if (Symbol.dispose) CiphertextStore.prototype[Symbol.dispose] = CiphertextStore.prototype.free;
718
795
 
719
- const ContactCardFinalization = (typeof FinalizationRegistry === 'undefined')
720
- ? { register: () => {}, unregister: () => {} }
721
- : new FinalizationRegistry(ptr => wasm.__wbg_contactcard_free(ptr >>> 0, 1));
722
-
723
796
  export class ContactCard {
724
-
725
797
  static __wrap(ptr) {
726
798
  ptr = ptr >>> 0;
727
799
  const obj = Object.create(ContactCard.prototype);
@@ -729,14 +801,12 @@ export class ContactCard {
729
801
  ContactCardFinalization.register(obj, obj.__wbg_ptr, obj);
730
802
  return obj;
731
803
  }
732
-
733
804
  __destroy_into_raw() {
734
805
  const ptr = this.__wbg_ptr;
735
806
  this.__wbg_ptr = 0;
736
807
  ContactCardFinalization.unregister(this);
737
808
  return ptr;
738
809
  }
739
-
740
810
  free() {
741
811
  const ptr = this.__destroy_into_raw();
742
812
  wasm.__wbg_contactcard_free(ptr, 0);
@@ -815,12 +885,7 @@ export class ContactCard {
815
885
  }
816
886
  if (Symbol.dispose) ContactCard.prototype[Symbol.dispose] = ContactCard.prototype.free;
817
887
 
818
- const DelegationFinalization = (typeof FinalizationRegistry === 'undefined')
819
- ? { register: () => {}, unregister: () => {} }
820
- : new FinalizationRegistry(ptr => wasm.__wbg_delegation_free(ptr >>> 0, 1));
821
-
822
888
  export class Delegation {
823
-
824
889
  static __wrap(ptr) {
825
890
  ptr = ptr >>> 0;
826
891
  const obj = Object.create(Delegation.prototype);
@@ -828,14 +893,12 @@ export class Delegation {
828
893
  DelegationFinalization.register(obj, obj.__wbg_ptr, obj);
829
894
  return obj;
830
895
  }
831
-
832
896
  __destroy_into_raw() {
833
897
  const ptr = this.__wbg_ptr;
834
898
  this.__wbg_ptr = 0;
835
899
  DelegationFinalization.unregister(this);
836
900
  return ptr;
837
901
  }
838
-
839
902
  free() {
840
903
  const ptr = this.__destroy_into_raw();
841
904
  wasm.__wbg_delegation_free(ptr, 0);
@@ -868,15 +931,10 @@ export class Delegation {
868
931
  const ret = wasm.delegation_delegate(this.__wbg_ptr);
869
932
  return Agent.__wrap(ret);
870
933
  }
871
- }
872
- if (Symbol.dispose) Delegation.prototype[Symbol.dispose] = Delegation.prototype.free;
873
-
874
- const DocContentRefsFinalization = (typeof FinalizationRegistry === 'undefined')
875
- ? { register: () => {}, unregister: () => {} }
876
- : new FinalizationRegistry(ptr => wasm.__wbg_doccontentrefs_free(ptr >>> 0, 1));
934
+ }
935
+ if (Symbol.dispose) Delegation.prototype[Symbol.dispose] = Delegation.prototype.free;
877
936
 
878
937
  export class DocContentRefs {
879
-
880
938
  static __wrap(ptr) {
881
939
  ptr = ptr >>> 0;
882
940
  const obj = Object.create(DocContentRefs.prototype);
@@ -884,14 +942,12 @@ export class DocContentRefs {
884
942
  DocContentRefsFinalization.register(obj, obj.__wbg_ptr, obj);
885
943
  return obj;
886
944
  }
887
-
888
945
  __destroy_into_raw() {
889
946
  const ptr = this.__wbg_ptr;
890
947
  this.__wbg_ptr = 0;
891
948
  DocContentRefsFinalization.unregister(this);
892
949
  return ptr;
893
950
  }
894
-
895
951
  free() {
896
952
  const ptr = this.__destroy_into_raw();
897
953
  wasm.__wbg_doccontentrefs_free(ptr, 0);
@@ -940,12 +996,7 @@ export class DocContentRefs {
940
996
  }
941
997
  if (Symbol.dispose) DocContentRefs.prototype[Symbol.dispose] = DocContentRefs.prototype.free;
942
998
 
943
- const DocumentFinalization = (typeof FinalizationRegistry === 'undefined')
944
- ? { register: () => {}, unregister: () => {} }
945
- : new FinalizationRegistry(ptr => wasm.__wbg_document_free(ptr >>> 0, 1));
946
-
947
999
  export class Document {
948
-
949
1000
  static __wrap(ptr) {
950
1001
  ptr = ptr >>> 0;
951
1002
  const obj = Object.create(Document.prototype);
@@ -953,14 +1004,12 @@ export class Document {
953
1004
  DocumentFinalization.register(obj, obj.__wbg_ptr, obj);
954
1005
  return obj;
955
1006
  }
956
-
957
1007
  __destroy_into_raw() {
958
1008
  const ptr = this.__wbg_ptr;
959
1009
  this.__wbg_ptr = 0;
960
1010
  DocumentFinalization.unregister(this);
961
1011
  return ptr;
962
1012
  }
963
-
964
1013
  free() {
965
1014
  const ptr = this.__destroy_into_raw();
966
1015
  wasm.__wbg_document_free(ptr, 0);
@@ -1011,12 +1060,7 @@ export class Document {
1011
1060
  }
1012
1061
  if (Symbol.dispose) Document.prototype[Symbol.dispose] = Document.prototype.free;
1013
1062
 
1014
- const DocumentIdFinalization = (typeof FinalizationRegistry === 'undefined')
1015
- ? { register: () => {}, unregister: () => {} }
1016
- : new FinalizationRegistry(ptr => wasm.__wbg_documentid_free(ptr >>> 0, 1));
1017
-
1018
1063
  export class DocumentId {
1019
-
1020
1064
  static __wrap(ptr) {
1021
1065
  ptr = ptr >>> 0;
1022
1066
  const obj = Object.create(DocumentId.prototype);
@@ -1024,14 +1068,12 @@ export class DocumentId {
1024
1068
  DocumentIdFinalization.register(obj, obj.__wbg_ptr, obj);
1025
1069
  return obj;
1026
1070
  }
1027
-
1028
1071
  __destroy_into_raw() {
1029
1072
  const ptr = this.__wbg_ptr;
1030
1073
  this.__wbg_ptr = 0;
1031
1074
  DocumentIdFinalization.unregister(this);
1032
1075
  return ptr;
1033
1076
  }
1034
-
1035
1077
  free() {
1036
1078
  const ptr = this.__destroy_into_raw();
1037
1079
  wasm.__wbg_documentid_free(ptr, 0);
@@ -1084,12 +1126,7 @@ export class DocumentId {
1084
1126
  }
1085
1127
  if (Symbol.dispose) DocumentId.prototype[Symbol.dispose] = DocumentId.prototype.free;
1086
1128
 
1087
- const EncryptedFinalization = (typeof FinalizationRegistry === 'undefined')
1088
- ? { register: () => {}, unregister: () => {} }
1089
- : new FinalizationRegistry(ptr => wasm.__wbg_encrypted_free(ptr >>> 0, 1));
1090
-
1091
1129
  export class Encrypted {
1092
-
1093
1130
  static __wrap(ptr) {
1094
1131
  ptr = ptr >>> 0;
1095
1132
  const obj = Object.create(Encrypted.prototype);
@@ -1097,14 +1134,12 @@ export class Encrypted {
1097
1134
  EncryptedFinalization.register(obj, obj.__wbg_ptr, obj);
1098
1135
  return obj;
1099
1136
  }
1100
-
1101
1137
  __destroy_into_raw() {
1102
1138
  const ptr = this.__wbg_ptr;
1103
1139
  this.__wbg_ptr = 0;
1104
1140
  EncryptedFinalization.unregister(this);
1105
1141
  return ptr;
1106
1142
  }
1107
-
1108
1143
  free() {
1109
1144
  const ptr = this.__destroy_into_raw();
1110
1145
  wasm.__wbg_encrypted_free(ptr, 0);
@@ -1166,12 +1201,7 @@ export class Encrypted {
1166
1201
  }
1167
1202
  if (Symbol.dispose) Encrypted.prototype[Symbol.dispose] = Encrypted.prototype.free;
1168
1203
 
1169
- const EncryptedContentWithUpdateFinalization = (typeof FinalizationRegistry === 'undefined')
1170
- ? { register: () => {}, unregister: () => {} }
1171
- : new FinalizationRegistry(ptr => wasm.__wbg_encryptedcontentwithupdate_free(ptr >>> 0, 1));
1172
-
1173
1204
  export class EncryptedContentWithUpdate {
1174
-
1175
1205
  static __wrap(ptr) {
1176
1206
  ptr = ptr >>> 0;
1177
1207
  const obj = Object.create(EncryptedContentWithUpdate.prototype);
@@ -1179,14 +1209,12 @@ export class EncryptedContentWithUpdate {
1179
1209
  EncryptedContentWithUpdateFinalization.register(obj, obj.__wbg_ptr, obj);
1180
1210
  return obj;
1181
1211
  }
1182
-
1183
1212
  __destroy_into_raw() {
1184
1213
  const ptr = this.__wbg_ptr;
1185
1214
  this.__wbg_ptr = 0;
1186
1215
  EncryptedContentWithUpdateFinalization.unregister(this);
1187
1216
  return ptr;
1188
1217
  }
1189
-
1190
1218
  free() {
1191
1219
  const ptr = this.__destroy_into_raw();
1192
1220
  wasm.__wbg_encryptedcontentwithupdate_free(ptr, 0);
@@ -1208,12 +1236,7 @@ export class EncryptedContentWithUpdate {
1208
1236
  }
1209
1237
  if (Symbol.dispose) EncryptedContentWithUpdate.prototype[Symbol.dispose] = EncryptedContentWithUpdate.prototype.free;
1210
1238
 
1211
- const EventFinalization = (typeof FinalizationRegistry === 'undefined')
1212
- ? { register: () => {}, unregister: () => {} }
1213
- : new FinalizationRegistry(ptr => wasm.__wbg_event_free(ptr >>> 0, 1));
1214
-
1215
1239
  export class Event {
1216
-
1217
1240
  static __wrap(ptr) {
1218
1241
  ptr = ptr >>> 0;
1219
1242
  const obj = Object.create(Event.prototype);
@@ -1221,14 +1244,12 @@ export class Event {
1221
1244
  EventFinalization.register(obj, obj.__wbg_ptr, obj);
1222
1245
  return obj;
1223
1246
  }
1224
-
1225
1247
  __destroy_into_raw() {
1226
1248
  const ptr = this.__wbg_ptr;
1227
1249
  this.__wbg_ptr = 0;
1228
1250
  EventFinalization.unregister(this);
1229
1251
  return ptr;
1230
1252
  }
1231
-
1232
1253
  free() {
1233
1254
  const ptr = this.__destroy_into_raw();
1234
1255
  wasm.__wbg_event_free(ptr, 0);
@@ -1293,12 +1314,7 @@ export class Event {
1293
1314
  }
1294
1315
  if (Symbol.dispose) Event.prototype[Symbol.dispose] = Event.prototype.free;
1295
1316
 
1296
- const GenerateWebCryptoErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1297
- ? { register: () => {}, unregister: () => {} }
1298
- : new FinalizationRegistry(ptr => wasm.__wbg_generatewebcryptoerror_free(ptr >>> 0, 1));
1299
-
1300
1317
  export class GenerateWebCryptoError {
1301
-
1302
1318
  static __wrap(ptr) {
1303
1319
  ptr = ptr >>> 0;
1304
1320
  const obj = Object.create(GenerateWebCryptoError.prototype);
@@ -1306,14 +1322,12 @@ export class GenerateWebCryptoError {
1306
1322
  GenerateWebCryptoErrorFinalization.register(obj, obj.__wbg_ptr, obj);
1307
1323
  return obj;
1308
1324
  }
1309
-
1310
1325
  __destroy_into_raw() {
1311
1326
  const ptr = this.__wbg_ptr;
1312
1327
  this.__wbg_ptr = 0;
1313
1328
  GenerateWebCryptoErrorFinalization.unregister(this);
1314
1329
  return ptr;
1315
1330
  }
1316
-
1317
1331
  free() {
1318
1332
  const ptr = this.__destroy_into_raw();
1319
1333
  wasm.__wbg_generatewebcryptoerror_free(ptr, 0);
@@ -1336,12 +1350,7 @@ export class GenerateWebCryptoError {
1336
1350
  }
1337
1351
  if (Symbol.dispose) GenerateWebCryptoError.prototype[Symbol.dispose] = GenerateWebCryptoError.prototype.free;
1338
1352
 
1339
- const GroupFinalization = (typeof FinalizationRegistry === 'undefined')
1340
- ? { register: () => {}, unregister: () => {} }
1341
- : new FinalizationRegistry(ptr => wasm.__wbg_group_free(ptr >>> 0, 1));
1342
-
1343
1353
  export class Group {
1344
-
1345
1354
  static __wrap(ptr) {
1346
1355
  ptr = ptr >>> 0;
1347
1356
  const obj = Object.create(Group.prototype);
@@ -1349,14 +1358,12 @@ export class Group {
1349
1358
  GroupFinalization.register(obj, obj.__wbg_ptr, obj);
1350
1359
  return obj;
1351
1360
  }
1352
-
1353
1361
  __destroy_into_raw() {
1354
1362
  const ptr = this.__wbg_ptr;
1355
1363
  this.__wbg_ptr = 0;
1356
1364
  GroupFinalization.unregister(this);
1357
1365
  return ptr;
1358
1366
  }
1359
-
1360
1367
  free() {
1361
1368
  const ptr = this.__destroy_into_raw();
1362
1369
  wasm.__wbg_group_free(ptr, 0);
@@ -1380,7 +1387,7 @@ export class Group {
1380
1387
  * @returns {Identifier}
1381
1388
  */
1382
1389
  get id() {
1383
- const ret = wasm.document_doc_id(this.__wbg_ptr);
1390
+ const ret = wasm.doccontentrefs_docId(this.__wbg_ptr);
1384
1391
  return Identifier.__wrap(ret);
1385
1392
  }
1386
1393
  /**
@@ -1401,7 +1408,7 @@ export class Group {
1401
1408
  * @returns {GroupId}
1402
1409
  */
1403
1410
  get groupId() {
1404
- const ret = wasm.document_doc_id(this.__wbg_ptr);
1411
+ const ret = wasm.doccontentrefs_docId(this.__wbg_ptr);
1405
1412
  return GroupId.__wrap(ret);
1406
1413
  }
1407
1414
  /**
@@ -1414,12 +1421,7 @@ export class Group {
1414
1421
  }
1415
1422
  if (Symbol.dispose) Group.prototype[Symbol.dispose] = Group.prototype.free;
1416
1423
 
1417
- const GroupIdFinalization = (typeof FinalizationRegistry === 'undefined')
1418
- ? { register: () => {}, unregister: () => {} }
1419
- : new FinalizationRegistry(ptr => wasm.__wbg_groupid_free(ptr >>> 0, 1));
1420
-
1421
1424
  export class GroupId {
1422
-
1423
1425
  static __wrap(ptr) {
1424
1426
  ptr = ptr >>> 0;
1425
1427
  const obj = Object.create(GroupId.prototype);
@@ -1427,14 +1429,12 @@ export class GroupId {
1427
1429
  GroupIdFinalization.register(obj, obj.__wbg_ptr, obj);
1428
1430
  return obj;
1429
1431
  }
1430
-
1431
1432
  __destroy_into_raw() {
1432
1433
  const ptr = this.__wbg_ptr;
1433
1434
  this.__wbg_ptr = 0;
1434
1435
  GroupIdFinalization.unregister(this);
1435
1436
  return ptr;
1436
1437
  }
1437
-
1438
1438
  free() {
1439
1439
  const ptr = this.__destroy_into_raw();
1440
1440
  wasm.__wbg_groupid_free(ptr, 0);
@@ -1457,12 +1457,7 @@ export class GroupId {
1457
1457
  }
1458
1458
  if (Symbol.dispose) GroupId.prototype[Symbol.dispose] = GroupId.prototype.free;
1459
1459
 
1460
- const HistoryFinalization = (typeof FinalizationRegistry === 'undefined')
1461
- ? { register: () => {}, unregister: () => {} }
1462
- : new FinalizationRegistry(ptr => wasm.__wbg_history_free(ptr >>> 0, 1));
1463
-
1464
1460
  export class History {
1465
-
1466
1461
  static __wrap(ptr) {
1467
1462
  ptr = ptr >>> 0;
1468
1463
  const obj = Object.create(History.prototype);
@@ -1470,14 +1465,12 @@ export class History {
1470
1465
  HistoryFinalization.register(obj, obj.__wbg_ptr, obj);
1471
1466
  return obj;
1472
1467
  }
1473
-
1474
1468
  __destroy_into_raw() {
1475
1469
  const ptr = this.__wbg_ptr;
1476
1470
  this.__wbg_ptr = 0;
1477
1471
  HistoryFinalization.unregister(this);
1478
1472
  return ptr;
1479
1473
  }
1480
-
1481
1474
  free() {
1482
1475
  const ptr = this.__destroy_into_raw();
1483
1476
  wasm.__wbg_history_free(ptr, 0);
@@ -1512,12 +1505,7 @@ export class History {
1512
1505
  }
1513
1506
  if (Symbol.dispose) History.prototype[Symbol.dispose] = History.prototype.free;
1514
1507
 
1515
- const IdentifierFinalization = (typeof FinalizationRegistry === 'undefined')
1516
- ? { register: () => {}, unregister: () => {} }
1517
- : new FinalizationRegistry(ptr => wasm.__wbg_identifier_free(ptr >>> 0, 1));
1518
-
1519
1508
  export class Identifier {
1520
-
1521
1509
  static __wrap(ptr) {
1522
1510
  ptr = ptr >>> 0;
1523
1511
  const obj = Object.create(Identifier.prototype);
@@ -1525,14 +1513,12 @@ export class Identifier {
1525
1513
  IdentifierFinalization.register(obj, obj.__wbg_ptr, obj);
1526
1514
  return obj;
1527
1515
  }
1528
-
1529
1516
  __destroy_into_raw() {
1530
1517
  const ptr = this.__wbg_ptr;
1531
1518
  this.__wbg_ptr = 0;
1532
1519
  IdentifierFinalization.unregister(this);
1533
1520
  return ptr;
1534
1521
  }
1535
-
1536
1522
  free() {
1537
1523
  const ptr = this.__destroy_into_raw();
1538
1524
  wasm.__wbg_identifier_free(ptr, 0);
@@ -1563,12 +1549,7 @@ export class Identifier {
1563
1549
  }
1564
1550
  if (Symbol.dispose) Identifier.prototype[Symbol.dispose] = Identifier.prototype.free;
1565
1551
 
1566
- const IndividualFinalization = (typeof FinalizationRegistry === 'undefined')
1567
- ? { register: () => {}, unregister: () => {} }
1568
- : new FinalizationRegistry(ptr => wasm.__wbg_individual_free(ptr >>> 0, 1));
1569
-
1570
1552
  export class Individual {
1571
-
1572
1553
  static __wrap(ptr) {
1573
1554
  ptr = ptr >>> 0;
1574
1555
  const obj = Object.create(Individual.prototype);
@@ -1576,14 +1557,12 @@ export class Individual {
1576
1557
  IndividualFinalization.register(obj, obj.__wbg_ptr, obj);
1577
1558
  return obj;
1578
1559
  }
1579
-
1580
1560
  __destroy_into_raw() {
1581
1561
  const ptr = this.__wbg_ptr;
1582
1562
  this.__wbg_ptr = 0;
1583
1563
  IndividualFinalization.unregister(this);
1584
1564
  return ptr;
1585
1565
  }
1586
-
1587
1566
  free() {
1588
1567
  const ptr = this.__destroy_into_raw();
1589
1568
  wasm.__wbg_individual_free(ptr, 0);
@@ -1629,12 +1608,7 @@ export class Individual {
1629
1608
  }
1630
1609
  if (Symbol.dispose) Individual.prototype[Symbol.dispose] = Individual.prototype.free;
1631
1610
 
1632
- const IndividualIdFinalization = (typeof FinalizationRegistry === 'undefined')
1633
- ? { register: () => {}, unregister: () => {} }
1634
- : new FinalizationRegistry(ptr => wasm.__wbg_individualid_free(ptr >>> 0, 1));
1635
-
1636
1611
  export class IndividualId {
1637
-
1638
1612
  static __wrap(ptr) {
1639
1613
  ptr = ptr >>> 0;
1640
1614
  const obj = Object.create(IndividualId.prototype);
@@ -1642,14 +1616,12 @@ export class IndividualId {
1642
1616
  IndividualIdFinalization.register(obj, obj.__wbg_ptr, obj);
1643
1617
  return obj;
1644
1618
  }
1645
-
1646
1619
  __destroy_into_raw() {
1647
1620
  const ptr = this.__wbg_ptr;
1648
1621
  this.__wbg_ptr = 0;
1649
1622
  IndividualIdFinalization.unregister(this);
1650
1623
  return ptr;
1651
1624
  }
1652
-
1653
1625
  free() {
1654
1626
  const ptr = this.__destroy_into_raw();
1655
1627
  wasm.__wbg_individualid_free(ptr, 0);
@@ -1666,19 +1638,13 @@ export class IndividualId {
1666
1638
  }
1667
1639
  if (Symbol.dispose) IndividualId.prototype[Symbol.dispose] = IndividualId.prototype.free;
1668
1640
 
1669
- const InvocationFinalization = (typeof FinalizationRegistry === 'undefined')
1670
- ? { register: () => {}, unregister: () => {} }
1671
- : new FinalizationRegistry(ptr => wasm.__wbg_invocation_free(ptr >>> 0, 1));
1672
-
1673
1641
  export class Invocation {
1674
-
1675
1642
  __destroy_into_raw() {
1676
1643
  const ptr = this.__wbg_ptr;
1677
1644
  this.__wbg_ptr = 0;
1678
1645
  InvocationFinalization.unregister(this);
1679
1646
  return ptr;
1680
1647
  }
1681
-
1682
1648
  free() {
1683
1649
  const ptr = this.__destroy_into_raw();
1684
1650
  wasm.__wbg_invocation_free(ptr, 0);
@@ -1686,12 +1652,7 @@ export class Invocation {
1686
1652
  }
1687
1653
  if (Symbol.dispose) Invocation.prototype[Symbol.dispose] = Invocation.prototype.free;
1688
1654
 
1689
- const KeyhiveFinalization = (typeof FinalizationRegistry === 'undefined')
1690
- ? { register: () => {}, unregister: () => {} }
1691
- : new FinalizationRegistry(ptr => wasm.__wbg_keyhive_free(ptr >>> 0, 1));
1692
-
1693
1655
  export class Keyhive {
1694
-
1695
1656
  static __wrap(ptr) {
1696
1657
  ptr = ptr >>> 0;
1697
1658
  const obj = Object.create(Keyhive.prototype);
@@ -1699,14 +1660,12 @@ export class Keyhive {
1699
1660
  KeyhiveFinalization.register(obj, obj.__wbg_ptr, obj);
1700
1661
  return obj;
1701
1662
  }
1702
-
1703
1663
  __destroy_into_raw() {
1704
1664
  const ptr = this.__wbg_ptr;
1705
1665
  this.__wbg_ptr = 0;
1706
1666
  KeyhiveFinalization.unregister(this);
1707
1667
  return ptr;
1708
1668
  }
1709
-
1710
1669
  free() {
1711
1670
  const ptr = this.__destroy_into_raw();
1712
1671
  wasm.__wbg_keyhive_free(ptr, 0);
@@ -1921,6 +1880,13 @@ export class Keyhive {
1921
1880
  const ret = wasm.keyhive_tryEncryptArchive(this.__wbg_ptr, doc.__wbg_ptr, content_ref.__wbg_ptr, ptr0, len0, ptr1, len1);
1922
1881
  return ret;
1923
1882
  }
1883
+ /**
1884
+ * @returns {Promise<Set<any>>}
1885
+ */
1886
+ pendingEventHashes() {
1887
+ const ret = wasm.keyhive_pendingEventHashes(this.__wbg_ptr);
1888
+ return ret;
1889
+ }
1924
1890
  /**
1925
1891
  * @param {ContactCard} contact_card
1926
1892
  * @returns {Promise<Individual>}
@@ -2027,12 +1993,7 @@ export class Keyhive {
2027
1993
  }
2028
1994
  if (Symbol.dispose) Keyhive.prototype[Symbol.dispose] = Keyhive.prototype.free;
2029
1995
 
2030
- const MemberedFinalization = (typeof FinalizationRegistry === 'undefined')
2031
- ? { register: () => {}, unregister: () => {} }
2032
- : new FinalizationRegistry(ptr => wasm.__wbg_membered_free(ptr >>> 0, 1));
2033
-
2034
1996
  export class Membered {
2035
-
2036
1997
  static __wrap(ptr) {
2037
1998
  ptr = ptr >>> 0;
2038
1999
  const obj = Object.create(Membered.prototype);
@@ -2040,14 +2001,12 @@ export class Membered {
2040
2001
  MemberedFinalization.register(obj, obj.__wbg_ptr, obj);
2041
2002
  return obj;
2042
2003
  }
2043
-
2044
2004
  __destroy_into_raw() {
2045
2005
  const ptr = this.__wbg_ptr;
2046
2006
  this.__wbg_ptr = 0;
2047
2007
  MemberedFinalization.unregister(this);
2048
2008
  return ptr;
2049
2009
  }
2050
-
2051
2010
  free() {
2052
2011
  const ptr = this.__destroy_into_raw();
2053
2012
  wasm.__wbg_membered_free(ptr, 0);
@@ -2055,12 +2014,7 @@ export class Membered {
2055
2014
  }
2056
2015
  if (Symbol.dispose) Membered.prototype[Symbol.dispose] = Membered.prototype.free;
2057
2016
 
2058
- const MembershipFinalization = (typeof FinalizationRegistry === 'undefined')
2059
- ? { register: () => {}, unregister: () => {} }
2060
- : new FinalizationRegistry(ptr => wasm.__wbg_membership_free(ptr >>> 0, 1));
2061
-
2062
2017
  export class Membership {
2063
-
2064
2018
  static __wrap(ptr) {
2065
2019
  ptr = ptr >>> 0;
2066
2020
  const obj = Object.create(Membership.prototype);
@@ -2068,14 +2022,12 @@ export class Membership {
2068
2022
  MembershipFinalization.register(obj, obj.__wbg_ptr, obj);
2069
2023
  return obj;
2070
2024
  }
2071
-
2072
2025
  __destroy_into_raw() {
2073
2026
  const ptr = this.__wbg_ptr;
2074
2027
  this.__wbg_ptr = 0;
2075
2028
  MembershipFinalization.unregister(this);
2076
2029
  return ptr;
2077
2030
  }
2078
-
2079
2031
  free() {
2080
2032
  const ptr = this.__destroy_into_raw();
2081
2033
  wasm.__wbg_membership_free(ptr, 0);
@@ -2097,12 +2049,7 @@ export class Membership {
2097
2049
  }
2098
2050
  if (Symbol.dispose) Membership.prototype[Symbol.dispose] = Membership.prototype.free;
2099
2051
 
2100
- const PeerFinalization = (typeof FinalizationRegistry === 'undefined')
2101
- ? { register: () => {}, unregister: () => {} }
2102
- : new FinalizationRegistry(ptr => wasm.__wbg_peer_free(ptr >>> 0, 1));
2103
-
2104
2052
  export class Peer {
2105
-
2106
2053
  static __wrap(ptr) {
2107
2054
  ptr = ptr >>> 0;
2108
2055
  const obj = Object.create(Peer.prototype);
@@ -2110,14 +2057,12 @@ export class Peer {
2110
2057
  PeerFinalization.register(obj, obj.__wbg_ptr, obj);
2111
2058
  return obj;
2112
2059
  }
2113
-
2114
2060
  __destroy_into_raw() {
2115
2061
  const ptr = this.__wbg_ptr;
2116
2062
  this.__wbg_ptr = 0;
2117
2063
  PeerFinalization.unregister(this);
2118
2064
  return ptr;
2119
2065
  }
2120
-
2121
2066
  free() {
2122
2067
  const ptr = this.__destroy_into_raw();
2123
2068
  wasm.__wbg_peer_free(ptr, 0);
@@ -2176,12 +2121,7 @@ export class Peer {
2176
2121
  }
2177
2122
  if (Symbol.dispose) Peer.prototype[Symbol.dispose] = Peer.prototype.free;
2178
2123
 
2179
- const RevocationFinalization = (typeof FinalizationRegistry === 'undefined')
2180
- ? { register: () => {}, unregister: () => {} }
2181
- : new FinalizationRegistry(ptr => wasm.__wbg_revocation_free(ptr >>> 0, 1));
2182
-
2183
2124
  export class Revocation {
2184
-
2185
2125
  static __wrap(ptr) {
2186
2126
  ptr = ptr >>> 0;
2187
2127
  const obj = Object.create(Revocation.prototype);
@@ -2189,14 +2129,12 @@ export class Revocation {
2189
2129
  RevocationFinalization.register(obj, obj.__wbg_ptr, obj);
2190
2130
  return obj;
2191
2131
  }
2192
-
2193
2132
  __destroy_into_raw() {
2194
2133
  const ptr = this.__wbg_ptr;
2195
2134
  this.__wbg_ptr = 0;
2196
2135
  RevocationFinalization.unregister(this);
2197
2136
  return ptr;
2198
2137
  }
2199
-
2200
2138
  free() {
2201
2139
  const ptr = this.__destroy_into_raw();
2202
2140
  wasm.__wbg_revocation_free(ptr, 0);
@@ -2232,12 +2170,7 @@ export class Revocation {
2232
2170
  }
2233
2171
  if (Symbol.dispose) Revocation.prototype[Symbol.dispose] = Revocation.prototype.free;
2234
2172
 
2235
- const ShareKeyFinalization = (typeof FinalizationRegistry === 'undefined')
2236
- ? { register: () => {}, unregister: () => {} }
2237
- : new FinalizationRegistry(ptr => wasm.__wbg_sharekey_free(ptr >>> 0, 1));
2238
-
2239
2173
  export class ShareKey {
2240
-
2241
2174
  static __wrap(ptr) {
2242
2175
  ptr = ptr >>> 0;
2243
2176
  const obj = Object.create(ShareKey.prototype);
@@ -2245,14 +2178,12 @@ export class ShareKey {
2245
2178
  ShareKeyFinalization.register(obj, obj.__wbg_ptr, obj);
2246
2179
  return obj;
2247
2180
  }
2248
-
2249
2181
  __destroy_into_raw() {
2250
2182
  const ptr = this.__wbg_ptr;
2251
2183
  this.__wbg_ptr = 0;
2252
2184
  ShareKeyFinalization.unregister(this);
2253
2185
  return ptr;
2254
2186
  }
2255
-
2256
2187
  free() {
2257
2188
  const ptr = this.__destroy_into_raw();
2258
2189
  wasm.__wbg_sharekey_free(ptr, 0);
@@ -2260,12 +2191,7 @@ export class ShareKey {
2260
2191
  }
2261
2192
  if (Symbol.dispose) ShareKey.prototype[Symbol.dispose] = ShareKey.prototype.free;
2262
2193
 
2263
- const SignedFinalization = (typeof FinalizationRegistry === 'undefined')
2264
- ? { register: () => {}, unregister: () => {} }
2265
- : new FinalizationRegistry(ptr => wasm.__wbg_signed_free(ptr >>> 0, 1));
2266
-
2267
2194
  export class Signed {
2268
-
2269
2195
  static __wrap(ptr) {
2270
2196
  ptr = ptr >>> 0;
2271
2197
  const obj = Object.create(Signed.prototype);
@@ -2273,14 +2199,12 @@ export class Signed {
2273
2199
  SignedFinalization.register(obj, obj.__wbg_ptr, obj);
2274
2200
  return obj;
2275
2201
  }
2276
-
2277
2202
  __destroy_into_raw() {
2278
2203
  const ptr = this.__wbg_ptr;
2279
2204
  this.__wbg_ptr = 0;
2280
2205
  SignedFinalization.unregister(this);
2281
2206
  return ptr;
2282
2207
  }
2283
-
2284
2208
  free() {
2285
2209
  const ptr = this.__destroy_into_raw();
2286
2210
  wasm.__wbg_signed_free(ptr, 0);
@@ -2347,12 +2271,7 @@ export class Signed {
2347
2271
  }
2348
2272
  if (Symbol.dispose) Signed.prototype[Symbol.dispose] = Signed.prototype.free;
2349
2273
 
2350
- const SignedCgkaOperationFinalization = (typeof FinalizationRegistry === 'undefined')
2351
- ? { register: () => {}, unregister: () => {} }
2352
- : new FinalizationRegistry(ptr => wasm.__wbg_signedcgkaoperation_free(ptr >>> 0, 1));
2353
-
2354
2274
  export class SignedCgkaOperation {
2355
-
2356
2275
  static __wrap(ptr) {
2357
2276
  ptr = ptr >>> 0;
2358
2277
  const obj = Object.create(SignedCgkaOperation.prototype);
@@ -2360,14 +2279,12 @@ export class SignedCgkaOperation {
2360
2279
  SignedCgkaOperationFinalization.register(obj, obj.__wbg_ptr, obj);
2361
2280
  return obj;
2362
2281
  }
2363
-
2364
2282
  __destroy_into_raw() {
2365
2283
  const ptr = this.__wbg_ptr;
2366
2284
  this.__wbg_ptr = 0;
2367
2285
  SignedCgkaOperationFinalization.unregister(this);
2368
2286
  return ptr;
2369
2287
  }
2370
-
2371
2288
  free() {
2372
2289
  const ptr = this.__destroy_into_raw();
2373
2290
  wasm.__wbg_signedcgkaoperation_free(ptr, 0);
@@ -2407,12 +2324,7 @@ export class SignedCgkaOperation {
2407
2324
  }
2408
2325
  if (Symbol.dispose) SignedCgkaOperation.prototype[Symbol.dispose] = SignedCgkaOperation.prototype.free;
2409
2326
 
2410
- const SignedDelegationFinalization = (typeof FinalizationRegistry === 'undefined')
2411
- ? { register: () => {}, unregister: () => {} }
2412
- : new FinalizationRegistry(ptr => wasm.__wbg_signeddelegation_free(ptr >>> 0, 1));
2413
-
2414
2327
  export class SignedDelegation {
2415
-
2416
2328
  static __wrap(ptr) {
2417
2329
  ptr = ptr >>> 0;
2418
2330
  const obj = Object.create(SignedDelegation.prototype);
@@ -2420,14 +2332,12 @@ export class SignedDelegation {
2420
2332
  SignedDelegationFinalization.register(obj, obj.__wbg_ptr, obj);
2421
2333
  return obj;
2422
2334
  }
2423
-
2424
2335
  __destroy_into_raw() {
2425
2336
  const ptr = this.__wbg_ptr;
2426
2337
  this.__wbg_ptr = 0;
2427
2338
  SignedDelegationFinalization.unregister(this);
2428
2339
  return ptr;
2429
2340
  }
2430
-
2431
2341
  free() {
2432
2342
  const ptr = this.__destroy_into_raw();
2433
2343
  wasm.__wbg_signeddelegation_free(ptr, 0);
@@ -2467,19 +2377,13 @@ export class SignedDelegation {
2467
2377
  }
2468
2378
  if (Symbol.dispose) SignedDelegation.prototype[Symbol.dispose] = SignedDelegation.prototype.free;
2469
2379
 
2470
- const SignedInvocationFinalization = (typeof FinalizationRegistry === 'undefined')
2471
- ? { register: () => {}, unregister: () => {} }
2472
- : new FinalizationRegistry(ptr => wasm.__wbg_signedinvocation_free(ptr >>> 0, 1));
2473
-
2474
2380
  export class SignedInvocation {
2475
-
2476
2381
  __destroy_into_raw() {
2477
2382
  const ptr = this.__wbg_ptr;
2478
2383
  this.__wbg_ptr = 0;
2479
2384
  SignedInvocationFinalization.unregister(this);
2480
2385
  return ptr;
2481
2386
  }
2482
-
2483
2387
  free() {
2484
2388
  const ptr = this.__destroy_into_raw();
2485
2389
  wasm.__wbg_signedinvocation_free(ptr, 0);
@@ -2487,12 +2391,7 @@ export class SignedInvocation {
2487
2391
  }
2488
2392
  if (Symbol.dispose) SignedInvocation.prototype[Symbol.dispose] = SignedInvocation.prototype.free;
2489
2393
 
2490
- const SignedRevocationFinalization = (typeof FinalizationRegistry === 'undefined')
2491
- ? { register: () => {}, unregister: () => {} }
2492
- : new FinalizationRegistry(ptr => wasm.__wbg_signedrevocation_free(ptr >>> 0, 1));
2493
-
2494
2394
  export class SignedRevocation {
2495
-
2496
2395
  static __wrap(ptr) {
2497
2396
  ptr = ptr >>> 0;
2498
2397
  const obj = Object.create(SignedRevocation.prototype);
@@ -2500,14 +2399,12 @@ export class SignedRevocation {
2500
2399
  SignedRevocationFinalization.register(obj, obj.__wbg_ptr, obj);
2501
2400
  return obj;
2502
2401
  }
2503
-
2504
2402
  __destroy_into_raw() {
2505
2403
  const ptr = this.__wbg_ptr;
2506
2404
  this.__wbg_ptr = 0;
2507
2405
  SignedRevocationFinalization.unregister(this);
2508
2406
  return ptr;
2509
2407
  }
2510
-
2511
2408
  free() {
2512
2409
  const ptr = this.__destroy_into_raw();
2513
2410
  wasm.__wbg_signedrevocation_free(ptr, 0);
@@ -2547,12 +2444,7 @@ export class SignedRevocation {
2547
2444
  }
2548
2445
  if (Symbol.dispose) SignedRevocation.prototype[Symbol.dispose] = SignedRevocation.prototype.free;
2549
2446
 
2550
- const SignerFinalization = (typeof FinalizationRegistry === 'undefined')
2551
- ? { register: () => {}, unregister: () => {} }
2552
- : new FinalizationRegistry(ptr => wasm.__wbg_signer_free(ptr >>> 0, 1));
2553
-
2554
2447
  export class Signer {
2555
-
2556
2448
  static __wrap(ptr) {
2557
2449
  ptr = ptr >>> 0;
2558
2450
  const obj = Object.create(Signer.prototype);
@@ -2560,14 +2452,12 @@ export class Signer {
2560
2452
  SignerFinalization.register(obj, obj.__wbg_ptr, obj);
2561
2453
  return obj;
2562
2454
  }
2563
-
2564
2455
  __destroy_into_raw() {
2565
2456
  const ptr = this.__wbg_ptr;
2566
2457
  this.__wbg_ptr = 0;
2567
2458
  SignerFinalization.unregister(this);
2568
2459
  return ptr;
2569
2460
  }
2570
-
2571
2461
  free() {
2572
2462
  const ptr = this.__destroy_into_raw();
2573
2463
  wasm.__wbg_signer_free(ptr, 0);
@@ -2658,12 +2548,7 @@ export class Signer {
2658
2548
  }
2659
2549
  if (Symbol.dispose) Signer.prototype[Symbol.dispose] = Signer.prototype.free;
2660
2550
 
2661
- const StatsFinalization = (typeof FinalizationRegistry === 'undefined')
2662
- ? { register: () => {}, unregister: () => {} }
2663
- : new FinalizationRegistry(ptr => wasm.__wbg_stats_free(ptr >>> 0, 1));
2664
-
2665
2551
  export class Stats {
2666
-
2667
2552
  static __wrap(ptr) {
2668
2553
  ptr = ptr >>> 0;
2669
2554
  const obj = Object.create(Stats.prototype);
@@ -2671,14 +2556,12 @@ export class Stats {
2671
2556
  StatsFinalization.register(obj, obj.__wbg_ptr, obj);
2672
2557
  return obj;
2673
2558
  }
2674
-
2675
2559
  __destroy_into_raw() {
2676
2560
  const ptr = this.__wbg_ptr;
2677
2561
  this.__wbg_ptr = 0;
2678
2562
  StatsFinalization.unregister(this);
2679
2563
  return ptr;
2680
2564
  }
2681
-
2682
2565
  free() {
2683
2566
  const ptr = this.__destroy_into_raw();
2684
2567
  wasm.__wbg_stats_free(ptr, 0);
@@ -2798,12 +2681,7 @@ export class Stats {
2798
2681
  }
2799
2682
  if (Symbol.dispose) Stats.prototype[Symbol.dispose] = Stats.prototype.free;
2800
2683
 
2801
- const SummaryFinalization = (typeof FinalizationRegistry === 'undefined')
2802
- ? { register: () => {}, unregister: () => {} }
2803
- : new FinalizationRegistry(ptr => wasm.__wbg_summary_free(ptr >>> 0, 1));
2804
-
2805
2684
  export class Summary {
2806
-
2807
2685
  static __wrap(ptr) {
2808
2686
  ptr = ptr >>> 0;
2809
2687
  const obj = Object.create(Summary.prototype);
@@ -2811,14 +2689,12 @@ export class Summary {
2811
2689
  SummaryFinalization.register(obj, obj.__wbg_ptr, obj);
2812
2690
  return obj;
2813
2691
  }
2814
-
2815
2692
  __destroy_into_raw() {
2816
2693
  const ptr = this.__wbg_ptr;
2817
2694
  this.__wbg_ptr = 0;
2818
2695
  SummaryFinalization.unregister(this);
2819
2696
  return ptr;
2820
2697
  }
2821
-
2822
2698
  free() {
2823
2699
  const ptr = this.__destroy_into_raw();
2824
2700
  wasm.__wbg_summary_free(ptr, 0);
@@ -2840,6 +2716,16 @@ export class Summary {
2840
2716
  }
2841
2717
  if (Symbol.dispose) Summary.prototype[Symbol.dispose] = Summary.prototype.free;
2842
2718
 
2719
+ /**
2720
+ * Panic hook lets us get better error messages if our Rust code ever panics.
2721
+ *
2722
+ * This function needs to be called at least once during initialisation.
2723
+ * https://rustwasm.github.io/docs/wasm-pack/tutorials/npm-browser-packages/template-deep-dive/src-utils-rs.html#2-what-is-console_error_panic_hook
2724
+ */
2725
+ export function setPanicHook() {
2726
+ wasm.setPanicHook();
2727
+ }
2728
+
2843
2729
  const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
2844
2730
 
2845
2731
  async function __wbg_load(module, imports) {
@@ -2847,7 +2733,6 @@ async function __wbg_load(module, imports) {
2847
2733
  if (typeof WebAssembly.instantiateStreaming === 'function') {
2848
2734
  try {
2849
2735
  return await WebAssembly.instantiateStreaming(module, imports);
2850
-
2851
2736
  } catch (e) {
2852
2737
  const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
2853
2738
 
@@ -2862,13 +2747,11 @@ async function __wbg_load(module, imports) {
2862
2747
 
2863
2748
  const bytes = await module.arrayBuffer();
2864
2749
  return await WebAssembly.instantiate(bytes, imports);
2865
-
2866
2750
  } else {
2867
2751
  const instance = await WebAssembly.instantiate(module, imports);
2868
2752
 
2869
2753
  if (instance instanceof WebAssembly.Instance) {
2870
2754
  return { instance, module };
2871
-
2872
2755
  } else {
2873
2756
  return instance;
2874
2757
  }
@@ -2878,7 +2761,7 @@ async function __wbg_load(module, imports) {
2878
2761
  function __wbg_get_imports() {
2879
2762
  const imports = {};
2880
2763
  imports.wbg = {};
2881
- imports.wbg.__wbg_Error_e83987f665cf5504 = function(arg0, arg1) {
2764
+ imports.wbg.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
2882
2765
  const ret = Error(getStringFromWasm0(arg0, arg1));
2883
2766
  return ret;
2884
2767
  };
@@ -2900,40 +2783,44 @@ function __wbg_get_imports() {
2900
2783
  var ptr1 = ret.__destroy_into_raw();
2901
2784
  return ptr1;
2902
2785
  };
2903
- imports.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
2786
+ imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
2904
2787
  const ret = debugString(arg1);
2905
2788
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2906
2789
  const len1 = WASM_VECTOR_LEN;
2907
2790
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2908
2791
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2909
2792
  };
2910
- imports.wbg.__wbg___wbindgen_is_function_ee8a6c5833c90377 = function(arg0) {
2793
+ imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
2911
2794
  const ret = typeof(arg0) === 'function';
2912
2795
  return ret;
2913
2796
  };
2914
- imports.wbg.__wbg___wbindgen_is_object_c818261d21f283a4 = function(arg0) {
2797
+ imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
2915
2798
  const val = arg0;
2916
2799
  const ret = typeof(val) === 'object' && val !== null;
2917
2800
  return ret;
2918
2801
  };
2919
- imports.wbg.__wbg___wbindgen_is_string_fbb76cb2940daafd = function(arg0) {
2802
+ imports.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030 = function(arg0) {
2920
2803
  const ret = typeof(arg0) === 'string';
2921
2804
  return ret;
2922
2805
  };
2923
- imports.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
2806
+ imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
2924
2807
  const ret = arg0 === undefined;
2925
2808
  return ret;
2926
2809
  };
2927
- imports.wbg.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
2810
+ imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
2928
2811
  throw new Error(getStringFromWasm0(arg0, arg1));
2929
2812
  };
2930
- imports.wbg.__wbg__wbg_cb_unref_2454a539ea5790d9 = function(arg0) {
2813
+ imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
2931
2814
  arg0._wbg_cb_unref();
2932
2815
  };
2933
2816
  imports.wbg.__wbg_access_new = function(arg0) {
2934
2817
  const ret = Access.__wrap(arg0);
2935
2818
  return ret;
2936
2819
  };
2820
+ imports.wbg.__wbg_add_f0bf6d9527665471 = function(arg0, arg1) {
2821
+ const ret = arg0.add(arg1);
2822
+ return ret;
2823
+ };
2937
2824
  imports.wbg.__wbg_agent_new = function(arg0) {
2938
2825
  const ret = Agent.__wrap(arg0);
2939
2826
  return ret;
@@ -2942,11 +2829,11 @@ function __wbg_get_imports() {
2942
2829
  const ret = Archive.__wrap(arg0);
2943
2830
  return ret;
2944
2831
  };
2945
- imports.wbg.__wbg_call_525440f72fbfc0ea = function() { return handleError(function (arg0, arg1, arg2) {
2832
+ imports.wbg.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) {
2946
2833
  const ret = arg0.call(arg1, arg2);
2947
2834
  return ret;
2948
2835
  }, arguments) };
2949
- imports.wbg.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (arg0, arg1) {
2836
+ imports.wbg.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
2950
2837
  const ret = arg0.call(arg1);
2951
2838
  return ret;
2952
2839
  }, arguments) };
@@ -3049,11 +2936,11 @@ function __wbg_get_imports() {
3049
2936
  const ret = Event.__wrap(arg0);
3050
2937
  return ret;
3051
2938
  };
3052
- imports.wbg.__wbg_exportKey_14f4c9c1691e79dc = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2939
+ imports.wbg.__wbg_exportKey_fd2f753afcdf2526 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3053
2940
  const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
3054
2941
  return ret;
3055
2942
  }, arguments) };
3056
- imports.wbg.__wbg_generateKey_3530d4e1a89ee5b4 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2943
+ imports.wbg.__wbg_generateKey_deeedd395df4b668 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3057
2944
  const ret = arg0.generateKey(getStringFromWasm0(arg1, arg2), arg3 !== 0, arg4);
3058
2945
  return ret;
3059
2946
  }, arguments) };
@@ -3064,19 +2951,19 @@ function __wbg_get_imports() {
3064
2951
  imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
3065
2952
  arg0.getRandomValues(arg1);
3066
2953
  }, arguments) };
3067
- imports.wbg.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
2954
+ imports.wbg.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
3068
2955
  const ret = arg0[arg1 >>> 0];
3069
2956
  return ret;
3070
2957
  };
3071
- imports.wbg.__wbg_get_efcb449f58ec27c2 = function() { return handleError(function (arg0, arg1) {
2958
+ imports.wbg.__wbg_get_af9dab7e9603ea93 = function() { return handleError(function (arg0, arg1) {
3072
2959
  const ret = Reflect.get(arg0, arg1);
3073
2960
  return ret;
3074
2961
  }, arguments) };
3075
- imports.wbg.__wbg_get_private_key_0a3a263ca613b0c0 = function(arg0) {
2962
+ imports.wbg.__wbg_get_private_key_e298c060449e1131 = function(arg0) {
3076
2963
  const ret = arg0.privateKey;
3077
2964
  return ret;
3078
2965
  };
3079
- imports.wbg.__wbg_get_public_key_1e2c11d159e34827 = function(arg0) {
2966
+ imports.wbg.__wbg_get_public_key_f899b81b4ccc126b = function(arg0) {
3080
2967
  const ret = arg0.publicKey;
3081
2968
  return ret;
3082
2969
  };
@@ -3088,7 +2975,7 @@ function __wbg_get_imports() {
3088
2975
  const ret = Individual.__wrap(arg0);
3089
2976
  return ret;
3090
2977
  };
3091
- imports.wbg.__wbg_instanceof_Crypto_2574e69763b89701 = function(arg0) {
2978
+ imports.wbg.__wbg_instanceof_Crypto_ddb7f04c058ba561 = function(arg0) {
3092
2979
  let result;
3093
2980
  try {
3094
2981
  result = arg0 instanceof Crypto;
@@ -3102,11 +2989,11 @@ function __wbg_get_imports() {
3102
2989
  const ret = Keyhive.__wrap(arg0);
3103
2990
  return ret;
3104
2991
  };
3105
- imports.wbg.__wbg_length_69bca3cb64fc8748 = function(arg0) {
2992
+ imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
3106
2993
  const ret = arg0.length;
3107
2994
  return ret;
3108
2995
  };
3109
- imports.wbg.__wbg_length_cdd215e10d9dd507 = function(arg0) {
2996
+ imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
3110
2997
  const ret = arg0.length;
3111
2998
  return ret;
3112
2999
  };
@@ -3159,14 +3046,38 @@ function __wbg_get_imports() {
3159
3046
  const ret = arg0.msCrypto;
3160
3047
  return ret;
3161
3048
  };
3162
- imports.wbg.__wbg_new_3c3d849046688a66 = function(arg0, arg1) {
3049
+ imports.wbg.__wbg_new_25f239778d6112b9 = function() {
3050
+ const ret = new Array();
3051
+ return ret;
3052
+ };
3053
+ imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
3054
+ const ret = new Uint8Array(arg0);
3055
+ return ret;
3056
+ };
3057
+ imports.wbg.__wbg_new_746bb58304020083 = function(arg0) {
3058
+ const ret = new Set(arg0);
3059
+ return ret;
3060
+ };
3061
+ imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
3062
+ const ret = new Error();
3063
+ return ret;
3064
+ };
3065
+ imports.wbg.__wbg_new_b546ae120718850e = function() {
3066
+ const ret = new Map();
3067
+ return ret;
3068
+ };
3069
+ imports.wbg.__wbg_new_df1173567d5ff028 = function(arg0, arg1) {
3070
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
3071
+ return ret;
3072
+ };
3073
+ imports.wbg.__wbg_new_ff12d2b041fb48f1 = function(arg0, arg1) {
3163
3074
  try {
3164
3075
  var state0 = {a: arg0, b: arg1};
3165
3076
  var cb0 = (arg0, arg1) => {
3166
3077
  const a = state0.a;
3167
3078
  state0.a = 0;
3168
3079
  try {
3169
- return wasm_bindgen__convert__closures_____invoke__h1069d9784c192ccc(a, state0.b, arg0, arg1);
3080
+ return wasm_bindgen__convert__closures_____invoke__h0e2a667a85375385(a, state0.b, arg0, arg1);
3170
3081
  } finally {
3171
3082
  state0.a = a;
3172
3083
  }
@@ -3177,35 +3088,15 @@ function __wbg_get_imports() {
3177
3088
  state0.a = state0.b = 0;
3178
3089
  }
3179
3090
  };
3180
- imports.wbg.__wbg_new_5a79be3ab53b8aa5 = function(arg0) {
3181
- const ret = new Uint8Array(arg0);
3182
- return ret;
3183
- };
3184
- imports.wbg.__wbg_new_68651c719dcda04e = function() {
3185
- const ret = new Map();
3186
- return ret;
3187
- };
3188
- imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
3189
- const ret = new Error();
3190
- return ret;
3191
- };
3192
- imports.wbg.__wbg_new_a7442b4b19c1a356 = function(arg0, arg1) {
3193
- const ret = new Error(getStringFromWasm0(arg0, arg1));
3194
- return ret;
3195
- };
3196
- imports.wbg.__wbg_new_e17d9f43105b08be = function() {
3197
- const ret = new Array();
3198
- return ret;
3199
- };
3200
- imports.wbg.__wbg_new_from_slice_92f4d78ca282a2d2 = function(arg0, arg1) {
3091
+ imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) {
3201
3092
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
3202
3093
  return ret;
3203
3094
  };
3204
- imports.wbg.__wbg_new_no_args_ee98eee5275000a4 = function(arg0, arg1) {
3095
+ imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
3205
3096
  const ret = new Function(getStringFromWasm0(arg0, arg1));
3206
3097
  return ret;
3207
3098
  };
3208
- imports.wbg.__wbg_new_with_length_01aa0dc35aa13543 = function(arg0) {
3099
+ imports.wbg.__wbg_new_with_length_aa5eaf41d35235e5 = function(arg0) {
3209
3100
  const ret = new Uint8Array(arg0 >>> 0);
3210
3101
  return ret;
3211
3102
  };
@@ -3217,18 +3108,18 @@ function __wbg_get_imports() {
3217
3108
  const ret = arg0.process;
3218
3109
  return ret;
3219
3110
  };
3220
- imports.wbg.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
3111
+ imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
3221
3112
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
3222
3113
  };
3223
- imports.wbg.__wbg_push_df81a39d04db858c = function(arg0, arg1) {
3114
+ imports.wbg.__wbg_push_7d9be8f38fc13975 = function(arg0, arg1) {
3224
3115
  const ret = arg0.push(arg1);
3225
3116
  return ret;
3226
3117
  };
3227
- imports.wbg.__wbg_queueMicrotask_34d692c25c47d05b = function(arg0) {
3118
+ imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
3228
3119
  const ret = arg0.queueMicrotask;
3229
3120
  return ret;
3230
3121
  };
3231
- imports.wbg.__wbg_queueMicrotask_9d76cacb20c84d58 = function(arg0) {
3122
+ imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) {
3232
3123
  queueMicrotask(arg0);
3233
3124
  };
3234
3125
  imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
@@ -3238,22 +3129,22 @@ function __wbg_get_imports() {
3238
3129
  const ret = module.require;
3239
3130
  return ret;
3240
3131
  }, arguments) };
3241
- imports.wbg.__wbg_resolve_caf97c30b83f7053 = function(arg0) {
3132
+ imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
3242
3133
  const ret = Promise.resolve(arg0);
3243
3134
  return ret;
3244
3135
  };
3245
- imports.wbg.__wbg_set_907fb406c34a251d = function(arg0, arg1, arg2) {
3136
+ imports.wbg.__wbg_set_efaaf145b9377369 = function(arg0, arg1, arg2) {
3246
3137
  const ret = arg0.set(arg1, arg2);
3247
3138
  return ret;
3248
3139
  };
3249
- imports.wbg.__wbg_set_name_d94846a29e626702 = function(arg0, arg1, arg2) {
3140
+ imports.wbg.__wbg_set_name_df69b75cb0b4de8a = function(arg0, arg1, arg2) {
3250
3141
  arg0.name = getStringFromWasm0(arg1, arg2);
3251
3142
  };
3252
3143
  imports.wbg.__wbg_sharekey_new = function(arg0) {
3253
3144
  const ret = ShareKey.__wrap(arg0);
3254
3145
  return ret;
3255
3146
  };
3256
- imports.wbg.__wbg_sign_0077f2aabd37825a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3147
+ imports.wbg.__wbg_sign_c1f01ea899c052d8 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3257
3148
  const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
3258
3149
  return ret;
3259
3150
  }, arguments) };
@@ -3280,19 +3171,19 @@ function __wbg_get_imports() {
3280
3171
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3281
3172
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3282
3173
  };
3283
- imports.wbg.__wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e = function() {
3174
+ imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
3284
3175
  const ret = typeof global === 'undefined' ? null : global;
3285
3176
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3286
3177
  };
3287
- imports.wbg.__wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac = function() {
3178
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
3288
3179
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
3289
3180
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3290
3181
  };
3291
- imports.wbg.__wbg_static_accessor_SELF_6fdf4b64710cc91b = function() {
3182
+ imports.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
3292
3183
  const ret = typeof self === 'undefined' ? null : self;
3293
3184
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3294
3185
  };
3295
- imports.wbg.__wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2 = function() {
3186
+ imports.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
3296
3187
  const ret = typeof window === 'undefined' ? null : window;
3297
3188
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3298
3189
  };
@@ -3300,11 +3191,11 @@ function __wbg_get_imports() {
3300
3191
  const ret = Stats.__wrap(arg0);
3301
3192
  return ret;
3302
3193
  };
3303
- imports.wbg.__wbg_subarray_480600f3d6a9f26c = function(arg0, arg1, arg2) {
3194
+ imports.wbg.__wbg_subarray_845f2f5bce7d061a = function(arg0, arg1, arg2) {
3304
3195
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
3305
3196
  return ret;
3306
3197
  };
3307
- imports.wbg.__wbg_subtle_a158c8cba320b8ed = function(arg0) {
3198
+ imports.wbg.__wbg_subtle_0109c00de0ea1788 = function(arg0) {
3308
3199
  const ret = arg0.subtle;
3309
3200
  return ret;
3310
3201
  };
@@ -3312,12 +3203,12 @@ function __wbg_get_imports() {
3312
3203
  const ret = Summary.__wrap(arg0);
3313
3204
  return ret;
3314
3205
  };
3315
- imports.wbg.__wbg_then_4f46f6544e6b4a28 = function(arg0, arg1) {
3316
- const ret = arg0.then(arg1);
3206
+ imports.wbg.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) {
3207
+ const ret = arg0.then(arg1, arg2);
3317
3208
  return ret;
3318
3209
  };
3319
- imports.wbg.__wbg_then_70d05cf780a18d77 = function(arg0, arg1, arg2) {
3320
- const ret = arg0.then(arg1, arg2);
3210
+ imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) {
3211
+ const ret = arg0.then(arg1);
3321
3212
  return ret;
3322
3213
  };
3323
3214
  imports.wbg.__wbg_versions_c01dfd4722a88165 = function(arg0) {
@@ -3400,9 +3291,9 @@ function __wbg_get_imports() {
3400
3291
  const ret = v0;
3401
3292
  return ret;
3402
3293
  };
3403
- imports.wbg.__wbindgen_cast_bef74971622929eb = function(arg0, arg1) {
3404
- // Cast intrinsic for `Closure(Closure { dtor_idx: 462, function: Function { arguments: [Externref], shim_idx: 463, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3405
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h1ba2ea4e4548722a, wasm_bindgen__convert__closures_____invoke__h270e774e62b586ab);
3294
+ imports.wbg.__wbindgen_cast_b2e692da0ea8478a = function(arg0, arg1) {
3295
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 464, function: Function { arguments: [Externref], shim_idx: 465, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3296
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h56c1987c5374a416, wasm_bindgen__convert__closures_____invoke__hb8b6941fceac7069);
3406
3297
  return ret;
3407
3298
  };
3408
3299
  imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
@@ -3418,7 +3309,6 @@ function __wbg_get_imports() {
3418
3309
  table.set(offset + 1, null);
3419
3310
  table.set(offset + 2, true);
3420
3311
  table.set(offset + 3, false);
3421
- ;
3422
3312
  };
3423
3313
 
3424
3314
  return imports;
@@ -3448,13 +3338,10 @@ function initSync(module) {
3448
3338
  }
3449
3339
 
3450
3340
  const imports = __wbg_get_imports();
3451
-
3452
3341
  if (!(module instanceof WebAssembly.Module)) {
3453
3342
  module = new WebAssembly.Module(module);
3454
3343
  }
3455
-
3456
3344
  const instance = new WebAssembly.Instance(module, imports);
3457
-
3458
3345
  return __wbg_finalize_init(instance, module);
3459
3346
  }
3460
3347