@rive-app/webgl2-advanced 2.26.4 → 2.26.5
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/package.json +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +129 -0
- package/webgl2_advanced.mjs +351 -349
package/webgl2_advanced.mjs
CHANGED
|
@@ -5,9 +5,9 @@ var Rive = (() => {
|
|
|
5
5
|
return (
|
|
6
6
|
function(moduleArg = {}) {
|
|
7
7
|
|
|
8
|
-
var k = moduleArg,
|
|
8
|
+
var k = moduleArg, aa, ca;
|
|
9
9
|
k.ready = new Promise((a, b) => {
|
|
10
|
-
|
|
10
|
+
aa = a;
|
|
11
11
|
ca = b;
|
|
12
12
|
});
|
|
13
13
|
function da() {
|
|
@@ -204,7 +204,7 @@ k.onRuntimeInitialized = function() {
|
|
|
204
204
|
}
|
|
205
205
|
u = Math.min(u, q);
|
|
206
206
|
u = Math.min(y, q);
|
|
207
|
-
A.sort((
|
|
207
|
+
A.sort((ba, sb) => sb.Ia - ba.Ia);
|
|
208
208
|
z = new k.DynamicRectanizer(q);
|
|
209
209
|
for (I = 0; I < A.length;) {
|
|
210
210
|
z.reset(u, y);
|
|
@@ -229,13 +229,13 @@ k.onRuntimeInitialized = function() {
|
|
|
229
229
|
for (L = I; L < G; ++L) {
|
|
230
230
|
E = A[L];
|
|
231
231
|
d.saveClipRect(E.ra, E.sa, E.ra + E.fa, E.sa + E.ea);
|
|
232
|
-
let
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
d.transform(
|
|
232
|
+
let ba = new k.Mat2D();
|
|
233
|
+
ba.xx = E.fa / E.F.width;
|
|
234
|
+
ba.yy = E.ea / E.F.height;
|
|
235
|
+
ba.xy = ba.yx = 0;
|
|
236
|
+
ba.tx = E.ra;
|
|
237
|
+
ba.ty = E.sa;
|
|
238
|
+
d.transform(ba);
|
|
239
239
|
for (const sb of E.S) {
|
|
240
240
|
sb();
|
|
241
241
|
}
|
|
@@ -421,7 +421,7 @@ function Oa(a, b) {
|
|
|
421
421
|
return Na(c, a, b);
|
|
422
422
|
}));
|
|
423
423
|
}
|
|
424
|
-
var Pa, Qa, Ua = {
|
|
424
|
+
var Pa, Qa, Ua = {509966:(a, b, c, d, e) => {
|
|
425
425
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
426
426
|
return 0;
|
|
427
427
|
}
|
|
@@ -484,9 +484,9 @@ var Pa, Qa, Ua = {507918:(a, b, c, d, e) => {
|
|
|
484
484
|
}
|
|
485
485
|
window.h.Da += 1;
|
|
486
486
|
return 1;
|
|
487
|
-
},
|
|
487
|
+
}, 512144:() => {
|
|
488
488
|
"undefined" !== typeof window.h && (--window.h.Da, 0 === window.h.Da && delete window.h);
|
|
489
|
-
},
|
|
489
|
+
}, 512308:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 512412:() => {
|
|
490
490
|
try {
|
|
491
491
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
492
492
|
a.close();
|
|
@@ -494,7 +494,7 @@ var Pa, Qa, Ua = {507918:(a, b, c, d, e) => {
|
|
|
494
494
|
} catch (c) {
|
|
495
495
|
return 0;
|
|
496
496
|
}
|
|
497
|
-
},
|
|
497
|
+
}, 512583:(a, b, c, d, e, f) => {
|
|
498
498
|
if ("undefined" === typeof window.h) {
|
|
499
499
|
return -1;
|
|
500
500
|
}
|
|
@@ -540,7 +540,7 @@ var Pa, Qa, Ua = {507918:(a, b, c, d, e) => {
|
|
|
540
540
|
a == window.h.I.Ba && g.Z.connect(g.J.destination);
|
|
541
541
|
g.lb = f;
|
|
542
542
|
return window.h.oc(g);
|
|
543
|
-
},
|
|
543
|
+
}, 515460:a => window.h.va(a).J.sampleRate, 515533:a => {
|
|
544
544
|
a = window.h.va(a);
|
|
545
545
|
void 0 !== a.Z && (a.Z.onaudioprocess = function() {
|
|
546
546
|
}, a.Z.disconnect(), a.Z = void 0);
|
|
@@ -548,13 +548,13 @@ var Pa, Qa, Ua = {507918:(a, b, c, d, e) => {
|
|
|
548
548
|
a.J.close();
|
|
549
549
|
a.J = void 0;
|
|
550
550
|
a.lb = void 0;
|
|
551
|
-
},
|
|
551
|
+
}, 515933:a => {
|
|
552
552
|
window.h.yb(a);
|
|
553
|
-
},
|
|
553
|
+
}, 515983:a => {
|
|
554
554
|
a = window.h.va(a);
|
|
555
555
|
a.J.resume();
|
|
556
556
|
a.state = window.h.ia.tb;
|
|
557
|
-
},
|
|
557
|
+
}, 516122:a => {
|
|
558
558
|
a = window.h.va(a);
|
|
559
559
|
a.J.suspend();
|
|
560
560
|
a.state = window.h.ia.stopped;
|
|
@@ -1290,7 +1290,7 @@ function R(a) {
|
|
|
1290
1290
|
var S = a => {
|
|
1291
1291
|
a || R("Cannot use deleted val. handle = " + a);
|
|
1292
1292
|
return Q.get(a).value;
|
|
1293
|
-
},
|
|
1293
|
+
}, T = a => {
|
|
1294
1294
|
switch(a) {
|
|
1295
1295
|
case void 0:
|
|
1296
1296
|
return 1;
|
|
@@ -1304,7 +1304,7 @@ var S = a => {
|
|
|
1304
1304
|
return Q.ta({qb:1, value:a});
|
|
1305
1305
|
}
|
|
1306
1306
|
};
|
|
1307
|
-
function
|
|
1307
|
+
function cc(a) {
|
|
1308
1308
|
var b = Error, c = $b(a, function(d) {
|
|
1309
1309
|
this.name = a;
|
|
1310
1310
|
this.message = d;
|
|
@@ -1318,122 +1318,122 @@ function dc(a) {
|
|
|
1318
1318
|
};
|
|
1319
1319
|
return c;
|
|
1320
1320
|
}
|
|
1321
|
-
var
|
|
1322
|
-
function
|
|
1321
|
+
var dc = void 0, ec = void 0;
|
|
1322
|
+
function U(a) {
|
|
1323
1323
|
for (var b = ""; F[a];) {
|
|
1324
|
-
b +=
|
|
1324
|
+
b += ec[F[a++]];
|
|
1325
1325
|
}
|
|
1326
1326
|
return b;
|
|
1327
1327
|
}
|
|
1328
|
-
var
|
|
1329
|
-
function
|
|
1330
|
-
for (;
|
|
1331
|
-
var a =
|
|
1328
|
+
var fc = [];
|
|
1329
|
+
function gc() {
|
|
1330
|
+
for (; fc.length;) {
|
|
1331
|
+
var a = fc.pop();
|
|
1332
1332
|
a.g.ha = !1;
|
|
1333
1333
|
a["delete"]();
|
|
1334
1334
|
}
|
|
1335
1335
|
}
|
|
1336
|
-
var
|
|
1337
|
-
function
|
|
1336
|
+
var hc = void 0, ic = {};
|
|
1337
|
+
function jc(a, b) {
|
|
1338
1338
|
for (void 0 === b && R("ptr should not be undefined"); a.A;) {
|
|
1339
1339
|
b = a.pa(b), a = a.A;
|
|
1340
1340
|
}
|
|
1341
1341
|
return b;
|
|
1342
1342
|
}
|
|
1343
|
-
var
|
|
1344
|
-
function
|
|
1345
|
-
a =
|
|
1346
|
-
var b =
|
|
1347
|
-
|
|
1343
|
+
var kc = {};
|
|
1344
|
+
function lc(a) {
|
|
1345
|
+
a = mc(a);
|
|
1346
|
+
var b = U(a);
|
|
1347
|
+
nc(a);
|
|
1348
1348
|
return b;
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1351
|
-
var c =
|
|
1352
|
-
void 0 === c && R(b + " has unknown type " +
|
|
1350
|
+
function oc(a, b) {
|
|
1351
|
+
var c = kc[a];
|
|
1352
|
+
void 0 === c && R(b + " has unknown type " + lc(a));
|
|
1353
1353
|
return c;
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1355
|
+
function pc() {
|
|
1356
1356
|
}
|
|
1357
|
-
var
|
|
1358
|
-
function
|
|
1357
|
+
var qc = !1;
|
|
1358
|
+
function rc(a) {
|
|
1359
1359
|
--a.count.value;
|
|
1360
1360
|
0 === a.count.value && (a.H ? a.L.W(a.H) : a.u.i.W(a.o));
|
|
1361
1361
|
}
|
|
1362
|
-
function
|
|
1362
|
+
function sc(a, b, c) {
|
|
1363
1363
|
if (b === c) {
|
|
1364
1364
|
return a;
|
|
1365
1365
|
}
|
|
1366
1366
|
if (void 0 === c.A) {
|
|
1367
1367
|
return null;
|
|
1368
1368
|
}
|
|
1369
|
-
a =
|
|
1369
|
+
a = sc(a, b, c.A);
|
|
1370
1370
|
return null === a ? null : c.Jb(a);
|
|
1371
1371
|
}
|
|
1372
|
-
var
|
|
1373
|
-
function
|
|
1374
|
-
b =
|
|
1375
|
-
return
|
|
1372
|
+
var tc = {};
|
|
1373
|
+
function uc(a, b) {
|
|
1374
|
+
b = jc(a, b);
|
|
1375
|
+
return ic[b];
|
|
1376
1376
|
}
|
|
1377
|
-
var
|
|
1378
|
-
function
|
|
1379
|
-
throw new
|
|
1377
|
+
var vc = void 0;
|
|
1378
|
+
function wc(a) {
|
|
1379
|
+
throw new vc(a);
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1382
|
-
b.u && b.o ||
|
|
1383
|
-
!!b.L !== !!b.H &&
|
|
1381
|
+
function xc(a, b) {
|
|
1382
|
+
b.u && b.o || wc("makeClassHandle requires ptr and ptrType");
|
|
1383
|
+
!!b.L !== !!b.H && wc("Both smartPtrType and smartPtr must be specified");
|
|
1384
1384
|
b.count = {value:1};
|
|
1385
|
-
return
|
|
1385
|
+
return yc(Object.create(a, {g:{value:b,},}));
|
|
1386
1386
|
}
|
|
1387
|
-
function
|
|
1387
|
+
function yc(a) {
|
|
1388
1388
|
if ("undefined" === typeof FinalizationRegistry) {
|
|
1389
|
-
return
|
|
1389
|
+
return yc = b => b, a;
|
|
1390
1390
|
}
|
|
1391
|
-
|
|
1392
|
-
|
|
1391
|
+
qc = new FinalizationRegistry(b => {
|
|
1392
|
+
rc(b.g);
|
|
1393
1393
|
});
|
|
1394
|
-
|
|
1394
|
+
yc = b => {
|
|
1395
1395
|
var c = b.g;
|
|
1396
|
-
c.H &&
|
|
1396
|
+
c.H && qc.register(b, {g:c}, b);
|
|
1397
1397
|
return b;
|
|
1398
1398
|
};
|
|
1399
|
-
|
|
1400
|
-
|
|
1399
|
+
pc = b => {
|
|
1400
|
+
qc.unregister(b);
|
|
1401
1401
|
};
|
|
1402
|
-
return
|
|
1402
|
+
return yc(a);
|
|
1403
1403
|
}
|
|
1404
|
-
var
|
|
1405
|
-
function
|
|
1404
|
+
var zc = {};
|
|
1405
|
+
function Ac(a) {
|
|
1406
1406
|
for (; a.length;) {
|
|
1407
1407
|
var b = a.pop();
|
|
1408
1408
|
a.pop()(b);
|
|
1409
1409
|
}
|
|
1410
1410
|
}
|
|
1411
|
-
function
|
|
1411
|
+
function Bc(a) {
|
|
1412
1412
|
return this.fromWireType(J[a >> 2]);
|
|
1413
1413
|
}
|
|
1414
|
-
var
|
|
1415
|
-
function
|
|
1414
|
+
var Cc = {}, Dc = {};
|
|
1415
|
+
function V(a, b, c) {
|
|
1416
1416
|
function d(l) {
|
|
1417
1417
|
l = c(l);
|
|
1418
|
-
l.length !== a.length &&
|
|
1418
|
+
l.length !== a.length && wc("Mismatched type converter count");
|
|
1419
1419
|
for (var p = 0; p < a.length; ++p) {
|
|
1420
|
-
|
|
1420
|
+
W(a[p], l[p]);
|
|
1421
1421
|
}
|
|
1422
1422
|
}
|
|
1423
1423
|
a.forEach(function(l) {
|
|
1424
|
-
|
|
1424
|
+
Dc[l] = b;
|
|
1425
1425
|
});
|
|
1426
1426
|
var e = Array(b.length), f = [], g = 0;
|
|
1427
1427
|
b.forEach((l, p) => {
|
|
1428
|
-
|
|
1429
|
-
e[p] =
|
|
1428
|
+
kc.hasOwnProperty(l) ? e[p] = kc[l] : (f.push(l), Cc.hasOwnProperty(l) || (Cc[l] = []), Cc[l].push(() => {
|
|
1429
|
+
e[p] = kc[l];
|
|
1430
1430
|
++g;
|
|
1431
1431
|
g === f.length && d(e);
|
|
1432
1432
|
}));
|
|
1433
1433
|
});
|
|
1434
1434
|
0 === f.length && d(e);
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function Ec(a) {
|
|
1437
1437
|
switch(a) {
|
|
1438
1438
|
case 1:
|
|
1439
1439
|
return 0;
|
|
@@ -1447,31 +1447,31 @@ function Fc(a) {
|
|
|
1447
1447
|
throw new TypeError(`Unknown type size: ${a}`);
|
|
1448
1448
|
}
|
|
1449
1449
|
}
|
|
1450
|
-
function
|
|
1450
|
+
function Fc(a, b, c = {}) {
|
|
1451
1451
|
var d = b.name;
|
|
1452
1452
|
a || R(`type "${d}" must have a positive integer typeid pointer`);
|
|
1453
|
-
if (
|
|
1453
|
+
if (kc.hasOwnProperty(a)) {
|
|
1454
1454
|
if (c.Ub) {
|
|
1455
1455
|
return;
|
|
1456
1456
|
}
|
|
1457
1457
|
R(`Cannot register type '${d}' twice`);
|
|
1458
1458
|
}
|
|
1459
|
-
|
|
1460
|
-
delete
|
|
1461
|
-
|
|
1459
|
+
kc[a] = b;
|
|
1460
|
+
delete Dc[a];
|
|
1461
|
+
Cc.hasOwnProperty(a) && (b = Cc[a], delete Cc[a], b.forEach(e => e()));
|
|
1462
1462
|
}
|
|
1463
|
-
function
|
|
1463
|
+
function W(a, b, c = {}) {
|
|
1464
1464
|
if (!("argPackAdvance" in b)) {
|
|
1465
1465
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
1466
1466
|
}
|
|
1467
|
-
|
|
1467
|
+
Fc(a, b, c);
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1469
|
+
function Gc(a) {
|
|
1470
1470
|
R(a.g.u.i.name + " instance already deleted");
|
|
1471
1471
|
}
|
|
1472
|
-
function
|
|
1472
|
+
function Hc() {
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1474
|
+
function Ic(a, b, c) {
|
|
1475
1475
|
if (void 0 === a[b].B) {
|
|
1476
1476
|
var d = a[b];
|
|
1477
1477
|
a[b] = function() {
|
|
@@ -1482,10 +1482,10 @@ function Jc(a, b, c) {
|
|
|
1482
1482
|
a[b].B[d.ga] = d;
|
|
1483
1483
|
}
|
|
1484
1484
|
}
|
|
1485
|
-
function
|
|
1486
|
-
k.hasOwnProperty(a) ? ((void 0 === c || void 0 !== k[a].B && void 0 !== k[a].B[c]) && R(`Cannot register public name '${a}' twice`),
|
|
1485
|
+
function Jc(a, b, c) {
|
|
1486
|
+
k.hasOwnProperty(a) ? ((void 0 === c || void 0 !== k[a].B && void 0 !== k[a].B[c]) && R(`Cannot register public name '${a}' twice`), Ic(k, a, a), k.hasOwnProperty(c) && R(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), k[a].B[c] = b) : (k[a] = b, void 0 !== c && (k[a].Mc = c));
|
|
1487
1487
|
}
|
|
1488
|
-
function
|
|
1488
|
+
function Kc(a, b, c, d, e, f, g, l) {
|
|
1489
1489
|
this.name = a;
|
|
1490
1490
|
this.constructor = b;
|
|
1491
1491
|
this.N = c;
|
|
@@ -1496,21 +1496,21 @@ function Lc(a, b, c, d, e, f, g, l) {
|
|
|
1496
1496
|
this.Jb = l;
|
|
1497
1497
|
this.mb = [];
|
|
1498
1498
|
}
|
|
1499
|
-
function
|
|
1499
|
+
function Lc(a, b, c) {
|
|
1500
1500
|
for (; b !== c;) {
|
|
1501
1501
|
b.pa || R(`Expected null or instance of ${c.name}, got an instance of ${b.name}`), a = b.pa(a), b = b.A;
|
|
1502
1502
|
}
|
|
1503
1503
|
return a;
|
|
1504
1504
|
}
|
|
1505
|
-
function
|
|
1505
|
+
function Mc(a, b) {
|
|
1506
1506
|
if (null === b) {
|
|
1507
1507
|
return this.Pa && R(`null is not a valid ${this.name}`), 0;
|
|
1508
1508
|
}
|
|
1509
|
-
b.g || R(`Cannot pass "${
|
|
1509
|
+
b.g || R(`Cannot pass "${Nc(b)}" as a ${this.name}`);
|
|
1510
1510
|
b.g.o || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1511
|
-
return
|
|
1511
|
+
return Lc(b.g.o, b.g.u.i, this.i);
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1513
|
+
function Oc(a, b) {
|
|
1514
1514
|
if (null === b) {
|
|
1515
1515
|
this.Pa && R(`null is not a valid ${this.name}`);
|
|
1516
1516
|
if (this.ya) {
|
|
@@ -1520,10 +1520,10 @@ function Pc(a, b) {
|
|
|
1520
1520
|
}
|
|
1521
1521
|
return 0;
|
|
1522
1522
|
}
|
|
1523
|
-
b.g || R(`Cannot pass "${
|
|
1523
|
+
b.g || R(`Cannot pass "${Nc(b)}" as a ${this.name}`);
|
|
1524
1524
|
b.g.o || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1525
1525
|
!this.xa && b.g.u.xa && R(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1526
|
-
c =
|
|
1526
|
+
c = Lc(b.g.o, b.g.u.i, this.i);
|
|
1527
1527
|
if (this.ya) {
|
|
1528
1528
|
switch(void 0 === b.g.H && R("Passing raw pointer to smart pointer is illegal"), this.jc) {
|
|
1529
1529
|
case 0:
|
|
@@ -1537,7 +1537,7 @@ function Pc(a, b) {
|
|
|
1537
1537
|
c = b.g.H;
|
|
1538
1538
|
} else {
|
|
1539
1539
|
var d = b.clone();
|
|
1540
|
-
c = this.dc(c,
|
|
1540
|
+
c = this.dc(c, T(function() {
|
|
1541
1541
|
d["delete"]();
|
|
1542
1542
|
}));
|
|
1543
1543
|
null !== a && a.push(this.W, c);
|
|
@@ -1549,33 +1549,33 @@ function Pc(a, b) {
|
|
|
1549
1549
|
}
|
|
1550
1550
|
return c;
|
|
1551
1551
|
}
|
|
1552
|
-
function
|
|
1552
|
+
function Pc(a, b) {
|
|
1553
1553
|
if (null === b) {
|
|
1554
1554
|
return this.Pa && R(`null is not a valid ${this.name}`), 0;
|
|
1555
1555
|
}
|
|
1556
|
-
b.g || R(`Cannot pass "${
|
|
1556
|
+
b.g || R(`Cannot pass "${Nc(b)}" as a ${this.name}`);
|
|
1557
1557
|
b.g.o || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1558
1558
|
b.g.u.xa && R(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1559
|
-
return
|
|
1559
|
+
return Lc(b.g.o, b.g.u.i, this.i);
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1561
|
+
function Qc(a, b, c, d) {
|
|
1562
1562
|
this.name = a;
|
|
1563
1563
|
this.i = b;
|
|
1564
1564
|
this.Pa = c;
|
|
1565
1565
|
this.xa = d;
|
|
1566
1566
|
this.ya = !1;
|
|
1567
1567
|
this.W = this.dc = this.Ra = this.ob = this.jc = this.cc = void 0;
|
|
1568
|
-
void 0 !== b.A ? this.toWireType =
|
|
1568
|
+
void 0 !== b.A ? this.toWireType = Oc : (this.toWireType = d ? Mc : Pc, this.K = null);
|
|
1569
1569
|
}
|
|
1570
|
-
function
|
|
1571
|
-
k.hasOwnProperty(a) ||
|
|
1570
|
+
function Rc(a, b, c) {
|
|
1571
|
+
k.hasOwnProperty(a) || wc("Replacing nonexistant public symbol");
|
|
1572
1572
|
void 0 !== k[a].B && void 0 !== c ? k[a].B[c] = b : (k[a] = b, k[a].ga = c);
|
|
1573
1573
|
}
|
|
1574
|
-
var
|
|
1575
|
-
var b =
|
|
1576
|
-
b || (a >=
|
|
1574
|
+
var Sc = [], Tc = a => {
|
|
1575
|
+
var b = Sc[a];
|
|
1576
|
+
b || (a >= Sc.length && (Sc.length = a + 1), Sc[a] = b = Aa.get(a));
|
|
1577
1577
|
return b;
|
|
1578
|
-
},
|
|
1578
|
+
}, Uc = (a, b) => {
|
|
1579
1579
|
var c = [];
|
|
1580
1580
|
return function() {
|
|
1581
1581
|
c.length = 0;
|
|
@@ -1584,27 +1584,27 @@ var Tc = [], Uc = a => {
|
|
|
1584
1584
|
var d = k["dynCall_" + a];
|
|
1585
1585
|
d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
|
|
1586
1586
|
} else {
|
|
1587
|
-
d =
|
|
1587
|
+
d = Tc(b).apply(null, c);
|
|
1588
1588
|
}
|
|
1589
1589
|
return d;
|
|
1590
1590
|
};
|
|
1591
1591
|
};
|
|
1592
|
-
function
|
|
1593
|
-
a =
|
|
1594
|
-
var c = a.includes("j") ?
|
|
1592
|
+
function X(a, b) {
|
|
1593
|
+
a = U(a);
|
|
1594
|
+
var c = a.includes("j") ? Uc(a, b) : Tc(b);
|
|
1595
1595
|
"function" != typeof c && R(`unknown function pointer with signature ${a}: ${b}`);
|
|
1596
1596
|
return c;
|
|
1597
1597
|
}
|
|
1598
|
-
var
|
|
1599
|
-
function
|
|
1598
|
+
var Vc = void 0;
|
|
1599
|
+
function Wc(a, b) {
|
|
1600
1600
|
function c(f) {
|
|
1601
|
-
e[f] ||
|
|
1601
|
+
e[f] || kc[f] || (Dc[f] ? Dc[f].forEach(c) : (d.push(f), e[f] = !0));
|
|
1602
1602
|
}
|
|
1603
1603
|
var d = [], e = {};
|
|
1604
1604
|
b.forEach(c);
|
|
1605
|
-
throw new
|
|
1605
|
+
throw new Vc(`${a}: ` + d.map(lc).join([", "]));
|
|
1606
1606
|
}
|
|
1607
|
-
function
|
|
1607
|
+
function Xc(a, b, c, d, e) {
|
|
1608
1608
|
var f = b.length;
|
|
1609
1609
|
2 > f && R("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1610
1610
|
var g = null !== b[1] && null !== c, l = !1;
|
|
@@ -1629,7 +1629,7 @@ function Yc(a, b, c, d, e) {
|
|
|
1629
1629
|
}
|
|
1630
1630
|
q = d.apply(null, v);
|
|
1631
1631
|
if (l) {
|
|
1632
|
-
|
|
1632
|
+
Ac(x);
|
|
1633
1633
|
} else {
|
|
1634
1634
|
for (var u = g ? 1 : 2; u < b.length; u++) {
|
|
1635
1635
|
var y = 1 === u ? n : t[u - 2];
|
|
@@ -1640,22 +1640,22 @@ function Yc(a, b, c, d, e) {
|
|
|
1640
1640
|
return n;
|
|
1641
1641
|
};
|
|
1642
1642
|
}
|
|
1643
|
-
function
|
|
1643
|
+
function Yc(a, b) {
|
|
1644
1644
|
for (var c = [], d = 0; d < a; d++) {
|
|
1645
1645
|
c.push(K[b + 4 * d >> 2]);
|
|
1646
1646
|
}
|
|
1647
1647
|
return c;
|
|
1648
1648
|
}
|
|
1649
|
-
function
|
|
1649
|
+
function Zc(a, b, c) {
|
|
1650
1650
|
a instanceof Object || R(`${c} with invalid "this": ${a}`);
|
|
1651
1651
|
a instanceof b.i.constructor || R(`${c} incompatible with "this" of type ${a.constructor.name}`);
|
|
1652
1652
|
a.g.o || R(`cannot call emscripten binding method ${c} on deleted object`);
|
|
1653
|
-
return
|
|
1653
|
+
return Lc(a.g.o, a.g.u.i, b.i);
|
|
1654
1654
|
}
|
|
1655
|
-
function
|
|
1655
|
+
function $c(a) {
|
|
1656
1656
|
a >= Q.h && 0 === --Q.get(a).qb && Q.Tb(a);
|
|
1657
1657
|
}
|
|
1658
|
-
function
|
|
1658
|
+
function ad(a, b, c) {
|
|
1659
1659
|
switch(b) {
|
|
1660
1660
|
case 0:
|
|
1661
1661
|
return function(d) {
|
|
@@ -1673,14 +1673,14 @@ function bd(a, b, c) {
|
|
|
1673
1673
|
throw new TypeError("Unknown integer type: " + a);
|
|
1674
1674
|
}
|
|
1675
1675
|
}
|
|
1676
|
-
function
|
|
1676
|
+
function Nc(a) {
|
|
1677
1677
|
if (null === a) {
|
|
1678
1678
|
return "null";
|
|
1679
1679
|
}
|
|
1680
1680
|
var b = typeof a;
|
|
1681
1681
|
return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
|
|
1682
1682
|
}
|
|
1683
|
-
function
|
|
1683
|
+
function bd(a, b) {
|
|
1684
1684
|
switch(b) {
|
|
1685
1685
|
case 2:
|
|
1686
1686
|
return function(c) {
|
|
@@ -1694,7 +1694,7 @@ function cd(a, b) {
|
|
|
1694
1694
|
throw new TypeError("Unknown float type: " + a);
|
|
1695
1695
|
}
|
|
1696
1696
|
}
|
|
1697
|
-
function
|
|
1697
|
+
function cd(a, b, c) {
|
|
1698
1698
|
switch(b) {
|
|
1699
1699
|
case 0:
|
|
1700
1700
|
return c ? function(d) {
|
|
@@ -1718,14 +1718,14 @@ function dd(a, b, c) {
|
|
|
1718
1718
|
throw new TypeError("Unknown integer type: " + a);
|
|
1719
1719
|
}
|
|
1720
1720
|
}
|
|
1721
|
-
var
|
|
1721
|
+
var dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, ed = (a, b) => {
|
|
1722
1722
|
var c = a >> 1;
|
|
1723
1723
|
for (var d = c + b / 2; !(c >= d) && wa[c];) {
|
|
1724
1724
|
++c;
|
|
1725
1725
|
}
|
|
1726
1726
|
c <<= 1;
|
|
1727
|
-
if (32 < c - a &&
|
|
1728
|
-
return
|
|
1727
|
+
if (32 < c - a && dd) {
|
|
1728
|
+
return dd.decode(F.subarray(a, c));
|
|
1729
1729
|
}
|
|
1730
1730
|
c = "";
|
|
1731
1731
|
for (d = 0; !(d >= b / 2); ++d) {
|
|
@@ -1736,7 +1736,7 @@ var ed = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1736
1736
|
c += String.fromCharCode(e);
|
|
1737
1737
|
}
|
|
1738
1738
|
return c;
|
|
1739
|
-
},
|
|
1739
|
+
}, fd = (a, b, c) => {
|
|
1740
1740
|
void 0 === c && (c = 2147483647);
|
|
1741
1741
|
if (2 > c) {
|
|
1742
1742
|
return 0;
|
|
@@ -1749,7 +1749,7 @@ var ed = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1749
1749
|
}
|
|
1750
1750
|
H[b >> 1] = 0;
|
|
1751
1751
|
return b - d;
|
|
1752
|
-
},
|
|
1752
|
+
}, gd = a => 2 * a.length, hd = (a, b) => {
|
|
1753
1753
|
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
1754
1754
|
var e = J[a + 4 * c >> 2];
|
|
1755
1755
|
if (0 == e) {
|
|
@@ -1759,7 +1759,7 @@ var ed = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1759
1759
|
65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
|
|
1760
1760
|
}
|
|
1761
1761
|
return d;
|
|
1762
|
-
},
|
|
1762
|
+
}, jd = (a, b, c) => {
|
|
1763
1763
|
void 0 === c && (c = 2147483647);
|
|
1764
1764
|
if (4 > c) {
|
|
1765
1765
|
return 0;
|
|
@@ -1780,43 +1780,43 @@ var ed = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1780
1780
|
}
|
|
1781
1781
|
J[b >> 2] = 0;
|
|
1782
1782
|
return b - d;
|
|
1783
|
-
},
|
|
1783
|
+
}, kd = a => {
|
|
1784
1784
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
1785
1785
|
var d = a.charCodeAt(c);
|
|
1786
1786
|
55296 <= d && 57343 >= d && ++c;
|
|
1787
1787
|
b += 4;
|
|
1788
1788
|
}
|
|
1789
1789
|
return b;
|
|
1790
|
-
},
|
|
1791
|
-
function
|
|
1792
|
-
var b =
|
|
1793
|
-
return void 0 === b ?
|
|
1794
|
-
}
|
|
1795
|
-
var
|
|
1796
|
-
function
|
|
1797
|
-
var b =
|
|
1798
|
-
|
|
1790
|
+
}, ld = {};
|
|
1791
|
+
function md(a) {
|
|
1792
|
+
var b = ld[a];
|
|
1793
|
+
return void 0 === b ? U(a) : b;
|
|
1794
|
+
}
|
|
1795
|
+
var nd = [];
|
|
1796
|
+
function od(a) {
|
|
1797
|
+
var b = nd.length;
|
|
1798
|
+
nd.push(a);
|
|
1799
1799
|
return b;
|
|
1800
1800
|
}
|
|
1801
|
-
function
|
|
1801
|
+
function pd(a, b) {
|
|
1802
1802
|
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
1803
|
-
c[d] =
|
|
1803
|
+
c[d] = oc(K[b + 4 * d >> 2], "parameter " + d);
|
|
1804
1804
|
}
|
|
1805
1805
|
return c;
|
|
1806
1806
|
}
|
|
1807
|
-
var
|
|
1808
|
-
function
|
|
1807
|
+
var qd = [], rd = [];
|
|
1808
|
+
function sd(a) {
|
|
1809
1809
|
a.Ac = a.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
|
|
1810
1810
|
}
|
|
1811
|
-
function
|
|
1811
|
+
function td(a) {
|
|
1812
1812
|
a.Ic = a.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
|
|
1813
1813
|
}
|
|
1814
|
-
var
|
|
1814
|
+
var ud = 1, vd = [], wd = [], xd = [], yd = [], zd = [], Ad = [], Bd = [], w = [], Cd = {};
|
|
1815
1815
|
function Y(a) {
|
|
1816
1816
|
Dd || (Dd = a);
|
|
1817
1817
|
}
|
|
1818
1818
|
function Ed(a) {
|
|
1819
|
-
for (var b =
|
|
1819
|
+
for (var b = ud++, c = a.length; c < b; c++) {
|
|
1820
1820
|
a[c] = null;
|
|
1821
1821
|
}
|
|
1822
1822
|
return b;
|
|
@@ -1838,8 +1838,8 @@ function Fd(a) {
|
|
|
1838
1838
|
if (!a.Vb) {
|
|
1839
1839
|
a.Vb = !0;
|
|
1840
1840
|
var b = a.D;
|
|
1841
|
+
sd(b);
|
|
1841
1842
|
td(b);
|
|
1842
|
-
ud(b);
|
|
1843
1843
|
2 <= a.version && (b.$a = b.getExtension("EXT_disjoint_timer_query_webgl2"));
|
|
1844
1844
|
if (2 > a.version || !b.$a) {
|
|
1845
1845
|
b.$a = b.getExtension("EXT_disjoint_timer_query");
|
|
@@ -2162,34 +2162,34 @@ k.count_emval_handles = function() {
|
|
|
2162
2162
|
}
|
|
2163
2163
|
return a;
|
|
2164
2164
|
};
|
|
2165
|
-
|
|
2165
|
+
dc = k.PureVirtualError = cc("PureVirtualError");
|
|
2166
2166
|
for (var Ud = Array(256), Vd = 0; 256 > Vd; ++Vd) {
|
|
2167
2167
|
Ud[Vd] = String.fromCharCode(Vd);
|
|
2168
2168
|
}
|
|
2169
|
-
|
|
2169
|
+
ec = Ud;
|
|
2170
2170
|
k.getInheritedInstanceCount = function() {
|
|
2171
|
-
return Object.keys(
|
|
2171
|
+
return Object.keys(ic).length;
|
|
2172
2172
|
};
|
|
2173
2173
|
k.getLiveInheritedInstances = function() {
|
|
2174
2174
|
var a = [], b;
|
|
2175
|
-
for (b in
|
|
2176
|
-
|
|
2175
|
+
for (b in ic) {
|
|
2176
|
+
ic.hasOwnProperty(b) && a.push(ic[b]);
|
|
2177
2177
|
}
|
|
2178
2178
|
return a;
|
|
2179
2179
|
};
|
|
2180
|
-
k.flushPendingDeletes =
|
|
2180
|
+
k.flushPendingDeletes = gc;
|
|
2181
2181
|
k.setDelayFunction = function(a) {
|
|
2182
|
-
|
|
2183
|
-
|
|
2182
|
+
hc = a;
|
|
2183
|
+
fc.length && hc && hc(gc);
|
|
2184
2184
|
};
|
|
2185
|
-
|
|
2185
|
+
vc = k.InternalError = class extends Error {
|
|
2186
2186
|
constructor(a) {
|
|
2187
2187
|
super(a);
|
|
2188
2188
|
this.name = "InternalError";
|
|
2189
2189
|
}
|
|
2190
2190
|
};
|
|
2191
|
-
|
|
2192
|
-
if (!(this instanceof
|
|
2191
|
+
Hc.prototype.isAliasOf = function(a) {
|
|
2192
|
+
if (!(this instanceof Hc && a instanceof Hc)) {
|
|
2193
2193
|
return !1;
|
|
2194
2194
|
}
|
|
2195
2195
|
var b = this.g.u.i, c = this.g.o, d = a.g.u.i;
|
|
@@ -2201,58 +2201,58 @@ Ic.prototype.isAliasOf = function(a) {
|
|
|
2201
2201
|
}
|
|
2202
2202
|
return b === d && c === a;
|
|
2203
2203
|
};
|
|
2204
|
-
|
|
2205
|
-
this.g.o ||
|
|
2204
|
+
Hc.prototype.clone = function() {
|
|
2205
|
+
this.g.o || Gc(this);
|
|
2206
2206
|
if (this.g.ka) {
|
|
2207
2207
|
return this.g.count.value += 1, this;
|
|
2208
2208
|
}
|
|
2209
|
-
var a =
|
|
2209
|
+
var a = yc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
|
|
2210
2210
|
a = a(c.call(b, d, {g:{value:{count:e.count, ha:e.ha, ka:e.ka, o:e.o, u:e.u, H:e.H, L:e.L,},}}));
|
|
2211
2211
|
a.g.count.value += 1;
|
|
2212
2212
|
a.g.ha = !1;
|
|
2213
2213
|
return a;
|
|
2214
2214
|
};
|
|
2215
|
-
|
|
2216
|
-
this.g.o ||
|
|
2215
|
+
Hc.prototype["delete"] = function() {
|
|
2216
|
+
this.g.o || Gc(this);
|
|
2217
2217
|
this.g.ha && !this.g.ka && R("Object already scheduled for deletion");
|
|
2218
|
-
|
|
2219
|
-
|
|
2218
|
+
pc(this);
|
|
2219
|
+
rc(this.g);
|
|
2220
2220
|
this.g.ka || (this.g.H = void 0, this.g.o = void 0);
|
|
2221
2221
|
};
|
|
2222
|
-
|
|
2222
|
+
Hc.prototype.isDeleted = function() {
|
|
2223
2223
|
return !this.g.o;
|
|
2224
2224
|
};
|
|
2225
|
-
|
|
2226
|
-
this.g.o ||
|
|
2225
|
+
Hc.prototype.deleteLater = function() {
|
|
2226
|
+
this.g.o || Gc(this);
|
|
2227
2227
|
this.g.ha && !this.g.ka && R("Object already scheduled for deletion");
|
|
2228
|
-
|
|
2229
|
-
1 ===
|
|
2228
|
+
fc.push(this);
|
|
2229
|
+
1 === fc.length && hc && hc(gc);
|
|
2230
2230
|
this.g.ha = !0;
|
|
2231
2231
|
return this;
|
|
2232
2232
|
};
|
|
2233
|
-
|
|
2233
|
+
Qc.prototype.Pb = function(a) {
|
|
2234
2234
|
this.ob && (a = this.ob(a));
|
|
2235
2235
|
return a;
|
|
2236
2236
|
};
|
|
2237
|
-
|
|
2237
|
+
Qc.prototype.Za = function(a) {
|
|
2238
2238
|
this.W && this.W(a);
|
|
2239
2239
|
};
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2240
|
+
Qc.prototype.argPackAdvance = 8;
|
|
2241
|
+
Qc.prototype.readValueFromPointer = Bc;
|
|
2242
|
+
Qc.prototype.deleteObject = function(a) {
|
|
2243
2243
|
if (null !== a) {
|
|
2244
2244
|
a["delete"]();
|
|
2245
2245
|
}
|
|
2246
2246
|
};
|
|
2247
|
-
|
|
2247
|
+
Qc.prototype.fromWireType = function(a) {
|
|
2248
2248
|
function b() {
|
|
2249
|
-
return this.ya ?
|
|
2249
|
+
return this.ya ? xc(this.i.N, {u:this.cc, o:c, L:this, H:a,}) : xc(this.i.N, {u:this, o:a,});
|
|
2250
2250
|
}
|
|
2251
2251
|
var c = this.Pb(a);
|
|
2252
2252
|
if (!c) {
|
|
2253
2253
|
return this.Za(a), null;
|
|
2254
2254
|
}
|
|
2255
|
-
var d =
|
|
2255
|
+
var d = uc(this.i, c);
|
|
2256
2256
|
if (void 0 !== d) {
|
|
2257
2257
|
if (0 === d.g.count.value) {
|
|
2258
2258
|
return d.g.o = c, d.g.H = a, d.clone();
|
|
@@ -2262,15 +2262,15 @@ Rc.prototype.fromWireType = function(a) {
|
|
|
2262
2262
|
return d;
|
|
2263
2263
|
}
|
|
2264
2264
|
d = this.i.Ob(c);
|
|
2265
|
-
d =
|
|
2265
|
+
d = tc[d];
|
|
2266
2266
|
if (!d) {
|
|
2267
2267
|
return b.call(this);
|
|
2268
2268
|
}
|
|
2269
2269
|
d = this.xa ? d.Gb : d.pointerType;
|
|
2270
|
-
var e =
|
|
2271
|
-
return null === e ? b.call(this) : this.ya ?
|
|
2270
|
+
var e = sc(c, this.i, d.i);
|
|
2271
|
+
return null === e ? b.call(this) : this.ya ? xc(d.i.N, {u:d, o:e, L:this, H:a,}) : xc(d.i.N, {u:d, o:e,});
|
|
2272
2272
|
};
|
|
2273
|
-
|
|
2273
|
+
Vc = k.UnboundTypeError = cc("UnboundTypeError");
|
|
2274
2274
|
for (var Z, Wd = 0; 32 > Wd; ++Wd) {
|
|
2275
2275
|
Kd.push(Array(Wd));
|
|
2276
2276
|
}
|
|
@@ -2403,14 +2403,14 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2403
2403
|
return -l.aa;
|
|
2404
2404
|
}
|
|
2405
2405
|
}, _embind_create_inheriting_constructor:function(a, b, c) {
|
|
2406
|
-
a =
|
|
2407
|
-
b =
|
|
2406
|
+
a = U(a);
|
|
2407
|
+
b = oc(b, "wrapper");
|
|
2408
2408
|
c = S(c);
|
|
2409
2409
|
var d = [].slice, e = b.i, f = e.N, g = e.A.N, l = e.A.constructor;
|
|
2410
2410
|
a = $b(a, function() {
|
|
2411
2411
|
e.A.mb.forEach(function(m) {
|
|
2412
2412
|
if (this[m] === g[m]) {
|
|
2413
|
-
throw new
|
|
2413
|
+
throw new dc(`Pure virtual function ${m} must be implemented in JavaScript`);
|
|
2414
2414
|
}
|
|
2415
2415
|
}.bind(this));
|
|
2416
2416
|
Object.defineProperty(this, "__parent", {value:f});
|
|
@@ -2419,40 +2419,40 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2419
2419
|
f.__construct = function() {
|
|
2420
2420
|
this === f && R("Pass correct 'this' to __construct");
|
|
2421
2421
|
var m = l.implement.apply(void 0, [this].concat(d.call(arguments)));
|
|
2422
|
-
|
|
2422
|
+
pc(m);
|
|
2423
2423
|
var t = m.g;
|
|
2424
2424
|
m.notifyOnDestruction();
|
|
2425
2425
|
t.ka = !0;
|
|
2426
2426
|
Object.defineProperties(this, {g:{value:t}});
|
|
2427
|
-
|
|
2427
|
+
yc(this);
|
|
2428
2428
|
m = t.o;
|
|
2429
|
-
m =
|
|
2430
|
-
|
|
2429
|
+
m = jc(e, m);
|
|
2430
|
+
ic.hasOwnProperty(m) ? R(`Tried to register registered instance: ${m}`) : ic[m] = this;
|
|
2431
2431
|
};
|
|
2432
2432
|
f.__destruct = function() {
|
|
2433
2433
|
this === f && R("Pass correct 'this' to __destruct");
|
|
2434
|
-
|
|
2434
|
+
pc(this);
|
|
2435
2435
|
var m = this.g.o;
|
|
2436
|
-
m =
|
|
2437
|
-
|
|
2436
|
+
m = jc(e, m);
|
|
2437
|
+
ic.hasOwnProperty(m) ? delete ic[m] : R(`Tried to unregister unregistered instance: ${m}`);
|
|
2438
2438
|
};
|
|
2439
2439
|
a.prototype = Object.create(f);
|
|
2440
2440
|
for (var p in c) {
|
|
2441
2441
|
a.prototype[p] = c[p];
|
|
2442
2442
|
}
|
|
2443
|
-
return
|
|
2443
|
+
return T(a);
|
|
2444
2444
|
}, _embind_finalize_value_object:function(a) {
|
|
2445
|
-
var b =
|
|
2446
|
-
delete
|
|
2445
|
+
var b = zc[a];
|
|
2446
|
+
delete zc[a];
|
|
2447
2447
|
var c = b.Ra, d = b.W, e = b.ab, f = e.map(g => g.Sb).concat(e.map(g => g.hc));
|
|
2448
|
-
|
|
2448
|
+
V([a], f, g => {
|
|
2449
2449
|
var l = {};
|
|
2450
2450
|
e.forEach((p, m) => {
|
|
2451
2451
|
var t = g[m], v = p.Qb, x = p.Rb, n = g[m + e.length], q = p.fc, u = p.ic;
|
|
2452
2452
|
l[p.Mb] = {read:y => t.fromWireType(v(x, y)), write:(y, z) => {
|
|
2453
2453
|
var A = [];
|
|
2454
2454
|
q(u, y, n.toWireType(A, z));
|
|
2455
|
-
|
|
2455
|
+
Ac(A);
|
|
2456
2456
|
}};
|
|
2457
2457
|
});
|
|
2458
2458
|
return [{name:b.name, fromWireType:function(p) {
|
|
@@ -2474,13 +2474,13 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2474
2474
|
}
|
|
2475
2475
|
null !== p && p.push(d, v);
|
|
2476
2476
|
return v;
|
|
2477
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2477
|
+
}, argPackAdvance:8, readValueFromPointer:Bc, K:d,}];
|
|
2478
2478
|
});
|
|
2479
2479
|
}, _embind_register_bigint:function() {
|
|
2480
2480
|
}, _embind_register_bool:function(a, b, c, d, e) {
|
|
2481
|
-
var f =
|
|
2482
|
-
b =
|
|
2483
|
-
|
|
2481
|
+
var f = Ec(c);
|
|
2482
|
+
b = U(b);
|
|
2483
|
+
W(a, {name:b, fromWireType:function(g) {
|
|
2484
2484
|
return !!g;
|
|
2485
2485
|
}, toWireType:function(g, l) {
|
|
2486
2486
|
return l ? d : e;
|
|
@@ -2497,22 +2497,22 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2497
2497
|
return this.fromWireType(l[g >> f]);
|
|
2498
2498
|
}, K:null,});
|
|
2499
2499
|
}, _embind_register_class:function(a, b, c, d, e, f, g, l, p, m, t, v, x) {
|
|
2500
|
-
t =
|
|
2501
|
-
f =
|
|
2502
|
-
l && (l =
|
|
2503
|
-
m && (m =
|
|
2504
|
-
x =
|
|
2500
|
+
t = U(t);
|
|
2501
|
+
f = X(e, f);
|
|
2502
|
+
l && (l = X(g, l));
|
|
2503
|
+
m && (m = X(p, m));
|
|
2504
|
+
x = X(v, x);
|
|
2505
2505
|
var n = Zb(t);
|
|
2506
|
-
|
|
2507
|
-
|
|
2506
|
+
Jc(n, function() {
|
|
2507
|
+
Wc(`Cannot construct ${t} due to unbound types`, [d]);
|
|
2508
2508
|
});
|
|
2509
|
-
|
|
2509
|
+
V([a, b, c], d ? [d] : [], function(q) {
|
|
2510
2510
|
q = q[0];
|
|
2511
2511
|
if (d) {
|
|
2512
2512
|
var u = q.i;
|
|
2513
2513
|
var y = u.N;
|
|
2514
2514
|
} else {
|
|
2515
|
-
y =
|
|
2515
|
+
y = Hc.prototype;
|
|
2516
2516
|
}
|
|
2517
2517
|
q = $b(n, function() {
|
|
2518
2518
|
if (Object.getPrototypeOf(this) !== z) {
|
|
@@ -2529,30 +2529,30 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2529
2529
|
});
|
|
2530
2530
|
var z = Object.create(y, {constructor:{value:q},});
|
|
2531
2531
|
q.prototype = z;
|
|
2532
|
-
var A = new
|
|
2532
|
+
var A = new Kc(t, q, z, x, u, f, l, m);
|
|
2533
2533
|
A.A && (void 0 === A.A.qa && (A.A.qa = []), A.A.qa.push(A));
|
|
2534
|
-
u = new
|
|
2535
|
-
y = new
|
|
2536
|
-
var G = new
|
|
2537
|
-
|
|
2538
|
-
|
|
2534
|
+
u = new Qc(t, A, !0, !1);
|
|
2535
|
+
y = new Qc(t + "*", A, !1, !1);
|
|
2536
|
+
var G = new Qc(t + " const*", A, !1, !0);
|
|
2537
|
+
tc[a] = {pointerType:y, Gb:G};
|
|
2538
|
+
Rc(n, q);
|
|
2539
2539
|
return [u, y, G];
|
|
2540
2540
|
});
|
|
2541
2541
|
}, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
|
|
2542
|
-
var l =
|
|
2543
|
-
b =
|
|
2544
|
-
f =
|
|
2545
|
-
|
|
2542
|
+
var l = Yc(c, d);
|
|
2543
|
+
b = U(b);
|
|
2544
|
+
f = X(e, f);
|
|
2545
|
+
V([], [a], function(p) {
|
|
2546
2546
|
function m() {
|
|
2547
|
-
|
|
2547
|
+
Wc(`Cannot call ${t} due to unbound types`, l);
|
|
2548
2548
|
}
|
|
2549
2549
|
p = p[0];
|
|
2550
2550
|
var t = `${p.name}.${b}`;
|
|
2551
2551
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2552
2552
|
var v = p.i.constructor;
|
|
2553
|
-
void 0 === v[b] ? (m.ga = c - 1, v[b] = m) : (
|
|
2554
|
-
|
|
2555
|
-
x =
|
|
2553
|
+
void 0 === v[b] ? (m.ga = c - 1, v[b] = m) : (Ic(v, b, t), v[b].B[c - 1] = m);
|
|
2554
|
+
V([], l, function(x) {
|
|
2555
|
+
x = Xc(t, [x[0], null].concat(x.slice(1)), null, f, g);
|
|
2556
2556
|
void 0 === v[b].B ? (x.ga = c - 1, v[b] = x) : v[b].B[c - 1] = x;
|
|
2557
2557
|
if (p.i.qa) {
|
|
2558
2558
|
for (const n of p.i.qa) {
|
|
@@ -2564,28 +2564,28 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2564
2564
|
return [];
|
|
2565
2565
|
});
|
|
2566
2566
|
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g, l) {
|
|
2567
|
-
b =
|
|
2568
|
-
f =
|
|
2569
|
-
|
|
2567
|
+
b = U(b);
|
|
2568
|
+
f = X(e, f);
|
|
2569
|
+
V([], [a], function(p) {
|
|
2570
2570
|
p = p[0];
|
|
2571
2571
|
var m = `${p.name}.${b}`, t = {get() {
|
|
2572
|
-
|
|
2572
|
+
Wc(`Cannot access ${m} due to unbound types`, [c]);
|
|
2573
2573
|
}, enumerable:!0, configurable:!0};
|
|
2574
2574
|
t.set = l ? () => {
|
|
2575
|
-
|
|
2575
|
+
Wc(`Cannot access ${m} due to unbound types`, [c]);
|
|
2576
2576
|
} : () => {
|
|
2577
2577
|
R(`${m} is a read-only property`);
|
|
2578
2578
|
};
|
|
2579
2579
|
Object.defineProperty(p.i.constructor, b, t);
|
|
2580
|
-
|
|
2580
|
+
V([], [c], function(v) {
|
|
2581
2581
|
v = v[0];
|
|
2582
2582
|
var x = {get() {
|
|
2583
2583
|
return v.fromWireType(f(d));
|
|
2584
2584
|
}, enumerable:!0};
|
|
2585
|
-
l && (l =
|
|
2585
|
+
l && (l = X(g, l), x.set = n => {
|
|
2586
2586
|
var q = [];
|
|
2587
2587
|
l(d, v.toWireType(q, n));
|
|
2588
|
-
|
|
2588
|
+
Ac(q);
|
|
2589
2589
|
});
|
|
2590
2590
|
Object.defineProperty(p.i.constructor, b, x);
|
|
2591
2591
|
return [];
|
|
@@ -2593,9 +2593,9 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2593
2593
|
return [];
|
|
2594
2594
|
});
|
|
2595
2595
|
}, _embind_register_class_constructor:function(a, b, c, d, e, f) {
|
|
2596
|
-
var g =
|
|
2597
|
-
e =
|
|
2598
|
-
|
|
2596
|
+
var g = Yc(b, c);
|
|
2597
|
+
e = X(d, e);
|
|
2598
|
+
V([], [a], function(l) {
|
|
2599
2599
|
l = l[0];
|
|
2600
2600
|
var p = `constructor ${l.name}`;
|
|
2601
2601
|
void 0 === l.i.$ && (l.i.$ = []);
|
|
@@ -2603,62 +2603,62 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2603
2603
|
throw new bc(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${l.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
2604
2604
|
}
|
|
2605
2605
|
l.i.$[b - 1] = () => {
|
|
2606
|
-
|
|
2606
|
+
Wc(`Cannot construct ${l.name} due to unbound types`, g);
|
|
2607
2607
|
};
|
|
2608
|
-
|
|
2608
|
+
V([], g, function(m) {
|
|
2609
2609
|
m.splice(1, 0, null);
|
|
2610
|
-
l.i.$[b - 1] =
|
|
2610
|
+
l.i.$[b - 1] = Xc(p, m, null, e, f);
|
|
2611
2611
|
return [];
|
|
2612
2612
|
});
|
|
2613
2613
|
return [];
|
|
2614
2614
|
});
|
|
2615
2615
|
}, _embind_register_class_function:function(a, b, c, d, e, f, g, l) {
|
|
2616
|
-
var p =
|
|
2617
|
-
b =
|
|
2618
|
-
f =
|
|
2619
|
-
|
|
2616
|
+
var p = Yc(c, d);
|
|
2617
|
+
b = U(b);
|
|
2618
|
+
f = X(e, f);
|
|
2619
|
+
V([], [a], function(m) {
|
|
2620
2620
|
function t() {
|
|
2621
|
-
|
|
2621
|
+
Wc(`Cannot call ${v} due to unbound types`, p);
|
|
2622
2622
|
}
|
|
2623
2623
|
m = m[0];
|
|
2624
2624
|
var v = `${m.name}.${b}`;
|
|
2625
2625
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2626
2626
|
l && m.i.mb.push(b);
|
|
2627
2627
|
var x = m.i.N, n = x[b];
|
|
2628
|
-
void 0 === n || void 0 === n.B && n.className !== m.name && n.ga === c - 2 ? (t.ga = c - 2, t.className = m.name, x[b] = t) : (
|
|
2629
|
-
|
|
2630
|
-
q =
|
|
2628
|
+
void 0 === n || void 0 === n.B && n.className !== m.name && n.ga === c - 2 ? (t.ga = c - 2, t.className = m.name, x[b] = t) : (Ic(x, b, v), x[b].B[c - 2] = t);
|
|
2629
|
+
V([], p, function(q) {
|
|
2630
|
+
q = Xc(v, q, m, f, g);
|
|
2631
2631
|
void 0 === x[b].B ? (q.ga = c - 2, x[b] = q) : x[b].B[c - 2] = q;
|
|
2632
2632
|
return [];
|
|
2633
2633
|
});
|
|
2634
2634
|
return [];
|
|
2635
2635
|
});
|
|
2636
2636
|
}, _embind_register_class_property:function(a, b, c, d, e, f, g, l, p, m) {
|
|
2637
|
-
b =
|
|
2638
|
-
e =
|
|
2639
|
-
|
|
2637
|
+
b = U(b);
|
|
2638
|
+
e = X(d, e);
|
|
2639
|
+
V([], [a], function(t) {
|
|
2640
2640
|
t = t[0];
|
|
2641
2641
|
var v = `${t.name}.${b}`, x = {get() {
|
|
2642
|
-
|
|
2642
|
+
Wc(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2643
2643
|
}, enumerable:!0, configurable:!0};
|
|
2644
2644
|
x.set = p ? () => {
|
|
2645
|
-
|
|
2645
|
+
Wc(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2646
2646
|
} : () => {
|
|
2647
2647
|
R(v + " is a read-only property");
|
|
2648
2648
|
};
|
|
2649
2649
|
Object.defineProperty(t.i.N, b, x);
|
|
2650
|
-
|
|
2650
|
+
V([], p ? [c, g] : [c], function(n) {
|
|
2651
2651
|
var q = n[0], u = {get() {
|
|
2652
|
-
var z =
|
|
2652
|
+
var z = Zc(this, t, v + " getter");
|
|
2653
2653
|
return q.fromWireType(e(f, z));
|
|
2654
2654
|
}, enumerable:!0};
|
|
2655
2655
|
if (p) {
|
|
2656
|
-
p =
|
|
2656
|
+
p = X(l, p);
|
|
2657
2657
|
var y = n[1];
|
|
2658
2658
|
u.set = function(z) {
|
|
2659
|
-
var A =
|
|
2659
|
+
var A = Zc(this, t, v + " setter"), G = [];
|
|
2660
2660
|
p(m, A, y.toWireType(G, z));
|
|
2661
|
-
|
|
2661
|
+
Ac(G);
|
|
2662
2662
|
};
|
|
2663
2663
|
}
|
|
2664
2664
|
Object.defineProperty(t.i.N, b, u);
|
|
@@ -2667,57 +2667,57 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2667
2667
|
return [];
|
|
2668
2668
|
});
|
|
2669
2669
|
}, _embind_register_emval:function(a, b) {
|
|
2670
|
-
b =
|
|
2671
|
-
|
|
2670
|
+
b = U(b);
|
|
2671
|
+
W(a, {name:b, fromWireType:function(c) {
|
|
2672
2672
|
var d = S(c);
|
|
2673
|
-
|
|
2673
|
+
$c(c);
|
|
2674
2674
|
return d;
|
|
2675
2675
|
}, toWireType:function(c, d) {
|
|
2676
|
-
return
|
|
2677
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2676
|
+
return T(d);
|
|
2677
|
+
}, argPackAdvance:8, readValueFromPointer:Bc, K:null,});
|
|
2678
2678
|
}, _embind_register_enum:function(a, b, c, d) {
|
|
2679
2679
|
function e() {
|
|
2680
2680
|
}
|
|
2681
|
-
c =
|
|
2682
|
-
b =
|
|
2681
|
+
c = Ec(c);
|
|
2682
|
+
b = U(b);
|
|
2683
2683
|
e.values = {};
|
|
2684
|
-
|
|
2684
|
+
W(a, {name:b, constructor:e, fromWireType:function(f) {
|
|
2685
2685
|
return this.constructor.values[f];
|
|
2686
2686
|
}, toWireType:function(f, g) {
|
|
2687
2687
|
return g.value;
|
|
2688
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2689
|
-
|
|
2688
|
+
}, argPackAdvance:8, readValueFromPointer:ad(b, c, d), K:null,});
|
|
2689
|
+
Jc(b, e);
|
|
2690
2690
|
}, _embind_register_enum_value:function(a, b, c) {
|
|
2691
|
-
var d =
|
|
2692
|
-
b =
|
|
2691
|
+
var d = oc(a, "enum");
|
|
2692
|
+
b = U(b);
|
|
2693
2693
|
a = d.constructor;
|
|
2694
2694
|
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:$b(`${d.name}_${b}`, function() {
|
|
2695
2695
|
})},});
|
|
2696
2696
|
a.values[c] = d;
|
|
2697
2697
|
a[b] = d;
|
|
2698
2698
|
}, _embind_register_float:function(a, b, c) {
|
|
2699
|
-
c =
|
|
2700
|
-
b =
|
|
2701
|
-
|
|
2699
|
+
c = Ec(c);
|
|
2700
|
+
b = U(b);
|
|
2701
|
+
W(a, {name:b, fromWireType:function(d) {
|
|
2702
2702
|
return d;
|
|
2703
2703
|
}, toWireType:function(d, e) {
|
|
2704
2704
|
return e;
|
|
2705
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2705
|
+
}, argPackAdvance:8, readValueFromPointer:bd(b, c), K:null,});
|
|
2706
2706
|
}, _embind_register_function:function(a, b, c, d, e, f) {
|
|
2707
|
-
var g =
|
|
2708
|
-
a =
|
|
2709
|
-
e =
|
|
2710
|
-
|
|
2711
|
-
|
|
2707
|
+
var g = Yc(b, c);
|
|
2708
|
+
a = U(a);
|
|
2709
|
+
e = X(d, e);
|
|
2710
|
+
Jc(a, function() {
|
|
2711
|
+
Wc(`Cannot call ${a} due to unbound types`, g);
|
|
2712
2712
|
}, b - 1);
|
|
2713
|
-
|
|
2714
|
-
|
|
2713
|
+
V([], g, function(l) {
|
|
2714
|
+
Rc(a, Xc(a, [l[0], null].concat(l.slice(1)), null, e, f), b - 1);
|
|
2715
2715
|
return [];
|
|
2716
2716
|
});
|
|
2717
2717
|
}, _embind_register_integer:function(a, b, c, d, e) {
|
|
2718
|
-
b =
|
|
2718
|
+
b = U(b);
|
|
2719
2719
|
-1 === e && (e = 4294967295);
|
|
2720
|
-
e =
|
|
2720
|
+
e = Ec(c);
|
|
2721
2721
|
var f = l => l;
|
|
2722
2722
|
if (0 === d) {
|
|
2723
2723
|
var g = 32 - 8 * c;
|
|
@@ -2728,7 +2728,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2728
2728
|
} : function(l, p) {
|
|
2729
2729
|
return p;
|
|
2730
2730
|
};
|
|
2731
|
-
|
|
2731
|
+
W(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:cd(b, e, 0 !== d), K:null,});
|
|
2732
2732
|
}, _embind_register_memory_view:function(a, b, c) {
|
|
2733
2733
|
function d(f) {
|
|
2734
2734
|
f >>= 2;
|
|
@@ -2736,12 +2736,12 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2736
2736
|
return new e(g.buffer, g[f + 1], g[f]);
|
|
2737
2737
|
}
|
|
2738
2738
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2739
|
-
c =
|
|
2740
|
-
|
|
2739
|
+
c = U(c);
|
|
2740
|
+
W(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Ub:!0,});
|
|
2741
2741
|
}, _embind_register_std_string:function(a, b) {
|
|
2742
|
-
b =
|
|
2742
|
+
b = U(b);
|
|
2743
2743
|
var c = "std::string" === b;
|
|
2744
|
-
|
|
2744
|
+
W(a, {name:b, fromWireType:function(d) {
|
|
2745
2745
|
var e = K[d >> 2], f = d + 4;
|
|
2746
2746
|
if (c) {
|
|
2747
2747
|
for (var g = f, l = 0; l <= e; ++l) {
|
|
@@ -2763,7 +2763,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2763
2763
|
}
|
|
2764
2764
|
m = m.join("");
|
|
2765
2765
|
}
|
|
2766
|
-
|
|
2766
|
+
nc(d);
|
|
2767
2767
|
return m;
|
|
2768
2768
|
}, toWireType:function(d, e) {
|
|
2769
2769
|
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
@@ -2778,7 +2778,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2778
2778
|
if (f) {
|
|
2779
2779
|
for (f = 0; f < g; ++f) {
|
|
2780
2780
|
var m = e.charCodeAt(f);
|
|
2781
|
-
255 < m && (
|
|
2781
|
+
255 < m && (nc(p), R("String has UTF-16 code units that do not fit in 8 bits"));
|
|
2782
2782
|
F[p + f] = m;
|
|
2783
2783
|
}
|
|
2784
2784
|
} else {
|
|
@@ -2787,79 +2787,79 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2787
2787
|
}
|
|
2788
2788
|
}
|
|
2789
2789
|
}
|
|
2790
|
-
null !== d && d.push(
|
|
2790
|
+
null !== d && d.push(nc, l);
|
|
2791
2791
|
return l;
|
|
2792
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2793
|
-
|
|
2792
|
+
}, argPackAdvance:8, readValueFromPointer:Bc, K:function(d) {
|
|
2793
|
+
nc(d);
|
|
2794
2794
|
},});
|
|
2795
2795
|
}, _embind_register_std_wstring:function(a, b, c) {
|
|
2796
|
-
c =
|
|
2796
|
+
c = U(c);
|
|
2797
2797
|
if (2 === b) {
|
|
2798
|
-
var d =
|
|
2799
|
-
var e =
|
|
2800
|
-
var f =
|
|
2798
|
+
var d = ed;
|
|
2799
|
+
var e = fd;
|
|
2800
|
+
var f = gd;
|
|
2801
2801
|
var g = () => wa;
|
|
2802
2802
|
var l = 1;
|
|
2803
2803
|
} else {
|
|
2804
|
-
4 === b && (d =
|
|
2804
|
+
4 === b && (d = hd, e = jd, f = kd, g = () => K, l = 2);
|
|
2805
2805
|
}
|
|
2806
|
-
|
|
2806
|
+
W(a, {name:c, fromWireType:function(p) {
|
|
2807
2807
|
for (var m = K[p >> 2], t = g(), v, x = p + 4, n = 0; n <= m; ++n) {
|
|
2808
2808
|
var q = p + 4 + n * b;
|
|
2809
2809
|
if (n == m || 0 == t[q >> l]) {
|
|
2810
2810
|
x = d(x, q - x), void 0 === v ? v = x : (v += String.fromCharCode(0), v += x), x = q + b;
|
|
2811
2811
|
}
|
|
2812
2812
|
}
|
|
2813
|
-
|
|
2813
|
+
nc(p);
|
|
2814
2814
|
return v;
|
|
2815
2815
|
}, toWireType:function(p, m) {
|
|
2816
2816
|
"string" != typeof m && R(`Cannot pass non-string to C++ string type ${c}`);
|
|
2817
2817
|
var t = f(m), v = Nd(4 + t + b);
|
|
2818
2818
|
K[v >> 2] = t >> l;
|
|
2819
2819
|
e(m, v + 4, t + b);
|
|
2820
|
-
null !== p && p.push(
|
|
2820
|
+
null !== p && p.push(nc, v);
|
|
2821
2821
|
return v;
|
|
2822
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2823
|
-
|
|
2822
|
+
}, argPackAdvance:8, readValueFromPointer:Bc, K:function(p) {
|
|
2823
|
+
nc(p);
|
|
2824
2824
|
},});
|
|
2825
2825
|
}, _embind_register_value_object:function(a, b, c, d, e, f) {
|
|
2826
|
-
|
|
2826
|
+
zc[a] = {name:U(b), Ra:X(c, d), W:X(e, f), ab:[],};
|
|
2827
2827
|
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, l, p, m) {
|
|
2828
|
-
|
|
2828
|
+
zc[a].ab.push({Mb:U(b), Sb:c, Qb:X(d, e), Rb:f, hc:g, fc:X(l, p), ic:m,});
|
|
2829
2829
|
}, _embind_register_void:function(a, b) {
|
|
2830
|
-
b =
|
|
2831
|
-
|
|
2830
|
+
b = U(b);
|
|
2831
|
+
W(a, {$b:!0, name:b, argPackAdvance:0, fromWireType:function() {
|
|
2832
2832
|
}, toWireType:function() {
|
|
2833
2833
|
},});
|
|
2834
2834
|
}, _emscripten_get_now_is_monotonic:() => !0, _emval_as:function(a, b, c) {
|
|
2835
2835
|
a = S(a);
|
|
2836
|
-
b =
|
|
2837
|
-
var d = [], e =
|
|
2836
|
+
b = oc(b, "emval::as");
|
|
2837
|
+
var d = [], e = T(d);
|
|
2838
2838
|
K[c >> 2] = e;
|
|
2839
2839
|
return b.toWireType(d, a);
|
|
2840
2840
|
}, _emval_call_method:function(a, b, c, d, e) {
|
|
2841
|
-
a =
|
|
2841
|
+
a = nd[a];
|
|
2842
2842
|
b = S(b);
|
|
2843
|
-
c =
|
|
2843
|
+
c = md(c);
|
|
2844
2844
|
var f = [];
|
|
2845
|
-
K[d >> 2] =
|
|
2845
|
+
K[d >> 2] = T(f);
|
|
2846
2846
|
return a(b, c, f, e);
|
|
2847
2847
|
}, _emval_call_void_method:function(a, b, c, d) {
|
|
2848
|
-
a =
|
|
2848
|
+
a = nd[a];
|
|
2849
2849
|
b = S(b);
|
|
2850
|
-
c =
|
|
2850
|
+
c = md(c);
|
|
2851
2851
|
a(b, c, null, d);
|
|
2852
|
-
}, _emval_decref
|
|
2853
|
-
var c =
|
|
2852
|
+
}, _emval_decref:$c, _emval_get_method_caller:function(a, b) {
|
|
2853
|
+
var c = pd(a, b), d = c[0];
|
|
2854
2854
|
b = d.name + "_$" + c.slice(1).map(function(g) {
|
|
2855
2855
|
return g.name;
|
|
2856
2856
|
}).join("_") + "$";
|
|
2857
|
-
var e =
|
|
2857
|
+
var e = qd[b];
|
|
2858
2858
|
if (void 0 !== e) {
|
|
2859
2859
|
return e;
|
|
2860
2860
|
}
|
|
2861
2861
|
var f = Array(a - 1);
|
|
2862
|
-
e =
|
|
2862
|
+
e = od((g, l, p, m) => {
|
|
2863
2863
|
for (var t = 0, v = 0; v < a - 1; ++v) {
|
|
2864
2864
|
f[v] = c[v + 1].readValueFromPointer(m + t), t += c[v + 1].argPackAdvance;
|
|
2865
2865
|
}
|
|
@@ -2871,30 +2871,32 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2871
2871
|
return d.toWireType(p, g);
|
|
2872
2872
|
}
|
|
2873
2873
|
});
|
|
2874
|
-
return
|
|
2874
|
+
return qd[b] = e;
|
|
2875
2875
|
}, _emval_get_property:function(a, b) {
|
|
2876
2876
|
a = S(a);
|
|
2877
2877
|
b = S(b);
|
|
2878
|
-
return
|
|
2878
|
+
return T(a[b]);
|
|
2879
2879
|
}, _emval_incref:function(a) {
|
|
2880
2880
|
4 < a && (Q.get(a).qb += 1);
|
|
2881
|
+
}, _emval_new_array:function() {
|
|
2882
|
+
return T([]);
|
|
2881
2883
|
}, _emval_new_cstring:function(a) {
|
|
2882
|
-
return
|
|
2884
|
+
return T(md(a));
|
|
2883
2885
|
}, _emval_new_object:function() {
|
|
2884
|
-
return
|
|
2886
|
+
return T({});
|
|
2885
2887
|
}, _emval_run_destructors:function(a) {
|
|
2886
2888
|
var b = S(a);
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
+
Ac(b);
|
|
2890
|
+
$c(a);
|
|
2889
2891
|
}, _emval_set_property:function(a, b, c) {
|
|
2890
2892
|
a = S(a);
|
|
2891
2893
|
b = S(b);
|
|
2892
2894
|
c = S(c);
|
|
2893
2895
|
a[b] = c;
|
|
2894
2896
|
}, _emval_take_value:function(a, b) {
|
|
2895
|
-
a =
|
|
2897
|
+
a = oc(a, "_emval_take_value");
|
|
2896
2898
|
a = a.readValueFromPointer(b);
|
|
2897
|
-
return
|
|
2899
|
+
return T(a);
|
|
2898
2900
|
}, abort:() => {
|
|
2899
2901
|
ta("");
|
|
2900
2902
|
}, beginPixelLocalStorageWEBGL:function(a, b, c) {
|
|
@@ -2915,12 +2917,12 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2915
2917
|
var b = k.images;
|
|
2916
2918
|
b && b.get(a) && b.delete(a);
|
|
2917
2919
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
2918
|
-
|
|
2920
|
+
rd.length = 0;
|
|
2919
2921
|
var d;
|
|
2920
2922
|
for (c >>= 2; d = F[b++];) {
|
|
2921
|
-
c += 105 != d & c,
|
|
2923
|
+
c += 105 != d & c, rd.push(105 == d ? J[c] : ya[c++ >> 1]), ++c;
|
|
2922
2924
|
}
|
|
2923
|
-
return Ua[a].apply(null,
|
|
2925
|
+
return Ua[a].apply(null, rd);
|
|
2924
2926
|
}, emscripten_date_now:function() {
|
|
2925
2927
|
return Date.now();
|
|
2926
2928
|
}, emscripten_get_now:() => performance.now(), emscripten_memcpy_big:(a, b, c) => F.copyWithin(a, b, b + c), emscripten_resize_heap:a => {
|
|
@@ -2954,8 +2956,8 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2954
2956
|
a = w[a];
|
|
2955
2957
|
b = b ? M(F, b) : "";
|
|
2956
2958
|
b.startsWith("GL_") && (b = b.substr(3));
|
|
2957
|
-
"WEBGL_draw_instanced_base_vertex_base_instance" == b &&
|
|
2958
|
-
"WEBGL_multi_draw_instanced_base_vertex_base_instance" == b &&
|
|
2959
|
+
"WEBGL_draw_instanced_base_vertex_base_instance" == b && sd(Z);
|
|
2960
|
+
"WEBGL_multi_draw_instanced_base_vertex_base_instance" == b && td(Z);
|
|
2959
2961
|
"WEBGL_multi_draw" == b && Gd(Z);
|
|
2960
2962
|
return !!a.D.getExtension(b);
|
|
2961
2963
|
}, emscripten_webgl_get_current_context:function() {
|
|
@@ -3145,12 +3147,12 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3145
3147
|
}, glActiveTexture:function(a) {
|
|
3146
3148
|
Z.activeTexture(a);
|
|
3147
3149
|
}, glAttachShader:function(a, b) {
|
|
3148
|
-
Z.attachShader(
|
|
3150
|
+
Z.attachShader(wd[a], Ad[b]);
|
|
3149
3151
|
}, glBindBuffer:function(a, b) {
|
|
3150
3152
|
35051 == a ? Z.Ya = b : 35052 == a && (Z.Ma = b);
|
|
3151
|
-
Z.bindBuffer(a,
|
|
3153
|
+
Z.bindBuffer(a, vd[b]);
|
|
3152
3154
|
}, glBindBufferRange:function(a, b, c, d, e) {
|
|
3153
|
-
Z.bindBufferRange(a, b,
|
|
3155
|
+
Z.bindBufferRange(a, b, vd[c], d, e);
|
|
3154
3156
|
}, glBindFramebuffer:function(a, b) {
|
|
3155
3157
|
Z.bindFramebuffer(a, xd[b]);
|
|
3156
3158
|
}, glBindRenderbuffer:function(a, b) {
|
|
@@ -3182,11 +3184,11 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3182
3184
|
}, glCompileShader:function(a) {
|
|
3183
3185
|
Z.compileShader(Ad[a]);
|
|
3184
3186
|
}, glCreateProgram:function() {
|
|
3185
|
-
var a = Ed(
|
|
3187
|
+
var a = Ed(wd), b = Z.createProgram();
|
|
3186
3188
|
b.name = a;
|
|
3187
3189
|
b.Hc = b.Fc = b.Gc = 0;
|
|
3188
3190
|
b.Ua = 1;
|
|
3189
|
-
|
|
3191
|
+
wd[a] = b;
|
|
3190
3192
|
return a;
|
|
3191
3193
|
}, glCreateShader:function(a) {
|
|
3192
3194
|
var b = Ed(Ad);
|
|
@@ -3196,8 +3198,8 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3196
3198
|
Z.cullFace(a);
|
|
3197
3199
|
}, glDeleteBuffers:function(a, b) {
|
|
3198
3200
|
for (var c = 0; c < a; c++) {
|
|
3199
|
-
var d = J[b + 4 * c >> 2], e =
|
|
3200
|
-
e && (Z.deleteBuffer(e), e.name = 0,
|
|
3201
|
+
var d = J[b + 4 * c >> 2], e = vd[d];
|
|
3202
|
+
e && (Z.deleteBuffer(e), e.name = 0, vd[d] = null, d == Z.Ya && (Z.Ya = 0), d == Z.Ma && (Z.Ma = 0));
|
|
3201
3203
|
}
|
|
3202
3204
|
}, glDeleteFramebuffers:function(a, b) {
|
|
3203
3205
|
for (var c = 0; c < a; ++c) {
|
|
@@ -3206,8 +3208,8 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3206
3208
|
}
|
|
3207
3209
|
}, glDeleteProgram:function(a) {
|
|
3208
3210
|
if (a) {
|
|
3209
|
-
var b =
|
|
3210
|
-
b ? (Z.deleteProgram(b), b.name = 0,
|
|
3211
|
+
var b = wd[a];
|
|
3212
|
+
b ? (Z.deleteProgram(b), b.name = 0, wd[a] = null) : Y(1281);
|
|
3211
3213
|
}
|
|
3212
3214
|
}, glDeleteRenderbuffers:function(a, b) {
|
|
3213
3215
|
for (var c = 0; c < a; c++) {
|
|
@@ -3264,7 +3266,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3264
3266
|
}, glFrontFace:function(a) {
|
|
3265
3267
|
Z.frontFace(a);
|
|
3266
3268
|
}, glGenBuffers:function(a, b) {
|
|
3267
|
-
Ld(a, b, "createBuffer",
|
|
3269
|
+
Ld(a, b, "createBuffer", vd);
|
|
3268
3270
|
}, glGenFramebuffers:function(a, b) {
|
|
3269
3271
|
Ld(a, b, "createFramebuffer", xd);
|
|
3270
3272
|
}, glGenRenderbuffers:function(a, b) {
|
|
@@ -3311,10 +3313,10 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3311
3313
|
}
|
|
3312
3314
|
return b;
|
|
3313
3315
|
}, glGetUniformBlockIndex:function(a, b) {
|
|
3314
|
-
return Z.getUniformBlockIndex(
|
|
3316
|
+
return Z.getUniformBlockIndex(wd[a], b ? M(F, b) : "");
|
|
3315
3317
|
}, glGetUniformLocation:function(a, b) {
|
|
3316
3318
|
b = b ? M(F, b) : "";
|
|
3317
|
-
if (a =
|
|
3319
|
+
if (a = wd[a]) {
|
|
3318
3320
|
var c = a, d = c.oa, e = c.vb, f;
|
|
3319
3321
|
if (!d) {
|
|
3320
3322
|
for (c.oa = d = {}, c.ub = {}, f = 0; f < Z.getProgramParameter(c, 35718); ++f) {
|
|
@@ -3349,7 +3351,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3349
3351
|
}
|
|
3350
3352
|
Z.invalidateFramebuffer(a, d);
|
|
3351
3353
|
}, glLinkProgram:function(a) {
|
|
3352
|
-
a =
|
|
3354
|
+
a = wd[a];
|
|
3353
3355
|
Z.linkProgram(a);
|
|
3354
3356
|
a.oa = 0;
|
|
3355
3357
|
a.vb = {};
|
|
@@ -3402,10 +3404,10 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3402
3404
|
}
|
|
3403
3405
|
d.call(c, a, b);
|
|
3404
3406
|
}, glUniformBlockBinding:function(a, b, c) {
|
|
3405
|
-
a =
|
|
3407
|
+
a = wd[a];
|
|
3406
3408
|
Z.uniformBlockBinding(a, b, c);
|
|
3407
3409
|
}, glUseProgram:function(a) {
|
|
3408
|
-
a =
|
|
3410
|
+
a = wd[a];
|
|
3409
3411
|
Z.useProgram(a);
|
|
3410
3412
|
Z.Hb = a;
|
|
3411
3413
|
}, glVertexAttribDivisor:function(a, b) {
|
|
@@ -3453,12 +3455,12 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3453
3455
|
}).catch(ca);
|
|
3454
3456
|
return {};
|
|
3455
3457
|
})();
|
|
3456
|
-
var
|
|
3458
|
+
var nc = a => (nc = C.free)(a), Nd = a => (Nd = C.malloc)(a);
|
|
3457
3459
|
k._setWebImage = (a, b, c) => (k._setWebImage = C.setWebImage)(a, b, c);
|
|
3458
3460
|
var Ra = k._ma_device__on_notification_unlocked = a => (Ra = k._ma_device__on_notification_unlocked = C.ma_device__on_notification_unlocked)(a);
|
|
3459
3461
|
k._ma_malloc_emscripten = (a, b) => (k._ma_malloc_emscripten = C.ma_malloc_emscripten)(a, b);
|
|
3460
3462
|
k._ma_free_emscripten = (a, b) => (k._ma_free_emscripten = C.ma_free_emscripten)(a, b);
|
|
3461
|
-
var Sa = k._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Sa = k._ma_device_process_pcm_frames_capture__webaudio = C.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Ta = k._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Ta = k._ma_device_process_pcm_frames_playback__webaudio = C.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Xd = () => (Xd = C.__errno_location)(),
|
|
3463
|
+
var Sa = k._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Sa = k._ma_device_process_pcm_frames_capture__webaudio = C.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Ta = k._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Ta = k._ma_device_process_pcm_frames_playback__webaudio = C.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Xd = () => (Xd = C.__errno_location)(), mc = a => (mc = C.__getTypeName)(a);
|
|
3462
3464
|
k.__embind_initialize_bindings = () => (k.__embind_initialize_bindings = C._embind_initialize_bindings)();
|
|
3463
3465
|
k.dynCall_iiji = (a, b, c, d, e) => (k.dynCall_iiji = C.dynCall_iiji)(a, b, c, d, e);
|
|
3464
3466
|
k.dynCall_iiiji = (a, b, c, d, e, f) => (k.dynCall_iiiji = C.dynCall_iiiji)(a, b, c, d, e, f);
|
|
@@ -3469,8 +3471,8 @@ k.dynCall_viijii = (a, b, c, d, e, f, g) => (k.dynCall_viijii = C.dynCall_viijii
|
|
|
3469
3471
|
k.dynCall_iiiiij = (a, b, c, d, e, f, g) => (k.dynCall_iiiiij = C.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3470
3472
|
k.dynCall_iiiiijj = (a, b, c, d, e, f, g, l, p) => (k.dynCall_iiiiijj = C.dynCall_iiiiijj)(a, b, c, d, e, f, g, l, p);
|
|
3471
3473
|
k.dynCall_iiiiiijj = (a, b, c, d, e, f, g, l, p, m) => (k.dynCall_iiiiiijj = C.dynCall_iiiiiijj)(a, b, c, d, e, f, g, l, p, m);
|
|
3472
|
-
k.___start_em_js =
|
|
3473
|
-
k.___stop_em_js =
|
|
3474
|
+
k.___start_em_js = 507532;
|
|
3475
|
+
k.___stop_em_js = 509966;
|
|
3474
3476
|
var Zd;
|
|
3475
3477
|
Ha = function $d() {
|
|
3476
3478
|
Zd || ae();
|
|
@@ -3482,7 +3484,7 @@ function ae() {
|
|
|
3482
3484
|
k.noFSInit || Tb || (Tb = !0, Sb(), k.stdin = k.stdin, k.stdout = k.stdout, k.stderr = k.stderr, k.stdin ? Vb("stdin", k.stdin) : Ob("/dev/tty", "/dev/stdin"), k.stdout ? Vb("stdout", null, k.stdout) : Ob("/dev/tty", "/dev/stdout"), k.stderr ? Vb("stderr", null, k.stderr) : Ob("/dev/tty1", "/dev/stderr"), Qb("/dev/stdin", 0), Qb("/dev/stdout", 1), Qb("/dev/stderr", 1));
|
|
3483
3485
|
zb = !1;
|
|
3484
3486
|
Va(Ca);
|
|
3485
|
-
|
|
3487
|
+
aa(k);
|
|
3486
3488
|
if (k.onRuntimeInitialized) {
|
|
3487
3489
|
k.onRuntimeInitialized();
|
|
3488
3490
|
}
|