@inclavare-containers/tng 2.7.3 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,6 +4,10 @@
4
4
 
5
5
  The TNG Client JavaScript SDK provides client functionality for use in browser environments, built with wasm-pack.
6
6
 
7
+ ## Live Demo
8
+
9
+ A live demo of the TNG JavaScript SDK integrated into a web page is hosted on GitHub Pages: <https://inclavare-containers.github.io/TNG/>
10
+
7
11
  ## Getting the SDK
8
12
 
9
13
  You can obtain the TNG SDK in two ways:
@@ -185,175 +189,10 @@ If you want to integrate in a Chrome extension, due to manifest v3 restrictions,
185
189
  ```
186
190
 
187
191
 
188
- ## Running the Example Code
189
-
190
- The pkg directory contains an example program that uses the TNG SDK to send encrypted requests. The example requires a confidential computing server instance and a local computer. The following describes how to run the example.
191
-
192
- ### 1. Prepare the Server-side Service
193
-
194
- Use [dummyhttp](https://github.com/svenstaro/dummyhttp), a simple HTTP server program, to simulate our backend service. We need to install and run it.
195
-
196
- Installation
197
-
198
- ```sh
199
- cargo install dummyhttp --locked
200
- ```
201
-
202
- Run this HTTP server and make it listen on port 30001. Now we have a backend HTTP service listening on port 30001.
203
-
204
- ```sh
205
- dummyhttp -p 30001 -vvvv
206
- ```
207
-
208
- > [!NOTE]
209
- > You can use the curl command on the local computer to test direct access to this HTTP server to check network connectivity.
210
-
211
- ### 2. Compile and Install TNG on the Server Side
212
-
213
- Build the RPM package
214
-
215
- ```sh
216
- make create-tarball
217
- make rpm-build
218
- ```
219
-
220
- The artifacts will be placed in `~/rpmbuild/RPMS/*/trusted-network-gateway-*.rpm`, which you can install as follows:
221
-
222
- ```sh
223
- yum install ~/rpmbuild/RPMS/*/trusted-network-gateway-*.rpm -y
224
- ```
225
-
226
- If you want to build the container version of TNG:
227
-
228
- ```sh
229
- # First install podman
230
- yum install podman podman-docker -y
231
- # Build the container image
232
- docker build -t tng:test .
233
- ```
234
-
235
- This will produce a container image named `tng:test`.
236
-
237
- ### 3. Run Attestation-Agent on the Server Side
238
-
239
- You can choose to install attestation-agent from the yum repository or compile and deploy your own attestation-agent.
240
-
241
- ```sh
242
- yum install -y attestation-agent
243
- ```
244
-
245
- Run
246
-
247
- ```sh
248
- RUST_LOG=debug attestation-agent --attestation_sock unix:///run/confidential-containers/attestation-agent/attestation-agent.sock
249
- ```
250
-
251
- ### 4. Run TNG on the Server Side
252
-
253
- ```sh
254
- tng launch --config-content='
255
- {
256
- "add_egress": [
257
- {
258
- "netfilter": {
259
- "capture_dst": {
260
- "port": 30001
261
- },
262
- "capture_local_traffic": true
263
- },
264
- "ohttp": {},
265
- "attest": {
266
- "aa_addr": "unix:///run/confidential-containers/attestation-agent/attestation-agent.sock"
267
- }
268
- }
269
- ]
270
- }'
271
- ```
272
-
273
- > [!NOTE]
274
- >
275
- > - Currently, the TNG SDK only supports server-side verification, so you must provide the `"attest"` option
276
- > - As shown above, you need to add an `"ohttp": {}` entry in the TNG configuration to enable using OHTTP as the encryption protocol (instead of rats-tls) for bidirectional encrypted traffic transmission.
277
-
278
- ### 5. Run the Attestation Service Instance
279
-
280
- You need to prepare an Attestation Service instance that exposes a RESTful HTTP interface. This can be achieved by installing the `trustee` package from the yum repository or compiling and deploying your own `restful-as`.
281
-
282
- A reference run command is as follows:
283
-
284
- ```sh
285
- cat <<EOF > /tmp/config_with_cert.json
286
- {
287
- "work_dir": "/var/lib/attestation-service/",
288
- "rvps_config": {
289
- "type": "BuiltIn",
290
- "storage": {
291
- "type": "LocalFs"
292
- }
293
- },
294
- "attestation_token_broker": {
295
- "type": "Simple",
296
- "duration_min": 5
297
- }
298
- }
299
- EOF
300
-
301
- RUST_LOG=debug restful-as --socket 0.0.0.0:9080 --config-file /tmp/config_with_cert.json
302
-
303
- # Since restful-as natively does not support CORS configuration, here we run a CORS proxy service (https://github.com/bulletmark/corsproxy) that forwards requests from port 8080 to the real Attestation Service.
304
- podman run -it --rm --net=host docker.io/bulletmark/corsproxy:latest 8080=http://127.0.0.1:9080
305
- ```
306
-
307
- The above will expose an Attestation Service on port 8080.
308
-
309
- > [!NOTE]
310
- > Since the TNG SDK needs to initiate requests to the Attestation Service instance in the browser, please ensure you handle the CORS rules properly.
311
-
312
- Here is an example:
313
-
314
- ### 6. Compile the TNG SDK
315
-
316
- ```sh
317
- make wasm-build-debug
318
- ```
192
+ ## Cross-Origin Requests (CORS)
319
193
 
320
- This will produce the corresponding `.wasm` and `.js` files in the `tng-wasm/pkg/` directory.
194
+ When the browser needs to use the TNG SDK cross-origin to access encrypted backend services, some additional configuration is required — see [docs/cors.md](docs/cors.md).
321
195
 
322
- ### 7. Modify the Frontend Page Code
323
-
324
- Please modify the following content in [index.html](pkg/index.html) as needed:
325
-
326
- URL of the backend service to access:
327
-
328
- ```js
329
- const url = "http://127.0.0.1:30001/foo/bar?baz=qux";
330
- ```
331
-
332
- Attestation Service URL and policy ID for verification:
333
-
334
- ```js
335
- const asAddr = "http://127.0.0.1:8080/";
336
- const policyIds = ["default"];
337
- ```
338
-
339
- ### 8. Run the Frontend Service on the Server Side
340
-
341
- First install miniserve
342
-
343
- ```sh
344
- cargo +nightly-2025-07-07 install miniserve --locked
345
- ```
346
-
347
- Run miniserve
348
-
349
- ```sh
350
- miniserve ./tng-wasm/pkg --index index.html --header "Cross-Origin-Opener-Policy:same-origin" --header "Cross-Origin-Embedder-Policy:require-corp" --port 8082
351
- ```
352
-
353
- > [!NOTE]
354
- >
355
- > - [`miniserve`](https://github.com/svenstaro/miniserve) is a pure static resource server. It's no different from Nginx or Python's http.server, and you can use other components as alternatives.
356
-
357
- ### 9. Access in the Browser
196
+ ## Running the Example Code
358
197
 
359
- Open a browser on the local computer and visit `http://<confidential computing service instance ip>:8082/`. You can view the request response logs in F12.
198
+ The `example/` directory contains an example page that uses the TNG SDK to send encrypted requests. See [example/README.md](example/README.md) for full end-to-end deployment steps.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "collaborators": [
5
5
  "Kun Lai <laikun@linux.alibaba.com>"
6
6
  ],
7
- "version": "2.7.3",
7
+ "version": "2.9.0",
8
8
  "license": "Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",
package/tng_wasm.d.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  * *This API requires the following crate features to be activated: `ReadableStreamType`*
7
7
  */
8
8
 
9
- type ReadableStreamType = "bytes";
9
+ export type ReadableStreamType = "bytes";
10
10
 
