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