mxdraw 0.1.21 → 0.1.25
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/dist/lib/MxModule/McEdGetPointWorldDrawObject/McEdGetPointWorldDrawObjectClass.js +1 -128
- package/dist/lib/MxModule/McEdGetPointWorldDrawObject/index.js +1 -5
- package/dist/lib/MxModule/McGePoint3d/McGePoint3d.js +1 -0
- package/dist/lib/MxModule/McGePoint3d/index.js +1 -0
- package/dist/lib/MxModule/McGePoint3dArray/McGePoint3dArray.js +1 -0
- package/dist/lib/MxModule/McGePoint3dArray/index.js +1 -0
- package/dist/lib/MxModule/McGeTool/McGeTool.js +1 -0
- package/dist/lib/MxModule/McGeTool/index.js +1 -0
- package/dist/lib/MxModule/McGiWorldDraw/McGiWorldDraw.js +1 -3
- package/dist/lib/MxModule/McGiWorldDraw/index.js +1 -2
- package/dist/lib/MxModule/McGiWorldDrawType/McGiWorldDrawType.js +1 -19
- package/dist/lib/MxModule/McGiWorldDrawType/index.js +1 -4
- package/dist/lib/MxModule/MrxDbgUiPrBaseReturn/MrxDbgUiPrBaseReturn.js +1 -31
- package/dist/lib/MxModule/MrxDbgUiPrBaseReturn/index.js +1 -5
- package/dist/lib/MxModule/MrxDbgUiPrPoint/MrxDbgUiPrPointClass.js +1 -159
- package/dist/lib/MxModule/MrxDbgUiPrPoint/index.js +1 -5
- package/dist/lib/MxModule/Mx3PointArc/Mx3PointArc.js +1 -0
- package/dist/lib/MxModule/Mx3PointArc/index.js +1 -0
- package/dist/lib/MxModule/MxDb2LineAngularDimension/MxDb2LineAngularDimension.js +1 -0
- package/dist/lib/MxModule/MxDb2LineAngularDimension/index.js +1 -0
- package/dist/lib/MxModule/MxDbAlignedDimension/MxDbAlignedDimension.js +1 -213
- package/dist/lib/MxModule/MxDbAlignedDimension/index.js +1 -5
- package/dist/lib/MxModule/MxDbAnyLine/MxDbAnyLine.js +1 -0
- package/dist/lib/MxModule/MxDbAnyLine/index.js +1 -0
- package/dist/lib/MxModule/MxDbArea/MxDbArea.js +1 -0
- package/dist/lib/MxModule/MxDbArea/index.js +1 -0
- package/dist/lib/MxModule/MxDbCoord/MxDbCoord.js +1 -0
- package/dist/lib/MxModule/MxDbCoord/index.js +1 -0
- package/dist/lib/MxModule/MxDbEntity/MxDbEntity.js +1 -258
- package/dist/lib/MxModule/MxDbEntity/index.js +1 -5
- package/dist/lib/MxModule/MxDbImage/MxDbImage.js +1 -160
- package/dist/lib/MxModule/MxDbImage/index.js +1 -5
- package/dist/lib/MxModule/MxDbLine/MxDbLine.js +1 -94
- package/dist/lib/MxModule/MxDbLine/index.js +1 -5
- package/dist/lib/MxModule/MxDbPolyline/MxDbPolyline.js +1 -97
- package/dist/lib/MxModule/MxDbPolyline/index.js +1 -5
- package/dist/lib/MxModule/MxDbRect/MxDbRect.js +1 -273
- package/dist/lib/MxModule/MxDbRect/index.js +1 -4
- package/dist/lib/MxModule/MxDbSVG/MxDbSVG.js +1 -419
- package/dist/lib/MxModule/MxDbSVG/index.js +1 -5
- package/dist/lib/MxModule/MxDbSVGText/MxDbSVGText.js +1 -21
- package/dist/lib/MxModule/MxDbSVGText/index.js +1 -5
- package/dist/lib/MxModule/MxDrawObject/MxDrawObject.js +1 -782
- package/dist/lib/MxModule/MxDrawObject/index.js +1 -5
- package/dist/lib/MxModule/MxFilters/MxFilters.js +1 -201
- package/dist/lib/MxModule/MxFilters/index.js +1 -4
- package/dist/lib/MxModule/MxFun/MxFun.js +1 -676
- package/dist/lib/MxModule/MxFun/index.js +1 -4
- package/dist/lib/MxModule/MxThreeJS/MxThreeJS.js +1 -283
- package/dist/lib/MxModule/MxThreeJS/MxThreeJS.mixin.js +1 -146
- package/dist/lib/MxModule/MxThreeJS/index.js +1 -7
- package/dist/lib/MxModule/MxType/MxType.js +1 -27
- package/dist/lib/MxModule/MxType/index.js +1 -4
- package/dist/lib/MxModule/Mxassembly/Mxassembly.js +1 -20
- package/dist/lib/MxModule/Mxassembly/index.js +1 -9
- package/dist/lib/MxModule/loadCoreCode/index.js +1 -5
- package/dist/lib/MxModule/loadCoreCode/loadCoreCode.js +1 -125
- package/dist/lib/MxModule/loadCoreCode/mxUiData.js +1 -312
- package/dist/lib/MxModule/loadCoreCode/mxcadassembly_es5.js +1 -1519
- package/dist/lib/MxModule/loadCoreCode/mxfun.es5.js +1 -7363
- package/dist/lib/MxModule/store/PubsubClass.js +1 -40
- package/dist/lib/MxModule/store/StoreClass.js +1 -73
- package/dist/lib/MxModule/store/index.js +1 -19
- package/dist/lib/MxModule/store/store.js +1 -25
- package/dist/lib/MxModule/useCanvasResizeListener/index.js +1 -5
- package/dist/lib/MxModule/useCanvasResizeListener/useCanvasResizeListener.js +1 -95
- package/dist/lib/doc.js +1 -38
- package/dist/lib/mxdraw.js +1 -67
- package/dist/lib/tools/algorithm/math.js +1 -16
- package/dist/lib/tools/algorithm/random.js +1 -13
- package/dist/lib/tools/dom/create.js +1 -47
- package/dist/lib/tools/dynamicImport/index.js +1 -243
- package/dist/lib/tools/formatting/index.js +1 -20
- package/dist/lib/tools/proxy/index.js +1 -17
- package/dist/lib/tools/three/index.js +1 -124
- package/dist/mxdraw.es5.js +1 -0
- package/dist/mxdraw.umd.js +1 -0
- package/dist/types/MxModule/McEdGetPointWorldDrawObject/McEdGetPointWorldDrawObjectClass.d.ts +9 -0
- package/dist/types/MxModule/McGePoint3d/McGePoint3d.d.ts +11 -0
- package/dist/types/MxModule/McGePoint3d/index.d.ts +3 -0
- package/dist/types/MxModule/McGePoint3dArray/McGePoint3dArray.d.ts +14 -0
- package/dist/types/MxModule/McGePoint3dArray/index.d.ts +3 -0
- package/dist/types/MxModule/McGeTool/McGeTool.d.ts +38 -0
- package/dist/types/MxModule/McGeTool/index.d.ts +4 -0
- package/dist/types/MxModule/MrxDbgUiPrPoint/MrxDbgUiPrPointClass.d.ts +18 -1
- package/dist/types/MxModule/Mx3PointArc/Mx3PointArc.d.ts +19 -0
- package/dist/types/MxModule/Mx3PointArc/index.d.ts +3 -0
- package/dist/types/MxModule/MxDb2LineAngularDimension/MxDb2LineAngularDimension.d.ts +22 -0
- package/dist/types/MxModule/MxDb2LineAngularDimension/index.d.ts +3 -0
- package/dist/types/MxModule/MxDbAnyLine/MxDbAnyLine.d.ts +18 -0
- package/dist/types/MxModule/MxDbAnyLine/index.d.ts +3 -0
- package/dist/types/MxModule/MxDbArea/MxDbArea.d.ts +17 -0
- package/dist/types/MxModule/MxDbArea/index.d.ts +3 -0
- package/dist/types/MxModule/MxDbCoord/MxDbCoord.d.ts +19 -0
- package/dist/types/MxModule/MxDbCoord/index.d.ts +3 -0
- package/dist/types/MxModule/MxDrawObject/MxDrawObject.d.ts +70 -1
- package/dist/types/MxModule/MxFun/MxFun.d.ts +95 -30
- package/dist/types/MxModule/Mxassembly/Mxassembly.d.ts +11 -2
- package/dist/types/MxModule/store/store.d.ts +2 -2
- package/dist/types/mxdraw.d.ts +17 -4
- package/dist/types/tools/three/index.d.ts +28 -1
- package/package.json +3 -2
- package/dist/lib/MxModule/McGeVector3d/McGeVector3d.js +0 -2
- package/dist/lib/MxModule/McGeVector3d/index.js +0 -3
- package/dist/lib/MxModule/MxThreeJS/SVGLoader.js +0 -1862
- package/dist/lib/types/McEdGetPointWorldDrawObject.js +0 -2
- package/dist/lib/types/MrxDbgUiPrPoint.js +0 -2
- package/dist/lib/types/MxCADObject.js +0 -2
- package/dist/lib/types/MxDrawObject.js +0 -2
- package/dist/lib/types/MxFun.js +0 -2
- package/dist/lib/types/Mxassembly.js +0 -2
- package/dist/types/MxModule/McGeVector3d/McGeVector3d.d.ts +0 -17
- package/dist/types/MxModule/McGeVector3d/index.d.ts +0 -3
- package/dist/types/MxModule/MxThreeJS/SVGLoader.d.ts +0 -22
- package/dist/types/types/McEdGetPointWorldDrawObject.d.ts +0 -9
- package/dist/types/types/MrxDbgUiPrPoint.d.ts +0 -23
- package/dist/types/types/MxCADObject.d.ts +0 -40
- package/dist/types/types/MxDrawObject.d.ts +0 -60
- package/dist/types/types/MxFun.d.ts +0 -47
- package/dist/types/types/Mxassembly.d.ts +0 -3
|
@@ -1,1519 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
function mxcadassemblyinit() {
|
|
4
|
-
var mxcadassembly = (function () {
|
|
5
|
-
var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
|
|
6
|
-
if (typeof __filename !== 'undefined')
|
|
7
|
-
_scriptDir = _scriptDir || __filename;
|
|
8
|
-
return (function (mxcadassembly) {
|
|
9
|
-
mxcadassembly = mxcadassembly || {};
|
|
10
|
-
var b;
|
|
11
|
-
b || (b = typeof mxcadassembly !== 'undefined' ? mxcadassembly : {});
|
|
12
|
-
var g, k;
|
|
13
|
-
b.ready = new Promise(function (a, c) { g = a; k = c; });
|
|
14
|
-
var l = Object.assign({}, b), m = "object" == typeof window, n = "function" == typeof importScripts, p = "object" == typeof process && "object" == typeof process.versions && "string" == typeof process.versions.node, q = "", r, t, u, fs, v, w;
|
|
15
|
-
if (p)
|
|
16
|
-
q = n ? xxxxx("path").dirname(q) + "/" : __dirname + "/", w = function () { v || (fs = xxxxx("fs"), v = xxxxx("path")); }, r = function (a, c) { var d = x(a); if (d)
|
|
17
|
-
return c ? d : d.toString(); w(); a = v.normalize(a); return fs.readFileSync(a, c ? void 0 : "utf8"); }, u = function (a) { a = r(a, !0); a.buffer || (a = new Uint8Array(a)); return a; }, t = function (a, c, d) { var e = x(a); e && c(e); w(); a = v.normalize(a); fs.readFile(a, function (f, h) { f ? d(f) : c(h.buffer); }); }, 1 < process.argv.length && process.argv[1].replace(/\\/g, "/"), process.argv.slice(2), process.on("uncaughtException", function (a) {
|
|
18
|
-
throw a;
|
|
19
|
-
}), process.on("unhandledRejection", function (a) { throw a; }), b.inspect = function () { return "[Emscripten Module object]"; };
|
|
20
|
-
else if (m || n)
|
|
21
|
-
n ? q = self.location.href : "undefined" != typeof document && document.currentScript && (q = document.currentScript.src), _scriptDir && (q = _scriptDir), q = 0 !== q.indexOf("blob:") ? q.substr(0, q.replace(/[?#].*/, "").lastIndexOf("/") + 1) : "", r = function (a) {
|
|
22
|
-
try {
|
|
23
|
-
var c = new XMLHttpRequest;
|
|
24
|
-
c.open("GET", a, !1);
|
|
25
|
-
c.send(null);
|
|
26
|
-
return c.responseText;
|
|
27
|
-
}
|
|
28
|
-
catch (f) {
|
|
29
|
-
if (a = x(a)) {
|
|
30
|
-
c = [];
|
|
31
|
-
for (var d = 0; d < a.length; d++) {
|
|
32
|
-
var e = a[d];
|
|
33
|
-
255 <
|
|
34
|
-
e && (aa && y("Character code " + e + " (" + String.fromCharCode(e) + ") at offset " + d + " not in 0x00-0xFF."), e &= 255);
|
|
35
|
-
c.push(String.fromCharCode(e));
|
|
36
|
-
}
|
|
37
|
-
return c.join("");
|
|
38
|
-
}
|
|
39
|
-
throw f;
|
|
40
|
-
}
|
|
41
|
-
}, n && (u = function (a) { try {
|
|
42
|
-
var c = new XMLHttpRequest;
|
|
43
|
-
c.open("GET", a, !1);
|
|
44
|
-
c.responseType = "arraybuffer";
|
|
45
|
-
c.send(null);
|
|
46
|
-
return new Uint8Array(c.response);
|
|
47
|
-
}
|
|
48
|
-
catch (d) {
|
|
49
|
-
if (a = x(a))
|
|
50
|
-
return a;
|
|
51
|
-
throw d;
|
|
52
|
-
} }), t = function (a, c, d) {
|
|
53
|
-
var e = new XMLHttpRequest;
|
|
54
|
-
e.open("GET", a, !0);
|
|
55
|
-
e.responseType = "arraybuffer";
|
|
56
|
-
e.onload = function () {
|
|
57
|
-
if (200 == e.status || 0 == e.status && e.response)
|
|
58
|
-
c(e.response);
|
|
59
|
-
else {
|
|
60
|
-
var f = x(a);
|
|
61
|
-
f ? c(f.buffer) : d();
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
e.onerror = d;
|
|
65
|
-
e.send(null);
|
|
66
|
-
};
|
|
67
|
-
b.print || console.log.bind(console);
|
|
68
|
-
var z = b.printErr || console.warn.bind(console);
|
|
69
|
-
Object.assign(b, l);
|
|
70
|
-
l = null;
|
|
71
|
-
var A;
|
|
72
|
-
b.wasmBinary && (A = b.wasmBinary);
|
|
73
|
-
var noExitRuntime = b.noExitRuntime || !0;
|
|
74
|
-
function ba() { this.buffer = new ArrayBuffer(B / 65536 * 65536); }
|
|
75
|
-
function da() {
|
|
76
|
-
this.exports = (
|
|
77
|
-
// EMSCRIPTEN_START_ASM
|
|
78
|
-
function instantiate(X) {
|
|
79
|
-
function e(f) { f.grow = function (b) { var a = this.length; this.length = this.length + b; return a; }; f.set = function (c, d) { this[c] = d; }; f.get = function (c) { return this[c]; }; return f; }
|
|
80
|
-
var g;
|
|
81
|
-
var h = new Uint8Array(123);
|
|
82
|
-
for (var c = 25; c >= 0; --c) {
|
|
83
|
-
h[48 + c] = 52 + c;
|
|
84
|
-
h[65 + c] = c;
|
|
85
|
-
h[97 + c] = 26 + c;
|
|
86
|
-
}
|
|
87
|
-
h[43] = 62;
|
|
88
|
-
h[47] = 63;
|
|
89
|
-
function n(o, p, q) { var i, j, c = 0, k = p, l = q.length, m = p + (l * 3 >> 2) - (q[l - 2] == "=") - (q[l - 1] == "="); for (; c < l; c += 4) {
|
|
90
|
-
i = h[q.charCodeAt(c + 1)];
|
|
91
|
-
j = h[q.charCodeAt(c + 2)];
|
|
92
|
-
o[k++] = h[q.charCodeAt(c)] << 2 | i >> 4;
|
|
93
|
-
if (k < m)
|
|
94
|
-
o[k++] = i << 4 | j >> 2;
|
|
95
|
-
if (k < m)
|
|
96
|
-
o[k++] = j << 6 | h[q.charCodeAt(c + 3)];
|
|
97
|
-
} }
|
|
98
|
-
function r(s) { n(g, 1024, "YAZQ"); }
|
|
99
|
-
function V(W) {
|
|
100
|
-
var t = W.a;
|
|
101
|
-
var u = t.buffer;
|
|
102
|
-
var v = new Int8Array(u);
|
|
103
|
-
var w = new Int16Array(u);
|
|
104
|
-
var x = new Int32Array(u);
|
|
105
|
-
var y = new Uint8Array(u);
|
|
106
|
-
var z = new Uint16Array(u);
|
|
107
|
-
var A = new Uint32Array(u);
|
|
108
|
-
var B = new Float32Array(u);
|
|
109
|
-
var C = new Float64Array(u);
|
|
110
|
-
var D = Math.imul;
|
|
111
|
-
var E = Math.fround;
|
|
112
|
-
var F = Math.abs;
|
|
113
|
-
var G = Math.clz32;
|
|
114
|
-
var H = Math.min;
|
|
115
|
-
var I = Math.max;
|
|
116
|
-
var J = Math.floor;
|
|
117
|
-
var K = Math.ceil;
|
|
118
|
-
var L = Math.trunc;
|
|
119
|
-
var M = Math.sqrt;
|
|
120
|
-
var N = W.abort;
|
|
121
|
-
var O = NaN;
|
|
122
|
-
var P = Infinity;
|
|
123
|
-
var Q = W.b;
|
|
124
|
-
var R = W.c;
|
|
125
|
-
var S = 5244512;
|
|
126
|
-
// EMSCRIPTEN_START_FUNCS
|
|
127
|
-
function Z() { var a = 0, b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, i = 0, j = 0, k = 0; a: {
|
|
128
|
-
while (1) {
|
|
129
|
-
k = S - 16 | 0;
|
|
130
|
-
S = k;
|
|
131
|
-
e = x[283];
|
|
132
|
-
a = e >>> 2 | 0;
|
|
133
|
-
b: {
|
|
134
|
-
if (a & 3) {
|
|
135
|
-
c = ((a ^ -1) & 1) + 2 | 0;
|
|
136
|
-
f = c << 3;
|
|
137
|
-
b = x[f + 1180 >> 2];
|
|
138
|
-
a = b + 8 | 0;
|
|
139
|
-
d = x[b + 8 >> 2];
|
|
140
|
-
f = f + 1172 | 0;
|
|
141
|
-
c: {
|
|
142
|
-
if ((d | 0) == (f | 0)) {
|
|
143
|
-
x[283] = ea(c) & e;
|
|
144
|
-
break c;
|
|
145
|
-
}
|
|
146
|
-
x[d + 12 >> 2] = f;
|
|
147
|
-
x[f + 8 >> 2] = d;
|
|
148
|
-
}
|
|
149
|
-
c = c << 3;
|
|
150
|
-
x[b + 4 >> 2] = c | 3;
|
|
151
|
-
b = b + c | 0;
|
|
152
|
-
x[b + 4 >> 2] = x[b + 4 >> 2] | 1;
|
|
153
|
-
break b;
|
|
154
|
-
}
|
|
155
|
-
d: {
|
|
156
|
-
e: {
|
|
157
|
-
f: {
|
|
158
|
-
g: {
|
|
159
|
-
h: {
|
|
160
|
-
i: {
|
|
161
|
-
j: {
|
|
162
|
-
k: {
|
|
163
|
-
h = x[285];
|
|
164
|
-
if (h >>> 0 >= 16) {
|
|
165
|
-
break k;
|
|
166
|
-
}
|
|
167
|
-
if (a) {
|
|
168
|
-
a = a << 2 & -8;
|
|
169
|
-
a = (0 - a & a) - 1 | 0;
|
|
170
|
-
b = a >>> 12 & 16;
|
|
171
|
-
c = b;
|
|
172
|
-
a = a >>> b | 0;
|
|
173
|
-
b = a >>> 5 & 8;
|
|
174
|
-
c = c | b;
|
|
175
|
-
a = a >>> b | 0;
|
|
176
|
-
b = a >>> 2 & 4;
|
|
177
|
-
c = c | b;
|
|
178
|
-
a = a >>> b | 0;
|
|
179
|
-
b = a >>> 1 & 2;
|
|
180
|
-
c = c | b;
|
|
181
|
-
a = a >>> b | 0;
|
|
182
|
-
b = a >>> 1 & 1;
|
|
183
|
-
c = (c | b) + (a >>> b | 0) | 0;
|
|
184
|
-
d = c << 3;
|
|
185
|
-
b = x[d + 1180 >> 2];
|
|
186
|
-
a = x[b + 8 >> 2];
|
|
187
|
-
d = d + 1172 | 0;
|
|
188
|
-
l: {
|
|
189
|
-
if ((a | 0) == (d | 0)) {
|
|
190
|
-
e = ea(c) & e;
|
|
191
|
-
x[283] = e;
|
|
192
|
-
break l;
|
|
193
|
-
}
|
|
194
|
-
x[a + 12 >> 2] = d;
|
|
195
|
-
x[d + 8 >> 2] = a;
|
|
196
|
-
}
|
|
197
|
-
a = b + 8 | 0;
|
|
198
|
-
x[b + 4 >> 2] = 19;
|
|
199
|
-
g = b + 16 | 0;
|
|
200
|
-
c = c << 3;
|
|
201
|
-
f = c - 16 | 0;
|
|
202
|
-
x[g + 4 >> 2] = f | 1;
|
|
203
|
-
x[b + c >> 2] = f;
|
|
204
|
-
if (h) {
|
|
205
|
-
c = h >>> 3 | 0;
|
|
206
|
-
b = (c << 3) + 1172 | 0;
|
|
207
|
-
d = x[288];
|
|
208
|
-
c = 1 << c;
|
|
209
|
-
m: {
|
|
210
|
-
if (!(c & e)) {
|
|
211
|
-
x[283] = c | e;
|
|
212
|
-
c = b;
|
|
213
|
-
break m;
|
|
214
|
-
}
|
|
215
|
-
c = x[b + 8 >> 2];
|
|
216
|
-
}
|
|
217
|
-
x[b + 8 >> 2] = d;
|
|
218
|
-
x[c + 12 >> 2] = d;
|
|
219
|
-
x[d + 12 >> 2] = b;
|
|
220
|
-
x[d + 8 >> 2] = c;
|
|
221
|
-
}
|
|
222
|
-
x[288] = g;
|
|
223
|
-
x[285] = f;
|
|
224
|
-
break b;
|
|
225
|
-
}
|
|
226
|
-
j = x[284];
|
|
227
|
-
if (!j) {
|
|
228
|
-
break k;
|
|
229
|
-
}
|
|
230
|
-
a = (j & 0 - j) - 1 | 0;
|
|
231
|
-
b = a >>> 12 & 16;
|
|
232
|
-
c = b;
|
|
233
|
-
a = a >>> b | 0;
|
|
234
|
-
b = a >>> 5 & 8;
|
|
235
|
-
c = c | b;
|
|
236
|
-
a = a >>> b | 0;
|
|
237
|
-
b = a >>> 2 & 4;
|
|
238
|
-
c = c | b;
|
|
239
|
-
a = a >>> b | 0;
|
|
240
|
-
b = a >>> 1 & 2;
|
|
241
|
-
c = c | b;
|
|
242
|
-
a = a >>> b | 0;
|
|
243
|
-
b = a >>> 1 & 1;
|
|
244
|
-
b = x[((c | b) + (a >>> b | 0) << 2) + 1436 >> 2];
|
|
245
|
-
f = (x[b + 4 >> 2] & -8) - 16 | 0;
|
|
246
|
-
c = b;
|
|
247
|
-
while (1) {
|
|
248
|
-
n: {
|
|
249
|
-
a = x[c + 16 >> 2];
|
|
250
|
-
if (!a) {
|
|
251
|
-
a = x[c + 20 >> 2];
|
|
252
|
-
if (!a) {
|
|
253
|
-
break n;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
d = (x[a + 4 >> 2] & -8) - 16 | 0;
|
|
257
|
-
c = d >>> 0 < f >>> 0;
|
|
258
|
-
f = c ? d : f;
|
|
259
|
-
b = c ? a : b;
|
|
260
|
-
c = a;
|
|
261
|
-
continue;
|
|
262
|
-
}
|
|
263
|
-
break;
|
|
264
|
-
}
|
|
265
|
-
i = x[b + 24 >> 2];
|
|
266
|
-
d = x[b + 12 >> 2];
|
|
267
|
-
if ((d | 0) != (b | 0)) {
|
|
268
|
-
a = x[b + 8 >> 2];
|
|
269
|
-
x[a + 12 >> 2] = d;
|
|
270
|
-
x[d + 8 >> 2] = a;
|
|
271
|
-
break d;
|
|
272
|
-
}
|
|
273
|
-
c = b + 20 | 0;
|
|
274
|
-
a = x[c >> 2];
|
|
275
|
-
if (!a) {
|
|
276
|
-
a = x[b + 16 >> 2];
|
|
277
|
-
if (!a) {
|
|
278
|
-
break j;
|
|
279
|
-
}
|
|
280
|
-
c = b + 16 | 0;
|
|
281
|
-
}
|
|
282
|
-
while (1) {
|
|
283
|
-
g = c;
|
|
284
|
-
d = a;
|
|
285
|
-
c = a + 20 | 0;
|
|
286
|
-
a = x[c >> 2];
|
|
287
|
-
if (a) {
|
|
288
|
-
continue;
|
|
289
|
-
}
|
|
290
|
-
c = d + 16 | 0;
|
|
291
|
-
a = x[d + 16 >> 2];
|
|
292
|
-
if (a) {
|
|
293
|
-
continue;
|
|
294
|
-
}
|
|
295
|
-
break;
|
|
296
|
-
}
|
|
297
|
-
x[g >> 2] = 0;
|
|
298
|
-
break d;
|
|
299
|
-
}
|
|
300
|
-
b = x[285];
|
|
301
|
-
if (b >>> 0 >= 16) {
|
|
302
|
-
a = x[288];
|
|
303
|
-
c = b - 16 | 0;
|
|
304
|
-
o: {
|
|
305
|
-
if (c >>> 0 >= 16) {
|
|
306
|
-
x[285] = c;
|
|
307
|
-
x[288] = a + 16;
|
|
308
|
-
x[a + 20 >> 2] = c | 1;
|
|
309
|
-
x[a + b >> 2] = c;
|
|
310
|
-
x[a + 4 >> 2] = 19;
|
|
311
|
-
break o;
|
|
312
|
-
}
|
|
313
|
-
x[288] = 0;
|
|
314
|
-
x[285] = 0;
|
|
315
|
-
x[a + 4 >> 2] = b | 3;
|
|
316
|
-
b = a + b | 0;
|
|
317
|
-
x[b + 4 >> 2] = x[b + 4 >> 2] | 1;
|
|
318
|
-
}
|
|
319
|
-
a = a + 8 | 0;
|
|
320
|
-
break b;
|
|
321
|
-
}
|
|
322
|
-
e = x[286];
|
|
323
|
-
if (e >>> 0 > 16) {
|
|
324
|
-
b = e - 16 | 0;
|
|
325
|
-
x[286] = b;
|
|
326
|
-
a = x[289];
|
|
327
|
-
x[289] = a + 16;
|
|
328
|
-
x[a + 20 >> 2] = b | 1;
|
|
329
|
-
x[a + 4 >> 2] = 19;
|
|
330
|
-
a = a + 8 | 0;
|
|
331
|
-
break b;
|
|
332
|
-
}
|
|
333
|
-
a = 0;
|
|
334
|
-
if (x[401]) {
|
|
335
|
-
b = x[403];
|
|
336
|
-
}
|
|
337
|
-
else {
|
|
338
|
-
x[404] = -1;
|
|
339
|
-
x[405] = -1;
|
|
340
|
-
x[402] = 4096;
|
|
341
|
-
x[403] = 4096;
|
|
342
|
-
x[401] = k + 12 & -16 ^ 1431655768;
|
|
343
|
-
x[406] = 0;
|
|
344
|
-
x[394] = 0;
|
|
345
|
-
b = 4096;
|
|
346
|
-
}
|
|
347
|
-
d = b + 63 | 0;
|
|
348
|
-
f = 0 - b | 0;
|
|
349
|
-
c = d & f;
|
|
350
|
-
if (c >>> 0 <= 16) {
|
|
351
|
-
break b;
|
|
352
|
-
}
|
|
353
|
-
g = x[393];
|
|
354
|
-
if (g) {
|
|
355
|
-
h = x[391];
|
|
356
|
-
b = h + c | 0;
|
|
357
|
-
if (b >>> 0 <= h >>> 0 | b >>> 0 > g >>> 0) {
|
|
358
|
-
break b;
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
if (y[1576] & 4) {
|
|
362
|
-
break g;
|
|
363
|
-
}
|
|
364
|
-
p: {
|
|
365
|
-
q: {
|
|
366
|
-
b = x[289];
|
|
367
|
-
if (b) {
|
|
368
|
-
a = 1580;
|
|
369
|
-
while (1) {
|
|
370
|
-
g = x[a >> 2];
|
|
371
|
-
if (g >>> 0 <= b >>> 0 & b >>> 0 < g + x[a + 4 >> 2] >>> 0) {
|
|
372
|
-
break q;
|
|
373
|
-
}
|
|
374
|
-
a = x[a + 8 >> 2];
|
|
375
|
-
if (a) {
|
|
376
|
-
continue;
|
|
377
|
-
}
|
|
378
|
-
break;
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
b = Y(0);
|
|
382
|
-
if ((b | 0) == -1) {
|
|
383
|
-
break h;
|
|
384
|
-
}
|
|
385
|
-
e = c;
|
|
386
|
-
a = x[402];
|
|
387
|
-
d = a - 1 | 0;
|
|
388
|
-
if (d & b) {
|
|
389
|
-
e = (c - b | 0) + (b + d & 0 - a) | 0;
|
|
390
|
-
}
|
|
391
|
-
if (e >>> 0 <= 16 | e >>> 0 > 2147483646) {
|
|
392
|
-
break h;
|
|
393
|
-
}
|
|
394
|
-
d = x[393];
|
|
395
|
-
if (d) {
|
|
396
|
-
f = x[391];
|
|
397
|
-
a = f + e | 0;
|
|
398
|
-
if (a >>> 0 <= f >>> 0 | a >>> 0 > d >>> 0) {
|
|
399
|
-
break h;
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
a = Y(e);
|
|
403
|
-
if ((a | 0) != (b | 0)) {
|
|
404
|
-
break p;
|
|
405
|
-
}
|
|
406
|
-
break f;
|
|
407
|
-
}
|
|
408
|
-
e = f & d - e;
|
|
409
|
-
if (e >>> 0 > 2147483646) {
|
|
410
|
-
break h;
|
|
411
|
-
}
|
|
412
|
-
b = Y(e);
|
|
413
|
-
if ((b | 0) == (x[a >> 2] + x[a + 4 >> 2] | 0)) {
|
|
414
|
-
break i;
|
|
415
|
-
}
|
|
416
|
-
a = b;
|
|
417
|
-
}
|
|
418
|
-
if (!((a | 0) == -1 | e >>> 0 >= 64)) {
|
|
419
|
-
b = x[403];
|
|
420
|
-
b = b + (63 - e | 0) & 0 - b;
|
|
421
|
-
if (b >>> 0 > 2147483646) {
|
|
422
|
-
b = a;
|
|
423
|
-
break f;
|
|
424
|
-
}
|
|
425
|
-
if ((Y(b) | 0) != -1) {
|
|
426
|
-
e = b + e | 0;
|
|
427
|
-
b = a;
|
|
428
|
-
break f;
|
|
429
|
-
}
|
|
430
|
-
Y(0 - e | 0);
|
|
431
|
-
break h;
|
|
432
|
-
}
|
|
433
|
-
b = a;
|
|
434
|
-
if ((a | 0) != -1) {
|
|
435
|
-
break f;
|
|
436
|
-
}
|
|
437
|
-
break h;
|
|
438
|
-
}
|
|
439
|
-
d = 0;
|
|
440
|
-
break d;
|
|
441
|
-
}
|
|
442
|
-
if ((b | 0) != -1) {
|
|
443
|
-
break f;
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
x[394] = x[394] | 4;
|
|
447
|
-
}
|
|
448
|
-
if (c >>> 0 > 2147483646) {
|
|
449
|
-
break e;
|
|
450
|
-
}
|
|
451
|
-
b = Y(c);
|
|
452
|
-
a = Y(0);
|
|
453
|
-
if ((b | 0) == -1 | (a | 0) == -1 | a >>> 0 <= b >>> 0) {
|
|
454
|
-
break e;
|
|
455
|
-
}
|
|
456
|
-
e = a - b | 0;
|
|
457
|
-
if (e >>> 0 <= 56) {
|
|
458
|
-
break e;
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
a = x[391] + e | 0;
|
|
462
|
-
x[391] = a;
|
|
463
|
-
if (a >>> 0 > A[392]) {
|
|
464
|
-
x[392] = a;
|
|
465
|
-
}
|
|
466
|
-
r: {
|
|
467
|
-
s: {
|
|
468
|
-
t: {
|
|
469
|
-
f = x[289];
|
|
470
|
-
if (f) {
|
|
471
|
-
a = 1580;
|
|
472
|
-
while (1) {
|
|
473
|
-
c = x[a >> 2];
|
|
474
|
-
d = x[a + 4 >> 2];
|
|
475
|
-
if ((c + d | 0) == (b | 0)) {
|
|
476
|
-
break t;
|
|
477
|
-
}
|
|
478
|
-
a = x[a + 8 >> 2];
|
|
479
|
-
if (a) {
|
|
480
|
-
continue;
|
|
481
|
-
}
|
|
482
|
-
break;
|
|
483
|
-
}
|
|
484
|
-
break s;
|
|
485
|
-
}
|
|
486
|
-
a = x[287];
|
|
487
|
-
if (!(a >>> 0 <= b >>> 0 ? a : 0)) {
|
|
488
|
-
x[287] = b;
|
|
489
|
-
}
|
|
490
|
-
a = 0;
|
|
491
|
-
x[396] = e;
|
|
492
|
-
x[395] = b;
|
|
493
|
-
x[291] = -1;
|
|
494
|
-
x[292] = x[401];
|
|
495
|
-
x[398] = 0;
|
|
496
|
-
while (1) {
|
|
497
|
-
c = a << 3;
|
|
498
|
-
d = c + 1172 | 0;
|
|
499
|
-
x[c + 1180 >> 2] = d;
|
|
500
|
-
x[c + 1184 >> 2] = d;
|
|
501
|
-
a = a + 1 | 0;
|
|
502
|
-
if ((a | 0) != 32) {
|
|
503
|
-
continue;
|
|
504
|
-
}
|
|
505
|
-
break;
|
|
506
|
-
}
|
|
507
|
-
a = e - 40 | 0;
|
|
508
|
-
c = b + 8 & 7 ? -8 - b & 7 : 0;
|
|
509
|
-
e = a - c | 0;
|
|
510
|
-
x[286] = e;
|
|
511
|
-
c = b + c | 0;
|
|
512
|
-
x[289] = c;
|
|
513
|
-
x[c + 4 >> 2] = e | 1;
|
|
514
|
-
x[(a + b | 0) + 4 >> 2] = 40;
|
|
515
|
-
x[290] = x[405];
|
|
516
|
-
break r;
|
|
517
|
-
}
|
|
518
|
-
if (y[a + 12 | 0] & 8 | c >>> 0 > f >>> 0 | b >>> 0 <= f >>> 0) {
|
|
519
|
-
break s;
|
|
520
|
-
}
|
|
521
|
-
x[a + 4 >> 2] = d + e;
|
|
522
|
-
a = f + 8 & 7 ? -8 - f & 7 : 0;
|
|
523
|
-
b = a + f | 0;
|
|
524
|
-
x[289] = b;
|
|
525
|
-
c = x[286] + e | 0;
|
|
526
|
-
a = c - a | 0;
|
|
527
|
-
x[286] = a;
|
|
528
|
-
x[b + 4 >> 2] = a | 1;
|
|
529
|
-
x[(c + f | 0) + 4 >> 2] = 40;
|
|
530
|
-
x[290] = x[405];
|
|
531
|
-
break r;
|
|
532
|
-
}
|
|
533
|
-
if (A[287] > b >>> 0) {
|
|
534
|
-
x[287] = b;
|
|
535
|
-
}
|
|
536
|
-
c = b + e | 0;
|
|
537
|
-
a = 1580;
|
|
538
|
-
u: {
|
|
539
|
-
v: {
|
|
540
|
-
w: {
|
|
541
|
-
x: {
|
|
542
|
-
y: {
|
|
543
|
-
z: {
|
|
544
|
-
while (1) {
|
|
545
|
-
if ((c | 0) != x[a >> 2]) {
|
|
546
|
-
a = x[a + 8 >> 2];
|
|
547
|
-
if (a) {
|
|
548
|
-
continue;
|
|
549
|
-
}
|
|
550
|
-
break z;
|
|
551
|
-
}
|
|
552
|
-
break;
|
|
553
|
-
}
|
|
554
|
-
if (!(y[a + 12 | 0] & 8)) {
|
|
555
|
-
break y;
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
a = 1580;
|
|
559
|
-
while (1) {
|
|
560
|
-
c = x[a >> 2];
|
|
561
|
-
if (c >>> 0 <= f >>> 0) {
|
|
562
|
-
d = c + x[a + 4 >> 2] | 0;
|
|
563
|
-
if (d >>> 0 > f >>> 0) {
|
|
564
|
-
break x;
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
a = x[a + 8 >> 2];
|
|
568
|
-
continue;
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
x[a >> 2] = b;
|
|
572
|
-
x[a + 4 >> 2] = x[a + 4 >> 2] + e;
|
|
573
|
-
i = (b + 8 & 7 ? -8 - b & 7 : 0) + b | 0;
|
|
574
|
-
x[i + 4 >> 2] = 19;
|
|
575
|
-
e = c + (c + 8 & 7 ? -8 - c & 7 : 0) | 0;
|
|
576
|
-
g = i + 16 | 0;
|
|
577
|
-
d = e - g | 0;
|
|
578
|
-
if ((e | 0) == (f | 0)) {
|
|
579
|
-
x[289] = g;
|
|
580
|
-
a = x[286] + d | 0;
|
|
581
|
-
x[286] = a;
|
|
582
|
-
x[g + 4 >> 2] = a | 1;
|
|
583
|
-
break v;
|
|
584
|
-
}
|
|
585
|
-
if (x[288] == (e | 0)) {
|
|
586
|
-
x[288] = g;
|
|
587
|
-
a = x[285] + d | 0;
|
|
588
|
-
x[285] = a;
|
|
589
|
-
x[g + 4 >> 2] = a | 1;
|
|
590
|
-
x[a + g >> 2] = a;
|
|
591
|
-
break v;
|
|
592
|
-
}
|
|
593
|
-
a = x[e + 4 >> 2];
|
|
594
|
-
if ((a & 3) == 1) {
|
|
595
|
-
j = a & -8;
|
|
596
|
-
A: {
|
|
597
|
-
if (a >>> 0 <= 255) {
|
|
598
|
-
c = a >>> 3 | 0;
|
|
599
|
-
a = x[e + 8 >> 2];
|
|
600
|
-
b = x[e + 12 >> 2];
|
|
601
|
-
if ((b | 0) == (a | 0)) {
|
|
602
|
-
x[283] = x[283] & ea(c);
|
|
603
|
-
break A;
|
|
604
|
-
}
|
|
605
|
-
x[a + 12 >> 2] = b;
|
|
606
|
-
x[b + 8 >> 2] = a;
|
|
607
|
-
break A;
|
|
608
|
-
}
|
|
609
|
-
h = x[e + 24 >> 2];
|
|
610
|
-
b = x[e + 12 >> 2];
|
|
611
|
-
B: {
|
|
612
|
-
if ((e | 0) != (b | 0)) {
|
|
613
|
-
a = x[e + 8 >> 2];
|
|
614
|
-
x[a + 12 >> 2] = b;
|
|
615
|
-
x[b + 8 >> 2] = a;
|
|
616
|
-
break B;
|
|
617
|
-
}
|
|
618
|
-
C: {
|
|
619
|
-
a = e + 20 | 0;
|
|
620
|
-
f = x[a >> 2];
|
|
621
|
-
if (f) {
|
|
622
|
-
break C;
|
|
623
|
-
}
|
|
624
|
-
a = e + 16 | 0;
|
|
625
|
-
f = x[a >> 2];
|
|
626
|
-
if (f) {
|
|
627
|
-
break C;
|
|
628
|
-
}
|
|
629
|
-
b = 0;
|
|
630
|
-
break B;
|
|
631
|
-
}
|
|
632
|
-
while (1) {
|
|
633
|
-
c = a;
|
|
634
|
-
b = f;
|
|
635
|
-
a = b + 20 | 0;
|
|
636
|
-
f = x[a >> 2];
|
|
637
|
-
if (f) {
|
|
638
|
-
continue;
|
|
639
|
-
}
|
|
640
|
-
a = b + 16 | 0;
|
|
641
|
-
f = x[b + 16 >> 2];
|
|
642
|
-
if (f) {
|
|
643
|
-
continue;
|
|
644
|
-
}
|
|
645
|
-
break;
|
|
646
|
-
}
|
|
647
|
-
x[c >> 2] = 0;
|
|
648
|
-
}
|
|
649
|
-
if (!h) {
|
|
650
|
-
break A;
|
|
651
|
-
}
|
|
652
|
-
a = x[e + 28 >> 2];
|
|
653
|
-
c = (a << 2) + 1436 | 0;
|
|
654
|
-
D: {
|
|
655
|
-
if (x[c >> 2] == (e | 0)) {
|
|
656
|
-
x[c >> 2] = b;
|
|
657
|
-
if (b) {
|
|
658
|
-
break D;
|
|
659
|
-
}
|
|
660
|
-
x[284] = x[284] & ea(a);
|
|
661
|
-
break A;
|
|
662
|
-
}
|
|
663
|
-
x[h + (x[h + 16 >> 2] == (e | 0) ? 16 : 20) >> 2] = b;
|
|
664
|
-
if (!b) {
|
|
665
|
-
break A;
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
x[b + 24 >> 2] = h;
|
|
669
|
-
a = x[e + 16 >> 2];
|
|
670
|
-
if (a) {
|
|
671
|
-
x[b + 16 >> 2] = a;
|
|
672
|
-
x[a + 24 >> 2] = b;
|
|
673
|
-
}
|
|
674
|
-
a = x[e + 20 >> 2];
|
|
675
|
-
if (!a) {
|
|
676
|
-
break A;
|
|
677
|
-
}
|
|
678
|
-
x[b + 20 >> 2] = a;
|
|
679
|
-
x[a + 24 >> 2] = b;
|
|
680
|
-
}
|
|
681
|
-
d = d + j | 0;
|
|
682
|
-
e = e + j | 0;
|
|
683
|
-
}
|
|
684
|
-
x[e + 4 >> 2] = x[e + 4 >> 2] & -2;
|
|
685
|
-
x[g + 4 >> 2] = d | 1;
|
|
686
|
-
x[d + g >> 2] = d;
|
|
687
|
-
if (d >>> 0 <= 255) {
|
|
688
|
-
b = d >>> 3 | 0;
|
|
689
|
-
a = (b << 3) + 1172 | 0;
|
|
690
|
-
c = x[283];
|
|
691
|
-
b = 1 << b;
|
|
692
|
-
E: {
|
|
693
|
-
if (!(c & b)) {
|
|
694
|
-
x[283] = b | c;
|
|
695
|
-
b = a;
|
|
696
|
-
break E;
|
|
697
|
-
}
|
|
698
|
-
b = x[a + 8 >> 2];
|
|
699
|
-
}
|
|
700
|
-
x[a + 8 >> 2] = g;
|
|
701
|
-
x[b + 12 >> 2] = g;
|
|
702
|
-
x[g + 12 >> 2] = a;
|
|
703
|
-
x[g + 8 >> 2] = b;
|
|
704
|
-
break v;
|
|
705
|
-
}
|
|
706
|
-
a = 31;
|
|
707
|
-
if (d >>> 0 <= 16777215) {
|
|
708
|
-
b = d >>> 8 | 0;
|
|
709
|
-
a = b + 1048320 >>> 16 & 8;
|
|
710
|
-
c = b << a;
|
|
711
|
-
b = c + 520192 >>> 16 & 4;
|
|
712
|
-
e = c << b;
|
|
713
|
-
c = e + 245760 >>> 16 & 2;
|
|
714
|
-
a = (e << c >>> 15 | 0) - (c | (a | b)) | 0;
|
|
715
|
-
a = (a << 1 | d >>> a + 21 & 1) + 28 | 0;
|
|
716
|
-
}
|
|
717
|
-
x[g + 28 >> 2] = a;
|
|
718
|
-
x[g + 16 >> 2] = 0;
|
|
719
|
-
x[g + 20 >> 2] = 0;
|
|
720
|
-
b = (a << 2) + 1436 | 0;
|
|
721
|
-
c = x[284];
|
|
722
|
-
e = 1 << a;
|
|
723
|
-
F: {
|
|
724
|
-
if (!(c & e)) {
|
|
725
|
-
x[284] = c | e;
|
|
726
|
-
x[b >> 2] = g;
|
|
727
|
-
x[g + 24 >> 2] = b;
|
|
728
|
-
break F;
|
|
729
|
-
}
|
|
730
|
-
a = d << ((a | 0) == 31 ? 0 : 25 - (a >>> 1 | 0) | 0);
|
|
731
|
-
b = x[b >> 2];
|
|
732
|
-
while (1) {
|
|
733
|
-
c = b;
|
|
734
|
-
if ((x[b + 4 >> 2] & -8) == (d | 0)) {
|
|
735
|
-
break w;
|
|
736
|
-
}
|
|
737
|
-
b = a >>> 29 | 0;
|
|
738
|
-
a = a << 1;
|
|
739
|
-
e = c + (b & 4) | 0;
|
|
740
|
-
b = x[e + 16 >> 2];
|
|
741
|
-
if (b) {
|
|
742
|
-
continue;
|
|
743
|
-
}
|
|
744
|
-
break;
|
|
745
|
-
}
|
|
746
|
-
x[e + 16 >> 2] = g;
|
|
747
|
-
x[g + 24 >> 2] = c;
|
|
748
|
-
}
|
|
749
|
-
x[g + 12 >> 2] = g;
|
|
750
|
-
x[g + 8 >> 2] = g;
|
|
751
|
-
break v;
|
|
752
|
-
}
|
|
753
|
-
a = e - 40 | 0;
|
|
754
|
-
c = b + 8 & 7 ? -8 - b & 7 : 0;
|
|
755
|
-
g = a - c | 0;
|
|
756
|
-
x[286] = g;
|
|
757
|
-
c = b + c | 0;
|
|
758
|
-
x[289] = c;
|
|
759
|
-
x[c + 4 >> 2] = g | 1;
|
|
760
|
-
x[(a + b | 0) + 4 >> 2] = 40;
|
|
761
|
-
x[290] = x[405];
|
|
762
|
-
a = (d + (d - 39 & 7 ? 39 - d & 7 : 0) | 0) - 47 | 0;
|
|
763
|
-
c = a >>> 0 < f + 16 >>> 0 ? f : a;
|
|
764
|
-
x[c + 4 >> 2] = 27;
|
|
765
|
-
a = x[398];
|
|
766
|
-
x[c + 16 >> 2] = x[397];
|
|
767
|
-
x[c + 20 >> 2] = a;
|
|
768
|
-
a = x[396];
|
|
769
|
-
x[c + 8 >> 2] = x[395];
|
|
770
|
-
x[c + 12 >> 2] = a;
|
|
771
|
-
x[397] = c + 8;
|
|
772
|
-
x[396] = e;
|
|
773
|
-
x[395] = b;
|
|
774
|
-
x[398] = 0;
|
|
775
|
-
a = c + 24 | 0;
|
|
776
|
-
while (1) {
|
|
777
|
-
x[a + 4 >> 2] = 7;
|
|
778
|
-
b = a + 8 | 0;
|
|
779
|
-
a = a + 4 | 0;
|
|
780
|
-
if (b >>> 0 < d >>> 0) {
|
|
781
|
-
continue;
|
|
782
|
-
}
|
|
783
|
-
break;
|
|
784
|
-
}
|
|
785
|
-
if ((c | 0) == (f | 0)) {
|
|
786
|
-
break r;
|
|
787
|
-
}
|
|
788
|
-
x[c + 4 >> 2] = x[c + 4 >> 2] & -2;
|
|
789
|
-
e = c - f | 0;
|
|
790
|
-
x[f + 4 >> 2] = e | 1;
|
|
791
|
-
x[c >> 2] = e;
|
|
792
|
-
if (e >>> 0 <= 255) {
|
|
793
|
-
b = e >>> 3 | 0;
|
|
794
|
-
a = (b << 3) + 1172 | 0;
|
|
795
|
-
c = x[283];
|
|
796
|
-
b = 1 << b;
|
|
797
|
-
G: {
|
|
798
|
-
if (!(c & b)) {
|
|
799
|
-
x[283] = b | c;
|
|
800
|
-
b = a;
|
|
801
|
-
break G;
|
|
802
|
-
}
|
|
803
|
-
b = x[a + 8 >> 2];
|
|
804
|
-
}
|
|
805
|
-
x[a + 8 >> 2] = f;
|
|
806
|
-
x[b + 12 >> 2] = f;
|
|
807
|
-
x[f + 12 >> 2] = a;
|
|
808
|
-
x[f + 8 >> 2] = b;
|
|
809
|
-
break r;
|
|
810
|
-
}
|
|
811
|
-
a = 31;
|
|
812
|
-
x[f + 16 >> 2] = 0;
|
|
813
|
-
x[f + 20 >> 2] = 0;
|
|
814
|
-
if (e >>> 0 <= 16777215) {
|
|
815
|
-
b = e >>> 8 | 0;
|
|
816
|
-
a = b + 1048320 >>> 16 & 8;
|
|
817
|
-
c = b << a;
|
|
818
|
-
b = c + 520192 >>> 16 & 4;
|
|
819
|
-
d = c << b;
|
|
820
|
-
c = d + 245760 >>> 16 & 2;
|
|
821
|
-
a = (d << c >>> 15 | 0) - (c | (a | b)) | 0;
|
|
822
|
-
a = (a << 1 | e >>> a + 21 & 1) + 28 | 0;
|
|
823
|
-
}
|
|
824
|
-
x[f + 28 >> 2] = a;
|
|
825
|
-
b = (a << 2) + 1436 | 0;
|
|
826
|
-
c = x[284];
|
|
827
|
-
d = 1 << a;
|
|
828
|
-
H: {
|
|
829
|
-
if (!(c & d)) {
|
|
830
|
-
x[284] = c | d;
|
|
831
|
-
x[b >> 2] = f;
|
|
832
|
-
x[f + 24 >> 2] = b;
|
|
833
|
-
break H;
|
|
834
|
-
}
|
|
835
|
-
a = e << ((a | 0) == 31 ? 0 : 25 - (a >>> 1 | 0) | 0);
|
|
836
|
-
b = x[b >> 2];
|
|
837
|
-
while (1) {
|
|
838
|
-
c = b;
|
|
839
|
-
if ((e | 0) == (x[b + 4 >> 2] & -8)) {
|
|
840
|
-
break u;
|
|
841
|
-
}
|
|
842
|
-
b = a >>> 29 | 0;
|
|
843
|
-
a = a << 1;
|
|
844
|
-
d = c + (b & 4) | 0;
|
|
845
|
-
b = x[d + 16 >> 2];
|
|
846
|
-
if (b) {
|
|
847
|
-
continue;
|
|
848
|
-
}
|
|
849
|
-
break;
|
|
850
|
-
}
|
|
851
|
-
x[d + 16 >> 2] = f;
|
|
852
|
-
x[f + 24 >> 2] = c;
|
|
853
|
-
}
|
|
854
|
-
x[f + 12 >> 2] = f;
|
|
855
|
-
x[f + 8 >> 2] = f;
|
|
856
|
-
break r;
|
|
857
|
-
}
|
|
858
|
-
a = x[c + 8 >> 2];
|
|
859
|
-
x[a + 12 >> 2] = g;
|
|
860
|
-
x[c + 8 >> 2] = g;
|
|
861
|
-
x[g + 24 >> 2] = 0;
|
|
862
|
-
x[g + 12 >> 2] = c;
|
|
863
|
-
x[g + 8 >> 2] = a;
|
|
864
|
-
}
|
|
865
|
-
a = i + 8 | 0;
|
|
866
|
-
break b;
|
|
867
|
-
}
|
|
868
|
-
a = x[c + 8 >> 2];
|
|
869
|
-
x[a + 12 >> 2] = f;
|
|
870
|
-
x[c + 8 >> 2] = f;
|
|
871
|
-
x[f + 24 >> 2] = 0;
|
|
872
|
-
x[f + 12 >> 2] = c;
|
|
873
|
-
x[f + 8 >> 2] = a;
|
|
874
|
-
}
|
|
875
|
-
a = x[286];
|
|
876
|
-
if (a >>> 0 <= 16) {
|
|
877
|
-
break e;
|
|
878
|
-
}
|
|
879
|
-
b = a - 16 | 0;
|
|
880
|
-
x[286] = b;
|
|
881
|
-
a = x[289];
|
|
882
|
-
x[289] = a + 16;
|
|
883
|
-
x[a + 20 >> 2] = b | 1;
|
|
884
|
-
x[a + 4 >> 2] = 19;
|
|
885
|
-
a = a + 8 | 0;
|
|
886
|
-
break b;
|
|
887
|
-
}
|
|
888
|
-
x[282] = 48;
|
|
889
|
-
a = 0;
|
|
890
|
-
break b;
|
|
891
|
-
}
|
|
892
|
-
I: {
|
|
893
|
-
if (!i) {
|
|
894
|
-
break I;
|
|
895
|
-
}
|
|
896
|
-
a = x[b + 28 >> 2];
|
|
897
|
-
c = (a << 2) + 1436 | 0;
|
|
898
|
-
J: {
|
|
899
|
-
if (x[c >> 2] == (b | 0)) {
|
|
900
|
-
x[c >> 2] = d;
|
|
901
|
-
if (d) {
|
|
902
|
-
break J;
|
|
903
|
-
}
|
|
904
|
-
x[284] = ea(a) & j;
|
|
905
|
-
break I;
|
|
906
|
-
}
|
|
907
|
-
x[i + (x[i + 16 >> 2] == (b | 0) ? 16 : 20) >> 2] = d;
|
|
908
|
-
if (!d) {
|
|
909
|
-
break I;
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
x[d + 24 >> 2] = i;
|
|
913
|
-
a = x[b + 16 >> 2];
|
|
914
|
-
if (a) {
|
|
915
|
-
x[d + 16 >> 2] = a;
|
|
916
|
-
x[a + 24 >> 2] = d;
|
|
917
|
-
}
|
|
918
|
-
a = x[b + 20 >> 2];
|
|
919
|
-
if (!a) {
|
|
920
|
-
break I;
|
|
921
|
-
}
|
|
922
|
-
x[d + 20 >> 2] = a;
|
|
923
|
-
x[a + 24 >> 2] = d;
|
|
924
|
-
}
|
|
925
|
-
K: {
|
|
926
|
-
if (f >>> 0 <= 15) {
|
|
927
|
-
a = f + 16 | 0;
|
|
928
|
-
x[b + 4 >> 2] = a | 3;
|
|
929
|
-
a = a + b | 0;
|
|
930
|
-
x[a + 4 >> 2] = x[a + 4 >> 2] | 1;
|
|
931
|
-
break K;
|
|
932
|
-
}
|
|
933
|
-
x[b + 4 >> 2] = 19;
|
|
934
|
-
g = b + 16 | 0;
|
|
935
|
-
x[g + 4 >> 2] = f | 1;
|
|
936
|
-
x[f + g >> 2] = f;
|
|
937
|
-
if (h) {
|
|
938
|
-
c = h >>> 3 | 0;
|
|
939
|
-
a = (c << 3) + 1172 | 0;
|
|
940
|
-
d = x[288];
|
|
941
|
-
c = 1 << c;
|
|
942
|
-
L: {
|
|
943
|
-
if (!(c & e)) {
|
|
944
|
-
x[283] = c | e;
|
|
945
|
-
c = a;
|
|
946
|
-
break L;
|
|
947
|
-
}
|
|
948
|
-
c = x[a + 8 >> 2];
|
|
949
|
-
}
|
|
950
|
-
x[a + 8 >> 2] = d;
|
|
951
|
-
x[c + 12 >> 2] = d;
|
|
952
|
-
x[d + 12 >> 2] = a;
|
|
953
|
-
x[d + 8 >> 2] = c;
|
|
954
|
-
}
|
|
955
|
-
x[288] = g;
|
|
956
|
-
x[285] = f;
|
|
957
|
-
}
|
|
958
|
-
a = b + 8 | 0;
|
|
959
|
-
}
|
|
960
|
-
S = k + 16 | 0;
|
|
961
|
-
if (a) {
|
|
962
|
-
break a;
|
|
963
|
-
}
|
|
964
|
-
a = x[407];
|
|
965
|
-
if (a) {
|
|
966
|
-
T[a | 0]();
|
|
967
|
-
continue;
|
|
968
|
-
}
|
|
969
|
-
break;
|
|
970
|
-
}
|
|
971
|
-
R();
|
|
972
|
-
N();
|
|
973
|
-
} return a; }
|
|
974
|
-
function _(a) { a = a | 0; var b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0; if (a) {
|
|
975
|
-
a: {
|
|
976
|
-
if (!a) {
|
|
977
|
-
break a;
|
|
978
|
-
}
|
|
979
|
-
c = a - 8 | 0;
|
|
980
|
-
a = x[a - 4 >> 2];
|
|
981
|
-
e = a & -8;
|
|
982
|
-
f = c + e | 0;
|
|
983
|
-
b: {
|
|
984
|
-
if (a & 1) {
|
|
985
|
-
break b;
|
|
986
|
-
}
|
|
987
|
-
if (!(a & 3)) {
|
|
988
|
-
break a;
|
|
989
|
-
}
|
|
990
|
-
a = x[c >> 2];
|
|
991
|
-
c = c - a | 0;
|
|
992
|
-
if (c >>> 0 < A[287]) {
|
|
993
|
-
break a;
|
|
994
|
-
}
|
|
995
|
-
e = a + e | 0;
|
|
996
|
-
if (x[288] != (c | 0)) {
|
|
997
|
-
if (a >>> 0 <= 255) {
|
|
998
|
-
d = a >>> 3 | 0;
|
|
999
|
-
a = x[c + 8 >> 2];
|
|
1000
|
-
b = x[c + 12 >> 2];
|
|
1001
|
-
if ((b | 0) == (a | 0)) {
|
|
1002
|
-
x[283] = x[283] & ea(d);
|
|
1003
|
-
break b;
|
|
1004
|
-
}
|
|
1005
|
-
x[a + 12 >> 2] = b;
|
|
1006
|
-
x[b + 8 >> 2] = a;
|
|
1007
|
-
break b;
|
|
1008
|
-
}
|
|
1009
|
-
h = x[c + 24 >> 2];
|
|
1010
|
-
a = x[c + 12 >> 2];
|
|
1011
|
-
c: {
|
|
1012
|
-
if ((c | 0) != (a | 0)) {
|
|
1013
|
-
b = x[c + 8 >> 2];
|
|
1014
|
-
x[b + 12 >> 2] = a;
|
|
1015
|
-
x[a + 8 >> 2] = b;
|
|
1016
|
-
break c;
|
|
1017
|
-
}
|
|
1018
|
-
d: {
|
|
1019
|
-
b = c + 20 | 0;
|
|
1020
|
-
d = x[b >> 2];
|
|
1021
|
-
if (d) {
|
|
1022
|
-
break d;
|
|
1023
|
-
}
|
|
1024
|
-
b = c + 16 | 0;
|
|
1025
|
-
d = x[b >> 2];
|
|
1026
|
-
if (d) {
|
|
1027
|
-
break d;
|
|
1028
|
-
}
|
|
1029
|
-
a = 0;
|
|
1030
|
-
break c;
|
|
1031
|
-
}
|
|
1032
|
-
while (1) {
|
|
1033
|
-
g = b;
|
|
1034
|
-
a = d;
|
|
1035
|
-
b = a + 20 | 0;
|
|
1036
|
-
d = x[b >> 2];
|
|
1037
|
-
if (d) {
|
|
1038
|
-
continue;
|
|
1039
|
-
}
|
|
1040
|
-
b = a + 16 | 0;
|
|
1041
|
-
d = x[a + 16 >> 2];
|
|
1042
|
-
if (d) {
|
|
1043
|
-
continue;
|
|
1044
|
-
}
|
|
1045
|
-
break;
|
|
1046
|
-
}
|
|
1047
|
-
x[g >> 2] = 0;
|
|
1048
|
-
}
|
|
1049
|
-
if (!h) {
|
|
1050
|
-
break b;
|
|
1051
|
-
}
|
|
1052
|
-
b = x[c + 28 >> 2];
|
|
1053
|
-
d = (b << 2) + 1436 | 0;
|
|
1054
|
-
e: {
|
|
1055
|
-
if (x[d >> 2] == (c | 0)) {
|
|
1056
|
-
x[d >> 2] = a;
|
|
1057
|
-
if (a) {
|
|
1058
|
-
break e;
|
|
1059
|
-
}
|
|
1060
|
-
x[284] = x[284] & ea(b);
|
|
1061
|
-
break b;
|
|
1062
|
-
}
|
|
1063
|
-
x[h + (x[h + 16 >> 2] == (c | 0) ? 16 : 20) >> 2] = a;
|
|
1064
|
-
if (!a) {
|
|
1065
|
-
break b;
|
|
1066
|
-
}
|
|
1067
|
-
}
|
|
1068
|
-
x[a + 24 >> 2] = h;
|
|
1069
|
-
b = x[c + 16 >> 2];
|
|
1070
|
-
if (b) {
|
|
1071
|
-
x[a + 16 >> 2] = b;
|
|
1072
|
-
x[b + 24 >> 2] = a;
|
|
1073
|
-
}
|
|
1074
|
-
b = x[c + 20 >> 2];
|
|
1075
|
-
if (!b) {
|
|
1076
|
-
break b;
|
|
1077
|
-
}
|
|
1078
|
-
x[a + 20 >> 2] = b;
|
|
1079
|
-
x[b + 24 >> 2] = a;
|
|
1080
|
-
break b;
|
|
1081
|
-
}
|
|
1082
|
-
a = x[f + 4 >> 2];
|
|
1083
|
-
if ((a & 3) != 3) {
|
|
1084
|
-
break b;
|
|
1085
|
-
}
|
|
1086
|
-
x[285] = e;
|
|
1087
|
-
x[f + 4 >> 2] = a & -2;
|
|
1088
|
-
x[c + 4 >> 2] = e | 1;
|
|
1089
|
-
x[c + e >> 2] = e;
|
|
1090
|
-
break a;
|
|
1091
|
-
}
|
|
1092
|
-
if (c >>> 0 >= f >>> 0) {
|
|
1093
|
-
break a;
|
|
1094
|
-
}
|
|
1095
|
-
a = x[f + 4 >> 2];
|
|
1096
|
-
if (!(a & 1)) {
|
|
1097
|
-
break a;
|
|
1098
|
-
}
|
|
1099
|
-
f: {
|
|
1100
|
-
if (!(a & 2)) {
|
|
1101
|
-
if (x[289] == (f | 0)) {
|
|
1102
|
-
x[289] = c;
|
|
1103
|
-
a = x[286] + e | 0;
|
|
1104
|
-
x[286] = a;
|
|
1105
|
-
x[c + 4 >> 2] = a | 1;
|
|
1106
|
-
if (x[288] != (c | 0)) {
|
|
1107
|
-
break a;
|
|
1108
|
-
}
|
|
1109
|
-
x[285] = 0;
|
|
1110
|
-
x[288] = 0;
|
|
1111
|
-
break a;
|
|
1112
|
-
}
|
|
1113
|
-
if (x[288] == (f | 0)) {
|
|
1114
|
-
x[288] = c;
|
|
1115
|
-
a = x[285] + e | 0;
|
|
1116
|
-
x[285] = a;
|
|
1117
|
-
x[c + 4 >> 2] = a | 1;
|
|
1118
|
-
x[a + c >> 2] = a;
|
|
1119
|
-
break a;
|
|
1120
|
-
}
|
|
1121
|
-
e = (a & -8) + e | 0;
|
|
1122
|
-
g: {
|
|
1123
|
-
if (a >>> 0 <= 255) {
|
|
1124
|
-
d = a >>> 3 | 0;
|
|
1125
|
-
a = x[f + 8 >> 2];
|
|
1126
|
-
b = x[f + 12 >> 2];
|
|
1127
|
-
if ((b | 0) == (a | 0)) {
|
|
1128
|
-
x[283] = x[283] & ea(d);
|
|
1129
|
-
break g;
|
|
1130
|
-
}
|
|
1131
|
-
x[a + 12 >> 2] = b;
|
|
1132
|
-
x[b + 8 >> 2] = a;
|
|
1133
|
-
break g;
|
|
1134
|
-
}
|
|
1135
|
-
h = x[f + 24 >> 2];
|
|
1136
|
-
a = x[f + 12 >> 2];
|
|
1137
|
-
h: {
|
|
1138
|
-
if ((f | 0) != (a | 0)) {
|
|
1139
|
-
b = x[f + 8 >> 2];
|
|
1140
|
-
x[b + 12 >> 2] = a;
|
|
1141
|
-
x[a + 8 >> 2] = b;
|
|
1142
|
-
break h;
|
|
1143
|
-
}
|
|
1144
|
-
i: {
|
|
1145
|
-
b = f + 20 | 0;
|
|
1146
|
-
d = x[b >> 2];
|
|
1147
|
-
if (d) {
|
|
1148
|
-
break i;
|
|
1149
|
-
}
|
|
1150
|
-
b = f + 16 | 0;
|
|
1151
|
-
d = x[b >> 2];
|
|
1152
|
-
if (d) {
|
|
1153
|
-
break i;
|
|
1154
|
-
}
|
|
1155
|
-
a = 0;
|
|
1156
|
-
break h;
|
|
1157
|
-
}
|
|
1158
|
-
while (1) {
|
|
1159
|
-
g = b;
|
|
1160
|
-
a = d;
|
|
1161
|
-
b = a + 20 | 0;
|
|
1162
|
-
d = x[b >> 2];
|
|
1163
|
-
if (d) {
|
|
1164
|
-
continue;
|
|
1165
|
-
}
|
|
1166
|
-
b = a + 16 | 0;
|
|
1167
|
-
d = x[a + 16 >> 2];
|
|
1168
|
-
if (d) {
|
|
1169
|
-
continue;
|
|
1170
|
-
}
|
|
1171
|
-
break;
|
|
1172
|
-
}
|
|
1173
|
-
x[g >> 2] = 0;
|
|
1174
|
-
}
|
|
1175
|
-
if (!h) {
|
|
1176
|
-
break g;
|
|
1177
|
-
}
|
|
1178
|
-
b = x[f + 28 >> 2];
|
|
1179
|
-
d = (b << 2) + 1436 | 0;
|
|
1180
|
-
j: {
|
|
1181
|
-
if (x[d >> 2] == (f | 0)) {
|
|
1182
|
-
x[d >> 2] = a;
|
|
1183
|
-
if (a) {
|
|
1184
|
-
break j;
|
|
1185
|
-
}
|
|
1186
|
-
x[284] = x[284] & ea(b);
|
|
1187
|
-
break g;
|
|
1188
|
-
}
|
|
1189
|
-
x[h + (x[h + 16 >> 2] == (f | 0) ? 16 : 20) >> 2] = a;
|
|
1190
|
-
if (!a) {
|
|
1191
|
-
break g;
|
|
1192
|
-
}
|
|
1193
|
-
}
|
|
1194
|
-
x[a + 24 >> 2] = h;
|
|
1195
|
-
b = x[f + 16 >> 2];
|
|
1196
|
-
if (b) {
|
|
1197
|
-
x[a + 16 >> 2] = b;
|
|
1198
|
-
x[b + 24 >> 2] = a;
|
|
1199
|
-
}
|
|
1200
|
-
b = x[f + 20 >> 2];
|
|
1201
|
-
if (!b) {
|
|
1202
|
-
break g;
|
|
1203
|
-
}
|
|
1204
|
-
x[a + 20 >> 2] = b;
|
|
1205
|
-
x[b + 24 >> 2] = a;
|
|
1206
|
-
}
|
|
1207
|
-
x[c + 4 >> 2] = e | 1;
|
|
1208
|
-
x[c + e >> 2] = e;
|
|
1209
|
-
if (x[288] != (c | 0)) {
|
|
1210
|
-
break f;
|
|
1211
|
-
}
|
|
1212
|
-
x[285] = e;
|
|
1213
|
-
break a;
|
|
1214
|
-
}
|
|
1215
|
-
x[f + 4 >> 2] = a & -2;
|
|
1216
|
-
x[c + 4 >> 2] = e | 1;
|
|
1217
|
-
x[c + e >> 2] = e;
|
|
1218
|
-
}
|
|
1219
|
-
if (e >>> 0 <= 255) {
|
|
1220
|
-
b = e >>> 3 | 0;
|
|
1221
|
-
a = (b << 3) + 1172 | 0;
|
|
1222
|
-
d = x[283];
|
|
1223
|
-
b = 1 << b;
|
|
1224
|
-
k: {
|
|
1225
|
-
if (!(d & b)) {
|
|
1226
|
-
x[283] = b | d;
|
|
1227
|
-
b = a;
|
|
1228
|
-
break k;
|
|
1229
|
-
}
|
|
1230
|
-
b = x[a + 8 >> 2];
|
|
1231
|
-
}
|
|
1232
|
-
x[a + 8 >> 2] = c;
|
|
1233
|
-
x[b + 12 >> 2] = c;
|
|
1234
|
-
x[c + 12 >> 2] = a;
|
|
1235
|
-
x[c + 8 >> 2] = b;
|
|
1236
|
-
break a;
|
|
1237
|
-
}
|
|
1238
|
-
b = 31;
|
|
1239
|
-
x[c + 16 >> 2] = 0;
|
|
1240
|
-
x[c + 20 >> 2] = 0;
|
|
1241
|
-
if (e >>> 0 <= 16777215) {
|
|
1242
|
-
b = e >>> 8 | 0;
|
|
1243
|
-
a = b + 1048320 >>> 16 & 8;
|
|
1244
|
-
d = b << a;
|
|
1245
|
-
b = d + 520192 >>> 16 & 4;
|
|
1246
|
-
g = d << b;
|
|
1247
|
-
d = g + 245760 >>> 16 & 2;
|
|
1248
|
-
a = (g << d >>> 15 | 0) - (d | (a | b)) | 0;
|
|
1249
|
-
b = (a << 1 | e >>> a + 21 & 1) + 28 | 0;
|
|
1250
|
-
}
|
|
1251
|
-
x[c + 28 >> 2] = b;
|
|
1252
|
-
a = (b << 2) + 1436 | 0;
|
|
1253
|
-
l: {
|
|
1254
|
-
m: {
|
|
1255
|
-
d = x[284];
|
|
1256
|
-
g = 1 << b;
|
|
1257
|
-
n: {
|
|
1258
|
-
if (!(d & g)) {
|
|
1259
|
-
x[284] = d | g;
|
|
1260
|
-
x[a >> 2] = c;
|
|
1261
|
-
x[c + 24 >> 2] = a;
|
|
1262
|
-
break n;
|
|
1263
|
-
}
|
|
1264
|
-
b = e << ((b | 0) == 31 ? 0 : 25 - (b >>> 1 | 0) | 0);
|
|
1265
|
-
a = x[a >> 2];
|
|
1266
|
-
while (1) {
|
|
1267
|
-
d = a;
|
|
1268
|
-
if ((x[a + 4 >> 2] & -8) == (e | 0)) {
|
|
1269
|
-
break m;
|
|
1270
|
-
}
|
|
1271
|
-
a = b >>> 29 | 0;
|
|
1272
|
-
b = b << 1;
|
|
1273
|
-
g = d + (a & 4) | 0;
|
|
1274
|
-
a = x[g + 16 >> 2];
|
|
1275
|
-
if (a) {
|
|
1276
|
-
continue;
|
|
1277
|
-
}
|
|
1278
|
-
break;
|
|
1279
|
-
}
|
|
1280
|
-
x[g + 16 >> 2] = c;
|
|
1281
|
-
x[c + 24 >> 2] = d;
|
|
1282
|
-
}
|
|
1283
|
-
x[c + 12 >> 2] = c;
|
|
1284
|
-
x[c + 8 >> 2] = c;
|
|
1285
|
-
break l;
|
|
1286
|
-
}
|
|
1287
|
-
a = x[d + 8 >> 2];
|
|
1288
|
-
x[a + 12 >> 2] = c;
|
|
1289
|
-
x[d + 8 >> 2] = c;
|
|
1290
|
-
x[c + 24 >> 2] = 0;
|
|
1291
|
-
x[c + 12 >> 2] = d;
|
|
1292
|
-
x[c + 8 >> 2] = a;
|
|
1293
|
-
}
|
|
1294
|
-
a = x[291] - 1 | 0;
|
|
1295
|
-
x[291] = a ? a : -1;
|
|
1296
|
-
}
|
|
1297
|
-
} }
|
|
1298
|
-
function Y(a) { var b = 0, c = 0; b = x[256]; c = a + 3 & -4; a = b + c | 0; a: {
|
|
1299
|
-
if (a >>> 0 <= b >>> 0 ? c : 0) {
|
|
1300
|
-
break a;
|
|
1301
|
-
}
|
|
1302
|
-
if (a >>> 0 > U() << 16 >>> 0) {
|
|
1303
|
-
if (!(Q(a | 0) | 0)) {
|
|
1304
|
-
break a;
|
|
1305
|
-
}
|
|
1306
|
-
}
|
|
1307
|
-
x[256] = a;
|
|
1308
|
-
return b;
|
|
1309
|
-
} x[282] = 48; return -1; }
|
|
1310
|
-
function ea(a) { var b = 0; b = a & 31; a = 0 - a & 31; return (-1 >>> b & -2) << b | (-1 << a & -2) >>> a; }
|
|
1311
|
-
function ca(a, b, c) { a = E(a); b = E(b); c = E(c); return Z() | 0; }
|
|
1312
|
-
function ba(a, b) { a = a | 0; b = b | 0; return D(b, 4950) | 0; }
|
|
1313
|
-
function aa(a, b) { a = a | 0; b = b | 0; }
|
|
1314
|
-
function da() { return Z() | 0; }
|
|
1315
|
-
function $() { }
|
|
1316
|
-
// EMSCRIPTEN_END_FUNCS
|
|
1317
|
-
g = y;
|
|
1318
|
-
r(W);
|
|
1319
|
-
var T = e([]);
|
|
1320
|
-
function U() { return u.byteLength / 65536 | 0; }
|
|
1321
|
-
return { "d": $, "e": _, "f": da, "g": ca, "h": ba, "i": aa, "j": _, "k": T };
|
|
1322
|
-
}
|
|
1323
|
-
return V(X);
|
|
1324
|
-
}
|
|
1325
|
-
// EMSCRIPTEN_END_ASM
|
|
1326
|
-
)(C);
|
|
1327
|
-
}
|
|
1328
|
-
function ea() { return { then: function (a) { a({ instance: new da }); } }; }
|
|
1329
|
-
var fa = Error, WebAssembly = {};
|
|
1330
|
-
A = [];
|
|
1331
|
-
"object" != typeof WebAssembly && y("no native wasm support detected");
|
|
1332
|
-
var D, E = !1, F, B = b.INITIAL_MEMORY || 16777216;
|
|
1333
|
-
if (D = b.wasmMemory ? b.wasmMemory : new ba)
|
|
1334
|
-
F = D.buffer;
|
|
1335
|
-
B = F.byteLength;
|
|
1336
|
-
var G = F;
|
|
1337
|
-
F = G;
|
|
1338
|
-
b.HEAP8 = new Int8Array(G);
|
|
1339
|
-
b.HEAP16 = new Int16Array(G);
|
|
1340
|
-
b.HEAP32 = new Int32Array(G);
|
|
1341
|
-
b.HEAPU8 = new Uint8Array(G);
|
|
1342
|
-
b.HEAPU16 = new Uint16Array(G);
|
|
1343
|
-
b.HEAPU32 = new Uint32Array(G);
|
|
1344
|
-
b.HEAPF32 = new Float32Array(G);
|
|
1345
|
-
b.HEAPF64 = new Float64Array(G);
|
|
1346
|
-
var H, I = [], J = [], K = [];
|
|
1347
|
-
function ha() { var a = b.preRun.shift(); I.unshift(a); }
|
|
1348
|
-
var L = 0, M = null, N = null;
|
|
1349
|
-
b.preloadedImages = {};
|
|
1350
|
-
b.preloadedAudios = {};
|
|
1351
|
-
function y(a) { if (b.onAbort)
|
|
1352
|
-
b.onAbort(a); a = "Aborted(" + a + ")"; z(a); E = !0; a = new fa(a + ". Build with -s ASSERTIONS=1 for more info."); k(a); throw a; }
|
|
1353
|
-
var O = "data:application/octet-stream;base64,", P;
|
|
1354
|
-
P = "mxcadassembly_min.wasm";
|
|
1355
|
-
if (!P.startsWith(O)) {
|
|
1356
|
-
var Q = P;
|
|
1357
|
-
P = b.locateFile ? b.locateFile(Q, q) : q + Q;
|
|
1358
|
-
}
|
|
1359
|
-
function ia() { var a = P; try {
|
|
1360
|
-
if (a == P && A)
|
|
1361
|
-
return new Uint8Array(A);
|
|
1362
|
-
var c = x(a);
|
|
1363
|
-
if (c)
|
|
1364
|
-
return c;
|
|
1365
|
-
if (u)
|
|
1366
|
-
return u(a);
|
|
1367
|
-
throw "both async and sync fetching of the wasm failed";
|
|
1368
|
-
}
|
|
1369
|
-
catch (d) {
|
|
1370
|
-
y(d);
|
|
1371
|
-
} }
|
|
1372
|
-
function ja() { if (!A && (m || n)) {
|
|
1373
|
-
if ("function" == typeof fetch && !P.startsWith("file://"))
|
|
1374
|
-
return fetch(P, { credentials: "same-origin" }).then(function (a) { if (!a.ok)
|
|
1375
|
-
throw "failed to load wasm binary file at '" + P + "'"; return a.arrayBuffer(); }).catch(function () { return ia(); });
|
|
1376
|
-
if (t)
|
|
1377
|
-
return new Promise(function (a, c) { t(P, function (d) { a(new Uint8Array(d)); }, c); });
|
|
1378
|
-
} return Promise.resolve().then(function () { return ia(); }); }
|
|
1379
|
-
function R(a) { for (; 0 < a.length;) {
|
|
1380
|
-
var c = a.shift();
|
|
1381
|
-
if ("function" == typeof c)
|
|
1382
|
-
c(b);
|
|
1383
|
-
else {
|
|
1384
|
-
var d = c.u;
|
|
1385
|
-
"number" == typeof d ? void 0 === c.s ? ka(d)() : ka(d)(c.s) : d(void 0 === c.s ? null : c.s);
|
|
1386
|
-
}
|
|
1387
|
-
} }
|
|
1388
|
-
var S = [];
|
|
1389
|
-
function ka(a) { var c = S[a]; c || (a >= S.length && (S.length = a + 1), S[a] = c = H.get(a)); return c; }
|
|
1390
|
-
var aa = !1, la = "function" == typeof atob ? atob : function (a) {
|
|
1391
|
-
var c = "", d = 0;
|
|
1392
|
-
a = a.replace(/[^A-Za-z0-9\+\/=]/g, "");
|
|
1393
|
-
do {
|
|
1394
|
-
var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(d++));
|
|
1395
|
-
var f = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(d++));
|
|
1396
|
-
var h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(d++));
|
|
1397
|
-
var ca = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(d++));
|
|
1398
|
-
e = e <<
|
|
1399
|
-
2 | f >> 4;
|
|
1400
|
-
f = (f & 15) << 4 | h >> 2;
|
|
1401
|
-
var ra = (h & 3) << 6 | ca;
|
|
1402
|
-
c += String.fromCharCode(e);
|
|
1403
|
-
64 !== h && (c += String.fromCharCode(f));
|
|
1404
|
-
64 !== ca && (c += String.fromCharCode(ra));
|
|
1405
|
-
} while (d < a.length);
|
|
1406
|
-
return c;
|
|
1407
|
-
};
|
|
1408
|
-
function x(a) { if (a.startsWith(O)) {
|
|
1409
|
-
a = a.slice(O.length);
|
|
1410
|
-
if ("boolean" == typeof p && p) {
|
|
1411
|
-
var c = Buffer.from(a, "base64");
|
|
1412
|
-
c = new Uint8Array(c.buffer, c.byteOffset, c.byteLength);
|
|
1413
|
-
}
|
|
1414
|
-
else
|
|
1415
|
-
try {
|
|
1416
|
-
var d = la(a), e = new Uint8Array(d.length);
|
|
1417
|
-
for (a = 0; a < d.length; ++a)
|
|
1418
|
-
e[a] = d.charCodeAt(a);
|
|
1419
|
-
c = e;
|
|
1420
|
-
}
|
|
1421
|
-
catch (f) {
|
|
1422
|
-
throw Error("Converting base64 string to bytes failed.");
|
|
1423
|
-
}
|
|
1424
|
-
return c;
|
|
1425
|
-
} }
|
|
1426
|
-
var C = { c: function () { y(""); }, b: function () { y("OOM"); }, a: D };
|
|
1427
|
-
(function () {
|
|
1428
|
-
function a(f) { b.asm = f.exports; H = b.asm.k; J.unshift(b.asm.d); L--; b.monitorRunDependencies && b.monitorRunDependencies(L); 0 == L && (null !== M && (clearInterval(M), M = null), N && (f = N, N = null, f())); }
|
|
1429
|
-
function c(f) { a(f.instance); }
|
|
1430
|
-
function d(f) { return ja().then(function () { return ea(); }).then(function (h) { return h; }).then(f, function (h) { z("failed to asynchronously prepare wasm: " + h); y(h); }); }
|
|
1431
|
-
var e = { a: C };
|
|
1432
|
-
L++;
|
|
1433
|
-
b.monitorRunDependencies && b.monitorRunDependencies(L);
|
|
1434
|
-
if (b.instantiateWasm)
|
|
1435
|
-
try {
|
|
1436
|
-
return b.instantiateWasm(e, a);
|
|
1437
|
-
}
|
|
1438
|
-
catch (f) {
|
|
1439
|
-
return z("Module.instantiateWasm callback failed with error: " +
|
|
1440
|
-
f), !1;
|
|
1441
|
-
}
|
|
1442
|
-
(function () { return A || "function" != typeof WebAssembly.instantiateStreaming || P.startsWith(O) || P.startsWith("file://") || "function" != typeof fetch ? d(c) : fetch(P, { credentials: "same-origin" }).then(function (f) { return WebAssembly.instantiateStreaming(f, e).then(c, function (h) { z("wasm streaming compile failed: " + h); z("falling back to ArrayBuffer instantiation"); return d(c); }); }); })().catch(k);
|
|
1443
|
-
return {};
|
|
1444
|
-
})();
|
|
1445
|
-
b.___wasm_call_ctors = function () { return (b.___wasm_call_ctors = b.asm.d).apply(null, arguments); };
|
|
1446
|
-
var ma = b._emscripten_bind_VoidPtr___destroy___0 = function () { return (ma = b._emscripten_bind_VoidPtr___destroy___0 = b.asm.e).apply(null, arguments); }, na = b._emscripten_bind_McGeVector3d_McGeVector3d_0 = function () { return (na = b._emscripten_bind_McGeVector3d_McGeVector3d_0 = b.asm.f).apply(null, arguments); }, oa = b._emscripten_bind_McGeVector3d_McGeVector3d_3 = function () { return (oa = b._emscripten_bind_McGeVector3d_McGeVector3d_3 = b.asm.g).apply(null, arguments); }, pa = b._emscripten_bind_McGeVector3d_getVal_1 = function () {
|
|
1447
|
-
return (pa =
|
|
1448
|
-
b._emscripten_bind_McGeVector3d_getVal_1 = b.asm.h).apply(null, arguments);
|
|
1449
|
-
}, qa = b._emscripten_bind_McGeVector3d_setVal_1 = function () { return (qa = b._emscripten_bind_McGeVector3d_setVal_1 = b.asm.i).apply(null, arguments); }, sa = b._emscripten_bind_McGeVector3d___destroy___0 = function () { return (sa = b._emscripten_bind_McGeVector3d___destroy___0 = b.asm.j).apply(null, arguments); }, T;
|
|
1450
|
-
N = function ta() { T || U(); T || (N = ta); };
|
|
1451
|
-
function U() { function a() { if (!T && (T = !0, b.calledRun = !0, !E)) {
|
|
1452
|
-
R(J);
|
|
1453
|
-
g(b);
|
|
1454
|
-
if (b.onRuntimeInitialized)
|
|
1455
|
-
b.onRuntimeInitialized();
|
|
1456
|
-
if (b.postRun)
|
|
1457
|
-
for ("function" == typeof b.postRun && (b.postRun = [b.postRun]); b.postRun.length;) {
|
|
1458
|
-
var c = b.postRun.shift();
|
|
1459
|
-
K.unshift(c);
|
|
1460
|
-
}
|
|
1461
|
-
R(K);
|
|
1462
|
-
} } if (!(0 < L)) {
|
|
1463
|
-
if (b.preRun)
|
|
1464
|
-
for ("function" == typeof b.preRun && (b.preRun = [b.preRun]); b.preRun.length;)
|
|
1465
|
-
ha();
|
|
1466
|
-
R(I);
|
|
1467
|
-
0 < L || (b.setStatus ? (b.setStatus("Running..."), setTimeout(function () { setTimeout(function () { b.setStatus(""); }, 1); a(); }, 1)) : a());
|
|
1468
|
-
} }
|
|
1469
|
-
b.run = U;
|
|
1470
|
-
if (b.preInit)
|
|
1471
|
-
for ("function" == typeof b.preInit && (b.preInit = [b.preInit]); 0 < b.preInit.length;)
|
|
1472
|
-
b.preInit.pop()();
|
|
1473
|
-
U();
|
|
1474
|
-
function V() { }
|
|
1475
|
-
V.prototype = Object.create(V.prototype);
|
|
1476
|
-
V.prototype.constructor = V;
|
|
1477
|
-
V.prototype.m = V;
|
|
1478
|
-
V.o = {};
|
|
1479
|
-
b.WrapperObject = V;
|
|
1480
|
-
function W(a) { return (a || V).o; }
|
|
1481
|
-
b.getCache = W;
|
|
1482
|
-
function X(a, c) { var d = W(c), e = d[a]; if (e)
|
|
1483
|
-
return e; e = Object.create((c || V).prototype); e.l = a; return d[a] = e; }
|
|
1484
|
-
b.wrapPointer = X;
|
|
1485
|
-
b.castObject = function (a, c) { return X(a.l, c); };
|
|
1486
|
-
b.NULL = X(0);
|
|
1487
|
-
b.destroy = function (a) { if (!a.__destroy__)
|
|
1488
|
-
throw "Error: Cannot destroy object. (Did you create it yourself?)"; a.__destroy__(); delete W(a.m)[a.l]; };
|
|
1489
|
-
b.compare = function (a, c) { return a.l === c.l; };
|
|
1490
|
-
b.getPointer = function (a) { return a.l; };
|
|
1491
|
-
b.getClass = function (a) { return a.m; };
|
|
1492
|
-
function Y() { throw "cannot construct a VoidPtr, no constructor in IDL"; }
|
|
1493
|
-
Y.prototype = Object.create(V.prototype);
|
|
1494
|
-
Y.prototype.constructor = Y;
|
|
1495
|
-
Y.prototype.m = Y;
|
|
1496
|
-
Y.o = {};
|
|
1497
|
-
b.VoidPtr = Y;
|
|
1498
|
-
Y.prototype.__destroy__ = function () { ma(this.l); };
|
|
1499
|
-
function Z(a, c, d) { a && "object" === typeof a && (a = a.l); c && "object" === typeof c && (c = c.l); d && "object" === typeof d && (d = d.l); this.l = void 0 === a ? na() : void 0 === c ? _emscripten_bind_McGeVector3d_McGeVector3d_1(a) : void 0 === d ? _emscripten_bind_McGeVector3d_McGeVector3d_2(a, c) : oa(a, c, d); W(Z)[this.l] = this; }
|
|
1500
|
-
Z.prototype = Object.create(V.prototype);
|
|
1501
|
-
Z.prototype.constructor = Z;
|
|
1502
|
-
Z.prototype.m = Z;
|
|
1503
|
-
Z.o = {};
|
|
1504
|
-
b.McGeVector3d = Z;
|
|
1505
|
-
Z.prototype.getVal = function (a) { var c = this.l; a && "object" === typeof a && (a = a.l); return pa(c, a); };
|
|
1506
|
-
Z.prototype.setVal = function (a) { var c = this.l; a && "object" === typeof a && (a = a.l); qa(c, a); };
|
|
1507
|
-
Z.prototype.__destroy__ = function () { sa(this.l); };
|
|
1508
|
-
return mxcadassembly.ready;
|
|
1509
|
-
});
|
|
1510
|
-
})();
|
|
1511
|
-
if (typeof exports === 'object' && typeof module === 'object')
|
|
1512
|
-
module.exports = mxcadassembly;
|
|
1513
|
-
else if (typeof define === 'function' && define['amd'])
|
|
1514
|
-
define([], function () { return mxcadassembly; });
|
|
1515
|
-
else if (typeof exports === 'object')
|
|
1516
|
-
exports["mxcadassembly"] = mxcadassembly;
|
|
1517
|
-
return mxcadassembly();
|
|
1518
|
-
}
|
|
1519
|
-
exports.default = mxcadassemblyinit;
|
|
1
|
+
"use strict";function mxcadassemblyinit(){var e,t=(e="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,"undefined"!=typeof __filename&&(e=e||__filename),function(t){var n,r,i;t=t||{},n||(n=void 0!==t?t:{}),n.ready=new Promise(function(e,t){r=e,i=t});var o,f,a,c,u,s,p=Object.assign({},n),_="object"==typeof window,A="function"==typeof importScripts,l="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,b="";l?(b=A?xxxxx("path").dirname(b)+"/":__dirname+"/",s=function(){u||(c=xxxxx("fs"),u=xxxxx("path"))},o=function(e,t){var n=Z(e);return n?t?n:n.toString():(s(),e=u.normalize(e),c.readFileSync(e,t?void 0:"utf8"))},a=function(e){return(e=o(e,!0)).buffer||(e=new Uint8Array(e)),e},f=function(e,t,n){var r=Z(e);r&&t(r),s(),e=u.normalize(e),c.readFile(e,function(e,r){e?n(e):t(r.buffer)})},1<process.argv.length&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),process.on("uncaughtException",function(e){throw e}),process.on("unhandledRejection",function(e){throw e}),n.inspect=function(){return"[Emscripten Module object]"}):(_||A)&&(A?b=self.location.href:"undefined"!=typeof document&&document.currentScript&&(b=document.currentScript.src),e&&(b=e),b=0!==b.indexOf("blob:")?b.substr(0,b.replace(/[?#].*/,"").lastIndexOf("/")+1):"",o=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText}catch(i){if(e=Z(e)){t=[];for(var n=0;n<e.length;n++){var r=e[n];255<r&&(N&&F("Character code "+r+" ("+String.fromCharCode(r)+") at offset "+n+" not in 0x00-0xFF."),r&=255),t.push(String.fromCharCode(r))}return t.join("")}throw i}},A&&(a=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}catch(t){if(e=Z(e))return e;throw t}}),f=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){if(200==r.status||0==r.status&&r.response)t(r.response);else{var i=Z(e);i?t(i.buffer):n()}},r.onerror=n,r.send(null)}),n.print||console.log.bind(console);var d,y=n.printErr||console.warn.bind(console);function h(){this.exports=function(e){for(var t,n=new Uint8Array(123),r=25;r>=0;--r)n[48+r]=52+r,n[65+r]=r,n[97+r]=26+r;function i(e,t,r){for(var i,o,f=0,a=t,c=r.length,u=t+(3*c>>2)-("="==r[c-2])-("="==r[c-1]);f<c;f+=4)i=n[r.charCodeAt(f+1)],o=n[r.charCodeAt(f+2)],e[a++]=n[r.charCodeAt(f)]<<2|i>>4,a<u&&(e[a++]=i<<4|o>>2),a<u&&(e[a++]=o<<6|n[r.charCodeAt(f+3)])}return n[43]=62,n[47]=63,function(e){var n=e.a.buffer,r=new Int8Array(n),o=new Int16Array(n),f=new Int32Array(n),a=new Uint8Array(n),c=(new Uint16Array(n),new Uint32Array(n)),u=(new Float32Array(n),new Float64Array(n)),s=Math.imul,p=(Math.fround,Math.abs,Math.clz32,Math.min,Math.max,Math.floor,Math.ceil,Math.trunc,Math.sqrt,e.abort),_=e.b,A=e.c,l=e.d,b=e.e,d=e.f,y=5245008;function h(e){var t,n=0,r=0,i=0,o=0,u=0,s=0,p=0,_=0,A=0,l=0;y=t=y-16|0;e:{t:{n:{r:{i:{o:{f:{a:{c:{u:{s:{if((e|=0)>>>0<=244){if(3&(n=(o=f[404])>>>(r=(s=e>>>0<11?16:e+11&-8)>>>3|0)|0)){e=(u=f[1664+(n=(i=r+(1&(-1^n))|0)<<3)>>2])+8|0,(0|(r=f[u+8>>2]))!=(0|(n=n+1656|0))?(f[r+12>>2]=n,f[n+8>>2]=r):f[404]=j(i)&o,n=i<<3,f[u+4>>2]=3|n,f[4+(n=n+u|0)>>2]=1|f[n+4>>2];break e}if((l=f[406])>>>0>=s>>>0)break s;if(n){r=e=(n=(0-(e=(0-(e=2<<r)|e)&n<<r)&e)-1|0)>>>12&16,r|=e=(n=n>>>e|0)>>>5&8,r|=e=(n=n>>>e|0)>>>2&4,A=f[1664+(e=(r=((r|=e=(n=n>>>e|0)>>>1&2)|(e=(n=n>>>e|0)>>>1&1))+(n>>>e|0)|0)<<3)>>2],(0|(n=f[A+8>>2]))!=(0|(e=e+1656|0))?(f[n+12>>2]=e,f[e+8>>2]=n):(o=j(r)&o,f[404]=o),e=A+8|0,f[A+4>>2]=3|s,u=(n=r<<3)-s|0,f[4+(i=s+A|0)>>2]=1|u,f[n+A>>2]=u,l&&(r=1656+((n=l>>>3|0)<<3)|0,A=f[409],(n=1<<n)&o?n=f[r+8>>2]:(f[404]=n|o,n=r),f[r+8>>2]=A,f[n+12>>2]=A,f[A+12>>2]=r,f[A+8>>2]=n),f[409]=i,f[406]=u;break e}if(!(p=f[405]))break s;for(r=e=(n=(0-p&p)-1|0)>>>12&16,r|=e=(n=n>>>e|0)>>>5&8,r|=e=(n=n>>>e|0)>>>2&4,n=f[1920+(((r|=e=(n=n>>>e|0)>>>1&2)|(e=(n=n>>>e|0)>>>1&1))+(n>>>e|0)<<2)>>2],i=(-8&f[n+4>>2])-s|0,r=n;(e=f[r+16>>2])||(e=f[r+20>>2]);)i=(u=(r=(-8&f[e+4>>2])-s|0)>>>0<i>>>0)?r:i,n=u?e:n,r=e;if(_=f[n+24>>2],(0|(u=f[n+12>>2]))!=(0|n)){e=f[n+8>>2],f[e+12>>2]=u,f[u+8>>2]=e;break t}if(!(e=f[(r=n+20|0)>>2])){if(!(e=f[n+16>>2]))break u;r=n+16|0}for(;A=r,u=e,(e=f[(r=e+20|0)>>2])||(r=u+16|0,e=f[u+16>>2]););f[A>>2]=0;break t}if(s=-1,!(e>>>0>4294967231)&&(s=-8&(e=e+11|0),_=f[405])){i=0-s|0,o=0,s>>>0<256||(o=31,s>>>0>16777215||(e=e>>>8|0,e<<=A=e+1048320>>>16&8,o=28+((e=((e<<=r=e+520192>>>16&4)<<(n=e+245760>>>16&2)>>>15|0)-(n|r|A)|0)<<1|s>>>e+21&1)|0)),r=f[1920+(o<<2)>>2];p:{_:{if(r)for(e=0,n=s<<(31==(0|o)?0:25-(o>>>1|0)|0);;){if(!((A=(p=-8&f[r+4>>2])-s|0)>>>0>=i>>>0)&&(i=A,u=r,(0|s)==(0|p))){i=0,e=r;break _}if(A=f[r+20>>2],r=f[16+((n>>>29&4)+r|0)>>2],e=A?(0|A)==(0|r)?e:A:e,n<<=1,!r)break}else e=0;if(!(e|u)){if(u=0,!(e=(0-(e=2<<o)|e)&_))break s;r=e=(n=(e&0-e)-1|0)>>>12&16,r|=e=(n=n>>>e|0)>>>5&8,r|=e=(n=n>>>e|0)>>>2&4,e=f[1920+(((r|=e=(n=n>>>e|0)>>>1&2)|(e=(n=n>>>e|0)>>>1&1))+(n>>>e|0)<<2)>>2]}if(!e)break p}for(;i=(r=(n=(-8&f[e+4>>2])-s|0)>>>0<i>>>0)?n:i,u=r?e:u,e=(n=f[e+16>>2])||f[e+20>>2];);}if(!(!u|f[406]-s>>>0<=i>>>0)){if(o=f[u+24>>2],(0|u)!=(0|(n=f[u+12>>2]))){e=f[u+8>>2],f[e+12>>2]=n,f[n+8>>2]=e;break n}if(!(e=f[(r=u+20|0)>>2])){if(!(e=f[u+16>>2]))break c;r=u+16|0}for(;A=r,n=e,(e=f[(r=e+20|0)>>2])||(r=n+16|0,e=f[n+16>>2]););f[A>>2]=0;break n}}}if((r=f[406])>>>0>=s>>>0){i=f[409],(n=r-s|0)>>>0>=16?(f[406]=n,e=i+s|0,f[409]=e,f[e+4>>2]=1|n,f[r+i>>2]=n,f[i+4>>2]=3|s):(f[409]=0,f[406]=0,f[i+4>>2]=3|r,f[4+(e=r+i|0)>>2]=1|f[e+4>>2]),e=i+8|0;break e}if((_=f[407])>>>0>s>>>0){n=_-s|0,f[407]=n,e=(r=f[410])+s|0,f[410]=e,f[e+4>>2]=1|n,f[r+4>>2]=3|s,e=r+8|0;break e}if(e=0,p=s+47|0,f[522]?r=f[524]:(f[525]=-1,f[526]=-1,f[523]=4096,f[524]=4096,f[522]=t+12&-16^1431655768,f[527]=0,f[515]=0,r=4096),(r=(A=p+r|0)&(u=0-r|0))>>>0<=s>>>0)break e;if((i=f[514])&&(o=(n=f[512])+r|0)>>>0>i>>>0|n>>>0>=o>>>0)break e;if(4&a[2060])break o;s:{p:{if(i=f[410])for(e=2064;;){if((n=f[e>>2])>>>0<=i>>>0&i>>>0<n+f[e+4>>2]>>>0)break p;if(!(e=f[e+8>>2]))break}if(-1==(0|(n=C(0))))break f;if(o=r,(e=(i=f[523])-1|0)&n&&(o=(r-n|0)+(e+n&0-i)|0),o>>>0<=s>>>0|o>>>0>2147483646)break f;if((i=f[514])&&i>>>0<(u=(e=f[512])+o|0)>>>0|e>>>0>=u>>>0)break f;if((0|n)!=(0|(e=C(o))))break s;break i}if((o=u&A-_)>>>0>2147483646)break f;if((0|(n=C(o)))==(f[e>>2]+f[e+4>>2]|0))break a;e=n}if(!(-1==(0|e)|s+48>>>0<=o>>>0)){if((n=(n=f[524])+(p-o|0)&0-n)>>>0>2147483646){n=e;break i}if(-1!=(0|C(n))){o=n+o|0,n=e;break i}C(0-o|0);break f}if(n=e,-1!=(0|e))break i;break f}u=0;break t}n=0;break n}if(-1!=(0|n))break i}f[515]=4|f[515]}if(r>>>0>2147483646)break r;if(-1==(0|(n=C(r)))|-1==(0|(e=C(0)))|e>>>0<=n>>>0)break r;if((o=e-n|0)>>>0<=s+40>>>0)break r}e=f[512]+o|0,f[512]=e,e>>>0>c[513]&&(f[513]=e);i:{o:{f:{if(p=f[410]){for(e=2064;;){if(((i=f[e>>2])+(r=f[e+4>>2])|0)==(0|n))break f;if(!(e=f[e+8>>2]))break}break o}for((e=f[408])>>>0<=n>>>0&&e||(f[408]=n),e=0,f[517]=o,f[516]=n,f[412]=-1,f[413]=f[522],f[519]=0;r=1656+(i=e<<3)|0,f[i+1664>>2]=r,f[i+1668>>2]=r,32!=(0|(e=e+1|0)););r=(i=o-40|0)-(e=n+8&7?-8-n&7:0)|0,f[407]=r,e=e+n|0,f[410]=e,f[e+4>>2]=1|r,f[4+(n+i|0)>>2]=40,f[411]=f[526];break i}if(!(8&a[e+12|0]|i>>>0>p>>>0|n>>>0<=p>>>0)){f[e+4>>2]=r+o,r=(e=p+8&7?-8-p&7:0)+p|0,f[410]=r,e=(n=f[407]+o|0)-e|0,f[407]=e,f[r+4>>2]=1|e,f[4+(n+p|0)>>2]=40,f[411]=f[526];break i}}c[408]>n>>>0&&(f[408]=n),r=n+o|0,e=2064;o:{f:{a:{c:{u:{s:{for(;;){if((0|r)!=f[e>>2]){if(e=f[e+8>>2])continue;break s}break}if(!(8&a[e+12|0]))break u}for(e=2064;;){if((r=f[e>>2])>>>0<=p>>>0&&(u=r+f[e+4>>2]|0)>>>0>p>>>0)break c;e=f[e+8>>2]}}if(f[e>>2]=n,f[e+4>>2]=f[e+4>>2]+o,f[4+(A=(n+8&7?-8-n&7:0)+n|0)>>2]=3|s,s=(o=r+(r+8&7?-8-r&7:0)|0)-(_=s+A|0)|0,(0|o)==(0|p)){f[410]=_,e=f[407]+s|0,f[407]=e,f[_+4>>2]=1|e;break f}if(f[409]==(0|o)){f[409]=_,e=f[406]+s|0,f[406]=e,f[_+4>>2]=1|e,f[e+_>>2]=e;break f}if(1==(3&(e=f[o+4>>2]))){u=-8&e;u:if(e>>>0<=255){if(r=f[o+8>>2],e=e>>>3|0,(0|(n=f[o+12>>2]))==(0|r)){f[404]=f[404]&j(e);break u}f[r+12>>2]=n,f[n+8>>2]=r}else{if(p=f[o+24>>2],(0|o)==(0|(n=f[o+12>>2])))if((i=f[(e=o+20|0)>>2])||(i=f[(e=o+16|0)>>2])){for(;r=e,(i=f[(e=(n=i)+20|0)>>2])||(e=n+16|0,i=f[n+16>>2]););f[r>>2]=0}else n=0;else e=f[o+8>>2],f[e+12>>2]=n,f[n+8>>2]=e;if(p){r=f[o+28>>2];s:{if(f[(e=1920+(r<<2)|0)>>2]==(0|o)){if(f[e>>2]=n,n)break s;f[405]=f[405]&j(r);break u}if(f[p+(f[p+16>>2]==(0|o)?16:20)>>2]=n,!n)break u}f[n+24>>2]=p,(e=f[o+16>>2])&&(f[n+16>>2]=e,f[e+24>>2]=n),(e=f[o+20>>2])&&(f[n+20>>2]=e,f[e+24>>2]=n)}}s=u+s|0,o=o+u|0}if(f[o+4>>2]=-2&f[o+4>>2],f[_+4>>2]=1|s,f[s+_>>2]=s,s>>>0<=255){n=1656+((e=s>>>3|0)<<3)|0,(r=f[404])&(e=1<<e)?e=f[n+8>>2]:(f[404]=e|r,e=n),f[n+8>>2]=_,f[e+12>>2]=_,f[_+12>>2]=n,f[_+8>>2]=e;break f}if(e=31,s>>>0<=16777215&&(e=s>>>8|0,e<<=i=e+1048320>>>16&8,e=28+((e=((e<<=r=e+520192>>>16&4)<<(n=e+245760>>>16&2)>>>15|0)-(n|r|i)|0)<<1|s>>>e+21&1)|0),f[_+28>>2]=e,f[_+16>>2]=0,f[_+20>>2]=0,i=1920+(e<<2)|0,(r=f[405])&(n=1<<e)){for(e=s<<(31==(0|e)?0:25-(e>>>1|0)|0),n=f[i>>2];;){if(r=n,(-8&f[n+4>>2])==(0|s))break a;if(n=e>>>29|0,e<<=1,!(n=f[16+(i=r+(4&n)|0)>>2]))break}f[i+16>>2]=_,f[_+24>>2]=r}else f[405]=n|r,f[i>>2]=_,f[_+24>>2]=i;f[_+12>>2]=_,f[_+8>>2]=_;break f}for(r=(i=o-40|0)-(e=n+8&7?-8-n&7:0)|0,f[407]=r,e=e+n|0,f[410]=e,f[e+4>>2]=1|r,f[4+(n+i|0)>>2]=40,f[411]=f[526],f[(r=(e=(u+(u-39&7?39-u&7:0)|0)-47|0)>>>0<p+16>>>0?p:e)+4>>2]=27,e=f[519],f[r+16>>2]=f[518],f[r+20>>2]=e,e=f[517],f[r+8>>2]=f[516],f[r+12>>2]=e,f[518]=r+8,f[517]=o,f[516]=n,f[519]=0,e=r+24|0;f[e+4>>2]=7,n=e+8|0,e=e+4|0,n>>>0<u>>>0;);if((0|r)==(0|p))break i;if(f[r+4>>2]=-2&f[r+4>>2],u=r-p|0,f[p+4>>2]=1|u,f[r>>2]=u,u>>>0<=255){n=1656+((e=u>>>3|0)<<3)|0,(r=f[404])&(e=1<<e)?e=f[n+8>>2]:(f[404]=e|r,e=n),f[n+8>>2]=p,f[e+12>>2]=p,f[p+12>>2]=n,f[p+8>>2]=e;break i}if(e=31,f[p+16>>2]=0,f[p+20>>2]=0,u>>>0<=16777215&&(e=u>>>8|0,e<<=i=e+1048320>>>16&8,e=28+((e=((e<<=r=e+520192>>>16&4)<<(n=e+245760>>>16&2)>>>15|0)-(n|r|i)|0)<<1|u>>>e+21&1)|0),f[p+28>>2]=e,i=1920+(e<<2)|0,(r=f[405])&(n=1<<e)){for(e=u<<(31==(0|e)?0:25-(e>>>1|0)|0),n=f[i>>2];;){if(r=n,(0|u)==(-8&f[n+4>>2]))break o;if(n=e>>>29|0,e<<=1,!(n=f[16+(i=r+(4&n)|0)>>2]))break}f[i+16>>2]=p,f[p+24>>2]=r}else f[405]=n|r,f[i>>2]=p,f[p+24>>2]=i;f[p+12>>2]=p,f[p+8>>2]=p;break i}e=f[r+8>>2],f[e+12>>2]=_,f[r+8>>2]=_,f[_+24>>2]=0,f[_+12>>2]=r,f[_+8>>2]=e}e=A+8|0;break e}e=f[r+8>>2],f[e+12>>2]=p,f[r+8>>2]=p,f[p+24>>2]=0,f[p+12>>2]=r,f[p+8>>2]=e}if(!((e=f[407])>>>0<=s>>>0)){n=e-s|0,f[407]=n,e=(r=f[410])+s|0,f[410]=e,f[e+4>>2]=1|n,f[r+4>>2]=3|s,e=r+8|0;break e}}f[403]=48,e=0;break e}n:if(o){r=f[u+28>>2];r:{if(f[(e=1920+(r<<2)|0)>>2]==(0|u)){if(f[e>>2]=n,n)break r;_=j(r)&_,f[405]=_;break n}if(f[o+(f[o+16>>2]==(0|u)?16:20)>>2]=n,!n)break n}f[n+24>>2]=o,(e=f[u+16>>2])&&(f[n+16>>2]=e,f[e+24>>2]=n),(e=f[u+20>>2])&&(f[n+20>>2]=e,f[e+24>>2]=n)}n:if(i>>>0<=15)e=i+s|0,f[u+4>>2]=3|e,f[4+(e=e+u|0)>>2]=1|f[e+4>>2];else if(f[u+4>>2]=3|s,f[4+(o=u+s|0)>>2]=1|i,f[o+i>>2]=i,i>>>0<=255)n=1656+((e=i>>>3|0)<<3)|0,(r=f[404])&(e=1<<e)?e=f[n+8>>2]:(f[404]=e|r,e=n),f[n+8>>2]=o,f[e+12>>2]=o,f[o+12>>2]=n,f[o+8>>2]=e;else{e=31,i>>>0<=16777215&&(e=i>>>8|0,e<<=A=e+1048320>>>16&8,e=28+((e=((e<<=r=e+520192>>>16&4)<<(n=e+245760>>>16&2)>>>15|0)-(n|r|A)|0)<<1|i>>>e+21&1)|0),f[o+28>>2]=e,f[o+16>>2]=0,f[o+20>>2]=0,n=1920+(e<<2)|0;r:{if((r=1<<e)&_){for(e=i<<(31==(0|e)?0:25-(e>>>1|0)|0),r=f[n>>2];;){if((-8&f[(n=r)+4>>2])==(0|i))break r;if(r=e>>>29|0,e<<=1,!(r=f[16+(A=(4&r)+n|0)>>2]))break}f[A+16>>2]=o}else f[405]=r|_,f[n>>2]=o;f[o+24>>2]=n,f[o+12>>2]=o,f[o+8>>2]=o;break n}e=f[n+8>>2],f[e+12>>2]=o,f[n+8>>2]=o,f[o+24>>2]=0,f[o+12>>2]=n,f[o+8>>2]=e}e=u+8|0;break e}t:if(_){r=f[n+28>>2];n:{if(f[(e=1920+(r<<2)|0)>>2]==(0|n)){if(f[e>>2]=u,u)break n;f[405]=j(r)&p;break t}if(f[_+(f[_+16>>2]==(0|n)?16:20)>>2]=u,!u)break t}f[u+24>>2]=_,(e=f[n+16>>2])&&(f[u+16>>2]=e,f[e+24>>2]=u),(e=f[n+20>>2])&&(f[u+20>>2]=e,f[e+24>>2]=u)}i>>>0<=15?(e=i+s|0,f[n+4>>2]=3|e,f[4+(e=e+n|0)>>2]=1|f[e+4>>2]):(f[n+4>>2]=3|s,f[4+(u=n+s|0)>>2]=1|i,f[i+u>>2]=i,l&&(r=1656+((e=l>>>3|0)<<3)|0,A=f[409],(e=1<<e)&o?e=f[r+8>>2]:(f[404]=e|o,e=r),f[r+8>>2]=A,f[e+12>>2]=A,f[A+12>>2]=r,f[A+8>>2]=e),f[409]=u,f[406]=i),e=n+8|0}return y=t+16|0,0|e}function m(e){var t=0,n=0,r=0,i=0,o=0,a=0,u=0;e:if(e){o=(r=e-8|0)+(e=-8&(t=f[e-4>>2]))|0;t:if(!(1&t)){if(!(3&t))break e;if((r=r-(t=f[r>>2])|0)>>>0<c[408])break e;if(e=e+t|0,f[409]==(0|r)){if(3==(3&(t=f[o+4>>2])))return f[406]=e,f[o+4>>2]=-2&t,f[r+4>>2]=1|e,void(f[e+r>>2]=e)}else{if(t>>>0<=255){if(i=f[r+8>>2],t=t>>>3|0,(0|(n=f[r+12>>2]))==(0|i)){f[404]=f[404]&j(t);break t}f[i+12>>2]=n,f[n+8>>2]=i;break t}if(u=f[r+24>>2],(0|r)==(0|(t=f[r+12>>2])))if((n=f[(i=r+20|0)>>2])||(n=f[(i=r+16|0)>>2])){for(;a=i,(n=f[(i=(t=n)+20|0)>>2])||(i=t+16|0,n=f[t+16>>2]););f[a>>2]=0}else t=0;else n=f[r+8>>2],f[n+12>>2]=t,f[t+8>>2]=n;if(!u)break t;i=f[r+28>>2];n:{if(f[(n=1920+(i<<2)|0)>>2]==(0|r)){if(f[n>>2]=t,t)break n;f[405]=f[405]&j(i);break t}if(f[u+(f[u+16>>2]==(0|r)?16:20)>>2]=t,!t)break t}if(f[t+24>>2]=u,(n=f[r+16>>2])&&(f[t+16>>2]=n,f[n+24>>2]=t),!(n=f[r+20>>2]))break t;f[t+20>>2]=n,f[n+24>>2]=t}}if(!(r>>>0>=o>>>0)&&1&(t=f[o+4>>2])){t:{if(!(2&t)){if(f[410]==(0|o)){if(f[410]=r,e=f[407]+e|0,f[407]=e,f[r+4>>2]=1|e,f[409]!=(0|r))break e;return f[406]=0,void(f[409]=0)}if(f[409]==(0|o))return f[409]=r,e=f[406]+e|0,f[406]=e,f[r+4>>2]=1|e,void(f[e+r>>2]=e);e=(-8&t)+e|0;n:if(t>>>0<=255){if(i=f[o+8>>2],t=t>>>3|0,(0|(n=f[o+12>>2]))==(0|i)){f[404]=f[404]&j(t);break n}f[i+12>>2]=n,f[n+8>>2]=i}else{if(u=f[o+24>>2],(0|o)==(0|(t=f[o+12>>2])))if((n=f[(i=o+20|0)>>2])||(n=f[(i=o+16|0)>>2])){for(;a=i,(n=f[(i=(t=n)+20|0)>>2])||(i=t+16|0,n=f[t+16>>2]););f[a>>2]=0}else t=0;else n=f[o+8>>2],f[n+12>>2]=t,f[t+8>>2]=n;if(u){i=f[o+28>>2];r:{if(f[(n=1920+(i<<2)|0)>>2]==(0|o)){if(f[n>>2]=t,t)break r;f[405]=f[405]&j(i);break n}if(f[u+(f[u+16>>2]==(0|o)?16:20)>>2]=t,!t)break n}f[t+24>>2]=u,(n=f[o+16>>2])&&(f[t+16>>2]=n,f[n+24>>2]=t),(n=f[o+20>>2])&&(f[t+20>>2]=n,f[n+24>>2]=t)}}if(f[r+4>>2]=1|e,f[e+r>>2]=e,f[409]!=(0|r))break t;return void(f[406]=e)}f[o+4>>2]=-2&t,f[r+4>>2]=1|e,f[e+r>>2]=e}if(e>>>0<=255)return t=1656+((e=e>>>3|0)<<3)|0,(n=f[404])&(e=1<<e)?e=f[t+8>>2]:(f[404]=e|n,e=t),f[t+8>>2]=r,f[e+12>>2]=r,f[r+12>>2]=t,void(f[r+8>>2]=e);i=31,f[r+16>>2]=0,f[r+20>>2]=0,e>>>0<=16777215&&(t=e>>>8|0,t<<=a=t+1048320>>>16&8,i=28+((t=((t<<=i=t+520192>>>16&4)<<(n=t+245760>>>16&2)>>>15|0)-(n|i|a)|0)<<1|e>>>t+21&1)|0),f[r+28>>2]=i,a=1920+(i<<2)|0;t:{n:{if((n=f[405])&(t=1<<i)){for(i=e<<(31==(0|i)?0:25-(i>>>1|0)|0),t=f[a>>2];;){if(n=t,(-8&f[t+4>>2])==(0|e))break n;if(t=i>>>29|0,i<<=1,!(t=f[16+(a=n+(4&t)|0)>>2]))break}f[a+16>>2]=r,f[r+24>>2]=n}else f[405]=t|n,f[a>>2]=r,f[r+24>>2]=a;f[r+12>>2]=r,f[r+8>>2]=r;break t}e=f[n+8>>2],f[e+12>>2]=r,f[n+8>>2]=r,f[r+24>>2]=0,f[r+12>>2]=n,f[r+8>>2]=e}e=f[412]-1|0,f[412]=e||-1}}}function k(e,t,n){var i,o=0,c=0;if(n>>>0>=512)return l(0|e,0|t,0|n),e;i=e+n|0;e:if(3&(e^t))if(i>>>0<4)n=e;else if((o=i-4|0)>>>0<e>>>0)n=e;else for(n=e;r[0|n]=a[0|t],r[n+1|0]=a[t+1|0],r[n+2|0]=a[t+2|0],r[n+3|0]=a[t+3|0],t=t+4|0,o>>>0>=(n=n+4|0)>>>0;);else{t:if(3&e)if(n)for(n=e;;){if(r[0|n]=a[0|t],t=t+1|0,!(3&(n=n+1|0)))break t;if(!(n>>>0<i>>>0))break}else n=e;else n=e;if(!((o=-4&i)>>>0<64||(c=o+-64|0)>>>0<n>>>0))for(;f[n>>2]=f[t>>2],f[n+4>>2]=f[t+4>>2],f[n+8>>2]=f[t+8>>2],f[n+12>>2]=f[t+12>>2],f[n+16>>2]=f[t+16>>2],f[n+20>>2]=f[t+20>>2],f[n+24>>2]=f[t+24>>2],f[n+28>>2]=f[t+28>>2],f[n+32>>2]=f[t+32>>2],f[n+36>>2]=f[t+36>>2],f[n+40>>2]=f[t+40>>2],f[n+44>>2]=f[t+44>>2],f[n+48>>2]=f[t+48>>2],f[n+52>>2]=f[t+52>>2],f[n+56>>2]=f[t+56>>2],f[n+60>>2]=f[t+60>>2],t=t- -64|0,c>>>0>=(n=n- -64|0)>>>0;);if(n>>>0>=o>>>0)break e;for(;f[n>>2]=f[t>>2],t=t+4|0,o>>>0>(n=n+4|0)>>>0;);}if(n>>>0<i>>>0)for(;r[0|n]=a[0|t],t=t+1|0,(0|i)!=(0|(n=n+1|0)););return e}function v(e,t){var n=0;if(t&&(r[0|e]=0,r[(n=e+t|0)-1|0]=0,!(t>>>0<3||(r[e+2|0]=0,r[e+1|0]=0,r[n-3|0]=0,r[n-2|0]=0,t>>>0<7||(r[e+3|0]=0,r[n-4|0]=0,t>>>0<9||(f[(e=(n=0-e&3)+e|0)>>2]=0,f[(t=(n=t-n&-4)+e|0)-4>>2]=0,n>>>0<9||(f[e+8>>2]=0,f[e+4>>2]=0,f[t-8>>2]=0,f[t-12>>2]=0,n>>>0<25||(f[e+24>>2]=0,f[e+20>>2]=0,f[e+16>>2]=0,f[e+12>>2]=0,f[t-16>>2]=0,f[t-20>>2]=0,f[t-24>>2]=0,f[t-28>>2]=0,(t=(t=n)-(n=4&e|24)|0)>>>0<32))))))))for(e=e+n|0;f[e+24>>2]=0,f[e+28>>2]=0,f[e+16>>2]=0,f[e+20>>2]=0,f[e+8>>2]=0,f[e+12>>2]=0,f[e>>2]=0,f[e+4>>2]=0,e=e+32|0,(t=t-32|0)>>>0>31;);}function M(e){var t,n=0,r=0,i=0;t=0|d(8),f[t>>2]=1348,f[t>>2]=1392;e:{t:{if(3&(n=e))for(;;){if(!a[0|n])break t;if(!(3&(n=n+1|0)))break}for(;r=n,n=n+4|0,!((-1^(i=f[r>>2]))&i-16843009&-2139062144););if(n=r-e|0,!(255&i))break e;for(;i=a[r+1|0],r=n=r+1|0,i;);}n=n-e|0}r=P(n+13|0),f[r+8>>2]=0,f[r+4>>2]=n,f[r>>2]=n,f[t+4>>2]=k(r+12|0,e,n+1|0),f[t>>2]=1440,b(0|t,1472,1),p()}function w(e,t,n,i){r[e+53|0]=1;e:if(f[e+4>>2]==(0|n)){r[e+52|0]=1,n=f[e+16>>2];t:{if(!n){if(f[e+36>>2]=1,f[e+24>>2]=i,f[e+16>>2]=t,1!=(0|i))break e;if(1==f[e+48>>2])break t;break e}if((0|t)==(0|n)){if(2==(0|(n=f[e+24>>2]))&&(f[e+24>>2]=i,n=i),1!=f[e+48>>2])break e;if(1==(0|n))break t;break e}f[e+36>>2]=f[e+36>>2]+1}r[e+54|0]=1}}function g(e,t,n){var r=0;if(!n)return f[e+4>>2]==f[t+4>>2];if((0|e)==(0|t))return 1;r=f[e+4>>2],e=a[0|r],n=f[t+4>>2],t=a[0|n];e:if(!(!e|(0|t)!=(0|e)))for(;;){if(t=a[n+1|0],!(e=a[r+1|0]))break e;if(n=n+1|0,r=r+1|0,(0|e)!=(0|t))break}return(0|e)==(0|t)}function G(e,t,n){var i;if(!(i=f[e+16>>2]))return f[e+36>>2]=1,f[e+24>>2]=n,void(f[e+16>>2]=t);e:{if((0|t)==(0|i)){if(2!=f[e+24>>2])break e;return void(f[e+24>>2]=n)}r[e+54|0]=1,f[e+24>>2]=2,f[e+36>>2]=f[e+36>>2]+1}}function C(e){var t,r;return(e=(t=f[377])+(r=e+3&-4)|0)>>>0<=t>>>0&&r||e>>>0>(n.byteLength/65536|0)<<16>>>0&&!(0|_(0|e))?(f[403]=48,-1):(f[377]=e,t)}function P(e){var t=0;e=e||1;e:{for(;;){if(t=h(e))break e;if(!(t=f[528]))break;U[0|t]()}A(),p()}return t}function x(e){var t,n;return f[(e|=0)>>2]=1392,t=f[e+4>>2]-12|0,n=f[t+8>>2]-1|0,f[t+8>>2]=n,(0|n)<0&&m(t),0|e}function j(e){var t;return(-1>>>(t=31&e)&-2)<<t|(-1<<(e=0-e&31)&-2)>>>e}function I(e){(e|=0)&&m(e)}function E(e){x(e|=0),m(e)}function R(e){return 0|(e|=0)}function B(e){m(e|=0)}function O(e){}i(t=a,1024,"dmVjdG9yAHN0ZDo6ZXhjZXB0aW9uAGFsbG9jYXRvcjxUPjo6YWxsb2NhdGUoc2l6ZV90IG4pICduJyBleGNlZWRzIG1heGltdW0gc3VwcG9ydGVkIHNpemUATjEwX19jeHhhYml2MTE2X19zaGltX3R5cGVfaW5mb0UAAOgEAABaBAAA3AUAAE4xMF9fY3h4YWJpdjExN19fY2xhc3NfdHlwZV9pbmZvRQAAAOgEAACIBAAAfAQAAAAAAACsBAAAAgAAAAMAAAAEAAAABQAAAAYAAAAHAAAACAAAAAkAAAAAAAAAMAUAAAIAAAAKAAAABAAAAAUAAAAGAAAACwAAAAwAAAANAAAATjEwX19jeHhhYml2MTIwX19zaV9jbGFzc190eXBlX2luZm9FAAAAAOgEAAAIBQAArAQAAAAAAABgBQAADgAAAA8AAAAQAAAAU3Q5ZXhjZXB0aW9uAAAAAMAEAABQBQAAAAAAAIwFAAABAAAAEQAAABIAAABTdDExbG9naWNfZXJyb3IA6AQAAHwFAABgBQAAAAAAAMAFAAABAAAAEwAAABIAAABTdDEybGVuZ3RoX2Vycm9yAAAAAOgEAACsBQAAjAUAAFN0OXR5cGVfaW5mbwAAAADABAAAzAU="),i(t,1508,"UAhQ");var T,U=((T=[null,x,R,B,O,O,function(e,t,n){n|=0;var r,i=0,o=0,a=0,c=0;if(y=r=y+-64|0,i=1,!g(e|=0,t|=0,0)&&(i=0,t)){y=i=y+-64|0,o=f[t>>2],a=f[o-4>>2],c=f[o-8>>2],f[i+20>>2]=0,f[i+16>>2]=1148,f[i+12>>2]=t,f[i+8>>2]=1196,o=0,v(i+24|0,39),t=t+c|0;e:if(g(a,1196,0))f[i+56>>2]=1,U[f[f[a>>2]+20>>2]](a,i+8|0,t,t,1,0),o=1==f[i+32>>2]?t:0;else{U[f[f[a>>2]+24>>2]](a,i+8|0,t,1,0);t:switch(f[i+44>>2]){case 0:o=1==f[i+48>>2]&&1==f[i+36>>2]&&1==f[i+40>>2]?f[i+28>>2]:0;break e;case 1:break t;default:break e}1!=f[i+32>>2]&&f[i+48>>2]|1!=f[i+36>>2]|1!=f[i+40>>2]||(o=f[i+24>>2])}y=i- -64|0,i=0,o&&(v(4|(t=r+8|0),52),f[r+56>>2]=1,f[r+20>>2]=-1,f[r+16>>2]=e,f[r+8>>2]=o,U[f[f[o>>2]+28>>2]](o,t,f[n>>2],1),1==(0|(e=f[r+32>>2]))&&(f[n>>2]=f[r+24>>2]),i=1==(0|e))}return y=r- -64|0,0|i},function(e,t,n,r,i,o){n|=0,r|=0,i|=0,o|=0,g(e|=0,f[8+(t|=0)>>2],o)&&w(t,n,r,i)},function(e,t,n,i,o){if(n|=0,i|=0,o|=0,g(e|=0,f[8+(t|=0)>>2],o))1==f[t+28>>2]|f[t+4>>2]!=(0|n)||(f[t+28>>2]=i);else e:if(g(e,f[t>>2],o)){if(!(f[t+16>>2]!=(0|n)&f[t+20>>2]!=(0|n))){if(1!=(0|i))break e;return void(f[t+32>>2]=1)}f[t+20>>2]=n,f[t+32>>2]=i,f[t+40>>2]=f[t+40>>2]+1,1!=f[t+36>>2]|2!=f[t+24>>2]||(r[t+54|0]=1),f[t+44>>2]=4}},function(e,t,n,r){n|=0,r|=0,g(e|=0,f[8+(t|=0)>>2],0)&&G(t,n,r)},B,function(e,t,n,r,i,o){n|=0,r|=0,i|=0,o|=0,g(e|=0,f[8+(t|=0)>>2],o)?w(t,n,r,i):(e=f[e+8>>2],U[f[f[e>>2]+20>>2]](e,t,n,r,i,o))},function(e,t,n,i,c){if(n|=0,i|=0,c|=0,g(e|=0,f[8+(t|=0)>>2],c))1==f[t+28>>2]|f[t+4>>2]!=(0|n)||(f[t+28>>2]=i);else e:{if(g(e,f[t>>2],c)){if(!(f[t+16>>2]!=(0|n)&f[t+20>>2]!=(0|n))){if(1!=(0|i))break e;return void(f[t+32>>2]=1)}f[t+32>>2]=i;t:if(4!=f[t+44>>2]){if(o[t+52>>1]=0,e=f[e+8>>2],U[f[f[e>>2]+20>>2]](e,t,n,n,1,c),a[t+53|0]){if(f[t+44>>2]=3,!a[t+52|0])break t;break e}f[t+44>>2]=4}if(f[t+20>>2]=n,f[t+40>>2]=f[t+40>>2]+1,1!=f[t+36>>2]|2!=f[t+24>>2])break e;return void(r[t+54|0]=1)}e=f[e+8>>2],U[f[f[e>>2]+24>>2]](e,t,n,i,c)}},function(e,t,n,r){n|=0,r|=0,g(e|=0,f[8+(t|=0)>>2],0)?G(t,n,r):(e=f[e+8>>2],U[f[f[e>>2]+28>>2]](e,t,n,r))},R,B,function(e){return 1031},E,function(e){return f[4+(e|=0)>>2]},E]).grow=function(e){var t=this.length;return this.length=this.length+e,t},T.set=function(e,t){this[e]=t},T.get=function(e){return this[e]},T);return{g:function(){},h:I,i:function(){var e;return e=P(24),f[e>>2]=0,f[e+4>>2]=0,f[e+16>>2]=0,f[e+20>>2]=0,f[e+8>>2]=0,f[e+12>>2]=0,0|e},j:function(e,t,n){var r;return e=+e,t=+t,n=+n,r=P(24),u[r+16>>3]=n,u[r+8>>3]=t,u[r>>3]=e,0|r},k:function(e,t){t|=0,u[(e|=0)>>3]=u[e>>3]+u[t>>3],u[e+8>>3]=u[e+8>>3]+u[t+8>>3],u[e+16>>3]=u[e+16>>3]+u[t+16>>3]},l:function(e,t){t|=0,u[(e|=0)>>3]=u[e>>3]-u[t>>3],u[e+8>>3]=u[e+8>>3]-u[t+8>>3],u[e+16>>3]=u[e+16>>3]-u[t+16>>3]},m:function(e){return+u[(e|=0)>>3]},n:function(e,t){t=+t,u[(e|=0)>>3]=t},o:function(e){return+u[8+(e|=0)>>3]},p:function(e,t){t=+t,u[8+(e|=0)>>3]=t},q:function(e){return+u[16+(e|=0)>>3]},r:function(e,t){t=+t,u[16+(e|=0)>>3]=t},s:I,t:function(){var e;return e=P(12),f[e+8>>2]=0,f[e>>2]=0,f[e+4>>2]=0,0|e},u:function(e,t){t|=0;var n=0,r=0,i=0,o=0,a=0,c=0;e:if((0|(n=f[4+(e|=0)>>2]))==f[e+8>>2]){t:{if((i=1+(n=(0|(c=n-(r=f[e>>2])|0))/24|0)|0)>>>0<178956971){if(o=n<<1,i=n>>>0<89478485?i>>>0<o>>>0?o:i:178956970){if(i>>>0>=178956971)break t;o=P(s(i,24))}else o=0;n=o+s(n,24)|0,a=f[t+4>>2],f[n>>2]=f[t>>2],f[n+4>>2]=a,a=f[t+20>>2],f[n+16>>2]=f[t+16>>2],f[n+20>>2]=a,a=f[t+12>>2],f[n+8>>2]=f[t+8>>2],f[n+12>>2]=a,t=n+s((0|c)/-24|0,24)|0,(0|c)>0&&k(t,r,c),f[e+8>>2]=o+s(i,24),f[e+4>>2]=n+24,f[e>>2]=t,r&&m(r);break e}M(1024),p()}M(1046),p()}else r=f[t+4>>2],f[n>>2]=f[t>>2],f[n+4>>2]=r,r=f[t+20>>2],f[n+16>>2]=f[t+16>>2],f[n+20>>2]=r,r=f[t+12>>2],f[n+8>>2]=f[t+8>>2],f[n+12>>2]=r,f[e+4>>2]=n+24},v:function(e){var t=0;(e|=0)&&((t=f[e>>2])&&(f[e+4>>2]=t,m(t)),m(e))},w:function(){return 0|P(1)},x:function(e,t){e|=0;var n=0,r=0,i=0,o=0,a=0,c=0,p=0,_=0,A=0,l=0,b=0,d=0;if(e=f[(t|=0)>>2],(r=(0|(i=f[t+4>>2]-e|0))/24|0)>>>0>=2){if(!(i-24>>>0<24)){if(n=u[e+8>>3],t=1,b=1&(r=r-1|0),a=u[e>>3],i-48>>>0<24)c=n;else for(d=-2&r,r=0,p=a,_=n;i=e+s(t,24)|0,o=.5*((a=u[i+24>>3])-(A=u[i>>3]))*((l=u[i+8>>3]-n)+((c=u[i+32>>3])-n))+(.5*(A-p)*(_-n+l)+o),t=t+2|0,p=a,_=c,(0|d)!=(0|(r=r+2|0)););b&&(e=e+s(t,24)|0,o=.5*(u[e>>3]-a)*(c-n+(u[e+8>>3]-n))+o)}n=o<0?-o:o}else n=0;return+n},y:function(e,t,n){e|=0,t|=0;var r,i=0,o=0,a=0,c=0,p=0,_=0,A=0;if((r=((e=f[4+(n|=0)>>2])-(n=f[n>>2])|0)/24|0)>>>0>=3)for(e=r-1|0,i=u[t+8>>3],A=u[t>>3],t=0;c=n+s(e,24)|0,a=u[c+8>>3],e=t,t=n+s(t,24)|0,!(i<a&(o=u[t+8>>3])<=i)&(!(i>=a)|!(i<o))||A-(p=u[t>>3])<(i-o)*(u[c>>3]-p)/(a-o)&&(_^=1),(0|r)!=(0|(t=e+1|0)););return 1&_},z:I,A:U,B:h}}(e)}(L)}Object.assign(n,p),p=null,n.wasmBinary&&(d=n.wasmBinary),n.noExitRuntime;var m=Error,k={};d=[],"object"!=typeof k&&F("no native wasm support detected");var v,M,w,g,G,C=!1,P=n.INITIAL_MEMORY||16777216;(v=n.wasmMemory?n.wasmMemory:new function(){this.buffer=new ArrayBuffer(P/65536*65536)})&&(M=v.buffer),P=M.byteLength;var x=M;M=x,n.HEAP8=w=new Int8Array(x),n.HEAP16=new Int16Array(x),n.HEAP32=G=new Int32Array(x),n.HEAPU8=g=new Uint8Array(x),n.HEAPU16=new Uint16Array(x),n.HEAPU32=new Uint32Array(x),n.HEAPF32=new Float32Array(x),n.HEAPF64=new Float64Array(x);var j,I=[],E=[],R=[];function B(){var e=n.preRun.shift();I.unshift(e)}var O=0,T=null,U=null;function F(e){throw n.onAbort&&n.onAbort(e),y(e="Aborted("+e+")"),C=!0,e=new m(e+". Build with -s ASSERTIONS=1 for more info."),i(e),e}n.preloadedImages={},n.preloadedAudios={};var S,z="data:application/octet-stream;base64,";if(!(S="mxcadassembly_min.wasm").startsWith(z)){var H=S;S=n.locateFile?n.locateFile(H,b):b+H}function W(){var e=S;try{if(e==S&&d)return new Uint8Array(d);var t=Z(e);if(t)return t;if(a)return a(e);throw"both async and sync fetching of the wasm failed"}catch(e){F(e)}}function D(e){for(;0<e.length;){var t=e.shift();if("function"==typeof t)t(n);else{var r=t.U;"number"==typeof r?void 0===t.G?Q(r)():Q(r)(t.G):r(void 0===t.G?null:t.G)}}}var X=[];function Q(e){var t=X[e];return t||(e>=X.length&&(X.length=e+1),X[e]=t=j.get(e)),t}var N=!1,V="function"==typeof atob?atob:function(e){var t="",n=0;e=e.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(n++)),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(n++)),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(n++)),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(n++));r=r<<2|i>>4,i=(15&i)<<4|o>>2;var a=(3&o)<<6|f;t+=String.fromCharCode(r),64!==o&&(t+=String.fromCharCode(i)),64!==f&&(t+=String.fromCharCode(a))}while(n<e.length);return t};function Z(e){if(e.startsWith(z)){if(e=e.slice(z.length),"boolean"==typeof l&&l){var t=Buffer.from(e,"base64");t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}else try{var n=V(e),r=new Uint8Array(n.length);for(e=0;e<n.length;++e)r[e]=n.charCodeAt(e);t=r}catch(e){throw Error("Converting base64 string to bytes failed.")}return t}}var L={f:function(e){return be(e+16)+16},e:function(e,t,n){throw new function(e){this.C=e-16,this.P=function(e){G[this.C+4>>2]=e},this.M=function(e){G[this.C+8>>2]=e},this.N=function(){G[this.C>>2]=0},this.L=function(){w[this.C+12>>0]=0},this.O=function(){w[this.C+13>>0]=0},this.K=function(e,t){this.P(e),this.M(t),this.N(),this.L(),this.O()}}(e).K(t,n),e},c:function(){F("")},d:function(e,t,n){g.copyWithin(e,t,t+n)},b:function(){F("OOM")},a:v};!function(){function e(e){n.asm=e.exports,j=n.asm.A,E.unshift(n.asm.g),O--,n.monitorRunDependencies&&n.monitorRunDependencies(O),0==O&&(null!==T&&(clearInterval(T),T=null),U&&(e=U,U=null,e()))}function t(t){e(t.instance)}function r(e){return function(){if(!d&&(_||A)){if("function"==typeof fetch&&!S.startsWith("file://"))return fetch(S,{credentials:"same-origin"}).then(function(e){if(!e.ok)throw"failed to load wasm binary file at '"+S+"'";return e.arrayBuffer()}).catch(function(){return W()});if(f)return new Promise(function(e,t){f(S,function(t){e(new Uint8Array(t))},t)})}return Promise.resolve().then(function(){return W()})}().then(function(){return{then:function(e){e({instance:new h})}}}).then(function(e){return e}).then(e,function(e){y("failed to asynchronously prepare wasm: "+e),F(e)})}var o={a:L};if(O++,n.monitorRunDependencies&&n.monitorRunDependencies(O),n.instantiateWasm)try{return n.instantiateWasm(o,e)}catch(e){return y("Module.instantiateWasm callback failed with error: "+e),!1}(d||"function"!=typeof k.instantiateStreaming||S.startsWith(z)||S.startsWith("file://")||"function"!=typeof fetch?r(t):fetch(S,{credentials:"same-origin"}).then(function(e){return k.instantiateStreaming(e,o).then(t,function(e){return y("wasm streaming compile failed: "+e),y("falling back to ArrayBuffer instantiation"),r(t)})})).catch(i)}(),n.___wasm_call_ctors=function(){return(n.___wasm_call_ctors=n.asm.g).apply(null,arguments)};var Y,q=n._emscripten_bind_VoidPtr___destroy___0=function(){return(q=n._emscripten_bind_VoidPtr___destroy___0=n.asm.h).apply(null,arguments)},J=n._emscripten_bind_McGePoint3d_McGePoint3d_0=function(){return(J=n._emscripten_bind_McGePoint3d_McGePoint3d_0=n.asm.i).apply(null,arguments)},K=n._emscripten_bind_McGePoint3d_McGePoint3d_3=function(){return(K=n._emscripten_bind_McGePoint3d_McGePoint3d_3=n.asm.j).apply(null,arguments)},$=n._emscripten_bind_McGePoint3d_op_add_1=function(){return($=n._emscripten_bind_McGePoint3d_op_add_1=n.asm.k).apply(null,arguments)},ee=n._emscripten_bind_McGePoint3d_op_sub_1=function(){return(ee=n._emscripten_bind_McGePoint3d_op_sub_1=n.asm.l).apply(null,arguments)},te=n._emscripten_bind_McGePoint3d_get_x_0=function(){return(te=n._emscripten_bind_McGePoint3d_get_x_0=n.asm.m).apply(null,arguments)},ne=n._emscripten_bind_McGePoint3d_set_x_1=function(){return(ne=n._emscripten_bind_McGePoint3d_set_x_1=n.asm.n).apply(null,arguments)},re=n._emscripten_bind_McGePoint3d_get_y_0=function(){return(re=n._emscripten_bind_McGePoint3d_get_y_0=n.asm.o).apply(null,arguments)},ie=n._emscripten_bind_McGePoint3d_set_y_1=function(){return(ie=n._emscripten_bind_McGePoint3d_set_y_1=n.asm.p).apply(null,arguments)},oe=n._emscripten_bind_McGePoint3d_get_z_0=function(){return(oe=n._emscripten_bind_McGePoint3d_get_z_0=n.asm.q).apply(null,arguments)},fe=n._emscripten_bind_McGePoint3d_set_z_1=function(){return(fe=n._emscripten_bind_McGePoint3d_set_z_1=n.asm.r).apply(null,arguments)},ae=n._emscripten_bind_McGePoint3d___destroy___0=function(){return(ae=n._emscripten_bind_McGePoint3d___destroy___0=n.asm.s).apply(null,arguments)},ce=n._emscripten_bind_McGePoint3dArray_McGePoint3dArray_0=function(){return(ce=n._emscripten_bind_McGePoint3dArray_McGePoint3dArray_0=n.asm.t).apply(null,arguments)},ue=n._emscripten_bind_McGePoint3dArray_append_1=function(){return(ue=n._emscripten_bind_McGePoint3dArray_append_1=n.asm.u).apply(null,arguments)},se=n._emscripten_bind_McGePoint3dArray___destroy___0=function(){return(se=n._emscripten_bind_McGePoint3dArray___destroy___0=n.asm.v).apply(null,arguments)},pe=n._emscripten_bind_McGeTool_McGeTool_0=function(){return(pe=n._emscripten_bind_McGeTool_McGeTool_0=n.asm.w).apply(null,arguments)},_e=n._emscripten_bind_McGeTool_calcArea_1=function(){return(_e=n._emscripten_bind_McGeTool_calcArea_1=n.asm.x).apply(null,arguments)},Ae=n._emscripten_bind_McGeTool_pointInPolyline_2=function(){return(Ae=n._emscripten_bind_McGeTool_pointInPolyline_2=n.asm.y).apply(null,arguments)},le=n._emscripten_bind_McGeTool___destroy___0=function(){return(le=n._emscripten_bind_McGeTool___destroy___0=n.asm.z).apply(null,arguments)},be=n._malloc=function(){return(be=n._malloc=n.asm.B).apply(null,arguments)};function de(){function e(){if(!Y&&(Y=!0,n.calledRun=!0,!C)){if(D(E),r(n),n.onRuntimeInitialized&&n.onRuntimeInitialized(),n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;){var e=n.postRun.shift();R.unshift(e)}D(R)}}if(!(0<O)){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)B();D(I),0<O||(n.setStatus?(n.setStatus("Running..."),setTimeout(function(){setTimeout(function(){n.setStatus("")},1),e()},1)):e())}}if(U=function e(){Y||de(),Y||(U=e)},n.run=de,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);0<n.preInit.length;)n.preInit.pop()();function ye(){}function he(e){return(e||ye).F}function me(e,t){var n=he(t),r=n[e];return r||((r=Object.create((t||ye).prototype)).C=e,n[e]=r)}function ke(){throw"cannot construct a VoidPtr, no constructor in IDL"}function ve(e,t,n){e&&"object"==typeof e&&(e=e.C),t&&"object"==typeof t&&(t=t.C),n&&"object"==typeof n&&(n=n.C),this.C=void 0===e?J():void 0===t?_emscripten_bind_McGePoint3d_McGePoint3d_1(e):void 0===n?_emscripten_bind_McGePoint3d_McGePoint3d_2(e,t):K(e,t,n),he(ve)[this.C]=this}function Me(){this.C=ce(),he(Me)[this.C]=this}function we(){this.C=pe(),he(we)[this.C]=this}return de(),ye.prototype=Object.create(ye.prototype),ye.prototype.constructor=ye,ye.prototype.D=ye,ye.F={},n.WrapperObject=ye,n.getCache=he,n.wrapPointer=me,n.castObject=function(e,t){return me(e.C,t)},n.NULL=me(0),n.destroy=function(e){if(!e.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";e.__destroy__(),delete he(e.D)[e.C]},n.compare=function(e,t){return e.C===t.C},n.getPointer=function(e){return e.C},n.getClass=function(e){return e.D},ke.prototype=Object.create(ye.prototype),ke.prototype.constructor=ke,ke.prototype.D=ke,ke.F={},n.VoidPtr=ke,ke.prototype.__destroy__=function(){q(this.C)},ve.prototype=Object.create(ye.prototype),ve.prototype.constructor=ve,ve.prototype.D=ve,ve.F={},n.McGePoint3d=ve,ve.prototype.op_add=function(e){var t=this.C;e&&"object"==typeof e&&(e=e.C),$(t,e)},ve.prototype.op_sub=function(e){var t=this.C;e&&"object"==typeof e&&(e=e.C),ee(t,e)},ve.prototype.get_x=ve.prototype.H=function(){return te(this.C)},ve.prototype.set_x=ve.prototype.R=function(e){var t=this.C;e&&"object"==typeof e&&(e=e.C),ne(t,e)},Object.defineProperty(ve.prototype,"x",{get:ve.prototype.H,set:ve.prototype.R}),ve.prototype.get_y=ve.prototype.I=function(){return re(this.C)},ve.prototype.set_y=ve.prototype.S=function(e){var t=this.C;e&&"object"==typeof e&&(e=e.C),ie(t,e)},Object.defineProperty(ve.prototype,"y",{get:ve.prototype.I,set:ve.prototype.S}),ve.prototype.get_z=ve.prototype.J=function(){return oe(this.C)},ve.prototype.set_z=ve.prototype.T=function(e){var t=this.C;e&&"object"==typeof e&&(e=e.C),fe(t,e)},Object.defineProperty(ve.prototype,"z",{get:ve.prototype.J,set:ve.prototype.T}),ve.prototype.__destroy__=function(){ae(this.C)},Me.prototype=Object.create(ye.prototype),Me.prototype.constructor=Me,Me.prototype.D=Me,Me.F={},n.McGePoint3dArray=Me,Me.prototype.append=Me.prototype.append=function(e){var t=this.C;e&&"object"==typeof e&&(e=e.C),ue(t,e)},Me.prototype.__destroy__=function(){se(this.C)},we.prototype=Object.create(ye.prototype),we.prototype.constructor=we,we.prototype.D=we,we.F={},n.McGeTool=we,we.prototype.calcArea=function(e){var t=this.C;return e&&"object"==typeof e&&(e=e.C),_e(t,e)},we.prototype.pointInPolyline=function(e,t){var n=this.C;return e&&"object"==typeof e&&(e=e.C),t&&"object"==typeof t&&(t=t.C),!!Ae(n,e,t)},we.prototype.__destroy__=function(){le(this.C)},t.ready});return"object"==typeof exports&&"object"==typeof module?module.exports=t:"function"==typeof define&&define.amd?define([],function(){return t}):"object"==typeof exports&&(exports.mxcadassembly=t),t()}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=mxcadassemblyinit;
|