@rive-app/canvas 2.29.0 → 2.29.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/rive.js CHANGED
@@ -31,7 +31,7 @@ m.ready = new Promise((a, b) => {
31
31
  aa = a;
32
32
  ba = b;
33
33
  });
34
- function fa() {
34
+ function ca() {
35
35
  function a(g) {
36
36
  const n = d;
37
37
  c = b = 0;
@@ -77,7 +77,7 @@ function fa() {
77
77
  this.pb = function() {
78
78
  };
79
79
  }
80
- function ha(a) {
80
+ function fa(a) {
81
81
  console.assert(!0);
82
82
  const b = new Map();
83
83
  let c = -Infinity;
@@ -92,9 +92,9 @@ function ha(a) {
92
92
  return c << a;
93
93
  };
94
94
  }
95
- const ia = m.onRuntimeInitialized;
95
+ const ha = m.onRuntimeInitialized;
96
96
  m.onRuntimeInitialized = function() {
97
- ia && ia();
97
+ ha && ha();
98
98
  let a = m.decodeAudio;
99
99
  m.decodeAudio = function(e, f) {
100
100
  e = a(e);
@@ -156,7 +156,7 @@ m.onRuntimeInitialized = function() {
156
156
  return d.call(this, e, f, g, n, p);
157
157
  };
158
158
  };
159
- const ja = "createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "), ka = new function() {
159
+ const ia = "createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "), ja = new function() {
160
160
  function a() {
161
161
  if (!b) {
162
162
  var k = document.createElement("canvas"), t = {alpha:1, depth:0, stencil:0, antialias:0, premultipliedAlpha:1, preserveDrawingBuffer:0, powerPreference:"high-performance", failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:1, explicitSwapControl:1, renderViaOffscreenBackBuffer:1,};
@@ -195,7 +195,7 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
195
195
  }
196
196
  },});
197
197
  d = Math.min(r.getParameter(r.MAX_RENDERBUFFER_SIZE), r.getParameter(r.MAX_TEXTURE_SIZE));
198
- function B(D, w, M) {
198
+ function A(D, w, M) {
199
199
  w = r.createShader(w);
200
200
  r.shaderSource(w, M);
201
201
  r.compileShader(w);
@@ -206,8 +206,8 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
206
206
  r.attachShader(D, w);
207
207
  }
208
208
  k = r.createProgram();
209
- B(k, r.VERTEX_SHADER, "attribute vec2 vertex;\n attribute vec2 uv;\n uniform vec4 mat;\n uniform vec2 translate;\n varying vec2 st;\n void main() {\n st = uv;\n gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);\n }");
210
- B(k, r.FRAGMENT_SHADER, "precision highp float;\n uniform sampler2D image;\n varying vec2 st;\n void main() {\n gl_FragColor = texture2D(image, st);\n }");
209
+ A(k, r.VERTEX_SHADER, "attribute vec2 vertex;\n attribute vec2 uv;\n uniform vec4 mat;\n uniform vec2 translate;\n varying vec2 st;\n void main() {\n st = uv;\n gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);\n }");
210
+ A(k, r.FRAGMENT_SHADER, "precision highp float;\n uniform sampler2D image;\n varying vec2 st;\n void main() {\n gl_FragColor = texture2D(image, st);\n }");
211
211
  r.bindAttribLocation(k, 0, "vertex");
212
212
  r.bindAttribLocation(k, 1, "uv");
213
213
  r.linkProgram(k);
@@ -253,8 +253,8 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
253
253
  2 == c ? (b.texParameteri(b.TEXTURE_2D, b.TEXTURE_MIN_FILTER, b.LINEAR_MIPMAP_LINEAR), b.generateMipmap(b.TEXTURE_2D)) : b.texParameteri(b.TEXTURE_2D, b.TEXTURE_MIN_FILTER, b.LINEAR);
254
254
  return t;
255
255
  };
256
- const l = new ha(8), u = new ha(8), v = new ha(10), x = new ha(10);
257
- this.Qb = function(k, t, r, B, D) {
256
+ const l = new fa(8), u = new fa(8), v = new fa(10), y = new fa(10);
257
+ this.Qb = function(k, t, r, A, D) {
258
258
  if (a()) {
259
259
  var w = l.push(k), M = u.push(t);
260
260
  if (b.canvas) {
@@ -266,19 +266,19 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
266
266
  b.clearColor(0, 0, 0, 0);
267
267
  b.clear(b.COLOR_BUFFER_BIT);
268
268
  b.enable(b.SCISSOR_TEST);
269
- r.sort((H, ca) => ca.xb - H.xb);
270
- w = v.push(B);
269
+ r.sort((H, da) => da.xb - H.xb);
270
+ w = v.push(A);
271
271
  g != w && (b.bufferData(b.ARRAY_BUFFER, 8 * w, b.DYNAMIC_DRAW), g = w);
272
272
  w = 0;
273
273
  for (var T of r) {
274
274
  b.bufferSubData(b.ARRAY_BUFFER, w, T.Ua), w += 4 * T.Ua.length;
275
275
  }
276
- console.assert(w == 4 * B);
277
- for (var da of r) {
278
- b.bufferSubData(b.ARRAY_BUFFER, w, da.Db), w += 4 * da.Db.length;
276
+ console.assert(w == 4 * A);
277
+ for (var ea of r) {
278
+ b.bufferSubData(b.ARRAY_BUFFER, w, ea.Db), w += 4 * ea.Db.length;
279
279
  }
280
- console.assert(w == 8 * B);
281
- w = x.push(D);
280
+ console.assert(w == 8 * A);
281
+ w = y.push(D);
282
282
  n != w && (b.bufferData(b.ELEMENT_ARRAY_BUFFER, 2 * w, b.DYNAMIC_DRAW), n = w);
283
283
  T = 0;
284
284
  for (var ra of r) {
@@ -286,22 +286,22 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
286
286
  }
287
287
  console.assert(T == 2 * D);
288
288
  ra = 0;
289
- da = !0;
289
+ ea = !0;
290
290
  w = T = 0;
291
291
  for (const H of r) {
292
292
  H.image.Ka != ra && (b.bindTexture(b.TEXTURE_2D, H.image.Ja || null), ra = H.image.Ka);
293
- H.mc ? (b.scissor(H.Za, M - H.$a - H.kb, H.Ac, H.kb), da = !0) : da && (b.scissor(0, M - t, k, t), da = !1);
293
+ H.mc ? (b.scissor(H.Za, M - H.$a - H.kb, H.Ac, H.kb), ea = !0) : ea && (b.scissor(0, M - t, k, t), ea = !1);
294
294
  r = 2 / k;
295
- const ca = -2 / t;
296
- b.uniform4f(e, H.ha[0] * r * H.Ba, H.ha[1] * ca * H.Ca, H.ha[2] * r * H.Ba, H.ha[3] * ca * H.Ca);
297
- b.uniform2f(f, H.ha[4] * r * H.Ba + r * (H.Za - H.ic * H.Ba) - 1, H.ha[5] * ca * H.Ca + ca * (H.$a - H.jc * H.Ca) + 1);
295
+ const da = -2 / t;
296
+ b.uniform4f(e, H.ha[0] * r * H.Ba, H.ha[1] * da * H.Ca, H.ha[2] * r * H.Ba, H.ha[3] * da * H.Ca);
297
+ b.uniform2f(f, H.ha[4] * r * H.Ba + r * (H.Za - H.ic * H.Ba) - 1, H.ha[5] * da * H.Ca + da * (H.$a - H.jc * H.Ca) + 1);
298
298
  b.vertexAttribPointer(0, 2, b.FLOAT, !1, 0, w);
299
- b.vertexAttribPointer(1, 2, b.FLOAT, !1, 0, w + 4 * B);
299
+ b.vertexAttribPointer(1, 2, b.FLOAT, !1, 0, w + 4 * A);
300
300
  b.drawElements(b.TRIANGLES, H.indices.length, b.UNSIGNED_SHORT, T);
301
301
  w += 4 * H.Ua.length;
302
302
  T += 2 * H.indices.length;
303
303
  }
304
- console.assert(w == 4 * B);
304
+ console.assert(w == 4 * A);
305
305
  console.assert(T == 2 * D);
306
306
  }
307
307
  }
@@ -309,7 +309,7 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
309
309
  this.canvas = function() {
310
310
  return a() && b.canvas;
311
311
  };
312
- }(), la = m.onRuntimeInitialized;
312
+ }(), ka = m.onRuntimeInitialized;
313
313
  m.onRuntimeInitialized = function() {
314
314
  function a(q) {
315
315
  switch(q) {
@@ -351,67 +351,67 @@ m.onRuntimeInitialized = function() {
351
351
  return "rgba(" + ((16711680 & q) >>> 16) + "," + ((65280 & q) >>> 8) + "," + ((255 & q) >>> 0) + "," + ((4278190080 & q) >>> 24) / 255 + ")";
352
352
  }
353
353
  function c() {
354
- 0 < M.length && (ka.Qb(w.drawWidth(), w.drawHeight(), M, T, da), M = [], da = T = 0, w.reset(512, 512));
354
+ 0 < M.length && (ja.Qb(w.drawWidth(), w.drawHeight(), M, T, ea), M = [], ea = T = 0, w.reset(512, 512));
355
355
  for (const q of D) {
356
- for (const y of q.H) {
357
- y();
356
+ for (const x of q.H) {
357
+ x();
358
358
  }
359
359
  q.H = [];
360
360
  }
361
361
  D.clear();
362
362
  }
363
- la && la();
363
+ ka && ka();
364
364
  var d = m.RenderPaintStyle;
365
- const e = m.RenderPath, f = m.RenderPaint, g = m.Renderer, n = m.StrokeCap, p = m.StrokeJoin, l = m.BlendMode, u = d.fill, v = d.stroke, x = m.FillRule.evenOdd;
365
+ const e = m.RenderPath, f = m.RenderPaint, g = m.Renderer, n = m.StrokeCap, p = m.StrokeJoin, l = m.BlendMode, u = d.fill, v = d.stroke, y = m.FillRule.evenOdd;
366
366
  let k = 1;
367
- var t = m.RenderImage.extend("CanvasRenderImage", {__construct:function({la:q, xa:y} = {}) {
367
+ var t = m.RenderImage.extend("CanvasRenderImage", {__construct:function({la:q, xa:x} = {}) {
368
368
  this.__parent.__construct.call(this);
369
369
  this.Ka = k;
370
370
  k = k + 1 & 2147483647 || 1;
371
371
  this.la = q;
372
- this.xa = y;
372
+ this.xa = x;
373
373
  }, __destruct:function() {
374
- this.Ja && (ka.Mb(this.Ja), URL.revokeObjectURL(this.Xa));
374
+ this.Ja && (ja.Mb(this.Ja), URL.revokeObjectURL(this.Xa));
375
375
  this.__parent.__destruct.call(this);
376
376
  }, decode:function(q) {
377
- var y = this;
378
- y.xa && y.xa(y);
377
+ var x = this;
378
+ x.xa && x.xa(x);
379
379
  var F = new Image();
380
- y.Xa = URL.createObjectURL(new Blob([q], {type:"image/png",}));
380
+ x.Xa = URL.createObjectURL(new Blob([q], {type:"image/png",}));
381
381
  F.onload = function() {
382
- y.Fb = F;
383
- y.Ja = ka.Lb(F);
384
- y.size(F.width, F.height);
385
- y.la && y.la(y);
382
+ x.Fb = F;
383
+ x.Ja = ja.Lb(F);
384
+ x.size(F.width, F.height);
385
+ x.la && x.la(x);
386
386
  };
387
- F.src = y.Xa;
387
+ F.src = x.Xa;
388
388
  },}), r = e.extend("CanvasRenderPath", {__construct:function() {
389
389
  this.__parent.__construct.call(this);
390
390
  this.T = new Path2D();
391
391
  }, rewind:function() {
392
392
  this.T = new Path2D();
393
- }, addPath:function(q, y, F, G, A, I, J) {
394
- var K = this.T, X = K.addPath;
393
+ }, addPath:function(q, x, F, I, B, G, J) {
394
+ var K = this.T, Z = K.addPath;
395
395
  q = q.T;
396
396
  const Q = new DOMMatrix();
397
- Q.a = y;
397
+ Q.a = x;
398
398
  Q.b = F;
399
- Q.c = G;
400
- Q.d = A;
401
- Q.e = I;
399
+ Q.c = I;
400
+ Q.d = B;
401
+ Q.e = G;
402
402
  Q.f = J;
403
- X.call(K, q, Q);
403
+ Z.call(K, q, Q);
404
404
  }, fillRule:function(q) {
405
405
  this.Wa = q;
406
- }, moveTo:function(q, y) {
407
- this.T.moveTo(q, y);
408
- }, lineTo:function(q, y) {
409
- this.T.lineTo(q, y);
410
- }, cubicTo:function(q, y, F, G, A, I) {
411
- this.T.bezierCurveTo(q, y, F, G, A, I);
406
+ }, moveTo:function(q, x) {
407
+ this.T.moveTo(q, x);
408
+ }, lineTo:function(q, x) {
409
+ this.T.lineTo(q, x);
410
+ }, cubicTo:function(q, x, F, I, B, G) {
411
+ this.T.bezierCurveTo(q, x, F, I, B, G);
412
412
  }, close:function() {
413
413
  this.T.closePath();
414
- },}), B = f.extend("CanvasRenderPaint", {color:function(q) {
414
+ },}), A = f.extend("CanvasRenderPaint", {color:function(q) {
415
415
  this.Ya = b(q);
416
416
  }, thickness:function(q) {
417
417
  this.Ib = q;
@@ -443,44 +443,44 @@ m.onRuntimeInitialized = function() {
443
443
  this.Eb = a(q);
444
444
  }, clearGradient:function() {
445
445
  this.ja = null;
446
- }, linearGradient:function(q, y, F, G) {
447
- this.ja = {zb:q, Ab:y, cb:F, eb:G, Ra:[],};
448
- }, radialGradient:function(q, y, F, G) {
449
- this.ja = {zb:q, Ab:y, cb:F, eb:G, Ra:[], ec:!0,};
450
- }, addStop:function(q, y) {
451
- this.ja.Ra.push({color:q, stop:y,});
446
+ }, linearGradient:function(q, x, F, I) {
447
+ this.ja = {zb:q, Ab:x, cb:F, eb:I, Ra:[],};
448
+ }, radialGradient:function(q, x, F, I) {
449
+ this.ja = {zb:q, Ab:x, cb:F, eb:I, Ra:[], ec:!0,};
450
+ }, addStop:function(q, x) {
451
+ this.ja.Ra.push({color:q, stop:x,});
452
452
  }, completeGradient:function() {
453
- }, draw:function(q, y, F) {
454
- let G = this.Hb;
455
- var A = this.Ya, I = this.ja;
453
+ }, draw:function(q, x, F) {
454
+ let I = this.Hb;
455
+ var B = this.Ya, G = this.ja;
456
456
  q.globalCompositeOperation = this.Eb;
457
- if (null != I) {
458
- A = I.zb;
459
- var J = I.Ab;
460
- const X = I.cb;
461
- var K = I.eb;
462
- const Q = I.Ra;
463
- I.ec ? (I = X - A, K -= J, A = q.createRadialGradient(A, J, 0, A, J, Math.sqrt(I * I + K * K))) : A = q.createLinearGradient(A, J, X, K);
464
- for (let ea = 0, R = Q.length; ea < R; ea++) {
465
- J = Q[ea], A.addColorStop(J.stop, b(J.color));
457
+ if (null != G) {
458
+ B = G.zb;
459
+ var J = G.Ab;
460
+ const Z = G.cb;
461
+ var K = G.eb;
462
+ const Q = G.Ra;
463
+ G.ec ? (G = Z - B, K -= J, B = q.createRadialGradient(B, J, 0, B, J, Math.sqrt(G * G + K * K))) : B = q.createLinearGradient(B, J, Z, K);
464
+ for (let X = 0, R = Q.length; X < R; X++) {
465
+ J = Q[X], B.addColorStop(J.stop, b(J.color));
466
466
  }
467
- this.Ya = A;
467
+ this.Ya = B;
468
468
  this.ja = null;
469
469
  }
470
- switch(G) {
470
+ switch(I) {
471
471
  case v:
472
- q.strokeStyle = A;
472
+ q.strokeStyle = B;
473
473
  q.lineWidth = this.Ib;
474
474
  q.lineCap = this.Ha;
475
475
  q.lineJoin = this.Ia;
476
- q.stroke(y);
476
+ q.stroke(x);
477
477
  break;
478
478
  case u:
479
- q.fillStyle = A, q.fill(y, F);
479
+ q.fillStyle = B, q.fill(x, F);
480
480
  }
481
481
  },});
482
482
  const D = new Set();
483
- let w = null, M = [], T = 0, da = 0;
483
+ let w = null, M = [], T = 0, ea = 0;
484
484
  var ra = m.CanvasRenderer = g.extend("Renderer", {__construct:function(q) {
485
485
  this.__parent.__construct.call(this);
486
486
  this.S = [1, 0, 0, 1, 0, 0];
@@ -497,139 +497,140 @@ m.onRuntimeInitialized = function() {
497
497
  }
498
498
  this.S.splice(q);
499
499
  this.H.push(this.C.restore.bind(this.C));
500
- }, transform:function(q, y, F, G, A, I) {
500
+ }, transform:function(q, x, F, I, B, G) {
501
501
  const J = this.S, K = J.length - 6;
502
- J.splice(K, 6, J[K] * q + J[K + 2] * y, J[K + 1] * q + J[K + 3] * y, J[K] * F + J[K + 2] * G, J[K + 1] * F + J[K + 3] * G, J[K] * A + J[K + 2] * I + J[K + 4], J[K + 1] * A + J[K + 3] * I + J[K + 5]);
503
- this.H.push(this.C.transform.bind(this.C, q, y, F, G, A, I));
502
+ J.splice(K, 6, J[K] * q + J[K + 2] * x, J[K + 1] * q + J[K + 3] * x, J[K] * F + J[K + 2] * I, J[K + 1] * F + J[K + 3] * I, J[K] * B + J[K + 2] * G + J[K + 4], J[K + 1] * B + J[K + 3] * G + J[K + 5]);
503
+ this.H.push(this.C.transform.bind(this.C, q, x, F, I, B, G));
504
504
  }, rotate:function(q) {
505
- const y = Math.sin(q);
505
+ const x = Math.sin(q);
506
506
  q = Math.cos(q);
507
- this.transform(q, y, -y, q, 0, 0);
508
- }, _drawPath:function(q, y) {
509
- this.H.push(y.draw.bind(y, this.C, q.T, q.Wa === x ? "evenodd" : "nonzero"));
510
- }, _drawRiveImage:function(q, y, F) {
511
- var G = q.Fb;
512
- if (G) {
513
- var A = this.C, I = a(y);
507
+ this.transform(q, x, -x, q, 0, 0);
508
+ }, _drawPath:function(q, x) {
509
+ this.H.push(x.draw.bind(x, this.C, q.T, q.Wa === y ? "evenodd" : "nonzero"));
510
+ }, _drawRiveImage:function(q, x, F, I) {
511
+ var B = q.Fb;
512
+ if (B) {
513
+ var G = this.C, J = a(F);
514
514
  this.H.push(function() {
515
- A.globalCompositeOperation = I;
516
- A.globalAlpha = F;
517
- A.drawImage(G, 0, 0);
518
- A.globalAlpha = 1;
515
+ G.globalCompositeOperation = J;
516
+ G.globalAlpha = I;
517
+ G.drawImage(B, 0, 0);
518
+ G.globalAlpha = 1;
519
519
  });
520
520
  }
521
521
  }, _getMatrix:function(q) {
522
- const y = this.S, F = y.length - 6;
523
- for (let G = 0; 6 > G; ++G) {
524
- q[G] = y[F + G];
525
- }
526
- }, _drawImageMesh:function(q, y, F, G, A, I, J, K, X, Q) {
527
- var ea = this.C.canvas.width, R = this.C.canvas.height;
528
- const Yb = X - J, Zb = Q - K;
529
- J = Math.max(J, 0);
522
+ const x = this.S, F = x.length - 6;
523
+ for (let I = 0; 6 > I; ++I) {
524
+ q[I] = x[F + I];
525
+ }
526
+ }, _drawImageMesh:function(q, x, F, I, B, G, J, K, Z, Q, X) {
527
+ x = this.C.canvas.width;
528
+ var R = this.C.canvas.height;
529
+ const Yb = Q - K, Zb = X - Z;
530
530
  K = Math.max(K, 0);
531
- X = Math.min(X, ea);
532
- Q = Math.min(Q, R);
533
- const Ga = X - J, Ha = Q - K;
534
- console.assert(Ga <= Math.min(Yb, ea));
531
+ Z = Math.max(Z, 0);
532
+ Q = Math.min(Q, x);
533
+ X = Math.min(X, R);
534
+ const Ga = Q - K, Ha = X - Z;
535
+ console.assert(Ga <= Math.min(Yb, x));
535
536
  console.assert(Ha <= Math.min(Zb, R));
536
537
  if (!(0 >= Ga || 0 >= Ha)) {
537
- X = Ga < Yb || Ha < Zb;
538
- ea = Q = 1;
539
- var sa = Math.ceil(Ga * Q), ta = Math.ceil(Ha * ea);
540
- R = ka.hc();
541
- sa > R && (Q *= R / sa, sa = R);
542
- ta > R && (ea *= R / ta, ta = R);
538
+ Q = Ga < Yb || Ha < Zb;
539
+ x = X = 1;
540
+ var sa = Math.ceil(Ga * X), ta = Math.ceil(Ha * x);
541
+ R = ja.hc();
542
+ sa > R && (X *= R / sa, sa = R);
543
+ ta > R && (x *= R / ta, ta = R);
543
544
  w || (w = new m.DynamicRectanizer(R), w.reset(512, 512));
544
545
  R = w.addRect(sa, ta);
545
546
  0 > R && (c(), D.add(this), R = w.addRect(sa, ta), console.assert(0 <= R));
546
547
  var $b = R & 65535, ac = R >> 16;
547
- M.push({ha:this.S.slice(this.S.length - 6), image:q, Za:$b, $a:ac, ic:J, jc:K, Ac:sa, kb:ta, Ba:Q, Ca:ea, Ua:new Float32Array(G), Db:new Float32Array(A), indices:new Uint16Array(I), mc:X, xb:q.Ka << 1 | (X ? 1 : 0),});
548
- T += G.length;
549
- da += I.length;
550
- var za = this.C, qd = a(y);
548
+ M.push({ha:this.S.slice(this.S.length - 6), image:q, Za:$b, $a:ac, ic:K, jc:Z, Ac:sa, kb:ta, Ba:X, Ca:x, Ua:new Float32Array(B), Db:new Float32Array(G), indices:new Uint16Array(J), mc:Q, xb:q.Ka << 1 | (Q ? 1 : 0),});
549
+ T += B.length;
550
+ ea += J.length;
551
+ var za = this.C, qd = a(F);
551
552
  this.H.push(function() {
552
553
  za.save();
553
554
  za.resetTransform();
554
555
  za.globalCompositeOperation = qd;
555
- za.globalAlpha = F;
556
- const bc = ka.canvas();
557
- bc && za.drawImage(bc, $b, ac, sa, ta, J, K, Ga, Ha);
556
+ za.globalAlpha = I;
557
+ const bc = ja.canvas();
558
+ bc && za.drawImage(bc, $b, ac, sa, ta, K, Z, Ga, Ha);
558
559
  za.restore();
559
560
  });
560
561
  }
561
562
  }, _clipPath:function(q) {
562
- this.H.push(this.C.clip.bind(this.C, q.T, q.Wa === x ? "evenodd" : "nonzero"));
563
+ this.H.push(this.C.clip.bind(this.C, q.T, q.Wa === y ? "evenodd" : "nonzero"));
563
564
  }, clear:function() {
564
565
  D.add(this);
565
566
  this.H.push(this.C.clearRect.bind(this.C, 0, 0, this.Va.width, this.Va.height));
566
567
  }, flush:function() {
567
- }, translate:function(q, y) {
568
- this.transform(1, 0, 0, 1, q, y);
568
+ }, translate:function(q, x) {
569
+ this.transform(1, 0, 0, 1, q, x);
569
570
  },});
570
571
  m.makeRenderer = function(q) {
571
- const y = new ra(q), F = y.C;
572
- return new Proxy(y, {get(G, A) {
573
- if ("function" === typeof G[A]) {
574
- return function(...I) {
575
- return G[A].apply(G, I);
572
+ const x = new ra(q), F = x.C;
573
+ return new Proxy(x, {get(I, B) {
574
+ if ("function" === typeof I[B]) {
575
+ return function(...G) {
576
+ return I[B].apply(I, G);
576
577
  };
577
578
  }
578
- if ("function" === typeof F[A]) {
579
- if (-1 < ja.indexOf(A)) {
580
- throw Error("RiveException: Method call to '" + A + "()' is not allowed, as the renderer cannot immediately pass through the return values of any canvas 2d context methods.");
579
+ if ("function" === typeof F[B]) {
580
+ if (-1 < ia.indexOf(B)) {
581
+ throw Error("RiveException: Method call to '" + B + "()' is not allowed, as the renderer cannot immediately pass through the return values of any canvas 2d context methods.");
581
582
  }
582
- return function(...I) {
583
- y.H.push(F[A].bind(F, ...I));
583
+ return function(...G) {
584
+ x.H.push(F[B].bind(F, ...G));
584
585
  };
585
586
  }
586
- return G[A];
587
- }, set(G, A, I) {
588
- if (A in F) {
589
- return y.H.push(() => {
590
- F[A] = I;
587
+ return I[B];
588
+ }, set(I, B, G) {
589
+ if (B in F) {
590
+ return x.H.push(() => {
591
+ F[B] = G;
591
592
  }), !0;
592
593
  }
593
594
  },});
594
595
  };
595
- m.decodeImage = function(q, y) {
596
- (new t({la:y})).decode(q);
596
+ m.decodeImage = function(q, x) {
597
+ (new t({la:x})).decode(q);
597
598
  };
598
599
  m.renderFactory = {makeRenderPaint:function() {
599
- return new B();
600
+ return new A();
600
601
  }, makeRenderPath:function() {
601
602
  return new r();
602
603
  }, makeRenderImage:function() {
603
- let q = ca;
604
+ let q = da;
604
605
  return new t({xa:() => {
605
606
  q.total++;
606
607
  }, la:() => {
607
608
  q.loaded++;
608
609
  if (q.loaded === q.total) {
609
- const y = q.ready;
610
- y && (y(), q.ready = null);
610
+ const x = q.ready;
611
+ x && (x(), q.ready = null);
611
612
  }
612
613
  },});
613
614
  },};
614
- let H = m.load, ca = null;
615
- m.load = function(q, y, F = !0) {
616
- const G = new m.FallbackFileAssetLoader();
617
- void 0 !== y && G.addLoader(y);
618
- F && (y = new m.CDNFileAssetLoader(), G.addLoader(y));
619
- return new Promise(function(A) {
620
- let I = null;
621
- ca = {total:0, loaded:0, ready:function() {
622
- A(I);
615
+ let H = m.load, da = null;
616
+ m.load = function(q, x, F = !0) {
617
+ const I = new m.FallbackFileAssetLoader();
618
+ void 0 !== x && I.addLoader(x);
619
+ F && (x = new m.CDNFileAssetLoader(), I.addLoader(x));
620
+ return new Promise(function(B) {
621
+ let G = null;
622
+ da = {total:0, loaded:0, ready:function() {
623
+ B(G);
623
624
  },};
624
- I = H(q, G);
625
- 0 == ca.total && A(I);
625
+ G = H(q, I);
626
+ 0 == da.total && B(G);
626
627
  });
627
628
  };
628
629
  let rd = m.RendererWrapper.prototype.align;
629
- m.RendererWrapper.prototype.align = function(q, y, F, G, A = 1.0) {
630
- rd.call(this, q, y, F, G, A);
630
+ m.RendererWrapper.prototype.align = function(q, x, F, I, B = 1.0) {
631
+ rd.call(this, q, x, F, I, B);
631
632
  };
632
- d = new fa();
633
+ d = new ca();
633
634
  m.requestAnimationFrame = d.requestAnimationFrame.bind(d);
634
635
  m.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);
635
636
  m.enableFPSCounter = d.Rb.bind(d);
@@ -640,15 +641,15 @@ m.onRuntimeInitialized = function() {
640
641
  w && w.delete();
641
642
  };
642
643
  };
643
- var ma = Object.assign({}, m), na = "./this.program", oa = "object" == typeof window, pa = "function" == typeof importScripts, qa = "", ua, va;
644
- if (oa || pa) {
645
- pa ? qa = self.location.href : "undefined" != typeof document && document.currentScript && (qa = document.currentScript.src), _scriptDir && (qa = _scriptDir), 0 !== qa.indexOf("blob:") ? qa = qa.substr(0, qa.replace(/[?#].*/, "").lastIndexOf("/") + 1) : qa = "", pa && (va = a => {
644
+ var la = Object.assign({}, m), ma = "./this.program", na = "object" == typeof window, oa = "function" == typeof importScripts, pa = "", qa, ua;
645
+ if (na || oa) {
646
+ oa ? pa = self.location.href : "undefined" != typeof document && document.currentScript && (pa = document.currentScript.src), _scriptDir && (pa = _scriptDir), 0 !== pa.indexOf("blob:") ? pa = pa.substr(0, pa.replace(/[?#].*/, "").lastIndexOf("/") + 1) : pa = "", oa && (ua = a => {
646
647
  var b = new XMLHttpRequest();
647
648
  b.open("GET", a, !1);
648
649
  b.responseType = "arraybuffer";
649
650
  b.send(null);
650
651
  return new Uint8Array(b.response);
651
- }), ua = (a, b, c) => {
652
+ }), qa = (a, b, c) => {
652
653
  var d = new XMLHttpRequest();
653
654
  d.open("GET", a, !0);
654
655
  d.responseType = "arraybuffer";
@@ -659,94 +660,94 @@ if (oa || pa) {
659
660
  d.send(null);
660
661
  };
661
662
  }
662
- var wa = m.print || console.log.bind(console), xa = m.printErr || console.error.bind(console);
663
- Object.assign(m, ma);
664
- ma = null;
665
- m.thisProgram && (na = m.thisProgram);
666
- var ya;
667
- m.wasmBinary && (ya = m.wasmBinary);
663
+ var va = m.print || console.log.bind(console), wa = m.printErr || console.error.bind(console);
664
+ Object.assign(m, la);
665
+ la = null;
666
+ m.thisProgram && (ma = m.thisProgram);
667
+ var xa;
668
+ m.wasmBinary && (xa = m.wasmBinary);
668
669
  var noExitRuntime = m.noExitRuntime || !0;
669
- "object" != typeof WebAssembly && Aa("no native wasm support detected");
670
- var Ba, z, Ca = !1, C, E, Da, Ea, L, N, Fa, Ia;
671
- function Ja() {
672
- var a = Ba.buffer;
670
+ "object" != typeof WebAssembly && ya("no native wasm support detected");
671
+ var Aa, z, Ba = !1, C, E, Ca, Da, L, N, Ea, Fa;
672
+ function Ia() {
673
+ var a = Aa.buffer;
673
674
  m.HEAP8 = C = new Int8Array(a);
674
- m.HEAP16 = Da = new Int16Array(a);
675
+ m.HEAP16 = Ca = new Int16Array(a);
675
676
  m.HEAP32 = L = new Int32Array(a);
676
677
  m.HEAPU8 = E = new Uint8Array(a);
677
- m.HEAPU16 = Ea = new Uint16Array(a);
678
+ m.HEAPU16 = Da = new Uint16Array(a);
678
679
  m.HEAPU32 = N = new Uint32Array(a);
679
- m.HEAPF32 = Fa = new Float32Array(a);
680
- m.HEAPF64 = Ia = new Float64Array(a);
680
+ m.HEAPF32 = Ea = new Float32Array(a);
681
+ m.HEAPF64 = Fa = new Float64Array(a);
681
682
  }
682
- var Ka, La = [], Ma = [], Na = [];
683
- function Oa() {
683
+ var Ja, Ka = [], La = [], Ma = [];
684
+ function Na() {
684
685
  var a = m.preRun.shift();
685
- La.unshift(a);
686
+ Ka.unshift(a);
686
687
  }
687
- var Pa = 0, Qa = null, Ra = null;
688
- function Aa(a) {
688
+ var Oa = 0, Pa = null, Qa = null;
689
+ function ya(a) {
689
690
  if (m.onAbort) {
690
691
  m.onAbort(a);
691
692
  }
692
693
  a = "Aborted(" + a + ")";
693
- xa(a);
694
- Ca = !0;
694
+ wa(a);
695
+ Ba = !0;
695
696
  a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
696
697
  ba(a);
697
698
  throw a;
698
699
  }
699
- function Sa(a) {
700
+ function Ra(a) {
700
701
  return a.startsWith("data:application/octet-stream;base64,");
701
702
  }
702
- var Ta;
703
- Ta = "canvas_advanced.wasm";
704
- if (!Sa(Ta)) {
705
- var Ua = Ta;
706
- Ta = m.locateFile ? m.locateFile(Ua, qa) : qa + Ua;
703
+ var Sa;
704
+ Sa = "canvas_advanced.wasm";
705
+ if (!Ra(Sa)) {
706
+ var Ta = Sa;
707
+ Sa = m.locateFile ? m.locateFile(Ta, pa) : pa + Ta;
707
708
  }
708
- function Va(a) {
709
- if (a == Ta && ya) {
710
- return new Uint8Array(ya);
709
+ function Ua(a) {
710
+ if (a == Sa && xa) {
711
+ return new Uint8Array(xa);
711
712
  }
712
- if (va) {
713
- return va(a);
713
+ if (ua) {
714
+ return ua(a);
714
715
  }
715
716
  throw "both async and sync fetching of the wasm failed";
716
717
  }
717
- function Wa(a) {
718
- if (!ya && (oa || pa)) {
718
+ function Va(a) {
719
+ if (!xa && (na || oa)) {
719
720
  if ("function" == typeof fetch && !a.startsWith("file://")) {
720
721
  return fetch(a, {credentials:"same-origin"}).then(b => {
721
722
  if (!b.ok) {
722
723
  throw "failed to load wasm binary file at '" + a + "'";
723
724
  }
724
725
  return b.arrayBuffer();
725
- }).catch(() => Va(a));
726
+ }).catch(() => Ua(a));
726
727
  }
727
- if (ua) {
728
+ if (qa) {
728
729
  return new Promise((b, c) => {
729
- ua(a, d => b(new Uint8Array(d)), c);
730
+ qa(a, d => b(new Uint8Array(d)), c);
730
731
  });
731
732
  }
732
733
  }
733
- return Promise.resolve().then(() => Va(a));
734
+ return Promise.resolve().then(() => Ua(a));
734
735
  }
735
- function Xa(a, b, c) {
736
- return Wa(a).then(d => WebAssembly.instantiate(d, b)).then(d => d).then(c, d => {
737
- xa("failed to asynchronously prepare wasm: " + d);
738
- Aa(d);
736
+ function Wa(a, b, c) {
737
+ return Va(a).then(d => WebAssembly.instantiate(d, b)).then(d => d).then(c, d => {
738
+ wa("failed to asynchronously prepare wasm: " + d);
739
+ ya(d);
739
740
  });
740
741
  }
741
- function Ya(a, b) {
742
- var c = Ta;
743
- return ya || "function" != typeof WebAssembly.instantiateStreaming || Sa(c) || c.startsWith("file://") || "function" != typeof fetch ? Xa(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
744
- xa("wasm streaming compile failed: " + e);
745
- xa("falling back to ArrayBuffer instantiation");
746
- return Xa(c, a, b);
742
+ function Xa(a, b) {
743
+ var c = Sa;
744
+ return xa || "function" != typeof WebAssembly.instantiateStreaming || Ra(c) || c.startsWith("file://") || "function" != typeof fetch ? Wa(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
745
+ wa("wasm streaming compile failed: " + e);
746
+ wa("falling back to ArrayBuffer instantiation");
747
+ return Wa(c, a, b);
747
748
  }));
748
749
  }
749
- var Za, $a, db = {453532:(a, b, c, d, e) => {
750
+ var Ya, Za, cb = {456172:(a, b, c, d, e) => {
750
751
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
751
752
  return 0;
752
753
  }
@@ -794,7 +795,7 @@ var Za, $a, db = {453532:(a, b, c, d, e) => {
794
795
  for (var g = 0; g < f.D.length; ++g) {
795
796
  var n = f.D[g];
796
797
  null != n && null != n.J && n.state === f.ga.yb && n.J.resume().then(() => {
797
- ab(n.qb);
798
+ $a(n.qb);
798
799
  }, p => {
799
800
  console.error("Failed to resume audiocontext", p);
800
801
  });
@@ -809,11 +810,11 @@ var Za, $a, db = {453532:(a, b, c, d, e) => {
809
810
  }
810
811
  window.h.Aa += 1;
811
812
  return 1;
812
- }, 455710:() => {
813
+ }, 458350:() => {
813
814
  "undefined" !== typeof window.h && (window.h.Ta.map(function(a) {
814
815
  document.removeEventListener(a, window.h.unlock, !0);
815
816
  }), --window.h.Aa, 0 === window.h.Aa && delete window.h);
816
- }, 456014:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 456118:() => {
817
+ }, 458654:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 458758:() => {
817
818
  try {
818
819
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
819
820
  a.close();
@@ -821,7 +822,7 @@ var Za, $a, db = {453532:(a, b, c, d, e) => {
821
822
  } catch (c) {
822
823
  return 0;
823
824
  }
824
- }, 456289:(a, b, c, d, e, f) => {
825
+ }, 458929:(a, b, c, d, e, f) => {
825
826
  if ("undefined" === typeof window.h) {
826
827
  return -1;
827
828
  }
@@ -835,20 +836,20 @@ var Za, $a, db = {453532:(a, b, c, d, e) => {
835
836
  g.Z = g.J.createScriptProcessor(d, c, b);
836
837
  g.Z.onaudioprocess = function(p) {
837
838
  if (null == g.sa || 0 == g.sa.length) {
838
- g.sa = new Float32Array(Fa.buffer, e, d * b);
839
+ g.sa = new Float32Array(Ea.buffer, e, d * b);
839
840
  }
840
841
  if (a == window.h.I.capture || a == window.h.I.La) {
841
842
  for (var l = 0; l < b; l += 1) {
842
- for (var u = p.inputBuffer.getChannelData(l), v = g.sa, x = 0; x < d; x += 1) {
843
- v[x * b + l] = u[x];
843
+ for (var u = p.inputBuffer.getChannelData(l), v = g.sa, y = 0; y < d; y += 1) {
844
+ v[y * b + l] = u[y];
844
845
  }
845
846
  }
846
- bb(f, d, e);
847
+ ab(f, d, e);
847
848
  }
848
849
  if (a == window.h.I.ya || a == window.h.I.La) {
849
- for (cb(f, d, e), l = 0; l < p.outputBuffer.numberOfChannels; ++l) {
850
- for (u = p.outputBuffer.getChannelData(l), v = g.sa, x = 0; x < d; x += 1) {
851
- u[x] = v[x * b + l];
850
+ for (bb(f, d, e), l = 0; l < p.outputBuffer.numberOfChannels; ++l) {
851
+ for (u = p.outputBuffer.getChannelData(l), v = g.sa, y = 0; y < d; y += 1) {
852
+ u[y] = v[y * b + l];
852
853
  }
853
854
  }
854
855
  } else {
@@ -867,7 +868,7 @@ var Za, $a, db = {453532:(a, b, c, d, e) => {
867
868
  a == window.h.I.ya && g.Z.connect(g.J.destination);
868
869
  g.qb = f;
869
870
  return window.h.yc(g);
870
- }, 459166:a => window.h.ra(a).J.sampleRate, 459239:a => {
871
+ }, 461806:a => window.h.ra(a).J.sampleRate, 461879:a => {
871
872
  a = window.h.ra(a);
872
873
  void 0 !== a.Z && (a.Z.onaudioprocess = function() {
873
874
  }, a.Z.disconnect(), a.Z = void 0);
@@ -875,21 +876,21 @@ var Za, $a, db = {453532:(a, b, c, d, e) => {
875
876
  a.J.close();
876
877
  a.J = void 0;
877
878
  a.qb = void 0;
878
- }, 459639:a => {
879
+ }, 462279:a => {
879
880
  window.h.Cb(a);
880
- }, 459689:a => {
881
+ }, 462329:a => {
881
882
  a = window.h.ra(a);
882
883
  a.J.resume();
883
884
  a.state = window.h.ga.yb;
884
- }, 459828:a => {
885
+ }, 462468:a => {
885
886
  a = window.h.ra(a);
886
887
  a.J.suspend();
887
888
  a.state = window.h.ga.stopped;
888
- }}, eb = a => {
889
+ }}, db = a => {
889
890
  for (; 0 < a.length;) {
890
891
  a.shift()(m);
891
892
  }
892
- }, fb = (a, b) => {
893
+ }, eb = (a, b) => {
893
894
  for (var c = 0, d = a.length - 1; 0 <= d; d--) {
894
895
  var e = a[d];
895
896
  "." === e ? a.splice(d, 1) : ".." === e ? (a.splice(d, 1), c++) : c && (a.splice(d, 1), c--);
@@ -900,12 +901,12 @@ var Za, $a, db = {453532:(a, b, c, d, e) => {
900
901
  }
901
902
  }
902
903
  return a;
903
- }, gb = a => {
904
+ }, fb = a => {
904
905
  var b = "/" === a.charAt(0), c = "/" === a.substr(-1);
905
- (a = fb(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
906
+ (a = eb(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
906
907
  a && c && (a += "/");
907
908
  return (b ? "/" : "") + a;
908
- }, hb = a => {
909
+ }, gb = a => {
909
910
  var b = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);
910
911
  a = b[0];
911
912
  b = b[1];
@@ -914,21 +915,21 @@ var Za, $a, db = {453532:(a, b, c, d, e) => {
914
915
  }
915
916
  b && (b = b.substr(0, b.length - 1));
916
917
  return a + b;
917
- }, ib = a => {
918
+ }, hb = a => {
918
919
  if ("/" === a) {
919
920
  return "/";
920
921
  }
921
- a = gb(a);
922
+ a = fb(a);
922
923
  a = a.replace(/\/$/, "");
923
924
  var b = a.lastIndexOf("/");
924
925
  return -1 === b ? a : a.substr(b + 1);
925
- }, jb = () => {
926
+ }, ib = () => {
926
927
  if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
927
928
  return a => crypto.getRandomValues(a);
928
929
  }
929
- Aa("initRandomDevice");
930
- }, kb = a => (kb = jb())(a);
931
- function lb() {
930
+ ya("initRandomDevice");
931
+ }, jb = a => (jb = ib())(a);
932
+ function kb() {
932
933
  for (var a = "", b = !1, c = arguments.length - 1; -1 <= c && !b; c--) {
933
934
  b = 0 <= c ? arguments[c] : "/";
934
935
  if ("string" != typeof b) {
@@ -940,16 +941,16 @@ function lb() {
940
941
  a = b + "/" + a;
941
942
  b = "/" === b.charAt(0);
942
943
  }
943
- a = fb(a.split("/").filter(d => !!d), !b).join("/");
944
+ a = eb(a.split("/").filter(d => !!d), !b).join("/");
944
945
  return (b ? "/" : "") + a || ".";
945
946
  }
946
- var mb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, nb = (a, b, c) => {
947
+ var lb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, mb = (a, b, c) => {
947
948
  var d = b + c;
948
949
  for (c = b; a[c] && !(c >= d);) {
949
950
  ++c;
950
951
  }
951
- if (16 < c - b && a.buffer && mb) {
952
- return mb.decode(a.subarray(b, c));
952
+ if (16 < c - b && a.buffer && lb) {
953
+ return lb.decode(a.subarray(b, c));
953
954
  }
954
955
  for (d = ""; b < c;) {
955
956
  var e = a[b++];
@@ -967,13 +968,13 @@ var mb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, n
967
968
  }
968
969
  }
969
970
  return d;
970
- }, ob = [], pb = a => {
971
+ }, nb = [], ob = a => {
971
972
  for (var b = 0, c = 0; c < a.length; ++c) {
972
973
  var d = a.charCodeAt(c);
973
974
  127 >= d ? b++ : 2047 >= d ? b += 2 : 55296 <= d && 57343 >= d ? (b += 4, ++c) : b += 3;
974
975
  }
975
976
  return b;
976
- }, qb = (a, b, c, d) => {
977
+ }, pb = (a, b, c, d) => {
977
978
  if (!(0 < d)) {
978
979
  return 0;
979
980
  }
@@ -1017,19 +1018,19 @@ var mb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, n
1017
1018
  b[c] = 0;
1018
1019
  return c - e;
1019
1020
  };
1020
- function rb(a, b) {
1021
- var c = Array(pb(a) + 1);
1022
- a = qb(a, c, 0, c.length);
1021
+ function qb(a, b) {
1022
+ var c = Array(ob(a) + 1);
1023
+ a = pb(a, c, 0, c.length);
1023
1024
  b && (c.length = a);
1024
1025
  return c;
1025
1026
  }
1026
- var sb = [];
1027
- function tb(a, b) {
1028
- sb[a] = {input:[], F:[], V:b};
1029
- ub(a, vb);
1027
+ var rb = [];
1028
+ function sb(a, b) {
1029
+ rb[a] = {input:[], F:[], V:b};
1030
+ tb(a, ub);
1030
1031
  }
1031
- var vb = {open:function(a) {
1032
- var b = sb[a.node.za];
1032
+ var ub = {open:function(a) {
1033
+ var b = rb[a.node.za];
1033
1034
  if (!b) {
1034
1035
  throw new O(43);
1035
1036
  }
@@ -1073,36 +1074,36 @@ var vb = {open:function(a) {
1073
1074
  }
1074
1075
  d && (a.node.timestamp = Date.now());
1075
1076
  return e;
1076
- },}, wb = {jb:function() {
1077
+ },}, vb = {jb:function() {
1077
1078
  a: {
1078
- if (!ob.length) {
1079
+ if (!nb.length) {
1079
1080
  var a = null;
1080
1081
  "undefined" != typeof window && "function" == typeof window.prompt ? (a = window.prompt("Input: "), null !== a && (a += "\n")) : "function" == typeof readline && (a = readline(), null !== a && (a += "\n"));
1081
1082
  if (!a) {
1082
1083
  a = null;
1083
1084
  break a;
1084
1085
  }
1085
- ob = rb(a, !0);
1086
+ nb = qb(a, !0);
1086
1087
  }
1087
- a = ob.shift();
1088
+ a = nb.shift();
1088
1089
  }
1089
1090
  return a;
1090
1091
  }, Oa:function(a, b) {
1091
- null === b || 10 === b ? (wa(nb(a.F, 0)), a.F = []) : 0 != b && a.F.push(b);
1092
+ null === b || 10 === b ? (va(mb(a.F, 0)), a.F = []) : 0 != b && a.F.push(b);
1092
1093
  }, qa:function(a) {
1093
- a.F && 0 < a.F.length && (wa(nb(a.F, 0)), a.F = []);
1094
+ a.F && 0 < a.F.length && (va(mb(a.F, 0)), a.F = []);
1094
1095
  }, bc:function() {
1095
1096
  return {Fc:25856, Hc:5, Ec:191, Gc:35387, Dc:[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,]};
1096
1097
  }, cc:function() {
1097
1098
  return 0;
1098
1099
  }, dc:function() {
1099
1100
  return [24, 80];
1100
- },}, xb = {Oa:function(a, b) {
1101
- null === b || 10 === b ? (xa(nb(a.F, 0)), a.F = []) : 0 != b && a.F.push(b);
1101
+ },}, wb = {Oa:function(a, b) {
1102
+ null === b || 10 === b ? (wa(mb(a.F, 0)), a.F = []) : 0 != b && a.F.push(b);
1102
1103
  }, qa:function(a) {
1103
- a.F && 0 < a.F.length && (xa(nb(a.F, 0)), a.F = []);
1104
+ a.F && 0 < a.F.length && (wa(mb(a.F, 0)), a.F = []);
1104
1105
  },};
1105
- function yb(a, b) {
1106
+ function xb(a, b) {
1106
1107
  var c = a.j ? a.j.length : 0;
1107
1108
  c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.j, a.j = new Uint8Array(b), 0 < a.v && a.j.set(c.subarray(0, a.v), 0));
1108
1109
  }
@@ -1112,8 +1113,8 @@ var P = {O:null, U() {
1112
1113
  if (24576 === (c & 61440) || 4096 === (c & 61440)) {
1113
1114
  throw new O(63);
1114
1115
  }
1115
- P.O || (P.O = {dir:{node:{Y:P.l.Y, P:P.l.P, ka:P.l.ka, va:P.l.va, vb:P.l.vb, Bb:P.l.Bb, wb:P.l.wb, tb:P.l.tb, Ea:P.l.Ea}, stream:{ba:P.m.ba}}, file:{node:{Y:P.l.Y, P:P.l.P}, stream:{ba:P.m.ba, read:P.m.read, write:P.m.write, pa:P.m.pa, mb:P.m.mb, ob:P.m.ob}}, link:{node:{Y:P.l.Y, P:P.l.P, ma:P.l.ma}, stream:{}}, ab:{node:{Y:P.l.Y, P:P.l.P}, stream:zb}});
1116
- c = Ab(a, b, c, d);
1116
+ P.O || (P.O = {dir:{node:{Y:P.l.Y, P:P.l.P, ka:P.l.ka, va:P.l.va, vb:P.l.vb, Bb:P.l.Bb, wb:P.l.wb, tb:P.l.tb, Ea:P.l.Ea}, stream:{ba:P.m.ba}}, file:{node:{Y:P.l.Y, P:P.l.P}, stream:{ba:P.m.ba, read:P.m.read, write:P.m.write, pa:P.m.pa, mb:P.m.mb, ob:P.m.ob}}, link:{node:{Y:P.l.Y, P:P.l.P, ma:P.l.ma}, stream:{}}, ab:{node:{Y:P.l.Y, P:P.l.P}, stream:yb}});
1117
+ c = zb(a, b, c, d);
1117
1118
  16384 === (c.mode & 61440) ? (c.l = P.O.dir.node, c.m = P.O.dir.stream, c.j = {}) : 32768 === (c.mode & 61440) ? (c.l = P.O.file.node, c.m = P.O.file.stream, c.v = 0, c.j = null) : 40960 === (c.mode & 61440) ? (c.l = P.O.link.node, c.m = P.O.link.stream) : 8192 === (c.mode & 61440) && (c.l = P.O.ab.node, c.m = P.O.ab.stream);
1118
1119
  c.timestamp = Date.now();
1119
1120
  a && (a.j[b] = c, a.timestamp = c.timestamp);
@@ -1150,13 +1151,13 @@ var P = {O:null, U() {
1150
1151
  }
1151
1152
  }
1152
1153
  }, ka() {
1153
- throw Bb[44];
1154
+ throw Ab[44];
1154
1155
  }, va(a, b, c, d) {
1155
1156
  return P.createNode(a, b, c, d);
1156
1157
  }, vb(a, b, c) {
1157
1158
  if (16384 === (a.mode & 61440)) {
1158
1159
  try {
1159
- var d = Cb(b, c);
1160
+ var d = Bb(b, c);
1160
1161
  } catch (f) {
1161
1162
  }
1162
1163
  if (d) {
@@ -1175,7 +1176,7 @@ var P = {O:null, U() {
1175
1176
  delete a.j[b];
1176
1177
  a.timestamp = Date.now();
1177
1178
  }, wb(a, b) {
1178
- var c = Cb(a, b), d;
1179
+ var c = Bb(a, b), d;
1179
1180
  for (d in c.j) {
1180
1181
  throw new O(55);
1181
1182
  }
@@ -1228,7 +1229,7 @@ var P = {O:null, U() {
1228
1229
  return a.j.set(b.subarray(c, c + d), e), d;
1229
1230
  }
1230
1231
  }
1231
- yb(a, e + d);
1232
+ xb(a, e + d);
1232
1233
  if (a.j.subarray && b.subarray) {
1233
1234
  a.j.set(b.subarray(c, c + d), e);
1234
1235
  } else {
@@ -1245,7 +1246,7 @@ var P = {O:null, U() {
1245
1246
  }
1246
1247
  return b;
1247
1248
  }, pa(a, b, c) {
1248
- yb(a.node, b + c);
1249
+ xb(a.node, b + c);
1249
1250
  a.node.v = Math.max(a.node.v, b + c);
1250
1251
  }, mb(a, b, c, d, e) {
1251
1252
  if (32768 !== (a.node.mode & 61440)) {
@@ -1257,7 +1258,7 @@ var P = {O:null, U() {
1257
1258
  a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
1258
1259
  }
1259
1260
  c = !0;
1260
- Aa();
1261
+ ya();
1261
1262
  b = void 0;
1262
1263
  if (!b) {
1263
1264
  throw new O(48);
@@ -1271,14 +1272,14 @@ var P = {O:null, U() {
1271
1272
  P.m.write(a, b, 0, d, c, !1);
1272
1273
  return 0;
1273
1274
  },},};
1274
- function Db(a, b) {
1275
+ function Cb(a, b) {
1275
1276
  var c = 0;
1276
1277
  a && (c |= 365);
1277
1278
  b && (c |= 146);
1278
1279
  return c;
1279
1280
  }
1280
- var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {}, Lb = (a, b = {}) => {
1281
- a = lb(a);
1281
+ var Db = null, Eb = {}, Fb = [], Gb = 1, Hb = null, Ib = !0, O = null, Ab = {}, Kb = (a, b = {}) => {
1282
+ a = kb(a);
1282
1283
  if (!a) {
1283
1284
  return {path:"", node:null};
1284
1285
  }
@@ -1287,24 +1288,24 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
1287
1288
  throw new O(32);
1288
1289
  }
1289
1290
  a = a.split("/").filter(g => !!g);
1290
- for (var c = Eb, d = "/", e = 0; e < a.length; e++) {
1291
+ for (var c = Db, d = "/", e = 0; e < a.length; e++) {
1291
1292
  var f = e === a.length - 1;
1292
1293
  if (f && b.parent) {
1293
1294
  break;
1294
1295
  }
1295
- c = Cb(c, a[e]);
1296
- d = gb(d + "/" + a[e]);
1296
+ c = Bb(c, a[e]);
1297
+ d = fb(d + "/" + a[e]);
1297
1298
  c.wa && (!f || f && b.hb) && (c = c.wa.root);
1298
1299
  if (!f || b.gb) {
1299
1300
  for (f = 0; 40960 === (c.mode & 61440);) {
1300
- if (c = Kb(d), d = lb(hb(d), c), c = Lb(d, {Qa:b.Qa + 1}).node, 40 < f++) {
1301
+ if (c = Jb(d), d = kb(gb(d), c), c = Kb(d, {Qa:b.Qa + 1}).node, 40 < f++) {
1301
1302
  throw new O(32);
1302
1303
  }
1303
1304
  }
1304
1305
  }
1305
1306
  }
1306
1307
  return {path:d, node:c};
1307
- }, Mb = a => {
1308
+ }, Lb = a => {
1308
1309
  for (var b;;) {
1309
1310
  if (a === a.parent) {
1310
1311
  return a = a.U.nb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
@@ -1312,34 +1313,34 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
1312
1313
  b = b ? `${a.name}/${b}` : a.name;
1313
1314
  a = a.parent;
1314
1315
  }
1315
- }, Nb = (a, b) => {
1316
+ }, Mb = (a, b) => {
1316
1317
  for (var c = 0, d = 0; d < b.length; d++) {
1317
1318
  c = (c << 5) - c + b.charCodeAt(d) | 0;
1318
1319
  }
1319
- return (a + c >>> 0) % Ib.length;
1320
- }, Cb = (a, b) => {
1320
+ return (a + c >>> 0) % Hb.length;
1321
+ }, Bb = (a, b) => {
1321
1322
  var c;
1322
- if (c = (c = Ob(a, "x")) ? c : a.l.ka ? 0 : 2) {
1323
+ if (c = (c = Nb(a, "x")) ? c : a.l.ka ? 0 : 2) {
1323
1324
  throw new O(c, a);
1324
1325
  }
1325
- for (c = Ib[Nb(a.id, b)]; c; c = c.lc) {
1326
+ for (c = Hb[Mb(a.id, b)]; c; c = c.lc) {
1326
1327
  var d = c.name;
1327
1328
  if (c.parent.id === a.id && d === b) {
1328
1329
  return c;
1329
1330
  }
1330
1331
  }
1331
1332
  return a.l.ka(a, b);
1332
- }, Ab = (a, b, c, d) => {
1333
- a = new Pb(a, b, c, d);
1334
- b = Nb(a.parent.id, a.name);
1335
- a.lc = Ib[b];
1336
- return Ib[b] = a;
1337
- }, Qb = a => {
1333
+ }, zb = (a, b, c, d) => {
1334
+ a = new Ob(a, b, c, d);
1335
+ b = Mb(a.parent.id, a.name);
1336
+ a.lc = Hb[b];
1337
+ return Hb[b] = a;
1338
+ }, Pb = a => {
1338
1339
  var b = ["r", "w", "rw"][a & 3];
1339
1340
  a & 512 && (b += "w");
1340
1341
  return b;
1341
- }, Ob = (a, b) => {
1342
- if (Jb) {
1342
+ }, Nb = (a, b) => {
1343
+ if (Ib) {
1343
1344
  return 0;
1344
1345
  }
1345
1346
  if (!b.includes("r") || a.mode & 292) {
@@ -1350,29 +1351,29 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
1350
1351
  return 2;
1351
1352
  }
1352
1353
  return 0;
1353
- }, Rb = (a, b) => {
1354
+ }, Qb = (a, b) => {
1354
1355
  try {
1355
- return Cb(a, b), 20;
1356
+ return Bb(a, b), 20;
1356
1357
  } catch (c) {
1357
1358
  }
1358
- return Ob(a, "wx");
1359
- }, Sb = () => {
1359
+ return Nb(a, "wx");
1360
+ }, Rb = () => {
1360
1361
  for (var a = 0; 4096 >= a; a++) {
1361
- if (!Gb[a]) {
1362
+ if (!Fb[a]) {
1362
1363
  return a;
1363
1364
  }
1364
1365
  }
1365
1366
  throw new O(33);
1366
- }, Tb = a => {
1367
- a = Gb[a];
1367
+ }, Sb = a => {
1368
+ a = Fb[a];
1368
1369
  if (!a) {
1369
1370
  throw new O(8);
1370
1371
  }
1371
1372
  return a;
1372
- }, Vb = (a, b = -1) => {
1373
- Ub || (Ub = function() {
1373
+ }, Ub = (a, b = -1) => {
1374
+ Tb || (Tb = function() {
1374
1375
  this.h = {};
1375
- }, Ub.prototype = {}, Object.defineProperties(Ub.prototype, {object:{get() {
1376
+ }, Tb.prototype = {}, Object.defineProperties(Tb.prototype, {object:{get() {
1376
1377
  return this.node;
1377
1378
  }, set(c) {
1378
1379
  this.node = c;
@@ -1385,24 +1386,24 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
1385
1386
  }, set(c) {
1386
1387
  this.h.position = c;
1387
1388
  },},}));
1388
- a = Object.assign(new Ub(), a);
1389
- -1 == b && (b = Sb());
1389
+ a = Object.assign(new Tb(), a);
1390
+ -1 == b && (b = Rb());
1390
1391
  a.X = b;
1391
- return Gb[b] = a;
1392
- }, zb = {open:a => {
1393
- a.m = Fb[a.node.za].m;
1392
+ return Fb[b] = a;
1393
+ }, yb = {open:a => {
1394
+ a.m = Eb[a.node.za].m;
1394
1395
  a.m.open && a.m.open(a);
1395
1396
  }, ba:() => {
1396
1397
  throw new O(70);
1397
- },}, ub = (a, b) => {
1398
- Fb[a] = {m:b};
1399
- }, Wb = (a, b) => {
1398
+ },}, tb = (a, b) => {
1399
+ Eb[a] = {m:b};
1400
+ }, Vb = (a, b) => {
1400
1401
  var c = "/" === b, d = !b;
1401
- if (c && Eb) {
1402
+ if (c && Db) {
1402
1403
  throw new O(10);
1403
1404
  }
1404
1405
  if (!c && !d) {
1405
- var e = Lb(b, {hb:!1});
1406
+ var e = Kb(b, {hb:!1});
1406
1407
  b = e.path;
1407
1408
  e = e.node;
1408
1409
  if (e.wa) {
@@ -1416,14 +1417,14 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
1416
1417
  a = a.U(b);
1417
1418
  a.U = b;
1418
1419
  b.root = a;
1419
- c ? Eb = a : e && (e.wa = b, e.U && e.U.kc.push(b));
1420
- }, S = (a, b, c) => {
1421
- var d = Lb(a, {parent:!0}).node;
1422
- a = ib(a);
1420
+ c ? Db = a : e && (e.wa = b, e.U && e.U.kc.push(b));
1421
+ }, Wb = (a, b, c) => {
1422
+ var d = Kb(a, {parent:!0}).node;
1423
+ a = hb(a);
1423
1424
  if (!a || "." === a || ".." === a) {
1424
1425
  throw new O(28);
1425
1426
  }
1426
- var e = Rb(d, a);
1427
+ var e = Qb(d, a);
1427
1428
  if (e) {
1428
1429
  throw new O(e);
1429
1430
  }
@@ -1433,17 +1434,17 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
1433
1434
  return d.l.va(d, a, b, c);
1434
1435
  }, Xb = (a, b, c) => {
1435
1436
  "undefined" == typeof c && (c = b, b = 438);
1436
- S(a, b | 8192, c);
1437
+ Wb(a, b | 8192, c);
1437
1438
  }, cc = (a, b) => {
1438
- if (!lb(a)) {
1439
+ if (!kb(a)) {
1439
1440
  throw new O(44);
1440
1441
  }
1441
- var c = Lb(b, {parent:!0}).node;
1442
+ var c = Kb(b, {parent:!0}).node;
1442
1443
  if (!c) {
1443
1444
  throw new O(44);
1444
1445
  }
1445
- b = ib(b);
1446
- var d = Rb(c, b);
1446
+ b = hb(b);
1447
+ var d = Qb(c, b);
1447
1448
  if (d) {
1448
1449
  throw new O(d);
1449
1450
  }
@@ -1451,15 +1452,15 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
1451
1452
  throw new O(63);
1452
1453
  }
1453
1454
  c.l.Ea(c, b, a);
1454
- }, Kb = a => {
1455
- a = Lb(a).node;
1455
+ }, Jb = a => {
1456
+ a = Kb(a).node;
1456
1457
  if (!a) {
1457
1458
  throw new O(44);
1458
1459
  }
1459
1460
  if (!a.l.ma) {
1460
1461
  throw new O(28);
1461
1462
  }
1462
- return lb(Mb(a.parent), a.l.ma(a));
1463
+ return kb(Lb(a.parent), a.l.ma(a));
1463
1464
  }, ec = (a, b, c) => {
1464
1465
  if ("" === a) {
1465
1466
  throw new O(44);
@@ -1475,9 +1476,9 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
1475
1476
  if ("object" == typeof a) {
1476
1477
  var e = a;
1477
1478
  } else {
1478
- a = gb(a);
1479
+ a = fb(a);
1479
1480
  try {
1480
- e = Lb(a, {gb:!(b & 131072)}).node;
1481
+ e = Kb(a, {gb:!(b & 131072)}).node;
1481
1482
  } catch (f) {
1482
1483
  }
1483
1484
  }
@@ -1488,7 +1489,7 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
1488
1489
  throw new O(20);
1489
1490
  }
1490
1491
  } else {
1491
- e = S(a, c, 0), d = !0;
1492
+ e = Wb(a, c, 0), d = !0;
1492
1493
  }
1493
1494
  }
1494
1495
  if (!e) {
@@ -1498,12 +1499,12 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
1498
1499
  if (b & 65536 && 16384 !== (e.mode & 61440)) {
1499
1500
  throw new O(54);
1500
1501
  }
1501
- if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Qb(b) || b & 512) ? 31 : Ob(e, Qb(b)) : 44)) {
1502
+ if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Pb(b) || b & 512) ? 31 : Nb(e, Pb(b)) : 44)) {
1502
1503
  throw new O(c);
1503
1504
  }
1504
1505
  if (b & 512 && !d) {
1505
1506
  c = e;
1506
- c = "string" == typeof c ? Lb(c, {gb:!0}).node : c;
1507
+ c = "string" == typeof c ? Kb(c, {gb:!0}).node : c;
1507
1508
  if (!c.l.P) {
1508
1509
  throw new O(63);
1509
1510
  }
@@ -1513,13 +1514,13 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
1513
1514
  if (32768 !== (c.mode & 61440)) {
1514
1515
  throw new O(28);
1515
1516
  }
1516
- if (d = Ob(c, "w")) {
1517
+ if (d = Nb(c, "w")) {
1517
1518
  throw new O(d);
1518
1519
  }
1519
1520
  c.l.P(c, {size:0, timestamp:Date.now()});
1520
1521
  }
1521
1522
  b &= -131713;
1522
- e = Vb({node:e, path:Mb(e), flags:b, seekable:!0, position:0, m:e.m, zc:[], error:!1});
1523
+ e = Ub({node:e, path:Lb(e), flags:b, seekable:!0, position:0, m:e.m, zc:[], error:!1});
1523
1524
  e.m.open && e.m.open(e);
1524
1525
  !m.logReadFiles || b & 1 || (dc || (dc = {}), a in dc || (dc[a] = 1));
1525
1526
  return e;
@@ -1545,15 +1546,15 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
1545
1546
  this.pc(a);
1546
1547
  this.message = "FS error";
1547
1548
  }, O.prototype = Error(), O.prototype.constructor = O, [44].forEach(a => {
1548
- Bb[a] = new O(a);
1549
- Bb[a].stack = "<generic error, no stack>";
1549
+ Ab[a] = new O(a);
1550
+ Ab[a].stack = "<generic error, no stack>";
1550
1551
  }));
1551
1552
  }, hc, jc = (a, b, c) => {
1552
- a = gb("/dev/" + a);
1553
- var d = Db(!!b, !!c);
1553
+ a = fb("/dev/" + a);
1554
+ var d = Cb(!!b, !!c);
1554
1555
  ic || (ic = 64);
1555
1556
  var e = ic++ << 8 | 0;
1556
- ub(e, {open:f => {
1557
+ tb(e, {open:f => {
1557
1558
  f.seekable = !1;
1558
1559
  }, close:() => {
1559
1560
  c && c.buffer && c.buffer.length && c(10);
@@ -1561,7 +1562,7 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
1561
1562
  for (var l = 0, u = 0; u < p; u++) {
1562
1563
  try {
1563
1564
  var v = b();
1564
- } catch (x) {
1565
+ } catch (y) {
1565
1566
  throw new O(29);
1566
1567
  }
1567
1568
  if (void 0 === v && 0 === l) {
@@ -1587,7 +1588,7 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
1587
1588
  return l;
1588
1589
  }});
1589
1590
  Xb(a, d, e);
1590
- }, ic, kc = {}, Ub, dc, lc = void 0;
1591
+ }, ic, kc = {}, Tb, dc, lc = void 0;
1591
1592
  function mc() {
1592
1593
  lc += 4;
1593
1594
  return L[lc - 4 >> 2];
@@ -1610,13 +1611,13 @@ function pc() {
1610
1611
  this.M = [void 0];
1611
1612
  this.ib = [];
1612
1613
  }
1613
- var U = new pc(), qc = void 0;
1614
- function V(a) {
1614
+ var S = new pc(), qc = void 0;
1615
+ function U(a) {
1615
1616
  throw new qc(a);
1616
1617
  }
1617
1618
  var rc = a => {
1618
- a || V("Cannot use deleted val. handle = " + a);
1619
- return U.get(a).value;
1619
+ a || U("Cannot use deleted val. handle = " + a);
1620
+ return S.get(a).value;
1620
1621
  }, sc = a => {
1621
1622
  switch(a) {
1622
1623
  case void 0:
@@ -1628,7 +1629,7 @@ var rc = a => {
1628
1629
  case !1:
1629
1630
  return 4;
1630
1631
  default:
1631
- return U.pa({ub:1, value:a});
1632
+ return S.pa({ub:1, value:a});
1632
1633
  }
1633
1634
  };
1634
1635
  function tc(a) {
@@ -1646,7 +1647,7 @@ function tc(a) {
1646
1647
  return c;
1647
1648
  }
1648
1649
  var uc = void 0, vc = void 0;
1649
- function W(a) {
1650
+ function V(a) {
1650
1651
  for (var b = ""; E[a];) {
1651
1652
  b += vc[E[a++]];
1652
1653
  }
@@ -1662,7 +1663,7 @@ function xc() {
1662
1663
  }
1663
1664
  var yc = void 0, zc = {};
1664
1665
  function Ac(a, b) {
1665
- for (void 0 === b && V("ptr should not be undefined"); a.A;) {
1666
+ for (void 0 === b && U("ptr should not be undefined"); a.A;) {
1666
1667
  b = a.na(b), a = a.A;
1667
1668
  }
1668
1669
  return b;
@@ -1670,13 +1671,13 @@ function Ac(a, b) {
1670
1671
  var Bc = {};
1671
1672
  function Cc(a) {
1672
1673
  a = Dc(a);
1673
- var b = W(a);
1674
+ var b = V(a);
1674
1675
  Ec(a);
1675
1676
  return b;
1676
1677
  }
1677
1678
  function Fc(a, b) {
1678
1679
  var c = Bc[a];
1679
- void 0 === c && V(b + " has unknown type " + Cc(a));
1680
+ void 0 === c && U(b + " has unknown type " + Cc(a));
1680
1681
  return c;
1681
1682
  }
1682
1683
  function Gc() {
@@ -1739,7 +1740,7 @@ function Sc(a) {
1739
1740
  return this.fromWireType(L[a >> 2]);
1740
1741
  }
1741
1742
  var Tc = {}, Uc = {};
1742
- function Y(a, b, c) {
1743
+ function W(a, b, c) {
1743
1744
  function d(n) {
1744
1745
  n = c(n);
1745
1746
  n.length !== a.length && Nc("Mismatched type converter count");
@@ -1776,12 +1777,12 @@ function Wc(a) {
1776
1777
  }
1777
1778
  function Xc(a, b, c = {}) {
1778
1779
  var d = b.name;
1779
- a || V(`type "${d}" must have a positive integer typeid pointer`);
1780
+ a || U(`type "${d}" must have a positive integer typeid pointer`);
1780
1781
  if (Bc.hasOwnProperty(a)) {
1781
1782
  if (c.$b) {
1782
1783
  return;
1783
1784
  }
1784
- V(`Cannot register type '${d}' twice`);
1785
+ U(`Cannot register type '${d}' twice`);
1785
1786
  }
1786
1787
  Bc[a] = b;
1787
1788
  delete Uc[a];
@@ -1794,7 +1795,7 @@ function Vc(a, b, c = {}) {
1794
1795
  Xc(a, b, c);
1795
1796
  }
1796
1797
  function Yc(a) {
1797
- V(a.g.u.i.name + " instance already deleted");
1798
+ U(a.g.u.i.name + " instance already deleted");
1798
1799
  }
1799
1800
  function Zc() {
1800
1801
  }
@@ -1802,7 +1803,7 @@ function $c(a, b, c) {
1802
1803
  if (void 0 === a[b].B) {
1803
1804
  var d = a[b];
1804
1805
  a[b] = function() {
1805
- a[b].B.hasOwnProperty(arguments.length) || V(`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${a[b].B})!`);
1806
+ a[b].B.hasOwnProperty(arguments.length) || U(`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${a[b].B})!`);
1806
1807
  return a[b].B[arguments.length].apply(this, arguments);
1807
1808
  };
1808
1809
  a[b].B = [];
@@ -1810,7 +1811,7 @@ function $c(a, b, c) {
1810
1811
  }
1811
1812
  }
1812
1813
  function ad(a, b, c) {
1813
- m.hasOwnProperty(a) ? ((void 0 === c || void 0 !== m[a].B && void 0 !== m[a].B[c]) && V(`Cannot register public name '${a}' twice`), $c(m, a, a), m.hasOwnProperty(c) && V(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), m[a].B[c] = b) : (m[a] = b, void 0 !== c && (m[a].Pc = c));
1814
+ m.hasOwnProperty(a) ? ((void 0 === c || void 0 !== m[a].B && void 0 !== m[a].B[c]) && U(`Cannot register public name '${a}' twice`), $c(m, a, a), m.hasOwnProperty(c) && U(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), m[a].B[c] = b) : (m[a] = b, void 0 !== c && (m[a].Pc = c));
1814
1815
  }
1815
1816
  function bd(a, b, c, d, e, f, g, n) {
1816
1817
  this.name = a;
@@ -1825,21 +1826,21 @@ function bd(a, b, c, d, e, f, g, n) {
1825
1826
  }
1826
1827
  function cd(a, b, c) {
1827
1828
  for (; b !== c;) {
1828
- b.na || V(`Expected null or instance of ${c.name}, got an instance of ${b.name}`), a = b.na(a), b = b.A;
1829
+ b.na || U(`Expected null or instance of ${c.name}, got an instance of ${b.name}`), a = b.na(a), b = b.A;
1829
1830
  }
1830
1831
  return a;
1831
1832
  }
1832
1833
  function dd(a, b) {
1833
1834
  if (null === b) {
1834
- return this.Na && V(`null is not a valid ${this.name}`), 0;
1835
+ return this.Na && U(`null is not a valid ${this.name}`), 0;
1835
1836
  }
1836
- b.g || V(`Cannot pass "${ed(b)}" as a ${this.name}`);
1837
- b.g.o || V(`Cannot pass deleted object as a pointer of type ${this.name}`);
1837
+ b.g || U(`Cannot pass "${ed(b)}" as a ${this.name}`);
1838
+ b.g.o || U(`Cannot pass deleted object as a pointer of type ${this.name}`);
1838
1839
  return cd(b.g.o, b.g.u.i, this.i);
1839
1840
  }
1840
1841
  function fd(a, b) {
1841
1842
  if (null === b) {
1842
- this.Na && V(`null is not a valid ${this.name}`);
1843
+ this.Na && U(`null is not a valid ${this.name}`);
1843
1844
  if (this.ua) {
1844
1845
  var c = this.Pa();
1845
1846
  null !== a && a.push(this.W, c);
@@ -1847,14 +1848,14 @@ function fd(a, b) {
1847
1848
  }
1848
1849
  return 0;
1849
1850
  }
1850
- b.g || V(`Cannot pass "${ed(b)}" as a ${this.name}`);
1851
- b.g.o || V(`Cannot pass deleted object as a pointer of type ${this.name}`);
1852
- !this.ta && b.g.u.ta && V(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
1851
+ b.g || U(`Cannot pass "${ed(b)}" as a ${this.name}`);
1852
+ b.g.o || U(`Cannot pass deleted object as a pointer of type ${this.name}`);
1853
+ !this.ta && b.g.u.ta && U(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
1853
1854
  c = cd(b.g.o, b.g.u.i, this.i);
1854
1855
  if (this.ua) {
1855
- switch(void 0 === b.g.G && V("Passing raw pointer to smart pointer is illegal"), this.tc) {
1856
+ switch(void 0 === b.g.G && U("Passing raw pointer to smart pointer is illegal"), this.tc) {
1856
1857
  case 0:
1857
- b.g.L === this ? c = b.g.G : V(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
1858
+ b.g.L === this ? c = b.g.G : U(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
1858
1859
  break;
1859
1860
  case 1:
1860
1861
  c = b.g.G;
@@ -1871,18 +1872,18 @@ function fd(a, b) {
1871
1872
  }
1872
1873
  break;
1873
1874
  default:
1874
- V("Unsupporting sharing policy");
1875
+ U("Unsupporting sharing policy");
1875
1876
  }
1876
1877
  }
1877
1878
  return c;
1878
1879
  }
1879
1880
  function gd(a, b) {
1880
1881
  if (null === b) {
1881
- return this.Na && V(`null is not a valid ${this.name}`), 0;
1882
+ return this.Na && U(`null is not a valid ${this.name}`), 0;
1882
1883
  }
1883
- b.g || V(`Cannot pass "${ed(b)}" as a ${this.name}`);
1884
- b.g.o || V(`Cannot pass deleted object as a pointer of type ${this.name}`);
1885
- b.g.u.ta && V(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
1884
+ b.g || U(`Cannot pass "${ed(b)}" as a ${this.name}`);
1885
+ b.g.o || U(`Cannot pass deleted object as a pointer of type ${this.name}`);
1886
+ b.g.u.ta && U(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
1886
1887
  return cd(b.g.o, b.g.u.i, this.i);
1887
1888
  }
1888
1889
  function hd(a, b, c, d) {
@@ -1900,7 +1901,7 @@ function jd(a, b, c) {
1900
1901
  }
1901
1902
  var kd = [], ld = a => {
1902
1903
  var b = kd[a];
1903
- b || (a >= kd.length && (kd.length = a + 1), kd[a] = b = Ka.get(a));
1904
+ b || (a >= kd.length && (kd.length = a + 1), kd[a] = b = Ja.get(a));
1904
1905
  return b;
1905
1906
  }, md = (a, b) => {
1906
1907
  var c = [];
@@ -1916,10 +1917,10 @@ var kd = [], ld = a => {
1916
1917
  return d;
1917
1918
  };
1918
1919
  };
1919
- function Z(a, b) {
1920
- a = W(a);
1920
+ function Y(a, b) {
1921
+ a = V(a);
1921
1922
  var c = a.includes("j") ? md(a, b) : ld(b);
1922
- "function" != typeof c && V(`unknown function pointer with signature ${a}: ${b}`);
1923
+ "function" != typeof c && U(`unknown function pointer with signature ${a}: ${b}`);
1923
1924
  return c;
1924
1925
  }
1925
1926
  var nd = void 0;
@@ -1933,7 +1934,7 @@ function od(a, b) {
1933
1934
  }
1934
1935
  function pd(a, b, c, d, e) {
1935
1936
  var f = b.length;
1936
- 2 > f && V("argTypes array size mismatch! Must at least get return value and 'this' types!");
1937
+ 2 > f && U("argTypes array size mismatch! Must at least get return value and 'this' types!");
1937
1938
  var g = null !== b[1] && null !== c, n = !1;
1938
1939
  for (c = 1; c < b.length; ++c) {
1939
1940
  if (null !== b[c] && void 0 === b[c].K) {
@@ -1941,26 +1942,26 @@ function pd(a, b, c, d, e) {
1941
1942
  break;
1942
1943
  }
1943
1944
  }
1944
- var p = "void" !== b[0].name, l = f - 2, u = Array(l), v = [], x = [];
1945
+ var p = "void" !== b[0].name, l = f - 2, u = Array(l), v = [], y = [];
1945
1946
  return function() {
1946
- arguments.length !== l && V(`function ${a} called with ${arguments.length} arguments, expected ${l} args!`);
1947
- x.length = 0;
1947
+ arguments.length !== l && U(`function ${a} called with ${arguments.length} arguments, expected ${l} args!`);
1948
+ y.length = 0;
1948
1949
  v.length = g ? 2 : 1;
1949
1950
  v[0] = e;
1950
1951
  if (g) {
1951
- var k = b[1].toWireType(x, this);
1952
+ var k = b[1].toWireType(y, this);
1952
1953
  v[1] = k;
1953
1954
  }
1954
1955
  for (var t = 0; t < l; ++t) {
1955
- u[t] = b[t + 2].toWireType(x, arguments[t]), v.push(u[t]);
1956
+ u[t] = b[t + 2].toWireType(y, arguments[t]), v.push(u[t]);
1956
1957
  }
1957
1958
  t = d.apply(null, v);
1958
1959
  if (n) {
1959
- Rc(x);
1960
+ Rc(y);
1960
1961
  } else {
1961
1962
  for (var r = g ? 1 : 2; r < b.length; r++) {
1962
- var B = 1 === r ? k : u[r - 2];
1963
- null !== b[r].K && b[r].K(B);
1963
+ var A = 1 === r ? k : u[r - 2];
1964
+ null !== b[r].K && b[r].K(A);
1964
1965
  }
1965
1966
  }
1966
1967
  k = p ? b[0].fromWireType(t) : void 0;
@@ -1974,13 +1975,13 @@ function sd(a, b) {
1974
1975
  return c;
1975
1976
  }
1976
1977
  function td(a, b, c) {
1977
- a instanceof Object || V(`${c} with invalid "this": ${a}`);
1978
- a instanceof b.i.constructor || V(`${c} incompatible with "this" of type ${a.constructor.name}`);
1979
- a.g.o || V(`cannot call emscripten binding method ${c} on deleted object`);
1978
+ a instanceof Object || U(`${c} with invalid "this": ${a}`);
1979
+ a instanceof b.i.constructor || U(`${c} incompatible with "this" of type ${a.constructor.name}`);
1980
+ a.g.o || U(`cannot call emscripten binding method ${c} on deleted object`);
1980
1981
  return cd(a.g.o, a.g.u.i, b.i);
1981
1982
  }
1982
1983
  function ud(a) {
1983
- a >= U.h && 0 === --U.get(a).ub && U.Zb(a);
1984
+ a >= S.h && 0 === --S.get(a).ub && S.Zb(a);
1984
1985
  }
1985
1986
  function vd(a, b, c) {
1986
1987
  switch(b) {
@@ -1990,7 +1991,7 @@ function vd(a, b, c) {
1990
1991
  };
1991
1992
  case 1:
1992
1993
  return function(d) {
1993
- return this.fromWireType((c ? Da : Ea)[d >> 1]);
1994
+ return this.fromWireType((c ? Ca : Da)[d >> 1]);
1994
1995
  };
1995
1996
  case 2:
1996
1997
  return function(d) {
@@ -2011,11 +2012,11 @@ function wd(a, b) {
2011
2012
  switch(b) {
2012
2013
  case 2:
2013
2014
  return function(c) {
2014
- return this.fromWireType(Fa[c >> 2]);
2015
+ return this.fromWireType(Ea[c >> 2]);
2015
2016
  };
2016
2017
  case 3:
2017
2018
  return function(c) {
2018
- return this.fromWireType(Ia[c >> 3]);
2019
+ return this.fromWireType(Fa[c >> 3]);
2019
2020
  };
2020
2021
  default:
2021
2022
  throw new TypeError("Unknown float type: " + a);
@@ -2031,9 +2032,9 @@ function xd(a, b, c) {
2031
2032
  };
2032
2033
  case 1:
2033
2034
  return c ? function(d) {
2034
- return Da[d >> 1];
2035
+ return Ca[d >> 1];
2035
2036
  } : function(d) {
2036
- return Ea[d >> 1];
2037
+ return Da[d >> 1];
2037
2038
  };
2038
2039
  case 2:
2039
2040
  return c ? function(d) {
@@ -2047,7 +2048,7 @@ function xd(a, b, c) {
2047
2048
  }
2048
2049
  var yd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, zd = (a, b) => {
2049
2050
  var c = a >> 1;
2050
- for (var d = c + b / 2; !(c >= d) && Ea[c];) {
2051
+ for (var d = c + b / 2; !(c >= d) && Da[c];) {
2051
2052
  ++c;
2052
2053
  }
2053
2054
  c <<= 1;
@@ -2056,7 +2057,7 @@ var yd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
2056
2057
  }
2057
2058
  c = "";
2058
2059
  for (d = 0; !(d >= b / 2); ++d) {
2059
- var e = Da[a + 2 * d >> 1];
2060
+ var e = Ca[a + 2 * d >> 1];
2060
2061
  if (0 == e) {
2061
2062
  break;
2062
2063
  }
@@ -2072,9 +2073,9 @@ var yd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
2072
2073
  var d = b;
2073
2074
  c = c < 2 * a.length ? c / 2 : a.length;
2074
2075
  for (var e = 0; e < c; ++e) {
2075
- Da[b >> 1] = a.charCodeAt(e), b += 2;
2076
+ Ca[b >> 1] = a.charCodeAt(e), b += 2;
2076
2077
  }
2077
- Da[b >> 1] = 0;
2078
+ Ca[b >> 1] = 0;
2078
2079
  return b - d;
2079
2080
  }, Bd = a => 2 * a.length, Cd = (a, b) => {
2080
2081
  for (var c = 0, d = ""; !(c >= b / 4);) {
@@ -2117,7 +2118,7 @@ var yd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
2117
2118
  }, Fd = {};
2118
2119
  function Gd(a) {
2119
2120
  var b = Fd[a];
2120
- return void 0 === b ? W(a) : b;
2121
+ return void 0 === b ? V(a) : b;
2121
2122
  }
2122
2123
  var Hd = [];
2123
2124
  function Id(a) {
@@ -2133,7 +2134,7 @@ function Jd(a, b) {
2133
2134
  }
2134
2135
  var Kd = [], Ld = [], Md = {}, Od = () => {
2135
2136
  if (!Nd) {
2136
- var a = {USER:"web_user", LOGNAME:"web_user", PATH:"/", PWD:"/", HOME:"/home/web_user", LANG:("object" == typeof navigator && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _:na || "./this.program"}, b;
2137
+ var a = {USER:"web_user", LOGNAME:"web_user", PATH:"/", PWD:"/", HOME:"/home/web_user", LANG:("object" == typeof navigator && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _:ma || "./this.program"}, b;
2137
2138
  for (b in Md) {
2138
2139
  void 0 === Md[b] ? delete a[b] : a[b] = Md[b];
2139
2140
  }
@@ -2158,9 +2159,9 @@ var Kd = [], Ld = [], Md = {}, Od = () => {
2158
2159
  function r(D) {
2159
2160
  return 0 > D ? -1 : 0 < D ? 1 : 0;
2160
2161
  }
2161
- var B;
2162
- 0 === (B = r(k.getFullYear() - t.getFullYear())) && 0 === (B = r(k.getMonth() - t.getMonth())) && (B = r(k.getDate() - t.getDate()));
2163
- return B;
2162
+ var A;
2163
+ 0 === (A = r(k.getFullYear() - t.getFullYear())) && 0 === (A = r(k.getMonth() - t.getMonth())) && (A = r(k.getDate() - t.getDate()));
2164
+ return A;
2164
2165
  }
2165
2166
  function n(k) {
2166
2167
  switch(k.getDay()) {
@@ -2183,9 +2184,9 @@ var Kd = [], Ld = [], Md = {}, Od = () => {
2183
2184
  function p(k) {
2184
2185
  var t = k.ca;
2185
2186
  for (k = new Date((new Date(k.da + 1900, 0, 1)).getTime()); 0 < t;) {
2186
- var r = k.getMonth(), B = (Pd(k.getFullYear()) ? Qd : Rd)[r];
2187
- if (t > B - k.getDate()) {
2188
- t -= B - k.getDate() + 1, k.setDate(1), 11 > r ? k.setMonth(r + 1) : (k.setMonth(0), k.setFullYear(k.getFullYear() + 1));
2187
+ var r = k.getMonth(), A = (Pd(k.getFullYear()) ? Qd : Rd)[r];
2188
+ if (t > A - k.getDate()) {
2189
+ t -= A - k.getDate() + 1, k.setDate(1), 11 > r ? k.setMonth(r + 1) : (k.setMonth(0), k.setFullYear(k.getFullYear() + 1));
2189
2190
  } else {
2190
2191
  k.setDate(k.getDate() + t);
2191
2192
  break;
@@ -2197,14 +2198,14 @@ var Kd = [], Ld = [], Md = {}, Od = () => {
2197
2198
  return 0 >= g(t, k) ? 0 >= g(r, k) ? k.getFullYear() + 1 : k.getFullYear() : k.getFullYear() - 1;
2198
2199
  }
2199
2200
  var l = L[d + 40 >> 2];
2200
- d = {wc:L[d >> 2], vc:L[d + 4 >> 2], Fa:L[d + 8 >> 2], Sa:L[d + 12 >> 2], Ga:L[d + 16 >> 2], da:L[d + 20 >> 2], R:L[d + 24 >> 2], ca:L[d + 28 >> 2], Rc:L[d + 32 >> 2], uc:L[d + 36 >> 2], xc:l ? l ? nb(E, l) : "" : ""};
2201
- c = c ? nb(E, c) : "";
2201
+ d = {wc:L[d >> 2], vc:L[d + 4 >> 2], Fa:L[d + 8 >> 2], Sa:L[d + 12 >> 2], Ga:L[d + 16 >> 2], da:L[d + 20 >> 2], R:L[d + 24 >> 2], ca:L[d + 28 >> 2], Rc:L[d + 32 >> 2], uc:L[d + 36 >> 2], xc:l ? l ? mb(E, l) : "" : ""};
2202
+ c = c ? mb(E, c) : "";
2202
2203
  l = {"%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",};
2203
2204
  for (var u in l) {
2204
2205
  c = c.replace(new RegExp(u, "g"), l[u]);
2205
2206
  }
2206
- var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), x = "January February March April May June July August September October November December".split(" ");
2207
- l = {"%a":k => v[k.R].substring(0, 3), "%A":k => v[k.R], "%b":k => x[k.Ga].substring(0, 3), "%B":k => x[k.Ga], "%C":k => f((k.da + 1900) / 100 | 0, 2), "%d":k => f(k.Sa, 2), "%e":k => e(k.Sa, 2, " "), "%g":k => p(k).toString().substring(2), "%G":k => p(k), "%H":k => f(k.Fa, 2), "%I":k => {
2207
+ var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), y = "January February March April May June July August September October November December".split(" ");
2208
+ l = {"%a":k => v[k.R].substring(0, 3), "%A":k => v[k.R], "%b":k => y[k.Ga].substring(0, 3), "%B":k => y[k.Ga], "%C":k => f((k.da + 1900) / 100 | 0, 2), "%d":k => f(k.Sa, 2), "%e":k => e(k.Sa, 2, " "), "%g":k => p(k).toString().substring(2), "%G":k => p(k), "%H":k => f(k.Fa, 2), "%I":k => {
2208
2209
  k = k.Fa;
2209
2210
  0 == k ? k = 12 : 12 < k && (k -= 12);
2210
2211
  return f(k, 2);
@@ -2234,26 +2235,26 @@ var Kd = [], Ld = [], Md = {}, Od = () => {
2234
2235
  c.includes(u) && (c = c.replace(new RegExp(u, "g"), l[u](d)));
2235
2236
  }
2236
2237
  c = c.replace(/\0\0/g, "%");
2237
- u = rb(c, !1);
2238
+ u = qb(c, !1);
2238
2239
  if (u.length > b) {
2239
2240
  return 0;
2240
2241
  }
2241
2242
  C.set(u, a);
2242
2243
  return u.length - 1;
2243
2244
  };
2244
- function Pb(a, b, c, d) {
2245
+ function Ob(a, b, c, d) {
2245
2246
  a || (a = this);
2246
2247
  this.parent = a;
2247
2248
  this.U = a.U;
2248
2249
  this.wa = null;
2249
- this.id = Hb++;
2250
+ this.id = Gb++;
2250
2251
  this.name = b;
2251
2252
  this.mode = c;
2252
2253
  this.l = {};
2253
2254
  this.m = {};
2254
2255
  this.za = d;
2255
2256
  }
2256
- Object.defineProperties(Pb.prototype, {read:{get:function() {
2257
+ Object.defineProperties(Ob.prototype, {read:{get:function() {
2257
2258
  return 365 === (this.mode & 365);
2258
2259
  }, set:function(a) {
2259
2260
  a ? this.mode |= 365 : this.mode &= -366;
@@ -2263,36 +2264,36 @@ Object.defineProperties(Pb.prototype, {read:{get:function() {
2263
2264
  a ? this.mode |= 146 : this.mode &= -147;
2264
2265
  }}});
2265
2266
  gc();
2266
- Ib = Array(4096);
2267
- Wb(P, "/");
2268
- S("/tmp", 16895, 0);
2269
- S("/home", 16895, 0);
2270
- S("/home/web_user", 16895, 0);
2267
+ Hb = Array(4096);
2268
+ Vb(P, "/");
2269
+ Wb("/tmp", 16895, 0);
2270
+ Wb("/home", 16895, 0);
2271
+ Wb("/home/web_user", 16895, 0);
2271
2272
  (() => {
2272
- S("/dev", 16895, 0);
2273
- ub(259, {read:() => 0, write:(d, e, f, g) => g,});
2273
+ Wb("/dev", 16895, 0);
2274
+ tb(259, {read:() => 0, write:(d, e, f, g) => g,});
2274
2275
  Xb("/dev/null", 259);
2275
- tb(1280, wb);
2276
- tb(1536, xb);
2276
+ sb(1280, vb);
2277
+ sb(1536, wb);
2277
2278
  Xb("/dev/tty", 1280);
2278
2279
  Xb("/dev/tty1", 1536);
2279
2280
  var a = new Uint8Array(1024), b = 0, c = () => {
2280
- 0 === b && (b = kb(a).byteLength);
2281
+ 0 === b && (b = jb(a).byteLength);
2281
2282
  return a[--b];
2282
2283
  };
2283
2284
  jc("random", c);
2284
2285
  jc("urandom", c);
2285
- S("/dev/shm", 16895, 0);
2286
- S("/dev/shm/tmp", 16895, 0);
2286
+ Wb("/dev/shm", 16895, 0);
2287
+ Wb("/dev/shm/tmp", 16895, 0);
2287
2288
  })();
2288
2289
  (() => {
2289
- S("/proc", 16895, 0);
2290
- var a = S("/proc/self", 16895, 0);
2291
- S("/proc/self/fd", 16895, 0);
2292
- Wb({U:() => {
2293
- var b = Ab(a, "fd", 16895, 73);
2290
+ Wb("/proc", 16895, 0);
2291
+ var a = Wb("/proc/self", 16895, 0);
2292
+ Wb("/proc/self/fd", 16895, 0);
2293
+ Vb({U:() => {
2294
+ var b = zb(a, "fd", 16895, 73);
2294
2295
  b.l = {ka:(c, d) => {
2295
- var e = Tb(+d);
2296
+ var e = Sb(+d);
2296
2297
  c = {parent:null, U:{nb:"fake"}, l:{ma:() => e.path},};
2297
2298
  return c.parent = c;
2298
2299
  }};
@@ -2317,11 +2318,11 @@ qc = m.BindingError = class extends Error {
2317
2318
  this.name = "BindingError";
2318
2319
  }
2319
2320
  };
2320
- U.M.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
2321
- U.h = U.M.length;
2321
+ S.M.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
2322
+ S.h = S.M.length;
2322
2323
  m.count_emval_handles = function() {
2323
- for (var a = 0, b = U.h; b < U.M.length; ++b) {
2324
- void 0 !== U.M[b] && ++a;
2324
+ for (var a = 0, b = S.h; b < S.M.length; ++b) {
2325
+ void 0 !== S.M[b] && ++a;
2325
2326
  }
2326
2327
  return a;
2327
2328
  };
@@ -2377,7 +2378,7 @@ Zc.prototype.clone = function() {
2377
2378
  };
2378
2379
  Zc.prototype["delete"] = function() {
2379
2380
  this.g.o || Yc(this);
2380
- this.g.fa && !this.g.ia && V("Object already scheduled for deletion");
2381
+ this.g.fa && !this.g.ia && U("Object already scheduled for deletion");
2381
2382
  Gc(this);
2382
2383
  Ic(this.g);
2383
2384
  this.g.ia || (this.g.G = void 0, this.g.o = void 0);
@@ -2387,7 +2388,7 @@ Zc.prototype.isDeleted = function() {
2387
2388
  };
2388
2389
  Zc.prototype.deleteLater = function() {
2389
2390
  this.g.o || Yc(this);
2390
- this.g.fa && !this.g.ia && V("Object already scheduled for deletion");
2391
+ this.g.fa && !this.g.ia && U("Object already scheduled for deletion");
2391
2392
  wc.push(this);
2392
2393
  1 === wc.length && yc && yc(xc);
2393
2394
  this.g.fa = !0;
@@ -2437,11 +2438,11 @@ nd = m.UnboundTypeError = tc("UnboundTypeError");
2437
2438
  var Xd = {__syscall_fcntl64:function(a, b, c) {
2438
2439
  lc = c;
2439
2440
  try {
2440
- var d = Tb(a);
2441
+ var d = Sb(a);
2441
2442
  switch(b) {
2442
2443
  case 0:
2443
2444
  var e = mc();
2444
- return 0 > e ? -28 : Vb(d, e).X;
2445
+ return 0 > e ? -28 : Ub(d, e).X;
2445
2446
  case 1:
2446
2447
  case 2:
2447
2448
  return 0;
@@ -2450,7 +2451,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2450
2451
  case 4:
2451
2452
  return e = mc(), d.flags |= e, 0;
2452
2453
  case 5:
2453
- return e = mc(), Da[e + 0 >> 1] = 2, 0;
2454
+ return e = mc(), Ca[e + 0 >> 1] = 2, 0;
2454
2455
  case 6:
2455
2456
  case 7:
2456
2457
  return 0;
@@ -2471,7 +2472,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2471
2472
  }, __syscall_ioctl:function(a, b, c) {
2472
2473
  lc = c;
2473
2474
  try {
2474
- var d = Tb(a);
2475
+ var d = Sb(a);
2475
2476
  switch(b) {
2476
2477
  case 21509:
2477
2478
  return d.s ? 0 : -59;
@@ -2525,7 +2526,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2525
2526
  if (!d.s) {
2526
2527
  return -59;
2527
2528
  }
2528
- d.s.V.dc && (f = [24, 80], e = mc(), Da[e >> 1] = f[0], Da[e + 2 >> 1] = f[1]);
2529
+ d.s.V.dc && (f = [24, 80], e = mc(), Ca[e >> 1] = f[0], Ca[e + 2 >> 1] = f[1]);
2529
2530
  return 0;
2530
2531
  case 21524:
2531
2532
  return d.s ? 0 : -59;
@@ -2543,16 +2544,16 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2543
2544
  }, __syscall_openat:function(a, b, c, d) {
2544
2545
  lc = d;
2545
2546
  try {
2546
- b = b ? nb(E, b) : "";
2547
+ b = b ? mb(E, b) : "";
2547
2548
  var e = b;
2548
2549
  if ("/" === e.charAt(0)) {
2549
2550
  b = e;
2550
2551
  } else {
2551
- var f = -100 === a ? "/" : Tb(a).path;
2552
+ var f = -100 === a ? "/" : Sb(a).path;
2552
2553
  if (0 == e.length) {
2553
2554
  throw new O(44);
2554
2555
  }
2555
- b = gb(f + "/" + e);
2556
+ b = fb(f + "/" + e);
2556
2557
  }
2557
2558
  var g = d ? mc() : 0;
2558
2559
  return ec(b, c, g).X;
@@ -2563,7 +2564,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2563
2564
  return -n.aa;
2564
2565
  }
2565
2566
  }, _embind_create_inheriting_constructor:function(a, b, c) {
2566
- a = W(a);
2567
+ a = V(a);
2567
2568
  b = Fc(b, "wrapper");
2568
2569
  c = rc(c);
2569
2570
  var d = [].slice, e = b.i, f = e.N, g = e.A.N, n = e.A.constructor;
@@ -2577,7 +2578,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2577
2578
  this.__construct.apply(this, d.call(arguments));
2578
2579
  });
2579
2580
  f.__construct = function() {
2580
- this === f && V("Pass correct 'this' to __construct");
2581
+ this === f && U("Pass correct 'this' to __construct");
2581
2582
  var l = n.implement.apply(void 0, [this].concat(d.call(arguments)));
2582
2583
  Gc(l);
2583
2584
  var u = l.g;
@@ -2587,14 +2588,14 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2587
2588
  Pc(this);
2588
2589
  l = u.o;
2589
2590
  l = Ac(e, l);
2590
- zc.hasOwnProperty(l) ? V(`Tried to register registered instance: ${l}`) : zc[l] = this;
2591
+ zc.hasOwnProperty(l) ? U(`Tried to register registered instance: ${l}`) : zc[l] = this;
2591
2592
  };
2592
2593
  f.__destruct = function() {
2593
- this === f && V("Pass correct 'this' to __destruct");
2594
+ this === f && U("Pass correct 'this' to __destruct");
2594
2595
  Gc(this);
2595
2596
  var l = this.g.o;
2596
2597
  l = Ac(e, l);
2597
- zc.hasOwnProperty(l) ? delete zc[l] : V(`Tried to unregister unregistered instance: ${l}`);
2598
+ zc.hasOwnProperty(l) ? delete zc[l] : U(`Tried to unregister unregistered instance: ${l}`);
2598
2599
  };
2599
2600
  a.prototype = Object.create(f);
2600
2601
  for (var p in c) {
@@ -2605,13 +2606,13 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2605
2606
  var b = Qc[a];
2606
2607
  delete Qc[a];
2607
2608
  var c = b.Pa, d = b.W, e = b.fb, f = e.map(g => g.Yb).concat(e.map(g => g.rc));
2608
- Y([a], f, g => {
2609
+ W([a], f, g => {
2609
2610
  var n = {};
2610
2611
  e.forEach((p, l) => {
2611
- var u = g[l], v = p.Wb, x = p.Xb, k = g[l + e.length], t = p.qc, r = p.sc;
2612
- n[p.Sb] = {read:B => u.fromWireType(v(x, B)), write:(B, D) => {
2612
+ var u = g[l], v = p.Wb, y = p.Xb, k = g[l + e.length], t = p.qc, r = p.sc;
2613
+ n[p.Sb] = {read:A => u.fromWireType(v(y, A)), write:(A, D) => {
2613
2614
  var w = [];
2614
- t(r, B, k.toWireType(w, D));
2615
+ t(r, A, k.toWireType(w, D));
2615
2616
  Rc(w);
2616
2617
  }};
2617
2618
  });
@@ -2639,7 +2640,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2639
2640
  }, _embind_register_bigint:function() {
2640
2641
  }, _embind_register_bool:function(a, b, c, d, e) {
2641
2642
  var f = Wc(c);
2642
- b = W(b);
2643
+ b = V(b);
2643
2644
  Vc(a, {name:b, fromWireType:function(g) {
2644
2645
  return !!g;
2645
2646
  }, toWireType:function(g, n) {
@@ -2648,7 +2649,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2648
2649
  if (1 === c) {
2649
2650
  var n = C;
2650
2651
  } else if (2 === c) {
2651
- n = Da;
2652
+ n = Ca;
2652
2653
  } else if (4 === c) {
2653
2654
  n = L;
2654
2655
  } else {
@@ -2656,23 +2657,23 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2656
2657
  }
2657
2658
  return this.fromWireType(n[g >> f]);
2658
2659
  }, K:null,});
2659
- }, _embind_register_class:function(a, b, c, d, e, f, g, n, p, l, u, v, x) {
2660
- u = W(u);
2661
- f = Z(e, f);
2662
- n && (n = Z(g, n));
2663
- l && (l = Z(p, l));
2664
- x = Z(v, x);
2660
+ }, _embind_register_class:function(a, b, c, d, e, f, g, n, p, l, u, v, y) {
2661
+ u = V(u);
2662
+ f = Y(e, f);
2663
+ n && (n = Y(g, n));
2664
+ l && (l = Y(p, l));
2665
+ y = Y(v, y);
2665
2666
  var k = nc(u);
2666
2667
  ad(k, function() {
2667
2668
  od(`Cannot construct ${u} due to unbound types`, [d]);
2668
2669
  });
2669
- Y([a, b, c], d ? [d] : [], function(t) {
2670
+ W([a, b, c], d ? [d] : [], function(t) {
2670
2671
  t = t[0];
2671
2672
  if (d) {
2672
2673
  var r = t.i;
2673
- var B = r.N;
2674
+ var A = r.N;
2674
2675
  } else {
2675
- B = Zc.prototype;
2676
+ A = Zc.prototype;
2676
2677
  }
2677
2678
  t = oc(k, function() {
2678
2679
  if (Object.getPrototypeOf(this) !== D) {
@@ -2687,22 +2688,22 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2687
2688
  }
2688
2689
  return T.apply(this, arguments);
2689
2690
  });
2690
- var D = Object.create(B, {constructor:{value:t},});
2691
+ var D = Object.create(A, {constructor:{value:t},});
2691
2692
  t.prototype = D;
2692
- var w = new bd(u, t, D, x, r, f, n, l);
2693
+ var w = new bd(u, t, D, y, r, f, n, l);
2693
2694
  w.A && (void 0 === w.A.oa && (w.A.oa = []), w.A.oa.push(w));
2694
2695
  r = new hd(u, w, !0, !1);
2695
- B = new hd(u + "*", w, !1, !1);
2696
+ A = new hd(u + "*", w, !1, !1);
2696
2697
  var M = new hd(u + " const*", w, !1, !0);
2697
- Kc[a] = {pointerType:B, Kb:M};
2698
+ Kc[a] = {pointerType:A, Kb:M};
2698
2699
  jd(k, t);
2699
- return [r, B, M];
2700
+ return [r, A, M];
2700
2701
  });
2701
2702
  }, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
2702
2703
  var n = sd(c, d);
2703
- b = W(b);
2704
- f = Z(e, f);
2705
- Y([], [a], function(p) {
2704
+ b = V(b);
2705
+ f = Y(e, f);
2706
+ W([], [a], function(p) {
2706
2707
  function l() {
2707
2708
  od(`Cannot call ${u} due to unbound types`, n);
2708
2709
  }
@@ -2711,12 +2712,12 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2711
2712
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2712
2713
  var v = p.i.constructor;
2713
2714
  void 0 === v[b] ? (l.ea = c - 1, v[b] = l) : ($c(v, b, u), v[b].B[c - 1] = l);
2714
- Y([], n, function(x) {
2715
- x = pd(u, [x[0], null].concat(x.slice(1)), null, f, g);
2716
- void 0 === v[b].B ? (x.ea = c - 1, v[b] = x) : v[b].B[c - 1] = x;
2715
+ W([], n, function(y) {
2716
+ y = pd(u, [y[0], null].concat(y.slice(1)), null, f, g);
2717
+ void 0 === v[b].B ? (y.ea = c - 1, v[b] = y) : v[b].B[c - 1] = y;
2717
2718
  if (p.i.oa) {
2718
2719
  for (const k of p.i.oa) {
2719
- k.constructor.hasOwnProperty(b) || (k.constructor[b] = x);
2720
+ k.constructor.hasOwnProperty(b) || (k.constructor[b] = y);
2720
2721
  }
2721
2722
  }
2722
2723
  return [];
@@ -2724,9 +2725,9 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2724
2725
  return [];
2725
2726
  });
2726
2727
  }, _embind_register_class_class_property:function(a, b, c, d, e, f, g, n) {
2727
- b = W(b);
2728
- f = Z(e, f);
2729
- Y([], [a], function(p) {
2728
+ b = V(b);
2729
+ f = Y(e, f);
2730
+ W([], [a], function(p) {
2730
2731
  p = p[0];
2731
2732
  var l = `${p.name}.${b}`, u = {get() {
2732
2733
  od(`Cannot access ${l} due to unbound types`, [c]);
@@ -2734,28 +2735,28 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2734
2735
  u.set = n ? () => {
2735
2736
  od(`Cannot access ${l} due to unbound types`, [c]);
2736
2737
  } : () => {
2737
- V(`${l} is a read-only property`);
2738
+ U(`${l} is a read-only property`);
2738
2739
  };
2739
2740
  Object.defineProperty(p.i.constructor, b, u);
2740
- Y([], [c], function(v) {
2741
+ W([], [c], function(v) {
2741
2742
  v = v[0];
2742
- var x = {get() {
2743
+ var y = {get() {
2743
2744
  return v.fromWireType(f(d));
2744
2745
  }, enumerable:!0};
2745
- n && (n = Z(g, n), x.set = k => {
2746
+ n && (n = Y(g, n), y.set = k => {
2746
2747
  var t = [];
2747
2748
  n(d, v.toWireType(t, k));
2748
2749
  Rc(t);
2749
2750
  });
2750
- Object.defineProperty(p.i.constructor, b, x);
2751
+ Object.defineProperty(p.i.constructor, b, y);
2751
2752
  return [];
2752
2753
  });
2753
2754
  return [];
2754
2755
  });
2755
2756
  }, _embind_register_class_constructor:function(a, b, c, d, e, f) {
2756
2757
  var g = sd(b, c);
2757
- e = Z(d, e);
2758
- Y([], [a], function(n) {
2758
+ e = Y(d, e);
2759
+ W([], [a], function(n) {
2759
2760
  n = n[0];
2760
2761
  var p = `constructor ${n.name}`;
2761
2762
  void 0 === n.i.$ && (n.i.$ = []);
@@ -2765,7 +2766,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2765
2766
  n.i.$[b - 1] = () => {
2766
2767
  od(`Cannot construct ${n.name} due to unbound types`, g);
2767
2768
  };
2768
- Y([], g, function(l) {
2769
+ W([], g, function(l) {
2769
2770
  l.splice(1, 0, null);
2770
2771
  n.i.$[b - 1] = pd(p, l, null, e, f);
2771
2772
  return [];
@@ -2774,9 +2775,9 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2774
2775
  });
2775
2776
  }, _embind_register_class_function:function(a, b, c, d, e, f, g, n) {
2776
2777
  var p = sd(c, d);
2777
- b = W(b);
2778
- f = Z(e, f);
2779
- Y([], [a], function(l) {
2778
+ b = V(b);
2779
+ f = Y(e, f);
2780
+ W([], [a], function(l) {
2780
2781
  function u() {
2781
2782
  od(`Cannot call ${v} due to unbound types`, p);
2782
2783
  }
@@ -2784,40 +2785,40 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2784
2785
  var v = `${l.name}.${b}`;
2785
2786
  b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2786
2787
  n && l.i.rb.push(b);
2787
- var x = l.i.N, k = x[b];
2788
- void 0 === k || void 0 === k.B && k.className !== l.name && k.ea === c - 2 ? (u.ea = c - 2, u.className = l.name, x[b] = u) : ($c(x, b, v), x[b].B[c - 2] = u);
2789
- Y([], p, function(t) {
2788
+ var y = l.i.N, k = y[b];
2789
+ void 0 === k || void 0 === k.B && k.className !== l.name && k.ea === c - 2 ? (u.ea = c - 2, u.className = l.name, y[b] = u) : ($c(y, b, v), y[b].B[c - 2] = u);
2790
+ W([], p, function(t) {
2790
2791
  t = pd(v, t, l, f, g);
2791
- void 0 === x[b].B ? (t.ea = c - 2, x[b] = t) : x[b].B[c - 2] = t;
2792
+ void 0 === y[b].B ? (t.ea = c - 2, y[b] = t) : y[b].B[c - 2] = t;
2792
2793
  return [];
2793
2794
  });
2794
2795
  return [];
2795
2796
  });
2796
2797
  }, _embind_register_class_property:function(a, b, c, d, e, f, g, n, p, l) {
2797
- b = W(b);
2798
- e = Z(d, e);
2799
- Y([], [a], function(u) {
2798
+ b = V(b);
2799
+ e = Y(d, e);
2800
+ W([], [a], function(u) {
2800
2801
  u = u[0];
2801
- var v = `${u.name}.${b}`, x = {get() {
2802
+ var v = `${u.name}.${b}`, y = {get() {
2802
2803
  od(`Cannot access ${v} due to unbound types`, [c, g]);
2803
2804
  }, enumerable:!0, configurable:!0};
2804
- x.set = p ? () => {
2805
+ y.set = p ? () => {
2805
2806
  od(`Cannot access ${v} due to unbound types`, [c, g]);
2806
2807
  } : () => {
2807
- V(v + " is a read-only property");
2808
+ U(v + " is a read-only property");
2808
2809
  };
2809
- Object.defineProperty(u.i.N, b, x);
2810
- Y([], p ? [c, g] : [c], function(k) {
2810
+ Object.defineProperty(u.i.N, b, y);
2811
+ W([], p ? [c, g] : [c], function(k) {
2811
2812
  var t = k[0], r = {get() {
2812
2813
  var D = td(this, u, v + " getter");
2813
2814
  return t.fromWireType(e(f, D));
2814
2815
  }, enumerable:!0};
2815
2816
  if (p) {
2816
- p = Z(n, p);
2817
- var B = k[1];
2817
+ p = Y(n, p);
2818
+ var A = k[1];
2818
2819
  r.set = function(D) {
2819
2820
  var w = td(this, u, v + " setter"), M = [];
2820
- p(l, w, B.toWireType(M, D));
2821
+ p(l, w, A.toWireType(M, D));
2821
2822
  Rc(M);
2822
2823
  };
2823
2824
  }
@@ -2827,7 +2828,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2827
2828
  return [];
2828
2829
  });
2829
2830
  }, _embind_register_emval:function(a, b) {
2830
- b = W(b);
2831
+ b = V(b);
2831
2832
  Vc(a, {name:b, fromWireType:function(c) {
2832
2833
  var d = rc(c);
2833
2834
  ud(c);
@@ -2839,7 +2840,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2839
2840
  function e() {
2840
2841
  }
2841
2842
  c = Wc(c);
2842
- b = W(b);
2843
+ b = V(b);
2843
2844
  e.values = {};
2844
2845
  Vc(a, {name:b, constructor:e, fromWireType:function(f) {
2845
2846
  return this.constructor.values[f];
@@ -2849,7 +2850,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2849
2850
  ad(b, e);
2850
2851
  }, _embind_register_enum_value:function(a, b, c) {
2851
2852
  var d = Fc(a, "enum");
2852
- b = W(b);
2853
+ b = V(b);
2853
2854
  a = d.constructor;
2854
2855
  d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:oc(`${d.name}_${b}`, function() {
2855
2856
  })},});
@@ -2857,7 +2858,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2857
2858
  a[b] = d;
2858
2859
  }, _embind_register_float:function(a, b, c) {
2859
2860
  c = Wc(c);
2860
- b = W(b);
2861
+ b = V(b);
2861
2862
  Vc(a, {name:b, fromWireType:function(d) {
2862
2863
  return d;
2863
2864
  }, toWireType:function(d, e) {
@@ -2865,17 +2866,17 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2865
2866
  }, argPackAdvance:8, readValueFromPointer:wd(b, c), K:null,});
2866
2867
  }, _embind_register_function:function(a, b, c, d, e, f) {
2867
2868
  var g = sd(b, c);
2868
- a = W(a);
2869
- e = Z(d, e);
2869
+ a = V(a);
2870
+ e = Y(d, e);
2870
2871
  ad(a, function() {
2871
2872
  od(`Cannot call ${a} due to unbound types`, g);
2872
2873
  }, b - 1);
2873
- Y([], g, function(n) {
2874
+ W([], g, function(n) {
2874
2875
  jd(a, pd(a, [n[0], null].concat(n.slice(1)), null, e, f), b - 1);
2875
2876
  return [];
2876
2877
  });
2877
2878
  }, _embind_register_integer:function(a, b, c, d, e) {
2878
- b = W(b);
2879
+ b = V(b);
2879
2880
  -1 === e && (e = 4294967295);
2880
2881
  e = Wc(c);
2881
2882
  var f = n => n;
@@ -2896,10 +2897,10 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2896
2897
  return new e(g.buffer, g[f + 1], g[f]);
2897
2898
  }
2898
2899
  var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
2899
- c = W(c);
2900
+ c = V(c);
2900
2901
  Vc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {$b:!0,});
2901
2902
  }, _embind_register_std_string:function(a, b) {
2902
- b = W(b);
2903
+ b = V(b);
2903
2904
  var c = "std::string" === b;
2904
2905
  Vc(a, {name:b, fromWireType:function(d) {
2905
2906
  var e = N[d >> 2], f = d + 4;
@@ -2907,7 +2908,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2907
2908
  for (var g = f, n = 0; n <= e; ++n) {
2908
2909
  var p = f + n;
2909
2910
  if (n == e || 0 == E[p]) {
2910
- g = g ? nb(E, g, p - g) : "";
2911
+ g = g ? mb(E, g, p - g) : "";
2911
2912
  if (void 0 === l) {
2912
2913
  var l = g;
2913
2914
  } else {
@@ -2928,17 +2929,17 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2928
2929
  }, toWireType:function(d, e) {
2929
2930
  e instanceof ArrayBuffer && (e = new Uint8Array(e));
2930
2931
  var f = "string" == typeof e;
2931
- f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || V("Cannot pass non-string to std::string");
2932
- var g = c && f ? pb(e) : e.length;
2932
+ f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || U("Cannot pass non-string to std::string");
2933
+ var g = c && f ? ob(e) : e.length;
2933
2934
  var n = Wd(4 + g + 1), p = n + 4;
2934
2935
  N[n >> 2] = g;
2935
2936
  if (c && f) {
2936
- qb(e, E, p, g + 1);
2937
+ pb(e, E, p, g + 1);
2937
2938
  } else {
2938
2939
  if (f) {
2939
2940
  for (f = 0; f < g; ++f) {
2940
2941
  var l = e.charCodeAt(f);
2941
- 255 < l && (Ec(p), V("String has UTF-16 code units that do not fit in 8 bits"));
2942
+ 255 < l && (Ec(p), U("String has UTF-16 code units that do not fit in 8 bits"));
2942
2943
  E[p + f] = l;
2943
2944
  }
2944
2945
  } else {
@@ -2953,27 +2954,27 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2953
2954
  Ec(d);
2954
2955
  },});
2955
2956
  }, _embind_register_std_wstring:function(a, b, c) {
2956
- c = W(c);
2957
+ c = V(c);
2957
2958
  if (2 === b) {
2958
2959
  var d = zd;
2959
2960
  var e = Ad;
2960
2961
  var f = Bd;
2961
- var g = () => Ea;
2962
+ var g = () => Da;
2962
2963
  var n = 1;
2963
2964
  } else {
2964
2965
  4 === b && (d = Cd, e = Dd, f = Ed, g = () => N, n = 2);
2965
2966
  }
2966
2967
  Vc(a, {name:c, fromWireType:function(p) {
2967
- for (var l = N[p >> 2], u = g(), v, x = p + 4, k = 0; k <= l; ++k) {
2968
+ for (var l = N[p >> 2], u = g(), v, y = p + 4, k = 0; k <= l; ++k) {
2968
2969
  var t = p + 4 + k * b;
2969
2970
  if (k == l || 0 == u[t >> n]) {
2970
- x = d(x, t - x), void 0 === v ? v = x : (v += String.fromCharCode(0), v += x), x = t + b;
2971
+ y = d(y, t - y), void 0 === v ? v = y : (v += String.fromCharCode(0), v += y), y = t + b;
2971
2972
  }
2972
2973
  }
2973
2974
  Ec(p);
2974
2975
  return v;
2975
2976
  }, toWireType:function(p, l) {
2976
- "string" != typeof l && V(`Cannot pass non-string to C++ string type ${c}`);
2977
+ "string" != typeof l && U(`Cannot pass non-string to C++ string type ${c}`);
2977
2978
  var u = f(l), v = Wd(4 + u + b);
2978
2979
  N[v >> 2] = u >> n;
2979
2980
  e(l, v + 4, u + b);
@@ -2983,11 +2984,11 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
2983
2984
  Ec(p);
2984
2985
  },});
2985
2986
  }, _embind_register_value_object:function(a, b, c, d, e, f) {
2986
- Qc[a] = {name:W(b), Pa:Z(c, d), W:Z(e, f), fb:[],};
2987
+ Qc[a] = {name:V(b), Pa:Y(c, d), W:Y(e, f), fb:[],};
2987
2988
  }, _embind_register_value_object_field:function(a, b, c, d, e, f, g, n, p, l) {
2988
- Qc[a].fb.push({Sb:W(b), Yb:c, Wb:Z(d, e), Xb:f, rc:g, qc:Z(n, p), sc:l,});
2989
+ Qc[a].fb.push({Sb:V(b), Yb:c, Wb:Y(d, e), Xb:f, rc:g, qc:Y(n, p), sc:l,});
2989
2990
  }, _embind_register_void:function(a, b) {
2990
- b = W(b);
2991
+ b = V(b);
2991
2992
  Vc(a, {fc:!0, name:b, argPackAdvance:0, fromWireType:function() {
2992
2993
  }, toWireType:function() {
2993
2994
  },});
@@ -3040,7 +3041,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
3040
3041
  b = rc(b);
3041
3042
  return sc(a[b]);
3042
3043
  }, _emval_incref:function(a) {
3043
- 4 < a && (U.get(a).ub += 1);
3044
+ 4 < a && (S.get(a).ub += 1);
3044
3045
  }, _emval_new_array:function() {
3045
3046
  return sc([]);
3046
3047
  }, _emval_new_cstring:function(a) {
@@ -3061,14 +3062,14 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
3061
3062
  a = a.readValueFromPointer(b);
3062
3063
  return sc(a);
3063
3064
  }, abort:() => {
3064
- Aa("");
3065
+ ya("");
3065
3066
  }, emscripten_asm_const_int:(a, b, c) => {
3066
3067
  Ld.length = 0;
3067
3068
  var d;
3068
3069
  for (c >>= 2; d = E[b++];) {
3069
- c += 105 != d & c, Ld.push(105 == d ? L[c] : Ia[c++ >> 1]), ++c;
3070
+ c += 105 != d & c, Ld.push(105 == d ? L[c] : Fa[c++ >> 1]), ++c;
3070
3071
  }
3071
- return db[a].apply(null, Ld);
3072
+ return cb[a].apply(null, Ld);
3072
3073
  }, emscripten_date_now:function() {
3073
3074
  return Date.now();
3074
3075
  }, emscripten_get_now:() => performance.now(), emscripten_memcpy_big:(a, b, c) => E.copyWithin(a, b, b + c), emscripten_resize_heap:a => {
@@ -3083,10 +3084,10 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
3083
3084
  var e = Math;
3084
3085
  d = Math.max(a, d);
3085
3086
  a: {
3086
- e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - Ba.buffer.byteLength + 65535 >>> 16;
3087
+ e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - Aa.buffer.byteLength + 65535 >>> 16;
3087
3088
  try {
3088
- Ba.grow(e);
3089
- Ja();
3089
+ Aa.grow(e);
3090
+ Ia();
3090
3091
  var f = 1;
3091
3092
  break a;
3092
3093
  } catch (g) {
@@ -3121,7 +3122,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
3121
3122
  return 0;
3122
3123
  }, fd_close:function(a) {
3123
3124
  try {
3124
- var b = Tb(a);
3125
+ var b = Sb(a);
3125
3126
  if (null === b.X) {
3126
3127
  throw new O(8);
3127
3128
  }
@@ -3131,7 +3132,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
3131
3132
  } catch (c) {
3132
3133
  throw c;
3133
3134
  } finally {
3134
- Gb[b.X] = null;
3135
+ Fb[b.X] = null;
3135
3136
  }
3136
3137
  b.X = null;
3137
3138
  return 0;
@@ -3144,13 +3145,13 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
3144
3145
  }, fd_read:function(a, b, c, d) {
3145
3146
  try {
3146
3147
  a: {
3147
- var e = Tb(a);
3148
+ var e = Sb(a);
3148
3149
  a = b;
3149
3150
  for (var f, g = b = 0; g < c; g++) {
3150
3151
  var n = N[a >> 2], p = N[a + 4 >> 2];
3151
3152
  a += 8;
3152
- var l = e, u = n, v = p, x = f, k = C;
3153
- if (0 > v || 0 > x) {
3153
+ var l = e, u = n, v = p, y = f, k = C;
3154
+ if (0 > v || 0 > y) {
3154
3155
  throw new O(28);
3155
3156
  }
3156
3157
  if (null === l.X) {
@@ -3165,24 +3166,24 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
3165
3166
  if (!l.m.read) {
3166
3167
  throw new O(28);
3167
3168
  }
3168
- var t = "undefined" != typeof x;
3169
+ var t = "undefined" != typeof y;
3169
3170
  if (!t) {
3170
- x = l.position;
3171
+ y = l.position;
3171
3172
  } else if (!l.seekable) {
3172
3173
  throw new O(70);
3173
3174
  }
3174
- var r = l.m.read(l, k, u, v, x);
3175
+ var r = l.m.read(l, k, u, v, y);
3175
3176
  t || (l.position += r);
3176
- var B = r;
3177
- if (0 > B) {
3177
+ var A = r;
3178
+ if (0 > A) {
3178
3179
  var D = -1;
3179
3180
  break a;
3180
3181
  }
3181
- b += B;
3182
- if (B < p) {
3182
+ b += A;
3183
+ if (A < p) {
3183
3184
  break;
3184
3185
  }
3185
- "undefined" !== typeof f && (f += B);
3186
+ "undefined" !== typeof f && (f += A);
3186
3187
  }
3187
3188
  D = b;
3188
3189
  }
@@ -3200,11 +3201,11 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
3200
3201
  if (isNaN(b)) {
3201
3202
  return 61;
3202
3203
  }
3203
- var f = Tb(a);
3204
+ var f = Sb(a);
3204
3205
  fc(f, b, d);
3205
- $a = [f.position >>> 0, (Za = f.position, 1.0 <= +Math.abs(Za) ? 0.0 < Za ? +Math.floor(Za / 4294967296.0) >>> 0 : ~~+Math.ceil((Za - +(~~Za >>> 0)) / 4294967296.0) >>> 0 : 0)];
3206
- L[e >> 2] = $a[0];
3207
- L[e + 4 >> 2] = $a[1];
3206
+ Za = [f.position >>> 0, (Ya = f.position, 1.0 <= +Math.abs(Ya) ? 0.0 < Ya ? +Math.floor(Ya / 4294967296.0) >>> 0 : ~~+Math.ceil((Ya - +(~~Ya >>> 0)) / 4294967296.0) >>> 0 : 0)];
3207
+ L[e >> 2] = Za[0];
3208
+ L[e + 4 >> 2] = Za[1];
3208
3209
  f.Ma && 0 === b && 0 === d && (f.Ma = null);
3209
3210
  return 0;
3210
3211
  } catch (g) {
@@ -3216,13 +3217,13 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
3216
3217
  }, fd_write:function(a, b, c, d) {
3217
3218
  try {
3218
3219
  a: {
3219
- var e = Tb(a);
3220
+ var e = Sb(a);
3220
3221
  a = b;
3221
3222
  for (var f, g = b = 0; g < c; g++) {
3222
3223
  var n = N[a >> 2], p = N[a + 4 >> 2];
3223
3224
  a += 8;
3224
- var l = e, u = n, v = p, x = f, k = C;
3225
- if (0 > v || 0 > x) {
3225
+ var l = e, u = n, v = p, y = f, k = C;
3226
+ if (0 > v || 0 > y) {
3226
3227
  throw new O(28);
3227
3228
  }
3228
3229
  if (null === l.X) {
@@ -3238,21 +3239,21 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
3238
3239
  throw new O(28);
3239
3240
  }
3240
3241
  l.seekable && l.flags & 1024 && fc(l, 0, 2);
3241
- var t = "undefined" != typeof x;
3242
+ var t = "undefined" != typeof y;
3242
3243
  if (!t) {
3243
- x = l.position;
3244
+ y = l.position;
3244
3245
  } else if (!l.seekable) {
3245
3246
  throw new O(70);
3246
3247
  }
3247
- var r = l.m.write(l, k, u, v, x, void 0);
3248
+ var r = l.m.write(l, k, u, v, y, void 0);
3248
3249
  t || (l.position += r);
3249
- var B = r;
3250
- if (0 > B) {
3250
+ var A = r;
3251
+ if (0 > A) {
3251
3252
  var D = -1;
3252
3253
  break a;
3253
3254
  }
3254
- b += B;
3255
- "undefined" !== typeof f && (f += B);
3255
+ b += A;
3256
+ "undefined" !== typeof f && (f += A);
3256
3257
  }
3257
3258
  D = b;
3258
3259
  }
@@ -3268,38 +3269,38 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
3268
3269
  (function() {
3269
3270
  function a(c) {
3270
3271
  z = c = c.exports;
3271
- Ba = z.memory;
3272
- Ja();
3273
- Ka = z.__indirect_function_table;
3274
- Ma.unshift(z.__wasm_call_ctors);
3275
- Pa--;
3276
- m.monitorRunDependencies && m.monitorRunDependencies(Pa);
3277
- if (0 == Pa && (null !== Qa && (clearInterval(Qa), Qa = null), Ra)) {
3278
- var d = Ra;
3279
- Ra = null;
3272
+ Aa = z.memory;
3273
+ Ia();
3274
+ Ja = z.__indirect_function_table;
3275
+ La.unshift(z.__wasm_call_ctors);
3276
+ Oa--;
3277
+ m.monitorRunDependencies && m.monitorRunDependencies(Oa);
3278
+ if (0 == Oa && (null !== Pa && (clearInterval(Pa), Pa = null), Qa)) {
3279
+ var d = Qa;
3280
+ Qa = null;
3280
3281
  d();
3281
3282
  }
3282
3283
  return c;
3283
3284
  }
3284
3285
  var b = {env:Xd, wasi_snapshot_preview1:Xd,};
3285
- Pa++;
3286
- m.monitorRunDependencies && m.monitorRunDependencies(Pa);
3286
+ Oa++;
3287
+ m.monitorRunDependencies && m.monitorRunDependencies(Oa);
3287
3288
  if (m.instantiateWasm) {
3288
3289
  try {
3289
3290
  return m.instantiateWasm(b, a);
3290
3291
  } catch (c) {
3291
- xa("Module.instantiateWasm callback failed with error: " + c), ba(c);
3292
+ wa("Module.instantiateWasm callback failed with error: " + c), ba(c);
3292
3293
  }
3293
3294
  }
3294
- Ya(b, function(c) {
3295
+ Xa(b, function(c) {
3295
3296
  a(c.instance);
3296
3297
  }).catch(ba);
3297
3298
  return {};
3298
3299
  })();
3299
- var Ec = a => (Ec = z.free)(a), Wd = a => (Wd = z.malloc)(a), Vd = () => (Vd = z.__errno_location)(), ab = m._ma_device__on_notification_unlocked = a => (ab = m._ma_device__on_notification_unlocked = z.ma_device__on_notification_unlocked)(a);
3300
+ var Ec = a => (Ec = z.free)(a), Wd = a => (Wd = z.malloc)(a), Vd = () => (Vd = z.__errno_location)(), $a = m._ma_device__on_notification_unlocked = a => ($a = m._ma_device__on_notification_unlocked = z.ma_device__on_notification_unlocked)(a);
3300
3301
  m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = z.ma_malloc_emscripten)(a, b);
3301
3302
  m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = z.ma_free_emscripten)(a, b);
3302
- var bb = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (bb = m._ma_device_process_pcm_frames_capture__webaudio = z.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), cb = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (cb = m._ma_device_process_pcm_frames_playback__webaudio = z.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Dc = a => (Dc = z.__getTypeName)(a);
3303
+ var ab = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (ab = m._ma_device_process_pcm_frames_capture__webaudio = z.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), bb = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (bb = m._ma_device_process_pcm_frames_playback__webaudio = z.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Dc = a => (Dc = z.__getTypeName)(a);
3303
3304
  m.__embind_initialize_bindings = () => (m.__embind_initialize_bindings = z._embind_initialize_bindings)();
3304
3305
  m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = z.dynCall_iiji)(a, b, c, d, e);
3305
3306
  m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = z.dynCall_jiji)(a, b, c, d, e);
@@ -3311,16 +3312,16 @@ m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = z.dynCall_iiiiij
3311
3312
  m.dynCall_iiiiijj = (a, b, c, d, e, f, g, n, p) => (m.dynCall_iiiiijj = z.dynCall_iiiiijj)(a, b, c, d, e, f, g, n, p);
3312
3313
  m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, n, p, l) => (m.dynCall_iiiiiijj = z.dynCall_iiiiiijj)(a, b, c, d, e, f, g, n, p, l);
3313
3314
  var Yd;
3314
- Ra = function Zd() {
3315
+ Qa = function Zd() {
3315
3316
  Yd || $d();
3316
- Yd || (Ra = Zd);
3317
+ Yd || (Qa = Zd);
3317
3318
  };
3318
3319
  function $d() {
3319
3320
  function a() {
3320
- if (!Yd && (Yd = !0, m.calledRun = !0, !Ca)) {
3321
+ if (!Yd && (Yd = !0, m.calledRun = !0, !Ba)) {
3321
3322
  m.noFSInit || hc || (hc = !0, gc(), m.stdin = m.stdin, m.stdout = m.stdout, m.stderr = m.stderr, m.stdin ? jc("stdin", m.stdin) : cc("/dev/tty", "/dev/stdin"), m.stdout ? jc("stdout", null, m.stdout) : cc("/dev/tty", "/dev/stdout"), m.stderr ? jc("stderr", null, m.stderr) : cc("/dev/tty1", "/dev/stderr"), ec("/dev/stdin", 0), ec("/dev/stdout", 1), ec("/dev/stderr", 1));
3322
- Jb = !1;
3323
- eb(Ma);
3323
+ Ib = !1;
3324
+ db(La);
3324
3325
  aa(m);
3325
3326
  if (m.onRuntimeInitialized) {
3326
3327
  m.onRuntimeInitialized();
@@ -3328,20 +3329,20 @@ function $d() {
3328
3329
  if (m.postRun) {
3329
3330
  for ("function" == typeof m.postRun && (m.postRun = [m.postRun]); m.postRun.length;) {
3330
3331
  var b = m.postRun.shift();
3331
- Na.unshift(b);
3332
+ Ma.unshift(b);
3332
3333
  }
3333
3334
  }
3334
- eb(Na);
3335
+ db(Ma);
3335
3336
  }
3336
3337
  }
3337
- if (!(0 < Pa)) {
3338
+ if (!(0 < Oa)) {
3338
3339
  if (m.preRun) {
3339
3340
  for ("function" == typeof m.preRun && (m.preRun = [m.preRun]); m.preRun.length;) {
3340
- Oa();
3341
+ Na();
3341
3342
  }
3342
3343
  }
3343
- eb(La);
3344
- 0 < Pa || (m.setStatus ? (m.setStatus("Running..."), setTimeout(function() {
3344
+ db(Ka);
3345
+ 0 < Oa || (m.setStatus ? (m.setStatus("Running..."), setTimeout(function() {
3345
3346
  setTimeout(function() {
3346
3347
  m.setStatus("");
3347
3348
  }, 1);
@@ -3369,7 +3370,7 @@ $d();
3369
3370
  /* 2 */
3370
3371
  /***/ ((module) => {
3371
3372
 
3372
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.29.0","description":"Rive\'s canvas 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)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3373
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.29.2","description":"Rive\'s canvas 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)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3373
3374
 
3374
3375
  /***/ }),
3375
3376
  /* 3 */
@@ -7035,9 +7036,12 @@ var ViewModelInstance = /** @class */ (function () {
7035
7036
  this._children.forEach(function (child) { return child.handleCallbacks(); });
7036
7037
  };
7037
7038
  ViewModelInstance.prototype.addParent = function (parent) {
7038
- this._parents.push(parent);
7039
- if (this._propertiesWithCallbacks.length > 0 || this._children.length > 0) {
7040
- parent.addToViewModelCallbacks(this);
7039
+ if (!this._parents.includes(parent)) {
7040
+ this._parents.push(parent);
7041
+ if (this._propertiesWithCallbacks.length > 0 ||
7042
+ this._children.length > 0) {
7043
+ parent.addToViewModelCallbacks(this);
7044
+ }
7041
7045
  }
7042
7046
  };
7043
7047
  ViewModelInstance.prototype.removeParent = function (parent) {
@@ -7564,11 +7568,13 @@ var ViewModelInstanceList = /** @class */ (function (_super) {
7564
7568
  ViewModelInstanceList.prototype.addInstance = function (instance) {
7565
7569
  if (instance.runtimeInstance != null) {
7566
7570
  this._viewModelInstanceValue.addInstance(instance.runtimeInstance);
7571
+ instance.addParent(this._parentViewModel);
7567
7572
  }
7568
7573
  };
7569
7574
  ViewModelInstanceList.prototype.removeInstance = function (instance) {
7570
7575
  if (instance.runtimeInstance != null) {
7571
7576
  this._viewModelInstanceValue.removeInstance(instance.runtimeInstance);
7577
+ instance.removeParent(this._parentViewModel);
7572
7578
  }
7573
7579
  };
7574
7580
  ViewModelInstanceList.prototype.removeInstanceAt = function (index) {
@@ -7577,11 +7583,14 @@ var ViewModelInstanceList = /** @class */ (function (_super) {
7577
7583
  ViewModelInstanceList.prototype.instanceAt = function (index) {
7578
7584
  var runtimeInstance = this._viewModelInstanceValue.instanceAt(index);
7579
7585
  if (runtimeInstance != null) {
7580
- var viewModelInstance = new ViewModelInstance(runtimeInstance, null);
7586
+ var viewModelInstance = new ViewModelInstance(runtimeInstance, this._parentViewModel);
7581
7587
  return viewModelInstance;
7582
7588
  }
7583
7589
  return null;
7584
7590
  };
7591
+ ViewModelInstanceList.prototype.swap = function (a, b) {
7592
+ this._viewModelInstanceValue.swap(a, b);
7593
+ };
7585
7594
  ViewModelInstanceList.prototype.internalHandleCallback = function (callback) {
7586
7595
  callback();
7587
7596
  };