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