@rive-app/webgl2-advanced 2.15.2 → 2.15.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rive.wasm +0 -0
- package/webgl2_advanced.mjs +1217 -1311
package/webgl2_advanced.mjs
CHANGED
|
@@ -5,12 +5,12 @@ var Rive = (() => {
|
|
|
5
5
|
return (
|
|
6
6
|
function(moduleArg = {}) {
|
|
7
7
|
|
|
8
|
-
var n = moduleArg, aa,
|
|
8
|
+
var n = moduleArg, aa, ba;
|
|
9
9
|
n.ready = new Promise((a, b) => {
|
|
10
10
|
aa = a;
|
|
11
|
-
|
|
11
|
+
ba = b;
|
|
12
12
|
});
|
|
13
|
-
function
|
|
13
|
+
function ca() {
|
|
14
14
|
function a(g) {
|
|
15
15
|
const m = d;
|
|
16
16
|
c = b = 0;
|
|
@@ -22,8 +22,8 @@ function da() {
|
|
|
22
22
|
console.error(l);
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
this.
|
|
26
|
-
e && e.
|
|
25
|
+
this.ib();
|
|
26
|
+
e && e.Kb();
|
|
27
27
|
}
|
|
28
28
|
let b = 0, c = 0, d = new Map(), e = null, f = null;
|
|
29
29
|
this.requestAnimationFrame = function(g) {
|
|
@@ -36,23 +36,23 @@ function da() {
|
|
|
36
36
|
d.delete(g);
|
|
37
37
|
b && 0 == d.size && (cancelAnimationFrame(b), b = 0);
|
|
38
38
|
};
|
|
39
|
-
this.
|
|
39
|
+
this.Ib = function(g) {
|
|
40
40
|
f && (document.body.remove(f), f = null);
|
|
41
41
|
g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(m) {
|
|
42
42
|
f.innerHTML = "RIVE FPS " + m.toFixed(1);
|
|
43
43
|
}, document.body.appendChild(f));
|
|
44
44
|
e = new function() {
|
|
45
45
|
let m = 0, p = 0;
|
|
46
|
-
this.
|
|
46
|
+
this.Kb = function() {
|
|
47
47
|
var l = performance.now();
|
|
48
48
|
p ? (++m, l -= p, 1000 < l && (g(1000 * m / l), m = p = 0)) : (p = l, m = 0);
|
|
49
49
|
};
|
|
50
50
|
}();
|
|
51
51
|
};
|
|
52
|
-
this.
|
|
52
|
+
this.ib = function() {
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function da() {
|
|
56
56
|
console.assert(!0);
|
|
57
57
|
const a = new Map();
|
|
58
58
|
let b = -Infinity;
|
|
@@ -67,9 +67,9 @@ function ea() {
|
|
|
67
67
|
return b << 8;
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
const
|
|
70
|
+
const ea = n.onRuntimeInitialized;
|
|
71
71
|
n.onRuntimeInitialized = function() {
|
|
72
|
-
|
|
72
|
+
ea && ea();
|
|
73
73
|
let a = n.decodeAudio;
|
|
74
74
|
n.decodeAudio = function(d, e) {
|
|
75
75
|
d = a(d);
|
|
@@ -87,10 +87,10 @@ n.onRuntimeInitialized = function() {
|
|
|
87
87
|
};
|
|
88
88
|
n.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:d}) {
|
|
89
89
|
this.__parent.__construct.call(this);
|
|
90
|
-
this.
|
|
90
|
+
this.zb = d;
|
|
91
91
|
}, loadContents:function(d, e) {
|
|
92
92
|
d = n.ptrToAsset(d);
|
|
93
|
-
return this.
|
|
93
|
+
return this.zb(d, e);
|
|
94
94
|
},});
|
|
95
95
|
n.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
|
|
96
96
|
this.__parent.__construct.call(this);
|
|
@@ -115,11 +115,11 @@ n.onRuntimeInitialized = function() {
|
|
|
115
115
|
},});
|
|
116
116
|
n.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
117
117
|
this.__parent.__construct.call(this);
|
|
118
|
-
this.
|
|
118
|
+
this.eb = [];
|
|
119
119
|
}, addLoader:function(d) {
|
|
120
|
-
this.
|
|
120
|
+
this.eb.push(d);
|
|
121
121
|
}, loadContents:function(d, e) {
|
|
122
|
-
for (let f of this.
|
|
122
|
+
for (let f of this.eb) {
|
|
123
123
|
if (f.loadContents(d, e)) {
|
|
124
124
|
return !0;
|
|
125
125
|
}
|
|
@@ -127,31 +127,31 @@ n.onRuntimeInitialized = function() {
|
|
|
127
127
|
return !1;
|
|
128
128
|
},});
|
|
129
129
|
};
|
|
130
|
-
const
|
|
130
|
+
const fa = n.onRuntimeInitialized;
|
|
131
131
|
n.onRuntimeInitialized = function() {
|
|
132
132
|
function a(q) {
|
|
133
133
|
this.F = q;
|
|
134
|
-
this.
|
|
135
|
-
this.
|
|
136
|
-
this.
|
|
134
|
+
this.xb = q.getContext("2d");
|
|
135
|
+
this.Bb = d;
|
|
136
|
+
this.S = [];
|
|
137
137
|
this.la = 0;
|
|
138
138
|
this.clear = function() {
|
|
139
139
|
console.assert(0 == this.la);
|
|
140
|
-
this.
|
|
140
|
+
this.S = [];
|
|
141
141
|
e.delete(this);
|
|
142
142
|
};
|
|
143
143
|
this.save = function() {
|
|
144
144
|
++this.la;
|
|
145
|
-
this.
|
|
145
|
+
this.S.push(d.save.bind(d));
|
|
146
146
|
};
|
|
147
147
|
this.restore = function() {
|
|
148
|
-
0 < this.la && (this.
|
|
148
|
+
0 < this.la && (this.S.push(d.restore.bind(d)), --this.la);
|
|
149
149
|
};
|
|
150
150
|
this.transform = function(k) {
|
|
151
|
-
this.
|
|
151
|
+
this.S.push(d.transform.bind(d, k));
|
|
152
152
|
};
|
|
153
|
-
this.align = function(k, r, w,
|
|
154
|
-
this.
|
|
153
|
+
this.align = function(k, r, w, y) {
|
|
154
|
+
this.S.push(d.align.bind(d, k, r, w, y));
|
|
155
155
|
};
|
|
156
156
|
this.flush = function() {
|
|
157
157
|
console.assert(0 == this.la);
|
|
@@ -165,24 +165,24 @@ n.onRuntimeInitialized = function() {
|
|
|
165
165
|
if (!k) {
|
|
166
166
|
return null;
|
|
167
167
|
}
|
|
168
|
-
var w =
|
|
169
|
-
k.canvas && (k.canvas.
|
|
170
|
-
t[w] =
|
|
171
|
-
("undefined" == typeof r.
|
|
172
|
-
|
|
168
|
+
var w = ha(t), y = {handle:w, attributes:r, version:r.Cc, H:k};
|
|
169
|
+
k.canvas && (k.canvas.nc = y);
|
|
170
|
+
t[w] = y;
|
|
171
|
+
("undefined" == typeof r.Hb || r.Hb) && ia(y);
|
|
172
|
+
ja(w);
|
|
173
173
|
r = f(q.width, q.height);
|
|
174
|
-
r.
|
|
174
|
+
r.yb = w;
|
|
175
175
|
r.F = q;
|
|
176
|
-
r.
|
|
177
|
-
r.
|
|
176
|
+
r.Ua = q.width;
|
|
177
|
+
r.Ta = q.height;
|
|
178
178
|
r.ka = k;
|
|
179
179
|
return r;
|
|
180
180
|
}
|
|
181
181
|
function c() {
|
|
182
182
|
if (d) {
|
|
183
|
-
var q = d.
|
|
184
|
-
for (var
|
|
185
|
-
|
|
183
|
+
var q = d.Ab, k = 0, r = 0, w = 0, y = Array(e.size), E = 0;
|
|
184
|
+
for (var z of e) {
|
|
185
|
+
z.ea = Math.min(z.F.width, q), z.da = Math.min(z.F.height, q), z.Ia = z.da * z.ea, k = Math.max(k, z.ea), r = Math.max(r, z.da), w += z.Ia, y[E++] = z;
|
|
186
186
|
}
|
|
187
187
|
e.clear();
|
|
188
188
|
if (!(0 >= w)) {
|
|
@@ -192,64 +192,64 @@ n.onRuntimeInitialized = function() {
|
|
|
192
192
|
}
|
|
193
193
|
k = Math.min(k, q);
|
|
194
194
|
k = Math.min(r, q);
|
|
195
|
-
|
|
195
|
+
y.sort((Y, qb) => qb.Ia - Y.Ia);
|
|
196
196
|
w = new n.DynamicRectanizer(q);
|
|
197
|
-
for (
|
|
197
|
+
for (z = 0; z < y.length;) {
|
|
198
198
|
w.reset(k, r);
|
|
199
|
-
for (
|
|
200
|
-
var
|
|
201
|
-
if (0 >
|
|
202
|
-
console.assert(
|
|
199
|
+
for (E = z; E < y.length; ++E) {
|
|
200
|
+
var F = y[E], D = w.addRect(F.ea, F.da);
|
|
201
|
+
if (0 > D) {
|
|
202
|
+
console.assert(E > z);
|
|
203
203
|
break;
|
|
204
204
|
}
|
|
205
|
-
|
|
206
|
-
|
|
205
|
+
F.ra = D & 65535;
|
|
206
|
+
F.sa = D >> 16;
|
|
207
207
|
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
console.assert(
|
|
211
|
-
console.assert(
|
|
212
|
-
console.assert(
|
|
213
|
-
console.assert(
|
|
214
|
-
d.F.width !=
|
|
215
|
-
d.F.height !=
|
|
208
|
+
F = m.push(w.drawWidth());
|
|
209
|
+
D = p.push(w.drawHeight());
|
|
210
|
+
console.assert(F >= w.drawWidth());
|
|
211
|
+
console.assert(D >= w.drawHeight());
|
|
212
|
+
console.assert(F <= q);
|
|
213
|
+
console.assert(D <= q);
|
|
214
|
+
d.F.width != F && (d.F.width = F);
|
|
215
|
+
d.F.height != D && (d.F.height = D);
|
|
216
216
|
d.clear();
|
|
217
|
-
for (
|
|
218
|
-
|
|
219
|
-
d.saveClipRect(
|
|
220
|
-
let
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
d.transform(
|
|
227
|
-
for (const
|
|
228
|
-
|
|
217
|
+
for (F = z; F < E; ++F) {
|
|
218
|
+
D = y[F];
|
|
219
|
+
d.saveClipRect(D.ra, D.sa, D.ra + D.ea, D.sa + D.da);
|
|
220
|
+
let Y = new n.Mat2D();
|
|
221
|
+
Y.xx = D.ea / D.F.width;
|
|
222
|
+
Y.yy = D.da / D.F.height;
|
|
223
|
+
Y.xy = Y.yx = 0;
|
|
224
|
+
Y.tx = D.ra;
|
|
225
|
+
Y.ty = D.sa;
|
|
226
|
+
d.transform(Y);
|
|
227
|
+
for (const qb of D.S) {
|
|
228
|
+
qb();
|
|
229
229
|
}
|
|
230
230
|
d.restoreClipRect();
|
|
231
|
-
|
|
231
|
+
D.S = [];
|
|
232
232
|
}
|
|
233
|
-
for (d.flush();
|
|
234
|
-
|
|
233
|
+
for (d.flush(); z < E; ++z) {
|
|
234
|
+
F = y[z], D = F.xb, D.globalCompositeOperation = "copy", D.drawImage(d.F, F.ra, F.sa, F.ea, F.da, 0, 0, F.F.width, F.F.height);
|
|
235
235
|
}
|
|
236
|
-
|
|
236
|
+
z = E;
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
|
-
|
|
241
|
+
fa && fa();
|
|
242
242
|
let d = null;
|
|
243
243
|
const e = new Set(), f = n.makeRenderer;
|
|
244
244
|
n.makeRenderer = function(q, k) {
|
|
245
245
|
if (!d) {
|
|
246
246
|
function r(w) {
|
|
247
|
-
const
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
d = b(
|
|
247
|
+
const y = document.createElement("canvas");
|
|
248
|
+
y.width = 1;
|
|
249
|
+
y.height = 1;
|
|
250
|
+
d = b(y, w);
|
|
251
251
|
d.Ja = !!d.ka.getExtension("WEBGL_shader_pixel_local_storage");
|
|
252
|
-
d.
|
|
252
|
+
d.Ab = Math.min(d.ka.getParameter(d.ka.MAX_RENDERBUFFER_SIZE), d.ka.getParameter(d.ka.MAX_TEXTURE_SIZE));
|
|
253
253
|
return d;
|
|
254
254
|
}
|
|
255
255
|
d = r(!0);
|
|
@@ -259,13 +259,13 @@ n.onRuntimeInitialized = function() {
|
|
|
259
259
|
};
|
|
260
260
|
const g = n.Artboard.prototype.draw;
|
|
261
261
|
n.Artboard.prototype.draw = function(q) {
|
|
262
|
-
q.
|
|
262
|
+
q.S ? q.S.push(g.bind(this, q.Bb)) : g.call(this, q);
|
|
263
263
|
};
|
|
264
|
-
const m = new
|
|
264
|
+
const m = new da(), p = new da(), l = new ca();
|
|
265
265
|
n.requestAnimationFrame = l.requestAnimationFrame.bind(l);
|
|
266
266
|
n.cancelAnimationFrame = l.cancelAnimationFrame.bind(l);
|
|
267
|
-
n.enableFPSCounter = l.
|
|
268
|
-
l.
|
|
267
|
+
n.enableFPSCounter = l.Ib.bind(l);
|
|
268
|
+
l.ib = c;
|
|
269
269
|
n.resolveAnimationFrame = c;
|
|
270
270
|
let u = n.load;
|
|
271
271
|
n.load = function(q, k, r = !0) {
|
|
@@ -276,10 +276,10 @@ n.onRuntimeInitialized = function() {
|
|
|
276
276
|
};
|
|
277
277
|
const v = n.WebGL2Renderer.prototype.clear;
|
|
278
278
|
n.WebGL2Renderer.prototype.clear = function() {
|
|
279
|
-
|
|
279
|
+
ja(this.yb);
|
|
280
280
|
const q = this.F;
|
|
281
|
-
if (this.
|
|
282
|
-
this.resize(q.width, q.height), this.
|
|
281
|
+
if (this.Ua != q.width || this.Ta != q.height) {
|
|
282
|
+
this.resize(q.width, q.height), this.Ua = q.width, this.Ta = q.height;
|
|
283
283
|
}
|
|
284
284
|
v.call(this);
|
|
285
285
|
};
|
|
@@ -288,15 +288,15 @@ n.onRuntimeInitialized = function() {
|
|
|
288
288
|
k(q);
|
|
289
289
|
};
|
|
290
290
|
};
|
|
291
|
-
var
|
|
292
|
-
if (
|
|
293
|
-
|
|
291
|
+
var ka = Object.assign({}, n), la = "./this.program", ma = "object" == typeof window, na = "function" == typeof importScripts, x = "", oa, pa;
|
|
292
|
+
if (ma || na) {
|
|
293
|
+
na ? x = self.location.href : "undefined" != typeof document && document.currentScript && (x = document.currentScript.src), _scriptDir && (x = _scriptDir), 0 !== x.indexOf("blob:") ? x = x.substr(0, x.replace(/[?#].*/, "").lastIndexOf("/") + 1) : x = "", na && (pa = a => {
|
|
294
294
|
var b = new XMLHttpRequest();
|
|
295
295
|
b.open("GET", a, !1);
|
|
296
296
|
b.responseType = "arraybuffer";
|
|
297
297
|
b.send(null);
|
|
298
298
|
return new Uint8Array(b.response);
|
|
299
|
-
}),
|
|
299
|
+
}), oa = (a, b, c) => {
|
|
300
300
|
var d = new XMLHttpRequest();
|
|
301
301
|
d.open("GET", a, !0);
|
|
302
302
|
d.responseType = "arraybuffer";
|
|
@@ -307,109 +307,109 @@ if (na || oa) {
|
|
|
307
307
|
d.send(null);
|
|
308
308
|
};
|
|
309
309
|
}
|
|
310
|
-
var
|
|
311
|
-
Object.assign(n,
|
|
312
|
-
|
|
313
|
-
n.thisProgram && (
|
|
314
|
-
var
|
|
315
|
-
n.wasmBinary && (
|
|
310
|
+
var qa = n.print || console.log.bind(console), A = n.printErr || console.error.bind(console);
|
|
311
|
+
Object.assign(n, ka);
|
|
312
|
+
ka = null;
|
|
313
|
+
n.thisProgram && (la = n.thisProgram);
|
|
314
|
+
var ra;
|
|
315
|
+
n.wasmBinary && (ra = n.wasmBinary);
|
|
316
316
|
var noExitRuntime = n.noExitRuntime || !0;
|
|
317
|
-
"object" != typeof WebAssembly &&
|
|
318
|
-
var
|
|
319
|
-
function
|
|
320
|
-
var a =
|
|
321
|
-
n.HEAP8 =
|
|
322
|
-
n.HEAP16 =
|
|
323
|
-
n.HEAP32 =
|
|
324
|
-
n.HEAPU8 =
|
|
325
|
-
n.HEAPU16 =
|
|
326
|
-
n.HEAPU32 =
|
|
327
|
-
n.HEAPF32 =
|
|
328
|
-
n.HEAPF64 =
|
|
329
|
-
}
|
|
330
|
-
var
|
|
331
|
-
function
|
|
317
|
+
"object" != typeof WebAssembly && sa("no native wasm support detected");
|
|
318
|
+
var ta, B, ua = !1, C, G, H, va, I, J, wa, xa;
|
|
319
|
+
function ya() {
|
|
320
|
+
var a = ta.buffer;
|
|
321
|
+
n.HEAP8 = C = new Int8Array(a);
|
|
322
|
+
n.HEAP16 = H = new Int16Array(a);
|
|
323
|
+
n.HEAP32 = I = new Int32Array(a);
|
|
324
|
+
n.HEAPU8 = G = new Uint8Array(a);
|
|
325
|
+
n.HEAPU16 = va = new Uint16Array(a);
|
|
326
|
+
n.HEAPU32 = J = new Uint32Array(a);
|
|
327
|
+
n.HEAPF32 = wa = new Float32Array(a);
|
|
328
|
+
n.HEAPF64 = xa = new Float64Array(a);
|
|
329
|
+
}
|
|
330
|
+
var za, Aa = [], Ba = [], Ca = [];
|
|
331
|
+
function Da() {
|
|
332
332
|
var a = n.preRun.shift();
|
|
333
|
-
|
|
333
|
+
Aa.unshift(a);
|
|
334
334
|
}
|
|
335
|
-
var
|
|
336
|
-
function
|
|
335
|
+
var Ea = 0, Fa = null, Ga = null;
|
|
336
|
+
function sa(a) {
|
|
337
337
|
if (n.onAbort) {
|
|
338
338
|
n.onAbort(a);
|
|
339
339
|
}
|
|
340
340
|
a = "Aborted(" + a + ")";
|
|
341
|
-
|
|
342
|
-
|
|
341
|
+
A(a);
|
|
342
|
+
ua = !0;
|
|
343
343
|
a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
|
|
344
|
-
|
|
344
|
+
ba(a);
|
|
345
345
|
throw a;
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function Ha(a) {
|
|
348
348
|
return a.startsWith("data:application/octet-stream;base64,");
|
|
349
349
|
}
|
|
350
|
-
var
|
|
351
|
-
|
|
352
|
-
if (!
|
|
353
|
-
var
|
|
354
|
-
|
|
350
|
+
var Ia;
|
|
351
|
+
Ia = "webgl2_advanced.wasm";
|
|
352
|
+
if (!Ha(Ia)) {
|
|
353
|
+
var Ja = Ia;
|
|
354
|
+
Ia = n.locateFile ? n.locateFile(Ja, x) : x + Ja;
|
|
355
355
|
}
|
|
356
|
-
function
|
|
357
|
-
if (a ==
|
|
358
|
-
return new Uint8Array(
|
|
356
|
+
function Ka(a) {
|
|
357
|
+
if (a == Ia && ra) {
|
|
358
|
+
return new Uint8Array(ra);
|
|
359
359
|
}
|
|
360
|
-
if (
|
|
361
|
-
return
|
|
360
|
+
if (pa) {
|
|
361
|
+
return pa(a);
|
|
362
362
|
}
|
|
363
363
|
throw "both async and sync fetching of the wasm failed";
|
|
364
364
|
}
|
|
365
|
-
function
|
|
366
|
-
if (!
|
|
365
|
+
function La(a) {
|
|
366
|
+
if (!ra && (ma || na)) {
|
|
367
367
|
if ("function" == typeof fetch && !a.startsWith("file://")) {
|
|
368
368
|
return fetch(a, {credentials:"same-origin"}).then(b => {
|
|
369
369
|
if (!b.ok) {
|
|
370
370
|
throw "failed to load wasm binary file at '" + a + "'";
|
|
371
371
|
}
|
|
372
372
|
return b.arrayBuffer();
|
|
373
|
-
}).catch(() =>
|
|
373
|
+
}).catch(() => Ka(a));
|
|
374
374
|
}
|
|
375
|
-
if (
|
|
375
|
+
if (oa) {
|
|
376
376
|
return new Promise((b, c) => {
|
|
377
|
-
|
|
377
|
+
oa(a, d => b(new Uint8Array(d)), c);
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
|
-
return Promise.resolve().then(() =>
|
|
381
|
+
return Promise.resolve().then(() => Ka(a));
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
return
|
|
385
|
-
|
|
386
|
-
|
|
383
|
+
function Ma(a, b, c) {
|
|
384
|
+
return La(a).then(d => WebAssembly.instantiate(d, b)).then(d => d).then(c, d => {
|
|
385
|
+
A("failed to asynchronously prepare wasm: " + d);
|
|
386
|
+
sa(d);
|
|
387
387
|
});
|
|
388
388
|
}
|
|
389
|
-
function
|
|
390
|
-
var c =
|
|
391
|
-
return
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
return
|
|
389
|
+
function Na(a, b) {
|
|
390
|
+
var c = Ia;
|
|
391
|
+
return ra || "function" != typeof WebAssembly.instantiateStreaming || Ha(c) || c.startsWith("file://") || "function" != typeof fetch ? Ma(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
|
|
392
|
+
A("wasm streaming compile failed: " + e);
|
|
393
|
+
A("falling back to ArrayBuffer instantiation");
|
|
394
|
+
return Ma(c, a, b);
|
|
395
395
|
}));
|
|
396
396
|
}
|
|
397
|
-
var
|
|
397
|
+
var Oa, Pa, Ta = {469576:(a, b, c, d, e) => {
|
|
398
398
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
399
399
|
return 0;
|
|
400
400
|
}
|
|
401
401
|
if ("undefined" === typeof window.h) {
|
|
402
402
|
window.h = {Da:0};
|
|
403
403
|
window.h.I = {};
|
|
404
|
-
window.h.I.
|
|
404
|
+
window.h.I.Ba = a;
|
|
405
405
|
window.h.I.capture = b;
|
|
406
406
|
window.h.I.La = c;
|
|
407
407
|
window.h.ha = {};
|
|
408
408
|
window.h.ha.stopped = d;
|
|
409
|
-
window.h.ha.
|
|
409
|
+
window.h.ha.rb = e;
|
|
410
410
|
let f = window.h;
|
|
411
411
|
f.C = [];
|
|
412
|
-
f.
|
|
412
|
+
f.lc = function(g) {
|
|
413
413
|
for (var m = 0; m < f.C.length; ++m) {
|
|
414
414
|
if (null == f.C[m]) {
|
|
415
415
|
return f.C[m] = g, m;
|
|
@@ -418,7 +418,7 @@ var J, K, Ta = {474256:(a, b, c, d, e) => {
|
|
|
418
418
|
f.C.push(g);
|
|
419
419
|
return f.C.length - 1;
|
|
420
420
|
};
|
|
421
|
-
f.
|
|
421
|
+
f.wb = function(g) {
|
|
422
422
|
for (f.C[g] = null; 0 < f.C.length;) {
|
|
423
423
|
if (null == f.C[f.C.length - 1]) {
|
|
424
424
|
f.C.pop();
|
|
@@ -430,36 +430,36 @@ var J, K, Ta = {474256:(a, b, c, d, e) => {
|
|
|
430
430
|
f.Nc = function(g) {
|
|
431
431
|
for (var m = 0; m < f.C.length; ++m) {
|
|
432
432
|
if (f.C[m] == g) {
|
|
433
|
-
return f.
|
|
433
|
+
return f.wb(m);
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
};
|
|
437
|
-
f.
|
|
437
|
+
f.va = function(g) {
|
|
438
438
|
return f.C[g];
|
|
439
439
|
};
|
|
440
|
-
f.
|
|
440
|
+
f.vb = ["touchend", "click"];
|
|
441
441
|
f.unlock = function() {
|
|
442
442
|
for (var g = 0; g < f.C.length; ++g) {
|
|
443
443
|
var m = f.C[g];
|
|
444
|
-
null != m && null != m.J && m.state === f.ha.
|
|
445
|
-
Qa(m.
|
|
444
|
+
null != m && null != m.J && m.state === f.ha.rb && m.J.resume().then(() => {
|
|
445
|
+
Qa(m.jb);
|
|
446
446
|
}, p => {
|
|
447
447
|
console.error("Failed to resume audiocontext", p);
|
|
448
448
|
});
|
|
449
449
|
}
|
|
450
|
-
f.
|
|
450
|
+
f.vb.map(function(p) {
|
|
451
451
|
document.removeEventListener(p, f.unlock, !0);
|
|
452
452
|
});
|
|
453
453
|
};
|
|
454
|
-
f.
|
|
454
|
+
f.vb.map(function(g) {
|
|
455
455
|
document.addEventListener(g, f.unlock, !0);
|
|
456
456
|
});
|
|
457
457
|
}
|
|
458
458
|
window.h.Da += 1;
|
|
459
459
|
return 1;
|
|
460
|
-
},
|
|
460
|
+
}, 471754:() => {
|
|
461
461
|
"undefined" !== typeof window.h && (--window.h.Da, 0 === window.h.Da && delete window.h);
|
|
462
|
-
},
|
|
462
|
+
}, 471918:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 472022:() => {
|
|
463
463
|
try {
|
|
464
464
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
465
465
|
a.close();
|
|
@@ -467,33 +467,33 @@ var J, K, Ta = {474256:(a, b, c, d, e) => {
|
|
|
467
467
|
} catch (c) {
|
|
468
468
|
return 0;
|
|
469
469
|
}
|
|
470
|
-
},
|
|
470
|
+
}, 472193:(a, b, c, d, e, f) => {
|
|
471
471
|
if ("undefined" === typeof window.h) {
|
|
472
472
|
return -1;
|
|
473
473
|
}
|
|
474
474
|
var g = {}, m = {};
|
|
475
|
-
a == window.h.I.
|
|
475
|
+
a == window.h.I.Ba && 0 != c && (m.sampleRate = c);
|
|
476
476
|
g.J = new (window.AudioContext || window.webkitAudioContext)(m);
|
|
477
477
|
g.J.suspend();
|
|
478
478
|
g.state = window.h.ha.stopped;
|
|
479
479
|
c = 0;
|
|
480
|
-
a != window.h.I.
|
|
481
|
-
g.
|
|
482
|
-
g.
|
|
483
|
-
if (null == g.
|
|
484
|
-
g.
|
|
480
|
+
a != window.h.I.Ba && (c = b);
|
|
481
|
+
g.Y = g.J.createScriptProcessor(d, c, b);
|
|
482
|
+
g.Y.onaudioprocess = function(p) {
|
|
483
|
+
if (null == g.wa || 0 == g.wa.length) {
|
|
484
|
+
g.wa = new Float32Array(wa.buffer, e, d * b);
|
|
485
485
|
}
|
|
486
486
|
if (a == window.h.I.capture || a == window.h.I.La) {
|
|
487
487
|
for (var l = 0; l < b; l += 1) {
|
|
488
|
-
for (var u = p.inputBuffer.getChannelData(l), v = g.
|
|
488
|
+
for (var u = p.inputBuffer.getChannelData(l), v = g.wa, q = 0; q < d; q += 1) {
|
|
489
489
|
v[q * b + l] = u[q];
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
Ra(f, d, e);
|
|
493
493
|
}
|
|
494
|
-
if (a == window.h.I.
|
|
494
|
+
if (a == window.h.I.Ba || a == window.h.I.La) {
|
|
495
495
|
for (Sa(f, d, e), l = 0; l < p.outputBuffer.numberOfChannels; ++l) {
|
|
496
|
-
for (u = p.outputBuffer.getChannelData(l), v = g.
|
|
496
|
+
for (u = p.outputBuffer.getChannelData(l), v = g.wa, q = 0; q < d; q += 1) {
|
|
497
497
|
u[q] = v[q * b + l];
|
|
498
498
|
}
|
|
499
499
|
}
|
|
@@ -505,30 +505,30 @@ var J, K, Ta = {474256:(a, b, c, d, e) => {
|
|
|
505
505
|
};
|
|
506
506
|
a != window.h.I.capture && a != window.h.I.La || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(p) {
|
|
507
507
|
g.Ea = g.J.createMediaStreamSource(p);
|
|
508
|
-
g.Ea.connect(g.
|
|
509
|
-
g.
|
|
508
|
+
g.Ea.connect(g.Y);
|
|
509
|
+
g.Y.connect(g.J.destination);
|
|
510
510
|
}).catch(function(p) {
|
|
511
511
|
console.log("Failed to get user media: " + p);
|
|
512
512
|
});
|
|
513
|
-
a == window.h.I.
|
|
514
|
-
g.
|
|
515
|
-
return window.h.
|
|
516
|
-
},
|
|
517
|
-
a = window.h.
|
|
518
|
-
void 0 !== a.
|
|
519
|
-
}, a.
|
|
513
|
+
a == window.h.I.Ba && g.Y.connect(g.J.destination);
|
|
514
|
+
g.jb = f;
|
|
515
|
+
return window.h.lc(g);
|
|
516
|
+
}, 475070:a => window.h.va(a).J.sampleRate, 475143:a => {
|
|
517
|
+
a = window.h.va(a);
|
|
518
|
+
void 0 !== a.Y && (a.Y.onaudioprocess = function() {
|
|
519
|
+
}, a.Y.disconnect(), a.Y = void 0);
|
|
520
520
|
void 0 !== a.Ea && (a.Ea.disconnect(), a.Ea = void 0);
|
|
521
521
|
a.J.close();
|
|
522
522
|
a.J = void 0;
|
|
523
|
-
a.
|
|
524
|
-
},
|
|
525
|
-
window.h.
|
|
526
|
-
},
|
|
527
|
-
a = window.h.
|
|
523
|
+
a.jb = void 0;
|
|
524
|
+
}, 475543:a => {
|
|
525
|
+
window.h.wb(a);
|
|
526
|
+
}, 475593:a => {
|
|
527
|
+
a = window.h.va(a);
|
|
528
528
|
a.J.resume();
|
|
529
|
-
a.state = window.h.ha.
|
|
530
|
-
},
|
|
531
|
-
a = window.h.
|
|
529
|
+
a.state = window.h.ha.rb;
|
|
530
|
+
}, 475732:a => {
|
|
531
|
+
a = window.h.va(a);
|
|
532
532
|
a.J.suspend();
|
|
533
533
|
a.state = window.h.ha.stopped;
|
|
534
534
|
}}, Ua = a => {
|
|
@@ -572,7 +572,7 @@ var J, K, Ta = {474256:(a, b, c, d, e) => {
|
|
|
572
572
|
if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
|
|
573
573
|
return a => crypto.getRandomValues(a);
|
|
574
574
|
}
|
|
575
|
-
|
|
575
|
+
sa("initRandomDevice");
|
|
576
576
|
}, $a = a => ($a = Za())(a);
|
|
577
577
|
function ab() {
|
|
578
578
|
for (var a = "", b = !1, c = arguments.length - 1; -1 <= c && !b; c--) {
|
|
@@ -589,7 +589,7 @@ function ab() {
|
|
|
589
589
|
a = Va(a.split("/").filter(d => !!d), !b).join("/");
|
|
590
590
|
return (b ? "/" : "") + a || ".";
|
|
591
591
|
}
|
|
592
|
-
var bb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0,
|
|
592
|
+
var bb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, K = (a, b, c) => {
|
|
593
593
|
var d = b + c;
|
|
594
594
|
for (c = b; a[c] && !(c >= d);) {
|
|
595
595
|
++c;
|
|
@@ -671,32 +671,32 @@ function fb(a, b) {
|
|
|
671
671
|
}
|
|
672
672
|
var gb = [];
|
|
673
673
|
function hb(a, b) {
|
|
674
|
-
gb[a] = {input:[], D:[],
|
|
674
|
+
gb[a] = {input:[], D:[], U:b};
|
|
675
675
|
ib(a, jb);
|
|
676
676
|
}
|
|
677
677
|
var jb = {open:function(a) {
|
|
678
|
-
var b = gb[a.node.
|
|
678
|
+
var b = gb[a.node.Ca];
|
|
679
679
|
if (!b) {
|
|
680
|
-
throw new
|
|
680
|
+
throw new L(43);
|
|
681
681
|
}
|
|
682
682
|
a.s = b;
|
|
683
683
|
a.seekable = !1;
|
|
684
684
|
}, close:function(a) {
|
|
685
|
-
a.s.
|
|
686
|
-
},
|
|
687
|
-
a.s.
|
|
685
|
+
a.s.U.ua(a.s);
|
|
686
|
+
}, ua:function(a) {
|
|
687
|
+
a.s.U.ua(a.s);
|
|
688
688
|
}, read:function(a, b, c, d) {
|
|
689
|
-
if (!a.s || !a.s.
|
|
690
|
-
throw new
|
|
689
|
+
if (!a.s || !a.s.U.cb) {
|
|
690
|
+
throw new L(60);
|
|
691
691
|
}
|
|
692
692
|
for (var e = 0, f = 0; f < d; f++) {
|
|
693
693
|
try {
|
|
694
|
-
var g = a.s.
|
|
694
|
+
var g = a.s.U.cb(a.s);
|
|
695
695
|
} catch (m) {
|
|
696
|
-
throw new
|
|
696
|
+
throw new L(29);
|
|
697
697
|
}
|
|
698
698
|
if (void 0 === g && 0 === e) {
|
|
699
|
-
throw new
|
|
699
|
+
throw new L(6);
|
|
700
700
|
}
|
|
701
701
|
if (null === g || void 0 === g) {
|
|
702
702
|
break;
|
|
@@ -707,15 +707,15 @@ var jb = {open:function(a) {
|
|
|
707
707
|
e && (a.node.timestamp = Date.now());
|
|
708
708
|
return e;
|
|
709
709
|
}, write:function(a, b, c, d) {
|
|
710
|
-
if (!a.s || !a.s.
|
|
711
|
-
throw new
|
|
710
|
+
if (!a.s || !a.s.U.Oa) {
|
|
711
|
+
throw new L(60);
|
|
712
712
|
}
|
|
713
713
|
try {
|
|
714
714
|
for (var e = 0; e < d; e++) {
|
|
715
|
-
a.s.
|
|
715
|
+
a.s.U.Oa(a.s, b[c + e]);
|
|
716
716
|
}
|
|
717
717
|
} catch (f) {
|
|
718
|
-
throw new
|
|
718
|
+
throw new L(29);
|
|
719
719
|
}
|
|
720
720
|
d && (a.node.timestamp = Date.now());
|
|
721
721
|
return e;
|
|
@@ -733,117 +733,117 @@ var jb = {open:function(a) {
|
|
|
733
733
|
a = cb.shift();
|
|
734
734
|
}
|
|
735
735
|
return a;
|
|
736
|
-
},
|
|
737
|
-
null === b || 10 === b ? (
|
|
738
|
-
},
|
|
739
|
-
a.D && 0 < a.D.length && (
|
|
740
|
-
},
|
|
741
|
-
return {
|
|
742
|
-
},
|
|
736
|
+
}, Oa:function(a, b) {
|
|
737
|
+
null === b || 10 === b ? (qa(K(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
|
|
738
|
+
}, ua:function(a) {
|
|
739
|
+
a.D && 0 < a.D.length && (qa(K(a.D, 0)), a.D = []);
|
|
740
|
+
}, Ub:function() {
|
|
741
|
+
return {sc:25856, uc:5, rc:191, tc:35387, qc:[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,]};
|
|
742
|
+
}, Vb:function() {
|
|
743
743
|
return 0;
|
|
744
|
-
},
|
|
744
|
+
}, Wb:function() {
|
|
745
745
|
return [24, 80];
|
|
746
|
-
},}, lb = {
|
|
747
|
-
null === b || 10 === b ? (
|
|
748
|
-
},
|
|
749
|
-
a.D && 0 < a.D.length && (
|
|
746
|
+
},}, lb = {Oa:function(a, b) {
|
|
747
|
+
null === b || 10 === b ? (A(K(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
|
|
748
|
+
}, ua:function(a) {
|
|
749
|
+
a.D && 0 < a.D.length && (A(K(a.D, 0)), a.D = []);
|
|
750
750
|
},};
|
|
751
751
|
function mb(a, b) {
|
|
752
|
-
var c = a.
|
|
753
|
-
c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.
|
|
752
|
+
var c = a.j ? a.j.length : 0;
|
|
753
|
+
c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.j, a.j = new Uint8Array(b), 0 < a.v && a.j.set(c.subarray(0, a.v), 0));
|
|
754
754
|
}
|
|
755
|
-
var
|
|
756
|
-
return
|
|
755
|
+
var M = {O:null, T() {
|
|
756
|
+
return M.createNode(null, "/", 16895, 0);
|
|
757
757
|
}, createNode(a, b, c, d) {
|
|
758
758
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
759
|
-
throw new
|
|
759
|
+
throw new L(63);
|
|
760
760
|
}
|
|
761
|
-
|
|
761
|
+
M.O || (M.O = {dir:{node:{X:M.l.X, P:M.l.P, ma:M.l.ma, za:M.l.za, pb:M.l.pb, ub:M.l.ub, qb:M.l.qb, nb:M.l.nb, Fa:M.l.Fa}, stream:{aa:M.m.aa}}, file:{node:{X:M.l.X, P:M.l.P}, stream:{aa:M.m.aa, read:M.m.read, write:M.m.write, ta:M.m.ta, fb:M.m.fb, hb:M.m.hb}}, link:{node:{X:M.l.X, P:M.l.P, na:M.l.na}, stream:{}}, Va:{node:{X:M.l.X, P:M.l.P}, stream:nb}});
|
|
762
762
|
c = ob(a, b, c, d);
|
|
763
|
-
16384 === (c.mode & 61440) ? (c.
|
|
763
|
+
16384 === (c.mode & 61440) ? (c.l = M.O.dir.node, c.m = M.O.dir.stream, c.j = {}) : 32768 === (c.mode & 61440) ? (c.l = M.O.file.node, c.m = M.O.file.stream, c.v = 0, c.j = null) : 40960 === (c.mode & 61440) ? (c.l = M.O.link.node, c.m = M.O.link.stream) : 8192 === (c.mode & 61440) && (c.l = M.O.Va.node, c.m = M.O.Va.stream);
|
|
764
764
|
c.timestamp = Date.now();
|
|
765
|
-
a && (a.
|
|
765
|
+
a && (a.j[b] = c, a.timestamp = c.timestamp);
|
|
766
766
|
return c;
|
|
767
|
-
},
|
|
768
|
-
return a.
|
|
769
|
-
},
|
|
767
|
+
}, zc(a) {
|
|
768
|
+
return a.j ? a.j.subarray ? a.j.subarray(0, a.v) : new Uint8Array(a.j) : new Uint8Array(0);
|
|
769
|
+
}, l:{X(a) {
|
|
770
770
|
var b = {};
|
|
771
|
-
b.
|
|
772
|
-
b.
|
|
771
|
+
b.xc = 8192 === (a.mode & 61440) ? a.id : 1;
|
|
772
|
+
b.Bc = a.id;
|
|
773
773
|
b.mode = a.mode;
|
|
774
|
-
b.
|
|
774
|
+
b.Jc = 1;
|
|
775
775
|
b.uid = 0;
|
|
776
|
-
b.
|
|
777
|
-
b.
|
|
776
|
+
b.Ac = 0;
|
|
777
|
+
b.Ca = a.Ca;
|
|
778
778
|
16384 === (a.mode & 61440) ? b.size = 4096 : 32768 === (a.mode & 61440) ? b.size = a.v : 40960 === (a.mode & 61440) ? b.size = a.link.length : b.size = 0;
|
|
779
|
-
b.
|
|
780
|
-
b.
|
|
781
|
-
b.
|
|
782
|
-
b.
|
|
783
|
-
b.
|
|
779
|
+
b.oc = new Date(a.timestamp);
|
|
780
|
+
b.Hc = new Date(a.timestamp);
|
|
781
|
+
b.vc = new Date(a.timestamp);
|
|
782
|
+
b.Cb = 4096;
|
|
783
|
+
b.pc = Math.ceil(b.size / b.Cb);
|
|
784
784
|
return b;
|
|
785
|
-
},
|
|
785
|
+
}, P(a, b) {
|
|
786
786
|
void 0 !== b.mode && (a.mode = b.mode);
|
|
787
787
|
void 0 !== b.timestamp && (a.timestamp = b.timestamp);
|
|
788
788
|
if (void 0 !== b.size && (b = b.size, a.v != b)) {
|
|
789
789
|
if (0 == b) {
|
|
790
|
-
a.
|
|
790
|
+
a.j = null, a.v = 0;
|
|
791
791
|
} else {
|
|
792
|
-
var c = a.
|
|
793
|
-
a.
|
|
794
|
-
c && a.
|
|
792
|
+
var c = a.j;
|
|
793
|
+
a.j = new Uint8Array(b);
|
|
794
|
+
c && a.j.set(c.subarray(0, Math.min(b, a.v)));
|
|
795
795
|
a.v = b;
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
798
|
}, ma() {
|
|
799
799
|
throw pb[44];
|
|
800
|
-
},
|
|
801
|
-
return
|
|
802
|
-
},
|
|
800
|
+
}, za(a, b, c, d) {
|
|
801
|
+
return M.createNode(a, b, c, d);
|
|
802
|
+
}, pb(a, b, c) {
|
|
803
803
|
if (16384 === (a.mode & 61440)) {
|
|
804
804
|
try {
|
|
805
|
-
var d =
|
|
805
|
+
var d = rb(b, c);
|
|
806
806
|
} catch (f) {
|
|
807
807
|
}
|
|
808
808
|
if (d) {
|
|
809
|
-
for (var e in d.
|
|
810
|
-
throw new
|
|
809
|
+
for (var e in d.j) {
|
|
810
|
+
throw new L(55);
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
813
|
}
|
|
814
|
-
delete a.parent.
|
|
814
|
+
delete a.parent.j[a.name];
|
|
815
815
|
a.parent.timestamp = Date.now();
|
|
816
816
|
a.name = c;
|
|
817
|
-
b.
|
|
817
|
+
b.j[c] = a;
|
|
818
818
|
b.timestamp = a.parent.timestamp;
|
|
819
819
|
a.parent = b;
|
|
820
|
-
},
|
|
821
|
-
delete a.
|
|
820
|
+
}, ub(a, b) {
|
|
821
|
+
delete a.j[b];
|
|
822
822
|
a.timestamp = Date.now();
|
|
823
|
-
},
|
|
824
|
-
var c =
|
|
825
|
-
for (d in c.
|
|
826
|
-
throw new
|
|
823
|
+
}, qb(a, b) {
|
|
824
|
+
var c = rb(a, b), d;
|
|
825
|
+
for (d in c.j) {
|
|
826
|
+
throw new L(55);
|
|
827
827
|
}
|
|
828
|
-
delete a.
|
|
828
|
+
delete a.j[b];
|
|
829
829
|
a.timestamp = Date.now();
|
|
830
|
-
},
|
|
830
|
+
}, nb(a) {
|
|
831
831
|
var b = [".", ".."], c;
|
|
832
|
-
for (c in a.
|
|
833
|
-
a.
|
|
832
|
+
for (c in a.j) {
|
|
833
|
+
a.j.hasOwnProperty(c) && b.push(c);
|
|
834
834
|
}
|
|
835
835
|
return b;
|
|
836
836
|
}, Fa(a, b, c) {
|
|
837
|
-
a =
|
|
837
|
+
a = M.createNode(a, b, 41471, 0);
|
|
838
838
|
a.link = c;
|
|
839
839
|
return a;
|
|
840
|
-
},
|
|
840
|
+
}, na(a) {
|
|
841
841
|
if (40960 !== (a.mode & 61440)) {
|
|
842
|
-
throw new
|
|
842
|
+
throw new L(28);
|
|
843
843
|
}
|
|
844
844
|
return a.link;
|
|
845
845
|
},}, m:{read(a, b, c, d, e) {
|
|
846
|
-
var f = a.node.
|
|
846
|
+
var f = a.node.j;
|
|
847
847
|
if (e >= a.node.v) {
|
|
848
848
|
return 0;
|
|
849
849
|
}
|
|
@@ -857,29 +857,29 @@ var N = {R:null, V() {
|
|
|
857
857
|
}
|
|
858
858
|
return a;
|
|
859
859
|
}, write(a, b, c, d, e, f) {
|
|
860
|
-
b.buffer ===
|
|
860
|
+
b.buffer === C.buffer && (f = !1);
|
|
861
861
|
if (!d) {
|
|
862
862
|
return 0;
|
|
863
863
|
}
|
|
864
864
|
a = a.node;
|
|
865
865
|
a.timestamp = Date.now();
|
|
866
|
-
if (b.subarray && (!a.
|
|
866
|
+
if (b.subarray && (!a.j || a.j.subarray)) {
|
|
867
867
|
if (f) {
|
|
868
|
-
return a.
|
|
868
|
+
return a.j = b.subarray(c, c + d), a.v = d;
|
|
869
869
|
}
|
|
870
870
|
if (0 === a.v && 0 === e) {
|
|
871
|
-
return a.
|
|
871
|
+
return a.j = b.slice(c, c + d), a.v = d;
|
|
872
872
|
}
|
|
873
873
|
if (e + d <= a.v) {
|
|
874
|
-
return a.
|
|
874
|
+
return a.j.set(b.subarray(c, c + d), e), d;
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
877
|
mb(a, e + d);
|
|
878
|
-
if (a.
|
|
879
|
-
a.
|
|
878
|
+
if (a.j.subarray && b.subarray) {
|
|
879
|
+
a.j.set(b.subarray(c, c + d), e);
|
|
880
880
|
} else {
|
|
881
881
|
for (f = 0; f < d; f++) {
|
|
882
|
-
a.
|
|
882
|
+
a.j[e + f] = b[c + f];
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
885
|
a.v = Math.max(a.v, e + d);
|
|
@@ -887,64 +887,64 @@ var N = {R:null, V() {
|
|
|
887
887
|
}, aa(a, b, c) {
|
|
888
888
|
1 === c ? b += a.position : 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.v);
|
|
889
889
|
if (0 > b) {
|
|
890
|
-
throw new
|
|
890
|
+
throw new L(28);
|
|
891
891
|
}
|
|
892
892
|
return b;
|
|
893
|
-
},
|
|
893
|
+
}, ta(a, b, c) {
|
|
894
894
|
mb(a.node, b + c);
|
|
895
895
|
a.node.v = Math.max(a.node.v, b + c);
|
|
896
|
-
},
|
|
896
|
+
}, fb(a, b, c, d, e) {
|
|
897
897
|
if (32768 !== (a.node.mode & 61440)) {
|
|
898
|
-
throw new
|
|
898
|
+
throw new L(43);
|
|
899
899
|
}
|
|
900
|
-
a = a.node.
|
|
901
|
-
if (e & 2 || a.buffer !==
|
|
900
|
+
a = a.node.j;
|
|
901
|
+
if (e & 2 || a.buffer !== C.buffer) {
|
|
902
902
|
if (0 < c || c + b < a.length) {
|
|
903
903
|
a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
|
|
904
904
|
}
|
|
905
905
|
c = !0;
|
|
906
|
-
|
|
906
|
+
sa();
|
|
907
907
|
b = void 0;
|
|
908
908
|
if (!b) {
|
|
909
|
-
throw new
|
|
909
|
+
throw new L(48);
|
|
910
910
|
}
|
|
911
|
-
|
|
911
|
+
C.set(a, b);
|
|
912
912
|
} else {
|
|
913
913
|
c = !1, b = a.byteOffset;
|
|
914
914
|
}
|
|
915
|
-
return {o:b,
|
|
916
|
-
},
|
|
917
|
-
|
|
915
|
+
return {o:b, M:c};
|
|
916
|
+
}, hb(a, b, c, d) {
|
|
917
|
+
M.m.write(a, b, 0, d, c, !1);
|
|
918
918
|
return 0;
|
|
919
919
|
},},};
|
|
920
|
-
function
|
|
920
|
+
function sb(a, b) {
|
|
921
921
|
var c = 0;
|
|
922
922
|
a && (c |= 365);
|
|
923
923
|
b && (c |= 146);
|
|
924
924
|
return c;
|
|
925
925
|
}
|
|
926
|
-
var
|
|
926
|
+
var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, L = null, pb = {}, Ab = (a, b = {}) => {
|
|
927
927
|
a = ab(a);
|
|
928
928
|
if (!a) {
|
|
929
929
|
return {path:"", node:null};
|
|
930
930
|
}
|
|
931
|
-
b = Object.assign({ab:!0,
|
|
932
|
-
if (8 < b.
|
|
933
|
-
throw new
|
|
931
|
+
b = Object.assign({ab:!0, Qa:0}, b);
|
|
932
|
+
if (8 < b.Qa) {
|
|
933
|
+
throw new L(32);
|
|
934
934
|
}
|
|
935
935
|
a = a.split("/").filter(g => !!g);
|
|
936
|
-
for (var c =
|
|
936
|
+
for (var c = tb, d = "/", e = 0; e < a.length; e++) {
|
|
937
937
|
var f = e === a.length - 1;
|
|
938
938
|
if (f && b.parent) {
|
|
939
939
|
break;
|
|
940
940
|
}
|
|
941
|
-
c =
|
|
941
|
+
c = rb(c, a[e]);
|
|
942
942
|
d = Wa(d + "/" + a[e]);
|
|
943
|
-
c.
|
|
944
|
-
if (!f || b
|
|
943
|
+
c.Aa && (!f || f && b.ab) && (c = c.Aa.root);
|
|
944
|
+
if (!f || b.$a) {
|
|
945
945
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
946
|
-
if (c = zb(d), d = ab(Xa(d), c), c = Ab(d, {
|
|
947
|
-
throw new
|
|
946
|
+
if (c = zb(d), d = ab(Xa(d), c), c = Ab(d, {Qa:b.Qa + 1}).node, 40 < f++) {
|
|
947
|
+
throw new L(32);
|
|
948
948
|
}
|
|
949
949
|
}
|
|
950
950
|
}
|
|
@@ -953,7 +953,7 @@ var sb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
953
953
|
}, Bb = a => {
|
|
954
954
|
for (var b;;) {
|
|
955
955
|
if (a === a.parent) {
|
|
956
|
-
return a = a.
|
|
956
|
+
return a = a.T.gb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
|
|
957
957
|
}
|
|
958
958
|
b = b ? `${a.name}/${b}` : a.name;
|
|
959
959
|
a = a.parent;
|
|
@@ -963,22 +963,22 @@ var sb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
963
963
|
c = (c << 5) - c + b.charCodeAt(d) | 0;
|
|
964
964
|
}
|
|
965
965
|
return (a + c >>> 0) % xb.length;
|
|
966
|
-
},
|
|
966
|
+
}, rb = (a, b) => {
|
|
967
967
|
var c;
|
|
968
|
-
if (c = (c = Db(a, "x")) ? c : a.
|
|
969
|
-
throw new
|
|
968
|
+
if (c = (c = Db(a, "x")) ? c : a.l.ma ? 0 : 2) {
|
|
969
|
+
throw new L(c, a);
|
|
970
970
|
}
|
|
971
|
-
for (c = xb[Cb(a.id, b)]; c; c = c.
|
|
971
|
+
for (c = xb[Cb(a.id, b)]; c; c = c.Zb) {
|
|
972
972
|
var d = c.name;
|
|
973
973
|
if (c.parent.id === a.id && d === b) {
|
|
974
974
|
return c;
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
|
-
return a.
|
|
977
|
+
return a.l.ma(a, b);
|
|
978
978
|
}, ob = (a, b, c, d) => {
|
|
979
979
|
a = new Eb(a, b, c, d);
|
|
980
980
|
b = Cb(a.parent.id, a.name);
|
|
981
|
-
a.
|
|
981
|
+
a.Zb = xb[b];
|
|
982
982
|
return xb[b] = a;
|
|
983
983
|
}, Fb = a => {
|
|
984
984
|
var b = ["r", "w", "rw"][a & 3];
|
|
@@ -998,7 +998,7 @@ var sb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
998
998
|
return 0;
|
|
999
999
|
}, Gb = (a, b) => {
|
|
1000
1000
|
try {
|
|
1001
|
-
return
|
|
1001
|
+
return rb(a, b), 20;
|
|
1002
1002
|
} catch (c) {
|
|
1003
1003
|
}
|
|
1004
1004
|
return Db(a, "wx");
|
|
@@ -1008,11 +1008,11 @@ var sb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1008
1008
|
return a;
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
|
-
throw new
|
|
1011
|
+
throw new L(33);
|
|
1012
1012
|
}, Ib = a => {
|
|
1013
1013
|
a = vb[a];
|
|
1014
1014
|
if (!a) {
|
|
1015
|
-
throw new
|
|
1015
|
+
throw new L(8);
|
|
1016
1016
|
}
|
|
1017
1017
|
return a;
|
|
1018
1018
|
}, Kb = (a, b = -1) => {
|
|
@@ -1033,91 +1033,82 @@ var sb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1033
1033
|
},},}));
|
|
1034
1034
|
a = Object.assign(new Jb(), a);
|
|
1035
1035
|
-1 == b && (b = Hb());
|
|
1036
|
-
a.
|
|
1036
|
+
a.W = b;
|
|
1037
1037
|
return vb[b] = a;
|
|
1038
1038
|
}, nb = {open:a => {
|
|
1039
|
-
a.m = ub[a.node.
|
|
1039
|
+
a.m = ub[a.node.Ca].m;
|
|
1040
1040
|
a.m.open && a.m.open(a);
|
|
1041
1041
|
}, aa:() => {
|
|
1042
|
-
throw new
|
|
1042
|
+
throw new L(70);
|
|
1043
1043
|
},}, ib = (a, b) => {
|
|
1044
1044
|
ub[a] = {m:b};
|
|
1045
1045
|
}, Lb = (a, b) => {
|
|
1046
1046
|
var c = "/" === b, d = !b;
|
|
1047
|
-
if (c &&
|
|
1048
|
-
throw new
|
|
1047
|
+
if (c && tb) {
|
|
1048
|
+
throw new L(10);
|
|
1049
1049
|
}
|
|
1050
1050
|
if (!c && !d) {
|
|
1051
1051
|
var e = Ab(b, {ab:!1});
|
|
1052
1052
|
b = e.path;
|
|
1053
1053
|
e = e.node;
|
|
1054
|
-
if (e.
|
|
1055
|
-
throw new
|
|
1054
|
+
if (e.Aa) {
|
|
1055
|
+
throw new L(10);
|
|
1056
1056
|
}
|
|
1057
1057
|
if (16384 !== (e.mode & 61440)) {
|
|
1058
|
-
throw new
|
|
1058
|
+
throw new L(54);
|
|
1059
1059
|
}
|
|
1060
1060
|
}
|
|
1061
|
-
b = {type:a, Lc:{},
|
|
1062
|
-
a = a.
|
|
1063
|
-
a.
|
|
1061
|
+
b = {type:a, Lc:{}, gb:b, Yb:[]};
|
|
1062
|
+
a = a.T(b);
|
|
1063
|
+
a.T = b;
|
|
1064
1064
|
b.root = a;
|
|
1065
|
-
c ?
|
|
1066
|
-
},
|
|
1065
|
+
c ? tb = a : e && (e.Aa = b, e.T && e.T.Yb.push(b));
|
|
1066
|
+
}, N = (a, b, c) => {
|
|
1067
1067
|
var d = Ab(a, {parent:!0}).node;
|
|
1068
1068
|
a = Ya(a);
|
|
1069
1069
|
if (!a || "." === a || ".." === a) {
|
|
1070
|
-
throw new
|
|
1070
|
+
throw new L(28);
|
|
1071
1071
|
}
|
|
1072
1072
|
var e = Gb(d, a);
|
|
1073
1073
|
if (e) {
|
|
1074
|
-
throw new
|
|
1074
|
+
throw new L(e);
|
|
1075
1075
|
}
|
|
1076
|
-
if (!d.
|
|
1077
|
-
throw new
|
|
1076
|
+
if (!d.l.za) {
|
|
1077
|
+
throw new L(63);
|
|
1078
1078
|
}
|
|
1079
|
-
return d.
|
|
1079
|
+
return d.l.za(d, a, b, c);
|
|
1080
1080
|
}, Mb = (a, b, c) => {
|
|
1081
1081
|
"undefined" == typeof c && (c = b, b = 438);
|
|
1082
|
-
|
|
1082
|
+
N(a, b | 8192, c);
|
|
1083
1083
|
}, Nb = (a, b) => {
|
|
1084
1084
|
if (!ab(a)) {
|
|
1085
|
-
throw new
|
|
1085
|
+
throw new L(44);
|
|
1086
1086
|
}
|
|
1087
1087
|
var c = Ab(b, {parent:!0}).node;
|
|
1088
1088
|
if (!c) {
|
|
1089
|
-
throw new
|
|
1089
|
+
throw new L(44);
|
|
1090
1090
|
}
|
|
1091
1091
|
b = Ya(b);
|
|
1092
1092
|
var d = Gb(c, b);
|
|
1093
1093
|
if (d) {
|
|
1094
|
-
throw new
|
|
1094
|
+
throw new L(d);
|
|
1095
1095
|
}
|
|
1096
|
-
if (!c.
|
|
1097
|
-
throw new
|
|
1096
|
+
if (!c.l.Fa) {
|
|
1097
|
+
throw new L(63);
|
|
1098
1098
|
}
|
|
1099
|
-
c.
|
|
1099
|
+
c.l.Fa(c, b, a);
|
|
1100
1100
|
}, zb = a => {
|
|
1101
1101
|
a = Ab(a).node;
|
|
1102
1102
|
if (!a) {
|
|
1103
|
-
throw new
|
|
1104
|
-
}
|
|
1105
|
-
if (!a.j.oa) {
|
|
1106
|
-
throw new M(28);
|
|
1107
|
-
}
|
|
1108
|
-
return ab(Bb(a.parent), a.j.oa(a));
|
|
1109
|
-
}, Ob = (a, b) => {
|
|
1110
|
-
a = Ab(a, {Ma:!b}).node;
|
|
1111
|
-
if (!a) {
|
|
1112
|
-
throw new M(44);
|
|
1103
|
+
throw new L(44);
|
|
1113
1104
|
}
|
|
1114
|
-
if (!a.
|
|
1115
|
-
throw new
|
|
1105
|
+
if (!a.l.na) {
|
|
1106
|
+
throw new L(28);
|
|
1116
1107
|
}
|
|
1117
|
-
return a.
|
|
1118
|
-
}, Pb =
|
|
1108
|
+
return ab(Bb(a.parent), a.l.na(a));
|
|
1109
|
+
}, Pb = (a, b, c) => {
|
|
1119
1110
|
if ("" === a) {
|
|
1120
|
-
throw new
|
|
1111
|
+
throw new L(44);
|
|
1121
1112
|
}
|
|
1122
1113
|
if ("string" == typeof b) {
|
|
1123
1114
|
var d = {r:0, "r+":2, w:577, "w+":578, a:1089, "a+":1090,}[b];
|
|
@@ -1132,7 +1123,7 @@ var sb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1132
1123
|
} else {
|
|
1133
1124
|
a = Wa(a);
|
|
1134
1125
|
try {
|
|
1135
|
-
e = Ab(a, {
|
|
1126
|
+
e = Ab(a, {$a:!(b & 131072)}).node;
|
|
1136
1127
|
} catch (f) {
|
|
1137
1128
|
}
|
|
1138
1129
|
}
|
|
@@ -1140,74 +1131,74 @@ var sb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1140
1131
|
if (b & 64) {
|
|
1141
1132
|
if (e) {
|
|
1142
1133
|
if (b & 128) {
|
|
1143
|
-
throw new
|
|
1134
|
+
throw new L(20);
|
|
1144
1135
|
}
|
|
1145
1136
|
} else {
|
|
1146
|
-
e =
|
|
1137
|
+
e = N(a, c, 0), d = !0;
|
|
1147
1138
|
}
|
|
1148
1139
|
}
|
|
1149
1140
|
if (!e) {
|
|
1150
|
-
throw new
|
|
1141
|
+
throw new L(44);
|
|
1151
1142
|
}
|
|
1152
1143
|
8192 === (e.mode & 61440) && (b &= -513);
|
|
1153
1144
|
if (b & 65536 && 16384 !== (e.mode & 61440)) {
|
|
1154
|
-
throw new
|
|
1145
|
+
throw new L(54);
|
|
1155
1146
|
}
|
|
1156
1147
|
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Fb(b) || b & 512) ? 31 : Db(e, Fb(b)) : 44)) {
|
|
1157
|
-
throw new
|
|
1148
|
+
throw new L(c);
|
|
1158
1149
|
}
|
|
1159
1150
|
if (b & 512 && !d) {
|
|
1160
1151
|
c = e;
|
|
1161
|
-
c = "string" == typeof c ? Ab(c, {
|
|
1162
|
-
if (!c.
|
|
1163
|
-
throw new
|
|
1152
|
+
c = "string" == typeof c ? Ab(c, {$a:!0}).node : c;
|
|
1153
|
+
if (!c.l.P) {
|
|
1154
|
+
throw new L(63);
|
|
1164
1155
|
}
|
|
1165
1156
|
if (16384 === (c.mode & 61440)) {
|
|
1166
|
-
throw new
|
|
1157
|
+
throw new L(31);
|
|
1167
1158
|
}
|
|
1168
1159
|
if (32768 !== (c.mode & 61440)) {
|
|
1169
|
-
throw new
|
|
1160
|
+
throw new L(28);
|
|
1170
1161
|
}
|
|
1171
1162
|
if (d = Db(c, "w")) {
|
|
1172
|
-
throw new
|
|
1163
|
+
throw new L(d);
|
|
1173
1164
|
}
|
|
1174
|
-
c.
|
|
1165
|
+
c.l.P(c, {size:0, timestamp:Date.now()});
|
|
1175
1166
|
}
|
|
1176
1167
|
b &= -131713;
|
|
1177
|
-
e = Kb({node:e, path:Bb(e), flags:b, seekable:!0, position:0, m:e.m,
|
|
1168
|
+
e = Kb({node:e, path:Bb(e), flags:b, seekable:!0, position:0, m:e.m, mc:[], error:!1});
|
|
1178
1169
|
e.m.open && e.m.open(e);
|
|
1179
|
-
!n.logReadFiles || b & 1 || (
|
|
1170
|
+
!n.logReadFiles || b & 1 || (Ob || (Ob = {}), a in Ob || (Ob[a] = 1));
|
|
1180
1171
|
return e;
|
|
1181
|
-
},
|
|
1182
|
-
if (null === a.
|
|
1183
|
-
throw new
|
|
1172
|
+
}, Qb = (a, b, c) => {
|
|
1173
|
+
if (null === a.W) {
|
|
1174
|
+
throw new L(8);
|
|
1184
1175
|
}
|
|
1185
1176
|
if (!a.seekable || !a.m.aa) {
|
|
1186
|
-
throw new
|
|
1177
|
+
throw new L(70);
|
|
1187
1178
|
}
|
|
1188
1179
|
if (0 != c && 1 != c && 2 != c) {
|
|
1189
|
-
throw new
|
|
1180
|
+
throw new L(28);
|
|
1190
1181
|
}
|
|
1191
1182
|
a.position = a.m.aa(a, b, c);
|
|
1192
|
-
a.
|
|
1193
|
-
},
|
|
1194
|
-
|
|
1183
|
+
a.mc = [];
|
|
1184
|
+
}, Rb = () => {
|
|
1185
|
+
L || (L = function(a, b) {
|
|
1195
1186
|
this.name = "ErrnoError";
|
|
1196
1187
|
this.node = b;
|
|
1197
|
-
this.
|
|
1198
|
-
this
|
|
1188
|
+
this.bc = function(c) {
|
|
1189
|
+
this.$ = c;
|
|
1199
1190
|
};
|
|
1200
|
-
this.
|
|
1191
|
+
this.bc(a);
|
|
1201
1192
|
this.message = "FS error";
|
|
1202
|
-
},
|
|
1203
|
-
pb[a] = new
|
|
1193
|
+
}, L.prototype = Error(), L.prototype.constructor = L, [44].forEach(a => {
|
|
1194
|
+
pb[a] = new L(a);
|
|
1204
1195
|
pb[a].stack = "<generic error, no stack>";
|
|
1205
1196
|
}));
|
|
1206
|
-
},
|
|
1197
|
+
}, Sb, Ub = (a, b, c) => {
|
|
1207
1198
|
a = Wa("/dev/" + a);
|
|
1208
|
-
var d =
|
|
1209
|
-
|
|
1210
|
-
var e =
|
|
1199
|
+
var d = sb(!!b, !!c);
|
|
1200
|
+
Tb || (Tb = 64);
|
|
1201
|
+
var e = Tb++ << 8 | 0;
|
|
1211
1202
|
ib(e, {open:f => {
|
|
1212
1203
|
f.seekable = !1;
|
|
1213
1204
|
}, close:() => {
|
|
@@ -1217,10 +1208,10 @@ var sb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1217
1208
|
try {
|
|
1218
1209
|
var v = b();
|
|
1219
1210
|
} catch (q) {
|
|
1220
|
-
throw new
|
|
1211
|
+
throw new L(29);
|
|
1221
1212
|
}
|
|
1222
1213
|
if (void 0 === v && 0 === l) {
|
|
1223
|
-
throw new
|
|
1214
|
+
throw new L(6);
|
|
1224
1215
|
}
|
|
1225
1216
|
if (null === v || void 0 === v) {
|
|
1226
1217
|
break;
|
|
@@ -1235,73 +1226,19 @@ var sb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1235
1226
|
try {
|
|
1236
1227
|
c(g[m + l]);
|
|
1237
1228
|
} catch (u) {
|
|
1238
|
-
throw new
|
|
1229
|
+
throw new L(29);
|
|
1239
1230
|
}
|
|
1240
1231
|
}
|
|
1241
1232
|
p && (f.node.timestamp = Date.now());
|
|
1242
1233
|
return l;
|
|
1243
1234
|
}});
|
|
1244
1235
|
Mb(a, d, e);
|
|
1245
|
-
},
|
|
1246
|
-
function Xb(
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
}
|
|
1250
|
-
a = -100 === a ? "/" : Ib(a).path;
|
|
1251
|
-
if (0 == b.length) {
|
|
1252
|
-
if (!c) {
|
|
1253
|
-
throw new M(44);
|
|
1254
|
-
}
|
|
1255
|
-
return a;
|
|
1256
|
-
}
|
|
1257
|
-
return Wa(a + "/" + b);
|
|
1258
|
-
}
|
|
1259
|
-
function Yb(a, b, c) {
|
|
1260
|
-
try {
|
|
1261
|
-
var d = a(b);
|
|
1262
|
-
} catch (f) {
|
|
1263
|
-
if (f && f.node && Wa(b) !== Wa(Bb(f.node))) {
|
|
1264
|
-
return -54;
|
|
1265
|
-
}
|
|
1266
|
-
throw f;
|
|
1267
|
-
}
|
|
1268
|
-
F[c >> 2] = d.Kb;
|
|
1269
|
-
F[c + 4 >> 2] = d.mode;
|
|
1270
|
-
I[c + 8 >> 2] = d.hc;
|
|
1271
|
-
F[c + 12 >> 2] = d.uid;
|
|
1272
|
-
F[c + 16 >> 2] = d.Vb;
|
|
1273
|
-
F[c + 20 >> 2] = d.na;
|
|
1274
|
-
K = [d.size >>> 0, (J = d.size, 1.0 <= +Math.abs(J) ? 0.0 < J ? +Math.floor(J / 4294967296.0) >>> 0 : ~~+Math.ceil((J - +(~~J >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
1275
|
-
F[c + 24 >> 2] = K[0];
|
|
1276
|
-
F[c + 28 >> 2] = K[1];
|
|
1277
|
-
F[c + 32 >> 2] = 4096;
|
|
1278
|
-
F[c + 36 >> 2] = d.Fb;
|
|
1279
|
-
a = d.Db.getTime();
|
|
1280
|
-
b = d.ec.getTime();
|
|
1281
|
-
var e = d.Hb.getTime();
|
|
1282
|
-
K = [Math.floor(a / 1000) >>> 0, (J = Math.floor(a / 1000), 1.0 <= +Math.abs(J) ? 0.0 < J ? +Math.floor(J / 4294967296.0) >>> 0 : ~~+Math.ceil((J - +(~~J >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
1283
|
-
F[c + 40 >> 2] = K[0];
|
|
1284
|
-
F[c + 44 >> 2] = K[1];
|
|
1285
|
-
I[c + 48 >> 2] = a % 1000 * 1000;
|
|
1286
|
-
K = [Math.floor(b / 1000) >>> 0, (J = Math.floor(b / 1000), 1.0 <= +Math.abs(J) ? 0.0 < J ? +Math.floor(J / 4294967296.0) >>> 0 : ~~+Math.ceil((J - +(~~J >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
1287
|
-
F[c + 56 >> 2] = K[0];
|
|
1288
|
-
F[c + 60 >> 2] = K[1];
|
|
1289
|
-
I[c + 64 >> 2] = b % 1000 * 1000;
|
|
1290
|
-
K = [Math.floor(e / 1000) >>> 0, (J = Math.floor(e / 1000), 1.0 <= +Math.abs(J) ? 0.0 < J ? +Math.floor(J / 4294967296.0) >>> 0 : ~~+Math.ceil((J - +(~~J >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
1291
|
-
F[c + 72 >> 2] = K[0];
|
|
1292
|
-
F[c + 76 >> 2] = K[1];
|
|
1293
|
-
I[c + 80 >> 2] = e % 1000 * 1000;
|
|
1294
|
-
K = [d.eb >>> 0, (J = d.eb, 1.0 <= +Math.abs(J) ? 0.0 < J ? +Math.floor(J / 4294967296.0) >>> 0 : ~~+Math.ceil((J - +(~~J >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
1295
|
-
F[c + 88 >> 2] = K[0];
|
|
1296
|
-
F[c + 92 >> 2] = K[1];
|
|
1297
|
-
return 0;
|
|
1298
|
-
}
|
|
1299
|
-
var Zb = void 0;
|
|
1300
|
-
function $b() {
|
|
1301
|
-
Zb += 4;
|
|
1302
|
-
return F[Zb - 4 >> 2];
|
|
1236
|
+
}, Tb, Vb = {}, Jb, Ob, Wb = void 0;
|
|
1237
|
+
function Xb() {
|
|
1238
|
+
Wb += 4;
|
|
1239
|
+
return I[Wb - 4 >> 2];
|
|
1303
1240
|
}
|
|
1304
|
-
function
|
|
1241
|
+
function Yb(a) {
|
|
1305
1242
|
if (void 0 === a) {
|
|
1306
1243
|
return "_unknown";
|
|
1307
1244
|
}
|
|
@@ -1309,24 +1246,24 @@ function ac(a) {
|
|
|
1309
1246
|
var b = a.charCodeAt(0);
|
|
1310
1247
|
return 48 <= b && 57 >= b ? `_${a}` : a;
|
|
1311
1248
|
}
|
|
1312
|
-
function
|
|
1313
|
-
a =
|
|
1249
|
+
function Zb(a, b) {
|
|
1250
|
+
a = Yb(a);
|
|
1314
1251
|
return {[a]:function() {
|
|
1315
1252
|
return b.apply(this, arguments);
|
|
1316
1253
|
}}[a];
|
|
1317
1254
|
}
|
|
1318
|
-
function
|
|
1319
|
-
this.
|
|
1255
|
+
function $b() {
|
|
1256
|
+
this.M = [void 0];
|
|
1320
1257
|
this.bb = [];
|
|
1321
1258
|
}
|
|
1322
|
-
var
|
|
1323
|
-
function
|
|
1324
|
-
throw new
|
|
1259
|
+
var O = new $b(), ac = void 0;
|
|
1260
|
+
function P(a) {
|
|
1261
|
+
throw new ac(a);
|
|
1325
1262
|
}
|
|
1326
|
-
var
|
|
1327
|
-
a ||
|
|
1328
|
-
return
|
|
1329
|
-
},
|
|
1263
|
+
var Q = a => {
|
|
1264
|
+
a || P("Cannot use deleted val. handle = " + a);
|
|
1265
|
+
return O.get(a).value;
|
|
1266
|
+
}, bc = a => {
|
|
1330
1267
|
switch(a) {
|
|
1331
1268
|
case void 0:
|
|
1332
1269
|
return 1;
|
|
@@ -1337,11 +1274,11 @@ var S = a => {
|
|
|
1337
1274
|
case !1:
|
|
1338
1275
|
return 4;
|
|
1339
1276
|
default:
|
|
1340
|
-
return
|
|
1277
|
+
return O.ta({ob:1, value:a});
|
|
1341
1278
|
}
|
|
1342
1279
|
};
|
|
1343
|
-
function
|
|
1344
|
-
var b = Error, c =
|
|
1280
|
+
function cc(a) {
|
|
1281
|
+
var b = Error, c = Zb(a, function(d) {
|
|
1345
1282
|
this.name = a;
|
|
1346
1283
|
this.message = d;
|
|
1347
1284
|
d = Error(d).stack;
|
|
@@ -1354,122 +1291,122 @@ function fc(a) {
|
|
|
1354
1291
|
};
|
|
1355
1292
|
return c;
|
|
1356
1293
|
}
|
|
1357
|
-
var
|
|
1358
|
-
function
|
|
1359
|
-
for (var b = "";
|
|
1360
|
-
b +=
|
|
1294
|
+
var dc = void 0, ec = void 0;
|
|
1295
|
+
function R(a) {
|
|
1296
|
+
for (var b = ""; G[a];) {
|
|
1297
|
+
b += ec[G[a++]];
|
|
1361
1298
|
}
|
|
1362
1299
|
return b;
|
|
1363
1300
|
}
|
|
1364
|
-
var
|
|
1365
|
-
function
|
|
1366
|
-
for (;
|
|
1367
|
-
var a =
|
|
1301
|
+
var fc = [];
|
|
1302
|
+
function gc() {
|
|
1303
|
+
for (; fc.length;) {
|
|
1304
|
+
var a = fc.pop();
|
|
1368
1305
|
a.g.ga = !1;
|
|
1369
1306
|
a["delete"]();
|
|
1370
1307
|
}
|
|
1371
1308
|
}
|
|
1372
|
-
var
|
|
1373
|
-
function
|
|
1374
|
-
for (void 0 === b &&
|
|
1375
|
-
b = a.
|
|
1309
|
+
var hc = void 0, ic = {};
|
|
1310
|
+
function jc(a, b) {
|
|
1311
|
+
for (void 0 === b && P("ptr should not be undefined"); a.A;) {
|
|
1312
|
+
b = a.pa(b), a = a.A;
|
|
1376
1313
|
}
|
|
1377
1314
|
return b;
|
|
1378
1315
|
}
|
|
1379
|
-
var
|
|
1380
|
-
function
|
|
1381
|
-
a =
|
|
1382
|
-
var b =
|
|
1383
|
-
|
|
1316
|
+
var kc = {};
|
|
1317
|
+
function lc(a) {
|
|
1318
|
+
a = mc(a);
|
|
1319
|
+
var b = R(a);
|
|
1320
|
+
nc(a);
|
|
1384
1321
|
return b;
|
|
1385
1322
|
}
|
|
1386
|
-
function
|
|
1387
|
-
var c =
|
|
1388
|
-
void 0 === c &&
|
|
1323
|
+
function oc(a, b) {
|
|
1324
|
+
var c = kc[a];
|
|
1325
|
+
void 0 === c && P(b + " has unknown type " + lc(a));
|
|
1389
1326
|
return c;
|
|
1390
1327
|
}
|
|
1391
|
-
function
|
|
1328
|
+
function pc() {
|
|
1392
1329
|
}
|
|
1393
|
-
var
|
|
1394
|
-
function
|
|
1330
|
+
var qc = !1;
|
|
1331
|
+
function rc(a) {
|
|
1395
1332
|
--a.count.value;
|
|
1396
|
-
0 === a.count.value && (a.G ? a.
|
|
1333
|
+
0 === a.count.value && (a.G ? a.L.V(a.G) : a.u.i.V(a.o));
|
|
1397
1334
|
}
|
|
1398
|
-
function
|
|
1335
|
+
function sc(a, b, c) {
|
|
1399
1336
|
if (b === c) {
|
|
1400
1337
|
return a;
|
|
1401
1338
|
}
|
|
1402
1339
|
if (void 0 === c.A) {
|
|
1403
1340
|
return null;
|
|
1404
1341
|
}
|
|
1405
|
-
a =
|
|
1406
|
-
return null === a ? null : c.
|
|
1342
|
+
a = sc(a, b, c.A);
|
|
1343
|
+
return null === a ? null : c.Gb(a);
|
|
1407
1344
|
}
|
|
1408
|
-
var
|
|
1409
|
-
function
|
|
1410
|
-
b =
|
|
1411
|
-
return
|
|
1345
|
+
var tc = {};
|
|
1346
|
+
function uc(a, b) {
|
|
1347
|
+
b = jc(a, b);
|
|
1348
|
+
return ic[b];
|
|
1412
1349
|
}
|
|
1413
|
-
var
|
|
1414
|
-
function
|
|
1415
|
-
throw new
|
|
1350
|
+
var vc = void 0;
|
|
1351
|
+
function wc(a) {
|
|
1352
|
+
throw new vc(a);
|
|
1416
1353
|
}
|
|
1417
|
-
function
|
|
1418
|
-
b.u && b.o ||
|
|
1419
|
-
!!b.
|
|
1354
|
+
function xc(a, b) {
|
|
1355
|
+
b.u && b.o || wc("makeClassHandle requires ptr and ptrType");
|
|
1356
|
+
!!b.L !== !!b.G && wc("Both smartPtrType and smartPtr must be specified");
|
|
1420
1357
|
b.count = {value:1};
|
|
1421
|
-
return
|
|
1358
|
+
return yc(Object.create(a, {g:{value:b,},}));
|
|
1422
1359
|
}
|
|
1423
|
-
function
|
|
1360
|
+
function yc(a) {
|
|
1424
1361
|
if ("undefined" === typeof FinalizationRegistry) {
|
|
1425
|
-
return
|
|
1362
|
+
return yc = b => b, a;
|
|
1426
1363
|
}
|
|
1427
|
-
|
|
1428
|
-
|
|
1364
|
+
qc = new FinalizationRegistry(b => {
|
|
1365
|
+
rc(b.g);
|
|
1429
1366
|
});
|
|
1430
|
-
|
|
1367
|
+
yc = b => {
|
|
1431
1368
|
var c = b.g;
|
|
1432
|
-
c.G &&
|
|
1369
|
+
c.G && qc.register(b, {g:c}, b);
|
|
1433
1370
|
return b;
|
|
1434
1371
|
};
|
|
1435
|
-
|
|
1436
|
-
|
|
1372
|
+
pc = b => {
|
|
1373
|
+
qc.unregister(b);
|
|
1437
1374
|
};
|
|
1438
|
-
return
|
|
1375
|
+
return yc(a);
|
|
1439
1376
|
}
|
|
1440
|
-
var
|
|
1441
|
-
function
|
|
1377
|
+
var zc = {};
|
|
1378
|
+
function Ac(a) {
|
|
1442
1379
|
for (; a.length;) {
|
|
1443
1380
|
var b = a.pop();
|
|
1444
1381
|
a.pop()(b);
|
|
1445
1382
|
}
|
|
1446
1383
|
}
|
|
1447
|
-
function
|
|
1448
|
-
return this.fromWireType(
|
|
1384
|
+
function Bc(a) {
|
|
1385
|
+
return this.fromWireType(I[a >> 2]);
|
|
1449
1386
|
}
|
|
1450
|
-
var
|
|
1451
|
-
function
|
|
1387
|
+
var Cc = {}, Dc = {};
|
|
1388
|
+
function S(a, b, c) {
|
|
1452
1389
|
function d(m) {
|
|
1453
1390
|
m = c(m);
|
|
1454
|
-
m.length !== a.length &&
|
|
1391
|
+
m.length !== a.length && wc("Mismatched type converter count");
|
|
1455
1392
|
for (var p = 0; p < a.length; ++p) {
|
|
1456
|
-
|
|
1393
|
+
T(a[p], m[p]);
|
|
1457
1394
|
}
|
|
1458
1395
|
}
|
|
1459
1396
|
a.forEach(function(m) {
|
|
1460
|
-
|
|
1397
|
+
Dc[m] = b;
|
|
1461
1398
|
});
|
|
1462
1399
|
var e = Array(b.length), f = [], g = 0;
|
|
1463
1400
|
b.forEach((m, p) => {
|
|
1464
|
-
|
|
1465
|
-
e[p] =
|
|
1401
|
+
kc.hasOwnProperty(m) ? e[p] = kc[m] : (f.push(m), Cc.hasOwnProperty(m) || (Cc[m] = []), Cc[m].push(() => {
|
|
1402
|
+
e[p] = kc[m];
|
|
1466
1403
|
++g;
|
|
1467
1404
|
g === f.length && d(e);
|
|
1468
1405
|
}));
|
|
1469
1406
|
});
|
|
1470
1407
|
0 === f.length && d(e);
|
|
1471
1408
|
}
|
|
1472
|
-
function
|
|
1409
|
+
function Ec(a) {
|
|
1473
1410
|
switch(a) {
|
|
1474
1411
|
case 1:
|
|
1475
1412
|
return 0;
|
|
@@ -1483,135 +1420,135 @@ function Hc(a) {
|
|
|
1483
1420
|
throw new TypeError(`Unknown type size: ${a}`);
|
|
1484
1421
|
}
|
|
1485
1422
|
}
|
|
1486
|
-
function
|
|
1423
|
+
function Fc(a, b, c = {}) {
|
|
1487
1424
|
var d = b.name;
|
|
1488
|
-
a ||
|
|
1489
|
-
if (
|
|
1490
|
-
if (c.
|
|
1425
|
+
a || P(`type "${d}" must have a positive integer typeid pointer`);
|
|
1426
|
+
if (kc.hasOwnProperty(a)) {
|
|
1427
|
+
if (c.Rb) {
|
|
1491
1428
|
return;
|
|
1492
1429
|
}
|
|
1493
|
-
|
|
1430
|
+
P(`Cannot register type '${d}' twice`);
|
|
1494
1431
|
}
|
|
1495
|
-
|
|
1496
|
-
delete
|
|
1497
|
-
|
|
1432
|
+
kc[a] = b;
|
|
1433
|
+
delete Dc[a];
|
|
1434
|
+
Cc.hasOwnProperty(a) && (b = Cc[a], delete Cc[a], b.forEach(e => e()));
|
|
1498
1435
|
}
|
|
1499
|
-
function
|
|
1436
|
+
function T(a, b, c = {}) {
|
|
1500
1437
|
if (!("argPackAdvance" in b)) {
|
|
1501
1438
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
1502
1439
|
}
|
|
1503
|
-
|
|
1440
|
+
Fc(a, b, c);
|
|
1504
1441
|
}
|
|
1505
|
-
function
|
|
1506
|
-
|
|
1442
|
+
function Gc(a) {
|
|
1443
|
+
P(a.g.u.i.name + " instance already deleted");
|
|
1507
1444
|
}
|
|
1508
|
-
function
|
|
1445
|
+
function Hc() {
|
|
1509
1446
|
}
|
|
1510
|
-
function
|
|
1447
|
+
function Ic(a, b, c) {
|
|
1511
1448
|
if (void 0 === a[b].B) {
|
|
1512
1449
|
var d = a[b];
|
|
1513
1450
|
a[b] = function() {
|
|
1514
|
-
a[b].B.hasOwnProperty(arguments.length) ||
|
|
1451
|
+
a[b].B.hasOwnProperty(arguments.length) || P(`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${a[b].B})!`);
|
|
1515
1452
|
return a[b].B[arguments.length].apply(this, arguments);
|
|
1516
1453
|
};
|
|
1517
1454
|
a[b].B = [];
|
|
1518
1455
|
a[b].B[d.fa] = d;
|
|
1519
1456
|
}
|
|
1520
1457
|
}
|
|
1521
|
-
function
|
|
1522
|
-
n.hasOwnProperty(a) ? ((void 0 === c || void 0 !== n[a].B && void 0 !== n[a].B[c]) &&
|
|
1458
|
+
function Jc(a, b, c) {
|
|
1459
|
+
n.hasOwnProperty(a) ? ((void 0 === c || void 0 !== n[a].B && void 0 !== n[a].B[c]) && P(`Cannot register public name '${a}' twice`), Ic(n, a, a), n.hasOwnProperty(c) && P(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), n[a].B[c] = b) : (n[a] = b, void 0 !== c && (n[a].Kc = c));
|
|
1523
1460
|
}
|
|
1524
|
-
function
|
|
1461
|
+
function Kc(a, b, c, d, e, f, g, m) {
|
|
1525
1462
|
this.name = a;
|
|
1526
1463
|
this.constructor = b;
|
|
1527
|
-
this.
|
|
1528
|
-
this.
|
|
1464
|
+
this.N = c;
|
|
1465
|
+
this.V = d;
|
|
1529
1466
|
this.A = e;
|
|
1530
|
-
this.
|
|
1531
|
-
this.
|
|
1532
|
-
this.
|
|
1533
|
-
this.
|
|
1467
|
+
this.Lb = f;
|
|
1468
|
+
this.pa = g;
|
|
1469
|
+
this.Gb = m;
|
|
1470
|
+
this.kb = [];
|
|
1534
1471
|
}
|
|
1535
|
-
function
|
|
1472
|
+
function Lc(a, b, c) {
|
|
1536
1473
|
for (; b !== c;) {
|
|
1537
|
-
b.
|
|
1474
|
+
b.pa || P(`Expected null or instance of ${c.name}, got an instance of ${b.name}`), a = b.pa(a), b = b.A;
|
|
1538
1475
|
}
|
|
1539
1476
|
return a;
|
|
1540
1477
|
}
|
|
1541
|
-
function
|
|
1478
|
+
function Mc(a, b) {
|
|
1542
1479
|
if (null === b) {
|
|
1543
|
-
return this.
|
|
1480
|
+
return this.Na && P(`null is not a valid ${this.name}`), 0;
|
|
1544
1481
|
}
|
|
1545
|
-
b.g ||
|
|
1546
|
-
b.g.o ||
|
|
1547
|
-
return
|
|
1482
|
+
b.g || P(`Cannot pass "${Nc(b)}" as a ${this.name}`);
|
|
1483
|
+
b.g.o || P(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1484
|
+
return Lc(b.g.o, b.g.u.i, this.i);
|
|
1548
1485
|
}
|
|
1549
|
-
function
|
|
1486
|
+
function Oc(a, b) {
|
|
1550
1487
|
if (null === b) {
|
|
1551
|
-
this.
|
|
1552
|
-
if (this.
|
|
1553
|
-
var c = this.
|
|
1554
|
-
null !== a && a.push(this.
|
|
1488
|
+
this.Na && P(`null is not a valid ${this.name}`);
|
|
1489
|
+
if (this.ya) {
|
|
1490
|
+
var c = this.Pa();
|
|
1491
|
+
null !== a && a.push(this.V, c);
|
|
1555
1492
|
return c;
|
|
1556
1493
|
}
|
|
1557
1494
|
return 0;
|
|
1558
1495
|
}
|
|
1559
|
-
b.g ||
|
|
1560
|
-
b.g.o ||
|
|
1561
|
-
!this.
|
|
1562
|
-
c =
|
|
1563
|
-
if (this.
|
|
1564
|
-
switch(void 0 === b.g.G &&
|
|
1496
|
+
b.g || P(`Cannot pass "${Nc(b)}" as a ${this.name}`);
|
|
1497
|
+
b.g.o || P(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1498
|
+
!this.xa && b.g.u.xa && P(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1499
|
+
c = Lc(b.g.o, b.g.u.i, this.i);
|
|
1500
|
+
if (this.ya) {
|
|
1501
|
+
switch(void 0 === b.g.G && P("Passing raw pointer to smart pointer is illegal"), this.fc) {
|
|
1565
1502
|
case 0:
|
|
1566
|
-
b.g.
|
|
1503
|
+
b.g.L === this ? c = b.g.G : P(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1567
1504
|
break;
|
|
1568
1505
|
case 1:
|
|
1569
1506
|
c = b.g.G;
|
|
1570
1507
|
break;
|
|
1571
1508
|
case 2:
|
|
1572
|
-
if (b.g.
|
|
1509
|
+
if (b.g.L === this) {
|
|
1573
1510
|
c = b.g.G;
|
|
1574
1511
|
} else {
|
|
1575
1512
|
var d = b.clone();
|
|
1576
|
-
c = this.
|
|
1513
|
+
c = this.ac(c, bc(function() {
|
|
1577
1514
|
d["delete"]();
|
|
1578
1515
|
}));
|
|
1579
|
-
null !== a && a.push(this.
|
|
1516
|
+
null !== a && a.push(this.V, c);
|
|
1580
1517
|
}
|
|
1581
1518
|
break;
|
|
1582
1519
|
default:
|
|
1583
|
-
|
|
1520
|
+
P("Unsupporting sharing policy");
|
|
1584
1521
|
}
|
|
1585
1522
|
}
|
|
1586
1523
|
return c;
|
|
1587
1524
|
}
|
|
1588
|
-
function
|
|
1525
|
+
function Pc(a, b) {
|
|
1589
1526
|
if (null === b) {
|
|
1590
|
-
return this.
|
|
1527
|
+
return this.Na && P(`null is not a valid ${this.name}`), 0;
|
|
1591
1528
|
}
|
|
1592
|
-
b.g ||
|
|
1593
|
-
b.g.o ||
|
|
1594
|
-
b.g.u.
|
|
1595
|
-
return
|
|
1529
|
+
b.g || P(`Cannot pass "${Nc(b)}" as a ${this.name}`);
|
|
1530
|
+
b.g.o || P(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1531
|
+
b.g.u.xa && P(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1532
|
+
return Lc(b.g.o, b.g.u.i, this.i);
|
|
1596
1533
|
}
|
|
1597
|
-
function
|
|
1534
|
+
function Qc(a, b, c, d) {
|
|
1598
1535
|
this.name = a;
|
|
1599
1536
|
this.i = b;
|
|
1600
|
-
this.
|
|
1601
|
-
this.
|
|
1602
|
-
this.
|
|
1603
|
-
this.
|
|
1604
|
-
void 0 !== b.A ? this.toWireType =
|
|
1605
|
-
}
|
|
1606
|
-
function
|
|
1607
|
-
n.hasOwnProperty(a) ||
|
|
1537
|
+
this.Na = c;
|
|
1538
|
+
this.xa = d;
|
|
1539
|
+
this.ya = !1;
|
|
1540
|
+
this.V = this.ac = this.Pa = this.mb = this.fc = this.$b = void 0;
|
|
1541
|
+
void 0 !== b.A ? this.toWireType = Oc : (this.toWireType = d ? Mc : Pc, this.K = null);
|
|
1542
|
+
}
|
|
1543
|
+
function Rc(a, b, c) {
|
|
1544
|
+
n.hasOwnProperty(a) || wc("Replacing nonexistant public symbol");
|
|
1608
1545
|
void 0 !== n[a].B && void 0 !== c ? n[a].B[c] = b : (n[a] = b, n[a].fa = c);
|
|
1609
1546
|
}
|
|
1610
|
-
var
|
|
1611
|
-
var b =
|
|
1612
|
-
b || (a >=
|
|
1547
|
+
var Sc = [], Tc = a => {
|
|
1548
|
+
var b = Sc[a];
|
|
1549
|
+
b || (a >= Sc.length && (Sc.length = a + 1), Sc[a] = b = za.get(a));
|
|
1613
1550
|
return b;
|
|
1614
|
-
},
|
|
1551
|
+
}, Uc = (a, b) => {
|
|
1615
1552
|
var c = [];
|
|
1616
1553
|
return function() {
|
|
1617
1554
|
c.length = 0;
|
|
@@ -1620,29 +1557,29 @@ var Vc = [], Wc = a => {
|
|
|
1620
1557
|
var d = n["dynCall_" + a];
|
|
1621
1558
|
d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
|
|
1622
1559
|
} else {
|
|
1623
|
-
d =
|
|
1560
|
+
d = Tc(b).apply(null, c);
|
|
1624
1561
|
}
|
|
1625
1562
|
return d;
|
|
1626
1563
|
};
|
|
1627
1564
|
};
|
|
1628
|
-
function
|
|
1629
|
-
a =
|
|
1630
|
-
var c = a.includes("j") ?
|
|
1631
|
-
"function" != typeof c &&
|
|
1565
|
+
function U(a, b) {
|
|
1566
|
+
a = R(a);
|
|
1567
|
+
var c = a.includes("j") ? Uc(a, b) : Tc(b);
|
|
1568
|
+
"function" != typeof c && P(`unknown function pointer with signature ${a}: ${b}`);
|
|
1632
1569
|
return c;
|
|
1633
1570
|
}
|
|
1634
|
-
var
|
|
1635
|
-
function
|
|
1571
|
+
var Vc = void 0;
|
|
1572
|
+
function Wc(a, b) {
|
|
1636
1573
|
function c(f) {
|
|
1637
|
-
e[f] ||
|
|
1574
|
+
e[f] || kc[f] || (Dc[f] ? Dc[f].forEach(c) : (d.push(f), e[f] = !0));
|
|
1638
1575
|
}
|
|
1639
1576
|
var d = [], e = {};
|
|
1640
1577
|
b.forEach(c);
|
|
1641
|
-
throw new
|
|
1578
|
+
throw new Vc(`${a}: ` + d.map(lc).join([", "]));
|
|
1642
1579
|
}
|
|
1643
|
-
function
|
|
1580
|
+
function Xc(a, b, c, d, e) {
|
|
1644
1581
|
var f = b.length;
|
|
1645
|
-
2 > f &&
|
|
1582
|
+
2 > f && P("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1646
1583
|
var g = null !== b[1] && null !== c, m = !1;
|
|
1647
1584
|
for (c = 1; c < b.length; ++c) {
|
|
1648
1585
|
if (null !== b[c] && void 0 === b[c].K) {
|
|
@@ -1652,7 +1589,7 @@ function $c(a, b, c, d, e) {
|
|
|
1652
1589
|
}
|
|
1653
1590
|
var p = "void" !== b[0].name, l = f - 2, u = Array(l), v = [], q = [];
|
|
1654
1591
|
return function() {
|
|
1655
|
-
arguments.length !== l &&
|
|
1592
|
+
arguments.length !== l && P(`function ${a} called with ${arguments.length} arguments, expected ${l} args!`);
|
|
1656
1593
|
q.length = 0;
|
|
1657
1594
|
v.length = g ? 2 : 1;
|
|
1658
1595
|
v[0] = e;
|
|
@@ -1665,114 +1602,114 @@ function $c(a, b, c, d, e) {
|
|
|
1665
1602
|
}
|
|
1666
1603
|
r = d.apply(null, v);
|
|
1667
1604
|
if (m) {
|
|
1668
|
-
|
|
1605
|
+
Ac(q);
|
|
1669
1606
|
} else {
|
|
1670
1607
|
for (var w = g ? 1 : 2; w < b.length; w++) {
|
|
1671
|
-
var
|
|
1672
|
-
null !== b[w].K && b[w].K(
|
|
1608
|
+
var y = 1 === w ? k : u[w - 2];
|
|
1609
|
+
null !== b[w].K && b[w].K(y);
|
|
1673
1610
|
}
|
|
1674
1611
|
}
|
|
1675
1612
|
k = p ? b[0].fromWireType(r) : void 0;
|
|
1676
1613
|
return k;
|
|
1677
1614
|
};
|
|
1678
1615
|
}
|
|
1679
|
-
function
|
|
1616
|
+
function Yc(a, b) {
|
|
1680
1617
|
for (var c = [], d = 0; d < a; d++) {
|
|
1681
|
-
c.push(
|
|
1618
|
+
c.push(J[b + 4 * d >> 2]);
|
|
1682
1619
|
}
|
|
1683
1620
|
return c;
|
|
1684
1621
|
}
|
|
1685
|
-
function
|
|
1686
|
-
a instanceof Object ||
|
|
1687
|
-
a instanceof b.i.constructor ||
|
|
1688
|
-
a.g.o ||
|
|
1689
|
-
return
|
|
1622
|
+
function Zc(a, b, c) {
|
|
1623
|
+
a instanceof Object || P(`${c} with invalid "this": ${a}`);
|
|
1624
|
+
a instanceof b.i.constructor || P(`${c} incompatible with "this" of type ${a.constructor.name}`);
|
|
1625
|
+
a.g.o || P(`cannot call emscripten binding method ${c} on deleted object`);
|
|
1626
|
+
return Lc(a.g.o, a.g.u.i, b.i);
|
|
1690
1627
|
}
|
|
1691
|
-
function
|
|
1692
|
-
a >=
|
|
1628
|
+
function $c(a) {
|
|
1629
|
+
a >= O.h && 0 === --O.get(a).ob && O.Qb(a);
|
|
1693
1630
|
}
|
|
1694
|
-
function
|
|
1631
|
+
function ad(a, b, c) {
|
|
1695
1632
|
switch(b) {
|
|
1696
1633
|
case 0:
|
|
1697
1634
|
return function(d) {
|
|
1698
|
-
return this.fromWireType((c ?
|
|
1635
|
+
return this.fromWireType((c ? C : G)[d]);
|
|
1699
1636
|
};
|
|
1700
1637
|
case 1:
|
|
1701
1638
|
return function(d) {
|
|
1702
|
-
return this.fromWireType((c ?
|
|
1639
|
+
return this.fromWireType((c ? H : va)[d >> 1]);
|
|
1703
1640
|
};
|
|
1704
1641
|
case 2:
|
|
1705
1642
|
return function(d) {
|
|
1706
|
-
return this.fromWireType((c ?
|
|
1643
|
+
return this.fromWireType((c ? I : J)[d >> 2]);
|
|
1707
1644
|
};
|
|
1708
1645
|
default:
|
|
1709
1646
|
throw new TypeError("Unknown integer type: " + a);
|
|
1710
1647
|
}
|
|
1711
1648
|
}
|
|
1712
|
-
function
|
|
1649
|
+
function Nc(a) {
|
|
1713
1650
|
if (null === a) {
|
|
1714
1651
|
return "null";
|
|
1715
1652
|
}
|
|
1716
1653
|
var b = typeof a;
|
|
1717
1654
|
return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
|
|
1718
1655
|
}
|
|
1719
|
-
function
|
|
1656
|
+
function bd(a, b) {
|
|
1720
1657
|
switch(b) {
|
|
1721
1658
|
case 2:
|
|
1722
1659
|
return function(c) {
|
|
1723
|
-
return this.fromWireType(
|
|
1660
|
+
return this.fromWireType(wa[c >> 2]);
|
|
1724
1661
|
};
|
|
1725
1662
|
case 3:
|
|
1726
1663
|
return function(c) {
|
|
1727
|
-
return this.fromWireType(
|
|
1664
|
+
return this.fromWireType(xa[c >> 3]);
|
|
1728
1665
|
};
|
|
1729
1666
|
default:
|
|
1730
1667
|
throw new TypeError("Unknown float type: " + a);
|
|
1731
1668
|
}
|
|
1732
1669
|
}
|
|
1733
|
-
function
|
|
1670
|
+
function cd(a, b, c) {
|
|
1734
1671
|
switch(b) {
|
|
1735
1672
|
case 0:
|
|
1736
1673
|
return c ? function(d) {
|
|
1737
|
-
return B[d];
|
|
1738
|
-
} : function(d) {
|
|
1739
1674
|
return C[d];
|
|
1675
|
+
} : function(d) {
|
|
1676
|
+
return G[d];
|
|
1740
1677
|
};
|
|
1741
1678
|
case 1:
|
|
1742
1679
|
return c ? function(d) {
|
|
1743
|
-
return
|
|
1680
|
+
return H[d >> 1];
|
|
1744
1681
|
} : function(d) {
|
|
1745
|
-
return
|
|
1682
|
+
return va[d >> 1];
|
|
1746
1683
|
};
|
|
1747
1684
|
case 2:
|
|
1748
1685
|
return c ? function(d) {
|
|
1749
|
-
return F[d >> 2];
|
|
1750
|
-
} : function(d) {
|
|
1751
1686
|
return I[d >> 2];
|
|
1687
|
+
} : function(d) {
|
|
1688
|
+
return J[d >> 2];
|
|
1752
1689
|
};
|
|
1753
1690
|
default:
|
|
1754
1691
|
throw new TypeError("Unknown integer type: " + a);
|
|
1755
1692
|
}
|
|
1756
1693
|
}
|
|
1757
|
-
var
|
|
1694
|
+
var dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, ed = (a, b) => {
|
|
1758
1695
|
var c = a >> 1;
|
|
1759
|
-
for (var d = c + b / 2; !(c >= d) &&
|
|
1696
|
+
for (var d = c + b / 2; !(c >= d) && va[c];) {
|
|
1760
1697
|
++c;
|
|
1761
1698
|
}
|
|
1762
1699
|
c <<= 1;
|
|
1763
|
-
if (32 < c - a &&
|
|
1764
|
-
return
|
|
1700
|
+
if (32 < c - a && dd) {
|
|
1701
|
+
return dd.decode(G.subarray(a, c));
|
|
1765
1702
|
}
|
|
1766
1703
|
c = "";
|
|
1767
1704
|
for (d = 0; !(d >= b / 2); ++d) {
|
|
1768
|
-
var e =
|
|
1705
|
+
var e = H[a + 2 * d >> 1];
|
|
1769
1706
|
if (0 == e) {
|
|
1770
1707
|
break;
|
|
1771
1708
|
}
|
|
1772
1709
|
c += String.fromCharCode(e);
|
|
1773
1710
|
}
|
|
1774
1711
|
return c;
|
|
1775
|
-
},
|
|
1712
|
+
}, fd = (a, b, c) => {
|
|
1776
1713
|
void 0 === c && (c = 2147483647);
|
|
1777
1714
|
if (2 > c) {
|
|
1778
1715
|
return 0;
|
|
@@ -1781,13 +1718,13 @@ var gd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1781
1718
|
var d = b;
|
|
1782
1719
|
c = c < 2 * a.length ? c / 2 : a.length;
|
|
1783
1720
|
for (var e = 0; e < c; ++e) {
|
|
1784
|
-
|
|
1721
|
+
H[b >> 1] = a.charCodeAt(e), b += 2;
|
|
1785
1722
|
}
|
|
1786
|
-
|
|
1723
|
+
H[b >> 1] = 0;
|
|
1787
1724
|
return b - d;
|
|
1788
|
-
},
|
|
1725
|
+
}, gd = a => 2 * a.length, hd = (a, b) => {
|
|
1789
1726
|
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
1790
|
-
var e =
|
|
1727
|
+
var e = I[a + 4 * c >> 2];
|
|
1791
1728
|
if (0 == e) {
|
|
1792
1729
|
break;
|
|
1793
1730
|
}
|
|
@@ -1795,7 +1732,7 @@ var gd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1795
1732
|
65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
|
|
1796
1733
|
}
|
|
1797
1734
|
return d;
|
|
1798
|
-
},
|
|
1735
|
+
}, jd = (a, b, c) => {
|
|
1799
1736
|
void 0 === c && (c = 2147483647);
|
|
1800
1737
|
if (4 > c) {
|
|
1801
1738
|
return 0;
|
|
@@ -1808,103 +1745,103 @@ var gd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1808
1745
|
var g = a.charCodeAt(++e);
|
|
1809
1746
|
f = 65536 + ((f & 1023) << 10) | g & 1023;
|
|
1810
1747
|
}
|
|
1811
|
-
|
|
1748
|
+
I[b >> 2] = f;
|
|
1812
1749
|
b += 4;
|
|
1813
1750
|
if (b + 4 > c) {
|
|
1814
1751
|
break;
|
|
1815
1752
|
}
|
|
1816
1753
|
}
|
|
1817
|
-
|
|
1754
|
+
I[b >> 2] = 0;
|
|
1818
1755
|
return b - d;
|
|
1819
|
-
},
|
|
1756
|
+
}, kd = a => {
|
|
1820
1757
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
1821
1758
|
var d = a.charCodeAt(c);
|
|
1822
1759
|
55296 <= d && 57343 >= d && ++c;
|
|
1823
1760
|
b += 4;
|
|
1824
1761
|
}
|
|
1825
1762
|
return b;
|
|
1826
|
-
},
|
|
1827
|
-
function
|
|
1828
|
-
var b =
|
|
1829
|
-
return void 0 === b ?
|
|
1830
|
-
}
|
|
1831
|
-
var
|
|
1832
|
-
function
|
|
1833
|
-
var b =
|
|
1834
|
-
|
|
1763
|
+
}, ld = {};
|
|
1764
|
+
function md(a) {
|
|
1765
|
+
var b = ld[a];
|
|
1766
|
+
return void 0 === b ? R(a) : b;
|
|
1767
|
+
}
|
|
1768
|
+
var nd = [];
|
|
1769
|
+
function od(a) {
|
|
1770
|
+
var b = nd.length;
|
|
1771
|
+
nd.push(a);
|
|
1835
1772
|
return b;
|
|
1836
1773
|
}
|
|
1837
|
-
function
|
|
1774
|
+
function pd(a, b) {
|
|
1838
1775
|
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
1839
|
-
c[d] =
|
|
1776
|
+
c[d] = oc(J[b + 4 * d >> 2], "parameter " + d);
|
|
1840
1777
|
}
|
|
1841
1778
|
return c;
|
|
1842
1779
|
}
|
|
1843
|
-
var
|
|
1844
|
-
function
|
|
1845
|
-
a.
|
|
1780
|
+
var qd = [], rd = [];
|
|
1781
|
+
function sd(a) {
|
|
1782
|
+
a.yc = a.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
|
|
1846
1783
|
}
|
|
1847
|
-
function
|
|
1848
|
-
a.
|
|
1784
|
+
function td(a) {
|
|
1785
|
+
a.Gc = a.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
|
|
1849
1786
|
}
|
|
1850
|
-
var
|
|
1851
|
-
function
|
|
1852
|
-
|
|
1787
|
+
var ud = 1, vd = [], V = [], wd = [], xd = [], W = [], yd = [], zd = [], t = [], Ad = {};
|
|
1788
|
+
function X(a) {
|
|
1789
|
+
Bd || (Bd = a);
|
|
1853
1790
|
}
|
|
1854
|
-
function
|
|
1855
|
-
for (var b =
|
|
1791
|
+
function ha(a) {
|
|
1792
|
+
for (var b = ud++, c = a.length; c < b; c++) {
|
|
1856
1793
|
a[c] = null;
|
|
1857
1794
|
}
|
|
1858
1795
|
return b;
|
|
1859
1796
|
}
|
|
1860
|
-
function
|
|
1861
|
-
|
|
1862
|
-
n.
|
|
1797
|
+
function ja(a) {
|
|
1798
|
+
Cd = t[a];
|
|
1799
|
+
n.wc = Z = Cd && Cd.H;
|
|
1863
1800
|
return !(a && !Z);
|
|
1864
1801
|
}
|
|
1865
|
-
function
|
|
1866
|
-
a || (a =
|
|
1867
|
-
if (!a.
|
|
1868
|
-
a.
|
|
1802
|
+
function ia(a) {
|
|
1803
|
+
a || (a = Cd);
|
|
1804
|
+
if (!a.Sb) {
|
|
1805
|
+
a.Sb = !0;
|
|
1869
1806
|
var b = a.H;
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
2 <= a.version && (b.
|
|
1873
|
-
if (2 > a.version || !b.
|
|
1874
|
-
b.
|
|
1807
|
+
sd(b);
|
|
1808
|
+
td(b);
|
|
1809
|
+
2 <= a.version && (b.Ya = b.getExtension("EXT_disjoint_timer_query_webgl2"));
|
|
1810
|
+
if (2 > a.version || !b.Ya) {
|
|
1811
|
+
b.Ya = b.getExtension("EXT_disjoint_timer_query");
|
|
1875
1812
|
}
|
|
1876
|
-
|
|
1813
|
+
Dd(b);
|
|
1877
1814
|
(b.getSupportedExtensions() || []).forEach(function(c) {
|
|
1878
1815
|
c.includes("lose_context") || c.includes("debug") || b.getExtension(c);
|
|
1879
1816
|
});
|
|
1880
1817
|
}
|
|
1881
1818
|
}
|
|
1882
|
-
var
|
|
1883
|
-
function
|
|
1884
|
-
a.
|
|
1819
|
+
var Bd, Cd;
|
|
1820
|
+
function Dd(a) {
|
|
1821
|
+
a.Ic = a.getExtension("WEBGL_multi_draw");
|
|
1885
1822
|
}
|
|
1886
|
-
var
|
|
1887
|
-
if (!
|
|
1888
|
-
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", _:
|
|
1889
|
-
for (b in
|
|
1890
|
-
void 0 ===
|
|
1823
|
+
var Ed = {}, Gd = () => {
|
|
1824
|
+
if (!Fd) {
|
|
1825
|
+
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", _:la || "./this.program"}, b;
|
|
1826
|
+
for (b in Ed) {
|
|
1827
|
+
void 0 === Ed[b] ? delete a[b] : a[b] = Ed[b];
|
|
1891
1828
|
}
|
|
1892
1829
|
var c = [];
|
|
1893
1830
|
for (b in a) {
|
|
1894
1831
|
c.push(`${b}=${a[b]}`);
|
|
1895
1832
|
}
|
|
1896
|
-
|
|
1833
|
+
Fd = c;
|
|
1897
1834
|
}
|
|
1898
|
-
return
|
|
1899
|
-
},
|
|
1900
|
-
function
|
|
1835
|
+
return Fd;
|
|
1836
|
+
}, Fd, Hd = [];
|
|
1837
|
+
function Id(a, b, c, d) {
|
|
1901
1838
|
for (var e = 0; e < a; e++) {
|
|
1902
|
-
var f = Z[c](), g = f &&
|
|
1903
|
-
f ? (f.name = g, d[g] = f) :
|
|
1904
|
-
|
|
1839
|
+
var f = Z[c](), g = f && ha(d);
|
|
1840
|
+
f ? (f.name = g, d[g] = f) : X(1282);
|
|
1841
|
+
I[b + 4 * e >> 2] = g;
|
|
1905
1842
|
}
|
|
1906
1843
|
}
|
|
1907
|
-
function
|
|
1844
|
+
function Jd(a, b) {
|
|
1908
1845
|
if (b) {
|
|
1909
1846
|
var c = void 0;
|
|
1910
1847
|
switch(a) {
|
|
@@ -1922,16 +1859,16 @@ function Nd(a, b) {
|
|
|
1922
1859
|
c = d ? d.length : 0;
|
|
1923
1860
|
break;
|
|
1924
1861
|
case 33309:
|
|
1925
|
-
if (2 >
|
|
1926
|
-
|
|
1862
|
+
if (2 > Cd.version) {
|
|
1863
|
+
X(1282);
|
|
1927
1864
|
return;
|
|
1928
1865
|
}
|
|
1929
1866
|
c = 2 * (Z.getSupportedExtensions() || []).length;
|
|
1930
1867
|
break;
|
|
1931
1868
|
case 33307:
|
|
1932
1869
|
case 33308:
|
|
1933
|
-
if (2 >
|
|
1934
|
-
|
|
1870
|
+
if (2 > Cd.version) {
|
|
1871
|
+
X(1280);
|
|
1935
1872
|
return;
|
|
1936
1873
|
}
|
|
1937
1874
|
c = 33307 == a ? 3 : 0;
|
|
@@ -1945,7 +1882,7 @@ function Nd(a, b) {
|
|
|
1945
1882
|
c = d ? 1 : 0;
|
|
1946
1883
|
break;
|
|
1947
1884
|
case "string":
|
|
1948
|
-
|
|
1885
|
+
X(1280);
|
|
1949
1886
|
return;
|
|
1950
1887
|
case "object":
|
|
1951
1888
|
if (null === d) {
|
|
@@ -1972,45 +1909,45 @@ function Nd(a, b) {
|
|
|
1972
1909
|
c = 0;
|
|
1973
1910
|
break;
|
|
1974
1911
|
default:
|
|
1975
|
-
|
|
1912
|
+
X(1280);
|
|
1976
1913
|
return;
|
|
1977
1914
|
}
|
|
1978
1915
|
} else {
|
|
1979
1916
|
if (d instanceof Float32Array || d instanceof Uint32Array || d instanceof Int32Array || d instanceof Array) {
|
|
1980
1917
|
for (a = 0; a < d.length; ++a) {
|
|
1981
|
-
|
|
1918
|
+
I[b + 4 * a >> 2] = d[a];
|
|
1982
1919
|
}
|
|
1983
1920
|
return;
|
|
1984
1921
|
}
|
|
1985
1922
|
try {
|
|
1986
1923
|
c = d.name | 0;
|
|
1987
1924
|
} catch (e) {
|
|
1988
|
-
|
|
1989
|
-
|
|
1925
|
+
X(1280);
|
|
1926
|
+
A("GL_INVALID_ENUM in glGet0v: Unknown object returned from WebGL getParameter(" + a + ")! (error: " + e + ")");
|
|
1990
1927
|
return;
|
|
1991
1928
|
}
|
|
1992
1929
|
}
|
|
1993
1930
|
break;
|
|
1994
1931
|
default:
|
|
1995
|
-
|
|
1996
|
-
|
|
1932
|
+
X(1280);
|
|
1933
|
+
A("GL_INVALID_ENUM in glGet0v: Native code calling glGet0v(" + a + ") and it returns " + d + " of type " + typeof d + "!");
|
|
1997
1934
|
return;
|
|
1998
1935
|
}
|
|
1999
1936
|
}
|
|
2000
|
-
|
|
1937
|
+
I[b >> 2] = c;
|
|
2001
1938
|
} else {
|
|
2002
|
-
|
|
1939
|
+
X(1281);
|
|
2003
1940
|
}
|
|
2004
1941
|
}
|
|
2005
|
-
var
|
|
2006
|
-
var b = db(a) + 1, c =
|
|
2007
|
-
c && eb(a,
|
|
1942
|
+
var Ld = a => {
|
|
1943
|
+
var b = db(a) + 1, c = Kd(b);
|
|
1944
|
+
c && eb(a, G, c, b);
|
|
2008
1945
|
return c;
|
|
2009
1946
|
};
|
|
2010
|
-
function
|
|
1947
|
+
function Md(a) {
|
|
2011
1948
|
return "]" == a.slice(-1) && a.lastIndexOf("[");
|
|
2012
1949
|
}
|
|
2013
|
-
var
|
|
1950
|
+
var Nd = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Od = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Pd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Qd = (a, b, c, d) => {
|
|
2014
1951
|
function e(k, r, w) {
|
|
2015
1952
|
for (k = "number" == typeof k ? k.toString() : k || ""; k.length < r;) {
|
|
2016
1953
|
k = w[0] + k;
|
|
@@ -2021,12 +1958,12 @@ var Rd = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Sd = [31, 29, 31,
|
|
|
2021
1958
|
return e(k, r, "0");
|
|
2022
1959
|
}
|
|
2023
1960
|
function g(k, r) {
|
|
2024
|
-
function w(
|
|
2025
|
-
return 0 >
|
|
1961
|
+
function w(E) {
|
|
1962
|
+
return 0 > E ? -1 : 0 < E ? 1 : 0;
|
|
2026
1963
|
}
|
|
2027
|
-
var
|
|
2028
|
-
0 === (
|
|
2029
|
-
return
|
|
1964
|
+
var y;
|
|
1965
|
+
0 === (y = w(k.getFullYear() - r.getFullYear())) && 0 === (y = w(k.getMonth() - r.getMonth())) && (y = w(k.getDate() - r.getDate()));
|
|
1966
|
+
return y;
|
|
2030
1967
|
}
|
|
2031
1968
|
function m(k) {
|
|
2032
1969
|
switch(k.getDay()) {
|
|
@@ -2049,9 +1986,9 @@ var Rd = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Sd = [31, 29, 31,
|
|
|
2049
1986
|
function p(k) {
|
|
2050
1987
|
var r = k.ba;
|
|
2051
1988
|
for (k = new Date((new Date(k.ca + 1900, 0, 1)).getTime()); 0 < r;) {
|
|
2052
|
-
var w = k.getMonth(),
|
|
2053
|
-
if (r >
|
|
2054
|
-
r -=
|
|
1989
|
+
var w = k.getMonth(), y = (Nd(k.getFullYear()) ? Od : Pd)[w];
|
|
1990
|
+
if (r > y - k.getDate()) {
|
|
1991
|
+
r -= y - k.getDate() + 1, k.setDate(1), 11 > w ? k.setMonth(w + 1) : (k.setMonth(0), k.setFullYear(k.getFullYear() + 1));
|
|
2055
1992
|
} else {
|
|
2056
1993
|
k.setDate(k.getDate() + r);
|
|
2057
1994
|
break;
|
|
@@ -2062,39 +1999,39 @@ var Rd = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Sd = [31, 29, 31,
|
|
|
2062
1999
|
w = m(w);
|
|
2063
2000
|
return 0 >= g(r, k) ? 0 >= g(w, k) ? k.getFullYear() + 1 : k.getFullYear() : k.getFullYear() - 1;
|
|
2064
2001
|
}
|
|
2065
|
-
var l =
|
|
2066
|
-
d = {
|
|
2067
|
-
c = c ?
|
|
2002
|
+
var l = I[d + 40 >> 2];
|
|
2003
|
+
d = {jc:I[d >> 2], ic:I[d + 4 >> 2], Ga:I[d + 8 >> 2], Ra:I[d + 12 >> 2], Ha:I[d + 16 >> 2], ca:I[d + 20 >> 2], R:I[d + 24 >> 2], ba:I[d + 28 >> 2], Mc:I[d + 32 >> 2], hc:I[d + 36 >> 2], kc:l ? l ? K(G, l) : "" : ""};
|
|
2004
|
+
c = c ? K(G, c) : "";
|
|
2068
2005
|
l = {"%c":"%a %b %d %H:%M:%S %Y", "%D":"%m/%d/%y", "%F":"%Y-%m-%d", "%h":"%b", "%r":"%I:%M:%S %p", "%R":"%H:%M", "%T":"%H:%M:%S", "%x":"%m/%d/%y", "%X":"%H:%M:%S", "%Ec":"%c", "%EC":"%C", "%Ex":"%m/%d/%y", "%EX":"%H:%M:%S", "%Ey":"%y", "%EY":"%Y", "%Od":"%d", "%Oe":"%e", "%OH":"%H", "%OI":"%I", "%Om":"%m", "%OM":"%M", "%OS":"%S", "%Ou":"%u", "%OU":"%U", "%OV":"%V", "%Ow":"%w", "%OW":"%W", "%Oy":"%y",};
|
|
2069
2006
|
for (var u in l) {
|
|
2070
2007
|
c = c.replace(new RegExp(u, "g"), l[u]);
|
|
2071
2008
|
}
|
|
2072
2009
|
var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), q = "January February March April May June July August September October November December".split(" ");
|
|
2073
|
-
l = {"%a":k => v[k.
|
|
2010
|
+
l = {"%a":k => v[k.R].substring(0, 3), "%A":k => v[k.R], "%b":k => q[k.Ha].substring(0, 3), "%B":k => q[k.Ha], "%C":k => f((k.ca + 1900) / 100 | 0, 2), "%d":k => f(k.Ra, 2), "%e":k => e(k.Ra, 2, " "), "%g":k => p(k).toString().substring(2), "%G":k => p(k), "%H":k => f(k.Ga, 2), "%I":k => {
|
|
2074
2011
|
k = k.Ga;
|
|
2075
2012
|
0 == k ? k = 12 : 12 < k && (k -= 12);
|
|
2076
2013
|
return f(k, 2);
|
|
2077
2014
|
}, "%j":k => {
|
|
2078
|
-
for (var r = 0, w = 0; w <= k.Ha - 1; r += (
|
|
2015
|
+
for (var r = 0, w = 0; w <= k.Ha - 1; r += (Nd(k.ca + 1900) ? Od : Pd)[w++]) {
|
|
2079
2016
|
}
|
|
2080
|
-
return f(k.
|
|
2081
|
-
}, "%m":k => f(k.Ha + 1, 2), "%M":k => f(k.
|
|
2082
|
-
var r = Math.floor((k.ba + 7 - (k.
|
|
2083
|
-
2 >= (k.
|
|
2017
|
+
return f(k.Ra + r, 3);
|
|
2018
|
+
}, "%m":k => f(k.Ha + 1, 2), "%M":k => f(k.ic, 2), "%n":() => "\n", "%p":k => 0 <= k.Ga && 12 > k.Ga ? "AM" : "PM", "%S":k => f(k.jc, 2), "%t":() => "\t", "%u":k => k.R || 7, "%U":k => f(Math.floor((k.ba + 7 - k.R) / 7), 2), "%V":k => {
|
|
2019
|
+
var r = Math.floor((k.ba + 7 - (k.R + 6) % 7) / 7);
|
|
2020
|
+
2 >= (k.R + 371 - k.ba - 2) % 7 && r++;
|
|
2084
2021
|
if (r) {
|
|
2085
|
-
53 == r && (w = (k.
|
|
2022
|
+
53 == r && (w = (k.R + 371 - k.ba) % 7, 4 == w || 3 == w && Nd(k.ca) || (r = 1));
|
|
2086
2023
|
} else {
|
|
2087
2024
|
r = 52;
|
|
2088
|
-
var w = (k.
|
|
2089
|
-
(4 == w || 5 == w &&
|
|
2025
|
+
var w = (k.R + 7 - k.ba - 1) % 7;
|
|
2026
|
+
(4 == w || 5 == w && Nd(k.ca % 400 - 1)) && r++;
|
|
2090
2027
|
}
|
|
2091
2028
|
return f(r, 2);
|
|
2092
|
-
}, "%w":k => k.
|
|
2093
|
-
k = k.
|
|
2029
|
+
}, "%w":k => k.R, "%W":k => f(Math.floor((k.ba + 7 - (k.R + 6) % 7) / 7), 2), "%y":k => (k.ca + 1900).toString().substring(2), "%Y":k => k.ca + 1900, "%z":k => {
|
|
2030
|
+
k = k.hc;
|
|
2094
2031
|
var r = 0 <= k;
|
|
2095
2032
|
k = Math.abs(k) / 60;
|
|
2096
2033
|
return (r ? "+" : "-") + String("0000" + (k / 60 * 100 + k % 60)).slice(-4);
|
|
2097
|
-
}, "%Z":k => k.
|
|
2034
|
+
}, "%Z":k => k.kc, "%%":() => "%"};
|
|
2098
2035
|
c = c.replace(/%%/g, "\x00\x00");
|
|
2099
2036
|
for (u in l) {
|
|
2100
2037
|
c.includes(u) && (c = c.replace(new RegExp(u, "g"), l[u](d)));
|
|
@@ -2104,20 +2041,20 @@ var Rd = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Sd = [31, 29, 31,
|
|
|
2104
2041
|
if (u.length > b) {
|
|
2105
2042
|
return 0;
|
|
2106
2043
|
}
|
|
2107
|
-
|
|
2044
|
+
C.set(u, a);
|
|
2108
2045
|
return u.length - 1;
|
|
2109
2046
|
};
|
|
2110
2047
|
function Eb(a, b, c, d) {
|
|
2111
2048
|
a || (a = this);
|
|
2112
2049
|
this.parent = a;
|
|
2113
|
-
this.
|
|
2114
|
-
this.
|
|
2050
|
+
this.T = a.T;
|
|
2051
|
+
this.Aa = null;
|
|
2115
2052
|
this.id = wb++;
|
|
2116
2053
|
this.name = b;
|
|
2117
2054
|
this.mode = c;
|
|
2118
|
-
this.
|
|
2055
|
+
this.l = {};
|
|
2119
2056
|
this.m = {};
|
|
2120
|
-
this.
|
|
2057
|
+
this.Ca = d;
|
|
2121
2058
|
}
|
|
2122
2059
|
Object.defineProperties(Eb.prototype, {read:{get:function() {
|
|
2123
2060
|
return 365 === (this.mode & 365);
|
|
@@ -2128,14 +2065,14 @@ Object.defineProperties(Eb.prototype, {read:{get:function() {
|
|
|
2128
2065
|
}, set:function(a) {
|
|
2129
2066
|
a ? this.mode |= 146 : this.mode &= -147;
|
|
2130
2067
|
}}});
|
|
2131
|
-
|
|
2068
|
+
Rb();
|
|
2132
2069
|
xb = Array(4096);
|
|
2133
|
-
Lb(
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2070
|
+
Lb(M, "/");
|
|
2071
|
+
N("/tmp", 16895, 0);
|
|
2072
|
+
N("/home", 16895, 0);
|
|
2073
|
+
N("/home/web_user", 16895, 0);
|
|
2137
2074
|
(() => {
|
|
2138
|
-
|
|
2075
|
+
N("/dev", 16895, 0);
|
|
2139
2076
|
ib(259, {read:() => 0, write:(d, e, f, g) => g,});
|
|
2140
2077
|
Mb("/dev/null", 259);
|
|
2141
2078
|
hb(1280, kb);
|
|
@@ -2146,180 +2083,180 @@ O("/home/web_user", 16895, 0);
|
|
|
2146
2083
|
0 === b && (b = $a(a).byteLength);
|
|
2147
2084
|
return a[--b];
|
|
2148
2085
|
};
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2086
|
+
Ub("random", c);
|
|
2087
|
+
Ub("urandom", c);
|
|
2088
|
+
N("/dev/shm", 16895, 0);
|
|
2089
|
+
N("/dev/shm/tmp", 16895, 0);
|
|
2153
2090
|
})();
|
|
2154
2091
|
(() => {
|
|
2155
|
-
|
|
2156
|
-
var a =
|
|
2157
|
-
|
|
2158
|
-
Lb({
|
|
2092
|
+
N("/proc", 16895, 0);
|
|
2093
|
+
var a = N("/proc/self", 16895, 0);
|
|
2094
|
+
N("/proc/self/fd", 16895, 0);
|
|
2095
|
+
Lb({T:() => {
|
|
2159
2096
|
var b = ob(a, "fd", 16895, 73);
|
|
2160
|
-
b.
|
|
2097
|
+
b.l = {ma:(c, d) => {
|
|
2161
2098
|
var e = Ib(+d);
|
|
2162
|
-
c = {parent:null,
|
|
2099
|
+
c = {parent:null, T:{gb:"fake"}, l:{na:() => e.path},};
|
|
2163
2100
|
return c.parent = c;
|
|
2164
2101
|
}};
|
|
2165
2102
|
return b;
|
|
2166
2103
|
}}, "/proc/self/fd");
|
|
2167
2104
|
})();
|
|
2168
|
-
Object.assign(
|
|
2169
|
-
return this.
|
|
2105
|
+
Object.assign($b.prototype, {get(a) {
|
|
2106
|
+
return this.M[a];
|
|
2170
2107
|
}, has(a) {
|
|
2171
|
-
return void 0 !== this.
|
|
2172
|
-
},
|
|
2173
|
-
var b = this.bb.pop() || this.
|
|
2174
|
-
this.
|
|
2108
|
+
return void 0 !== this.M[a];
|
|
2109
|
+
}, ta(a) {
|
|
2110
|
+
var b = this.bb.pop() || this.M.length;
|
|
2111
|
+
this.M[b] = a;
|
|
2175
2112
|
return b;
|
|
2176
|
-
},
|
|
2177
|
-
this.
|
|
2113
|
+
}, Qb(a) {
|
|
2114
|
+
this.M[a] = void 0;
|
|
2178
2115
|
this.bb.push(a);
|
|
2179
2116
|
}});
|
|
2180
|
-
|
|
2117
|
+
ac = n.BindingError = class extends Error {
|
|
2181
2118
|
constructor(a) {
|
|
2182
2119
|
super(a);
|
|
2183
2120
|
this.name = "BindingError";
|
|
2184
2121
|
}
|
|
2185
2122
|
};
|
|
2186
|
-
|
|
2187
|
-
|
|
2123
|
+
O.M.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
|
|
2124
|
+
O.h = O.M.length;
|
|
2188
2125
|
n.count_emval_handles = function() {
|
|
2189
|
-
for (var a = 0, b =
|
|
2190
|
-
void 0 !==
|
|
2126
|
+
for (var a = 0, b = O.h; b < O.M.length; ++b) {
|
|
2127
|
+
void 0 !== O.M[b] && ++a;
|
|
2191
2128
|
}
|
|
2192
2129
|
return a;
|
|
2193
2130
|
};
|
|
2194
|
-
|
|
2195
|
-
for (var
|
|
2196
|
-
|
|
2131
|
+
dc = n.PureVirtualError = cc("PureVirtualError");
|
|
2132
|
+
for (var Rd = Array(256), Sd = 0; 256 > Sd; ++Sd) {
|
|
2133
|
+
Rd[Sd] = String.fromCharCode(Sd);
|
|
2197
2134
|
}
|
|
2198
|
-
|
|
2135
|
+
ec = Rd;
|
|
2199
2136
|
n.getInheritedInstanceCount = function() {
|
|
2200
|
-
return Object.keys(
|
|
2137
|
+
return Object.keys(ic).length;
|
|
2201
2138
|
};
|
|
2202
2139
|
n.getLiveInheritedInstances = function() {
|
|
2203
2140
|
var a = [], b;
|
|
2204
|
-
for (b in
|
|
2205
|
-
|
|
2141
|
+
for (b in ic) {
|
|
2142
|
+
ic.hasOwnProperty(b) && a.push(ic[b]);
|
|
2206
2143
|
}
|
|
2207
2144
|
return a;
|
|
2208
2145
|
};
|
|
2209
|
-
n.flushPendingDeletes =
|
|
2146
|
+
n.flushPendingDeletes = gc;
|
|
2210
2147
|
n.setDelayFunction = function(a) {
|
|
2211
|
-
|
|
2212
|
-
|
|
2148
|
+
hc = a;
|
|
2149
|
+
fc.length && hc && hc(gc);
|
|
2213
2150
|
};
|
|
2214
|
-
|
|
2151
|
+
vc = n.InternalError = class extends Error {
|
|
2215
2152
|
constructor(a) {
|
|
2216
2153
|
super(a);
|
|
2217
2154
|
this.name = "InternalError";
|
|
2218
2155
|
}
|
|
2219
2156
|
};
|
|
2220
|
-
|
|
2221
|
-
if (!(this instanceof
|
|
2157
|
+
Hc.prototype.isAliasOf = function(a) {
|
|
2158
|
+
if (!(this instanceof Hc && a instanceof Hc)) {
|
|
2222
2159
|
return !1;
|
|
2223
2160
|
}
|
|
2224
2161
|
var b = this.g.u.i, c = this.g.o, d = a.g.u.i;
|
|
2225
2162
|
for (a = a.g.o; b.A;) {
|
|
2226
|
-
c = b.
|
|
2163
|
+
c = b.pa(c), b = b.A;
|
|
2227
2164
|
}
|
|
2228
2165
|
for (; d.A;) {
|
|
2229
|
-
a = d.
|
|
2166
|
+
a = d.pa(a), d = d.A;
|
|
2230
2167
|
}
|
|
2231
2168
|
return b === d && c === a;
|
|
2232
2169
|
};
|
|
2233
|
-
|
|
2234
|
-
this.g.o ||
|
|
2170
|
+
Hc.prototype.clone = function() {
|
|
2171
|
+
this.g.o || Gc(this);
|
|
2235
2172
|
if (this.g.ja) {
|
|
2236
2173
|
return this.g.count.value += 1, this;
|
|
2237
2174
|
}
|
|
2238
|
-
var a =
|
|
2239
|
-
a = a(c.call(b, d, {g:{value:{count:e.count, ga:e.ga, ja:e.ja, o:e.o, u:e.u, G:e.G,
|
|
2175
|
+
var a = yc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
|
|
2176
|
+
a = a(c.call(b, d, {g:{value:{count:e.count, ga:e.ga, ja:e.ja, o:e.o, u:e.u, G:e.G, L:e.L,},}}));
|
|
2240
2177
|
a.g.count.value += 1;
|
|
2241
2178
|
a.g.ga = !1;
|
|
2242
2179
|
return a;
|
|
2243
2180
|
};
|
|
2244
|
-
|
|
2245
|
-
this.g.o ||
|
|
2246
|
-
this.g.ga && !this.g.ja &&
|
|
2247
|
-
|
|
2248
|
-
|
|
2181
|
+
Hc.prototype["delete"] = function() {
|
|
2182
|
+
this.g.o || Gc(this);
|
|
2183
|
+
this.g.ga && !this.g.ja && P("Object already scheduled for deletion");
|
|
2184
|
+
pc(this);
|
|
2185
|
+
rc(this.g);
|
|
2249
2186
|
this.g.ja || (this.g.G = void 0, this.g.o = void 0);
|
|
2250
2187
|
};
|
|
2251
|
-
|
|
2188
|
+
Hc.prototype.isDeleted = function() {
|
|
2252
2189
|
return !this.g.o;
|
|
2253
2190
|
};
|
|
2254
|
-
|
|
2255
|
-
this.g.o ||
|
|
2256
|
-
this.g.ga && !this.g.ja &&
|
|
2257
|
-
|
|
2258
|
-
1 ===
|
|
2191
|
+
Hc.prototype.deleteLater = function() {
|
|
2192
|
+
this.g.o || Gc(this);
|
|
2193
|
+
this.g.ga && !this.g.ja && P("Object already scheduled for deletion");
|
|
2194
|
+
fc.push(this);
|
|
2195
|
+
1 === fc.length && hc && hc(gc);
|
|
2259
2196
|
this.g.ga = !0;
|
|
2260
2197
|
return this;
|
|
2261
2198
|
};
|
|
2262
|
-
|
|
2263
|
-
this.
|
|
2199
|
+
Qc.prototype.Mb = function(a) {
|
|
2200
|
+
this.mb && (a = this.mb(a));
|
|
2264
2201
|
return a;
|
|
2265
2202
|
};
|
|
2266
|
-
|
|
2267
|
-
this.
|
|
2203
|
+
Qc.prototype.Xa = function(a) {
|
|
2204
|
+
this.V && this.V(a);
|
|
2268
2205
|
};
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2206
|
+
Qc.prototype.argPackAdvance = 8;
|
|
2207
|
+
Qc.prototype.readValueFromPointer = Bc;
|
|
2208
|
+
Qc.prototype.deleteObject = function(a) {
|
|
2272
2209
|
if (null !== a) {
|
|
2273
2210
|
a["delete"]();
|
|
2274
2211
|
}
|
|
2275
2212
|
};
|
|
2276
|
-
|
|
2213
|
+
Qc.prototype.fromWireType = function(a) {
|
|
2277
2214
|
function b() {
|
|
2278
|
-
return this.
|
|
2215
|
+
return this.ya ? xc(this.i.N, {u:this.$b, o:c, L:this, G:a,}) : xc(this.i.N, {u:this, o:a,});
|
|
2279
2216
|
}
|
|
2280
|
-
var c = this.
|
|
2217
|
+
var c = this.Mb(a);
|
|
2281
2218
|
if (!c) {
|
|
2282
|
-
return this.
|
|
2219
|
+
return this.Xa(a), null;
|
|
2283
2220
|
}
|
|
2284
|
-
var d =
|
|
2221
|
+
var d = uc(this.i, c);
|
|
2285
2222
|
if (void 0 !== d) {
|
|
2286
2223
|
if (0 === d.g.count.value) {
|
|
2287
2224
|
return d.g.o = c, d.g.G = a, d.clone();
|
|
2288
2225
|
}
|
|
2289
2226
|
d = d.clone();
|
|
2290
|
-
this.
|
|
2227
|
+
this.Xa(a);
|
|
2291
2228
|
return d;
|
|
2292
2229
|
}
|
|
2293
|
-
d = this.i.
|
|
2294
|
-
d =
|
|
2230
|
+
d = this.i.Lb(c);
|
|
2231
|
+
d = tc[d];
|
|
2295
2232
|
if (!d) {
|
|
2296
2233
|
return b.call(this);
|
|
2297
2234
|
}
|
|
2298
|
-
d = this.
|
|
2299
|
-
var e =
|
|
2300
|
-
return null === e ? b.call(this) : this.
|
|
2235
|
+
d = this.xa ? d.Db : d.pointerType;
|
|
2236
|
+
var e = sc(c, this.i, d.i);
|
|
2237
|
+
return null === e ? b.call(this) : this.ya ? xc(d.i.N, {u:d, o:e, L:this, G:a,}) : xc(d.i.N, {u:d, o:e,});
|
|
2301
2238
|
};
|
|
2302
|
-
|
|
2303
|
-
for (var Z,
|
|
2304
|
-
|
|
2239
|
+
Vc = n.UnboundTypeError = cc("UnboundTypeError");
|
|
2240
|
+
for (var Z, Td = 0; 32 > Td; ++Td) {
|
|
2241
|
+
Hd.push(Array(Td));
|
|
2305
2242
|
}
|
|
2306
|
-
var
|
|
2307
|
-
|
|
2243
|
+
var Vd = {__syscall_fcntl64:function(a, b, c) {
|
|
2244
|
+
Wb = c;
|
|
2308
2245
|
try {
|
|
2309
2246
|
var d = Ib(a);
|
|
2310
2247
|
switch(b) {
|
|
2311
2248
|
case 0:
|
|
2312
|
-
var e =
|
|
2313
|
-
return 0 > e ? -28 : Kb(d, e).
|
|
2249
|
+
var e = Xb();
|
|
2250
|
+
return 0 > e ? -28 : Kb(d, e).W;
|
|
2314
2251
|
case 1:
|
|
2315
2252
|
case 2:
|
|
2316
2253
|
return 0;
|
|
2317
2254
|
case 3:
|
|
2318
2255
|
return d.flags;
|
|
2319
2256
|
case 4:
|
|
2320
|
-
return e =
|
|
2257
|
+
return e = Xb(), d.flags |= e, 0;
|
|
2321
2258
|
case 5:
|
|
2322
|
-
return e =
|
|
2259
|
+
return e = Xb(), H[e + 0 >> 1] = 2, 0;
|
|
2323
2260
|
case 6:
|
|
2324
2261
|
case 7:
|
|
2325
2262
|
return 0;
|
|
@@ -2327,28 +2264,18 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2327
2264
|
case 8:
|
|
2328
2265
|
return -28;
|
|
2329
2266
|
case 9:
|
|
2330
|
-
return
|
|
2267
|
+
return I[Ud() >> 2] = 28, -1;
|
|
2331
2268
|
default:
|
|
2332
2269
|
return -28;
|
|
2333
2270
|
}
|
|
2334
2271
|
} catch (f) {
|
|
2335
|
-
if ("undefined" == typeof
|
|
2272
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== f.name) {
|
|
2336
2273
|
throw f;
|
|
2337
2274
|
}
|
|
2338
|
-
return -f
|
|
2339
|
-
}
|
|
2340
|
-
}, __syscall_fstat64:function(a, b) {
|
|
2341
|
-
try {
|
|
2342
|
-
var c = Ib(a);
|
|
2343
|
-
return Yb(Ob, c.path, b);
|
|
2344
|
-
} catch (d) {
|
|
2345
|
-
if ("undefined" == typeof P || "ErrnoError" !== d.name) {
|
|
2346
|
-
throw d;
|
|
2347
|
-
}
|
|
2348
|
-
return -d.L;
|
|
2275
|
+
return -f.$;
|
|
2349
2276
|
}
|
|
2350
2277
|
}, __syscall_ioctl:function(a, b, c) {
|
|
2351
|
-
|
|
2278
|
+
Wb = c;
|
|
2352
2279
|
try {
|
|
2353
2280
|
var d = Ib(a);
|
|
2354
2281
|
switch(b) {
|
|
@@ -2358,15 +2285,15 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2358
2285
|
if (!d.s) {
|
|
2359
2286
|
return -59;
|
|
2360
2287
|
}
|
|
2361
|
-
if (d.s.
|
|
2288
|
+
if (d.s.U.Ub) {
|
|
2362
2289
|
b = [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,];
|
|
2363
|
-
var e =
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2290
|
+
var e = Xb();
|
|
2291
|
+
I[e >> 2] = 25856;
|
|
2292
|
+
I[e + 4 >> 2] = 5;
|
|
2293
|
+
I[e + 8 >> 2] = 191;
|
|
2294
|
+
I[e + 12 >> 2] = 35387;
|
|
2368
2295
|
for (var f = 0; 32 > f; f++) {
|
|
2369
|
-
|
|
2296
|
+
C[e + f + 17 >> 0] = b[f] || 0;
|
|
2370
2297
|
}
|
|
2371
2298
|
}
|
|
2372
2299
|
return 0;
|
|
@@ -2380,9 +2307,9 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2380
2307
|
if (!d.s) {
|
|
2381
2308
|
return -59;
|
|
2382
2309
|
}
|
|
2383
|
-
if (d.s.
|
|
2384
|
-
for (e =
|
|
2385
|
-
b.push(
|
|
2310
|
+
if (d.s.U.Vb) {
|
|
2311
|
+
for (e = Xb(), b = [], f = 0; 32 > f; f++) {
|
|
2312
|
+
b.push(C[e + f + 17 >> 0]);
|
|
2386
2313
|
}
|
|
2387
2314
|
}
|
|
2388
2315
|
return 0;
|
|
@@ -2390,21 +2317,21 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2390
2317
|
if (!d.s) {
|
|
2391
2318
|
return -59;
|
|
2392
2319
|
}
|
|
2393
|
-
e =
|
|
2394
|
-
return
|
|
2320
|
+
e = Xb();
|
|
2321
|
+
return I[e >> 2] = 0;
|
|
2395
2322
|
case 21520:
|
|
2396
2323
|
return d.s ? -28 : -59;
|
|
2397
2324
|
case 21531:
|
|
2398
|
-
e =
|
|
2399
|
-
if (!d.m.
|
|
2400
|
-
throw new
|
|
2325
|
+
e = Xb();
|
|
2326
|
+
if (!d.m.Tb) {
|
|
2327
|
+
throw new L(59);
|
|
2401
2328
|
}
|
|
2402
|
-
return d.m.
|
|
2329
|
+
return d.m.Tb(d, b, e);
|
|
2403
2330
|
case 21523:
|
|
2404
2331
|
if (!d.s) {
|
|
2405
2332
|
return -59;
|
|
2406
2333
|
}
|
|
2407
|
-
d.s.
|
|
2334
|
+
d.s.U.Wb && (f = [24, 80], e = Xb(), H[e >> 1] = f[0], H[e + 2 >> 1] = f[1]);
|
|
2408
2335
|
return 0;
|
|
2409
2336
|
case 21524:
|
|
2410
2337
|
return d.s ? 0 : -59;
|
|
@@ -2414,105 +2341,84 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2414
2341
|
return -28;
|
|
2415
2342
|
}
|
|
2416
2343
|
} catch (g) {
|
|
2417
|
-
if ("undefined" == typeof
|
|
2344
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== g.name) {
|
|
2418
2345
|
throw g;
|
|
2419
2346
|
}
|
|
2420
|
-
return -g
|
|
2421
|
-
}
|
|
2422
|
-
}, __syscall_lstat64:function(a, b) {
|
|
2423
|
-
try {
|
|
2424
|
-
return a = a ? L(C, a) : "", Yb(Pb, a, b);
|
|
2425
|
-
} catch (c) {
|
|
2426
|
-
if ("undefined" == typeof P || "ErrnoError" !== c.name) {
|
|
2427
|
-
throw c;
|
|
2428
|
-
}
|
|
2429
|
-
return -c.L;
|
|
2430
|
-
}
|
|
2431
|
-
}, __syscall_newfstatat:function(a, b, c, d) {
|
|
2432
|
-
try {
|
|
2433
|
-
b = b ? L(C, b) : "";
|
|
2434
|
-
var e = d & 256;
|
|
2435
|
-
b = Xb(a, b, d & 4096);
|
|
2436
|
-
return Yb(e ? Pb : Ob, b, c);
|
|
2437
|
-
} catch (f) {
|
|
2438
|
-
if ("undefined" == typeof P || "ErrnoError" !== f.name) {
|
|
2439
|
-
throw f;
|
|
2440
|
-
}
|
|
2441
|
-
return -f.L;
|
|
2347
|
+
return -g.$;
|
|
2442
2348
|
}
|
|
2443
2349
|
}, __syscall_openat:function(a, b, c, d) {
|
|
2444
|
-
|
|
2350
|
+
Wb = d;
|
|
2445
2351
|
try {
|
|
2446
|
-
b = b ?
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2352
|
+
b = b ? K(G, b) : "";
|
|
2353
|
+
var e = b;
|
|
2354
|
+
if ("/" === e.charAt(0)) {
|
|
2355
|
+
b = e;
|
|
2356
|
+
} else {
|
|
2357
|
+
var f = -100 === a ? "/" : Ib(a).path;
|
|
2358
|
+
if (0 == e.length) {
|
|
2359
|
+
throw new L(44);
|
|
2360
|
+
}
|
|
2361
|
+
b = Wa(f + "/" + e);
|
|
2453
2362
|
}
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
}
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
} catch (c) {
|
|
2460
|
-
if ("undefined" == typeof P || "ErrnoError" !== c.name) {
|
|
2461
|
-
throw c;
|
|
2363
|
+
var g = d ? Xb() : 0;
|
|
2364
|
+
return Pb(b, c, g).W;
|
|
2365
|
+
} catch (m) {
|
|
2366
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== m.name) {
|
|
2367
|
+
throw m;
|
|
2462
2368
|
}
|
|
2463
|
-
return -
|
|
2369
|
+
return -m.$;
|
|
2464
2370
|
}
|
|
2465
2371
|
}, _embind_create_inheriting_constructor:function(a, b, c) {
|
|
2466
|
-
a =
|
|
2467
|
-
b =
|
|
2468
|
-
c =
|
|
2469
|
-
var d = [].slice, e = b.i, f = e.
|
|
2470
|
-
a =
|
|
2471
|
-
e.A.
|
|
2372
|
+
a = R(a);
|
|
2373
|
+
b = oc(b, "wrapper");
|
|
2374
|
+
c = Q(c);
|
|
2375
|
+
var d = [].slice, e = b.i, f = e.N, g = e.A.N, m = e.A.constructor;
|
|
2376
|
+
a = Zb(a, function() {
|
|
2377
|
+
e.A.kb.forEach(function(l) {
|
|
2472
2378
|
if (this[l] === g[l]) {
|
|
2473
|
-
throw new
|
|
2379
|
+
throw new dc(`Pure virtual function ${l} must be implemented in JavaScript`);
|
|
2474
2380
|
}
|
|
2475
2381
|
}.bind(this));
|
|
2476
2382
|
Object.defineProperty(this, "__parent", {value:f});
|
|
2477
2383
|
this.__construct.apply(this, d.call(arguments));
|
|
2478
2384
|
});
|
|
2479
2385
|
f.__construct = function() {
|
|
2480
|
-
this === f &&
|
|
2386
|
+
this === f && P("Pass correct 'this' to __construct");
|
|
2481
2387
|
var l = m.implement.apply(void 0, [this].concat(d.call(arguments)));
|
|
2482
|
-
|
|
2388
|
+
pc(l);
|
|
2483
2389
|
var u = l.g;
|
|
2484
2390
|
l.notifyOnDestruction();
|
|
2485
2391
|
u.ja = !0;
|
|
2486
2392
|
Object.defineProperties(this, {g:{value:u}});
|
|
2487
|
-
|
|
2393
|
+
yc(this);
|
|
2488
2394
|
l = u.o;
|
|
2489
|
-
l =
|
|
2490
|
-
|
|
2395
|
+
l = jc(e, l);
|
|
2396
|
+
ic.hasOwnProperty(l) ? P(`Tried to register registered instance: ${l}`) : ic[l] = this;
|
|
2491
2397
|
};
|
|
2492
2398
|
f.__destruct = function() {
|
|
2493
|
-
this === f &&
|
|
2494
|
-
|
|
2399
|
+
this === f && P("Pass correct 'this' to __destruct");
|
|
2400
|
+
pc(this);
|
|
2495
2401
|
var l = this.g.o;
|
|
2496
|
-
l =
|
|
2497
|
-
|
|
2402
|
+
l = jc(e, l);
|
|
2403
|
+
ic.hasOwnProperty(l) ? delete ic[l] : P(`Tried to unregister unregistered instance: ${l}`);
|
|
2498
2404
|
};
|
|
2499
2405
|
a.prototype = Object.create(f);
|
|
2500
2406
|
for (var p in c) {
|
|
2501
2407
|
a.prototype[p] = c[p];
|
|
2502
2408
|
}
|
|
2503
|
-
return
|
|
2409
|
+
return bc(a);
|
|
2504
2410
|
}, _embind_finalize_value_object:function(a) {
|
|
2505
|
-
var b =
|
|
2506
|
-
delete
|
|
2507
|
-
var c = b.
|
|
2508
|
-
|
|
2411
|
+
var b = zc[a];
|
|
2412
|
+
delete zc[a];
|
|
2413
|
+
var c = b.Pa, d = b.V, e = b.Za, f = e.map(g => g.Pb).concat(e.map(g => g.dc));
|
|
2414
|
+
S([a], f, g => {
|
|
2509
2415
|
var m = {};
|
|
2510
2416
|
e.forEach((p, l) => {
|
|
2511
|
-
var u = g[l], v = p.
|
|
2512
|
-
m[p.
|
|
2513
|
-
var
|
|
2514
|
-
r(w,
|
|
2515
|
-
|
|
2417
|
+
var u = g[l], v = p.Nb, q = p.Ob, k = g[l + e.length], r = p.cc, w = p.ec;
|
|
2418
|
+
m[p.Jb] = {read:y => u.fromWireType(v(q, y)), write:(y, E) => {
|
|
2419
|
+
var z = [];
|
|
2420
|
+
r(w, y, k.toWireType(z, E));
|
|
2421
|
+
Ac(z);
|
|
2516
2422
|
}};
|
|
2517
2423
|
});
|
|
2518
2424
|
return [{name:b.name, fromWireType:function(p) {
|
|
@@ -2534,88 +2440,88 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2534
2440
|
}
|
|
2535
2441
|
null !== p && p.push(d, v);
|
|
2536
2442
|
return v;
|
|
2537
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2443
|
+
}, argPackAdvance:8, readValueFromPointer:Bc, K:d,}];
|
|
2538
2444
|
});
|
|
2539
2445
|
}, _embind_register_bigint:function() {
|
|
2540
2446
|
}, _embind_register_bool:function(a, b, c, d, e) {
|
|
2541
|
-
var f =
|
|
2542
|
-
b =
|
|
2543
|
-
|
|
2447
|
+
var f = Ec(c);
|
|
2448
|
+
b = R(b);
|
|
2449
|
+
T(a, {name:b, fromWireType:function(g) {
|
|
2544
2450
|
return !!g;
|
|
2545
2451
|
}, toWireType:function(g, m) {
|
|
2546
2452
|
return m ? d : e;
|
|
2547
2453
|
}, argPackAdvance:8, readValueFromPointer:function(g) {
|
|
2548
2454
|
if (1 === c) {
|
|
2549
|
-
var m =
|
|
2455
|
+
var m = C;
|
|
2550
2456
|
} else if (2 === c) {
|
|
2551
|
-
m =
|
|
2457
|
+
m = H;
|
|
2552
2458
|
} else if (4 === c) {
|
|
2553
|
-
m =
|
|
2459
|
+
m = I;
|
|
2554
2460
|
} else {
|
|
2555
2461
|
throw new TypeError("Unknown boolean type size: " + b);
|
|
2556
2462
|
}
|
|
2557
2463
|
return this.fromWireType(m[g >> f]);
|
|
2558
2464
|
}, K:null,});
|
|
2559
2465
|
}, _embind_register_class:function(a, b, c, d, e, f, g, m, p, l, u, v, q) {
|
|
2560
|
-
u =
|
|
2561
|
-
f =
|
|
2562
|
-
m && (m =
|
|
2563
|
-
l && (l =
|
|
2564
|
-
q =
|
|
2565
|
-
var k =
|
|
2566
|
-
|
|
2567
|
-
|
|
2466
|
+
u = R(u);
|
|
2467
|
+
f = U(e, f);
|
|
2468
|
+
m && (m = U(g, m));
|
|
2469
|
+
l && (l = U(p, l));
|
|
2470
|
+
q = U(v, q);
|
|
2471
|
+
var k = Yb(u);
|
|
2472
|
+
Jc(k, function() {
|
|
2473
|
+
Wc(`Cannot construct ${u} due to unbound types`, [d]);
|
|
2568
2474
|
});
|
|
2569
|
-
|
|
2475
|
+
S([a, b, c], d ? [d] : [], function(r) {
|
|
2570
2476
|
r = r[0];
|
|
2571
2477
|
if (d) {
|
|
2572
2478
|
var w = r.i;
|
|
2573
|
-
var
|
|
2479
|
+
var y = w.N;
|
|
2574
2480
|
} else {
|
|
2575
|
-
|
|
2481
|
+
y = Hc.prototype;
|
|
2576
2482
|
}
|
|
2577
|
-
r =
|
|
2578
|
-
if (Object.getPrototypeOf(this) !==
|
|
2579
|
-
throw new
|
|
2483
|
+
r = Zb(k, function() {
|
|
2484
|
+
if (Object.getPrototypeOf(this) !== E) {
|
|
2485
|
+
throw new ac("Use 'new' to construct " + u);
|
|
2580
2486
|
}
|
|
2581
|
-
if (void 0 ===
|
|
2582
|
-
throw new
|
|
2487
|
+
if (void 0 === z.Z) {
|
|
2488
|
+
throw new ac(u + " has no accessible constructor");
|
|
2583
2489
|
}
|
|
2584
|
-
var
|
|
2585
|
-
if (void 0 ===
|
|
2586
|
-
throw new
|
|
2490
|
+
var D = z.Z[arguments.length];
|
|
2491
|
+
if (void 0 === D) {
|
|
2492
|
+
throw new ac(`Tried to invoke ctor of ${u} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(z.Z).toString()}) parameters instead!`);
|
|
2587
2493
|
}
|
|
2588
|
-
return
|
|
2494
|
+
return D.apply(this, arguments);
|
|
2589
2495
|
});
|
|
2590
|
-
var
|
|
2591
|
-
r.prototype =
|
|
2592
|
-
var
|
|
2593
|
-
|
|
2594
|
-
w = new
|
|
2595
|
-
|
|
2596
|
-
var
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
return [w,
|
|
2496
|
+
var E = Object.create(y, {constructor:{value:r},});
|
|
2497
|
+
r.prototype = E;
|
|
2498
|
+
var z = new Kc(u, r, E, q, w, f, m, l);
|
|
2499
|
+
z.A && (void 0 === z.A.qa && (z.A.qa = []), z.A.qa.push(z));
|
|
2500
|
+
w = new Qc(u, z, !0, !1);
|
|
2501
|
+
y = new Qc(u + "*", z, !1, !1);
|
|
2502
|
+
var F = new Qc(u + " const*", z, !1, !0);
|
|
2503
|
+
tc[a] = {pointerType:y, Db:F};
|
|
2504
|
+
Rc(k, r);
|
|
2505
|
+
return [w, y, F];
|
|
2600
2506
|
});
|
|
2601
2507
|
}, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
|
|
2602
|
-
var m =
|
|
2603
|
-
b =
|
|
2604
|
-
f =
|
|
2605
|
-
|
|
2508
|
+
var m = Yc(c, d);
|
|
2509
|
+
b = R(b);
|
|
2510
|
+
f = U(e, f);
|
|
2511
|
+
S([], [a], function(p) {
|
|
2606
2512
|
function l() {
|
|
2607
|
-
|
|
2513
|
+
Wc(`Cannot call ${u} due to unbound types`, m);
|
|
2608
2514
|
}
|
|
2609
2515
|
p = p[0];
|
|
2610
2516
|
var u = `${p.name}.${b}`;
|
|
2611
2517
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2612
2518
|
var v = p.i.constructor;
|
|
2613
|
-
void 0 === v[b] ? (l.fa = c - 1, v[b] = l) : (
|
|
2614
|
-
|
|
2615
|
-
q =
|
|
2519
|
+
void 0 === v[b] ? (l.fa = c - 1, v[b] = l) : (Ic(v, b, u), v[b].B[c - 1] = l);
|
|
2520
|
+
S([], m, function(q) {
|
|
2521
|
+
q = Xc(u, [q[0], null].concat(q.slice(1)), null, f, g);
|
|
2616
2522
|
void 0 === v[b].B ? (q.fa = c - 1, v[b] = q) : v[b].B[c - 1] = q;
|
|
2617
|
-
if (p.i.
|
|
2618
|
-
for (const k of p.i.
|
|
2523
|
+
if (p.i.qa) {
|
|
2524
|
+
for (const k of p.i.qa) {
|
|
2619
2525
|
k.constructor.hasOwnProperty(b) || (k.constructor[b] = q);
|
|
2620
2526
|
}
|
|
2621
2527
|
}
|
|
@@ -2624,28 +2530,28 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2624
2530
|
return [];
|
|
2625
2531
|
});
|
|
2626
2532
|
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g, m) {
|
|
2627
|
-
b =
|
|
2628
|
-
f =
|
|
2629
|
-
|
|
2533
|
+
b = R(b);
|
|
2534
|
+
f = U(e, f);
|
|
2535
|
+
S([], [a], function(p) {
|
|
2630
2536
|
p = p[0];
|
|
2631
2537
|
var l = `${p.name}.${b}`, u = {get() {
|
|
2632
|
-
|
|
2538
|
+
Wc(`Cannot access ${l} due to unbound types`, [c]);
|
|
2633
2539
|
}, enumerable:!0, configurable:!0};
|
|
2634
2540
|
u.set = m ? () => {
|
|
2635
|
-
|
|
2541
|
+
Wc(`Cannot access ${l} due to unbound types`, [c]);
|
|
2636
2542
|
} : () => {
|
|
2637
|
-
|
|
2543
|
+
P(`${l} is a read-only property`);
|
|
2638
2544
|
};
|
|
2639
2545
|
Object.defineProperty(p.i.constructor, b, u);
|
|
2640
|
-
|
|
2546
|
+
S([], [c], function(v) {
|
|
2641
2547
|
v = v[0];
|
|
2642
2548
|
var q = {get() {
|
|
2643
2549
|
return v.fromWireType(f(d));
|
|
2644
2550
|
}, enumerable:!0};
|
|
2645
|
-
m && (m =
|
|
2551
|
+
m && (m = U(g, m), q.set = k => {
|
|
2646
2552
|
var r = [];
|
|
2647
2553
|
m(d, v.toWireType(r, k));
|
|
2648
|
-
|
|
2554
|
+
Ac(r);
|
|
2649
2555
|
});
|
|
2650
2556
|
Object.defineProperty(p.i.constructor, b, q);
|
|
2651
2557
|
return [];
|
|
@@ -2653,131 +2559,131 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2653
2559
|
return [];
|
|
2654
2560
|
});
|
|
2655
2561
|
}, _embind_register_class_constructor:function(a, b, c, d, e, f) {
|
|
2656
|
-
var g =
|
|
2657
|
-
e =
|
|
2658
|
-
|
|
2562
|
+
var g = Yc(b, c);
|
|
2563
|
+
e = U(d, e);
|
|
2564
|
+
S([], [a], function(m) {
|
|
2659
2565
|
m = m[0];
|
|
2660
2566
|
var p = `constructor ${m.name}`;
|
|
2661
|
-
void 0 === m.i
|
|
2662
|
-
if (void 0 !== m.i
|
|
2663
|
-
throw new
|
|
2567
|
+
void 0 === m.i.Z && (m.i.Z = []);
|
|
2568
|
+
if (void 0 !== m.i.Z[b - 1]) {
|
|
2569
|
+
throw new ac(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${m.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
2664
2570
|
}
|
|
2665
|
-
m.i
|
|
2666
|
-
|
|
2571
|
+
m.i.Z[b - 1] = () => {
|
|
2572
|
+
Wc(`Cannot construct ${m.name} due to unbound types`, g);
|
|
2667
2573
|
};
|
|
2668
|
-
|
|
2574
|
+
S([], g, function(l) {
|
|
2669
2575
|
l.splice(1, 0, null);
|
|
2670
|
-
m.i
|
|
2576
|
+
m.i.Z[b - 1] = Xc(p, l, null, e, f);
|
|
2671
2577
|
return [];
|
|
2672
2578
|
});
|
|
2673
2579
|
return [];
|
|
2674
2580
|
});
|
|
2675
2581
|
}, _embind_register_class_function:function(a, b, c, d, e, f, g, m) {
|
|
2676
|
-
var p =
|
|
2677
|
-
b =
|
|
2678
|
-
f =
|
|
2679
|
-
|
|
2582
|
+
var p = Yc(c, d);
|
|
2583
|
+
b = R(b);
|
|
2584
|
+
f = U(e, f);
|
|
2585
|
+
S([], [a], function(l) {
|
|
2680
2586
|
function u() {
|
|
2681
|
-
|
|
2587
|
+
Wc(`Cannot call ${v} due to unbound types`, p);
|
|
2682
2588
|
}
|
|
2683
2589
|
l = l[0];
|
|
2684
2590
|
var v = `${l.name}.${b}`;
|
|
2685
2591
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2686
|
-
m && l.i.
|
|
2687
|
-
var q = l.i.
|
|
2688
|
-
void 0 === k || void 0 === k.B && k.className !== l.name && k.fa === c - 2 ? (u.fa = c - 2, u.className = l.name, q[b] = u) : (
|
|
2689
|
-
|
|
2690
|
-
r =
|
|
2592
|
+
m && l.i.kb.push(b);
|
|
2593
|
+
var q = l.i.N, k = q[b];
|
|
2594
|
+
void 0 === k || void 0 === k.B && k.className !== l.name && k.fa === c - 2 ? (u.fa = c - 2, u.className = l.name, q[b] = u) : (Ic(q, b, v), q[b].B[c - 2] = u);
|
|
2595
|
+
S([], p, function(r) {
|
|
2596
|
+
r = Xc(v, r, l, f, g);
|
|
2691
2597
|
void 0 === q[b].B ? (r.fa = c - 2, q[b] = r) : q[b].B[c - 2] = r;
|
|
2692
2598
|
return [];
|
|
2693
2599
|
});
|
|
2694
2600
|
return [];
|
|
2695
2601
|
});
|
|
2696
2602
|
}, _embind_register_class_property:function(a, b, c, d, e, f, g, m, p, l) {
|
|
2697
|
-
b =
|
|
2698
|
-
e =
|
|
2699
|
-
|
|
2603
|
+
b = R(b);
|
|
2604
|
+
e = U(d, e);
|
|
2605
|
+
S([], [a], function(u) {
|
|
2700
2606
|
u = u[0];
|
|
2701
2607
|
var v = `${u.name}.${b}`, q = {get() {
|
|
2702
|
-
|
|
2608
|
+
Wc(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2703
2609
|
}, enumerable:!0, configurable:!0};
|
|
2704
2610
|
q.set = p ? () => {
|
|
2705
|
-
|
|
2611
|
+
Wc(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2706
2612
|
} : () => {
|
|
2707
|
-
|
|
2613
|
+
P(v + " is a read-only property");
|
|
2708
2614
|
};
|
|
2709
|
-
Object.defineProperty(u.i.
|
|
2710
|
-
|
|
2615
|
+
Object.defineProperty(u.i.N, b, q);
|
|
2616
|
+
S([], p ? [c, g] : [c], function(k) {
|
|
2711
2617
|
var r = k[0], w = {get() {
|
|
2712
|
-
var
|
|
2713
|
-
return r.fromWireType(e(f,
|
|
2618
|
+
var E = Zc(this, u, v + " getter");
|
|
2619
|
+
return r.fromWireType(e(f, E));
|
|
2714
2620
|
}, enumerable:!0};
|
|
2715
2621
|
if (p) {
|
|
2716
|
-
p =
|
|
2717
|
-
var
|
|
2718
|
-
w.set = function(
|
|
2719
|
-
var
|
|
2720
|
-
p(l,
|
|
2721
|
-
|
|
2622
|
+
p = U(m, p);
|
|
2623
|
+
var y = k[1];
|
|
2624
|
+
w.set = function(E) {
|
|
2625
|
+
var z = Zc(this, u, v + " setter"), F = [];
|
|
2626
|
+
p(l, z, y.toWireType(F, E));
|
|
2627
|
+
Ac(F);
|
|
2722
2628
|
};
|
|
2723
2629
|
}
|
|
2724
|
-
Object.defineProperty(u.i.
|
|
2630
|
+
Object.defineProperty(u.i.N, b, w);
|
|
2725
2631
|
return [];
|
|
2726
2632
|
});
|
|
2727
2633
|
return [];
|
|
2728
2634
|
});
|
|
2729
2635
|
}, _embind_register_emval:function(a, b) {
|
|
2730
|
-
b =
|
|
2731
|
-
|
|
2732
|
-
var d =
|
|
2733
|
-
|
|
2636
|
+
b = R(b);
|
|
2637
|
+
T(a, {name:b, fromWireType:function(c) {
|
|
2638
|
+
var d = Q(c);
|
|
2639
|
+
$c(c);
|
|
2734
2640
|
return d;
|
|
2735
2641
|
}, toWireType:function(c, d) {
|
|
2736
|
-
return
|
|
2737
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2642
|
+
return bc(d);
|
|
2643
|
+
}, argPackAdvance:8, readValueFromPointer:Bc, K:null,});
|
|
2738
2644
|
}, _embind_register_enum:function(a, b, c, d) {
|
|
2739
2645
|
function e() {
|
|
2740
2646
|
}
|
|
2741
|
-
c =
|
|
2742
|
-
b =
|
|
2647
|
+
c = Ec(c);
|
|
2648
|
+
b = R(b);
|
|
2743
2649
|
e.values = {};
|
|
2744
|
-
|
|
2650
|
+
T(a, {name:b, constructor:e, fromWireType:function(f) {
|
|
2745
2651
|
return this.constructor.values[f];
|
|
2746
2652
|
}, toWireType:function(f, g) {
|
|
2747
2653
|
return g.value;
|
|
2748
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2749
|
-
|
|
2654
|
+
}, argPackAdvance:8, readValueFromPointer:ad(b, c, d), K:null,});
|
|
2655
|
+
Jc(b, e);
|
|
2750
2656
|
}, _embind_register_enum_value:function(a, b, c) {
|
|
2751
|
-
var d =
|
|
2752
|
-
b =
|
|
2657
|
+
var d = oc(a, "enum");
|
|
2658
|
+
b = R(b);
|
|
2753
2659
|
a = d.constructor;
|
|
2754
|
-
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:
|
|
2660
|
+
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:Zb(`${d.name}_${b}`, function() {
|
|
2755
2661
|
})},});
|
|
2756
2662
|
a.values[c] = d;
|
|
2757
2663
|
a[b] = d;
|
|
2758
2664
|
}, _embind_register_float:function(a, b, c) {
|
|
2759
|
-
c =
|
|
2760
|
-
b =
|
|
2761
|
-
|
|
2665
|
+
c = Ec(c);
|
|
2666
|
+
b = R(b);
|
|
2667
|
+
T(a, {name:b, fromWireType:function(d) {
|
|
2762
2668
|
return d;
|
|
2763
2669
|
}, toWireType:function(d, e) {
|
|
2764
2670
|
return e;
|
|
2765
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2671
|
+
}, argPackAdvance:8, readValueFromPointer:bd(b, c), K:null,});
|
|
2766
2672
|
}, _embind_register_function:function(a, b, c, d, e, f) {
|
|
2767
|
-
var g =
|
|
2768
|
-
a =
|
|
2769
|
-
e =
|
|
2770
|
-
|
|
2771
|
-
|
|
2673
|
+
var g = Yc(b, c);
|
|
2674
|
+
a = R(a);
|
|
2675
|
+
e = U(d, e);
|
|
2676
|
+
Jc(a, function() {
|
|
2677
|
+
Wc(`Cannot call ${a} due to unbound types`, g);
|
|
2772
2678
|
}, b - 1);
|
|
2773
|
-
|
|
2774
|
-
|
|
2679
|
+
S([], g, function(m) {
|
|
2680
|
+
Rc(a, Xc(a, [m[0], null].concat(m.slice(1)), null, e, f), b - 1);
|
|
2775
2681
|
return [];
|
|
2776
2682
|
});
|
|
2777
2683
|
}, _embind_register_integer:function(a, b, c, d, e) {
|
|
2778
|
-
b =
|
|
2684
|
+
b = R(b);
|
|
2779
2685
|
-1 === e && (e = 4294967295);
|
|
2780
|
-
e =
|
|
2686
|
+
e = Ec(c);
|
|
2781
2687
|
var f = m => m;
|
|
2782
2688
|
if (0 === d) {
|
|
2783
2689
|
var g = 32 - 8 * c;
|
|
@@ -2788,26 +2694,26 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2788
2694
|
} : function(m, p) {
|
|
2789
2695
|
return p;
|
|
2790
2696
|
};
|
|
2791
|
-
|
|
2697
|
+
T(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:cd(b, e, 0 !== d), K:null,});
|
|
2792
2698
|
}, _embind_register_memory_view:function(a, b, c) {
|
|
2793
2699
|
function d(f) {
|
|
2794
2700
|
f >>= 2;
|
|
2795
|
-
var g =
|
|
2701
|
+
var g = J;
|
|
2796
2702
|
return new e(g.buffer, g[f + 1], g[f]);
|
|
2797
2703
|
}
|
|
2798
2704
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2799
|
-
c =
|
|
2800
|
-
|
|
2705
|
+
c = R(c);
|
|
2706
|
+
T(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Rb:!0,});
|
|
2801
2707
|
}, _embind_register_std_string:function(a, b) {
|
|
2802
|
-
b =
|
|
2708
|
+
b = R(b);
|
|
2803
2709
|
var c = "std::string" === b;
|
|
2804
|
-
|
|
2805
|
-
var e =
|
|
2710
|
+
T(a, {name:b, fromWireType:function(d) {
|
|
2711
|
+
var e = J[d >> 2], f = d + 4;
|
|
2806
2712
|
if (c) {
|
|
2807
2713
|
for (var g = f, m = 0; m <= e; ++m) {
|
|
2808
2714
|
var p = f + m;
|
|
2809
|
-
if (m == e || 0 ==
|
|
2810
|
-
g = g ?
|
|
2715
|
+
if (m == e || 0 == G[p]) {
|
|
2716
|
+
g = g ? K(G, g, p - g) : "";
|
|
2811
2717
|
if (void 0 === l) {
|
|
2812
2718
|
var l = g;
|
|
2813
2719
|
} else {
|
|
@@ -2819,162 +2725,162 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2819
2725
|
} else {
|
|
2820
2726
|
l = Array(e);
|
|
2821
2727
|
for (m = 0; m < e; ++m) {
|
|
2822
|
-
l[m] = String.fromCharCode(
|
|
2728
|
+
l[m] = String.fromCharCode(G[f + m]);
|
|
2823
2729
|
}
|
|
2824
2730
|
l = l.join("");
|
|
2825
2731
|
}
|
|
2826
|
-
|
|
2732
|
+
nc(d);
|
|
2827
2733
|
return l;
|
|
2828
2734
|
}, toWireType:function(d, e) {
|
|
2829
2735
|
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
2830
2736
|
var f = "string" == typeof e;
|
|
2831
|
-
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array ||
|
|
2737
|
+
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || P("Cannot pass non-string to std::string");
|
|
2832
2738
|
var g = c && f ? db(e) : e.length;
|
|
2833
|
-
var m =
|
|
2834
|
-
|
|
2739
|
+
var m = Kd(4 + g + 1), p = m + 4;
|
|
2740
|
+
J[m >> 2] = g;
|
|
2835
2741
|
if (c && f) {
|
|
2836
|
-
eb(e,
|
|
2742
|
+
eb(e, G, p, g + 1);
|
|
2837
2743
|
} else {
|
|
2838
2744
|
if (f) {
|
|
2839
2745
|
for (f = 0; f < g; ++f) {
|
|
2840
2746
|
var l = e.charCodeAt(f);
|
|
2841
|
-
255 < l && (
|
|
2842
|
-
|
|
2747
|
+
255 < l && (nc(p), P("String has UTF-16 code units that do not fit in 8 bits"));
|
|
2748
|
+
G[p + f] = l;
|
|
2843
2749
|
}
|
|
2844
2750
|
} else {
|
|
2845
2751
|
for (f = 0; f < g; ++f) {
|
|
2846
|
-
|
|
2752
|
+
G[p + f] = e[f];
|
|
2847
2753
|
}
|
|
2848
2754
|
}
|
|
2849
2755
|
}
|
|
2850
|
-
null !== d && d.push(
|
|
2756
|
+
null !== d && d.push(nc, m);
|
|
2851
2757
|
return m;
|
|
2852
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2853
|
-
|
|
2758
|
+
}, argPackAdvance:8, readValueFromPointer:Bc, K:function(d) {
|
|
2759
|
+
nc(d);
|
|
2854
2760
|
},});
|
|
2855
2761
|
}, _embind_register_std_wstring:function(a, b, c) {
|
|
2856
|
-
c =
|
|
2762
|
+
c = R(c);
|
|
2857
2763
|
if (2 === b) {
|
|
2858
|
-
var d =
|
|
2859
|
-
var e =
|
|
2860
|
-
var f =
|
|
2861
|
-
var g = () =>
|
|
2764
|
+
var d = ed;
|
|
2765
|
+
var e = fd;
|
|
2766
|
+
var f = gd;
|
|
2767
|
+
var g = () => va;
|
|
2862
2768
|
var m = 1;
|
|
2863
2769
|
} else {
|
|
2864
|
-
4 === b && (d =
|
|
2770
|
+
4 === b && (d = hd, e = jd, f = kd, g = () => J, m = 2);
|
|
2865
2771
|
}
|
|
2866
|
-
|
|
2867
|
-
for (var l =
|
|
2772
|
+
T(a, {name:c, fromWireType:function(p) {
|
|
2773
|
+
for (var l = J[p >> 2], u = g(), v, q = p + 4, k = 0; k <= l; ++k) {
|
|
2868
2774
|
var r = p + 4 + k * b;
|
|
2869
2775
|
if (k == l || 0 == u[r >> m]) {
|
|
2870
2776
|
q = d(q, r - q), void 0 === v ? v = q : (v += String.fromCharCode(0), v += q), q = r + b;
|
|
2871
2777
|
}
|
|
2872
2778
|
}
|
|
2873
|
-
|
|
2779
|
+
nc(p);
|
|
2874
2780
|
return v;
|
|
2875
2781
|
}, toWireType:function(p, l) {
|
|
2876
|
-
"string" != typeof l &&
|
|
2877
|
-
var u = f(l), v =
|
|
2878
|
-
|
|
2782
|
+
"string" != typeof l && P(`Cannot pass non-string to C++ string type ${c}`);
|
|
2783
|
+
var u = f(l), v = Kd(4 + u + b);
|
|
2784
|
+
J[v >> 2] = u >> m;
|
|
2879
2785
|
e(l, v + 4, u + b);
|
|
2880
|
-
null !== p && p.push(
|
|
2786
|
+
null !== p && p.push(nc, v);
|
|
2881
2787
|
return v;
|
|
2882
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2883
|
-
|
|
2788
|
+
}, argPackAdvance:8, readValueFromPointer:Bc, K:function(p) {
|
|
2789
|
+
nc(p);
|
|
2884
2790
|
},});
|
|
2885
2791
|
}, _embind_register_value_object:function(a, b, c, d, e, f) {
|
|
2886
|
-
|
|
2792
|
+
zc[a] = {name:R(b), Pa:U(c, d), V:U(e, f), Za:[],};
|
|
2887
2793
|
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, m, p, l) {
|
|
2888
|
-
|
|
2794
|
+
zc[a].Za.push({Jb:R(b), Pb:c, Nb:U(d, e), Ob:f, dc:g, cc:U(m, p), ec:l,});
|
|
2889
2795
|
}, _embind_register_void:function(a, b) {
|
|
2890
|
-
b =
|
|
2891
|
-
|
|
2796
|
+
b = R(b);
|
|
2797
|
+
T(a, {Xb:!0, name:b, argPackAdvance:0, fromWireType:function() {
|
|
2892
2798
|
}, toWireType:function() {
|
|
2893
2799
|
},});
|
|
2894
2800
|
}, _emscripten_get_now_is_monotonic:() => !0, _emval_as:function(a, b, c) {
|
|
2895
|
-
a =
|
|
2896
|
-
b =
|
|
2897
|
-
var d = [], e =
|
|
2898
|
-
|
|
2801
|
+
a = Q(a);
|
|
2802
|
+
b = oc(b, "emval::as");
|
|
2803
|
+
var d = [], e = bc(d);
|
|
2804
|
+
J[c >> 2] = e;
|
|
2899
2805
|
return b.toWireType(d, a);
|
|
2900
2806
|
}, _emval_call_method:function(a, b, c, d, e) {
|
|
2901
|
-
a =
|
|
2902
|
-
b =
|
|
2903
|
-
c =
|
|
2807
|
+
a = nd[a];
|
|
2808
|
+
b = Q(b);
|
|
2809
|
+
c = md(c);
|
|
2904
2810
|
var f = [];
|
|
2905
|
-
|
|
2811
|
+
J[d >> 2] = bc(f);
|
|
2906
2812
|
return a(b, c, f, e);
|
|
2907
2813
|
}, _emval_call_void_method:function(a, b, c, d) {
|
|
2908
|
-
a =
|
|
2909
|
-
b =
|
|
2910
|
-
c =
|
|
2814
|
+
a = nd[a];
|
|
2815
|
+
b = Q(b);
|
|
2816
|
+
c = md(c);
|
|
2911
2817
|
a(b, c, null, d);
|
|
2912
|
-
}, _emval_decref
|
|
2913
|
-
var c =
|
|
2818
|
+
}, _emval_decref:$c, _emval_get_method_caller:function(a, b) {
|
|
2819
|
+
var c = pd(a, b), d = c[0];
|
|
2914
2820
|
b = d.name + "_$" + c.slice(1).map(function(g) {
|
|
2915
2821
|
return g.name;
|
|
2916
2822
|
}).join("_") + "$";
|
|
2917
|
-
var e =
|
|
2823
|
+
var e = qd[b];
|
|
2918
2824
|
if (void 0 !== e) {
|
|
2919
2825
|
return e;
|
|
2920
2826
|
}
|
|
2921
2827
|
var f = Array(a - 1);
|
|
2922
|
-
e =
|
|
2828
|
+
e = od((g, m, p, l) => {
|
|
2923
2829
|
for (var u = 0, v = 0; v < a - 1; ++v) {
|
|
2924
2830
|
f[v] = c[v + 1].readValueFromPointer(l + u), u += c[v + 1].argPackAdvance;
|
|
2925
2831
|
}
|
|
2926
2832
|
g = g[m].apply(g, f);
|
|
2927
2833
|
for (v = 0; v < a - 1; ++v) {
|
|
2928
|
-
c[v + 1].
|
|
2834
|
+
c[v + 1].Fb && c[v + 1].Fb(f[v]);
|
|
2929
2835
|
}
|
|
2930
|
-
if (!d.
|
|
2836
|
+
if (!d.Xb) {
|
|
2931
2837
|
return d.toWireType(p, g);
|
|
2932
2838
|
}
|
|
2933
2839
|
});
|
|
2934
|
-
return
|
|
2840
|
+
return qd[b] = e;
|
|
2935
2841
|
}, _emval_get_property:function(a, b) {
|
|
2936
|
-
a =
|
|
2937
|
-
b =
|
|
2938
|
-
return
|
|
2842
|
+
a = Q(a);
|
|
2843
|
+
b = Q(b);
|
|
2844
|
+
return bc(a[b]);
|
|
2939
2845
|
}, _emval_incref:function(a) {
|
|
2940
|
-
4 < a && (
|
|
2846
|
+
4 < a && (O.get(a).ob += 1);
|
|
2941
2847
|
}, _emval_new_cstring:function(a) {
|
|
2942
|
-
return
|
|
2848
|
+
return bc(md(a));
|
|
2943
2849
|
}, _emval_new_object:function() {
|
|
2944
|
-
return
|
|
2850
|
+
return bc({});
|
|
2945
2851
|
}, _emval_run_destructors:function(a) {
|
|
2946
|
-
var b =
|
|
2947
|
-
|
|
2948
|
-
|
|
2852
|
+
var b = Q(a);
|
|
2853
|
+
Ac(b);
|
|
2854
|
+
$c(a);
|
|
2949
2855
|
}, _emval_set_property:function(a, b, c) {
|
|
2950
|
-
a =
|
|
2951
|
-
b =
|
|
2952
|
-
c =
|
|
2856
|
+
a = Q(a);
|
|
2857
|
+
b = Q(b);
|
|
2858
|
+
c = Q(c);
|
|
2953
2859
|
a[b] = c;
|
|
2954
2860
|
}, _emval_take_value:function(a, b) {
|
|
2955
|
-
a =
|
|
2861
|
+
a = oc(a, "_emval_take_value");
|
|
2956
2862
|
a = a.readValueFromPointer(b);
|
|
2957
|
-
return
|
|
2863
|
+
return bc(a);
|
|
2958
2864
|
}, abort:() => {
|
|
2959
|
-
|
|
2865
|
+
sa("");
|
|
2960
2866
|
}, beginPixelLocalStorageWEBGL:function(a, b, c) {
|
|
2961
2867
|
(a = t[a].H.ia) && a.beginPixelLocalStorageWEBGL(n.HEAPU32.subarray(c, c + b));
|
|
2962
2868
|
}, begin_texture_image_decode:function(a, b, c) {
|
|
2963
|
-
a =
|
|
2869
|
+
a = W[a];
|
|
2964
2870
|
a.image = new Image();
|
|
2965
2871
|
a.image.src = URL.createObjectURL(new Blob([n.HEAP8.subarray(b, b + c)]), {type:"image/png"});
|
|
2966
2872
|
a.complete = !1;
|
|
2967
2873
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
2968
|
-
|
|
2874
|
+
rd.length = 0;
|
|
2969
2875
|
var d;
|
|
2970
|
-
for (c >>= 2; d =
|
|
2971
|
-
c += 105 != d & c,
|
|
2876
|
+
for (c >>= 2; d = G[b++];) {
|
|
2877
|
+
c += 105 != d & c, rd.push(105 == d ? I[c] : xa[c++ >> 1]), ++c;
|
|
2972
2878
|
}
|
|
2973
|
-
return Ta[a].apply(null,
|
|
2879
|
+
return Ta[a].apply(null, rd);
|
|
2974
2880
|
}, emscripten_date_now:function() {
|
|
2975
2881
|
return Date.now();
|
|
2976
|
-
}, emscripten_get_now:() => performance.now(), emscripten_memcpy_big:(a, b, c) =>
|
|
2977
|
-
var b =
|
|
2882
|
+
}, emscripten_get_now:() => performance.now(), emscripten_memcpy_big:(a, b, c) => G.copyWithin(a, b, b + c), emscripten_resize_heap:a => {
|
|
2883
|
+
var b = G.length;
|
|
2978
2884
|
a >>>= 0;
|
|
2979
2885
|
if (2147483648 < a) {
|
|
2980
2886
|
return !1;
|
|
@@ -2985,10 +2891,10 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2985
2891
|
var e = Math;
|
|
2986
2892
|
d = Math.max(a, d);
|
|
2987
2893
|
a: {
|
|
2988
|
-
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) -
|
|
2894
|
+
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - ta.buffer.byteLength + 65535 >>> 16;
|
|
2989
2895
|
try {
|
|
2990
|
-
|
|
2991
|
-
|
|
2896
|
+
ta.grow(e);
|
|
2897
|
+
ya();
|
|
2992
2898
|
var f = 1;
|
|
2993
2899
|
break a;
|
|
2994
2900
|
} catch (g) {
|
|
@@ -3002,20 +2908,20 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3002
2908
|
return !1;
|
|
3003
2909
|
}, emscripten_webgl_enable_extension:function(a, b) {
|
|
3004
2910
|
a = t[a];
|
|
3005
|
-
b = b ?
|
|
2911
|
+
b = b ? K(G, b) : "";
|
|
3006
2912
|
b.startsWith("GL_") && (b = b.substr(3));
|
|
3007
|
-
"WEBGL_draw_instanced_base_vertex_base_instance" == b &&
|
|
3008
|
-
"WEBGL_multi_draw_instanced_base_vertex_base_instance" == b &&
|
|
3009
|
-
"WEBGL_multi_draw" == b &&
|
|
2913
|
+
"WEBGL_draw_instanced_base_vertex_base_instance" == b && sd(Z);
|
|
2914
|
+
"WEBGL_multi_draw_instanced_base_vertex_base_instance" == b && td(Z);
|
|
2915
|
+
"WEBGL_multi_draw" == b && Dd(Z);
|
|
3010
2916
|
return !!a.H.getExtension(b);
|
|
3011
2917
|
}, emscripten_webgl_get_current_context:function() {
|
|
3012
|
-
return
|
|
2918
|
+
return Cd ? Cd.handle : 0;
|
|
3013
2919
|
}, emscripten_webgl_make_context_current:function(a) {
|
|
3014
|
-
return
|
|
2920
|
+
return ja(a) ? 0 : -5;
|
|
3015
2921
|
}, enable_WEBGL_provoking_vertex:function(a) {
|
|
3016
2922
|
a = t[a].H;
|
|
3017
|
-
a.
|
|
3018
|
-
return !!a.
|
|
2923
|
+
a.lb = a.getExtension("WEBGL_provoking_vertex");
|
|
2924
|
+
return !!a.lb;
|
|
3019
2925
|
}, enable_WEBGL_shader_pixel_local_storage_coherent:function(a) {
|
|
3020
2926
|
a = t[a].H;
|
|
3021
2927
|
a.ia = a.getExtension("WEBGL_shader_pixel_local_storage");
|
|
@@ -3024,46 +2930,46 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3024
2930
|
(a = t[a].H.ia) && a.endPixelLocalStorageWEBGL(n.HEAPU32.subarray(c, c + b));
|
|
3025
2931
|
}, environ_get:(a, b) => {
|
|
3026
2932
|
var c = 0;
|
|
3027
|
-
|
|
2933
|
+
Gd().forEach(function(d, e) {
|
|
3028
2934
|
var f = b + c;
|
|
3029
|
-
e =
|
|
2935
|
+
e = J[a + 4 * e >> 2] = f;
|
|
3030
2936
|
for (f = 0; f < d.length; ++f) {
|
|
3031
|
-
|
|
2937
|
+
C[e++ >> 0] = d.charCodeAt(f);
|
|
3032
2938
|
}
|
|
3033
|
-
|
|
2939
|
+
C[e >> 0] = 0;
|
|
3034
2940
|
c += d.length + 1;
|
|
3035
2941
|
});
|
|
3036
2942
|
return 0;
|
|
3037
2943
|
}, environ_sizes_get:(a, b) => {
|
|
3038
|
-
var c =
|
|
3039
|
-
|
|
2944
|
+
var c = Gd();
|
|
2945
|
+
J[a >> 2] = c.length;
|
|
3040
2946
|
var d = 0;
|
|
3041
2947
|
c.forEach(function(e) {
|
|
3042
2948
|
d += e.length + 1;
|
|
3043
2949
|
});
|
|
3044
|
-
|
|
2950
|
+
J[b >> 2] = d;
|
|
3045
2951
|
return 0;
|
|
3046
2952
|
}, fd_close:function(a) {
|
|
3047
2953
|
try {
|
|
3048
2954
|
var b = Ib(a);
|
|
3049
|
-
if (null === b.
|
|
3050
|
-
throw new
|
|
2955
|
+
if (null === b.W) {
|
|
2956
|
+
throw new L(8);
|
|
3051
2957
|
}
|
|
3052
|
-
b.
|
|
2958
|
+
b.Ma && (b.Ma = null);
|
|
3053
2959
|
try {
|
|
3054
2960
|
b.m.close && b.m.close(b);
|
|
3055
2961
|
} catch (c) {
|
|
3056
2962
|
throw c;
|
|
3057
2963
|
} finally {
|
|
3058
|
-
vb[b.
|
|
2964
|
+
vb[b.W] = null;
|
|
3059
2965
|
}
|
|
3060
|
-
b.
|
|
2966
|
+
b.W = null;
|
|
3061
2967
|
return 0;
|
|
3062
2968
|
} catch (c) {
|
|
3063
|
-
if ("undefined" == typeof
|
|
2969
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== c.name) {
|
|
3064
2970
|
throw c;
|
|
3065
2971
|
}
|
|
3066
|
-
return c
|
|
2972
|
+
return c.$;
|
|
3067
2973
|
}
|
|
3068
2974
|
}, fd_read:function(a, b, c, d) {
|
|
3069
2975
|
try {
|
|
@@ -3071,52 +2977,52 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3071
2977
|
var e = Ib(a);
|
|
3072
2978
|
a = b;
|
|
3073
2979
|
for (var f, g = b = 0; g < c; g++) {
|
|
3074
|
-
var m =
|
|
2980
|
+
var m = J[a >> 2], p = J[a + 4 >> 2];
|
|
3075
2981
|
a += 8;
|
|
3076
|
-
var l = e, u = m, v = p, q = f, k =
|
|
2982
|
+
var l = e, u = m, v = p, q = f, k = C;
|
|
3077
2983
|
if (0 > v || 0 > q) {
|
|
3078
|
-
throw new
|
|
2984
|
+
throw new L(28);
|
|
3079
2985
|
}
|
|
3080
|
-
if (null === l.
|
|
3081
|
-
throw new
|
|
2986
|
+
if (null === l.W) {
|
|
2987
|
+
throw new L(8);
|
|
3082
2988
|
}
|
|
3083
2989
|
if (1 === (l.flags & 2097155)) {
|
|
3084
|
-
throw new
|
|
2990
|
+
throw new L(8);
|
|
3085
2991
|
}
|
|
3086
2992
|
if (16384 === (l.node.mode & 61440)) {
|
|
3087
|
-
throw new
|
|
2993
|
+
throw new L(31);
|
|
3088
2994
|
}
|
|
3089
2995
|
if (!l.m.read) {
|
|
3090
|
-
throw new
|
|
2996
|
+
throw new L(28);
|
|
3091
2997
|
}
|
|
3092
2998
|
var r = "undefined" != typeof q;
|
|
3093
2999
|
if (!r) {
|
|
3094
3000
|
q = l.position;
|
|
3095
3001
|
} else if (!l.seekable) {
|
|
3096
|
-
throw new
|
|
3002
|
+
throw new L(70);
|
|
3097
3003
|
}
|
|
3098
3004
|
var w = l.m.read(l, k, u, v, q);
|
|
3099
3005
|
r || (l.position += w);
|
|
3100
|
-
var
|
|
3101
|
-
if (0 >
|
|
3102
|
-
var
|
|
3006
|
+
var y = w;
|
|
3007
|
+
if (0 > y) {
|
|
3008
|
+
var E = -1;
|
|
3103
3009
|
break a;
|
|
3104
3010
|
}
|
|
3105
|
-
b +=
|
|
3106
|
-
if (
|
|
3011
|
+
b += y;
|
|
3012
|
+
if (y < p) {
|
|
3107
3013
|
break;
|
|
3108
3014
|
}
|
|
3109
|
-
"undefined" !== typeof f && (f +=
|
|
3015
|
+
"undefined" !== typeof f && (f += y);
|
|
3110
3016
|
}
|
|
3111
|
-
|
|
3017
|
+
E = b;
|
|
3112
3018
|
}
|
|
3113
|
-
|
|
3019
|
+
J[d >> 2] = E;
|
|
3114
3020
|
return 0;
|
|
3115
|
-
} catch (
|
|
3116
|
-
if ("undefined" == typeof
|
|
3117
|
-
throw
|
|
3021
|
+
} catch (z) {
|
|
3022
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== z.name) {
|
|
3023
|
+
throw z;
|
|
3118
3024
|
}
|
|
3119
|
-
return
|
|
3025
|
+
return z.$;
|
|
3120
3026
|
}
|
|
3121
3027
|
}, fd_seek:function(a, b, c, d, e) {
|
|
3122
3028
|
b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
|
|
@@ -3125,17 +3031,17 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3125
3031
|
return 61;
|
|
3126
3032
|
}
|
|
3127
3033
|
var f = Ib(a);
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
f.
|
|
3034
|
+
Qb(f, b, d);
|
|
3035
|
+
Pa = [f.position >>> 0, (Oa = f.position, 1.0 <= +Math.abs(Oa) ? 0.0 < Oa ? +Math.floor(Oa / 4294967296.0) >>> 0 : ~~+Math.ceil((Oa - +(~~Oa >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
3036
|
+
I[e >> 2] = Pa[0];
|
|
3037
|
+
I[e + 4 >> 2] = Pa[1];
|
|
3038
|
+
f.Ma && 0 === b && 0 === d && (f.Ma = null);
|
|
3133
3039
|
return 0;
|
|
3134
3040
|
} catch (g) {
|
|
3135
|
-
if ("undefined" == typeof
|
|
3041
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== g.name) {
|
|
3136
3042
|
throw g;
|
|
3137
3043
|
}
|
|
3138
|
-
return g
|
|
3044
|
+
return g.$;
|
|
3139
3045
|
}
|
|
3140
3046
|
}, fd_write:function(a, b, c, d) {
|
|
3141
3047
|
try {
|
|
@@ -3143,72 +3049,72 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3143
3049
|
var e = Ib(a);
|
|
3144
3050
|
a = b;
|
|
3145
3051
|
for (var f, g = b = 0; g < c; g++) {
|
|
3146
|
-
var m =
|
|
3052
|
+
var m = J[a >> 2], p = J[a + 4 >> 2];
|
|
3147
3053
|
a += 8;
|
|
3148
|
-
var l = e, u = m, v = p, q = f, k =
|
|
3054
|
+
var l = e, u = m, v = p, q = f, k = C;
|
|
3149
3055
|
if (0 > v || 0 > q) {
|
|
3150
|
-
throw new
|
|
3056
|
+
throw new L(28);
|
|
3151
3057
|
}
|
|
3152
|
-
if (null === l.
|
|
3153
|
-
throw new
|
|
3058
|
+
if (null === l.W) {
|
|
3059
|
+
throw new L(8);
|
|
3154
3060
|
}
|
|
3155
3061
|
if (0 === (l.flags & 2097155)) {
|
|
3156
|
-
throw new
|
|
3062
|
+
throw new L(8);
|
|
3157
3063
|
}
|
|
3158
3064
|
if (16384 === (l.node.mode & 61440)) {
|
|
3159
|
-
throw new
|
|
3065
|
+
throw new L(31);
|
|
3160
3066
|
}
|
|
3161
3067
|
if (!l.m.write) {
|
|
3162
|
-
throw new
|
|
3068
|
+
throw new L(28);
|
|
3163
3069
|
}
|
|
3164
|
-
l.seekable && l.flags & 1024 &&
|
|
3070
|
+
l.seekable && l.flags & 1024 && Qb(l, 0, 2);
|
|
3165
3071
|
var r = "undefined" != typeof q;
|
|
3166
3072
|
if (!r) {
|
|
3167
3073
|
q = l.position;
|
|
3168
3074
|
} else if (!l.seekable) {
|
|
3169
|
-
throw new
|
|
3075
|
+
throw new L(70);
|
|
3170
3076
|
}
|
|
3171
3077
|
var w = l.m.write(l, k, u, v, q, void 0);
|
|
3172
3078
|
r || (l.position += w);
|
|
3173
|
-
var
|
|
3174
|
-
if (0 >
|
|
3175
|
-
var
|
|
3079
|
+
var y = w;
|
|
3080
|
+
if (0 > y) {
|
|
3081
|
+
var E = -1;
|
|
3176
3082
|
break a;
|
|
3177
3083
|
}
|
|
3178
|
-
b +=
|
|
3179
|
-
"undefined" !== typeof f && (f +=
|
|
3084
|
+
b += y;
|
|
3085
|
+
"undefined" !== typeof f && (f += y);
|
|
3180
3086
|
}
|
|
3181
|
-
|
|
3087
|
+
E = b;
|
|
3182
3088
|
}
|
|
3183
|
-
|
|
3089
|
+
J[d >> 2] = E;
|
|
3184
3090
|
return 0;
|
|
3185
|
-
} catch (
|
|
3186
|
-
if ("undefined" == typeof
|
|
3187
|
-
throw
|
|
3091
|
+
} catch (z) {
|
|
3092
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== z.name) {
|
|
3093
|
+
throw z;
|
|
3188
3094
|
}
|
|
3189
|
-
return
|
|
3095
|
+
return z.$;
|
|
3190
3096
|
}
|
|
3191
3097
|
}, framebufferPixelLocalClearValuefvWEBGL:function(a, b, c, d, e, f) {
|
|
3192
3098
|
(a = t[a].H.ia) && a.framebufferPixelLocalClearValuefvWEBGL(b, [c, d, e, f]);
|
|
3193
3099
|
}, framebufferTexturePixelLocalStorageWEBGL:function(a, b, c, d, e) {
|
|
3194
|
-
(a = t[a].H.ia) && a.framebufferTexturePixelLocalStorageWEBGL(b,
|
|
3100
|
+
(a = t[a].H.ia) && a.framebufferTexturePixelLocalStorageWEBGL(b, W[c], d, e);
|
|
3195
3101
|
}, glActiveTexture:function(a) {
|
|
3196
3102
|
Z.activeTexture(a);
|
|
3197
3103
|
}, glAttachShader:function(a, b) {
|
|
3198
|
-
Z.attachShader(
|
|
3104
|
+
Z.attachShader(V[a], yd[b]);
|
|
3199
3105
|
}, glBindBuffer:function(a, b) {
|
|
3200
|
-
35051 == a ? Z.
|
|
3201
|
-
Z.bindBuffer(a,
|
|
3106
|
+
35051 == a ? Z.Wa = b : 35052 == a && (Z.Ka = b);
|
|
3107
|
+
Z.bindBuffer(a, vd[b]);
|
|
3202
3108
|
}, glBindBufferRange:function(a, b, c, d, e) {
|
|
3203
|
-
Z.bindBufferRange(a, b,
|
|
3109
|
+
Z.bindBufferRange(a, b, vd[c], d, e);
|
|
3204
3110
|
}, glBindFramebuffer:function(a, b) {
|
|
3205
|
-
Z.bindFramebuffer(a,
|
|
3111
|
+
Z.bindFramebuffer(a, wd[b]);
|
|
3206
3112
|
}, glBindRenderbuffer:function(a, b) {
|
|
3207
|
-
Z.bindRenderbuffer(a,
|
|
3113
|
+
Z.bindRenderbuffer(a, xd[b]);
|
|
3208
3114
|
}, glBindTexture:function(a, b) {
|
|
3209
|
-
Z.bindTexture(a,
|
|
3115
|
+
Z.bindTexture(a, W[b]);
|
|
3210
3116
|
}, glBindVertexArray:function(a) {
|
|
3211
|
-
Z.bindVertexArray(
|
|
3117
|
+
Z.bindVertexArray(zd[a]);
|
|
3212
3118
|
}, glBlendEquation:function(a) {
|
|
3213
3119
|
Z.blendEquation(a);
|
|
3214
3120
|
}, glBlendFunc:function(a, b) {
|
|
@@ -3216,9 +3122,9 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3216
3122
|
}, glBlitFramebuffer:function(a, b, c, d, e, f, g, m, p, l) {
|
|
3217
3123
|
Z.blitFramebuffer(a, b, c, d, e, f, g, m, p, l);
|
|
3218
3124
|
}, glBufferData:function(a, b, c, d) {
|
|
3219
|
-
c && b ? Z.bufferData(a,
|
|
3125
|
+
c && b ? Z.bufferData(a, G, d, c, b) : Z.bufferData(a, b, d);
|
|
3220
3126
|
}, glBufferSubData:function(a, b, c, d) {
|
|
3221
|
-
c && Z.bufferSubData(a, b,
|
|
3127
|
+
c && Z.bufferSubData(a, b, G, d, c);
|
|
3222
3128
|
}, glClear:function(a) {
|
|
3223
3129
|
Z.clear(a);
|
|
3224
3130
|
}, glClearColor:function(a, b, c, d) {
|
|
@@ -3230,55 +3136,55 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3230
3136
|
}, glColorMask:function(a, b, c, d) {
|
|
3231
3137
|
Z.colorMask(!!a, !!b, !!c, !!d);
|
|
3232
3138
|
}, glCompileShader:function(a) {
|
|
3233
|
-
Z.compileShader(
|
|
3139
|
+
Z.compileShader(yd[a]);
|
|
3234
3140
|
}, glCreateProgram:function() {
|
|
3235
|
-
var a =
|
|
3141
|
+
var a = ha(V), b = Z.createProgram();
|
|
3236
3142
|
b.name = a;
|
|
3237
|
-
b.
|
|
3238
|
-
b.
|
|
3239
|
-
|
|
3143
|
+
b.Fc = b.Dc = b.Ec = 0;
|
|
3144
|
+
b.Sa = 1;
|
|
3145
|
+
V[a] = b;
|
|
3240
3146
|
return a;
|
|
3241
3147
|
}, glCreateShader:function(a) {
|
|
3242
|
-
var b =
|
|
3243
|
-
|
|
3148
|
+
var b = ha(yd);
|
|
3149
|
+
yd[b] = Z.createShader(a);
|
|
3244
3150
|
return b;
|
|
3245
3151
|
}, glCullFace:function(a) {
|
|
3246
3152
|
Z.cullFace(a);
|
|
3247
3153
|
}, glDeleteBuffers:function(a, b) {
|
|
3248
3154
|
for (var c = 0; c < a; c++) {
|
|
3249
|
-
var d =
|
|
3250
|
-
e && (Z.deleteBuffer(e), e.name = 0,
|
|
3155
|
+
var d = I[b + 4 * c >> 2], e = vd[d];
|
|
3156
|
+
e && (Z.deleteBuffer(e), e.name = 0, vd[d] = null, d == Z.Wa && (Z.Wa = 0), d == Z.Ka && (Z.Ka = 0));
|
|
3251
3157
|
}
|
|
3252
3158
|
}, glDeleteFramebuffers:function(a, b) {
|
|
3253
3159
|
for (var c = 0; c < a; ++c) {
|
|
3254
|
-
var d =
|
|
3255
|
-
e && (Z.deleteFramebuffer(e), e.name = 0,
|
|
3160
|
+
var d = I[b + 4 * c >> 2], e = wd[d];
|
|
3161
|
+
e && (Z.deleteFramebuffer(e), e.name = 0, wd[d] = null);
|
|
3256
3162
|
}
|
|
3257
3163
|
}, glDeleteProgram:function(a) {
|
|
3258
3164
|
if (a) {
|
|
3259
|
-
var b =
|
|
3260
|
-
b ? (Z.deleteProgram(b), b.name = 0,
|
|
3165
|
+
var b = V[a];
|
|
3166
|
+
b ? (Z.deleteProgram(b), b.name = 0, V[a] = null) : X(1281);
|
|
3261
3167
|
}
|
|
3262
3168
|
}, glDeleteRenderbuffers:function(a, b) {
|
|
3263
3169
|
for (var c = 0; c < a; c++) {
|
|
3264
|
-
var d =
|
|
3265
|
-
e && (Z.deleteRenderbuffer(e), e.name = 0,
|
|
3170
|
+
var d = I[b + 4 * c >> 2], e = xd[d];
|
|
3171
|
+
e && (Z.deleteRenderbuffer(e), e.name = 0, xd[d] = null);
|
|
3266
3172
|
}
|
|
3267
3173
|
}, glDeleteShader:function(a) {
|
|
3268
3174
|
if (a) {
|
|
3269
|
-
var b =
|
|
3270
|
-
b ? (Z.deleteShader(b),
|
|
3175
|
+
var b = yd[a];
|
|
3176
|
+
b ? (Z.deleteShader(b), yd[a] = null) : X(1281);
|
|
3271
3177
|
}
|
|
3272
3178
|
}, glDeleteTextures:function(a, b) {
|
|
3273
3179
|
for (var c = 0; c < a; c++) {
|
|
3274
|
-
var d =
|
|
3275
|
-
e && (Z.deleteTexture(e), e.name = 0,
|
|
3180
|
+
var d = I[b + 4 * c >> 2], e = W[d];
|
|
3181
|
+
e && (Z.deleteTexture(e), e.name = 0, W[d] = null);
|
|
3276
3182
|
}
|
|
3277
3183
|
}, glDeleteVertexArrays:function(a, b) {
|
|
3278
3184
|
for (var c = 0; c < a; c++) {
|
|
3279
|
-
var d =
|
|
3280
|
-
Z.deleteVertexArray(
|
|
3281
|
-
|
|
3185
|
+
var d = I[b + 4 * c >> 2];
|
|
3186
|
+
Z.deleteVertexArray(zd[d]);
|
|
3187
|
+
zd[d] = null;
|
|
3282
3188
|
}
|
|
3283
3189
|
}, glDepthFunc:function(a) {
|
|
3284
3190
|
Z.depthFunc(a);
|
|
@@ -3293,8 +3199,8 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3293
3199
|
}, glDrawArraysInstanced:function(a, b, c, d) {
|
|
3294
3200
|
Z.drawArraysInstanced(a, b, c, d);
|
|
3295
3201
|
}, glDrawBuffers:function(a, b) {
|
|
3296
|
-
for (var c =
|
|
3297
|
-
c[d] =
|
|
3202
|
+
for (var c = Hd[a], d = 0; d < a; d++) {
|
|
3203
|
+
c[d] = I[b + 4 * d >> 2];
|
|
3298
3204
|
}
|
|
3299
3205
|
Z.drawBuffers(c);
|
|
3300
3206
|
}, glDrawElements:function(a, b, c, d) {
|
|
@@ -3306,27 +3212,27 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3306
3212
|
}, glEnableVertexAttribArray:function(a) {
|
|
3307
3213
|
Z.enableVertexAttribArray(a);
|
|
3308
3214
|
}, glFramebufferRenderbuffer:function(a, b, c, d) {
|
|
3309
|
-
Z.framebufferRenderbuffer(a, b, c,
|
|
3215
|
+
Z.framebufferRenderbuffer(a, b, c, xd[d]);
|
|
3310
3216
|
}, glFramebufferTexture2D:function(a, b, c, d, e) {
|
|
3311
|
-
Z.framebufferTexture2D(a, b, c,
|
|
3217
|
+
Z.framebufferTexture2D(a, b, c, W[d], e);
|
|
3312
3218
|
}, glFrontFace:function(a) {
|
|
3313
3219
|
Z.frontFace(a);
|
|
3314
3220
|
}, glGenBuffers:function(a, b) {
|
|
3315
|
-
|
|
3221
|
+
Id(a, b, "createBuffer", vd);
|
|
3316
3222
|
}, glGenFramebuffers:function(a, b) {
|
|
3317
|
-
|
|
3223
|
+
Id(a, b, "createFramebuffer", wd);
|
|
3318
3224
|
}, glGenRenderbuffers:function(a, b) {
|
|
3319
|
-
|
|
3225
|
+
Id(a, b, "createRenderbuffer", xd);
|
|
3320
3226
|
}, glGenTextures:function(a, b) {
|
|
3321
|
-
|
|
3227
|
+
Id(a, b, "createTexture", W);
|
|
3322
3228
|
}, glGenVertexArrays:function(a, b) {
|
|
3323
|
-
|
|
3229
|
+
Id(a, b, "createVertexArray", zd);
|
|
3324
3230
|
}, glGenerateMipmap:function(a) {
|
|
3325
3231
|
Z.generateMipmap(a);
|
|
3326
3232
|
}, glGetIntegerv:function(a, b) {
|
|
3327
|
-
|
|
3233
|
+
Jd(a, b);
|
|
3328
3234
|
}, glGetString:function(a) {
|
|
3329
|
-
var b =
|
|
3235
|
+
var b = Ad[a];
|
|
3330
3236
|
if (!b) {
|
|
3331
3237
|
switch(a) {
|
|
3332
3238
|
case 7939:
|
|
@@ -3334,73 +3240,73 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3334
3240
|
b = b.concat(b.map(function(d) {
|
|
3335
3241
|
return "GL_" + d;
|
|
3336
3242
|
}));
|
|
3337
|
-
b =
|
|
3243
|
+
b = Ld(b.join(" "));
|
|
3338
3244
|
break;
|
|
3339
3245
|
case 7936:
|
|
3340
3246
|
case 7937:
|
|
3341
3247
|
case 37445:
|
|
3342
3248
|
case 37446:
|
|
3343
|
-
(b = Z.getParameter(a)) ||
|
|
3344
|
-
b = b &&
|
|
3249
|
+
(b = Z.getParameter(a)) || X(1280);
|
|
3250
|
+
b = b && Ld(b);
|
|
3345
3251
|
break;
|
|
3346
3252
|
case 7938:
|
|
3347
|
-
b =
|
|
3253
|
+
b = Ld("OpenGL ES 3.0 (" + Z.getParameter(7938) + ")");
|
|
3348
3254
|
break;
|
|
3349
3255
|
case 35724:
|
|
3350
3256
|
b = Z.getParameter(35724);
|
|
3351
3257
|
var c = b.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);
|
|
3352
3258
|
null !== c && (3 == c[1].length && (c[1] += "0"), b = "OpenGL ES GLSL ES " + c[1] + " (" + b + ")");
|
|
3353
|
-
b =
|
|
3259
|
+
b = Ld(b);
|
|
3354
3260
|
break;
|
|
3355
3261
|
default:
|
|
3356
|
-
|
|
3262
|
+
X(1280);
|
|
3357
3263
|
}
|
|
3358
|
-
|
|
3264
|
+
Ad[a] = b;
|
|
3359
3265
|
}
|
|
3360
3266
|
return b;
|
|
3361
3267
|
}, glGetUniformBlockIndex:function(a, b) {
|
|
3362
|
-
return Z.getUniformBlockIndex(
|
|
3268
|
+
return Z.getUniformBlockIndex(V[a], b ? K(G, b) : "");
|
|
3363
3269
|
}, glGetUniformLocation:function(a, b) {
|
|
3364
|
-
b = b ?
|
|
3365
|
-
if (a =
|
|
3366
|
-
var c = a, d = c.
|
|
3270
|
+
b = b ? K(G, b) : "";
|
|
3271
|
+
if (a = V[a]) {
|
|
3272
|
+
var c = a, d = c.oa, e = c.tb, f;
|
|
3367
3273
|
if (!d) {
|
|
3368
|
-
for (c.
|
|
3274
|
+
for (c.oa = d = {}, c.sb = {}, f = 0; f < Z.getProgramParameter(c, 35718); ++f) {
|
|
3369
3275
|
var g = Z.getActiveUniform(c, f);
|
|
3370
3276
|
var m = g.name;
|
|
3371
3277
|
g = g.size;
|
|
3372
|
-
var p =
|
|
3278
|
+
var p = Md(m);
|
|
3373
3279
|
p = 0 < p ? m.slice(0, p) : m;
|
|
3374
|
-
var l = c.
|
|
3375
|
-
c.
|
|
3280
|
+
var l = c.Sa;
|
|
3281
|
+
c.Sa += g;
|
|
3376
3282
|
e[p] = [g, l];
|
|
3377
3283
|
for (m = 0; m < g; ++m) {
|
|
3378
|
-
d[l] = m, c.
|
|
3284
|
+
d[l] = m, c.sb[l++] = p;
|
|
3379
3285
|
}
|
|
3380
3286
|
}
|
|
3381
3287
|
}
|
|
3382
|
-
c = a.
|
|
3288
|
+
c = a.oa;
|
|
3383
3289
|
d = 0;
|
|
3384
3290
|
e = b;
|
|
3385
|
-
f =
|
|
3291
|
+
f = Md(b);
|
|
3386
3292
|
0 < f && (d = parseInt(b.slice(f + 1)) >>> 0, e = b.slice(0, f));
|
|
3387
|
-
if ((e = a.
|
|
3293
|
+
if ((e = a.tb[e]) && d < e[0] && (d += e[1], c[d] = c[d] || Z.getUniformLocation(a, b))) {
|
|
3388
3294
|
return d;
|
|
3389
3295
|
}
|
|
3390
3296
|
} else {
|
|
3391
|
-
|
|
3297
|
+
X(1281);
|
|
3392
3298
|
}
|
|
3393
3299
|
return -1;
|
|
3394
3300
|
}, glInvalidateFramebuffer:function(a, b, c) {
|
|
3395
|
-
for (var d =
|
|
3396
|
-
d[e] =
|
|
3301
|
+
for (var d = Hd[b], e = 0; e < b; e++) {
|
|
3302
|
+
d[e] = I[c + 4 * e >> 2];
|
|
3397
3303
|
}
|
|
3398
3304
|
Z.invalidateFramebuffer(a, d);
|
|
3399
3305
|
}, glLinkProgram:function(a) {
|
|
3400
|
-
a =
|
|
3306
|
+
a = V[a];
|
|
3401
3307
|
Z.linkProgram(a);
|
|
3402
|
-
a.
|
|
3403
|
-
a.
|
|
3308
|
+
a.oa = 0;
|
|
3309
|
+
a.tb = {};
|
|
3404
3310
|
}, glPixelStorei:function(a, b) {
|
|
3405
3311
|
Z.pixelStorei(a, b);
|
|
3406
3312
|
}, glRenderbufferStorageMultisample:function(a, b, c, d, e) {
|
|
@@ -3409,11 +3315,11 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3409
3315
|
Z.scissor(a, b, c, d);
|
|
3410
3316
|
}, glShaderSource:function(a, b, c, d) {
|
|
3411
3317
|
for (var e = "", f = 0; f < b; ++f) {
|
|
3412
|
-
var g = d ?
|
|
3413
|
-
g = m ?
|
|
3318
|
+
var g = d ? I[d + 4 * f >> 2] : -1, m = I[c + 4 * f >> 2];
|
|
3319
|
+
g = m ? K(G, m, 0 > g ? void 0 : g) : "";
|
|
3414
3320
|
e += g;
|
|
3415
3321
|
}
|
|
3416
|
-
Z.shaderSource(
|
|
3322
|
+
Z.shaderSource(yd[a], e);
|
|
3417
3323
|
}, glStencilFunc:function(a, b, c) {
|
|
3418
3324
|
Z.stencilFunc(a, b, c);
|
|
3419
3325
|
}, glStencilFuncSeparate:function(a, b, c, d) {
|
|
@@ -3433,29 +3339,29 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3433
3339
|
Z.texSubImage2D(a, b, c, d, e, f, g, m, p);
|
|
3434
3340
|
} else if (p) {
|
|
3435
3341
|
var l = m - 5120;
|
|
3436
|
-
l = 0 == l ?
|
|
3342
|
+
l = 0 == l ? C : 1 == l ? G : 2 == l ? H : 4 == l ? I : 6 == l ? wa : 5 == l || 28922 == l || 28520 == l || 30779 == l || 30782 == l ? J : va;
|
|
3437
3343
|
Z.texSubImage2D(a, b, c, d, e, f, g, m, l, p >> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
|
|
3438
3344
|
} else {
|
|
3439
3345
|
Z.texSubImage2D(a, b, c, d, e, f, g, m, null);
|
|
3440
3346
|
}
|
|
3441
3347
|
}, glUniform1i:function(a, b) {
|
|
3442
3348
|
var c = Z, d = c.uniform1i;
|
|
3443
|
-
var e = Z.
|
|
3349
|
+
var e = Z.Eb;
|
|
3444
3350
|
if (e) {
|
|
3445
|
-
var f = e.
|
|
3446
|
-
"number" == typeof f && (e.
|
|
3351
|
+
var f = e.oa[a];
|
|
3352
|
+
"number" == typeof f && (e.oa[a] = f = Z.getUniformLocation(e, e.sb[a] + (0 < f ? "[" + f + "]" : "")));
|
|
3447
3353
|
a = f;
|
|
3448
3354
|
} else {
|
|
3449
|
-
|
|
3355
|
+
X(1282), a = void 0;
|
|
3450
3356
|
}
|
|
3451
3357
|
d.call(c, a, b);
|
|
3452
3358
|
}, glUniformBlockBinding:function(a, b, c) {
|
|
3453
|
-
a =
|
|
3359
|
+
a = V[a];
|
|
3454
3360
|
Z.uniformBlockBinding(a, b, c);
|
|
3455
3361
|
}, glUseProgram:function(a) {
|
|
3456
|
-
a =
|
|
3362
|
+
a = V[a];
|
|
3457
3363
|
Z.useProgram(a);
|
|
3458
|
-
Z.
|
|
3364
|
+
Z.Eb = a;
|
|
3459
3365
|
}, glVertexAttribDivisor:function(a, b) {
|
|
3460
3366
|
Z.vertexAttribDivisor(a, b);
|
|
3461
3367
|
}, glVertexAttribIPointer:function(a, b, c, d, e) {
|
|
@@ -3465,23 +3371,23 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3465
3371
|
}, glViewport:function(a, b, c, d) {
|
|
3466
3372
|
Z.viewport(a, b, c, d);
|
|
3467
3373
|
}, is_texture_image_done_decoding:function(a) {
|
|
3468
|
-
a =
|
|
3374
|
+
a = W[a];
|
|
3469
3375
|
return a.complete || a.image.complete;
|
|
3470
3376
|
}, provokingVertexWEBGL:function(a, b) {
|
|
3471
|
-
(a = t[a].H.
|
|
3377
|
+
(a = t[a].H.lb) && a.provokingVertexWEBGL(b);
|
|
3472
3378
|
}, set_decoded_tex_image_2d:function(a, b) {
|
|
3473
3379
|
a = t[a].H;
|
|
3474
|
-
b =
|
|
3380
|
+
b = W[b];
|
|
3475
3381
|
a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, b.image);
|
|
3476
3382
|
b.imageWidth = b.image.width;
|
|
3477
3383
|
b.imageHeight = b.image.height;
|
|
3478
3384
|
b.complete = !0;
|
|
3479
3385
|
delete b.image;
|
|
3480
|
-
}, strftime_l:(a, b, c, d) =>
|
|
3481
|
-
a =
|
|
3386
|
+
}, strftime_l:(a, b, c, d) => Qd(a, b, c, d), texture_image_height:function(a) {
|
|
3387
|
+
a = W[a];
|
|
3482
3388
|
return a.imageHeight;
|
|
3483
3389
|
}, texture_image_width:function(a) {
|
|
3484
|
-
a =
|
|
3390
|
+
a = W[a];
|
|
3485
3391
|
return a.imageWidth;
|
|
3486
3392
|
}, webgl_texSubImage2DWithOffset:function(a, b, c, d, e, f, g, m, p, l) {
|
|
3487
3393
|
a = t[a].H;
|
|
@@ -3489,62 +3395,62 @@ var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3489
3395
|
}};
|
|
3490
3396
|
(function() {
|
|
3491
3397
|
function a(c) {
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
n.monitorRunDependencies && n.monitorRunDependencies(
|
|
3499
|
-
if (0 ==
|
|
3500
|
-
var d =
|
|
3501
|
-
|
|
3398
|
+
B = c = c.exports;
|
|
3399
|
+
ta = B.memory;
|
|
3400
|
+
ya();
|
|
3401
|
+
za = B.__indirect_function_table;
|
|
3402
|
+
Ba.unshift(B.__wasm_call_ctors);
|
|
3403
|
+
Ea--;
|
|
3404
|
+
n.monitorRunDependencies && n.monitorRunDependencies(Ea);
|
|
3405
|
+
if (0 == Ea && (null !== Fa && (clearInterval(Fa), Fa = null), Ga)) {
|
|
3406
|
+
var d = Ga;
|
|
3407
|
+
Ga = null;
|
|
3502
3408
|
d();
|
|
3503
3409
|
}
|
|
3504
3410
|
return c;
|
|
3505
3411
|
}
|
|
3506
|
-
var b = {env:
|
|
3507
|
-
|
|
3508
|
-
n.monitorRunDependencies && n.monitorRunDependencies(
|
|
3412
|
+
var b = {env:Vd, wasi_snapshot_preview1:Vd,};
|
|
3413
|
+
Ea++;
|
|
3414
|
+
n.monitorRunDependencies && n.monitorRunDependencies(Ea);
|
|
3509
3415
|
if (n.instantiateWasm) {
|
|
3510
3416
|
try {
|
|
3511
3417
|
return n.instantiateWasm(b, a);
|
|
3512
3418
|
} catch (c) {
|
|
3513
|
-
|
|
3419
|
+
A("Module.instantiateWasm callback failed with error: " + c), ba(c);
|
|
3514
3420
|
}
|
|
3515
3421
|
}
|
|
3516
|
-
|
|
3422
|
+
Na(b, function(c) {
|
|
3517
3423
|
a(c.instance);
|
|
3518
|
-
}).catch(
|
|
3424
|
+
}).catch(ba);
|
|
3519
3425
|
return {};
|
|
3520
3426
|
})();
|
|
3521
|
-
var
|
|
3522
|
-
n._ma_malloc_emscripten = (a, b) => (n._ma_malloc_emscripten =
|
|
3523
|
-
n._ma_free_emscripten = (a, b) => (n._ma_free_emscripten =
|
|
3524
|
-
var Ra = n._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Ra = n._ma_device_process_pcm_frames_capture__webaudio =
|
|
3525
|
-
n.__embind_initialize_bindings = () => (n.__embind_initialize_bindings =
|
|
3526
|
-
n.
|
|
3527
|
-
n.
|
|
3528
|
-
n.dynCall_iij = (a, b, c, d) => (n.dynCall_iij =
|
|
3529
|
-
n.dynCall_jii = (a, b, c) => (n.dynCall_jii =
|
|
3530
|
-
n.dynCall_jiji = (a, b, c, d, e) => (n.dynCall_jiji =
|
|
3531
|
-
n.dynCall_viijii = (a, b, c, d, e, f, g) => (n.dynCall_viijii =
|
|
3532
|
-
n.dynCall_iiiiij = (a, b, c, d, e, f, g) => (n.dynCall_iiiiij =
|
|
3533
|
-
n.dynCall_iiiiijj = (a, b, c, d, e, f, g, m, p) => (n.dynCall_iiiiijj =
|
|
3534
|
-
n.dynCall_iiiiiijj = (a, b, c, d, e, f, g, m, p, l) => (n.dynCall_iiiiiijj =
|
|
3535
|
-
n.___start_em_js =
|
|
3536
|
-
n.___stop_em_js =
|
|
3537
|
-
var
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3427
|
+
var nc = a => (nc = B.free)(a), Kd = a => (Kd = B.malloc)(a), Qa = n._ma_device__on_notification_unlocked = a => (Qa = n._ma_device__on_notification_unlocked = B.ma_device__on_notification_unlocked)(a);
|
|
3428
|
+
n._ma_malloc_emscripten = (a, b) => (n._ma_malloc_emscripten = B.ma_malloc_emscripten)(a, b);
|
|
3429
|
+
n._ma_free_emscripten = (a, b) => (n._ma_free_emscripten = B.ma_free_emscripten)(a, b);
|
|
3430
|
+
var Ra = n._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Ra = n._ma_device_process_pcm_frames_capture__webaudio = B.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Sa = n._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Sa = n._ma_device_process_pcm_frames_playback__webaudio = B.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Ud = () => (Ud = B.__errno_location)(), mc = a => (mc = B.__getTypeName)(a);
|
|
3431
|
+
n.__embind_initialize_bindings = () => (n.__embind_initialize_bindings = B._embind_initialize_bindings)();
|
|
3432
|
+
n.dynCall_iiji = (a, b, c, d, e) => (n.dynCall_iiji = B.dynCall_iiji)(a, b, c, d, e);
|
|
3433
|
+
n.dynCall_iiiji = (a, b, c, d, e, f) => (n.dynCall_iiiji = B.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3434
|
+
n.dynCall_iij = (a, b, c, d) => (n.dynCall_iij = B.dynCall_iij)(a, b, c, d);
|
|
3435
|
+
n.dynCall_jii = (a, b, c) => (n.dynCall_jii = B.dynCall_jii)(a, b, c);
|
|
3436
|
+
n.dynCall_jiji = (a, b, c, d, e) => (n.dynCall_jiji = B.dynCall_jiji)(a, b, c, d, e);
|
|
3437
|
+
n.dynCall_viijii = (a, b, c, d, e, f, g) => (n.dynCall_viijii = B.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3438
|
+
n.dynCall_iiiiij = (a, b, c, d, e, f, g) => (n.dynCall_iiiiij = B.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3439
|
+
n.dynCall_iiiiijj = (a, b, c, d, e, f, g, m, p) => (n.dynCall_iiiiijj = B.dynCall_iiiiijj)(a, b, c, d, e, f, g, m, p);
|
|
3440
|
+
n.dynCall_iiiiiijj = (a, b, c, d, e, f, g, m, p, l) => (n.dynCall_iiiiiijj = B.dynCall_iiiiiijj)(a, b, c, d, e, f, g, m, p, l);
|
|
3441
|
+
n.___start_em_js = 466952;
|
|
3442
|
+
n.___stop_em_js = 469576;
|
|
3443
|
+
var Wd;
|
|
3444
|
+
Ga = function Xd() {
|
|
3445
|
+
Wd || Yd();
|
|
3446
|
+
Wd || (Ga = Xd);
|
|
3541
3447
|
};
|
|
3542
|
-
function
|
|
3448
|
+
function Yd() {
|
|
3543
3449
|
function a() {
|
|
3544
|
-
if (
|
|
3545
|
-
n.noFSInit ||
|
|
3450
|
+
if (!Wd && (Wd = !0, n.calledRun = !0, !ua)) {
|
|
3451
|
+
n.noFSInit || Sb || (Sb = !0, Rb(), n.stdin = n.stdin, n.stdout = n.stdout, n.stderr = n.stderr, n.stdin ? Ub("stdin", n.stdin) : Nb("/dev/tty", "/dev/stdin"), n.stdout ? Ub("stdout", null, n.stdout) : Nb("/dev/tty", "/dev/stdout"), n.stderr ? Ub("stderr", null, n.stderr) : Nb("/dev/tty1", "/dev/stderr"), Pb("/dev/stdin", 0), Pb("/dev/stdout", 1), Pb("/dev/stderr", 1));
|
|
3546
3452
|
yb = !1;
|
|
3547
|
-
Ua(
|
|
3453
|
+
Ua(Ba);
|
|
3548
3454
|
aa(n);
|
|
3549
3455
|
if (n.onRuntimeInitialized) {
|
|
3550
3456
|
n.onRuntimeInitialized();
|
|
@@ -3552,20 +3458,20 @@ function be() {
|
|
|
3552
3458
|
if (n.postRun) {
|
|
3553
3459
|
for ("function" == typeof n.postRun && (n.postRun = [n.postRun]); n.postRun.length;) {
|
|
3554
3460
|
var b = n.postRun.shift();
|
|
3555
|
-
|
|
3461
|
+
Ca.unshift(b);
|
|
3556
3462
|
}
|
|
3557
3463
|
}
|
|
3558
|
-
Ua(
|
|
3464
|
+
Ua(Ca);
|
|
3559
3465
|
}
|
|
3560
3466
|
}
|
|
3561
|
-
if (!(0 <
|
|
3467
|
+
if (!(0 < Ea)) {
|
|
3562
3468
|
if (n.preRun) {
|
|
3563
3469
|
for ("function" == typeof n.preRun && (n.preRun = [n.preRun]); n.preRun.length;) {
|
|
3564
|
-
|
|
3470
|
+
Da();
|
|
3565
3471
|
}
|
|
3566
3472
|
}
|
|
3567
|
-
Ua(
|
|
3568
|
-
0 <
|
|
3473
|
+
Ua(Aa);
|
|
3474
|
+
0 < Ea || (n.setStatus ? (n.setStatus("Running..."), setTimeout(function() {
|
|
3569
3475
|
setTimeout(function() {
|
|
3570
3476
|
n.setStatus("");
|
|
3571
3477
|
}, 1);
|
|
@@ -3578,7 +3484,7 @@ if (n.preInit) {
|
|
|
3578
3484
|
n.preInit.pop()();
|
|
3579
3485
|
}
|
|
3580
3486
|
}
|
|
3581
|
-
|
|
3487
|
+
Yd();
|
|
3582
3488
|
|
|
3583
3489
|
|
|
3584
3490
|
|