@rive-app/canvas-advanced 2.14.3 → 2.15.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.
@@ -5,17 +5,17 @@ var Rive = (() => {
5
5
  return (
6
6
  function(moduleArg = {}) {
7
7
 
8
- var m = moduleArg, aa, ba;
9
- m.ready = new Promise((a, b) => {
8
+ var n = moduleArg, aa, ba;
9
+ n.ready = new Promise((a, b) => {
10
10
  aa = a;
11
11
  ba = b;
12
12
  });
13
13
  function ca() {
14
14
  function a(g) {
15
- const n = d;
15
+ const m = d;
16
16
  c = b = 0;
17
17
  d = new Map();
18
- n.forEach(p => {
18
+ m.forEach(p => {
19
19
  try {
20
20
  p(g);
21
21
  } catch (l) {
@@ -28,9 +28,9 @@ function ca() {
28
28
  let b = 0, c = 0, d = new Map(), e = null, f = null;
29
29
  this.requestAnimationFrame = function(g) {
30
30
  b || (b = requestAnimationFrame(a.bind(this)));
31
- const n = ++c;
32
- d.set(n, g);
33
- return n;
31
+ const m = ++c;
32
+ d.set(m, g);
33
+ return m;
34
34
  };
35
35
  this.cancelAnimationFrame = function(g) {
36
36
  d.delete(g);
@@ -38,14 +38,14 @@ function ca() {
38
38
  };
39
39
  this.Wb = function(g) {
40
40
  f && (document.body.remove(f), f = null);
41
- g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(n) {
42
- f.innerHTML = "RIVE FPS " + n.toFixed(1);
41
+ g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(m) {
42
+ f.innerHTML = "RIVE FPS " + m.toFixed(1);
43
43
  }, document.body.appendChild(f));
44
44
  e = new function() {
45
- let n = 0, p = 0;
45
+ let m = 0, p = 0;
46
46
  this.Yb = function() {
47
47
  var l = performance.now();
48
- p ? (++n, l -= p, 1000 < l && (g(1000 * n / l), n = p = 0)) : (p = l, n = 0);
48
+ p ? (++m, l -= p, 1000 < l && (g(1000 * m / l), m = p = 0)) : (p = l, m = 0);
49
49
  };
50
50
  }();
51
51
  };
@@ -71,55 +71,60 @@ function ha(a) {
71
71
  return c << a;
72
72
  };
73
73
  }
74
- const ia = m.onRuntimeInitialized;
75
- m.onRuntimeInitialized = function() {
74
+ const ia = n.onRuntimeInitialized;
75
+ n.onRuntimeInitialized = function() {
76
76
  ia && ia();
77
- let a = m.decodeFont;
78
- m.decodeFont = function(c, d) {
79
- c = a(c);
80
- d(c);
77
+ let a = n.decodeAudio;
78
+ n.decodeAudio = function(d, e) {
79
+ d = a(d);
80
+ e(d);
81
81
  };
82
- const b = m.FileAssetLoader;
83
- m.ptrToAsset = c => {
84
- let d = m.ptrToFileAsset(c);
85
- return d.isImage ? m.ptrToImageAsset(c) : d.isFont ? m.ptrToFontAsset(c) : d;
82
+ let b = n.decodeFont;
83
+ n.decodeFont = function(d, e) {
84
+ d = b(d);
85
+ e(d);
86
86
  };
87
- m.CustomFileAssetLoader = b.extend("CustomFileAssetLoader", {__construct:function({loadContents:c}) {
87
+ const c = n.FileAssetLoader;
88
+ n.ptrToAsset = d => {
89
+ let e = n.ptrToFileAsset(d);
90
+ return e.isImage ? n.ptrToImageAsset(d) : e.isFont ? n.ptrToFontAsset(d) : e.isAudio ? n.ptrToAudioAsset(d) : e;
91
+ };
92
+ n.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:d}) {
88
93
  this.__parent.__construct.call(this);
89
- this.Hb = c;
90
- }, loadContents:function(c, d) {
91
- c = m.ptrToAsset(c);
92
- return this.Hb(c, d);
94
+ this.Hb = d;
95
+ }, loadContents:function(d, e) {
96
+ d = n.ptrToAsset(d);
97
+ return this.Hb(d, e);
93
98
  },});
94
- m.CDNFileAssetLoader = b.extend("CDNFileAssetLoader", {__construct:function() {
99
+ n.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
95
100
  this.__parent.__construct.call(this);
96
- }, loadContents:function(c) {
97
- let d = m.ptrToAsset(c);
98
- c = d.cdnUuid;
99
- if ("" === c) {
101
+ }, loadContents:function(d) {
102
+ let e = n.ptrToAsset(d);
103
+ d = e.cdnUuid;
104
+ if ("" === d) {
100
105
  return !1;
101
106
  }
102
- (function(e, f) {
103
- var g = new XMLHttpRequest();
104
- g.responseType = "arraybuffer";
105
- g.onreadystatechange = function() {
106
- 4 == g.readyState && 200 == g.status && f(g);
107
+ (function(f, g) {
108
+ var m = new XMLHttpRequest();
109
+ m.responseType = "arraybuffer";
110
+ m.onreadystatechange = function() {
111
+ 4 == m.readyState && 200 == m.status && g(m);
107
112
  };
108
- g.open("GET", e, !0);
109
- g.send(null);
110
- })(d.cdnBaseUrl + "/" + c, e => {
111
- d.decode(new Uint8Array(e.response));
113
+ m.open("GET", f, !0);
114
+ m.send(null);
115
+ })(e.cdnBaseUrl + "/" + d, f => {
116
+ e.decode(new Uint8Array(f.response));
112
117
  });
113
118
  return !0;
114
119
  },});
115
- m.FallbackFileAssetLoader = b.extend("FallbackFileAssetLoader", {__construct:function() {
120
+ n.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
116
121
  this.__parent.__construct.call(this);
117
122
  this.lb = [];
118
- }, addLoader:function(c) {
119
- this.lb.push(c);
120
- }, loadContents:function(c, d) {
121
- for (let e of this.lb) {
122
- if (e.loadContents(c, d)) {
123
+ }, addLoader:function(d) {
124
+ this.lb.push(d);
125
+ }, loadContents:function(d, e) {
126
+ for (let f of this.lb) {
127
+ if (f.loadContents(d, e)) {
123
128
  return !0;
124
129
  }
125
130
  }
@@ -198,7 +203,7 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
198
203
  }
199
204
  return !0;
200
205
  }
201
- let b = null, c = 0, d = 0, e = null, f = null, g = 0, n = 0, p = !1;
206
+ let b = null, c = 0, d = 0, e = null, f = null, g = 0, m = 0, p = !1;
202
207
  a();
203
208
  this.nc = function() {
204
209
  a();
@@ -249,7 +254,7 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
249
254
  }
250
255
  console.assert(w == 8 * B);
251
256
  w = y.push(E);
252
- n != w && (b.bufferData(b.ELEMENT_ARRAY_BUFFER, 2 * w, b.DYNAMIC_DRAW), n = w);
257
+ m != w && (b.bufferData(b.ELEMENT_ARRAY_BUFFER, 2 * w, b.DYNAMIC_DRAW), m = w);
253
258
  V = 0;
254
259
  for (var va of r) {
255
260
  b.bufferSubData(b.ELEMENT_ARRAY_BUFFER, V, va.indices), V += 2 * va.indices.length;
@@ -279,8 +284,8 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
279
284
  this.canvas = function() {
280
285
  return a() && b.canvas;
281
286
  };
282
- }(), la = m.onRuntimeInitialized;
283
- m.onRuntimeInitialized = function() {
287
+ }(), la = n.onRuntimeInitialized;
288
+ n.onRuntimeInitialized = function() {
284
289
  function a(q) {
285
290
  switch(q) {
286
291
  case l.srcOver:
@@ -331,10 +336,10 @@ m.onRuntimeInitialized = function() {
331
336
  E.clear();
332
337
  }
333
338
  la && la();
334
- var d = m.RenderPaintStyle;
335
- const e = m.RenderPath, f = m.RenderPaint, g = m.Renderer, n = m.StrokeCap, p = m.StrokeJoin, l = m.BlendMode, u = d.fill, v = d.stroke, y = m.FillRule.evenOdd;
339
+ var d = n.RenderPaintStyle;
340
+ const e = n.RenderPath, f = n.RenderPaint, g = n.Renderer, m = n.StrokeCap, p = n.StrokeJoin, l = n.BlendMode, u = d.fill, v = d.stroke, y = n.FillRule.evenOdd;
336
341
  let k = 1;
337
- var t = m.RenderImage.extend("CanvasRenderImage", {__construct:function({la:q, ya:z} = {}) {
342
+ var t = n.RenderImage.extend("CanvasRenderImage", {__construct:function({la:q, ya:z} = {}) {
338
343
  this.__parent.__construct.call(this);
339
344
  this.Ka = k;
340
345
  k = k + 1 & 2147483647 || 1;
@@ -398,13 +403,13 @@ m.onRuntimeInitialized = function() {
398
403
  }
399
404
  }, cap:function(q) {
400
405
  switch(q) {
401
- case n.butt:
406
+ case m.butt:
402
407
  this.Ha = "butt";
403
408
  break;
404
- case n.round:
409
+ case m.round:
405
410
  this.Ha = "round";
406
411
  break;
407
- case n.square:
412
+ case m.square:
408
413
  this.Ha = "square";
409
414
  }
410
415
  }, style:function(q) {
@@ -451,7 +456,7 @@ m.onRuntimeInitialized = function() {
451
456
  },});
452
457
  const E = new Set();
453
458
  let w = null, O = [], V = 0, ea = 0;
454
- var va = m.CanvasRenderer = g.extend("Renderer", {__construct:function(q) {
459
+ var va = n.CanvasRenderer = g.extend("Renderer", {__construct:function(q) {
455
460
  this.__parent.__construct.call(this);
456
461
  this.T = [1, 0, 0, 1, 0, 0];
457
462
  this.C = q.getContext("2d");
@@ -510,7 +515,7 @@ m.onRuntimeInitialized = function() {
510
515
  S = ka.nc();
511
516
  wa > S && (R *= S / wa, wa = S);
512
517
  xa > S && (fa *= S / xa, xa = S);
513
- w || (w = new m.DynamicRectanizer(S), w.reset(512, 512));
518
+ w || (w = new n.DynamicRectanizer(S), w.reset(512, 512));
514
519
  S = w.addRect(wa, xa);
515
520
  0 > S && (c(), E.add(this), S = w.addRect(wa, xa), console.assert(0 <= S));
516
521
  var ac = S & 65535, bc = S >> 16;
@@ -537,7 +542,7 @@ m.onRuntimeInitialized = function() {
537
542
  }, translate:function(q, z) {
538
543
  this.transform(1, 0, 0, 1, q, z);
539
544
  },});
540
- m.makeRenderer = function(q) {
545
+ n.makeRenderer = function(q) {
541
546
  const z = new va(q), I = z.C;
542
547
  return new Proxy(z, {get(J, D) {
543
548
  if ("function" === typeof J[D]) {
@@ -560,10 +565,10 @@ m.onRuntimeInitialized = function() {
560
565
  }
561
566
  },});
562
567
  };
563
- m.decodeImage = function(q, z) {
568
+ n.decodeImage = function(q, z) {
564
569
  (new t({la:z})).decode(q);
565
570
  };
566
- m.renderFactory = {makeRenderPaint:function() {
571
+ n.renderFactory = {makeRenderPaint:function() {
567
572
  return new B();
568
573
  }, makeRenderPath:function() {
569
574
  return new r();
@@ -579,11 +584,11 @@ m.onRuntimeInitialized = function() {
579
584
  }
580
585
  },});
581
586
  },};
582
- let H = m.load, da = null;
583
- m.load = function(q, z, I = !0) {
584
- const J = new m.FallbackFileAssetLoader();
587
+ let H = n.load, da = null;
588
+ n.load = function(q, z, I = !0) {
589
+ const J = new n.FallbackFileAssetLoader();
585
590
  void 0 !== z && J.addLoader(z);
586
- I && (z = new m.CDNFileAssetLoader(), J.addLoader(z));
591
+ I && (z = new n.CDNFileAssetLoader(), J.addLoader(z));
587
592
  return new Promise(function(D) {
588
593
  let K = null;
589
594
  da = {total:0, loaded:0, ready:function() {
@@ -594,17 +599,17 @@ m.onRuntimeInitialized = function() {
594
599
  });
595
600
  };
596
601
  d = new ca();
597
- m.requestAnimationFrame = d.requestAnimationFrame.bind(d);
598
- m.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);
599
- m.enableFPSCounter = d.Wb.bind(d);
600
- m.disableFPSCounter = d.Tb;
602
+ n.requestAnimationFrame = d.requestAnimationFrame.bind(d);
603
+ n.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);
604
+ n.enableFPSCounter = d.Wb.bind(d);
605
+ n.disableFPSCounter = d.Tb;
601
606
  d.pb = c;
602
- m.resolveAnimationFrame = c;
603
- m.cleanup = function() {
607
+ n.resolveAnimationFrame = c;
608
+ n.cleanup = function() {
604
609
  w && w.delete();
605
610
  };
606
611
  };
607
- var ma = Object.assign({}, m), na = "./this.program", oa = "object" == typeof window, pa = "function" == typeof importScripts, qa = "", ra, sa;
612
+ var ma = Object.assign({}, n), na = "./this.program", oa = "object" == typeof window, pa = "function" == typeof importScripts, qa = "", ra, sa;
608
613
  if (oa || pa) {
609
614
  pa ? qa = self.location.href : "undefined" != typeof document && document.currentScript && (qa = document.currentScript.src), _scriptDir && (qa = _scriptDir), 0 !== qa.indexOf("blob:") ? qa = qa.substr(0, qa.replace(/[?#].*/, "").lastIndexOf("/") + 1) : qa = "", pa && (sa = a => {
610
615
  var b = new XMLHttpRequest();
@@ -623,35 +628,35 @@ if (oa || pa) {
623
628
  d.send(null);
624
629
  };
625
630
  }
626
- var ta = m.print || console.log.bind(console), ua = m.printErr || console.error.bind(console);
627
- Object.assign(m, ma);
631
+ var ta = n.print || console.log.bind(console), ua = n.printErr || console.error.bind(console);
632
+ Object.assign(n, ma);
628
633
  ma = null;
629
- m.thisProgram && (na = m.thisProgram);
634
+ n.thisProgram && (na = n.thisProgram);
630
635
  var ya;
631
- m.wasmBinary && (ya = m.wasmBinary);
632
- var noExitRuntime = m.noExitRuntime || !0;
636
+ n.wasmBinary && (ya = n.wasmBinary);
637
+ var noExitRuntime = n.noExitRuntime || !0;
633
638
  "object" != typeof WebAssembly && za("no native wasm support detected");
634
639
  var Aa, x, Ba = !1, A, C, Da, Ea, F, G, Fa, Ga;
635
640
  function Ha() {
636
641
  var a = Aa.buffer;
637
- m.HEAP8 = A = new Int8Array(a);
638
- m.HEAP16 = Da = new Int16Array(a);
639
- m.HEAP32 = F = new Int32Array(a);
640
- m.HEAPU8 = C = new Uint8Array(a);
641
- m.HEAPU16 = Ea = new Uint16Array(a);
642
- m.HEAPU32 = G = new Uint32Array(a);
643
- m.HEAPF32 = Fa = new Float32Array(a);
644
- m.HEAPF64 = Ga = new Float64Array(a);
642
+ n.HEAP8 = A = new Int8Array(a);
643
+ n.HEAP16 = Da = new Int16Array(a);
644
+ n.HEAP32 = F = new Int32Array(a);
645
+ n.HEAPU8 = C = new Uint8Array(a);
646
+ n.HEAPU16 = Ea = new Uint16Array(a);
647
+ n.HEAPU32 = G = new Uint32Array(a);
648
+ n.HEAPF32 = Fa = new Float32Array(a);
649
+ n.HEAPF64 = Ga = new Float64Array(a);
645
650
  }
646
651
  var Ka, La = [], Ma = [], Na = [];
647
652
  function Oa() {
648
- var a = m.preRun.shift();
653
+ var a = n.preRun.shift();
649
654
  La.unshift(a);
650
655
  }
651
656
  var Pa = 0, Qa = null, Ra = null;
652
657
  function za(a) {
653
- if (m.onAbort) {
654
- m.onAbort(a);
658
+ if (n.onAbort) {
659
+ n.onAbort(a);
655
660
  }
656
661
  a = "Aborted(" + a + ")";
657
662
  ua(a);
@@ -667,7 +672,7 @@ var Ta;
667
672
  Ta = "canvas_advanced.wasm";
668
673
  if (!Sa(Ta)) {
669
674
  var Ua = Ta;
670
- Ta = m.locateFile ? m.locateFile(Ua, qa) : qa + Ua;
675
+ Ta = n.locateFile ? n.locateFile(Ua, qa) : qa + Ua;
671
676
  }
672
677
  function Va(a) {
673
678
  if (a == Ta && ya) {
@@ -710,7 +715,7 @@ function Ya(a, b) {
710
715
  return Xa(c, a, b);
711
716
  }));
712
717
  }
713
- var N, P, bb = {433276:(a, b, c, d, e) => {
718
+ var N, P, bb = {433788:(a, b, c, d, e) => {
714
719
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
715
720
  return 0;
716
721
  }
@@ -726,9 +731,9 @@ var N, P, bb = {433276:(a, b, c, d, e) => {
726
731
  let f = window.h;
727
732
  f.D = [];
728
733
  f.Gc = function(g) {
729
- for (var n = 0; n < f.D.length; ++n) {
730
- if (null == f.D[n]) {
731
- return f.D[n] = g, n;
734
+ for (var m = 0; m < f.D.length; ++m) {
735
+ if (null == f.D[m]) {
736
+ return f.D[m] = g, m;
732
737
  }
733
738
  }
734
739
  f.D.push(g);
@@ -744,9 +749,9 @@ var N, P, bb = {433276:(a, b, c, d, e) => {
744
749
  }
745
750
  };
746
751
  f.Sc = function(g) {
747
- for (var n = 0; n < f.D.length; ++n) {
748
- if (f.D[n] == g) {
749
- return f.Db(n);
752
+ for (var m = 0; m < f.D.length; ++m) {
753
+ if (f.D[m] == g) {
754
+ return f.Db(m);
750
755
  }
751
756
  }
752
757
  };
@@ -756,9 +761,9 @@ var N, P, bb = {433276:(a, b, c, d, e) => {
756
761
  f.Cb = ["touchend", "click"];
757
762
  f.unlock = function() {
758
763
  for (var g = 0; g < f.D.length; ++g) {
759
- var n = f.D[g];
760
- null != n && null != n.I && n.state === f.ga.yb && n.I.resume().then(() => {
761
- Za(n.qb);
764
+ var m = f.D[g];
765
+ null != m && null != m.I && m.state === f.ga.yb && m.I.resume().then(() => {
766
+ Za(m.qb);
762
767
  }, p => {
763
768
  console.error("Failed to resume audiocontext", p);
764
769
  });
@@ -773,9 +778,9 @@ var N, P, bb = {433276:(a, b, c, d, e) => {
773
778
  }
774
779
  window.h.Aa += 1;
775
780
  return 1;
776
- }, 435454:() => {
781
+ }, 435966:() => {
777
782
  "undefined" !== typeof window.h && (--window.h.Aa, 0 === window.h.Aa && delete window.h);
778
- }, 435618:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 435722:() => {
783
+ }, 436130:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 436234:() => {
779
784
  try {
780
785
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
781
786
  a.close();
@@ -783,13 +788,13 @@ var N, P, bb = {433276:(a, b, c, d, e) => {
783
788
  } catch (c) {
784
789
  return 0;
785
790
  }
786
- }, 435893:(a, b, c, d, e, f) => {
791
+ }, 436405:(a, b, c, d, e, f) => {
787
792
  if ("undefined" === typeof window.h) {
788
793
  return -1;
789
794
  }
790
- var g = {}, n = {};
791
- a == window.h.H.za && 0 != c && (n.sampleRate = c);
792
- g.I = new (window.AudioContext || window.webkitAudioContext)(n);
795
+ var g = {}, m = {};
796
+ a == window.h.H.za && 0 != c && (m.sampleRate = c);
797
+ g.I = new (window.AudioContext || window.webkitAudioContext)(m);
793
798
  g.I.suspend();
794
799
  g.state = window.h.ga.stopped;
795
800
  c = 0;
@@ -829,7 +834,7 @@ var N, P, bb = {433276:(a, b, c, d, e) => {
829
834
  a == window.h.H.za && g.$.connect(g.I.destination);
830
835
  g.qb = f;
831
836
  return window.h.Gc(g);
832
- }, 438770:a => window.h.sa(a).I.sampleRate, 438843:a => {
837
+ }, 439282:a => window.h.sa(a).I.sampleRate, 439355:a => {
833
838
  a = window.h.sa(a);
834
839
  void 0 !== a.$ && (a.$.onaudioprocess = function() {
835
840
  }, a.$.disconnect(), a.$ = void 0);
@@ -837,19 +842,19 @@ var N, P, bb = {433276:(a, b, c, d, e) => {
837
842
  a.I.close();
838
843
  a.I = void 0;
839
844
  a.qb = void 0;
840
- }, 439243:a => {
845
+ }, 439755:a => {
841
846
  window.h.Db(a);
842
- }, 439293:a => {
847
+ }, 439805:a => {
843
848
  a = window.h.sa(a);
844
849
  a.I.resume();
845
850
  a.state = window.h.ga.yb;
846
- }, 439432:a => {
851
+ }, 439944:a => {
847
852
  a = window.h.sa(a);
848
853
  a.I.suspend();
849
854
  a.state = window.h.ga.stopped;
850
855
  }}, cb = a => {
851
856
  for (; 0 < a.length;) {
852
- a.shift()(m);
857
+ a.shift()(n);
853
858
  }
854
859
  }, db = (a, b) => {
855
860
  for (var c = 0, d = a.length - 1; 0 <= d; d--) {
@@ -944,8 +949,8 @@ var kb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, l
944
949
  for (var f = 0; f < a.length; ++f) {
945
950
  var g = a.charCodeAt(f);
946
951
  if (55296 <= g && 57343 >= g) {
947
- var n = a.charCodeAt(++f);
948
- g = 65536 + ((g & 1023) << 10) | n & 1023;
952
+ var m = a.charCodeAt(++f);
953
+ g = 65536 + ((g & 1023) << 10) | m & 1023;
949
954
  }
950
955
  if (127 >= g) {
951
956
  if (c >= d) {
@@ -1008,7 +1013,7 @@ var tb = {open:function(a) {
1008
1013
  for (var e = 0, f = 0; f < d; f++) {
1009
1014
  try {
1010
1015
  var g = a.s.W.ib(a.s);
1011
- } catch (n) {
1016
+ } catch (m) {
1012
1017
  throw new Q(29);
1013
1018
  }
1014
1019
  if (void 0 === g && 0 === e) {
@@ -1483,7 +1488,7 @@ var Cb = null, Db = {}, Eb = [], Fb = 1, Gb = null, Hb = !0, Q = null, zb = {},
1483
1488
  b &= -131713;
1484
1489
  e = Tb({node:e, path:Kb(e), flags:b, seekable:!0, position:0, m:e.m, Hc:[], error:!1});
1485
1490
  e.m.open && e.m.open(e);
1486
- !m.logReadFiles || b & 1 || (Yb || (Yb = {}), a in Yb || (Yb[a] = 1));
1491
+ !n.logReadFiles || b & 1 || (Yb || (Yb = {}), a in Yb || (Yb[a] = 1));
1487
1492
  return e;
1488
1493
  }, ec = (a, b, c) => {
1489
1494
  if (null === a.Z) {
@@ -1519,7 +1524,7 @@ var Cb = null, Db = {}, Eb = [], Fb = 1, Gb = null, Hb = !0, Q = null, zb = {},
1519
1524
  f.seekable = !1;
1520
1525
  }, close:() => {
1521
1526
  c && c.buffer && c.buffer.length && c(10);
1522
- }, read:(f, g, n, p) => {
1527
+ }, read:(f, g, m, p) => {
1523
1528
  for (var l = 0, u = 0; u < p; u++) {
1524
1529
  try {
1525
1530
  var v = b();
@@ -1533,14 +1538,14 @@ var Cb = null, Db = {}, Eb = [], Fb = 1, Gb = null, Hb = !0, Q = null, zb = {},
1533
1538
  break;
1534
1539
  }
1535
1540
  l++;
1536
- g[n + u] = v;
1541
+ g[m + u] = v;
1537
1542
  }
1538
1543
  l && (f.node.timestamp = Date.now());
1539
1544
  return l;
1540
- }, write:(f, g, n, p) => {
1545
+ }, write:(f, g, m, p) => {
1541
1546
  for (var l = 0; l < p; l++) {
1542
1547
  try {
1543
- c(g[n + l]);
1548
+ c(g[m + l]);
1544
1549
  } catch (u) {
1545
1550
  throw new Q(29);
1546
1551
  }
@@ -1702,20 +1707,20 @@ function Sc(a) {
1702
1707
  }
1703
1708
  var Tc = {}, Uc = {};
1704
1709
  function X(a, b, c) {
1705
- function d(n) {
1706
- n = c(n);
1707
- n.length !== a.length && Nc("Mismatched type converter count");
1710
+ function d(m) {
1711
+ m = c(m);
1712
+ m.length !== a.length && Nc("Mismatched type converter count");
1708
1713
  for (var p = 0; p < a.length; ++p) {
1709
- Vc(a[p], n[p]);
1714
+ Vc(a[p], m[p]);
1710
1715
  }
1711
1716
  }
1712
- a.forEach(function(n) {
1713
- Uc[n] = b;
1717
+ a.forEach(function(m) {
1718
+ Uc[m] = b;
1714
1719
  });
1715
1720
  var e = Array(b.length), f = [], g = 0;
1716
- b.forEach((n, p) => {
1717
- Bc.hasOwnProperty(n) ? e[p] = Bc[n] : (f.push(n), Tc.hasOwnProperty(n) || (Tc[n] = []), Tc[n].push(() => {
1718
- e[p] = Bc[n];
1721
+ b.forEach((m, p) => {
1722
+ Bc.hasOwnProperty(m) ? e[p] = Bc[m] : (f.push(m), Tc.hasOwnProperty(m) || (Tc[m] = []), Tc[m].push(() => {
1723
+ e[p] = Bc[m];
1719
1724
  ++g;
1720
1725
  g === f.length && d(e);
1721
1726
  }));
@@ -1772,9 +1777,9 @@ function $c(a, b, c) {
1772
1777
  }
1773
1778
  }
1774
1779
  function ad(a, b, c) {
1775
- m.hasOwnProperty(a) ? ((void 0 === c || void 0 !== m[a].B && void 0 !== m[a].B[c]) && U(`Cannot register public name '${a}' twice`), $c(m, a, a), m.hasOwnProperty(c) && U(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), m[a].B[c] = b) : (m[a] = b, void 0 !== c && (m[a].Pc = c));
1780
+ n.hasOwnProperty(a) ? ((void 0 === c || void 0 !== n[a].B && void 0 !== n[a].B[c]) && U(`Cannot register public name '${a}' twice`), $c(n, a, a), n.hasOwnProperty(c) && U(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), n[a].B[c] = b) : (n[a] = b, void 0 !== c && (n[a].Pc = c));
1776
1781
  }
1777
- function bd(a, b, c, d, e, f, g, n) {
1782
+ function bd(a, b, c, d, e, f, g, m) {
1778
1783
  this.name = a;
1779
1784
  this.constructor = b;
1780
1785
  this.O = c;
@@ -1782,7 +1787,7 @@ function bd(a, b, c, d, e, f, g, n) {
1782
1787
  this.A = e;
1783
1788
  this.Zb = f;
1784
1789
  this.oa = g;
1785
- this.Ub = n;
1790
+ this.Ub = m;
1786
1791
  this.rb = [];
1787
1792
  }
1788
1793
  function cd(a, b, c) {
@@ -1857,8 +1862,8 @@ function hd(a, b, c, d) {
1857
1862
  void 0 !== b.A ? this.toWireType = fd : (this.toWireType = d ? dd : gd, this.K = null);
1858
1863
  }
1859
1864
  function jd(a, b, c) {
1860
- m.hasOwnProperty(a) || Nc("Replacing nonexistant public symbol");
1861
- void 0 !== m[a].B && void 0 !== c ? m[a].B[c] = b : (m[a] = b, m[a].ea = c);
1865
+ n.hasOwnProperty(a) || Nc("Replacing nonexistant public symbol");
1866
+ void 0 !== n[a].B && void 0 !== c ? n[a].B[c] = b : (n[a] = b, n[a].ea = c);
1862
1867
  }
1863
1868
  var kd = [], ld = a => {
1864
1869
  var b = kd[a];
@@ -1870,7 +1875,7 @@ var kd = [], ld = a => {
1870
1875
  c.length = 0;
1871
1876
  Object.assign(c, arguments);
1872
1877
  if (a.includes("j")) {
1873
- var d = m["dynCall_" + a];
1878
+ var d = n["dynCall_" + a];
1874
1879
  d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
1875
1880
  } else {
1876
1881
  d = ld(b).apply(null, c);
@@ -1896,10 +1901,10 @@ function od(a, b) {
1896
1901
  function pd(a, b, c, d, e) {
1897
1902
  var f = b.length;
1898
1903
  2 > f && U("argTypes array size mismatch! Must at least get return value and 'this' types!");
1899
- var g = null !== b[1] && null !== c, n = !1;
1904
+ var g = null !== b[1] && null !== c, m = !1;
1900
1905
  for (c = 1; c < b.length; ++c) {
1901
1906
  if (null !== b[c] && void 0 === b[c].K) {
1902
- n = !0;
1907
+ m = !0;
1903
1908
  break;
1904
1909
  }
1905
1910
  }
@@ -1917,7 +1922,7 @@ function pd(a, b, c, d, e) {
1917
1922
  u[t] = b[t + 2].toWireType(y, arguments[t]), v.push(u[t]);
1918
1923
  }
1919
1924
  t = d.apply(null, v);
1920
- if (n) {
1925
+ if (m) {
1921
1926
  Rc(y);
1922
1927
  } else {
1923
1928
  for (var r = g ? 1 : 2; r < b.length; r++) {
@@ -2124,7 +2129,7 @@ var Jd = [], Kd = [], Ld = {}, Nd = () => {
2124
2129
  0 === (B = r(k.getFullYear() - t.getFullYear())) && 0 === (B = r(k.getMonth() - t.getMonth())) && (B = r(k.getDate() - t.getDate()));
2125
2130
  return B;
2126
2131
  }
2127
- function n(k) {
2132
+ function m(k) {
2128
2133
  switch(k.getDay()) {
2129
2134
  case 0:
2130
2135
  return new Date(k.getFullYear() - 1, 11, 29);
@@ -2154,8 +2159,8 @@ var Jd = [], Kd = [], Ld = {}, Nd = () => {
2154
2159
  }
2155
2160
  }
2156
2161
  r = new Date(k.getFullYear() + 1, 0, 4);
2157
- t = n(new Date(k.getFullYear(), 0, 4));
2158
- r = n(r);
2162
+ t = m(new Date(k.getFullYear(), 0, 4));
2163
+ r = m(r);
2159
2164
  return 0 >= g(t, k) ? 0 >= g(r, k) ? k.getFullYear() + 1 : k.getFullYear() : k.getFullYear() - 1;
2160
2165
  }
2161
2166
  var l = F[d + 40 >> 2];
@@ -2273,7 +2278,7 @@ Object.assign(oc.prototype, {get(a) {
2273
2278
  this.M[a] = void 0;
2274
2279
  this.hb.push(a);
2275
2280
  }});
2276
- qc = m.BindingError = class extends Error {
2281
+ qc = n.BindingError = class extends Error {
2277
2282
  constructor(a) {
2278
2283
  super(a);
2279
2284
  this.name = "BindingError";
@@ -2281,33 +2286,33 @@ qc = m.BindingError = class extends Error {
2281
2286
  };
2282
2287
  pc.M.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
2283
2288
  pc.h = pc.M.length;
2284
- m.count_emval_handles = function() {
2289
+ n.count_emval_handles = function() {
2285
2290
  for (var a = 0, b = pc.h; b < pc.M.length; ++b) {
2286
2291
  void 0 !== pc.M[b] && ++a;
2287
2292
  }
2288
2293
  return a;
2289
2294
  };
2290
- uc = m.PureVirtualError = tc("PureVirtualError");
2295
+ uc = n.PureVirtualError = tc("PureVirtualError");
2291
2296
  for (var Sd = Array(256), Td = 0; 256 > Td; ++Td) {
2292
2297
  Sd[Td] = String.fromCharCode(Td);
2293
2298
  }
2294
2299
  vc = Sd;
2295
- m.getInheritedInstanceCount = function() {
2300
+ n.getInheritedInstanceCount = function() {
2296
2301
  return Object.keys(zc).length;
2297
2302
  };
2298
- m.getLiveInheritedInstances = function() {
2303
+ n.getLiveInheritedInstances = function() {
2299
2304
  var a = [], b;
2300
2305
  for (b in zc) {
2301
2306
  zc.hasOwnProperty(b) && a.push(zc[b]);
2302
2307
  }
2303
2308
  return a;
2304
2309
  };
2305
- m.flushPendingDeletes = xc;
2306
- m.setDelayFunction = function(a) {
2310
+ n.flushPendingDeletes = xc;
2311
+ n.setDelayFunction = function(a) {
2307
2312
  yc = a;
2308
2313
  wc.length && yc && yc(xc);
2309
2314
  };
2310
- Mc = m.InternalError = class extends Error {
2315
+ Mc = n.InternalError = class extends Error {
2311
2316
  constructor(a) {
2312
2317
  super(a);
2313
2318
  this.name = "InternalError";
@@ -2395,7 +2400,7 @@ hd.prototype.fromWireType = function(a) {
2395
2400
  var e = Jc(c, this.i, d.i);
2396
2401
  return null === e ? b.call(this) : this.va ? Oc(d.i.O, {u:d, o:e, L:this, G:a,}) : Oc(d.i.O, {u:d, o:e,});
2397
2402
  };
2398
- nd = m.UnboundTypeError = tc("UnboundTypeError");
2403
+ nd = n.UnboundTypeError = tc("UnboundTypeError");
2399
2404
  var Wd = {__syscall_fcntl64:function(a, b, c) {
2400
2405
  kc = c;
2401
2406
  try {
@@ -2461,15 +2466,15 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2461
2466
  F[b + 28 >> 2] = P[1];
2462
2467
  F[b + 32 >> 2] = 4096;
2463
2468
  F[b + 36 >> 2] = e.Mb;
2464
- var g = e.Kb.getTime(), n = e.rc.getTime(), p = e.Pb.getTime();
2469
+ var g = e.Kb.getTime(), m = e.rc.getTime(), p = e.Pb.getTime();
2465
2470
  P = [Math.floor(g / 1000) >>> 0, (N = Math.floor(g / 1000), 1.0 <= +Math.abs(N) ? 0.0 < N ? +Math.floor(N / 4294967296.0) >>> 0 : ~~+Math.ceil((N - +(~~N >>> 0)) / 4294967296.0) >>> 0 : 0)];
2466
2471
  F[b + 40 >> 2] = P[0];
2467
2472
  F[b + 44 >> 2] = P[1];
2468
2473
  G[b + 48 >> 2] = g % 1000 * 1000;
2469
- P = [Math.floor(n / 1000) >>> 0, (N = Math.floor(n / 1000), 1.0 <= +Math.abs(N) ? 0.0 < N ? +Math.floor(N / 4294967296.0) >>> 0 : ~~+Math.ceil((N - +(~~N >>> 0)) / 4294967296.0) >>> 0 : 0)];
2474
+ P = [Math.floor(m / 1000) >>> 0, (N = Math.floor(m / 1000), 1.0 <= +Math.abs(N) ? 0.0 < N ? +Math.floor(N / 4294967296.0) >>> 0 : ~~+Math.ceil((N - +(~~N >>> 0)) / 4294967296.0) >>> 0 : 0)];
2470
2475
  F[b + 56 >> 2] = P[0];
2471
2476
  F[b + 60 >> 2] = P[1];
2472
- G[b + 64 >> 2] = n % 1000 * 1000;
2477
+ G[b + 64 >> 2] = m % 1000 * 1000;
2473
2478
  P = [Math.floor(p / 1000) >>> 0, (N = Math.floor(p / 1000), 1.0 <= +Math.abs(N) ? 0.0 < N ? +Math.floor(N / 4294967296.0) >>> 0 : ~~+Math.ceil((N - +(~~N >>> 0)) / 4294967296.0) >>> 0 : 0)];
2474
2479
  F[b + 72 >> 2] = P[0];
2475
2480
  F[b + 76 >> 2] = P[1];
@@ -2574,17 +2579,17 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2574
2579
  }
2575
2580
  var g = d ? lc() : 0;
2576
2581
  return dc(b, c, g).Z;
2577
- } catch (n) {
2578
- if ("undefined" == typeof jc || "ErrnoError" !== n.name) {
2579
- throw n;
2582
+ } catch (m) {
2583
+ if ("undefined" == typeof jc || "ErrnoError" !== m.name) {
2584
+ throw m;
2580
2585
  }
2581
- return -n.Y;
2586
+ return -m.Y;
2582
2587
  }
2583
2588
  }, _embind_create_inheriting_constructor:function(a, b, c) {
2584
2589
  a = W(a);
2585
2590
  b = Fc(b, "wrapper");
2586
2591
  c = rc(c);
2587
- var d = [].slice, e = b.i, f = e.O, g = e.A.O, n = e.A.constructor;
2592
+ var d = [].slice, e = b.i, f = e.O, g = e.A.O, m = e.A.constructor;
2588
2593
  a = nc(a, function() {
2589
2594
  e.A.rb.forEach(function(l) {
2590
2595
  if (this[l] === g[l]) {
@@ -2596,7 +2601,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2596
2601
  });
2597
2602
  f.__construct = function() {
2598
2603
  this === f && U("Pass correct 'this' to __construct");
2599
- var l = n.implement.apply(void 0, [this].concat(d.call(arguments)));
2604
+ var l = m.implement.apply(void 0, [this].concat(d.call(arguments)));
2600
2605
  Gc(l);
2601
2606
  var u = l.g;
2602
2607
  l.notifyOnDestruction();
@@ -2624,10 +2629,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2624
2629
  delete Qc[a];
2625
2630
  var c = b.Qa, d = b.X, e = b.fb, f = e.map(g => g.cc).concat(e.map(g => g.zc));
2626
2631
  X([a], f, g => {
2627
- var n = {};
2632
+ var m = {};
2628
2633
  e.forEach((p, l) => {
2629
2634
  var u = g[l], v = p.ac, y = p.bc, k = g[l + e.length], t = p.yc, r = p.Ac;
2630
- n[p.Xb] = {read:B => u.fromWireType(v(y, B)), write:(B, E) => {
2635
+ m[p.Xb] = {read:B => u.fromWireType(v(y, B)), write:(B, E) => {
2631
2636
  var w = [];
2632
2637
  t(r, B, k.toWireType(w, E));
2633
2638
  Rc(w);
@@ -2635,20 +2640,20 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2635
2640
  });
2636
2641
  return [{name:b.name, fromWireType:function(p) {
2637
2642
  var l = {}, u;
2638
- for (u in n) {
2639
- l[u] = n[u].read(p);
2643
+ for (u in m) {
2644
+ l[u] = m[u].read(p);
2640
2645
  }
2641
2646
  d(p);
2642
2647
  return l;
2643
2648
  }, toWireType:function(p, l) {
2644
- for (var u in n) {
2649
+ for (var u in m) {
2645
2650
  if (!(u in l)) {
2646
2651
  throw new TypeError(`Missing field: "${u}"`);
2647
2652
  }
2648
2653
  }
2649
2654
  var v = c();
2650
- for (u in n) {
2651
- n[u].write(v, l[u]);
2655
+ for (u in m) {
2656
+ m[u].write(v, l[u]);
2652
2657
  }
2653
2658
  null !== p && p.push(d, v);
2654
2659
  return v;
@@ -2660,24 +2665,24 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2660
2665
  b = W(b);
2661
2666
  Vc(a, {name:b, fromWireType:function(g) {
2662
2667
  return !!g;
2663
- }, toWireType:function(g, n) {
2664
- return n ? d : e;
2668
+ }, toWireType:function(g, m) {
2669
+ return m ? d : e;
2665
2670
  }, argPackAdvance:8, readValueFromPointer:function(g) {
2666
2671
  if (1 === c) {
2667
- var n = A;
2672
+ var m = A;
2668
2673
  } else if (2 === c) {
2669
- n = Da;
2674
+ m = Da;
2670
2675
  } else if (4 === c) {
2671
- n = F;
2676
+ m = F;
2672
2677
  } else {
2673
2678
  throw new TypeError("Unknown boolean type size: " + b);
2674
2679
  }
2675
- return this.fromWireType(n[g >> f]);
2680
+ return this.fromWireType(m[g >> f]);
2676
2681
  }, K:null,});
2677
- }, _embind_register_class:function(a, b, c, d, e, f, g, n, p, l, u, v, y) {
2682
+ }, _embind_register_class:function(a, b, c, d, e, f, g, m, p, l, u, v, y) {
2678
2683
  u = W(u);
2679
2684
  f = Y(e, f);
2680
- n && (n = Y(g, n));
2685
+ m && (m = Y(g, m));
2681
2686
  l && (l = Y(p, l));
2682
2687
  y = Y(v, y);
2683
2688
  var k = mc(u);
@@ -2707,7 +2712,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2707
2712
  });
2708
2713
  var E = Object.create(B, {constructor:{value:t},});
2709
2714
  t.prototype = E;
2710
- var w = new bd(u, t, E, y, r, f, n, l);
2715
+ var w = new bd(u, t, E, y, r, f, m, l);
2711
2716
  w.A && (void 0 === w.A.pa && (w.A.pa = []), w.A.pa.push(w));
2712
2717
  r = new hd(u, w, !0, !1);
2713
2718
  B = new hd(u + "*", w, !1, !1);
@@ -2717,19 +2722,19 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2717
2722
  return [r, B, O];
2718
2723
  });
2719
2724
  }, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
2720
- var n = rd(c, d);
2725
+ var m = rd(c, d);
2721
2726
  b = W(b);
2722
2727
  f = Y(e, f);
2723
2728
  X([], [a], function(p) {
2724
2729
  function l() {
2725
- od(`Cannot call ${u} due to unbound types`, n);
2730
+ od(`Cannot call ${u} due to unbound types`, m);
2726
2731
  }
2727
2732
  p = p[0];
2728
2733
  var u = `${p.name}.${b}`;
2729
2734
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2730
2735
  var v = p.i.constructor;
2731
2736
  void 0 === v[b] ? (l.ea = c - 1, v[b] = l) : ($c(v, b, u), v[b].B[c - 1] = l);
2732
- X([], n, function(y) {
2737
+ X([], m, function(y) {
2733
2738
  y = pd(u, [y[0], null].concat(y.slice(1)), null, f, g);
2734
2739
  void 0 === v[b].B ? (y.ea = c - 1, v[b] = y) : v[b].B[c - 1] = y;
2735
2740
  if (p.i.pa) {
@@ -2741,7 +2746,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2741
2746
  });
2742
2747
  return [];
2743
2748
  });
2744
- }, _embind_register_class_class_property:function(a, b, c, d, e, f, g, n) {
2749
+ }, _embind_register_class_class_property:function(a, b, c, d, e, f, g, m) {
2745
2750
  b = W(b);
2746
2751
  f = Y(e, f);
2747
2752
  X([], [a], function(p) {
@@ -2749,7 +2754,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2749
2754
  var l = `${p.name}.${b}`, u = {get() {
2750
2755
  od(`Cannot access ${l} due to unbound types`, [c]);
2751
2756
  }, enumerable:!0, configurable:!0};
2752
- u.set = n ? () => {
2757
+ u.set = m ? () => {
2753
2758
  od(`Cannot access ${l} due to unbound types`, [c]);
2754
2759
  } : () => {
2755
2760
  U(`${l} is a read-only property`);
@@ -2760,9 +2765,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2760
2765
  var y = {get() {
2761
2766
  return v.fromWireType(f(d));
2762
2767
  }, enumerable:!0};
2763
- n && (n = Y(g, n), y.set = k => {
2768
+ m && (m = Y(g, m), y.set = k => {
2764
2769
  var t = [];
2765
- n(d, v.toWireType(t, k));
2770
+ m(d, v.toWireType(t, k));
2766
2771
  Rc(t);
2767
2772
  });
2768
2773
  Object.defineProperty(p.i.constructor, b, y);
@@ -2773,24 +2778,24 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2773
2778
  }, _embind_register_class_constructor:function(a, b, c, d, e, f) {
2774
2779
  var g = rd(b, c);
2775
2780
  e = Y(d, e);
2776
- X([], [a], function(n) {
2777
- n = n[0];
2778
- var p = `constructor ${n.name}`;
2779
- void 0 === n.i.aa && (n.i.aa = []);
2780
- if (void 0 !== n.i.aa[b - 1]) {
2781
- throw new qc(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${n.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
2782
- }
2783
- n.i.aa[b - 1] = () => {
2784
- od(`Cannot construct ${n.name} due to unbound types`, g);
2781
+ X([], [a], function(m) {
2782
+ m = m[0];
2783
+ var p = `constructor ${m.name}`;
2784
+ void 0 === m.i.aa && (m.i.aa = []);
2785
+ if (void 0 !== m.i.aa[b - 1]) {
2786
+ throw new qc(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${m.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
2787
+ }
2788
+ m.i.aa[b - 1] = () => {
2789
+ od(`Cannot construct ${m.name} due to unbound types`, g);
2785
2790
  };
2786
2791
  X([], g, function(l) {
2787
2792
  l.splice(1, 0, null);
2788
- n.i.aa[b - 1] = pd(p, l, null, e, f);
2793
+ m.i.aa[b - 1] = pd(p, l, null, e, f);
2789
2794
  return [];
2790
2795
  });
2791
2796
  return [];
2792
2797
  });
2793
- }, _embind_register_class_function:function(a, b, c, d, e, f, g, n) {
2798
+ }, _embind_register_class_function:function(a, b, c, d, e, f, g, m) {
2794
2799
  var p = rd(c, d);
2795
2800
  b = W(b);
2796
2801
  f = Y(e, f);
@@ -2801,7 +2806,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2801
2806
  l = l[0];
2802
2807
  var v = `${l.name}.${b}`;
2803
2808
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2804
- n && l.i.rb.push(b);
2809
+ m && l.i.rb.push(b);
2805
2810
  var y = l.i.O, k = y[b];
2806
2811
  void 0 === k || void 0 === k.B && k.className !== l.name && k.ea === c - 2 ? (u.ea = c - 2, u.className = l.name, y[b] = u) : ($c(y, b, v), y[b].B[c - 2] = u);
2807
2812
  X([], p, function(t) {
@@ -2811,7 +2816,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2811
2816
  });
2812
2817
  return [];
2813
2818
  });
2814
- }, _embind_register_class_property:function(a, b, c, d, e, f, g, n, p, l) {
2819
+ }, _embind_register_class_property:function(a, b, c, d, e, f, g, m, p, l) {
2815
2820
  b = W(b);
2816
2821
  e = Y(d, e);
2817
2822
  X([], [a], function(u) {
@@ -2831,7 +2836,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2831
2836
  return t.fromWireType(e(f, E));
2832
2837
  }, enumerable:!0};
2833
2838
  if (p) {
2834
- p = Y(n, p);
2839
+ p = Y(m, p);
2835
2840
  var B = k[1];
2836
2841
  r.set = function(E) {
2837
2842
  var w = sd(this, u, v + " setter"), O = [];
@@ -2888,22 +2893,22 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2888
2893
  ad(a, function() {
2889
2894
  od(`Cannot call ${a} due to unbound types`, g);
2890
2895
  }, b - 1);
2891
- X([], g, function(n) {
2892
- jd(a, pd(a, [n[0], null].concat(n.slice(1)), null, e, f), b - 1);
2896
+ X([], g, function(m) {
2897
+ jd(a, pd(a, [m[0], null].concat(m.slice(1)), null, e, f), b - 1);
2893
2898
  return [];
2894
2899
  });
2895
2900
  }, _embind_register_integer:function(a, b, c, d, e) {
2896
2901
  b = W(b);
2897
2902
  -1 === e && (e = 4294967295);
2898
2903
  e = Wc(c);
2899
- var f = n => n;
2904
+ var f = m => m;
2900
2905
  if (0 === d) {
2901
2906
  var g = 32 - 8 * c;
2902
- f = n => n << g >>> g;
2907
+ f = m => m << g >>> g;
2903
2908
  }
2904
- c = b.includes("unsigned") ? function(n, p) {
2909
+ c = b.includes("unsigned") ? function(m, p) {
2905
2910
  return p >>> 0;
2906
- } : function(n, p) {
2911
+ } : function(m, p) {
2907
2912
  return p;
2908
2913
  };
2909
2914
  Vc(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:wd(b, e, 0 !== d), K:null,});
@@ -2922,9 +2927,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2922
2927
  Vc(a, {name:b, fromWireType:function(d) {
2923
2928
  var e = G[d >> 2], f = d + 4;
2924
2929
  if (c) {
2925
- for (var g = f, n = 0; n <= e; ++n) {
2926
- var p = f + n;
2927
- if (n == e || 0 == C[p]) {
2930
+ for (var g = f, m = 0; m <= e; ++m) {
2931
+ var p = f + m;
2932
+ if (m == e || 0 == C[p]) {
2928
2933
  g = g ? lb(C, g, p - g) : "";
2929
2934
  if (void 0 === l) {
2930
2935
  var l = g;
@@ -2936,8 +2941,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2936
2941
  }
2937
2942
  } else {
2938
2943
  l = Array(e);
2939
- for (n = 0; n < e; ++n) {
2940
- l[n] = String.fromCharCode(C[f + n]);
2944
+ for (m = 0; m < e; ++m) {
2945
+ l[m] = String.fromCharCode(C[f + m]);
2941
2946
  }
2942
2947
  l = l.join("");
2943
2948
  }
@@ -2948,8 +2953,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2948
2953
  var f = "string" == typeof e;
2949
2954
  f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || U("Cannot pass non-string to std::string");
2950
2955
  var g = c && f ? nb(e) : e.length;
2951
- var n = Vd(4 + g + 1), p = n + 4;
2952
- G[n >> 2] = g;
2956
+ var m = Vd(4 + g + 1), p = m + 4;
2957
+ G[m >> 2] = g;
2953
2958
  if (c && f) {
2954
2959
  ob(e, C, p, g + 1);
2955
2960
  } else {
@@ -2965,8 +2970,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2965
2970
  }
2966
2971
  }
2967
2972
  }
2968
- null !== d && d.push(Ec, n);
2969
- return n;
2973
+ null !== d && d.push(Ec, m);
2974
+ return m;
2970
2975
  }, argPackAdvance:8, readValueFromPointer:Sc, K:function(d) {
2971
2976
  Ec(d);
2972
2977
  },});
@@ -2977,14 +2982,14 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2977
2982
  var e = zd;
2978
2983
  var f = Ad;
2979
2984
  var g = () => Ea;
2980
- var n = 1;
2985
+ var m = 1;
2981
2986
  } else {
2982
- 4 === b && (d = Bd, e = Cd, f = Dd, g = () => G, n = 2);
2987
+ 4 === b && (d = Bd, e = Cd, f = Dd, g = () => G, m = 2);
2983
2988
  }
2984
2989
  Vc(a, {name:c, fromWireType:function(p) {
2985
2990
  for (var l = G[p >> 2], u = g(), v, y = p + 4, k = 0; k <= l; ++k) {
2986
2991
  var t = p + 4 + k * b;
2987
- if (k == l || 0 == u[t >> n]) {
2992
+ if (k == l || 0 == u[t >> m]) {
2988
2993
  y = d(y, t - y), void 0 === v ? v = y : (v += String.fromCharCode(0), v += y), y = t + b;
2989
2994
  }
2990
2995
  }
@@ -2993,7 +2998,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2993
2998
  }, toWireType:function(p, l) {
2994
2999
  "string" != typeof l && U(`Cannot pass non-string to C++ string type ${c}`);
2995
3000
  var u = f(l), v = Vd(4 + u + b);
2996
- G[v >> 2] = u >> n;
3001
+ G[v >> 2] = u >> m;
2997
3002
  e(l, v + 4, u + b);
2998
3003
  null !== p && p.push(Ec, v);
2999
3004
  return v;
@@ -3002,8 +3007,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3002
3007
  },});
3003
3008
  }, _embind_register_value_object:function(a, b, c, d, e, f) {
3004
3009
  Qc[a] = {name:W(b), Qa:Y(c, d), X:Y(e, f), fb:[],};
3005
- }, _embind_register_value_object_field:function(a, b, c, d, e, f, g, n, p, l) {
3006
- Qc[a].fb.push({Xb:W(b), cc:c, ac:Y(d, e), bc:f, zc:g, yc:Y(n, p), Ac:l,});
3010
+ }, _embind_register_value_object_field:function(a, b, c, d, e, f, g, m, p, l) {
3011
+ Qc[a].fb.push({Xb:W(b), cc:c, ac:Y(d, e), bc:f, zc:g, yc:Y(m, p), Ac:l,});
3007
3012
  }, _embind_register_void:function(a, b) {
3008
3013
  b = W(b);
3009
3014
  Vc(a, {mc:!0, name:b, argPackAdvance:0, fromWireType:function() {
@@ -3037,11 +3042,11 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3037
3042
  return e;
3038
3043
  }
3039
3044
  var f = Array(a - 1);
3040
- e = Hd((g, n, p, l) => {
3045
+ e = Hd((g, m, p, l) => {
3041
3046
  for (var u = 0, v = 0; v < a - 1; ++v) {
3042
3047
  f[v] = c[v + 1].readValueFromPointer(l + u), u += c[v + 1].argPackAdvance;
3043
3048
  }
3044
- g = g[n].apply(g, f);
3049
+ g = g[m].apply(g, f);
3045
3050
  for (v = 0; v < a - 1; ++v) {
3046
3051
  c[v + 1].Rb && c[v + 1].Rb(f[v]);
3047
3052
  }
@@ -3052,7 +3057,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3052
3057
  return Jd[b] = e;
3053
3058
  }, _emval_get_module_property:function(a) {
3054
3059
  a = Fd(a);
3055
- return sc(m[a]);
3060
+ return sc(n[a]);
3056
3061
  }, _emval_get_property:function(a, b) {
3057
3062
  a = rc(a);
3058
3063
  b = rc(b);
@@ -3161,9 +3166,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3161
3166
  var e = Rb(a);
3162
3167
  a = b;
3163
3168
  for (var f, g = b = 0; g < c; g++) {
3164
- var n = G[a >> 2], p = G[a + 4 >> 2];
3169
+ var m = G[a >> 2], p = G[a + 4 >> 2];
3165
3170
  a += 8;
3166
- var l = e, u = n, v = p, y = f, k = A;
3171
+ var l = e, u = m, v = p, y = f, k = A;
3167
3172
  if (0 > v || 0 > y) {
3168
3173
  throw new Q(28);
3169
3174
  }
@@ -3233,9 +3238,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3233
3238
  var e = Rb(a);
3234
3239
  a = b;
3235
3240
  for (var f, g = b = 0; g < c; g++) {
3236
- var n = G[a >> 2], p = G[a + 4 >> 2];
3241
+ var m = G[a >> 2], p = G[a + 4 >> 2];
3237
3242
  a += 8;
3238
- var l = e, u = n, v = p, y = f, k = A;
3243
+ var l = e, u = m, v = p, y = f, k = A;
3239
3244
  if (0 > v || 0 > y) {
3240
3245
  throw new Q(28);
3241
3246
  }
@@ -3287,7 +3292,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3287
3292
  Ka = x.__indirect_function_table;
3288
3293
  Ma.unshift(x.__wasm_call_ctors);
3289
3294
  Pa--;
3290
- m.monitorRunDependencies && m.monitorRunDependencies(Pa);
3295
+ n.monitorRunDependencies && n.monitorRunDependencies(Pa);
3291
3296
  if (0 == Pa && (null !== Qa && (clearInterval(Qa), Qa = null), Ra)) {
3292
3297
  var d = Ra;
3293
3298
  Ra = null;
@@ -3297,10 +3302,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3297
3302
  }
3298
3303
  var b = {env:Wd, wasi_snapshot_preview1:Wd,};
3299
3304
  Pa++;
3300
- m.monitorRunDependencies && m.monitorRunDependencies(Pa);
3301
- if (m.instantiateWasm) {
3305
+ n.monitorRunDependencies && n.monitorRunDependencies(Pa);
3306
+ if (n.instantiateWasm) {
3302
3307
  try {
3303
- return m.instantiateWasm(b, a);
3308
+ return n.instantiateWasm(b, a);
3304
3309
  } catch (c) {
3305
3310
  ua("Module.instantiateWasm callback failed with error: " + c), ba(c);
3306
3311
  }
@@ -3310,20 +3315,20 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3310
3315
  }).catch(ba);
3311
3316
  return {};
3312
3317
  })();
3313
- var Ec = a => (Ec = x.free)(a), Vd = a => (Vd = x.malloc)(a), Za = m._ma_device__on_notification_unlocked = a => (Za = m._ma_device__on_notification_unlocked = x.ma_device__on_notification_unlocked)(a);
3314
- m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = x.ma_malloc_emscripten)(a, b);
3315
- m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = x.ma_free_emscripten)(a, b);
3316
- var $a = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => ($a = m._ma_device_process_pcm_frames_capture__webaudio = x.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), ab = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (ab = m._ma_device_process_pcm_frames_playback__webaudio = x.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Ud = () => (Ud = x.__errno_location)(), Dc = a => (Dc = x.__getTypeName)(a);
3317
- m.__embind_initialize_bindings = () => (m.__embind_initialize_bindings = x._embind_initialize_bindings)();
3318
- m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = x.dynCall_iiiji)(a, b, c, d, e, f);
3319
- m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = x.dynCall_iiji)(a, b, c, d, e);
3320
- m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = x.dynCall_jiji)(a, b, c, d, e);
3321
- m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = x.dynCall_iij)(a, b, c, d);
3322
- m.dynCall_jii = (a, b, c) => (m.dynCall_jii = x.dynCall_jii)(a, b, c);
3323
- m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = x.dynCall_viijii)(a, b, c, d, e, f, g);
3324
- m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = x.dynCall_iiiiij)(a, b, c, d, e, f, g);
3325
- m.dynCall_iiiiijj = (a, b, c, d, e, f, g, n, p) => (m.dynCall_iiiiijj = x.dynCall_iiiiijj)(a, b, c, d, e, f, g, n, p);
3326
- m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, n, p, l) => (m.dynCall_iiiiiijj = x.dynCall_iiiiiijj)(a, b, c, d, e, f, g, n, p, l);
3318
+ var Ec = a => (Ec = x.free)(a), Vd = a => (Vd = x.malloc)(a), Za = n._ma_device__on_notification_unlocked = a => (Za = n._ma_device__on_notification_unlocked = x.ma_device__on_notification_unlocked)(a);
3319
+ n._ma_malloc_emscripten = (a, b) => (n._ma_malloc_emscripten = x.ma_malloc_emscripten)(a, b);
3320
+ n._ma_free_emscripten = (a, b) => (n._ma_free_emscripten = x.ma_free_emscripten)(a, b);
3321
+ var $a = n._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => ($a = n._ma_device_process_pcm_frames_capture__webaudio = x.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), ab = n._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (ab = n._ma_device_process_pcm_frames_playback__webaudio = x.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Ud = () => (Ud = x.__errno_location)(), Dc = a => (Dc = x.__getTypeName)(a);
3322
+ n.__embind_initialize_bindings = () => (n.__embind_initialize_bindings = x._embind_initialize_bindings)();
3323
+ n.dynCall_iiiji = (a, b, c, d, e, f) => (n.dynCall_iiiji = x.dynCall_iiiji)(a, b, c, d, e, f);
3324
+ n.dynCall_iiji = (a, b, c, d, e) => (n.dynCall_iiji = x.dynCall_iiji)(a, b, c, d, e);
3325
+ n.dynCall_jiji = (a, b, c, d, e) => (n.dynCall_jiji = x.dynCall_jiji)(a, b, c, d, e);
3326
+ n.dynCall_iij = (a, b, c, d) => (n.dynCall_iij = x.dynCall_iij)(a, b, c, d);
3327
+ n.dynCall_jii = (a, b, c) => (n.dynCall_jii = x.dynCall_jii)(a, b, c);
3328
+ n.dynCall_viijii = (a, b, c, d, e, f, g) => (n.dynCall_viijii = x.dynCall_viijii)(a, b, c, d, e, f, g);
3329
+ n.dynCall_iiiiij = (a, b, c, d, e, f, g) => (n.dynCall_iiiiij = x.dynCall_iiiiij)(a, b, c, d, e, f, g);
3330
+ n.dynCall_iiiiijj = (a, b, c, d, e, f, g, m, p) => (n.dynCall_iiiiijj = x.dynCall_iiiiijj)(a, b, c, d, e, f, g, m, p);
3331
+ n.dynCall_iiiiiijj = (a, b, c, d, e, f, g, m, p, l) => (n.dynCall_iiiiiijj = x.dynCall_iiiiiijj)(a, b, c, d, e, f, g, m, p, l);
3327
3332
  var Xd;
3328
3333
  Ra = function Yd() {
3329
3334
  Xd || Zd();
@@ -3331,17 +3336,17 @@ Ra = function Yd() {
3331
3336
  };
3332
3337
  function Zd() {
3333
3338
  function a() {
3334
- if (!Xd && (Xd = !0, m.calledRun = !0, !Ba)) {
3335
- m.noFSInit || gc || (gc = !0, fc(), m.stdin = m.stdin, m.stdout = m.stdout, m.stderr = m.stderr, m.stdin ? ic("stdin", m.stdin) : Xb("/dev/tty", "/dev/stdin"), m.stdout ? ic("stdout", null, m.stdout) : Xb("/dev/tty", "/dev/stdout"), m.stderr ? ic("stderr", null, m.stderr) : Xb("/dev/tty1", "/dev/stderr"), dc("/dev/stdin", 0), dc("/dev/stdout", 1), dc("/dev/stderr", 1));
3339
+ if (!Xd && (Xd = !0, n.calledRun = !0, !Ba)) {
3340
+ n.noFSInit || gc || (gc = !0, fc(), n.stdin = n.stdin, n.stdout = n.stdout, n.stderr = n.stderr, n.stdin ? ic("stdin", n.stdin) : Xb("/dev/tty", "/dev/stdin"), n.stdout ? ic("stdout", null, n.stdout) : Xb("/dev/tty", "/dev/stdout"), n.stderr ? ic("stderr", null, n.stderr) : Xb("/dev/tty1", "/dev/stderr"), dc("/dev/stdin", 0), dc("/dev/stdout", 1), dc("/dev/stderr", 1));
3336
3341
  Hb = !1;
3337
3342
  cb(Ma);
3338
- aa(m);
3339
- if (m.onRuntimeInitialized) {
3340
- m.onRuntimeInitialized();
3343
+ aa(n);
3344
+ if (n.onRuntimeInitialized) {
3345
+ n.onRuntimeInitialized();
3341
3346
  }
3342
- if (m.postRun) {
3343
- for ("function" == typeof m.postRun && (m.postRun = [m.postRun]); m.postRun.length;) {
3344
- var b = m.postRun.shift();
3347
+ if (n.postRun) {
3348
+ for ("function" == typeof n.postRun && (n.postRun = [n.postRun]); n.postRun.length;) {
3349
+ var b = n.postRun.shift();
3345
3350
  Na.unshift(b);
3346
3351
  }
3347
3352
  }
@@ -3349,23 +3354,23 @@ function Zd() {
3349
3354
  }
3350
3355
  }
3351
3356
  if (!(0 < Pa)) {
3352
- if (m.preRun) {
3353
- for ("function" == typeof m.preRun && (m.preRun = [m.preRun]); m.preRun.length;) {
3357
+ if (n.preRun) {
3358
+ for ("function" == typeof n.preRun && (n.preRun = [n.preRun]); n.preRun.length;) {
3354
3359
  Oa();
3355
3360
  }
3356
3361
  }
3357
3362
  cb(La);
3358
- 0 < Pa || (m.setStatus ? (m.setStatus("Running..."), setTimeout(function() {
3363
+ 0 < Pa || (n.setStatus ? (n.setStatus("Running..."), setTimeout(function() {
3359
3364
  setTimeout(function() {
3360
- m.setStatus("");
3365
+ n.setStatus("");
3361
3366
  }, 1);
3362
3367
  a();
3363
3368
  }, 1)) : a());
3364
3369
  }
3365
3370
  }
3366
- if (m.preInit) {
3367
- for ("function" == typeof m.preInit && (m.preInit = [m.preInit]); 0 < m.preInit.length;) {
3368
- m.preInit.pop()();
3371
+ if (n.preInit) {
3372
+ for ("function" == typeof n.preInit && (n.preInit = [n.preInit]); 0 < n.preInit.length;) {
3373
+ n.preInit.pop()();
3369
3374
  }
3370
3375
  }
3371
3376
  Zd();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/canvas-advanced",
3
- "version": "2.14.3",
3
+ "version": "2.15.0",
4
4
  "description": "Rive's lightweight low-level canvas based web api.",
5
5
  "main": "canvas_advanced.mjs",
6
6
  "homepage": "https://rive.app",
package/rive.wasm CHANGED
Binary file
@@ -29,7 +29,8 @@ export interface RiveCanvas {
29
29
  RenderPaintStyle: typeof RenderPaintStyle;
30
30
  StrokeCap: typeof StrokeCap;
31
31
  StrokeJoin: typeof StrokeJoin;
32
- decodeImage: DecodeFont;
32
+ decodeAudio: DecodeAudio;
33
+ decodeImage: DecodeImage;
33
34
  decodeFont: DecodeFont;
34
35
 
35
36
  /**
@@ -92,7 +93,7 @@ export interface RiveCanvas {
92
93
  cancelAnimationFrame(requestID: number): void;
93
94
  /**
94
95
  * A Rive-specific function to "flush" queued up draw calls from using the renderer.
95
- *
96
+ *
96
97
  * This should only be invoked once at the end of a loop in a regular JS
97
98
  * requestAnimationFrame loop, and should not be used with the Rive-wrapped
98
99
  * requestAnimationFrame (aka, the requestAnimationFrame() API on this object) as that
@@ -269,6 +270,15 @@ export interface CanvasRenderFactory {
269
270
  makeRenderPath(): CanvasRenderPath;
270
271
  }
271
272
 
273
+ export class Audio {
274
+ unref(): void;
275
+ }
276
+ export interface AudioCallback {
277
+ (audio: Audio): void;
278
+ }
279
+ export interface DecodeAudio {
280
+ (bytes: Uint8Array, callback: AudioCallback): void;
281
+ }
272
282
  export class Image {
273
283
  unref(): void;
274
284
  }
@@ -896,13 +906,25 @@ export declare class Vec2D {
896
906
  export declare class FileAsset {
897
907
  name: string;
898
908
  fileExtension: string;
909
+ uniqueFilename: string;
910
+ isAudio: boolean;
899
911
  isImage: boolean;
900
912
  isFont: boolean;
901
913
  cdnUuid: string;
914
+
915
+ decode(bytes: Uint8Array): void;
916
+ }
917
+
918
+ /**
919
+ * Rive class extending the FileAsset that exposes a `setAudioSource()` API with a
920
+ * decoded Audio (via the `decodeAudio()` API) to set a new Audio on the Rive FileAsset
921
+ */
922
+ export declare class AudioAsset extends FileAsset {
923
+ setAudioSource(audio: Audio): void;
902
924
  }
903
925
 
904
926
  /**
905
- * Rive class extending the FileAsset that exposes a `setRenderImage()` API with a
927
+ * Rive class extending the FileAsset that exposes a `setRenderImage()` API with a
906
928
  * decoded Image (via the `decodeImage()` API) to set a new Image on the Rive FileAsset
907
929
  */
908
930
  export declare class ImageAsset extends FileAsset {
@@ -910,7 +932,7 @@ export declare class ImageAsset extends FileAsset {
910
932
  }
911
933
 
912
934
  /**
913
- * Rive class extending the FileAsset that exposes a `setFont()` API with a
935
+ * Rive class extending the FileAsset that exposes a `setFont()` API with a
914
936
  * decoded Font (via the `decodeFont()` API) to set a new Font on the Rive FileAsset
915
937
  */
916
938
  export declare class FontAsset extends FileAsset {