@rive-app/canvas-advanced 2.35.3 → 2.35.4
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 +861 -853
- package/package.json +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +13 -9
- package/rive_fallback.wasm +0 -0
package/canvas_advanced.mjs
CHANGED
|
@@ -10,7 +10,7 @@ var m = moduleArg, ba, ca, da = new Promise((a, b) => {
|
|
|
10
10
|
ba = a;
|
|
11
11
|
ca = b;
|
|
12
12
|
}), ea = "object" == typeof window, fa = "function" == typeof importScripts;
|
|
13
|
-
function
|
|
13
|
+
function ia() {
|
|
14
14
|
function a(g) {
|
|
15
15
|
const k = d;
|
|
16
16
|
c = b = 0;
|
|
@@ -56,7 +56,7 @@ function ha() {
|
|
|
56
56
|
this.ob = function() {
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function ja(a) {
|
|
60
60
|
console.assert(!0);
|
|
61
61
|
const b = new Map();
|
|
62
62
|
let c = -Infinity;
|
|
@@ -71,9 +71,9 @@ function ia(a) {
|
|
|
71
71
|
return c << a;
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
const
|
|
74
|
+
const ka = m.onRuntimeInitialized;
|
|
75
75
|
m.onRuntimeInitialized = function() {
|
|
76
|
-
|
|
76
|
+
ka && ka();
|
|
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, k, p);
|
|
136
136
|
};
|
|
137
137
|
};
|
|
138
|
-
const
|
|
138
|
+
const la = "createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "), ma = new function() {
|
|
139
139
|
function a() {
|
|
140
140
|
if (!b) {
|
|
141
141
|
var l = document.createElement("canvas"), u = {alpha:1, depth:0, stencil:0, antialias:0, premultipliedAlpha:1, preserveDrawingBuffer:0, powerPreference:"high-performance", failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:1, explicitSwapControl:1, renderViaOffscreenBackBuffer:1,};
|
|
@@ -155,38 +155,38 @@ const ka = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
r = new Proxy(r, {get(
|
|
159
|
-
if (
|
|
160
|
-
if (p || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", w), p = !0), "function" === typeof
|
|
158
|
+
r = new Proxy(r, {get(I, w) {
|
|
159
|
+
if (I.isContextLost()) {
|
|
160
|
+
if (p || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", w), p = !0), "function" === typeof I[w]) {
|
|
161
161
|
return function() {
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
164
|
} else {
|
|
165
|
-
return "function" === typeof
|
|
166
|
-
return
|
|
167
|
-
} :
|
|
165
|
+
return "function" === typeof I[w] ? function(...L) {
|
|
166
|
+
return I[w].apply(I, L);
|
|
167
|
+
} : I[w];
|
|
168
168
|
}
|
|
169
|
-
}, set(
|
|
170
|
-
if (
|
|
169
|
+
}, set(I, w, L) {
|
|
170
|
+
if (I.isContextLost()) {
|
|
171
171
|
p || (console.error("Cannot render the mesh because the GL Context was lost. Tried to set property " + w), p = !0);
|
|
172
172
|
} else {
|
|
173
|
-
return
|
|
173
|
+
return I[w] = L, !0;
|
|
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 D(I, w, L) {
|
|
178
178
|
w = r.createShader(w);
|
|
179
|
-
r.shaderSource(w,
|
|
179
|
+
r.shaderSource(w, L);
|
|
180
180
|
r.compileShader(w);
|
|
181
|
-
|
|
182
|
-
if (0 < (
|
|
183
|
-
throw
|
|
181
|
+
L = r.getShaderInfoLog(w);
|
|
182
|
+
if (0 < (L || "").length) {
|
|
183
|
+
throw L;
|
|
184
184
|
}
|
|
185
|
-
r.attachShader(
|
|
185
|
+
r.attachShader(I, w);
|
|
186
186
|
}
|
|
187
187
|
l = r.createProgram();
|
|
188
|
-
|
|
189
|
-
|
|
188
|
+
D(l, 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
|
+
D(l, 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(l, 0, "vertex");
|
|
191
191
|
r.bindAttribLocation(l, 1, "uv");
|
|
192
192
|
r.linkProgram(l);
|
|
@@ -232,63 +232,63 @@ const ka = "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 u;
|
|
234
234
|
};
|
|
235
|
-
const n = new
|
|
236
|
-
this.Nb = function(l, u, r,
|
|
235
|
+
const n = new ja(8), t = new ja(8), x = new ja(10), y = new ja(10);
|
|
236
|
+
this.Nb = function(l, u, r, D, I) {
|
|
237
237
|
if (a()) {
|
|
238
|
-
var w = n.push(l),
|
|
238
|
+
var w = n.push(l), L = t.push(u);
|
|
239
239
|
if (b.canvas) {
|
|
240
|
-
if (b.canvas.width != w || b.canvas.height !=
|
|
241
|
-
b.canvas.width = w, b.canvas.height =
|
|
240
|
+
if (b.canvas.width != w || b.canvas.height != L) {
|
|
241
|
+
b.canvas.width = w, b.canvas.height = L;
|
|
242
242
|
}
|
|
243
|
-
b.viewport(0,
|
|
243
|
+
b.viewport(0, L - u, l, u);
|
|
244
244
|
b.disable(b.SCISSOR_TEST);
|
|
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((
|
|
249
|
-
w = x.push(
|
|
248
|
+
r.sort((K, Z) => Z.vb - K.vb);
|
|
249
|
+
w = x.push(D);
|
|
250
250
|
g != w && (b.bufferData(b.ARRAY_BUFFER, 8 * w, b.DYNAMIC_DRAW), g = w);
|
|
251
251
|
w = 0;
|
|
252
|
-
for (var
|
|
253
|
-
b.bufferSubData(b.ARRAY_BUFFER, w,
|
|
252
|
+
for (var R of r) {
|
|
253
|
+
b.bufferSubData(b.ARRAY_BUFFER, w, R.Ta), w += 4 * R.Ta.length;
|
|
254
254
|
}
|
|
255
|
-
console.assert(w == 4 *
|
|
256
|
-
for (var
|
|
257
|
-
b.bufferSubData(b.ARRAY_BUFFER, w,
|
|
255
|
+
console.assert(w == 4 * D);
|
|
256
|
+
for (var V of r) {
|
|
257
|
+
b.bufferSubData(b.ARRAY_BUFFER, w, V.Bb), w += 4 * V.Bb.length;
|
|
258
258
|
}
|
|
259
|
-
console.assert(w == 8 *
|
|
260
|
-
w = y.push(
|
|
259
|
+
console.assert(w == 8 * D);
|
|
260
|
+
w = y.push(I);
|
|
261
261
|
k != w && (b.bufferData(b.ELEMENT_ARRAY_BUFFER, 2 * w, b.DYNAMIC_DRAW), k = w);
|
|
262
|
-
|
|
263
|
-
for (var
|
|
264
|
-
b.bufferSubData(b.ELEMENT_ARRAY_BUFFER,
|
|
262
|
+
R = 0;
|
|
263
|
+
for (var qa of r) {
|
|
264
|
+
b.bufferSubData(b.ELEMENT_ARRAY_BUFFER, R, qa.indices), R += 2 * qa.indices.length;
|
|
265
265
|
}
|
|
266
|
-
console.assert(
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
w =
|
|
270
|
-
for (const
|
|
271
|
-
|
|
272
|
-
|
|
266
|
+
console.assert(R == 2 * I);
|
|
267
|
+
qa = 0;
|
|
268
|
+
V = !0;
|
|
269
|
+
w = R = 0;
|
|
270
|
+
for (const K of r) {
|
|
271
|
+
K.image.Ja != qa && (b.bindTexture(b.TEXTURE_2D, K.image.Ia || null), qa = K.image.Ja);
|
|
272
|
+
K.hc ? (b.scissor(K.Za, L - K.$a - K.jb, K.uc, K.jb), V = !0) : V && (b.scissor(0, L - u, l, u), V = !1);
|
|
273
273
|
r = 2 / l;
|
|
274
274
|
const Z = -2 / u;
|
|
275
|
-
b.uniform4f(e,
|
|
276
|
-
b.uniform2f(f,
|
|
275
|
+
b.uniform4f(e, K.ha[0] * r * K.Aa, K.ha[1] * Z * K.Ba, K.ha[2] * r * K.Aa, K.ha[3] * Z * K.Ba);
|
|
276
|
+
b.uniform2f(f, K.ha[4] * r * K.Aa + r * (K.Za - K.cc * K.Aa) - 1, K.ha[5] * Z * K.Ba + Z * (K.$a - K.dc * K.Ba) + 1);
|
|
277
277
|
b.vertexAttribPointer(0, 2, b.FLOAT, !1, 0, w);
|
|
278
|
-
b.vertexAttribPointer(1, 2, b.FLOAT, !1, 0, w + 4 *
|
|
279
|
-
b.drawElements(b.TRIANGLES,
|
|
280
|
-
w += 4 *
|
|
281
|
-
|
|
278
|
+
b.vertexAttribPointer(1, 2, b.FLOAT, !1, 0, w + 4 * D);
|
|
279
|
+
b.drawElements(b.TRIANGLES, K.indices.length, b.UNSIGNED_SHORT, R);
|
|
280
|
+
w += 4 * K.Ta.length;
|
|
281
|
+
R += 2 * K.indices.length;
|
|
282
282
|
}
|
|
283
|
-
console.assert(w == 4 *
|
|
284
|
-
console.assert(
|
|
283
|
+
console.assert(w == 4 * D);
|
|
284
|
+
console.assert(R == 2 * I);
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
288
|
this.canvas = function() {
|
|
289
289
|
return a() && b.canvas;
|
|
290
290
|
};
|
|
291
|
-
}(),
|
|
291
|
+
}(), na = m.onRuntimeInitialized;
|
|
292
292
|
m.onRuntimeInitialized = function() {
|
|
293
293
|
function a(q) {
|
|
294
294
|
switch(q) {
|
|
@@ -330,16 +330,16 @@ 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 <
|
|
334
|
-
for (const q of
|
|
333
|
+
0 < L.length && (ma.Nb(w.drawWidth(), w.drawHeight(), L, R, V), L = [], V = R = 0, w.reset(512, 512));
|
|
334
|
+
for (const q of I) {
|
|
335
335
|
for (const v of q.I) {
|
|
336
336
|
v();
|
|
337
337
|
}
|
|
338
338
|
q.I = [];
|
|
339
339
|
}
|
|
340
|
-
|
|
340
|
+
I.clear();
|
|
341
341
|
}
|
|
342
|
-
|
|
342
|
+
na && na();
|
|
343
343
|
var d = m.RenderPaintStyle;
|
|
344
344
|
const e = m.RenderPath, f = m.RenderPaint, g = m.Renderer, k = m.StrokeCap, p = m.StrokeJoin, n = m.BlendMode, t = d.fill, x = d.stroke, y = m.FillRule.evenOdd;
|
|
345
345
|
let l = 1;
|
|
@@ -350,47 +350,47 @@ m.onRuntimeInitialized = function() {
|
|
|
350
350
|
this.la = q;
|
|
351
351
|
this.wa = v;
|
|
352
352
|
}, __destruct:function() {
|
|
353
|
-
this.Ia && (
|
|
353
|
+
this.Ia && (ma.Kb(this.Ia), URL.revokeObjectURL(this.Wa));
|
|
354
354
|
this.__parent.__destruct.call(this);
|
|
355
355
|
}, decode:function(q) {
|
|
356
356
|
var v = this;
|
|
357
357
|
v.wa && v.wa(v);
|
|
358
|
-
var
|
|
358
|
+
var J = new Image();
|
|
359
359
|
v.Wa = URL.createObjectURL(new Blob([q], {type:"image/png",}));
|
|
360
|
-
|
|
361
|
-
v.Db =
|
|
362
|
-
v.Ia =
|
|
363
|
-
v.size(
|
|
360
|
+
J.onload = function() {
|
|
361
|
+
v.Db = J;
|
|
362
|
+
v.Ia = ma.Jb(J);
|
|
363
|
+
v.size(J.width, J.height);
|
|
364
364
|
v.la && v.la(v);
|
|
365
365
|
};
|
|
366
|
-
|
|
366
|
+
J.src = v.Wa;
|
|
367
367
|
},}), r = e.extend("CanvasRenderPath", {__construct:function() {
|
|
368
368
|
this.__parent.__construct.call(this);
|
|
369
369
|
this.U = new Path2D();
|
|
370
370
|
}, rewind:function() {
|
|
371
371
|
this.U = new Path2D();
|
|
372
|
-
}, addPath:function(q, v,
|
|
373
|
-
var
|
|
372
|
+
}, addPath:function(q, v, J, G, A, H, E) {
|
|
373
|
+
var M = this.U, ya = M.addPath;
|
|
374
374
|
q = q.U;
|
|
375
|
-
const
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
375
|
+
const T = new DOMMatrix();
|
|
376
|
+
T.a = v;
|
|
377
|
+
T.b = J;
|
|
378
|
+
T.c = G;
|
|
379
|
+
T.d = A;
|
|
380
|
+
T.e = H;
|
|
381
|
+
T.f = E;
|
|
382
|
+
ya.call(M, q, T);
|
|
383
383
|
}, fillRule:function(q) {
|
|
384
384
|
this.Va = q;
|
|
385
385
|
}, moveTo:function(q, v) {
|
|
386
386
|
this.U.moveTo(q, v);
|
|
387
387
|
}, lineTo:function(q, v) {
|
|
388
388
|
this.U.lineTo(q, v);
|
|
389
|
-
}, cubicTo:function(q, v,
|
|
390
|
-
this.U.bezierCurveTo(q, v,
|
|
389
|
+
}, cubicTo:function(q, v, J, G, A, H) {
|
|
390
|
+
this.U.bezierCurveTo(q, v, J, G, A, H);
|
|
391
391
|
}, close:function() {
|
|
392
392
|
this.U.closePath();
|
|
393
|
-
},}),
|
|
393
|
+
},}), D = f.extend("CanvasRenderPaint", {color:function(q) {
|
|
394
394
|
this.Xa = b(q);
|
|
395
395
|
}, thickness:function(q) {
|
|
396
396
|
this.Gb = q;
|
|
@@ -422,48 +422,48 @@ m.onRuntimeInitialized = function() {
|
|
|
422
422
|
this.Cb = a(q);
|
|
423
423
|
}, clearGradient:function() {
|
|
424
424
|
this.ja = null;
|
|
425
|
-
}, linearGradient:function(q, v,
|
|
426
|
-
this.ja = {xb:q, yb:v, cb:
|
|
427
|
-
}, radialGradient:function(q, v,
|
|
428
|
-
this.ja = {xb:q, yb:v, cb:
|
|
425
|
+
}, linearGradient:function(q, v, J, G) {
|
|
426
|
+
this.ja = {xb:q, yb:v, cb:J, eb:G, Qa:[],};
|
|
427
|
+
}, radialGradient:function(q, v, J, G) {
|
|
428
|
+
this.ja = {xb:q, yb:v, cb:J, eb:G, Qa:[], ac:!0,};
|
|
429
429
|
}, addStop:function(q, v) {
|
|
430
430
|
this.ja.Qa.push({color:q, stop:v,});
|
|
431
431
|
}, completeGradient:function() {
|
|
432
|
-
}, draw:function(q, v,
|
|
433
|
-
let
|
|
434
|
-
var
|
|
435
|
-
const
|
|
432
|
+
}, draw:function(q, v, J, G) {
|
|
433
|
+
let A = this.Fb;
|
|
434
|
+
var H = this.Xa, E = this.ja;
|
|
435
|
+
const M = q.globalCompositeOperation, ya = q.globalAlpha;
|
|
436
436
|
q.globalCompositeOperation = this.Cb;
|
|
437
|
-
q.globalAlpha =
|
|
438
|
-
if (null !=
|
|
439
|
-
|
|
440
|
-
const X =
|
|
441
|
-
var
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
for (let
|
|
445
|
-
|
|
437
|
+
q.globalAlpha = G;
|
|
438
|
+
if (null != E) {
|
|
439
|
+
H = E.xb;
|
|
440
|
+
const X = E.yb, ha = E.cb;
|
|
441
|
+
var T = E.eb;
|
|
442
|
+
G = E.Qa;
|
|
443
|
+
E.ac ? (E = ha - H, T -= X, H = q.createRadialGradient(H, X, 0, H, X, Math.sqrt(E * E + T * T))) : H = q.createLinearGradient(H, X, ha, T);
|
|
444
|
+
for (let Y = 0, aa = G.length; Y < aa; Y++) {
|
|
445
|
+
E = G[Y], H.addColorStop(E.stop, b(E.color));
|
|
446
446
|
}
|
|
447
|
-
this.Xa =
|
|
447
|
+
this.Xa = H;
|
|
448
448
|
this.ja = null;
|
|
449
449
|
}
|
|
450
|
-
switch(
|
|
450
|
+
switch(A) {
|
|
451
451
|
case x:
|
|
452
|
-
q.strokeStyle =
|
|
452
|
+
q.strokeStyle = H;
|
|
453
453
|
q.lineWidth = this.Gb;
|
|
454
454
|
q.lineCap = this.Ga;
|
|
455
455
|
q.lineJoin = this.Ha;
|
|
456
456
|
q.stroke(v);
|
|
457
457
|
break;
|
|
458
458
|
case t:
|
|
459
|
-
q.fillStyle =
|
|
459
|
+
q.fillStyle = H, q.fill(v, J);
|
|
460
460
|
}
|
|
461
|
-
q.globalCompositeOperation =
|
|
462
|
-
q.globalAlpha =
|
|
461
|
+
q.globalCompositeOperation = M;
|
|
462
|
+
q.globalAlpha = ya;
|
|
463
463
|
},});
|
|
464
|
-
const
|
|
465
|
-
let w = null,
|
|
466
|
-
var
|
|
464
|
+
const I = new Set();
|
|
465
|
+
let w = null, L = [], R = 0, V = 0;
|
|
466
|
+
var qa = m.CanvasRenderer = g.extend("Renderer", {__construct:function(q) {
|
|
467
467
|
this.__parent.__construct.call(this);
|
|
468
468
|
this.T = [1, 0, 0, 1, 0, 0];
|
|
469
469
|
this.G = [1.0];
|
|
@@ -482,10 +482,10 @@ m.onRuntimeInitialized = function() {
|
|
|
482
482
|
this.T.splice(q);
|
|
483
483
|
this.G.pop();
|
|
484
484
|
this.I.push(this.B.restore.bind(this.B));
|
|
485
|
-
}, transform:function(q, v,
|
|
486
|
-
const
|
|
487
|
-
|
|
488
|
-
this.I.push(this.B.transform.bind(this.B, q, v,
|
|
485
|
+
}, transform:function(q, v, J, G, A, H) {
|
|
486
|
+
const E = this.T, M = E.length - 6;
|
|
487
|
+
E.splice(M, 6, E[M] * q + E[M + 2] * v, E[M + 1] * q + E[M + 3] * v, E[M] * J + E[M + 2] * G, E[M + 1] * J + E[M + 3] * G, E[M] * A + E[M + 2] * H + E[M + 4], E[M + 1] * A + E[M + 3] * H + E[M + 5]);
|
|
488
|
+
this.I.push(this.B.transform.bind(this.B, q, v, J, G, A, H));
|
|
489
489
|
}, rotate:function(q) {
|
|
490
490
|
const v = Math.sin(q);
|
|
491
491
|
q = Math.cos(q);
|
|
@@ -494,88 +494,96 @@ m.onRuntimeInitialized = function() {
|
|
|
494
494
|
this.G[this.G.length - 1] *= q;
|
|
495
495
|
}, _drawPath:function(q, v) {
|
|
496
496
|
this.I.push(v.draw.bind(v, this.B, q.U, q.Va === y ? "evenodd" : "nonzero", Math.max(0, this.G[this.G.length - 1])));
|
|
497
|
-
}, _drawRiveImage:function(q, v,
|
|
498
|
-
var
|
|
499
|
-
if (
|
|
500
|
-
var
|
|
497
|
+
}, _drawRiveImage:function(q, v, J, G) {
|
|
498
|
+
var A = q.Db;
|
|
499
|
+
if (A) {
|
|
500
|
+
var H = this.B, E = a(J), M = Math.max(0, G * this.G[this.G.length - 1]);
|
|
501
501
|
this.I.push(function() {
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
502
|
+
H.globalCompositeOperation = E;
|
|
503
|
+
H.globalAlpha = M;
|
|
504
|
+
H.drawImage(A, 0, 0);
|
|
505
|
+
H.globalAlpha = 1;
|
|
506
506
|
});
|
|
507
507
|
}
|
|
508
508
|
}, _getMatrix:function(q) {
|
|
509
|
-
const v = this.T,
|
|
510
|
-
for (let
|
|
511
|
-
q[
|
|
509
|
+
const v = this.T, J = v.length - 6;
|
|
510
|
+
for (let G = 0; 6 > G; ++G) {
|
|
511
|
+
q[G] = v[J + G];
|
|
512
|
+
}
|
|
513
|
+
}, _drawImageMesh:function(q, v, J, G, A, H, E, M, ya, T, X, ha, Y, aa) {
|
|
514
|
+
let ac, bc, cc;
|
|
515
|
+
try {
|
|
516
|
+
ac = m.HEAPF32.slice(A >> 2, (A >> 2) + H), bc = m.HEAPF32.slice(E >> 2, (E >> 2) + M), cc = m.HEAPU16.slice(ya >> 1, (ya >> 1) + T);
|
|
517
|
+
} catch (sb) {
|
|
518
|
+
console.error("[Rive] _drawImageMesh: failed to read mesh data from WASM heap. Mesh skipped for this frame.");
|
|
519
|
+
return;
|
|
512
520
|
}
|
|
513
|
-
}, _drawImageMesh:function(q, v, H, E, K, I, F, L, aa, R, X) {
|
|
514
521
|
v = this.B.canvas.width;
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
console.assert(Ga <= Math.min(
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
ra >
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
T
|
|
537
|
-
|
|
538
|
-
|
|
522
|
+
A = this.B.canvas.height;
|
|
523
|
+
E = Y - X;
|
|
524
|
+
M = aa - ha;
|
|
525
|
+
X = Math.max(X, 0);
|
|
526
|
+
ha = Math.max(ha, 0);
|
|
527
|
+
Y = Math.min(Y, v);
|
|
528
|
+
aa = Math.min(aa, A);
|
|
529
|
+
const Ga = Y - X, Ha = aa - ha;
|
|
530
|
+
console.assert(Ga <= Math.min(E, v));
|
|
531
|
+
console.assert(Ha <= Math.min(M, A));
|
|
532
|
+
if (!(0 >= Ga || 0 >= Ha)) {
|
|
533
|
+
Y = Ga < E || Ha < M;
|
|
534
|
+
v = aa = 1;
|
|
535
|
+
var ra = Math.ceil(Ga * aa), sa = Math.ceil(Ha * v);
|
|
536
|
+
A = ma.bc();
|
|
537
|
+
ra > A && (aa *= A / ra, ra = A);
|
|
538
|
+
sa > A && (v *= A / sa, sa = A);
|
|
539
|
+
w || (w = new m.DynamicRectanizer(A), w.reset(512, 512));
|
|
540
|
+
A = w.addRect(ra, sa);
|
|
541
|
+
0 > A && (c(), I.add(this), A = w.addRect(ra, sa), console.assert(0 <= A));
|
|
542
|
+
var dc = A & 65535, ec = A >> 16;
|
|
543
|
+
L.push({ha:this.T.slice(this.T.length - 6), image:q, Za:dc, $a:ec, cc:X, dc:ha, uc:ra, jb:sa, Aa:aa, Ba:v, Ta:ac, Bb:bc, indices:cc, hc:Y, vb:q.Ja << 1 | (Y ? 1 : 0),});
|
|
544
|
+
R += H;
|
|
545
|
+
V += T;
|
|
546
|
+
var za = this.B, rd = a(J), sd = Math.max(0, G * this.G[this.G.length - 1]);
|
|
539
547
|
this.I.push(function() {
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
const
|
|
545
|
-
|
|
546
|
-
|
|
548
|
+
za.save();
|
|
549
|
+
za.resetTransform();
|
|
550
|
+
za.globalCompositeOperation = rd;
|
|
551
|
+
za.globalAlpha = sd;
|
|
552
|
+
const sb = ma.canvas();
|
|
553
|
+
sb && za.drawImage(sb, dc, ec, ra, sa, X, ha, Ga, Ha);
|
|
554
|
+
za.restore();
|
|
547
555
|
});
|
|
548
556
|
}
|
|
549
557
|
}, _clipPath:function(q) {
|
|
550
558
|
this.I.push(this.B.clip.bind(this.B, q.U, q.Va === y ? "evenodd" : "nonzero"));
|
|
551
559
|
}, clear:function() {
|
|
552
|
-
|
|
560
|
+
I.add(this);
|
|
553
561
|
this.I.push(this.B.clearRect.bind(this.B, 0, 0, this.Ua.width, this.Ua.height));
|
|
554
562
|
}, flush:function() {
|
|
555
563
|
}, translate:function(q, v) {
|
|
556
564
|
this.transform(1, 0, 0, 1, q, v);
|
|
557
565
|
},});
|
|
558
566
|
m.makeRenderer = function(q) {
|
|
559
|
-
const v = new
|
|
560
|
-
return new Proxy(v, {get(
|
|
561
|
-
if ("function" === typeof
|
|
562
|
-
return function(...
|
|
563
|
-
return
|
|
567
|
+
const v = new qa(q), J = v.B;
|
|
568
|
+
return new Proxy(v, {get(G, A) {
|
|
569
|
+
if ("function" === typeof G[A]) {
|
|
570
|
+
return function(...H) {
|
|
571
|
+
return G[A].apply(G, H);
|
|
564
572
|
};
|
|
565
573
|
}
|
|
566
|
-
if ("function" === typeof
|
|
567
|
-
if (-1 <
|
|
568
|
-
throw Error("RiveException: Method call to '" +
|
|
574
|
+
if ("function" === typeof J[A]) {
|
|
575
|
+
if (-1 < la.indexOf(A)) {
|
|
576
|
+
throw Error("RiveException: Method call to '" + A + "()' is not allowed, as the renderer cannot immediately pass through the return values of any canvas 2d context methods.");
|
|
569
577
|
}
|
|
570
|
-
return function(...
|
|
571
|
-
v.I.push(
|
|
578
|
+
return function(...H) {
|
|
579
|
+
v.I.push(J[A].bind(J, ...H));
|
|
572
580
|
};
|
|
573
581
|
}
|
|
574
|
-
return
|
|
575
|
-
}, set(
|
|
576
|
-
if (
|
|
582
|
+
return G[A];
|
|
583
|
+
}, set(G, A, H) {
|
|
584
|
+
if (A in J) {
|
|
577
585
|
return v.I.push(() => {
|
|
578
|
-
|
|
586
|
+
J[A] = H;
|
|
579
587
|
}), !0;
|
|
580
588
|
}
|
|
581
589
|
},});
|
|
@@ -584,7 +592,7 @@ m.onRuntimeInitialized = function() {
|
|
|
584
592
|
(new u({la:v})).decode(q);
|
|
585
593
|
};
|
|
586
594
|
m.renderFactory = {makeRenderPaint:function() {
|
|
587
|
-
return new
|
|
595
|
+
return new D();
|
|
588
596
|
}, makeRenderPath:function() {
|
|
589
597
|
return new r();
|
|
590
598
|
}, makeRenderImage:function() {
|
|
@@ -599,25 +607,25 @@ m.onRuntimeInitialized = function() {
|
|
|
599
607
|
}
|
|
600
608
|
},});
|
|
601
609
|
},};
|
|
602
|
-
let
|
|
603
|
-
m.load = function(q, v,
|
|
604
|
-
const
|
|
605
|
-
void 0 !== v &&
|
|
606
|
-
|
|
607
|
-
return new Promise(function(
|
|
608
|
-
let
|
|
610
|
+
let K = m.load, Z = null;
|
|
611
|
+
m.load = function(q, v, J = !0) {
|
|
612
|
+
const G = new m.FallbackFileAssetLoader();
|
|
613
|
+
void 0 !== v && G.addLoader(v);
|
|
614
|
+
J && (v = new m.CDNFileAssetLoader(), G.addLoader(v));
|
|
615
|
+
return new Promise(function(A) {
|
|
616
|
+
let H = null;
|
|
609
617
|
Z = {total:0, loaded:0, ready:function() {
|
|
610
|
-
|
|
618
|
+
A(H);
|
|
611
619
|
},};
|
|
612
|
-
|
|
613
|
-
0 == Z.total &&
|
|
620
|
+
H = K(q, G);
|
|
621
|
+
0 == Z.total && A(H);
|
|
614
622
|
});
|
|
615
623
|
};
|
|
616
|
-
let
|
|
617
|
-
m.RendererWrapper.prototype.align = function(q, v,
|
|
618
|
-
|
|
624
|
+
let td = m.RendererWrapper.prototype.align;
|
|
625
|
+
m.RendererWrapper.prototype.align = function(q, v, J, G, A = 1.0) {
|
|
626
|
+
td.call(this, q, v, J, G, A);
|
|
619
627
|
};
|
|
620
|
-
d = new
|
|
628
|
+
d = new ia();
|
|
621
629
|
m.requestAnimationFrame = d.requestAnimationFrame.bind(d);
|
|
622
630
|
m.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);
|
|
623
631
|
m.enableFPSCounter = d.Ob.bind(d);
|
|
@@ -628,16 +636,16 @@ m.onRuntimeInitialized = function() {
|
|
|
628
636
|
w && w.delete();
|
|
629
637
|
};
|
|
630
638
|
};
|
|
631
|
-
var
|
|
639
|
+
var oa = Object.assign({}, m), pa = "./this.program", ta = "", ua, va;
|
|
632
640
|
if (ea || fa) {
|
|
633
|
-
fa ?
|
|
641
|
+
fa ? ta = self.location.href : "undefined" != typeof document && document.currentScript && (ta = document.currentScript.src), _scriptName && (ta = _scriptName), ta.startsWith("blob:") ? ta = "" : ta = ta.substr(0, ta.replace(/[?#].*/, "").lastIndexOf("/") + 1), fa && (va = a => {
|
|
634
642
|
var b = new XMLHttpRequest();
|
|
635
643
|
b.open("GET", a, !1);
|
|
636
644
|
b.responseType = "arraybuffer";
|
|
637
645
|
b.send(null);
|
|
638
646
|
return new Uint8Array(b.response);
|
|
639
|
-
}),
|
|
640
|
-
if (
|
|
647
|
+
}), ua = (a, b, c) => {
|
|
648
|
+
if (wa(a)) {
|
|
641
649
|
var d = new XMLHttpRequest();
|
|
642
650
|
d.open("GET", a, !0);
|
|
643
651
|
d.responseType = "arraybuffer";
|
|
@@ -651,75 +659,75 @@ if (ea || fa) {
|
|
|
651
659
|
}
|
|
652
660
|
};
|
|
653
661
|
}
|
|
654
|
-
var
|
|
655
|
-
Object.assign(m,
|
|
656
|
-
|
|
657
|
-
m.thisProgram && (
|
|
658
|
-
var
|
|
659
|
-
m.wasmBinary && (
|
|
660
|
-
var
|
|
661
|
-
function
|
|
662
|
-
var a =
|
|
662
|
+
var xa = m.print || console.log.bind(console), Aa = m.printErr || console.error.bind(console);
|
|
663
|
+
Object.assign(m, oa);
|
|
664
|
+
oa = null;
|
|
665
|
+
m.thisProgram && (pa = m.thisProgram);
|
|
666
|
+
var Ba;
|
|
667
|
+
m.wasmBinary && (Ba = m.wasmBinary);
|
|
668
|
+
var Ca, Da = !1, z, B, Ea, Fa, C, F, Ia, Ja;
|
|
669
|
+
function Ka() {
|
|
670
|
+
var a = Ca.buffer;
|
|
663
671
|
m.HEAP8 = z = new Int8Array(a);
|
|
664
|
-
m.HEAP16 =
|
|
665
|
-
m.HEAPU8 =
|
|
666
|
-
m.HEAPU16 =
|
|
667
|
-
m.HEAP32 =
|
|
668
|
-
m.HEAPU32 =
|
|
669
|
-
m.HEAPF32 =
|
|
670
|
-
m.HEAPF64 =
|
|
672
|
+
m.HEAP16 = Ea = new Int16Array(a);
|
|
673
|
+
m.HEAPU8 = B = new Uint8Array(a);
|
|
674
|
+
m.HEAPU16 = Fa = new Uint16Array(a);
|
|
675
|
+
m.HEAP32 = C = new Int32Array(a);
|
|
676
|
+
m.HEAPU32 = F = new Uint32Array(a);
|
|
677
|
+
m.HEAPF32 = Ia = new Float32Array(a);
|
|
678
|
+
m.HEAPF64 = Ja = new Float64Array(a);
|
|
671
679
|
}
|
|
672
|
-
var
|
|
673
|
-
function
|
|
680
|
+
var La = [], Ma = [], Na = [];
|
|
681
|
+
function Oa() {
|
|
674
682
|
var a = m.preRun.shift();
|
|
675
|
-
|
|
683
|
+
La.unshift(a);
|
|
676
684
|
}
|
|
677
|
-
var
|
|
678
|
-
function
|
|
685
|
+
var Pa = 0, Qa = null, Ra = null;
|
|
686
|
+
function Sa(a) {
|
|
679
687
|
m.onAbort?.(a);
|
|
680
688
|
a = "Aborted(" + a + ")";
|
|
681
|
-
|
|
682
|
-
|
|
689
|
+
Aa(a);
|
|
690
|
+
Da = !0;
|
|
683
691
|
a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
|
|
684
692
|
ca(a);
|
|
685
693
|
throw a;
|
|
686
694
|
}
|
|
687
|
-
var
|
|
688
|
-
function
|
|
689
|
-
if (a ==
|
|
690
|
-
return new Uint8Array(
|
|
695
|
+
var Ta = a => a.startsWith("data:application/octet-stream;base64,"), wa = a => a.startsWith("file://"), Ua;
|
|
696
|
+
function Va(a) {
|
|
697
|
+
if (a == Ua && Ba) {
|
|
698
|
+
return new Uint8Array(Ba);
|
|
691
699
|
}
|
|
692
|
-
if (
|
|
693
|
-
return
|
|
700
|
+
if (va) {
|
|
701
|
+
return va(a);
|
|
694
702
|
}
|
|
695
703
|
throw "both async and sync fetching of the wasm failed";
|
|
696
704
|
}
|
|
697
|
-
function
|
|
698
|
-
return
|
|
699
|
-
|
|
705
|
+
function Wa(a) {
|
|
706
|
+
return Ba ? Promise.resolve().then(() => Va(a)) : new Promise((b, c) => {
|
|
707
|
+
ua(a, d => b(new Uint8Array(d)), () => {
|
|
700
708
|
try {
|
|
701
|
-
b(
|
|
709
|
+
b(Va(a));
|
|
702
710
|
} catch (d) {
|
|
703
711
|
c(d);
|
|
704
712
|
}
|
|
705
713
|
});
|
|
706
714
|
});
|
|
707
715
|
}
|
|
708
|
-
function
|
|
709
|
-
return
|
|
710
|
-
|
|
711
|
-
|
|
716
|
+
function Xa(a, b, c) {
|
|
717
|
+
return Wa(a).then(d => WebAssembly.instantiate(d, b)).then(c, d => {
|
|
718
|
+
Aa(`failed to asynchronously prepare wasm: ${d}`);
|
|
719
|
+
Sa(d);
|
|
712
720
|
});
|
|
713
721
|
}
|
|
714
|
-
function
|
|
715
|
-
var c =
|
|
716
|
-
return
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
return
|
|
722
|
+
function Ya(a, b) {
|
|
723
|
+
var c = Ua;
|
|
724
|
+
return Ba || "function" != typeof WebAssembly.instantiateStreaming || Ta(c) || wa(c) || "function" != typeof fetch ? Xa(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
|
|
725
|
+
Aa(`wasm streaming compile failed: ${e}`);
|
|
726
|
+
Aa("falling back to ArrayBuffer instantiation");
|
|
727
|
+
return Xa(c, a, b);
|
|
720
728
|
}));
|
|
721
729
|
}
|
|
722
|
-
var Za, $a, db = {
|
|
730
|
+
var Za, $a, db = {478498:(a, b, c, d, e) => {
|
|
723
731
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
724
732
|
return 0;
|
|
725
733
|
}
|
|
@@ -782,11 +790,11 @@ var Za, $a, db = {478226:(a, b, c, d, e) => {
|
|
|
782
790
|
}
|
|
783
791
|
window.h.za += 1;
|
|
784
792
|
return 1;
|
|
785
|
-
},
|
|
793
|
+
}, 480676:() => {
|
|
786
794
|
"undefined" !== typeof window.h && (window.h.Sa.map(function(a) {
|
|
787
795
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
788
796
|
}), --window.h.za, 0 === window.h.za && delete window.h);
|
|
789
|
-
},
|
|
797
|
+
}, 480980:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 481084:() => {
|
|
790
798
|
try {
|
|
791
799
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
792
800
|
a.close();
|
|
@@ -794,7 +802,7 @@ var Za, $a, db = {478226:(a, b, c, d, e) => {
|
|
|
794
802
|
} catch (c) {
|
|
795
803
|
return 0;
|
|
796
804
|
}
|
|
797
|
-
},
|
|
805
|
+
}, 481255:(a, b, c, d, e, f) => {
|
|
798
806
|
if ("undefined" === typeof window.h) {
|
|
799
807
|
return -1;
|
|
800
808
|
}
|
|
@@ -808,7 +816,7 @@ var Za, $a, db = {478226:(a, b, c, d, e) => {
|
|
|
808
816
|
g.Z = g.L.createScriptProcessor(d, c, b);
|
|
809
817
|
g.Z.onaudioprocess = function(p) {
|
|
810
818
|
if (null == g.ra || 0 == g.ra.length) {
|
|
811
|
-
g.ra = new Float32Array(
|
|
819
|
+
g.ra = new Float32Array(Ia.buffer, e, d * b);
|
|
812
820
|
}
|
|
813
821
|
if (a == window.h.J.capture || a == window.h.J.Ka) {
|
|
814
822
|
for (var n = 0; n < b; n += 1) {
|
|
@@ -840,7 +848,7 @@ var Za, $a, db = {478226:(a, b, c, d, e) => {
|
|
|
840
848
|
a == window.h.J.xa && g.Z.connect(g.L.destination);
|
|
841
849
|
g.pb = f;
|
|
842
850
|
return window.h.sc(g);
|
|
843
|
-
},
|
|
851
|
+
}, 484132:a => window.h.qa(a).L.sampleRate, 484205:a => {
|
|
844
852
|
a = window.h.qa(a);
|
|
845
853
|
void 0 !== a.Z && (a.Z.onaudioprocess = function() {
|
|
846
854
|
}, a.Z.disconnect(), a.Z = void 0);
|
|
@@ -848,13 +856,13 @@ var Za, $a, db = {478226:(a, b, c, d, e) => {
|
|
|
848
856
|
a.L.close();
|
|
849
857
|
a.L = void 0;
|
|
850
858
|
a.pb = void 0;
|
|
851
|
-
},
|
|
859
|
+
}, 484605:a => {
|
|
852
860
|
window.h.Ab(a);
|
|
853
|
-
},
|
|
861
|
+
}, 484655:a => {
|
|
854
862
|
a = window.h.qa(a);
|
|
855
863
|
a.L.resume();
|
|
856
864
|
a.state = window.h.ga.wb;
|
|
857
|
-
},
|
|
865
|
+
}, 484794:a => {
|
|
858
866
|
a = window.h.qa(a);
|
|
859
867
|
a.L.suspend();
|
|
860
868
|
a.state = window.h.ga.stopped;
|
|
@@ -864,7 +872,7 @@ var Za, $a, db = {478226:(a, b, c, d, e) => {
|
|
|
864
872
|
}
|
|
865
873
|
};
|
|
866
874
|
function fb() {
|
|
867
|
-
var a =
|
|
875
|
+
var a = C[+gb >> 2];
|
|
868
876
|
gb += 4;
|
|
869
877
|
return a;
|
|
870
878
|
}
|
|
@@ -905,7 +913,7 @@ var hb = (a, b) => {
|
|
|
905
913
|
if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
|
|
906
914
|
return a => crypto.getRandomValues(a);
|
|
907
915
|
}
|
|
908
|
-
|
|
916
|
+
Sa("initRandomDevice");
|
|
909
917
|
}, mb = a => (mb = lb())(a), nb = (...a) => {
|
|
910
918
|
for (var b = "", c = !1, d = a.length - 1; -1 <= d && !c; d--) {
|
|
911
919
|
c = 0 <= d ? a[d] : "/";
|
|
@@ -950,7 +958,7 @@ var hb = (a, b) => {
|
|
|
950
958
|
127 >= d ? b++ : 2047 >= d ? b += 2 : 55296 <= d && 57343 >= d ? (b += 4, ++c) : b += 3;
|
|
951
959
|
}
|
|
952
960
|
return b;
|
|
953
|
-
},
|
|
961
|
+
}, tb = (a, b, c, d) => {
|
|
954
962
|
if (!(0 < d)) {
|
|
955
963
|
return 0;
|
|
956
964
|
}
|
|
@@ -994,19 +1002,19 @@ var hb = (a, b) => {
|
|
|
994
1002
|
b[c] = 0;
|
|
995
1003
|
return c - e;
|
|
996
1004
|
};
|
|
997
|
-
function
|
|
1005
|
+
function ub(a, b) {
|
|
998
1006
|
var c = Array(rb(a) + 1);
|
|
999
|
-
a =
|
|
1007
|
+
a = tb(a, c, 0, c.length);
|
|
1000
1008
|
b && (c.length = a);
|
|
1001
1009
|
return c;
|
|
1002
1010
|
}
|
|
1003
|
-
var
|
|
1004
|
-
function
|
|
1005
|
-
|
|
1006
|
-
|
|
1011
|
+
var vb = [];
|
|
1012
|
+
function wb(a, b) {
|
|
1013
|
+
vb[a] = {input:[], H:[], W:b};
|
|
1014
|
+
xb(a, yb);
|
|
1007
1015
|
}
|
|
1008
|
-
var
|
|
1009
|
-
var b =
|
|
1016
|
+
var yb = {open(a) {
|
|
1017
|
+
var b = vb[a.node.ya];
|
|
1010
1018
|
if (!b) {
|
|
1011
1019
|
throw new N(43);
|
|
1012
1020
|
}
|
|
@@ -1050,7 +1058,7 @@ var xb = {open(a) {
|
|
|
1050
1058
|
}
|
|
1051
1059
|
d && (a.node.timestamp = Date.now());
|
|
1052
1060
|
return e;
|
|
1053
|
-
},},
|
|
1061
|
+
},}, zb = {ib() {
|
|
1054
1062
|
a: {
|
|
1055
1063
|
if (!qb.length) {
|
|
1056
1064
|
var a = null;
|
|
@@ -1059,27 +1067,27 @@ var xb = {open(a) {
|
|
|
1059
1067
|
a = null;
|
|
1060
1068
|
break a;
|
|
1061
1069
|
}
|
|
1062
|
-
qb =
|
|
1070
|
+
qb = ub(a, !0);
|
|
1063
1071
|
}
|
|
1064
1072
|
a = qb.shift();
|
|
1065
1073
|
}
|
|
1066
1074
|
return a;
|
|
1067
1075
|
}, Na(a, b) {
|
|
1068
|
-
null === b || 10 === b ? (
|
|
1076
|
+
null === b || 10 === b ? (xa(pb(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
|
|
1069
1077
|
}, pa(a) {
|
|
1070
|
-
a.H && 0 < a.H.length && (
|
|
1078
|
+
a.H && 0 < a.H.length && (xa(pb(a.H, 0)), a.H = []);
|
|
1071
1079
|
}, Yb() {
|
|
1072
1080
|
return {Ac:25856, Cc:5, zc:191, Bc:35387, yc:[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,]};
|
|
1073
1081
|
}, Zb() {
|
|
1074
1082
|
return 0;
|
|
1075
1083
|
}, $b() {
|
|
1076
1084
|
return [24, 80];
|
|
1077
|
-
},},
|
|
1078
|
-
null === b || 10 === b ? (
|
|
1085
|
+
},}, Ab = {Na(a, b) {
|
|
1086
|
+
null === b || 10 === b ? (Aa(pb(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
|
|
1079
1087
|
}, pa(a) {
|
|
1080
|
-
a.H && 0 < a.H.length && (
|
|
1088
|
+
a.H && 0 < a.H.length && (Aa(pb(a.H, 0)), a.H = []);
|
|
1081
1089
|
},};
|
|
1082
|
-
function
|
|
1090
|
+
function Bb(a, b) {
|
|
1083
1091
|
var c = a.l ? a.l.length : 0;
|
|
1084
1092
|
c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.l, a.l = new Uint8Array(b), 0 < a.v && a.l.set(c.subarray(0, a.v), 0));
|
|
1085
1093
|
}
|
|
@@ -1089,8 +1097,8 @@ var O = {O:null, V() {
|
|
|
1089
1097
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
1090
1098
|
throw new N(63);
|
|
1091
1099
|
}
|
|
1092
|
-
O.O || (O.O = {dir:{node:{Y:O.j.Y, R:O.j.R, ka:O.j.ka, ua:O.j.ua, tb:O.j.tb, zb:O.j.zb, ub:O.j.ub, sb:O.j.sb, Da:O.j.Da}, stream:{ba:O.m.ba}}, file:{node:{Y:O.j.Y, R:O.j.R}, stream:{ba:O.m.ba, read:O.m.read, write:O.m.write, Ya:O.m.Ya, lb:O.m.lb, nb:O.m.nb}}, link:{node:{Y:O.j.Y, R:O.j.R, ma:O.j.ma}, stream:{}}, ab:{node:{Y:O.j.Y, R:O.j.R}, stream:
|
|
1093
|
-
c =
|
|
1100
|
+
O.O || (O.O = {dir:{node:{Y:O.j.Y, R:O.j.R, ka:O.j.ka, ua:O.j.ua, tb:O.j.tb, zb:O.j.zb, ub:O.j.ub, sb:O.j.sb, Da:O.j.Da}, stream:{ba:O.m.ba}}, file:{node:{Y:O.j.Y, R:O.j.R}, stream:{ba:O.m.ba, read:O.m.read, write:O.m.write, Ya:O.m.Ya, lb:O.m.lb, nb:O.m.nb}}, link:{node:{Y:O.j.Y, R:O.j.R, ma:O.j.ma}, stream:{}}, ab:{node:{Y:O.j.Y, R:O.j.R}, stream:Cb}});
|
|
1101
|
+
c = Db(a, b, c, d);
|
|
1094
1102
|
16384 === (c.mode & 61440) ? (c.j = O.O.dir.node, c.m = O.O.dir.stream, c.l = {}) : 32768 === (c.mode & 61440) ? (c.j = O.O.file.node, c.m = O.O.file.stream, c.v = 0, c.l = null) : 40960 === (c.mode & 61440) ? (c.j = O.O.link.node, c.m = O.O.link.stream) : 8192 === (c.mode & 61440) && (c.j = O.O.ab.node, c.m = O.O.ab.stream);
|
|
1095
1103
|
c.timestamp = Date.now();
|
|
1096
1104
|
a && (a.l[b] = c, a.timestamp = c.timestamp);
|
|
@@ -1127,13 +1135,13 @@ var O = {O:null, V() {
|
|
|
1127
1135
|
}
|
|
1128
1136
|
}
|
|
1129
1137
|
}, ka() {
|
|
1130
|
-
throw
|
|
1138
|
+
throw Eb[44];
|
|
1131
1139
|
}, ua(a, b, c, d) {
|
|
1132
1140
|
return O.createNode(a, b, c, d);
|
|
1133
1141
|
}, tb(a, b, c) {
|
|
1134
1142
|
if (16384 === (a.mode & 61440)) {
|
|
1135
1143
|
try {
|
|
1136
|
-
var d =
|
|
1144
|
+
var d = Fb(b, c);
|
|
1137
1145
|
} catch (f) {
|
|
1138
1146
|
}
|
|
1139
1147
|
if (d) {
|
|
@@ -1151,7 +1159,7 @@ var O = {O:null, V() {
|
|
|
1151
1159
|
delete a.l[b];
|
|
1152
1160
|
a.timestamp = Date.now();
|
|
1153
1161
|
}, ub(a, b) {
|
|
1154
|
-
var c =
|
|
1162
|
+
var c = Fb(a, b), d;
|
|
1155
1163
|
for (d in c.l) {
|
|
1156
1164
|
throw new N(55);
|
|
1157
1165
|
}
|
|
@@ -1204,7 +1212,7 @@ var O = {O:null, V() {
|
|
|
1204
1212
|
return a.l.set(b.subarray(c, c + d), e), d;
|
|
1205
1213
|
}
|
|
1206
1214
|
}
|
|
1207
|
-
|
|
1215
|
+
Bb(a, e + d);
|
|
1208
1216
|
if (a.l.subarray && b.subarray) {
|
|
1209
1217
|
a.l.set(b.subarray(c, c + d), e);
|
|
1210
1218
|
} else {
|
|
@@ -1221,7 +1229,7 @@ var O = {O:null, V() {
|
|
|
1221
1229
|
}
|
|
1222
1230
|
return b;
|
|
1223
1231
|
}, Ya(a, b, c) {
|
|
1224
|
-
|
|
1232
|
+
Bb(a.node, b + c);
|
|
1225
1233
|
a.node.v = Math.max(a.node.v, b + c);
|
|
1226
1234
|
}, lb(a, b, c, d, e) {
|
|
1227
1235
|
if (32768 !== (a.node.mode & 61440)) {
|
|
@@ -1233,7 +1241,7 @@ var O = {O:null, V() {
|
|
|
1233
1241
|
a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
|
|
1234
1242
|
}
|
|
1235
1243
|
c = !0;
|
|
1236
|
-
|
|
1244
|
+
Sa();
|
|
1237
1245
|
b = void 0;
|
|
1238
1246
|
if (!b) {
|
|
1239
1247
|
throw new N(48);
|
|
@@ -1246,17 +1254,17 @@ var O = {O:null, V() {
|
|
|
1246
1254
|
}, nb(a, b, c, d) {
|
|
1247
1255
|
O.m.write(a, b, 0, d, c, !1);
|
|
1248
1256
|
return 0;
|
|
1249
|
-
},},},
|
|
1257
|
+
},},}, Gb = (a, b) => {
|
|
1250
1258
|
var c = 0;
|
|
1251
1259
|
a && (c |= 365);
|
|
1252
1260
|
b && (c |= 146);
|
|
1253
1261
|
return c;
|
|
1254
|
-
},
|
|
1262
|
+
}, Hb = null, Ib = {}, Jb = [], Kb = 1, Lb = null, Mb = !0, N = class {
|
|
1255
1263
|
constructor(a) {
|
|
1256
1264
|
this.name = "ErrnoError";
|
|
1257
1265
|
this.aa = a;
|
|
1258
1266
|
}
|
|
1259
|
-
},
|
|
1267
|
+
}, Eb = {}, Nb = class {
|
|
1260
1268
|
constructor() {
|
|
1261
1269
|
this.h = {};
|
|
1262
1270
|
this.node = null;
|
|
@@ -1273,13 +1281,13 @@ var O = {O:null, V() {
|
|
|
1273
1281
|
set position(a) {
|
|
1274
1282
|
this.h.position = a;
|
|
1275
1283
|
}
|
|
1276
|
-
},
|
|
1284
|
+
}, Ob = class {
|
|
1277
1285
|
constructor(a, b, c, d) {
|
|
1278
1286
|
a ||= this;
|
|
1279
1287
|
this.parent = a;
|
|
1280
1288
|
this.V = a.V;
|
|
1281
1289
|
this.va = null;
|
|
1282
|
-
this.id =
|
|
1290
|
+
this.id = Kb++;
|
|
1283
1291
|
this.name = b;
|
|
1284
1292
|
this.mode = c;
|
|
1285
1293
|
this.j = {};
|
|
@@ -1299,7 +1307,7 @@ var O = {O:null, V() {
|
|
|
1299
1307
|
a ? this.mode |= 146 : this.mode &= -147;
|
|
1300
1308
|
}
|
|
1301
1309
|
};
|
|
1302
|
-
function
|
|
1310
|
+
function Pb(a, b = {}) {
|
|
1303
1311
|
a = nb(a);
|
|
1304
1312
|
if (!a) {
|
|
1305
1313
|
return {path:"", node:null};
|
|
@@ -1309,17 +1317,17 @@ function Ob(a, b = {}) {
|
|
|
1309
1317
|
throw new N(32);
|
|
1310
1318
|
}
|
|
1311
1319
|
a = a.split("/").filter(g => !!g);
|
|
1312
|
-
for (var c =
|
|
1320
|
+
for (var c = Hb, d = "/", e = 0; e < a.length; e++) {
|
|
1313
1321
|
var f = e === a.length - 1;
|
|
1314
1322
|
if (f && b.parent) {
|
|
1315
1323
|
break;
|
|
1316
1324
|
}
|
|
1317
|
-
c =
|
|
1325
|
+
c = Fb(c, a[e]);
|
|
1318
1326
|
d = ib(d + "/" + a[e]);
|
|
1319
1327
|
c.va && (!f || f && b.hb) && (c = c.va.root);
|
|
1320
1328
|
if (!f || b.gb) {
|
|
1321
1329
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
1322
|
-
if (c =
|
|
1330
|
+
if (c = Qb(d), d = nb(jb(d), c), c = Pb(d, {Pa:b.Pa + 1}).node, 40 < f++) {
|
|
1323
1331
|
throw new N(32);
|
|
1324
1332
|
}
|
|
1325
1333
|
}
|
|
@@ -1327,7 +1335,7 @@ function Ob(a, b = {}) {
|
|
|
1327
1335
|
}
|
|
1328
1336
|
return {path:d, node:c};
|
|
1329
1337
|
}
|
|
1330
|
-
function
|
|
1338
|
+
function Rb(a) {
|
|
1331
1339
|
for (var b;;) {
|
|
1332
1340
|
if (a === a.parent) {
|
|
1333
1341
|
return a = a.V.mb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
|
|
@@ -1336,18 +1344,18 @@ function Qb(a) {
|
|
|
1336
1344
|
a = a.parent;
|
|
1337
1345
|
}
|
|
1338
1346
|
}
|
|
1339
|
-
function
|
|
1347
|
+
function Sb(a, b) {
|
|
1340
1348
|
for (var c = 0, d = 0; d < b.length; d++) {
|
|
1341
1349
|
c = (c << 5) - c + b.charCodeAt(d) | 0;
|
|
1342
1350
|
}
|
|
1343
|
-
return (a + c >>> 0) %
|
|
1351
|
+
return (a + c >>> 0) % Lb.length;
|
|
1344
1352
|
}
|
|
1345
|
-
function
|
|
1346
|
-
var c = 16384 === (a.mode & 61440) ? (c =
|
|
1353
|
+
function Fb(a, b) {
|
|
1354
|
+
var c = 16384 === (a.mode & 61440) ? (c = Tb(a, "x")) ? c : a.j.ka ? 0 : 2 : 54;
|
|
1347
1355
|
if (c) {
|
|
1348
1356
|
throw new N(c);
|
|
1349
1357
|
}
|
|
1350
|
-
for (c =
|
|
1358
|
+
for (c = Lb[Sb(a.id, b)]; c; c = c.fc) {
|
|
1351
1359
|
var d = c.name;
|
|
1352
1360
|
if (c.parent.id === a.id && d === b) {
|
|
1353
1361
|
return c;
|
|
@@ -1355,19 +1363,19 @@ function Eb(a, b) {
|
|
|
1355
1363
|
}
|
|
1356
1364
|
return a.j.ka(a, b);
|
|
1357
1365
|
}
|
|
1358
|
-
function
|
|
1359
|
-
a = new
|
|
1360
|
-
b =
|
|
1361
|
-
a.fc =
|
|
1362
|
-
return
|
|
1366
|
+
function Db(a, b, c, d) {
|
|
1367
|
+
a = new Ob(a, b, c, d);
|
|
1368
|
+
b = Sb(a.parent.id, a.name);
|
|
1369
|
+
a.fc = Lb[b];
|
|
1370
|
+
return Lb[b] = a;
|
|
1363
1371
|
}
|
|
1364
|
-
function
|
|
1372
|
+
function Ub(a) {
|
|
1365
1373
|
var b = ["r", "w", "rw"][a & 3];
|
|
1366
1374
|
a & 512 && (b += "w");
|
|
1367
1375
|
return b;
|
|
1368
1376
|
}
|
|
1369
|
-
function
|
|
1370
|
-
if (
|
|
1377
|
+
function Tb(a, b) {
|
|
1378
|
+
if (Mb) {
|
|
1371
1379
|
return 0;
|
|
1372
1380
|
}
|
|
1373
1381
|
if (!b.includes("r") || a.mode & 292) {
|
|
@@ -1379,26 +1387,26 @@ function Sb(a, b) {
|
|
|
1379
1387
|
}
|
|
1380
1388
|
return 0;
|
|
1381
1389
|
}
|
|
1382
|
-
function
|
|
1390
|
+
function Vb(a, b) {
|
|
1383
1391
|
try {
|
|
1384
|
-
return
|
|
1392
|
+
return Fb(a, b), 20;
|
|
1385
1393
|
} catch (c) {
|
|
1386
1394
|
}
|
|
1387
|
-
return
|
|
1395
|
+
return Tb(a, "wx");
|
|
1388
1396
|
}
|
|
1389
|
-
function
|
|
1390
|
-
a =
|
|
1397
|
+
function Wb(a) {
|
|
1398
|
+
a = Jb[a];
|
|
1391
1399
|
if (!a) {
|
|
1392
1400
|
throw new N(8);
|
|
1393
1401
|
}
|
|
1394
1402
|
return a;
|
|
1395
1403
|
}
|
|
1396
|
-
function
|
|
1397
|
-
a = Object.assign(new
|
|
1404
|
+
function Xb(a, b = -1) {
|
|
1405
|
+
a = Object.assign(new Nb(), a);
|
|
1398
1406
|
if (-1 == b) {
|
|
1399
1407
|
a: {
|
|
1400
1408
|
for (b = 0; 4096 >= b; b++) {
|
|
1401
|
-
if (!
|
|
1409
|
+
if (!Jb[b]) {
|
|
1402
1410
|
break a;
|
|
1403
1411
|
}
|
|
1404
1412
|
}
|
|
@@ -1406,29 +1414,29 @@ function Wb(a, b = -1) {
|
|
|
1406
1414
|
}
|
|
1407
1415
|
}
|
|
1408
1416
|
a.X = b;
|
|
1409
|
-
return
|
|
1417
|
+
return Jb[b] = a;
|
|
1410
1418
|
}
|
|
1411
|
-
function
|
|
1412
|
-
a =
|
|
1419
|
+
function Yb(a, b = -1) {
|
|
1420
|
+
a = Xb(a, b);
|
|
1413
1421
|
a.m?.Fc?.(a);
|
|
1414
1422
|
return a;
|
|
1415
1423
|
}
|
|
1416
|
-
var
|
|
1417
|
-
a.m =
|
|
1424
|
+
var Cb = {open(a) {
|
|
1425
|
+
a.m = Ib[a.node.ya].m;
|
|
1418
1426
|
a.m.open?.(a);
|
|
1419
1427
|
}, ba() {
|
|
1420
1428
|
throw new N(70);
|
|
1421
1429
|
},};
|
|
1422
|
-
function
|
|
1423
|
-
|
|
1430
|
+
function xb(a, b) {
|
|
1431
|
+
Ib[a] = {m:b};
|
|
1424
1432
|
}
|
|
1425
|
-
function
|
|
1433
|
+
function Zb(a, b) {
|
|
1426
1434
|
var c = "/" === b;
|
|
1427
|
-
if (c &&
|
|
1435
|
+
if (c && Hb) {
|
|
1428
1436
|
throw new N(10);
|
|
1429
1437
|
}
|
|
1430
1438
|
if (!c && b) {
|
|
1431
|
-
var d =
|
|
1439
|
+
var d = Pb(b, {hb:!1});
|
|
1432
1440
|
b = d.path;
|
|
1433
1441
|
d = d.node;
|
|
1434
1442
|
if (d.va) {
|
|
@@ -1442,15 +1450,15 @@ function Yb(a, b) {
|
|
|
1442
1450
|
a = a.V(b);
|
|
1443
1451
|
a.V = b;
|
|
1444
1452
|
b.root = a;
|
|
1445
|
-
c ?
|
|
1453
|
+
c ? Hb = a : d && (d.va = b, d.V && d.V.ec.push(b));
|
|
1446
1454
|
}
|
|
1447
|
-
function
|
|
1448
|
-
var d =
|
|
1455
|
+
function $b(a, b, c) {
|
|
1456
|
+
var d = Pb(a, {parent:!0}).node;
|
|
1449
1457
|
a = kb(a);
|
|
1450
1458
|
if (!a || "." === a || ".." === a) {
|
|
1451
1459
|
throw new N(28);
|
|
1452
1460
|
}
|
|
1453
|
-
var e =
|
|
1461
|
+
var e = Vb(d, a);
|
|
1454
1462
|
if (e) {
|
|
1455
1463
|
throw new N(e);
|
|
1456
1464
|
}
|
|
@@ -1459,23 +1467,23 @@ function Zb(a, b, c) {
|
|
|
1459
1467
|
}
|
|
1460
1468
|
return d.j.ua(d, a, b, c);
|
|
1461
1469
|
}
|
|
1462
|
-
function
|
|
1463
|
-
return
|
|
1470
|
+
function fc(a) {
|
|
1471
|
+
return $b(a, 16895, 0);
|
|
1464
1472
|
}
|
|
1465
|
-
function
|
|
1473
|
+
function gc(a, b, c) {
|
|
1466
1474
|
"undefined" == typeof c && (c = b, b = 438);
|
|
1467
|
-
|
|
1475
|
+
$b(a, b | 8192, c);
|
|
1468
1476
|
}
|
|
1469
|
-
function
|
|
1477
|
+
function hc(a, b) {
|
|
1470
1478
|
if (!nb(a)) {
|
|
1471
1479
|
throw new N(44);
|
|
1472
1480
|
}
|
|
1473
|
-
var c =
|
|
1481
|
+
var c = Pb(b, {parent:!0}).node;
|
|
1474
1482
|
if (!c) {
|
|
1475
1483
|
throw new N(44);
|
|
1476
1484
|
}
|
|
1477
1485
|
b = kb(b);
|
|
1478
|
-
var d =
|
|
1486
|
+
var d = Vb(c, b);
|
|
1479
1487
|
if (d) {
|
|
1480
1488
|
throw new N(d);
|
|
1481
1489
|
}
|
|
@@ -1484,17 +1492,17 @@ function ec(a, b) {
|
|
|
1484
1492
|
}
|
|
1485
1493
|
c.j.Da(c, b, a);
|
|
1486
1494
|
}
|
|
1487
|
-
function
|
|
1488
|
-
a =
|
|
1495
|
+
function Qb(a) {
|
|
1496
|
+
a = Pb(a).node;
|
|
1489
1497
|
if (!a) {
|
|
1490
1498
|
throw new N(44);
|
|
1491
1499
|
}
|
|
1492
1500
|
if (!a.j.ma) {
|
|
1493
1501
|
throw new N(28);
|
|
1494
1502
|
}
|
|
1495
|
-
return nb(
|
|
1503
|
+
return nb(Rb(a.parent), a.j.ma(a));
|
|
1496
1504
|
}
|
|
1497
|
-
function
|
|
1505
|
+
function ic(a, b, c) {
|
|
1498
1506
|
if ("" === a) {
|
|
1499
1507
|
throw new N(44);
|
|
1500
1508
|
}
|
|
@@ -1511,7 +1519,7 @@ function fc(a, b, c) {
|
|
|
1511
1519
|
} else {
|
|
1512
1520
|
a = ib(a);
|
|
1513
1521
|
try {
|
|
1514
|
-
e =
|
|
1522
|
+
e = Pb(a, {gb:!(b & 131072)}).node;
|
|
1515
1523
|
} catch (f) {
|
|
1516
1524
|
}
|
|
1517
1525
|
}
|
|
@@ -1522,7 +1530,7 @@ function fc(a, b, c) {
|
|
|
1522
1530
|
throw new N(20);
|
|
1523
1531
|
}
|
|
1524
1532
|
} else {
|
|
1525
|
-
e =
|
|
1533
|
+
e = $b(a, c, 0), d = !0;
|
|
1526
1534
|
}
|
|
1527
1535
|
}
|
|
1528
1536
|
if (!e) {
|
|
@@ -1532,12 +1540,12 @@ function fc(a, b, c) {
|
|
|
1532
1540
|
if (b & 65536 && 16384 !== (e.mode & 61440)) {
|
|
1533
1541
|
throw new N(54);
|
|
1534
1542
|
}
|
|
1535
|
-
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !==
|
|
1543
|
+
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Ub(b) || b & 512) ? 31 : Tb(e, Ub(b)) : 44)) {
|
|
1536
1544
|
throw new N(c);
|
|
1537
1545
|
}
|
|
1538
1546
|
if (b & 512 && !d) {
|
|
1539
1547
|
c = e;
|
|
1540
|
-
c = "string" == typeof c ?
|
|
1548
|
+
c = "string" == typeof c ? Pb(c, {gb:!0}).node : c;
|
|
1541
1549
|
if (!c.j.R) {
|
|
1542
1550
|
throw new N(63);
|
|
1543
1551
|
}
|
|
@@ -1547,18 +1555,18 @@ function fc(a, b, c) {
|
|
|
1547
1555
|
if (32768 !== (c.mode & 61440)) {
|
|
1548
1556
|
throw new N(28);
|
|
1549
1557
|
}
|
|
1550
|
-
if (d =
|
|
1558
|
+
if (d = Tb(c, "w")) {
|
|
1551
1559
|
throw new N(d);
|
|
1552
1560
|
}
|
|
1553
1561
|
c.j.R(c, {size:0, timestamp:Date.now()});
|
|
1554
1562
|
}
|
|
1555
1563
|
b &= -131713;
|
|
1556
|
-
e =
|
|
1564
|
+
e = Xb({node:e, path:Rb(e), flags:b, seekable:!0, position:0, m:e.m, tc:[], error:!1});
|
|
1557
1565
|
e.m.open && e.m.open(e);
|
|
1558
|
-
!m.logReadFiles || b & 1 || (
|
|
1566
|
+
!m.logReadFiles || b & 1 || (jc ||= {}, a in jc || (jc[a] = 1));
|
|
1559
1567
|
return e;
|
|
1560
1568
|
}
|
|
1561
|
-
function
|
|
1569
|
+
function kc(a, b, c) {
|
|
1562
1570
|
if (null === a.X) {
|
|
1563
1571
|
throw new N(8);
|
|
1564
1572
|
}
|
|
@@ -1571,13 +1579,13 @@ function hc(a, b, c) {
|
|
|
1571
1579
|
a.position = a.m.ba(a, b, c);
|
|
1572
1580
|
a.tc = [];
|
|
1573
1581
|
}
|
|
1574
|
-
var
|
|
1575
|
-
function
|
|
1582
|
+
var lc;
|
|
1583
|
+
function mc(a, b, c) {
|
|
1576
1584
|
a = ib("/dev/" + a);
|
|
1577
|
-
var d =
|
|
1578
|
-
|
|
1579
|
-
var e =
|
|
1580
|
-
|
|
1585
|
+
var d = Gb(!!b, !!c);
|
|
1586
|
+
nc ||= 64;
|
|
1587
|
+
var e = nc++ << 8 | 0;
|
|
1588
|
+
xb(e, {open(f) {
|
|
1581
1589
|
f.seekable = !1;
|
|
1582
1590
|
}, close() {
|
|
1583
1591
|
c?.buffer?.length && c(10);
|
|
@@ -1610,14 +1618,14 @@ function jc(a, b, c) {
|
|
|
1610
1618
|
p && (f.node.timestamp = Date.now());
|
|
1611
1619
|
return n;
|
|
1612
1620
|
}});
|
|
1613
|
-
|
|
1621
|
+
gc(a, d, e);
|
|
1614
1622
|
}
|
|
1615
|
-
var
|
|
1623
|
+
var nc, oc = {}, jc, gb = void 0, pc = (a, b) => Object.defineProperty(b, "name", {value:a}), qc = [], rc = [], P, sc = a => {
|
|
1616
1624
|
if (!a) {
|
|
1617
1625
|
throw new P("Cannot use deleted val. handle = " + a);
|
|
1618
1626
|
}
|
|
1619
|
-
return
|
|
1620
|
-
},
|
|
1627
|
+
return rc[a];
|
|
1628
|
+
}, tc = a => {
|
|
1621
1629
|
switch(a) {
|
|
1622
1630
|
case void 0:
|
|
1623
1631
|
return 2;
|
|
@@ -1628,13 +1636,13 @@ var kc, lc = {}, gc, gb = void 0, mc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1628
1636
|
case !1:
|
|
1629
1637
|
return 8;
|
|
1630
1638
|
default:
|
|
1631
|
-
const b =
|
|
1632
|
-
|
|
1633
|
-
|
|
1639
|
+
const b = qc.pop() || rc.length;
|
|
1640
|
+
rc[b] = a;
|
|
1641
|
+
rc[b + 1] = 1;
|
|
1634
1642
|
return b;
|
|
1635
1643
|
}
|
|
1636
|
-
},
|
|
1637
|
-
var b = Error, c =
|
|
1644
|
+
}, uc = a => {
|
|
1645
|
+
var b = Error, c = pc(a, function(d) {
|
|
1638
1646
|
this.name = a;
|
|
1639
1647
|
this.message = d;
|
|
1640
1648
|
d = Error(d).stack;
|
|
@@ -1646,18 +1654,18 @@ var kc, lc = {}, gc, gb = void 0, mc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1646
1654
|
return void 0 === this.message ? this.name : `${this.name}: ${this.message}`;
|
|
1647
1655
|
};
|
|
1648
1656
|
return c;
|
|
1649
|
-
},
|
|
1650
|
-
for (var b = "";
|
|
1651
|
-
b +=
|
|
1657
|
+
}, vc, wc, Q = a => {
|
|
1658
|
+
for (var b = ""; B[a];) {
|
|
1659
|
+
b += wc[B[a++]];
|
|
1652
1660
|
}
|
|
1653
1661
|
return b;
|
|
1654
|
-
},
|
|
1655
|
-
for (;
|
|
1656
|
-
var a =
|
|
1662
|
+
}, xc = [], yc = () => {
|
|
1663
|
+
for (; xc.length;) {
|
|
1664
|
+
var a = xc.pop();
|
|
1657
1665
|
a.g.fa = !1;
|
|
1658
1666
|
a["delete"]();
|
|
1659
1667
|
}
|
|
1660
|
-
},
|
|
1668
|
+
}, zc, Ac = {}, Bc = (a, b) => {
|
|
1661
1669
|
if (void 0 === b) {
|
|
1662
1670
|
throw new P("ptr should not be undefined");
|
|
1663
1671
|
}
|
|
@@ -1665,116 +1673,116 @@ var kc, lc = {}, gc, gb = void 0, mc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1665
1673
|
b = a.na(b), a = a.C;
|
|
1666
1674
|
}
|
|
1667
1675
|
return b;
|
|
1668
|
-
},
|
|
1669
|
-
a =
|
|
1676
|
+
}, Cc = {}, Fc = a => {
|
|
1677
|
+
a = Dc(a);
|
|
1670
1678
|
var b = Q(a);
|
|
1671
|
-
|
|
1679
|
+
Ec(a);
|
|
1672
1680
|
return b;
|
|
1673
|
-
},
|
|
1674
|
-
var c =
|
|
1681
|
+
}, Gc = (a, b) => {
|
|
1682
|
+
var c = Cc[a];
|
|
1675
1683
|
if (void 0 === c) {
|
|
1676
|
-
throw a = `${b} has unknown type ${
|
|
1684
|
+
throw a = `${b} has unknown type ${Fc(a)}`, new P(a);
|
|
1677
1685
|
}
|
|
1678
1686
|
return c;
|
|
1679
|
-
},
|
|
1680
|
-
},
|
|
1687
|
+
}, Hc = () => {
|
|
1688
|
+
}, Ic = !1, Jc = (a, b, c) => {
|
|
1681
1689
|
if (b === c) {
|
|
1682
1690
|
return a;
|
|
1683
1691
|
}
|
|
1684
1692
|
if (void 0 === c.C) {
|
|
1685
1693
|
return null;
|
|
1686
1694
|
}
|
|
1687
|
-
a =
|
|
1695
|
+
a = Jc(a, b, c.C);
|
|
1688
1696
|
return null === a ? null : c.Mb(a);
|
|
1689
|
-
},
|
|
1690
|
-
b =
|
|
1691
|
-
return
|
|
1692
|
-
},
|
|
1697
|
+
}, Kc = {}, Lc = (a, b) => {
|
|
1698
|
+
b = Bc(a, b);
|
|
1699
|
+
return Ac[b];
|
|
1700
|
+
}, Mc, Oc = (a, b) => {
|
|
1693
1701
|
if (!b.u || !b.o) {
|
|
1694
|
-
throw new
|
|
1702
|
+
throw new Mc("makeClassHandle requires ptr and ptrType");
|
|
1695
1703
|
}
|
|
1696
1704
|
if (!!b.K !== !!b.F) {
|
|
1697
|
-
throw new
|
|
1705
|
+
throw new Mc("Both smartPtrType and smartPtr must be specified");
|
|
1698
1706
|
}
|
|
1699
1707
|
b.count = {value:1};
|
|
1700
|
-
return
|
|
1701
|
-
},
|
|
1708
|
+
return Nc(Object.create(a, {g:{value:b, writable:!0,},}));
|
|
1709
|
+
}, Nc = a => {
|
|
1702
1710
|
if ("undefined" === typeof FinalizationRegistry) {
|
|
1703
|
-
return
|
|
1711
|
+
return Nc = b => b, a;
|
|
1704
1712
|
}
|
|
1705
|
-
|
|
1713
|
+
Ic = new FinalizationRegistry(b => {
|
|
1706
1714
|
b = b.g;
|
|
1707
1715
|
--b.count.value;
|
|
1708
1716
|
0 === b.count.value && (b.F ? b.K.P(b.F) : b.u.i.P(b.o));
|
|
1709
1717
|
});
|
|
1710
|
-
|
|
1718
|
+
Nc = b => {
|
|
1711
1719
|
var c = b.g;
|
|
1712
|
-
c.F &&
|
|
1720
|
+
c.F && Ic.register(b, {g:c}, b);
|
|
1713
1721
|
return b;
|
|
1714
1722
|
};
|
|
1715
|
-
|
|
1716
|
-
|
|
1723
|
+
Hc = b => {
|
|
1724
|
+
Ic.unregister(b);
|
|
1717
1725
|
};
|
|
1718
|
-
return
|
|
1719
|
-
},
|
|
1726
|
+
return Nc(a);
|
|
1727
|
+
}, Pc = {}, Qc = a => {
|
|
1720
1728
|
for (; a.length;) {
|
|
1721
1729
|
var b = a.pop();
|
|
1722
1730
|
a.pop()(b);
|
|
1723
1731
|
}
|
|
1724
1732
|
};
|
|
1725
|
-
function
|
|
1726
|
-
return this.fromWireType(
|
|
1733
|
+
function Rc(a) {
|
|
1734
|
+
return this.fromWireType(F[a >> 2]);
|
|
1727
1735
|
}
|
|
1728
|
-
var
|
|
1736
|
+
var Sc = {}, Tc = {}, S = (a, b, c) => {
|
|
1729
1737
|
function d(k) {
|
|
1730
1738
|
k = c(k);
|
|
1731
1739
|
if (k.length !== a.length) {
|
|
1732
|
-
throw new
|
|
1740
|
+
throw new Mc("Mismatched type converter count");
|
|
1733
1741
|
}
|
|
1734
1742
|
for (var p = 0; p < a.length; ++p) {
|
|
1735
|
-
|
|
1743
|
+
Uc(a[p], k[p]);
|
|
1736
1744
|
}
|
|
1737
1745
|
}
|
|
1738
1746
|
a.forEach(function(k) {
|
|
1739
|
-
|
|
1747
|
+
Tc[k] = b;
|
|
1740
1748
|
});
|
|
1741
1749
|
var e = Array(b.length), f = [], g = 0;
|
|
1742
1750
|
b.forEach((k, p) => {
|
|
1743
|
-
|
|
1744
|
-
e[p] =
|
|
1751
|
+
Cc.hasOwnProperty(k) ? e[p] = Cc[k] : (f.push(k), Sc.hasOwnProperty(k) || (Sc[k] = []), Sc[k].push(() => {
|
|
1752
|
+
e[p] = Cc[k];
|
|
1745
1753
|
++g;
|
|
1746
1754
|
g === f.length && d(e);
|
|
1747
1755
|
}));
|
|
1748
1756
|
});
|
|
1749
1757
|
0 === f.length && d(e);
|
|
1750
1758
|
};
|
|
1751
|
-
function
|
|
1759
|
+
function Vc(a, b, c = {}) {
|
|
1752
1760
|
var d = b.name;
|
|
1753
1761
|
if (!a) {
|
|
1754
1762
|
throw new P(`type "${d}" must have a positive integer typeid pointer`);
|
|
1755
1763
|
}
|
|
1756
|
-
if (
|
|
1764
|
+
if (Cc.hasOwnProperty(a)) {
|
|
1757
1765
|
if (c.Wb) {
|
|
1758
1766
|
return;
|
|
1759
1767
|
}
|
|
1760
1768
|
throw new P(`Cannot register type '${d}' twice`);
|
|
1761
1769
|
}
|
|
1762
|
-
|
|
1763
|
-
delete
|
|
1764
|
-
|
|
1770
|
+
Cc[a] = b;
|
|
1771
|
+
delete Tc[a];
|
|
1772
|
+
Sc.hasOwnProperty(a) && (b = Sc[a], delete Sc[a], b.forEach(e => e()));
|
|
1765
1773
|
}
|
|
1766
|
-
function
|
|
1774
|
+
function Uc(a, b, c = {}) {
|
|
1767
1775
|
if (!("argPackAdvance" in b)) {
|
|
1768
1776
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
1769
1777
|
}
|
|
1770
|
-
return
|
|
1778
|
+
return Vc(a, b, c);
|
|
1771
1779
|
}
|
|
1772
|
-
var
|
|
1780
|
+
var Wc = a => {
|
|
1773
1781
|
throw new P(a.g.u.i.name + " instance already deleted");
|
|
1774
1782
|
};
|
|
1775
|
-
function
|
|
1783
|
+
function Xc() {
|
|
1776
1784
|
}
|
|
1777
|
-
var
|
|
1785
|
+
var Yc = (a, b, c) => {
|
|
1778
1786
|
if (void 0 === a[b].A) {
|
|
1779
1787
|
var d = a[b];
|
|
1780
1788
|
a[b] = function(...e) {
|
|
@@ -1786,12 +1794,12 @@ var Vc = (a, b, c) => {
|
|
|
1786
1794
|
a[b].A = [];
|
|
1787
1795
|
a[b].A[d.ea] = d;
|
|
1788
1796
|
}
|
|
1789
|
-
},
|
|
1797
|
+
}, Zc = (a, b, c) => {
|
|
1790
1798
|
if (m.hasOwnProperty(a)) {
|
|
1791
1799
|
if (void 0 === c || void 0 !== m[a].A && void 0 !== m[a].A[c]) {
|
|
1792
1800
|
throw new P(`Cannot register public name '${a}' twice`);
|
|
1793
1801
|
}
|
|
1794
|
-
|
|
1802
|
+
Yc(m, a, a);
|
|
1795
1803
|
if (m.hasOwnProperty(c)) {
|
|
1796
1804
|
throw new P(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`);
|
|
1797
1805
|
}
|
|
@@ -1799,7 +1807,7 @@ var Vc = (a, b, c) => {
|
|
|
1799
1807
|
} else {
|
|
1800
1808
|
m[a] = b, void 0 !== c && (m[a].Mc = c);
|
|
1801
1809
|
}
|
|
1802
|
-
},
|
|
1810
|
+
}, $c = a => {
|
|
1803
1811
|
if (void 0 === a) {
|
|
1804
1812
|
return "_unknown";
|
|
1805
1813
|
}
|
|
@@ -1807,7 +1815,7 @@ var Vc = (a, b, c) => {
|
|
|
1807
1815
|
var b = a.charCodeAt(0);
|
|
1808
1816
|
return 48 <= b && 57 >= b ? `_${a}` : a;
|
|
1809
1817
|
};
|
|
1810
|
-
function
|
|
1818
|
+
function ad(a, b, c, d, e, f, g, k) {
|
|
1811
1819
|
this.name = a;
|
|
1812
1820
|
this.constructor = b;
|
|
1813
1821
|
this.N = c;
|
|
@@ -1818,7 +1826,7 @@ function Yc(a, b, c, d, e, f, g, k) {
|
|
|
1818
1826
|
this.Mb = k;
|
|
1819
1827
|
this.qb = [];
|
|
1820
1828
|
}
|
|
1821
|
-
var
|
|
1829
|
+
var bd = (a, b, c) => {
|
|
1822
1830
|
for (; b !== c;) {
|
|
1823
1831
|
if (!b.na) {
|
|
1824
1832
|
throw new P(`Expected null or instance of ${c.name}, got an instance of ${b.name}`);
|
|
@@ -1828,7 +1836,7 @@ var Zc = (a, b, c) => {
|
|
|
1828
1836
|
}
|
|
1829
1837
|
return a;
|
|
1830
1838
|
};
|
|
1831
|
-
function
|
|
1839
|
+
function cd(a, b) {
|
|
1832
1840
|
if (null === b) {
|
|
1833
1841
|
if (this.Ma) {
|
|
1834
1842
|
throw new P(`null is not a valid ${this.name}`);
|
|
@@ -1836,14 +1844,14 @@ function $c(a, b) {
|
|
|
1836
1844
|
return 0;
|
|
1837
1845
|
}
|
|
1838
1846
|
if (!b.g) {
|
|
1839
|
-
throw new P(`Cannot pass "${
|
|
1847
|
+
throw new P(`Cannot pass "${dd(b)}" as a ${this.name}`);
|
|
1840
1848
|
}
|
|
1841
1849
|
if (!b.g.o) {
|
|
1842
1850
|
throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1843
1851
|
}
|
|
1844
|
-
return
|
|
1852
|
+
return bd(b.g.o, b.g.u.i, this.i);
|
|
1845
1853
|
}
|
|
1846
|
-
function
|
|
1854
|
+
function ed(a, b) {
|
|
1847
1855
|
if (null === b) {
|
|
1848
1856
|
if (this.Ma) {
|
|
1849
1857
|
throw new P(`null is not a valid ${this.name}`);
|
|
@@ -1856,7 +1864,7 @@ function bd(a, b) {
|
|
|
1856
1864
|
return 0;
|
|
1857
1865
|
}
|
|
1858
1866
|
if (!b || !b.g) {
|
|
1859
|
-
throw new P(`Cannot pass "${
|
|
1867
|
+
throw new P(`Cannot pass "${dd(b)}" as a ${this.name}`);
|
|
1860
1868
|
}
|
|
1861
1869
|
if (!b.g.o) {
|
|
1862
1870
|
throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
@@ -1864,7 +1872,7 @@ function bd(a, b) {
|
|
|
1864
1872
|
if (!this.sa && b.g.u.sa) {
|
|
1865
1873
|
throw new P(`Cannot convert argument of type ${b.g.K ? b.g.K.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1866
1874
|
}
|
|
1867
|
-
c =
|
|
1875
|
+
c = bd(b.g.o, b.g.u.i, this.i);
|
|
1868
1876
|
if (this.ta) {
|
|
1869
1877
|
if (void 0 === b.g.F) {
|
|
1870
1878
|
throw new P("Passing raw pointer to smart pointer is illegal");
|
|
@@ -1885,7 +1893,7 @@ function bd(a, b) {
|
|
|
1885
1893
|
c = b.g.F;
|
|
1886
1894
|
} else {
|
|
1887
1895
|
var d = b.clone();
|
|
1888
|
-
c = this.jc(c,
|
|
1896
|
+
c = this.jc(c, tc(() => d["delete"]()));
|
|
1889
1897
|
null !== a && a.push(this.P, c);
|
|
1890
1898
|
}
|
|
1891
1899
|
break;
|
|
@@ -1895,7 +1903,7 @@ function bd(a, b) {
|
|
|
1895
1903
|
}
|
|
1896
1904
|
return c;
|
|
1897
1905
|
}
|
|
1898
|
-
function
|
|
1906
|
+
function fd(a, b) {
|
|
1899
1907
|
if (null === b) {
|
|
1900
1908
|
if (this.Ma) {
|
|
1901
1909
|
throw new P(`null is not a valid ${this.name}`);
|
|
@@ -1903,7 +1911,7 @@ function cd(a, b) {
|
|
|
1903
1911
|
return 0;
|
|
1904
1912
|
}
|
|
1905
1913
|
if (!b.g) {
|
|
1906
|
-
throw new P(`Cannot pass "${
|
|
1914
|
+
throw new P(`Cannot pass "${dd(b)}" as a ${this.name}`);
|
|
1907
1915
|
}
|
|
1908
1916
|
if (!b.g.o) {
|
|
1909
1917
|
throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
@@ -1911,9 +1919,9 @@ function cd(a, b) {
|
|
|
1911
1919
|
if (b.g.u.sa) {
|
|
1912
1920
|
throw new P(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1913
1921
|
}
|
|
1914
|
-
return
|
|
1922
|
+
return bd(b.g.o, b.g.u.i, this.i);
|
|
1915
1923
|
}
|
|
1916
|
-
function
|
|
1924
|
+
function gd(a, b, c, d, e, f, g, k, p, n, t) {
|
|
1917
1925
|
this.name = a;
|
|
1918
1926
|
this.i = b;
|
|
1919
1927
|
this.Ma = c;
|
|
@@ -1925,36 +1933,36 @@ function dd(a, b, c, d, e, f, g, k, p, n, t) {
|
|
|
1925
1933
|
this.Oa = p;
|
|
1926
1934
|
this.jc = n;
|
|
1927
1935
|
this.P = t;
|
|
1928
|
-
e || void 0 !== b.C ? this.toWireType =
|
|
1936
|
+
e || void 0 !== b.C ? this.toWireType = ed : (this.toWireType = d ? cd : fd, this.M = null);
|
|
1929
1937
|
}
|
|
1930
|
-
var
|
|
1938
|
+
var hd = (a, b, c) => {
|
|
1931
1939
|
if (!m.hasOwnProperty(a)) {
|
|
1932
|
-
throw new
|
|
1940
|
+
throw new Mc("Replacing nonexistent public symbol");
|
|
1933
1941
|
}
|
|
1934
1942
|
void 0 !== m[a].A && void 0 !== c ? m[a].A[c] = b : (m[a] = b, m[a].ea = c);
|
|
1935
|
-
},
|
|
1936
|
-
var b =
|
|
1937
|
-
b || (a >=
|
|
1943
|
+
}, jd = [], kd, ld = a => {
|
|
1944
|
+
var b = jd[a];
|
|
1945
|
+
b || (a >= jd.length && (jd.length = a + 1), jd[a] = b = kd.get(a));
|
|
1938
1946
|
return b;
|
|
1939
|
-
},
|
|
1940
|
-
a.includes("j") ? (a = a.replace(/p/g, "i"), b = (0,m["dynCall_" + a])(b, ...c)) : b =
|
|
1947
|
+
}, md = (a, b, c = []) => {
|
|
1948
|
+
a.includes("j") ? (a = a.replace(/p/g, "i"), b = (0,m["dynCall_" + a])(b, ...c)) : b = ld(b)(...c);
|
|
1941
1949
|
return b;
|
|
1942
|
-
},
|
|
1950
|
+
}, nd = (a, b) => (...c) => md(a, b, c), U = (a, b) => {
|
|
1943
1951
|
a = Q(a);
|
|
1944
|
-
var c = a.includes("j") ?
|
|
1952
|
+
var c = a.includes("j") ? nd(a, b) : ld(b);
|
|
1945
1953
|
if ("function" != typeof c) {
|
|
1946
1954
|
throw new P(`unknown function pointer with signature ${a}: ${b}`);
|
|
1947
1955
|
}
|
|
1948
1956
|
return c;
|
|
1949
|
-
},
|
|
1957
|
+
}, od, pd = (a, b) => {
|
|
1950
1958
|
function c(f) {
|
|
1951
|
-
e[f] ||
|
|
1959
|
+
e[f] || Cc[f] || (Tc[f] ? Tc[f].forEach(c) : (d.push(f), e[f] = !0));
|
|
1952
1960
|
}
|
|
1953
1961
|
var d = [], e = {};
|
|
1954
1962
|
b.forEach(c);
|
|
1955
|
-
throw new
|
|
1963
|
+
throw new od(`${a}: ` + d.map(Fc).join([", "]));
|
|
1956
1964
|
};
|
|
1957
|
-
function
|
|
1965
|
+
function qd(a) {
|
|
1958
1966
|
for (var b = 1; b < a.length; ++b) {
|
|
1959
1967
|
if (null !== a[b] && void 0 === a[b].M) {
|
|
1960
1968
|
return !0;
|
|
@@ -1962,13 +1970,13 @@ function nd(a) {
|
|
|
1962
1970
|
}
|
|
1963
1971
|
return !1;
|
|
1964
1972
|
}
|
|
1965
|
-
function
|
|
1973
|
+
function ud(a, b, c, d, e) {
|
|
1966
1974
|
var f = b.length;
|
|
1967
1975
|
if (2 > f) {
|
|
1968
1976
|
throw new P("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1969
1977
|
}
|
|
1970
|
-
var g = null !== b[1] && null !== c, k =
|
|
1971
|
-
return
|
|
1978
|
+
var g = null !== b[1] && null !== c, k = qd(b), p = "void" !== b[0].name, n = f - 2, t = Array(n), x = [], y = [];
|
|
1979
|
+
return pc(a, function(...l) {
|
|
1972
1980
|
if (l.length !== n) {
|
|
1973
1981
|
throw new P(`function ${a} called with ${l.length} arguments, expected ${n}`);
|
|
1974
1982
|
}
|
|
@@ -1984,27 +1992,27 @@ function rd(a, b, c, d, e) {
|
|
|
1984
1992
|
}
|
|
1985
1993
|
l = d(...x);
|
|
1986
1994
|
if (k) {
|
|
1987
|
-
|
|
1995
|
+
Qc(y);
|
|
1988
1996
|
} else {
|
|
1989
1997
|
for (r = g ? 1 : 2; r < b.length; r++) {
|
|
1990
|
-
var
|
|
1991
|
-
null !== b[r].M && b[r].M(
|
|
1998
|
+
var D = 1 === r ? u : t[r - 2];
|
|
1999
|
+
null !== b[r].M && b[r].M(D);
|
|
1992
2000
|
}
|
|
1993
2001
|
}
|
|
1994
2002
|
u = p ? b[0].fromWireType(l) : void 0;
|
|
1995
2003
|
return u;
|
|
1996
2004
|
});
|
|
1997
2005
|
}
|
|
1998
|
-
var
|
|
2006
|
+
var vd = (a, b) => {
|
|
1999
2007
|
for (var c = [], d = 0; d < a; d++) {
|
|
2000
|
-
c.push(
|
|
2008
|
+
c.push(F[b + 4 * d >> 2]);
|
|
2001
2009
|
}
|
|
2002
2010
|
return c;
|
|
2003
|
-
},
|
|
2011
|
+
}, wd = a => {
|
|
2004
2012
|
a = a.trim();
|
|
2005
2013
|
const b = a.indexOf("(");
|
|
2006
2014
|
return -1 !== b ? a.substr(0, b) : a;
|
|
2007
|
-
},
|
|
2015
|
+
}, xd = (a, b, c) => {
|
|
2008
2016
|
if (!(a instanceof Object)) {
|
|
2009
2017
|
throw new P(`${c} with invalid "this": ${a}`);
|
|
2010
2018
|
}
|
|
@@ -2014,85 +2022,85 @@ var sd = (a, b) => {
|
|
|
2014
2022
|
if (!a.g.o) {
|
|
2015
2023
|
throw new P(`cannot call emscripten binding method ${c} on deleted object`);
|
|
2016
2024
|
}
|
|
2017
|
-
return
|
|
2018
|
-
},
|
|
2019
|
-
9 < a && 0 === --
|
|
2020
|
-
},
|
|
2021
|
-
var b =
|
|
2022
|
-
|
|
2025
|
+
return bd(a.g.o, a.g.u.i, b.i);
|
|
2026
|
+
}, yd = a => {
|
|
2027
|
+
9 < a && 0 === --rc[a + 1] && (rc[a] = void 0, qc.push(a));
|
|
2028
|
+
}, zd = {name:"emscripten::val", fromWireType:a => {
|
|
2029
|
+
var b = sc(a);
|
|
2030
|
+
yd(a);
|
|
2023
2031
|
return b;
|
|
2024
|
-
}, toWireType:(a, b) =>
|
|
2032
|
+
}, toWireType:(a, b) => tc(b), argPackAdvance:8, readValueFromPointer:Rc, M:null,}, Ad = (a, b, c) => {
|
|
2025
2033
|
switch(b) {
|
|
2026
2034
|
case 1:
|
|
2027
2035
|
return c ? function(d) {
|
|
2028
2036
|
return this.fromWireType(z[d]);
|
|
2029
2037
|
} : function(d) {
|
|
2030
|
-
return this.fromWireType(
|
|
2038
|
+
return this.fromWireType(B[d]);
|
|
2031
2039
|
};
|
|
2032
2040
|
case 2:
|
|
2033
2041
|
return c ? function(d) {
|
|
2034
|
-
return this.fromWireType(Da[d >> 1]);
|
|
2035
|
-
} : function(d) {
|
|
2036
2042
|
return this.fromWireType(Ea[d >> 1]);
|
|
2043
|
+
} : function(d) {
|
|
2044
|
+
return this.fromWireType(Fa[d >> 1]);
|
|
2037
2045
|
};
|
|
2038
2046
|
case 4:
|
|
2039
2047
|
return c ? function(d) {
|
|
2040
|
-
return this.fromWireType(
|
|
2048
|
+
return this.fromWireType(C[d >> 2]);
|
|
2041
2049
|
} : function(d) {
|
|
2042
|
-
return this.fromWireType(
|
|
2050
|
+
return this.fromWireType(F[d >> 2]);
|
|
2043
2051
|
};
|
|
2044
2052
|
default:
|
|
2045
2053
|
throw new TypeError(`invalid integer width (${b}): ${a}`);
|
|
2046
2054
|
}
|
|
2047
|
-
},
|
|
2055
|
+
}, dd = a => {
|
|
2048
2056
|
if (null === a) {
|
|
2049
2057
|
return "null";
|
|
2050
2058
|
}
|
|
2051
2059
|
var b = typeof a;
|
|
2052
2060
|
return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
|
|
2053
|
-
},
|
|
2061
|
+
}, Bd = (a, b) => {
|
|
2054
2062
|
switch(b) {
|
|
2055
2063
|
case 4:
|
|
2056
2064
|
return function(c) {
|
|
2057
|
-
return this.fromWireType(
|
|
2065
|
+
return this.fromWireType(Ia[c >> 2]);
|
|
2058
2066
|
};
|
|
2059
2067
|
case 8:
|
|
2060
2068
|
return function(c) {
|
|
2061
|
-
return this.fromWireType(
|
|
2069
|
+
return this.fromWireType(Ja[c >> 3]);
|
|
2062
2070
|
};
|
|
2063
2071
|
default:
|
|
2064
2072
|
throw new TypeError(`invalid float width (${b}): ${a}`);
|
|
2065
2073
|
}
|
|
2066
|
-
},
|
|
2074
|
+
}, Cd = (a, b, c) => {
|
|
2067
2075
|
switch(b) {
|
|
2068
2076
|
case 1:
|
|
2069
|
-
return c ? d => z[d] : d =>
|
|
2077
|
+
return c ? d => z[d] : d => B[d];
|
|
2070
2078
|
case 2:
|
|
2071
|
-
return c ? d =>
|
|
2079
|
+
return c ? d => Ea[d >> 1] : d => Fa[d >> 1];
|
|
2072
2080
|
case 4:
|
|
2073
|
-
return c ? d =>
|
|
2081
|
+
return c ? d => C[d >> 2] : d => F[d >> 2];
|
|
2074
2082
|
default:
|
|
2075
2083
|
throw new TypeError(`invalid integer width (${b}): ${a}`);
|
|
2076
2084
|
}
|
|
2077
|
-
},
|
|
2085
|
+
}, Dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, Ed = (a, b) => {
|
|
2078
2086
|
var c = a >> 1;
|
|
2079
|
-
for (var d = c + b / 2; !(c >= d) &&
|
|
2087
|
+
for (var d = c + b / 2; !(c >= d) && Fa[c];) {
|
|
2080
2088
|
++c;
|
|
2081
2089
|
}
|
|
2082
2090
|
c <<= 1;
|
|
2083
|
-
if (32 < c - a &&
|
|
2084
|
-
return
|
|
2091
|
+
if (32 < c - a && Dd) {
|
|
2092
|
+
return Dd.decode(B.subarray(a, c));
|
|
2085
2093
|
}
|
|
2086
2094
|
c = "";
|
|
2087
2095
|
for (d = 0; !(d >= b / 2); ++d) {
|
|
2088
|
-
var e =
|
|
2096
|
+
var e = Ea[a + 2 * d >> 1];
|
|
2089
2097
|
if (0 == e) {
|
|
2090
2098
|
break;
|
|
2091
2099
|
}
|
|
2092
2100
|
c += String.fromCharCode(e);
|
|
2093
2101
|
}
|
|
2094
2102
|
return c;
|
|
2095
|
-
},
|
|
2103
|
+
}, Fd = (a, b, c) => {
|
|
2096
2104
|
c ??= 2147483647;
|
|
2097
2105
|
if (2 > c) {
|
|
2098
2106
|
return 0;
|
|
@@ -2101,13 +2109,13 @@ var sd = (a, b) => {
|
|
|
2101
2109
|
var d = b;
|
|
2102
2110
|
c = c < 2 * a.length ? c / 2 : a.length;
|
|
2103
2111
|
for (var e = 0; e < c; ++e) {
|
|
2104
|
-
|
|
2112
|
+
Ea[b >> 1] = a.charCodeAt(e), b += 2;
|
|
2105
2113
|
}
|
|
2106
|
-
|
|
2114
|
+
Ea[b >> 1] = 0;
|
|
2107
2115
|
return b - d;
|
|
2108
|
-
},
|
|
2116
|
+
}, Gd = a => 2 * a.length, Hd = (a, b) => {
|
|
2109
2117
|
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
2110
|
-
var e =
|
|
2118
|
+
var e = C[a + 4 * c >> 2];
|
|
2111
2119
|
if (0 == e) {
|
|
2112
2120
|
break;
|
|
2113
2121
|
}
|
|
@@ -2115,7 +2123,7 @@ var sd = (a, b) => {
|
|
|
2115
2123
|
65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
|
|
2116
2124
|
}
|
|
2117
2125
|
return d;
|
|
2118
|
-
},
|
|
2126
|
+
}, Id = (a, b, c) => {
|
|
2119
2127
|
c ??= 2147483647;
|
|
2120
2128
|
if (4 > c) {
|
|
2121
2129
|
return 0;
|
|
@@ -2128,52 +2136,52 @@ var sd = (a, b) => {
|
|
|
2128
2136
|
var g = a.charCodeAt(++e);
|
|
2129
2137
|
f = 65536 + ((f & 1023) << 10) | g & 1023;
|
|
2130
2138
|
}
|
|
2131
|
-
|
|
2139
|
+
C[b >> 2] = f;
|
|
2132
2140
|
b += 4;
|
|
2133
2141
|
if (b + 4 > c) {
|
|
2134
2142
|
break;
|
|
2135
2143
|
}
|
|
2136
2144
|
}
|
|
2137
|
-
|
|
2145
|
+
C[b >> 2] = 0;
|
|
2138
2146
|
return b - d;
|
|
2139
|
-
},
|
|
2147
|
+
}, Jd = a => {
|
|
2140
2148
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
2141
2149
|
var d = a.charCodeAt(c);
|
|
2142
2150
|
55296 <= d && 57343 >= d && ++c;
|
|
2143
2151
|
b += 4;
|
|
2144
2152
|
}
|
|
2145
2153
|
return b;
|
|
2146
|
-
},
|
|
2154
|
+
}, Kd = (a, b, c) => {
|
|
2147
2155
|
var d = [];
|
|
2148
2156
|
a = a.toWireType(d, c);
|
|
2149
|
-
d.length && (
|
|
2157
|
+
d.length && (F[b >> 2] = tc(d));
|
|
2150
2158
|
return a;
|
|
2151
|
-
},
|
|
2152
|
-
var b =
|
|
2159
|
+
}, Ld = {}, Md = a => {
|
|
2160
|
+
var b = Ld[a];
|
|
2153
2161
|
return void 0 === b ? Q(a) : b;
|
|
2154
|
-
},
|
|
2155
|
-
var b =
|
|
2156
|
-
|
|
2162
|
+
}, Nd = [], Od = a => {
|
|
2163
|
+
var b = Nd.length;
|
|
2164
|
+
Nd.push(a);
|
|
2157
2165
|
return b;
|
|
2158
|
-
},
|
|
2166
|
+
}, Pd = (a, b) => {
|
|
2159
2167
|
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
2160
|
-
c[d] =
|
|
2168
|
+
c[d] = Gc(F[b + 4 * d >> 2], "parameter " + d);
|
|
2161
2169
|
}
|
|
2162
2170
|
return c;
|
|
2163
|
-
},
|
|
2164
|
-
if (!
|
|
2165
|
-
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", _:
|
|
2166
|
-
for (b in
|
|
2167
|
-
void 0 ===
|
|
2171
|
+
}, Qd = Reflect.construct, Rd = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Sd = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335], Td = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], Ud = [], Vd = {}, Xd = () => {
|
|
2172
|
+
if (!Wd) {
|
|
2173
|
+
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", _:pa || "./this.program"}, b;
|
|
2174
|
+
for (b in Vd) {
|
|
2175
|
+
void 0 === Vd[b] ? delete a[b] : a[b] = Vd[b];
|
|
2168
2176
|
}
|
|
2169
2177
|
var c = [];
|
|
2170
2178
|
for (b in a) {
|
|
2171
2179
|
c.push(`${b}=${a[b]}`);
|
|
2172
2180
|
}
|
|
2173
|
-
|
|
2181
|
+
Wd = c;
|
|
2174
2182
|
}
|
|
2175
|
-
return
|
|
2176
|
-
},
|
|
2183
|
+
return Wd;
|
|
2184
|
+
}, Wd, Yd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Zd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], $d = (a, b, c, d) => {
|
|
2177
2185
|
function e(l, u, r) {
|
|
2178
2186
|
for (l = "number" == typeof l ? l.toString() : l || ""; l.length < u;) {
|
|
2179
2187
|
l = r[0] + l;
|
|
@@ -2184,12 +2192,12 @@ var sd = (a, b) => {
|
|
|
2184
2192
|
return e(l, u, "0");
|
|
2185
2193
|
}
|
|
2186
2194
|
function g(l, u) {
|
|
2187
|
-
function r(
|
|
2188
|
-
return 0 >
|
|
2195
|
+
function r(I) {
|
|
2196
|
+
return 0 > I ? -1 : 0 < I ? 1 : 0;
|
|
2189
2197
|
}
|
|
2190
|
-
var
|
|
2191
|
-
0 === (
|
|
2192
|
-
return
|
|
2198
|
+
var D;
|
|
2199
|
+
0 === (D = r(l.getFullYear() - u.getFullYear())) && 0 === (D = r(l.getMonth() - u.getMonth())) && (D = r(l.getDate() - u.getDate()));
|
|
2200
|
+
return D;
|
|
2193
2201
|
}
|
|
2194
2202
|
function k(l) {
|
|
2195
2203
|
switch(l.getDay()) {
|
|
@@ -2212,9 +2220,9 @@ var sd = (a, b) => {
|
|
|
2212
2220
|
function p(l) {
|
|
2213
2221
|
var u = l.ca;
|
|
2214
2222
|
for (l = new Date((new Date(l.da + 1900, 0, 1)).getTime()); 0 < u;) {
|
|
2215
|
-
var r = l.getMonth(),
|
|
2216
|
-
if (u >
|
|
2217
|
-
u -=
|
|
2223
|
+
var r = l.getMonth(), D = (Rd(l.getFullYear()) ? Yd : Zd)[r];
|
|
2224
|
+
if (u > D - l.getDate()) {
|
|
2225
|
+
u -= D - l.getDate() + 1, l.setDate(1), 11 > r ? l.setMonth(r + 1) : (l.setMonth(0), l.setFullYear(l.getFullYear() + 1));
|
|
2218
2226
|
} else {
|
|
2219
2227
|
l.setDate(l.getDate() + u);
|
|
2220
2228
|
break;
|
|
@@ -2225,9 +2233,9 @@ var sd = (a, b) => {
|
|
|
2225
2233
|
r = k(r);
|
|
2226
2234
|
return 0 >= g(u, l) ? 0 >= g(r, l) ? l.getFullYear() + 1 : l.getFullYear() : l.getFullYear() - 1;
|
|
2227
2235
|
}
|
|
2228
|
-
var n =
|
|
2229
|
-
d = {qc:
|
|
2230
|
-
c = c ? pb(
|
|
2236
|
+
var n = F[d + 40 >> 2];
|
|
2237
|
+
d = {qc:C[d >> 2], pc:C[d + 4 >> 2], Ea:C[d + 8 >> 2], Ra:C[d + 12 >> 2], Fa:C[d + 16 >> 2], da:C[d + 20 >> 2], S:C[d + 24 >> 2], ca:C[d + 28 >> 2], Oc:C[d + 32 >> 2], oc:C[d + 36 >> 2], rc:n ? n ? pb(B, n) : "" : ""};
|
|
2238
|
+
c = c ? pb(B, c) : "";
|
|
2231
2239
|
n = {"%c":"%a %b %d %H:%M:%S %Y", "%D":"%m/%d/%y", "%F":"%Y-%m-%d", "%h":"%b", "%r":"%I:%M:%S %p", "%R":"%H:%M", "%T":"%H:%M:%S", "%x":"%m/%d/%y", "%X":"%H:%M:%S", "%Ec":"%c", "%EC":"%C", "%Ex":"%m/%d/%y", "%EX":"%H:%M:%S", "%Ey":"%y", "%EY":"%Y", "%Od":"%d", "%Oe":"%e", "%OH":"%H", "%OI":"%I", "%Om":"%m", "%OM":"%M", "%OS":"%S", "%Ou":"%u", "%OU":"%U", "%OV":"%V", "%Ow":"%w", "%OW":"%W", "%Oy":"%y",};
|
|
2232
2240
|
for (var t in n) {
|
|
2233
2241
|
c = c.replace(new RegExp(t, "g"), n[t]);
|
|
@@ -2238,18 +2246,18 @@ var sd = (a, b) => {
|
|
|
2238
2246
|
0 == l ? l = 12 : 12 < l && (l -= 12);
|
|
2239
2247
|
return f(l, 2);
|
|
2240
2248
|
}, "%j":l => {
|
|
2241
|
-
for (var u = 0, r = 0; r <= l.Fa - 1; u += (
|
|
2249
|
+
for (var u = 0, r = 0; r <= l.Fa - 1; u += (Rd(l.da + 1900) ? Yd : Zd)[r++]) {
|
|
2242
2250
|
}
|
|
2243
2251
|
return f(l.Ra + u, 3);
|
|
2244
2252
|
}, "%m":l => f(l.Fa + 1, 2), "%M":l => f(l.pc, 2), "%n":() => "\n", "%p":l => 0 <= l.Ea && 12 > l.Ea ? "AM" : "PM", "%S":l => f(l.qc, 2), "%t":() => "\t", "%u":l => l.S || 7, "%U":l => f(Math.floor((l.ca + 7 - l.S) / 7), 2), "%V":l => {
|
|
2245
2253
|
var u = Math.floor((l.ca + 7 - (l.S + 6) % 7) / 7);
|
|
2246
2254
|
2 >= (l.S + 371 - l.ca - 2) % 7 && u++;
|
|
2247
2255
|
if (u) {
|
|
2248
|
-
53 == u && (r = (l.S + 371 - l.ca) % 7, 4 == r || 3 == r &&
|
|
2256
|
+
53 == u && (r = (l.S + 371 - l.ca) % 7, 4 == r || 3 == r && Rd(l.da) || (u = 1));
|
|
2249
2257
|
} else {
|
|
2250
2258
|
u = 52;
|
|
2251
2259
|
var r = (l.S + 7 - l.ca - 1) % 7;
|
|
2252
|
-
(4 == r || 5 == r &&
|
|
2260
|
+
(4 == r || 5 == r && Rd(l.da % 400 - 1)) && u++;
|
|
2253
2261
|
}
|
|
2254
2262
|
return f(u, 2);
|
|
2255
2263
|
}, "%w":l => l.S, "%W":l => f(Math.floor((l.ca + 7 - (l.S + 6) % 7) / 7), 2), "%y":l => (l.da + 1900).toString().substring(2), "%Y":l => l.da + 1900, "%z":l => {
|
|
@@ -2263,7 +2271,7 @@ var sd = (a, b) => {
|
|
|
2263
2271
|
c.includes(t) && (c = c.replace(new RegExp(t, "g"), n[t](d)));
|
|
2264
2272
|
}
|
|
2265
2273
|
c = c.replace(/\0\0/g, "%");
|
|
2266
|
-
t =
|
|
2274
|
+
t = ub(c, !1);
|
|
2267
2275
|
if (t.length > b) {
|
|
2268
2276
|
return 0;
|
|
2269
2277
|
}
|
|
@@ -2271,39 +2279,39 @@ var sd = (a, b) => {
|
|
|
2271
2279
|
return t.length - 1;
|
|
2272
2280
|
};
|
|
2273
2281
|
[44].forEach(a => {
|
|
2274
|
-
|
|
2275
|
-
|
|
2282
|
+
Eb[a] = new N(a);
|
|
2283
|
+
Eb[a].stack = "<generic error, no stack>";
|
|
2276
2284
|
});
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2285
|
+
Lb = Array(4096);
|
|
2286
|
+
Zb(O, "/");
|
|
2287
|
+
fc("/tmp");
|
|
2288
|
+
fc("/home");
|
|
2289
|
+
fc("/home/web_user");
|
|
2282
2290
|
(function() {
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2291
|
+
fc("/dev");
|
|
2292
|
+
xb(259, {read:() => 0, write:(d, e, f, g) => g,});
|
|
2293
|
+
gc("/dev/null", 259);
|
|
2294
|
+
wb(1280, zb);
|
|
2295
|
+
wb(1536, Ab);
|
|
2296
|
+
gc("/dev/tty", 1280);
|
|
2297
|
+
gc("/dev/tty1", 1536);
|
|
2290
2298
|
var a = new Uint8Array(1024), b = 0, c = () => {
|
|
2291
2299
|
0 === b && (b = mb(a).byteLength);
|
|
2292
2300
|
return a[--b];
|
|
2293
2301
|
};
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2302
|
+
mc("random", c);
|
|
2303
|
+
mc("urandom", c);
|
|
2304
|
+
fc("/dev/shm");
|
|
2305
|
+
fc("/dev/shm/tmp");
|
|
2298
2306
|
})();
|
|
2299
2307
|
(function() {
|
|
2300
|
-
|
|
2301
|
-
var a =
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
var b =
|
|
2308
|
+
fc("/proc");
|
|
2309
|
+
var a = fc("/proc/self");
|
|
2310
|
+
fc("/proc/self/fd");
|
|
2311
|
+
Zb({V() {
|
|
2312
|
+
var b = Db(a, "fd", 16895, 73);
|
|
2305
2313
|
b.j = {ka(c, d) {
|
|
2306
|
-
var e =
|
|
2314
|
+
var e = Wb(+d);
|
|
2307
2315
|
c = {parent:null, V:{mb:"fake"}, j:{ma:() => e.path},};
|
|
2308
2316
|
return c.parent = c;
|
|
2309
2317
|
}};
|
|
@@ -2316,34 +2324,34 @@ P = m.BindingError = class extends Error {
|
|
|
2316
2324
|
this.name = "BindingError";
|
|
2317
2325
|
}
|
|
2318
2326
|
};
|
|
2319
|
-
|
|
2320
|
-
m.count_emval_handles = () =>
|
|
2321
|
-
|
|
2322
|
-
for (var
|
|
2323
|
-
|
|
2327
|
+
rc.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1,);
|
|
2328
|
+
m.count_emval_handles = () => rc.length / 2 - 5 - qc.length;
|
|
2329
|
+
vc = m.PureVirtualError = uc("PureVirtualError");
|
|
2330
|
+
for (var ae = Array(256), be = 0; 256 > be; ++be) {
|
|
2331
|
+
ae[be] = String.fromCharCode(be);
|
|
2324
2332
|
}
|
|
2325
|
-
|
|
2326
|
-
m.getInheritedInstanceCount = () => Object.keys(
|
|
2333
|
+
wc = ae;
|
|
2334
|
+
m.getInheritedInstanceCount = () => Object.keys(Ac).length;
|
|
2327
2335
|
m.getLiveInheritedInstances = () => {
|
|
2328
2336
|
var a = [], b;
|
|
2329
|
-
for (b in
|
|
2330
|
-
|
|
2337
|
+
for (b in Ac) {
|
|
2338
|
+
Ac.hasOwnProperty(b) && a.push(Ac[b]);
|
|
2331
2339
|
}
|
|
2332
2340
|
return a;
|
|
2333
2341
|
};
|
|
2334
|
-
m.flushPendingDeletes =
|
|
2342
|
+
m.flushPendingDeletes = yc;
|
|
2335
2343
|
m.setDelayFunction = a => {
|
|
2336
|
-
|
|
2337
|
-
|
|
2344
|
+
zc = a;
|
|
2345
|
+
xc.length && zc && zc(yc);
|
|
2338
2346
|
};
|
|
2339
|
-
|
|
2347
|
+
Mc = m.InternalError = class extends Error {
|
|
2340
2348
|
constructor(a) {
|
|
2341
2349
|
super(a);
|
|
2342
2350
|
this.name = "InternalError";
|
|
2343
2351
|
}
|
|
2344
2352
|
};
|
|
2345
|
-
Object.assign(
|
|
2346
|
-
if (!(this instanceof
|
|
2353
|
+
Object.assign(Xc.prototype, {isAliasOf:function(a) {
|
|
2354
|
+
if (!(this instanceof Xc && a instanceof Xc)) {
|
|
2347
2355
|
return !1;
|
|
2348
2356
|
}
|
|
2349
2357
|
var b = this.g.u.i, c = this.g.o;
|
|
@@ -2357,21 +2365,21 @@ Object.assign(Uc.prototype, {isAliasOf:function(a) {
|
|
|
2357
2365
|
}
|
|
2358
2366
|
return b === d && c === a;
|
|
2359
2367
|
}, clone:function() {
|
|
2360
|
-
this.g.o ||
|
|
2368
|
+
this.g.o || Wc(this);
|
|
2361
2369
|
if (this.g.ia) {
|
|
2362
2370
|
return this.g.count.value += 1, this;
|
|
2363
2371
|
}
|
|
2364
|
-
var a =
|
|
2372
|
+
var a = Nc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
|
|
2365
2373
|
a = a(c.call(b, d, {g:{value:{count:e.count, fa:e.fa, ia:e.ia, o:e.o, u:e.u, F:e.F, K:e.K,},}}));
|
|
2366
2374
|
a.g.count.value += 1;
|
|
2367
2375
|
a.g.fa = !1;
|
|
2368
2376
|
return a;
|
|
2369
2377
|
}, ["delete"]() {
|
|
2370
|
-
this.g.o ||
|
|
2378
|
+
this.g.o || Wc(this);
|
|
2371
2379
|
if (this.g.fa && !this.g.ia) {
|
|
2372
2380
|
throw new P("Object already scheduled for deletion");
|
|
2373
2381
|
}
|
|
2374
|
-
|
|
2382
|
+
Hc(this);
|
|
2375
2383
|
var a = this.g;
|
|
2376
2384
|
--a.count.value;
|
|
2377
2385
|
0 === a.count.value && (a.F ? a.K.P(a.F) : a.u.i.P(a.o));
|
|
@@ -2379,29 +2387,29 @@ Object.assign(Uc.prototype, {isAliasOf:function(a) {
|
|
|
2379
2387
|
}, isDeleted:function() {
|
|
2380
2388
|
return !this.g.o;
|
|
2381
2389
|
}, deleteLater:function() {
|
|
2382
|
-
this.g.o ||
|
|
2390
|
+
this.g.o || Wc(this);
|
|
2383
2391
|
if (this.g.fa && !this.g.ia) {
|
|
2384
2392
|
throw new P("Object already scheduled for deletion");
|
|
2385
2393
|
}
|
|
2386
|
-
|
|
2387
|
-
1 ===
|
|
2394
|
+
xc.push(this);
|
|
2395
|
+
1 === xc.length && zc && zc(yc);
|
|
2388
2396
|
this.g.fa = !0;
|
|
2389
2397
|
return this;
|
|
2390
2398
|
},});
|
|
2391
|
-
Object.assign(
|
|
2399
|
+
Object.assign(gd.prototype, {Sb(a) {
|
|
2392
2400
|
this.rb && (a = this.rb(a));
|
|
2393
2401
|
return a;
|
|
2394
2402
|
}, bb(a) {
|
|
2395
2403
|
this.P?.(a);
|
|
2396
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2404
|
+
}, argPackAdvance:8, readValueFromPointer:Rc, fromWireType:function(a) {
|
|
2397
2405
|
function b() {
|
|
2398
|
-
return this.ta ?
|
|
2406
|
+
return this.ta ? Oc(this.i.N, {u:this.ic, o:c, K:this, F:a,}) : Oc(this.i.N, {u:this, o:a,});
|
|
2399
2407
|
}
|
|
2400
2408
|
var c = this.Sb(a);
|
|
2401
2409
|
if (!c) {
|
|
2402
2410
|
return this.bb(a), null;
|
|
2403
2411
|
}
|
|
2404
|
-
var d =
|
|
2412
|
+
var d = Lc(this.i, c);
|
|
2405
2413
|
if (void 0 !== d) {
|
|
2406
2414
|
if (0 === d.g.count.value) {
|
|
2407
2415
|
return d.g.o = c, d.g.F = a, d.clone();
|
|
@@ -2411,29 +2419,29 @@ Object.assign(dd.prototype, {Sb(a) {
|
|
|
2411
2419
|
return d;
|
|
2412
2420
|
}
|
|
2413
2421
|
d = this.i.Rb(c);
|
|
2414
|
-
d =
|
|
2422
|
+
d = Kc[d];
|
|
2415
2423
|
if (!d) {
|
|
2416
2424
|
return b.call(this);
|
|
2417
2425
|
}
|
|
2418
2426
|
d = this.sa ? d.Ib : d.pointerType;
|
|
2419
|
-
var e =
|
|
2420
|
-
return null === e ? b.call(this) : this.ta ?
|
|
2427
|
+
var e = Jc(c, this.i, d.i);
|
|
2428
|
+
return null === e ? b.call(this) : this.ta ? Oc(d.i.N, {u:d, o:e, K:this, F:a,}) : Oc(d.i.N, {u:d, o:e,});
|
|
2421
2429
|
},});
|
|
2422
|
-
|
|
2423
|
-
var
|
|
2430
|
+
od = m.UnboundTypeError = uc("UnboundTypeError");
|
|
2431
|
+
var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
2424
2432
|
gb = c;
|
|
2425
2433
|
try {
|
|
2426
|
-
var d =
|
|
2434
|
+
var d = Wb(a);
|
|
2427
2435
|
switch(b) {
|
|
2428
2436
|
case 0:
|
|
2429
2437
|
var e = fb();
|
|
2430
2438
|
if (0 > e) {
|
|
2431
2439
|
break;
|
|
2432
2440
|
}
|
|
2433
|
-
for (;
|
|
2441
|
+
for (; Jb[e];) {
|
|
2434
2442
|
e++;
|
|
2435
2443
|
}
|
|
2436
|
-
return
|
|
2444
|
+
return Yb(d, e).X;
|
|
2437
2445
|
case 1:
|
|
2438
2446
|
case 2:
|
|
2439
2447
|
return 0;
|
|
@@ -2442,14 +2450,14 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2442
2450
|
case 4:
|
|
2443
2451
|
return e = fb(), d.flags |= e, 0;
|
|
2444
2452
|
case 12:
|
|
2445
|
-
return e = fb(),
|
|
2453
|
+
return e = fb(), Ea[e + 0 >> 1] = 2, 0;
|
|
2446
2454
|
case 13:
|
|
2447
2455
|
case 14:
|
|
2448
2456
|
return 0;
|
|
2449
2457
|
}
|
|
2450
2458
|
return -28;
|
|
2451
2459
|
} catch (f) {
|
|
2452
|
-
if ("undefined" == typeof
|
|
2460
|
+
if ("undefined" == typeof oc || "ErrnoError" !== f.name) {
|
|
2453
2461
|
throw f;
|
|
2454
2462
|
}
|
|
2455
2463
|
return -f.aa;
|
|
@@ -2457,7 +2465,7 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2457
2465
|
}, __syscall_ioctl:function(a, b, c) {
|
|
2458
2466
|
gb = c;
|
|
2459
2467
|
try {
|
|
2460
|
-
var d =
|
|
2468
|
+
var d = Wb(a);
|
|
2461
2469
|
switch(b) {
|
|
2462
2470
|
case 21509:
|
|
2463
2471
|
return d.s ? 0 : -59;
|
|
@@ -2468,10 +2476,10 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2468
2476
|
if (d.s.W.Yb) {
|
|
2469
2477
|
a = [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,];
|
|
2470
2478
|
var e = fb();
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2479
|
+
C[e >> 2] = 25856;
|
|
2480
|
+
C[e + 4 >> 2] = 5;
|
|
2481
|
+
C[e + 8 >> 2] = 191;
|
|
2482
|
+
C[e + 12 >> 2] = 35387;
|
|
2475
2483
|
for (var f = 0; 32 > f; f++) {
|
|
2476
2484
|
z[e + f + 17] = a[f] || 0;
|
|
2477
2485
|
}
|
|
@@ -2498,7 +2506,7 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2498
2506
|
return -59;
|
|
2499
2507
|
}
|
|
2500
2508
|
e = fb();
|
|
2501
|
-
return
|
|
2509
|
+
return C[e >> 2] = 0;
|
|
2502
2510
|
case 21520:
|
|
2503
2511
|
return d.s ? -28 : -59;
|
|
2504
2512
|
case 21531:
|
|
@@ -2511,7 +2519,7 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2511
2519
|
if (!d.s) {
|
|
2512
2520
|
return -59;
|
|
2513
2521
|
}
|
|
2514
|
-
d.s.W.$b && (f = [24, 80], e = fb(),
|
|
2522
|
+
d.s.W.$b && (f = [24, 80], e = fb(), Ea[e >> 1] = f[0], Ea[e + 2 >> 1] = f[1]);
|
|
2515
2523
|
return 0;
|
|
2516
2524
|
case 21524:
|
|
2517
2525
|
return d.s ? 0 : -59;
|
|
@@ -2521,7 +2529,7 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2521
2529
|
return -28;
|
|
2522
2530
|
}
|
|
2523
2531
|
} catch (g) {
|
|
2524
|
-
if ("undefined" == typeof
|
|
2532
|
+
if ("undefined" == typeof oc || "ErrnoError" !== g.name) {
|
|
2525
2533
|
throw g;
|
|
2526
2534
|
}
|
|
2527
2535
|
return -g.aa;
|
|
@@ -2529,36 +2537,36 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2529
2537
|
}, __syscall_openat:function(a, b, c, d) {
|
|
2530
2538
|
gb = d;
|
|
2531
2539
|
try {
|
|
2532
|
-
b = b ? pb(
|
|
2540
|
+
b = b ? pb(B, b) : "";
|
|
2533
2541
|
var e = b;
|
|
2534
2542
|
if ("/" === e.charAt(0)) {
|
|
2535
2543
|
b = e;
|
|
2536
2544
|
} else {
|
|
2537
|
-
var f = -100 === a ? "/" :
|
|
2545
|
+
var f = -100 === a ? "/" : Wb(a).path;
|
|
2538
2546
|
if (0 == e.length) {
|
|
2539
2547
|
throw new N(44);
|
|
2540
2548
|
}
|
|
2541
2549
|
b = ib(f + "/" + e);
|
|
2542
2550
|
}
|
|
2543
2551
|
var g = d ? fb() : 0;
|
|
2544
|
-
return
|
|
2552
|
+
return ic(b, c, g).X;
|
|
2545
2553
|
} catch (k) {
|
|
2546
|
-
if ("undefined" == typeof
|
|
2554
|
+
if ("undefined" == typeof oc || "ErrnoError" !== k.name) {
|
|
2547
2555
|
throw k;
|
|
2548
2556
|
}
|
|
2549
2557
|
return -k.aa;
|
|
2550
2558
|
}
|
|
2551
2559
|
}, _abort_js:() => {
|
|
2552
|
-
|
|
2560
|
+
Sa("");
|
|
2553
2561
|
}, _embind_create_inheriting_constructor:(a, b, c) => {
|
|
2554
2562
|
a = Q(a);
|
|
2555
|
-
b =
|
|
2556
|
-
c =
|
|
2563
|
+
b = Gc(b, "wrapper");
|
|
2564
|
+
c = sc(c);
|
|
2557
2565
|
var d = b.i, e = d.N, f = d.C.N, g = d.C.constructor;
|
|
2558
|
-
a =
|
|
2566
|
+
a = pc(a, function(...k) {
|
|
2559
2567
|
d.C.qb.forEach(function(p) {
|
|
2560
2568
|
if (this[p] === f[p]) {
|
|
2561
|
-
throw new
|
|
2569
|
+
throw new vc(`Pure virtual function ${p} must be implemented in JavaScript`);
|
|
2562
2570
|
}
|
|
2563
2571
|
}.bind(this));
|
|
2564
2572
|
Object.defineProperty(this, "__parent", {value:e});
|
|
@@ -2569,47 +2577,47 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2569
2577
|
throw new P("Pass correct 'this' to __construct");
|
|
2570
2578
|
}
|
|
2571
2579
|
k = g.implement(this, ...k);
|
|
2572
|
-
|
|
2580
|
+
Hc(k);
|
|
2573
2581
|
var p = k.g;
|
|
2574
2582
|
k.notifyOnDestruction();
|
|
2575
2583
|
p.ia = !0;
|
|
2576
2584
|
Object.defineProperties(this, {g:{value:p}});
|
|
2577
|
-
|
|
2585
|
+
Nc(this);
|
|
2578
2586
|
k = p.o;
|
|
2579
|
-
k =
|
|
2580
|
-
if (
|
|
2587
|
+
k = Bc(d, k);
|
|
2588
|
+
if (Ac.hasOwnProperty(k)) {
|
|
2581
2589
|
throw new P(`Tried to register registered instance: ${k}`);
|
|
2582
2590
|
}
|
|
2583
|
-
|
|
2591
|
+
Ac[k] = this;
|
|
2584
2592
|
};
|
|
2585
2593
|
e.__destruct = function() {
|
|
2586
2594
|
if (this === e) {
|
|
2587
2595
|
throw new P("Pass correct 'this' to __destruct");
|
|
2588
2596
|
}
|
|
2589
|
-
|
|
2597
|
+
Hc(this);
|
|
2590
2598
|
var k = this.g.o;
|
|
2591
|
-
k =
|
|
2592
|
-
if (
|
|
2593
|
-
delete
|
|
2599
|
+
k = Bc(d, k);
|
|
2600
|
+
if (Ac.hasOwnProperty(k)) {
|
|
2601
|
+
delete Ac[k];
|
|
2594
2602
|
} else {
|
|
2595
2603
|
throw new P(`Tried to unregister unregistered instance: ${k}`);
|
|
2596
2604
|
}
|
|
2597
2605
|
};
|
|
2598
2606
|
a.prototype = Object.create(e);
|
|
2599
2607
|
Object.assign(a.prototype, c);
|
|
2600
|
-
return
|
|
2608
|
+
return tc(a);
|
|
2601
2609
|
}, _embind_finalize_value_object:a => {
|
|
2602
|
-
var b =
|
|
2603
|
-
delete
|
|
2610
|
+
var b = Pc[a];
|
|
2611
|
+
delete Pc[a];
|
|
2604
2612
|
var c = b.Oa, d = b.P, e = b.fb, f = e.map(g => g.Vb).concat(e.map(g => g.lc));
|
|
2605
|
-
|
|
2613
|
+
S([a], f, g => {
|
|
2606
2614
|
var k = {};
|
|
2607
2615
|
e.forEach((p, n) => {
|
|
2608
2616
|
var t = g[n], x = p.Tb, y = p.Ub, l = g[n + e.length], u = p.kc, r = p.mc;
|
|
2609
|
-
k[p.Pb] = {read:
|
|
2617
|
+
k[p.Pb] = {read:D => t.fromWireType(x(y, D)), write:(D, I) => {
|
|
2610
2618
|
var w = [];
|
|
2611
|
-
u(r,
|
|
2612
|
-
|
|
2619
|
+
u(r, D, l.toWireType(w, I));
|
|
2620
|
+
Qc(w);
|
|
2613
2621
|
}};
|
|
2614
2622
|
});
|
|
2615
2623
|
return [{name:b.name, fromWireType:p => {
|
|
@@ -2631,80 +2639,80 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2631
2639
|
}
|
|
2632
2640
|
null !== p && p.push(d, x);
|
|
2633
2641
|
return x;
|
|
2634
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2642
|
+
}, argPackAdvance:8, readValueFromPointer:Rc, M:d,}];
|
|
2635
2643
|
});
|
|
2636
2644
|
}, _embind_register_bigint:() => {
|
|
2637
2645
|
}, _embind_register_bool:(a, b, c, d) => {
|
|
2638
2646
|
b = Q(b);
|
|
2639
|
-
|
|
2647
|
+
Uc(a, {name:b, fromWireType:function(e) {
|
|
2640
2648
|
return !!e;
|
|
2641
2649
|
}, toWireType:function(e, f) {
|
|
2642
2650
|
return f ? c : d;
|
|
2643
2651
|
}, argPackAdvance:8, readValueFromPointer:function(e) {
|
|
2644
|
-
return this.fromWireType(
|
|
2652
|
+
return this.fromWireType(B[e]);
|
|
2645
2653
|
}, M:null,});
|
|
2646
2654
|
}, _embind_register_class:(a, b, c, d, e, f, g, k, p, n, t, x, y) => {
|
|
2647
2655
|
t = Q(t);
|
|
2648
|
-
f =
|
|
2649
|
-
k &&=
|
|
2650
|
-
n &&=
|
|
2651
|
-
y =
|
|
2652
|
-
var l =
|
|
2653
|
-
|
|
2654
|
-
|
|
2656
|
+
f = U(e, f);
|
|
2657
|
+
k &&= U(g, k);
|
|
2658
|
+
n &&= U(p, n);
|
|
2659
|
+
y = U(x, y);
|
|
2660
|
+
var l = $c(t);
|
|
2661
|
+
Zc(l, function() {
|
|
2662
|
+
pd(`Cannot construct ${t} due to unbound types`, [d]);
|
|
2655
2663
|
});
|
|
2656
|
-
|
|
2664
|
+
S([a, b, c], d ? [d] : [], u => {
|
|
2657
2665
|
u = u[0];
|
|
2658
2666
|
if (d) {
|
|
2659
2667
|
var r = u.i;
|
|
2660
|
-
var
|
|
2668
|
+
var D = r.N;
|
|
2661
2669
|
} else {
|
|
2662
|
-
|
|
2670
|
+
D = Xc.prototype;
|
|
2663
2671
|
}
|
|
2664
|
-
u =
|
|
2665
|
-
if (Object.getPrototypeOf(this) !==
|
|
2672
|
+
u = pc(t, function(...R) {
|
|
2673
|
+
if (Object.getPrototypeOf(this) !== I) {
|
|
2666
2674
|
throw new P("Use 'new' to construct " + t);
|
|
2667
2675
|
}
|
|
2668
2676
|
if (void 0 === w.$) {
|
|
2669
2677
|
throw new P(t + " has no accessible constructor");
|
|
2670
2678
|
}
|
|
2671
|
-
var
|
|
2672
|
-
if (void 0 ===
|
|
2673
|
-
throw new P(`Tried to invoke ctor of ${t} with invalid number of parameters (${
|
|
2679
|
+
var V = w.$[R.length];
|
|
2680
|
+
if (void 0 === V) {
|
|
2681
|
+
throw new P(`Tried to invoke ctor of ${t} with invalid number of parameters (${R.length}) - expected (${Object.keys(w.$).toString()}) parameters instead!`);
|
|
2674
2682
|
}
|
|
2675
|
-
return
|
|
2683
|
+
return V.apply(this, R);
|
|
2676
2684
|
});
|
|
2677
|
-
var
|
|
2678
|
-
u.prototype =
|
|
2679
|
-
var w = new
|
|
2685
|
+
var I = Object.create(D, {constructor:{value:u},});
|
|
2686
|
+
u.prototype = I;
|
|
2687
|
+
var w = new ad(t, u, I, y, r, f, k, n);
|
|
2680
2688
|
if (w.C) {
|
|
2681
|
-
var
|
|
2682
|
-
(
|
|
2689
|
+
var L;
|
|
2690
|
+
(L = w.C).oa ?? (L.oa = []);
|
|
2683
2691
|
w.C.oa.push(w);
|
|
2684
2692
|
}
|
|
2685
|
-
r = new
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
return [r,
|
|
2693
|
+
r = new gd(t, w, !0, !1, !1);
|
|
2694
|
+
L = new gd(t + "*", w, !1, !1, !1);
|
|
2695
|
+
D = new gd(t + " const*", w, !1, !0, !1);
|
|
2696
|
+
Kc[a] = {pointerType:L, Ib:D};
|
|
2697
|
+
hd(l, u);
|
|
2698
|
+
return [r, L, D];
|
|
2691
2699
|
});
|
|
2692
2700
|
}, _embind_register_class_class_function:(a, b, c, d, e, f, g) => {
|
|
2693
|
-
var k =
|
|
2701
|
+
var k = vd(c, d);
|
|
2694
2702
|
b = Q(b);
|
|
2695
|
-
b =
|
|
2696
|
-
f =
|
|
2697
|
-
|
|
2703
|
+
b = wd(b);
|
|
2704
|
+
f = U(e, f);
|
|
2705
|
+
S([], [a], p => {
|
|
2698
2706
|
function n() {
|
|
2699
|
-
|
|
2707
|
+
pd(`Cannot call ${t} due to unbound types`, k);
|
|
2700
2708
|
}
|
|
2701
2709
|
p = p[0];
|
|
2702
2710
|
var t = `${p.name}.${b}`;
|
|
2703
2711
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2704
2712
|
var x = p.i.constructor;
|
|
2705
|
-
void 0 === x[b] ? (n.ea = c - 1, x[b] = n) : (
|
|
2706
|
-
|
|
2707
|
-
y =
|
|
2713
|
+
void 0 === x[b] ? (n.ea = c - 1, x[b] = n) : (Yc(x, b, t), x[b].A[c - 1] = n);
|
|
2714
|
+
S([], k, y => {
|
|
2715
|
+
y = ud(t, [y[0], null].concat(y.slice(1)), null, f, g);
|
|
2708
2716
|
void 0 === x[b].A ? (y.ea = c - 1, x[b] = y) : x[b].A[c - 1] = y;
|
|
2709
2717
|
if (p.i.oa) {
|
|
2710
2718
|
for (const l of p.i.oa) {
|
|
@@ -2717,27 +2725,27 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2717
2725
|
});
|
|
2718
2726
|
}, _embind_register_class_class_property:(a, b, c, d, e, f, g, k) => {
|
|
2719
2727
|
b = Q(b);
|
|
2720
|
-
f =
|
|
2721
|
-
|
|
2728
|
+
f = U(e, f);
|
|
2729
|
+
S([], [a], p => {
|
|
2722
2730
|
p = p[0];
|
|
2723
2731
|
var n = `${p.name}.${b}`, t = {get() {
|
|
2724
|
-
|
|
2732
|
+
pd(`Cannot access ${n} due to unbound types`, [c]);
|
|
2725
2733
|
}, enumerable:!0, configurable:!0};
|
|
2726
2734
|
t.set = k ? () => {
|
|
2727
|
-
|
|
2735
|
+
pd(`Cannot access ${n} due to unbound types`, [c]);
|
|
2728
2736
|
} : () => {
|
|
2729
2737
|
throw new P(`${n} is a read-only property`);
|
|
2730
2738
|
};
|
|
2731
2739
|
Object.defineProperty(p.i.constructor, b, t);
|
|
2732
|
-
|
|
2740
|
+
S([], [c], x => {
|
|
2733
2741
|
x = x[0];
|
|
2734
2742
|
var y = {get() {
|
|
2735
2743
|
return x.fromWireType(f(d));
|
|
2736
2744
|
}, enumerable:!0};
|
|
2737
|
-
k && (k =
|
|
2745
|
+
k && (k = U(g, k), y.set = l => {
|
|
2738
2746
|
var u = [];
|
|
2739
2747
|
k(d, x.toWireType(u, l));
|
|
2740
|
-
|
|
2748
|
+
Qc(u);
|
|
2741
2749
|
});
|
|
2742
2750
|
Object.defineProperty(p.i.constructor, b, y);
|
|
2743
2751
|
return [];
|
|
@@ -2745,9 +2753,9 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2745
2753
|
return [];
|
|
2746
2754
|
});
|
|
2747
2755
|
}, _embind_register_class_constructor:(a, b, c, d, e, f) => {
|
|
2748
|
-
var g =
|
|
2749
|
-
e =
|
|
2750
|
-
|
|
2756
|
+
var g = vd(b, c);
|
|
2757
|
+
e = U(d, e);
|
|
2758
|
+
S([], [a], k => {
|
|
2751
2759
|
k = k[0];
|
|
2752
2760
|
var p = `constructor ${k.name}`;
|
|
2753
2761
|
void 0 === k.i.$ && (k.i.$ = []);
|
|
@@ -2755,32 +2763,32 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2755
2763
|
throw new P(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${k.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
2756
2764
|
}
|
|
2757
2765
|
k.i.$[b - 1] = () => {
|
|
2758
|
-
|
|
2766
|
+
pd(`Cannot construct ${k.name} due to unbound types`, g);
|
|
2759
2767
|
};
|
|
2760
|
-
|
|
2768
|
+
S([], g, n => {
|
|
2761
2769
|
n.splice(1, 0, null);
|
|
2762
|
-
k.i.$[b - 1] =
|
|
2770
|
+
k.i.$[b - 1] = ud(p, n, null, e, f);
|
|
2763
2771
|
return [];
|
|
2764
2772
|
});
|
|
2765
2773
|
return [];
|
|
2766
2774
|
});
|
|
2767
2775
|
}, _embind_register_class_function:(a, b, c, d, e, f, g, k) => {
|
|
2768
|
-
var p =
|
|
2776
|
+
var p = vd(c, d);
|
|
2769
2777
|
b = Q(b);
|
|
2770
|
-
b =
|
|
2771
|
-
f =
|
|
2772
|
-
|
|
2778
|
+
b = wd(b);
|
|
2779
|
+
f = U(e, f);
|
|
2780
|
+
S([], [a], n => {
|
|
2773
2781
|
function t() {
|
|
2774
|
-
|
|
2782
|
+
pd(`Cannot call ${x} due to unbound types`, p);
|
|
2775
2783
|
}
|
|
2776
2784
|
n = n[0];
|
|
2777
2785
|
var x = `${n.name}.${b}`;
|
|
2778
2786
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2779
2787
|
k && n.i.qb.push(b);
|
|
2780
2788
|
var y = n.i.N, l = y[b];
|
|
2781
|
-
void 0 === l || void 0 === l.A && l.className !== n.name && l.ea === c - 2 ? (t.ea = c - 2, t.className = n.name, y[b] = t) : (
|
|
2782
|
-
|
|
2783
|
-
u =
|
|
2789
|
+
void 0 === l || void 0 === l.A && l.className !== n.name && l.ea === c - 2 ? (t.ea = c - 2, t.className = n.name, y[b] = t) : (Yc(y, b, x), y[b].A[c - 2] = t);
|
|
2790
|
+
S([], p, u => {
|
|
2791
|
+
u = ud(x, u, n, f, g);
|
|
2784
2792
|
void 0 === y[b].A ? (u.ea = c - 2, y[b] = u) : y[b].A[c - 2] = u;
|
|
2785
2793
|
return [];
|
|
2786
2794
|
});
|
|
@@ -2788,28 +2796,28 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2788
2796
|
});
|
|
2789
2797
|
}, _embind_register_class_property:(a, b, c, d, e, f, g, k, p, n) => {
|
|
2790
2798
|
b = Q(b);
|
|
2791
|
-
e =
|
|
2792
|
-
|
|
2799
|
+
e = U(d, e);
|
|
2800
|
+
S([], [a], t => {
|
|
2793
2801
|
t = t[0];
|
|
2794
2802
|
var x = `${t.name}.${b}`, y = {get() {
|
|
2795
|
-
|
|
2803
|
+
pd(`Cannot access ${x} due to unbound types`, [c, g]);
|
|
2796
2804
|
}, enumerable:!0, configurable:!0};
|
|
2797
|
-
y.set = p ? () =>
|
|
2805
|
+
y.set = p ? () => pd(`Cannot access ${x} due to unbound types`, [c, g]) : () => {
|
|
2798
2806
|
throw new P(x + " is a read-only property");
|
|
2799
2807
|
};
|
|
2800
2808
|
Object.defineProperty(t.i.N, b, y);
|
|
2801
|
-
|
|
2809
|
+
S([], p ? [c, g] : [c], l => {
|
|
2802
2810
|
var u = l[0], r = {get() {
|
|
2803
|
-
var
|
|
2804
|
-
return u.fromWireType(e(f,
|
|
2811
|
+
var I = xd(this, t, x + " getter");
|
|
2812
|
+
return u.fromWireType(e(f, I));
|
|
2805
2813
|
}, enumerable:!0};
|
|
2806
2814
|
if (p) {
|
|
2807
|
-
p =
|
|
2808
|
-
var
|
|
2809
|
-
r.set = function(
|
|
2810
|
-
var w =
|
|
2811
|
-
p(n, w,
|
|
2812
|
-
|
|
2815
|
+
p = U(k, p);
|
|
2816
|
+
var D = l[1];
|
|
2817
|
+
r.set = function(I) {
|
|
2818
|
+
var w = xd(this, t, x + " setter"), L = [];
|
|
2819
|
+
p(n, w, D.toWireType(L, I));
|
|
2820
|
+
Qc(L);
|
|
2813
2821
|
};
|
|
2814
2822
|
}
|
|
2815
2823
|
Object.defineProperty(t.i.N, b, r);
|
|
@@ -2817,36 +2825,36 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2817
2825
|
});
|
|
2818
2826
|
return [];
|
|
2819
2827
|
});
|
|
2820
|
-
}, _embind_register_emval:a =>
|
|
2828
|
+
}, _embind_register_emval:a => Uc(a, zd), _embind_register_enum:(a, b, c, d) => {
|
|
2821
2829
|
function e() {
|
|
2822
2830
|
}
|
|
2823
2831
|
b = Q(b);
|
|
2824
2832
|
e.values = {};
|
|
2825
|
-
|
|
2833
|
+
Uc(a, {name:b, constructor:e, fromWireType:function(f) {
|
|
2826
2834
|
return this.constructor.values[f];
|
|
2827
|
-
}, toWireType:(f, g) => g.value, argPackAdvance:8, readValueFromPointer:
|
|
2828
|
-
|
|
2835
|
+
}, toWireType:(f, g) => g.value, argPackAdvance:8, readValueFromPointer:Ad(b, c, d), M:null,});
|
|
2836
|
+
Zc(b, e);
|
|
2829
2837
|
}, _embind_register_enum_value:(a, b, c) => {
|
|
2830
|
-
var d =
|
|
2838
|
+
var d = Gc(a, "enum");
|
|
2831
2839
|
b = Q(b);
|
|
2832
2840
|
a = d.constructor;
|
|
2833
|
-
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:
|
|
2841
|
+
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:pc(`${d.name}_${b}`, function() {
|
|
2834
2842
|
})},});
|
|
2835
2843
|
a.values[c] = d;
|
|
2836
2844
|
a[b] = d;
|
|
2837
2845
|
}, _embind_register_float:(a, b, c) => {
|
|
2838
2846
|
b = Q(b);
|
|
2839
|
-
|
|
2847
|
+
Uc(a, {name:b, fromWireType:d => d, toWireType:(d, e) => e, argPackAdvance:8, readValueFromPointer:Bd(b, c), M:null,});
|
|
2840
2848
|
}, _embind_register_function:(a, b, c, d, e, f) => {
|
|
2841
|
-
var g =
|
|
2849
|
+
var g = vd(b, c);
|
|
2842
2850
|
a = Q(a);
|
|
2843
|
-
a =
|
|
2844
|
-
e =
|
|
2845
|
-
|
|
2846
|
-
|
|
2851
|
+
a = wd(a);
|
|
2852
|
+
e = U(d, e);
|
|
2853
|
+
Zc(a, function() {
|
|
2854
|
+
pd(`Cannot call ${a} due to unbound types`, g);
|
|
2847
2855
|
}, b - 1);
|
|
2848
|
-
|
|
2849
|
-
|
|
2856
|
+
S([], g, k => {
|
|
2857
|
+
hd(a, ud(a, [k[0], null].concat(k.slice(1)), null, e, f), b - 1);
|
|
2850
2858
|
return [];
|
|
2851
2859
|
});
|
|
2852
2860
|
}, _embind_register_integer:(a, b, c, d, e) => {
|
|
@@ -2862,24 +2870,24 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2862
2870
|
} : function(k, p) {
|
|
2863
2871
|
return p;
|
|
2864
2872
|
};
|
|
2865
|
-
|
|
2873
|
+
Uc(a, {name:b, fromWireType:e, toWireType:g, argPackAdvance:8, readValueFromPointer:Cd(b, c, 0 !== d), M:null,});
|
|
2866
2874
|
}, _embind_register_memory_view:(a, b, c) => {
|
|
2867
2875
|
function d(f) {
|
|
2868
|
-
return new e(z.buffer,
|
|
2876
|
+
return new e(z.buffer, F[f + 4 >> 2], F[f >> 2]);
|
|
2869
2877
|
}
|
|
2870
2878
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2871
2879
|
c = Q(c);
|
|
2872
|
-
|
|
2880
|
+
Uc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Wb:!0,});
|
|
2873
2881
|
}, _embind_register_std_string:(a, b) => {
|
|
2874
2882
|
b = Q(b);
|
|
2875
2883
|
var c = "std::string" === b;
|
|
2876
|
-
|
|
2877
|
-
var e =
|
|
2884
|
+
Uc(a, {name:b, fromWireType:function(d) {
|
|
2885
|
+
var e = F[d >> 2], f = d + 4;
|
|
2878
2886
|
if (c) {
|
|
2879
2887
|
for (var g = f, k = 0; k <= e; ++k) {
|
|
2880
2888
|
var p = f + k;
|
|
2881
|
-
if (k == e || 0 ==
|
|
2882
|
-
g = g ? pb(
|
|
2889
|
+
if (k == e || 0 == B[p]) {
|
|
2890
|
+
g = g ? pb(B, g, p - g) : "";
|
|
2883
2891
|
if (void 0 === n) {
|
|
2884
2892
|
var n = g;
|
|
2885
2893
|
} else {
|
|
@@ -2891,11 +2899,11 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2891
2899
|
} else {
|
|
2892
2900
|
n = Array(e);
|
|
2893
2901
|
for (k = 0; k < e; ++k) {
|
|
2894
|
-
n[k] = String.fromCharCode(
|
|
2902
|
+
n[k] = String.fromCharCode(B[f + k]);
|
|
2895
2903
|
}
|
|
2896
2904
|
n = n.join("");
|
|
2897
2905
|
}
|
|
2898
|
-
|
|
2906
|
+
Ec(d);
|
|
2899
2907
|
return n;
|
|
2900
2908
|
}, toWireType:function(d, e) {
|
|
2901
2909
|
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
@@ -2904,161 +2912,161 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2904
2912
|
throw new P("Cannot pass non-string to std::string");
|
|
2905
2913
|
}
|
|
2906
2914
|
var g = c && f ? rb(e) : e.length;
|
|
2907
|
-
var k =
|
|
2908
|
-
|
|
2915
|
+
var k = ce(4 + g + 1), p = k + 4;
|
|
2916
|
+
F[k >> 2] = g;
|
|
2909
2917
|
if (c && f) {
|
|
2910
|
-
|
|
2918
|
+
tb(e, B, p, g + 1);
|
|
2911
2919
|
} else {
|
|
2912
2920
|
if (f) {
|
|
2913
2921
|
for (f = 0; f < g; ++f) {
|
|
2914
2922
|
var n = e.charCodeAt(f);
|
|
2915
2923
|
if (255 < n) {
|
|
2916
|
-
throw
|
|
2924
|
+
throw Ec(p), new P("String has UTF-16 code units that do not fit in 8 bits");
|
|
2917
2925
|
}
|
|
2918
|
-
|
|
2926
|
+
B[p + f] = n;
|
|
2919
2927
|
}
|
|
2920
2928
|
} else {
|
|
2921
2929
|
for (f = 0; f < g; ++f) {
|
|
2922
|
-
|
|
2930
|
+
B[p + f] = e[f];
|
|
2923
2931
|
}
|
|
2924
2932
|
}
|
|
2925
2933
|
}
|
|
2926
|
-
null !== d && d.push(
|
|
2934
|
+
null !== d && d.push(Ec, k);
|
|
2927
2935
|
return k;
|
|
2928
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2929
|
-
|
|
2936
|
+
}, argPackAdvance:8, readValueFromPointer:Rc, M(d) {
|
|
2937
|
+
Ec(d);
|
|
2930
2938
|
},});
|
|
2931
2939
|
}, _embind_register_std_wstring:(a, b, c) => {
|
|
2932
2940
|
c = Q(c);
|
|
2933
2941
|
if (2 === b) {
|
|
2934
|
-
var d =
|
|
2935
|
-
var e =
|
|
2936
|
-
var f =
|
|
2937
|
-
var g = k =>
|
|
2942
|
+
var d = Ed;
|
|
2943
|
+
var e = Fd;
|
|
2944
|
+
var f = Gd;
|
|
2945
|
+
var g = k => Fa[k >> 1];
|
|
2938
2946
|
} else {
|
|
2939
|
-
4 === b && (d =
|
|
2947
|
+
4 === b && (d = Hd, e = Id, f = Jd, g = k => F[k >> 2]);
|
|
2940
2948
|
}
|
|
2941
|
-
|
|
2942
|
-
for (var p =
|
|
2949
|
+
Uc(a, {name:c, fromWireType:k => {
|
|
2950
|
+
for (var p = F[k >> 2], n, t = k + 4, x = 0; x <= p; ++x) {
|
|
2943
2951
|
var y = k + 4 + x * b;
|
|
2944
2952
|
if (x == p || 0 == g(y)) {
|
|
2945
2953
|
t = d(t, y - t), void 0 === n ? n = t : (n += String.fromCharCode(0), n += t), t = y + b;
|
|
2946
2954
|
}
|
|
2947
2955
|
}
|
|
2948
|
-
|
|
2956
|
+
Ec(k);
|
|
2949
2957
|
return n;
|
|
2950
2958
|
}, toWireType:(k, p) => {
|
|
2951
2959
|
if ("string" != typeof p) {
|
|
2952
2960
|
throw new P(`Cannot pass non-string to C++ string type ${c}`);
|
|
2953
2961
|
}
|
|
2954
|
-
var n = f(p), t =
|
|
2955
|
-
|
|
2962
|
+
var n = f(p), t = ce(4 + n + b);
|
|
2963
|
+
F[t >> 2] = n / b;
|
|
2956
2964
|
e(p, t + 4, n + b);
|
|
2957
|
-
null !== k && k.push(
|
|
2965
|
+
null !== k && k.push(Ec, t);
|
|
2958
2966
|
return t;
|
|
2959
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2960
|
-
|
|
2967
|
+
}, argPackAdvance:8, readValueFromPointer:Rc, M(k) {
|
|
2968
|
+
Ec(k);
|
|
2961
2969
|
}});
|
|
2962
2970
|
}, _embind_register_value_object:(a, b, c, d, e, f) => {
|
|
2963
|
-
|
|
2971
|
+
Pc[a] = {name:Q(b), Oa:U(c, d), P:U(e, f), fb:[],};
|
|
2964
2972
|
}, _embind_register_value_object_field:(a, b, c, d, e, f, g, k, p, n) => {
|
|
2965
|
-
|
|
2973
|
+
Pc[a].fb.push({Pb:Q(b), Vb:c, Tb:U(d, e), Ub:f, lc:g, kc:U(k, p), mc:n,});
|
|
2966
2974
|
}, _embind_register_void:(a, b) => {
|
|
2967
2975
|
b = Q(b);
|
|
2968
|
-
|
|
2976
|
+
Uc(a, {Jc:!0, name:b, argPackAdvance:0, fromWireType:() => {
|
|
2969
2977
|
}, toWireType:() => {
|
|
2970
2978
|
},});
|
|
2971
|
-
}, _emscripten_get_now_is_monotonic:() => 1, _emscripten_memcpy_js:(a, b, c) =>
|
|
2979
|
+
}, _emscripten_get_now_is_monotonic:() => 1, _emscripten_memcpy_js:(a, b, c) => B.copyWithin(a, b, b + c), _emscripten_throw_longjmp:() => {
|
|
2972
2980
|
throw Infinity;
|
|
2973
2981
|
}, _emval_as:(a, b, c) => {
|
|
2974
|
-
a =
|
|
2975
|
-
b =
|
|
2976
|
-
return
|
|
2982
|
+
a = sc(a);
|
|
2983
|
+
b = Gc(b, "emval::as");
|
|
2984
|
+
return Kd(b, c, a);
|
|
2977
2985
|
}, _emval_call_method:(a, b, c, d, e) => {
|
|
2978
|
-
a =
|
|
2979
|
-
b =
|
|
2980
|
-
c =
|
|
2986
|
+
a = Nd[a];
|
|
2987
|
+
b = sc(b);
|
|
2988
|
+
c = Md(c);
|
|
2981
2989
|
return a(b, b[c], d, e);
|
|
2982
|
-
}, _emval_decref:
|
|
2983
|
-
var d =
|
|
2990
|
+
}, _emval_decref:yd, _emval_get_method_caller:(a, b, c) => {
|
|
2991
|
+
var d = Pd(a, b), e = d.shift();
|
|
2984
2992
|
a--;
|
|
2985
2993
|
var f = Array(a);
|
|
2986
2994
|
b = `methodCaller<(${d.map(g => g.name).join(", ")}) => ${e.name}>`;
|
|
2987
|
-
return
|
|
2995
|
+
return Od(pc(b, (g, k, p, n) => {
|
|
2988
2996
|
for (var t = 0, x = 0; x < a; ++x) {
|
|
2989
2997
|
f[x] = d[x].readValueFromPointer(n + t), t += d[x].argPackAdvance;
|
|
2990
2998
|
}
|
|
2991
|
-
g = 1 === c ?
|
|
2992
|
-
return
|
|
2999
|
+
g = 1 === c ? Qd(k, f) : k.apply(g, f);
|
|
3000
|
+
return Kd(e, p, g);
|
|
2993
3001
|
}));
|
|
2994
3002
|
}, _emval_get_module_property:a => {
|
|
2995
|
-
a =
|
|
2996
|
-
return
|
|
3003
|
+
a = Md(a);
|
|
3004
|
+
return tc(m[a]);
|
|
2997
3005
|
}, _emval_get_property:(a, b) => {
|
|
2998
|
-
a =
|
|
2999
|
-
b =
|
|
3000
|
-
return
|
|
3006
|
+
a = sc(a);
|
|
3007
|
+
b = sc(b);
|
|
3008
|
+
return tc(a[b]);
|
|
3001
3009
|
}, _emval_incref:a => {
|
|
3002
|
-
9 < a && (
|
|
3003
|
-
}, _emval_new_array:() =>
|
|
3004
|
-
var b =
|
|
3005
|
-
|
|
3006
|
-
|
|
3010
|
+
9 < a && (rc[a + 1] += 1);
|
|
3011
|
+
}, _emval_new_array:() => tc([]), _emval_new_cstring:a => tc(Md(a)), _emval_new_object:() => tc({}), _emval_run_destructors:a => {
|
|
3012
|
+
var b = sc(a);
|
|
3013
|
+
Qc(b);
|
|
3014
|
+
yd(a);
|
|
3007
3015
|
}, _emval_set_property:(a, b, c) => {
|
|
3008
|
-
a =
|
|
3009
|
-
b =
|
|
3010
|
-
c =
|
|
3016
|
+
a = sc(a);
|
|
3017
|
+
b = sc(b);
|
|
3018
|
+
c = sc(c);
|
|
3011
3019
|
a[b] = c;
|
|
3012
3020
|
}, _emval_take_value:(a, b) => {
|
|
3013
|
-
a =
|
|
3021
|
+
a = Gc(a, "_emval_take_value");
|
|
3014
3022
|
a = a.readValueFromPointer(b);
|
|
3015
|
-
return
|
|
3023
|
+
return tc(a);
|
|
3016
3024
|
}, _gmtime_js:function(a, b, c) {
|
|
3017
3025
|
a = new Date(1000 * (b + 2097152 >>> 0 < 4194305 - !!a ? (a >>> 0) + 4294967296 * b : NaN));
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
+
C[c >> 2] = a.getUTCSeconds();
|
|
3027
|
+
C[c + 4 >> 2] = a.getUTCMinutes();
|
|
3028
|
+
C[c + 8 >> 2] = a.getUTCHours();
|
|
3029
|
+
C[c + 12 >> 2] = a.getUTCDate();
|
|
3030
|
+
C[c + 16 >> 2] = a.getUTCMonth();
|
|
3031
|
+
C[c + 20 >> 2] = a.getUTCFullYear() - 1900;
|
|
3032
|
+
C[c + 24 >> 2] = a.getUTCDay();
|
|
3033
|
+
C[c + 28 >> 2] = (a.getTime() - Date.UTC(a.getUTCFullYear(), 0, 1, 0, 0, 0, 0)) / 864E5 | 0;
|
|
3026
3034
|
}, _localtime_js:function(a, b, c) {
|
|
3027
3035
|
a = new Date(1000 * (b + 2097152 >>> 0 < 4194305 - !!a ? (a >>> 0) + 4294967296 * b : NaN));
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3036
|
+
C[c >> 2] = a.getSeconds();
|
|
3037
|
+
C[c + 4 >> 2] = a.getMinutes();
|
|
3038
|
+
C[c + 8 >> 2] = a.getHours();
|
|
3039
|
+
C[c + 12 >> 2] = a.getDate();
|
|
3040
|
+
C[c + 16 >> 2] = a.getMonth();
|
|
3041
|
+
C[c + 20 >> 2] = a.getFullYear() - 1900;
|
|
3042
|
+
C[c + 24 >> 2] = a.getDay();
|
|
3043
|
+
C[c + 28 >> 2] = (Rd(a.getFullYear()) ? Sd : Td)[a.getMonth()] + a.getDate() - 1 | 0;
|
|
3044
|
+
C[c + 36 >> 2] = -(60 * a.getTimezoneOffset());
|
|
3037
3045
|
b = (new Date(a.getFullYear(), 6, 1)).getTimezoneOffset();
|
|
3038
3046
|
var d = (new Date(a.getFullYear(), 0, 1)).getTimezoneOffset();
|
|
3039
|
-
|
|
3047
|
+
C[c + 32 >> 2] = (b != d && a.getTimezoneOffset() == Math.min(d, b)) | 0;
|
|
3040
3048
|
}, _tzset_js:(a, b, c, d) => {
|
|
3041
3049
|
var e = (new Date()).getFullYear(), f = new Date(e, 0, 1), g = new Date(e, 6, 1);
|
|
3042
3050
|
e = f.getTimezoneOffset();
|
|
3043
3051
|
var k = g.getTimezoneOffset();
|
|
3044
|
-
|
|
3045
|
-
|
|
3052
|
+
F[a >> 2] = 60 * Math.max(e, k);
|
|
3053
|
+
C[b >> 2] = Number(e != k);
|
|
3046
3054
|
a = p => p.toLocaleTimeString(void 0, {hour12:!1, timeZoneName:"short"}).split(" ")[1];
|
|
3047
3055
|
f = a(f);
|
|
3048
3056
|
g = a(g);
|
|
3049
|
-
k < e ? (
|
|
3057
|
+
k < e ? (tb(f, B, c, 17), tb(g, B, d, 17)) : (tb(f, B, d, 17), tb(g, B, c, 17));
|
|
3050
3058
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
3051
|
-
|
|
3052
|
-
for (var d; d =
|
|
3059
|
+
Ud.length = 0;
|
|
3060
|
+
for (var d; d = B[b++];) {
|
|
3053
3061
|
var e = 105 != d;
|
|
3054
3062
|
e &= 112 != d;
|
|
3055
3063
|
c += e && c % 8 ? 4 : 0;
|
|
3056
|
-
|
|
3064
|
+
Ud.push(112 == d ? F[c >> 2] : 105 == d ? C[c >> 2] : Ja[c >> 3]);
|
|
3057
3065
|
c += e ? 8 : 4;
|
|
3058
3066
|
}
|
|
3059
|
-
return db[a](...
|
|
3067
|
+
return db[a](...Ud);
|
|
3060
3068
|
}, emscripten_date_now:() => Date.now(), emscripten_get_now:() => performance.now(), emscripten_resize_heap:a => {
|
|
3061
|
-
var b =
|
|
3069
|
+
var b = B.length;
|
|
3062
3070
|
a >>>= 0;
|
|
3063
3071
|
if (2147483648 < a) {
|
|
3064
3072
|
return !1;
|
|
@@ -3069,10 +3077,10 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3069
3077
|
var e = Math;
|
|
3070
3078
|
d = Math.max(a, d);
|
|
3071
3079
|
a: {
|
|
3072
|
-
e = (e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) -
|
|
3080
|
+
e = (e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - Ca.buffer.byteLength + 65535) / 65536;
|
|
3073
3081
|
try {
|
|
3074
|
-
|
|
3075
|
-
|
|
3082
|
+
Ca.grow(e);
|
|
3083
|
+
Ka();
|
|
3076
3084
|
var f = 1;
|
|
3077
3085
|
break a;
|
|
3078
3086
|
} catch (g) {
|
|
@@ -3086,9 +3094,9 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3086
3094
|
return !1;
|
|
3087
3095
|
}, environ_get:(a, b) => {
|
|
3088
3096
|
var c = 0;
|
|
3089
|
-
|
|
3097
|
+
Xd().forEach((d, e) => {
|
|
3090
3098
|
var f = b + c;
|
|
3091
|
-
e =
|
|
3099
|
+
e = F[a + 4 * e >> 2] = f;
|
|
3092
3100
|
for (f = 0; f < d.length; ++f) {
|
|
3093
3101
|
z[e++] = d.charCodeAt(f);
|
|
3094
3102
|
}
|
|
@@ -3097,15 +3105,15 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3097
3105
|
});
|
|
3098
3106
|
return 0;
|
|
3099
3107
|
}, environ_sizes_get:(a, b) => {
|
|
3100
|
-
var c =
|
|
3101
|
-
|
|
3108
|
+
var c = Xd();
|
|
3109
|
+
F[a >> 2] = c.length;
|
|
3102
3110
|
var d = 0;
|
|
3103
3111
|
c.forEach(e => d += e.length + 1);
|
|
3104
|
-
|
|
3112
|
+
F[b >> 2] = d;
|
|
3105
3113
|
return 0;
|
|
3106
3114
|
}, fd_close:function(a) {
|
|
3107
3115
|
try {
|
|
3108
|
-
var b =
|
|
3116
|
+
var b = Wb(a);
|
|
3109
3117
|
if (null === b.X) {
|
|
3110
3118
|
throw new N(8);
|
|
3111
3119
|
}
|
|
@@ -3115,12 +3123,12 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3115
3123
|
} catch (c) {
|
|
3116
3124
|
throw c;
|
|
3117
3125
|
} finally {
|
|
3118
|
-
|
|
3126
|
+
Jb[b.X] = null;
|
|
3119
3127
|
}
|
|
3120
3128
|
b.X = null;
|
|
3121
3129
|
return 0;
|
|
3122
3130
|
} catch (c) {
|
|
3123
|
-
if ("undefined" == typeof
|
|
3131
|
+
if ("undefined" == typeof oc || "ErrnoError" !== c.name) {
|
|
3124
3132
|
throw c;
|
|
3125
3133
|
}
|
|
3126
3134
|
return c.aa;
|
|
@@ -3128,10 +3136,10 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3128
3136
|
}, fd_read:function(a, b, c, d) {
|
|
3129
3137
|
try {
|
|
3130
3138
|
a: {
|
|
3131
|
-
var e =
|
|
3139
|
+
var e = Wb(a);
|
|
3132
3140
|
a = b;
|
|
3133
3141
|
for (var f, g = b = 0; g < c; g++) {
|
|
3134
|
-
var k =
|
|
3142
|
+
var k = F[a >> 2], p = F[a + 4 >> 2];
|
|
3135
3143
|
a += 8;
|
|
3136
3144
|
var n = e, t = f, x = z;
|
|
3137
3145
|
if (0 > p || 0 > t) {
|
|
@@ -3170,13 +3178,13 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3170
3178
|
}
|
|
3171
3179
|
r = b;
|
|
3172
3180
|
}
|
|
3173
|
-
|
|
3181
|
+
F[d >> 2] = r;
|
|
3174
3182
|
return 0;
|
|
3175
|
-
} catch (
|
|
3176
|
-
if ("undefined" == typeof
|
|
3177
|
-
throw
|
|
3183
|
+
} catch (D) {
|
|
3184
|
+
if ("undefined" == typeof oc || "ErrnoError" !== D.name) {
|
|
3185
|
+
throw D;
|
|
3178
3186
|
}
|
|
3179
|
-
return
|
|
3187
|
+
return D.aa;
|
|
3180
3188
|
}
|
|
3181
3189
|
}, fd_seek:function(a, b, c, d, e) {
|
|
3182
3190
|
b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
|
|
@@ -3184,15 +3192,15 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3184
3192
|
if (isNaN(b)) {
|
|
3185
3193
|
return 61;
|
|
3186
3194
|
}
|
|
3187
|
-
var f =
|
|
3188
|
-
|
|
3195
|
+
var f = Wb(a);
|
|
3196
|
+
kc(f, b, d);
|
|
3189
3197
|
$a = [f.position >>> 0, (Za = f.position, 1.0 <= +Math.abs(Za) ? 0.0 < Za ? +Math.floor(Za / 4294967296.0) >>> 0 : ~~+Math.ceil((Za - +(~~Za >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
3190
|
-
|
|
3191
|
-
|
|
3198
|
+
C[e >> 2] = $a[0];
|
|
3199
|
+
C[e + 4 >> 2] = $a[1];
|
|
3192
3200
|
f.La && 0 === b && 0 === d && (f.La = null);
|
|
3193
3201
|
return 0;
|
|
3194
3202
|
} catch (g) {
|
|
3195
|
-
if ("undefined" == typeof
|
|
3203
|
+
if ("undefined" == typeof oc || "ErrnoError" !== g.name) {
|
|
3196
3204
|
throw g;
|
|
3197
3205
|
}
|
|
3198
3206
|
return g.aa;
|
|
@@ -3200,10 +3208,10 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3200
3208
|
}, fd_write:function(a, b, c, d) {
|
|
3201
3209
|
try {
|
|
3202
3210
|
a: {
|
|
3203
|
-
var e =
|
|
3211
|
+
var e = Wb(a);
|
|
3204
3212
|
a = b;
|
|
3205
3213
|
for (var f, g = b = 0; g < c; g++) {
|
|
3206
|
-
var k =
|
|
3214
|
+
var k = F[a >> 2], p = F[a + 4 >> 2];
|
|
3207
3215
|
a += 8;
|
|
3208
3216
|
var n = e, t = k, x = p, y = f, l = z;
|
|
3209
3217
|
if (0 > x || 0 > y) {
|
|
@@ -3221,7 +3229,7 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3221
3229
|
if (!n.m.write) {
|
|
3222
3230
|
throw new N(28);
|
|
3223
3231
|
}
|
|
3224
|
-
n.seekable && n.flags & 1024 &&
|
|
3232
|
+
n.seekable && n.flags & 1024 && kc(n, 0, 2);
|
|
3225
3233
|
var u = "undefined" != typeof y;
|
|
3226
3234
|
if (!u) {
|
|
3227
3235
|
y = n.position;
|
|
@@ -3230,89 +3238,89 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3230
3238
|
}
|
|
3231
3239
|
var r = n.m.write(n, l, t, x, y, void 0);
|
|
3232
3240
|
u || (n.position += r);
|
|
3233
|
-
var
|
|
3234
|
-
if (0 >
|
|
3235
|
-
var
|
|
3241
|
+
var D = r;
|
|
3242
|
+
if (0 > D) {
|
|
3243
|
+
var I = -1;
|
|
3236
3244
|
break a;
|
|
3237
3245
|
}
|
|
3238
|
-
b +=
|
|
3239
|
-
"undefined" != typeof f && (f +=
|
|
3246
|
+
b += D;
|
|
3247
|
+
"undefined" != typeof f && (f += D);
|
|
3240
3248
|
}
|
|
3241
|
-
|
|
3249
|
+
I = b;
|
|
3242
3250
|
}
|
|
3243
|
-
|
|
3251
|
+
F[d >> 2] = I;
|
|
3244
3252
|
return 0;
|
|
3245
3253
|
} catch (w) {
|
|
3246
|
-
if ("undefined" == typeof
|
|
3254
|
+
if ("undefined" == typeof oc || "ErrnoError" !== w.name) {
|
|
3247
3255
|
throw w;
|
|
3248
3256
|
}
|
|
3249
3257
|
return w.aa;
|
|
3250
3258
|
}
|
|
3251
|
-
}, invoke_vii:
|
|
3259
|
+
}, invoke_vii:de, isWindowsBrowser:function() {
|
|
3252
3260
|
return -1 < navigator.platform.indexOf("Win");
|
|
3253
|
-
}, strftime
|
|
3261
|
+
}, strftime:$d, strftime_l:(a, b, c, d) => $d(a, b, c, d)}, W = function() {
|
|
3254
3262
|
function a(c) {
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
m.monitorRunDependencies?.(
|
|
3262
|
-
0 ==
|
|
3263
|
-
return
|
|
3264
|
-
}
|
|
3265
|
-
var b = {env:
|
|
3266
|
-
|
|
3267
|
-
m.monitorRunDependencies?.(
|
|
3263
|
+
W = c.exports;
|
|
3264
|
+
Ca = W.memory;
|
|
3265
|
+
Ka();
|
|
3266
|
+
kd = W.__indirect_function_table;
|
|
3267
|
+
Ma.unshift(W.__wasm_call_ctors);
|
|
3268
|
+
Pa--;
|
|
3269
|
+
m.monitorRunDependencies?.(Pa);
|
|
3270
|
+
0 == Pa && (null !== Qa && (clearInterval(Qa), Qa = null), Ra && (c = Ra, Ra = null, c()));
|
|
3271
|
+
return W;
|
|
3272
|
+
}
|
|
3273
|
+
var b = {env:ee, wasi_snapshot_preview1:ee,};
|
|
3274
|
+
Pa++;
|
|
3275
|
+
m.monitorRunDependencies?.(Pa);
|
|
3268
3276
|
if (m.instantiateWasm) {
|
|
3269
3277
|
try {
|
|
3270
3278
|
return m.instantiateWasm(b, a);
|
|
3271
3279
|
} catch (c) {
|
|
3272
|
-
|
|
3280
|
+
Aa(`Module.instantiateWasm callback failed with error: ${c}`), ca(c);
|
|
3273
3281
|
}
|
|
3274
3282
|
}
|
|
3275
|
-
|
|
3276
|
-
|
|
3283
|
+
Ua ||= Ta("canvas_advanced.wasm") ? "canvas_advanced.wasm" : m.locateFile ? m.locateFile("canvas_advanced.wasm", ta) : ta + "canvas_advanced.wasm";
|
|
3284
|
+
Ya(b, function(c) {
|
|
3277
3285
|
a(c.instance);
|
|
3278
3286
|
}).catch(ca);
|
|
3279
3287
|
return {};
|
|
3280
|
-
}(),
|
|
3281
|
-
m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten =
|
|
3282
|
-
m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten =
|
|
3283
|
-
var bb = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (bb = m._ma_device_process_pcm_frames_capture__webaudio =
|
|
3284
|
-
m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji =
|
|
3285
|
-
m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji =
|
|
3286
|
-
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji =
|
|
3287
|
-
m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij =
|
|
3288
|
-
m.dynCall_jii = (a, b, c) => (m.dynCall_jii =
|
|
3289
|
-
m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii =
|
|
3290
|
-
m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij =
|
|
3291
|
-
m.dynCall_iiiiijj = (a, b, c, d, e, f, g, k, p) => (m.dynCall_iiiiijj =
|
|
3292
|
-
m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, p, n) => (m.dynCall_iiiiiijj =
|
|
3293
|
-
function
|
|
3294
|
-
var d =
|
|
3288
|
+
}(), Ec = a => (Ec = W.free)(a), ce = a => (ce = W.malloc)(a), Dc = a => (Dc = W.__getTypeName)(a), ab = m._ma_device__on_notification_unlocked = a => (ab = m._ma_device__on_notification_unlocked = W.ma_device__on_notification_unlocked)(a);
|
|
3289
|
+
m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = W.ma_malloc_emscripten)(a, b);
|
|
3290
|
+
m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = W.ma_free_emscripten)(a, b);
|
|
3291
|
+
var bb = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (bb = m._ma_device_process_pcm_frames_capture__webaudio = W.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), cb = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (cb = m._ma_device_process_pcm_frames_playback__webaudio = W.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), fe = (a, b) => (fe = W.setThrew)(a, b), ge = a => (ge = W._emscripten_stack_restore)(a), he = () => (he = W.emscripten_stack_get_current)();
|
|
3292
|
+
m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = W.dynCall_iiji)(a, b, c, d, e);
|
|
3293
|
+
m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = W.dynCall_jiji)(a, b, c, d, e);
|
|
3294
|
+
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = W.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3295
|
+
m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = W.dynCall_iij)(a, b, c, d);
|
|
3296
|
+
m.dynCall_jii = (a, b, c) => (m.dynCall_jii = W.dynCall_jii)(a, b, c);
|
|
3297
|
+
m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = W.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3298
|
+
m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = W.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3299
|
+
m.dynCall_iiiiijj = (a, b, c, d, e, f, g, k, p) => (m.dynCall_iiiiijj = W.dynCall_iiiiijj)(a, b, c, d, e, f, g, k, p);
|
|
3300
|
+
m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, p, n) => (m.dynCall_iiiiiijj = W.dynCall_iiiiiijj)(a, b, c, d, e, f, g, k, p, n);
|
|
3301
|
+
function de(a, b, c) {
|
|
3302
|
+
var d = he();
|
|
3295
3303
|
try {
|
|
3296
|
-
|
|
3304
|
+
ld(a)(b, c);
|
|
3297
3305
|
} catch (e) {
|
|
3298
|
-
|
|
3306
|
+
ge(d);
|
|
3299
3307
|
if (e !== e + 0) {
|
|
3300
3308
|
throw e;
|
|
3301
3309
|
}
|
|
3302
|
-
|
|
3310
|
+
fe(1, 0);
|
|
3303
3311
|
}
|
|
3304
3312
|
}
|
|
3305
|
-
var
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3313
|
+
var ie;
|
|
3314
|
+
Ra = function je() {
|
|
3315
|
+
ie || ke();
|
|
3316
|
+
ie || (Ra = je);
|
|
3309
3317
|
};
|
|
3310
|
-
function
|
|
3318
|
+
function ke() {
|
|
3311
3319
|
function a() {
|
|
3312
|
-
if (!
|
|
3313
|
-
m.noFSInit ||
|
|
3314
|
-
|
|
3315
|
-
eb(
|
|
3320
|
+
if (!ie && (ie = !0, m.calledRun = !0, !Da)) {
|
|
3321
|
+
m.noFSInit || lc || (lc = !0, m.stdin = m.stdin, m.stdout = m.stdout, m.stderr = m.stderr, m.stdin ? mc("stdin", m.stdin) : hc("/dev/tty", "/dev/stdin"), m.stdout ? mc("stdout", null, m.stdout) : hc("/dev/tty", "/dev/stdout"), m.stderr ? mc("stderr", null, m.stderr) : hc("/dev/tty1", "/dev/stderr"), ic("/dev/stdin", 0), ic("/dev/stdout", 1), ic("/dev/stderr", 1));
|
|
3322
|
+
Mb = !1;
|
|
3323
|
+
eb(Ma);
|
|
3316
3324
|
ba(m);
|
|
3317
3325
|
if (m.onRuntimeInitialized) {
|
|
3318
3326
|
m.onRuntimeInitialized();
|
|
@@ -3320,20 +3328,20 @@ function he() {
|
|
|
3320
3328
|
if (m.postRun) {
|
|
3321
3329
|
for ("function" == typeof m.postRun && (m.postRun = [m.postRun]); m.postRun.length;) {
|
|
3322
3330
|
var b = m.postRun.shift();
|
|
3323
|
-
|
|
3331
|
+
Na.unshift(b);
|
|
3324
3332
|
}
|
|
3325
3333
|
}
|
|
3326
|
-
eb(
|
|
3334
|
+
eb(Na);
|
|
3327
3335
|
}
|
|
3328
3336
|
}
|
|
3329
|
-
if (!(0 <
|
|
3337
|
+
if (!(0 < Pa)) {
|
|
3330
3338
|
if (m.preRun) {
|
|
3331
3339
|
for ("function" == typeof m.preRun && (m.preRun = [m.preRun]); m.preRun.length;) {
|
|
3332
|
-
|
|
3340
|
+
Oa();
|
|
3333
3341
|
}
|
|
3334
3342
|
}
|
|
3335
|
-
eb(
|
|
3336
|
-
0 <
|
|
3343
|
+
eb(La);
|
|
3344
|
+
0 < Pa || (m.setStatus ? (m.setStatus("Running..."), setTimeout(function() {
|
|
3337
3345
|
setTimeout(function() {
|
|
3338
3346
|
m.setStatus("");
|
|
3339
3347
|
}, 1);
|
|
@@ -3346,7 +3354,7 @@ if (m.preInit) {
|
|
|
3346
3354
|
m.preInit.pop()();
|
|
3347
3355
|
}
|
|
3348
3356
|
}
|
|
3349
|
-
|
|
3357
|
+
ke();
|
|
3350
3358
|
moduleRtn = da;
|
|
3351
3359
|
|
|
3352
3360
|
|