@rive-app/canvas-advanced-lite 2.21.7 → 2.23.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/canvas_advanced.mjs +489 -481
- package/package.json +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +26 -1
- package/rive_fallback.wasm +0 -0
package/canvas_advanced.mjs
CHANGED
|
@@ -25,7 +25,7 @@ function ca() {
|
|
|
25
25
|
this.xa();
|
|
26
26
|
e && e.Ta();
|
|
27
27
|
}
|
|
28
|
-
let a = 0, c = 0, d = new Map(), e = null,
|
|
28
|
+
let a = 0, c = 0, d = new Map(), e = null, f = null;
|
|
29
29
|
this.requestAnimationFrame = function(m) {
|
|
30
30
|
a || (a = requestAnimationFrame(b.bind(this)));
|
|
31
31
|
const k = ++c;
|
|
@@ -37,10 +37,10 @@ function ca() {
|
|
|
37
37
|
a && 0 == d.size && (cancelAnimationFrame(a), a = 0);
|
|
38
38
|
};
|
|
39
39
|
this.Ra = function(m) {
|
|
40
|
-
|
|
41
|
-
m || (
|
|
42
|
-
|
|
43
|
-
}, document.body.appendChild(
|
|
40
|
+
f && (document.body.remove(f), f = null);
|
|
41
|
+
m || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", m = function(k) {
|
|
42
|
+
f.innerHTML = "RIVE FPS " + k.toFixed(1);
|
|
43
|
+
}, document.body.appendChild(f));
|
|
44
44
|
e = new function() {
|
|
45
45
|
let k = 0, n = 0;
|
|
46
46
|
this.Ta = function() {
|
|
@@ -50,7 +50,7 @@ function ca() {
|
|
|
50
50
|
}();
|
|
51
51
|
};
|
|
52
52
|
this.Oa = function() {
|
|
53
|
-
|
|
53
|
+
f && (document.body.remove(f), f = null);
|
|
54
54
|
e = null;
|
|
55
55
|
};
|
|
56
56
|
this.xa = function() {
|
|
@@ -75,144 +75,148 @@ const ea = h.onRuntimeInitialized;
|
|
|
75
75
|
h.onRuntimeInitialized = function() {
|
|
76
76
|
ea && ea();
|
|
77
77
|
let b = h.decodeAudio;
|
|
78
|
-
h.decodeAudio = function(
|
|
79
|
-
|
|
80
|
-
e
|
|
78
|
+
h.decodeAudio = function(e, f) {
|
|
79
|
+
e = b(e);
|
|
80
|
+
f(e);
|
|
81
81
|
};
|
|
82
82
|
let a = h.decodeFont;
|
|
83
|
-
h.decodeFont = function(
|
|
84
|
-
|
|
85
|
-
e
|
|
83
|
+
h.decodeFont = function(e, f) {
|
|
84
|
+
e = a(e);
|
|
85
|
+
f(e);
|
|
86
86
|
};
|
|
87
87
|
const c = h.FileAssetLoader;
|
|
88
|
-
h.ptrToAsset =
|
|
89
|
-
let
|
|
90
|
-
return
|
|
88
|
+
h.ptrToAsset = e => {
|
|
89
|
+
let f = h.ptrToFileAsset(e);
|
|
90
|
+
return f.isImage ? h.ptrToImageAsset(e) : f.isFont ? h.ptrToFontAsset(e) : f.isAudio ? h.ptrToAudioAsset(e) : f;
|
|
91
91
|
};
|
|
92
|
-
h.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:
|
|
92
|
+
h.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:e}) {
|
|
93
93
|
this.__parent.__construct.call(this);
|
|
94
|
-
this.Ha =
|
|
95
|
-
}, loadContents:function(
|
|
96
|
-
|
|
97
|
-
return this.Ha(
|
|
94
|
+
this.Ha = e;
|
|
95
|
+
}, loadContents:function(e, f) {
|
|
96
|
+
e = h.ptrToAsset(e);
|
|
97
|
+
return this.Ha(e, f);
|
|
98
98
|
},});
|
|
99
99
|
h.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
|
|
100
100
|
this.__parent.__construct.call(this);
|
|
101
|
-
}, loadContents:function(
|
|
102
|
-
let
|
|
103
|
-
|
|
104
|
-
if ("" ===
|
|
101
|
+
}, loadContents:function(e) {
|
|
102
|
+
let f = h.ptrToAsset(e);
|
|
103
|
+
e = f.cdnUuid;
|
|
104
|
+
if ("" === e) {
|
|
105
105
|
return !1;
|
|
106
106
|
}
|
|
107
|
-
(function(
|
|
108
|
-
var
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
4 ==
|
|
107
|
+
(function(m, k) {
|
|
108
|
+
var n = new XMLHttpRequest();
|
|
109
|
+
n.responseType = "arraybuffer";
|
|
110
|
+
n.onreadystatechange = function() {
|
|
111
|
+
4 == n.readyState && 200 == n.status && k(n);
|
|
112
112
|
};
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
})(
|
|
116
|
-
|
|
113
|
+
n.open("GET", m, !0);
|
|
114
|
+
n.send(null);
|
|
115
|
+
})(f.cdnBaseUrl + "/" + e, m => {
|
|
116
|
+
f.decode(new Uint8Array(m.response));
|
|
117
117
|
});
|
|
118
118
|
return !0;
|
|
119
119
|
},});
|
|
120
120
|
h.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
121
121
|
this.__parent.__construct.call(this);
|
|
122
122
|
this.wa = [];
|
|
123
|
-
}, addLoader:function(
|
|
124
|
-
this.wa.push(
|
|
125
|
-
}, loadContents:function(
|
|
126
|
-
for (let
|
|
127
|
-
if (
|
|
123
|
+
}, addLoader:function(e) {
|
|
124
|
+
this.wa.push(e);
|
|
125
|
+
}, loadContents:function(e, f) {
|
|
126
|
+
for (let m of this.wa) {
|
|
127
|
+
if (m.loadContents(e, f)) {
|
|
128
128
|
return !0;
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
return !1;
|
|
132
132
|
},});
|
|
133
|
+
let d = h.computeAlignment;
|
|
134
|
+
h.computeAlignment = function(e, f, m, k, n = 1.0) {
|
|
135
|
+
return d.call(this, e, f, m, k, n);
|
|
136
|
+
};
|
|
133
137
|
};
|
|
134
138
|
const fa = "createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "), ha = new function() {
|
|
135
139
|
function b() {
|
|
136
140
|
if (!a) {
|
|
137
|
-
var
|
|
141
|
+
var g = document.createElement("canvas"), r = {alpha:1, depth:0, stencil:0, antialias:0, premultipliedAlpha:1, preserveDrawingBuffer:0, preferLowPowerToHighPerformance:0, failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:1, explicitSwapControl:1, renderViaOffscreenBackBuffer:1,};
|
|
138
142
|
let q;
|
|
139
143
|
if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {
|
|
140
|
-
if (q =
|
|
144
|
+
if (q = g.getContext("webgl", r), c = 1, !q) {
|
|
141
145
|
return console.log("No WebGL support. Image mesh will not be drawn."), !1;
|
|
142
146
|
}
|
|
143
147
|
} else {
|
|
144
|
-
if (q =
|
|
148
|
+
if (q = g.getContext("webgl2", r)) {
|
|
145
149
|
c = 2;
|
|
146
150
|
} else {
|
|
147
|
-
if (q =
|
|
151
|
+
if (q = g.getContext("webgl", r)) {
|
|
148
152
|
c = 1;
|
|
149
153
|
} else {
|
|
150
154
|
return console.log("No WebGL support. Image mesh will not be drawn."), !1;
|
|
151
155
|
}
|
|
152
156
|
}
|
|
153
157
|
}
|
|
154
|
-
q = new Proxy(q, {get(D,
|
|
158
|
+
q = new Proxy(q, {get(D, v) {
|
|
155
159
|
if (D.isContextLost()) {
|
|
156
|
-
if (n || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ",
|
|
160
|
+
if (n || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", v), n = !0), "function" === typeof D[v]) {
|
|
157
161
|
return function() {
|
|
158
162
|
};
|
|
159
163
|
}
|
|
160
164
|
} else {
|
|
161
|
-
return "function" === typeof D[
|
|
162
|
-
return D[
|
|
163
|
-
} : D[
|
|
165
|
+
return "function" === typeof D[v] ? function(...I) {
|
|
166
|
+
return D[v].apply(D, I);
|
|
167
|
+
} : D[v];
|
|
164
168
|
}
|
|
165
|
-
}, set(D,
|
|
169
|
+
}, set(D, v, I) {
|
|
166
170
|
if (D.isContextLost()) {
|
|
167
|
-
n || (console.error("Cannot render the mesh because the GL Context was lost. Tried to set property " +
|
|
171
|
+
n || (console.error("Cannot render the mesh because the GL Context was lost. Tried to set property " + v), n = !0);
|
|
168
172
|
} else {
|
|
169
|
-
return D[
|
|
173
|
+
return D[v] = I, !0;
|
|
170
174
|
}
|
|
171
175
|
},});
|
|
172
176
|
d = Math.min(q.getParameter(q.MAX_RENDERBUFFER_SIZE), q.getParameter(q.MAX_TEXTURE_SIZE));
|
|
173
|
-
function G(D,
|
|
174
|
-
|
|
175
|
-
q.shaderSource(
|
|
176
|
-
q.compileShader(
|
|
177
|
-
I = q.getShaderInfoLog(
|
|
177
|
+
function G(D, v, I) {
|
|
178
|
+
v = q.createShader(v);
|
|
179
|
+
q.shaderSource(v, I);
|
|
180
|
+
q.compileShader(v);
|
|
181
|
+
I = q.getShaderInfoLog(v);
|
|
178
182
|
if (0 < (I || "").length) {
|
|
179
183
|
throw I;
|
|
180
184
|
}
|
|
181
|
-
q.attachShader(D,
|
|
185
|
+
q.attachShader(D, v);
|
|
182
186
|
}
|
|
183
|
-
|
|
184
|
-
G(
|
|
185
|
-
G(
|
|
186
|
-
q.bindAttribLocation(
|
|
187
|
-
q.bindAttribLocation(
|
|
188
|
-
q.linkProgram(
|
|
189
|
-
r = q.getProgramInfoLog(
|
|
187
|
+
g = q.createProgram();
|
|
188
|
+
G(g, q.VERTEX_SHADER, "attribute vec2 vertex;\n attribute vec2 uv;\n uniform vec4 mat;\n uniform vec2 translate;\n varying vec2 st;\n void main() {\n st = uv;\n gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);\n }");
|
|
189
|
+
G(g, q.FRAGMENT_SHADER, "precision highp float;\n uniform sampler2D image;\n varying vec2 st;\n void main() {\n gl_FragColor = texture2D(image, st);\n }");
|
|
190
|
+
q.bindAttribLocation(g, 0, "vertex");
|
|
191
|
+
q.bindAttribLocation(g, 1, "uv");
|
|
192
|
+
q.linkProgram(g);
|
|
193
|
+
r = q.getProgramInfoLog(g);
|
|
190
194
|
if (0 < (r || "").trim().length) {
|
|
191
195
|
throw r;
|
|
192
196
|
}
|
|
193
|
-
e = q.getUniformLocation(
|
|
194
|
-
|
|
195
|
-
q.useProgram(
|
|
197
|
+
e = q.getUniformLocation(g, "mat");
|
|
198
|
+
f = q.getUniformLocation(g, "translate");
|
|
199
|
+
q.useProgram(g);
|
|
196
200
|
q.bindBuffer(q.ARRAY_BUFFER, q.createBuffer());
|
|
197
201
|
q.enableVertexAttribArray(0);
|
|
198
202
|
q.enableVertexAttribArray(1);
|
|
199
203
|
q.bindBuffer(q.ELEMENT_ARRAY_BUFFER, q.createBuffer());
|
|
200
|
-
q.uniform1i(q.getUniformLocation(
|
|
204
|
+
q.uniform1i(q.getUniformLocation(g, "image"), 0);
|
|
201
205
|
q.pixelStorei(q.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !0);
|
|
202
206
|
a = q;
|
|
203
207
|
}
|
|
204
208
|
return !0;
|
|
205
209
|
}
|
|
206
|
-
let a = null, c = 0, d = 0, e = null,
|
|
210
|
+
let a = null, c = 0, d = 0, e = null, f = null, m = 0, k = 0, n = !1;
|
|
207
211
|
b();
|
|
208
212
|
this.eb = function() {
|
|
209
213
|
b();
|
|
210
214
|
return d;
|
|
211
215
|
};
|
|
212
|
-
this.Ma = function(
|
|
213
|
-
a.deleteTexture && a.deleteTexture(
|
|
216
|
+
this.Ma = function(g) {
|
|
217
|
+
a.deleteTexture && a.deleteTexture(g);
|
|
214
218
|
};
|
|
215
|
-
this.La = function(
|
|
219
|
+
this.La = function(g) {
|
|
216
220
|
if (!b()) {
|
|
217
221
|
return null;
|
|
218
222
|
}
|
|
@@ -221,40 +225,40 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
221
225
|
return null;
|
|
222
226
|
}
|
|
223
227
|
a.bindTexture(a.TEXTURE_2D, r);
|
|
224
|
-
a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE,
|
|
228
|
+
a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, g);
|
|
225
229
|
a.texParameteri(a.TEXTURE_2D, a.TEXTURE_WRAP_S, a.CLAMP_TO_EDGE);
|
|
226
230
|
a.texParameteri(a.TEXTURE_2D, a.TEXTURE_WRAP_T, a.CLAMP_TO_EDGE);
|
|
227
231
|
a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER, a.LINEAR);
|
|
228
232
|
2 == c ? (a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR_MIPMAP_LINEAR), a.generateMipmap(a.TEXTURE_2D)) : a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR);
|
|
229
233
|
return r;
|
|
230
234
|
};
|
|
231
|
-
const l = new da(8), t = new da(8),
|
|
232
|
-
this.Qa = function(
|
|
235
|
+
const l = new da(8), t = new da(8), w = new da(10), x = new da(10);
|
|
236
|
+
this.Qa = function(g, r, q, G, D) {
|
|
233
237
|
if (b()) {
|
|
234
|
-
var
|
|
238
|
+
var v = l.push(g), I = t.push(r);
|
|
235
239
|
if (a.canvas) {
|
|
236
|
-
if (a.canvas.width !=
|
|
237
|
-
a.canvas.width =
|
|
240
|
+
if (a.canvas.width != v || a.canvas.height != I) {
|
|
241
|
+
a.canvas.width = v, a.canvas.height = I;
|
|
238
242
|
}
|
|
239
|
-
a.viewport(0, I - r,
|
|
243
|
+
a.viewport(0, I - r, g, r);
|
|
240
244
|
a.disable(a.SCISSOR_TEST);
|
|
241
245
|
a.clearColor(0, 0, 0, 0);
|
|
242
246
|
a.clear(a.COLOR_BUFFER_BIT);
|
|
243
247
|
a.enable(a.SCISSOR_TEST);
|
|
244
|
-
q.sort((
|
|
245
|
-
|
|
246
|
-
m !=
|
|
247
|
-
|
|
248
|
+
q.sort((C, W) => W.Ba - C.Ba);
|
|
249
|
+
v = w.push(G);
|
|
250
|
+
m != v && (a.bufferData(a.ARRAY_BUFFER, 8 * v, a.DYNAMIC_DRAW), m = v);
|
|
251
|
+
v = 0;
|
|
248
252
|
for (var O of q) {
|
|
249
|
-
a.bufferSubData(a.ARRAY_BUFFER,
|
|
253
|
+
a.bufferSubData(a.ARRAY_BUFFER, v, O.ia), v += 4 * O.ia.length;
|
|
250
254
|
}
|
|
251
|
-
console.assert(
|
|
255
|
+
console.assert(v == 4 * G);
|
|
252
256
|
for (var X of q) {
|
|
253
|
-
a.bufferSubData(a.ARRAY_BUFFER,
|
|
257
|
+
a.bufferSubData(a.ARRAY_BUFFER, v, X.Ea), v += 4 * X.Ea.length;
|
|
254
258
|
}
|
|
255
|
-
console.assert(
|
|
256
|
-
|
|
257
|
-
k !=
|
|
259
|
+
console.assert(v == 8 * G);
|
|
260
|
+
v = x.push(D);
|
|
261
|
+
k != v && (a.bufferData(a.ELEMENT_ARRAY_BUFFER, 2 * v, a.DYNAMIC_DRAW), k = v);
|
|
258
262
|
O = 0;
|
|
259
263
|
for (var ia of q) {
|
|
260
264
|
a.bufferSubData(a.ELEMENT_ARRAY_BUFFER, O, ia.indices), O += 2 * ia.indices.length;
|
|
@@ -262,21 +266,21 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
262
266
|
console.assert(O == 2 * D);
|
|
263
267
|
ia = 0;
|
|
264
268
|
X = !0;
|
|
265
|
-
|
|
266
|
-
for (const
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
q = 2 /
|
|
269
|
+
v = O = 0;
|
|
270
|
+
for (const C of q) {
|
|
271
|
+
C.image.da != ia && (a.bindTexture(a.TEXTURE_2D, C.image.ca || null), ia = C.image.da);
|
|
272
|
+
C.hb ? (a.scissor(C.na, I - C.oa - C.va, C.sb, C.va), X = !0) : X && (a.scissor(0, I - r, g, r), X = !1);
|
|
273
|
+
q = 2 / g;
|
|
270
274
|
const W = -2 / r;
|
|
271
|
-
a.uniform4f(e,
|
|
272
|
-
a.uniform2f(
|
|
273
|
-
a.vertexAttribPointer(0, 2, a.FLOAT, !1, 0,
|
|
274
|
-
a.vertexAttribPointer(1, 2, a.FLOAT, !1, 0,
|
|
275
|
-
a.drawElements(a.TRIANGLES,
|
|
276
|
-
|
|
277
|
-
O += 2 *
|
|
275
|
+
a.uniform4f(e, C.N[0] * q * C.X, C.N[1] * W * C.Y, C.N[2] * q * C.X, C.N[3] * W * C.Y);
|
|
276
|
+
a.uniform2f(f, C.N[4] * q * C.X + q * (C.na - C.fb * C.X) - 1, C.N[5] * W * C.Y + W * (C.oa - C.gb * C.Y) + 1);
|
|
277
|
+
a.vertexAttribPointer(0, 2, a.FLOAT, !1, 0, v);
|
|
278
|
+
a.vertexAttribPointer(1, 2, a.FLOAT, !1, 0, v + 4 * G);
|
|
279
|
+
a.drawElements(a.TRIANGLES, C.indices.length, a.UNSIGNED_SHORT, O);
|
|
280
|
+
v += 4 * C.ia.length;
|
|
281
|
+
O += 2 * C.indices.length;
|
|
278
282
|
}
|
|
279
|
-
console.assert(
|
|
283
|
+
console.assert(v == 4 * G);
|
|
280
284
|
console.assert(O == 2 * D);
|
|
281
285
|
}
|
|
282
286
|
}
|
|
@@ -326,10 +330,10 @@ h.onRuntimeInitialized = function() {
|
|
|
326
330
|
return "rgba(" + ((16711680 & p) >>> 16) + "," + ((65280 & p) >>> 8) + "," + ((255 & p) >>> 0) + "," + ((4278190080 & p) >>> 24) / 255 + ")";
|
|
327
331
|
}
|
|
328
332
|
function c() {
|
|
329
|
-
0 < I.length && (ha.Qa(
|
|
333
|
+
0 < I.length && (ha.Qa(v.drawWidth(), v.drawHeight(), I, O, X), I = [], X = O = 0, v.reset(512, 512));
|
|
330
334
|
for (const p of D) {
|
|
331
|
-
for (const
|
|
332
|
-
|
|
335
|
+
for (const u of p.u) {
|
|
336
|
+
u();
|
|
333
337
|
}
|
|
334
338
|
p.u = [];
|
|
335
339
|
}
|
|
@@ -337,56 +341,56 @@ h.onRuntimeInitialized = function() {
|
|
|
337
341
|
}
|
|
338
342
|
la && la();
|
|
339
343
|
var d = h.RenderPaintStyle;
|
|
340
|
-
const e = h.RenderPath,
|
|
341
|
-
let
|
|
342
|
-
var r = h.RenderImage.extend("CanvasRenderImage", {__construct:function({R:p, W:
|
|
344
|
+
const e = h.RenderPath, f = h.RenderPaint, m = h.Renderer, k = h.StrokeCap, n = h.StrokeJoin, l = h.BlendMode, t = d.fill, w = d.stroke, x = h.FillRule.evenOdd;
|
|
345
|
+
let g = 1;
|
|
346
|
+
var r = h.RenderImage.extend("CanvasRenderImage", {__construct:function({R:p, W:u} = {}) {
|
|
343
347
|
this.__parent.__construct.call(this);
|
|
344
|
-
this.da =
|
|
345
|
-
|
|
348
|
+
this.da = g;
|
|
349
|
+
g = g + 1 & 2147483647 || 1;
|
|
346
350
|
this.R = p;
|
|
347
|
-
this.W =
|
|
351
|
+
this.W = u;
|
|
348
352
|
}, __destruct:function() {
|
|
349
353
|
this.ca && (ha.Ma(this.ca), URL.revokeObjectURL(this.la));
|
|
350
354
|
this.__parent.__destruct.call(this);
|
|
351
355
|
}, decode:function(p) {
|
|
352
|
-
var
|
|
353
|
-
|
|
354
|
-
var
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
356
|
+
var u = this;
|
|
357
|
+
u.W && u.W(u);
|
|
358
|
+
var A = new Image();
|
|
359
|
+
u.la = URL.createObjectURL(new Blob([p], {type:"image/png",}));
|
|
360
|
+
A.onload = function() {
|
|
361
|
+
u.Ga = A;
|
|
362
|
+
u.ca = ha.La(A);
|
|
363
|
+
u.size(A.width, A.height);
|
|
364
|
+
u.R && u.R(u);
|
|
361
365
|
};
|
|
362
|
-
|
|
366
|
+
A.src = u.la;
|
|
363
367
|
},}), q = e.extend("CanvasRenderPath", {__construct:function() {
|
|
364
368
|
this.__parent.__construct.call(this);
|
|
365
369
|
this.F = new Path2D();
|
|
366
370
|
}, rewind:function() {
|
|
367
371
|
this.F = new Path2D();
|
|
368
|
-
}, addPath:function(p,
|
|
372
|
+
}, addPath:function(p, u, A, B, y, E, F) {
|
|
369
373
|
var H = this.F, T = H.addPath;
|
|
370
374
|
p = p.F;
|
|
371
375
|
const K = new DOMMatrix();
|
|
372
|
-
K.a =
|
|
373
|
-
K.b =
|
|
374
|
-
K.c =
|
|
375
|
-
K.d =
|
|
376
|
+
K.a = u;
|
|
377
|
+
K.b = A;
|
|
378
|
+
K.c = B;
|
|
379
|
+
K.d = y;
|
|
376
380
|
K.e = E;
|
|
377
381
|
K.f = F;
|
|
378
382
|
T.call(H, p, K);
|
|
379
383
|
}, fillRule:function(p) {
|
|
380
384
|
this.ka = p;
|
|
381
|
-
}, moveTo:function(p,
|
|
382
|
-
this.F.moveTo(p,
|
|
383
|
-
}, lineTo:function(p,
|
|
384
|
-
this.F.lineTo(p,
|
|
385
|
-
}, cubicTo:function(p,
|
|
386
|
-
this.F.bezierCurveTo(p,
|
|
385
|
+
}, moveTo:function(p, u) {
|
|
386
|
+
this.F.moveTo(p, u);
|
|
387
|
+
}, lineTo:function(p, u) {
|
|
388
|
+
this.F.lineTo(p, u);
|
|
389
|
+
}, cubicTo:function(p, u, A, B, y, E) {
|
|
390
|
+
this.F.bezierCurveTo(p, u, A, B, y, E);
|
|
387
391
|
}, close:function() {
|
|
388
392
|
this.F.closePath();
|
|
389
|
-
},}), G =
|
|
393
|
+
},}), G = f.extend("CanvasRenderPaint", {color:function(p) {
|
|
390
394
|
this.ma = a(p);
|
|
391
395
|
}, thickness:function(p) {
|
|
392
396
|
this.Ja = p;
|
|
@@ -418,44 +422,44 @@ h.onRuntimeInitialized = function() {
|
|
|
418
422
|
this.Fa = b(p);
|
|
419
423
|
}, clearGradient:function() {
|
|
420
424
|
this.P = null;
|
|
421
|
-
}, linearGradient:function(p,
|
|
422
|
-
this.P = {Ca:p, Da:
|
|
423
|
-
}, radialGradient:function(p,
|
|
424
|
-
this.P = {Ca:p, Da:
|
|
425
|
-
}, addStop:function(p,
|
|
426
|
-
this.P.ga.push({color:p, stop:
|
|
425
|
+
}, linearGradient:function(p, u, A, B) {
|
|
426
|
+
this.P = {Ca:p, Da:u, qa:A, ra:B, ga:[],};
|
|
427
|
+
}, radialGradient:function(p, u, A, B) {
|
|
428
|
+
this.P = {Ca:p, Da:u, qa:A, ra:B, ga:[], bb:!0,};
|
|
429
|
+
}, addStop:function(p, u) {
|
|
430
|
+
this.P.ga.push({color:p, stop:u,});
|
|
427
431
|
}, completeGradient:function() {
|
|
428
|
-
}, draw:function(p,
|
|
429
|
-
let
|
|
430
|
-
var
|
|
432
|
+
}, draw:function(p, u, A) {
|
|
433
|
+
let B = this.Ia;
|
|
434
|
+
var y = this.ma, E = this.P;
|
|
431
435
|
p.globalCompositeOperation = this.Fa;
|
|
432
436
|
if (null != E) {
|
|
433
|
-
|
|
437
|
+
y = E.Ca;
|
|
434
438
|
var F = E.Da;
|
|
435
439
|
const T = E.qa;
|
|
436
440
|
var H = E.ra;
|
|
437
441
|
const K = E.ga;
|
|
438
|
-
E.bb ? (E = T -
|
|
442
|
+
E.bb ? (E = T - y, H -= F, y = p.createRadialGradient(y, F, 0, y, F, Math.sqrt(E * E + H * H))) : y = p.createLinearGradient(y, F, T, H);
|
|
439
443
|
for (let Y = 0, N = K.length; Y < N; Y++) {
|
|
440
|
-
F = K[Y],
|
|
444
|
+
F = K[Y], y.addColorStop(F.stop, a(F.color));
|
|
441
445
|
}
|
|
442
|
-
this.ma =
|
|
446
|
+
this.ma = y;
|
|
443
447
|
this.P = null;
|
|
444
448
|
}
|
|
445
|
-
switch(
|
|
446
|
-
case
|
|
447
|
-
p.strokeStyle =
|
|
449
|
+
switch(B) {
|
|
450
|
+
case w:
|
|
451
|
+
p.strokeStyle = y;
|
|
448
452
|
p.lineWidth = this.Ja;
|
|
449
453
|
p.lineCap = this.aa;
|
|
450
454
|
p.lineJoin = this.ba;
|
|
451
|
-
p.stroke(
|
|
455
|
+
p.stroke(u);
|
|
452
456
|
break;
|
|
453
457
|
case t:
|
|
454
|
-
p.fillStyle =
|
|
458
|
+
p.fillStyle = y, p.fill(u, A);
|
|
455
459
|
}
|
|
456
460
|
},});
|
|
457
461
|
const D = new Set();
|
|
458
|
-
let
|
|
462
|
+
let v = null, I = [], O = 0, X = 0;
|
|
459
463
|
var ia = h.CanvasRenderer = m.extend("Renderer", {__construct:function(p) {
|
|
460
464
|
this.__parent.__construct.call(this);
|
|
461
465
|
this.D = [1, 0, 0, 1, 0, 0];
|
|
@@ -472,33 +476,33 @@ h.onRuntimeInitialized = function() {
|
|
|
472
476
|
}
|
|
473
477
|
this.D.splice(p);
|
|
474
478
|
this.u.push(this.o.restore.bind(this.o));
|
|
475
|
-
}, transform:function(p,
|
|
479
|
+
}, transform:function(p, u, A, B, y, E) {
|
|
476
480
|
const F = this.D, H = F.length - 6;
|
|
477
|
-
F.splice(H, 6, F[H] * p + F[H + 2] *
|
|
478
|
-
this.u.push(this.o.transform.bind(this.o, p,
|
|
481
|
+
F.splice(H, 6, F[H] * p + F[H + 2] * u, F[H + 1] * p + F[H + 3] * u, F[H] * A + F[H + 2] * B, F[H + 1] * A + F[H + 3] * B, F[H] * y + F[H + 2] * E + F[H + 4], F[H + 1] * y + F[H + 3] * E + F[H + 5]);
|
|
482
|
+
this.u.push(this.o.transform.bind(this.o, p, u, A, B, y, E));
|
|
479
483
|
}, rotate:function(p) {
|
|
480
|
-
const
|
|
484
|
+
const u = Math.sin(p);
|
|
481
485
|
p = Math.cos(p);
|
|
482
|
-
this.transform(p,
|
|
483
|
-
}, _drawPath:function(p,
|
|
484
|
-
this.u.push(
|
|
485
|
-
}, _drawRiveImage:function(p,
|
|
486
|
-
var
|
|
487
|
-
if (
|
|
488
|
-
var
|
|
486
|
+
this.transform(p, u, -u, p, 0, 0);
|
|
487
|
+
}, _drawPath:function(p, u) {
|
|
488
|
+
this.u.push(u.draw.bind(u, this.o, p.F, p.ka === x ? "evenodd" : "nonzero"));
|
|
489
|
+
}, _drawRiveImage:function(p, u, A) {
|
|
490
|
+
var B = p.Ga;
|
|
491
|
+
if (B) {
|
|
492
|
+
var y = this.o, E = b(u);
|
|
489
493
|
this.u.push(function() {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
+
y.globalCompositeOperation = E;
|
|
495
|
+
y.globalAlpha = A;
|
|
496
|
+
y.drawImage(B, 0, 0);
|
|
497
|
+
y.globalAlpha = 1;
|
|
494
498
|
});
|
|
495
499
|
}
|
|
496
500
|
}, _getMatrix:function(p) {
|
|
497
|
-
const
|
|
498
|
-
for (let
|
|
499
|
-
p[
|
|
501
|
+
const u = this.D, A = u.length - 6;
|
|
502
|
+
for (let B = 0; 6 > B; ++B) {
|
|
503
|
+
p[B] = u[A + B];
|
|
500
504
|
}
|
|
501
|
-
}, _drawImageMesh:function(p,
|
|
505
|
+
}, _drawImageMesh:function(p, u, A, B, y, E, F, H, T, K) {
|
|
502
506
|
var Y = this.o.canvas.width, N = this.o.canvas.height;
|
|
503
507
|
const tb = T - F, ub = K - H;
|
|
504
508
|
F = Math.max(F, 0);
|
|
@@ -515,19 +519,19 @@ h.onRuntimeInitialized = function() {
|
|
|
515
519
|
N = ha.eb();
|
|
516
520
|
ja > N && (K *= N / ja, ja = N);
|
|
517
521
|
ka > N && (Y *= N / ka, ka = N);
|
|
518
|
-
|
|
519
|
-
N =
|
|
520
|
-
0 > N && (c(), D.add(this), N =
|
|
522
|
+
v || (v = new h.DynamicRectanizer(N), v.reset(512, 512));
|
|
523
|
+
N = v.addRect(ja, ka);
|
|
524
|
+
0 > N && (c(), D.add(this), N = v.addRect(ja, ka), console.assert(0 <= N));
|
|
521
525
|
var vb = N & 65535, wb = N >> 16;
|
|
522
|
-
I.push({N:this.D.slice(this.D.length - 6), image:p, na:vb, oa:wb, fb:F, gb:H, sb:ja, va:ka, X:K, Y, ia:new Float32Array(
|
|
523
|
-
O +=
|
|
526
|
+
I.push({N:this.D.slice(this.D.length - 6), image:p, na:vb, oa:wb, fb:F, gb:H, sb:ja, va:ka, X:K, Y, ia:new Float32Array(B), Ea:new Float32Array(y), indices:new Uint16Array(E), hb:T, Ba:p.da << 1 | (T ? 1 : 0),});
|
|
527
|
+
O += B.length;
|
|
524
528
|
X += E.length;
|
|
525
|
-
var pa = this.o, oc = b(
|
|
529
|
+
var pa = this.o, oc = b(u);
|
|
526
530
|
this.u.push(function() {
|
|
527
531
|
pa.save();
|
|
528
532
|
pa.resetTransform();
|
|
529
533
|
pa.globalCompositeOperation = oc;
|
|
530
|
-
pa.globalAlpha =
|
|
534
|
+
pa.globalAlpha = A;
|
|
531
535
|
const xb = ha.canvas();
|
|
532
536
|
xb && pa.drawImage(xb, vb, wb, ja, ka, F, H, wa, xa);
|
|
533
537
|
pa.restore();
|
|
@@ -539,36 +543,36 @@ h.onRuntimeInitialized = function() {
|
|
|
539
543
|
D.add(this);
|
|
540
544
|
this.u.push(this.o.clearRect.bind(this.o, 0, 0, this.ja.width, this.ja.height));
|
|
541
545
|
}, flush:function() {
|
|
542
|
-
}, translate:function(p,
|
|
543
|
-
this.transform(1, 0, 0, 1, p,
|
|
546
|
+
}, translate:function(p, u) {
|
|
547
|
+
this.transform(1, 0, 0, 1, p, u);
|
|
544
548
|
},});
|
|
545
549
|
h.makeRenderer = function(p) {
|
|
546
|
-
const
|
|
547
|
-
return new Proxy(
|
|
548
|
-
if ("function" === typeof
|
|
550
|
+
const u = new ia(p), A = u.o;
|
|
551
|
+
return new Proxy(u, {get(B, y) {
|
|
552
|
+
if ("function" === typeof B[y]) {
|
|
549
553
|
return function(...E) {
|
|
550
|
-
return
|
|
554
|
+
return B[y].apply(B, E);
|
|
551
555
|
};
|
|
552
556
|
}
|
|
553
|
-
if ("function" === typeof
|
|
554
|
-
if (-1 < fa.indexOf(
|
|
555
|
-
throw Error("RiveException: Method call to '" +
|
|
557
|
+
if ("function" === typeof A[y]) {
|
|
558
|
+
if (-1 < fa.indexOf(y)) {
|
|
559
|
+
throw Error("RiveException: Method call to '" + y + "()' is not allowed, as the renderer cannot immediately pass through the return values of any canvas 2d context methods.");
|
|
556
560
|
}
|
|
557
561
|
return function(...E) {
|
|
558
|
-
|
|
562
|
+
u.u.push(A[y].bind(A, ...E));
|
|
559
563
|
};
|
|
560
564
|
}
|
|
561
|
-
return
|
|
562
|
-
}, set(
|
|
563
|
-
if (
|
|
564
|
-
return
|
|
565
|
-
|
|
565
|
+
return B[y];
|
|
566
|
+
}, set(B, y, E) {
|
|
567
|
+
if (y in A) {
|
|
568
|
+
return u.u.push(() => {
|
|
569
|
+
A[y] = E;
|
|
566
570
|
}), !0;
|
|
567
571
|
}
|
|
568
572
|
},});
|
|
569
573
|
};
|
|
570
|
-
h.decodeImage = function(p,
|
|
571
|
-
(new r({R:
|
|
574
|
+
h.decodeImage = function(p, u) {
|
|
575
|
+
(new r({R:u})).decode(p);
|
|
572
576
|
};
|
|
573
577
|
h.renderFactory = {makeRenderPaint:function() {
|
|
574
578
|
return new G();
|
|
@@ -581,25 +585,29 @@ h.onRuntimeInitialized = function() {
|
|
|
581
585
|
}, R:() => {
|
|
582
586
|
p.loaded++;
|
|
583
587
|
if (p.loaded === p.total) {
|
|
584
|
-
const
|
|
585
|
-
|
|
588
|
+
const u = p.ready;
|
|
589
|
+
u && (u(), p.ready = null);
|
|
586
590
|
}
|
|
587
591
|
},});
|
|
588
592
|
},};
|
|
589
|
-
let
|
|
590
|
-
h.load = function(p,
|
|
591
|
-
const
|
|
592
|
-
void 0 !==
|
|
593
|
-
|
|
594
|
-
return new Promise(function(
|
|
593
|
+
let C = h.load, W = null;
|
|
594
|
+
h.load = function(p, u, A = !0) {
|
|
595
|
+
const B = new h.FallbackFileAssetLoader();
|
|
596
|
+
void 0 !== u && B.addLoader(u);
|
|
597
|
+
A && (u = new h.CDNFileAssetLoader(), B.addLoader(u));
|
|
598
|
+
return new Promise(function(y) {
|
|
595
599
|
let E = null;
|
|
596
600
|
W = {total:0, loaded:0, ready:function() {
|
|
597
|
-
|
|
601
|
+
y(E);
|
|
598
602
|
},};
|
|
599
|
-
E =
|
|
600
|
-
0 == W.total &&
|
|
603
|
+
E = C(p, B);
|
|
604
|
+
0 == W.total && y(E);
|
|
601
605
|
});
|
|
602
606
|
};
|
|
607
|
+
let pc = h.RendererWrapper.prototype.align;
|
|
608
|
+
h.RendererWrapper.prototype.align = function(p, u, A, B, y = 1.0) {
|
|
609
|
+
pc.call(this, p, u, A, B, y);
|
|
610
|
+
};
|
|
603
611
|
d = new ca();
|
|
604
612
|
h.requestAnimationFrame = d.requestAnimationFrame.bind(d);
|
|
605
613
|
h.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);
|
|
@@ -608,12 +616,12 @@ h.onRuntimeInitialized = function() {
|
|
|
608
616
|
d.xa = c;
|
|
609
617
|
h.resolveAnimationFrame = c;
|
|
610
618
|
h.cleanup = function() {
|
|
611
|
-
|
|
619
|
+
v && v.delete();
|
|
612
620
|
};
|
|
613
621
|
};
|
|
614
|
-
var ma = Object.assign({}, h), na = "./this.program", oa = "object" == typeof window, qa = "function" == typeof importScripts,
|
|
622
|
+
var ma = Object.assign({}, h), na = "./this.program", oa = "object" == typeof window, qa = "function" == typeof importScripts, z = "", ra, sa;
|
|
615
623
|
if (oa || qa) {
|
|
616
|
-
qa ?
|
|
624
|
+
qa ? z = self.location.href : "undefined" != typeof document && document.currentScript && (z = document.currentScript.src), _scriptDir && (z = _scriptDir), 0 !== z.indexOf("blob:") ? z = z.substr(0, z.replace(/[?#].*/, "").lastIndexOf("/") + 1) : z = "", qa && (sa = b => {
|
|
617
625
|
var a = new XMLHttpRequest();
|
|
618
626
|
a.open("GET", b, !1);
|
|
619
627
|
a.responseType = "arraybuffer";
|
|
@@ -674,7 +682,7 @@ var Qa;
|
|
|
674
682
|
Qa = "canvas_advanced.wasm";
|
|
675
683
|
if (!Pa(Qa)) {
|
|
676
684
|
var Ra = Qa;
|
|
677
|
-
Qa = h.locateFile ? h.locateFile(Ra,
|
|
685
|
+
Qa = h.locateFile ? h.locateFile(Ra, z) : z + Ra;
|
|
678
686
|
}
|
|
679
687
|
function Sa(b) {
|
|
680
688
|
if (b == Qa && va) {
|
|
@@ -880,15 +888,15 @@ function V(b, a, c) {
|
|
|
880
888
|
b.forEach(function(k) {
|
|
881
889
|
Hb[k] = a;
|
|
882
890
|
});
|
|
883
|
-
var e = Array(a.length),
|
|
891
|
+
var e = Array(a.length), f = [], m = 0;
|
|
884
892
|
a.forEach((k, n) => {
|
|
885
|
-
jb.hasOwnProperty(k) ? e[n] = jb[k] : (
|
|
893
|
+
jb.hasOwnProperty(k) ? e[n] = jb[k] : (f.push(k), Gb.hasOwnProperty(k) || (Gb[k] = []), Gb[k].push(() => {
|
|
886
894
|
e[n] = jb[k];
|
|
887
895
|
++m;
|
|
888
|
-
m ===
|
|
896
|
+
m === f.length && d(e);
|
|
889
897
|
}));
|
|
890
898
|
});
|
|
891
|
-
0 ===
|
|
899
|
+
0 === f.length && d(e);
|
|
892
900
|
}
|
|
893
901
|
function Jb(b) {
|
|
894
902
|
switch(b) {
|
|
@@ -942,13 +950,13 @@ function Nb(b, a, c) {
|
|
|
942
950
|
function Ob(b, a, c) {
|
|
943
951
|
h.hasOwnProperty(b) ? ((void 0 === c || void 0 !== h[b].m && void 0 !== h[b].m[c]) && R(`Cannot register public name '${b}' twice`), Nb(h, b, b), h.hasOwnProperty(c) && R(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), h[b].m[c] = a) : (h[b] = a, void 0 !== c && (h[b].tb = c));
|
|
944
952
|
}
|
|
945
|
-
function Pb(b, a, c, d, e,
|
|
953
|
+
function Pb(b, a, c, d, e, f, m, k) {
|
|
946
954
|
this.name = b;
|
|
947
955
|
this.constructor = a;
|
|
948
956
|
this.B = c;
|
|
949
957
|
this.H = d;
|
|
950
958
|
this.l = e;
|
|
951
|
-
this.Ua =
|
|
959
|
+
this.Ua = f;
|
|
952
960
|
this.S = m;
|
|
953
961
|
this.Pa = k;
|
|
954
962
|
this.ya = [];
|
|
@@ -1054,16 +1062,16 @@ function Z(b, a) {
|
|
|
1054
1062
|
}
|
|
1055
1063
|
var $b = void 0;
|
|
1056
1064
|
function ac(b, a) {
|
|
1057
|
-
function c(
|
|
1058
|
-
e[
|
|
1065
|
+
function c(f) {
|
|
1066
|
+
e[f] || jb[f] || (Hb[f] ? Hb[f].forEach(c) : (d.push(f), e[f] = !0));
|
|
1059
1067
|
}
|
|
1060
1068
|
var d = [], e = {};
|
|
1061
1069
|
a.forEach(c);
|
|
1062
1070
|
throw new $b(`${b}: ` + d.map(kb).join([", "]));
|
|
1063
1071
|
}
|
|
1064
1072
|
function bc(b, a, c, d, e) {
|
|
1065
|
-
var
|
|
1066
|
-
2 >
|
|
1073
|
+
var f = a.length;
|
|
1074
|
+
2 > f && R("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1067
1075
|
var m = null !== a[1] && null !== c, k = !1;
|
|
1068
1076
|
for (c = 1; c < a.length; ++c) {
|
|
1069
1077
|
if (null !== a[c] && void 0 === a[c].v) {
|
|
@@ -1071,30 +1079,30 @@ function bc(b, a, c, d, e) {
|
|
|
1071
1079
|
break;
|
|
1072
1080
|
}
|
|
1073
1081
|
}
|
|
1074
|
-
var n = "void" !== a[0].name, l =
|
|
1082
|
+
var n = "void" !== a[0].name, l = f - 2, t = Array(l), w = [], x = [];
|
|
1075
1083
|
return function() {
|
|
1076
1084
|
arguments.length !== l && R(`function ${b} called with ${arguments.length} arguments, expected ${l} args!`);
|
|
1077
1085
|
x.length = 0;
|
|
1078
|
-
|
|
1079
|
-
|
|
1086
|
+
w.length = m ? 2 : 1;
|
|
1087
|
+
w[0] = e;
|
|
1080
1088
|
if (m) {
|
|
1081
|
-
var
|
|
1082
|
-
|
|
1089
|
+
var g = a[1].toWireType(x, this);
|
|
1090
|
+
w[1] = g;
|
|
1083
1091
|
}
|
|
1084
1092
|
for (var r = 0; r < l; ++r) {
|
|
1085
|
-
t[r] = a[r + 2].toWireType(x, arguments[r]),
|
|
1093
|
+
t[r] = a[r + 2].toWireType(x, arguments[r]), w.push(t[r]);
|
|
1086
1094
|
}
|
|
1087
|
-
r = d.apply(null,
|
|
1095
|
+
r = d.apply(null, w);
|
|
1088
1096
|
if (k) {
|
|
1089
1097
|
Eb(x);
|
|
1090
1098
|
} else {
|
|
1091
1099
|
for (var q = m ? 1 : 2; q < a.length; q++) {
|
|
1092
|
-
var G = 1 === q ?
|
|
1100
|
+
var G = 1 === q ? g : t[q - 2];
|
|
1093
1101
|
null !== a[q].v && a[q].v(G);
|
|
1094
1102
|
}
|
|
1095
1103
|
}
|
|
1096
|
-
|
|
1097
|
-
return
|
|
1104
|
+
g = n ? a[0].fromWireType(r) : void 0;
|
|
1105
|
+
return g;
|
|
1098
1106
|
};
|
|
1099
1107
|
}
|
|
1100
1108
|
function cc(b, a) {
|
|
@@ -1179,38 +1187,38 @@ var ic = (b, a, c, d) => {
|
|
|
1179
1187
|
if (0 < d) {
|
|
1180
1188
|
d = c + d - 1;
|
|
1181
1189
|
for (var e = 0; e < b.length; ++e) {
|
|
1182
|
-
var
|
|
1183
|
-
if (55296 <=
|
|
1190
|
+
var f = b.charCodeAt(e);
|
|
1191
|
+
if (55296 <= f && 57343 >= f) {
|
|
1184
1192
|
var m = b.charCodeAt(++e);
|
|
1185
|
-
|
|
1193
|
+
f = 65536 + ((f & 1023) << 10) | m & 1023;
|
|
1186
1194
|
}
|
|
1187
|
-
if (127 >=
|
|
1195
|
+
if (127 >= f) {
|
|
1188
1196
|
if (c >= d) {
|
|
1189
1197
|
break;
|
|
1190
1198
|
}
|
|
1191
|
-
a[c++] =
|
|
1199
|
+
a[c++] = f;
|
|
1192
1200
|
} else {
|
|
1193
|
-
if (2047 >=
|
|
1201
|
+
if (2047 >= f) {
|
|
1194
1202
|
if (c + 1 >= d) {
|
|
1195
1203
|
break;
|
|
1196
1204
|
}
|
|
1197
|
-
a[c++] = 192 |
|
|
1205
|
+
a[c++] = 192 | f >> 6;
|
|
1198
1206
|
} else {
|
|
1199
|
-
if (65535 >=
|
|
1207
|
+
if (65535 >= f) {
|
|
1200
1208
|
if (c + 2 >= d) {
|
|
1201
1209
|
break;
|
|
1202
1210
|
}
|
|
1203
|
-
a[c++] = 224 |
|
|
1211
|
+
a[c++] = 224 | f >> 12;
|
|
1204
1212
|
} else {
|
|
1205
1213
|
if (c + 3 >= d) {
|
|
1206
1214
|
break;
|
|
1207
1215
|
}
|
|
1208
|
-
a[c++] = 240 |
|
|
1209
|
-
a[c++] = 128 |
|
|
1216
|
+
a[c++] = 240 | f >> 18;
|
|
1217
|
+
a[c++] = 128 | f >> 12 & 63;
|
|
1210
1218
|
}
|
|
1211
|
-
a[c++] = 128 |
|
|
1219
|
+
a[c++] = 128 | f >> 6 & 63;
|
|
1212
1220
|
}
|
|
1213
|
-
a[c++] = 128 |
|
|
1221
|
+
a[c++] = 128 | f & 63;
|
|
1214
1222
|
}
|
|
1215
1223
|
}
|
|
1216
1224
|
a[c] = 0;
|
|
@@ -1232,12 +1240,12 @@ var ic = (b, a, c, d) => {
|
|
|
1232
1240
|
for (d = ""; a < c;) {
|
|
1233
1241
|
var e = b[a++];
|
|
1234
1242
|
if (e & 128) {
|
|
1235
|
-
var
|
|
1243
|
+
var f = b[a++] & 63;
|
|
1236
1244
|
if (192 == (e & 224)) {
|
|
1237
|
-
d += String.fromCharCode((e & 31) << 6 |
|
|
1245
|
+
d += String.fromCharCode((e & 31) << 6 | f);
|
|
1238
1246
|
} else {
|
|
1239
1247
|
var m = b[a++] & 63;
|
|
1240
|
-
e = 224 == (e & 240) ? (e & 15) << 12 |
|
|
1248
|
+
e = 224 == (e & 240) ? (e & 15) << 12 | f << 6 | m : (e & 7) << 18 | f << 12 | m << 6 | b[a++] & 63;
|
|
1241
1249
|
65536 > e ? d += String.fromCharCode(e) : (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023));
|
|
1242
1250
|
}
|
|
1243
1251
|
} else {
|
|
@@ -1263,7 +1271,7 @@ var ic = (b, a, c, d) => {
|
|
|
1263
1271
|
c += String.fromCharCode(e);
|
|
1264
1272
|
}
|
|
1265
1273
|
return c;
|
|
1266
|
-
},
|
|
1274
|
+
}, qc = (b, a, c) => {
|
|
1267
1275
|
void 0 === c && (c = 2147483647);
|
|
1268
1276
|
if (2 > c) {
|
|
1269
1277
|
return 0;
|
|
@@ -1276,7 +1284,7 @@ var ic = (b, a, c, d) => {
|
|
|
1276
1284
|
}
|
|
1277
1285
|
Ca[a >> 1] = 0;
|
|
1278
1286
|
return a - d;
|
|
1279
|
-
},
|
|
1287
|
+
}, rc = b => 2 * b.length, sc = (b, a) => {
|
|
1280
1288
|
for (var c = 0, d = ""; !(c >= a / 4);) {
|
|
1281
1289
|
var e = M[b + 4 * c >> 2];
|
|
1282
1290
|
if (0 == e) {
|
|
@@ -1286,7 +1294,7 @@ var ic = (b, a, c, d) => {
|
|
|
1286
1294
|
65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
|
|
1287
1295
|
}
|
|
1288
1296
|
return d;
|
|
1289
|
-
},
|
|
1297
|
+
}, tc = (b, a, c) => {
|
|
1290
1298
|
void 0 === c && (c = 2147483647);
|
|
1291
1299
|
if (4 > c) {
|
|
1292
1300
|
return 0;
|
|
@@ -1294,12 +1302,12 @@ var ic = (b, a, c, d) => {
|
|
|
1294
1302
|
var d = a;
|
|
1295
1303
|
c = d + c - 4;
|
|
1296
1304
|
for (var e = 0; e < b.length; ++e) {
|
|
1297
|
-
var
|
|
1298
|
-
if (55296 <=
|
|
1305
|
+
var f = b.charCodeAt(e);
|
|
1306
|
+
if (55296 <= f && 57343 >= f) {
|
|
1299
1307
|
var m = b.charCodeAt(++e);
|
|
1300
|
-
|
|
1308
|
+
f = 65536 + ((f & 1023) << 10) | m & 1023;
|
|
1301
1309
|
}
|
|
1302
|
-
M[a >> 2] =
|
|
1310
|
+
M[a >> 2] = f;
|
|
1303
1311
|
a += 4;
|
|
1304
1312
|
if (a + 4 > c) {
|
|
1305
1313
|
break;
|
|
@@ -1307,100 +1315,100 @@ var ic = (b, a, c, d) => {
|
|
|
1307
1315
|
}
|
|
1308
1316
|
M[a >> 2] = 0;
|
|
1309
1317
|
return a - d;
|
|
1310
|
-
},
|
|
1318
|
+
}, uc = b => {
|
|
1311
1319
|
for (var a = 0, c = 0; c < b.length; ++c) {
|
|
1312
1320
|
var d = b.charCodeAt(c);
|
|
1313
1321
|
55296 <= d && 57343 >= d && ++c;
|
|
1314
1322
|
a += 4;
|
|
1315
1323
|
}
|
|
1316
1324
|
return a;
|
|
1317
|
-
},
|
|
1318
|
-
function
|
|
1319
|
-
var a =
|
|
1325
|
+
}, vc = {};
|
|
1326
|
+
function wc(b) {
|
|
1327
|
+
var a = vc[b];
|
|
1320
1328
|
return void 0 === a ? U(b) : a;
|
|
1321
1329
|
}
|
|
1322
|
-
var
|
|
1323
|
-
function
|
|
1324
|
-
var a =
|
|
1325
|
-
|
|
1330
|
+
var xc = [];
|
|
1331
|
+
function yc(b) {
|
|
1332
|
+
var a = xc.length;
|
|
1333
|
+
xc.push(b);
|
|
1326
1334
|
return a;
|
|
1327
1335
|
}
|
|
1328
|
-
function
|
|
1336
|
+
function zc(b, a) {
|
|
1329
1337
|
for (var c = Array(b), d = 0; d < b; ++d) {
|
|
1330
1338
|
c[d] = nb(P[a + 4 * d >> 2], "parameter " + d);
|
|
1331
1339
|
}
|
|
1332
1340
|
return c;
|
|
1333
1341
|
}
|
|
1334
|
-
var
|
|
1335
|
-
if (!
|
|
1342
|
+
var Ac = [], Bc = {}, Dc = () => {
|
|
1343
|
+
if (!Cc) {
|
|
1336
1344
|
var b = {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", _:na || "./this.program"}, a;
|
|
1337
|
-
for (a in
|
|
1338
|
-
void 0 ===
|
|
1345
|
+
for (a in Bc) {
|
|
1346
|
+
void 0 === Bc[a] ? delete b[a] : b[a] = Bc[a];
|
|
1339
1347
|
}
|
|
1340
1348
|
var c = [];
|
|
1341
1349
|
for (a in b) {
|
|
1342
1350
|
c.push(`${a}=${b[a]}`);
|
|
1343
1351
|
}
|
|
1344
|
-
|
|
1352
|
+
Cc = c;
|
|
1345
1353
|
}
|
|
1346
|
-
return
|
|
1347
|
-
},
|
|
1348
|
-
function
|
|
1354
|
+
return Cc;
|
|
1355
|
+
}, Cc, Ec = [null, [], []], Fc = b => 0 === b % 4 && (0 !== b % 100 || 0 === b % 400), Gc = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Hc = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
1356
|
+
function Ic(b) {
|
|
1349
1357
|
var a = Array(jc(b) + 1);
|
|
1350
1358
|
ic(b, a, 0, a.length);
|
|
1351
1359
|
return a;
|
|
1352
1360
|
}
|
|
1353
|
-
var
|
|
1354
|
-
function e(
|
|
1355
|
-
for (
|
|
1356
|
-
|
|
1361
|
+
var Jc = (b, a, c, d) => {
|
|
1362
|
+
function e(g, r, q) {
|
|
1363
|
+
for (g = "number" == typeof g ? g.toString() : g || ""; g.length < r;) {
|
|
1364
|
+
g = q[0] + g;
|
|
1357
1365
|
}
|
|
1358
|
-
return
|
|
1366
|
+
return g;
|
|
1359
1367
|
}
|
|
1360
|
-
function g
|
|
1361
|
-
return e(
|
|
1368
|
+
function f(g, r) {
|
|
1369
|
+
return e(g, r, "0");
|
|
1362
1370
|
}
|
|
1363
|
-
function m(
|
|
1371
|
+
function m(g, r) {
|
|
1364
1372
|
function q(D) {
|
|
1365
1373
|
return 0 > D ? -1 : 0 < D ? 1 : 0;
|
|
1366
1374
|
}
|
|
1367
1375
|
var G;
|
|
1368
|
-
0 === (G = q(
|
|
1376
|
+
0 === (G = q(g.getFullYear() - r.getFullYear())) && 0 === (G = q(g.getMonth() - r.getMonth())) && (G = q(g.getDate() - r.getDate()));
|
|
1369
1377
|
return G;
|
|
1370
1378
|
}
|
|
1371
|
-
function k(
|
|
1372
|
-
switch(
|
|
1379
|
+
function k(g) {
|
|
1380
|
+
switch(g.getDay()) {
|
|
1373
1381
|
case 0:
|
|
1374
|
-
return new Date(
|
|
1382
|
+
return new Date(g.getFullYear() - 1, 11, 29);
|
|
1375
1383
|
case 1:
|
|
1376
|
-
return
|
|
1384
|
+
return g;
|
|
1377
1385
|
case 2:
|
|
1378
|
-
return new Date(
|
|
1386
|
+
return new Date(g.getFullYear(), 0, 3);
|
|
1379
1387
|
case 3:
|
|
1380
|
-
return new Date(
|
|
1388
|
+
return new Date(g.getFullYear(), 0, 2);
|
|
1381
1389
|
case 4:
|
|
1382
|
-
return new Date(
|
|
1390
|
+
return new Date(g.getFullYear(), 0, 1);
|
|
1383
1391
|
case 5:
|
|
1384
|
-
return new Date(
|
|
1392
|
+
return new Date(g.getFullYear() - 1, 11, 31);
|
|
1385
1393
|
case 6:
|
|
1386
|
-
return new Date(
|
|
1394
|
+
return new Date(g.getFullYear() - 1, 11, 30);
|
|
1387
1395
|
}
|
|
1388
1396
|
}
|
|
1389
|
-
function n(
|
|
1390
|
-
var r =
|
|
1391
|
-
for (
|
|
1392
|
-
var q =
|
|
1393
|
-
if (r > G -
|
|
1394
|
-
r -= G -
|
|
1397
|
+
function n(g) {
|
|
1398
|
+
var r = g.J;
|
|
1399
|
+
for (g = new Date((new Date(g.K + 1900, 0, 1)).getTime()); 0 < r;) {
|
|
1400
|
+
var q = g.getMonth(), G = (Fc(g.getFullYear()) ? Gc : Hc)[q];
|
|
1401
|
+
if (r > G - g.getDate()) {
|
|
1402
|
+
r -= G - g.getDate() + 1, g.setDate(1), 11 > q ? g.setMonth(q + 1) : (g.setMonth(0), g.setFullYear(g.getFullYear() + 1));
|
|
1395
1403
|
} else {
|
|
1396
|
-
|
|
1404
|
+
g.setDate(g.getDate() + r);
|
|
1397
1405
|
break;
|
|
1398
1406
|
}
|
|
1399
1407
|
}
|
|
1400
|
-
q = new Date(
|
|
1401
|
-
r = k(new Date(
|
|
1408
|
+
q = new Date(g.getFullYear() + 1, 0, 4);
|
|
1409
|
+
r = k(new Date(g.getFullYear(), 0, 4));
|
|
1402
1410
|
q = k(q);
|
|
1403
|
-
return 0 >= m(r,
|
|
1411
|
+
return 0 >= m(r, g) ? 0 >= m(q, g) ? g.getFullYear() + 1 : g.getFullYear() : g.getFullYear() - 1;
|
|
1404
1412
|
}
|
|
1405
1413
|
var l = M[d + 40 >> 2];
|
|
1406
1414
|
d = {qb:M[d >> 2], pb:M[d + 4 >> 2], Z:M[d + 8 >> 2], ha:M[d + 12 >> 2], $:M[d + 16 >> 2], K:M[d + 20 >> 2], C:M[d + 24 >> 2], J:M[d + 28 >> 2], ub:M[d + 32 >> 2], ob:M[d + 36 >> 2], rb:l ? l ? lc(L, l) : "" : ""};
|
|
@@ -1409,38 +1417,38 @@ var Ic = (b, a, c, d) => {
|
|
|
1409
1417
|
for (var t in l) {
|
|
1410
1418
|
c = c.replace(new RegExp(t, "g"), l[t]);
|
|
1411
1419
|
}
|
|
1412
|
-
var
|
|
1413
|
-
l = {"%a":
|
|
1414
|
-
|
|
1415
|
-
0 ==
|
|
1416
|
-
return g
|
|
1417
|
-
}, "%j":
|
|
1418
|
-
for (var r = 0, q = 0; q <=
|
|
1420
|
+
var w = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), x = "January February March April May June July August September October November December".split(" ");
|
|
1421
|
+
l = {"%a":g => w[g.C].substring(0, 3), "%A":g => w[g.C], "%b":g => x[g.$].substring(0, 3), "%B":g => x[g.$], "%C":g => f((g.K + 1900) / 100 | 0, 2), "%d":g => f(g.ha, 2), "%e":g => e(g.ha, 2, " "), "%g":g => n(g).toString().substring(2), "%G":g => n(g), "%H":g => f(g.Z, 2), "%I":g => {
|
|
1422
|
+
g = g.Z;
|
|
1423
|
+
0 == g ? g = 12 : 12 < g && (g -= 12);
|
|
1424
|
+
return f(g, 2);
|
|
1425
|
+
}, "%j":g => {
|
|
1426
|
+
for (var r = 0, q = 0; q <= g.$ - 1; r += (Fc(g.K + 1900) ? Gc : Hc)[q++]) {
|
|
1419
1427
|
}
|
|
1420
|
-
return g
|
|
1421
|
-
}, "%m":
|
|
1422
|
-
var r = Math.floor((
|
|
1423
|
-
2 >= (
|
|
1428
|
+
return f(g.ha + r, 3);
|
|
1429
|
+
}, "%m":g => f(g.$ + 1, 2), "%M":g => f(g.pb, 2), "%n":() => "\n", "%p":g => 0 <= g.Z && 12 > g.Z ? "AM" : "PM", "%S":g => f(g.qb, 2), "%t":() => "\t", "%u":g => g.C || 7, "%U":g => f(Math.floor((g.J + 7 - g.C) / 7), 2), "%V":g => {
|
|
1430
|
+
var r = Math.floor((g.J + 7 - (g.C + 6) % 7) / 7);
|
|
1431
|
+
2 >= (g.C + 371 - g.J - 2) % 7 && r++;
|
|
1424
1432
|
if (r) {
|
|
1425
|
-
53 == r && (q = (
|
|
1433
|
+
53 == r && (q = (g.C + 371 - g.J) % 7, 4 == q || 3 == q && Fc(g.K) || (r = 1));
|
|
1426
1434
|
} else {
|
|
1427
1435
|
r = 52;
|
|
1428
|
-
var q = (
|
|
1429
|
-
(4 == q || 5 == q &&
|
|
1436
|
+
var q = (g.C + 7 - g.J - 1) % 7;
|
|
1437
|
+
(4 == q || 5 == q && Fc(g.K % 400 - 1)) && r++;
|
|
1430
1438
|
}
|
|
1431
|
-
return
|
|
1432
|
-
}, "%w":
|
|
1433
|
-
|
|
1434
|
-
var r = 0 <=
|
|
1435
|
-
|
|
1436
|
-
return (r ? "+" : "-") + String("0000" + (
|
|
1437
|
-
}, "%Z":
|
|
1439
|
+
return f(r, 2);
|
|
1440
|
+
}, "%w":g => g.C, "%W":g => f(Math.floor((g.J + 7 - (g.C + 6) % 7) / 7), 2), "%y":g => (g.K + 1900).toString().substring(2), "%Y":g => g.K + 1900, "%z":g => {
|
|
1441
|
+
g = g.ob;
|
|
1442
|
+
var r = 0 <= g;
|
|
1443
|
+
g = Math.abs(g) / 60;
|
|
1444
|
+
return (r ? "+" : "-") + String("0000" + (g / 60 * 100 + g % 60)).slice(-4);
|
|
1445
|
+
}, "%Z":g => g.rb, "%%":() => "%"};
|
|
1438
1446
|
c = c.replace(/%%/g, "\x00\x00");
|
|
1439
1447
|
for (t in l) {
|
|
1440
1448
|
c.includes(t) && (c = c.replace(new RegExp(t, "g"), l[t](d)));
|
|
1441
1449
|
}
|
|
1442
1450
|
c = c.replace(/\0\0/g, "%");
|
|
1443
|
-
t =
|
|
1451
|
+
t = Ic(c);
|
|
1444
1452
|
if (t.length > a) {
|
|
1445
1453
|
return 0;
|
|
1446
1454
|
}
|
|
@@ -1474,10 +1482,10 @@ h.count_emval_handles = function() {
|
|
|
1474
1482
|
return b;
|
|
1475
1483
|
};
|
|
1476
1484
|
cb = h.PureVirtualError = bb("PureVirtualError");
|
|
1477
|
-
for (var
|
|
1478
|
-
|
|
1485
|
+
for (var Kc = Array(256), Lc = 0; 256 > Lc; ++Lc) {
|
|
1486
|
+
Kc[Lc] = String.fromCharCode(Lc);
|
|
1479
1487
|
}
|
|
1480
|
-
db =
|
|
1488
|
+
db = Kc;
|
|
1481
1489
|
h.getInheritedInstanceCount = function() {
|
|
1482
1490
|
return Object.keys(hb).length;
|
|
1483
1491
|
};
|
|
@@ -1582,22 +1590,22 @@ Vb.prototype.fromWireType = function(b) {
|
|
|
1582
1590
|
return null === e ? a.call(this) : this.V ? Bb(d.h.B, {j:d, i:e, A:this, s:b,}) : Bb(d.h.B, {j:d, i:e,});
|
|
1583
1591
|
};
|
|
1584
1592
|
$b = h.UnboundTypeError = bb("UnboundTypeError");
|
|
1585
|
-
var
|
|
1593
|
+
var Nc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
1586
1594
|
b = U(b);
|
|
1587
1595
|
a = nb(a, "wrapper");
|
|
1588
1596
|
c = S(c);
|
|
1589
|
-
var d = [].slice, e = a.h,
|
|
1597
|
+
var d = [].slice, e = a.h, f = e.B, m = e.l.B, k = e.l.constructor;
|
|
1590
1598
|
b = Ya(b, function() {
|
|
1591
1599
|
e.l.ya.forEach(function(l) {
|
|
1592
1600
|
if (this[l] === m[l]) {
|
|
1593
1601
|
throw new cb(`Pure virtual function ${l} must be implemented in JavaScript`);
|
|
1594
1602
|
}
|
|
1595
1603
|
}.bind(this));
|
|
1596
|
-
Object.defineProperty(this, "__parent", {value:
|
|
1604
|
+
Object.defineProperty(this, "__parent", {value:f});
|
|
1597
1605
|
this.__construct.apply(this, d.call(arguments));
|
|
1598
1606
|
});
|
|
1599
|
-
|
|
1600
|
-
this ===
|
|
1607
|
+
f.__construct = function() {
|
|
1608
|
+
this === f && R("Pass correct 'this' to __construct");
|
|
1601
1609
|
var l = k.implement.apply(void 0, [this].concat(d.call(arguments)));
|
|
1602
1610
|
ob(l);
|
|
1603
1611
|
var t = l.g;
|
|
@@ -1609,14 +1617,14 @@ var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1609
1617
|
l = ib(e, l);
|
|
1610
1618
|
hb.hasOwnProperty(l) ? R(`Tried to register registered instance: ${l}`) : hb[l] = this;
|
|
1611
1619
|
};
|
|
1612
|
-
|
|
1613
|
-
this ===
|
|
1620
|
+
f.__destruct = function() {
|
|
1621
|
+
this === f && R("Pass correct 'this' to __destruct");
|
|
1614
1622
|
ob(this);
|
|
1615
1623
|
var l = this.g.i;
|
|
1616
1624
|
l = ib(e, l);
|
|
1617
1625
|
hb.hasOwnProperty(l) ? delete hb[l] : R(`Tried to unregister unregistered instance: ${l}`);
|
|
1618
1626
|
};
|
|
1619
|
-
b.prototype = Object.create(
|
|
1627
|
+
b.prototype = Object.create(f);
|
|
1620
1628
|
for (var n in c) {
|
|
1621
1629
|
b.prototype[n] = c[n];
|
|
1622
1630
|
}
|
|
@@ -1624,15 +1632,15 @@ var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1624
1632
|
}, _embind_finalize_value_object:function(b) {
|
|
1625
1633
|
var a = Db[b];
|
|
1626
1634
|
delete Db[b];
|
|
1627
|
-
var c = a.fa, d = a.H, e = a.sa,
|
|
1628
|
-
V([b],
|
|
1635
|
+
var c = a.fa, d = a.H, e = a.sa, f = e.map(m => m.Ya).concat(e.map(m => m.lb));
|
|
1636
|
+
V([b], f, m => {
|
|
1629
1637
|
var k = {};
|
|
1630
1638
|
e.forEach((n, l) => {
|
|
1631
|
-
var t = m[l],
|
|
1632
|
-
k[n.Sa] = {read:G => t.fromWireType(
|
|
1633
|
-
var
|
|
1634
|
-
r(q, G,
|
|
1635
|
-
Eb(
|
|
1639
|
+
var t = m[l], w = n.Wa, x = n.Xa, g = m[l + e.length], r = n.kb, q = n.mb;
|
|
1640
|
+
k[n.Sa] = {read:G => t.fromWireType(w(x, G)), write:(G, D) => {
|
|
1641
|
+
var v = [];
|
|
1642
|
+
r(q, G, g.toWireType(v, D));
|
|
1643
|
+
Eb(v);
|
|
1636
1644
|
}};
|
|
1637
1645
|
});
|
|
1638
1646
|
return [{name:a.name, fromWireType:function(n) {
|
|
@@ -1648,17 +1656,17 @@ var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1648
1656
|
throw new TypeError(`Missing field: "${t}"`);
|
|
1649
1657
|
}
|
|
1650
1658
|
}
|
|
1651
|
-
var
|
|
1659
|
+
var w = c();
|
|
1652
1660
|
for (t in k) {
|
|
1653
|
-
k[t].write(
|
|
1661
|
+
k[t].write(w, l[t]);
|
|
1654
1662
|
}
|
|
1655
|
-
null !== n && n.push(d,
|
|
1656
|
-
return
|
|
1663
|
+
null !== n && n.push(d, w);
|
|
1664
|
+
return w;
|
|
1657
1665
|
}, argPackAdvance:8, readValueFromPointer:Fb, v:d,}];
|
|
1658
1666
|
});
|
|
1659
1667
|
}, _embind_register_bigint:function() {
|
|
1660
1668
|
}, _embind_register_bool:function(b, a, c, d, e) {
|
|
1661
|
-
var
|
|
1669
|
+
var f = Jb(c);
|
|
1662
1670
|
a = U(a);
|
|
1663
1671
|
Ib(b, {name:a, fromWireType:function(m) {
|
|
1664
1672
|
return !!m;
|
|
@@ -1674,16 +1682,16 @@ var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1674
1682
|
} else {
|
|
1675
1683
|
throw new TypeError("Unknown boolean type size: " + a);
|
|
1676
1684
|
}
|
|
1677
|
-
return this.fromWireType(k[m >>
|
|
1685
|
+
return this.fromWireType(k[m >> f]);
|
|
1678
1686
|
}, v:null,});
|
|
1679
|
-
}, _embind_register_class:function(b, a, c, d, e,
|
|
1687
|
+
}, _embind_register_class:function(b, a, c, d, e, f, m, k, n, l, t, w, x) {
|
|
1680
1688
|
t = U(t);
|
|
1681
|
-
|
|
1689
|
+
f = Z(e, f);
|
|
1682
1690
|
k && (k = Z(m, k));
|
|
1683
1691
|
l && (l = Z(n, l));
|
|
1684
|
-
x = Z(
|
|
1685
|
-
var
|
|
1686
|
-
Ob(
|
|
1692
|
+
x = Z(w, x);
|
|
1693
|
+
var g = Xa(t);
|
|
1694
|
+
Ob(g, function() {
|
|
1687
1695
|
ac(`Cannot construct ${t} due to unbound types`, [d]);
|
|
1688
1696
|
});
|
|
1689
1697
|
V([b, a, c], d ? [d] : [], function(r) {
|
|
@@ -1694,34 +1702,34 @@ var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1694
1702
|
} else {
|
|
1695
1703
|
G = Mb.prototype;
|
|
1696
1704
|
}
|
|
1697
|
-
r = Ya(
|
|
1705
|
+
r = Ya(g, function() {
|
|
1698
1706
|
if (Object.getPrototypeOf(this) !== D) {
|
|
1699
1707
|
throw new $a("Use 'new' to construct " + t);
|
|
1700
1708
|
}
|
|
1701
|
-
if (void 0 ===
|
|
1709
|
+
if (void 0 === v.I) {
|
|
1702
1710
|
throw new $a(t + " has no accessible constructor");
|
|
1703
1711
|
}
|
|
1704
|
-
var O =
|
|
1712
|
+
var O = v.I[arguments.length];
|
|
1705
1713
|
if (void 0 === O) {
|
|
1706
|
-
throw new $a(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(
|
|
1714
|
+
throw new $a(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(v.I).toString()}) parameters instead!`);
|
|
1707
1715
|
}
|
|
1708
1716
|
return O.apply(this, arguments);
|
|
1709
1717
|
});
|
|
1710
1718
|
var D = Object.create(G, {constructor:{value:r},});
|
|
1711
1719
|
r.prototype = D;
|
|
1712
|
-
var
|
|
1713
|
-
|
|
1714
|
-
q = new Vb(t,
|
|
1715
|
-
G = new Vb(t + "*",
|
|
1716
|
-
var I = new Vb(t + " const*",
|
|
1720
|
+
var v = new Pb(t, r, D, x, q, f, k, l);
|
|
1721
|
+
v.l && (void 0 === v.l.T && (v.l.T = []), v.l.T.push(v));
|
|
1722
|
+
q = new Vb(t, v, !0, !1);
|
|
1723
|
+
G = new Vb(t + "*", v, !1, !1);
|
|
1724
|
+
var I = new Vb(t + " const*", v, !1, !0);
|
|
1717
1725
|
sb[b] = {pointerType:G, Ka:I};
|
|
1718
|
-
Wb(
|
|
1726
|
+
Wb(g, r);
|
|
1719
1727
|
return [q, G, I];
|
|
1720
1728
|
});
|
|
1721
|
-
}, _embind_register_class_class_function:function(b, a, c, d, e,
|
|
1729
|
+
}, _embind_register_class_class_function:function(b, a, c, d, e, f, m) {
|
|
1722
1730
|
var k = cc(c, d);
|
|
1723
1731
|
a = U(a);
|
|
1724
|
-
|
|
1732
|
+
f = Z(e, f);
|
|
1725
1733
|
V([], [b], function(n) {
|
|
1726
1734
|
function l() {
|
|
1727
1735
|
ac(`Cannot call ${t} due to unbound types`, k);
|
|
@@ -1729,23 +1737,23 @@ var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1729
1737
|
n = n[0];
|
|
1730
1738
|
var t = `${n.name}.${a}`;
|
|
1731
1739
|
a.startsWith("@@") && (a = Symbol[a.substring(2)]);
|
|
1732
|
-
var
|
|
1733
|
-
void 0 ===
|
|
1740
|
+
var w = n.h.constructor;
|
|
1741
|
+
void 0 === w[a] ? (l.L = c - 1, w[a] = l) : (Nb(w, a, t), w[a].m[c - 1] = l);
|
|
1734
1742
|
V([], k, function(x) {
|
|
1735
|
-
x = bc(t, [x[0], null].concat(x.slice(1)), null,
|
|
1736
|
-
void 0 ===
|
|
1743
|
+
x = bc(t, [x[0], null].concat(x.slice(1)), null, f, m);
|
|
1744
|
+
void 0 === w[a].m ? (x.L = c - 1, w[a] = x) : w[a].m[c - 1] = x;
|
|
1737
1745
|
if (n.h.T) {
|
|
1738
|
-
for (const
|
|
1739
|
-
|
|
1746
|
+
for (const g of n.h.T) {
|
|
1747
|
+
g.constructor.hasOwnProperty(a) || (g.constructor[a] = x);
|
|
1740
1748
|
}
|
|
1741
1749
|
}
|
|
1742
1750
|
return [];
|
|
1743
1751
|
});
|
|
1744
1752
|
return [];
|
|
1745
1753
|
});
|
|
1746
|
-
}, _embind_register_class_class_property:function(b, a, c, d, e,
|
|
1754
|
+
}, _embind_register_class_class_property:function(b, a, c, d, e, f, m, k) {
|
|
1747
1755
|
a = U(a);
|
|
1748
|
-
|
|
1756
|
+
f = Z(e, f);
|
|
1749
1757
|
V([], [b], function(n) {
|
|
1750
1758
|
n = n[0];
|
|
1751
1759
|
var l = `${n.name}.${a}`, t = {get() {
|
|
@@ -1757,14 +1765,14 @@ var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1757
1765
|
R(`${l} is a read-only property`);
|
|
1758
1766
|
};
|
|
1759
1767
|
Object.defineProperty(n.h.constructor, a, t);
|
|
1760
|
-
V([], [c], function(
|
|
1761
|
-
|
|
1768
|
+
V([], [c], function(w) {
|
|
1769
|
+
w = w[0];
|
|
1762
1770
|
var x = {get() {
|
|
1763
|
-
return
|
|
1771
|
+
return w.fromWireType(f(d));
|
|
1764
1772
|
}, enumerable:!0};
|
|
1765
|
-
k && (k = Z(m, k), x.set =
|
|
1773
|
+
k && (k = Z(m, k), x.set = g => {
|
|
1766
1774
|
var r = [];
|
|
1767
|
-
k(d,
|
|
1775
|
+
k(d, w.toWireType(r, g));
|
|
1768
1776
|
Eb(r);
|
|
1769
1777
|
});
|
|
1770
1778
|
Object.defineProperty(n.h.constructor, a, x);
|
|
@@ -1772,7 +1780,7 @@ var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1772
1780
|
});
|
|
1773
1781
|
return [];
|
|
1774
1782
|
});
|
|
1775
|
-
}, _embind_register_class_constructor:function(b, a, c, d, e,
|
|
1783
|
+
}, _embind_register_class_constructor:function(b, a, c, d, e, f) {
|
|
1776
1784
|
var m = cc(a, c);
|
|
1777
1785
|
e = Z(d, e);
|
|
1778
1786
|
V([], [b], function(k) {
|
|
@@ -1787,57 +1795,57 @@ var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1787
1795
|
};
|
|
1788
1796
|
V([], m, function(l) {
|
|
1789
1797
|
l.splice(1, 0, null);
|
|
1790
|
-
k.h.I[a - 1] = bc(n, l, null, e,
|
|
1798
|
+
k.h.I[a - 1] = bc(n, l, null, e, f);
|
|
1791
1799
|
return [];
|
|
1792
1800
|
});
|
|
1793
1801
|
return [];
|
|
1794
1802
|
});
|
|
1795
|
-
}, _embind_register_class_function:function(b, a, c, d, e,
|
|
1803
|
+
}, _embind_register_class_function:function(b, a, c, d, e, f, m, k) {
|
|
1796
1804
|
var n = cc(c, d);
|
|
1797
1805
|
a = U(a);
|
|
1798
|
-
|
|
1806
|
+
f = Z(e, f);
|
|
1799
1807
|
V([], [b], function(l) {
|
|
1800
1808
|
function t() {
|
|
1801
|
-
ac(`Cannot call ${
|
|
1809
|
+
ac(`Cannot call ${w} due to unbound types`, n);
|
|
1802
1810
|
}
|
|
1803
1811
|
l = l[0];
|
|
1804
|
-
var
|
|
1812
|
+
var w = `${l.name}.${a}`;
|
|
1805
1813
|
a.startsWith("@@") && (a = Symbol[a.substring(2)]);
|
|
1806
1814
|
k && l.h.ya.push(a);
|
|
1807
|
-
var x = l.h.B,
|
|
1808
|
-
void 0 ===
|
|
1815
|
+
var x = l.h.B, g = x[a];
|
|
1816
|
+
void 0 === g || void 0 === g.m && g.className !== l.name && g.L === c - 2 ? (t.L = c - 2, t.className = l.name, x[a] = t) : (Nb(x, a, w), x[a].m[c - 2] = t);
|
|
1809
1817
|
V([], n, function(r) {
|
|
1810
|
-
r = bc(
|
|
1818
|
+
r = bc(w, r, l, f, m);
|
|
1811
1819
|
void 0 === x[a].m ? (r.L = c - 2, x[a] = r) : x[a].m[c - 2] = r;
|
|
1812
1820
|
return [];
|
|
1813
1821
|
});
|
|
1814
1822
|
return [];
|
|
1815
1823
|
});
|
|
1816
|
-
}, _embind_register_class_property:function(b, a, c, d, e,
|
|
1824
|
+
}, _embind_register_class_property:function(b, a, c, d, e, f, m, k, n, l) {
|
|
1817
1825
|
a = U(a);
|
|
1818
1826
|
e = Z(d, e);
|
|
1819
1827
|
V([], [b], function(t) {
|
|
1820
1828
|
t = t[0];
|
|
1821
|
-
var
|
|
1822
|
-
ac(`Cannot access ${
|
|
1829
|
+
var w = `${t.name}.${a}`, x = {get() {
|
|
1830
|
+
ac(`Cannot access ${w} due to unbound types`, [c, m]);
|
|
1823
1831
|
}, enumerable:!0, configurable:!0};
|
|
1824
1832
|
x.set = n ? () => {
|
|
1825
|
-
ac(`Cannot access ${
|
|
1833
|
+
ac(`Cannot access ${w} due to unbound types`, [c, m]);
|
|
1826
1834
|
} : () => {
|
|
1827
|
-
R(
|
|
1835
|
+
R(w + " is a read-only property");
|
|
1828
1836
|
};
|
|
1829
1837
|
Object.defineProperty(t.h.B, a, x);
|
|
1830
|
-
V([], n ? [c, m] : [c], function(
|
|
1831
|
-
var r =
|
|
1832
|
-
var D = dc(this, t,
|
|
1833
|
-
return r.fromWireType(e(
|
|
1838
|
+
V([], n ? [c, m] : [c], function(g) {
|
|
1839
|
+
var r = g[0], q = {get() {
|
|
1840
|
+
var D = dc(this, t, w + " getter");
|
|
1841
|
+
return r.fromWireType(e(f, D));
|
|
1834
1842
|
}, enumerable:!0};
|
|
1835
1843
|
if (n) {
|
|
1836
1844
|
n = Z(k, n);
|
|
1837
|
-
var G =
|
|
1845
|
+
var G = g[1];
|
|
1838
1846
|
q.set = function(D) {
|
|
1839
|
-
var
|
|
1840
|
-
n(l,
|
|
1847
|
+
var v = dc(this, t, w + " setter"), I = [];
|
|
1848
|
+
n(l, v, G.toWireType(I, D));
|
|
1841
1849
|
Eb(I);
|
|
1842
1850
|
};
|
|
1843
1851
|
}
|
|
@@ -1861,9 +1869,9 @@ var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1861
1869
|
c = Jb(c);
|
|
1862
1870
|
a = U(a);
|
|
1863
1871
|
e.values = {};
|
|
1864
|
-
Ib(b, {name:a, constructor:e, fromWireType:function(
|
|
1865
|
-
return this.constructor.values[
|
|
1866
|
-
}, toWireType:function(
|
|
1872
|
+
Ib(b, {name:a, constructor:e, fromWireType:function(f) {
|
|
1873
|
+
return this.constructor.values[f];
|
|
1874
|
+
}, toWireType:function(f, m) {
|
|
1867
1875
|
return m.value;
|
|
1868
1876
|
}, argPackAdvance:8, readValueFromPointer:fc(a, c, d), v:null,});
|
|
1869
1877
|
Ob(a, e);
|
|
@@ -1883,7 +1891,7 @@ var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1883
1891
|
}, toWireType:function(d, e) {
|
|
1884
1892
|
return e;
|
|
1885
1893
|
}, argPackAdvance:8, readValueFromPointer:gc(a, c), v:null,});
|
|
1886
|
-
}, _embind_register_function:function(b, a, c, d, e,
|
|
1894
|
+
}, _embind_register_function:function(b, a, c, d, e, f) {
|
|
1887
1895
|
var m = cc(a, c);
|
|
1888
1896
|
b = U(b);
|
|
1889
1897
|
e = Z(d, e);
|
|
@@ -1891,29 +1899,29 @@ var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1891
1899
|
ac(`Cannot call ${b} due to unbound types`, m);
|
|
1892
1900
|
}, a - 1);
|
|
1893
1901
|
V([], m, function(k) {
|
|
1894
|
-
Wb(b, bc(b, [k[0], null].concat(k.slice(1)), null, e,
|
|
1902
|
+
Wb(b, bc(b, [k[0], null].concat(k.slice(1)), null, e, f), a - 1);
|
|
1895
1903
|
return [];
|
|
1896
1904
|
});
|
|
1897
1905
|
}, _embind_register_integer:function(b, a, c, d, e) {
|
|
1898
1906
|
a = U(a);
|
|
1899
1907
|
-1 === e && (e = 4294967295);
|
|
1900
1908
|
e = Jb(c);
|
|
1901
|
-
var
|
|
1909
|
+
var f = k => k;
|
|
1902
1910
|
if (0 === d) {
|
|
1903
1911
|
var m = 32 - 8 * c;
|
|
1904
|
-
|
|
1912
|
+
f = k => k << m >>> m;
|
|
1905
1913
|
}
|
|
1906
1914
|
c = a.includes("unsigned") ? function(k, n) {
|
|
1907
1915
|
return n >>> 0;
|
|
1908
1916
|
} : function(k, n) {
|
|
1909
1917
|
return n;
|
|
1910
1918
|
};
|
|
1911
|
-
Ib(b, {name:a, fromWireType:
|
|
1919
|
+
Ib(b, {name:a, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:hc(a, e, 0 !== d), v:null,});
|
|
1912
1920
|
}, _embind_register_memory_view:function(b, a, c) {
|
|
1913
|
-
function d(
|
|
1914
|
-
|
|
1921
|
+
function d(f) {
|
|
1922
|
+
f >>= 2;
|
|
1915
1923
|
var m = P;
|
|
1916
|
-
return new e(m.buffer, m[
|
|
1924
|
+
return new e(m.buffer, m[f + 1], m[f]);
|
|
1917
1925
|
}
|
|
1918
1926
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][a];
|
|
1919
1927
|
c = U(c);
|
|
@@ -1922,10 +1930,10 @@ var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1922
1930
|
a = U(a);
|
|
1923
1931
|
var c = "std::string" === a;
|
|
1924
1932
|
Ib(b, {name:a, fromWireType:function(d) {
|
|
1925
|
-
var e = P[d >> 2],
|
|
1933
|
+
var e = P[d >> 2], f = d + 4;
|
|
1926
1934
|
if (c) {
|
|
1927
|
-
for (var m =
|
|
1928
|
-
var n =
|
|
1935
|
+
for (var m = f, k = 0; k <= e; ++k) {
|
|
1936
|
+
var n = f + k;
|
|
1929
1937
|
if (k == e || 0 == L[n]) {
|
|
1930
1938
|
m = m ? lc(L, m, n - m) : "";
|
|
1931
1939
|
if (void 0 === l) {
|
|
@@ -1939,7 +1947,7 @@ var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1939
1947
|
} else {
|
|
1940
1948
|
l = Array(e);
|
|
1941
1949
|
for (k = 0; k < e; ++k) {
|
|
1942
|
-
l[k] = String.fromCharCode(L[
|
|
1950
|
+
l[k] = String.fromCharCode(L[f + k]);
|
|
1943
1951
|
}
|
|
1944
1952
|
l = l.join("");
|
|
1945
1953
|
}
|
|
@@ -1947,23 +1955,23 @@ var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1947
1955
|
return l;
|
|
1948
1956
|
}, toWireType:function(d, e) {
|
|
1949
1957
|
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
1950
|
-
var
|
|
1951
|
-
|
|
1952
|
-
var m = c &&
|
|
1953
|
-
var k =
|
|
1958
|
+
var f = "string" == typeof e;
|
|
1959
|
+
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || R("Cannot pass non-string to std::string");
|
|
1960
|
+
var m = c && f ? jc(e) : e.length;
|
|
1961
|
+
var k = Mc(4 + m + 1), n = k + 4;
|
|
1954
1962
|
P[k >> 2] = m;
|
|
1955
|
-
if (c &&
|
|
1963
|
+
if (c && f) {
|
|
1956
1964
|
ic(e, L, n, m + 1);
|
|
1957
1965
|
} else {
|
|
1958
|
-
if (
|
|
1959
|
-
for (
|
|
1960
|
-
var l = e.charCodeAt(
|
|
1966
|
+
if (f) {
|
|
1967
|
+
for (f = 0; f < m; ++f) {
|
|
1968
|
+
var l = e.charCodeAt(f);
|
|
1961
1969
|
255 < l && (mb(n), R("String has UTF-16 code units that do not fit in 8 bits"));
|
|
1962
|
-
L[n +
|
|
1970
|
+
L[n + f] = l;
|
|
1963
1971
|
}
|
|
1964
1972
|
} else {
|
|
1965
|
-
for (
|
|
1966
|
-
L[n +
|
|
1973
|
+
for (f = 0; f < m; ++f) {
|
|
1974
|
+
L[n + f] = e[f];
|
|
1967
1975
|
}
|
|
1968
1976
|
}
|
|
1969
1977
|
}
|
|
@@ -1976,36 +1984,36 @@ var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1976
1984
|
c = U(c);
|
|
1977
1985
|
if (2 === a) {
|
|
1978
1986
|
var d = nc;
|
|
1979
|
-
var e =
|
|
1980
|
-
var
|
|
1987
|
+
var e = qc;
|
|
1988
|
+
var f = rc;
|
|
1981
1989
|
var m = () => Da;
|
|
1982
1990
|
var k = 1;
|
|
1983
1991
|
} else {
|
|
1984
|
-
4 === a && (d =
|
|
1992
|
+
4 === a && (d = sc, e = tc, f = uc, m = () => P, k = 2);
|
|
1985
1993
|
}
|
|
1986
1994
|
Ib(b, {name:c, fromWireType:function(n) {
|
|
1987
|
-
for (var l = P[n >> 2], t = m(),
|
|
1988
|
-
var r = n + 4 +
|
|
1989
|
-
if (
|
|
1990
|
-
x = d(x, r - x), void 0 ===
|
|
1995
|
+
for (var l = P[n >> 2], t = m(), w, x = n + 4, g = 0; g <= l; ++g) {
|
|
1996
|
+
var r = n + 4 + g * a;
|
|
1997
|
+
if (g == l || 0 == t[r >> k]) {
|
|
1998
|
+
x = d(x, r - x), void 0 === w ? w = x : (w += String.fromCharCode(0), w += x), x = r + a;
|
|
1991
1999
|
}
|
|
1992
2000
|
}
|
|
1993
2001
|
mb(n);
|
|
1994
|
-
return
|
|
2002
|
+
return w;
|
|
1995
2003
|
}, toWireType:function(n, l) {
|
|
1996
2004
|
"string" != typeof l && R(`Cannot pass non-string to C++ string type ${c}`);
|
|
1997
|
-
var t =
|
|
1998
|
-
P[
|
|
1999
|
-
e(l,
|
|
2000
|
-
null !== n && n.push(mb,
|
|
2001
|
-
return
|
|
2005
|
+
var t = f(l), w = Mc(4 + t + a);
|
|
2006
|
+
P[w >> 2] = t >> k;
|
|
2007
|
+
e(l, w + 4, t + a);
|
|
2008
|
+
null !== n && n.push(mb, w);
|
|
2009
|
+
return w;
|
|
2002
2010
|
}, argPackAdvance:8, readValueFromPointer:Fb, v:function(n) {
|
|
2003
2011
|
mb(n);
|
|
2004
2012
|
},});
|
|
2005
|
-
}, _embind_register_value_object:function(b, a, c, d, e,
|
|
2006
|
-
Db[b] = {name:U(a), fa:Z(c, d), H:Z(e,
|
|
2007
|
-
}, _embind_register_value_object_field:function(b, a, c, d, e,
|
|
2008
|
-
Db[b].sa.push({Sa:U(a), Ya:c, Wa:Z(d, e), Xa:
|
|
2013
|
+
}, _embind_register_value_object:function(b, a, c, d, e, f) {
|
|
2014
|
+
Db[b] = {name:U(a), fa:Z(c, d), H:Z(e, f), sa:[],};
|
|
2015
|
+
}, _embind_register_value_object_field:function(b, a, c, d, e, f, m, k, n, l) {
|
|
2016
|
+
Db[b].sa.push({Sa:U(a), Ya:c, Wa:Z(d, e), Xa:f, lb:m, kb:Z(k, n), mb:l,});
|
|
2009
2017
|
}, _embind_register_void:function(b, a) {
|
|
2010
2018
|
a = U(a);
|
|
2011
2019
|
Ib(b, {cb:!0, name:a, argPackAdvance:0, fromWireType:function() {
|
|
@@ -2018,42 +2026,42 @@ var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
2018
2026
|
P[c >> 2] = e;
|
|
2019
2027
|
return a.toWireType(d, b);
|
|
2020
2028
|
}, _emval_call_method:function(b, a, c, d, e) {
|
|
2021
|
-
b =
|
|
2029
|
+
b = xc[b];
|
|
2022
2030
|
a = S(a);
|
|
2023
|
-
c =
|
|
2024
|
-
var
|
|
2025
|
-
P[d >> 2] = ab(
|
|
2026
|
-
return b(a, c,
|
|
2031
|
+
c = wc(c);
|
|
2032
|
+
var f = [];
|
|
2033
|
+
P[d >> 2] = ab(f);
|
|
2034
|
+
return b(a, c, f, e);
|
|
2027
2035
|
}, _emval_call_void_method:function(b, a, c, d) {
|
|
2028
|
-
b =
|
|
2036
|
+
b = xc[b];
|
|
2029
2037
|
a = S(a);
|
|
2030
|
-
c =
|
|
2038
|
+
c = wc(c);
|
|
2031
2039
|
b(a, c, null, d);
|
|
2032
2040
|
}, _emval_decref:ec, _emval_get_method_caller:function(b, a) {
|
|
2033
|
-
var c =
|
|
2041
|
+
var c = zc(b, a), d = c[0];
|
|
2034
2042
|
a = d.name + "_$" + c.slice(1).map(function(m) {
|
|
2035
2043
|
return m.name;
|
|
2036
2044
|
}).join("_") + "$";
|
|
2037
|
-
var e =
|
|
2045
|
+
var e = Ac[a];
|
|
2038
2046
|
if (void 0 !== e) {
|
|
2039
2047
|
return e;
|
|
2040
2048
|
}
|
|
2041
|
-
var
|
|
2042
|
-
e =
|
|
2043
|
-
for (var t = 0,
|
|
2044
|
-
|
|
2049
|
+
var f = Array(b - 1);
|
|
2050
|
+
e = yc((m, k, n, l) => {
|
|
2051
|
+
for (var t = 0, w = 0; w < b - 1; ++w) {
|
|
2052
|
+
f[w] = c[w + 1].readValueFromPointer(l + t), t += c[w + 1].argPackAdvance;
|
|
2045
2053
|
}
|
|
2046
|
-
m = m[k].apply(m,
|
|
2047
|
-
for (
|
|
2048
|
-
c[
|
|
2054
|
+
m = m[k].apply(m, f);
|
|
2055
|
+
for (w = 0; w < b - 1; ++w) {
|
|
2056
|
+
c[w + 1].Na && c[w + 1].Na(f[w]);
|
|
2049
2057
|
}
|
|
2050
2058
|
if (!d.cb) {
|
|
2051
2059
|
return d.toWireType(n, m);
|
|
2052
2060
|
}
|
|
2053
2061
|
});
|
|
2054
|
-
return
|
|
2062
|
+
return Ac[a] = e;
|
|
2055
2063
|
}, _emval_get_module_property:function(b) {
|
|
2056
|
-
b =
|
|
2064
|
+
b = wc(b);
|
|
2057
2065
|
return ab(h[b]);
|
|
2058
2066
|
}, _emval_get_property:function(b, a) {
|
|
2059
2067
|
b = S(b);
|
|
@@ -2062,7 +2070,7 @@ var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
2062
2070
|
}, _emval_incref:function(b) {
|
|
2063
2071
|
4 < b && (Q.get(b).Aa += 1);
|
|
2064
2072
|
}, _emval_new_cstring:function(b) {
|
|
2065
|
-
return ab(
|
|
2073
|
+
return ab(wc(b));
|
|
2066
2074
|
}, _emval_new_object:function() {
|
|
2067
2075
|
return ab({});
|
|
2068
2076
|
}, _emval_run_destructors:function(b) {
|
|
@@ -2098,31 +2106,31 @@ var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
2098
2106
|
try {
|
|
2099
2107
|
za.grow(e);
|
|
2100
2108
|
Ga();
|
|
2101
|
-
var
|
|
2109
|
+
var f = 1;
|
|
2102
2110
|
break a;
|
|
2103
2111
|
} catch (m) {
|
|
2104
2112
|
}
|
|
2105
|
-
|
|
2113
|
+
f = void 0;
|
|
2106
2114
|
}
|
|
2107
|
-
if (
|
|
2115
|
+
if (f) {
|
|
2108
2116
|
return !0;
|
|
2109
2117
|
}
|
|
2110
2118
|
}
|
|
2111
2119
|
return !1;
|
|
2112
2120
|
}, environ_get:(b, a) => {
|
|
2113
2121
|
var c = 0;
|
|
2114
|
-
|
|
2115
|
-
var
|
|
2116
|
-
e = P[b + 4 * e >> 2] =
|
|
2117
|
-
for (
|
|
2118
|
-
Ba[e++ >> 0] = d.charCodeAt(
|
|
2122
|
+
Dc().forEach(function(d, e) {
|
|
2123
|
+
var f = a + c;
|
|
2124
|
+
e = P[b + 4 * e >> 2] = f;
|
|
2125
|
+
for (f = 0; f < d.length; ++f) {
|
|
2126
|
+
Ba[e++ >> 0] = d.charCodeAt(f);
|
|
2119
2127
|
}
|
|
2120
2128
|
Ba[e >> 0] = 0;
|
|
2121
2129
|
c += d.length + 1;
|
|
2122
2130
|
});
|
|
2123
2131
|
return 0;
|
|
2124
2132
|
}, environ_sizes_get:(b, a) => {
|
|
2125
|
-
var c =
|
|
2133
|
+
var c = Dc();
|
|
2126
2134
|
P[b >> 2] = c.length;
|
|
2127
2135
|
var d = 0;
|
|
2128
2136
|
c.forEach(function(e) {
|
|
@@ -2133,18 +2141,18 @@ var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
2133
2141
|
}, fd_close:() => 52, fd_seek:function() {
|
|
2134
2142
|
return 70;
|
|
2135
2143
|
}, fd_write:(b, a, c, d) => {
|
|
2136
|
-
for (var e = 0,
|
|
2144
|
+
for (var e = 0, f = 0; f < c; f++) {
|
|
2137
2145
|
var m = P[a >> 2], k = P[a + 4 >> 2];
|
|
2138
2146
|
a += 8;
|
|
2139
2147
|
for (var n = 0; n < k; n++) {
|
|
2140
|
-
var l = L[m + n], t =
|
|
2148
|
+
var l = L[m + n], t = Ec[b];
|
|
2141
2149
|
0 === l || 10 === l ? ((1 === b ? ta : ua)(lc(t, 0)), t.length = 0) : t.push(l);
|
|
2142
2150
|
}
|
|
2143
2151
|
e += k;
|
|
2144
2152
|
}
|
|
2145
2153
|
P[d >> 2] = e;
|
|
2146
2154
|
return 0;
|
|
2147
|
-
}, strftime_l:(b, a, c, d) =>
|
|
2155
|
+
}, strftime_l:(b, a, c, d) => Jc(b, a, c, d)};
|
|
2148
2156
|
(function() {
|
|
2149
2157
|
function b(c) {
|
|
2150
2158
|
J = c = c.exports;
|
|
@@ -2161,7 +2169,7 @@ var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
2161
2169
|
}
|
|
2162
2170
|
return c;
|
|
2163
2171
|
}
|
|
2164
|
-
var a = {env:
|
|
2172
|
+
var a = {env:Nc, wasi_snapshot_preview1:Nc,};
|
|
2165
2173
|
Ma++;
|
|
2166
2174
|
h.monitorRunDependencies && h.monitorRunDependencies(Ma);
|
|
2167
2175
|
if (h.instantiateWasm) {
|
|
@@ -2176,21 +2184,21 @@ var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
2176
2184
|
}).catch(ba);
|
|
2177
2185
|
return {};
|
|
2178
2186
|
})();
|
|
2179
|
-
var mb = b => (mb = J.free)(b),
|
|
2187
|
+
var mb = b => (mb = J.free)(b), Mc = b => (Mc = J.malloc)(b), lb = b => (lb = J.__getTypeName)(b);
|
|
2180
2188
|
h.__embind_initialize_bindings = () => (h.__embind_initialize_bindings = J._embind_initialize_bindings)();
|
|
2181
2189
|
h.dynCall_jiji = (b, a, c, d, e) => (h.dynCall_jiji = J.dynCall_jiji)(b, a, c, d, e);
|
|
2182
|
-
h.dynCall_viijii = (b, a, c, d, e,
|
|
2183
|
-
h.dynCall_iiiiij = (b, a, c, d, e,
|
|
2184
|
-
h.dynCall_iiiiijj = (b, a, c, d, e,
|
|
2185
|
-
h.dynCall_iiiiiijj = (b, a, c, d, e,
|
|
2186
|
-
var
|
|
2187
|
-
Oa = function
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
+
h.dynCall_viijii = (b, a, c, d, e, f, m) => (h.dynCall_viijii = J.dynCall_viijii)(b, a, c, d, e, f, m);
|
|
2191
|
+
h.dynCall_iiiiij = (b, a, c, d, e, f, m) => (h.dynCall_iiiiij = J.dynCall_iiiiij)(b, a, c, d, e, f, m);
|
|
2192
|
+
h.dynCall_iiiiijj = (b, a, c, d, e, f, m, k, n) => (h.dynCall_iiiiijj = J.dynCall_iiiiijj)(b, a, c, d, e, f, m, k, n);
|
|
2193
|
+
h.dynCall_iiiiiijj = (b, a, c, d, e, f, m, k, n, l) => (h.dynCall_iiiiiijj = J.dynCall_iiiiiijj)(b, a, c, d, e, f, m, k, n, l);
|
|
2194
|
+
var Oc;
|
|
2195
|
+
Oa = function Pc() {
|
|
2196
|
+
Oc || Qc();
|
|
2197
|
+
Oc || (Oa = Pc);
|
|
2190
2198
|
};
|
|
2191
|
-
function
|
|
2199
|
+
function Qc() {
|
|
2192
2200
|
function b() {
|
|
2193
|
-
if (!
|
|
2201
|
+
if (!Oc && (Oc = !0, h.calledRun = !0, !Aa)) {
|
|
2194
2202
|
Wa(Ja);
|
|
2195
2203
|
aa(h);
|
|
2196
2204
|
if (h.onRuntimeInitialized) {
|
|
@@ -2225,7 +2233,7 @@ if (h.preInit) {
|
|
|
2225
2233
|
h.preInit.pop()();
|
|
2226
2234
|
}
|
|
2227
2235
|
}
|
|
2228
|
-
|
|
2236
|
+
Qc();
|
|
2229
2237
|
|
|
2230
2238
|
|
|
2231
2239
|
|