@rive-app/canvas 2.35.3 → 2.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rive.d.ts +41 -1
- package/rive.js +1001 -861
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +14 -9
- package/rive_fallback.wasm +0 -0
package/rive.js
CHANGED
|
@@ -31,7 +31,7 @@ var m = moduleArg, ba, ca, da = new Promise((a, b) => {
|
|
|
31
31
|
ba = a;
|
|
32
32
|
ca = b;
|
|
33
33
|
}), ea = "object" == typeof window, fa = "function" == typeof importScripts;
|
|
34
|
-
function
|
|
34
|
+
function ia() {
|
|
35
35
|
function a(g) {
|
|
36
36
|
const k = d;
|
|
37
37
|
c = b = 0;
|
|
@@ -77,7 +77,7 @@ function ha() {
|
|
|
77
77
|
this.ob = function() {
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function ja(a) {
|
|
81
81
|
console.assert(!0);
|
|
82
82
|
const b = new Map();
|
|
83
83
|
let c = -Infinity;
|
|
@@ -92,9 +92,9 @@ function ia(a) {
|
|
|
92
92
|
return c << a;
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
const
|
|
95
|
+
const ka = m.onRuntimeInitialized;
|
|
96
96
|
m.onRuntimeInitialized = function() {
|
|
97
|
-
|
|
97
|
+
ka && ka();
|
|
98
98
|
let a = m.decodeAudio;
|
|
99
99
|
m.decodeAudio = function(e, f) {
|
|
100
100
|
e = a(e);
|
|
@@ -156,7 +156,7 @@ m.onRuntimeInitialized = function() {
|
|
|
156
156
|
return d.call(this, e, f, g, k, p);
|
|
157
157
|
};
|
|
158
158
|
};
|
|
159
|
-
const
|
|
159
|
+
const la = "createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "), ma = new function() {
|
|
160
160
|
function a() {
|
|
161
161
|
if (!b) {
|
|
162
162
|
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,};
|
|
@@ -176,38 +176,38 @@ const ka = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
r = new Proxy(r, {get(
|
|
180
|
-
if (
|
|
181
|
-
if (p || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", w), p = !0), "function" === typeof
|
|
179
|
+
r = new Proxy(r, {get(I, w) {
|
|
180
|
+
if (I.isContextLost()) {
|
|
181
|
+
if (p || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", w), p = !0), "function" === typeof I[w]) {
|
|
182
182
|
return function() {
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
185
|
} else {
|
|
186
|
-
return "function" === typeof
|
|
187
|
-
return
|
|
188
|
-
} :
|
|
186
|
+
return "function" === typeof I[w] ? function(...L) {
|
|
187
|
+
return I[w].apply(I, L);
|
|
188
|
+
} : I[w];
|
|
189
189
|
}
|
|
190
|
-
}, set(
|
|
191
|
-
if (
|
|
190
|
+
}, set(I, w, L) {
|
|
191
|
+
if (I.isContextLost()) {
|
|
192
192
|
p || (console.error("Cannot render the mesh because the GL Context was lost. Tried to set property " + w), p = !0);
|
|
193
193
|
} else {
|
|
194
|
-
return
|
|
194
|
+
return I[w] = L, !0;
|
|
195
195
|
}
|
|
196
196
|
},});
|
|
197
197
|
d = Math.min(r.getParameter(r.MAX_RENDERBUFFER_SIZE), r.getParameter(r.MAX_TEXTURE_SIZE));
|
|
198
|
-
function
|
|
198
|
+
function D(I, w, L) {
|
|
199
199
|
w = r.createShader(w);
|
|
200
|
-
r.shaderSource(w,
|
|
200
|
+
r.shaderSource(w, L);
|
|
201
201
|
r.compileShader(w);
|
|
202
|
-
|
|
203
|
-
if (0 < (
|
|
204
|
-
throw
|
|
202
|
+
L = r.getShaderInfoLog(w);
|
|
203
|
+
if (0 < (L || "").length) {
|
|
204
|
+
throw L;
|
|
205
205
|
}
|
|
206
|
-
r.attachShader(
|
|
206
|
+
r.attachShader(I, w);
|
|
207
207
|
}
|
|
208
208
|
l = r.createProgram();
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
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 }");
|
|
210
|
+
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 }");
|
|
211
211
|
r.bindAttribLocation(l, 0, "vertex");
|
|
212
212
|
r.bindAttribLocation(l, 1, "uv");
|
|
213
213
|
r.linkProgram(l);
|
|
@@ -253,63 +253,63 @@ const ka = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
253
253
|
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);
|
|
254
254
|
return u;
|
|
255
255
|
};
|
|
256
|
-
const n = new
|
|
257
|
-
this.Nb = function(l, u, r,
|
|
256
|
+
const n = new ja(8), t = new ja(8), x = new ja(10), y = new ja(10);
|
|
257
|
+
this.Nb = function(l, u, r, D, I) {
|
|
258
258
|
if (a()) {
|
|
259
|
-
var w = n.push(l),
|
|
259
|
+
var w = n.push(l), L = t.push(u);
|
|
260
260
|
if (b.canvas) {
|
|
261
|
-
if (b.canvas.width != w || b.canvas.height !=
|
|
262
|
-
b.canvas.width = w, b.canvas.height =
|
|
261
|
+
if (b.canvas.width != w || b.canvas.height != L) {
|
|
262
|
+
b.canvas.width = w, b.canvas.height = L;
|
|
263
263
|
}
|
|
264
|
-
b.viewport(0,
|
|
264
|
+
b.viewport(0, L - u, l, u);
|
|
265
265
|
b.disable(b.SCISSOR_TEST);
|
|
266
266
|
b.clearColor(0, 0, 0, 0);
|
|
267
267
|
b.clear(b.COLOR_BUFFER_BIT);
|
|
268
268
|
b.enable(b.SCISSOR_TEST);
|
|
269
|
-
r.sort((
|
|
270
|
-
w = x.push(
|
|
269
|
+
r.sort((K, Z) => Z.vb - K.vb);
|
|
270
|
+
w = x.push(D);
|
|
271
271
|
g != w && (b.bufferData(b.ARRAY_BUFFER, 8 * w, b.DYNAMIC_DRAW), g = w);
|
|
272
272
|
w = 0;
|
|
273
|
-
for (var
|
|
274
|
-
b.bufferSubData(b.ARRAY_BUFFER, w,
|
|
273
|
+
for (var R of r) {
|
|
274
|
+
b.bufferSubData(b.ARRAY_BUFFER, w, R.Ta), w += 4 * R.Ta.length;
|
|
275
275
|
}
|
|
276
|
-
console.assert(w == 4 *
|
|
277
|
-
for (var
|
|
278
|
-
b.bufferSubData(b.ARRAY_BUFFER, w,
|
|
276
|
+
console.assert(w == 4 * D);
|
|
277
|
+
for (var V of r) {
|
|
278
|
+
b.bufferSubData(b.ARRAY_BUFFER, w, V.Bb), w += 4 * V.Bb.length;
|
|
279
279
|
}
|
|
280
|
-
console.assert(w == 8 *
|
|
281
|
-
w = y.push(
|
|
280
|
+
console.assert(w == 8 * D);
|
|
281
|
+
w = y.push(I);
|
|
282
282
|
k != w && (b.bufferData(b.ELEMENT_ARRAY_BUFFER, 2 * w, b.DYNAMIC_DRAW), k = w);
|
|
283
|
-
|
|
284
|
-
for (var
|
|
285
|
-
b.bufferSubData(b.ELEMENT_ARRAY_BUFFER,
|
|
286
|
-
}
|
|
287
|
-
console.assert(
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
w =
|
|
291
|
-
for (const
|
|
292
|
-
|
|
293
|
-
|
|
283
|
+
R = 0;
|
|
284
|
+
for (var qa of r) {
|
|
285
|
+
b.bufferSubData(b.ELEMENT_ARRAY_BUFFER, R, qa.indices), R += 2 * qa.indices.length;
|
|
286
|
+
}
|
|
287
|
+
console.assert(R == 2 * I);
|
|
288
|
+
qa = 0;
|
|
289
|
+
V = !0;
|
|
290
|
+
w = R = 0;
|
|
291
|
+
for (const K of r) {
|
|
292
|
+
K.image.Ja != qa && (b.bindTexture(b.TEXTURE_2D, K.image.Ia || null), qa = K.image.Ja);
|
|
293
|
+
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);
|
|
294
294
|
r = 2 / l;
|
|
295
295
|
const Z = -2 / u;
|
|
296
|
-
b.uniform4f(e,
|
|
297
|
-
b.uniform2f(f,
|
|
296
|
+
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);
|
|
297
|
+
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);
|
|
298
298
|
b.vertexAttribPointer(0, 2, b.FLOAT, !1, 0, w);
|
|
299
|
-
b.vertexAttribPointer(1, 2, b.FLOAT, !1, 0, w + 4 *
|
|
300
|
-
b.drawElements(b.TRIANGLES,
|
|
301
|
-
w += 4 *
|
|
302
|
-
|
|
299
|
+
b.vertexAttribPointer(1, 2, b.FLOAT, !1, 0, w + 4 * D);
|
|
300
|
+
b.drawElements(b.TRIANGLES, K.indices.length, b.UNSIGNED_SHORT, R);
|
|
301
|
+
w += 4 * K.Ta.length;
|
|
302
|
+
R += 2 * K.indices.length;
|
|
303
303
|
}
|
|
304
|
-
console.assert(w == 4 *
|
|
305
|
-
console.assert(
|
|
304
|
+
console.assert(w == 4 * D);
|
|
305
|
+
console.assert(R == 2 * I);
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
309
|
this.canvas = function() {
|
|
310
310
|
return a() && b.canvas;
|
|
311
311
|
};
|
|
312
|
-
}(),
|
|
312
|
+
}(), na = m.onRuntimeInitialized;
|
|
313
313
|
m.onRuntimeInitialized = function() {
|
|
314
314
|
function a(q) {
|
|
315
315
|
switch(q) {
|
|
@@ -351,16 +351,16 @@ m.onRuntimeInitialized = function() {
|
|
|
351
351
|
return "rgba(" + ((16711680 & q) >>> 16) + "," + ((65280 & q) >>> 8) + "," + ((255 & q) >>> 0) + "," + ((4278190080 & q) >>> 24) / 255 + ")";
|
|
352
352
|
}
|
|
353
353
|
function c() {
|
|
354
|
-
0 <
|
|
355
|
-
for (const q of
|
|
354
|
+
0 < L.length && (ma.Nb(w.drawWidth(), w.drawHeight(), L, R, V), L = [], V = R = 0, w.reset(512, 512));
|
|
355
|
+
for (const q of I) {
|
|
356
356
|
for (const v of q.I) {
|
|
357
357
|
v();
|
|
358
358
|
}
|
|
359
359
|
q.I = [];
|
|
360
360
|
}
|
|
361
|
-
|
|
361
|
+
I.clear();
|
|
362
362
|
}
|
|
363
|
-
|
|
363
|
+
na && na();
|
|
364
364
|
var d = m.RenderPaintStyle;
|
|
365
365
|
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;
|
|
366
366
|
let l = 1;
|
|
@@ -371,47 +371,47 @@ m.onRuntimeInitialized = function() {
|
|
|
371
371
|
this.la = q;
|
|
372
372
|
this.wa = v;
|
|
373
373
|
}, __destruct:function() {
|
|
374
|
-
this.Ia && (
|
|
374
|
+
this.Ia && (ma.Kb(this.Ia), URL.revokeObjectURL(this.Wa));
|
|
375
375
|
this.__parent.__destruct.call(this);
|
|
376
376
|
}, decode:function(q) {
|
|
377
377
|
var v = this;
|
|
378
378
|
v.wa && v.wa(v);
|
|
379
|
-
var
|
|
379
|
+
var J = new Image();
|
|
380
380
|
v.Wa = URL.createObjectURL(new Blob([q], {type:"image/png",}));
|
|
381
|
-
|
|
382
|
-
v.Db =
|
|
383
|
-
v.Ia =
|
|
384
|
-
v.size(
|
|
381
|
+
J.onload = function() {
|
|
382
|
+
v.Db = J;
|
|
383
|
+
v.Ia = ma.Jb(J);
|
|
384
|
+
v.size(J.width, J.height);
|
|
385
385
|
v.la && v.la(v);
|
|
386
386
|
};
|
|
387
|
-
|
|
387
|
+
J.src = v.Wa;
|
|
388
388
|
},}), r = e.extend("CanvasRenderPath", {__construct:function() {
|
|
389
389
|
this.__parent.__construct.call(this);
|
|
390
390
|
this.U = new Path2D();
|
|
391
391
|
}, rewind:function() {
|
|
392
392
|
this.U = new Path2D();
|
|
393
|
-
}, addPath:function(q, v,
|
|
394
|
-
var
|
|
393
|
+
}, addPath:function(q, v, J, G, A, H, E) {
|
|
394
|
+
var M = this.U, ya = M.addPath;
|
|
395
395
|
q = q.U;
|
|
396
|
-
const
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
396
|
+
const T = new DOMMatrix();
|
|
397
|
+
T.a = v;
|
|
398
|
+
T.b = J;
|
|
399
|
+
T.c = G;
|
|
400
|
+
T.d = A;
|
|
401
|
+
T.e = H;
|
|
402
|
+
T.f = E;
|
|
403
|
+
ya.call(M, q, T);
|
|
404
404
|
}, fillRule:function(q) {
|
|
405
405
|
this.Va = q;
|
|
406
406
|
}, moveTo:function(q, v) {
|
|
407
407
|
this.U.moveTo(q, v);
|
|
408
408
|
}, lineTo:function(q, v) {
|
|
409
409
|
this.U.lineTo(q, v);
|
|
410
|
-
}, cubicTo:function(q, v,
|
|
411
|
-
this.U.bezierCurveTo(q, v,
|
|
410
|
+
}, cubicTo:function(q, v, J, G, A, H) {
|
|
411
|
+
this.U.bezierCurveTo(q, v, J, G, A, H);
|
|
412
412
|
}, close:function() {
|
|
413
413
|
this.U.closePath();
|
|
414
|
-
},}),
|
|
414
|
+
},}), D = f.extend("CanvasRenderPaint", {color:function(q) {
|
|
415
415
|
this.Xa = b(q);
|
|
416
416
|
}, thickness:function(q) {
|
|
417
417
|
this.Gb = q;
|
|
@@ -443,48 +443,48 @@ m.onRuntimeInitialized = function() {
|
|
|
443
443
|
this.Cb = a(q);
|
|
444
444
|
}, clearGradient:function() {
|
|
445
445
|
this.ja = null;
|
|
446
|
-
}, linearGradient:function(q, v,
|
|
447
|
-
this.ja = {xb:q, yb:v, cb:
|
|
448
|
-
}, radialGradient:function(q, v,
|
|
449
|
-
this.ja = {xb:q, yb:v, cb:
|
|
446
|
+
}, linearGradient:function(q, v, J, G) {
|
|
447
|
+
this.ja = {xb:q, yb:v, cb:J, eb:G, Qa:[],};
|
|
448
|
+
}, radialGradient:function(q, v, J, G) {
|
|
449
|
+
this.ja = {xb:q, yb:v, cb:J, eb:G, Qa:[], ac:!0,};
|
|
450
450
|
}, addStop:function(q, v) {
|
|
451
451
|
this.ja.Qa.push({color:q, stop:v,});
|
|
452
452
|
}, completeGradient:function() {
|
|
453
|
-
}, draw:function(q, v,
|
|
454
|
-
let
|
|
455
|
-
var
|
|
456
|
-
const
|
|
453
|
+
}, draw:function(q, v, J, G) {
|
|
454
|
+
let A = this.Fb;
|
|
455
|
+
var H = this.Xa, E = this.ja;
|
|
456
|
+
const M = q.globalCompositeOperation, ya = q.globalAlpha;
|
|
457
457
|
q.globalCompositeOperation = this.Cb;
|
|
458
|
-
q.globalAlpha =
|
|
459
|
-
if (null !=
|
|
460
|
-
|
|
461
|
-
const X =
|
|
462
|
-
var
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
for (let
|
|
466
|
-
|
|
458
|
+
q.globalAlpha = G;
|
|
459
|
+
if (null != E) {
|
|
460
|
+
H = E.xb;
|
|
461
|
+
const X = E.yb, ha = E.cb;
|
|
462
|
+
var T = E.eb;
|
|
463
|
+
G = E.Qa;
|
|
464
|
+
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);
|
|
465
|
+
for (let Y = 0, aa = G.length; Y < aa; Y++) {
|
|
466
|
+
E = G[Y], H.addColorStop(E.stop, b(E.color));
|
|
467
467
|
}
|
|
468
|
-
this.Xa =
|
|
468
|
+
this.Xa = H;
|
|
469
469
|
this.ja = null;
|
|
470
470
|
}
|
|
471
|
-
switch(
|
|
471
|
+
switch(A) {
|
|
472
472
|
case x:
|
|
473
|
-
q.strokeStyle =
|
|
473
|
+
q.strokeStyle = H;
|
|
474
474
|
q.lineWidth = this.Gb;
|
|
475
475
|
q.lineCap = this.Ga;
|
|
476
476
|
q.lineJoin = this.Ha;
|
|
477
477
|
q.stroke(v);
|
|
478
478
|
break;
|
|
479
479
|
case t:
|
|
480
|
-
q.fillStyle =
|
|
480
|
+
q.fillStyle = H, q.fill(v, J);
|
|
481
481
|
}
|
|
482
|
-
q.globalCompositeOperation =
|
|
483
|
-
q.globalAlpha =
|
|
482
|
+
q.globalCompositeOperation = M;
|
|
483
|
+
q.globalAlpha = ya;
|
|
484
484
|
},});
|
|
485
|
-
const
|
|
486
|
-
let w = null,
|
|
487
|
-
var
|
|
485
|
+
const I = new Set();
|
|
486
|
+
let w = null, L = [], R = 0, V = 0;
|
|
487
|
+
var qa = m.CanvasRenderer = g.extend("Renderer", {__construct:function(q) {
|
|
488
488
|
this.__parent.__construct.call(this);
|
|
489
489
|
this.T = [1, 0, 0, 1, 0, 0];
|
|
490
490
|
this.G = [1.0];
|
|
@@ -503,10 +503,10 @@ m.onRuntimeInitialized = function() {
|
|
|
503
503
|
this.T.splice(q);
|
|
504
504
|
this.G.pop();
|
|
505
505
|
this.I.push(this.B.restore.bind(this.B));
|
|
506
|
-
}, transform:function(q, v,
|
|
507
|
-
const
|
|
508
|
-
|
|
509
|
-
this.I.push(this.B.transform.bind(this.B, q, v,
|
|
506
|
+
}, transform:function(q, v, J, G, A, H) {
|
|
507
|
+
const E = this.T, M = E.length - 6;
|
|
508
|
+
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]);
|
|
509
|
+
this.I.push(this.B.transform.bind(this.B, q, v, J, G, A, H));
|
|
510
510
|
}, rotate:function(q) {
|
|
511
511
|
const v = Math.sin(q);
|
|
512
512
|
q = Math.cos(q);
|
|
@@ -515,88 +515,96 @@ m.onRuntimeInitialized = function() {
|
|
|
515
515
|
this.G[this.G.length - 1] *= q;
|
|
516
516
|
}, _drawPath:function(q, v) {
|
|
517
517
|
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])));
|
|
518
|
-
}, _drawRiveImage:function(q, v,
|
|
519
|
-
var
|
|
520
|
-
if (
|
|
521
|
-
var
|
|
518
|
+
}, _drawRiveImage:function(q, v, J, G) {
|
|
519
|
+
var A = q.Db;
|
|
520
|
+
if (A) {
|
|
521
|
+
var H = this.B, E = a(J), M = Math.max(0, G * this.G[this.G.length - 1]);
|
|
522
522
|
this.I.push(function() {
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
523
|
+
H.globalCompositeOperation = E;
|
|
524
|
+
H.globalAlpha = M;
|
|
525
|
+
H.drawImage(A, 0, 0);
|
|
526
|
+
H.globalAlpha = 1;
|
|
527
527
|
});
|
|
528
528
|
}
|
|
529
529
|
}, _getMatrix:function(q) {
|
|
530
|
-
const v = this.T,
|
|
531
|
-
for (let
|
|
532
|
-
q[
|
|
530
|
+
const v = this.T, J = v.length - 6;
|
|
531
|
+
for (let G = 0; 6 > G; ++G) {
|
|
532
|
+
q[G] = v[J + G];
|
|
533
|
+
}
|
|
534
|
+
}, _drawImageMesh:function(q, v, J, G, A, H, E, M, ya, T, X, ha, Y, aa) {
|
|
535
|
+
let ac, bc, cc;
|
|
536
|
+
try {
|
|
537
|
+
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);
|
|
538
|
+
} catch (sb) {
|
|
539
|
+
console.error("[Rive] _drawImageMesh: failed to read mesh data from WASM heap. Mesh skipped for this frame.");
|
|
540
|
+
return;
|
|
533
541
|
}
|
|
534
|
-
}, _drawImageMesh:function(q, v, H, E, K, I, F, L, aa, R, X) {
|
|
535
542
|
v = this.B.canvas.width;
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
console.assert(Ga <= Math.min(
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
ra >
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
T
|
|
558
|
-
|
|
559
|
-
|
|
543
|
+
A = this.B.canvas.height;
|
|
544
|
+
E = Y - X;
|
|
545
|
+
M = aa - ha;
|
|
546
|
+
X = Math.max(X, 0);
|
|
547
|
+
ha = Math.max(ha, 0);
|
|
548
|
+
Y = Math.min(Y, v);
|
|
549
|
+
aa = Math.min(aa, A);
|
|
550
|
+
const Ga = Y - X, Ha = aa - ha;
|
|
551
|
+
console.assert(Ga <= Math.min(E, v));
|
|
552
|
+
console.assert(Ha <= Math.min(M, A));
|
|
553
|
+
if (!(0 >= Ga || 0 >= Ha)) {
|
|
554
|
+
Y = Ga < E || Ha < M;
|
|
555
|
+
v = aa = 1;
|
|
556
|
+
var ra = Math.ceil(Ga * aa), sa = Math.ceil(Ha * v);
|
|
557
|
+
A = ma.bc();
|
|
558
|
+
ra > A && (aa *= A / ra, ra = A);
|
|
559
|
+
sa > A && (v *= A / sa, sa = A);
|
|
560
|
+
w || (w = new m.DynamicRectanizer(A), w.reset(512, 512));
|
|
561
|
+
A = w.addRect(ra, sa);
|
|
562
|
+
0 > A && (c(), I.add(this), A = w.addRect(ra, sa), console.assert(0 <= A));
|
|
563
|
+
var dc = A & 65535, ec = A >> 16;
|
|
564
|
+
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),});
|
|
565
|
+
R += H;
|
|
566
|
+
V += T;
|
|
567
|
+
var za = this.B, rd = a(J), sd = Math.max(0, G * this.G[this.G.length - 1]);
|
|
560
568
|
this.I.push(function() {
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
const
|
|
566
|
-
|
|
567
|
-
|
|
569
|
+
za.save();
|
|
570
|
+
za.resetTransform();
|
|
571
|
+
za.globalCompositeOperation = rd;
|
|
572
|
+
za.globalAlpha = sd;
|
|
573
|
+
const sb = ma.canvas();
|
|
574
|
+
sb && za.drawImage(sb, dc, ec, ra, sa, X, ha, Ga, Ha);
|
|
575
|
+
za.restore();
|
|
568
576
|
});
|
|
569
577
|
}
|
|
570
578
|
}, _clipPath:function(q) {
|
|
571
579
|
this.I.push(this.B.clip.bind(this.B, q.U, q.Va === y ? "evenodd" : "nonzero"));
|
|
572
580
|
}, clear:function() {
|
|
573
|
-
|
|
581
|
+
I.add(this);
|
|
574
582
|
this.I.push(this.B.clearRect.bind(this.B, 0, 0, this.Ua.width, this.Ua.height));
|
|
575
583
|
}, flush:function() {
|
|
576
584
|
}, translate:function(q, v) {
|
|
577
585
|
this.transform(1, 0, 0, 1, q, v);
|
|
578
586
|
},});
|
|
579
587
|
m.makeRenderer = function(q) {
|
|
580
|
-
const v = new
|
|
581
|
-
return new Proxy(v, {get(
|
|
582
|
-
if ("function" === typeof
|
|
583
|
-
return function(...
|
|
584
|
-
return
|
|
588
|
+
const v = new qa(q), J = v.B;
|
|
589
|
+
return new Proxy(v, {get(G, A) {
|
|
590
|
+
if ("function" === typeof G[A]) {
|
|
591
|
+
return function(...H) {
|
|
592
|
+
return G[A].apply(G, H);
|
|
585
593
|
};
|
|
586
594
|
}
|
|
587
|
-
if ("function" === typeof
|
|
588
|
-
if (-1 <
|
|
589
|
-
throw Error("RiveException: Method call to '" +
|
|
595
|
+
if ("function" === typeof J[A]) {
|
|
596
|
+
if (-1 < la.indexOf(A)) {
|
|
597
|
+
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.");
|
|
590
598
|
}
|
|
591
|
-
return function(...
|
|
592
|
-
v.I.push(
|
|
599
|
+
return function(...H) {
|
|
600
|
+
v.I.push(J[A].bind(J, ...H));
|
|
593
601
|
};
|
|
594
602
|
}
|
|
595
|
-
return
|
|
596
|
-
}, set(
|
|
597
|
-
if (
|
|
603
|
+
return G[A];
|
|
604
|
+
}, set(G, A, H) {
|
|
605
|
+
if (A in J) {
|
|
598
606
|
return v.I.push(() => {
|
|
599
|
-
|
|
607
|
+
J[A] = H;
|
|
600
608
|
}), !0;
|
|
601
609
|
}
|
|
602
610
|
},});
|
|
@@ -605,7 +613,7 @@ m.onRuntimeInitialized = function() {
|
|
|
605
613
|
(new u({la:v})).decode(q);
|
|
606
614
|
};
|
|
607
615
|
m.renderFactory = {makeRenderPaint:function() {
|
|
608
|
-
return new
|
|
616
|
+
return new D();
|
|
609
617
|
}, makeRenderPath:function() {
|
|
610
618
|
return new r();
|
|
611
619
|
}, makeRenderImage:function() {
|
|
@@ -620,25 +628,25 @@ m.onRuntimeInitialized = function() {
|
|
|
620
628
|
}
|
|
621
629
|
},});
|
|
622
630
|
},};
|
|
623
|
-
let
|
|
624
|
-
m.load = function(q, v,
|
|
625
|
-
const
|
|
626
|
-
void 0 !== v &&
|
|
627
|
-
|
|
628
|
-
return new Promise(function(
|
|
629
|
-
let
|
|
631
|
+
let K = m.load, Z = null;
|
|
632
|
+
m.load = function(q, v, J = !0) {
|
|
633
|
+
const G = new m.FallbackFileAssetLoader();
|
|
634
|
+
void 0 !== v && G.addLoader(v);
|
|
635
|
+
J && (v = new m.CDNFileAssetLoader(), G.addLoader(v));
|
|
636
|
+
return new Promise(function(A) {
|
|
637
|
+
let H = null;
|
|
630
638
|
Z = {total:0, loaded:0, ready:function() {
|
|
631
|
-
|
|
639
|
+
A(H);
|
|
632
640
|
},};
|
|
633
|
-
|
|
634
|
-
0 == Z.total &&
|
|
641
|
+
H = K(q, G);
|
|
642
|
+
0 == Z.total && A(H);
|
|
635
643
|
});
|
|
636
644
|
};
|
|
637
|
-
let
|
|
638
|
-
m.RendererWrapper.prototype.align = function(q, v,
|
|
639
|
-
|
|
645
|
+
let td = m.RendererWrapper.prototype.align;
|
|
646
|
+
m.RendererWrapper.prototype.align = function(q, v, J, G, A = 1.0) {
|
|
647
|
+
td.call(this, q, v, J, G, A);
|
|
640
648
|
};
|
|
641
|
-
d = new
|
|
649
|
+
d = new ia();
|
|
642
650
|
m.requestAnimationFrame = d.requestAnimationFrame.bind(d);
|
|
643
651
|
m.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);
|
|
644
652
|
m.enableFPSCounter = d.Ob.bind(d);
|
|
@@ -649,16 +657,16 @@ m.onRuntimeInitialized = function() {
|
|
|
649
657
|
w && w.delete();
|
|
650
658
|
};
|
|
651
659
|
};
|
|
652
|
-
var
|
|
660
|
+
var oa = Object.assign({}, m), pa = "./this.program", ta = "", ua, va;
|
|
653
661
|
if (ea || fa) {
|
|
654
|
-
fa ?
|
|
662
|
+
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 => {
|
|
655
663
|
var b = new XMLHttpRequest();
|
|
656
664
|
b.open("GET", a, !1);
|
|
657
665
|
b.responseType = "arraybuffer";
|
|
658
666
|
b.send(null);
|
|
659
667
|
return new Uint8Array(b.response);
|
|
660
|
-
}),
|
|
661
|
-
if (
|
|
668
|
+
}), ua = (a, b, c) => {
|
|
669
|
+
if (wa(a)) {
|
|
662
670
|
var d = new XMLHttpRequest();
|
|
663
671
|
d.open("GET", a, !0);
|
|
664
672
|
d.responseType = "arraybuffer";
|
|
@@ -672,75 +680,75 @@ if (ea || fa) {
|
|
|
672
680
|
}
|
|
673
681
|
};
|
|
674
682
|
}
|
|
675
|
-
var
|
|
676
|
-
Object.assign(m,
|
|
677
|
-
|
|
678
|
-
m.thisProgram && (
|
|
679
|
-
var
|
|
680
|
-
m.wasmBinary && (
|
|
681
|
-
var
|
|
682
|
-
function
|
|
683
|
-
var a =
|
|
683
|
+
var xa = m.print || console.log.bind(console), Aa = m.printErr || console.error.bind(console);
|
|
684
|
+
Object.assign(m, oa);
|
|
685
|
+
oa = null;
|
|
686
|
+
m.thisProgram && (pa = m.thisProgram);
|
|
687
|
+
var Ba;
|
|
688
|
+
m.wasmBinary && (Ba = m.wasmBinary);
|
|
689
|
+
var Ca, Da = !1, z, B, Ea, Fa, C, F, Ia, Ja;
|
|
690
|
+
function Ka() {
|
|
691
|
+
var a = Ca.buffer;
|
|
684
692
|
m.HEAP8 = z = new Int8Array(a);
|
|
685
|
-
m.HEAP16 =
|
|
686
|
-
m.HEAPU8 =
|
|
687
|
-
m.HEAPU16 =
|
|
688
|
-
m.HEAP32 =
|
|
689
|
-
m.HEAPU32 =
|
|
690
|
-
m.HEAPF32 =
|
|
691
|
-
m.HEAPF64 =
|
|
693
|
+
m.HEAP16 = Ea = new Int16Array(a);
|
|
694
|
+
m.HEAPU8 = B = new Uint8Array(a);
|
|
695
|
+
m.HEAPU16 = Fa = new Uint16Array(a);
|
|
696
|
+
m.HEAP32 = C = new Int32Array(a);
|
|
697
|
+
m.HEAPU32 = F = new Uint32Array(a);
|
|
698
|
+
m.HEAPF32 = Ia = new Float32Array(a);
|
|
699
|
+
m.HEAPF64 = Ja = new Float64Array(a);
|
|
692
700
|
}
|
|
693
|
-
var
|
|
694
|
-
function
|
|
701
|
+
var La = [], Ma = [], Na = [];
|
|
702
|
+
function Oa() {
|
|
695
703
|
var a = m.preRun.shift();
|
|
696
|
-
|
|
704
|
+
La.unshift(a);
|
|
697
705
|
}
|
|
698
|
-
var
|
|
699
|
-
function
|
|
706
|
+
var Pa = 0, Qa = null, Ra = null;
|
|
707
|
+
function Sa(a) {
|
|
700
708
|
m.onAbort?.(a);
|
|
701
709
|
a = "Aborted(" + a + ")";
|
|
702
|
-
|
|
703
|
-
|
|
710
|
+
Aa(a);
|
|
711
|
+
Da = !0;
|
|
704
712
|
a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
|
|
705
713
|
ca(a);
|
|
706
714
|
throw a;
|
|
707
715
|
}
|
|
708
|
-
var
|
|
709
|
-
function
|
|
710
|
-
if (a ==
|
|
711
|
-
return new Uint8Array(
|
|
716
|
+
var Ta = a => a.startsWith("data:application/octet-stream;base64,"), wa = a => a.startsWith("file://"), Ua;
|
|
717
|
+
function Va(a) {
|
|
718
|
+
if (a == Ua && Ba) {
|
|
719
|
+
return new Uint8Array(Ba);
|
|
712
720
|
}
|
|
713
|
-
if (
|
|
714
|
-
return
|
|
721
|
+
if (va) {
|
|
722
|
+
return va(a);
|
|
715
723
|
}
|
|
716
724
|
throw "both async and sync fetching of the wasm failed";
|
|
717
725
|
}
|
|
718
|
-
function
|
|
719
|
-
return
|
|
720
|
-
|
|
726
|
+
function Wa(a) {
|
|
727
|
+
return Ba ? Promise.resolve().then(() => Va(a)) : new Promise((b, c) => {
|
|
728
|
+
ua(a, d => b(new Uint8Array(d)), () => {
|
|
721
729
|
try {
|
|
722
|
-
b(
|
|
730
|
+
b(Va(a));
|
|
723
731
|
} catch (d) {
|
|
724
732
|
c(d);
|
|
725
733
|
}
|
|
726
734
|
});
|
|
727
735
|
});
|
|
728
736
|
}
|
|
729
|
-
function
|
|
730
|
-
return
|
|
731
|
-
|
|
732
|
-
|
|
737
|
+
function Xa(a, b, c) {
|
|
738
|
+
return Wa(a).then(d => WebAssembly.instantiate(d, b)).then(c, d => {
|
|
739
|
+
Aa(`failed to asynchronously prepare wasm: ${d}`);
|
|
740
|
+
Sa(d);
|
|
733
741
|
});
|
|
734
742
|
}
|
|
735
|
-
function
|
|
736
|
-
var c =
|
|
737
|
-
return
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
return
|
|
743
|
+
function Ya(a, b) {
|
|
744
|
+
var c = Ua;
|
|
745
|
+
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) {
|
|
746
|
+
Aa(`wasm streaming compile failed: ${e}`);
|
|
747
|
+
Aa("falling back to ArrayBuffer instantiation");
|
|
748
|
+
return Xa(c, a, b);
|
|
741
749
|
}));
|
|
742
750
|
}
|
|
743
|
-
var Za, $a, db = {
|
|
751
|
+
var Za, $a, db = {478802:(a, b, c, d, e) => {
|
|
744
752
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
745
753
|
return 0;
|
|
746
754
|
}
|
|
@@ -803,11 +811,11 @@ var Za, $a, db = {478226:(a, b, c, d, e) => {
|
|
|
803
811
|
}
|
|
804
812
|
window.h.za += 1;
|
|
805
813
|
return 1;
|
|
806
|
-
},
|
|
814
|
+
}, 480980:() => {
|
|
807
815
|
"undefined" !== typeof window.h && (window.h.Sa.map(function(a) {
|
|
808
816
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
809
817
|
}), --window.h.za, 0 === window.h.za && delete window.h);
|
|
810
|
-
},
|
|
818
|
+
}, 481284:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 481388:() => {
|
|
811
819
|
try {
|
|
812
820
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
813
821
|
a.close();
|
|
@@ -815,7 +823,7 @@ var Za, $a, db = {478226:(a, b, c, d, e) => {
|
|
|
815
823
|
} catch (c) {
|
|
816
824
|
return 0;
|
|
817
825
|
}
|
|
818
|
-
},
|
|
826
|
+
}, 481559:(a, b, c, d, e, f) => {
|
|
819
827
|
if ("undefined" === typeof window.h) {
|
|
820
828
|
return -1;
|
|
821
829
|
}
|
|
@@ -829,7 +837,7 @@ var Za, $a, db = {478226:(a, b, c, d, e) => {
|
|
|
829
837
|
g.Z = g.L.createScriptProcessor(d, c, b);
|
|
830
838
|
g.Z.onaudioprocess = function(p) {
|
|
831
839
|
if (null == g.ra || 0 == g.ra.length) {
|
|
832
|
-
g.ra = new Float32Array(
|
|
840
|
+
g.ra = new Float32Array(Ia.buffer, e, d * b);
|
|
833
841
|
}
|
|
834
842
|
if (a == window.h.J.capture || a == window.h.J.Ka) {
|
|
835
843
|
for (var n = 0; n < b; n += 1) {
|
|
@@ -861,7 +869,7 @@ var Za, $a, db = {478226:(a, b, c, d, e) => {
|
|
|
861
869
|
a == window.h.J.xa && g.Z.connect(g.L.destination);
|
|
862
870
|
g.pb = f;
|
|
863
871
|
return window.h.sc(g);
|
|
864
|
-
},
|
|
872
|
+
}, 484436:a => window.h.qa(a).L.sampleRate, 484509:a => {
|
|
865
873
|
a = window.h.qa(a);
|
|
866
874
|
void 0 !== a.Z && (a.Z.onaudioprocess = function() {
|
|
867
875
|
}, a.Z.disconnect(), a.Z = void 0);
|
|
@@ -869,13 +877,13 @@ var Za, $a, db = {478226:(a, b, c, d, e) => {
|
|
|
869
877
|
a.L.close();
|
|
870
878
|
a.L = void 0;
|
|
871
879
|
a.pb = void 0;
|
|
872
|
-
},
|
|
880
|
+
}, 484909:a => {
|
|
873
881
|
window.h.Ab(a);
|
|
874
|
-
},
|
|
882
|
+
}, 484959:a => {
|
|
875
883
|
a = window.h.qa(a);
|
|
876
884
|
a.L.resume();
|
|
877
885
|
a.state = window.h.ga.wb;
|
|
878
|
-
},
|
|
886
|
+
}, 485098:a => {
|
|
879
887
|
a = window.h.qa(a);
|
|
880
888
|
a.L.suspend();
|
|
881
889
|
a.state = window.h.ga.stopped;
|
|
@@ -885,7 +893,7 @@ var Za, $a, db = {478226:(a, b, c, d, e) => {
|
|
|
885
893
|
}
|
|
886
894
|
};
|
|
887
895
|
function fb() {
|
|
888
|
-
var a =
|
|
896
|
+
var a = C[+gb >> 2];
|
|
889
897
|
gb += 4;
|
|
890
898
|
return a;
|
|
891
899
|
}
|
|
@@ -926,7 +934,7 @@ var hb = (a, b) => {
|
|
|
926
934
|
if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
|
|
927
935
|
return a => crypto.getRandomValues(a);
|
|
928
936
|
}
|
|
929
|
-
|
|
937
|
+
Sa("initRandomDevice");
|
|
930
938
|
}, mb = a => (mb = lb())(a), nb = (...a) => {
|
|
931
939
|
for (var b = "", c = !1, d = a.length - 1; -1 <= d && !c; d--) {
|
|
932
940
|
c = 0 <= d ? a[d] : "/";
|
|
@@ -971,7 +979,7 @@ var hb = (a, b) => {
|
|
|
971
979
|
127 >= d ? b++ : 2047 >= d ? b += 2 : 55296 <= d && 57343 >= d ? (b += 4, ++c) : b += 3;
|
|
972
980
|
}
|
|
973
981
|
return b;
|
|
974
|
-
},
|
|
982
|
+
}, tb = (a, b, c, d) => {
|
|
975
983
|
if (!(0 < d)) {
|
|
976
984
|
return 0;
|
|
977
985
|
}
|
|
@@ -1015,19 +1023,19 @@ var hb = (a, b) => {
|
|
|
1015
1023
|
b[c] = 0;
|
|
1016
1024
|
return c - e;
|
|
1017
1025
|
};
|
|
1018
|
-
function
|
|
1026
|
+
function ub(a, b) {
|
|
1019
1027
|
var c = Array(rb(a) + 1);
|
|
1020
|
-
a =
|
|
1028
|
+
a = tb(a, c, 0, c.length);
|
|
1021
1029
|
b && (c.length = a);
|
|
1022
1030
|
return c;
|
|
1023
1031
|
}
|
|
1024
|
-
var
|
|
1025
|
-
function
|
|
1026
|
-
|
|
1027
|
-
|
|
1032
|
+
var vb = [];
|
|
1033
|
+
function wb(a, b) {
|
|
1034
|
+
vb[a] = {input:[], H:[], W:b};
|
|
1035
|
+
xb(a, yb);
|
|
1028
1036
|
}
|
|
1029
|
-
var
|
|
1030
|
-
var b =
|
|
1037
|
+
var yb = {open(a) {
|
|
1038
|
+
var b = vb[a.node.ya];
|
|
1031
1039
|
if (!b) {
|
|
1032
1040
|
throw new N(43);
|
|
1033
1041
|
}
|
|
@@ -1071,7 +1079,7 @@ var xb = {open(a) {
|
|
|
1071
1079
|
}
|
|
1072
1080
|
d && (a.node.timestamp = Date.now());
|
|
1073
1081
|
return e;
|
|
1074
|
-
},},
|
|
1082
|
+
},}, zb = {ib() {
|
|
1075
1083
|
a: {
|
|
1076
1084
|
if (!qb.length) {
|
|
1077
1085
|
var a = null;
|
|
@@ -1080,27 +1088,27 @@ var xb = {open(a) {
|
|
|
1080
1088
|
a = null;
|
|
1081
1089
|
break a;
|
|
1082
1090
|
}
|
|
1083
|
-
qb =
|
|
1091
|
+
qb = ub(a, !0);
|
|
1084
1092
|
}
|
|
1085
1093
|
a = qb.shift();
|
|
1086
1094
|
}
|
|
1087
1095
|
return a;
|
|
1088
1096
|
}, Na(a, b) {
|
|
1089
|
-
null === b || 10 === b ? (
|
|
1097
|
+
null === b || 10 === b ? (xa(pb(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
|
|
1090
1098
|
}, pa(a) {
|
|
1091
|
-
a.H && 0 < a.H.length && (
|
|
1099
|
+
a.H && 0 < a.H.length && (xa(pb(a.H, 0)), a.H = []);
|
|
1092
1100
|
}, Yb() {
|
|
1093
1101
|
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,]};
|
|
1094
1102
|
}, Zb() {
|
|
1095
1103
|
return 0;
|
|
1096
1104
|
}, $b() {
|
|
1097
1105
|
return [24, 80];
|
|
1098
|
-
},},
|
|
1099
|
-
null === b || 10 === b ? (
|
|
1106
|
+
},}, Ab = {Na(a, b) {
|
|
1107
|
+
null === b || 10 === b ? (Aa(pb(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
|
|
1100
1108
|
}, pa(a) {
|
|
1101
|
-
a.H && 0 < a.H.length && (
|
|
1109
|
+
a.H && 0 < a.H.length && (Aa(pb(a.H, 0)), a.H = []);
|
|
1102
1110
|
},};
|
|
1103
|
-
function
|
|
1111
|
+
function Bb(a, b) {
|
|
1104
1112
|
var c = a.l ? a.l.length : 0;
|
|
1105
1113
|
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));
|
|
1106
1114
|
}
|
|
@@ -1110,8 +1118,8 @@ var O = {O:null, V() {
|
|
|
1110
1118
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
1111
1119
|
throw new N(63);
|
|
1112
1120
|
}
|
|
1113
|
-
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:
|
|
1114
|
-
c =
|
|
1121
|
+
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}});
|
|
1122
|
+
c = Db(a, b, c, d);
|
|
1115
1123
|
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);
|
|
1116
1124
|
c.timestamp = Date.now();
|
|
1117
1125
|
a && (a.l[b] = c, a.timestamp = c.timestamp);
|
|
@@ -1148,13 +1156,13 @@ var O = {O:null, V() {
|
|
|
1148
1156
|
}
|
|
1149
1157
|
}
|
|
1150
1158
|
}, ka() {
|
|
1151
|
-
throw
|
|
1159
|
+
throw Eb[44];
|
|
1152
1160
|
}, ua(a, b, c, d) {
|
|
1153
1161
|
return O.createNode(a, b, c, d);
|
|
1154
1162
|
}, tb(a, b, c) {
|
|
1155
1163
|
if (16384 === (a.mode & 61440)) {
|
|
1156
1164
|
try {
|
|
1157
|
-
var d =
|
|
1165
|
+
var d = Fb(b, c);
|
|
1158
1166
|
} catch (f) {
|
|
1159
1167
|
}
|
|
1160
1168
|
if (d) {
|
|
@@ -1172,7 +1180,7 @@ var O = {O:null, V() {
|
|
|
1172
1180
|
delete a.l[b];
|
|
1173
1181
|
a.timestamp = Date.now();
|
|
1174
1182
|
}, ub(a, b) {
|
|
1175
|
-
var c =
|
|
1183
|
+
var c = Fb(a, b), d;
|
|
1176
1184
|
for (d in c.l) {
|
|
1177
1185
|
throw new N(55);
|
|
1178
1186
|
}
|
|
@@ -1225,7 +1233,7 @@ var O = {O:null, V() {
|
|
|
1225
1233
|
return a.l.set(b.subarray(c, c + d), e), d;
|
|
1226
1234
|
}
|
|
1227
1235
|
}
|
|
1228
|
-
|
|
1236
|
+
Bb(a, e + d);
|
|
1229
1237
|
if (a.l.subarray && b.subarray) {
|
|
1230
1238
|
a.l.set(b.subarray(c, c + d), e);
|
|
1231
1239
|
} else {
|
|
@@ -1242,7 +1250,7 @@ var O = {O:null, V() {
|
|
|
1242
1250
|
}
|
|
1243
1251
|
return b;
|
|
1244
1252
|
}, Ya(a, b, c) {
|
|
1245
|
-
|
|
1253
|
+
Bb(a.node, b + c);
|
|
1246
1254
|
a.node.v = Math.max(a.node.v, b + c);
|
|
1247
1255
|
}, lb(a, b, c, d, e) {
|
|
1248
1256
|
if (32768 !== (a.node.mode & 61440)) {
|
|
@@ -1254,7 +1262,7 @@ var O = {O:null, V() {
|
|
|
1254
1262
|
a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
|
|
1255
1263
|
}
|
|
1256
1264
|
c = !0;
|
|
1257
|
-
|
|
1265
|
+
Sa();
|
|
1258
1266
|
b = void 0;
|
|
1259
1267
|
if (!b) {
|
|
1260
1268
|
throw new N(48);
|
|
@@ -1267,17 +1275,17 @@ var O = {O:null, V() {
|
|
|
1267
1275
|
}, nb(a, b, c, d) {
|
|
1268
1276
|
O.m.write(a, b, 0, d, c, !1);
|
|
1269
1277
|
return 0;
|
|
1270
|
-
},},},
|
|
1278
|
+
},},}, Gb = (a, b) => {
|
|
1271
1279
|
var c = 0;
|
|
1272
1280
|
a && (c |= 365);
|
|
1273
1281
|
b && (c |= 146);
|
|
1274
1282
|
return c;
|
|
1275
|
-
},
|
|
1283
|
+
}, Hb = null, Ib = {}, Jb = [], Kb = 1, Lb = null, Mb = !0, N = class {
|
|
1276
1284
|
constructor(a) {
|
|
1277
1285
|
this.name = "ErrnoError";
|
|
1278
1286
|
this.aa = a;
|
|
1279
1287
|
}
|
|
1280
|
-
},
|
|
1288
|
+
}, Eb = {}, Nb = class {
|
|
1281
1289
|
constructor() {
|
|
1282
1290
|
this.h = {};
|
|
1283
1291
|
this.node = null;
|
|
@@ -1294,13 +1302,13 @@ var O = {O:null, V() {
|
|
|
1294
1302
|
set position(a) {
|
|
1295
1303
|
this.h.position = a;
|
|
1296
1304
|
}
|
|
1297
|
-
},
|
|
1305
|
+
}, Ob = class {
|
|
1298
1306
|
constructor(a, b, c, d) {
|
|
1299
1307
|
a ||= this;
|
|
1300
1308
|
this.parent = a;
|
|
1301
1309
|
this.V = a.V;
|
|
1302
1310
|
this.va = null;
|
|
1303
|
-
this.id =
|
|
1311
|
+
this.id = Kb++;
|
|
1304
1312
|
this.name = b;
|
|
1305
1313
|
this.mode = c;
|
|
1306
1314
|
this.j = {};
|
|
@@ -1320,7 +1328,7 @@ var O = {O:null, V() {
|
|
|
1320
1328
|
a ? this.mode |= 146 : this.mode &= -147;
|
|
1321
1329
|
}
|
|
1322
1330
|
};
|
|
1323
|
-
function
|
|
1331
|
+
function Pb(a, b = {}) {
|
|
1324
1332
|
a = nb(a);
|
|
1325
1333
|
if (!a) {
|
|
1326
1334
|
return {path:"", node:null};
|
|
@@ -1330,17 +1338,17 @@ function Ob(a, b = {}) {
|
|
|
1330
1338
|
throw new N(32);
|
|
1331
1339
|
}
|
|
1332
1340
|
a = a.split("/").filter(g => !!g);
|
|
1333
|
-
for (var c =
|
|
1341
|
+
for (var c = Hb, d = "/", e = 0; e < a.length; e++) {
|
|
1334
1342
|
var f = e === a.length - 1;
|
|
1335
1343
|
if (f && b.parent) {
|
|
1336
1344
|
break;
|
|
1337
1345
|
}
|
|
1338
|
-
c =
|
|
1346
|
+
c = Fb(c, a[e]);
|
|
1339
1347
|
d = ib(d + "/" + a[e]);
|
|
1340
1348
|
c.va && (!f || f && b.hb) && (c = c.va.root);
|
|
1341
1349
|
if (!f || b.gb) {
|
|
1342
1350
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
1343
|
-
if (c =
|
|
1351
|
+
if (c = Qb(d), d = nb(jb(d), c), c = Pb(d, {Pa:b.Pa + 1}).node, 40 < f++) {
|
|
1344
1352
|
throw new N(32);
|
|
1345
1353
|
}
|
|
1346
1354
|
}
|
|
@@ -1348,7 +1356,7 @@ function Ob(a, b = {}) {
|
|
|
1348
1356
|
}
|
|
1349
1357
|
return {path:d, node:c};
|
|
1350
1358
|
}
|
|
1351
|
-
function
|
|
1359
|
+
function Rb(a) {
|
|
1352
1360
|
for (var b;;) {
|
|
1353
1361
|
if (a === a.parent) {
|
|
1354
1362
|
return a = a.V.mb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
|
|
@@ -1357,18 +1365,18 @@ function Qb(a) {
|
|
|
1357
1365
|
a = a.parent;
|
|
1358
1366
|
}
|
|
1359
1367
|
}
|
|
1360
|
-
function
|
|
1368
|
+
function Sb(a, b) {
|
|
1361
1369
|
for (var c = 0, d = 0; d < b.length; d++) {
|
|
1362
1370
|
c = (c << 5) - c + b.charCodeAt(d) | 0;
|
|
1363
1371
|
}
|
|
1364
|
-
return (a + c >>> 0) %
|
|
1372
|
+
return (a + c >>> 0) % Lb.length;
|
|
1365
1373
|
}
|
|
1366
|
-
function
|
|
1367
|
-
var c = 16384 === (a.mode & 61440) ? (c =
|
|
1374
|
+
function Fb(a, b) {
|
|
1375
|
+
var c = 16384 === (a.mode & 61440) ? (c = Tb(a, "x")) ? c : a.j.ka ? 0 : 2 : 54;
|
|
1368
1376
|
if (c) {
|
|
1369
1377
|
throw new N(c);
|
|
1370
1378
|
}
|
|
1371
|
-
for (c =
|
|
1379
|
+
for (c = Lb[Sb(a.id, b)]; c; c = c.fc) {
|
|
1372
1380
|
var d = c.name;
|
|
1373
1381
|
if (c.parent.id === a.id && d === b) {
|
|
1374
1382
|
return c;
|
|
@@ -1376,19 +1384,19 @@ function Eb(a, b) {
|
|
|
1376
1384
|
}
|
|
1377
1385
|
return a.j.ka(a, b);
|
|
1378
1386
|
}
|
|
1379
|
-
function
|
|
1380
|
-
a = new
|
|
1381
|
-
b =
|
|
1382
|
-
a.fc =
|
|
1383
|
-
return
|
|
1387
|
+
function Db(a, b, c, d) {
|
|
1388
|
+
a = new Ob(a, b, c, d);
|
|
1389
|
+
b = Sb(a.parent.id, a.name);
|
|
1390
|
+
a.fc = Lb[b];
|
|
1391
|
+
return Lb[b] = a;
|
|
1384
1392
|
}
|
|
1385
|
-
function
|
|
1393
|
+
function Ub(a) {
|
|
1386
1394
|
var b = ["r", "w", "rw"][a & 3];
|
|
1387
1395
|
a & 512 && (b += "w");
|
|
1388
1396
|
return b;
|
|
1389
1397
|
}
|
|
1390
|
-
function
|
|
1391
|
-
if (
|
|
1398
|
+
function Tb(a, b) {
|
|
1399
|
+
if (Mb) {
|
|
1392
1400
|
return 0;
|
|
1393
1401
|
}
|
|
1394
1402
|
if (!b.includes("r") || a.mode & 292) {
|
|
@@ -1400,26 +1408,26 @@ function Sb(a, b) {
|
|
|
1400
1408
|
}
|
|
1401
1409
|
return 0;
|
|
1402
1410
|
}
|
|
1403
|
-
function
|
|
1411
|
+
function Vb(a, b) {
|
|
1404
1412
|
try {
|
|
1405
|
-
return
|
|
1413
|
+
return Fb(a, b), 20;
|
|
1406
1414
|
} catch (c) {
|
|
1407
1415
|
}
|
|
1408
|
-
return
|
|
1416
|
+
return Tb(a, "wx");
|
|
1409
1417
|
}
|
|
1410
|
-
function
|
|
1411
|
-
a =
|
|
1418
|
+
function Wb(a) {
|
|
1419
|
+
a = Jb[a];
|
|
1412
1420
|
if (!a) {
|
|
1413
1421
|
throw new N(8);
|
|
1414
1422
|
}
|
|
1415
1423
|
return a;
|
|
1416
1424
|
}
|
|
1417
|
-
function
|
|
1418
|
-
a = Object.assign(new
|
|
1425
|
+
function Xb(a, b = -1) {
|
|
1426
|
+
a = Object.assign(new Nb(), a);
|
|
1419
1427
|
if (-1 == b) {
|
|
1420
1428
|
a: {
|
|
1421
1429
|
for (b = 0; 4096 >= b; b++) {
|
|
1422
|
-
if (!
|
|
1430
|
+
if (!Jb[b]) {
|
|
1423
1431
|
break a;
|
|
1424
1432
|
}
|
|
1425
1433
|
}
|
|
@@ -1427,29 +1435,29 @@ function Wb(a, b = -1) {
|
|
|
1427
1435
|
}
|
|
1428
1436
|
}
|
|
1429
1437
|
a.X = b;
|
|
1430
|
-
return
|
|
1438
|
+
return Jb[b] = a;
|
|
1431
1439
|
}
|
|
1432
|
-
function
|
|
1433
|
-
a =
|
|
1440
|
+
function Yb(a, b = -1) {
|
|
1441
|
+
a = Xb(a, b);
|
|
1434
1442
|
a.m?.Fc?.(a);
|
|
1435
1443
|
return a;
|
|
1436
1444
|
}
|
|
1437
|
-
var
|
|
1438
|
-
a.m =
|
|
1445
|
+
var Cb = {open(a) {
|
|
1446
|
+
a.m = Ib[a.node.ya].m;
|
|
1439
1447
|
a.m.open?.(a);
|
|
1440
1448
|
}, ba() {
|
|
1441
1449
|
throw new N(70);
|
|
1442
1450
|
},};
|
|
1443
|
-
function
|
|
1444
|
-
|
|
1451
|
+
function xb(a, b) {
|
|
1452
|
+
Ib[a] = {m:b};
|
|
1445
1453
|
}
|
|
1446
|
-
function
|
|
1454
|
+
function Zb(a, b) {
|
|
1447
1455
|
var c = "/" === b;
|
|
1448
|
-
if (c &&
|
|
1456
|
+
if (c && Hb) {
|
|
1449
1457
|
throw new N(10);
|
|
1450
1458
|
}
|
|
1451
1459
|
if (!c && b) {
|
|
1452
|
-
var d =
|
|
1460
|
+
var d = Pb(b, {hb:!1});
|
|
1453
1461
|
b = d.path;
|
|
1454
1462
|
d = d.node;
|
|
1455
1463
|
if (d.va) {
|
|
@@ -1463,15 +1471,15 @@ function Yb(a, b) {
|
|
|
1463
1471
|
a = a.V(b);
|
|
1464
1472
|
a.V = b;
|
|
1465
1473
|
b.root = a;
|
|
1466
|
-
c ?
|
|
1474
|
+
c ? Hb = a : d && (d.va = b, d.V && d.V.ec.push(b));
|
|
1467
1475
|
}
|
|
1468
|
-
function
|
|
1469
|
-
var d =
|
|
1476
|
+
function $b(a, b, c) {
|
|
1477
|
+
var d = Pb(a, {parent:!0}).node;
|
|
1470
1478
|
a = kb(a);
|
|
1471
1479
|
if (!a || "." === a || ".." === a) {
|
|
1472
1480
|
throw new N(28);
|
|
1473
1481
|
}
|
|
1474
|
-
var e =
|
|
1482
|
+
var e = Vb(d, a);
|
|
1475
1483
|
if (e) {
|
|
1476
1484
|
throw new N(e);
|
|
1477
1485
|
}
|
|
@@ -1480,23 +1488,23 @@ function Zb(a, b, c) {
|
|
|
1480
1488
|
}
|
|
1481
1489
|
return d.j.ua(d, a, b, c);
|
|
1482
1490
|
}
|
|
1483
|
-
function
|
|
1484
|
-
return
|
|
1491
|
+
function fc(a) {
|
|
1492
|
+
return $b(a, 16895, 0);
|
|
1485
1493
|
}
|
|
1486
|
-
function
|
|
1494
|
+
function gc(a, b, c) {
|
|
1487
1495
|
"undefined" == typeof c && (c = b, b = 438);
|
|
1488
|
-
|
|
1496
|
+
$b(a, b | 8192, c);
|
|
1489
1497
|
}
|
|
1490
|
-
function
|
|
1498
|
+
function hc(a, b) {
|
|
1491
1499
|
if (!nb(a)) {
|
|
1492
1500
|
throw new N(44);
|
|
1493
1501
|
}
|
|
1494
|
-
var c =
|
|
1502
|
+
var c = Pb(b, {parent:!0}).node;
|
|
1495
1503
|
if (!c) {
|
|
1496
1504
|
throw new N(44);
|
|
1497
1505
|
}
|
|
1498
1506
|
b = kb(b);
|
|
1499
|
-
var d =
|
|
1507
|
+
var d = Vb(c, b);
|
|
1500
1508
|
if (d) {
|
|
1501
1509
|
throw new N(d);
|
|
1502
1510
|
}
|
|
@@ -1505,17 +1513,17 @@ function ec(a, b) {
|
|
|
1505
1513
|
}
|
|
1506
1514
|
c.j.Da(c, b, a);
|
|
1507
1515
|
}
|
|
1508
|
-
function
|
|
1509
|
-
a =
|
|
1516
|
+
function Qb(a) {
|
|
1517
|
+
a = Pb(a).node;
|
|
1510
1518
|
if (!a) {
|
|
1511
1519
|
throw new N(44);
|
|
1512
1520
|
}
|
|
1513
1521
|
if (!a.j.ma) {
|
|
1514
1522
|
throw new N(28);
|
|
1515
1523
|
}
|
|
1516
|
-
return nb(
|
|
1524
|
+
return nb(Rb(a.parent), a.j.ma(a));
|
|
1517
1525
|
}
|
|
1518
|
-
function
|
|
1526
|
+
function ic(a, b, c) {
|
|
1519
1527
|
if ("" === a) {
|
|
1520
1528
|
throw new N(44);
|
|
1521
1529
|
}
|
|
@@ -1532,7 +1540,7 @@ function fc(a, b, c) {
|
|
|
1532
1540
|
} else {
|
|
1533
1541
|
a = ib(a);
|
|
1534
1542
|
try {
|
|
1535
|
-
e =
|
|
1543
|
+
e = Pb(a, {gb:!(b & 131072)}).node;
|
|
1536
1544
|
} catch (f) {
|
|
1537
1545
|
}
|
|
1538
1546
|
}
|
|
@@ -1543,7 +1551,7 @@ function fc(a, b, c) {
|
|
|
1543
1551
|
throw new N(20);
|
|
1544
1552
|
}
|
|
1545
1553
|
} else {
|
|
1546
|
-
e =
|
|
1554
|
+
e = $b(a, c, 0), d = !0;
|
|
1547
1555
|
}
|
|
1548
1556
|
}
|
|
1549
1557
|
if (!e) {
|
|
@@ -1553,12 +1561,12 @@ function fc(a, b, c) {
|
|
|
1553
1561
|
if (b & 65536 && 16384 !== (e.mode & 61440)) {
|
|
1554
1562
|
throw new N(54);
|
|
1555
1563
|
}
|
|
1556
|
-
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !==
|
|
1564
|
+
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Ub(b) || b & 512) ? 31 : Tb(e, Ub(b)) : 44)) {
|
|
1557
1565
|
throw new N(c);
|
|
1558
1566
|
}
|
|
1559
1567
|
if (b & 512 && !d) {
|
|
1560
1568
|
c = e;
|
|
1561
|
-
c = "string" == typeof c ?
|
|
1569
|
+
c = "string" == typeof c ? Pb(c, {gb:!0}).node : c;
|
|
1562
1570
|
if (!c.j.R) {
|
|
1563
1571
|
throw new N(63);
|
|
1564
1572
|
}
|
|
@@ -1568,18 +1576,18 @@ function fc(a, b, c) {
|
|
|
1568
1576
|
if (32768 !== (c.mode & 61440)) {
|
|
1569
1577
|
throw new N(28);
|
|
1570
1578
|
}
|
|
1571
|
-
if (d =
|
|
1579
|
+
if (d = Tb(c, "w")) {
|
|
1572
1580
|
throw new N(d);
|
|
1573
1581
|
}
|
|
1574
1582
|
c.j.R(c, {size:0, timestamp:Date.now()});
|
|
1575
1583
|
}
|
|
1576
1584
|
b &= -131713;
|
|
1577
|
-
e =
|
|
1585
|
+
e = Xb({node:e, path:Rb(e), flags:b, seekable:!0, position:0, m:e.m, tc:[], error:!1});
|
|
1578
1586
|
e.m.open && e.m.open(e);
|
|
1579
|
-
!m.logReadFiles || b & 1 || (
|
|
1587
|
+
!m.logReadFiles || b & 1 || (jc ||= {}, a in jc || (jc[a] = 1));
|
|
1580
1588
|
return e;
|
|
1581
1589
|
}
|
|
1582
|
-
function
|
|
1590
|
+
function kc(a, b, c) {
|
|
1583
1591
|
if (null === a.X) {
|
|
1584
1592
|
throw new N(8);
|
|
1585
1593
|
}
|
|
@@ -1592,13 +1600,13 @@ function hc(a, b, c) {
|
|
|
1592
1600
|
a.position = a.m.ba(a, b, c);
|
|
1593
1601
|
a.tc = [];
|
|
1594
1602
|
}
|
|
1595
|
-
var
|
|
1596
|
-
function
|
|
1603
|
+
var lc;
|
|
1604
|
+
function mc(a, b, c) {
|
|
1597
1605
|
a = ib("/dev/" + a);
|
|
1598
|
-
var d =
|
|
1599
|
-
|
|
1600
|
-
var e =
|
|
1601
|
-
|
|
1606
|
+
var d = Gb(!!b, !!c);
|
|
1607
|
+
nc ||= 64;
|
|
1608
|
+
var e = nc++ << 8 | 0;
|
|
1609
|
+
xb(e, {open(f) {
|
|
1602
1610
|
f.seekable = !1;
|
|
1603
1611
|
}, close() {
|
|
1604
1612
|
c?.buffer?.length && c(10);
|
|
@@ -1631,14 +1639,14 @@ function jc(a, b, c) {
|
|
|
1631
1639
|
p && (f.node.timestamp = Date.now());
|
|
1632
1640
|
return n;
|
|
1633
1641
|
}});
|
|
1634
|
-
|
|
1642
|
+
gc(a, d, e);
|
|
1635
1643
|
}
|
|
1636
|
-
var
|
|
1644
|
+
var nc, oc = {}, jc, gb = void 0, pc = (a, b) => Object.defineProperty(b, "name", {value:a}), qc = [], rc = [], P, sc = a => {
|
|
1637
1645
|
if (!a) {
|
|
1638
1646
|
throw new P("Cannot use deleted val. handle = " + a);
|
|
1639
1647
|
}
|
|
1640
|
-
return
|
|
1641
|
-
},
|
|
1648
|
+
return rc[a];
|
|
1649
|
+
}, tc = a => {
|
|
1642
1650
|
switch(a) {
|
|
1643
1651
|
case void 0:
|
|
1644
1652
|
return 2;
|
|
@@ -1649,13 +1657,13 @@ var kc, lc = {}, gc, gb = void 0, mc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1649
1657
|
case !1:
|
|
1650
1658
|
return 8;
|
|
1651
1659
|
default:
|
|
1652
|
-
const b =
|
|
1653
|
-
|
|
1654
|
-
|
|
1660
|
+
const b = qc.pop() || rc.length;
|
|
1661
|
+
rc[b] = a;
|
|
1662
|
+
rc[b + 1] = 1;
|
|
1655
1663
|
return b;
|
|
1656
1664
|
}
|
|
1657
|
-
},
|
|
1658
|
-
var b = Error, c =
|
|
1665
|
+
}, uc = a => {
|
|
1666
|
+
var b = Error, c = pc(a, function(d) {
|
|
1659
1667
|
this.name = a;
|
|
1660
1668
|
this.message = d;
|
|
1661
1669
|
d = Error(d).stack;
|
|
@@ -1667,18 +1675,18 @@ var kc, lc = {}, gc, gb = void 0, mc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1667
1675
|
return void 0 === this.message ? this.name : `${this.name}: ${this.message}`;
|
|
1668
1676
|
};
|
|
1669
1677
|
return c;
|
|
1670
|
-
},
|
|
1671
|
-
for (var b = "";
|
|
1672
|
-
b +=
|
|
1678
|
+
}, vc, wc, Q = a => {
|
|
1679
|
+
for (var b = ""; B[a];) {
|
|
1680
|
+
b += wc[B[a++]];
|
|
1673
1681
|
}
|
|
1674
1682
|
return b;
|
|
1675
|
-
},
|
|
1676
|
-
for (;
|
|
1677
|
-
var a =
|
|
1683
|
+
}, xc = [], yc = () => {
|
|
1684
|
+
for (; xc.length;) {
|
|
1685
|
+
var a = xc.pop();
|
|
1678
1686
|
a.g.fa = !1;
|
|
1679
1687
|
a["delete"]();
|
|
1680
1688
|
}
|
|
1681
|
-
},
|
|
1689
|
+
}, zc, Ac = {}, Bc = (a, b) => {
|
|
1682
1690
|
if (void 0 === b) {
|
|
1683
1691
|
throw new P("ptr should not be undefined");
|
|
1684
1692
|
}
|
|
@@ -1686,116 +1694,116 @@ var kc, lc = {}, gc, gb = void 0, mc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1686
1694
|
b = a.na(b), a = a.C;
|
|
1687
1695
|
}
|
|
1688
1696
|
return b;
|
|
1689
|
-
},
|
|
1690
|
-
a =
|
|
1697
|
+
}, Cc = {}, Fc = a => {
|
|
1698
|
+
a = Dc(a);
|
|
1691
1699
|
var b = Q(a);
|
|
1692
|
-
|
|
1700
|
+
Ec(a);
|
|
1693
1701
|
return b;
|
|
1694
|
-
},
|
|
1695
|
-
var c =
|
|
1702
|
+
}, Gc = (a, b) => {
|
|
1703
|
+
var c = Cc[a];
|
|
1696
1704
|
if (void 0 === c) {
|
|
1697
|
-
throw a = `${b} has unknown type ${
|
|
1705
|
+
throw a = `${b} has unknown type ${Fc(a)}`, new P(a);
|
|
1698
1706
|
}
|
|
1699
1707
|
return c;
|
|
1700
|
-
},
|
|
1701
|
-
},
|
|
1708
|
+
}, Hc = () => {
|
|
1709
|
+
}, Ic = !1, Jc = (a, b, c) => {
|
|
1702
1710
|
if (b === c) {
|
|
1703
1711
|
return a;
|
|
1704
1712
|
}
|
|
1705
1713
|
if (void 0 === c.C) {
|
|
1706
1714
|
return null;
|
|
1707
1715
|
}
|
|
1708
|
-
a =
|
|
1716
|
+
a = Jc(a, b, c.C);
|
|
1709
1717
|
return null === a ? null : c.Mb(a);
|
|
1710
|
-
},
|
|
1711
|
-
b =
|
|
1712
|
-
return
|
|
1713
|
-
},
|
|
1718
|
+
}, Kc = {}, Lc = (a, b) => {
|
|
1719
|
+
b = Bc(a, b);
|
|
1720
|
+
return Ac[b];
|
|
1721
|
+
}, Mc, Oc = (a, b) => {
|
|
1714
1722
|
if (!b.u || !b.o) {
|
|
1715
|
-
throw new
|
|
1723
|
+
throw new Mc("makeClassHandle requires ptr and ptrType");
|
|
1716
1724
|
}
|
|
1717
1725
|
if (!!b.K !== !!b.F) {
|
|
1718
|
-
throw new
|
|
1726
|
+
throw new Mc("Both smartPtrType and smartPtr must be specified");
|
|
1719
1727
|
}
|
|
1720
1728
|
b.count = {value:1};
|
|
1721
|
-
return
|
|
1722
|
-
},
|
|
1729
|
+
return Nc(Object.create(a, {g:{value:b, writable:!0,},}));
|
|
1730
|
+
}, Nc = a => {
|
|
1723
1731
|
if ("undefined" === typeof FinalizationRegistry) {
|
|
1724
|
-
return
|
|
1732
|
+
return Nc = b => b, a;
|
|
1725
1733
|
}
|
|
1726
|
-
|
|
1734
|
+
Ic = new FinalizationRegistry(b => {
|
|
1727
1735
|
b = b.g;
|
|
1728
1736
|
--b.count.value;
|
|
1729
1737
|
0 === b.count.value && (b.F ? b.K.P(b.F) : b.u.i.P(b.o));
|
|
1730
1738
|
});
|
|
1731
|
-
|
|
1739
|
+
Nc = b => {
|
|
1732
1740
|
var c = b.g;
|
|
1733
|
-
c.F &&
|
|
1741
|
+
c.F && Ic.register(b, {g:c}, b);
|
|
1734
1742
|
return b;
|
|
1735
1743
|
};
|
|
1736
|
-
|
|
1737
|
-
|
|
1744
|
+
Hc = b => {
|
|
1745
|
+
Ic.unregister(b);
|
|
1738
1746
|
};
|
|
1739
|
-
return
|
|
1740
|
-
},
|
|
1747
|
+
return Nc(a);
|
|
1748
|
+
}, Pc = {}, Qc = a => {
|
|
1741
1749
|
for (; a.length;) {
|
|
1742
1750
|
var b = a.pop();
|
|
1743
1751
|
a.pop()(b);
|
|
1744
1752
|
}
|
|
1745
1753
|
};
|
|
1746
|
-
function
|
|
1747
|
-
return this.fromWireType(
|
|
1754
|
+
function Rc(a) {
|
|
1755
|
+
return this.fromWireType(F[a >> 2]);
|
|
1748
1756
|
}
|
|
1749
|
-
var
|
|
1757
|
+
var Sc = {}, Tc = {}, S = (a, b, c) => {
|
|
1750
1758
|
function d(k) {
|
|
1751
1759
|
k = c(k);
|
|
1752
1760
|
if (k.length !== a.length) {
|
|
1753
|
-
throw new
|
|
1761
|
+
throw new Mc("Mismatched type converter count");
|
|
1754
1762
|
}
|
|
1755
1763
|
for (var p = 0; p < a.length; ++p) {
|
|
1756
|
-
|
|
1764
|
+
Uc(a[p], k[p]);
|
|
1757
1765
|
}
|
|
1758
1766
|
}
|
|
1759
1767
|
a.forEach(function(k) {
|
|
1760
|
-
|
|
1768
|
+
Tc[k] = b;
|
|
1761
1769
|
});
|
|
1762
1770
|
var e = Array(b.length), f = [], g = 0;
|
|
1763
1771
|
b.forEach((k, p) => {
|
|
1764
|
-
|
|
1765
|
-
e[p] =
|
|
1772
|
+
Cc.hasOwnProperty(k) ? e[p] = Cc[k] : (f.push(k), Sc.hasOwnProperty(k) || (Sc[k] = []), Sc[k].push(() => {
|
|
1773
|
+
e[p] = Cc[k];
|
|
1766
1774
|
++g;
|
|
1767
1775
|
g === f.length && d(e);
|
|
1768
1776
|
}));
|
|
1769
1777
|
});
|
|
1770
1778
|
0 === f.length && d(e);
|
|
1771
1779
|
};
|
|
1772
|
-
function
|
|
1780
|
+
function Vc(a, b, c = {}) {
|
|
1773
1781
|
var d = b.name;
|
|
1774
1782
|
if (!a) {
|
|
1775
1783
|
throw new P(`type "${d}" must have a positive integer typeid pointer`);
|
|
1776
1784
|
}
|
|
1777
|
-
if (
|
|
1785
|
+
if (Cc.hasOwnProperty(a)) {
|
|
1778
1786
|
if (c.Wb) {
|
|
1779
1787
|
return;
|
|
1780
1788
|
}
|
|
1781
1789
|
throw new P(`Cannot register type '${d}' twice`);
|
|
1782
1790
|
}
|
|
1783
|
-
|
|
1784
|
-
delete
|
|
1785
|
-
|
|
1791
|
+
Cc[a] = b;
|
|
1792
|
+
delete Tc[a];
|
|
1793
|
+
Sc.hasOwnProperty(a) && (b = Sc[a], delete Sc[a], b.forEach(e => e()));
|
|
1786
1794
|
}
|
|
1787
|
-
function
|
|
1795
|
+
function Uc(a, b, c = {}) {
|
|
1788
1796
|
if (!("argPackAdvance" in b)) {
|
|
1789
1797
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
1790
1798
|
}
|
|
1791
|
-
return
|
|
1799
|
+
return Vc(a, b, c);
|
|
1792
1800
|
}
|
|
1793
|
-
var
|
|
1801
|
+
var Wc = a => {
|
|
1794
1802
|
throw new P(a.g.u.i.name + " instance already deleted");
|
|
1795
1803
|
};
|
|
1796
|
-
function
|
|
1804
|
+
function Xc() {
|
|
1797
1805
|
}
|
|
1798
|
-
var
|
|
1806
|
+
var Yc = (a, b, c) => {
|
|
1799
1807
|
if (void 0 === a[b].A) {
|
|
1800
1808
|
var d = a[b];
|
|
1801
1809
|
a[b] = function(...e) {
|
|
@@ -1807,12 +1815,12 @@ var Vc = (a, b, c) => {
|
|
|
1807
1815
|
a[b].A = [];
|
|
1808
1816
|
a[b].A[d.ea] = d;
|
|
1809
1817
|
}
|
|
1810
|
-
},
|
|
1818
|
+
}, Zc = (a, b, c) => {
|
|
1811
1819
|
if (m.hasOwnProperty(a)) {
|
|
1812
1820
|
if (void 0 === c || void 0 !== m[a].A && void 0 !== m[a].A[c]) {
|
|
1813
1821
|
throw new P(`Cannot register public name '${a}' twice`);
|
|
1814
1822
|
}
|
|
1815
|
-
|
|
1823
|
+
Yc(m, a, a);
|
|
1816
1824
|
if (m.hasOwnProperty(c)) {
|
|
1817
1825
|
throw new P(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`);
|
|
1818
1826
|
}
|
|
@@ -1820,7 +1828,7 @@ var Vc = (a, b, c) => {
|
|
|
1820
1828
|
} else {
|
|
1821
1829
|
m[a] = b, void 0 !== c && (m[a].Mc = c);
|
|
1822
1830
|
}
|
|
1823
|
-
},
|
|
1831
|
+
}, $c = a => {
|
|
1824
1832
|
if (void 0 === a) {
|
|
1825
1833
|
return "_unknown";
|
|
1826
1834
|
}
|
|
@@ -1828,7 +1836,7 @@ var Vc = (a, b, c) => {
|
|
|
1828
1836
|
var b = a.charCodeAt(0);
|
|
1829
1837
|
return 48 <= b && 57 >= b ? `_${a}` : a;
|
|
1830
1838
|
};
|
|
1831
|
-
function
|
|
1839
|
+
function ad(a, b, c, d, e, f, g, k) {
|
|
1832
1840
|
this.name = a;
|
|
1833
1841
|
this.constructor = b;
|
|
1834
1842
|
this.N = c;
|
|
@@ -1839,7 +1847,7 @@ function Yc(a, b, c, d, e, f, g, k) {
|
|
|
1839
1847
|
this.Mb = k;
|
|
1840
1848
|
this.qb = [];
|
|
1841
1849
|
}
|
|
1842
|
-
var
|
|
1850
|
+
var bd = (a, b, c) => {
|
|
1843
1851
|
for (; b !== c;) {
|
|
1844
1852
|
if (!b.na) {
|
|
1845
1853
|
throw new P(`Expected null or instance of ${c.name}, got an instance of ${b.name}`);
|
|
@@ -1849,7 +1857,7 @@ var Zc = (a, b, c) => {
|
|
|
1849
1857
|
}
|
|
1850
1858
|
return a;
|
|
1851
1859
|
};
|
|
1852
|
-
function
|
|
1860
|
+
function cd(a, b) {
|
|
1853
1861
|
if (null === b) {
|
|
1854
1862
|
if (this.Ma) {
|
|
1855
1863
|
throw new P(`null is not a valid ${this.name}`);
|
|
@@ -1857,14 +1865,14 @@ function $c(a, b) {
|
|
|
1857
1865
|
return 0;
|
|
1858
1866
|
}
|
|
1859
1867
|
if (!b.g) {
|
|
1860
|
-
throw new P(`Cannot pass "${
|
|
1868
|
+
throw new P(`Cannot pass "${dd(b)}" as a ${this.name}`);
|
|
1861
1869
|
}
|
|
1862
1870
|
if (!b.g.o) {
|
|
1863
1871
|
throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1864
1872
|
}
|
|
1865
|
-
return
|
|
1873
|
+
return bd(b.g.o, b.g.u.i, this.i);
|
|
1866
1874
|
}
|
|
1867
|
-
function
|
|
1875
|
+
function ed(a, b) {
|
|
1868
1876
|
if (null === b) {
|
|
1869
1877
|
if (this.Ma) {
|
|
1870
1878
|
throw new P(`null is not a valid ${this.name}`);
|
|
@@ -1877,7 +1885,7 @@ function bd(a, b) {
|
|
|
1877
1885
|
return 0;
|
|
1878
1886
|
}
|
|
1879
1887
|
if (!b || !b.g) {
|
|
1880
|
-
throw new P(`Cannot pass "${
|
|
1888
|
+
throw new P(`Cannot pass "${dd(b)}" as a ${this.name}`);
|
|
1881
1889
|
}
|
|
1882
1890
|
if (!b.g.o) {
|
|
1883
1891
|
throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
@@ -1885,7 +1893,7 @@ function bd(a, b) {
|
|
|
1885
1893
|
if (!this.sa && b.g.u.sa) {
|
|
1886
1894
|
throw new P(`Cannot convert argument of type ${b.g.K ? b.g.K.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1887
1895
|
}
|
|
1888
|
-
c =
|
|
1896
|
+
c = bd(b.g.o, b.g.u.i, this.i);
|
|
1889
1897
|
if (this.ta) {
|
|
1890
1898
|
if (void 0 === b.g.F) {
|
|
1891
1899
|
throw new P("Passing raw pointer to smart pointer is illegal");
|
|
@@ -1906,7 +1914,7 @@ function bd(a, b) {
|
|
|
1906
1914
|
c = b.g.F;
|
|
1907
1915
|
} else {
|
|
1908
1916
|
var d = b.clone();
|
|
1909
|
-
c = this.jc(c,
|
|
1917
|
+
c = this.jc(c, tc(() => d["delete"]()));
|
|
1910
1918
|
null !== a && a.push(this.P, c);
|
|
1911
1919
|
}
|
|
1912
1920
|
break;
|
|
@@ -1916,7 +1924,7 @@ function bd(a, b) {
|
|
|
1916
1924
|
}
|
|
1917
1925
|
return c;
|
|
1918
1926
|
}
|
|
1919
|
-
function
|
|
1927
|
+
function fd(a, b) {
|
|
1920
1928
|
if (null === b) {
|
|
1921
1929
|
if (this.Ma) {
|
|
1922
1930
|
throw new P(`null is not a valid ${this.name}`);
|
|
@@ -1924,7 +1932,7 @@ function cd(a, b) {
|
|
|
1924
1932
|
return 0;
|
|
1925
1933
|
}
|
|
1926
1934
|
if (!b.g) {
|
|
1927
|
-
throw new P(`Cannot pass "${
|
|
1935
|
+
throw new P(`Cannot pass "${dd(b)}" as a ${this.name}`);
|
|
1928
1936
|
}
|
|
1929
1937
|
if (!b.g.o) {
|
|
1930
1938
|
throw new P(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
@@ -1932,9 +1940,9 @@ function cd(a, b) {
|
|
|
1932
1940
|
if (b.g.u.sa) {
|
|
1933
1941
|
throw new P(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1934
1942
|
}
|
|
1935
|
-
return
|
|
1943
|
+
return bd(b.g.o, b.g.u.i, this.i);
|
|
1936
1944
|
}
|
|
1937
|
-
function
|
|
1945
|
+
function gd(a, b, c, d, e, f, g, k, p, n, t) {
|
|
1938
1946
|
this.name = a;
|
|
1939
1947
|
this.i = b;
|
|
1940
1948
|
this.Ma = c;
|
|
@@ -1946,36 +1954,36 @@ function dd(a, b, c, d, e, f, g, k, p, n, t) {
|
|
|
1946
1954
|
this.Oa = p;
|
|
1947
1955
|
this.jc = n;
|
|
1948
1956
|
this.P = t;
|
|
1949
|
-
e || void 0 !== b.C ? this.toWireType =
|
|
1957
|
+
e || void 0 !== b.C ? this.toWireType = ed : (this.toWireType = d ? cd : fd, this.M = null);
|
|
1950
1958
|
}
|
|
1951
|
-
var
|
|
1959
|
+
var hd = (a, b, c) => {
|
|
1952
1960
|
if (!m.hasOwnProperty(a)) {
|
|
1953
|
-
throw new
|
|
1961
|
+
throw new Mc("Replacing nonexistent public symbol");
|
|
1954
1962
|
}
|
|
1955
1963
|
void 0 !== m[a].A && void 0 !== c ? m[a].A[c] = b : (m[a] = b, m[a].ea = c);
|
|
1956
|
-
},
|
|
1957
|
-
var b =
|
|
1958
|
-
b || (a >=
|
|
1964
|
+
}, jd = [], kd, ld = a => {
|
|
1965
|
+
var b = jd[a];
|
|
1966
|
+
b || (a >= jd.length && (jd.length = a + 1), jd[a] = b = kd.get(a));
|
|
1959
1967
|
return b;
|
|
1960
|
-
},
|
|
1961
|
-
a.includes("j") ? (a = a.replace(/p/g, "i"), b = (0,m["dynCall_" + a])(b, ...c)) : b =
|
|
1968
|
+
}, md = (a, b, c = []) => {
|
|
1969
|
+
a.includes("j") ? (a = a.replace(/p/g, "i"), b = (0,m["dynCall_" + a])(b, ...c)) : b = ld(b)(...c);
|
|
1962
1970
|
return b;
|
|
1963
|
-
},
|
|
1971
|
+
}, nd = (a, b) => (...c) => md(a, b, c), U = (a, b) => {
|
|
1964
1972
|
a = Q(a);
|
|
1965
|
-
var c = a.includes("j") ?
|
|
1973
|
+
var c = a.includes("j") ? nd(a, b) : ld(b);
|
|
1966
1974
|
if ("function" != typeof c) {
|
|
1967
1975
|
throw new P(`unknown function pointer with signature ${a}: ${b}`);
|
|
1968
1976
|
}
|
|
1969
1977
|
return c;
|
|
1970
|
-
},
|
|
1978
|
+
}, od, pd = (a, b) => {
|
|
1971
1979
|
function c(f) {
|
|
1972
|
-
e[f] ||
|
|
1980
|
+
e[f] || Cc[f] || (Tc[f] ? Tc[f].forEach(c) : (d.push(f), e[f] = !0));
|
|
1973
1981
|
}
|
|
1974
1982
|
var d = [], e = {};
|
|
1975
1983
|
b.forEach(c);
|
|
1976
|
-
throw new
|
|
1984
|
+
throw new od(`${a}: ` + d.map(Fc).join([", "]));
|
|
1977
1985
|
};
|
|
1978
|
-
function
|
|
1986
|
+
function qd(a) {
|
|
1979
1987
|
for (var b = 1; b < a.length; ++b) {
|
|
1980
1988
|
if (null !== a[b] && void 0 === a[b].M) {
|
|
1981
1989
|
return !0;
|
|
@@ -1983,13 +1991,13 @@ function nd(a) {
|
|
|
1983
1991
|
}
|
|
1984
1992
|
return !1;
|
|
1985
1993
|
}
|
|
1986
|
-
function
|
|
1994
|
+
function ud(a, b, c, d, e) {
|
|
1987
1995
|
var f = b.length;
|
|
1988
1996
|
if (2 > f) {
|
|
1989
1997
|
throw new P("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1990
1998
|
}
|
|
1991
|
-
var g = null !== b[1] && null !== c, k =
|
|
1992
|
-
return
|
|
1999
|
+
var g = null !== b[1] && null !== c, k = qd(b), p = "void" !== b[0].name, n = f - 2, t = Array(n), x = [], y = [];
|
|
2000
|
+
return pc(a, function(...l) {
|
|
1993
2001
|
if (l.length !== n) {
|
|
1994
2002
|
throw new P(`function ${a} called with ${l.length} arguments, expected ${n}`);
|
|
1995
2003
|
}
|
|
@@ -2005,27 +2013,27 @@ function rd(a, b, c, d, e) {
|
|
|
2005
2013
|
}
|
|
2006
2014
|
l = d(...x);
|
|
2007
2015
|
if (k) {
|
|
2008
|
-
|
|
2016
|
+
Qc(y);
|
|
2009
2017
|
} else {
|
|
2010
2018
|
for (r = g ? 1 : 2; r < b.length; r++) {
|
|
2011
|
-
var
|
|
2012
|
-
null !== b[r].M && b[r].M(
|
|
2019
|
+
var D = 1 === r ? u : t[r - 2];
|
|
2020
|
+
null !== b[r].M && b[r].M(D);
|
|
2013
2021
|
}
|
|
2014
2022
|
}
|
|
2015
2023
|
u = p ? b[0].fromWireType(l) : void 0;
|
|
2016
2024
|
return u;
|
|
2017
2025
|
});
|
|
2018
2026
|
}
|
|
2019
|
-
var
|
|
2027
|
+
var vd = (a, b) => {
|
|
2020
2028
|
for (var c = [], d = 0; d < a; d++) {
|
|
2021
|
-
c.push(
|
|
2029
|
+
c.push(F[b + 4 * d >> 2]);
|
|
2022
2030
|
}
|
|
2023
2031
|
return c;
|
|
2024
|
-
},
|
|
2032
|
+
}, wd = a => {
|
|
2025
2033
|
a = a.trim();
|
|
2026
2034
|
const b = a.indexOf("(");
|
|
2027
2035
|
return -1 !== b ? a.substr(0, b) : a;
|
|
2028
|
-
},
|
|
2036
|
+
}, xd = (a, b, c) => {
|
|
2029
2037
|
if (!(a instanceof Object)) {
|
|
2030
2038
|
throw new P(`${c} with invalid "this": ${a}`);
|
|
2031
2039
|
}
|
|
@@ -2035,85 +2043,85 @@ var sd = (a, b) => {
|
|
|
2035
2043
|
if (!a.g.o) {
|
|
2036
2044
|
throw new P(`cannot call emscripten binding method ${c} on deleted object`);
|
|
2037
2045
|
}
|
|
2038
|
-
return
|
|
2039
|
-
},
|
|
2040
|
-
9 < a && 0 === --
|
|
2041
|
-
},
|
|
2042
|
-
var b =
|
|
2043
|
-
|
|
2046
|
+
return bd(a.g.o, a.g.u.i, b.i);
|
|
2047
|
+
}, yd = a => {
|
|
2048
|
+
9 < a && 0 === --rc[a + 1] && (rc[a] = void 0, qc.push(a));
|
|
2049
|
+
}, zd = {name:"emscripten::val", fromWireType:a => {
|
|
2050
|
+
var b = sc(a);
|
|
2051
|
+
yd(a);
|
|
2044
2052
|
return b;
|
|
2045
|
-
}, toWireType:(a, b) =>
|
|
2053
|
+
}, toWireType:(a, b) => tc(b), argPackAdvance:8, readValueFromPointer:Rc, M:null,}, Ad = (a, b, c) => {
|
|
2046
2054
|
switch(b) {
|
|
2047
2055
|
case 1:
|
|
2048
2056
|
return c ? function(d) {
|
|
2049
2057
|
return this.fromWireType(z[d]);
|
|
2050
2058
|
} : function(d) {
|
|
2051
|
-
return this.fromWireType(
|
|
2059
|
+
return this.fromWireType(B[d]);
|
|
2052
2060
|
};
|
|
2053
2061
|
case 2:
|
|
2054
2062
|
return c ? function(d) {
|
|
2055
|
-
return this.fromWireType(Da[d >> 1]);
|
|
2056
|
-
} : function(d) {
|
|
2057
2063
|
return this.fromWireType(Ea[d >> 1]);
|
|
2064
|
+
} : function(d) {
|
|
2065
|
+
return this.fromWireType(Fa[d >> 1]);
|
|
2058
2066
|
};
|
|
2059
2067
|
case 4:
|
|
2060
2068
|
return c ? function(d) {
|
|
2061
|
-
return this.fromWireType(
|
|
2069
|
+
return this.fromWireType(C[d >> 2]);
|
|
2062
2070
|
} : function(d) {
|
|
2063
|
-
return this.fromWireType(
|
|
2071
|
+
return this.fromWireType(F[d >> 2]);
|
|
2064
2072
|
};
|
|
2065
2073
|
default:
|
|
2066
2074
|
throw new TypeError(`invalid integer width (${b}): ${a}`);
|
|
2067
2075
|
}
|
|
2068
|
-
},
|
|
2076
|
+
}, dd = a => {
|
|
2069
2077
|
if (null === a) {
|
|
2070
2078
|
return "null";
|
|
2071
2079
|
}
|
|
2072
2080
|
var b = typeof a;
|
|
2073
2081
|
return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
|
|
2074
|
-
},
|
|
2082
|
+
}, Bd = (a, b) => {
|
|
2075
2083
|
switch(b) {
|
|
2076
2084
|
case 4:
|
|
2077
2085
|
return function(c) {
|
|
2078
|
-
return this.fromWireType(
|
|
2086
|
+
return this.fromWireType(Ia[c >> 2]);
|
|
2079
2087
|
};
|
|
2080
2088
|
case 8:
|
|
2081
2089
|
return function(c) {
|
|
2082
|
-
return this.fromWireType(
|
|
2090
|
+
return this.fromWireType(Ja[c >> 3]);
|
|
2083
2091
|
};
|
|
2084
2092
|
default:
|
|
2085
2093
|
throw new TypeError(`invalid float width (${b}): ${a}`);
|
|
2086
2094
|
}
|
|
2087
|
-
},
|
|
2095
|
+
}, Cd = (a, b, c) => {
|
|
2088
2096
|
switch(b) {
|
|
2089
2097
|
case 1:
|
|
2090
|
-
return c ? d => z[d] : d =>
|
|
2098
|
+
return c ? d => z[d] : d => B[d];
|
|
2091
2099
|
case 2:
|
|
2092
|
-
return c ? d =>
|
|
2100
|
+
return c ? d => Ea[d >> 1] : d => Fa[d >> 1];
|
|
2093
2101
|
case 4:
|
|
2094
|
-
return c ? d =>
|
|
2102
|
+
return c ? d => C[d >> 2] : d => F[d >> 2];
|
|
2095
2103
|
default:
|
|
2096
2104
|
throw new TypeError(`invalid integer width (${b}): ${a}`);
|
|
2097
2105
|
}
|
|
2098
|
-
},
|
|
2106
|
+
}, Dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, Ed = (a, b) => {
|
|
2099
2107
|
var c = a >> 1;
|
|
2100
|
-
for (var d = c + b / 2; !(c >= d) &&
|
|
2108
|
+
for (var d = c + b / 2; !(c >= d) && Fa[c];) {
|
|
2101
2109
|
++c;
|
|
2102
2110
|
}
|
|
2103
2111
|
c <<= 1;
|
|
2104
|
-
if (32 < c - a &&
|
|
2105
|
-
return
|
|
2112
|
+
if (32 < c - a && Dd) {
|
|
2113
|
+
return Dd.decode(B.subarray(a, c));
|
|
2106
2114
|
}
|
|
2107
2115
|
c = "";
|
|
2108
2116
|
for (d = 0; !(d >= b / 2); ++d) {
|
|
2109
|
-
var e =
|
|
2117
|
+
var e = Ea[a + 2 * d >> 1];
|
|
2110
2118
|
if (0 == e) {
|
|
2111
2119
|
break;
|
|
2112
2120
|
}
|
|
2113
2121
|
c += String.fromCharCode(e);
|
|
2114
2122
|
}
|
|
2115
2123
|
return c;
|
|
2116
|
-
},
|
|
2124
|
+
}, Fd = (a, b, c) => {
|
|
2117
2125
|
c ??= 2147483647;
|
|
2118
2126
|
if (2 > c) {
|
|
2119
2127
|
return 0;
|
|
@@ -2122,13 +2130,13 @@ var sd = (a, b) => {
|
|
|
2122
2130
|
var d = b;
|
|
2123
2131
|
c = c < 2 * a.length ? c / 2 : a.length;
|
|
2124
2132
|
for (var e = 0; e < c; ++e) {
|
|
2125
|
-
|
|
2133
|
+
Ea[b >> 1] = a.charCodeAt(e), b += 2;
|
|
2126
2134
|
}
|
|
2127
|
-
|
|
2135
|
+
Ea[b >> 1] = 0;
|
|
2128
2136
|
return b - d;
|
|
2129
|
-
},
|
|
2137
|
+
}, Gd = a => 2 * a.length, Hd = (a, b) => {
|
|
2130
2138
|
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
2131
|
-
var e =
|
|
2139
|
+
var e = C[a + 4 * c >> 2];
|
|
2132
2140
|
if (0 == e) {
|
|
2133
2141
|
break;
|
|
2134
2142
|
}
|
|
@@ -2136,7 +2144,7 @@ var sd = (a, b) => {
|
|
|
2136
2144
|
65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
|
|
2137
2145
|
}
|
|
2138
2146
|
return d;
|
|
2139
|
-
},
|
|
2147
|
+
}, Id = (a, b, c) => {
|
|
2140
2148
|
c ??= 2147483647;
|
|
2141
2149
|
if (4 > c) {
|
|
2142
2150
|
return 0;
|
|
@@ -2149,52 +2157,52 @@ var sd = (a, b) => {
|
|
|
2149
2157
|
var g = a.charCodeAt(++e);
|
|
2150
2158
|
f = 65536 + ((f & 1023) << 10) | g & 1023;
|
|
2151
2159
|
}
|
|
2152
|
-
|
|
2160
|
+
C[b >> 2] = f;
|
|
2153
2161
|
b += 4;
|
|
2154
2162
|
if (b + 4 > c) {
|
|
2155
2163
|
break;
|
|
2156
2164
|
}
|
|
2157
2165
|
}
|
|
2158
|
-
|
|
2166
|
+
C[b >> 2] = 0;
|
|
2159
2167
|
return b - d;
|
|
2160
|
-
},
|
|
2168
|
+
}, Jd = a => {
|
|
2161
2169
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
2162
2170
|
var d = a.charCodeAt(c);
|
|
2163
2171
|
55296 <= d && 57343 >= d && ++c;
|
|
2164
2172
|
b += 4;
|
|
2165
2173
|
}
|
|
2166
2174
|
return b;
|
|
2167
|
-
},
|
|
2175
|
+
}, Kd = (a, b, c) => {
|
|
2168
2176
|
var d = [];
|
|
2169
2177
|
a = a.toWireType(d, c);
|
|
2170
|
-
d.length && (
|
|
2178
|
+
d.length && (F[b >> 2] = tc(d));
|
|
2171
2179
|
return a;
|
|
2172
|
-
},
|
|
2173
|
-
var b =
|
|
2180
|
+
}, Ld = {}, Md = a => {
|
|
2181
|
+
var b = Ld[a];
|
|
2174
2182
|
return void 0 === b ? Q(a) : b;
|
|
2175
|
-
},
|
|
2176
|
-
var b =
|
|
2177
|
-
|
|
2183
|
+
}, Nd = [], Od = a => {
|
|
2184
|
+
var b = Nd.length;
|
|
2185
|
+
Nd.push(a);
|
|
2178
2186
|
return b;
|
|
2179
|
-
},
|
|
2187
|
+
}, Pd = (a, b) => {
|
|
2180
2188
|
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
2181
|
-
c[d] =
|
|
2189
|
+
c[d] = Gc(F[b + 4 * d >> 2], "parameter " + d);
|
|
2182
2190
|
}
|
|
2183
2191
|
return c;
|
|
2184
|
-
},
|
|
2185
|
-
if (!
|
|
2186
|
-
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", _:
|
|
2187
|
-
for (b in
|
|
2188
|
-
void 0 ===
|
|
2192
|
+
}, 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 = () => {
|
|
2193
|
+
if (!Wd) {
|
|
2194
|
+
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;
|
|
2195
|
+
for (b in Vd) {
|
|
2196
|
+
void 0 === Vd[b] ? delete a[b] : a[b] = Vd[b];
|
|
2189
2197
|
}
|
|
2190
2198
|
var c = [];
|
|
2191
2199
|
for (b in a) {
|
|
2192
2200
|
c.push(`${b}=${a[b]}`);
|
|
2193
2201
|
}
|
|
2194
|
-
|
|
2202
|
+
Wd = c;
|
|
2195
2203
|
}
|
|
2196
|
-
return
|
|
2197
|
-
},
|
|
2204
|
+
return Wd;
|
|
2205
|
+
}, 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) => {
|
|
2198
2206
|
function e(l, u, r) {
|
|
2199
2207
|
for (l = "number" == typeof l ? l.toString() : l || ""; l.length < u;) {
|
|
2200
2208
|
l = r[0] + l;
|
|
@@ -2205,12 +2213,12 @@ var sd = (a, b) => {
|
|
|
2205
2213
|
return e(l, u, "0");
|
|
2206
2214
|
}
|
|
2207
2215
|
function g(l, u) {
|
|
2208
|
-
function r(
|
|
2209
|
-
return 0 >
|
|
2216
|
+
function r(I) {
|
|
2217
|
+
return 0 > I ? -1 : 0 < I ? 1 : 0;
|
|
2210
2218
|
}
|
|
2211
|
-
var
|
|
2212
|
-
0 === (
|
|
2213
|
-
return
|
|
2219
|
+
var D;
|
|
2220
|
+
0 === (D = r(l.getFullYear() - u.getFullYear())) && 0 === (D = r(l.getMonth() - u.getMonth())) && (D = r(l.getDate() - u.getDate()));
|
|
2221
|
+
return D;
|
|
2214
2222
|
}
|
|
2215
2223
|
function k(l) {
|
|
2216
2224
|
switch(l.getDay()) {
|
|
@@ -2233,9 +2241,9 @@ var sd = (a, b) => {
|
|
|
2233
2241
|
function p(l) {
|
|
2234
2242
|
var u = l.ca;
|
|
2235
2243
|
for (l = new Date((new Date(l.da + 1900, 0, 1)).getTime()); 0 < u;) {
|
|
2236
|
-
var r = l.getMonth(),
|
|
2237
|
-
if (u >
|
|
2238
|
-
u -=
|
|
2244
|
+
var r = l.getMonth(), D = (Rd(l.getFullYear()) ? Yd : Zd)[r];
|
|
2245
|
+
if (u > D - l.getDate()) {
|
|
2246
|
+
u -= D - l.getDate() + 1, l.setDate(1), 11 > r ? l.setMonth(r + 1) : (l.setMonth(0), l.setFullYear(l.getFullYear() + 1));
|
|
2239
2247
|
} else {
|
|
2240
2248
|
l.setDate(l.getDate() + u);
|
|
2241
2249
|
break;
|
|
@@ -2246,9 +2254,9 @@ var sd = (a, b) => {
|
|
|
2246
2254
|
r = k(r);
|
|
2247
2255
|
return 0 >= g(u, l) ? 0 >= g(r, l) ? l.getFullYear() + 1 : l.getFullYear() : l.getFullYear() - 1;
|
|
2248
2256
|
}
|
|
2249
|
-
var n =
|
|
2250
|
-
d = {qc:
|
|
2251
|
-
c = c ? pb(
|
|
2257
|
+
var n = F[d + 40 >> 2];
|
|
2258
|
+
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) : "" : ""};
|
|
2259
|
+
c = c ? pb(B, c) : "";
|
|
2252
2260
|
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",};
|
|
2253
2261
|
for (var t in n) {
|
|
2254
2262
|
c = c.replace(new RegExp(t, "g"), n[t]);
|
|
@@ -2259,18 +2267,18 @@ var sd = (a, b) => {
|
|
|
2259
2267
|
0 == l ? l = 12 : 12 < l && (l -= 12);
|
|
2260
2268
|
return f(l, 2);
|
|
2261
2269
|
}, "%j":l => {
|
|
2262
|
-
for (var u = 0, r = 0; r <= l.Fa - 1; u += (
|
|
2270
|
+
for (var u = 0, r = 0; r <= l.Fa - 1; u += (Rd(l.da + 1900) ? Yd : Zd)[r++]) {
|
|
2263
2271
|
}
|
|
2264
2272
|
return f(l.Ra + u, 3);
|
|
2265
2273
|
}, "%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 => {
|
|
2266
2274
|
var u = Math.floor((l.ca + 7 - (l.S + 6) % 7) / 7);
|
|
2267
2275
|
2 >= (l.S + 371 - l.ca - 2) % 7 && u++;
|
|
2268
2276
|
if (u) {
|
|
2269
|
-
53 == u && (r = (l.S + 371 - l.ca) % 7, 4 == r || 3 == r &&
|
|
2277
|
+
53 == u && (r = (l.S + 371 - l.ca) % 7, 4 == r || 3 == r && Rd(l.da) || (u = 1));
|
|
2270
2278
|
} else {
|
|
2271
2279
|
u = 52;
|
|
2272
2280
|
var r = (l.S + 7 - l.ca - 1) % 7;
|
|
2273
|
-
(4 == r || 5 == r &&
|
|
2281
|
+
(4 == r || 5 == r && Rd(l.da % 400 - 1)) && u++;
|
|
2274
2282
|
}
|
|
2275
2283
|
return f(u, 2);
|
|
2276
2284
|
}, "%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 => {
|
|
@@ -2284,7 +2292,7 @@ var sd = (a, b) => {
|
|
|
2284
2292
|
c.includes(t) && (c = c.replace(new RegExp(t, "g"), n[t](d)));
|
|
2285
2293
|
}
|
|
2286
2294
|
c = c.replace(/\0\0/g, "%");
|
|
2287
|
-
t =
|
|
2295
|
+
t = ub(c, !1);
|
|
2288
2296
|
if (t.length > b) {
|
|
2289
2297
|
return 0;
|
|
2290
2298
|
}
|
|
@@ -2292,39 +2300,39 @@ var sd = (a, b) => {
|
|
|
2292
2300
|
return t.length - 1;
|
|
2293
2301
|
};
|
|
2294
2302
|
[44].forEach(a => {
|
|
2295
|
-
|
|
2296
|
-
|
|
2303
|
+
Eb[a] = new N(a);
|
|
2304
|
+
Eb[a].stack = "<generic error, no stack>";
|
|
2297
2305
|
});
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2306
|
+
Lb = Array(4096);
|
|
2307
|
+
Zb(O, "/");
|
|
2308
|
+
fc("/tmp");
|
|
2309
|
+
fc("/home");
|
|
2310
|
+
fc("/home/web_user");
|
|
2303
2311
|
(function() {
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2312
|
+
fc("/dev");
|
|
2313
|
+
xb(259, {read:() => 0, write:(d, e, f, g) => g,});
|
|
2314
|
+
gc("/dev/null", 259);
|
|
2315
|
+
wb(1280, zb);
|
|
2316
|
+
wb(1536, Ab);
|
|
2317
|
+
gc("/dev/tty", 1280);
|
|
2318
|
+
gc("/dev/tty1", 1536);
|
|
2311
2319
|
var a = new Uint8Array(1024), b = 0, c = () => {
|
|
2312
2320
|
0 === b && (b = mb(a).byteLength);
|
|
2313
2321
|
return a[--b];
|
|
2314
2322
|
};
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2323
|
+
mc("random", c);
|
|
2324
|
+
mc("urandom", c);
|
|
2325
|
+
fc("/dev/shm");
|
|
2326
|
+
fc("/dev/shm/tmp");
|
|
2319
2327
|
})();
|
|
2320
2328
|
(function() {
|
|
2321
|
-
|
|
2322
|
-
var a =
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
var b =
|
|
2329
|
+
fc("/proc");
|
|
2330
|
+
var a = fc("/proc/self");
|
|
2331
|
+
fc("/proc/self/fd");
|
|
2332
|
+
Zb({V() {
|
|
2333
|
+
var b = Db(a, "fd", 16895, 73);
|
|
2326
2334
|
b.j = {ka(c, d) {
|
|
2327
|
-
var e =
|
|
2335
|
+
var e = Wb(+d);
|
|
2328
2336
|
c = {parent:null, V:{mb:"fake"}, j:{ma:() => e.path},};
|
|
2329
2337
|
return c.parent = c;
|
|
2330
2338
|
}};
|
|
@@ -2337,34 +2345,34 @@ P = m.BindingError = class extends Error {
|
|
|
2337
2345
|
this.name = "BindingError";
|
|
2338
2346
|
}
|
|
2339
2347
|
};
|
|
2340
|
-
|
|
2341
|
-
m.count_emval_handles = () =>
|
|
2342
|
-
|
|
2343
|
-
for (var
|
|
2344
|
-
|
|
2348
|
+
rc.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1,);
|
|
2349
|
+
m.count_emval_handles = () => rc.length / 2 - 5 - qc.length;
|
|
2350
|
+
vc = m.PureVirtualError = uc("PureVirtualError");
|
|
2351
|
+
for (var ae = Array(256), be = 0; 256 > be; ++be) {
|
|
2352
|
+
ae[be] = String.fromCharCode(be);
|
|
2345
2353
|
}
|
|
2346
|
-
|
|
2347
|
-
m.getInheritedInstanceCount = () => Object.keys(
|
|
2354
|
+
wc = ae;
|
|
2355
|
+
m.getInheritedInstanceCount = () => Object.keys(Ac).length;
|
|
2348
2356
|
m.getLiveInheritedInstances = () => {
|
|
2349
2357
|
var a = [], b;
|
|
2350
|
-
for (b in
|
|
2351
|
-
|
|
2358
|
+
for (b in Ac) {
|
|
2359
|
+
Ac.hasOwnProperty(b) && a.push(Ac[b]);
|
|
2352
2360
|
}
|
|
2353
2361
|
return a;
|
|
2354
2362
|
};
|
|
2355
|
-
m.flushPendingDeletes =
|
|
2363
|
+
m.flushPendingDeletes = yc;
|
|
2356
2364
|
m.setDelayFunction = a => {
|
|
2357
|
-
|
|
2358
|
-
|
|
2365
|
+
zc = a;
|
|
2366
|
+
xc.length && zc && zc(yc);
|
|
2359
2367
|
};
|
|
2360
|
-
|
|
2368
|
+
Mc = m.InternalError = class extends Error {
|
|
2361
2369
|
constructor(a) {
|
|
2362
2370
|
super(a);
|
|
2363
2371
|
this.name = "InternalError";
|
|
2364
2372
|
}
|
|
2365
2373
|
};
|
|
2366
|
-
Object.assign(
|
|
2367
|
-
if (!(this instanceof
|
|
2374
|
+
Object.assign(Xc.prototype, {isAliasOf:function(a) {
|
|
2375
|
+
if (!(this instanceof Xc && a instanceof Xc)) {
|
|
2368
2376
|
return !1;
|
|
2369
2377
|
}
|
|
2370
2378
|
var b = this.g.u.i, c = this.g.o;
|
|
@@ -2378,21 +2386,21 @@ Object.assign(Uc.prototype, {isAliasOf:function(a) {
|
|
|
2378
2386
|
}
|
|
2379
2387
|
return b === d && c === a;
|
|
2380
2388
|
}, clone:function() {
|
|
2381
|
-
this.g.o ||
|
|
2389
|
+
this.g.o || Wc(this);
|
|
2382
2390
|
if (this.g.ia) {
|
|
2383
2391
|
return this.g.count.value += 1, this;
|
|
2384
2392
|
}
|
|
2385
|
-
var a =
|
|
2393
|
+
var a = Nc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
|
|
2386
2394
|
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,},}}));
|
|
2387
2395
|
a.g.count.value += 1;
|
|
2388
2396
|
a.g.fa = !1;
|
|
2389
2397
|
return a;
|
|
2390
2398
|
}, ["delete"]() {
|
|
2391
|
-
this.g.o ||
|
|
2399
|
+
this.g.o || Wc(this);
|
|
2392
2400
|
if (this.g.fa && !this.g.ia) {
|
|
2393
2401
|
throw new P("Object already scheduled for deletion");
|
|
2394
2402
|
}
|
|
2395
|
-
|
|
2403
|
+
Hc(this);
|
|
2396
2404
|
var a = this.g;
|
|
2397
2405
|
--a.count.value;
|
|
2398
2406
|
0 === a.count.value && (a.F ? a.K.P(a.F) : a.u.i.P(a.o));
|
|
@@ -2400,29 +2408,29 @@ Object.assign(Uc.prototype, {isAliasOf:function(a) {
|
|
|
2400
2408
|
}, isDeleted:function() {
|
|
2401
2409
|
return !this.g.o;
|
|
2402
2410
|
}, deleteLater:function() {
|
|
2403
|
-
this.g.o ||
|
|
2411
|
+
this.g.o || Wc(this);
|
|
2404
2412
|
if (this.g.fa && !this.g.ia) {
|
|
2405
2413
|
throw new P("Object already scheduled for deletion");
|
|
2406
2414
|
}
|
|
2407
|
-
|
|
2408
|
-
1 ===
|
|
2415
|
+
xc.push(this);
|
|
2416
|
+
1 === xc.length && zc && zc(yc);
|
|
2409
2417
|
this.g.fa = !0;
|
|
2410
2418
|
return this;
|
|
2411
2419
|
},});
|
|
2412
|
-
Object.assign(
|
|
2420
|
+
Object.assign(gd.prototype, {Sb(a) {
|
|
2413
2421
|
this.rb && (a = this.rb(a));
|
|
2414
2422
|
return a;
|
|
2415
2423
|
}, bb(a) {
|
|
2416
2424
|
this.P?.(a);
|
|
2417
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2425
|
+
}, argPackAdvance:8, readValueFromPointer:Rc, fromWireType:function(a) {
|
|
2418
2426
|
function b() {
|
|
2419
|
-
return this.ta ?
|
|
2427
|
+
return this.ta ? Oc(this.i.N, {u:this.ic, o:c, K:this, F:a,}) : Oc(this.i.N, {u:this, o:a,});
|
|
2420
2428
|
}
|
|
2421
2429
|
var c = this.Sb(a);
|
|
2422
2430
|
if (!c) {
|
|
2423
2431
|
return this.bb(a), null;
|
|
2424
2432
|
}
|
|
2425
|
-
var d =
|
|
2433
|
+
var d = Lc(this.i, c);
|
|
2426
2434
|
if (void 0 !== d) {
|
|
2427
2435
|
if (0 === d.g.count.value) {
|
|
2428
2436
|
return d.g.o = c, d.g.F = a, d.clone();
|
|
@@ -2432,29 +2440,29 @@ Object.assign(dd.prototype, {Sb(a) {
|
|
|
2432
2440
|
return d;
|
|
2433
2441
|
}
|
|
2434
2442
|
d = this.i.Rb(c);
|
|
2435
|
-
d =
|
|
2443
|
+
d = Kc[d];
|
|
2436
2444
|
if (!d) {
|
|
2437
2445
|
return b.call(this);
|
|
2438
2446
|
}
|
|
2439
2447
|
d = this.sa ? d.Ib : d.pointerType;
|
|
2440
|
-
var e =
|
|
2441
|
-
return null === e ? b.call(this) : this.ta ?
|
|
2448
|
+
var e = Jc(c, this.i, d.i);
|
|
2449
|
+
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,});
|
|
2442
2450
|
},});
|
|
2443
|
-
|
|
2444
|
-
var
|
|
2451
|
+
od = m.UnboundTypeError = uc("UnboundTypeError");
|
|
2452
|
+
var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
2445
2453
|
gb = c;
|
|
2446
2454
|
try {
|
|
2447
|
-
var d =
|
|
2455
|
+
var d = Wb(a);
|
|
2448
2456
|
switch(b) {
|
|
2449
2457
|
case 0:
|
|
2450
2458
|
var e = fb();
|
|
2451
2459
|
if (0 > e) {
|
|
2452
2460
|
break;
|
|
2453
2461
|
}
|
|
2454
|
-
for (;
|
|
2462
|
+
for (; Jb[e];) {
|
|
2455
2463
|
e++;
|
|
2456
2464
|
}
|
|
2457
|
-
return
|
|
2465
|
+
return Yb(d, e).X;
|
|
2458
2466
|
case 1:
|
|
2459
2467
|
case 2:
|
|
2460
2468
|
return 0;
|
|
@@ -2463,14 +2471,14 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2463
2471
|
case 4:
|
|
2464
2472
|
return e = fb(), d.flags |= e, 0;
|
|
2465
2473
|
case 12:
|
|
2466
|
-
return e = fb(),
|
|
2474
|
+
return e = fb(), Ea[e + 0 >> 1] = 2, 0;
|
|
2467
2475
|
case 13:
|
|
2468
2476
|
case 14:
|
|
2469
2477
|
return 0;
|
|
2470
2478
|
}
|
|
2471
2479
|
return -28;
|
|
2472
2480
|
} catch (f) {
|
|
2473
|
-
if ("undefined" == typeof
|
|
2481
|
+
if ("undefined" == typeof oc || "ErrnoError" !== f.name) {
|
|
2474
2482
|
throw f;
|
|
2475
2483
|
}
|
|
2476
2484
|
return -f.aa;
|
|
@@ -2478,7 +2486,7 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2478
2486
|
}, __syscall_ioctl:function(a, b, c) {
|
|
2479
2487
|
gb = c;
|
|
2480
2488
|
try {
|
|
2481
|
-
var d =
|
|
2489
|
+
var d = Wb(a);
|
|
2482
2490
|
switch(b) {
|
|
2483
2491
|
case 21509:
|
|
2484
2492
|
return d.s ? 0 : -59;
|
|
@@ -2489,10 +2497,10 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2489
2497
|
if (d.s.W.Yb) {
|
|
2490
2498
|
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,];
|
|
2491
2499
|
var e = fb();
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2500
|
+
C[e >> 2] = 25856;
|
|
2501
|
+
C[e + 4 >> 2] = 5;
|
|
2502
|
+
C[e + 8 >> 2] = 191;
|
|
2503
|
+
C[e + 12 >> 2] = 35387;
|
|
2496
2504
|
for (var f = 0; 32 > f; f++) {
|
|
2497
2505
|
z[e + f + 17] = a[f] || 0;
|
|
2498
2506
|
}
|
|
@@ -2519,7 +2527,7 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2519
2527
|
return -59;
|
|
2520
2528
|
}
|
|
2521
2529
|
e = fb();
|
|
2522
|
-
return
|
|
2530
|
+
return C[e >> 2] = 0;
|
|
2523
2531
|
case 21520:
|
|
2524
2532
|
return d.s ? -28 : -59;
|
|
2525
2533
|
case 21531:
|
|
@@ -2532,7 +2540,7 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2532
2540
|
if (!d.s) {
|
|
2533
2541
|
return -59;
|
|
2534
2542
|
}
|
|
2535
|
-
d.s.W.$b && (f = [24, 80], e = fb(),
|
|
2543
|
+
d.s.W.$b && (f = [24, 80], e = fb(), Ea[e >> 1] = f[0], Ea[e + 2 >> 1] = f[1]);
|
|
2536
2544
|
return 0;
|
|
2537
2545
|
case 21524:
|
|
2538
2546
|
return d.s ? 0 : -59;
|
|
@@ -2542,7 +2550,7 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2542
2550
|
return -28;
|
|
2543
2551
|
}
|
|
2544
2552
|
} catch (g) {
|
|
2545
|
-
if ("undefined" == typeof
|
|
2553
|
+
if ("undefined" == typeof oc || "ErrnoError" !== g.name) {
|
|
2546
2554
|
throw g;
|
|
2547
2555
|
}
|
|
2548
2556
|
return -g.aa;
|
|
@@ -2550,36 +2558,36 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2550
2558
|
}, __syscall_openat:function(a, b, c, d) {
|
|
2551
2559
|
gb = d;
|
|
2552
2560
|
try {
|
|
2553
|
-
b = b ? pb(
|
|
2561
|
+
b = b ? pb(B, b) : "";
|
|
2554
2562
|
var e = b;
|
|
2555
2563
|
if ("/" === e.charAt(0)) {
|
|
2556
2564
|
b = e;
|
|
2557
2565
|
} else {
|
|
2558
|
-
var f = -100 === a ? "/" :
|
|
2566
|
+
var f = -100 === a ? "/" : Wb(a).path;
|
|
2559
2567
|
if (0 == e.length) {
|
|
2560
2568
|
throw new N(44);
|
|
2561
2569
|
}
|
|
2562
2570
|
b = ib(f + "/" + e);
|
|
2563
2571
|
}
|
|
2564
2572
|
var g = d ? fb() : 0;
|
|
2565
|
-
return
|
|
2573
|
+
return ic(b, c, g).X;
|
|
2566
2574
|
} catch (k) {
|
|
2567
|
-
if ("undefined" == typeof
|
|
2575
|
+
if ("undefined" == typeof oc || "ErrnoError" !== k.name) {
|
|
2568
2576
|
throw k;
|
|
2569
2577
|
}
|
|
2570
2578
|
return -k.aa;
|
|
2571
2579
|
}
|
|
2572
2580
|
}, _abort_js:() => {
|
|
2573
|
-
|
|
2581
|
+
Sa("");
|
|
2574
2582
|
}, _embind_create_inheriting_constructor:(a, b, c) => {
|
|
2575
2583
|
a = Q(a);
|
|
2576
|
-
b =
|
|
2577
|
-
c =
|
|
2584
|
+
b = Gc(b, "wrapper");
|
|
2585
|
+
c = sc(c);
|
|
2578
2586
|
var d = b.i, e = d.N, f = d.C.N, g = d.C.constructor;
|
|
2579
|
-
a =
|
|
2587
|
+
a = pc(a, function(...k) {
|
|
2580
2588
|
d.C.qb.forEach(function(p) {
|
|
2581
2589
|
if (this[p] === f[p]) {
|
|
2582
|
-
throw new
|
|
2590
|
+
throw new vc(`Pure virtual function ${p} must be implemented in JavaScript`);
|
|
2583
2591
|
}
|
|
2584
2592
|
}.bind(this));
|
|
2585
2593
|
Object.defineProperty(this, "__parent", {value:e});
|
|
@@ -2590,47 +2598,47 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2590
2598
|
throw new P("Pass correct 'this' to __construct");
|
|
2591
2599
|
}
|
|
2592
2600
|
k = g.implement(this, ...k);
|
|
2593
|
-
|
|
2601
|
+
Hc(k);
|
|
2594
2602
|
var p = k.g;
|
|
2595
2603
|
k.notifyOnDestruction();
|
|
2596
2604
|
p.ia = !0;
|
|
2597
2605
|
Object.defineProperties(this, {g:{value:p}});
|
|
2598
|
-
|
|
2606
|
+
Nc(this);
|
|
2599
2607
|
k = p.o;
|
|
2600
|
-
k =
|
|
2601
|
-
if (
|
|
2608
|
+
k = Bc(d, k);
|
|
2609
|
+
if (Ac.hasOwnProperty(k)) {
|
|
2602
2610
|
throw new P(`Tried to register registered instance: ${k}`);
|
|
2603
2611
|
}
|
|
2604
|
-
|
|
2612
|
+
Ac[k] = this;
|
|
2605
2613
|
};
|
|
2606
2614
|
e.__destruct = function() {
|
|
2607
2615
|
if (this === e) {
|
|
2608
2616
|
throw new P("Pass correct 'this' to __destruct");
|
|
2609
2617
|
}
|
|
2610
|
-
|
|
2618
|
+
Hc(this);
|
|
2611
2619
|
var k = this.g.o;
|
|
2612
|
-
k =
|
|
2613
|
-
if (
|
|
2614
|
-
delete
|
|
2620
|
+
k = Bc(d, k);
|
|
2621
|
+
if (Ac.hasOwnProperty(k)) {
|
|
2622
|
+
delete Ac[k];
|
|
2615
2623
|
} else {
|
|
2616
2624
|
throw new P(`Tried to unregister unregistered instance: ${k}`);
|
|
2617
2625
|
}
|
|
2618
2626
|
};
|
|
2619
2627
|
a.prototype = Object.create(e);
|
|
2620
2628
|
Object.assign(a.prototype, c);
|
|
2621
|
-
return
|
|
2629
|
+
return tc(a);
|
|
2622
2630
|
}, _embind_finalize_value_object:a => {
|
|
2623
|
-
var b =
|
|
2624
|
-
delete
|
|
2631
|
+
var b = Pc[a];
|
|
2632
|
+
delete Pc[a];
|
|
2625
2633
|
var c = b.Oa, d = b.P, e = b.fb, f = e.map(g => g.Vb).concat(e.map(g => g.lc));
|
|
2626
|
-
|
|
2634
|
+
S([a], f, g => {
|
|
2627
2635
|
var k = {};
|
|
2628
2636
|
e.forEach((p, n) => {
|
|
2629
2637
|
var t = g[n], x = p.Tb, y = p.Ub, l = g[n + e.length], u = p.kc, r = p.mc;
|
|
2630
|
-
k[p.Pb] = {read:
|
|
2638
|
+
k[p.Pb] = {read:D => t.fromWireType(x(y, D)), write:(D, I) => {
|
|
2631
2639
|
var w = [];
|
|
2632
|
-
u(r,
|
|
2633
|
-
|
|
2640
|
+
u(r, D, l.toWireType(w, I));
|
|
2641
|
+
Qc(w);
|
|
2634
2642
|
}};
|
|
2635
2643
|
});
|
|
2636
2644
|
return [{name:b.name, fromWireType:p => {
|
|
@@ -2652,80 +2660,80 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2652
2660
|
}
|
|
2653
2661
|
null !== p && p.push(d, x);
|
|
2654
2662
|
return x;
|
|
2655
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2663
|
+
}, argPackAdvance:8, readValueFromPointer:Rc, M:d,}];
|
|
2656
2664
|
});
|
|
2657
2665
|
}, _embind_register_bigint:() => {
|
|
2658
2666
|
}, _embind_register_bool:(a, b, c, d) => {
|
|
2659
2667
|
b = Q(b);
|
|
2660
|
-
|
|
2668
|
+
Uc(a, {name:b, fromWireType:function(e) {
|
|
2661
2669
|
return !!e;
|
|
2662
2670
|
}, toWireType:function(e, f) {
|
|
2663
2671
|
return f ? c : d;
|
|
2664
2672
|
}, argPackAdvance:8, readValueFromPointer:function(e) {
|
|
2665
|
-
return this.fromWireType(
|
|
2673
|
+
return this.fromWireType(B[e]);
|
|
2666
2674
|
}, M:null,});
|
|
2667
2675
|
}, _embind_register_class:(a, b, c, d, e, f, g, k, p, n, t, x, y) => {
|
|
2668
2676
|
t = Q(t);
|
|
2669
|
-
f =
|
|
2670
|
-
k &&=
|
|
2671
|
-
n &&=
|
|
2672
|
-
y =
|
|
2673
|
-
var l =
|
|
2674
|
-
|
|
2675
|
-
|
|
2677
|
+
f = U(e, f);
|
|
2678
|
+
k &&= U(g, k);
|
|
2679
|
+
n &&= U(p, n);
|
|
2680
|
+
y = U(x, y);
|
|
2681
|
+
var l = $c(t);
|
|
2682
|
+
Zc(l, function() {
|
|
2683
|
+
pd(`Cannot construct ${t} due to unbound types`, [d]);
|
|
2676
2684
|
});
|
|
2677
|
-
|
|
2685
|
+
S([a, b, c], d ? [d] : [], u => {
|
|
2678
2686
|
u = u[0];
|
|
2679
2687
|
if (d) {
|
|
2680
2688
|
var r = u.i;
|
|
2681
|
-
var
|
|
2689
|
+
var D = r.N;
|
|
2682
2690
|
} else {
|
|
2683
|
-
|
|
2691
|
+
D = Xc.prototype;
|
|
2684
2692
|
}
|
|
2685
|
-
u =
|
|
2686
|
-
if (Object.getPrototypeOf(this) !==
|
|
2693
|
+
u = pc(t, function(...R) {
|
|
2694
|
+
if (Object.getPrototypeOf(this) !== I) {
|
|
2687
2695
|
throw new P("Use 'new' to construct " + t);
|
|
2688
2696
|
}
|
|
2689
2697
|
if (void 0 === w.$) {
|
|
2690
2698
|
throw new P(t + " has no accessible constructor");
|
|
2691
2699
|
}
|
|
2692
|
-
var
|
|
2693
|
-
if (void 0 ===
|
|
2694
|
-
throw new P(`Tried to invoke ctor of ${t} with invalid number of parameters (${
|
|
2700
|
+
var V = w.$[R.length];
|
|
2701
|
+
if (void 0 === V) {
|
|
2702
|
+
throw new P(`Tried to invoke ctor of ${t} with invalid number of parameters (${R.length}) - expected (${Object.keys(w.$).toString()}) parameters instead!`);
|
|
2695
2703
|
}
|
|
2696
|
-
return
|
|
2704
|
+
return V.apply(this, R);
|
|
2697
2705
|
});
|
|
2698
|
-
var
|
|
2699
|
-
u.prototype =
|
|
2700
|
-
var w = new
|
|
2706
|
+
var I = Object.create(D, {constructor:{value:u},});
|
|
2707
|
+
u.prototype = I;
|
|
2708
|
+
var w = new ad(t, u, I, y, r, f, k, n);
|
|
2701
2709
|
if (w.C) {
|
|
2702
|
-
var
|
|
2703
|
-
(
|
|
2710
|
+
var L;
|
|
2711
|
+
(L = w.C).oa ?? (L.oa = []);
|
|
2704
2712
|
w.C.oa.push(w);
|
|
2705
2713
|
}
|
|
2706
|
-
r = new
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
return [r,
|
|
2714
|
+
r = new gd(t, w, !0, !1, !1);
|
|
2715
|
+
L = new gd(t + "*", w, !1, !1, !1);
|
|
2716
|
+
D = new gd(t + " const*", w, !1, !0, !1);
|
|
2717
|
+
Kc[a] = {pointerType:L, Ib:D};
|
|
2718
|
+
hd(l, u);
|
|
2719
|
+
return [r, L, D];
|
|
2712
2720
|
});
|
|
2713
2721
|
}, _embind_register_class_class_function:(a, b, c, d, e, f, g) => {
|
|
2714
|
-
var k =
|
|
2722
|
+
var k = vd(c, d);
|
|
2715
2723
|
b = Q(b);
|
|
2716
|
-
b =
|
|
2717
|
-
f =
|
|
2718
|
-
|
|
2724
|
+
b = wd(b);
|
|
2725
|
+
f = U(e, f);
|
|
2726
|
+
S([], [a], p => {
|
|
2719
2727
|
function n() {
|
|
2720
|
-
|
|
2728
|
+
pd(`Cannot call ${t} due to unbound types`, k);
|
|
2721
2729
|
}
|
|
2722
2730
|
p = p[0];
|
|
2723
2731
|
var t = `${p.name}.${b}`;
|
|
2724
2732
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2725
2733
|
var x = p.i.constructor;
|
|
2726
|
-
void 0 === x[b] ? (n.ea = c - 1, x[b] = n) : (
|
|
2727
|
-
|
|
2728
|
-
y =
|
|
2734
|
+
void 0 === x[b] ? (n.ea = c - 1, x[b] = n) : (Yc(x, b, t), x[b].A[c - 1] = n);
|
|
2735
|
+
S([], k, y => {
|
|
2736
|
+
y = ud(t, [y[0], null].concat(y.slice(1)), null, f, g);
|
|
2729
2737
|
void 0 === x[b].A ? (y.ea = c - 1, x[b] = y) : x[b].A[c - 1] = y;
|
|
2730
2738
|
if (p.i.oa) {
|
|
2731
2739
|
for (const l of p.i.oa) {
|
|
@@ -2738,27 +2746,27 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2738
2746
|
});
|
|
2739
2747
|
}, _embind_register_class_class_property:(a, b, c, d, e, f, g, k) => {
|
|
2740
2748
|
b = Q(b);
|
|
2741
|
-
f =
|
|
2742
|
-
|
|
2749
|
+
f = U(e, f);
|
|
2750
|
+
S([], [a], p => {
|
|
2743
2751
|
p = p[0];
|
|
2744
2752
|
var n = `${p.name}.${b}`, t = {get() {
|
|
2745
|
-
|
|
2753
|
+
pd(`Cannot access ${n} due to unbound types`, [c]);
|
|
2746
2754
|
}, enumerable:!0, configurable:!0};
|
|
2747
2755
|
t.set = k ? () => {
|
|
2748
|
-
|
|
2756
|
+
pd(`Cannot access ${n} due to unbound types`, [c]);
|
|
2749
2757
|
} : () => {
|
|
2750
2758
|
throw new P(`${n} is a read-only property`);
|
|
2751
2759
|
};
|
|
2752
2760
|
Object.defineProperty(p.i.constructor, b, t);
|
|
2753
|
-
|
|
2761
|
+
S([], [c], x => {
|
|
2754
2762
|
x = x[0];
|
|
2755
2763
|
var y = {get() {
|
|
2756
2764
|
return x.fromWireType(f(d));
|
|
2757
2765
|
}, enumerable:!0};
|
|
2758
|
-
k && (k =
|
|
2766
|
+
k && (k = U(g, k), y.set = l => {
|
|
2759
2767
|
var u = [];
|
|
2760
2768
|
k(d, x.toWireType(u, l));
|
|
2761
|
-
|
|
2769
|
+
Qc(u);
|
|
2762
2770
|
});
|
|
2763
2771
|
Object.defineProperty(p.i.constructor, b, y);
|
|
2764
2772
|
return [];
|
|
@@ -2766,9 +2774,9 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2766
2774
|
return [];
|
|
2767
2775
|
});
|
|
2768
2776
|
}, _embind_register_class_constructor:(a, b, c, d, e, f) => {
|
|
2769
|
-
var g =
|
|
2770
|
-
e =
|
|
2771
|
-
|
|
2777
|
+
var g = vd(b, c);
|
|
2778
|
+
e = U(d, e);
|
|
2779
|
+
S([], [a], k => {
|
|
2772
2780
|
k = k[0];
|
|
2773
2781
|
var p = `constructor ${k.name}`;
|
|
2774
2782
|
void 0 === k.i.$ && (k.i.$ = []);
|
|
@@ -2776,32 +2784,32 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2776
2784
|
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!`);
|
|
2777
2785
|
}
|
|
2778
2786
|
k.i.$[b - 1] = () => {
|
|
2779
|
-
|
|
2787
|
+
pd(`Cannot construct ${k.name} due to unbound types`, g);
|
|
2780
2788
|
};
|
|
2781
|
-
|
|
2789
|
+
S([], g, n => {
|
|
2782
2790
|
n.splice(1, 0, null);
|
|
2783
|
-
k.i.$[b - 1] =
|
|
2791
|
+
k.i.$[b - 1] = ud(p, n, null, e, f);
|
|
2784
2792
|
return [];
|
|
2785
2793
|
});
|
|
2786
2794
|
return [];
|
|
2787
2795
|
});
|
|
2788
2796
|
}, _embind_register_class_function:(a, b, c, d, e, f, g, k) => {
|
|
2789
|
-
var p =
|
|
2797
|
+
var p = vd(c, d);
|
|
2790
2798
|
b = Q(b);
|
|
2791
|
-
b =
|
|
2792
|
-
f =
|
|
2793
|
-
|
|
2799
|
+
b = wd(b);
|
|
2800
|
+
f = U(e, f);
|
|
2801
|
+
S([], [a], n => {
|
|
2794
2802
|
function t() {
|
|
2795
|
-
|
|
2803
|
+
pd(`Cannot call ${x} due to unbound types`, p);
|
|
2796
2804
|
}
|
|
2797
2805
|
n = n[0];
|
|
2798
2806
|
var x = `${n.name}.${b}`;
|
|
2799
2807
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2800
2808
|
k && n.i.qb.push(b);
|
|
2801
2809
|
var y = n.i.N, l = y[b];
|
|
2802
|
-
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) : (
|
|
2803
|
-
|
|
2804
|
-
u =
|
|
2810
|
+
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);
|
|
2811
|
+
S([], p, u => {
|
|
2812
|
+
u = ud(x, u, n, f, g);
|
|
2805
2813
|
void 0 === y[b].A ? (u.ea = c - 2, y[b] = u) : y[b].A[c - 2] = u;
|
|
2806
2814
|
return [];
|
|
2807
2815
|
});
|
|
@@ -2809,28 +2817,28 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2809
2817
|
});
|
|
2810
2818
|
}, _embind_register_class_property:(a, b, c, d, e, f, g, k, p, n) => {
|
|
2811
2819
|
b = Q(b);
|
|
2812
|
-
e =
|
|
2813
|
-
|
|
2820
|
+
e = U(d, e);
|
|
2821
|
+
S([], [a], t => {
|
|
2814
2822
|
t = t[0];
|
|
2815
2823
|
var x = `${t.name}.${b}`, y = {get() {
|
|
2816
|
-
|
|
2824
|
+
pd(`Cannot access ${x} due to unbound types`, [c, g]);
|
|
2817
2825
|
}, enumerable:!0, configurable:!0};
|
|
2818
|
-
y.set = p ? () =>
|
|
2826
|
+
y.set = p ? () => pd(`Cannot access ${x} due to unbound types`, [c, g]) : () => {
|
|
2819
2827
|
throw new P(x + " is a read-only property");
|
|
2820
2828
|
};
|
|
2821
2829
|
Object.defineProperty(t.i.N, b, y);
|
|
2822
|
-
|
|
2830
|
+
S([], p ? [c, g] : [c], l => {
|
|
2823
2831
|
var u = l[0], r = {get() {
|
|
2824
|
-
var
|
|
2825
|
-
return u.fromWireType(e(f,
|
|
2832
|
+
var I = xd(this, t, x + " getter");
|
|
2833
|
+
return u.fromWireType(e(f, I));
|
|
2826
2834
|
}, enumerable:!0};
|
|
2827
2835
|
if (p) {
|
|
2828
|
-
p =
|
|
2829
|
-
var
|
|
2830
|
-
r.set = function(
|
|
2831
|
-
var w =
|
|
2832
|
-
p(n, w,
|
|
2833
|
-
|
|
2836
|
+
p = U(k, p);
|
|
2837
|
+
var D = l[1];
|
|
2838
|
+
r.set = function(I) {
|
|
2839
|
+
var w = xd(this, t, x + " setter"), L = [];
|
|
2840
|
+
p(n, w, D.toWireType(L, I));
|
|
2841
|
+
Qc(L);
|
|
2834
2842
|
};
|
|
2835
2843
|
}
|
|
2836
2844
|
Object.defineProperty(t.i.N, b, r);
|
|
@@ -2838,36 +2846,36 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2838
2846
|
});
|
|
2839
2847
|
return [];
|
|
2840
2848
|
});
|
|
2841
|
-
}, _embind_register_emval:a =>
|
|
2849
|
+
}, _embind_register_emval:a => Uc(a, zd), _embind_register_enum:(a, b, c, d) => {
|
|
2842
2850
|
function e() {
|
|
2843
2851
|
}
|
|
2844
2852
|
b = Q(b);
|
|
2845
2853
|
e.values = {};
|
|
2846
|
-
|
|
2854
|
+
Uc(a, {name:b, constructor:e, fromWireType:function(f) {
|
|
2847
2855
|
return this.constructor.values[f];
|
|
2848
|
-
}, toWireType:(f, g) => g.value, argPackAdvance:8, readValueFromPointer:
|
|
2849
|
-
|
|
2856
|
+
}, toWireType:(f, g) => g.value, argPackAdvance:8, readValueFromPointer:Ad(b, c, d), M:null,});
|
|
2857
|
+
Zc(b, e);
|
|
2850
2858
|
}, _embind_register_enum_value:(a, b, c) => {
|
|
2851
|
-
var d =
|
|
2859
|
+
var d = Gc(a, "enum");
|
|
2852
2860
|
b = Q(b);
|
|
2853
2861
|
a = d.constructor;
|
|
2854
|
-
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:
|
|
2862
|
+
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:pc(`${d.name}_${b}`, function() {
|
|
2855
2863
|
})},});
|
|
2856
2864
|
a.values[c] = d;
|
|
2857
2865
|
a[b] = d;
|
|
2858
2866
|
}, _embind_register_float:(a, b, c) => {
|
|
2859
2867
|
b = Q(b);
|
|
2860
|
-
|
|
2868
|
+
Uc(a, {name:b, fromWireType:d => d, toWireType:(d, e) => e, argPackAdvance:8, readValueFromPointer:Bd(b, c), M:null,});
|
|
2861
2869
|
}, _embind_register_function:(a, b, c, d, e, f) => {
|
|
2862
|
-
var g =
|
|
2870
|
+
var g = vd(b, c);
|
|
2863
2871
|
a = Q(a);
|
|
2864
|
-
a =
|
|
2865
|
-
e =
|
|
2866
|
-
|
|
2867
|
-
|
|
2872
|
+
a = wd(a);
|
|
2873
|
+
e = U(d, e);
|
|
2874
|
+
Zc(a, function() {
|
|
2875
|
+
pd(`Cannot call ${a} due to unbound types`, g);
|
|
2868
2876
|
}, b - 1);
|
|
2869
|
-
|
|
2870
|
-
|
|
2877
|
+
S([], g, k => {
|
|
2878
|
+
hd(a, ud(a, [k[0], null].concat(k.slice(1)), null, e, f), b - 1);
|
|
2871
2879
|
return [];
|
|
2872
2880
|
});
|
|
2873
2881
|
}, _embind_register_integer:(a, b, c, d, e) => {
|
|
@@ -2883,24 +2891,24 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2883
2891
|
} : function(k, p) {
|
|
2884
2892
|
return p;
|
|
2885
2893
|
};
|
|
2886
|
-
|
|
2894
|
+
Uc(a, {name:b, fromWireType:e, toWireType:g, argPackAdvance:8, readValueFromPointer:Cd(b, c, 0 !== d), M:null,});
|
|
2887
2895
|
}, _embind_register_memory_view:(a, b, c) => {
|
|
2888
2896
|
function d(f) {
|
|
2889
|
-
return new e(z.buffer,
|
|
2897
|
+
return new e(z.buffer, F[f + 4 >> 2], F[f >> 2]);
|
|
2890
2898
|
}
|
|
2891
2899
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2892
2900
|
c = Q(c);
|
|
2893
|
-
|
|
2901
|
+
Uc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Wb:!0,});
|
|
2894
2902
|
}, _embind_register_std_string:(a, b) => {
|
|
2895
2903
|
b = Q(b);
|
|
2896
2904
|
var c = "std::string" === b;
|
|
2897
|
-
|
|
2898
|
-
var e =
|
|
2905
|
+
Uc(a, {name:b, fromWireType:function(d) {
|
|
2906
|
+
var e = F[d >> 2], f = d + 4;
|
|
2899
2907
|
if (c) {
|
|
2900
2908
|
for (var g = f, k = 0; k <= e; ++k) {
|
|
2901
2909
|
var p = f + k;
|
|
2902
|
-
if (k == e || 0 ==
|
|
2903
|
-
g = g ? pb(
|
|
2910
|
+
if (k == e || 0 == B[p]) {
|
|
2911
|
+
g = g ? pb(B, g, p - g) : "";
|
|
2904
2912
|
if (void 0 === n) {
|
|
2905
2913
|
var n = g;
|
|
2906
2914
|
} else {
|
|
@@ -2912,11 +2920,11 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2912
2920
|
} else {
|
|
2913
2921
|
n = Array(e);
|
|
2914
2922
|
for (k = 0; k < e; ++k) {
|
|
2915
|
-
n[k] = String.fromCharCode(
|
|
2923
|
+
n[k] = String.fromCharCode(B[f + k]);
|
|
2916
2924
|
}
|
|
2917
2925
|
n = n.join("");
|
|
2918
2926
|
}
|
|
2919
|
-
|
|
2927
|
+
Ec(d);
|
|
2920
2928
|
return n;
|
|
2921
2929
|
}, toWireType:function(d, e) {
|
|
2922
2930
|
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
@@ -2925,161 +2933,161 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2925
2933
|
throw new P("Cannot pass non-string to std::string");
|
|
2926
2934
|
}
|
|
2927
2935
|
var g = c && f ? rb(e) : e.length;
|
|
2928
|
-
var k =
|
|
2929
|
-
|
|
2936
|
+
var k = ce(4 + g + 1), p = k + 4;
|
|
2937
|
+
F[k >> 2] = g;
|
|
2930
2938
|
if (c && f) {
|
|
2931
|
-
|
|
2939
|
+
tb(e, B, p, g + 1);
|
|
2932
2940
|
} else {
|
|
2933
2941
|
if (f) {
|
|
2934
2942
|
for (f = 0; f < g; ++f) {
|
|
2935
2943
|
var n = e.charCodeAt(f);
|
|
2936
2944
|
if (255 < n) {
|
|
2937
|
-
throw
|
|
2945
|
+
throw Ec(p), new P("String has UTF-16 code units that do not fit in 8 bits");
|
|
2938
2946
|
}
|
|
2939
|
-
|
|
2947
|
+
B[p + f] = n;
|
|
2940
2948
|
}
|
|
2941
2949
|
} else {
|
|
2942
2950
|
for (f = 0; f < g; ++f) {
|
|
2943
|
-
|
|
2951
|
+
B[p + f] = e[f];
|
|
2944
2952
|
}
|
|
2945
2953
|
}
|
|
2946
2954
|
}
|
|
2947
|
-
null !== d && d.push(
|
|
2955
|
+
null !== d && d.push(Ec, k);
|
|
2948
2956
|
return k;
|
|
2949
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2950
|
-
|
|
2957
|
+
}, argPackAdvance:8, readValueFromPointer:Rc, M(d) {
|
|
2958
|
+
Ec(d);
|
|
2951
2959
|
},});
|
|
2952
2960
|
}, _embind_register_std_wstring:(a, b, c) => {
|
|
2953
2961
|
c = Q(c);
|
|
2954
2962
|
if (2 === b) {
|
|
2955
|
-
var d =
|
|
2956
|
-
var e =
|
|
2957
|
-
var f =
|
|
2958
|
-
var g = k =>
|
|
2963
|
+
var d = Ed;
|
|
2964
|
+
var e = Fd;
|
|
2965
|
+
var f = Gd;
|
|
2966
|
+
var g = k => Fa[k >> 1];
|
|
2959
2967
|
} else {
|
|
2960
|
-
4 === b && (d =
|
|
2968
|
+
4 === b && (d = Hd, e = Id, f = Jd, g = k => F[k >> 2]);
|
|
2961
2969
|
}
|
|
2962
|
-
|
|
2963
|
-
for (var p =
|
|
2970
|
+
Uc(a, {name:c, fromWireType:k => {
|
|
2971
|
+
for (var p = F[k >> 2], n, t = k + 4, x = 0; x <= p; ++x) {
|
|
2964
2972
|
var y = k + 4 + x * b;
|
|
2965
2973
|
if (x == p || 0 == g(y)) {
|
|
2966
2974
|
t = d(t, y - t), void 0 === n ? n = t : (n += String.fromCharCode(0), n += t), t = y + b;
|
|
2967
2975
|
}
|
|
2968
2976
|
}
|
|
2969
|
-
|
|
2977
|
+
Ec(k);
|
|
2970
2978
|
return n;
|
|
2971
2979
|
}, toWireType:(k, p) => {
|
|
2972
2980
|
if ("string" != typeof p) {
|
|
2973
2981
|
throw new P(`Cannot pass non-string to C++ string type ${c}`);
|
|
2974
2982
|
}
|
|
2975
|
-
var n = f(p), t =
|
|
2976
|
-
|
|
2983
|
+
var n = f(p), t = ce(4 + n + b);
|
|
2984
|
+
F[t >> 2] = n / b;
|
|
2977
2985
|
e(p, t + 4, n + b);
|
|
2978
|
-
null !== k && k.push(
|
|
2986
|
+
null !== k && k.push(Ec, t);
|
|
2979
2987
|
return t;
|
|
2980
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2981
|
-
|
|
2988
|
+
}, argPackAdvance:8, readValueFromPointer:Rc, M(k) {
|
|
2989
|
+
Ec(k);
|
|
2982
2990
|
}});
|
|
2983
2991
|
}, _embind_register_value_object:(a, b, c, d, e, f) => {
|
|
2984
|
-
|
|
2992
|
+
Pc[a] = {name:Q(b), Oa:U(c, d), P:U(e, f), fb:[],};
|
|
2985
2993
|
}, _embind_register_value_object_field:(a, b, c, d, e, f, g, k, p, n) => {
|
|
2986
|
-
|
|
2994
|
+
Pc[a].fb.push({Pb:Q(b), Vb:c, Tb:U(d, e), Ub:f, lc:g, kc:U(k, p), mc:n,});
|
|
2987
2995
|
}, _embind_register_void:(a, b) => {
|
|
2988
2996
|
b = Q(b);
|
|
2989
|
-
|
|
2997
|
+
Uc(a, {Jc:!0, name:b, argPackAdvance:0, fromWireType:() => {
|
|
2990
2998
|
}, toWireType:() => {
|
|
2991
2999
|
},});
|
|
2992
|
-
}, _emscripten_get_now_is_monotonic:() => 1, _emscripten_memcpy_js:(a, b, c) =>
|
|
3000
|
+
}, _emscripten_get_now_is_monotonic:() => 1, _emscripten_memcpy_js:(a, b, c) => B.copyWithin(a, b, b + c), _emscripten_throw_longjmp:() => {
|
|
2993
3001
|
throw Infinity;
|
|
2994
3002
|
}, _emval_as:(a, b, c) => {
|
|
2995
|
-
a =
|
|
2996
|
-
b =
|
|
2997
|
-
return
|
|
3003
|
+
a = sc(a);
|
|
3004
|
+
b = Gc(b, "emval::as");
|
|
3005
|
+
return Kd(b, c, a);
|
|
2998
3006
|
}, _emval_call_method:(a, b, c, d, e) => {
|
|
2999
|
-
a =
|
|
3000
|
-
b =
|
|
3001
|
-
c =
|
|
3007
|
+
a = Nd[a];
|
|
3008
|
+
b = sc(b);
|
|
3009
|
+
c = Md(c);
|
|
3002
3010
|
return a(b, b[c], d, e);
|
|
3003
|
-
}, _emval_decref:
|
|
3004
|
-
var d =
|
|
3011
|
+
}, _emval_decref:yd, _emval_get_method_caller:(a, b, c) => {
|
|
3012
|
+
var d = Pd(a, b), e = d.shift();
|
|
3005
3013
|
a--;
|
|
3006
3014
|
var f = Array(a);
|
|
3007
3015
|
b = `methodCaller<(${d.map(g => g.name).join(", ")}) => ${e.name}>`;
|
|
3008
|
-
return
|
|
3016
|
+
return Od(pc(b, (g, k, p, n) => {
|
|
3009
3017
|
for (var t = 0, x = 0; x < a; ++x) {
|
|
3010
3018
|
f[x] = d[x].readValueFromPointer(n + t), t += d[x].argPackAdvance;
|
|
3011
3019
|
}
|
|
3012
|
-
g = 1 === c ?
|
|
3013
|
-
return
|
|
3020
|
+
g = 1 === c ? Qd(k, f) : k.apply(g, f);
|
|
3021
|
+
return Kd(e, p, g);
|
|
3014
3022
|
}));
|
|
3015
3023
|
}, _emval_get_module_property:a => {
|
|
3016
|
-
a =
|
|
3017
|
-
return
|
|
3024
|
+
a = Md(a);
|
|
3025
|
+
return tc(m[a]);
|
|
3018
3026
|
}, _emval_get_property:(a, b) => {
|
|
3019
|
-
a =
|
|
3020
|
-
b =
|
|
3021
|
-
return
|
|
3027
|
+
a = sc(a);
|
|
3028
|
+
b = sc(b);
|
|
3029
|
+
return tc(a[b]);
|
|
3022
3030
|
}, _emval_incref:a => {
|
|
3023
|
-
9 < a && (
|
|
3024
|
-
}, _emval_new_array:() =>
|
|
3025
|
-
var b =
|
|
3026
|
-
|
|
3027
|
-
|
|
3031
|
+
9 < a && (rc[a + 1] += 1);
|
|
3032
|
+
}, _emval_new_array:() => tc([]), _emval_new_cstring:a => tc(Md(a)), _emval_new_object:() => tc({}), _emval_run_destructors:a => {
|
|
3033
|
+
var b = sc(a);
|
|
3034
|
+
Qc(b);
|
|
3035
|
+
yd(a);
|
|
3028
3036
|
}, _emval_set_property:(a, b, c) => {
|
|
3029
|
-
a =
|
|
3030
|
-
b =
|
|
3031
|
-
c =
|
|
3037
|
+
a = sc(a);
|
|
3038
|
+
b = sc(b);
|
|
3039
|
+
c = sc(c);
|
|
3032
3040
|
a[b] = c;
|
|
3033
3041
|
}, _emval_take_value:(a, b) => {
|
|
3034
|
-
a =
|
|
3042
|
+
a = Gc(a, "_emval_take_value");
|
|
3035
3043
|
a = a.readValueFromPointer(b);
|
|
3036
|
-
return
|
|
3044
|
+
return tc(a);
|
|
3037
3045
|
}, _gmtime_js:function(a, b, c) {
|
|
3038
3046
|
a = new Date(1000 * (b + 2097152 >>> 0 < 4194305 - !!a ? (a >>> 0) + 4294967296 * b : NaN));
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
+
C[c >> 2] = a.getUTCSeconds();
|
|
3048
|
+
C[c + 4 >> 2] = a.getUTCMinutes();
|
|
3049
|
+
C[c + 8 >> 2] = a.getUTCHours();
|
|
3050
|
+
C[c + 12 >> 2] = a.getUTCDate();
|
|
3051
|
+
C[c + 16 >> 2] = a.getUTCMonth();
|
|
3052
|
+
C[c + 20 >> 2] = a.getUTCFullYear() - 1900;
|
|
3053
|
+
C[c + 24 >> 2] = a.getUTCDay();
|
|
3054
|
+
C[c + 28 >> 2] = (a.getTime() - Date.UTC(a.getUTCFullYear(), 0, 1, 0, 0, 0, 0)) / 864E5 | 0;
|
|
3047
3055
|
}, _localtime_js:function(a, b, c) {
|
|
3048
3056
|
a = new Date(1000 * (b + 2097152 >>> 0 < 4194305 - !!a ? (a >>> 0) + 4294967296 * b : NaN));
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3057
|
+
C[c >> 2] = a.getSeconds();
|
|
3058
|
+
C[c + 4 >> 2] = a.getMinutes();
|
|
3059
|
+
C[c + 8 >> 2] = a.getHours();
|
|
3060
|
+
C[c + 12 >> 2] = a.getDate();
|
|
3061
|
+
C[c + 16 >> 2] = a.getMonth();
|
|
3062
|
+
C[c + 20 >> 2] = a.getFullYear() - 1900;
|
|
3063
|
+
C[c + 24 >> 2] = a.getDay();
|
|
3064
|
+
C[c + 28 >> 2] = (Rd(a.getFullYear()) ? Sd : Td)[a.getMonth()] + a.getDate() - 1 | 0;
|
|
3065
|
+
C[c + 36 >> 2] = -(60 * a.getTimezoneOffset());
|
|
3058
3066
|
b = (new Date(a.getFullYear(), 6, 1)).getTimezoneOffset();
|
|
3059
3067
|
var d = (new Date(a.getFullYear(), 0, 1)).getTimezoneOffset();
|
|
3060
|
-
|
|
3068
|
+
C[c + 32 >> 2] = (b != d && a.getTimezoneOffset() == Math.min(d, b)) | 0;
|
|
3061
3069
|
}, _tzset_js:(a, b, c, d) => {
|
|
3062
3070
|
var e = (new Date()).getFullYear(), f = new Date(e, 0, 1), g = new Date(e, 6, 1);
|
|
3063
3071
|
e = f.getTimezoneOffset();
|
|
3064
3072
|
var k = g.getTimezoneOffset();
|
|
3065
|
-
|
|
3066
|
-
|
|
3073
|
+
F[a >> 2] = 60 * Math.max(e, k);
|
|
3074
|
+
C[b >> 2] = Number(e != k);
|
|
3067
3075
|
a = p => p.toLocaleTimeString(void 0, {hour12:!1, timeZoneName:"short"}).split(" ")[1];
|
|
3068
3076
|
f = a(f);
|
|
3069
3077
|
g = a(g);
|
|
3070
|
-
k < e ? (
|
|
3078
|
+
k < e ? (tb(f, B, c, 17), tb(g, B, d, 17)) : (tb(f, B, d, 17), tb(g, B, c, 17));
|
|
3071
3079
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
3072
|
-
|
|
3073
|
-
for (var d; d =
|
|
3080
|
+
Ud.length = 0;
|
|
3081
|
+
for (var d; d = B[b++];) {
|
|
3074
3082
|
var e = 105 != d;
|
|
3075
3083
|
e &= 112 != d;
|
|
3076
3084
|
c += e && c % 8 ? 4 : 0;
|
|
3077
|
-
|
|
3085
|
+
Ud.push(112 == d ? F[c >> 2] : 105 == d ? C[c >> 2] : Ja[c >> 3]);
|
|
3078
3086
|
c += e ? 8 : 4;
|
|
3079
3087
|
}
|
|
3080
|
-
return db[a](...
|
|
3088
|
+
return db[a](...Ud);
|
|
3081
3089
|
}, emscripten_date_now:() => Date.now(), emscripten_get_now:() => performance.now(), emscripten_resize_heap:a => {
|
|
3082
|
-
var b =
|
|
3090
|
+
var b = B.length;
|
|
3083
3091
|
a >>>= 0;
|
|
3084
3092
|
if (2147483648 < a) {
|
|
3085
3093
|
return !1;
|
|
@@ -3090,10 +3098,10 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3090
3098
|
var e = Math;
|
|
3091
3099
|
d = Math.max(a, d);
|
|
3092
3100
|
a: {
|
|
3093
|
-
e = (e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) -
|
|
3101
|
+
e = (e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - Ca.buffer.byteLength + 65535) / 65536;
|
|
3094
3102
|
try {
|
|
3095
|
-
|
|
3096
|
-
|
|
3103
|
+
Ca.grow(e);
|
|
3104
|
+
Ka();
|
|
3097
3105
|
var f = 1;
|
|
3098
3106
|
break a;
|
|
3099
3107
|
} catch (g) {
|
|
@@ -3107,9 +3115,9 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3107
3115
|
return !1;
|
|
3108
3116
|
}, environ_get:(a, b) => {
|
|
3109
3117
|
var c = 0;
|
|
3110
|
-
|
|
3118
|
+
Xd().forEach((d, e) => {
|
|
3111
3119
|
var f = b + c;
|
|
3112
|
-
e =
|
|
3120
|
+
e = F[a + 4 * e >> 2] = f;
|
|
3113
3121
|
for (f = 0; f < d.length; ++f) {
|
|
3114
3122
|
z[e++] = d.charCodeAt(f);
|
|
3115
3123
|
}
|
|
@@ -3118,15 +3126,15 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3118
3126
|
});
|
|
3119
3127
|
return 0;
|
|
3120
3128
|
}, environ_sizes_get:(a, b) => {
|
|
3121
|
-
var c =
|
|
3122
|
-
|
|
3129
|
+
var c = Xd();
|
|
3130
|
+
F[a >> 2] = c.length;
|
|
3123
3131
|
var d = 0;
|
|
3124
3132
|
c.forEach(e => d += e.length + 1);
|
|
3125
|
-
|
|
3133
|
+
F[b >> 2] = d;
|
|
3126
3134
|
return 0;
|
|
3127
3135
|
}, fd_close:function(a) {
|
|
3128
3136
|
try {
|
|
3129
|
-
var b =
|
|
3137
|
+
var b = Wb(a);
|
|
3130
3138
|
if (null === b.X) {
|
|
3131
3139
|
throw new N(8);
|
|
3132
3140
|
}
|
|
@@ -3136,12 +3144,12 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3136
3144
|
} catch (c) {
|
|
3137
3145
|
throw c;
|
|
3138
3146
|
} finally {
|
|
3139
|
-
|
|
3147
|
+
Jb[b.X] = null;
|
|
3140
3148
|
}
|
|
3141
3149
|
b.X = null;
|
|
3142
3150
|
return 0;
|
|
3143
3151
|
} catch (c) {
|
|
3144
|
-
if ("undefined" == typeof
|
|
3152
|
+
if ("undefined" == typeof oc || "ErrnoError" !== c.name) {
|
|
3145
3153
|
throw c;
|
|
3146
3154
|
}
|
|
3147
3155
|
return c.aa;
|
|
@@ -3149,10 +3157,10 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3149
3157
|
}, fd_read:function(a, b, c, d) {
|
|
3150
3158
|
try {
|
|
3151
3159
|
a: {
|
|
3152
|
-
var e =
|
|
3160
|
+
var e = Wb(a);
|
|
3153
3161
|
a = b;
|
|
3154
3162
|
for (var f, g = b = 0; g < c; g++) {
|
|
3155
|
-
var k =
|
|
3163
|
+
var k = F[a >> 2], p = F[a + 4 >> 2];
|
|
3156
3164
|
a += 8;
|
|
3157
3165
|
var n = e, t = f, x = z;
|
|
3158
3166
|
if (0 > p || 0 > t) {
|
|
@@ -3191,13 +3199,13 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3191
3199
|
}
|
|
3192
3200
|
r = b;
|
|
3193
3201
|
}
|
|
3194
|
-
|
|
3202
|
+
F[d >> 2] = r;
|
|
3195
3203
|
return 0;
|
|
3196
|
-
} catch (
|
|
3197
|
-
if ("undefined" == typeof
|
|
3198
|
-
throw
|
|
3204
|
+
} catch (D) {
|
|
3205
|
+
if ("undefined" == typeof oc || "ErrnoError" !== D.name) {
|
|
3206
|
+
throw D;
|
|
3199
3207
|
}
|
|
3200
|
-
return
|
|
3208
|
+
return D.aa;
|
|
3201
3209
|
}
|
|
3202
3210
|
}, fd_seek:function(a, b, c, d, e) {
|
|
3203
3211
|
b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
|
|
@@ -3205,15 +3213,15 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3205
3213
|
if (isNaN(b)) {
|
|
3206
3214
|
return 61;
|
|
3207
3215
|
}
|
|
3208
|
-
var f =
|
|
3209
|
-
|
|
3216
|
+
var f = Wb(a);
|
|
3217
|
+
kc(f, b, d);
|
|
3210
3218
|
$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)];
|
|
3211
|
-
|
|
3212
|
-
|
|
3219
|
+
C[e >> 2] = $a[0];
|
|
3220
|
+
C[e + 4 >> 2] = $a[1];
|
|
3213
3221
|
f.La && 0 === b && 0 === d && (f.La = null);
|
|
3214
3222
|
return 0;
|
|
3215
3223
|
} catch (g) {
|
|
3216
|
-
if ("undefined" == typeof
|
|
3224
|
+
if ("undefined" == typeof oc || "ErrnoError" !== g.name) {
|
|
3217
3225
|
throw g;
|
|
3218
3226
|
}
|
|
3219
3227
|
return g.aa;
|
|
@@ -3221,10 +3229,10 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3221
3229
|
}, fd_write:function(a, b, c, d) {
|
|
3222
3230
|
try {
|
|
3223
3231
|
a: {
|
|
3224
|
-
var e =
|
|
3232
|
+
var e = Wb(a);
|
|
3225
3233
|
a = b;
|
|
3226
3234
|
for (var f, g = b = 0; g < c; g++) {
|
|
3227
|
-
var k =
|
|
3235
|
+
var k = F[a >> 2], p = F[a + 4 >> 2];
|
|
3228
3236
|
a += 8;
|
|
3229
3237
|
var n = e, t = k, x = p, y = f, l = z;
|
|
3230
3238
|
if (0 > x || 0 > y) {
|
|
@@ -3242,7 +3250,7 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3242
3250
|
if (!n.m.write) {
|
|
3243
3251
|
throw new N(28);
|
|
3244
3252
|
}
|
|
3245
|
-
n.seekable && n.flags & 1024 &&
|
|
3253
|
+
n.seekable && n.flags & 1024 && kc(n, 0, 2);
|
|
3246
3254
|
var u = "undefined" != typeof y;
|
|
3247
3255
|
if (!u) {
|
|
3248
3256
|
y = n.position;
|
|
@@ -3251,89 +3259,89 @@ var be = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3251
3259
|
}
|
|
3252
3260
|
var r = n.m.write(n, l, t, x, y, void 0);
|
|
3253
3261
|
u || (n.position += r);
|
|
3254
|
-
var
|
|
3255
|
-
if (0 >
|
|
3256
|
-
var
|
|
3262
|
+
var D = r;
|
|
3263
|
+
if (0 > D) {
|
|
3264
|
+
var I = -1;
|
|
3257
3265
|
break a;
|
|
3258
3266
|
}
|
|
3259
|
-
b +=
|
|
3260
|
-
"undefined" != typeof f && (f +=
|
|
3267
|
+
b += D;
|
|
3268
|
+
"undefined" != typeof f && (f += D);
|
|
3261
3269
|
}
|
|
3262
|
-
|
|
3270
|
+
I = b;
|
|
3263
3271
|
}
|
|
3264
|
-
|
|
3272
|
+
F[d >> 2] = I;
|
|
3265
3273
|
return 0;
|
|
3266
3274
|
} catch (w) {
|
|
3267
|
-
if ("undefined" == typeof
|
|
3275
|
+
if ("undefined" == typeof oc || "ErrnoError" !== w.name) {
|
|
3268
3276
|
throw w;
|
|
3269
3277
|
}
|
|
3270
3278
|
return w.aa;
|
|
3271
3279
|
}
|
|
3272
|
-
}, invoke_vii:
|
|
3280
|
+
}, invoke_vii:de, isWindowsBrowser:function() {
|
|
3273
3281
|
return -1 < navigator.platform.indexOf("Win");
|
|
3274
|
-
}, strftime
|
|
3282
|
+
}, strftime:$d, strftime_l:(a, b, c, d) => $d(a, b, c, d)}, W = function() {
|
|
3275
3283
|
function a(c) {
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
m.monitorRunDependencies?.(
|
|
3283
|
-
0 ==
|
|
3284
|
-
return
|
|
3285
|
-
}
|
|
3286
|
-
var b = {env:
|
|
3287
|
-
|
|
3288
|
-
m.monitorRunDependencies?.(
|
|
3284
|
+
W = c.exports;
|
|
3285
|
+
Ca = W.memory;
|
|
3286
|
+
Ka();
|
|
3287
|
+
kd = W.__indirect_function_table;
|
|
3288
|
+
Ma.unshift(W.__wasm_call_ctors);
|
|
3289
|
+
Pa--;
|
|
3290
|
+
m.monitorRunDependencies?.(Pa);
|
|
3291
|
+
0 == Pa && (null !== Qa && (clearInterval(Qa), Qa = null), Ra && (c = Ra, Ra = null, c()));
|
|
3292
|
+
return W;
|
|
3293
|
+
}
|
|
3294
|
+
var b = {env:ee, wasi_snapshot_preview1:ee,};
|
|
3295
|
+
Pa++;
|
|
3296
|
+
m.monitorRunDependencies?.(Pa);
|
|
3289
3297
|
if (m.instantiateWasm) {
|
|
3290
3298
|
try {
|
|
3291
3299
|
return m.instantiateWasm(b, a);
|
|
3292
3300
|
} catch (c) {
|
|
3293
|
-
|
|
3301
|
+
Aa(`Module.instantiateWasm callback failed with error: ${c}`), ca(c);
|
|
3294
3302
|
}
|
|
3295
3303
|
}
|
|
3296
|
-
|
|
3297
|
-
|
|
3304
|
+
Ua ||= Ta("canvas_advanced.wasm") ? "canvas_advanced.wasm" : m.locateFile ? m.locateFile("canvas_advanced.wasm", ta) : ta + "canvas_advanced.wasm";
|
|
3305
|
+
Ya(b, function(c) {
|
|
3298
3306
|
a(c.instance);
|
|
3299
3307
|
}).catch(ca);
|
|
3300
3308
|
return {};
|
|
3301
|
-
}(),
|
|
3302
|
-
m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten =
|
|
3303
|
-
m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten =
|
|
3304
|
-
var bb = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (bb = m._ma_device_process_pcm_frames_capture__webaudio =
|
|
3305
|
-
m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji =
|
|
3306
|
-
m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji =
|
|
3307
|
-
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji =
|
|
3308
|
-
m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij =
|
|
3309
|
-
m.dynCall_jii = (a, b, c) => (m.dynCall_jii =
|
|
3310
|
-
m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii =
|
|
3311
|
-
m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij =
|
|
3312
|
-
m.dynCall_iiiiijj = (a, b, c, d, e, f, g, k, p) => (m.dynCall_iiiiijj =
|
|
3313
|
-
m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, p, n) => (m.dynCall_iiiiiijj =
|
|
3314
|
-
function
|
|
3315
|
-
var d =
|
|
3309
|
+
}(), 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);
|
|
3310
|
+
m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = W.ma_malloc_emscripten)(a, b);
|
|
3311
|
+
m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = W.ma_free_emscripten)(a, b);
|
|
3312
|
+
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)();
|
|
3313
|
+
m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = W.dynCall_iiji)(a, b, c, d, e);
|
|
3314
|
+
m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = W.dynCall_jiji)(a, b, c, d, e);
|
|
3315
|
+
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = W.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3316
|
+
m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = W.dynCall_iij)(a, b, c, d);
|
|
3317
|
+
m.dynCall_jii = (a, b, c) => (m.dynCall_jii = W.dynCall_jii)(a, b, c);
|
|
3318
|
+
m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = W.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3319
|
+
m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = W.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3320
|
+
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);
|
|
3321
|
+
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);
|
|
3322
|
+
function de(a, b, c) {
|
|
3323
|
+
var d = he();
|
|
3316
3324
|
try {
|
|
3317
|
-
|
|
3325
|
+
ld(a)(b, c);
|
|
3318
3326
|
} catch (e) {
|
|
3319
|
-
|
|
3327
|
+
ge(d);
|
|
3320
3328
|
if (e !== e + 0) {
|
|
3321
3329
|
throw e;
|
|
3322
3330
|
}
|
|
3323
|
-
|
|
3331
|
+
fe(1, 0);
|
|
3324
3332
|
}
|
|
3325
3333
|
}
|
|
3326
|
-
var
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3334
|
+
var ie;
|
|
3335
|
+
Ra = function je() {
|
|
3336
|
+
ie || ke();
|
|
3337
|
+
ie || (Ra = je);
|
|
3330
3338
|
};
|
|
3331
|
-
function
|
|
3339
|
+
function ke() {
|
|
3332
3340
|
function a() {
|
|
3333
|
-
if (!
|
|
3334
|
-
m.noFSInit ||
|
|
3335
|
-
|
|
3336
|
-
eb(
|
|
3341
|
+
if (!ie && (ie = !0, m.calledRun = !0, !Da)) {
|
|
3342
|
+
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));
|
|
3343
|
+
Mb = !1;
|
|
3344
|
+
eb(Ma);
|
|
3337
3345
|
ba(m);
|
|
3338
3346
|
if (m.onRuntimeInitialized) {
|
|
3339
3347
|
m.onRuntimeInitialized();
|
|
@@ -3341,20 +3349,20 @@ function he() {
|
|
|
3341
3349
|
if (m.postRun) {
|
|
3342
3350
|
for ("function" == typeof m.postRun && (m.postRun = [m.postRun]); m.postRun.length;) {
|
|
3343
3351
|
var b = m.postRun.shift();
|
|
3344
|
-
|
|
3352
|
+
Na.unshift(b);
|
|
3345
3353
|
}
|
|
3346
3354
|
}
|
|
3347
|
-
eb(
|
|
3355
|
+
eb(Na);
|
|
3348
3356
|
}
|
|
3349
3357
|
}
|
|
3350
|
-
if (!(0 <
|
|
3358
|
+
if (!(0 < Pa)) {
|
|
3351
3359
|
if (m.preRun) {
|
|
3352
3360
|
for ("function" == typeof m.preRun && (m.preRun = [m.preRun]); m.preRun.length;) {
|
|
3353
|
-
|
|
3361
|
+
Oa();
|
|
3354
3362
|
}
|
|
3355
3363
|
}
|
|
3356
|
-
eb(
|
|
3357
|
-
0 <
|
|
3364
|
+
eb(La);
|
|
3365
|
+
0 < Pa || (m.setStatus ? (m.setStatus("Running..."), setTimeout(function() {
|
|
3358
3366
|
setTimeout(function() {
|
|
3359
3367
|
m.setStatus("");
|
|
3360
3368
|
}, 1);
|
|
@@ -3367,7 +3375,7 @@ if (m.preInit) {
|
|
|
3367
3375
|
m.preInit.pop()();
|
|
3368
3376
|
}
|
|
3369
3377
|
}
|
|
3370
|
-
|
|
3378
|
+
ke();
|
|
3371
3379
|
moduleRtn = da;
|
|
3372
3380
|
|
|
3373
3381
|
|
|
@@ -3383,7 +3391,7 @@ moduleRtn = da;
|
|
|
3383
3391
|
/* 2 */
|
|
3384
3392
|
/***/ ((module) => {
|
|
3385
3393
|
|
|
3386
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.
|
|
3394
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.36.0","description":"Rive\'s canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
3387
3395
|
|
|
3388
3396
|
/***/ }),
|
|
3389
3397
|
/* 3 */
|
|
@@ -4198,6 +4206,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4198
4206
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4199
4207
|
/* harmony export */ Alignment: () => (/* binding */ Alignment),
|
|
4200
4208
|
/* harmony export */ DataEnum: () => (/* binding */ DataEnum),
|
|
4209
|
+
/* harmony export */ DataType: () => (/* binding */ DataType),
|
|
4201
4210
|
/* harmony export */ DrawOptimizationOptions: () => (/* binding */ DrawOptimizationOptions),
|
|
4202
4211
|
/* harmony export */ EventType: () => (/* binding */ EventType),
|
|
4203
4212
|
/* harmony export */ Fit: () => (/* binding */ Fit),
|
|
@@ -4446,12 +4455,18 @@ var RuntimeLoader = /** @class */ (function () {
|
|
|
4446
4455
|
}
|
|
4447
4456
|
// Loads the runtime
|
|
4448
4457
|
RuntimeLoader.loadRuntime = function () {
|
|
4458
|
+
if (RuntimeLoader.enablePerfMarks)
|
|
4459
|
+
performance.mark('rive:wasm-init:start');
|
|
4449
4460
|
_rive_advanced_mjs__WEBPACK_IMPORTED_MODULE_0__["default"]({
|
|
4450
4461
|
// Loads Wasm bundle
|
|
4451
4462
|
locateFile: function () { return RuntimeLoader.wasmURL; },
|
|
4452
4463
|
})
|
|
4453
4464
|
.then(function (rive) {
|
|
4454
4465
|
var _a;
|
|
4466
|
+
if (RuntimeLoader.enablePerfMarks) {
|
|
4467
|
+
performance.mark('rive:wasm-init:end');
|
|
4468
|
+
performance.measure('rive:wasm-init', 'rive:wasm-init:start', 'rive:wasm-init:end');
|
|
4469
|
+
}
|
|
4455
4470
|
RuntimeLoader.runtime = rive;
|
|
4456
4471
|
// Fire all the callbacks
|
|
4457
4472
|
while (RuntimeLoader.callBackQueue.length > 0) {
|
|
@@ -4534,6 +4549,11 @@ var RuntimeLoader = /** @class */ (function () {
|
|
|
4534
4549
|
// Path to the Wasm file; default path works for testing only;
|
|
4535
4550
|
// if embedded wasm is used then this is never used.
|
|
4536
4551
|
RuntimeLoader.wasmURL = "https://unpkg.com/".concat(package_json__WEBPACK_IMPORTED_MODULE_1__.name, "@").concat(package_json__WEBPACK_IMPORTED_MODULE_1__.version, "/rive.wasm");
|
|
4552
|
+
/**
|
|
4553
|
+
* When true, performance.mark / performance.measure entries are emitted for
|
|
4554
|
+
* WASM initialization.
|
|
4555
|
+
*/
|
|
4556
|
+
RuntimeLoader.enablePerfMarks = false;
|
|
4537
4557
|
return RuntimeLoader;
|
|
4538
4558
|
}());
|
|
4539
4559
|
|
|
@@ -5471,6 +5491,8 @@ var RiveFile = /** @class */ (function () {
|
|
|
5471
5491
|
function RiveFile(params) {
|
|
5472
5492
|
// Allow the runtime to automatically load assets hosted in Rive's runtime.
|
|
5473
5493
|
this.enableRiveAssetCDN = true;
|
|
5494
|
+
// When true, emits performance.mark/measure entries during RiveFile load.
|
|
5495
|
+
this.enablePerfMarks = false;
|
|
5474
5496
|
this.referenceCount = 0;
|
|
5475
5497
|
this.destroyed = false;
|
|
5476
5498
|
this.selfUnref = false;
|
|
@@ -5483,6 +5505,9 @@ var RiveFile = /** @class */ (function () {
|
|
|
5483
5505
|
typeof params.enableRiveAssetCDN == "boolean"
|
|
5484
5506
|
? params.enableRiveAssetCDN
|
|
5485
5507
|
: true;
|
|
5508
|
+
this.enablePerfMarks = !!params.enablePerfMarks;
|
|
5509
|
+
if (this.enablePerfMarks)
|
|
5510
|
+
RuntimeLoader.enablePerfMarks = true;
|
|
5486
5511
|
// New event management system
|
|
5487
5512
|
this.eventManager = new EventManager();
|
|
5488
5513
|
if (params.onLoad)
|
|
@@ -5508,7 +5533,7 @@ var RiveFile = /** @class */ (function () {
|
|
|
5508
5533
|
return __generator(this, function (_c) {
|
|
5509
5534
|
switch (_c.label) {
|
|
5510
5535
|
case 0:
|
|
5511
|
-
if (!this.src) return [3 /*break*/, 2];
|
|
5536
|
+
if (!(this.src && !this.buffer)) return [3 /*break*/, 2];
|
|
5512
5537
|
_a = this;
|
|
5513
5538
|
return [4 /*yield*/, loadRiveFile(this.src)];
|
|
5514
5539
|
case 1:
|
|
@@ -5523,11 +5548,16 @@ var RiveFile = /** @class */ (function () {
|
|
|
5523
5548
|
loader = loaderWrapper.assetLoader;
|
|
5524
5549
|
}
|
|
5525
5550
|
// Load the Rive file
|
|
5551
|
+
if (this.enablePerfMarks)
|
|
5552
|
+
performance.mark('rive:file-load:start');
|
|
5526
5553
|
_b = this;
|
|
5527
5554
|
return [4 /*yield*/, this.runtime.load(new Uint8Array(this.buffer), loader, this.enableRiveAssetCDN)];
|
|
5528
5555
|
case 3:
|
|
5529
|
-
// Load the Rive file
|
|
5530
5556
|
_b.file = _c.sent();
|
|
5557
|
+
if (this.enablePerfMarks) {
|
|
5558
|
+
performance.mark('rive:file-load:end');
|
|
5559
|
+
performance.measure('rive:file-load', 'rive:file-load:start', 'rive:file-load:end');
|
|
5560
|
+
}
|
|
5531
5561
|
fileFinalizer = new _utils__WEBPACK_IMPORTED_MODULE_3__.FileFinalizer(this.file);
|
|
5532
5562
|
_utils__WEBPACK_IMPORTED_MODULE_3__.finalizationRegistry.register(this, fileFinalizer);
|
|
5533
5563
|
if (this.destroyed) {
|
|
@@ -5548,9 +5578,45 @@ var RiveFile = /** @class */ (function () {
|
|
|
5548
5578
|
});
|
|
5549
5579
|
});
|
|
5550
5580
|
};
|
|
5581
|
+
RiveFile.prototype.loadRiveFileBytes = function () {
|
|
5582
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5583
|
+
var bufferPromise;
|
|
5584
|
+
return __generator(this, function (_a) {
|
|
5585
|
+
if (this.enablePerfMarks)
|
|
5586
|
+
performance.mark('rive:fetch-riv:start');
|
|
5587
|
+
bufferPromise = this.src
|
|
5588
|
+
? loadRiveFile(this.src)
|
|
5589
|
+
: Promise.resolve(this.buffer);
|
|
5590
|
+
if (this.enablePerfMarks && this.src) {
|
|
5591
|
+
bufferPromise.then(function () {
|
|
5592
|
+
performance.mark('rive:fetch-riv:end');
|
|
5593
|
+
performance.measure('rive:fetch-riv', 'rive:fetch-riv:start', 'rive:fetch-riv:end');
|
|
5594
|
+
});
|
|
5595
|
+
}
|
|
5596
|
+
return [2 /*return*/, bufferPromise];
|
|
5597
|
+
});
|
|
5598
|
+
});
|
|
5599
|
+
};
|
|
5600
|
+
RiveFile.prototype.loadRuntime = function () {
|
|
5601
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5602
|
+
var runtimePromise;
|
|
5603
|
+
return __generator(this, function (_a) {
|
|
5604
|
+
if (this.enablePerfMarks)
|
|
5605
|
+
performance.mark('rive:await-wasm:start');
|
|
5606
|
+
runtimePromise = RuntimeLoader.awaitInstance();
|
|
5607
|
+
if (this.enablePerfMarks) {
|
|
5608
|
+
runtimePromise.then(function () {
|
|
5609
|
+
performance.mark('rive:await-wasm:end');
|
|
5610
|
+
performance.measure('rive:await-wasm', 'rive:await-wasm:start', 'rive:await-wasm:end');
|
|
5611
|
+
});
|
|
5612
|
+
}
|
|
5613
|
+
return [2 /*return*/, runtimePromise];
|
|
5614
|
+
});
|
|
5615
|
+
});
|
|
5616
|
+
};
|
|
5551
5617
|
RiveFile.prototype.init = function () {
|
|
5552
5618
|
return __awaiter(this, void 0, void 0, function () {
|
|
5553
|
-
var _a, error_1;
|
|
5619
|
+
var _a, bufferResolved, runtimeResolved, error_1;
|
|
5554
5620
|
return __generator(this, function (_b) {
|
|
5555
5621
|
switch (_b.label) {
|
|
5556
5622
|
case 0:
|
|
@@ -5562,16 +5628,24 @@ var RiveFile = /** @class */ (function () {
|
|
|
5562
5628
|
_b.label = 1;
|
|
5563
5629
|
case 1:
|
|
5564
5630
|
_b.trys.push([1, 4, , 5]);
|
|
5565
|
-
|
|
5566
|
-
return [4 /*yield*/, RuntimeLoader.awaitInstance()];
|
|
5631
|
+
return [4 /*yield*/, Promise.all([this.loadRiveFileBytes(), this.loadRuntime()])];
|
|
5567
5632
|
case 2:
|
|
5568
|
-
_a
|
|
5633
|
+
_a = _b.sent(), bufferResolved = _a[0], runtimeResolved = _a[1];
|
|
5569
5634
|
if (this.destroyed) {
|
|
5570
5635
|
return [2 /*return*/];
|
|
5571
5636
|
}
|
|
5637
|
+
// .riv file buffer and WASM runtime instance
|
|
5638
|
+
this.buffer = bufferResolved;
|
|
5639
|
+
this.runtime = runtimeResolved;
|
|
5640
|
+
if (this.enablePerfMarks)
|
|
5641
|
+
performance.mark('rive:init-data:start');
|
|
5572
5642
|
return [4 /*yield*/, this.initData()];
|
|
5573
5643
|
case 3:
|
|
5574
5644
|
_b.sent();
|
|
5645
|
+
if (this.enablePerfMarks) {
|
|
5646
|
+
performance.mark('rive:init-data:end');
|
|
5647
|
+
performance.measure('rive:init-data', 'rive:init-data:start', 'rive:init-data:end');
|
|
5648
|
+
}
|
|
5575
5649
|
return [3 /*break*/, 5];
|
|
5576
5650
|
case 4:
|
|
5577
5651
|
error_1 = _b.sent();
|
|
@@ -5739,6 +5813,8 @@ var Rive = /** @class */ (function () {
|
|
|
5739
5813
|
this._viewModelInstance = null;
|
|
5740
5814
|
this._dataEnums = null;
|
|
5741
5815
|
this.drawOptimization = DrawOptimizationOptions.DrawOnChanged;
|
|
5816
|
+
// When true, emits performance.mark/measure entries for load and render.
|
|
5817
|
+
this.enablePerfMarks = false;
|
|
5742
5818
|
// Durations to generate a frame for the last second. Used for performance profiling.
|
|
5743
5819
|
this.durations = [];
|
|
5744
5820
|
this.frameTimes = [];
|
|
@@ -5785,6 +5861,9 @@ var Rive = /** @class */ (function () {
|
|
|
5785
5861
|
params.enableRiveAssetCDN === undefined
|
|
5786
5862
|
? true
|
|
5787
5863
|
: params.enableRiveAssetCDN;
|
|
5864
|
+
this.enablePerfMarks = !!params.enablePerfMarks;
|
|
5865
|
+
if (this.enablePerfMarks)
|
|
5866
|
+
RuntimeLoader.enablePerfMarks = true;
|
|
5788
5867
|
// New event management system
|
|
5789
5868
|
this.eventManager = new EventManager();
|
|
5790
5869
|
if (params.onLoad)
|
|
@@ -5886,7 +5965,13 @@ var Rive = /** @class */ (function () {
|
|
|
5886
5965
|
_this.removeRiveListeners();
|
|
5887
5966
|
_this.deleteRiveRenderer();
|
|
5888
5967
|
// Get the canvas where you want to render the animation and create a renderer
|
|
5968
|
+
if (_this.enablePerfMarks)
|
|
5969
|
+
performance.mark('rive:make-renderer:start');
|
|
5889
5970
|
_this.renderer = _this.runtime.makeRenderer(_this.canvas, useOffscreenRenderer);
|
|
5971
|
+
if (_this.enablePerfMarks) {
|
|
5972
|
+
performance.mark('rive:make-renderer:end');
|
|
5973
|
+
performance.measure('rive:make-renderer', 'rive:make-renderer:start', 'rive:make-renderer:end');
|
|
5974
|
+
}
|
|
5890
5975
|
// Initial size adjustment based on devicePixelRatio if no width/height are
|
|
5891
5976
|
// specified explicitly
|
|
5892
5977
|
if (!(_this.canvas.width || _this.canvas.height)) {
|
|
@@ -5998,6 +6083,7 @@ var Rive = /** @class */ (function () {
|
|
|
5998
6083
|
buffer: this.buffer,
|
|
5999
6084
|
enableRiveAssetCDN: this.enableRiveAssetCDN,
|
|
6000
6085
|
assetLoader: this.assetLoader,
|
|
6086
|
+
enablePerfMarks: this.enablePerfMarks,
|
|
6001
6087
|
});
|
|
6002
6088
|
this.riveFile = riveFile;
|
|
6003
6089
|
return [4 /*yield*/, riveFile.init()];
|
|
@@ -6164,6 +6250,9 @@ var Rive = /** @class */ (function () {
|
|
|
6164
6250
|
// - Advance non-paused state machines by the elapsed number of seconds
|
|
6165
6251
|
// - Advance to the first frame even when autoplay is false
|
|
6166
6252
|
var activeStateMachines = this.animator.stateMachines.filter(function (a) { return a.playing; });
|
|
6253
|
+
// Instrument the first 3 frames so the Performance timeline shows precise
|
|
6254
|
+
// per-call latency for advance, draw, and flush without polluting the trace.
|
|
6255
|
+
var _perfFrame = this.enablePerfMarks && this.frameCount < 3 ? this.frameCount : -1;
|
|
6167
6256
|
for (var _b = 0, activeStateMachines_1 = activeStateMachines; _b < activeStateMachines_1.length; _b++) {
|
|
6168
6257
|
var stateMachine = activeStateMachines_1[_b];
|
|
6169
6258
|
// Check for events before the current frame's state machine advance
|
|
@@ -6198,7 +6287,13 @@ var Rive = /** @class */ (function () {
|
|
|
6198
6287
|
}
|
|
6199
6288
|
}
|
|
6200
6289
|
}
|
|
6290
|
+
if (_perfFrame >= 0)
|
|
6291
|
+
performance.mark("rive:sm-advance:start:f".concat(_perfFrame));
|
|
6201
6292
|
stateMachine.advanceAndApply(elapsedTime);
|
|
6293
|
+
if (_perfFrame >= 0) {
|
|
6294
|
+
performance.mark("rive:sm-advance:end:f".concat(_perfFrame));
|
|
6295
|
+
performance.measure("rive:sm-advance:f".concat(_perfFrame), "rive:sm-advance:start:f".concat(_perfFrame), "rive:sm-advance:end:f".concat(_perfFrame));
|
|
6296
|
+
}
|
|
6202
6297
|
// stateMachine.instance.apply(this.artboard);
|
|
6203
6298
|
}
|
|
6204
6299
|
// Once the animations have been applied to the artboard, advance it
|
|
@@ -6218,10 +6313,28 @@ var Rive = /** @class */ (function () {
|
|
|
6218
6313
|
renderer.clear();
|
|
6219
6314
|
renderer.save();
|
|
6220
6315
|
// Update the renderer alignment if necessary
|
|
6316
|
+
if (_perfFrame >= 0)
|
|
6317
|
+
performance.mark("rive:align-renderer:start:f".concat(_perfFrame));
|
|
6221
6318
|
this.alignRenderer();
|
|
6319
|
+
if (_perfFrame >= 0) {
|
|
6320
|
+
performance.mark("rive:align-renderer:end:f".concat(_perfFrame));
|
|
6321
|
+
performance.measure("rive:align-renderer:f".concat(_perfFrame), "rive:align-renderer:start:f".concat(_perfFrame), "rive:align-renderer:end:f".concat(_perfFrame));
|
|
6322
|
+
}
|
|
6323
|
+
if (_perfFrame >= 0)
|
|
6324
|
+
performance.mark("rive:artboard-draw:start:f".concat(_perfFrame));
|
|
6222
6325
|
this.artboard.draw(renderer);
|
|
6326
|
+
if (_perfFrame >= 0) {
|
|
6327
|
+
performance.mark("rive:artboard-draw:end:f".concat(_perfFrame));
|
|
6328
|
+
performance.measure("rive:artboard-draw:f".concat(_perfFrame), "rive:artboard-draw:start:f".concat(_perfFrame), "rive:artboard-draw:end:f".concat(_perfFrame));
|
|
6329
|
+
}
|
|
6223
6330
|
renderer.restore();
|
|
6331
|
+
if (_perfFrame >= 0)
|
|
6332
|
+
performance.mark("rive:renderer-flush:start:f".concat(_perfFrame));
|
|
6224
6333
|
renderer.flush();
|
|
6334
|
+
if (_perfFrame >= 0) {
|
|
6335
|
+
performance.mark("rive:renderer-flush:end:f".concat(_perfFrame));
|
|
6336
|
+
performance.measure("rive:renderer-flush:f".concat(_perfFrame), "rive:renderer-flush:start:f".concat(_perfFrame), "rive:renderer-flush:end:f".concat(_perfFrame));
|
|
6337
|
+
}
|
|
6225
6338
|
this._needsRedraw = false;
|
|
6226
6339
|
}
|
|
6227
6340
|
}
|
|
@@ -7193,6 +7306,22 @@ var Rive = /** @class */ (function () {
|
|
|
7193
7306
|
return Rive;
|
|
7194
7307
|
}());
|
|
7195
7308
|
|
|
7309
|
+
var DataType;
|
|
7310
|
+
(function (DataType) {
|
|
7311
|
+
DataType["none"] = "none";
|
|
7312
|
+
DataType["string"] = "string";
|
|
7313
|
+
DataType["number"] = "number";
|
|
7314
|
+
DataType["boolean"] = "boolean";
|
|
7315
|
+
DataType["color"] = "color";
|
|
7316
|
+
DataType["list"] = "list";
|
|
7317
|
+
DataType["enumType"] = "enumType";
|
|
7318
|
+
DataType["trigger"] = "trigger";
|
|
7319
|
+
DataType["viewModel"] = "viewModel";
|
|
7320
|
+
DataType["integer"] = "integer";
|
|
7321
|
+
DataType["listIndex"] = "listIndex";
|
|
7322
|
+
DataType["image"] = "image";
|
|
7323
|
+
DataType["artboard"] = "artboard";
|
|
7324
|
+
})(DataType || (DataType = {}));
|
|
7196
7325
|
var ViewModel = /** @class */ (function () {
|
|
7197
7326
|
function ViewModel(viewModel) {
|
|
7198
7327
|
this._viewModel = viewModel;
|
|
@@ -7671,6 +7800,17 @@ var ViewModelInstance = /** @class */ (function () {
|
|
|
7671
7800
|
enumerable: false,
|
|
7672
7801
|
configurable: true
|
|
7673
7802
|
});
|
|
7803
|
+
Object.defineProperty(ViewModelInstance.prototype, "viewModelName", {
|
|
7804
|
+
/**
|
|
7805
|
+
* Get the name of the ViewModel definition this instance was created from.
|
|
7806
|
+
*/
|
|
7807
|
+
get: function () {
|
|
7808
|
+
var _a, _b;
|
|
7809
|
+
return (_b = (_a = this._runtimeInstance) === null || _a === void 0 ? void 0 : _a.getViewModelName()) !== null && _b !== void 0 ? _b : "";
|
|
7810
|
+
},
|
|
7811
|
+
enumerable: false,
|
|
7812
|
+
configurable: true
|
|
7813
|
+
});
|
|
7674
7814
|
ViewModelInstance.prototype.internalIncrementReferenceCount = function () {
|
|
7675
7815
|
this._referenceCount++;
|
|
7676
7816
|
};
|