@rive-app/canvas-advanced 2.29.0 → 2.29.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 +586 -585
- 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
|
@@ -10,7 +10,7 @@ m.ready = new Promise((a, b) => {
|
|
|
10
10
|
aa = a;
|
|
11
11
|
ba = b;
|
|
12
12
|
});
|
|
13
|
-
function
|
|
13
|
+
function ca() {
|
|
14
14
|
function a(g) {
|
|
15
15
|
const n = d;
|
|
16
16
|
c = b = 0;
|
|
@@ -56,7 +56,7 @@ function fa() {
|
|
|
56
56
|
this.pb = function() {
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function fa(a) {
|
|
60
60
|
console.assert(!0);
|
|
61
61
|
const b = new Map();
|
|
62
62
|
let c = -Infinity;
|
|
@@ -71,9 +71,9 @@ function ha(a) {
|
|
|
71
71
|
return c << a;
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
const
|
|
74
|
+
const ha = m.onRuntimeInitialized;
|
|
75
75
|
m.onRuntimeInitialized = function() {
|
|
76
|
-
|
|
76
|
+
ha && ha();
|
|
77
77
|
let a = m.decodeAudio;
|
|
78
78
|
m.decodeAudio = function(e, f) {
|
|
79
79
|
e = a(e);
|
|
@@ -135,7 +135,7 @@ m.onRuntimeInitialized = function() {
|
|
|
135
135
|
return d.call(this, e, f, g, n, p);
|
|
136
136
|
};
|
|
137
137
|
};
|
|
138
|
-
const
|
|
138
|
+
const ia = "createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "), ja = new function() {
|
|
139
139
|
function a() {
|
|
140
140
|
if (!b) {
|
|
141
141
|
var k = document.createElement("canvas"), t = {alpha:1, depth:0, stencil:0, antialias:0, premultipliedAlpha:1, preserveDrawingBuffer:0, powerPreference:"high-performance", failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:1, explicitSwapControl:1, renderViaOffscreenBackBuffer:1,};
|
|
@@ -174,7 +174,7 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
174
174
|
}
|
|
175
175
|
},});
|
|
176
176
|
d = Math.min(r.getParameter(r.MAX_RENDERBUFFER_SIZE), r.getParameter(r.MAX_TEXTURE_SIZE));
|
|
177
|
-
function
|
|
177
|
+
function A(D, w, M) {
|
|
178
178
|
w = r.createShader(w);
|
|
179
179
|
r.shaderSource(w, M);
|
|
180
180
|
r.compileShader(w);
|
|
@@ -185,8 +185,8 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
185
185
|
r.attachShader(D, w);
|
|
186
186
|
}
|
|
187
187
|
k = r.createProgram();
|
|
188
|
-
|
|
189
|
-
|
|
188
|
+
A(k, r.VERTEX_SHADER, "attribute vec2 vertex;\n attribute vec2 uv;\n uniform vec4 mat;\n uniform vec2 translate;\n varying vec2 st;\n void main() {\n st = uv;\n gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);\n }");
|
|
189
|
+
A(k, r.FRAGMENT_SHADER, "precision highp float;\n uniform sampler2D image;\n varying vec2 st;\n void main() {\n gl_FragColor = texture2D(image, st);\n }");
|
|
190
190
|
r.bindAttribLocation(k, 0, "vertex");
|
|
191
191
|
r.bindAttribLocation(k, 1, "uv");
|
|
192
192
|
r.linkProgram(k);
|
|
@@ -232,8 +232,8 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
232
232
|
2 == c ? (b.texParameteri(b.TEXTURE_2D, b.TEXTURE_MIN_FILTER, b.LINEAR_MIPMAP_LINEAR), b.generateMipmap(b.TEXTURE_2D)) : b.texParameteri(b.TEXTURE_2D, b.TEXTURE_MIN_FILTER, b.LINEAR);
|
|
233
233
|
return t;
|
|
234
234
|
};
|
|
235
|
-
const l = new
|
|
236
|
-
this.Qb = function(k, t, r,
|
|
235
|
+
const l = new fa(8), u = new fa(8), v = new fa(10), y = new fa(10);
|
|
236
|
+
this.Qb = function(k, t, r, A, D) {
|
|
237
237
|
if (a()) {
|
|
238
238
|
var w = l.push(k), M = u.push(t);
|
|
239
239
|
if (b.canvas) {
|
|
@@ -245,19 +245,19 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
245
245
|
b.clearColor(0, 0, 0, 0);
|
|
246
246
|
b.clear(b.COLOR_BUFFER_BIT);
|
|
247
247
|
b.enable(b.SCISSOR_TEST);
|
|
248
|
-
r.sort((H,
|
|
249
|
-
w = v.push(
|
|
248
|
+
r.sort((H, da) => da.xb - H.xb);
|
|
249
|
+
w = v.push(A);
|
|
250
250
|
g != w && (b.bufferData(b.ARRAY_BUFFER, 8 * w, b.DYNAMIC_DRAW), g = w);
|
|
251
251
|
w = 0;
|
|
252
252
|
for (var T of r) {
|
|
253
253
|
b.bufferSubData(b.ARRAY_BUFFER, w, T.Ua), w += 4 * T.Ua.length;
|
|
254
254
|
}
|
|
255
|
-
console.assert(w == 4 *
|
|
256
|
-
for (var
|
|
257
|
-
b.bufferSubData(b.ARRAY_BUFFER, w,
|
|
255
|
+
console.assert(w == 4 * A);
|
|
256
|
+
for (var ea of r) {
|
|
257
|
+
b.bufferSubData(b.ARRAY_BUFFER, w, ea.Db), w += 4 * ea.Db.length;
|
|
258
258
|
}
|
|
259
|
-
console.assert(w == 8 *
|
|
260
|
-
w =
|
|
259
|
+
console.assert(w == 8 * A);
|
|
260
|
+
w = y.push(D);
|
|
261
261
|
n != w && (b.bufferData(b.ELEMENT_ARRAY_BUFFER, 2 * w, b.DYNAMIC_DRAW), n = w);
|
|
262
262
|
T = 0;
|
|
263
263
|
for (var ra of r) {
|
|
@@ -265,22 +265,22 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
265
265
|
}
|
|
266
266
|
console.assert(T == 2 * D);
|
|
267
267
|
ra = 0;
|
|
268
|
-
|
|
268
|
+
ea = !0;
|
|
269
269
|
w = T = 0;
|
|
270
270
|
for (const H of r) {
|
|
271
271
|
H.image.Ka != ra && (b.bindTexture(b.TEXTURE_2D, H.image.Ja || null), ra = H.image.Ka);
|
|
272
|
-
H.mc ? (b.scissor(H.Za, M - H.$a - H.kb, H.Ac, H.kb),
|
|
272
|
+
H.mc ? (b.scissor(H.Za, M - H.$a - H.kb, H.Ac, H.kb), ea = !0) : ea && (b.scissor(0, M - t, k, t), ea = !1);
|
|
273
273
|
r = 2 / k;
|
|
274
|
-
const
|
|
275
|
-
b.uniform4f(e, H.ha[0] * r * H.Ba, H.ha[1] *
|
|
276
|
-
b.uniform2f(f, H.ha[4] * r * H.Ba + r * (H.Za - H.ic * H.Ba) - 1, H.ha[5] *
|
|
274
|
+
const da = -2 / t;
|
|
275
|
+
b.uniform4f(e, H.ha[0] * r * H.Ba, H.ha[1] * da * H.Ca, H.ha[2] * r * H.Ba, H.ha[3] * da * H.Ca);
|
|
276
|
+
b.uniform2f(f, H.ha[4] * r * H.Ba + r * (H.Za - H.ic * H.Ba) - 1, H.ha[5] * da * H.Ca + da * (H.$a - H.jc * H.Ca) + 1);
|
|
277
277
|
b.vertexAttribPointer(0, 2, b.FLOAT, !1, 0, w);
|
|
278
|
-
b.vertexAttribPointer(1, 2, b.FLOAT, !1, 0, w + 4 *
|
|
278
|
+
b.vertexAttribPointer(1, 2, b.FLOAT, !1, 0, w + 4 * A);
|
|
279
279
|
b.drawElements(b.TRIANGLES, H.indices.length, b.UNSIGNED_SHORT, T);
|
|
280
280
|
w += 4 * H.Ua.length;
|
|
281
281
|
T += 2 * H.indices.length;
|
|
282
282
|
}
|
|
283
|
-
console.assert(w == 4 *
|
|
283
|
+
console.assert(w == 4 * A);
|
|
284
284
|
console.assert(T == 2 * D);
|
|
285
285
|
}
|
|
286
286
|
}
|
|
@@ -288,7 +288,7 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
288
288
|
this.canvas = function() {
|
|
289
289
|
return a() && b.canvas;
|
|
290
290
|
};
|
|
291
|
-
}(),
|
|
291
|
+
}(), ka = m.onRuntimeInitialized;
|
|
292
292
|
m.onRuntimeInitialized = function() {
|
|
293
293
|
function a(q) {
|
|
294
294
|
switch(q) {
|
|
@@ -330,67 +330,67 @@ m.onRuntimeInitialized = function() {
|
|
|
330
330
|
return "rgba(" + ((16711680 & q) >>> 16) + "," + ((65280 & q) >>> 8) + "," + ((255 & q) >>> 0) + "," + ((4278190080 & q) >>> 24) / 255 + ")";
|
|
331
331
|
}
|
|
332
332
|
function c() {
|
|
333
|
-
0 < M.length && (
|
|
333
|
+
0 < M.length && (ja.Qb(w.drawWidth(), w.drawHeight(), M, T, ea), M = [], ea = T = 0, w.reset(512, 512));
|
|
334
334
|
for (const q of D) {
|
|
335
|
-
for (const
|
|
336
|
-
|
|
335
|
+
for (const x of q.H) {
|
|
336
|
+
x();
|
|
337
337
|
}
|
|
338
338
|
q.H = [];
|
|
339
339
|
}
|
|
340
340
|
D.clear();
|
|
341
341
|
}
|
|
342
|
-
|
|
342
|
+
ka && ka();
|
|
343
343
|
var d = m.RenderPaintStyle;
|
|
344
|
-
const e = m.RenderPath, f = m.RenderPaint, g = m.Renderer, n = m.StrokeCap, p = m.StrokeJoin, l = m.BlendMode, u = d.fill, v = d.stroke,
|
|
344
|
+
const e = m.RenderPath, f = m.RenderPaint, g = m.Renderer, n = m.StrokeCap, p = m.StrokeJoin, l = m.BlendMode, u = d.fill, v = d.stroke, y = m.FillRule.evenOdd;
|
|
345
345
|
let k = 1;
|
|
346
|
-
var t = m.RenderImage.extend("CanvasRenderImage", {__construct:function({la:q, xa:
|
|
346
|
+
var t = m.RenderImage.extend("CanvasRenderImage", {__construct:function({la:q, xa:x} = {}) {
|
|
347
347
|
this.__parent.__construct.call(this);
|
|
348
348
|
this.Ka = k;
|
|
349
349
|
k = k + 1 & 2147483647 || 1;
|
|
350
350
|
this.la = q;
|
|
351
|
-
this.xa =
|
|
351
|
+
this.xa = x;
|
|
352
352
|
}, __destruct:function() {
|
|
353
|
-
this.Ja && (
|
|
353
|
+
this.Ja && (ja.Mb(this.Ja), URL.revokeObjectURL(this.Xa));
|
|
354
354
|
this.__parent.__destruct.call(this);
|
|
355
355
|
}, decode:function(q) {
|
|
356
|
-
var
|
|
357
|
-
|
|
356
|
+
var x = this;
|
|
357
|
+
x.xa && x.xa(x);
|
|
358
358
|
var F = new Image();
|
|
359
|
-
|
|
359
|
+
x.Xa = URL.createObjectURL(new Blob([q], {type:"image/png",}));
|
|
360
360
|
F.onload = function() {
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
361
|
+
x.Fb = F;
|
|
362
|
+
x.Ja = ja.Lb(F);
|
|
363
|
+
x.size(F.width, F.height);
|
|
364
|
+
x.la && x.la(x);
|
|
365
365
|
};
|
|
366
|
-
F.src =
|
|
366
|
+
F.src = x.Xa;
|
|
367
367
|
},}), r = e.extend("CanvasRenderPath", {__construct:function() {
|
|
368
368
|
this.__parent.__construct.call(this);
|
|
369
369
|
this.T = new Path2D();
|
|
370
370
|
}, rewind:function() {
|
|
371
371
|
this.T = new Path2D();
|
|
372
|
-
}, addPath:function(q,
|
|
373
|
-
var K = this.T,
|
|
372
|
+
}, addPath:function(q, x, F, I, B, G, J) {
|
|
373
|
+
var K = this.T, Z = K.addPath;
|
|
374
374
|
q = q.T;
|
|
375
375
|
const Q = new DOMMatrix();
|
|
376
|
-
Q.a =
|
|
376
|
+
Q.a = x;
|
|
377
377
|
Q.b = F;
|
|
378
|
-
Q.c =
|
|
379
|
-
Q.d =
|
|
380
|
-
Q.e =
|
|
378
|
+
Q.c = I;
|
|
379
|
+
Q.d = B;
|
|
380
|
+
Q.e = G;
|
|
381
381
|
Q.f = J;
|
|
382
|
-
|
|
382
|
+
Z.call(K, q, Q);
|
|
383
383
|
}, fillRule:function(q) {
|
|
384
384
|
this.Wa = q;
|
|
385
|
-
}, moveTo:function(q,
|
|
386
|
-
this.T.moveTo(q,
|
|
387
|
-
}, lineTo:function(q,
|
|
388
|
-
this.T.lineTo(q,
|
|
389
|
-
}, cubicTo:function(q,
|
|
390
|
-
this.T.bezierCurveTo(q,
|
|
385
|
+
}, moveTo:function(q, x) {
|
|
386
|
+
this.T.moveTo(q, x);
|
|
387
|
+
}, lineTo:function(q, x) {
|
|
388
|
+
this.T.lineTo(q, x);
|
|
389
|
+
}, cubicTo:function(q, x, F, I, B, G) {
|
|
390
|
+
this.T.bezierCurveTo(q, x, F, I, B, G);
|
|
391
391
|
}, close:function() {
|
|
392
392
|
this.T.closePath();
|
|
393
|
-
},}),
|
|
393
|
+
},}), A = f.extend("CanvasRenderPaint", {color:function(q) {
|
|
394
394
|
this.Ya = b(q);
|
|
395
395
|
}, thickness:function(q) {
|
|
396
396
|
this.Ib = q;
|
|
@@ -422,44 +422,44 @@ m.onRuntimeInitialized = function() {
|
|
|
422
422
|
this.Eb = a(q);
|
|
423
423
|
}, clearGradient:function() {
|
|
424
424
|
this.ja = null;
|
|
425
|
-
}, linearGradient:function(q,
|
|
426
|
-
this.ja = {zb:q, Ab:
|
|
427
|
-
}, radialGradient:function(q,
|
|
428
|
-
this.ja = {zb:q, Ab:
|
|
429
|
-
}, addStop:function(q,
|
|
430
|
-
this.ja.Ra.push({color:q, stop:
|
|
425
|
+
}, linearGradient:function(q, x, F, I) {
|
|
426
|
+
this.ja = {zb:q, Ab:x, cb:F, eb:I, Ra:[],};
|
|
427
|
+
}, radialGradient:function(q, x, F, I) {
|
|
428
|
+
this.ja = {zb:q, Ab:x, cb:F, eb:I, Ra:[], ec:!0,};
|
|
429
|
+
}, addStop:function(q, x) {
|
|
430
|
+
this.ja.Ra.push({color:q, stop:x,});
|
|
431
431
|
}, completeGradient:function() {
|
|
432
|
-
}, draw:function(q,
|
|
433
|
-
let
|
|
434
|
-
var
|
|
432
|
+
}, draw:function(q, x, F) {
|
|
433
|
+
let I = this.Hb;
|
|
434
|
+
var B = this.Ya, G = this.ja;
|
|
435
435
|
q.globalCompositeOperation = this.Eb;
|
|
436
|
-
if (null !=
|
|
437
|
-
|
|
438
|
-
var J =
|
|
439
|
-
const
|
|
440
|
-
var K =
|
|
441
|
-
const Q =
|
|
442
|
-
|
|
443
|
-
for (let
|
|
444
|
-
J = Q[
|
|
436
|
+
if (null != G) {
|
|
437
|
+
B = G.zb;
|
|
438
|
+
var J = G.Ab;
|
|
439
|
+
const Z = G.cb;
|
|
440
|
+
var K = G.eb;
|
|
441
|
+
const Q = G.Ra;
|
|
442
|
+
G.ec ? (G = Z - B, K -= J, B = q.createRadialGradient(B, J, 0, B, J, Math.sqrt(G * G + K * K))) : B = q.createLinearGradient(B, J, Z, K);
|
|
443
|
+
for (let X = 0, R = Q.length; X < R; X++) {
|
|
444
|
+
J = Q[X], B.addColorStop(J.stop, b(J.color));
|
|
445
445
|
}
|
|
446
|
-
this.Ya =
|
|
446
|
+
this.Ya = B;
|
|
447
447
|
this.ja = null;
|
|
448
448
|
}
|
|
449
|
-
switch(
|
|
449
|
+
switch(I) {
|
|
450
450
|
case v:
|
|
451
|
-
q.strokeStyle =
|
|
451
|
+
q.strokeStyle = B;
|
|
452
452
|
q.lineWidth = this.Ib;
|
|
453
453
|
q.lineCap = this.Ha;
|
|
454
454
|
q.lineJoin = this.Ia;
|
|
455
|
-
q.stroke(
|
|
455
|
+
q.stroke(x);
|
|
456
456
|
break;
|
|
457
457
|
case u:
|
|
458
|
-
q.fillStyle =
|
|
458
|
+
q.fillStyle = B, q.fill(x, F);
|
|
459
459
|
}
|
|
460
460
|
},});
|
|
461
461
|
const D = new Set();
|
|
462
|
-
let w = null, M = [], T = 0,
|
|
462
|
+
let w = null, M = [], T = 0, ea = 0;
|
|
463
463
|
var ra = m.CanvasRenderer = g.extend("Renderer", {__construct:function(q) {
|
|
464
464
|
this.__parent.__construct.call(this);
|
|
465
465
|
this.S = [1, 0, 0, 1, 0, 0];
|
|
@@ -476,139 +476,140 @@ m.onRuntimeInitialized = function() {
|
|
|
476
476
|
}
|
|
477
477
|
this.S.splice(q);
|
|
478
478
|
this.H.push(this.C.restore.bind(this.C));
|
|
479
|
-
}, transform:function(q,
|
|
479
|
+
}, transform:function(q, x, F, I, B, G) {
|
|
480
480
|
const J = this.S, K = J.length - 6;
|
|
481
|
-
J.splice(K, 6, J[K] * q + J[K + 2] *
|
|
482
|
-
this.H.push(this.C.transform.bind(this.C, q,
|
|
481
|
+
J.splice(K, 6, J[K] * q + J[K + 2] * x, J[K + 1] * q + J[K + 3] * x, J[K] * F + J[K + 2] * I, J[K + 1] * F + J[K + 3] * I, J[K] * B + J[K + 2] * G + J[K + 4], J[K + 1] * B + J[K + 3] * G + J[K + 5]);
|
|
482
|
+
this.H.push(this.C.transform.bind(this.C, q, x, F, I, B, G));
|
|
483
483
|
}, rotate:function(q) {
|
|
484
|
-
const
|
|
484
|
+
const x = Math.sin(q);
|
|
485
485
|
q = Math.cos(q);
|
|
486
|
-
this.transform(q,
|
|
487
|
-
}, _drawPath:function(q,
|
|
488
|
-
this.H.push(
|
|
489
|
-
}, _drawRiveImage:function(q,
|
|
490
|
-
var
|
|
491
|
-
if (
|
|
492
|
-
var
|
|
486
|
+
this.transform(q, x, -x, q, 0, 0);
|
|
487
|
+
}, _drawPath:function(q, x) {
|
|
488
|
+
this.H.push(x.draw.bind(x, this.C, q.T, q.Wa === y ? "evenodd" : "nonzero"));
|
|
489
|
+
}, _drawRiveImage:function(q, x, F, I) {
|
|
490
|
+
var B = q.Fb;
|
|
491
|
+
if (B) {
|
|
492
|
+
var G = this.C, J = a(F);
|
|
493
493
|
this.H.push(function() {
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
494
|
+
G.globalCompositeOperation = J;
|
|
495
|
+
G.globalAlpha = I;
|
|
496
|
+
G.drawImage(B, 0, 0);
|
|
497
|
+
G.globalAlpha = 1;
|
|
498
498
|
});
|
|
499
499
|
}
|
|
500
500
|
}, _getMatrix:function(q) {
|
|
501
|
-
const
|
|
502
|
-
for (let
|
|
503
|
-
q[
|
|
504
|
-
}
|
|
505
|
-
}, _drawImageMesh:function(q,
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
501
|
+
const x = this.S, F = x.length - 6;
|
|
502
|
+
for (let I = 0; 6 > I; ++I) {
|
|
503
|
+
q[I] = x[F + I];
|
|
504
|
+
}
|
|
505
|
+
}, _drawImageMesh:function(q, x, F, I, B, G, J, K, Z, Q, X) {
|
|
506
|
+
x = this.C.canvas.width;
|
|
507
|
+
var R = this.C.canvas.height;
|
|
508
|
+
const Yb = Q - K, Zb = X - Z;
|
|
509
509
|
K = Math.max(K, 0);
|
|
510
|
-
|
|
511
|
-
Q = Math.min(Q,
|
|
512
|
-
|
|
513
|
-
|
|
510
|
+
Z = Math.max(Z, 0);
|
|
511
|
+
Q = Math.min(Q, x);
|
|
512
|
+
X = Math.min(X, R);
|
|
513
|
+
const Ga = Q - K, Ha = X - Z;
|
|
514
|
+
console.assert(Ga <= Math.min(Yb, x));
|
|
514
515
|
console.assert(Ha <= Math.min(Zb, R));
|
|
515
516
|
if (!(0 >= Ga || 0 >= Ha)) {
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
var sa = Math.ceil(Ga *
|
|
519
|
-
R =
|
|
520
|
-
sa > R && (
|
|
521
|
-
ta > R && (
|
|
517
|
+
Q = Ga < Yb || Ha < Zb;
|
|
518
|
+
x = X = 1;
|
|
519
|
+
var sa = Math.ceil(Ga * X), ta = Math.ceil(Ha * x);
|
|
520
|
+
R = ja.hc();
|
|
521
|
+
sa > R && (X *= R / sa, sa = R);
|
|
522
|
+
ta > R && (x *= R / ta, ta = R);
|
|
522
523
|
w || (w = new m.DynamicRectanizer(R), w.reset(512, 512));
|
|
523
524
|
R = w.addRect(sa, ta);
|
|
524
525
|
0 > R && (c(), D.add(this), R = w.addRect(sa, ta), console.assert(0 <= R));
|
|
525
526
|
var $b = R & 65535, ac = R >> 16;
|
|
526
|
-
M.push({ha:this.S.slice(this.S.length - 6), image:q, Za:$b, $a:ac, ic:
|
|
527
|
-
T +=
|
|
528
|
-
|
|
529
|
-
var za = this.C, qd = a(
|
|
527
|
+
M.push({ha:this.S.slice(this.S.length - 6), image:q, Za:$b, $a:ac, ic:K, jc:Z, Ac:sa, kb:ta, Ba:X, Ca:x, Ua:new Float32Array(B), Db:new Float32Array(G), indices:new Uint16Array(J), mc:Q, xb:q.Ka << 1 | (Q ? 1 : 0),});
|
|
528
|
+
T += B.length;
|
|
529
|
+
ea += J.length;
|
|
530
|
+
var za = this.C, qd = a(F);
|
|
530
531
|
this.H.push(function() {
|
|
531
532
|
za.save();
|
|
532
533
|
za.resetTransform();
|
|
533
534
|
za.globalCompositeOperation = qd;
|
|
534
|
-
za.globalAlpha =
|
|
535
|
-
const bc =
|
|
536
|
-
bc && za.drawImage(bc, $b, ac, sa, ta,
|
|
535
|
+
za.globalAlpha = I;
|
|
536
|
+
const bc = ja.canvas();
|
|
537
|
+
bc && za.drawImage(bc, $b, ac, sa, ta, K, Z, Ga, Ha);
|
|
537
538
|
za.restore();
|
|
538
539
|
});
|
|
539
540
|
}
|
|
540
541
|
}, _clipPath:function(q) {
|
|
541
|
-
this.H.push(this.C.clip.bind(this.C, q.T, q.Wa ===
|
|
542
|
+
this.H.push(this.C.clip.bind(this.C, q.T, q.Wa === y ? "evenodd" : "nonzero"));
|
|
542
543
|
}, clear:function() {
|
|
543
544
|
D.add(this);
|
|
544
545
|
this.H.push(this.C.clearRect.bind(this.C, 0, 0, this.Va.width, this.Va.height));
|
|
545
546
|
}, flush:function() {
|
|
546
|
-
}, translate:function(q,
|
|
547
|
-
this.transform(1, 0, 0, 1, q,
|
|
547
|
+
}, translate:function(q, x) {
|
|
548
|
+
this.transform(1, 0, 0, 1, q, x);
|
|
548
549
|
},});
|
|
549
550
|
m.makeRenderer = function(q) {
|
|
550
|
-
const
|
|
551
|
-
return new Proxy(
|
|
552
|
-
if ("function" === typeof
|
|
553
|
-
return function(...
|
|
554
|
-
return
|
|
551
|
+
const x = new ra(q), F = x.C;
|
|
552
|
+
return new Proxy(x, {get(I, B) {
|
|
553
|
+
if ("function" === typeof I[B]) {
|
|
554
|
+
return function(...G) {
|
|
555
|
+
return I[B].apply(I, G);
|
|
555
556
|
};
|
|
556
557
|
}
|
|
557
|
-
if ("function" === typeof F[
|
|
558
|
-
if (-1 <
|
|
559
|
-
throw Error("RiveException: Method call to '" +
|
|
558
|
+
if ("function" === typeof F[B]) {
|
|
559
|
+
if (-1 < ia.indexOf(B)) {
|
|
560
|
+
throw Error("RiveException: Method call to '" + B + "()' is not allowed, as the renderer cannot immediately pass through the return values of any canvas 2d context methods.");
|
|
560
561
|
}
|
|
561
|
-
return function(...
|
|
562
|
-
|
|
562
|
+
return function(...G) {
|
|
563
|
+
x.H.push(F[B].bind(F, ...G));
|
|
563
564
|
};
|
|
564
565
|
}
|
|
565
|
-
return
|
|
566
|
-
}, set(
|
|
567
|
-
if (
|
|
568
|
-
return
|
|
569
|
-
F[
|
|
566
|
+
return I[B];
|
|
567
|
+
}, set(I, B, G) {
|
|
568
|
+
if (B in F) {
|
|
569
|
+
return x.H.push(() => {
|
|
570
|
+
F[B] = G;
|
|
570
571
|
}), !0;
|
|
571
572
|
}
|
|
572
573
|
},});
|
|
573
574
|
};
|
|
574
|
-
m.decodeImage = function(q,
|
|
575
|
-
(new t({la:
|
|
575
|
+
m.decodeImage = function(q, x) {
|
|
576
|
+
(new t({la:x})).decode(q);
|
|
576
577
|
};
|
|
577
578
|
m.renderFactory = {makeRenderPaint:function() {
|
|
578
|
-
return new
|
|
579
|
+
return new A();
|
|
579
580
|
}, makeRenderPath:function() {
|
|
580
581
|
return new r();
|
|
581
582
|
}, makeRenderImage:function() {
|
|
582
|
-
let q =
|
|
583
|
+
let q = da;
|
|
583
584
|
return new t({xa:() => {
|
|
584
585
|
q.total++;
|
|
585
586
|
}, la:() => {
|
|
586
587
|
q.loaded++;
|
|
587
588
|
if (q.loaded === q.total) {
|
|
588
|
-
const
|
|
589
|
-
|
|
589
|
+
const x = q.ready;
|
|
590
|
+
x && (x(), q.ready = null);
|
|
590
591
|
}
|
|
591
592
|
},});
|
|
592
593
|
},};
|
|
593
|
-
let H = m.load,
|
|
594
|
-
m.load = function(q,
|
|
595
|
-
const
|
|
596
|
-
void 0 !==
|
|
597
|
-
F && (
|
|
598
|
-
return new Promise(function(
|
|
599
|
-
let
|
|
600
|
-
|
|
601
|
-
|
|
594
|
+
let H = m.load, da = null;
|
|
595
|
+
m.load = function(q, x, F = !0) {
|
|
596
|
+
const I = new m.FallbackFileAssetLoader();
|
|
597
|
+
void 0 !== x && I.addLoader(x);
|
|
598
|
+
F && (x = new m.CDNFileAssetLoader(), I.addLoader(x));
|
|
599
|
+
return new Promise(function(B) {
|
|
600
|
+
let G = null;
|
|
601
|
+
da = {total:0, loaded:0, ready:function() {
|
|
602
|
+
B(G);
|
|
602
603
|
},};
|
|
603
|
-
|
|
604
|
-
0 ==
|
|
604
|
+
G = H(q, I);
|
|
605
|
+
0 == da.total && B(G);
|
|
605
606
|
});
|
|
606
607
|
};
|
|
607
608
|
let rd = m.RendererWrapper.prototype.align;
|
|
608
|
-
m.RendererWrapper.prototype.align = function(q,
|
|
609
|
-
rd.call(this, q,
|
|
609
|
+
m.RendererWrapper.prototype.align = function(q, x, F, I, B = 1.0) {
|
|
610
|
+
rd.call(this, q, x, F, I, B);
|
|
610
611
|
};
|
|
611
|
-
d = new
|
|
612
|
+
d = new ca();
|
|
612
613
|
m.requestAnimationFrame = d.requestAnimationFrame.bind(d);
|
|
613
614
|
m.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);
|
|
614
615
|
m.enableFPSCounter = d.Rb.bind(d);
|
|
@@ -619,15 +620,15 @@ m.onRuntimeInitialized = function() {
|
|
|
619
620
|
w && w.delete();
|
|
620
621
|
};
|
|
621
622
|
};
|
|
622
|
-
var
|
|
623
|
-
if (
|
|
624
|
-
|
|
623
|
+
var la = Object.assign({}, m), ma = "./this.program", na = "object" == typeof window, oa = "function" == typeof importScripts, pa = "", qa, ua;
|
|
624
|
+
if (na || oa) {
|
|
625
|
+
oa ? pa = self.location.href : "undefined" != typeof document && document.currentScript && (pa = document.currentScript.src), _scriptDir && (pa = _scriptDir), 0 !== pa.indexOf("blob:") ? pa = pa.substr(0, pa.replace(/[?#].*/, "").lastIndexOf("/") + 1) : pa = "", oa && (ua = a => {
|
|
625
626
|
var b = new XMLHttpRequest();
|
|
626
627
|
b.open("GET", a, !1);
|
|
627
628
|
b.responseType = "arraybuffer";
|
|
628
629
|
b.send(null);
|
|
629
630
|
return new Uint8Array(b.response);
|
|
630
|
-
}),
|
|
631
|
+
}), qa = (a, b, c) => {
|
|
631
632
|
var d = new XMLHttpRequest();
|
|
632
633
|
d.open("GET", a, !0);
|
|
633
634
|
d.responseType = "arraybuffer";
|
|
@@ -638,94 +639,94 @@ if (oa || pa) {
|
|
|
638
639
|
d.send(null);
|
|
639
640
|
};
|
|
640
641
|
}
|
|
641
|
-
var
|
|
642
|
-
Object.assign(m,
|
|
643
|
-
|
|
644
|
-
m.thisProgram && (
|
|
645
|
-
var
|
|
646
|
-
m.wasmBinary && (
|
|
642
|
+
var va = m.print || console.log.bind(console), wa = m.printErr || console.error.bind(console);
|
|
643
|
+
Object.assign(m, la);
|
|
644
|
+
la = null;
|
|
645
|
+
m.thisProgram && (ma = m.thisProgram);
|
|
646
|
+
var xa;
|
|
647
|
+
m.wasmBinary && (xa = m.wasmBinary);
|
|
647
648
|
var noExitRuntime = m.noExitRuntime || !0;
|
|
648
|
-
"object" != typeof WebAssembly &&
|
|
649
|
-
var
|
|
650
|
-
function
|
|
651
|
-
var a =
|
|
649
|
+
"object" != typeof WebAssembly && ya("no native wasm support detected");
|
|
650
|
+
var Aa, z, Ba = !1, C, E, Ca, Da, L, N, Ea, Fa;
|
|
651
|
+
function Ia() {
|
|
652
|
+
var a = Aa.buffer;
|
|
652
653
|
m.HEAP8 = C = new Int8Array(a);
|
|
653
|
-
m.HEAP16 =
|
|
654
|
+
m.HEAP16 = Ca = new Int16Array(a);
|
|
654
655
|
m.HEAP32 = L = new Int32Array(a);
|
|
655
656
|
m.HEAPU8 = E = new Uint8Array(a);
|
|
656
|
-
m.HEAPU16 =
|
|
657
|
+
m.HEAPU16 = Da = new Uint16Array(a);
|
|
657
658
|
m.HEAPU32 = N = new Uint32Array(a);
|
|
658
|
-
m.HEAPF32 =
|
|
659
|
-
m.HEAPF64 =
|
|
659
|
+
m.HEAPF32 = Ea = new Float32Array(a);
|
|
660
|
+
m.HEAPF64 = Fa = new Float64Array(a);
|
|
660
661
|
}
|
|
661
|
-
var
|
|
662
|
-
function
|
|
662
|
+
var Ja, Ka = [], La = [], Ma = [];
|
|
663
|
+
function Na() {
|
|
663
664
|
var a = m.preRun.shift();
|
|
664
|
-
|
|
665
|
+
Ka.unshift(a);
|
|
665
666
|
}
|
|
666
|
-
var
|
|
667
|
-
function
|
|
667
|
+
var Oa = 0, Pa = null, Qa = null;
|
|
668
|
+
function ya(a) {
|
|
668
669
|
if (m.onAbort) {
|
|
669
670
|
m.onAbort(a);
|
|
670
671
|
}
|
|
671
672
|
a = "Aborted(" + a + ")";
|
|
672
|
-
|
|
673
|
-
|
|
673
|
+
wa(a);
|
|
674
|
+
Ba = !0;
|
|
674
675
|
a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
|
|
675
676
|
ba(a);
|
|
676
677
|
throw a;
|
|
677
678
|
}
|
|
678
|
-
function
|
|
679
|
+
function Ra(a) {
|
|
679
680
|
return a.startsWith("data:application/octet-stream;base64,");
|
|
680
681
|
}
|
|
681
|
-
var
|
|
682
|
-
|
|
683
|
-
if (!Sa
|
|
684
|
-
var
|
|
685
|
-
|
|
682
|
+
var Sa;
|
|
683
|
+
Sa = "canvas_advanced.wasm";
|
|
684
|
+
if (!Ra(Sa)) {
|
|
685
|
+
var Ta = Sa;
|
|
686
|
+
Sa = m.locateFile ? m.locateFile(Ta, pa) : pa + Ta;
|
|
686
687
|
}
|
|
687
|
-
function
|
|
688
|
-
if (a ==
|
|
689
|
-
return new Uint8Array(
|
|
688
|
+
function Ua(a) {
|
|
689
|
+
if (a == Sa && xa) {
|
|
690
|
+
return new Uint8Array(xa);
|
|
690
691
|
}
|
|
691
|
-
if (
|
|
692
|
-
return
|
|
692
|
+
if (ua) {
|
|
693
|
+
return ua(a);
|
|
693
694
|
}
|
|
694
695
|
throw "both async and sync fetching of the wasm failed";
|
|
695
696
|
}
|
|
696
|
-
function
|
|
697
|
-
if (!
|
|
697
|
+
function Va(a) {
|
|
698
|
+
if (!xa && (na || oa)) {
|
|
698
699
|
if ("function" == typeof fetch && !a.startsWith("file://")) {
|
|
699
700
|
return fetch(a, {credentials:"same-origin"}).then(b => {
|
|
700
701
|
if (!b.ok) {
|
|
701
702
|
throw "failed to load wasm binary file at '" + a + "'";
|
|
702
703
|
}
|
|
703
704
|
return b.arrayBuffer();
|
|
704
|
-
}).catch(() =>
|
|
705
|
+
}).catch(() => Ua(a));
|
|
705
706
|
}
|
|
706
|
-
if (
|
|
707
|
+
if (qa) {
|
|
707
708
|
return new Promise((b, c) => {
|
|
708
|
-
|
|
709
|
+
qa(a, d => b(new Uint8Array(d)), c);
|
|
709
710
|
});
|
|
710
711
|
}
|
|
711
712
|
}
|
|
712
|
-
return Promise.resolve().then(() =>
|
|
713
|
+
return Promise.resolve().then(() => Ua(a));
|
|
713
714
|
}
|
|
714
|
-
function
|
|
715
|
-
return
|
|
716
|
-
|
|
717
|
-
|
|
715
|
+
function Wa(a, b, c) {
|
|
716
|
+
return Va(a).then(d => WebAssembly.instantiate(d, b)).then(d => d).then(c, d => {
|
|
717
|
+
wa("failed to asynchronously prepare wasm: " + d);
|
|
718
|
+
ya(d);
|
|
718
719
|
});
|
|
719
720
|
}
|
|
720
|
-
function
|
|
721
|
-
var c =
|
|
722
|
-
return
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
return
|
|
721
|
+
function Xa(a, b) {
|
|
722
|
+
var c = Sa;
|
|
723
|
+
return xa || "function" != typeof WebAssembly.instantiateStreaming || Ra(c) || c.startsWith("file://") || "function" != typeof fetch ? Wa(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
|
|
724
|
+
wa("wasm streaming compile failed: " + e);
|
|
725
|
+
wa("falling back to ArrayBuffer instantiation");
|
|
726
|
+
return Wa(c, a, b);
|
|
726
727
|
}));
|
|
727
728
|
}
|
|
728
|
-
var
|
|
729
|
+
var Ya, Za, cb = {456172:(a, b, c, d, e) => {
|
|
729
730
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
730
731
|
return 0;
|
|
731
732
|
}
|
|
@@ -773,7 +774,7 @@ var Za, $a, db = {453532:(a, b, c, d, e) => {
|
|
|
773
774
|
for (var g = 0; g < f.D.length; ++g) {
|
|
774
775
|
var n = f.D[g];
|
|
775
776
|
null != n && null != n.J && n.state === f.ga.yb && n.J.resume().then(() => {
|
|
776
|
-
|
|
777
|
+
$a(n.qb);
|
|
777
778
|
}, p => {
|
|
778
779
|
console.error("Failed to resume audiocontext", p);
|
|
779
780
|
});
|
|
@@ -788,11 +789,11 @@ var Za, $a, db = {453532:(a, b, c, d, e) => {
|
|
|
788
789
|
}
|
|
789
790
|
window.h.Aa += 1;
|
|
790
791
|
return 1;
|
|
791
|
-
},
|
|
792
|
+
}, 458350:() => {
|
|
792
793
|
"undefined" !== typeof window.h && (window.h.Ta.map(function(a) {
|
|
793
794
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
794
795
|
}), --window.h.Aa, 0 === window.h.Aa && delete window.h);
|
|
795
|
-
},
|
|
796
|
+
}, 458654:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 458758:() => {
|
|
796
797
|
try {
|
|
797
798
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
798
799
|
a.close();
|
|
@@ -800,7 +801,7 @@ var Za, $a, db = {453532:(a, b, c, d, e) => {
|
|
|
800
801
|
} catch (c) {
|
|
801
802
|
return 0;
|
|
802
803
|
}
|
|
803
|
-
},
|
|
804
|
+
}, 458929:(a, b, c, d, e, f) => {
|
|
804
805
|
if ("undefined" === typeof window.h) {
|
|
805
806
|
return -1;
|
|
806
807
|
}
|
|
@@ -814,20 +815,20 @@ var Za, $a, db = {453532:(a, b, c, d, e) => {
|
|
|
814
815
|
g.Z = g.J.createScriptProcessor(d, c, b);
|
|
815
816
|
g.Z.onaudioprocess = function(p) {
|
|
816
817
|
if (null == g.sa || 0 == g.sa.length) {
|
|
817
|
-
g.sa = new Float32Array(
|
|
818
|
+
g.sa = new Float32Array(Ea.buffer, e, d * b);
|
|
818
819
|
}
|
|
819
820
|
if (a == window.h.I.capture || a == window.h.I.La) {
|
|
820
821
|
for (var l = 0; l < b; l += 1) {
|
|
821
|
-
for (var u = p.inputBuffer.getChannelData(l), v = g.sa,
|
|
822
|
-
v[
|
|
822
|
+
for (var u = p.inputBuffer.getChannelData(l), v = g.sa, y = 0; y < d; y += 1) {
|
|
823
|
+
v[y * b + l] = u[y];
|
|
823
824
|
}
|
|
824
825
|
}
|
|
825
|
-
|
|
826
|
+
ab(f, d, e);
|
|
826
827
|
}
|
|
827
828
|
if (a == window.h.I.ya || a == window.h.I.La) {
|
|
828
|
-
for (
|
|
829
|
-
for (u = p.outputBuffer.getChannelData(l), v = g.sa,
|
|
830
|
-
u[
|
|
829
|
+
for (bb(f, d, e), l = 0; l < p.outputBuffer.numberOfChannels; ++l) {
|
|
830
|
+
for (u = p.outputBuffer.getChannelData(l), v = g.sa, y = 0; y < d; y += 1) {
|
|
831
|
+
u[y] = v[y * b + l];
|
|
831
832
|
}
|
|
832
833
|
}
|
|
833
834
|
} else {
|
|
@@ -846,7 +847,7 @@ var Za, $a, db = {453532:(a, b, c, d, e) => {
|
|
|
846
847
|
a == window.h.I.ya && g.Z.connect(g.J.destination);
|
|
847
848
|
g.qb = f;
|
|
848
849
|
return window.h.yc(g);
|
|
849
|
-
},
|
|
850
|
+
}, 461806:a => window.h.ra(a).J.sampleRate, 461879:a => {
|
|
850
851
|
a = window.h.ra(a);
|
|
851
852
|
void 0 !== a.Z && (a.Z.onaudioprocess = function() {
|
|
852
853
|
}, a.Z.disconnect(), a.Z = void 0);
|
|
@@ -854,21 +855,21 @@ var Za, $a, db = {453532:(a, b, c, d, e) => {
|
|
|
854
855
|
a.J.close();
|
|
855
856
|
a.J = void 0;
|
|
856
857
|
a.qb = void 0;
|
|
857
|
-
},
|
|
858
|
+
}, 462279:a => {
|
|
858
859
|
window.h.Cb(a);
|
|
859
|
-
},
|
|
860
|
+
}, 462329:a => {
|
|
860
861
|
a = window.h.ra(a);
|
|
861
862
|
a.J.resume();
|
|
862
863
|
a.state = window.h.ga.yb;
|
|
863
|
-
},
|
|
864
|
+
}, 462468:a => {
|
|
864
865
|
a = window.h.ra(a);
|
|
865
866
|
a.J.suspend();
|
|
866
867
|
a.state = window.h.ga.stopped;
|
|
867
|
-
}},
|
|
868
|
+
}}, db = a => {
|
|
868
869
|
for (; 0 < a.length;) {
|
|
869
870
|
a.shift()(m);
|
|
870
871
|
}
|
|
871
|
-
},
|
|
872
|
+
}, eb = (a, b) => {
|
|
872
873
|
for (var c = 0, d = a.length - 1; 0 <= d; d--) {
|
|
873
874
|
var e = a[d];
|
|
874
875
|
"." === e ? a.splice(d, 1) : ".." === e ? (a.splice(d, 1), c++) : c && (a.splice(d, 1), c--);
|
|
@@ -879,12 +880,12 @@ var Za, $a, db = {453532:(a, b, c, d, e) => {
|
|
|
879
880
|
}
|
|
880
881
|
}
|
|
881
882
|
return a;
|
|
882
|
-
},
|
|
883
|
+
}, fb = a => {
|
|
883
884
|
var b = "/" === a.charAt(0), c = "/" === a.substr(-1);
|
|
884
|
-
(a =
|
|
885
|
+
(a = eb(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
|
|
885
886
|
a && c && (a += "/");
|
|
886
887
|
return (b ? "/" : "") + a;
|
|
887
|
-
},
|
|
888
|
+
}, gb = a => {
|
|
888
889
|
var b = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);
|
|
889
890
|
a = b[0];
|
|
890
891
|
b = b[1];
|
|
@@ -893,21 +894,21 @@ var Za, $a, db = {453532:(a, b, c, d, e) => {
|
|
|
893
894
|
}
|
|
894
895
|
b && (b = b.substr(0, b.length - 1));
|
|
895
896
|
return a + b;
|
|
896
|
-
},
|
|
897
|
+
}, hb = a => {
|
|
897
898
|
if ("/" === a) {
|
|
898
899
|
return "/";
|
|
899
900
|
}
|
|
900
|
-
a =
|
|
901
|
+
a = fb(a);
|
|
901
902
|
a = a.replace(/\/$/, "");
|
|
902
903
|
var b = a.lastIndexOf("/");
|
|
903
904
|
return -1 === b ? a : a.substr(b + 1);
|
|
904
|
-
},
|
|
905
|
+
}, ib = () => {
|
|
905
906
|
if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
|
|
906
907
|
return a => crypto.getRandomValues(a);
|
|
907
908
|
}
|
|
908
|
-
|
|
909
|
-
},
|
|
910
|
-
function
|
|
909
|
+
ya("initRandomDevice");
|
|
910
|
+
}, jb = a => (jb = ib())(a);
|
|
911
|
+
function kb() {
|
|
911
912
|
for (var a = "", b = !1, c = arguments.length - 1; -1 <= c && !b; c--) {
|
|
912
913
|
b = 0 <= c ? arguments[c] : "/";
|
|
913
914
|
if ("string" != typeof b) {
|
|
@@ -919,16 +920,16 @@ function lb() {
|
|
|
919
920
|
a = b + "/" + a;
|
|
920
921
|
b = "/" === b.charAt(0);
|
|
921
922
|
}
|
|
922
|
-
a =
|
|
923
|
+
a = eb(a.split("/").filter(d => !!d), !b).join("/");
|
|
923
924
|
return (b ? "/" : "") + a || ".";
|
|
924
925
|
}
|
|
925
|
-
var
|
|
926
|
+
var lb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, mb = (a, b, c) => {
|
|
926
927
|
var d = b + c;
|
|
927
928
|
for (c = b; a[c] && !(c >= d);) {
|
|
928
929
|
++c;
|
|
929
930
|
}
|
|
930
|
-
if (16 < c - b && a.buffer &&
|
|
931
|
-
return
|
|
931
|
+
if (16 < c - b && a.buffer && lb) {
|
|
932
|
+
return lb.decode(a.subarray(b, c));
|
|
932
933
|
}
|
|
933
934
|
for (d = ""; b < c;) {
|
|
934
935
|
var e = a[b++];
|
|
@@ -946,13 +947,13 @@ var mb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, n
|
|
|
946
947
|
}
|
|
947
948
|
}
|
|
948
949
|
return d;
|
|
949
|
-
},
|
|
950
|
+
}, nb = [], ob = a => {
|
|
950
951
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
951
952
|
var d = a.charCodeAt(c);
|
|
952
953
|
127 >= d ? b++ : 2047 >= d ? b += 2 : 55296 <= d && 57343 >= d ? (b += 4, ++c) : b += 3;
|
|
953
954
|
}
|
|
954
955
|
return b;
|
|
955
|
-
},
|
|
956
|
+
}, pb = (a, b, c, d) => {
|
|
956
957
|
if (!(0 < d)) {
|
|
957
958
|
return 0;
|
|
958
959
|
}
|
|
@@ -996,19 +997,19 @@ var mb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, n
|
|
|
996
997
|
b[c] = 0;
|
|
997
998
|
return c - e;
|
|
998
999
|
};
|
|
999
|
-
function
|
|
1000
|
-
var c = Array(
|
|
1001
|
-
a =
|
|
1000
|
+
function qb(a, b) {
|
|
1001
|
+
var c = Array(ob(a) + 1);
|
|
1002
|
+
a = pb(a, c, 0, c.length);
|
|
1002
1003
|
b && (c.length = a);
|
|
1003
1004
|
return c;
|
|
1004
1005
|
}
|
|
1005
|
-
var
|
|
1006
|
-
function
|
|
1007
|
-
|
|
1008
|
-
|
|
1006
|
+
var rb = [];
|
|
1007
|
+
function sb(a, b) {
|
|
1008
|
+
rb[a] = {input:[], F:[], V:b};
|
|
1009
|
+
tb(a, ub);
|
|
1009
1010
|
}
|
|
1010
|
-
var
|
|
1011
|
-
var b =
|
|
1011
|
+
var ub = {open:function(a) {
|
|
1012
|
+
var b = rb[a.node.za];
|
|
1012
1013
|
if (!b) {
|
|
1013
1014
|
throw new O(43);
|
|
1014
1015
|
}
|
|
@@ -1052,36 +1053,36 @@ var vb = {open:function(a) {
|
|
|
1052
1053
|
}
|
|
1053
1054
|
d && (a.node.timestamp = Date.now());
|
|
1054
1055
|
return e;
|
|
1055
|
-
},},
|
|
1056
|
+
},}, vb = {jb:function() {
|
|
1056
1057
|
a: {
|
|
1057
|
-
if (!
|
|
1058
|
+
if (!nb.length) {
|
|
1058
1059
|
var a = null;
|
|
1059
1060
|
"undefined" != typeof window && "function" == typeof window.prompt ? (a = window.prompt("Input: "), null !== a && (a += "\n")) : "function" == typeof readline && (a = readline(), null !== a && (a += "\n"));
|
|
1060
1061
|
if (!a) {
|
|
1061
1062
|
a = null;
|
|
1062
1063
|
break a;
|
|
1063
1064
|
}
|
|
1064
|
-
|
|
1065
|
+
nb = qb(a, !0);
|
|
1065
1066
|
}
|
|
1066
|
-
a =
|
|
1067
|
+
a = nb.shift();
|
|
1067
1068
|
}
|
|
1068
1069
|
return a;
|
|
1069
1070
|
}, Oa:function(a, b) {
|
|
1070
|
-
null === b || 10 === b ? (
|
|
1071
|
+
null === b || 10 === b ? (va(mb(a.F, 0)), a.F = []) : 0 != b && a.F.push(b);
|
|
1071
1072
|
}, qa:function(a) {
|
|
1072
|
-
a.F && 0 < a.F.length && (
|
|
1073
|
+
a.F && 0 < a.F.length && (va(mb(a.F, 0)), a.F = []);
|
|
1073
1074
|
}, bc:function() {
|
|
1074
1075
|
return {Fc:25856, Hc:5, Ec:191, Gc:35387, Dc:[3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,]};
|
|
1075
1076
|
}, cc:function() {
|
|
1076
1077
|
return 0;
|
|
1077
1078
|
}, dc:function() {
|
|
1078
1079
|
return [24, 80];
|
|
1079
|
-
},},
|
|
1080
|
-
null === b || 10 === b ? (
|
|
1080
|
+
},}, wb = {Oa:function(a, b) {
|
|
1081
|
+
null === b || 10 === b ? (wa(mb(a.F, 0)), a.F = []) : 0 != b && a.F.push(b);
|
|
1081
1082
|
}, qa:function(a) {
|
|
1082
|
-
a.F && 0 < a.F.length && (
|
|
1083
|
+
a.F && 0 < a.F.length && (wa(mb(a.F, 0)), a.F = []);
|
|
1083
1084
|
},};
|
|
1084
|
-
function
|
|
1085
|
+
function xb(a, b) {
|
|
1085
1086
|
var c = a.j ? a.j.length : 0;
|
|
1086
1087
|
c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.j, a.j = new Uint8Array(b), 0 < a.v && a.j.set(c.subarray(0, a.v), 0));
|
|
1087
1088
|
}
|
|
@@ -1091,8 +1092,8 @@ var P = {O:null, U() {
|
|
|
1091
1092
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
1092
1093
|
throw new O(63);
|
|
1093
1094
|
}
|
|
1094
|
-
P.O || (P.O = {dir:{node:{Y:P.l.Y, P:P.l.P, ka:P.l.ka, va:P.l.va, vb:P.l.vb, Bb:P.l.Bb, wb:P.l.wb, tb:P.l.tb, Ea:P.l.Ea}, stream:{ba:P.m.ba}}, file:{node:{Y:P.l.Y, P:P.l.P}, stream:{ba:P.m.ba, read:P.m.read, write:P.m.write, pa:P.m.pa, mb:P.m.mb, ob:P.m.ob}}, link:{node:{Y:P.l.Y, P:P.l.P, ma:P.l.ma}, stream:{}}, ab:{node:{Y:P.l.Y, P:P.l.P}, stream:
|
|
1095
|
-
c =
|
|
1095
|
+
P.O || (P.O = {dir:{node:{Y:P.l.Y, P:P.l.P, ka:P.l.ka, va:P.l.va, vb:P.l.vb, Bb:P.l.Bb, wb:P.l.wb, tb:P.l.tb, Ea:P.l.Ea}, stream:{ba:P.m.ba}}, file:{node:{Y:P.l.Y, P:P.l.P}, stream:{ba:P.m.ba, read:P.m.read, write:P.m.write, pa:P.m.pa, mb:P.m.mb, ob:P.m.ob}}, link:{node:{Y:P.l.Y, P:P.l.P, ma:P.l.ma}, stream:{}}, ab:{node:{Y:P.l.Y, P:P.l.P}, stream:yb}});
|
|
1096
|
+
c = zb(a, b, c, d);
|
|
1096
1097
|
16384 === (c.mode & 61440) ? (c.l = P.O.dir.node, c.m = P.O.dir.stream, c.j = {}) : 32768 === (c.mode & 61440) ? (c.l = P.O.file.node, c.m = P.O.file.stream, c.v = 0, c.j = null) : 40960 === (c.mode & 61440) ? (c.l = P.O.link.node, c.m = P.O.link.stream) : 8192 === (c.mode & 61440) && (c.l = P.O.ab.node, c.m = P.O.ab.stream);
|
|
1097
1098
|
c.timestamp = Date.now();
|
|
1098
1099
|
a && (a.j[b] = c, a.timestamp = c.timestamp);
|
|
@@ -1129,13 +1130,13 @@ var P = {O:null, U() {
|
|
|
1129
1130
|
}
|
|
1130
1131
|
}
|
|
1131
1132
|
}, ka() {
|
|
1132
|
-
throw
|
|
1133
|
+
throw Ab[44];
|
|
1133
1134
|
}, va(a, b, c, d) {
|
|
1134
1135
|
return P.createNode(a, b, c, d);
|
|
1135
1136
|
}, vb(a, b, c) {
|
|
1136
1137
|
if (16384 === (a.mode & 61440)) {
|
|
1137
1138
|
try {
|
|
1138
|
-
var d =
|
|
1139
|
+
var d = Bb(b, c);
|
|
1139
1140
|
} catch (f) {
|
|
1140
1141
|
}
|
|
1141
1142
|
if (d) {
|
|
@@ -1154,7 +1155,7 @@ var P = {O:null, U() {
|
|
|
1154
1155
|
delete a.j[b];
|
|
1155
1156
|
a.timestamp = Date.now();
|
|
1156
1157
|
}, wb(a, b) {
|
|
1157
|
-
var c =
|
|
1158
|
+
var c = Bb(a, b), d;
|
|
1158
1159
|
for (d in c.j) {
|
|
1159
1160
|
throw new O(55);
|
|
1160
1161
|
}
|
|
@@ -1207,7 +1208,7 @@ var P = {O:null, U() {
|
|
|
1207
1208
|
return a.j.set(b.subarray(c, c + d), e), d;
|
|
1208
1209
|
}
|
|
1209
1210
|
}
|
|
1210
|
-
|
|
1211
|
+
xb(a, e + d);
|
|
1211
1212
|
if (a.j.subarray && b.subarray) {
|
|
1212
1213
|
a.j.set(b.subarray(c, c + d), e);
|
|
1213
1214
|
} else {
|
|
@@ -1224,7 +1225,7 @@ var P = {O:null, U() {
|
|
|
1224
1225
|
}
|
|
1225
1226
|
return b;
|
|
1226
1227
|
}, pa(a, b, c) {
|
|
1227
|
-
|
|
1228
|
+
xb(a.node, b + c);
|
|
1228
1229
|
a.node.v = Math.max(a.node.v, b + c);
|
|
1229
1230
|
}, mb(a, b, c, d, e) {
|
|
1230
1231
|
if (32768 !== (a.node.mode & 61440)) {
|
|
@@ -1236,7 +1237,7 @@ var P = {O:null, U() {
|
|
|
1236
1237
|
a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
|
|
1237
1238
|
}
|
|
1238
1239
|
c = !0;
|
|
1239
|
-
|
|
1240
|
+
ya();
|
|
1240
1241
|
b = void 0;
|
|
1241
1242
|
if (!b) {
|
|
1242
1243
|
throw new O(48);
|
|
@@ -1250,14 +1251,14 @@ var P = {O:null, U() {
|
|
|
1250
1251
|
P.m.write(a, b, 0, d, c, !1);
|
|
1251
1252
|
return 0;
|
|
1252
1253
|
},},};
|
|
1253
|
-
function
|
|
1254
|
+
function Cb(a, b) {
|
|
1254
1255
|
var c = 0;
|
|
1255
1256
|
a && (c |= 365);
|
|
1256
1257
|
b && (c |= 146);
|
|
1257
1258
|
return c;
|
|
1258
1259
|
}
|
|
1259
|
-
var
|
|
1260
|
-
a =
|
|
1260
|
+
var Db = null, Eb = {}, Fb = [], Gb = 1, Hb = null, Ib = !0, O = null, Ab = {}, Kb = (a, b = {}) => {
|
|
1261
|
+
a = kb(a);
|
|
1261
1262
|
if (!a) {
|
|
1262
1263
|
return {path:"", node:null};
|
|
1263
1264
|
}
|
|
@@ -1266,24 +1267,24 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
|
|
|
1266
1267
|
throw new O(32);
|
|
1267
1268
|
}
|
|
1268
1269
|
a = a.split("/").filter(g => !!g);
|
|
1269
|
-
for (var c =
|
|
1270
|
+
for (var c = Db, d = "/", e = 0; e < a.length; e++) {
|
|
1270
1271
|
var f = e === a.length - 1;
|
|
1271
1272
|
if (f && b.parent) {
|
|
1272
1273
|
break;
|
|
1273
1274
|
}
|
|
1274
|
-
c =
|
|
1275
|
-
d =
|
|
1275
|
+
c = Bb(c, a[e]);
|
|
1276
|
+
d = fb(d + "/" + a[e]);
|
|
1276
1277
|
c.wa && (!f || f && b.hb) && (c = c.wa.root);
|
|
1277
1278
|
if (!f || b.gb) {
|
|
1278
1279
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
1279
|
-
if (c =
|
|
1280
|
+
if (c = Jb(d), d = kb(gb(d), c), c = Kb(d, {Qa:b.Qa + 1}).node, 40 < f++) {
|
|
1280
1281
|
throw new O(32);
|
|
1281
1282
|
}
|
|
1282
1283
|
}
|
|
1283
1284
|
}
|
|
1284
1285
|
}
|
|
1285
1286
|
return {path:d, node:c};
|
|
1286
|
-
},
|
|
1287
|
+
}, Lb = a => {
|
|
1287
1288
|
for (var b;;) {
|
|
1288
1289
|
if (a === a.parent) {
|
|
1289
1290
|
return a = a.U.nb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
|
|
@@ -1291,34 +1292,34 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
|
|
|
1291
1292
|
b = b ? `${a.name}/${b}` : a.name;
|
|
1292
1293
|
a = a.parent;
|
|
1293
1294
|
}
|
|
1294
|
-
},
|
|
1295
|
+
}, Mb = (a, b) => {
|
|
1295
1296
|
for (var c = 0, d = 0; d < b.length; d++) {
|
|
1296
1297
|
c = (c << 5) - c + b.charCodeAt(d) | 0;
|
|
1297
1298
|
}
|
|
1298
|
-
return (a + c >>> 0) %
|
|
1299
|
-
},
|
|
1299
|
+
return (a + c >>> 0) % Hb.length;
|
|
1300
|
+
}, Bb = (a, b) => {
|
|
1300
1301
|
var c;
|
|
1301
|
-
if (c = (c =
|
|
1302
|
+
if (c = (c = Nb(a, "x")) ? c : a.l.ka ? 0 : 2) {
|
|
1302
1303
|
throw new O(c, a);
|
|
1303
1304
|
}
|
|
1304
|
-
for (c =
|
|
1305
|
+
for (c = Hb[Mb(a.id, b)]; c; c = c.lc) {
|
|
1305
1306
|
var d = c.name;
|
|
1306
1307
|
if (c.parent.id === a.id && d === b) {
|
|
1307
1308
|
return c;
|
|
1308
1309
|
}
|
|
1309
1310
|
}
|
|
1310
1311
|
return a.l.ka(a, b);
|
|
1311
|
-
},
|
|
1312
|
-
a = new
|
|
1313
|
-
b =
|
|
1314
|
-
a.lc =
|
|
1315
|
-
return
|
|
1316
|
-
},
|
|
1312
|
+
}, zb = (a, b, c, d) => {
|
|
1313
|
+
a = new Ob(a, b, c, d);
|
|
1314
|
+
b = Mb(a.parent.id, a.name);
|
|
1315
|
+
a.lc = Hb[b];
|
|
1316
|
+
return Hb[b] = a;
|
|
1317
|
+
}, Pb = a => {
|
|
1317
1318
|
var b = ["r", "w", "rw"][a & 3];
|
|
1318
1319
|
a & 512 && (b += "w");
|
|
1319
1320
|
return b;
|
|
1320
|
-
},
|
|
1321
|
-
if (
|
|
1321
|
+
}, Nb = (a, b) => {
|
|
1322
|
+
if (Ib) {
|
|
1322
1323
|
return 0;
|
|
1323
1324
|
}
|
|
1324
1325
|
if (!b.includes("r") || a.mode & 292) {
|
|
@@ -1329,29 +1330,29 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
|
|
|
1329
1330
|
return 2;
|
|
1330
1331
|
}
|
|
1331
1332
|
return 0;
|
|
1332
|
-
},
|
|
1333
|
+
}, Qb = (a, b) => {
|
|
1333
1334
|
try {
|
|
1334
|
-
return
|
|
1335
|
+
return Bb(a, b), 20;
|
|
1335
1336
|
} catch (c) {
|
|
1336
1337
|
}
|
|
1337
|
-
return
|
|
1338
|
-
},
|
|
1338
|
+
return Nb(a, "wx");
|
|
1339
|
+
}, Rb = () => {
|
|
1339
1340
|
for (var a = 0; 4096 >= a; a++) {
|
|
1340
|
-
if (!
|
|
1341
|
+
if (!Fb[a]) {
|
|
1341
1342
|
return a;
|
|
1342
1343
|
}
|
|
1343
1344
|
}
|
|
1344
1345
|
throw new O(33);
|
|
1345
|
-
},
|
|
1346
|
-
a =
|
|
1346
|
+
}, Sb = a => {
|
|
1347
|
+
a = Fb[a];
|
|
1347
1348
|
if (!a) {
|
|
1348
1349
|
throw new O(8);
|
|
1349
1350
|
}
|
|
1350
1351
|
return a;
|
|
1351
|
-
},
|
|
1352
|
-
|
|
1352
|
+
}, Ub = (a, b = -1) => {
|
|
1353
|
+
Tb || (Tb = function() {
|
|
1353
1354
|
this.h = {};
|
|
1354
|
-
},
|
|
1355
|
+
}, Tb.prototype = {}, Object.defineProperties(Tb.prototype, {object:{get() {
|
|
1355
1356
|
return this.node;
|
|
1356
1357
|
}, set(c) {
|
|
1357
1358
|
this.node = c;
|
|
@@ -1364,24 +1365,24 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
|
|
|
1364
1365
|
}, set(c) {
|
|
1365
1366
|
this.h.position = c;
|
|
1366
1367
|
},},}));
|
|
1367
|
-
a = Object.assign(new
|
|
1368
|
-
-1 == b && (b =
|
|
1368
|
+
a = Object.assign(new Tb(), a);
|
|
1369
|
+
-1 == b && (b = Rb());
|
|
1369
1370
|
a.X = b;
|
|
1370
|
-
return
|
|
1371
|
-
},
|
|
1372
|
-
a.m =
|
|
1371
|
+
return Fb[b] = a;
|
|
1372
|
+
}, yb = {open:a => {
|
|
1373
|
+
a.m = Eb[a.node.za].m;
|
|
1373
1374
|
a.m.open && a.m.open(a);
|
|
1374
1375
|
}, ba:() => {
|
|
1375
1376
|
throw new O(70);
|
|
1376
|
-
},},
|
|
1377
|
-
|
|
1378
|
-
},
|
|
1377
|
+
},}, tb = (a, b) => {
|
|
1378
|
+
Eb[a] = {m:b};
|
|
1379
|
+
}, Vb = (a, b) => {
|
|
1379
1380
|
var c = "/" === b, d = !b;
|
|
1380
|
-
if (c &&
|
|
1381
|
+
if (c && Db) {
|
|
1381
1382
|
throw new O(10);
|
|
1382
1383
|
}
|
|
1383
1384
|
if (!c && !d) {
|
|
1384
|
-
var e =
|
|
1385
|
+
var e = Kb(b, {hb:!1});
|
|
1385
1386
|
b = e.path;
|
|
1386
1387
|
e = e.node;
|
|
1387
1388
|
if (e.wa) {
|
|
@@ -1395,14 +1396,14 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
|
|
|
1395
1396
|
a = a.U(b);
|
|
1396
1397
|
a.U = b;
|
|
1397
1398
|
b.root = a;
|
|
1398
|
-
c ?
|
|
1399
|
-
},
|
|
1400
|
-
var d =
|
|
1401
|
-
a =
|
|
1399
|
+
c ? Db = a : e && (e.wa = b, e.U && e.U.kc.push(b));
|
|
1400
|
+
}, Wb = (a, b, c) => {
|
|
1401
|
+
var d = Kb(a, {parent:!0}).node;
|
|
1402
|
+
a = hb(a);
|
|
1402
1403
|
if (!a || "." === a || ".." === a) {
|
|
1403
1404
|
throw new O(28);
|
|
1404
1405
|
}
|
|
1405
|
-
var e =
|
|
1406
|
+
var e = Qb(d, a);
|
|
1406
1407
|
if (e) {
|
|
1407
1408
|
throw new O(e);
|
|
1408
1409
|
}
|
|
@@ -1412,17 +1413,17 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
|
|
|
1412
1413
|
return d.l.va(d, a, b, c);
|
|
1413
1414
|
}, Xb = (a, b, c) => {
|
|
1414
1415
|
"undefined" == typeof c && (c = b, b = 438);
|
|
1415
|
-
|
|
1416
|
+
Wb(a, b | 8192, c);
|
|
1416
1417
|
}, cc = (a, b) => {
|
|
1417
|
-
if (!
|
|
1418
|
+
if (!kb(a)) {
|
|
1418
1419
|
throw new O(44);
|
|
1419
1420
|
}
|
|
1420
|
-
var c =
|
|
1421
|
+
var c = Kb(b, {parent:!0}).node;
|
|
1421
1422
|
if (!c) {
|
|
1422
1423
|
throw new O(44);
|
|
1423
1424
|
}
|
|
1424
|
-
b =
|
|
1425
|
-
var d =
|
|
1425
|
+
b = hb(b);
|
|
1426
|
+
var d = Qb(c, b);
|
|
1426
1427
|
if (d) {
|
|
1427
1428
|
throw new O(d);
|
|
1428
1429
|
}
|
|
@@ -1430,15 +1431,15 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
|
|
|
1430
1431
|
throw new O(63);
|
|
1431
1432
|
}
|
|
1432
1433
|
c.l.Ea(c, b, a);
|
|
1433
|
-
},
|
|
1434
|
-
a =
|
|
1434
|
+
}, Jb = a => {
|
|
1435
|
+
a = Kb(a).node;
|
|
1435
1436
|
if (!a) {
|
|
1436
1437
|
throw new O(44);
|
|
1437
1438
|
}
|
|
1438
1439
|
if (!a.l.ma) {
|
|
1439
1440
|
throw new O(28);
|
|
1440
1441
|
}
|
|
1441
|
-
return
|
|
1442
|
+
return kb(Lb(a.parent), a.l.ma(a));
|
|
1442
1443
|
}, ec = (a, b, c) => {
|
|
1443
1444
|
if ("" === a) {
|
|
1444
1445
|
throw new O(44);
|
|
@@ -1454,9 +1455,9 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
|
|
|
1454
1455
|
if ("object" == typeof a) {
|
|
1455
1456
|
var e = a;
|
|
1456
1457
|
} else {
|
|
1457
|
-
a =
|
|
1458
|
+
a = fb(a);
|
|
1458
1459
|
try {
|
|
1459
|
-
e =
|
|
1460
|
+
e = Kb(a, {gb:!(b & 131072)}).node;
|
|
1460
1461
|
} catch (f) {
|
|
1461
1462
|
}
|
|
1462
1463
|
}
|
|
@@ -1467,7 +1468,7 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
|
|
|
1467
1468
|
throw new O(20);
|
|
1468
1469
|
}
|
|
1469
1470
|
} else {
|
|
1470
|
-
e =
|
|
1471
|
+
e = Wb(a, c, 0), d = !0;
|
|
1471
1472
|
}
|
|
1472
1473
|
}
|
|
1473
1474
|
if (!e) {
|
|
@@ -1477,12 +1478,12 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
|
|
|
1477
1478
|
if (b & 65536 && 16384 !== (e.mode & 61440)) {
|
|
1478
1479
|
throw new O(54);
|
|
1479
1480
|
}
|
|
1480
|
-
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !==
|
|
1481
|
+
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Pb(b) || b & 512) ? 31 : Nb(e, Pb(b)) : 44)) {
|
|
1481
1482
|
throw new O(c);
|
|
1482
1483
|
}
|
|
1483
1484
|
if (b & 512 && !d) {
|
|
1484
1485
|
c = e;
|
|
1485
|
-
c = "string" == typeof c ?
|
|
1486
|
+
c = "string" == typeof c ? Kb(c, {gb:!0}).node : c;
|
|
1486
1487
|
if (!c.l.P) {
|
|
1487
1488
|
throw new O(63);
|
|
1488
1489
|
}
|
|
@@ -1492,13 +1493,13 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
|
|
|
1492
1493
|
if (32768 !== (c.mode & 61440)) {
|
|
1493
1494
|
throw new O(28);
|
|
1494
1495
|
}
|
|
1495
|
-
if (d =
|
|
1496
|
+
if (d = Nb(c, "w")) {
|
|
1496
1497
|
throw new O(d);
|
|
1497
1498
|
}
|
|
1498
1499
|
c.l.P(c, {size:0, timestamp:Date.now()});
|
|
1499
1500
|
}
|
|
1500
1501
|
b &= -131713;
|
|
1501
|
-
e =
|
|
1502
|
+
e = Ub({node:e, path:Lb(e), flags:b, seekable:!0, position:0, m:e.m, zc:[], error:!1});
|
|
1502
1503
|
e.m.open && e.m.open(e);
|
|
1503
1504
|
!m.logReadFiles || b & 1 || (dc || (dc = {}), a in dc || (dc[a] = 1));
|
|
1504
1505
|
return e;
|
|
@@ -1524,15 +1525,15 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
|
|
|
1524
1525
|
this.pc(a);
|
|
1525
1526
|
this.message = "FS error";
|
|
1526
1527
|
}, O.prototype = Error(), O.prototype.constructor = O, [44].forEach(a => {
|
|
1527
|
-
|
|
1528
|
-
|
|
1528
|
+
Ab[a] = new O(a);
|
|
1529
|
+
Ab[a].stack = "<generic error, no stack>";
|
|
1529
1530
|
}));
|
|
1530
1531
|
}, hc, jc = (a, b, c) => {
|
|
1531
|
-
a =
|
|
1532
|
-
var d =
|
|
1532
|
+
a = fb("/dev/" + a);
|
|
1533
|
+
var d = Cb(!!b, !!c);
|
|
1533
1534
|
ic || (ic = 64);
|
|
1534
1535
|
var e = ic++ << 8 | 0;
|
|
1535
|
-
|
|
1536
|
+
tb(e, {open:f => {
|
|
1536
1537
|
f.seekable = !1;
|
|
1537
1538
|
}, close:() => {
|
|
1538
1539
|
c && c.buffer && c.buffer.length && c(10);
|
|
@@ -1540,7 +1541,7 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
|
|
|
1540
1541
|
for (var l = 0, u = 0; u < p; u++) {
|
|
1541
1542
|
try {
|
|
1542
1543
|
var v = b();
|
|
1543
|
-
} catch (
|
|
1544
|
+
} catch (y) {
|
|
1544
1545
|
throw new O(29);
|
|
1545
1546
|
}
|
|
1546
1547
|
if (void 0 === v && 0 === l) {
|
|
@@ -1566,7 +1567,7 @@ var Eb = null, Fb = {}, Gb = [], Hb = 1, Ib = null, Jb = !0, O = null, Bb = {},
|
|
|
1566
1567
|
return l;
|
|
1567
1568
|
}});
|
|
1568
1569
|
Xb(a, d, e);
|
|
1569
|
-
}, ic, kc = {},
|
|
1570
|
+
}, ic, kc = {}, Tb, dc, lc = void 0;
|
|
1570
1571
|
function mc() {
|
|
1571
1572
|
lc += 4;
|
|
1572
1573
|
return L[lc - 4 >> 2];
|
|
@@ -1589,13 +1590,13 @@ function pc() {
|
|
|
1589
1590
|
this.M = [void 0];
|
|
1590
1591
|
this.ib = [];
|
|
1591
1592
|
}
|
|
1592
|
-
var
|
|
1593
|
-
function
|
|
1593
|
+
var S = new pc(), qc = void 0;
|
|
1594
|
+
function U(a) {
|
|
1594
1595
|
throw new qc(a);
|
|
1595
1596
|
}
|
|
1596
1597
|
var rc = a => {
|
|
1597
|
-
a ||
|
|
1598
|
-
return
|
|
1598
|
+
a || U("Cannot use deleted val. handle = " + a);
|
|
1599
|
+
return S.get(a).value;
|
|
1599
1600
|
}, sc = a => {
|
|
1600
1601
|
switch(a) {
|
|
1601
1602
|
case void 0:
|
|
@@ -1607,7 +1608,7 @@ var rc = a => {
|
|
|
1607
1608
|
case !1:
|
|
1608
1609
|
return 4;
|
|
1609
1610
|
default:
|
|
1610
|
-
return
|
|
1611
|
+
return S.pa({ub:1, value:a});
|
|
1611
1612
|
}
|
|
1612
1613
|
};
|
|
1613
1614
|
function tc(a) {
|
|
@@ -1625,7 +1626,7 @@ function tc(a) {
|
|
|
1625
1626
|
return c;
|
|
1626
1627
|
}
|
|
1627
1628
|
var uc = void 0, vc = void 0;
|
|
1628
|
-
function
|
|
1629
|
+
function V(a) {
|
|
1629
1630
|
for (var b = ""; E[a];) {
|
|
1630
1631
|
b += vc[E[a++]];
|
|
1631
1632
|
}
|
|
@@ -1641,7 +1642,7 @@ function xc() {
|
|
|
1641
1642
|
}
|
|
1642
1643
|
var yc = void 0, zc = {};
|
|
1643
1644
|
function Ac(a, b) {
|
|
1644
|
-
for (void 0 === b &&
|
|
1645
|
+
for (void 0 === b && U("ptr should not be undefined"); a.A;) {
|
|
1645
1646
|
b = a.na(b), a = a.A;
|
|
1646
1647
|
}
|
|
1647
1648
|
return b;
|
|
@@ -1649,13 +1650,13 @@ function Ac(a, b) {
|
|
|
1649
1650
|
var Bc = {};
|
|
1650
1651
|
function Cc(a) {
|
|
1651
1652
|
a = Dc(a);
|
|
1652
|
-
var b =
|
|
1653
|
+
var b = V(a);
|
|
1653
1654
|
Ec(a);
|
|
1654
1655
|
return b;
|
|
1655
1656
|
}
|
|
1656
1657
|
function Fc(a, b) {
|
|
1657
1658
|
var c = Bc[a];
|
|
1658
|
-
void 0 === c &&
|
|
1659
|
+
void 0 === c && U(b + " has unknown type " + Cc(a));
|
|
1659
1660
|
return c;
|
|
1660
1661
|
}
|
|
1661
1662
|
function Gc() {
|
|
@@ -1718,7 +1719,7 @@ function Sc(a) {
|
|
|
1718
1719
|
return this.fromWireType(L[a >> 2]);
|
|
1719
1720
|
}
|
|
1720
1721
|
var Tc = {}, Uc = {};
|
|
1721
|
-
function
|
|
1722
|
+
function W(a, b, c) {
|
|
1722
1723
|
function d(n) {
|
|
1723
1724
|
n = c(n);
|
|
1724
1725
|
n.length !== a.length && Nc("Mismatched type converter count");
|
|
@@ -1755,12 +1756,12 @@ function Wc(a) {
|
|
|
1755
1756
|
}
|
|
1756
1757
|
function Xc(a, b, c = {}) {
|
|
1757
1758
|
var d = b.name;
|
|
1758
|
-
a ||
|
|
1759
|
+
a || U(`type "${d}" must have a positive integer typeid pointer`);
|
|
1759
1760
|
if (Bc.hasOwnProperty(a)) {
|
|
1760
1761
|
if (c.$b) {
|
|
1761
1762
|
return;
|
|
1762
1763
|
}
|
|
1763
|
-
|
|
1764
|
+
U(`Cannot register type '${d}' twice`);
|
|
1764
1765
|
}
|
|
1765
1766
|
Bc[a] = b;
|
|
1766
1767
|
delete Uc[a];
|
|
@@ -1773,7 +1774,7 @@ function Vc(a, b, c = {}) {
|
|
|
1773
1774
|
Xc(a, b, c);
|
|
1774
1775
|
}
|
|
1775
1776
|
function Yc(a) {
|
|
1776
|
-
|
|
1777
|
+
U(a.g.u.i.name + " instance already deleted");
|
|
1777
1778
|
}
|
|
1778
1779
|
function Zc() {
|
|
1779
1780
|
}
|
|
@@ -1781,7 +1782,7 @@ function $c(a, b, c) {
|
|
|
1781
1782
|
if (void 0 === a[b].B) {
|
|
1782
1783
|
var d = a[b];
|
|
1783
1784
|
a[b] = function() {
|
|
1784
|
-
a[b].B.hasOwnProperty(arguments.length) ||
|
|
1785
|
+
a[b].B.hasOwnProperty(arguments.length) || U(`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${a[b].B})!`);
|
|
1785
1786
|
return a[b].B[arguments.length].apply(this, arguments);
|
|
1786
1787
|
};
|
|
1787
1788
|
a[b].B = [];
|
|
@@ -1789,7 +1790,7 @@ function $c(a, b, c) {
|
|
|
1789
1790
|
}
|
|
1790
1791
|
}
|
|
1791
1792
|
function ad(a, b, c) {
|
|
1792
|
-
m.hasOwnProperty(a) ? ((void 0 === c || void 0 !== m[a].B && void 0 !== m[a].B[c]) &&
|
|
1793
|
+
m.hasOwnProperty(a) ? ((void 0 === c || void 0 !== m[a].B && void 0 !== m[a].B[c]) && U(`Cannot register public name '${a}' twice`), $c(m, a, a), m.hasOwnProperty(c) && U(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), m[a].B[c] = b) : (m[a] = b, void 0 !== c && (m[a].Pc = c));
|
|
1793
1794
|
}
|
|
1794
1795
|
function bd(a, b, c, d, e, f, g, n) {
|
|
1795
1796
|
this.name = a;
|
|
@@ -1804,21 +1805,21 @@ function bd(a, b, c, d, e, f, g, n) {
|
|
|
1804
1805
|
}
|
|
1805
1806
|
function cd(a, b, c) {
|
|
1806
1807
|
for (; b !== c;) {
|
|
1807
|
-
b.na ||
|
|
1808
|
+
b.na || U(`Expected null or instance of ${c.name}, got an instance of ${b.name}`), a = b.na(a), b = b.A;
|
|
1808
1809
|
}
|
|
1809
1810
|
return a;
|
|
1810
1811
|
}
|
|
1811
1812
|
function dd(a, b) {
|
|
1812
1813
|
if (null === b) {
|
|
1813
|
-
return this.Na &&
|
|
1814
|
+
return this.Na && U(`null is not a valid ${this.name}`), 0;
|
|
1814
1815
|
}
|
|
1815
|
-
b.g ||
|
|
1816
|
-
b.g.o ||
|
|
1816
|
+
b.g || U(`Cannot pass "${ed(b)}" as a ${this.name}`);
|
|
1817
|
+
b.g.o || U(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1817
1818
|
return cd(b.g.o, b.g.u.i, this.i);
|
|
1818
1819
|
}
|
|
1819
1820
|
function fd(a, b) {
|
|
1820
1821
|
if (null === b) {
|
|
1821
|
-
this.Na &&
|
|
1822
|
+
this.Na && U(`null is not a valid ${this.name}`);
|
|
1822
1823
|
if (this.ua) {
|
|
1823
1824
|
var c = this.Pa();
|
|
1824
1825
|
null !== a && a.push(this.W, c);
|
|
@@ -1826,14 +1827,14 @@ function fd(a, b) {
|
|
|
1826
1827
|
}
|
|
1827
1828
|
return 0;
|
|
1828
1829
|
}
|
|
1829
|
-
b.g ||
|
|
1830
|
-
b.g.o ||
|
|
1831
|
-
!this.ta && b.g.u.ta &&
|
|
1830
|
+
b.g || U(`Cannot pass "${ed(b)}" as a ${this.name}`);
|
|
1831
|
+
b.g.o || U(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1832
|
+
!this.ta && b.g.u.ta && U(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1832
1833
|
c = cd(b.g.o, b.g.u.i, this.i);
|
|
1833
1834
|
if (this.ua) {
|
|
1834
|
-
switch(void 0 === b.g.G &&
|
|
1835
|
+
switch(void 0 === b.g.G && U("Passing raw pointer to smart pointer is illegal"), this.tc) {
|
|
1835
1836
|
case 0:
|
|
1836
|
-
b.g.L === this ? c = b.g.G :
|
|
1837
|
+
b.g.L === this ? c = b.g.G : U(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1837
1838
|
break;
|
|
1838
1839
|
case 1:
|
|
1839
1840
|
c = b.g.G;
|
|
@@ -1850,18 +1851,18 @@ function fd(a, b) {
|
|
|
1850
1851
|
}
|
|
1851
1852
|
break;
|
|
1852
1853
|
default:
|
|
1853
|
-
|
|
1854
|
+
U("Unsupporting sharing policy");
|
|
1854
1855
|
}
|
|
1855
1856
|
}
|
|
1856
1857
|
return c;
|
|
1857
1858
|
}
|
|
1858
1859
|
function gd(a, b) {
|
|
1859
1860
|
if (null === b) {
|
|
1860
|
-
return this.Na &&
|
|
1861
|
+
return this.Na && U(`null is not a valid ${this.name}`), 0;
|
|
1861
1862
|
}
|
|
1862
|
-
b.g ||
|
|
1863
|
-
b.g.o ||
|
|
1864
|
-
b.g.u.ta &&
|
|
1863
|
+
b.g || U(`Cannot pass "${ed(b)}" as a ${this.name}`);
|
|
1864
|
+
b.g.o || U(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1865
|
+
b.g.u.ta && U(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1865
1866
|
return cd(b.g.o, b.g.u.i, this.i);
|
|
1866
1867
|
}
|
|
1867
1868
|
function hd(a, b, c, d) {
|
|
@@ -1879,7 +1880,7 @@ function jd(a, b, c) {
|
|
|
1879
1880
|
}
|
|
1880
1881
|
var kd = [], ld = a => {
|
|
1881
1882
|
var b = kd[a];
|
|
1882
|
-
b || (a >= kd.length && (kd.length = a + 1), kd[a] = b =
|
|
1883
|
+
b || (a >= kd.length && (kd.length = a + 1), kd[a] = b = Ja.get(a));
|
|
1883
1884
|
return b;
|
|
1884
1885
|
}, md = (a, b) => {
|
|
1885
1886
|
var c = [];
|
|
@@ -1895,10 +1896,10 @@ var kd = [], ld = a => {
|
|
|
1895
1896
|
return d;
|
|
1896
1897
|
};
|
|
1897
1898
|
};
|
|
1898
|
-
function
|
|
1899
|
-
a =
|
|
1899
|
+
function Y(a, b) {
|
|
1900
|
+
a = V(a);
|
|
1900
1901
|
var c = a.includes("j") ? md(a, b) : ld(b);
|
|
1901
|
-
"function" != typeof c &&
|
|
1902
|
+
"function" != typeof c && U(`unknown function pointer with signature ${a}: ${b}`);
|
|
1902
1903
|
return c;
|
|
1903
1904
|
}
|
|
1904
1905
|
var nd = void 0;
|
|
@@ -1912,7 +1913,7 @@ function od(a, b) {
|
|
|
1912
1913
|
}
|
|
1913
1914
|
function pd(a, b, c, d, e) {
|
|
1914
1915
|
var f = b.length;
|
|
1915
|
-
2 > f &&
|
|
1916
|
+
2 > f && U("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1916
1917
|
var g = null !== b[1] && null !== c, n = !1;
|
|
1917
1918
|
for (c = 1; c < b.length; ++c) {
|
|
1918
1919
|
if (null !== b[c] && void 0 === b[c].K) {
|
|
@@ -1920,26 +1921,26 @@ function pd(a, b, c, d, e) {
|
|
|
1920
1921
|
break;
|
|
1921
1922
|
}
|
|
1922
1923
|
}
|
|
1923
|
-
var p = "void" !== b[0].name, l = f - 2, u = Array(l), v = [],
|
|
1924
|
+
var p = "void" !== b[0].name, l = f - 2, u = Array(l), v = [], y = [];
|
|
1924
1925
|
return function() {
|
|
1925
|
-
arguments.length !== l &&
|
|
1926
|
-
|
|
1926
|
+
arguments.length !== l && U(`function ${a} called with ${arguments.length} arguments, expected ${l} args!`);
|
|
1927
|
+
y.length = 0;
|
|
1927
1928
|
v.length = g ? 2 : 1;
|
|
1928
1929
|
v[0] = e;
|
|
1929
1930
|
if (g) {
|
|
1930
|
-
var k = b[1].toWireType(
|
|
1931
|
+
var k = b[1].toWireType(y, this);
|
|
1931
1932
|
v[1] = k;
|
|
1932
1933
|
}
|
|
1933
1934
|
for (var t = 0; t < l; ++t) {
|
|
1934
|
-
u[t] = b[t + 2].toWireType(
|
|
1935
|
+
u[t] = b[t + 2].toWireType(y, arguments[t]), v.push(u[t]);
|
|
1935
1936
|
}
|
|
1936
1937
|
t = d.apply(null, v);
|
|
1937
1938
|
if (n) {
|
|
1938
|
-
Rc(
|
|
1939
|
+
Rc(y);
|
|
1939
1940
|
} else {
|
|
1940
1941
|
for (var r = g ? 1 : 2; r < b.length; r++) {
|
|
1941
|
-
var
|
|
1942
|
-
null !== b[r].K && b[r].K(
|
|
1942
|
+
var A = 1 === r ? k : u[r - 2];
|
|
1943
|
+
null !== b[r].K && b[r].K(A);
|
|
1943
1944
|
}
|
|
1944
1945
|
}
|
|
1945
1946
|
k = p ? b[0].fromWireType(t) : void 0;
|
|
@@ -1953,13 +1954,13 @@ function sd(a, b) {
|
|
|
1953
1954
|
return c;
|
|
1954
1955
|
}
|
|
1955
1956
|
function td(a, b, c) {
|
|
1956
|
-
a instanceof Object ||
|
|
1957
|
-
a instanceof b.i.constructor ||
|
|
1958
|
-
a.g.o ||
|
|
1957
|
+
a instanceof Object || U(`${c} with invalid "this": ${a}`);
|
|
1958
|
+
a instanceof b.i.constructor || U(`${c} incompatible with "this" of type ${a.constructor.name}`);
|
|
1959
|
+
a.g.o || U(`cannot call emscripten binding method ${c} on deleted object`);
|
|
1959
1960
|
return cd(a.g.o, a.g.u.i, b.i);
|
|
1960
1961
|
}
|
|
1961
1962
|
function ud(a) {
|
|
1962
|
-
a >=
|
|
1963
|
+
a >= S.h && 0 === --S.get(a).ub && S.Zb(a);
|
|
1963
1964
|
}
|
|
1964
1965
|
function vd(a, b, c) {
|
|
1965
1966
|
switch(b) {
|
|
@@ -1969,7 +1970,7 @@ function vd(a, b, c) {
|
|
|
1969
1970
|
};
|
|
1970
1971
|
case 1:
|
|
1971
1972
|
return function(d) {
|
|
1972
|
-
return this.fromWireType((c ?
|
|
1973
|
+
return this.fromWireType((c ? Ca : Da)[d >> 1]);
|
|
1973
1974
|
};
|
|
1974
1975
|
case 2:
|
|
1975
1976
|
return function(d) {
|
|
@@ -1990,11 +1991,11 @@ function wd(a, b) {
|
|
|
1990
1991
|
switch(b) {
|
|
1991
1992
|
case 2:
|
|
1992
1993
|
return function(c) {
|
|
1993
|
-
return this.fromWireType(
|
|
1994
|
+
return this.fromWireType(Ea[c >> 2]);
|
|
1994
1995
|
};
|
|
1995
1996
|
case 3:
|
|
1996
1997
|
return function(c) {
|
|
1997
|
-
return this.fromWireType(
|
|
1998
|
+
return this.fromWireType(Fa[c >> 3]);
|
|
1998
1999
|
};
|
|
1999
2000
|
default:
|
|
2000
2001
|
throw new TypeError("Unknown float type: " + a);
|
|
@@ -2010,9 +2011,9 @@ function xd(a, b, c) {
|
|
|
2010
2011
|
};
|
|
2011
2012
|
case 1:
|
|
2012
2013
|
return c ? function(d) {
|
|
2013
|
-
return
|
|
2014
|
+
return Ca[d >> 1];
|
|
2014
2015
|
} : function(d) {
|
|
2015
|
-
return
|
|
2016
|
+
return Da[d >> 1];
|
|
2016
2017
|
};
|
|
2017
2018
|
case 2:
|
|
2018
2019
|
return c ? function(d) {
|
|
@@ -2026,7 +2027,7 @@ function xd(a, b, c) {
|
|
|
2026
2027
|
}
|
|
2027
2028
|
var yd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, zd = (a, b) => {
|
|
2028
2029
|
var c = a >> 1;
|
|
2029
|
-
for (var d = c + b / 2; !(c >= d) &&
|
|
2030
|
+
for (var d = c + b / 2; !(c >= d) && Da[c];) {
|
|
2030
2031
|
++c;
|
|
2031
2032
|
}
|
|
2032
2033
|
c <<= 1;
|
|
@@ -2035,7 +2036,7 @@ var yd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
2035
2036
|
}
|
|
2036
2037
|
c = "";
|
|
2037
2038
|
for (d = 0; !(d >= b / 2); ++d) {
|
|
2038
|
-
var e =
|
|
2039
|
+
var e = Ca[a + 2 * d >> 1];
|
|
2039
2040
|
if (0 == e) {
|
|
2040
2041
|
break;
|
|
2041
2042
|
}
|
|
@@ -2051,9 +2052,9 @@ var yd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
2051
2052
|
var d = b;
|
|
2052
2053
|
c = c < 2 * a.length ? c / 2 : a.length;
|
|
2053
2054
|
for (var e = 0; e < c; ++e) {
|
|
2054
|
-
|
|
2055
|
+
Ca[b >> 1] = a.charCodeAt(e), b += 2;
|
|
2055
2056
|
}
|
|
2056
|
-
|
|
2057
|
+
Ca[b >> 1] = 0;
|
|
2057
2058
|
return b - d;
|
|
2058
2059
|
}, Bd = a => 2 * a.length, Cd = (a, b) => {
|
|
2059
2060
|
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
@@ -2096,7 +2097,7 @@ var yd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
2096
2097
|
}, Fd = {};
|
|
2097
2098
|
function Gd(a) {
|
|
2098
2099
|
var b = Fd[a];
|
|
2099
|
-
return void 0 === b ?
|
|
2100
|
+
return void 0 === b ? V(a) : b;
|
|
2100
2101
|
}
|
|
2101
2102
|
var Hd = [];
|
|
2102
2103
|
function Id(a) {
|
|
@@ -2112,7 +2113,7 @@ function Jd(a, b) {
|
|
|
2112
2113
|
}
|
|
2113
2114
|
var Kd = [], Ld = [], Md = {}, Od = () => {
|
|
2114
2115
|
if (!Nd) {
|
|
2115
|
-
var a = {USER:"web_user", LOGNAME:"web_user", PATH:"/", PWD:"/", HOME:"/home/web_user", LANG:("object" == typeof navigator && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _:
|
|
2116
|
+
var a = {USER:"web_user", LOGNAME:"web_user", PATH:"/", PWD:"/", HOME:"/home/web_user", LANG:("object" == typeof navigator && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _:ma || "./this.program"}, b;
|
|
2116
2117
|
for (b in Md) {
|
|
2117
2118
|
void 0 === Md[b] ? delete a[b] : a[b] = Md[b];
|
|
2118
2119
|
}
|
|
@@ -2137,9 +2138,9 @@ var Kd = [], Ld = [], Md = {}, Od = () => {
|
|
|
2137
2138
|
function r(D) {
|
|
2138
2139
|
return 0 > D ? -1 : 0 < D ? 1 : 0;
|
|
2139
2140
|
}
|
|
2140
|
-
var
|
|
2141
|
-
0 === (
|
|
2142
|
-
return
|
|
2141
|
+
var A;
|
|
2142
|
+
0 === (A = r(k.getFullYear() - t.getFullYear())) && 0 === (A = r(k.getMonth() - t.getMonth())) && (A = r(k.getDate() - t.getDate()));
|
|
2143
|
+
return A;
|
|
2143
2144
|
}
|
|
2144
2145
|
function n(k) {
|
|
2145
2146
|
switch(k.getDay()) {
|
|
@@ -2162,9 +2163,9 @@ var Kd = [], Ld = [], Md = {}, Od = () => {
|
|
|
2162
2163
|
function p(k) {
|
|
2163
2164
|
var t = k.ca;
|
|
2164
2165
|
for (k = new Date((new Date(k.da + 1900, 0, 1)).getTime()); 0 < t;) {
|
|
2165
|
-
var r = k.getMonth(),
|
|
2166
|
-
if (t >
|
|
2167
|
-
t -=
|
|
2166
|
+
var r = k.getMonth(), A = (Pd(k.getFullYear()) ? Qd : Rd)[r];
|
|
2167
|
+
if (t > A - k.getDate()) {
|
|
2168
|
+
t -= A - k.getDate() + 1, k.setDate(1), 11 > r ? k.setMonth(r + 1) : (k.setMonth(0), k.setFullYear(k.getFullYear() + 1));
|
|
2168
2169
|
} else {
|
|
2169
2170
|
k.setDate(k.getDate() + t);
|
|
2170
2171
|
break;
|
|
@@ -2176,14 +2177,14 @@ var Kd = [], Ld = [], Md = {}, Od = () => {
|
|
|
2176
2177
|
return 0 >= g(t, k) ? 0 >= g(r, k) ? k.getFullYear() + 1 : k.getFullYear() : k.getFullYear() - 1;
|
|
2177
2178
|
}
|
|
2178
2179
|
var l = L[d + 40 >> 2];
|
|
2179
|
-
d = {wc:L[d >> 2], vc:L[d + 4 >> 2], Fa:L[d + 8 >> 2], Sa:L[d + 12 >> 2], Ga:L[d + 16 >> 2], da:L[d + 20 >> 2], R:L[d + 24 >> 2], ca:L[d + 28 >> 2], Rc:L[d + 32 >> 2], uc:L[d + 36 >> 2], xc:l ? l ?
|
|
2180
|
-
c = c ?
|
|
2180
|
+
d = {wc:L[d >> 2], vc:L[d + 4 >> 2], Fa:L[d + 8 >> 2], Sa:L[d + 12 >> 2], Ga:L[d + 16 >> 2], da:L[d + 20 >> 2], R:L[d + 24 >> 2], ca:L[d + 28 >> 2], Rc:L[d + 32 >> 2], uc:L[d + 36 >> 2], xc:l ? l ? mb(E, l) : "" : ""};
|
|
2181
|
+
c = c ? mb(E, c) : "";
|
|
2181
2182
|
l = {"%c":"%a %b %d %H:%M:%S %Y", "%D":"%m/%d/%y", "%F":"%Y-%m-%d", "%h":"%b", "%r":"%I:%M:%S %p", "%R":"%H:%M", "%T":"%H:%M:%S", "%x":"%m/%d/%y", "%X":"%H:%M:%S", "%Ec":"%c", "%EC":"%C", "%Ex":"%m/%d/%y", "%EX":"%H:%M:%S", "%Ey":"%y", "%EY":"%Y", "%Od":"%d", "%Oe":"%e", "%OH":"%H", "%OI":"%I", "%Om":"%m", "%OM":"%M", "%OS":"%S", "%Ou":"%u", "%OU":"%U", "%OV":"%V", "%Ow":"%w", "%OW":"%W", "%Oy":"%y",};
|
|
2182
2183
|
for (var u in l) {
|
|
2183
2184
|
c = c.replace(new RegExp(u, "g"), l[u]);
|
|
2184
2185
|
}
|
|
2185
|
-
var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
|
|
2186
|
-
l = {"%a":k => v[k.R].substring(0, 3), "%A":k => v[k.R], "%b":k =>
|
|
2186
|
+
var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), y = "January February March April May June July August September October November December".split(" ");
|
|
2187
|
+
l = {"%a":k => v[k.R].substring(0, 3), "%A":k => v[k.R], "%b":k => y[k.Ga].substring(0, 3), "%B":k => y[k.Ga], "%C":k => f((k.da + 1900) / 100 | 0, 2), "%d":k => f(k.Sa, 2), "%e":k => e(k.Sa, 2, " "), "%g":k => p(k).toString().substring(2), "%G":k => p(k), "%H":k => f(k.Fa, 2), "%I":k => {
|
|
2187
2188
|
k = k.Fa;
|
|
2188
2189
|
0 == k ? k = 12 : 12 < k && (k -= 12);
|
|
2189
2190
|
return f(k, 2);
|
|
@@ -2213,26 +2214,26 @@ var Kd = [], Ld = [], Md = {}, Od = () => {
|
|
|
2213
2214
|
c.includes(u) && (c = c.replace(new RegExp(u, "g"), l[u](d)));
|
|
2214
2215
|
}
|
|
2215
2216
|
c = c.replace(/\0\0/g, "%");
|
|
2216
|
-
u =
|
|
2217
|
+
u = qb(c, !1);
|
|
2217
2218
|
if (u.length > b) {
|
|
2218
2219
|
return 0;
|
|
2219
2220
|
}
|
|
2220
2221
|
C.set(u, a);
|
|
2221
2222
|
return u.length - 1;
|
|
2222
2223
|
};
|
|
2223
|
-
function
|
|
2224
|
+
function Ob(a, b, c, d) {
|
|
2224
2225
|
a || (a = this);
|
|
2225
2226
|
this.parent = a;
|
|
2226
2227
|
this.U = a.U;
|
|
2227
2228
|
this.wa = null;
|
|
2228
|
-
this.id =
|
|
2229
|
+
this.id = Gb++;
|
|
2229
2230
|
this.name = b;
|
|
2230
2231
|
this.mode = c;
|
|
2231
2232
|
this.l = {};
|
|
2232
2233
|
this.m = {};
|
|
2233
2234
|
this.za = d;
|
|
2234
2235
|
}
|
|
2235
|
-
Object.defineProperties(
|
|
2236
|
+
Object.defineProperties(Ob.prototype, {read:{get:function() {
|
|
2236
2237
|
return 365 === (this.mode & 365);
|
|
2237
2238
|
}, set:function(a) {
|
|
2238
2239
|
a ? this.mode |= 365 : this.mode &= -366;
|
|
@@ -2242,36 +2243,36 @@ Object.defineProperties(Pb.prototype, {read:{get:function() {
|
|
|
2242
2243
|
a ? this.mode |= 146 : this.mode &= -147;
|
|
2243
2244
|
}}});
|
|
2244
2245
|
gc();
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2246
|
+
Hb = Array(4096);
|
|
2247
|
+
Vb(P, "/");
|
|
2248
|
+
Wb("/tmp", 16895, 0);
|
|
2249
|
+
Wb("/home", 16895, 0);
|
|
2250
|
+
Wb("/home/web_user", 16895, 0);
|
|
2250
2251
|
(() => {
|
|
2251
|
-
|
|
2252
|
-
|
|
2252
|
+
Wb("/dev", 16895, 0);
|
|
2253
|
+
tb(259, {read:() => 0, write:(d, e, f, g) => g,});
|
|
2253
2254
|
Xb("/dev/null", 259);
|
|
2254
|
-
|
|
2255
|
-
|
|
2255
|
+
sb(1280, vb);
|
|
2256
|
+
sb(1536, wb);
|
|
2256
2257
|
Xb("/dev/tty", 1280);
|
|
2257
2258
|
Xb("/dev/tty1", 1536);
|
|
2258
2259
|
var a = new Uint8Array(1024), b = 0, c = () => {
|
|
2259
|
-
0 === b && (b =
|
|
2260
|
+
0 === b && (b = jb(a).byteLength);
|
|
2260
2261
|
return a[--b];
|
|
2261
2262
|
};
|
|
2262
2263
|
jc("random", c);
|
|
2263
2264
|
jc("urandom", c);
|
|
2264
|
-
|
|
2265
|
-
|
|
2265
|
+
Wb("/dev/shm", 16895, 0);
|
|
2266
|
+
Wb("/dev/shm/tmp", 16895, 0);
|
|
2266
2267
|
})();
|
|
2267
2268
|
(() => {
|
|
2268
|
-
|
|
2269
|
-
var a =
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
var b =
|
|
2269
|
+
Wb("/proc", 16895, 0);
|
|
2270
|
+
var a = Wb("/proc/self", 16895, 0);
|
|
2271
|
+
Wb("/proc/self/fd", 16895, 0);
|
|
2272
|
+
Vb({U:() => {
|
|
2273
|
+
var b = zb(a, "fd", 16895, 73);
|
|
2273
2274
|
b.l = {ka:(c, d) => {
|
|
2274
|
-
var e =
|
|
2275
|
+
var e = Sb(+d);
|
|
2275
2276
|
c = {parent:null, U:{nb:"fake"}, l:{ma:() => e.path},};
|
|
2276
2277
|
return c.parent = c;
|
|
2277
2278
|
}};
|
|
@@ -2296,11 +2297,11 @@ qc = m.BindingError = class extends Error {
|
|
|
2296
2297
|
this.name = "BindingError";
|
|
2297
2298
|
}
|
|
2298
2299
|
};
|
|
2299
|
-
|
|
2300
|
-
|
|
2300
|
+
S.M.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
|
|
2301
|
+
S.h = S.M.length;
|
|
2301
2302
|
m.count_emval_handles = function() {
|
|
2302
|
-
for (var a = 0, b =
|
|
2303
|
-
void 0 !==
|
|
2303
|
+
for (var a = 0, b = S.h; b < S.M.length; ++b) {
|
|
2304
|
+
void 0 !== S.M[b] && ++a;
|
|
2304
2305
|
}
|
|
2305
2306
|
return a;
|
|
2306
2307
|
};
|
|
@@ -2356,7 +2357,7 @@ Zc.prototype.clone = function() {
|
|
|
2356
2357
|
};
|
|
2357
2358
|
Zc.prototype["delete"] = function() {
|
|
2358
2359
|
this.g.o || Yc(this);
|
|
2359
|
-
this.g.fa && !this.g.ia &&
|
|
2360
|
+
this.g.fa && !this.g.ia && U("Object already scheduled for deletion");
|
|
2360
2361
|
Gc(this);
|
|
2361
2362
|
Ic(this.g);
|
|
2362
2363
|
this.g.ia || (this.g.G = void 0, this.g.o = void 0);
|
|
@@ -2366,7 +2367,7 @@ Zc.prototype.isDeleted = function() {
|
|
|
2366
2367
|
};
|
|
2367
2368
|
Zc.prototype.deleteLater = function() {
|
|
2368
2369
|
this.g.o || Yc(this);
|
|
2369
|
-
this.g.fa && !this.g.ia &&
|
|
2370
|
+
this.g.fa && !this.g.ia && U("Object already scheduled for deletion");
|
|
2370
2371
|
wc.push(this);
|
|
2371
2372
|
1 === wc.length && yc && yc(xc);
|
|
2372
2373
|
this.g.fa = !0;
|
|
@@ -2416,11 +2417,11 @@ nd = m.UnboundTypeError = tc("UnboundTypeError");
|
|
|
2416
2417
|
var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
2417
2418
|
lc = c;
|
|
2418
2419
|
try {
|
|
2419
|
-
var d =
|
|
2420
|
+
var d = Sb(a);
|
|
2420
2421
|
switch(b) {
|
|
2421
2422
|
case 0:
|
|
2422
2423
|
var e = mc();
|
|
2423
|
-
return 0 > e ? -28 :
|
|
2424
|
+
return 0 > e ? -28 : Ub(d, e).X;
|
|
2424
2425
|
case 1:
|
|
2425
2426
|
case 2:
|
|
2426
2427
|
return 0;
|
|
@@ -2429,7 +2430,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2429
2430
|
case 4:
|
|
2430
2431
|
return e = mc(), d.flags |= e, 0;
|
|
2431
2432
|
case 5:
|
|
2432
|
-
return e = mc(),
|
|
2433
|
+
return e = mc(), Ca[e + 0 >> 1] = 2, 0;
|
|
2433
2434
|
case 6:
|
|
2434
2435
|
case 7:
|
|
2435
2436
|
return 0;
|
|
@@ -2450,7 +2451,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2450
2451
|
}, __syscall_ioctl:function(a, b, c) {
|
|
2451
2452
|
lc = c;
|
|
2452
2453
|
try {
|
|
2453
|
-
var d =
|
|
2454
|
+
var d = Sb(a);
|
|
2454
2455
|
switch(b) {
|
|
2455
2456
|
case 21509:
|
|
2456
2457
|
return d.s ? 0 : -59;
|
|
@@ -2504,7 +2505,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2504
2505
|
if (!d.s) {
|
|
2505
2506
|
return -59;
|
|
2506
2507
|
}
|
|
2507
|
-
d.s.V.dc && (f = [24, 80], e = mc(),
|
|
2508
|
+
d.s.V.dc && (f = [24, 80], e = mc(), Ca[e >> 1] = f[0], Ca[e + 2 >> 1] = f[1]);
|
|
2508
2509
|
return 0;
|
|
2509
2510
|
case 21524:
|
|
2510
2511
|
return d.s ? 0 : -59;
|
|
@@ -2522,16 +2523,16 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2522
2523
|
}, __syscall_openat:function(a, b, c, d) {
|
|
2523
2524
|
lc = d;
|
|
2524
2525
|
try {
|
|
2525
|
-
b = b ?
|
|
2526
|
+
b = b ? mb(E, b) : "";
|
|
2526
2527
|
var e = b;
|
|
2527
2528
|
if ("/" === e.charAt(0)) {
|
|
2528
2529
|
b = e;
|
|
2529
2530
|
} else {
|
|
2530
|
-
var f = -100 === a ? "/" :
|
|
2531
|
+
var f = -100 === a ? "/" : Sb(a).path;
|
|
2531
2532
|
if (0 == e.length) {
|
|
2532
2533
|
throw new O(44);
|
|
2533
2534
|
}
|
|
2534
|
-
b =
|
|
2535
|
+
b = fb(f + "/" + e);
|
|
2535
2536
|
}
|
|
2536
2537
|
var g = d ? mc() : 0;
|
|
2537
2538
|
return ec(b, c, g).X;
|
|
@@ -2542,7 +2543,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2542
2543
|
return -n.aa;
|
|
2543
2544
|
}
|
|
2544
2545
|
}, _embind_create_inheriting_constructor:function(a, b, c) {
|
|
2545
|
-
a =
|
|
2546
|
+
a = V(a);
|
|
2546
2547
|
b = Fc(b, "wrapper");
|
|
2547
2548
|
c = rc(c);
|
|
2548
2549
|
var d = [].slice, e = b.i, f = e.N, g = e.A.N, n = e.A.constructor;
|
|
@@ -2556,7 +2557,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2556
2557
|
this.__construct.apply(this, d.call(arguments));
|
|
2557
2558
|
});
|
|
2558
2559
|
f.__construct = function() {
|
|
2559
|
-
this === f &&
|
|
2560
|
+
this === f && U("Pass correct 'this' to __construct");
|
|
2560
2561
|
var l = n.implement.apply(void 0, [this].concat(d.call(arguments)));
|
|
2561
2562
|
Gc(l);
|
|
2562
2563
|
var u = l.g;
|
|
@@ -2566,14 +2567,14 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2566
2567
|
Pc(this);
|
|
2567
2568
|
l = u.o;
|
|
2568
2569
|
l = Ac(e, l);
|
|
2569
|
-
zc.hasOwnProperty(l) ?
|
|
2570
|
+
zc.hasOwnProperty(l) ? U(`Tried to register registered instance: ${l}`) : zc[l] = this;
|
|
2570
2571
|
};
|
|
2571
2572
|
f.__destruct = function() {
|
|
2572
|
-
this === f &&
|
|
2573
|
+
this === f && U("Pass correct 'this' to __destruct");
|
|
2573
2574
|
Gc(this);
|
|
2574
2575
|
var l = this.g.o;
|
|
2575
2576
|
l = Ac(e, l);
|
|
2576
|
-
zc.hasOwnProperty(l) ? delete zc[l] :
|
|
2577
|
+
zc.hasOwnProperty(l) ? delete zc[l] : U(`Tried to unregister unregistered instance: ${l}`);
|
|
2577
2578
|
};
|
|
2578
2579
|
a.prototype = Object.create(f);
|
|
2579
2580
|
for (var p in c) {
|
|
@@ -2584,13 +2585,13 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2584
2585
|
var b = Qc[a];
|
|
2585
2586
|
delete Qc[a];
|
|
2586
2587
|
var c = b.Pa, d = b.W, e = b.fb, f = e.map(g => g.Yb).concat(e.map(g => g.rc));
|
|
2587
|
-
|
|
2588
|
+
W([a], f, g => {
|
|
2588
2589
|
var n = {};
|
|
2589
2590
|
e.forEach((p, l) => {
|
|
2590
|
-
var u = g[l], v = p.Wb,
|
|
2591
|
-
n[p.Sb] = {read:
|
|
2591
|
+
var u = g[l], v = p.Wb, y = p.Xb, k = g[l + e.length], t = p.qc, r = p.sc;
|
|
2592
|
+
n[p.Sb] = {read:A => u.fromWireType(v(y, A)), write:(A, D) => {
|
|
2592
2593
|
var w = [];
|
|
2593
|
-
t(r,
|
|
2594
|
+
t(r, A, k.toWireType(w, D));
|
|
2594
2595
|
Rc(w);
|
|
2595
2596
|
}};
|
|
2596
2597
|
});
|
|
@@ -2618,7 +2619,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2618
2619
|
}, _embind_register_bigint:function() {
|
|
2619
2620
|
}, _embind_register_bool:function(a, b, c, d, e) {
|
|
2620
2621
|
var f = Wc(c);
|
|
2621
|
-
b =
|
|
2622
|
+
b = V(b);
|
|
2622
2623
|
Vc(a, {name:b, fromWireType:function(g) {
|
|
2623
2624
|
return !!g;
|
|
2624
2625
|
}, toWireType:function(g, n) {
|
|
@@ -2627,7 +2628,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2627
2628
|
if (1 === c) {
|
|
2628
2629
|
var n = C;
|
|
2629
2630
|
} else if (2 === c) {
|
|
2630
|
-
n =
|
|
2631
|
+
n = Ca;
|
|
2631
2632
|
} else if (4 === c) {
|
|
2632
2633
|
n = L;
|
|
2633
2634
|
} else {
|
|
@@ -2635,23 +2636,23 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2635
2636
|
}
|
|
2636
2637
|
return this.fromWireType(n[g >> f]);
|
|
2637
2638
|
}, K:null,});
|
|
2638
|
-
}, _embind_register_class:function(a, b, c, d, e, f, g, n, p, l, u, v,
|
|
2639
|
-
u =
|
|
2640
|
-
f =
|
|
2641
|
-
n && (n =
|
|
2642
|
-
l && (l =
|
|
2643
|
-
|
|
2639
|
+
}, _embind_register_class:function(a, b, c, d, e, f, g, n, p, l, u, v, y) {
|
|
2640
|
+
u = V(u);
|
|
2641
|
+
f = Y(e, f);
|
|
2642
|
+
n && (n = Y(g, n));
|
|
2643
|
+
l && (l = Y(p, l));
|
|
2644
|
+
y = Y(v, y);
|
|
2644
2645
|
var k = nc(u);
|
|
2645
2646
|
ad(k, function() {
|
|
2646
2647
|
od(`Cannot construct ${u} due to unbound types`, [d]);
|
|
2647
2648
|
});
|
|
2648
|
-
|
|
2649
|
+
W([a, b, c], d ? [d] : [], function(t) {
|
|
2649
2650
|
t = t[0];
|
|
2650
2651
|
if (d) {
|
|
2651
2652
|
var r = t.i;
|
|
2652
|
-
var
|
|
2653
|
+
var A = r.N;
|
|
2653
2654
|
} else {
|
|
2654
|
-
|
|
2655
|
+
A = Zc.prototype;
|
|
2655
2656
|
}
|
|
2656
2657
|
t = oc(k, function() {
|
|
2657
2658
|
if (Object.getPrototypeOf(this) !== D) {
|
|
@@ -2666,22 +2667,22 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2666
2667
|
}
|
|
2667
2668
|
return T.apply(this, arguments);
|
|
2668
2669
|
});
|
|
2669
|
-
var D = Object.create(
|
|
2670
|
+
var D = Object.create(A, {constructor:{value:t},});
|
|
2670
2671
|
t.prototype = D;
|
|
2671
|
-
var w = new bd(u, t, D,
|
|
2672
|
+
var w = new bd(u, t, D, y, r, f, n, l);
|
|
2672
2673
|
w.A && (void 0 === w.A.oa && (w.A.oa = []), w.A.oa.push(w));
|
|
2673
2674
|
r = new hd(u, w, !0, !1);
|
|
2674
|
-
|
|
2675
|
+
A = new hd(u + "*", w, !1, !1);
|
|
2675
2676
|
var M = new hd(u + " const*", w, !1, !0);
|
|
2676
|
-
Kc[a] = {pointerType:
|
|
2677
|
+
Kc[a] = {pointerType:A, Kb:M};
|
|
2677
2678
|
jd(k, t);
|
|
2678
|
-
return [r,
|
|
2679
|
+
return [r, A, M];
|
|
2679
2680
|
});
|
|
2680
2681
|
}, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
|
|
2681
2682
|
var n = sd(c, d);
|
|
2682
|
-
b =
|
|
2683
|
-
f =
|
|
2684
|
-
|
|
2683
|
+
b = V(b);
|
|
2684
|
+
f = Y(e, f);
|
|
2685
|
+
W([], [a], function(p) {
|
|
2685
2686
|
function l() {
|
|
2686
2687
|
od(`Cannot call ${u} due to unbound types`, n);
|
|
2687
2688
|
}
|
|
@@ -2690,12 +2691,12 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2690
2691
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2691
2692
|
var v = p.i.constructor;
|
|
2692
2693
|
void 0 === v[b] ? (l.ea = c - 1, v[b] = l) : ($c(v, b, u), v[b].B[c - 1] = l);
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
void 0 === v[b].B ? (
|
|
2694
|
+
W([], n, function(y) {
|
|
2695
|
+
y = pd(u, [y[0], null].concat(y.slice(1)), null, f, g);
|
|
2696
|
+
void 0 === v[b].B ? (y.ea = c - 1, v[b] = y) : v[b].B[c - 1] = y;
|
|
2696
2697
|
if (p.i.oa) {
|
|
2697
2698
|
for (const k of p.i.oa) {
|
|
2698
|
-
k.constructor.hasOwnProperty(b) || (k.constructor[b] =
|
|
2699
|
+
k.constructor.hasOwnProperty(b) || (k.constructor[b] = y);
|
|
2699
2700
|
}
|
|
2700
2701
|
}
|
|
2701
2702
|
return [];
|
|
@@ -2703,9 +2704,9 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2703
2704
|
return [];
|
|
2704
2705
|
});
|
|
2705
2706
|
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g, n) {
|
|
2706
|
-
b =
|
|
2707
|
-
f =
|
|
2708
|
-
|
|
2707
|
+
b = V(b);
|
|
2708
|
+
f = Y(e, f);
|
|
2709
|
+
W([], [a], function(p) {
|
|
2709
2710
|
p = p[0];
|
|
2710
2711
|
var l = `${p.name}.${b}`, u = {get() {
|
|
2711
2712
|
od(`Cannot access ${l} due to unbound types`, [c]);
|
|
@@ -2713,28 +2714,28 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2713
2714
|
u.set = n ? () => {
|
|
2714
2715
|
od(`Cannot access ${l} due to unbound types`, [c]);
|
|
2715
2716
|
} : () => {
|
|
2716
|
-
|
|
2717
|
+
U(`${l} is a read-only property`);
|
|
2717
2718
|
};
|
|
2718
2719
|
Object.defineProperty(p.i.constructor, b, u);
|
|
2719
|
-
|
|
2720
|
+
W([], [c], function(v) {
|
|
2720
2721
|
v = v[0];
|
|
2721
|
-
var
|
|
2722
|
+
var y = {get() {
|
|
2722
2723
|
return v.fromWireType(f(d));
|
|
2723
2724
|
}, enumerable:!0};
|
|
2724
|
-
n && (n =
|
|
2725
|
+
n && (n = Y(g, n), y.set = k => {
|
|
2725
2726
|
var t = [];
|
|
2726
2727
|
n(d, v.toWireType(t, k));
|
|
2727
2728
|
Rc(t);
|
|
2728
2729
|
});
|
|
2729
|
-
Object.defineProperty(p.i.constructor, b,
|
|
2730
|
+
Object.defineProperty(p.i.constructor, b, y);
|
|
2730
2731
|
return [];
|
|
2731
2732
|
});
|
|
2732
2733
|
return [];
|
|
2733
2734
|
});
|
|
2734
2735
|
}, _embind_register_class_constructor:function(a, b, c, d, e, f) {
|
|
2735
2736
|
var g = sd(b, c);
|
|
2736
|
-
e =
|
|
2737
|
-
|
|
2737
|
+
e = Y(d, e);
|
|
2738
|
+
W([], [a], function(n) {
|
|
2738
2739
|
n = n[0];
|
|
2739
2740
|
var p = `constructor ${n.name}`;
|
|
2740
2741
|
void 0 === n.i.$ && (n.i.$ = []);
|
|
@@ -2744,7 +2745,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2744
2745
|
n.i.$[b - 1] = () => {
|
|
2745
2746
|
od(`Cannot construct ${n.name} due to unbound types`, g);
|
|
2746
2747
|
};
|
|
2747
|
-
|
|
2748
|
+
W([], g, function(l) {
|
|
2748
2749
|
l.splice(1, 0, null);
|
|
2749
2750
|
n.i.$[b - 1] = pd(p, l, null, e, f);
|
|
2750
2751
|
return [];
|
|
@@ -2753,9 +2754,9 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2753
2754
|
});
|
|
2754
2755
|
}, _embind_register_class_function:function(a, b, c, d, e, f, g, n) {
|
|
2755
2756
|
var p = sd(c, d);
|
|
2756
|
-
b =
|
|
2757
|
-
f =
|
|
2758
|
-
|
|
2757
|
+
b = V(b);
|
|
2758
|
+
f = Y(e, f);
|
|
2759
|
+
W([], [a], function(l) {
|
|
2759
2760
|
function u() {
|
|
2760
2761
|
od(`Cannot call ${v} due to unbound types`, p);
|
|
2761
2762
|
}
|
|
@@ -2763,40 +2764,40 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2763
2764
|
var v = `${l.name}.${b}`;
|
|
2764
2765
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2765
2766
|
n && l.i.rb.push(b);
|
|
2766
|
-
var
|
|
2767
|
-
void 0 === k || void 0 === k.B && k.className !== l.name && k.ea === c - 2 ? (u.ea = c - 2, u.className = l.name,
|
|
2768
|
-
|
|
2767
|
+
var y = l.i.N, k = y[b];
|
|
2768
|
+
void 0 === k || void 0 === k.B && k.className !== l.name && k.ea === c - 2 ? (u.ea = c - 2, u.className = l.name, y[b] = u) : ($c(y, b, v), y[b].B[c - 2] = u);
|
|
2769
|
+
W([], p, function(t) {
|
|
2769
2770
|
t = pd(v, t, l, f, g);
|
|
2770
|
-
void 0 ===
|
|
2771
|
+
void 0 === y[b].B ? (t.ea = c - 2, y[b] = t) : y[b].B[c - 2] = t;
|
|
2771
2772
|
return [];
|
|
2772
2773
|
});
|
|
2773
2774
|
return [];
|
|
2774
2775
|
});
|
|
2775
2776
|
}, _embind_register_class_property:function(a, b, c, d, e, f, g, n, p, l) {
|
|
2776
|
-
b =
|
|
2777
|
-
e =
|
|
2778
|
-
|
|
2777
|
+
b = V(b);
|
|
2778
|
+
e = Y(d, e);
|
|
2779
|
+
W([], [a], function(u) {
|
|
2779
2780
|
u = u[0];
|
|
2780
|
-
var v = `${u.name}.${b}`,
|
|
2781
|
+
var v = `${u.name}.${b}`, y = {get() {
|
|
2781
2782
|
od(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2782
2783
|
}, enumerable:!0, configurable:!0};
|
|
2783
|
-
|
|
2784
|
+
y.set = p ? () => {
|
|
2784
2785
|
od(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2785
2786
|
} : () => {
|
|
2786
|
-
|
|
2787
|
+
U(v + " is a read-only property");
|
|
2787
2788
|
};
|
|
2788
|
-
Object.defineProperty(u.i.N, b,
|
|
2789
|
-
|
|
2789
|
+
Object.defineProperty(u.i.N, b, y);
|
|
2790
|
+
W([], p ? [c, g] : [c], function(k) {
|
|
2790
2791
|
var t = k[0], r = {get() {
|
|
2791
2792
|
var D = td(this, u, v + " getter");
|
|
2792
2793
|
return t.fromWireType(e(f, D));
|
|
2793
2794
|
}, enumerable:!0};
|
|
2794
2795
|
if (p) {
|
|
2795
|
-
p =
|
|
2796
|
-
var
|
|
2796
|
+
p = Y(n, p);
|
|
2797
|
+
var A = k[1];
|
|
2797
2798
|
r.set = function(D) {
|
|
2798
2799
|
var w = td(this, u, v + " setter"), M = [];
|
|
2799
|
-
p(l, w,
|
|
2800
|
+
p(l, w, A.toWireType(M, D));
|
|
2800
2801
|
Rc(M);
|
|
2801
2802
|
};
|
|
2802
2803
|
}
|
|
@@ -2806,7 +2807,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2806
2807
|
return [];
|
|
2807
2808
|
});
|
|
2808
2809
|
}, _embind_register_emval:function(a, b) {
|
|
2809
|
-
b =
|
|
2810
|
+
b = V(b);
|
|
2810
2811
|
Vc(a, {name:b, fromWireType:function(c) {
|
|
2811
2812
|
var d = rc(c);
|
|
2812
2813
|
ud(c);
|
|
@@ -2818,7 +2819,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2818
2819
|
function e() {
|
|
2819
2820
|
}
|
|
2820
2821
|
c = Wc(c);
|
|
2821
|
-
b =
|
|
2822
|
+
b = V(b);
|
|
2822
2823
|
e.values = {};
|
|
2823
2824
|
Vc(a, {name:b, constructor:e, fromWireType:function(f) {
|
|
2824
2825
|
return this.constructor.values[f];
|
|
@@ -2828,7 +2829,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2828
2829
|
ad(b, e);
|
|
2829
2830
|
}, _embind_register_enum_value:function(a, b, c) {
|
|
2830
2831
|
var d = Fc(a, "enum");
|
|
2831
|
-
b =
|
|
2832
|
+
b = V(b);
|
|
2832
2833
|
a = d.constructor;
|
|
2833
2834
|
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:oc(`${d.name}_${b}`, function() {
|
|
2834
2835
|
})},});
|
|
@@ -2836,7 +2837,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2836
2837
|
a[b] = d;
|
|
2837
2838
|
}, _embind_register_float:function(a, b, c) {
|
|
2838
2839
|
c = Wc(c);
|
|
2839
|
-
b =
|
|
2840
|
+
b = V(b);
|
|
2840
2841
|
Vc(a, {name:b, fromWireType:function(d) {
|
|
2841
2842
|
return d;
|
|
2842
2843
|
}, toWireType:function(d, e) {
|
|
@@ -2844,17 +2845,17 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2844
2845
|
}, argPackAdvance:8, readValueFromPointer:wd(b, c), K:null,});
|
|
2845
2846
|
}, _embind_register_function:function(a, b, c, d, e, f) {
|
|
2846
2847
|
var g = sd(b, c);
|
|
2847
|
-
a =
|
|
2848
|
-
e =
|
|
2848
|
+
a = V(a);
|
|
2849
|
+
e = Y(d, e);
|
|
2849
2850
|
ad(a, function() {
|
|
2850
2851
|
od(`Cannot call ${a} due to unbound types`, g);
|
|
2851
2852
|
}, b - 1);
|
|
2852
|
-
|
|
2853
|
+
W([], g, function(n) {
|
|
2853
2854
|
jd(a, pd(a, [n[0], null].concat(n.slice(1)), null, e, f), b - 1);
|
|
2854
2855
|
return [];
|
|
2855
2856
|
});
|
|
2856
2857
|
}, _embind_register_integer:function(a, b, c, d, e) {
|
|
2857
|
-
b =
|
|
2858
|
+
b = V(b);
|
|
2858
2859
|
-1 === e && (e = 4294967295);
|
|
2859
2860
|
e = Wc(c);
|
|
2860
2861
|
var f = n => n;
|
|
@@ -2875,10 +2876,10 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2875
2876
|
return new e(g.buffer, g[f + 1], g[f]);
|
|
2876
2877
|
}
|
|
2877
2878
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2878
|
-
c =
|
|
2879
|
+
c = V(c);
|
|
2879
2880
|
Vc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {$b:!0,});
|
|
2880
2881
|
}, _embind_register_std_string:function(a, b) {
|
|
2881
|
-
b =
|
|
2882
|
+
b = V(b);
|
|
2882
2883
|
var c = "std::string" === b;
|
|
2883
2884
|
Vc(a, {name:b, fromWireType:function(d) {
|
|
2884
2885
|
var e = N[d >> 2], f = d + 4;
|
|
@@ -2886,7 +2887,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2886
2887
|
for (var g = f, n = 0; n <= e; ++n) {
|
|
2887
2888
|
var p = f + n;
|
|
2888
2889
|
if (n == e || 0 == E[p]) {
|
|
2889
|
-
g = g ?
|
|
2890
|
+
g = g ? mb(E, g, p - g) : "";
|
|
2890
2891
|
if (void 0 === l) {
|
|
2891
2892
|
var l = g;
|
|
2892
2893
|
} else {
|
|
@@ -2907,17 +2908,17 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2907
2908
|
}, toWireType:function(d, e) {
|
|
2908
2909
|
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
2909
2910
|
var f = "string" == typeof e;
|
|
2910
|
-
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array ||
|
|
2911
|
-
var g = c && f ?
|
|
2911
|
+
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || U("Cannot pass non-string to std::string");
|
|
2912
|
+
var g = c && f ? ob(e) : e.length;
|
|
2912
2913
|
var n = Wd(4 + g + 1), p = n + 4;
|
|
2913
2914
|
N[n >> 2] = g;
|
|
2914
2915
|
if (c && f) {
|
|
2915
|
-
|
|
2916
|
+
pb(e, E, p, g + 1);
|
|
2916
2917
|
} else {
|
|
2917
2918
|
if (f) {
|
|
2918
2919
|
for (f = 0; f < g; ++f) {
|
|
2919
2920
|
var l = e.charCodeAt(f);
|
|
2920
|
-
255 < l && (Ec(p),
|
|
2921
|
+
255 < l && (Ec(p), U("String has UTF-16 code units that do not fit in 8 bits"));
|
|
2921
2922
|
E[p + f] = l;
|
|
2922
2923
|
}
|
|
2923
2924
|
} else {
|
|
@@ -2932,27 +2933,27 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2932
2933
|
Ec(d);
|
|
2933
2934
|
},});
|
|
2934
2935
|
}, _embind_register_std_wstring:function(a, b, c) {
|
|
2935
|
-
c =
|
|
2936
|
+
c = V(c);
|
|
2936
2937
|
if (2 === b) {
|
|
2937
2938
|
var d = zd;
|
|
2938
2939
|
var e = Ad;
|
|
2939
2940
|
var f = Bd;
|
|
2940
|
-
var g = () =>
|
|
2941
|
+
var g = () => Da;
|
|
2941
2942
|
var n = 1;
|
|
2942
2943
|
} else {
|
|
2943
2944
|
4 === b && (d = Cd, e = Dd, f = Ed, g = () => N, n = 2);
|
|
2944
2945
|
}
|
|
2945
2946
|
Vc(a, {name:c, fromWireType:function(p) {
|
|
2946
|
-
for (var l = N[p >> 2], u = g(), v,
|
|
2947
|
+
for (var l = N[p >> 2], u = g(), v, y = p + 4, k = 0; k <= l; ++k) {
|
|
2947
2948
|
var t = p + 4 + k * b;
|
|
2948
2949
|
if (k == l || 0 == u[t >> n]) {
|
|
2949
|
-
|
|
2950
|
+
y = d(y, t - y), void 0 === v ? v = y : (v += String.fromCharCode(0), v += y), y = t + b;
|
|
2950
2951
|
}
|
|
2951
2952
|
}
|
|
2952
2953
|
Ec(p);
|
|
2953
2954
|
return v;
|
|
2954
2955
|
}, toWireType:function(p, l) {
|
|
2955
|
-
"string" != typeof l &&
|
|
2956
|
+
"string" != typeof l && U(`Cannot pass non-string to C++ string type ${c}`);
|
|
2956
2957
|
var u = f(l), v = Wd(4 + u + b);
|
|
2957
2958
|
N[v >> 2] = u >> n;
|
|
2958
2959
|
e(l, v + 4, u + b);
|
|
@@ -2962,11 +2963,11 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2962
2963
|
Ec(p);
|
|
2963
2964
|
},});
|
|
2964
2965
|
}, _embind_register_value_object:function(a, b, c, d, e, f) {
|
|
2965
|
-
Qc[a] = {name:
|
|
2966
|
+
Qc[a] = {name:V(b), Pa:Y(c, d), W:Y(e, f), fb:[],};
|
|
2966
2967
|
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, n, p, l) {
|
|
2967
|
-
Qc[a].fb.push({Sb:
|
|
2968
|
+
Qc[a].fb.push({Sb:V(b), Yb:c, Wb:Y(d, e), Xb:f, rc:g, qc:Y(n, p), sc:l,});
|
|
2968
2969
|
}, _embind_register_void:function(a, b) {
|
|
2969
|
-
b =
|
|
2970
|
+
b = V(b);
|
|
2970
2971
|
Vc(a, {fc:!0, name:b, argPackAdvance:0, fromWireType:function() {
|
|
2971
2972
|
}, toWireType:function() {
|
|
2972
2973
|
},});
|
|
@@ -3019,7 +3020,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3019
3020
|
b = rc(b);
|
|
3020
3021
|
return sc(a[b]);
|
|
3021
3022
|
}, _emval_incref:function(a) {
|
|
3022
|
-
4 < a && (
|
|
3023
|
+
4 < a && (S.get(a).ub += 1);
|
|
3023
3024
|
}, _emval_new_array:function() {
|
|
3024
3025
|
return sc([]);
|
|
3025
3026
|
}, _emval_new_cstring:function(a) {
|
|
@@ -3040,14 +3041,14 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3040
3041
|
a = a.readValueFromPointer(b);
|
|
3041
3042
|
return sc(a);
|
|
3042
3043
|
}, abort:() => {
|
|
3043
|
-
|
|
3044
|
+
ya("");
|
|
3044
3045
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
3045
3046
|
Ld.length = 0;
|
|
3046
3047
|
var d;
|
|
3047
3048
|
for (c >>= 2; d = E[b++];) {
|
|
3048
|
-
c += 105 != d & c, Ld.push(105 == d ? L[c] :
|
|
3049
|
+
c += 105 != d & c, Ld.push(105 == d ? L[c] : Fa[c++ >> 1]), ++c;
|
|
3049
3050
|
}
|
|
3050
|
-
return
|
|
3051
|
+
return cb[a].apply(null, Ld);
|
|
3051
3052
|
}, emscripten_date_now:function() {
|
|
3052
3053
|
return Date.now();
|
|
3053
3054
|
}, emscripten_get_now:() => performance.now(), emscripten_memcpy_big:(a, b, c) => E.copyWithin(a, b, b + c), emscripten_resize_heap:a => {
|
|
@@ -3062,10 +3063,10 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3062
3063
|
var e = Math;
|
|
3063
3064
|
d = Math.max(a, d);
|
|
3064
3065
|
a: {
|
|
3065
|
-
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) -
|
|
3066
|
+
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - Aa.buffer.byteLength + 65535 >>> 16;
|
|
3066
3067
|
try {
|
|
3067
|
-
|
|
3068
|
-
|
|
3068
|
+
Aa.grow(e);
|
|
3069
|
+
Ia();
|
|
3069
3070
|
var f = 1;
|
|
3070
3071
|
break a;
|
|
3071
3072
|
} catch (g) {
|
|
@@ -3100,7 +3101,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3100
3101
|
return 0;
|
|
3101
3102
|
}, fd_close:function(a) {
|
|
3102
3103
|
try {
|
|
3103
|
-
var b =
|
|
3104
|
+
var b = Sb(a);
|
|
3104
3105
|
if (null === b.X) {
|
|
3105
3106
|
throw new O(8);
|
|
3106
3107
|
}
|
|
@@ -3110,7 +3111,7 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3110
3111
|
} catch (c) {
|
|
3111
3112
|
throw c;
|
|
3112
3113
|
} finally {
|
|
3113
|
-
|
|
3114
|
+
Fb[b.X] = null;
|
|
3114
3115
|
}
|
|
3115
3116
|
b.X = null;
|
|
3116
3117
|
return 0;
|
|
@@ -3123,13 +3124,13 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3123
3124
|
}, fd_read:function(a, b, c, d) {
|
|
3124
3125
|
try {
|
|
3125
3126
|
a: {
|
|
3126
|
-
var e =
|
|
3127
|
+
var e = Sb(a);
|
|
3127
3128
|
a = b;
|
|
3128
3129
|
for (var f, g = b = 0; g < c; g++) {
|
|
3129
3130
|
var n = N[a >> 2], p = N[a + 4 >> 2];
|
|
3130
3131
|
a += 8;
|
|
3131
|
-
var l = e, u = n, v = p,
|
|
3132
|
-
if (0 > v || 0 >
|
|
3132
|
+
var l = e, u = n, v = p, y = f, k = C;
|
|
3133
|
+
if (0 > v || 0 > y) {
|
|
3133
3134
|
throw new O(28);
|
|
3134
3135
|
}
|
|
3135
3136
|
if (null === l.X) {
|
|
@@ -3144,24 +3145,24 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3144
3145
|
if (!l.m.read) {
|
|
3145
3146
|
throw new O(28);
|
|
3146
3147
|
}
|
|
3147
|
-
var t = "undefined" != typeof
|
|
3148
|
+
var t = "undefined" != typeof y;
|
|
3148
3149
|
if (!t) {
|
|
3149
|
-
|
|
3150
|
+
y = l.position;
|
|
3150
3151
|
} else if (!l.seekable) {
|
|
3151
3152
|
throw new O(70);
|
|
3152
3153
|
}
|
|
3153
|
-
var r = l.m.read(l, k, u, v,
|
|
3154
|
+
var r = l.m.read(l, k, u, v, y);
|
|
3154
3155
|
t || (l.position += r);
|
|
3155
|
-
var
|
|
3156
|
-
if (0 >
|
|
3156
|
+
var A = r;
|
|
3157
|
+
if (0 > A) {
|
|
3157
3158
|
var D = -1;
|
|
3158
3159
|
break a;
|
|
3159
3160
|
}
|
|
3160
|
-
b +=
|
|
3161
|
-
if (
|
|
3161
|
+
b += A;
|
|
3162
|
+
if (A < p) {
|
|
3162
3163
|
break;
|
|
3163
3164
|
}
|
|
3164
|
-
"undefined" !== typeof f && (f +=
|
|
3165
|
+
"undefined" !== typeof f && (f += A);
|
|
3165
3166
|
}
|
|
3166
3167
|
D = b;
|
|
3167
3168
|
}
|
|
@@ -3179,11 +3180,11 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3179
3180
|
if (isNaN(b)) {
|
|
3180
3181
|
return 61;
|
|
3181
3182
|
}
|
|
3182
|
-
var f =
|
|
3183
|
+
var f = Sb(a);
|
|
3183
3184
|
fc(f, b, d);
|
|
3184
|
-
|
|
3185
|
-
L[e >> 2] =
|
|
3186
|
-
L[e + 4 >> 2] =
|
|
3185
|
+
Za = [f.position >>> 0, (Ya = f.position, 1.0 <= +Math.abs(Ya) ? 0.0 < Ya ? +Math.floor(Ya / 4294967296.0) >>> 0 : ~~+Math.ceil((Ya - +(~~Ya >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
3186
|
+
L[e >> 2] = Za[0];
|
|
3187
|
+
L[e + 4 >> 2] = Za[1];
|
|
3187
3188
|
f.Ma && 0 === b && 0 === d && (f.Ma = null);
|
|
3188
3189
|
return 0;
|
|
3189
3190
|
} catch (g) {
|
|
@@ -3195,13 +3196,13 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3195
3196
|
}, fd_write:function(a, b, c, d) {
|
|
3196
3197
|
try {
|
|
3197
3198
|
a: {
|
|
3198
|
-
var e =
|
|
3199
|
+
var e = Sb(a);
|
|
3199
3200
|
a = b;
|
|
3200
3201
|
for (var f, g = b = 0; g < c; g++) {
|
|
3201
3202
|
var n = N[a >> 2], p = N[a + 4 >> 2];
|
|
3202
3203
|
a += 8;
|
|
3203
|
-
var l = e, u = n, v = p,
|
|
3204
|
-
if (0 > v || 0 >
|
|
3204
|
+
var l = e, u = n, v = p, y = f, k = C;
|
|
3205
|
+
if (0 > v || 0 > y) {
|
|
3205
3206
|
throw new O(28);
|
|
3206
3207
|
}
|
|
3207
3208
|
if (null === l.X) {
|
|
@@ -3217,21 +3218,21 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3217
3218
|
throw new O(28);
|
|
3218
3219
|
}
|
|
3219
3220
|
l.seekable && l.flags & 1024 && fc(l, 0, 2);
|
|
3220
|
-
var t = "undefined" != typeof
|
|
3221
|
+
var t = "undefined" != typeof y;
|
|
3221
3222
|
if (!t) {
|
|
3222
|
-
|
|
3223
|
+
y = l.position;
|
|
3223
3224
|
} else if (!l.seekable) {
|
|
3224
3225
|
throw new O(70);
|
|
3225
3226
|
}
|
|
3226
|
-
var r = l.m.write(l, k, u, v,
|
|
3227
|
+
var r = l.m.write(l, k, u, v, y, void 0);
|
|
3227
3228
|
t || (l.position += r);
|
|
3228
|
-
var
|
|
3229
|
-
if (0 >
|
|
3229
|
+
var A = r;
|
|
3230
|
+
if (0 > A) {
|
|
3230
3231
|
var D = -1;
|
|
3231
3232
|
break a;
|
|
3232
3233
|
}
|
|
3233
|
-
b +=
|
|
3234
|
-
"undefined" !== typeof f && (f +=
|
|
3234
|
+
b += A;
|
|
3235
|
+
"undefined" !== typeof f && (f += A);
|
|
3235
3236
|
}
|
|
3236
3237
|
D = b;
|
|
3237
3238
|
}
|
|
@@ -3247,38 +3248,38 @@ var Xd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3247
3248
|
(function() {
|
|
3248
3249
|
function a(c) {
|
|
3249
3250
|
z = c = c.exports;
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
m.monitorRunDependencies && m.monitorRunDependencies(
|
|
3256
|
-
if (0 ==
|
|
3257
|
-
var d =
|
|
3258
|
-
|
|
3251
|
+
Aa = z.memory;
|
|
3252
|
+
Ia();
|
|
3253
|
+
Ja = z.__indirect_function_table;
|
|
3254
|
+
La.unshift(z.__wasm_call_ctors);
|
|
3255
|
+
Oa--;
|
|
3256
|
+
m.monitorRunDependencies && m.monitorRunDependencies(Oa);
|
|
3257
|
+
if (0 == Oa && (null !== Pa && (clearInterval(Pa), Pa = null), Qa)) {
|
|
3258
|
+
var d = Qa;
|
|
3259
|
+
Qa = null;
|
|
3259
3260
|
d();
|
|
3260
3261
|
}
|
|
3261
3262
|
return c;
|
|
3262
3263
|
}
|
|
3263
3264
|
var b = {env:Xd, wasi_snapshot_preview1:Xd,};
|
|
3264
|
-
|
|
3265
|
-
m.monitorRunDependencies && m.monitorRunDependencies(
|
|
3265
|
+
Oa++;
|
|
3266
|
+
m.monitorRunDependencies && m.monitorRunDependencies(Oa);
|
|
3266
3267
|
if (m.instantiateWasm) {
|
|
3267
3268
|
try {
|
|
3268
3269
|
return m.instantiateWasm(b, a);
|
|
3269
3270
|
} catch (c) {
|
|
3270
|
-
|
|
3271
|
+
wa("Module.instantiateWasm callback failed with error: " + c), ba(c);
|
|
3271
3272
|
}
|
|
3272
3273
|
}
|
|
3273
|
-
|
|
3274
|
+
Xa(b, function(c) {
|
|
3274
3275
|
a(c.instance);
|
|
3275
3276
|
}).catch(ba);
|
|
3276
3277
|
return {};
|
|
3277
3278
|
})();
|
|
3278
|
-
var Ec = a => (Ec = z.free)(a), Wd = a => (Wd = z.malloc)(a), Vd = () => (Vd = z.__errno_location)(),
|
|
3279
|
+
var Ec = a => (Ec = z.free)(a), Wd = a => (Wd = z.malloc)(a), Vd = () => (Vd = z.__errno_location)(), $a = m._ma_device__on_notification_unlocked = a => ($a = m._ma_device__on_notification_unlocked = z.ma_device__on_notification_unlocked)(a);
|
|
3279
3280
|
m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = z.ma_malloc_emscripten)(a, b);
|
|
3280
3281
|
m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = z.ma_free_emscripten)(a, b);
|
|
3281
|
-
var
|
|
3282
|
+
var ab = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (ab = m._ma_device_process_pcm_frames_capture__webaudio = z.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), bb = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (bb = m._ma_device_process_pcm_frames_playback__webaudio = z.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Dc = a => (Dc = z.__getTypeName)(a);
|
|
3282
3283
|
m.__embind_initialize_bindings = () => (m.__embind_initialize_bindings = z._embind_initialize_bindings)();
|
|
3283
3284
|
m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = z.dynCall_iiji)(a, b, c, d, e);
|
|
3284
3285
|
m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = z.dynCall_jiji)(a, b, c, d, e);
|
|
@@ -3290,16 +3291,16 @@ m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = z.dynCall_iiiiij
|
|
|
3290
3291
|
m.dynCall_iiiiijj = (a, b, c, d, e, f, g, n, p) => (m.dynCall_iiiiijj = z.dynCall_iiiiijj)(a, b, c, d, e, f, g, n, p);
|
|
3291
3292
|
m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, n, p, l) => (m.dynCall_iiiiiijj = z.dynCall_iiiiiijj)(a, b, c, d, e, f, g, n, p, l);
|
|
3292
3293
|
var Yd;
|
|
3293
|
-
|
|
3294
|
+
Qa = function Zd() {
|
|
3294
3295
|
Yd || $d();
|
|
3295
|
-
Yd || (
|
|
3296
|
+
Yd || (Qa = Zd);
|
|
3296
3297
|
};
|
|
3297
3298
|
function $d() {
|
|
3298
3299
|
function a() {
|
|
3299
|
-
if (!Yd && (Yd = !0, m.calledRun = !0, !
|
|
3300
|
+
if (!Yd && (Yd = !0, m.calledRun = !0, !Ba)) {
|
|
3300
3301
|
m.noFSInit || hc || (hc = !0, gc(), m.stdin = m.stdin, m.stdout = m.stdout, m.stderr = m.stderr, m.stdin ? jc("stdin", m.stdin) : cc("/dev/tty", "/dev/stdin"), m.stdout ? jc("stdout", null, m.stdout) : cc("/dev/tty", "/dev/stdout"), m.stderr ? jc("stderr", null, m.stderr) : cc("/dev/tty1", "/dev/stderr"), ec("/dev/stdin", 0), ec("/dev/stdout", 1), ec("/dev/stderr", 1));
|
|
3301
|
-
|
|
3302
|
-
|
|
3302
|
+
Ib = !1;
|
|
3303
|
+
db(La);
|
|
3303
3304
|
aa(m);
|
|
3304
3305
|
if (m.onRuntimeInitialized) {
|
|
3305
3306
|
m.onRuntimeInitialized();
|
|
@@ -3307,20 +3308,20 @@ function $d() {
|
|
|
3307
3308
|
if (m.postRun) {
|
|
3308
3309
|
for ("function" == typeof m.postRun && (m.postRun = [m.postRun]); m.postRun.length;) {
|
|
3309
3310
|
var b = m.postRun.shift();
|
|
3310
|
-
|
|
3311
|
+
Ma.unshift(b);
|
|
3311
3312
|
}
|
|
3312
3313
|
}
|
|
3313
|
-
|
|
3314
|
+
db(Ma);
|
|
3314
3315
|
}
|
|
3315
3316
|
}
|
|
3316
|
-
if (!(0 <
|
|
3317
|
+
if (!(0 < Oa)) {
|
|
3317
3318
|
if (m.preRun) {
|
|
3318
3319
|
for ("function" == typeof m.preRun && (m.preRun = [m.preRun]); m.preRun.length;) {
|
|
3319
|
-
|
|
3320
|
+
Na();
|
|
3320
3321
|
}
|
|
3321
3322
|
}
|
|
3322
|
-
|
|
3323
|
-
0 <
|
|
3323
|
+
db(Ka);
|
|
3324
|
+
0 < Oa || (m.setStatus ? (m.setStatus("Running..."), setTimeout(function() {
|
|
3324
3325
|
setTimeout(function() {
|
|
3325
3326
|
m.setStatus("");
|
|
3326
3327
|
}, 1);
|