@keyhive/keyhive 0.0.0-alpha.2 → 0.0.0-alpha.21

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.
@@ -176,11 +176,22 @@ function debugString(val) {
176
176
  return className;
177
177
  }
178
178
 
179
+ function getArrayJsValueFromWasm0(ptr, len) {
180
+ ptr = ptr >>> 0;
181
+ const mem = getDataViewMemory0();
182
+ const result = [];
183
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
184
+ result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true)));
185
+ }
186
+ wasm.__externref_drop_slice(ptr, len);
187
+ return result;
188
+ }
189
+
179
190
  const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
180
191
  ? { register: () => {}, unregister: () => {} }
181
192
  : new FinalizationRegistry(
182
193
  state => {
183
- wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b);
194
+ wasm.__wbindgen_export_7.get(state.dtor)(state.a, state.b);
184
195
  }
185
196
  );
186
197
 
@@ -198,7 +209,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
198
209
  return f(a, state.b, ...args);
199
210
  } finally {
200
211
  if (--state.cnt === 0) {
201
- wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
212
+ wasm.__wbindgen_export_7.get(state.dtor)(a, state.b);
202
213
  CLOSURE_DTORS.unregister(state);
203
214
  } else {
204
215
  state.a = a;
@@ -210,15 +221,20 @@ function makeMutClosure(arg0, arg1, dtor, f) {
210
221
  return real;
211
222
  }
212
223
 
213
- function getArrayJsValueFromWasm0(ptr, len) {
214
- ptr = ptr >>> 0;
215
- const mem = getDataViewMemory0();
216
- const result = [];
217
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
218
- result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true)));
224
+ function _assertClass(instance, klass) {
225
+ if (!(instance instanceof klass)) {
226
+ throw new Error(`expected instance of ${klass.name}`);
219
227
  }
220
- wasm.__externref_drop_slice(ptr, len);
221
- return result;
228
+ }
229
+
230
+ function passArrayJsValueToWasm0(array, malloc) {
231
+ const ptr = malloc(array.length * 4, 4) >>> 0;
232
+ for (let i = 0; i < array.length; i++) {
233
+ const add = addToExternrefTable0(array[i]);
234
+ getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
235
+ }
236
+ WASM_VECTOR_LEN = array.length;
237
+ return ptr;
222
238
  }
223
239
 
224
240
  function passArray8ToWasm0(arg, malloc) {
@@ -233,12 +249,6 @@ function takeFromExternrefTable0(idx) {
233
249
  wasm.__externref_table_dealloc(idx);
234
250
  return value;
235
251
  }
236
-
237
- function _assertClass(instance, klass) {
238
- if (!(instance instanceof klass)) {
239
- throw new Error(`expected instance of ${klass.name}`);
240
- }
241
- }
242
252
  /**
243
253
  * Panic hook lets us get better error messages if our Rust code ever panics.
244
254
  *
@@ -249,21 +259,12 @@ exports.setPanicHook = function() {
249
259
  wasm.setPanicHook();
250
260
  };
251
261
 
252
- function passArrayJsValueToWasm0(array, malloc) {
253
- const ptr = malloc(array.length * 4, 4) >>> 0;
254
- for (let i = 0; i < array.length; i++) {
255
- const add = addToExternrefTable0(array[i]);
256
- getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
257
- }
258
- WASM_VECTOR_LEN = array.length;
259
- return ptr;
260
- }
261
262
  function __wbg_adapter_8(arg0, arg1, arg2) {
262
- wasm.closure423_externref_shim(arg0, arg1, arg2);
263
+ wasm.closure494_externref_shim(arg0, arg1, arg2);
263
264
  }
264
265
 
265
- function __wbg_adapter_272(arg0, arg1, arg2, arg3) {
266
- wasm.closure571_externref_shim(arg0, arg1, arg2, arg3);
266
+ function __wbg_adapter_269(arg0, arg1, arg2, arg3) {
267
+ wasm.closure651_externref_shim(arg0, arg1, arg2, arg3);
267
268
  }
268
269
 
269
270
  const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -327,14 +328,6 @@ const AddMemberErrorFinalization = (typeof FinalizationRegistry === 'undefined')
327
328
 
328
329
  class AddMemberError {
329
330
 
330
- static __wrap(ptr) {
331
- ptr = ptr >>> 0;
332
- const obj = Object.create(AddMemberError.prototype);
333
- obj.__wbg_ptr = ptr;
334
- AddMemberErrorFinalization.register(obj, obj.__wbg_ptr, obj);
335
- return obj;
336
- }
337
-
338
331
  __destroy_into_raw() {
339
332
  const ptr = this.__wbg_ptr;
340
333
  this.__wbg_ptr = 0;
@@ -1067,6 +1060,13 @@ class Document {
1067
1060
  const ret = wasm.document_toAgent(this.__wbg_ptr);
1068
1061
  return Agent.__wrap(ret);
1069
1062
  }
1063
+ /**
1064
+ * @returns {Membered}
1065
+ */
1066
+ toMembered() {
1067
+ const ret = wasm.document_toMembered(this.__wbg_ptr);
1068
+ return Membered.__wrap(ret);
1069
+ }
1070
1070
  }
