@rive-app/webgl2 2.31.1 → 2.31.3

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,10 +26,10 @@ var Rive = (() => {
26
26
  return (
27
27
  function(moduleArg = {}) {
28
28
 
29
- var k = moduleArg, aa, ca;
29
+ var k = moduleArg, aa, ba;
30
30
  k.ready = new Promise((a, b) => {
31
31
  aa = a;
32
- ca = b;
32
+ ba = b;
33
33
  });
34
34
  function da() {
35
35
  function a(g) {
@@ -43,8 +43,8 @@ function da() {
43
43
  console.error(m);
44
44
  }
45
45
  });
46
- this.lb();
47
- e && e.Nb();
46
+ this.ob();
47
+ e && e.Qb();
48
48
  }
49
49
  let b = 0, c = 0, d = new Map(), e = null, f = null;
50
50
  this.requestAnimationFrame = function(g) {
@@ -57,20 +57,20 @@ function da() {
57
57
  d.delete(g);
58
58
  b && 0 == d.size && (cancelAnimationFrame(b), b = 0);
59
59
  };
60
- this.Lb = function(g) {
60
+ this.Ob = function(g) {
61
61
  f && (document.body.remove(f), f = null);
62
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(l) {
63
63
  f.innerHTML = "RIVE FPS " + l.toFixed(1);
64
64
  }, document.body.appendChild(f));
65
65
  e = new function() {
66
66
  let l = 0, p = 0;
67
- this.Nb = function() {
67
+ this.Qb = function() {
68
68
  var m = performance.now();
69
69
  p ? (++l, m -= p, 1000 < m && (g(1000 * l / m), l = p = 0)) : (p = m, l = 0);
70
70
  };
71
71
  }();
72
72
  };
73
- this.lb = function() {
73
+ this.ob = function() {
74
74
  };
75
75
  }
76
76
  function ea() {
@@ -108,10 +108,10 @@ k.onRuntimeInitialized = function() {
108
108
  };
109
109
  k.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:e}) {
110
110
  this.__parent.__construct.call(this);
111
- this.Bb = e;
111
+ this.Eb = e;
112
112
  }, loadContents:function(e, f) {
113
113
  e = k.ptrToAsset(e);
114
- return this.Bb(e, f);
114
+ return this.Eb(e, f);
115
115
  },});
116
116
  k.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
117
117
  this.__parent.__construct.call(this);
@@ -136,11 +136,11 @@ k.onRuntimeInitialized = function() {
136
136
  },});
137
137
  k.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
138
138
  this.__parent.__construct.call(this);