11
11
  export class IntoUnderlyingByteSource {
12
12
  private constructor();
@@ -52,7 +52,7 @@ export interface InitOutput {
52
52
  readonly fetch: (a: number, b: number, c: any, d: any) => any;
53
53
  readonly init_tng: () => void;
54
54
  readonly task_worker_entry_point: (a: number) => [number, number];
55
- readonly ring_core_0_17_11__bn_mul_mont: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
55
+ readonly ring_core_0_17_14__bn_mul_mont: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
56
56
  readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
57
57
  readonly intounderlyingsink_write: (a: number, b: any) => any;
58
58
  readonly intounderlyingsink_close: (a: number) => any;
@@ -66,14 +66,11 @@ export interface InitOutput {
66
66
  readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
67
67
  readonly intounderlyingsource_pull: (a: number, b: any) => any;
68
68
  readonly intounderlyingsource_cancel: (a: number) => void;
69
- readonly wasm_bindgen__closure__destroy__h608d62b8eccc8f6e: (a: number, b: number) => void;
70
- readonly wasm_bindgen__closure__destroy__hbb5960641dfaf99a: (a: number, b: number) => void;
71
- readonly wasm_bindgen__closure__destroy__h2925d4d1c19a6d50: (a: number, b: number) => void;
72
- readonly wasm_bindgen__convert__closures_____invoke__h38253c4a1aa54e27: (a: number, b: number, c: any) => [number, number];
73
- readonly wasm_bindgen__convert__closures_____invoke__h4e91db2f1b7350bd: (a: number, b: number, c: any, d: any) => void;
74
- readonly wasm_bindgen__convert__closures_____invoke__hdfdaa0711fe9a60e: (a: number, b: number, c: any) => void;
75
- readonly wasm_bindgen__convert__closures_____invoke__hfa390009d5ba6f84: (a: number, b: number, c: any) => void;
76
- readonly wasm_bindgen__convert__closures_____invoke__h7938576e03ec4167: (a: number, b: number) => void;
69
+ readonly wasm_bindgen__convert__closures_____invoke__ha59ba16ef22dfc70: (a: number, b: number, c: any) => [number, number];
70
+ readonly wasm_bindgen__convert__closures_____invoke__h559a482ac3702f86: (a: number, b: number, c: any, d: any) => void;
71
+ readonly wasm_bindgen__convert__closures_____invoke__h665106e7067bf987: (a: number, b: number, c: any) => void;
72
+ readonly wasm_bindgen__convert__closures_____invoke__h860fbeea0fd5b879: (a: number, b: number, c: any) => void;
73
+ readonly wasm_bindgen__convert__closures_____invoke__h359c204a99f94cc7: (a: number, b: number) => void;
77
74
  readonly memory: WebAssembly.Memory;
78
75
  readonly __wbindgen_malloc: (a: number, b: number) => number;
79
76
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
@@ -81,6 +78,7 @@ export interface InitOutput {
81
78
  readonly __externref_table_alloc: () => number;
82
79
  readonly __wbindgen_externrefs: WebAssembly.Table;
83
80
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
81
+ readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
84
82
  readonly __externref_table_dealloc: (a: number) => void;
85
83
  readonly __wbindgen_thread_destroy: (a?: number, b?: number, c?: number) => void;
86
84
  readonly __wbindgen_start: (a: number) => void;
package/tng_wasm.js CHANGED
@@ -87,7 +87,6 @@ if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyin
87
87
 
88
88
  export class IntoUnderlyingSource {
89
89
  static __wrap(ptr) {
90
- ptr = ptr >>> 0;
91
90
  const obj = Object.create(IntoUnderlyingSource.prototype);
92
91
  obj.__wbg_ptr = ptr;
93
92
  IntoUnderlyingSourceFinalization.register(obj, obj.__wbg_ptr, obj);
@@ -146,83 +145,82 @@ export function task_worker_entry_point(ptr) {
146
145
  throw takeFromExternrefTable0(ret[0]);
147
146
  }
148
147
  }
149
-
150
148
  function __wbg_get_imports(memory) {
151
149
  const import0 = {
152
150
  __proto__: null,
153
- __wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
151
+ __wbg_Error_92b29b0548f8b746: function(arg0, arg1) {
154
152
  const ret = Error(getStringFromWasm0(arg0, arg1));
155
153
  return ret;
156
154
  },
157
- __wbg_Number_a5a435bd7bbec835: function(arg0) {
155
+ __wbg_Number_9a4e0ecb0fa16705: function(arg0) {
158
156
  const ret = Number(arg0);
159
157
  return ret;
160
158
  },
161
- __wbg___wbindgen_bigint_get_as_i64_447a76b5c6ef7bda: function(arg0, arg1) {
159
+ __wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f: function(arg0, arg1) {
162
160
  const v = arg1;
163
161
  const ret = typeof(v) === 'bigint' ? v : undefined;
164
162
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
165
163
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
166
164
  },
167
- __wbg___wbindgen_boolean_get_c0f3f60bac5a78d1: function(arg0) {
165
+ __wbg___wbindgen_boolean_get_fa956cfa2d1bd751: function(arg0) {
168
166
  const v = arg0;
169
167
  const ret = typeof(v) === 'boolean' ? v : undefined;
170
168
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
171
169
  },
172
- __wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
170
+ __wbg___wbindgen_debug_string_c25d447a39f5578f: function(arg0, arg1) {
173
171
  const ret = debugString(arg1);
174
172
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
175
173
  const len1 = WASM_VECTOR_LEN;
176
174
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
177
175
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
178
176
  },
179
- __wbg___wbindgen_in_41dbb8413020e076: function(arg0, arg1) {
177
+ __wbg___wbindgen_in_aca499c5de7ff5e5: function(arg0, arg1) {
180
178
  const ret = arg0 in arg1;
181
179
  return ret;
182
180
  },
183
- __wbg___wbindgen_is_bigint_e2141d4f045b7eda: function(arg0) {
181
+ __wbg___wbindgen_is_bigint_2f76dc55065b4273: function(arg0) {
184
182
  const ret = typeof(arg0) === 'bigint';
185
183
  return ret;
186
184
  },
187
- __wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
185
+ __wbg___wbindgen_is_function_1ff95bcc5517c252: function(arg0) {
188
186
  const ret = typeof(arg0) === 'function';
189
187
  return ret;
190
188
  },
191
- __wbg___wbindgen_is_object_781bc9f159099513: function(arg0) {
189
+ __wbg___wbindgen_is_object_a27215656b807791: function(arg0) {
192
190
  const val = arg0;
193
191
  const ret = typeof(val) === 'object' && val !== null;
194
192
  return ret;
195
193
  },
196
- __wbg___wbindgen_is_string_7ef6b97b02428fae: function(arg0) {
194
+ __wbg___wbindgen_is_string_ea5e6cc2e4141dfe: function(arg0) {
197
195
  const ret = typeof(arg0) === 'string';
198
196
  return ret;
199
197
  },
200
- __wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
198
+ __wbg___wbindgen_is_undefined_c05833b95a3cf397: function(arg0) {
201
199
  const ret = arg0 === undefined;
202
200
  return ret;
203
201
  },
204
- __wbg___wbindgen_jsval_eq_ee31bfad3e536463: function(arg0, arg1) {
202
+ __wbg___wbindgen_jsval_eq_e659fcf7b0e32763: function(arg0, arg1) {
205
203
  const ret = arg0 === arg1;
206
204
  return ret;
207
205
  },
208
- __wbg___wbindgen_jsval_loose_eq_5bcc3bed3c69e72b: function(arg0, arg1) {
206
+ __wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170: function(arg0, arg1) {
209
207
  const ret = arg0 == arg1;
210
208
  return ret;
211
209
  },
212
- __wbg___wbindgen_memory_edb3f01e3930bbf6: function() {
210
+ __wbg___wbindgen_memory_de265df8aadd6273: function() {
213
211
  const ret = wasm.memory;
214
212
  return ret;
215
213
  },
216
- __wbg___wbindgen_number_get_34bb9d9dcfa21373: function(arg0, arg1) {
214
+ __wbg___wbindgen_number_get_394265ed1e1b84ee: function(arg0, arg1) {
217
215
  const obj = arg1;
218
216
  const ret = typeof(obj) === 'number' ? obj : undefined;
219
217
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
220
218
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
221
219
  },
222
- __wbg___wbindgen_rethrow_5d3a9250cec92549: function(arg0) {
220
+ __wbg___wbindgen_rethrow_4915403b40f010b4: function(arg0) {
223
221
  throw arg0;
224
222
  },
225
- __wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
223
+ __wbg___wbindgen_string_get_b0ca35b86a603356: function(arg0, arg1) {
226
224
  const obj = arg1;
227
225
  const ret = typeof(obj) === 'string' ? obj : undefined;
228
226
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -230,70 +228,70 @@ function __wbg_get_imports(memory) {
230
228
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
231
229
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
232
230
  },
233
- __wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
231
+ __wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
234
232
  throw new Error(getStringFromWasm0(arg0, arg1));
235
233
  },
236
- __wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
234
+ __wbg__wbg_cb_unref_fffb441def202758: function(arg0) {
237
235
  arg0._wbg_cb_unref();
238
236
  },
239
- __wbg_abort_5ef96933660780b7: function(arg0) {
237
+ __wbg_abort_8bae0f33e7833997: function(arg0) {
240
238
  arg0.abort();
241
239
  },
242
- __wbg_abort_6479c2d794ebf2ee: function(arg0, arg1) {
240
+ __wbg_abort_eee9248a6d680839: function(arg0, arg1) {
243
241
  arg0.abort(arg1);
244
242
  },
245
- __wbg_append_608dfb635ee8998f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
243
+ __wbg_append_01c74e5c6b58aa64: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
246
244
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
247
245
  }, arguments); },
248
- __wbg_arrayBuffer_eb8e9ca620af2a19: function() { return handleError(function (arg0) {
246
+ __wbg_arrayBuffer_3b637f0fa65c5351: function() { return handleError(function (arg0) {
249
247
  const ret = arg0.arrayBuffer();
250
248
  return ret;
251
249
  }, arguments); },
252
- __wbg_async_b33e4cb28c6b2093: function(arg0) {
250
+ __wbg_async_37b7cd4cbabb646c: function(arg0) {
253
251
  const ret = arg0.async;
254
252
  return ret;
255
253
  },
256
- __wbg_body_9fd07dcbb5b77be9: function(arg0) {
254
+ __wbg_body_18c9f2ac15ead4b2: function(arg0) {
257
255
  const ret = arg0.body;
258
256
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
259
257
  },
260
- __wbg_body_ac1dad652946e6da: function(arg0) {
258
+ __wbg_body_2a9122b81e23d7e2: function(arg0) {
261
259
  const ret = arg0.body;
262
260
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
263
261
  },
264
- __wbg_buffer_60b8043cd926067d: function(arg0) {
262
+ __wbg_buffer_0f212447ac64c53b: function(arg0) {
265
263
  const ret = arg0.buffer;
266
264
  return ret;
267
265
  },
268
- __wbg_buffer_eb2779983eb67380: function(arg0) {
266
+ __wbg_buffer_54b87055582c8a81: function(arg0) {
269
267
  const ret = arg0.buffer;
270
268
  return ret;
271
269
  },
272
- __wbg_byobRequest_6342e5f2b232c0f9: function(arg0) {
270
+ __wbg_byobRequest_06b654bb15590436: function(arg0) {
273
271
  const ret = arg0.byobRequest;
274
272
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
275
273
  },
276
- __wbg_byteLength_607b856aa6c5a508: function(arg0) {
274
+ __wbg_byteLength_41862ca4020b9c43: function(arg0) {
277
275
  const ret = arg0.byteLength;
278
276
  return ret;
279
277
  },
280
- __wbg_byteOffset_b26b63681c83856c: function(arg0) {
278
+ __wbg_byteOffset_d42e18c4441f628b: function(arg0) {
281
279
  const ret = arg0.byteOffset;
282
280
  return ret;
283
281
  },
284
- __wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
285
- const ret = arg0.call(arg1, arg2);
282
+ __wbg_call_8a2dd23819f8a60a: function() { return handleError(function (arg0, arg1) {
283
+ const ret = arg0.call(arg1);
286
284
  return ret;
287
285
  }, arguments); },
288
- __wbg_call_e133b57c9155d22c: function() { return handleError(function (arg0, arg1) {
289
- const ret = arg0.call(arg1);
286
+ __wbg_call_a6e5c5dce5018821: function() { return handleError(function (arg0, arg1, arg2) {
287
+ const ret = arg0.call(arg1, arg2);
290
288
  return ret;
291
289
  }, arguments); },
292
- __wbg_cancel_79b3bea07a1028e7: function(arg0) {
290
+ __wbg_cancel_3983a93e24cc66b3: function(arg0) {
293
291
  const ret = arg0.cancel();
294
292
  return ret;
295
293
  },
296
- __wbg_catch_d7ed0375ab6532a5: function(arg0, arg1) {
294
+ __wbg_catch_c1a60df4c30d76d3: function(arg0, arg1) {
297
295
  const ret = arg0.catch(arg1);
298
296
  return ret;
299
297
  },
@@ -301,32 +299,36 @@ function __wbg_get_imports(memory) {
301
299
  const ret = clearTimeout(arg0);
302
300
  return ret;
303
301
  },
304
- __wbg_close_690d36108c557337: function() { return handleError(function (arg0) {
302
+ __wbg_close_249a23304523681b: function() { return handleError(function (arg0) {
305
303
  arg0.close();
306
304
  }, arguments); },
307
- __wbg_close_737b4b1fbc658540: function() { return handleError(function (arg0) {
305
+ __wbg_close_72d318d9c16e83ef: function() { return handleError(function (arg0) {
308
306
  arg0.close();
309
307
  }, arguments); },
310
308
  __wbg_crypto_0a92367f02a93895: function(arg0) {
311
309
  const ret = arg0.crypto;
312
310
  return ret;
313
311
  },
314
- __wbg_data_a3d9ff9cdd801002: function(arg0) {
312
+ __wbg_crypto_29a13c24f21f7c72: function() { return handleError(function (arg0) {
313
+ const ret = arg0.crypto;
314
+ return ret;
315
+ }, arguments); },
316
+ __wbg_data_0965368f2b7f680a: function(arg0) {
315
317
  const ret = arg0.data;
316
318
  return ret;
317
319
  },
318
- __wbg_done_08ce71ee07e3bd17: function(arg0) {
320
+ __wbg_done_89b2b13e91a60321: function(arg0) {
319
321
  const ret = arg0.done;
320
322
  return ret;
321
323
  },
322
- __wbg_enqueue_ec3552838b4b7fbf: function() { return handleError(function (arg0, arg1) {
324
+ __wbg_enqueue_6d83b4c6281bafd6: function() { return handleError(function (arg0, arg1) {
323
325
  arg0.enqueue(arg1);
324
326
  }, arguments); },
325
- __wbg_entries_850b70a4650cfe8b: function(arg0) {
327
+ __wbg_entries_00d7283394649868: function(arg0) {
326
328
  const ret = arg0.entries();
327
329
  return ret;
328
330
  },
329
- __wbg_entries_e8a20ff8c9757101: function(arg0) {
331
+ __wbg_entries_015dc610cd81ede0: function(arg0) {
330
332
  const ret = Object.entries(arg0);
331
333
  return ret;
332
334
  },
@@ -344,11 +346,15 @@ function __wbg_get_imports(memory) {
344
346
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
345
347
  }
346
348
  },
349
+ __wbg_exportKey_31e8893b69d9dc95: function() { return handleError(function (arg0, arg1, arg2, arg3) {
350
+ const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
351
+ return ret;
352
+ }, arguments); },
347
353
  __wbg_fetch_4e11d9098857f1ae: function(arg0) {
348
354
  const ret = fetch(arg0);
349
355
  return ret;
350
356
  },
351
- __wbg_fetch_5550a88cf343aaa9: function(arg0, arg1) {
357
+ __wbg_fetch_b5951fc96f52f786: function(arg0, arg1) {
352
358
  const ret = arg0.fetch(arg1);
353
359
  return ret;
354
360
  },
@@ -356,10 +362,17 @@ function __wbg_get_imports(memory) {
356
362
  const ret = fetch(arg0, arg1);
357
363
  return ret;
358
364
  },
359
- __wbg_fetch_d77cded604d729e9: function(arg0, arg1, arg2) {
365
+ __wbg_fetch_fadfd227089fdf80: function(arg0, arg1, arg2) {
360
366
  const ret = arg0.fetch(arg1, arg2);
361
367
  return ret;
362
368
  },
369
+ __wbg_generateKey_bd3b6d19d7d161d8: function() { return handleError(function (arg0, arg1, arg2, arg3) {
370
+ const ret = arg0.generateKey(arg1, arg2 !== 0, arg3);
371
+ return ret;
372
+ }, arguments); },
373
+ __wbg_getRandomValues_783a29df2108885b: function() { return handleError(function (arg0) {
374
+ globalThis.crypto.getRandomValues(arg0);
375
+ }, arguments); },
363
376
  __wbg_getRandomValues_d3f1739dc62f980a: function() { return handleError(function (arg0, arg1) {
364
377
  arg0.getRandomValues(arg1);
365
378
  }, arguments); },
@@ -370,27 +383,35 @@ function __wbg_get_imports(memory) {
370
383
  const ret = arg0.getReader();
371
384
  return ret;
372
385
  }, arguments); },
373
- __wbg_getTime_1dad7b5386ddd2d9: function(arg0) {
386
+ __wbg_getTime_d6f070c088c9b5ed: function(arg0) {
374
387
  const ret = arg0.getTime();
375
388
  return ret;
376
389
  },
377
- __wbg_get_326e41e095fb2575: function() { return handleError(function (arg0, arg1) {
378
- const ret = Reflect.get(arg0, arg1);
390
+ __wbg_getTimezoneOffset_dc9862c79e5a81a3: function(arg0) {
391
+ const ret = arg0.getTimezoneOffset();
379
392
  return ret;
380
- }, arguments); },
381
- __wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
393
+ },
394
+ __wbg_get_507a50627bffa49b: function(arg0, arg1) {
382
395
  const ret = arg0[arg1 >>> 0];
383
396
  return ret;
384
397
  },
385
- __wbg_get_done_d0ab690f8df5501f: function(arg0) {
398
+ __wbg_get_78f252d074a84d0b: function() { return handleError(function (arg0, arg1) {
399
+ const ret = Reflect.get(arg0, arg1);
400
+ return ret;
401
+ }, arguments); },
402
+ __wbg_get_c7eb1f358a7654df: function() { return handleError(function (arg0, arg1) {
403
+ const ret = Reflect.get(arg0, arg1);
404
+ return ret;
405
+ }, arguments); },
406
+ __wbg_get_done_670108eb06ecbe46: function(arg0) {
386
407
  const ret = arg0.done;
387
408
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
388
409
  },
389
- __wbg_get_unchecked_329cfe50afab7352: function(arg0, arg1) {
410
+ __wbg_get_unchecked_6e0ad6d2a41b06f6: function(arg0, arg1) {
390
411
  const ret = arg0[arg1 >>> 0];
391
412
  return ret;
392
413
  },
393
- __wbg_get_value_548ae6adf5a174e4: function(arg0) {
414
+ __wbg_get_value_f465f5be30aa0963: function(arg0) {
394
415
  const ret = arg0.value;
395
416
  return ret;
396
417
  },
@@ -398,19 +419,19 @@ function __wbg_get_imports(memory) {
398
419
  const ret = arg0[arg1];
399
420
  return ret;
400
421
  },
401
- __wbg_has_926ef2ff40b308cf: function() { return handleError(function (arg0, arg1) {
422
+ __wbg_has_8374cf06984d8bfc: function() { return handleError(function (arg0, arg1) {
402
423
  const ret = Reflect.has(arg0, arg1);
403
424
  return ret;
404
425
  }, arguments); },
405
- __wbg_headers_eb2234545f9ff993: function(arg0) {
426
+ __wbg_headers_7b59c5203c8c475d: function(arg0) {
406
427
  const ret = arg0.headers;
407
428
  return ret;
408
429
  },
409
- __wbg_headers_fc8c672cd757e0fd: function(arg0) {
430
+ __wbg_headers_cf9c80f30e2a4eff: function(arg0) {
410
431
  const ret = arg0.headers;
411
432
  return ret;
412
433
  },
413
- __wbg_instanceof_ArrayBuffer_101e2bf31071a9f6: function(arg0) {
434
+ __wbg_instanceof_ArrayBuffer_4480b9e0068a8adb: function(arg0) {
414
435
  let result;
415
436
  try {
416
437
  result = arg0 instanceof ArrayBuffer;
@@ -420,7 +441,27 @@ function __wbg_get_imports(memory) {
420
441
  const ret = result;
421
442
  return ret;
422
443
  },
423
- __wbg_instanceof_Map_f194b366846aca0c: function(arg0) {
444
+ __wbg_instanceof_CryptoKey_fe4356820192d6c1: function(arg0) {
445
+ let result;
446
+ try {
447
+ result = arg0 instanceof CryptoKey;
448
+ } catch (_) {
449
+ result = false;
450
+ }
451
+ const ret = result;
452
+ return ret;
453
+ },
454
+ __wbg_instanceof_Error_1fdac9f13a8181ba: function(arg0) {
455
+ let result;
456
+ try {
457
+ result = arg0 instanceof Error;
458
+ } catch (_) {
459
+ result = false;
460
+ }
461
+ const ret = result;
462
+ return ret;
463
+ },
464
+ __wbg_instanceof_Map_e5b5e3db98422fcc: function(arg0) {
424
465
  let result;
425
466
  try {
426
467
  result = arg0 instanceof Map;
@@ -430,7 +471,7 @@ function __wbg_get_imports(memory) {
430
471
  const ret = result;
431
472
  return ret;
432
473
  },
433
- __wbg_instanceof_Response_9b4d9fd451e051b1: function(arg0) {
474
+ __wbg_instanceof_Response_c8b64b2256f01bec: function(arg0) {
434
475
  let result;
435
476
  try {
436
477
  result = arg0 instanceof Response;
@@ -440,7 +481,7 @@ function __wbg_get_imports(memory) {
440
481
  const ret = result;
441
482
  return ret;
442
483
  },
443
- __wbg_instanceof_Uint8Array_740438561a5b956d: function(arg0) {
484
+ __wbg_instanceof_Uint8Array_309b927aaf7a3fc7: function(arg0) {
444
485
  let result;
445
486
  try {
446
487
  result = arg0 instanceof Uint8Array;
@@ -450,7 +491,7 @@ function __wbg_get_imports(memory) {
450
491
  const ret = result;
451
492
  return ret;
452
493
  },
453
- __wbg_instanceof_Window_23e677d2c6843922: function(arg0) {
494
+ __wbg_instanceof_Window_05ba1ee4f6781663: function(arg0) {
454
495
  let result;
455
496
  try {
456
497
  result = arg0 instanceof Window;
@@ -460,23 +501,23 @@ function __wbg_get_imports(memory) {
460
501
  const ret = result;
461
502
  return ret;
462
503
  },
463
- __wbg_isArray_33b91feb269ff46e: function(arg0) {
504
+ __wbg_isArray_0677c962b281d01a: function(arg0) {
464
505
  const ret = Array.isArray(arg0);
465
506
  return ret;
466
507
  },
467
- __wbg_isSafeInteger_ecd6a7f9c3e053cd: function(arg0) {
508
+ __wbg_isSafeInteger_04f36e4056f1b851: function(arg0) {
468
509
  const ret = Number.isSafeInteger(arg0);
469
510
  return ret;
470
511
  },
471
- __wbg_iterator_d8f549ec8fb061b1: function() {
512
+ __wbg_iterator_6f722e4a93058b71: function() {
472
513
  const ret = Symbol.iterator;
473
514
  return ret;
474
515
  },
475
- __wbg_length_b3416cf66a5452c8: function(arg0) {
516
+ __wbg_length_1f0964f4a5e2c6d8: function(arg0) {
476
517
  const ret = arg0.length;
477
518
  return ret;
478
519
  },
479
- __wbg_length_ea16607d7b61445b: function(arg0) {
520
+ __wbg_length_370319915dc99107: function(arg0) {
480
521
  const ret = arg0.length;
481
522
  return ret;
482
523
  },
@@ -521,7 +562,11 @@ function __wbg_get_imports(memory) {
521
562
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
522
563
  }
523
564
  }, arguments); },
524
- __wbg_method_23aa7d0d6ec9a08f: function(arg0, arg1) {
565
+ __wbg_message_8326fb1d549bebc5: function(arg0) {
566
+ const ret = arg0.message;
567
+ return ret;
568
+ },
569
+ __wbg_method_b84982a2d750a05f: function(arg0, arg1) {
525
570
  const ret = arg1.method;
526
571
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
527
572
  const len1 = WASM_VECTOR_LEN;
@@ -532,46 +577,42 @@ function __wbg_get_imports(memory) {
532
577
  const ret = arg0.msCrypto;
533
578
  return ret;
534
579
  },
535
- __wbg_new_0837727332ac86ba: function() { return handleError(function () {
536
- const ret = new Headers();
580
+ __wbg_name_b0b4809690944614: function(arg0) {
581
+ const ret = arg0.name;
537
582
  return ret;
538
- }, arguments); },
539
- __wbg_new_0_1dcafdf5e786e876: function() {
583
+ },
584
+ __wbg_new_0_3da9e97f24fc69be: function() {
540
585
  const ret = new Date();
541
586
  return ret;
542
587
  },
588
+ __wbg_new_0d809930cd1354c6: function() { return handleError(function () {
589
+ const ret = new Headers();
590
+ return ret;
591
+ }, arguments); },
543
592
  __wbg_new_227d7c05414eb861: function() {
544
593
  const ret = new Error();
545
594
  return ret;
546
595
  },
547
- __wbg_new_3acd383af1655b5f: function() { return handleError(function (arg0, arg1) {
548
- const ret = new Worker(getStringFromWasm0(arg0, arg1));
549
- return ret;
550
- }, arguments); },
551
- __wbg_new_5f486cdf45a04d78: function(arg0) {
552
- const ret = new Uint8Array(arg0);
596
+ __wbg_new_32b398fb48b6d94a: function() {
597
+ const ret = new Array();
553
598
  return ret;
554
599
  },
555
- __wbg_new_ab79df5bd7c26067: function() {
556
- const ret = new Object();
600
+ __wbg_new_4339b2a2675a03e3: function() { return handleError(function () {
601
+ const ret = new AbortController();
557
602
  return ret;
558
- },
559
- __wbg_new_af04f4c3ed7fd887: function(arg0) {
603
+ }, arguments); },
604
+ __wbg_new_70f79e80a78a1f78: function(arg0) {
560
605
  const ret = new Int32Array(arg0);
561
606
  return ret;
562
607
  },
563
- __wbg_new_c518c60af666645b: function() { return handleError(function () {
564
- const ret = new AbortController();
565
- return ret;
566
- }, arguments); },
567
- __wbg_new_d098e265629cd10f: function(arg0, arg1) {
608
+ __wbg_new_aec3e25493d729fe: function(arg0, arg1) {
568
609
  try {
569
610
  var state0 = {a: arg0, b: arg1};
570
611
  var cb0 = (arg0, arg1) => {
571
612
  const a = state0.a;
572
613
  state0.a = 0;
573
614
  try {
574
- return wasm_bindgen__convert__closures_____invoke__h4e91db2f1b7350bd(a, state0.b, arg0, arg1);
615
+ return wasm_bindgen__convert__closures_____invoke__h559a482ac3702f86(a, state0.b, arg0, arg1);
575
616
  } finally {
576
617
  state0.a = a;
577
618
  }
@@ -579,25 +620,37 @@ function __wbg_get_imports(memory) {
579
620
  const ret = new Promise(cb0);
580
621
  return ret;
581
622
  } finally {
582
- state0.a = state0.b = 0;
623
+ state0.a = 0;
583
624
  }
584
625
  },
585
- __wbg_new_d15cb560a6a0e5f0: function(arg0, arg1) {
626
+ __wbg_new_b667d279fd5aa943: function(arg0, arg1) {
586
627
  const ret = new Error(getStringFromWasm0(arg0, arg1));
587
628
  return ret;
588
629
  },
589
- __wbg_new_from_slice_22da9388ac046e50: function(arg0, arg1) {
630
+ __wbg_new_cc984128914cfc6f: function(arg0) {
631
+ const ret = new Date(arg0);
632
+ return ret;
633
+ },
634
+ __wbg_new_cd45aabdf6073e84: function(arg0) {
635
+ const ret = new Uint8Array(arg0);
636
+ return ret;
637
+ },
638
+ __wbg_new_da52cf8fe3429cb2: function() {
639
+ const ret = new Object();
640
+ return ret;
641
+ },
642
+ __wbg_new_from_slice_77cdfb7977362f3c: function(arg0, arg1) {
590
643
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
591
644
  return ret;
592
645
  },
593
- __wbg_new_typed_aaaeaf29cf802876: function(arg0, arg1) {
646
+ __wbg_new_typed_1824d93f294193e5: function(arg0, arg1) {
594
647
  try {
595
648
  var state0 = {a: arg0, b: arg1};
596
649
  var cb0 = (arg0, arg1) => {
597
650
  const a = state0.a;
598
651
  state0.a = 0;
599
652
  try {
600
- return wasm_bindgen__convert__closures_____invoke__h4e91db2f1b7350bd(a, state0.b, arg0, arg1);
653
+ return wasm_bindgen__convert__closures_____invoke__h559a482ac3702f86(a, state0.b, arg0, arg1);
601
654
  } finally {
602
655
  state0.a = a;
603
656
  }
@@ -605,10 +658,10 @@ function __wbg_get_imports(memory) {
605
658
  const ret = new Promise(cb0);
606
659
  return ret;
607
660
  } finally {
608
- state0.a = state0.b = 0;
661
+ state0.a = 0;
609
662
  }
610
663
  },
611
- __wbg_new_with_byte_offset_and_length_b2ec5bf7b2f35743: function(arg0, arg1, arg2) {
664
+ __wbg_new_with_byte_offset_and_length_54c7724ee3ec7d82: function(arg0, arg1, arg2) {
612
665
  const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
613
666
  return ret;
614
667
  },
@@ -616,81 +669,97 @@ function __wbg_get_imports(memory) {
616
669
  const ret = new ReadableStream(IntoUnderlyingSource.__wrap(arg0), arg1);
617
670
  return ret;
618
671
  },
619
- __wbg_new_with_length_825018a1616e9e55: function(arg0) {
672
+ __wbg_new_with_length_e6785c33c8e4cce8: function(arg0) {
620
673
  const ret = new Uint8Array(arg0 >>> 0);
621
674
  return ret;
622
675
  },
623
- __wbg_new_with_opt_readable_stream_and_init_15b79ab5fa39d080: function() { return handleError(function (arg0, arg1) {
676
+ __wbg_new_with_opt_readable_stream_and_init_bfd13e2b23ff2e0c: function() { return handleError(function (arg0, arg1) {
624
677
  const ret = new Response(arg0, arg1);
625
678
  return ret;
626
679
  }, arguments); },
627
- __wbg_new_with_str_and_init_b4b54d1a819bc724: function() { return handleError(function (arg0, arg1, arg2) {
680
+ __wbg_new_with_str_and_init_d95cbe11ce28e65e: function() { return handleError(function (arg0, arg1, arg2) {
628
681
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
629
682
  return ret;
630
683
  }, arguments); },
631
- __wbg_next_11b99ee6237339e3: function() { return handleError(function (arg0) {
632
- const ret = arg0.next();
684
+ __wbg_new_worker_a37b91c84b1f9aa5: function(arg0, arg1) {
685
+ const ret = new Worker(getStringFromWasm0(arg0, arg1));
633
686
  return ret;
634
- }, arguments); },
635
- __wbg_next_e01a967809d1aa68: function(arg0) {
687
+ },
688
+ __wbg_next_6dbf2c0ac8cde20f: function(arg0) {
636
689
  const ret = arg0.next;
637
690
  return ret;
638
691
  },
692
+ __wbg_next_71f2aa1cb3d1e37e: function() { return handleError(function (arg0) {
693
+ const ret = arg0.next();
694
+ return ret;
695
+ }, arguments); },
639
696
  __wbg_node_8ae12470cbc10fa7: function(arg0) {
640
697
  const ret = arg0.node;
641
698
  return ret;
642
699
  },
643
- __wbg_now_16f0c993d5dd6c27: function() {
700
+ __wbg_now_86c0d4ba3fa605b8: function() {
644
701
  const ret = Date.now();
645
702
  return ret;
646
703
  },
647
- __wbg_of_8fd5dd402bc67165: function(arg0, arg1, arg2) {
704
+ __wbg_now_e7c6795a7f81e10f: function(arg0) {
705
+ const ret = arg0.now();
706
+ return ret;
707
+ },
708
+ __wbg_of_b0cd2e09b31a9684: function(arg0, arg1, arg2) {
648
709
  const ret = Array.of(arg0, arg1, arg2);
649
710
  return ret;
650
711
  },
651
- __wbg_parse_e9eddd2a82c706eb: function() { return handleError(function (arg0, arg1) {
712
+ __wbg_parse_1c0d8a8656d7e016: function() { return handleError(function (arg0, arg1) {
652
713
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
653
714
  return ret;
654
715
  }, arguments); },
655
- __wbg_postMessage_564f0071531c08c3: function() { return handleError(function (arg0, arg1) {
716
+ __wbg_performance_3fcf6e32a7e1ed0a: function(arg0) {
717
+ const ret = arg0.performance;
718
+ return ret;
719
+ },
720
+ __wbg_postMessage_ea8632bb43026d6a: function() { return handleError(function (arg0, arg1) {
656
721
  arg0.postMessage(arg1);
657
722
  }, arguments); },
658
- __wbg_postMessage_edb4c90a528e5a8c: function() { return handleError(function (arg0, arg1) {
723
+ __wbg_postMessage_f48bc524bea113e2: function() { return handleError(function (arg0, arg1) {
659
724
  arg0.postMessage(arg1);
660
725
  }, arguments); },
661
726
  __wbg_process_c9cfbc1e2919260e: function(arg0) {
662
727
  const ret = arg0.process;
663
728
  return ret;
664
729
  },
665
- __wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
730
+ __wbg_prototypesetcall_4770620bbe4688a0: function(arg0, arg1, arg2) {
666
731
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
667
732
  },
668
- __wbg_queueMicrotask_0c399741342fb10f: function(arg0) {
733
+ __wbg_push_d2ae3af0c1217ae6: function(arg0, arg1) {
734
+ const ret = arg0.push(arg1);
735
+ return ret;
736
+ },
737
+ __wbg_queueMicrotask_0ab5b2d2393e99b9: function(arg0) {
669
738
  const ret = arg0.queueMicrotask;
670
739
  return ret;
671
740
  },
672
- __wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
741
+ __wbg_queueMicrotask_6a09b7bc46549209: function(arg0) {
673
742
  queueMicrotask(arg0);
674
743
  },
675
744
  __wbg_randomFillSync_143a36904a882f2a: function() { return handleError(function (arg0, arg1) {
676
745
  arg0.randomFillSync(arg1);
677
746
  }, arguments); },
678
- __wbg_read_7f593a961a7f80ed: function(arg0) {
747
+ __wbg_read_8afa15f12a160ef8: function(arg0) {
679
748
  const ret = arg0.read();
680
749
  return ret;
681
750
  },
682
- __wbg_releaseLock_ef7766a5da654ff8: function(arg0) {
751
+ __wbg_releaseLock_5b92874cad775644: function(arg0) {
683
752
  arg0.releaseLock();
684
753
  },
685
754
  __wbg_require_def5a4782aa802ec: function() { return handleError(function () {
686
755
  const ret = module.require;
687
756
  return ret;
688
757
  }, arguments); },
689
- __wbg_resolve_ae8d83246e5bcc12: function(arg0) {
758
+ __wbg_resolve_2191a4dfe481c25b: function(arg0) {
690
759
  const ret = Promise.resolve(arg0);
691
760
  return ret;
692
761
  },
693
- __wbg_respond_e286ee502e7cf7e4: function() { return handleError(function (arg0, arg1) {
762
+ __wbg_respond_510e32df8aeb6817: function() { return handleError(function (arg0, arg1) {
694
763
  arg0.respond(arg1 >>> 0);
695
764
  }, arguments); },
696
765
  __wbg_setTimeout_3f4119f26240bd79: function(arg0, arg1) {
@@ -700,62 +769,62 @@ function __wbg_get_imports(memory) {
700
769
  __wbg_setTimeout_52b7500e10b7731c: function(arg0, arg1) {
701
770
  globalThis.setTimeout(arg0, arg1);
702
771
  },
703
- __wbg_set_7eaa4f96924fd6b3: function() { return handleError(function (arg0, arg1, arg2) {
704
- const ret = Reflect.set(arg0, arg1, arg2);
705
- return ret;
772
+ __wbg_set_0de9c62c23d04ad5: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
773
+ arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
706
774
  }, arguments); },
707
- __wbg_set_8c0b3ffcf05d61c2: function(arg0, arg1, arg2) {
775
+ __wbg_set_4d7dd76f3dae2926: function(arg0, arg1, arg2) {
708
776
  arg0.set(getArrayU8FromWasm0(arg1, arg2));
709
777
  },
710
- __wbg_set_body_a3d856b097dfda04: function(arg0, arg1) {
778
+ __wbg_set_8535240470bf2500: function() { return handleError(function (arg0, arg1, arg2) {
779
+ const ret = Reflect.set(arg0, arg1, arg2);
780
+ return ret;
781
+ }, arguments); },
782
+ __wbg_set_body_029f2d171e0a005f: function(arg0, arg1) {
711
783
  arg0.body = arg1;
712
784
  },
713
- __wbg_set_cache_ec7e430c6056ebda: function(arg0, arg1) {
785
+ __wbg_set_cache_b4a740b195c051f4: function(arg0, arg1) {
714
786
  arg0.cache = __wbindgen_enum_RequestCache[arg1];
715
787
  },
716
- __wbg_set_credentials_ed63183445882c65: function(arg0, arg1) {
788
+ __wbg_set_credentials_bb34a40189e3b43b: function(arg0, arg1) {
717
789
  arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
718
790
  },
719
- __wbg_set_e09648bea3f1af1e: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
720
- arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
721
- }, arguments); },
722
- __wbg_set_headers_3c8fecc693b75327: function(arg0, arg1) {
791
+ __wbg_set_headers_4be66d6f175ce615: function(arg0, arg1) {
723
792
  arg0.headers = arg1;
724
793
  },
725
- __wbg_set_headers_bf56980ea1a65acb: function(arg0, arg1) {
794
+ __wbg_set_headers_9c61d123c3ee1f10: function(arg0, arg1) {
726
795
  arg0.headers = arg1;
727
796
  },
728
- __wbg_set_high_water_mark_1ac059fa0566c2fc: function(arg0, arg1) {
797
+ __wbg_set_high_water_mark_44d043cd607dd13a: function(arg0, arg1) {
729
798
  arg0.highWaterMark = arg1;
730
799
  },
731
- __wbg_set_integrity_6e605069e31cef0a: function(arg0, arg1, arg2) {
800
+ __wbg_set_integrity_13c390f33acee59c: function(arg0, arg1, arg2) {
732
801
  arg0.integrity = getStringFromWasm0(arg1, arg2);
733
802
  },
734
- __wbg_set_method_8c015e8bcafd7be1: function(arg0, arg1, arg2) {
803
+ __wbg_set_method_5532d59b92d76467: function(arg0, arg1, arg2) {
735
804
  arg0.method = getStringFromWasm0(arg1, arg2);
736
805
  },
737
- __wbg_set_mode_5a87f2c809cf37c2: function(arg0, arg1) {
806
+ __wbg_set_mode_66c79886ad78fc05: function(arg0, arg1) {
738
807
  arg0.mode = __wbindgen_enum_RequestMode[arg1];
739
808
  },
740
- __wbg_set_onmessage_d5dc11c291025af6: function(arg0, arg1) {
809
+ __wbg_set_onmessage_e3a42c9af9f677a1: function(arg0, arg1) {
741
810
  arg0.onmessage = arg1;
742
811
  },
743
- __wbg_set_redirect_c7b340412376b11a: function(arg0, arg1) {
812
+ __wbg_set_redirect_badd73a0bcb765e3: function(arg0, arg1) {
744
813
  arg0.redirect = __wbindgen_enum_RequestRedirect[arg1];
745
814
  },
746
- __wbg_set_referrer_4f2f273104bee6d0: function(arg0, arg1, arg2) {
815
+ __wbg_set_referrer_02890bb2de855af1: function(arg0, arg1, arg2) {
747
816
  arg0.referrer = getStringFromWasm0(arg1, arg2);
748
817
  },
749
- __wbg_set_referrer_policy_3cea8b6e31a9e636: function(arg0, arg1) {
818
+ __wbg_set_referrer_policy_e49a6d0d7473fd16: function(arg0, arg1) {
750
819
  arg0.referrerPolicy = __wbindgen_enum_ReferrerPolicy[arg1];
751
820
  },
752
- __wbg_set_signal_0cebecb698f25d21: function(arg0, arg1) {
821
+ __wbg_set_signal_c4ef8faddb4c1446: function(arg0, arg1) {
753
822
  arg0.signal = arg1;
754
823
  },
755
- __wbg_set_status_b80d37d9d23276c4: function(arg0, arg1) {
824
+ __wbg_set_status_3593dfcb55e7ee3c: function(arg0, arg1) {
756
825
  arg0.status = arg1;
757
826
  },
758
- __wbg_signal_166e1da31adcac18: function(arg0) {
827
+ __wbg_signal_dad7cb35193abd31: function(arg0) {
759
828
  const ret = arg0.signal;
760
829
  return ret;
761
830
  },
@@ -766,73 +835,81 @@ function __wbg_get_imports(memory) {
766
835
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
767
836
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
768
837
  },
769
- __wbg_static_accessor_GLOBAL_8adb955bd33fac2f: function() {
838
+ __wbg_static_accessor_GLOBAL_4ef717fb391d88b7: function() {
770
839
  const ret = typeof global === 'undefined' ? null : global;
771
840
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
772
841
  },
773
- __wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913: function() {
842
+ __wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4: function() {
774
843
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
775
844
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
776
845
  },
777
- __wbg_static_accessor_SELF_f207c857566db248: function() {
846
+ __wbg_static_accessor_SELF_146583524fe1469b: function() {
778
847
  const ret = typeof self === 'undefined' ? null : self;
779
848
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
780
849
  },
781
- __wbg_static_accessor_WINDOW_bb9f1ba69d61b386: function() {
850
+ __wbg_static_accessor_WINDOW_f2829a2234d7819e: function() {
782
851
  const ret = typeof window === 'undefined' ? null : window;
783
852
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
784
853
  },
785
- __wbg_status_318629ab93a22955: function(arg0) {
854
+ __wbg_status_c45b3b9b3033184a: function(arg0) {
786
855
  const ret = arg0.status;
787
856
  return ret;
788
857
  },
789
- __wbg_stringify_5ae93966a84901ac: function() { return handleError(function (arg0) {
858
+ __wbg_stringify_b54333f60f1e4dad: function() { return handleError(function (arg0) {
790
859
  const ret = JSON.stringify(arg0);
791
860
  return ret;
792
861
  }, arguments); },
793
- __wbg_subarray_a068d24e39478a8a: function(arg0, arg1, arg2) {
862
+ __wbg_subarray_3ed232c8a6baee09: function(arg0, arg1, arg2) {
794
863
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
795
864
  return ret;
796
865
  },
797
- __wbg_text_372f5b91442c50f9: function() { return handleError(function (arg0) {
866
+ __wbg_subtle_ed1dfcaede24af07: function(arg0) {
867
+ const ret = arg0.subtle;
868
+ return ret;
869
+ },
870
+ __wbg_text_d3a29f7525a132c3: function() { return handleError(function (arg0) {
798
871
  const ret = arg0.text();
799
872
  return ret;
800
873
  }, arguments); },
801
- __wbg_then_098abe61755d12f6: function(arg0, arg1) {
874
+ __wbg_then_16d107c451e9905d: function(arg0, arg1, arg2) {
875
+ const ret = arg0.then(arg1, arg2);
876
+ return ret;
877
+ },
878
+ __wbg_then_6ec10ae38b3e92f7: function(arg0, arg1) {
802
879
  const ret = arg0.then(arg1);
803
880
  return ret;
804
881
  },
805
- __wbg_then_1d7a5273811a5cea: function(arg0, arg1) {
882
+ __wbg_then_e0960b859f3ff223: function(arg0, arg1) {
806
883
  const ret = arg0.then(arg1);
807
884
  return ret;
808
885
  },
809
- __wbg_then_9e335f6dd892bc11: function(arg0, arg1, arg2) {
810
- const ret = arg0.then(arg1, arg2);
886
+ __wbg_timeOrigin_f3d5cb4f4a06c2b7: function(arg0) {
887
+ const ret = arg0.timeOrigin;
811
888
  return ret;
812
889
  },
813
- __wbg_toString_3272fa0dfd05dd87: function(arg0) {
890
+ __wbg_toString_b201c2690bbe445a: function(arg0) {
814
891
  const ret = arg0.toString();
815
892
  return ret;
816
893
  },
817
- __wbg_url_7fefc1820fba4e0c: function(arg0, arg1) {
894
+ __wbg_url_abdb8fb08377f8c0: function(arg0, arg1) {
818
895
  const ret = arg1.url;
819
896
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
820
897
  const len1 = WASM_VECTOR_LEN;
821
898
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
822
899
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
823
900
  },
824
- __wbg_url_b6f96880b733816c: function(arg0, arg1) {
901
+ __wbg_url_f6cd241d61f89b82: function(arg0, arg1) {
825
902
  const ret = arg1.url;
826
903
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
827
904
  const len1 = WASM_VECTOR_LEN;
828
905
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
829
906
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
830
907
  },
831
- __wbg_value_21fc78aab0322612: function(arg0) {
908
+ __wbg_value_99213de42db60201: function(arg0) {
832
909
  const ret = arg0.value;
833
910
  return ret;
834
911
  },
835
- __wbg_value_a529cd2f781749fd: function(arg0) {
912
+ __wbg_value_a5d5488a9589444a: function(arg0) {
836
913
  const ret = arg0.value;
837
914
  return ret;
838
915
  },
@@ -840,36 +917,36 @@ function __wbg_get_imports(memory) {
840
917
  const ret = arg0.versions;
841
918
  return ret;
842
919
  },
843
- __wbg_view_f68a712e7315f8b2: function(arg0) {
920
+ __wbg_view_21f1d4a4f175dfa9: function(arg0) {
844
921
  const ret = arg0.view;
845
922
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
846
923
  },
847
- __wbg_waitAsync_91ab9cf292b5ab15: function(arg0, arg1, arg2) {
848
- const ret = Atomics.waitAsync(arg0, arg1 >>> 0, arg2);
924
+ __wbg_waitAsync_06c45f5361ba204a: function() {
925
+ const ret = Atomics.waitAsync;
849
926
  return ret;
850
927
  },
851
- __wbg_waitAsync_a4399d51368b6ce4: function() {
852
- const ret = Atomics.waitAsync;
928
+ __wbg_waitAsync_919777b30820ea59: function(arg0, arg1, arg2) {
929
+ const ret = Atomics.waitAsync(arg0, arg1 >>> 0, arg2);
853
930
  return ret;
854
931
  },
855
932
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
856
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1814, function: Function { arguments: [], shim_idx: 1815, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
857
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h608d62b8eccc8f6e, wasm_bindgen__convert__closures_____invoke__h7938576e03ec4167);
933
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 5539, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
934
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h665106e7067bf987);
858
935
  return ret;
859
936
  },
860
937
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
861
- // Cast intrinsic for `Closure(Closure { dtor_idx: 2159, function: Function { arguments: [Externref], shim_idx: 2160, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
862
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hbb5960641dfaf99a, wasm_bindgen__convert__closures_____invoke__hdfdaa0711fe9a60e);
938
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 5682, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
939
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__ha59ba16ef22dfc70);
863
940
  return ret;
864
941
  },
865
942
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
866
- // Cast intrinsic for `Closure(Closure { dtor_idx: 2176, function: Function { arguments: [Externref], shim_idx: 2179, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
867
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2925d4d1c19a6d50, wasm_bindgen__convert__closures_____invoke__h38253c4a1aa54e27);
943
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 5702, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
944
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h860fbeea0fd5b879);
868
945
  return ret;
869
946
  },
870
947
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
871
- // Cast intrinsic for `Closure(Closure { dtor_idx: 2176, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 2177, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
872
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2925d4d1c19a6d50, wasm_bindgen__convert__closures_____invoke__hfa390009d5ba6f84);
948
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2243, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
949
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h359c204a99f94cc7);
873
950
  return ret;
874
951
  },
875
952
  __wbindgen_cast_0000000000000005: function(arg0) {
@@ -913,7 +990,7 @@ function __wbg_get_imports(memory) {
913
990
  table.set(offset + 2, true);
914
991
  table.set(offset + 3, false);
915
992
  },
916
- __wbindgen_link_fcd7cf2a23e346d3: function(arg0) {
993
+ __wbindgen_link_580560c8bba509f2: function(arg0) {
917
994
  const val = `onmessage = function (ev) {
918
995
  let [ia, index, value] = ev.data;
919
996
  ia = new Int32Array(ia.buffer);
@@ -927,7 +1004,7 @@ function __wbg_get_imports(memory) {
927
1004
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
928
1005
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
929
1006
  },
930
- memory: memory || new WebAssembly.Memory({initial:30,maximum:16384,shared:true}),
1007
+ memory: memory || new WebAssembly.Memory({initial:50,maximum:16384,shared:true}),
931
1008
  };
932
1009
  return {
933
1010
  __proto__: null,
@@ -935,27 +1012,27 @@ function __wbg_get_imports(memory) {
935
1012
  };
936
1013
  }
937
1014
 
938
- function wasm_bindgen__convert__closures_____invoke__h7938576e03ec4167(arg0, arg1) {
939
- wasm.wasm_bindgen__convert__closures_____invoke__h7938576e03ec4167(arg0, arg1);
1015
+ function wasm_bindgen__convert__closures_____invoke__h359c204a99f94cc7(arg0, arg1) {
1016
+ wasm.wasm_bindgen__convert__closures_____invoke__h359c204a99f94cc7(arg0, arg1);
940
1017
  }
941
1018
 
942
- function wasm_bindgen__convert__closures_____invoke__hdfdaa0711fe9a60e(arg0, arg1, arg2) {
943
- wasm.wasm_bindgen__convert__closures_____invoke__hdfdaa0711fe9a60e(arg0, arg1, arg2);
1019
+ function wasm_bindgen__convert__closures_____invoke__h665106e7067bf987(arg0, arg1, arg2) {
1020
+ wasm.wasm_bindgen__convert__closures_____invoke__h665106e7067bf987(arg0, arg1, arg2);
944
1021
  }
945
1022
 
946
- function wasm_bindgen__convert__closures_____invoke__hfa390009d5ba6f84(arg0, arg1, arg2) {
947
- wasm.wasm_bindgen__convert__closures_____invoke__hfa390009d5ba6f84(arg0, arg1, arg2);
1023
+ function wasm_bindgen__convert__closures_____invoke__h860fbeea0fd5b879(arg0, arg1, arg2) {
1024
+ wasm.wasm_bindgen__convert__closures_____invoke__h860fbeea0fd5b879(arg0, arg1, arg2);
948
1025
  }
949
1026
 
950
- function wasm_bindgen__convert__closures_____invoke__h38253c4a1aa54e27(arg0, arg1, arg2) {
951
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h38253c4a1aa54e27(arg0, arg1, arg2);
1027
+ function wasm_bindgen__convert__closures_____invoke__ha59ba16ef22dfc70(arg0, arg1, arg2) {
1028
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__ha59ba16ef22dfc70(arg0, arg1, arg2);
952
1029
  if (ret[1]) {
953
1030
  throw takeFromExternrefTable0(ret[0]);
954
1031
  }
955
1032
  }
956
1033
 
957
- function wasm_bindgen__convert__closures_____invoke__h4e91db2f1b7350bd(arg0, arg1, arg2, arg3) {
958
- wasm.wasm_bindgen__convert__closures_____invoke__h4e91db2f1b7350bd(arg0, arg1, arg2, arg3);
1034
+ function wasm_bindgen__convert__closures_____invoke__h559a482ac3702f86(arg0, arg1, arg2, arg3) {
1035
+ wasm.wasm_bindgen__convert__closures_____invoke__h559a482ac3702f86(arg0, arg1, arg2, arg3);
959
1036
  }
960
1037
 
961
1038
 
@@ -977,13 +1054,13 @@ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate
977
1054
  const __wbindgen_enum_RequestRedirect = ["follow", "error", "manual"];
978
1055
  const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
979
1056
  ? { register: () => {}, unregister: () => {} }
980
- : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr >>> 0, 1));
1057
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr, 1));
981
1058
  const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
982
1059
  ? { register: () => {}, unregister: () => {} }
983
- : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr >>> 0, 1));
1060
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr, 1));
984
1061
  const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
985
1062
  ? { register: () => {}, unregister: () => {} }
986
- : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr >>> 0, 1));
1063
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr, 1));
987
1064
 
988
1065
  function addToExternrefTable0(obj) {
989
1066
  const idx = wasm.__externref_table_alloc();
@@ -993,7 +1070,7 @@ function addToExternrefTable0(obj) {
993
1070
 
994
1071
  const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
995
1072
  ? { register: () => {}, unregister: () => {} }
996
- : new FinalizationRegistry(state => state.dtor(state.a, state.b));
1073
+ : new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
997
1074
 
998
1075
  function debugString(val) {
999
1076
  // primitive types
@@ -1074,8 +1151,7 @@ function getDataViewMemory0() {
1074
1151
  }
1075
1152
 
1076
1153
  function getStringFromWasm0(ptr, len) {
1077
- ptr = ptr >>> 0;
1078
- return decodeText(ptr, len);
1154
+ return decodeText(ptr >>> 0, len);
1079
1155
  }
1080
1156
 
1081
1157
  let cachedUint8ArrayMemory0 = null;
@@ -1099,8 +1175,8 @@ function isLikeNone(x) {
1099
1175
  return x === undefined || x === null;
1100
1176
  }
1101
1177
 
1102
- function makeMutClosure(arg0, arg1, dtor, f) {
1103
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
1178
+ function makeMutClosure(arg0, arg1, f) {
1179
+ const state = { a: arg0, b: arg1, cnt: 1 };
1104
1180
  const real = (...args) => {
1105
1181
 
1106
1182
  // First up with a closure we increment the internal reference
@@ -1118,7 +1194,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
1118
1194
  };
1119
1195
  real._wbg_cb_unref = () => {
1120
1196
  if (--state.cnt === 0) {
1121
- state.dtor(state.a, state.b);
1197
+ wasm.__wbindgen_destroy_closure(state.a, state.b);
1122
1198
  state.a = 0;
1123
1199
  CLOSURE_DTORS.unregister(state);
1124
1200
  }
@@ -1200,8 +1276,9 @@ if (cachedTextEncoder) {
1200
1276
 
1201
1277
  let WASM_VECTOR_LEN = 0;
1202
1278
 
1203
- let wasmModule, wasm;
1279
+ let wasmModule, wasmInstance, wasm;
1204
1280
  function __wbg_finalize_init(instance, module, thread_stack_size) {
1281
+ wasmInstance = instance;
1205
1282
  wasm = instance.exports;
1206
1283
  wasmModule = module;
1207
1284
  cachedDataViewMemory0 = null;
package/tng_wasm_bg.wasm CHANGED
Binary file