@rive-app/webgl2-advanced 2.31.1 → 2.31.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +1 -1
- package/webgl2_advanced.mjs +613 -562
package/webgl2_advanced.mjs
CHANGED
|
@@ -5,10 +5,10 @@ var Rive = (() => {
|
|
|
5
5
|
return (
|
|
6
6
|
function(moduleArg = {}) {
|
|
7
7
|
|
|
8
|
-
var k = moduleArg, aa,
|
|
8
|
+
var k = moduleArg, aa, ba;
|
|
9
9
|
k.ready = new Promise((a, b) => {
|
|
10
10
|
aa = a;
|
|
11
|
-
|
|
11
|
+
ba = b;
|
|
12
12
|
});
|
|
13
13
|
function da() {
|
|
14
14
|
function a(g) {
|
|
@@ -22,8 +22,8 @@ function da() {
|
|
|
22
22
|
console.error(m);
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
this.
|
|
26
|
-
e && e.
|
|
25
|
+
this.ob();
|
|
26
|
+
e && e.Qb();
|
|
27
27
|
}
|
|
28
28
|
let b = 0, c = 0, d = new Map(), e = null, f = null;
|
|
29
29
|
this.requestAnimationFrame = function(g) {
|
|
@@ -36,20 +36,20 @@ function da() {
|
|
|
36
36
|
d.delete(g);
|
|
37
37
|
b && 0 == d.size && (cancelAnimationFrame(b), b = 0);
|
|
38
38
|
};
|
|
39
|
-
this.
|
|
39
|
+
this.Ob = 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(l) {
|
|
42
42
|
f.innerHTML = "RIVE FPS " + l.toFixed(1);
|
|
43
43
|
}, document.body.appendChild(f));
|
|
44
44
|
e = new function() {
|
|
45
45
|
let l = 0, p = 0;
|
|
46
|
-
this.
|
|
46
|
+
this.Qb = function() {
|
|
47
47
|
var m = performance.now();
|
|
48
48
|
p ? (++l, m -= p, 1000 < m && (g(1000 * l / m), l = p = 0)) : (p = m, l = 0);
|
|
49
49
|
};
|
|
50
50
|
}();
|
|
51
51
|
};
|
|
52
|
-
this.
|
|
52
|
+
this.ob = function() {
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
function ea() {
|
|
@@ -87,10 +87,10 @@ k.onRuntimeInitialized = function() {
|
|
|
87
87
|
};
|
|
88
88
|
k.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:e}) {
|
|
89
89
|
this.__parent.__construct.call(this);
|
|
90
|
-
this.
|
|
90
|
+
this.Eb = e;
|
|
91
91
|
}, loadContents:function(e, f) {
|
|
92
92
|
e = k.ptrToAsset(e);
|
|
93
|
-
return this.
|
|
93
|
+
return this.Eb(e, f);
|
|
94
94
|
},});
|
|
95
95
|
k.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
|
|
96
96
|
this.__parent.__construct.call(this);
|
|
@@ -115,11 +115,11 @@ k.onRuntimeInitialized = function() {
|
|
|
115
115
|
},});
|
|
116
116
|
k.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
117
117
|
this.__parent.__construct.call(this);
|
|
118
|
-
this.
|
|
118
|
+
this.kb = [];
|
|
119
119
|
}, addLoader:function(e) {
|
|
120
|
-
this.
|
|
120
|
+
this.kb.push(e);
|
|
121
121
|
}, loadContents:function(e, f) {
|
|
122
|
-
for (let g of this.
|
|
122
|
+
for (let g of this.kb) {
|
|
123
123
|
if (g.loadContents(e, f)) {
|
|
124
124
|
return !0;
|
|
125
125
|
}
|
|
@@ -133,10 +133,10 @@ k.onRuntimeInitialized = function() {
|
|
|
133
133
|
};
|
|
134
134
|
const ha = k.onRuntimeInitialized;
|
|
135
135
|
k.onRuntimeInitialized = function() {
|
|
136
|
-
function a(
|
|
137
|
-
this.F =
|
|
138
|
-
this.
|
|
139
|
-
this.
|
|
136
|
+
function a(r) {
|
|
137
|
+
this.F = r;
|
|
138
|
+
this.Db = r.getContext("2d");
|
|
139
|
+
this.Gb = d;
|
|
140
140
|
this.S = [];
|
|
141
141
|
this.la = 0;
|
|
142
142
|
this.clear = function() {
|
|
@@ -154,47 +154,47 @@ k.onRuntimeInitialized = function() {
|
|
|
154
154
|
this.transform = function(u) {
|
|
155
155
|
this.S.push(d.transform.bind(d, u));
|
|
156
156
|
};
|
|
157
|
-
this.align = function(u, y, z,
|
|
158
|
-
this.S.push(d.align.bind(d, u, y, z,
|
|
157
|
+
this.align = function(u, y, z, B, H = 1.0) {
|
|
158
|
+
this.S.push(d.align.bind(d, u, y, z, B, H));
|
|
159
159
|
};
|
|
160
160
|
this.flush = function() {
|
|
161
161
|
console.assert(0 == this.la);
|
|
162
162
|
e.add(this);
|
|
163
|
-
d
|
|
163
|
+
d.$a || c();
|
|
164
164
|
};
|
|
165
165
|
this["delete"] = function() {
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
|
-
function b(
|
|
168
|
+
function b(r, u = !1) {
|
|
169
169
|
var y = {alpha:!0, depth:u, stencil:u, antialias:u, premultipliedAlpha:!0, preserveDrawingBuffer:0, powerPreference:"high-performance", failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:!1, explicitSwapControl:0, renderViaOffscreenBackBuffer:0,};
|
|
170
|
-
u =
|
|
170
|
+
u = r.getContext("webgl2", y);
|
|
171
171
|
if (!u) {
|
|
172
172
|
return null;
|
|
173
173
|
}
|
|
174
174
|
y = ia(u, y);
|
|
175
175
|
ja(y);
|
|
176
|
-
const z = f(
|
|
177
|
-
z.
|
|
178
|
-
z.F =
|
|
179
|
-
z.
|
|
180
|
-
z.
|
|
176
|
+
const z = f(r.width, r.height);
|
|
177
|
+
z.Na = y;
|
|
178
|
+
z.F = r;
|
|
179
|
+
z.Oa = r.width;
|
|
180
|
+
z.ab = r.height;
|
|
181
181
|
z.T = u;
|
|
182
|
-
var
|
|
182
|
+
var B = z.delete;
|
|
183
183
|
z.delete = function() {
|
|
184
|
-
|
|
185
|
-
var H = this.
|
|
186
|
-
|
|
184
|
+
B.call(this);
|
|
185
|
+
var H = this.Na;
|
|
186
|
+
q === w[H] && (q = null);
|
|
187
187
|
"object" == typeof JSEvents && JSEvents.Oc(w[H].C.canvas);
|
|
188
|
-
w[H] && w[H].C.canvas && (w[H].C.canvas.
|
|
189
|
-
this.
|
|
188
|
+
w[H] && w[H].C.canvas && (w[H].C.canvas.Cb = void 0);
|
|
189
|
+
this.Na = this.F = this.Oa = this.T = w[H] = null;
|
|
190
190
|
};
|
|
191
191
|
return z;
|
|
192
192
|
}
|
|
193
193
|
function c() {
|
|
194
194
|
if (d) {
|
|
195
|
-
var
|
|
196
|
-
for (var
|
|
197
|
-
|
|
195
|
+
var r = d.Fb, u = 0, y = 0, z = 0, B = Array(e.size), H = 0;
|
|
196
|
+
for (var J of e) {
|
|
197
|
+
J.ga = Math.min(J.F.width, r), J.fa = Math.min(J.F.height, r), J.La = J.fa * J.ga, u = Math.max(u, J.ga), y = Math.max(y, J.fa), z += J.La, B[H++] = J;
|
|
198
198
|
}
|
|
199
199
|
e.clear();
|
|
200
200
|
if (!(0 >= z)) {
|
|
@@ -202,16 +202,16 @@ k.onRuntimeInitialized = function() {
|
|
|
202
202
|
for (y = 1 << (0 >= y ? 0 : 32 - Math.clz32(y - 1)); y * u < z;) {
|
|
203
203
|
u <= y ? u *= 2 : y *= 2;
|
|
204
204
|
}
|
|
205
|
-
u = Math.min(u,
|
|
206
|
-
u = Math.min(y,
|
|
207
|
-
|
|
208
|
-
z = new k.DynamicRectanizer(
|
|
209
|
-
for (
|
|
205
|
+
u = Math.min(u, r);
|
|
206
|
+
u = Math.min(y, r);
|
|
207
|
+
B.sort((ca, tb) => tb.La - ca.La);
|
|
208
|
+
z = new k.DynamicRectanizer(r);
|
|
209
|
+
for (J = 0; J < B.length;) {
|
|
210
210
|
z.reset(u, y);
|
|
211
|
-
for (H =
|
|
212
|
-
var L =
|
|
211
|
+
for (H = J; H < B.length; ++H) {
|
|
212
|
+
var L = B[H], E = z.addRect(L.ga, L.fa);
|
|
213
213
|
if (0 > E) {
|
|
214
|
-
console.assert(H >
|
|
214
|
+
console.assert(H > J);
|
|
215
215
|
break;
|
|
216
216
|
}
|
|
217
217
|
L.ra = E & 65535;
|
|
@@ -221,31 +221,31 @@ k.onRuntimeInitialized = function() {
|
|
|
221
221
|
E = m.push(z.drawHeight());
|
|
222
222
|
console.assert(L >= z.drawWidth());
|
|
223
223
|
console.assert(E >= z.drawHeight());
|
|
224
|
-
console.assert(L <=
|
|
225
|
-
console.assert(E <=
|
|
224
|
+
console.assert(L <= r);
|
|
225
|
+
console.assert(E <= r);
|
|
226
226
|
d.F.width != L && (d.F.width = L);
|
|
227
227
|
d.F.height != E && (d.F.height = E);
|
|
228
228
|
d.clear();
|
|
229
|
-
for (L =
|
|
230
|
-
E =
|
|
229
|
+
for (L = J; L < H; ++L) {
|
|
230
|
+
E = B[L];
|
|
231
231
|
d.saveClipRect(E.ra, E.sa, E.ra + E.ga, E.sa + E.fa);
|
|
232
|
-
let
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
d.transform(
|
|
232
|
+
let ca = new k.Mat2D();
|
|
233
|
+
ca.xx = E.ga / E.F.width;
|
|
234
|
+
ca.yy = E.fa / E.F.height;
|
|
235
|
+
ca.xy = ca.yx = 0;
|
|
236
|
+
ca.tx = E.ra;
|
|
237
|
+
ca.ty = E.sa;
|
|
238
|
+
d.transform(ca);
|
|
239
239
|
for (const tb of E.S) {
|
|
240
240
|
tb();
|
|
241
241
|
}
|
|
242
242
|
d.restoreClipRect();
|
|
243
243
|
E.S = [];
|
|
244
244
|
}
|
|
245
|
-
for (d.flush();
|
|
246
|
-
L =
|
|
245
|
+
for (d.flush(); J < H; ++J) {
|
|
246
|
+
L = B[J], E = L.Db, E.globalCompositeOperation = "copy", E.drawImage(d.F, L.ra, L.sa, L.ga, L.fa, 0, 0, L.F.width, L.F.height);
|
|
247
247
|
}
|
|
248
|
-
|
|
248
|
+
J = H;
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
}
|
|
@@ -253,71 +253,71 @@ k.onRuntimeInitialized = function() {
|
|
|
253
253
|
ha && ha();
|
|
254
254
|
let d = null;
|
|
255
255
|
const e = new Set(), f = k.makeRenderer;
|
|
256
|
-
k.makeRenderer = function(
|
|
256
|
+
k.makeRenderer = function(r, u) {
|
|
257
257
|
if (!d) {
|
|
258
258
|
function y(z) {
|
|
259
|
-
var
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
d = b(
|
|
263
|
-
d
|
|
264
|
-
d.
|
|
265
|
-
d.
|
|
259
|
+
var B = document.createElement("canvas");
|
|
260
|
+
B.width = 1;
|
|
261
|
+
B.height = 1;
|
|
262
|
+
d = b(B, z);
|
|
263
|
+
d.$a = !!d.T.getExtension("WEBGL_shader_pixel_local_storage");
|
|
264
|
+
d.Fb = Math.min(d.T.getParameter(d.T.MAX_RENDERBUFFER_SIZE), d.T.getParameter(d.T.MAX_TEXTURE_SIZE));
|
|
265
|
+
d.Ma = !d.$a;
|
|
266
266
|
if (z = d.T.getExtension("WEBGL_debug_renderer_info")) {
|
|
267
|
-
|
|
267
|
+
B = d.T.getParameter(z.UNMASKED_RENDERER_WEBGL), d.T.getParameter(z.UNMASKED_VENDOR_WEBGL).includes("Google") && B.includes("ANGLE Metal Renderer") && (d.Ma = !1);
|
|
268
268
|
}
|
|
269
269
|
return d;
|
|
270
270
|
}
|
|
271
271
|
d = y(!0);
|
|
272
|
-
d.
|
|
272
|
+
d.Ma || (d = y(!1));
|
|
273
273
|
}
|
|
274
|
-
return u ? new a(
|
|
274
|
+
return u ? new a(r) : b(r, d.Ma);
|
|
275
275
|
};
|
|
276
276
|
const g = k.Artboard.prototype["delete"];
|
|
277
277
|
k.Artboard.prototype["delete"] = function() {
|
|
278
|
-
this.
|
|
278
|
+
this.Hb = !0;
|
|
279
279
|
g.call(this);
|
|
280
280
|
};
|
|
281
281
|
const l = k.Artboard.prototype.draw;
|
|
282
|
-
k.Artboard.prototype.draw = function(
|
|
283
|
-
|
|
284
|
-
this.
|
|
285
|
-
}) : l.call(this,
|
|
282
|
+
k.Artboard.prototype.draw = function(r) {
|
|
283
|
+
r.S ? r.S.push(() => {
|
|
284
|
+
this.Hb || l.call(this, r.Gb);
|
|
285
|
+
}) : l.call(this, r);
|
|
286
286
|
};
|
|
287
287
|
const p = new ea(), m = new ea(), t = new da();
|
|
288
288
|
k.requestAnimationFrame = t.requestAnimationFrame.bind(t);
|
|
289
289
|
k.cancelAnimationFrame = t.cancelAnimationFrame.bind(t);
|
|
290
|
-
k.enableFPSCounter = t.
|
|
291
|
-
t.
|
|
290
|
+
k.enableFPSCounter = t.Ob.bind(t);
|
|
291
|
+
t.ob = c;
|
|
292
292
|
k.resolveAnimationFrame = c;
|
|
293
293
|
let v = k.load;
|
|
294
|
-
k.load = function(
|
|
294
|
+
k.load = function(r, u, y = !0) {
|
|
295
295
|
const z = new k.FallbackFileAssetLoader();
|
|
296
296
|
void 0 !== u && z.addLoader(u);
|
|
297
297
|
y && (u = new k.CDNFileAssetLoader(), z.addLoader(u));
|
|
298
|
-
return Promise.resolve(v(
|
|
298
|
+
return Promise.resolve(v(r, z));
|
|
299
299
|
};
|
|
300
300
|
const x = k.WebGL2Renderer.prototype.clear;
|
|
301
301
|
k.WebGL2Renderer.prototype.clear = function() {
|
|
302
|
-
ja(this.
|
|
303
|
-
const
|
|
304
|
-
if (this.
|
|
305
|
-
this.resize(
|
|
302
|
+
ja(this.Na);
|
|
303
|
+
const r = this.F;
|
|
304
|
+
if (this.Oa != r.width || this.ab != r.height) {
|
|
305
|
+
this.resize(r.width, r.height), this.Oa = r.width, this.ab = r.height;
|
|
306
306
|
}
|
|
307
307
|
x.call(this);
|
|
308
308
|
};
|
|
309
|
-
k.decodeImage = function(
|
|
310
|
-
|
|
311
|
-
u(
|
|
309
|
+
k.decodeImage = function(r, u) {
|
|
310
|
+
r = k.decodeWebGL2Image(r);
|
|
311
|
+
u(r);
|
|
312
312
|
};
|
|
313
313
|
let n = k.Renderer.prototype.align;
|
|
314
|
-
k.Renderer.prototype.align = function(
|
|
315
|
-
n.call(this,
|
|
314
|
+
k.Renderer.prototype.align = function(r, u, y, z, B = 1.0) {
|
|
315
|
+
n.call(this, r, u, y, z, B);
|
|
316
316
|
};
|
|
317
317
|
};
|
|
318
|
-
var ka = Object.assign({}, k), la = "./this.program", ma = "object" == typeof window, na = "function" == typeof importScripts,
|
|
318
|
+
var ka = Object.assign({}, k), la = "./this.program", ma = "object" == typeof window, na = "function" == typeof importScripts, A = "", oa, pa;
|
|
319
319
|
if (ma || na) {
|
|
320
|
-
na ?
|
|
320
|
+
na ? A = self.location.href : "undefined" != typeof document && document.currentScript && (A = document.currentScript.src), _scriptDir && (A = _scriptDir), 0 !== A.indexOf("blob:") ? A = A.substr(0, A.replace(/[?#].*/, "").lastIndexOf("/") + 1) : A = "", na && (pa = a => {
|
|
321
321
|
var b = new XMLHttpRequest();
|
|
322
322
|
b.open("GET", a, !1);
|
|
323
323
|
b.responseType = "arraybuffer";
|
|
@@ -342,12 +342,12 @@ var sa;
|
|
|
342
342
|
k.wasmBinary && (sa = k.wasmBinary);
|
|
343
343
|
var noExitRuntime = k.noExitRuntime || !0;
|
|
344
344
|
"object" != typeof WebAssembly && ta("no native wasm support detected");
|
|
345
|
-
var ua, C, va = !1, D, F, G, wa,
|
|
345
|
+
var ua, C, va = !1, D, F, G, wa, I, K, xa, ya;
|
|
346
346
|
function za() {
|
|
347
347
|
var a = ua.buffer;
|
|
348
348
|
k.HEAP8 = D = new Int8Array(a);
|
|
349
349
|
k.HEAP16 = G = new Int16Array(a);
|
|
350
|
-
k.HEAP32 =
|
|
350
|
+
k.HEAP32 = I = new Int32Array(a);
|
|
351
351
|
k.HEAPU8 = F = new Uint8Array(a);
|
|
352
352
|
k.HEAPU16 = wa = new Uint16Array(a);
|
|
353
353
|
k.HEAPU32 = K = new Uint32Array(a);
|
|
@@ -368,7 +368,7 @@ function ta(a) {
|
|
|
368
368
|
ra(a);
|
|
369
369
|
va = !0;
|
|
370
370
|
a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
|
|
371
|
-
|
|
371
|
+
ba(a);
|
|
372
372
|
throw a;
|
|
373
373
|
}
|
|
374
374
|
function Ia(a) {
|
|
@@ -378,7 +378,7 @@ var Ja;
|
|
|
378
378
|
Ja = "webgl2_advanced.wasm";
|
|
379
379
|
if (!Ia(Ja)) {
|
|
380
380
|
var Ka = Ja;
|
|
381
|
-
Ja = k.locateFile ? k.locateFile(Ka,
|
|
381
|
+
Ja = k.locateFile ? k.locateFile(Ka, A) : A + Ka;
|
|
382
382
|
}
|
|
383
383
|
function La(a) {
|
|
384
384
|
if (a == Ja && sa) {
|
|
@@ -421,22 +421,22 @@ function Oa(a, b) {
|
|
|
421
421
|
return Na(c, a, b);
|
|
422
422
|
}));
|
|
423
423
|
}
|
|
424
|
-
var Pa, Qa, Ua = {
|
|
424
|
+
var Pa, Qa, Ua = {534199:(a, b, c, d, e) => {
|
|
425
425
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
426
426
|
return 0;
|
|
427
427
|
}
|
|
428
428
|
if ("undefined" === typeof window.h) {
|
|
429
|
-
window.h = {
|
|
429
|
+
window.h = {Ga:0};
|
|
430
430
|
window.h.I = {};
|
|
431
|
-
window.h.I.
|
|
431
|
+
window.h.I.Ea = a;
|
|
432
432
|
window.h.I.capture = b;
|
|
433
|
-
window.h.I.
|
|
433
|
+
window.h.I.Ra = c;
|
|
434
434
|
window.h.ja = {};
|
|
435
435
|
window.h.ja.stopped = d;
|
|
436
|
-
window.h.ja.
|
|
436
|
+
window.h.ja.xb = e;
|
|
437
437
|
let f = window.h;
|
|
438
438
|
f.D = [];
|
|
439
|
-
f.
|
|
439
|
+
f.rc = function(g) {
|
|
440
440
|
for (var l = 0; l < f.D.length; ++l) {
|
|
441
441
|
if (null == f.D[l]) {
|
|
442
442
|
return f.D[l] = g, l;
|
|
@@ -445,7 +445,7 @@ var Pa, Qa, Ua = {529271:(a, b, c, d, e) => {
|
|
|
445
445
|
f.D.push(g);
|
|
446
446
|
return f.D.length - 1;
|
|
447
447
|
};
|
|
448
|
-
f.
|
|
448
|
+
f.Bb = function(g) {
|
|
449
449
|
for (f.D[g] = null; 0 < f.D.length;) {
|
|
450
450
|
if (null == f.D[f.D.length - 1]) {
|
|
451
451
|
f.D.pop();
|
|
@@ -457,38 +457,38 @@ var Pa, Qa, Ua = {529271:(a, b, c, d, e) => {
|
|
|
457
457
|
f.Qc = function(g) {
|
|
458
458
|
for (var l = 0; l < f.D.length; ++l) {
|
|
459
459
|
if (f.D[l] == g) {
|
|
460
|
-
return f.
|
|
460
|
+
return f.Bb(l);
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
};
|
|
464
464
|
f.va = function(g) {
|
|
465
465
|
return f.D[g];
|
|
466
466
|
};
|
|
467
|
-
f.
|
|
467
|
+
f.Za = ["touchend", "click"];
|
|
468
468
|
f.unlock = function() {
|
|
469
469
|
for (var g = 0; g < f.D.length; ++g) {
|
|
470
470
|
var l = f.D[g];
|
|
471
|
-
null != l && null != l.J && l.state === f.ja.
|
|
472
|
-
Ra(l.
|
|
471
|
+
null != l && null != l.J && l.state === f.ja.xb && l.J.resume().then(() => {
|
|
472
|
+
Ra(l.pb);
|
|
473
473
|
}, p => {
|
|
474
474
|
console.error("Failed to resume audiocontext", p);
|
|
475
475
|
});
|
|
476
476
|
}
|
|
477
|
-
f.
|
|
477
|
+
f.Za.map(function(p) {
|
|
478
478
|
document.removeEventListener(p, f.unlock, !0);
|
|
479
479
|
});
|
|
480
480
|
};
|
|
481
|
-
f.
|
|
481
|
+
f.Za.map(function(g) {
|
|
482
482
|
document.addEventListener(g, f.unlock, !0);
|
|
483
483
|
});
|
|
484
484
|
}
|
|
485
|
-
window.h.
|
|
485
|
+
window.h.Ga += 1;
|
|
486
486
|
return 1;
|
|
487
|
-
},
|
|
488
|
-
"undefined" !== typeof window.h && (window.h.
|
|
487
|
+
}, 536377:() => {
|
|
488
|
+
"undefined" !== typeof window.h && (window.h.Za.map(function(a) {
|
|
489
489
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
490
|
-
}), --window.h.
|
|
491
|
-
},
|
|
490
|
+
}), --window.h.Ga, 0 === window.h.Ga && delete window.h);
|
|
491
|
+
}, 536681:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 536785:() => {
|
|
492
492
|
try {
|
|
493
493
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
494
494
|
a.close();
|
|
@@ -496,23 +496,23 @@ var Pa, Qa, Ua = {529271:(a, b, c, d, e) => {
|
|
|
496
496
|
} catch (c) {
|
|
497
497
|
return 0;
|
|
498
498
|
}
|
|
499
|
-
},
|
|
499
|
+
}, 536956:(a, b, c, d, e, f) => {
|
|
500
500
|
if ("undefined" === typeof window.h) {
|
|
501
501
|
return -1;
|
|
502
502
|
}
|
|
503
503
|
var g = {}, l = {};
|
|
504
|
-
a == window.h.I.
|
|
504
|
+
a == window.h.I.Ea && 0 != c && (l.sampleRate = c);
|
|
505
505
|
g.J = new (window.AudioContext || window.webkitAudioContext)(l);
|
|
506
506
|
g.J.suspend();
|
|
507
507
|
g.state = window.h.ja.stopped;
|
|
508
508
|
c = 0;
|
|
509
|
-
a != window.h.I.
|
|
509
|
+
a != window.h.I.Ea && (c = b);
|
|
510
510
|
g.Z = g.J.createScriptProcessor(d, c, b);
|
|
511
511
|
g.Z.onaudioprocess = function(p) {
|
|
512
512
|
if (null == g.wa || 0 == g.wa.length) {
|
|
513
513
|
g.wa = new Float32Array(xa.buffer, e, d * b);
|
|
514
514
|
}
|
|
515
|
-
if (a == window.h.I.capture || a == window.h.I.
|
|
515
|
+
if (a == window.h.I.capture || a == window.h.I.Ra) {
|
|
516
516
|
for (var m = 0; m < b; m += 1) {
|
|
517
517
|
for (var t = p.inputBuffer.getChannelData(m), v = g.wa, x = 0; x < d; x += 1) {
|
|
518
518
|
v[x * b + m] = t[x];
|
|
@@ -520,7 +520,7 @@ var Pa, Qa, Ua = {529271:(a, b, c, d, e) => {
|
|
|
520
520
|
}
|
|
521
521
|
Sa(f, d, e);
|
|
522
522
|
}
|
|
523
|
-
if (a == window.h.I.
|
|
523
|
+
if (a == window.h.I.Ea || a == window.h.I.Ra) {
|
|
524
524
|
for (Ta(f, d, e), m = 0; m < p.outputBuffer.numberOfChannels; ++m) {
|
|
525
525
|
for (t = p.outputBuffer.getChannelData(m), v = g.wa, x = 0; x < d; x += 1) {
|
|
526
526
|
t[x] = v[x * b + m];
|
|
@@ -532,31 +532,31 @@ var Pa, Qa, Ua = {529271:(a, b, c, d, e) => {
|
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
};
|
|
535
|
-
a != window.h.I.capture && a != window.h.I.
|
|
536
|
-
g.
|
|
537
|
-
g.
|
|
535
|
+
a != window.h.I.capture && a != window.h.I.Ra || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(p) {
|
|
536
|
+
g.Ha = g.J.createMediaStreamSource(p);
|
|
537
|
+
g.Ha.connect(g.Z);
|
|
538
538
|
g.Z.connect(g.J.destination);
|
|
539
539
|
}).catch(function(p) {
|
|
540
540
|
console.log("Failed to get user media: " + p);
|
|
541
541
|
});
|
|
542
|
-
a == window.h.I.
|
|
543
|
-
g.
|
|
544
|
-
return window.h.
|
|
545
|
-
},
|
|
542
|
+
a == window.h.I.Ea && g.Z.connect(g.J.destination);
|
|
543
|
+
g.pb = f;
|
|
544
|
+
return window.h.rc(g);
|
|
545
|
+
}, 539833:a => window.h.va(a).J.sampleRate, 539906:a => {
|
|
546
546
|
a = window.h.va(a);
|
|
547
547
|
void 0 !== a.Z && (a.Z.onaudioprocess = function() {
|
|
548
548
|
}, a.Z.disconnect(), a.Z = void 0);
|
|
549
|
-
void 0 !== a.
|
|
549
|
+
void 0 !== a.Ha && (a.Ha.disconnect(), a.Ha = void 0);
|
|
550
550
|
a.J.close();
|
|
551
551
|
a.J = void 0;
|
|
552
|
-
a.
|
|
553
|
-
},
|
|
554
|
-
window.h.
|
|
555
|
-
},
|
|
552
|
+
a.pb = void 0;
|
|
553
|
+
}, 540306:a => {
|
|
554
|
+
window.h.Bb(a);
|
|
555
|
+
}, 540356:a => {
|
|
556
556
|
a = window.h.va(a);
|
|
557
557
|
a.J.resume();
|
|
558
|
-
a.state = window.h.ja.
|
|
559
|
-
},
|
|
558
|
+
a.state = window.h.ja.xb;
|
|
559
|
+
}, 540495:a => {
|
|
560
560
|
a = window.h.va(a);
|
|
561
561
|
a.J.suspend();
|
|
562
562
|
a.state = window.h.ja.stopped;
|
|
@@ -704,7 +704,7 @@ function ib(a, b) {
|
|
|
704
704
|
jb(a, kb);
|
|
705
705
|
}
|
|
706
706
|
var kb = {open:function(a) {
|
|
707
|
-
var b = hb[a.node.
|
|
707
|
+
var b = hb[a.node.Fa];
|
|
708
708
|
if (!b) {
|
|
709
709
|
throw new N(43);
|
|
710
710
|
}
|
|
@@ -715,12 +715,12 @@ var kb = {open:function(a) {
|
|
|
715
715
|
}, ua:function(a) {
|
|
716
716
|
a.s.V.ua(a.s);
|
|
717
717
|
}, read:function(a, b, c, d) {
|
|
718
|
-
if (!a.s || !a.s.V.
|
|
718
|
+
if (!a.s || !a.s.V.jb) {
|
|
719
719
|
throw new N(60);
|
|
720
720
|
}
|
|
721
721
|
for (var e = 0, f = 0; f < d; f++) {
|
|
722
722
|
try {
|
|
723
|
-
var g = a.s.V.
|
|
723
|
+
var g = a.s.V.jb(a.s);
|
|
724
724
|
} catch (l) {
|
|
725
725
|
throw new N(29);
|
|
726
726
|
}
|
|
@@ -736,19 +736,19 @@ var kb = {open:function(a) {
|
|
|
736
736
|
e && (a.node.timestamp = Date.now());
|
|
737
737
|
return e;
|
|
738
738
|
}, write:function(a, b, c, d) {
|
|
739
|
-
if (!a.s || !a.s.V.
|
|
739
|
+
if (!a.s || !a.s.V.Ua) {
|
|
740
740
|
throw new N(60);
|
|
741
741
|
}
|
|
742
742
|
try {
|
|
743
743
|
for (var e = 0; e < d; e++) {
|
|
744
|
-
a.s.V.
|
|
744
|
+
a.s.V.Ua(a.s, b[c + e]);
|
|
745
745
|
}
|
|
746
746
|
} catch (f) {
|
|
747
747
|
throw new N(29);
|
|
748
748
|
}
|
|
749
749
|
d && (a.node.timestamp = Date.now());
|
|
750
750
|
return e;
|
|
751
|
-
},}, lb = {
|
|
751
|
+
},}, lb = {jb:function() {
|
|
752
752
|
a: {
|
|
753
753
|
if (!db.length) {
|
|
754
754
|
var a = null;
|
|
@@ -762,17 +762,17 @@ var kb = {open:function(a) {
|
|
|
762
762
|
a = db.shift();
|
|
763
763
|
}
|
|
764
764
|
return a;
|
|
765
|
-
},
|
|
765
|
+
}, Ua:function(a, b) {
|
|
766
766
|
null === b || 10 === b ? (qa(M(a.G, 0)), a.G = []) : 0 != b && a.G.push(b);
|
|
767
767
|
}, ua:function(a) {
|
|
768
768
|
a.G && 0 < a.G.length && (qa(M(a.G, 0)), a.G = []);
|
|
769
|
-
},
|
|
770
|
-
return {
|
|
771
|
-
},
|
|
769
|
+
}, $b:function() {
|
|
770
|
+
return {xc:25856, zc:5, wc:191, yc:35387, vc:[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,]};
|
|
771
|
+
}, ac:function() {
|
|
772
772
|
return 0;
|
|
773
|
-
},
|
|
773
|
+
}, bc:function() {
|
|
774
774
|
return [24, 80];
|
|
775
|
-
},}, mb = {
|
|
775
|
+
},}, mb = {Ua:function(a, b) {
|
|
776
776
|
null === b || 10 === b ? (ra(M(a.G, 0)), a.G = []) : 0 != b && a.G.push(b);
|
|
777
777
|
}, ua:function(a) {
|
|
778
778
|
a.G && 0 < a.G.length && (ra(M(a.G, 0)), a.G = []);
|
|
@@ -787,29 +787,29 @@ var O = {O:null, U() {
|
|
|
787
787
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
788
788
|
throw new N(63);
|
|
789
789
|
}
|
|
790
|
-
O.O || (O.O = {dir:{node:{Y:O.l.Y, P:O.l.P, ma:O.l.ma,
|
|
790
|
+
O.O || (O.O = {dir:{node:{Y:O.l.Y, P:O.l.P, ma:O.l.ma, Ca:O.l.Ca, vb:O.l.vb, Ab:O.l.Ab, wb:O.l.wb, tb:O.l.tb, Ia:O.l.Ia}, stream:{ba:O.m.ba}}, file:{node:{Y:O.l.Y, P:O.l.P}, stream:{ba:O.m.ba, read:O.m.read, write:O.m.write, ta:O.m.ta, lb:O.m.lb, nb:O.m.nb}}, link:{node:{Y:O.l.Y, P:O.l.P, na:O.l.na}, stream:{}}, bb:{node:{Y:O.l.Y, P:O.l.P}, stream:ob}});
|
|
791
791
|
c = pb(a, b, c, d);
|
|
792
|
-
16384 === (c.mode & 61440) ? (c.l = O.O.dir.node, c.m = O.O.dir.stream, c.j = {}) : 32768 === (c.mode & 61440) ? (c.l = O.O.file.node, c.m = O.O.file.stream, c.v = 0, c.j = null) : 40960 === (c.mode & 61440) ? (c.l = O.O.link.node, c.m = O.O.link.stream) : 8192 === (c.mode & 61440) && (c.l = O.O.
|
|
792
|
+
16384 === (c.mode & 61440) ? (c.l = O.O.dir.node, c.m = O.O.dir.stream, c.j = {}) : 32768 === (c.mode & 61440) ? (c.l = O.O.file.node, c.m = O.O.file.stream, c.v = 0, c.j = null) : 40960 === (c.mode & 61440) ? (c.l = O.O.link.node, c.m = O.O.link.stream) : 8192 === (c.mode & 61440) && (c.l = O.O.bb.node, c.m = O.O.bb.stream);
|
|
793
793
|
c.timestamp = Date.now();
|
|
794
794
|
a && (a.j[b] = c, a.timestamp = c.timestamp);
|
|
795
795
|
return c;
|
|
796
|
-
},
|
|
796
|
+
}, Ec(a) {
|
|
797
797
|
return a.j ? a.j.subarray ? a.j.subarray(0, a.v) : new Uint8Array(a.j) : new Uint8Array(0);
|
|
798
798
|
}, l:{Y(a) {
|
|
799
799
|
var b = {};
|
|
800
|
-
b.
|
|
801
|
-
b.
|
|
800
|
+
b.Cc = 8192 === (a.mode & 61440) ? a.id : 1;
|
|
801
|
+
b.Gc = a.id;
|
|
802
802
|
b.mode = a.mode;
|
|
803
803
|
b.Lc = 1;
|
|
804
804
|
b.uid = 0;
|
|
805
|
-
b.
|
|
806
|
-
b.
|
|
805
|
+
b.Fc = 0;
|
|
806
|
+
b.Fa = a.Fa;
|
|
807
807
|
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;
|
|
808
|
-
b.
|
|
808
|
+
b.tc = new Date(a.timestamp);
|
|
809
809
|
b.Jc = new Date(a.timestamp);
|
|
810
|
-
b.
|
|
811
|
-
b.
|
|
812
|
-
b.
|
|
810
|
+
b.Ac = new Date(a.timestamp);
|
|
811
|
+
b.Ib = 4096;
|
|
812
|
+
b.uc = Math.ceil(b.size / b.Ib);
|
|
813
813
|
return b;
|
|
814
814
|
}, P(a, b) {
|
|
815
815
|
void 0 !== b.mode && (a.mode = b.mode);
|
|
@@ -826,9 +826,9 @@ var O = {O:null, U() {
|
|
|
826
826
|
}
|
|
827
827
|
}, ma() {
|
|
828
828
|
throw qb[44];
|
|
829
|
-
},
|
|
829
|
+
}, Ca(a, b, c, d) {
|
|
830
830
|
return O.createNode(a, b, c, d);
|
|
831
|
-
},
|
|
831
|
+
}, vb(a, b, c) {
|
|
832
832
|
if (16384 === (a.mode & 61440)) {
|
|
833
833
|
try {
|
|
834
834
|
var d = rb(b, c);
|
|
@@ -846,23 +846,23 @@ var O = {O:null, U() {
|
|
|
846
846
|
b.j[c] = a;
|
|
847
847
|
b.timestamp = a.parent.timestamp;
|
|
848
848
|
a.parent = b;
|
|
849
|
-
},
|
|
849
|
+
}, Ab(a, b) {
|
|
850
850
|
delete a.j[b];
|
|
851
851
|
a.timestamp = Date.now();
|
|
852
|
-
},
|
|
852
|
+
}, wb(a, b) {
|
|
853
853
|
var c = rb(a, b), d;
|
|
854
854
|
for (d in c.j) {
|
|
855
855
|
throw new N(55);
|
|
856
856
|
}
|
|
857
857
|
delete a.j[b];
|
|
858
858
|
a.timestamp = Date.now();
|
|
859
|
-
},
|
|
859
|
+
}, tb(a) {
|
|
860
860
|
var b = [".", ".."], c;
|
|
861
861
|
for (c in a.j) {
|
|
862
862
|
a.j.hasOwnProperty(c) && b.push(c);
|
|
863
863
|
}
|
|
864
864
|
return b;
|
|
865
|
-
},
|
|
865
|
+
}, Ia(a, b, c) {
|
|
866
866
|
a = O.createNode(a, b, 41471, 0);
|
|
867
867
|
a.link = c;
|
|
868
868
|
return a;
|
|
@@ -922,7 +922,7 @@ var O = {O:null, U() {
|
|
|
922
922
|
}, ta(a, b, c) {
|
|
923
923
|
nb(a.node, b + c);
|
|
924
924
|
a.node.v = Math.max(a.node.v, b + c);
|
|
925
|
-
},
|
|
925
|
+
}, lb(a, b, c, d, e) {
|
|
926
926
|
if (32768 !== (a.node.mode & 61440)) {
|
|
927
927
|
throw new N(43);
|
|
928
928
|
}
|
|
@@ -942,7 +942,7 @@ var O = {O:null, U() {
|
|
|
942
942
|
c = !1, b = a.byteOffset;
|
|
943
943
|
}
|
|
944
944
|
return {o:b, M:c};
|
|
945
|
-
},
|
|
945
|
+
}, nb(a, b, c, d) {
|
|
946
946
|
O.m.write(a, b, 0, d, c, !1);
|
|
947
947
|
return 0;
|
|
948
948
|
},},};
|
|
@@ -957,8 +957,8 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
957
957
|
if (!a) {
|
|
958
958
|
return {path:"", node:null};
|
|
959
959
|
}
|
|
960
|
-
b = Object.assign({
|
|
961
|
-
if (8 < b.
|
|
960
|
+
b = Object.assign({hb:!0, Wa:0}, b);
|
|
961
|
+
if (8 < b.Wa) {
|
|
962
962
|
throw new N(32);
|
|
963
963
|
}
|
|
964
964
|
a = a.split("/").filter(g => !!g);
|
|
@@ -969,10 +969,10 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
969
969
|
}
|
|
970
970
|
c = rb(c, a[e]);
|
|
971
971
|
d = Xa(d + "/" + a[e]);
|
|
972
|
-
c.
|
|
973
|
-
if (!f || b.
|
|
972
|
+
c.Da && (!f || f && b.hb) && (c = c.Da.root);
|
|
973
|
+
if (!f || b.gb) {
|
|
974
974
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
975
|
-
if (c = Ab(d), d = bb(Ya(d), c), c = Bb(d, {
|
|
975
|
+
if (c = Ab(d), d = bb(Ya(d), c), c = Bb(d, {Wa:b.Wa + 1}).node, 40 < f++) {
|
|
976
976
|
throw new N(32);
|
|
977
977
|
}
|
|
978
978
|
}
|
|
@@ -982,7 +982,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
982
982
|
}, Cb = a => {
|
|
983
983
|
for (var b;;) {
|
|
984
984
|
if (a === a.parent) {
|
|
985
|
-
return a = a.U.
|
|
985
|
+
return a = a.U.mb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
|
|
986
986
|
}
|
|
987
987
|
b = b ? `${a.name}/${b}` : a.name;
|
|
988
988
|
a = a.parent;
|
|
@@ -997,7 +997,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
997
997
|
if (c = (c = Eb(a, "x")) ? c : a.l.ma ? 0 : 2) {
|
|
998
998
|
throw new N(c, a);
|
|
999
999
|
}
|
|
1000
|
-
for (c = yb[Db(a.id, b)]; c; c = c.
|
|
1000
|
+
for (c = yb[Db(a.id, b)]; c; c = c.ec) {
|
|
1001
1001
|
var d = c.name;
|
|
1002
1002
|
if (c.parent.id === a.id && d === b) {
|
|
1003
1003
|
return c;
|
|
@@ -1007,7 +1007,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
1007
1007
|
}, pb = (a, b, c, d) => {
|
|
1008
1008
|
a = new Fb(a, b, c, d);
|
|
1009
1009
|
b = Db(a.parent.id, a.name);
|
|
1010
|
-
a.
|
|
1010
|
+
a.ec = yb[b];
|
|
1011
1011
|
return yb[b] = a;
|
|
1012
1012
|
}, Gb = a => {
|
|
1013
1013
|
var b = ["r", "w", "rw"][a & 3];
|
|
@@ -1065,7 +1065,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
1065
1065
|
a.X = b;
|
|
1066
1066
|
return wb[b] = a;
|
|
1067
1067
|
}, ob = {open:a => {
|
|
1068
|
-
a.m = vb[a.node.
|
|
1068
|
+
a.m = vb[a.node.Fa].m;
|
|
1069
1069
|
a.m.open && a.m.open(a);
|
|
1070
1070
|
}, ba:() => {
|
|
1071
1071
|
throw new N(70);
|
|
@@ -1077,21 +1077,21 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
1077
1077
|
throw new N(10);
|
|
1078
1078
|
}
|
|
1079
1079
|
if (!c && !d) {
|
|
1080
|
-
var e = Bb(b, {
|
|
1080
|
+
var e = Bb(b, {hb:!1});
|
|
1081
1081
|
b = e.path;
|
|
1082
1082
|
e = e.node;
|
|
1083
|
-
if (e.
|
|
1083
|
+
if (e.Da) {
|
|
1084
1084
|
throw new N(10);
|
|
1085
1085
|
}
|
|
1086
1086
|
if (16384 !== (e.mode & 61440)) {
|
|
1087
1087
|
throw new N(54);
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
|
-
b = {type:a, Nc:{},
|
|
1090
|
+
b = {type:a, Nc:{}, mb:b, dc:[]};
|
|
1091
1091
|
a = a.U(b);
|
|
1092
1092
|
a.U = b;
|
|
1093
1093
|
b.root = a;
|
|
1094
|
-
c ? ub = a : e && (e.
|
|
1094
|
+
c ? ub = a : e && (e.Da = b, e.U && e.U.dc.push(b));
|
|
1095
1095
|
}, P = (a, b, c) => {
|
|
1096
1096
|
var d = Bb(a, {parent:!0}).node;
|
|
1097
1097
|
a = Za(a);
|
|
@@ -1102,10 +1102,10 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
1102
1102
|
if (e) {
|
|
1103
1103
|
throw new N(e);
|
|
1104
1104
|
}
|
|
1105
|
-
if (!d.l.
|
|
1105
|
+
if (!d.l.Ca) {
|
|
1106
1106
|
throw new N(63);
|
|
1107
1107
|
}
|
|
1108
|
-
return d.l.
|
|
1108
|
+
return d.l.Ca(d, a, b, c);
|
|
1109
1109
|
}, Nb = (a, b, c) => {
|
|
1110
1110
|
"undefined" == typeof c && (c = b, b = 438);
|
|
1111
1111
|
P(a, b | 8192, c);
|
|
@@ -1122,10 +1122,10 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
1122
1122
|
if (d) {
|
|
1123
1123
|
throw new N(d);
|
|
1124
1124
|
}
|
|
1125
|
-
if (!c.l.
|
|
1125
|
+
if (!c.l.Ia) {
|
|
1126
1126
|
throw new N(63);
|
|
1127
1127
|
}
|
|
1128
|
-
c.l.
|
|
1128
|
+
c.l.Ia(c, b, a);
|
|
1129
1129
|
}, Ab = a => {
|
|
1130
1130
|
a = Bb(a).node;
|
|
1131
1131
|
if (!a) {
|
|
@@ -1152,7 +1152,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
1152
1152
|
} else {
|
|
1153
1153
|
a = Xa(a);
|
|
1154
1154
|
try {
|
|
1155
|
-
e = Bb(a, {
|
|
1155
|
+
e = Bb(a, {gb:!(b & 131072)}).node;
|
|
1156
1156
|
} catch (f) {
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
@@ -1178,7 +1178,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
1178
1178
|
}
|
|
1179
1179
|
if (b & 512 && !d) {
|
|
1180
1180
|
c = e;
|
|
1181
|
-
c = "string" == typeof c ? Bb(c, {
|
|
1181
|
+
c = "string" == typeof c ? Bb(c, {gb:!0}).node : c;
|
|
1182
1182
|
if (!c.l.P) {
|
|
1183
1183
|
throw new N(63);
|
|
1184
1184
|
}
|
|
@@ -1194,7 +1194,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
1194
1194
|
c.l.P(c, {size:0, timestamp:Date.now()});
|
|
1195
1195
|
}
|
|
1196
1196
|
b &= -131713;
|
|
1197
|
-
e = Lb({node:e, path:Cb(e), flags:b, seekable:!0, position:0, m:e.m,
|
|
1197
|
+
e = Lb({node:e, path:Cb(e), flags:b, seekable:!0, position:0, m:e.m, sc:[], error:!1});
|
|
1198
1198
|
e.m.open && e.m.open(e);
|
|
1199
1199
|
!k.logReadFiles || b & 1 || (Pb || (Pb = {}), a in Pb || (Pb[a] = 1));
|
|
1200
1200
|
return e;
|
|
@@ -1209,15 +1209,15 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
1209
1209
|
throw new N(28);
|
|
1210
1210
|
}
|
|
1211
1211
|
a.position = a.m.ba(a, b, c);
|
|
1212
|
-
a.
|
|
1212
|
+
a.sc = [];
|
|
1213
1213
|
}, Sb = () => {
|
|
1214
1214
|
N || (N = function(a, b) {
|
|
1215
1215
|
this.name = "ErrnoError";
|
|
1216
1216
|
this.node = b;
|
|
1217
|
-
this.
|
|
1217
|
+
this.ic = function(c) {
|
|
1218
1218
|
this.aa = c;
|
|
1219
1219
|
};
|
|
1220
|
-
this.
|
|
1220
|
+
this.ic(a);
|
|
1221
1221
|
this.message = "FS error";
|
|
1222
1222
|
}, N.prototype = Error(), N.prototype.constructor = N, [44].forEach(a => {
|
|
1223
1223
|
qb[a] = new N(a);
|
|
@@ -1265,7 +1265,7 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, N = null, qb = {},
|
|
|
1265
1265
|
}, Ub, Wb = {}, Kb, Pb, Xb = void 0;
|
|
1266
1266
|
function Yb() {
|
|
1267
1267
|
Xb += 4;
|
|
1268
|
-
return
|
|
1268
|
+
return I[Xb - 4 >> 2];
|
|
1269
1269
|
}
|
|
1270
1270
|
function Zb(a) {
|
|
1271
1271
|
if (void 0 === a) {
|
|
@@ -1283,7 +1283,7 @@ function $b(a, b) {
|
|
|
1283
1283
|
}
|
|
1284
1284
|
function ac() {
|
|
1285
1285
|
this.M = [void 0];
|
|
1286
|
-
this.
|
|
1286
|
+
this.ib = [];
|
|
1287
1287
|
}
|
|
1288
1288
|
var Q = new ac(), bc = void 0;
|
|
1289
1289
|
function R(a) {
|
|
@@ -1303,7 +1303,7 @@ var S = a => {
|
|
|
1303
1303
|
case !1:
|
|
1304
1304
|
return 4;
|
|
1305
1305
|
default:
|
|
1306
|
-
return Q.ta({
|
|
1306
|
+
return Q.ta({ub:1, value:a});
|
|
1307
1307
|
}
|
|
1308
1308
|
};
|
|
1309
1309
|
function cc(a) {
|
|
@@ -1369,7 +1369,7 @@ function sc(a, b, c) {
|
|
|
1369
1369
|
return null;
|
|
1370
1370
|
}
|
|
1371
1371
|
a = sc(a, b, c.A);
|
|
1372
|
-
return null === a ? null : c.
|
|
1372
|
+
return null === a ? null : c.Mb(a);
|
|
1373
1373
|
}
|
|
1374
1374
|
var tc = {};
|
|
1375
1375
|
function uc(a, b) {
|
|
@@ -1411,7 +1411,7 @@ function Ac(a) {
|
|
|
1411
1411
|
}
|
|
1412
1412
|
}
|
|
1413
1413
|
function Bc(a) {
|
|
1414
|
-
return this.fromWireType(
|
|
1414
|
+
return this.fromWireType(I[a >> 2]);
|
|
1415
1415
|
}
|
|
1416
1416
|
var Cc = {}, Dc = {};
|
|
1417
1417
|
function V(a, b, c) {
|
|
@@ -1419,7 +1419,7 @@ function V(a, b, c) {
|
|
|
1419
1419
|
l = c(l);
|
|
1420
1420
|
l.length !== a.length && wc("Mismatched type converter count");
|
|
1421
1421
|
for (var p = 0; p < a.length; ++p) {
|
|
1422
|
-
|
|
1422
|
+
Ec(a[p], l[p]);
|
|
1423
1423
|
}
|
|
1424
1424
|
}
|
|
1425
1425
|
a.forEach(function(l) {
|
|
@@ -1435,7 +1435,7 @@ function V(a, b, c) {
|
|
|
1435
1435
|
});
|
|
1436
1436
|
0 === f.length && d(e);
|
|
1437
1437
|
}
|
|
1438
|
-
function
|
|
1438
|
+
function Fc(a) {
|
|
1439
1439
|
switch(a) {
|
|
1440
1440
|
case 1:
|
|
1441
1441
|
return 0;
|
|
@@ -1449,11 +1449,11 @@ function Ec(a) {
|
|
|
1449
1449
|
throw new TypeError(`Unknown type size: ${a}`);
|
|
1450
1450
|
}
|
|
1451
1451
|
}
|
|
1452
|
-
function
|
|
1452
|
+
function Gc(a, b, c = {}) {
|
|
1453
1453
|
var d = b.name;
|
|
1454
1454
|
a || R(`type "${d}" must have a positive integer typeid pointer`);
|
|
1455
1455
|
if (kc.hasOwnProperty(a)) {
|
|
1456
|
-
if (c.
|
|
1456
|
+
if (c.Xb) {
|
|
1457
1457
|
return;
|
|
1458
1458
|
}
|
|
1459
1459
|
R(`Cannot register type '${d}' twice`);
|
|
@@ -1462,18 +1462,18 @@ function Fc(a, b, c = {}) {
|
|
|
1462
1462
|
delete Dc[a];
|
|
1463
1463
|
Cc.hasOwnProperty(a) && (b = Cc[a], delete Cc[a], b.forEach(e => e()));
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1465
|
+
function Ec(a, b, c = {}) {
|
|
1466
1466
|
if (!("argPackAdvance" in b)) {
|
|
1467
1467
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
1468
1468
|
}
|
|
1469
|
-
|
|
1469
|
+
Gc(a, b, c);
|
|
1470
1470
|
}
|
|
1471
|
-
function
|
|
1471
|
+
function Hc(a) {
|
|
1472
1472
|
R(a.g.u.i.name + " instance already deleted");
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1474
|
+
function Ic() {
|
|
1475
1475
|
}
|
|
1476
|
-
function
|
|
1476
|
+
function Jc(a, b, c) {
|
|
1477
1477
|
if (void 0 === a[b].B) {
|
|
1478
1478
|
var d = a[b];
|
|
1479
1479
|
a[b] = function() {
|
|
@@ -1484,50 +1484,50 @@ function Ic(a, b, c) {
|
|
|
1484
1484
|
a[b].B[d.ha] = d;
|
|
1485
1485
|
}
|
|
1486
1486
|
}
|
|
1487
|
-
function
|
|
1488
|
-
k.hasOwnProperty(a) ? ((void 0 === c || void 0 !== k[a].B && void 0 !== k[a].B[c]) && R(`Cannot register public name '${a}' twice`),
|
|
1487
|
+
function Kc(a, b, c) {
|
|
1488
|
+
k.hasOwnProperty(a) ? ((void 0 === c || void 0 !== k[a].B && void 0 !== k[a].B[c]) && R(`Cannot register public name '${a}' twice`), Jc(k, a, a), k.hasOwnProperty(c) && R(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), k[a].B[c] = b) : (k[a] = b, void 0 !== c && (k[a].Mc = c));
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1490
|
+
function Lc(a, b, c, d, e, f, g, l) {
|
|
1491
1491
|
this.name = a;
|
|
1492
1492
|
this.constructor = b;
|
|
1493
1493
|
this.N = c;
|
|
1494
1494
|
this.W = d;
|
|
1495
1495
|
this.A = e;
|
|
1496
|
-
this.
|
|
1496
|
+
this.Rb = f;
|
|
1497
1497
|
this.pa = g;
|
|
1498
|
-
this.
|
|
1499
|
-
this.
|
|
1498
|
+
this.Mb = l;
|
|
1499
|
+
this.qb = [];
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1501
|
+
function Mc(a, b, c) {
|
|
1502
1502
|
for (; b !== c;) {
|
|
1503
1503
|
b.pa || R(`Expected null or instance of ${c.name}, got an instance of ${b.name}`), a = b.pa(a), b = b.A;
|
|
1504
1504
|
}
|
|
1505
1505
|
return a;
|
|
1506
1506
|
}
|
|
1507
|
-
function
|
|
1507
|
+
function Nc(a, b) {
|
|
1508
1508
|
if (null === b) {
|
|
1509
|
-
return this.
|
|
1509
|
+
return this.Ta && R(`null is not a valid ${this.name}`), 0;
|
|
1510
1510
|
}
|
|
1511
|
-
b.g || R(`Cannot pass "${
|
|
1511
|
+
b.g || R(`Cannot pass "${Oc(b)}" as a ${this.name}`);
|
|
1512
1512
|
b.g.o || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1513
|
-
return
|
|
1513
|
+
return Mc(b.g.o, b.g.u.i, this.i);
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function Pc(a, b) {
|
|
1516
1516
|
if (null === b) {
|
|
1517
|
-
this.
|
|
1517
|
+
this.Ta && R(`null is not a valid ${this.name}`);
|
|
1518
1518
|
if (this.ya) {
|
|
1519
|
-
var c = this.
|
|
1519
|
+
var c = this.Va();
|
|
1520
1520
|
null !== a && a.push(this.W, c);
|
|
1521
1521
|
return c;
|
|
1522
1522
|
}
|
|
1523
1523
|
return 0;
|
|
1524
1524
|
}
|
|
1525
|
-
b.g || R(`Cannot pass "${
|
|
1525
|
+
b.g || R(`Cannot pass "${Oc(b)}" as a ${this.name}`);
|
|
1526
1526
|
b.g.o || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1527
1527
|
!this.xa && b.g.u.xa && R(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1528
|
-
c =
|
|
1528
|
+
c = Mc(b.g.o, b.g.u.i, this.i);
|
|
1529
1529
|
if (this.ya) {
|
|
1530
|
-
switch(void 0 === b.g.H && R("Passing raw pointer to smart pointer is illegal"), this.
|
|
1530
|
+
switch(void 0 === b.g.H && R("Passing raw pointer to smart pointer is illegal"), this.mc) {
|
|
1531
1531
|
case 0:
|
|
1532
1532
|
b.g.L === this ? c = b.g.H : R(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1533
1533
|
break;
|
|
@@ -1539,7 +1539,7 @@ function Oc(a, b) {
|
|
|
1539
1539
|
c = b.g.H;
|
|
1540
1540
|
} else {
|
|
1541
1541
|
var d = b.clone();
|
|
1542
|
-
c = this.
|
|
1542
|
+
c = this.hc(c, T(function() {
|
|
1543
1543
|
d["delete"]();
|
|
1544
1544
|
}));
|
|
1545
1545
|
null !== a && a.push(this.W, c);
|
|
@@ -1551,33 +1551,33 @@ function Oc(a, b) {
|
|
|
1551
1551
|
}
|
|
1552
1552
|
return c;
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function Qc(a, b) {
|
|
1555
1555
|
if (null === b) {
|
|
1556
|
-
return this.
|
|
1556
|
+
return this.Ta && R(`null is not a valid ${this.name}`), 0;
|
|
1557
1557
|
}
|
|
1558
|
-
b.g || R(`Cannot pass "${
|
|
1558
|
+
b.g || R(`Cannot pass "${Oc(b)}" as a ${this.name}`);
|
|
1559
1559
|
b.g.o || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1560
1560
|
b.g.u.xa && R(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1561
|
-
return
|
|
1561
|
+
return Mc(b.g.o, b.g.u.i, this.i);
|
|
1562
1562
|
}
|
|
1563
|
-
function
|
|
1563
|
+
function Rc(a, b, c, d) {
|
|
1564
1564
|
this.name = a;
|
|
1565
1565
|
this.i = b;
|
|
1566
|
-
this.
|
|
1566
|
+
this.Ta = c;
|
|
1567
1567
|
this.xa = d;
|
|
1568
1568
|
this.ya = !1;
|
|
1569
|
-
this.W = this.
|
|
1570
|
-
void 0 !== b.A ? this.toWireType =
|
|
1569
|
+
this.W = this.hc = this.Va = this.sb = this.mc = this.fc = void 0;
|
|
1570
|
+
void 0 !== b.A ? this.toWireType = Pc : (this.toWireType = d ? Nc : Qc, this.K = null);
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1572
|
+
function Sc(a, b, c) {
|
|
1573
1573
|
k.hasOwnProperty(a) || wc("Replacing nonexistant public symbol");
|
|
1574
1574
|
void 0 !== k[a].B && void 0 !== c ? k[a].B[c] = b : (k[a] = b, k[a].ha = c);
|
|
1575
1575
|
}
|
|
1576
|
-
var
|
|
1577
|
-
var b =
|
|
1578
|
-
b || (a >=
|
|
1576
|
+
var Tc = [], Uc = a => {
|
|
1577
|
+
var b = Tc[a];
|
|
1578
|
+
b || (a >= Tc.length && (Tc.length = a + 1), Tc[a] = b = Aa.get(a));
|
|
1579
1579
|
return b;
|
|
1580
|
-
},
|
|
1580
|
+
}, Vc = (a, b) => {
|
|
1581
1581
|
var c = [];
|
|
1582
1582
|
return function() {
|
|
1583
1583
|
c.length = 0;
|
|
@@ -1586,27 +1586,27 @@ var Sc = [], Tc = a => {
|
|
|
1586
1586
|
var d = k["dynCall_" + a];
|
|
1587
1587
|
d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
|
|
1588
1588
|
} else {
|
|
1589
|
-
d =
|
|
1589
|
+
d = Uc(b).apply(null, c);
|
|
1590
1590
|
}
|
|
1591
1591
|
return d;
|
|
1592
1592
|
};
|
|
1593
1593
|
};
|
|
1594
|
-
function
|
|
1594
|
+
function W(a, b) {
|
|
1595
1595
|
a = U(a);
|
|
1596
|
-
var c = a.includes("j") ?
|
|
1596
|
+
var c = a.includes("j") ? Vc(a, b) : Uc(b);
|
|
1597
1597
|
"function" != typeof c && R(`unknown function pointer with signature ${a}: ${b}`);
|
|
1598
1598
|
return c;
|
|
1599
1599
|
}
|
|
1600
|
-
var
|
|
1601
|
-
function
|
|
1600
|
+
var Wc = void 0;
|
|
1601
|
+
function Xc(a, b) {
|
|
1602
1602
|
function c(f) {
|
|
1603
1603
|
e[f] || kc[f] || (Dc[f] ? Dc[f].forEach(c) : (d.push(f), e[f] = !0));
|
|
1604
1604
|
}
|
|
1605
1605
|
var d = [], e = {};
|
|
1606
1606
|
b.forEach(c);
|
|
1607
|
-
throw new
|
|
1607
|
+
throw new Wc(`${a}: ` + d.map(lc).join([", "]));
|
|
1608
1608
|
}
|
|
1609
|
-
function
|
|
1609
|
+
function Yc(a, b, c, d, e) {
|
|
1610
1610
|
var f = b.length;
|
|
1611
1611
|
2 > f && R("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1612
1612
|
var g = null !== b[1] && null !== c, l = !1;
|
|
@@ -1626,10 +1626,10 @@ function Xc(a, b, c, d, e) {
|
|
|
1626
1626
|
var n = b[1].toWireType(x, this);
|
|
1627
1627
|
v[1] = n;
|
|
1628
1628
|
}
|
|
1629
|
-
for (var
|
|
1630
|
-
t[
|
|
1629
|
+
for (var r = 0; r < m; ++r) {
|
|
1630
|
+
t[r] = b[r + 2].toWireType(x, arguments[r]), v.push(t[r]);
|
|
1631
1631
|
}
|
|
1632
|
-
|
|
1632
|
+
r = d.apply(null, v);
|
|
1633
1633
|
if (l) {
|
|
1634
1634
|
Ac(x);
|
|
1635
1635
|
} else {
|
|
@@ -1638,26 +1638,26 @@ function Xc(a, b, c, d, e) {
|
|
|
1638
1638
|
null !== b[u].K && b[u].K(y);
|
|
1639
1639
|
}
|
|
1640
1640
|
}
|
|
1641
|
-
n = p ? b[0].fromWireType(
|
|
1641
|
+
n = p ? b[0].fromWireType(r) : void 0;
|
|
1642
1642
|
return n;
|
|
1643
1643
|
};
|
|
1644
1644
|
}
|
|
1645
|
-
function
|
|
1645
|
+
function Zc(a, b) {
|
|
1646
1646
|
for (var c = [], d = 0; d < a; d++) {
|
|
1647
1647
|
c.push(K[b + 4 * d >> 2]);
|
|
1648
1648
|
}
|
|
1649
1649
|
return c;
|
|
1650
1650
|
}
|
|
1651
|
-
function
|
|
1651
|
+
function $c(a, b, c) {
|
|
1652
1652
|
a instanceof Object || R(`${c} with invalid "this": ${a}`);
|
|
1653
1653
|
a instanceof b.i.constructor || R(`${c} incompatible with "this" of type ${a.constructor.name}`);
|
|
1654
1654
|
a.g.o || R(`cannot call emscripten binding method ${c} on deleted object`);
|
|
1655
|
-
return
|
|
1655
|
+
return Mc(a.g.o, a.g.u.i, b.i);
|
|
1656
1656
|
}
|
|
1657
|
-
function
|
|
1658
|
-
a >= Q.h && 0 === --Q.get(a).
|
|
1657
|
+
function ad(a) {
|
|
1658
|
+
a >= Q.h && 0 === --Q.get(a).ub && Q.Wb(a);
|
|
1659
1659
|
}
|
|
1660
|
-
function
|
|
1660
|
+
function bd(a, b, c) {
|
|
1661
1661
|
switch(b) {
|
|
1662
1662
|
case 0:
|
|
1663
1663
|
return function(d) {
|
|
@@ -1669,20 +1669,20 @@ function ad(a, b, c) {
|
|
|
1669
1669
|
};
|
|
1670
1670
|
case 2:
|
|
1671
1671
|
return function(d) {
|
|
1672
|
-
return this.fromWireType((c ?
|
|
1672
|
+
return this.fromWireType((c ? I : K)[d >> 2]);
|
|
1673
1673
|
};
|
|
1674
1674
|
default:
|
|
1675
1675
|
throw new TypeError("Unknown integer type: " + a);
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
|
-
function
|
|
1678
|
+
function Oc(a) {
|
|
1679
1679
|
if (null === a) {
|
|
1680
1680
|
return "null";
|
|
1681
1681
|
}
|
|
1682
1682
|
var b = typeof a;
|
|
1683
1683
|
return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
|
|
1684
1684
|
}
|
|
1685
|
-
function
|
|
1685
|
+
function cd(a, b) {
|
|
1686
1686
|
switch(b) {
|
|
1687
1687
|
case 2:
|
|
1688
1688
|
return function(c) {
|
|
@@ -1696,7 +1696,7 @@ function bd(a, b) {
|
|
|
1696
1696
|
throw new TypeError("Unknown float type: " + a);
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1699
|
+
function dd(a, b, c) {
|
|
1700
1700
|
switch(b) {
|
|
1701
1701
|
case 0:
|
|
1702
1702
|
return c ? function(d) {
|
|
@@ -1712,7 +1712,7 @@ function cd(a, b, c) {
|
|
|
1712
1712
|
};
|
|
1713
1713
|
case 2:
|
|
1714
1714
|
return c ? function(d) {
|
|
1715
|
-
return
|
|
1715
|
+
return I[d >> 2];
|
|
1716
1716
|
} : function(d) {
|
|
1717
1717
|
return K[d >> 2];
|
|
1718
1718
|
};
|
|
@@ -1720,14 +1720,14 @@ function cd(a, b, c) {
|
|
|
1720
1720
|
throw new TypeError("Unknown integer type: " + a);
|
|
1721
1721
|
}
|
|
1722
1722
|
}
|
|
1723
|
-
var
|
|
1723
|
+
var ed = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, fd = (a, b) => {
|
|
1724
1724
|
var c = a >> 1;
|
|
1725
1725
|
for (var d = c + b / 2; !(c >= d) && wa[c];) {
|
|
1726
1726
|
++c;
|
|
1727
1727
|
}
|
|
1728
1728
|
c <<= 1;
|
|
1729
|
-
if (32 < c - a &&
|
|
1730
|
-
return
|
|
1729
|
+
if (32 < c - a && ed) {
|
|
1730
|
+
return ed.decode(F.subarray(a, c));
|
|
1731
1731
|
}
|
|
1732
1732
|
c = "";
|
|
1733
1733
|
for (d = 0; !(d >= b / 2); ++d) {
|
|
@@ -1738,7 +1738,7 @@ var dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1738
1738
|
c += String.fromCharCode(e);
|
|
1739
1739
|
}
|
|
1740
1740
|
return c;
|
|
1741
|
-
},
|
|
1741
|
+
}, gd = (a, b, c) => {
|
|
1742
1742
|
void 0 === c && (c = 2147483647);
|
|
1743
1743
|
if (2 > c) {
|
|
1744
1744
|
return 0;
|
|
@@ -1751,9 +1751,9 @@ var dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1751
1751
|
}
|
|
1752
1752
|
G[b >> 1] = 0;
|
|
1753
1753
|
return b - d;
|
|
1754
|
-
},
|
|
1754
|
+
}, hd = a => 2 * a.length, jd = (a, b) => {
|
|
1755
1755
|
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
1756
|
-
var e =
|
|
1756
|
+
var e = I[a + 4 * c >> 2];
|
|
1757
1757
|
if (0 == e) {
|
|
1758
1758
|
break;
|
|
1759
1759
|
}
|
|
@@ -1761,7 +1761,7 @@ var dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1761
1761
|
65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
|
|
1762
1762
|
}
|
|
1763
1763
|
return d;
|
|
1764
|
-
},
|
|
1764
|
+
}, kd = (a, b, c) => {
|
|
1765
1765
|
void 0 === c && (c = 2147483647);
|
|
1766
1766
|
if (4 > c) {
|
|
1767
1767
|
return 0;
|
|
@@ -1774,77 +1774,77 @@ var dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1774
1774
|
var g = a.charCodeAt(++e);
|
|
1775
1775
|
f = 65536 + ((f & 1023) << 10) | g & 1023;
|
|
1776
1776
|
}
|
|
1777
|
-
|
|
1777
|
+
I[b >> 2] = f;
|
|
1778
1778
|
b += 4;
|
|
1779
1779
|
if (b + 4 > c) {
|
|
1780
1780
|
break;
|
|
1781
1781
|
}
|
|
1782
1782
|
}
|
|
1783
|
-
|
|
1783
|
+
I[b >> 2] = 0;
|
|
1784
1784
|
return b - d;
|
|
1785
|
-
},
|
|
1785
|
+
}, ld = a => {
|
|
1786
1786
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
1787
1787
|
var d = a.charCodeAt(c);
|
|
1788
1788
|
55296 <= d && 57343 >= d && ++c;
|
|
1789
1789
|
b += 4;
|
|
1790
1790
|
}
|
|
1791
1791
|
return b;
|
|
1792
|
-
},
|
|
1793
|
-
function
|
|
1794
|
-
var b =
|
|
1792
|
+
}, md = {};
|
|
1793
|
+
function nd(a) {
|
|
1794
|
+
var b = md[a];
|
|
1795
1795
|
return void 0 === b ? U(a) : b;
|
|
1796
1796
|
}
|
|
1797
|
-
var
|
|
1798
|
-
function
|
|
1799
|
-
var b =
|
|
1800
|
-
|
|
1797
|
+
var od = [];
|
|
1798
|
+
function pd(a) {
|
|
1799
|
+
var b = od.length;
|
|
1800
|
+
od.push(a);
|
|
1801
1801
|
return b;
|
|
1802
1802
|
}
|
|
1803
|
-
function
|
|
1803
|
+
function qd(a, b) {
|
|
1804
1804
|
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
1805
1805
|
c[d] = oc(K[b + 4 * d >> 2], "parameter " + d);
|
|
1806
1806
|
}
|
|
1807
1807
|
return c;
|
|
1808
1808
|
}
|
|
1809
|
-
var
|
|
1810
|
-
function sd(a) {
|
|
1811
|
-
a.Ac = a.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
|
|
1812
|
-
}
|
|
1809
|
+
var rd = [], sd = [];
|
|
1813
1810
|
function td(a) {
|
|
1811
|
+
a.Dc = a.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
|
|
1812
|
+
}
|
|
1813
|
+
function ud(a) {
|
|
1814
1814
|
a.Ic = a.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
|
|
1815
1815
|
}
|
|
1816
|
-
var
|
|
1816
|
+
var vd = 1, wd = [], X = [], xd = [], yd = [], zd = [], Ad = [], Bd = [], w = [], Cd = {};
|
|
1817
1817
|
function Y(a) {
|
|
1818
1818
|
Dd || (Dd = a);
|
|
1819
1819
|
}
|
|
1820
1820
|
function Ed(a) {
|
|
1821
|
-
for (var b =
|
|
1821
|
+
for (var b = vd++, c = a.length; c < b; c++) {
|
|
1822
1822
|
a[c] = null;
|
|
1823
1823
|
}
|
|
1824
1824
|
return b;
|
|
1825
1825
|
}
|
|
1826
1826
|
function ia(a, b) {
|
|
1827
|
-
var c = Ed(w), d = {handle:c, attributes:b, version:b.
|
|
1828
|
-
a.canvas && (a.canvas.
|
|
1827
|
+
var c = Ed(w), d = {handle:c, attributes:b, version:b.Hc, C:a};
|
|
1828
|
+
a.canvas && (a.canvas.Cb = d);
|
|
1829
1829
|
w[c] = d;
|
|
1830
|
-
("undefined" == typeof b.
|
|
1830
|
+
("undefined" == typeof b.Nb || b.Nb) && Fd(d);
|
|
1831
1831
|
return c;
|
|
1832
1832
|
}
|
|
1833
1833
|
function ja(a) {
|
|
1834
|
-
|
|
1835
|
-
k.
|
|
1834
|
+
q = w[a];
|
|
1835
|
+
k.Bc = Z = q && q.C;
|
|
1836
1836
|
return !(a && !Z);
|
|
1837
1837
|
}
|
|
1838
1838
|
function Fd(a) {
|
|
1839
|
-
a || (a =
|
|
1840
|
-
if (!a.
|
|
1841
|
-
a.
|
|
1839
|
+
a || (a = q);
|
|
1840
|
+
if (!a.Yb) {
|
|
1841
|
+
a.Yb = !0;
|
|
1842
1842
|
var b = a.C;
|
|
1843
|
-
sd(b);
|
|
1844
1843
|
td(b);
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1844
|
+
ud(b);
|
|
1845
|
+
2 <= a.version && (b.eb = b.getExtension("EXT_disjoint_timer_query_webgl2"));
|
|
1846
|
+
if (2 > a.version || !b.eb) {
|
|
1847
|
+
b.eb = b.getExtension("EXT_disjoint_timer_query");
|
|
1848
1848
|
}
|
|
1849
1849
|
Gd(b);
|
|
1850
1850
|
(b.getSupportedExtensions() || []).forEach(function(c) {
|
|
@@ -1852,7 +1852,7 @@ function Fd(a) {
|
|
|
1852
1852
|
});
|
|
1853
1853
|
}
|
|
1854
1854
|
}
|
|
1855
|
-
var Dd,
|
|
1855
|
+
var Dd, q;
|
|
1856
1856
|
function Gd(a) {
|
|
1857
1857
|
a.Kc = a.getExtension("WEBGL_multi_draw");
|
|
1858
1858
|
}
|
|
@@ -1874,7 +1874,7 @@ function Ld(a, b, c, d) {
|
|
|
1874
1874
|
for (var e = 0; e < a; e++) {
|
|
1875
1875
|
var f = Z[c](), g = f && Ed(d);
|
|
1876
1876
|
f ? (f.name = g, d[g] = f) : Y(1282);
|
|
1877
|
-
|
|
1877
|
+
I[b + 4 * e >> 2] = g;
|
|
1878
1878
|
}
|
|
1879
1879
|
}
|
|
1880
1880
|
function Md(a, b) {
|
|
@@ -1895,7 +1895,7 @@ function Md(a, b) {
|
|
|
1895
1895
|
c = d ? d.length : 0;
|
|
1896
1896
|
break;
|
|
1897
1897
|
case 33309:
|
|
1898
|
-
if (2 >
|
|
1898
|
+
if (2 > q.version) {
|
|
1899
1899
|
Y(1282);
|
|
1900
1900
|
return;
|
|
1901
1901
|
}
|
|
@@ -1903,7 +1903,7 @@ function Md(a, b) {
|
|
|
1903
1903
|
break;
|
|
1904
1904
|
case 33307:
|
|
1905
1905
|
case 33308:
|
|
1906
|
-
if (2 >
|
|
1906
|
+
if (2 > q.version) {
|
|
1907
1907
|
Y(1280);
|
|
1908
1908
|
return;
|
|
1909
1909
|
}
|
|
@@ -1951,7 +1951,7 @@ function Md(a, b) {
|
|
|
1951
1951
|
} else {
|
|
1952
1952
|
if (d instanceof Float32Array || d instanceof Uint32Array || d instanceof Int32Array || d instanceof Array) {
|
|
1953
1953
|
for (a = 0; a < d.length; ++a) {
|
|
1954
|
-
|
|
1954
|
+
I[b + 4 * a >> 2] = d[a];
|
|
1955
1955
|
}
|
|
1956
1956
|
return;
|
|
1957
1957
|
}
|
|
@@ -1970,7 +1970,7 @@ function Md(a, b) {
|
|
|
1970
1970
|
return;
|
|
1971
1971
|
}
|
|
1972
1972
|
}
|
|
1973
|
-
|
|
1973
|
+
I[b >> 2] = c;
|
|
1974
1974
|
} else {
|
|
1975
1975
|
Y(1281);
|
|
1976
1976
|
}
|
|
@@ -1983,22 +1983,26 @@ var Od = a => {
|
|
|
1983
1983
|
function Pd(a) {
|
|
1984
1984
|
return "]" == a.slice(-1) && a.lastIndexOf("[");
|
|
1985
1985
|
}
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1986
|
+
function Qd(a) {
|
|
1987
|
+
a -= 5120;
|
|
1988
|
+
return 0 == a ? D : 1 == a ? F : 2 == a ? G : 4 == a ? I : 6 == a ? xa : 5 == a || 28922 == a || 28520 == a || 30779 == a || 30782 == a ? K : wa;
|
|
1989
|
+
}
|
|
1990
|
+
var Rd = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Sd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Td = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ud = (a, b, c, d) => {
|
|
1991
|
+
function e(n, r, u) {
|
|
1992
|
+
for (n = "number" == typeof n ? n.toString() : n || ""; n.length < r;) {
|
|
1989
1993
|
n = u[0] + n;
|
|
1990
1994
|
}
|
|
1991
1995
|
return n;
|
|
1992
1996
|
}
|
|
1993
|
-
function f(n,
|
|
1994
|
-
return e(n,
|
|
1997
|
+
function f(n, r) {
|
|
1998
|
+
return e(n, r, "0");
|
|
1995
1999
|
}
|
|
1996
|
-
function g(n,
|
|
2000
|
+
function g(n, r) {
|
|
1997
2001
|
function u(z) {
|
|
1998
2002
|
return 0 > z ? -1 : 0 < z ? 1 : 0;
|
|
1999
2003
|
}
|
|
2000
2004
|
var y;
|
|
2001
|
-
0 === (y = u(n.getFullYear() -
|
|
2005
|
+
0 === (y = u(n.getFullYear() - r.getFullYear())) && 0 === (y = u(n.getMonth() - r.getMonth())) && (y = u(n.getDate() - r.getDate()));
|
|
2002
2006
|
return y;
|
|
2003
2007
|
}
|
|
2004
2008
|
function l(n) {
|
|
@@ -2020,54 +2024,54 @@ var Qd = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Rd = [31, 29, 31,
|
|
|
2020
2024
|
}
|
|
2021
2025
|
}
|
|
2022
2026
|
function p(n) {
|
|
2023
|
-
var
|
|
2024
|
-
for (n = new Date((new Date(n.ea + 1900, 0, 1)).getTime()); 0 <
|
|
2025
|
-
var u = n.getMonth(), y = (
|
|
2026
|
-
if (
|
|
2027
|
-
|
|
2027
|
+
var r = n.da;
|
|
2028
|
+
for (n = new Date((new Date(n.ea + 1900, 0, 1)).getTime()); 0 < r;) {
|
|
2029
|
+
var u = n.getMonth(), y = (Rd(n.getFullYear()) ? Sd : Td)[u];
|
|
2030
|
+
if (r > y - n.getDate()) {
|
|
2031
|
+
r -= y - n.getDate() + 1, n.setDate(1), 11 > u ? n.setMonth(u + 1) : (n.setMonth(0), n.setFullYear(n.getFullYear() + 1));
|
|
2028
2032
|
} else {
|
|
2029
|
-
n.setDate(n.getDate() +
|
|
2033
|
+
n.setDate(n.getDate() + r);
|
|
2030
2034
|
break;
|
|
2031
2035
|
}
|
|
2032
2036
|
}
|
|
2033
2037
|
u = new Date(n.getFullYear() + 1, 0, 4);
|
|
2034
|
-
|
|
2038
|
+
r = l(new Date(n.getFullYear(), 0, 4));
|
|
2035
2039
|
u = l(u);
|
|
2036
|
-
return 0 >= g(
|
|
2040
|
+
return 0 >= g(r, n) ? 0 >= g(u, n) ? n.getFullYear() + 1 : n.getFullYear() : n.getFullYear() - 1;
|
|
2037
2041
|
}
|
|
2038
|
-
var m =
|
|
2039
|
-
d = {
|
|
2042
|
+
var m = I[d + 40 >> 2];
|
|
2043
|
+
d = {pc:I[d >> 2], oc:I[d + 4 >> 2], Ja:I[d + 8 >> 2], Xa:I[d + 12 >> 2], Ka:I[d + 16 >> 2], ea:I[d + 20 >> 2], R:I[d + 24 >> 2], da:I[d + 28 >> 2], Pc:I[d + 32 >> 2], nc:I[d + 36 >> 2], qc:m ? m ? M(F, m) : "" : ""};
|
|
2040
2044
|
c = c ? M(F, c) : "";
|
|
2041
2045
|
m = {"%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",};
|
|
2042
2046
|
for (var t in m) {
|
|
2043
2047
|
c = c.replace(new RegExp(t, "g"), m[t]);
|
|
2044
2048
|
}
|
|
2045
2049
|
var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), x = "January February March April May June July August September October November December".split(" ");
|
|
2046
|
-
m = {"%a":n => v[n.R].substring(0, 3), "%A":n => v[n.R], "%b":n => x[n.
|
|
2047
|
-
n = n.
|
|
2050
|
+
m = {"%a":n => v[n.R].substring(0, 3), "%A":n => v[n.R], "%b":n => x[n.Ka].substring(0, 3), "%B":n => x[n.Ka], "%C":n => f((n.ea + 1900) / 100 | 0, 2), "%d":n => f(n.Xa, 2), "%e":n => e(n.Xa, 2, " "), "%g":n => p(n).toString().substring(2), "%G":n => p(n), "%H":n => f(n.Ja, 2), "%I":n => {
|
|
2051
|
+
n = n.Ja;
|
|
2048
2052
|
0 == n ? n = 12 : 12 < n && (n -= 12);
|
|
2049
2053
|
return f(n, 2);
|
|
2050
2054
|
}, "%j":n => {
|
|
2051
|
-
for (var
|
|
2052
|
-
}
|
|
2053
|
-
return f(n.
|
|
2054
|
-
}, "%m":n => f(n.
|
|
2055
|
-
var
|
|
2056
|
-
2 >= (n.R + 371 - n.da - 2) % 7 &&
|
|
2057
|
-
if (
|
|
2058
|
-
53 ==
|
|
2055
|
+
for (var r = 0, u = 0; u <= n.Ka - 1; r += (Rd(n.ea + 1900) ? Sd : Td)[u++]) {
|
|
2056
|
+
}
|
|
2057
|
+
return f(n.Xa + r, 3);
|
|
2058
|
+
}, "%m":n => f(n.Ka + 1, 2), "%M":n => f(n.oc, 2), "%n":() => "\n", "%p":n => 0 <= n.Ja && 12 > n.Ja ? "AM" : "PM", "%S":n => f(n.pc, 2), "%t":() => "\t", "%u":n => n.R || 7, "%U":n => f(Math.floor((n.da + 7 - n.R) / 7), 2), "%V":n => {
|
|
2059
|
+
var r = Math.floor((n.da + 7 - (n.R + 6) % 7) / 7);
|
|
2060
|
+
2 >= (n.R + 371 - n.da - 2) % 7 && r++;
|
|
2061
|
+
if (r) {
|
|
2062
|
+
53 == r && (u = (n.R + 371 - n.da) % 7, 4 == u || 3 == u && Rd(n.ea) || (r = 1));
|
|
2059
2063
|
} else {
|
|
2060
|
-
|
|
2064
|
+
r = 52;
|
|
2061
2065
|
var u = (n.R + 7 - n.da - 1) % 7;
|
|
2062
|
-
(4 == u || 5 == u &&
|
|
2066
|
+
(4 == u || 5 == u && Rd(n.ea % 400 - 1)) && r++;
|
|
2063
2067
|
}
|
|
2064
|
-
return f(
|
|
2068
|
+
return f(r, 2);
|
|
2065
2069
|
}, "%w":n => n.R, "%W":n => f(Math.floor((n.da + 7 - (n.R + 6) % 7) / 7), 2), "%y":n => (n.ea + 1900).toString().substring(2), "%Y":n => n.ea + 1900, "%z":n => {
|
|
2066
|
-
n = n.
|
|
2067
|
-
var
|
|
2070
|
+
n = n.nc;
|
|
2071
|
+
var r = 0 <= n;
|
|
2068
2072
|
n = Math.abs(n) / 60;
|
|
2069
|
-
return (
|
|
2070
|
-
}, "%Z":n => n.
|
|
2073
|
+
return (r ? "+" : "-") + String("0000" + (n / 60 * 100 + n % 60)).slice(-4);
|
|
2074
|
+
}, "%Z":n => n.qc, "%%":() => "%"};
|
|
2071
2075
|
c = c.replace(/%%/g, "\x00\x00");
|
|
2072
2076
|
for (t in m) {
|
|
2073
2077
|
c.includes(t) && (c = c.replace(new RegExp(t, "g"), m[t](d)));
|
|
@@ -2084,13 +2088,13 @@ function Fb(a, b, c, d) {
|
|
|
2084
2088
|
a || (a = this);
|
|
2085
2089
|
this.parent = a;
|
|
2086
2090
|
this.U = a.U;
|
|
2087
|
-
this.
|
|
2091
|
+
this.Da = null;
|
|
2088
2092
|
this.id = xb++;
|
|
2089
2093
|
this.name = b;
|
|
2090
2094
|
this.mode = c;
|
|
2091
2095
|
this.l = {};
|
|
2092
2096
|
this.m = {};
|
|
2093
|
-
this.
|
|
2097
|
+
this.Fa = d;
|
|
2094
2098
|
}
|
|
2095
2099
|
Object.defineProperties(Fb.prototype, {read:{get:function() {
|
|
2096
2100
|
return 365 === (this.mode & 365);
|
|
@@ -2132,7 +2136,7 @@ P("/home/web_user", 16895, 0);
|
|
|
2132
2136
|
var b = pb(a, "fd", 16895, 73);
|
|
2133
2137
|
b.l = {ma:(c, d) => {
|
|
2134
2138
|
var e = Jb(+d);
|
|
2135
|
-
c = {parent:null, U:{
|
|
2139
|
+
c = {parent:null, U:{mb:"fake"}, l:{na:() => e.path},};
|
|
2136
2140
|
return c.parent = c;
|
|
2137
2141
|
}};
|
|
2138
2142
|
return b;
|
|
@@ -2143,12 +2147,12 @@ Object.assign(ac.prototype, {get(a) {
|
|
|
2143
2147
|
}, has(a) {
|
|
2144
2148
|
return void 0 !== this.M[a];
|
|
2145
2149
|
}, ta(a) {
|
|
2146
|
-
var b = this.
|
|
2150
|
+
var b = this.ib.pop() || this.M.length;
|
|
2147
2151
|
this.M[b] = a;
|
|
2148
2152
|
return b;
|
|
2149
|
-
},
|
|
2153
|
+
}, Wb(a) {
|
|
2150
2154
|
this.M[a] = void 0;
|
|
2151
|
-
this.
|
|
2155
|
+
this.ib.push(a);
|
|
2152
2156
|
}});
|
|
2153
2157
|
bc = k.BindingError = class extends Error {
|
|
2154
2158
|
constructor(a) {
|
|
@@ -2165,10 +2169,10 @@ k.count_emval_handles = function() {
|
|
|
2165
2169
|
return a;
|
|
2166
2170
|
};
|
|
2167
2171
|
dc = k.PureVirtualError = cc("PureVirtualError");
|
|
2168
|
-
for (var
|
|
2169
|
-
|
|
2172
|
+
for (var Vd = Array(256), Wd = 0; 256 > Wd; ++Wd) {
|
|
2173
|
+
Vd[Wd] = String.fromCharCode(Wd);
|
|
2170
2174
|
}
|
|
2171
|
-
ec =
|
|
2175
|
+
ec = Vd;
|
|
2172
2176
|
k.getInheritedInstanceCount = function() {
|
|
2173
2177
|
return Object.keys(ic).length;
|
|
2174
2178
|
};
|
|
@@ -2190,8 +2194,8 @@ vc = k.InternalError = class extends Error {
|
|
|
2190
2194
|
this.name = "InternalError";
|
|
2191
2195
|
}
|
|
2192
2196
|
};
|
|
2193
|
-
|
|
2194
|
-
if (!(this instanceof
|
|
2197
|
+
Ic.prototype.isAliasOf = function(a) {
|
|
2198
|
+
if (!(this instanceof Ic && a instanceof Ic)) {
|
|
2195
2199
|
return !1;
|
|
2196
2200
|
}
|
|
2197
2201
|
var b = this.g.u.i, c = this.g.o, d = a.g.u.i;
|
|
@@ -2203,8 +2207,8 @@ Hc.prototype.isAliasOf = function(a) {
|
|
|
2203
2207
|
}
|
|
2204
2208
|
return b === d && c === a;
|
|
2205
2209
|
};
|
|
2206
|
-
|
|
2207
|
-
this.g.o ||
|
|
2210
|
+
Ic.prototype.clone = function() {
|
|
2211
|
+
this.g.o || Hc(this);
|
|
2208
2212
|
if (this.g.ka) {
|
|
2209
2213
|
return this.g.count.value += 1, this;
|
|
2210
2214
|
}
|
|
@@ -2214,45 +2218,45 @@ Hc.prototype.clone = function() {
|
|
|
2214
2218
|
a.g.ia = !1;
|
|
2215
2219
|
return a;
|
|
2216
2220
|
};
|
|
2217
|
-
|
|
2218
|
-
this.g.o ||
|
|
2221
|
+
Ic.prototype["delete"] = function() {
|
|
2222
|
+
this.g.o || Hc(this);
|
|
2219
2223
|
this.g.ia && !this.g.ka && R("Object already scheduled for deletion");
|
|
2220
2224
|
pc(this);
|
|
2221
2225
|
rc(this.g);
|
|
2222
2226
|
this.g.ka || (this.g.H = void 0, this.g.o = void 0);
|
|
2223
2227
|
};
|
|
2224
|
-
|
|
2228
|
+
Ic.prototype.isDeleted = function() {
|
|
2225
2229
|
return !this.g.o;
|
|
2226
2230
|
};
|
|
2227
|
-
|
|
2228
|
-
this.g.o ||
|
|
2231
|
+
Ic.prototype.deleteLater = function() {
|
|
2232
|
+
this.g.o || Hc(this);
|
|
2229
2233
|
this.g.ia && !this.g.ka && R("Object already scheduled for deletion");
|
|
2230
2234
|
fc.push(this);
|
|
2231
2235
|
1 === fc.length && hc && hc(gc);
|
|
2232
2236
|
this.g.ia = !0;
|
|
2233
2237
|
return this;
|
|
2234
2238
|
};
|
|
2235
|
-
|
|
2236
|
-
this.
|
|
2239
|
+
Rc.prototype.Sb = function(a) {
|
|
2240
|
+
this.sb && (a = this.sb(a));
|
|
2237
2241
|
return a;
|
|
2238
2242
|
};
|
|
2239
|
-
|
|
2243
|
+
Rc.prototype.cb = function(a) {
|
|
2240
2244
|
this.W && this.W(a);
|
|
2241
2245
|
};
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2246
|
+
Rc.prototype.argPackAdvance = 8;
|
|
2247
|
+
Rc.prototype.readValueFromPointer = Bc;
|
|
2248
|
+
Rc.prototype.deleteObject = function(a) {
|
|
2245
2249
|
if (null !== a) {
|
|
2246
2250
|
a["delete"]();
|
|
2247
2251
|
}
|
|
2248
2252
|
};
|
|
2249
|
-
|
|
2253
|
+
Rc.prototype.fromWireType = function(a) {
|
|
2250
2254
|
function b() {
|
|
2251
|
-
return this.ya ? xc(this.i.N, {u:this.
|
|
2255
|
+
return this.ya ? xc(this.i.N, {u:this.fc, o:c, L:this, H:a,}) : xc(this.i.N, {u:this, o:a,});
|
|
2252
2256
|
}
|
|
2253
|
-
var c = this.
|
|
2257
|
+
var c = this.Sb(a);
|
|
2254
2258
|
if (!c) {
|
|
2255
|
-
return this
|
|
2259
|
+
return this.cb(a), null;
|
|
2256
2260
|
}
|
|
2257
2261
|
var d = uc(this.i, c);
|
|
2258
2262
|
if (void 0 !== d) {
|
|
@@ -2260,23 +2264,23 @@ Qc.prototype.fromWireType = function(a) {
|
|
|
2260
2264
|
return d.g.o = c, d.g.H = a, d.clone();
|
|
2261
2265
|
}
|
|
2262
2266
|
d = d.clone();
|
|
2263
|
-
this
|
|
2267
|
+
this.cb(a);
|
|
2264
2268
|
return d;
|
|
2265
2269
|
}
|
|
2266
|
-
d = this.i.
|
|
2270
|
+
d = this.i.Rb(c);
|
|
2267
2271
|
d = tc[d];
|
|
2268
2272
|
if (!d) {
|
|
2269
2273
|
return b.call(this);
|
|
2270
2274
|
}
|
|
2271
|
-
d = this.xa ? d.
|
|
2275
|
+
d = this.xa ? d.Jb : d.pointerType;
|
|
2272
2276
|
var e = sc(c, this.i, d.i);
|
|
2273
2277
|
return null === e ? b.call(this) : this.ya ? xc(d.i.N, {u:d, o:e, L:this, H:a,}) : xc(d.i.N, {u:d, o:e,});
|
|
2274
2278
|
};
|
|
2275
|
-
|
|
2276
|
-
for (var Z,
|
|
2277
|
-
Kd.push(Array(
|
|
2279
|
+
Wc = k.UnboundTypeError = cc("UnboundTypeError");
|
|
2280
|
+
for (var Z, Xd = 0; 32 > Xd; ++Xd) {
|
|
2281
|
+
Kd.push(Array(Xd));
|
|
2278
2282
|
}
|
|
2279
|
-
var
|
|
2283
|
+
var Zd = {__syscall_fcntl64:function(a, b, c) {
|
|
2280
2284
|
Xb = c;
|
|
2281
2285
|
try {
|
|
2282
2286
|
var d = Jb(a);
|
|
@@ -2300,7 +2304,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2300
2304
|
case 8:
|
|
2301
2305
|
return -28;
|
|
2302
2306
|
case 9:
|
|
2303
|
-
return
|
|
2307
|
+
return I[Yd() >> 2] = 28, -1;
|
|
2304
2308
|
default:
|
|
2305
2309
|
return -28;
|
|
2306
2310
|
}
|
|
@@ -2321,13 +2325,13 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2321
2325
|
if (!d.s) {
|
|
2322
2326
|
return -59;
|
|
2323
2327
|
}
|
|
2324
|
-
if (d.s.V
|
|
2328
|
+
if (d.s.V.$b) {
|
|
2325
2329
|
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,];
|
|
2326
2330
|
var e = Yb();
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
+
I[e >> 2] = 25856;
|
|
2332
|
+
I[e + 4 >> 2] = 5;
|
|
2333
|
+
I[e + 8 >> 2] = 191;
|
|
2334
|
+
I[e + 12 >> 2] = 35387;
|
|
2331
2335
|
for (var f = 0; 32 > f; f++) {
|
|
2332
2336
|
D[e + f + 17 >> 0] = b[f] || 0;
|
|
2333
2337
|
}
|
|
@@ -2343,7 +2347,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2343
2347
|
if (!d.s) {
|
|
2344
2348
|
return -59;
|
|
2345
2349
|
}
|
|
2346
|
-
if (d.s.V.
|
|
2350
|
+
if (d.s.V.ac) {
|
|
2347
2351
|
for (e = Yb(), b = [], f = 0; 32 > f; f++) {
|
|
2348
2352
|
b.push(D[e + f + 17 >> 0]);
|
|
2349
2353
|
}
|
|
@@ -2354,20 +2358,20 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2354
2358
|
return -59;
|
|
2355
2359
|
}
|
|
2356
2360
|
e = Yb();
|
|
2357
|
-
return
|
|
2361
|
+
return I[e >> 2] = 0;
|
|
2358
2362
|
case 21520:
|
|
2359
2363
|
return d.s ? -28 : -59;
|
|
2360
2364
|
case 21531:
|
|
2361
2365
|
e = Yb();
|
|
2362
|
-
if (!d.m.
|
|
2366
|
+
if (!d.m.Zb) {
|
|
2363
2367
|
throw new N(59);
|
|
2364
2368
|
}
|
|
2365
|
-
return d.m.
|
|
2369
|
+
return d.m.Zb(d, b, e);
|
|
2366
2370
|
case 21523:
|
|
2367
2371
|
if (!d.s) {
|
|
2368
2372
|
return -59;
|
|
2369
2373
|
}
|
|
2370
|
-
d.s.V.
|
|
2374
|
+
d.s.V.bc && (f = [24, 80], e = Yb(), G[e >> 1] = f[0], G[e + 2 >> 1] = f[1]);
|
|
2371
2375
|
return 0;
|
|
2372
2376
|
case 21524:
|
|
2373
2377
|
return d.s ? 0 : -59;
|
|
@@ -2410,7 +2414,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2410
2414
|
c = S(c);
|
|
2411
2415
|
var d = [].slice, e = b.i, f = e.N, g = e.A.N, l = e.A.constructor;
|
|
2412
2416
|
a = $b(a, function() {
|
|
2413
|
-
e.A.
|
|
2417
|
+
e.A.qb.forEach(function(m) {
|
|
2414
2418
|
if (this[m] === g[m]) {
|
|
2415
2419
|
throw new dc(`Pure virtual function ${m} must be implemented in JavaScript`);
|
|
2416
2420
|
}
|
|
@@ -2446,15 +2450,15 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2446
2450
|
}, _embind_finalize_value_object:function(a) {
|
|
2447
2451
|
var b = zc[a];
|
|
2448
2452
|
delete zc[a];
|
|
2449
|
-
var c = b.
|
|
2453
|
+
var c = b.Va, d = b.W, e = b.fb, f = e.map(g => g.Vb).concat(e.map(g => g.kc));
|
|
2450
2454
|
V([a], f, g => {
|
|
2451
2455
|
var l = {};
|
|
2452
2456
|
e.forEach((p, m) => {
|
|
2453
|
-
var t = g[m], v = p.
|
|
2454
|
-
l[p.
|
|
2455
|
-
var
|
|
2456
|
-
|
|
2457
|
-
Ac(
|
|
2457
|
+
var t = g[m], v = p.Tb, x = p.Ub, n = g[m + e.length], r = p.jc, u = p.lc;
|
|
2458
|
+
l[p.Pb] = {read:y => t.fromWireType(v(x, y)), write:(y, z) => {
|
|
2459
|
+
var B = [];
|
|
2460
|
+
r(u, y, n.toWireType(B, z));
|
|
2461
|
+
Ac(B);
|
|
2458
2462
|
}};
|
|
2459
2463
|
});
|
|
2460
2464
|
return [{name:b.name, fromWireType:function(p) {
|
|
@@ -2480,9 +2484,9 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2480
2484
|
});
|
|
2481
2485
|
}, _embind_register_bigint:function() {
|
|
2482
2486
|
}, _embind_register_bool:function(a, b, c, d, e) {
|
|
2483
|
-
var f =
|
|
2487
|
+
var f = Fc(c);
|
|
2484
2488
|
b = U(b);
|
|
2485
|
-
|
|
2489
|
+
Ec(a, {name:b, fromWireType:function(g) {
|
|
2486
2490
|
return !!g;
|
|
2487
2491
|
}, toWireType:function(g, l) {
|
|
2488
2492
|
return l ? d : e;
|
|
@@ -2492,7 +2496,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2492
2496
|
} else if (2 === c) {
|
|
2493
2497
|
l = G;
|
|
2494
2498
|
} else if (4 === c) {
|
|
2495
|
-
l =
|
|
2499
|
+
l = I;
|
|
2496
2500
|
} else {
|
|
2497
2501
|
throw new TypeError("Unknown boolean type size: " + b);
|
|
2498
2502
|
}
|
|
@@ -2500,61 +2504,61 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2500
2504
|
}, K:null,});
|
|
2501
2505
|
}, _embind_register_class:function(a, b, c, d, e, f, g, l, p, m, t, v, x) {
|
|
2502
2506
|
t = U(t);
|
|
2503
|
-
f =
|
|
2504
|
-
l && (l =
|
|
2505
|
-
m && (m =
|
|
2506
|
-
x =
|
|
2507
|
+
f = W(e, f);
|
|
2508
|
+
l && (l = W(g, l));
|
|
2509
|
+
m && (m = W(p, m));
|
|
2510
|
+
x = W(v, x);
|
|
2507
2511
|
var n = Zb(t);
|
|
2508
|
-
|
|
2509
|
-
|
|
2512
|
+
Kc(n, function() {
|
|
2513
|
+
Xc(`Cannot construct ${t} due to unbound types`, [d]);
|
|
2510
2514
|
});
|
|
2511
|
-
V([a, b, c], d ? [d] : [], function(
|
|
2512
|
-
|
|
2515
|
+
V([a, b, c], d ? [d] : [], function(r) {
|
|
2516
|
+
r = r[0];
|
|
2513
2517
|
if (d) {
|
|
2514
|
-
var u =
|
|
2518
|
+
var u = r.i;
|
|
2515
2519
|
var y = u.N;
|
|
2516
2520
|
} else {
|
|
2517
|
-
y =
|
|
2521
|
+
y = Ic.prototype;
|
|
2518
2522
|
}
|
|
2519
|
-
|
|
2523
|
+
r = $b(n, function() {
|
|
2520
2524
|
if (Object.getPrototypeOf(this) !== z) {
|
|
2521
2525
|
throw new bc("Use 'new' to construct " + t);
|
|
2522
2526
|
}
|
|
2523
|
-
if (void 0 ===
|
|
2527
|
+
if (void 0 === B.$) {
|
|
2524
2528
|
throw new bc(t + " has no accessible constructor");
|
|
2525
2529
|
}
|
|
2526
|
-
var
|
|
2527
|
-
if (void 0 ===
|
|
2528
|
-
throw new bc(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(
|
|
2530
|
+
var J = B.$[arguments.length];
|
|
2531
|
+
if (void 0 === J) {
|
|
2532
|
+
throw new bc(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(B.$).toString()}) parameters instead!`);
|
|
2529
2533
|
}
|
|
2530
|
-
return
|
|
2534
|
+
return J.apply(this, arguments);
|
|
2531
2535
|
});
|
|
2532
|
-
var z = Object.create(y, {constructor:{value:
|
|
2533
|
-
|
|
2534
|
-
var
|
|
2535
|
-
|
|
2536
|
-
u = new
|
|
2537
|
-
y = new
|
|
2538
|
-
var H = new
|
|
2539
|
-
tc[a] = {pointerType:y,
|
|
2540
|
-
|
|
2536
|
+
var z = Object.create(y, {constructor:{value:r},});
|
|
2537
|
+
r.prototype = z;
|
|
2538
|
+
var B = new Lc(t, r, z, x, u, f, l, m);
|
|
2539
|
+
B.A && (void 0 === B.A.qa && (B.A.qa = []), B.A.qa.push(B));
|
|
2540
|
+
u = new Rc(t, B, !0, !1);
|
|
2541
|
+
y = new Rc(t + "*", B, !1, !1);
|
|
2542
|
+
var H = new Rc(t + " const*", B, !1, !0);
|
|
2543
|
+
tc[a] = {pointerType:y, Jb:H};
|
|
2544
|
+
Sc(n, r);
|
|
2541
2545
|
return [u, y, H];
|
|
2542
2546
|
});
|
|
2543
2547
|
}, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
|
|
2544
|
-
var l =
|
|
2548
|
+
var l = Zc(c, d);
|
|
2545
2549
|
b = U(b);
|
|
2546
|
-
f =
|
|
2550
|
+
f = W(e, f);
|
|
2547
2551
|
V([], [a], function(p) {
|
|
2548
2552
|
function m() {
|
|
2549
|
-
|
|
2553
|
+
Xc(`Cannot call ${t} due to unbound types`, l);
|
|
2550
2554
|
}
|
|
2551
2555
|
p = p[0];
|
|
2552
2556
|
var t = `${p.name}.${b}`;
|
|
2553
2557
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2554
2558
|
var v = p.i.constructor;
|
|
2555
|
-
void 0 === v[b] ? (m.ha = c - 1, v[b] = m) : (
|
|
2559
|
+
void 0 === v[b] ? (m.ha = c - 1, v[b] = m) : (Jc(v, b, t), v[b].B[c - 1] = m);
|
|
2556
2560
|
V([], l, function(x) {
|
|
2557
|
-
x =
|
|
2561
|
+
x = Yc(t, [x[0], null].concat(x.slice(1)), null, f, g);
|
|
2558
2562
|
void 0 === v[b].B ? (x.ha = c - 1, v[b] = x) : v[b].B[c - 1] = x;
|
|
2559
2563
|
if (p.i.qa) {
|
|
2560
2564
|
for (const n of p.i.qa) {
|
|
@@ -2567,14 +2571,14 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2567
2571
|
});
|
|
2568
2572
|
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g, l) {
|
|
2569
2573
|
b = U(b);
|
|
2570
|
-
f =
|
|
2574
|
+
f = W(e, f);
|
|
2571
2575
|
V([], [a], function(p) {
|
|
2572
2576
|
p = p[0];
|
|
2573
2577
|
var m = `${p.name}.${b}`, t = {get() {
|
|
2574
|
-
|
|
2578
|
+
Xc(`Cannot access ${m} due to unbound types`, [c]);
|
|
2575
2579
|
}, enumerable:!0, configurable:!0};
|
|
2576
2580
|
t.set = l ? () => {
|
|
2577
|
-
|
|
2581
|
+
Xc(`Cannot access ${m} due to unbound types`, [c]);
|
|
2578
2582
|
} : () => {
|
|
2579
2583
|
R(`${m} is a read-only property`);
|
|
2580
2584
|
};
|
|
@@ -2584,10 +2588,10 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2584
2588
|
var x = {get() {
|
|
2585
2589
|
return v.fromWireType(f(d));
|
|
2586
2590
|
}, enumerable:!0};
|
|
2587
|
-
l && (l =
|
|
2588
|
-
var
|
|
2589
|
-
l(d, v.toWireType(
|
|
2590
|
-
Ac(
|
|
2591
|
+
l && (l = W(g, l), x.set = n => {
|
|
2592
|
+
var r = [];
|
|
2593
|
+
l(d, v.toWireType(r, n));
|
|
2594
|
+
Ac(r);
|
|
2591
2595
|
});
|
|
2592
2596
|
Object.defineProperty(p.i.constructor, b, x);
|
|
2593
2597
|
return [];
|
|
@@ -2595,8 +2599,8 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2595
2599
|
return [];
|
|
2596
2600
|
});
|
|
2597
2601
|
}, _embind_register_class_constructor:function(a, b, c, d, e, f) {
|
|
2598
|
-
var g =
|
|
2599
|
-
e =
|
|
2602
|
+
var g = Zc(b, c);
|
|
2603
|
+
e = W(d, e);
|
|
2600
2604
|
V([], [a], function(l) {
|
|
2601
2605
|
l = l[0];
|
|
2602
2606
|
var p = `constructor ${l.name}`;
|
|
@@ -2605,61 +2609,61 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2605
2609
|
throw new bc(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${l.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
2606
2610
|
}
|
|
2607
2611
|
l.i.$[b - 1] = () => {
|
|
2608
|
-
|
|
2612
|
+
Xc(`Cannot construct ${l.name} due to unbound types`, g);
|
|
2609
2613
|
};
|
|
2610
2614
|
V([], g, function(m) {
|
|
2611
2615
|
m.splice(1, 0, null);
|
|
2612
|
-
l.i.$[b - 1] =
|
|
2616
|
+
l.i.$[b - 1] = Yc(p, m, null, e, f);
|
|
2613
2617
|
return [];
|
|
2614
2618
|
});
|
|
2615
2619
|
return [];
|
|
2616
2620
|
});
|
|
2617
2621
|
}, _embind_register_class_function:function(a, b, c, d, e, f, g, l) {
|
|
2618
|
-
var p =
|
|
2622
|
+
var p = Zc(c, d);
|
|
2619
2623
|
b = U(b);
|
|
2620
|
-
f =
|
|
2624
|
+
f = W(e, f);
|
|
2621
2625
|
V([], [a], function(m) {
|
|
2622
2626
|
function t() {
|
|
2623
|
-
|
|
2627
|
+
Xc(`Cannot call ${v} due to unbound types`, p);
|
|
2624
2628
|
}
|
|
2625
2629
|
m = m[0];
|
|
2626
2630
|
var v = `${m.name}.${b}`;
|
|
2627
2631
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2628
|
-
l && m.i.
|
|
2632
|
+
l && m.i.qb.push(b);
|
|
2629
2633
|
var x = m.i.N, n = x[b];
|
|
2630
|
-
void 0 === n || void 0 === n.B && n.className !== m.name && n.ha === c - 2 ? (t.ha = c - 2, t.className = m.name, x[b] = t) : (
|
|
2631
|
-
V([], p, function(
|
|
2632
|
-
|
|
2633
|
-
void 0 === x[b].B ? (
|
|
2634
|
+
void 0 === n || void 0 === n.B && n.className !== m.name && n.ha === c - 2 ? (t.ha = c - 2, t.className = m.name, x[b] = t) : (Jc(x, b, v), x[b].B[c - 2] = t);
|
|
2635
|
+
V([], p, function(r) {
|
|
2636
|
+
r = Yc(v, r, m, f, g);
|
|
2637
|
+
void 0 === x[b].B ? (r.ha = c - 2, x[b] = r) : x[b].B[c - 2] = r;
|
|
2634
2638
|
return [];
|
|
2635
2639
|
});
|
|
2636
2640
|
return [];
|
|
2637
2641
|
});
|
|
2638
2642
|
}, _embind_register_class_property:function(a, b, c, d, e, f, g, l, p, m) {
|
|
2639
2643
|
b = U(b);
|
|
2640
|
-
e =
|
|
2644
|
+
e = W(d, e);
|
|
2641
2645
|
V([], [a], function(t) {
|
|
2642
2646
|
t = t[0];
|
|
2643
2647
|
var v = `${t.name}.${b}`, x = {get() {
|
|
2644
|
-
|
|
2648
|
+
Xc(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2645
2649
|
}, enumerable:!0, configurable:!0};
|
|
2646
2650
|
x.set = p ? () => {
|
|
2647
|
-
|
|
2651
|
+
Xc(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2648
2652
|
} : () => {
|
|
2649
2653
|
R(v + " is a read-only property");
|
|
2650
2654
|
};
|
|
2651
2655
|
Object.defineProperty(t.i.N, b, x);
|
|
2652
2656
|
V([], p ? [c, g] : [c], function(n) {
|
|
2653
|
-
var
|
|
2654
|
-
var z =
|
|
2655
|
-
return
|
|
2657
|
+
var r = n[0], u = {get() {
|
|
2658
|
+
var z = $c(this, t, v + " getter");
|
|
2659
|
+
return r.fromWireType(e(f, z));
|
|
2656
2660
|
}, enumerable:!0};
|
|
2657
2661
|
if (p) {
|
|
2658
|
-
p =
|
|
2662
|
+
p = W(l, p);
|
|
2659
2663
|
var y = n[1];
|
|
2660
2664
|
u.set = function(z) {
|
|
2661
|
-
var
|
|
2662
|
-
p(m,
|
|
2665
|
+
var B = $c(this, t, v + " setter"), H = [];
|
|
2666
|
+
p(m, B, y.toWireType(H, z));
|
|
2663
2667
|
Ac(H);
|
|
2664
2668
|
};
|
|
2665
2669
|
}
|
|
@@ -2670,9 +2674,9 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2670
2674
|
});
|
|
2671
2675
|
}, _embind_register_emval:function(a, b) {
|
|
2672
2676
|
b = U(b);
|
|
2673
|
-
|
|
2677
|
+
Ec(a, {name:b, fromWireType:function(c) {
|
|
2674
2678
|
var d = S(c);
|
|
2675
|
-
|
|
2679
|
+
ad(c);
|
|
2676
2680
|
return d;
|
|
2677
2681
|
}, toWireType:function(c, d) {
|
|
2678
2682
|
return T(d);
|
|
@@ -2680,15 +2684,15 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2680
2684
|
}, _embind_register_enum:function(a, b, c, d) {
|
|
2681
2685
|
function e() {
|
|
2682
2686
|
}
|
|
2683
|
-
c =
|
|
2687
|
+
c = Fc(c);
|
|
2684
2688
|
b = U(b);
|
|
2685
2689
|
e.values = {};
|
|
2686
|
-
|
|
2690
|
+
Ec(a, {name:b, constructor:e, fromWireType:function(f) {
|
|
2687
2691
|
return this.constructor.values[f];
|
|
2688
2692
|
}, toWireType:function(f, g) {
|
|
2689
2693
|
return g.value;
|
|
2690
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2691
|
-
|
|
2694
|
+
}, argPackAdvance:8, readValueFromPointer:bd(b, c, d), K:null,});
|
|
2695
|
+
Kc(b, e);
|
|
2692
2696
|
}, _embind_register_enum_value:function(a, b, c) {
|
|
2693
2697
|
var d = oc(a, "enum");
|
|
2694
2698
|
b = U(b);
|
|
@@ -2698,28 +2702,28 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2698
2702
|
a.values[c] = d;
|
|
2699
2703
|
a[b] = d;
|
|
2700
2704
|
}, _embind_register_float:function(a, b, c) {
|
|
2701
|
-
c =
|
|
2705
|
+
c = Fc(c);
|
|
2702
2706
|
b = U(b);
|
|
2703
|
-
|
|
2707
|
+
Ec(a, {name:b, fromWireType:function(d) {
|
|
2704
2708
|
return d;
|
|
2705
2709
|
}, toWireType:function(d, e) {
|
|
2706
2710
|
return e;
|
|
2707
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2711
|
+
}, argPackAdvance:8, readValueFromPointer:cd(b, c), K:null,});
|
|
2708
2712
|
}, _embind_register_function:function(a, b, c, d, e, f) {
|
|
2709
|
-
var g =
|
|
2713
|
+
var g = Zc(b, c);
|
|
2710
2714
|
a = U(a);
|
|
2711
|
-
e =
|
|
2712
|
-
|
|
2713
|
-
|
|
2715
|
+
e = W(d, e);
|
|
2716
|
+
Kc(a, function() {
|
|
2717
|
+
Xc(`Cannot call ${a} due to unbound types`, g);
|
|
2714
2718
|
}, b - 1);
|
|
2715
2719
|
V([], g, function(l) {
|
|
2716
|
-
|
|
2720
|
+
Sc(a, Yc(a, [l[0], null].concat(l.slice(1)), null, e, f), b - 1);
|
|
2717
2721
|
return [];
|
|
2718
2722
|
});
|
|
2719
2723
|
}, _embind_register_integer:function(a, b, c, d, e) {
|
|
2720
2724
|
b = U(b);
|
|
2721
2725
|
-1 === e && (e = 4294967295);
|
|
2722
|
-
e =
|
|
2726
|
+
e = Fc(c);
|
|
2723
2727
|
var f = l => l;
|
|
2724
2728
|
if (0 === d) {
|
|
2725
2729
|
var g = 32 - 8 * c;
|
|
@@ -2730,7 +2734,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2730
2734
|
} : function(l, p) {
|
|
2731
2735
|
return p;
|
|
2732
2736
|
};
|
|
2733
|
-
|
|
2737
|
+
Ec(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:dd(b, e, 0 !== d), K:null,});
|
|
2734
2738
|
}, _embind_register_memory_view:function(a, b, c) {
|
|
2735
2739
|
function d(f) {
|
|
2736
2740
|
f >>= 2;
|
|
@@ -2739,11 +2743,11 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2739
2743
|
}
|
|
2740
2744
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2741
2745
|
c = U(c);
|
|
2742
|
-
|
|
2746
|
+
Ec(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Xb:!0,});
|
|
2743
2747
|
}, _embind_register_std_string:function(a, b) {
|
|
2744
2748
|
b = U(b);
|
|
2745
2749
|
var c = "std::string" === b;
|
|
2746
|
-
|
|
2750
|
+
Ec(a, {name:b, fromWireType:function(d) {
|
|
2747
2751
|
var e = K[d >> 2], f = d + 4;
|
|
2748
2752
|
if (c) {
|
|
2749
2753
|
for (var g = f, l = 0; l <= e; ++l) {
|
|
@@ -2797,19 +2801,19 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2797
2801
|
}, _embind_register_std_wstring:function(a, b, c) {
|
|
2798
2802
|
c = U(c);
|
|
2799
2803
|
if (2 === b) {
|
|
2800
|
-
var d =
|
|
2801
|
-
var e =
|
|
2802
|
-
var f =
|
|
2804
|
+
var d = fd;
|
|
2805
|
+
var e = gd;
|
|
2806
|
+
var f = hd;
|
|
2803
2807
|
var g = () => wa;
|
|
2804
2808
|
var l = 1;
|
|
2805
2809
|
} else {
|
|
2806
|
-
4 === b && (d =
|
|
2810
|
+
4 === b && (d = jd, e = kd, f = ld, g = () => K, l = 2);
|
|
2807
2811
|
}
|
|
2808
|
-
|
|
2812
|
+
Ec(a, {name:c, fromWireType:function(p) {
|
|
2809
2813
|
for (var m = K[p >> 2], t = g(), v, x = p + 4, n = 0; n <= m; ++n) {
|
|
2810
|
-
var
|
|
2811
|
-
if (n == m || 0 == t[
|
|
2812
|
-
x = d(x,
|
|
2814
|
+
var r = p + 4 + n * b;
|
|
2815
|
+
if (n == m || 0 == t[r >> l]) {
|
|
2816
|
+
x = d(x, r - x), void 0 === v ? v = x : (v += String.fromCharCode(0), v += x), x = r + b;
|
|
2813
2817
|
}
|
|
2814
2818
|
}
|
|
2815
2819
|
nc(p);
|
|
@@ -2825,12 +2829,12 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2825
2829
|
nc(p);
|
|
2826
2830
|
},});
|
|
2827
2831
|
}, _embind_register_value_object:function(a, b, c, d, e, f) {
|
|
2828
|
-
zc[a] = {name:U(b),
|
|
2832
|
+
zc[a] = {name:U(b), Va:W(c, d), W:W(e, f), fb:[],};
|
|
2829
2833
|
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, l, p, m) {
|
|
2830
|
-
zc[a].
|
|
2834
|
+
zc[a].fb.push({Pb:U(b), Vb:c, Tb:W(d, e), Ub:f, kc:g, jc:W(l, p), lc:m,});
|
|
2831
2835
|
}, _embind_register_void:function(a, b) {
|
|
2832
2836
|
b = U(b);
|
|
2833
|
-
|
|
2837
|
+
Ec(a, {cc:!0, name:b, argPackAdvance:0, fromWireType:function() {
|
|
2834
2838
|
}, toWireType:function() {
|
|
2835
2839
|
},});
|
|
2836
2840
|
}, _emscripten_get_now_is_monotonic:() => !0, _emval_as:function(a, b, c) {
|
|
@@ -2840,56 +2844,56 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2840
2844
|
K[c >> 2] = e;
|
|
2841
2845
|
return b.toWireType(d, a);
|
|
2842
2846
|
}, _emval_call_method:function(a, b, c, d, e) {
|
|
2843
|
-
a =
|
|
2847
|
+
a = od[a];
|
|
2844
2848
|
b = S(b);
|
|
2845
|
-
c =
|
|
2849
|
+
c = nd(c);
|
|
2846
2850
|
var f = [];
|
|
2847
2851
|
K[d >> 2] = T(f);
|
|
2848
2852
|
return a(b, c, f, e);
|
|
2849
2853
|
}, _emval_call_void_method:function(a, b, c, d) {
|
|
2850
|
-
a =
|
|
2854
|
+
a = od[a];
|
|
2851
2855
|
b = S(b);
|
|
2852
|
-
c =
|
|
2856
|
+
c = nd(c);
|
|
2853
2857
|
a(b, c, null, d);
|
|
2854
|
-
}, _emval_decref
|
|
2855
|
-
var c =
|
|
2858
|
+
}, _emval_decref:ad, _emval_get_method_caller:function(a, b) {
|
|
2859
|
+
var c = qd(a, b), d = c[0];
|
|
2856
2860
|
b = d.name + "_$" + c.slice(1).map(function(g) {
|
|
2857
2861
|
return g.name;
|
|
2858
2862
|
}).join("_") + "$";
|
|
2859
|
-
var e =
|
|
2863
|
+
var e = rd[b];
|
|
2860
2864
|
if (void 0 !== e) {
|
|
2861
2865
|
return e;
|
|
2862
2866
|
}
|
|
2863
2867
|
var f = Array(a - 1);
|
|
2864
|
-
e =
|
|
2868
|
+
e = pd((g, l, p, m) => {
|
|
2865
2869
|
for (var t = 0, v = 0; v < a - 1; ++v) {
|
|
2866
2870
|
f[v] = c[v + 1].readValueFromPointer(m + t), t += c[v + 1].argPackAdvance;
|
|
2867
2871
|
}
|
|
2868
2872
|
g = g[l].apply(g, f);
|
|
2869
2873
|
for (v = 0; v < a - 1; ++v) {
|
|
2870
|
-
c[v + 1].
|
|
2874
|
+
c[v + 1].Lb && c[v + 1].Lb(f[v]);
|
|
2871
2875
|
}
|
|
2872
|
-
if (!d
|
|
2876
|
+
if (!d.cc) {
|
|
2873
2877
|
return d.toWireType(p, g);
|
|
2874
2878
|
}
|
|
2875
2879
|
});
|
|
2876
|
-
return
|
|
2880
|
+
return rd[b] = e;
|
|
2877
2881
|
}, _emval_get_property:function(a, b) {
|
|
2878
2882
|
a = S(a);
|
|
2879
2883
|
b = S(b);
|
|
2880
2884
|
return T(a[b]);
|
|
2881
2885
|
}, _emval_incref:function(a) {
|
|
2882
|
-
4 < a && (Q.get(a).
|
|
2886
|
+
4 < a && (Q.get(a).ub += 1);
|
|
2883
2887
|
}, _emval_new_array:function() {
|
|
2884
2888
|
return T([]);
|
|
2885
2889
|
}, _emval_new_cstring:function(a) {
|
|
2886
|
-
return T(
|
|
2890
|
+
return T(nd(a));
|
|
2887
2891
|
}, _emval_new_object:function() {
|
|
2888
2892
|
return T({});
|
|
2889
2893
|
}, _emval_run_destructors:function(a) {
|
|
2890
2894
|
var b = S(a);
|
|
2891
2895
|
Ac(b);
|
|
2892
|
-
|
|
2896
|
+
ad(a);
|
|
2893
2897
|
}, _emval_set_property:function(a, b, c) {
|
|
2894
2898
|
a = S(a);
|
|
2895
2899
|
b = S(b);
|
|
@@ -2919,12 +2923,12 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2919
2923
|
var b = k.images;
|
|
2920
2924
|
b && b.get(a) && b.delete(a);
|
|
2921
2925
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
2922
|
-
|
|
2926
|
+
sd.length = 0;
|
|
2923
2927
|
var d;
|
|
2924
2928
|
for (c >>= 2; d = F[b++];) {
|
|
2925
|
-
c += 105 != d & c,
|
|
2929
|
+
c += 105 != d & c, sd.push(105 == d ? I[c] : ya[c++ >> 1]), ++c;
|
|
2926
2930
|
}
|
|
2927
|
-
return Ua[a].apply(null,
|
|
2931
|
+
return Ua[a].apply(null, sd);
|
|
2928
2932
|
}, emscripten_date_now:function() {
|
|
2929
2933
|
return Date.now();
|
|
2930
2934
|
}, emscripten_get_now:() => performance.now(), emscripten_memcpy_big:(a, b, c) => F.copyWithin(a, b, b + c), emscripten_resize_heap:a => {
|
|
@@ -2958,18 +2962,18 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2958
2962
|
a = w[a];
|
|
2959
2963
|
b = b ? M(F, b) : "";
|
|
2960
2964
|
b.startsWith("GL_") && (b = b.substr(3));
|
|
2961
|
-
"WEBGL_draw_instanced_base_vertex_base_instance" == b &&
|
|
2962
|
-
"WEBGL_multi_draw_instanced_base_vertex_base_instance" == b &&
|
|
2965
|
+
"WEBGL_draw_instanced_base_vertex_base_instance" == b && td(Z);
|
|
2966
|
+
"WEBGL_multi_draw_instanced_base_vertex_base_instance" == b && ud(Z);
|
|
2963
2967
|
"WEBGL_multi_draw" == b && Gd(Z);
|
|
2964
2968
|
return !!a.C.getExtension(b);
|
|
2965
2969
|
}, emscripten_webgl_get_current_context:function() {
|
|
2966
|
-
return
|
|
2970
|
+
return q ? q.handle : 0;
|
|
2967
2971
|
}, emscripten_webgl_make_context_current:function(a) {
|
|
2968
2972
|
return ja(a) ? 0 : -5;
|
|
2969
2973
|
}, enable_WEBGL_provoking_vertex:function(a) {
|
|
2970
2974
|
a = w[a].C;
|
|
2971
|
-
a.
|
|
2972
|
-
return !!a.
|
|
2975
|
+
a.rb = a.getExtension("WEBGL_provoking_vertex");
|
|
2976
|
+
return !!a.rb;
|
|
2973
2977
|
}, enable_WEBGL_shader_pixel_local_storage_coherent:function(a) {
|
|
2974
2978
|
a = w[a].C;
|
|
2975
2979
|
a.ca = a.getExtension("WEBGL_shader_pixel_local_storage");
|
|
@@ -3003,7 +3007,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3003
3007
|
if (null === b.X) {
|
|
3004
3008
|
throw new N(8);
|
|
3005
3009
|
}
|
|
3006
|
-
b.
|
|
3010
|
+
b.Sa && (b.Sa = null);
|
|
3007
3011
|
try {
|
|
3008
3012
|
b.m.close && b.m.close(b);
|
|
3009
3013
|
} catch (c) {
|
|
@@ -3043,14 +3047,14 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3043
3047
|
if (!m.m.read) {
|
|
3044
3048
|
throw new N(28);
|
|
3045
3049
|
}
|
|
3046
|
-
var
|
|
3047
|
-
if (!
|
|
3050
|
+
var r = "undefined" != typeof x;
|
|
3051
|
+
if (!r) {
|
|
3048
3052
|
x = m.position;
|
|
3049
3053
|
} else if (!m.seekable) {
|
|
3050
3054
|
throw new N(70);
|
|
3051
3055
|
}
|
|
3052
3056
|
var u = m.m.read(m, n, t, v, x);
|
|
3053
|
-
|
|
3057
|
+
r || (m.position += u);
|
|
3054
3058
|
var y = u;
|
|
3055
3059
|
if (0 > y) {
|
|
3056
3060
|
var z = -1;
|
|
@@ -3066,11 +3070,11 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3066
3070
|
}
|
|
3067
3071
|
K[d >> 2] = z;
|
|
3068
3072
|
return 0;
|
|
3069
|
-
} catch (
|
|
3070
|
-
if ("undefined" == typeof Wb || "ErrnoError" !==
|
|
3071
|
-
throw
|
|
3073
|
+
} catch (B) {
|
|
3074
|
+
if ("undefined" == typeof Wb || "ErrnoError" !== B.name) {
|
|
3075
|
+
throw B;
|
|
3072
3076
|
}
|
|
3073
|
-
return
|
|
3077
|
+
return B.aa;
|
|
3074
3078
|
}
|
|
3075
3079
|
}, fd_seek:function(a, b, c, d, e) {
|
|
3076
3080
|
b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
|
|
@@ -3081,9 +3085,9 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3081
3085
|
var f = Jb(a);
|
|
3082
3086
|
Rb(f, b, d);
|
|
3083
3087
|
Qa = [f.position >>> 0, (Pa = f.position, 1.0 <= +Math.abs(Pa) ? 0.0 < Pa ? +Math.floor(Pa / 4294967296.0) >>> 0 : ~~+Math.ceil((Pa - +(~~Pa >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
f.
|
|
3088
|
+
I[e >> 2] = Qa[0];
|
|
3089
|
+
I[e + 4 >> 2] = Qa[1];
|
|
3090
|
+
f.Sa && 0 === b && 0 === d && (f.Sa = null);
|
|
3087
3091
|
return 0;
|
|
3088
3092
|
} catch (g) {
|
|
3089
3093
|
if ("undefined" == typeof Wb || "ErrnoError" !== g.name) {
|
|
@@ -3116,14 +3120,14 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3116
3120
|
throw new N(28);
|
|
3117
3121
|
}
|
|
3118
3122
|
m.seekable && m.flags & 1024 && Rb(m, 0, 2);
|
|
3119
|
-
var
|
|
3120
|
-
if (!
|
|
3123
|
+
var r = "undefined" != typeof x;
|
|
3124
|
+
if (!r) {
|
|
3121
3125
|
x = m.position;
|
|
3122
3126
|
} else if (!m.seekable) {
|
|
3123
3127
|
throw new N(70);
|
|
3124
3128
|
}
|
|
3125
3129
|
var u = m.m.write(m, n, t, v, x, void 0);
|
|
3126
|
-
|
|
3130
|
+
r || (m.position += u);
|
|
3127
3131
|
var y = u;
|
|
3128
3132
|
if (0 > y) {
|
|
3129
3133
|
var z = -1;
|
|
@@ -3136,11 +3140,11 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3136
3140
|
}
|
|
3137
3141
|
K[d >> 2] = z;
|
|
3138
3142
|
return 0;
|
|
3139
|
-
} catch (
|
|
3140
|
-
if ("undefined" == typeof Wb || "ErrnoError" !==
|
|
3141
|
-
throw
|
|
3143
|
+
} catch (B) {
|
|
3144
|
+
if ("undefined" == typeof Wb || "ErrnoError" !== B.name) {
|
|
3145
|
+
throw B;
|
|
3142
3146
|
}
|
|
3143
|
-
return
|
|
3147
|
+
return B.aa;
|
|
3144
3148
|
}
|
|
3145
3149
|
}, framebufferPixelLocalClearValuefvWEBGL:function(a, b, c, d, e, f) {
|
|
3146
3150
|
(a = w[a].C.ca) && a.framebufferPixelLocalClearValuefvWEBGL(b, [c, d, e, f]);
|
|
@@ -3151,12 +3155,12 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3151
3155
|
}, glActiveTexture:function(a) {
|
|
3152
3156
|
Z.activeTexture(a);
|
|
3153
3157
|
}, glAttachShader:function(a, b) {
|
|
3154
|
-
Z.attachShader(
|
|
3158
|
+
Z.attachShader(X[a], Ad[b]);
|
|
3155
3159
|
}, glBindBuffer:function(a, b) {
|
|
3156
|
-
35051 == a ? Z.
|
|
3157
|
-
Z.bindBuffer(a,
|
|
3160
|
+
35051 == a ? Z.Pa = b : 35052 == a && (Z.Qa = b);
|
|
3161
|
+
Z.bindBuffer(a, wd[b]);
|
|
3158
3162
|
}, glBindBufferRange:function(a, b, c, d, e) {
|
|
3159
|
-
Z.bindBufferRange(a, b,
|
|
3163
|
+
Z.bindBufferRange(a, b, wd[c], d, e);
|
|
3160
3164
|
}, glBindFramebuffer:function(a, b) {
|
|
3161
3165
|
Z.bindFramebuffer(a, xd[b]);
|
|
3162
3166
|
}, glBindRenderbuffer:function(a, b) {
|
|
@@ -3177,6 +3181,10 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3177
3181
|
c && Z.bufferSubData(a, b, F, d, c);
|
|
3178
3182
|
}, glClear:function(a) {
|
|
3179
3183
|
Z.clear(a);
|
|
3184
|
+
}, glClearBufferfv:function(a, b, c) {
|
|
3185
|
+
Z.clearBufferfv(a, b, xa, c >> 2);
|
|
3186
|
+
}, glClearBufferuiv:function(a, b, c) {
|
|
3187
|
+
Z.clearBufferuiv(a, b, K, c >> 2);
|
|
3180
3188
|
}, glClearColor:function(a, b, c, d) {
|
|
3181
3189
|
Z.clearColor(a, b, c, d);
|
|
3182
3190
|
}, glClearDepthf:function(a) {
|
|
@@ -3188,11 +3196,11 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3188
3196
|
}, glCompileShader:function(a) {
|
|
3189
3197
|
Z.compileShader(Ad[a]);
|
|
3190
3198
|
}, glCreateProgram:function() {
|
|
3191
|
-
var a = Ed(
|
|
3199
|
+
var a = Ed(X), b = Z.createProgram();
|
|
3192
3200
|
b.name = a;
|
|
3193
|
-
b.
|
|
3194
|
-
b.
|
|
3195
|
-
|
|
3201
|
+
b.Ba = b.za = b.Aa = 0;
|
|
3202
|
+
b.Ya = 1;
|
|
3203
|
+
X[a] = b;
|
|
3196
3204
|
return a;
|
|
3197
3205
|
}, glCreateShader:function(a) {
|
|
3198
3206
|
var b = Ed(Ad);
|
|
@@ -3202,22 +3210,22 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3202
3210
|
Z.cullFace(a);
|
|
3203
3211
|
}, glDeleteBuffers:function(a, b) {
|
|
3204
3212
|
for (var c = 0; c < a; c++) {
|
|
3205
|
-
var d =
|
|
3206
|
-
e && (Z.deleteBuffer(e), e.name = 0,
|
|
3213
|
+
var d = I[b + 4 * c >> 2], e = wd[d];
|
|
3214
|
+
e && (Z.deleteBuffer(e), e.name = 0, wd[d] = null, d == Z.Pa && (Z.Pa = 0), d == Z.Qa && (Z.Qa = 0));
|
|
3207
3215
|
}
|
|
3208
3216
|
}, glDeleteFramebuffers:function(a, b) {
|
|
3209
3217
|
for (var c = 0; c < a; ++c) {
|
|
3210
|
-
var d =
|
|
3218
|
+
var d = I[b + 4 * c >> 2], e = xd[d];
|
|
3211
3219
|
e && (Z.deleteFramebuffer(e), e.name = 0, xd[d] = null);
|
|
3212
3220
|
}
|
|
3213
3221
|
}, glDeleteProgram:function(a) {
|
|
3214
3222
|
if (a) {
|
|
3215
|
-
var b =
|
|
3216
|
-
b ? (Z.deleteProgram(b), b.name = 0,
|
|
3223
|
+
var b = X[a];
|
|
3224
|
+
b ? (Z.deleteProgram(b), b.name = 0, X[a] = null) : Y(1281);
|
|
3217
3225
|
}
|
|
3218
3226
|
}, glDeleteRenderbuffers:function(a, b) {
|
|
3219
3227
|
for (var c = 0; c < a; c++) {
|
|
3220
|
-
var d =
|
|
3228
|
+
var d = I[b + 4 * c >> 2], e = yd[d];
|
|
3221
3229
|
e && (Z.deleteRenderbuffer(e), e.name = 0, yd[d] = null);
|
|
3222
3230
|
}
|
|
3223
3231
|
}, glDeleteShader:function(a) {
|
|
@@ -3227,12 +3235,12 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3227
3235
|
}
|
|
3228
3236
|
}, glDeleteTextures:function(a, b) {
|
|
3229
3237
|
for (var c = 0; c < a; c++) {
|
|
3230
|
-
var d =
|
|
3238
|
+
var d = I[b + 4 * c >> 2], e = zd[d];
|
|
3231
3239
|
e && (Z.deleteTexture(e), e.name = 0, zd[d] = null);
|
|
3232
3240
|
}
|
|
3233
3241
|
}, glDeleteVertexArrays:function(a, b) {
|
|
3234
3242
|
for (var c = 0; c < a; c++) {
|
|
3235
|
-
var d =
|
|
3243
|
+
var d = I[b + 4 * c >> 2];
|
|
3236
3244
|
Z.deleteVertexArray(Bd[d]);
|
|
3237
3245
|
Bd[d] = null;
|
|
3238
3246
|
}
|
|
@@ -3250,7 +3258,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3250
3258
|
Z.drawArraysInstanced(a, b, c, d);
|
|
3251
3259
|
}, glDrawBuffers:function(a, b) {
|
|
3252
3260
|
for (var c = Kd[a], d = 0; d < a; d++) {
|
|
3253
|
-
c[d] =
|
|
3261
|
+
c[d] = I[b + 4 * d >> 2];
|
|
3254
3262
|
}
|
|
3255
3263
|
Z.drawBuffers(c);
|
|
3256
3264
|
}, glDrawElements:function(a, b, c, d) {
|
|
@@ -3270,7 +3278,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3270
3278
|
}, glFrontFace:function(a) {
|
|
3271
3279
|
Z.frontFace(a);
|
|
3272
3280
|
}, glGenBuffers:function(a, b) {
|
|
3273
|
-
Ld(a, b, "createBuffer",
|
|
3281
|
+
Ld(a, b, "createBuffer", wd);
|
|
3274
3282
|
}, glGenFramebuffers:function(a, b) {
|
|
3275
3283
|
Ld(a, b, "createFramebuffer", xd);
|
|
3276
3284
|
}, glGenRenderbuffers:function(a, b) {
|
|
@@ -3287,6 +3295,43 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3287
3295
|
return a;
|
|
3288
3296
|
}, glGetIntegerv:function(a, b) {
|
|
3289
3297
|
Md(a, b);
|
|
3298
|
+
}, glGetProgramiv:function(a, b, c) {
|
|
3299
|
+
if (c) {
|
|
3300
|
+
if (a >= vd) {
|
|
3301
|
+
Y(1281);
|
|
3302
|
+
} else {
|
|
3303
|
+
if (a = X[a], 35716 == b) {
|
|
3304
|
+
a = Z.getProgramInfoLog(a), null === a && (a = "(unknown error)"), I[c >> 2] = a.length + 1;
|
|
3305
|
+
} else if (35719 == b) {
|
|
3306
|
+
if (!a.Ba) {
|
|
3307
|
+
for (b = 0; b < Z.getProgramParameter(a, 35718); ++b) {
|
|
3308
|
+
a.Ba = Math.max(a.Ba, Z.getActiveUniform(a, b).name.length + 1);
|
|
3309
|
+
}
|
|
3310
|
+
}
|
|
3311
|
+
I[c >> 2] = a.Ba;
|
|
3312
|
+
} else if (35722 == b) {
|
|
3313
|
+
if (!a.za) {
|
|
3314
|
+
for (b = 0; b < Z.getProgramParameter(a, 35721); ++b) {
|
|
3315
|
+
a.za = Math.max(a.za, Z.getActiveAttrib(a, b).name.length + 1);
|
|
3316
|
+
}
|
|
3317
|
+
}
|
|
3318
|
+
I[c >> 2] = a.za;
|
|
3319
|
+
} else if (35381 == b) {
|
|
3320
|
+
if (!a.Aa) {
|
|
3321
|
+
for (b = 0; b < Z.getProgramParameter(a, 35382); ++b) {
|
|
3322
|
+
a.Aa = Math.max(a.Aa, Z.getActiveUniformBlockName(a, b).length + 1);
|
|
3323
|
+
}
|
|
3324
|
+
}
|
|
3325
|
+
I[c >> 2] = a.Aa;
|
|
3326
|
+
} else {
|
|
3327
|
+
I[c >> 2] = Z.getProgramParameter(a, b);
|
|
3328
|
+
}
|
|
3329
|
+
}
|
|
3330
|
+
} else {
|
|
3331
|
+
Y(1281);
|
|
3332
|
+
}
|
|
3333
|
+
}, glGetShaderiv:function(a, b, c) {
|
|
3334
|
+
c ? 35716 == b ? (a = Z.getShaderInfoLog(Ad[a]), null === a && (a = "(unknown error)"), I[c >> 2] = a ? a.length + 1 : 0) : 35720 == b ? (a = Z.getShaderSource(Ad[a]), I[c >> 2] = a ? a.length + 1 : 0) : I[c >> 2] = Z.getShaderParameter(Ad[a], b) : Y(1281);
|
|
3290
3335
|
}, glGetString:function(a) {
|
|
3291
3336
|
var b = Cd[a];
|
|
3292
3337
|
if (!b) {
|
|
@@ -3321,23 +3366,23 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3321
3366
|
}
|
|
3322
3367
|
return b;
|
|
3323
3368
|
}, glGetUniformBlockIndex:function(a, b) {
|
|
3324
|
-
return Z.getUniformBlockIndex(
|
|
3369
|
+
return Z.getUniformBlockIndex(X[a], b ? M(F, b) : "");
|
|
3325
3370
|
}, glGetUniformLocation:function(a, b) {
|
|
3326
3371
|
b = b ? M(F, b) : "";
|
|
3327
|
-
if (a =
|
|
3328
|
-
var c = a, d = c.oa, e = c.
|
|
3372
|
+
if (a = X[a]) {
|
|
3373
|
+
var c = a, d = c.oa, e = c.zb, f;
|
|
3329
3374
|
if (!d) {
|
|
3330
|
-
for (c.oa = d = {}, c.
|
|
3375
|
+
for (c.oa = d = {}, c.yb = {}, f = 0; f < Z.getProgramParameter(c, 35718); ++f) {
|
|
3331
3376
|
var g = Z.getActiveUniform(c, f);
|
|
3332
3377
|
var l = g.name;
|
|
3333
3378
|
g = g.size;
|
|
3334
3379
|
var p = Pd(l);
|
|
3335
3380
|
p = 0 < p ? l.slice(0, p) : l;
|
|
3336
|
-
var m = c.
|
|
3337
|
-
c.
|
|
3381
|
+
var m = c.Ya;
|
|
3382
|
+
c.Ya += g;
|
|
3338
3383
|
e[p] = [g, m];
|
|
3339
3384
|
for (l = 0; l < g; ++l) {
|
|
3340
|
-
d[m] = l, c.
|
|
3385
|
+
d[m] = l, c.yb[m++] = p;
|
|
3341
3386
|
}
|
|
3342
3387
|
}
|
|
3343
3388
|
}
|
|
@@ -3346,7 +3391,7 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3346
3391
|
e = b;
|
|
3347
3392
|
f = Pd(b);
|
|
3348
3393
|
0 < f && (d = parseInt(b.slice(f + 1)) >>> 0, e = b.slice(0, f));
|
|
3349
|
-
if ((e = a.
|
|
3394
|
+
if ((e = a.zb[e]) && d < e[0] && (d += e[1], c[d] = c[d] || Z.getUniformLocation(a, b))) {
|
|
3350
3395
|
return d;
|
|
3351
3396
|
}
|
|
3352
3397
|
} else {
|
|
@@ -3355,23 +3400,30 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3355
3400
|
return -1;
|
|
3356
3401
|
}, glInvalidateFramebuffer:function(a, b, c) {
|
|
3357
3402
|
for (var d = Kd[b], e = 0; e < b; e++) {
|
|
3358
|
-
d[e] =
|
|
3403
|
+
d[e] = I[c + 4 * e >> 2];
|
|
3359
3404
|
}
|
|
3360
3405
|
Z.invalidateFramebuffer(a, d);
|
|
3361
3406
|
}, glLinkProgram:function(a) {
|
|
3362
|
-
a =
|
|
3407
|
+
a = X[a];
|
|
3363
3408
|
Z.linkProgram(a);
|
|
3364
3409
|
a.oa = 0;
|
|
3365
|
-
a.
|
|
3410
|
+
a.zb = {};
|
|
3366
3411
|
}, glPixelStorei:function(a, b) {
|
|
3367
3412
|
Z.pixelStorei(a, b);
|
|
3413
|
+
}, glReadPixels:function(a, b, c, d, e, f, g) {
|
|
3414
|
+
if (Z.Pa) {
|
|
3415
|
+
Z.readPixels(a, b, c, d, e, f, g);
|
|
3416
|
+
} else {
|
|
3417
|
+
var l = Qd(f);
|
|
3418
|
+
Z.readPixels(a, b, c, d, e, f, l, g >> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
|
|
3419
|
+
}
|
|
3368
3420
|
}, glRenderbufferStorageMultisample:function(a, b, c, d, e) {
|
|
3369
3421
|
Z.renderbufferStorageMultisample(a, b, c, d, e);
|
|
3370
3422
|
}, glScissor:function(a, b, c, d) {
|
|
3371
3423
|
Z.scissor(a, b, c, d);
|
|
3372
3424
|
}, glShaderSource:function(a, b, c, d) {
|
|
3373
3425
|
for (var e = "", f = 0; f < b; ++f) {
|
|
3374
|
-
var g = d ?
|
|
3426
|
+
var g = d ? I[d + 4 * f >> 2] : -1, l = I[c + 4 * f >> 2];
|
|
3375
3427
|
g = l ? M(F, l, 0 > g ? void 0 : g) : "";
|
|
3376
3428
|
e += g;
|
|
3377
3429
|
}
|
|
@@ -3391,33 +3443,32 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3391
3443
|
}, glTexStorage2D:function(a, b, c, d, e) {
|
|
3392
3444
|
Z.texStorage2D(a, b, c, d, e);
|
|
3393
3445
|
}, glTexSubImage2D:function(a, b, c, d, e, f, g, l, p) {
|
|
3394
|
-
if (Z.
|
|
3446
|
+
if (Z.Qa) {
|
|
3395
3447
|
Z.texSubImage2D(a, b, c, d, e, f, g, l, p);
|
|
3396
3448
|
} else if (p) {
|
|
3397
|
-
var m = l
|
|
3398
|
-
m = 0 == m ? D : 1 == m ? F : 2 == m ? G : 4 == m ? J : 6 == m ? xa : 5 == m || 28922 == m || 28520 == m || 30779 == m || 30782 == m ? K : wa;
|
|
3449
|
+
var m = Qd(l);
|
|
3399
3450
|
Z.texSubImage2D(a, b, c, d, e, f, g, l, m, p >> 31 - Math.clz32(m.BYTES_PER_ELEMENT));
|
|
3400
3451
|
} else {
|
|
3401
3452
|
Z.texSubImage2D(a, b, c, d, e, f, g, l, null);
|
|
3402
3453
|
}
|
|
3403
3454
|
}, glUniform1i:function(a, b) {
|
|
3404
3455
|
var c = Z, d = c.uniform1i;
|
|
3405
|
-
var e = Z.
|
|
3456
|
+
var e = Z.Kb;
|
|
3406
3457
|
if (e) {
|
|
3407
3458
|
var f = e.oa[a];
|
|
3408
|
-
"number" == typeof f && (e.oa[a] = f = Z.getUniformLocation(e, e.
|
|
3459
|
+
"number" == typeof f && (e.oa[a] = f = Z.getUniformLocation(e, e.yb[a] + (0 < f ? "[" + f + "]" : "")));
|
|
3409
3460
|
a = f;
|
|
3410
3461
|
} else {
|
|
3411
3462
|
Y(1282), a = void 0;
|
|
3412
3463
|
}
|
|
3413
3464
|
d.call(c, a, b);
|
|
3414
3465
|
}, glUniformBlockBinding:function(a, b, c) {
|
|
3415
|
-
a =
|
|
3466
|
+
a = X[a];
|
|
3416
3467
|
Z.uniformBlockBinding(a, b, c);
|
|
3417
3468
|
}, glUseProgram:function(a) {
|
|
3418
|
-
a =
|
|
3469
|
+
a = X[a];
|
|
3419
3470
|
Z.useProgram(a);
|
|
3420
|
-
Z.
|
|
3471
|
+
Z.Kb = a;
|
|
3421
3472
|
}, glVertexAttribDivisor:function(a, b) {
|
|
3422
3473
|
Z.vertexAttribDivisor(a, b);
|
|
3423
3474
|
}, glVertexAttribIPointer:function(a, b, c, d, e) {
|
|
@@ -3427,8 +3478,8 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3427
3478
|
}, glViewport:function(a, b, c, d) {
|
|
3428
3479
|
Z.viewport(a, b, c, d);
|
|
3429
3480
|
}, provokingVertexWEBGL:function(a, b) {
|
|
3430
|
-
(a = w[a].C.
|
|
3431
|
-
}, strftime_l:(a, b, c, d) =>
|
|
3481
|
+
(a = w[a].C.rb) && a.provokingVertexWEBGL(b);
|
|
3482
|
+
}, strftime_l:(a, b, c, d) => Ud(a, b, c, d), upload_image:function(a, b) {
|
|
3432
3483
|
var c = k.images;
|
|
3433
3484
|
c && (b = c.get(b)) && (a = w[a].C, a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !0), a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, b), a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !1));
|
|
3434
3485
|
}};
|
|
@@ -3448,24 +3499,24 @@ var Yd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3448
3499
|
}
|
|
3449
3500
|
return c;
|
|
3450
3501
|
}
|
|
3451
|
-
var b = {env:
|
|
3502
|
+
var b = {env:Zd, wasi_snapshot_preview1:Zd,};
|
|
3452
3503
|
Fa++;
|
|
3453
3504
|
k.monitorRunDependencies && k.monitorRunDependencies(Fa);
|
|
3454
3505
|
if (k.instantiateWasm) {
|
|
3455
3506
|
try {
|
|
3456
3507
|
return k.instantiateWasm(b, a);
|
|
3457
3508
|
} catch (c) {
|
|
3458
|
-
ra("Module.instantiateWasm callback failed with error: " + c),
|
|
3509
|
+
ra("Module.instantiateWasm callback failed with error: " + c), ba(c);
|
|
3459
3510
|
}
|
|
3460
3511
|
}
|
|
3461
3512
|
Oa(b, function(c) {
|
|
3462
3513
|
a(c.instance);
|
|
3463
|
-
}).catch(
|
|
3514
|
+
}).catch(ba);
|
|
3464
3515
|
return {};
|
|
3465
3516
|
})();
|
|
3466
3517
|
var nc = a => (nc = C.free)(a), Nd = a => (Nd = C.malloc)(a);
|
|
3467
3518
|
k._setWebImage = (a, b, c) => (k._setWebImage = C.setWebImage)(a, b, c);
|
|
3468
|
-
var
|
|
3519
|
+
var Yd = () => (Yd = C.__errno_location)(), Ra = k._ma_device__on_notification_unlocked = a => (Ra = k._ma_device__on_notification_unlocked = C.ma_device__on_notification_unlocked)(a);
|
|
3469
3520
|
k._ma_malloc_emscripten = (a, b) => (k._ma_malloc_emscripten = C.ma_malloc_emscripten)(a, b);
|
|
3470
3521
|
k._ma_free_emscripten = (a, b) => (k._ma_free_emscripten = C.ma_free_emscripten)(a, b);
|
|
3471
3522
|
var Sa = k._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Sa = k._ma_device_process_pcm_frames_capture__webaudio = C.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Ta = k._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Ta = k._ma_device_process_pcm_frames_playback__webaudio = C.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), mc = a => (mc = C.__getTypeName)(a);
|
|
@@ -3480,16 +3531,16 @@ k.dynCall_viijii = (a, b, c, d, e, f, g) => (k.dynCall_viijii = C.dynCall_viijii
|
|
|
3480
3531
|
k.dynCall_iiiiij = (a, b, c, d, e, f, g) => (k.dynCall_iiiiij = C.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3481
3532
|
k.dynCall_iiiiijj = (a, b, c, d, e, f, g, l, p) => (k.dynCall_iiiiijj = C.dynCall_iiiiijj)(a, b, c, d, e, f, g, l, p);
|
|
3482
3533
|
k.dynCall_iiiiiijj = (a, b, c, d, e, f, g, l, p, m) => (k.dynCall_iiiiiijj = C.dynCall_iiiiiijj)(a, b, c, d, e, f, g, l, p, m);
|
|
3483
|
-
k.___start_em_js =
|
|
3484
|
-
k.___stop_em_js =
|
|
3485
|
-
var
|
|
3486
|
-
Ha = function
|
|
3487
|
-
|
|
3488
|
-
|
|
3534
|
+
k.___start_em_js = 531444;
|
|
3535
|
+
k.___stop_em_js = 534199;
|
|
3536
|
+
var $d;
|
|
3537
|
+
Ha = function ae() {
|
|
3538
|
+
$d || be();
|
|
3539
|
+
$d || (Ha = ae);
|
|
3489
3540
|
};
|
|
3490
|
-
function
|
|
3541
|
+
function be() {
|
|
3491
3542
|
function a() {
|
|
3492
|
-
if (
|
|
3543
|
+
if (!$d && ($d = !0, k.calledRun = !0, !va)) {
|
|
3493
3544
|
k.noFSInit || Tb || (Tb = !0, Sb(), k.stdin = k.stdin, k.stdout = k.stdout, k.stderr = k.stderr, k.stdin ? Vb("stdin", k.stdin) : Ob("/dev/tty", "/dev/stdin"), k.stdout ? Vb("stdout", null, k.stdout) : Ob("/dev/tty", "/dev/stdout"), k.stderr ? Vb("stderr", null, k.stderr) : Ob("/dev/tty1", "/dev/stderr"), Qb("/dev/stdin", 0), Qb("/dev/stdout", 1), Qb("/dev/stderr", 1));
|
|
3494
3545
|
zb = !1;
|
|
3495
3546
|
Va(Ca);
|
|
@@ -3526,7 +3577,7 @@ if (k.preInit) {
|
|
|
3526
3577
|
k.preInit.pop()();
|
|
3527
3578
|
}
|
|
3528
3579
|
}
|
|
3529
|
-
|
|
3580
|
+
be();
|
|
3530
3581
|
|
|
3531
3582
|
|
|
3532
3583
|
|