UNPKG

bry-biometric-collector

Version:

BRy web-collector component for biometric capture.

934 lines 1.65 MB
var l$ = Object.defineProperty, u$ = ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (t, n) => (typeof require < "u" ? require : t)[n] }) : e)(function(e) { if (typeof require < "u") return require.apply(this, arguments); throw Error('Dynamic require of "' + e + '" is not supported'); }), ig = (e, t) => { for (var n in t) l$(e, n, { get: t[n], enumerable: !0 }); }, p$ = {}; ig(p$, { Abs: () => dl, Acos: () => ei, Acosh: () => ti, AdadeltaOptimizer: () => Cy, AdagradOptimizer: () => _y, AdamOptimizer: () => Ey, AdamaxOptimizer: () => $y, Add: () => Qa, AddN: () => ni, All: () => hl, Any: () => cl, ArgMax: () => ml, ArgMin: () => fl, Asin: () => ri, Asinh: () => ai, Atan: () => si, Atan2: () => oi, Atanh: () => ii, AvgPool: () => li, AvgPool3D: () => gl, AvgPool3DGrad: () => Cp, AvgPoolGrad: () => Tp, BackendWasm: () => L_, BatchMatMul: () => ui, BatchToSpaceND: () => yl, Bincount: () => bl, BitwiseAnd: () => xl, BroadcastArgs: () => _p, BroadcastTo: () => H0, Callback: () => OS, CallbackList: () => AI, Cast: () => pi, Ceil: () => di, ClipByValue: () => es, Complex: () => ec, ComplexAbs: () => Ep, Concat: () => wl, Conv2D: () => hi, Conv2DBackpropFilter: () => tc, Conv2DBackpropInput: () => ci, Conv3D: () => mi, Conv3DBackpropFilterV2: () => vl, Conv3DBackpropInputV2: () => kl, Cos: () => fi, Cosh: () => gi, CropAndResize: () => Sl, Cumprod: () => Il, Cumsum: () => yi, CustomCallback: () => RI, DataStorage: () => Jh, DenseBincount: () => $p, DepthToSpace: () => Nl, DepthwiseConv2dNative: () => bi, DepthwiseConv2dNativeBackpropFilter: () => nc, DepthwiseConv2dNativeBackpropInput: () => rc, Diag: () => Ap, Dilation2D: () => xi, Dilation2DBackpropFilter: () => qo, Dilation2DBackpropInput: () => jo, Draw: () => ac, ENV: () => dg, EarlyStopping: () => LS, Einsum: () => sc, Elu: () => vi, EluGrad: () => Tl, Environment: () => U0, Equal: () => Cl, Erf: () => ki, Exp: () => Ii, ExpandDims: () => _l, Expm1: () => Si, FFT: () => ic, Fill: () => Fp, FlipLeftRight: () => El, Floor: () => Ni, FloorDiv: () => Ti, FromPixels: () => wh, FusedBatchNorm: () => Ci, FusedConv2D: () => Ds, FusedDepthwiseConv2D: () => Ms, GPGPUContext: () => fh, GatherNd: () => Al, GatherV2: () => $l, GraphModel: () => gx, Greater: () => Fl, GreaterEqual: () => _i, History: () => FI, IFFT: () => oc, Identity: () => Ei, Imag: () => lc, InputSpec: () => $t, IsFinite: () => $i, IsInf: () => Ai, IsNan: () => Fi, KernelBackend: () => Sp, LRN: () => Oi, LRNGrad: () => Pl, LayerVariable: () => II, LayersModel: () => sa, LeakyRelu: () => Ri, Less: () => Rl, LessEqual: () => Dl, LinSpace: () => Ml, Log: () => Di, Log1p: () => Mi, LogSoftmax: () => q0, LogicalAnd: () => Ol, LogicalNot: () => Ll, LogicalOr: () => zl, LogicalXor: () => j0, LowerBound: () => tA, MathBackendCPU: () => xx, MathBackendWebGL: () => qx, MatrixBandPart: () => nA, Max: () => Li, MaxPool: () => Pi, MaxPool3D: () => Bl, MaxPool3DGrad: () => Dp, MaxPoolGrad: () => Rp, MaxPoolWithArgmax: () => Mp, Maximum: () => zi, Mean: () => Bi, Min: () => Wi, Minimum: () => Vi, MirrorPad: () => Ui, Mod: () => Gi, MomentumOptimizer: () => Ay, Multinomial: () => Wl, Multiply: () => Hi, Neg: () => Vl, NonMaxSuppressionV3: () => Gl, NonMaxSuppressionV4: () => Hl, NonMaxSuppressionV5: () => jl, NotEqual: () => Ul, OP_SCOPE_SUFFIX: () => gg, OneHot: () => ji, OnesLike: () => ql, Optimizer: () => ga, OptimizerConstructors: () => nI, Pack: () => Kl, PadV2: () => qi, Pool: () => rA, Pow: () => Ki, Prelu: () => Xi, Prod: () => Zi, RMSPropOptimizer: () => Fy, RNN: () => ya, RaggedGather: () => uc, RaggedRange: () => pc, RaggedTensorToTensor: () => dc, Range: () => Op, Rank: () => tf, Real: () => hc, RealDiv: () => wi, Reciprocal: () => Ji, Reduction: () => hn, Relu: () => Yi, Relu6: () => to, Reshape: () => Xl, ResizeBilinear: () => eo, ResizeBilinearGrad: () => Jl, ResizeNearestNeighbor: () => Qi, ResizeNearestNeighborGrad: () => Zl, Reverse: () => no, RotateWithOffset: () => hu, Round: () => ro, Rsqrt: () => ao, SGDOptimizer: () => qc, ScatterNd: () => Yl, SearchSorted: () => eu, Select: () => tu, Selu: () => so, Sequential: () => im, Sigmoid: () => uo, Sign: () => lo, Sin: () => io, Sinh: () => oo, Slice: () => nu, Softmax: () => mo, Softplus: () => po, SpaceToBatchND: () => ru, SparseFillEmptyRows: () => Lp, SparseReshape: () => su, SparseSegmentMean: () => zp, SparseSegmentSum: () => Pp, SparseToDense: () => iu, SplitV: () => au, Sqrt: () => ho, Square: () => Bp, SquaredDifference: () => fo, StaticRegexReplace: () => Wp, Step: () => ns, StridedSlice: () => ou, StringNGrams: () => Vp, StringSplit: () => Up, StringToHashBucketFast: () => Gp, Sub: () => go, Sum: () => co, SymbolicTensor: () => Tr, Tan: () => yo, Tanh: () => bo, Tensor: () => Fe, TensorBuffer: () => At, TensorScatterUpdate: () => Ql, Tile: () => ts, TopK: () => lu, Transform: () => uu, Transpose: () => aa, Unique: () => Hp, Unpack: () => pu, UnsortedSegmentSum: () => jp, UpperBound: () => aA, Variable: () => Os, ZerosLike: () => du, _FusedMatMul: () => Rs, abs: () => Et, acos: () => vg, acosh: () => kg, add: () => Z, addN: () => v1, all: () => yc, any: () => pp, argMax: () => Bs, argMin: () => Ig, asin: () => Sg, asinh: () => Ng, atan: () => Tg, atan2: () => Cg, atanh: () => _g, avgPool: () => ca, avgPool3d: () => $g, backend: () => yg, backend_util: () => N, basicLSTMCell: () => N1, batchNorm: () => xo, batchNorm2d: () => Ag, batchNorm3d: () => Fg, batchNorm4d: () => Rg, batchToSpaceND: () => Qp, bincount: () => Dg, bitwiseAnd: () => T1, booleanMaskAsync: () => fk, broadcastArgs: () => C1, broadcastTo: () => Es, broadcast_util: () => cu, browser: () => hd, buffer: () => ze, callbacks: () => JU, cast: () => se, ceil: () => Mg, clipByValue: () => sn, clone: () => Br, complex: () => oa, concat: () => it, concat1d: () => Og, concat2d: () => Lg, concat3d: () => zg, concat4d: () => Pg, constraints: () => CI, conv1d: () => bc, conv2d: () => fn, conv2dTranspose: () => xc, conv3d: () => Wg, conv3dTranspose: () => Vg, copyRegisteredKernels: () => lA, cos: () => ed, cosh: () => wc, cosineWindow: () => Vc, cumprod: () => cp, cumsum: () => vc, customGrad: () => Gr, data: () => oN, denseBincount: () => Sh, deprecationWarn: () => o1, depthToSpace: () => Ug, depthwiseConv2d: () => wo, deregisterOp: () => eG, device_util: () => Zp, diag: () => E1, dilation2d: () => Gg, disableDeprecationWarnings: () => zA, dispose: () => _e, disposeVariables: () => PA, div: () => fe, divNoNan: () => Hg, dot: () => jg, dropout: () => ky, einsum: () => Is, elu: () => mu, enableDebugMode: () => LA, enableProdMode: () => OA, enclosingPowerOfTwo: () => Iy, engine: () => ur, ensureShape: () => A1, env: () => G, equal: () => Vn, erf: () => qg, euclideanNorm: () => Zg, exp: () => on, expandDims: () => jt, expm1: () => Jg, eye: () => kc, fft: () => pd, fill: () => Wn, findBackend: () => HA, findBackendFactory: () => jA, floor: () => gu, floorDiv: () => gc, forceHalfFloat: () => AT, fused: () => tl, gather: () => yu, gatherND: () => xk, gather_util: () => My, getBackend: () => l1, getGradient: () => Qm, getKernel: () => op, getKernelsForBackend: () => vh, getThreadsCount: () => ade, gpgpu_util: () => lT, grad: () => SD, grads: () => ND, greater: () => wn, greaterEqual: () => ma, ifft: () => el, imag: () => td, image: () => Jn, inTopKAsync: () => wk, initializers: () => _I, input: () => qI, io: () => nn, irfft: () => Mc, isFinite: () => Yg, isInf: () => Qg, isNaN: () => ey, keep: () => Ot, kernel_impls: () => Kr, layers: () => EI, leakyRelu: () => nd, less: () => Zo, lessEqual: () => as, linalg: () => Ty, linspace: () => O1, loadGraphModel: () => iH, loadGraphModelSync: () => oH, loadLayersModel: () => q4, localResponseNormalization: () => ty, log: () => Un, log1p: () => rd, logSigmoid: () => ny, logSoftmax: () => Sc, logSumExp: () => ad, logicalAnd: () => hr, logicalNot: () => sd, logicalOr: () => Nc, logicalXor: () => ry, losses: () => Fk, lowerBound: () => z1, matMul: () => Oe, math: () => Uk, max: () => tr, maxPool: () => Ut, maxPool3d: () => ay, maxPoolWithArgmax: () => P1, maximum: () => qr, mean: () => wt, memory: () => Ih, meshgrid: () => B1, metrics: () => RS, min: () => Xo, minimum: () => Ua, mirrorPad: () => sy, mod: () => iy, model: () => Z4, models: () => DS, moments: () => id, movingAverage: () => gk, mul: () => z, multiRNNCell: () => W1, multinomial: () => V1, neg: () => ct, nextFrame: () => Oy, norm: () => fu, notEqual: () => Gs, oneHot: () => Jo, ones: () => Tn, onesLike: () => Gn, op: () => L, outerProduct: () => U1, pad: () => _r, pad1d: () => G1, pad2d: () => H1, pad3d: () => j1, pad4d: () => q1, pool: () => oy, pow: () => la, prelu: () => ld, print: () => wg, prod: () => ly, profile: () => BA, raggedGather: () => K1, raggedRange: () => X1, raggedTensorToTensor: () => Z1, rand: () => J1, randomGamma: () => tk, randomNormal: () => Cc, randomStandardNormal: () => nk, randomUniform: () => ss, randomUniformInt: () => rk, range: () => Hs, ready: () => UA, real: () => Yo, reciprocal: () => cy, registerBackend: () => fc, registerCallbackConstructor: () => Y4, registerGradient: () => K0, registerKernel: () => qp, registerOp: () => QU, regularizers: () => MS, relu: () => et, relu6: () => _c, removeBackend: () => GA, reshape: () => P, reverse: () => ar, reverse1d: () => ak, reverse2d: () => sk, reverse3d: () => ik, reverse4d: () => ok, rfft: () => dd, round: () => Ec, rsqrt: () => $c, scalar: () => ve, scatterND: () => yk, scatter_util: () => zc, searchSorted: () => Tc, selu: () => Ac, separableConv2d: () => bu, sequential: () => J4, serialization: () => ne, setBackend: () => VA, setPlatform: () => qA, setThreadsCount: () => rde, setWasmPath: () => tde, setWasmPaths: () => nde, setWebGLContext: () => F2, setdiff1dAsync: () => lk, shared: () => wx, sigmoid: () => dr, sign: () => my, signal: () => Ak, sin: () => Fc, sinh: () => Rc, slice: () => Ue, slice1d: () => ud, slice2d: () => Dc, slice3d: () => xu, slice4d: () => Qo, slice_util: () => zt, softmax: () => is, softplus: () => vo, spaceToBatchND: () => od, sparse: () => Rk, sparseToDense: () => bk, spectral: () => $k, split: () => Cn, sqrt: () => rn, square: () => st, squaredDifference: () => Oc, squeeze: () => os, stack: () => Ft, step: () => ko, stridedSlice: () => fy, string: () => Dk, sub: () => de, sum: () => ge, sumOutType: () => mc, tan: () => gy, tanh: () => Vs, tensor: () => mn, tensor1d: () => Ye, tensor2d: () => Wr, tensor3d: () => Lc, tensor4d: () => Ga, tensor5d: () => uk, tensor6d: () => pk, tensorScatterUpdate: () => hk, tensor_util: () => vr, test_util: () => Y1, tidy: () => W, tile: () => Bn, time: () => WA, topk: () => by, train: () => ws, transpose: () => Le, truncatedNormal: () => Bc, unique: () => xy, unregisterGradient: () => oA, unregisterKernel: () => iA, unsortedSegmentSum: () => Wc, unstack: () => Nt, upcastType: () => nr, upperBound: () => ck, util: () => v, valueAndGrad: () => TD, valueAndGrads: () => CD, variable: () => wy, variableGrads: () => L1, version: () => dde, version_converter: () => uH, version_core: () => JL, version_cpu: () => pj, version_layers: () => sb, version_wasm: () => sde, version_webgl: () => QZ, webgl: () => eJ, webgl_util: () => A2, where: () => Kt, whereAsync: () => vy, zeros: () => vt, zerosLike: () => He }); var d$ = Object.create, og = Object.defineProperty, h$ = Object.getOwnPropertyDescriptor, c$ = Object.getOwnPropertyNames, m$ = Object.getPrototypeOf, f$ = Object.prototype.hasOwnProperty, Dt = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), Ee = (e, t) => { for (var n in t) og(e, n, { get: t[n], enumerable: !0 }); }, g$ = (e, t, n, r) => { if (t && typeof t == "object" || typeof t == "function") for (let a of c$(t)) !f$.call(e, a) && a !== n && og(e, a, { get: () => t[a], enumerable: !(r = h$(t, a)) || r.enumerable }); return e; }, Ya = (e, t, n) => (n = e != null ? d$(m$(e)) : {}, g$(t || !e || !e.__esModule ? og(n, "default", { value: e, enumerable: !0 }) : n, e)), y$ = Dt((e, t) => { t.exports = r; var n = null; try { n = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 13, 2, 96, 0, 1, 127, 96, 4, 127, 127, 127, 127, 1, 127, 3, 7, 6, 0, 1, 1, 1, 1, 1, 6, 6, 1, 127, 1, 65, 0, 11, 7, 50, 6, 3, 109, 117, 108, 0, 1, 5, 100, 105, 118, 95, 115, 0, 2, 5, 100, 105, 118, 95, 117, 0, 3, 5, 114, 101, 109, 95, 115, 0, 4, 5, 114, 101, 109, 95, 117, 0, 5, 8, 103, 101, 116, 95, 104, 105, 103, 104, 0, 0, 10, 191, 1, 6, 4, 0, 35, 0, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 126, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 127, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 128, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 129, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 130, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11])), {}).exports; } catch { } function r(S, M, B) { this.low = S | 0, this.high = M | 0, this.unsigned = !!B; } r.prototype.__isLong__, Object.defineProperty(r.prototype, "__isLong__", { value: !0 }); function a(S) { return (S && S.__isLong__) === !0; } r.isLong = a; var s = {}, i = {}; function o(S, M) { var B, U, H; return M ? (S >>>= 0, (H = 0 <= S && S < 256) && (U = i[S], U) ? U : (B = p(S, (S | 0) < 0 ? -1 : 0, !0), H && (i[S] = B), B)) : (S |= 0, (H = -128 <= S && S < 128) && (U = s[S], U) ? U : (B = p(S, S < 0 ? -1 : 0, !1), H && (s[S] = B), B)); } r.fromInt = o; function l(S, M) { if (isNaN(S)) return M ? w : x; if (M) { if (S < 0) return w; if (S >= g) return A; } else { if (S <= -y) return R; if (S + 1 >= y) return E; } return S < 0 ? l(-S, M).neg() : p(S % f | 0, S / f | 0, M); } r.fromNumber = l; function p(S, M, B) { return new r(S, M, B); } r.fromBits = p; var u = Math.pow; function d(S, M, B) { if (S.length === 0) throw Error("empty string"); if (S === "NaN" || S === "Infinity" || S === "+Infinity" || S === "-Infinity") return x; if (typeof M == "number" ? (B = M, M = !1) : M = !!M, B = B || 10, B < 2 || 36 < B) throw RangeError("radix"); var U; if ((U = S.indexOf("-")) > 0) throw Error("interior hyphen"); if (U === 0) return d(S.substring(1), M, B).neg(); for (var H = l(u(B, 8)), K = x, j = 0; j < S.length; j += 8) { var X = Math.min(8, S.length - j), ee = parseInt(S.substring(j, j + X), B); if (X < 8) { var Y = l(u(B, X)); K = K.mul(Y).add(l(ee)); } else K = K.mul(H), K = K.add(l(ee)); } return K.unsigned = M, K; } r.fromString = d; function h(S, M) { return typeof S == "number" ? l(S, M) : typeof S == "string" ? d(S, M) : p(S.low, S.high, typeof M == "boolean" ? M : S.unsigned); } r.fromValue = h; var c = 65536, m = 1 << 24, f = c * c, g = f * f, y = g / 2, b = o(m), x = o(0); r.ZERO = x; var w = o(0, !0); r.UZERO = w; var I = o(1); r.ONE = I; var T = o(1, !0); r.UONE = T; var _ = o(-1); r.NEG_ONE = _; var E = p(-1, 2147483647, !1); r.MAX_VALUE = E; var A = p(-1, -1, !0); r.MAX_UNSIGNED_VALUE = A; var R = p(0, -2147483648, !1); r.MIN_VALUE = R; var F = r.prototype; F.toInt = function() { return this.unsigned ? this.low >>> 0 : this.low; }, F.toNumber = function() { return this.unsigned ? (this.high >>> 0) * f + (this.low >>> 0) : this.high * f + (this.low >>> 0); }, F.toString = function(S) { if (S = S || 10, S < 2 || 36 < S) throw RangeError("radix"); if (this.isZero()) return "0"; if (this.isNegative()) if (this.eq(R)) { var M = l(S), B = this.div(M), U = B.mul(M).sub(this); return B.toString(S) + U.toInt().toString(S); } else return "-" + this.neg().toString(S); for (var H = l(u(S, 6), this.unsigned), K = this, j = ""; ; ) { var X = K.div(H), ee = K.sub(X.mul(H)).toInt() >>> 0, Y = ee.toString(S); if (K = X, K.isZero()) return Y + j; for (; Y.length < 6; ) Y = "0" + Y; j = "" + Y + j; } }, F.getHighBits = function() { return this.high; }, F.getHighBitsUnsigned = function() { return this.high >>> 0; }, F.getLowBits = function() { return this.low; }, F.getLowBitsUnsigned = function() { return this.low >>> 0; }, F.getNumBitsAbs = function() { if (this.isNegative()) return this.eq(R) ? 64 : this.neg().getNumBitsAbs(); for (var S = this.high != 0 ? this.high : this.low, M = 31; M > 0 && !(S & 1 << M); M--) ; return this.high != 0 ? M + 33 : M + 1; }, F.isZero = function() { return this.high === 0 && this.low === 0; }, F.eqz = F.isZero, F.isNegative = function() { return !this.unsigned && this.high < 0; }, F.isPositive = function() { return this.unsigned || this.high >= 0; }, F.isOdd = function() { return (this.low & 1) === 1; }, F.isEven = function() { return (this.low & 1) === 0; }, F.equals = function(S) { return a(S) || (S = h(S)), this.unsigned !== S.unsigned && this.high >>> 31 === 1 && S.high >>> 31 === 1 ? !1 : this.high === S.high && this.low === S.low; }, F.eq = F.equals, F.notEquals = function(S) { return !this.eq(S); }, F.neq = F.notEquals, F.ne = F.notEquals, F.lessThan = function(S) { return this.comp(S) < 0; }, F.lt = F.lessThan, F.lessThanOrEqual = function(S) { return this.comp(S) <= 0; }, F.lte = F.lessThanOrEqual, F.le = F.lessThanOrEqual, F.greaterThan = function(S) { return this.comp(S) > 0; }, F.gt = F.greaterThan, F.greaterThanOrEqual = function(S) { return this.comp(S) >= 0; }, F.gte = F.greaterThanOrEqual, F.ge = F.greaterThanOrEqual, F.compare = function(S) { if (a(S) || (S = h(S)), this.eq(S)) return 0; var M = this.isNegative(), B = S.isNegative(); return M && !B ? -1 : !M && B ? 1 : this.unsigned ? S.high >>> 0 > this.high >>> 0 || S.high === this.high && S.low >>> 0 > this.low >>> 0 ? -1 : 1 : this.sub(S).isNegative() ? -1 : 1; }, F.comp = F.compare, F.negate = function() { return !this.unsigned && this.eq(R) ? R : this.not().add(I); }, F.neg = F.negate, F.add = function(S) { a(S) || (S = h(S)); var M = this.high >>> 16, B = this.high & 65535, U = this.low >>> 16, H = this.low & 65535, K = S.high >>> 16, j = S.high & 65535, X = S.low >>> 16, ee = S.low & 65535, Y = 0, re = 0, te = 0, ae = 0; return ae += H + ee, te += ae >>> 16, ae &= 65535, te += U + X, re += te >>> 16, te &= 65535, re += B + j, Y += re >>> 16, re &= 65535, Y += M + K, Y &= 65535, p(te << 16 | ae, Y << 16 | re, this.unsigned); }, F.subtract = function(S) { return a(S) || (S = h(S)), this.add(S.neg()); }, F.sub = F.subtract, F.multiply = function(S) { if (this.isZero()) return x; if (a(S) || (S = h(S)), n) { var M = n.mul(this.low, this.high, S.low, S.high); return p(M, n.get_high(), this.unsigned); } if (S.isZero()) return x; if (this.eq(R)) return S.isOdd() ? R : x; if (S.eq(R)) return this.isOdd() ? R : x; if (this.isNegative()) return S.isNegative() ? this.neg().mul(S.neg()) : this.neg().mul(S).neg(); if (S.isNegative()) return this.mul(S.neg()).neg(); if (this.lt(b) && S.lt(b)) return l(this.toNumber() * S.toNumber(), this.unsigned); var B = this.high >>> 16, U = this.high & 65535, H = this.low >>> 16, K = this.low & 65535, j = S.high >>> 16, X = S.high & 65535, ee = S.low >>> 16, Y = S.low & 65535, re = 0, te = 0, ae = 0, ie = 0; return ie += K * Y, ae += ie >>> 16, ie &= 65535, ae += H * Y, te += ae >>> 16, ae &= 65535, ae += K * ee, te += ae >>> 16, ae &= 65535, te += U * Y, re += te >>> 16, te &= 65535, te += H * ee, re += te >>> 16, te &= 65535, te += K * X, re += te >>> 16, te &= 65535, re += B * Y + U * ee + H * X + K * j, re &= 65535, p(ae << 16 | ie, re << 16 | te, this.unsigned); }, F.mul = F.multiply, F.divide = function(S) { if (a(S) || (S = h(S)), S.isZero()) throw Error("division by zero"); if (n) { if (!this.unsigned && this.high === -2147483648 && S.low === -1 && S.high === -1) return this; var M = (this.unsigned ? n.div_u : n.div_s)(this.low, this.high, S.low, S.high); return p(M, n.get_high(), this.unsigned); } if (this.isZero()) return this.unsigned ? w : x; var B, U, H; if (this.unsigned) { if (S.unsigned || (S = S.toUnsigned()), S.gt(this)) return w; if (S.gt(this.shru(1))) return T; H = w; } else { if (this.eq(R)) { if (S.eq(I) || S.eq(_)) return R; if (S.eq(R)) return I; var K = this.shr(1); return B = K.div(S).shl(1), B.eq(x) ? S.isNegative() ? I : _ : (U = this.sub(S.mul(B)), H = B.add(U.div(S)), H); } else if (S.eq(R)) return this.unsigned ? w : x; if (this.isNegative()) return S.isNegative() ? this.neg().div(S.neg()) : this.neg().div(S).neg(); if (S.isNegative()) return this.div(S.neg()).neg(); H = x; } for (U = this; U.gte(S); ) { B = Math.max(1, Math.floor(U.toNumber() / S.toNumber())); for (var j = Math.ceil(Math.log(B) / Math.LN2), X = j <= 48 ? 1 : u(2, j - 48), ee = l(B), Y = ee.mul(S); Y.isNegative() || Y.gt(U); ) B -= X, ee = l(B, this.unsigned), Y = ee.mul(S); ee.isZero() && (ee = I), H = H.add(ee), U = U.sub(Y); } return H; }, F.div = F.divide, F.modulo = function(S) { if (a(S) || (S = h(S)), n) { var M = (this.unsigned ? n.rem_u : n.rem_s)(this.low, this.high, S.low, S.high); return p(M, n.get_high(), this.unsigned); } return this.sub(this.div(S).mul(S)); }, F.mod = F.modulo, F.rem = F.modulo, F.not = function() { return p(~this.low, ~this.high, this.unsigned); }, F.and = function(S) { return a(S) || (S = h(S)), p(this.low & S.low, this.high & S.high, this.unsigned); }, F.or = function(S) { return a(S) || (S = h(S)), p(this.low | S.low, this.high | S.high, this.unsigned); }, F.xor = function(S) { return a(S) || (S = h(S)), p(this.low ^ S.low, this.high ^ S.high, this.unsigned); }, F.shiftLeft = function(S) { return a(S) && (S = S.toInt()), (S &= 63) === 0 ? this : S < 32 ? p(this.low << S, this.high << S | this.low >>> 32 - S, this.unsigned) : p(0, this.low << S - 32, this.unsigned); }, F.shl = F.shiftLeft, F.shiftRight = function(S) { return a(S) && (S = S.toInt()), (S &= 63) === 0 ? this : S < 32 ? p(this.low >>> S | this.high << 32 - S, this.high >> S, this.unsigned) : p(this.high >> S - 32, this.high >= 0 ? 0 : -1, this.unsigned); }, F.shr = F.shiftRight, F.shiftRightUnsigned = function(S) { if (a(S) && (S = S.toInt()), S &= 63, S === 0) return this; var M = this.high; if (S < 32) { var B = this.low; return p(B >>> S | M << 32 - S, M >>> S, this.unsigned); } else return S === 32 ? p(M, 0, this.unsigned) : p(M >>> S - 32, 0, this.unsigned); }, F.shru = F.shiftRightUnsigned, F.shr_u = F.shiftRightUnsigned, F.toSigned = function() { return this.unsigned ? p(this.low, this.high, !1) : this; }, F.toUnsigned = function() { return this.unsigned ? this : p(this.low, this.high, !0); }, F.toBytes = function(S) { return S ? this.toBytesLE() : this.toBytesBE(); }, F.toBytesLE = function() { var S = this.high, M = this.low; return [M & 255, M >>> 8 & 255, M >>> 16 & 255, M >>> 24, S & 255, S >>> 8 & 255, S >>> 16 & 255, S >>> 24]; }, F.toBytesBE = function() { var S = this.high, M = this.low; return [S >>> 24, S >>> 16 & 255, S >>> 8 & 255, S & 255, M >>> 24, M >>> 16 & 255, M >>> 8 & 255, M & 255]; }, r.fromBytes = function(S, M, B) { return B ? r.fromBytesLE(S, M) : r.fromBytesBE(S, M); }, r.fromBytesLE = function(S, M) { return new r(S[0] | S[1] << 8 | S[2] << 16 | S[3] << 24, S[4] | S[5] << 8 | S[6] << 16 | S[7] << 24, M); }, r.fromBytesBE = function(S, M) { return new r(S[4] << 24 | S[5] << 16 | S[6] << 8 | S[7], S[0] << 24 | S[1] << 16 | S[2] << 8 | S[3], M); }; }), b$ = Dt(() => { }), x$ = Dt(() => { }), w$ = Dt((e, t) => { (function(n, r, a) { function s(p) { var u = this, d = l(); u.next = function() { var h = 2091639 * u.s0 + u.c * 23283064365386963e-26; return u.s0 = u.s1, u.s1 = u.s2, u.s2 = h - (u.c = h | 0); }, u.c = 1, u.s0 = d(" "), u.s1 = d(" "), u.s2 = d(" "), u.s0 -= d(p), u.s0 < 0 && (u.s0 += 1), u.s1 -= d(p), u.s1 < 0 && (u.s1 += 1), u.s2 -= d(p), u.s2 < 0 && (u.s2 += 1), d = null; } function i(p, u) { return u.c = p.c, u.s0 = p.s0, u.s1 = p.s1, u.s2 = p.s2, u; } function o(p, u) { var d = new s(p), h = u && u.state, c = d.next; return c.int32 = function() { return d.next() * 4294967296 | 0; }, c.double = function() { return c() + (c() * 2097152 | 0) * 11102230246251565e-32; }, c.quick = c, h && (typeof h == "object" && i(h, d), c.state = function() { return i(d, {}); }), c; } function l() { var p = 4022871197, u = function(d) { d = String(d); for (var h = 0; h < d.length; h++) { p += d.charCodeAt(h); var c = 0.02519603282416938 * p; p = c >>> 0, c -= p, c *= p, p = c >>> 0, c -= p, p += c * 4294967296; } return (p >>> 0) * 23283064365386963e-26; }; return u; } r && r.exports ? r.exports = o : a && a.amd ? a(function() { return o; }) : this.alea = o; })(e, typeof t == "object" && t, typeof define == "function" && define); }), v$ = Dt((e, t) => { (function(n, r, a) { function s(l) { var p = this, u = ""; p.x = 0, p.y = 0, p.z = 0, p.w = 0, p.next = function() { var h = p.x ^ p.x << 11; return p.x = p.y, p.y = p.z, p.z = p.w, p.w ^= p.w >>> 19 ^ h ^ h >>> 8; }, l === (l | 0) ? p.x = l : u += l; for (var d = 0; d < u.length + 64; d++) p.x ^= u.charCodeAt(d) | 0, p.next(); } function i(l, p) { return p.x = l.x, p.y = l.y, p.z = l.z, p.w = l.w, p; } function o(l, p) { var u = new s(l), d = p && p.state, h = function() { return (u.next() >>> 0) / 4294967296; }; return h.double = function() { do var c = u.next() >>> 11, m = (u.next() >>> 0) / 4294967296, f = (c + m) / (1 << 21); while (f === 0); return f; }, h.int32 = u.next, h.quick = h, d && (typeof d == "object" && i(d, u), h.state = function() { return i(u, {}); }), h; } r && r.exports ? r.exports = o : a && a.amd ? a(function() { return o; }) : this.xor128 = o; })(e, typeof t == "object" && t, typeof define == "function" && define); }), k$ = Dt((e, t) => { (function(n, r, a) { function s(l) { var p = this, u = ""; p.next = function() { var h = p.x ^ p.x >>> 2; return p.x = p.y, p.y = p.z, p.z = p.w, p.w = p.v, (p.d = p.d + 362437 | 0) + (p.v = p.v ^ p.v << 4 ^ (h ^ h << 1)) | 0; }, p.x = 0, p.y = 0, p.z = 0, p.w = 0, p.v = 0, l === (l | 0) ? p.x = l : u += l; for (var d = 0; d < u.length + 64; d++) p.x ^= u.charCodeAt(d) | 0, d == u.length && (p.d = p.x << 10 ^ p.x >>> 4), p.next(); } function i(l, p) { return p.x = l.x, p.y = l.y, p.z = l.z, p.w = l.w, p.v = l.v, p.d = l.d, p; } function o(l, p) { var u = new s(l), d = p && p.state, h = function() { return (u.next() >>> 0) / 4294967296; }; return h.double = function() { do var c = u.next() >>> 11, m = (u.next() >>> 0) / 4294967296, f = (c + m) / (1 << 21); while (f === 0); return f; }, h.int32 = u.next, h.quick = h, d && (typeof d == "object" && i(d, u), h.state = function() { return i(u, {}); }), h; } r && r.exports ? r.exports = o : a && a.amd ? a(function() { return o; }) : this.xorwow = o; })(e, typeof t == "object" && t, typeof define == "function" && define); }), I$ = Dt((e, t) => { (function(n, r, a) { function s(l) { var p = this; p.next = function() { var d = p.x, h = p.i, c, m; return c = d[h], c ^= c >>> 7, m = c ^ c << 24, c = d[h + 1 & 7], m ^= c ^ c >>> 10, c = d[h + 3 & 7], m ^= c ^ c >>> 3, c = d[h + 4 & 7], m ^= c ^ c << 7, c = d[h + 7 & 7], c = c ^ c << 13, m ^= c ^ c << 9, d[h] = m, p.i = h + 1 & 7, m; }; function u(d, h) { var c, m = []; if (h === (h | 0)) m[0] = h; else for (h = "" + h, c = 0; c < h.length; ++c) m[c & 7] = m[c & 7] << 15 ^ h.charCodeAt(c) + m[c + 1 & 7] << 13; for (; m.length < 8; ) m.push(0); for (c = 0; c < 8 && m[c] === 0; ++c) ; for (c == 8 ? m[7] = -1 : m[c], d.x = m, d.i = 0, c = 256; c > 0; --c) d.next(); } u(p, l); } function i(l, p) { return p.x = l.x.slice(), p.i = l.i, p; } function o(l, p) { l == null && (l = +/* @__PURE__ */ new Date()); var u = new s(l), d = p && p.state, h = function() { return (u.next() >>> 0) / 4294967296; }; return h.double = function() { do var c = u.next() >>> 11, m = (u.next() >>> 0) / 4294967296, f = (c + m) / (1 << 21); while (f === 0); return f; }, h.int32 = u.next, h.quick = h, d && (d.x && i(d, u), h.state = function() { return i(u, {}); }), h; } r && r.exports ? r.exports = o : a && a.amd ? a(function() { return o; }) : this.xorshift7 = o; })(e, typeof t == "object" && t, typeof define == "function" && define); }), S$ = Dt((e, t) => { (function(n, r, a) { function s(l) { var p = this; p.next = function() { var d = p.w, h = p.X, c = p.i, m, f; return p.w = d = d + 1640531527 | 0, f = h[c + 34 & 127], m = h[c = c + 1 & 127], f ^= f << 13, m ^= m << 17, f ^= f >>> 15, m ^= m >>> 12, f = h[c] = f ^ m, p.i = c, f + (d ^ d >>> 16) | 0; }; function u(d, h) { var c, m, f, g, y, b = [], x = 128; for (h === (h | 0) ? (m = h, h = null) : (h = h + "\0", m = 0, x = Math.max(x, h.length)), f = 0, g = -32; g < x; ++g) h && (m ^= h.charCodeAt((g + 32) % h.length)), g === 0 && (y = m), m ^= m << 10, m ^= m >>> 15, m ^= m << 4, m ^= m >>> 13, g >= 0 && (y = y + 1640531527 | 0, c = b[g & 127] ^= m + y, f = c == 0 ? f + 1 : 0); for (f >= 128 && (b[(h && h.length || 0) & 127] = -1), f = 127, g = 4 * 128; g > 0; --g) m = b[f + 34 & 127], c = b[f = f + 1 & 127], m ^= m << 13, c ^= c << 17, m ^= m >>> 15, c ^= c >>> 12, b[f] = m ^ c; d.w = y, d.X = b, d.i = f; } u(p, l); } function i(l, p) { return p.i = l.i, p.w = l.w, p.X = l.X.slice(), p; } function o(l, p) { l == null && (l = +/* @__PURE__ */ new Date()); var u = new s(l), d = p && p.state, h = function() { return (u.next() >>> 0) / 4294967296; }; return h.double = function() { do var c = u.next() >>> 11, m = (u.next() >>> 0) / 4294967296, f = (c + m) / (1 << 21); while (f === 0); return f; }, h.int32 = u.next, h.quick = h, d && (d.X && i(d, u), h.state = function() { return i(u, {}); }), h; } r && r.exports ? r.exports = o : a && a.amd ? a(function() { return o; }) : this.xor4096 = o; })(e, typeof t == "object" && t, typeof define == "function" && define); }), N$ = Dt((e, t) => { (function(n, r, a) { function s(l) { var p = this, u = ""; p.next = function() { var h = p.b, c = p.c, m = p.d, f = p.a; return h = h << 25 ^ h >>> 7 ^ c, c = c - m | 0, m = m << 24 ^ m >>> 8 ^ f, f = f - h | 0, p.b = h = h << 20 ^ h >>> 12 ^ c, p.c = c = c - m | 0, p.d = m << 16 ^ c >>> 16 ^ f, p.a = f - h | 0; }, p.a = 0, p.b = 0, p.c = -1640531527, p.d = 1367130551, l === Math.floor(l) ? (p.a = l / 4294967296 | 0, p.b = l | 0) : u += l; for (var d = 0; d < u.length + 20; d++) p.b ^= u.charCodeAt(d) | 0, p.next(); } function i(l, p) { return p.a = l.a, p.b = l.b, p.c = l.c, p.d = l.d, p; } function o(l, p) { var u = new s(l), d = p && p.state, h = function() { return (u.next() >>> 0) / 4294967296; }; return h.double = function() { do var c = u.next() >>> 11, m = (u.next() >>> 0) / 4294967296, f = (c + m) / (1 << 21); while (f === 0); return f; }, h.int32 = u.next, h.quick = h, d && (typeof d == "object" && i(d, u), h.state = function() { return i(u, {}); }), h; } r && r.exports ? r.exports = o : a && a.amd ? a(function() { return o; }) : this.tychei = o; })(e, typeof t == "object" && t, typeof define == "function" && define); }), T$ = Dt(() => { }), C$ = Dt((e, t) => { (function(n, r, a) { var s = 256, i = 6, o = 52, l = "random", p = a.pow(s, i), u = a.pow(2, o), d = u * 2, h = s - 1, c; function m(I, T, _) { var E = []; T = T == !0 ? { entropy: !0 } : T || {}; var A = b(y(T.entropy ? [I, w(r)] : I ?? x(), 3), E), R = new f(E), F = function() { for (var S = R.g(i), M = p, B = 0; S < u; ) S = (S + B) * s, M *= s, B = R.g(1); for (; S >= d; ) S /= 2, M /= 2, B >>>= 1; return (S + B) / M; }; return F.int32 = function() { return R.g(4) | 0; }, F.quick = function() { return R.g(4) / 4294967296; }, F.double = F, b(w(R.S), r), (T.pass || _ || function(S, M, B, U) { return U && (U.S && g(U, R), S.state = function() { return g(R, {}); }), B ? (a[l] = S, M) : S; })(F, A, "global" in T ? T.global : this == a, T.state); } function f(I) { var T, _ = I.length, E = this, A = 0, R = E.i = E.j = 0, F = E.S = []; for (_ || (I = [_++]); A < s; ) F[A] = A++; for (A = 0; A < s; A++) F[A] = F[R = h & R + I[A % _] + (T = F[A])], F[R] = T; (E.g = function(S) { for (var M, B = 0, U = E.i, H = E.j, K = E.S; S--; ) M = K[U = h & U + 1], B = B * s + K[h & (K[U] = K[H = h & H + M]) + (K[H] = M)]; return E.i = U, E.j = H, B; })(s); } function g(I, T) { return T.i = I.i, T.j = I.j, T.S = I.S.slice(), T; } function y(I, T) { var _ = [], E = typeof I, A; if (T && E == "object") for (A in I) try { _.push(y(I[A], T - 1)); } catch { } return _.length ? _ : E == "string" ? I : I + "\0"; } function b(I, T) { for (var _ = I + "", E, A = 0; A < _.length; ) T[h & A] = h & (E ^= T[h & A] * 19) + _.charCodeAt(A++); return w(T); } function x() { try { var I; return c && (I = c.randomBytes) ? I = I(s) : (I = new Uint8Array(s), (n.crypto || n.msCrypto).getRandomValues(I)), w(I); } catch { var T = n.navigator, _ = T && T.plugins; return [+/* @__PURE__ */ new Date(), n, _, n.screen, w(r)]; } } function w(I) { return String.fromCharCode.apply(0, I); } if (b(a.random(), r), typeof t == "object" && t.exports) { t.exports = m; try { c = T$(); } catch { } } else typeof define == "function" && define.amd ? define(function() { return m; }) : a["seed" + l] = m; })(typeof self < "u" ? self : e, [], Math); }), Zh = Dt((e, t) => { var n = w$(), r = v$(), a = k$(), s = I$(), i = S$(), o = N$(), l = C$(); l.alea = n, l.xor128 = r, l.xorwow = a, l.xorshift7 = s, l.xor4096 = i, l.tychei = o, t.exports = l; }), A0 = Dt(() => { }), lg = Dt(() => { }), F0 = Dt(() => { }), _$ = Dt(() => { }), E$ = Dt(() => { }), $$ = Dt(() => { }), A$ = Dt((e, t) => { var n = (() => { var r = typeof document < "u" && document.currentScript ? document.currentScript.src : void 0; return typeof __filename < "u" && (r = r || __filename), function(a) { a = a || {}; function s() { return j.buffer != he && Ge(j.buffer), Ie; } function i() { return j.buffer != he && Ge(j.buffer), Te; } function o() { return j.buffer != he && Ge(j.buffer), Re; } function l() { return j.buffer != he && Ge(j.buffer), Be; } function p() { return j.buffer != he && Ge(j.buffer), rt; } var u = typeof a < "u" ? a : {}, d, h; u.ready = new Promise(function(D, q) { d = D, h = q; }); var c; typeof process < "u" && process.listeners && (c = { uncaughtException: process.listeners("uncaughtException"), unhandledRejection: process.listeners("unhandledRejection") }); var m = Object.assign({}, u), f = (D, q) => { throw q; }, g = typeof window == "object", y = typeof importScripts == "function", b = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string", x = u.ENVIRONMENT_IS_PTHREAD || !1, w = ""; function I(D) { return u.locateFile ? u.locateFile(D, w) : w + D; } var T, _, E; function A(D) { D instanceof Jr || U("exiting due to exception: " + D); } if (b) { var R = lg(), F = F0(); y ? w = F.dirname(w) + "/" : w = __dirname + "/", T = (q, le) => (q = wa(q) ? new URL(q) : F.normalize(q), R.readFileSync(q, le ? void 0 : "utf8")), E = (q) => { var le = T(q, !0); return le.buffer || (le = new Uint8Array(le)), le; }, _ = (q, le, Ne) => { q = wa(q) ? new URL(q) : F.normalize(q), R.readFile(q, function(Ae, Me) { Ae ? Ne(Ae) : le(Me.buffer); }); }, process.argv.length > 1 && process.argv[1].replace(/\\/g, "/"), process.argv.slice(2), process.on("uncaughtException", function(q) { if (!(q instanceof Jr)) throw q; }), process.on("unhandledRejection", function(q) { throw q; }), f = (q, le) => { if (St()) throw process.exitCode = q, le; A(le), process.exit(q); }, u.inspect = function() { return "[Emscripten Module object]"; }; let D; try { D = _$(); } catch (q) { throw console.error('The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?'), q; } global.Worker = D.Worker; } else (g || y) && (y ? w = self.location.href : typeof document < "u" && document.currentScript && (w = document.currentScript.src), typeof r < "u" && r && (w = r), w.indexOf("blob:") !== 0 ? w = w.substr(0, w.replace(/[?#].*/, "").lastIndexOf("/") + 1) : w = "", b || (T = (D) => { var q = new XMLHttpRequest(); return q.open("GET", D, !1), q.send(null), q.responseText; }, y && (E = (D) => { var q = new XMLHttpRequest(); return q.open("GET", D, !1), q.responseType = "arraybuffer", q.send(null), new Uint8Array(q.response); }), _ = (D, q, le) => { var Ne = new XMLHttpRequest(); Ne.open("GET", D, !0), Ne.responseType = "arraybuffer", Ne.onload = () => { if (Ne.status == 200 || Ne.status == 0 && Ne.response) { q(Ne.response); return; } le(); }, Ne.onerror = le, Ne.send(null); })); b && typeof performance > "u" && (global.performance = E$().performance); var S = console.log.bind(console), M = console.warn.bind(console); b && (S = (D) => R.writeSync(1, D + ` `), M = (D) => R.writeSync(2, D + ` `)); var B = u.print || S, U = u.printErr || M; Object.assign(u, m), m = null, u.arguments && u.arguments, u.thisProgram && u.thisProgram, u.quit && (f = u.quit); var H; u.wasmBinary && (H = u.wasmBinary); var K = u.noExitRuntime || !0; typeof WebAssembly != "object" && Zr("no native wasm support detected"); var j, X, ee = !1, Y; function re(D, q) { D || Zr(q); } var te = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0; function ae(D, q, le) { q >>>= 0; for (var Ne = q + le, Ae = q; D[Ae] && !(Ae >= Ne); ) ++Ae; if (Ae - q > 16 && D.buffer && te) return te.decode(D.buffer instanceof SharedArrayBuffer ? D.slice(q, Ae) : D.subarray(q, Ae)); for (var Me = ""; q < Ae; ) { var me = D[q++]; if (!(me & 128)) { Me += String.fromCharCode(me); continue; } var ke = D[q++] & 63; if ((me & 224) == 192) { Me += String.fromCharCode((me & 31) << 6 | ke); continue; } var xt = D[q++] & 63; if ((me & 240) == 224 ? me = (me & 15) << 12 | ke << 6 | xt : me = (me & 7) << 18 | ke << 12 | xt << 6 | D[q++] & 63, me < 65536) Me += String.fromCharCode(me); else { var Xn = me - 65536; Me += String.fromCharCode(55296 | Xn >> 10, 56320 | Xn & 1023); } } return Me; } function ie(D, q) { return D >>>= 0, D ? ae(i(), D, q) : ""; } function we(D, q, le, Ne) { if (le >>>= 0, !(Ne > 0)) return 0; for (var Ae = le, Me = le + Ne - 1, me = 0; me < D.length; ++me) { var ke = D.charCodeAt(me); if (ke >= 55296 && ke <= 57343) { var xt = D.charCodeAt(++me); ke = 65536 + ((ke & 1023) << 10) | xt & 1023; } if (ke <= 127) { if (le >= Me) break; q[le++ >>> 0] = ke; } else if (ke <= 2047) { if (le + 1 >= Me) break; q[le++ >>> 0] = 192 | ke >> 6, q[le++ >>> 0] = 128 | ke & 63; } else if (ke <= 65535) { if (le + 2 >= Me) break; q[le++ >>> 0] = 224 | ke >> 12, q[le++ >>> 0] = 128 | ke >> 6 & 63, q[le++ >>> 0] = 128 | ke & 63; } else { if (le + 3 >= Me) break; q[le++ >>> 0] = 240 | ke >> 18, q[le++ >>> 0] = 128 | ke >> 12 & 63, q[le++ >>> 0] = 128 | ke >> 6 & 63, q[le++ >>> 0] = 128 | ke & 63; } } return q[le >>> 0] = 0, le - Ae; } function be(D, q, le) { return we(D, i(), q, le); } var he, Ie, Te, Re, Be, rt; x && (he = u.buffer); function Ge(D) { he = D, u.HEAP8 = Ie = new Int8Array(D), u.HEAP16 = new Int16Array(D), u.HEAP32 = Re = new Int32Array(D), u.HEAPU8 = Te = new Uint8Array(D), u.HEAPU16 = new Uint16Array(D), u.HEAPU32 = Be = new Uint32Array(D), u.HEAPF32 = new Float32Array(D), u.HEAPF64 = rt = new Float64Array(D); } var qe = u.INITIAL_MEMORY || 16777216; if (x) j = u.wasmMemory, he = u.buffer; else if (u.wasmMemory) j = u.wasmMemory; else if (j = new WebAssembly.Memory({ initial: qe / 65536, maximum: 65536, shared: !0 }), !(j.buffer instanceof SharedArrayBuffer)) throw U("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"), b && U("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and/or recent version)"), Error("bad memory"); j && (he = j.buffer), qe = he.byteLength, Ge(he); var $e, Je = [], pt = [], Rn = []; function St() { return K; } function kn() { if (u.preRun) for (typeof u.preRun == "function" && (u.preRun = [u.preRun]); u.preRun.length; ) ir(u.preRun.shift()); dt(Je); } function Jt() { !x && dt(pt); } function In() { if (!x) { if (u.postRun) for (typeof u.postRun == "function" && (u.postRun = [u.postRun]); u.postRun.length; ) Sn(u.postRun.shift()); dt(Rn); } } function ir(D) { Je.unshift(D); } function Dn(D) { pt.unshift(D); } function Sn(D) { Rn.unshift(D); } var Yt = 0, qn = null; function xa(D) { Yt++, u.monitorRunDependencies && u.monitorRunDependencies(Yt); } function Mu(D) { if (Yt--, u.monitorRunDependencies && u.monitorRunDependencies(Yt), Yt == 0 && qn) { var q = qn; qn = null, q(); } } function Zr(D) { u.onAbort && u.onAbort(D), D = "Aborted(" + D + ")", U(D), ee = !0, Y = 1, D += ". Build with -sASSERTIONS for more info."; var q = new WebAssembly.RuntimeError(D); throw h(q), q; } var Ou = "data:application/octet-stream;base64,"; function $r(D) { return D.startsWith(Ou); } function wa(D) { return D.startsWith("file://"); } var Qt; Qt = "tfjs-backend-wasm-threaded-simd.wasm", $r(Qt) || (Qt = I(Qt)); function Ed(D) { try { if (D == Qt && H) return new Uint8Array(H); if (E) return E(D); throw "both async and sync fetching of the wasm failed"; } catch (q) { Zr(q); } } function $d() { if (!H && (g || y)) { if (typeof fetch == "function" && !wa(Qt)) return fetch(Qt, { credentials: "same-origin" }).then(function(D) { if (!D.ok) throw "failed to load wasm binary file at '" + Qt + "'"; return D.arrayBuffer(); }).catch(function() { return Ed(Qt); }); if (_) return new Promise(function(D, q) { _(Qt, function(le) { D(new Uint8Array(le)); }, q); }); } return Promise.resolve().then(function() { return Ed(Qt); }); } function Ad() { var D = { env: Rw, wasi_snapshot_preview1: Rw }; function q(me, ke) { var xt = me.exports; if (u.asm = xt, Yr(u.asm._emscripten_tls_init), $e = u.asm.__indirect_function_table, Dn(u.asm.__wasm_call_ctors), X = ke, !x) { var Xn = ce.unusedWorkers.length; ce.unusedWorkers.forEach(function(Qr) { ce.loadWasmModuleToWorker(Qr, function() { --Xn || Mu(); }); }); } } x || xa(); function le(me) { q(me.instance, me.module); } function Ne(me) { return $d().then(function(ke) { return WebAssembly.instantiate(ke, D); }).then(function(ke) { return ke; }).then(me, function(ke) { U("failed to asynchronously prepare wasm: " + ke), Zr(ke); }); } function Ae() { return !H && typeof WebAssembly.instantiateStreaming == "function" && !$r(Qt) && !wa(Qt) && !b && typeof fetch == "function" ? fetch(Qt, { credentials: "same-origin" }).then(function(me) { var ke = WebAssembly.instantiateStreaming(me, D); return ke.then(le, function(xt) { return U("wasm streaming compile failed: " + xt), U("falling back to ArrayBuffer instantiation"), Ne(le); }); }) : Ne(le); } if (u.instantiateWasm) try { var Me = u.instantiateWasm(D, q); return Me; } catch (me) { U("Module.instantiateWasm callback failed with error: " + me), h(me); } return Ae().catch(h), {}; } var Fd = {}; function Jr(D) { this.name = "ExitStatus", this.message = "Program terminated with exit(" + D + ")", this.status = D; } function Ao(D) { var q = ce.pthreads[D]; delete ce.pthreads[D], q.terminate(), Am(D), ce.runningWorkers.splice(ce.runningWorkers.indexOf(q), 1), q.pthread_ptr = 0; } function Rd(D) { var q = ce.pthreads[D]; q.postMessage({ cmd: "cancel" }); } function fs(D) { var q = ce.pthreads[D]; re(q), ce.returnWorkerToPool(q); } function gs(D) { var q = ce.getNewWorker(); if (!q) return 6; ce.runningWorkers.push(q), ce.pthreads[D.pthread_ptr] = q, q.pthread_ptr = D.pthread_ptr; var le = { cmd: "run", start_routine: D.startRoutine, arg: D.arg, pthread_ptr: D.pthread_ptr }; return q.runPthread = () => { b && q.ref(), q.postMessage(le, D.transferList), delete q.runPthread; }, q.loaded && q.runPthread(), 0; } function Dd(D) { if (x) return Fo(1, 1, D); Y = D, St() || (ce.terminateAllThreads(), u.onExit && u.onExit(D), ee = !0), f(D, new Jr(D)); } function Q(D, q) { if (Y = D, !q && x) throw Ve(D), "unwind"; Dd(D); } var oe = Q; function Se(D) { if (D instanceof Jr || D == "unwind") return Y; f(1, D); } var ce = { unusedWorkers: [], runningWorkers: [], tlsInitFunctions: [], pthreads: {}, init: function() { x ? ce.initWorker() : ce.initMainThread(); }, initMainThread: function() { fo