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