@rive-app/canvas-lite 2.11.0 → 2.11.1

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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/rive.js +886 -829
  3. package/rive.js.map +1 -1
package/rive.js CHANGED
@@ -26,47 +26,47 @@ var Rive = (() => {
26
26
  return (
27
27
  function(moduleArg = {}) {
28
28
 
29
- var p = moduleArg, aa, ba;
30
- p.ready = new Promise((b, a) => {
29
+ var h = moduleArg, aa, ba;
30
+ h.ready = new Promise((b, a) => {
31
31
  aa = b;
32
32
  ba = a;
33
33
  });
34
34
  function ca() {
35
- function b(l) {
36
- const k = d;
35
+ function b(m) {
36
+ const l = d;
37
37
  c = a = 0;
38
38
  d = new Map();
39
- k.forEach(m => {
39
+ l.forEach(n => {
40
40
  try {
41
- m(l);
42
- } catch (h) {
43
- console.error(h);
41
+ n(m);
42
+ } catch (k) {
43
+ console.error(k);
44
44
  }
45
45
  });
46
46
  this.xa();
47
47
  e && e.Ta();
48
48
  }
49
49
  let a = 0, c = 0, d = new Map(), e = null, g = null;
50
- this.requestAnimationFrame = function(l) {
50
+ this.requestAnimationFrame = function(m) {
51
51
  a || (a = requestAnimationFrame(b.bind(this)));
52
- const k = ++c;
53
- d.set(k, l);
54
- return k;
52
+ const l = ++c;
53
+ d.set(l, m);
54
+ return l;
55
55
  };
56
- this.cancelAnimationFrame = function(l) {
57
- d.delete(l);
56
+ this.cancelAnimationFrame = function(m) {
57
+ d.delete(m);
58
58
  a && 0 == d.size && (cancelAnimationFrame(a), a = 0);
59
59
  };
60
- this.Ra = function(l) {
60
+ this.Ra = function(m) {
61
61
  g && (document.body.remove(g), g = null);
62
- l || (g = document.createElement("div"), g.style.backgroundColor = "black", g.style.position = "fixed", g.style.right = 0, g.style.top = 0, g.style.color = "white", g.style.padding = "4px", g.innerHTML = "RIVE FPS", l = function(k) {
63
- g.innerHTML = "RIVE FPS " + k.toFixed(1);
62
+ m || (g = document.createElement("div"), g.style.backgroundColor = "black", g.style.position = "fixed", g.style.right = 0, g.style.top = 0, g.style.color = "white", g.style.padding = "4px", g.innerHTML = "RIVE FPS", m = function(l) {
63
+ g.innerHTML = "RIVE FPS " + l.toFixed(1);
64
64
  }, document.body.appendChild(g));
65
65
  e = new function() {
66
- let k = 0, m = 0;
66
+ let l = 0, n = 0;
67
67
  this.Ta = function() {
68
- var h = performance.now();
69
- m ? (++k, h -= m, 1000 < h && (l(1000 * k / h), k = m = 0)) : (m = h, k = 0);
68
+ var k = performance.now();
69
+ n ? (++l, k -= n, 1000 < k && (m(1000 * l / k), l = n = 0)) : (n = k, l = 0);
70
70
  };
71
71
  }();
72
72
  };
@@ -92,48 +92,48 @@ function da(b) {
92
92
  return c << b;
93
93
  };
94
94
  }
95
- const ea = p.onRuntimeInitialized;
96
- p.onRuntimeInitialized = function() {
95
+ const ea = h.onRuntimeInitialized;
96
+ h.onRuntimeInitialized = function() {
97
97
  ea && ea();
98
- let b = p.decodeFont;
99
- p.decodeFont = function(c, d) {
98
+ let b = h.decodeFont;
99
+ h.decodeFont = function(c, d) {
100
100
  c = b(c);
101
101
  d(c);
102
102
  };
103
- const a = p.FileAssetLoader;
104
- p.ptrToAsset = c => {
105
- let d = p.ptrToFileAsset(c);
106
- return d.isImage ? p.ptrToImageAsset(c) : d.isFont ? p.ptrToFontAsset(c) : d;
103
+ const a = h.FileAssetLoader;
104
+ h.ptrToAsset = c => {
105
+ let d = h.ptrToFileAsset(c);
106
+ return d.isImage ? h.ptrToImageAsset(c) : d.isFont ? h.ptrToFontAsset(c) : d;
107
107
  };
108
- p.CustomFileAssetLoader = a.extend("CustomFileAssetLoader", {__construct:function({loadContents:c}) {
108
+ h.CustomFileAssetLoader = a.extend("CustomFileAssetLoader", {__construct:function({loadContents:c}) {
109
109
  this.__parent.__construct.call(this);
110
110
  this.Ha = c;
111
111
  }, loadContents:function(c, d) {
112
- c = p.ptrToAsset(c);
112
+ c = h.ptrToAsset(c);
113
113
  return this.Ha(c, d);
114
114
  },});
115
- p.CDNFileAssetLoader = a.extend("CDNFileAssetLoader", {__construct:function() {
115
+ h.CDNFileAssetLoader = a.extend("CDNFileAssetLoader", {__construct:function() {
116
116
  this.__parent.__construct.call(this);
117
117
  }, loadContents:function(c) {
118
- let d = p.ptrToAsset(c);
118
+ let d = h.ptrToAsset(c);
119
119
  c = d.cdnUuid;
120
120
  if ("" === c) {
121
121
  return !1;
122
122
  }
123
123
  (function(e, g) {
124
- var l = new XMLHttpRequest();
125
- l.responseType = "arraybuffer";
126
- l.onreadystatechange = function() {
127
- 4 == l.readyState && 200 == l.status && g(l);
124
+ var m = new XMLHttpRequest();
125
+ m.responseType = "arraybuffer";
126
+ m.onreadystatechange = function() {
127
+ 4 == m.readyState && 200 == m.status && g(m);
128
128
  };
129
- l.open("GET", e, !0);
130
- l.send(null);
129
+ m.open("GET", e, !0);
130
+ m.send(null);
131
131
  })(d.cdnBaseUrl + "/" + c, e => {
132
132
  d.decode(new Uint8Array(e.response));
133
133
  });
134
134
  return !0;
135
135
  },});
136
- p.FallbackFileAssetLoader = a.extend("FallbackFileAssetLoader", {__construct:function() {
136
+ h.FallbackFileAssetLoader = a.extend("FallbackFileAssetLoader", {__construct:function() {
137
137
  this.__parent.__construct.call(this);
138
138
  this.wa = [];
139
139
  }, addLoader:function(c) {
@@ -169,7 +169,7 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
169
169
  }
170
170
  q = new Proxy(q, {get(D, u) {
171
171
  if (D.isContextLost()) {
172
- if (m || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", u), m = !0), "function" === typeof D[u]) {
172
+ if (n || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", u), n = !0), "function" === typeof D[u]) {
173
173
  return function() {
174
174
  };
175
175
  }
@@ -180,7 +180,7 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
180
180
  }
181
181
  }, set(D, u, I) {
182
182
  if (D.isContextLost()) {
183
- m || (console.error("Cannot render the mesh because the GL Context was lost. Tried to set property " + u), m = !0);
183
+ n || (console.error("Cannot render the mesh because the GL Context was lost. Tried to set property " + u), n = !0);
184
184
  } else {
185
185
  return D[u] = I, !0;
186
186
  }
@@ -219,7 +219,7 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
219
219
  }
220
220
  return !0;
221
221
  }
222
- let a = null, c = 0, d = 0, e = null, g = null, l = 0, k = 0, m = !1;
222
+ let a = null, c = 0, d = 0, e = null, g = null, m = 0, l = 0, n = !1;
223
223
  b();
224
224
  this.eb = function() {
225
225
  b();
@@ -244,10 +244,10 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
244
244
  2 == c ? (a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR_MIPMAP_LINEAR), a.generateMipmap(a.TEXTURE_2D)) : a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR);
245
245
  return r;
246
246
  };
247
- const h = new da(8), t = new da(8), v = new da(10), x = new da(10);
247
+ const k = new da(8), t = new da(8), v = new da(10), x = new da(10);
248
248
  this.Qa = function(f, r, q, G, D) {
249
249
  if (b()) {
250
- var u = h.push(f), I = t.push(r);
250
+ var u = k.push(f), I = t.push(r);
251
251
  if (a.canvas) {
252
252
  if (a.canvas.width != u || a.canvas.height != I) {
253
253
  a.canvas.width = u, a.canvas.height = I;
@@ -259,7 +259,7 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
259
259
  a.enable(a.SCISSOR_TEST);
260
260
  q.sort((A, W) => W.Ba - A.Ba);
261
261
  u = v.push(G);
262
- l != u && (a.bufferData(a.ARRAY_BUFFER, 8 * u, a.DYNAMIC_DRAW), l = u);
262
+ m != u && (a.bufferData(a.ARRAY_BUFFER, 8 * u, a.DYNAMIC_DRAW), m = u);
263
263
  u = 0;
264
264
  for (var O of q) {
265
265
  a.bufferSubData(a.ARRAY_BUFFER, u, O.ia), u += 4 * O.ia.length;
@@ -270,7 +270,7 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
270
270
  }
271
271
  console.assert(u == 8 * G);
272
272
  u = x.push(D);
273
- k != u && (a.bufferData(a.ELEMENT_ARRAY_BUFFER, 2 * u, a.DYNAMIC_DRAW), k = u);
273
+ l != u && (a.bufferData(a.ELEMENT_ARRAY_BUFFER, 2 * u, a.DYNAMIC_DRAW), l = u);
274
274
  O = 0;
275
275
  for (var ia of q) {
276
276
  a.bufferSubData(a.ELEMENT_ARRAY_BUFFER, O, ia.indices), O += 2 * ia.indices.length;
@@ -300,75 +300,75 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
300
300
  this.canvas = function() {
301
301
  return b() && a.canvas;
302
302
  };
303
- }(), la = p.onRuntimeInitialized;
304
- p.onRuntimeInitialized = function() {
305
- function b(n) {
306
- switch(n) {
307
- case h.srcOver:
303
+ }(), la = h.onRuntimeInitialized;
304
+ h.onRuntimeInitialized = function() {
305
+ function b(p) {
306
+ switch(p) {
307
+ case k.srcOver:
308
308
  return "source-over";
309
- case h.screen:
309
+ case k.screen:
310
310
  return "screen";
311
- case h.overlay:
311
+ case k.overlay:
312
312
  return "overlay";
313
- case h.darken:
313
+ case k.darken:
314
314
  return "darken";
315
- case h.lighten:
315
+ case k.lighten:
316
316
  return "lighten";
317
- case h.colorDodge:
317
+ case k.colorDodge:
318
318
  return "color-dodge";
319
- case h.colorBurn:
319
+ case k.colorBurn:
320
320
  return "color-burn";
321
- case h.hardLight:
321
+ case k.hardLight:
322
322
  return "hard-light";
323
- case h.softLight:
323
+ case k.softLight:
324
324
  return "soft-light";
325
- case h.difference:
325
+ case k.difference:
326
326
  return "difference";
327
- case h.exclusion:
327
+ case k.exclusion:
328
328
  return "exclusion";
329
- case h.multiply:
329
+ case k.multiply:
330
330
  return "multiply";
331
- case h.hue:
331
+ case k.hue:
332
332
  return "hue";
333
- case h.saturation:
333
+ case k.saturation:
334
334
  return "saturation";
335
- case h.color:
335
+ case k.color:
336
336
  return "color";
337
- case h.luminosity:
337
+ case k.luminosity:
338
338
  return "luminosity";
339
339
  }
340
340
  }
341
- function a(n) {
342
- return "rgba(" + ((16711680 & n) >>> 16) + "," + ((65280 & n) >>> 8) + "," + ((255 & n) >>> 0) + "," + ((4278190080 & n) >>> 24) / 255 + ")";
341
+ function a(p) {
342
+ return "rgba(" + ((16711680 & p) >>> 16) + "," + ((65280 & p) >>> 8) + "," + ((255 & p) >>> 0) + "," + ((4278190080 & p) >>> 24) / 255 + ")";
343
343
  }
344
344
  function c() {
345
345
  0 < I.length && (ha.Qa(u.drawWidth(), u.drawHeight(), I, O, X), I = [], X = O = 0, u.reset(512, 512));
346
- for (const n of D) {
347
- for (const w of n.u) {
346
+ for (const p of D) {
347
+ for (const w of p.u) {
348
348
  w();
349
349
  }
350
- n.u = [];
350
+ p.u = [];
351
351
  }
352
352
  D.clear();
353
353
  }
354
354
  la && la();
355
- var d = p.RenderPaintStyle;
356
- const e = p.RenderPath, g = p.RenderPaint, l = p.Renderer, k = p.StrokeCap, m = p.StrokeJoin, h = p.BlendMode, t = d.fill, v = d.stroke, x = p.FillRule.evenOdd;
355
+ var d = h.RenderPaintStyle;
356
+ const e = h.RenderPath, g = h.RenderPaint, m = h.Renderer, l = h.StrokeCap, n = h.StrokeJoin, k = h.BlendMode, t = d.fill, v = d.stroke, x = h.FillRule.evenOdd;
357
357
  let f = 1;
358
- var r = p.RenderImage.extend("CanvasRenderImage", {__construct:function({R:n, W:w} = {}) {
358
+ var r = h.RenderImage.extend("CanvasRenderImage", {__construct:function({R:p, W:w} = {}) {
359
359
  this.__parent.__construct.call(this);
360
360
  this.da = f;
361
361
  f = f + 1 & 2147483647 || 1;
362
- this.R = n;
362
+ this.R = p;
363
363
  this.W = w;
364
364
  }, __destruct:function() {
365
365
  this.ca && (ha.Ma(this.ca), URL.revokeObjectURL(this.la));
366
366
  this.__parent.__destruct.call(this);
367
- }, decode:function(n) {
367
+ }, decode:function(p) {
368
368
  var w = this;
369
369
  w.W && w.W(w);
370
370
  var B = new Image();
371
- w.la = URL.createObjectURL(new Blob([n], {type:"image/png",}));
371
+ w.la = URL.createObjectURL(new Blob([p], {type:"image/png",}));
372
372
  B.onload = function() {
373
373
  w.Ga = B;
374
374
  w.ca = ha.La(B);
@@ -381,9 +381,9 @@ p.onRuntimeInitialized = function() {
381
381
  this.F = new Path2D();
382
382
  }, rewind:function() {
383
383
  this.F = new Path2D();
384
- }, addPath:function(n, w, B, C, z, E, F) {
384
+ }, addPath:function(p, w, B, C, z, E, F) {
385
385
  var H = this.F, T = H.addPath;
386
- n = n.F;
386
+ p = p.F;
387
387
  const K = new DOMMatrix();
388
388
  K.a = w;
389
389
  K.b = B;
@@ -391,67 +391,67 @@ p.onRuntimeInitialized = function() {
391
391
  K.d = z;
392
392
  K.e = E;
393
393
  K.f = F;
394
- T.call(H, n, K);
395
- }, fillRule:function(n) {
396
- this.ka = n;
397
- }, moveTo:function(n, w) {
398
- this.F.moveTo(n, w);
399
- }, lineTo:function(n, w) {
400
- this.F.lineTo(n, w);
401
- }, cubicTo:function(n, w, B, C, z, E) {
402
- this.F.bezierCurveTo(n, w, B, C, z, E);
394
+ T.call(H, p, K);
395
+ }, fillRule:function(p) {
396
+ this.ka = p;
397
+ }, moveTo:function(p, w) {
398
+ this.F.moveTo(p, w);
399
+ }, lineTo:function(p, w) {
400
+ this.F.lineTo(p, w);
401
+ }, cubicTo:function(p, w, B, C, z, E) {
402
+ this.F.bezierCurveTo(p, w, B, C, z, E);
403
403
  }, close:function() {
404
404
  this.F.closePath();
405
- },}), G = g.extend("CanvasRenderPaint", {color:function(n) {
406
- this.ma = a(n);
407
- }, thickness:function(n) {
408
- this.Ja = n;
409
- }, join:function(n) {
410
- switch(n) {
411
- case m.miter:
405
+ },}), G = g.extend("CanvasRenderPaint", {color:function(p) {
406
+ this.ma = a(p);
407
+ }, thickness:function(p) {
408
+ this.Ja = p;
409
+ }, join:function(p) {
410
+ switch(p) {
411
+ case n.miter:
412
412
  this.ba = "miter";
413
413
  break;
414
- case m.round:
414
+ case n.round:
415
415
  this.ba = "round";
416
416
  break;
417
- case m.bevel:
417
+ case n.bevel:
418
418
  this.ba = "bevel";
419
419
  }
420
- }, cap:function(n) {
421
- switch(n) {
422
- case k.butt:
420
+ }, cap:function(p) {
421
+ switch(p) {
422
+ case l.butt:
423
423
  this.aa = "butt";
424
424
  break;
425
- case k.round:
425
+ case l.round:
426
426
  this.aa = "round";
427
427
  break;
428
- case k.square:
428
+ case l.square:
429
429
  this.aa = "square";
430
430
  }
431
- }, style:function(n) {
432
- this.Ia = n;
433
- }, blendMode:function(n) {
434
- this.Fa = b(n);
431
+ }, style:function(p) {
432
+ this.Ia = p;
433
+ }, blendMode:function(p) {
434
+ this.Fa = b(p);
435
435
  }, clearGradient:function() {
436
436
  this.P = null;
437
- }, linearGradient:function(n, w, B, C) {
438
- this.P = {Ca:n, Da:w, qa:B, ra:C, ga:[],};
439
- }, radialGradient:function(n, w, B, C) {
440
- this.P = {Ca:n, Da:w, qa:B, ra:C, ga:[], bb:!0,};
441
- }, addStop:function(n, w) {
442
- this.P.ga.push({color:n, stop:w,});
437
+ }, linearGradient:function(p, w, B, C) {
438
+ this.P = {Ca:p, Da:w, qa:B, ra:C, ga:[],};
439
+ }, radialGradient:function(p, w, B, C) {
440
+ this.P = {Ca:p, Da:w, qa:B, ra:C, ga:[], bb:!0,};
441
+ }, addStop:function(p, w) {
442
+ this.P.ga.push({color:p, stop:w,});
443
443
  }, completeGradient:function() {
444
- }, draw:function(n, w, B) {
444
+ }, draw:function(p, w, B) {
445
445
  let C = this.Ia;
446
446
  var z = this.ma, E = this.P;
447
- n.globalCompositeOperation = this.Fa;
447
+ p.globalCompositeOperation = this.Fa;
448
448
  if (null != E) {
449
449
  z = E.Ca;
450
450
  var F = E.Da;
451
451
  const T = E.qa;
452
452
  var H = E.ra;
453
453
  const K = E.ga;
454
- E.bb ? (E = T - z, H -= F, z = n.createRadialGradient(z, F, 0, z, F, Math.sqrt(E * E + H * H))) : z = n.createLinearGradient(z, F, T, H);
454
+ E.bb ? (E = T - z, H -= F, z = p.createRadialGradient(z, F, 0, z, F, Math.sqrt(E * E + H * H))) : z = p.createLinearGradient(z, F, T, H);
455
455
  for (let Y = 0, N = K.length; Y < N; Y++) {
456
456
  F = K[Y], z.addColorStop(F.stop, a(F.color));
457
457
  }
@@ -460,46 +460,46 @@ p.onRuntimeInitialized = function() {
460
460
  }
461
461
  switch(C) {
462
462
  case v:
463
- n.strokeStyle = z;
464
- n.lineWidth = this.Ja;
465
- n.lineCap = this.aa;
466
- n.lineJoin = this.ba;
467
- n.stroke(w);
463
+ p.strokeStyle = z;
464
+ p.lineWidth = this.Ja;
465
+ p.lineCap = this.aa;
466
+ p.lineJoin = this.ba;
467
+ p.stroke(w);
468
468
  break;
469
469
  case t:
470
- n.fillStyle = z, n.fill(w, B);
470
+ p.fillStyle = z, p.fill(w, B);
471
471
  }
472
472
  },});
473
473
  const D = new Set();
474
474
  let u = null, I = [], O = 0, X = 0;
475
- var ia = p.CanvasRenderer = l.extend("Renderer", {__construct:function(n) {
475
+ var ia = h.CanvasRenderer = m.extend("Renderer", {__construct:function(p) {
476
476
  this.__parent.__construct.call(this);
477
477
  this.D = [1, 0, 0, 1, 0, 0];
478
- this.o = n.getContext("2d");
479
- this.ja = n;
478
+ this.o = p.getContext("2d");
479
+ this.ja = p;
480
480
  this.u = [];
481
481
  }, save:function() {
482
482
  this.D.push(...this.D.slice(this.D.length - 6));
483
483
  this.u.push(this.o.save.bind(this.o));
484
484
  }, restore:function() {
485
- const n = this.D.length - 6;
486
- if (6 > n) {
485
+ const p = this.D.length - 6;
486
+ if (6 > p) {
487
487
  throw "restore() called without matching save().";
488
488
  }
489
- this.D.splice(n);
489
+ this.D.splice(p);
490
490
  this.u.push(this.o.restore.bind(this.o));
491
- }, transform:function(n, w, B, C, z, E) {
491
+ }, transform:function(p, w, B, C, z, E) {
492
492
  const F = this.D, H = F.length - 6;
493
- F.splice(H, 6, F[H] * n + F[H + 2] * w, F[H + 1] * n + F[H + 3] * w, F[H] * B + F[H + 2] * C, F[H + 1] * B + F[H + 3] * C, F[H] * z + F[H + 2] * E + F[H + 4], F[H + 1] * z + F[H + 3] * E + F[H + 5]);
494
- this.u.push(this.o.transform.bind(this.o, n, w, B, C, z, E));
495
- }, rotate:function(n) {
496
- const w = Math.sin(n);
497
- n = Math.cos(n);
498
- this.transform(n, w, -w, n, 0, 0);
499
- }, _drawPath:function(n, w) {
500
- this.u.push(w.draw.bind(w, this.o, n.F, n.ka === x ? "evenodd" : "nonzero"));
501
- }, _drawRiveImage:function(n, w, B) {
502
- var C = n.Ga;
493
+ F.splice(H, 6, F[H] * p + F[H + 2] * w, F[H + 1] * p + F[H + 3] * w, F[H] * B + F[H + 2] * C, F[H + 1] * B + F[H + 3] * C, F[H] * z + F[H + 2] * E + F[H + 4], F[H + 1] * z + F[H + 3] * E + F[H + 5]);
494
+ this.u.push(this.o.transform.bind(this.o, p, w, B, C, z, E));
495
+ }, rotate:function(p) {
496
+ const w = Math.sin(p);
497
+ p = Math.cos(p);
498
+ this.transform(p, w, -w, p, 0, 0);
499
+ }, _drawPath:function(p, w) {
500
+ this.u.push(w.draw.bind(w, this.o, p.F, p.ka === x ? "evenodd" : "nonzero"));
501
+ }, _drawRiveImage:function(p, w, B) {
502
+ var C = p.Ga;
503
503
  if (C) {
504
504
  var z = this.o, E = b(w);
505
505
  this.u.push(function() {
@@ -509,57 +509,57 @@ p.onRuntimeInitialized = function() {
509
509
  z.globalAlpha = 1;
510
510
  });
511
511
  }
512
- }, _getMatrix:function(n) {
512
+ }, _getMatrix:function(p) {
513
513
  const w = this.D, B = w.length - 6;
514
514
  for (let C = 0; 6 > C; ++C) {
515
- n[C] = w[B + C];
515
+ p[C] = w[B + C];
516
516
  }
517
- }, _drawImageMesh:function(n, w, B, C, z, E, F, H, T, K) {
517
+ }, _drawImageMesh:function(p, w, B, C, z, E, F, H, T, K) {
518
518
  var Y = this.o.canvas.width, N = this.o.canvas.height;
519
- const sb = T - F, tb = K - H;
519
+ const tb = T - F, ub = K - H;
520
520
  F = Math.max(F, 0);
521
521
  H = Math.max(H, 0);
522
522
  T = Math.min(T, Y);
523
523
  K = Math.min(K, N);
524
- const ta = T - F, ua = K - H;
525
- console.assert(ta <= Math.min(sb, Y));
526
- console.assert(ua <= Math.min(tb, N));
527
- if (!(0 >= ta || 0 >= ua)) {
528
- T = ta < sb || ua < tb;
524
+ const wa = T - F, xa = K - H;
525
+ console.assert(wa <= Math.min(tb, Y));
526
+ console.assert(xa <= Math.min(ub, N));
527
+ if (!(0 >= wa || 0 >= xa)) {
528
+ T = wa < tb || xa < ub;
529
529
  Y = K = 1;
530
- var ja = Math.ceil(ta * K), ka = Math.ceil(ua * Y);
530
+ var ja = Math.ceil(wa * K), ka = Math.ceil(xa * Y);
531
531
  N = ha.eb();
532
532
  ja > N && (K *= N / ja, ja = N);
533
533
  ka > N && (Y *= N / ka, ka = N);
534
- u || (u = new p.DynamicRectanizer(N), u.reset(512, 512));
534
+ u || (u = new h.DynamicRectanizer(N), u.reset(512, 512));
535
535
  N = u.addRect(ja, ka);
536
536
  0 > N && (c(), D.add(this), N = u.addRect(ja, ka), console.assert(0 <= N));
537
- var ub = N & 65535, vb = N >> 16;
538
- I.push({N:this.D.slice(this.D.length - 6), image:n, na:ub, oa:vb, fb:F, gb:H, sb:ja, va:ka, X:K, Y, ia:new Float32Array(C), Ea:new Float32Array(z), indices:new Uint16Array(E), hb:T, Ba:n.da << 1 | (T ? 1 : 0),});
537
+ var vb = N & 65535, wb = N >> 16;
538
+ I.push({N:this.D.slice(this.D.length - 6), image:p, na:vb, oa:wb, fb:F, gb:H, sb:ja, va:ka, X:K, Y, ia:new Float32Array(C), Ea:new Float32Array(z), indices:new Uint16Array(E), hb:T, Ba:p.da << 1 | (T ? 1 : 0),});
539
539
  O += C.length;
540
540
  X += E.length;
541
- var oa = this.o, kc = b(w);
541
+ var pa = this.o, oc = b(w);
542
542
  this.u.push(function() {
543
- oa.save();
544
- oa.resetTransform();
545
- oa.globalCompositeOperation = kc;
546
- oa.globalAlpha = B;
547
- const wb = ha.canvas();
548
- wb && oa.drawImage(wb, ub, vb, ja, ka, F, H, ta, ua);
549
- oa.restore();
543
+ pa.save();
544
+ pa.resetTransform();
545
+ pa.globalCompositeOperation = oc;
546
+ pa.globalAlpha = B;
547
+ const xb = ha.canvas();
548
+ xb && pa.drawImage(xb, vb, wb, ja, ka, F, H, wa, xa);
549
+ pa.restore();
550
550
  });
551
551
  }
552
- }, _clipPath:function(n) {
553
- this.u.push(this.o.clip.bind(this.o, n.F, n.ka === x ? "evenodd" : "nonzero"));
552
+ }, _clipPath:function(p) {
553
+ this.u.push(this.o.clip.bind(this.o, p.F, p.ka === x ? "evenodd" : "nonzero"));
554
554
  }, clear:function() {
555
555
  D.add(this);
556
556
  this.u.push(this.o.clearRect.bind(this.o, 0, 0, this.ja.width, this.ja.height));
557
557
  }, flush:function() {
558
- }, translate:function(n, w) {
559
- this.transform(1, 0, 0, 1, n, w);
558
+ }, translate:function(p, w) {
559
+ this.transform(1, 0, 0, 1, p, w);
560
560
  },});
561
- p.makeRenderer = function(n) {
562
- const w = new ia(n), B = w.o;
561
+ h.makeRenderer = function(p) {
562
+ const w = new ia(p), B = w.o;
563
563
  return new Proxy(w, {get(C, z) {
564
564
  if ("function" === typeof C[z]) {
565
565
  return function(...E) {
@@ -581,53 +581,53 @@ p.onRuntimeInitialized = function() {
581
581
  }
582
582
  },});
583
583
  };
584
- p.decodeImage = function(n, w) {
585
- (new r({R:w})).decode(n);
584
+ h.decodeImage = function(p, w) {
585
+ (new r({R:w})).decode(p);
586
586
  };
587
- p.renderFactory = {makeRenderPaint:function() {
587
+ h.renderFactory = {makeRenderPaint:function() {
588
588
  return new G();
589
589
  }, makeRenderPath:function() {
590
590
  return new q();
591
591
  }, makeRenderImage:function() {
592
- let n = W;
592
+ let p = W;
593
593
  return new r({W:() => {
594
- n.total++;
594
+ p.total++;
595
595
  }, R:() => {
596
- n.loaded++;
597
- if (n.loaded === n.total) {
598
- const w = n.ready;
599
- w && (w(), n.ready = null);
596
+ p.loaded++;
597
+ if (p.loaded === p.total) {
598
+ const w = p.ready;
599
+ w && (w(), p.ready = null);
600
600
  }
601
601
  },});
602
602
  },};
603
- let A = p.load, W = null;
604
- p.load = function(n, w, B = !0) {
605
- const C = new p.FallbackFileAssetLoader();
603
+ let A = h.load, W = null;
604
+ h.load = function(p, w, B = !0) {
605
+ const C = new h.FallbackFileAssetLoader();
606
606
  void 0 !== w && C.addLoader(w);
607
- B && (w = new p.CDNFileAssetLoader(), C.addLoader(w));
607
+ B && (w = new h.CDNFileAssetLoader(), C.addLoader(w));
608
608
  return new Promise(function(z) {
609
609
  let E = null;
610
610
  W = {total:0, loaded:0, ready:function() {
611
611
  z(E);
612
612
  },};
613
- E = A(n, C);
613
+ E = A(p, C);
614
614
  0 == W.total && z(E);
615
615
  });
616
616
  };
617
617
  d = new ca();
618
- p.requestAnimationFrame = d.requestAnimationFrame.bind(d);
619
- p.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);
620
- p.enableFPSCounter = d.Ra.bind(d);
621
- p.disableFPSCounter = d.Oa;
618
+ h.requestAnimationFrame = d.requestAnimationFrame.bind(d);
619
+ h.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);
620
+ h.enableFPSCounter = d.Ra.bind(d);
621
+ h.disableFPSCounter = d.Oa;
622
622
  d.xa = c;
623
- p.resolveAnimationFrame = c;
624
- p.cleanup = function() {
623
+ h.resolveAnimationFrame = c;
624
+ h.cleanup = function() {
625
625
  u && u.delete();
626
626
  };
627
627
  };
628
- var ma = Object.assign({}, p), na = "object" == typeof window, pa = "function" == typeof importScripts, qa = "", ra, sa;
629
- if (na || pa) {
630
- pa ? qa = self.location.href : "undefined" != typeof document && document.currentScript && (qa = document.currentScript.src), _scriptDir && (qa = _scriptDir), 0 !== qa.indexOf("blob:") ? qa = qa.substr(0, qa.replace(/[?#].*/, "").lastIndexOf("/") + 1) : qa = "", pa && (sa = b => {
628
+ var ma = Object.assign({}, h), na = "./this.program", oa = "object" == typeof window, qa = "function" == typeof importScripts, y = "", ra, sa;
629
+ if (oa || qa) {
630
+ qa ? y = self.location.href : "undefined" != typeof document && document.currentScript && (y = document.currentScript.src), _scriptDir && (y = _scriptDir), 0 !== y.indexOf("blob:") ? y = y.substr(0, y.replace(/[?#].*/, "").lastIndexOf("/") + 1) : y = "", qa && (sa = b => {
631
631
  var a = new XMLHttpRequest();
632
632
  a.open("GET", b, !1);
633
633
  a.responseType = "arraybuffer";
@@ -644,53 +644,70 @@ if (na || pa) {
644
644
  d.send(null);
645
645
  };
646
646
  }
647
- var va = console.log.bind(console), wa = console.error.bind(console);
648
- Object.assign(p, ma);
647
+ var ta = h.print || console.log.bind(console), ua = h.printErr || console.error.bind(console);
648
+ Object.assign(h, ma);
649
649
  ma = null;
650
- var noExitRuntime = !0;
651
- "object" != typeof WebAssembly && xa("no native wasm support detected");
652
- var ya, y, za = !1, Aa, J, Ba, Ca, L, M, Da, Ea;
653
- function Fa() {
654
- var b = ya.buffer;
655
- p.HEAP8 = Aa = new Int8Array(b);
656
- p.HEAP16 = Ba = new Int16Array(b);
657
- p.HEAP32 = L = new Int32Array(b);
658
- p.HEAPU8 = J = new Uint8Array(b);
659
- p.HEAPU16 = Ca = new Uint16Array(b);
660
- p.HEAPU32 = M = new Uint32Array(b);
661
- p.HEAPF32 = Da = new Float32Array(b);
662
- p.HEAPF64 = Ea = new Float64Array(b);
650
+ h.thisProgram && (na = h.thisProgram);
651
+ var va;
652
+ h.wasmBinary && (va = h.wasmBinary);
653
+ var noExitRuntime = h.noExitRuntime || !0;
654
+ "object" != typeof WebAssembly && ya("no native wasm support detected");
655
+ var za, J, Aa = !1, Ba, L, Ca, Da, M, P, Ea, Fa;
656
+ function Ga() {
657
+ var b = za.buffer;
658
+ h.HEAP8 = Ba = new Int8Array(b);
659
+ h.HEAP16 = Ca = new Int16Array(b);
660
+ h.HEAP32 = M = new Int32Array(b);
661
+ h.HEAPU8 = L = new Uint8Array(b);
662
+ h.HEAPU16 = Da = new Uint16Array(b);
663
+ h.HEAPU32 = P = new Uint32Array(b);
664
+ h.HEAPF32 = Ea = new Float32Array(b);
665
+ h.HEAPF64 = Fa = new Float64Array(b);
666
+ }
667
+ var Ha, Ia = [], Ja = [], Ka = [];
668
+ function La() {
669
+ var b = h.preRun.shift();
670
+ Ia.unshift(b);
663
671
  }
664
- var Ga, Ha = [], Ia = [], Ja = [], Ka = 0, La = null, Ma = null;
665
- function xa(b) {
672
+ var Ma = 0, Na = null, Oa = null;
673
+ function ya(b) {
674
+ if (h.onAbort) {
675
+ h.onAbort(b);
676
+ }
666
677
  b = "Aborted(" + b + ")";
667
- wa(b);
668
- za = !0;
678
+ ua(b);
679
+ Aa = !0;
669
680
  b = new WebAssembly.RuntimeError(b + ". Build with -sASSERTIONS for more info.");
670
681
  ba(b);
671
682
  throw b;
672
683
  }
673
- function Na(b) {
684
+ function Pa(b) {
674
685
  return b.startsWith("data:application/octet-stream;base64,");
675
686
  }
676
- var Oa;
677
- Oa = "canvas_advanced.wasm";
678
- Na(Oa) || (Oa = qa + Oa);
679
- function Pa(b) {
687
+ var Qa;
688
+ Qa = "canvas_advanced.wasm";
689
+ if (!Pa(Qa)) {
690
+ var Ra = Qa;
691
+ Qa = h.locateFile ? h.locateFile(Ra, y) : y + Ra;
692
+ }
693
+ function Sa(b) {
694
+ if (b == Qa && va) {
695
+ return new Uint8Array(va);
696
+ }
680
697
  if (sa) {
681
698
  return sa(b);
682
699
  }
683
700
  throw "both async and sync fetching of the wasm failed";
684
701
  }
685
- function Qa(b) {
686
- if (na || pa) {
702
+ function Ta(b) {
703
+ if (!va && (oa || qa)) {
687
704
  if ("function" == typeof fetch && !b.startsWith("file://")) {
688
705
  return fetch(b, {credentials:"same-origin"}).then(a => {
689
706
  if (!a.ok) {
690
707
  throw "failed to load wasm binary file at '" + b + "'";
691
708
  }
692
709
  return a.arrayBuffer();
693
- }).catch(() => Pa(b));
710
+ }).catch(() => Sa(b));
694
711
  }
695
712
  if (ra) {
696
713
  return new Promise((a, c) => {
@@ -698,23 +715,28 @@ function Qa(b) {
698
715
  });
699
716
  }
700
717
  }
701
- return Promise.resolve().then(() => Pa(b));
718
+ return Promise.resolve().then(() => Sa(b));
702
719
  }
703
- function Ra(b, a, c) {
704
- return Qa(b).then(d => WebAssembly.instantiate(d, a)).then(d => d).then(c, d => {
705
- wa("failed to asynchronously prepare wasm: " + d);
706
- xa(d);
720
+ function Ua(b, a, c) {
721
+ return Ta(b).then(d => WebAssembly.instantiate(d, a)).then(d => d).then(c, d => {
722
+ ua("failed to asynchronously prepare wasm: " + d);
723
+ ya(d);
707
724
  });
708
725
  }
709
- function Sa(b, a) {
710
- var c = Oa;
711
- return "function" != typeof WebAssembly.instantiateStreaming || Na(c) || c.startsWith("file://") || "function" != typeof fetch ? Ra(c, b, a) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, b).then(a, function(e) {
712
- wa("wasm streaming compile failed: " + e);
713
- wa("falling back to ArrayBuffer instantiation");
714
- return Ra(c, b, a);
726
+ function Va(b, a) {
727
+ var c = Qa;
728
+ return va || "function" != typeof WebAssembly.instantiateStreaming || Pa(c) || c.startsWith("file://") || "function" != typeof fetch ? Ua(c, b, a) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, b).then(a, function(e) {
729
+ ua("wasm streaming compile failed: " + e);
730
+ ua("falling back to ArrayBuffer instantiation");
731
+ return Ua(c, b, a);
715
732
  }));
716
733
  }
717
- function Ta(b) {
734
+ var Wa = b => {
735
+ for (; 0 < b.length;) {
736
+ b.shift()(h);
737
+ }
738
+ };
739
+ function Xa(b) {
718
740
  if (void 0 === b) {
719
741
  return "_unknown";
720
742
  }
@@ -722,24 +744,24 @@ function Ta(b) {
722
744
  var a = b.charCodeAt(0);
723
745
  return 48 <= a && 57 >= a ? `_${b}` : b;
724
746
  }
725
- function Ua(b, a) {
726
- b = Ta(b);
747
+ function Ya(b, a) {
748
+ b = Xa(b);
727
749
  return {[b]:function() {
728
750
  return a.apply(this, arguments);
729
751
  }}[b];
730
752
  }
731
- function Va() {
753
+ function Za() {
732
754
  this.G = [void 0];
733
755
  this.ta = [];
734
756
  }
735
- var P = new Va(), Wa = void 0;
736
- function Q(b) {
737
- throw new Wa(b);
757
+ var Q = new Za(), $a = void 0;
758
+ function R(b) {
759
+ throw new $a(b);
738
760
  }
739
- var R = b => {
740
- b || Q("Cannot use deleted val. handle = " + b);
741
- return P.get(b).value;
742
- }, S = b => {
761
+ var S = b => {
762
+ b || R("Cannot use deleted val. handle = " + b);
763
+ return Q.get(b).value;
764
+ }, ab = b => {
743
765
  switch(b) {
744
766
  case void 0:
745
767
  return 1;
@@ -750,11 +772,11 @@ var R = b => {
750
772
  case !1:
751
773
  return 4;
752
774
  default:
753
- return P.Za({Aa:1, value:b});
775
+ return Q.Za({Aa:1, value:b});
754
776
  }
755
777
  };
756
- function Xa(b) {
757
- var a = Error, c = Ua(b, function(d) {
778
+ function bb(b) {
779
+ var a = Error, c = Ya(b, function(d) {
758
780
  this.name = b;
759
781
  this.message = d;
760
782
  d = Error(d).stack;
@@ -767,122 +789,122 @@ function Xa(b) {
767
789
  };
768
790
  return c;
769
791
  }
770
- var Ya = void 0, Za = void 0;
792
+ var cb = void 0, db = void 0;
771
793
  function U(b) {
772
- for (var a = ""; J[b];) {
773
- a += Za[J[b++]];
794
+ for (var a = ""; L[b];) {
795
+ a += db[L[b++]];
774
796
  }
775
797
  return a;
776
798
  }
777
- var $a = [];
778
- function ab() {
779
- for (; $a.length;) {
780
- var b = $a.pop();
799
+ var eb = [];
800
+ function fb() {
801
+ for (; eb.length;) {
802
+ var b = eb.pop();
781
803
  b.g.M = !1;
782
804
  b["delete"]();
783
805
  }
784
806
  }
785
- var bb = void 0, cb = {};
786
- function db(b, a) {
787
- for (void 0 === a && Q("ptr should not be undefined"); b.l;) {
807
+ var gb = void 0, hb = {};
808
+ function ib(b, a) {
809
+ for (void 0 === a && R("ptr should not be undefined"); b.l;) {
788
810
  a = b.S(a), b = b.l;
789
811
  }
790
812
  return a;
791
813
  }
792
- var eb = {};
793
- function fb(b) {
794
- b = gb(b);
814
+ var jb = {};
815
+ function kb(b) {
816
+ b = lb(b);
795
817
  var a = U(b);
796
- hb(b);
818
+ mb(b);
797
819
  return a;
798
820
  }
799
- function ib(b, a) {
800
- var c = eb[b];
801
- void 0 === c && Q(a + " has unknown type " + fb(b));
821
+ function nb(b, a) {
822
+ var c = jb[b];
823
+ void 0 === c && R(a + " has unknown type " + kb(b));
802
824
  return c;
803
825
  }
804
- function jb() {
826
+ function ob() {
805
827
  }
806
- var kb = !1;
807
- function lb(b) {
828
+ var pb = !1;
829
+ function qb(b) {
808
830
  --b.count.value;
809
831
  0 === b.count.value && (b.s ? b.A.H(b.s) : b.j.h.H(b.i));
810
832
  }
811
- function mb(b, a, c) {
833
+ function rb(b, a, c) {
812
834
  if (a === c) {
813
835
  return b;
814
836
  }
815
837
  if (void 0 === c.l) {
816
838
  return null;
817
839
  }
818
- b = mb(b, a, c.l);
840
+ b = rb(b, a, c.l);
819
841
  return null === b ? null : c.Pa(b);
820
842
  }
821
- var nb = {};
822
- function ob(b, a) {
823
- a = db(b, a);
824
- return cb[a];
843
+ var sb = {};
844
+ function yb(b, a) {
845
+ a = ib(b, a);
846
+ return hb[a];
825
847
  }
826
- var pb = void 0;
827
- function qb(b) {
828
- throw new pb(b);
848
+ var zb = void 0;
849
+ function Ab(b) {
850
+ throw new zb(b);
829
851
  }
830
- function rb(b, a) {
831
- a.j && a.i || qb("makeClassHandle requires ptr and ptrType");
832
- !!a.A !== !!a.s && qb("Both smartPtrType and smartPtr must be specified");
852
+ function Bb(b, a) {
853
+ a.j && a.i || Ab("makeClassHandle requires ptr and ptrType");
854
+ !!a.A !== !!a.s && Ab("Both smartPtrType and smartPtr must be specified");
833
855
  a.count = {value:1};
834
- return xb(Object.create(b, {g:{value:a,},}));
856
+ return Cb(Object.create(b, {g:{value:a,},}));
835
857
  }
836
- function xb(b) {
858
+ function Cb(b) {
837
859
  if ("undefined" === typeof FinalizationRegistry) {
838
- return xb = a => a, b;
860
+ return Cb = a => a, b;
839
861
  }
840
- kb = new FinalizationRegistry(a => {
841
- lb(a.g);
862
+ pb = new FinalizationRegistry(a => {
863
+ qb(a.g);
842
864
  });
843
- xb = a => {
865
+ Cb = a => {
844
866
  var c = a.g;
845
- c.s && kb.register(a, {g:c}, a);
867
+ c.s && pb.register(a, {g:c}, a);
846
868
  return a;
847
869
  };
848
- jb = a => {
849
- kb.unregister(a);
870
+ ob = a => {
871
+ pb.unregister(a);
850
872
  };
851
- return xb(b);
873
+ return Cb(b);
852
874
  }
853
- var yb = {};
854
- function zb(b) {
875
+ var Db = {};
876
+ function Eb(b) {
855
877
  for (; b.length;) {
856
878
  var a = b.pop();
857
879
  b.pop()(a);
858
880
  }
859
881
  }
860
- function Ab(b) {
861
- return this.fromWireType(L[b >> 2]);
882
+ function Fb(b) {
883
+ return this.fromWireType(M[b >> 2]);
862
884
  }
863
- var Bb = {}, Cb = {};
885
+ var Gb = {}, Hb = {};
864
886
  function V(b, a, c) {
865
- function d(k) {
866
- k = c(k);
867
- k.length !== b.length && qb("Mismatched type converter count");
868
- for (var m = 0; m < b.length; ++m) {
869
- Db(b[m], k[m]);
887
+ function d(l) {
888
+ l = c(l);
889
+ l.length !== b.length && Ab("Mismatched type converter count");
890
+ for (var n = 0; n < b.length; ++n) {
891
+ Ib(b[n], l[n]);
870
892
  }
871
893
  }
872
- b.forEach(function(k) {
873
- Cb[k] = a;
894
+ b.forEach(function(l) {
895
+ Hb[l] = a;
874
896
  });
875
- var e = Array(a.length), g = [], l = 0;
876
- a.forEach((k, m) => {
877
- eb.hasOwnProperty(k) ? e[m] = eb[k] : (g.push(k), Bb.hasOwnProperty(k) || (Bb[k] = []), Bb[k].push(() => {
878
- e[m] = eb[k];
879
- ++l;
880
- l === g.length && d(e);
897
+ var e = Array(a.length), g = [], m = 0;
898
+ a.forEach((l, n) => {
899
+ jb.hasOwnProperty(l) ? e[n] = jb[l] : (g.push(l), Gb.hasOwnProperty(l) || (Gb[l] = []), Gb[l].push(() => {
900
+ e[n] = jb[l];
901
+ ++m;
902
+ m === g.length && d(e);
881
903
  }));
882
904
  });
883
905
  0 === g.length && d(e);
884
906
  }
885
- function Eb(b) {
907
+ function Jb(b) {
886
908
  switch(b) {
887
909
  case 1:
888
910
  return 0;
@@ -896,72 +918,72 @@ function Eb(b) {
896
918
  throw new TypeError(`Unknown type size: ${b}`);
897
919
  }
898
920
  }
899
- function Fb(b, a, c = {}) {
921
+ function Kb(b, a, c = {}) {
900
922
  var d = a.name;
901
- b || Q(`type "${d}" must have a positive integer typeid pointer`);
902
- if (eb.hasOwnProperty(b)) {
923
+ b || R(`type "${d}" must have a positive integer typeid pointer`);
924
+ if (jb.hasOwnProperty(b)) {
903
925
  if (c.ab) {
904
926
  return;
905
927
  }
906
- Q(`Cannot register type '${d}' twice`);
928
+ R(`Cannot register type '${d}' twice`);
907
929
  }
908
- eb[b] = a;
909
- delete Cb[b];
910
- Bb.hasOwnProperty(b) && (a = Bb[b], delete Bb[b], a.forEach(e => e()));
930
+ jb[b] = a;
931
+ delete Hb[b];
932
+ Gb.hasOwnProperty(b) && (a = Gb[b], delete Gb[b], a.forEach(e => e()));
911
933
  }
912
- function Db(b, a, c = {}) {
934
+ function Ib(b, a, c = {}) {
913
935
  if (!("argPackAdvance" in a)) {
914
936
  throw new TypeError("registerType registeredInstance requires argPackAdvance");
915
937
  }
916
- Fb(b, a, c);
938
+ Kb(b, a, c);
917
939
  }
918
- function Gb(b) {
919
- Q(b.g.j.h.name + " instance already deleted");
940
+ function Lb(b) {
941
+ R(b.g.j.h.name + " instance already deleted");
920
942
  }
921
- function Hb() {
943
+ function Mb() {
922
944
  }
923
- function Ib(b, a, c) {
945
+ function Nb(b, a, c) {
924
946
  if (void 0 === b[a].m) {
925
947
  var d = b[a];
926
948
  b[a] = function() {
927
- b[a].m.hasOwnProperty(arguments.length) || Q(`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${b[a].m})!`);
949
+ b[a].m.hasOwnProperty(arguments.length) || R(`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${b[a].m})!`);
928
950
  return b[a].m[arguments.length].apply(this, arguments);
929
951
  };
930
952
  b[a].m = [];
931
953
  b[a].m[d.L] = d;
932
954
  }
933
955
  }
934
- function Jb(b, a, c) {
935
- p.hasOwnProperty(b) ? ((void 0 === c || void 0 !== p[b].m && void 0 !== p[b].m[c]) && Q(`Cannot register public name '${b}' twice`), Ib(p, b, b), p.hasOwnProperty(c) && Q(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), p[b].m[c] = a) : (p[b] = a, void 0 !== c && (p[b].tb = c));
956
+ function Ob(b, a, c) {
957
+ h.hasOwnProperty(b) ? ((void 0 === c || void 0 !== h[b].m && void 0 !== h[b].m[c]) && R(`Cannot register public name '${b}' twice`), Nb(h, b, b), h.hasOwnProperty(c) && R(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), h[b].m[c] = a) : (h[b] = a, void 0 !== c && (h[b].tb = c));
936
958
  }
937
- function Kb(b, a, c, d, e, g, l, k) {
959
+ function Pb(b, a, c, d, e, g, m, l) {
938
960
  this.name = b;
939
961
  this.constructor = a;
940
962
  this.B = c;
941
963
  this.H = d;
942
964
  this.l = e;
943
965
  this.Ua = g;
944
- this.S = l;
945
- this.Pa = k;
966
+ this.S = m;
967
+ this.Pa = l;
946
968
  this.ya = [];
947
969
  }
948
- function Lb(b, a, c) {
970
+ function Qb(b, a, c) {
949
971
  for (; a !== c;) {
950
- a.S || Q(`Expected null or instance of ${c.name}, got an instance of ${a.name}`), b = a.S(b), a = a.l;
972
+ a.S || R(`Expected null or instance of ${c.name}, got an instance of ${a.name}`), b = a.S(b), a = a.l;
951
973
  }
952
974
  return b;
953
975
  }
954
- function Mb(b, a) {
976
+ function Rb(b, a) {
955
977
  if (null === a) {
956
- return this.ea && Q(`null is not a valid ${this.name}`), 0;
978
+ return this.ea && R(`null is not a valid ${this.name}`), 0;
957
979
  }
958
- a.g || Q(`Cannot pass "${Nb(a)}" as a ${this.name}`);
959
- a.g.i || Q(`Cannot pass deleted object as a pointer of type ${this.name}`);
960
- return Lb(a.g.i, a.g.j.h, this.h);
980
+ a.g || R(`Cannot pass "${Sb(a)}" as a ${this.name}`);
981
+ a.g.i || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
982
+ return Qb(a.g.i, a.g.j.h, this.h);
961
983
  }
962
- function Ob(b, a) {
984
+ function Tb(b, a) {
963
985
  if (null === a) {
964
- this.ea && Q(`null is not a valid ${this.name}`);
986
+ this.ea && R(`null is not a valid ${this.name}`);
965
987
  if (this.V) {
966
988
  var c = this.fa();
967
989
  null !== b && b.push(this.H, c);
@@ -969,14 +991,14 @@ function Ob(b, a) {
969
991
  }
970
992
  return 0;
971
993
  }
972
- a.g || Q(`Cannot pass "${Nb(a)}" as a ${this.name}`);
973
- a.g.i || Q(`Cannot pass deleted object as a pointer of type ${this.name}`);
974
- !this.U && a.g.j.U && Q(`Cannot convert argument of type ${a.g.A ? a.g.A.name : a.g.j.name} to parameter type ${this.name}`);
975
- c = Lb(a.g.i, a.g.j.h, this.h);
994
+ a.g || R(`Cannot pass "${Sb(a)}" as a ${this.name}`);
995
+ a.g.i || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
996
+ !this.U && a.g.j.U && R(`Cannot convert argument of type ${a.g.A ? a.g.A.name : a.g.j.name} to parameter type ${this.name}`);
997
+ c = Qb(a.g.i, a.g.j.h, this.h);
976
998
  if (this.V) {
977
- switch(void 0 === a.g.s && Q("Passing raw pointer to smart pointer is illegal"), this.nb) {
999
+ switch(void 0 === a.g.s && R("Passing raw pointer to smart pointer is illegal"), this.nb) {
978
1000
  case 0:
979
- a.g.A === this ? c = a.g.s : Q(`Cannot convert argument of type ${a.g.A ? a.g.A.name : a.g.j.name} to parameter type ${this.name}`);
1001
+ a.g.A === this ? c = a.g.s : R(`Cannot convert argument of type ${a.g.A ? a.g.A.name : a.g.j.name} to parameter type ${this.name}`);
980
1002
  break;
981
1003
  case 1:
982
1004
  c = a.g.s;
@@ -986,195 +1008,195 @@ function Ob(b, a) {
986
1008
  c = a.g.s;
987
1009
  } else {
988
1010
  var d = a.clone();
989
- c = this.jb(c, S(function() {
1011
+ c = this.jb(c, ab(function() {
990
1012
  d["delete"]();
991
1013
  }));
992
1014
  null !== b && b.push(this.H, c);
993
1015
  }
994
1016
  break;
995
1017
  default:
996
- Q("Unsupporting sharing policy");
1018
+ R("Unsupporting sharing policy");
997
1019
  }
998
1020
  }
999
1021
  return c;
1000
1022
  }
1001
- function Pb(b, a) {
1023
+ function Ub(b, a) {
1002
1024
  if (null === a) {
1003
- return this.ea && Q(`null is not a valid ${this.name}`), 0;
1025
+ return this.ea && R(`null is not a valid ${this.name}`), 0;
1004
1026
  }
1005
- a.g || Q(`Cannot pass "${Nb(a)}" as a ${this.name}`);
1006
- a.g.i || Q(`Cannot pass deleted object as a pointer of type ${this.name}`);
1007
- a.g.j.U && Q(`Cannot convert argument of type ${a.g.j.name} to parameter type ${this.name}`);
1008
- return Lb(a.g.i, a.g.j.h, this.h);
1027
+ a.g || R(`Cannot pass "${Sb(a)}" as a ${this.name}`);
1028
+ a.g.i || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
1029
+ a.g.j.U && R(`Cannot convert argument of type ${a.g.j.name} to parameter type ${this.name}`);
1030
+ return Qb(a.g.i, a.g.j.h, this.h);
1009
1031
  }
1010
- function Qb(b, a, c, d) {
1032
+ function Vb(b, a, c, d) {
1011
1033
  this.name = b;
1012
1034
  this.h = a;
1013
1035
  this.ea = c;
1014
1036
  this.U = d;
1015
1037
  this.V = !1;
1016
1038
  this.H = this.jb = this.fa = this.za = this.nb = this.ib = void 0;
1017
- void 0 !== a.l ? this.toWireType = Ob : (this.toWireType = d ? Mb : Pb, this.v = null);
1039
+ void 0 !== a.l ? this.toWireType = Tb : (this.toWireType = d ? Rb : Ub, this.v = null);
1018
1040
  }
1019
- function Rb(b, a, c) {
1020
- p.hasOwnProperty(b) || qb("Replacing nonexistant public symbol");
1021
- void 0 !== p[b].m && void 0 !== c ? p[b].m[c] = a : (p[b] = a, p[b].L = c);
1041
+ function Wb(b, a, c) {
1042
+ h.hasOwnProperty(b) || Ab("Replacing nonexistant public symbol");
1043
+ void 0 !== h[b].m && void 0 !== c ? h[b].m[c] = a : (h[b] = a, h[b].L = c);
1022
1044
  }
1023
- var Sb = [], Tb = b => {
1024
- var a = Sb[b];
1025
- a || (b >= Sb.length && (Sb.length = b + 1), Sb[b] = a = Ga.get(b));
1045
+ var Xb = [], Yb = b => {
1046
+ var a = Xb[b];
1047
+ a || (b >= Xb.length && (Xb.length = b + 1), Xb[b] = a = Ha.get(b));
1026
1048
  return a;
1027
- }, Ub = (b, a) => {
1049
+ }, Zb = (b, a) => {
1028
1050
  var c = [];
1029
1051
  return function() {
1030
1052
  c.length = 0;
1031
1053
  Object.assign(c, arguments);
1032
1054
  if (b.includes("j")) {
1033
- var d = p["dynCall_" + b];
1055
+ var d = h["dynCall_" + b];
1034
1056
  d = c && c.length ? d.apply(null, [a].concat(c)) : d.call(null, a);
1035
1057
  } else {
1036
- d = Tb(a).apply(null, c);
1058
+ d = Yb(a).apply(null, c);
1037
1059
  }
1038
1060
  return d;
1039
1061
  };
1040
1062
  };
1041
1063
  function Z(b, a) {
1042
1064
  b = U(b);
1043
- var c = b.includes("j") ? Ub(b, a) : Tb(a);
1044
- "function" != typeof c && Q(`unknown function pointer with signature ${b}: ${a}`);
1065
+ var c = b.includes("j") ? Zb(b, a) : Yb(a);
1066
+ "function" != typeof c && R(`unknown function pointer with signature ${b}: ${a}`);
1045
1067
  return c;
1046
1068
  }
1047
- var Vb = void 0;
1048
- function Wb(b, a) {
1069
+ var $b = void 0;
1070
+ function ac(b, a) {
1049
1071
  function c(g) {
1050
- e[g] || eb[g] || (Cb[g] ? Cb[g].forEach(c) : (d.push(g), e[g] = !0));
1072
+ e[g] || jb[g] || (Hb[g] ? Hb[g].forEach(c) : (d.push(g), e[g] = !0));
1051
1073
  }
1052
1074
  var d = [], e = {};
1053
1075
  a.forEach(c);
1054
- throw new Vb(`${b}: ` + d.map(fb).join([", "]));
1076
+ throw new $b(`${b}: ` + d.map(kb).join([", "]));
1055
1077
  }
1056
- function Xb(b, a, c, d, e) {
1078
+ function bc(b, a, c, d, e) {
1057
1079
  var g = a.length;
1058
- 2 > g && Q("argTypes array size mismatch! Must at least get return value and 'this' types!");
1059
- var l = null !== a[1] && null !== c, k = !1;
1080
+ 2 > g && R("argTypes array size mismatch! Must at least get return value and 'this' types!");
1081
+ var m = null !== a[1] && null !== c, l = !1;
1060
1082
  for (c = 1; c < a.length; ++c) {
1061
1083
  if (null !== a[c] && void 0 === a[c].v) {
1062
- k = !0;
1084
+ l = !0;
1063
1085
  break;
1064
1086
  }
1065
1087
  }
1066
- var m = "void" !== a[0].name, h = g - 2, t = Array(h), v = [], x = [];
1088
+ var n = "void" !== a[0].name, k = g - 2, t = Array(k), v = [], x = [];
1067
1089
  return function() {
1068
- arguments.length !== h && Q(`function ${b} called with ${arguments.length} arguments, expected ${h} args!`);
1090
+ arguments.length !== k && R(`function ${b} called with ${arguments.length} arguments, expected ${k} args!`);
1069
1091
  x.length = 0;
1070
- v.length = l ? 2 : 1;
1092
+ v.length = m ? 2 : 1;
1071
1093
  v[0] = e;
1072
- if (l) {
1094
+ if (m) {
1073
1095
  var f = a[1].toWireType(x, this);
1074
1096
  v[1] = f;
1075
1097
  }
1076
- for (var r = 0; r < h; ++r) {
1098
+ for (var r = 0; r < k; ++r) {
1077
1099
  t[r] = a[r + 2].toWireType(x, arguments[r]), v.push(t[r]);
1078
1100
  }
1079
1101
  r = d.apply(null, v);
1080
- if (k) {
1081
- zb(x);
1102
+ if (l) {
1103
+ Eb(x);
1082
1104
  } else {
1083
- for (var q = l ? 1 : 2; q < a.length; q++) {
1105
+ for (var q = m ? 1 : 2; q < a.length; q++) {
1084
1106
  var G = 1 === q ? f : t[q - 2];
1085
1107
  null !== a[q].v && a[q].v(G);
1086
1108
  }
1087
1109
  }
1088
- f = m ? a[0].fromWireType(r) : void 0;
1110
+ f = n ? a[0].fromWireType(r) : void 0;
1089
1111
  return f;
1090
1112
  };
1091
1113
  }
1092
- function Yb(b, a) {
1114
+ function cc(b, a) {
1093
1115
  for (var c = [], d = 0; d < b; d++) {
1094
- c.push(M[a + 4 * d >> 2]);
1116
+ c.push(P[a + 4 * d >> 2]);
1095
1117
  }
1096
1118
  return c;
1097
1119
  }
1098
- function Zb(b, a, c) {
1099
- b instanceof Object || Q(`${c} with invalid "this": ${b}`);
1100
- b instanceof a.h.constructor || Q(`${c} incompatible with "this" of type ${b.constructor.name}`);
1101
- b.g.i || Q(`cannot call emscripten binding method ${c} on deleted object`);
1102
- return Lb(b.g.i, b.g.j.h, a.h);
1120
+ function dc(b, a, c) {
1121
+ b instanceof Object || R(`${c} with invalid "this": ${b}`);
1122
+ b instanceof a.h.constructor || R(`${c} incompatible with "this" of type ${b.constructor.name}`);
1123
+ b.g.i || R(`cannot call emscripten binding method ${c} on deleted object`);
1124
+ return Qb(b.g.i, b.g.j.h, a.h);
1103
1125
  }
1104
- function $b(b) {
1105
- b >= P.ua && 0 === --P.get(b).Aa && P.$a(b);
1126
+ function ec(b) {
1127
+ b >= Q.ua && 0 === --Q.get(b).Aa && Q.$a(b);
1106
1128
  }
1107
- function ac(b, a, c) {
1129
+ function fc(b, a, c) {
1108
1130
  switch(a) {
1109
1131
  case 0:
1110
1132
  return function(d) {
1111
- return this.fromWireType((c ? Aa : J)[d]);
1133
+ return this.fromWireType((c ? Ba : L)[d]);
1112
1134
  };
1113
1135
  case 1:
1114
1136
  return function(d) {
1115
- return this.fromWireType((c ? Ba : Ca)[d >> 1]);
1137
+ return this.fromWireType((c ? Ca : Da)[d >> 1]);
1116
1138
  };
1117
1139
  case 2:
1118
1140
  return function(d) {
1119
- return this.fromWireType((c ? L : M)[d >> 2]);
1141
+ return this.fromWireType((c ? M : P)[d >> 2]);
1120
1142
  };
1121
1143
  default:
1122
1144
  throw new TypeError("Unknown integer type: " + b);
1123
1145
  }
1124
1146
  }
1125
- function Nb(b) {
1147
+ function Sb(b) {
1126
1148
  if (null === b) {
1127
1149
  return "null";
1128
1150
  }
1129
1151
  var a = typeof b;
1130
1152
  return "object" === a || "array" === a || "function" === a ? b.toString() : "" + b;
1131
1153
  }
1132
- function bc(b, a) {
1154
+ function gc(b, a) {
1133
1155
  switch(a) {
1134
1156
  case 2:
1135
1157
  return function(c) {
1136
- return this.fromWireType(Da[c >> 2]);
1158
+ return this.fromWireType(Ea[c >> 2]);
1137
1159
  };
1138
1160
  case 3:
1139
1161
  return function(c) {
1140
- return this.fromWireType(Ea[c >> 3]);
1162
+ return this.fromWireType(Fa[c >> 3]);
1141
1163
  };
1142
1164
  default:
1143
1165
  throw new TypeError("Unknown float type: " + b);
1144
1166
  }
1145
1167
  }
1146
- function cc(b, a, c) {
1168
+ function hc(b, a, c) {
1147
1169
  switch(a) {
1148
1170
  case 0:
1149
1171
  return c ? function(d) {
1150
- return Aa[d];
1172
+ return Ba[d];
1151
1173
  } : function(d) {
1152
- return J[d];
1174
+ return L[d];
1153
1175
  };
1154
1176
  case 1:
1155
1177
  return c ? function(d) {
1156
- return Ba[d >> 1];
1157
- } : function(d) {
1158
1178
  return Ca[d >> 1];
1179
+ } : function(d) {
1180
+ return Da[d >> 1];
1159
1181
  };
1160
1182
  case 2:
1161
1183
  return c ? function(d) {
1162
- return L[d >> 2];
1163
- } : function(d) {
1164
1184
  return M[d >> 2];
1185
+ } : function(d) {
1186
+ return P[d >> 2];
1165
1187
  };
1166
1188
  default:
1167
1189
  throw new TypeError("Unknown integer type: " + b);
1168
1190
  }
1169
1191
  }
1170
- var dc = (b, a, c, d) => {
1192
+ var ic = (b, a, c, d) => {
1171
1193
  if (0 < d) {
1172
1194
  d = c + d - 1;
1173
1195
  for (var e = 0; e < b.length; ++e) {
1174
1196
  var g = b.charCodeAt(e);
1175
1197
  if (55296 <= g && 57343 >= g) {
1176
- var l = b.charCodeAt(++e);
1177
- g = 65536 + ((g & 1023) << 10) | l & 1023;
1198
+ var m = b.charCodeAt(++e);
1199
+ g = 65536 + ((g & 1023) << 10) | m & 1023;
1178
1200
  }
1179
1201
  if (127 >= g) {
1180
1202
  if (c >= d) {
@@ -1207,19 +1229,19 @@ var dc = (b, a, c, d) => {
1207
1229
  }
1208
1230
  a[c] = 0;
1209
1231
  }
1210
- }, ec = b => {
1232
+ }, jc = b => {
1211
1233
  for (var a = 0, c = 0; c < b.length; ++c) {
1212
1234
  var d = b.charCodeAt(c);
1213
1235
  127 >= d ? a++ : 2047 >= d ? a += 2 : 55296 <= d && 57343 >= d ? (a += 4, ++c) : a += 3;
1214
1236
  }
1215
1237
  return a;
1216
- }, fc = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, gc = (b, a, c) => {
1238
+ }, kc = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, lc = (b, a, c) => {
1217
1239
  var d = a + c;
1218
1240
  for (c = a; b[c] && !(c >= d);) {
1219
1241
  ++c;
1220
1242
  }
1221
- if (16 < c - a && b.buffer && fc) {
1222
- return fc.decode(b.subarray(a, c));
1243
+ if (16 < c - a && b.buffer && kc) {
1244
+ return kc.decode(b.subarray(a, c));
1223
1245
  }
1224
1246
  for (d = ""; a < c;) {
1225
1247
  var e = b[a++];
@@ -1228,8 +1250,8 @@ var dc = (b, a, c, d) => {
1228
1250
  if (192 == (e & 224)) {
1229
1251
  d += String.fromCharCode((e & 31) << 6 | g);
1230
1252
  } else {
1231
- var l = b[a++] & 63;
1232
- e = 224 == (e & 240) ? (e & 15) << 12 | g << 6 | l : (e & 7) << 18 | g << 12 | l << 6 | b[a++] & 63;
1253
+ var m = b[a++] & 63;
1254
+ e = 224 == (e & 240) ? (e & 15) << 12 | g << 6 | m : (e & 7) << 18 | g << 12 | m << 6 | b[a++] & 63;
1233
1255
  65536 > e ? d += String.fromCharCode(e) : (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023));
1234
1256
  }
1235
1257
  } else {
@@ -1237,25 +1259,25 @@ var dc = (b, a, c, d) => {
1237
1259
  }
1238
1260
  }
1239
1261
  return d;
1240
- }, hc = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, ic = (b, a) => {
1262
+ }, mc = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, nc = (b, a) => {
1241
1263
  var c = b >> 1;
1242
- for (var d = c + a / 2; !(c >= d) && Ca[c];) {
1264
+ for (var d = c + a / 2; !(c >= d) && Da[c];) {
1243
1265
  ++c;
1244
1266
  }
1245
1267
  c <<= 1;
1246
- if (32 < c - b && hc) {
1247
- return hc.decode(J.subarray(b, c));
1268
+ if (32 < c - b && mc) {
1269
+ return mc.decode(L.subarray(b, c));
1248
1270
  }
1249
1271
  c = "";
1250
1272
  for (d = 0; !(d >= a / 2); ++d) {
1251
- var e = Ba[b + 2 * d >> 1];
1273
+ var e = Ca[b + 2 * d >> 1];
1252
1274
  if (0 == e) {
1253
1275
  break;
1254
1276
  }
1255
1277
  c += String.fromCharCode(e);
1256
1278
  }
1257
1279
  return c;
1258
- }, jc = (b, a, c) => {
1280
+ }, pc = (b, a, c) => {
1259
1281
  void 0 === c && (c = 2147483647);
1260
1282
  if (2 > c) {
1261
1283
  return 0;
@@ -1264,13 +1286,13 @@ var dc = (b, a, c, d) => {
1264
1286
  var d = a;
1265
1287
  c = c < 2 * b.length ? c / 2 : b.length;
1266
1288
  for (var e = 0; e < c; ++e) {
1267
- Ba[a >> 1] = b.charCodeAt(e), a += 2;
1289
+ Ca[a >> 1] = b.charCodeAt(e), a += 2;
1268
1290
  }
1269
- Ba[a >> 1] = 0;
1291
+ Ca[a >> 1] = 0;
1270
1292
  return a - d;
1271
- }, lc = b => 2 * b.length, mc = (b, a) => {
1293
+ }, qc = b => 2 * b.length, rc = (b, a) => {
1272
1294
  for (var c = 0, d = ""; !(c >= a / 4);) {
1273
- var e = L[b + 4 * c >> 2];
1295
+ var e = M[b + 4 * c >> 2];
1274
1296
  if (0 == e) {
1275
1297
  break;
1276
1298
  }
@@ -1278,7 +1300,7 @@ var dc = (b, a, c, d) => {
1278
1300
  65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
1279
1301
  }
1280
1302
  return d;
1281
- }, nc = (b, a, c) => {
1303
+ }, sc = (b, a, c) => {
1282
1304
  void 0 === c && (c = 2147483647);
1283
1305
  if (4 > c) {
1284
1306
  return 0;
@@ -1288,61 +1310,61 @@ var dc = (b, a, c, d) => {
1288
1310
  for (var e = 0; e < b.length; ++e) {
1289
1311
  var g = b.charCodeAt(e);
1290
1312
  if (55296 <= g && 57343 >= g) {
1291
- var l = b.charCodeAt(++e);
1292
- g = 65536 + ((g & 1023) << 10) | l & 1023;
1313
+ var m = b.charCodeAt(++e);
1314
+ g = 65536 + ((g & 1023) << 10) | m & 1023;
1293
1315
  }
1294
- L[a >> 2] = g;
1316
+ M[a >> 2] = g;
1295
1317
  a += 4;
1296
1318
  if (a + 4 > c) {
1297
1319
  break;
1298
1320
  }
1299
1321
  }
1300
- L[a >> 2] = 0;
1322
+ M[a >> 2] = 0;
1301
1323
  return a - d;
1302
- }, oc = b => {
1324
+ }, tc = b => {
1303
1325
  for (var a = 0, c = 0; c < b.length; ++c) {
1304
1326
  var d = b.charCodeAt(c);
1305
1327
  55296 <= d && 57343 >= d && ++c;
1306
1328
  a += 4;
1307
1329
  }
1308
1330
  return a;
1309
- }, pc = {};
1310
- function qc(b) {
1311
- var a = pc[b];
1331
+ }, uc = {};
1332
+ function vc(b) {
1333
+ var a = uc[b];
1312
1334
  return void 0 === a ? U(b) : a;
1313
1335
  }
1314
- var rc = [];
1315
- function sc(b) {
1316
- var a = rc.length;
1317
- rc.push(b);
1336
+ var wc = [];
1337
+ function xc(b) {
1338
+ var a = wc.length;
1339
+ wc.push(b);
1318
1340
  return a;
1319
1341
  }
1320
- function tc(b, a) {
1342
+ function yc(b, a) {
1321
1343
  for (var c = Array(b), d = 0; d < b; ++d) {
1322
- c[d] = ib(M[a + 4 * d >> 2], "parameter " + d);
1344
+ c[d] = nb(P[a + 4 * d >> 2], "parameter " + d);
1323
1345
  }
1324
1346
  return c;
1325
1347
  }
1326
- var uc = [], vc = {}, xc = () => {
1327
- if (!wc) {
1328
- var b = {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", _:"./this.program"}, a;
1329
- for (a in vc) {
1330
- void 0 === vc[a] ? delete b[a] : b[a] = vc[a];
1348
+ var zc = [], Ac = {}, Cc = () => {
1349
+ if (!Bc) {
1350
+ var b = {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"}, a;
1351
+ for (a in Ac) {
1352
+ void 0 === Ac[a] ? delete b[a] : b[a] = Ac[a];
1331
1353
  }
1332
1354
  var c = [];
1333
1355
  for (a in b) {
1334
1356
  c.push(`${a}=${b[a]}`);
1335
1357
  }
1336
- wc = c;
1358
+ Bc = c;
1337
1359
  }
1338
- return wc;
1339
- }, wc, yc = [null, [], []], zc = b => 0 === b % 4 && (0 !== b % 100 || 0 === b % 400), Ac = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Bc = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
1340
- function Cc(b) {
1341
- var a = Array(ec(b) + 1);
1342
- dc(b, a, 0, a.length);
1360
+ return Bc;
1361
+ }, Bc, Dc = [null, [], []], Ec = b => 0 === b % 4 && (0 !== b % 100 || 0 === b % 400), Fc = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Gc = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
1362
+ function Hc(b) {
1363
+ var a = Array(jc(b) + 1);
1364
+ ic(b, a, 0, a.length);
1343
1365
  return a;
1344
1366
  }
1345
- var Dc = (b, a, c, d) => {
1367
+ var Ic = (b, a, c, d) => {
1346
1368
  function e(f, r, q) {
1347
1369
  for (f = "number" == typeof f ? f.toString() : f || ""; f.length < r;) {
1348
1370
  f = q[0] + f;
@@ -1352,7 +1374,7 @@ var Dc = (b, a, c, d) => {
1352
1374
  function g(f, r) {
1353
1375
  return e(f, r, "0");
1354
1376
  }
1355
- function l(f, r) {
1377
+ function m(f, r) {
1356
1378
  function q(D) {
1357
1379
  return 0 > D ? -1 : 0 < D ? 1 : 0;
1358
1380
  }
@@ -1360,7 +1382,7 @@ var Dc = (b, a, c, d) => {
1360
1382
  0 === (G = q(f.getFullYear() - r.getFullYear())) && 0 === (G = q(f.getMonth() - r.getMonth())) && (G = q(f.getDate() - r.getDate()));
1361
1383
  return G;
1362
1384
  }
1363
- function k(f) {
1385
+ function l(f) {
1364
1386
  switch(f.getDay()) {
1365
1387
  case 0:
1366
1388
  return new Date(f.getFullYear() - 1, 11, 29);
@@ -1378,10 +1400,10 @@ var Dc = (b, a, c, d) => {
1378
1400
  return new Date(f.getFullYear() - 1, 11, 30);
1379
1401
  }
1380
1402
  }
1381
- function m(f) {
1403
+ function n(f) {
1382
1404
  var r = f.J;
1383
1405
  for (f = new Date((new Date(f.K + 1900, 0, 1)).getTime()); 0 < r;) {
1384
- var q = f.getMonth(), G = (zc(f.getFullYear()) ? Ac : Bc)[q];
1406
+ var q = f.getMonth(), G = (Ec(f.getFullYear()) ? Fc : Gc)[q];
1385
1407
  if (r > G - f.getDate()) {
1386
1408
  r -= G - f.getDate() + 1, f.setDate(1), 11 > q ? f.setMonth(q + 1) : (f.setMonth(0), f.setFullYear(f.getFullYear() + 1));
1387
1409
  } else {
@@ -1390,35 +1412,35 @@ var Dc = (b, a, c, d) => {
1390
1412
  }
1391
1413
  }
1392
1414
  q = new Date(f.getFullYear() + 1, 0, 4);
1393
- r = k(new Date(f.getFullYear(), 0, 4));
1394
- q = k(q);
1395
- return 0 >= l(r, f) ? 0 >= l(q, f) ? f.getFullYear() + 1 : f.getFullYear() : f.getFullYear() - 1;
1415
+ r = l(new Date(f.getFullYear(), 0, 4));
1416
+ q = l(q);
1417
+ return 0 >= m(r, f) ? 0 >= m(q, f) ? f.getFullYear() + 1 : f.getFullYear() : f.getFullYear() - 1;
1396
1418
  }
1397
- var h = L[d + 40 >> 2];
1398
- d = {qb:L[d >> 2], pb:L[d + 4 >> 2], Z:L[d + 8 >> 2], ha:L[d + 12 >> 2], $:L[d + 16 >> 2], K:L[d + 20 >> 2], C:L[d + 24 >> 2], J:L[d + 28 >> 2], ub:L[d + 32 >> 2], ob:L[d + 36 >> 2], rb:h ? h ? gc(J, h) : "" : ""};
1399
- c = c ? gc(J, c) : "";
1400
- h = {"%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",};
1401
- for (var t in h) {
1402
- c = c.replace(new RegExp(t, "g"), h[t]);
1419
+ var k = M[d + 40 >> 2];
1420
+ d = {qb:M[d >> 2], pb:M[d + 4 >> 2], Z:M[d + 8 >> 2], ha:M[d + 12 >> 2], $:M[d + 16 >> 2], K:M[d + 20 >> 2], C:M[d + 24 >> 2], J:M[d + 28 >> 2], ub:M[d + 32 >> 2], ob:M[d + 36 >> 2], rb:k ? k ? lc(L, k) : "" : ""};
1421
+ c = c ? lc(L, c) : "";
1422
+ k = {"%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",};
1423
+ for (var t in k) {
1424
+ c = c.replace(new RegExp(t, "g"), k[t]);
1403
1425
  }
1404
1426
  var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), x = "January February March April May June July August September October November December".split(" ");
1405
- h = {"%a":f => v[f.C].substring(0, 3), "%A":f => v[f.C], "%b":f => x[f.$].substring(0, 3), "%B":f => x[f.$], "%C":f => g((f.K + 1900) / 100 | 0, 2), "%d":f => g(f.ha, 2), "%e":f => e(f.ha, 2, " "), "%g":f => m(f).toString().substring(2), "%G":f => m(f), "%H":f => g(f.Z, 2), "%I":f => {
1427
+ k = {"%a":f => v[f.C].substring(0, 3), "%A":f => v[f.C], "%b":f => x[f.$].substring(0, 3), "%B":f => x[f.$], "%C":f => g((f.K + 1900) / 100 | 0, 2), "%d":f => g(f.ha, 2), "%e":f => e(f.ha, 2, " "), "%g":f => n(f).toString().substring(2), "%G":f => n(f), "%H":f => g(f.Z, 2), "%I":f => {
1406
1428
  f = f.Z;
1407
1429
  0 == f ? f = 12 : 12 < f && (f -= 12);
1408
1430
  return g(f, 2);
1409
1431
  }, "%j":f => {
1410
- for (var r = 0, q = 0; q <= f.$ - 1; r += (zc(f.K + 1900) ? Ac : Bc)[q++]) {
1432
+ for (var r = 0, q = 0; q <= f.$ - 1; r += (Ec(f.K + 1900) ? Fc : Gc)[q++]) {
1411
1433
  }
1412
1434
  return g(f.ha + r, 3);
1413
1435
  }, "%m":f => g(f.$ + 1, 2), "%M":f => g(f.pb, 2), "%n":() => "\n", "%p":f => 0 <= f.Z && 12 > f.Z ? "AM" : "PM", "%S":f => g(f.qb, 2), "%t":() => "\t", "%u":f => f.C || 7, "%U":f => g(Math.floor((f.J + 7 - f.C) / 7), 2), "%V":f => {
1414
1436
  var r = Math.floor((f.J + 7 - (f.C + 6) % 7) / 7);
1415
1437
  2 >= (f.C + 371 - f.J - 2) % 7 && r++;
1416
1438
  if (r) {
1417
- 53 == r && (q = (f.C + 371 - f.J) % 7, 4 == q || 3 == q && zc(f.K) || (r = 1));
1439
+ 53 == r && (q = (f.C + 371 - f.J) % 7, 4 == q || 3 == q && Ec(f.K) || (r = 1));
1418
1440
  } else {
1419
1441
  r = 52;
1420
1442
  var q = (f.C + 7 - f.J - 1) % 7;
1421
- (4 == q || 5 == q && zc(f.K % 400 - 1)) && r++;
1443
+ (4 == q || 5 == q && Ec(f.K % 400 - 1)) && r++;
1422
1444
  }
1423
1445
  return g(r, 2);
1424
1446
  }, "%w":f => f.C, "%W":f => g(Math.floor((f.J + 7 - (f.C + 6) % 7) / 7), 2), "%y":f => (f.K + 1900).toString().substring(2), "%Y":f => f.K + 1900, "%z":f => {
@@ -1428,18 +1450,18 @@ var Dc = (b, a, c, d) => {
1428
1450
  return (r ? "+" : "-") + String("0000" + (f / 60 * 100 + f % 60)).slice(-4);
1429
1451
  }, "%Z":f => f.rb, "%%":() => "%"};
1430
1452
  c = c.replace(/%%/g, "\x00\x00");
1431
- for (t in h) {
1432
- c.includes(t) && (c = c.replace(new RegExp(t, "g"), h[t](d)));
1453
+ for (t in k) {
1454
+ c.includes(t) && (c = c.replace(new RegExp(t, "g"), k[t](d)));
1433
1455
  }
1434
1456
  c = c.replace(/\0\0/g, "%");
1435
- t = Cc(c);
1457
+ t = Hc(c);
1436
1458
  if (t.length > a) {
1437
1459
  return 0;
1438
1460
  }
1439
- Aa.set(t, b);
1461
+ Ba.set(t, b);
1440
1462
  return t.length - 1;
1441
1463
  };
1442
- Object.assign(Va.prototype, {get(b) {
1464
+ Object.assign(Za.prototype, {get(b) {
1443
1465
  return this.G[b];
1444
1466
  }, has(b) {
1445
1467
  return void 0 !== this.G[b];
@@ -1451,48 +1473,48 @@ Object.assign(Va.prototype, {get(b) {
1451
1473
  this.G[b] = void 0;
1452
1474
  this.ta.push(b);
1453
1475
  }});
1454
- Wa = p.BindingError = class extends Error {
1476
+ $a = h.BindingError = class extends Error {
1455
1477
  constructor(b) {
1456
1478
  super(b);
1457
1479
  this.name = "BindingError";
1458
1480
  }
1459
1481
  };
1460
- P.G.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
1461
- P.ua = P.G.length;
1462
- p.count_emval_handles = function() {
1463
- for (var b = 0, a = P.ua; a < P.G.length; ++a) {
1464
- void 0 !== P.G[a] && ++b;
1482
+ Q.G.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
1483
+ Q.ua = Q.G.length;
1484
+ h.count_emval_handles = function() {
1485
+ for (var b = 0, a = Q.ua; a < Q.G.length; ++a) {
1486
+ void 0 !== Q.G[a] && ++b;
1465
1487
  }
1466
1488
  return b;
1467
1489
  };
1468
- Ya = p.PureVirtualError = Xa("PureVirtualError");
1469
- for (var Ec = Array(256), Fc = 0; 256 > Fc; ++Fc) {
1470
- Ec[Fc] = String.fromCharCode(Fc);
1490
+ cb = h.PureVirtualError = bb("PureVirtualError");
1491
+ for (var Jc = Array(256), Kc = 0; 256 > Kc; ++Kc) {
1492
+ Jc[Kc] = String.fromCharCode(Kc);
1471
1493
  }
1472
- Za = Ec;
1473
- p.getInheritedInstanceCount = function() {
1474
- return Object.keys(cb).length;
1494
+ db = Jc;
1495
+ h.getInheritedInstanceCount = function() {
1496
+ return Object.keys(hb).length;
1475
1497
  };
1476
- p.getLiveInheritedInstances = function() {
1498
+ h.getLiveInheritedInstances = function() {
1477
1499
  var b = [], a;
1478
- for (a in cb) {
1479
- cb.hasOwnProperty(a) && b.push(cb[a]);
1500
+ for (a in hb) {
1501
+ hb.hasOwnProperty(a) && b.push(hb[a]);
1480
1502
  }
1481
1503
  return b;
1482
1504
  };
1483
- p.flushPendingDeletes = ab;
1484
- p.setDelayFunction = function(b) {
1485
- bb = b;
1486
- $a.length && bb && bb(ab);
1505
+ h.flushPendingDeletes = fb;
1506
+ h.setDelayFunction = function(b) {
1507
+ gb = b;
1508
+ eb.length && gb && gb(fb);
1487
1509
  };
1488
- pb = p.InternalError = class extends Error {
1510
+ zb = h.InternalError = class extends Error {
1489
1511
  constructor(b) {
1490
1512
  super(b);
1491
1513
  this.name = "InternalError";
1492
1514
  }
1493
1515
  };
1494
- Hb.prototype.isAliasOf = function(b) {
1495
- if (!(this instanceof Hb && b instanceof Hb)) {
1516
+ Mb.prototype.isAliasOf = function(b) {
1517
+ if (!(this instanceof Mb && b instanceof Mb)) {
1496
1518
  return !1;
1497
1519
  }
1498
1520
  var a = this.g.j.h, c = this.g.i, d = b.g.j.h;
@@ -1504,58 +1526,58 @@ Hb.prototype.isAliasOf = function(b) {
1504
1526
  }
1505
1527
  return a === d && c === b;
1506
1528
  };
1507
- Hb.prototype.clone = function() {
1508
- this.g.i || Gb(this);
1529
+ Mb.prototype.clone = function() {
1530
+ this.g.i || Lb(this);
1509
1531
  if (this.g.O) {
1510
1532
  return this.g.count.value += 1, this;
1511
1533
  }
1512
- var b = xb, a = Object, c = a.create, d = Object.getPrototypeOf(this), e = this.g;
1534
+ var b = Cb, a = Object, c = a.create, d = Object.getPrototypeOf(this), e = this.g;
1513
1535
  b = b(c.call(a, d, {g:{value:{count:e.count, M:e.M, O:e.O, i:e.i, j:e.j, s:e.s, A:e.A,},}}));
1514
1536
  b.g.count.value += 1;
1515
1537
  b.g.M = !1;
1516
1538
  return b;
1517
1539
  };
1518
- Hb.prototype["delete"] = function() {
1519
- this.g.i || Gb(this);
1520
- this.g.M && !this.g.O && Q("Object already scheduled for deletion");
1521
- jb(this);
1522
- lb(this.g);
1540
+ Mb.prototype["delete"] = function() {
1541
+ this.g.i || Lb(this);
1542
+ this.g.M && !this.g.O && R("Object already scheduled for deletion");
1543
+ ob(this);
1544
+ qb(this.g);
1523
1545
  this.g.O || (this.g.s = void 0, this.g.i = void 0);
1524
1546
  };
1525
- Hb.prototype.isDeleted = function() {
1547
+ Mb.prototype.isDeleted = function() {
1526
1548
  return !this.g.i;
1527
1549
  };
1528
- Hb.prototype.deleteLater = function() {
1529
- this.g.i || Gb(this);
1530
- this.g.M && !this.g.O && Q("Object already scheduled for deletion");
1531
- $a.push(this);
1532
- 1 === $a.length && bb && bb(ab);
1550
+ Mb.prototype.deleteLater = function() {
1551
+ this.g.i || Lb(this);
1552
+ this.g.M && !this.g.O && R("Object already scheduled for deletion");
1553
+ eb.push(this);
1554
+ 1 === eb.length && gb && gb(fb);
1533
1555
  this.g.M = !0;
1534
1556
  return this;
1535
1557
  };
1536
- Qb.prototype.Va = function(b) {
1558
+ Vb.prototype.Va = function(b) {
1537
1559
  this.za && (b = this.za(b));
1538
1560
  return b;
1539
1561
  };
1540
- Qb.prototype.pa = function(b) {
1562
+ Vb.prototype.pa = function(b) {
1541
1563
  this.H && this.H(b);
1542
1564
  };
1543
- Qb.prototype.argPackAdvance = 8;
1544
- Qb.prototype.readValueFromPointer = Ab;
1545
- Qb.prototype.deleteObject = function(b) {
1565
+ Vb.prototype.argPackAdvance = 8;
1566
+ Vb.prototype.readValueFromPointer = Fb;
1567
+ Vb.prototype.deleteObject = function(b) {
1546
1568
  if (null !== b) {
1547
1569
  b["delete"]();
1548
1570
  }
1549
1571
  };
1550
- Qb.prototype.fromWireType = function(b) {
1572
+ Vb.prototype.fromWireType = function(b) {
1551
1573
  function a() {
1552
- return this.V ? rb(this.h.B, {j:this.ib, i:c, A:this, s:b,}) : rb(this.h.B, {j:this, i:b,});
1574
+ return this.V ? Bb(this.h.B, {j:this.ib, i:c, A:this, s:b,}) : Bb(this.h.B, {j:this, i:b,});
1553
1575
  }
1554
1576
  var c = this.Va(b);
1555
1577
  if (!c) {
1556
1578
  return this.pa(b), null;
1557
1579
  }
1558
- var d = ob(this.h, c);
1580
+ var d = yb(this.h, c);
1559
1581
  if (void 0 !== d) {
1560
1582
  if (0 === d.g.count.value) {
1561
1583
  return d.g.i = c, d.g.s = b, d.clone();
@@ -1565,118 +1587,118 @@ Qb.prototype.fromWireType = function(b) {
1565
1587
  return d;
1566
1588
  }
1567
1589
  d = this.h.Ua(c);
1568
- d = nb[d];
1590
+ d = sb[d];
1569
1591
  if (!d) {
1570
1592
  return a.call(this);
1571
1593
  }
1572
1594
  d = this.U ? d.Ka : d.pointerType;
1573
- var e = mb(c, this.h, d.h);
1574
- return null === e ? a.call(this) : this.V ? rb(d.h.B, {j:d, i:e, A:this, s:b,}) : rb(d.h.B, {j:d, i:e,});
1595
+ var e = rb(c, this.h, d.h);
1596
+ return null === e ? a.call(this) : this.V ? Bb(d.h.B, {j:d, i:e, A:this, s:b,}) : Bb(d.h.B, {j:d, i:e,});
1575
1597
  };
1576
- Vb = p.UnboundTypeError = Xa("UnboundTypeError");
1577
- var Hc = {_embind_create_inheriting_constructor:function(b, a, c) {
1598
+ $b = h.UnboundTypeError = bb("UnboundTypeError");
1599
+ var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
1578
1600
  b = U(b);
1579
- a = ib(a, "wrapper");
1580
- c = R(c);
1581
- var d = [].slice, e = a.h, g = e.B, l = e.l.B, k = e.l.constructor;
1582
- b = Ua(b, function() {
1583
- e.l.ya.forEach(function(h) {
1584
- if (this[h] === l[h]) {
1585
- throw new Ya(`Pure virtual function ${h} must be implemented in JavaScript`);
1601
+ a = nb(a, "wrapper");
1602
+ c = S(c);
1603
+ var d = [].slice, e = a.h, g = e.B, m = e.l.B, l = e.l.constructor;
1604
+ b = Ya(b, function() {
1605
+ e.l.ya.forEach(function(k) {
1606
+ if (this[k] === m[k]) {
1607
+ throw new cb(`Pure virtual function ${k} must be implemented in JavaScript`);
1586
1608
  }
1587
1609
  }.bind(this));
1588
1610
  Object.defineProperty(this, "__parent", {value:g});
1589
1611
  this.__construct.apply(this, d.call(arguments));
1590
1612
  });
1591
1613
  g.__construct = function() {
1592
- this === g && Q("Pass correct 'this' to __construct");
1593
- var h = k.implement.apply(void 0, [this].concat(d.call(arguments)));
1594
- jb(h);
1595
- var t = h.g;
1596
- h.notifyOnDestruction();
1614
+ this === g && R("Pass correct 'this' to __construct");
1615
+ var k = l.implement.apply(void 0, [this].concat(d.call(arguments)));
1616
+ ob(k);
1617
+ var t = k.g;
1618
+ k.notifyOnDestruction();
1597
1619
  t.O = !0;
1598
1620
  Object.defineProperties(this, {g:{value:t}});
1599
- xb(this);
1600
- h = t.i;
1601
- h = db(e, h);
1602
- cb.hasOwnProperty(h) ? Q(`Tried to register registered instance: ${h}`) : cb[h] = this;
1621
+ Cb(this);
1622
+ k = t.i;
1623
+ k = ib(e, k);
1624
+ hb.hasOwnProperty(k) ? R(`Tried to register registered instance: ${k}`) : hb[k] = this;
1603
1625
  };
1604
1626
  g.__destruct = function() {
1605
- this === g && Q("Pass correct 'this' to __destruct");
1606
- jb(this);
1607
- var h = this.g.i;
1608
- h = db(e, h);
1609
- cb.hasOwnProperty(h) ? delete cb[h] : Q(`Tried to unregister unregistered instance: ${h}`);
1627
+ this === g && R("Pass correct 'this' to __destruct");
1628
+ ob(this);
1629
+ var k = this.g.i;
1630
+ k = ib(e, k);
1631
+ hb.hasOwnProperty(k) ? delete hb[k] : R(`Tried to unregister unregistered instance: ${k}`);
1610
1632
  };
1611
1633
  b.prototype = Object.create(g);
1612
- for (var m in c) {
1613
- b.prototype[m] = c[m];
1634
+ for (var n in c) {
1635
+ b.prototype[n] = c[n];
1614
1636
  }
1615
- return S(b);
1637
+ return ab(b);
1616
1638
  }, _embind_finalize_value_object:function(b) {
1617
- var a = yb[b];
1618
- delete yb[b];
1619
- var c = a.fa, d = a.H, e = a.sa, g = e.map(l => l.Ya).concat(e.map(l => l.lb));
1620
- V([b], g, l => {
1621
- var k = {};
1622
- e.forEach((m, h) => {
1623
- var t = l[h], v = m.Wa, x = m.Xa, f = l[h + e.length], r = m.kb, q = m.mb;
1624
- k[m.Sa] = {read:G => t.fromWireType(v(x, G)), write:(G, D) => {
1639
+ var a = Db[b];
1640
+ delete Db[b];
1641
+ var c = a.fa, d = a.H, e = a.sa, g = e.map(m => m.Ya).concat(e.map(m => m.lb));
1642
+ V([b], g, m => {
1643
+ var l = {};
1644
+ e.forEach((n, k) => {
1645
+ var t = m[k], v = n.Wa, x = n.Xa, f = m[k + e.length], r = n.kb, q = n.mb;
1646
+ l[n.Sa] = {read:G => t.fromWireType(v(x, G)), write:(G, D) => {
1625
1647
  var u = [];
1626
1648
  r(q, G, f.toWireType(u, D));
1627
- zb(u);
1649
+ Eb(u);
1628
1650
  }};
1629
1651
  });
1630
- return [{name:a.name, fromWireType:function(m) {
1631
- var h = {}, t;
1632
- for (t in k) {
1633
- h[t] = k[t].read(m);
1652
+ return [{name:a.name, fromWireType:function(n) {
1653
+ var k = {}, t;
1654
+ for (t in l) {
1655
+ k[t] = l[t].read(n);
1634
1656
  }
1635
- d(m);
1636
- return h;
1637
- }, toWireType:function(m, h) {
1638
- for (var t in k) {
1639
- if (!(t in h)) {
1657
+ d(n);
1658
+ return k;
1659
+ }, toWireType:function(n, k) {
1660
+ for (var t in l) {
1661
+ if (!(t in k)) {
1640
1662
  throw new TypeError(`Missing field: "${t}"`);
1641
1663
  }
1642
1664
  }
1643
1665
  var v = c();
1644
- for (t in k) {
1645
- k[t].write(v, h[t]);
1666
+ for (t in l) {
1667
+ l[t].write(v, k[t]);
1646
1668
  }
1647
- null !== m && m.push(d, v);
1669
+ null !== n && n.push(d, v);
1648
1670
  return v;
1649
- }, argPackAdvance:8, readValueFromPointer:Ab, v:d,}];
1671
+ }, argPackAdvance:8, readValueFromPointer:Fb, v:d,}];
1650
1672
  });
1651
1673
  }, _embind_register_bigint:function() {
1652
1674
  }, _embind_register_bool:function(b, a, c, d, e) {
1653
- var g = Eb(c);
1675
+ var g = Jb(c);
1654
1676
  a = U(a);
1655
- Db(b, {name:a, fromWireType:function(l) {
1656
- return !!l;
1657
- }, toWireType:function(l, k) {
1658
- return k ? d : e;
1659
- }, argPackAdvance:8, readValueFromPointer:function(l) {
1677
+ Ib(b, {name:a, fromWireType:function(m) {
1678
+ return !!m;
1679
+ }, toWireType:function(m, l) {
1680
+ return l ? d : e;
1681
+ }, argPackAdvance:8, readValueFromPointer:function(m) {
1660
1682
  if (1 === c) {
1661
- var k = Aa;
1683
+ var l = Ba;
1662
1684
  } else if (2 === c) {
1663
- k = Ba;
1685
+ l = Ca;
1664
1686
  } else if (4 === c) {
1665
- k = L;
1687
+ l = M;
1666
1688
  } else {
1667
1689
  throw new TypeError("Unknown boolean type size: " + a);
1668
1690
  }
1669
- return this.fromWireType(k[l >> g]);
1691
+ return this.fromWireType(l[m >> g]);
1670
1692
  }, v:null,});
1671
- }, _embind_register_class:function(b, a, c, d, e, g, l, k, m, h, t, v, x) {
1693
+ }, _embind_register_class:function(b, a, c, d, e, g, m, l, n, k, t, v, x) {
1672
1694
  t = U(t);
1673
1695
  g = Z(e, g);
1674
- k && (k = Z(l, k));
1675
- h && (h = Z(m, h));
1696
+ l && (l = Z(m, l));
1697
+ k && (k = Z(n, k));
1676
1698
  x = Z(v, x);
1677
- var f = Ta(t);
1678
- Jb(f, function() {
1679
- Wb(`Cannot construct ${t} due to unbound types`, [d]);
1699
+ var f = Xa(t);
1700
+ Ob(f, function() {
1701
+ ac(`Cannot construct ${t} due to unbound types`, [d]);
1680
1702
  });
1681
1703
  V([b, a, c], d ? [d] : [], function(r) {
1682
1704
  r = r[0];
@@ -1684,50 +1706,50 @@ var Hc = {_embind_create_inheriting_constructor:function(b, a, c) {
1684
1706
  var q = r.h;
1685
1707
  var G = q.B;
1686
1708
  } else {
1687
- G = Hb.prototype;
1709
+ G = Mb.prototype;
1688
1710
  }
1689
- r = Ua(f, function() {
1711
+ r = Ya(f, function() {
1690
1712
  if (Object.getPrototypeOf(this) !== D) {
1691
- throw new Wa("Use 'new' to construct " + t);
1713
+ throw new $a("Use 'new' to construct " + t);
1692
1714
  }
1693
1715
  if (void 0 === u.I) {
1694
- throw new Wa(t + " has no accessible constructor");
1716
+ throw new $a(t + " has no accessible constructor");
1695
1717
  }
1696
1718
  var O = u.I[arguments.length];
1697
1719
  if (void 0 === O) {
1698
- throw new Wa(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(u.I).toString()}) parameters instead!`);
1720
+ throw new $a(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(u.I).toString()}) parameters instead!`);
1699
1721
  }
1700
1722
  return O.apply(this, arguments);
1701
1723
  });
1702
1724
  var D = Object.create(G, {constructor:{value:r},});
1703
1725
  r.prototype = D;
1704
- var u = new Kb(t, r, D, x, q, g, k, h);
1726
+ var u = new Pb(t, r, D, x, q, g, l, k);
1705
1727
  u.l && (void 0 === u.l.T && (u.l.T = []), u.l.T.push(u));
1706
- q = new Qb(t, u, !0, !1);
1707
- G = new Qb(t + "*", u, !1, !1);
1708
- var I = new Qb(t + " const*", u, !1, !0);
1709
- nb[b] = {pointerType:G, Ka:I};
1710
- Rb(f, r);
1728
+ q = new Vb(t, u, !0, !1);
1729
+ G = new Vb(t + "*", u, !1, !1);
1730
+ var I = new Vb(t + " const*", u, !1, !0);
1731
+ sb[b] = {pointerType:G, Ka:I};
1732
+ Wb(f, r);
1711
1733
  return [q, G, I];
1712
1734
  });
1713
- }, _embind_register_class_class_function:function(b, a, c, d, e, g, l) {
1714
- var k = Yb(c, d);
1735
+ }, _embind_register_class_class_function:function(b, a, c, d, e, g, m) {
1736
+ var l = cc(c, d);
1715
1737
  a = U(a);
1716
1738
  g = Z(e, g);
1717
- V([], [b], function(m) {
1718
- function h() {
1719
- Wb(`Cannot call ${t} due to unbound types`, k);
1739
+ V([], [b], function(n) {
1740
+ function k() {
1741
+ ac(`Cannot call ${t} due to unbound types`, l);
1720
1742
  }
1721
- m = m[0];
1722
- var t = `${m.name}.${a}`;
1743
+ n = n[0];
1744
+ var t = `${n.name}.${a}`;
1723
1745
  a.startsWith("@@") && (a = Symbol[a.substring(2)]);
1724
- var v = m.h.constructor;
1725
- void 0 === v[a] ? (h.L = c - 1, v[a] = h) : (Ib(v, a, t), v[a].m[c - 1] = h);
1726
- V([], k, function(x) {
1727
- x = Xb(t, [x[0], null].concat(x.slice(1)), null, g, l);
1746
+ var v = n.h.constructor;
1747
+ void 0 === v[a] ? (k.L = c - 1, v[a] = k) : (Nb(v, a, t), v[a].m[c - 1] = k);
1748
+ V([], l, function(x) {
1749
+ x = bc(t, [x[0], null].concat(x.slice(1)), null, g, m);
1728
1750
  void 0 === v[a].m ? (x.L = c - 1, v[a] = x) : v[a].m[c - 1] = x;
1729
- if (m.h.T) {
1730
- for (const f of m.h.T) {
1751
+ if (n.h.T) {
1752
+ for (const f of n.h.T) {
1731
1753
  f.constructor.hasOwnProperty(a) || (f.constructor[a] = x);
1732
1754
  }
1733
1755
  }
@@ -1735,102 +1757,102 @@ var Hc = {_embind_create_inheriting_constructor:function(b, a, c) {
1735
1757
  });
1736
1758
  return [];
1737
1759
  });
1738
- }, _embind_register_class_class_property:function(b, a, c, d, e, g, l, k) {
1760
+ }, _embind_register_class_class_property:function(b, a, c, d, e, g, m, l) {
1739
1761
  a = U(a);
1740
1762
  g = Z(e, g);
1741
- V([], [b], function(m) {
1742
- m = m[0];
1743
- var h = `${m.name}.${a}`, t = {get() {
1744
- Wb(`Cannot access ${h} due to unbound types`, [c]);
1763
+ V([], [b], function(n) {
1764
+ n = n[0];
1765
+ var k = `${n.name}.${a}`, t = {get() {
1766
+ ac(`Cannot access ${k} due to unbound types`, [c]);
1745
1767
  }, enumerable:!0, configurable:!0};
1746
- t.set = k ? () => {
1747
- Wb(`Cannot access ${h} due to unbound types`, [c]);
1768
+ t.set = l ? () => {
1769
+ ac(`Cannot access ${k} due to unbound types`, [c]);
1748
1770
  } : () => {
1749
- Q(`${h} is a read-only property`);
1771
+ R(`${k} is a read-only property`);
1750
1772
  };
1751
- Object.defineProperty(m.h.constructor, a, t);
1773
+ Object.defineProperty(n.h.constructor, a, t);
1752
1774
  V([], [c], function(v) {
1753
1775
  v = v[0];
1754
1776
  var x = {get() {
1755
1777
  return v.fromWireType(g(d));
1756
1778
  }, enumerable:!0};
1757
- k && (k = Z(l, k), x.set = f => {
1779
+ l && (l = Z(m, l), x.set = f => {
1758
1780
  var r = [];
1759
- k(d, v.toWireType(r, f));
1760
- zb(r);
1781
+ l(d, v.toWireType(r, f));
1782
+ Eb(r);
1761
1783
  });
1762
- Object.defineProperty(m.h.constructor, a, x);
1784
+ Object.defineProperty(n.h.constructor, a, x);
1763
1785
  return [];
1764
1786
  });
1765
1787
  return [];
1766
1788
  });
1767
1789
  }, _embind_register_class_constructor:function(b, a, c, d, e, g) {
1768
- var l = Yb(a, c);
1790
+ var m = cc(a, c);
1769
1791
  e = Z(d, e);
1770
- V([], [b], function(k) {
1771
- k = k[0];
1772
- var m = `constructor ${k.name}`;
1773
- void 0 === k.h.I && (k.h.I = []);
1774
- if (void 0 !== k.h.I[a - 1]) {
1775
- throw new Wa(`Cannot register multiple constructors with identical number of parameters (${a - 1}) for class '${k.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
1792
+ V([], [b], function(l) {
1793
+ l = l[0];
1794
+ var n = `constructor ${l.name}`;
1795
+ void 0 === l.h.I && (l.h.I = []);
1796
+ if (void 0 !== l.h.I[a - 1]) {
1797
+ throw new $a(`Cannot register multiple constructors with identical number of parameters (${a - 1}) for class '${l.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
1776
1798
  }
1777
- k.h.I[a - 1] = () => {
1778
- Wb(`Cannot construct ${k.name} due to unbound types`, l);
1799
+ l.h.I[a - 1] = () => {
1800
+ ac(`Cannot construct ${l.name} due to unbound types`, m);
1779
1801
  };
1780
- V([], l, function(h) {
1781
- h.splice(1, 0, null);
1782
- k.h.I[a - 1] = Xb(m, h, null, e, g);
1802
+ V([], m, function(k) {
1803
+ k.splice(1, 0, null);
1804
+ l.h.I[a - 1] = bc(n, k, null, e, g);
1783
1805
  return [];
1784
1806
  });
1785
1807
  return [];
1786
1808
  });
1787
- }, _embind_register_class_function:function(b, a, c, d, e, g, l, k) {
1788
- var m = Yb(c, d);
1809
+ }, _embind_register_class_function:function(b, a, c, d, e, g, m, l) {
1810
+ var n = cc(c, d);
1789
1811
  a = U(a);
1790
1812
  g = Z(e, g);
1791
- V([], [b], function(h) {
1813
+ V([], [b], function(k) {
1792
1814
  function t() {
1793
- Wb(`Cannot call ${v} due to unbound types`, m);
1815
+ ac(`Cannot call ${v} due to unbound types`, n);
1794
1816
  }
1795
- h = h[0];
1796
- var v = `${h.name}.${a}`;
1817
+ k = k[0];
1818
+ var v = `${k.name}.${a}`;
1797
1819
  a.startsWith("@@") && (a = Symbol[a.substring(2)]);
1798
- k && h.h.ya.push(a);
1799
- var x = h.h.B, f = x[a];
1800
- void 0 === f || void 0 === f.m && f.className !== h.name && f.L === c - 2 ? (t.L = c - 2, t.className = h.name, x[a] = t) : (Ib(x, a, v), x[a].m[c - 2] = t);
1801
- V([], m, function(r) {
1802
- r = Xb(v, r, h, g, l);
1820
+ l && k.h.ya.push(a);
1821
+ var x = k.h.B, f = x[a];
1822
+ void 0 === f || void 0 === f.m && f.className !== k.name && f.L === c - 2 ? (t.L = c - 2, t.className = k.name, x[a] = t) : (Nb(x, a, v), x[a].m[c - 2] = t);
1823
+ V([], n, function(r) {
1824
+ r = bc(v, r, k, g, m);
1803
1825
  void 0 === x[a].m ? (r.L = c - 2, x[a] = r) : x[a].m[c - 2] = r;
1804
1826
  return [];
1805
1827
  });
1806
1828
  return [];
1807
1829
  });
1808
- }, _embind_register_class_property:function(b, a, c, d, e, g, l, k, m, h) {
1830
+ }, _embind_register_class_property:function(b, a, c, d, e, g, m, l, n, k) {
1809
1831
  a = U(a);
1810
1832
  e = Z(d, e);
1811
1833
  V([], [b], function(t) {
1812
1834
  t = t[0];
1813
1835
  var v = `${t.name}.${a}`, x = {get() {
1814
- Wb(`Cannot access ${v} due to unbound types`, [c, l]);
1836
+ ac(`Cannot access ${v} due to unbound types`, [c, m]);
1815
1837
  }, enumerable:!0, configurable:!0};
1816
- x.set = m ? () => {
1817
- Wb(`Cannot access ${v} due to unbound types`, [c, l]);
1838
+ x.set = n ? () => {
1839
+ ac(`Cannot access ${v} due to unbound types`, [c, m]);
1818
1840
  } : () => {
1819
- Q(v + " is a read-only property");
1841
+ R(v + " is a read-only property");
1820
1842
  };
1821
1843
  Object.defineProperty(t.h.B, a, x);
1822
- V([], m ? [c, l] : [c], function(f) {
1844
+ V([], n ? [c, m] : [c], function(f) {
1823
1845
  var r = f[0], q = {get() {
1824
- var D = Zb(this, t, v + " getter");
1846
+ var D = dc(this, t, v + " getter");
1825
1847
  return r.fromWireType(e(g, D));
1826
1848
  }, enumerable:!0};
1827
- if (m) {
1828
- m = Z(k, m);
1849
+ if (n) {
1850
+ n = Z(l, n);
1829
1851
  var G = f[1];
1830
1852
  q.set = function(D) {
1831
- var u = Zb(this, t, v + " setter"), I = [];
1832
- m(h, u, G.toWireType(I, D));
1833
- zb(I);
1853
+ var u = dc(this, t, v + " setter"), I = [];
1854
+ n(k, u, G.toWireType(I, D));
1855
+ Eb(I);
1834
1856
  };
1835
1857
  }
1836
1858
  Object.defineProperty(t.h.B, a, q);
@@ -1840,240 +1862,240 @@ var Hc = {_embind_create_inheriting_constructor:function(b, a, c) {
1840
1862
  });
1841
1863
  }, _embind_register_emval:function(b, a) {
1842
1864
  a = U(a);
1843
- Db(b, {name:a, fromWireType:function(c) {
1844
- var d = R(c);
1845
- $b(c);
1865
+ Ib(b, {name:a, fromWireType:function(c) {
1866
+ var d = S(c);
1867
+ ec(c);
1846
1868
  return d;
1847
1869
  }, toWireType:function(c, d) {
1848
- return S(d);
1849
- }, argPackAdvance:8, readValueFromPointer:Ab, v:null,});
1870
+ return ab(d);
1871
+ }, argPackAdvance:8, readValueFromPointer:Fb, v:null,});
1850
1872
  }, _embind_register_enum:function(b, a, c, d) {
1851
1873
  function e() {
1852
1874
  }
1853
- c = Eb(c);
1875
+ c = Jb(c);
1854
1876
  a = U(a);
1855
1877
  e.values = {};
1856
- Db(b, {name:a, constructor:e, fromWireType:function(g) {
1878
+ Ib(b, {name:a, constructor:e, fromWireType:function(g) {
1857
1879
  return this.constructor.values[g];
1858
- }, toWireType:function(g, l) {
1859
- return l.value;
1860
- }, argPackAdvance:8, readValueFromPointer:ac(a, c, d), v:null,});
1861
- Jb(a, e);
1880
+ }, toWireType:function(g, m) {
1881
+ return m.value;
1882
+ }, argPackAdvance:8, readValueFromPointer:fc(a, c, d), v:null,});
1883
+ Ob(a, e);
1862
1884
  }, _embind_register_enum_value:function(b, a, c) {
1863
- var d = ib(b, "enum");
1885
+ var d = nb(b, "enum");
1864
1886
  a = U(a);
1865
1887
  b = d.constructor;
1866
- d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:Ua(`${d.name}_${a}`, function() {
1888
+ d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:Ya(`${d.name}_${a}`, function() {
1867
1889
  })},});
1868
1890
  b.values[c] = d;
1869
1891
  b[a] = d;
1870
1892
  }, _embind_register_float:function(b, a, c) {
1871
- c = Eb(c);
1893
+ c = Jb(c);
1872
1894
  a = U(a);
1873
- Db(b, {name:a, fromWireType:function(d) {
1895
+ Ib(b, {name:a, fromWireType:function(d) {
1874
1896
  return d;
1875
1897
  }, toWireType:function(d, e) {
1876
1898
  return e;
1877
- }, argPackAdvance:8, readValueFromPointer:bc(a, c), v:null,});
1899
+ }, argPackAdvance:8, readValueFromPointer:gc(a, c), v:null,});
1878
1900
  }, _embind_register_function:function(b, a, c, d, e, g) {
1879
- var l = Yb(a, c);
1901
+ var m = cc(a, c);
1880
1902
  b = U(b);
1881
1903
  e = Z(d, e);
1882
- Jb(b, function() {
1883
- Wb(`Cannot call ${b} due to unbound types`, l);
1904
+ Ob(b, function() {
1905
+ ac(`Cannot call ${b} due to unbound types`, m);
1884
1906
  }, a - 1);
1885
- V([], l, function(k) {
1886
- Rb(b, Xb(b, [k[0], null].concat(k.slice(1)), null, e, g), a - 1);
1907
+ V([], m, function(l) {
1908
+ Wb(b, bc(b, [l[0], null].concat(l.slice(1)), null, e, g), a - 1);
1887
1909
  return [];
1888
1910
  });
1889
1911
  }, _embind_register_integer:function(b, a, c, d, e) {
1890
1912
  a = U(a);
1891
1913
  -1 === e && (e = 4294967295);
1892
- e = Eb(c);
1893
- var g = k => k;
1914
+ e = Jb(c);
1915
+ var g = l => l;
1894
1916
  if (0 === d) {
1895
- var l = 32 - 8 * c;
1896
- g = k => k << l >>> l;
1917
+ var m = 32 - 8 * c;
1918
+ g = l => l << m >>> m;
1897
1919
  }
1898
- c = a.includes("unsigned") ? function(k, m) {
1899
- return m >>> 0;
1900
- } : function(k, m) {
1901
- return m;
1920
+ c = a.includes("unsigned") ? function(l, n) {
1921
+ return n >>> 0;
1922
+ } : function(l, n) {
1923
+ return n;
1902
1924
  };
1903
- Db(b, {name:a, fromWireType:g, toWireType:c, argPackAdvance:8, readValueFromPointer:cc(a, e, 0 !== d), v:null,});
1925
+ Ib(b, {name:a, fromWireType:g, toWireType:c, argPackAdvance:8, readValueFromPointer:hc(a, e, 0 !== d), v:null,});
1904
1926
  }, _embind_register_memory_view:function(b, a, c) {
1905
1927
  function d(g) {
1906
1928
  g >>= 2;
1907
- var l = M;
1908
- return new e(l.buffer, l[g + 1], l[g]);
1929
+ var m = P;
1930
+ return new e(m.buffer, m[g + 1], m[g]);
1909
1931
  }
1910
1932
  var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][a];
1911
1933
  c = U(c);
1912
- Db(b, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {ab:!0,});
1934
+ Ib(b, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {ab:!0,});
1913
1935
  }, _embind_register_std_string:function(b, a) {
1914
1936
  a = U(a);
1915
1937
  var c = "std::string" === a;
1916
- Db(b, {name:a, fromWireType:function(d) {
1917
- var e = M[d >> 2], g = d + 4;
1938
+ Ib(b, {name:a, fromWireType:function(d) {
1939
+ var e = P[d >> 2], g = d + 4;
1918
1940
  if (c) {
1919
- for (var l = g, k = 0; k <= e; ++k) {
1920
- var m = g + k;
1921
- if (k == e || 0 == J[m]) {
1922
- l = l ? gc(J, l, m - l) : "";
1923
- if (void 0 === h) {
1924
- var h = l;
1941
+ for (var m = g, l = 0; l <= e; ++l) {
1942
+ var n = g + l;
1943
+ if (l == e || 0 == L[n]) {
1944
+ m = m ? lc(L, m, n - m) : "";
1945
+ if (void 0 === k) {
1946
+ var k = m;
1925
1947
  } else {
1926
- h += String.fromCharCode(0), h += l;
1948
+ k += String.fromCharCode(0), k += m;
1927
1949
  }
1928
- l = m + 1;
1950
+ m = n + 1;
1929
1951
  }
1930
1952
  }
1931
1953
  } else {
1932
- h = Array(e);
1933
- for (k = 0; k < e; ++k) {
1934
- h[k] = String.fromCharCode(J[g + k]);
1954
+ k = Array(e);
1955
+ for (l = 0; l < e; ++l) {
1956
+ k[l] = String.fromCharCode(L[g + l]);
1935
1957
  }
1936
- h = h.join("");
1958
+ k = k.join("");
1937
1959
  }
1938
- hb(d);
1939
- return h;
1960
+ mb(d);
1961
+ return k;
1940
1962
  }, toWireType:function(d, e) {
1941
1963
  e instanceof ArrayBuffer && (e = new Uint8Array(e));
1942
1964
  var g = "string" == typeof e;
1943
- g || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || Q("Cannot pass non-string to std::string");
1944
- var l = c && g ? ec(e) : e.length;
1945
- var k = Gc(4 + l + 1), m = k + 4;
1946
- M[k >> 2] = l;
1965
+ g || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || R("Cannot pass non-string to std::string");
1966
+ var m = c && g ? jc(e) : e.length;
1967
+ var l = Lc(4 + m + 1), n = l + 4;
1968
+ P[l >> 2] = m;
1947
1969
  if (c && g) {
1948
- dc(e, J, m, l + 1);
1970
+ ic(e, L, n, m + 1);
1949
1971
  } else {
1950
1972
  if (g) {
1951
- for (g = 0; g < l; ++g) {
1952
- var h = e.charCodeAt(g);
1953
- 255 < h && (hb(m), Q("String has UTF-16 code units that do not fit in 8 bits"));
1954
- J[m + g] = h;
1973
+ for (g = 0; g < m; ++g) {
1974
+ var k = e.charCodeAt(g);
1975
+ 255 < k && (mb(n), R("String has UTF-16 code units that do not fit in 8 bits"));
1976
+ L[n + g] = k;
1955
1977
  }
1956
1978
  } else {
1957
- for (g = 0; g < l; ++g) {
1958
- J[m + g] = e[g];
1979
+ for (g = 0; g < m; ++g) {
1980
+ L[n + g] = e[g];
1959
1981
  }
1960
1982
  }
1961
1983
  }
1962
- null !== d && d.push(hb, k);
1963
- return k;
1964
- }, argPackAdvance:8, readValueFromPointer:Ab, v:function(d) {
1965
- hb(d);
1984
+ null !== d && d.push(mb, l);
1985
+ return l;
1986
+ }, argPackAdvance:8, readValueFromPointer:Fb, v:function(d) {
1987
+ mb(d);
1966
1988
  },});
1967
1989
  }, _embind_register_std_wstring:function(b, a, c) {
1968
1990
  c = U(c);
1969
1991
  if (2 === a) {
1970
- var d = ic;
1971
- var e = jc;
1972
- var g = lc;
1973
- var l = () => Ca;
1974
- var k = 1;
1992
+ var d = nc;
1993
+ var e = pc;
1994
+ var g = qc;
1995
+ var m = () => Da;
1996
+ var l = 1;
1975
1997
  } else {
1976
- 4 === a && (d = mc, e = nc, g = oc, l = () => M, k = 2);
1998
+ 4 === a && (d = rc, e = sc, g = tc, m = () => P, l = 2);
1977
1999
  }
1978
- Db(b, {name:c, fromWireType:function(m) {
1979
- for (var h = M[m >> 2], t = l(), v, x = m + 4, f = 0; f <= h; ++f) {
1980
- var r = m + 4 + f * a;
1981
- if (f == h || 0 == t[r >> k]) {
2000
+ Ib(b, {name:c, fromWireType:function(n) {
2001
+ for (var k = P[n >> 2], t = m(), v, x = n + 4, f = 0; f <= k; ++f) {
2002
+ var r = n + 4 + f * a;
2003
+ if (f == k || 0 == t[r >> l]) {
1982
2004
  x = d(x, r - x), void 0 === v ? v = x : (v += String.fromCharCode(0), v += x), x = r + a;
1983
2005
  }
1984
2006
  }
1985
- hb(m);
2007
+ mb(n);
1986
2008
  return v;
1987
- }, toWireType:function(m, h) {
1988
- "string" != typeof h && Q(`Cannot pass non-string to C++ string type ${c}`);
1989
- var t = g(h), v = Gc(4 + t + a);
1990
- M[v >> 2] = t >> k;
1991
- e(h, v + 4, t + a);
1992
- null !== m && m.push(hb, v);
2009
+ }, toWireType:function(n, k) {
2010
+ "string" != typeof k && R(`Cannot pass non-string to C++ string type ${c}`);
2011
+ var t = g(k), v = Lc(4 + t + a);
2012
+ P[v >> 2] = t >> l;
2013
+ e(k, v + 4, t + a);
2014
+ null !== n && n.push(mb, v);
1993
2015
  return v;
1994
- }, argPackAdvance:8, readValueFromPointer:Ab, v:function(m) {
1995
- hb(m);
2016
+ }, argPackAdvance:8, readValueFromPointer:Fb, v:function(n) {
2017
+ mb(n);
1996
2018
  },});
1997
2019
  }, _embind_register_value_object:function(b, a, c, d, e, g) {
1998
- yb[b] = {name:U(a), fa:Z(c, d), H:Z(e, g), sa:[],};
1999
- }, _embind_register_value_object_field:function(b, a, c, d, e, g, l, k, m, h) {
2000
- yb[b].sa.push({Sa:U(a), Ya:c, Wa:Z(d, e), Xa:g, lb:l, kb:Z(k, m), mb:h,});
2020
+ Db[b] = {name:U(a), fa:Z(c, d), H:Z(e, g), sa:[],};
2021
+ }, _embind_register_value_object_field:function(b, a, c, d, e, g, m, l, n, k) {
2022
+ Db[b].sa.push({Sa:U(a), Ya:c, Wa:Z(d, e), Xa:g, lb:m, kb:Z(l, n), mb:k,});
2001
2023
  }, _embind_register_void:function(b, a) {
2002
2024
  a = U(a);
2003
- Db(b, {cb:!0, name:a, argPackAdvance:0, fromWireType:function() {
2025
+ Ib(b, {cb:!0, name:a, argPackAdvance:0, fromWireType:function() {
2004
2026
  }, toWireType:function() {
2005
2027
  },});
2006
2028
  }, _emval_as:function(b, a, c) {
2007
- b = R(b);
2008
- a = ib(a, "emval::as");
2009
- var d = [], e = S(d);
2010
- M[c >> 2] = e;
2029
+ b = S(b);
2030
+ a = nb(a, "emval::as");
2031
+ var d = [], e = ab(d);
2032
+ P[c >> 2] = e;
2011
2033
  return a.toWireType(d, b);
2012
2034
  }, _emval_call_method:function(b, a, c, d, e) {
2013
- b = rc[b];
2014
- a = R(a);
2015
- c = qc(c);
2035
+ b = wc[b];
2036
+ a = S(a);
2037
+ c = vc(c);
2016
2038
  var g = [];
2017
- M[d >> 2] = S(g);
2039
+ P[d >> 2] = ab(g);
2018
2040
  return b(a, c, g, e);
2019
2041
  }, _emval_call_void_method:function(b, a, c, d) {
2020
- b = rc[b];
2021
- a = R(a);
2022
- c = qc(c);
2042
+ b = wc[b];
2043
+ a = S(a);
2044
+ c = vc(c);
2023
2045
  b(a, c, null, d);
2024
- }, _emval_decref:$b, _emval_get_method_caller:function(b, a) {
2025
- var c = tc(b, a), d = c[0];
2026
- a = d.name + "_$" + c.slice(1).map(function(l) {
2027
- return l.name;
2046
+ }, _emval_decref:ec, _emval_get_method_caller:function(b, a) {
2047
+ var c = yc(b, a), d = c[0];
2048
+ a = d.name + "_$" + c.slice(1).map(function(m) {
2049
+ return m.name;
2028
2050
  }).join("_") + "$";
2029
- var e = uc[a];
2051
+ var e = zc[a];
2030
2052
  if (void 0 !== e) {
2031
2053
  return e;
2032
2054
  }
2033
2055
  var g = Array(b - 1);
2034
- e = sc((l, k, m, h) => {
2056
+ e = xc((m, l, n, k) => {
2035
2057
  for (var t = 0, v = 0; v < b - 1; ++v) {
2036
- g[v] = c[v + 1].readValueFromPointer(h + t), t += c[v + 1].argPackAdvance;
2058
+ g[v] = c[v + 1].readValueFromPointer(k + t), t += c[v + 1].argPackAdvance;
2037
2059
  }
2038
- l = l[k].apply(l, g);
2060
+ m = m[l].apply(m, g);
2039
2061
  for (v = 0; v < b - 1; ++v) {
2040
2062
  c[v + 1].Na && c[v + 1].Na(g[v]);
2041
2063
  }
2042
2064
  if (!d.cb) {
2043
- return d.toWireType(m, l);
2065
+ return d.toWireType(n, m);
2044
2066
  }
2045
2067
  });
2046
- return uc[a] = e;
2068
+ return zc[a] = e;
2047
2069
  }, _emval_get_module_property:function(b) {
2048
- b = qc(b);
2049
- return S(p[b]);
2070
+ b = vc(b);
2071
+ return ab(h[b]);
2050
2072
  }, _emval_get_property:function(b, a) {
2051
- b = R(b);
2052
- a = R(a);
2053
- return S(b[a]);
2073
+ b = S(b);
2074
+ a = S(a);
2075
+ return ab(b[a]);
2054
2076
  }, _emval_incref:function(b) {
2055
- 4 < b && (P.get(b).Aa += 1);
2077
+ 4 < b && (Q.get(b).Aa += 1);
2056
2078
  }, _emval_new_cstring:function(b) {
2057
- return S(qc(b));
2079
+ return ab(vc(b));
2058
2080
  }, _emval_new_object:function() {
2059
- return S({});
2081
+ return ab({});
2060
2082
  }, _emval_run_destructors:function(b) {
2061
- var a = R(b);
2062
- zb(a);
2063
- $b(b);
2083
+ var a = S(b);
2084
+ Eb(a);
2085
+ ec(b);
2064
2086
  }, _emval_set_property:function(b, a, c) {
2065
- b = R(b);
2066
- a = R(a);
2067
- c = R(c);
2087
+ b = S(b);
2088
+ a = S(a);
2089
+ c = S(c);
2068
2090
  b[a] = c;
2069
2091
  }, _emval_take_value:function(b, a) {
2070
- b = ib(b, "_emval_take_value");
2092
+ b = nb(b, "_emval_take_value");
2071
2093
  b = b.readValueFromPointer(a);
2072
- return S(b);
2094
+ return ab(b);
2073
2095
  }, abort:() => {
2074
- xa("");
2075
- }, emscripten_memcpy_big:(b, a, c) => J.copyWithin(b, a, a + c), emscripten_resize_heap:b => {
2076
- var a = J.length;
2096
+ ya("");
2097
+ }, emscripten_memcpy_big:(b, a, c) => L.copyWithin(b, a, a + c), emscripten_resize_heap:b => {
2098
+ var a = L.length;
2077
2099
  b >>>= 0;
2078
2100
  if (2147483648 < b) {
2079
2101
  return !1;
@@ -2084,13 +2106,13 @@ var Hc = {_embind_create_inheriting_constructor:function(b, a, c) {
2084
2106
  var e = Math;
2085
2107
  d = Math.max(b, d);
2086
2108
  a: {
2087
- e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - ya.buffer.byteLength + 65535 >>> 16;
2109
+ e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - za.buffer.byteLength + 65535 >>> 16;
2088
2110
  try {
2089
- ya.grow(e);
2090
- Fa();
2111
+ za.grow(e);
2112
+ Ga();
2091
2113
  var g = 1;
2092
2114
  break a;
2093
- } catch (l) {
2115
+ } catch (m) {
2094
2116
  }
2095
2117
  g = void 0;
2096
2118
  }
@@ -2101,86 +2123,121 @@ var Hc = {_embind_create_inheriting_constructor:function(b, a, c) {
2101
2123
  return !1;
2102
2124
  }, environ_get:(b, a) => {
2103
2125
  var c = 0;
2104
- xc().forEach(function(d, e) {
2126
+ Cc().forEach(function(d, e) {
2105
2127
  var g = a + c;
2106
- e = M[b + 4 * e >> 2] = g;
2128
+ e = P[b + 4 * e >> 2] = g;
2107
2129
  for (g = 0; g < d.length; ++g) {
2108
- Aa[e++ >> 0] = d.charCodeAt(g);
2130
+ Ba[e++ >> 0] = d.charCodeAt(g);
2109
2131
  }
2110
- Aa[e >> 0] = 0;
2132
+ Ba[e >> 0] = 0;
2111
2133
  c += d.length + 1;
2112
2134
  });
2113
2135
  return 0;
2114
2136
  }, environ_sizes_get:(b, a) => {
2115
- var c = xc();
2116
- M[b >> 2] = c.length;
2137
+ var c = Cc();
2138
+ P[b >> 2] = c.length;
2117
2139
  var d = 0;
2118
2140
  c.forEach(function(e) {
2119
2141
  d += e.length + 1;
2120
2142
  });
2121
- M[a >> 2] = d;
2143
+ P[a >> 2] = d;
2122
2144
  return 0;
2123
2145
  }, fd_close:() => 52, fd_seek:function() {
2124
2146
  return 70;
2125
2147
  }, fd_write:(b, a, c, d) => {
2126
2148
  for (var e = 0, g = 0; g < c; g++) {
2127
- var l = M[a >> 2], k = M[a + 4 >> 2];
2149
+ var m = P[a >> 2], l = P[a + 4 >> 2];
2128
2150
  a += 8;
2129
- for (var m = 0; m < k; m++) {
2130
- var h = J[l + m], t = yc[b];
2131
- 0 === h || 10 === h ? ((1 === b ? va : wa)(gc(t, 0)), t.length = 0) : t.push(h);
2151
+ for (var n = 0; n < l; n++) {
2152
+ var k = L[m + n], t = Dc[b];
2153
+ 0 === k || 10 === k ? ((1 === b ? ta : ua)(lc(t, 0)), t.length = 0) : t.push(k);
2132
2154
  }
2133
- e += k;
2155
+ e += l;
2134
2156
  }
2135
- M[d >> 2] = e;
2157
+ P[d >> 2] = e;
2136
2158
  return 0;
2137
- }, strftime_l:(b, a, c, d) => Dc(b, a, c, d)};
2159
+ }, strftime_l:(b, a, c, d) => Ic(b, a, c, d)};
2138
2160
  (function() {
2139
- var b = {env:Hc, wasi_snapshot_preview1:Hc,};
2140
- Ka++;
2141
- Sa(b, function(a) {
2142
- y = a.instance.exports;
2143
- ya = y.memory;
2144
- Fa();
2145
- Ga = y.__indirect_function_table;
2146
- Ia.unshift(y.__wasm_call_ctors);
2147
- Ka--;
2148
- 0 == Ka && (null !== La && (clearInterval(La), La = null), Ma && (a = Ma, Ma = null, a()));
2161
+ function b(c) {
2162
+ J = c = c.exports;
2163
+ za = J.memory;
2164
+ Ga();
2165
+ Ha = J.__indirect_function_table;
2166
+ Ja.unshift(J.__wasm_call_ctors);
2167
+ Ma--;
2168
+ h.monitorRunDependencies && h.monitorRunDependencies(Ma);
2169
+ if (0 == Ma && (null !== Na && (clearInterval(Na), Na = null), Oa)) {
2170
+ var d = Oa;
2171
+ Oa = null;
2172
+ d();
2173
+ }
2174
+ return c;
2175
+ }
2176
+ var a = {env:Mc, wasi_snapshot_preview1:Mc,};
2177
+ Ma++;
2178
+ h.monitorRunDependencies && h.monitorRunDependencies(Ma);
2179
+ if (h.instantiateWasm) {
2180
+ try {
2181
+ return h.instantiateWasm(a, b);
2182
+ } catch (c) {
2183
+ ua("Module.instantiateWasm callback failed with error: " + c), ba(c);
2184
+ }
2185
+ }
2186
+ Va(a, function(c) {
2187
+ b(c.instance);
2149
2188
  }).catch(ba);
2150
2189
  return {};
2151
2190
  })();
2152
- var hb = b => (hb = y.free)(b), Gc = b => (Gc = y.malloc)(b), gb = b => (gb = y.__getTypeName)(b);
2153
- p.__embind_initialize_bindings = () => (p.__embind_initialize_bindings = y._embind_initialize_bindings)();
2154
- p.dynCall_jiji = (b, a, c, d, e) => (p.dynCall_jiji = y.dynCall_jiji)(b, a, c, d, e);
2155
- p.dynCall_viijii = (b, a, c, d, e, g, l) => (p.dynCall_viijii = y.dynCall_viijii)(b, a, c, d, e, g, l);
2156
- p.dynCall_iiiiij = (b, a, c, d, e, g, l) => (p.dynCall_iiiiij = y.dynCall_iiiiij)(b, a, c, d, e, g, l);
2157
- p.dynCall_iiiiijj = (b, a, c, d, e, g, l, k, m) => (p.dynCall_iiiiijj = y.dynCall_iiiiijj)(b, a, c, d, e, g, l, k, m);
2158
- p.dynCall_iiiiiijj = (b, a, c, d, e, g, l, k, m, h) => (p.dynCall_iiiiiijj = y.dynCall_iiiiiijj)(b, a, c, d, e, g, l, k, m, h);
2159
- var Ic;
2160
- Ma = function Jc() {
2161
- Ic || Kc();
2162
- Ic || (Ma = Jc);
2191
+ var mb = b => (mb = J.free)(b), Lc = b => (Lc = J.malloc)(b), lb = b => (lb = J.__getTypeName)(b);
2192
+ h.__embind_initialize_bindings = () => (h.__embind_initialize_bindings = J._embind_initialize_bindings)();
2193
+ h.dynCall_jiji = (b, a, c, d, e) => (h.dynCall_jiji = J.dynCall_jiji)(b, a, c, d, e);
2194
+ h.dynCall_viijii = (b, a, c, d, e, g, m) => (h.dynCall_viijii = J.dynCall_viijii)(b, a, c, d, e, g, m);
2195
+ h.dynCall_iiiiij = (b, a, c, d, e, g, m) => (h.dynCall_iiiiij = J.dynCall_iiiiij)(b, a, c, d, e, g, m);
2196
+ h.dynCall_iiiiijj = (b, a, c, d, e, g, m, l, n) => (h.dynCall_iiiiijj = J.dynCall_iiiiijj)(b, a, c, d, e, g, m, l, n);
2197
+ h.dynCall_iiiiiijj = (b, a, c, d, e, g, m, l, n, k) => (h.dynCall_iiiiiijj = J.dynCall_iiiiiijj)(b, a, c, d, e, g, m, l, n, k);
2198
+ var Nc;
2199
+ Oa = function Oc() {
2200
+ Nc || Pc();
2201
+ Nc || (Oa = Oc);
2163
2202
  };
2164
- function Kc() {
2165
- if (!(0 < Ka)) {
2166
- for (; 0 < Ha.length;) {
2167
- Ha.shift()(p);
2168
- }
2169
- if (!(0 < Ka || Ic || (Ic = !0, p.calledRun = !0, za))) {
2170
- for (; 0 < Ia.length;) {
2171
- Ia.shift()(p);
2203
+ function Pc() {
2204
+ function b() {
2205
+ if (!Nc && (Nc = !0, h.calledRun = !0, !Aa)) {
2206
+ Wa(Ja);
2207
+ aa(h);
2208
+ if (h.onRuntimeInitialized) {
2209
+ h.onRuntimeInitialized();
2172
2210
  }
2173
- aa(p);
2174
- if (p.onRuntimeInitialized) {
2175
- p.onRuntimeInitialized();
2211
+ if (h.postRun) {
2212
+ for ("function" == typeof h.postRun && (h.postRun = [h.postRun]); h.postRun.length;) {
2213
+ var a = h.postRun.shift();
2214
+ Ka.unshift(a);
2215
+ }
2176
2216
  }
2177
- for (; 0 < Ja.length;) {
2178
- Ja.shift()(p);
2217
+ Wa(Ka);
2218
+ }
2219
+ }
2220
+ if (!(0 < Ma)) {
2221
+ if (h.preRun) {
2222
+ for ("function" == typeof h.preRun && (h.preRun = [h.preRun]); h.preRun.length;) {
2223
+ La();
2179
2224
  }
2180
2225
  }
2226
+ Wa(Ia);
2227
+ 0 < Ma || (h.setStatus ? (h.setStatus("Running..."), setTimeout(function() {
2228
+ setTimeout(function() {
2229
+ h.setStatus("");
2230
+ }, 1);
2231
+ b();
2232
+ }, 1)) : b());
2233
+ }
2234
+ }
2235
+ if (h.preInit) {
2236
+ for ("function" == typeof h.preInit && (h.preInit = [h.preInit]); 0 < h.preInit.length;) {
2237
+ h.preInit.pop()();
2181
2238
  }
2182
2239
  }
2183
- Kc();
2240
+ Pc();
2184
2241
 
2185
2242
 
2186
2243
 
@@ -2195,7 +2252,7 @@ Kc();
2195
2252
  /* 2 */
2196
2253
  /***/ ((module) => {
2197
2254
 
2198
- module.exports = JSON.parse('{"name":"@rive-app/canvas-lite","version":"2.11.0","description":"A lite version of 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.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
2255
+ module.exports = JSON.parse('{"name":"@rive-app/canvas-lite","version":"2.11.1","description":"A lite version of 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.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
2199
2256
 
2200
2257
  /***/ }),
2201
2258
  /* 3 */