UNPKG

@shopify/create-app

Version:

A CLI tool to create a new Shopify app.

580 lines (579 loc) • 1.26 MB
import { __esm, init_cjs_shims } from "./chunk-PKR7KJ6P.js"; // ../../node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/plugins/flow.mjs function iI0(a0, ox) { let Yx = new SyntaxError(a0 + " (" + ox.loc.start.line + ":" + ox.loc.start.column + ")"); return Object.assign(Yx, ox); } function sI0(a0) { return this[a0 < 0 ? this.length + a0 : a0]; } function xn(a0) { let ox = a0.range?.[0] ?? a0.start, Yx = (a0.declaration?.decorators ?? a0.decorators)?.[0]; return Yx ? Math.min(xn(Yx), ox) : ox; } function bt(a0) { return a0.range?.[1] ?? a0.end; } function oI0(a0) { let ox = new Set(a0); return (Yx) => ox.has(Yx?.type); } function pI0(a0) { return Qj.has(a0) || Qj.set(a0, l6(a0) && a0.value[0] === "*" && /@(?:type|satisfies)\b/u.test(a0.value)), Qj.get(a0); } function kI0(a0) { if (!l6(a0)) return !1; let ox = `*${a0.value}*`.split(` `); return ox.length > 1 && ox.every((Yx) => Yx.trimStart()[0] === "*"); } function mI0(a0) { return Zj.has(a0) || Zj.set(a0, kI0(a0)), Zj.get(a0); } function hI0(a0) { if (a0.length < 2) return; let ox; for (let Yx = a0.length - 1; Yx >= 0; Yx--) { let xr = a0[Yx]; if (ox && bt(xr) === xn(ox) && xD(xr) && xD(ox) && (a0.splice(Yx + 1, 1), xr.value += "*//*" + ox.value, xr.range = [xn(xr), bt(ox)]), !ez(xr) && !l6(xr)) throw new TypeError(`Unknown comment type: "${xr.type}".`); ox = xr; } } function dI0(a0) { return a0 !== null && typeof a0 == "object"; } function _p(a0) { if (yp !== null && typeof yp.property) { let ox = yp; return yp = _p.prototype = null, ox; } return yp = _p.prototype = a0 ?? /* @__PURE__ */ Object.create(null), new _p(); } function rD(a0) { return _p(a0); } function _I0(a0, ox = "type") { rD(a0); function Yx(xr) { let E1 = xr[ox], S2 = a0[E1]; if (!Array.isArray(S2)) throw Object.assign(new Error(`Missing visitor keys for '${E1}'.`), { node: xr }); return S2; } return Yx; } function H5(a0, ox) { if (!uz(a0)) return a0; if (Array.isArray(a0)) { for (let xr = 0; xr < a0.length; xr++) a0[xr] = H5(a0[xr], ox); return a0; } if (ox.onEnter) { let xr = ox.onEnter(a0) ?? a0; if (xr !== a0) return H5(xr, ox); a0 = xr; } let Yx = cz(a0); for (let xr = 0; xr < Yx.length; xr++) a0[Yx[xr]] = H5(a0[Yx[xr]], ox); return ox.onLeave && (a0 = ox.onLeave(a0) || a0), a0; } function gI0(a0, ox) { let { parser: Yx, text: xr } = ox, { comments: E1 } = a0, S2 = Yx === "oxc" && ox.oxcAstType === "ts"; nz(E1); let da = a0.type === "File" ? a0.program : a0; da.interpreter && (E1.unshift(da.interpreter), delete da.interpreter), S2 && a0.hashbang && (E1.unshift(a0.hashbang), delete a0.hashbang), a0.type === "Program" && (a0.range = [0, xr.length]); let Tt; return a0 = sz(a0, { onEnter(Vr) { switch (Vr.type) { case "ParenthesizedExpression": { let { expression: G1 } = Vr, yo = xn(Vr); if (G1.type === "TypeCastExpression") return G1.range = [yo, bt(Vr)], G1; let Et = !1; if (!S2) { if (!Tt) { Tt = []; for (let _o of E1) tz(_o) && Tt.push(bt(_o)); } let G3 = xz(0, Tt, (_o) => _o <= yo); Et = G3 && xr.slice(G3, yo).trim().length === 0; } return Et ? void 0 : (G1.extra = { ...G1.extra, parenthesized: !0 }, G1); } case "TemplateLiteral": if (Vr.expressions.length !== Vr.quasis.length - 1) throw new Error("Malformed template literal."); break; case "TemplateElement": if (Yx === "flow" || Yx === "hermes" || Yx === "espree" || Yx === "typescript" || S2) { let G1 = xn(Vr) + 1, yo = bt(Vr) - (Vr.tail ? 1 : 2); Vr.range = [G1, yo]; } break; case "VariableDeclaration": { let G1 = rz(0, Vr.declarations, -1); G1?.init && xr[bt(G1)] !== ";" && (Vr.range = [xn(Vr), bt(G1)]); break; } case "TSParenthesizedType": return Vr.typeAnnotation; case "TopicReference": a0.extra = { ...a0.extra, __isUsingHackPipeline: !0 }; break; case "TSUnionType": case "TSIntersectionType": if (Vr.types.length === 1) return Vr.types[0]; break; case "ImportExpression": Yx === "hermes" && Vr.attributes && !Vr.options && (Vr.options = Vr.attributes); break; } }, onLeave(Vr) { switch (Vr.type) { case "LogicalExpression": if (az(Vr)) return eD(Vr); break; case "TSImportType": !Vr.source && Vr.argument.type === "TSLiteralType" && (Vr.source = Vr.argument.literal, delete Vr.argument); break; } } }), a0; } function az(a0) { return a0.type === "LogicalExpression" && a0.right.type === "LogicalExpression" && a0.operator === a0.right.operator; } function eD(a0) { return az(a0) ? eD({ type: "LogicalExpression", operator: a0.operator, left: eD({ type: "LogicalExpression", operator: a0.operator, left: a0.left, right: a0.right.left, range: [xn(a0.left), bt(a0.right.left)] }), right: a0.right.right, range: [xn(a0), bt(a0)] }) : a0; } function pz(a0) { let ox = a0.match(AI0); return ox ? ox[0].trimStart() : ""; } function kz(a0) { a0 = wp(0, a0.replace(SI0, "").replace(EI0, ""), CI0, "$1"); let Yx = ""; for (; Yx !== a0; ) Yx = a0, a0 = wp(0, a0, PI0, ` $1 $2 `); a0 = a0.replace(vz, "").trimEnd(); let xr = /* @__PURE__ */ Object.create(null), E1 = wp(0, a0, lz, "").replace(vz, "").trimEnd(), S2; for (; S2 = lz.exec(a0); ) { let da = wp(0, S2[2], II0, ""); if (typeof xr[S2[1]] == "string" || Array.isArray(xr[S2[1]])) { let Tt = xr[S2[1]]; xr[S2[1]] = [...NI0, ...Array.isArray(Tt) ? Tt : [Tt], da]; } else xr[S2[1]] = da; } return { comments: E1, pragmas: xr }; } function OI0(a0) { if (!a0.startsWith("#!")) return ""; let ox = a0.indexOf(` `); return ox === -1 ? a0 : a0.slice(0, ox); } function yz(a0) { let ox = dz(a0); ox && (a0 = a0.slice(ox.length + 1)); let Yx = pz(a0), { pragmas: xr, comments: E1 } = kz(Yx); return { shebang: ox, text: a0, pragmas: xr, comments: E1 }; } function _z(a0) { let { pragmas: ox } = yz(a0); return hz.some((Yx) => Object.prototype.hasOwnProperty.call(ox, Yx)); } function wz(a0) { let { pragmas: ox } = yz(a0); return mz.some((Yx) => Object.prototype.hasOwnProperty.call(ox, Yx)); } function jI0(a0) { return a0 = typeof a0 == "function" ? { parse: a0 } : a0, { astFormat: "estree", hasPragma: _z, hasIgnorePragma: wz, locStart: xn, locEnd: bt, ...a0 }; } function RI0(a0) { let { message: ox, loc: Yx } = a0; if (!Yx) return a0; let { start: xr, end: E1 } = Yx; return ZY(ox, { loc: { start: { line: xr.line, column: xr.column + 1 }, end: { line: E1.line, column: E1.column + 1 } }, cause: a0 }); } function FI0(a0) { let ox = bz.default.parse(a0, DI0), [Yx] = ox.errors; if (Yx) throw RI0(Yx); return oz(ox, { parser: "flow", text: a0 }); } var QA0, Vj, ZA0, xI0, rI0, eI0, tI0, $Y, nI0, uI0, QY, Tz, tD, bz, ZY, o6, fI0, cI0, xz, aI0, rz, v6, vI0, l6, lI0, ez, Qj, tz, Zj, xD, nz, uz, yp, yI0, iz, $, fz, wI0, cz, sz, CP0, oz, bI0, TI0, wp, EI0, SI0, AI0, II0, vz, PI0, lz, CI0, NI0, mz, hz, dz, gz, DI0, MI0, init_flow = __esm({ "../../node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/plugins/flow.mjs"() { init_cjs_shims(); QA0 = Object.create, Vj = Object.defineProperty, ZA0 = Object.getOwnPropertyDescriptor, xI0 = Object.getOwnPropertyNames, rI0 = Object.getPrototypeOf, eI0 = Object.prototype.hasOwnProperty, tI0 = (a0, ox) => () => (ox || a0((ox = { exports: {} }).exports, ox), ox.exports), $Y = (a0, ox) => { for (var Yx in ox) Vj(a0, Yx, { get: ox[Yx], enumerable: !0 }); }, nI0 = (a0, ox, Yx, xr) => { if (ox && typeof ox == "object" || typeof ox == "function") for (let E1 of xI0(ox)) !eI0.call(a0, E1) && E1 !== Yx && Vj(a0, E1, { get: () => ox[E1], enumerable: !(xr = ZA0(ox, E1)) || xr.enumerable }); return a0; }, uI0 = (a0, ox, Yx) => (Yx = a0 != null ? QA0(rI0(a0)) : {}, nI0(ox || !a0 || !a0.__esModule ? Vj(Yx, "default", { value: a0, enumerable: !0 }) : Yx, a0)), QY = tI0(($j) => { (function(a0) { typeof globalThis != "object" && (this ? ox() : (a0.defineProperty(a0.prototype, "_T_", { configurable: !0, get: ox }), _T_)); function ox() { var Yx = this || self; Yx.globalThis = Yx, delete a0.prototype._T_; } })(Object), (function(a0) { "use strict"; var ox = 320, Yx = "loc", xr = 289, E1 = 70416, S2 = 69748, da = 163, Tt = 92159, Vr = 43587, G1 = "labeled_statement", yo = "&=", Et = "int_of_string", G3 = 110591, _o = 92909, gp = 11559, nD = "regexp", W5 = 43301, bp = 11703, V5 = 122654, ya = 255, uD = "%ni", $5 = 68252, iD = 232, Q5 = 42785, qn = "declare_variable", Tp = "while", Z5 = 66938, xy = 70301, ry = 124907, Ep = 126515, fD = 218, Bn = "pattern_identifier", ey = 67643, Un = "export_source", ty = 216, ny = 64279, cD = "Out_of_memory", uy = 113788, sD = "comments", iy = 126624, aD = "win32", Xn = "object_key_bigint_literal", oD = 185, Sp = 123214, _a = "constructor", fy = 69955, Gn = "import_declaration", cy = 68437, sy = "Failure", Ap = "Unix.Unix_error", ay = 64255, oy = 42539, vy = 110579, Yn = "export_default_declaration", zn = "jsx_attribute_name", Ip = 11727, ly = 43002, Pp = 126500, Jn = "component_param_pattern", vD = "collect_comments_opt", Kn = "match_unary_pattern", lD = 321, Hn = "keyof_type", pD = "Invalid binary/octal ", kD = "range", py = 170, wa = "false", ky = 43798, mD = ", characters ", Wn = "object_type_property_getter", my = 65547, hy = 126467, dy = 65007, yy = 42237, _y = 8318, wy = 71215, Vn = "object_property_type", $n = "type_alias", gy = 67742, Qn = "function_body", hD = 304, by = 68111, Cp = 120745, Ty = 71959, Np = 43880, dD = "Match_failure", Zn = "type_cast", wo = 109, ga = "void", Ey = "generator", Sy = 125124, Ay = 101589, Op = 94179, yD = ">>>", jp = 70404, x7 = "optional_indexed_access_type", $1 = "argument", r7 = "object_property", e7 = "object_type_property", Iy = 67004, Py = 42783, Cy = 68850, _D = "@", Ny = 43741, Oy = 43487, Dp = "object", wD = "end", Rp = 126571, jy = 71956, gD = 208, Dy = 126566, Ry = 67702, bD = "EEXIST", t7 = "this_expression", TD = 203, Fy = 11507, My = 113807, Fp = 119893, Ly = 42735, p6 = "rest", n7 = "null_literal", k6 = "protected", qy = 43615, v2 = 8231, By = 68149, Uy = 73727, Xy = 72348, Gy = 92995, Sv = 224, Yy = 11686, zy = 43013, u7 = "assignment_pattern", Jy = 12329, i7 = "function_type", Y3 = 192, f7 = "jsx_element_name", Ky = 70018, ED = -57, c7 = "catch_clause_pattern", Mp = 126540, s7 = "template_literal", Hy = 120654, Wy = 68497, Vy = 67679, a7 = "readonly_type", $y = 68735, Qy = "<", Lp = ": No such file or directory", Zy = 66915, x9 = "chain", SD = "!", o7 = "object_type", r9 = 43712, qp = 64297, e9 = 183969, t9 = -105, n9 = 43503, u9 = 67591, Av = 65278, i9 = 67669, v7 = "for_of_assignment_pattern", m6 = "`", f9 = 11502, l7 = "catch_body", c9 = 42191, go = -744106340, s9 = 182, Iv = ":", AD = "a string", a9 = 65663, o9 = 66978, v9 = 71947, Bp = 43519, l9 = 71086, p9 = 125258, k9 = 12538, p7 = "expression_or_spread", ID = "Printexc.handle_uncaught_exception", Up = 69956, Xp = 120122, Gp = 247, PD = 231, m9 = " : flags Open_rdonly and Open_wronly are not compatible", k7 = "statement_fork_point", CD = 710, ND = -692038429, Ue = "static", h9 = 55203, d9 = 64324, y9 = 64111, OD = "!==", _9 = 120132, w9 = 124903, h6 = "class", jD = 222, m7 = "pattern_number_literal", ba = "kind", g9 = 71903, h7 = "variable_declarator", DD = " named `", d7 = "typeof_expression", b9 = 126627, T9 = 70084, RD = 228, Yp = 70480, y7 = "class_private_field", E9 = 239, zp = 120713, rn = 65535, z3 = -26, _7 = "private_name", S9 = 43137, w7 = "remote_identifier", A9 = 70161, g7 = "label_identifier", I9 = "src/parser/statement_parser.ml", P9 = 8335, C9 = 19903, N9 = 64310, Pv = "_", b7 = "for_init_declaration", FD = "infer", O9 = 64466, j9 = 43018, MD = "tokens", D9 = 92735, R9 = 66954, F9 = 65473, M9 = 70285, T7 = "sequence", L9 = "compare: functional value", q9 = 69890, d6 = 1e3, B9 = 65487, U9 = 42653, LD = "\\\\", qD = "%=", E7 = "match_member_pattern_base", X9 = 72367, S7 = "function_rest_param", BD = "/static/", G9 = 124911, Y9 = 65276, Jp = 126558, z9 = 11498, UD = 137, A7 = "export_default_declaration_decl", J9 = "cases", Kp = 126602, I7 = "jsx_child", Xe = "continue", K9 = 42962, XD = "importKind", e1 = 122, J3 = "Literal", P7 = "pattern_object_property_identifier_key", H9 = 42508, bo = "in", W9 = 55238, V9 = 67071, $9 = 70831, Q9 = 72161, Z9 = 67462, GD = "<<=", x_ = 43009, r_ = 66383, Hp = 67827, e_ = 72202, t_ = 69839, n_ = 66775, YD = "-=", Cv = 8202, u_ = 70105, i_ = 120538, zD = -92, C7 = "for_in_left_declaration", f_ = "rendersType", Wp = 126563, c_ = 70708, Vp = 126523, JD = 166, N7 = "match_", KD = 202, s_ = 110951, Ta = "component", $p = 126552, a_ = 66977, o_ = 213, O7 = "enum_member_identifier", HD = 210, j7 = "enum_bigint_body", WD = ">=", v_ = 126495, l_ = "specifiers", p_ = "=", k_ = 65338, y6 = "members", m_ = 123535, h_ = 43702, d_ = 72767, Nv = "get", y_ = 126633, Qp = 126536, __ = 94098, w_ = "types", g_ = 113663, VD = "Internal Error: Found private field in object props", D7 = "jsx_element", b_ = 70366, T_ = 110959, Zp = 120655, $D = "trailingComments", QD = 282, To = 24029, ZD = -100, xR = 144, H2 = "yield", R7 = "binding_pattern", F7 = "typeof_identifier", rR = "ENOTEMPTY", xk = 126468, E_ = 1255, S_ = 120628, M7 = "pattern_object_property_string_literal_key", A_ = 8521, eR = "leadingComments", tR = 8204, Eo = "@ ", I_ = 70319, Ea = "left", nR = 188, rk = "case", P_ = 19967, ek = 42622, C_ = 43492, N_ = 113770, L7 = "match_instance_pattern_constructor", O_ = 42774, j_ = 183, tk = 8468, q7 = "record_body", B7 = "class_implements", nk = 126579, K3 = "string", uR = 211, r2 = -48, D_ = 69926, R_ = 123213, U7 = "if_consequent_statement", F_ = 124927, H3 = "number", M_ = 126546, L_ = 68119, q_ = 70726, uk = 70750, B_ = 65489, iR = "SpreadElement", fR = "callee", cR = 193, U_ = 70492, X_ = 71934, sR = 164, G_ = 110580, Y_ = 12320, ik = "any", se = "/", X7 = "type_guard", w1 = "body", fk = 178, ge = "pattern", aR = "comment_bounds", oR = 297, G7 = "binding_type_identifier", z_ = 187, Y7 = "pattern_array_rest_element_pattern", ck = "@])", J_ = 12543, K_ = 11623, vR = "start", H_ = 67871, ae = "interface", W_ = 8449, V_ = 67637, $_ = 42961, sk = 120085, Q_ = 126463, lR = "alternate", pR = -1053382366, Z_ = 70143, kR = "--", xw = 68031, z7 = "jsx_expression", J7 = "type_identifier_reference", ak = 11647, rw = "proto", St = "identifier", ew = 43696, At = "raw", tw = 126529, nw = 11564, ok = 126557, uw = 64911, vk = 67592, iw = 43493, lk = 215, fw = 110588, _6 = 461894857, cw = 92927, sw = 67861, aw = 119980, ow = 43042, mR = -89, vw = 66965, lw = 67391, W3 = "computed", hR = "unreachable jsxtext", pw = 71167, kw = 42559, mw = 72966, dR = 180, hw = 197, pk = 64319, yR = 169, _R = "*", kk = 129, dw = 66335, w6 = "meta", yw = 43388, mk = 94178, ft = "optional", hk = "unknown", _w = 120121, ww = 123180, dk = 8469, gw = 68220, wR = "|", bw = 43187, Tw = 94207, Ew = 124895, yk = 120513, Sw = 42527, Ov = 8286, Aw = 94177, g6 = "var", K7 = "component_type_param", Iw = 66421, gR = 285, Pw = 92991, Cw = 68415, H7 = "comment", W7 = "match_pattern_array_element", jv = 244, _k = "^", Nw = 173791, bR = 136, Ow = 42890, jw = "ENOTDIR", Dw = "??", Rw = 43711, Fw = 66303, Mw = 113800, Lw = 42239, qw = 12703, V7 = "variance_opt", $7 = "+", TR = ">>>=", ER = 147, SR = 376, wk = "mixed", Bw = 65613, Uw = 73029, AR = 318, Xw = 68191, IR = "*=", gk = 8487, Gw = 8477, Q7 = "toplevel_statement_list", bk = "never", Tk = "do", So = 125, Yw = 72249, PR = "Pervasives.do_at_exit", CR = "visit_trailing_comment", Z7 = "jsx_closing_element", xu = "jsx_namespaced_name", zw = 124908, Jw = 126651, ru = "component_declaration", Kw = 15, eu = "interface_type", tu = "function_type_return_annotation", Hw = 64109, Ek = 65595, Sk = 126560, Ww = 110927, Ak = 65598, Ik = 8488, nu = "`.", NR = 175, Pk = "package", Ck = "else", Nk = 120771, Vw = 68023, OR = "fd ", Dv = 8238, Ok = 888960333, jk = 119965, $w = 42655, uu = "match_object_pattern", Qw = 11710, Zw = 119993, iu = "boolean_literal", jR = 290, fu = "statement_list", cu = "function_param", su = "match_as_pattern", au = "pattern_object_property_bigint_literal_key", Dk = 69959, xg = 120485, DR = 240, rg = 191456, ou = "declare_enum", Rk = 120597, Fk = 70281, vu = "type_annotation", lu = "spread_element", Mk = 126544, eg = 120069, en = "key", tg = 43583, ng = "out", ug = ` `, RR = "**=", pu = "pattern_object_property_pattern", ig = "e", fg = 72712, FR = "Internal Error: Found object private prop", cg = "ENOENT", sg = -42, ku = "jsx_opening_attribute", ag = 67646, mu = "component_type", og = 64296, vg = 43887, MR = "Division_by_zero", LR = "EnumDefaultedMember", hu = "typeof_member_identifier", lg = 43792, du = "match_member_pattern_property", yu = "declare_export_declaration_decl", pg = 93026, _u = "type_annotation_hint", kg = 42887, mg = 43881, hg = 43761, Lk = 8526, qR = 287, b6 = 119, dg = 43866, yg = 72847, _g = 8348, k1 = 101, wg = 94026, qk = 72272, BR = "src/parser/flow_lexer.ml", gg = 120744, Rv = 8191, V3 = "implies", Bk = 255, Uk = 11711, wu = "match_unary_pattern_argument", bg = 71235, UR = 288, Xk = 68116, cr = 100, gu = "match_expression", bu = "enum_body", Gk = 1114111, Tu = "assignment", Tg = 71955, Yk = 43260, Eu = "pattern_array_e", Eg = 126583, XR = "prefix", Su = "class_body", T6 = "shorthand", Sg = 171, Ag = 66256, zk = -97, GR = " =", Ig = 94032, Pg = 42606, Au = "match_case", Cg = 71839, Jk = 120134, Ng = 55291, Og = 92862, jg = 43019, Dg = 126543, $3 = "function", Rg = 111355, Fg = 11389, Mg = 70753, Lg = 43249, qg = 64829, Kk = "line", Iu = "function_declaration", Hk = "undefined", YR = "([^/]+)", Bg = 110947, Ug = 70002, zR = "Cygwin", Pu = "as_expression", Xg = 12591, Wk = 64285, Gg = 2048, Yg = 73112, Vk = 126589, JR = 225, $k = 43259, zg = 72817, Qk = 64318, KR = 172, HR = 209, Cu = "match_binding_pattern", Nu = " ", Ou = "import_source", E6 = "delete", WR = "Enum `", Zk = 126553, Jg = 67001, Fv = "default", Kg = 11630, Hg = 206, ju = "enum_bigint_member", Wg = 67504, x8 = 67593, Vg = 113791, VR = "MatchObjectPatternProperty", $g = 69572, Du = "typeof_type", $R = 212, QR = "%i", Ru = "function_this_param", Qg = 72329, Ao = "0x", Mv = 8239, Zg = 75075, ZR = 57343, Fu = "pattern_bigint_literal", xb = 12341, xF = 201, Lv = "hook", rF = ": closedir failed", rb = 42959, r8 = 119970, eb = 43560, eF = "||=", Mu = "member_private_name", tb = 120570, Lu = "object_key_identifier", e8 = 223, tF = "Not_found", qu = "record_static_property", nF = 230, Bu = "jsx_element_name_member_expression", Uu = "string_literal", nb = 120596, ub = 43807, ib = 69687, fb = 63743, t8 = 72192, Xu = "member_property", cb = 43262, Gu = "class_declaration", uF = "renders*", iF = "%Li", sb = 126578, Yu = "jsx_attribute", Q3 = 254, be = "empty", S6 = "label", zu = "object_internal_slot_property_type", n8 = 120133, ab = 43359, Ge = "predicate", fF = "??=", ob = 43697, vb = -43, Ju = "default_opt", cF = "the start of a statement", lb = 67826, Ku = "record_element", Hu = "object_", Wu = "class_element", u8 = 11631, i8 = 70855, Vu = "opaque_type", $u = "number_literal", sF = ", ", f8 = 8319, c8 = 120004, s8 = 133, Qu = "type_params", Zu = "pattern_object_rest_property", W2 = "import", pb = 72e3, kb = 67413, mb = 12343, hb = 70080, xi = "intersection_type", l2 = -36, db = 70005, A6 = "properties", yb = 11679, _b = 8483, wb = 110587, aF = 43520, ri = "computed_key", oF = 207, ei = "class_identifier", gb = "Invalid number ", ti = "function_param_pattern", qv = 12288, bb = 113817, Tb = 70730, Eb = 178207, a8 = 71236, Sb = 167, ni = "object_indexer_property_type", Ab = 64286, vF = "TypeAnnotation", lF = 220, ui = "type_identifier", ii = "spread_property", fi = "jsx_attribute_value_expression", Ib = 126519, o8 = 70108, v8 = 126, l8 = 42999, Sa = "prototype", Pb = " : flags Open_text and Open_binary are not compatible", pF = "**", p8 = 43823, Cb = ": Not a directory", ci = "render_type", k8 = 72349, Z3 = "test", Nb = 43776, Ob = 92879, jb = 11263, kF = 241, Db = 93052, si = "nullable_type", Rb = 43704, Fb = 64321, mF = "Property", Mb = 72191, hF = 165, I6 = "instanceof", Lb = 69247, dF = 302, Ye = "name", m8 = 126634, qb = 8516, h8 = "typeArguments", Bb = 71127, ai = "jsx_spread_attribute", Ub = 66559, Xb = 44031, Gb = 43645, e2 = 8233, Yb = 71494, zb = "opaque", d8 = 72967, Jb = 70106, oi = "logical", yF = "@[%s =@ ", P6 = "0o", y8 = 126554, Kb = 71351, _8 = 8484, Hb = 72242, w8 = 120687, xl = 252, Wb = 183983, C6 = "%S", vi = "function_this_param_type", _F = 292, g8 = "decorators", Vb = 43255, li = "catch_clause", ze = "-", $b = 67711, wF = ": file descriptor already closed", b8 = 64311, pi = "record_declaration", T8 = 120539, Qb = "arguments", E8 = 73062, Zb = 173823, xT = 42124, rT = 72095, eT = 125259, tT = 42969, S8 = 70280, gF = 12520, nT = 69749, uT = 70066, ki = "binary", mi = "for_in_statement", iT = 43010, bF = "^=", fT = 126570, hi = "for_statement", A8 = 126584, di = "function_return_annotation", cT = 72144, sT = 8505, TF = -101, yi = "class_expression", aT = 120076, oT = 69807, vT = 40981, lT = -24976191, pT = 72768, kT = 126550, I8 = '"', _i = "call_type_arg", EF = "f", Bv = "this", P8 = 126628, SF = "===", AF = 56320, wi = "declare_module_exports", mT = 120512, p2 = 105, hT = 119974, dT = 71450, yT = 71942, IF = 195, C8 = 120629, PF = "/=", CF = ">>", gi = "declare_interface", NF = 4096, bi = "pattern_array_rest_element", _T = 71338, N8 = 126520, Ti = "as_const_expression", OF = "Popping lex mode from empty stack", jF = "renders?", wT = 68405, Ei = "member", Si = "class_extends", Uv = 12287, O8 = 126590, gT = 66377, DF = "fields", Io = "async", Ai = "pattern_array_element", rl = 240, RF = 308, bT = 69864, Xv = "readonly", TT = 70460, ET = 120779, ST = 66378, Ii = "new_", j8 = 126551, Pi = "pattern_object_rest_property_pattern", Ci = "for_statement_init", AT = 43595, D8 = 68296, FF = 148, MF = "\0\0\0\0", IT = 120712, PT = 64217, CT = 69295, LF = "||", NT = ";", OT = 70461, jT = 66939, DT = "record", qF = "collect_comments", BF = 279, Ni = "generic_type", RT = 68295, FT = 44002, R8 = 72162, Oi = "object_call_property_type", F8 = 8305, M8 = 119995, L8 = "with", ji = "class_property", UF = "qualification", Di = "jsx_attribute_name_namespaced", Ri = "if_statement", Fi = "typeof_qualified_identifier", XF = 238, MT = 65615, GF = 176, t2 = "expression", q8 = 126559, Mi = "jsx_attribute_value", Li = "<2>", qi = "component_param", B8 = "Map.bal", N6 = 132, LT = 70412, qT = 70440, YF = "<<", U8 = "finally", zF = "v", Bi = "syntax_opt", Ui = "meta_property", BT = 12447, UT = 67514, X8 = 12448, Xi = "object_mapped_type_property", Gv = "operator", JF = "closedir", Gi = "unary_expression", XT = 126588, GT = 70851, Yi = "export_batch_specifier", el = "renders", KF = 226, YT = 73111, HF = 221, rx = "", zT = 66927, JT = 64967, KT = "elements", HT = 67640, WT = 43754, zi = "declare_export_declaration", G8 = -26065557, VT = 65855, O6 = "boolean", Aa = "typeof", $T = 124902, WF = 139, QT = 65629, VF = 224, ZT = 43123, Y8 = 70449, xE = 12735, Te = 107, z8 = 11719, $F = "!=", Ji = "call_type_args", tl = "asserts", Po = -46, rE = "namespace", Ki = "match_pattern", Hi = "for_of_statement_lhs", J8 = 126504, eE = 69505, K8 = "for", tE = 72703, H8 = 120127, W8 = 43471, nE = 93047, QF = "Undefined_recursive_module", ZF = 2147483647, Wi = "template_literal_element", xM = "Unexpected ", uE = 101631, iE = 65497, V8 = 68120, Vi = "import_default_specifier", tn = "array", rM = "expressions", fE = 110930, eM = 204, $i = "while_", Qi = "function_rest_param_type", Co = 63, cE = 77808, tM = "Unexpected token `", k2 = 114, Zi = "pattern_object_p", sE = 65140, aE = 123190, xf = "pattern_object_property_number_literal_key", j6 = "enum", rf = "conditional_type", ef = 113, tf = "array_type", nM = "minus", oE = 43790, nf = "do_while", vE = 11567, lE = 11694, D6 = 256, pE = 119976, uf = "component_body", nn = 111, kE = 177976, $8 = 67644, mE = 73439, R6 = 951901561, uM = "?", iM = ")", Q8 = 43867, Z8 = 65575, hE = 69445, fM = "FunctionTypeParam", xm = 119996, dE = 65019, ff = "conditional", yE = 11505, cM = 135, _E = 71295, wE = 12799, gE = 67382, cf = "type_guard_annotation", sf = "object_key_computed", un = 123, af = "pattern_object_property_key", bE = 119892, TE = 67505, EE = 66962, of = "with_", SE = 43273, vf = "interface_declaration", rm = "bool", AE = 71945, IE = "declaration", PE = 11519, F6 = ">", CE = 66771, em = "}", sM = 8472, NE = 43014, lf = "declare_function", Gr = 127, OE = "RestElement", jE = 190, DE = 8467, aM = "module", tm = 126522, oM = "Sys_blocked_io", pf = "jsx_opening_element", kf = "object_key_number_literal", mf = "match_instance_pattern", vM = "|=", lM = "mixins", RE = 205, pM = 217, nm = "if", kM = "+=", hf = "match_object_pattern_property_key", df = "match_rest_pattern", yf = "export_named_declaration_specifier", um = "try", im = "_bigarr02", FE = 70479, fn = "right", ME = 245, LE = 11718, _f = "tuple_labeled_element", mM = "TypeParameterInstantiation", qE = "mkdir", BE = 71999, UE = 870530776, hM = "@[", dM = -908856609, yM = 331416730, XE = 11670, GE = 66735, YE = 43709, fm = 43642, zE = 67002, JE = 69375, wf = "function_body_any", KE = 119807, _M = "Assert_failure", gf = "function_identifier", HE = 65479, M6 = 131, Yv = "new", bf = "for_of_left_declaration", WE = 120084, VE = 100343, $E = 73030, cm = 70452, sm = 134, QE = 253, ZE = 42954, wM = 227, Tf = "jsx_member_expression_object", Ef = "class_property_value", xS = 120144, gM = 314, rS = 66994, nl = "set", eS = 126498, Sf = "tuple_element", Af = "arg_list", tS = 65481, nS = 8511, uS = 42964, iS = 11492, am = 126555, fS = 71039, cS = "exportKind", If = "program", sS = 70187, bM = 173, It = "as", zv = 124, TM = "visit_leading_comment", aS = 110575, Pf = "class_", oS = 72440, vS = 67897, EM = 235, lS = 8543, SM = 141, Cf = 120, Nf = "match_object_pattern_property", L6 = 1024, pS = 101640, AM = 1027, IM = 236, ul = 246, PM = "(", kS = 66511, Of = "regexp_literal", mS = 65574, hS = 43513, dS = 43695, CM = "&&", om = 11558, yS = 66503, _S = 93071, jf = "pattern_expression", wS = 65381, vm = 126538, gS = 12292, Df = "import_namespace_specifier", bS = 67583, TS = 120137, ES = 69622, SS = 120770, AS = 71131, Jv = 8287, IS = 110590, PS = 65135, CS = "Fatal error: exception ", q6 = 118, NS = 181, lm = 11687, m2 = "camlinternalFormat.ml", OS = 72959, jS = 249, Rf = "union_type", NM = 8206, DS = 73064, RS = 70271, FS = 92728, pm = 65344, km = 11695, Ff = "class_decorator", OM = "the end of an expression statement (`;`)", MS = 177983, LS = 8457, jM = 931, qS = 66499, BS = 94175, DM = "#", US = "Identifier", Mf = "for_in_statement_lhs", Lf = "pattern_string_literal", mm = 70302, hm = 126496, XS = 66461, GS = 82943, dm = 8450, YS = 72271, zS = 70853, JS = "of", RM = "Stack_overflow", B6 = "hasUnknownMembers", U6 = "a", qf = "variable_declarator_pattern", KS = 73061, HS = 77711, ym = 64317, WS = 73097, FM = 269, Bf = "enum_declaration", VS = 66966, $S = 189, QS = 119964, Uf = "type_param", cn = 782176664, _m = 65535, MM = -10, ZS = 64433, wm = 43815, gm = 94031, bm = 73065, xA = 69958, LM = 145, Tm = "property", Xf = "jsx_children", Gf = "member_property_identifier", rA = 42537, No = "const", eA = 70278, Yf = "enum_string_member", X6 = "local", zf = "jsx_element_name_identifier", tA = 68223, Em = "", nA = 119967, Sm = 119994, uA = 66993, Jf = "jsx_member_expression_identifier", Am = "explicitType", iA = 67589, fA = 65597, cA = "exported", sA = 94111, aA = 113775, Kf = "object_spread_property_type", oA = 64847, Hf = "component_identifier", Wf = "class_implements_interface", qM = 162, BM = 243, vA = 12783, UM = `Fatal error: exception %s `, Im = 120093, G6 = "column", Vf = "component_rest_param", XM = "methods", lA = 70451, pA = 70312, kA = 69967, Pm = 70279, mA = 66463, hA = 92975, Cm = 70286, $f = "pattern_object_property_computed_key", Qf = "object_key_string_literal", dA = "jsError", Zf = "type_args", yA = 8304, GM = "==", wr = 115, xc = "declare_component", _A = 120092, wA = 43638, gA = 66811, Ia = -87, bA = 43334, TA = 66863, EA = 77823, YM = 143, rc = "optional_call", SA = 126562, Nm = 70162, ec = 104, zM = "static ", AA = 66963, Kv = "await", Om = 70107, V2 = "0", IA = 72250, PA = 8507, CA = 100351, jm = "AssignmentPattern", tc = "type", JM = "%u", NA = "NonNullExpression", nc = "function_expression_or_method", OA = 43470, KM = 146, HM = 242, WM = "camlinternalMod.ml", uc = "match_or_pattern", jA = 72750, DA = 69414, RA = 65370, ic = "syntax", VM = 32752, FA = 42963, $M = "End_of_file", MA = 12294, LA = 8471, QM = "elementType", qA = 43782, ZM = "++", BA = 43641, UA = 71944, fc = "record_property", XA = 126601, GA = 78894, xL = -45, Hv = "null", rL = 177, eL = "satisfies", YA = 131071, cc = "import_specifier", sc = "class_method", ac = "type_", zA = 126514, JA = 8454, tL = "inexact", KA = 67807, HA = 8525, WA = 65470, VA = 71352, oc = "tuple_spread_element", nL = 219, $A = "abstract", QA = 73458, Je = "return", Y6 = 65536, Dm = 126548, vc = "array_element", ZA = -253313196, xI = 186, Rm = "catch", lc = "infer_type", rI = 12295, uL = "Invalid legacy octal ", eI = 69762, tI = 43311, nI = 65437, pc = "variable_declaration", iL = -696510241, kc = "function_params", uI = 64316, fL = 311, Fm = 11565, cL = "infinity", iI = "@]", fI = 65908, mc = "extends", cI = 66204, sI = 43784, aI = 11742, Mm = 126503, Ke = "debugger", oI = 70457, z6 = 912068366, vI = 68786, Lm = "keyof", qm = 69415, lI = 12686, sn = 127343600, hc = "declare_type_alias", sL = "the", aL = 233, dc = "jsx_element_name_namespaced", pI = 72283, kI = 161, yc = "class_static_block", _c = "function_param_type", Pt = 128, mI = -673950933, Bm = 126591, oL = "Sys_error", hI = 74649, dI = 74862, J6 = "is", yI = 43738, _I = 68479, vL = 196, Um = 70854, wc = "enum_boolean_member", Xm = 72163, wI = 92783, lL = 281, gc = "component_param_name", gI = 68863, an = 32768, pL = 2048, bI = 64284, kL = "@{", TI = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", Gm = 8455, bc = "update_expression", mL = 276, EI = 65500, K6 = "from", SI = 68447, Ym = 12592, AI = 92766, hL = ">>=", n2 = 110, II = 66431, PI = 43586, Tc = "jsx_identifier", CI = " : file already exists", R1 = 128, NI = 71958, OI = 66717, Ec = "enum_boolean_body", jI = 64262, Yr = "id", Sc = "component_renders_annotation", DI = 42888, RI = 8584, FI = 73008, Ac = "enum_symbol_body", Ic = "declare_namespace", zm = 72713, MI = 55215, Pc = "object_property_value_type", Cc = "match_wildcard_pattern", Nc = "for_in_assignment_pattern", Jm = 8485, LI = 43395, qI = 229, Pa = "true", BI = 43743, Oc = "enum_number_member", dL = 234, UI = 72969, yL = "expected *", Ee = 102, _L = 200, H6 = "symbol", Wv = "source", jc = "tparam_const_modifier", XI = 43714, Dc = "jsx_fragment", Rc = "jsx_attribute_name_identifier", W6 = "public", GI = 43442, Fc = "pattern_object_property", YI = 65786, zI = 70783, JI = 43713, KI = 72160, wL = "*-/", Mc = "export_named_specifier", Lc = "arrow_function", HI = 122623, Km = 70006, gL = "${", WI = 43814, qc = "generic_qualified_identifier_type", VI = 199, Bc = "jsx_spread_child", Hm = 8489, Wm = 184, bL = 2047, $I = 66955, Uc = "try_catch", QI = 70497, TL = 313, EL = 237, ZI = 67431, xP = 125183, SL = -602162310, on = "params", rP = "consequent", eP = 68029, tP = 67829, nP = 68095, Xc = "enum_string_body", uP = 93823, iP = 68351, fP = 65495, Gc = "declare_module", Yc = "match_as_pattern_target", zc = "body_expression", cP = 66175, sP = 191, Vm = 70441, $m = 65141, Qm = "&", Jc = "super_expression", Zm = 126564, aP = 72105, LI0 = "fs", He = "throw", oP = 68287, vP = 67839, Ca = 116, lP = 110882, pP = 69404, kP = 123197, Vv = 65279, il = "src/parser/type_parser.ml", mP = 68115, xh = 126547, rh = 126556, hP = 73055, Kc = "member_property_expression", Hc = "enum_defaulted_member", dP = 43071, yP = 11726, Wc = "component_type_rest_param", _P = 68607, Vc = "object_key", AL = 160, $2 = "variance", wP = 70655, gP = 70414, fl = "super", bP = 123583, TP = 65594, V6 = "method", EP = 73648, $6 = 121, SP = 93951, $c = "pattern_array_element_pattern", AP = 43764, IP = 42993, eh = 120145, PP = 74879, IL = 168, th = 8486, CP = 72001, Qc = "tagged_template", Zc = "module_ref_literal", NP = 65312, Oo = "implements", OP = 43700, jP = 120003, PL = "Invalid_argument", xs = 16777215, DP = 83526, nh = 69744, uh = 12336, rs = "switch_case", CL = -61, es = "optional_member", RP = 64274, ih = 64322, fh = 126530, FP = 71998, ch = 72970, MP = 13311, LP = 73647, qP = 120074, cl = "let", NL = "global", ts = "expression_statement", ns = "component_type_params", BP = 512, UP = 69634, XP = 67461, GP = 123627, YP = 64913, OL = "children", jL = "PropertyDefinition", DL = 1026, RL = "%li", us = "declare_class", zP = 43258, is = "indexed_access_type", JP = 124926, h2 = 112, KP = "b", fs = "predicate_expression", cs = "if_alternate_statement", Q6 = "private", FL = -594953737, ML = 140, HP = "nan", WP = 72103, sh = 11735, ss = "statement", VP = "rmdir", ah = 66512, $P = "match", QP = 198, ZP = 11734, as = "import_named_specifier", xC = 69599, rC = 68799, eC = 194559, os = "match_array_pattern", LL = 174, vs = "function_", ls = "bigint_literal", t1 = 248, oh = 67638, vh = 126539, tC = 11557, qL = 214, nC = 5760, We = "break", vn = "block", ps = "match_member_pattern", uC = 123565, iC = 66815, m1 = "value", BL = 1039100673, fC = 69746, cC = 70448, sC = 74751, ks = "init", aC = 69551, lh = 65548, ms = "jsx_member_expression", ph = 68096, d2 = 108, kh = 126521, oC = 71487, hs = "match_statement", vC = 178205, lC = 12548, UL = " : is a directory", ln = ".", pC = 12348, sl = -835925911, B2 = "typeParameters", kC = 66855, Y1 = "typeAnnotation", $v = "bigint", ds = "jsx_attribute_value_literal", mh = 194, XL = "T_JSX_TEXT", mC = 68466, hh = 126537, GL = 67714067, hC = 69487, dh = "export", dC = 43822, yh = 126499, yC = 55242, ys = "member_type_identifier", YL = 138, _C = 71679, Qv = 130, wC = 12438, gC = 119969, zL = 298, _h = 12539, bC = 119972, JL = ",", TC = 71423, EC = "index out of bounds", Ct = 106, al = "%d", KL = "T_RENDERS_QUESTION", wh = 120571, gh = "returnType", SC = 69423, bh = 120070, HL = "%", Z6 = 117, AC = 179, IC = "EBADF", PC = 93759, Th = 64325, _s = "component_params", CC = 66517, NC = 67423, OC = 605857695, jC = 43518, WL = 251, ws = "for_of_statement", DC = 71983, VL = "~", RC = 12442, Ve = "switch", FC = 66207, Eh = 126535, $L = "&&=", MC = 69289, LC = 71723, gs = "generic_identifier_type", qC = 126619, bs = "object_type_property_setter", BC = 70418, QL = "<=", UC = 125251, XC = 11702, Ts = "enum_number_body", ol = 250, GC = 124910, YC = 69297, zC = 67455, JC = 42511, Es = "ts_satisfies", ZL = 268, KC = 68324, Sh = "an identifier", HC = 126534, Ss = 103, WC = 120126, jo = 449540197, x4 = "declare", VC = 68899, $C = 126502, As = "function_expression", xq = 142, QC = 123135, ZC = 67967, xN = 120487, rN = 120686, Is = "export_named_declaration", eN = 66348, Ah = 119981, tN = 12352, Ps = "tuple_type", nN = 68680, Ih = "target", Cs = "call"; function Ez(x, r, e, t, u) { if (t <= r) for (var i = 1; i <= u; i++) e[t + i] = x[r + i]; else for (var i = u; i >= 1; i--) e[t + i] = x[r + i]; return 0; } function Sz(x) { for (var r = [0]; x !== 0; ) { for (var e = x[1], t = 1; t < e.length; t++) r.push(e[t]); x = x[2]; } return r; } function Az(x, r, e) { var t = new Array(e + 1); t[0] = 0; for (var u = 1, i = r + 1; u <= e; u++, i++) t[u] = x[i]; return t; } function Ph(x, r, e) { return x[1] === r ? (x[1] = e, 1) : 0; } function Iz(x, r) { var e = x[1]; return x[1] += r, e; } function vl(x) { return x[1]; } function rq(x) { var r = a0.process; if (r && r.env && r.env[x] != null) return r.env[x]; if (a0.jsoo_static_env && a0.jsoo_static_env[x]) return a0.jsoo_static_env[x]; } var uN = 0; (function() { var x = rq("OCAMLRUNPARAM"); if (x !== void 0) for (var r = x.split(JL), e = 0; e < r.length; e++) if (r[e] == KP) { uN = 1; break; } else if (r[e].startsWith("b=")) uN = +r[e].slice(2); else continue; })(); var Q2 = [0]; function Pz(x, r) { return (!x.js_error || r || x[0] == t1) && (x.js_error = new a0.Error("Js exception containing backtrace")), x; } function J0(x, r) { return uN ? Pz(x, r) : x; } function Cz(x, r) { throw J0([0, x, r]); } function qI0(x) { return x; } function iN(x, r) { Cz(x, r); } function u2(x) { iN(Q2.Invalid_argument, x); } function eq(x) { switch (x) { case 7: case 10: case 11: return 2; default: return 1; } } function tq(x, r) { var e; switch (x) { case 0: e = Float32Array; break; case 1: e = Float64Array; break; case 2: e = Int8Array; break; case 3: e = Uint8Array; break; case 4: e = Int16Array; break; case 5: e = Uint16Array; break; case 6: e = Int32Array; break; case 7: e = Int32Array; break; case 8: e = Int32Array; break; case 9: e = Int32Array; break; case 10: e = Float32Array; break; case 11: e = Float64Array; break; case 12: e = Uint8Array; break; } e || u2("Bigarray.create: unsupported kind"); var t = new e(r * eq(x)); return t; } function Ch(x) { for (var r = x.length, e = 1, t = 0; t < r; t++) x[t] < 0 && u2("Bigarray.create: negative dimension"), e = e * x[t]; return e; } var nq = Math.pow(2, -24); function uq(x) { throw x; } function iq() { uq(Q2.Division_by_zero); } function sr(x, r, e) { this.lo = x & xs, this.mi = r & xs, this.hi = e & rn; } sr.prototype.caml_custom = "_j", sr.prototype.copy = function() { return new sr(this.lo, this.mi, this.hi); }, sr.prototype.ucompare = function(x) { return this.hi > x.hi ? 1 : this.hi < x.hi ? -1 : this.mi > x.mi ? 1 : this.mi < x.mi ? -1 : this.lo > x.lo ? 1 : this.lo < x.lo ? -1 : 0; }, sr.prototype.compare = function(x) { var r = this.hi << 16, e = x.hi << 16; return r > e ? 1 : r < e ? -1 : this.mi > x.mi ? 1 : this.mi < x.mi ? -1 : this.lo > x.lo ? 1 : this.lo < x.lo ? -1 : 0; }, sr.prototype.neg = function() { var x = -this.lo, r = -this.mi + (x >> 24), e = -this.hi + (r >> 24); return new sr(x, r, e); }, sr.prototype.add = function(x) { var r = this.lo + x.lo, e = this.mi + x.mi + (r >> 24), t = this.hi + x.hi + (e >> 24); return new sr(r, e, t); }, sr.prototype.sub = function(x) { var r = this.lo - x.lo, e = this.mi - x.mi + (r >> 24), t = this.hi - x.hi + (e >> 24); return new sr(r, e, t); }, sr.prototype.mul = function(x) { var r = this.lo * x.lo, e = (r * nq | 0) + this.mi * x.lo + this.lo * x.mi, t = (e * nq | 0) + this.hi * x.lo + this.mi * x.mi + this.lo * x.hi; return new sr(r, e, t); }, sr.prototype.isZero = function() { return (this.lo | this.mi | this.hi) == 0; }, sr.prototype.isNeg = function() { return this.hi << 16 < 0; }, sr.prototype.and = function(x) { return new sr(this.lo & x.lo, this.mi & x.mi, this.hi & x.hi); }, sr.prototype.or = function(x) { return new sr(this.lo | x.lo, this.mi | x.mi, this.hi | x.hi); }, sr.prototype.xor = function(x) { return new sr(this.lo ^ x.lo, this.mi ^ x.mi, this.hi ^ x.hi); }, sr.prototype.shift_left = function(x) { return x = x & 63, x == 0 ? this : x < 24 ? new sr(this.lo << x, this.mi << x | this.lo >> 24 - x, this.hi << x | this.mi >> 24 - x) : x < 48 ? new sr(0, this.lo << x - 24, this.mi << x - 24 | this.lo >> 48 - x) : new sr(0, 0, this.lo << x - 48); }, sr.prototype.shift_right_unsigned = function(x) { return x = x & 63, x == 0 ? this : x < 24 ? new sr(this.lo >> x | this.mi << 24 - x, this.mi >> x | this.hi << 24 - x, this.hi >> x) : x < 48 ? new sr(this.mi >> x - 24 | this.hi << 48 - x, this.hi >> x - 24, 0) : new sr(this.hi >> x - 48, 0, 0); }, sr.prototype.shift_right = function(x) { if (x = x & 63, x == 0) return this; var r = this.hi << 16 >> 16; if (x < 24) return new sr(this.lo >> x | this.mi << 24 - x, this.mi >> x | r << 24 - x, this.hi << 16 >> x >>> 16); var e = this.hi << 16 >> 31; return x < 48 ? new sr(this.mi >> x - 24 | this.hi << 48 - x, this.hi << 16 >> x - 24 >> 16, e & rn) : new sr(this.hi << 16 >> x - 32, e, e); }, sr.prototype.lsl1 = function() { this.hi = this.hi << 1 | this.mi >> 23, this.mi = (this.mi << 1 | this.lo >> 23) & xs, this.lo = this.lo << 1 & xs; }, sr.prototype.lsr1 = function() { this.lo = (this.lo >>> 1 | this.mi << 23) & xs, this.mi = (this.mi >>> 1 | this.hi << 23) & xs, this.hi = this.hi >>> 1; }, sr.prototype.udivmod = function(x) { for (var r = 0, e = this.copy(), t = x.copy(), u = new sr(0, 0, 0); e.ucompare(t) > 0; ) r++, t.lsl1(); for (; r >= 0; ) r--, u.lsl1(), e.ucompare(t) >= 0 && (u.lo++, e = e.sub(t)), t.lsr1(); return { quotient: u, modulus: e }; }, sr.prototype.div = function(x) { var r = this; x.isZero() && iq(); var e = r.hi ^ x.hi; r.hi & an && (r = r.neg()), x.hi & an && (x = x.neg()); var t = r.udivmod(x).quotient; return e & an && (t = t.neg()), t; }, sr.prototype.mod = function(x) { var r = this; x.isZero() && iq(); var e = r.hi; r.hi & an && (r = r.neg()), x.hi & an && (x = x.neg()); var t = r.udivmod(x).modulus; return e & an && (t = t.neg()), t; }, sr.prototype.toInt = function() { return this.lo | this.mi << 24; }, sr.prototype.toFloat = function() { return (this.hi << 16) * Math.pow(2, 32) + this.mi * Math.pow(2, 24) + this.lo; }, sr.prototype.toArray = function() { return [this.hi >> 8, this.hi & ya, this.mi >> 16, this.mi >> 8 & ya, this.mi & ya, this.lo >> 16, this.lo >> 8 & ya, this.lo & ya]; }, sr.prototype.lo32 = function() { return this.lo | (this.mi & ya) << 24; }, sr.prototype.hi32 = function() { return this.mi >>> 8 & rn | this.hi << 16; }; function Nz(x, r) { return new sr(x & xs, x >>> 24 & ya | (r & rn) << 8, r >>> 16 & rn); } function fN(x) { return x.hi32(); } function cN(x) { return x.lo32(); } function r4() { u2(EC); } var Oz = im; function Do(x, r, e, t) { this.kind = x, this.layout = r, this.dims = e, this.data = t; } Do.prototype.caml_custom = Oz, Do.prototype.offset = function(x) { var r = 0; if (typeof x == "number" && (x = [x]), x instanceof Array || u2("bigarray.js: invalid offset"), this.dims.length != x.length && u2("Bigarray.get/set: bad number of dimensions"), this.layout == 0) for (var e = 0; e < this.dims.length; e++) (x[e] < 0 || x[e] >= this.dims[e]) && r4(), r = r * this.dims[e] + x[e]; else for (var e = this.dims.length - 1; e >= 0; e--) (x[e] < 1 || x[e] > this.dims[e]) && r4(), r = r * this.dims[e] + (x[e] - 1); return r; }, Do.prototype.get = function(x) { switch (this.kind) { case 7: var r = this.data[x * 2 + 0], e = this.data[x * 2 + 1]; return Nz(r, e); case 10: case 11: var t = this.data[x * 2 + 0], u = this.data[x * 2 + 1]; return [Q3, t, u]; default: return this.data[x]; } }, Do.prototype.set = function(x, r) { switch (this.kind) { case 7: this.data[x * 2 + 0] = cN(r), this.data[x * 2 + 1] = fN(r); break; case 10: case 11: this.data[x * 2 + 0] = r[1], this.data[x * 2 + 1] = r[2]; break; default: this.data[x] = r; break; } return 0; }, Do.prototype.fill = function(x) { switch (this.kind) { case 7: var r = cN(x), e = fN(x); if (r == e) this.data.fill(r); else for (var t = 0; t < this.data.length; t++) this.data[t] = t % 2 == 0 ? r : e; break; case 10: case 11: var u = x[1], i = x[2]; if (u == i) this.data.fill(u); else for (var t = 0; t < this.data.length; t++) this.data[t] = t % 2 == 0 ? u : i; break; default: this.data.fill(x); break; } }, Do.prototype.compare = function(x, r) { if (this.layout != x.layout || this.kind != x.kind) { var e = this.kind | this.layout << 8, t = x.kind | x.layout << 8; return t - e; } if (this.dims.length != x.dims.length) return x.dims.length - this.dims.length; for (var u = 0; u < this.dims.length; u++) if (this.dims[u] != x.dims[u]) return this.dims[u] < x.dims[u] ? -1 : 1; switch (this.kind) { case 0: case 1: case 10: case 11: for (var i, c, u = 0; u < this.data.length; u++) { if (i = this.data[u], c = x.data[u], i < c) return -1; if (i > c) return 1; if (i != c) { if (!r) return NaN; if (i == i) return 1; if (c == c) return -1; } } break; case 7: for (var u = 0; u < this.data.length; u += 2) { if (this.data[u + 1] < x.data[u + 1]) return -1; if (this.data[u + 1] > x.data[u + 1]) return 1; if (this.data[u] >>> 0 < x.data[u] >>> 0) return -1; if (this.data[u] >>> 0 > x.data[u] >>> 0) return 1; } break; case 2: case 3: case 4: case 5: case 6: case 8: case 9: case 12: for (var u = 0; u < this.data.length; u++) { if (this.data[u] < x.data[u]) return -1; if (this.data[u] > x.data[u]) return 1; } break; } return 0; }; function ll(x, r, e, t) { this.kind = x, this.layout = r, this.dims = e, this.data = t; } ll.prototype = new Do(), ll.prototype.offset = function(x) { return typeof x != "number" && (x instanceof Array && x.length == 1 ? x = x[0] : u2("Ml_Bigarray_c_1_1.offset")), (x < 0 || x >= this.dims[0]) && r4(), x; }, ll.prototype.get = function(x) { return this.data[x]; }, ll.prototype.set = function(x, r) { return this.data[x] = r, 0; }, ll.prototype.fill = function(x) { return this.data.fill(x), 0; }; function sN(x, r, e, t) { var u = eq(x); return Ch(e) * u != t.length && u2("length doesn't match dims"), r == 0 && e.length == 1 && u == 1 ? new ll(x, r, e, t) : new Do(x, r, e, t); } function fq(x) { return x.slice(1); } function jz(x, r, e) { var t = fq(e), u = tq(x, Ch(t)); return sN(x, r, t, u); } function e4(x, r, e) { return x.set(x.offset(r), e), 0; } function t4(x, r, e) { var t = String.fromCharCode; if (r == 0 && e <= NF && e == x.length) return t.apply(null, x); for (var u = rx; 0 < e; r += L6, e -= L6) u += t.apply(null, x.slice(r, r + Math.min(e, L6))); return u; } function Nh(x) { for (var r = new Uint8Array(x.l), e = x.c, t = e.length, u = 0; u < t; u++) r[u] = e.charCodeAt(u); for (t = x.l; u < t; u++) r[u] = 0; return x.c = r, x.t = 4, r; } function Na(x, r, e, t, u) { if (u == 0) return 0; if (t == 0 && (u >= e.l || e.t == 2 && u >= e.c.length)) e.c = x.t == 4 ? t4(x.c, r, u) : r == 0 && x.c.length == u ? x.c : x.c.substr(r, u), e.t = e.c.length == e.l ? 0 : 2; else if (e.t == 2 && t == e.c.length) e.c += x.t == 4 ? t4(x.c, r, u) : r == 0 && x.c.length == u ? x.c : x.c.substr(r, u), e.t = e.c.length == e.l ? 0 : 2; else { e.t != 4 &&