139
- this.hb = [];
139
+ this.kb = [];
140
140
  }, addLoader:function(e) {
141
- this.hb.push(e);
141
+ this.kb.push(e);
142
142
  }, loadContents:function(e, f) {
143
- for (let g of this.hb) {
143
+ for (let g of this.kb) {
144
144
  if (g.loadContents(e, f)) {
145
145
  return !0;
146
146
  }
@@ -154,10 +154,10 @@ k.onRuntimeInitialized = function() {
154
154
  };
155
155
  const ha = k.onRuntimeInitialized;
156
156
  k.onRuntimeInitialized = function() {
157
- function a(q) {
158
- this.F = q;
159
- this.Ab = q.getContext("2d");
160
- this.Db = d;
157
+ function a(r) {
158
+ this.F = r;
159
+ this.Db = r.getContext("2d");
160
+ this.Gb = d;
161
161
  this.S = [];
162
162
  this.la = 0;
163
163
  this.clear = function() {
@@ -175,47 +175,47 @@ k.onRuntimeInitialized = function() {
175
175
  this.transform = function(u) {
176
176
  this.S.push(d.transform.bind(d, u));
177
177
  };
178
- this.align = function(u, y, z, A, H = 1.0) {
179
- this.S.push(d.align.bind(d, u, y, z, A, H));
178
+ this.align = function(u, y, z, B, H = 1.0) {
179
+ this.S.push(d.align.bind(d, u, y, z, B, H));
180
180
  };
181
181
  this.flush = function() {
182
182
  console.assert(0 == this.la);
183
183
  e.add(this);
184
- d.Wa || c();
184
+ d.$a || c();
185
185
  };
186
186
  this["delete"] = function() {
187
187
  };
188
188
  }
189
- function b(q, u = !1) {
189
+ function b(r, u = !1) {
190
190
  var y = {alpha:!0, depth:u, stencil:u, antialias:u, premultipliedAlpha:!0, preserveDrawingBuffer:0, powerPreference:"high-performance", failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:!1, explicitSwapControl:0, renderViaOffscreenBackBuffer:0,};
191
- u = q.getContext("webgl2", y);
191
+ u = r.getContext("webgl2", y);
192
192
  if (!u) {
193
193
  return null;
194
194
  }
195
195
  y = ia(u, y);
196
196
  ja(y);
197
- const z = f(q.width, q.height);
198
- z.Ka = y;
199
- z.F = q;
200
- z.La = q.width;
201
- z.Xa = q.height;
197
+ const z = f(r.width, r.height);
198
+ z.Na = y;
199
+ z.F = r;
200
+ z.Oa = r.width;
201
+ z.ab = r.height;
202
202
  z.T = u;
203
- var A = z.delete;
203
+ var B = z.delete;
204
204
  z.delete = function() {
205
- A.call(this);
206
- var H = this.Ka;
207
- r === w[H] && (r = null);
205
+ B.call(this);
206
+ var H = this.Na;
207
+ q === w[H] && (q = null);
208
208
  "object" == typeof JSEvents && JSEvents.Oc(w[H].C.canvas);
209
- w[H] && w[H].C.canvas && (w[H].C.canvas.zb = void 0);
210
- this.Ka = this.F = this.La = this.T = w[H] = null;
209
+ w[H] && w[H].C.canvas && (w[H].C.canvas.Cb = void 0);
210
+ this.Na = this.F = this.Oa = this.T = w[H] = null;
211
211
  };
212
212
  return z;
213
213
  }
214
214
  function c() {
215
215
  if (d) {
216
- var q = d.Cb, u = 0, y = 0, z = 0, A = Array(e.size), H = 0;
217
- for (var I of e) {
218
- I.ga = Math.min(I.F.width, q), I.fa = Math.min(I.F.height, q), I.Ia = I.fa * I.ga, u = Math.max(u, I.ga), y = Math.max(y, I.fa), z += I.Ia, A[H++] = I;
216
+ var r = d.Fb, u = 0, y = 0, z = 0, B = Array(e.size), H = 0;
217
+ for (var J of e) {
218
+ J.ga = Math.min(J.F.width, r), J.fa = Math.min(J.F.height, r), J.La = J.fa * J.ga, u = Math.max(u, J.ga), y = Math.max(y, J.fa), z += J.La, B[H++] = J;
219
219
  }
220
220
  e.clear();
221
221
  if (!(0 >= z)) {
@@ -223,16 +223,16 @@ k.onRuntimeInitialized = function() {
223
223
  for (y = 1 << (0 >= y ? 0 : 32 - Math.clz32(y - 1)); y * u < z;) {
224
224
  u <= y ? u *= 2 : y *= 2;
225
225
  }
226
- u = Math.min(u, q);
227
- u = Math.min(y, q);
228
- A.sort((ba, tb) => tb.Ia - ba.Ia);
229
- z = new k.DynamicRectanizer(q);
230
- for (I = 0; I < A.length;) {
226
+ u = Math.min(u, r);
227
+ u = Math.min(y, r);
228
+ B.sort((ca, tb) => tb.La - ca.La);
229
+ z = new k.DynamicRectanizer(r);
230
+ for (J = 0; J < B.length;) {
231
231
  z.reset(u, y);
232
- for (H = I; H < A.length; ++H) {
233
- var L = A[H], E = z.addRect(L.ga, L.fa);
232
+ for (H = J; H < B.length; ++H) {
233
+ var L = B[H], E = z.addRect(L.ga, L.fa);
234
234
  if (0 > E) {
235
- console.assert(H > I);
235
+ console.assert(H > J);
236
236
  break;
237
237
  }
238
238
  L.ra = E & 65535;
@@ -242,31 +242,31 @@ k.onRuntimeInitialized = function() {
242
242
  E = m.push(z.drawHeight());
243
243
  console.assert(L >= z.drawWidth());
244
244
  console.assert(E >= z.drawHeight());
245
- console.assert(L <= q);
246
- console.assert(E <= q);
245
+ console.assert(L <= r);
246
+ console.assert(E <= r);
247
247
  d.F.width != L && (d.F.width = L);
248
248
  d.F.height != E && (d.F.height = E);
249
249
  d.clear();
250
- for (L = I; L < H; ++L) {
251
- E = A[L];
250
+ for (L = J; L < H; ++L) {
251
+ E = B[L];
252
252
  d.saveClipRect(E.ra, E.sa, E.ra + E.ga, E.sa + E.fa);
253
- let ba = new k.Mat2D();
254
- ba.xx = E.ga / E.F.width;
255
- ba.yy = E.fa / E.F.height;
256
- ba.xy = ba.yx = 0;
257
- ba.tx = E.ra;
258
- ba.ty = E.sa;
259
- d.transform(ba);
253
+ let ca = new k.Mat2D();
254
+ ca.xx = E.ga / E.F.width;
255
+ ca.yy = E.fa / E.F.height;
256
+ ca.xy = ca.yx = 0;
257
+ ca.tx = E.ra;
258
+ ca.ty = E.sa;
259
+ d.transform(ca);
260
260
  for (const tb of E.S) {
261
261
  tb();
262
262
  }
263
263
  d.restoreClipRect();
264
264
  E.S = [];
265
265
  }
266
- for (d.flush(); I < H; ++I) {
267
- L = A[I], E = L.Ab, E.globalCompositeOperation = "copy", E.drawImage(d.F, L.ra, L.sa, L.ga, L.fa, 0, 0, L.F.width, L.F.height);
266
+ for (d.flush(); J < H; ++J) {
267
+ L = B[J], E = L.Db, E.globalCompositeOperation = "copy", E.drawImage(d.F, L.ra, L.sa, L.ga, L.fa, 0, 0, L.F.width, L.F.height);
268
268
  }
269
- I = H;
269
+ J = H;
270
270
  }
271
271
  }
272
272
  }
@@ -274,71 +274,71 @@ k.onRuntimeInitialized = function() {
274
274
  ha && ha();
275
275
  let d = null;
276
276
  const e = new Set(), f = k.makeRenderer;
277
- k.makeRenderer = function(q, u) {
277
+ k.makeRenderer = function(r, u) {
278
278
  if (!d) {
279
279
  function y(z) {
280
- var A = document.createElement("canvas");
281
- A.width = 1;
282
- A.height = 1;
283
- d = b(A, z);
284
- d.Wa = !!d.T.getExtension("WEBGL_shader_pixel_local_storage");
285
- d.Cb = Math.min(d.T.getParameter(d.T.MAX_RENDERBUFFER_SIZE), d.T.getParameter(d.T.MAX_TEXTURE_SIZE));
286
- d.Ja = !d.Wa;
280
+ var B = document.createElement("canvas");
281
+ B.width = 1;
282
+ B.height = 1;
283
+ d = b(B, z);
284
+ d.$a = !!d.T.getExtension("WEBGL_shader_pixel_local_storage");
285
+ d.Fb = Math.min(d.T.getParameter(d.T.MAX_RENDERBUFFER_SIZE), d.T.getParameter(d.T.MAX_TEXTURE_SIZE));
286
+ d.Ma = !d.$a;
287
287
  if (z = d.T.getExtension("WEBGL_debug_renderer_info")) {
288
- A = d.T.getParameter(z.UNMASKED_RENDERER_WEBGL), d.T.getParameter(z.UNMASKED_VENDOR_WEBGL).includes("Google") && A.includes("ANGLE Metal Renderer") && (d.Ja = !1);
288
+ B = d.T.getParameter(z.UNMASKED_RENDERER_WEBGL), d.T.getParameter(z.UNMASKED_VENDOR_WEBGL).includes("Google") && B.includes("ANGLE Metal Renderer") && (d.Ma = !1);
289
289
  }
290
290
  return d;
291
291
  }
292
292
  d = y(!0);
293
- d.Ja || (d = y(!1));
293
+ d.Ma || (d = y(!1));
294
294
  }
295
- return u ? new a(q) : b(q, d.Ja);
295
+ return u ? new a(r) : b(r, d.Ma);
296
296
  };
297
297
  const g = k.Artboard.prototype["delete"];
298
298
  k.Artboard.prototype["delete"] = function() {
299
- this.Eb = !0;
299
+ this.Hb = !0;
300
300
  g.call(this);
301
301
  };
302
302
  const l = k.Artboard.prototype.draw;
303
- k.Artboard.prototype.draw = function(q) {
304
- q.S ? q.S.push(() => {
305
- this.Eb || l.call(this, q.Db);
306
- }) : l.call(this, q);
303
+ k.Artboard.prototype.draw = function(r) {
304
+ r.S ? r.S.push(() => {
305
+ this.Hb || l.call(this, r.Gb);
306
+ }) : l.call(this, r);
307
307
  };
308
308
  const p = new ea(), m = new ea(), t = new da();
309
309
  k.requestAnimationFrame = t.requestAnimationFrame.bind(t);
310
310
  k.cancelAnimationFrame = t.cancelAnimationFrame.bind(t);
311
- k.enableFPSCounter = t.Lb.bind(t);
312
- t.lb = c;
311
+ k.enableFPSCounter = t.Ob.bind(t);
312
+ t.ob = c;
313
313
  k.resolveAnimationFrame = c;
314
314
  let v = k.load;
315
- k.load = function(q, u, y = !0) {
315
+ k.load = function(r, u, y = !0) {
316
316
  const z = new k.FallbackFileAssetLoader();
317
317
  void 0 !== u && z.addLoader(u);
318
318
  y && (u = new k.CDNFileAssetLoader(), z.addLoader(u));
319
- return Promise.resolve(v(q, z));
319
+ return Promise.resolve(v(r, z));
320
320
  };
321
321
  const x = k.WebGL2Renderer.prototype.clear;
322
322
  k.WebGL2Renderer.prototype.clear = function() {
323
- ja(this.Ka);
324
- const q = this.F;
325
- if (this.La != q.width || this.Xa != q.height) {
326
- this.resize(q.width, q.height), this.La = q.width, this.Xa = q.height;
323
+ ja(this.Na);
324
+ const r = this.F;
325
+ if (this.Oa != r.width || this.ab != r.height) {
326
+ this.resize(r.width, r.height), this.Oa = r.width, this.ab = r.height;
327
327
  }
328
328
  x.call(this);
329
329
  };
330
- k.decodeImage = function(q, u) {
331
- q = k.decodeWebGL2Image(q);
332
- u(q);
330
+ k.decodeImage = function(r, u) {
331
+ r = k.decodeWebGL2Image(r);
332
+ u(r);
333
333
  };
334
334
  let n = k.Renderer.prototype.align;
335
- k.Renderer.prototype.align = function(q, u, y, z, A = 1.0) {
336
- n.call(this, q, u, y, z, A);
335
+ k.Renderer.prototype.align = function(r, u, y, z, B = 1.0) {
336
+ n.call(this, r, u, y, z, B);
337
337
  };
338
338
  };
339
- var ka = Object.assign({}, k), la = "./this.program", ma = "object" == typeof window, na = "function" == typeof importScripts, B = "", oa, pa;
339
+ var ka = Object.assign({}, k), la = "./this.program", ma = "object" == typeof window, na = "function" == typeof importScripts, A = "", oa, pa;
340
340
  if (ma || na) {
341
- na ? B = self.location.href : "undefined" != typeof document && document.currentScript && (B = document.currentScript.src), _scriptDir && (B = _scriptDir), 0 !== B.indexOf("blob:") ? B = B.substr(0, B.replace(/[?#].*/, "").lastIndexOf("/") + 1) : B = "", na && (pa = a => {
341
+ na ? A = self.location.href : "undefined" != typeof document && document.currentScript && (A = document.currentScript.src), _scriptDir && (A = _scriptDir), 0 !== A.indexOf("blob:") ? A = A.substr(0, A.replace(/[?#].*/, "").lastIndexOf("/") + 1) : A = "", na && (pa = a => {
342
342
  var b = new XMLHttpRequest();
343
343
  b.open("GET", a, !1);
344
344
  b.responseType = "arraybuffer";
@@ -363,12 +363,12 @@ var sa;
363
363
  k.wasmBinary && (sa = k.wasmBinary);
364
364
  var noExitRuntime = k.noExitRuntime || !0;
365
365
  "object" != typeof WebAssembly && ta("no native wasm support detected");
366
- var ua, C, va = !1, D, F, G, wa, J, K, xa, ya;
366
+ var ua, C, va = !1, D, F, G, wa, I, K, xa, ya;
367
367
  function za() {
368
368
  var a = ua.buffer;
369
369
  k.HEAP8 = D = new Int8Array(a);
370
370
  k.HEAP16 = G = new Int16Array(a);
371
- k.HEAP32 = J = new Int32Array(a);
371
+ k.HEAP32 = I = new Int32Array(a);
372
372
  k.HEAPU8 = F = new Uint8Array(a);
373
373
  k.HEAPU16 = wa = new Uint16Array(a);
374
374
  k.HEAPU32 = K = new Uint32Array(a);
@@ -389,7 +389,7 @@ function ta(a) {
389
389
  ra(a);
390
390
  va = !0;
391
391
  a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
392
- ca(a);
392
+ ba(a);
393
393
  throw a;
394
394
  }
395
395
  function Ia(a) {
@@ -399,7 +399,7 @@ var Ja;
399
399
  Ja = "webgl2_advanced.wasm";
400
400
  if (!Ia(Ja)) {
401
401
  var Ka = Ja;
402
- Ja = k.locateFile ? k.locateFile(Ka, B) : B + Ka;
402
+ Ja = k.locateFile ? k.locateFile(Ka, A) : A + Ka;
403
403
  }
404
404
  function La(a) {
405
405
  if (a == Ja && sa) {
@@ -442,22 +442,22 @@ function Oa(a, b) {
442
442
  return Na(c, a, b);
443
443
  }));
444
444
  }
445
- var Pa, Qa, Ua = {529271:(a, b, c, d, e) => {
445
+ var Pa, Qa, Ua = {534199:(a, b, c, d, e) => {
446
446
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
447
447
  return 0;
448
448
  }
449
449
  if ("undefined" === typeof window.h) {
450
- window.h = {Da:0};
450
+ window.h = {Ga:0};
451
451
  window.h.I = {};
452
- window.h.I.Ba = a;
452
+ window.h.I.Ea = a;
453
453
  window.h.I.capture = b;
454
- window.h.I.Na = c;
454
+ window.h.I.Ra = c;
455
455
  window.h.ja = {};
456
456
  window.h.ja.stopped = d;
457
- window.h.ja.ub = e;
457
+ window.h.ja.xb = e;
458
458
  let f = window.h;
459
459
  f.D = [];
460
- f.oc = function(g) {
460
+ f.rc = function(g) {
461
461
  for (var l = 0; l < f.D.length; ++l) {
462
462
  if (null == f.D[l]) {
463
463
  return f.D[l] = g, l;
@@ -466,7 +466,7 @@ var Pa, Qa, Ua = {529271:(a, b, c, d, e) => {
466
466
  f.D.push(g);
467
467
  return f.D.length - 1;
468
468
  };
469
- f.yb = function(g) {
469
+ f.Bb = function(g) {
470
470
  for (f.D[g] = null; 0 < f.D.length;) {
471
471
  if (null == f.D[f.D.length - 1]) {
472
472
  f.D.pop();
@@ -478,38 +478,38 @@ var Pa, Qa, Ua = {529271:(a, b, c, d, e) => {
478
478
  f.Qc = function(g) {
479
479
  for (var l = 0; l < f.D.length; ++l) {
480
480
  if (f.D[l] == g) {
481
- return f.yb(l);
481
+ return f.Bb(l);
482
482
  }
483
483
  }
484
484
  };
485
485
  f.va = function(g) {
486
486
  return f.D[g];
487
487
  };
488
- f.Va = ["touchend", "click"];
488
+ f.Za = ["touchend", "click"];
489
489
  f.unlock = function() {
490
490
  for (var g = 0; g < f.D.length; ++g) {
491
491
  var l = f.D[g];
492
- null != l && null != l.J && l.state === f.ja.ub && l.J.resume().then(() => {
493
- Ra(l.mb);
492
+ null != l && null != l.J && l.state === f.ja.xb && l.J.resume().then(() => {
493
+ Ra(l.pb);
494
494
  }, p => {
495
495
  console.error("Failed to resume audiocontext", p);
496
496
  });
497
497
  }
498
- f.Va.map(function(p) {
498
+ f.Za.map(function(p) {
499
499
  document.removeEventListener(p, f.unlock, !0);
500
500
  });
501
501
  };
502
- f.Va.map(function(g) {
502
+ f.Za.map(function(g) {
503
503
  document.addEventListener(g, f.unlock, !0);
504
504
  });
505
505
  }
506
- window.h.Da += 1;
506
+ window.h.Ga += 1;
507
507
  return 1;
508
- }, 531449:() => {
509
- "undefined" !== typeof window.h && (window.h.Va.map(function(a) {
508
+ }, 536377:() => {
509
+ "undefined" !== typeof window.h && (window.h.Za.map(function(a) {
510
510
  document.removeEventListener(a, window.h.unlock, !0);
511
- }), --window.h.Da, 0 === window.h.Da && delete window.h);
512
- }, 531753:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 531857:() => {
511
+ }), --window.h.Ga, 0 === window.h.Ga && delete window.h);
512
+ }, 536681:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 536785:() => {
513
513
  try {
514
514
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
515
515
  a.close();
@@ -517,23 +517,23 @@ var Pa, Qa, Ua = {529271:(a, b, c, d, e) => {
517
517
  } catch (c) {
518
518
  return 0;
519
519
  }
520
- }, 532028:(a, b, c, d, e, f) => {
520
+ }, 536956:(a, b, c, d, e, f) => {
521
521
  if ("undefined" === typeof window.h) {
522
522
  return -1;
523
523
  }
524
524
  var g = {}, l = {};
525
- a == window.h.I.Ba && 0 != c && (l.sampleRate = c);
525
+ a == window.h.I.Ea && 0 != c && (l.sampleRate = c);
526
526
  g.J = new (window.AudioContext || window.webkitAudioContext)(l);
527
527
  g.J.suspend();
528
528
  g.state = window.h.ja.stopped;
529
529
  c = 0;
530
- a != window.h.I.Ba && (c = b);
530
+ a != window.h.I.Ea && (c = b);
531
531
  g.Z = g.J.createScriptProcessor(d, c, b);
532
532
  g.Z.onaudioprocess = function(p) {
533
533
  if (null == g.wa || 0 == g.wa.length) {
534
534
  g.wa = new Float32Array(xa.buffer, e, d * b);
535
535
  }
536
- if (a == window.h.I.capture || a == window.h.I.Na) {
536
+ if (a == window.h.I.capture || a == window.h.I.Ra) {
537
537
  for (var m = 0; m < b; m += 1) {
538
538
  for (var t = p.inputBuffer.getChannelData(m), v = g.wa, x = 0; x < d; x += 1) {
539
539
  v[x * b + m] = t[x];
@@ -541,7 +541,7 @@ var Pa, Qa, Ua = {529271:(a, b, c, d, e) => {
541
541
  }
542
542
  Sa(f, d, e);
543
543
  }
544
- if (a == window.h.I.Ba || a == window.h.I.Na) {
544
+ if (a == window.h.I.Ea || a == window.h.I.Ra) {
545
545
  for (Ta(f, d, e), m = 0; m < p.outputBuffer.numberOfChannels; ++m) {
546
546
  for (t = p.outputBuffer.getChannelData(m), v = g.wa, x = 0; x < d; x += 1) {
547
547
  t[x] = v[x * b + m];
@@ -553,31 +553,31 @@ var Pa, Qa, Ua = {529271:(a, b, c, d, e) => {
553
553
  }
554
554
  }
555
555
  };
556
- a != window.h.I.capture && a != window.h.I.Na || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(p) {
557
- g.Ea = g.J.createMediaStreamSource(p);
558
- g.Ea.connect(g.Z);
556
+ a != window.h.I.capture && a != window.h.I.Ra || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(p) {
557
+ g.Ha = g.J.createMediaStreamSource(p);
558
+ g.Ha.connect(g.Z);
559
559
  g.Z.connect(g.J.destination);
560
560
  }).catch(function(p) {
561
561
  console.log("Failed to get user media: " + p);
562
562
  });
563
- a == window.h.I.Ba && g.Z.connect(g.J.destination);
564
- g.mb = f;
565
- return window.h.oc(g);
566
- }, 534905:a => window.h.va(a).J.sampleRate, 534978:a => {
563
+ a == window.h.I.Ea && g.Z.connect(g.J.destination);
564
+ g.pb = f;
565
+ return window.h.rc(g);
566
+ }, 539833:a => window.h.va(a).J.sampleRate, 539906:a => {
567
567
  a = window.h.va(a);
568
568
  void 0 !== a.Z && (a.Z.onaudioprocess = function() {
569
569
  }, a.Z.disconnect(), a.Z = void 0);
570
- void 0 !== a.Ea && (a.Ea.disconnect(), a.Ea = void 0);
570
+ void 0 !== a.Ha && (a.Ha.disconnect(), a.Ha = void 0);
571
571
  a.J.close();
572
572
  a.J = void 0;
573
- a.mb = void 0;
574
- }, 535378:a => {
575
- window.h.yb(a);
576
- }, 535428:a => {
573
+ a.pb = void 0;
574
+ }, 540306:a => {
575
+ window.h.Bb(a);
576
+ }, 540356:a => {
577
577
  a = window.h.va(a);
578
578
  a.J.resume();
579
- a.state = window.h.ja.ub;
580
- }, 535567:a => {
579
+ a.state = window.h.ja.xb;
580
+ }, 540495:a => {
581
581
  a = window.h.va(a);
582
582
  a.J.suspend();
583
583
  a.state = window.h.ja.stopped;
@@ -725,7 +725,7 @@ function ib(a, b) {
725
725
  jb(a, kb);
726
726
  }
727
727
  var kb = {open:function(a) {
728
- var b = hb[a.node.Ca];
728
+ var b = hb[a.node.Fa];
729
729
  if (!b) {
730
730
  throw new N(43);
731
731
  }
@@ -736,12 +736,12 @@ var kb = {open:function(a) {
736
736
  }, ua:function(a) {
737
737
  a.s.V.ua(a.s);
738
738
  }, read:function(a, b, c, d) {
739
- if (!a.s || !a.s.V.gb) {
739
+ if (!a.s || !a.s.V.jb) {
740
740
  throw new N(60);
741
741
  }
742
742
  for (var e = 0, f = 0; f < d; f++) {
743
743
  try {
744
- var g = a.s.V.gb(a.s);
744
+ var g = a.s.V.jb(a.s);
745
745
  } catch (l) {
746
746
  throw new N(29);
747
747
  }
@@ -757,19 +757,19 @@ var kb = {open:function(a) {
757
757
  e && (a.node.timestamp = Date.now());
758
758
  return e;
759
759
  }, write:function(a, b, c, d) {
760
- if (!a.s || !a.s.V.Qa) {
760
+ if (!a.s || !a.s.V.Ua) {
761
761
  throw new N(60);
762
762
  }
763
763
  try {
764
764
  for (var e = 0; e < d; e++) {
765
- a.s.V.Qa(a.s, b[c + e]);
765
+ a.s.V.Ua(a.s, b[c + e]);
766
766
  }
767
767
  } catch (f) {
768
768
  throw new N(29);
769
769
  }
770
770
  d && (a.node.timestamp = Date.now());
771
771
  return e;
772
- },}, lb = {gb:function() {
772
+ },}, lb = {jb:function() {
773
773
  a: {
774
774
  if (!db.length) {
775
775
  var a = null;
@@ -783,17 +783,17 @@ var kb = {open:function(a) {
783
783
  a = db.shift();
784
784
  }
785
785
  return a;
786
- }, Qa:function(a, b) {
786
+ }, Ua:function(a, b) {
787
787
  null === b || 10 === b ? (qa(M(a.G, 0)), a.G = []) : 0 != b && a.G.push(b);
788
788
  }, ua:function(a) {
789
789
  a.G && 0 < a.G.length && (qa(M(a.G, 0)), a.G = []);
790
- }, Xb:function() {
791
- return {uc:25856, wc:5, tc:191, vc:35387, sc:[3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,]};
792
- }, Yb:function() {
790
+ }, $b:function() {
791
+ return {xc:25856, zc:5, wc:191, yc:35387, vc:[3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,]};
792
+ }, ac:function() {
793
793
  return 0;
794
- }, Zb:function() {
794
+ }, bc:function() {
795
795
  return [24, 80];
796
- },}, mb = {Qa:function(a, b) {
796
+ },}, mb = {Ua:function(a, b) {
797
797
  null === b || 10 === b ? (ra(M(a.G, 0)), a.G = []) : 0 != b && a.G.push(b);
798
798
  }, ua:function(a) {
799
799
  a.G && 0 < a.G.length && (ra(M(a.G, 0)), a.G = []);
@@ -808,29 +808,29 @@ var O = {O:null, U() {
808
808
  if (24576 === (c & 61440) || 4096 === (c & 61440)) {
809
809
  throw new N(63);
810
810
  }
811
- O.O || (O.O = {dir:{node:{Y:O.l.Y, P:O.l.P, ma:O.l.ma, za:O.l.za, sb:O.l.sb, xb:O.l.xb, tb:O.l.tb, qb:O.l.qb, Fa:O.l.Fa}, stream:{ba:O.m.ba}}, file:{node:{Y:O.l.Y, P:O.l.P}, stream:{ba:O.m.ba, read:O.m.read, write:O.m.write, ta:O.m.ta, ib:O.m.ib, kb:O.m.kb}}, link:{node:{Y:O.l.Y, P:O.l.P, na:O.l.na}, stream:{}}, Ya:{node:{Y:O.l.Y, P:O.l.P}, stream:ob}});
811
+ O.O || (O.O = {dir:{node:{Y:O.l.Y, P:O.l.P, ma:O.l.ma, Ca:O.l.Ca, vb:O.l.vb, Ab:O.l.Ab, wb:O.l.wb, tb:O.l.tb, Ia:O.l.Ia}, stream:{ba:O.m.ba}}, file:{node:{Y:O.l.Y, P:O.l.P}, stream:{ba:O.m.ba, read:O.m.read, write:O.m.write, ta:O.m.ta, lb:O.m.lb, nb:O.m.nb}}, link:{node:{Y:O.l.Y, P:O.l.P, na:O.l.na}, stream:{}}, bb:{node:{Y:O.l.Y, P:O.l.P}, stream:ob}});
812
812
  c = pb(a, b, c, d);
813
- 16384 === (c.mode & 61440) ? (c.l = O.O.dir.node, c.m = O.O.dir.stream, c.j = {}) : 32768 === (c.mode & 61440) ? (c.l = O.O.file.node, c.m = O.O.file.stream, c.v = 0, c.j = null) : 40960 === (c.mode & 61440) ? (c.l = O.O.link.node, c.m = O.O.link.stream) : 8192 === (c.mode & 61440) && (c.l = O.O.Ya.node, c.m = O.O.Ya.stream);
813
+ 16384 === (c.mode & 61440) ? (c.l = O.O.dir.node, c.m = O.O.dir.stream, c.j = {}) : 32768 === (c.mode & 61440) ? (c.l = O.O.file.node, c.m = O.O.file.stream, c.v = 0, c.j = null) : 40960 === (c.mode & 61440) ? (c.l = O.O.link.node, c.m = O.O.link.stream) : 8192 === (c.mode & 61440) && (c.l = O.O.bb.node, c.m = O.O.bb.stream);
814
814
  c.timestamp = Date.now();
815
815
  a && (a.j[b] = c, a.timestamp = c.timestamp);
816
816
  return c;
817
- }, Bc(a) {
817
+ }, Ec(a) {
818
818
  return a.j ? a.j.subarray ? a.j.subarray(0, a.v) : new Uint8Array(a.j) : new Uint8Array(0);
819
819
  }, l:{Y(a) {
820
820
  var b = {};
821
- b.zc = 8192 === (a.mode & 61440) ? a.id : 1;
822
- b.Dc = a.id;
821
+ b.Cc = 8192 === (a.mode & 61440) ? a.id : 1;
822
+ b.Gc = a.id;
823
823
  b.mode = a.mode;
824
824
  b.Lc = 1;
825
825
  b.uid = 0;
826
- b.Cc = 0;
827
- b.Ca = a.Ca;
826
+ b.Fc = 0;
827
+ b.Fa = a.Fa;
828
828
  16384 === (a.mode & 61440) ? b.size = 4096 : 32768 === (a.mode & 61440) ? b.size = a.v : 40960 === (a.mode & 61440) ? b.size = a.link.length : b.size = 0;
829
- b.qc = new Date(a.timestamp);
829
+ b.tc = new Date(a.timestamp);
830
830
  b.Jc = new Date(a.timestamp);
831
- b.xc = new Date(a.timestamp);
832
- b.Fb = 4096;
833
- b.rc = Math.ceil(b.size / b.Fb);
831
+ b.Ac = new Date(a.timestamp);
832
+ b.Ib = 4096;
833
+ b.uc = Math.ceil(b.size / b.Ib);
834
834
  return b;
835
835
  }, P(a, b) {
836
836
  void 0 !== b.mode && (a.mode = b.mode);
@@ -847,9 +847,9 @@ var O = {O:null, U() {
847
847
  }
848
848
  }, ma() {
849
849
  throw qb[44];
850
- }, za(a, b, c, d) {
850
+ }, Ca(a, b, c, d) {
851
851
  return O.createNode(a, b, c, d);
852
- }, sb(a, b, c) {
852
+ }, vb(a, b, c) {
853
853
  if (16384 === (a.mode & 61440)) {
854
854
  try {
855
855
  var d = rb(b, c);
@@ -867,23 +867,23 @@ var O = {O:null, U() {
867
867
  b.j[c] = a;
868
868
  b.timestamp = a.parent.timestamp;
869
869
  a.parent = b;
870
- }, xb(a, b) {
870
+ }, Ab(a, b) {
871
871
  delete a.j[b];
872
872
  a.timestamp = Date.now();
873
- }, tb(a, b) {
873
+ }, wb(a, b) {
874
874
  var c = rb(a, b), d;
875
875
  for (d in c.j) {
876
876
  throw new N(55);
877
877
  }
878
878
  delete a.j[b];
879
879
  a.timestamp = Date.now();
880
- }, qb(a) {
880
+ }, tb(a) {
881
881
  var b = [".", ".."], c;
882
882
  for (c in a.j) {
883
883
  a.j.hasOwnProperty(c) && b.push(c);
884
884
  }
885
885
  return b;
886
- }, Fa(a, b, c) {
886
+ }, Ia(a, b, c) {
887
887
  a = O.createNode(a, b, 41471, 0);
888
888
  a.link = c;
889
889
  return a;
@@ -943,7 +943,7 @@ var O = {O:null, U() {
943
943
  }, ta(a, b, c) {
944
944
  nb(a.node, b + c);
945
945
  a.node.v = Math.max(a.node.v, b + c);
946
- }, ib(a, b, c, d, e) {
946
+ }, lb(a, b, c, d, e) {
947
947
  if (32768 !== (a.node.mode & 61440)) {
948
948
  throw new N(43);
949
949
  }
@@ -963,7 +963,7 @@ var O = {O:null, U() {
963
963
  c = !1, b = a.byteOffset;
964
964
  }
965
965
  return {o:b, M:c};
966
- }, kb(a, b, c, d) {
966
+ }, nb(a, b, c, d) {
967
967
  O.m.write(a, b, 0, d, c, !1);
968
968
  return 0;
969
969
  },},};
@@ -978,8 +978,8 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
978
978
  if (!a) {
979
979
  return {path:"", node:null};
980
980
  }
981
- b = Object.assign({eb:!0, Sa:0}, b);
982
- if (8 < b.Sa) {
981
+ b = Object.assign({hb:!0, Wa:0}, b);
982
+ if (8 < b.Wa) {
983
983
  throw new N(32);
984
984
  }
985
985
  a = a.split("/").filter(g => !!g);
@@ -990,10 +990,10 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
990
990
  }
991
991
  c = rb(c, a[e]);
992
992
  d = Xa(d + "/" + a[e]);
993
- c.Aa && (!f || f && b.eb) && (c = c.Aa.root);
994
- if (!f || b.cb) {
993
+ c.Da && (!f || f && b.hb) && (c = c.Da.root);
994
+ if (!f || b.gb) {
995
995
  for (f = 0; 40960 === (c.mode & 61440);) {
996
- if (c = Ab(d), d = bb(Ya(d), c), c = Bb(d, {Sa:b.Sa + 1}).node, 40 < f++) {
996
+ if (c = Ab(d), d = bb(Ya(d), c), c = Bb(d, {Wa:b.Wa + 1}).node, 40 < f++) {
997
997
  throw new N(32);
998
998
  }
999
999
  }
@@ -1003,7 +1003,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
1003
1003
  }, Cb = a => {
1004
1004
  for (var b;;) {
1005
1005
  if (a === a.parent) {
1006
- return a = a.U.jb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
1006
+ return a = a.U.mb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
1007
1007
  }
1008
1008
  b = b ? `${a.name}/${b}` : a.name;
1009
1009
  a = a.parent;
@@ -1018,7 +1018,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
1018
1018
  if (c = (c = Eb(a, "x")) ? c : a.l.ma ? 0 : 2) {
1019
1019
  throw new N(c, a);
1020
1020
  }
1021
- for (c = yb[Db(a.id, b)]; c; c = c.bc) {
1021
+ for (c = yb[Db(a.id, b)]; c; c = c.ec) {
1022
1022
  var d = c.name;
1023
1023
  if (c.parent.id === a.id && d === b) {
1024
1024
  return c;
@@ -1028,7 +1028,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
1028
1028
  }, pb = (a, b, c, d) => {
1029
1029
  a = new Fb(a, b, c, d);
1030
1030
  b = Db(a.parent.id, a.name);
1031
- a.bc = yb[b];
1031
+ a.ec = yb[b];
1032
1032
  return yb[b] = a;
1033
1033
  }, Gb = a => {
1034
1034
  var b = ["r", "w", "rw"][a & 3];
@@ -1086,7 +1086,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
1086
1086
  a.X = b;
1087
1087
  return wb[b] = a;
1088
1088
  }, ob = {open:a => {
1089
- a.m = vb[a.node.Ca].m;
1089
+ a.m = vb[a.node.Fa].m;
1090
1090
  a.m.open && a.m.open(a);
1091
1091
  }, ba:() => {
1092
1092
  throw new N(70);
@@ -1098,21 +1098,21 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
1098
1098
  throw new N(10);
1099
1099
  }
1100
1100
  if (!c && !d) {
1101
- var e = Bb(b, {eb:!1});
1101
+ var e = Bb(b, {hb:!1});
1102
1102
  b = e.path;
1103
1103
  e = e.node;
1104
- if (e.Aa) {
1104
+ if (e.Da) {
1105
1105
  throw new N(10);
1106
1106
  }
1107
1107
  if (16384 !== (e.mode & 61440)) {
1108
1108
  throw new N(54);
1109
1109
  }
1110
1110
  }
1111
- b = {type:a, Nc:{}, jb:b, ac:[]};
1111
+ b = {type:a, Nc:{}, mb:b, dc:[]};
1112
1112
  a = a.U(b);
1113
1113
  a.U = b;
1114
1114
  b.root = a;
1115
- c ? ub = a : e && (e.Aa = b, e.U && e.U.ac.push(b));
1115
+ c ? ub = a : e && (e.Da = b, e.U && e.U.dc.push(b));
1116
1116
  }, P = (a, b, c) => {
1117
1117
  var d = Bb(a, {parent:!0}).node;
1118
1118
  a = Za(a);
@@ -1123,10 +1123,10 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
1123
1123
  if (e) {
1124
1124
  throw new N(e);
1125
1125
  }
1126
- if (!d.l.za) {
1126
+ if (!d.l.Ca) {
1127
1127
  throw new N(63);
1128
1128
  }
1129
- return d.l.za(d, a, b, c);
1129
+ return d.l.Ca(d, a, b, c);
1130
1130
  }, Nb = (a, b, c) => {
1131
1131
  "undefined" == typeof c && (c = b, b = 438);
1132
1132
  P(a, b | 8192, c);
@@ -1143,10 +1143,10 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
1143
1143
  if (d) {
1144
1144
  throw new N(d);
1145
1145
  }
1146
- if (!c.l.Fa) {
1146
+ if (!c.l.Ia) {
1147
1147
  throw new N(63);
1148
1148
  }
1149
- c.l.Fa(c, b, a);
1149
+ c.l.Ia(c, b, a);
1150
1150
  }, Ab = a => {
1151
1151
  a = Bb(a).node;
1152
1152
  if (!a) {
@@ -1173,7 +1173,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
1173
1173
  } else {
1174
1174
  a = Xa(a);
1175
1175
  try {
1176
- e = Bb(a, {cb:!(b & 131072)}).node;
1176
+ e = Bb(a, {gb:!(b & 131072)}).node;
1177
1177
  } catch (f) {
1178
1178
  }
1179
1179
  }
@@ -1199,7 +1199,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
1199
1199
  }
1200
1200
  if (b & 512 && !d) {
1201
1201
  c = e;
1202
- c = "string" == typeof c ? Bb(c, {cb:!0}).node : c;
1202
+ c = "string" == typeof c ? Bb(c, {gb:!0}).node : c;
1203
1203
  if (!c.l.P) {
1204
1204
  throw new N(63);
1205
1205
  }
@@ -1215,7 +1215,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
1215
1215
  c.l.P(c, {size:0, timestamp:Date.now()});
1216
1216
  }
1217
1217
  b &= -131713;
1218
- e = Lb({node:e, path:Cb(e), flags:b, seekable:!0, position:0, m:e.m, pc:[], error:!1});
1218
+ e = Lb({node:e, path:Cb(e), flags:b, seekable:!0, position:0, m:e.m, sc:[], error:!1});
1219
1219
  e.m.open && e.m.open(e);
1220
1220
  !k.logReadFiles || b & 1 || (Pb || (Pb = {}), a in Pb || (Pb[a] = 1));
1221
1221
  return e;
@@ -1230,15 +1230,15 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
1230
1230
  throw new N(28);
1231
1231
  }
1232
1232
  a.position = a.m.ba(a, b, c);
1233
- a.pc = [];
1233
+ a.sc = [];
1234
1234
  }, Sb = () => {
1235
1235
  N || (N = function(a, b) {
1236
1236
  this.name = "ErrnoError";
1237
1237
  this.node = b;
1238
- this.ec = function(c) {
1238
+ this.ic = function(c) {
1239
1239
  this.aa = c;
1240
1240
  };
1241
- this.ec(a);
1241
+ this.ic(a);
1242
1242
  this.message = "FS error";
1243
1243
  }, N.prototype = Error(), N.prototype.constructor = N, [44].forEach(a => {
1244
1244
  qb[a] = new N(a);
@@ -1286,7 +1286,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
1286
1286
  }, Ub, Wb = {}, Kb, Pb, Xb = void 0;
1287
1287
  function Yb() {
1288
1288
  Xb += 4;
1289
- return J[Xb - 4 >> 2];
1289
+ return I[Xb - 4 >> 2];
1290
1290
  }
1291
1291
  function Zb(a) {
1292
1292
  if (void 0 === a) {
@@ -1304,7 +1304,7 @@ function $b(a, b) {
1304
1304
  }
1305
1305
  function ac() {
1306
1306
  this.M = [void 0];
1307
- this.fb = [];
1307
+ this.ib = [];
1308
1308
  }
1309
1309
  var Q = new ac(), bc = void 0;
1310
1310
  function R(a) {
@@ -1324,7 +1324,7 @@ var S = a => {
1324
1324
  case !1:
1325
1325
  return 4;
1326
1326
  default:
1327
- return Q.ta({rb:1, value:a});
1327
+ return Q.ta({ub:1, value:a});
1328
1328
  }
1329
1329
  };
1330
1330
  function cc(a) {
@@ -1390,7 +1390,7 @@ function sc(a, b, c) {
1390
1390
  return null;
1391
1391
  }
1392
1392
  a = sc(a, b, c.A);
1393
- return null === a ? null : c.Jb(a);
1393
+ return null === a ? null : c.Mb(a);
1394
1394
  }
1395
1395
  var tc = {};
1396
1396
  function uc(a, b) {
@@ -1432,7 +1432,7 @@ function Ac(a) {
1432
1432
  }
1433
1433
  }
1434
1434
  function Bc(a) {
1435
- return this.fromWireType(J[a >> 2]);
1435
+ return this.fromWireType(I[a >> 2]);
1436
1436
  }
1437
1437
  var Cc = {}, Dc = {};
1438
1438
  function V(a, b, c) {
@@ -1440,7 +1440,7 @@ function V(a, b, c) {
1440
1440
  l = c(l);
1441
1441
  l.length !== a.length && wc("Mismatched type converter count");
1442
1442
  for (var p = 0; p < a.length; ++p) {
1443
- W(a[p], l[p]);
1443
+ Ec(a[p], l[p]);
1444
1444
  }
1445
1445
  }
1446
1446
  a.forEach(function(l) {
@@ -1456,7 +1456,7 @@ function V(a, b, c) {
1456
1456
  });
1457
1457
  0 === f.length && d(e);
1458
1458
  }
1459
- function Ec(a) {
1459
+ function Fc(a) {
1460
1460
  switch(a) {
1461
1461
  case 1:
1462
1462
  return 0;
@@ -1470,11 +1470,11 @@ function Ec(a) {
1470
1470
  throw new TypeError(`Unknown type size: ${a}`);
1471
1471
  }
1472
1472
  }
1473
- function Fc(a, b, c = {}) {
1473
+ function Gc(a, b, c = {}) {
1474
1474
  var d = b.name;
1475
1475
  a || R(`type "${d}" must have a positive integer typeid pointer`);
1476
1476
  if (kc.hasOwnProperty(a)) {
1477
- if (c.Ub) {
1477
+ if (c.Xb) {
1478
1478
  return;
1479
1479
  }
1480
1480
  R(`Cannot register type '${d}' twice`);
@@ -1483,18 +1483,18 @@ function Fc(a, b, c = {}) {
1483
1483
  delete Dc[a];
1484
1484
  Cc.hasOwnProperty(a) && (b = Cc[a], delete Cc[a], b.forEach(e => e()));
1485
1485
  }
1486
- function W(a, b, c = {}) {
1486
+ function Ec(a, b, c = {}) {
1487
1487
  if (!("argPackAdvance" in b)) {
1488
1488
  throw new TypeError("registerType registeredInstance requires argPackAdvance");
1489
1489
  }
1490
- Fc(a, b, c);
1490
+ Gc(a, b, c);
1491
1491
  }
1492
- function Gc(a) {
1492
+ function Hc(a) {
1493
1493
  R(a.g.u.i.name + " instance already deleted");
1494
1494
  }
1495
- function Hc() {
1495
+ function Ic() {
1496
1496
  }
1497
- function Ic(a, b, c) {
1497
+ function Jc(a, b, c) {
1498
1498
  if (void 0 === a[b].B) {
1499
1499
  var d = a[b];
1500
1500
  a[b] = function() {
@@ -1505,50 +1505,50 @@ function Ic(a, b, c) {
1505
1505
  a[b].B[d.ha] = d;
1506
1506
  }
1507
1507
  }
1508
- function Jc(a, b, c) {
1509
- k.hasOwnProperty(a) ? ((void 0 === c || void 0 !== k[a].B && void 0 !== k[a].B[c]) && R(`Cannot register public name '${a}' twice`), Ic(k, a, a), k.hasOwnProperty(c) && R(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), k[a].B[c] = b) : (k[a] = b, void 0 !== c && (k[a].Mc = c));
1508
+ function Kc(a, b, c) {
1509
+ k.hasOwnProperty(a) ? ((void 0 === c || void 0 !== k[a].B && void 0 !== k[a].B[c]) && R(`Cannot register public name '${a}' twice`), Jc(k, a, a), k.hasOwnProperty(c) && R(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), k[a].B[c] = b) : (k[a] = b, void 0 !== c && (k[a].Mc = c));
1510
1510
  }
1511
- function Kc(a, b, c, d, e, f, g, l) {
1511
+ function Lc(a, b, c, d, e, f, g, l) {
1512
1512
  this.name = a;
1513
1513
  this.constructor = b;
1514
1514
  this.N = c;
1515
1515
  this.W = d;
1516
1516
  this.A = e;
1517
- this.Ob = f;
1517
+ this.Rb = f;
1518
1518
  this.pa = g;
1519
- this.Jb = l;
1520
- this.nb = [];
1519
+ this.Mb = l;
1520
+ this.qb = [];
1521
1521
  }
1522
- function Lc(a, b, c) {
1522
+ function Mc(a, b, c) {
1523
1523
  for (; b !== c;) {
1524
1524
  b.pa || R(`Expected null or instance of ${c.name}, got an instance of ${b.name}`), a = b.pa(a), b = b.A;
1525
1525
  }
1526
1526
  return a;
1527
1527
  }
1528
- function Mc(a, b) {
1528
+ function Nc(a, b) {
1529
1529
  if (null === b) {
1530
- return this.Pa && R(`null is not a valid ${this.name}`), 0;
1530
+ return this.Ta && R(`null is not a valid ${this.name}`), 0;
1531
1531
  }
1532
- b.g || R(`Cannot pass "${Nc(b)}" as a ${this.name}`);
1532
+ b.g || R(`Cannot pass "${Oc(b)}" as a ${this.name}`);
1533
1533
  b.g.o || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
1534
- return Lc(b.g.o, b.g.u.i, this.i);
1534
+ return Mc(b.g.o, b.g.u.i, this.i);
1535
1535
  }
1536
- function Oc(a, b) {
1536
+ function Pc(a, b) {
1537
1537
  if (null === b) {
1538
- this.Pa && R(`null is not a valid ${this.name}`);
1538
+ this.Ta && R(`null is not a valid ${this.name}`);
1539
1539
  if (this.ya) {
1540
- var c = this.Ra();
1540
+ var c = this.Va();
1541
1541
  null !== a && a.push(this.W, c);
1542
1542
  return c;
1543
1543
  }
1544
1544
  return 0;
1545
1545
  }
1546
- b.g || R(`Cannot pass "${Nc(b)}" as a ${this.name}`);
1546
+ b.g || R(`Cannot pass "${Oc(b)}" as a ${this.name}`);
1547
1547
  b.g.o || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
1548
1548
  !this.xa && b.g.u.xa && R(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
1549
- c = Lc(b.g.o, b.g.u.i, this.i);
1549
+ c = Mc(b.g.o, b.g.u.i, this.i);
1550
1550
  if (this.ya) {
1551
- switch(void 0 === b.g.H && R("Passing raw pointer to smart pointer is illegal"), this.jc) {
1551
+ switch(void 0 === b.g.H && R("Passing raw pointer to smart pointer is illegal"), this.mc) {
1552
1552
  case 0:
1553
1553
  b.g.L === this ? c = b.g.H : R(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
1554
1554
  break;
@@ -1560,7 +1560,7 @@ function Oc(a, b) {
1560
1560
  c = b.g.H;
1561
1561
  } else {
1562
1562
  var d = b.clone();
1563
- c = this.dc(c, T(function() {
1563
+ c = this.hc(c, T(function() {
1564
1564
  d["delete"]();
1565
1565
  }));
1566
1566
  null !== a && a.push(this.W, c);
@@ -1572,33 +1572,33 @@ function Oc(a, b) {
1572
1572
  }
1573
1573
  return c;
1574
1574
  }
1575
- function Pc(a, b) {
1575
+ function Qc(a, b) {
1576
1576
  if (null === b) {
1577
- return this.Pa && R(`null is not a valid ${this.name}`), 0;
1577
+ return this.Ta && R(`null is not a valid ${this.name}`), 0;
1578
1578
  }
1579
- b.g || R(`Cannot pass "${Nc(b)}" as a ${this.name}`);
1579
+ b.g || R(`Cannot pass "${Oc(b)}" as a ${this.name}`);
1580
1580
  b.g.o || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
1581
1581
  b.g.u.xa && R(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
1582
- return Lc(b.g.o, b.g.u.i, this.i);
1582
+ return Mc(b.g.o, b.g.u.i, this.i);
1583
1583
  }
1584
- function Qc(a, b, c, d) {
1584
+ function Rc(a, b, c, d) {
1585
1585
  this.name = a;
1586
1586
  this.i = b;
1587
- this.Pa = c;
1587
+ this.Ta = c;
1588
1588
  this.xa = d;
1589
1589
  this.ya = !1;
1590
- this.W = this.dc = this.Ra = this.pb = this.jc = this.cc = void 0;
1591
- void 0 !== b.A ? this.toWireType = Oc : (this.toWireType = d ? Mc : Pc, this.K = null);
1590
+ this.W = this.hc = this.Va = this.sb = this.mc = this.fc = void 0;
1591
+ void 0 !== b.A ? this.toWireType = Pc : (this.toWireType = d ? Nc : Qc, this.K = null);
1592
1592
  }
1593
- function Rc(a, b, c) {
1593
+ function Sc(a, b, c) {
1594
1594
  k.hasOwnProperty(a) || wc("Replacing nonexistant public symbol");
1595
1595
  void 0 !== k[a].B && void 0 !== c ? k[a].B[c] = b : (k[a] = b, k[a].ha = c);
1596
1596
  }
1597
- var Sc = [], Tc = a => {
1598
- var b = Sc[a];
1599
- b || (a >= Sc.length && (Sc.length = a + 1), Sc[a] = b = Aa.get(a));
1597
+ var Tc = [], Uc = a => {
1598
+ var b = Tc[a];
1599
+ b || (a >= Tc.length && (Tc.length = a + 1), Tc[a] = b = Aa.get(a));
1600
1600
  return b;
1601
- }, Uc = (a, b) => {
1601
+ }, Vc = (a, b) => {
1602
1602
  var c = [];
1603
1603
  return function() {
1604
1604
  c.length = 0;
@@ -1607,27 +1607,27 @@ var Sc = [], Tc = a => {
1607
1607
  var d = k["dynCall_" + a];
1608
1608
  d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
1609
1609
  } else {
1610
- d = Tc(b).apply(null, c);
1610
+ d = Uc(b).apply(null, c);
1611
1611
  }
1612
1612
  return d;
1613
1613
  };
1614
1614
  };
1615
- function X(a, b) {
1615
+ function W(a, b) {
1616
1616
  a = U(a);
1617
- var c = a.includes("j") ? Uc(a, b) : Tc(b);
1617
+ var c = a.includes("j") ? Vc(a, b) : Uc(b);
1618
1618
  "function" != typeof c && R(`unknown function pointer with signature ${a}: ${b}`);
1619
1619
  return c;
1620
1620
  }
1621
- var Vc = void 0;
1622
- function Wc(a, b) {
1621
+ var Wc = void 0;
1622
+ function Xc(a, b) {
1623
1623
  function c(f) {
1624
1624
  e[f] || kc[f] || (Dc[f] ? Dc[f].forEach(c) : (d.push(f), e[f] = !0));
1625
1625
  }
1626
1626
  var d = [], e = {};
1627
1627
  b.forEach(c);
1628
- throw new Vc(`${a}: ` + d.map(lc).join([", "]));
1628
+ throw new Wc(`${a}: ` + d.map(lc).join([", "]));
1629
1629
  }
1630
- function Xc(a, b, c, d, e) {
1630
+ function Yc(a, b, c, d, e) {
1631
1631
  var f = b.length;
1632
1632
  2 > f && R("argTypes array size mismatch! Must at least get return value and 'this' types!");
1633
1633
  var g = null !== b[1] && null !== c, l = !1;
@@ -1647,10 +1647,10 @@ function Xc(a, b, c, d, e) {
1647
1647
  var n = b[1].toWireType(x, this);
1648
1648
  v[1] = n;
1649
1649
  }
1650
- for (var q = 0; q < m; ++q) {
1651
- t[q] = b[q + 2].toWireType(x, arguments[q]), v.push(t[q]);
1650
+ for (var r = 0; r < m; ++r) {
1651
+ t[r] = b[r + 2].toWireType(x, arguments[r]), v.push(t[r]);
1652
1652
  }
1653
- q = d.apply(null, v);
1653
+ r = d.apply(null, v);
1654
1654
  if (l) {
1655
1655
  Ac(x);
1656
1656
  } else {
@@ -1659,26 +1659,26 @@ function Xc(a, b, c, d, e) {
1659
1659
  null !== b[u].K && b[u].K(y);
1660
1660
  }
1661
1661
  }
1662
- n = p ? b[0].fromWireType(q) : void 0;
1662
+ n = p ? b[0].fromWireType(r) : void 0;
1663
1663
  return n;
1664
1664
  };
1665
1665
  }
1666
- function Yc(a, b) {
1666
+ function Zc(a, b) {
1667
1667
  for (var c = [], d = 0; d < a; d++) {
1668
1668
  c.push(K[b + 4 * d >> 2]);
1669
1669
  }
1670
1670
  return c;
1671
1671
  }
1672
- function Zc(a, b, c) {
1672
+ function $c(a, b, c) {
1673
1673
  a instanceof Object || R(`${c} with invalid "this": ${a}`);
1674
1674
  a instanceof b.i.constructor || R(`${c} incompatible with "this" of type ${a.constructor.name}`);
1675
1675
  a.g.o || R(`cannot call emscripten binding method ${c} on deleted object`);
1676
- return Lc(a.g.o, a.g.u.i, b.i);
1676
+ return Mc(a.g.o, a.g.u.i, b.i);
1677
1677
  }
1678
- function $c(a) {
1679
- a >= Q.h && 0 === --Q.get(a).rb && Q.Tb(a);
1678
+ function ad(a) {
1679
+ a >= Q.h && 0 === --Q.get(a).ub && Q.Wb(a);
1680
1680
  }
1681
- function ad(a, b, c) {
1681
+ function bd(a, b, c) {
1682
1682
  switch(b) {
1683
1683
  case 0:
1684
1684
  return function(d) {
@@ -1690,20 +1690,20 @@ function ad(a, b, c) {
1690
1690
  };
1691
1691
  case 2:
1692
1692
  return function(d) {
1693
- return this.fromWireType((c ? J : K)[d >> 2]);
1693
+ return this.fromWireType((c ? I : K)[d >> 2]);
1694
1694
  };
1695
1695
  default:
1696
1696
  throw new TypeError("Unknown integer type: " + a);
1697
1697
  }
1698
1698
  }
1699
- function Nc(a) {
1699
+ function Oc(a) {
1700
1700
  if (null === a) {
1701
1701
  return "null";
1702
1702
  }
1703
1703
  var b = typeof a;
1704
1704
  return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
1705
1705
  }
1706
- function bd(a, b) {
1706
+ function cd(a, b) {
1707
1707
  switch(b) {
1708
1708
  case 2:
1709
1709
  return function(c) {
@@ -1717,7 +1717,7 @@ function bd(a, b) {
1717
1717
  throw new TypeError("Unknown float type: " + a);
1718
1718
  }
1719
1719
  }
1720
- function cd(a, b, c) {
1720
+ function dd(a, b, c) {
1721
1721
  switch(b) {
1722
1722
  case 0:
1723
1723
  return c ? function(d) {
@@ -1733,7 +1733,7 @@ function cd(a, b, c) {
1733
1733
  };
1734
1734
  case 2:
1735
1735
  return c ? function(d) {
1736
- return J[d >> 2];
1736
+ return I[d >> 2];
1737
1737
  } : function(d) {
1738
1738
  return K[d >> 2];
1739
1739
  };
@@ -1741,14 +1741,14 @@ function cd(a, b, c) {
1741
1741
  throw new TypeError("Unknown integer type: " + a);
1742
1742
  }
1743
1743
  }
1744
- var dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, ed = (a, b) => {
1744
+ var ed = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, fd = (a, b) => {
1745
1745
  var c = a >> 1;
1746
1746
  for (var d = c + b / 2; !(c >= d) && wa[c];) {
1747
1747
  ++c;
1748
1748
  }
1749
1749
  c <<= 1;
1750
- if (32 < c - a && dd) {
1751
- return dd.decode(F.subarray(a, c));
1750
+ if (32 < c - a && ed) {
1751
+ return ed.decode(F.subarray(a, c));
1752
1752
  }
1753
1753
  c = "";
1754
1754
  for (d = 0; !(d >= b / 2); ++d) {
@@ -1759,7 +1759,7 @@ var dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
1759
1759
  c += String.fromCharCode(e);
1760
1760
  }
1761
1761
  return c;
1762
- }, fd = (a, b, c) => {
1762
+ }, gd = (a, b, c) => {
1763
1763
  void 0 === c && (c = 2147483647);
1764
1764
  if (2 > c) {
1765
1765
  return 0;
@@ -1772,9 +1772,9 @@ var dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
1772
1772
  }
1773
1773
  G[b >> 1] = 0;
1774
1774
  return b - d;
1775
- }, gd = a => 2 * a.length, hd = (a, b) => {
1775
+ }, hd = a => 2 * a.length, jd = (a, b) => {
1776
1776
  for (var c = 0, d = ""; !(c >= b / 4);) {
1777
- var e = J[a + 4 * c >> 2];
1777
+ var e = I[a + 4 * c >> 2];
1778
1778
  if (0 == e) {
1779
1779
  break;
1780
1780
  }
@@ -1782,7 +1782,7 @@ var dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
1782
1782
  65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
1783
1783
  }
1784
1784
  return d;
1785
- }, jd = (a, b, c) => {
1785
+ }, kd = (a, b, c) => {
1786
1786
  void 0 === c && (c = 2147483647);
1787
1787
  if (4 > c) {
1788
1788
  return 0;
@@ -1795,77 +1795,77 @@ var dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
1795
1795
  var g = a.charCodeAt(++e);
1796
1796
  f = 65536 + ((f & 1023) << 10) | g & 1023;
1797
1797
  }
1798
- J[b >> 2] = f;
1798
+ I[b >> 2] = f;
1799
1799
  b += 4;
1800
1800
  if (b + 4 > c) {
1801
1801
  break;
1802
1802
  }
1803
1803
  }
1804
- J[b >> 2] = 0;
1804
+ I[b >> 2] = 0;
1805
1805
  return b - d;
1806
- }, kd = a => {
1806
+ }, ld = a => {
1807
1807
  for (var b = 0, c = 0; c < a.length; ++c) {
1808
1808
  var d = a.charCodeAt(c);
1809
1809
  55296 <= d && 57343 >= d && ++c;
1810
1810
  b += 4;
1811
1811
  }
1812
1812
  return b;
1813
- }, ld = {};
1814
- function md(a) {
1815
- var b = ld[a];
1813
+ }, md = {};
1814
+ function nd(a) {
1815
+ var b = md[a];
1816
1816
  return void 0 === b ? U(a) : b;
1817
1817
  }
1818
- var nd = [];
1819
- function od(a) {
1820
- var b = nd.length;
1821
- nd.push(a);
1818
+ var od = [];
1819
+ function pd(a) {
1820
+ var b = od.length;
1821
+ od.push(a);
1822
1822
  return b;
1823
1823
  }
1824
- function pd(a, b) {
1824
+ function qd(a, b) {
1825
1825
  for (var c = Array(a), d = 0; d < a; ++d) {
1826
1826
  c[d] = oc(K[b + 4 * d >> 2], "parameter " + d);
1827
1827
  }
1828
1828
  return c;
1829
1829
  }
1830
- var qd = [], rd = [];
1831
- function sd(a) {
1832
- a.Ac = a.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
1833
- }
1830
+ var rd = [], sd = [];
1834
1831
  function td(a) {
1832
+ a.Dc = a.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
1833
+ }
1834
+ function ud(a) {
1835
1835
  a.Ic = a.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
1836
1836
  }
1837
- var ud = 1, vd = [], wd = [], xd = [], yd = [], zd = [], Ad = [], Bd = [], w = [], Cd = {};
1837
+ var vd = 1, wd = [], X = [], xd = [], yd = [], zd = [], Ad = [], Bd = [], w = [], Cd = {};
1838
1838
  function Y(a) {
1839
1839
  Dd || (Dd = a);
1840
1840
  }
1841
1841
  function Ed(a) {
1842
- for (var b = ud++, c = a.length; c < b; c++) {
1842
+ for (var b = vd++, c = a.length; c < b; c++) {
1843
1843
  a[c] = null;
1844
1844
  }
1845
1845
  return b;
1846
1846
  }
1847
1847
  function ia(a, b) {
1848
- var c = Ed(w), d = {handle:c, attributes:b, version:b.Ec, C:a};
1849
- a.canvas && (a.canvas.zb = d);
1848
+ var c = Ed(w), d = {handle:c, attributes:b, version:b.Hc, C:a};
1849
+ a.canvas && (a.canvas.Cb = d);
1850
1850
  w[c] = d;
1851
- ("undefined" == typeof b.Kb || b.Kb) && Fd(d);
1851
+ ("undefined" == typeof b.Nb || b.Nb) && Fd(d);
1852
1852
  return c;
1853
1853
  }
1854
1854
  function ja(a) {
1855
- r = w[a];
1856
- k.yc = Z = r && r.C;
1855
+ q = w[a];
1856
+ k.Bc = Z = q && q.C;
1857
1857
  return !(a && !Z);
1858
1858
  }
1859
1859
  function Fd(a) {
1860
- a || (a = r);
1861
- if (!a.Vb) {
1862
- a.Vb = !0;
1860
+ a || (a = q);
1861
+ if (!a.Yb) {
1862
+ a.Yb = !0;
1863
1863
  var b = a.C;
1864
- sd(b);
1865
1864
  td(b);
1866
- 2 <= a.version && (b.ab = b.getExtension("EXT_disjoint_timer_query_webgl2"));
1867
- if (2 > a.version || !b.ab) {
1868
- b.ab = b.getExtension("EXT_disjoint_timer_query");
1865
+ ud(b);
1866
+ 2 <= a.version && (b.eb = b.getExtension("EXT_disjoint_timer_query_webgl2"));
1867
+ if (2 > a.version || !b.eb) {
1868
+ b.eb = b.getExtension("EXT_disjoint_timer_query");
1869
1869
  }
1870
1870
  Gd(b);
1871
1871
  (b.getSupportedExtensions() || []).forEach(function(c) {
@@ -1873,7 +1873,7 @@ function Fd(a) {
1873
1873
  });
1874
1874
  }
1875
1875
  }
1876
- var Dd, r;
1876
+ var Dd, q;
1877
1877
  function Gd(a) {
1878
1878
  a.Kc = a.getExtension("WEBGL_multi_draw");
1879
1879
  }
@@ -1895,7 +1895,7 @@ function Ld(a, b, c, d) {
1895
1895
  for (var e = 0; e < a; e++) {
1896
1896
  var f = Z[c](), g = f && Ed(d);
1897
1897
  f ? (f.name = g, d[g] = f) : Y(1282);
1898
- J[b + 4 * e >> 2] = g;
1898
+ I[b + 4 * e >> 2] = g;
1899
1899
  }
1900
1900
  }
1901
1901
  function Md(a, b) {
@@ -1916,7 +1916,7 @@ function Md(a, b) {
1916
1916
  c = d ? d.length : 0;
1917
1917
  break;
1918
1918
  case 33309:
1919
- if (2 > r.version) {
1919
+ if (2 > q.version) {
1920
1920
  Y(1282);
1921
1921
  return;
1922
1922
  }
@@ -1924,7 +1924,7 @@ function Md(a, b) {
1924
1924
  break;
1925
1925
  case 33307:
1926
1926
  case 33308:
1927
- if (2 > r.version) {
1927
+ if (2 > q.version) {
1928
1928
  Y(1280);
1929
1929
  return;
1930
1930
  }
@@ -1972,7 +1972,7 @@ function Md(a, b) {
1972
1972
  } else {
1973
1973
  if (d instanceof Float32Array || d instanceof Uint32Array || d instanceof Int32Array || d instanceof Array) {
1974
1974
  for (a = 0; a < d.length; ++a) {
1975
- J[b + 4 * a >> 2] = d[a];
1975
+ I[b + 4 * a >> 2] = d[a];
1976
1976
  }
1977
1977
  return;
1978
1978
  }
@@ -1991,7 +1991,7 @@ function Md(a, b) {
1991
1991
  return;
1992
1992
  }
1993
1993
  }
1994
- J[b >> 2] = c;
1994
+ I[b >> 2] = c;
1995
1995
  } else {
1996
1996
  Y(1281);
1997
1997
  }
@@ -2004,22 +2004,26 @@ var Od = a => {
2004
2004
  function Pd(a) {
2005
2005
  return "]" == a.slice(-1) && a.lastIndexOf("[");
2006
2006
  }
2007
- var Qd = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Rd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Sd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Td = (a, b, c, d) => {
2008
- function e(n, q, u) {
2009
- for (n = "number" == typeof n ? n.toString() : n || ""; n.length < q;) {
2007
+ function Qd(a) {
2008
+ a -= 5120;
2009
+ return 0 == a ? D : 1 == a ? F : 2 == a ? G : 4 == a ? I : 6 == a ? xa : 5 == a || 28922 == a || 28520 == a || 30779 == a || 30782 == a ? K : wa;
2010
+ }
2011
+ var Rd = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Sd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Td = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ud = (a, b, c, d) => {
2012
+ function e(n, r, u) {
2013
+ for (n = "number" == typeof n ? n.toString() : n || ""; n.length < r;) {
2010
2014
  n = u[0] + n;
2011
2015
  }
2012
2016
  return n;
2013
2017
  }
2014
- function f(n, q) {
2015
- return e(n, q, "0");
2018
+ function f(n, r) {
2019
+ return e(n, r, "0");
2016
2020
  }
2017
- function g(n, q) {
2021
+ function g(n, r) {
2018
2022
  function u(z) {
2019
2023
  return 0 > z ? -1 : 0 < z ? 1 : 0;
2020
2024
  }
2021
2025
  var y;
2022
- 0 === (y = u(n.getFullYear() - q.getFullYear())) && 0 === (y = u(n.getMonth() - q.getMonth())) && (y = u(n.getDate() - q.getDate()));
2026
+ 0 === (y = u(n.getFullYear() - r.getFullYear())) && 0 === (y = u(n.getMonth() - r.getMonth())) && (y = u(n.getDate() - r.getDate()));
2023
2027
  return y;
2024
2028
  }
2025
2029
  function l(n) {
@@ -2041,54 +2045,54 @@ var Qd = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Rd = [31, 29, 31,
2041
2045
  }
2042
2046
  }
2043
2047
  function p(n) {
2044
- var q = n.da;
2045
- for (n = new Date((new Date(n.ea + 1900, 0, 1)).getTime()); 0 < q;) {
2046
- var u = n.getMonth(), y = (Qd(n.getFullYear()) ? Rd : Sd)[u];
2047
- if (q > y - n.getDate()) {
2048
- q -= y - n.getDate() + 1, n.setDate(1), 11 > u ? n.setMonth(u + 1) : (n.setMonth(0), n.setFullYear(n.getFullYear() + 1));
2048
+ var r = n.da;
2049
+ for (n = new Date((new Date(n.ea + 1900, 0, 1)).getTime()); 0 < r;) {
2050
+ var u = n.getMonth(), y = (Rd(n.getFullYear()) ? Sd : Td)[u];
2051
+ if (r > y - n.getDate()) {
2052
+ r -= y - n.getDate() + 1, n.setDate(1), 11 > u ? n.setMonth(u + 1) : (n.setMonth(0), n.setFullYear(n.getFullYear() + 1));
2049
2053
  } else {
2050
- n.setDate(n.getDate() + q);
2054
+ n.setDate(n.getDate() + r);
2051
2055
  break;
2052
2056
  }
2053
2057
  }
2054
2058
  u = new Date(n.getFullYear() + 1, 0, 4);
2055
- q = l(new Date(n.getFullYear(), 0, 4));
2059
+ r = l(new Date(n.getFullYear(), 0, 4));
2056
2060
  u = l(u);
2057
- return 0 >= g(q, n) ? 0 >= g(u, n) ? n.getFullYear() + 1 : n.getFullYear() : n.getFullYear() - 1;
2061
+ return 0 >= g(r, n) ? 0 >= g(u, n) ? n.getFullYear() + 1 : n.getFullYear() : n.getFullYear() - 1;
2058
2062
  }
2059
- var m = J[d + 40 >> 2];
2060
- d = {mc:J[d >> 2], lc:J[d + 4 >> 2], Ga:J[d + 8 >> 2], Ta:J[d + 12 >> 2], Ha:J[d + 16 >> 2], ea:J[d + 20 >> 2], R:J[d + 24 >> 2], da:J[d + 28 >> 2], Pc:J[d + 32 >> 2], kc:J[d + 36 >> 2], nc:m ? m ? M(F, m) : "" : ""};
2063
+ var m = I[d + 40 >> 2];
2064
+ d = {pc:I[d >> 2], oc:I[d + 4 >> 2], Ja:I[d + 8 >> 2], Xa:I[d + 12 >> 2], Ka:I[d + 16 >> 2], ea:I[d + 20 >> 2], R:I[d + 24 >> 2], da:I[d + 28 >> 2], Pc:I[d + 32 >> 2], nc:I[d + 36 >> 2], qc:m ? m ? M(F, m) : "" : ""};
2061
2065
  c = c ? M(F, c) : "";
2062
2066
  m = {"%c":"%a %b %d %H:%M:%S %Y", "%D":"%m/%d/%y", "%F":"%Y-%m-%d", "%h":"%b", "%r":"%I:%M:%S %p", "%R":"%H:%M", "%T":"%H:%M:%S", "%x":"%m/%d/%y", "%X":"%H:%M:%S", "%Ec":"%c", "%EC":"%C", "%Ex":"%m/%d/%y", "%EX":"%H:%M:%S", "%Ey":"%y", "%EY":"%Y", "%Od":"%d", "%Oe":"%e", "%OH":"%H", "%OI":"%I", "%Om":"%m", "%OM":"%M", "%OS":"%S", "%Ou":"%u", "%OU":"%U", "%OV":"%V", "%Ow":"%w", "%OW":"%W", "%Oy":"%y",};
2063
2067
  for (var t in m) {
2064
2068
  c = c.replace(new RegExp(t, "g"), m[t]);
2065
2069
  }
2066
2070
  var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), x = "January February March April May June July August September October November December".split(" ");
2067
- m = {"%a":n => v[n.R].substring(0, 3), "%A":n => v[n.R], "%b":n => x[n.Ha].substring(0, 3), "%B":n => x[n.Ha], "%C":n => f((n.ea + 1900) / 100 | 0, 2), "%d":n => f(n.Ta, 2), "%e":n => e(n.Ta, 2, " "), "%g":n => p(n).toString().substring(2), "%G":n => p(n), "%H":n => f(n.Ga, 2), "%I":n => {
2068
- n = n.Ga;
2071
+ m = {"%a":n => v[n.R].substring(0, 3), "%A":n => v[n.R], "%b":n => x[n.Ka].substring(0, 3), "%B":n => x[n.Ka], "%C":n => f((n.ea + 1900) / 100 | 0, 2), "%d":n => f(n.Xa, 2), "%e":n => e(n.Xa, 2, " "), "%g":n => p(n).toString().substring(2), "%G":n => p(n), "%H":n => f(n.Ja, 2), "%I":n => {
2072
+ n = n.Ja;
2069
2073
  0 == n ? n = 12 : 12 < n && (n -= 12);
2070
2074
  return f(n, 2);
2071
2075
  }, "%j":n => {
2072
- for (var q = 0, u = 0; u <= n.Ha - 1; q += (Qd(n.ea + 1900) ? Rd : Sd)[u++]) {
2073
- }
2074
- return f(n.Ta + q, 3);
2075
- }, "%m":n => f(n.Ha + 1, 2), "%M":n => f(n.lc, 2), "%n":() => "\n", "%p":n => 0 <= n.Ga && 12 > n.Ga ? "AM" : "PM", "%S":n => f(n.mc, 2), "%t":() => "\t", "%u":n => n.R || 7, "%U":n => f(Math.floor((n.da + 7 - n.R) / 7), 2), "%V":n => {
2076
- var q = Math.floor((n.da + 7 - (n.R + 6) % 7) / 7);
2077
- 2 >= (n.R + 371 - n.da - 2) % 7 && q++;
2078
- if (q) {
2079
- 53 == q && (u = (n.R + 371 - n.da) % 7, 4 == u || 3 == u && Qd(n.ea) || (q = 1));
2076
+ for (var r = 0, u = 0; u <= n.Ka - 1; r += (Rd(n.ea + 1900) ? Sd : Td)[u++]) {
2077
+ }
2078
+ return f(n.Xa + r, 3);
2079
+ }, "%m":n => f(n.Ka + 1, 2), "%M":n => f(n.oc, 2), "%n":() => "\n", "%p":n => 0 <= n.Ja && 12 > n.Ja ? "AM" : "PM", "%S":n => f(n.pc, 2), "%t":() => "\t", "%u":n => n.R || 7, "%U":n => f(Math.floor((n.da + 7 - n.R) / 7), 2), "%V":n => {
2080
+ var r = Math.floor((n.da + 7 - (n.R + 6) % 7) / 7);
2081
+ 2 >= (n.R + 371 - n.da - 2) % 7 && r++;
2082
+ if (r) {
2083
+ 53 == r && (u = (n.R + 371 - n.da) % 7, 4 == u || 3 == u && Rd(n.ea) || (r = 1));
2080
2084
  } else {
2081
- q = 52;
2085
+ r = 52;
2082
2086
  var u = (n.R + 7 - n.da - 1) % 7;
2083
- (4 == u || 5 == u && Qd(n.ea % 400 - 1)) && q++;
2087
+ (4 == u || 5 == u && Rd(n.ea % 400 - 1)) && r++;
2084
2088
  }
2085
- return f(q, 2);
2089
+ return f(r, 2);
2086
2090
  }, "%w":n => n.R, "%W":n => f(Math.floor((n.da + 7 - (n.R + 6) % 7) / 7), 2), "%y":n => (n.ea + 1900).toString().substring(2), "%Y":n => n.ea + 1900, "%z":n => {
2087
- n = n.kc;
2088
- var q = 0 <= n;
2091
+ n = n.nc;
2092
+ var r = 0 <= n;
2089
2093
  n = Math.abs(n) / 60;
2090
- return (q ? "+" : "-") + String("0000" + (n / 60 * 100 + n % 60)).slice(-4);
2091
- }, "%Z":n => n.nc, "%%":() => "%"};
2094
+ return (r ? "+" : "-") + String("0000" + (n / 60 * 100 + n % 60)).slice(-4);
2095
+ }, "%Z":n => n.qc, "%%":() => "%"};
2092
2096
  c = c.replace(/%%/g, "\x00\x00");
2093
2097
  for (t in m) {
2094
2098
  c.includes(t) && (c = c.replace(new RegExp(t, "g"), m[t](d)));
@@ -2105,13 +2109,13 @@ function Fb(a, b, c, d) {
2105
2109
  a || (a = this);
2106
2110
  this.parent = a;
2107
2111
  this.U = a.U;
2108
- this.Aa = null;
2112
+ this.Da = null;
2109
2113
  this.id = xb++;
2110
2114
  this.name = b;
2111
2115
  this.mode = c;
2112
2116
  this.l = {};
2113
2117
  this.m = {};
2114
- this.Ca = d;
2118
+ this.Fa = d;
2115
2119
  }
2116
2120
  Object.defineProperties(Fb.prototype, {read:{get:function() {
2117
2121
  return 365 === (this.mode & 365);
@@ -2153,7 +2157,7 @@ P("/home/web_user", 16895, 0);
2153
2157
  var b = pb(a, "fd", 16895, 73);
2154
2158
  b.l = {ma:(c, d) => {
2155
2159
  var e = Jb(+d);
2156
- c = {parent:null, U:{jb:"fake"}, l:{na:() => e.path},};
2160
+ c = {parent:null, U:{mb:"fake"}, l:{na:() => e.path},};
2157
2161
  return c.parent = c;
2158
2162
  }};
2159
2163
  return b;
@@ -2164,12 +2168,12 @@ Object.assign(ac.prototype, {get(a) {
2164
2168
  }, has(a) {
2165
2169
  return void 0 !== this.M[a];
2166
2170
  }, ta(a) {
2167
- var b = this.fb.pop() || this.M.length;
2171
+ var b = this.ib.pop() || this.M.length;
2168
2172
  this.M[b] = a;
2169
2173
  return b;
2170
- }, Tb(a) {
2174
+ }, Wb(a) {
2171
2175
  this.M[a] = void 0;
2172
- this.fb.push(a);
2176
+ this.ib.push(a);
2173
2177
  }});
2174
2178
  bc = k.BindingError = class extends Error {
2175
2179
  constructor(a) {
@@ -2186,10 +2190,10 @@ k.count_emval_handles = function() {
2186
2190
  return a;
2187
2191
  };
2188
2192
  dc = k.PureVirtualError = cc("PureVirtualError");
2189
- for (var Ud = Array(256), Vd = 0; 256 > Vd; ++Vd) {
2190
- Ud[Vd] = String.fromCharCode(Vd);
2193
+ for (var Vd = Array(256), Wd = 0; 256 > Wd; ++Wd) {
2194
+ Vd[Wd] = String.fromCharCode(Wd);
2191
2195
  }
2192
- ec = Ud;
2196
+ ec = Vd;
2193
2197
  k.getInheritedInstanceCount = function() {
2194
2198
  return Object.keys(ic).length;
2195
2199
  };
@@ -2211,8 +2215,8 @@ vc = k.InternalError = class extends Error {
2211
2215
  this.name = "InternalError";
2212
2216
  }
2213
2217
  };
2214
- Hc.prototype.isAliasOf = function(a) {
2215
- if (!(this instanceof Hc && a instanceof Hc)) {
2218
+ Ic.prototype.isAliasOf = function(a) {
2219
+ if (!(this instanceof Ic && a instanceof Ic)) {
2216
2220
  return !1;
2217
2221
  }
2218
2222
  var b = this.g.u.i, c = this.g.o, d = a.g.u.i;
@@ -2224,8 +2228,8 @@ Hc.prototype.isAliasOf = function(a) {
2224
2228
  }
2225
2229
  return b === d && c === a;
2226
2230
  };
2227
- Hc.prototype.clone = function() {
2228
- this.g.o || Gc(this);
2231
+ Ic.prototype.clone = function() {
2232
+ this.g.o || Hc(this);
2229
2233
  if (this.g.ka) {
2230
2234
  return this.g.count.value += 1, this;
2231
2235
  }
@@ -2235,45 +2239,45 @@ Hc.prototype.clone = function() {
2235
2239
  a.g.ia = !1;
2236
2240
  return a;
2237
2241
  };
2238
- Hc.prototype["delete"] = function() {
2239
- this.g.o || Gc(this);
2242
+ Ic.prototype["delete"] = function() {
2243
+ this.g.o || Hc(this);
2240
2244
  this.g.ia && !this.g.ka && R("Object already scheduled for deletion");
2241
2245
  pc(this);
2242
2246
  rc(this.g);
2243
2247
  this.g.ka || (this.g.H = void 0, this.g.o = void 0);
2244
2248
  };
2245
- Hc.prototype.isDeleted = function() {
2249
+ Ic.prototype.isDeleted = function() {
2246
2250
  return !this.g.o;
2247
2251
  };
2248
- Hc.prototype.deleteLater = function() {
2249
- this.g.o || Gc(this);
2252
+ Ic.prototype.deleteLater = function() {
2253
+ this.g.o || Hc(this);
2250
2254
  this.g.ia && !this.g.ka && R("Object already scheduled for deletion");
2251
2255
  fc.push(this);
2252
2256
  1 === fc.length && hc && hc(gc);
2253
2257
  this.g.ia = !0;
2254
2258
  return this;
2255
2259
  };
2256
- Qc.prototype.Pb = function(a) {
2257
- this.pb && (a = this.pb(a));
2260
+ Rc.prototype.Sb = function(a) {
2261
+ this.sb && (a = this.sb(a));
2258
2262
  return a;
2259
2263
  };
2260
- Qc.prototype.$a = function(a) {
2264
+ Rc.prototype.cb = function(a) {
2261
2265
  this.W && this.W(a);
2262
2266
  };
2263
- Qc.prototype.argPackAdvance = 8;
2264
- Qc.prototype.readValueFromPointer = Bc;
2265
- Qc.prototype.deleteObject = function(a) {
2267
+ Rc.prototype.argPackAdvance = 8;
2268
+ Rc.prototype.readValueFromPointer = Bc;
2269
+ Rc.prototype.deleteObject = function(a) {
2266
2270
  if (null !== a) {
2267
2271
  a["delete"]();
2268
2272
  }
2269
2273
  };
2270
- Qc.prototype.fromWireType = function(a) {
2274
+ Rc.prototype.fromWireType = function(a) {
2271
2275
  function b() {
2272
- return this.ya ? xc(this.i.N, {u:this.cc, o:c, L:this, H:a,}) : xc(this.i.N, {u:this, o:a,});
2276
+ return this.ya ? xc(this.i.N, {u:this.fc, o:c, L:this, H:a,}) : xc(this.i.N, {u:this, o:a,});
2273
2277
  }
2274
- var c = this.Pb(a);
2278
+ var c = this.Sb(a);
2275
2279
  if (!c) {
2276
- return this.$a(a), null;
2280
+ return this.cb(a), null;
2277
2281
  }
2278
2282
  var d = uc(this.i, c);
2279
2283
  if (void 0 !== d) {
@@ -2281,23 +2285,23 @@ Qc.prototype.fromWireType = function(a) {
2281
2285
  return d.g.o = c, d.g.H = a, d.clone();
2282
2286
  }
2283
2287
  d = d.clone();
2284
- this.$a(a);
2288
+ this.cb(a);
2285
2289
  return d;
2286
2290
  }
2287
- d = this.i.Ob(c);
2291
+ d = this.i.Rb(c);
2288
2292
  d = tc[d];
2289
2293
  if (!d) {
2290
2294
  return b.call(this);
2291
2295
  }
2292
- d = this.xa ? d.Gb : d.pointerType;
2296
+ d = this.xa ? d.Jb : d.pointerType;
2293
2297
  var e = sc(c, this.i, d.i);
2294
2298
  return null === e ? b.call(this) : this.ya ? xc(d.i.N, {u:d, o:e, L:this, H:a,}) : xc(d.i.N, {u:d, o:e,});
2295
2299
  };
2296
- Vc = k.UnboundTypeError = cc("UnboundTypeError");
2297
- for (var Z, Wd = 0; 32 > Wd; ++Wd) {
2298
- Kd.push(Array(Wd));
2300
+ Wc = k.UnboundTypeError = cc("UnboundTypeError");
2301
+ for (var Z, Xd = 0; 32 > Xd; ++Xd) {
2302
+ Kd.push(Array(Xd));
2299
2303
  }
2300
- var Yd = {__syscall_fcntl64:function(a, b, c) {
2304
+ var Zd = {__syscall_fcntl64:function(a, b, c) {
2301
2305
  Xb = c;
2302
2306
  try {
2303
2307
  var d = Jb(a);
@@ -2321,7 +2325,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2321
2325
  case 8:
2322
2326
  return -28;
2323
2327
  case 9:
2324
- return J[Xd() >> 2] = 28, -1;
2328
+ return I[Yd() >> 2] = 28, -1;
2325
2329
  default:
2326
2330
  return -28;
2327
2331
  }
@@ -2342,13 +2346,13 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2342
2346
  if (!d.s) {
2343
2347
  return -59;
2344
2348
  }
2345
- if (d.s.V.Xb) {
2349
+ if (d.s.V.$b) {
2346
2350
  b = [3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,];
2347
2351
  var e = Yb();
2348
- J[e >> 2] = 25856;
2349
- J[e + 4 >> 2] = 5;
2350
- J[e + 8 >> 2] = 191;
2351
- J[e + 12 >> 2] = 35387;
2352
+ I[e >> 2] = 25856;
2353
+ I[e + 4 >> 2] = 5;
2354
+ I[e + 8 >> 2] = 191;
2355
+ I[e + 12 >> 2] = 35387;
2352
2356
  for (var f = 0; 32 > f; f++) {
2353
2357
  D[e + f + 17 >> 0] = b[f] || 0;
2354
2358
  }
@@ -2364,7 +2368,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2364
2368
  if (!d.s) {
2365
2369
  return -59;
2366
2370
  }
2367
- if (d.s.V.Yb) {
2371
+ if (d.s.V.ac) {
2368
2372
  for (e = Yb(), b = [], f = 0; 32 > f; f++) {
2369
2373
  b.push(D[e + f + 17 >> 0]);
2370
2374
  }
@@ -2375,20 +2379,20 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2375
2379
  return -59;
2376
2380
  }
2377
2381
  e = Yb();
2378
- return J[e >> 2] = 0;
2382
+ return I[e >> 2] = 0;
2379
2383
  case 21520:
2380
2384
  return d.s ? -28 : -59;
2381
2385
  case 21531:
2382
2386
  e = Yb();
2383
- if (!d.m.Wb) {
2387
+ if (!d.m.Zb) {
2384
2388
  throw new N(59);
2385
2389
  }
2386
- return d.m.Wb(d, b, e);
2390
+ return d.m.Zb(d, b, e);
2387
2391
  case 21523:
2388
2392
  if (!d.s) {
2389
2393
  return -59;
2390
2394
  }
2391
- d.s.V.Zb && (f = [24, 80], e = Yb(), G[e >> 1] = f[0], G[e + 2 >> 1] = f[1]);
2395
+ d.s.V.bc && (f = [24, 80], e = Yb(), G[e >> 1] = f[0], G[e + 2 >> 1] = f[1]);
2392
2396
  return 0;
2393
2397
  case 21524:
2394
2398
  return d.s ? 0 : -59;
@@ -2431,7 +2435,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2431
2435
  c = S(c);
2432
2436
  var d = [].slice, e = b.i, f = e.N, g = e.A.N, l = e.A.constructor;
2433
2437
  a = $b(a, function() {
2434
- e.A.nb.forEach(function(m) {
2438
+ e.A.qb.forEach(function(m) {
2435
2439
  if (this[m] === g[m]) {
2436
2440
  throw new dc(`Pure virtual function ${m} must be implemented in JavaScript`);
2437
2441
  }
@@ -2467,15 +2471,15 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2467
2471
  }, _embind_finalize_value_object:function(a) {
2468
2472
  var b = zc[a];
2469
2473
  delete zc[a];
2470
- var c = b.Ra, d = b.W, e = b.bb, f = e.map(g => g.Sb).concat(e.map(g => g.hc));
2474
+ var c = b.Va, d = b.W, e = b.fb, f = e.map(g => g.Vb).concat(e.map(g => g.kc));
2471
2475
  V([a], f, g => {
2472
2476
  var l = {};
2473
2477
  e.forEach((p, m) => {
2474
- var t = g[m], v = p.Qb, x = p.Rb, n = g[m + e.length], q = p.fc, u = p.ic;
2475
- l[p.Mb] = {read:y => t.fromWireType(v(x, y)), write:(y, z) => {
2476
- var A = [];
2477
- q(u, y, n.toWireType(A, z));
2478
- Ac(A);
2478
+ var t = g[m], v = p.Tb, x = p.Ub, n = g[m + e.length], r = p.jc, u = p.lc;
2479
+ l[p.Pb] = {read:y => t.fromWireType(v(x, y)), write:(y, z) => {
2480
+ var B = [];
2481
+ r(u, y, n.toWireType(B, z));
2482
+ Ac(B);
2479
2483
  }};
2480
2484
  });
2481
2485
  return [{name:b.name, fromWireType:function(p) {
@@ -2501,9 +2505,9 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2501
2505
  });
2502
2506
  }, _embind_register_bigint:function() {
2503
2507
  }, _embind_register_bool:function(a, b, c, d, e) {
2504
- var f = Ec(c);
2508
+ var f = Fc(c);
2505
2509
  b = U(b);
2506
- W(a, {name:b, fromWireType:function(g) {
2510
+ Ec(a, {name:b, fromWireType:function(g) {
2507
2511
  return !!g;
2508
2512
  }, toWireType:function(g, l) {
2509
2513
  return l ? d : e;
@@ -2513,7 +2517,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2513
2517
  } else if (2 === c) {
2514
2518
  l = G;
2515
2519
  } else if (4 === c) {
2516
- l = J;
2520
+ l = I;
2517
2521
  } else {
2518
2522
  throw new TypeError("Unknown boolean type size: " + b);
2519
2523
  }
@@ -2521,61 +2525,61 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2521
2525
  }, K:null,});
2522
2526
  }, _embind_register_class:function(a, b, c, d, e, f, g, l, p, m, t, v, x) {
2523
2527
  t = U(t);
2524
- f = X(e, f);
2525
- l && (l = X(g, l));
2526
- m && (m = X(p, m));
2527
- x = X(v, x);
2528
+ f = W(e, f);
2529
+ l && (l = W(g, l));
2530
+ m && (m = W(p, m));
2531
+ x = W(v, x);
2528
2532
  var n = Zb(t);
2529
- Jc(n, function() {
2530
- Wc(`Cannot construct ${t} due to unbound types`, [d]);
2533
+ Kc(n, function() {
2534
+ Xc(`Cannot construct ${t} due to unbound types`, [d]);
2531
2535
  });
2532
- V([a, b, c], d ? [d] : [], function(q) {
2533
- q = q[0];
2536
+ V([a, b, c], d ? [d] : [], function(r) {
2537
+ r = r[0];
2534
2538
  if (d) {
2535
- var u = q.i;
2539
+ var u = r.i;
2536
2540
  var y = u.N;
2537
2541
  } else {
2538
- y = Hc.prototype;
2542
+ y = Ic.prototype;
2539
2543
  }
2540
- q = $b(n, function() {
2544
+ r = $b(n, function() {
2541
2545
  if (Object.getPrototypeOf(this) !== z) {
2542
2546
  throw new bc("Use 'new' to construct " + t);
2543
2547
  }
2544
- if (void 0 === A.$) {
2548
+ if (void 0 === B.$) {
2545
2549
  throw new bc(t + " has no accessible constructor");
2546
2550
  }
2547
- var I = A.$[arguments.length];
2548
- if (void 0 === I) {
2549
- throw new bc(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(A.$).toString()}) parameters instead!`);
2551
+ var J = B.$[arguments.length];
2552
+ if (void 0 === J) {
2553
+ throw new bc(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(B.$).toString()}) parameters instead!`);
2550
2554
  }
2551
- return I.apply(this, arguments);
2555
+ return J.apply(this, arguments);
2552
2556
  });
2553
- var z = Object.create(y, {constructor:{value:q},});
2554
- q.prototype = z;
2555
- var A = new Kc(t, q, z, x, u, f, l, m);
2556
- A.A && (void 0 === A.A.qa && (A.A.qa = []), A.A.qa.push(A));
2557
- u = new Qc(t, A, !0, !1);
2558
- y = new Qc(t + "*", A, !1, !1);
2559
- var H = new Qc(t + " const*", A, !1, !0);
2560
- tc[a] = {pointerType:y, Gb:H};
2561
- Rc(n, q);
2557
+ var z = Object.create(y, {constructor:{value:r},});
2558
+ r.prototype = z;
2559
+ var B = new Lc(t, r, z, x, u, f, l, m);
2560
+ B.A && (void 0 === B.A.qa && (B.A.qa = []), B.A.qa.push(B));
2561
+ u = new Rc(t, B, !0, !1);
2562
+ y = new Rc(t + "*", B, !1, !1);
2563
+ var H = new Rc(t + " const*", B, !1, !0);
2564
+ tc[a] = {pointerType:y, Jb:H};
2565
+ Sc(n, r);
2562
2566
  return [u, y, H];
2563
2567
  });
2564
2568
  }, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
2565
- var l = Yc(c, d);
2569
+ var l = Zc(c, d);
2566
2570
  b = U(b);
2567
- f = X(e, f);
2571
+ f = W(e, f);
2568
2572
  V([], [a], function(p) {
2569
2573
  function m() {
2570
- Wc(`Cannot call ${t} due to unbound types`, l);
2574
+ Xc(`Cannot call ${t} due to unbound types`, l);
2571
2575
  }
2572
2576
  p = p[0];
2573
2577
  var t = `${p.name}.${b}`;
2574
2578
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2575
2579
  var v = p.i.constructor;
2576
- void 0 === v[b] ? (m.ha = c - 1, v[b] = m) : (Ic(v, b, t), v[b].B[c - 1] = m);
2580
+ void 0 === v[b] ? (m.ha = c - 1, v[b] = m) : (Jc(v, b, t), v[b].B[c - 1] = m);
2577
2581
  V([], l, function(x) {
2578
- x = Xc(t, [x[0], null].concat(x.slice(1)), null, f, g);
2582
+ x = Yc(t, [x[0], null].concat(x.slice(1)), null, f, g);
2579
2583
  void 0 === v[b].B ? (x.ha = c - 1, v[b] = x) : v[b].B[c - 1] = x;
2580
2584
  if (p.i.qa) {
2581
2585
  for (const n of p.i.qa) {
@@ -2588,14 +2592,14 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2588
2592
  });
2589
2593
  }, _embind_register_class_class_property:function(a, b, c, d, e, f, g, l) {
2590
2594
  b = U(b);
2591
- f = X(e, f);
2595
+ f = W(e, f);
2592
2596
  V([], [a], function(p) {
2593
2597
  p = p[0];
2594
2598
  var m = `${p.name}.${b}`, t = {get() {
2595
- Wc(`Cannot access ${m} due to unbound types`, [c]);
2599
+ Xc(`Cannot access ${m} due to unbound types`, [c]);
2596
2600
  }, enumerable:!0, configurable:!0};
2597
2601
  t.set = l ? () => {
2598
- Wc(`Cannot access ${m} due to unbound types`, [c]);
2602
+ Xc(`Cannot access ${m} due to unbound types`, [c]);
2599
2603
  } : () => {
2600
2604
  R(`${m} is a read-only property`);
2601
2605
  };
@@ -2605,10 +2609,10 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2605
2609
  var x = {get() {
2606
2610
  return v.fromWireType(f(d));
2607
2611
  }, enumerable:!0};
2608
- l && (l = X(g, l), x.set = n => {
2609
- var q = [];
2610
- l(d, v.toWireType(q, n));
2611
- Ac(q);
2612
+ l && (l = W(g, l), x.set = n => {
2613
+ var r = [];
2614
+ l(d, v.toWireType(r, n));
2615
+ Ac(r);
2612
2616
  });
2613
2617
  Object.defineProperty(p.i.constructor, b, x);
2614
2618
  return [];
@@ -2616,8 +2620,8 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2616
2620
  return [];
2617
2621
  });
2618
2622
  }, _embind_register_class_constructor:function(a, b, c, d, e, f) {
2619
- var g = Yc(b, c);
2620
- e = X(d, e);
2623
+ var g = Zc(b, c);
2624
+ e = W(d, e);
2621
2625
  V([], [a], function(l) {
2622
2626
  l = l[0];
2623
2627
  var p = `constructor ${l.name}`;
@@ -2626,61 +2630,61 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2626
2630
  throw new bc(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${l.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
2627
2631
  }
2628
2632
  l.i.$[b - 1] = () => {
2629
- Wc(`Cannot construct ${l.name} due to unbound types`, g);
2633
+ Xc(`Cannot construct ${l.name} due to unbound types`, g);
2630
2634
  };
2631
2635
  V([], g, function(m) {
2632
2636
  m.splice(1, 0, null);
2633
- l.i.$[b - 1] = Xc(p, m, null, e, f);
2637
+ l.i.$[b - 1] = Yc(p, m, null, e, f);
2634
2638
  return [];
2635
2639
  });
2636
2640
  return [];
2637
2641
  });
2638
2642
  }, _embind_register_class_function:function(a, b, c, d, e, f, g, l) {
2639
- var p = Yc(c, d);
2643
+ var p = Zc(c, d);
2640
2644
  b = U(b);
2641
- f = X(e, f);
2645
+ f = W(e, f);
2642
2646
  V([], [a], function(m) {
2643
2647
  function t() {
2644
- Wc(`Cannot call ${v} due to unbound types`, p);
2648
+ Xc(`Cannot call ${v} due to unbound types`, p);
2645
2649
  }
2646
2650
  m = m[0];
2647
2651
  var v = `${m.name}.${b}`;
2648
2652
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2649
- l && m.i.nb.push(b);
2653
+ l && m.i.qb.push(b);
2650
2654
  var x = m.i.N, n = x[b];
2651
- void 0 === n || void 0 === n.B && n.className !== m.name && n.ha === c - 2 ? (t.ha = c - 2, t.className = m.name, x[b] = t) : (Ic(x, b, v), x[b].B[c - 2] = t);
2652
- V([], p, function(q) {
2653
- q = Xc(v, q, m, f, g);
2654
- void 0 === x[b].B ? (q.ha = c - 2, x[b] = q) : x[b].B[c - 2] = q;
2655
+ void 0 === n || void 0 === n.B && n.className !== m.name && n.ha === c - 2 ? (t.ha = c - 2, t.className = m.name, x[b] = t) : (Jc(x, b, v), x[b].B[c - 2] = t);
2656
+ V([], p, function(r) {
2657
+ r = Yc(v, r, m, f, g);
2658
+ void 0 === x[b].B ? (r.ha = c - 2, x[b] = r) : x[b].B[c - 2] = r;
2655
2659
  return [];
2656
2660
  });
2657
2661
  return [];
2658
2662
  });
2659
2663
  }, _embind_register_class_property:function(a, b, c, d, e, f, g, l, p, m) {
2660
2664
  b = U(b);
2661
- e = X(d, e);
2665
+ e = W(d, e);
2662
2666
  V([], [a], function(t) {
2663
2667
  t = t[0];
2664
2668
  var v = `${t.name}.${b}`, x = {get() {
2665
- Wc(`Cannot access ${v} due to unbound types`, [c, g]);
2669
+ Xc(`Cannot access ${v} due to unbound types`, [c, g]);
2666
2670
  }, enumerable:!0, configurable:!0};
2667
2671
  x.set = p ? () => {
2668
- Wc(`Cannot access ${v} due to unbound types`, [c, g]);
2672
+ Xc(`Cannot access ${v} due to unbound types`, [c, g]);
2669
2673
  } : () => {
2670
2674
  R(v + " is a read-only property");
2671
2675
  };
2672
2676
  Object.defineProperty(t.i.N, b, x);
2673
2677
  V([], p ? [c, g] : [c], function(n) {
2674
- var q = n[0], u = {get() {
2675
- var z = Zc(this, t, v + " getter");
2676
- return q.fromWireType(e(f, z));
2678
+ var r = n[0], u = {get() {
2679
+ var z = $c(this, t, v + " getter");
2680
+ return r.fromWireType(e(f, z));
2677
2681
  }, enumerable:!0};
2678
2682
  if (p) {
2679
- p = X(l, p);
2683
+ p = W(l, p);
2680
2684
  var y = n[1];
2681
2685
  u.set = function(z) {
2682
- var A = Zc(this, t, v + " setter"), H = [];
2683
- p(m, A, y.toWireType(H, z));
2686
+ var B = $c(this, t, v + " setter"), H = [];
2687
+ p(m, B, y.toWireType(H, z));
2684
2688
  Ac(H);
2685
2689
  };
2686
2690
  }
@@ -2691,9 +2695,9 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2691
2695
  });
2692
2696
  }, _embind_register_emval:function(a, b) {
2693
2697
  b = U(b);
2694
- W(a, {name:b, fromWireType:function(c) {
2698
+ Ec(a, {name:b, fromWireType:function(c) {
2695
2699
  var d = S(c);
2696
- $c(c);
2700
+ ad(c);
2697
2701
  return d;
2698
2702
  }, toWireType:function(c, d) {
2699
2703
  return T(d);
@@ -2701,15 +2705,15 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2701
2705
  }, _embind_register_enum:function(a, b, c, d) {
2702
2706
  function e() {
2703
2707
  }
2704
- c = Ec(c);
2708
+ c = Fc(c);
2705
2709
  b = U(b);
2706
2710
  e.values = {};
2707
- W(a, {name:b, constructor:e, fromWireType:function(f) {
2711
+ Ec(a, {name:b, constructor:e, fromWireType:function(f) {
2708
2712
  return this.constructor.values[f];
2709
2713
  }, toWireType:function(f, g) {
2710
2714
  return g.value;
2711
- }, argPackAdvance:8, readValueFromPointer:ad(b, c, d), K:null,});
2712
- Jc(b, e);
2715
+ }, argPackAdvance:8, readValueFromPointer:bd(b, c, d), K:null,});
2716
+ Kc(b, e);
2713
2717
  }, _embind_register_enum_value:function(a, b, c) {
2714
2718
  var d = oc(a, "enum");
2715
2719
  b = U(b);
@@ -2719,28 +2723,28 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2719
2723
  a.values[c] = d;
2720
2724
  a[b] = d;
2721
2725
  }, _embind_register_float:function(a, b, c) {
2722
- c = Ec(c);
2726
+ c = Fc(c);
2723
2727
  b = U(b);
2724
- W(a, {name:b, fromWireType:function(d) {
2728
+ Ec(a, {name:b, fromWireType:function(d) {
2725
2729
  return d;
2726
2730
  }, toWireType:function(d, e) {
2727
2731
  return e;
2728
- }, argPackAdvance:8, readValueFromPointer:bd(b, c), K:null,});
2732
+ }, argPackAdvance:8, readValueFromPointer:cd(b, c), K:null,});
2729
2733
  }, _embind_register_function:function(a, b, c, d, e, f) {
2730
- var g = Yc(b, c);
2734
+ var g = Zc(b, c);
2731
2735
  a = U(a);
2732
- e = X(d, e);
2733
- Jc(a, function() {
2734
- Wc(`Cannot call ${a} due to unbound types`, g);
2736
+ e = W(d, e);
2737
+ Kc(a, function() {
2738
+ Xc(`Cannot call ${a} due to unbound types`, g);
2735
2739
  }, b - 1);
2736
2740
  V([], g, function(l) {
2737
- Rc(a, Xc(a, [l[0], null].concat(l.slice(1)), null, e, f), b - 1);
2741
+ Sc(a, Yc(a, [l[0], null].concat(l.slice(1)), null, e, f), b - 1);
2738
2742
  return [];
2739
2743
  });
2740
2744
  }, _embind_register_integer:function(a, b, c, d, e) {
2741
2745
  b = U(b);
2742
2746
  -1 === e && (e = 4294967295);
2743
- e = Ec(c);
2747
+ e = Fc(c);
2744
2748
  var f = l => l;
2745
2749
  if (0 === d) {
2746
2750
  var g = 32 - 8 * c;
@@ -2751,7 +2755,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2751
2755
  } : function(l, p) {
2752
2756
  return p;
2753
2757
  };
2754
- W(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:cd(b, e, 0 !== d), K:null,});
2758
+ Ec(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:dd(b, e, 0 !== d), K:null,});
2755
2759
  }, _embind_register_memory_view:function(a, b, c) {
2756
2760
  function d(f) {
2757
2761
  f >>= 2;
@@ -2760,11 +2764,11 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2760
2764
  }
2761
2765
  var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
2762
2766
  c = U(c);
2763
- W(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Ub:!0,});
2767
+ Ec(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Xb:!0,});
2764
2768
  }, _embind_register_std_string:function(a, b) {
2765
2769
  b = U(b);
2766
2770
  var c = "std::string" === b;
2767
- W(a, {name:b, fromWireType:function(d) {
2771
+ Ec(a, {name:b, fromWireType:function(d) {
2768
2772
  var e = K[d >> 2], f = d + 4;
2769
2773
  if (c) {
2770
2774
  for (var g = f, l = 0; l <= e; ++l) {
@@ -2818,19 +2822,19 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2818
2822
  }, _embind_register_std_wstring:function(a, b, c) {
2819
2823
  c = U(c);
2820
2824
  if (2 === b) {
2821
- var d = ed;
2822
- var e = fd;
2823
- var f = gd;
2825
+ var d = fd;
2826
+ var e = gd;
2827
+ var f = hd;
2824
2828
  var g = () => wa;
2825
2829
  var l = 1;
2826
2830
  } else {
2827
- 4 === b && (d = hd, e = jd, f = kd, g = () => K, l = 2);
2831
+ 4 === b && (d = jd, e = kd, f = ld, g = () => K, l = 2);
2828
2832
  }
2829
- W(a, {name:c, fromWireType:function(p) {
2833
+ Ec(a, {name:c, fromWireType:function(p) {
2830
2834
  for (var m = K[p >> 2], t = g(), v, x = p + 4, n = 0; n <= m; ++n) {
2831
- var q = p + 4 + n * b;
2832
- if (n == m || 0 == t[q >> l]) {
2833
- x = d(x, q - x), void 0 === v ? v = x : (v += String.fromCharCode(0), v += x), x = q + b;
2835
+ var r = p + 4 + n * b;
2836
+ if (n == m || 0 == t[r >> l]) {
2837
+ x = d(x, r - x), void 0 === v ? v = x : (v += String.fromCharCode(0), v += x), x = r + b;
2834
2838
  }
2835
2839
  }
2836
2840
  nc(p);
@@ -2846,12 +2850,12 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2846
2850
  nc(p);
2847
2851
  },});
2848
2852
  }, _embind_register_value_object:function(a, b, c, d, e, f) {
2849
- zc[a] = {name:U(b), Ra:X(c, d), W:X(e, f), bb:[],};
2853
+ zc[a] = {name:U(b), Va:W(c, d), W:W(e, f), fb:[],};
2850
2854
  }, _embind_register_value_object_field:function(a, b, c, d, e, f, g, l, p, m) {
2851
- zc[a].bb.push({Mb:U(b), Sb:c, Qb:X(d, e), Rb:f, hc:g, fc:X(l, p), ic:m,});
2855
+ zc[a].fb.push({Pb:U(b), Vb:c, Tb:W(d, e), Ub:f, kc:g, jc:W(l, p), lc:m,});
2852
2856
  }, _embind_register_void:function(a, b) {
2853
2857
  b = U(b);
2854
- W(a, {$b:!0, name:b, argPackAdvance:0, fromWireType:function() {
2858
+ Ec(a, {cc:!0, name:b, argPackAdvance:0, fromWireType:function() {
2855
2859
  }, toWireType:function() {
2856
2860
  },});
2857
2861
  }, _emscripten_get_now_is_monotonic:() => !0, _emval_as:function(a, b, c) {
@@ -2861,56 +2865,56 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2861
2865
  K[c >> 2] = e;
2862
2866
  return b.toWireType(d, a);
2863
2867
  }, _emval_call_method:function(a, b, c, d, e) {
2864
- a = nd[a];
2868
+ a = od[a];
2865
2869
  b = S(b);
2866
- c = md(c);
2870
+ c = nd(c);
2867
2871
  var f = [];
2868
2872
  K[d >> 2] = T(f);
2869
2873
  return a(b, c, f, e);
2870
2874
  }, _emval_call_void_method:function(a, b, c, d) {
2871
- a = nd[a];
2875
+ a = od[a];
2872
2876
  b = S(b);
2873
- c = md(c);
2877
+ c = nd(c);
2874
2878
  a(b, c, null, d);
2875
- }, _emval_decref:$c, _emval_get_method_caller:function(a, b) {
2876
- var c = pd(a, b), d = c[0];
2879
+ }, _emval_decref:ad, _emval_get_method_caller:function(a, b) {
2880
+ var c = qd(a, b), d = c[0];
2877
2881
  b = d.name + "_$" + c.slice(1).map(function(g) {
2878
2882
  return g.name;
2879
2883
  }).join("_") + "$";
2880
- var e = qd[b];
2884
+ var e = rd[b];
2881
2885
  if (void 0 !== e) {
2882
2886
  return e;
2883
2887
  }
2884
2888
  var f = Array(a - 1);
2885
- e = od((g, l, p, m) => {
2889
+ e = pd((g, l, p, m) => {
2886
2890
  for (var t = 0, v = 0; v < a - 1; ++v) {
2887
2891
  f[v] = c[v + 1].readValueFromPointer(m + t), t += c[v + 1].argPackAdvance;
2888
2892
  }
2889
2893
  g = g[l].apply(g, f);
2890
2894
  for (v = 0; v < a - 1; ++v) {
2891
- c[v + 1].Ib && c[v + 1].Ib(f[v]);
2895
+ c[v + 1].Lb && c[v + 1].Lb(f[v]);
2892
2896
  }
2893
- if (!d.$b) {
2897
+ if (!d.cc) {
2894
2898
  return d.toWireType(p, g);
2895
2899
  }
2896
2900
  });
2897
- return qd[b] = e;
2901
+ return rd[b] = e;
2898
2902
  }, _emval_get_property:function(a, b) {
2899
2903
  a = S(a);
2900
2904
  b = S(b);
2901
2905
  return T(a[b]);
2902
2906
  }, _emval_incref:function(a) {
2903
- 4 < a && (Q.get(a).rb += 1);
2907
+ 4 < a && (Q.get(a).ub += 1);
2904
2908
  }, _emval_new_array:function() {
2905
2909
  return T([]);
2906
2910
  }, _emval_new_cstring:function(a) {
2907
- return T(md(a));
2911
+ return T(nd(a));
2908
2912
  }, _emval_new_object:function() {
2909
2913
  return T({});
2910
2914
  }, _emval_run_destructors:function(a) {
2911
2915
  var b = S(a);
2912
2916
  Ac(b);
2913
- $c(a);
2917
+ ad(a);
2914
2918
  }, _emval_set_property:function(a, b, c) {
2915
2919
  a = S(a);
2916
2920
  b = S(b);
@@ -2940,12 +2944,12 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2940
2944
  var b = k.images;
2941
2945
  b && b.get(a) && b.delete(a);
2942
2946
  }, emscripten_asm_const_int:(a, b, c) => {
2943
- rd.length = 0;
2947
+ sd.length = 0;
2944
2948
  var d;
2945
2949
  for (c >>= 2; d = F[b++];) {
2946
- c += 105 != d & c, rd.push(105 == d ? J[c] : ya[c++ >> 1]), ++c;
2950
+ c += 105 != d & c, sd.push(105 == d ? I[c] : ya[c++ >> 1]), ++c;
2947
2951
  }
2948
- return Ua[a].apply(null, rd);
2952
+ return Ua[a].apply(null, sd);
2949
2953
  }, emscripten_date_now:function() {
2950
2954
  return Date.now();
2951
2955
  }, emscripten_get_now:() => performance.now(), emscripten_memcpy_big:(a, b, c) => F.copyWithin(a, b, b + c), emscripten_resize_heap:a => {
@@ -2979,18 +2983,18 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
2979
2983
  a = w[a];
2980
2984
  b = b ? M(F, b) : "";
2981
2985
  b.startsWith("GL_") && (b = b.substr(3));
2982
- "WEBGL_draw_instanced_base_vertex_base_instance" == b && sd(Z);
2983
- "WEBGL_multi_draw_instanced_base_vertex_base_instance" == b && td(Z);
2986
+ "WEBGL_draw_instanced_base_vertex_base_instance" == b && td(Z);
2987
+ "WEBGL_multi_draw_instanced_base_vertex_base_instance" == b && ud(Z);
2984
2988
  "WEBGL_multi_draw" == b && Gd(Z);
2985
2989
  return !!a.C.getExtension(b);
2986
2990
  }, emscripten_webgl_get_current_context:function() {
2987
- return r ? r.handle : 0;
2991
+ return q ? q.handle : 0;
2988
2992
  }, emscripten_webgl_make_context_current:function(a) {
2989
2993
  return ja(a) ? 0 : -5;
2990
2994
  }, enable_WEBGL_provoking_vertex:function(a) {
2991
2995
  a = w[a].C;
2992
- a.ob = a.getExtension("WEBGL_provoking_vertex");
2993
- return !!a.ob;
2996
+ a.rb = a.getExtension("WEBGL_provoking_vertex");
2997
+ return !!a.rb;
2994
2998
  }, enable_WEBGL_shader_pixel_local_storage_coherent:function(a) {
2995
2999
  a = w[a].C;
2996
3000
  a.ca = a.getExtension("WEBGL_shader_pixel_local_storage");
@@ -3024,7 +3028,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3024
3028
  if (null === b.X) {
3025
3029
  throw new N(8);
3026
3030
  }
3027
- b.Oa && (b.Oa = null);
3031
+ b.Sa && (b.Sa = null);
3028
3032
  try {
3029
3033
  b.m.close && b.m.close(b);
3030
3034
  } catch (c) {
@@ -3064,14 +3068,14 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3064
3068
  if (!m.m.read) {
3065
3069
  throw new N(28);
3066
3070
  }
3067
- var q = "undefined" != typeof x;
3068
- if (!q) {
3071
+ var r = "undefined" != typeof x;
3072
+ if (!r) {
3069
3073
  x = m.position;
3070
3074
  } else if (!m.seekable) {
3071
3075
  throw new N(70);
3072
3076
  }
3073
3077
  var u = m.m.read(m, n, t, v, x);
3074
- q || (m.position += u);
3078
+ r || (m.position += u);
3075
3079
  var y = u;
3076
3080
  if (0 > y) {
3077
3081
  var z = -1;
@@ -3087,11 +3091,11 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3087
3091
  }
3088
3092
  K[d >> 2] = z;
3089
3093
  return 0;
3090
- } catch (A) {
3091
- if ("undefined" == typeof Wb || "ErrnoError" !== A.name) {
3092
- throw A;
3094
+ } catch (B) {
3095
+ if ("undefined" == typeof Wb || "ErrnoError" !== B.name) {
3096
+ throw B;
3093
3097
  }
3094
- return A.aa;
3098
+ return B.aa;
3095
3099
  }
3096
3100
  }, fd_seek:function(a, b, c, d, e) {
3097
3101
  b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
@@ -3102,9 +3106,9 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3102
3106
  var f = Jb(a);
3103
3107
  Rb(f, b, d);
3104
3108
  Qa = [f.position >>> 0, (Pa = f.position, 1.0 <= +Math.abs(Pa) ? 0.0 < Pa ? +Math.floor(Pa / 4294967296.0) >>> 0 : ~~+Math.ceil((Pa - +(~~Pa >>> 0)) / 4294967296.0) >>> 0 : 0)];
3105
- J[e >> 2] = Qa[0];
3106
- J[e + 4 >> 2] = Qa[1];
3107
- f.Oa && 0 === b && 0 === d && (f.Oa = null);
3109
+ I[e >> 2] = Qa[0];
3110
+ I[e + 4 >> 2] = Qa[1];
3111
+ f.Sa && 0 === b && 0 === d && (f.Sa = null);
3108
3112
  return 0;
3109
3113
  } catch (g) {
3110
3114
  if ("undefined" == typeof Wb || "ErrnoError" !== g.name) {
@@ -3137,14 +3141,14 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3137
3141
  throw new N(28);
3138
3142
  }
3139
3143
  m.seekable && m.flags & 1024 && Rb(m, 0, 2);
3140
- var q = "undefined" != typeof x;
3141
- if (!q) {
3144
+ var r = "undefined" != typeof x;
3145
+ if (!r) {
3142
3146
  x = m.position;
3143
3147
  } else if (!m.seekable) {
3144
3148
  throw new N(70);
3145
3149
  }
3146
3150
  var u = m.m.write(m, n, t, v, x, void 0);
3147
- q || (m.position += u);
3151
+ r || (m.position += u);
3148
3152
  var y = u;
3149
3153
  if (0 > y) {
3150
3154
  var z = -1;
@@ -3157,11 +3161,11 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3157
3161
  }
3158
3162
  K[d >> 2] = z;
3159
3163
  return 0;
3160
- } catch (A) {
3161
- if ("undefined" == typeof Wb || "ErrnoError" !== A.name) {
3162
- throw A;
3164
+ } catch (B) {
3165
+ if ("undefined" == typeof Wb || "ErrnoError" !== B.name) {
3166
+ throw B;
3163
3167
  }
3164
- return A.aa;
3168
+ return B.aa;
3165
3169
  }
3166
3170
  }, framebufferPixelLocalClearValuefvWEBGL:function(a, b, c, d, e, f) {
3167
3171
  (a = w[a].C.ca) && a.framebufferPixelLocalClearValuefvWEBGL(b, [c, d, e, f]);
@@ -3172,12 +3176,12 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3172
3176
  }, glActiveTexture:function(a) {
3173
3177
  Z.activeTexture(a);
3174
3178
  }, glAttachShader:function(a, b) {
3175
- Z.attachShader(wd[a], Ad[b]);
3179
+ Z.attachShader(X[a], Ad[b]);
3176
3180
  }, glBindBuffer:function(a, b) {
3177
- 35051 == a ? Z.Za = b : 35052 == a && (Z.Ma = b);
3178
- Z.bindBuffer(a, vd[b]);
3181
+ 35051 == a ? Z.Pa = b : 35052 == a && (Z.Qa = b);
3182
+ Z.bindBuffer(a, wd[b]);
3179
3183
  }, glBindBufferRange:function(a, b, c, d, e) {
3180
- Z.bindBufferRange(a, b, vd[c], d, e);
3184
+ Z.bindBufferRange(a, b, wd[c], d, e);
3181
3185
  }, glBindFramebuffer:function(a, b) {
3182
3186
  Z.bindFramebuffer(a, xd[b]);
3183
3187
  }, glBindRenderbuffer:function(a, b) {
@@ -3198,6 +3202,10 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3198
3202
  c && Z.bufferSubData(a, b, F, d, c);
3199
3203
  }, glClear:function(a) {
3200
3204
  Z.clear(a);
3205
+ }, glClearBufferfv:function(a, b, c) {
3206
+ Z.clearBufferfv(a, b, xa, c >> 2);
3207
+ }, glClearBufferuiv:function(a, b, c) {
3208
+ Z.clearBufferuiv(a, b, K, c >> 2);
3201
3209
  }, glClearColor:function(a, b, c, d) {
3202
3210
  Z.clearColor(a, b, c, d);
3203
3211
  }, glClearDepthf:function(a) {
@@ -3209,11 +3217,11 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3209
3217
  }, glCompileShader:function(a) {
3210
3218
  Z.compileShader(Ad[a]);
3211
3219
  }, glCreateProgram:function() {
3212
- var a = Ed(wd), b = Z.createProgram();
3220
+ var a = Ed(X), b = Z.createProgram();
3213
3221
  b.name = a;
3214
- b.Hc = b.Fc = b.Gc = 0;
3215
- b.Ua = 1;
3216
- wd[a] = b;
3222
+ b.Ba = b.za = b.Aa = 0;
3223
+ b.Ya = 1;
3224
+ X[a] = b;
3217
3225
  return a;
3218
3226
  }, glCreateShader:function(a) {
3219
3227
  var b = Ed(Ad);
@@ -3223,22 +3231,22 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3223
3231
  Z.cullFace(a);
3224
3232
  }, glDeleteBuffers:function(a, b) {
3225
3233
  for (var c = 0; c < a; c++) {
3226
- var d = J[b + 4 * c >> 2], e = vd[d];
3227
- e && (Z.deleteBuffer(e), e.name = 0, vd[d] = null, d == Z.Za && (Z.Za = 0), d == Z.Ma && (Z.Ma = 0));
3234
+ var d = I[b + 4 * c >> 2], e = wd[d];
3235
+ e && (Z.deleteBuffer(e), e.name = 0, wd[d] = null, d == Z.Pa && (Z.Pa = 0), d == Z.Qa && (Z.Qa = 0));
3228
3236
  }
3229
3237
  }, glDeleteFramebuffers:function(a, b) {
3230
3238
  for (var c = 0; c < a; ++c) {
3231
- var d = J[b + 4 * c >> 2], e = xd[d];
3239
+ var d = I[b + 4 * c >> 2], e = xd[d];
3232
3240
  e && (Z.deleteFramebuffer(e), e.name = 0, xd[d] = null);
3233
3241
  }
3234
3242
  }, glDeleteProgram:function(a) {
3235
3243
  if (a) {
3236
- var b = wd[a];
3237
- b ? (Z.deleteProgram(b), b.name = 0, wd[a] = null) : Y(1281);
3244
+ var b = X[a];
3245
+ b ? (Z.deleteProgram(b), b.name = 0, X[a] = null) : Y(1281);
3238
3246
  }
3239
3247
  }, glDeleteRenderbuffers:function(a, b) {
3240
3248
  for (var c = 0; c < a; c++) {
3241
- var d = J[b + 4 * c >> 2], e = yd[d];
3249
+ var d = I[b + 4 * c >> 2], e = yd[d];
3242
3250
  e && (Z.deleteRenderbuffer(e), e.name = 0, yd[d] = null);
3243
3251
  }
3244
3252
  }, glDeleteShader:function(a) {
@@ -3248,12 +3256,12 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3248
3256
  }
3249
3257
  }, glDeleteTextures:function(a, b) {
3250
3258
  for (var c = 0; c < a; c++) {
3251
- var d = J[b + 4 * c >> 2], e = zd[d];
3259
+ var d = I[b + 4 * c >> 2], e = zd[d];
3252
3260
  e && (Z.deleteTexture(e), e.name = 0, zd[d] = null);
3253
3261
  }
3254
3262
  }, glDeleteVertexArrays:function(a, b) {
3255
3263
  for (var c = 0; c < a; c++) {
3256
- var d = J[b + 4 * c >> 2];
3264
+ var d = I[b + 4 * c >> 2];
3257
3265
  Z.deleteVertexArray(Bd[d]);
3258
3266
  Bd[d] = null;
3259
3267
  }
@@ -3271,7 +3279,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3271
3279
  Z.drawArraysInstanced(a, b, c, d);
3272
3280
  }, glDrawBuffers:function(a, b) {
3273
3281
  for (var c = Kd[a], d = 0; d < a; d++) {
3274
- c[d] = J[b + 4 * d >> 2];
3282
+ c[d] = I[b + 4 * d >> 2];
3275
3283
  }
3276
3284
  Z.drawBuffers(c);
3277
3285
  }, glDrawElements:function(a, b, c, d) {
@@ -3291,7 +3299,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3291
3299
  }, glFrontFace:function(a) {
3292
3300
  Z.frontFace(a);
3293
3301
  }, glGenBuffers:function(a, b) {
3294
- Ld(a, b, "createBuffer", vd);
3302
+ Ld(a, b, "createBuffer", wd);
3295
3303
  }, glGenFramebuffers:function(a, b) {
3296
3304
  Ld(a, b, "createFramebuffer", xd);
3297
3305
  }, glGenRenderbuffers:function(a, b) {
@@ -3308,6 +3316,43 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3308
3316
  return a;
3309
3317
  }, glGetIntegerv:function(a, b) {
3310
3318
  Md(a, b);
3319
+ }, glGetProgramiv:function(a, b, c) {
3320
+ if (c) {
3321
+ if (a >= vd) {
3322
+ Y(1281);
3323
+ } else {
3324
+ if (a = X[a], 35716 == b) {
3325
+ a = Z.getProgramInfoLog(a), null === a && (a = "(unknown error)"), I[c >> 2] = a.length + 1;
3326
+ } else if (35719 == b) {
3327
+ if (!a.Ba) {
3328
+ for (b = 0; b < Z.getProgramParameter(a, 35718); ++b) {
3329
+ a.Ba = Math.max(a.Ba, Z.getActiveUniform(a, b).name.length + 1);
3330
+ }
3331
+ }
3332
+ I[c >> 2] = a.Ba;
3333
+ } else if (35722 == b) {
3334
+ if (!a.za) {
3335
+ for (b = 0; b < Z.getProgramParameter(a, 35721); ++b) {
3336
+ a.za = Math.max(a.za, Z.getActiveAttrib(a, b).name.length + 1);
3337
+ }
3338
+ }
3339
+ I[c >> 2] = a.za;
3340
+ } else if (35381 == b) {
3341
+ if (!a.Aa) {
3342
+ for (b = 0; b < Z.getProgramParameter(a, 35382); ++b) {
3343
+ a.Aa = Math.max(a.Aa, Z.getActiveUniformBlockName(a, b).length + 1);
3344
+ }
3345
+ }
3346
+ I[c >> 2] = a.Aa;
3347
+ } else {
3348
+ I[c >> 2] = Z.getProgramParameter(a, b);
3349
+ }
3350
+ }
3351
+ } else {
3352
+ Y(1281);
3353
+ }
3354
+ }, glGetShaderiv:function(a, b, c) {
3355
+ c ? 35716 == b ? (a = Z.getShaderInfoLog(Ad[a]), null === a && (a = "(unknown error)"), I[c >> 2] = a ? a.length + 1 : 0) : 35720 == b ? (a = Z.getShaderSource(Ad[a]), I[c >> 2] = a ? a.length + 1 : 0) : I[c >> 2] = Z.getShaderParameter(Ad[a], b) : Y(1281);
3311
3356
  }, glGetString:function(a) {
3312
3357
  var b = Cd[a];
3313
3358
  if (!b) {
@@ -3342,23 +3387,23 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3342
3387
  }
3343
3388
  return b;
3344
3389
  }, glGetUniformBlockIndex:function(a, b) {
3345
- return Z.getUniformBlockIndex(wd[a], b ? M(F, b) : "");
3390
+ return Z.getUniformBlockIndex(X[a], b ? M(F, b) : "");
3346
3391
  }, glGetUniformLocation:function(a, b) {
3347
3392
  b = b ? M(F, b) : "";
3348
- if (a = wd[a]) {
3349
- var c = a, d = c.oa, e = c.wb, f;
3393
+ if (a = X[a]) {
3394
+ var c = a, d = c.oa, e = c.zb, f;
3350
3395
  if (!d) {
3351
- for (c.oa = d = {}, c.vb = {}, f = 0; f < Z.getProgramParameter(c, 35718); ++f) {
3396
+ for (c.oa = d = {}, c.yb = {}, f = 0; f < Z.getProgramParameter(c, 35718); ++f) {
3352
3397
  var g = Z.getActiveUniform(c, f);
3353
3398
  var l = g.name;
3354
3399
  g = g.size;
3355
3400
  var p = Pd(l);
3356
3401
  p = 0 < p ? l.slice(0, p) : l;
3357
- var m = c.Ua;
3358
- c.Ua += g;
3402
+ var m = c.Ya;
3403
+ c.Ya += g;
3359
3404
  e[p] = [g, m];
3360
3405
  for (l = 0; l < g; ++l) {
3361
- d[m] = l, c.vb[m++] = p;
3406
+ d[m] = l, c.yb[m++] = p;
3362
3407
  }
3363
3408
  }
3364
3409
  }
@@ -3367,7 +3412,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3367
3412
  e = b;
3368
3413
  f = Pd(b);
3369
3414
  0 < f && (d = parseInt(b.slice(f + 1)) >>> 0, e = b.slice(0, f));
3370
- if ((e = a.wb[e]) && d < e[0] && (d += e[1], c[d] = c[d] || Z.getUniformLocation(a, b))) {
3415
+ if ((e = a.zb[e]) && d < e[0] && (d += e[1], c[d] = c[d] || Z.getUniformLocation(a, b))) {
3371
3416
  return d;
3372
3417
  }
3373
3418
  } else {
@@ -3376,23 +3421,30 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3376
3421
  return -1;
3377
3422
  }, glInvalidateFramebuffer:function(a, b, c) {
3378
3423
  for (var d = Kd[b], e = 0; e < b; e++) {
3379
- d[e] = J[c + 4 * e >> 2];
3424
+ d[e] = I[c + 4 * e >> 2];
3380
3425
  }
3381
3426
  Z.invalidateFramebuffer(a, d);
3382
3427
  }, glLinkProgram:function(a) {
3383
- a = wd[a];
3428
+ a = X[a];
3384
3429
  Z.linkProgram(a);
3385
3430
  a.oa = 0;
3386
- a.wb = {};
3431
+ a.zb = {};
3387
3432
  }, glPixelStorei:function(a, b) {
3388
3433
  Z.pixelStorei(a, b);
3434
+ }, glReadPixels:function(a, b, c, d, e, f, g) {
3435
+ if (Z.Pa) {
3436
+ Z.readPixels(a, b, c, d, e, f, g);
3437
+ } else {
3438
+ var l = Qd(f);
3439
+ Z.readPixels(a, b, c, d, e, f, l, g >> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
3440
+ }
3389
3441
  }, glRenderbufferStorageMultisample:function(a, b, c, d, e) {
3390
3442
  Z.renderbufferStorageMultisample(a, b, c, d, e);
3391
3443
  }, glScissor:function(a, b, c, d) {
3392
3444
  Z.scissor(a, b, c, d);
3393
3445
  }, glShaderSource:function(a, b, c, d) {
3394
3446
  for (var e = "", f = 0; f < b; ++f) {
3395
- var g = d ? J[d + 4 * f >> 2] : -1, l = J[c + 4 * f >> 2];
3447
+ var g = d ? I[d + 4 * f >> 2] : -1, l = I[c + 4 * f >> 2];
3396
3448
  g = l ? M(F, l, 0 > g ? void 0 : g) : "";
3397
3449
  e += g;
3398
3450
  }
@@ -3412,33 +3464,32 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3412
3464
  }, glTexStorage2D:function(a, b, c, d, e) {
3413
3465
  Z.texStorage2D(a, b, c, d, e);
3414
3466
  }, glTexSubImage2D:function(a, b, c, d, e, f, g, l, p) {
3415
- if (Z.Ma) {
3467
+ if (Z.Qa) {
3416
3468
  Z.texSubImage2D(a, b, c, d, e, f, g, l, p);
3417
3469
  } else if (p) {
3418
- var m = l - 5120;
3419
- m = 0 == m ? D : 1 == m ? F : 2 == m ? G : 4 == m ? J : 6 == m ? xa : 5 == m || 28922 == m || 28520 == m || 30779 == m || 30782 == m ? K : wa;
3470
+ var m = Qd(l);
3420
3471
  Z.texSubImage2D(a, b, c, d, e, f, g, l, m, p >> 31 - Math.clz32(m.BYTES_PER_ELEMENT));
3421
3472
  } else {
3422
3473
  Z.texSubImage2D(a, b, c, d, e, f, g, l, null);
3423
3474
  }
3424
3475
  }, glUniform1i:function(a, b) {
3425
3476
  var c = Z, d = c.uniform1i;
3426
- var e = Z.Hb;
3477
+ var e = Z.Kb;
3427
3478
  if (e) {
3428
3479
  var f = e.oa[a];
3429
- "number" == typeof f && (e.oa[a] = f = Z.getUniformLocation(e, e.vb[a] + (0 < f ? "[" + f + "]" : "")));
3480
+ "number" == typeof f && (e.oa[a] = f = Z.getUniformLocation(e, e.yb[a] + (0 < f ? "[" + f + "]" : "")));
3430
3481
  a = f;
3431
3482
  } else {
3432
3483
  Y(1282), a = void 0;
3433
3484
  }
3434
3485
  d.call(c, a, b);
3435
3486
  }, glUniformBlockBinding:function(a, b, c) {
3436
- a = wd[a];
3487
+ a = X[a];
3437
3488
  Z.uniformBlockBinding(a, b, c);
3438
3489
  }, glUseProgram:function(a) {
3439
- a = wd[a];
3490
+ a = X[a];
3440
3491
  Z.useProgram(a);
3441
- Z.Hb = a;
3492
+ Z.Kb = a;
3442
3493
  }, glVertexAttribDivisor:function(a, b) {
3443
3494
  Z.vertexAttribDivisor(a, b);
3444
3495
  }, glVertexAttribIPointer:function(a, b, c, d, e) {
@@ -3448,8 +3499,8 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3448
3499
  }, glViewport:function(a, b, c, d) {
3449
3500
  Z.viewport(a, b, c, d);
3450
3501
  }, provokingVertexWEBGL:function(a, b) {
3451
- (a = w[a].C.ob) && a.provokingVertexWEBGL(b);
3452
- }, strftime_l:(a, b, c, d) => Td(a, b, c, d), upload_image:function(a, b) {
3502
+ (a = w[a].C.rb) && a.provokingVertexWEBGL(b);
3503
+ }, strftime_l:(a, b, c, d) => Ud(a, b, c, d), upload_image:function(a, b) {
3453
3504
  var c = k.images;
3454
3505
  c && (b = c.get(b)) && (a = w[a].C, a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !0), a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, b), a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !1));
3455
3506
  }};
@@ -3469,24 +3520,24 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
3469
3520
  }
3470
3521
  return c;
3471
3522
  }
3472
- var b = {env:Yd, wasi_snapshot_preview1:Yd,};
3523
+ var b = {env:Zd, wasi_snapshot_preview1:Zd,};
3473
3524
  Fa++;
3474
3525
  k.monitorRunDependencies && k.monitorRunDependencies(Fa);
3475
3526
  if (k.instantiateWasm) {
3476
3527
  try {
3477
3528
  return k.instantiateWasm(b, a);
3478
3529
  } catch (c) {
3479
- ra("Module.instantiateWasm callback failed with error: " + c), ca(c);
3530
+ ra("Module.instantiateWasm callback failed with error: " + c), ba(c);
3480
3531
  }
3481
3532
  }
3482
3533
  Oa(b, function(c) {
3483
3534
  a(c.instance);
3484
- }).catch(ca);
3535
+ }).catch(ba);
3485
3536
  return {};
3486
3537
  })();
3487
3538
  var nc = a => (nc = C.free)(a), Nd = a => (Nd = C.malloc)(a);
3488
3539
  k._setWebImage = (a, b, c) => (k._setWebImage = C.setWebImage)(a, b, c);
3489
- var Xd = () => (Xd = C.__errno_location)(), Ra = k._ma_device__on_notification_unlocked = a => (Ra = k._ma_device__on_notification_unlocked = C.ma_device__on_notification_unlocked)(a);
3540
+ var Yd = () => (Yd = C.__errno_location)(), Ra = k._ma_device__on_notification_unlocked = a => (Ra = k._ma_device__on_notification_unlocked = C.ma_device__on_notification_unlocked)(a);
3490
3541
  k._ma_malloc_emscripten = (a, b) => (k._ma_malloc_emscripten = C.ma_malloc_emscripten)(a, b);
3491
3542
  k._ma_free_emscripten = (a, b) => (k._ma_free_emscripten = C.ma_free_emscripten)(a, b);
3492
3543
  var Sa = k._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Sa = k._ma_device_process_pcm_frames_capture__webaudio = C.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Ta = k._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Ta = k._ma_device_process_pcm_frames_playback__webaudio = C.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), mc = a => (mc = C.__getTypeName)(a);
@@ -3501,16 +3552,16 @@ k.dynCall_viijii = (a, b, c, d, e, f, g) => (k.dynCall_viijii = C.dynCall_viijii
3501
3552
  k.dynCall_iiiiij = (a, b, c, d, e, f, g) => (k.dynCall_iiiiij = C.dynCall_iiiiij)(a, b, c, d, e, f, g);
3502
3553
  k.dynCall_iiiiijj = (a, b, c, d, e, f, g, l, p) => (k.dynCall_iiiiijj = C.dynCall_iiiiijj)(a, b, c, d, e, f, g, l, p);
3503
3554
  k.dynCall_iiiiiijj = (a, b, c, d, e, f, g, l, p, m) => (k.dynCall_iiiiiijj = C.dynCall_iiiiiijj)(a, b, c, d, e, f, g, l, p, m);
3504
- k.___start_em_js = 526516;
3505
- k.___stop_em_js = 529271;
3506
- var Zd;
3507
- Ha = function $d() {
3508
- Zd || ae();
3509
- Zd || (Ha = $d);
3555
+ k.___start_em_js = 531444;
3556
+ k.___stop_em_js = 534199;
3557
+ var $d;
3558
+ Ha = function ae() {
3559
+ $d || be();
3560
+ $d || (Ha = ae);
3510
3561
  };
3511
- function ae() {
3562
+ function be() {
3512
3563
  function a() {
3513
- if (!Zd && (Zd = !0, k.calledRun = !0, !va)) {
3564
+ if (!$d && ($d = !0, k.calledRun = !0, !va)) {
3514
3565
  k.noFSInit || Tb || (Tb = !0, Sb(), k.stdin = k.stdin, k.stdout = k.stdout, k.stderr = k.stderr, k.stdin ? Vb("stdin", k.stdin) : Ob("/dev/tty", "/dev/stdin"), k.stdout ? Vb("stdout", null, k.stdout) : Ob("/dev/tty", "/dev/stdout"), k.stderr ? Vb("stderr", null, k.stderr) : Ob("/dev/tty1", "/dev/stderr"), Qb("/dev/stdin", 0), Qb("/dev/stdout", 1), Qb("/dev/stderr", 1));
3515
3566
  zb = !1;
3516
3567
  Va(Ca);
@@ -3547,7 +3598,7 @@ if (k.preInit) {
3547
3598
  k.preInit.pop()();
3548
3599
  }
3549
3600
  }
3550
- ae();
3601
+ be();
3551
3602
 
3552
3603
 
3553
3604
 
@@ -3562,7 +3613,7 @@ ae();
3562
3613
  /* 2 */
3563
3614
  /***/ ((module) => {
3564
3615
 
3565
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl2","version":"2.31.1","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}}');
3616
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl2","version":"2.31.3","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}}');
3566
3617
 
3567
3618
  /***/ }),
3568
3619
  /* 3 */
@@ -3709,11 +3760,12 @@ __webpack_require__.r(__webpack_exports__);
3709
3760
  /* harmony export */ BLANK_URL: () => (/* reexport safe */ _sanitizeUrl__WEBPACK_IMPORTED_MODULE_1__.BLANK_URL),
3710
3761
  /* harmony export */ CustomFileAssetLoaderWrapper: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.CustomFileAssetLoaderWrapper),
3711
3762
  /* harmony export */ FileAssetWrapper: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.FileAssetWrapper),
3712
- /* harmony export */ Finalizable: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.Finalizable),
3763
+ /* harmony export */ FileFinalizer: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.FileFinalizer),
3713
3764
  /* harmony export */ FontAssetWrapper: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.FontAssetWrapper),
3714
3765
  /* harmony export */ FontWrapper: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.FontWrapper),
3715
3766
  /* harmony export */ ImageAssetWrapper: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.ImageAssetWrapper),
3716
3767
  /* harmony export */ ImageWrapper: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.ImageWrapper),
3768
+ /* harmony export */ createFinalization: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.createFinalization),
3717
3769
  /* harmony export */ finalizationRegistry: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.finalizationRegistry),
3718
3770
  /* harmony export */ registerTouchInteractions: () => (/* reexport safe */ _registerTouchInteractions__WEBPACK_IMPORTED_MODULE_0__.registerTouchInteractions),
3719
3771
  /* harmony export */ sanitizeUrl: () => (/* reexport safe */ _sanitizeUrl__WEBPACK_IMPORTED_MODULE_1__.sanitizeUrl)
@@ -3980,11 +4032,12 @@ __webpack_require__.r(__webpack_exports__);
3980
4032
  /* harmony export */ AudioWrapper: () => (/* binding */ AudioWrapper),
3981
4033
  /* harmony export */ CustomFileAssetLoaderWrapper: () => (/* binding */ CustomFileAssetLoaderWrapper),
3982
4034
  /* harmony export */ FileAssetWrapper: () => (/* binding */ FileAssetWrapper),
3983
- /* harmony export */ Finalizable: () => (/* binding */ Finalizable),
4035
+ /* harmony export */ FileFinalizer: () => (/* binding */ FileFinalizer),
3984
4036
  /* harmony export */ FontAssetWrapper: () => (/* binding */ FontAssetWrapper),
3985
4037
  /* harmony export */ FontWrapper: () => (/* binding */ FontWrapper),
3986
4038
  /* harmony export */ ImageAssetWrapper: () => (/* binding */ ImageAssetWrapper),
3987
4039
  /* harmony export */ ImageWrapper: () => (/* binding */ ImageWrapper),
4040
+ /* harmony export */ createFinalization: () => (/* binding */ createFinalization),
3988
4041
  /* harmony export */ finalizationRegistry: () => (/* binding */ finalizationRegistry)
3989
4042
  /* harmony export */ });
3990
4043
  var __extends = (undefined && undefined.__extends) || (function () {
@@ -4002,11 +4055,33 @@ var __extends = (undefined && undefined.__extends) || (function () {
4002
4055
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4003
4056
  };
4004
4057
  })();
4005
- var Finalizable = /** @class */ (function () {
4006
- function Finalizable() {
4058
+ var FileFinalizer = /** @class */ (function () {
4059
+ function FileFinalizer(file) {
4007
4060
  this.selfUnref = false;
4061
+ this._file = file;
4008
4062
  }
4009
- return Finalizable;
4063
+ FileFinalizer.prototype.unref = function () {
4064
+ if (this._file) {
4065
+ this._file.unref();
4066
+ }
4067
+ };
4068
+ return FileFinalizer;
4069
+ }());
4070
+ var ObjectFinalizer = /** @class */ (function () {
4071
+ function ObjectFinalizer(finalizableObject) {
4072
+ this._finalizableObject = finalizableObject;
4073
+ }
4074
+ ObjectFinalizer.prototype.unref = function () {
4075
+ this._finalizableObject.unref();
4076
+ };
4077
+ return ObjectFinalizer;
4078
+ }());
4079
+ var AssetWrapper = /** @class */ (function () {
4080
+ function AssetWrapper() {
4081
+ this.selfUnref = false;
4082
+ }
4083
+ AssetWrapper.prototype.unref = function () { };
4084
+ return AssetWrapper;
4010
4085
  }());
4011
4086
  var ImageWrapper = /** @class */ (function (_super) {
4012
4087
  __extends(ImageWrapper, _super);
@@ -4028,7 +4103,7 @@ var ImageWrapper = /** @class */ (function (_super) {
4028
4103
  }
4029
4104
  };
4030
4105
  return ImageWrapper;
4031
- }(Finalizable));
4106
+ }(AssetWrapper));
4032
4107
  var AudioWrapper = /** @class */ (function (_super) {
4033
4108
  __extends(AudioWrapper, _super);
4034
4109
  function AudioWrapper(audio) {
@@ -4049,7 +4124,7 @@ var AudioWrapper = /** @class */ (function (_super) {
4049
4124
  }
4050
4125
  };
4051
4126
  return AudioWrapper;
4052
- }(Finalizable));
4127
+ }(AssetWrapper));
4053
4128
  var FontWrapper = /** @class */ (function (_super) {
4054
4129
  __extends(FontWrapper, _super);
4055
4130
  function FontWrapper(font) {
@@ -4070,7 +4145,7 @@ var FontWrapper = /** @class */ (function (_super) {
4070
4145
  }
4071
4146
  };
4072
4147
  return FontWrapper;
4073
- }(Finalizable));
4148
+ }(AssetWrapper));
4074
4149
  var CustomFileAssetLoaderWrapper = /** @class */ (function () {
4075
4150
  function CustomFileAssetLoaderWrapper(runtime, loaderCallback) {
4076
4151
  this._assetLoaderCallback = loaderCallback;
@@ -4217,8 +4292,12 @@ var MyFinalizationRegistry = typeof FinalizationRegistry !== "undefined"
4217
4292
  ? FinalizationRegistry
4218
4293
  : FakeFinalizationRegistry;
4219
4294
  var finalizationRegistry = new MyFinalizationRegistry(function (ob) {
4220
- ob.unref();
4295
+ ob === null || ob === void 0 ? void 0 : ob.unref();
4221
4296
  });
4297
+ var createFinalization = function (target, finalizable) {
4298
+ var finalizer = new ObjectFinalizer(finalizable);
4299
+ finalizationRegistry.register(target, finalizer);
4300
+ };
4222
4301
 
4223
4302
 
4224
4303
 
@@ -4948,9 +5027,6 @@ var Animator = /** @class */ (function () {
4948
5027
  if (sm) {
4949
5028
  var newStateMachine = new StateMachine(sm, this.runtime, playing, this.artboard);
4950
5029
  this.stateMachines.push(newStateMachine);
4951
- if (!playing) {
4952
- newStateMachine.advanceAndApply(0);
4953
- }
4954
5030
  }
4955
5031
  else {
4956
5032
  console.warn("State Machine with name ".concat(animatables[i], " not found."));
@@ -4969,6 +5045,16 @@ var Animator = /** @class */ (function () {
4969
5045
  Animator.prototype.play = function (animatables) {
4970
5046
  return this.add(animatables, true);
4971
5047
  };
5048
+ /**
5049
+ * Advance state machines if they are paused after initialization
5050
+ */
5051
+ Animator.prototype.advanceIfPaused = function () {
5052
+ this.stateMachines.forEach(function (sm) {
5053
+ if (!sm.playing) {
5054
+ sm.advanceAndApply(0);
5055
+ }
5056
+ });
5057
+ };
4972
5058
  /**
4973
5059
  * Pauses named animations and state machines, or everything if nothing is
4974
5060
  * specified
@@ -5512,6 +5598,7 @@ var RiveFile = /** @class */ (function () {
5512
5598
  this.enableRiveAssetCDN = true;
5513
5599
  this.referenceCount = 0;
5514
5600
  this.destroyed = false;
5601
+ this.selfUnref = false;
5515
5602
  this.src = params.src;
5516
5603
  this.buffer = params.buffer;
5517
5604
  if (params.assetLoader)
@@ -5527,19 +5614,25 @@ var RiveFile = /** @class */ (function () {
5527
5614
  if (params.onLoadError)
5528
5615
  this.on(EventType.LoadError, params.onLoadError);
5529
5616
  }
5617
+ RiveFile.prototype.releaseFile = function () {
5618
+ var _a;
5619
+ if (this.selfUnref) {
5620
+ (_a = this.file) === null || _a === void 0 ? void 0 : _a.unref();
5621
+ }
5622
+ this.file = null;
5623
+ };
5530
5624
  RiveFile.prototype.initData = function () {
5531
5625
  return __awaiter(this, void 0, void 0, function () {
5532
- var _a, loader, loaderWrapper, _b;
5533
- var _c;
5534
- return __generator(this, function (_d) {
5535
- switch (_d.label) {
5626
+ var _a, loader, loaderWrapper, _b, fileFinalizer;
5627
+ return __generator(this, function (_c) {
5628
+ switch (_c.label) {
5536
5629
  case 0:
5537
5630
  if (!this.src) return [3 /*break*/, 2];
5538
5631
  _a = this;
5539
5632
  return [4 /*yield*/, loadRiveFile(this.src)];
5540
5633
  case 1:
5541
- _a.buffer = _d.sent();
5542
- _d.label = 2;
5634
+ _a.buffer = _c.sent();
5635
+ _c.label = 2;
5543
5636
  case 2:
5544
5637
  if (this.destroyed) {
5545
5638
  return [2 /*return*/];
@@ -5553,10 +5646,11 @@ var RiveFile = /** @class */ (function () {
5553
5646
  return [4 /*yield*/, this.runtime.load(new Uint8Array(this.buffer), loader, this.enableRiveAssetCDN)];
5554
5647
  case 3:
5555
5648
  // Load the Rive file
5556
- _b.file = _d.sent();
5649
+ _b.file = _c.sent();
5650
+ fileFinalizer = new _utils__WEBPACK_IMPORTED_MODULE_3__.FileFinalizer(this.file);
5651
+ _utils__WEBPACK_IMPORTED_MODULE_3__.finalizationRegistry.register(this, fileFinalizer);
5557
5652
  if (this.destroyed) {
5558
- (_c = this.file) === null || _c === void 0 ? void 0 : _c.delete();
5559
- this.file = null;
5653
+ this.releaseFile();
5560
5654
  return [2 /*return*/];
5561
5655
  }
5562
5656
  if (this.file !== null) {
@@ -5637,12 +5731,10 @@ var RiveFile = /** @class */ (function () {
5637
5731
  });
5638
5732
  };
5639
5733
  RiveFile.prototype.cleanup = function () {
5640
- var _a;
5641
5734
  this.referenceCount -= 1;
5642
5735
  if (this.referenceCount <= 0) {
5643
5736
  this.removeAllRiveEventListeners();
5644
- (_a = this.file) === null || _a === void 0 ? void 0 : _a.delete();
5645
- this.file = null;
5737
+ this.releaseFile();
5646
5738
  this.destroyed = true;
5647
5739
  }
5648
5740
  };
@@ -5994,6 +6086,9 @@ var Rive = /** @class */ (function () {
5994
6086
  type: EventType.Load,
5995
6087
  data: (_a = this.src) !== null && _a !== void 0 ? _a : "buffer",
5996
6088
  });
6089
+ // Only initialize paused state machines after the load event has been fired
6090
+ // to allow users to initialize inputs and view models before the first advance
6091
+ this.animator.advanceIfPaused();
5997
6092
  // Flag ready for playback commands and clear the task queue; this order
5998
6093
  // is important or it may infinitely recurse
5999
6094
  this.readyForPlaying = true;
@@ -6029,12 +6124,6 @@ var Rive = /** @class */ (function () {
6029
6124
  }
6030
6125
  this.artboard = rootArtboard;
6031
6126
  rootArtboard.volume = this._volume * audioManager.systemVolume;
6032
- // Check that the artboard has at least 1 animation
6033
- if (this.artboard.animationCount() < 1) {
6034
- var msg = "Artboard has no animations";
6035
- this.eventManager.fire({ type: EventType.LoadError, data: msg });
6036
- throw msg;
6037
- }
6038
6127
  // Initialize the animator
6039
6128
  this.animator = new Animator(this.runtime, this.artboard, this.eventManager);
6040
6129
  // Initialize the animations; as loaded hasn't happened yet, we need to