Socket
Socket
Sign inDemoInstall

@sec-ant/zxing-wasm

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sec-ant/zxing-wasm - npm Package Compare versions

Comparing version 2.1.4 to 2.1.5

dist/core-4b54e5ce.js

1224

dist/full/index.js

@@ -1,31 +0,31 @@

import { g as _i, r as gi, d as X, a as yi, w as mi, c as Q } from "../core-a1b41704.js";
import { Z as Si, b as Fi, p as Di, s as ki } from "../core-a1b41704.js";
import { g as ui, r as fi, d as L, a as li, w as ci, c as J } from "../core-4b54e5ce.js";
import { Z as bi, b as wi, p as Ci, s as Pi } from "../core-4b54e5ce.js";
var De = (() => {
var j = import.meta.url;
return function(B = {}) {
var f = B, L, ee;
var W = import.meta.url;
return function(V = {}) {
var f = V, B, K;
f.ready = new Promise((e, r) => {
L = e, ee = r;
B = e, K = r;
});
var de = Object.assign({}, f), pe = "./this.program", ze = typeof window == "object", he = typeof importScripts == "function";
var ce = Object.assign({}, f), ve = "./this.program", ze = typeof window == "object", de = typeof importScripts == "function";
typeof process == "object" && typeof process.versions == "object" && process.versions.node;
var H = "";
var M = "";
function Ir(e) {
return f.locateFile ? f.locateFile(e, H) : H + e;
return f.locateFile ? f.locateFile(e, M) : M + e;
}
var ke;
(ze || he) && (he ? H = self.location.href : typeof document < "u" && document.currentScript && (H = document.currentScript.src), j && (H = j), H.indexOf("blob:") !== 0 ? H = H.substr(0, H.replace(/[?#].*/, "").lastIndexOf("/") + 1) : H = "", he && (ke = (e) => {
(ze || de) && (de ? M = self.location.href : typeof document < "u" && document.currentScript && (M = document.currentScript.src), W && (M = W), M.indexOf("blob:") !== 0 ? M = M.substr(0, M.replace(/[?#].*/, "").lastIndexOf("/") + 1) : M = "", de && (ke = (e) => {
var r = new XMLHttpRequest();
return r.open("GET", e, !1), r.responseType = "arraybuffer", r.send(null), new Uint8Array(r.response);
})), f.print || console.log.bind(console);
var ne = f.printErr || console.error.bind(console);
Object.assign(f, de), de = null, f.arguments && f.arguments, f.thisProgram && (pe = f.thisProgram), f.quit && f.quit;
var ie;
f.wasmBinary && (ie = f.wasmBinary), f.noExitRuntime, typeof WebAssembly != "object" && ye("no native wasm support detected");
var _e, Xe = !1, M, k, ae, ge, F, P, Ze, Ge;
var re = f.printErr || console.error.bind(console);
Object.assign(f, ce), ce = null, f.arguments && f.arguments, f.thisProgram && (ve = f.thisProgram), f.quit && f.quit;
var te;
f.wasmBinary && (te = f.wasmBinary), f.noExitRuntime, typeof WebAssembly != "object" && _e("no native wasm support detected");
var he, Xe = !1, H, k, ne, pe, R, P, Ze, Ge;
function qe() {
var e = _e.buffer;
f.HEAP8 = M = new Int8Array(e), f.HEAP16 = ae = new Int16Array(e), f.HEAPU8 = k = new Uint8Array(e), f.HEAPU16 = ge = new Uint16Array(e), f.HEAP32 = F = new Int32Array(e), f.HEAPU32 = P = new Uint32Array(e), f.HEAPF32 = Ze = new Float32Array(e), f.HEAPF64 = Ge = new Float64Array(e);
var e = he.buffer;
f.HEAP8 = H = new Int8Array(e), f.HEAP16 = ne = new Int16Array(e), f.HEAPU8 = k = new Uint8Array(e), f.HEAPU16 = pe = new Uint16Array(e), f.HEAP32 = R = new Int32Array(e), f.HEAPU32 = P = new Uint32Array(e), f.HEAPF32 = Ze = new Float32Array(e), f.HEAPF64 = Ge = new Float64Array(e);
}
var Je, Ke = [], Qe = [], er = [];
var Je = [], Ke = [], Qe = [];
function Ur() {

@@ -35,6 +35,6 @@ if (f.preRun)

Vr(f.preRun.shift());
Oe(Ke);
Oe(Je);
}
function xr() {
Oe(Qe);
Oe(Ke);
}

@@ -44,38 +44,38 @@ function Yr() {

for (typeof f.postRun == "function" && (f.postRun = [f.postRun]); f.postRun.length; )
Lr(f.postRun.shift());
Oe(er);
Nr(f.postRun.shift());
Oe(Qe);
}
function Vr(e) {
Je.unshift(e);
}
function Br(e) {
Ke.unshift(e);
}
function Br(e) {
function Nr(e) {
Qe.unshift(e);
}
var z = 0, ie = null;
function Lr(e) {
er.unshift(e);
z++, f.monitorRunDependencies && f.monitorRunDependencies(z);
}
var Z = 0, oe = null;
function Nr(e) {
Z++, f.monitorRunDependencies && f.monitorRunDependencies(Z);
}
function zr(e) {
if (Z--, f.monitorRunDependencies && f.monitorRunDependencies(Z), Z == 0 && oe) {
var r = oe;
oe = null, r();
if (z--, f.monitorRunDependencies && f.monitorRunDependencies(z), z == 0 && ie) {
var r = ie;
ie = null, r();
}
}
function ye(e) {
f.onAbort && f.onAbort(e), e = "Aborted(" + e + ")", ne(e), Xe = !0, e += ". Build with -sASSERTIONS for more info.";
function _e(e) {
f.onAbort && f.onAbort(e), e = "Aborted(" + e + ")", re(e), Xe = !0, e += ". Build with -sASSERTIONS for more info.";
var r = new WebAssembly.RuntimeError(e);
throw ee(r), r;
throw K(r), r;
}
var Xr = "data:application/octet-stream;base64,";
function rr(e) {
function er(e) {
return e.startsWith(Xr);
}
var G;
f.locateFile ? (G = "zxing_full.wasm", rr(G) || (G = Ir(G))) : G = new URL("/full/zxing_full.wasm", self.location).href;
function tr(e) {
if (e == G && ie)
return new Uint8Array(ie);
var X;
f.locateFile ? (X = "zxing_full.wasm", er(X) || (X = Ir(X))) : X = new URL("/full/zxing_full.wasm", self.location).href;
function rr(e) {
if (e == X && te)
return new Uint8Array(te);
if (ke)

@@ -86,28 +86,27 @@ return ke(e);

function Zr(e) {
return !ie && (ze || he) && typeof fetch == "function" ? fetch(e, { credentials: "same-origin" }).then((r) => {
return !te && (ze || de) && typeof fetch == "function" ? fetch(e, { credentials: "same-origin" }).then((r) => {
if (!r.ok)
throw "failed to load wasm binary file at '" + e + "'";
return r.arrayBuffer();
}).catch(() => tr(e)) : Promise.resolve().then(() => tr(e));
}).catch(() => rr(e)) : Promise.resolve().then(() => rr(e));
}
function nr(e, r, t) {
function tr(e, r, t) {
return Zr(e).then((n) => WebAssembly.instantiate(n, r)).then((n) => n).then(t, (n) => {
ne(`failed to asynchronously prepare wasm: ${n}`), ye(n);
re(`failed to asynchronously prepare wasm: ${n}`), _e(n);
});
}
function Gr(e, r, t, n) {
return !e && typeof WebAssembly.instantiateStreaming == "function" && !rr(r) && typeof fetch == "function" ? fetch(r, { credentials: "same-origin" }).then((i) => {
return !e && typeof WebAssembly.instantiateStreaming == "function" && !er(r) && typeof fetch == "function" ? fetch(r, { credentials: "same-origin" }).then((i) => {
var a = WebAssembly.instantiateStreaming(i, t);
return a.then(n, function(o) {
return ne(`wasm streaming compile failed: ${o}`), ne("falling back to ArrayBuffer instantiation"), nr(r, t, n);
return a.then(n, function(s) {
return re(`wasm streaming compile failed: ${s}`), re("falling back to ArrayBuffer instantiation"), tr(r, t, n);
});
}) : nr(r, t, n);
}) : tr(r, t, n);
}
function qr() {
var e = { a: Mn };
var e = { a: Fn };
function r(n, i) {
var a = n.exports;
return T = a, _e = T.qa, qe(), Je = T.ua, Br(T.ra), zr(), a;
return T = n.exports, he = T.qa, qe(), _r = T.ua, Br(T.ra), zr(), T;
}
Nr();
Lr();
function t(n) {

@@ -120,5 +119,5 @@ r(n.instance);

} catch (n) {
ne(`Module.instantiateWasm callback failed with error: ${n}`), ee(n);
re(`Module.instantiateWasm callback failed with error: ${n}`), K(n);
}
return Gr(ie, G, e, t).catch(ee), {};
return Gr(te, X, e, t).catch(K), {};
}

@@ -128,11 +127,11 @@ var Oe = (e) => {

e.shift()(f);
}, me = [], $e = 0, Jr = (e) => {
var r = new be(e);
return r.get_caught() || (r.set_caught(!0), $e--), r.set_rethrown(!1), me.push(r), kr(r.excPtr), r.get_exception_ptr();
}, ge = [], ye = 0, Jr = (e) => {
var r = new me(e);
return r.get_caught() || (r.set_caught(!0), ye--), r.set_rethrown(!1), ge.push(r), kr(r.excPtr), r.get_exception_ptr();
}, I = 0, Kr = () => {
_(0, 0);
var e = me.pop();
var e = ge.pop();
Dr(e.excPtr), I = 0;
};
function be(e) {
function me(e) {
this.excPtr = e, this.ptr = e - 24, this.set_type = function(r) {

@@ -147,9 +146,9 @@ P[this.ptr + 4 >> 2] = r;

}, this.set_caught = function(r) {
r = r ? 1 : 0, M[this.ptr + 12 >> 0] = r;
r = r ? 1 : 0, H[this.ptr + 12 >> 0] = r;
}, this.get_caught = function() {
return M[this.ptr + 12 >> 0] != 0;
return H[this.ptr + 12 >> 0] != 0;
}, this.set_rethrown = function(r) {
r = r ? 1 : 0, M[this.ptr + 13 >> 0] = r;
r = r ? 1 : 0, H[this.ptr + 13 >> 0] = r;
}, this.get_rethrown = function() {
return M[this.ptr + 13 >> 0] != 0;
return H[this.ptr + 13 >> 0] != 0;
}, this.init = function(r, t) {

@@ -162,3 +161,3 @@ this.set_adjusted_ptr(0), this.set_type(r), this.set_destructor(t);

}, this.get_exception_ptr = function() {
var r = Wr(this.get_type());
var r = jr(this.get_type());
if (r)

@@ -172,11 +171,11 @@ return P[this.excPtr >> 2];

throw I || (I = e), I;
}, We = (e) => {
}, je = (e) => {
var r = I;
if (!r)
return ve(0), 0;
var t = new be(r);
return le(0), 0;
var t = new me(r);
t.set_adjusted_ptr(r);
var n = t.get_type();
if (!n)
return ve(0), r;
return le(0), r;
for (var i in e) {

@@ -186,19 +185,19 @@ var a = e[i];

break;
var o = t.ptr + 16;
if (Or(a, n, o))
return ve(a), r;
var s = t.ptr + 16;
if (Or(a, n, s))
return le(a), r;
}
return ve(n), r;
}, et = () => We([]), rt = (e) => We([e]), tt = (e, r) => We([e, r]), nt = (e) => {
var r = new be(e).get_exception_ptr();
return le(n), r;
}, et = () => je([]), rt = (e) => je([e]), tt = (e, r) => je([e, r]), nt = (e) => {
var r = new me(e).get_exception_ptr();
return r;
}, it = () => {
var e = me.pop();
e || ye("no exception to throw");
var e = ge.pop();
e || _e("no exception to throw");
var r = e.excPtr;
throw e.get_rethrown() || (me.push(e), e.set_rethrown(!0), e.set_caught(!1), $e++), I = r, I;
throw e.get_rethrown() || (ge.push(e), e.set_rethrown(!0), e.set_caught(!1), ye++), I = r, I;
}, at = (e, r, t) => {
var n = new be(e);
throw n.init(r, t), I = e, $e++, I;
}, ot = () => $e, we = {}, ir = (e) => {
var n = new me(e);
throw n.init(r, t), I = e, ye++, I;
}, st = () => ye, $e = {}, nr = (e) => {
for (; e.length; ) {

@@ -209,49 +208,49 @@ var r = e.pop(), t = e.pop();

};
function je(e) {
return this.fromWireType(F[e >> 2]);
function We(e) {
return this.fromWireType(R[e >> 2]);
}
var re = {}, q = {}, Ce = {}, ar = void 0, Pe = (e) => {
throw new ar(e);
}, J = (e, r, t) => {
e.forEach(function(s) {
Ce[s] = r;
var Q = {}, Z = {}, be = {}, ir, we = (e) => {
throw new ir(e);
}, G = (e, r, t) => {
e.forEach(function(o) {
be[o] = r;
});
function n(s) {
var u = t(s);
u.length !== e.length && Pe("Mismatched type converter count");
function n(o) {
var u = t(o);
u.length !== e.length && we("Mismatched type converter count");
for (var l = 0; l < e.length; ++l)
U(e[l], u[l]);
}
var i = new Array(r.length), a = [], o = 0;
r.forEach((s, u) => {
q.hasOwnProperty(s) ? i[u] = q[s] : (a.push(s), re.hasOwnProperty(s) || (re[s] = []), re[s].push(() => {
i[u] = q[s], ++o, o === a.length && n(i);
var i = new Array(r.length), a = [], s = 0;
r.forEach((o, u) => {
Z.hasOwnProperty(o) ? i[u] = Z[o] : (a.push(o), Q.hasOwnProperty(o) || (Q[o] = []), Q[o].push(() => {
i[u] = Z[o], ++s, s === a.length && n(i);
}));
}), a.length === 0 && n(i);
}, st = (e) => {
var r = we[e];
delete we[e];
var t = r.rawConstructor, n = r.rawDestructor, i = r.fields, a = i.map((o) => o.getterReturnType).concat(i.map((o) => o.setterArgumentType));
J([e], a, (o) => {
var s = {};
}, ot = (e) => {
var r = $e[e];
delete $e[e];
var t = r.rawConstructor, n = r.rawDestructor, i = r.fields, a = i.map((s) => s.getterReturnType).concat(i.map((s) => s.setterArgumentType));
G([e], a, (s) => {
var o = {};
return i.forEach((u, l) => {
var v = u.fieldName, p = o[l], h = u.getter, m = u.getterContext, w = o[l + i.length], R = u.setter, C = u.setterContext;
s[v] = { read: (S) => p.fromWireType(h(m, S)), write: (S, c) => {
var v = u.fieldName, h = s[l], p = u.getter, m = u.getterContext, w = s[l + i.length], S = u.setter, C = u.setterContext;
o[v] = { read: (F) => h.fromWireType(p(m, F)), write: (F, c) => {
var d = [];
R(C, S, w.toWireType(d, c)), ir(d);
S(C, F, w.toWireType(d, c)), nr(d);
} };
}), [{ name: r.name, fromWireType: (u) => {
var l = {};
for (var v in s)
l[v] = s[v].read(u);
for (var v in o)
l[v] = o[v].read(u);
return n(u), l;
}, toWireType: (u, l) => {
for (var v in s)
for (var v in o)
if (!(v in l))
throw new TypeError(`Missing field: "${v}"`);
var p = t();
for (v in s)
s[v].write(p, l[v]);
return u !== null && u.push(n, p), p;
}, argPackAdvance: x, readValueFromPointer: je, destructorFunction: n }];
var h = t();
for (v in o)
o[v].write(h, l[v]);
return u !== null && u.push(n, h), h;
}, argPackAdvance: x, readValueFromPointer: We, destructorFunction: n }];
});

@@ -262,13 +261,13 @@ }, ut = (e, r, t, n, i) => {

e[r] = String.fromCharCode(r);
or = e;
}, or = void 0, D = (e) => {
ar = e;
}, ar, D = (e) => {
for (var r = "", t = e; k[t]; )
r += or[k[t++]];
r += ar[k[t++]];
return r;
}, te = void 0, $ = (e) => {
throw new te(e);
}, ee, $ = (e) => {
throw new ee(e);
};
function lt(e, r, t = {}) {
var n = r.name;
if (e || $(`type "${n}" must have a positive integer typeid pointer`), q.hasOwnProperty(e)) {
if (e || $(`type "${n}" must have a positive integer typeid pointer`), Z.hasOwnProperty(e)) {
if (t.ignoreDuplicateRegistrations)

@@ -278,5 +277,5 @@ return;

}
if (q[e] = r, delete Ce[e], re.hasOwnProperty(e)) {
var i = re[e];
delete re[e], i.forEach((a) => a());
if (Z[e] = r, delete be[e], Q.hasOwnProperty(e)) {
var i = Q[e];
delete Q[e], i.forEach((a) => a());
}

@@ -297,13 +296,3 @@ }

}, destructorFunction: null });
};
function vt(e) {
if (!(this instanceof N) || !(e instanceof N))
return !1;
for (var r = this.$$.ptrType.registeredClass, t = this.$$.ptr, n = e.$$.ptrType.registeredClass, i = e.$$.ptr; r.baseClass; )
t = r.upcast(t), r = r.baseClass;
for (; n.baseClass; )
i = n.upcast(i), n = n.baseClass;
return r === n && t === i;
}
var dt = (e) => ({ count: e.count, deleteScheduled: e.deleteScheduled, preservePointerOnDelete: e.preservePointerOnDelete, ptr: e.ptr, ptrType: e.ptrType, smartPtr: e.smartPtr, smartPtrType: e.smartPtrType }), He = (e) => {
}, vt = (e) => ({ count: e.count, deleteScheduled: e.deleteScheduled, preservePointerOnDelete: e.preservePointerOnDelete, ptr: e.ptr, ptrType: e.ptrType, smartPtr: e.smartPtr, smartPtrType: e.smartPtrType }), Me = (e) => {
function r(t) {

@@ -313,10 +302,10 @@ return t.$$.ptrType.registeredClass.name;

$(r(e) + " instance already deleted");
}, Me = !1, sr = (e) => {
}, pt = (e) => {
}, He = !1, sr = (e) => {
}, dt = (e) => {
e.smartPtr ? e.smartPtrType.rawDestructor(e.smartPtr) : e.ptrType.registeredClass.rawDestructor(e.ptr);
}, ur = (e) => {
}, or = (e) => {
e.count.value -= 1;
var r = e.count.value === 0;
r && pt(e);
}, fr = (e, r, t) => {
r && dt(e);
}, ur = (e, r, t) => {
if (r === t)

@@ -326,32 +315,32 @@ return e;

return null;
var n = fr(e, r, t.baseClass);
var n = ur(e, r, t.baseClass);
return n === null ? null : t.downcast(n);
}, lr = {}, ht = () => Object.keys(fe).length, _t = () => {
}, fr = {}, ht = () => Object.keys(oe).length, pt = () => {
var e = [];
for (var r in fe)
fe.hasOwnProperty(r) && e.push(fe[r]);
for (var r in oe)
oe.hasOwnProperty(r) && e.push(oe[r]);
return e;
}, se = [], Ie = () => {
for (; se.length; ) {
var e = se.pop();
}, ae = [], Ie = () => {
for (; ae.length; ) {
var e = ae.pop();
e.$$.deleteScheduled = !1, e.delete();
}
}, ue = void 0, gt = (e) => {
ue = e, se.length && ue && ue(Ie);
}, yt = () => {
f.getInheritedInstanceCount = ht, f.getLiveInheritedInstances = _t, f.flushPendingDeletes = Ie, f.setDelayFunction = gt;
}, fe = {}, mt = (e, r) => {
}, se, _t = (e) => {
se = e, ae.length && se && se(Ie);
}, gt = () => {
f.getInheritedInstanceCount = ht, f.getLiveInheritedInstances = pt, f.flushPendingDeletes = Ie, f.setDelayFunction = _t;
}, oe = {}, yt = (e, r) => {
for (r === void 0 && $("ptr should not be undefined"); e.baseClass; )
r = e.upcast(r), e = e.baseClass;
return r;
}, $t = (e, r) => (r = mt(e, r), fe[r]), Te = (e, r) => {
(!r.ptrType || !r.ptr) && Pe("makeClassHandle requires ptr and ptrType");
}, mt = (e, r) => (r = yt(e, r), oe[r]), Ce = (e, r) => {
(!r.ptrType || !r.ptr) && we("makeClassHandle requires ptr and ptrType");
var t = !!r.smartPtrType, n = !!r.smartPtr;
return t !== n && Pe("Both smartPtrType and smartPtr must be specified"), r.count = { value: 1 }, le(Object.create(e, { $$: { value: r } }));
return t !== n && we("Both smartPtrType and smartPtr must be specified"), r.count = { value: 1 }, ue(Object.create(e, { $$: { value: r } }));
};
function bt(e) {
function $t(e) {
var r = this.getPointee(e);
if (!r)
return this.destructor(e), null;
var t = $t(this.registeredClass, r);
var t = mt(this.registeredClass, r);
if (t !== void 0) {

@@ -364,43 +353,48 @@ if (t.$$.count.value === 0)

function i() {
return this.isSmartPointer ? Te(this.registeredClass.instancePrototype, { ptrType: this.pointeeType, ptr: r, smartPtrType: this, smartPtr: e }) : Te(this.registeredClass.instancePrototype, { ptrType: this, ptr: e });
return this.isSmartPointer ? Ce(this.registeredClass.instancePrototype, { ptrType: this.pointeeType, ptr: r, smartPtrType: this, smartPtr: e }) : Ce(this.registeredClass.instancePrototype, { ptrType: this, ptr: e });
}
var a = this.registeredClass.getActualType(r), o = lr[a];
if (!o)
var a = this.registeredClass.getActualType(r), s = fr[a];
if (!s)
return i.call(this);
var s;
this.isConst ? s = o.constPointerType : s = o.pointerType;
var u = fr(r, this.registeredClass, s.registeredClass);
return u === null ? i.call(this) : this.isSmartPointer ? Te(s.registeredClass.instancePrototype, { ptrType: s, ptr: u, smartPtrType: this, smartPtr: e }) : Te(s.registeredClass.instancePrototype, { ptrType: s, ptr: u });
var o;
this.isConst ? o = s.constPointerType : o = s.pointerType;
var u = ur(r, this.registeredClass, o.registeredClass);
return u === null ? i.call(this) : this.isSmartPointer ? Ce(o.registeredClass.instancePrototype, { ptrType: o, ptr: u, smartPtrType: this, smartPtr: e }) : Ce(o.registeredClass.instancePrototype, { ptrType: o, ptr: u });
}
var le = (e) => typeof FinalizationRegistry > "u" ? (le = (r) => r, e) : (Me = new FinalizationRegistry((r) => {
ur(r.$$);
}), le = (r) => {
var ue = (e) => typeof FinalizationRegistry > "u" ? (ue = (r) => r, e) : (He = new FinalizationRegistry((r) => {
or(r.$$);
}), ue = (r) => {
var t = r.$$, n = !!t.smartPtr;
if (n) {
var i = { $$: t };
Me.register(r, i, r);
He.register(r, i, r);
}
return r;
}, sr = (r) => Me.unregister(r), le(e));
function wt() {
if (this.$$.ptr || He(this), this.$$.preservePointerOnDelete)
return this.$$.count.value += 1, this;
var e = le(Object.create(Object.getPrototypeOf(this), { $$: { value: dt(this.$$) } }));
return e.$$.count.value += 1, e.$$.deleteScheduled = !1, e;
}
function Ct() {
this.$$.ptr || He(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && $("Object already scheduled for deletion"), sr(this), ur(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
}
function Pt() {
return !this.$$.ptr;
}
function Tt() {
return this.$$.ptr || He(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && $("Object already scheduled for deletion"), se.push(this), se.length === 1 && ue && ue(Ie), this.$$.deleteScheduled = !0, this;
}
var At = () => {
N.prototype.isAliasOf = vt, N.prototype.clone = wt, N.prototype.delete = Ct, N.prototype.isDeleted = Pt, N.prototype.deleteLater = Tt;
}, sr = (r) => He.unregister(r), ue(e)), bt = () => {
Object.assign(Pe.prototype, { isAliasOf(e) {
if (!(this instanceof Pe) || !(e instanceof Pe))
return !1;
var r = this.$$.ptrType.registeredClass, t = this.$$.ptr;
e.$$ = e.$$;
for (var n = e.$$.ptrType.registeredClass, i = e.$$.ptr; r.baseClass; )
t = r.upcast(t), r = r.baseClass;
for (; n.baseClass; )
i = n.upcast(i), n = n.baseClass;
return r === n && t === i;
}, clone() {
if (this.$$.ptr || Me(this), this.$$.preservePointerOnDelete)
return this.$$.count.value += 1, this;
var e = ue(Object.create(Object.getPrototypeOf(this), { $$: { value: vt(this.$$) } }));
return e.$$.count.value += 1, e.$$.deleteScheduled = !1, e;
}, delete() {
this.$$.ptr || Me(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && $("Object already scheduled for deletion"), sr(this), or(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
}, isDeleted() {
return !this.$$.ptr;
}, deleteLater() {
return this.$$.ptr || Me(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && $("Object already scheduled for deletion"), ae.push(this), ae.length === 1 && se && se(Ie), this.$$.deleteScheduled = !0, this;
} });
};
function N() {
function Pe() {
}
var Et = 48, Rt = 57, cr = (e) => {
var wt = 48, Ct = 57, lr = (e) => {
if (e === void 0)

@@ -410,10 +404,10 @@ return "_unknown";

var r = e.charCodeAt(0);
return r >= Et && r <= Rt ? `_${e}` : e;
return r >= wt && r <= Ct ? `_${e}` : e;
};
function vr(e, r) {
return e = cr(e), { [e]: function() {
function cr(e, r) {
return e = lr(e), { [e]: function() {
return r.apply(this, arguments);
} }[e];
}
var dr = (e, r, t) => {
var vr = (e, r, t) => {
if (e[r].overloadTable === void 0) {

@@ -425,7 +419,7 @@ var n = e[r];

}
}, pr = (e, r, t) => {
f.hasOwnProperty(e) ? ((t === void 0 || f[e].overloadTable !== void 0 && f[e].overloadTable[t] !== void 0) && $(`Cannot register public name '${e}' twice`), dr(f, e, e), f.hasOwnProperty(t) && $(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`), f[e].overloadTable[t] = r) : (f[e] = r, t !== void 0 && (f[e].numArguments = t));
}, dr = (e, r, t) => {
f.hasOwnProperty(e) ? ((t === void 0 || f[e].overloadTable !== void 0 && f[e].overloadTable[t] !== void 0) && $(`Cannot register public name '${e}' twice`), vr(f, e, e), f.hasOwnProperty(t) && $(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`), f[e].overloadTable[t] = r) : (f[e] = r, t !== void 0 && (f[e].numArguments = t));
};
function St(e, r, t, n, i, a, o, s) {
this.name = e, this.constructor = r, this.instancePrototype = t, this.rawDestructor = n, this.baseClass = i, this.getActualType = a, this.upcast = o, this.downcast = s, this.pureVirtualFunctions = [];
function Pt(e, r, t, n, i, a, s, o) {
this.name = e, this.constructor = r, this.instancePrototype = t, this.rawDestructor = n, this.baseClass = i, this.getActualType = a, this.upcast = s, this.downcast = o, this.pureVirtualFunctions = [];
}

@@ -437,3 +431,3 @@ var Ue = (e, r, t) => {

};
function Ft(e, r) {
function Tt(e, r) {
if (r === null)

@@ -445,3 +439,3 @@ return this.isReference && $(`null is not a valid ${this.name}`), 0;

}
function Dt(e, r) {
function At(e, r) {
var t;

@@ -465,3 +459,3 @@ if (r === null)

var i = r.clone();
t = this.rawShare(t, z.toHandle(() => i.delete())), e !== null && e.push(this.rawDestructor, t);
t = this.rawShare(t, N.toHandle(() => i.delete())), e !== null && e.push(this.rawDestructor, t);
}

@@ -474,3 +468,3 @@ break;

}
function kt(e, r) {
function Et(e, r) {
if (r === null)

@@ -485,43 +479,41 @@ return this.isReference && $(`null is not a valid ${this.name}`), 0;

}
function Ot(e) {
return this.rawGetPointee && (e = this.rawGetPointee(e)), e;
}
function Wt(e) {
this.rawDestructor && this.rawDestructor(e);
}
var jt = (e) => {
e !== null && e.delete();
}, Ht = () => {
Y.prototype.getPointee = Ot, Y.prototype.destructor = Wt, Y.prototype.argPackAdvance = x, Y.prototype.readValueFromPointer = hr, Y.prototype.deleteObject = jt, Y.prototype.fromWireType = bt;
var St = () => {
Object.assign(Te.prototype, { getPointee(e) {
return this.rawGetPointee && (e = this.rawGetPointee(e)), e;
}, destructor(e) {
this.rawDestructor && this.rawDestructor(e);
}, argPackAdvance: x, readValueFromPointer: hr, deleteObject(e) {
e !== null && e.delete();
}, fromWireType: $t });
};
function Y(e, r, t, n, i, a, o, s, u, l, v) {
this.name = e, this.registeredClass = r, this.isReference = t, this.isConst = n, this.isSmartPointer = i, this.pointeeType = a, this.sharingPolicy = o, this.rawGetPointee = s, this.rawConstructor = u, this.rawShare = l, this.rawDestructor = v, !i && r.baseClass === void 0 ? n ? (this.toWireType = Ft, this.destructorFunction = null) : (this.toWireType = kt, this.destructorFunction = null) : this.toWireType = Dt;
function Te(e, r, t, n, i, a, s, o, u, l, v) {
this.name = e, this.registeredClass = r, this.isReference = t, this.isConst = n, this.isSmartPointer = i, this.pointeeType = a, this.sharingPolicy = s, this.rawGetPointee = o, this.rawConstructor = u, this.rawShare = l, this.rawDestructor = v, !i && r.baseClass === void 0 ? n ? (this.toWireType = Tt, this.destructorFunction = null) : (this.toWireType = Et, this.destructorFunction = null) : this.toWireType = At;
}
var _r = (e, r, t) => {
f.hasOwnProperty(e) || Pe("Replacing nonexistant public symbol"), f[e].overloadTable !== void 0 && t !== void 0 ? f[e].overloadTable[t] = r : (f[e] = r, f[e].argCount = t);
}, Mt = (e, r, t) => {
var pr = (e, r, t) => {
f.hasOwnProperty(e) || we("Replacing nonexistant public symbol"), f[e].overloadTable !== void 0 && t !== void 0 ? f[e].overloadTable[t] = r : (f[e] = r, f[e].argCount = t);
}, Ft = (e, r, t) => {
var n = f["dynCall_" + e];
return t && t.length ? n.apply(null, [r].concat(t)) : n.call(null, r);
}, Ae = [], b = (e) => {
}, Ae = [], _r, b = (e) => {
var r = Ae[e];
return r || (e >= Ae.length && (Ae.length = e + 1), Ae[e] = r = Je.get(e)), r;
}, It = (e, r, t) => {
return r || (e >= Ae.length && (Ae.length = e + 1), Ae[e] = r = _r.get(e)), r;
}, Rt = (e, r, t) => {
if (e.includes("j"))
return Mt(e, r, t);
return Ft(e, r, t);
var n = b(r).apply(null, t);
return n;
}, Ut = (e, r) => {
}, Dt = (e, r) => {
var t = [];
return function() {
return t.length = 0, Object.assign(t, arguments), It(e, r, t);
return t.length = 0, Object.assign(t, arguments), Rt(e, r, t);
};
}, W = (e, r) => {
}, j = (e, r) => {
e = D(e);
function t() {
return e.includes("j") ? Ut(e, r) : b(r);
return e.includes("j") ? Dt(e, r) : b(r);
}
var n = t();
return typeof n != "function" && $(`unknown function pointer with signature ${e}: ${r}`), n;
}, xt = (e, r) => {
var t = vr(r, function(n) {
}, kt = (e, r) => {
var t = cr(r, function(n) {
this.name = r, this.message = n;

@@ -535,11 +527,11 @@ var i = new Error(n).stack;

}, t;
}, gr = void 0, yr = (e) => {
var r = Fr(e), t = D(r);
return V(r), t;
}, gr, yr = (e) => {
var r = Rr(e), t = D(r);
return Y(r), t;
}, Ee = (e, r) => {
var t = [], n = {};
function i(a) {
if (!n[a] && !q[a]) {
if (Ce[a]) {
Ce[a].forEach(i);
if (!n[a] && !Z[a]) {
if (be[a]) {
be[a].forEach(i);
return;

@@ -551,26 +543,26 @@ }

throw r.forEach(i), new gr(`${e}: ` + t.map(yr).join([", "]));
}, Yt = (e, r, t, n, i, a, o, s, u, l, v, p, h) => {
v = D(v), a = W(i, a), s && (s = W(o, s)), l && (l = W(u, l)), h = W(p, h);
var m = cr(v);
pr(m, function() {
}, Ot = (e, r, t, n, i, a, s, o, u, l, v, h, p) => {
v = D(v), a = j(i, a), o && (o = j(s, o)), l && (l = j(u, l)), p = j(h, p);
var m = lr(v);
dr(m, function() {
Ee(`Cannot construct ${v} due to unbound types`, [n]);
}), J([e, r, t], n ? [n] : [], function(w) {
}), G([e, r, t], n ? [n] : [], function(w) {
w = w[0];
var R, C;
n ? (R = w.registeredClass, C = R.instancePrototype) : C = N.prototype;
var S = vr(m, function() {
var S, C;
n ? (S = w.registeredClass, C = S.instancePrototype) : C = Pe.prototype;
var F = cr(m, function() {
if (Object.getPrototypeOf(this) !== c)
throw new te("Use 'new' to construct " + v);
throw new ee("Use 'new' to construct " + v);
if (d.constructor_body === void 0)
throw new te(v + " has no accessible constructor");
var Fe = d.constructor_body[arguments.length];
if (Fe === void 0)
throw new te(`Tried to invoke ctor of ${v} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);
return Fe.apply(this, arguments);
}), c = Object.create(C, { constructor: { value: S } });
S.prototype = c;
var d = new St(v, S, c, h, R, a, s, l);
throw new ee(v + " has no accessible constructor");
var Re = d.constructor_body[arguments.length];
if (Re === void 0)
throw new ee(`Tried to invoke ctor of ${v} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);
return Re.apply(this, arguments);
}), c = Object.create(C, { constructor: { value: F } });
F.prototype = c;
var d = new Pt(v, F, c, p, S, a, o, l);
d.baseClass && (d.baseClass.__derivedClasses === void 0 && (d.baseClass.__derivedClasses = []), d.baseClass.__derivedClasses.push(d));
var A = new Y(v, d, !0, !1, !1), E = new Y(v + "*", d, !1, !1, !1), K = new Y(v + " const*", d, !1, !0, !1);
return lr[e] = { pointerType: E, constPointerType: K }, _r(m, S), [A, E, K];
var A = new Te(v, d, !0, !1, !1), E = new Te(v + "*", d, !1, !1, !1), q = new Te(v + " const*", d, !1, !0, !1);
return fr[e] = { pointerType: E, constPointerType: q }, pr(m, F), [A, E, q];
});

@@ -583,5 +575,5 @@ }, xe = (e, r) => {

function Ye(e, r, t, n, i, a) {
var o = r.length;
o < 2 && $("argTypes array size mismatch! Must at least get return value and 'this' types!");
for (var s = r[1] !== null && t !== null, u = !1, l = 1; l < r.length; ++l)
var s = r.length;
s < 2 && $("argTypes array size mismatch! Must at least get return value and 'this' types!");
for (var o = r[1] !== null && t !== null, u = !1, l = 1; l < r.length; ++l)
if (r[l] !== null && r[l].destructorFunction === void 0) {

@@ -591,16 +583,16 @@ u = !0;

}
var v = r[0].name !== "void", p = o - 2, h = new Array(p), m = [], w = [];
var v = r[0].name !== "void", h = s - 2, p = new Array(h), m = [], w = [];
return function() {
arguments.length !== p && $(`function ${e} called with ${arguments.length} arguments, expected ${p}`), w.length = 0;
var R;
m.length = s ? 2 : 1, m[0] = i, s && (R = r[1].toWireType(w, this), m[1] = R);
for (var C = 0; C < p; ++C)
h[C] = r[C + 2].toWireType(w, arguments[C]), m.push(h[C]);
var S = n.apply(null, m);
arguments.length !== h && $(`function ${e} called with ${arguments.length} arguments, expected ${h}`), w.length = 0;
var S;
m.length = o ? 2 : 1, m[0] = i, o && (S = r[1].toWireType(w, this), m[1] = S);
for (var C = 0; C < h; ++C)
p[C] = r[C + 2].toWireType(w, arguments[C]), m.push(p[C]);
var F = n.apply(null, m);
function c(d) {
if (u)
ir(w);
nr(w);
else
for (var A = s ? 1 : 2; A < r.length; A++) {
var E = A === 1 ? R : h[A - 2];
for (var A = o ? 1 : 2; A < r.length; A++) {
var E = A === 1 ? S : p[A - 2];
r[A].destructorFunction !== null && r[A].destructorFunction(E);

@@ -611,28 +603,28 @@ }

}
return c(S);
return c(F);
};
}
var Vt = (e, r, t, n, i, a) => {
var o = xe(r, t);
i = W(n, i), J([], [e], function(s) {
s = s[0];
var u = `constructor ${s.name}`;
if (s.registeredClass.constructor_body === void 0 && (s.registeredClass.constructor_body = []), s.registeredClass.constructor_body[r - 1] !== void 0)
throw new te(`Cannot register multiple constructors with identical number of parameters (${r - 1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
return s.registeredClass.constructor_body[r - 1] = () => {
Ee(`Cannot construct ${s.name} due to unbound types`, o);
}, J([], o, (l) => (l.splice(1, 0, null), s.registeredClass.constructor_body[r - 1] = Ye(u, l, null, i, a), [])), [];
var jt = (e, r, t, n, i, a) => {
var s = xe(r, t);
i = j(n, i), G([], [e], function(o) {
o = o[0];
var u = `constructor ${o.name}`;
if (o.registeredClass.constructor_body === void 0 && (o.registeredClass.constructor_body = []), o.registeredClass.constructor_body[r - 1] !== void 0)
throw new ee(`Cannot register multiple constructors with identical number of parameters (${r - 1}) for class '${o.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
return o.registeredClass.constructor_body[r - 1] = () => {
Ee(`Cannot construct ${o.name} due to unbound types`, s);
}, G([], s, (l) => (l.splice(1, 0, null), o.registeredClass.constructor_body[r - 1] = Ye(u, l, null, i, a), [])), [];
});
}, Bt = (e, r, t, n, i, a, o, s, u) => {
}, Wt = (e, r, t, n, i, a, s, o, u) => {
var l = xe(t, n);
r = D(r), a = W(i, a), J([], [e], function(v) {
r = D(r), a = j(i, a), G([], [e], function(v) {
v = v[0];
var p = `${v.name}.${r}`;
r.startsWith("@@") && (r = Symbol[r.substring(2)]), s && v.registeredClass.pureVirtualFunctions.push(r);
function h() {
Ee(`Cannot call ${p} due to unbound types`, l);
var h = `${v.name}.${r}`;
r.startsWith("@@") && (r = Symbol[r.substring(2)]), o && v.registeredClass.pureVirtualFunctions.push(r);
function p() {
Ee(`Cannot call ${h} due to unbound types`, l);
}
var m = v.registeredClass.instancePrototype, w = m[r];
return w === void 0 || w.overloadTable === void 0 && w.className !== v.name && w.argCount === t - 2 ? (h.argCount = t - 2, h.className = v.name, m[r] = h) : (dr(m, r, p), m[r].overloadTable[t - 2] = h), J([], l, function(R) {
var C = Ye(p, R, v, a, o);
return w === void 0 || w.overloadTable === void 0 && w.className !== v.name && w.argCount === t - 2 ? (p.argCount = t - 2, p.className = v.name, m[r] = p) : (vr(m, r, h), m[r].overloadTable[t - 2] = p), G([], l, function(S) {
var C = Ye(h, S, v, a, s);
return m[r].overloadTable === void 0 ? (C.argCount = t - 2, m[r] = C) : m[r].overloadTable[t - 2] = C, [];

@@ -642,3 +634,3 @@ }), [];

};
function Lt() {
function Mt() {
Object.assign(mr.prototype, { get(e) {

@@ -660,9 +652,9 @@ return this.allocated[e];

e >= O.reserved && --O.get(e).refcount === 0 && O.free(e);
}, Nt = () => {
}, Ht = () => {
for (var e = 0, r = O.reserved; r < O.allocated.length; ++r)
O.allocated[r] !== void 0 && ++e;
return e;
}, zt = () => {
O.allocated.push({ value: void 0 }, { value: null }, { value: !0 }, { value: !1 }), O.reserved = O.allocated.length, f.count_emval_handles = Nt;
}, z = { toValue: (e) => (e || $("Cannot use deleted val. handle = " + e), O.get(e).value), toHandle: (e) => {
}, It = () => {
O.allocated.push({ value: void 0 }, { value: null }, { value: !0 }, { value: !1 }), O.reserved = O.allocated.length, f.count_emval_handles = Ht;
}, N = { toValue: (e) => (e || $("Cannot use deleted val. handle = " + e), O.get(e).value), toHandle: (e) => {
switch (e) {

@@ -680,7 +672,7 @@ case void 0:

}
} }, Xt = (e, r) => {
} }, Ut = (e, r) => {
r = D(r), U(e, { name: r, fromWireType: (t) => {
var n = z.toValue(t);
var n = N.toValue(t);
return $r(t), n;
}, toWireType: (t, n) => z.toHandle(n), argPackAdvance: x, readValueFromPointer: je, destructorFunction: null });
}, toWireType: (t, n) => N.toHandle(n), argPackAdvance: x, readValueFromPointer: We, destructorFunction: null });
}, Ve = (e) => {

@@ -691,3 +683,3 @@ if (e === null)

return r === "object" || r === "array" || r === "function" ? e.toString() : "" + e;
}, Zt = (e, r) => {
}, xt = (e, r) => {
switch (r) {

@@ -705,42 +697,42 @@ case 4:

}
}, Gt = (e, r, t) => {
r = D(r), U(e, { name: r, fromWireType: (n) => n, toWireType: (n, i) => i, argPackAdvance: x, readValueFromPointer: Zt(r, t), destructorFunction: null });
}, qt = (e, r, t, n, i, a, o) => {
var s = xe(r, t);
e = D(e), i = W(n, i), pr(e, function() {
Ee(`Cannot call ${e} due to unbound types`, s);
}, r - 1), J([], s, function(u) {
}, Yt = (e, r, t) => {
r = D(r), U(e, { name: r, fromWireType: (n) => n, toWireType: (n, i) => i, argPackAdvance: x, readValueFromPointer: xt(r, t), destructorFunction: null });
}, Vt = (e, r, t, n, i, a, s) => {
var o = xe(r, t);
e = D(e), i = j(n, i), dr(e, function() {
Ee(`Cannot call ${e} due to unbound types`, o);
}, r - 1), G([], o, function(u) {
var l = [u[0], null].concat(u.slice(1));
return _r(e, Ye(e, l, null, i, a), r - 1), [];
return pr(e, Ye(e, l, null, i, a), r - 1), [];
});
}, Jt = (e, r, t) => {
}, Bt = (e, r, t) => {
switch (r) {
case 1:
return t ? (n) => M[n >> 0] : (n) => k[n >> 0];
return t ? (n) => H[n >> 0] : (n) => k[n >> 0];
case 2:
return t ? (n) => ae[n >> 1] : (n) => ge[n >> 1];
return t ? (n) => ne[n >> 1] : (n) => pe[n >> 1];
case 4:
return t ? (n) => F[n >> 2] : (n) => P[n >> 2];
return t ? (n) => R[n >> 2] : (n) => P[n >> 2];
default:
throw new TypeError(`invalid integer width (${r}): ${e}`);
}
}, Kt = (e, r, t, n, i) => {
}, Nt = (e, r, t, n, i) => {
r = D(r);
var a = (v) => v;
if (n === 0) {
var o = 32 - 8 * t;
a = (v) => v << o >>> o;
var s = 32 - 8 * t;
a = (v) => v << s >>> s;
}
var s = r.includes("unsigned"), u = (v, p) => {
var o = r.includes("unsigned"), u = (v, h) => {
}, l;
s ? l = function(v, p) {
return u(p, this.name), p >>> 0;
} : l = function(v, p) {
return u(p, this.name), p;
}, U(e, { name: r, fromWireType: a, toWireType: l, argPackAdvance: x, readValueFromPointer: Jt(r, t, n !== 0), destructorFunction: null });
}, Qt = (e, r, t) => {
o ? l = function(v, h) {
return u(h, this.name), h >>> 0;
} : l = function(v, h) {
return u(h, this.name), h;
}, U(e, { name: r, fromWireType: a, toWireType: l, argPackAdvance: x, readValueFromPointer: Bt(r, t, n !== 0), destructorFunction: null });
}, Lt = (e, r, t) => {
var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], i = n[r];
function a(o) {
var s = P[o >> 2], u = P[o + 4 >> 2];
return new i(M.buffer, u, s);
function a(s) {
var o = P[s >> 2], u = P[s + 4 >> 2];
return new i(H.buffer, u, o);
}

@@ -751,28 +743,28 @@ t = D(t), U(e, { name: t, fromWireType: a, argPackAdvance: x, readValueFromPointer: a }, { ignoreDuplicateRegistrations: !0 });

return 0;
for (var i = t, a = t + n - 1, o = 0; o < e.length; ++o) {
var s = e.charCodeAt(o);
if (s >= 55296 && s <= 57343) {
var u = e.charCodeAt(++o);
s = 65536 + ((s & 1023) << 10) | u & 1023;
for (var i = t, a = t + n - 1, s = 0; s < e.length; ++s) {
var o = e.charCodeAt(s);
if (o >= 55296 && o <= 57343) {
var u = e.charCodeAt(++s);
o = 65536 + ((o & 1023) << 10) | u & 1023;
}
if (s <= 127) {
if (o <= 127) {
if (t >= a)
break;
r[t++] = s;
} else if (s <= 2047) {
r[t++] = o;
} else if (o <= 2047) {
if (t + 1 >= a)
break;
r[t++] = 192 | s >> 6, r[t++] = 128 | s & 63;
} else if (s <= 65535) {
r[t++] = 192 | o >> 6, r[t++] = 128 | o & 63;
} else if (o <= 65535) {
if (t + 2 >= a)
break;
r[t++] = 224 | s >> 12, r[t++] = 128 | s >> 6 & 63, r[t++] = 128 | s & 63;
r[t++] = 224 | o >> 12, r[t++] = 128 | o >> 6 & 63, r[t++] = 128 | o & 63;
} else {
if (t + 3 >= a)
break;
r[t++] = 240 | s >> 18, r[t++] = 128 | s >> 12 & 63, r[t++] = 128 | s >> 6 & 63, r[t++] = 128 | s & 63;
r[t++] = 240 | o >> 18, r[t++] = 128 | o >> 12 & 63, r[t++] = 128 | o >> 6 & 63, r[t++] = 128 | o & 63;
}
}
return r[t] = 0, t - i;
}, en = (e, r, t) => br(e, k, r, t), wr = (e) => {
}, zt = (e, r, t) => br(e, k, r, t), wr = (e) => {
for (var r = 0, t = 0; t < e.length; ++t) {

@@ -783,3 +775,3 @@ var n = e.charCodeAt(t);

return r;
}, Cr = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, rn = (e, r, t) => {
}, Cr = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, Xt = (e, r, t) => {
for (var n = r + t, i = r; e[i] && !(i >= n); )

@@ -790,17 +782,17 @@ ++i;

for (var a = ""; r < i; ) {
var o = e[r++];
if (!(o & 128)) {
a += String.fromCharCode(o);
var s = e[r++];
if (!(s & 128)) {
a += String.fromCharCode(s);
continue;
}
var s = e[r++] & 63;
if ((o & 224) == 192) {
a += String.fromCharCode((o & 31) << 6 | s);
var o = e[r++] & 63;
if ((s & 224) == 192) {
a += String.fromCharCode((s & 31) << 6 | o);
continue;
}
var u = e[r++] & 63;
if ((o & 240) == 224 ? o = (o & 15) << 12 | s << 6 | u : o = (o & 7) << 18 | s << 12 | u << 6 | e[r++] & 63, o < 65536)
a += String.fromCharCode(o);
if ((s & 240) == 224 ? s = (s & 15) << 12 | o << 6 | u : s = (s & 7) << 18 | o << 12 | u << 6 | e[r++] & 63, s < 65536)
a += String.fromCharCode(s);
else {
var l = o - 65536;
var l = s - 65536;
a += String.fromCharCode(55296 | l >> 10, 56320 | l & 1023);

@@ -810,32 +802,32 @@ }

return a;
}, Be = (e, r) => e ? rn(k, e, r) : "", tn = (e, r) => {
}, Be = (e, r) => e ? Xt(k, e, r) : "", Zt = (e, r) => {
r = D(r);
var t = r === "std::string";
U(e, { name: r, fromWireType: (n) => {
var i = P[n >> 2], a = n + 4, o;
U(e, { name: r, fromWireType(n) {
var i = P[n >> 2], a = n + 4, s;
if (t)
for (var s = a, u = 0; u <= i; ++u) {
for (var o = a, u = 0; u <= i; ++u) {
var l = a + u;
if (u == i || k[l] == 0) {
var v = l - s, p = Be(s, v);
o === void 0 ? o = p : (o += String.fromCharCode(0), o += p), s = l + 1;
var v = l - o, h = Be(o, v);
s === void 0 ? s = h : (s += String.fromCharCode(0), s += h), o = l + 1;
}
}
else {
for (var h = new Array(i), u = 0; u < i; ++u)
h[u] = String.fromCharCode(k[a + u]);
o = h.join("");
for (var p = new Array(i), u = 0; u < i; ++u)
p[u] = String.fromCharCode(k[a + u]);
s = p.join("");
}
return V(n), o;
}, toWireType: (n, i) => {
return Y(n), s;
}, toWireType(n, i) {
i instanceof ArrayBuffer && (i = new Uint8Array(i));
var a, o = typeof i == "string";
o || i instanceof Uint8Array || i instanceof Uint8ClampedArray || i instanceof Int8Array || $("Cannot pass non-string to std::string"), t && o ? a = wr(i) : a = i.length;
var s = Ne(4 + a + 1), u = s + 4;
if (P[s >> 2] = a, t && o)
en(i, u, a + 1);
else if (o)
var a, s = typeof i == "string";
s || i instanceof Uint8Array || i instanceof Uint8ClampedArray || i instanceof Int8Array || $("Cannot pass non-string to std::string"), t && s ? a = wr(i) : a = i.length;
var o = Le(4 + a + 1), u = o + 4;
if (P[o >> 2] = a, t && s)
zt(i, u, a + 1);
else if (s)
for (var l = 0; l < a; ++l) {
var v = i.charCodeAt(l);
v > 255 && (V(u), $("String has UTF-16 code units that do not fit in 8 bits")), k[u + l] = v;
v > 255 && (Y(u), $("String has UTF-16 code units that do not fit in 8 bits")), k[u + l] = v;
}

@@ -845,17 +837,19 @@ else

k[u + l] = i[l];
return n !== null && n.push(V, s), s;
}, argPackAdvance: x, readValueFromPointer: hr, destructorFunction: (n) => V(n) });
}, Pr = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, nn = (e, r) => {
for (var t = e, n = t >> 1, i = n + r / 2; !(n >= i) && ge[n]; )
return n !== null && n.push(Y, o), o;
}, argPackAdvance: x, readValueFromPointer: hr, destructorFunction(n) {
Y(n);
} });
}, Pr = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, Gt = (e, r) => {
for (var t = e, n = t >> 1, i = n + r / 2; !(n >= i) && pe[n]; )
++n;
if (t = n << 1, t - e > 32 && Pr)
return Pr.decode(k.subarray(e, t));
for (var a = "", o = 0; !(o >= r / 2); ++o) {
var s = ae[e + o * 2 >> 1];
if (s == 0)
for (var a = "", s = 0; !(s >= r / 2); ++s) {
var o = ne[e + s * 2 >> 1];
if (o == 0)
break;
a += String.fromCharCode(s);
a += String.fromCharCode(o);
}
return a;
}, an = (e, r, t) => {
}, qt = (e, r, t) => {
if (t === void 0 && (t = 2147483647), t < 2)

@@ -865,9 +859,9 @@ return 0;

for (var n = r, i = t < e.length * 2 ? t / 2 : e.length, a = 0; a < i; ++a) {
var o = e.charCodeAt(a);
ae[r >> 1] = o, r += 2;
var s = e.charCodeAt(a);
ne[r >> 1] = s, r += 2;
}
return ae[r >> 1] = 0, r - n;
}, on = (e) => e.length * 2, sn = (e, r) => {
return ne[r >> 1] = 0, r - n;
}, Jt = (e) => e.length * 2, Kt = (e, r) => {
for (var t = 0, n = ""; !(t >= r / 4); ) {
var i = F[e + t * 4 >> 2];
var i = R[e + t * 4 >> 2];
if (i == 0)

@@ -882,16 +876,16 @@ break;

return n;
}, un = (e, r, t) => {
}, Qt = (e, r, t) => {
if (t === void 0 && (t = 2147483647), t < 4)
return 0;
for (var n = r, i = n + t - 4, a = 0; a < e.length; ++a) {
var o = e.charCodeAt(a);
if (o >= 55296 && o <= 57343) {
var s = e.charCodeAt(++a);
o = 65536 + ((o & 1023) << 10) | s & 1023;
var s = e.charCodeAt(a);
if (s >= 55296 && s <= 57343) {
var o = e.charCodeAt(++a);
s = 65536 + ((s & 1023) << 10) | o & 1023;
}
if (F[r >> 2] = o, r += 4, r + 4 > i)
if (R[r >> 2] = s, r += 4, r + 4 > i)
break;
}
return F[r >> 2] = 0, r - n;
}, fn = (e) => {
return R[r >> 2] = 0, r - n;
}, en = (e) => {
for (var r = 0, t = 0; t < e.length; ++t) {

@@ -902,29 +896,31 @@ var n = e.charCodeAt(t);

return r;
}, ln = (e, r, t) => {
}, rn = (e, r, t) => {
t = D(t);
var n, i, a, o, s;
r === 2 ? (n = nn, i = an, o = on, a = () => ge, s = 1) : r === 4 && (n = sn, i = un, o = fn, a = () => P, s = 2), U(e, { name: t, fromWireType: (u) => {
for (var l = P[u >> 2], v = a(), p, h = u + 4, m = 0; m <= l; ++m) {
var n, i, a, s, o;
r === 2 ? (n = Gt, i = qt, s = Jt, a = () => pe, o = 1) : r === 4 && (n = Kt, i = Qt, s = en, a = () => P, o = 2), U(e, { name: t, fromWireType: (u) => {
for (var l = P[u >> 2], v = a(), h, p = u + 4, m = 0; m <= l; ++m) {
var w = u + 4 + m * r;
if (m == l || v[w >> s] == 0) {
var R = w - h, C = n(h, R);
p === void 0 ? p = C : (p += String.fromCharCode(0), p += C), h = w + r;
if (m == l || v[w >> o] == 0) {
var S = w - p, C = n(p, S);
h === void 0 ? h = C : (h += String.fromCharCode(0), h += C), p = w + r;
}
}
return V(u), p;
return Y(u), h;
}, toWireType: (u, l) => {
typeof l != "string" && $(`Cannot pass non-string to C++ string type ${t}`);
var v = o(l), p = Ne(4 + v + r);
return P[p >> 2] = v >> s, i(l, p + 4, v + r), u !== null && u.push(V, p), p;
}, argPackAdvance: x, readValueFromPointer: je, destructorFunction: (u) => V(u) });
}, cn = (e, r, t, n, i, a) => {
we[e] = { name: D(r), rawConstructor: W(t, n), rawDestructor: W(i, a), fields: [] };
}, vn = (e, r, t, n, i, a, o, s, u, l) => {
we[e].fields.push({ fieldName: D(r), getterReturnType: t, getter: W(n, i), getterContext: a, setterArgumentType: o, setter: W(s, u), setterContext: l });
}, dn = (e, r) => {
var v = s(l), h = Le(4 + v + r);
return P[h >> 2] = v >> o, i(l, h + 4, v + r), u !== null && u.push(Y, h), h;
}, argPackAdvance: x, readValueFromPointer: We, destructorFunction(u) {
Y(u);
} });
}, tn = (e, r, t, n, i, a) => {
$e[e] = { name: D(r), rawConstructor: j(t, n), rawDestructor: j(i, a), fields: [] };
}, nn = (e, r, t, n, i, a, s, o, u, l) => {
$e[e].fields.push({ fieldName: D(r), getterReturnType: t, getter: j(n, i), getterContext: a, setterArgumentType: s, setter: j(o, u), setterContext: l });
}, an = (e, r) => {
r = D(r), U(e, { isVoid: !0, name: r, argPackAdvance: 0, fromWireType: () => {
}, toWireType: (t, n) => {
} });
}, pn = {}, hn = (e) => {
var r = pn[e];
}, sn = {}, on = (e) => {
var r = sn[e];
return r === void 0 ? D(e) : r;

@@ -942,8 +938,8 @@ }, Tr = () => {

throw Error("unable to get global object.");
}, _n = (e) => e === 0 ? z.toHandle(Tr()) : (e = hn(e), z.toHandle(Tr()[e])), gn = (e) => {
}, un = (e) => e === 0 ? N.toHandle(Tr()) : (e = on(e), N.toHandle(Tr()[e])), fn = (e) => {
e > 4 && (O.get(e).refcount += 1);
}, Ar = (e, r) => {
var t = q[e];
var t = Z[e];
return t === void 0 && $(r + " has unknown type " + yr(e)), t;
}, yn = (e) => {
}, ln = (e) => {
var r = new Array(e + 1);

@@ -953,28 +949,28 @@ return function(t, n, i) {

for (var a = 0; a < e; ++a) {
var o = Ar(P[n + a * 4 >> 2], "parameter " + a);
r[a + 1] = o.readValueFromPointer(i), i += o.argPackAdvance;
var s = Ar(P[n + a * 4 >> 2], "parameter " + a);
r[a + 1] = s.readValueFromPointer(i), i += s.argPackAdvance;
}
var s = new (t.bind.apply(t, r))();
return z.toHandle(s);
var o = new (t.bind.apply(t, r))();
return N.toHandle(o);
};
}, Er = {}, mn = (e, r, t, n) => {
e = z.toValue(e);
}, Er = {}, cn = (e, r, t, n) => {
e = N.toValue(e);
var i = Er[r];
return i || (i = yn(r), Er[r] = i), i(e, t, n);
}, $n = (e, r) => {
return i || (i = ln(r), Er[r] = i), i(e, t, n);
}, vn = (e, r) => {
e = Ar(e, "_emval_take_value");
var t = e.readValueFromPointer(r);
return z.toHandle(t);
}, bn = () => {
ye("");
}, wn = (e, r, t) => k.copyWithin(e, r, r + t), Cn = () => 2147483648, Pn = (e) => {
var r = _e.buffer, t = (e - r.byteLength + 65535) / 65536;
return N.toHandle(t);
}, dn = () => {
_e("");
}, hn = (e, r, t) => k.copyWithin(e, r, r + t), pn = () => 2147483648, _n = (e) => {
var r = he.buffer, t = (e - r.byteLength + 65535) / 65536;
try {
return _e.grow(t), qe(), 1;
return he.grow(t), qe(), 1;
} catch {
}
}, Tn = (e) => {
}, gn = (e) => {
var r = k.length;
e >>>= 0;
var t = Cn();
var t = pn();
if (e > t)

@@ -985,40 +981,40 @@ return !1;

a = Math.min(a, e + 100663296);
var o = Math.min(t, n(Math.max(e, a), 65536)), s = Pn(o);
if (s)
var s = Math.min(t, n(Math.max(e, a), 65536)), o = _n(s);
if (o)
return !0;
}
return !1;
}, Le = {}, An = () => pe || "./this.program", ce = () => {
if (!ce.strings) {
var e = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", r = { USER: "web_user", LOGNAME: "web_user", PATH: "/", PWD: "/", HOME: "/home/web_user", LANG: e, _: An() };
for (var t in Le)
Le[t] === void 0 ? delete r[t] : r[t] = Le[t];
}, Ne = {}, yn = () => ve || "./this.program", fe = () => {
if (!fe.strings) {
var e = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", r = { USER: "web_user", LOGNAME: "web_user", PATH: "/", PWD: "/", HOME: "/home/web_user", LANG: e, _: yn() };
for (var t in Ne)
Ne[t] === void 0 ? delete r[t] : r[t] = Ne[t];
var n = [];
for (var t in r)
n.push(`${t}=${r[t]}`);
ce.strings = n;
fe.strings = n;
}
return ce.strings;
}, En = (e, r) => {
return fe.strings;
}, mn = (e, r) => {
for (var t = 0; t < e.length; ++t)
M[r++ >> 0] = e.charCodeAt(t);
M[r >> 0] = 0;
}, Rn = (e, r) => {
H[r++ >> 0] = e.charCodeAt(t);
H[r >> 0] = 0;
}, $n = (e, r) => {
var t = 0;
return ce().forEach((n, i) => {
return fe().forEach((n, i) => {
var a = r + t;
P[e + i * 4 >> 2] = a, En(n, a), t += n.length + 1;
P[e + i * 4 >> 2] = a, mn(n, a), t += n.length + 1;
}), 0;
}, Sn = (e, r) => {
var t = ce();
}, bn = (e, r) => {
var t = fe();
P[e >> 2] = t.length;
var n = 0;
return t.forEach((i) => n += i.length + 1), P[r >> 2] = n, 0;
}, Fn = (e) => e, Re = (e) => e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0), Dn = (e, r) => {
}, wn = (e) => e, Se = (e) => e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0), Cn = (e, r) => {
for (var t = 0, n = 0; n <= r; t += e[n++])
;
return t;
}, Rr = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Sr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], kn = (e, r) => {
}, Sr = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Fr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Pn = (e, r) => {
for (var t = new Date(e.getTime()); r > 0; ) {
var n = Re(t.getFullYear()), i = t.getMonth(), a = (n ? Rr : Sr)[i];
var n = Se(t.getFullYear()), i = t.getMonth(), a = (n ? Sr : Fr)[i];
if (r > a - t.getDate())

@@ -1031,14 +1027,14 @@ r -= a - t.getDate() + 1, t.setDate(1), i < 11 ? t.setMonth(i + 1) : (t.setMonth(0), t.setFullYear(t.getFullYear() + 1));

};
function On(e, r, t) {
function Tn(e, r, t) {
var n = t > 0 ? t : wr(e) + 1, i = new Array(n), a = br(e, i, 0, i.length);
return r && (i.length = a), i;
}
var Wn = (e, r) => {
M.set(e, r);
}, jn = (e, r, t, n) => {
var i = P[n + 40 >> 2], a = { tm_sec: F[n >> 2], tm_min: F[n + 4 >> 2], tm_hour: F[n + 8 >> 2], tm_mday: F[n + 12 >> 2], tm_mon: F[n + 16 >> 2], tm_year: F[n + 20 >> 2], tm_wday: F[n + 24 >> 2], tm_yday: F[n + 28 >> 2], tm_isdst: F[n + 32 >> 2], tm_gmtoff: F[n + 36 >> 2], tm_zone: i ? Be(i) : "" }, o = Be(t), s = { "%c": "%a %b %d %H:%M:%S %Y", "%D": "%m/%d/%y", "%F": "%Y-%m-%d", "%h": "%b", "%r": "%I:%M:%S %p", "%R": "%H:%M", "%T": "%H:%M:%S", "%x": "%m/%d/%y", "%X": "%H:%M:%S", "%Ec": "%c", "%EC": "%C", "%Ex": "%m/%d/%y", "%EX": "%H:%M:%S", "%Ey": "%y", "%EY": "%Y", "%Od": "%d", "%Oe": "%e", "%OH": "%H", "%OI": "%I", "%Om": "%m", "%OM": "%M", "%OS": "%S", "%Ou": "%u", "%OU": "%U", "%OV": "%V", "%Ow": "%w", "%OW": "%W", "%Oy": "%y" };
for (var u in s)
o = o.replace(new RegExp(u, "g"), s[u]);
var An = (e, r) => {
H.set(e, r);
}, En = (e, r, t, n) => {
var i = P[n + 40 >> 2], a = { tm_sec: R[n >> 2], tm_min: R[n + 4 >> 2], tm_hour: R[n + 8 >> 2], tm_mday: R[n + 12 >> 2], tm_mon: R[n + 16 >> 2], tm_year: R[n + 20 >> 2], tm_wday: R[n + 24 >> 2], tm_yday: R[n + 28 >> 2], tm_isdst: R[n + 32 >> 2], tm_gmtoff: R[n + 36 >> 2], tm_zone: i ? Be(i) : "" }, s = Be(t), o = { "%c": "%a %b %d %H:%M:%S %Y", "%D": "%m/%d/%y", "%F": "%Y-%m-%d", "%h": "%b", "%r": "%I:%M:%S %p", "%R": "%H:%M", "%T": "%H:%M:%S", "%x": "%m/%d/%y", "%X": "%H:%M:%S", "%Ec": "%c", "%EC": "%C", "%Ex": "%m/%d/%y", "%EX": "%H:%M:%S", "%Ey": "%y", "%EY": "%Y", "%Od": "%d", "%Oe": "%e", "%OH": "%H", "%OI": "%I", "%Om": "%m", "%OM": "%M", "%OS": "%S", "%Ou": "%u", "%OU": "%U", "%OV": "%V", "%Ow": "%w", "%OW": "%W", "%Oy": "%y" };
for (var u in o)
s = s.replace(new RegExp(u, "g"), o[u]);
var l = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], v = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
function p(c, d, A) {
function h(c, d, A) {
for (var E = typeof c == "number" ? c.toString() : c || ""; E.length < d; )

@@ -1048,8 +1044,8 @@ E = A[0] + E;

}
function h(c, d) {
return p(c, d, "0");
function p(c, d) {
return h(c, d, "0");
}
function m(c, d) {
function A(K) {
return K < 0 ? -1 : K > 0 ? 1 : 0;
function A(q) {
return q < 0 ? -1 : q > 0 ? 1 : 0;
}

@@ -1077,16 +1073,16 @@ var E;

}
function R(c) {
var d = kn(new Date(c.tm_year + 1900, 0, 1), c.tm_yday), A = new Date(d.getFullYear(), 0, 4), E = new Date(d.getFullYear() + 1, 0, 4), K = w(A), Fe = w(E);
return m(K, d) <= 0 ? m(Fe, d) <= 0 ? d.getFullYear() + 1 : d.getFullYear() : d.getFullYear() - 1;
function S(c) {
var d = Pn(new Date(c.tm_year + 1900, 0, 1), c.tm_yday), A = new Date(d.getFullYear(), 0, 4), E = new Date(d.getFullYear() + 1, 0, 4), q = w(A), Re = w(E);
return m(q, d) <= 0 ? m(Re, d) <= 0 ? d.getFullYear() + 1 : d.getFullYear() : d.getFullYear() - 1;
}
var C = { "%a": (c) => l[c.tm_wday].substring(0, 3), "%A": (c) => l[c.tm_wday], "%b": (c) => v[c.tm_mon].substring(0, 3), "%B": (c) => v[c.tm_mon], "%C": (c) => {
var d = c.tm_year + 1900;
return h(d / 100 | 0, 2);
}, "%d": (c) => h(c.tm_mday, 2), "%e": (c) => p(c.tm_mday, 2, " "), "%g": (c) => R(c).toString().substring(2), "%G": (c) => R(c), "%H": (c) => h(c.tm_hour, 2), "%I": (c) => {
return p(d / 100 | 0, 2);
}, "%d": (c) => p(c.tm_mday, 2), "%e": (c) => h(c.tm_mday, 2, " "), "%g": (c) => S(c).toString().substring(2), "%G": (c) => S(c), "%H": (c) => p(c.tm_hour, 2), "%I": (c) => {
var d = c.tm_hour;
return d == 0 ? d = 12 : d > 12 && (d -= 12), h(d, 2);
}, "%j": (c) => h(c.tm_mday + Dn(Re(c.tm_year + 1900) ? Rr : Sr, c.tm_mon - 1), 3), "%m": (c) => h(c.tm_mon + 1, 2), "%M": (c) => h(c.tm_min, 2), "%n": () => `
`, "%p": (c) => c.tm_hour >= 0 && c.tm_hour < 12 ? "AM" : "PM", "%S": (c) => h(c.tm_sec, 2), "%t": () => " ", "%u": (c) => c.tm_wday || 7, "%U": (c) => {
return d == 0 ? d = 12 : d > 12 && (d -= 12), p(d, 2);
}, "%j": (c) => p(c.tm_mday + Cn(Se(c.tm_year + 1900) ? Sr : Fr, c.tm_mon - 1), 3), "%m": (c) => p(c.tm_mon + 1, 2), "%M": (c) => p(c.tm_min, 2), "%n": () => `
`, "%p": (c) => c.tm_hour >= 0 && c.tm_hour < 12 ? "AM" : "PM", "%S": (c) => p(c.tm_sec, 2), "%t": () => " ", "%u": (c) => c.tm_wday || 7, "%U": (c) => {
var d = c.tm_yday + 7 - c.tm_wday;
return h(Math.floor(d / 7), 2);
return p(Math.floor(d / 7), 2);
}, "%V": (c) => {

@@ -1097,3 +1093,3 @@ var d = Math.floor((c.tm_yday + 7 - (c.tm_wday + 6) % 7) / 7);

var E = (c.tm_wday + 371 - c.tm_yday) % 7;
E != 4 && (E != 3 || !Re(c.tm_year)) && (d = 1);
E != 4 && (E != 3 || !Se(c.tm_year)) && (d = 1);
}

@@ -1103,8 +1099,8 @@ } else {

var A = (c.tm_wday + 7 - c.tm_yday - 1) % 7;
(A == 4 || A == 5 && Re(c.tm_year % 400 - 1)) && d++;
(A == 4 || A == 5 && Se(c.tm_year % 400 - 1)) && d++;
}
return h(d, 2);
return p(d, 2);
}, "%w": (c) => c.tm_wday, "%W": (c) => {
var d = c.tm_yday + 7 - (c.tm_wday + 6) % 7;
return h(Math.floor(d / 7), 2);
return p(Math.floor(d / 7), 2);
}, "%y": (c) => (c.tm_year + 1900).toString().substring(2), "%Y": (c) => c.tm_year + 1900, "%z": (c) => {

@@ -1114,25 +1110,25 @@ var d = c.tm_gmtoff, A = d >= 0;

}, "%Z": (c) => c.tm_zone, "%%": () => "%" };
o = o.replace(/%%/g, "\0\0");
s = s.replace(/%%/g, "\0\0");
for (var u in C)
o.includes(u) && (o = o.replace(new RegExp(u, "g"), C[u](a)));
o = o.replace(/\0\0/g, "%");
var S = On(o, !1);
return S.length > r ? 0 : (Wn(S, e), S.length - 1);
}, Hn = (e, r, t, n, i) => jn(e, r, t, n);
ar = f.InternalError = class extends Error {
s.includes(u) && (s = s.replace(new RegExp(u, "g"), C[u](a)));
s = s.replace(/\0\0/g, "%");
var F = Tn(s, !1);
return F.length > r ? 0 : (An(F, e), F.length - 1);
}, Sn = (e, r, t, n, i) => En(e, r, t, n);
ir = f.InternalError = class extends Error {
constructor(r) {
super(r), this.name = "InternalError";
}
}, ft(), te = f.BindingError = class extends Error {
}, ft(), ee = f.BindingError = class extends Error {
constructor(r) {
super(r), this.name = "BindingError";
}
}, At(), yt(), Ht(), gr = f.UnboundTypeError = xt(Error, "UnboundTypeError"), Lt(), zt();
var Mn = { r: Jr, v: Kr, a: et, h: rt, m: tt, K: nt, R: it, p: at, ca: ot, d: Qr, oa: st, Z: ut, ga: ct, na: Yt, ma: Vt, E: Bt, fa: Xt, X: Gt, F: qt, y: Kt, t: Qt, W: tn, N: ln, L: cn, pa: vn, ha: dn, V: $r, la: _n, S: gn, ja: mn, ka: $n, M: bn, ea: wn, da: Tn, aa: Rn, ba: Sn, J: ti, U: ci, C: ii, q: Qn, b: In, D: ri, ia: oi, c: Bn, i: Nn, j: Yn, o: ni, Q: ei, w: Kn, I: ui, P: fi, B: ai, H: vi, _: pi, Y: hi, k: Ln, e: Vn, f: xn, g: Un, O: li, l: qn, n: zn, T: Xn, u: Gn, x: Jn, A: si, s: Zn, G: di, z: Fn, $: Hn }, T = qr(), V = f._free = (e) => (V = f._free = T.sa)(e), Ne = f._malloc = (e) => (Ne = f._malloc = T.ta)(e), Fr = (e) => (Fr = T.va)(e);
}, bt(), gt(), St(), gr = f.UnboundTypeError = kt(Error, "UnboundTypeError"), Mt(), It();
var Fn = { r: Jr, v: Kr, a: et, h: rt, m: tt, K: nt, R: it, p: at, ca: st, d: Qr, oa: ot, Z: ut, ga: ct, na: Ot, ma: jt, E: Wt, fa: Ut, X: Yt, F: Vt, y: Nt, t: Lt, W: Zt, N: rn, L: tn, pa: nn, ha: an, V: $r, la: un, S: fn, ja: cn, ka: vn, M: dn, ea: hn, da: gn, aa: $n, ba: bn, J: Zn, U: ni, C: qn, q: Ln, b: Rn, D: Xn, ia: Kn, c: Wn, i: Hn, j: On, o: Gn, Q: zn, w: Nn, I: ei, P: ri, B: Jn, H: ii, _: si, Y: oi, k: Mn, e: jn, f: kn, g: Dn, O: ti, l: Vn, n: In, T: Un, u: Yn, x: Bn, A: Qn, s: xn, G: ai, z: wn, $: Sn }, T = qr(), Y = f._free = (e) => (Y = f._free = T.sa)(e), Le = f._malloc = (e) => (Le = f._malloc = T.ta)(e), Rr = (e) => (Rr = T.va)(e);
f.__embind_initialize_bindings = () => (f.__embind_initialize_bindings = T.wa)();
var _ = (e, r) => (_ = T.xa)(e, r), ve = (e) => (ve = T.ya)(e), g = () => (g = T.za)(), y = (e) => (y = T.Aa)(e), Dr = (e) => (Dr = T.Ba)(e), kr = (e) => (kr = T.Ca)(e), Or = (e, r, t) => (Or = T.Da)(e, r, t), Wr = (e) => (Wr = T.Ea)(e);
f.dynCall_viijii = (e, r, t, n, i, a, o) => (f.dynCall_viijii = T.Fa)(e, r, t, n, i, a, o);
var jr = f.dynCall_jiii = (e, r, t, n) => (jr = f.dynCall_jiii = T.Ga)(e, r, t, n), Hr = f.dynCall_jiiii = (e, r, t, n, i) => (Hr = f.dynCall_jiiii = T.Ha)(e, r, t, n, i);
f.dynCall_iiiiij = (e, r, t, n, i, a, o) => (f.dynCall_iiiiij = T.Ia)(e, r, t, n, i, a, o), f.dynCall_iiiiijj = (e, r, t, n, i, a, o, s, u) => (f.dynCall_iiiiijj = T.Ja)(e, r, t, n, i, a, o, s, u), f.dynCall_iiiiiijj = (e, r, t, n, i, a, o, s, u, l) => (f.dynCall_iiiiiijj = T.Ka)(e, r, t, n, i, a, o, s, u, l);
function In(e, r) {
var _ = (e, r) => (_ = T.xa)(e, r), le = (e) => (le = T.ya)(e), g = () => (g = T.za)(), y = (e) => (y = T.Aa)(e), Dr = (e) => (Dr = T.Ba)(e), kr = (e) => (kr = T.Ca)(e), Or = (e, r, t) => (Or = T.Da)(e, r, t), jr = (e) => (jr = T.Ea)(e);
f.dynCall_viijii = (e, r, t, n, i, a, s) => (f.dynCall_viijii = T.Fa)(e, r, t, n, i, a, s);
var Wr = f.dynCall_jiii = (e, r, t, n) => (Wr = f.dynCall_jiii = T.Ga)(e, r, t, n), Mr = f.dynCall_jiiii = (e, r, t, n, i) => (Mr = f.dynCall_jiiii = T.Ha)(e, r, t, n, i);
f.dynCall_iiiiij = (e, r, t, n, i, a, s) => (f.dynCall_iiiiij = T.Ia)(e, r, t, n, i, a, s), f.dynCall_iiiiijj = (e, r, t, n, i, a, s, o, u) => (f.dynCall_iiiiijj = T.Ja)(e, r, t, n, i, a, s, o, u), f.dynCall_iiiiiijj = (e, r, t, n, i, a, s, o, u, l) => (f.dynCall_iiiiiijj = T.Ka)(e, r, t, n, i, a, s, o, u, l);
function Rn(e, r) {
var t = g();

@@ -1147,3 +1143,3 @@ try {

}
function Un(e, r, t, n) {
function Dn(e, r, t, n) {
var i = g();

@@ -1158,3 +1154,3 @@ try {

}
function xn(e, r, t) {
function kn(e, r, t) {
var n = g();

@@ -1169,13 +1165,13 @@ try {

}
function Yn(e, r, t, n, i) {
function On(e, r, t, n, i) {
var a = g();
try {
return b(e)(r, t, n, i);
} catch (o) {
if (y(a), o !== o + 0)
throw o;
} catch (s) {
if (y(a), s !== s + 0)
throw s;
_(1, 0);
}
}
function Vn(e, r) {
function jn(e, r) {
var t = g();

@@ -1190,3 +1186,3 @@ try {

}
function Bn(e, r, t) {
function Wn(e, r, t) {
var n = g();

@@ -1201,3 +1197,3 @@ try {

}
function Ln(e) {
function Mn(e) {
var r = g();

@@ -1212,3 +1208,3 @@ try {

}
function Nn(e, r, t, n) {
function Hn(e, r, t, n) {
var i = g();

@@ -1223,18 +1219,18 @@ try {

}
function zn(e, r, t, n, i, a) {
var o = g();
function In(e, r, t, n, i, a) {
var s = g();
try {
b(e)(r, t, n, i, a);
} catch (s) {
if (y(o), s !== s + 0)
throw s;
} catch (o) {
if (y(s), o !== o + 0)
throw o;
_(1, 0);
}
}
function Xn(e, r, t, n, i, a, o) {
var s = g();
function Un(e, r, t, n, i, a, s) {
var o = g();
try {
b(e)(r, t, n, i, a, o);
b(e)(r, t, n, i, a, s);
} catch (u) {
if (y(s), u !== u + 0)
if (y(o), u !== u + 0)
throw u;

@@ -1244,16 +1240,16 @@ _(1, 0);

}
function Zn(e, r, t, n, i, a, o, s, u, l, v) {
var p = g();
function xn(e, r, t, n, i, a, s, o, u, l, v) {
var h = g();
try {
b(e)(r, t, n, i, a, o, s, u, l, v);
} catch (h) {
if (y(p), h !== h + 0)
throw h;
b(e)(r, t, n, i, a, s, o, u, l, v);
} catch (p) {
if (y(h), p !== p + 0)
throw p;
_(1, 0);
}
}
function Gn(e, r, t, n, i, a, o, s) {
function Yn(e, r, t, n, i, a, s, o) {
var u = g();
try {
b(e)(r, t, n, i, a, o, s);
b(e)(r, t, n, i, a, s, o);
} catch (l) {

@@ -1265,16 +1261,16 @@ if (y(u), l !== l + 0)

}
function qn(e, r, t, n, i) {
function Vn(e, r, t, n, i) {
var a = g();
try {
b(e)(r, t, n, i);
} catch (o) {
if (y(a), o !== o + 0)
throw o;
} catch (s) {
if (y(a), s !== s + 0)
throw s;
_(1, 0);
}
}
function Jn(e, r, t, n, i, a, o, s, u) {
function Bn(e, r, t, n, i, a, s, o, u) {
var l = g();
try {
b(e)(r, t, n, i, a, o, s, u);
b(e)(r, t, n, i, a, s, o, u);
} catch (v) {

@@ -1286,8 +1282,8 @@ if (y(l), v !== v + 0)

}
function Kn(e, r, t, n, i, a, o) {
var s = g();
function Nn(e, r, t, n, i, a, s) {
var o = g();
try {
return b(e)(r, t, n, i, a, o);
return b(e)(r, t, n, i, a, s);
} catch (u) {
if (y(s), u !== u + 0)
if (y(o), u !== u + 0)
throw u;

@@ -1297,3 +1293,3 @@ _(1, 0);

}
function Qn(e) {
function Ln(e) {
var r = g();

@@ -1308,8 +1304,8 @@ try {

}
function ei(e, r, t, n, i, a, o) {
var s = g();
function zn(e, r, t, n, i, a, s) {
var o = g();
try {
return b(e)(r, t, n, i, a, o);
return b(e)(r, t, n, i, a, s);
} catch (u) {
if (y(s), u !== u + 0)
if (y(o), u !== u + 0)
throw u;

@@ -1319,3 +1315,3 @@ _(1, 0);

}
function ri(e, r, t, n) {
function Xn(e, r, t, n) {
var i = g();

@@ -1330,3 +1326,3 @@ try {

}
function ti(e, r, t, n) {
function Zn(e, r, t, n) {
var i = g();

@@ -1341,33 +1337,33 @@ try {

}
function ni(e, r, t, n, i, a) {
var o = g();
function Gn(e, r, t, n, i, a) {
var s = g();
try {
return b(e)(r, t, n, i, a);
} catch (s) {
if (y(o), s !== s + 0)
throw s;
} catch (o) {
if (y(s), o !== o + 0)
throw o;
_(1, 0);
}
}
function ii(e, r, t, n, i, a) {
var o = g();
function qn(e, r, t, n, i, a) {
var s = g();
try {
return b(e)(r, t, n, i, a);
} catch (s) {
if (y(o), s !== s + 0)
throw s;
} catch (o) {
if (y(s), o !== o + 0)
throw o;
_(1, 0);
}
}
function ai(e, r, t, n, i, a, o, s, u, l) {
function Jn(e, r, t, n, i, a, s, o, u, l) {
var v = g();
try {
return b(e)(r, t, n, i, a, o, s, u, l);
} catch (p) {
if (y(v), p !== p + 0)
throw p;
return b(e)(r, t, n, i, a, s, o, u, l);
} catch (h) {
if (y(v), h !== h + 0)
throw h;
_(1, 0);
}
}
function oi(e, r, t) {
function Kn(e, r, t) {
var n = g();

@@ -1382,16 +1378,16 @@ try {

}
function si(e, r, t, n, i, a, o, s, u, l) {
function Qn(e, r, t, n, i, a, s, o, u, l) {
var v = g();
try {
b(e)(r, t, n, i, a, o, s, u, l);
} catch (p) {
if (y(v), p !== p + 0)
throw p;
b(e)(r, t, n, i, a, s, o, u, l);
} catch (h) {
if (y(v), h !== h + 0)
throw h;
_(1, 0);
}
}
function ui(e, r, t, n, i, a, o, s) {
function ei(e, r, t, n, i, a, s, o) {
var u = g();
try {
return b(e)(r, t, n, i, a, o, s);
return b(e)(r, t, n, i, a, s, o);
} catch (l) {

@@ -1403,6 +1399,6 @@ if (y(u), l !== l + 0)

}
function fi(e, r, t, n, i, a, o, s, u) {
function ri(e, r, t, n, i, a, s, o, u) {
var l = g();
try {
return b(e)(r, t, n, i, a, o, s, u);
return b(e)(r, t, n, i, a, s, o, u);
} catch (v) {

@@ -1414,8 +1410,8 @@ if (y(l), v !== v + 0)

}
function li(e, r, t, n, i, a, o) {
var s = g();
function ti(e, r, t, n, i, a, s) {
var o = g();
try {
b(e)(r, t, n, i, a, o);
b(e)(r, t, n, i, a, s);
} catch (u) {
if (y(s), u !== u + 0)
if (y(o), u !== u + 0)
throw u;

@@ -1425,3 +1421,3 @@ _(1, 0);

}
function ci(e, r, t, n) {
function ni(e, r, t, n) {
var i = g();

@@ -1436,8 +1432,8 @@ try {

}
function vi(e, r, t, n, i, a, o, s, u, l, v, p) {
var h = g();
function ii(e, r, t, n, i, a, s, o, u, l, v, h) {
var p = g();
try {
return b(e)(r, t, n, i, a, o, s, u, l, v, p);
return b(e)(r, t, n, i, a, s, o, u, l, v, h);
} catch (m) {
if (y(h), m !== m + 0)
if (y(p), m !== m + 0)
throw m;

@@ -1447,16 +1443,16 @@ _(1, 0);

}
function di(e, r, t, n, i, a, o, s, u, l, v, p, h, m, w, R) {
function ai(e, r, t, n, i, a, s, o, u, l, v, h, p, m, w, S) {
var C = g();
try {
b(e)(r, t, n, i, a, o, s, u, l, v, p, h, m, w, R);
} catch (S) {
if (y(C), S !== S + 0)
throw S;
b(e)(r, t, n, i, a, s, o, u, l, v, h, p, m, w, S);
} catch (F) {
if (y(C), F !== F + 0)
throw F;
_(1, 0);
}
}
function pi(e, r, t, n) {
function si(e, r, t, n) {
var i = g();
try {
return jr(e, r, t, n);
return Wr(e, r, t, n);
} catch (a) {

@@ -1468,21 +1464,21 @@ if (y(i), a !== a + 0)

}
function hi(e, r, t, n, i) {
function oi(e, r, t, n, i) {
var a = g();
try {
return Hr(e, r, t, n, i);
} catch (o) {
if (y(a), o !== o + 0)
throw o;
return Mr(e, r, t, n, i);
} catch (s) {
if (y(a), s !== s + 0)
throw s;
_(1, 0);
}
}
var Se;
oe = function e() {
Se || Mr(), Se || (oe = e);
var Fe;
ie = function e() {
Fe || Hr(), Fe || (ie = e);
};
function Mr() {
if (Z > 0 || (Ur(), Z > 0))
function Hr() {
if (z > 0 || (Ur(), z > 0))
return;
function e() {
Se || (Se = !0, f.calledRun = !0, !Xe && (xr(), L(f), f.onRuntimeInitialized && f.onRuntimeInitialized(), Yr()));
Fe || (Fe = !0, f.calledRun = !0, !Xe && (xr(), B(f), f.onRuntimeInitialized && f.onRuntimeInitialized(), Yr()));
}

@@ -1498,19 +1494,19 @@ f.setStatus ? (f.setStatus("Running..."), setTimeout(function() {

f.preInit.pop()();
return Mr(), B.ready;
return Hr(), V.ready;
};
})();
function Ci(j) {
return _i(De, j);
function pi(W) {
return ui(De, W);
}
async function Pi(j, {
tryHarder: B = X.tryHarder,
formats: f = X.formats,
maxSymbols: L = X.maxSymbols
} = X) {
return gi(
j,
async function _i(W, {
tryHarder: V = L.tryHarder,
formats: f = L.formats,
maxSymbols: B = L.maxSymbols
} = L) {
return fi(
W,
{
tryHarder: B,
tryHarder: V,
formats: f,
maxSymbols: L
maxSymbols: B
},

@@ -1520,13 +1516,13 @@ De

}
async function Ti(j, {
tryHarder: B = X.tryHarder,
formats: f = X.formats,
maxSymbols: L = X.maxSymbols
} = X) {
return yi(
j,
async function gi(W, {
tryHarder: V = L.tryHarder,
formats: f = L.formats,
maxSymbols: B = L.maxSymbols
} = L) {
return li(
W,
{
tryHarder: B,
tryHarder: V,
formats: f,
maxSymbols: L
maxSymbols: B
},

@@ -1536,19 +1532,19 @@ De

}
async function Ai(j, {
format: B = Q.format,
charset: f = Q.charset,
quietZone: L = Q.quietZone,
width: ee = Q.width,
height: de = Q.height,
eccLevel: pe = Q.eccLevel
} = Q) {
return mi(
j,
async function yi(W, {
format: V = J.format,
charset: f = J.charset,
quietZone: B = J.quietZone,
width: K = J.width,
height: ce = J.height,
eccLevel: ve = J.eccLevel
} = J) {
return ci(
W,
{
format: B,
format: V,
charset: f,
quietZone: L,
width: ee,
height: de,
eccLevel: pe
quietZone: B,
width: K,
height: ce,
eccLevel: ve
},

@@ -1559,12 +1555,12 @@ De

export {
Si as ZXING_BARCODE_FORMAT_NAMES,
Fi as ZXING_CHARACTOR_SET_NAMES,
X as defaultZXingReadOptions,
Q as defaultZXingWriteOptions,
Ci as getZXingModule,
Di as purgeZXingModule,
Ti as readBarcodeFromImageData,
Pi as readBarcodesFromImageFile,
ki as setZXingModuleOverrides,
Ai as writeBarcodeToImageFile
bi as ZXING_BARCODE_FORMAT_NAMES,
wi as ZXING_CHARACTOR_SET_NAMES,
L as defaultZXingReadOptions,
J as defaultZXingWriteOptions,
pi as getZXingModule,
Ci as purgeZXingModule,
gi as readBarcodeFromImageData,
_i as readBarcodesFromImageFile,
Pi as setZXingModuleOverrides,
yi as writeBarcodeToImageFile
};

@@ -1,31 +0,31 @@

import { g as hi, r as _i, d as L, a as gi } from "../core-a1b41704.js";
import { Z as Ai, b as Ei, c as Ri, p as Si, s as Fi } from "../core-a1b41704.js";
import { g as oi, r as ui, d as B, a as fi } from "../core-4b54e5ce.js";
import { Z as yi, b as mi, c as $i, p as bi, s as wi } from "../core-4b54e5ce.js";
var Ve = (() => {
var V = import.meta.url;
return function(J = {}) {
var f = J, K, ce;
var Y = import.meta.url;
return function(G = {}) {
var f = G, q, fe;
f.ready = new Promise((e, r) => {
K = e, ce = r;
q = e, fe = r;
});
var Be = Object.assign({}, f), Ne = "./this.program", Le = typeof window == "object", ve = typeof importScripts == "function";
var Be = Object.assign({}, f), Ne = "./this.program", Le = typeof window == "object", le = typeof importScripts == "function";
typeof process == "object" && typeof process.versions == "object" && process.versions.node;
var j = "";
function Mr(e) {
return f.locateFile ? f.locateFile(e, j) : j + e;
var W = "";
function Hr(e) {
return f.locateFile ? f.locateFile(e, W) : W + e;
}
var Re;
(Le || ve) && (ve ? j = self.location.href : typeof document < "u" && document.currentScript && (j = document.currentScript.src), V && (j = V), j.indexOf("blob:") !== 0 ? j = j.substr(0, j.replace(/[?#].*/, "").lastIndexOf("/") + 1) : j = "", ve && (Re = (e) => {
var Se;
(Le || le) && (le ? W = self.location.href : typeof document < "u" && document.currentScript && (W = document.currentScript.src), Y && (W = Y), W.indexOf("blob:") !== 0 ? W = W.substr(0, W.replace(/[?#].*/, "").lastIndexOf("/") + 1) : W = "", le && (Se = (e) => {
var r = new XMLHttpRequest();
return r.open("GET", e, !1), r.responseType = "arraybuffer", r.send(null), new Uint8Array(r.response);
})), f.print || console.log.bind(console);
var re = f.printErr || console.error.bind(console);
var Q = f.printErr || console.error.bind(console);
Object.assign(f, Be), Be = null, f.arguments && f.arguments, f.thisProgram && (Ne = f.thisProgram), f.quit && f.quit;
var te;
f.wasmBinary && (te = f.wasmBinary), f.noExitRuntime, typeof WebAssembly != "object" && he("no native wasm support detected");
var de, ze = !1, H, k, ne, pe, F, P, Xe, Ze;
var ee;
f.wasmBinary && (ee = f.wasmBinary), f.noExitRuntime, typeof WebAssembly != "object" && de("no native wasm support detected");
var ce, ze = !1, M, k, re, ve, R, P, Xe, Ze;
function Ge() {
var e = de.buffer;
f.HEAP8 = H = new Int8Array(e), f.HEAP16 = ne = new Int16Array(e), f.HEAPU8 = k = new Uint8Array(e), f.HEAPU16 = pe = new Uint16Array(e), f.HEAP32 = F = new Int32Array(e), f.HEAPU32 = P = new Uint32Array(e), f.HEAPF32 = Xe = new Float32Array(e), f.HEAPF64 = Ze = new Float64Array(e);
var e = ce.buffer;
f.HEAP8 = M = new Int8Array(e), f.HEAP16 = re = new Int16Array(e), f.HEAPU8 = k = new Uint8Array(e), f.HEAPU16 = ve = new Uint16Array(e), f.HEAP32 = R = new Int32Array(e), f.HEAPU32 = P = new Uint32Array(e), f.HEAPF32 = Xe = new Float32Array(e), f.HEAPF64 = Ze = new Float64Array(e);
}
var qe, Je = [], Ke = [], Qe = [];
var qe = [], Je = [], Ke = [];
function Ir() {

@@ -35,6 +35,6 @@ if (f.preRun)

Yr(f.preRun.shift());
Se(Je);
Fe(qe);
}
function Ur() {
Se(Ke);
Fe(Je);
}

@@ -45,66 +45,65 @@ function xr() {

Br(f.postRun.shift());
Se(Qe);
Fe(Ke);
}
function Yr(e) {
Je.unshift(e);
qe.unshift(e);
}
function Vr(e) {
Ke.unshift(e);
Je.unshift(e);
}
function Br(e) {
Qe.unshift(e);
Ke.unshift(e);
}
var z = 0, ie = null;
var N = 0, te = null;
function Nr(e) {
z++, f.monitorRunDependencies && f.monitorRunDependencies(z);
N++, f.monitorRunDependencies && f.monitorRunDependencies(N);
}
function Lr(e) {
if (z--, f.monitorRunDependencies && f.monitorRunDependencies(z), z == 0 && ie) {
var r = ie;
ie = null, r();
if (N--, f.monitorRunDependencies && f.monitorRunDependencies(N), N == 0 && te) {
var r = te;
te = null, r();
}
}
function he(e) {
f.onAbort && f.onAbort(e), e = "Aborted(" + e + ")", re(e), ze = !0, e += ". Build with -sASSERTIONS for more info.";
function de(e) {
f.onAbort && f.onAbort(e), e = "Aborted(" + e + ")", Q(e), ze = !0, e += ". Build with -sASSERTIONS for more info.";
var r = new WebAssembly.RuntimeError(e);
throw ce(r), r;
throw fe(r), r;
}
var zr = "data:application/octet-stream;base64,";
function er(e) {
function Qe(e) {
return e.startsWith(zr);
}
var X;
f.locateFile ? (X = "zxing_reader.wasm", er(X) || (X = Mr(X))) : X = new URL("/reader/zxing_reader.wasm", self.location).href;
function rr(e) {
if (e == X && te)
return new Uint8Array(te);
if (Re)
return Re(e);
var L;
f.locateFile ? (L = "zxing_reader.wasm", Qe(L) || (L = Hr(L))) : L = new URL("/reader/zxing_reader.wasm", self.location).href;
function er(e) {
if (e == L && ee)
return new Uint8Array(ee);
if (Se)
return Se(e);
throw "both async and sync fetching of the wasm failed";
}
function Xr(e) {
return !te && (Le || ve) && typeof fetch == "function" ? fetch(e, { credentials: "same-origin" }).then((r) => {
return !ee && (Le || le) && typeof fetch == "function" ? fetch(e, { credentials: "same-origin" }).then((r) => {
if (!r.ok)
throw "failed to load wasm binary file at '" + e + "'";
return r.arrayBuffer();
}).catch(() => rr(e)) : Promise.resolve().then(() => rr(e));
}).catch(() => er(e)) : Promise.resolve().then(() => er(e));
}
function tr(e, r, t) {
function rr(e, r, t) {
return Xr(e).then((n) => WebAssembly.instantiate(n, r)).then((n) => n).then(t, (n) => {
re(`failed to asynchronously prepare wasm: ${n}`), he(n);
Q(`failed to asynchronously prepare wasm: ${n}`), de(n);
});
}
function Zr(e, r, t, n) {
return !e && typeof WebAssembly.instantiateStreaming == "function" && !er(r) && typeof fetch == "function" ? fetch(r, { credentials: "same-origin" }).then((i) => {
return !e && typeof WebAssembly.instantiateStreaming == "function" && !Qe(r) && typeof fetch == "function" ? fetch(r, { credentials: "same-origin" }).then((i) => {
var a = WebAssembly.instantiateStreaming(i, t);
return a.then(n, function(o) {
return re(`wasm streaming compile failed: ${o}`), re("falling back to ArrayBuffer instantiation"), tr(r, t, n);
return a.then(n, function(s) {
return Q(`wasm streaming compile failed: ${s}`), Q("falling back to ArrayBuffer instantiation"), rr(r, t, n);
});
}) : tr(r, t, n);
}) : rr(r, t, n);
}
function Gr() {
var e = { a: Hn };
var e = { a: Sn };
function r(n, i) {
var a = n.exports;
return T = a, de = T.qa, Ge(), qe = T.ua, Vr(T.ra), Lr(), a;
return T = n.exports, ce = T.qa, Ge(), pr = T.ua, Vr(T.ra), Lr(), T;
}

@@ -119,18 +118,18 @@ Nr();

} catch (n) {
re(`Module.instantiateWasm callback failed with error: ${n}`), ce(n);
Q(`Module.instantiateWasm callback failed with error: ${n}`), fe(n);
}
return Zr(te, X, e, t).catch(ce), {};
return Zr(ee, L, e, t).catch(fe), {};
}
var Se = (e) => {
var Fe = (e) => {
for (; e.length > 0; )
e.shift()(f);
}, _e = [], ge = 0, qr = (e) => {
var r = new ye(e);
return r.get_caught() || (r.set_caught(!0), ge--), r.set_rethrown(!1), _e.push(r), Dr(r.excPtr), r.get_exception_ptr();
}, M = 0, Jr = () => {
}, he = [], pe = 0, qr = (e) => {
var r = new _e(e);
return r.get_caught() || (r.set_caught(!0), pe--), r.set_rethrown(!1), he.push(r), Dr(r.excPtr), r.get_exception_ptr();
}, H = 0, Jr = () => {
_(0, 0);
var e = _e.pop();
Fr(e.excPtr), M = 0;
var e = he.pop();
Rr(e.excPtr), H = 0;
};
function ye(e) {
function _e(e) {
this.excPtr = e, this.ptr = e - 24, this.set_type = function(r) {

@@ -145,9 +144,9 @@ P[this.ptr + 4 >> 2] = r;

}, this.set_caught = function(r) {
r = r ? 1 : 0, H[this.ptr + 12 >> 0] = r;
r = r ? 1 : 0, M[this.ptr + 12 >> 0] = r;
}, this.get_caught = function() {
return H[this.ptr + 12 >> 0] != 0;
return M[this.ptr + 12 >> 0] != 0;
}, this.set_rethrown = function(r) {
r = r ? 1 : 0, H[this.ptr + 13 >> 0] = r;
r = r ? 1 : 0, M[this.ptr + 13 >> 0] = r;
}, this.get_rethrown = function() {
return H[this.ptr + 13 >> 0] != 0;
return M[this.ptr + 13 >> 0] != 0;
}, this.init = function(r, t) {

@@ -168,12 +167,12 @@ this.set_adjusted_ptr(0), this.set_type(r), this.set_destructor(t);

var Kr = (e) => {
throw M || (M = e), M;
}, Fe = (e) => {
var r = M;
throw H || (H = e), H;
}, Re = (e) => {
var r = H;
if (!r)
return le(0), 0;
var t = new ye(r);
return ue(0), 0;
var t = new _e(r);
t.set_adjusted_ptr(r);
var n = t.get_type();
if (!n)
return le(0), r;
return ue(0), r;
for (var i in e) {

@@ -183,19 +182,19 @@ var a = e[i];

break;
var o = t.ptr + 16;
if (kr(a, n, o))
return le(a), r;
var s = t.ptr + 16;
if (kr(a, n, s))
return ue(a), r;
}
return le(n), r;
}, Qr = () => Fe([]), et = (e) => Fe([e]), rt = (e, r) => Fe([e, r]), tt = (e) => {
var r = new ye(e).get_exception_ptr();
return ue(n), r;
}, Qr = () => Re([]), et = (e) => Re([e]), rt = (e, r) => Re([e, r]), tt = (e) => {
var r = new _e(e).get_exception_ptr();
return r;
}, nt = () => {
var e = _e.pop();
e || he("no exception to throw");
var e = he.pop();
e || de("no exception to throw");
var r = e.excPtr;
throw e.get_rethrown() || (_e.push(e), e.set_rethrown(!0), e.set_caught(!1), ge++), M = r, M;
throw e.get_rethrown() || (he.push(e), e.set_rethrown(!0), e.set_caught(!1), pe++), H = r, H;
}, it = (e, r, t) => {
var n = new ye(e);
throw n.init(r, t), M = e, ge++, M;
}, at = () => ge, me = {}, nr = (e) => {
var n = new _e(e);
throw n.init(r, t), H = e, pe++, H;
}, at = () => pe, ge = {}, tr = (e) => {
for (; e.length; ) {

@@ -207,64 +206,64 @@ var r = e.pop(), t = e.pop();

function De(e) {
return this.fromWireType(F[e >> 2]);
return this.fromWireType(R[e >> 2]);
}
var Q = {}, Z = {}, $e = {}, ir = void 0, be = (e) => {
throw new ir(e);
}, G = (e, r, t) => {
e.forEach(function(s) {
$e[s] = r;
var J = {}, z = {}, ye = {}, nr, me = (e) => {
throw new nr(e);
}, X = (e, r, t) => {
e.forEach(function(o) {
ye[o] = r;
});
function n(s) {
var u = t(s);
u.length !== e.length && be("Mismatched type converter count");
function n(o) {
var u = t(o);
u.length !== e.length && me("Mismatched type converter count");
for (var l = 0; l < e.length; ++l)
I(e[l], u[l]);
}
var i = new Array(r.length), a = [], o = 0;
r.forEach((s, u) => {
Z.hasOwnProperty(s) ? i[u] = Z[s] : (a.push(s), Q.hasOwnProperty(s) || (Q[s] = []), Q[s].push(() => {
i[u] = Z[s], ++o, o === a.length && n(i);
var i = new Array(r.length), a = [], s = 0;
r.forEach((o, u) => {
z.hasOwnProperty(o) ? i[u] = z[o] : (a.push(o), J.hasOwnProperty(o) || (J[o] = []), J[o].push(() => {
i[u] = z[o], ++s, s === a.length && n(i);
}));
}), a.length === 0 && n(i);
}, ot = (e) => {
var r = me[e];
delete me[e];
var t = r.rawConstructor, n = r.rawDestructor, i = r.fields, a = i.map((o) => o.getterReturnType).concat(i.map((o) => o.setterArgumentType));
G([e], a, (o) => {
var s = {};
}, st = (e) => {
var r = ge[e];
delete ge[e];
var t = r.rawConstructor, n = r.rawDestructor, i = r.fields, a = i.map((s) => s.getterReturnType).concat(i.map((s) => s.setterArgumentType));
X([e], a, (s) => {
var o = {};
return i.forEach((u, l) => {
var v = u.fieldName, p = o[l], h = u.getter, m = u.getterContext, w = o[l + i.length], R = u.setter, C = u.setterContext;
s[v] = { read: (S) => p.fromWireType(h(m, S)), write: (S, c) => {
var v = u.fieldName, h = s[l], p = u.getter, m = u.getterContext, w = s[l + i.length], S = u.setter, C = u.setterContext;
o[v] = { read: (F) => h.fromWireType(p(m, F)), write: (F, c) => {
var d = [];
R(C, S, w.toWireType(d, c)), nr(d);
S(C, F, w.toWireType(d, c)), tr(d);
} };
}), [{ name: r.name, fromWireType: (u) => {
var l = {};
for (var v in s)
l[v] = s[v].read(u);
for (var v in o)
l[v] = o[v].read(u);
return n(u), l;
}, toWireType: (u, l) => {
for (var v in s)
for (var v in o)
if (!(v in l))
throw new TypeError(`Missing field: "${v}"`);
var p = t();
for (v in s)
s[v].write(p, l[v]);
return u !== null && u.push(n, p), p;
var h = t();
for (v in o)
o[v].write(h, l[v]);
return u !== null && u.push(n, h), h;
}, argPackAdvance: U, readValueFromPointer: De, destructorFunction: n }];
});
}, st = (e, r, t, n, i) => {
}, ot = (e, r, t, n, i) => {
}, ut = () => {
for (var e = new Array(256), r = 0; r < 256; ++r)
e[r] = String.fromCharCode(r);
ar = e;
}, ar = void 0, D = (e) => {
ir = e;
}, ir, D = (e) => {
for (var r = "", t = e; k[t]; )
r += ar[k[t++]];
r += ir[k[t++]];
return r;
}, ee = void 0, $ = (e) => {
throw new ee(e);
}, K, $ = (e) => {
throw new K(e);
};
function ft(e, r, t = {}) {
var n = r.name;
if (e || $(`type "${n}" must have a positive integer typeid pointer`), Z.hasOwnProperty(e)) {
if (e || $(`type "${n}" must have a positive integer typeid pointer`), z.hasOwnProperty(e)) {
if (t.ignoreDuplicateRegistrations)

@@ -274,5 +273,5 @@ return;

}
if (Z[e] = r, delete $e[e], Q.hasOwnProperty(e)) {
var i = Q[e];
delete Q[e], i.forEach((a) => a());
if (z[e] = r, delete ye[e], J.hasOwnProperty(e)) {
var i = J[e];
delete J[e], i.forEach((a) => a());
}

@@ -293,13 +292,3 @@ }

}, destructorFunction: null });
};
function ct(e) {
if (!(this instanceof B) || !(e instanceof B))
return !1;
for (var r = this.$$.ptrType.registeredClass, t = this.$$.ptr, n = e.$$.ptrType.registeredClass, i = e.$$.ptr; r.baseClass; )
t = r.upcast(t), r = r.baseClass;
for (; n.baseClass; )
i = n.upcast(i), n = n.baseClass;
return r === n && t === i;
}
var vt = (e) => ({ count: e.count, deleteScheduled: e.deleteScheduled, preservePointerOnDelete: e.preservePointerOnDelete, ptr: e.ptr, ptrType: e.ptrType, smartPtr: e.smartPtr, smartPtrType: e.smartPtrType }), ke = (e) => {
}, ct = (e) => ({ count: e.count, deleteScheduled: e.deleteScheduled, preservePointerOnDelete: e.preservePointerOnDelete, ptr: e.ptr, ptrType: e.ptrType, smartPtr: e.smartPtr, smartPtrType: e.smartPtrType }), ke = (e) => {
function r(t) {

@@ -309,4 +298,4 @@ return t.$$.ptrType.registeredClass.name;

$(r(e) + " instance already deleted");
}, Oe = !1, or = (e) => {
}, dt = (e) => {
}, Oe = !1, ar = (e) => {
}, vt = (e) => {
e.smartPtr ? e.smartPtrType.rawDestructor(e.smartPtr) : e.ptrType.registeredClass.rawDestructor(e.ptr);

@@ -316,4 +305,4 @@ }, sr = (e) => {

var r = e.count.value === 0;
r && dt(e);
}, ur = (e, r, t) => {
r && vt(e);
}, or = (e, r, t) => {
if (r === t)

@@ -323,32 +312,32 @@ return e;

return null;
var n = ur(e, r, t.baseClass);
var n = or(e, r, t.baseClass);
return n === null ? null : t.downcast(n);
}, fr = {}, pt = () => Object.keys(se).length, ht = () => {
}, ur = {}, dt = () => Object.keys(ae).length, ht = () => {
var e = [];
for (var r in se)
se.hasOwnProperty(r) && e.push(se[r]);
for (var r in ae)
ae.hasOwnProperty(r) && e.push(ae[r]);
return e;
}, ae = [], We = () => {
for (; ae.length; ) {
var e = ae.pop();
}, ne = [], je = () => {
for (; ne.length; ) {
var e = ne.pop();
e.$$.deleteScheduled = !1, e.delete();
}
}, oe = void 0, _t = (e) => {
oe = e, ae.length && oe && oe(We);
}, gt = () => {
f.getInheritedInstanceCount = pt, f.getLiveInheritedInstances = ht, f.flushPendingDeletes = We, f.setDelayFunction = _t;
}, se = {}, yt = (e, r) => {
}, ie, pt = (e) => {
ie = e, ne.length && ie && ie(je);
}, _t = () => {
f.getInheritedInstanceCount = dt, f.getLiveInheritedInstances = ht, f.flushPendingDeletes = je, f.setDelayFunction = pt;
}, ae = {}, gt = (e, r) => {
for (r === void 0 && $("ptr should not be undefined"); e.baseClass; )
r = e.upcast(r), e = e.baseClass;
return r;
}, mt = (e, r) => (r = yt(e, r), se[r]), we = (e, r) => {
(!r.ptrType || !r.ptr) && be("makeClassHandle requires ptr and ptrType");
}, yt = (e, r) => (r = gt(e, r), ae[r]), $e = (e, r) => {
(!r.ptrType || !r.ptr) && me("makeClassHandle requires ptr and ptrType");
var t = !!r.smartPtrType, n = !!r.smartPtr;
return t !== n && be("Both smartPtrType and smartPtr must be specified"), r.count = { value: 1 }, ue(Object.create(e, { $$: { value: r } }));
return t !== n && me("Both smartPtrType and smartPtr must be specified"), r.count = { value: 1 }, se(Object.create(e, { $$: { value: r } }));
};
function $t(e) {
function mt(e) {
var r = this.getPointee(e);
if (!r)
return this.destructor(e), null;
var t = mt(this.registeredClass, r);
var t = yt(this.registeredClass, r);
if (t !== void 0) {

@@ -361,15 +350,15 @@ if (t.$$.count.value === 0)

function i() {
return this.isSmartPointer ? we(this.registeredClass.instancePrototype, { ptrType: this.pointeeType, ptr: r, smartPtrType: this, smartPtr: e }) : we(this.registeredClass.instancePrototype, { ptrType: this, ptr: e });
return this.isSmartPointer ? $e(this.registeredClass.instancePrototype, { ptrType: this.pointeeType, ptr: r, smartPtrType: this, smartPtr: e }) : $e(this.registeredClass.instancePrototype, { ptrType: this, ptr: e });
}
var a = this.registeredClass.getActualType(r), o = fr[a];
if (!o)
var a = this.registeredClass.getActualType(r), s = ur[a];
if (!s)
return i.call(this);
var s;
this.isConst ? s = o.constPointerType : s = o.pointerType;
var u = ur(r, this.registeredClass, s.registeredClass);
return u === null ? i.call(this) : this.isSmartPointer ? we(s.registeredClass.instancePrototype, { ptrType: s, ptr: u, smartPtrType: this, smartPtr: e }) : we(s.registeredClass.instancePrototype, { ptrType: s, ptr: u });
var o;
this.isConst ? o = s.constPointerType : o = s.pointerType;
var u = or(r, this.registeredClass, o.registeredClass);
return u === null ? i.call(this) : this.isSmartPointer ? $e(o.registeredClass.instancePrototype, { ptrType: o, ptr: u, smartPtrType: this, smartPtr: e }) : $e(o.registeredClass.instancePrototype, { ptrType: o, ptr: u });
}
var ue = (e) => typeof FinalizationRegistry > "u" ? (ue = (r) => r, e) : (Oe = new FinalizationRegistry((r) => {
var se = (e) => typeof FinalizationRegistry > "u" ? (se = (r) => r, e) : (Oe = new FinalizationRegistry((r) => {
sr(r.$$);
}), ue = (r) => {
}), se = (r) => {
var t = r.$$, n = !!t.smartPtr;

@@ -381,24 +370,29 @@ if (n) {

return r;
}, or = (r) => Oe.unregister(r), ue(e));
function bt() {
if (this.$$.ptr || ke(this), this.$$.preservePointerOnDelete)
return this.$$.count.value += 1, this;
var e = ue(Object.create(Object.getPrototypeOf(this), { $$: { value: vt(this.$$) } }));
return e.$$.count.value += 1, e.$$.deleteScheduled = !1, e;
}
function wt() {
this.$$.ptr || ke(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && $("Object already scheduled for deletion"), or(this), sr(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
}
function Ct() {
return !this.$$.ptr;
}
function Pt() {
return this.$$.ptr || ke(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && $("Object already scheduled for deletion"), ae.push(this), ae.length === 1 && oe && oe(We), this.$$.deleteScheduled = !0, this;
}
var Tt = () => {
B.prototype.isAliasOf = ct, B.prototype.clone = bt, B.prototype.delete = wt, B.prototype.isDeleted = Ct, B.prototype.deleteLater = Pt;
}, ar = (r) => Oe.unregister(r), se(e)), $t = () => {
Object.assign(be.prototype, { isAliasOf(e) {
if (!(this instanceof be) || !(e instanceof be))
return !1;
var r = this.$$.ptrType.registeredClass, t = this.$$.ptr;
e.$$ = e.$$;
for (var n = e.$$.ptrType.registeredClass, i = e.$$.ptr; r.baseClass; )
t = r.upcast(t), r = r.baseClass;
for (; n.baseClass; )
i = n.upcast(i), n = n.baseClass;
return r === n && t === i;
}, clone() {
if (this.$$.ptr || ke(this), this.$$.preservePointerOnDelete)
return this.$$.count.value += 1, this;
var e = se(Object.create(Object.getPrototypeOf(this), { $$: { value: ct(this.$$) } }));
return e.$$.count.value += 1, e.$$.deleteScheduled = !1, e;
}, delete() {
this.$$.ptr || ke(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && $("Object already scheduled for deletion"), ar(this), sr(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
}, isDeleted() {
return !this.$$.ptr;
}, deleteLater() {
return this.$$.ptr || ke(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && $("Object already scheduled for deletion"), ne.push(this), ne.length === 1 && ie && ie(je), this.$$.deleteScheduled = !0, this;
} });
};
function B() {
function be() {
}
var At = 48, Et = 57, lr = (e) => {
var bt = 48, wt = 57, fr = (e) => {
if (e === void 0)

@@ -408,10 +402,10 @@ return "_unknown";

var r = e.charCodeAt(0);
return r >= At && r <= Et ? `_${e}` : e;
return r >= bt && r <= wt ? `_${e}` : e;
};
function cr(e, r) {
return e = lr(e), { [e]: function() {
function lr(e, r) {
return e = fr(e), { [e]: function() {
return r.apply(this, arguments);
} }[e];
}
var vr = (e, r, t) => {
var cr = (e, r, t) => {
if (e[r].overloadTable === void 0) {

@@ -423,9 +417,9 @@ var n = e[r];

}
}, dr = (e, r, t) => {
f.hasOwnProperty(e) ? ((t === void 0 || f[e].overloadTable !== void 0 && f[e].overloadTable[t] !== void 0) && $(`Cannot register public name '${e}' twice`), vr(f, e, e), f.hasOwnProperty(t) && $(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`), f[e].overloadTable[t] = r) : (f[e] = r, t !== void 0 && (f[e].numArguments = t));
}, vr = (e, r, t) => {
f.hasOwnProperty(e) ? ((t === void 0 || f[e].overloadTable !== void 0 && f[e].overloadTable[t] !== void 0) && $(`Cannot register public name '${e}' twice`), cr(f, e, e), f.hasOwnProperty(t) && $(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`), f[e].overloadTable[t] = r) : (f[e] = r, t !== void 0 && (f[e].numArguments = t));
};
function Rt(e, r, t, n, i, a, o, s) {
this.name = e, this.constructor = r, this.instancePrototype = t, this.rawDestructor = n, this.baseClass = i, this.getActualType = a, this.upcast = o, this.downcast = s, this.pureVirtualFunctions = [];
function Ct(e, r, t, n, i, a, s, o) {
this.name = e, this.constructor = r, this.instancePrototype = t, this.rawDestructor = n, this.baseClass = i, this.getActualType = a, this.upcast = s, this.downcast = o, this.pureVirtualFunctions = [];
}
var je = (e, r, t) => {
var We = (e, r, t) => {
for (; r !== t; )

@@ -435,10 +429,10 @@ r.upcast || $(`Expected null or instance of ${t.name}, got an instance of ${r.name}`), e = r.upcast(e), r = r.baseClass;

};
function St(e, r) {
function Pt(e, r) {
if (r === null)
return this.isReference && $(`null is not a valid ${this.name}`), 0;
r.$$ || $(`Cannot pass "${Ie(r)}" as a ${this.name}`), r.$$.ptr || $(`Cannot pass deleted object as a pointer of type ${this.name}`);
var t = r.$$.ptrType.registeredClass, n = je(r.$$.ptr, t, this.registeredClass);
var t = r.$$.ptrType.registeredClass, n = We(r.$$.ptr, t, this.registeredClass);
return n;
}
function Ft(e, r) {
function Tt(e, r) {
var t;

@@ -449,3 +443,3 @@ if (r === null)

var n = r.$$.ptrType.registeredClass;
if (t = je(r.$$.ptr, n, this.registeredClass), this.isSmartPointer)
if (t = We(r.$$.ptr, n, this.registeredClass), this.isSmartPointer)
switch (r.$$.smartPtr === void 0 && $("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) {

@@ -463,3 +457,3 @@ case 0:

var i = r.clone();
t = this.rawShare(t, N.toHandle(() => i.delete())), e !== null && e.push(this.rawDestructor, t);
t = this.rawShare(t, V.toHandle(() => i.delete())), e !== null && e.push(this.rawDestructor, t);
}

@@ -472,53 +466,51 @@ break;

}
function Dt(e, r) {
function At(e, r) {
if (r === null)
return this.isReference && $(`null is not a valid ${this.name}`), 0;
r.$$ || $(`Cannot pass "${Ie(r)}" as a ${this.name}`), r.$$.ptr || $(`Cannot pass deleted object as a pointer of type ${this.name}`), r.$$.ptrType.isConst && $(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);
var t = r.$$.ptrType.registeredClass, n = je(r.$$.ptr, t, this.registeredClass);
var t = r.$$.ptrType.registeredClass, n = We(r.$$.ptr, t, this.registeredClass);
return n;
}
function pr(e) {
function dr(e) {
return this.fromWireType(P[e >> 2]);
}
function kt(e) {
return this.rawGetPointee && (e = this.rawGetPointee(e)), e;
}
function Ot(e) {
this.rawDestructor && this.rawDestructor(e);
}
var Wt = (e) => {
e !== null && e.delete();
}, jt = () => {
x.prototype.getPointee = kt, x.prototype.destructor = Ot, x.prototype.argPackAdvance = U, x.prototype.readValueFromPointer = pr, x.prototype.deleteObject = Wt, x.prototype.fromWireType = $t;
var Et = () => {
Object.assign(we.prototype, { getPointee(e) {
return this.rawGetPointee && (e = this.rawGetPointee(e)), e;
}, destructor(e) {
this.rawDestructor && this.rawDestructor(e);
}, argPackAdvance: U, readValueFromPointer: dr, deleteObject(e) {
e !== null && e.delete();
}, fromWireType: mt });
};
function x(e, r, t, n, i, a, o, s, u, l, v) {
this.name = e, this.registeredClass = r, this.isReference = t, this.isConst = n, this.isSmartPointer = i, this.pointeeType = a, this.sharingPolicy = o, this.rawGetPointee = s, this.rawConstructor = u, this.rawShare = l, this.rawDestructor = v, !i && r.baseClass === void 0 ? n ? (this.toWireType = St, this.destructorFunction = null) : (this.toWireType = Dt, this.destructorFunction = null) : this.toWireType = Ft;
function we(e, r, t, n, i, a, s, o, u, l, v) {
this.name = e, this.registeredClass = r, this.isReference = t, this.isConst = n, this.isSmartPointer = i, this.pointeeType = a, this.sharingPolicy = s, this.rawGetPointee = o, this.rawConstructor = u, this.rawShare = l, this.rawDestructor = v, !i && r.baseClass === void 0 ? n ? (this.toWireType = Pt, this.destructorFunction = null) : (this.toWireType = At, this.destructorFunction = null) : this.toWireType = Tt;
}
var hr = (e, r, t) => {
f.hasOwnProperty(e) || be("Replacing nonexistant public symbol"), f[e].overloadTable !== void 0 && t !== void 0 ? f[e].overloadTable[t] = r : (f[e] = r, f[e].argCount = t);
}, Ht = (e, r, t) => {
f.hasOwnProperty(e) || me("Replacing nonexistant public symbol"), f[e].overloadTable !== void 0 && t !== void 0 ? f[e].overloadTable[t] = r : (f[e] = r, f[e].argCount = t);
}, St = (e, r, t) => {
var n = f["dynCall_" + e];
return t && t.length ? n.apply(null, [r].concat(t)) : n.call(null, r);
}, Ce = [], b = (e) => {
}, Ce = [], pr, b = (e) => {
var r = Ce[e];
return r || (e >= Ce.length && (Ce.length = e + 1), Ce[e] = r = qe.get(e)), r;
}, Mt = (e, r, t) => {
return r || (e >= Ce.length && (Ce.length = e + 1), Ce[e] = r = pr.get(e)), r;
}, Ft = (e, r, t) => {
if (e.includes("j"))
return Ht(e, r, t);
return St(e, r, t);
var n = b(r).apply(null, t);
return n;
}, It = (e, r) => {
}, Rt = (e, r) => {
var t = [];
return function() {
return t.length = 0, Object.assign(t, arguments), Mt(e, r, t);
return t.length = 0, Object.assign(t, arguments), Ft(e, r, t);
};
}, W = (e, r) => {
}, j = (e, r) => {
e = D(e);
function t() {
return e.includes("j") ? It(e, r) : b(r);
return e.includes("j") ? Rt(e, r) : b(r);
}
var n = t();
return typeof n != "function" && $(`unknown function pointer with signature ${e}: ${r}`), n;
}, Ut = (e, r) => {
var t = cr(r, function(n) {
}, Dt = (e, r) => {
var t = lr(r, function(n) {
this.name = r, this.message = n;

@@ -532,11 +524,11 @@ var i = new Error(n).stack;

}, t;
}, _r = void 0, gr = (e) => {
var r = Sr(e), t = D(r);
return Y(r), t;
}, _r, gr = (e) => {
var r = Fr(e), t = D(r);
return x(r), t;
}, Pe = (e, r) => {
var t = [], n = {};
function i(a) {
if (!n[a] && !Z[a]) {
if ($e[a]) {
$e[a].forEach(i);
if (!n[a] && !z[a]) {
if (ye[a]) {
ye[a].forEach(i);
return;

@@ -548,28 +540,28 @@ }

throw r.forEach(i), new _r(`${e}: ` + t.map(gr).join([", "]));
}, xt = (e, r, t, n, i, a, o, s, u, l, v, p, h) => {
v = D(v), a = W(i, a), s && (s = W(o, s)), l && (l = W(u, l)), h = W(p, h);
var m = lr(v);
dr(m, function() {
}, kt = (e, r, t, n, i, a, s, o, u, l, v, h, p) => {
v = D(v), a = j(i, a), o && (o = j(s, o)), l && (l = j(u, l)), p = j(h, p);
var m = fr(v);
vr(m, function() {
Pe(`Cannot construct ${v} due to unbound types`, [n]);
}), G([e, r, t], n ? [n] : [], function(w) {
}), X([e, r, t], n ? [n] : [], function(w) {
w = w[0];
var R, C;
n ? (R = w.registeredClass, C = R.instancePrototype) : C = B.prototype;
var S = cr(m, function() {
var S, C;
n ? (S = w.registeredClass, C = S.instancePrototype) : C = be.prototype;
var F = lr(m, function() {
if (Object.getPrototypeOf(this) !== c)
throw new ee("Use 'new' to construct " + v);
throw new K("Use 'new' to construct " + v);
if (d.constructor_body === void 0)
throw new ee(v + " has no accessible constructor");
throw new K(v + " has no accessible constructor");
var Ee = d.constructor_body[arguments.length];
if (Ee === void 0)
throw new ee(`Tried to invoke ctor of ${v} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);
throw new K(`Tried to invoke ctor of ${v} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);
return Ee.apply(this, arguments);
}), c = Object.create(C, { constructor: { value: S } });
S.prototype = c;
var d = new Rt(v, S, c, h, R, a, s, l);
}), c = Object.create(C, { constructor: { value: F } });
F.prototype = c;
var d = new Ct(v, F, c, p, S, a, o, l);
d.baseClass && (d.baseClass.__derivedClasses === void 0 && (d.baseClass.__derivedClasses = []), d.baseClass.__derivedClasses.push(d));
var A = new x(v, d, !0, !1, !1), E = new x(v + "*", d, !1, !1, !1), q = new x(v + " const*", d, !1, !0, !1);
return fr[e] = { pointerType: E, constPointerType: q }, hr(m, S), [A, E, q];
var A = new we(v, d, !0, !1, !1), E = new we(v + "*", d, !1, !1, !1), Z = new we(v + " const*", d, !1, !0, !1);
return ur[e] = { pointerType: E, constPointerType: Z }, hr(m, F), [A, E, Z];
});
}, He = (e, r) => {
}, Me = (e, r) => {
for (var t = [], n = 0; n < e; n++)

@@ -579,6 +571,6 @@ t.push(P[r + n * 4 >> 2]);

};
function Me(e, r, t, n, i, a) {
var o = r.length;
o < 2 && $("argTypes array size mismatch! Must at least get return value and 'this' types!");
for (var s = r[1] !== null && t !== null, u = !1, l = 1; l < r.length; ++l)
function He(e, r, t, n, i, a) {
var s = r.length;
s < 2 && $("argTypes array size mismatch! Must at least get return value and 'this' types!");
for (var o = r[1] !== null && t !== null, u = !1, l = 1; l < r.length; ++l)
if (r[l] !== null && r[l].destructorFunction === void 0) {

@@ -588,16 +580,16 @@ u = !0;

}
var v = r[0].name !== "void", p = o - 2, h = new Array(p), m = [], w = [];
var v = r[0].name !== "void", h = s - 2, p = new Array(h), m = [], w = [];
return function() {
arguments.length !== p && $(`function ${e} called with ${arguments.length} arguments, expected ${p}`), w.length = 0;
var R;
m.length = s ? 2 : 1, m[0] = i, s && (R = r[1].toWireType(w, this), m[1] = R);
for (var C = 0; C < p; ++C)
h[C] = r[C + 2].toWireType(w, arguments[C]), m.push(h[C]);
var S = n.apply(null, m);
arguments.length !== h && $(`function ${e} called with ${arguments.length} arguments, expected ${h}`), w.length = 0;
var S;
m.length = o ? 2 : 1, m[0] = i, o && (S = r[1].toWireType(w, this), m[1] = S);
for (var C = 0; C < h; ++C)
p[C] = r[C + 2].toWireType(w, arguments[C]), m.push(p[C]);
var F = n.apply(null, m);
function c(d) {
if (u)
nr(w);
tr(w);
else
for (var A = s ? 1 : 2; A < r.length; A++) {
var E = A === 1 ? R : h[A - 2];
for (var A = o ? 1 : 2; A < r.length; A++) {
var E = A === 1 ? S : p[A - 2];
r[A].destructorFunction !== null && r[A].destructorFunction(E);

@@ -608,28 +600,28 @@ }

}
return c(S);
return c(F);
};
}
var Yt = (e, r, t, n, i, a) => {
var o = He(r, t);
i = W(n, i), G([], [e], function(s) {
s = s[0];
var u = `constructor ${s.name}`;
if (s.registeredClass.constructor_body === void 0 && (s.registeredClass.constructor_body = []), s.registeredClass.constructor_body[r - 1] !== void 0)
throw new ee(`Cannot register multiple constructors with identical number of parameters (${r - 1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
return s.registeredClass.constructor_body[r - 1] = () => {
Pe(`Cannot construct ${s.name} due to unbound types`, o);
}, G([], o, (l) => (l.splice(1, 0, null), s.registeredClass.constructor_body[r - 1] = Me(u, l, null, i, a), [])), [];
var Ot = (e, r, t, n, i, a) => {
var s = Me(r, t);
i = j(n, i), X([], [e], function(o) {
o = o[0];
var u = `constructor ${o.name}`;
if (o.registeredClass.constructor_body === void 0 && (o.registeredClass.constructor_body = []), o.registeredClass.constructor_body[r - 1] !== void 0)
throw new K(`Cannot register multiple constructors with identical number of parameters (${r - 1}) for class '${o.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
return o.registeredClass.constructor_body[r - 1] = () => {
Pe(`Cannot construct ${o.name} due to unbound types`, s);
}, X([], s, (l) => (l.splice(1, 0, null), o.registeredClass.constructor_body[r - 1] = He(u, l, null, i, a), [])), [];
});
}, Vt = (e, r, t, n, i, a, o, s, u) => {
var l = He(t, n);
r = D(r), a = W(i, a), G([], [e], function(v) {
}, jt = (e, r, t, n, i, a, s, o, u) => {
var l = Me(t, n);
r = D(r), a = j(i, a), X([], [e], function(v) {
v = v[0];
var p = `${v.name}.${r}`;
r.startsWith("@@") && (r = Symbol[r.substring(2)]), s && v.registeredClass.pureVirtualFunctions.push(r);
function h() {
Pe(`Cannot call ${p} due to unbound types`, l);
var h = `${v.name}.${r}`;
r.startsWith("@@") && (r = Symbol[r.substring(2)]), o && v.registeredClass.pureVirtualFunctions.push(r);
function p() {
Pe(`Cannot call ${h} due to unbound types`, l);
}
var m = v.registeredClass.instancePrototype, w = m[r];
return w === void 0 || w.overloadTable === void 0 && w.className !== v.name && w.argCount === t - 2 ? (h.argCount = t - 2, h.className = v.name, m[r] = h) : (vr(m, r, p), m[r].overloadTable[t - 2] = h), G([], l, function(R) {
var C = Me(p, R, v, a, o);
return w === void 0 || w.overloadTable === void 0 && w.className !== v.name && w.argCount === t - 2 ? (p.argCount = t - 2, p.className = v.name, m[r] = p) : (cr(m, r, h), m[r].overloadTable[t - 2] = p), X([], l, function(S) {
var C = He(h, S, v, a, s);
return m[r].overloadTable === void 0 ? (C.argCount = t - 2, m[r] = C) : m[r].overloadTable[t - 2] = C, [];

@@ -639,3 +631,3 @@ }), [];

};
function Bt() {
function Wt() {
Object.assign(yr.prototype, { get(e) {

@@ -657,9 +649,9 @@ return this.allocated[e];

e >= O.reserved && --O.get(e).refcount === 0 && O.free(e);
}, Nt = () => {
}, Mt = () => {
for (var e = 0, r = O.reserved; r < O.allocated.length; ++r)
O.allocated[r] !== void 0 && ++e;
return e;
}, Lt = () => {
O.allocated.push({ value: void 0 }, { value: null }, { value: !0 }, { value: !1 }), O.reserved = O.allocated.length, f.count_emval_handles = Nt;
}, N = { toValue: (e) => (e || $("Cannot use deleted val. handle = " + e), O.get(e).value), toHandle: (e) => {
}, Ht = () => {
O.allocated.push({ value: void 0 }, { value: null }, { value: !0 }, { value: !1 }), O.reserved = O.allocated.length, f.count_emval_handles = Mt;
}, V = { toValue: (e) => (e || $("Cannot use deleted val. handle = " + e), O.get(e).value), toHandle: (e) => {
switch (e) {

@@ -677,7 +669,7 @@ case void 0:

}
} }, zt = (e, r) => {
} }, It = (e, r) => {
r = D(r), I(e, { name: r, fromWireType: (t) => {
var n = N.toValue(t);
var n = V.toValue(t);
return mr(t), n;
}, toWireType: (t, n) => N.toHandle(n), argPackAdvance: U, readValueFromPointer: De, destructorFunction: null });
}, toWireType: (t, n) => V.toHandle(n), argPackAdvance: U, readValueFromPointer: De, destructorFunction: null });
}, Ie = (e) => {

@@ -688,3 +680,3 @@ if (e === null)

return r === "object" || r === "array" || r === "function" ? e.toString() : "" + e;
}, Xt = (e, r) => {
}, Ut = (e, r) => {
switch (r) {

@@ -702,42 +694,42 @@ case 4:

}
}, Zt = (e, r, t) => {
r = D(r), I(e, { name: r, fromWireType: (n) => n, toWireType: (n, i) => i, argPackAdvance: U, readValueFromPointer: Xt(r, t), destructorFunction: null });
}, Gt = (e, r, t, n, i, a, o) => {
var s = He(r, t);
e = D(e), i = W(n, i), dr(e, function() {
Pe(`Cannot call ${e} due to unbound types`, s);
}, r - 1), G([], s, function(u) {
}, xt = (e, r, t) => {
r = D(r), I(e, { name: r, fromWireType: (n) => n, toWireType: (n, i) => i, argPackAdvance: U, readValueFromPointer: Ut(r, t), destructorFunction: null });
}, Yt = (e, r, t, n, i, a, s) => {
var o = Me(r, t);
e = D(e), i = j(n, i), vr(e, function() {
Pe(`Cannot call ${e} due to unbound types`, o);
}, r - 1), X([], o, function(u) {
var l = [u[0], null].concat(u.slice(1));
return hr(e, Me(e, l, null, i, a), r - 1), [];
return hr(e, He(e, l, null, i, a), r - 1), [];
});
}, qt = (e, r, t) => {
}, Vt = (e, r, t) => {
switch (r) {
case 1:
return t ? (n) => H[n >> 0] : (n) => k[n >> 0];
return t ? (n) => M[n >> 0] : (n) => k[n >> 0];
case 2:
return t ? (n) => ne[n >> 1] : (n) => pe[n >> 1];
return t ? (n) => re[n >> 1] : (n) => ve[n >> 1];
case 4:
return t ? (n) => F[n >> 2] : (n) => P[n >> 2];
return t ? (n) => R[n >> 2] : (n) => P[n >> 2];
default:
throw new TypeError(`invalid integer width (${r}): ${e}`);
}
}, Jt = (e, r, t, n, i) => {
}, Bt = (e, r, t, n, i) => {
r = D(r);
var a = (v) => v;
if (n === 0) {
var o = 32 - 8 * t;
a = (v) => v << o >>> o;
var s = 32 - 8 * t;
a = (v) => v << s >>> s;
}
var s = r.includes("unsigned"), u = (v, p) => {
var o = r.includes("unsigned"), u = (v, h) => {
}, l;
s ? l = function(v, p) {
return u(p, this.name), p >>> 0;
} : l = function(v, p) {
return u(p, this.name), p;
}, I(e, { name: r, fromWireType: a, toWireType: l, argPackAdvance: U, readValueFromPointer: qt(r, t, n !== 0), destructorFunction: null });
}, Kt = (e, r, t) => {
o ? l = function(v, h) {
return u(h, this.name), h >>> 0;
} : l = function(v, h) {
return u(h, this.name), h;
}, I(e, { name: r, fromWireType: a, toWireType: l, argPackAdvance: U, readValueFromPointer: Vt(r, t, n !== 0), destructorFunction: null });
}, Nt = (e, r, t) => {
var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], i = n[r];
function a(o) {
var s = P[o >> 2], u = P[o + 4 >> 2];
return new i(H.buffer, u, s);
function a(s) {
var o = P[s >> 2], u = P[s + 4 >> 2];
return new i(M.buffer, u, o);
}

@@ -748,28 +740,28 @@ t = D(t), I(e, { name: t, fromWireType: a, argPackAdvance: U, readValueFromPointer: a }, { ignoreDuplicateRegistrations: !0 });

return 0;
for (var i = t, a = t + n - 1, o = 0; o < e.length; ++o) {
var s = e.charCodeAt(o);
if (s >= 55296 && s <= 57343) {
var u = e.charCodeAt(++o);
s = 65536 + ((s & 1023) << 10) | u & 1023;
for (var i = t, a = t + n - 1, s = 0; s < e.length; ++s) {
var o = e.charCodeAt(s);
if (o >= 55296 && o <= 57343) {
var u = e.charCodeAt(++s);
o = 65536 + ((o & 1023) << 10) | u & 1023;
}
if (s <= 127) {
if (o <= 127) {
if (t >= a)
break;
r[t++] = s;
} else if (s <= 2047) {
r[t++] = o;
} else if (o <= 2047) {
if (t + 1 >= a)
break;
r[t++] = 192 | s >> 6, r[t++] = 128 | s & 63;
} else if (s <= 65535) {
r[t++] = 192 | o >> 6, r[t++] = 128 | o & 63;
} else if (o <= 65535) {
if (t + 2 >= a)
break;
r[t++] = 224 | s >> 12, r[t++] = 128 | s >> 6 & 63, r[t++] = 128 | s & 63;
r[t++] = 224 | o >> 12, r[t++] = 128 | o >> 6 & 63, r[t++] = 128 | o & 63;
} else {
if (t + 3 >= a)
break;
r[t++] = 240 | s >> 18, r[t++] = 128 | s >> 12 & 63, r[t++] = 128 | s >> 6 & 63, r[t++] = 128 | s & 63;
r[t++] = 240 | o >> 18, r[t++] = 128 | o >> 12 & 63, r[t++] = 128 | o >> 6 & 63, r[t++] = 128 | o & 63;
}
}
return r[t] = 0, t - i;
}, Qt = (e, r, t) => $r(e, k, r, t), br = (e) => {
}, Lt = (e, r, t) => $r(e, k, r, t), br = (e) => {
for (var r = 0, t = 0; t < e.length; ++t) {

@@ -780,3 +772,3 @@ var n = e.charCodeAt(t);

return r;
}, wr = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, en = (e, r, t) => {
}, wr = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, zt = (e, r, t) => {
for (var n = r + t, i = r; e[i] && !(i >= n); )

@@ -787,17 +779,17 @@ ++i;

for (var a = ""; r < i; ) {
var o = e[r++];
if (!(o & 128)) {
a += String.fromCharCode(o);
var s = e[r++];
if (!(s & 128)) {
a += String.fromCharCode(s);
continue;
}
var s = e[r++] & 63;
if ((o & 224) == 192) {
a += String.fromCharCode((o & 31) << 6 | s);
var o = e[r++] & 63;
if ((s & 224) == 192) {
a += String.fromCharCode((s & 31) << 6 | o);
continue;
}
var u = e[r++] & 63;
if ((o & 240) == 224 ? o = (o & 15) << 12 | s << 6 | u : o = (o & 7) << 18 | s << 12 | u << 6 | e[r++] & 63, o < 65536)
a += String.fromCharCode(o);
if ((s & 240) == 224 ? s = (s & 15) << 12 | o << 6 | u : s = (s & 7) << 18 | o << 12 | u << 6 | e[r++] & 63, s < 65536)
a += String.fromCharCode(s);
else {
var l = o - 65536;
var l = s - 65536;
a += String.fromCharCode(55296 | l >> 10, 56320 | l & 1023);

@@ -807,32 +799,32 @@ }

return a;
}, Ue = (e, r) => e ? en(k, e, r) : "", rn = (e, r) => {
}, Ue = (e, r) => e ? zt(k, e, r) : "", Xt = (e, r) => {
r = D(r);
var t = r === "std::string";
I(e, { name: r, fromWireType: (n) => {
var i = P[n >> 2], a = n + 4, o;
I(e, { name: r, fromWireType(n) {
var i = P[n >> 2], a = n + 4, s;
if (t)
for (var s = a, u = 0; u <= i; ++u) {
for (var o = a, u = 0; u <= i; ++u) {
var l = a + u;
if (u == i || k[l] == 0) {
var v = l - s, p = Ue(s, v);
o === void 0 ? o = p : (o += String.fromCharCode(0), o += p), s = l + 1;
var v = l - o, h = Ue(o, v);
s === void 0 ? s = h : (s += String.fromCharCode(0), s += h), o = l + 1;
}
}
else {
for (var h = new Array(i), u = 0; u < i; ++u)
h[u] = String.fromCharCode(k[a + u]);
o = h.join("");
for (var p = new Array(i), u = 0; u < i; ++u)
p[u] = String.fromCharCode(k[a + u]);
s = p.join("");
}
return Y(n), o;
}, toWireType: (n, i) => {
return x(n), s;
}, toWireType(n, i) {
i instanceof ArrayBuffer && (i = new Uint8Array(i));
var a, o = typeof i == "string";
o || i instanceof Uint8Array || i instanceof Uint8ClampedArray || i instanceof Int8Array || $("Cannot pass non-string to std::string"), t && o ? a = br(i) : a = i.length;
var s = Ye(4 + a + 1), u = s + 4;
if (P[s >> 2] = a, t && o)
Qt(i, u, a + 1);
else if (o)
var a, s = typeof i == "string";
s || i instanceof Uint8Array || i instanceof Uint8ClampedArray || i instanceof Int8Array || $("Cannot pass non-string to std::string"), t && s ? a = br(i) : a = i.length;
var o = Ye(4 + a + 1), u = o + 4;
if (P[o >> 2] = a, t && s)
Lt(i, u, a + 1);
else if (s)
for (var l = 0; l < a; ++l) {
var v = i.charCodeAt(l);
v > 255 && (Y(u), $("String has UTF-16 code units that do not fit in 8 bits")), k[u + l] = v;
v > 255 && (x(u), $("String has UTF-16 code units that do not fit in 8 bits")), k[u + l] = v;
}

@@ -842,17 +834,19 @@ else

k[u + l] = i[l];
return n !== null && n.push(Y, s), s;
}, argPackAdvance: U, readValueFromPointer: pr, destructorFunction: (n) => Y(n) });
}, Cr = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, tn = (e, r) => {
for (var t = e, n = t >> 1, i = n + r / 2; !(n >= i) && pe[n]; )
return n !== null && n.push(x, o), o;
}, argPackAdvance: U, readValueFromPointer: dr, destructorFunction(n) {
x(n);
} });
}, Cr = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, Zt = (e, r) => {
for (var t = e, n = t >> 1, i = n + r / 2; !(n >= i) && ve[n]; )
++n;
if (t = n << 1, t - e > 32 && Cr)
return Cr.decode(k.subarray(e, t));
for (var a = "", o = 0; !(o >= r / 2); ++o) {
var s = ne[e + o * 2 >> 1];
if (s == 0)
for (var a = "", s = 0; !(s >= r / 2); ++s) {
var o = re[e + s * 2 >> 1];
if (o == 0)
break;
a += String.fromCharCode(s);
a += String.fromCharCode(o);
}
return a;
}, nn = (e, r, t) => {
}, Gt = (e, r, t) => {
if (t === void 0 && (t = 2147483647), t < 2)

@@ -862,9 +856,9 @@ return 0;

for (var n = r, i = t < e.length * 2 ? t / 2 : e.length, a = 0; a < i; ++a) {
var o = e.charCodeAt(a);
ne[r >> 1] = o, r += 2;
var s = e.charCodeAt(a);
re[r >> 1] = s, r += 2;
}
return ne[r >> 1] = 0, r - n;
}, an = (e) => e.length * 2, on = (e, r) => {
return re[r >> 1] = 0, r - n;
}, qt = (e) => e.length * 2, Jt = (e, r) => {
for (var t = 0, n = ""; !(t >= r / 4); ) {
var i = F[e + t * 4 >> 2];
var i = R[e + t * 4 >> 2];
if (i == 0)

@@ -879,16 +873,16 @@ break;

return n;
}, sn = (e, r, t) => {
}, Kt = (e, r, t) => {
if (t === void 0 && (t = 2147483647), t < 4)
return 0;
for (var n = r, i = n + t - 4, a = 0; a < e.length; ++a) {
var o = e.charCodeAt(a);
if (o >= 55296 && o <= 57343) {
var s = e.charCodeAt(++a);
o = 65536 + ((o & 1023) << 10) | s & 1023;
var s = e.charCodeAt(a);
if (s >= 55296 && s <= 57343) {
var o = e.charCodeAt(++a);
s = 65536 + ((s & 1023) << 10) | o & 1023;
}
if (F[r >> 2] = o, r += 4, r + 4 > i)
if (R[r >> 2] = s, r += 4, r + 4 > i)
break;
}
return F[r >> 2] = 0, r - n;
}, un = (e) => {
return R[r >> 2] = 0, r - n;
}, Qt = (e) => {
for (var r = 0, t = 0; t < e.length; ++t) {

@@ -899,29 +893,31 @@ var n = e.charCodeAt(t);

return r;
}, fn = (e, r, t) => {
}, en = (e, r, t) => {
t = D(t);
var n, i, a, o, s;
r === 2 ? (n = tn, i = nn, o = an, a = () => pe, s = 1) : r === 4 && (n = on, i = sn, o = un, a = () => P, s = 2), I(e, { name: t, fromWireType: (u) => {
for (var l = P[u >> 2], v = a(), p, h = u + 4, m = 0; m <= l; ++m) {
var n, i, a, s, o;
r === 2 ? (n = Zt, i = Gt, s = qt, a = () => ve, o = 1) : r === 4 && (n = Jt, i = Kt, s = Qt, a = () => P, o = 2), I(e, { name: t, fromWireType: (u) => {
for (var l = P[u >> 2], v = a(), h, p = u + 4, m = 0; m <= l; ++m) {
var w = u + 4 + m * r;
if (m == l || v[w >> s] == 0) {
var R = w - h, C = n(h, R);
p === void 0 ? p = C : (p += String.fromCharCode(0), p += C), h = w + r;
if (m == l || v[w >> o] == 0) {
var S = w - p, C = n(p, S);
h === void 0 ? h = C : (h += String.fromCharCode(0), h += C), p = w + r;
}
}
return Y(u), p;
return x(u), h;
}, toWireType: (u, l) => {
typeof l != "string" && $(`Cannot pass non-string to C++ string type ${t}`);
var v = o(l), p = Ye(4 + v + r);
return P[p >> 2] = v >> s, i(l, p + 4, v + r), u !== null && u.push(Y, p), p;
}, argPackAdvance: U, readValueFromPointer: De, destructorFunction: (u) => Y(u) });
}, ln = (e, r, t, n, i, a) => {
me[e] = { name: D(r), rawConstructor: W(t, n), rawDestructor: W(i, a), fields: [] };
}, cn = (e, r, t, n, i, a, o, s, u, l) => {
me[e].fields.push({ fieldName: D(r), getterReturnType: t, getter: W(n, i), getterContext: a, setterArgumentType: o, setter: W(s, u), setterContext: l });
}, vn = (e, r) => {
var v = s(l), h = Ye(4 + v + r);
return P[h >> 2] = v >> o, i(l, h + 4, v + r), u !== null && u.push(x, h), h;
}, argPackAdvance: U, readValueFromPointer: De, destructorFunction(u) {
x(u);
} });
}, rn = (e, r, t, n, i, a) => {
ge[e] = { name: D(r), rawConstructor: j(t, n), rawDestructor: j(i, a), fields: [] };
}, tn = (e, r, t, n, i, a, s, o, u, l) => {
ge[e].fields.push({ fieldName: D(r), getterReturnType: t, getter: j(n, i), getterContext: a, setterArgumentType: s, setter: j(o, u), setterContext: l });
}, nn = (e, r) => {
r = D(r), I(e, { isVoid: !0, name: r, argPackAdvance: 0, fromWireType: () => {
}, toWireType: (t, n) => {
} });
}, dn = {}, pn = (e) => {
var r = dn[e];
}, an = {}, sn = (e) => {
var r = an[e];
return r === void 0 ? D(e) : r;

@@ -939,8 +935,8 @@ }, Pr = () => {

throw Error("unable to get global object.");
}, hn = (e) => e === 0 ? N.toHandle(Pr()) : (e = pn(e), N.toHandle(Pr()[e])), _n = (e) => {
}, on = (e) => e === 0 ? V.toHandle(Pr()) : (e = sn(e), V.toHandle(Pr()[e])), un = (e) => {
e > 4 && (O.get(e).refcount += 1);
}, Tr = (e, r) => {
var t = Z[e];
var t = z[e];
return t === void 0 && $(r + " has unknown type " + gr(e)), t;
}, gn = (e) => {
}, fn = (e) => {
var r = new Array(e + 1);

@@ -950,28 +946,28 @@ return function(t, n, i) {

for (var a = 0; a < e; ++a) {
var o = Tr(P[n + a * 4 >> 2], "parameter " + a);
r[a + 1] = o.readValueFromPointer(i), i += o.argPackAdvance;
var s = Tr(P[n + a * 4 >> 2], "parameter " + a);
r[a + 1] = s.readValueFromPointer(i), i += s.argPackAdvance;
}
var s = new (t.bind.apply(t, r))();
return N.toHandle(s);
var o = new (t.bind.apply(t, r))();
return V.toHandle(o);
};
}, Ar = {}, yn = (e, r, t, n) => {
e = N.toValue(e);
}, Ar = {}, ln = (e, r, t, n) => {
e = V.toValue(e);
var i = Ar[r];
return i || (i = gn(r), Ar[r] = i), i(e, t, n);
}, mn = (e, r) => {
return i || (i = fn(r), Ar[r] = i), i(e, t, n);
}, cn = (e, r) => {
e = Tr(e, "_emval_take_value");
var t = e.readValueFromPointer(r);
return N.toHandle(t);
}, $n = () => {
he("");
}, bn = (e, r, t) => k.copyWithin(e, r, r + t), wn = () => 2147483648, Cn = (e) => {
var r = de.buffer, t = (e - r.byteLength + 65535) / 65536;
return V.toHandle(t);
}, vn = () => {
de("");
}, dn = (e, r, t) => k.copyWithin(e, r, r + t), hn = () => 2147483648, pn = (e) => {
var r = ce.buffer, t = (e - r.byteLength + 65535) / 65536;
try {
return de.grow(t), Ge(), 1;
return ce.grow(t), Ge(), 1;
} catch {
}
}, Pn = (e) => {
}, _n = (e) => {
var r = k.length;
e >>>= 0;
var t = wn();
var t = hn();
if (e > t)

@@ -982,10 +978,10 @@ return !1;

a = Math.min(a, e + 100663296);
var o = Math.min(t, n(Math.max(e, a), 65536)), s = Cn(o);
if (s)
var s = Math.min(t, n(Math.max(e, a), 65536)), o = pn(s);
if (o)
return !0;
}
return !1;
}, xe = {}, Tn = () => Ne || "./this.program", fe = () => {
if (!fe.strings) {
var e = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", r = { USER: "web_user", LOGNAME: "web_user", PATH: "/", PWD: "/", HOME: "/home/web_user", LANG: e, _: Tn() };
}, xe = {}, gn = () => Ne || "./this.program", oe = () => {
if (!oe.strings) {
var e = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", r = { USER: "web_user", LOGNAME: "web_user", PATH: "/", PWD: "/", HOME: "/home/web_user", LANG: e, _: gn() };
for (var t in xe)

@@ -996,27 +992,27 @@ xe[t] === void 0 ? delete r[t] : r[t] = xe[t];

n.push(`${t}=${r[t]}`);
fe.strings = n;
oe.strings = n;
}
return fe.strings;
}, An = (e, r) => {
return oe.strings;
}, yn = (e, r) => {
for (var t = 0; t < e.length; ++t)
H[r++ >> 0] = e.charCodeAt(t);
H[r >> 0] = 0;
}, En = (e, r) => {
M[r++ >> 0] = e.charCodeAt(t);
M[r >> 0] = 0;
}, mn = (e, r) => {
var t = 0;
return fe().forEach((n, i) => {
return oe().forEach((n, i) => {
var a = r + t;
P[e + i * 4 >> 2] = a, An(n, a), t += n.length + 1;
P[e + i * 4 >> 2] = a, yn(n, a), t += n.length + 1;
}), 0;
}, Rn = (e, r) => {
var t = fe();
}, $n = (e, r) => {
var t = oe();
P[e >> 2] = t.length;
var n = 0;
return t.forEach((i) => n += i.length + 1), P[r >> 2] = n, 0;
}, Sn = (e) => e, Te = (e) => e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0), Fn = (e, r) => {
}, bn = (e) => e, Te = (e) => e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0), wn = (e, r) => {
for (var t = 0, n = 0; n <= r; t += e[n++])
;
return t;
}, Er = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Rr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Dn = (e, r) => {
}, Er = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Sr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Cn = (e, r) => {
for (var t = new Date(e.getTime()); r > 0; ) {
var n = Te(t.getFullYear()), i = t.getMonth(), a = (n ? Er : Rr)[i];
var n = Te(t.getFullYear()), i = t.getMonth(), a = (n ? Er : Sr)[i];
if (r > a - t.getDate())

@@ -1029,14 +1025,14 @@ r -= a - t.getDate() + 1, t.setDate(1), i < 11 ? t.setMonth(i + 1) : (t.setMonth(0), t.setFullYear(t.getFullYear() + 1));

};
function kn(e, r, t) {
function Pn(e, r, t) {
var n = t > 0 ? t : br(e) + 1, i = new Array(n), a = $r(e, i, 0, i.length);
return r && (i.length = a), i;
}
var On = (e, r) => {
H.set(e, r);
}, Wn = (e, r, t, n) => {
var i = P[n + 40 >> 2], a = { tm_sec: F[n >> 2], tm_min: F[n + 4 >> 2], tm_hour: F[n + 8 >> 2], tm_mday: F[n + 12 >> 2], tm_mon: F[n + 16 >> 2], tm_year: F[n + 20 >> 2], tm_wday: F[n + 24 >> 2], tm_yday: F[n + 28 >> 2], tm_isdst: F[n + 32 >> 2], tm_gmtoff: F[n + 36 >> 2], tm_zone: i ? Ue(i) : "" }, o = Ue(t), s = { "%c": "%a %b %d %H:%M:%S %Y", "%D": "%m/%d/%y", "%F": "%Y-%m-%d", "%h": "%b", "%r": "%I:%M:%S %p", "%R": "%H:%M", "%T": "%H:%M:%S", "%x": "%m/%d/%y", "%X": "%H:%M:%S", "%Ec": "%c", "%EC": "%C", "%Ex": "%m/%d/%y", "%EX": "%H:%M:%S", "%Ey": "%y", "%EY": "%Y", "%Od": "%d", "%Oe": "%e", "%OH": "%H", "%OI": "%I", "%Om": "%m", "%OM": "%M", "%OS": "%S", "%Ou": "%u", "%OU": "%U", "%OV": "%V", "%Ow": "%w", "%OW": "%W", "%Oy": "%y" };
for (var u in s)
o = o.replace(new RegExp(u, "g"), s[u]);
var Tn = (e, r) => {
M.set(e, r);
}, An = (e, r, t, n) => {
var i = P[n + 40 >> 2], a = { tm_sec: R[n >> 2], tm_min: R[n + 4 >> 2], tm_hour: R[n + 8 >> 2], tm_mday: R[n + 12 >> 2], tm_mon: R[n + 16 >> 2], tm_year: R[n + 20 >> 2], tm_wday: R[n + 24 >> 2], tm_yday: R[n + 28 >> 2], tm_isdst: R[n + 32 >> 2], tm_gmtoff: R[n + 36 >> 2], tm_zone: i ? Ue(i) : "" }, s = Ue(t), o = { "%c": "%a %b %d %H:%M:%S %Y", "%D": "%m/%d/%y", "%F": "%Y-%m-%d", "%h": "%b", "%r": "%I:%M:%S %p", "%R": "%H:%M", "%T": "%H:%M:%S", "%x": "%m/%d/%y", "%X": "%H:%M:%S", "%Ec": "%c", "%EC": "%C", "%Ex": "%m/%d/%y", "%EX": "%H:%M:%S", "%Ey": "%y", "%EY": "%Y", "%Od": "%d", "%Oe": "%e", "%OH": "%H", "%OI": "%I", "%Om": "%m", "%OM": "%M", "%OS": "%S", "%Ou": "%u", "%OU": "%U", "%OV": "%V", "%Ow": "%w", "%OW": "%W", "%Oy": "%y" };
for (var u in o)
s = s.replace(new RegExp(u, "g"), o[u]);
var l = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], v = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
function p(c, d, A) {
function h(c, d, A) {
for (var E = typeof c == "number" ? c.toString() : c || ""; E.length < d; )

@@ -1046,8 +1042,8 @@ E = A[0] + E;

}
function h(c, d) {
return p(c, d, "0");
function p(c, d) {
return h(c, d, "0");
}
function m(c, d) {
function A(q) {
return q < 0 ? -1 : q > 0 ? 1 : 0;
function A(Z) {
return Z < 0 ? -1 : Z > 0 ? 1 : 0;
}

@@ -1075,16 +1071,16 @@ var E;

}
function R(c) {
var d = Dn(new Date(c.tm_year + 1900, 0, 1), c.tm_yday), A = new Date(d.getFullYear(), 0, 4), E = new Date(d.getFullYear() + 1, 0, 4), q = w(A), Ee = w(E);
return m(q, d) <= 0 ? m(Ee, d) <= 0 ? d.getFullYear() + 1 : d.getFullYear() : d.getFullYear() - 1;
function S(c) {
var d = Cn(new Date(c.tm_year + 1900, 0, 1), c.tm_yday), A = new Date(d.getFullYear(), 0, 4), E = new Date(d.getFullYear() + 1, 0, 4), Z = w(A), Ee = w(E);
return m(Z, d) <= 0 ? m(Ee, d) <= 0 ? d.getFullYear() + 1 : d.getFullYear() : d.getFullYear() - 1;
}
var C = { "%a": (c) => l[c.tm_wday].substring(0, 3), "%A": (c) => l[c.tm_wday], "%b": (c) => v[c.tm_mon].substring(0, 3), "%B": (c) => v[c.tm_mon], "%C": (c) => {
var d = c.tm_year + 1900;
return h(d / 100 | 0, 2);
}, "%d": (c) => h(c.tm_mday, 2), "%e": (c) => p(c.tm_mday, 2, " "), "%g": (c) => R(c).toString().substring(2), "%G": (c) => R(c), "%H": (c) => h(c.tm_hour, 2), "%I": (c) => {
return p(d / 100 | 0, 2);
}, "%d": (c) => p(c.tm_mday, 2), "%e": (c) => h(c.tm_mday, 2, " "), "%g": (c) => S(c).toString().substring(2), "%G": (c) => S(c), "%H": (c) => p(c.tm_hour, 2), "%I": (c) => {
var d = c.tm_hour;
return d == 0 ? d = 12 : d > 12 && (d -= 12), h(d, 2);
}, "%j": (c) => h(c.tm_mday + Fn(Te(c.tm_year + 1900) ? Er : Rr, c.tm_mon - 1), 3), "%m": (c) => h(c.tm_mon + 1, 2), "%M": (c) => h(c.tm_min, 2), "%n": () => `
`, "%p": (c) => c.tm_hour >= 0 && c.tm_hour < 12 ? "AM" : "PM", "%S": (c) => h(c.tm_sec, 2), "%t": () => " ", "%u": (c) => c.tm_wday || 7, "%U": (c) => {
return d == 0 ? d = 12 : d > 12 && (d -= 12), p(d, 2);
}, "%j": (c) => p(c.tm_mday + wn(Te(c.tm_year + 1900) ? Er : Sr, c.tm_mon - 1), 3), "%m": (c) => p(c.tm_mon + 1, 2), "%M": (c) => p(c.tm_min, 2), "%n": () => `
`, "%p": (c) => c.tm_hour >= 0 && c.tm_hour < 12 ? "AM" : "PM", "%S": (c) => p(c.tm_sec, 2), "%t": () => " ", "%u": (c) => c.tm_wday || 7, "%U": (c) => {
var d = c.tm_yday + 7 - c.tm_wday;
return h(Math.floor(d / 7), 2);
return p(Math.floor(d / 7), 2);
}, "%V": (c) => {

@@ -1102,6 +1098,6 @@ var d = Math.floor((c.tm_yday + 7 - (c.tm_wday + 6) % 7) / 7);

}
return h(d, 2);
return p(d, 2);
}, "%w": (c) => c.tm_wday, "%W": (c) => {
var d = c.tm_yday + 7 - (c.tm_wday + 6) % 7;
return h(Math.floor(d / 7), 2);
return p(Math.floor(d / 7), 2);
}, "%y": (c) => (c.tm_year + 1900).toString().substring(2), "%Y": (c) => c.tm_year + 1900, "%z": (c) => {

@@ -1111,25 +1107,25 @@ var d = c.tm_gmtoff, A = d >= 0;

}, "%Z": (c) => c.tm_zone, "%%": () => "%" };
o = o.replace(/%%/g, "\0\0");
s = s.replace(/%%/g, "\0\0");
for (var u in C)
o.includes(u) && (o = o.replace(new RegExp(u, "g"), C[u](a)));
o = o.replace(/\0\0/g, "%");
var S = kn(o, !1);
return S.length > r ? 0 : (On(S, e), S.length - 1);
}, jn = (e, r, t, n, i) => Wn(e, r, t, n);
ir = f.InternalError = class extends Error {
s.includes(u) && (s = s.replace(new RegExp(u, "g"), C[u](a)));
s = s.replace(/\0\0/g, "%");
var F = Pn(s, !1);
return F.length > r ? 0 : (Tn(F, e), F.length - 1);
}, En = (e, r, t, n, i) => An(e, r, t, n);
nr = f.InternalError = class extends Error {
constructor(r) {
super(r), this.name = "InternalError";
}
}, ut(), ee = f.BindingError = class extends Error {
}, ut(), K = f.BindingError = class extends Error {
constructor(r) {
super(r), this.name = "BindingError";
}
}, Tt(), gt(), jt(), _r = f.UnboundTypeError = Ut(Error, "UnboundTypeError"), Bt(), Lt();
var Hn = { q: qr, u: Jr, a: Qr, h: et, l: rt, I: tt, P: nt, n: it, ba: at, d: Kr, oa: ot, Y: st, fa: lt, na: xt, ma: Yt, D: Vt, ea: zt, W: Zt, J: Gt, w: Jt, s: Kt, V: rn, L: fn, Q: ln, pa: cn, ga: vn, U: mr, la: hn, R: _n, ia: yn, ka: mn, K: $n, da: bn, ca: Pn, $: En, aa: Rn, H: ri, T: li, B: ni, p: Kn, b: Mn, C: ei, ha: ai, c: Vn, j: Nn, i: xn, x: ti, O: Qn, v: qn, G: si, N: ui, A: ii, F: ci, Z: di, X: pi, k: Bn, f: Yn, e: Un, g: In, M: fi, m: Gn, o: Ln, S: zn, t: Zn, ja: Jn, y: oi, r: Xn, E: vi, z: Sn, _: jn }, T = Gr(), Y = f._free = (e) => (Y = f._free = T.sa)(e), Ye = f._malloc = (e) => (Ye = f._malloc = T.ta)(e), Sr = (e) => (Sr = T.va)(e);
}, $t(), _t(), Et(), _r = f.UnboundTypeError = Dt(Error, "UnboundTypeError"), Wt(), Ht();
var Sn = { q: qr, u: Jr, a: Qr, h: et, l: rt, I: tt, P: nt, n: it, ba: at, d: Kr, oa: st, Y: ot, fa: lt, na: kt, ma: Ot, D: jt, ea: It, W: xt, J: Yt, w: Bt, s: Nt, V: Xt, L: en, Q: rn, pa: tn, ga: nn, U: mr, la: on, R: un, ia: ln, ka: cn, K: vn, da: dn, ca: _n, $: mn, aa: $n, H: Xn, T: ti, B: Gn, p: Nn, b: Fn, C: zn, ha: Jn, c: jn, j: Mn, i: kn, x: Zn, O: Ln, v: Vn, G: Qn, N: ei, A: qn, F: ni, Z: ai, X: si, k: Wn, f: On, e: Dn, g: Rn, M: ri, m: Yn, o: Hn, S: In, t: xn, ja: Bn, y: Kn, r: Un, E: ii, z: bn, _: En }, T = Gr(), x = f._free = (e) => (x = f._free = T.sa)(e), Ye = f._malloc = (e) => (Ye = f._malloc = T.ta)(e), Fr = (e) => (Fr = T.va)(e);
f.__embind_initialize_bindings = () => (f.__embind_initialize_bindings = T.wa)();
var _ = (e, r) => (_ = T.xa)(e, r), le = (e) => (le = T.ya)(e), g = () => (g = T.za)(), y = (e) => (y = T.Aa)(e), Fr = (e) => (Fr = T.Ba)(e), Dr = (e) => (Dr = T.Ca)(e), kr = (e, r, t) => (kr = T.Da)(e, r, t), Or = (e) => (Or = T.Ea)(e);
f.dynCall_viijii = (e, r, t, n, i, a, o) => (f.dynCall_viijii = T.Fa)(e, r, t, n, i, a, o);
var Wr = f.dynCall_jiii = (e, r, t, n) => (Wr = f.dynCall_jiii = T.Ga)(e, r, t, n), jr = f.dynCall_jiiii = (e, r, t, n, i) => (jr = f.dynCall_jiiii = T.Ha)(e, r, t, n, i);
f.dynCall_iiiiij = (e, r, t, n, i, a, o) => (f.dynCall_iiiiij = T.Ia)(e, r, t, n, i, a, o), f.dynCall_iiiiijj = (e, r, t, n, i, a, o, s, u) => (f.dynCall_iiiiijj = T.Ja)(e, r, t, n, i, a, o, s, u), f.dynCall_iiiiiijj = (e, r, t, n, i, a, o, s, u, l) => (f.dynCall_iiiiiijj = T.Ka)(e, r, t, n, i, a, o, s, u, l);
function Mn(e, r) {
var _ = (e, r) => (_ = T.xa)(e, r), ue = (e) => (ue = T.ya)(e), g = () => (g = T.za)(), y = (e) => (y = T.Aa)(e), Rr = (e) => (Rr = T.Ba)(e), Dr = (e) => (Dr = T.Ca)(e), kr = (e, r, t) => (kr = T.Da)(e, r, t), Or = (e) => (Or = T.Ea)(e);
f.dynCall_viijii = (e, r, t, n, i, a, s) => (f.dynCall_viijii = T.Fa)(e, r, t, n, i, a, s);
var jr = f.dynCall_jiii = (e, r, t, n) => (jr = f.dynCall_jiii = T.Ga)(e, r, t, n), Wr = f.dynCall_jiiii = (e, r, t, n, i) => (Wr = f.dynCall_jiiii = T.Ha)(e, r, t, n, i);
f.dynCall_iiiiij = (e, r, t, n, i, a, s) => (f.dynCall_iiiiij = T.Ia)(e, r, t, n, i, a, s), f.dynCall_iiiiijj = (e, r, t, n, i, a, s, o, u) => (f.dynCall_iiiiijj = T.Ja)(e, r, t, n, i, a, s, o, u), f.dynCall_iiiiiijj = (e, r, t, n, i, a, s, o, u, l) => (f.dynCall_iiiiiijj = T.Ka)(e, r, t, n, i, a, s, o, u, l);
function Fn(e, r) {
var t = g();

@@ -1144,3 +1140,3 @@ try {

}
function In(e, r, t, n) {
function Rn(e, r, t, n) {
var i = g();

@@ -1155,3 +1151,3 @@ try {

}
function Un(e, r, t) {
function Dn(e, r, t) {
var n = g();

@@ -1166,13 +1162,13 @@ try {

}
function xn(e, r, t, n, i) {
function kn(e, r, t, n, i) {
var a = g();
try {
return b(e)(r, t, n, i);
} catch (o) {
if (y(a), o !== o + 0)
throw o;
} catch (s) {
if (y(a), s !== s + 0)
throw s;
_(1, 0);
}
}
function Yn(e, r) {
function On(e, r) {
var t = g();

@@ -1187,3 +1183,3 @@ try {

}
function Vn(e, r, t) {
function jn(e, r, t) {
var n = g();

@@ -1198,3 +1194,3 @@ try {

}
function Bn(e) {
function Wn(e) {
var r = g();

@@ -1209,3 +1205,3 @@ try {

}
function Nn(e, r, t, n) {
function Mn(e, r, t, n) {
var i = g();

@@ -1220,18 +1216,18 @@ try {

}
function Ln(e, r, t, n, i, a) {
var o = g();
function Hn(e, r, t, n, i, a) {
var s = g();
try {
b(e)(r, t, n, i, a);
} catch (s) {
if (y(o), s !== s + 0)
throw s;
} catch (o) {
if (y(s), o !== o + 0)
throw o;
_(1, 0);
}
}
function zn(e, r, t, n, i, a, o) {
var s = g();
function In(e, r, t, n, i, a, s) {
var o = g();
try {
b(e)(r, t, n, i, a, o);
b(e)(r, t, n, i, a, s);
} catch (u) {
if (y(s), u !== u + 0)
if (y(o), u !== u + 0)
throw u;

@@ -1241,16 +1237,16 @@ _(1, 0);

}
function Xn(e, r, t, n, i, a, o, s, u, l, v) {
var p = g();
function Un(e, r, t, n, i, a, s, o, u, l, v) {
var h = g();
try {
b(e)(r, t, n, i, a, o, s, u, l, v);
} catch (h) {
if (y(p), h !== h + 0)
throw h;
b(e)(r, t, n, i, a, s, o, u, l, v);
} catch (p) {
if (y(h), p !== p + 0)
throw p;
_(1, 0);
}
}
function Zn(e, r, t, n, i, a, o, s) {
function xn(e, r, t, n, i, a, s, o) {
var u = g();
try {
b(e)(r, t, n, i, a, o, s);
b(e)(r, t, n, i, a, s, o);
} catch (l) {

@@ -1262,18 +1258,18 @@ if (y(u), l !== l + 0)

}
function Gn(e, r, t, n, i) {
function Yn(e, r, t, n, i) {
var a = g();
try {
b(e)(r, t, n, i);
} catch (o) {
if (y(a), o !== o + 0)
throw o;
} catch (s) {
if (y(a), s !== s + 0)
throw s;
_(1, 0);
}
}
function qn(e, r, t, n, i, a, o) {
var s = g();
function Vn(e, r, t, n, i, a, s) {
var o = g();
try {
return b(e)(r, t, n, i, a, o);
return b(e)(r, t, n, i, a, s);
} catch (u) {
if (y(s), u !== u + 0)
if (y(o), u !== u + 0)
throw u;

@@ -1283,6 +1279,6 @@ _(1, 0);

}
function Jn(e, r, t, n, i, a, o, s, u) {
function Bn(e, r, t, n, i, a, s, o, u) {
var l = g();
try {
b(e)(r, t, n, i, a, o, s, u);
b(e)(r, t, n, i, a, s, o, u);
} catch (v) {

@@ -1294,3 +1290,3 @@ if (y(l), v !== v + 0)

}
function Kn(e) {
function Nn(e) {
var r = g();

@@ -1305,8 +1301,8 @@ try {

}
function Qn(e, r, t, n, i, a, o) {
var s = g();
function Ln(e, r, t, n, i, a, s) {
var o = g();
try {
return b(e)(r, t, n, i, a, o);
return b(e)(r, t, n, i, a, s);
} catch (u) {
if (y(s), u !== u + 0)
if (y(o), u !== u + 0)
throw u;

@@ -1316,3 +1312,3 @@ _(1, 0);

}
function ei(e, r, t, n) {
function zn(e, r, t, n) {
var i = g();

@@ -1327,3 +1323,3 @@ try {

}
function ri(e, r, t, n) {
function Xn(e, r, t, n) {
var i = g();

@@ -1338,33 +1334,33 @@ try {

}
function ti(e, r, t, n, i, a) {
var o = g();
function Zn(e, r, t, n, i, a) {
var s = g();
try {
return b(e)(r, t, n, i, a);
} catch (s) {
if (y(o), s !== s + 0)
throw s;
} catch (o) {
if (y(s), o !== o + 0)
throw o;
_(1, 0);
}
}
function ni(e, r, t, n, i, a) {
var o = g();
function Gn(e, r, t, n, i, a) {
var s = g();
try {
return b(e)(r, t, n, i, a);
} catch (s) {
if (y(o), s !== s + 0)
throw s;
} catch (o) {
if (y(s), o !== o + 0)
throw o;
_(1, 0);
}
}
function ii(e, r, t, n, i, a, o, s, u, l) {
function qn(e, r, t, n, i, a, s, o, u, l) {
var v = g();
try {
return b(e)(r, t, n, i, a, o, s, u, l);
} catch (p) {
if (y(v), p !== p + 0)
throw p;
return b(e)(r, t, n, i, a, s, o, u, l);
} catch (h) {
if (y(v), h !== h + 0)
throw h;
_(1, 0);
}
}
function ai(e, r, t) {
function Jn(e, r, t) {
var n = g();

@@ -1379,16 +1375,16 @@ try {

}
function oi(e, r, t, n, i, a, o, s, u, l) {
function Kn(e, r, t, n, i, a, s, o, u, l) {
var v = g();
try {
b(e)(r, t, n, i, a, o, s, u, l);
} catch (p) {
if (y(v), p !== p + 0)
throw p;
b(e)(r, t, n, i, a, s, o, u, l);
} catch (h) {
if (y(v), h !== h + 0)
throw h;
_(1, 0);
}
}
function si(e, r, t, n, i, a, o, s) {
function Qn(e, r, t, n, i, a, s, o) {
var u = g();
try {
return b(e)(r, t, n, i, a, o, s);
return b(e)(r, t, n, i, a, s, o);
} catch (l) {

@@ -1400,6 +1396,6 @@ if (y(u), l !== l + 0)

}
function ui(e, r, t, n, i, a, o, s, u) {
function ei(e, r, t, n, i, a, s, o, u) {
var l = g();
try {
return b(e)(r, t, n, i, a, o, s, u);
return b(e)(r, t, n, i, a, s, o, u);
} catch (v) {

@@ -1411,8 +1407,8 @@ if (y(l), v !== v + 0)

}
function fi(e, r, t, n, i, a, o) {
var s = g();
function ri(e, r, t, n, i, a, s) {
var o = g();
try {
b(e)(r, t, n, i, a, o);
b(e)(r, t, n, i, a, s);
} catch (u) {
if (y(s), u !== u + 0)
if (y(o), u !== u + 0)
throw u;

@@ -1422,3 +1418,3 @@ _(1, 0);

}
function li(e, r, t, n) {
function ti(e, r, t, n) {
var i = g();

@@ -1433,8 +1429,8 @@ try {

}
function ci(e, r, t, n, i, a, o, s, u, l, v, p) {
var h = g();
function ni(e, r, t, n, i, a, s, o, u, l, v, h) {
var p = g();
try {
return b(e)(r, t, n, i, a, o, s, u, l, v, p);
return b(e)(r, t, n, i, a, s, o, u, l, v, h);
} catch (m) {
if (y(h), m !== m + 0)
if (y(p), m !== m + 0)
throw m;

@@ -1444,16 +1440,16 @@ _(1, 0);

}
function vi(e, r, t, n, i, a, o, s, u, l, v, p, h, m, w, R) {
function ii(e, r, t, n, i, a, s, o, u, l, v, h, p, m, w, S) {
var C = g();
try {
b(e)(r, t, n, i, a, o, s, u, l, v, p, h, m, w, R);
} catch (S) {
if (y(C), S !== S + 0)
throw S;
b(e)(r, t, n, i, a, s, o, u, l, v, h, p, m, w, S);
} catch (F) {
if (y(C), F !== F + 0)
throw F;
_(1, 0);
}
}
function di(e, r, t, n) {
function ai(e, r, t, n) {
var i = g();
try {
return Wr(e, r, t, n);
return jr(e, r, t, n);
} catch (a) {

@@ -1465,9 +1461,9 @@ if (y(i), a !== a + 0)

}
function pi(e, r, t, n, i) {
function si(e, r, t, n, i) {
var a = g();
try {
return jr(e, r, t, n, i);
} catch (o) {
if (y(a), o !== o + 0)
throw o;
return Wr(e, r, t, n, i);
} catch (s) {
if (y(a), s !== s + 0)
throw s;
_(1, 0);

@@ -1477,10 +1473,10 @@ }

var Ae;
ie = function e() {
Ae || Hr(), Ae || (ie = e);
te = function e() {
Ae || Mr(), Ae || (te = e);
};
function Hr() {
if (z > 0 || (Ir(), z > 0))
function Mr() {
if (N > 0 || (Ir(), N > 0))
return;
function e() {
Ae || (Ae = !0, f.calledRun = !0, !ze && (Ur(), K(f), f.onRuntimeInitialized && f.onRuntimeInitialized(), xr()));
Ae || (Ae = !0, f.calledRun = !0, !ze && (Ur(), q(f), f.onRuntimeInitialized && f.onRuntimeInitialized(), xr()));
}

@@ -1496,19 +1492,19 @@ f.setStatus ? (f.setStatus("Running..."), setTimeout(function() {

f.preInit.pop()();
return Hr(), J.ready;
return Mr(), G.ready;
};
})();
function bi(V) {
return hi(Ve, V);
function di(Y) {
return oi(Ve, Y);
}
async function wi(V, {
tryHarder: J = L.tryHarder,
formats: f = L.formats,
maxSymbols: K = L.maxSymbols
} = L) {
return _i(
V,
async function hi(Y, {
tryHarder: G = B.tryHarder,
formats: f = B.formats,
maxSymbols: q = B.maxSymbols
} = B) {
return ui(
Y,
{
tryHarder: J,
tryHarder: G,
formats: f,
maxSymbols: K
maxSymbols: q
},

@@ -1518,13 +1514,13 @@ Ve

}
async function Ci(V, {
tryHarder: J = L.tryHarder,
formats: f = L.formats,
maxSymbols: K = L.maxSymbols
} = L) {
return gi(
V,
async function pi(Y, {
tryHarder: G = B.tryHarder,
formats: f = B.formats,
maxSymbols: q = B.maxSymbols
} = B) {
return fi(
Y,
{
tryHarder: J,
tryHarder: G,
formats: f,
maxSymbols: K
maxSymbols: q
},

@@ -1535,11 +1531,11 @@ Ve

export {
Ai as ZXING_BARCODE_FORMAT_NAMES,
Ei as ZXING_CHARACTOR_SET_NAMES,
L as defaultZXingReadOptions,
Ri as defaultZXingWriteOptions,
bi as getZXingModule,
Si as purgeZXingModule,
Ci as readBarcodesFromImageData,
wi as readBarcodesFromImageFile,
Fi as setZXingModuleOverrides
yi as ZXING_BARCODE_FORMAT_NAMES,
mi as ZXING_CHARACTOR_SET_NAMES,
B as defaultZXingReadOptions,
$i as defaultZXingWriteOptions,
di as getZXingModule,
bi as purgeZXingModule,
pi as readBarcodesFromImageData,
hi as readBarcodesFromImageFile,
wi as setZXingModuleOverrides
};

@@ -1,3 +0,3 @@

import { g as Mt, w as Ht, c as j } from "../core-a1b41704.js";
import { Z as zt, b as Gt, d as Kt, p as Jt, s as Qt } from "../core-a1b41704.js";
import { g as Mt, w as Ht, c as O } from "../core-4b54e5ce.js";
import { Z as zt, b as Gt, d as Kt, p as Jt, s as Qt } from "../core-4b54e5ce.js";
var Gr = (() => {

@@ -30,3 +30,3 @@ var I = import.meta.url;

}
var Ar, Tr = [], $r = [], Er = [];
var Ar = [], Tr = [], $r = [];
function Jr() {

@@ -36,6 +36,6 @@ if (f.preRun)

re(f.preRun.shift());
vr(Tr);
vr(Ar);
}
function Qr() {
vr($r);
vr(Tr);
}

@@ -46,12 +46,12 @@ function Yr() {

te(f.postRun.shift());
vr(Er);
vr($r);
}
function re(r) {
Tr.unshift(r);
Ar.unshift(r);
}
function ee(r) {
$r.unshift(r);
Tr.unshift(r);
}
function te(r) {
Er.unshift(r);
$r.unshift(r);
}

@@ -74,8 +74,8 @@ var S = 0, q = null;

var ae = "data:application/octet-stream;base64,";
function Rr(r) {
function Er(r) {
return r.startsWith(ae);
}
var x;
f.locateFile ? (x = "zxing_writer.wasm", Rr(x) || (x = Kr(x))) : x = new URL("/writer/zxing_writer.wasm", self.location).href;
function Cr(r) {
f.locateFile ? (x = "zxing_writer.wasm", Er(x) || (x = Kr(x))) : x = new URL("/writer/zxing_writer.wasm", self.location).href;
function Rr(r) {
if (r == x && X)

@@ -92,5 +92,5 @@ return new Uint8Array(X);

return e.arrayBuffer();
}).catch(() => Cr(r)) : Promise.resolve().then(() => Cr(r));
}).catch(() => Rr(r)) : Promise.resolve().then(() => Rr(r));
}
function Pr(r, e, t) {
function Cr(r, e, t) {
return oe(r).then((n) => WebAssembly.instantiate(n, e)).then((n) => n).then(t, (n) => {

@@ -101,8 +101,8 @@ N(`failed to asynchronously prepare wasm: ${n}`), ir(n);

function se(r, e, t, n) {
return !r && typeof WebAssembly.instantiateStreaming == "function" && !Rr(e) && typeof fetch == "function" ? fetch(e, { credentials: "same-origin" }).then((i) => {
return !r && typeof WebAssembly.instantiateStreaming == "function" && !Er(e) && typeof fetch == "function" ? fetch(e, { credentials: "same-origin" }).then((i) => {
var a = WebAssembly.instantiateStreaming(i, t);
return a.then(n, function(o) {
return N(`wasm streaming compile failed: ${o}`), N("falling back to ArrayBuffer instantiation"), Pr(e, t, n);
return N(`wasm streaming compile failed: ${o}`), N("falling back to ArrayBuffer instantiation"), Cr(e, t, n);
});
}) : Pr(e, t, n);
}) : Cr(e, t, n);
}

@@ -112,4 +112,3 @@ function fe() {

function e(n, i) {
var a = n.exports;
return p = a, tr = p.S, wr(), Ar = p.W, ee(p.T), ie(), a;
return h = n.exports, tr = h.S, wr(), Dr = h.W, ee(h.T), ie(), h;
}

@@ -135,3 +134,3 @@ ne();

}, P = 0, ue = () => {
h(0, 0);
p(0, 0);
var r = ar.pop();

@@ -199,3 +198,3 @@ Nr(r.excPtr), P = 0;

throw n.init(e, t), P = r, P;
}, or = {}, Fr = (r) => {
}, or = {}, Pr = (r) => {
for (; r.length; ) {

@@ -209,5 +208,5 @@ var e = r.pop(), t = r.pop();

}
var V = {}, D = {}, sr = {}, kr = void 0, Wr = (r) => {
throw new kr(r);
}, Ur = (r, e, t) => {
var V = {}, j = {}, sr = {}, Fr, kr = (r) => {
throw new Fr(r);
}, Wr = (r, e, t) => {
r.forEach(function(s) {

@@ -218,3 +217,3 @@ sr[s] = e;

var c = t(s);
c.length !== r.length && Wr("Mismatched type converter count");
c.length !== r.length && kr("Mismatched type converter count");
for (var u = 0; u < r.length; ++u)

@@ -225,4 +224,4 @@ F(r[u], c[u]);

e.forEach((s, c) => {
D.hasOwnProperty(s) ? i[c] = D[s] : (a.push(s), V.hasOwnProperty(s) || (V[s] = []), V[s].push(() => {
i[c] = D[s], ++o, o === a.length && n(i);
j.hasOwnProperty(s) ? i[c] = j[s] : (a.push(s), V.hasOwnProperty(s) || (V[s] = []), V[s].push(() => {
i[c] = j[s], ++o, o === a.length && n(i);
}));

@@ -234,9 +233,9 @@ }), a.length === 0 && n(i);

var t = e.rawConstructor, n = e.rawDestructor, i = e.fields, a = i.map((o) => o.getterReturnType).concat(i.map((o) => o.setterArgumentType));
Ur([r], a, (o) => {
Wr([r], a, (o) => {
var s = {};
return i.forEach((c, u) => {
var l = c.fieldName, v = o[u], m = c.getter, $ = c.getterContext, C = o[u + i.length], O = c.setter, E = c.setterContext;
var l = c.fieldName, v = o[u], m = c.getter, $ = c.getterContext, C = o[u + i.length], D = c.setter, E = c.setterContext;
s[l] = { read: (K) => v.fromWireType(m($, K)), write: (K, gr) => {
var ur = [];
O(E, K, C.toWireType(ur, gr)), Fr(ur);
D(E, K, C.toWireType(ur, gr)), Pr(ur);
} };

@@ -262,13 +261,13 @@ }), [{ name: e.name, fromWireType: (c) => {

r[e] = String.fromCharCode(e);
Sr = r;
}, Sr = void 0, w = (r) => {
Ur = r;
}, Ur, w = (r) => {
for (var e = "", t = r; b[t]; )
e += Sr[b[t++]];
e += Ur[b[t++]];
return e;
}, xr = void 0, A = (r) => {
throw new xr(r);
}, Sr, A = (r) => {
throw new Sr(r);
};
function be(r, e, t = {}) {
var n = e.name;
if (r || A(`type "${n}" must have a positive integer typeid pointer`), D.hasOwnProperty(r)) {
if (r || A(`type "${n}" must have a positive integer typeid pointer`), j.hasOwnProperty(r)) {
if (t.ignoreDuplicateRegistrations)

@@ -278,3 +277,3 @@ return;

}
if (D[r] = e, delete sr[r], V.hasOwnProperty(r)) {
if (j[r] = e, delete sr[r], V.hasOwnProperty(r)) {
var i = V[r];

@@ -299,3 +298,3 @@ delete V[r], i.forEach((a) => a());

function Ae() {
Object.assign(Dr.prototype, { get(r) {
Object.assign(xr.prototype, { get(r) {
return this.allocated[r];

@@ -311,6 +310,6 @@ }, has(r) {

}
function Dr() {
function xr() {
this.allocated = [void 0], this.freelist = [];
}
var T = new Dr(), Or = (r) => {
var T = new xr(), jr = (r) => {
r >= T.reserved && --T.get(r).refcount === 0 && T.free(r);

@@ -339,3 +338,3 @@ }, Te = () => {

var n = B.toValue(t);
return Or(t), n;
return jr(t), n;
}, toWireType: (t, n) => B.toHandle(n), argPackAdvance: W, readValueFromPointer: hr, destructorFunction: null });

@@ -375,4 +374,4 @@ }, Re = (r, e) => {

arguments.length !== v && A(`function ${r} called with ${arguments.length} arguments, expected ${v}`), C.length = 0;
var O;
$.length = s ? 2 : 1, $[0] = i, s && (O = e[1].toWireType(C, this), $[1] = O);
var D;
$.length = s ? 2 : 1, $[0] = i, s && (D = e[1].toWireType(C, this), $[1] = D);
for (var E = 0; E < v; ++E)

@@ -383,6 +382,6 @@ m[E] = e[E + 2].toWireType(C, arguments[E]), $.push(m[E]);

if (c)
Fr(C);
Pr(C);
else
for (var Z = s ? 1 : 2; Z < e.length; Z++) {
var It = Z === 1 ? O : m[Z - 2];
var It = Z === 1 ? D : m[Z - 2];
e[Z].destructorFunction !== null && e[Z].destructorFunction(It);

@@ -409,13 +408,13 @@ }

return t;
}, je = (r, e, t) => {
f.hasOwnProperty(r) || kr("Replacing nonexistant public symbol"), f[r].overloadTable !== void 0 && t !== void 0 ? f[r].overloadTable[t] = e : (f[r] = e, f[r].argCount = t);
}, De = (r, e, t) => {
f.hasOwnProperty(r) || Wr("Replacing nonexistant public symbol"), f[r].overloadTable !== void 0 && t !== void 0 ? f[r].overloadTable[t] = e : (f[r] = e, f[r].argCount = t);
}, Oe = (r, e, t) => {
var n = f["dynCall_" + r];
return t && t.length ? n.apply(null, [e].concat(t)) : n.call(null, e);
}, fr = [], _ = (r) => {
}, fr = [], Dr, _ = (r) => {
var e = fr[r];
return e || (r >= fr.length && (fr.length = r + 1), fr[r] = e = Ar.get(r)), e;
}, je = (r, e, t) => {
return e || (r >= fr.length && (fr.length = r + 1), fr[r] = e = Dr.get(r)), e;
}, Oe = (r, e, t) => {
if (r.includes("j"))
return Oe(r, e, t);
return De(r, e, t);
var n = _(e).apply(null, t);

@@ -426,3 +425,3 @@ return n;

return function() {
return t.length = 0, Object.assign(t, arguments), je(r, e, t);
return t.length = 0, Object.assign(t, arguments), Oe(r, e, t);
};

@@ -452,3 +451,3 @@ }, z = (r, e) => {

}, t;
}, jr = void 0, Ir = (r) => {
}, Or, Ir = (r) => {
var e = Zr(r), t = w(e);

@@ -459,3 +458,3 @@ return k(e), t;

function i(a) {
if (!n[a] && !D[a]) {
if (!n[a] && !j[a]) {
if (sr[a]) {

@@ -468,3 +467,3 @@ sr[a].forEach(i);

}
throw e.forEach(i), new jr(`${r}: ` + t.map(Ir).join([", "]));
throw e.forEach(i), new Or(`${r}: ` + t.map(Ir).join([", "]));
}, Be = (r, e, t, n, i, a, o) => {

@@ -474,5 +473,5 @@ var s = xe(e, t);

Ve(`Cannot call ${r} due to unbound types`, s);
}, e - 1), Ur([], s, function(c) {
}, e - 1), Wr([], s, function(c) {
var u = [c[0], null].concat(c.slice(1));
return De(r, We(r, u, null, i, a), e - 1), [];
return je(r, We(r, u, null, i, a), e - 1), [];
});

@@ -577,3 +576,3 @@ }, Ze = (r, e, t) => {

var t = e === "std::string";
F(r, { name: e, fromWireType: (n) => {
F(r, { name: e, fromWireType(n) {
var i = d[n >> 2], a = n + 4, o;

@@ -594,3 +593,3 @@ if (t)

return k(n), o;
}, toWireType: (n, i) => {
}, toWireType(n, i) {
i instanceof ArrayBuffer && (i = new Uint8Array(i));

@@ -611,3 +610,5 @@ var a, o = typeof i == "string";

return n !== null && n.push(k, s), s;
}, argPackAdvance: W, readValueFromPointer: Le, destructorFunction: (n) => k(n) });
}, argPackAdvance: W, readValueFromPointer: Le, destructorFunction(n) {
k(n);
} });
}, Hr = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, Ye = (r, e) => {

@@ -672,3 +673,3 @@ for (var t = r, n = t >> 1, i = n + e / 2; !(n >= i) && nr[n]; )

if ($ == u || l[C >> s] == 0) {
var O = C - m, E = n(m, O);
var D = C - m, E = n(m, D);
v === void 0 ? v = E : (v += String.fromCharCode(0), v += E), m = C + e;

@@ -682,3 +683,5 @@ }

return d[v >> 2] = l >> s, i(u, v + 4, l + e), c !== null && c.push(k, v), v;
}, argPackAdvance: W, readValueFromPointer: hr, destructorFunction: (c) => k(c) });
}, argPackAdvance: W, readValueFromPointer: hr, destructorFunction(c) {
k(c);
} });
}, ot = (r, e, t, n, i, a) => {

@@ -709,3 +712,3 @@ or[r] = { name: w(e), rawConstructor: z(t, n), rawDestructor: z(i, a), fields: [] };

}, dt = (r, e) => {
var t = D[r];
var t = j[r];
return t === void 0 && A(e + " has unknown type " + Ir(r)), t;

@@ -750,14 +753,14 @@ }, _t = (r) => {

}, wt = (r) => r;
kr = f.InternalError = class extends Error {
Fr = f.InternalError = class extends Error {
constructor(e) {
super(e), this.name = "InternalError";
}
}, me(), xr = f.BindingError = class extends Error {
}, me(), Sr = f.BindingError = class extends Error {
constructor(e) {
super(e), this.name = "BindingError";
}
}, Ae(), $e(), jr = f.UnboundTypeError = He(Error, "UnboundTypeError");
var At = { v: ce, u: ue, a: ve, k: de, s: _e, M: he, m: pe, f: le, O: ge, E: ye, I: we, H: Ee, z: Ce, N: Be, r: Ne, p: Xe, y: Qe, w: at, Q: ot, P: st, J: ft, K: Or, D: lt, B: vt, C: ht, x: pt, G: gt, F: bt, t: Ot, b: Tt, e: Pt, l: xt, h: Ct, j: jt, L: Dt, i: Ft, d: $t, g: St, c: Ut, o: Rt, n: Et, q: Wt, A: kt, R: wt }, p = fe(), pr = f._malloc = (r) => (pr = f._malloc = p.U)(r), k = f._free = (r) => (k = f._free = p.V)(r), Zr = (r) => (Zr = p.X)(r);
f.__embind_initialize_bindings = () => (f.__embind_initialize_bindings = p.Y)();
var h = (r, e) => (h = p.Z)(r, e), G = (r) => (G = p._)(r), g = () => (g = p.$)(), y = (r) => (y = p.aa)(r), Nr = (r) => (Nr = p.ba)(r), Xr = (r) => (Xr = p.ca)(r), Lr = (r, e, t) => (Lr = p.da)(r, e, t), qr = (r) => (qr = p.ea)(r);
}, Ae(), $e(), Or = f.UnboundTypeError = He(Error, "UnboundTypeError");
var At = { v: ce, u: ue, a: ve, k: de, s: _e, M: he, m: pe, f: le, O: ge, E: ye, I: we, H: Ee, z: Ce, N: Be, r: Ne, p: Xe, y: Qe, w: at, Q: ot, P: st, J: ft, K: jr, D: lt, B: vt, C: ht, x: pt, G: gt, F: bt, t: Dt, b: Tt, e: Pt, l: xt, h: Ct, j: Ot, L: jt, i: Ft, d: $t, g: St, c: Ut, o: Rt, n: Et, q: Wt, A: kt, R: wt }, h = fe(), pr = f._malloc = (r) => (pr = f._malloc = h.U)(r), k = f._free = (r) => (k = f._free = h.V)(r), Zr = (r) => (Zr = h.X)(r);
f.__embind_initialize_bindings = () => (f.__embind_initialize_bindings = h.Y)();
var p = (r, e) => (p = h.Z)(r, e), G = (r) => (G = h._)(r), g = () => (g = h.$)(), y = (r) => (y = h.aa)(r), Nr = (r) => (Nr = h.ba)(r), Xr = (r) => (Xr = h.ca)(r), Lr = (r, e, t) => (Lr = h.da)(r, e, t), qr = (r) => (qr = h.ea)(r);
function Tt(r, e) {

@@ -770,3 +773,3 @@ var t = g();

throw n;
h(1, 0);
p(1, 0);
}

@@ -781,3 +784,3 @@ }

throw n;
h(1, 0);
p(1, 0);
}

@@ -792,3 +795,3 @@ }

throw s;
h(1, 0);
p(1, 0);
}

@@ -803,3 +806,3 @@ }

throw o;
h(1, 0);
p(1, 0);
}

@@ -814,3 +817,3 @@ }

throw o;
h(1, 0);
p(1, 0);
}

@@ -825,3 +828,3 @@ }

throw i;
h(1, 0);
p(1, 0);
}

@@ -836,3 +839,3 @@ }

throw t;
h(1, 0);
p(1, 0);
}

@@ -847,3 +850,3 @@ }

throw m;
h(1, 0);
p(1, 0);
}

@@ -858,3 +861,3 @@ }

throw l;
h(1, 0);
p(1, 0);
}

@@ -869,3 +872,3 @@ }

throw a;
h(1, 0);
p(1, 0);
}

@@ -880,3 +883,3 @@ }

throw i;
h(1, 0);
p(1, 0);
}

@@ -891,6 +894,6 @@ }

throw a;
h(1, 0);
p(1, 0);
}
}
function Dt(r, e, t, n, i, a, o) {
function jt(r, e, t, n, i, a, o) {
var s = g();

@@ -902,6 +905,6 @@ try {

throw c;
h(1, 0);
p(1, 0);
}
}
function Ot(r) {
function Dt(r) {
var e = g();

@@ -913,6 +916,6 @@ try {

throw t;
h(1, 0);
p(1, 0);
}
}
function jt(r, e, t, n, i, a) {
function Ot(r, e, t, n, i, a) {
var o = g();

@@ -924,3 +927,3 @@ try {

throw s;
h(1, 0);
p(1, 0);
}

@@ -954,9 +957,9 @@ }

async function Xt(I, {
format: J = j.format,
charset: f = j.charset,
quietZone: Q = j.quietZone,
width: M = j.width,
height: Y = j.height,
eccLevel: rr = j.eccLevel
} = j) {
format: J = O.format,
charset: f = O.charset,
quietZone: Q = O.quietZone,
width: M = O.width,
height: Y = O.height,
eccLevel: rr = O.eccLevel
} = O) {
return Ht(

@@ -979,3 +982,3 @@ I,

Kt as defaultZXingReadOptions,
j as defaultZXingWriteOptions,
O as defaultZXingWriteOptions,
Nt as getZXingModule,

@@ -982,0 +985,0 @@ Jt as purgeZXingModule,

@@ -5,3 +5,3 @@ {

"private": false,
"version": "2.1.4",
"version": "2.1.5",
"type": "module",

@@ -65,11 +65,11 @@ "files": [

"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/parser": "^6.6.0",
"@vitest/browser": "^0.34.3",
"@vitest/coverage-istanbul": "^0.34.3",
"@vitest/ui": "^0.34.3",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"@vitest/browser": "^0.34.4",
"@vitest/coverage-istanbul": "^0.34.4",
"@vitest/ui": "^0.34.4",
"cross-env": "^7.0.3",
"eslint": "^8.48.0",
"npm-check-updates": "^16.13.2",
"playwright": "^1.37.1",
"eslint": "^8.49.0",
"npm-check-updates": "^16.14.3",
"playwright": "^1.38.0",
"prettier": "^3.0.3",

@@ -80,3 +80,3 @@ "replace-in-file": "^7.0.1",

"vite-plugin-static-copy": "^0.17.0",
"vitest": "^0.34.3"
"vitest": "^0.34.4"
},

@@ -83,0 +83,0 @@ "dependencies": {

@@ -250,3 +250,3 @@ # @sec-ant/zxing-wasm

When using this package, the wasm binary needs to be served along with the JS glue code. In order to provide a smooth dev experience, the wasm binary serve path is automatically assigned the [jsDelivr CDN](https://cdn.jsdelivr.net/npm/@sec-ant/zxing-wasm/) url upon build.
When using this package, the wasm binary needs to be served along with the JS glue code. In order to provide a smooth dev experience, the wasm binary serve path is automatically assigned the [jsDelivr CDN](https://fastly.jsdelivr.net/npm/@sec-ant/zxing-wasm/) url upon build.

@@ -253,0 +253,0 @@ If you would like to change the serve path (to one of your local network hosts or other CDNs), please use `setZXingModuleOverrides` to override the [`locateFile`](https://emscripten.org/docs/api_reference/module.html?highlight=locatefile#Module.locateFile) function in advance. `locateFile` is one of the [Emscripten `Module` attribute hooks](https://emscripten.org/docs/api_reference/module.html?highlight=locatefile#affecting-execution) that can affect the code execution of the `Module` object during its lifecycles.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc