@contentauth/c2pa-web 0.15.2 → 0.15.4
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/dist/c2pa-DTWK5AOF.js +932 -0
- package/dist/c2pa_worker.js +199 -185
- package/dist/index.js +1 -1
- package/dist/inline.js +8 -8
- package/dist/lib/builder.d.ts +11 -0
- package/dist/lib/builder.d.ts.map +1 -1
- package/dist/lib/worker/rpc.d.ts +2 -0
- package/dist/lib/worker/rpc.d.ts.map +1 -1
- package/dist/resources/c2pa_bg.wasm +0 -0
- package/package.json +4 -4
- package/dist/c2pa-DdK7nuOh.js +0 -918
package/dist/c2pa_worker.js
CHANGED
|
@@ -32,18 +32,6 @@ var be = $((le, P) => {
|
|
|
32
32
|
if (c[1])
|
|
33
33
|
throw b(c[0]);
|
|
34
34
|
}
|
|
35
|
-
/**
|
|
36
|
-
* Add an ingredient to the manifest from a JSON ingredient definition without a blob
|
|
37
|
-
*
|
|
38
|
-
* # Arguments
|
|
39
|
-
* * `ingredient_json` - A JSON string representing the ingredient.
|
|
40
|
-
* @param {string} json
|
|
41
|
-
*/
|
|
42
|
-
addIngredient(e) {
|
|
43
|
-
const t = d(e, o.__wbindgen_malloc, o.__wbindgen_realloc), n = a, _ = o.wasmbuilder_addIngredient(this.__wbg_ptr, t, n);
|
|
44
|
-
if (_[1])
|
|
45
|
-
throw b(_[0]);
|
|
46
|
-
}
|
|
47
35
|
/**
|
|
48
36
|
* Add an ingredient to the manifest from a JSON ingredient definition and a [`Blob`].
|
|
49
37
|
*
|
|
@@ -60,6 +48,18 @@ var be = $((le, P) => {
|
|
|
60
48
|
const _ = d(e, o.__wbindgen_malloc, o.__wbindgen_realloc), c = a, s = d(t, o.__wbindgen_malloc, o.__wbindgen_realloc), i = a;
|
|
61
49
|
return o.wasmbuilder_addIngredientFromBlob(this.__wbg_ptr, _, c, s, i, n);
|
|
62
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Add an ingredient to the manifest from a JSON ingredient definition without a blob
|
|
53
|
+
*
|
|
54
|
+
* # Arguments
|
|
55
|
+
* * `ingredient_json` - A JSON string representing the ingredient.
|
|
56
|
+
* @param {string} json
|
|
57
|
+
*/
|
|
58
|
+
addIngredient(e) {
|
|
59
|
+
const t = d(e, o.__wbindgen_malloc, o.__wbindgen_realloc), n = a, _ = o.wasmbuilder_addIngredient(this.__wbg_ptr, t, n);
|
|
60
|
+
if (_[1])
|
|
61
|
+
throw b(_[0]);
|
|
62
|
+
}
|
|
63
63
|
/**
|
|
64
64
|
* Add a redaction for a JUMBF URI with the given reason.
|
|
65
65
|
*
|
|
@@ -227,34 +227,34 @@ var be = $((le, P) => {
|
|
|
227
227
|
}
|
|
228
228
|
/**
|
|
229
229
|
* Sign an asset using the provided SignerDefinition, format, and source Blob.
|
|
230
|
+
* Use this method to get both the manifest bytes and the bytes of the signed asset.
|
|
230
231
|
*
|
|
231
|
-
* `
|
|
232
|
-
* `wasm_identity_assertion`'s typescript_custom_section); pass an empty
|
|
233
|
-
* array when no CAWG identity assertions are requested.
|
|
232
|
+
* See [`Self::sign`] for `identity_assertions`.
|
|
234
233
|
* @param {SignerDefinition} signer_definition
|
|
235
234
|
* @param {any} identity_assertions
|
|
236
235
|
* @param {string} format
|
|
237
236
|
* @param {Blob} source
|
|
238
|
-
* @returns {Promise<
|
|
237
|
+
* @returns {Promise<any>}
|
|
239
238
|
*/
|
|
240
|
-
|
|
239
|
+
signAndGetManifestBytes(e, t, n, _) {
|
|
241
240
|
const c = d(n, o.__wbindgen_malloc, o.__wbindgen_realloc), s = a;
|
|
242
|
-
return o.
|
|
241
|
+
return o.wasmbuilder_signAndGetManifestBytes(this.__wbg_ptr, e, t, c, s, _);
|
|
243
242
|
}
|
|
244
243
|
/**
|
|
245
244
|
* Sign an asset using the provided SignerDefinition, format, and source Blob.
|
|
246
|
-
* Use this method to get both the manifest bytes and the bytes of the signed asset.
|
|
247
245
|
*
|
|
248
|
-
*
|
|
246
|
+
* `identity_assertions` is an array of `IdentityAssertionDefinition` (see
|
|
247
|
+
* `wasm_identity_assertion`'s typescript_custom_section); pass an empty
|
|
248
|
+
* array when no CAWG identity assertions are requested.
|
|
249
249
|
* @param {SignerDefinition} signer_definition
|
|
250
250
|
* @param {any} identity_assertions
|
|
251
251
|
* @param {string} format
|
|
252
252
|
* @param {Blob} source
|
|
253
|
-
* @returns {Promise<
|
|
253
|
+
* @returns {Promise<Uint8Array>}
|
|
254
254
|
*/
|
|
255
|
-
|
|
255
|
+
sign(e, t, n, _) {
|
|
256
256
|
const c = d(n, o.__wbindgen_malloc, o.__wbindgen_realloc), s = a;
|
|
257
|
-
return o.
|
|
257
|
+
return o.wasmbuilder_sign(this.__wbg_ptr, e, t, c, s, _);
|
|
258
258
|
}
|
|
259
259
|
/**
|
|
260
260
|
* "Save" a builder to an archive.
|
|
@@ -295,6 +295,17 @@ var be = $((le, P) => {
|
|
|
295
295
|
if (t[1])
|
|
296
296
|
throw b(t[0]);
|
|
297
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* Replaces the data of every assertion with an exact matching label, in positional order.
|
|
300
|
+
* The label, kind, created flag, and assertion position remain unchanged.
|
|
301
|
+
* @param {string} label
|
|
302
|
+
* @param {any} data
|
|
303
|
+
*/
|
|
304
|
+
updateAssertionsAt(e, t) {
|
|
305
|
+
const n = d(e, o.__wbindgen_malloc, o.__wbindgen_realloc), _ = a, c = o.wasmbuilder_updateAssertionsAt(this.__wbg_ptr, n, _, t);
|
|
306
|
+
if (c[1])
|
|
307
|
+
throw b(c[0]);
|
|
308
|
+
}
|
|
298
309
|
}
|
|
299
310
|
Symbol.dispose && (h.prototype[Symbol.dispose] = h.prototype.free);
|
|
300
311
|
class M {
|
|
@@ -317,7 +328,7 @@ var be = $((le, P) => {
|
|
|
317
328
|
activeLabel() {
|
|
318
329
|
const e = o.wasmreader_activeLabel(this.__wbg_ptr);
|
|
319
330
|
let t;
|
|
320
|
-
return e[0] !== 0 && (t =
|
|
331
|
+
return e[0] !== 0 && (t = p(e[0], e[1]), o.__wbindgen_free(e[0], e[1] * 1, 1)), t;
|
|
321
332
|
}
|
|
322
333
|
/**
|
|
323
334
|
* Returns the asset's active manifest.
|
|
@@ -337,24 +348,11 @@ var be = $((le, P) => {
|
|
|
337
348
|
let e, t;
|
|
338
349
|
try {
|
|
339
350
|
const n = o.wasmreader_crJson(this.__wbg_ptr);
|
|
340
|
-
return e = n[0], t = n[1],
|
|
351
|
+
return e = n[0], t = n[1], p(n[0], n[1]);
|
|
341
352
|
} finally {
|
|
342
353
|
o.__wbindgen_free(e, t, 1);
|
|
343
354
|
}
|
|
344
355
|
}
|
|
345
|
-
/**
|
|
346
|
-
* Attempts to create a new `WasmReader` from an asset format and `Blob` of the asset's bytes.
|
|
347
|
-
* Optionally accepts a context JSON string to configure the reader.
|
|
348
|
-
* @param {string} format
|
|
349
|
-
* @param {Blob} blob
|
|
350
|
-
* @param {string | null} [context_json]
|
|
351
|
-
* @returns {Promise<WasmReader>}
|
|
352
|
-
*/
|
|
353
|
-
static fromBlob(e, t, n) {
|
|
354
|
-
const _ = d(e, o.__wbindgen_malloc, o.__wbindgen_realloc), c = a;
|
|
355
|
-
var s = w(n) ? 0 : d(n, o.__wbindgen_malloc, o.__wbindgen_realloc), i = a;
|
|
356
|
-
return o.wasmreader_fromBlob(_, c, t, s, i);
|
|
357
|
-
}
|
|
358
356
|
/**
|
|
359
357
|
* Attempts to create a new `WasmReader` from an asset format, a `Blob` of the bytes of the initial segment, and a fragment `Blob`.
|
|
360
358
|
* Optionally accepts a context JSON string to configure the reader.
|
|
@@ -369,6 +367,19 @@ var be = $((le, P) => {
|
|
|
369
367
|
var i = w(_) ? 0 : d(_, o.__wbindgen_malloc, o.__wbindgen_realloc), u = a;
|
|
370
368
|
return o.wasmreader_fromBlobFragment(c, s, t, n, i, u);
|
|
371
369
|
}
|
|
370
|
+
/**
|
|
371
|
+
* Attempts to create a new `WasmReader` from an asset format and `Blob` of the asset's bytes.
|
|
372
|
+
* Optionally accepts a context JSON string to configure the reader.
|
|
373
|
+
* @param {string} format
|
|
374
|
+
* @param {Blob} blob
|
|
375
|
+
* @param {string | null} [context_json]
|
|
376
|
+
* @returns {Promise<WasmReader>}
|
|
377
|
+
*/
|
|
378
|
+
static fromBlob(e, t, n) {
|
|
379
|
+
const _ = d(e, o.__wbindgen_malloc, o.__wbindgen_realloc), c = a;
|
|
380
|
+
var s = w(n) ? 0 : d(n, o.__wbindgen_malloc, o.__wbindgen_realloc), i = a;
|
|
381
|
+
return o.wasmreader_fromBlob(_, c, t, s, i);
|
|
382
|
+
}
|
|
372
383
|
/**
|
|
373
384
|
* Attempts to create a new `WasmReader` from an asset format and the asset's raw bytes.
|
|
374
385
|
*
|
|
@@ -396,7 +407,7 @@ var be = $((le, P) => {
|
|
|
396
407
|
let e, t;
|
|
397
408
|
try {
|
|
398
409
|
const n = o.wasmreader_json(this.__wbg_ptr);
|
|
399
|
-
return e = n[0], t = n[1],
|
|
410
|
+
return e = n[0], t = n[1], p(n[0], n[1]);
|
|
400
411
|
} finally {
|
|
401
412
|
o.__wbindgen_free(e, t, 1);
|
|
402
413
|
}
|
|
@@ -429,140 +440,140 @@ var be = $((le, P) => {
|
|
|
429
440
|
__proto__: null,
|
|
430
441
|
"./c2pa_bg.js": {
|
|
431
442
|
__proto__: null,
|
|
432
|
-
|
|
433
|
-
return Error(
|
|
443
|
+
__wbg_Error_30c8987f7c2ed4e2: function(e, t) {
|
|
444
|
+
return Error(p(e, t));
|
|
434
445
|
},
|
|
435
|
-
|
|
446
|
+
__wbg_Number_14af1003b8dd5ead: function(e) {
|
|
436
447
|
return Number(e);
|
|
437
448
|
},
|
|
438
449
|
__wbg_String_8564e559799eccda: function(e, t) {
|
|
439
450
|
const n = String(t), _ = d(n, o.__wbindgen_malloc, o.__wbindgen_realloc), c = a;
|
|
440
451
|
m().setInt32(e + 4, c, !0), m().setInt32(e + 0, _, !0);
|
|
441
452
|
},
|
|
442
|
-
|
|
453
|
+
__wbg___wbindgen_bigint_get_as_i64_a2383202b9353e4c: function(e, t) {
|
|
443
454
|
const n = t, _ = typeof n == "bigint" ? n : void 0;
|
|
444
455
|
m().setBigInt64(e + 8, w(_) ? BigInt(0) : _, !0), m().setInt32(e + 0, !w(_), !0);
|
|
445
456
|
},
|
|
446
|
-
|
|
457
|
+
__wbg___wbindgen_boolean_get_5b446f51afd21013: function(e) {
|
|
447
458
|
const t = e, n = typeof t == "boolean" ? t : void 0;
|
|
448
459
|
return w(n) ? 16777215 : n ? 1 : 0;
|
|
449
460
|
},
|
|
450
|
-
|
|
461
|
+
__wbg___wbindgen_debug_string_4687d8d8c2017d52: function(e, t) {
|
|
451
462
|
const n = x(t), _ = d(n, o.__wbindgen_malloc, o.__wbindgen_realloc), c = a;
|
|
452
463
|
m().setInt32(e + 4, c, !0), m().setInt32(e + 0, _, !0);
|
|
453
464
|
},
|
|
454
|
-
|
|
465
|
+
__wbg___wbindgen_in_92f62ee1427d9e49: function(e, t) {
|
|
455
466
|
return e in t;
|
|
456
467
|
},
|
|
457
|
-
|
|
468
|
+
__wbg___wbindgen_is_bigint_b123553bed3bb382: function(e) {
|
|
458
469
|
return typeof e == "bigint";
|
|
459
470
|
},
|
|
460
|
-
|
|
471
|
+
__wbg___wbindgen_is_function_1f9d30630b8b1d3d: function(e) {
|
|
461
472
|
return typeof e == "function";
|
|
462
473
|
},
|
|
463
|
-
|
|
474
|
+
__wbg___wbindgen_is_null_e343b7d08827ba72: function(e) {
|
|
464
475
|
return e === null;
|
|
465
476
|
},
|
|
466
|
-
|
|
477
|
+
__wbg___wbindgen_is_object_3c45d4f2dde4e749: function(e) {
|
|
467
478
|
const t = e;
|
|
468
479
|
return typeof t == "object" && t !== null;
|
|
469
480
|
},
|
|
470
|
-
|
|
481
|
+
__wbg___wbindgen_is_string_90b56bc79aad6f6c: function(e) {
|
|
471
482
|
return typeof e == "string";
|
|
472
483
|
},
|
|
473
|
-
|
|
484
|
+
__wbg___wbindgen_is_undefined_8865fb403f8fe9d8: function(e) {
|
|
474
485
|
return e === void 0;
|
|
475
486
|
},
|
|
476
|
-
|
|
487
|
+
__wbg___wbindgen_jsval_eq_02babf21faa37971: function(e, t) {
|
|
477
488
|
return e === t;
|
|
478
489
|
},
|
|
479
|
-
|
|
490
|
+
__wbg___wbindgen_jsval_loose_eq_677f21e468d6b461: function(e, t) {
|
|
480
491
|
return e == t;
|
|
481
492
|
},
|
|
482
|
-
|
|
493
|
+
__wbg___wbindgen_number_get_2e0e7dee9f701a71: function(e, t) {
|
|
483
494
|
const n = t, _ = typeof n == "number" ? n : void 0;
|
|
484
495
|
m().setFloat64(e + 8, w(_) ? 0 : _, !0), m().setInt32(e + 0, !w(_), !0);
|
|
485
496
|
},
|
|
486
|
-
|
|
497
|
+
__wbg___wbindgen_string_get_0380ccaa2f57f0d9: function(e, t) {
|
|
487
498
|
const n = t, _ = typeof n == "string" ? n : void 0;
|
|
488
499
|
var c = w(_) ? 0 : d(_, o.__wbindgen_malloc, o.__wbindgen_realloc), s = a;
|
|
489
500
|
m().setInt32(e + 4, s, !0), m().setInt32(e + 0, c, !0);
|
|
490
501
|
},
|
|
491
|
-
|
|
492
|
-
throw new Error(
|
|
502
|
+
__wbg___wbindgen_throw_41e9ee4f547fc59a: function(e, t) {
|
|
503
|
+
throw new Error(p(e, t));
|
|
493
504
|
},
|
|
494
|
-
|
|
505
|
+
__wbg__wbg_cb_unref_dcc1a90847f04c41: function(e) {
|
|
495
506
|
e._wbg_cb_unref();
|
|
496
507
|
},
|
|
497
|
-
|
|
498
|
-
e.abort();
|
|
499
|
-
},
|
|
500
|
-
__wbg_abort_b29d719932441c95: function(e, t) {
|
|
508
|
+
__wbg_abort_334e7f918b7c5047: function(e, t) {
|
|
501
509
|
e.abort(t);
|
|
502
510
|
},
|
|
503
|
-
|
|
511
|
+
__wbg_abort_f78b99d80248bacb: function(e) {
|
|
512
|
+
e.abort();
|
|
513
|
+
},
|
|
514
|
+
__wbg_append_1938ed58fb5613b8: function() {
|
|
504
515
|
return l(function(e, t, n, _, c) {
|
|
505
|
-
e.append(
|
|
516
|
+
e.append(p(t, n), p(_, c));
|
|
506
517
|
}, arguments);
|
|
507
518
|
},
|
|
508
|
-
|
|
519
|
+
__wbg_arrayBuffer_f07be74819944ea2: function() {
|
|
509
520
|
return l(function(e) {
|
|
510
521
|
return e.arrayBuffer();
|
|
511
522
|
}, arguments);
|
|
512
523
|
},
|
|
513
|
-
|
|
524
|
+
__wbg_byteLength_9f985b8373f1f3fe: function(e) {
|
|
514
525
|
return e.byteLength;
|
|
515
526
|
},
|
|
516
|
-
|
|
517
|
-
return l(function(e, t) {
|
|
518
|
-
return e.call(t);
|
|
519
|
-
}, arguments);
|
|
520
|
-
},
|
|
521
|
-
__wbg_call_9c758de292015997: function() {
|
|
527
|
+
__wbg_call_187d372bd5fdd4aa: function() {
|
|
522
528
|
return l(function(e, t, n) {
|
|
523
529
|
return e.call(t, n);
|
|
524
530
|
}, arguments);
|
|
525
531
|
},
|
|
532
|
+
__wbg_call_6137034ef55c9d0f: function() {
|
|
533
|
+
return l(function(e, t) {
|
|
534
|
+
return e.call(t);
|
|
535
|
+
}, arguments);
|
|
536
|
+
},
|
|
526
537
|
__wbg_clearTimeout_6b8d9a38b9263d65: function(e) {
|
|
527
538
|
return clearTimeout(e);
|
|
528
539
|
},
|
|
529
540
|
__wbg_crypto_38df2bab126b63dc: function(e) {
|
|
530
541
|
return e.crypto;
|
|
531
542
|
},
|
|
532
|
-
|
|
543
|
+
__wbg_done_b41a1d26cdb37fb6: function(e) {
|
|
533
544
|
return e.done;
|
|
534
545
|
},
|
|
535
|
-
|
|
546
|
+
__wbg_entries_fb6397112b1de25f: function(e) {
|
|
536
547
|
return Object.entries(e);
|
|
537
548
|
},
|
|
538
|
-
|
|
549
|
+
__wbg_error_757e9472f8410341: function(e, t) {
|
|
539
550
|
let n, _;
|
|
540
551
|
try {
|
|
541
|
-
n = e, _ = t, console.error(
|
|
552
|
+
n = e, _ = t, console.error(p(e, t));
|
|
542
553
|
} finally {
|
|
543
554
|
o.__wbindgen_free(n, _, 1);
|
|
544
555
|
}
|
|
545
556
|
},
|
|
546
|
-
__wbg_fetch_344c8d3849002659: function(e, t) {
|
|
547
|
-
return e.fetch(t);
|
|
548
|
-
},
|
|
549
557
|
__wbg_fetch_9dad4fe911207b37: function(e) {
|
|
550
558
|
return fetch(e);
|
|
551
559
|
},
|
|
552
|
-
|
|
560
|
+
__wbg_fetch_efc64baf325b084d: function(e, t) {
|
|
561
|
+
return e.fetch(t);
|
|
562
|
+
},
|
|
563
|
+
__wbg_from_296ca31f8d0f1c52: function(e) {
|
|
553
564
|
return Array.from(e);
|
|
554
565
|
},
|
|
555
|
-
|
|
566
|
+
__wbg_getRandomValues_436a51d0629d84e1: function() {
|
|
556
567
|
return l(function(e, t) {
|
|
557
568
|
globalThis.crypto.getRandomValues(v(e, t));
|
|
558
569
|
}, arguments);
|
|
559
570
|
},
|
|
560
|
-
|
|
571
|
+
__wbg_getRandomValues_a608c4436c19407a: function() {
|
|
561
572
|
return l(function(e, t) {
|
|
562
573
|
globalThis.crypto.getRandomValues(v(e, t));
|
|
563
574
|
}, arguments);
|
|
564
575
|
},
|
|
565
|
-
|
|
576
|
+
__wbg_getRandomValues_a678b7300e8ed57f: function() {
|
|
566
577
|
return l(function(e, t) {
|
|
567
578
|
globalThis.crypto.getRandomValues(v(e, t));
|
|
568
579
|
}, arguments);
|
|
@@ -572,37 +583,37 @@ var be = $((le, P) => {
|
|
|
572
583
|
e.getRandomValues(t);
|
|
573
584
|
}, arguments);
|
|
574
585
|
},
|
|
575
|
-
|
|
586
|
+
__wbg_getTime_f5a55efff2585d5d: function(e) {
|
|
576
587
|
return e.getTime();
|
|
577
588
|
},
|
|
578
|
-
|
|
589
|
+
__wbg_get_31af05bd4842a84f: function() {
|
|
579
590
|
return l(function(e, t) {
|
|
580
591
|
return Reflect.get(e, t);
|
|
581
592
|
}, arguments);
|
|
582
593
|
},
|
|
583
|
-
|
|
584
|
-
return e[t >>> 0];
|
|
585
|
-
},
|
|
586
|
-
__wbg_get_de6a0f7d4d18a304: function() {
|
|
594
|
+
__wbg_get_658f6698067d9515: function() {
|
|
587
595
|
return l(function(e, t) {
|
|
588
596
|
return Reflect.get(e, t);
|
|
589
597
|
}, arguments);
|
|
590
598
|
},
|
|
591
|
-
|
|
599
|
+
__wbg_get_6c896e0571ddae51: function(e, t) {
|
|
600
|
+
return e[t >>> 0];
|
|
601
|
+
},
|
|
602
|
+
__wbg_get_unchecked_288889d017702237: function(e, t) {
|
|
592
603
|
return e[t >>> 0];
|
|
593
604
|
},
|
|
594
605
|
__wbg_get_with_ref_key_6412cf3094599694: function(e, t) {
|
|
595
606
|
return e[t];
|
|
596
607
|
},
|
|
597
|
-
|
|
608
|
+
__wbg_has_5d6706e5209576c1: function() {
|
|
598
609
|
return l(function(e, t) {
|
|
599
610
|
return Reflect.has(e, t);
|
|
600
611
|
}, arguments);
|
|
601
612
|
},
|
|
602
|
-
|
|
613
|
+
__wbg_headers_eba93595f8944c2f: function(e) {
|
|
603
614
|
return e.headers;
|
|
604
615
|
},
|
|
605
|
-
|
|
616
|
+
__wbg_instanceof_ArrayBuffer_a99f175873e5d9b8: function(e) {
|
|
606
617
|
let t;
|
|
607
618
|
try {
|
|
608
619
|
t = e instanceof ArrayBuffer;
|
|
@@ -611,7 +622,7 @@ var be = $((le, P) => {
|
|
|
611
622
|
}
|
|
612
623
|
return t;
|
|
613
624
|
},
|
|
614
|
-
|
|
625
|
+
__wbg_instanceof_Map_b2611749102d7ba3: function(e) {
|
|
615
626
|
let t;
|
|
616
627
|
try {
|
|
617
628
|
t = e instanceof Map;
|
|
@@ -620,7 +631,7 @@ var be = $((le, P) => {
|
|
|
620
631
|
}
|
|
621
632
|
return t;
|
|
622
633
|
},
|
|
623
|
-
|
|
634
|
+
__wbg_instanceof_Promise_e1dc6893aa1ece28: function(e) {
|
|
624
635
|
let t;
|
|
625
636
|
try {
|
|
626
637
|
t = e instanceof Promise;
|
|
@@ -629,7 +640,7 @@ var be = $((le, P) => {
|
|
|
629
640
|
}
|
|
630
641
|
return t;
|
|
631
642
|
},
|
|
632
|
-
|
|
643
|
+
__wbg_instanceof_Response_b8758567269c30b2: function(e) {
|
|
633
644
|
let t;
|
|
634
645
|
try {
|
|
635
646
|
t = e instanceof Response;
|
|
@@ -638,7 +649,7 @@ var be = $((le, P) => {
|
|
|
638
649
|
}
|
|
639
650
|
return t;
|
|
640
651
|
},
|
|
641
|
-
|
|
652
|
+
__wbg_instanceof_Uint8Array_828cef2aaacafc31: function(e) {
|
|
642
653
|
let t;
|
|
643
654
|
try {
|
|
644
655
|
t = e instanceof Uint8Array;
|
|
@@ -647,61 +658,61 @@ var be = $((le, P) => {
|
|
|
647
658
|
}
|
|
648
659
|
return t;
|
|
649
660
|
},
|
|
650
|
-
|
|
661
|
+
__wbg_isArray_e15a2ff68ffdbef2: function(e) {
|
|
651
662
|
return Array.isArray(e);
|
|
652
663
|
},
|
|
653
|
-
|
|
664
|
+
__wbg_isSafeInteger_717808ad6a54bd9e: function(e) {
|
|
654
665
|
return Number.isSafeInteger(e);
|
|
655
666
|
},
|
|
656
|
-
|
|
667
|
+
__wbg_iterator_e3c31c892080e444: function() {
|
|
657
668
|
return Symbol.iterator;
|
|
658
669
|
},
|
|
659
|
-
|
|
670
|
+
__wbg_length_7f3c00c40364105e: function(e) {
|
|
660
671
|
return e.length;
|
|
661
672
|
},
|
|
662
|
-
|
|
673
|
+
__wbg_length_d4bdea10311bd9cf: function(e) {
|
|
663
674
|
return e.length;
|
|
664
675
|
},
|
|
665
676
|
__wbg_msCrypto_bd5a034af96bcba6: function(e) {
|
|
666
677
|
return e.msCrypto;
|
|
667
678
|
},
|
|
668
|
-
|
|
679
|
+
__wbg_new_0_72d020f0c63443d4: function() {
|
|
669
680
|
return /* @__PURE__ */ new Date();
|
|
670
681
|
},
|
|
671
|
-
|
|
672
|
-
return
|
|
673
|
-
return new AbortController();
|
|
674
|
-
}, arguments);
|
|
682
|
+
__wbg_new_1dbf7428bba60a42: function(e) {
|
|
683
|
+
return new Uint8Array(e);
|
|
675
684
|
},
|
|
676
685
|
__wbg_new_227d7c05414eb861: function() {
|
|
677
686
|
return new Error();
|
|
678
687
|
},
|
|
679
|
-
|
|
680
|
-
return new Uint8Array(e);
|
|
681
|
-
},
|
|
682
|
-
__wbg_new_622fc80556be2e26: function() {
|
|
688
|
+
__wbg_new_28744009d011f847: function() {
|
|
683
689
|
return /* @__PURE__ */ new Map();
|
|
684
690
|
},
|
|
685
|
-
|
|
691
|
+
__wbg_new_2e41357094e99294: function() {
|
|
686
692
|
return l(function() {
|
|
687
|
-
return new
|
|
693
|
+
return new AbortController();
|
|
688
694
|
}, arguments);
|
|
689
695
|
},
|
|
690
|
-
|
|
696
|
+
__wbg_new_617a8cdb8bb1130e: function() {
|
|
691
697
|
return new Object();
|
|
692
698
|
},
|
|
693
|
-
|
|
694
|
-
return new Array();
|
|
695
|
-
},
|
|
696
|
-
__wbg_new_e436d06bc8e77460: function() {
|
|
699
|
+
__wbg_new_83ca405eae412a62: function() {
|
|
697
700
|
return l(function() {
|
|
698
701
|
return new Headers();
|
|
699
702
|
}, arguments);
|
|
700
703
|
},
|
|
701
|
-
|
|
704
|
+
__wbg_new_9ffe4dece67ce9fc: function() {
|
|
705
|
+
return l(function() {
|
|
706
|
+
return new FileReaderSync();
|
|
707
|
+
}, arguments);
|
|
708
|
+
},
|
|
709
|
+
__wbg_new_ee2291f50781bf1d: function() {
|
|
710
|
+
return new Array();
|
|
711
|
+
},
|
|
712
|
+
__wbg_new_from_slice_9a868026ffa4208a: function(e, t) {
|
|
702
713
|
return new Uint8Array(v(e, t));
|
|
703
714
|
},
|
|
704
|
-
|
|
715
|
+
__wbg_new_typed_b01cb72a8af741a3: function(e, t) {
|
|
705
716
|
try {
|
|
706
717
|
var n = { a: e, b: t }, _ = (s, i) => {
|
|
707
718
|
const u = n.a;
|
|
@@ -717,18 +728,18 @@ var be = $((le, P) => {
|
|
|
717
728
|
n.a = 0;
|
|
718
729
|
}
|
|
719
730
|
},
|
|
720
|
-
|
|
731
|
+
__wbg_new_with_length_3da0ad195f6f63ba: function(e) {
|
|
721
732
|
return new Uint8Array(e >>> 0);
|
|
722
733
|
},
|
|
723
|
-
|
|
734
|
+
__wbg_new_with_str_and_init_4618dee4e950224f: function() {
|
|
724
735
|
return l(function(e, t, n) {
|
|
725
|
-
return new Request(
|
|
736
|
+
return new Request(p(e, t), n);
|
|
726
737
|
}, arguments);
|
|
727
738
|
},
|
|
728
|
-
|
|
739
|
+
__wbg_next_33784799010f1bbe: function(e) {
|
|
729
740
|
return e.next;
|
|
730
741
|
},
|
|
731
|
-
|
|
742
|
+
__wbg_next_f4aac29c42af995c: function() {
|
|
732
743
|
return l(function(e) {
|
|
733
744
|
return e.next();
|
|
734
745
|
}, arguments);
|
|
@@ -736,27 +747,27 @@ var be = $((le, P) => {
|
|
|
736
747
|
__wbg_node_84ea875411254db1: function(e) {
|
|
737
748
|
return e.node;
|
|
738
749
|
},
|
|
739
|
-
|
|
750
|
+
__wbg_now_aa4ccb83129e9e55: function() {
|
|
740
751
|
return Date.now();
|
|
741
752
|
},
|
|
742
753
|
__wbg_process_44c7a14e11e9f69e: function(e) {
|
|
743
754
|
return e.process;
|
|
744
755
|
},
|
|
745
|
-
|
|
756
|
+
__wbg_prototypesetcall_bc27214492979395: function(e, t, n) {
|
|
746
757
|
Uint8Array.prototype.set.call(v(e, t), n);
|
|
747
758
|
},
|
|
748
|
-
|
|
749
|
-
queueMicrotask(e);
|
|
750
|
-
},
|
|
751
|
-
__wbg_queueMicrotask_404ed0a58e0b63cc: function(e) {
|
|
759
|
+
__wbg_queueMicrotask_9833f9a49df95a49: function(e) {
|
|
752
760
|
return e.queueMicrotask;
|
|
753
761
|
},
|
|
762
|
+
__wbg_queueMicrotask_a72f977e97f23c5f: function(e) {
|
|
763
|
+
queueMicrotask(e);
|
|
764
|
+
},
|
|
754
765
|
__wbg_randomFillSync_6c25eac9869eb53c: function() {
|
|
755
766
|
return l(function(e, t) {
|
|
756
767
|
e.randomFillSync(t);
|
|
757
768
|
}, arguments);
|
|
758
769
|
},
|
|
759
|
-
|
|
770
|
+
__wbg_readAsArrayBuffer_14bc98cc9cdf7c0b: function() {
|
|
760
771
|
return l(function(e, t) {
|
|
761
772
|
return e.readAsArrayBuffer(t);
|
|
762
773
|
}, arguments);
|
|
@@ -766,52 +777,52 @@ var be = $((le, P) => {
|
|
|
766
777
|
return P.require;
|
|
767
778
|
}, arguments);
|
|
768
779
|
},
|
|
769
|
-
|
|
780
|
+
__wbg_resolve_0076e10020304ede: function(e) {
|
|
770
781
|
return Promise.resolve(e);
|
|
771
782
|
},
|
|
772
783
|
__wbg_setTimeout_f757f00851f76c42: function(e, t) {
|
|
773
784
|
return setTimeout(e, t);
|
|
774
785
|
},
|
|
775
|
-
|
|
786
|
+
__wbg_set_575d3ddb70fe831d: function(e, t, n) {
|
|
776
787
|
e.set(v(t, n));
|
|
777
788
|
},
|
|
778
|
-
|
|
789
|
+
__wbg_set_6ae97e73113c4f0b: function(e, t, n) {
|
|
779
790
|
return e.set(t, n);
|
|
780
791
|
},
|
|
781
792
|
__wbg_set_6be42768c690e380: function(e, t, n) {
|
|
782
793
|
e[t] = n;
|
|
783
794
|
},
|
|
784
|
-
|
|
795
|
+
__wbg_set_bea140a88be9b277: function(e, t, n) {
|
|
796
|
+
e[t >>> 0] = n;
|
|
797
|
+
},
|
|
798
|
+
__wbg_set_body_1fb0f1008bfc7df6: function(e, t) {
|
|
785
799
|
e.body = t;
|
|
786
800
|
},
|
|
787
|
-
|
|
801
|
+
__wbg_set_cache_7507c4cc5938ccc7: function(e, t) {
|
|
788
802
|
e.cache = Q[t];
|
|
789
803
|
},
|
|
790
|
-
|
|
804
|
+
__wbg_set_credentials_e0dcce31ca532b7d: function(e, t) {
|
|
791
805
|
e.credentials = Z[t];
|
|
792
806
|
},
|
|
793
|
-
|
|
794
|
-
e[t >>> 0] = n;
|
|
795
|
-
},
|
|
796
|
-
__wbg_set_headers_7c1e39ece7826bec: function(e, t) {
|
|
807
|
+
__wbg_set_headers_40ad33dcf016613f: function(e, t) {
|
|
797
808
|
e.headers = t;
|
|
798
809
|
},
|
|
799
|
-
|
|
800
|
-
e.method =
|
|
810
|
+
__wbg_set_method_dcb32343247ec427: function(e, t, n) {
|
|
811
|
+
e.method = p(t, n);
|
|
801
812
|
},
|
|
802
|
-
|
|
813
|
+
__wbg_set_mode_74e772635acb96ec: function(e, t) {
|
|
803
814
|
e.mode = ee[t];
|
|
804
815
|
},
|
|
805
|
-
|
|
816
|
+
__wbg_set_signal_2dbd377604627f26: function(e, t) {
|
|
806
817
|
e.signal = t;
|
|
807
818
|
},
|
|
808
|
-
|
|
819
|
+
__wbg_signal_e5a49a2d9c65b7f6: function(e) {
|
|
809
820
|
return e.signal;
|
|
810
821
|
},
|
|
811
|
-
|
|
822
|
+
__wbg_size_8f1c0b1a1fbb3810: function(e) {
|
|
812
823
|
return e.size;
|
|
813
824
|
},
|
|
814
|
-
|
|
825
|
+
__wbg_slice_afd8274aed4149c0: function() {
|
|
815
826
|
return l(function(e, t, n) {
|
|
816
827
|
return e.slice(t, n);
|
|
817
828
|
}, arguments);
|
|
@@ -820,47 +831,47 @@ var be = $((le, P) => {
|
|
|
820
831
|
const n = t.stack, _ = d(n, o.__wbindgen_malloc, o.__wbindgen_realloc), c = a;
|
|
821
832
|
m().setInt32(e + 4, c, !0), m().setInt32(e + 0, _, !0);
|
|
822
833
|
},
|
|
823
|
-
|
|
834
|
+
__wbg_static_accessor_GLOBAL_266715b9d96ba635: function() {
|
|
824
835
|
const e = typeof global > "u" ? null : global;
|
|
825
836
|
return w(e) ? 0 : S(e);
|
|
826
837
|
},
|
|
827
|
-
|
|
838
|
+
__wbg_static_accessor_GLOBAL_THIS_10fb7dc1ae063179: function() {
|
|
828
839
|
const e = typeof globalThis > "u" ? null : globalThis;
|
|
829
840
|
return w(e) ? 0 : S(e);
|
|
830
841
|
},
|
|
831
|
-
|
|
842
|
+
__wbg_static_accessor_SELF_0b583911f537483a: function() {
|
|
832
843
|
const e = typeof self > "u" ? null : self;
|
|
833
844
|
return w(e) ? 0 : S(e);
|
|
834
845
|
},
|
|
835
|
-
|
|
846
|
+
__wbg_static_accessor_WINDOW_d7f903d1508cbdc4: function() {
|
|
836
847
|
const e = typeof window > "u" ? null : window;
|
|
837
848
|
return w(e) ? 0 : S(e);
|
|
838
849
|
},
|
|
839
|
-
|
|
850
|
+
__wbg_status_ce0a98d3c57125f3: function(e) {
|
|
840
851
|
return e.status;
|
|
841
852
|
},
|
|
842
|
-
|
|
853
|
+
__wbg_stringify_52ff602c1cc4fbb6: function() {
|
|
843
854
|
return l(function(e) {
|
|
844
855
|
return JSON.stringify(e);
|
|
845
856
|
}, arguments);
|
|
846
857
|
},
|
|
847
|
-
|
|
858
|
+
__wbg_subarray_002b94d5e13d1411: function(e, t, n) {
|
|
848
859
|
return e.subarray(t >>> 0, n >>> 0);
|
|
849
860
|
},
|
|
850
|
-
|
|
861
|
+
__wbg_then_c949d5a25a4e78f8: function(e, t, n) {
|
|
851
862
|
return e.then(t, n);
|
|
852
863
|
},
|
|
853
|
-
|
|
864
|
+
__wbg_then_e71170d78fcf8954: function(e, t) {
|
|
854
865
|
return e.then(t);
|
|
855
866
|
},
|
|
856
|
-
|
|
867
|
+
__wbg_url_8e28edeab4cd6bed: function(e, t) {
|
|
857
868
|
const n = t.url, _ = d(n, o.__wbindgen_malloc, o.__wbindgen_realloc), c = a;
|
|
858
869
|
m().setInt32(e + 4, c, !0), m().setInt32(e + 0, _, !0);
|
|
859
870
|
},
|
|
860
|
-
|
|
871
|
+
__wbg_valueOf_6abcff09c8156bb6: function(e) {
|
|
861
872
|
return e.valueOf();
|
|
862
873
|
},
|
|
863
|
-
|
|
874
|
+
__wbg_value_f3c585ee8f5ba40c: function(e) {
|
|
864
875
|
return e.value;
|
|
865
876
|
},
|
|
866
877
|
__wbg_versions_276b2795b1c6a219: function(e) {
|
|
@@ -869,28 +880,28 @@ var be = $((le, P) => {
|
|
|
869
880
|
__wbg_wasmreader_new: function(e) {
|
|
870
881
|
return M.__wrap(e);
|
|
871
882
|
},
|
|
872
|
-
|
|
883
|
+
__wbindgen_generic_0000000000000001: function(e, t) {
|
|
873
884
|
return L(e, t, Y);
|
|
874
885
|
},
|
|
875
|
-
|
|
886
|
+
__wbindgen_generic_0000000000000002: function(e, t) {
|
|
876
887
|
return L(e, t, X);
|
|
877
888
|
},
|
|
878
|
-
|
|
889
|
+
__wbindgen_generic_0000000000000003: function(e) {
|
|
879
890
|
return e;
|
|
880
891
|
},
|
|
881
|
-
|
|
892
|
+
__wbindgen_generic_0000000000000004: function(e) {
|
|
882
893
|
return e;
|
|
883
894
|
},
|
|
884
|
-
|
|
895
|
+
__wbindgen_generic_0000000000000005: function(e, t) {
|
|
885
896
|
return v(e, t);
|
|
886
897
|
},
|
|
887
|
-
|
|
888
|
-
return
|
|
898
|
+
__wbindgen_generic_0000000000000006: function(e, t) {
|
|
899
|
+
return p(e, t);
|
|
889
900
|
},
|
|
890
|
-
|
|
901
|
+
__wbindgen_generic_0000000000000007: function(e) {
|
|
891
902
|
return BigInt.asUintN(64, e);
|
|
892
903
|
},
|
|
893
|
-
|
|
904
|
+
__wbindgen_generic_0000000000000008: function(e, t) {
|
|
894
905
|
var n = v(e, t).slice();
|
|
895
906
|
return o.__wbindgen_free(e, t * 1, 1), n;
|
|
896
907
|
},
|
|
@@ -902,15 +913,15 @@ var be = $((le, P) => {
|
|
|
902
913
|
};
|
|
903
914
|
}
|
|
904
915
|
function X(r, e) {
|
|
905
|
-
o.
|
|
916
|
+
o.wasm_bindgen_255200e6d97c625a___convert__closures_____invoke_______true_(r, e);
|
|
906
917
|
}
|
|
907
918
|
function Y(r, e, t) {
|
|
908
|
-
const n = o.
|
|
919
|
+
const n = o.wasm_bindgen_255200e6d97c625a___convert__closures_____invoke___wasm_bindgen_255200e6d97c625a___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_255200e6d97c625a___JsError___true_(r, e, t);
|
|
909
920
|
if (n[1])
|
|
910
921
|
throw b(n[0]);
|
|
911
922
|
}
|
|
912
923
|
function K(r, e, t, n) {
|
|
913
|
-
o.
|
|
924
|
+
o.wasm_bindgen_255200e6d97c625a___convert__closures_____invoke___js_sys_bd80bcec31efc073___Function_fn_wasm_bindgen_255200e6d97c625a___JsValue_____wasm_bindgen_255200e6d97c625a___sys__Undefined___js_sys_bd80bcec31efc073___Function_fn_wasm_bindgen_255200e6d97c625a___JsValue_____wasm_bindgen_255200e6d97c625a___sys__Undefined_______true_(r, e, t, n);
|
|
914
925
|
}
|
|
915
926
|
const Q = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"], Z = ["omit", "same-origin", "include"], ee = ["same-origin", "no-cors", "cors", "navigate"], z = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
916
927
|
}, unregister: () => {
|
|
@@ -969,7 +980,7 @@ ${r.stack}` : n;
|
|
|
969
980
|
function m() {
|
|
970
981
|
return (I === null || I.buffer.detached === !0 || I.buffer.detached === void 0 && I.buffer !== o.memory.buffer) && (I = new DataView(o.memory.buffer)), I;
|
|
971
982
|
}
|
|
972
|
-
function
|
|
983
|
+
function p(r, e) {
|
|
973
984
|
return _e(r >>> 0, e);
|
|
974
985
|
}
|
|
975
986
|
let B = null;
|
|
@@ -1154,7 +1165,7 @@ ${r.stack}` : n;
|
|
|
1154
1165
|
const e = r.manifests, t = Object.assign(/* @__PURE__ */ Object.create(null), e), n = Object.getPrototypeOf(e);
|
|
1155
1166
|
return n !== null && n !== Object.prototype && (t.__proto__ = n), r.manifests = t, r;
|
|
1156
1167
|
}
|
|
1157
|
-
const
|
|
1168
|
+
const y = W(), f = W(), k = ae();
|
|
1158
1169
|
function D(r) {
|
|
1159
1170
|
return r.map((e) => ({
|
|
1160
1171
|
sigType: e.sigType,
|
|
@@ -1174,7 +1185,7 @@ ${r.stack}` : n;
|
|
|
1174
1185
|
},
|
|
1175
1186
|
async reader_fromBlob(r, e, t) {
|
|
1176
1187
|
const n = await M.fromBlob(r, e, t);
|
|
1177
|
-
return
|
|
1188
|
+
return y.add(n);
|
|
1178
1189
|
},
|
|
1179
1190
|
async reader_fromBlobFragment(r, e, t, n) {
|
|
1180
1191
|
const _ = await M.fromBlobFragment(
|
|
@@ -1183,30 +1194,30 @@ ${r.stack}` : n;
|
|
|
1183
1194
|
t,
|
|
1184
1195
|
n
|
|
1185
1196
|
);
|
|
1186
|
-
return
|
|
1197
|
+
return y.add(_);
|
|
1187
1198
|
},
|
|
1188
1199
|
reader_activeLabel(r) {
|
|
1189
|
-
return
|
|
1200
|
+
return y.get(r).activeLabel() ?? null;
|
|
1190
1201
|
},
|
|
1191
1202
|
reader_manifestStore(r) {
|
|
1192
|
-
const e =
|
|
1203
|
+
const e = y.get(r);
|
|
1193
1204
|
return ue(e.manifestStore());
|
|
1194
1205
|
},
|
|
1195
1206
|
reader_activeManifest(r) {
|
|
1196
|
-
return
|
|
1207
|
+
return y.get(r).activeManifest();
|
|
1197
1208
|
},
|
|
1198
1209
|
reader_json(r) {
|
|
1199
|
-
return
|
|
1210
|
+
return y.get(r).json();
|
|
1200
1211
|
},
|
|
1201
1212
|
reader_crJson(r) {
|
|
1202
|
-
return
|
|
1213
|
+
return y.get(r).crJson();
|
|
1203
1214
|
},
|
|
1204
1215
|
reader_resourceToBytes(r, e) {
|
|
1205
|
-
const n =
|
|
1216
|
+
const n = y.get(r).resourceToBytes(e);
|
|
1206
1217
|
return F(n, n.buffer);
|
|
1207
1218
|
},
|
|
1208
1219
|
reader_free(r) {
|
|
1209
|
-
|
|
1220
|
+
y.get(r).free(), y.remove(r);
|
|
1210
1221
|
},
|
|
1211
1222
|
builder_new(r) {
|
|
1212
1223
|
const e = h.new(r);
|
|
@@ -1229,6 +1240,9 @@ ${r.stack}` : n;
|
|
|
1229
1240
|
builder_addAssertion(r, e, t) {
|
|
1230
1241
|
f.get(r).addAssertion(e, t);
|
|
1231
1242
|
},
|
|
1243
|
+
builder_updateAssertionsAt(r, e, t) {
|
|
1244
|
+
f.get(r).updateAssertionsAt(e, t);
|
|
1245
|
+
},
|
|
1232
1246
|
builder_addRedaction(r, e, t) {
|
|
1233
1247
|
f.get(r).addRedaction(e, t);
|
|
1234
1248
|
},
|