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