@rive-app/webgl2 2.25.2 → 2.25.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/rive.js CHANGED
@@ -26,17 +26,17 @@ var Rive = (() => {
26
26
  return (
27
27
  function(moduleArg = {}) {
28
28
 
29
- var n = moduleArg, aa, ba;
30
- n.ready = new Promise((a, b) => {
29
+ var m = moduleArg, aa, ba;
30
+ m.ready = new Promise((a, b) => {
31
31
  aa = a;
32
32
  ba = b;
33
33
  });
34
34
  function ca() {
35
35
  function a(g) {
36
- const m = d;
36
+ const n = d;
37
37
  c = b = 0;
38
38
  d = new Map();
39
- m.forEach(p => {
39
+ n.forEach(p => {
40
40
  try {
41
41
  p(g);
42
42
  } catch (l) {
@@ -49,9 +49,9 @@ function ca() {
49
49
  let b = 0, c = 0, d = new Map(), e = null, f = null;
50
50
  this.requestAnimationFrame = function(g) {
51
51
  b || (b = requestAnimationFrame(a.bind(this)));
52
- const m = ++c;
53
- d.set(m, g);
54
- return m;
52
+ const n = ++c;
53
+ d.set(n, g);
54
+ return n;
55
55
  };
56
56
  this.cancelAnimationFrame = function(g) {
57
57
  d.delete(g);
@@ -59,14 +59,14 @@ function ca() {
59
59
  };
60
60
  this.Jb = function(g) {
61
61
  f && (document.body.remove(f), f = null);
62
- 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) {
63
- f.innerHTML = "RIVE FPS " + m.toFixed(1);
62
+ 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) {
63
+ f.innerHTML = "RIVE FPS " + n.toFixed(1);
64
64
  }, document.body.appendChild(f));
65
65
  e = new function() {
66
- let m = 0, p = 0;
66
+ let n = 0, p = 0;
67
67
  this.Lb = function() {
68
68
  var l = performance.now();
69
- p ? (++m, l -= p, 1000 < l && (g(1000 * m / l), m = p = 0)) : (p = l, m = 0);
69
+ p ? (++n, l -= p, 1000 < l && (g(1000 * n / l), n = p = 0)) : (p = l, n = 0);
70
70
  };
71
71
  }();
72
72
  };
@@ -88,44 +88,44 @@ function da() {
88
88
  return b << 8;
89
89
  };
90
90
  }
91
- const ea = n.onRuntimeInitialized;
92
- n.onRuntimeInitialized = function() {
91
+ const ea = m.onRuntimeInitialized;
92
+ m.onRuntimeInitialized = function() {
93
93
  ea && ea();
94
- let a = n.decodeAudio;
95
- n.decodeAudio = function(e, f) {
94
+ let a = m.decodeAudio;
95
+ m.decodeAudio = function(e, f) {
96
96
  e = a(e);
97
97
  f(e);
98
98
  };
99
- let b = n.decodeFont;
100
- n.decodeFont = function(e, f) {
99
+ let b = m.decodeFont;
100
+ m.decodeFont = function(e, f) {
101
101
  e = b(e);
102
102
  f(e);
103
103
  };
104
- const c = n.FileAssetLoader;
105
- n.ptrToAsset = e => {
106
- let f = n.ptrToFileAsset(e);
107
- return f.isImage ? n.ptrToImageAsset(e) : f.isFont ? n.ptrToFontAsset(e) : f.isAudio ? n.ptrToAudioAsset(e) : f;
104
+ const c = m.FileAssetLoader;
105
+ m.ptrToAsset = e => {
106
+ let f = m.ptrToFileAsset(e);
107
+ return f.isImage ? m.ptrToImageAsset(e) : f.isFont ? m.ptrToFontAsset(e) : f.isAudio ? m.ptrToAudioAsset(e) : f;
108
108
  };
109
- n.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:e}) {
109
+ m.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:e}) {
110
110
  this.__parent.__construct.call(this);
111
111
  this.Ab = e;
112
112
  }, loadContents:function(e, f) {
113
- e = n.ptrToAsset(e);
113
+ e = m.ptrToAsset(e);
114
114
  return this.Ab(e, f);
115
115
  },});
116
- n.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
116
+ m.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
117
117
  this.__parent.__construct.call(this);
118
118
  }, loadContents:function(e) {
119
- let f = n.ptrToAsset(e);
119
+ let f = m.ptrToAsset(e);
120
120
  e = f.cdnUuid;
121
121
  if ("" === e) {
122
122
  return !1;
123
123
  }
124
- (function(g, m) {
124
+ (function(g, n) {
125
125
  var p = new XMLHttpRequest();
126
126
  p.responseType = "arraybuffer";
127
127
  p.onreadystatechange = function() {
128
- 4 == p.readyState && 200 == p.status && m(p);
128
+ 4 == p.readyState && 200 == p.status && n(p);
129
129
  };
130
130
  p.open("GET", g, !0);
131
131
  p.send(null);
@@ -134,7 +134,7 @@ n.onRuntimeInitialized = function() {
134
134
  });
135
135
  return !0;
136
136
  },});
137
- n.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
137
+ m.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
138
138
  this.__parent.__construct.call(this);
139
139
  this.fb = [];
140
140
  }, addLoader:function(e) {
@@ -147,13 +147,13 @@ n.onRuntimeInitialized = function() {
147
147
  }
148
148
  return !1;
149
149
  },});
150
- let d = n.computeAlignment;
151
- n.computeAlignment = function(e, f, g, m, p = 1.0) {
152
- return d.call(this, e, f, g, m, p);
150
+ let d = m.computeAlignment;
151
+ m.computeAlignment = function(e, f, g, n, p = 1.0) {
152
+ return d.call(this, e, f, g, n, p);
153
153
  };
154
154
  };
155
- const fa = n.onRuntimeInitialized;
156
- n.onRuntimeInitialized = function() {
155
+ const fa = m.onRuntimeInitialized;
156
+ m.onRuntimeInitialized = function() {
157
157
  function a(k) {
158
158
  this.F = k;
159
159
  this.yb = k.getContext("2d");
@@ -183,6 +183,8 @@ n.onRuntimeInitialized = function() {
183
183
  e.add(this);
184
184
  d.Ta || c();
185
185
  };
186
+ this["delete"] = function() {
187
+ };
186
188
  }
187
189
  function b(k, q = !1) {
188
190
  var v = {alpha:!0, depth:q, stencil:q, antialias:q, premultipliedAlpha:!0, preserveDrawingBuffer:0, powerPreference:"high-performance", failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:!1, explicitSwapControl:0, renderViaOffscreenBackBuffer:0,};
@@ -217,8 +219,8 @@ n.onRuntimeInitialized = function() {
217
219
  }
218
220
  q = Math.min(q, k);
219
221
  q = Math.min(v, k);
220
- B.sort((Y, sb) => sb.Ia - Y.Ia);
221
- y = new n.DynamicRectanizer(k);
222
+ B.sort((Y, rb) => rb.Ia - Y.Ia);
223
+ y = new m.DynamicRectanizer(k);
222
224
  for (E = 0; E < B.length;) {
223
225
  y.reset(q, v);
224
226
  for (D = E; D < B.length; ++D) {
@@ -230,7 +232,7 @@ n.onRuntimeInitialized = function() {
230
232
  H.ra = F & 65535;
231
233
  H.sa = F >> 16;
232
234
  }
233
- H = m.push(y.drawWidth());
235
+ H = n.push(y.drawWidth());
234
236
  F = p.push(y.drawHeight());
235
237
  console.assert(H >= y.drawWidth());
236
238
  console.assert(F >= y.drawHeight());
@@ -242,15 +244,15 @@ n.onRuntimeInitialized = function() {
242
244
  for (H = E; H < D; ++H) {
243
245
  F = B[H];
244
246
  d.saveClipRect(F.ra, F.sa, F.ra + F.fa, F.sa + F.ea);
245
- let Y = new n.Mat2D();
247
+ let Y = new m.Mat2D();
246
248
  Y.xx = F.fa / F.F.width;
247
249
  Y.yy = F.ea / F.F.height;
248
250
  Y.xy = Y.yx = 0;
249
251
  Y.tx = F.ra;
250
252
  Y.ty = F.sa;
251
253
  d.transform(Y);
252
- for (const sb of F.S) {
253
- sb();
254
+ for (const rb of F.S) {
255
+ rb();
254
256
  }
255
257
  d.restoreClipRect();
256
258
  F.S = [];
@@ -265,8 +267,8 @@ n.onRuntimeInitialized = function() {
265
267
  }
266
268
  fa && fa();
267
269
  let d = null;
268
- const e = new Set(), f = n.makeRenderer;
269
- n.makeRenderer = function(k, q) {
270
+ const e = new Set(), f = m.makeRenderer;
271
+ m.makeRenderer = function(k, q) {
270
272
  if (!d) {
271
273
  function v(y) {
272
274
  var B = document.createElement("canvas");
@@ -286,25 +288,25 @@ n.onRuntimeInitialized = function() {
286
288
  }
287
289
  return q ? new a(k) : b(k, d.Ja);
288
290
  };
289
- const g = n.Artboard.prototype.draw;
290
- n.Artboard.prototype.draw = function(k) {
291
+ const g = m.Artboard.prototype.draw;
292
+ m.Artboard.prototype.draw = function(k) {
291
293
  k.S ? k.S.push(g.bind(this, k.Cb)) : g.call(this, k);
292
294
  };
293
- const m = new da(), p = new da(), l = new ca();
294
- n.requestAnimationFrame = l.requestAnimationFrame.bind(l);
295
- n.cancelAnimationFrame = l.cancelAnimationFrame.bind(l);
296
- n.enableFPSCounter = l.Jb.bind(l);
295
+ const n = new da(), p = new da(), l = new ca();
296
+ m.requestAnimationFrame = l.requestAnimationFrame.bind(l);
297
+ m.cancelAnimationFrame = l.cancelAnimationFrame.bind(l);
298
+ m.enableFPSCounter = l.Jb.bind(l);
297
299
  l.jb = c;
298
- n.resolveAnimationFrame = c;
299
- let t = n.load;
300
- n.load = function(k, q, v = !0) {
301
- const y = new n.FallbackFileAssetLoader();
300
+ m.resolveAnimationFrame = c;
301
+ let t = m.load;
302
+ m.load = function(k, q, v = !0) {
303
+ const y = new m.FallbackFileAssetLoader();
302
304
  void 0 !== q && y.addLoader(q);
303
- v && (q = new n.CDNFileAssetLoader(), y.addLoader(q));
305
+ v && (q = new m.CDNFileAssetLoader(), y.addLoader(q));
304
306
  return Promise.resolve(t(k, y));
305
307
  };
306
- const u = n.WebGL2Renderer.prototype.clear;
307
- n.WebGL2Renderer.prototype.clear = function() {
308
+ const u = m.WebGL2Renderer.prototype.clear;
309
+ m.WebGL2Renderer.prototype.clear = function() {
308
310
  ja(this.zb);
309
311
  const k = this.F;
310
312
  if (this.Va != k.width || this.Ua != k.height) {
@@ -312,16 +314,16 @@ n.onRuntimeInitialized = function() {
312
314
  }
313
315
  u.call(this);
314
316
  };
315
- n.decodeImage = function(k, q) {
316
- k = n.decodeWebGL2Image(k);
317
+ m.decodeImage = function(k, q) {
318
+ k = m.decodeWebGL2Image(k);
317
319
  q(k);
318
320
  };
319
- let x = n.Renderer.prototype.align;
320
- n.Renderer.prototype.align = function(k, q, v, y, B = 1.0) {
321
+ let x = m.Renderer.prototype.align;
322
+ m.Renderer.prototype.align = function(k, q, v, y, B = 1.0) {
321
323
  x.call(this, k, q, v, y, B);
322
324
  };
323
325
  };
324
- var ka = Object.assign({}, n), la = "./this.program", ma = "object" == typeof window, na = "function" == typeof importScripts, w = "", oa, pa;
326
+ var ka = Object.assign({}, m), la = "./this.program", ma = "object" == typeof window, na = "function" == typeof importScripts, w = "", oa, pa;
325
327
  if (ma || na) {
326
328
  na ? w = self.location.href : "undefined" != typeof document && document.currentScript && (w = document.currentScript.src), _scriptDir && (w = _scriptDir), 0 !== w.indexOf("blob:") ? w = w.substr(0, w.replace(/[?#].*/, "").lastIndexOf("/") + 1) : w = "", na && (pa = a => {
327
329
  var b = new XMLHttpRequest();
@@ -340,35 +342,35 @@ if (ma || na) {
340
342
  d.send(null);
341
343
  };
342
344
  }
343
- var qa = n.print || console.log.bind(console), z = n.printErr || console.error.bind(console);
344
- Object.assign(n, ka);
345
+ var qa = m.print || console.log.bind(console), z = m.printErr || console.error.bind(console);
346
+ Object.assign(m, ka);
345
347
  ka = null;
346
- n.thisProgram && (la = n.thisProgram);
348
+ m.thisProgram && (la = m.thisProgram);
347
349
  var ra;
348
- n.wasmBinary && (ra = n.wasmBinary);
349
- var noExitRuntime = n.noExitRuntime || !0;
350
+ m.wasmBinary && (ra = m.wasmBinary);
351
+ var noExitRuntime = m.noExitRuntime || !0;
350
352
  "object" != typeof WebAssembly && sa("no native wasm support detected");
351
353
  var ta, A, ua = !1, C, G, I, va, J, K, wa, xa;
352
354
  function ya() {
353
355
  var a = ta.buffer;
354
- n.HEAP8 = C = new Int8Array(a);
355
- n.HEAP16 = I = new Int16Array(a);
356
- n.HEAP32 = J = new Int32Array(a);
357
- n.HEAPU8 = G = new Uint8Array(a);
358
- n.HEAPU16 = va = new Uint16Array(a);
359
- n.HEAPU32 = K = new Uint32Array(a);
360
- n.HEAPF32 = wa = new Float32Array(a);
361
- n.HEAPF64 = xa = new Float64Array(a);
356
+ m.HEAP8 = C = new Int8Array(a);
357
+ m.HEAP16 = I = new Int16Array(a);
358
+ m.HEAP32 = J = new Int32Array(a);
359
+ m.HEAPU8 = G = new Uint8Array(a);
360
+ m.HEAPU16 = va = new Uint16Array(a);
361
+ m.HEAPU32 = K = new Uint32Array(a);
362
+ m.HEAPF32 = wa = new Float32Array(a);
363
+ m.HEAPF64 = xa = new Float64Array(a);
362
364
  }
363
365
  var za, Aa = [], Ba = [], Ca = [];
364
366
  function Da() {
365
- var a = n.preRun.shift();
367
+ var a = m.preRun.shift();
366
368
  Aa.unshift(a);
367
369
  }
368
370
  var Ea = 0, Fa = null, Ga = null;
369
371
  function sa(a) {
370
- if (n.onAbort) {
371
- n.onAbort(a);
372
+ if (m.onAbort) {
373
+ m.onAbort(a);
372
374
  }
373
375
  a = "Aborted(" + a + ")";
374
376
  z(a);
@@ -384,7 +386,7 @@ var Ia;
384
386
  Ia = "webgl2_advanced.wasm";
385
387
  if (!Ha(Ia)) {
386
388
  var Ja = Ia;
387
- Ia = n.locateFile ? n.locateFile(Ja, w) : w + Ja;
389
+ Ia = m.locateFile ? m.locateFile(Ja, w) : w + Ja;
388
390
  }
389
391
  function Ka(a) {
390
392
  if (a == Ia && ra) {
@@ -427,7 +429,7 @@ function Na(a, b) {
427
429
  return Ma(c, a, b);
428
430
  }));
429
431
  }
430
- var Oa, Pa, Ta = {494542:(a, b, c, d, e) => {
432
+ var Oa, Pa, Ta = {494878:(a, b, c, d, e) => {
431
433
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
432
434
  return 0;
433
435
  }
@@ -443,9 +445,9 @@ var Oa, Pa, Ta = {494542:(a, b, c, d, e) => {
443
445
  let f = window.h;
444
446
  f.C = [];
445
447
  f.mc = function(g) {
446
- for (var m = 0; m < f.C.length; ++m) {
447
- if (null == f.C[m]) {
448
- return f.C[m] = g, m;
448
+ for (var n = 0; n < f.C.length; ++n) {
449
+ if (null == f.C[n]) {
450
+ return f.C[n] = g, n;
449
451
  }
450
452
  }
451
453
  f.C.push(g);
@@ -461,9 +463,9 @@ var Oa, Pa, Ta = {494542:(a, b, c, d, e) => {
461
463
  }
462
464
  };
463
465
  f.Oc = function(g) {
464
- for (var m = 0; m < f.C.length; ++m) {
465
- if (f.C[m] == g) {
466
- return f.xb(m);
466
+ for (var n = 0; n < f.C.length; ++n) {
467
+ if (f.C[n] == g) {
468
+ return f.xb(n);
467
469
  }
468
470
  }
469
471
  };
@@ -473,9 +475,9 @@ var Oa, Pa, Ta = {494542:(a, b, c, d, e) => {
473
475
  f.wb = ["touchend", "click"];
474
476
  f.unlock = function() {
475
477
  for (var g = 0; g < f.C.length; ++g) {
476
- var m = f.C[g];
477
- null != m && null != m.I && m.state === f.ia.sb && m.I.resume().then(() => {
478
- Qa(m.kb);
478
+ var n = f.C[g];
479
+ null != n && null != n.I && n.state === f.ia.sb && n.I.resume().then(() => {
480
+ Qa(n.kb);
479
481
  }, p => {
480
482
  console.error("Failed to resume audiocontext", p);
481
483
  });
@@ -490,9 +492,9 @@ var Oa, Pa, Ta = {494542:(a, b, c, d, e) => {
490
492
  }
491
493
  window.h.Da += 1;
492
494
  return 1;
493
- }, 496720:() => {
495
+ }, 497056:() => {
494
496
  "undefined" !== typeof window.h && (--window.h.Da, 0 === window.h.Da && delete window.h);
495
- }, 496884:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 496988:() => {
497
+ }, 497220:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 497324:() => {
496
498
  try {
497
499
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
498
500
  a.close();
@@ -500,13 +502,13 @@ var Oa, Pa, Ta = {494542:(a, b, c, d, e) => {
500
502
  } catch (c) {
501
503
  return 0;
502
504
  }
503
- }, 497159:(a, b, c, d, e, f) => {
505
+ }, 497495:(a, b, c, d, e, f) => {
504
506
  if ("undefined" === typeof window.h) {
505
507
  return -1;
506
508
  }
507
- var g = {}, m = {};
508
- a == window.h.H.Ba && 0 != c && (m.sampleRate = c);
509
- g.I = new (window.AudioContext || window.webkitAudioContext)(m);
509
+ var g = {}, n = {};
510
+ a == window.h.H.Ba && 0 != c && (n.sampleRate = c);
511
+ g.I = new (window.AudioContext || window.webkitAudioContext)(n);
510
512
  g.I.suspend();
511
513
  g.state = window.h.ia.stopped;
512
514
  c = 0;
@@ -546,7 +548,7 @@ var Oa, Pa, Ta = {494542:(a, b, c, d, e) => {
546
548
  a == window.h.H.Ba && g.Z.connect(g.I.destination);
547
549
  g.kb = f;
548
550
  return window.h.mc(g);
549
- }, 500036:a => window.h.va(a).I.sampleRate, 500109:a => {
551
+ }, 500372:a => window.h.va(a).I.sampleRate, 500445:a => {
550
552
  a = window.h.va(a);
551
553
  void 0 !== a.Z && (a.Z.onaudioprocess = function() {
552
554
  }, a.Z.disconnect(), a.Z = void 0);
@@ -554,19 +556,19 @@ var Oa, Pa, Ta = {494542:(a, b, c, d, e) => {
554
556
  a.I.close();
555
557
  a.I = void 0;
556
558
  a.kb = void 0;
557
- }, 500509:a => {
559
+ }, 500845:a => {
558
560
  window.h.xb(a);
559
- }, 500559:a => {
561
+ }, 500895:a => {
560
562
  a = window.h.va(a);
561
563
  a.I.resume();
562
564
  a.state = window.h.ia.sb;
563
- }, 500698:a => {
565
+ }, 501034:a => {
564
566
  a = window.h.va(a);
565
567
  a.I.suspend();
566
568
  a.state = window.h.ia.stopped;
567
569
  }}, Ua = a => {
568
570
  for (; 0 < a.length;) {
569
- a.shift()(n);
571
+ a.shift()(m);
570
572
  }
571
573
  }, Va = (a, b) => {
572
574
  for (var c = 0, d = a.length - 1; 0 <= d; d--) {
@@ -661,8 +663,8 @@ var bb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, L
661
663
  for (var f = 0; f < a.length; ++f) {
662
664
  var g = a.charCodeAt(f);
663
665
  if (55296 <= g && 57343 >= g) {
664
- var m = a.charCodeAt(++f);
665
- g = 65536 + ((g & 1023) << 10) | m & 1023;
666
+ var n = a.charCodeAt(++f);
667
+ g = 65536 + ((g & 1023) << 10) | n & 1023;
666
668
  }
667
669
  if (127 >= g) {
668
670
  if (c >= d) {
@@ -725,7 +727,7 @@ var jb = {open:function(a) {
725
727
  for (var e = 0, f = 0; f < d; f++) {
726
728
  try {
727
729
  var g = a.s.U.eb(a.s);
728
- } catch (m) {
730
+ } catch (n) {
729
731
  throw new M(29);
730
732
  }
731
733
  if (void 0 === g && 0 === e) {
@@ -950,7 +952,7 @@ var N = {O:null, T() {
950
952
  N.m.write(a, b, 0, d, c, !1);
951
953
  return 0;
952
954
  },},};
953
- function rb(a, b) {
955
+ function sb(a, b) {
954
956
  var c = 0;
955
957
  a && (c |= 365);
956
958
  b && (c |= 146);
@@ -1200,7 +1202,7 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
1200
1202
  b &= -131713;
1201
1203
  e = Kb({node:e, path:Bb(e), flags:b, seekable:!0, position:0, m:e.m, nc:[], error:!1});
1202
1204
  e.m.open && e.m.open(e);
1203
- !n.logReadFiles || b & 1 || (Ob || (Ob = {}), a in Ob || (Ob[a] = 1));
1205
+ !m.logReadFiles || b & 1 || (Ob || (Ob = {}), a in Ob || (Ob[a] = 1));
1204
1206
  return e;
1205
1207
  }, Qb = (a, b, c) => {
1206
1208
  if (null === a.X) {
@@ -1229,14 +1231,14 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
1229
1231
  }));
1230
1232
  }, Sb, Ub = (a, b, c) => {
1231
1233
  a = Wa("/dev/" + a);
1232
- var d = rb(!!b, !!c);
1234
+ var d = sb(!!b, !!c);
1233
1235
  Tb || (Tb = 64);
1234
1236
  var e = Tb++ << 8 | 0;
1235
1237
  ib(e, {open:f => {
1236
1238
  f.seekable = !1;
1237
1239
  }, close:() => {
1238
1240
  c && c.buffer && c.buffer.length && c(10);
1239
- }, read:(f, g, m, p) => {
1241
+ }, read:(f, g, n, p) => {
1240
1242
  for (var l = 0, t = 0; t < p; t++) {
1241
1243
  try {
1242
1244
  var u = b();
@@ -1250,14 +1252,14 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
1250
1252
  break;
1251
1253
  }
1252
1254
  l++;
1253
- g[m + t] = u;
1255
+ g[n + t] = u;
1254
1256
  }
1255
1257
  l && (f.node.timestamp = Date.now());
1256
1258
  return l;
1257
- }, write:(f, g, m, p) => {
1259
+ }, write:(f, g, n, p) => {
1258
1260
  for (var l = 0; l < p; l++) {
1259
1261
  try {
1260
- c(g[m + l]);
1262
+ c(g[n + l]);
1261
1263
  } catch (t) {
1262
1264
  throw new M(29);
1263
1265
  }
@@ -1419,20 +1421,20 @@ function Bc(a) {
1419
1421
  }
1420
1422
  var Cc = {}, Dc = {};
1421
1423
  function T(a, b, c) {
1422
- function d(m) {
1423
- m = c(m);
1424
- m.length !== a.length && wc("Mismatched type converter count");
1424
+ function d(n) {
1425
+ n = c(n);
1426
+ n.length !== a.length && wc("Mismatched type converter count");
1425
1427
  for (var p = 0; p < a.length; ++p) {
1426
- U(a[p], m[p]);
1428
+ U(a[p], n[p]);
1427
1429
  }
1428
1430
  }
1429
- a.forEach(function(m) {
1430
- Dc[m] = b;
1431
+ a.forEach(function(n) {
1432
+ Dc[n] = b;
1431
1433
  });
1432
1434
  var e = Array(b.length), f = [], g = 0;
1433
- b.forEach((m, p) => {
1434
- kc.hasOwnProperty(m) ? e[p] = kc[m] : (f.push(m), Cc.hasOwnProperty(m) || (Cc[m] = []), Cc[m].push(() => {
1435
- e[p] = kc[m];
1435
+ b.forEach((n, p) => {
1436
+ kc.hasOwnProperty(n) ? e[p] = kc[n] : (f.push(n), Cc.hasOwnProperty(n) || (Cc[n] = []), Cc[n].push(() => {
1437
+ e[p] = kc[n];
1436
1438
  ++g;
1437
1439
  g === f.length && d(e);
1438
1440
  }));
@@ -1489,9 +1491,9 @@ function Ic(a, b, c) {
1489
1491
  }
1490
1492
  }
1491
1493
  function Jc(a, b, c) {
1492
- n.hasOwnProperty(a) ? ((void 0 === c || void 0 !== n[a].B && void 0 !== n[a].B[c]) && Q(`Cannot register public name '${a}' twice`), Ic(n, a, a), n.hasOwnProperty(c) && Q(`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].Lc = c));
1494
+ m.hasOwnProperty(a) ? ((void 0 === c || void 0 !== m[a].B && void 0 !== m[a].B[c]) && Q(`Cannot register public name '${a}' twice`), Ic(m, a, a), m.hasOwnProperty(c) && Q(`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].Lc = c));
1493
1495
  }
1494
- function Kc(a, b, c, d, e, f, g, m) {
1496
+ function Kc(a, b, c, d, e, f, g, n) {
1495
1497
  this.name = a;
1496
1498
  this.constructor = b;
1497
1499
  this.N = c;
@@ -1499,7 +1501,7 @@ function Kc(a, b, c, d, e, f, g, m) {
1499
1501
  this.A = e;
1500
1502
  this.Mb = f;
1501
1503
  this.pa = g;
1502
- this.Hb = m;
1504
+ this.Hb = n;
1503
1505
  this.lb = [];
1504
1506
  }
1505
1507
  function Lc(a, b, c) {
@@ -1574,8 +1576,8 @@ function Qc(a, b, c, d) {
1574
1576
  void 0 !== b.A ? this.toWireType = Oc : (this.toWireType = d ? Mc : Pc, this.K = null);
1575
1577
  }
1576
1578
  function Rc(a, b, c) {
1577
- n.hasOwnProperty(a) || wc("Replacing nonexistant public symbol");
1578
- void 0 !== n[a].B && void 0 !== c ? n[a].B[c] = b : (n[a] = b, n[a].ga = c);
1579
+ m.hasOwnProperty(a) || wc("Replacing nonexistant public symbol");
1580
+ void 0 !== m[a].B && void 0 !== c ? m[a].B[c] = b : (m[a] = b, m[a].ga = c);
1579
1581
  }
1580
1582
  var Sc = [], Tc = a => {
1581
1583
  var b = Sc[a];
@@ -1587,7 +1589,7 @@ var Sc = [], Tc = a => {
1587
1589
  c.length = 0;
1588
1590
  Object.assign(c, arguments);
1589
1591
  if (a.includes("j")) {
1590
- var d = n["dynCall_" + a];
1592
+ var d = m["dynCall_" + a];
1591
1593
  d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
1592
1594
  } else {
1593
1595
  d = Tc(b).apply(null, c);
@@ -1613,10 +1615,10 @@ function Wc(a, b) {
1613
1615
  function Xc(a, b, c, d, e) {
1614
1616
  var f = b.length;
1615
1617
  2 > f && Q("argTypes array size mismatch! Must at least get return value and 'this' types!");
1616
- var g = null !== b[1] && null !== c, m = !1;
1618
+ var g = null !== b[1] && null !== c, n = !1;
1617
1619
  for (c = 1; c < b.length; ++c) {
1618
1620
  if (null !== b[c] && void 0 === b[c].K) {
1619
- m = !0;
1621
+ n = !0;
1620
1622
  break;
1621
1623
  }
1622
1624
  }
@@ -1634,7 +1636,7 @@ function Xc(a, b, c, d, e) {
1634
1636
  t[q] = b[q + 2].toWireType(x, arguments[q]), u.push(t[q]);
1635
1637
  }
1636
1638
  q = d.apply(null, u);
1637
- if (m) {
1639
+ if (n) {
1638
1640
  Ac(x);
1639
1641
  } else {
1640
1642
  for (var v = g ? 1 : 2; v < b.length; v++) {
@@ -1829,7 +1831,7 @@ function ha(a) {
1829
1831
  }
1830
1832
  function ja(a) {
1831
1833
  Dd = r[a];
1832
- n.xc = Z = Dd && Dd.J;
1834
+ m.xc = Z = Dd && Dd.J;
1833
1835
  return !(a && !Z);
1834
1836
  }
1835
1837
  function ia(a) {
@@ -1998,7 +2000,7 @@ var Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [31, 29, 31,
1998
2000
  0 === (y = v(k.getFullYear() - q.getFullYear())) && 0 === (y = v(k.getMonth() - q.getMonth())) && (y = v(k.getDate() - q.getDate()));
1999
2001
  return y;
2000
2002
  }
2001
- function m(k) {
2003
+ function n(k) {
2002
2004
  switch(k.getDay()) {
2003
2005
  case 0:
2004
2006
  return new Date(k.getFullYear() - 1, 11, 29);
@@ -2028,8 +2030,8 @@ var Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [31, 29, 31,
2028
2030
  }
2029
2031
  }
2030
2032
  v = new Date(k.getFullYear() + 1, 0, 4);
2031
- q = m(new Date(k.getFullYear(), 0, 4));
2032
- v = m(v);
2033
+ q = n(new Date(k.getFullYear(), 0, 4));
2034
+ v = n(v);
2033
2035
  return 0 >= g(q, k) ? 0 >= g(v, k) ? k.getFullYear() + 1 : k.getFullYear() : k.getFullYear() - 1;
2034
2036
  }
2035
2037
  var l = J[d + 40 >> 2];
@@ -2147,7 +2149,7 @@ Object.assign($b.prototype, {get(a) {
2147
2149
  this.M[a] = void 0;
2148
2150
  this.cb.push(a);
2149
2151
  }});
2150
- ac = n.BindingError = class extends Error {
2152
+ ac = m.BindingError = class extends Error {
2151
2153
  constructor(a) {
2152
2154
  super(a);
2153
2155
  this.name = "BindingError";
@@ -2155,33 +2157,33 @@ ac = n.BindingError = class extends Error {
2155
2157
  };
2156
2158
  P.M.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
2157
2159
  P.h = P.M.length;
2158
- n.count_emval_handles = function() {
2160
+ m.count_emval_handles = function() {
2159
2161
  for (var a = 0, b = P.h; b < P.M.length; ++b) {
2160
2162
  void 0 !== P.M[b] && ++a;
2161
2163
  }
2162
2164
  return a;
2163
2165
  };
2164
- dc = n.PureVirtualError = cc("PureVirtualError");
2166
+ dc = m.PureVirtualError = cc("PureVirtualError");
2165
2167
  for (var Sd = Array(256), Td = 0; 256 > Td; ++Td) {
2166
2168
  Sd[Td] = String.fromCharCode(Td);
2167
2169
  }
2168
2170
  ec = Sd;
2169
- n.getInheritedInstanceCount = function() {
2171
+ m.getInheritedInstanceCount = function() {
2170
2172
  return Object.keys(ic).length;
2171
2173
  };
2172
- n.getLiveInheritedInstances = function() {
2174
+ m.getLiveInheritedInstances = function() {
2173
2175
  var a = [], b;
2174
2176
  for (b in ic) {
2175
2177
  ic.hasOwnProperty(b) && a.push(ic[b]);
2176
2178
  }
2177
2179
  return a;
2178
2180
  };
2179
- n.flushPendingDeletes = gc;
2180
- n.setDelayFunction = function(a) {
2181
+ m.flushPendingDeletes = gc;
2182
+ m.setDelayFunction = function(a) {
2181
2183
  hc = a;
2182
2184
  fc.length && hc && hc(gc);
2183
2185
  };
2184
- vc = n.InternalError = class extends Error {
2186
+ vc = m.InternalError = class extends Error {
2185
2187
  constructor(a) {
2186
2188
  super(a);
2187
2189
  this.name = "InternalError";
@@ -2269,7 +2271,7 @@ Qc.prototype.fromWireType = function(a) {
2269
2271
  var e = sc(c, this.i, d.i);
2270
2272
  return null === e ? b.call(this) : this.ya ? xc(d.i.N, {u:d, o:e, L:this, G:a,}) : xc(d.i.N, {u:d, o:e,});
2271
2273
  };
2272
- Vc = n.UnboundTypeError = cc("UnboundTypeError");
2274
+ Vc = m.UnboundTypeError = cc("UnboundTypeError");
2273
2275
  for (var Z, Ud = 0; 32 > Ud; ++Ud) {
2274
2276
  Id.push(Array(Ud));
2275
2277
  }
@@ -2395,17 +2397,17 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2395
2397
  }
2396
2398
  var g = d ? Xb() : 0;
2397
2399
  return Pb(b, c, g).X;
2398
- } catch (m) {
2399
- if ("undefined" == typeof Vb || "ErrnoError" !== m.name) {
2400
- throw m;
2400
+ } catch (n) {
2401
+ if ("undefined" == typeof Vb || "ErrnoError" !== n.name) {
2402
+ throw n;
2401
2403
  }
2402
- return -m.aa;
2404
+ return -n.aa;
2403
2405
  }
2404
2406
  }, _embind_create_inheriting_constructor:function(a, b, c) {
2405
2407
  a = S(a);
2406
2408
  b = oc(b, "wrapper");
2407
2409
  c = R(c);
2408
- var d = [].slice, e = b.i, f = e.N, g = e.A.N, m = e.A.constructor;
2410
+ var d = [].slice, e = b.i, f = e.N, g = e.A.N, n = e.A.constructor;
2409
2411
  a = Zb(a, function() {
2410
2412
  e.A.lb.forEach(function(l) {
2411
2413
  if (this[l] === g[l]) {
@@ -2417,7 +2419,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2417
2419
  });
2418
2420
  f.__construct = function() {
2419
2421
  this === f && Q("Pass correct 'this' to __construct");
2420
- var l = m.implement.apply(void 0, [this].concat(d.call(arguments)));
2422
+ var l = n.implement.apply(void 0, [this].concat(d.call(arguments)));
2421
2423
  pc(l);
2422
2424
  var t = l.g;
2423
2425
  l.notifyOnDestruction();
@@ -2445,10 +2447,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2445
2447
  delete zc[a];
2446
2448
  var c = b.Pa, d = b.V, e = b.$a, f = e.map(g => g.Qb).concat(e.map(g => g.ec));
2447
2449
  T([a], f, g => {
2448
- var m = {};
2450
+ var n = {};
2449
2451
  e.forEach((p, l) => {
2450
2452
  var t = g[l], u = p.Ob, x = p.Pb, k = g[l + e.length], q = p.dc, v = p.fc;
2451
- m[p.Kb] = {read:y => t.fromWireType(u(x, y)), write:(y, B) => {
2453
+ n[p.Kb] = {read:y => t.fromWireType(u(x, y)), write:(y, B) => {
2452
2454
  var D = [];
2453
2455
  q(v, y, k.toWireType(D, B));
2454
2456
  Ac(D);
@@ -2456,20 +2458,20 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2456
2458
  });
2457
2459
  return [{name:b.name, fromWireType:function(p) {
2458
2460
  var l = {}, t;
2459
- for (t in m) {
2460
- l[t] = m[t].read(p);
2461
+ for (t in n) {
2462
+ l[t] = n[t].read(p);
2461
2463
  }
2462
2464
  d(p);
2463
2465
  return l;
2464
2466
  }, toWireType:function(p, l) {
2465
- for (var t in m) {
2467
+ for (var t in n) {
2466
2468
  if (!(t in l)) {
2467
2469
  throw new TypeError(`Missing field: "${t}"`);
2468
2470
  }
2469
2471
  }
2470
2472
  var u = c();
2471
- for (t in m) {
2472
- m[t].write(u, l[t]);
2473
+ for (t in n) {
2474
+ n[t].write(u, l[t]);
2473
2475
  }
2474
2476
  null !== p && p.push(d, u);
2475
2477
  return u;
@@ -2481,24 +2483,24 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2481
2483
  b = S(b);
2482
2484
  U(a, {name:b, fromWireType:function(g) {
2483
2485
  return !!g;
2484
- }, toWireType:function(g, m) {
2485
- return m ? d : e;
2486
+ }, toWireType:function(g, n) {
2487
+ return n ? d : e;
2486
2488
  }, argPackAdvance:8, readValueFromPointer:function(g) {
2487
2489
  if (1 === c) {
2488
- var m = C;
2490
+ var n = C;
2489
2491
  } else if (2 === c) {
2490
- m = I;
2492
+ n = I;
2491
2493
  } else if (4 === c) {
2492
- m = J;
2494
+ n = J;
2493
2495
  } else {
2494
2496
  throw new TypeError("Unknown boolean type size: " + b);
2495
2497
  }
2496
- return this.fromWireType(m[g >> f]);
2498
+ return this.fromWireType(n[g >> f]);
2497
2499
  }, K:null,});
2498
- }, _embind_register_class:function(a, b, c, d, e, f, g, m, p, l, t, u, x) {
2500
+ }, _embind_register_class:function(a, b, c, d, e, f, g, n, p, l, t, u, x) {
2499
2501
  t = S(t);
2500
2502
  f = V(e, f);
2501
- m && (m = V(g, m));
2503
+ n && (n = V(g, n));
2502
2504
  l && (l = V(p, l));
2503
2505
  x = V(u, x);
2504
2506
  var k = Yb(t);
@@ -2528,7 +2530,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2528
2530
  });
2529
2531
  var B = Object.create(y, {constructor:{value:q},});
2530
2532
  q.prototype = B;
2531
- var D = new Kc(t, q, B, x, v, f, m, l);
2533
+ var D = new Kc(t, q, B, x, v, f, n, l);
2532
2534
  D.A && (void 0 === D.A.qa && (D.A.qa = []), D.A.qa.push(D));
2533
2535
  v = new Qc(t, D, !0, !1);
2534
2536
  y = new Qc(t + "*", D, !1, !1);
@@ -2538,19 +2540,19 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2538
2540
  return [v, y, E];
2539
2541
  });
2540
2542
  }, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
2541
- var m = Yc(c, d);
2543
+ var n = Yc(c, d);
2542
2544
  b = S(b);
2543
2545
  f = V(e, f);
2544
2546
  T([], [a], function(p) {
2545
2547
  function l() {
2546
- Wc(`Cannot call ${t} due to unbound types`, m);
2548
+ Wc(`Cannot call ${t} due to unbound types`, n);
2547
2549
  }
2548
2550
  p = p[0];
2549
2551
  var t = `${p.name}.${b}`;
2550
2552
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2551
2553
  var u = p.i.constructor;
2552
2554
  void 0 === u[b] ? (l.ga = c - 1, u[b] = l) : (Ic(u, b, t), u[b].B[c - 1] = l);
2553
- T([], m, function(x) {
2555
+ T([], n, function(x) {
2554
2556
  x = Xc(t, [x[0], null].concat(x.slice(1)), null, f, g);
2555
2557
  void 0 === u[b].B ? (x.ga = c - 1, u[b] = x) : u[b].B[c - 1] = x;
2556
2558
  if (p.i.qa) {
@@ -2562,7 +2564,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2562
2564
  });
2563
2565
  return [];
2564
2566
  });
2565
- }, _embind_register_class_class_property:function(a, b, c, d, e, f, g, m) {
2567
+ }, _embind_register_class_class_property:function(a, b, c, d, e, f, g, n) {
2566
2568
  b = S(b);
2567
2569
  f = V(e, f);
2568
2570
  T([], [a], function(p) {
@@ -2570,7 +2572,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2570
2572
  var l = `${p.name}.${b}`, t = {get() {
2571
2573
  Wc(`Cannot access ${l} due to unbound types`, [c]);
2572
2574
  }, enumerable:!0, configurable:!0};
2573
- t.set = m ? () => {
2575
+ t.set = n ? () => {
2574
2576
  Wc(`Cannot access ${l} due to unbound types`, [c]);
2575
2577
  } : () => {
2576
2578
  Q(`${l} is a read-only property`);
@@ -2581,9 +2583,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2581
2583
  var x = {get() {
2582
2584
  return u.fromWireType(f(d));
2583
2585
  }, enumerable:!0};
2584
- m && (m = V(g, m), x.set = k => {
2586
+ n && (n = V(g, n), x.set = k => {
2585
2587
  var q = [];
2586
- m(d, u.toWireType(q, k));
2588
+ n(d, u.toWireType(q, k));
2587
2589
  Ac(q);
2588
2590
  });
2589
2591
  Object.defineProperty(p.i.constructor, b, x);
@@ -2594,24 +2596,24 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2594
2596
  }, _embind_register_class_constructor:function(a, b, c, d, e, f) {
2595
2597
  var g = Yc(b, c);
2596
2598
  e = V(d, e);
2597
- T([], [a], function(m) {
2598
- m = m[0];
2599
- var p = `constructor ${m.name}`;
2600
- void 0 === m.i.$ && (m.i.$ = []);
2601
- if (void 0 !== m.i.$[b - 1]) {
2602
- throw new ac(`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!`);
2603
- }
2604
- m.i.$[b - 1] = () => {
2605
- Wc(`Cannot construct ${m.name} due to unbound types`, g);
2599
+ T([], [a], function(n) {
2600
+ n = n[0];
2601
+ var p = `constructor ${n.name}`;
2602
+ void 0 === n.i.$ && (n.i.$ = []);
2603
+ if (void 0 !== n.i.$[b - 1]) {
2604
+ throw new ac(`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!`);
2605
+ }
2606
+ n.i.$[b - 1] = () => {
2607
+ Wc(`Cannot construct ${n.name} due to unbound types`, g);
2606
2608
  };
2607
2609
  T([], g, function(l) {
2608
2610
  l.splice(1, 0, null);
2609
- m.i.$[b - 1] = Xc(p, l, null, e, f);
2611
+ n.i.$[b - 1] = Xc(p, l, null, e, f);
2610
2612
  return [];
2611
2613
  });
2612
2614
  return [];
2613
2615
  });
2614
- }, _embind_register_class_function:function(a, b, c, d, e, f, g, m) {
2616
+ }, _embind_register_class_function:function(a, b, c, d, e, f, g, n) {
2615
2617
  var p = Yc(c, d);
2616
2618
  b = S(b);
2617
2619
  f = V(e, f);
@@ -2622,7 +2624,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2622
2624
  l = l[0];
2623
2625
  var u = `${l.name}.${b}`;
2624
2626
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2625
- m && l.i.lb.push(b);
2627
+ n && l.i.lb.push(b);
2626
2628
  var x = l.i.N, k = x[b];
2627
2629
  void 0 === k || void 0 === k.B && k.className !== l.name && k.ga === c - 2 ? (t.ga = c - 2, t.className = l.name, x[b] = t) : (Ic(x, b, u), x[b].B[c - 2] = t);
2628
2630
  T([], p, function(q) {
@@ -2632,7 +2634,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2632
2634
  });
2633
2635
  return [];
2634
2636
  });
2635
- }, _embind_register_class_property:function(a, b, c, d, e, f, g, m, p, l) {
2637
+ }, _embind_register_class_property:function(a, b, c, d, e, f, g, n, p, l) {
2636
2638
  b = S(b);
2637
2639
  e = V(d, e);
2638
2640
  T([], [a], function(t) {
@@ -2652,7 +2654,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2652
2654
  return q.fromWireType(e(f, B));
2653
2655
  }, enumerable:!0};
2654
2656
  if (p) {
2655
- p = V(m, p);
2657
+ p = V(n, p);
2656
2658
  var y = k[1];
2657
2659
  v.set = function(B) {
2658
2660
  var D = Zc(this, t, u + " setter"), E = [];
@@ -2709,22 +2711,22 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2709
2711
  Jc(a, function() {
2710
2712
  Wc(`Cannot call ${a} due to unbound types`, g);
2711
2713
  }, b - 1);
2712
- T([], g, function(m) {
2713
- Rc(a, Xc(a, [m[0], null].concat(m.slice(1)), null, e, f), b - 1);
2714
+ T([], g, function(n) {
2715
+ Rc(a, Xc(a, [n[0], null].concat(n.slice(1)), null, e, f), b - 1);
2714
2716
  return [];
2715
2717
  });
2716
2718
  }, _embind_register_integer:function(a, b, c, d, e) {
2717
2719
  b = S(b);
2718
2720
  -1 === e && (e = 4294967295);
2719
2721
  e = Ec(c);
2720
- var f = m => m;
2722
+ var f = n => n;
2721
2723
  if (0 === d) {
2722
2724
  var g = 32 - 8 * c;
2723
- f = m => m << g >>> g;
2725
+ f = n => n << g >>> g;
2724
2726
  }
2725
- c = b.includes("unsigned") ? function(m, p) {
2727
+ c = b.includes("unsigned") ? function(n, p) {
2726
2728
  return p >>> 0;
2727
- } : function(m, p) {
2729
+ } : function(n, p) {
2728
2730
  return p;
2729
2731
  };
2730
2732
  U(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:cd(b, e, 0 !== d), K:null,});
@@ -2743,9 +2745,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2743
2745
  U(a, {name:b, fromWireType:function(d) {
2744
2746
  var e = K[d >> 2], f = d + 4;
2745
2747
  if (c) {
2746
- for (var g = f, m = 0; m <= e; ++m) {
2747
- var p = f + m;
2748
- if (m == e || 0 == G[p]) {
2748
+ for (var g = f, n = 0; n <= e; ++n) {
2749
+ var p = f + n;
2750
+ if (n == e || 0 == G[p]) {
2749
2751
  g = g ? L(G, g, p - g) : "";
2750
2752
  if (void 0 === l) {
2751
2753
  var l = g;
@@ -2757,8 +2759,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2757
2759
  }
2758
2760
  } else {
2759
2761
  l = Array(e);
2760
- for (m = 0; m < e; ++m) {
2761
- l[m] = String.fromCharCode(G[f + m]);
2762
+ for (n = 0; n < e; ++n) {
2763
+ l[n] = String.fromCharCode(G[f + n]);
2762
2764
  }
2763
2765
  l = l.join("");
2764
2766
  }
@@ -2769,8 +2771,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2769
2771
  var f = "string" == typeof e;
2770
2772
  f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || Q("Cannot pass non-string to std::string");
2771
2773
  var g = c && f ? db(e) : e.length;
2772
- var m = Ld(4 + g + 1), p = m + 4;
2773
- K[m >> 2] = g;
2774
+ var n = Ld(4 + g + 1), p = n + 4;
2775
+ K[n >> 2] = g;
2774
2776
  if (c && f) {
2775
2777
  eb(e, G, p, g + 1);
2776
2778
  } else {
@@ -2786,8 +2788,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2786
2788
  }
2787
2789
  }
2788
2790
  }
2789
- null !== d && d.push(nc, m);
2790
- return m;
2791
+ null !== d && d.push(nc, n);
2792
+ return n;
2791
2793
  }, argPackAdvance:8, readValueFromPointer:Bc, K:function(d) {
2792
2794
  nc(d);
2793
2795
  },});
@@ -2798,14 +2800,14 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2798
2800
  var e = fd;
2799
2801
  var f = gd;
2800
2802
  var g = () => va;
2801
- var m = 1;
2803
+ var n = 1;
2802
2804
  } else {
2803
- 4 === b && (d = hd, e = jd, f = kd, g = () => K, m = 2);
2805
+ 4 === b && (d = hd, e = jd, f = kd, g = () => K, n = 2);
2804
2806
  }
2805
2807
  U(a, {name:c, fromWireType:function(p) {
2806
2808
  for (var l = K[p >> 2], t = g(), u, x = p + 4, k = 0; k <= l; ++k) {
2807
2809
  var q = p + 4 + k * b;
2808
- if (k == l || 0 == t[q >> m]) {
2810
+ if (k == l || 0 == t[q >> n]) {
2809
2811
  x = d(x, q - x), void 0 === u ? u = x : (u += String.fromCharCode(0), u += x), x = q + b;
2810
2812
  }
2811
2813
  }
@@ -2814,7 +2816,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2814
2816
  }, toWireType:function(p, l) {
2815
2817
  "string" != typeof l && Q(`Cannot pass non-string to C++ string type ${c}`);
2816
2818
  var t = f(l), u = Ld(4 + t + b);
2817
- K[u >> 2] = t >> m;
2819
+ K[u >> 2] = t >> n;
2818
2820
  e(l, u + 4, t + b);
2819
2821
  null !== p && p.push(nc, u);
2820
2822
  return u;
@@ -2823,8 +2825,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2823
2825
  },});
2824
2826
  }, _embind_register_value_object:function(a, b, c, d, e, f) {
2825
2827
  zc[a] = {name:S(b), Pa:V(c, d), V:V(e, f), $a:[],};
2826
- }, _embind_register_value_object_field:function(a, b, c, d, e, f, g, m, p, l) {
2827
- zc[a].$a.push({Kb:S(b), Qb:c, Ob:V(d, e), Pb:f, ec:g, dc:V(m, p), fc:l,});
2828
+ }, _embind_register_value_object_field:function(a, b, c, d, e, f, g, n, p, l) {
2829
+ zc[a].$a.push({Kb:S(b), Qb:c, Ob:V(d, e), Pb:f, ec:g, dc:V(n, p), fc:l,});
2828
2830
  }, _embind_register_void:function(a, b) {
2829
2831
  b = S(b);
2830
2832
  U(a, {Yb:!0, name:b, argPackAdvance:0, fromWireType:function() {
@@ -2858,11 +2860,11 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2858
2860
  return e;
2859
2861
  }
2860
2862
  var f = Array(a - 1);
2861
- e = od((g, m, p, l) => {
2863
+ e = od((g, n, p, l) => {
2862
2864
  for (var t = 0, u = 0; u < a - 1; ++u) {
2863
2865
  f[u] = c[u + 1].readValueFromPointer(l + t), t += c[u + 1].argPackAdvance;
2864
2866
  }
2865
- g = g[m].apply(g, f);
2867
+ g = g[n].apply(g, f);
2866
2868
  for (u = 0; u < a - 1; ++u) {
2867
2869
  c[u + 1].Gb && c[u + 1].Gb(f[u]);
2868
2870
  }
@@ -2897,21 +2899,21 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2897
2899
  }, abort:() => {
2898
2900
  sa("");
2899
2901
  }, beginPixelLocalStorageWEBGL:function(a, b, c) {
2900
- (a = r[a].J.ja) && a.beginPixelLocalStorageWEBGL(n.HEAPU32.subarray(c, c + b));
2902
+ (a = r[a].J.ja) && a.beginPixelLocalStorageWEBGL(m.HEAPU32.subarray(c, c + b));
2901
2903
  }, decode_image:function(a, b, c) {
2902
- var d = n.images;
2903
- d || (d = new Map(), n.images = d);
2904
+ var d = m.images;
2905
+ d || (d = new Map(), m.images = d);
2904
2906
  var e = new Image();
2905
2907
  d.set(a, e);
2906
- b = n.HEAP8.subarray(b, b + c);
2908
+ b = m.HEAP8.subarray(b, b + c);
2907
2909
  c = new Uint8Array(c);
2908
2910
  c.set(b);
2909
2911
  e.src = URL.createObjectURL(new Blob([c], {type:"image/png"}));
2910
2912
  e.onload = function() {
2911
- n._setWebImage(a, e.width, e.height);
2913
+ m._setWebImage(a, e.width, e.height);
2912
2914
  };
2913
2915
  }, delete_image:function(a) {
2914
- var b = n.images;
2916
+ var b = m.images;
2915
2917
  b && b.get(a) && b.delete(a);
2916
2918
  }, emscripten_asm_const_int:(a, b, c) => {
2917
2919
  rd.length = 0;
@@ -2970,7 +2972,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
2970
2972
  a.ja = a.getExtension("WEBGL_shader_pixel_local_storage");
2971
2973
  return !(!a.ja || !a.ja.isCoherent());
2972
2974
  }, endPixelLocalStorageWEBGL:function(a, b, c) {
2973
- (a = r[a].J.ja) && a.endPixelLocalStorageWEBGL(n.HEAPU32.subarray(c, c + b));
2975
+ (a = r[a].J.ja) && a.endPixelLocalStorageWEBGL(m.HEAPU32.subarray(c, c + b));
2974
2976
  }, environ_get:(a, b) => {
2975
2977
  var c = 0;
2976
2978
  Hd().forEach(function(d, e) {
@@ -3020,9 +3022,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3020
3022
  var e = Ib(a);
3021
3023
  a = b;
3022
3024
  for (var f, g = b = 0; g < c; g++) {
3023
- var m = K[a >> 2], p = K[a + 4 >> 2];
3025
+ var n = K[a >> 2], p = K[a + 4 >> 2];
3024
3026
  a += 8;
3025
- var l = e, t = m, u = p, x = f, k = C;
3027
+ var l = e, t = n, u = p, x = f, k = C;
3026
3028
  if (0 > u || 0 > x) {
3027
3029
  throw new M(28);
3028
3030
  }
@@ -3092,9 +3094,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3092
3094
  var e = Ib(a);
3093
3095
  a = b;
3094
3096
  for (var f, g = b = 0; g < c; g++) {
3095
- var m = K[a >> 2], p = K[a + 4 >> 2];
3097
+ var n = K[a >> 2], p = K[a + 4 >> 2];
3096
3098
  a += 8;
3097
- var l = e, t = m, u = p, x = f, k = C;
3099
+ var l = e, t = n, u = p, x = f, k = C;
3098
3100
  if (0 > u || 0 > x) {
3099
3101
  throw new M(28);
3100
3102
  }
@@ -3162,8 +3164,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3162
3164
  Z.blendEquation(a);
3163
3165
  }, glBlendFunc:function(a, b) {
3164
3166
  Z.blendFunc(a, b);
3165
- }, glBlitFramebuffer:function(a, b, c, d, e, f, g, m, p, l) {
3166
- Z.blitFramebuffer(a, b, c, d, e, f, g, m, p, l);
3167
+ }, glBlitFramebuffer:function(a, b, c, d, e, f, g, n, p, l) {
3168
+ Z.blitFramebuffer(a, b, c, d, e, f, g, n, p, l);
3167
3169
  }, glBufferData:function(a, b, c, d) {
3168
3170
  c && b ? Z.bufferData(a, G, d, c, b) : Z.bufferData(a, b, d);
3169
3171
  }, glBufferSubData:function(a, b, c, d) {
@@ -3316,15 +3318,15 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3316
3318
  if (!d) {
3317
3319
  for (c.oa = d = {}, c.tb = {}, f = 0; f < Z.getProgramParameter(c, 35718); ++f) {
3318
3320
  var g = Z.getActiveUniform(c, f);
3319
- var m = g.name;
3321
+ var n = g.name;
3320
3322
  g = g.size;
3321
- var p = Nd(m);
3322
- p = 0 < p ? m.slice(0, p) : m;
3323
+ var p = Nd(n);
3324
+ p = 0 < p ? n.slice(0, p) : n;
3323
3325
  var l = c.Sa;
3324
3326
  c.Sa += g;
3325
3327
  e[p] = [g, l];
3326
- for (m = 0; m < g; ++m) {
3327
- d[l] = m, c.tb[l++] = p;
3328
+ for (n = 0; n < g; ++n) {
3329
+ d[l] = n, c.tb[l++] = p;
3328
3330
  }
3329
3331
  }
3330
3332
  }
@@ -3345,11 +3347,6 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3345
3347
  d[e] = J[c + 4 * e >> 2];
3346
3348
  }
3347
3349
  Z.invalidateFramebuffer(a, d);
3348
- }, glInvalidateSubFramebuffer:function(a, b, c, d, e, f, g) {
3349
- for (var m = Id[b], p = 0; p < b; p++) {
3350
- m[p] = J[c + 4 * p >> 2];
3351
- }
3352
- Z.invalidateSubFramebuffer(a, m, d, e, f, g);
3353
3350
  }, glLinkProgram:function(a) {
3354
3351
  a = W[a];
3355
3352
  Z.linkProgram(a);
@@ -3363,8 +3360,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3363
3360
  Z.scissor(a, b, c, d);
3364
3361
  }, glShaderSource:function(a, b, c, d) {
3365
3362
  for (var e = "", f = 0; f < b; ++f) {
3366
- var g = d ? J[d + 4 * f >> 2] : -1, m = J[c + 4 * f >> 2];
3367
- g = m ? L(G, m, 0 > g ? void 0 : g) : "";
3363
+ var g = d ? J[d + 4 * f >> 2] : -1, n = J[c + 4 * f >> 2];
3364
+ g = n ? L(G, n, 0 > g ? void 0 : g) : "";
3368
3365
  e += g;
3369
3366
  }
3370
3367
  Z.shaderSource(zd[a], e);
@@ -3382,15 +3379,15 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3382
3379
  Z.texParameteri(a, b, c);
3383
3380
  }, glTexStorage2D:function(a, b, c, d, e) {
3384
3381
  Z.texStorage2D(a, b, c, d, e);
3385
- }, glTexSubImage2D:function(a, b, c, d, e, f, g, m, p) {
3382
+ }, glTexSubImage2D:function(a, b, c, d, e, f, g, n, p) {
3386
3383
  if (Z.Ka) {
3387
- Z.texSubImage2D(a, b, c, d, e, f, g, m, p);
3384
+ Z.texSubImage2D(a, b, c, d, e, f, g, n, p);
3388
3385
  } else if (p) {
3389
- var l = m - 5120;
3386
+ var l = n - 5120;
3390
3387
  l = 0 == l ? C : 1 == l ? G : 2 == l ? I : 4 == l ? J : 6 == l ? wa : 5 == l || 28922 == l || 28520 == l || 30779 == l || 30782 == l ? K : va;
3391
- Z.texSubImage2D(a, b, c, d, e, f, g, m, l, p >> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
3388
+ Z.texSubImage2D(a, b, c, d, e, f, g, n, l, p >> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
3392
3389
  } else {
3393
- Z.texSubImage2D(a, b, c, d, e, f, g, m, null);
3390
+ Z.texSubImage2D(a, b, c, d, e, f, g, n, null);
3394
3391
  }
3395
3392
  }, glUniform1i:function(a, b) {
3396
3393
  var c = Z, d = c.uniform1i;
@@ -3421,7 +3418,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3421
3418
  }, provokingVertexWEBGL:function(a, b) {
3422
3419
  (a = r[a].J.mb) && a.provokingVertexWEBGL(b);
3423
3420
  }, strftime_l:(a, b, c, d) => Rd(a, b, c, d), upload_image:function(a, b) {
3424
- var c = n.images;
3421
+ var c = m.images;
3425
3422
  c && (b = c.get(b)) && (a = r[a].J, a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, b));
3426
3423
  }};
3427
3424
  (function() {
@@ -3432,7 +3429,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3432
3429
  za = A.__indirect_function_table;
3433
3430
  Ba.unshift(A.__wasm_call_ctors);
3434
3431
  Ea--;
3435
- n.monitorRunDependencies && n.monitorRunDependencies(Ea);
3432
+ m.monitorRunDependencies && m.monitorRunDependencies(Ea);
3436
3433
  if (0 == Ea && (null !== Fa && (clearInterval(Fa), Fa = null), Ga)) {
3437
3434
  var d = Ga;
3438
3435
  Ga = null;
@@ -3442,10 +3439,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3442
3439
  }
3443
3440
  var b = {env:Wd, wasi_snapshot_preview1:Wd,};
3444
3441
  Ea++;
3445
- n.monitorRunDependencies && n.monitorRunDependencies(Ea);
3446
- if (n.instantiateWasm) {
3442
+ m.monitorRunDependencies && m.monitorRunDependencies(Ea);
3443
+ if (m.instantiateWasm) {
3447
3444
  try {
3448
- return n.instantiateWasm(b, a);
3445
+ return m.instantiateWasm(b, a);
3449
3446
  } catch (c) {
3450
3447
  z("Module.instantiateWasm callback failed with error: " + c), ba(c);
3451
3448
  }
@@ -3456,23 +3453,23 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
3456
3453
  return {};
3457
3454
  })();
3458
3455
  var nc = a => (nc = A.free)(a), Ld = a => (Ld = A.malloc)(a);
3459
- n._setWebImage = (a, b, c) => (n._setWebImage = A.setWebImage)(a, b, c);
3460
- var Qa = n._ma_device__on_notification_unlocked = a => (Qa = n._ma_device__on_notification_unlocked = A.ma_device__on_notification_unlocked)(a);
3461
- n._ma_malloc_emscripten = (a, b) => (n._ma_malloc_emscripten = A.ma_malloc_emscripten)(a, b);
3462
- n._ma_free_emscripten = (a, b) => (n._ma_free_emscripten = A.ma_free_emscripten)(a, b);
3463
- var Ra = n._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Ra = n._ma_device_process_pcm_frames_capture__webaudio = A.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Sa = n._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Sa = n._ma_device_process_pcm_frames_playback__webaudio = A.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Vd = () => (Vd = A.__errno_location)(), mc = a => (mc = A.__getTypeName)(a);
3464
- n.__embind_initialize_bindings = () => (n.__embind_initialize_bindings = A._embind_initialize_bindings)();
3465
- n.dynCall_iiji = (a, b, c, d, e) => (n.dynCall_iiji = A.dynCall_iiji)(a, b, c, d, e);
3466
- n.dynCall_iiiji = (a, b, c, d, e, f) => (n.dynCall_iiiji = A.dynCall_iiiji)(a, b, c, d, e, f);
3467
- n.dynCall_iij = (a, b, c, d) => (n.dynCall_iij = A.dynCall_iij)(a, b, c, d);
3468
- n.dynCall_jii = (a, b, c) => (n.dynCall_jii = A.dynCall_jii)(a, b, c);
3469
- n.dynCall_jiji = (a, b, c, d, e) => (n.dynCall_jiji = A.dynCall_jiji)(a, b, c, d, e);
3470
- n.dynCall_viijii = (a, b, c, d, e, f, g) => (n.dynCall_viijii = A.dynCall_viijii)(a, b, c, d, e, f, g);
3471
- n.dynCall_iiiiij = (a, b, c, d, e, f, g) => (n.dynCall_iiiiij = A.dynCall_iiiiij)(a, b, c, d, e, f, g);
3472
- n.dynCall_iiiiijj = (a, b, c, d, e, f, g, m, p) => (n.dynCall_iiiiijj = A.dynCall_iiiiijj)(a, b, c, d, e, f, g, m, p);
3473
- n.dynCall_iiiiiijj = (a, b, c, d, e, f, g, m, p, l) => (n.dynCall_iiiiiijj = A.dynCall_iiiiiijj)(a, b, c, d, e, f, g, m, p, l);
3474
- n.___start_em_js = 492108;
3475
- n.___stop_em_js = 494542;
3456
+ m._setWebImage = (a, b, c) => (m._setWebImage = A.setWebImage)(a, b, c);
3457
+ var Qa = m._ma_device__on_notification_unlocked = a => (Qa = m._ma_device__on_notification_unlocked = A.ma_device__on_notification_unlocked)(a);
3458
+ m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = A.ma_malloc_emscripten)(a, b);
3459
+ m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = A.ma_free_emscripten)(a, b);
3460
+ var Ra = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Ra = m._ma_device_process_pcm_frames_capture__webaudio = A.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Sa = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Sa = m._ma_device_process_pcm_frames_playback__webaudio = A.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Vd = () => (Vd = A.__errno_location)(), mc = a => (mc = A.__getTypeName)(a);
3461
+ m.__embind_initialize_bindings = () => (m.__embind_initialize_bindings = A._embind_initialize_bindings)();
3462
+ m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = A.dynCall_iiji)(a, b, c, d, e);
3463
+ m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = A.dynCall_iiiji)(a, b, c, d, e, f);
3464
+ m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = A.dynCall_iij)(a, b, c, d);
3465
+ m.dynCall_jii = (a, b, c) => (m.dynCall_jii = A.dynCall_jii)(a, b, c);
3466
+ m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = A.dynCall_jiji)(a, b, c, d, e);
3467
+ m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = A.dynCall_viijii)(a, b, c, d, e, f, g);
3468
+ m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = A.dynCall_iiiiij)(a, b, c, d, e, f, g);
3469
+ m.dynCall_iiiiijj = (a, b, c, d, e, f, g, n, p) => (m.dynCall_iiiiijj = A.dynCall_iiiiijj)(a, b, c, d, e, f, g, n, p);
3470
+ m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, n, p, l) => (m.dynCall_iiiiiijj = A.dynCall_iiiiiijj)(a, b, c, d, e, f, g, n, p, l);
3471
+ m.___start_em_js = 492444;
3472
+ m.___stop_em_js = 494878;
3476
3473
  var Xd;
3477
3474
  Ga = function Yd() {
3478
3475
  Xd || Zd();
@@ -3480,17 +3477,17 @@ Ga = function Yd() {
3480
3477
  };
3481
3478
  function Zd() {
3482
3479
  function a() {
3483
- if (!Xd && (Xd = !0, n.calledRun = !0, !ua)) {
3484
- n.noFSInit || Sb || (Sb = !0, Rb(), n.stdin = n.stdin, n.stdout = n.stdout, n.stderr = n.stderr, n.stdin ? Ub("stdin", n.stdin) : Nb("/dev/tty", "/dev/stdin"), n.stdout ? Ub("stdout", null, n.stdout) : Nb("/dev/tty", "/dev/stdout"), n.stderr ? Ub("stderr", null, n.stderr) : Nb("/dev/tty1", "/dev/stderr"), Pb("/dev/stdin", 0), Pb("/dev/stdout", 1), Pb("/dev/stderr", 1));
3480
+ if (!Xd && (Xd = !0, m.calledRun = !0, !ua)) {
3481
+ m.noFSInit || Sb || (Sb = !0, Rb(), m.stdin = m.stdin, m.stdout = m.stdout, m.stderr = m.stderr, m.stdin ? Ub("stdin", m.stdin) : Nb("/dev/tty", "/dev/stdin"), m.stdout ? Ub("stdout", null, m.stdout) : Nb("/dev/tty", "/dev/stdout"), m.stderr ? Ub("stderr", null, m.stderr) : Nb("/dev/tty1", "/dev/stderr"), Pb("/dev/stdin", 0), Pb("/dev/stdout", 1), Pb("/dev/stderr", 1));
3485
3482
  yb = !1;
3486
3483
  Ua(Ba);
3487
- aa(n);
3488
- if (n.onRuntimeInitialized) {
3489
- n.onRuntimeInitialized();
3484
+ aa(m);
3485
+ if (m.onRuntimeInitialized) {
3486
+ m.onRuntimeInitialized();
3490
3487
  }
3491
- if (n.postRun) {
3492
- for ("function" == typeof n.postRun && (n.postRun = [n.postRun]); n.postRun.length;) {
3493
- var b = n.postRun.shift();
3488
+ if (m.postRun) {
3489
+ for ("function" == typeof m.postRun && (m.postRun = [m.postRun]); m.postRun.length;) {
3490
+ var b = m.postRun.shift();
3494
3491
  Ca.unshift(b);
3495
3492
  }
3496
3493
  }
@@ -3498,23 +3495,23 @@ function Zd() {
3498
3495
  }
3499
3496
  }
3500
3497
  if (!(0 < Ea)) {
3501
- if (n.preRun) {
3502
- for ("function" == typeof n.preRun && (n.preRun = [n.preRun]); n.preRun.length;) {
3498
+ if (m.preRun) {
3499
+ for ("function" == typeof m.preRun && (m.preRun = [m.preRun]); m.preRun.length;) {
3503
3500
  Da();
3504
3501
  }
3505
3502
  }
3506
3503
  Ua(Aa);
3507
- 0 < Ea || (n.setStatus ? (n.setStatus("Running..."), setTimeout(function() {
3504
+ 0 < Ea || (m.setStatus ? (m.setStatus("Running..."), setTimeout(function() {
3508
3505
  setTimeout(function() {
3509
- n.setStatus("");
3506
+ m.setStatus("");
3510
3507
  }, 1);
3511
3508
  a();
3512
3509
  }, 1)) : a());
3513
3510
  }
3514
3511
  }
3515
- if (n.preInit) {
3516
- for ("function" == typeof n.preInit && (n.preInit = [n.preInit]); 0 < n.preInit.length;) {
3517
- n.preInit.pop()();
3512
+ if (m.preInit) {
3513
+ for ("function" == typeof m.preInit && (m.preInit = [m.preInit]); 0 < m.preInit.length;) {
3514
+ m.preInit.pop()();
3518
3515
  }
3519
3516
  }
3520
3517
  Zd();
@@ -3532,7 +3529,7 @@ Zd();
3532
3529
  /* 2 */
3533
3530
  /***/ ((module) => {
3534
3531
 
3535
- module.exports = JSON.parse('{"name":"@rive-app/webgl2","version":"2.25.2","description":"Rive\'s webgl2 based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)","Chris Dalton <chris@rive.app> (https://rive.app)"],"license":"MIT","files":["rive.js","rive.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3532
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl2","version":"2.25.4","description":"Rive\'s webgl2 based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)","Chris Dalton <chris@rive.app> (https://rive.app)"],"license":"MIT","files":["rive.js","rive.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3536
3533
 
3537
3534
  /***/ }),
3538
3535
  /* 3 */
@@ -3986,7 +3983,7 @@ function sanitizeUrl(url) {
3986
3983
  /******/
3987
3984
  /************************************************************************/
3988
3985
  var __webpack_exports__ = {};
3989
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
3986
+ // This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
3990
3987
  (() => {
3991
3988
  __webpack_require__.r(__webpack_exports__);
3992
3989
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
@@ -4035,8 +4032,8 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
4035
4032
  });
4036
4033
  };
4037
4034
  var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
4038
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
4039
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
4035
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
4036
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
4040
4037
  function verb(n) { return function (v) { return step([n, v]); }; }
4041
4038
  function step(op) {
4042
4039
  if (f) throw new TypeError("Generator is already executing.");
@@ -5461,6 +5458,9 @@ var Rive = /** @class */ (function () {
5461
5458
  */
5462
5459
  Rive.prototype.setupRiveListeners = function (riveListenerOptions) {
5463
5460
  var _this = this;
5461
+ if (this.eventCleanup) {
5462
+ this.eventCleanup();
5463
+ }
5464
5464
  if (!this.shouldDisableRiveListeners) {
5465
5465
  var activeStateMachines = (this.animator.stateMachines || [])
5466
5466
  .filter(function (sm) { return sm.playing && _this.runtime.hasListeners(sm.instance); })
@@ -5522,9 +5522,9 @@ var Rive = /** @class */ (function () {
5522
5522
  };
5523
5523
  // Initializes runtime with Rive data and preps for playing
5524
5524
  Rive.prototype.initData = function (artboardName, animationNames, stateMachineNames, autoplay) {
5525
- var _a;
5526
5525
  return __awaiter(this, void 0, void 0, function () {
5527
5526
  var error_1, msg;
5527
+ var _a;
5528
5528
  return __generator(this, function (_b) {
5529
5529
  switch (_b.label) {
5530
5530
  case 0: