@contentauth/c2pa-web 0.13.0 → 0.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
1
  var G = (r, e) => () => (e || r((e = { exports: {} }).exports, e), e.exports);
2
- var fe = G((de, C) => {
2
+ var be = G((de, C) => {
3
3
  class h {
4
4
  static __wrap(e) {
5
5
  const t = Object.create(h.prototype);
6
- return t.__wbg_ptr = e, U.register(t, t.__wbg_ptr, t), t;
6
+ return t.__wbg_ptr = e, k.register(t, t.__wbg_ptr, t), t;
7
7
  }
8
8
  __destroy_into_raw() {
9
9
  const e = this.__wbg_ptr;
10
- return this.__wbg_ptr = 0, U.unregister(this), e;
10
+ return this.__wbg_ptr = 0, k.unregister(this), e;
11
11
  }
12
12
  free() {
13
13
  const e = this.__destroy_into_raw();
@@ -20,7 +20,17 @@ var fe = G((de, C) => {
20
20
  addAction(e) {
21
21
  const t = o.wasmbuilder_addAction(this.__wbg_ptr, e);
22
22
  if (t[1])
23
- throw f(t[0]);
23
+ throw b(t[0]);
24
+ }
25
+ /**
26
+ * Add an assertion to the manifest under `label` with the given `data`.
27
+ * @param {string} label
28
+ * @param {any} data
29
+ */
30
+ addAssertion(e, t) {
31
+ const n = f(e, o.__wbindgen_malloc, o.__wbindgen_realloc), _ = a, c = o.wasmbuilder_addAssertion(this.__wbg_ptr, n, _, t);
32
+ if (c[1])
33
+ throw b(c[0]);
24
34
  }
25
35
  /**
26
36
  * Add an ingredient to the manifest from a JSON ingredient definition without a blob
@@ -30,9 +40,9 @@ var fe = G((de, C) => {
30
40
  * @param {string} json
31
41
  */
32
42
  addIngredient(e) {
33
- const t = b(e, o.__wbindgen_malloc, o.__wbindgen_realloc), n = a, _ = o.wasmbuilder_addIngredient(this.__wbg_ptr, t, n);
43
+ const t = f(e, o.__wbindgen_malloc, o.__wbindgen_realloc), n = a, _ = o.wasmbuilder_addIngredient(this.__wbg_ptr, t, n);
34
44
  if (_[1])
35
- throw f(_[0]);
45
+ throw b(_[0]);
36
46
  }
37
47
  /**
38
48
  * Add an ingredient to the manifest from a JSON ingredient definition and a [`Blob`].
@@ -47,7 +57,7 @@ var fe = G((de, C) => {
47
57
  * @returns {Promise<void>}
48
58
  */
49
59
  addIngredientFromBlob(e, t, n) {
50
- const _ = b(e, o.__wbindgen_malloc, o.__wbindgen_realloc), c = a, i = b(t, o.__wbindgen_malloc, o.__wbindgen_realloc), s = a;
60
+ const _ = f(e, o.__wbindgen_malloc, o.__wbindgen_realloc), c = a, i = f(t, o.__wbindgen_malloc, o.__wbindgen_realloc), s = a;
51
61
  return o.wasmbuilder_addIngredientFromBlob(this.__wbg_ptr, _, c, i, s, n);
52
62
  }
53
63
  /**
@@ -59,9 +69,9 @@ var fe = G((de, C) => {
59
69
  * @param {any} reason
60
70
  */
61
71
  addRedaction(e, t) {
62
- const n = b(e, o.__wbindgen_malloc, o.__wbindgen_realloc), _ = a, c = o.wasmbuilder_addRedaction(this.__wbg_ptr, n, _, t);
72
+ const n = f(e, o.__wbindgen_malloc, o.__wbindgen_realloc), _ = a, c = o.wasmbuilder_addRedaction(this.__wbg_ptr, n, _, t);
63
73
  if (c[1])
64
- throw f(c[0]);
74
+ throw b(c[0]);
65
75
  }
66
76
  /**
67
77
  * Add a [`Blob`] to the manifest as a resource. The ID must match an identifier in the manifest.
@@ -69,9 +79,26 @@ var fe = G((de, C) => {
69
79
  * @param {Blob} blob
70
80
  */
71
81
  addResourceFromBlob(e, t) {
72
- const n = b(e, o.__wbindgen_malloc, o.__wbindgen_realloc), _ = a, c = o.wasmbuilder_addResourceFromBlob(this.__wbg_ptr, n, _, t);
82
+ const n = f(e, o.__wbindgen_malloc, o.__wbindgen_realloc), _ = a, c = o.wasmbuilder_addResourceFromBlob(this.__wbg_ptr, n, _, t);
73
83
  if (c[1])
74
- throw f(c[0]);
84
+ throw b(c[0]);
85
+ }
86
+ /**
87
+ * Retains actions and ingredients together in one step, per
88
+ * `Builder::filter_actions_and_ingredients`. `action_indices`/`ingredient_indices` are
89
+ * 0-based indices into [`Self::get_definition`]'s `c2pa.actions` assertion / `ingredients`
90
+ * array, resolved on the JS side for the same reason as [`Self::filter_actions_at`].
91
+ *
92
+ * `rescue_ingredient` (driven by `ingredient_indices`) is evaluated for every ingredient
93
+ * first; any action referencing an ingredient it would rescue is force-kept regardless of
94
+ * `keep_action`.
95
+ * @param {Uint32Array} action_indices
96
+ * @param {Uint32Array} ingredient_indices
97
+ */
98
+ filterActionsAndIngredientsAt(e, t) {
99
+ const n = E(e, o.__wbindgen_malloc), _ = a, c = E(t, o.__wbindgen_malloc), i = a, s = o.wasmbuilder_filterActionsAndIngredientsAt(this.__wbg_ptr, n, _, c, i);
100
+ if (s[1])
101
+ throw b(s[0]);
75
102
  }
76
103
  /**
77
104
  * Retains only the actions at the given 0-based indices into the actions currently returned
@@ -91,9 +118,9 @@ var fe = G((de, C) => {
91
118
  * @param {Uint32Array} indices
92
119
  */
93
120
  filterActionsAt(e) {
94
- const t = J(e, o.__wbindgen_malloc), n = a, _ = o.wasmbuilder_filterActionsAt(this.__wbg_ptr, t, n);
121
+ const t = E(e, o.__wbindgen_malloc), n = a, _ = o.wasmbuilder_filterActionsAt(this.__wbg_ptr, t, n);
95
122
  if (_[1])
96
- throw f(_[0]);
123
+ throw b(_[0]);
97
124
  }
98
125
  /**
99
126
  * Retains ingredients, rescuing an otherwise-orphaned ingredient when its 0-based index into
@@ -105,9 +132,9 @@ var fe = G((de, C) => {
105
132
  * @param {Uint32Array} indices
106
133
  */
107
134
  filterIngredientsAt(e) {
108
- const t = J(e, o.__wbindgen_malloc), n = a, _ = o.wasmbuilder_filterIngredientsAt(this.__wbg_ptr, t, n);
135
+ const t = E(e, o.__wbindgen_malloc), n = a, _ = o.wasmbuilder_filterIngredientsAt(this.__wbg_ptr, t, n);
109
136
  if (_[1])
110
- throw f(_[0]);
137
+ throw b(_[0]);
111
138
  }
112
139
  /**
113
140
  * Attempts to create a new `WasmBuilder` from a builder archive.
@@ -117,10 +144,10 @@ var fe = G((de, C) => {
117
144
  * @returns {WasmBuilder}
118
145
  */
119
146
  static fromArchive(e, t) {
120
- var n = w(t) ? 0 : b(t, o.__wbindgen_malloc, o.__wbindgen_realloc), _ = a;
147
+ var n = w(t) ? 0 : f(t, o.__wbindgen_malloc, o.__wbindgen_realloc), _ = a;
121
148
  const c = o.wasmbuilder_fromArchive(e, n, _);
122
149
  if (c[2])
123
- throw f(c[1]);
150
+ throw b(c[1]);
124
151
  return h.__wrap(c[0]);
125
152
  }
126
153
  /**
@@ -131,11 +158,11 @@ var fe = G((de, C) => {
131
158
  * @returns {WasmBuilder}
132
159
  */
133
160
  static fromJson(e, t) {
134
- const n = b(e, o.__wbindgen_malloc, o.__wbindgen_realloc), _ = a;
135
- var c = w(t) ? 0 : b(t, o.__wbindgen_malloc, o.__wbindgen_realloc), i = a;
161
+ const n = f(e, o.__wbindgen_malloc, o.__wbindgen_realloc), _ = a;
162
+ var c = w(t) ? 0 : f(t, o.__wbindgen_malloc, o.__wbindgen_realloc), i = a;
136
163
  const s = o.wasmbuilder_fromJson(n, _, c, i);
137
164
  if (s[2])
138
- throw f(s[1]);
165
+ throw b(s[1]);
139
166
  return h.__wrap(s[0]);
140
167
  }
141
168
  /**
@@ -145,8 +172,8 @@ var fe = G((de, C) => {
145
172
  getDefinition() {
146
173
  const e = o.wasmbuilder_getDefinition(this.__wbg_ptr);
147
174
  if (e[2])
148
- throw f(e[1]);
149
- return f(e[0]);
175
+ throw b(e[1]);
176
+ return b(e[0]);
150
177
  }
151
178
  /**
152
179
  * Creates a new `WasmBuilder` with a minimal manifest definition.
@@ -155,10 +182,10 @@ var fe = G((de, C) => {
155
182
  * @returns {WasmBuilder}
156
183
  */
157
184
  static new(e) {
158
- var t = w(e) ? 0 : b(e, o.__wbindgen_malloc, o.__wbindgen_realloc), n = a;
185
+ var t = w(e) ? 0 : f(e, o.__wbindgen_malloc, o.__wbindgen_realloc), n = a;
159
186
  const _ = o.wasmbuilder_new(t, n);
160
187
  if (_[2])
161
- throw f(_[1]);
188
+ throw b(_[1]);
162
189
  return h.__wrap(_[0]);
163
190
  }
164
191
  /**
@@ -168,7 +195,7 @@ var fe = G((de, C) => {
168
195
  setIntent(e) {
169
196
  const t = o.wasmbuilder_setIntent(this.__wbg_ptr, e);
170
197
  if (t[1])
171
- throw f(t[0]);
198
+ throw b(t[0]);
172
199
  }
173
200
  /**
174
201
  * Sets the state of the no_embed flag.
@@ -185,7 +212,7 @@ var fe = G((de, C) => {
185
212
  * @param {string} url
186
213
  */
187
214
  setRemoteUrl(e) {
188
- const t = b(e, o.__wbindgen_malloc, o.__wbindgen_realloc), n = a;
215
+ const t = f(e, o.__wbindgen_malloc, o.__wbindgen_realloc), n = a;
189
216
  o.wasmbuilder_setRemoteUrl(this.__wbg_ptr, t, n);
190
217
  }
191
218
  /**
@@ -194,9 +221,9 @@ var fe = G((de, C) => {
194
221
  * @param {Blob} blob
195
222
  */
196
223
  setThumbnailFromBlob(e, t) {
197
- const n = b(e, o.__wbindgen_malloc, o.__wbindgen_realloc), _ = a, c = o.wasmbuilder_setThumbnailFromBlob(this.__wbg_ptr, n, _, t);
224
+ const n = f(e, o.__wbindgen_malloc, o.__wbindgen_realloc), _ = a, c = o.wasmbuilder_setThumbnailFromBlob(this.__wbg_ptr, n, _, t);
198
225
  if (c[1])
199
- throw f(c[0]);
226
+ throw b(c[0]);
200
227
  }
201
228
  /**
202
229
  * Sign an asset using the provided SignerDefinition, format, and source Blob.
@@ -206,7 +233,7 @@ var fe = G((de, C) => {
206
233
  * @returns {Promise<Uint8Array>}
207
234
  */
208
235
  sign(e, t, n) {
209
- const _ = b(t, o.__wbindgen_malloc, o.__wbindgen_realloc), c = a;
236
+ const _ = f(t, o.__wbindgen_malloc, o.__wbindgen_realloc), c = a;
210
237
  return o.wasmbuilder_sign(this.__wbg_ptr, e, _, c, n);
211
238
  }
212
239
  /**
@@ -218,7 +245,7 @@ var fe = G((de, C) => {
218
245
  * @returns {Promise<any>}
219
246
  */
220
247
  signAndGetManifestBytes(e, t, n) {
221
- const _ = b(t, o.__wbindgen_malloc, o.__wbindgen_realloc), c = a;
248
+ const _ = f(t, o.__wbindgen_malloc, o.__wbindgen_realloc), c = a;
222
249
  return o.wasmbuilder_signAndGetManifestBytes(this.__wbg_ptr, e, _, c, n);
223
250
  }
224
251
  /**
@@ -228,19 +255,19 @@ var fe = G((de, C) => {
228
255
  toArchive() {
229
256
  const e = o.wasmbuilder_toArchive(this.__wbg_ptr);
230
257
  if (e[2])
231
- throw f(e[1]);
232
- return f(e[0]);
258
+ throw b(e[1]);
259
+ return b(e[0]);
233
260
  }
234
261
  }
235
262
  Symbol.dispose && (h.prototype[Symbol.dispose] = h.prototype.free);
236
- class F {
263
+ class I {
237
264
  static __wrap(e) {
238
- const t = Object.create(F.prototype);
239
- return t.__wbg_ptr = e, k.register(t, t.__wbg_ptr, t), t;
265
+ const t = Object.create(I.prototype);
266
+ return t.__wbg_ptr = e, N.register(t, t.__wbg_ptr, t), t;
240
267
  }
241
268
  __destroy_into_raw() {
242
269
  const e = this.__wbg_ptr;
243
- return this.__wbg_ptr = 0, k.unregister(this), e;
270
+ return this.__wbg_ptr = 0, N.unregister(this), e;
244
271
  }
245
272
  free() {
246
273
  const e = this.__destroy_into_raw();
@@ -262,8 +289,8 @@ var fe = G((de, C) => {
262
289
  activeManifest() {
263
290
  const e = o.wasmreader_activeManifest(this.__wbg_ptr);
264
291
  if (e[2])
265
- throw f(e[1]);
266
- return f(e[0]);
292
+ throw b(e[1]);
293
+ return b(e[0]);
267
294
  }
268
295
  /**
269
296
  * Returns the asset's manifest store as crJSON.
@@ -287,8 +314,8 @@ var fe = G((de, C) => {
287
314
  * @returns {Promise<WasmReader>}
288
315
  */
289
316
  static fromBlob(e, t, n) {
290
- const _ = b(e, o.__wbindgen_malloc, o.__wbindgen_realloc), c = a;
291
- var i = w(n) ? 0 : b(n, o.__wbindgen_malloc, o.__wbindgen_realloc), s = a;
317
+ const _ = f(e, o.__wbindgen_malloc, o.__wbindgen_realloc), c = a;
318
+ var i = w(n) ? 0 : f(n, o.__wbindgen_malloc, o.__wbindgen_realloc), s = a;
292
319
  return o.wasmreader_fromBlob(_, c, t, i, s);
293
320
  }
294
321
  /**
@@ -301,8 +328,8 @@ var fe = G((de, C) => {
301
328
  * @returns {Promise<WasmReader>}
302
329
  */
303
330
  static fromBlobFragment(e, t, n, _) {
304
- const c = b(e, o.__wbindgen_malloc, o.__wbindgen_realloc), i = a;
305
- var s = w(_) ? 0 : b(_, o.__wbindgen_malloc, o.__wbindgen_realloc), u = a;
331
+ const c = f(e, o.__wbindgen_malloc, o.__wbindgen_realloc), i = a;
332
+ var s = w(_) ? 0 : f(_, o.__wbindgen_malloc, o.__wbindgen_realloc), u = a;
306
333
  return o.wasmreader_fromBlobFragment(c, i, t, n, s, u);
307
334
  }
308
335
  /**
@@ -325,8 +352,8 @@ var fe = G((de, C) => {
325
352
  manifestStore() {
326
353
  const e = o.wasmreader_manifestStore(this.__wbg_ptr);
327
354
  if (e[2])
328
- throw f(e[1]);
329
- return f(e[0]);
355
+ throw b(e[1]);
356
+ return b(e[0]);
330
357
  }
331
358
  /**
332
359
  * Accepts a URI reference to a binary object in the resource store and returns a `js_sys::Uint8Array` containing the resource's bytes.
@@ -334,17 +361,17 @@ var fe = G((de, C) => {
334
361
  * @returns {Uint8Array}
335
362
  */
336
363
  resourceToBytes(e) {
337
- const t = b(e, o.__wbindgen_malloc, o.__wbindgen_realloc), n = a, _ = o.wasmreader_resourceToBytes(this.__wbg_ptr, t, n);
364
+ const t = f(e, o.__wbindgen_malloc, o.__wbindgen_realloc), n = a, _ = o.wasmreader_resourceToBytes(this.__wbg_ptr, t, n);
338
365
  if (_[2])
339
- throw f(_[1]);
340
- return f(_[0]);
366
+ throw b(_[1]);
367
+ return b(_[0]);
341
368
  }
342
369
  }
343
- Symbol.dispose && (F.prototype[Symbol.dispose] = F.prototype.free);
370
+ Symbol.dispose && (I.prototype[Symbol.dispose] = I.prototype.free);
344
371
  function $(r) {
345
- const e = b(r, o.__wbindgen_malloc, o.__wbindgen_realloc), t = a, n = o.loadSettings(e, t);
372
+ const e = f(r, o.__wbindgen_malloc, o.__wbindgen_realloc), t = a, n = o.loadSettings(e, t);
346
373
  if (n[1])
347
- throw f(n[0]);
374
+ throw b(n[0]);
348
375
  }
349
376
  function H() {
350
377
  return {
@@ -366,7 +393,7 @@ var fe = G((de, C) => {
366
393
  return w(n) ? 16777215 : n ? 1 : 0;
367
394
  },
368
395
  __wbg___wbindgen_debug_string_0accd80f45e5faa2: function(e, t) {
369
- const n = x(t), _ = b(n, o.__wbindgen_malloc, o.__wbindgen_realloc), c = a;
396
+ const n = x(t), _ = f(n, o.__wbindgen_malloc, o.__wbindgen_realloc), c = a;
370
397
  m().setInt32(e + 4, c, !0), m().setInt32(e + 0, _, !0);
371
398
  },
372
399
  __wbg___wbindgen_in_70a403a56e771704: function(e, t) {
@@ -400,7 +427,7 @@ var fe = G((de, C) => {
400
427
  },
401
428
  __wbg___wbindgen_string_get_72bdf95d3ae505b1: function(e, t) {
402
429
  const n = t, _ = typeof n == "string" ? n : void 0;
403
- var c = w(_) ? 0 : b(_, o.__wbindgen_malloc, o.__wbindgen_realloc), i = a;
430
+ var c = w(_) ? 0 : f(_, o.__wbindgen_malloc, o.__wbindgen_realloc), i = a;
404
431
  m().setInt32(e + 4, i, !0), m().setInt32(e + 0, c, !0);
405
432
  },
406
433
  __wbg___wbindgen_throw_1506f2235d1bdba0: function(e, t) {
@@ -416,12 +443,12 @@ var fe = G((de, C) => {
416
443
  e.abort(t);
417
444
  },
418
445
  __wbg_append_e1746995edcb0170: function() {
419
- return d(function(e, t, n, _, c) {
446
+ return l(function(e, t, n, _, c) {
420
447
  e.append(y(t, n), y(_, c));
421
448
  }, arguments);
422
449
  },
423
450
  __wbg_arrayBuffer_05927079aabe6d46: function() {
424
- return d(function(e) {
451
+ return l(function(e) {
425
452
  return e.arrayBuffer();
426
453
  }, arguments);
427
454
  },
@@ -429,12 +456,12 @@ var fe = G((de, C) => {
429
456
  return e.byteLength;
430
457
  },
431
458
  __wbg_call_8a89609d89f6608a: function() {
432
- return d(function(e, t) {
459
+ return l(function(e, t) {
433
460
  return e.call(t);
434
461
  }, arguments);
435
462
  },
436
463
  __wbg_call_9c758de292015997: function() {
437
- return d(function(e, t, n) {
464
+ return l(function(e, t, n) {
438
465
  return e.call(t, n);
439
466
  }, arguments);
440
467
  },
@@ -468,22 +495,22 @@ var fe = G((de, C) => {
468
495
  return Array.from(e);
469
496
  },
470
497
  __wbg_getRandomValues_3f44b700395062e5: function() {
471
- return d(function(e, t) {
498
+ return l(function(e, t) {
472
499
  globalThis.crypto.getRandomValues(A(e, t));
473
500
  }, arguments);
474
501
  },
475
502
  __wbg_getRandomValues_76dfc69825c9c552: function() {
476
- return d(function(e, t) {
503
+ return l(function(e, t) {
477
504
  globalThis.crypto.getRandomValues(A(e, t));
478
505
  }, arguments);
479
506
  },
480
507
  __wbg_getRandomValues_8aa3112c6615eef6: function() {
481
- return d(function(e, t) {
508
+ return l(function(e, t) {
482
509
  globalThis.crypto.getRandomValues(A(e, t));
483
510
  }, arguments);
484
511
  },
485
512
  __wbg_getRandomValues_c44a50d8cfdaebeb: function() {
486
- return d(function(e, t) {
513
+ return l(function(e, t) {
487
514
  e.getRandomValues(t);
488
515
  }, arguments);
489
516
  },
@@ -491,7 +518,7 @@ var fe = G((de, C) => {
491
518
  return e.getTime();
492
519
  },
493
520
  __wbg_get_1f8f054ddbaa7db2: function() {
494
- return d(function(e, t) {
521
+ return l(function(e, t) {
495
522
  return Reflect.get(e, t);
496
523
  }, arguments);
497
524
  },
@@ -499,7 +526,7 @@ var fe = G((de, C) => {
499
526
  return e[t >>> 0];
500
527
  },
501
528
  __wbg_get_de6a0f7d4d18a304: function() {
502
- return d(function(e, t) {
529
+ return l(function(e, t) {
503
530
  return Reflect.get(e, t);
504
531
  }, arguments);
505
532
  },
@@ -510,7 +537,7 @@ var fe = G((de, C) => {
510
537
  return e[t];
511
538
  },
512
539
  __wbg_has_73740b27f436fed3: function() {
513
- return d(function(e, t) {
540
+ return l(function(e, t) {
514
541
  return Reflect.has(e, t);
515
542
  }, arguments);
516
543
  },
@@ -584,7 +611,7 @@ var fe = G((de, C) => {
584
611
  return /* @__PURE__ */ new Date();
585
612
  },
586
613
  __wbg_new_0d09705104e164af: function() {
587
- return d(function() {
614
+ return l(function() {
588
615
  return new AbortController();
589
616
  }, arguments);
590
617
  },
@@ -598,7 +625,7 @@ var fe = G((de, C) => {
598
625
  return /* @__PURE__ */ new Map();
599
626
  },
600
627
  __wbg_new_a1b9f645bba64f0f: function() {
601
- return d(function() {
628
+ return l(function() {
602
629
  return new FileReaderSync();
603
630
  }, arguments);
604
631
  },
@@ -609,7 +636,7 @@ var fe = G((de, C) => {
609
636
  return new Array();
610
637
  },
611
638
  __wbg_new_e436d06bc8e77460: function() {
612
- return d(function() {
639
+ return l(function() {
613
640
  return new Headers();
614
641
  }, arguments);
615
642
  },
@@ -636,7 +663,7 @@ var fe = G((de, C) => {
636
663
  return new Uint8Array(e >>> 0);
637
664
  },
638
665
  __wbg_new_with_str_and_init_bcd02b79a793d27f: function() {
639
- return d(function(e, t, n) {
666
+ return l(function(e, t, n) {
640
667
  return new Request(y(e, t), n);
641
668
  }, arguments);
642
669
  },
@@ -644,7 +671,7 @@ var fe = G((de, C) => {
644
671
  return e.next;
645
672
  },
646
673
  __wbg_next_eb8ca7351fa27906: function() {
647
- return d(function(e) {
674
+ return l(function(e) {
648
675
  return e.next();
649
676
  }, arguments);
650
677
  },
@@ -667,17 +694,17 @@ var fe = G((de, C) => {
667
694
  return e.queueMicrotask;
668
695
  },
669
696
  __wbg_randomFillSync_6c25eac9869eb53c: function() {
670
- return d(function(e, t) {
697
+ return l(function(e, t) {
671
698
  e.randomFillSync(t);
672
699
  }, arguments);
673
700
  },
674
701
  __wbg_readAsArrayBuffer_f1b8da05559618d9: function() {
675
- return d(function(e, t) {
702
+ return l(function(e, t) {
676
703
  return e.readAsArrayBuffer(t);
677
704
  }, arguments);
678
705
  },
679
706
  __wbg_require_b4edbdcf3e2a1ef0: function() {
680
- return d(function() {
707
+ return l(function() {
681
708
  return C.require;
682
709
  }, arguments);
683
710
  },
@@ -727,12 +754,12 @@ var fe = G((de, C) => {
727
754
  return e.size;
728
755
  },
729
756
  __wbg_slice_02bb778501725738: function() {
730
- return d(function(e, t, n) {
757
+ return l(function(e, t, n) {
731
758
  return e.slice(t, n);
732
759
  }, arguments);
733
760
  },
734
761
  __wbg_stack_3b0d974bbf31e44f: function(e, t) {
735
- const n = t.stack, _ = b(n, o.__wbindgen_malloc, o.__wbindgen_realloc), c = a;
762
+ const n = t.stack, _ = f(n, o.__wbindgen_malloc, o.__wbindgen_realloc), c = a;
736
763
  m().setInt32(e + 4, c, !0), m().setInt32(e + 0, _, !0);
737
764
  },
738
765
  __wbg_static_accessor_GLOBAL_9d53f2689e622ca1: function() {
@@ -755,7 +782,7 @@ var fe = G((de, C) => {
755
782
  return e.status;
756
783
  },
757
784
  __wbg_stringify_8286df6dcc591521: function() {
758
- return d(function(e) {
785
+ return l(function(e) {
759
786
  return JSON.stringify(e);
760
787
  }, arguments);
761
788
  },
@@ -769,7 +796,7 @@ var fe = G((de, C) => {
769
796
  return e.then(t);
770
797
  },
771
798
  __wbg_url_6808f1c468f2d0cd: function(e, t) {
772
- const n = t.url, _ = b(n, o.__wbindgen_malloc, o.__wbindgen_realloc), c = a;
799
+ const n = t.url, _ = f(n, o.__wbindgen_malloc, o.__wbindgen_realloc), c = a;
773
800
  m().setInt32(e + 4, c, !0), m().setInt32(e + 0, _, !0);
774
801
  },
775
802
  __wbg_valueOf_41ae57308c1f031c: function(e) {
@@ -782,13 +809,13 @@ var fe = G((de, C) => {
782
809
  return e.versions;
783
810
  },
784
811
  __wbg_wasmreader_new: function(e) {
785
- return F.__wrap(e);
812
+ return I.__wrap(e);
786
813
  },
787
814
  __wbindgen_cast_0000000000000001: function(e, t) {
788
- return z(e, t, Y);
815
+ return J(e, t, Y);
789
816
  },
790
817
  __wbindgen_cast_0000000000000002: function(e, t) {
791
- return z(e, t, X);
818
+ return J(e, t, X);
792
819
  },
793
820
  __wbindgen_cast_0000000000000003: function(e) {
794
821
  return e;
@@ -822,14 +849,14 @@ var fe = G((de, C) => {
822
849
  function Y(r, e, t) {
823
850
  const n = o.wasm_bindgen_304c265eb9e6f0af___convert__closures_____invoke___wasm_bindgen_304c265eb9e6f0af___JsValue__core_9b3796e30d99ddb7___result__Result_____wasm_bindgen_304c265eb9e6f0af___JsError___true_(r, e, t);
824
851
  if (n[1])
825
- throw f(n[0]);
852
+ throw b(n[0]);
826
853
  }
827
854
  function K(r, e, t, n) {
828
855
  o.wasm_bindgen_304c265eb9e6f0af___convert__closures_____invoke___js_sys_74e7014fb12660c3___Function_fn_wasm_bindgen_304c265eb9e6f0af___JsValue_____wasm_bindgen_304c265eb9e6f0af___sys__Undefined___js_sys_74e7014fb12660c3___Function_fn_wasm_bindgen_304c265eb9e6f0af___JsValue_____wasm_bindgen_304c265eb9e6f0af___sys__Undefined_______true_(r, e, t, n);
829
856
  }
830
- 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"], U = typeof FinalizationRegistry > "u" ? { register: () => {
857
+ 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"], k = typeof FinalizationRegistry > "u" ? { register: () => {
831
858
  }, unregister: () => {
832
- } } : new FinalizationRegistry((r) => o.__wbg_wasmbuilder_free(r, 1)), k = typeof FinalizationRegistry > "u" ? { register: () => {
859
+ } } : new FinalizationRegistry((r) => o.__wbg_wasmbuilder_free(r, 1)), N = typeof FinalizationRegistry > "u" ? { register: () => {
833
860
  }, unregister: () => {
834
861
  } } : new FinalizationRegistry((r) => o.__wbg_wasmreader_free(r, 1));
835
862
  typeof FinalizationRegistry > "u" || new FinalizationRegistry((r) => o.__wbg_wasmsigner_free(r, 1));
@@ -837,7 +864,7 @@ var fe = G((de, C) => {
837
864
  const e = o.__externref_table_alloc();
838
865
  return o.__wbindgen_externrefs.set(e, r), e;
839
866
  }
840
- const N = typeof FinalizationRegistry > "u" ? { register: () => {
867
+ const z = typeof FinalizationRegistry > "u" ? { register: () => {
841
868
  }, unregister: () => {
842
869
  } } : new FinalizationRegistry((r) => o.__wbindgen_destroy_closure(r.a, r.b));
843
870
  function x(r) {
@@ -895,7 +922,7 @@ ${r.stack}` : n;
895
922
  function T() {
896
923
  return (B === null || B.byteLength === 0) && (B = new Uint8Array(o.memory.buffer)), B;
897
924
  }
898
- function d(r, e) {
925
+ function l(r, e) {
899
926
  try {
900
927
  return r.apply(this, e);
901
928
  } catch (t) {
@@ -906,7 +933,7 @@ ${r.stack}` : n;
906
933
  function w(r) {
907
934
  return r == null;
908
935
  }
909
- function z(r, e, t) {
936
+ function J(r, e, t) {
910
937
  const n = { a: r, b: e, cnt: 1 }, _ = (...c) => {
911
938
  n.cnt++;
912
939
  const i = n.a;
@@ -918,14 +945,14 @@ ${r.stack}` : n;
918
945
  }
919
946
  };
920
947
  return _._wbg_cb_unref = () => {
921
- --n.cnt === 0 && (o.__wbindgen_destroy_closure(n.a, n.b), n.a = 0, N.unregister(n));
922
- }, N.register(_, n, n), _;
948
+ --n.cnt === 0 && (o.__wbindgen_destroy_closure(n.a, n.b), n.a = 0, z.unregister(n));
949
+ }, z.register(_, n, n), _;
923
950
  }
924
- function J(r, e) {
951
+ function E(r, e) {
925
952
  const t = e(r.length * 4, 4) >>> 0;
926
953
  return te().set(r, t / 4), a = r.length, t;
927
954
  }
928
- function b(r, e, t) {
955
+ function f(r, e, t) {
929
956
  if (t === void 0) {
930
957
  const s = j.encode(r), u = e(s.length, 1) >>> 0;
931
958
  return T().subarray(u, u + s.length).set(s), a = s.length, u;
@@ -945,16 +972,16 @@ ${r.stack}` : n;
945
972
  }
946
973
  return a = i, _;
947
974
  }
948
- function f(r) {
975
+ function b(r) {
949
976
  const e = o.__wbindgen_externrefs.get(r);
950
977
  return o.__externref_table_dealloc(r), e;
951
978
  }
952
- let E = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 });
953
- E.decode();
979
+ let O = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 });
980
+ O.decode();
954
981
  const ne = 2146435072;
955
- let O = 0;
982
+ let U = 0;
956
983
  function re(r, e) {
957
- return O += e, O >= ne && (E = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }), E.decode(), O = e), E.decode(T().subarray(r, r + e));
984
+ return U += e, U >= ne && (O = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }), O.decode(), U = e), O.decode(T().subarray(r, r + e));
958
985
  }
959
986
  const j = new TextEncoder();
960
987
  "encodeInto" in j || (j.encodeInto = function(r, e) {
@@ -1022,13 +1049,13 @@ ${r.stack}` : n;
1022
1049
  get(_, c) {
1023
1050
  return (...i) => {
1024
1051
  const s = ce(), u = [], g = [];
1025
- return i.forEach((I) => {
1026
- L(I) ? (u.push(I.value), g.push(...I.transfer)) : u.push(I);
1052
+ return i.forEach((F) => {
1053
+ L(F) ? (u.push(F.value), g.push(...F.transfer)) : u.push(F);
1027
1054
  }), n.postMessage(
1028
1055
  { method: c, args: u, id: s, channelName: r },
1029
1056
  { transfer: g }
1030
- ), new Promise((I, P) => {
1031
- t.set(s, { resolve: I, reject: P });
1057
+ ), new Promise((F, P) => {
1058
+ t.set(s, { resolve: F, reject: P });
1032
1059
  });
1033
1060
  };
1034
1061
  }
@@ -1065,18 +1092,18 @@ ${r.stack}` : n;
1065
1092
  const e = r.manifests, t = Object.assign(/* @__PURE__ */ Object.create(null), e), n = Object.getPrototypeOf(e);
1066
1093
  return n !== null && n !== Object.prototype && r.active_manifest && (t[r.active_manifest] = n), r.manifests = t, r;
1067
1094
  }
1068
- const p = D(), l = D(), V = se();
1095
+ const p = D(), d = D(), V = se();
1069
1096
  ie(
1070
1097
  ue({
1071
1098
  async initWorker(r, e) {
1072
1099
  oe({ module: r }), e && $(e);
1073
1100
  },
1074
1101
  async reader_fromBlob(r, e, t) {
1075
- const n = await F.fromBlob(r, e, t);
1102
+ const n = await I.fromBlob(r, e, t);
1076
1103
  return p.add(n);
1077
1104
  },
1078
1105
  async reader_fromBlobFragment(r, e, t, n) {
1079
- const _ = await F.fromBlobFragment(
1106
+ const _ = await I.fromBlobFragment(
1080
1107
  r,
1081
1108
  e,
1082
1109
  t,
@@ -1109,58 +1136,67 @@ ${r.stack}` : n;
1109
1136
  },
1110
1137
  builder_new(r) {
1111
1138
  const e = h.new(r);
1112
- return l.add(e);
1139
+ return d.add(e);
1113
1140
  },
1114
1141
  builder_fromJson(r, e) {
1115
1142
  const t = h.fromJson(r, e);
1116
- return l.add(t);
1143
+ return d.add(t);
1117
1144
  },
1118
1145
  builder_fromArchive(r, e) {
1119
1146
  const t = h.fromArchive(r, e);
1120
- return l.add(t);
1147
+ return d.add(t);
1121
1148
  },
1122
1149
  builder_setIntent(r, e) {
1123
- l.get(r).setIntent(e);
1150
+ d.get(r).setIntent(e);
1124
1151
  },
1125
1152
  builder_addAction(r, e) {
1126
- l.get(r).addAction(e);
1153
+ d.get(r).addAction(e);
1154
+ },
1155
+ builder_addAssertion(r, e, t) {
1156
+ d.get(r).addAssertion(e, t);
1127
1157
  },
1128
1158
  builder_addRedaction(r, e, t) {
1129
- l.get(r).addRedaction(e, t);
1159
+ d.get(r).addRedaction(e, t);
1130
1160
  },
1131
1161
  builder_filterActionsAt(r, e) {
1132
- l.get(r).filterActionsAt(Uint32Array.from(e));
1162
+ d.get(r).filterActionsAt(Uint32Array.from(e));
1133
1163
  },
1134
1164
  builder_filterIngredientsAt(r, e) {
1135
- l.get(r).filterIngredientsAt(Uint32Array.from(e));
1165
+ d.get(r).filterIngredientsAt(Uint32Array.from(e));
1166
+ },
1167
+ builder_filterActionsAndIngredientsAt(r, e, t) {
1168
+ d.get(r).filterActionsAndIngredientsAt(
1169
+ Uint32Array.from(e),
1170
+ Uint32Array.from(t)
1171
+ );
1136
1172
  },
1137
1173
  builder_setRemoteUrl(r, e) {
1138
- l.get(r).setRemoteUrl(e);
1174
+ d.get(r).setRemoteUrl(e);
1139
1175
  },
1140
1176
  builder_setNoEmbed(r, e) {
1141
- l.get(r).setNoEmbed(e);
1177
+ d.get(r).setNoEmbed(e);
1142
1178
  },
1143
1179
  builder_setThumbnailFromBlob(r, e, t) {
1144
- l.get(r).setThumbnailFromBlob(e, t);
1180
+ d.get(r).setThumbnailFromBlob(e, t);
1145
1181
  },
1146
1182
  builder_addIngredient(r, e) {
1147
- l.get(r).addIngredient(e);
1183
+ d.get(r).addIngredient(e);
1148
1184
  },
1149
1185
  async builder_addIngredientFromBlob(r, e, t, n) {
1150
- await l.get(r).addIngredientFromBlob(e, t, n);
1186
+ await d.get(r).addIngredientFromBlob(e, t, n);
1151
1187
  },
1152
1188
  builder_addResourceFromBlob(r, e, t) {
1153
- l.get(r).addResourceFromBlob(e, t);
1189
+ d.get(r).addResourceFromBlob(e, t);
1154
1190
  },
1155
1191
  builder_getDefinition(r) {
1156
- return l.get(r).getDefinition();
1192
+ return d.get(r).getDefinition();
1157
1193
  },
1158
1194
  builder_toArchive(r) {
1159
- const t = l.get(r).toArchive();
1195
+ const t = d.get(r).toArchive();
1160
1196
  return M(t, t.buffer);
1161
1197
  },
1162
1198
  async builder_sign(r, e, t, n, _) {
1163
- const i = await l.get(r).sign(
1199
+ const i = await d.get(r).sign(
1164
1200
  {
1165
1201
  reserveSize: t.reserveSize,
1166
1202
  alg: t.alg,
@@ -1176,7 +1212,7 @@ ${r.stack}` : n;
1176
1212
  return M(i, i.buffer);
1177
1213
  },
1178
1214
  async builder_signAndGetManifestBytes(r, e, t, n, _) {
1179
- const c = l.get(r), { manifest: i, asset: s } = await c.signAndGetManifestBytes(
1215
+ const c = d.get(r), { manifest: i, asset: s } = await c.signAndGetManifestBytes(
1180
1216
  {
1181
1217
  reserveSize: t.reserveSize,
1182
1218
  alg: t.alg,
@@ -1198,7 +1234,7 @@ ${r.stack}` : n;
1198
1234
  );
1199
1235
  },
1200
1236
  builder_free(r) {
1201
- l.get(r).free(), l.remove(r);
1237
+ d.get(r).free(), d.remove(r);
1202
1238
  }
1203
1239
  })
1204
1240
  );
@@ -1215,4 +1251,4 @@ ${r.stack}` : n;
1215
1251
  return e;
1216
1252
  }
1217
1253
  });
1218
- export default fe();
1254
+ export default be();