1071
1071
  if (Symbol.dispose) Document.prototype[Symbol.dispose] = Document.prototype.free;
1072
1072
 
@@ -1114,11 +1114,11 @@ class DocumentId {
1114
1114
  /**
1115
1115
  * @returns {string}
1116
1116
  */
1117
- fromString() {
1117
+ toString() {
1118
1118
  let deferred1_0;
1119
1119
  let deferred1_1;
1120
1120
  try {
1121
- const ret = wasm.documentid_fromString(this.__wbg_ptr);
1121
+ const ret = wasm.documentid_toString(this.__wbg_ptr);
1122
1122
  deferred1_0 = ret[0];
1123
1123
  deferred1_1 = ret[1];
1124
1124
  return getStringFromWasm0(ret[0], ret[1]);
@@ -1354,14 +1354,6 @@ const GenerateDocErrorFinalization = (typeof FinalizationRegistry === 'undefined
1354
1354
 
1355
1355
  class GenerateDocError {
1356
1356
 
1357
- static __wrap(ptr) {
1358
- ptr = ptr >>> 0;
1359
- const obj = Object.create(GenerateDocError.prototype);
1360
- obj.__wbg_ptr = ptr;
1361
- GenerateDocErrorFinalization.register(obj, obj.__wbg_ptr, obj);
1362
- return obj;
1363
- }
1364
-
1365
1357
  __destroy_into_raw() {
1366
1358
  const ptr = this.__wbg_ptr;
1367
1359
  this.__wbg_ptr = 0;
@@ -1839,14 +1831,6 @@ const JsDecryptErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1839
1831
 
1840
1832
  class JsDecryptError {
1841
1833
 
1842
- static __wrap(ptr) {
1843
- ptr = ptr >>> 0;
1844
- const obj = Object.create(JsDecryptError.prototype);
1845
- obj.__wbg_ptr = ptr;
1846
- JsDecryptErrorFinalization.register(obj, obj.__wbg_ptr, obj);
1847
- return obj;
1848
- }
1849
-
1850
1834
  __destroy_into_raw() {
1851
1835
  const ptr = this.__wbg_ptr;
1852
1836
  this.__wbg_ptr = 0;
@@ -1869,14 +1853,6 @@ const JsEncryptErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1869
1853
 
1870
1854
  class JsEncryptError {
1871
1855
 
1872
- static __wrap(ptr) {
1873
- ptr = ptr >>> 0;
1874
- const obj = Object.create(JsEncryptError.prototype);
1875
- obj.__wbg_ptr = ptr;
1876
- JsEncryptErrorFinalization.register(obj, obj.__wbg_ptr, obj);
1877
- return obj;
1878
- }
1879
-
1880
1856
  __destroy_into_raw() {
1881
1857
  const ptr = this.__wbg_ptr;
1882
1858
  this.__wbg_ptr = 0;
@@ -1899,14 +1875,6 @@ const JsReceivePreKeyOpErrorFinalization = (typeof FinalizationRegistry === 'und
1899
1875
 
1900
1876
  class JsReceivePreKeyOpError {
1901
1877
 
1902
- static __wrap(ptr) {
1903
- ptr = ptr >>> 0;
1904
- const obj = Object.create(JsReceivePreKeyOpError.prototype);
1905
- obj.__wbg_ptr = ptr;
1906
- JsReceivePreKeyOpErrorFinalization.register(obj, obj.__wbg_ptr, obj);
1907
- return obj;
1908
- }
1909
-
1910
1878
  __destroy_into_raw() {
1911
1879
  const ptr = this.__wbg_ptr;
1912
1880
  this.__wbg_ptr = 0;
@@ -2005,6 +1973,13 @@ class Keyhive {
2005
1973
  const ret = wasm.keyhive_id(this.__wbg_ptr);
2006
1974
  return IndividualId.__wrap(ret);
2007
1975
  }
1976
+ /**
1977
+ * @returns {Individual}
1978
+ */
1979
+ get individual() {
1980
+ const ret = wasm.keyhive_individual(this.__wbg_ptr);
1981
+ return Individual.__wrap(ret);
1982
+ }
2008
1983
  /**
2009
1984
  * @returns {string}
2010
1985
  */
@@ -2065,14 +2040,13 @@ class Keyhive {
2065
2040
  */
2066
2041
  tryEncrypt(doc, content_ref, pred_refs, content) {
2067
2042
  _assertClass(doc, Document);
2068
- var ptr0 = doc.__destroy_into_raw();
2069
2043
  _assertClass(content_ref, ChangeRef);
2070
- var ptr1 = content_ref.__destroy_into_raw();
2071
- const ptr2 = passArrayJsValueToWasm0(pred_refs, wasm.__wbindgen_malloc);
2044
+ var ptr0 = content_ref.__destroy_into_raw();
2045
+ const ptr1 = passArrayJsValueToWasm0(pred_refs, wasm.__wbindgen_malloc);
2046
+ const len1 = WASM_VECTOR_LEN;
2047
+ const ptr2 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
2072
2048
  const len2 = WASM_VECTOR_LEN;
2073
- const ptr3 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
2074
- const len3 = WASM_VECTOR_LEN;
2075
- const ret = wasm.keyhive_tryEncrypt(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3);
2049
+ const ret = wasm.keyhive_tryEncrypt(this.__wbg_ptr, doc.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2);
2076
2050
  return ret;
2077
2051
  }
2078
2052
  /**
@@ -2084,14 +2058,13 @@ class Keyhive {
2084
2058
  */
2085
2059
  tryEncryptArchive(doc, content_ref, pred_refs, content) {
2086
2060
  _assertClass(doc, Document);
2087
- var ptr0 = doc.__destroy_into_raw();
2088
2061
  _assertClass(content_ref, ChangeRef);
2089
- var ptr1 = content_ref.__destroy_into_raw();
2090
- const ptr2 = passArrayJsValueToWasm0(pred_refs, wasm.__wbindgen_malloc);
2062
+ var ptr0 = content_ref.__destroy_into_raw();
2063
+ const ptr1 = passArrayJsValueToWasm0(pred_refs, wasm.__wbindgen_malloc);
2064
+ const len1 = WASM_VECTOR_LEN;
2065
+ const ptr2 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
2091
2066
  const len2 = WASM_VECTOR_LEN;
2092
- const ptr3 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
2093
- const len3 = WASM_VECTOR_LEN;
2094
- const ret = wasm.keyhive_tryEncryptArchive(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3);
2067
+ const ret = wasm.keyhive_tryEncryptArchive(this.__wbg_ptr, doc.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2);
2095
2068
  return ret;
2096
2069
  }
2097
2070
  /**
@@ -2101,16 +2074,14 @@ class Keyhive {
2101
2074
  */
2102
2075
  tryDecrypt(doc, encrypted) {
2103
2076
  _assertClass(doc, Document);
2104
- var ptr0 = doc.__destroy_into_raw();
2105
2077
  _assertClass(encrypted, Encrypted);
2106
- var ptr1 = encrypted.__destroy_into_raw();
2107
- const ret = wasm.keyhive_tryDecrypt(this.__wbg_ptr, ptr0, ptr1);
2078
+ const ret = wasm.keyhive_tryDecrypt(this.__wbg_ptr, doc.__wbg_ptr, encrypted.__wbg_ptr);
2108
2079
  if (ret[3]) {
2109
2080
  throw takeFromExternrefTable0(ret[2]);
2110
2081
  }
2111
- var v3 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
2082
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
2112
2083
  wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
2113
- return v3;
2084
+ return v1;
2114
2085
  }
2115
2086
  /**
2116
2087
  * @param {Agent} to_add
@@ -2189,8 +2160,7 @@ class Keyhive {
2189
2160
  */
2190
2161
  receiveContactCard(contact_card) {
2191
2162
  _assertClass(contact_card, ContactCard);
2192
- var ptr0 = contact_card.__destroy_into_raw();
2193
- const ret = wasm.keyhive_receiveContactCard(this.__wbg_ptr, ptr0);
2163
+ const ret = wasm.keyhive_receiveContactCard(this.__wbg_ptr, contact_card.__wbg_ptr);
2194
2164
  if (ret[2]) {
2195
2165
  throw takeFromExternrefTable0(ret[1]);
2196
2166
  }
@@ -2206,14 +2176,23 @@ class Keyhive {
2206
2176
  return ret === 0 ? undefined : Agent.__wrap(ret);
2207
2177
  }
2208
2178
  /**
2209
- * @param {Identifier} id
2179
+ * @param {GroupId} id
2210
2180
  * @returns {Group | undefined}
2211
2181
  */
2212
2182
  getGroup(id) {
2213
- _assertClass(id, Identifier);
2183
+ _assertClass(id, GroupId);
2214
2184
  const ret = wasm.keyhive_getGroup(this.__wbg_ptr, id.__wbg_ptr);
2215
2185
  return ret === 0 ? undefined : Group.__wrap(ret);
2216
2186
  }
2187
+ /**
2188
+ * @param {DocumentId} id
2189
+ * @returns {Document | undefined}
2190
+ */
2191
+ getDocument(id) {
2192
+ _assertClass(id, DocumentId);
2193
+ const ret = wasm.keyhive_getDocument(this.__wbg_ptr, id.__wbg_ptr);
2194
+ return ret === 0 ? undefined : Document.__wrap(ret);
2195
+ }
2217
2196
  /**
2218
2197
  * @param {DocumentId} doc_id
2219
2198
  * @returns {SimpleCapability[]}
@@ -2454,14 +2433,6 @@ const RevokeMemberErrorFinalization = (typeof FinalizationRegistry === 'undefine
2454
2433
 
2455
2434
  class RevokeMemberError {
2456
2435
 
2457
- static __wrap(ptr) {
2458
- ptr = ptr >>> 0;
2459
- const obj = Object.create(RevokeMemberError.prototype);
2460
- obj.__wbg_ptr = ptr;
2461
- RevokeMemberErrorFinalization.register(obj, obj.__wbg_ptr, obj);
2462
- return obj;
2463
- }
2464
-
2465
2436
  __destroy_into_raw() {
2466
2437
  const ptr = this.__wbg_ptr;
2467
2438
  this.__wbg_ptr = 0;
@@ -3141,11 +3112,6 @@ exports.__wbg_Error_e17e777aac105295 = function(arg0, arg1) {
3141
3112
  return ret;
3142
3113
  };
3143
3114
 
3144
- exports.__wbg_addmembererror_new = function(arg0) {
3145
- const ret = AddMemberError.__wrap(arg0);
3146
- return ret;
3147
- };
3148
-
3149
3115
  exports.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
3150
3116
  const ret = arg0.call(arg1);
3151
3117
  return ret;
@@ -3191,11 +3157,6 @@ exports.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
3191
3157
  return ret;
3192
3158
  };
3193
3159
 
3194
- exports.__wbg_crypto_92ce5ebc02988b17 = function() { return handleError(function (arg0) {
3195
- const ret = arg0.crypto;
3196
- return ret;
3197
- }, arguments) };
3198
-
3199
3160
  exports.__wbg_doccontentrefs_new = function(arg0) {
3200
3161
  const ret = DocContentRefs.__wrap(arg0);
3201
3162
  return ret;
@@ -3243,11 +3204,6 @@ exports.__wbg_generateKey_b8902ccb0e50ff4e = function() { return handleError(fun
3243
3204
  return ret;
3244
3205
  }, arguments) };
3245
3206
 
3246
- exports.__wbg_generatedocerror_new = function(arg0) {
3247
- const ret = GenerateDocError.__wrap(arg0);
3248
- return ret;
3249
- };
3250
-
3251
3207
  exports.__wbg_generatewebcryptoerror_new = function(arg0) {
3252
3208
  const ret = GenerateWebCryptoError.__wrap(arg0);
3253
3209
  return ret;
@@ -3257,6 +3213,11 @@ exports.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError
3257
3213
  arg0.getRandomValues(arg1);
3258
3214
  }, arguments) };
3259
3215
 
3216
+ exports.__wbg_get_458e874b43b18b25 = function() { return handleError(function (arg0, arg1) {
3217
+ const ret = Reflect.get(arg0, arg1);
3218
+ return ret;
3219
+ }, arguments) };
3220
+
3260
3221
  exports.__wbg_getprivatekey_2b060a8a8c19d828 = function(arg0) {
3261
3222
  const ret = arg0.privateKey;
3262
3223
  return ret;
@@ -3272,10 +3233,10 @@ exports.__wbg_group_new = function(arg0) {
3272
3233
  return ret;
3273
3234
  };
3274
3235
 
3275
- exports.__wbg_instanceof_Window_12d20d558ef92592 = function(arg0) {
3236
+ exports.__wbg_instanceof_Crypto_33ac2d91cca59233 = function(arg0) {
3276
3237
  let result;
3277
3238
  try {
3278
- result = arg0 instanceof Window;
3239
+ result = arg0 instanceof Crypto;
3279
3240
  } catch (_) {
3280
3241
  result = false;
3281
3242
  }
@@ -3283,21 +3244,6 @@ exports.__wbg_instanceof_Window_12d20d558ef92592 = function(arg0) {
3283
3244
  return ret;
3284
3245
  };
3285
3246
 
3286
- exports.__wbg_jsdecrypterror_new = function(arg0) {
3287
- const ret = JsDecryptError.__wrap(arg0);
3288
- return ret;
3289
- };
3290
-
3291
- exports.__wbg_jsencrypterror_new = function(arg0) {
3292
- const ret = JsEncryptError.__wrap(arg0);
3293
- return ret;
3294
- };
3295
-
3296
- exports.__wbg_jsreceiveprekeyoperror_new = function(arg0) {
3297
- const ret = JsReceivePreKeyOpError.__wrap(arg0);
3298
- return ret;
3299
- };
3300
-
3301
3247
  exports.__wbg_jsreceivestaticeventerror_new = function(arg0) {
3302
3248
  const ret = JsReceiveStaticEventError.__wrap(arg0);
3303
3249
  return ret;
@@ -3313,6 +3259,51 @@ exports.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
3313
3259
  return ret;
3314
3260
  };
3315
3261
 
3262
+ exports.__wbg_log_0cc1b7768397bcfe = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
3263
+ let deferred0_0;
3264
+ let deferred0_1;
3265
+ try {
3266
+ deferred0_0 = arg0;
3267
+ deferred0_1 = arg1;
3268
+ console.log(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
3269
+ } finally {
3270
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3271
+ }
3272
+ };
3273
+
3274
+ exports.__wbg_log_cb9e190acc5753fb = function(arg0, arg1) {
3275
+ let deferred0_0;
3276
+ let deferred0_1;
3277
+ try {
3278
+ deferred0_0 = arg0;
3279
+ deferred0_1 = arg1;
3280
+ console.log(getStringFromWasm0(arg0, arg1));
3281
+ } finally {
3282
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3283
+ }
3284
+ };
3285
+
3286
+ exports.__wbg_mark_7438147ce31e9d4b = function(arg0, arg1) {
3287
+ performance.mark(getStringFromWasm0(arg0, arg1));
3288
+ };
3289
+
3290
+ exports.__wbg_measure_fb7825c11612c823 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3291
+ let deferred0_0;
3292
+ let deferred0_1;
3293
+ let deferred1_0;
3294
+ let deferred1_1;
3295
+ try {
3296
+ deferred0_0 = arg0;
3297
+ deferred0_1 = arg1;
3298
+ deferred1_0 = arg2;
3299
+ deferred1_1 = arg3;
3300
+ performance.measure(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
3301
+ } finally {
3302
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3303
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3304
+ }
3305
+ }, arguments) };
3306
+
3316
3307
  exports.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
3317
3308
  const ret = arg0.msCrypto;
3318
3309
  return ret;
@@ -3325,7 +3316,7 @@ exports.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) {
3325
3316
  const a = state0.a;
3326
3317
  state0.a = 0;
3327
3318
  try {
3328
- return __wbg_adapter_272(a, state0.b, arg0, arg1);
3319
+ return __wbg_adapter_269(a, state0.b, arg0, arg1);
3329
3320
  } finally {
3330
3321
  state0.a = a;
3331
3322
  }
@@ -3399,11 +3390,6 @@ exports.__wbg_resolve_4055c623acdd6a1b = function(arg0) {
3399
3390
  return ret;
3400
3391
  };
3401
3392
 
3402
- exports.__wbg_revokemembererror_new = function(arg0) {
3403
- const ret = RevokeMemberError.__wrap(arg0);
3404
- return ret;
3405
- };
3406
-
3407
3393
  exports.__wbg_serializationerror_new = function(arg0) {
3408
3394
  const ret = SerializationError.__wrap(arg0);
3409
3395
  return ret;
@@ -3555,12 +3541,6 @@ exports.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
3555
3541
  throw new Error(getStringFromWasm0(arg0, arg1));
3556
3542
  };
3557
3543
 
3558
- exports.__wbindgen_cast_133053e9d0cd85aa = function(arg0, arg1) {
3559
- // Cast intrinsic for `Closure(Closure { dtor_idx: 422, function: Function { arguments: [Externref], shim_idx: 423, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3560
- const ret = makeMutClosure(arg0, arg1, 422, __wbg_adapter_8);
3561
- return ret;
3562
- };
3563
-
3564
3544
  exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
3565
3545
  // Cast intrinsic for `Ref(String) -> Externref`.
3566
3546
  const ret = getStringFromWasm0(arg0, arg1);
@@ -3575,6 +3555,12 @@ exports.__wbindgen_cast_25a0a844437d0e92 = function(arg0, arg1) {
3575
3555
  return ret;
3576
3556
  };
3577
3557
 
3558
+ exports.__wbindgen_cast_670db80a6df12494 = function(arg0, arg1) {
3559
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 493, function: Function { arguments: [Externref], shim_idx: 494, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3560
+ const ret = makeMutClosure(arg0, arg1, 493, __wbg_adapter_8);
3561
+ return ret;
3562
+ };
3563
+
3578
3564
  exports.__wbindgen_cast_ae91babfc5c19b28 = function(arg0, arg1) {
3579
3565
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
3580
3566
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
Binary file