@bitwarden/commercial-sdk-internal 0.2.0-main.394 → 0.2.0-main.396

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.
@@ -858,18 +858,22 @@ exports.isEncryptFileError = function (error) {
858
858
  }
859
859
  };
860
860
 
861
- function wasm_bindgen__convert__closures_____invoke__hbb2542ae4cb45009(arg0, arg1, arg2) {
862
- wasm.wasm_bindgen__convert__closures_____invoke__hbb2542ae4cb45009(
861
+ function wasm_bindgen__convert__closures_____invoke__hb0cefc4a47b27ccb(arg0, arg1, arg2) {
862
+ wasm.wasm_bindgen__convert__closures_____invoke__hb0cefc4a47b27ccb(
863
863
  arg0,
864
864
  arg1,
865
865
  addHeapObject(arg2),
866
866
  );
867
867
  }
868
868
 
869
- function wasm_bindgen__convert__closures_____invoke__hd5a28d1a4ac42f9b(arg0, arg1, arg2) {
869
+ function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
870
+ wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
871
+ }
872
+
873
+ function wasm_bindgen__convert__closures_____invoke__h59c036539ecefa06(arg0, arg1, arg2) {
870
874
  try {
871
875
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
872
- wasm.wasm_bindgen__convert__closures_____invoke__hd5a28d1a4ac42f9b(
876
+ wasm.wasm_bindgen__convert__closures_____invoke__h59c036539ecefa06(
873
877
  retptr,
874
878
  arg0,
875
879
  arg1,
@@ -885,10 +889,6 @@ function wasm_bindgen__convert__closures_____invoke__hd5a28d1a4ac42f9b(arg0, arg
885
889
  }
886
890
  }
887
891
 
888
- function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
889
- wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
890
- }
891
-
892
892
  function wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f(arg0, arg1, arg2, arg3) {
893
893
  wasm.wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f(
894
894
  arg0,
@@ -1172,173 +1172,6 @@ if (Symbol.dispose) AuthClient.prototype[Symbol.dispose] = AuthClient.prototype.
1172
1172
 
1173
1173
  exports.AuthClient = AuthClient;
1174
1174
 
1175
- const BitwardenClientFinalization =
1176
- typeof FinalizationRegistry === "undefined"
1177
- ? { register: () => {}, unregister: () => {} }
1178
- : new FinalizationRegistry((ptr) => wasm.__wbg_bitwardenclient_free(ptr >>> 0, 1));
1179
- /**
1180
- * The main entry point for the Bitwarden SDK in WebAssembly environments
1181
- */
1182
- class BitwardenClient {
1183
- __destroy_into_raw() {
1184
- const ptr = this.__wbg_ptr;
1185
- this.__wbg_ptr = 0;
1186
- BitwardenClientFinalization.unregister(this);
1187
- return ptr;
1188
- }
1189
-
1190
- free() {
1191
- const ptr = this.__destroy_into_raw();
1192
- wasm.__wbg_bitwardenclient_free(ptr, 0);
1193
- }
1194
- /**
1195
- * Initialize a new instance of the SDK client
1196
- * @param {any} token_provider
1197
- * @param {ClientSettings | null} [settings]
1198
- */
1199
- constructor(token_provider, settings) {
1200
- const ret = wasm.bitwardenclient_new(
1201
- addHeapObject(token_provider),
1202
- isLikeNone(settings) ? 0 : addHeapObject(settings),
1203
- );
1204
- this.__wbg_ptr = ret >>> 0;
1205
- BitwardenClientFinalization.register(this, this.__wbg_ptr, this);
1206
- return this;
1207
- }
1208
- /**
1209
- * Test method, echoes back the input
1210
- * @param {string} msg
1211
- * @returns {string}
1212
- */
1213
- echo(msg) {
1214
- let deferred2_0;
1215
- let deferred2_1;
1216
- try {
1217
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1218
- const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1219
- const len0 = WASM_VECTOR_LEN;
1220
- wasm.bitwardenclient_echo(retptr, this.__wbg_ptr, ptr0, len0);
1221
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1222
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1223
- deferred2_0 = r0;
1224
- deferred2_1 = r1;
1225
- return getStringFromWasm0(r0, r1);
1226
- } finally {
1227
- wasm.__wbindgen_add_to_stack_pointer(16);
1228
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
1229
- }
1230
- }
1231
- /**
1232
- * Returns the current SDK version
1233
- * @returns {string}
1234
- */
1235
- version() {
1236
- let deferred1_0;
1237
- let deferred1_1;
1238
- try {
1239
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1240
- wasm.bitwardenclient_version(retptr, this.__wbg_ptr);
1241
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1242
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1243
- deferred1_0 = r0;
1244
- deferred1_1 = r1;
1245
- return getStringFromWasm0(r0, r1);
1246
- } finally {
1247
- wasm.__wbindgen_add_to_stack_pointer(16);
1248
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1249
- }
1250
- }
1251
- /**
1252
- * Test method, always throws an error
1253
- * @param {string} msg
1254
- */
1255
- throw(msg) {
1256
- try {
1257
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1258
- const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1259
- const len0 = WASM_VECTOR_LEN;
1260
- wasm.bitwardenclient_throw(retptr, this.__wbg_ptr, ptr0, len0);
1261
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1262
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1263
- if (r1) {
1264
- throw takeObject(r0);
1265
- }
1266
- } finally {
1267
- wasm.__wbindgen_add_to_stack_pointer(16);
1268
- }
1269
- }
1270
- /**
1271
- * Test method, calls http endpoint
1272
- * @param {string} url
1273
- * @returns {Promise<string>}
1274
- */
1275
- http_get(url) {
1276
- const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1277
- const len0 = WASM_VECTOR_LEN;
1278
- const ret = wasm.bitwardenclient_http_get(this.__wbg_ptr, ptr0, len0);
1279
- return takeObject(ret);
1280
- }
1281
- /**
1282
- * Auth related operations.
1283
- * @returns {AuthClient}
1284
- */
1285
- auth() {
1286
- const ret = wasm.bitwardenclient_auth(this.__wbg_ptr);
1287
- return AuthClient.__wrap(ret);
1288
- }
1289
- /**
1290
- * Bitwarden licensed operations.
1291
- * @returns {CommercialPasswordManagerClient}
1292
- */
1293
- commercial() {
1294
- const ret = wasm.bitwardenclient_commercial(this.__wbg_ptr);
1295
- return CommercialPasswordManagerClient.__wrap(ret);
1296
- }
1297
- /**
1298
- * Crypto related operations.
1299
- * @returns {CryptoClient}
1300
- */
1301
- crypto() {
1302
- const ret = wasm.bitwardenclient_crypto(this.__wbg_ptr);
1303
- return CryptoClient.__wrap(ret);
1304
- }
1305
- /**
1306
- * Vault item related operations.
1307
- * @returns {VaultClient}
1308
- */
1309
- vault() {
1310
- const ret = wasm.bitwardenclient_vault(this.__wbg_ptr);
1311
- return VaultClient.__wrap(ret);
1312
- }
1313
- /**
1314
- * Constructs a specific client for platform-specific functionality
1315
- * @returns {PlatformClient}
1316
- */
1317
- platform() {
1318
- const ret = wasm.bitwardenclient_platform(this.__wbg_ptr);
1319
- return PlatformClient.__wrap(ret);
1320
- }
1321
- /**
1322
- * Constructs a specific client for generating passwords and passphrases
1323
- * @returns {GeneratorClient}
1324
- */
1325
- generator() {
1326
- const ret = wasm.bitwardenclient_generator(this.__wbg_ptr);
1327
- return GeneratorClient.__wrap(ret);
1328
- }
1329
- /**
1330
- * Exporter related operations.
1331
- * @returns {ExporterClient}
1332
- */
1333
- exporters() {
1334
- const ret = wasm.bitwardenclient_exporters(this.__wbg_ptr);
1335
- return ExporterClient.__wrap(ret);
1336
- }
1337
- }
1338
- if (Symbol.dispose) BitwardenClient.prototype[Symbol.dispose] = BitwardenClient.prototype.free;
1339
-
1340
- exports.BitwardenClient = BitwardenClient;
1341
-
1342
1175
  const CipherRiskClientFinalization =
1343
1176
  typeof FinalizationRegistry === "undefined"
1344
1177
  ? { register: () => {}, unregister: () => {} }
@@ -3254,6 +3087,174 @@ if (Symbol.dispose) OutgoingMessage.prototype[Symbol.dispose] = OutgoingMessage.
3254
3087
 
3255
3088
  exports.OutgoingMessage = OutgoingMessage;
3256
3089
 
3090
+ const PasswordManagerClientFinalization =
3091
+ typeof FinalizationRegistry === "undefined"
3092
+ ? { register: () => {}, unregister: () => {} }
3093
+ : new FinalizationRegistry((ptr) => wasm.__wbg_passwordmanagerclient_free(ptr >>> 0, 1));
3094
+ /**
3095
+ * The main entry point for the Bitwarden SDK in WebAssembly environments
3096
+ */
3097
+ class PasswordManagerClient {
3098
+ __destroy_into_raw() {
3099
+ const ptr = this.__wbg_ptr;
3100
+ this.__wbg_ptr = 0;
3101
+ PasswordManagerClientFinalization.unregister(this);
3102
+ return ptr;
3103
+ }
3104
+
3105
+ free() {
3106
+ const ptr = this.__destroy_into_raw();
3107
+ wasm.__wbg_passwordmanagerclient_free(ptr, 0);
3108
+ }
3109
+ /**
3110
+ * Initialize a new instance of the SDK client
3111
+ * @param {any} token_provider
3112
+ * @param {ClientSettings | null} [settings]
3113
+ */
3114
+ constructor(token_provider, settings) {
3115
+ const ret = wasm.passwordmanagerclient_new(
3116
+ addHeapObject(token_provider),
3117
+ isLikeNone(settings) ? 0 : addHeapObject(settings),
3118
+ );
3119
+ this.__wbg_ptr = ret >>> 0;
3120
+ PasswordManagerClientFinalization.register(this, this.__wbg_ptr, this);
3121
+ return this;
3122
+ }
3123
+ /**
3124
+ * Test method, echoes back the input
3125
+ * @param {string} msg
3126
+ * @returns {string}
3127
+ */
3128
+ echo(msg) {
3129
+ let deferred2_0;
3130
+ let deferred2_1;
3131
+ try {
3132
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3133
+ const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3134
+ const len0 = WASM_VECTOR_LEN;
3135
+ wasm.passwordmanagerclient_echo(retptr, this.__wbg_ptr, ptr0, len0);
3136
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3137
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3138
+ deferred2_0 = r0;
3139
+ deferred2_1 = r1;
3140
+ return getStringFromWasm0(r0, r1);
3141
+ } finally {
3142
+ wasm.__wbindgen_add_to_stack_pointer(16);
3143
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
3144
+ }
3145
+ }
3146
+ /**
3147
+ * Returns the current SDK version
3148
+ * @returns {string}
3149
+ */
3150
+ version() {
3151
+ let deferred1_0;
3152
+ let deferred1_1;
3153
+ try {
3154
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3155
+ wasm.passwordmanagerclient_version(retptr, this.__wbg_ptr);
3156
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3157
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3158
+ deferred1_0 = r0;
3159
+ deferred1_1 = r1;
3160
+ return getStringFromWasm0(r0, r1);
3161
+ } finally {
3162
+ wasm.__wbindgen_add_to_stack_pointer(16);
3163
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3164
+ }
3165
+ }
3166
+ /**
3167
+ * Test method, always throws an error
3168
+ * @param {string} msg
3169
+ */
3170
+ throw(msg) {
3171
+ try {
3172
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3173
+ const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3174
+ const len0 = WASM_VECTOR_LEN;
3175
+ wasm.passwordmanagerclient_throw(retptr, this.__wbg_ptr, ptr0, len0);
3176
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3177
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3178
+ if (r1) {
3179
+ throw takeObject(r0);
3180
+ }
3181
+ } finally {
3182
+ wasm.__wbindgen_add_to_stack_pointer(16);
3183
+ }
3184
+ }
3185
+ /**
3186
+ * Test method, calls http endpoint
3187
+ * @param {string} url
3188
+ * @returns {Promise<string>}
3189
+ */
3190
+ http_get(url) {
3191
+ const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3192
+ const len0 = WASM_VECTOR_LEN;
3193
+ const ret = wasm.passwordmanagerclient_http_get(this.__wbg_ptr, ptr0, len0);
3194
+ return takeObject(ret);
3195
+ }
3196
+ /**
3197
+ * Auth related operations.
3198
+ * @returns {AuthClient}
3199
+ */
3200
+ auth() {
3201
+ const ret = wasm.passwordmanagerclient_auth(this.__wbg_ptr);
3202
+ return AuthClient.__wrap(ret);
3203
+ }
3204
+ /**
3205
+ * Bitwarden licensed operations.
3206
+ * @returns {CommercialPasswordManagerClient}
3207
+ */
3208
+ commercial() {
3209
+ const ret = wasm.passwordmanagerclient_commercial(this.__wbg_ptr);
3210
+ return CommercialPasswordManagerClient.__wrap(ret);
3211
+ }
3212
+ /**
3213
+ * Crypto related operations.
3214
+ * @returns {CryptoClient}
3215
+ */
3216
+ crypto() {
3217
+ const ret = wasm.passwordmanagerclient_crypto(this.__wbg_ptr);
3218
+ return CryptoClient.__wrap(ret);
3219
+ }
3220
+ /**
3221
+ * Vault item related operations.
3222
+ * @returns {VaultClient}
3223
+ */
3224
+ vault() {
3225
+ const ret = wasm.passwordmanagerclient_vault(this.__wbg_ptr);
3226
+ return VaultClient.__wrap(ret);
3227
+ }
3228
+ /**
3229
+ * Constructs a specific client for platform-specific functionality
3230
+ * @returns {PlatformClient}
3231
+ */
3232
+ platform() {
3233
+ const ret = wasm.passwordmanagerclient_platform(this.__wbg_ptr);
3234
+ return PlatformClient.__wrap(ret);
3235
+ }
3236
+ /**
3237
+ * Constructs a specific client for generating passwords and passphrases
3238
+ * @returns {GeneratorClient}
3239
+ */
3240
+ generator() {
3241
+ const ret = wasm.passwordmanagerclient_generator(this.__wbg_ptr);
3242
+ return GeneratorClient.__wrap(ret);
3243
+ }
3244
+ /**
3245
+ * Exporter related operations.
3246
+ * @returns {ExporterClient}
3247
+ */
3248
+ exporters() {
3249
+ const ret = wasm.passwordmanagerclient_exporters(this.__wbg_ptr);
3250
+ return ExporterClient.__wrap(ret);
3251
+ }
3252
+ }
3253
+ if (Symbol.dispose)
3254
+ PasswordManagerClient.prototype[Symbol.dispose] = PasswordManagerClient.prototype.free;
3255
+
3256
+ exports.PasswordManagerClient = PasswordManagerClient;
3257
+
3257
3258
  const PlatformClientFinalization =
3258
3259
  typeof FinalizationRegistry === "undefined"
3259
3260
  ? { register: () => {}, unregister: () => {} }
@@ -3283,7 +3284,7 @@ class PlatformClient {
3283
3284
  * @returns {StateClient}
3284
3285
  */
3285
3286
  state() {
3286
- const ret = wasm.bitwardenclient_platform(this.__wbg_ptr);
3287
+ const ret = wasm.passwordmanagerclient_platform(this.__wbg_ptr);
3287
3288
  return StateClient.__wrap(ret);
3288
3289
  }
3289
3290
  /**
@@ -4548,7 +4549,7 @@ exports.__wbg_call_e762c39fa8ea36bf = function () {
4548
4549
  }, arguments);
4549
4550
  };
4550
4551
 
4551
- exports.__wbg_cipher_bfa1892c754b7af0 = function (arg0) {
4552
+ exports.__wbg_cipher_063587a007184a5b = function (arg0) {
4552
4553
  const ret = getObject(arg0).cipher;
4553
4554
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4554
4555
  };
@@ -4641,7 +4642,7 @@ exports.__wbg_fetch_f8ba0e29a9d6de0d = function (arg0, arg1) {
4641
4642
  return addHeapObject(ret);
4642
4643
  };
4643
4644
 
4644
- exports.__wbg_folder_a20cb32134a2391c = function (arg0) {
4645
+ exports.__wbg_folder_95171ac6b8c27a8c = function (arg0) {
4645
4646
  const ret = getObject(arg0).folder;
4646
4647
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4647
4648
  };
@@ -4668,22 +4669,7 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function (arg0) {
4668
4669
  return ret;
4669
4670
  };
4670
4671
 
4671
- exports.__wbg_get_3c2f69a2a0b542fa = function () {
4672
- return handleError(function (arg0, arg1, arg2) {
4673
- let deferred0_0;
4674
- let deferred0_1;
4675
- try {
4676
- deferred0_0 = arg1;
4677
- deferred0_1 = arg2;
4678
- const ret = getObject(arg0).get(getStringFromWasm0(arg1, arg2));
4679
- return addHeapObject(ret);
4680
- } finally {
4681
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
4682
- }
4683
- }, arguments);
4684
- };
4685
-
4686
- exports.__wbg_get_729bb17622e32fbe = function () {
4672
+ exports.__wbg_get_1838d0ffbb0df13f = function () {
4687
4673
  return handleError(function (arg0, arg1, arg2) {
4688
4674
  let deferred0_0;
4689
4675
  let deferred0_1;
@@ -4703,7 +4689,7 @@ exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
4703
4689
  return addHeapObject(ret);
4704
4690
  };
4705
4691
 
4706
- exports.__wbg_get_access_token_8ae90d4959cc3fed = function (arg0) {
4692
+ exports.__wbg_get_access_token_67b9a6854891236e = function (arg0) {
4707
4693
  const ret = getObject(arg0).get_access_token();
4708
4694
  return addHeapObject(ret);
4709
4695
  };
@@ -4715,6 +4701,21 @@ exports.__wbg_get_efcb449f58ec27c2 = function () {
4715
4701
  }, arguments);
4716
4702
  };
4717
4703
 
4704
+ exports.__wbg_get_f97d1609fe1ef27f = function () {
4705
+ return handleError(function (arg0, arg1, arg2) {
4706
+ let deferred0_0;
4707
+ let deferred0_1;
4708
+ try {
4709
+ deferred0_0 = arg1;
4710
+ deferred0_1 = arg2;
4711
+ const ret = getObject(arg0).get(getStringFromWasm0(arg1, arg2));
4712
+ return addHeapObject(ret);
4713
+ } finally {
4714
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
4715
+ }
4716
+ }, arguments);
4717
+ };
4718
+
4718
4719
  exports.__wbg_get_with_ref_key_1dc361bd10053bfe = function (arg0, arg1) {
4719
4720
  const ret = getObject(arg0)[getObject(arg1)];
4720
4721
  return addHeapObject(ret);
@@ -4899,14 +4900,14 @@ exports.__wbg_length_cdd215e10d9dd507 = function (arg0) {
4899
4900
  return ret;
4900
4901
  };
4901
4902
 
4902
- exports.__wbg_list_051d904cdfd79905 = function () {
4903
+ exports.__wbg_list_61f135d00ba1fd36 = function () {
4903
4904
  return handleError(function (arg0) {
4904
4905
  const ret = getObject(arg0).list();
4905
4906
  return addHeapObject(ret);
4906
4907
  }, arguments);
4907
4908
  };
4908
4909
 
4909
- exports.__wbg_list_8d181ad99524aa33 = function () {
4910
+ exports.__wbg_list_a02566fdc340b1ad = function () {
4910
4911
  return handleError(function (arg0) {
4911
4912
  const ret = getObject(arg0).list();
4912
4913
  return addHeapObject(ret);
@@ -5150,7 +5151,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
5150
5151
  }, arguments);
5151
5152
  };
5152
5153
 
5153
- exports.__wbg_remove_065dfc4de9f12f65 = function () {
5154
+ exports.__wbg_remove_3594f15e8fca4743 = function () {
5154
5155
  return handleError(function (arg0, arg1, arg2) {
5155
5156
  let deferred0_0;
5156
5157
  let deferred0_1;
@@ -5165,7 +5166,7 @@ exports.__wbg_remove_065dfc4de9f12f65 = function () {
5165
5166
  }, arguments);
5166
5167
  };
5167
5168
 
5168
- exports.__wbg_remove_bcb44e8a1d1bdd2c = function () {
5169
+ exports.__wbg_remove_9c4c3e3b67e6b3a1 = function () {
5169
5170
  return handleError(function (arg0, arg1, arg2) {
5170
5171
  let deferred0_0;
5171
5172
  let deferred0_1;
@@ -5211,11 +5212,7 @@ exports.__wbg_setTimeout_ca12ead8b48245e2 = function (arg0, arg1) {
5211
5212
  return addHeapObject(ret);
5212
5213
  };
5213
5214
 
5214
- exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
5215
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5216
- };
5217
-
5218
- exports.__wbg_set_4881b2237c76b95f = function () {
5215
+ exports.__wbg_set_0159738cb1dd7a1d = function () {
5219
5216
  return handleError(function (arg0, arg1, arg2, arg3) {
5220
5217
  let deferred0_0;
5221
5218
  let deferred0_1;
@@ -5230,7 +5227,11 @@ exports.__wbg_set_4881b2237c76b95f = function () {
5230
5227
  }, arguments);
5231
5228
  };
5232
5229
 
5233
- exports.__wbg_set_68faafa99a28839c = function () {
5230
+ exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
5231
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5232
+ };
5233
+
5234
+ exports.__wbg_set_834a40164c1f126c = function () {
5234
5235
  return handleError(function (arg0, arg1, arg2, arg3) {
5235
5236
  let deferred0_0;
5236
5237
  let deferred0_1;
@@ -5433,19 +5434,30 @@ exports.__wbg_warn_8f5b5437666d0885 = function (arg0, arg1, arg2, arg3) {
5433
5434
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
5434
5435
  };
5435
5436
 
5437
+ exports.__wbindgen_cast_1dc3b0d4f0abedd3 = function (arg0, arg1) {
5438
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 298, function: Function { arguments: [Externref], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5439
+ const ret = makeMutClosure(
5440
+ arg0,
5441
+ arg1,
5442
+ wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
5443
+ wasm_bindgen__convert__closures_____invoke__hb0cefc4a47b27ccb,
5444
+ );
5445
+ return addHeapObject(ret);
5446
+ };
5447
+
5436
5448
  exports.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
5437
5449
  // Cast intrinsic for `Ref(String) -> Externref`.
5438
5450
  const ret = getStringFromWasm0(arg0, arg1);
5439
5451
  return addHeapObject(ret);
5440
5452
  };
5441
5453
 
5442
- exports.__wbindgen_cast_3bdbc0e1dbbca79e = function (arg0, arg1) {
5443
- // Cast intrinsic for `Closure(Closure { dtor_idx: 548, function: Function { arguments: [], shim_idx: 302, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5454
+ exports.__wbindgen_cast_4042b341512ce63a = function (arg0, arg1) {
5455
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 41, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5444
5456
  const ret = makeMutClosure(
5445
5457
  arg0,
5446
5458
  arg1,
5447
- wasm.wasm_bindgen__closure__destroy__hfcb631b72e5e985c,
5448
- wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e,
5459
+ wasm.wasm_bindgen__closure__destroy__hd2baf0154e030ab9,
5460
+ wasm_bindgen__convert__closures_____invoke__hb0cefc4a47b27ccb,
5449
5461
  );
5450
5462
  return addHeapObject(ret);
5451
5463
  };
@@ -5464,6 +5476,17 @@ exports.__wbindgen_cast_5fea77eff9dd275c = function (arg0, arg1) {
5464
5476
  return addHeapObject(ret);
5465
5477
  };
5466
5478
 
5479
+ exports.__wbindgen_cast_6b441f2e42512d6e = function (arg0, arg1) {
5480
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 545, function: Function { arguments: [], shim_idx: 299, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5481
+ const ret = makeMutClosure(
5482
+ arg0,
5483
+ arg1,
5484
+ wasm.wasm_bindgen__closure__destroy__hfcb631b72e5e985c,
5485
+ wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e,
5486
+ );
5487
+ return addHeapObject(ret);
5488
+ };
5489
+
5467
5490
  exports.__wbindgen_cast_7a6d185652cd8149 = function (arg0, arg1) {
5468
5491
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
5469
5492
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -5478,53 +5501,31 @@ exports.__wbindgen_cast_9ae0607507abb057 = function (arg0) {
5478
5501
  return addHeapObject(ret);
5479
5502
  };
5480
5503
 
5481
- exports.__wbindgen_cast_a99d902873e45bb1 = function (arg0, arg1) {
5482
- // Cast intrinsic for `Closure(Closure { dtor_idx: 301, function: Function { arguments: [Externref], shim_idx: 40, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5483
- const ret = makeMutClosure(
5484
- arg0,
5485
- arg1,
5486
- wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
5487
- wasm_bindgen__convert__closures_____invoke__hbb2542ae4cb45009,
5488
- );
5489
- return addHeapObject(ret);
5490
- };
5491
-
5492
- exports.__wbindgen_cast_c56a9a44151353f2 = function (arg0, arg1) {
5493
- // Cast intrinsic for `Closure(Closure { dtor_idx: 39, function: Function { arguments: [NamedExternref("Event")], shim_idx: 42, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
5494
- const ret = makeMutClosure(
5495
- arg0,
5496
- arg1,
5497
- wasm.wasm_bindgen__closure__destroy__h23c4eb650ac78f8a,
5498
- wasm_bindgen__convert__closures_____invoke__hd5a28d1a4ac42f9b,
5499
- );
5504
+ exports.__wbindgen_cast_cb9088102bce6b30 = function (arg0, arg1) {
5505
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
5506
+ const ret = getArrayU8FromWasm0(arg0, arg1);
5500
5507
  return addHeapObject(ret);
5501
5508
  };
5502
5509
 
5503
- exports.__wbindgen_cast_c6953dec10624911 = function (arg0, arg1) {
5504
- // Cast intrinsic for `Closure(Closure { dtor_idx: 39, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 40, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5510
+ exports.__wbindgen_cast_d49c305f67640cb1 = function (arg0, arg1) {
5511
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 41, function: Function { arguments: [NamedExternref("Event")], shim_idx: 42, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
5505
5512
  const ret = makeMutClosure(
5506
5513
  arg0,
5507
5514
  arg1,
5508
- wasm.wasm_bindgen__closure__destroy__h23c4eb650ac78f8a,
5509
- wasm_bindgen__convert__closures_____invoke__hbb2542ae4cb45009,
5515
+ wasm.wasm_bindgen__closure__destroy__hd2baf0154e030ab9,
5516
+ wasm_bindgen__convert__closures_____invoke__h59c036539ecefa06,
5510
5517
  );
5511
5518
  return addHeapObject(ret);
5512
5519
  };
5513
5520
 
5514
- exports.__wbindgen_cast_cb9088102bce6b30 = function (arg0, arg1) {
5515
- // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
5516
- const ret = getArrayU8FromWasm0(arg0, arg1);
5517
- return addHeapObject(ret);
5518
- };
5519
-
5520
5521
  exports.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
5521
5522
  // Cast intrinsic for `F64 -> Externref`.
5522
5523
  const ret = arg0;
5523
5524
  return addHeapObject(ret);
5524
5525
  };
5525
5526
 
5526
- exports.__wbindgen_cast_e1b8613407289e9c = function (arg0, arg1) {
5527
- // Cast intrinsic for `Closure(Closure { dtor_idx: 301, function: Function { arguments: [], shim_idx: 302, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5527
+ exports.__wbindgen_cast_d87bfd09ab1288e4 = function (arg0, arg1) {
5528
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 298, function: Function { arguments: [], shim_idx: 299, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5528
5529
  const ret = makeMutClosure(
5529
5530
  arg0,
5530
5531
  arg1,