eecircuit-engine 1.5.7 → 1.5.8
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/eecircuit-engine.mjs +88 -78
- package/dist/eecircuit-engine.umd.js +4 -4
- package/dist/main.d.ts +2 -0
- package/package.json +1 -1
|
@@ -94620,7 +94620,7 @@ async function wC(P = {}) {
|
|
|
94620
94620
|
throw new Error(I.status + " : " + I.url);
|
|
94621
94621
|
};
|
|
94622
94622
|
}
|
|
94623
|
-
var RA = console.log.bind(console), V = console.error.bind(console), BA, T = !1,
|
|
94623
|
+
var RA = console.log.bind(console), V = console.error.bind(console), BA, T = !1, sA, aA, jA, q, QA, EA, L, c, e, rA = !1;
|
|
94624
94624
|
function HA() {
|
|
94625
94625
|
var A = GA.buffer;
|
|
94626
94626
|
q = new Int8Array(A), EA = new Int16Array(A), QA = new Uint8Array(A), L = new Int32Array(A), c = new Uint32Array(A), e = new BigInt64Array(A), new BigUint64Array(A);
|
|
@@ -94694,7 +94694,7 @@ async function wC(P = {}) {
|
|
|
94694
94694
|
}
|
|
94695
94695
|
async function HI() {
|
|
94696
94696
|
function A(E, D) {
|
|
94697
|
-
return z = E.exports, z =
|
|
94697
|
+
return z = E.exports, z = s.instrumentWasmExports(z), Pg(z), HA(), z;
|
|
94698
94698
|
}
|
|
94699
94699
|
function I(E) {
|
|
94700
94700
|
return A(E.instance);
|
|
@@ -94746,7 +94746,7 @@ async function wC(P = {}) {
|
|
|
94746
94746
|
}
|
|
94747
94747
|
}
|
|
94748
94748
|
return E;
|
|
94749
|
-
},
|
|
94749
|
+
}, yA = (A, I, g) => A ? AA(QA, A, I) : "", lI = (A, I, g, B) => d(`Assertion failed: ${yA(A)}, at: ` + [I ? yA(I) : "unknown filename", g, B ? yA(B) : "unknown function"]), ZI = (A, I) => ((g) => NA(A, g))(I), N = {
|
|
94750
94750
|
isAbs: (A) => A.charAt(0) === "/",
|
|
94751
94751
|
splitPath: (A) => {
|
|
94752
94752
|
var I = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
|
|
@@ -95613,10 +95613,10 @@ async function wC(P = {}) {
|
|
|
95613
95613
|
} catch {
|
|
95614
95614
|
}
|
|
95615
95615
|
if (M !== G) {
|
|
95616
|
-
var
|
|
95616
|
+
var y = C.isDir(M.mode), R = C.mayDelete(w, Q, y);
|
|
95617
95617
|
if (R)
|
|
95618
95618
|
throw new C.ErrnoError(R);
|
|
95619
|
-
if (R = G ? C.mayDelete(o, E,
|
|
95619
|
+
if (R = G ? C.mayDelete(o, E, y) : C.mayCreate(o, E), R)
|
|
95620
95620
|
throw new C.ErrnoError(R);
|
|
95621
95621
|
if (!w.node_ops.rename)
|
|
95622
95622
|
throw new C.ErrnoError(63);
|
|
@@ -96056,8 +96056,8 @@ async function wC(P = {}) {
|
|
|
96056
96056
|
g = M;
|
|
96057
96057
|
}
|
|
96058
96058
|
C.chmod(o, w | 146);
|
|
96059
|
-
var
|
|
96060
|
-
C.write(
|
|
96059
|
+
var y = C.open(o, 577);
|
|
96060
|
+
C.write(y, g, 0, g.length, 0, E), C.close(y), C.chmod(o, w);
|
|
96061
96061
|
}
|
|
96062
96062
|
},
|
|
96063
96063
|
createDevice(A, I, g, B) {
|
|
@@ -96072,28 +96072,28 @@ async function wC(P = {}) {
|
|
|
96072
96072
|
B?.buffer?.length && B(10);
|
|
96073
96073
|
},
|
|
96074
96074
|
read(w, o, M, F, G) {
|
|
96075
|
-
for (var
|
|
96075
|
+
for (var y = 0, R = 0; R < F; R++) {
|
|
96076
96076
|
var j;
|
|
96077
96077
|
try {
|
|
96078
96078
|
j = g();
|
|
96079
96079
|
} catch {
|
|
96080
96080
|
throw new C.ErrnoError(29);
|
|
96081
96081
|
}
|
|
96082
|
-
if (j === void 0 &&
|
|
96082
|
+
if (j === void 0 && y === 0)
|
|
96083
96083
|
throw new C.ErrnoError(6);
|
|
96084
96084
|
if (j == null) break;
|
|
96085
|
-
|
|
96085
|
+
y++, o[M + R] = j;
|
|
96086
96086
|
}
|
|
96087
|
-
return
|
|
96087
|
+
return y && (w.node.atime = Date.now()), y;
|
|
96088
96088
|
},
|
|
96089
96089
|
write(w, o, M, F, G) {
|
|
96090
|
-
for (var
|
|
96090
|
+
for (var y = 0; y < F; y++)
|
|
96091
96091
|
try {
|
|
96092
|
-
B(o[M +
|
|
96092
|
+
B(o[M + y]);
|
|
96093
96093
|
} catch {
|
|
96094
96094
|
throw new C.ErrnoError(29);
|
|
96095
96095
|
}
|
|
96096
|
-
return F && (w.node.mtime = w.node.ctime = Date.now()),
|
|
96096
|
+
return F && (w.node.mtime = w.node.ctime = Date.now()), y;
|
|
96097
96097
|
}
|
|
96098
96098
|
}), C.mkdev(Q, E, D);
|
|
96099
96099
|
},
|
|
@@ -96113,19 +96113,19 @@ async function wC(P = {}) {
|
|
|
96113
96113
|
lengthKnown = !1;
|
|
96114
96114
|
chunks = [];
|
|
96115
96115
|
// Loaded chunks. Index is the chunk number
|
|
96116
|
-
get(
|
|
96117
|
-
if (!(
|
|
96118
|
-
var R =
|
|
96116
|
+
get(y) {
|
|
96117
|
+
if (!(y > this.length - 1 || y < 0)) {
|
|
96118
|
+
var R = y % this.chunkSize, j = y / this.chunkSize | 0;
|
|
96119
96119
|
return this.getter(j)[R];
|
|
96120
96120
|
}
|
|
96121
96121
|
}
|
|
96122
|
-
setDataGetter(
|
|
96123
|
-
this.getter =
|
|
96122
|
+
setDataGetter(y) {
|
|
96123
|
+
this.getter = y;
|
|
96124
96124
|
}
|
|
96125
96125
|
cacheLength() {
|
|
96126
|
-
var
|
|
96127
|
-
|
|
96128
|
-
var R = Number(
|
|
96126
|
+
var y = new XMLHttpRequest();
|
|
96127
|
+
y.open("HEAD", g, !1), y.send(null), y.status >= 200 && y.status < 300 || y.status === 304 || d("Couldn't load " + g + ". Status: " + y.status);
|
|
96128
|
+
var R = Number(y.getResponseHeader("Content-length")), j, l = (j = y.getResponseHeader("Accept-Ranges")) && j === "bytes", Z = (j = y.getResponseHeader("Content-Encoding")) && j === "gzip", t = 1024 * 1024;
|
|
96129
96129
|
l || (t = R);
|
|
96130
96130
|
var b = (_, CA) => {
|
|
96131
96131
|
_ > CA && d("invalid range (" + _ + ", " + CA + ") or no bytes requested!"), CA > R - 1 && d("only " + R + " bytes available! programmer error!");
|
|
@@ -96167,26 +96167,26 @@ async function wC(P = {}) {
|
|
|
96167
96167
|
}
|
|
96168
96168
|
});
|
|
96169
96169
|
var M = {};
|
|
96170
|
-
for (const [G,
|
|
96171
|
-
M[G] = (...R) => (C.forceLoadFile(o),
|
|
96172
|
-
function F(G,
|
|
96170
|
+
for (const [G, y] of Object.entries(o.stream_ops))
|
|
96171
|
+
M[G] = (...R) => (C.forceLoadFile(o), y(...R));
|
|
96172
|
+
function F(G, y, R, j, l) {
|
|
96173
96173
|
var Z = G.node.contents;
|
|
96174
96174
|
if (l >= Z.length) return 0;
|
|
96175
96175
|
var t = Math.min(Z.length - l, j);
|
|
96176
96176
|
if (Z.slice)
|
|
96177
96177
|
for (var b = 0; b < t; b++)
|
|
96178
|
-
|
|
96178
|
+
y[R + b] = Z[l + b];
|
|
96179
96179
|
else
|
|
96180
96180
|
for (var b = 0; b < t; b++)
|
|
96181
|
-
|
|
96181
|
+
y[R + b] = Z.get(l + b);
|
|
96182
96182
|
return t;
|
|
96183
96183
|
}
|
|
96184
|
-
return M.read = (G,
|
|
96184
|
+
return M.read = (G, y, R, j, l) => (C.forceLoadFile(o), F(G, y, R, j, l)), M.mmap = (G, y, R, j, l) => {
|
|
96185
96185
|
C.forceLoadFile(o);
|
|
96186
96186
|
var Z = qA();
|
|
96187
96187
|
if (!Z)
|
|
96188
96188
|
throw new C.ErrnoError(48);
|
|
96189
|
-
return F(G, q, Z,
|
|
96189
|
+
return F(G, q, Z, y, R), {
|
|
96190
96190
|
ptr: Z,
|
|
96191
96191
|
allocated: !0
|
|
96192
96192
|
};
|
|
@@ -96233,7 +96233,7 @@ async function wC(P = {}) {
|
|
|
96233
96233
|
},
|
|
96234
96234
|
varargs: void 0,
|
|
96235
96235
|
getStr(A) {
|
|
96236
|
-
var I =
|
|
96236
|
+
var I = yA(A);
|
|
96237
96237
|
return I;
|
|
96238
96238
|
}
|
|
96239
96239
|
};
|
|
@@ -96388,8 +96388,8 @@ async function wC(P = {}) {
|
|
|
96388
96388
|
case 21523: {
|
|
96389
96389
|
if (!B.tty) return -59;
|
|
96390
96390
|
if (B.tty.ops.ioctl_tiocgwinsz) {
|
|
96391
|
-
var
|
|
96392
|
-
EA[E >> 1] =
|
|
96391
|
+
var y = B.tty.ops.ioctl_tiocgwinsz(B.tty), E = gA();
|
|
96392
|
+
EA[E >> 1] = y[0], EA[E + 2 >> 1] = y[1];
|
|
96393
96393
|
}
|
|
96394
96394
|
return 0;
|
|
96395
96395
|
}
|
|
@@ -96522,10 +96522,10 @@ async function wC(P = {}) {
|
|
|
96522
96522
|
throw new C.ErrnoError(6);
|
|
96523
96523
|
var M = Math.min(D, B), F = M, G = 0;
|
|
96524
96524
|
for (var w of E.buckets) {
|
|
96525
|
-
var
|
|
96526
|
-
if (M <=
|
|
96525
|
+
var y = w.offset - w.roffset;
|
|
96526
|
+
if (M <= y) {
|
|
96527
96527
|
var R = w.buffer.subarray(w.roffset, w.offset);
|
|
96528
|
-
M <
|
|
96528
|
+
M < y ? (R = R.subarray(0, M), w.roffset += M) : G++, o.set(R);
|
|
96529
96529
|
break;
|
|
96530
96530
|
} else {
|
|
96531
96531
|
var R = w.buffer.subarray(w.roffset, w.offset);
|
|
@@ -96548,7 +96548,7 @@ async function wC(P = {}) {
|
|
|
96548
96548
|
if (M >= w)
|
|
96549
96549
|
return o.buffer.set(D, o.offset), o.offset += w, w;
|
|
96550
96550
|
M > 0 && (o.buffer.set(D.subarray(0, M), o.offset), o.offset += M, D = D.subarray(M, D.byteLength));
|
|
96551
|
-
for (var F = D.byteLength / a.BUCKET_BUFFER_SIZE | 0, G = D.byteLength % a.BUCKET_BUFFER_SIZE,
|
|
96551
|
+
for (var F = D.byteLength / a.BUCKET_BUFFER_SIZE | 0, G = D.byteLength % a.BUCKET_BUFFER_SIZE, y = 0; y < F; y++) {
|
|
96552
96552
|
var R = {
|
|
96553
96553
|
buffer: new Uint8Array(a.BUCKET_BUFFER_SIZE),
|
|
96554
96554
|
offset: a.BUCKET_BUFFER_SIZE,
|
|
@@ -96630,15 +96630,15 @@ async function wC(P = {}) {
|
|
|
96630
96630
|
SA = !1, nA = 0;
|
|
96631
96631
|
}, wg = (A) => A ? -52 : 0, ig = () => {
|
|
96632
96632
|
throw 1 / 0;
|
|
96633
|
-
}, og = (A) => A % 4 === 0 && (A % 100 !== 0 || A % 400 === 0), Mg = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335], Rg = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334],
|
|
96633
|
+
}, og = (A) => A % 4 === 0 && (A % 100 !== 0 || A % 400 === 0), Mg = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335], Rg = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], sg = (A) => {
|
|
96634
96634
|
var I = og(A.getFullYear()), g = I ? Mg : Rg, B = g[A.getMonth()] + A.getDate() - 1;
|
|
96635
96635
|
return B;
|
|
96636
|
-
},
|
|
96636
|
+
}, yg = 9007199254740992, kg = -9007199254740992, pA = (A) => A < kg || A > yg ? NaN : Number(A);
|
|
96637
96637
|
function Kg(A, I) {
|
|
96638
96638
|
A = pA(A);
|
|
96639
96639
|
var g = new Date(A * 1e3);
|
|
96640
96640
|
L[I >> 2] = g.getSeconds(), L[I + 4 >> 2] = g.getMinutes(), L[I + 8 >> 2] = g.getHours(), L[I + 12 >> 2] = g.getDate(), L[I + 16 >> 2] = g.getMonth(), L[I + 20 >> 2] = g.getFullYear() - 1900, L[I + 24 >> 2] = g.getDay();
|
|
96641
|
-
var B =
|
|
96641
|
+
var B = sg(g) | 0;
|
|
96642
96642
|
L[I + 28 >> 2] = B, L[I + 36 >> 2] = -(g.getTimezoneOffset() * 60);
|
|
96643
96643
|
var Q = new Date(g.getFullYear(), 0, 1), E = new Date(g.getFullYear(), 6, 1).getTimezoneOffset(), D = Q.getTimezoneOffset(), w = (E != D && g.getTimezoneOffset() == Math.min(D, E)) | 0;
|
|
96644
96644
|
L[I + 32 >> 2] = w;
|
|
@@ -96649,8 +96649,8 @@ async function wC(P = {}) {
|
|
|
96649
96649
|
var F = (R) => {
|
|
96650
96650
|
var j = R >= 0 ? "-" : "+", l = Math.abs(R), Z = String(Math.floor(l / 60)).padStart(2, "0"), t = String(l % 60).padStart(2, "0");
|
|
96651
96651
|
return `UTC${j}${Z}${t}`;
|
|
96652
|
-
}, G = F(w),
|
|
96653
|
-
o < w ? (v(G, g, 17), v(
|
|
96652
|
+
}, G = F(w), y = F(o);
|
|
96653
|
+
o < w ? (v(G, g, 17), v(y, B, 17)) : (v(G, B, 17), v(y, g, 17));
|
|
96654
96654
|
}, _A = () => performance.now(), fA = () => Date.now(), Fg = (A) => A >= 0 && A <= 3;
|
|
96655
96655
|
function Sg(A, I, g) {
|
|
96656
96656
|
if (!Fg(A))
|
|
@@ -96688,16 +96688,16 @@ async function wC(P = {}) {
|
|
|
96688
96688
|
return !1;
|
|
96689
96689
|
}, cA = (A) => {
|
|
96690
96690
|
if (A instanceof OA || A == "unwind")
|
|
96691
|
-
return
|
|
96691
|
+
return sA;
|
|
96692
96692
|
S(1, A);
|
|
96693
96693
|
}, VA = () => SA || nA > 0, vA = (A) => {
|
|
96694
|
-
|
|
96694
|
+
sA = A, VA() || (i.onExit?.(A), T = !0), S(A, new OA(A));
|
|
96695
96695
|
}, uA = (A, I) => {
|
|
96696
|
-
|
|
96696
|
+
sA = A, vA(A);
|
|
96697
96697
|
}, TA = uA, Lg = () => {
|
|
96698
96698
|
if (!VA())
|
|
96699
96699
|
try {
|
|
96700
|
-
TA(
|
|
96700
|
+
TA(sA);
|
|
96701
96701
|
} catch (A) {
|
|
96702
96702
|
cA(A);
|
|
96703
96703
|
}
|
|
@@ -96821,7 +96821,7 @@ async function wC(P = {}) {
|
|
|
96821
96821
|
} catch (I) {
|
|
96822
96822
|
d(I);
|
|
96823
96823
|
}
|
|
96824
|
-
},
|
|
96824
|
+
}, s = {
|
|
96825
96825
|
instrumentWasmImports(A) {
|
|
96826
96826
|
var I = /^(invoke_.*|__asyncjs__.*)$/;
|
|
96827
96827
|
for (let [g, B] of Object.entries(A))
|
|
@@ -96829,20 +96829,20 @@ async function wC(P = {}) {
|
|
|
96829
96829
|
},
|
|
96830
96830
|
instrumentFunction(A) {
|
|
96831
96831
|
var I = (...g) => {
|
|
96832
|
-
|
|
96832
|
+
s.exportCallStack.push(A);
|
|
96833
96833
|
try {
|
|
96834
96834
|
return A(...g);
|
|
96835
96835
|
} finally {
|
|
96836
|
-
T || (
|
|
96836
|
+
T || (s.exportCallStack.pop(), s.maybeStopUnwind());
|
|
96837
96837
|
}
|
|
96838
96838
|
};
|
|
96839
|
-
return
|
|
96839
|
+
return s.funcWrappers.set(A, I), I;
|
|
96840
96840
|
},
|
|
96841
96841
|
instrumentWasmExports(A) {
|
|
96842
96842
|
var I = {};
|
|
96843
96843
|
for (let [B, Q] of Object.entries(A))
|
|
96844
96844
|
if (typeof Q == "function") {
|
|
96845
|
-
var g =
|
|
96845
|
+
var g = s.instrumentFunction(Q);
|
|
96846
96846
|
I[B] = g;
|
|
96847
96847
|
} else
|
|
96848
96848
|
I[B] = Q;
|
|
@@ -96866,79 +96866,79 @@ async function wC(P = {}) {
|
|
|
96866
96866
|
asyncPromiseHandlers: null,
|
|
96867
96867
|
sleepCallbacks: [],
|
|
96868
96868
|
getCallStackId(A) {
|
|
96869
|
-
if (!
|
|
96870
|
-
var I =
|
|
96871
|
-
|
|
96869
|
+
if (!s.callstackFuncToId.has(A)) {
|
|
96870
|
+
var I = s.callStackId++;
|
|
96871
|
+
s.callstackFuncToId.set(A, I), s.callStackIdToFunc.set(I, A);
|
|
96872
96872
|
}
|
|
96873
|
-
return
|
|
96873
|
+
return s.callstackFuncToId.get(A);
|
|
96874
96874
|
},
|
|
96875
96875
|
maybeStopUnwind() {
|
|
96876
|
-
|
|
96876
|
+
s.currData && s.state === s.State.Unwinding && s.exportCallStack.length === 0 && (s.state = s.State.Normal, KA(yI), typeof Fibers < "u" && Fibers.trampoline());
|
|
96877
96877
|
},
|
|
96878
96878
|
whenDone() {
|
|
96879
96879
|
return new Promise((A, I) => {
|
|
96880
|
-
|
|
96880
|
+
s.asyncPromiseHandlers = {
|
|
96881
96881
|
resolve: A,
|
|
96882
96882
|
reject: I
|
|
96883
96883
|
};
|
|
96884
96884
|
});
|
|
96885
96885
|
},
|
|
96886
96886
|
allocateData() {
|
|
96887
|
-
var A = AI(12 +
|
|
96888
|
-
return
|
|
96887
|
+
var A = AI(12 + s.StackSize);
|
|
96888
|
+
return s.setDataHeader(A, A + 12, s.StackSize), s.setDataRewindFunc(A), A;
|
|
96889
96889
|
},
|
|
96890
96890
|
setDataHeader(A, I, g) {
|
|
96891
96891
|
c[A >> 2] = I, c[A + 4 >> 2] = I + g;
|
|
96892
96892
|
},
|
|
96893
96893
|
setDataRewindFunc(A) {
|
|
96894
|
-
var I =
|
|
96894
|
+
var I = s.exportCallStack[0], g = s.getCallStackId(I);
|
|
96895
96895
|
L[A + 8 >> 2] = g;
|
|
96896
96896
|
},
|
|
96897
96897
|
getDataRewindFunc(A) {
|
|
96898
|
-
var I = L[A + 8 >> 2], g =
|
|
96898
|
+
var I = L[A + 8 >> 2], g = s.callStackIdToFunc.get(I);
|
|
96899
96899
|
return g;
|
|
96900
96900
|
},
|
|
96901
96901
|
doRewind(A) {
|
|
96902
|
-
var I =
|
|
96902
|
+
var I = s.getDataRewindFunc(A), g = s.funcWrappers.get(I);
|
|
96903
96903
|
return g();
|
|
96904
96904
|
},
|
|
96905
96905
|
handleSleep(A) {
|
|
96906
96906
|
if (!T) {
|
|
96907
|
-
if (
|
|
96907
|
+
if (s.state === s.State.Normal) {
|
|
96908
96908
|
var I = !1, g = !1;
|
|
96909
96909
|
A((B = 0) => {
|
|
96910
|
-
if (!T && (
|
|
96911
|
-
|
|
96910
|
+
if (!T && (s.handleSleepReturnValue = B, I = !0, !!g)) {
|
|
96911
|
+
s.state = s.State.Rewinding, KA(() => kI(s.currData)), typeof MainLoop < "u" && MainLoop.func && MainLoop.resume();
|
|
96912
96912
|
var Q, E = !1;
|
|
96913
96913
|
try {
|
|
96914
|
-
Q =
|
|
96914
|
+
Q = s.doRewind(s.currData);
|
|
96915
96915
|
} catch (o) {
|
|
96916
96916
|
Q = o, E = !0;
|
|
96917
96917
|
}
|
|
96918
96918
|
var D = !1;
|
|
96919
|
-
if (!
|
|
96920
|
-
var w =
|
|
96921
|
-
w && (
|
|
96919
|
+
if (!s.currData) {
|
|
96920
|
+
var w = s.asyncPromiseHandlers;
|
|
96921
|
+
w && (s.asyncPromiseHandlers = null, (E ? w.reject : w.resolve)(Q), D = !0);
|
|
96922
96922
|
}
|
|
96923
96923
|
if (E && !D)
|
|
96924
96924
|
throw Q;
|
|
96925
96925
|
}
|
|
96926
|
-
}), g = !0, I || (
|
|
96927
|
-
} else
|
|
96928
|
-
return
|
|
96926
|
+
}), g = !0, I || (s.state = s.State.Unwinding, s.currData = s.allocateData(), typeof MainLoop < "u" && MainLoop.func && MainLoop.pause(), KA(() => sI(s.currData)));
|
|
96927
|
+
} else s.state === s.State.Rewinding ? (s.state = s.State.Normal, KA(KI), $A(s.currData), s.currData = null, s.sleepCallbacks.forEach(Ng)) : d(`invalid state: ${s.state}`);
|
|
96928
|
+
return s.handleSleepReturnValue;
|
|
96929
96929
|
}
|
|
96930
96930
|
},
|
|
96931
|
-
handleAsync: (A) =>
|
|
96931
|
+
handleAsync: (A) => s.handleSleep((I) => {
|
|
96932
96932
|
A().then(I);
|
|
96933
96933
|
})
|
|
96934
96934
|
};
|
|
96935
96935
|
if (C.createPreloadedFile = fI, C.preloadFile = bA, C.staticInit(), i.noExitRuntime && (SA = i.noExitRuntime), i.preloadPlugins && (mA = i.preloadPlugins), i.print && (RA = i.print), i.printErr && (V = i.printErr), i.wasmBinary && (BA = i.wasmBinary), i.arguments && (J = i.arguments), i.thisProgram && (U = i.thisProgram), i.preInit)
|
|
96936
96936
|
for (typeof i.preInit == "function" && (i.preInit = [i.preInit]); i.preInit.length > 0; )
|
|
96937
96937
|
i.preInit.shift()();
|
|
96938
|
-
i.FS = C, i.Asyncify =
|
|
96939
|
-
var zA, $A, AI, m, II, gI, CI, BI, NA, QI, EI, DI, wI, iI, oI, MI, RI,
|
|
96938
|
+
i.FS = C, i.Asyncify = s;
|
|
96939
|
+
var zA, $A, AI, m, II, gI, CI, BI, NA, QI, EI, DI, wI, iI, oI, MI, RI, sI, yI, kI, KI, GA;
|
|
96940
96940
|
function Pg(A) {
|
|
96941
|
-
zA = i._main = A.__main_argc_argv, $A = A.free, AI = A.malloc, m = A.setThrew, II = A._emscripten_stack_restore, gI = A._emscripten_stack_alloc, CI = A.emscripten_stack_get_current, BI = A.dynCall_iiiii, NA = A.dynCall_vi, QI = A.dynCall_ii, EI = A.dynCall_v, DI = A.dynCall_i, wI = A.dynCall_viii, iI = A.dynCall_iiiiii, oI = A.dynCall_iii, MI = A.dynCall_iiii, A.dynCall_iiiiiii, A.dynCall_d, A.dynCall_iiiiiiiiii, A.dynCall_vii, A.dynCall_iiiiddi, A.dynCall_viddii, RI = A.dynCall_iiiiiiiii, A.dynCall_ddd, A.dynCall_iidiii, A.dynCall_dd, A.dynCall_ddi, A.dynCall_diidddd, A.dynCall_diidd, A.dynCall_diiddd, A.dynCall_jiji, A.dynCall_iidiiii,
|
|
96941
|
+
zA = i._main = A.__main_argc_argv, $A = A.free, AI = A.malloc, m = A.setThrew, II = A._emscripten_stack_restore, gI = A._emscripten_stack_alloc, CI = A.emscripten_stack_get_current, BI = A.dynCall_iiiii, NA = A.dynCall_vi, QI = A.dynCall_ii, EI = A.dynCall_v, DI = A.dynCall_i, wI = A.dynCall_viii, iI = A.dynCall_iiiiii, oI = A.dynCall_iii, MI = A.dynCall_iiii, A.dynCall_iiiiiii, A.dynCall_d, A.dynCall_iiiiiiiiii, A.dynCall_vii, A.dynCall_iiiiddi, A.dynCall_viddii, RI = A.dynCall_iiiiiiiii, A.dynCall_ddd, A.dynCall_iidiii, A.dynCall_dd, A.dynCall_ddi, A.dynCall_diidddd, A.dynCall_diidd, A.dynCall_diiddd, A.dynCall_jiji, A.dynCall_iidiiii, sI = A.asyncify_start_unwind, yI = A.asyncify_stop_unwind, kI = A.asyncify_start_rewind, KI = A.asyncify_stop_rewind, GA = A.memory, A.__indirect_function_table;
|
|
96942
96942
|
}
|
|
96943
96943
|
var GI = {
|
|
96944
96944
|
/** @export */
|
|
@@ -97295,7 +97295,7 @@ function RC(P) {
|
|
|
97295
97295
|
}
|
|
97296
97296
|
function u(P, ...K) {
|
|
97297
97297
|
}
|
|
97298
|
-
class
|
|
97298
|
+
class sC {
|
|
97299
97299
|
// Internal instrumentation: count how many times the WASM module is instantiated.
|
|
97300
97300
|
// This should be 1 for a given Simulation instance lifetime.
|
|
97301
97301
|
wasmModuleInitCount = 0;
|
|
@@ -97307,9 +97307,13 @@ class yC {
|
|
|
97307
97307
|
__getCompletedRunCountForTests() {
|
|
97308
97308
|
return this.completedRunCount;
|
|
97309
97309
|
}
|
|
97310
|
+
__getCommandListForTests() {
|
|
97311
|
+
return [...this.commandList];
|
|
97312
|
+
}
|
|
97310
97313
|
pass = !1;
|
|
97311
97314
|
// private commandList = [" ", "source test.cir", "run", "set filetype=ascii", "write out.raw"];
|
|
97312
97315
|
commandList = [" ", "source test.cir", "destroy all", "run", "write out.raw"];
|
|
97316
|
+
isNoiseMode = !1;
|
|
97313
97317
|
cmd = 0;
|
|
97314
97318
|
dataRaw = new Uint8Array();
|
|
97315
97319
|
results = {};
|
|
@@ -97422,7 +97426,13 @@ class yC {
|
|
|
97422
97426
|
outputEvent = (K) => {
|
|
97423
97427
|
};
|
|
97424
97428
|
setNetList = (K) => {
|
|
97425
|
-
this.netList = K
|
|
97429
|
+
if (this.netList = K, /^\s*\.noise\b/im.test(K)) {
|
|
97430
|
+
this.commandList = [" ", "source test.cir", "destroy all", "run", "setplot noise1", "write out.raw"], this.isNoiseMode || (this.isNoiseMode = !0, console.info(
|
|
97431
|
+
"[EEcircuit-engine] .noise analysis detected; activating noise export mode (setplot noise1 -> write out.raw)."
|
|
97432
|
+
));
|
|
97433
|
+
return;
|
|
97434
|
+
}
|
|
97435
|
+
this.isNoiseMode = !1, this.commandList = [" ", "source test.cir", "destroy all", "run", "write out.raw"];
|
|
97426
97436
|
};
|
|
97427
97437
|
setOutputEvent = (K) => {
|
|
97428
97438
|
this.outputEvent = K;
|
|
@@ -97435,5 +97445,5 @@ class yC {
|
|
|
97435
97445
|
};
|
|
97436
97446
|
}
|
|
97437
97447
|
export {
|
|
97438
|
-
|
|
97448
|
+
sC as Simulation
|
|
97439
97449
|
};
|