"use strict"; var nG = Object.create; var Xc = Object.defineProperty; var aG = Object.getOwnPropertyDescriptor; var oG = Object.getOwnPropertyNames; var uG = Object.getPrototypeOf, lG = Object.prototype.hasOwnProperty; var n = (e, t) => Xc(e, "name", { value: t, configurable: !0 }); var ph = (e, t) => () => (e && (t = e(e = 0)), t); var E = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), hh = (e, t) => { for (var r in t) Xc(e, r, { get: t[r], enumerable: !0 }); }, r4 = (e, t, r, i) => { if (t && typeof t == "object" || typeof t == "function") for (let s of oG(t)) !lG.call(e, s) && s !== r && Xc(e, s, { get: () => t[s], enumerable: !(i = aG(t, s)) || i.enumerable }); return e; }; var Ve = (e, t, r) => (r = e != null ? nG(uG(e)) : {}, r4( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. t || !e || !e.__esModule ? Xc(r, "default", { value: e, enumerable: !0 }) : r, e )), mh = (e) => r4(Xc({}, "__esModule", { value: !0 }), e); // ../node_modules/kleur/index.js var $t = E((pet, d4) => { "use strict"; var { FORCE_COLOR: hG, NODE_DISABLE_COLORS: mG, TERM: yG } = process.env, yt = { enabled: !mG && yG !== "dumb" && hG !== "0", // modifiers reset: Et(0, 0), bold: Et(1, 22), dim: Et(2, 22), italic: Et(3, 23), underline: Et(4, 24), inverse: Et(7, 27), hidden: Et(8, 28), strikethrough: Et(9, 29), // colors black: Et(30, 39), red: Et(31, 39), green: Et(32, 39), yellow: Et(33, 39), blue: Et(34, 39), magenta: Et(35, 39), cyan: Et(36, 39), white: Et(37, 39), gray: Et(90, 39), grey: Et(90, 39), // background colors bgBlack: Et(40, 49), bgRed: Et(41, 49), bgGreen: Et(42, 49), bgYellow: Et(43, 49), bgBlue: Et(44, 49), bgMagenta: Et(45, 49), bgCyan: Et(46, 49), bgWhite: Et(47, 49) }; function f4(e, t) { let r = 0, i, s = "", a = ""; for (; r < e.length; r++) i = e[r], s += i.open, a += i.close, t.includes(i.close) && (t = t.replace(i.rgx, i.close + i.open)); return s + t + a; } n(f4, "run"); function gG(e, t) { let r = { has: e, keys: t }; return r.reset = yt.reset.bind(r), r.bold = yt.bold.bind(r), r.dim = yt.dim.bind(r), r.italic = yt.italic.bind(r), r.underline = yt.underline. bind(r), r.inverse = yt.inverse.bind(r), r.hidden = yt.hidden.bind(r), r.strikethrough = yt.strikethrough.bind(r), r.black = yt.black.bind( r), r.red = yt.red.bind(r), r.green = yt.green.bind(r), r.yellow = yt.yellow.bind(r), r.blue = yt.blue.bind(r), r.magenta = yt.magenta.bind( r), r.cyan = yt.cyan.bind(r), r.white = yt.white.bind(r), r.gray = yt.gray.bind(r), r.grey = yt.grey.bind(r), r.bgBlack = yt.bgBlack.bind( r), r.bgRed = yt.bgRed.bind(r), r.bgGreen = yt.bgGreen.bind(r), r.bgYellow = yt.bgYellow.bind(r), r.bgBlue = yt.bgBlue.bind(r), r.bgMagenta = yt.bgMagenta.bind(r), r.bgCyan = yt.bgCyan.bind(r), r.bgWhite = yt.bgWhite.bind(r), r; } n(gG, "chain"); function Et(e, t) { let r = { open: `\x1B[${e}m`, close: `\x1B[${t}m`, rgx: new RegExp(`\\x1b\\[${t}m`, "g") }; return function(i) { return this !== void 0 && this.has !== void 0 ? (this.has.includes(e) || (this.has.push(e), this.keys.push(r)), i === void 0 ? this : yt. enabled ? f4(this.keys, i + "") : i + "") : i === void 0 ? gG([e], [r]) : yt.enabled ? f4([r], i + "") : i + ""; }; } n(Et, "init"); d4.exports = yt; }); // ../node_modules/prompts/dist/util/action.js var h4 = E((met, p4) => { "use strict"; p4.exports = (e, t) => { if (!(e.meta && e.name !== "escape")) { if (e.ctrl) { if (e.name === "a") return "first"; if (e.name === "c" || e.name === "d") return "abort"; if (e.name === "e") return "last"; if (e.name === "g") return "reset"; } if (t) { if (e.name === "j") return "down"; if (e.name === "k") return "up"; } return e.name === "return" || e.name === "enter" ? "submit" : e.name === "backspace" ? "delete" : e.name === "delete" ? "deleteForward" : e.name === "abort" ? "abort" : e.name === "escape" ? "exit" : e.name === "tab" ? "next" : e.name === "pagedown" ? "nextPage" : e.name === "pageup" ? "prevPage" : e.name === "home" ? "home" : e.name === "end" ? "end" : e.name === "up" ? "up" : e.name === "down" ? "down" : e. name === "right" ? "right" : e.name === "left" ? "left" : !1; } }; }); // ../node_modules/prompts/dist/util/strip.js var bh = E((yet, m4) => { "use strict"; m4.exports = (e) => { let t = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"), r = new RegExp(t, "g"); return typeof e == "string" ? e.replace(r, "") : e; }; }); // ../node_modules/sisteransi/src/index.js var Wt = E((get, y4) => { "use strict"; var Pb = "\x1B", Vt = `${Pb}[`, bG = "\x07", Fb = { to(e, t) { return t ? `${Vt}${t + 1};${e + 1}H` : `${Vt}${e + 1}G`; }, move(e, t) { let r = ""; return e < 0 ? r += `${Vt}${-e}D` : e > 0 && (r += `${Vt}${e}C`), t < 0 ? r += `${Vt}${-t}A` : t > 0 && (r += `${Vt}${t}B`), r; }, up: /* @__PURE__ */ n((e = 1) => `${Vt}${e}A`, "up"), down: /* @__PURE__ */ n((e = 1) => `${Vt}${e}B`, "down"), forward: /* @__PURE__ */ n((e = 1) => `${Vt}${e}C`, "forward"), backward: /* @__PURE__ */ n((e = 1) => `${Vt}${e}D`, "backward"), nextLine: /* @__PURE__ */ n((e = 1) => `${Vt}E`.repeat(e), "nextLine"), prevLine: /* @__PURE__ */ n((e = 1) => `${Vt}F`.repeat(e), "prevLine"), left: `${Vt}G`, hide: `${Vt}?25l`, show: `${Vt}?25h`, save: `${Pb}7`, restore: `${Pb}8` }, DG = { up: /* @__PURE__ */ n((e = 1) => `${Vt}S`.repeat(e), "up"), down: /* @__PURE__ */ n((e = 1) => `${Vt}T`.repeat(e), "down") }, vG = { screen: `${Vt}2J`, up: /* @__PURE__ */ n((e = 1) => `${Vt}1J`.repeat(e), "up"), down: /* @__PURE__ */ n((e = 1) => `${Vt}J`.repeat(e), "down"), line: `${Vt}2K`, lineEnd: `${Vt}K`, lineStart: `${Vt}1K`, lines(e) { let t = ""; for (let r = 0; r < e; r++) t += this.line + (r < e - 1 ? Fb.up() : ""); return e && (t += Fb.left), t; } }; y4.exports = { cursor: Fb, scroll: DG, erase: vG, beep: bG }; }); // ../node_modules/prompts/dist/util/clear.js var x4 = E((Det, v4) => { "use strict"; function xG(e, t) { var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; if (!r) { if (Array.isArray(e) || (r = EG(e)) || t && e && typeof e.length == "number") { r && (e = r); var i = 0, s = /* @__PURE__ */ n(function() { }, "F"); return { s, n: /* @__PURE__ */ n(function() { return i >= e.length ? { done: !0 } : { done: !1, value: e[i++] }; }, "n"), e: /* @__PURE__ */ n(function(c) { throw c; }, "e"), f: s }; } throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } var a = !0, o = !1, u; return { s: /* @__PURE__ */ n(function() { r = r.call(e); }, "s"), n: /* @__PURE__ */ n(function() { var c = r.next(); return a = c.done, c; }, "n"), e: /* @__PURE__ */ n(function(c) { o = !0, u = c; }, "e"), f: /* @__PURE__ */ n(function() { try { !a && r.return != null && r.return(); } finally { if (o) throw u; } }, "f") }; } n(xG, "_createForOfIteratorHelper"); function EG(e, t) { if (e) { if (typeof e == "string") return g4(e, t); var r = Object.prototype.toString.call(e).slice(8, -1); if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e); if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return g4(e, t); } } n(EG, "_unsupportedIterableToArray"); function g4(e, t) { (t == null || t > e.length) && (t = e.length); for (var r = 0, i = new Array(t); r < t; r++) i[r] = e[r]; return i; } n(g4, "_arrayLikeToArray"); var SG = bh(), D4 = Wt(), b4 = D4.erase, TG = D4.cursor, CG = /* @__PURE__ */ n((e) => [...SG(e)].length, "width"); v4.exports = function(e, t) { if (!t) return b4.line + TG.to(0); let r = 0, i = e.split(/\r?\n/); var s = xG(i), a; try { for (s.s(); !(a = s.n()).done; ) { let o = a.value; r += 1 + Math.floor(Math.max(CG(o) - 1, 0) / t); } } catch (o) { s.e(o); } finally { s.f(); } return b4.lines(r); }; }); // ../node_modules/prompts/dist/util/figures.js var Ib = E((xet, E4) => { "use strict"; var Zc = { arrowUp: "\u2191", arrowDown: "\u2193", arrowLeft: "\u2190", arrowRight: "\u2192", radioOn: "\u25C9", radioOff: "\u25EF", tick: "\u2714", cross: "\u2716", ellipsis: "\u2026", pointerSmall: "\u203A", line: "\u2500", pointer: "\u276F" }, wG = { arrowUp: Zc.arrowUp, arrowDown: Zc.arrowDown, arrowLeft: Zc.arrowLeft, arrowRight: Zc.arrowRight, radioOn: "(*)", radioOff: "( )", tick: "\u221A", cross: "\xD7", ellipsis: "...", pointerSmall: "\xBB", line: "\u2500", pointer: ">" }, AG = process.platform === "win32" ? wG : Zc; E4.exports = AG; }); // ../node_modules/prompts/dist/util/style.js var T4 = E((Eet, S4) => { "use strict"; var Ku = $t(), po = Ib(), Ob = Object.freeze({ password: { scale: 1, render: /* @__PURE__ */ n((e) => "*".repeat(e.length), "render") }, emoji: { scale: 2, render: /* @__PURE__ */ n((e) => "\u{1F603}".repeat(e.length), "render") }, invisible: { scale: 0, render: /* @__PURE__ */ n((e) => "", "render") }, default: { scale: 1, render: /* @__PURE__ */ n((e) => `${e}`, "render") } }), _G = /* @__PURE__ */ n((e) => Ob[e] || Ob.default, "render"), Qc = Object.freeze({ aborted: Ku.red(po.cross), done: Ku.green(po.tick), exited: Ku.yellow(po.cross), default: Ku.cyan("?") }), PG = /* @__PURE__ */ n((e, t, r) => t ? Qc.aborted : r ? Qc.exited : e ? Qc.done : Qc.default, "symbol"), FG = /* @__PURE__ */ n((e) => Ku. gray(e ? po.ellipsis : po.pointerSmall), "delimiter"), IG = /* @__PURE__ */ n((e, t) => Ku.gray(e ? t ? po.pointerSmall : "+" : po.line), "\ item"); S4.exports = { styles: Ob, render: _G, symbols: Qc, symbol: PG, delimiter: FG, item: IG }; }); // ../node_modules/prompts/dist/util/lines.js var w4 = E((Cet, C4) => { "use strict"; var OG = bh(); C4.exports = function(e, t) { let r = String(OG(e) || "").split(/\r?\n/); return t ? r.map((i) => Math.ceil(i.length / t)).reduce((i, s) => i + s) : r.length; }; }); // ../node_modules/prompts/dist/util/wrap.js var _4 = E((wet, A4) => { "use strict"; A4.exports = (e, t = {}) => { let r = Number.isSafeInteger(parseInt(t.margin)) ? new Array(parseInt(t.margin)).fill(" ").join("") : t.margin || "", i = t.width; return (e || "").split(/\r?\n/g).map((s) => s.split(/\s+/g).reduce((a, o) => (o.length + r.length >= i || a[a.length - 1].length + o.length + 1 < i ? a[a.length - 1] += ` ${o}` : a.push(`${r}${o}`), a), [r]).join(` `)).join(` `); }; }); // ../node_modules/prompts/dist/util/entriesToDisplay.js var F4 = E((Aet, P4) => { "use strict"; P4.exports = (e, t, r) => { r = r || t; let i = Math.min(t - r, e - Math.floor(r / 2)); i < 0 && (i = 0); let s = Math.min(i + r, t); return { startIndex: i, endIndex: s }; }; }); // ../node_modules/prompts/dist/util/index.js var ls = E((_et, I4) => { "use strict"; I4.exports = { action: h4(), clear: x4(), style: T4(), strip: bh(), figures: Ib(), lines: w4(), wrap: _4(), entriesToDisplay: F4() }; }); // ../node_modules/prompts/dist/elements/prompt.js var hn = E((Pet, B4) => { "use strict"; var O4 = require("readline"), kG = ls(), BG = kG.action, NG = require("events"), k4 = Wt(), MG = k4.beep, RG = k4.cursor, LG = $t(), kb = class extends NG { static { n(this, "Prompt"); } constructor(t = {}) { super(), this.firstRender = !0, this.in = t.stdin || process.stdin, this.out = t.stdout || process.stdout, this.onRender = (t.onRender || (() => { })).bind(this); let r = O4.createInterface({ input: this.in, escapeCodeTimeout: 50 }); O4.emitKeypressEvents(this.in, r), this.in.isTTY && this.in.setRawMode(!0); let i = ["SelectPrompt", "MultiselectPrompt"].indexOf(this.constructor.name) > -1, s = /* @__PURE__ */ n((a, o) => { let u = BG(o, i); u === !1 ? this._ && this._(a, o) : typeof this[u] == "function" ? this[u](o) : this.bell(); }, "keypress"); this.close = () => { this.out.write(RG.show), this.in.removeListener("keypress", s), this.in.isTTY && this.in.setRawMode(!1), r.close(), this.emit(this.aborted ? "abort" : this.exited ? "exit" : "submit", this.value), this.closed = !0; }, this.in.on("keypress", s); } fire() { this.emit("state", { value: this.value, aborted: !!this.aborted, exited: !!this.exited }); } bell() { this.out.write(MG); } render() { this.onRender(LG), this.firstRender && (this.firstRender = !1); } }; B4.exports = kb; }); // ../node_modules/prompts/dist/elements/text.js var j4 = E((Iet, L4) => { "use strict"; function N4(e, t, r, i, s, a, o) { try { var u = e[a](o), l = u.value; } catch (c) { r(c); return; } u.done ? t(l) : Promise.resolve(l).then(i, s); } n(N4, "asyncGeneratorStep"); function M4(e) { return function() { var t = this, r = arguments; return new Promise(function(i, s) { var a = e.apply(t, r); function o(l) { N4(a, i, s, o, u, "next", l); } n(o, "_next"); function u(l) { N4(a, i, s, o, u, "throw", l); } n(u, "_throw"), o(void 0); }); }; } n(M4, "_asyncToGenerator"); var Dh = $t(), jG = hn(), R4 = Wt(), qG = R4.erase, ef = R4.cursor, vh = ls(), Bb = vh.style, Nb = vh.clear, UG = vh.lines, $G = vh.figures, Mb = class extends jG { static { n(this, "TextPrompt"); } constructor(t = {}) { super(t), this.transform = Bb.render(t.style), this.scale = this.transform.scale, this.msg = t.message, this.initial = t.initial || "", this.validator = t.validate || (() => !0), this.value = "", this.errorMsg = t.error || "Please Enter A Valid Value", this.cursor = +!!this. initial, this.cursorOffset = 0, this.clear = Nb("", this.out.columns), this.render(); } set value(t) { !t && this.initial ? (this.placeholder = !0, this.rendered = Dh.gray(this.transform.render(this.initial))) : (this.placeholder = !1, this. rendered = this.transform.render(t)), this._value = t, this.fire(); } get value() { return this._value; } reset() { this.value = "", this.cursor = +!!this.initial, this.cursorOffset = 0, this.fire(), this.render(); } exit() { this.abort(); } abort() { this.value = this.value || this.initial, this.done = this.aborted = !0, this.error = !1, this.red = !1, this.fire(), this.render(), this. out.write(` `), this.close(); } validate() { var t = this; return M4(function* () { let r = yield t.validator(t.value); typeof r == "string" && (t.errorMsg = r, r = !1), t.error = !r; })(); } submit() { var t = this; return M4(function* () { if (t.value = t.value || t.initial, t.cursorOffset = 0, t.cursor = t.rendered.length, yield t.validate(), t.error) { t.red = !0, t.fire(), t.render(); return; } t.done = !0, t.aborted = !1, t.fire(), t.render(), t.out.write(` `), t.close(); })(); } next() { if (!this.placeholder) return this.bell(); this.value = this.initial, this.cursor = this.rendered.length, this.fire(), this.render(); } moveCursor(t) { this.placeholder || (this.cursor = this.cursor + t, this.cursorOffset += t); } _(t, r) { let i = this.value.slice(0, this.cursor), s = this.value.slice(this.cursor); this.value = `${i}${t}${s}`, this.red = !1, this.cursor = this.placeholder ? 0 : i.length + 1, this.render(); } delete() { if (this.isCursorAtStart()) return this.bell(); let t = this.value.slice(0, this.cursor - 1), r = this.value.slice(this.cursor); this.value = `${t}${r}`, this.red = !1, this.isCursorAtStart() ? this.cursorOffset = 0 : (this.cursorOffset++, this.moveCursor(-1)), this. render(); } deleteForward() { if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell(); let t = this.value.slice(0, this.cursor), r = this.value.slice(this.cursor + 1); this.value = `${t}${r}`, this.red = !1, this.isCursorAtEnd() ? this.cursorOffset = 0 : this.cursorOffset++, this.render(); } first() { this.cursor = 0, this.render(); } last() { this.cursor = this.value.length, this.render(); } left() { if (this.cursor <= 0 || this.placeholder) return this.bell(); this.moveCursor(-1), this.render(); } right() { if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell(); this.moveCursor(1), this.render(); } isCursorAtStart() { return this.cursor === 0 || this.placeholder && this.cursor === 1; } isCursorAtEnd() { return this.cursor === this.rendered.length || this.placeholder && this.cursor === this.rendered.length + 1; } render() { this.closed || (this.firstRender || (this.outputError && this.out.write(ef.down(UG(this.outputError, this.out.columns) - 1) + Nb(this. outputError, this.out.columns)), this.out.write(Nb(this.outputText, this.out.columns))), super.render(), this.outputError = "", this.outputText = [Bb.symbol(this.done, this.aborted), Dh.bold(this.msg), Bb.delimiter(this.done), this.red ? Dh.red(this.rendered) : this.rendered].join( " "), this.error && (this.outputError += this.errorMsg.split(` `).reduce((t, r, i) => t + ` ${i ? " " : $G.pointerSmall} ${Dh.red().italic(r)}`, "")), this.out.write(qG.line + ef.to(0) + this.outputText + ef.save + this.outputError + ef.restore + ef.move(this.cursorOffset, 0))); } }; L4.exports = Mb; }); // ../node_modules/prompts/dist/elements/select.js var V4 = E((ket, $4) => { "use strict"; var mn = $t(), VG = hn(), tf = ls(), q4 = tf.style, U4 = tf.clear, xh = tf.figures, WG = tf.wrap, HG = tf.entriesToDisplay, KG = Wt(), zG = KG. cursor, Rb = class extends VG { static { n(this, "SelectPrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.hint = t.hint || "- Use arrow-keys. Return to submit.", this.warn = t.warn || "- This option is d\ isabled", this.cursor = t.initial || 0, this.choices = t.choices.map((r, i) => (typeof r == "string" && (r = { title: r, value: i }), { title: r && (r.title || r.value || r), value: r && (r.value === void 0 ? i : r.value), description: r && r.description, selected: r && r.selected, disabled: r && r.disabled })), this.optionsPerPage = t.optionsPerPage || 10, this.value = (this.choices[this.cursor] || {}).value, this.clear = U4("", this.out. columns), this.render(); } moveCursor(t) { this.cursor = t, this.value = this.choices[t].value, this.fire(); } reset() { this.moveCursor(0), this.fire(), this.render(); } exit() { this.abort(); } abort() { this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(` `), this.close(); } submit() { this.selection.disabled ? this.bell() : (this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close()); } first() { this.moveCursor(0), this.render(); } last() { this.moveCursor(this.choices.length - 1), this.render(); } up() { this.cursor === 0 ? this.moveCursor(this.choices.length - 1) : this.moveCursor(this.cursor - 1), this.render(); } down() { this.cursor === this.choices.length - 1 ? this.moveCursor(0) : this.moveCursor(this.cursor + 1), this.render(); } next() { this.moveCursor((this.cursor + 1) % this.choices.length), this.render(); } _(t, r) { if (t === " ") return this.submit(); } get selection() { return this.choices[this.cursor]; } render() { if (this.closed) return; this.firstRender ? this.out.write(zG.hide) : this.out.write(U4(this.outputText, this.out.columns)), super.render(); let t = HG(this.cursor, this.choices.length, this.optionsPerPage), r = t.startIndex, i = t.endIndex; if (this.outputText = [q4.symbol(this.done, this.aborted), mn.bold(this.msg), q4.delimiter(!1), this.done ? this.selection.title : this. selection.disabled ? mn.yellow(this.warn) : mn.gray(this.hint)].join(" "), !this.done) { this.outputText += ` `; for (let s = r; s < i; s++) { let a, o, u = "", l = this.choices[s]; s === r && r > 0 ? o = xh.arrowUp : s === i - 1 && i < this.choices.length ? o = xh.arrowDown : o = " ", l.disabled ? (a = this.cursor === s ? mn.gray().underline(l.title) : mn.strikethrough().gray(l.title), o = (this.cursor === s ? mn.bold().gray(xh.pointer) + " " : "\ ") + o) : (a = this.cursor === s ? mn.cyan().underline(l.title) : l.title, o = (this.cursor === s ? mn.cyan(xh.pointer) + " " : " ") + o, l.description && this.cursor === s && (u = ` - ${l.description}`, (o.length + a.length + u.length >= this.out.columns || l.description. split(/\r?\n/).length > 1) && (u = ` ` + WG(l.description, { margin: 3, width: this.out.columns })))), this.outputText += `${o} ${a}${mn.gray(u)} `; } } this.out.write(this.outputText); } }; $4.exports = Rb; }); // ../node_modules/prompts/dist/elements/toggle.js var X4 = E((Net, J4) => { "use strict"; var Eh = $t(), JG = hn(), K4 = ls(), W4 = K4.style, XG = K4.clear, z4 = Wt(), H4 = z4.cursor, YG = z4.erase, Lb = class extends JG { static { n(this, "TogglePrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.value = !!t.initial, this.active = t.active || "on", this.inactive = t.inactive || "off", this.initialValue = this.value, this.render(); } reset() { this.value = this.initialValue, this.fire(), this.render(); } exit() { this.abort(); } abort() { this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(` `), this.close(); } submit() { this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } deactivate() { if (this.value === !1) return this.bell(); this.value = !1, this.render(); } activate() { if (this.value === !0) return this.bell(); this.value = !0, this.render(); } delete() { this.deactivate(); } left() { this.deactivate(); } right() { this.activate(); } down() { this.deactivate(); } up() { this.activate(); } next() { this.value = !this.value, this.fire(), this.render(); } _(t, r) { if (t === " ") this.value = !this.value; else if (t === "1") this.value = !0; else if (t === "0") this.value = !1; else return this.bell(); this.render(); } render() { this.closed || (this.firstRender ? this.out.write(H4.hide) : this.out.write(XG(this.outputText, this.out.columns)), super.render(), this. outputText = [W4.symbol(this.done, this.aborted), Eh.bold(this.msg), W4.delimiter(this.done), this.value ? this.inactive : Eh.cyan().underline( this.inactive), Eh.gray("/"), this.value ? Eh.cyan().underline(this.active) : this.active].join(" "), this.out.write(YG.line + H4.to(0) + this.outputText)); } }; J4.exports = Lb; }); // ../node_modules/prompts/dist/dateparts/datepart.js var Ns = E((Ret, Y4) => { "use strict"; var jb = class e { static { n(this, "DatePart"); } constructor({ token: t, date: r, parts: i, locales: s }) { this.token = t, this.date = r || /* @__PURE__ */ new Date(), this.parts = i || [this], this.locales = s || {}; } up() { } down() { } next() { let t = this.parts.indexOf(this); return this.parts.find((r, i) => i > t && r instanceof e); } setTo(t) { } prev() { let t = [].concat(this.parts).reverse(), r = t.indexOf(this); return t.find((i, s) => s > r && i instanceof e); } toString() { return String(this.date); } }; Y4.exports = jb; }); // ../node_modules/prompts/dist/dateparts/meridiem.js var Z4 = E((jet, G4) => { "use strict"; var GG = Ns(), qb = class extends GG { static { n(this, "Meridiem"); } constructor(t = {}) { super(t); } up() { this.date.setHours((this.date.getHours() + 12) % 24); } down() { this.up(); } toString() { let t = this.date.getHours() > 12 ? "pm" : "am"; return /\A/.test(this.token) ? t.toUpperCase() : t; } }; G4.exports = qb; }); // ../node_modules/prompts/dist/dateparts/day.js var e8 = E((Uet, Q4) => { "use strict"; var ZG = Ns(), QG = /* @__PURE__ */ n((e) => (e = e % 10, e === 1 ? "st" : e === 2 ? "nd" : e === 3 ? "rd" : "th"), "pos"), Ub = class extends ZG { static { n(this, "Day"); } constructor(t = {}) { super(t); } up() { this.date.setDate(this.date.getDate() + 1); } down() { this.date.setDate(this.date.getDate() - 1); } setTo(t) { this.date.setDate(parseInt(t.substr(-2))); } toString() { let t = this.date.getDate(), r = this.date.getDay(); return this.token === "DD" ? String(t).padStart(2, "0") : this.token === "Do" ? t + QG(t) : this.token === "d" ? r + 1 : this.token === "ddd" ? this.locales.weekdaysShort[r] : this.token === "dddd" ? this.locales.weekdays[r] : t; } }; Q4.exports = Ub; }); // ../node_modules/prompts/dist/dateparts/hours.js var r8 = E((Vet, t8) => { "use strict"; var eZ = Ns(), $b = class extends eZ { static { n(this, "Hours"); } constructor(t = {}) { super(t); } up() { this.date.setHours(this.date.getHours() + 1); } down() { this.date.setHours(this.date.getHours() - 1); } setTo(t) { this.date.setHours(parseInt(t.substr(-2))); } toString() { let t = this.date.getHours(); return /h/.test(this.token) && (t = t % 12 || 12), this.token.length > 1 ? String(t).padStart(2, "0") : t; } }; t8.exports = $b; }); // ../node_modules/prompts/dist/dateparts/milliseconds.js var s8 = E((Het, i8) => { "use strict"; var tZ = Ns(), Vb = class extends tZ { static { n(this, "Milliseconds"); } constructor(t = {}) { super(t); } up() { this.date.setMilliseconds(this.date.getMilliseconds() + 1); } down() { this.date.setMilliseconds(this.date.getMilliseconds() - 1); } setTo(t) { this.date.setMilliseconds(parseInt(t.substr(-this.token.length))); } toString() { return String(this.date.getMilliseconds()).padStart(4, "0").substr(0, this.token.length); } }; i8.exports = Vb; }); // ../node_modules/prompts/dist/dateparts/minutes.js var a8 = E((zet, n8) => { "use strict"; var rZ = Ns(), Wb = class extends rZ { static { n(this, "Minutes"); } constructor(t = {}) { super(t); } up() { this.date.setMinutes(this.date.getMinutes() + 1); } down() { this.date.setMinutes(this.date.getMinutes() - 1); } setTo(t) { this.date.setMinutes(parseInt(t.substr(-2))); } toString() { let t = this.date.getMinutes(); return this.token.length > 1 ? String(t).padStart(2, "0") : t; } }; n8.exports = Wb; }); // ../node_modules/prompts/dist/dateparts/month.js var u8 = E((Xet, o8) => { "use strict"; var iZ = Ns(), Hb = class extends iZ { static { n(this, "Month"); } constructor(t = {}) { super(t); } up() { this.date.setMonth(this.date.getMonth() + 1); } down() { this.date.setMonth(this.date.getMonth() - 1); } setTo(t) { t = parseInt(t.substr(-2)) - 1, this.date.setMonth(t < 0 ? 0 : t); } toString() { let t = this.date.getMonth(), r = this.token.length; return r === 2 ? String(t + 1).padStart(2, "0") : r === 3 ? this.locales.monthsShort[t] : r === 4 ? this.locales.months[t] : String(t + 1); } }; o8.exports = Hb; }); // ../node_modules/prompts/dist/dateparts/seconds.js var c8 = E((Get, l8) => { "use strict"; var sZ = Ns(), Kb = class extends sZ { static { n(this, "Seconds"); } constructor(t = {}) { super(t); } up() { this.date.setSeconds(this.date.getSeconds() + 1); } down() { this.date.setSeconds(this.date.getSeconds() - 1); } setTo(t) { this.date.setSeconds(parseInt(t.substr(-2))); } toString() { let t = this.date.getSeconds(); return this.token.length > 1 ? String(t).padStart(2, "0") : t; } }; l8.exports = Kb; }); // ../node_modules/prompts/dist/dateparts/year.js var d8 = E((Qet, f8) => { "use strict"; var nZ = Ns(), zb = class extends nZ { static { n(this, "Year"); } constructor(t = {}) { super(t); } up() { this.date.setFullYear(this.date.getFullYear() + 1); } down() { this.date.setFullYear(this.date.getFullYear() - 1); } setTo(t) { this.date.setFullYear(t.substr(-4)); } toString() { let t = String(this.date.getFullYear()).padStart(4, "0"); return this.token.length === 2 ? t.substr(-2) : t; } }; f8.exports = zb; }); // ../node_modules/prompts/dist/dateparts/index.js var h8 = E((ttt, p8) => { "use strict"; p8.exports = { DatePart: Ns(), Meridiem: Z4(), Day: e8(), Hours: r8(), Milliseconds: s8(), Minutes: a8(), Month: u8(), Seconds: c8(), Year: d8() }; }); // ../node_modules/prompts/dist/elements/date.js var T8 = E((rtt, S8) => { "use strict"; function m8(e, t, r, i, s, a, o) { try { var u = e[a](o), l = u.value; } catch (c) { r(c); return; } u.done ? t(l) : Promise.resolve(l).then(i, s); } n(m8, "asyncGeneratorStep"); function y8(e) { return function() { var t = this, r = arguments; return new Promise(function(i, s) { var a = e.apply(t, r); function o(l) { m8(a, i, s, o, u, "next", l); } n(o, "_next"); function u(l) { m8(a, i, s, o, u, "throw", l); } n(u, "_throw"), o(void 0); }); }; } n(y8, "_asyncToGenerator"); var Jb = $t(), aZ = hn(), Yb = ls(), g8 = Yb.style, b8 = Yb.clear, oZ = Yb.figures, E8 = Wt(), uZ = E8.erase, D8 = E8.cursor, yn = h8(), v8 = yn. DatePart, lZ = yn.Meridiem, cZ = yn.Day, fZ = yn.Hours, dZ = yn.Milliseconds, pZ = yn.Minutes, hZ = yn.Month, mZ = yn.Seconds, yZ = yn.Year, gZ = /\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g, x8 = { 1: ({ token: e }) => e.replace(/\\(.)/g, "$1"), 2: (e) => new cZ(e), // Day // TODO 3: (e) => new hZ(e), // Month 4: (e) => new yZ(e), // Year 5: (e) => new lZ(e), // AM/PM // TODO (special) 6: (e) => new fZ(e), // Hours 7: (e) => new pZ(e), // Minutes 8: (e) => new mZ(e), // Seconds 9: (e) => new dZ(e) // Fractional seconds }, bZ = { months: "January,February,March,April,May,June,July,August,September,October,November,December".split(","), monthsShort: "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","), weekdays: "Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","), weekdaysShort: "Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",") }, Xb = class extends aZ { static { n(this, "DatePrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.cursor = 0, this.typed = "", this.locales = Object.assign(bZ, t.locales), this._date = t.initial || /* @__PURE__ */ new Date(), this.errorMsg = t.error || "Please Enter A Valid Value", this.validator = t.validate || (() => !0), this.mask = t.mask || "YYYY-MM-DD HH:mm:ss", this.clear = b8("", this.out.columns), this.render(); } get value() { return this.date; } get date() { return this._date; } set date(t) { t && this._date.setTime(t.getTime()); } set mask(t) { let r; for (this.parts = []; r = gZ.exec(t); ) { let s = r.shift(), a = r.findIndex((o) => o != null); this.parts.push(a in x8 ? x8[a]({ token: r[a] || s, date: this.date, parts: this.parts, locales: this.locales }) : r[a] || s); } let i = this.parts.reduce((s, a) => (typeof a == "string" && typeof s[s.length - 1] == "string" ? s[s.length - 1] += a : s.push(a), s), []); this.parts.splice(0), this.parts.push(...i), this.reset(); } moveCursor(t) { this.typed = "", this.cursor = t, this.fire(); } reset() { this.moveCursor(this.parts.findIndex((t) => t instanceof v8)), this.fire(), this.render(); } exit() { this.abort(); } abort() { this.done = this.aborted = !0, this.error = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } validate() { var t = this; return y8(function* () { let r = yield t.validator(t.value); typeof r == "string" && (t.errorMsg = r, r = !1), t.error = !r; })(); } submit() { var t = this; return y8(function* () { if (yield t.validate(), t.error) { t.color = "red", t.fire(), t.render(); return; } t.done = !0, t.aborted = !1, t.fire(), t.render(), t.out.write(` `), t.close(); })(); } up() { this.typed = "", this.parts[this.cursor].up(), this.render(); } down() { this.typed = "", this.parts[this.cursor].down(), this.render(); } left() { let t = this.parts[this.cursor].prev(); if (t == null) return this.bell(); this.moveCursor(this.parts.indexOf(t)), this.render(); } right() { let t = this.parts[this.cursor].next(); if (t == null) return this.bell(); this.moveCursor(this.parts.indexOf(t)), this.render(); } next() { let t = this.parts[this.cursor].next(); this.moveCursor(t ? this.parts.indexOf(t) : this.parts.findIndex((r) => r instanceof v8)), this.render(); } _(t) { /\d/.test(t) && (this.typed += t, this.parts[this.cursor].setTo(this.typed), this.render()); } render() { this.closed || (this.firstRender ? this.out.write(D8.hide) : this.out.write(b8(this.outputText, this.out.columns)), super.render(), this. outputText = [g8.symbol(this.done, this.aborted), Jb.bold(this.msg), g8.delimiter(!1), this.parts.reduce((t, r, i) => t.concat(i === this. cursor && !this.done ? Jb.cyan().underline(r.toString()) : r), []).join("")].join(" "), this.error && (this.outputText += this.errorMsg. split(` `).reduce((t, r, i) => t + ` ${i ? " " : oZ.pointerSmall} ${Jb.red().italic(r)}`, "")), this.out.write(uZ.line + D8.to(0) + this.outputText)); } }; S8.exports = Xb; }); // ../node_modules/prompts/dist/elements/number.js var I8 = E((stt, F8) => { "use strict"; function C8(e, t, r, i, s, a, o) { try { var u = e[a](o), l = u.value; } catch (c) { r(c); return; } u.done ? t(l) : Promise.resolve(l).then(i, s); } n(C8, "asyncGeneratorStep"); function w8(e) { return function() { var t = this, r = arguments; return new Promise(function(i, s) { var a = e.apply(t, r); function o(l) { C8(a, i, s, o, u, "next", l); } n(o, "_next"); function u(l) { C8(a, i, s, o, u, "throw", l); } n(u, "_throw"), o(void 0); }); }; } n(w8, "_asyncToGenerator"); var Sh = $t(), DZ = hn(), P8 = Wt(), Th = P8.cursor, vZ = P8.erase, Ch = ls(), Gb = Ch.style, xZ = Ch.figures, A8 = Ch.clear, EZ = Ch.lines, SZ = /[0-9]/, Zb = /* @__PURE__ */ n((e) => e !== void 0, "isDef"), _8 = /* @__PURE__ */ n((e, t) => { let r = Math.pow(10, t); return Math.round(e * r) / r; }, "round"), Qb = class extends DZ { static { n(this, "NumberPrompt"); } constructor(t = {}) { super(t), this.transform = Gb.render(t.style), this.msg = t.message, this.initial = Zb(t.initial) ? t.initial : "", this.float = !!t.float, this.round = t.round || 2, this.inc = t.increment || 1, this.min = Zb(t.min) ? t.min : -1 / 0, this.max = Zb(t.max) ? t.max : 1 / 0, this. errorMsg = t.error || "Please Enter A Valid Value", this.validator = t.validate || (() => !0), this.color = "cyan", this.value = "", this. typed = "", this.lastHit = 0, this.render(); } set value(t) { !t && t !== 0 ? (this.placeholder = !0, this.rendered = Sh.gray(this.transform.render(`${this.initial}`)), this._value = "") : (this.placeholder = !1, this.rendered = this.transform.render(`${_8(t, this.round)}`), this._value = _8(t, this.round)), this.fire(); } get value() { return this._value; } parse(t) { return this.float ? parseFloat(t) : parseInt(t); } valid(t) { return t === "-" || t === "." && this.float || SZ.test(t); } reset() { this.typed = "", this.value = "", this.fire(), this.render(); } exit() { this.abort(); } abort() { let t = this.value; this.value = t !== "" ? t : this.initial, this.done = this.aborted = !0, this.error = !1, this.fire(), this.render(), this.out.write(`\ `), this.close(); } validate() { var t = this; return w8(function* () { let r = yield t.validator(t.value); typeof r == "string" && (t.errorMsg = r, r = !1), t.error = !r; })(); } submit() { var t = this; return w8(function* () { if (yield t.validate(), t.error) { t.color = "red", t.fire(), t.render(); return; } let r = t.value; t.value = r !== "" ? r : t.initial, t.done = !0, t.aborted = !1, t.error = !1, t.fire(), t.render(), t.out.write(` `), t.close(); })(); } up() { if (this.typed = "", this.value === "" && (this.value = this.min - this.inc), this.value >= this.max) return this.bell(); this.value += this.inc, this.color = "cyan", this.fire(), this.render(); } down() { if (this.typed = "", this.value === "" && (this.value = this.min + this.inc), this.value <= this.min) return this.bell(); this.value -= this.inc, this.color = "cyan", this.fire(), this.render(); } delete() { let t = this.value.toString(); if (t.length === 0) return this.bell(); this.value = this.parse(t = t.slice(0, -1)) || "", this.value !== "" && this.value < this.min && (this.value = this.min), this.color = "cyan", this.fire(), this.render(); } next() { this.value = this.initial, this.fire(), this.render(); } _(t, r) { if (!this.valid(t)) return this.bell(); let i = Date.now(); if (i - this.lastHit > 1e3 && (this.typed = ""), this.typed += t, this.lastHit = i, this.color = "cyan", t === ".") return this.fire(); this.value = Math.min(this.parse(this.typed), this.max), this.value > this.max && (this.value = this.max), this.value < this.min && (this. value = this.min), this.fire(), this.render(); } render() { this.closed || (this.firstRender || (this.outputError && this.out.write(Th.down(EZ(this.outputError, this.out.columns) - 1) + A8(this. outputError, this.out.columns)), this.out.write(A8(this.outputText, this.out.columns))), super.render(), this.outputError = "", this.outputText = [Gb.symbol(this.done, this.aborted), Sh.bold(this.msg), Gb.delimiter(this.done), !this.done || !this.done && !this.placeholder ? Sh[this. color]().underline(this.rendered) : this.rendered].join(" "), this.error && (this.outputError += this.errorMsg.split(` `).reduce((t, r, i) => t + ` ${i ? " " : xZ.pointerSmall} ${Sh.red().italic(r)}`, "")), this.out.write(vZ.line + Th.to(0) + this.outputText + Th.save + this.outputError + Th.restore)); } }; F8.exports = Qb; }); // ../node_modules/prompts/dist/elements/multiselect.js var t2 = E((att, B8) => { "use strict"; var Ms = $t(), TZ = Wt(), CZ = TZ.cursor, wZ = hn(), rf = ls(), O8 = rf.clear, fa = rf.figures, k8 = rf.style, AZ = rf.wrap, _Z = rf.entriesToDisplay, e2 = class extends wZ { static { n(this, "MultiselectPrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.cursor = t.cursor || 0, this.scrollIndex = t.cursor || 0, this.hint = t.hint || "", this.warn = t. warn || "- This option is disabled -", this.minSelected = t.min, this.showMinError = !1, this.maxChoices = t.max, this.instructions = t. instructions, this.optionsPerPage = t.optionsPerPage || 10, this.value = t.choices.map((r, i) => (typeof r == "string" && (r = { title: r, value: i }), { title: r && (r.title || r.value || r), description: r && r.description, value: r && (r.value === void 0 ? i : r.value), selected: r && r.selected, disabled: r && r.disabled })), this.clear = O8("", this.out.columns), t.overrideRender || this.render(); } reset() { this.value.map((t) => !t.selected), this.cursor = 0, this.fire(), this.render(); } selected() { return this.value.filter((t) => t.selected); } exit() { this.abort(); } abort() { this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(` `), this.close(); } submit() { let t = this.value.filter((r) => r.selected); this.minSelected && t.length < this.minSelected ? (this.showMinError = !0, this.render()) : (this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close()); } first() { this.cursor = 0, this.render(); } last() { this.cursor = this.value.length - 1, this.render(); } next() { this.cursor = (this.cursor + 1) % this.value.length, this.render(); } up() { this.cursor === 0 ? this.cursor = this.value.length - 1 : this.cursor--, this.render(); } down() { this.cursor === this.value.length - 1 ? this.cursor = 0 : this.cursor++, this.render(); } left() { this.value[this.cursor].selected = !1, this.render(); } right() { if (this.value.filter((t) => t.selected).length >= this.maxChoices) return this.bell(); this.value[this.cursor].selected = !0, this.render(); } handleSpaceToggle() { let t = this.value[this.cursor]; if (t.selected) t.selected = !1, this.render(); else { if (t.disabled || this.value.filter((r) => r.selected).length >= this.maxChoices) return this.bell(); t.selected = !0, this.render(); } } toggleAll() { if (this.maxChoices !== void 0 || this.value[this.cursor].disabled) return this.bell(); let t = !this.value[this.cursor].selected; this.value.filter((r) => !r.disabled).forEach((r) => r.selected = t), this.render(); } _(t, r) { if (t === " ") this.handleSpaceToggle(); else if (t === "a") this.toggleAll(); else return this.bell(); } renderInstructions() { return this.instructions === void 0 || this.instructions ? typeof this.instructions == "string" ? this.instructions : ` Instructions: ${fa.arrowUp}/${fa.arrowDown}: Highlight option ${fa.arrowLeft}/${fa.arrowRight}/[space]: Toggle selection ` + (this.maxChoices === void 0 ? ` a: Toggle all ` : "") + " enter/return: Complete answer" : ""; } renderOption(t, r, i, s) { let a = (r.selected ? Ms.green(fa.radioOn) : fa.radioOff) + " " + s + " ", o, u; return r.disabled ? o = t === i ? Ms.gray().underline(r.title) : Ms.strikethrough().gray(r.title) : (o = t === i ? Ms.cyan().underline( r.title) : r.title, t === i && r.description && (u = ` - ${r.description}`, (a.length + o.length + u.length >= this.out.columns || r.description. split(/\r?\n/).length > 1) && (u = ` ` + AZ(r.description, { margin: a.length, width: this.out.columns })))), a + o + Ms.gray(u || ""); } // shared with autocompleteMultiselect paginateOptions(t) { if (t.length === 0) return Ms.red("No matches for this query."); let r = _Z(this.cursor, t.length, this.optionsPerPage), i = r.startIndex, s = r.endIndex, a, o = []; for (let u = i; u < s; u++) u === i && i > 0 ? a = fa.arrowUp : u === s - 1 && s < t.length ? a = fa.arrowDown : a = " ", o.push(this.renderOption(this.cursor, t[u], u, a)); return ` ` + o.join(` `); } // shared with autocomleteMultiselect renderOptions(t) { return this.done ? "" : this.paginateOptions(t); } renderDoneOrInstructions() { if (this.done) return this.value.filter((r) => r.selected).map((r) => r.title).join(", "); let t = [Ms.gray(this.hint), this.renderInstructions()]; return this.value[this.cursor].disabled && t.push(Ms.yellow(this.warn)), t.join(" "); } render() { if (this.closed) return; this.firstRender && this.out.write(CZ.hide), super.render(); let t = [k8.symbol(this.done, this.aborted), Ms.bold(this.msg), k8.delimiter(!1), this.renderDoneOrInstructions()].join(" "); this.showMinError && (t += Ms.red(`You must select a minimum of ${this.minSelected} choices.`), this.showMinError = !1), t += this.renderOptions( this.value), this.out.write(this.clear + t), this.clear = O8(t, this.out.columns); } }; B8.exports = e2; }); // ../node_modules/prompts/dist/elements/autocomplete.js var U8 = E((utt, q8) => { "use strict"; function N8(e, t, r, i, s, a, o) { try { var u = e[a](o), l = u.value; } catch (c) { r(c); return; } u.done ? t(l) : Promise.resolve(l).then(i, s); } n(N8, "asyncGeneratorStep"); function PZ(e) { return function() { var t = this, r = arguments; return new Promise(function(i, s) { var a = e.apply(t, r); function o(l) { N8(a, i, s, o, u, "next", l); } n(o, "_next"); function u(l) { N8(a, i, s, o, u, "throw", l); } n(u, "_throw"), o(void 0); }); }; } n(PZ, "_asyncToGenerator"); var sf = $t(), FZ = hn(), j8 = Wt(), IZ = j8.erase, M8 = j8.cursor, nf = ls(), r2 = nf.style, R8 = nf.clear, i2 = nf.figures, OZ = nf.wrap, kZ = nf.entriesToDisplay, L8 = /* @__PURE__ */ n((e, t) => e[t] && (e[t].value || e[t].title || e[t]), "getVal"), BZ = /* @__PURE__ */ n((e, t) => e[t] && (e[t].title || e[t].value || e[t]), "getTitle"), NZ = /* @__PURE__ */ n((e, t) => { let r = e.findIndex((i) => i.value === t || i.title === t); return r > -1 ? r : void 0; }, "getIndex"), s2 = class extends FZ { static { n(this, "AutocompletePrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.suggest = t.suggest, this.choices = t.choices, this.initial = typeof t.initial == "number" ? t.initial : NZ(t.choices, t.initial), this.select = this.initial || t.cursor || 0, this.i18n = { noMatches: t.noMatches || "no matches found" }, this.fallback = t.fallback || this.initial, this.clearFirst = t.clearFirst || !1, this.suggestions = [], this.input = "", this.limit = t.limit || 10, this.cursor = 0, this.transform = r2.render(t.style), this.scale = this.transform.scale, this.render = this.render.bind( this), this.complete = this.complete.bind(this), this.clear = R8("", this.out.columns), this.complete(this.render), this.render(); } set fallback(t) { this._fb = Number.isSafeInteger(parseInt(t)) ? parseInt(t) : t; } get fallback() { let t; return typeof this._fb == "number" ? t = this.choices[this._fb] : typeof this._fb == "string" && (t = { title: this._fb }), t || this._fb || { title: this.i18n.noMatches }; } moveSelect(t) { this.select = t, this.suggestions.length > 0 ? this.value = L8(this.suggestions, t) : this.value = this.fallback.value, this.fire(); } complete(t) { var r = this; return PZ(function* () { let i = r.completing = r.suggest(r.input, r.choices), s = yield i; if (r.completing !== i) return; r.suggestions = s.map((o, u, l) => ({ title: BZ(l, u), value: L8(l, u), description: o.description })), r.completing = !1; let a = Math.max(s.length - 1, 0); r.moveSelect(Math.min(a, r.select)), t && t(); })(); } reset() { this.input = "", this.complete(() => { this.moveSelect(this.initial !== void 0 ? this.initial : 0), this.render(); }), this.render(); } exit() { this.clearFirst && this.input.length > 0 ? this.reset() : (this.done = this.exited = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close()); } abort() { this.done = this.aborted = !0, this.exited = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } submit() { this.done = !0, this.aborted = this.exited = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } _(t, r) { let i = this.input.slice(0, this.cursor), s = this.input.slice(this.cursor); this.input = `${i}${t}${s}`, this.cursor = i.length + 1, this.complete(this.render), this.render(); } delete() { if (this.cursor === 0) return this.bell(); let t = this.input.slice(0, this.cursor - 1), r = this.input.slice(this.cursor); this.input = `${t}${r}`, this.complete(this.render), this.cursor = this.cursor - 1, this.render(); } deleteForward() { if (this.cursor * this.scale >= this.rendered.length) return this.bell(); let t = this.input.slice(0, this.cursor), r = this.input.slice(this.cursor + 1); this.input = `${t}${r}`, this.complete(this.render), this.render(); } first() { this.moveSelect(0), this.render(); } last() { this.moveSelect(this.suggestions.length - 1), this.render(); } up() { this.select === 0 ? this.moveSelect(this.suggestions.length - 1) : this.moveSelect(this.select - 1), this.render(); } down() { this.select === this.suggestions.length - 1 ? this.moveSelect(0) : this.moveSelect(this.select + 1), this.render(); } next() { this.select === this.suggestions.length - 1 ? this.moveSelect(0) : this.moveSelect(this.select + 1), this.render(); } nextPage() { this.moveSelect(Math.min(this.select + this.limit, this.suggestions.length - 1)), this.render(); } prevPage() { this.moveSelect(Math.max(this.select - this.limit, 0)), this.render(); } left() { if (this.cursor <= 0) return this.bell(); this.cursor = this.cursor - 1, this.render(); } right() { if (this.cursor * this.scale >= this.rendered.length) return this.bell(); this.cursor = this.cursor + 1, this.render(); } renderOption(t, r, i, s) { let a, o = i ? i2.arrowUp : s ? i2.arrowDown : " ", u = r ? sf.cyan().underline(t.title) : t.title; return o = (r ? sf.cyan(i2.pointer) + " " : " ") + o, t.description && (a = ` - ${t.description}`, (o.length + u.length + a.length >= this.out.columns || t.description.split(/\r?\n/).length > 1) && (a = ` ` + OZ(t.description, { margin: 3, width: this.out.columns }))), o + " " + u + sf.gray(a || ""); } render() { if (this.closed) return; this.firstRender ? this.out.write(M8.hide) : this.out.write(R8(this.outputText, this.out.columns)), super.render(); let t = kZ(this.select, this.choices.length, this.limit), r = t.startIndex, i = t.endIndex; if (this.outputText = [r2.symbol(this.done, this.aborted, this.exited), sf.bold(this.msg), r2.delimiter(this.completing), this.done && this.suggestions[this.select] ? this.suggestions[this.select].title : this.rendered = this.transform.render(this.input)].join(" "), !this. done) { let s = this.suggestions.slice(r, i).map((a, o) => this.renderOption(a, this.select === o + r, o === 0 && r > 0, o + r === i - 1 && i < this.choices.length)).join(` `); this.outputText += ` ` + (s || sf.gray(this.fallback.title)); } this.out.write(IZ.line + M8.to(0) + this.outputText); } }; q8.exports = s2; }); // ../node_modules/prompts/dist/elements/autocompleteMultiselect.js var H8 = E((ctt, W8) => { "use strict"; var gn = $t(), MZ = Wt(), RZ = MZ.cursor, LZ = t2(), a2 = ls(), $8 = a2.clear, V8 = a2.style, zu = a2.figures, n2 = class extends LZ { static { n(this, "AutocompleteMultiselectPrompt"); } constructor(t = {}) { t.overrideRender = !0, super(t), this.inputValue = "", this.clear = $8("", this.out.columns), this.filteredOptions = this.value, this. render(); } last() { this.cursor = this.filteredOptions.length - 1, this.render(); } next() { this.cursor = (this.cursor + 1) % this.filteredOptions.length, this.render(); } up() { this.cursor === 0 ? this.cursor = this.filteredOptions.length - 1 : this.cursor--, this.render(); } down() { this.cursor === this.filteredOptions.length - 1 ? this.cursor = 0 : this.cursor++, this.render(); } left() { this.filteredOptions[this.cursor].selected = !1, this.render(); } right() { if (this.value.filter((t) => t.selected).length >= this.maxChoices) return this.bell(); this.filteredOptions[this.cursor].selected = !0, this.render(); } delete() { this.inputValue.length && (this.inputValue = this.inputValue.substr(0, this.inputValue.length - 1), this.updateFilteredOptions()); } updateFilteredOptions() { let t = this.filteredOptions[this.cursor]; this.filteredOptions = this.value.filter((i) => this.inputValue ? !!(typeof i.title == "string" && i.title.toLowerCase().includes(this. inputValue.toLowerCase()) || typeof i.value == "string" && i.value.toLowerCase().includes(this.inputValue.toLowerCase())) : !0); let r = this.filteredOptions.findIndex((i) => i === t); this.cursor = r < 0 ? 0 : r, this.render(); } handleSpaceToggle() { let t = this.filteredOptions[this.cursor]; if (t.selected) t.selected = !1, this.render(); else { if (t.disabled || this.value.filter((r) => r.selected).length >= this.maxChoices) return this.bell(); t.selected = !0, this.render(); } } handleInputChange(t) { this.inputValue = this.inputValue + t, this.updateFilteredOptions(); } _(t, r) { t === " " ? this.handleSpaceToggle() : this.handleInputChange(t); } renderInstructions() { return this.instructions === void 0 || this.instructions ? typeof this.instructions == "string" ? this.instructions : ` Instructions: ${zu.arrowUp}/${zu.arrowDown}: Highlight option ${zu.arrowLeft}/${zu.arrowRight}/[space]: Toggle selection [a,b,c]/delete: Filter choices enter/return: Complete answer ` : ""; } renderCurrentInput() { return ` Filtered results for: ${this.inputValue ? this.inputValue : gn.gray("Enter something to filter")} `; } renderOption(t, r, i) { let s; return r.disabled ? s = t === i ? gn.gray().underline(r.title) : gn.strikethrough().gray(r.title) : s = t === i ? gn.cyan().underline( r.title) : r.title, (r.selected ? gn.green(zu.radioOn) : zu.radioOff) + " " + s; } renderDoneOrInstructions() { if (this.done) return this.value.filter((r) => r.selected).map((r) => r.title).join(", "); let t = [gn.gray(this.hint), this.renderInstructions(), this.renderCurrentInput()]; return this.filteredOptions.length && this.filteredOptions[this.cursor].disabled && t.push(gn.yellow(this.warn)), t.join(" "); } render() { if (this.closed) return; this.firstRender && this.out.write(RZ.hide), super.render(); let t = [V8.symbol(this.done, this.aborted), gn.bold(this.msg), V8.delimiter(!1), this.renderDoneOrInstructions()].join(" "); this.showMinError && (t += gn.red(`You must select a minimum of ${this.minSelected} choices.`), this.showMinError = !1), t += this.renderOptions( this.filteredOptions), this.out.write(this.clear + t), this.clear = $8(t, this.out.columns); } }; W8.exports = n2; }); // ../node_modules/prompts/dist/elements/confirm.js var Z8 = E((dtt, G8) => { "use strict"; var K8 = $t(), jZ = hn(), X8 = ls(), z8 = X8.style, qZ = X8.clear, Y8 = Wt(), UZ = Y8.erase, J8 = Y8.cursor, o2 = class extends jZ { static { n(this, "ConfirmPrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.value = t.initial, this.initialValue = !!t.initial, this.yesMsg = t.yes || "yes", this.yesOption = t.yesOption || "(Y/n)", this.noMsg = t.no || "no", this.noOption = t.noOption || "(y/N)", this.render(); } reset() { this.value = this.initialValue, this.fire(), this.render(); } exit() { this.abort(); } abort() { this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(` `), this.close(); } submit() { this.value = this.value || !1, this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } _(t, r) { return t.toLowerCase() === "y" ? (this.value = !0, this.submit()) : t.toLowerCase() === "n" ? (this.value = !1, this.submit()) : this. bell(); } render() { this.closed || (this.firstRender ? this.out.write(J8.hide) : this.out.write(qZ(this.outputText, this.out.columns)), super.render(), this. outputText = [z8.symbol(this.done, this.aborted), K8.bold(this.msg), z8.delimiter(this.done), this.done ? this.value ? this.yesMsg : this. noMsg : K8.gray(this.initialValue ? this.yesOption : this.noOption)].join(" "), this.out.write(UZ.line + J8.to(0) + this.outputText)); } }; G8.exports = o2; }); // ../node_modules/prompts/dist/elements/index.js var e6 = E((htt, Q8) => { "use strict"; Q8.exports = { TextPrompt: j4(), SelectPrompt: V4(), TogglePrompt: X4(), DatePrompt: T8(), NumberPrompt: I8(), MultiselectPrompt: t2(), AutocompletePrompt: U8(), AutocompleteMultiselectPrompt: H8(), ConfirmPrompt: Z8() }; }); // ../node_modules/prompts/dist/prompts.js var r6 = E((t6) => { "use strict"; var fi = t6, $Z = e6(), wh = /* @__PURE__ */ n((e) => e, "noop"); function Rs(e, t, r = {}) { return new Promise((i, s) => { let a = new $Z[e](t), o = r.onAbort || wh, u = r.onSubmit || wh, l = r.onExit || wh; a.on("state", t.onState || wh), a.on("submit", (c) => i(u(c))), a.on("exit", (c) => i(l(c))), a.on("abort", (c) => s(o(c))); }); } n(Rs, "toPrompt"); fi.text = (e) => Rs("TextPrompt", e); fi.password = (e) => (e.style = "password", fi.text(e)); fi.invisible = (e) => (e.style = "invisible", fi.text(e)); fi.number = (e) => Rs("NumberPrompt", e); fi.date = (e) => Rs("DatePrompt", e); fi.confirm = (e) => Rs("ConfirmPrompt", e); fi.list = (e) => { let t = e.separator || ","; return Rs("TextPrompt", e, { onSubmit: /* @__PURE__ */ n((r) => r.split(t).map((i) => i.trim()), "onSubmit") }); }; fi.toggle = (e) => Rs("TogglePrompt", e); fi.select = (e) => Rs("SelectPrompt", e); fi.multiselect = (e) => { e.choices = [].concat(e.choices || []); let t = /* @__PURE__ */ n((r) => r.filter((i) => i.selected).map((i) => i.value), "toSelected"); return Rs("MultiselectPrompt", e, { onAbort: t, onSubmit: t }); }; fi.autocompleteMultiselect = (e) => { e.choices = [].concat(e.choices || []); let t = /* @__PURE__ */ n((r) => r.filter((i) => i.selected).map((i) => i.value), "toSelected"); return Rs("AutocompleteMultiselectPrompt", e, { onAbort: t, onSubmit: t }); }; var VZ = /* @__PURE__ */ n((e, t) => Promise.resolve(t.filter((r) => r.title.slice(0, e.length).toLowerCase() === e.toLowerCase())), "byTi\ tle"); fi.autocomplete = (e) => (e.suggest = e.suggest || VZ, e.choices = [].concat(e.choices || []), Rs("AutocompletePrompt", e)); }); // ../node_modules/prompts/dist/index.js var c6 = E((gtt, l6) => { "use strict"; function i6(e, t) { var r = Object.keys(e); if (Object.getOwnPropertySymbols) { var i = Object.getOwnPropertySymbols(e); t && (i = i.filter(function(s) { return Object.getOwnPropertyDescriptor(e, s).enumerable; })), r.push.apply(r, i); } return r; } n(i6, "ownKeys"); function s6(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t] != null ? arguments[t] : {}; t % 2 ? i6(Object(r), !0).forEach(function(i) { WZ(e, i, r[i]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : i6(Object(r)).forEach(function(i) { Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(r, i)); }); } return e; } n(s6, "_objectSpread"); function WZ(e, t, r) { return t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e; } n(WZ, "_defineProperty"); function HZ(e, t) { var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; if (!r) { if (Array.isArray(e) || (r = KZ(e)) || t && e && typeof e.length == "number") { r && (e = r); var i = 0, s = /* @__PURE__ */ n(function() { }, "F"); return { s, n: /* @__PURE__ */ n(function() { return i >= e.length ? { done: !0 } : { done: !1, value: e[i++] }; }, "n"), e: /* @__PURE__ */ n(function(c) { throw c; }, "e"), f: s }; } throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } var a = !0, o = !1, u; return { s: /* @__PURE__ */ n(function() { r = r.call(e); }, "s"), n: /* @__PURE__ */ n(function() { var c = r.next(); return a = c.done, c; }, "n"), e: /* @__PURE__ */ n(function(c) { o = !0, u = c; }, "e"), f: /* @__PURE__ */ n(function() { try { !a && r.return != null && r.return(); } finally { if (o) throw u; } }, "f") }; } n(HZ, "_createForOfIteratorHelper"); function KZ(e, t) { if (e) { if (typeof e == "string") return n6(e, t); var r = Object.prototype.toString.call(e).slice(8, -1); if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e); if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return n6(e, t); } } n(KZ, "_unsupportedIterableToArray"); function n6(e, t) { (t == null || t > e.length) && (t = e.length); for (var r = 0, i = new Array(t); r < t; r++) i[r] = e[r]; return i; } n(n6, "_arrayLikeToArray"); function a6(e, t, r, i, s, a, o) { try { var u = e[a](o), l = u.value; } catch (c) { r(c); return; } u.done ? t(l) : Promise.resolve(l).then(i, s); } n(a6, "asyncGeneratorStep"); function o6(e) { return function() { var t = this, r = arguments; return new Promise(function(i, s) { var a = e.apply(t, r); function o(l) { a6(a, i, s, o, u, "next", l); } n(o, "_next"); function u(l) { a6(a, i, s, o, u, "throw", l); } n(u, "_throw"), o(void 0); }); }; } n(o6, "_asyncToGenerator"); var u2 = r6(), zZ = ["suggest", "format", "onState", "validate", "onRender", "type"], u6 = /* @__PURE__ */ n(() => { }, "noop"); function da() { return l2.apply(this, arguments); } n(da, "prompt"); function l2() { return l2 = o6(function* (e = [], { onSubmit: t = u6, onCancel: r = u6 } = {}) { let i = {}, s = da._override || {}; e = [].concat(e); let a, o, u, l, c, f, m = /* @__PURE__ */ function() { var g = o6(function* (b, D, x = !1) { if (!(!x && b.validate && b.validate(D) !== !0)) return b.format ? yield b.format(D, i) : D; }); return /* @__PURE__ */ n(function(D, x) { return g.apply(this, arguments); }, "getFormattedAnswer"); }(); var h = HZ(e), d; try { for (h.s(); !(d = h.n()).done; ) { o = d.value; var y = o; if (l = y.name, c = y.type, typeof c == "function" && (c = yield c(a, s6({}, i), o), o.type = c), !!c) { for (let g in o) { if (zZ.includes(g)) continue; let b = o[g]; o[g] = typeof b == "function" ? yield b(a, s6({}, i), f) : b; } if (f = o, typeof o.message != "string") throw new Error("prompt message is required"); var p = o; if (l = p.name, c = p.type, u2[c] === void 0) throw new Error(`prompt type (${c}) is not defined`); if (s[o.name] !== void 0 && (a = yield m(o, s[o.name]), a !== void 0)) { i[l] = a; continue; } try { a = da._injected ? JZ(da._injected, o.initial) : yield u2[c](o), i[l] = a = yield m(o, a, !0), u = yield t(o, a, i); } catch { u = !(yield r(o, i)); } if (u) return i; } } } catch (g) { h.e(g); } finally { h.f(); } return i; }), l2.apply(this, arguments); } n(l2, "_prompt"); function JZ(e, t) { let r = e.shift(); if (r instanceof Error) throw r; return r === void 0 ? t : r; } n(JZ, "getInjectedAnswer"); function XZ(e) { da._injected = (da._injected || []).concat(e); } n(XZ, "inject"); function YZ(e) { da._override = Object.assign({}, e); } n(YZ, "override"); l6.exports = Object.assign(da, { prompt: da, prompts: u2, inject: XZ, override: YZ }); }); // ../node_modules/prompts/lib/util/action.js var d6 = E((Dtt, f6) => { "use strict"; f6.exports = (e, t) => { if (!(e.meta && e.name !== "escape")) { if (e.ctrl) { if (e.name === "a") return "first"; if (e.name === "c" || e.name === "d") return "abort"; if (e.name === "e") return "last"; if (e.name === "g") return "reset"; } if (t) { if (e.name === "j") return "down"; if (e.name === "k") return "up"; } return e.name === "return" || e.name === "enter" ? "submit" : e.name === "backspace" ? "delete" : e.name === "delete" ? "deleteForward" : e.name === "abort" ? "abort" : e.name === "escape" ? "exit" : e.name === "tab" ? "next" : e.name === "pagedown" ? "nextPage" : e.name === "pageup" ? "prevPage" : e.name === "home" ? "home" : e.name === "end" ? "end" : e.name === "up" ? "up" : e.name === "down" ? "down" : e. name === "right" ? "right" : e.name === "left" ? "left" : !1; } }; }); // ../node_modules/prompts/lib/util/strip.js var Ah = E((vtt, p6) => { "use strict"; p6.exports = (e) => { let t = [ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))" ].join("|"), r = new RegExp(t, "g"); return typeof e == "string" ? e.replace(r, "") : e; }; }); // ../node_modules/prompts/lib/util/clear.js var y6 = E((xtt, m6) => { "use strict"; var GZ = Ah(), { erase: h6, cursor: ZZ } = Wt(), QZ = /* @__PURE__ */ n((e) => [...GZ(e)].length, "width"); m6.exports = function(e, t) { if (!t) return h6.line + ZZ.to(0); let r = 0, i = e.split(/\r?\n/); for (let s of i) r += 1 + Math.floor(Math.max(QZ(s) - 1, 0) / t); return h6.lines(r); }; }); // ../node_modules/prompts/lib/util/figures.js var c2 = E((Stt, g6) => { "use strict"; var af = { arrowUp: "\u2191", arrowDown: "\u2193", arrowLeft: "\u2190", arrowRight: "\u2192", radioOn: "\u25C9", radioOff: "\u25EF", tick: "\u2714", cross: "\u2716", ellipsis: "\u2026", pointerSmall: "\u203A", line: "\u2500", pointer: "\u276F" }, eQ = { arrowUp: af.arrowUp, arrowDown: af.arrowDown, arrowLeft: af.arrowLeft, arrowRight: af.arrowRight, radioOn: "(*)", radioOff: "( )", tick: "\u221A", cross: "\xD7", ellipsis: "...", pointerSmall: "\xBB", line: "\u2500", pointer: ">" }, tQ = process.platform === "win32" ? eQ : af; g6.exports = tQ; }); // ../node_modules/prompts/lib/util/style.js var D6 = E((Ttt, b6) => { "use strict"; var Ju = $t(), ho = c2(), f2 = Object.freeze({ password: { scale: 1, render: /* @__PURE__ */ n((e) => "*".repeat(e.length), "render") }, emoji: { scale: 2, render: /* @__PURE__ */ n((e) => "\u{1F603}".repeat(e.length), "render") }, invisible: { scale: 0, render: /* @__PURE__ */ n((e) => "", "render") }, default: { scale: 1, render: /* @__PURE__ */ n((e) => `${e}`, "render") } }), rQ = /* @__PURE__ */ n((e) => f2[e] || f2.default, "render"), of = Object.freeze({ aborted: Ju.red(ho.cross), done: Ju.green(ho.tick), exited: Ju.yellow(ho.cross), default: Ju.cyan("?") }), iQ = /* @__PURE__ */ n((e, t, r) => t ? of.aborted : r ? of.exited : e ? of.done : of.default, "symbol"), sQ = /* @__PURE__ */ n((e) => Ju. gray(e ? ho.ellipsis : ho.pointerSmall), "delimiter"), nQ = /* @__PURE__ */ n((e, t) => Ju.gray(e ? t ? ho.pointerSmall : "+" : ho.line), "\ item"); b6.exports = { styles: f2, render: rQ, symbols: of, symbol: iQ, delimiter: sQ, item: nQ }; }); // ../node_modules/prompts/lib/util/lines.js var x6 = E((wtt, v6) => { "use strict"; var aQ = Ah(); v6.exports = function(e, t) { let r = String(aQ(e) || "").split(/\r?\n/); return t ? r.map((i) => Math.ceil(i.length / t)).reduce((i, s) => i + s) : r.length; }; }); // ../node_modules/prompts/lib/util/wrap.js var S6 = E((Att, E6) => { "use strict"; E6.exports = (e, t = {}) => { let r = Number.isSafeInteger(parseInt(t.margin)) ? new Array(parseInt(t.margin)).fill(" ").join("") : t.margin || "", i = t.width; return (e || "").split(/\r?\n/g).map((s) => s.split(/\s+/g).reduce((a, o) => (o.length + r.length >= i || a[a.length - 1].length + o.length + 1 < i ? a[a.length - 1] += ` ${o}` : a.push(`${r}${o}`), a), [r]).join(` `)).join(` `); }; }); // ../node_modules/prompts/lib/util/entriesToDisplay.js var C6 = E((_tt, T6) => { "use strict"; T6.exports = (e, t, r) => { r = r || t; let i = Math.min(t - r, e - Math.floor(r / 2)); i < 0 && (i = 0); let s = Math.min(i + r, t); return { startIndex: i, endIndex: s }; }; }); // ../node_modules/prompts/lib/util/index.js var cs = E((Ptt, w6) => { "use strict"; w6.exports = { action: d6(), clear: y6(), style: D6(), strip: Ah(), figures: c2(), lines: x6(), wrap: S6(), entriesToDisplay: C6() }; }); // ../node_modules/prompts/lib/elements/prompt.js var bn = E((Ftt, _6) => { "use strict"; var A6 = require("readline"), { action: oQ } = cs(), uQ = require("events"), { beep: lQ, cursor: cQ } = Wt(), fQ = $t(), d2 = class extends uQ { static { n(this, "Prompt"); } constructor(t = {}) { super(), this.firstRender = !0, this.in = t.stdin || process.stdin, this.out = t.stdout || process.stdout, this.onRender = (t.onRender || (() => { })).bind(this); let r = A6.createInterface({ input: this.in, escapeCodeTimeout: 50 }); A6.emitKeypressEvents(this.in, r), this.in.isTTY && this.in.setRawMode(!0); let i = ["SelectPrompt", "MultiselectPrompt"].indexOf(this.constructor.name) > -1, s = /* @__PURE__ */ n((a, o) => { let u = oQ(o, i); u === !1 ? this._ && this._(a, o) : typeof this[u] == "function" ? this[u](o) : this.bell(); }, "keypress"); this.close = () => { this.out.write(cQ.show), this.in.removeListener("keypress", s), this.in.isTTY && this.in.setRawMode(!1), r.close(), this.emit(this.aborted ? "abort" : this.exited ? "exit" : "submit", this.value), this.closed = !0; }, this.in.on("keypress", s); } fire() { this.emit("state", { value: this.value, aborted: !!this.aborted, exited: !!this.exited }); } bell() { this.out.write(lQ); } render() { this.onRender(fQ), this.firstRender && (this.firstRender = !1); } }; _6.exports = d2; }); // ../node_modules/prompts/lib/elements/text.js var F6 = E((Ott, P6) => { var _h = $t(), dQ = bn(), { erase: pQ, cursor: uf } = Wt(), { style: p2, clear: h2, lines: hQ, figures: mQ } = cs(), m2 = class extends dQ { static { n(this, "TextPrompt"); } constructor(t = {}) { super(t), this.transform = p2.render(t.style), this.scale = this.transform.scale, this.msg = t.message, this.initial = t.initial || "", this.validator = t.validate || (() => !0), this.value = "", this.errorMsg = t.error || "Please Enter A Valid Value", this.cursor = +!!this. initial, this.cursorOffset = 0, this.clear = h2("", this.out.columns), this.render(); } set value(t) { !t && this.initial ? (this.placeholder = !0, this.rendered = _h.gray(this.transform.render(this.initial))) : (this.placeholder = !1, this. rendered = this.transform.render(t)), this._value = t, this.fire(); } get value() { return this._value; } reset() { this.value = "", this.cursor = +!!this.initial, this.cursorOffset = 0, this.fire(), this.render(); } exit() { this.abort(); } abort() { this.value = this.value || this.initial, this.done = this.aborted = !0, this.error = !1, this.red = !1, this.fire(), this.render(), this. out.write(` `), this.close(); } async validate() { let t = await this.validator(this.value); typeof t == "string" && (this.errorMsg = t, t = !1), this.error = !t; } async submit() { if (this.value = this.value || this.initial, this.cursorOffset = 0, this.cursor = this.rendered.length, await this.validate(), this.error) { this.red = !0, this.fire(), this.render(); return; } this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } next() { if (!this.placeholder) return this.bell(); this.value = this.initial, this.cursor = this.rendered.length, this.fire(), this.render(); } moveCursor(t) { this.placeholder || (this.cursor = this.cursor + t, this.cursorOffset += t); } _(t, r) { let i = this.value.slice(0, this.cursor), s = this.value.slice(this.cursor); this.value = `${i}${t}${s}`, this.red = !1, this.cursor = this.placeholder ? 0 : i.length + 1, this.render(); } delete() { if (this.isCursorAtStart()) return this.bell(); let t = this.value.slice(0, this.cursor - 1), r = this.value.slice(this.cursor); this.value = `${t}${r}`, this.red = !1, this.isCursorAtStart() ? this.cursorOffset = 0 : (this.cursorOffset++, this.moveCursor(-1)), this. render(); } deleteForward() { if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell(); let t = this.value.slice(0, this.cursor), r = this.value.slice(this.cursor + 1); this.value = `${t}${r}`, this.red = !1, this.isCursorAtEnd() ? this.cursorOffset = 0 : this.cursorOffset++, this.render(); } first() { this.cursor = 0, this.render(); } last() { this.cursor = this.value.length, this.render(); } left() { if (this.cursor <= 0 || this.placeholder) return this.bell(); this.moveCursor(-1), this.render(); } right() { if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell(); this.moveCursor(1), this.render(); } isCursorAtStart() { return this.cursor === 0 || this.placeholder && this.cursor === 1; } isCursorAtEnd() { return this.cursor === this.rendered.length || this.placeholder && this.cursor === this.rendered.length + 1; } render() { this.closed || (this.firstRender || (this.outputError && this.out.write(uf.down(hQ(this.outputError, this.out.columns) - 1) + h2(this. outputError, this.out.columns)), this.out.write(h2(this.outputText, this.out.columns))), super.render(), this.outputError = "", this.outputText = [ p2.symbol(this.done, this.aborted), _h.bold(this.msg), p2.delimiter(this.done), this.red ? _h.red(this.rendered) : this.rendered ].join(" "), this.error && (this.outputError += this.errorMsg.split(` `).reduce((t, r, i) => t + ` ${i ? " " : mQ.pointerSmall} ${_h.red().italic(r)}`, "")), this.out.write(pQ.line + uf.to(0) + this.outputText + uf.save + this.outputError + uf.restore + uf.move(this.cursorOffset, 0))); } }; P6.exports = m2; }); // ../node_modules/prompts/lib/elements/select.js var B6 = E((Btt, k6) => { "use strict"; var Dn = $t(), yQ = bn(), { style: I6, clear: O6, figures: Ph, wrap: gQ, entriesToDisplay: bQ } = cs(), { cursor: DQ } = Wt(), y2 = class extends yQ { static { n(this, "SelectPrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.hint = t.hint || "- Use arrow-keys. Return to submit.", this.warn = t.warn || "- This option is d\ isabled", this.cursor = t.initial || 0, this.choices = t.choices.map((r, i) => (typeof r == "string" && (r = { title: r, value: i }), { title: r && (r.title || r.value || r), value: r && (r.value === void 0 ? i : r.value), description: r && r.description, selected: r && r.selected, disabled: r && r.disabled })), this.optionsPerPage = t.optionsPerPage || 10, this.value = (this.choices[this.cursor] || {}).value, this.clear = O6("", this.out. columns), this.render(); } moveCursor(t) { this.cursor = t, this.value = this.choices[t].value, this.fire(); } reset() { this.moveCursor(0), this.fire(), this.render(); } exit() { this.abort(); } abort() { this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(` `), this.close(); } submit() { this.selection.disabled ? this.bell() : (this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close()); } first() { this.moveCursor(0), this.render(); } last() { this.moveCursor(this.choices.length - 1), this.render(); } up() { this.cursor === 0 ? this.moveCursor(this.choices.length - 1) : this.moveCursor(this.cursor - 1), this.render(); } down() { this.cursor === this.choices.length - 1 ? this.moveCursor(0) : this.moveCursor(this.cursor + 1), this.render(); } next() { this.moveCursor((this.cursor + 1) % this.choices.length), this.render(); } _(t, r) { if (t === " ") return this.submit(); } get selection() { return this.choices[this.cursor]; } render() { if (this.closed) return; this.firstRender ? this.out.write(DQ.hide) : this.out.write(O6(this.outputText, this.out.columns)), super.render(); let { startIndex: t, endIndex: r } = bQ(this.cursor, this.choices.length, this.optionsPerPage); if (this.outputText = [ I6.symbol(this.done, this.aborted), Dn.bold(this.msg), I6.delimiter(!1), this.done ? this.selection.title : this.selection.disabled ? Dn.yellow(this.warn) : Dn.gray(this.hint) ].join(" "), !this.done) { this.outputText += ` `; for (let i = t; i < r; i++) { let s, a, o = "", u = this.choices[i]; i === t && t > 0 ? a = Ph.arrowUp : i === r - 1 && r < this.choices.length ? a = Ph.arrowDown : a = " ", u.disabled ? (s = this.cursor === i ? Dn.gray().underline(u.title) : Dn.strikethrough().gray(u.title), a = (this.cursor === i ? Dn.bold().gray(Ph.pointer) + " " : "\ ") + a) : (s = this.cursor === i ? Dn.cyan().underline(u.title) : u.title, a = (this.cursor === i ? Dn.cyan(Ph.pointer) + " " : " ") + a, u.description && this.cursor === i && (o = ` - ${u.description}`, (a.length + s.length + o.length >= this.out.columns || u.description. split(/\r?\n/).length > 1) && (o = ` ` + gQ(u.description, { margin: 3, width: this.out.columns })))), this.outputText += `${a} ${s}${Dn.gray(o)} `; } } this.out.write(this.outputText); } }; k6.exports = y2; }); // ../node_modules/prompts/lib/elements/toggle.js var L6 = E((Mtt, R6) => { var Fh = $t(), vQ = bn(), { style: N6, clear: xQ } = cs(), { cursor: M6, erase: EQ } = Wt(), g2 = class extends vQ { static { n(this, "TogglePrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.value = !!t.initial, this.active = t.active || "on", this.inactive = t.inactive || "off", this.initialValue = this.value, this.render(); } reset() { this.value = this.initialValue, this.fire(), this.render(); } exit() { this.abort(); } abort() { this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(` `), this.close(); } submit() { this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } deactivate() { if (this.value === !1) return this.bell(); this.value = !1, this.render(); } activate() { if (this.value === !0) return this.bell(); this.value = !0, this.render(); } delete() { this.deactivate(); } left() { this.deactivate(); } right() { this.activate(); } down() { this.deactivate(); } up() { this.activate(); } next() { this.value = !this.value, this.fire(), this.render(); } _(t, r) { if (t === " ") this.value = !this.value; else if (t === "1") this.value = !0; else if (t === "0") this.value = !1; else return this.bell(); this.render(); } render() { this.closed || (this.firstRender ? this.out.write(M6.hide) : this.out.write(xQ(this.outputText, this.out.columns)), super.render(), this. outputText = [ N6.symbol(this.done, this.aborted), Fh.bold(this.msg), N6.delimiter(this.done), this.value ? this.inactive : Fh.cyan().underline(this.inactive), Fh.gray("/"), this.value ? Fh.cyan().underline(this.active) : this.active ].join(" "), this.out.write(EQ.line + M6.to(0) + this.outputText)); } }; R6.exports = g2; }); // ../node_modules/prompts/lib/dateparts/datepart.js var Ls = E((Ltt, j6) => { "use strict"; var b2 = class e { static { n(this, "DatePart"); } constructor({ token: t, date: r, parts: i, locales: s }) { this.token = t, this.date = r || /* @__PURE__ */ new Date(), this.parts = i || [this], this.locales = s || {}; } up() { } down() { } next() { let t = this.parts.indexOf(this); return this.parts.find((r, i) => i > t && r instanceof e); } setTo(t) { } prev() { let t = [].concat(this.parts).reverse(), r = t.indexOf(this); return t.find((i, s) => s > r && i instanceof e); } toString() { return String(this.date); } }; j6.exports = b2; }); // ../node_modules/prompts/lib/dateparts/meridiem.js var U6 = E((qtt, q6) => { "use strict"; var SQ = Ls(), D2 = class extends SQ { static { n(this, "Meridiem"); } constructor(t = {}) { super(t); } up() { this.date.setHours((this.date.getHours() + 12) % 24); } down() { this.up(); } toString() { let t = this.date.getHours() > 12 ? "pm" : "am"; return /\A/.test(this.token) ? t.toUpperCase() : t; } }; q6.exports = D2; }); // ../node_modules/prompts/lib/dateparts/day.js var V6 = E(($tt, $6) => { "use strict"; var TQ = Ls(), CQ = /* @__PURE__ */ n((e) => (e = e % 10, e === 1 ? "st" : e === 2 ? "nd" : e === 3 ? "rd" : "th"), "pos"), v2 = class extends TQ { static { n(this, "Day"); } constructor(t = {}) { super(t); } up() { this.date.setDate(this.date.getDate() + 1); } down() { this.date.setDate(this.date.getDate() - 1); } setTo(t) { this.date.setDate(parseInt(t.substr(-2))); } toString() { let t = this.date.getDate(), r = this.date.getDay(); return this.token === "DD" ? String(t).padStart(2, "0") : this.token === "Do" ? t + CQ(t) : this.token === "d" ? r + 1 : this.token === "ddd" ? this.locales.weekdaysShort[r] : this.token === "dddd" ? this.locales.weekdays[r] : t; } }; $6.exports = v2; }); // ../node_modules/prompts/lib/dateparts/hours.js var H6 = E((Wtt, W6) => { "use strict"; var wQ = Ls(), x2 = class extends wQ { static { n(this, "Hours"); } constructor(t = {}) { super(t); } up() { this.date.setHours(this.date.getHours() + 1); } down() { this.date.setHours(this.date.getHours() - 1); } setTo(t) { this.date.setHours(parseInt(t.substr(-2))); } toString() { let t = this.date.getHours(); return /h/.test(this.token) && (t = t % 12 || 12), this.token.length > 1 ? String(t).padStart(2, "0") : t; } }; W6.exports = x2; }); // ../node_modules/prompts/lib/dateparts/milliseconds.js var z6 = E((Ktt, K6) => { "use strict"; var AQ = Ls(), E2 = class extends AQ { static { n(this, "Milliseconds"); } constructor(t = {}) { super(t); } up() { this.date.setMilliseconds(this.date.getMilliseconds() + 1); } down() { this.date.setMilliseconds(this.date.getMilliseconds() - 1); } setTo(t) { this.date.setMilliseconds(parseInt(t.substr(-this.token.length))); } toString() { return String(this.date.getMilliseconds()).padStart(4, "0").substr(0, this.token.length); } }; K6.exports = E2; }); // ../node_modules/prompts/lib/dateparts/minutes.js var X6 = E((Jtt, J6) => { "use strict"; var _Q = Ls(), S2 = class extends _Q { static { n(this, "Minutes"); } constructor(t = {}) { super(t); } up() { this.date.setMinutes(this.date.getMinutes() + 1); } down() { this.date.setMinutes(this.date.getMinutes() - 1); } setTo(t) { this.date.setMinutes(parseInt(t.substr(-2))); } toString() { let t = this.date.getMinutes(); return this.token.length > 1 ? String(t).padStart(2, "0") : t; } }; J6.exports = S2; }); // ../node_modules/prompts/lib/dateparts/month.js var G6 = E((Ytt, Y6) => { "use strict"; var PQ = Ls(), T2 = class extends PQ { static { n(this, "Month"); } constructor(t = {}) { super(t); } up() { this.date.setMonth(this.date.getMonth() + 1); } down() { this.date.setMonth(this.date.getMonth() - 1); } setTo(t) { t = parseInt(t.substr(-2)) - 1, this.date.setMonth(t < 0 ? 0 : t); } toString() { let t = this.date.getMonth(), r = this.token.length; return r === 2 ? String(t + 1).padStart(2, "0") : r === 3 ? this.locales.monthsShort[t] : r === 4 ? this.locales.months[t] : String(t + 1); } }; Y6.exports = T2; }); // ../node_modules/prompts/lib/dateparts/seconds.js var Q6 = E((Ztt, Z6) => { "use strict"; var FQ = Ls(), C2 = class extends FQ { static { n(this, "Seconds"); } constructor(t = {}) { super(t); } up() { this.date.setSeconds(this.date.getSeconds() + 1); } down() { this.date.setSeconds(this.date.getSeconds() - 1); } setTo(t) { this.date.setSeconds(parseInt(t.substr(-2))); } toString() { let t = this.date.getSeconds(); return this.token.length > 1 ? String(t).padStart(2, "0") : t; } }; Z6.exports = C2; }); // ../node_modules/prompts/lib/dateparts/year.js var tF = E((ert, eF) => { "use strict"; var IQ = Ls(), w2 = class extends IQ { static { n(this, "Year"); } constructor(t = {}) { super(t); } up() { this.date.setFullYear(this.date.getFullYear() + 1); } down() { this.date.setFullYear(this.date.getFullYear() - 1); } setTo(t) { this.date.setFullYear(t.substr(-4)); } toString() { let t = String(this.date.getFullYear()).padStart(4, "0"); return this.token.length === 2 ? t.substr(-2) : t; } }; eF.exports = w2; }); // ../node_modules/prompts/lib/dateparts/index.js var iF = E((rrt, rF) => { "use strict"; rF.exports = { DatePart: Ls(), Meridiem: U6(), Day: V6(), Hours: H6(), Milliseconds: z6(), Minutes: X6(), Month: G6(), Seconds: Q6(), Year: tF() }; }); // ../node_modules/prompts/lib/elements/date.js var cF = E((irt, lF) => { "use strict"; var A2 = $t(), OQ = bn(), { style: sF, clear: nF, figures: kQ } = cs(), { erase: BQ, cursor: aF } = Wt(), { DatePart: oF, Meridiem: NQ, Day: MQ, Hours: RQ, Milliseconds: LQ, Minutes: jQ, Month: qQ, Seconds: UQ, Year: $Q } = iF(), VQ = /\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g, uF = { 1: ({ token: e }) => e.replace(/\\(.)/g, "$1"), 2: (e) => new MQ(e), // Day // TODO 3: (e) => new qQ(e), // Month 4: (e) => new $Q(e), // Year 5: (e) => new NQ(e), // AM/PM // TODO (special) 6: (e) => new RQ(e), // Hours 7: (e) => new jQ(e), // Minutes 8: (e) => new UQ(e), // Seconds 9: (e) => new LQ(e) // Fractional seconds }, WQ = { months: "January,February,March,April,May,June,July,August,September,October,November,December".split(","), monthsShort: "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","), weekdays: "Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","), weekdaysShort: "Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",") }, _2 = class extends OQ { static { n(this, "DatePrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.cursor = 0, this.typed = "", this.locales = Object.assign(WQ, t.locales), this._date = t.initial || /* @__PURE__ */ new Date(), this.errorMsg = t.error || "Please Enter A Valid Value", this.validator = t.validate || (() => !0), this.mask = t.mask || "YYYY-MM-DD HH:mm:ss", this.clear = nF("", this.out.columns), this.render(); } get value() { return this.date; } get date() { return this._date; } set date(t) { t && this._date.setTime(t.getTime()); } set mask(t) { let r; for (this.parts = []; r = VQ.exec(t); ) { let s = r.shift(), a = r.findIndex((o) => o != null); this.parts.push(a in uF ? uF[a]({ token: r[a] || s, date: this.date, parts: this.parts, locales: this.locales }) : r[a] || s); } let i = this.parts.reduce((s, a) => (typeof a == "string" && typeof s[s.length - 1] == "string" ? s[s.length - 1] += a : s.push(a), s), []); this.parts.splice(0), this.parts.push(...i), this.reset(); } moveCursor(t) { this.typed = "", this.cursor = t, this.fire(); } reset() { this.moveCursor(this.parts.findIndex((t) => t instanceof oF)), this.fire(), this.render(); } exit() { this.abort(); } abort() { this.done = this.aborted = !0, this.error = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } async validate() { let t = await this.validator(this.value); typeof t == "string" && (this.errorMsg = t, t = !1), this.error = !t; } async submit() { if (await this.validate(), this.error) { this.color = "red", this.fire(), this.render(); return; } this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } up() { this.typed = "", this.parts[this.cursor].up(), this.render(); } down() { this.typed = "", this.parts[this.cursor].down(), this.render(); } left() { let t = this.parts[this.cursor].prev(); if (t == null) return this.bell(); this.moveCursor(this.parts.indexOf(t)), this.render(); } right() { let t = this.parts[this.cursor].next(); if (t == null) return this.bell(); this.moveCursor(this.parts.indexOf(t)), this.render(); } next() { let t = this.parts[this.cursor].next(); this.moveCursor(t ? this.parts.indexOf(t) : this.parts.findIndex((r) => r instanceof oF)), this.render(); } _(t) { /\d/.test(t) && (this.typed += t, this.parts[this.cursor].setTo(this.typed), this.render()); } render() { this.closed || (this.firstRender ? this.out.write(aF.hide) : this.out.write(nF(this.outputText, this.out.columns)), super.render(), this. outputText = [ sF.symbol(this.done, this.aborted), A2.bold(this.msg), sF.delimiter(!1), this.parts.reduce((t, r, i) => t.concat(i === this.cursor && !this.done ? A2.cyan().underline(r.toString()) : r), []).join("") ].join(" "), this.error && (this.outputText += this.errorMsg.split(` `).reduce( (t, r, i) => t + ` ${i ? " " : kQ.pointerSmall} ${A2.red().italic(r)}`, "" )), this.out.write(BQ.line + aF.to(0) + this.outputText)); } }; lF.exports = _2; }); // ../node_modules/prompts/lib/elements/number.js var hF = E((nrt, pF) => { var Ih = $t(), HQ = bn(), { cursor: Oh, erase: KQ } = Wt(), { style: P2, figures: zQ, clear: fF, lines: JQ } = cs(), XQ = /[0-9]/, F2 = /* @__PURE__ */ n( (e) => e !== void 0, "isDef"), dF = /* @__PURE__ */ n((e, t) => { let r = Math.pow(10, t); return Math.round(e * r) / r; }, "round"), I2 = class extends HQ { static { n(this, "NumberPrompt"); } constructor(t = {}) { super(t), this.transform = P2.render(t.style), this.msg = t.message, this.initial = F2(t.initial) ? t.initial : "", this.float = !!t.float, this.round = t.round || 2, this.inc = t.increment || 1, this.min = F2(t.min) ? t.min : -1 / 0, this.max = F2(t.max) ? t.max : 1 / 0, this. errorMsg = t.error || "Please Enter A Valid Value", this.validator = t.validate || (() => !0), this.color = "cyan", this.value = "", this. typed = "", this.lastHit = 0, this.render(); } set value(t) { !t && t !== 0 ? (this.placeholder = !0, this.rendered = Ih.gray(this.transform.render(`${this.initial}`)), this._value = "") : (this.placeholder = !1, this.rendered = this.transform.render(`${dF(t, this.round)}`), this._value = dF(t, this.round)), this.fire(); } get value() { return this._value; } parse(t) { return this.float ? parseFloat(t) : parseInt(t); } valid(t) { return t === "-" || t === "." && this.float || XQ.test(t); } reset() { this.typed = "", this.value = "", this.fire(), this.render(); } exit() { this.abort(); } abort() { let t = this.value; this.value = t !== "" ? t : this.initial, this.done = this.aborted = !0, this.error = !1, this.fire(), this.render(), this.out.write(`\ `), this.close(); } async validate() { let t = await this.validator(this.value); typeof t == "string" && (this.errorMsg = t, t = !1), this.error = !t; } async submit() { if (await this.validate(), this.error) { this.color = "red", this.fire(), this.render(); return; } let t = this.value; this.value = t !== "" ? t : this.initial, this.done = !0, this.aborted = !1, this.error = !1, this.fire(), this.render(), this.out.write( ` `), this.close(); } up() { if (this.typed = "", this.value === "" && (this.value = this.min - this.inc), this.value >= this.max) return this.bell(); this.value += this.inc, this.color = "cyan", this.fire(), this.render(); } down() { if (this.typed = "", this.value === "" && (this.value = this.min + this.inc), this.value <= this.min) return this.bell(); this.value -= this.inc, this.color = "cyan", this.fire(), this.render(); } delete() { let t = this.value.toString(); if (t.length === 0) return this.bell(); this.value = this.parse(t = t.slice(0, -1)) || "", this.value !== "" && this.value < this.min && (this.value = this.min), this.color = "cyan", this.fire(), this.render(); } next() { this.value = this.initial, this.fire(), this.render(); } _(t, r) { if (!this.valid(t)) return this.bell(); let i = Date.now(); if (i - this.lastHit > 1e3 && (this.typed = ""), this.typed += t, this.lastHit = i, this.color = "cyan", t === ".") return this.fire(); this.value = Math.min(this.parse(this.typed), this.max), this.value > this.max && (this.value = this.max), this.value < this.min && (this. value = this.min), this.fire(), this.render(); } render() { this.closed || (this.firstRender || (this.outputError && this.out.write(Oh.down(JQ(this.outputError, this.out.columns) - 1) + fF(this. outputError, this.out.columns)), this.out.write(fF(this.outputText, this.out.columns))), super.render(), this.outputError = "", this.outputText = [ P2.symbol(this.done, this.aborted), Ih.bold(this.msg), P2.delimiter(this.done), !this.done || !this.done && !this.placeholder ? Ih[this.color]().underline(this.rendered) : this.rendered ].join(" "), this.error && (this.outputError += this.errorMsg.split(` `).reduce((t, r, i) => t + ` ${i ? " " : zQ.pointerSmall} ${Ih.red().italic(r)}`, "")), this.out.write(KQ.line + Oh.to(0) + this.outputText + Oh.save + this.outputError + Oh.restore)); } }; pF.exports = I2; }); // ../node_modules/prompts/lib/elements/multiselect.js var k2 = E((ort, gF) => { "use strict"; var js = $t(), { cursor: YQ } = Wt(), GQ = bn(), { clear: mF, figures: pa, style: yF, wrap: ZQ, entriesToDisplay: QQ } = cs(), O2 = class extends GQ { static { n(this, "MultiselectPrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.cursor = t.cursor || 0, this.scrollIndex = t.cursor || 0, this.hint = t.hint || "", this.warn = t. warn || "- This option is disabled -", this.minSelected = t.min, this.showMinError = !1, this.maxChoices = t.max, this.instructions = t. instructions, this.optionsPerPage = t.optionsPerPage || 10, this.value = t.choices.map((r, i) => (typeof r == "string" && (r = { title: r, value: i }), { title: r && (r.title || r.value || r), description: r && r.description, value: r && (r.value === void 0 ? i : r.value), selected: r && r.selected, disabled: r && r.disabled })), this.clear = mF("", this.out.columns), t.overrideRender || this.render(); } reset() { this.value.map((t) => !t.selected), this.cursor = 0, this.fire(), this.render(); } selected() { return this.value.filter((t) => t.selected); } exit() { this.abort(); } abort() { this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(` `), this.close(); } submit() { let t = this.value.filter((r) => r.selected); this.minSelected && t.length < this.minSelected ? (this.showMinError = !0, this.render()) : (this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close()); } first() { this.cursor = 0, this.render(); } last() { this.cursor = this.value.length - 1, this.render(); } next() { this.cursor = (this.cursor + 1) % this.value.length, this.render(); } up() { this.cursor === 0 ? this.cursor = this.value.length - 1 : this.cursor--, this.render(); } down() { this.cursor === this.value.length - 1 ? this.cursor = 0 : this.cursor++, this.render(); } left() { this.value[this.cursor].selected = !1, this.render(); } right() { if (this.value.filter((t) => t.selected).length >= this.maxChoices) return this.bell(); this.value[this.cursor].selected = !0, this.render(); } handleSpaceToggle() { let t = this.value[this.cursor]; if (t.selected) t.selected = !1, this.render(); else { if (t.disabled || this.value.filter((r) => r.selected).length >= this.maxChoices) return this.bell(); t.selected = !0, this.render(); } } toggleAll() { if (this.maxChoices !== void 0 || this.value[this.cursor].disabled) return this.bell(); let t = !this.value[this.cursor].selected; this.value.filter((r) => !r.disabled).forEach((r) => r.selected = t), this.render(); } _(t, r) { if (t === " ") this.handleSpaceToggle(); else if (t === "a") this.toggleAll(); else return this.bell(); } renderInstructions() { return this.instructions === void 0 || this.instructions ? typeof this.instructions == "string" ? this.instructions : ` Instructions: ${pa.arrowUp}/${pa.arrowDown}: Highlight option ${pa.arrowLeft}/${pa.arrowRight}/[space]: Toggle selection ` + (this.maxChoices === void 0 ? ` a: Toggle all ` : "") + " enter/return: Complete answer" : ""; } renderOption(t, r, i, s) { let a = (r.selected ? js.green(pa.radioOn) : pa.radioOff) + " " + s + " ", o, u; return r.disabled ? o = t === i ? js.gray().underline(r.title) : js.strikethrough().gray(r.title) : (o = t === i ? js.cyan().underline( r.title) : r.title, t === i && r.description && (u = ` - ${r.description}`, (a.length + o.length + u.length >= this.out.columns || r.description. split(/\r?\n/).length > 1) && (u = ` ` + ZQ(r.description, { margin: a.length, width: this.out.columns })))), a + o + js.gray(u || ""); } // shared with autocompleteMultiselect paginateOptions(t) { if (t.length === 0) return js.red("No matches for this query."); let { startIndex: r, endIndex: i } = QQ(this.cursor, t.length, this.optionsPerPage), s, a = []; for (let o = r; o < i; o++) o === r && r > 0 ? s = pa.arrowUp : o === i - 1 && i < t.length ? s = pa.arrowDown : s = " ", a.push(this.renderOption(this.cursor, t[o], o, s)); return ` ` + a.join(` `); } // shared with autocomleteMultiselect renderOptions(t) { return this.done ? "" : this.paginateOptions(t); } renderDoneOrInstructions() { if (this.done) return this.value.filter((r) => r.selected).map((r) => r.title).join(", "); let t = [js.gray(this.hint), this.renderInstructions()]; return this.value[this.cursor].disabled && t.push(js.yellow(this.warn)), t.join(" "); } render() { if (this.closed) return; this.firstRender && this.out.write(YQ.hide), super.render(); let t = [ yF.symbol(this.done, this.aborted), js.bold(this.msg), yF.delimiter(!1), this.renderDoneOrInstructions() ].join(" "); this.showMinError && (t += js.red(`You must select a minimum of ${this.minSelected} choices.`), this.showMinError = !1), t += this.renderOptions( this.value), this.out.write(this.clear + t), this.clear = mF(t, this.out.columns); } }; gF.exports = O2; }); // ../node_modules/prompts/lib/elements/autocomplete.js var EF = E((lrt, xF) => { "use strict"; var lf = $t(), eee = bn(), { erase: tee, cursor: bF } = Wt(), { style: B2, clear: DF, figures: N2, wrap: ree, entriesToDisplay: iee } = cs(), vF = /* @__PURE__ */ n((e, t) => e[t] && (e[t].value || e[t].title || e[t]), "getVal"), see = /* @__PURE__ */ n((e, t) => e[t] && (e[t].title || e[t].value || e[t]), "getTitle"), nee = /* @__PURE__ */ n((e, t) => { let r = e.findIndex((i) => i.value === t || i.title === t); return r > -1 ? r : void 0; }, "getIndex"), M2 = class extends eee { static { n(this, "AutocompletePrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.suggest = t.suggest, this.choices = t.choices, this.initial = typeof t.initial == "number" ? t.initial : nee(t.choices, t.initial), this.select = this.initial || t.cursor || 0, this.i18n = { noMatches: t.noMatches || "no matches found" }, this. fallback = t.fallback || this.initial, this.clearFirst = t.clearFirst || !1, this.suggestions = [], this.input = "", this.limit = t.limit || 10, this.cursor = 0, this.transform = B2.render(t.style), this.scale = this.transform.scale, this.render = this.render.bind(this), this. complete = this.complete.bind(this), this.clear = DF("", this.out.columns), this.complete(this.render), this.render(); } set fallback(t) { this._fb = Number.isSafeInteger(parseInt(t)) ? parseInt(t) : t; } get fallback() { let t; return typeof this._fb == "number" ? t = this.choices[this._fb] : typeof this._fb == "string" && (t = { title: this._fb }), t || this. _fb || { title: this.i18n.noMatches }; } moveSelect(t) { this.select = t, this.suggestions.length > 0 ? this.value = vF(this.suggestions, t) : this.value = this.fallback.value, this.fire(); } async complete(t) { let r = this.completing = this.suggest(this.input, this.choices), i = await r; if (this.completing !== r) return; this.suggestions = i.map((a, o, u) => ({ title: see(u, o), value: vF(u, o), description: a.description })), this.completing = !1; let s = Math.max(i.length - 1, 0); this.moveSelect(Math.min(s, this.select)), t && t(); } reset() { this.input = "", this.complete(() => { this.moveSelect(this.initial !== void 0 ? this.initial : 0), this.render(); }), this.render(); } exit() { this.clearFirst && this.input.length > 0 ? this.reset() : (this.done = this.exited = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close()); } abort() { this.done = this.aborted = !0, this.exited = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } submit() { this.done = !0, this.aborted = this.exited = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } _(t, r) { let i = this.input.slice(0, this.cursor), s = this.input.slice(this.cursor); this.input = `${i}${t}${s}`, this.cursor = i.length + 1, this.complete(this.render), this.render(); } delete() { if (this.cursor === 0) return this.bell(); let t = this.input.slice(0, this.cursor - 1), r = this.input.slice(this.cursor); this.input = `${t}${r}`, this.complete(this.render), this.cursor = this.cursor - 1, this.render(); } deleteForward() { if (this.cursor * this.scale >= this.rendered.length) return this.bell(); let t = this.input.slice(0, this.cursor), r = this.input.slice(this.cursor + 1); this.input = `${t}${r}`, this.complete(this.render), this.render(); } first() { this.moveSelect(0), this.render(); } last() { this.moveSelect(this.suggestions.length - 1), this.render(); } up() { this.select === 0 ? this.moveSelect(this.suggestions.length - 1) : this.moveSelect(this.select - 1), this.render(); } down() { this.select === this.suggestions.length - 1 ? this.moveSelect(0) : this.moveSelect(this.select + 1), this.render(); } next() { this.select === this.suggestions.length - 1 ? this.moveSelect(0) : this.moveSelect(this.select + 1), this.render(); } nextPage() { this.moveSelect(Math.min(this.select + this.limit, this.suggestions.length - 1)), this.render(); } prevPage() { this.moveSelect(Math.max(this.select - this.limit, 0)), this.render(); } left() { if (this.cursor <= 0) return this.bell(); this.cursor = this.cursor - 1, this.render(); } right() { if (this.cursor * this.scale >= this.rendered.length) return this.bell(); this.cursor = this.cursor + 1, this.render(); } renderOption(t, r, i, s) { let a, o = i ? N2.arrowUp : s ? N2.arrowDown : " ", u = r ? lf.cyan().underline(t.title) : t.title; return o = (r ? lf.cyan(N2.pointer) + " " : " ") + o, t.description && (a = ` - ${t.description}`, (o.length + u.length + a.length >= this.out.columns || t.description.split(/\r?\n/).length > 1) && (a = ` ` + ree(t.description, { margin: 3, width: this.out.columns }))), o + " " + u + lf.gray(a || ""); } render() { if (this.closed) return; this.firstRender ? this.out.write(bF.hide) : this.out.write(DF(this.outputText, this.out.columns)), super.render(); let { startIndex: t, endIndex: r } = iee(this.select, this.choices.length, this.limit); if (this.outputText = [ B2.symbol(this.done, this.aborted, this.exited), lf.bold(this.msg), B2.delimiter(this.completing), this.done && this.suggestions[this.select] ? this.suggestions[this.select].title : this.rendered = this.transform.render(this.input) ].join(" "), !this.done) { let i = this.suggestions.slice(t, r).map((s, a) => this.renderOption( s, this.select === a + t, a === 0 && t > 0, a + t === r - 1 && r < this.choices.length )).join(` `); this.outputText += ` ` + (i || lf.gray(this.fallback.title)); } this.out.write(tee.line + bF.to(0) + this.outputText); } }; xF.exports = M2; }); // ../node_modules/prompts/lib/elements/autocompleteMultiselect.js var wF = E((frt, CF) => { "use strict"; var vn = $t(), { cursor: aee } = Wt(), oee = k2(), { clear: SF, style: TF, figures: Xu } = cs(), R2 = class extends oee { static { n(this, "AutocompleteMultiselectPrompt"); } constructor(t = {}) { t.overrideRender = !0, super(t), this.inputValue = "", this.clear = SF("", this.out.columns), this.filteredOptions = this.value, this. render(); } last() { this.cursor = this.filteredOptions.length - 1, this.render(); } next() { this.cursor = (this.cursor + 1) % this.filteredOptions.length, this.render(); } up() { this.cursor === 0 ? this.cursor = this.filteredOptions.length - 1 : this.cursor--, this.render(); } down() { this.cursor === this.filteredOptions.length - 1 ? this.cursor = 0 : this.cursor++, this.render(); } left() { this.filteredOptions[this.cursor].selected = !1, this.render(); } right() { if (this.value.filter((t) => t.selected).length >= this.maxChoices) return this.bell(); this.filteredOptions[this.cursor].selected = !0, this.render(); } delete() { this.inputValue.length && (this.inputValue = this.inputValue.substr(0, this.inputValue.length - 1), this.updateFilteredOptions()); } updateFilteredOptions() { let t = this.filteredOptions[this.cursor]; this.filteredOptions = this.value.filter((i) => this.inputValue ? !!(typeof i.title == "string" && i.title.toLowerCase().includes(this. inputValue.toLowerCase()) || typeof i.value == "string" && i.value.toLowerCase().includes(this.inputValue.toLowerCase())) : !0); let r = this.filteredOptions.findIndex((i) => i === t); this.cursor = r < 0 ? 0 : r, this.render(); } handleSpaceToggle() { let t = this.filteredOptions[this.cursor]; if (t.selected) t.selected = !1, this.render(); else { if (t.disabled || this.value.filter((r) => r.selected).length >= this.maxChoices) return this.bell(); t.selected = !0, this.render(); } } handleInputChange(t) { this.inputValue = this.inputValue + t, this.updateFilteredOptions(); } _(t, r) { t === " " ? this.handleSpaceToggle() : this.handleInputChange(t); } renderInstructions() { return this.instructions === void 0 || this.instructions ? typeof this.instructions == "string" ? this.instructions : ` Instructions: ${Xu.arrowUp}/${Xu.arrowDown}: Highlight option ${Xu.arrowLeft}/${Xu.arrowRight}/[space]: Toggle selection [a,b,c]/delete: Filter choices enter/return: Complete answer ` : ""; } renderCurrentInput() { return ` Filtered results for: ${this.inputValue ? this.inputValue : vn.gray("Enter something to filter")} `; } renderOption(t, r, i) { let s; return r.disabled ? s = t === i ? vn.gray().underline(r.title) : vn.strikethrough().gray(r.title) : s = t === i ? vn.cyan().underline( r.title) : r.title, (r.selected ? vn.green(Xu.radioOn) : Xu.radioOff) + " " + s; } renderDoneOrInstructions() { if (this.done) return this.value.filter((r) => r.selected).map((r) => r.title).join(", "); let t = [vn.gray(this.hint), this.renderInstructions(), this.renderCurrentInput()]; return this.filteredOptions.length && this.filteredOptions[this.cursor].disabled && t.push(vn.yellow(this.warn)), t.join(" "); } render() { if (this.closed) return; this.firstRender && this.out.write(aee.hide), super.render(); let t = [ TF.symbol(this.done, this.aborted), vn.bold(this.msg), TF.delimiter(!1), this.renderDoneOrInstructions() ].join(" "); this.showMinError && (t += vn.red(`You must select a minimum of ${this.minSelected} choices.`), this.showMinError = !1), t += this.renderOptions( this.filteredOptions), this.out.write(this.clear + t), this.clear = SF(t, this.out.columns); } }; CF.exports = R2; }); // ../node_modules/prompts/lib/elements/confirm.js var IF = E((prt, FF) => { var AF = $t(), uee = bn(), { style: _F, clear: lee } = cs(), { erase: cee, cursor: PF } = Wt(), L2 = class extends uee { static { n(this, "ConfirmPrompt"); } constructor(t = {}) { super(t), this.msg = t.message, this.value = t.initial, this.initialValue = !!t.initial, this.yesMsg = t.yes || "yes", this.yesOption = t.yesOption || "(Y/n)", this.noMsg = t.no || "no", this.noOption = t.noOption || "(y/N)", this.render(); } reset() { this.value = this.initialValue, this.fire(), this.render(); } exit() { this.abort(); } abort() { this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(` `), this.close(); } submit() { this.value = this.value || !1, this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(` `), this.close(); } _(t, r) { return t.toLowerCase() === "y" ? (this.value = !0, this.submit()) : t.toLowerCase() === "n" ? (this.value = !1, this.submit()) : this. bell(); } render() { this.closed || (this.firstRender ? this.out.write(PF.hide) : this.out.write(lee(this.outputText, this.out.columns)), super.render(), this. outputText = [ _F.symbol(this.done, this.aborted), AF.bold(this.msg), _F.delimiter(this.done), this.done ? this.value ? this.yesMsg : this.noMsg : AF.gray(this.initialValue ? this.yesOption : this.noOption) ].join(" "), this.out.write(cee.line + PF.to(0) + this.outputText)); } }; FF.exports = L2; }); // ../node_modules/prompts/lib/elements/index.js var kF = E((mrt, OF) => { "use strict"; OF.exports = { TextPrompt: F6(), SelectPrompt: B6(), TogglePrompt: L6(), DatePrompt: cF(), NumberPrompt: hF(), MultiselectPrompt: k2(), AutocompletePrompt: EF(), AutocompleteMultiselectPrompt: wF(), ConfirmPrompt: IF() }; }); // ../node_modules/prompts/lib/prompts.js var NF = E((BF) => { "use strict"; var di = BF, fee = kF(), kh = /* @__PURE__ */ n((e) => e, "noop"); function qs(e, t, r = {}) { return new Promise((i, s) => { let a = new fee[e](t), o = r.onAbort || kh, u = r.onSubmit || kh, l = r.onExit || kh; a.on("state", t.onState || kh), a.on("submit", (c) => i(u(c))), a.on("exit", (c) => i(l(c))), a.on("abort", (c) => s(o(c))); }); } n(qs, "toPrompt"); di.text = (e) => qs("TextPrompt", e); di.password = (e) => (e.style = "password", di.text(e)); di.invisible = (e) => (e.style = "invisible", di.text(e)); di.number = (e) => qs("NumberPrompt", e); di.date = (e) => qs("DatePrompt", e); di.confirm = (e) => qs("ConfirmPrompt", e); di.list = (e) => { let t = e.separator || ","; return qs("TextPrompt", e, { onSubmit: /* @__PURE__ */ n((r) => r.split(t).map((i) => i.trim()), "onSubmit") }); }; di.toggle = (e) => qs("TogglePrompt", e); di.select = (e) => qs("SelectPrompt", e); di.multiselect = (e) => { e.choices = [].concat(e.choices || []); let t = /* @__PURE__ */ n((r) => r.filter((i) => i.selected).map((i) => i.value), "toSelected"); return qs("MultiselectPrompt", e, { onAbort: t, onSubmit: t }); }; di.autocompleteMultiselect = (e) => { e.choices = [].concat(e.choices || []); let t = /* @__PURE__ */ n((r) => r.filter((i) => i.selected).map((i) => i.value), "toSelected"); return qs("AutocompleteMultiselectPrompt", e, { onAbort: t, onSubmit: t }); }; var dee = /* @__PURE__ */ n((e, t) => Promise.resolve( t.filter((r) => r.title.slice(0, e.length).toLowerCase() === e.toLowerCase()) ), "byTitle"); di.autocomplete = (e) => (e.suggest = e.suggest || dee, e.choices = [].concat(e.choices || []), qs("AutocompletePrompt", e)); }); // ../node_modules/prompts/lib/index.js var LF = E((brt, RF) => { "use strict"; var j2 = NF(), pee = ["suggest", "format", "onState", "validate", "onRender", "type"], MF = /* @__PURE__ */ n(() => { }, "noop"); async function ha(e = [], { onSubmit: t = MF, onCancel: r = MF } = {}) { let i = {}, s = ha._override || {}; e = [].concat(e); let a, o, u, l, c, f, m = /* @__PURE__ */ n(async (h, d, y = !1) => { if (!(!y && h.validate && h.validate(d) !== !0)) return h.format ? await h.format(d, i) : d; }, "getFormattedAnswer"); for (o of e) if ({ name: l, type: c } = o, typeof c == "function" && (c = await c(a, { ...i }, o), o.type = c), !!c) { for (let h in o) { if (pee.includes(h)) continue; let d = o[h]; o[h] = typeof d == "function" ? await d(a, { ...i }, f) : d; } if (f = o, typeof o.message != "string") throw new Error("prompt message is required"); if ({ name: l, type: c } = o, j2[c] === void 0) throw new Error(`prompt type (${c}) is not defined`); if (s[o.name] !== void 0 && (a = await m(o, s[o.name]), a !== void 0)) { i[l] = a; continue; } try { a = ha._injected ? hee(ha._injected, o.initial) : await j2[c](o), i[l] = a = await m(o, a, !0), u = await t(o, a, i); } catch { u = !await r(o, i); } if (u) return i; } return i; } n(ha, "prompt"); function hee(e, t) { let r = e.shift(); if (r instanceof Error) throw r; return r === void 0 ? t : r; } n(hee, "getInjectedAnswer"); function mee(e) { ha._injected = (ha._injected || []).concat(e); } n(mee, "inject"); function yee(e) { ha._override = Object.assign({}, e); } n(yee, "override"); RF.exports = Object.assign(ha, { prompt: ha, prompts: j2, inject: mee, override: yee }); }); // ../node_modules/prompts/index.js var q2 = E((vrt, jF) => { function gee(e) { e = (Array.isArray(e) ? e : e.split(".")).map(Number); let t = 0, r = process.versions.node.split(".").map(Number); for (; t < e.length; t++) { if (r[t] > e[t]) return !1; if (e[t] > r[t]) return !0; } return !1; } n(gee, "isNodeLT"); jF.exports = gee("8.6.0") ? c6() : LF(); }); // ../node_modules/picocolors/picocolors.js var Mh = E((Ert, U2) => { var Nh = process || {}, qF = Nh.argv || [], Bh = Nh.env || {}, bee = !(Bh.NO_COLOR || qF.includes("--no-color")) && (!!Bh.FORCE_COLOR || qF. includes("--color") || Nh.platform === "win32" || (Nh.stdout || {}).isTTY && Bh.TERM !== "dumb" || !!Bh.CI), Dee = /* @__PURE__ */ n((e, t, r = e) => (i) => { let s = "" + i, a = s.indexOf(t, e.length); return ~a ? e + vee(s, t, r, a) + t : e + s + t; }, "formatter"), vee = /* @__PURE__ */ n((e, t, r, i) => { let s = "", a = 0; do s += e.substring(a, i) + r, a = i + t.length, i = e.indexOf(t, a); while (~i); return s + e.substring(a); }, "replaceClose"), UF = /* @__PURE__ */ n((e = bee) => { let t = e ? Dee : () => String; return { isColorSupported: e, reset: t("\x1B[0m", "\x1B[0m"), bold: t("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"), dim: t("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"), italic: t("\x1B[3m", "\x1B[23m"), underline: t("\x1B[4m", "\x1B[24m"), inverse: t("\x1B[7m", "\x1B[27m"), hidden: t("\x1B[8m", "\x1B[28m"), strikethrough: t("\x1B[9m", "\x1B[29m"), black: t("\x1B[30m", "\x1B[39m"), red: t("\x1B[31m", "\x1B[39m"), green: t("\x1B[32m", "\x1B[39m"), yellow: t("\x1B[33m", "\x1B[39m"), blue: t("\x1B[34m", "\x1B[39m"), magenta: t("\x1B[35m", "\x1B[39m"), cyan: t("\x1B[36m", "\x1B[39m"), white: t("\x1B[37m", "\x1B[39m"), gray: t("\x1B[90m", "\x1B[39m"), bgBlack: t("\x1B[40m", "\x1B[49m"), bgRed: t("\x1B[41m", "\x1B[49m"), bgGreen: t("\x1B[42m", "\x1B[49m"), bgYellow: t("\x1B[43m", "\x1B[49m"), bgBlue: t("\x1B[44m", "\x1B[49m"), bgMagenta: t("\x1B[45m", "\x1B[49m"), bgCyan: t("\x1B[46m", "\x1B[49m"), bgWhite: t("\x1B[47m", "\x1B[49m"), blackBright: t("\x1B[90m", "\x1B[39m"), redBright: t("\x1B[91m", "\x1B[39m"), greenBright: t("\x1B[92m", "\x1B[39m"), yellowBright: t("\x1B[93m", "\x1B[39m"), blueBright: t("\x1B[94m", "\x1B[39m"), magentaBright: t("\x1B[95m", "\x1B[39m"), cyanBright: t("\x1B[96m", "\x1B[39m"), whiteBright: t("\x1B[97m", "\x1B[39m"), bgBlackBright: t("\x1B[100m", "\x1B[49m"), bgRedBright: t("\x1B[101m", "\x1B[49m"), bgGreenBright: t("\x1B[102m", "\x1B[49m"), bgYellowBright: t("\x1B[103m", "\x1B[49m"), bgBlueBright: t("\x1B[104m", "\x1B[49m"), bgMagentaBright: t("\x1B[105m", "\x1B[49m"), bgCyanBright: t("\x1B[106m", "\x1B[49m"), bgWhiteBright: t("\x1B[107m", "\x1B[49m") }; }, "createColors"); U2.exports = UF(); U2.exports.createColors = UF; }); // ../node_modules/wrappy/wrappy.js var HF = E((_rt, WF) => { WF.exports = VF; function VF(e, t) { if (e && t) return VF(e)(t); if (typeof e != "function") throw new TypeError("need wrapper function"); return Object.keys(e).forEach(function(i) { r[i] = e[i]; }), r; function r() { for (var i = new Array(arguments.length), s = 0; s < i.length; s++) i[s] = arguments[s]; var a = e.apply(this, i), o = i[i.length - 1]; return typeof a == "function" && a !== o && Object.keys(o).forEach(function(u) { a[u] = o[u]; }), a; } n(r, "wrapper"); } n(VF, "wrappy"); }); // ../node_modules/once/once.js var Lh = E((Frt, H2) => { var KF = HF(); H2.exports = KF(Rh); H2.exports.strict = KF(zF); Rh.proto = Rh(function() { Object.defineProperty(Function.prototype, "once", { value: /* @__PURE__ */ n(function() { return Rh(this); }, "value"), configurable: !0 }), Object.defineProperty(Function.prototype, "onceStrict", { value: /* @__PURE__ */ n(function() { return zF(this); }, "value"), configurable: !0 }); }); function Rh(e) { var t = /* @__PURE__ */ n(function() { return t.called ? t.value : (t.called = !0, t.value = e.apply(this, arguments)); }, "f"); return t.called = !1, t; } n(Rh, "once"); function zF(e) { var t = /* @__PURE__ */ n(function() { if (t.called) throw new Error(t.onceError); return t.called = !0, t.value = e.apply(this, arguments); }, "f"), r = e.name || "Function wrapped with `once`"; return t.onceError = r + " shouldn't be called more than once", t.called = !1, t; } n(zF, "onceStrict"); }); // ../node_modules/end-of-stream/index.js var Yu = E((Ort, XF) => { var Cee = Lh(), wee = /* @__PURE__ */ n(function() { }, "noop"), Aee = /* @__PURE__ */ n(function(e) { return e.setHeader && typeof e.abort == "function"; }, "isRequest"), _ee = /* @__PURE__ */ n(function(e) { return e.stdio && Array.isArray(e.stdio) && e.stdio.length === 3; }, "isChildProcess"), JF = /* @__PURE__ */ n(function(e, t, r) { if (typeof t == "function") return JF(e, null, t); t || (t = {}), r = Cee(r || wee); var i = e._writableState, s = e._readableState, a = t.readable || t.readable !== !1 && e.readable, o = t.writable || t.writable !== !1 && e.writable, u = !1, l = /* @__PURE__ */ n(function() { e.writable || c(); }, "onlegacyfinish"), c = /* @__PURE__ */ n(function() { o = !1, a || r.call(e); }, "onfinish"), f = /* @__PURE__ */ n(function() { a = !1, o || r.call(e); }, "onend"), m = /* @__PURE__ */ n(function(g) { r.call(e, g ? new Error("exited with error code: " + g) : null); }, "onexit"), h = /* @__PURE__ */ n(function(g) { r.call(e, g); }, "onerror"), d = /* @__PURE__ */ n(function() { process.nextTick(y); }, "onclose"), y = /* @__PURE__ */ n(function() { if (!u) { if (a && !(s && s.ended && !s.destroyed)) return r.call(e, new Error("premature close")); if (o && !(i && i.ended && !i.destroyed)) return r.call(e, new Error("premature close")); } }, "onclosenexttick"), p = /* @__PURE__ */ n(function() { e.req.on("finish", c); }, "onrequest"); return Aee(e) ? (e.on("complete", c), e.on("abort", d), e.req ? p() : e.on("request", p)) : o && !i && (e.on("end", l), e.on("close", l)), _ee(e) && e.on("exit", m), e.on("end", f), e.on("finish", c), t.error !== !1 && e.on("error", h), e.on("close", d), function() { u = !0, e.removeListener("complete", c), e.removeListener("abort", d), e.removeListener("request", p), e.req && e.req.removeListener("\ finish", c), e.removeListener("end", l), e.removeListener("close", l), e.removeListener("finish", c), e.removeListener("exit", m), e.removeListener( "end", f), e.removeListener("error", h), e.removeListener("close", d); }; }, "eos"); XF.exports = JF; }); // ../node_modules/pump/index.js var K2 = E((Brt, GF) => { var Pee = Lh(), Fee = Yu(), jh; try { jh = require("fs"); } catch { } var ff = /* @__PURE__ */ n(function() { }, "noop"), Iee = /^v?\.0/.test(process.version), qh = /* @__PURE__ */ n(function(e) { return typeof e == "function"; }, "isFn"), Oee = /* @__PURE__ */ n(function(e) { return !Iee || !jh ? !1 : (e instanceof (jh.ReadStream || ff) || e instanceof (jh.WriteStream || ff)) && qh(e.close); }, "isFS"), kee = /* @__PURE__ */ n(function(e) { return e.setHeader && qh(e.abort); }, "isRequest"), Bee = /* @__PURE__ */ n(function(e, t, r, i) { i = Pee(i); var s = !1; e.on("close", function() { s = !0; }), Fee(e, { readable: t, writable: r }, function(o) { if (o) return i(o); s = !0, i(); }); var a = !1; return function(o) { if (!s && !a) { if (a = !0, Oee(e)) return e.close(ff); if (kee(e)) return e.abort(); if (qh(e.destroy)) return e.destroy(); i(o || new Error("stream was destroyed")); } }; }, "destroyer"), YF = /* @__PURE__ */ n(function(e) { e(); }, "call"), Nee = /* @__PURE__ */ n(function(e, t) { return e.pipe(t); }, "pipe"), Mee = /* @__PURE__ */ n(function() { var e = Array.prototype.slice.call(arguments), t = qh(e[e.length - 1] || ff) && e.pop() || ff; if (Array.isArray(e[0]) && (e = e[0]), e.length < 2) throw new Error("pump requires two streams per minimum"); var r, i = e.map(function(s, a) { var o = a < e.length - 1, u = a > 0; return Bee(s, o, u, function(l) { r || (r = l), l && i.forEach(YF), !o && (i.forEach(YF), t(r)); }); }); return e.reduce(Nee); }, "pump"); GF.exports = Mee; }); // ../node_modules/tar-fs/node_modules/chownr/chownr.js var sI = E((Mrt, iI) => { "use strict"; var Ri = require("fs"), mo = require("path"), Ree = Ri.lchown ? "lchown" : "chown", Lee = Ri.lchownSync ? "lchownSync" : "chownSync", QF = Ri. lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/), ZF = /* @__PURE__ */ n((e, t, r) => { try { return Ri[Lee](e, t, r); } catch (i) { if (i.code !== "ENOENT") throw i; } }, "lchownSync"), jee = /* @__PURE__ */ n((e, t, r) => { try { return Ri.chownSync(e, t, r); } catch (i) { if (i.code !== "ENOENT") throw i; } }, "chownSync"), qee = QF ? (e, t, r, i) => (s) => { !s || s.code !== "EISDIR" ? i(s) : Ri.chown(e, t, r, i); } : (e, t, r, i) => i, z2 = QF ? (e, t, r) => { try { return ZF(e, t, r); } catch (i) { if (i.code !== "EISDIR") throw i; jee(e, t, r); } } : (e, t, r) => ZF(e, t, r), Uee = process.version, eI = /* @__PURE__ */ n((e, t, r) => Ri.readdir(e, t, r), "readdir"), $ee = /* @__PURE__ */ n( (e, t) => Ri.readdirSync(e, t), "readdirSync"); /^v4\./.test(Uee) && (eI = /* @__PURE__ */ n((e, t, r) => Ri.readdir(e, r), "readdir")); var Uh = /* @__PURE__ */ n((e, t, r, i) => { Ri[Ree](e, t, r, qee(e, t, r, (s) => { i(s && s.code !== "ENOENT" ? s : null); })); }, "chown"), tI = /* @__PURE__ */ n((e, t, r, i, s) => { if (typeof t == "string") return Ri.lstat(mo.resolve(e, t), (a, o) => { if (a) return s(a.code !== "ENOENT" ? a : null); o.name = t, tI(e, o, r, i, s); }); if (t.isDirectory()) J2(mo.resolve(e, t.name), r, i, (a) => { if (a) return s(a); let o = mo.resolve(e, t.name); Uh(o, r, i, s); }); else { let a = mo.resolve(e, t.name); Uh(a, r, i, s); } }, "chownrKid"), J2 = /* @__PURE__ */ n((e, t, r, i) => { eI(e, { withFileTypes: !0 }, (s, a) => { if (s) { if (s.code === "ENOENT") return i(); if (s.code !== "ENOTDIR" && s.code !== "ENOTSUP") return i(s); } if (s || !a.length) return Uh(e, t, r, i); let o = a.length, u = null, l = /* @__PURE__ */ n((c) => { if (!u) { if (c) return i(u = c); if (--o === 0) return Uh(e, t, r, i); } }, "then"); a.forEach((c) => tI(e, c, t, r, l)); }); }, "chownr"), Vee = /* @__PURE__ */ n((e, t, r, i) => { if (typeof t == "string") try { let s = Ri.lstatSync(mo.resolve(e, t)); s.name = t, t = s; } catch (s) { if (s.code === "ENOENT") return; throw s; } t.isDirectory() && rI(mo.resolve(e, t.name), r, i), z2(mo.resolve(e, t.name), r, i); }, "chownrKidSync"), rI = /* @__PURE__ */ n((e, t, r) => { let i; try { i = $ee(e, { withFileTypes: !0 }); } catch (s) { if (s.code === "ENOENT") return; if (s.code === "ENOTDIR" || s.code === "ENOTSUP") return z2(e, t, r); throw s; } return i && i.length && i.forEach((s) => Vee(e, s, t, r)), z2(e, t, r); }, "chownrSync"); iI.exports = J2; J2.sync = rI; }); // ../node_modules/readable-stream/lib/internal/streams/stream.js var X2 = E((Lrt, nI) => { nI.exports = require("stream"); }); // ../node_modules/readable-stream/lib/internal/streams/buffer_list.js var fI = E((jrt, cI) => { "use strict"; function aI(e, t) { var r = Object.keys(e); if (Object.getOwnPropertySymbols) { var i = Object.getOwnPropertySymbols(e); t && (i = i.filter(function(s) { return Object.getOwnPropertyDescriptor(e, s).enumerable; })), r.push.apply(r, i); } return r; } n(aI, "ownKeys"); function oI(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t] != null ? arguments[t] : {}; t % 2 ? aI(Object(r), !0).forEach(function(i) { Wee(e, i, r[i]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : aI(Object(r)).forEach(function(i) { Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(r, i)); }); } return e; } n(oI, "_objectSpread"); function Wee(e, t, r) { return t = lI(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e; } n(Wee, "_defineProperty"); function Hee(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } n(Hee, "_classCallCheck"); function uI(e, t) { for (var r = 0; r < t.length; r++) { var i = t[r]; i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e, lI(i.key), i); } } n(uI, "_defineProperties"); function Kee(e, t, r) { return t && uI(e.prototype, t), r && uI(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e; } n(Kee, "_createClass"); function lI(e) { var t = zee(e, "string"); return typeof t == "symbol" ? t : String(t); } n(lI, "_toPropertyKey"); function zee(e, t) { if (typeof e != "object" || e === null) return e; var r = e[Symbol.toPrimitive]; if (r !== void 0) { var i = r.call(e, t || "default"); if (typeof i != "object") return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } n(zee, "_toPrimitive"); var Jee = require("buffer"), $h = Jee.Buffer, Xee = require("util"), Y2 = Xee.inspect, Yee = Y2 && Y2.custom || "inspect"; function Gee(e, t, r) { $h.prototype.copy.call(e, t, r); } n(Gee, "copyBuffer"); cI.exports = /* @__PURE__ */ function() { function e() { Hee(this, e), this.head = null, this.tail = null, this.length = 0; } return n(e, "BufferList"), Kee(e, [{ key: "push", value: /* @__PURE__ */ n(function(r) { var i = { data: r, next: null }; this.length > 0 ? this.tail.next = i : this.head = i, this.tail = i, ++this.length; }, "push") }, { key: "unshift", value: /* @__PURE__ */ n(function(r) { var i = { data: r, next: this.head }; this.length === 0 && (this.tail = i), this.head = i, ++this.length; }, "unshift") }, { key: "shift", value: /* @__PURE__ */ n(function() { if (this.length !== 0) { var r = this.head.data; return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, r; } }, "shift") }, { key: "clear", value: /* @__PURE__ */ n(function() { this.head = this.tail = null, this.length = 0; }, "clear") }, { key: "join", value: /* @__PURE__ */ n(function(r) { if (this.length === 0) return ""; for (var i = this.head, s = "" + i.data; i = i.next; ) s += r + i.data; return s; }, "join") }, { key: "concat", value: /* @__PURE__ */ n(function(r) { if (this.length === 0) return $h.alloc(0); for (var i = $h.allocUnsafe(r >>> 0), s = this.head, a = 0; s; ) Gee(s.data, i, a), a += s.data.length, s = s.next; return i; }, "concat") // Consumes a specified amount of bytes or characters from the buffered data. }, { key: "consume", value: /* @__PURE__ */ n(function(r, i) { var s; return r < this.head.data.length ? (s = this.head.data.slice(0, r), this.head.data = this.head.data.slice(r)) : r === this.head.data. length ? s = this.shift() : s = i ? this._getString(r) : this._getBuffer(r), s; }, "consume") }, { key: "first", value: /* @__PURE__ */ n(function() { return this.head.data; }, "first") // Consumes a specified amount of characters from the buffered data. }, { key: "_getString", value: /* @__PURE__ */ n(function(r) { var i = this.head, s = 1, a = i.data; for (r -= a.length; i = i.next; ) { var o = i.data, u = r > o.length ? o.length : r; if (u === o.length ? a += o : a += o.slice(0, r), r -= u, r === 0) { u === o.length ? (++s, i.next ? this.head = i.next : this.head = this.tail = null) : (this.head = i, i.data = o.slice(u)); break; } ++s; } return this.length -= s, a; }, "_getString") // Consumes a specified amount of bytes from the buffered data. }, { key: "_getBuffer", value: /* @__PURE__ */ n(function(r) { var i = $h.allocUnsafe(r), s = this.head, a = 1; for (s.data.copy(i), r -= s.data.length; s = s.next; ) { var o = s.data, u = r > o.length ? o.length : r; if (o.copy(i, i.length - r, 0, u), r -= u, r === 0) { u === o.length ? (++a, s.next ? this.head = s.next : this.head = this.tail = null) : (this.head = s, s.data = o.slice(u)); break; } ++a; } return this.length -= a, i; }, "_getBuffer") // Make sure the linked list only shows the minimal necessary information. }, { key: Yee, value: /* @__PURE__ */ n(function(r, i) { return Y2(this, oI(oI({}, i), {}, { // Only inspect one level. depth: 0, // It should not recurse. customInspect: !1 })); }, "value") }]), e; }(); }); // ../node_modules/readable-stream/lib/internal/streams/destroy.js var Z2 = E((Urt, pI) => { "use strict"; function Zee(e, t) { var r = this, i = this._readableState && this._readableState.destroyed, s = this._writableState && this._writableState.destroyed; return i || s ? (t ? t(e) : e && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, process. nextTick(G2, this, e)) : process.nextTick(G2, this, e)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(e || null, function(a) { !t && a ? r._writableState ? r._writableState.errorEmitted ? process.nextTick(Vh, r) : (r._writableState.errorEmitted = !0, process.nextTick( dI, r, a)) : process.nextTick(dI, r, a) : t ? (process.nextTick(Vh, r), t(a)) : process.nextTick(Vh, r); }), this); } n(Zee, "destroy"); function dI(e, t) { G2(e, t), Vh(e); } n(dI, "emitErrorAndCloseNT"); function Vh(e) { e._writableState && !e._writableState.emitClose || e._readableState && !e._readableState.emitClose || e.emit("close"); } n(Vh, "emitCloseNT"); function Qee() { this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState. endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1); } n(Qee, "undestroy"); function G2(e, t) { e.emit("error", t); } n(G2, "emitErrorNT"); function ete(e, t) { var r = e._readableState, i = e._writableState; r && r.autoDestroy || i && i.autoDestroy ? e.destroy(t) : e.emit("error", t); } n(ete, "errorOrDestroy"); pI.exports = { destroy: Zee, undestroy: Qee, errorOrDestroy: ete }; }); // ../node_modules/readable-stream/errors.js var ma = E((Vrt, yI) => { "use strict"; var mI = {}; function Li(e, t, r) { r || (r = Error); function i(a, o, u) { return typeof t == "string" ? t : t(a, o, u); } n(i, "getMessage"); class s extends r { static { n(this, "NodeError"); } constructor(o, u, l) { super(i(o, u, l)); } } s.prototype.name = r.name, s.prototype.code = e, mI[e] = s; } n(Li, "createErrorType"); function hI(e, t) { if (Array.isArray(e)) { let r = e.length; return e = e.map((i) => String(i)), r > 2 ? `one of ${t} ${e.slice(0, r - 1).join(", ")}, or ` + e[r - 1] : r === 2 ? `one of ${t} ${e[0]}\ or ${e[1]}` : `of ${t} ${e[0]}`; } else return `of ${t} ${String(e)}`; } n(hI, "oneOf"); function tte(e, t, r) { return e.substr(!r || r < 0 ? 0 : +r, t.length) === t; } n(tte, "startsWith"); function rte(e, t, r) { return (r === void 0 || r > e.length) && (r = e.length), e.substring(r - t.length, r) === t; } n(rte, "endsWith"); function ite(e, t, r) { return typeof r != "number" && (r = 0), r + t.length > e.length ? !1 : e.indexOf(t, r) !== -1; } n(ite, "includes"); Li("ERR_INVALID_OPT_VALUE", function(e, t) { return 'The value "' + t + '" is invalid for option "' + e + '"'; }, TypeError); Li("ERR_INVALID_ARG_TYPE", function(e, t, r) { let i; typeof t == "string" && tte(t, "not ") ? (i = "must not be", t = t.replace(/^not /, "")) : i = "must be"; let s; if (rte(e, " argument")) s = `The ${e} ${i} ${hI(t, "type")}`; else { let a = ite(e, ".") ? "property" : "argument"; s = `The "${e}" ${a} ${i} ${hI(t, "type")}`; } return s += `. Received type ${typeof r}`, s; }, TypeError); Li("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"); Li("ERR_METHOD_NOT_IMPLEMENTED", function(e) { return "The " + e + " method is not implemented"; }); Li("ERR_STREAM_PREMATURE_CLOSE", "Premature close"); Li("ERR_STREAM_DESTROYED", function(e) { return "Cannot call " + e + " after a stream was destroyed"; }); Li("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"); Li("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"); Li("ERR_STREAM_WRITE_AFTER_END", "write after end"); Li("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError); Li("ERR_UNKNOWN_ENCODING", function(e) { return "Unknown encoding: " + e; }, TypeError); Li("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"); yI.exports.codes = mI; }); // ../node_modules/readable-stream/lib/internal/streams/state.js var Q2 = E((Hrt, gI) => { "use strict"; var ste = ma().codes.ERR_INVALID_OPT_VALUE; function nte(e, t, r) { return e.highWaterMark != null ? e.highWaterMark : t ? e[r] : null; } n(nte, "highWaterMarkFrom"); function ate(e, t, r, i) { var s = nte(t, i, r); if (s != null) { if (!(isFinite(s) && Math.floor(s) === s) || s < 0) { var a = i ? r : "highWaterMark"; throw new ste(a, s); } return Math.floor(s); } return e.objectMode ? 16 : 16 * 1024; } n(ate, "getHighWaterMark"); gI.exports = { getHighWaterMark: ate }; }); // ../node_modules/inherits/inherits_browser.js var bI = E((zrt, eD) => { typeof Object.create == "function" ? eD.exports = /* @__PURE__ */ n(function(t, r) { r && (t.super_ = r, t.prototype = Object.create(r.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } })); }, "inherits") : eD.exports = /* @__PURE__ */ n(function(t, r) { if (r) { t.super_ = r; var i = /* @__PURE__ */ n(function() { }, "TempCtor"); i.prototype = r.prototype, t.prototype = new i(), t.prototype.constructor = t; } }, "inherits"); }); // ../node_modules/inherits/inherits.js var St = E((Xrt, rD) => { try { if (tD = require("util"), typeof tD.inherits != "function") throw ""; rD.exports = tD.inherits; } catch { rD.exports = bI(); } var tD; }); // ../node_modules/util-deprecate/node.js var df = E((Yrt, DI) => { DI.exports = require("util").deprecate; }); // ../node_modules/readable-stream/lib/_stream_writable.js var nD = E((Grt, CI) => { "use strict"; CI.exports = zt; function xI(e) { var t = this; this.next = null, this.entry = null, this.finish = function() { kte(t, e); }; } n(xI, "CorkedRequest"); var Gu; zt.WritableState = hf; var ote = { deprecate: df() }, EI = X2(), Hh = require("buffer").Buffer, ute = (typeof global < "u" ? global : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() { }; function lte(e) { return Hh.from(e); } n(lte, "_uint8ArrayToBuffer"); function cte(e) { return Hh.isBuffer(e) || e instanceof ute; } n(cte, "_isUint8Array"); var sD = Z2(), fte = Q2(), dte = fte.getHighWaterMark, ya = ma().codes, pte = ya.ERR_INVALID_ARG_TYPE, hte = ya.ERR_METHOD_NOT_IMPLEMENTED, mte = ya.ERR_MULTIPLE_CALLBACK, yte = ya.ERR_STREAM_CANNOT_PIPE, gte = ya.ERR_STREAM_DESTROYED, bte = ya.ERR_STREAM_NULL_VALUES, Dte = ya. ERR_STREAM_WRITE_AFTER_END, vte = ya.ERR_UNKNOWN_ENCODING, Zu = sD.errorOrDestroy; St()(zt, EI); function xte() { } n(xte, "nop"); function hf(e, t, r) { Gu = Gu || yo(), e = e || {}, typeof r != "boolean" && (r = t instanceof Gu), this.objectMode = !!e.objectMode, r && (this.objectMode = this. objectMode || !!e.writableObjectMode), this.highWaterMark = dte(this, e, "writableHighWaterMark", r), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1; var i = e.decodeStrings === !1; this.decodeStrings = !i, this.defaultEncoding = e.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(s) { _te(t, s); }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = e.emitClose !== !1, this.autoDestroy = !!e.autoDestroy, this.bufferedRequestCount = 0, this. corkedRequestsFree = new xI(this); } n(hf, "WritableState"); hf.prototype.getBuffer = /* @__PURE__ */ n(function() { for (var t = this.bufferedRequest, r = []; t; ) r.push(t), t = t.next; return r; }, "getBuffer"); (function() { try { Object.defineProperty(hf.prototype, "buffer", { get: ote.deprecate(/* @__PURE__ */ n(function() { return this.getBuffer(); }, "writableStateBufferGetter"), "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") }); } catch { } })(); var Wh; typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (Wh = Function.prototype[Symbol. hasInstance], Object.defineProperty(zt, Symbol.hasInstance, { value: /* @__PURE__ */ n(function(t) { return Wh.call(this, t) ? !0 : this !== zt ? !1 : t && t._writableState instanceof hf; }, "value") })) : Wh = /* @__PURE__ */ n(function(t) { return t instanceof this; }, "realHasInstance"); function zt(e) { Gu = Gu || yo(); var t = this instanceof Gu; if (!t && !Wh.call(zt, this)) return new zt(e); this._writableState = new hf(e, this, t), this.writable = !0, e && (typeof e.write == "function" && (this._write = e.write), typeof e.writev == "function" && (this._writev = e.writev), typeof e.destroy == "function" && (this._destroy = e.destroy), typeof e.final == "function" && (this. _final = e.final)), EI.call(this); } n(zt, "Writable"); zt.prototype.pipe = function() { Zu(this, new yte()); }; function Ete(e, t) { var r = new Dte(); Zu(e, r), process.nextTick(t, r); } n(Ete, "writeAfterEnd"); function Ste(e, t, r, i) { var s; return r === null ? s = new bte() : typeof r != "string" && !t.objectMode && (s = new pte("chunk", ["string", "Buffer"], r)), s ? (Zu(e, s), process.nextTick(i, s), !1) : !0; } n(Ste, "validChunk"); zt.prototype.write = function(e, t, r) { var i = this._writableState, s = !1, a = !i.objectMode && cte(e); return a && !Hh.isBuffer(e) && (e = lte(e)), typeof t == "function" && (r = t, t = null), a ? t = "buffer" : t || (t = i.defaultEncoding), typeof r != "function" && (r = xte), i.ending ? Ete(this, r) : (a || Ste(this, i, e, r)) && (i.pendingcb++, s = Cte(this, i, a, e, t, r)), s; }; zt.prototype.cork = function() { this._writableState.corked++; }; zt.prototype.uncork = function() { var e = this._writableState; e.corked && (e.corked--, !e.writing && !e.corked && !e.bufferProcessing && e.bufferedRequest && SI(this, e)); }; zt.prototype.setDefaultEncoding = /* @__PURE__ */ n(function(t) { if (typeof t == "string" && (t = t.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "\ utf-16le", "raw"].indexOf((t + "").toLowerCase()) > -1)) throw new vte(t); return this._writableState.defaultEncoding = t, this; }, "setDefaultEncoding"); Object.defineProperty(zt.prototype, "writableBuffer", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ n(function() { return this._writableState && this._writableState.getBuffer(); }, "get") }); function Tte(e, t, r) { return !e.objectMode && e.decodeStrings !== !1 && typeof t == "string" && (t = Hh.from(t, r)), t; } n(Tte, "decodeChunk"); Object.defineProperty(zt.prototype, "writableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ n(function() { return this._writableState.highWaterMark; }, "get") }); function Cte(e, t, r, i, s, a) { if (!r) { var o = Tte(t, i, s); i !== o && (r = !0, s = "buffer", i = o); } var u = t.objectMode ? 1 : i.length; t.length += u; var l = t.length < t.highWaterMark; if (l || (t.needDrain = !0), t.writing || t.corked) { var c = t.lastBufferedRequest; t.lastBufferedRequest = { chunk: i, encoding: s, isBuf: r, callback: a, next: null }, c ? c.next = t.lastBufferedRequest : t.bufferedRequest = t.lastBufferedRequest, t.bufferedRequestCount += 1; } else iD(e, t, !1, u, i, s, a); return l; } n(Cte, "writeOrBuffer"); function iD(e, t, r, i, s, a, o) { t.writelen = i, t.writecb = o, t.writing = !0, t.sync = !0, t.destroyed ? t.onwrite(new gte("write")) : r ? e._writev(s, t.onwrite) : e. _write(s, a, t.onwrite), t.sync = !1; } n(iD, "doWrite"); function wte(e, t, r, i, s) { --t.pendingcb, r ? (process.nextTick(s, i), process.nextTick(pf, e, t), e._writableState.errorEmitted = !0, Zu(e, i)) : (s(i), e._writableState. errorEmitted = !0, Zu(e, i), pf(e, t)); } n(wte, "onwriteError"); function Ate(e) { e.writing = !1, e.writecb = null, e.length -= e.writelen, e.writelen = 0; } n(Ate, "onwriteStateUpdate"); function _te(e, t) { var r = e._writableState, i = r.sync, s = r.writecb; if (typeof s != "function") throw new mte(); if (Ate(r), t) wte(e, r, i, t, s); else { var a = TI(r) || e.destroyed; !a && !r.corked && !r.bufferProcessing && r.bufferedRequest && SI(e, r), i ? process.nextTick(vI, e, r, a, s) : vI(e, r, a, s); } } n(_te, "onwrite"); function vI(e, t, r, i) { r || Pte(e, t), t.pendingcb--, i(), pf(e, t); } n(vI, "afterWrite"); function Pte(e, t) { t.length === 0 && t.needDrain && (t.needDrain = !1, e.emit("drain")); } n(Pte, "onwriteDrain"); function SI(e, t) { t.bufferProcessing = !0; var r = t.bufferedRequest; if (e._writev && r && r.next) { var i = t.bufferedRequestCount, s = new Array(i), a = t.corkedRequestsFree; a.entry = r; for (var o = 0, u = !0; r; ) s[o] = r, r.isBuf || (u = !1), r = r.next, o += 1; s.allBuffers = u, iD(e, t, !0, t.length, s, "", a.finish), t.pendingcb++, t.lastBufferedRequest = null, a.next ? (t.corkedRequestsFree = a.next, a.next = null) : t.corkedRequestsFree = new xI(t), t.bufferedRequestCount = 0; } else { for (; r; ) { var l = r.chunk, c = r.encoding, f = r.callback, m = t.objectMode ? 1 : l.length; if (iD(e, t, !1, m, l, c, f), r = r.next, t.bufferedRequestCount--, t.writing) break; } r === null && (t.lastBufferedRequest = null); } t.bufferedRequest = r, t.bufferProcessing = !1; } n(SI, "clearBuffer"); zt.prototype._write = function(e, t, r) { r(new hte("_write()")); }; zt.prototype._writev = null; zt.prototype.end = function(e, t, r) { var i = this._writableState; return typeof e == "function" ? (r = e, e = null, t = null) : typeof t == "function" && (r = t, t = null), e != null && this.write(e, t), i.corked && (i.corked = 1, this.uncork()), i.ending || Ote(this, i, r), this; }; Object.defineProperty(zt.prototype, "writableLength", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ n(function() { return this._writableState.length; }, "get") }); function TI(e) { return e.ending && e.length === 0 && e.bufferedRequest === null && !e.finished && !e.writing; } n(TI, "needFinish"); function Fte(e, t) { e._final(function(r) { t.pendingcb--, r && Zu(e, r), t.prefinished = !0, e.emit("prefinish"), pf(e, t); }); } n(Fte, "callFinal"); function Ite(e, t) { !t.prefinished && !t.finalCalled && (typeof e._final == "function" && !t.destroyed ? (t.pendingcb++, t.finalCalled = !0, process.nextTick( Fte, e, t)) : (t.prefinished = !0, e.emit("prefinish"))); } n(Ite, "prefinish"); function pf(e, t) { var r = TI(t); if (r && (Ite(e, t), t.pendingcb === 0 && (t.finished = !0, e.emit("finish"), t.autoDestroy))) { var i = e._readableState; (!i || i.autoDestroy && i.endEmitted) && e.destroy(); } return r; } n(pf, "finishMaybe"); function Ote(e, t, r) { t.ending = !0, pf(e, t), r && (t.finished ? process.nextTick(r) : e.once("finish", r)), t.ended = !0, e.writable = !1; } n(Ote, "endWritable"); function kte(e, t, r) { var i = e.entry; for (e.entry = null; i; ) { var s = i.callback; t.pendingcb--, s(r), i = i.next; } t.corkedRequestsFree.next = e; } n(kte, "onCorkedFinish"); Object.defineProperty(zt.prototype, "destroyed", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ n(function() { return this._writableState === void 0 ? !1 : this._writableState.destroyed; }, "get"), set: /* @__PURE__ */ n(function(t) { this._writableState && (this._writableState.destroyed = t); }, "set") }); zt.prototype.destroy = sD.destroy; zt.prototype._undestroy = sD.undestroy; zt.prototype._destroy = function(e, t) { t(e); }; }); // ../node_modules/readable-stream/lib/_stream_duplex.js var yo = E((Qrt, AI) => { "use strict"; var Bte = Object.keys || function(e) { var t = []; for (var r in e) t.push(r); return t; }; AI.exports = Us; var wI = uD(), oD = nD(); St()(Us, wI); for (aD = Bte(oD.prototype), Kh = 0; Kh < aD.length; Kh++) zh = aD[Kh], Us.prototype[zh] || (Us.prototype[zh] = oD.prototype[zh]); var aD, zh, Kh; function Us(e) { if (!(this instanceof Us)) return new Us(e); wI.call(this, e), oD.call(this, e), this.allowHalfOpen = !0, e && (e.readable === !1 && (this.readable = !1), e.writable === !1 && (this. writable = !1), e.allowHalfOpen === !1 && (this.allowHalfOpen = !1, this.once("end", Nte))); } n(Us, "Duplex"); Object.defineProperty(Us.prototype, "writableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ n(function() { return this._writableState.highWaterMark; }, "get") }); Object.defineProperty(Us.prototype, "writableBuffer", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ n(function() { return this._writableState && this._writableState.getBuffer(); }, "get") }); Object.defineProperty(Us.prototype, "writableLength", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ n(function() { return this._writableState.length; }, "get") }); function Nte() { this._writableState.ended || process.nextTick(Mte, this); } n(Nte, "onend"); function Mte(e) { e.end(); } n(Mte, "onEndNT"); Object.defineProperty(Us.prototype, "destroyed", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ n(function() { return this._readableState === void 0 || this._writableState === void 0 ? !1 : this._readableState.destroyed && this._writableState.destroyed; }, "get"), set: /* @__PURE__ */ n(function(t) { this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = t, this._writableState.destroyed = t); }, "set") }); }); // ../node_modules/readable-stream/lib/internal/streams/end-of-stream.js var Jh = E((tit, FI) => { "use strict"; var _I = ma().codes.ERR_STREAM_PREMATURE_CLOSE; function Rte(e) { var t = !1; return function() { if (!t) { t = !0; for (var r = arguments.length, i = new Array(r), s = 0; s < r; s++) i[s] = arguments[s]; e.apply(this, i); } }; } n(Rte, "once"); function Lte() { } n(Lte, "noop"); function jte(e) { return e.setHeader && typeof e.abort == "function"; } n(jte, "isRequest"); function PI(e, t, r) { if (typeof t == "function") return PI(e, null, t); t || (t = {}), r = Rte(r || Lte); var i = t.readable || t.readable !== !1 && e.readable, s = t.writable || t.writable !== !1 && e.writable, a = /* @__PURE__ */ n(function() { e.writable || u(); }, "onlegacyfinish"), o = e._writableState && e._writableState.finished, u = /* @__PURE__ */ n(function() { s = !1, o = !0, i || r.call(e); }, "onfinish"), l = e._readableState && e._readableState.endEmitted, c = /* @__PURE__ */ n(function() { i = !1, l = !0, s || r.call(e); }, "onend"), f = /* @__PURE__ */ n(function(y) { r.call(e, y); }, "onerror"), m = /* @__PURE__ */ n(function() { var y; if (i && !l) return (!e._readableState || !e._readableState.ended) && (y = new _I()), r.call(e, y); if (s && !o) return (!e._writableState || !e._writableState.ended) && (y = new _I()), r.call(e, y); }, "onclose"), h = /* @__PURE__ */ n(function() { e.req.on("finish", u); }, "onrequest"); return jte(e) ? (e.on("complete", u), e.on("abort", m), e.req ? h() : e.on("request", h)) : s && !e._writableState && (e.on("end", a), e. on("close", a)), e.on("end", c), e.on("finish", u), t.error !== !1 && e.on("error", f), e.on("close", m), function() { e.removeListener("complete", u), e.removeListener("abort", m), e.removeListener("request", h), e.req && e.req.removeListener("finish", u), e.removeListener("end", a), e.removeListener("close", a), e.removeListener("finish", u), e.removeListener("end", c), e.removeListener( "error", f), e.removeListener("close", m); }; } n(PI, "eos"); FI.exports = PI; }); // ../node_modules/readable-stream/lib/internal/streams/async_iterator.js var OI = E((iit, II) => { "use strict"; var Xh; function ga(e, t, r) { return t = qte(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e; } n(ga, "_defineProperty"); function qte(e) { var t = Ute(e, "string"); return typeof t == "symbol" ? t : String(t); } n(qte, "_toPropertyKey"); function Ute(e, t) { if (typeof e != "object" || e === null) return e; var r = e[Symbol.toPrimitive]; if (r !== void 0) { var i = r.call(e, t || "default"); if (typeof i != "object") return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } n(Ute, "_toPrimitive"); var $te = Jh(), ba = Symbol("lastResolve"), go = Symbol("lastReject"), mf = Symbol("error"), Yh = Symbol("ended"), bo = Symbol("lastPromis\ e"), lD = Symbol("handlePromise"), Do = Symbol("stream"); function Da(e, t) { return { value: e, done: t }; } n(Da, "createIterResult"); function Vte(e) { var t = e[ba]; if (t !== null) { var r = e[Do].read(); r !== null && (e[bo] = null, e[ba] = null, e[go] = null, t(Da(r, !1))); } } n(Vte, "readAndResolve"); function Wte(e) { process.nextTick(Vte, e); } n(Wte, "onReadable"); function Hte(e, t) { return function(r, i) { e.then(function() { if (t[Yh]) { r(Da(void 0, !0)); return; } t[lD](r, i); }, i); }; } n(Hte, "wrapForNext"); var Kte = Object.getPrototypeOf(function() { }), zte = Object.setPrototypeOf((Xh = { get stream() { return this[Do]; }, next: /* @__PURE__ */ n(function() { var t = this, r = this[mf]; if (r !== null) return Promise.reject(r); if (this[Yh]) return Promise.resolve(Da(void 0, !0)); if (this[Do].destroyed) return new Promise(function(o, u) { process.nextTick(function() { t[mf] ? u(t[mf]) : o(Da(void 0, !0)); }); }); var i = this[bo], s; if (i) s = new Promise(Hte(i, this)); else { var a = this[Do].read(); if (a !== null) return Promise.resolve(Da(a, !1)); s = new Promise(this[lD]); } return this[bo] = s, s; }, "next") }, ga(Xh, Symbol.asyncIterator, function() { return this; }), ga(Xh, "return", /* @__PURE__ */ n(function() { var t = this; return new Promise(function(r, i) { t[Do].destroy(null, function(s) { if (s) { i(s); return; } r(Da(void 0, !0)); }); }); }, "_return")), Xh), Kte), Jte = /* @__PURE__ */ n(function(t) { var r, i = Object.create(zte, (r = {}, ga(r, Do, { value: t, writable: !0 }), ga(r, ba, { value: null, writable: !0 }), ga(r, go, { value: null, writable: !0 }), ga(r, mf, { value: null, writable: !0 }), ga(r, Yh, { value: t._readableState.endEmitted, writable: !0 }), ga(r, lD, { value: /* @__PURE__ */ n(function(a, o) { var u = i[Do].read(); u ? (i[bo] = null, i[ba] = null, i[go] = null, a(Da(u, !1))) : (i[ba] = a, i[go] = o); }, "value"), writable: !0 }), r)); return i[bo] = null, $te(t, function(s) { if (s && s.code !== "ERR_STREAM_PREMATURE_CLOSE") { var a = i[go]; a !== null && (i[bo] = null, i[ba] = null, i[go] = null, a(s)), i[mf] = s; return; } var o = i[ba]; o !== null && (i[bo] = null, i[ba] = null, i[go] = null, o(Da(void 0, !0))), i[Yh] = !0; }), t.on("readable", Wte.bind(null, i)), i; }, "createReadableStreamAsyncIterator"); II.exports = Jte; }); // ../node_modules/readable-stream/lib/internal/streams/from.js var MI = E((nit, NI) => { "use strict"; function kI(e, t, r, i, s, a, o) { try { var u = e[a](o), l = u.value; } catch (c) { r(c); return; } u.done ? t(l) : Promise.resolve(l).then(i, s); } n(kI, "asyncGeneratorStep"); function Xte(e) { return function() { var t = this, r = arguments; return new Promise(function(i, s) { var a = e.apply(t, r); function o(l) { kI(a, i, s, o, u, "next", l); } n(o, "_next"); function u(l) { kI(a, i, s, o, u, "throw", l); } n(u, "_throw"), o(void 0); }); }; } n(Xte, "_asyncToGenerator"); function BI(e, t) { var r = Object.keys(e); if (Object.getOwnPropertySymbols) { var i = Object.getOwnPropertySymbols(e); t && (i = i.filter(function(s) { return Object.getOwnPropertyDescriptor(e, s).enumerable; })), r.push.apply(r, i); } return r; } n(BI, "ownKeys"); function Yte(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t] != null ? arguments[t] : {}; t % 2 ? BI(Object(r), !0).forEach(function(i) { Gte(e, i, r[i]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : BI(Object(r)).forEach(function(i) { Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(r, i)); }); } return e; } n(Yte, "_objectSpread"); function Gte(e, t, r) { return t = Zte(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e; } n(Gte, "_defineProperty"); function Zte(e) { var t = Qte(e, "string"); return typeof t == "symbol" ? t : String(t); } n(Zte, "_toPropertyKey"); function Qte(e, t) { if (typeof e != "object" || e === null) return e; var r = e[Symbol.toPrimitive]; if (r !== void 0) { var i = r.call(e, t || "default"); if (typeof i != "object") return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } n(Qte, "_toPrimitive"); var ere = ma().codes.ERR_INVALID_ARG_TYPE; function tre(e, t, r) { var i; if (t && typeof t.next == "function") i = t; else if (t && t[Symbol.asyncIterator]) i = t[Symbol.asyncIterator](); else if (t && t[Symbol.iterator]) i = t[Symbol.iterator](); else throw new ere("iterable", ["Iterable"], t); var s = new e(Yte({ objectMode: !0 }, r)), a = !1; s._read = function() { a || (a = !0, o()); }; function o() { return u.apply(this, arguments); } n(o, "next"); function u() { return u = Xte(function* () { try { var l = yield i.next(), c = l.value, f = l.done; f ? s.push(null) : s.push(yield c) ? o() : a = !1; } catch (m) { s.destroy(m); } }), u.apply(this, arguments); } return n(u, "_next2"), s; } n(tre, "from"); NI.exports = tre; }); // ../node_modules/readable-stream/lib/_stream_readable.js var uD = E((uit, KI) => { "use strict"; KI.exports = st; var Qu; st.ReadableState = qI; var oit = require("events").EventEmitter, jI = /* @__PURE__ */ n(function(t, r) { return t.listeners(r).length; }, "EElistenerCount"), gf = X2(), Gh = require("buffer").Buffer, rre = (typeof global < "u" ? global : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() { }; function ire(e) { return Gh.from(e); } n(ire, "_uint8ArrayToBuffer"); function sre(e) { return Gh.isBuffer(e) || e instanceof rre; } n(sre, "_isUint8Array"); var cD = require("util"), Xe; cD && cD.debuglog ? Xe = cD.debuglog("stream") : Xe = /* @__PURE__ */ n(function() { }, "debug"); var nre = fI(), gD = Z2(), are = Q2(), ore = are.getHighWaterMark, Zh = ma().codes, ure = Zh.ERR_INVALID_ARG_TYPE, lre = Zh.ERR_STREAM_PUSH_AFTER_EOF, cre = Zh.ERR_METHOD_NOT_IMPLEMENTED, fre = Zh.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, el, fD, dD; St()(st, gf); var yf = gD.errorOrDestroy, pD = ["error", "close", "destroy", "pause", "resume"]; function dre(e, t, r) { if (typeof e.prependListener == "function") return e.prependListener(t, r); !e._events || !e._events[t] ? e.on(t, r) : Array.isArray(e._events[t]) ? e._events[t].unshift(r) : e._events[t] = [r, e._events[t]]; } n(dre, "prependListener"); function qI(e, t, r) { Qu = Qu || yo(), e = e || {}, typeof r != "boolean" && (r = t instanceof Qu), this.objectMode = !!e.objectMode, r && (this.objectMode = this. objectMode || !!e.readableObjectMode), this.highWaterMark = ore(this, e, "readableHighWaterMark", r), this.buffer = new nre(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = e.emitClose !== !1, this.autoDestroy = !!e.autoDestroy, this.destroyed = !1, this.defaultEncoding = e.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, e.encoding && (el || (el = require("string_decoder/").StringDecoder), this.decoder = new el(e.encoding), this.encoding = e.encoding); } n(qI, "ReadableState"); function st(e) { if (Qu = Qu || yo(), !(this instanceof st)) return new st(e); var t = this instanceof Qu; this._readableState = new qI(e, this, t), this.readable = !0, e && (typeof e.read == "function" && (this._read = e.read), typeof e.destroy == "function" && (this._destroy = e.destroy)), gf.call(this); } n(st, "Readable"); Object.defineProperty(st.prototype, "destroyed", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ n(function() { return this._readableState === void 0 ? !1 : this._readableState.destroyed; }, "get"), set: /* @__PURE__ */ n(function(t) { this._readableState && (this._readableState.destroyed = t); }, "set") }); st.prototype.destroy = gD.destroy; st.prototype._undestroy = gD.undestroy; st.prototype._destroy = function(e, t) { t(e); }; st.prototype.push = function(e, t) { var r = this._readableState, i; return r.objectMode ? i = !0 : typeof e == "string" && (t = t || r.defaultEncoding, t !== r.encoding && (e = Gh.from(e, t), t = ""), i = !0), UI(this, e, t, !1, i); }; st.prototype.unshift = function(e) { return UI(this, e, null, !0, !1); }; function UI(e, t, r, i, s) { Xe("readableAddChunk", t); var a = e._readableState; if (t === null) a.reading = !1, mre(e, a); else { var o; if (s || (o = pre(a, t)), o) yf(e, o); else if (a.objectMode || t && t.length > 0) if (typeof t != "string" && !a.objectMode && Object.getPrototypeOf(t) !== Gh.prototype && (t = ire(t)), i) a.endEmitted ? yf(e, new fre()) : hD(e, a, t, !0); else if (a.ended) yf(e, new lre()); else { if (a.destroyed) return !1; a.reading = !1, a.decoder && !r ? (t = a.decoder.write(t), a.objectMode || t.length !== 0 ? hD(e, a, t, !1) : yD(e, a)) : hD(e, a, t, !1); } else i || (a.reading = !1, yD(e, a)); } return !a.ended && (a.length < a.highWaterMark || a.length === 0); } n(UI, "readableAddChunk"); function hD(e, t, r, i) { t.flowing && t.length === 0 && !t.sync ? (t.awaitDrain = 0, e.emit("data", r)) : (t.length += t.objectMode ? 1 : r.length, i ? t.buffer. unshift(r) : t.buffer.push(r), t.needReadable && Qh(e)), yD(e, t); } n(hD, "addChunk"); function pre(e, t) { var r; return !sre(t) && typeof t != "string" && t !== void 0 && !e.objectMode && (r = new ure("chunk", ["string", "Buffer", "Uint8Array"], t)), r; } n(pre, "chunkInvalid"); st.prototype.isPaused = function() { return this._readableState.flowing === !1; }; st.prototype.setEncoding = function(e) { el || (el = require("string_decoder/").StringDecoder); var t = new el(e); this._readableState.decoder = t, this._readableState.encoding = this._readableState.decoder.encoding; for (var r = this._readableState.buffer.head, i = ""; r !== null; ) i += t.write(r.data), r = r.next; return this._readableState.buffer.clear(), i !== "" && this._readableState.buffer.push(i), this._readableState.length = i.length, this; }; var RI = 1073741824; function hre(e) { return e >= RI ? e = RI : (e--, e |= e >>> 1, e |= e >>> 2, e |= e >>> 4, e |= e >>> 8, e |= e >>> 16, e++), e; } n(hre, "computeNewHighWaterMark"); function LI(e, t) { return e <= 0 || t.length === 0 && t.ended ? 0 : t.objectMode ? 1 : e !== e ? t.flowing && t.length ? t.buffer.head.data.length : t.length : (e > t.highWaterMark && (t.highWaterMark = hre(e)), e <= t.length ? e : t.ended ? t.length : (t.needReadable = !0, 0)); } n(LI, "howMuchToRead"); st.prototype.read = function(e) { Xe("read", e), e = parseInt(e, 10); var t = this._readableState, r = e; if (e !== 0 && (t.emittedReadable = !1), e === 0 && t.needReadable && ((t.highWaterMark !== 0 ? t.length >= t.highWaterMark : t.length > 0) || t.ended)) return Xe("read: emitReadable", t.length, t.ended), t.length === 0 && t.ended ? mD(this) : Qh(this), null; if (e = LI(e, t), e === 0 && t.ended) return t.length === 0 && mD(this), null; var i = t.needReadable; Xe("need readable", i), (t.length === 0 || t.length - e < t.highWaterMark) && (i = !0, Xe("length less than watermark", i)), t.ended || t. reading ? (i = !1, Xe("reading or ended", i)) : i && (Xe("do read"), t.reading = !0, t.sync = !0, t.length === 0 && (t.needReadable = !0), this._read(t.highWaterMark), t.sync = !1, t.reading || (e = LI(r, t))); var s; return e > 0 ? s = WI(e, t) : s = null, s === null ? (t.needReadable = t.length <= t.highWaterMark, e = 0) : (t.length -= e, t.awaitDrain = 0), t.length === 0 && (t.ended || (t.needReadable = !0), r !== e && t.ended && mD(this)), s !== null && this.emit("data", s), s; }; function mre(e, t) { if (Xe("onEofChunk"), !t.ended) { if (t.decoder) { var r = t.decoder.end(); r && r.length && (t.buffer.push(r), t.length += t.objectMode ? 1 : r.length); } t.ended = !0, t.sync ? Qh(e) : (t.needReadable = !1, t.emittedReadable || (t.emittedReadable = !0, $I(e))); } } n(mre, "onEofChunk"); function Qh(e) { var t = e._readableState; Xe("emitReadable", t.needReadable, t.emittedReadable), t.needReadable = !1, t.emittedReadable || (Xe("emitReadable", t.flowing), t.emittedReadable = !0, process.nextTick($I, e)); } n(Qh, "emitReadable"); function $I(e) { var t = e._readableState; Xe("emitReadable_", t.destroyed, t.length, t.ended), !t.destroyed && (t.length || t.ended) && (e.emit("readable"), t.emittedReadable = !1), t.needReadable = !t.flowing && !t.ended && t.length <= t.highWaterMark, bD(e); } n($I, "emitReadable_"); function yD(e, t) { t.readingMore || (t.readingMore = !0, process.nextTick(yre, e, t)); } n(yD, "maybeReadMore"); function yre(e, t) { for (; !t.reading && !t.ended && (t.length < t.highWaterMark || t.flowing && t.length === 0); ) { var r = t.length; if (Xe("maybeReadMore read 0"), e.read(0), r === t.length) break; } t.readingMore = !1; } n(yre, "maybeReadMore_"); st.prototype._read = function(e) { yf(this, new cre("_read()")); }; st.prototype.pipe = function(e, t) { var r = this, i = this._readableState; switch (i.pipesCount) { case 0: i.pipes = e; break; case 1: i.pipes = [i.pipes, e]; break; default: i.pipes.push(e); break; } i.pipesCount += 1, Xe("pipe count=%d opts=%j", i.pipesCount, t); var s = (!t || t.end !== !1) && e !== process.stdout && e !== process.stderr, a = s ? u : p; i.endEmitted ? process.nextTick(a) : r.once("end", a), e.on("unpipe", o); function o(g, b) { Xe("onunpipe"), g === r && b && b.hasUnpiped === !1 && (b.hasUnpiped = !0, f()); } n(o, "onunpipe"); function u() { Xe("onend"), e.end(); } n(u, "onend"); var l = gre(r); e.on("drain", l); var c = !1; function f() { Xe("cleanup"), e.removeListener("close", d), e.removeListener("finish", y), e.removeListener("drain", l), e.removeListener("error", h), e.removeListener("unpipe", o), r.removeListener("end", u), r.removeListener("end", p), r.removeListener("data", m), c = !0, i.awaitDrain && (!e._writableState || e._writableState.needDrain) && l(); } n(f, "cleanup"), r.on("data", m); function m(g) { Xe("ondata"); var b = e.write(g); Xe("dest.write", b), b === !1 && ((i.pipesCount === 1 && i.pipes === e || i.pipesCount > 1 && HI(i.pipes, e) !== -1) && !c && (Xe("fal\ se write response, pause", i.awaitDrain), i.awaitDrain++), r.pause()); } n(m, "ondata"); function h(g) { Xe("onerror", g), p(), e.removeListener("error", h), jI(e, "error") === 0 && yf(e, g); } n(h, "onerror"), dre(e, "error", h); function d() { e.removeListener("finish", y), p(); } n(d, "onclose"), e.once("close", d); function y() { Xe("onfinish"), e.removeListener("close", d), p(); } n(y, "onfinish"), e.once("finish", y); function p() { Xe("unpipe"), r.unpipe(e); } return n(p, "unpipe"), e.emit("pipe", r), i.flowing || (Xe("pipe resume"), r.resume()), e; }; function gre(e) { return /* @__PURE__ */ n(function() { var r = e._readableState; Xe("pipeOnDrain", r.awaitDrain), r.awaitDrain && r.awaitDrain--, r.awaitDrain === 0 && jI(e, "data") && (r.flowing = !0, bD(e)); }, "pipeOnDrainFunctionResult"); } n(gre, "pipeOnDrain"); st.prototype.unpipe = function(e) { var t = this._readableState, r = { hasUnpiped: !1 }; if (t.pipesCount === 0) return this; if (t.pipesCount === 1) return e && e !== t.pipes ? this : (e || (e = t.pipes), t.pipes = null, t.pipesCount = 0, t.flowing = !1, e && e.emit("unpipe", this, r), this); if (!e) { var i = t.pipes, s = t.pipesCount; t.pipes = null, t.pipesCount = 0, t.flowing = !1; for (var a = 0; a < s; a++) i[a].emit("unpipe", this, { hasUnpiped: !1 }); return this; } var o = HI(t.pipes, e); return o === -1 ? this : (t.pipes.splice(o, 1), t.pipesCount -= 1, t.pipesCount === 1 && (t.pipes = t.pipes[0]), e.emit("unpipe", this, r), this); }; st.prototype.on = function(e, t) { var r = gf.prototype.on.call(this, e, t), i = this._readableState; return e === "data" ? (i.readableListening = this.listenerCount("readable") > 0, i.flowing !== !1 && this.resume()) : e === "readable" && !i.endEmitted && !i.readableListening && (i.readableListening = i.needReadable = !0, i.flowing = !1, i.emittedReadable = !1, Xe("on read\ able", i.length, i.reading), i.length ? Qh(this) : i.reading || process.nextTick(bre, this)), r; }; st.prototype.addListener = st.prototype.on; st.prototype.removeListener = function(e, t) { var r = gf.prototype.removeListener.call(this, e, t); return e === "readable" && process.nextTick(VI, this), r; }; st.prototype.removeAllListeners = function(e) { var t = gf.prototype.removeAllListeners.apply(this, arguments); return (e === "readable" || e === void 0) && process.nextTick(VI, this), t; }; function VI(e) { var t = e._readableState; t.readableListening = e.listenerCount("readable") > 0, t.resumeScheduled && !t.paused ? t.flowing = !0 : e.listenerCount("data") > 0 && e. resume(); } n(VI, "updateReadableListening"); function bre(e) { Xe("readable nexttick read 0"), e.read(0); } n(bre, "nReadingNextTick"); st.prototype.resume = function() { var e = this._readableState; return e.flowing || (Xe("resume"), e.flowing = !e.readableListening, Dre(this, e)), e.paused = !1, this; }; function Dre(e, t) { t.resumeScheduled || (t.resumeScheduled = !0, process.nextTick(vre, e, t)); } n(Dre, "resume"); function vre(e, t) { Xe("resume", t.reading), t.reading || e.read(0), t.resumeScheduled = !1, e.emit("resume"), bD(e), t.flowing && !t.reading && e.read(0); } n(vre, "resume_"); st.prototype.pause = function() { return Xe("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (Xe("pause"), this._readableState. flowing = !1, this.emit("pause")), this._readableState.paused = !0, this; }; function bD(e) { var t = e._readableState; for (Xe("flow", t.flowing); t.flowing && e.read() !== null; ) ; } n(bD, "flow"); st.prototype.wrap = function(e) { var t = this, r = this._readableState, i = !1; e.on("end", function() { if (Xe("wrapped end"), r.decoder && !r.ended) { var o = r.decoder.end(); o && o.length && t.push(o); } t.push(null); }), e.on("data", function(o) { if (Xe("wrapped data"), r.decoder && (o = r.decoder.write(o)), !(r.objectMode && o == null) && !(!r.objectMode && (!o || !o.length))) { var u = t.push(o); u || (i = !0, e.pause()); } }); for (var s in e) this[s] === void 0 && typeof e[s] == "function" && (this[s] = (/* @__PURE__ */ n(function(u) { return /* @__PURE__ */ n(function() { return e[u].apply(e, arguments); }, "methodWrapReturnFunction"); }, "methodWrap"))(s)); for (var a = 0; a < pD.length; a++) e.on(pD[a], this.emit.bind(this, pD[a])); return this._read = function(o) { Xe("wrapped _read", o), i && (i = !1, e.resume()); }, this; }; typeof Symbol == "function" && (st.prototype[Symbol.asyncIterator] = function() { return fD === void 0 && (fD = OI()), fD(this); }); Object.defineProperty(st.prototype, "readableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ n(function() { return this._readableState.highWaterMark; }, "get") }); Object.defineProperty(st.prototype, "readableBuffer", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ n(function() { return this._readableState && this._readableState.buffer; }, "get") }); Object.defineProperty(st.prototype, "readableFlowing", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ n(function() { return this._readableState.flowing; }, "get"), set: /* @__PURE__ */ n(function(t) { this._readableState && (this._readableState.flowing = t); }, "set") }); st._fromList = WI; Object.defineProperty(st.prototype, "readableLength", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ n(function() { return this._readableState.length; }, "get") }); function WI(e, t) { if (t.length === 0) return null; var r; return t.objectMode ? r = t.buffer.shift() : !e || e >= t.length ? (t.decoder ? r = t.buffer.join("") : t.buffer.length === 1 ? r = t.buffer. first() : r = t.buffer.concat(t.length), t.buffer.clear()) : r = t.buffer.consume(e, t.decoder), r; } n(WI, "fromList"); function mD(e) { var t = e._readableState; Xe("endReadable", t.endEmitted), t.endEmitted || (t.ended = !0, process.nextTick(xre, t, e)); } n(mD, "endReadable"); function xre(e, t) { if (Xe("endReadableNT", e.endEmitted, e.length), !e.endEmitted && e.length === 0 && (e.endEmitted = !0, t.readable = !1, t.emit("end"), e. autoDestroy)) { var r = t._writableState; (!r || r.autoDestroy && r.finished) && t.destroy(); } } n(xre, "endReadableNT"); typeof Symbol == "function" && (st.from = function(e, t) { return dD === void 0 && (dD = MI()), dD(st, e, t); }); function HI(e, t) { for (var r = 0, i = e.length; r < i; r++) if (e[r] === t) return r; return -1; } n(HI, "indexOf"); }); // ../node_modules/readable-stream/lib/_stream_transform.js var DD = E((cit, JI) => { "use strict"; JI.exports = xn; var e0 = ma().codes, Ere = e0.ERR_METHOD_NOT_IMPLEMENTED, Sre = e0.ERR_MULTIPLE_CALLBACK, Tre = e0.ERR_TRANSFORM_ALREADY_TRANSFORMING, Cre = e0. ERR_TRANSFORM_WITH_LENGTH_0, t0 = yo(); St()(xn, t0); function wre(e, t) { var r = this._transformState; r.transforming = !1; var i = r.writecb; if (i === null) return this.emit("error", new Sre()); r.writechunk = null, r.writecb = null, t != null && this.push(t), i(e); var s = this._readableState; s.reading = !1, (s.needReadable || s.length < s.highWaterMark) && this._read(s.highWaterMark); } n(wre, "afterTransform"); function xn(e) { if (!(this instanceof xn)) return new xn(e); t0.call(this, e), this._transformState = { afterTransform: wre.bind(this), needTransform: !1, transforming: !1, writecb: null, writechunk: null, writeencoding: null }, this._readableState.needReadable = !0, this._readableState.sync = !1, e && (typeof e.transform == "function" && (this._transform = e. transform), typeof e.flush == "function" && (this._flush = e.flush)), this.on("prefinish", Are); } n(xn, "Transform"); function Are() { var e = this; typeof this._flush == "function" && !this._readableState.destroyed ? this._flush(function(t, r) { zI(e, t, r); }) : zI(this, null, null); } n(Are, "prefinish"); xn.prototype.push = function(e, t) { return this._transformState.needTransform = !1, t0.prototype.push.call(this, e, t); }; xn.prototype._transform = function(e, t, r) { r(new Ere("_transform()")); }; xn.prototype._write = function(e, t, r) { var i = this._transformState; if (i.writecb = r, i.writechunk = e, i.writeencoding = t, !i.transforming) { var s = this._readableState; (i.needTransform || s.needReadable || s.length < s.highWaterMark) && this._read(s.highWaterMark); } }; xn.prototype._read = function(e) { var t = this._transformState; t.writechunk !== null && !t.transforming ? (t.transforming = !0, this._transform(t.writechunk, t.writeencoding, t.afterTransform)) : t.needTransform = !0; }; xn.prototype._destroy = function(e, t) { t0.prototype._destroy.call(this, e, function(r) { t(r); }); }; function zI(e, t, r) { if (t) return e.emit("error", t); if (r != null && e.push(r), e._writableState.length) throw new Cre(); if (e._transformState.transforming) throw new Tre(); return e.push(null); } n(zI, "done"); }); // ../node_modules/readable-stream/lib/_stream_passthrough.js var GI = E((dit, YI) => { "use strict"; YI.exports = bf; var XI = DD(); St()(bf, XI); function bf(e) { if (!(this instanceof bf)) return new bf(e); XI.call(this, e); } n(bf, "PassThrough"); bf.prototype._transform = function(e, t, r) { r(null, e); }; }); // ../node_modules/readable-stream/lib/internal/streams/pipeline.js var r5 = E((hit, t5) => { "use strict"; var vD; function _re(e) { var t = !1; return function() { t || (t = !0, e.apply(void 0, arguments)); }; } n(_re, "once"); var e5 = ma().codes, Pre = e5.ERR_MISSING_ARGS, Fre = e5.ERR_STREAM_DESTROYED; function ZI(e) { if (e) throw e; } n(ZI, "noop"); function Ire(e) { return e.setHeader && typeof e.abort == "function"; } n(Ire, "isRequest"); function Ore(e, t, r, i) { i = _re(i); var s = !1; e.on("close", function() { s = !0; }), vD === void 0 && (vD = Jh()), vD(e, { readable: t, writable: r }, function(o) { if (o) return i(o); s = !0, i(); }); var a = !1; return function(o) { if (!s && !a) { if (a = !0, Ire(e)) return e.abort(); if (typeof e.destroy == "function") return e.destroy(); i(o || new Fre("pipe")); } }; } n(Ore, "destroyer"); function QI(e) { e(); } n(QI, "call"); function kre(e, t) { return e.pipe(t); } n(kre, "pipe"); function Bre(e) { return !e.length || typeof e[e.length - 1] != "function" ? ZI : e.pop(); } n(Bre, "popCallback"); function Nre() { for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r]; var i = Bre(t); if (Array.isArray(t[0]) && (t = t[0]), t.length < 2) throw new Pre("streams"); var s, a = t.map(function(o, u) { var l = u < t.length - 1, c = u > 0; return Ore(o, l, c, function(f) { s || (s = f), f && a.forEach(QI), !l && (a.forEach(QI), i(s)); }); }); return t.reduce(kre); } n(Nre, "pipeline"); t5.exports = Nre; }); // ../node_modules/readable-stream/readable.js var tl = E((ji, vf) => { var Df = require("stream"); process.env.READABLE_STREAM === "disable" && Df ? (vf.exports = Df.Readable, Object.assign(vf.exports, Df), vf.exports.Stream = Df) : (ji = vf.exports = uD(), ji.Stream = Df || ji, ji.Readable = ji, ji.Writable = nD(), ji.Duplex = yo(), ji.Transform = DD(), ji.PassThrough = GI(), ji.finished = Jh(), ji.pipeline = r5()); }); // ../node_modules/bl/BufferList.js var n5 = E((yit, s5) => { "use strict"; var { Buffer: fs } = require("buffer"), i5 = Symbol.for("BufferList"); function Tt(e) { if (!(this instanceof Tt)) return new Tt(e); Tt._init.call(this, e); } n(Tt, "BufferList"); Tt._init = /* @__PURE__ */ n(function(t) { Object.defineProperty(this, i5, { value: !0 }), this._bufs = [], this.length = 0, t && this.append(t); }, "_init"); Tt.prototype._new = /* @__PURE__ */ n(function(t) { return new Tt(t); }, "_new"); Tt.prototype._offset = /* @__PURE__ */ n(function(t) { if (t === 0) return [0, 0]; let r = 0; for (let i = 0; i < this._bufs.length; i++) { let s = r + this._bufs[i].length; if (t < s || i === this._bufs.length - 1) return [i, t - r]; r = s; } }, "_offset"); Tt.prototype._reverseOffset = function(e) { let t = e[0], r = e[1]; for (let i = 0; i < t; i++) r += this._bufs[i].length; return r; }; Tt.prototype.get = /* @__PURE__ */ n(function(t) { if (t > this.length || t < 0) return; let r = this._offset(t); return this._bufs[r[0]][r[1]]; }, "get"); Tt.prototype.slice = /* @__PURE__ */ n(function(t, r) { return typeof t == "number" && t < 0 && (t += this.length), typeof r == "number" && r < 0 && (r += this.length), this.copy(null, 0, t, r); }, "slice"); Tt.prototype.copy = /* @__PURE__ */ n(function(t, r, i, s) { if ((typeof i != "number" || i < 0) && (i = 0), (typeof s != "number" || s > this.length) && (s = this.length), i >= this.length || s <= 0) return t || fs.alloc(0); let a = !!t, o = this._offset(i), u = s - i, l = u, c = a && r || 0, f = o[1]; if (i === 0 && s === this.length) { if (!a) return this._bufs.length === 1 ? this._bufs[0] : fs.concat(this._bufs, this.length); for (let m = 0; m < this._bufs.length; m++) this._bufs[m].copy(t, c), c += this._bufs[m].length; return t; } if (l <= this._bufs[o[0]].length - f) return a ? this._bufs[o[0]].copy(t, r, f, f + l) : this._bufs[o[0]].slice(f, f + l); a || (t = fs.allocUnsafe(u)); for (let m = o[0]; m < this._bufs.length; m++) { let h = this._bufs[m].length - f; if (l > h) this._bufs[m].copy(t, c, f), c += h; else { this._bufs[m].copy(t, c, f, f + l), c += h; break; } l -= h, f && (f = 0); } return t.length > c ? t.slice(0, c) : t; }, "copy"); Tt.prototype.shallowSlice = /* @__PURE__ */ n(function(t, r) { if (t = t || 0, r = typeof r != "number" ? this.length : r, t < 0 && (t += this.length), r < 0 && (r += this.length), t === r) return this._new(); let i = this._offset(t), s = this._offset(r), a = this._bufs.slice(i[0], s[0] + 1); return s[1] === 0 ? a.pop() : a[a.length - 1] = a[a.length - 1].slice(0, s[1]), i[1] !== 0 && (a[0] = a[0].slice(i[1])), this._new(a); }, "shallowSlice"); Tt.prototype.toString = /* @__PURE__ */ n(function(t, r, i) { return this.slice(r, i).toString(t); }, "toString"); Tt.prototype.consume = /* @__PURE__ */ n(function(t) { if (t = Math.trunc(t), Number.isNaN(t) || t <= 0) return this; for (; this._bufs.length; ) if (t >= this._bufs[0].length) t -= this._bufs[0].length, this.length -= this._bufs[0].length, this._bufs.shift(); else { this._bufs[0] = this._bufs[0].slice(t), this.length -= t; break; } return this; }, "consume"); Tt.prototype.duplicate = /* @__PURE__ */ n(function() { let t = this._new(); for (let r = 0; r < this._bufs.length; r++) t.append(this._bufs[r]); return t; }, "duplicate"); Tt.prototype.append = /* @__PURE__ */ n(function(t) { if (t == null) return this; if (t.buffer) this._appendBuffer(fs.from(t.buffer, t.byteOffset, t.byteLength)); else if (Array.isArray(t)) for (let r = 0; r < t.length; r++) this.append(t[r]); else if (this._isBufferList(t)) for (let r = 0; r < t._bufs.length; r++) this.append(t._bufs[r]); else typeof t == "number" && (t = t.toString()), this._appendBuffer(fs.from(t)); return this; }, "append"); Tt.prototype._appendBuffer = /* @__PURE__ */ n(function(t) { this._bufs.push(t), this.length += t.length; }, "appendBuffer"); Tt.prototype.indexOf = function(e, t, r) { if (r === void 0 && typeof t == "string" && (r = t, t = void 0), typeof e == "function" || Array.isArray(e)) throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.'); if (typeof e == "number" ? e = fs.from([e]) : typeof e == "string" ? e = fs.from(e, r) : this._isBufferList(e) ? e = e.slice() : Array.isArray( e.buffer) ? e = fs.from(e.buffer, e.byteOffset, e.byteLength) : fs.isBuffer(e) || (e = fs.from(e)), t = Number(t || 0), isNaN(t) && (t = 0), t < 0 && (t = this.length + t), t < 0 && (t = 0), e.length === 0) return t > this.length ? this.length : t; let i = this._offset(t), s = i[0], a = i[1]; for (; s < this._bufs.length; s++) { let o = this._bufs[s]; for (; a < o.length; ) if (o.length - a >= e.length) { let l = o.indexOf(e, a); if (l !== -1) return this._reverseOffset([s, l]); a = o.length - e.length + 1; } else { let l = this._reverseOffset([s, a]); if (this._match(l, e)) return l; a++; } a = 0; } return -1; }; Tt.prototype._match = function(e, t) { if (this.length - e < t.length) return !1; for (let r = 0; r < t.length; r++) if (this.get(e + r) !== t[r]) return !1; return !0; }; (function() { let e = { readDoubleBE: 8, readDoubleLE: 8, readFloatBE: 4, readFloatLE: 4, readInt32BE: 4, readInt32LE: 4, readUInt32BE: 4, readUInt32LE: 4, readInt16BE: 2, readInt16LE: 2, readUInt16BE: 2, readUInt16LE: 2, readInt8: 1, readUInt8: 1, readIntBE: null, readIntLE: null, readUIntBE: null, readUIntLE: null }; for (let t in e) (function(r) { e[r] === null ? Tt.prototype[r] = function(i, s) { return this.slice(i, i + s)[r](0, s); } : Tt.prototype[r] = function(i = 0) { return this.slice(i, i + e[r])[r](0); }; })(t); })(); Tt.prototype._isBufferList = /* @__PURE__ */ n(function(t) { return t instanceof Tt || Tt.isBufferList(t); }, "_isBufferList"); Tt.isBufferList = /* @__PURE__ */ n(function(t) { return t != null && t[i5]; }, "isBufferList"); s5.exports = Tt; }); // ../node_modules/bl/bl.js var a5 = E((bit, r0) => { "use strict"; var xD = tl().Duplex, Mre = St(), xf = n5(); function Lr(e) { if (!(this instanceof Lr)) return new Lr(e); if (typeof e == "function") { this._callback = e; let t = (/* @__PURE__ */ n(function(i) { this._callback && (this._callback(i), this._callback = null); }, "piper")).bind(this); this.on("pipe", /* @__PURE__ */ n(function(i) { i.on("error", t); }, "onPipe")), this.on("unpipe", /* @__PURE__ */ n(function(i) { i.removeListener("error", t); }, "onUnpipe")), e = null; } xf._init.call(this, e), xD.call(this); } n(Lr, "BufferListStream"); Mre(Lr, xD); Object.assign(Lr.prototype, xf.prototype); Lr.prototype._new = /* @__PURE__ */ n(function(t) { return new Lr(t); }, "_new"); Lr.prototype._write = /* @__PURE__ */ n(function(t, r, i) { this._appendBuffer(t), typeof i == "function" && i(); }, "_write"); Lr.prototype._read = /* @__PURE__ */ n(function(t) { if (!this.length) return this.push(null); t = Math.min(t, this.length), this.push(this.slice(0, t)), this.consume(t); }, "_read"); Lr.prototype.end = /* @__PURE__ */ n(function(t) { xD.prototype.end.call(this, t), this._callback && (this._callback(null, this.slice()), this._callback = null); }, "end"); Lr.prototype._destroy = /* @__PURE__ */ n(function(t, r) { this._bufs.length = 0, this.length = 0, r(t); }, "_destroy"); Lr.prototype._isBufferList = /* @__PURE__ */ n(function(t) { return t instanceof Lr || t instanceof xf || Lr.isBufferList(t); }, "_isBufferList"); Lr.isBufferList = xf.isBufferList; r0.exports = Lr; r0.exports.BufferListStream = Lr; r0.exports.BufferList = xf; }); // ../node_modules/tar-stream/headers.js var TD = E((il) => { var Rre = Buffer.alloc, Lre = "0000000000000000000", jre = "7777777777777777777", o5 = 48, u5 = Buffer.from("ustar\0", "binary"), qre = Buffer. from("00", "binary"), Ure = Buffer.from("ustar ", "binary"), $re = Buffer.from(" \0", "binary"), Vre = parseInt("7777", 8), Ef = 257, SD = 263, Wre = /* @__PURE__ */ n(function(e, t, r) { return typeof e != "number" ? r : (e = ~~e, e >= t ? t : e >= 0 || (e += t, e >= 0) ? e : 0); }, "clamp"), Hre = /* @__PURE__ */ n(function(e) { switch (e) { case 0: return "file"; case 1: return "link"; case 2: return "symlink"; case 3: return "character-device"; case 4: return "block-device"; case 5: return "directory"; case 6: return "fifo"; case 7: return "contiguous-file"; case 72: return "pax-header"; case 55: return "pax-global-header"; case 27: return "gnu-long-link-path"; case 28: case 30: return "gnu-long-path"; } return null; }, "toType"), Kre = /* @__PURE__ */ n(function(e) { switch (e) { case "file": return 0; case "link": return 1; case "symlink": return 2; case "character-device": return 3; case "block-device": return 4; case "directory": return 5; case "fifo": return 6; case "contiguous-file": return 7; case "pax-header": return 72; } return 0; }, "toTypeflag"), l5 = /* @__PURE__ */ n(function(e, t, r, i) { for (; r < i; r++) if (e[r] === t) return r; return i; }, "indexOf"), c5 = /* @__PURE__ */ n(function(e) { for (var t = 256, r = 0; r < 148; r++) t += e[r]; for (var i = 156; i < 512; i++) t += e[i]; return t; }, "cksum"), va = /* @__PURE__ */ n(function(e, t) { return e = e.toString(8), e.length > t ? jre.slice(0, t) + " " : Lre.slice(0, t - e.length) + e + " "; }, "encodeOct"); function zre(e) { var t; if (e[0] === 128) t = !0; else if (e[0] === 255) t = !1; else return null; for (var r = [], i = e.length - 1; i > 0; i--) { var s = e[i]; t ? r.push(s) : r.push(255 - s); } var a = 0, o = r.length; for (i = 0; i < o; i++) a += r[i] * Math.pow(256, i); return t ? a : -1 * a; } n(zre, "parse256"); var xa = /* @__PURE__ */ n(function(e, t, r) { if (e = e.slice(t, t + r), t = 0, e[t] & 128) return zre(e); for (; t < e.length && e[t] === 32; ) t++; for (var i = Wre(l5(e, 32, t, e.length), e.length, e.length); t < i && e[t] === 0; ) t++; return i === t ? 0 : parseInt(e.slice(t, i).toString(), 8); }, "decodeOct"), rl = /* @__PURE__ */ n(function(e, t, r, i) { return e.slice(t, l5(e, 0, t, t + r)).toString(i); }, "decodeStr"), ED = /* @__PURE__ */ n(function(e) { var t = Buffer.byteLength(e), r = Math.floor(Math.log(t) / Math.log(10)) + 1; return t + r >= Math.pow(10, r) && r++, t + r + e; }, "addLength"); il.decodeLongPath = function(e, t) { return rl(e, 0, e.length, t); }; il.encodePax = function(e) { var t = ""; e.name && (t += ED(" path=" + e.name + ` `)), e.linkname && (t += ED(" linkpath=" + e.linkname + ` `)); var r = e.pax; if (r) for (var i in r) t += ED(" " + i + "=" + r[i] + ` `); return Buffer.from(t); }; il.decodePax = function(e) { for (var t = {}; e.length; ) { for (var r = 0; r < e.length && e[r] !== 32; ) r++; var i = parseInt(e.slice(0, r).toString(), 10); if (!i) return t; var s = e.slice(r + 1, i - 1).toString(), a = s.indexOf("="); if (a === -1) return t; t[s.slice(0, a)] = s.slice(a + 1), e = e.slice(i); } return t; }; il.encode = function(e) { var t = Rre(512), r = e.name, i = ""; if (e.typeflag === 5 && r[r.length - 1] !== "/" && (r += "/"), Buffer.byteLength(r) !== r.length) return null; for (; Buffer.byteLength(r) > 100; ) { var s = r.indexOf("/"); if (s === -1) return null; i += i ? "/" + r.slice(0, s) : r.slice(0, s), r = r.slice(s + 1); } return Buffer.byteLength(r) > 100 || Buffer.byteLength(i) > 155 || e.linkname && Buffer.byteLength(e.linkname) > 100 ? null : (t.write(r), t.write(va(e.mode & Vre, 6), 100), t.write(va(e.uid, 6), 108), t.write(va(e.gid, 6), 116), t.write(va(e.size, 11), 124), t.write(va(e.mtime. getTime() / 1e3 | 0, 11), 136), t[156] = o5 + Kre(e.type), e.linkname && t.write(e.linkname, 157), u5.copy(t, Ef), qre.copy(t, SD), e.uname && t.write(e.uname, 265), e.gname && t.write(e.gname, 297), t.write(va(e.devmajor || 0, 6), 329), t.write(va(e.devminor || 0, 6), 337), i && t.write(i, 345), t.write(va(c5(t), 6), 148), t); }; il.decode = function(e, t, r) { var i = e[156] === 0 ? 0 : e[156] - o5, s = rl(e, 0, 100, t), a = xa(e, 100, 8), o = xa(e, 108, 8), u = xa(e, 116, 8), l = xa(e, 124, 12), c = xa(e, 136, 12), f = Hre(i), m = e[157] === 0 ? null : rl(e, 157, 100, t), h = rl(e, 265, 32), d = rl(e, 297, 32), y = xa(e, 329, 8), p = xa(e, 337, 8), g = c5(e); if (g === 8 * 32) return null; if (g !== xa(e, 148, 8)) throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?"); if (u5.compare(e, Ef, Ef + 6) === 0) e[345] && (s = rl(e, 345, 155, t) + "/" + s); else if (!(Ure.compare(e, Ef, Ef + 6) === 0 && $re.compare(e, SD, SD + 2) === 0)) { if (!r) throw new Error("Invalid tar header: unknown format."); } return i === 0 && s && s[s.length - 1] === "/" && (i = 5), { name: s, mode: a, uid: o, gid: u, size: l, mtime: new Date(1e3 * c), type: f, linkname: m, uname: h, gname: d, devmajor: y, devminor: p }; }; }); // ../node_modules/tar-stream/extract.js var g5 = E((Eit, y5) => { var d5 = require("util"), Jre = a5(), Sf = TD(), p5 = tl().Writable, h5 = tl().PassThrough, m5 = /* @__PURE__ */ n(function() { }, "noop"), f5 = /* @__PURE__ */ n(function(e) { return e &= 511, e && 512 - e; }, "overflow"), Xre = /* @__PURE__ */ n(function(e, t) { var r = new i0(e, t); return r.end(), r; }, "emptyStream"), Yre = /* @__PURE__ */ n(function(e, t) { return t.path && (e.name = t.path), t.linkpath && (e.linkname = t.linkpath), t.size && (e.size = parseInt(t.size, 10)), e.pax = t, e; }, "mixinPax"), i0 = /* @__PURE__ */ n(function(e, t) { this._parent = e, this.offset = t, h5.call(this, { autoDestroy: !1 }); }, "Source"); d5.inherits(i0, h5); i0.prototype.destroy = function(e) { this._parent.destroy(e); }; var En = /* @__PURE__ */ n(function(e) { if (!(this instanceof En)) return new En(e); p5.call(this, e), e = e || {}, this._offset = 0, this._buffer = Jre(), this._missing = 0, this._partial = !1, this._onparse = m5, this._header = null, this._stream = null, this._overflow = null, this._cb = null, this._locked = !1, this._destroyed = !1, this._pax = null, this._paxGlobal = null, this._gnuLongPath = null, this._gnuLongLinkPath = null; var t = this, r = t._buffer, i = /* @__PURE__ */ n(function() { t._continue(); }, "oncontinue"), s = /* @__PURE__ */ n(function(h) { if (t._locked = !1, h) return t.destroy(h); t._stream || i(); }, "onunlock"), a = /* @__PURE__ */ n(function() { t._stream = null; var h = f5(t._header.size); h ? t._parse(h, o) : t._parse(512, m), t._locked || i(); }, "onstreamend"), o = /* @__PURE__ */ n(function() { t._buffer.consume(f5(t._header.size)), t._parse(512, m), i(); }, "ondrain"), u = /* @__PURE__ */ n(function() { var h = t._header.size; t._paxGlobal = Sf.decodePax(r.slice(0, h)), r.consume(h), a(); }, "onpaxglobalheader"), l = /* @__PURE__ */ n(function() { var h = t._header.size; t._pax = Sf.decodePax(r.slice(0, h)), t._paxGlobal && (t._pax = Object.assign({}, t._paxGlobal, t._pax)), r.consume(h), a(); }, "onpaxheader"), c = /* @__PURE__ */ n(function() { var h = t._header.size; this._gnuLongPath = Sf.decodeLongPath(r.slice(0, h), e.filenameEncoding), r.consume(h), a(); }, "ongnulongpath"), f = /* @__PURE__ */ n(function() { var h = t._header.size; this._gnuLongLinkPath = Sf.decodeLongPath(r.slice(0, h), e.filenameEncoding), r.consume(h), a(); }, "ongnulonglinkpath"), m = /* @__PURE__ */ n(function() { var h = t._offset, d; try { d = t._header = Sf.decode(r.slice(0, 512), e.filenameEncoding, e.allowUnknownFormat); } catch (y) { t.emit("error", y); } if (r.consume(512), !d) { t._parse(512, m), i(); return; } if (d.type === "gnu-long-path") { t._parse(d.size, c), i(); return; } if (d.type === "gnu-long-link-path") { t._parse(d.size, f), i(); return; } if (d.type === "pax-global-header") { t._parse(d.size, u), i(); return; } if (d.type === "pax-header") { t._parse(d.size, l), i(); return; } if (t._gnuLongPath && (d.name = t._gnuLongPath, t._gnuLongPath = null), t._gnuLongLinkPath && (d.linkname = t._gnuLongLinkPath, t._gnuLongLinkPath = null), t._pax && (t._header = d = Yre(d, t._pax), t._pax = null), t._locked = !0, !d.size || d.type === "directory") { t._parse(512, m), t.emit("entry", d, Xre(t, h), s); return; } t._stream = new i0(t, h), t.emit("entry", d, t._stream, s), t._parse(d.size, a), i(); }, "onheader"); this._onheader = m, this._parse(512, m); }, "Extract"); d5.inherits(En, p5); En.prototype.destroy = function(e) { this._destroyed || (this._destroyed = !0, e && this.emit("error", e), this.emit("close"), this._stream && this._stream.emit("close")); }; En.prototype._parse = function(e, t) { this._destroyed || (this._offset += e, this._missing = e, t === this._onheader && (this._partial = !1), this._onparse = t); }; En.prototype._continue = function() { if (!this._destroyed) { var e = this._cb; this._cb = m5, this._overflow ? this._write(this._overflow, void 0, e) : e(); } }; En.prototype._write = function(e, t, r) { if (!this._destroyed) { var i = this._stream, s = this._buffer, a = this._missing; if (e.length && (this._partial = !0), e.length < a) return this._missing -= e.length, this._overflow = null, i ? i.write(e, r) : (s.append(e), r()); this._cb = r, this._missing = 0; var o = null; e.length > a && (o = e.slice(a), e = e.slice(0, a)), i ? i.end(e) : s.append(e), this._overflow = o, this._onparse(); } }; En.prototype._final = function(e) { if (this._partial) return this.destroy(new Error("Unexpected end of data")); e(); }; y5.exports = En; }); // ../node_modules/fs-constants/index.js var D5 = E((Tit, b5) => { b5.exports = require("fs").constants || require("constants"); }); // ../node_modules/tar-stream/pack.js var T5 = E((Cit, S5) => { var sl = D5(), v5 = Yu(), n0 = St(), Gre = Buffer.alloc, x5 = tl().Readable, nl = tl().Writable, Zre = require("string_decoder").StringDecoder, s0 = TD(), Qre = parseInt("755", 8), eie = parseInt("644", 8), E5 = Gre(1024), wD = /* @__PURE__ */ n(function() { }, "noop"), CD = /* @__PURE__ */ n(function(e, t) { t &= 511, t && e.push(E5.slice(0, 512 - t)); }, "overflow"); function tie(e) { switch (e & sl.S_IFMT) { case sl.S_IFBLK: return "block-device"; case sl.S_IFCHR: return "character-device"; case sl.S_IFDIR: return "directory"; case sl.S_IFIFO: return "fifo"; case sl.S_IFLNK: return "symlink"; } return "file"; } n(tie, "modeToType"); var a0 = /* @__PURE__ */ n(function(e) { nl.call(this), this.written = 0, this._to = e, this._destroyed = !1; }, "Sink"); n0(a0, nl); a0.prototype._write = function(e, t, r) { if (this.written += e.length, this._to.push(e)) return r(); this._to._drain = r; }; a0.prototype.destroy = function() { this._destroyed || (this._destroyed = !0, this.emit("close")); }; var o0 = /* @__PURE__ */ n(function() { nl.call(this), this.linkname = "", this._decoder = new Zre("utf-8"), this._destroyed = !1; }, "LinkSink"); n0(o0, nl); o0.prototype._write = function(e, t, r) { this.linkname += this._decoder.write(e), r(); }; o0.prototype.destroy = function() { this._destroyed || (this._destroyed = !0, this.emit("close")); }; var Tf = /* @__PURE__ */ n(function() { nl.call(this), this._destroyed = !1; }, "Void"); n0(Tf, nl); Tf.prototype._write = function(e, t, r) { r(new Error("No body allowed for this entry")); }; Tf.prototype.destroy = function() { this._destroyed || (this._destroyed = !0, this.emit("close")); }; var $s = /* @__PURE__ */ n(function(e) { if (!(this instanceof $s)) return new $s(e); x5.call(this, e), this._drain = wD, this._finalized = !1, this._finalizing = !1, this._destroyed = !1, this._stream = null; }, "Pack"); n0($s, x5); $s.prototype.entry = function(e, t, r) { if (this._stream) throw new Error("already piping an entry"); if (!(this._finalized || this._destroyed)) { typeof t == "function" && (r = t, t = null), r || (r = wD); var i = this; if ((!e.size || e.type === "symlink") && (e.size = 0), e.type || (e.type = tie(e.mode)), e.mode || (e.mode = e.type === "directory" ? Qre : eie), e.uid || (e.uid = 0), e.gid || (e.gid = 0), e.mtime || (e.mtime = /* @__PURE__ */ new Date()), typeof t == "string" && (t = Buffer. from(t)), Buffer.isBuffer(t)) { e.size = t.length, this._encode(e); var s = this.push(t); return CD(i, e.size), s ? process.nextTick(r) : this._drain = r, new Tf(); } if (e.type === "symlink" && !e.linkname) { var a = new o0(); return v5(a, function(u) { if (u) return i.destroy(), r(u); e.linkname = a.linkname, i._encode(e), r(); }), a; } if (this._encode(e), e.type !== "file" && e.type !== "contiguous-file") return process.nextTick(r), new Tf(); var o = new a0(this); return this._stream = o, v5(o, function(u) { if (i._stream = null, u) return i.destroy(), r(u); if (o.written !== e.size) return i.destroy(), r(new Error("size mismatch")); CD(i, e.size), i._finalizing && i.finalize(), r(); }), o; } }; $s.prototype.finalize = function() { if (this._stream) { this._finalizing = !0; return; } this._finalized || (this._finalized = !0, this.push(E5), this.push(null)); }; $s.prototype.destroy = function(e) { this._destroyed || (this._destroyed = !0, e && this.emit("error", e), this.emit("close"), this._stream && this._stream.destroy && this._stream. destroy()); }; $s.prototype._encode = function(e) { if (!e.pax) { var t = s0.encode(e); if (t) { this.push(t); return; } } this._encodePax(e); }; $s.prototype._encodePax = function(e) { var t = s0.encodePax({ name: e.name, linkname: e.linkname, pax: e.pax }), r = { name: "PaxHeader", mode: e.mode, uid: e.uid, gid: e.gid, size: t.length, mtime: e.mtime, type: "pax-header", linkname: e.linkname && "PaxHeader", uname: e.uname, gname: e.gname, devmajor: e.devmajor, devminor: e.devminor }; this.push(s0.encode(r)), this.push(t), CD(this, t.length), r.size = e.size, r.type = e.type, this.push(s0.encode(r)); }; $s.prototype._read = function(e) { var t = this._drain; this._drain = wD, t(); }; S5.exports = $s; }); // ../node_modules/tar-stream/index.js var C5 = E((AD) => { AD.extract = g5(); AD.pack = T5(); }); // ../node_modules/mkdirp-classic/index.js var P5 = E((_it, _5) => { var u0 = require("path"), w5 = require("fs"), A5 = parseInt("0777", 8); _5.exports = al.mkdirp = al.mkdirP = al; function al(e, t, r, i) { typeof t == "function" ? (r = t, t = {}) : (!t || typeof t != "object") && (t = { mode: t }); var s = t.mode, a = t.fs || w5; s === void 0 && (s = A5 & ~process.umask()), i || (i = null); var o = r || function() { }; e = u0.resolve(e), a.mkdir(e, s, function(u) { if (!u) return i = i || e, o(null, i); switch (u.code) { case "ENOENT": al(u0.dirname(e), t, function(l, c) { l ? o(l, c) : al(e, t, o, c); }); break; // In the case of any other error, just see if there's a dir // there already. If so, then hooray! If not, then something // is borked. default: a.stat(e, function(l, c) { l || !c.isDirectory() ? o(u, i) : o(null, i); }); break; } }); } n(al, "mkdirP"); al.sync = /* @__PURE__ */ n(function e(t, r, i) { (!r || typeof r != "object") && (r = { mode: r }); var s = r.mode, a = r.fs || w5; s === void 0 && (s = A5 & ~process.umask()), i || (i = null), t = u0.resolve(t); try { a.mkdirSync(t, s), i = i || t; } catch (u) { switch (u.code) { case "ENOENT": i = e(u0.dirname(t), r, i), e(t, r, i); break; // In the case of any other error, just see if there's a dir // there already. If so, then hooray! If not, then something // is borked. default: var o; try { o = a.statSync(t); } catch { throw u; } if (!o.isDirectory()) throw u; break; } } return i; }, "sync"); }); // ../node_modules/tar-fs/index.js var R5 = E((FD) => { var rie = sI(), I5 = C5(), O5 = K2(), iie = P5(), k5 = require("fs"), jr = require("path"), sie = require("os"), Cf = sie.platform() === "\ win32", wf = /* @__PURE__ */ n(function() { }, "noop"), PD = /* @__PURE__ */ n(function(e) { return e; }, "echo"), _D = Cf ? function(e) { return e.replace(/\\/g, "/").replace(/[:?<>|]/g, "_"); } : PD, nie = /* @__PURE__ */ n(function(e, t, r, i, s, a) { var o = s || ["."]; return /* @__PURE__ */ n(function(l) { if (!o.length) return l(); var c = o.shift(), f = jr.join(r, c); t.call(e, f, function(m, h) { if (m) return l(m); if (!h.isDirectory()) return l(null, c, h); e.readdir(f, function(d, y) { if (d) return l(d); a && y.sort(); for (var p = 0; p < y.length; p++) i(jr.join(r, c, y[p])) || o.push(jr.join(c, y[p])); l(null, c, h); }); }); }, "loop"); }, "statAll"), B5 = /* @__PURE__ */ n(function(e, t) { return function(r) { r.name = r.name.split("/").slice(t).join("/"); var i = r.linkname; return i && (r.type === "link" || jr.isAbsolute(i)) && (r.linkname = i.split("/").slice(t).join("/")), e(r); }; }, "strip"); FD.pack = function(e, t) { e || (e = "."), t || (t = {}); var r = t.fs || k5, i = t.ignore || t.filter || wf, s = t.map || wf, a = t.mapStream || PD, o = nie(r, t.dereference ? r.stat : r.lstat, e, i, t.entries, t.sort), u = t.strict !== !1, l = typeof t.umask == "number" ? ~t.umask : ~N5(), c = typeof t.dmode == "number" ? t.dmode : 0, f = typeof t.fmode == "number" ? t.fmode : 0, m = t.pack || I5.pack(), h = t.finish || wf; t.strip && (s = B5(s, t.strip)), t.readable && (c |= parseInt(555, 8), f |= parseInt(444, 8)), t.writable && (c |= parseInt(333, 8), f |= parseInt(222, 8)); var d = /* @__PURE__ */ n(function(g, b) { r.readlink(jr.join(e, g), function(D, x) { if (D) return m.destroy(D); b.linkname = _D(x), m.entry(b, p); }); }, "onsymlink"), y = /* @__PURE__ */ n(function(g, b, D) { if (g) return m.destroy(g); if (!b) return t.finalize !== !1 && m.finalize(), h(m); if (D.isSocket()) return p(); var x = { name: _D(b), mode: (D.mode | (D.isDirectory() ? c : f)) & l, mtime: D.mtime, size: D.size, type: "file", uid: D.uid, gid: D.gid }; if (D.isDirectory()) return x.size = 0, x.type = "directory", x = s(x) || x, m.entry(x, p); if (D.isSymbolicLink()) return x.size = 0, x.type = "symlink", x = s(x) || x, d(b, x); if (x = s(x) || x, !D.isFile()) return u ? m.destroy(new Error("unsupported type for " + b)) : p(); var T = m.entry(x, p); if (T) { var w = a(r.createReadStream(jr.join(e, b), { start: 0, end: x.size > 0 ? x.size - 1 : x.size }), x); w.on("error", function(B) { T.destroy(B); }), O5(w, T); } }, "onstat"), p = /* @__PURE__ */ n(function(g) { if (g) return m.destroy(g); o(y); }, "onnextentry"); return p(), m; }; var aie = /* @__PURE__ */ n(function(e) { return e.length ? e[e.length - 1] : null; }, "head"), oie = /* @__PURE__ */ n(function() { return process.getuid ? process.getuid() : -1; }, "processGetuid"), N5 = /* @__PURE__ */ n(function() { return process.umask ? process.umask() : 0; }, "processUmask"); FD.extract = function(e, t) { e || (e = "."), t || (t = {}); var r = t.fs || k5, i = t.ignore || t.filter || wf, s = t.map || wf, a = t.mapStream || PD, o = t.chown !== !1 && !Cf && oie() === 0, u = t. extract || I5.extract(), l = [], c = /* @__PURE__ */ new Date(), f = typeof t.umask == "number" ? ~t.umask : ~N5(), m = typeof t.dmode == "number" ? t.dmode : 0, h = typeof t.fmode == "number" ? t.fmode : 0, d = t.strict !== !1; t.strip && (s = B5(s, t.strip)), t.readable && (m |= parseInt(555, 8), h |= parseInt(444, 8)), t.writable && (m |= parseInt(333, 8), h |= parseInt(222, 8)); var y = /* @__PURE__ */ n(function(b, D) { for (var x; (x = aie(l)) && b.slice(0, x[0].length) !== x[0]; ) l.pop(); if (!x) return D(); r.utimes(x[0], c, x[1], D); }, "utimesParent"), p = /* @__PURE__ */ n(function(b, D, x) { if (t.utimes === !1) return x(); if (D.type === "directory") return r.utimes(b, c, D.mtime, x); if (D.type === "symlink") return y(b, x); r.utimes(b, c, D.mtime, function(T) { if (T) return x(T); y(b, x); }); }, "utimes"), g = /* @__PURE__ */ n(function(b, D, x) { var T = D.type === "symlink", w = T ? r.lchmod : r.chmod, B = T ? r.lchown : r.chown; if (!w) return x(); var k = (D.mode | (D.type === "directory" ? m : h)) & f; B && o ? B.call(r, b, D.uid, D.gid, j) : j(null); function j(W) { if (W) return x(W); if (!w) return x(); w.call(r, b, k, x); } n(j, "onchown"); }, "chperm"); return u.on("entry", function(b, D, x) { b = s(b) || b, b.name = _D(b.name); var T = jr.join(e, jr.join("/", b.name)); if (i(T, b)) return D.resume(), x(); var w = /* @__PURE__ */ n(function(Y) { if (Y) return x(Y); p(T, b, function(G) { if (G) return x(G); if (Cf) return x(); g(T, b, x); }); }, "stat"), B = /* @__PURE__ */ n(function() { if (Cf) return x(); r.unlink(T, function() { var Y = jr.resolve(jr.dirname(T), b.linkname); if (!Y.startsWith(jr.resolve(e))) return x(new Error(T + " is not a valid symlink")); r.symlink(b.linkname, T, w); }); }, "onsymlink"), k = /* @__PURE__ */ n(function() { if (Cf) return x(); r.unlink(T, function() { var Y = jr.join(e, jr.join("/", b.linkname)); r.link(Y, T, function(G) { if (G && G.code === "EPERM" && t.hardlinkAsFilesFallback) return D = r.createReadStream(Y), j(); w(G); }); }); }, "onlink"), j = /* @__PURE__ */ n(function() { var Y = r.createWriteStream(T), G = a(D, b); Y.on("error", function(ye) { G.destroy(ye); }), O5(G, Y, function(ye) { if (ye) return x(ye); Y.on("close", w); }); }, "onfile"); if (b.type === "directory") return l.push([T, b.mtime]), F5(T, { fs: r, own: o, uid: b.uid, gid: b.gid }, w); var W = jr.dirname(T); M5(r, W, jr.join(e, "."), function(Y, G) { if (Y) return x(Y); if (!G) return x(new Error(W + " is not a valid path")); F5(W, { fs: r, own: o, uid: b.uid, gid: b.gid }, function(ye) { if (ye) return x(ye); switch (b.type) { case "file": return j(); case "link": return k(); case "symlink": return B(); } if (d) return x(new Error("unsupported type for " + T + " (" + b.type + ")")); D.resume(), x(); }); }); }), t.finish && u.on("finish", t.finish), u; }; function M5(e, t, r, i) { if (t === r) return i(null, !0); e.lstat(t, function(s, a) { if (s && s.code !== "ENOENT") return i(s); if (s || a.isDirectory()) return M5(e, jr.join(t, ".."), r, i); i(null, !1); }); } n(M5, "validate"); function F5(e, t, r) { iie(e, { fs: t.fs }, function(i, s) { !i && s && t.own ? rie(s, t.uid, t.gid, r) : r(i); }); } n(F5, "mkdirfix"); }); // ../node_modules/process-nextick-args/index.js var Ei = E((Oit, ID) => { "use strict"; typeof process > "u" || !process.version || process.version.indexOf("v0.") === 0 || process.version.indexOf("v1.") === 0 && process.version. indexOf("v1.8.") !== 0 ? ID.exports = { nextTick: uie } : ID.exports = process; function uie(e, t, r, i) { if (typeof e != "function") throw new TypeError('"callback" argument must be a function'); var s = arguments.length, a, o; switch (s) { case 0: case 1: return process.nextTick(e); case 2: return process.nextTick(/* @__PURE__ */ n(function() { e.call(null, t); }, "afterTickOne")); case 3: return process.nextTick(/* @__PURE__ */ n(function() { e.call(null, t, r); }, "afterTickTwo")); case 4: return process.nextTick(/* @__PURE__ */ n(function() { e.call(null, t, r, i); }, "afterTickThree")); default: for (a = new Array(s - 1), o = 0; o < a.length; ) a[o++] = arguments[o]; return process.nextTick(/* @__PURE__ */ n(function() { e.apply(null, a); }, "afterTick")); } } n(uie, "nextTick"); }); // ../node_modules/peek-stream/node_modules/isarray/index.js var j5 = E((Bit, L5) => { var lie = {}.toString; L5.exports = Array.isArray || function(e) { return lie.call(e) == "[object Array]"; }; }); // ../node_modules/peek-stream/node_modules/readable-stream/lib/internal/streams/stream.js var OD = E((Nit, q5) => { q5.exports = require("stream"); }); // ../node_modules/peek-stream/node_modules/safe-buffer/index.js var c0 = E((kD, $5) => { var l0 = require("buffer"), Sn = l0.Buffer; function U5(e, t) { for (var r in e) t[r] = e[r]; } n(U5, "copyProps"); Sn.from && Sn.alloc && Sn.allocUnsafe && Sn.allocUnsafeSlow ? $5.exports = l0 : (U5(l0, kD), kD.Buffer = ol); function ol(e, t, r) { return Sn(e, t, r); } n(ol, "SafeBuffer"); U5(Sn, ol); ol.from = function(e, t, r) { if (typeof e == "number") throw new TypeError("Argument must not be a number"); return Sn(e, t, r); }; ol.alloc = function(e, t, r) { if (typeof e != "number") throw new TypeError("Argument must be a number"); var i = Sn(e); return t !== void 0 ? typeof r == "string" ? i.fill(t, r) : i.fill(t) : i.fill(0), i; }; ol.allocUnsafe = function(e) { if (typeof e != "number") throw new TypeError("Argument must be a number"); return Sn(e); }; ol.allocUnsafeSlow = function(e) { if (typeof e != "number") throw new TypeError("Argument must be a number"); return l0.SlowBuffer(e); }; }); // ../node_modules/core-util-is/lib/util.js var dr = E((qr) => { function cie(e) { return Array.isArray ? Array.isArray(e) : f0(e) === "[object Array]"; } n(cie, "isArray"); qr.isArray = cie; function fie(e) { return typeof e == "boolean"; } n(fie, "isBoolean"); qr.isBoolean = fie; function die(e) { return e === null; } n(die, "isNull"); qr.isNull = die; function pie(e) { return e == null; } n(pie, "isNullOrUndefined"); qr.isNullOrUndefined = pie; function hie(e) { return typeof e == "number"; } n(hie, "isNumber"); qr.isNumber = hie; function mie(e) { return typeof e == "string"; } n(mie, "isString"); qr.isString = mie; function yie(e) { return typeof e == "symbol"; } n(yie, "isSymbol"); qr.isSymbol = yie; function gie(e) { return e === void 0; } n(gie, "isUndefined"); qr.isUndefined = gie; function bie(e) { return f0(e) === "[object RegExp]"; } n(bie, "isRegExp"); qr.isRegExp = bie; function Die(e) { return typeof e == "object" && e !== null; } n(Die, "isObject"); qr.isObject = Die; function vie(e) { return f0(e) === "[object Date]"; } n(vie, "isDate"); qr.isDate = vie; function xie(e) { return f0(e) === "[object Error]" || e instanceof Error; } n(xie, "isError"); qr.isError = xie; function Eie(e) { return typeof e == "function"; } n(Eie, "isFunction"); qr.isFunction = Eie; function Sie(e) { return e === null || typeof e == "boolean" || typeof e == "number" || typeof e == "string" || typeof e == "symbol" || // ES6 symbol typeof e > "u"; } n(Sie, "isPrimitive"); qr.isPrimitive = Sie; qr.isBuffer = require("buffer").Buffer.isBuffer; function f0(e) { return Object.prototype.toString.call(e); } n(f0, "objectToString"); }); // ../node_modules/peek-stream/node_modules/readable-stream/lib/internal/streams/BufferList.js var W5 = E((jit, BD) => { "use strict"; function Tie(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } n(Tie, "_classCallCheck"); var V5 = c0().Buffer, Af = require("util"); function Cie(e, t, r) { e.copy(t, r); } n(Cie, "copyBuffer"); BD.exports = function() { function e() { Tie(this, e), this.head = null, this.tail = null, this.length = 0; } return n(e, "BufferList"), e.prototype.push = /* @__PURE__ */ n(function(r) { var i = { data: r, next: null }; this.length > 0 ? this.tail.next = i : this.head = i, this.tail = i, ++this.length; }, "push"), e.prototype.unshift = /* @__PURE__ */ n(function(r) { var i = { data: r, next: this.head }; this.length === 0 && (this.tail = i), this.head = i, ++this.length; }, "unshift"), e.prototype.shift = /* @__PURE__ */ n(function() { if (this.length !== 0) { var r = this.head.data; return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, r; } }, "shift"), e.prototype.clear = /* @__PURE__ */ n(function() { this.head = this.tail = null, this.length = 0; }, "clear"), e.prototype.join = /* @__PURE__ */ n(function(r) { if (this.length === 0) return ""; for (var i = this.head, s = "" + i.data; i = i.next; ) s += r + i.data; return s; }, "join"), e.prototype.concat = /* @__PURE__ */ n(function(r) { if (this.length === 0) return V5.alloc(0); for (var i = V5.allocUnsafe(r >>> 0), s = this.head, a = 0; s; ) Cie(s.data, i, a), a += s.data.length, s = s.next; return i; }, "concat"), e; }(); Af && Af.inspect && Af.inspect.custom && (BD.exports.prototype[Af.inspect.custom] = function() { var e = Af.inspect({ length: this.length }); return this.constructor.name + " " + e; }); }); // ../node_modules/peek-stream/node_modules/readable-stream/lib/internal/streams/destroy.js var ND = E((Uit, H5) => { "use strict"; var d0 = Ei(); function wie(e, t) { var r = this, i = this._readableState && this._readableState.destroyed, s = this._writableState && this._writableState.destroyed; return i || s ? (t ? t(e) : e && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, d0.nextTick( p0, this, e)) : d0.nextTick(p0, this, e)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this. _writableState.destroyed = !0), this._destroy(e || null, function(a) { !t && a ? r._writableState ? r._writableState.errorEmitted || (r._writableState.errorEmitted = !0, d0.nextTick(p0, r, a)) : d0.nextTick( p0, r, a) : t && t(a); }), this); } n(wie, "destroy"); function Aie() { this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState. endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1); } n(Aie, "undestroy"); function p0(e, t) { e.emit("error", t); } n(p0, "emitErrorNT"); H5.exports = { destroy: wie, undestroy: Aie }; }); // ../node_modules/peek-stream/node_modules/readable-stream/lib/_stream_writable.js var RD = E((Vit, Q5) => { "use strict"; var vo = Ei(); Q5.exports = nr; function z5(e) { var t = this; this.next = null, this.entry = null, this.finish = function() { Hie(t, e); }; } n(z5, "CorkedRequest"); var _ie = !process.browser && ["v0.10", "v0.9."].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : vo.nextTick, ul; nr.WritableState = Pf; var J5 = Object.create(dr()); J5.inherits = St(); var Pie = { deprecate: df() }, X5 = OD(), m0 = c0().Buffer, Fie = (typeof global < "u" ? global : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() { }; function Iie(e) { return m0.from(e); } n(Iie, "_uint8ArrayToBuffer"); function Oie(e) { return m0.isBuffer(e) || e instanceof Fie; } n(Oie, "_isUint8Array"); var Y5 = ND(); J5.inherits(nr, X5); function kie() { } n(kie, "nop"); function Pf(e, t) { ul = ul || xo(), e = e || {}; var r = t instanceof ul; this.objectMode = !!e.objectMode, r && (this.objectMode = this.objectMode || !!e.writableObjectMode); var i = e.highWaterMark, s = e.writableHighWaterMark, a = this.objectMode ? 16 : 16 * 1024; i || i === 0 ? this.highWaterMark = i : r && (s || s === 0) ? this.highWaterMark = s : this.highWaterMark = a, this.highWaterMark = Math. floor(this.highWaterMark), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1; var o = e.decodeStrings === !1; this.decodeStrings = !o, this.defaultEncoding = e.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(u) { qie(t, u); }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.bufferedRequestCount = 0, this.corkedRequestsFree = new z5(this); } n(Pf, "WritableState"); Pf.prototype.getBuffer = /* @__PURE__ */ n(function() { for (var t = this.bufferedRequest, r = []; t; ) r.push(t), t = t.next; return r; }, "getBuffer"); (function() { try { Object.defineProperty(Pf.prototype, "buffer", { get: Pie.deprecate(function() { return this.getBuffer(); }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") }); } catch { } })(); var h0; typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (h0 = Function.prototype[Symbol. hasInstance], Object.defineProperty(nr, Symbol.hasInstance, { value: /* @__PURE__ */ n(function(e) { return h0.call(this, e) ? !0 : this !== nr ? !1 : e && e._writableState instanceof Pf; }, "value") })) : h0 = /* @__PURE__ */ n(function(e) { return e instanceof this; }, "realHasInstance"); function nr(e) { if (ul = ul || xo(), !h0.call(nr, this) && !(this instanceof ul)) return new nr(e); this._writableState = new Pf(e, this), this.writable = !0, e && (typeof e.write == "function" && (this._write = e.write), typeof e.writev == "function" && (this._writev = e.writev), typeof e.destroy == "function" && (this._destroy = e.destroy), typeof e.final == "function" && (this. _final = e.final)), X5.call(this); } n(nr, "Writable"); nr.prototype.pipe = function() { this.emit("error", new Error("Cannot pipe, not readable")); }; function Bie(e, t) { var r = new Error("write after end"); e.emit("error", r), vo.nextTick(t, r); } n(Bie, "writeAfterEnd"); function Nie(e, t, r, i) { var s = !0, a = !1; return r === null ? a = new TypeError("May not write null values to stream") : typeof r != "string" && r !== void 0 && !t.objectMode && (a = new TypeError("Invalid non-string/buffer chunk")), a && (e.emit("error", a), vo.nextTick(i, a), s = !1), s; } n(Nie, "validChunk"); nr.prototype.write = function(e, t, r) { var i = this._writableState, s = !1, a = !i.objectMode && Oie(e); return a && !m0.isBuffer(e) && (e = Iie(e)), typeof t == "function" && (r = t, t = null), a ? t = "buffer" : t || (t = i.defaultEncoding), typeof r != "function" && (r = kie), i.ended ? Bie(this, r) : (a || Nie(this, i, e, r)) && (i.pendingcb++, s = Rie(this, i, a, e, t, r)), s; }; nr.prototype.cork = function() { var e = this._writableState; e.corked++; }; nr.prototype.uncork = function() { var e = this._writableState; e.corked && (e.corked--, !e.writing && !e.corked && !e.bufferProcessing && e.bufferedRequest && G5(this, e)); }; nr.prototype.setDefaultEncoding = /* @__PURE__ */ n(function(t) { if (typeof t == "string" && (t = t.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "\ utf-16le", "raw"].indexOf((t + "").toLowerCase()) > -1)) throw new TypeError("Unknown encoding: " + t); return this._writableState.defaultEncoding = t, this; }, "setDefaultEncoding"); function Mie(e, t, r) { return !e.objectMode && e.decodeStrings !== !1 && typeof t == "string" && (t = m0.from(t, r)), t; } n(Mie, "decodeChunk"); Object.defineProperty(nr.prototype, "writableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ n(function() { return this._writableState.highWaterMark; }, "get") }); function Rie(e, t, r, i, s, a) { if (!r) { var o = Mie(t, i, s); i !== o && (r = !0, s = "buffer", i = o); } var u = t.objectMode ? 1 : i.length; t.length += u; var l = t.length < t.highWaterMark; if (l || (t.needDrain = !0), t.writing || t.corked) { var c = t.lastBufferedRequest; t.lastBufferedRequest = { chunk: i, encoding: s, isBuf: r, callback: a, next: null }, c ? c.next = t.lastBufferedRequest : t.bufferedRequest = t.lastBufferedRequest, t.bufferedRequestCount += 1; } else MD(e, t, !1, u, i, s, a); return l; } n(Rie, "writeOrBuffer"); function MD(e, t, r, i, s, a, o) { t.writelen = i, t.writecb = o, t.writing = !0, t.sync = !0, r ? e._writev(s, t.onwrite) : e._write(s, a, t.onwrite), t.sync = !1; } n(MD, "doWrite"); function Lie(e, t, r, i, s) { --t.pendingcb, r ? (vo.nextTick(s, i), vo.nextTick(_f, e, t), e._writableState.errorEmitted = !0, e.emit("error", i)) : (s(i), e._writableState. errorEmitted = !0, e.emit("error", i), _f(e, t)); } n(Lie, "onwriteError"); function jie(e) { e.writing = !1, e.writecb = null, e.length -= e.writelen, e.writelen = 0; } n(jie, "onwriteStateUpdate"); function qie(e, t) { var r = e._writableState, i = r.sync, s = r.writecb; if (jie(r), t) Lie(e, r, i, t, s); else { var a = Z5(r); !a && !r.corked && !r.bufferProcessing && r.bufferedRequest && G5(e, r), i ? _ie(K5, e, r, a, s) : K5(e, r, a, s); } } n(qie, "onwrite"); function K5(e, t, r, i) { r || Uie(e, t), t.pendingcb--, i(), _f(e, t); } n(K5, "afterWrite"); function Uie(e, t) { t.length === 0 && t.needDrain && (t.needDrain = !1, e.emit("drain")); } n(Uie, "onwriteDrain"); function G5(e, t) { t.bufferProcessing = !0; var r = t.bufferedRequest; if (e._writev && r && r.next) { var i = t.bufferedRequestCount, s = new Array(i), a = t.corkedRequestsFree; a.entry = r; for (var o = 0, u = !0; r; ) s[o] = r, r.isBuf || (u = !1), r = r.next, o += 1; s.allBuffers = u, MD(e, t, !0, t.length, s, "", a.finish), t.pendingcb++, t.lastBufferedRequest = null, a.next ? (t.corkedRequestsFree = a.next, a.next = null) : t.corkedRequestsFree = new z5(t), t.bufferedRequestCount = 0; } else { for (; r; ) { var l = r.chunk, c = r.encoding, f = r.callback, m = t.objectMode ? 1 : l.length; if (MD(e, t, !1, m, l, c, f), r = r.next, t.bufferedRequestCount--, t.writing) break; } r === null && (t.lastBufferedRequest = null); } t.bufferedRequest = r, t.bufferProcessing = !1; } n(G5, "clearBuffer"); nr.prototype._write = function(e, t, r) { r(new Error("_write() is not implemented")); }; nr.prototype._writev = null; nr.prototype.end = function(e, t, r) { var i = this._writableState; typeof e == "function" ? (r = e, e = null, t = null) : typeof t == "function" && (r = t, t = null), e != null && this.write(e, t), i.corked && (i.corked = 1, this.uncork()), i.ending || Wie(this, i, r); }; function Z5(e) { return e.ending && e.length === 0 && e.bufferedRequest === null && !e.finished && !e.writing; } n(Z5, "needFinish"); function $ie(e, t) { e._final(function(r) { t.pendingcb--, r && e.emit("error", r), t.prefinished = !0, e.emit("prefinish"), _f(e, t); }); } n($ie, "callFinal"); function Vie(e, t) { !t.prefinished && !t.finalCalled && (typeof e._final == "function" ? (t.pendingcb++, t.finalCalled = !0, vo.nextTick($ie, e, t)) : (t.prefinished = !0, e.emit("prefinish"))); } n(Vie, "prefinish"); function _f(e, t) { var r = Z5(t); return r && (Vie(e, t), t.pendingcb === 0 && (t.finished = !0, e.emit("finish"))), r; } n(_f, "finishMaybe"); function Wie(e, t, r) { t.ending = !0, _f(e, t), r && (t.finished ? vo.nextTick(r) : e.once("finish", r)), t.ended = !0, e.writable = !1; } n(Wie, "endWritable"); function Hie(e, t, r) { var i = e.entry; for (e.entry = null; i; ) { var s = i.callback; t.pendingcb--, s(r), i = i.next; } t.corkedRequestsFree.next = e; } n(Hie, "onCorkedFinish"); Object.defineProperty(nr.prototype, "destroyed", { get: /* @__PURE__ */ n(function() { return this._writableState === void 0 ? !1 : this._writableState.destroyed; }, "get"), set: /* @__PURE__ */ n(function(e) { this._writableState && (this._writableState.destroyed = e); }, "set") }); nr.prototype.destroy = Y5.destroy; nr.prototype._undestroy = Y5.undestroy; nr.prototype._destroy = function(e, t) { this.end(), t(e); }; }); // ../node_modules/peek-stream/node_modules/readable-stream/lib/_stream_duplex.js var xo = E((Hit, i7) => { "use strict"; var e7 = Ei(), Kie = Object.keys || function(e) { var t = []; for (var r in e) t.push(r); return t; }; i7.exports = Tn; var t7 = Object.create(dr()); t7.inherits = St(); var r7 = qD(), jD = RD(); t7.inherits(Tn, r7); for (LD = Kie(jD.prototype), y0 = 0; y0 < LD.length; y0++) g0 = LD[y0], Tn.prototype[g0] || (Tn.prototype[g0] = jD.prototype[g0]); var LD, g0, y0; function Tn(e) { if (!(this instanceof Tn)) return new Tn(e); r7.call(this, e), jD.call(this, e), e && e.readable === !1 && (this.readable = !1), e && e.writable === !1 && (this.writable = !1), this. allowHalfOpen = !0, e && e.allowHalfOpen === !1 && (this.allowHalfOpen = !1), this.once("end", zie); } n(Tn, "Duplex"); Object.defineProperty(Tn.prototype, "writableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ n(function() { return this._writableState.highWaterMark; }, "get") }); function zie() { this.allowHalfOpen || this._writableState.ended || e7.nextTick(Jie, this); } n(zie, "onend"); function Jie(e) { e.end(); } n(Jie, "onEndNT"); Object.defineProperty(Tn.prototype, "destroyed", { get: /* @__PURE__ */ n(function() { return this._readableState === void 0 || this._writableState === void 0 ? !1 : this._readableState.destroyed && this._writableState.destroyed; }, "get"), set: /* @__PURE__ */ n(function(e) { this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = e, this._writableState.destroyed = e); }, "set") }); Tn.prototype._destroy = function(e, t) { this.push(null), this.end(), e7.nextTick(t, e); }; }); // ../node_modules/peek-stream/node_modules/readable-stream/lib/_stream_readable.js var qD = E((Jit, m7) => { "use strict"; var cl = Ei(); m7.exports = Pt; var Xie = j5(), Ff; Pt.ReadableState = c7; var zit = require("events").EventEmitter, o7 = /* @__PURE__ */ n(function(e, t) { return e.listeners(t).length; }, "EElistenerCount"), HD = OD(), If = c0().Buffer, Yie = (typeof global < "u" ? global : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() { }; function Gie(e) { return If.from(e); } n(Gie, "_uint8ArrayToBuffer"); function Zie(e) { return If.isBuffer(e) || e instanceof Yie; } n(Zie, "_isUint8Array"); var u7 = Object.create(dr()); u7.inherits = St(); var UD = require("util"), ct = void 0; UD && UD.debuglog ? ct = UD.debuglog("stream") : ct = /* @__PURE__ */ n(function() { }, "debug"); var Qie = W5(), l7 = ND(), ll; u7.inherits(Pt, HD); var $D = ["error", "close", "destroy", "pause", "resume"]; function ese(e, t, r) { if (typeof e.prependListener == "function") return e.prependListener(t, r); !e._events || !e._events[t] ? e.on(t, r) : Xie(e._events[t]) ? e._events[t].unshift(r) : e._events[t] = [r, e._events[t]]; } n(ese, "prependListener"); function c7(e, t) { Ff = Ff || xo(), e = e || {}; var r = t instanceof Ff; this.objectMode = !!e.objectMode, r && (this.objectMode = this.objectMode || !!e.readableObjectMode); var i = e.highWaterMark, s = e.readableHighWaterMark, a = this.objectMode ? 16 : 16 * 1024; i || i === 0 ? this.highWaterMark = i : r && (s || s === 0) ? this.highWaterMark = s : this.highWaterMark = a, this.highWaterMark = Math. floor(this.highWaterMark), this.buffer = new Qie(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.destroyed = !1, this.defaultEncoding = e.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, e.encoding && (ll || (ll = require("string_decoder/").StringDecoder), this.decoder = new ll( e.encoding), this.encoding = e.encoding); } n(c7, "ReadableState"); function Pt(e) { if (Ff = Ff || xo(), !(this instanceof Pt)) return new Pt(e); this._readableState = new c7(e, this), this.readable = !0, e && (typeof e.read == "function" && (this._read = e.read), typeof e.destroy == "function" && (this._destroy = e.destroy)), HD.call(this); } n(Pt, "Readable"); Object.defineProperty(Pt.prototype, "destroyed", { get: /* @__PURE__ */ n(function() { return this._readableState === void 0 ? !1 : this._readableState.destroyed; }, "get"), set: /* @__PURE__ */ n(function(e) { this._readableState && (this._readableState.destroyed = e); }, "set") }); Pt.prototype.destroy = l7.destroy; Pt.prototype._undestroy = l7.undestroy; Pt.prototype._destroy = function(e, t) { this.push(null), t(e); }; Pt.prototype.push = function(e, t) { var r = this._readableState, i; return r.objectMode ? i = !0 : typeof e == "string" && (t = t || r.defaultEncoding, t !== r.encoding && (e = If.from(e, t), t = ""), i = !0), f7(this, e, t, !1, i); }; Pt.prototype.unshift = function(e) { return f7(this, e, null, !0, !1); }; function f7(e, t, r, i, s) { var a = e._readableState; if (t === null) a.reading = !1, sse(e, a); else { var o; s || (o = tse(a, t)), o ? e.emit("error", o) : a.objectMode || t && t.length > 0 ? (typeof t != "string" && !a.objectMode && Object.getPrototypeOf( t) !== If.prototype && (t = Gie(t)), i ? a.endEmitted ? e.emit("error", new Error("stream.unshift() after end event")) : VD(e, a, t, !0) : a.ended ? e.emit("error", new Error("stream.push() after EOF")) : (a.reading = !1, a.decoder && !r ? (t = a.decoder.write(t), a.objectMode || t.length !== 0 ? VD(e, a, t, !1) : d7(e, a)) : VD(e, a, t, !1))) : i || (a.reading = !1); } return rse(a); } n(f7, "readableAddChunk"); function VD(e, t, r, i) { t.flowing && t.length === 0 && !t.sync ? (e.emit("data", r), e.read(0)) : (t.length += t.objectMode ? 1 : r.length, i ? t.buffer.unshift( r) : t.buffer.push(r), t.needReadable && b0(e)), d7(e, t); } n(VD, "addChunk"); function tse(e, t) { var r; return !Zie(t) && typeof t != "string" && t !== void 0 && !e.objectMode && (r = new TypeError("Invalid non-string/buffer chunk")), r; } n(tse, "chunkInvalid"); function rse(e) { return !e.ended && (e.needReadable || e.length < e.highWaterMark || e.length === 0); } n(rse, "needMoreData"); Pt.prototype.isPaused = function() { return this._readableState.flowing === !1; }; Pt.prototype.setEncoding = function(e) { return ll || (ll = require("string_decoder/").StringDecoder), this._readableState.decoder = new ll(e), this._readableState.encoding = e, this; }; var s7 = 8388608; function ise(e) { return e >= s7 ? e = s7 : (e--, e |= e >>> 1, e |= e >>> 2, e |= e >>> 4, e |= e >>> 8, e |= e >>> 16, e++), e; } n(ise, "computeNewHighWaterMark"); function n7(e, t) { return e <= 0 || t.length === 0 && t.ended ? 0 : t.objectMode ? 1 : e !== e ? t.flowing && t.length ? t.buffer.head.data.length : t.length : (e > t.highWaterMark && (t.highWaterMark = ise(e)), e <= t.length ? e : t.ended ? t.length : (t.needReadable = !0, 0)); } n(n7, "howMuchToRead"); Pt.prototype.read = function(e) { ct("read", e), e = parseInt(e, 10); var t = this._readableState, r = e; if (e !== 0 && (t.emittedReadable = !1), e === 0 && t.needReadable && (t.length >= t.highWaterMark || t.ended)) return ct("read: emitReadable", t.length, t.ended), t.length === 0 && t.ended ? WD(this) : b0(this), null; if (e = n7(e, t), e === 0 && t.ended) return t.length === 0 && WD(this), null; var i = t.needReadable; ct("need readable", i), (t.length === 0 || t.length - e < t.highWaterMark) && (i = !0, ct("length less than watermark", i)), t.ended || t. reading ? (i = !1, ct("reading or ended", i)) : i && (ct("do read"), t.reading = !0, t.sync = !0, t.length === 0 && (t.needReadable = !0), this._read(t.highWaterMark), t.sync = !1, t.reading || (e = n7(r, t))); var s; return e > 0 ? s = p7(e, t) : s = null, s === null ? (t.needReadable = !0, e = 0) : t.length -= e, t.length === 0 && (t.ended || (t.needReadable = !0), r !== e && t.ended && WD(this)), s !== null && this.emit("data", s), s; }; function sse(e, t) { if (!t.ended) { if (t.decoder) { var r = t.decoder.end(); r && r.length && (t.buffer.push(r), t.length += t.objectMode ? 1 : r.length); } t.ended = !0, b0(e); } } n(sse, "onEofChunk"); function b0(e) { var t = e._readableState; t.needReadable = !1, t.emittedReadable || (ct("emitReadable", t.flowing), t.emittedReadable = !0, t.sync ? cl.nextTick(a7, e) : a7(e)); } n(b0, "emitReadable"); function a7(e) { ct("emit readable"), e.emit("readable"), KD(e); } n(a7, "emitReadable_"); function d7(e, t) { t.readingMore || (t.readingMore = !0, cl.nextTick(nse, e, t)); } n(d7, "maybeReadMore"); function nse(e, t) { for (var r = t.length; !t.reading && !t.flowing && !t.ended && t.length < t.highWaterMark && (ct("maybeReadMore read 0"), e.read(0), r !== t.length); ) r = t.length; t.readingMore = !1; } n(nse, "maybeReadMore_"); Pt.prototype._read = function(e) { this.emit("error", new Error("_read() is not implemented")); }; Pt.prototype.pipe = function(e, t) { var r = this, i = this._readableState; switch (i.pipesCount) { case 0: i.pipes = e; break; case 1: i.pipes = [i.pipes, e]; break; default: i.pipes.push(e); break; } i.pipesCount += 1, ct("pipe count=%d opts=%j", i.pipesCount, t); var s = (!t || t.end !== !1) && e !== process.stdout && e !== process.stderr, a = s ? u : g; i.endEmitted ? cl.nextTick(a) : r.once("end", a), e.on("unpipe", o); function o(b, D) { ct("onunpipe"), b === r && D && D.hasUnpiped === !1 && (D.hasUnpiped = !0, f()); } n(o, "onunpipe"); function u() { ct("onend"), e.end(); } n(u, "onend"); var l = ase(r); e.on("drain", l); var c = !1; function f() { ct("cleanup"), e.removeListener("close", y), e.removeListener("finish", p), e.removeListener("drain", l), e.removeListener("error", d), e.removeListener("unpipe", o), r.removeListener("end", u), r.removeListener("end", g), r.removeListener("data", h), c = !0, i.awaitDrain && (!e._writableState || e._writableState.needDrain) && l(); } n(f, "cleanup"); var m = !1; r.on("data", h); function h(b) { ct("ondata"), m = !1; var D = e.write(b); D === !1 && !m && ((i.pipesCount === 1 && i.pipes === e || i.pipesCount > 1 && h7(i.pipes, e) !== -1) && !c && (ct("false write respon\ se, pause", i.awaitDrain), i.awaitDrain++, m = !0), r.pause()); } n(h, "ondata"); function d(b) { ct("onerror", b), g(), e.removeListener("error", d), o7(e, "error") === 0 && e.emit("error", b); } n(d, "onerror"), ese(e, "error", d); function y() { e.removeListener("finish", p), g(); } n(y, "onclose"), e.once("close", y); function p() { ct("onfinish"), e.removeListener("close", y), g(); } n(p, "onfinish"), e.once("finish", p); function g() { ct("unpipe"), r.unpipe(e); } return n(g, "unpipe"), e.emit("pipe", r), i.flowing || (ct("pipe resume"), r.resume()), e; }; function ase(e) { return function() { var t = e._readableState; ct("pipeOnDrain", t.awaitDrain), t.awaitDrain && t.awaitDrain--, t.awaitDrain === 0 && o7(e, "data") && (t.flowing = !0, KD(e)); }; } n(ase, "pipeOnDrain"); Pt.prototype.unpipe = function(e) { var t = this._readableState, r = { hasUnpiped: !1 }; if (t.pipesCount === 0) return this; if (t.pipesCount === 1) return e && e !== t.pipes ? this : (e || (e = t.pipes), t.pipes = null, t.pipesCount = 0, t.flowing = !1, e && e.emit("unpipe", this, r), this); if (!e) { var i = t.pipes, s = t.pipesCount; t.pipes = null, t.pipesCount = 0, t.flowing = !1; for (var a = 0; a < s; a++) i[a].emit("unpipe", this, { hasUnpiped: !1 }); return this; } var o = h7(t.pipes, e); return o === -1 ? this : (t.pipes.splice(o, 1), t.pipesCount -= 1, t.pipesCount === 1 && (t.pipes = t.pipes[0]), e.emit("unpipe", this, r), this); }; Pt.prototype.on = function(e, t) { var r = HD.prototype.on.call(this, e, t); if (e === "data") this._readableState.flowing !== !1 && this.resume(); else if (e === "readable") { var i = this._readableState; !i.endEmitted && !i.readableListening && (i.readableListening = i.needReadable = !0, i.emittedReadable = !1, i.reading ? i.length && b0( this) : cl.nextTick(ose, this)); } return r; }; Pt.prototype.addListener = Pt.prototype.on; function ose(e) { ct("readable nexttick read 0"), e.read(0); } n(ose, "nReadingNextTick"); Pt.prototype.resume = function() { var e = this._readableState; return e.flowing || (ct("resume"), e.flowing = !0, use(this, e)), this; }; function use(e, t) { t.resumeScheduled || (t.resumeScheduled = !0, cl.nextTick(lse, e, t)); } n(use, "resume"); function lse(e, t) { t.reading || (ct("resume read 0"), e.read(0)), t.resumeScheduled = !1, t.awaitDrain = 0, e.emit("resume"), KD(e), t.flowing && !t.reading && e.read(0); } n(lse, "resume_"); Pt.prototype.pause = function() { return ct("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (ct("pause"), this._readableState. flowing = !1, this.emit("pause")), this; }; function KD(e) { var t = e._readableState; for (ct("flow", t.flowing); t.flowing && e.read() !== null; ) ; } n(KD, "flow"); Pt.prototype.wrap = function(e) { var t = this, r = this._readableState, i = !1; e.on("end", function() { if (ct("wrapped end"), r.decoder && !r.ended) { var o = r.decoder.end(); o && o.length && t.push(o); } t.push(null); }), e.on("data", function(o) { if (ct("wrapped data"), r.decoder && (o = r.decoder.write(o)), !(r.objectMode && o == null) && !(!r.objectMode && (!o || !o.length))) { var u = t.push(o); u || (i = !0, e.pause()); } }); for (var s in e) this[s] === void 0 && typeof e[s] == "function" && (this[s] = /* @__PURE__ */ function(o) { return function() { return e[o].apply(e, arguments); }; }(s)); for (var a = 0; a < $D.length; a++) e.on($D[a], this.emit.bind(this, $D[a])); return this._read = function(o) { ct("wrapped _read", o), i && (i = !1, e.resume()); }, this; }; Object.defineProperty(Pt.prototype, "readableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ n(function() { return this._readableState.highWaterMark; }, "get") }); Pt._fromList = p7; function p7(e, t) { if (t.length === 0) return null; var r; return t.objectMode ? r = t.buffer.shift() : !e || e >= t.length ? (t.decoder ? r = t.buffer.join("") : t.buffer.length === 1 ? r = t.buffer. head.data : r = t.buffer.concat(t.length), t.buffer.clear()) : r = cse(e, t.buffer, t.decoder), r; } n(p7, "fromList"); function cse(e, t, r) { var i; return e < t.head.data.length ? (i = t.head.data.slice(0, e), t.head.data = t.head.data.slice(e)) : e === t.head.data.length ? i = t.shift() : i = r ? fse(e, t) : dse(e, t), i; } n(cse, "fromListPartial"); function fse(e, t) { var r = t.head, i = 1, s = r.data; for (e -= s.length; r = r.next; ) { var a = r.data, o = e > a.length ? a.length : e; if (o === a.length ? s += a : s += a.slice(0, e), e -= o, e === 0) { o === a.length ? (++i, r.next ? t.head = r.next : t.head = t.tail = null) : (t.head = r, r.data = a.slice(o)); break; } ++i; } return t.length -= i, s; } n(fse, "copyFromBufferString"); function dse(e, t) { var r = If.allocUnsafe(e), i = t.head, s = 1; for (i.data.copy(r), e -= i.data.length; i = i.next; ) { var a = i.data, o = e > a.length ? a.length : e; if (a.copy(r, r.length - e, 0, o), e -= o, e === 0) { o === a.length ? (++s, i.next ? t.head = i.next : t.head = t.tail = null) : (t.head = i, i.data = a.slice(o)); break; } ++s; } return t.length -= s, r; } n(dse, "copyFromBuffer"); function WD(e) { var t = e._readableState; if (t.length > 0) throw new Error('"endReadable()" called on non-empty stream'); t.endEmitted || (t.ended = !0, cl.nextTick(pse, t, e)); } n(WD, "endReadable"); function pse(e, t) { !e.endEmitted && e.length === 0 && (e.endEmitted = !0, t.readable = !1, t.emit("end")); } n(pse, "endReadableNT"); function h7(e, t) { for (var r = 0, i = e.length; r < i; r++) if (e[r] === t) return r; return -1; } n(h7, "indexOf"); }); // ../node_modules/peek-stream/node_modules/readable-stream/lib/_stream_transform.js var zD = E((Yit, b7) => { "use strict"; b7.exports = Cn; var D0 = xo(), g7 = Object.create(dr()); g7.inherits = St(); g7.inherits(Cn, D0); function hse(e, t) { var r = this._transformState; r.transforming = !1; var i = r.writecb; if (!i) return this.emit("error", new Error("write callback called multiple times")); r.writechunk = null, r.writecb = null, t != null && this.push(t), i(e); var s = this._readableState; s.reading = !1, (s.needReadable || s.length < s.highWaterMark) && this._read(s.highWaterMark); } n(hse, "afterTransform"); function Cn(e) { if (!(this instanceof Cn)) return new Cn(e); D0.call(this, e), this._transformState = { afterTransform: hse.bind(this), needTransform: !1, transforming: !1, writecb: null, writechunk: null, writeencoding: null }, this._readableState.needReadable = !0, this._readableState.sync = !1, e && (typeof e.transform == "function" && (this._transform = e. transform), typeof e.flush == "function" && (this._flush = e.flush)), this.on("prefinish", mse); } n(Cn, "Transform"); function mse() { var e = this; typeof this._flush == "function" ? this._flush(function(t, r) { y7(e, t, r); }) : y7(this, null, null); } n(mse, "prefinish"); Cn.prototype.push = function(e, t) { return this._transformState.needTransform = !1, D0.prototype.push.call(this, e, t); }; Cn.prototype._transform = function(e, t, r) { throw new Error("_transform() is not implemented"); }; Cn.prototype._write = function(e, t, r) { var i = this._transformState; if (i.writecb = r, i.writechunk = e, i.writeencoding = t, !i.transforming) { var s = this._readableState; (i.needTransform || s.needReadable || s.length < s.highWaterMark) && this._read(s.highWaterMark); } }; Cn.prototype._read = function(e) { var t = this._transformState; t.writechunk !== null && t.writecb && !t.transforming ? (t.transforming = !0, this._transform(t.writechunk, t.writeencoding, t.afterTransform)) : t.needTransform = !0; }; Cn.prototype._destroy = function(e, t) { var r = this; D0.prototype._destroy.call(this, e, function(i) { t(i), r.emit("close"); }); }; function y7(e, t, r) { if (t) return e.emit("error", t); if (r != null && e.push(r), e._writableState.length) throw new Error("Calling transform done when ws.length != 0"); if (e._transformState.transforming) throw new Error("Calling transform done when still transforming"); return e.push(null); } n(y7, "done"); }); // ../node_modules/peek-stream/node_modules/readable-stream/lib/_stream_passthrough.js var E7 = E((Zit, x7) => { "use strict"; x7.exports = Of; var D7 = zD(), v7 = Object.create(dr()); v7.inherits = St(); v7.inherits(Of, D7); function Of(e) { if (!(this instanceof Of)) return new Of(e); D7.call(this, e); } n(Of, "PassThrough"); Of.prototype._transform = function(e, t, r) { r(null, e); }; }); // ../node_modules/peek-stream/node_modules/readable-stream/readable.js var S7 = E((Ar, v0) => { var Vs = require("stream"); process.env.READABLE_STREAM === "disable" && Vs ? (v0.exports = Vs, Ar = v0.exports = Vs.Readable, Ar.Readable = Vs.Readable, Ar.Writable = Vs.Writable, Ar.Duplex = Vs.Duplex, Ar.Transform = Vs.Transform, Ar.PassThrough = Vs.PassThrough, Ar.Stream = Vs) : (Ar = v0.exports = qD(), Ar.Stream = Vs || Ar, Ar.Readable = Ar, Ar.Writable = RD(), Ar.Duplex = xo(), Ar.Transform = zD(), Ar.PassThrough = E7()); }); // ../node_modules/stream-shift/index.js var JD = E((est, T7) => { T7.exports = yse; function yse(e) { var t = e._readableState; return t ? t.objectMode || typeof e._duplexState == "number" ? e.read() : e.read(gse(t)) : null; } n(yse, "shift"); function gse(e) { if (e.buffer.length) { var t = e.bufferIndex || 0; if (e.buffer.head) return e.buffer.head.data.length; if (e.buffer.length - t > 0 && e.buffer[t]) return e.buffer[t].length; } return e.length; } n(gse, "getStateLength"); }); // ../node_modules/peek-stream/node_modules/duplexify/index.js var P7 = E((rst, _7) => { var x0 = S7(), C7 = Yu(), bse = St(), Dse = JD(), w7 = Buffer.from && Buffer.from !== Uint8Array.from ? Buffer.from([0]) : new Buffer([0]), XD = /* @__PURE__ */ n(function(e, t) { e._corked ? e.once("uncork", t) : t(); }, "onuncork"), vse = /* @__PURE__ */ n(function(e, t) { e._autoDestroy && e.destroy(t); }, "autoDestroy"), A7 = /* @__PURE__ */ n(function(e, t) { return function(r) { r ? vse(e, r.message === "premature close" ? null : r) : t && !e._ended && e.end(); }; }, "destroyer"), xse = /* @__PURE__ */ n(function(e, t) { if (!e || e._writableState && e._writableState.finished) return t(); if (e._writableState) return e.end(t); e.end(), t(); }, "end"), Ese = /* @__PURE__ */ n(function(e) { return new x0.Readable({ objectMode: !0, highWaterMark: 16 }).wrap(e); }, "toStreams2"), _r = /* @__PURE__ */ n(function(e, t, r) { if (!(this instanceof _r)) return new _r(e, t, r); x0.Duplex.call(this, r), this._writable = null, this._readable = null, this._readable2 = null, this._autoDestroy = !r || r.autoDestroy !== !1, this._forwardDestroy = !r || r.destroy !== !1, this._forwardEnd = !r || r.end !== !1, this._corked = 1, this._ondrain = null, this._drained = !1, this._forwarding = !1, this._unwrite = null, this._unread = null, this._ended = !1, this.destroyed = !1, e && this.setWritable(e), t && this.setReadable(t); }, "Duplexify"); bse(_r, x0.Duplex); _r.obj = function(e, t, r) { return r || (r = {}), r.objectMode = !0, r.highWaterMark = 16, new _r(e, t, r); }; _r.prototype.cork = function() { ++this._corked === 1 && this.emit("cork"); }; _r.prototype.uncork = function() { this._corked && --this._corked === 0 && this.emit("uncork"); }; _r.prototype.setWritable = function(e) { if (this._unwrite && this._unwrite(), this.destroyed) { e && e.destroy && e.destroy(); return; } if (e === null || e === !1) { this.end(); return; } var t = this, r = C7(e, { writable: !0, readable: !1 }, A7(this, this._forwardEnd)), i = /* @__PURE__ */ n(function() { var a = t._ondrain; t._ondrain = null, a && a(); }, "ondrain"), s = /* @__PURE__ */ n(function() { t._writable.removeListener("drain", i), r(); }, "clear"); this._unwrite && process.nextTick(i), this._writable = e, this._writable.on("drain", i), this._unwrite = s, this.uncork(); }; _r.prototype.setReadable = function(e) { if (this._unread && this._unread(), this.destroyed) { e && e.destroy && e.destroy(); return; } if (e === null || e === !1) { this.push(null), this.resume(); return; } var t = this, r = C7(e, { writable: !1, readable: !0 }, A7(this)), i = /* @__PURE__ */ n(function() { t._forward(); }, "onreadable"), s = /* @__PURE__ */ n(function() { t.push(null); }, "onend"), a = /* @__PURE__ */ n(function() { t._readable2.removeListener("readable", i), t._readable2.removeListener("end", s), r(); }, "clear"); this._drained = !0, this._readable = e, this._readable2 = e._readableState ? e : Ese(e), this._readable2.on("readable", i), this._readable2. on("end", s), this._unread = a, this._forward(); }; _r.prototype._read = function() { this._drained = !0, this._forward(); }; _r.prototype._forward = function() { if (!(this._forwarding || !this._readable2 || !this._drained)) { this._forwarding = !0; for (var e; this._drained && (e = Dse(this._readable2)) !== null; ) this.destroyed || (this._drained = this.push(e)); this._forwarding = !1; } }; _r.prototype.destroy = function(e) { if (!this.destroyed) { this.destroyed = !0; var t = this; process.nextTick(function() { t._destroy(e); }); } }; _r.prototype._destroy = function(e) { if (e) { var t = this._ondrain; this._ondrain = null, t ? t(e) : this.emit("error", e); } this._forwardDestroy && (this._readable && this._readable.destroy && this._readable.destroy(), this._writable && this._writable.destroy && this._writable.destroy()), this.emit("close"); }; _r.prototype._write = function(e, t, r) { if (this.destroyed) return r(); if (this._corked) return XD(this, this._write.bind(this, e, t, r)); if (e === w7) return this._finish(r); if (!this._writable) return r(); this._writable.write(e) === !1 ? this._ondrain = r : r(); }; _r.prototype._finish = function(e) { var t = this; this.emit("preend"), XD(this, function() { xse(t._forwardEnd && t._writable, function() { t._writableState.prefinished === !1 && (t._writableState.prefinished = !0), t.emit("prefinish"), XD(t, e); }); }); }; _r.prototype.end = function(e, t, r) { return typeof e == "function" ? this.end(null, null, e) : typeof t == "function" ? this.end(e, null, t) : (this._ended = !0, e && this.write( e), this._writableState.ending || this.write(w7), x0.Writable.prototype.end.call(this, r)); }; _7.exports = _r; }); // ../node_modules/through2/node_modules/isarray/index.js var I7 = E((sst, F7) => { var Sse = {}.toString; F7.exports = Array.isArray || function(e) { return Sse.call(e) == "[object Array]"; }; }); // ../node_modules/through2/node_modules/readable-stream/lib/internal/streams/stream.js var YD = E((nst, O7) => { O7.exports = require("stream"); }); // ../node_modules/through2/node_modules/safe-buffer/index.js var S0 = E((GD, B7) => { var E0 = require("buffer"), wn = E0.Buffer; function k7(e, t) { for (var r in e) t[r] = e[r]; } n(k7, "copyProps"); wn.from && wn.alloc && wn.allocUnsafe && wn.allocUnsafeSlow ? B7.exports = E0 : (k7(E0, GD), GD.Buffer = fl); function fl(e, t, r) { return wn(e, t, r); } n(fl, "SafeBuffer"); k7(wn, fl); fl.from = function(e, t, r) { if (typeof e == "number") throw new TypeError("Argument must not be a number"); return wn(e, t, r); }; fl.alloc = function(e, t, r) { if (typeof e != "number") throw new TypeError("Argument must be a number"); var i = wn(e); return t !== void 0 ? typeof r == "string" ? i.fill(t, r) : i.fill(t) : i.fill(0), i; }; fl.allocUnsafe = function(e) { if (typeof e != "number") throw new TypeError("Argument must be a number"); return wn(e); }; fl.allocUnsafeSlow = function(e) { if (typeof e != "number") throw new TypeError("Argument must be a number"); return E0.SlowBuffer(e); }; }); // ../node_modules/through2/node_modules/readable-stream/lib/internal/streams/BufferList.js var M7 = E((ost, ZD) => { "use strict"; function Tse(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } n(Tse, "_classCallCheck"); var N7 = S0().Buffer, kf = require("util"); function Cse(e, t, r) { e.copy(t, r); } n(Cse, "copyBuffer"); ZD.exports = function() { function e() { Tse(this, e), this.head = null, this.tail = null, this.length = 0; } return n(e, "BufferList"), e.prototype.push = /* @__PURE__ */ n(function(r) { var i = { data: r, next: null }; this.length > 0 ? this.tail.next = i : this.head = i, this.tail = i, ++this.length; }, "push"), e.prototype.unshift = /* @__PURE__ */ n(function(r) { var i = { data: r, next: this.head }; this.length === 0 && (this.tail = i), this.head = i, ++this.length; }, "unshift"), e.prototype.shift = /* @__PURE__ */ n(function() { if (this.length !== 0) { var r = this.head.data; return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, r; } }, "shift"), e.prototype.clear = /* @__PURE__ */ n(function() { this.head = this.tail = null, this.length = 0; }, "clear"), e.prototype.join = /* @__PURE__ */ n(function(r) { if (this.length === 0) return ""; for (var i = this.head, s = "" + i.data; i = i.next; ) s += r + i.data; return s; }, "join"), e.prototype.concat = /* @__PURE__ */ n(function(r) { if (this.length === 0) return N7.alloc(0); for (var i = N7.allocUnsafe(r >>> 0), s = this.head, a = 0; s; ) Cse(s.data, i, a), a += s.data.length, s = s.next; return i; }, "concat"), e; }(); kf && kf.inspect && kf.inspect.custom && (ZD.exports.prototype[kf.inspect.custom] = function() { var e = kf.inspect({ length: this.length }); return this.constructor.name + " " + e; }); }); // ../node_modules/through2/node_modules/readable-stream/lib/internal/streams/destroy.js var QD = E((lst, R7) => { "use strict"; var T0 = Ei(); function wse(e, t) { var r = this, i = this._readableState && this._readableState.destroyed, s = this._writableState && this._writableState.destroyed; return i || s ? (t ? t(e) : e && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, T0.nextTick( C0, this, e)) : T0.nextTick(C0, this, e)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this. _writableState.destroyed = !0), this._destroy(e || null, function(a) { !t && a ? r._writableState ? r._writableState.errorEmitted || (r._writableState.errorEmitted = !0, T0.nextTick(C0, r, a)) : T0.nextTick( C0, r, a) : t && t(a); }), this); } n(wse, "destroy"); function Ase() { this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState. endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1); } n(Ase, "undestroy"); function C0(e, t) { e.emit("error", t); } n(C0, "emitErrorNT"); R7.exports = { destroy: wse, undestroy: Ase }; }); // ../node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js var tv = E((fst, H7) => { "use strict"; var Eo = Ei(); H7.exports = ar; function j7(e) { var t = this; this.next = null, this.entry = null, this.finish = function() { Hse(t, e); }; } n(j7, "CorkedRequest"); var _se = !process.browser && ["v0.10", "v0.9."].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : Eo.nextTick, dl; ar.WritableState = Nf; var q7 = Object.create(dr()); q7.inherits = St(); var Pse = { deprecate: df() }, U7 = YD(), A0 = S0().Buffer, Fse = (typeof global < "u" ? global : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() { }; function Ise(e) { return A0.from(e); } n(Ise, "_uint8ArrayToBuffer"); function Ose(e) { return A0.isBuffer(e) || e instanceof Fse; } n(Ose, "_isUint8Array"); var $7 = QD(); q7.inherits(ar, U7); function kse() { } n(kse, "nop"); function Nf(e, t) { dl = dl || So(), e = e || {}; var r = t instanceof dl; this.objectMode = !!e.objectMode, r && (this.objectMode = this.objectMode || !!e.writableObjectMode); var i = e.highWaterMark, s = e.writableHighWaterMark, a = this.objectMode ? 16 : 16 * 1024; i || i === 0 ? this.highWaterMark = i : r && (s || s === 0) ? this.highWaterMark = s : this.highWaterMark = a, this.highWaterMark = Math. floor(this.highWaterMark), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1; var o = e.decodeStrings === !1; this.decodeStrings = !o, this.defaultEncoding = e.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(u) { qse(t, u); }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.bufferedRequestCount = 0, this.corkedRequestsFree = new j7(this); } n(Nf, "WritableState"); Nf.prototype.getBuffer = /* @__PURE__ */ n(function() { for (var t = this.bufferedRequest, r = []; t; ) r.push(t), t = t.next; return r; }, "getBuffer"); (function() { try { Object.defineProperty(Nf.prototype, "buffer", { get: Pse.deprecate(function() { return this.getBuffer(); }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") }); } catch { } })(); var w0; typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (w0 = Function.prototype[Symbol. hasInstance], Object.defineProperty(ar, Symbol.hasInstance, { value: /* @__PURE__ */ n(function(e) { return w0.call(this, e) ? !0 : this !== ar ? !1 : e && e._writableState instanceof Nf; }, "value") })) : w0 = /* @__PURE__ */ n(function(e) { return e instanceof this; }, "realHasInstance"); function ar(e) { if (dl = dl || So(), !w0.call(ar, this) && !(this instanceof dl)) return new ar(e); this._writableState = new Nf(e, this), this.writable = !0, e && (typeof e.write == "function" && (this._write = e.write), typeof e.writev == "function" && (this._writev = e.writev), typeof e.destroy == "function" && (this._destroy = e.destroy), typeof e.final == "function" && (this. _final = e.final)), U7.call(this); } n(ar, "Writable"); ar.prototype.pipe = function() { this.emit("error", new Error("Cannot pipe, not readable")); }; function Bse(e, t) { var r = new Error("write after end"); e.emit("error", r), Eo.nextTick(t, r); } n(Bse, "writeAfterEnd"); function Nse(e, t, r, i) { var s = !0, a = !1; return r === null ? a = new TypeError("May not write null values to stream") : typeof r != "string" && r !== void 0 && !t.objectMode && (a = new TypeError("Invalid non-string/buffer chunk")), a && (e.emit("error", a), Eo.nextTick(i, a), s = !1), s; } n(Nse, "validChunk"); ar.prototype.write = function(e, t, r) { var i = this._writableState, s = !1, a = !i.objectMode && Ose(e); return a && !A0.isBuffer(e) && (e = Ise(e)), typeof t == "function" && (r = t, t = null), a ? t = "buffer" : t || (t = i.defaultEncoding), typeof r != "function" && (r = kse), i.ended ? Bse(this, r) : (a || Nse(this, i, e, r)) && (i.pendingcb++, s = Rse(this, i, a, e, t, r)), s; }; ar.prototype.cork = function() { var e = this._writableState; e.corked++; }; ar.prototype.uncork = function() { var e = this._writableState; e.corked && (e.corked--, !e.writing && !e.corked && !e.bufferProcessing && e.bufferedRequest && V7(this, e)); }; ar.prototype.setDefaultEncoding = /* @__PURE__ */ n(function(t) { if (typeof t == "string" && (t = t.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "\ utf-16le", "raw"].indexOf((t + "").toLowerCase()) > -1)) throw new TypeError("Unknown encoding: " + t); return this._writableState.defaultEncoding = t, this; }, "setDefaultEncoding"); function Mse(e, t, r) { return !e.objectMode && e.decodeStrings !== !1 && typeof t == "string" && (t = A0.from(t, r)), t; } n(Mse, "decodeChunk"); Object.defineProperty(ar.prototype, "writableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ n(function() { return this._writableState.highWaterMark; }, "get") }); function Rse(e, t, r, i, s, a) { if (!r) { var o = Mse(t, i, s); i !== o && (r = !0, s = "buffer", i = o); } var u = t.objectMode ? 1 : i.length; t.length += u; var l = t.length < t.highWaterMark; if (l || (t.needDrain = !0), t.writing || t.corked) { var c = t.lastBufferedRequest; t.lastBufferedRequest = { chunk: i, encoding: s, isBuf: r, callback: a, next: null }, c ? c.next = t.lastBufferedRequest : t.bufferedRequest = t.lastBufferedRequest, t.bufferedRequestCount += 1; } else ev(e, t, !1, u, i, s, a); return l; } n(Rse, "writeOrBuffer"); function ev(e, t, r, i, s, a, o) { t.writelen = i, t.writecb = o, t.writing = !0, t.sync = !0, r ? e._writev(s, t.onwrite) : e._write(s, a, t.onwrite), t.sync = !1; } n(ev, "doWrite"); function Lse(e, t, r, i, s) { --t.pendingcb, r ? (Eo.nextTick(s, i), Eo.nextTick(Bf, e, t), e._writableState.errorEmitted = !0, e.emit("error", i)) : (s(i), e._writableState. errorEmitted = !0, e.emit("error", i), Bf(e, t)); } n(Lse, "onwriteError"); function jse(e) { e.writing = !1, e.writecb = null, e.length -= e.writelen, e.writelen = 0; } n(jse, "onwriteStateUpdate"); function qse(e, t) { var r = e._writableState, i = r.sync, s = r.writecb; if (jse(r), t) Lse(e, r, i, t, s); else { var a = W7(r); !a && !r.corked && !r.bufferProcessing && r.bufferedRequest && V7(e, r), i ? _se(L7, e, r, a, s) : L7(e, r, a, s); } } n(qse, "onwrite"); function L7(e, t, r, i) { r || Use(e, t), t.pendingcb--, i(), Bf(e, t); } n(L7, "afterWrite"); function Use(e, t) { t.length === 0 && t.needDrain && (t.needDrain = !1, e.emit("drain")); } n(Use, "onwriteDrain"); function V7(e, t) { t.bufferProcessing = !0; var r = t.bufferedRequest; if (e._writev && r && r.next) { var i = t.bufferedRequestCount, s = new Array(i), a = t.corkedRequestsFree; a.entry = r; for (var o = 0, u = !0; r; ) s[o] = r, r.isBuf || (u = !1), r = r.next, o += 1; s.allBuffers = u, ev(e, t, !0, t.length, s, "", a.finish), t.pendingcb++, t.lastBufferedRequest = null, a.next ? (t.corkedRequestsFree = a.next, a.next = null) : t.corkedRequestsFree = new j7(t), t.bufferedRequestCount = 0; } else { for (; r; ) { var l = r.chunk, c = r.encoding, f = r.callback, m = t.objectMode ? 1 : l.length; if (ev(e, t, !1, m, l, c, f), r = r.next, t.bufferedRequestCount--, t.writing) break; } r === null && (t.lastBufferedRequest = null); } t.bufferedRequest = r, t.bufferProcessing = !1; } n(V7, "clearBuffer"); ar.prototype._write = function(e, t, r) { r(new Error("_write() is not implemented")); }; ar.prototype._writev = null; ar.prototype.end = function(e, t, r) { var i = this._writableState; typeof e == "function" ? (r = e, e = null, t = null) : typeof t == "function" && (r = t, t = null), e != null && this.write(e, t), i.corked && (i.corked = 1, this.uncork()), i.ending || Wse(this, i, r); }; function W7(e) { return e.ending && e.length === 0 && e.bufferedRequest === null && !e.finished && !e.writing; } n(W7, "needFinish"); function $se(e, t) { e._final(function(r) { t.pendingcb--, r && e.emit("error", r), t.prefinished = !0, e.emit("prefinish"), Bf(e, t); }); } n($se, "callFinal"); function Vse(e, t) { !t.prefinished && !t.finalCalled && (typeof e._final == "function" ? (t.pendingcb++, t.finalCalled = !0, Eo.nextTick($se, e, t)) : (t.prefinished = !0, e.emit("prefinish"))); } n(Vse, "prefinish"); function Bf(e, t) { var r = W7(t); return r && (Vse(e, t), t.pendingcb === 0 && (t.finished = !0, e.emit("finish"))), r; } n(Bf, "finishMaybe"); function Wse(e, t, r) { t.ending = !0, Bf(e, t), r && (t.finished ? Eo.nextTick(r) : e.once("finish", r)), t.ended = !0, e.writable = !1; } n(Wse, "endWritable"); function Hse(e, t, r) { var i = e.entry; for (e.entry = null; i; ) { var s = i.callback; t.pendingcb--, s(r), i = i.next; } t.corkedRequestsFree.next = e; } n(Hse, "onCorkedFinish"); Object.defineProperty(ar.prototype, "destroyed", { get: /* @__PURE__ */ n(function() { return this._writableState === void 0 ? !1 : this._writableState.destroyed; }, "get"), set: /* @__PURE__ */ n(function(e) { this._writableState && (this._writableState.destroyed = e); }, "set") }); ar.prototype.destroy = $7.destroy; ar.prototype._undestroy = $7.undestroy; ar.prototype._destroy = function(e, t) { this.end(), t(e); }; }); // ../node_modules/through2/node_modules/readable-stream/lib/_stream_duplex.js var So = E((pst, X7) => { "use strict"; var K7 = Ei(), Kse = Object.keys || function(e) { var t = []; for (var r in e) t.push(r); return t; }; X7.exports = An; var z7 = Object.create(dr()); z7.inherits = St(); var J7 = sv(), iv = tv(); z7.inherits(An, J7); for (rv = Kse(iv.prototype), _0 = 0; _0 < rv.length; _0++) P0 = rv[_0], An.prototype[P0] || (An.prototype[P0] = iv.prototype[P0]); var rv, P0, _0; function An(e) { if (!(this instanceof An)) return new An(e); J7.call(this, e), iv.call(this, e), e && e.readable === !1 && (this.readable = !1), e && e.writable === !1 && (this.writable = !1), this. allowHalfOpen = !0, e && e.allowHalfOpen === !1 && (this.allowHalfOpen = !1), this.once("end", zse); } n(An, "Duplex"); Object.defineProperty(An.prototype, "writableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ n(function() { return this._writableState.highWaterMark; }, "get") }); function zse() { this.allowHalfOpen || this._writableState.ended || K7.nextTick(Jse, this); } n(zse, "onend"); function Jse(e) { e.end(); } n(Jse, "onEndNT"); Object.defineProperty(An.prototype, "destroyed", { get: /* @__PURE__ */ n(function() { return this._readableState === void 0 || this._writableState === void 0 ? !1 : this._readableState.destroyed && this._writableState.destroyed; }, "get"), set: /* @__PURE__ */ n(function(e) { this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = e, this._writableState.destroyed = e); }, "set") }); An.prototype._destroy = function(e, t) { this.push(null), this.end(), K7.nextTick(t, e); }; }); // ../node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js var sv = E((yst, o9) => { "use strict"; var hl = Ei(); o9.exports = Ft; var Xse = I7(), Mf; Ft.ReadableState = r9; var mst = require("events").EventEmitter, Q7 = /* @__PURE__ */ n(function(e, t) { return e.listeners(t).length; }, "EElistenerCount"), lv = YD(), Rf = S0().Buffer, Yse = (typeof global < "u" ? global : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() { }; function Gse(e) { return Rf.from(e); } n(Gse, "_uint8ArrayToBuffer"); function Zse(e) { return Rf.isBuffer(e) || e instanceof Yse; } n(Zse, "_isUint8Array"); var e9 = Object.create(dr()); e9.inherits = St(); var nv = require("util"), ft = void 0; nv && nv.debuglog ? ft = nv.debuglog("stream") : ft = /* @__PURE__ */ n(function() { }, "debug"); var Qse = M7(), t9 = QD(), pl; e9.inherits(Ft, lv); var av = ["error", "close", "destroy", "pause", "resume"]; function ene(e, t, r) { if (typeof e.prependListener == "function") return e.prependListener(t, r); !e._events || !e._events[t] ? e.on(t, r) : Xse(e._events[t]) ? e._events[t].unshift(r) : e._events[t] = [r, e._events[t]]; } n(ene, "prependListener"); function r9(e, t) { Mf = Mf || So(), e = e || {}; var r = t instanceof Mf; this.objectMode = !!e.objectMode, r && (this.objectMode = this.objectMode || !!e.readableObjectMode); var i = e.highWaterMark, s = e.readableHighWaterMark, a = this.objectMode ? 16 : 16 * 1024; i || i === 0 ? this.highWaterMark = i : r && (s || s === 0) ? this.highWaterMark = s : this.highWaterMark = a, this.highWaterMark = Math. floor(this.highWaterMark), this.buffer = new Qse(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.destroyed = !1, this.defaultEncoding = e.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, e.encoding && (pl || (pl = require("string_decoder/").StringDecoder), this.decoder = new pl( e.encoding), this.encoding = e.encoding); } n(r9, "ReadableState"); function Ft(e) { if (Mf = Mf || So(), !(this instanceof Ft)) return new Ft(e); this._readableState = new r9(e, this), this.readable = !0, e && (typeof e.read == "function" && (this._read = e.read), typeof e.destroy == "function" && (this._destroy = e.destroy)), lv.call(this); } n(Ft, "Readable"); Object.defineProperty(Ft.prototype, "destroyed", { get: /* @__PURE__ */ n(function() { return this._readableState === void 0 ? !1 : this._readableState.destroyed; }, "get"), set: /* @__PURE__ */ n(function(e) { this._readableState && (this._readableState.destroyed = e); }, "set") }); Ft.prototype.destroy = t9.destroy; Ft.prototype._undestroy = t9.undestroy; Ft.prototype._destroy = function(e, t) { this.push(null), t(e); }; Ft.prototype.push = function(e, t) { var r = this._readableState, i; return r.objectMode ? i = !0 : typeof e == "string" && (t = t || r.defaultEncoding, t !== r.encoding && (e = Rf.from(e, t), t = ""), i = !0), i9(this, e, t, !1, i); }; Ft.prototype.unshift = function(e) { return i9(this, e, null, !0, !1); }; function i9(e, t, r, i, s) { var a = e._readableState; if (t === null) a.reading = !1, sne(e, a); else { var o; s || (o = tne(a, t)), o ? e.emit("error", o) : a.objectMode || t && t.length > 0 ? (typeof t != "string" && !a.objectMode && Object.getPrototypeOf( t) !== Rf.prototype && (t = Gse(t)), i ? a.endEmitted ? e.emit("error", new Error("stream.unshift() after end event")) : ov(e, a, t, !0) : a.ended ? e.emit("error", new Error("stream.push() after EOF")) : (a.reading = !1, a.decoder && !r ? (t = a.decoder.write(t), a.objectMode || t.length !== 0 ? ov(e, a, t, !1) : s9(e, a)) : ov(e, a, t, !1))) : i || (a.reading = !1); } return rne(a); } n(i9, "readableAddChunk"); function ov(e, t, r, i) { t.flowing && t.length === 0 && !t.sync ? (e.emit("data", r), e.read(0)) : (t.length += t.objectMode ? 1 : r.length, i ? t.buffer.unshift( r) : t.buffer.push(r), t.needReadable && F0(e)), s9(e, t); } n(ov, "addChunk"); function tne(e, t) { var r; return !Zse(t) && typeof t != "string" && t !== void 0 && !e.objectMode && (r = new TypeError("Invalid non-string/buffer chunk")), r; } n(tne, "chunkInvalid"); function rne(e) { return !e.ended && (e.needReadable || e.length < e.highWaterMark || e.length === 0); } n(rne, "needMoreData"); Ft.prototype.isPaused = function() { return this._readableState.flowing === !1; }; Ft.prototype.setEncoding = function(e) { return pl || (pl = require("string_decoder/").StringDecoder), this._readableState.decoder = new pl(e), this._readableState.encoding = e, this; }; var Y7 = 8388608; function ine(e) { return e >= Y7 ? e = Y7 : (e--, e |= e >>> 1, e |= e >>> 2, e |= e >>> 4, e |= e >>> 8, e |= e >>> 16, e++), e; } n(ine, "computeNewHighWaterMark"); function G7(e, t) { return e <= 0 || t.length === 0 && t.ended ? 0 : t.objectMode ? 1 : e !== e ? t.flowing && t.length ? t.buffer.head.data.length : t.length : (e > t.highWaterMark && (t.highWaterMark = ine(e)), e <= t.length ? e : t.ended ? t.length : (t.needReadable = !0, 0)); } n(G7, "howMuchToRead"); Ft.prototype.read = function(e) { ft("read", e), e = parseInt(e, 10); var t = this._readableState, r = e; if (e !== 0 && (t.emittedReadable = !1), e === 0 && t.needReadable && (t.length >= t.highWaterMark || t.ended)) return ft("read: emitReadable", t.length, t.ended), t.length === 0 && t.ended ? uv(this) : F0(this), null; if (e = G7(e, t), e === 0 && t.ended) return t.length === 0 && uv(this), null; var i = t.needReadable; ft("need readable", i), (t.length === 0 || t.length - e < t.highWaterMark) && (i = !0, ft("length less than watermark", i)), t.ended || t. reading ? (i = !1, ft("reading or ended", i)) : i && (ft("do read"), t.reading = !0, t.sync = !0, t.length === 0 && (t.needReadable = !0), this._read(t.highWaterMark), t.sync = !1, t.reading || (e = G7(r, t))); var s; return e > 0 ? s = n9(e, t) : s = null, s === null ? (t.needReadable = !0, e = 0) : t.length -= e, t.length === 0 && (t.ended || (t.needReadable = !0), r !== e && t.ended && uv(this)), s !== null && this.emit("data", s), s; }; function sne(e, t) { if (!t.ended) { if (t.decoder) { var r = t.decoder.end(); r && r.length && (t.buffer.push(r), t.length += t.objectMode ? 1 : r.length); } t.ended = !0, F0(e); } } n(sne, "onEofChunk"); function F0(e) { var t = e._readableState; t.needReadable = !1, t.emittedReadable || (ft("emitReadable", t.flowing), t.emittedReadable = !0, t.sync ? hl.nextTick(Z7, e) : Z7(e)); } n(F0, "emitReadable"); function Z7(e) { ft("emit readable"), e.emit("readable"), cv(e); } n(Z7, "emitReadable_"); function s9(e, t) { t.readingMore || (t.readingMore = !0, hl.nextTick(nne, e, t)); } n(s9, "maybeReadMore"); function nne(e, t) { for (var r = t.length; !t.reading && !t.flowing && !t.ended && t.length < t.highWaterMark && (ft("maybeReadMore read 0"), e.read(0), r !== t.length); ) r = t.length; t.readingMore = !1; } n(nne, "maybeReadMore_"); Ft.prototype._read = function(e) { this.emit("error", new Error("_read() is not implemented")); }; Ft.prototype.pipe = function(e, t) { var r = this, i = this._readableState; switch (i.pipesCount) { case 0: i.pipes = e; break; case 1: i.pipes = [i.pipes, e]; break; default: i.pipes.push(e); break; } i.pipesCount += 1, ft("pipe count=%d opts=%j", i.pipesCount, t); var s = (!t || t.end !== !1) && e !== process.stdout && e !== process.stderr, a = s ? u : g; i.endEmitted ? hl.nextTick(a) : r.once("end", a), e.on("unpipe", o); function o(b, D) { ft("onunpipe"), b === r && D && D.hasUnpiped === !1 && (D.hasUnpiped = !0, f()); } n(o, "onunpipe"); function u() { ft("onend"), e.end(); } n(u, "onend"); var l = ane(r); e.on("drain", l); var c = !1; function f() { ft("cleanup"), e.removeListener("close", y), e.removeListener("finish", p), e.removeListener("drain", l), e.removeListener("error", d), e.removeListener("unpipe", o), r.removeListener("end", u), r.removeListener("end", g), r.removeListener("data", h), c = !0, i.awaitDrain && (!e._writableState || e._writableState.needDrain) && l(); } n(f, "cleanup"); var m = !1; r.on("data", h); function h(b) { ft("ondata"), m = !1; var D = e.write(b); D === !1 && !m && ((i.pipesCount === 1 && i.pipes === e || i.pipesCount > 1 && a9(i.pipes, e) !== -1) && !c && (ft("false write respon\ se, pause", i.awaitDrain), i.awaitDrain++, m = !0), r.pause()); } n(h, "ondata"); function d(b) { ft("onerror", b), g(), e.removeListener("error", d), Q7(e, "error") === 0 && e.emit("error", b); } n(d, "onerror"), ene(e, "error", d); function y() { e.removeListener("finish", p), g(); } n(y, "onclose"), e.once("close", y); function p() { ft("onfinish"), e.removeListener("close", y), g(); } n(p, "onfinish"), e.once("finish", p); function g() { ft("unpipe"), r.unpipe(e); } return n(g, "unpipe"), e.emit("pipe", r), i.flowing || (ft("pipe resume"), r.resume()), e; }; function ane(e) { return function() { var t = e._readableState; ft("pipeOnDrain", t.awaitDrain), t.awaitDrain && t.awaitDrain--, t.awaitDrain === 0 && Q7(e, "data") && (t.flowing = !0, cv(e)); }; } n(ane, "pipeOnDrain"); Ft.prototype.unpipe = function(e) { var t = this._readableState, r = { hasUnpiped: !1 }; if (t.pipesCount === 0) return this; if (t.pipesCount === 1) return e && e !== t.pipes ? this : (e || (e = t.pipes), t.pipes = null, t.pipesCount = 0, t.flowing = !1, e && e.emit("unpipe", this, r), this); if (!e) { var i = t.pipes, s = t.pipesCount; t.pipes = null, t.pipesCount = 0, t.flowing = !1; for (var a = 0; a < s; a++) i[a].emit("unpipe", this, { hasUnpiped: !1 }); return this; } var o = a9(t.pipes, e); return o === -1 ? this : (t.pipes.splice(o, 1), t.pipesCount -= 1, t.pipesCount === 1 && (t.pipes = t.pipes[0]), e.emit("unpipe", this, r), this); }; Ft.prototype.on = function(e, t) { var r = lv.prototype.on.call(this, e, t); if (e === "data") this._readableState.flowing !== !1 && this.resume(); else if (e === "readable") { var i = this._readableState; !i.endEmitted && !i.readableListening && (i.readableListening = i.needReadable = !0, i.emittedReadable = !1, i.reading ? i.length && F0( this) : hl.nextTick(one, this)); } return r; }; Ft.prototype.addListener = Ft.prototype.on; function one(e) { ft("readable nexttick read 0"), e.read(0); } n(one, "nReadingNextTick"); Ft.prototype.resume = function() { var e = this._readableState; return e.flowing || (ft("resume"), e.flowing = !0, une(this, e)), this; }; function une(e, t) { t.resumeScheduled || (t.resumeScheduled = !0, hl.nextTick(lne, e, t)); } n(une, "resume"); function lne(e, t) { t.reading || (ft("resume read 0"), e.read(0)), t.resumeScheduled = !1, t.awaitDrain = 0, e.emit("resume"), cv(e), t.flowing && !t.reading && e.read(0); } n(lne, "resume_"); Ft.prototype.pause = function() { return ft("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (ft("pause"), this._readableState. flowing = !1, this.emit("pause")), this; }; function cv(e) { var t = e._readableState; for (ft("flow", t.flowing); t.flowing && e.read() !== null; ) ; } n(cv, "flow"); Ft.prototype.wrap = function(e) { var t = this, r = this._readableState, i = !1; e.on("end", function() { if (ft("wrapped end"), r.decoder && !r.ended) { var o = r.decoder.end(); o && o.length && t.push(o); } t.push(null); }), e.on("data", function(o) { if (ft("wrapped data"), r.decoder && (o = r.decoder.write(o)), !(r.objectMode && o == null) && !(!r.objectMode && (!o || !o.length))) { var u = t.push(o); u || (i = !0, e.pause()); } }); for (var s in e) this[s] === void 0 && typeof e[s] == "function" && (this[s] = /* @__PURE__ */ function(o) { return function() { return e[o].apply(e, arguments); }; }(s)); for (var a = 0; a < av.length; a++) e.on(av[a], this.emit.bind(this, av[a])); return this._read = function(o) { ft("wrapped _read", o), i && (i = !1, e.resume()); }, this; }; Object.defineProperty(Ft.prototype, "readableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ n(function() { return this._readableState.highWaterMark; }, "get") }); Ft._fromList = n9; function n9(e, t) { if (t.length === 0) return null; var r; return t.objectMode ? r = t.buffer.shift() : !e || e >= t.length ? (t.decoder ? r = t.buffer.join("") : t.buffer.length === 1 ? r = t.buffer. head.data : r = t.buffer.concat(t.length), t.buffer.clear()) : r = cne(e, t.buffer, t.decoder), r; } n(n9, "fromList"); function cne(e, t, r) { var i; return e < t.head.data.length ? (i = t.head.data.slice(0, e), t.head.data = t.head.data.slice(e)) : e === t.head.data.length ? i = t.shift() : i = r ? fne(e, t) : dne(e, t), i; } n(cne, "fromListPartial"); function fne(e, t) { var r = t.head, i = 1, s = r.data; for (e -= s.length; r = r.next; ) { var a = r.data, o = e > a.length ? a.length : e; if (o === a.length ? s += a : s += a.slice(0, e), e -= o, e === 0) { o === a.length ? (++i, r.next ? t.head = r.next : t.head = t.tail = null) : (t.head = r, r.data = a.slice(o)); break; } ++i; } return t.length -= i, s; } n(fne, "copyFromBufferString"); function dne(e, t) { var r = Rf.allocUnsafe(e), i = t.head, s = 1; for (i.data.copy(r), e -= i.data.length; i = i.next; ) { var a = i.data, o = e > a.length ? a.length : e; if (a.copy(r, r.length - e, 0, o), e -= o, e === 0) { o === a.length ? (++s, i.next ? t.head = i.next : t.head = t.tail = null) : (t.head = i, i.data = a.slice(o)); break; } ++s; } return t.length -= s, r; } n(dne, "copyFromBuffer"); function uv(e) { var t = e._readableState; if (t.length > 0) throw new Error('"endReadable()" called on non-empty stream'); t.endEmitted || (t.ended = !0, hl.nextTick(pne, t, e)); } n(uv, "endReadable"); function pne(e, t) { !e.endEmitted && e.length === 0 && (e.endEmitted = !0, t.readable = !1, t.emit("end")); } n(pne, "endReadableNT"); function a9(e, t) { for (var r = 0, i = e.length; r < i; r++) if (e[r] === t) return r; return -1; } n(a9, "indexOf"); }); // ../node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js var fv = E((bst, c9) => { "use strict"; c9.exports = _n; var I0 = So(), l9 = Object.create(dr()); l9.inherits = St(); l9.inherits(_n, I0); function hne(e, t) { var r = this._transformState; r.transforming = !1; var i = r.writecb; if (!i) return this.emit("error", new Error("write callback called multiple times")); r.writechunk = null, r.writecb = null, t != null && this.push(t), i(e); var s = this._readableState; s.reading = !1, (s.needReadable || s.length < s.highWaterMark) && this._read(s.highWaterMark); } n(hne, "afterTransform"); function _n(e) { if (!(this instanceof _n)) return new _n(e); I0.call(this, e), this._transformState = { afterTransform: hne.bind(this), needTransform: !1, transforming: !1, writecb: null, writechunk: null, writeencoding: null }, this._readableState.needReadable = !0, this._readableState.sync = !1, e && (typeof e.transform == "function" && (this._transform = e. transform), typeof e.flush == "function" && (this._flush = e.flush)), this.on("prefinish", mne); } n(_n, "Transform"); function mne() { var e = this; typeof this._flush == "function" ? this._flush(function(t, r) { u9(e, t, r); }) : u9(this, null, null); } n(mne, "prefinish"); _n.prototype.push = function(e, t) { return this._transformState.needTransform = !1, I0.prototype.push.call(this, e, t); }; _n.prototype._transform = function(e, t, r) { throw new Error("_transform() is not implemented"); }; _n.prototype._write = function(e, t, r) { var i = this._transformState; if (i.writecb = r, i.writechunk = e, i.writeencoding = t, !i.transforming) { var s = this._readableState; (i.needTransform || s.needReadable || s.length < s.highWaterMark) && this._read(s.highWaterMark); } }; _n.prototype._read = function(e) { var t = this._transformState; t.writechunk !== null && t.writecb && !t.transforming ? (t.transforming = !0, this._transform(t.writechunk, t.writeencoding, t.afterTransform)) : t.needTransform = !0; }; _n.prototype._destroy = function(e, t) { var r = this; I0.prototype._destroy.call(this, e, function(i) { t(i), r.emit("close"); }); }; function u9(e, t, r) { if (t) return e.emit("error", t); if (r != null && e.push(r), e._writableState.length) throw new Error("Calling transform done when ws.length != 0"); if (e._transformState.transforming) throw new Error("Calling transform done when still transforming"); return e.push(null); } n(u9, "done"); }); // ../node_modules/through2/node_modules/readable-stream/lib/_stream_passthrough.js var h9 = E((vst, p9) => { "use strict"; p9.exports = Lf; var f9 = fv(), d9 = Object.create(dr()); d9.inherits = St(); d9.inherits(Lf, f9); function Lf(e) { if (!(this instanceof Lf)) return new Lf(e); f9.call(this, e); } n(Lf, "PassThrough"); Lf.prototype._transform = function(e, t, r) { r(null, e); }; }); // ../node_modules/through2/node_modules/readable-stream/readable.js var m9 = E((Pr, O0) => { var Ws = require("stream"); process.env.READABLE_STREAM === "disable" && Ws ? (O0.exports = Ws, Pr = O0.exports = Ws.Readable, Pr.Readable = Ws.Readable, Pr.Writable = Ws.Writable, Pr.Duplex = Ws.Duplex, Pr.Transform = Ws.Transform, Pr.PassThrough = Ws.PassThrough, Pr.Stream = Ws) : (Pr = O0.exports = sv(), Pr.Stream = Ws || Pr, Pr.Readable = Pr, Pr.Writable = tv(), Pr.Duplex = So(), Pr.Transform = fv(), Pr.PassThrough = h9()); }); // ../node_modules/xtend/immutable.js var g9 = E((Est, y9) => { y9.exports = gne; var yne = Object.prototype.hasOwnProperty; function gne() { for (var e = {}, t = 0; t < arguments.length; t++) { var r = arguments[t]; for (var i in r) yne.call(r, i) && (e[i] = r[i]); } return e; } n(gne, "extend"); }); // ../node_modules/through2/through2.js var pv = E((Tst, k0) => { var b9 = m9().Transform, D9 = require("util").inherits, v9 = g9(); function ml(e) { b9.call(this, e), this._destroyed = !1; } n(ml, "DestroyableTransform"); D9(ml, b9); ml.prototype.destroy = function(e) { if (!this._destroyed) { this._destroyed = !0; var t = this; process.nextTick(function() { e && t.emit("error", e), t.emit("close"); }); } }; function bne(e, t, r) { r(null, e); } n(bne, "noop"); function dv(e) { return function(t, r, i) { return typeof t == "function" && (i = r, r = t, t = {}), typeof r != "function" && (r = bne), typeof i != "function" && (i = null), e( t, r, i); }; } n(dv, "through2"); k0.exports = dv(function(e, t, r) { var i = new ml(e); return i._transform = t, r && (i._flush = r), i; }); k0.exports.ctor = dv(function(e, t, r) { function i(s) { if (!(this instanceof i)) return new i(s); this.options = v9(e, s), ml.call(this, this.options); } return n(i, "Through2"), D9(i, ml), i.prototype._transform = t, r && (i.prototype._flush = r), i; }); k0.exports.obj = dv(function(e, t, r) { var i = new ml(v9({ objectMode: !0, highWaterMark: 16 }, e)); return i._transform = t, r && (i._flush = r), i; }); }); // ../node_modules/buffer-from/index.js var E9 = E((wst, x9) => { var Dne = Object.prototype.toString, hv = typeof Buffer < "u" && typeof Buffer.alloc == "function" && typeof Buffer.allocUnsafe == "functi\ on" && typeof Buffer.from == "function"; function vne(e) { return Dne.call(e).slice(8, -1) === "ArrayBuffer"; } n(vne, "isArrayBuffer"); function xne(e, t, r) { t >>>= 0; var i = e.byteLength - t; if (i < 0) throw new RangeError("'offset' is out of bounds"); if (r === void 0) r = i; else if (r >>>= 0, r > i) throw new RangeError("'length' is out of bounds"); return hv ? Buffer.from(e.slice(t, t + r)) : new Buffer(new Uint8Array(e.slice(t, t + r))); } n(xne, "fromArrayBuffer"); function Ene(e, t) { if ((typeof t != "string" || t === "") && (t = "utf8"), !Buffer.isEncoding(t)) throw new TypeError('"encoding" must be a valid string encoding'); return hv ? Buffer.from(e, t) : new Buffer(e, t); } n(Ene, "fromString"); function Sne(e, t, r) { if (typeof e == "number") throw new TypeError('"value" argument must not be a number'); return vne(e) ? xne(e, t, r) : typeof e == "string" ? Ene(e, t) : hv ? Buffer.from(e) : new Buffer(e); } n(Sne, "bufferFrom"); x9.exports = Sne; }); // ../node_modules/peek-stream/index.js var C9 = E((_st, T9) => { var Tne = P7(), Cne = pv(), wne = E9(), Ane = /* @__PURE__ */ n(function(e) { return !Buffer.isBuffer(e) && typeof e != "string"; }, "isObject"), S9 = /* @__PURE__ */ n(function(e, t) { if (typeof e == "number" && (e = { maxBuffer: e }), typeof e == "function") return S9(null, e); e || (e = {}); var r = typeof e.maxBuffer == "number" ? e.maxBuffer : 65535, i = e.strict, s = e.newline !== !1, a = [], o = 0, u = Tne.obj(), l = Cne. obj({ highWaterMark: 1 }, function(m, h, d) { if (Ane(m)) return f(m, null, d); if (Buffer.isBuffer(m) || (m = wne(m)), s) { var y = Array.prototype.indexOf.call(m, 10); if (y > 0 && m[y - 1] === 13 && y--, y > -1) return a.push(m.slice(0, y)), f(Buffer.concat(a), m.slice(y), d); } if (a.push(m), o += m.length, o < r) return d(); if (i) return d(new Error("No newline found")); f(Buffer.concat(a), null, d); }), c = /* @__PURE__ */ n(function() { if (i) return u.destroy(new Error("No newline found")); u.cork(), f(Buffer.concat(a), null, function(m) { if (m) return u.destroy(m); u.uncork(); }); }, "onpreend"), f = /* @__PURE__ */ n(function(m, h, d) { u.removeListener("preend", c), t(m, function(y, p) { if (y) return d(y); u.setWritable(p), u.setReadable(p), m && p.write(m), h && p.write(h), h = a = l = null, d(); }); }, "ready"); return u.on("preend", c), u.setWritable(l), u; }, "peek"); T9.exports = S9; }); // ../node_modules/pumpify/node_modules/pump/index.js var _9 = E((Fst, A9) => { var _ne = Lh(), Pne = Yu(), mv = require("fs"), jf = /* @__PURE__ */ n(function() { }, "noop"), Fne = /^v?\.0/.test(process.version), B0 = /* @__PURE__ */ n(function(e) { return typeof e == "function"; }, "isFn"), Ine = /* @__PURE__ */ n(function(e) { return !Fne || !mv ? !1 : (e instanceof (mv.ReadStream || jf) || e instanceof (mv.WriteStream || jf)) && B0(e.close); }, "isFS"), One = /* @__PURE__ */ n(function(e) { return e.setHeader && B0(e.abort); }, "isRequest"), kne = /* @__PURE__ */ n(function(e, t, r, i) { i = _ne(i); var s = !1; e.on("close", function() { s = !0; }), Pne(e, { readable: t, writable: r }, function(o) { if (o) return i(o); s = !0, i(); }); var a = !1; return function(o) { if (!s && !a) { if (a = !0, Ine(e)) return e.close(jf); if (One(e)) return e.abort(); if (B0(e.destroy)) return e.destroy(); i(o || new Error("stream was destroyed")); } }; }, "destroyer"), w9 = /* @__PURE__ */ n(function(e) { e(); }, "call"), Bne = /* @__PURE__ */ n(function(e, t) { return e.pipe(t); }, "pipe"), Nne = /* @__PURE__ */ n(function() { var e = Array.prototype.slice.call(arguments), t = B0(e[e.length - 1] || jf) && e.pop() || jf; if (Array.isArray(e[0]) && (e = e[0]), e.length < 2) throw new Error("pump requires two streams per minimum"); var r, i = e.map(function(s, a) { var o = a < e.length - 1, u = a > 0; return kne(s, o, u, function(l) { r || (r = l), l && i.forEach(w9), !o && (i.forEach(w9), t(r)); }); }); e.reduce(Bne); }, "pump"); A9.exports = Nne; }); // ../node_modules/pumpify/node_modules/isarray/index.js var F9 = E((Ost, P9) => { var Mne = {}.toString; P9.exports = Array.isArray || function(e) { return Mne.call(e) == "[object Array]"; }; }); // ../node_modules/pumpify/node_modules/readable-stream/lib/internal/streams/stream.js var yv = E((kst, I9) => { I9.exports = require("stream"); }); // ../node_modules/pumpify/node_modules/safe-buffer/index.js var M0 = E((gv, k9) => { var N0 = require("buffer"), Pn = N0.Buffer; function O9(e, t) { for (var r in e) t[r] = e[r]; } n(O9, "copyProps"); Pn.from && Pn.alloc && Pn.allocUnsafe && Pn.allocUnsafeSlow ? k9.exports = N0 : (O9(N0, gv), gv.Buffer = yl); function yl(e, t, r) { return Pn(e, t, r); } n(yl, "SafeBuffer"); O9(Pn, yl); yl.from = function(e, t, r) { if (typeof e == "number") throw new TypeError("Argument must not be a number"); return Pn(e, t, r); }; yl.alloc = function(e, t, r) { if (typeof e != "number") throw new TypeError("Argument must be a number"); var i = Pn(e); return t !== void 0 ? typeof r == "string" ? i.fill(t, r) : i.fill(t) : i.fill(0), i; }; yl.allocUnsafe = function(e) { if (typeof e != "number") throw new TypeError("Argument must be a number"); return Pn(e); }; yl.allocUnsafeSlow = function(e) { if (typeof e != "number") throw new TypeError("Argument must be a number"); return N0.SlowBuffer(e); }; }); // ../node_modules/pumpify/node_modules/readable-stream/lib/internal/streams/BufferList.js var N9 = E((Nst, bv) => { "use strict"; function Rne(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } n(Rne, "_classCallCheck"); var B9 = M0().Buffer, qf = require("util"); function Lne(e, t, r) { e.copy(t, r); } n(Lne, "copyBuffer"); bv.exports = function() { function e() { Rne(this, e), this.head = null, this.tail = null, this.length = 0; } return n(e, "BufferList"), e.prototype.push = /* @__PURE__ */ n(function(r) { var i = { data: r, next: null }; this.length > 0 ? this.tail.next = i : this.head = i, this.tail = i, ++this.length; }, "push"), e.prototype.unshift = /* @__PURE__ */ n(function(r) { var i = { data: r, next: this.head }; this.length === 0 && (this.tail = i), this.head = i, ++this.length; }, "unshift"), e.prototype.shift = /* @__PURE__ */ n(function() { if (this.length !== 0) { var r = this.head.data; return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, r; } }, "shift"), e.prototype.clear = /* @__PURE__ */ n(function() { this.head = this.tail = null, this.length = 0; }, "clear"), e.prototype.join = /* @__PURE__ */ n(function(r) { if (this.length === 0) return ""; for (var i = this.head, s = "" + i.data; i = i.next; ) s += r + i.data; return s; }, "join"), e.prototype.concat = /* @__PURE__ */ n(function(r) { if (this.length === 0) return B9.alloc(0); for (var i = B9.allocUnsafe(r >>> 0), s = this.head, a = 0; s; ) Lne(s.data, i, a), a += s.data.length, s = s.next; return i; }, "concat"), e; }(); qf && qf.inspect && qf.inspect.custom && (bv.exports.prototype[qf.inspect.custom] = function() { var e = qf.inspect({ length: this.length }); return this.constructor.name + " " + e; }); }); // ../node_modules/pumpify/node_modules/readable-stream/lib/internal/streams/destroy.js var Dv = E((Rst, M9) => { "use strict"; var R0 = Ei(); function jne(e, t) { var r = this, i = this._readableState && this._readableState.destroyed, s = this._writableState && this._writableState.destroyed; return i || s ? (t ? t(e) : e && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, R0.nextTick( L0, this, e)) : R0.nextTick(L0, this, e)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this. _writableState.destroyed = !0), this._destroy(e || null, function(a) { !t && a ? r._writableState ? r._writableState.errorEmitted || (r._writableState.errorEmitted = !0, R0.nextTick(L0, r, a)) : R0.nextTick( L0, r, a) : t && t(a); }), this); } n(jne, "destroy"); function qne() { this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState. endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1); } n(qne, "undestroy"); function L0(e, t) { e.emit("error", t); } n(L0, "emitErrorNT"); M9.exports = { destroy: jne, undestroy: qne }; }); // ../node_modules/pumpify/node_modules/readable-stream/lib/_stream_writable.js var xv = E((jst, W9) => { "use strict"; var To = Ei(); W9.exports = or; function L9(e) { var t = this; this.next = null, this.entry = null, this.finish = function() { sae(t, e); }; } n(L9, "CorkedRequest"); var Une = !process.browser && ["v0.10", "v0.9."].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : To.nextTick, gl; or.WritableState = $f; var j9 = Object.create(dr()); j9.inherits = St(); var $ne = { deprecate: df() }, q9 = yv(), q0 = M0().Buffer, Vne = (typeof global < "u" ? global : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() { }; function Wne(e) { return q0.from(e); } n(Wne, "_uint8ArrayToBuffer"); function Hne(e) { return q0.isBuffer(e) || e instanceof Vne; } n(Hne, "_isUint8Array"); var U9 = Dv(); j9.inherits(or, q9); function Kne() { } n(Kne, "nop"); function $f(e, t) { gl = gl || Co(), e = e || {}; var r = t instanceof gl; this.objectMode = !!e.objectMode, r && (this.objectMode = this.objectMode || !!e.writableObjectMode); var i = e.highWaterMark, s = e.writableHighWaterMark, a = this.objectMode ? 16 : 16 * 1024; i || i === 0 ? this.highWaterMark = i : r && (s || s === 0) ? this.highWaterMark = s : this.highWaterMark = a, this.highWaterMark = Math. floor(this.highWaterMark), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1; var o = e.decodeStrings === !1; this.decodeStrings = !o, this.defaultEncoding = e.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(u) { Qne(t, u); }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.bufferedRequestCount = 0, this.corkedRequestsFree = new L9(this); } n($f, "WritableState"); $f.prototype.getBuffer = /* @__PURE__ */ n(function() { for (var t = this.bufferedRequest, r = []; t; ) r.push(t), t = t.next; return r; }, "getBuffer"); (function() { try { Object.defineProperty($f.prototype, "buffer", { get: $ne.deprecate(function() { return this.getBuffer(); }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") }); } catch { } })(); var j0; typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (j0 = Function.prototype[Symbol. hasInstance], Object.defineProperty(or, Symbol.hasInstance, { value: /* @__PURE__ */ n(function(e) { return j0.call(this, e) ? !0 : this !== or ? !1 : e && e._writableState instanceof $f; }, "value") })) : j0 = /* @__PURE__ */ n(function(e) { return e instanceof this; }, "realHasInstance"); function or(e) { if (gl = gl || Co(), !j0.call(or, this) && !(this instanceof gl)) return new or(e); this._writableState = new $f(e, this), this.writable = !0, e && (typeof e.write == "function" && (this._write = e.write), typeof e.writev == "function" && (this._writev = e.writev), typeof e.destroy == "function" && (this._destroy = e.destroy), typeof e.final == "function" && (this. _final = e.final)), q9.call(this); } n(or, "Writable"); or.prototype.pipe = function() { this.emit("error", new Error("Cannot pipe, not readable")); }; function zne(e, t) { var r = new Error("write after end"); e.emit("error", r), To.nextTick(t, r); } n(zne, "writeAfterEnd"); function Jne(e, t, r, i) { var s = !0, a = !1; return r === null ? a = new TypeError("May not write null values to stream") : typeof r != "string" && r !== void 0 && !t.objectMode && (a = new TypeError("Invalid non-string/buffer chunk")), a && (e.emit("error", a), To.nextTick(i, a), s = !1), s; } n(Jne, "validChunk"); or.prototype.write = function(e, t, r) { var i = this._writableState, s = !1, a = !i.objectMode && Hne(e); return a && !q0.isBuffer(e) && (e = Wne(e)), typeof t == "function" && (r = t, t = null), a ? t = "buffer" : t || (t = i.defaultEncoding), typeof r != "function" && (r = Kne), i.ended ? zne(this, r) : (a || Jne(this, i, e, r)) && (i.pendingcb++, s = Yne(this, i, a, e, t, r)), s; }; or.prototype.cork = function() { var e = this._writableState; e.corked++; }; or.prototype.uncork = function() { var e = this._writableState; e.corked && (e.corked--, !e.writing && !e.corked && !e.bufferProcessing && e.bufferedRequest && $9(this, e)); }; or.prototype.setDefaultEncoding = /* @__PURE__ */ n(function(t) { if (typeof t == "string" && (t = t.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "\ utf-16le", "raw"].indexOf((t + "").toLowerCase()) > -1)) throw new TypeError("Unknown encoding: " + t); return this._writableState.defaultEncoding = t, this; }, "setDefaultEncoding"); function Xne(e, t, r) { return !e.objectMode && e.decodeStrings !== !1 && typeof t == "string" && (t = q0.from(t, r)), t; } n(Xne, "decodeChunk"); Object.defineProperty(or.prototype, "writableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ n(function() { return this._writableState.highWaterMark; }, "get") }); function Yne(e, t, r, i, s, a) { if (!r) { var o = Xne(t, i, s); i !== o && (r = !0, s = "buffer", i = o); } var u = t.objectMode ? 1 : i.length; t.length += u; var l = t.length < t.highWaterMark; if (l || (t.needDrain = !0), t.writing || t.corked) { var c = t.lastBufferedRequest; t.lastBufferedRequest = { chunk: i, encoding: s, isBuf: r, callback: a, next: null }, c ? c.next = t.lastBufferedRequest : t.bufferedRequest = t.lastBufferedRequest, t.bufferedRequestCount += 1; } else vv(e, t, !1, u, i, s, a); return l; } n(Yne, "writeOrBuffer"); function vv(e, t, r, i, s, a, o) { t.writelen = i, t.writecb = o, t.writing = !0, t.sync = !0, r ? e._writev(s, t.onwrite) : e._write(s, a, t.onwrite), t.sync = !1; } n(vv, "doWrite"); function Gne(e, t, r, i, s) { --t.pendingcb, r ? (To.nextTick(s, i), To.nextTick(Uf, e, t), e._writableState.errorEmitted = !0, e.emit("error", i)) : (s(i), e._writableState. errorEmitted = !0, e.emit("error", i), Uf(e, t)); } n(Gne, "onwriteError"); function Zne(e) { e.writing = !1, e.writecb = null, e.length -= e.writelen, e.writelen = 0; } n(Zne, "onwriteStateUpdate"); function Qne(e, t) { var r = e._writableState, i = r.sync, s = r.writecb; if (Zne(r), t) Gne(e, r, i, t, s); else { var a = V9(r); !a && !r.corked && !r.bufferProcessing && r.bufferedRequest && $9(e, r), i ? Une(R9, e, r, a, s) : R9(e, r, a, s); } } n(Qne, "onwrite"); function R9(e, t, r, i) { r || eae(e, t), t.pendingcb--, i(), Uf(e, t); } n(R9, "afterWrite"); function eae(e, t) { t.length === 0 && t.needDrain && (t.needDrain = !1, e.emit("drain")); } n(eae, "onwriteDrain"); function $9(e, t) { t.bufferProcessing = !0; var r = t.bufferedRequest; if (e._writev && r && r.next) { var i = t.bufferedRequestCount, s = new Array(i), a = t.corkedRequestsFree; a.entry = r; for (var o = 0, u = !0; r; ) s[o] = r, r.isBuf || (u = !1), r = r.next, o += 1; s.allBuffers = u, vv(e, t, !0, t.length, s, "", a.finish), t.pendingcb++, t.lastBufferedRequest = null, a.next ? (t.corkedRequestsFree = a.next, a.next = null) : t.corkedRequestsFree = new L9(t), t.bufferedRequestCount = 0; } else { for (; r; ) { var l = r.chunk, c = r.encoding, f = r.callback, m = t.objectMode ? 1 : l.length; if (vv(e, t, !1, m, l, c, f), r = r.next, t.bufferedRequestCount--, t.writing) break; } r === null && (t.lastBufferedRequest = null); } t.bufferedRequest = r, t.bufferProcessing = !1; } n($9, "clearBuffer"); or.prototype._write = function(e, t, r) { r(new Error("_write() is not implemented")); }; or.prototype._writev = null; or.prototype.end = function(e, t, r) { var i = this._writableState; typeof e == "function" ? (r = e, e = null, t = null) : typeof t == "function" && (r = t, t = null), e != null && this.write(e, t), i.corked && (i.corked = 1, this.uncork()), i.ending || iae(this, i, r); }; function V9(e) { return e.ending && e.length === 0 && e.bufferedRequest === null && !e.finished && !e.writing; } n(V9, "needFinish"); function tae(e, t) { e._final(function(r) { t.pendingcb--, r && e.emit("error", r), t.prefinished = !0, e.emit("prefinish"), Uf(e, t); }); } n(tae, "callFinal"); function rae(e, t) { !t.prefinished && !t.finalCalled && (typeof e._final == "function" ? (t.pendingcb++, t.finalCalled = !0, To.nextTick(tae, e, t)) : (t.prefinished = !0, e.emit("prefinish"))); } n(rae, "prefinish"); function Uf(e, t) { var r = V9(t); return r && (rae(e, t), t.pendingcb === 0 && (t.finished = !0, e.emit("finish"))), r; } n(Uf, "finishMaybe"); function iae(e, t, r) { t.ending = !0, Uf(e, t), r && (t.finished ? To.nextTick(r) : e.once("finish", r)), t.ended = !0, e.writable = !1; } n(iae, "endWritable"); function sae(e, t, r) { var i = e.entry; for (e.entry = null; i; ) { var s = i.callback; t.pendingcb--, s(r), i = i.next; } t.corkedRequestsFree.next = e; } n(sae, "onCorkedFinish"); Object.defineProperty(or.prototype, "destroyed", { get: /* @__PURE__ */ n(function() { return this._writableState === void 0 ? !1 : this._writableState.destroyed; }, "get"), set: /* @__PURE__ */ n(function(e) { this._writableState && (this._writableState.destroyed = e); }, "set") }); or.prototype.destroy = U9.destroy; or.prototype._undestroy = U9.undestroy; or.prototype._destroy = function(e, t) { this.end(), t(e); }; }); // ../node_modules/pumpify/node_modules/readable-stream/lib/_stream_duplex.js var Co = E((Ust, J9) => { "use strict"; var H9 = Ei(), nae = Object.keys || function(e) { var t = []; for (var r in e) t.push(r); return t; }; J9.exports = Fn; var K9 = Object.create(dr()); K9.inherits = St(); var z9 = Tv(), Sv = xv(); K9.inherits(Fn, z9); for (Ev = nae(Sv.prototype), U0 = 0; U0 < Ev.length; U0++) $0 = Ev[U0], Fn.prototype[$0] || (Fn.prototype[$0] = Sv.prototype[$0]); var Ev, $0, U0; function Fn(e) { if (!(this instanceof Fn)) return new Fn(e); z9.call(this, e), Sv.call(this, e), e && e.readable === !1 && (this.readable = !1), e && e.writable === !1 && (this.writable = !1), this. allowHalfOpen = !0, e && e.allowHalfOpen === !1 && (this.allowHalfOpen = !1), this.once("end", aae); } n(Fn, "Duplex"); Object.defineProperty(Fn.prototype, "writableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ n(function() { return this._writableState.highWaterMark; }, "get") }); function aae() { this.allowHalfOpen || this._writableState.ended || H9.nextTick(oae, this); } n(aae, "onend"); function oae(e) { e.end(); } n(oae, "onEndNT"); Object.defineProperty(Fn.prototype, "destroyed", { get: /* @__PURE__ */ n(function() { return this._readableState === void 0 || this._writableState === void 0 ? !1 : this._readableState.destroyed && this._writableState.destroyed; }, "get"), set: /* @__PURE__ */ n(function(e) { this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = e, this._writableState.destroyed = e); }, "set") }); Fn.prototype._destroy = function(e, t) { this.push(null), this.end(), H9.nextTick(t, e); }; }); // ../node_modules/pumpify/node_modules/readable-stream/lib/_stream_readable.js var Tv = E((Wst, aO) => { "use strict"; var Dl = Ei(); aO.exports = It; var uae = F9(), Vf; It.ReadableState = tO; var Vst = require("events").EventEmitter, Z9 = /* @__PURE__ */ n(function(e, t) { return e.listeners(t).length; }, "EElistenerCount"), Pv = yv(), Wf = M0().Buffer, lae = (typeof global < "u" ? global : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() { }; function cae(e) { return Wf.from(e); } n(cae, "_uint8ArrayToBuffer"); function fae(e) { return Wf.isBuffer(e) || e instanceof lae; } n(fae, "_isUint8Array"); var Q9 = Object.create(dr()); Q9.inherits = St(); var Cv = require("util"), dt = void 0; Cv && Cv.debuglog ? dt = Cv.debuglog("stream") : dt = /* @__PURE__ */ n(function() { }, "debug"); var dae = N9(), eO = Dv(), bl; Q9.inherits(It, Pv); var wv = ["error", "close", "destroy", "pause", "resume"]; function pae(e, t, r) { if (typeof e.prependListener == "function") return e.prependListener(t, r); !e._events || !e._events[t] ? e.on(t, r) : uae(e._events[t]) ? e._events[t].unshift(r) : e._events[t] = [r, e._events[t]]; } n(pae, "prependListener"); function tO(e, t) { Vf = Vf || Co(), e = e || {}; var r = t instanceof Vf; this.objectMode = !!e.objectMode, r && (this.objectMode = this.objectMode || !!e.readableObjectMode); var i = e.highWaterMark, s = e.readableHighWaterMark, a = this.objectMode ? 16 : 16 * 1024; i || i === 0 ? this.highWaterMark = i : r && (s || s === 0) ? this.highWaterMark = s : this.highWaterMark = a, this.highWaterMark = Math. floor(this.highWaterMark), this.buffer = new dae(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.destroyed = !1, this.defaultEncoding = e.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, e.encoding && (bl || (bl = require("string_decoder/").StringDecoder), this.decoder = new bl( e.encoding), this.encoding = e.encoding); } n(tO, "ReadableState"); function It(e) { if (Vf = Vf || Co(), !(this instanceof It)) return new It(e); this._readableState = new tO(e, this), this.readable = !0, e && (typeof e.read == "function" && (this._read = e.read), typeof e.destroy == "function" && (this._destroy = e.destroy)), Pv.call(this); } n(It, "Readable"); Object.defineProperty(It.prototype, "destroyed", { get: /* @__PURE__ */ n(function() { return this._readableState === void 0 ? !1 : this._readableState.destroyed; }, "get"), set: /* @__PURE__ */ n(function(e) { this._readableState && (this._readableState.destroyed = e); }, "set") }); It.prototype.destroy = eO.destroy; It.prototype._undestroy = eO.undestroy; It.prototype._destroy = function(e, t) { this.push(null), t(e); }; It.prototype.push = function(e, t) { var r = this._readableState, i; return r.objectMode ? i = !0 : typeof e == "string" && (t = t || r.defaultEncoding, t !== r.encoding && (e = Wf.from(e, t), t = ""), i = !0), rO(this, e, t, !1, i); }; It.prototype.unshift = function(e) { return rO(this, e, null, !0, !1); }; function rO(e, t, r, i, s) { var a = e._readableState; if (t === null) a.reading = !1, gae(e, a); else { var o; s || (o = hae(a, t)), o ? e.emit("error", o) : a.objectMode || t && t.length > 0 ? (typeof t != "string" && !a.objectMode && Object.getPrototypeOf( t) !== Wf.prototype && (t = cae(t)), i ? a.endEmitted ? e.emit("error", new Error("stream.unshift() after end event")) : Av(e, a, t, !0) : a.ended ? e.emit("error", new Error("stream.push() after EOF")) : (a.reading = !1, a.decoder && !r ? (t = a.decoder.write(t), a.objectMode || t.length !== 0 ? Av(e, a, t, !1) : iO(e, a)) : Av(e, a, t, !1))) : i || (a.reading = !1); } return mae(a); } n(rO, "readableAddChunk"); function Av(e, t, r, i) { t.flowing && t.length === 0 && !t.sync ? (e.emit("data", r), e.read(0)) : (t.length += t.objectMode ? 1 : r.length, i ? t.buffer.unshift( r) : t.buffer.push(r), t.needReadable && V0(e)), iO(e, t); } n(Av, "addChunk"); function hae(e, t) { var r; return !fae(t) && typeof t != "string" && t !== void 0 && !e.objectMode && (r = new TypeError("Invalid non-string/buffer chunk")), r; } n(hae, "chunkInvalid"); function mae(e) { return !e.ended && (e.needReadable || e.length < e.highWaterMark || e.length === 0); } n(mae, "needMoreData"); It.prototype.isPaused = function() { return this._readableState.flowing === !1; }; It.prototype.setEncoding = function(e) { return bl || (bl = require("string_decoder/").StringDecoder), this._readableState.decoder = new bl(e), this._readableState.encoding = e, this; }; var X9 = 8388608; function yae(e) { return e >= X9 ? e = X9 : (e--, e |= e >>> 1, e |= e >>> 2, e |= e >>> 4, e |= e >>> 8, e |= e >>> 16, e++), e; } n(yae, "computeNewHighWaterMark"); function Y9(e, t) { return e <= 0 || t.length === 0 && t.ended ? 0 : t.objectMode ? 1 : e !== e ? t.flowing && t.length ? t.buffer.head.data.length : t.length : (e > t.highWaterMark && (t.highWaterMark = yae(e)), e <= t.length ? e : t.ended ? t.length : (t.needReadable = !0, 0)); } n(Y9, "howMuchToRead"); It.prototype.read = function(e) { dt("read", e), e = parseInt(e, 10); var t = this._readableState, r = e; if (e !== 0 && (t.emittedReadable = !1), e === 0 && t.needReadable && (t.length >= t.highWaterMark || t.ended)) return dt("read: emitReadable", t.length, t.ended), t.length === 0 && t.ended ? _v(this) : V0(this), null; if (e = Y9(e, t), e === 0 && t.ended) return t.length === 0 && _v(this), null; var i = t.needReadable; dt("need readable", i), (t.length === 0 || t.length - e < t.highWaterMark) && (i = !0, dt("length less than watermark", i)), t.ended || t. reading ? (i = !1, dt("reading or ended", i)) : i && (dt("do read"), t.reading = !0, t.sync = !0, t.length === 0 && (t.needReadable = !0), this._read(t.highWaterMark), t.sync = !1, t.reading || (e = Y9(r, t))); var s; return e > 0 ? s = sO(e, t) : s = null, s === null ? (t.needReadable = !0, e = 0) : t.length -= e, t.length === 0 && (t.ended || (t.needReadable = !0), r !== e && t.ended && _v(this)), s !== null && this.emit("data", s), s; }; function gae(e, t) { if (!t.ended) { if (t.decoder) { var r = t.decoder.end(); r && r.length && (t.buffer.push(r), t.length += t.objectMode ? 1 : r.length); } t.ended = !0, V0(e); } } n(gae, "onEofChunk"); function V0(e) { var t = e._readableState; t.needReadable = !1, t.emittedReadable || (dt("emitReadable", t.flowing), t.emittedReadable = !0, t.sync ? Dl.nextTick(G9, e) : G9(e)); } n(V0, "emitReadable"); function G9(e) { dt("emit readable"), e.emit("readable"), Fv(e); } n(G9, "emitReadable_"); function iO(e, t) { t.readingMore || (t.readingMore = !0, Dl.nextTick(bae, e, t)); } n(iO, "maybeReadMore"); function bae(e, t) { for (var r = t.length; !t.reading && !t.flowing && !t.ended && t.length < t.highWaterMark && (dt("maybeReadMore read 0"), e.read(0), r !== t.length); ) r = t.length; t.readingMore = !1; } n(bae, "maybeReadMore_"); It.prototype._read = function(e) { this.emit("error", new Error("_read() is not implemented")); }; It.prototype.pipe = function(e, t) { var r = this, i = this._readableState; switch (i.pipesCount) { case 0: i.pipes = e; break; case 1: i.pipes = [i.pipes, e]; break; default: i.pipes.push(e); break; } i.pipesCount += 1, dt("pipe count=%d opts=%j", i.pipesCount, t); var s = (!t || t.end !== !1) && e !== process.stdout && e !== process.stderr, a = s ? u : g; i.endEmitted ? Dl.nextTick(a) : r.once("end", a), e.on("unpipe", o); function o(b, D) { dt("onunpipe"), b === r && D && D.hasUnpiped === !1 && (D.hasUnpiped = !0, f()); } n(o, "onunpipe"); function u() { dt("onend"), e.end(); } n(u, "onend"); var l = Dae(r); e.on("drain", l); var c = !1; function f() { dt("cleanup"), e.removeListener("close", y), e.removeListener("finish", p), e.removeListener("drain", l), e.removeListener("error", d), e.removeListener("unpipe", o), r.removeListener("end", u), r.removeListener("end", g), r.removeListener("data", h), c = !0, i.awaitDrain && (!e._writableState || e._writableState.needDrain) && l(); } n(f, "cleanup"); var m = !1; r.on("data", h); function h(b) { dt("ondata"), m = !1; var D = e.write(b); D === !1 && !m && ((i.pipesCount === 1 && i.pipes === e || i.pipesCount > 1 && nO(i.pipes, e) !== -1) && !c && (dt("false write respon\ se, pause", i.awaitDrain), i.awaitDrain++, m = !0), r.pause()); } n(h, "ondata"); function d(b) { dt("onerror", b), g(), e.removeListener("error", d), Z9(e, "error") === 0 && e.emit("error", b); } n(d, "onerror"), pae(e, "error", d); function y() { e.removeListener("finish", p), g(); } n(y, "onclose"), e.once("close", y); function p() { dt("onfinish"), e.removeListener("close", y), g(); } n(p, "onfinish"), e.once("finish", p); function g() { dt("unpipe"), r.unpipe(e); } return n(g, "unpipe"), e.emit("pipe", r), i.flowing || (dt("pipe resume"), r.resume()), e; }; function Dae(e) { return function() { var t = e._readableState; dt("pipeOnDrain", t.awaitDrain), t.awaitDrain && t.awaitDrain--, t.awaitDrain === 0 && Z9(e, "data") && (t.flowing = !0, Fv(e)); }; } n(Dae, "pipeOnDrain"); It.prototype.unpipe = function(e) { var t = this._readableState, r = { hasUnpiped: !1 }; if (t.pipesCount === 0) return this; if (t.pipesCount === 1) return e && e !== t.pipes ? this : (e || (e = t.pipes), t.pipes = null, t.pipesCount = 0, t.flowing = !1, e && e.emit("unpipe", this, r), this); if (!e) { var i = t.pipes, s = t.pipesCount; t.pipes = null, t.pipesCount = 0, t.flowing = !1; for (var a = 0; a < s; a++) i[a].emit("unpipe", this, { hasUnpiped: !1 }); return this; } var o = nO(t.pipes, e); return o === -1 ? this : (t.pipes.splice(o, 1), t.pipesCount -= 1, t.pipesCount === 1 && (t.pipes = t.pipes[0]), e.emit("unpipe", this, r), this); }; It.prototype.on = function(e, t) { var r = Pv.prototype.on.call(this, e, t); if (e === "data") this._readableState.flowing !== !1 && this.resume(); else if (e === "readable") { var i = this._readableState; !i.endEmitted && !i.readableListening && (i.readableListening = i.needReadable = !0, i.emittedReadable = !1, i.reading ? i.length && V0( this) : Dl.nextTick(vae, this)); } return r; }; It.prototype.addListener = It.prototype.on; function vae(e) { dt("readable nexttick read 0"), e.read(0); } n(vae, "nReadingNextTick"); It.prototype.resume = function() { var e = this._readableState; return e.flowing || (dt("resume"), e.flowing = !0, xae(this, e)), this; }; function xae(e, t) { t.resumeScheduled || (t.resumeScheduled = !0, Dl.nextTick(Eae, e, t)); } n(xae, "resume"); function Eae(e, t) { t.reading || (dt("resume read 0"), e.read(0)), t.resumeScheduled = !1, t.awaitDrain = 0, e.emit("resume"), Fv(e), t.flowing && !t.reading && e.read(0); } n(Eae, "resume_"); It.prototype.pause = function() { return dt("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (dt("pause"), this._readableState. flowing = !1, this.emit("pause")), this; }; function Fv(e) { var t = e._readableState; for (dt("flow", t.flowing); t.flowing && e.read() !== null; ) ; } n(Fv, "flow"); It.prototype.wrap = function(e) { var t = this, r = this._readableState, i = !1; e.on("end", function() { if (dt("wrapped end"), r.decoder && !r.ended) { var o = r.decoder.end(); o && o.length && t.push(o); } t.push(null); }), e.on("data", function(o) { if (dt("wrapped data"), r.decoder && (o = r.decoder.write(o)), !(r.objectMode && o == null) && !(!r.objectMode && (!o || !o.length))) { var u = t.push(o); u || (i = !0, e.pause()); } }); for (var s in e) this[s] === void 0 && typeof e[s] == "function" && (this[s] = /* @__PURE__ */ function(o) { return function() { return e[o].apply(e, arguments); }; }(s)); for (var a = 0; a < wv.length; a++) e.on(wv[a], this.emit.bind(this, wv[a])); return this._read = function(o) { dt("wrapped _read", o), i && (i = !1, e.resume()); }, this; }; Object.defineProperty(It.prototype, "readableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: !1, get: /* @__PURE__ */ n(function() { return this._readableState.highWaterMark; }, "get") }); It._fromList = sO; function sO(e, t) { if (t.length === 0) return null; var r; return t.objectMode ? r = t.buffer.shift() : !e || e >= t.length ? (t.decoder ? r = t.buffer.join("") : t.buffer.length === 1 ? r = t.buffer. head.data : r = t.buffer.concat(t.length), t.buffer.clear()) : r = Sae(e, t.buffer, t.decoder), r; } n(sO, "fromList"); function Sae(e, t, r) { var i; return e < t.head.data.length ? (i = t.head.data.slice(0, e), t.head.data = t.head.data.slice(e)) : e === t.head.data.length ? i = t.shift() : i = r ? Tae(e, t) : Cae(e, t), i; } n(Sae, "fromListPartial"); function Tae(e, t) { var r = t.head, i = 1, s = r.data; for (e -= s.length; r = r.next; ) { var a = r.data, o = e > a.length ? a.length : e; if (o === a.length ? s += a : s += a.slice(0, e), e -= o, e === 0) { o === a.length ? (++i, r.next ? t.head = r.next : t.head = t.tail = null) : (t.head = r, r.data = a.slice(o)); break; } ++i; } return t.length -= i, s; } n(Tae, "copyFromBufferString"); function Cae(e, t) { var r = Wf.allocUnsafe(e), i = t.head, s = 1; for (i.data.copy(r), e -= i.data.length; i = i.next; ) { var a = i.data, o = e > a.length ? a.length : e; if (a.copy(r, r.length - e, 0, o), e -= o, e === 0) { o === a.length ? (++s, i.next ? t.head = i.next : t.head = t.tail = null) : (t.head = i, i.data = a.slice(o)); break; } ++s; } return t.length -= s, r; } n(Cae, "copyFromBuffer"); function _v(e) { var t = e._readableState; if (t.length > 0) throw new Error('"endReadable()" called on non-empty stream'); t.endEmitted || (t.ended = !0, Dl.nextTick(wae, t, e)); } n(_v, "endReadable"); function wae(e, t) { !e.endEmitted && e.length === 0 && (e.endEmitted = !0, t.readable = !1, t.emit("end")); } n(wae, "endReadableNT"); function nO(e, t) { for (var r = 0, i = e.length; r < i; r++) if (e[r] === t) return r; return -1; } n(nO, "indexOf"); }); // ../node_modules/pumpify/node_modules/readable-stream/lib/_stream_transform.js var Iv = E((Kst, lO) => { "use strict"; lO.exports = In; var W0 = Co(), uO = Object.create(dr()); uO.inherits = St(); uO.inherits(In, W0); function Aae(e, t) { var r = this._transformState; r.transforming = !1; var i = r.writecb; if (!i) return this.emit("error", new Error("write callback called multiple times")); r.writechunk = null, r.writecb = null, t != null && this.push(t), i(e); var s = this._readableState; s.reading = !1, (s.needReadable || s.length < s.highWaterMark) && this._read(s.highWaterMark); } n(Aae, "afterTransform"); function In(e) { if (!(this instanceof In)) return new In(e); W0.call(this, e), this._transformState = { afterTransform: Aae.bind(this), needTransform: !1, transforming: !1, writecb: null, writechunk: null, writeencoding: null }, this._readableState.needReadable = !0, this._readableState.sync = !1, e && (typeof e.transform == "function" && (this._transform = e. transform), typeof e.flush == "function" && (this._flush = e.flush)), this.on("prefinish", _ae); } n(In, "Transform"); function _ae() { var e = this; typeof this._flush == "function" ? this._flush(function(t, r) { oO(e, t, r); }) : oO(this, null, null); } n(_ae, "prefinish"); In.prototype.push = function(e, t) { return this._transformState.needTransform = !1, W0.prototype.push.call(this, e, t); }; In.prototype._transform = function(e, t, r) { throw new Error("_transform() is not implemented"); }; In.prototype._write = function(e, t, r) { var i = this._transformState; if (i.writecb = r, i.writechunk = e, i.writeencoding = t, !i.transforming) { var s = this._readableState; (i.needTransform || s.needReadable || s.length < s.highWaterMark) && this._read(s.highWaterMark); } }; In.prototype._read = function(e) { var t = this._transformState; t.writechunk !== null && t.writecb && !t.transforming ? (t.transforming = !0, this._transform(t.writechunk, t.writeencoding, t.afterTransform)) : t.needTransform = !0; }; In.prototype._destroy = function(e, t) { var r = this; W0.prototype._destroy.call(this, e, function(i) { t(i), r.emit("close"); }); }; function oO(e, t, r) { if (t) return e.emit("error", t); if (r != null && e.push(r), e._writableState.length) throw new Error("Calling transform done when ws.length != 0"); if (e._transformState.transforming) throw new Error("Calling transform done when still transforming"); return e.push(null); } n(oO, "done"); }); // ../node_modules/pumpify/node_modules/readable-stream/lib/_stream_passthrough.js var pO = E((Jst, dO) => { "use strict"; dO.exports = Hf; var cO = Iv(), fO = Object.create(dr()); fO.inherits = St(); fO.inherits(Hf, cO); function Hf(e) { if (!(this instanceof Hf)) return new Hf(e); cO.call(this, e); } n(Hf, "PassThrough"); Hf.prototype._transform = function(e, t, r) { r(null, e); }; }); // ../node_modules/pumpify/node_modules/readable-stream/readable.js var hO = E((Fr, H0) => { var Hs = require("stream"); process.env.READABLE_STREAM === "disable" && Hs ? (H0.exports = Hs, Fr = H0.exports = Hs.Readable, Fr.Readable = Hs.Readable, Fr.Writable = Hs.Writable, Fr.Duplex = Hs.Duplex, Fr.Transform = Hs.Transform, Fr.PassThrough = Hs.PassThrough, Fr.Stream = Hs) : (Fr = H0.exports = Tv(), Fr.Stream = Hs || Fr, Fr.Readable = Fr, Fr.Writable = xv(), Fr.Duplex = Co(), Fr.Transform = Iv(), Fr.PassThrough = pO()); }); // ../node_modules/pumpify/node_modules/duplexify/index.js var DO = E((Yst, bO) => { var K0 = hO(), mO = Yu(), Pae = St(), Fae = JD(), yO = Buffer.from && Buffer.from !== Uint8Array.from ? Buffer.from([0]) : new Buffer([0]), Ov = /* @__PURE__ */ n(function(e, t) { e._corked ? e.once("uncork", t) : t(); }, "onuncork"), Iae = /* @__PURE__ */ n(function(e, t) { e._autoDestroy && e.destroy(t); }, "autoDestroy"), gO = /* @__PURE__ */ n(function(e, t) { return function(r) { r ? Iae(e, r.message === "premature close" ? null : r) : t && !e._ended && e.end(); }; }, "destroyer"), Oae = /* @__PURE__ */ n(function(e, t) { if (!e || e._writableState && e._writableState.finished) return t(); if (e._writableState) return e.end(t); e.end(), t(); }, "end"), kae = /* @__PURE__ */ n(function(e) { return new K0.Readable({ objectMode: !0, highWaterMark: 16 }).wrap(e); }, "toStreams2"), Ir = /* @__PURE__ */ n(function(e, t, r) { if (!(this instanceof Ir)) return new Ir(e, t, r); K0.Duplex.call(this, r), this._writable = null, this._readable = null, this._readable2 = null, this._autoDestroy = !r || r.autoDestroy !== !1, this._forwardDestroy = !r || r.destroy !== !1, this._forwardEnd = !r || r.end !== !1, this._corked = 1, this._ondrain = null, this._drained = !1, this._forwarding = !1, this._unwrite = null, this._unread = null, this._ended = !1, this.destroyed = !1, e && this.setWritable(e), t && this.setReadable(t); }, "Duplexify"); Pae(Ir, K0.Duplex); Ir.obj = function(e, t, r) { return r || (r = {}), r.objectMode = !0, r.highWaterMark = 16, new Ir(e, t, r); }; Ir.prototype.cork = function() { ++this._corked === 1 && this.emit("cork"); }; Ir.prototype.uncork = function() { this._corked && --this._corked === 0 && this.emit("uncork"); }; Ir.prototype.setWritable = function(e) { if (this._unwrite && this._unwrite(), this.destroyed) { e && e.destroy && e.destroy(); return; } if (e === null || e === !1) { this.end(); return; } var t = this, r = mO(e, { writable: !0, readable: !1 }, gO(this, this._forwardEnd)), i = /* @__PURE__ */ n(function() { var a = t._ondrain; t._ondrain = null, a && a(); }, "ondrain"), s = /* @__PURE__ */ n(function() { t._writable.removeListener("drain", i), r(); }, "clear"); this._unwrite && process.nextTick(i), this._writable = e, this._writable.on("drain", i), this._unwrite = s, this.uncork(); }; Ir.prototype.setReadable = function(e) { if (this._unread && this._unread(), this.destroyed) { e && e.destroy && e.destroy(); return; } if (e === null || e === !1) { this.push(null), this.resume(); return; } var t = this, r = mO(e, { writable: !1, readable: !0 }, gO(this)), i = /* @__PURE__ */ n(function() { t._forward(); }, "onreadable"), s = /* @__PURE__ */ n(function() { t.push(null); }, "onend"), a = /* @__PURE__ */ n(function() { t._readable2.removeListener("readable", i), t._readable2.removeListener("end", s), r(); }, "clear"); this._drained = !0, this._readable = e, this._readable2 = e._readableState ? e : kae(e), this._readable2.on("readable", i), this._readable2. on("end", s), this._unread = a, this._forward(); }; Ir.prototype._read = function() { this._drained = !0, this._forward(); }; Ir.prototype._forward = function() { if (!(this._forwarding || !this._readable2 || !this._drained)) { this._forwarding = !0; for (var e; this._drained && (e = Fae(this._readable2)) !== null; ) this.destroyed || (this._drained = this.push(e)); this._forwarding = !1; } }; Ir.prototype.destroy = function(e) { if (!this.destroyed) { this.destroyed = !0; var t = this; process.nextTick(function() { t._destroy(e); }); } }; Ir.prototype._destroy = function(e) { if (e) { var t = this._ondrain; this._ondrain = null, t ? t(e) : this.emit("error", e); } this._forwardDestroy && (this._readable && this._readable.destroy && this._readable.destroy(), this._writable && this._writable.destroy && this._writable.destroy()), this.emit("close"); }; Ir.prototype._write = function(e, t, r) { if (this.destroyed) return r(); if (this._corked) return Ov(this, this._write.bind(this, e, t, r)); if (e === yO) return this._finish(r); if (!this._writable) return r(); this._writable.write(e) === !1 ? this._ondrain = r : r(); }; Ir.prototype._finish = function(e) { var t = this; this.emit("preend"), Ov(this, function() { Oae(t._forwardEnd && t._writable, function() { t._writableState.prefinished === !1 && (t._writableState.prefinished = !0), t.emit("prefinish"), Ov(t, e); }); }); }; Ir.prototype.end = function(e, t, r) { return typeof e == "function" ? this.end(null, null, e) : typeof t == "function" ? this.end(e, null, t) : (this._ended = !0, e && this.write( e), this._writableState.ending || this.write(yO), K0.Writable.prototype.end.call(this, r)); }; bO.exports = Ir; }); // ../node_modules/pumpify/index.js var EO = E((Zst, z0) => { var Bae = _9(), Nae = St(), vO = DO(), xO = /* @__PURE__ */ n(function(e) { return e.length ? Array.isArray(e[0]) ? e[0] : Array.prototype.slice.call(e) : []; }, "toArray"), kv = /* @__PURE__ */ n(function(e) { var t = /* @__PURE__ */ n(function() { var r = xO(arguments); if (!(this instanceof t)) return new t(r); vO.call(this, null, null, e), r.length && this.setPipeline(r); }, "Pumpify"); return Nae(t, vO), t.prototype.setPipeline = function() { var r = xO(arguments), i = this, s = !1, a = r[0], o = r[r.length - 1]; o = o.readable ? o : null, a = a.writable ? a : null; var u = /* @__PURE__ */ n(function() { r[0].emit("error", new Error("stream was destroyed")); }, "onclose"); if (this.on("close", u), this.on("prefinish", function() { s || i.cork(); }), Bae(r, function(l) { if (i.removeListener("close", u), l) return i.destroy(l.message === "premature close" ? null : l); s = !0, i._autoDestroy === !1 && (i._autoDestroy = !0), i.uncork(); }), this.destroyed) return u(); this.setWritable(a), this.setReadable(o); }, t; }, "define"); z0.exports = kv({ autoDestroy: !1, destroy: !1 }); z0.exports.obj = kv({ autoDestroy: !1, destroy: !1, objectMode: !0, highWaterMark: 16 }); z0.exports.ctor = kv; }); // ../node_modules/is-gzip/index.js var TO = E((ent, SO) => { "use strict"; SO.exports = function(e) { return !e || e.length < 3 ? !1 : e[0] === 31 && e[1] === 139 && e[2] === 8; }; }); // ../node_modules/is-deflate/index.js var wO = E((tnt, CO) => { "use strict"; CO.exports = function(e) { return !e || e.length < 2 ? !1 : e[0] === 120 && (e[1] === 1 || e[1] === 156 || e[1] === 218); }; }); // ../node_modules/gunzip-maybe/index.js var FO = E((rnt, PO) => { var AO = require("zlib"), Mae = C9(), Rae = pv(), _O = EO(), Lae = TO(), jae = wO(), qae = /* @__PURE__ */ n(function(e) { return Lae(e) ? 1 : jae(e) ? 2 : 0; }, "isCompressed"), Bv = /* @__PURE__ */ n(function(e) { return e === void 0 && (e = 3), Mae({ newline: !1, maxBuffer: 10 }, function(t, r) { if (e < 0) return r(new Error("Maximum recursion reached")); switch (qae(t)) { case 1: r(null, _O(AO.createGunzip(), Bv(e - 1))); break; case 2: r(null, _O(AO.createInflate(), Bv(e - 1))); break; default: r(null, Rae()); } }); }, "gunzip"); PO.exports = Bv; }); // ../node_modules/@ndelangen/get-tarball/dist/index.js var Ck = E((ant, Tk) => { "use strict"; var Uae = Object.create, sm = Object.defineProperty, $ae = Object.getOwnPropertyDescriptor, tk = Object.getOwnPropertyNames, Vae = Object. getPrototypeOf, Wae = Object.prototype.hasOwnProperty, nt = /* @__PURE__ */ n((e, t) => /* @__PURE__ */ n(function() { return t || (0, e[tk(e)[0]])((t = { exports: {} }).exports, t), t.exports; }, "__require"), "__commonJS"), Hae = /* @__PURE__ */ n((e, t) => { for (var r in t) sm(e, r, { get: t[r], enumerable: !0 }); }, "__export"), rk = /* @__PURE__ */ n((e, t, r, i) => { if (t && typeof t == "object" || typeof t == "function") for (let s of tk(t)) !Wae.call(e, s) && s !== r && sm(e, s, { get: /* @__PURE__ */ n(() => t[s], "get"), enumerable: !(i = $ae(t, s)) || i.enumerable }); return e; }, "__copyProps"), ur = /* @__PURE__ */ n((e, t, r) => (r = e != null ? Uae(Vae(e)) : {}, rk( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. t || !e || !e.__esModule ? sm(r, "default", { value: e, enumerable: !0 }) : r, e )), "__toESM"), Kae = /* @__PURE__ */ n((e) => rk(sm({}, "__esModule", { value: !0 }), e), "__toCommonJS"), zae = nt({ "node_modules/.pnpm/defer-to-connect@2.0.1/node_modules/defer-to-connect/dist/source/index.js"(e, t) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); function r(s) { return s.encrypted; } n(r, "isTLSSocket"); var i = /* @__PURE__ */ n((s, a) => { let o; typeof a == "function" ? o = { connect: a } : o = a; let u = typeof o.connect == "function", l = typeof o.secureConnect == "function", c = typeof o.close == "function", f = /* @__PURE__ */ n( () => { u && o.connect(), r(s) && l && (s.authorized ? o.secureConnect() : s.authorizationError || s.once("secureConnect", o.secureConnect)), c && s.once("close", o.close); }, "onConnect"); s.writable && !s.connecting ? f() : s.connecting ? s.once("connect", f) : s.destroyed && c && o.close(s._hadError); }, "deferToConnect2"); e.default = i, t.exports = i, t.exports.default = i; } }), Jae = nt({ "node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js"(e, t) { "use strict"; var { PassThrough: r } = require("stream"); t.exports = (i) => { i = { ...i }; let { array: s } = i, { encoding: a } = i, o = a === "buffer", u = !1; s ? u = !(a || o) : a = a || "utf8", o && (a = null); let l = new r({ objectMode: u }); a && l.setEncoding(a); let c = 0, f = []; return l.on("data", (m) => { f.push(m), u ? c = f.length : c += m.length; }), l.getBufferedValue = () => s ? f : o ? Buffer.concat(f, c) : f.join(""), l.getBufferedLength = () => c, l; }; } }), ik = nt({ "node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js"(e, t) { "use strict"; var { constants: r } = require("buffer"), i = require("stream"), { promisify: s } = require("util"), a = Jae(), o = s(i.pipeline), u = class extends Error { static { n(this, "MaxBufferError"); } constructor() { super("maxBuffer exceeded"), this.name = "MaxBufferError"; } }; async function l(c, f) { if (!c) throw new Error("Expected a stream"); f = { maxBuffer: 1 / 0, ...f }; let { maxBuffer: m } = f, h = a(f); return await new Promise((d, y) => { let p = /* @__PURE__ */ n((g) => { g && h.getBufferedLength() <= r.MAX_LENGTH && (g.bufferedData = h.getBufferedValue()), y(g); }, "rejectPromise"); (async () => { try { await o(c, h), d(); } catch (g) { p(g); } })(), h.on("data", () => { h.getBufferedLength() > m && p(new u()); }); }), h.getBufferedValue(); } n(l, "getStream2"), t.exports = l, t.exports.buffer = (c, f) => l(c, { ...f, encoding: "buffer" }), t.exports.array = (c, f) => l(c, { ...f, array: !0 }), t.exports.MaxBufferError = u; } }), Xae = nt({ "node_modules/.pnpm/http-cache-semantics@4.1.1/node_modules/http-cache-semantics/index.js"(e, t) { "use strict"; var r = /* @__PURE__ */ new Set([ 200, 203, 204, 206, 300, 301, 308, 404, 405, 410, 414, 501 ]), i = /* @__PURE__ */ new Set([ 200, 203, 204, 300, 301, 302, 303, 307, 308, 404, 405, 410, 414, 501 ]), s = /* @__PURE__ */ new Set([ 500, 502, 503, 504 ]), a = { date: !0, // included, because we add Age update Date connection: !0, "keep-alive": !0, "proxy-authenticate": !0, "proxy-authorization": !0, te: !0, trailer: !0, "transfer-encoding": !0, upgrade: !0 }, o = { // Since the old body is reused, it doesn't make sense to change properties of the body "content-length": !0, "content-encoding": !0, "transfer-encoding": !0, "content-range": !0 }; function u(m) { let h = parseInt(m, 10); return isFinite(h) ? h : 0; } n(u, "toNumberOrZero"); function l(m) { return m ? s.has(m.status) : !0; } n(l, "isErrorResponse"); function c(m) { let h = {}; if (!m) return h; let d = m.trim().split(/,/); for (let y of d) { let [p, g] = y.split(/=/, 2); h[p.trim()] = g === void 0 ? !0 : g.trim().replace(/^"|"$/g, ""); } return h; } n(c, "parseCacheControl"); function f(m) { let h = []; for (let d in m) { let y = m[d]; h.push(y === !0 ? d : d + "=" + y); } if (h.length) return h.join(", "); } n(f, "formatCacheControl"), t.exports = class { static { n(this, "CachePolicy"); } constructor(h, d, { shared: y, cacheHeuristic: p, immutableMinTimeToLive: g, ignoreCargoCult: b, _fromObject: D } = {}) { if (D) { this._fromObject(D); return; } if (!d || !d.headers) throw Error("Response headers missing"); this._assertRequestHasHeaders(h), this._responseTime = this.now(), this._isShared = y !== !1, this._cacheHeuristic = p !== void 0 ? p : 0.1, this._immutableMinTtl = g !== void 0 ? g : 24 * 3600 * 1e3, this._status = "status" in d ? d.status : 200, this._resHeaders = d.headers, this._rescc = c(d.headers["cache-control"]), this._method = "method" in h ? h.method : "GET", this._url = h.url, this._host = h.headers.host, this._noAuthorization = !h.headers.authorization, this._reqHeaders = d.headers.vary ? h.headers : null, this._reqcc = c(h.headers["cache-control"]), b && "pre-check" in this._rescc && "post-check" in this._rescc && (delete this._rescc["pre-check"], delete this._rescc["post-check"], delete this._rescc["no-cache"], delete this._rescc["no-store"], delete this._rescc["must-revalid\ ate"], this._resHeaders = Object.assign({}, this._resHeaders, { "cache-control": f(this._rescc) }), delete this._resHeaders.expires, delete this._resHeaders.pragma), d.headers["cache-control"] == null && /no-cache/.test(d.headers. pragma) && (this._rescc["no-cache"] = !0); } now() { return Date.now(); } storable() { return !!(!this._reqcc["no-store"] && // A cache MUST NOT store a response to any request, unless: // The request method is understood by the cache and defined as being cacheable, and (this._method === "GET" || this._method === "HEAD" || this._method === "POST" && this._hasExplicitExpiration()) && // the response status code is understood by the cache, and i.has(this._status) && // the "no-store" cache directive does not appear in request or response header fields, and !this._rescc["no-store"] && // the "private" response directive does not appear in the response, if the cache is shared, and (!this._isShared || !this._rescc.private) && // the Authorization header field does not appear in the request, if the cache is shared, (!this._isShared || this._noAuthorization || this._allowsStoringAuthenticated()) && // the response either: // contains an Expires header field, or (this._resHeaders.expires || // contains a max-age response directive, or // contains a s-maxage response directive and the cache is shared, or // contains a public response directive. this._rescc["max-age"] || this._isShared && this._rescc["s-maxage"] || this._rescc.public || // has a status code that is defined as cacheable by default r.has(this._status))); } _hasExplicitExpiration() { return this._isShared && this._rescc["s-maxage"] || this._rescc["max-age"] || this._resHeaders.expires; } _assertRequestHasHeaders(h) { if (!h || !h.headers) throw Error("Request headers missing"); } satisfiesWithoutRevalidation(h) { this._assertRequestHasHeaders(h); let d = c(h.headers["cache-control"]); return d["no-cache"] || /no-cache/.test(h.headers.pragma) || d["max-age"] && this.age() > d["max-age"] || d["min-fresh"] && this.timeToLive() < 1e3 * d["min-fresh"] || this.stale() && !(d["max-stale"] && !this._rescc["must-revalidate"] && (d["max-stale"] === !0 || d["max-st\ ale"] > this.age() - this.maxAge())) ? !1 : this._requestMatches(h, !1); } _requestMatches(h, d) { return (!this._url || this._url === h.url) && this._host === h.headers.host && // the request method associated with the stored response allows it to be used for the presented request, and (!h.method || this._method === h.method || d && h.method === "HEAD") && // selecting header fields nominated by the stored response (if any) match those presented, and this._varyMatches(h); } _allowsStoringAuthenticated() { return this._rescc["must-revalidate"] || this._rescc.public || this._rescc["s-maxage"]; } _varyMatches(h) { if (!this._resHeaders.vary) return !0; if (this._resHeaders.vary === "*") return !1; let d = this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/); for (let y of d) if (h.headers[y] !== this._reqHeaders[y]) return !1; return !0; } _copyWithoutHopByHopHeaders(h) { let d = {}; for (let y in h) a[y] || (d[y] = h[y]); if (h.connection) { let y = h.connection.trim().split(/\s*,\s*/); for (let p of y) delete d[p]; } if (d.warning) { let y = d.warning.split(/,/).filter((p) => !/^\s*1[0-9][0-9]/.test(p)); y.length ? d.warning = y.join(",").trim() : delete d.warning; } return d; } responseHeaders() { let h = this._copyWithoutHopByHopHeaders(this._resHeaders), d = this.age(); return d > 3600 * 24 && !this._hasExplicitExpiration() && this.maxAge() > 3600 * 24 && (h.warning = (h.warning ? `${h.warning}, ` : "") + '113 - "rfc7234 5.5.4"'), h.age = `${Math.round(d)}`, h.date = new Date(this.now()).toUTCString(), h; } /** * Value of the Date response header or current time if Date was invalid * @return timestamp */ date() { let h = Date.parse(this._resHeaders.date); return isFinite(h) ? h : this._responseTime; } /** * Value of the Age header, in seconds, updated for the current time. * May be fractional. * * @return Number */ age() { let h = this._ageValue(), d = (this.now() - this._responseTime) / 1e3; return h + d; } _ageValue() { return u(this._resHeaders.age); } /** * Value of applicable max-age (or heuristic equivalent) in seconds. This counts since response's `Date`. * * For an up-to-date value, see `timeToLive()`. * * @return Number */ maxAge() { if (!this.storable() || this._rescc["no-cache"] || this._isShared && this._resHeaders["set-cookie"] && !this._rescc.public && !this. _rescc.immutable || this._resHeaders.vary === "*") return 0; if (this._isShared) { if (this._rescc["proxy-revalidate"]) return 0; if (this._rescc["s-maxage"]) return u(this._rescc["s-maxage"]); } if (this._rescc["max-age"]) return u(this._rescc["max-age"]); let h = this._rescc.immutable ? this._immutableMinTtl : 0, d = this.date(); if (this._resHeaders.expires) { let y = Date.parse(this._resHeaders.expires); return Number.isNaN(y) || y < d ? 0 : Math.max(h, (y - d) / 1e3); } if (this._resHeaders["last-modified"]) { let y = Date.parse(this._resHeaders["last-modified"]); if (isFinite(y) && d > y) return Math.max( h, (d - y) / 1e3 * this._cacheHeuristic ); } return h; } timeToLive() { let h = this.maxAge() - this.age(), d = h + u(this._rescc["stale-if-error"]), y = h + u(this._rescc["stale-while-revalidate"]); return Math.max(0, h, d, y) * 1e3; } stale() { return this.maxAge() <= this.age(); } _useStaleIfError() { return this.maxAge() + u(this._rescc["stale-if-error"]) > this.age(); } useStaleWhileRevalidate() { return this.maxAge() + u(this._rescc["stale-while-revalidate"]) > this.age(); } static fromObject(h) { return new this(void 0, void 0, { _fromObject: h }); } _fromObject(h) { if (this._responseTime) throw Error("Reinitialized"); if (!h || h.v !== 1) throw Error("Invalid serialization"); this._responseTime = h.t, this._isShared = h.sh, this._cacheHeuristic = h.ch, this._immutableMinTtl = h.imm !== void 0 ? h.imm : 24 * 3600 * 1e3, this._status = h.st, this._resHeaders = h.resh, this._rescc = h.rescc, this._method = h.m, this._url = h.u, this._host = h.h, this._noAuthorization = h.a, this._reqHeaders = h.reqh, this._reqcc = h.reqcc; } toObject() { return { v: 1, t: this._responseTime, sh: this._isShared, ch: this._cacheHeuristic, imm: this._immutableMinTtl, st: this._status, resh: this._resHeaders, rescc: this._rescc, m: this._method, u: this._url, h: this._host, a: this._noAuthorization, reqh: this._reqHeaders, reqcc: this._reqcc }; } /** * Headers for sending to the origin server to revalidate stale response. * Allows server to return 304 to allow reuse of the previous response. * * Hop by hop headers are always stripped. * Revalidation headers may be added or removed, depending on request. */ revalidationHeaders(h) { this._assertRequestHasHeaders(h); let d = this._copyWithoutHopByHopHeaders(h.headers); if (delete d["if-range"], !this._requestMatches(h, !0) || !this.storable()) return delete d["if-none-match"], delete d["if-modified-since"], d; if (this._resHeaders.etag && (d["if-none-match"] = d["if-none-match"] ? `${d["if-none-match"]}, ${this._resHeaders.etag}` : this._resHeaders. etag), d["accept-ranges"] || d["if-match"] || d["if-unmodified-since"] || this._method && this._method != "GET") { if (delete d["if-modified-since"], d["if-none-match"]) { let p = d["if-none-match"].split(/,/).filter((g) => !/^\s*W\//.test(g)); p.length ? d["if-none-match"] = p.join(",").trim() : delete d["if-none-match"]; } } else this._resHeaders["last-modified"] && !d["if-modified-since"] && (d["if-modified-since"] = this._resHeaders["last-modified"]); return d; } /** * Creates new CachePolicy with information combined from the previews response, * and the new revalidation response. * * Returns {policy, modified} where modified is a boolean indicating * whether the response body has been modified, and old cached body can't be used. * * @return {Object} {policy: CachePolicy, modified: Boolean} */ revalidatedPolicy(h, d) { if (this._assertRequestHasHeaders(h), this._useStaleIfError() && l(d)) return { modified: !1, matches: !1, policy: this }; if (!d || !d.headers) throw Error("Response headers missing"); let y = !1; if (d.status !== void 0 && d.status != 304 ? y = !1 : d.headers.etag && !/^\s*W\//.test(d.headers.etag) ? y = this._resHeaders.etag && this._resHeaders.etag.replace(/^\s*W\//, "") === d.headers.etag : this._resHeaders.etag && d.headers.etag ? y = this._resHeaders.etag. replace(/^\s*W\//, "") === d.headers.etag.replace(/^\s*W\//, "") : this._resHeaders["last-modified"] ? y = this._resHeaders["last-\ modified"] === d.headers["last-modified"] : !this._resHeaders.etag && !this._resHeaders["last-modified"] && !d.headers.etag && !d.headers["l\ ast-modified"] && (y = !0), !y) return { policy: new this.constructor(h, d), // Client receiving 304 without body, even if it's invalid/mismatched has no option // but to reuse a cached body. We don't have a good way to tell clients to do // error recovery in such case. modified: d.status != 304, matches: !1 }; let p = {}; for (let b in this._resHeaders) p[b] = b in d.headers && !o[b] ? d.headers[b] : this._resHeaders[b]; let g = Object.assign({}, d, { status: this._status, method: this._method, headers: p }); return { policy: new this.constructor(h, g, { shared: this._isShared, cacheHeuristic: this._cacheHeuristic, immutableMinTimeToLive: this._immutableMinTtl }), modified: !1, matches: !0 }; } }; } }), Yae = nt({ "node_modules/.pnpm/json-buffer@3.0.1/node_modules/json-buffer/index.js"(e) { e.stringify = /* @__PURE__ */ n(function t(r) { if (typeof r > "u") return r; if (r && Buffer.isBuffer(r)) return JSON.stringify(":base64:" + r.toString("base64")); if (r && r.toJSON && (r = r.toJSON()), r && typeof r == "object") { var i = "", s = Array.isArray(r); i = s ? "[" : "{"; var a = !0; for (var o in r) { var u = typeof r[o] == "function" || !s && typeof r[o] > "u"; Object.hasOwnProperty.call(r, o) && !u && (a || (i += ","), a = !1, s ? r[o] == null ? i += "null" : i += t(r[o]) : r[o] !== void 0 && (i += t(o) + ":" + t(r[o]))); } return i += s ? "]" : "}", i; } else return typeof r == "string" ? JSON.stringify(/^:/.test(r) ? ":" + r : r) : typeof r > "u" ? "null" : JSON.stringify(r); }, "stringify"), e.parse = function(t) { return JSON.parse(t, function(r, i) { return typeof i == "string" ? /^:base64:/.test(i) ? Buffer.from(i.substring(8), "base64") : /^:/.test(i) ? i.substring(1) : i : i; }); }; } }), Gae = nt({ "node_modules/.pnpm/keyv@4.5.2/node_modules/keyv/src/index.js"(e, t) { "use strict"; var r = require("events"), i = Yae(), s = /* @__PURE__ */ n((u) => { let l = { redis: "@keyv/redis", rediss: "@keyv/redis", mongodb: "@keyv/mongo", mongo: "@keyv/mongo", sqlite: "@keyv/sqlite", postgresql: "@keyv/postgres", postgres: "@keyv/postgres", mysql: "@keyv/mysql", etcd: "@keyv/etcd", offline: "@keyv/offline", tiered: "@keyv/tiered" }; if (u.adapter || u.uri) { let c = u.adapter || /^[^:+]*/.exec(u.uri)[0]; return new (require(l[c]))(u); } return /* @__PURE__ */ new Map(); }, "loadStore"), a = [ "sqlite", "postgres", "mysql", "mongo", "redis", "tiered" ], o = class extends r { static { n(this, "Keyv2"); } constructor(u, { emitErrors: l = !0, ...c } = {}) { if (super(), this.opts = { namespace: "keyv", serialize: i.stringify, deserialize: i.parse, ...typeof u == "string" ? { uri: u } : u, ...c }, !this.opts.store) { let m = { ...this.opts }; this.opts.store = s(m); } if (this.opts.compression) { let m = this.opts.compression; this.opts.serialize = m.serialize.bind(m), this.opts.deserialize = m.deserialize.bind(m); } typeof this.opts.store.on == "function" && l && this.opts.store.on("error", (m) => this.emit("error", m)), this.opts.store.namespace = this.opts.namespace; let f = /* @__PURE__ */ n((m) => async function* () { for await (let [h, d] of typeof m == "function" ? m(this.opts.store.namespace) : m) { let y = this.opts.deserialize(d); if (!(this.opts.store.namespace && !h.includes(this.opts.store.namespace))) { if (typeof y.expires == "number" && Date.now() > y.expires) { this.delete(h); continue; } yield [this._getKeyUnprefix(h), y.value]; } } }, "generateIterator"); typeof this.opts.store[Symbol.iterator] == "function" && this.opts.store instanceof Map ? this.iterator = f(this.opts.store) : typeof this. opts.store.iterator == "function" && this.opts.store.opts && this._checkIterableAdaptar() && (this.iterator = f(this.opts.store.iterator. bind(this.opts.store))); } _checkIterableAdaptar() { return a.includes(this.opts.store.opts.dialect) || a.findIndex((u) => this.opts.store.opts.url.includes(u)) >= 0; } _getKeyPrefix(u) { return `${this.opts.namespace}:${u}`; } _getKeyPrefixArray(u) { return u.map((l) => `${this.opts.namespace}:${l}`); } _getKeyUnprefix(u) { return u.split(":").splice(1).join(":"); } get(u, l) { let { store: c } = this.opts, f = Array.isArray(u), m = f ? this._getKeyPrefixArray(u) : this._getKeyPrefix(u); if (f && c.getMany === void 0) { let h = []; for (let d of m) h.push( Promise.resolve().then(() => c.get(d)).then((y) => typeof y == "string" ? this.opts.deserialize(y) : this.opts.compression ? this.opts.deserialize(y) : y).then((y) => { if (y != null) return typeof y.expires == "number" && Date.now() > y.expires ? this.delete(d).then(() => { }) : l && l.raw ? y : y.value; }) ); return Promise.allSettled(h).then((d) => { let y = []; for (let p of d) y.push(p.value); return y; }); } return Promise.resolve().then(() => f ? c.getMany(m) : c.get(m)).then((h) => typeof h == "string" ? this.opts.deserialize(h) : this. opts.compression ? this.opts.deserialize(h) : h).then((h) => { if (h != null) { if (f) { let d = []; for (let y of h) { if (typeof y == "string" && (y = this.opts.deserialize(y)), y == null) { d.push(void 0); continue; } typeof y.expires == "number" && Date.now() > y.expires ? (this.delete(u).then(() => { }), d.push(void 0)) : d.push(l && l.raw ? y : y.value); } return d; } return typeof h.expires == "number" && Date.now() > h.expires ? this.delete(u).then(() => { }) : l && l.raw ? h : h.value; } }); } set(u, l, c) { let f = this._getKeyPrefix(u); typeof c > "u" && (c = this.opts.ttl), c === 0 && (c = void 0); let { store: m } = this.opts; return Promise.resolve().then(() => { let h = typeof c == "number" ? Date.now() + c : null; return typeof l == "symbol" && this.emit("error", "symbol cannot be serialized"), l = { value: l, expires: h }, this.opts.serialize( l); }).then((h) => m.set(f, h, c)).then(() => !0); } delete(u) { let { store: l } = this.opts; if (Array.isArray(u)) { let f = this._getKeyPrefixArray(u); if (l.deleteMany === void 0) { let m = []; for (let h of f) m.push(l.delete(h)); return Promise.allSettled(m).then((h) => h.every((d) => d.value === !0)); } return Promise.resolve().then(() => l.deleteMany(f)); } let c = this._getKeyPrefix(u); return Promise.resolve().then(() => l.delete(c)); } clear() { let { store: u } = this.opts; return Promise.resolve().then(() => u.clear()); } has(u) { let l = this._getKeyPrefix(u), { store: c } = this.opts; return Promise.resolve().then(async () => typeof c.has == "function" ? c.has(l) : await c.get(l) !== void 0); } disconnect() { let { store: u } = this.opts; if (typeof u.disconnect == "function") return u.disconnect(); } }; t.exports = o; } }), Zae = nt({ "node_modules/.pnpm/mimic-response@3.1.0/node_modules/mimic-response/index.js"(e, t) { "use strict"; var r = [ "aborted", "complete", "headers", "httpVersion", "httpVersionMinor", "httpVersionMajor", "method", "rawHeaders", "rawTrailers", "setTimeout", "socket", "statusCode", "statusMessage", "trailers", "url" ]; t.exports = (i, s) => { if (s._readableState.autoDestroy) throw new Error("The second stream must have the `autoDestroy` option set to `false`"); let a = new Set(Object.keys(i).concat(r)), o = {}; for (let u of a) u in s || (o[u] = { get() { let l = i[u]; return typeof l == "function" ? l.bind(i) : l; }, set(l) { i[u] = l; }, enumerable: !0, configurable: !1 }); return Object.defineProperties(s, o), i.once("aborted", () => { s.destroy(), s.emit("aborted"); }), i.once("close", () => { i.complete && s.readable ? s.once("end", () => { s.emit("close"); }) : s.emit("close"); }), s; }; } }), Qae = nt({ "node_modules/.pnpm/decompress-response@6.0.0/node_modules/decompress-response/index.js"(e, t) { "use strict"; var { Transform: r, PassThrough: i } = require("stream"), s = require("zlib"), a = Zae(); t.exports = (o) => { let u = (o.headers["content-encoding"] || "").toLowerCase(); if (!["gzip", "deflate", "br"].includes(u)) return o; let l = u === "br"; if (l && typeof s.createBrotliDecompress != "function") return o.destroy(new Error("Brotli is not supported on Node.js < 12")), o; let c = !0, f = new r({ transform(d, y, p) { c = !1, p(null, d); }, flush(d) { d(); } }), m = new i({ autoDestroy: !1, destroy(d, y) { o.destroy(), y(d); } }), h = l ? s.createBrotliDecompress() : s.createUnzip(); return h.once("error", (d) => { if (c && !o.readable) { m.end(); return; } m.destroy(d); }), a(o, m), o.pipe(f).pipe(h).pipe(m), m; }; } }), sk = nt({ "node_modules/.pnpm/quick-lru@5.1.1/node_modules/quick-lru/index.js"(e, t) { "use strict"; var r = class { static { n(this, "QuickLRU"); } constructor(i = {}) { if (!(i.maxSize && i.maxSize > 0)) throw new TypeError("`maxSize` must be a number greater than 0"); this.maxSize = i.maxSize, this.onEviction = i.onEviction, this.cache = /* @__PURE__ */ new Map(), this.oldCache = /* @__PURE__ */ new Map(), this._size = 0; } _set(i, s) { if (this.cache.set(i, s), this._size++, this._size >= this.maxSize) { if (this._size = 0, typeof this.onEviction == "function") for (let [a, o] of this.oldCache.entries()) this.onEviction(a, o); this.oldCache = this.cache, this.cache = /* @__PURE__ */ new Map(); } } get(i) { if (this.cache.has(i)) return this.cache.get(i); if (this.oldCache.has(i)) { let s = this.oldCache.get(i); return this.oldCache.delete(i), this._set(i, s), s; } } set(i, s) { return this.cache.has(i) ? this.cache.set(i, s) : this._set(i, s), this; } has(i) { return this.cache.has(i) || this.oldCache.has(i); } peek(i) { if (this.cache.has(i)) return this.cache.get(i); if (this.oldCache.has(i)) return this.oldCache.get(i); } delete(i) { let s = this.cache.delete(i); return s && this._size--, this.oldCache.delete(i) || s; } clear() { this.cache.clear(), this.oldCache.clear(), this._size = 0; } *keys() { for (let [i] of this) yield i; } *values() { for (let [, i] of this) yield i; } *[Symbol.iterator]() { for (let i of this.cache) yield i; for (let i of this.oldCache) { let [s] = i; this.cache.has(s) || (yield i); } } get size() { let i = 0; for (let s of this.oldCache.keys()) this.cache.has(s) || i++; return Math.min(this._size + i, this.maxSize); } }; t.exports = r; } }), nk = nt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/utils/delay-async-destroy.js"(e, t) { "use strict"; t.exports = (r) => { if (r.listenerCount("error") !== 0) return r; r.__destroy = r._destroy, r._destroy = (...s) => { let a = s.pop(); r.__destroy(...s, async (o) => { await Promise.resolve(), a(o); }); }; let i = /* @__PURE__ */ n((s) => { Promise.resolve().then(() => { r.emit("error", s); }); }, "onError"); return r.once("error", i), Promise.resolve().then(() => { r.off("error", i); }), r; }; } }), El = nt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/agent.js"(e, t) { "use strict"; var { URL: r } = require("url"), i = require("events"), s = require("tls"), a = require("http2"), o = sk(), u = nk(), l = Symbol("curr\ entStreamCount"), c = Symbol("request"), f = Symbol("cachedOriginSet"), m = Symbol("gracefullyClosing"), h = Symbol("length"), d = [ // Not an Agent option actually "createConnection", // `http2.connect()` options "maxDeflateDynamicTableSize", "maxSettings", "maxSessionMemory", "maxHeaderListPairs", "maxOutstandingPings", "maxReservedRemoteStreams", "maxSendHeaderBlockLength", "paddingStrategy", "peerMaxConcurrentStreams", "settings", // `tls.connect()` source options "family", "localAddress", "rejectUnauthorized", // `tls.connect()` secure context options "pskCallback", "minDHSize", // `tls.connect()` destination options // - `servername` is automatically validated, skip it // - `host` and `port` just describe the destination server, "path", "socket", // `tls.createSecureContext()` options "ca", "cert", "sigalgs", "ciphers", "clientCertEngine", "crl", "dhparam", "ecdhCurve", "honorCipherOrder", "key", "privateKeyEngine", "privateKeyIdentifier", "maxVersion", "minVersion", "pfx", "secureOptions", "secureProtocol", "sessionIdContext", "ticketKeys" ], y = /* @__PURE__ */ n((T, w, B) => { let k = 0, j = T.length; for (; k < j; ) { let W = k + j >>> 1; B(T[W], w) ? k = W + 1 : j = W; } return k; }, "getSortedIndex"), p = /* @__PURE__ */ n((T, w) => T.remoteSettings.maxConcurrentStreams > w.remoteSettings.maxConcurrentStreams, "\ compareSessions"), g = /* @__PURE__ */ n((T, w) => { for (let B = 0; B < T.length; B++) { let k = T[B]; // Unfortunately `.every()` returns true for an empty array k[f].length > 0 && k[f].length < w[f].length && k[f].every((j) => w[f].includes(j)) && k[l] + w[l] <= w.remoteSettings.maxConcurrentStreams && D(k); } }, "closeCoveredSessions"), b = /* @__PURE__ */ n((T, w) => { for (let B = 0; B < T.length; B++) { let k = T[B]; if (w[f].length > 0 && w[f].length < k[f].length && w[f].every((j) => k[f].includes(j)) && w[l] + k[l] <= k.remoteSettings.maxConcurrentStreams) return D(w), !0; } return !1; }, "closeSessionIfCovered"), D = /* @__PURE__ */ n((T) => { T[m] = !0, T[l] === 0 && T.close(); }, "gracefullyClose"), x = class extends i { static { n(this, "Agent"); } constructor({ timeout: T = 0, maxSessions: w = Number.POSITIVE_INFINITY, maxEmptySessions: B = 10, maxCachedTlsSessions: k = 100 } = {}) { super(), this.sessions = {}, this.queue = {}, this.timeout = T, this.maxSessions = w, this.maxEmptySessions = B, this._emptySessionCount = 0, this._sessionCount = 0, this.settings = { enablePush: !1, initialWindowSize: 1024 * 1024 * 32 // 32MB, see https://github.com/nodejs/node/issues/38426 }, this.tlsSessionCache = new o({ maxSize: k }); } get protocol() { return "https:"; } normalizeOptions(T) { let w = ""; for (let B = 0; B < d.length; B++) { let k = d[B]; w += ":", T && T[k] !== void 0 && (w += T[k]); } return w; } _processQueue() { if (this._sessionCount >= this.maxSessions) { this.closeEmptySessions(this.maxSessions - this._sessionCount + 1); return; } for (let T in this.queue) for (let w in this.queue[T]) { let B = this.queue[T][w]; B.completed || (B.completed = !0, B()); } } _isBetterSession(T, w) { return T > w; } _accept(T, w, B, k) { let j = 0; for (; j < w.length && T[l] < T.remoteSettings.maxConcurrentStreams; ) w[j].resolve(T), j++; w.splice(0, j), w.length > 0 && (this.getSession(B, k, w), w.length = 0); } getSession(T, w, B) { return new Promise((k, j) => { Array.isArray(B) && B.length > 0 ? (B = [...B], k()) : B = [{ resolve: k, reject: j }]; try { if (typeof T == "string") T = new r(T); else if (!(T instanceof r)) throw new TypeError("The `origin` argument needs to be a string or an URL object"); if (w) { let { servername: re } = w, { hostname: te } = T; if (re && te !== re) throw new Error(`Origin ${te} differs from servername ${re}`); } } catch (re) { for (let te = 0; te < B.length; te++) B[te].reject(re); return; } let W = this.normalizeOptions(w), Y = T.origin; if (W in this.sessions) { let re = this.sessions[W], te = -1, ve = -1, Je; for (let Ie = 0; Ie < re.length; Ie++) { let se = re[Ie], Ne = se.remoteSettings.maxConcurrentStreams; if (Ne < te) break; if (!se[f].includes(Y)) continue; let Be = se[l]; Be >= Ne || se[m] || se.destroyed || (Je || (te = Ne), this._isBetterSession(Be, ve) && (Je = se, ve = Be)); } if (Je) { this._accept(Je, B, Y, w); return; } } if (W in this.queue) { if (Y in this.queue[W]) { this.queue[W][Y].listeners.push(...B); return; } } else this.queue[W] = { [h]: 0 }; let G = /* @__PURE__ */ n(() => { W in this.queue && this.queue[W][Y] === ye && (delete this.queue[W][Y], --this.queue[W][h] === 0 && delete this.queue[W]); }, "removeFromQueue"), ye = /* @__PURE__ */ n(async () => { this._sessionCount++; let re = `${Y}:${W}`, te = !1, ve; try { let Je = { ...w }; Je.settings === void 0 && (Je.settings = this.settings), Je.session === void 0 && (Je.session = this.tlsSessionCache.get(re)), ve = await (Je.createConnection || this.createConnection).call(this, T, Je), Je.createConnection = () => ve; let se = a.connect(T, Je); se[l] = 0, se[m] = !1; let Ne = /* @__PURE__ */ n(() => { let { socket: Ae } = se, _e; return Ae.servername === !1 ? (Ae.servername = Ae.remoteAddress, _e = se.originSet, Ae.servername = !1) : _e = se.originSet, _e; }, "getOriginSet"), Be = /* @__PURE__ */ n(() => se[l] < se.remoteSettings.maxConcurrentStreams, "isFree"); se.socket.once("session", (Ae) => { this.tlsSessionCache.set(re, Ae); }), se.once("error", (Ae) => { for (let _e = 0; _e < B.length; _e++) B[_e].reject(Ae); this.tlsSessionCache.delete(re); }), se.setTimeout(this.timeout, () => { se.destroy(); }), se.once("close", () => { if (this._sessionCount--, te) { this._emptySessionCount--; let Ae = this.sessions[W]; Ae.length === 1 ? delete this.sessions[W] : Ae.splice(Ae.indexOf(se), 1); } else { G(); let Ae = new Error("Session closed without receiving a SETTINGS frame"); Ae.code = "HTTP2WRAPPER_NOSETTINGS"; for (let _e = 0; _e < B.length; _e++) B[_e].reject(Ae); } this._processQueue(); }); let Cr = /* @__PURE__ */ n(() => { let Ae = this.queue[W]; if (!Ae) return; let _e = se[f]; for (let Me = 0; Me < _e.length; Me++) { let Nt = _e[Me]; if (Nt in Ae) { let { listeners: tr, completed: Yr } = Ae[Nt], Ni = 0; for (; Ni < tr.length && Be(); ) tr[Ni].resolve(se), Ni++; if (Ae[Nt].listeners.splice(0, Ni), Ae[Nt].listeners.length === 0 && !Yr && (delete Ae[Nt], --Ae[h] === 0)) { delete this.queue[W]; break; } if (!Be()) break; } } }, "processListeners"); se.on("origin", () => { se[f] = Ne() || [], se[m] = !1, b(this.sessions[W], se), !(se[m] || !Be()) && (Cr(), Be() && g(this.sessions[W], se)); }), se.once("remoteSettings", () => { if (ye.destroyed) { let Ae = new Error("Agent has been destroyed"); for (let _e = 0; _e < B.length; _e++) B[_e].reject(Ae); se.destroy(); return; } if (se.setLocalWindowSize && se.setLocalWindowSize(1024 * 1024 * 4), se[f] = Ne() || [], se.socket.encrypted) { let Ae = se[f][0]; if (Ae !== Y) { let _e = new Error(`Requested origin ${Y} does not match server ${Ae}`); for (let Me = 0; Me < B.length; Me++) B[Me].reject(_e); se.destroy(); return; } } G(); { let Ae = this.sessions; if (W in Ae) { let _e = Ae[W]; _e.splice(y(_e, se, p), 0, se); } else Ae[W] = [se]; } te = !0, this._emptySessionCount++, this.emit("session", se), this._accept(se, B, Y, w), se[l] === 0 && this._emptySessionCount > this.maxEmptySessions && this.closeEmptySessions(this._emptySessionCount - this.maxEmptySessions), se.on("remoteSettings", () => { Be() && (Cr(), Be() && g(this.sessions[W], se)); }); }), se[c] = se.request, se.request = (Ae, _e) => { if (se[m]) throw new Error("The session is gracefully closing. No new streams are allowed."); let Me = se[c](Ae, _e); return se.ref(), se[l]++ === 0 && this._emptySessionCount--, Me.once("close", () => { if (--se[l] === 0 && (this._emptySessionCount++, se.unref(), this._emptySessionCount > this.maxEmptySessions || se[m])) { se.close(); return; } se.destroyed || se.closed || Be() && !b(this.sessions[W], se) && (g(this.sessions[W], se), Cr(), se[l] === 0 && this._processQueue()); }), Me; }; } catch (Je) { G(), this._sessionCount--; for (let Ie = 0; Ie < B.length; Ie++) B[Ie].reject(Je); } }, "entry"); ye.listeners = B, ye.completed = !1, ye.destroyed = !1, this.queue[W][Y] = ye, this.queue[W][h]++, this._processQueue(); }); } request(T, w, B, k) { return new Promise((j, W) => { this.getSession(T, w, [{ reject: W, resolve: /* @__PURE__ */ n((Y) => { try { let G = Y.request(B, k); u(G), j(G); } catch (G) { W(G); } }, "resolve") }]); }); } async createConnection(T, w) { return x.connect(T, w); } static connect(T, w) { w.ALPNProtocols = ["h2"]; let B = T.port || 443, k = T.hostname; typeof w.servername > "u" && (w.servername = k); let j = s.connect(B, k, w); return w.socket && (j._peername = { family: void 0, address: void 0, port: B }), j; } closeEmptySessions(T = Number.POSITIVE_INFINITY) { let w = 0, { sessions: B } = this; for (let k in B) { let j = B[k]; for (let W = 0; W < j.length; W++) { let Y = j[W]; if (Y[l] === 0 && (w++, Y.close(), w >= T)) return w; } } return w; } destroy(T) { let { sessions: w, queue: B } = this; for (let k in w) { let j = w[k]; for (let W = 0; W < j.length; W++) j[W].destroy(T); } for (let k in B) { let j = B[k]; for (let W in j) j[W].destroyed = !0; } this.queue = {}, this.tlsSessionCache.clear(); } get emptySessionCount() { return this._emptySessionCount; } get pendingSessionCount() { return this._sessionCount - this._emptySessionCount; } get sessionCount() { return this._sessionCount; } }; x.kCurrentStreamCount = l, x.kGracefullyClosing = m, t.exports = { Agent: x, globalAgent: new x() }; } }), ak = nt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/incoming-message.js"(e, t) { "use strict"; var { Readable: r } = require("stream"), i = class extends r { static { n(this, "IncomingMessage"); } constructor(s, a) { super({ emitClose: !1, autoDestroy: !0, highWaterMark: a }), this.statusCode = null, this.statusMessage = "", this.httpVersion = "2.0", this.httpVersionMajor = 2, this.httpVersionMinor = 0, this.headers = {}, this.trailers = {}, this.req = null, this.aborted = !1, this.complete = !1, this.upgrade = null, this.rawHeaders = [], this.rawTrailers = [], this.socket = s, this._dumped = !1; } get connection() { return this.socket; } set connection(s) { this.socket = s; } _destroy(s, a) { this.readableEnded || (this.aborted = !0), a(), this.req._request.destroy(s); } setTimeout(s, a) { return this.req.setTimeout(s, a), this; } _dump() { this._dumped || (this._dumped = !0, this.removeAllListeners("data"), this.resume()); } _read() { this.req && this.req._request.resume(); } }; t.exports = i; } }), eoe = nt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/utils/proxy-events.js"(e, t) { "use strict"; t.exports = (r, i, s) => { for (let a of s) r.on(a, (...o) => i.emit(a, ...o)); }; } }), nm = nt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/utils/errors.js"(e, t) { "use strict"; var r = /* @__PURE__ */ n((i, s, a) => { t.exports[s] = class extends i { static { n(this, "NodeError"); } constructor(...u) { super(typeof a == "string" ? a : a(u)), this.name = `${super.name} [${s}]`, this.code = s; } }; }, "makeError"); r(TypeError, "ERR_INVALID_ARG_TYPE", (i) => { let s = i[0].includes(".") ? "property" : "argument", a = i[1], o = Array.isArray(a); return o && (a = `${a.slice(0, -1).join(", ")} or ${a.slice(-1)}`), `The "${i[0]}" ${s} must be ${o ? "one of" : "of"} type ${a}. Re\ ceived ${typeof i[2]}`; }), r( TypeError, "ERR_INVALID_PROTOCOL", (i) => `Protocol "${i[0]}" not supported. Expected "${i[1]}"` ), r( Error, "ERR_HTTP_HEADERS_SENT", (i) => `Cannot ${i[0]} headers after they are sent to the client` ), r( TypeError, "ERR_INVALID_HTTP_TOKEN", (i) => `${i[0]} must be a valid HTTP token [${i[1]}]` ), r( TypeError, "ERR_HTTP_INVALID_HEADER_VALUE", (i) => `Invalid value "${i[0]} for header "${i[1]}"` ), r( TypeError, "ERR_INVALID_CHAR", (i) => `Invalid character in ${i[0]} [${i[1]}]` ), r( Error, "ERR_HTTP2_NO_SOCKET_MANIPULATION", "HTTP/2 sockets should not be directly manipulated (e.g. read and written)" ); } }), toe = nt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.js"(e, t) { "use strict"; t.exports = (r) => { switch (r) { case ":method": case ":scheme": case ":authority": case ":path": return !0; default: return !1; } }; } }), ok = nt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/utils/validate-header-name.js"(e, t) { "use strict"; var { ERR_INVALID_HTTP_TOKEN: r } = nm(), i = toe(), s = /^[\^`\-\w!#$%&*+.|~]+$/; t.exports = (a) => { if (typeof a != "string" || !s.test(a) && !i(a)) throw new r("Header name", a); }; } }), uk = nt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/utils/validate-header-value.js"(e, t) { "use strict"; var { ERR_HTTP_INVALID_HEADER_VALUE: r, ERR_INVALID_CHAR: i } = nm(), s = /[^\t\u0020-\u007E\u0080-\u00FF]/; t.exports = (a, o) => { if (typeof o > "u") throw new r(o, a); if (s.test(o)) throw new i("header content", a); }; } }), roe = nt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/utils/proxy-socket-handler.js"(e, t) { "use strict"; var { ERR_HTTP2_NO_SOCKET_MANIPULATION: r } = nm(), i = { has(s, a) { let o = s.session === void 0 ? s : s.session.socket; return a in s || a in o; }, get(s, a) { switch (a) { case "on": case "once": case "end": case "emit": case "destroy": return s[a].bind(s); case "writable": case "destroyed": return s[a]; case "readable": return s.destroyed ? !1 : s.readable; case "setTimeout": { let { session: o } = s; return o !== void 0 ? o.setTimeout.bind(o) : s.setTimeout.bind(s); } case "write": case "read": case "pause": case "resume": throw new r(); default: { let o = s.session === void 0 ? s : s.session.socket, u = o[a]; return typeof u == "function" ? u.bind(o) : u; } } }, getPrototypeOf(s) { return s.session !== void 0 ? Reflect.getPrototypeOf(s.session.socket) : Reflect.getPrototypeOf(s); }, set(s, a, o) { switch (a) { case "writable": case "readable": case "destroyed": case "on": case "once": case "end": case "emit": case "destroy": return s[a] = o, !0; case "setTimeout": { let { session: u } = s; return u === void 0 ? s.setTimeout = o : u.setTimeout = o, !0; } case "write": case "read": case "pause": case "resume": throw new r(); default: { let u = s.session === void 0 ? s : s.session.socket; return u[a] = o, !0; } } } }; t.exports = i; } }), lk = nt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/client-request.js"(e, t) { "use strict"; var { URL: r, urlToHttpOptions: i } = require("url"), s = require("http2"), { Writable: a } = require("stream"), { Agent: o, globalAgent: u } = El(), l = ak(), c = eoe(), { ERR_INVALID_ARG_TYPE: f, ERR_INVALID_PROTOCOL: m, ERR_HTTP_HEADERS_SENT: h } = nm(), d = ok(), y = uk(), p = roe(), { HTTP2_HEADER_STATUS: g, HTTP2_HEADER_METHOD: b, HTTP2_HEADER_PATH: D, HTTP2_HEADER_AUTHORITY: x, HTTP2_METHOD_CONNECT: T } = s.constants, w = Symbol("headers"), B = Symbol("origin"), k = Symbol("session"), j = Symbol("options"), W = Symbol("flushedHeaders"), Y = Symbol("jobs"), G = Symbol("pendingAgentPromise"), ye = class extends a { static { n(this, "ClientRequest"); } constructor(re, te, ve) { if (super({ autoDestroy: !1, emitClose: !1 }), typeof re == "string" ? re = i(new r(re)) : re instanceof r ? re = i(re) : re = { ...re }, typeof te == "function" || te === void 0 ? (ve = te, te = re) : te = Object.assign(re, te), te.h2session) { if (this[k] = te.h2session, this[k].destroyed) throw new Error("The session has been closed already"); this.protocol = this[k].socket.encrypted ? "https:" : "http:"; } else if (te.agent === !1) this.agent = new o({ maxEmptySessions: 0 }); else if (typeof te.agent > "u" || te.agent === null) this.agent = u; else if (typeof te.agent.request == "function") this.agent = te.agent; else throw new f("options.agent", ["http2wrapper.Agent-like Object", "undefined", "false"], te.agent); if (this.agent && (this.protocol = this.agent.protocol), te.protocol && te.protocol !== this.protocol) throw new m(te.protocol, this.protocol); te.port || (te.port = te.defaultPort || this.agent && this.agent.defaultPort || 443), te.host = te.hostname || te.host || "localho\ st", delete te.hostname; let { timeout: Je } = te; te.timeout = void 0, this[w] = /* @__PURE__ */ Object.create(null), this[Y] = [], this[G] = void 0, this.socket = null, this.connection = null, this.method = te.method || "GET", this.method === "CONNECT" && (te.path === "/" || te.path === void 0) || (this.path = te.path), this.res = null, this.aborted = !1, this.reusedSocket = !1; let { headers: Ie } = te; if (Ie) for (let Ne in Ie) this.setHeader(Ne, Ie[Ne]); te.auth && !("authorization" in this[w]) && (this[w].authorization = "Basic " + Buffer.from(te.auth).toString("base64")), te.session = te.tlsSession, te.path = te.socketPath, this[j] = te, this[B] = new r(`${this.protocol}//${te.servername || te.host}:${te.port}`); let se = te._reuseSocket; se && (te.createConnection = (...Ne) => se.destroyed ? this.agent.createConnection(...Ne) : se, this.agent.getSession(this[B], this[j]). catch(() => { })), Je && this.setTimeout(Je), ve && this.once("response", ve), this[W] = !1; } get method() { return this[w][b]; } set method(re) { re && (this[w][b] = re.toUpperCase()); } get path() { let re = this.method === "CONNECT" ? x : D; return this[w][re]; } set path(re) { if (re) { let te = this.method === "CONNECT" ? x : D; this[w][te] = re; } } get host() { return this[B].hostname; } set host(re) { } get _mustNotHaveABody() { return this.method === "GET" || this.method === "HEAD" || this.method === "DELETE"; } _write(re, te, ve) { if (this._mustNotHaveABody) { ve(new Error("The GET, HEAD and DELETE methods must NOT have a body")); return; } this.flushHeaders(); let Je = /* @__PURE__ */ n(() => this._request.write(re, te, ve), "callWrite"); this._request ? Je() : this[Y].push(Je); } _final(re) { this.flushHeaders(); let te = /* @__PURE__ */ n(() => { if (this._mustNotHaveABody || this.method === "CONNECT") { re(); return; } this._request.end(re); }, "callEnd"); this._request ? te() : this[Y].push(te); } abort() { this.res && this.res.complete || (this.aborted || process.nextTick(() => this.emit("abort")), this.aborted = !0, this.destroy()); } async _destroy(re, te) { this.res && this.res._dump(), this._request ? this._request.destroy() : process.nextTick(() => { this.emit("close"); }); try { await this[G]; } catch (ve) { this.aborted && (re = ve); } te(re); } async flushHeaders() { if (this[W] || this.destroyed) return; this[W] = !0; let re = this.method === T, te = /* @__PURE__ */ n((ve) => { if (this._request = ve, this.destroyed) { ve.destroy(); return; } re || c(ve, this, ["timeout", "continue"]), ve.once("error", (Ie) => { this.destroy(Ie); }), ve.once("aborted", () => { let { res: Ie } = this; Ie ? (Ie.aborted = !0, Ie.emit("aborted"), Ie.destroy()) : this.destroy(new Error("The server aborted the HTTP/2 stream")); }); let Je = /* @__PURE__ */ n((Ie, se, Ne) => { let Be = new l(this.socket, ve.readableHighWaterMark); this.res = Be, Be.url = `${this[B].origin}${this.path}`, Be.req = this, Be.statusCode = Ie[g], Be.headers = Ie, Be.rawHeaders = Ne, Be.once("end", () => { Be.complete = !0, Be.socket = null, Be.connection = null; }), re ? (Be.upgrade = !0, this.emit("connect", Be, ve, Buffer.alloc(0)) ? this.emit("close") : ve.destroy()) : (ve.on("data", (Cr) => { !Be._dumped && !Be.push(Cr) && ve.pause(); }), ve.once("end", () => { this.aborted || Be.push(null); }), this.emit("response", Be) || Be._dump()); }, "onResponse"); ve.once("response", Je), ve.once("headers", (Ie) => this.emit("information", { statusCode: Ie[g] })), ve.once("trailers", (Ie, se, Ne) => { let { res: Be } = this; if (Be === null) { Je(Ie, se, Ne); return; } Be.trailers = Ie, Be.rawTrailers = Ne; }), ve.once("close", () => { let { aborted: Ie, res: se } = this; if (se) { Ie && (se.aborted = !0, se.emit("aborted"), se.destroy()); let Ne = /* @__PURE__ */ n(() => { se.emit("close"), this.destroy(), this.emit("close"); }, "finish"); se.readable ? se.once("end", Ne) : Ne(); return; } if (!this.destroyed) { this.destroy(new Error("The HTTP/2 stream has been early terminated")), this.emit("close"); return; } this.destroy(), this.emit("close"); }), this.socket = new Proxy(ve, p); for (let Ie of this[Y]) Ie(); this[Y].length = 0, this.emit("socket", this.socket); }, "onStream"); if (!(x in this[w]) && !re && (this[w][x] = this[B].host), this[k]) try { te(this[k].request(this[w])); } catch (ve) { this.destroy(ve); } else { this.reusedSocket = !0; try { let ve = this.agent.request(this[B], this[j], this[w]); this[G] = ve, te(await ve), this[G] = !1; } catch (ve) { this[G] = !1, this.destroy(ve); } } } get connection() { return this.socket; } set connection(re) { this.socket = re; } getHeaderNames() { return Object.keys(this[w]); } hasHeader(re) { if (typeof re != "string") throw new f("name", "string", re); return !!this[w][re.toLowerCase()]; } getHeader(re) { if (typeof re != "string") throw new f("name", "string", re); return this[w][re.toLowerCase()]; } get headersSent() { return this[W]; } removeHeader(re) { if (typeof re != "string") throw new f("name", "string", re); if (this.headersSent) throw new h("remove"); delete this[w][re.toLowerCase()]; } setHeader(re, te) { if (this.headersSent) throw new h("set"); d(re), y(re, te); let ve = re.toLowerCase(); if (ve === "connection") { if (te.toLowerCase() === "keep-alive") return; throw new Error(`Invalid 'connection' header: ${te}`); } ve === "host" && this.method === "CONNECT" ? this[w][x] = te : this[w][ve] = te; } setNoDelay() { } setSocketKeepAlive() { } setTimeout(re, te) { let ve = /* @__PURE__ */ n(() => this._request.setTimeout(re, te), "applyTimeout"); return this._request ? ve() : this[Y].push(ve), this; } get maxHeadersCount() { if (!this.destroyed && this._request) return this._request.session.localSettings.maxHeaderListSize; } set maxHeadersCount(re) { } }; t.exports = ye; } }), ioe = nt({ "node_modules/.pnpm/resolve-alpn@1.2.1/node_modules/resolve-alpn/index.js"(e, t) { "use strict"; var r = require("tls"); t.exports = (i = {}, s = r.connect) => new Promise((a, o) => { let u = !1, l, c = /* @__PURE__ */ n(async () => { await m, l.off("timeout", f), l.off("error", o), i.resolveSocket ? (a({ alpnProtocol: l.alpnProtocol, socket: l, timeout: u }), u && (await Promise.resolve(), l.emit("timeout"))) : (l.destroy(), a({ alpnProtocol: l.alpnProtocol, timeout: u })); }, "callback"), f = /* @__PURE__ */ n(async () => { u = !0, c(); }, "onTimeout"), m = (async () => { try { l = await s(i, c), l.on("error", o), l.once("timeout", f); } catch (h) { o(h); } })(); }); } }), soe = nt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/utils/calculate-server-name.js"(e, t) { "use strict"; var { isIP: r } = require("net"), i = require("assert"), s = /* @__PURE__ */ n((a) => { if (a[0] === "[") { let u = a.indexOf("]"); return i(u !== -1), a.slice(1, u); } let o = a.indexOf(":"); return o === -1 ? a : a.slice(0, o); }, "getHost"); t.exports = (a) => { let o = s(a); return r(o) ? "" : o; }; } }), noe = nt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/auto.js"(e, t) { "use strict"; var { URL: r, urlToHttpOptions: i } = require("url"), s = require("http"), a = require("https"), o = ioe(), u = sk(), { Agent: l, globalAgent: c } = El(), f = lk(), m = soe(), h = nk(), d = new u({ maxSize: 100 }), y = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ n((D, x, T) => { x._httpMessage = { shouldKeepAlive: !0 }; let w = /* @__PURE__ */ n(() => { D.emit("free", x, T); }, "onFree"); x.on("free", w); let B = /* @__PURE__ */ n(() => { D.removeSocket(x, T); }, "onClose"); x.on("close", B); let k = /* @__PURE__ */ n(() => { let { freeSockets: W } = D; for (let Y of Object.values(W)) if (Y.includes(x)) { x.destroy(); return; } }, "onTimeout"); x.on("timeout", k); let j = /* @__PURE__ */ n(() => { D.removeSocket(x, T), x.off("close", B), x.off("free", w), x.off("timeout", k), x.off("agentRemove", j); }, "onRemove"); x.on("agentRemove", j), D.emit("free", x, T); }, "installSocket"), g = /* @__PURE__ */ n((D, x = /* @__PURE__ */ new Map(), T = void 0) => async (w) => { let B = `${w.host}:${w.port}:${w.ALPNProtocols.sort()}`; if (!D.has(B)) { if (x.has(B)) return { alpnProtocol: (await x.get(B)).alpnProtocol }; let { path: k } = w; w.path = w.socketPath; let j = o(w, T); x.set(B, j); try { let W = await j; return D.set(B, W.alpnProtocol), x.delete(B), w.path = k, W; } catch (W) { throw x.delete(B), w.path = k, W; } } return { alpnProtocol: D.get(B) }; }, "createResolveProtocol"), b = g(d, y); t.exports = async (D, x, T) => { if (typeof D == "string" ? D = i(new r(D)) : D instanceof r ? D = i(D) : D = { ...D }, typeof x == "function" || x === void 0 ? (T = x, x = D) : x = Object.assign(D, x), x.ALPNProtocols = x.ALPNProtocols || ["h2", "http/1.1"], !Array.isArray(x.ALPNProtocols) || x.ALPNProtocols. length === 0) throw new Error("The `ALPNProtocols` option must be an Array with at least one entry"); x.protocol = x.protocol || "https:"; let w = x.protocol === "https:"; x.host = x.hostname || x.host || "localhost", x.session = x.tlsSession, x.servername = x.servername || m(x.headers && x.headers.host || x.host), x.port = x.port || (w ? 443 : 80), x._defaultAgent = w ? a.globalAgent : s.globalAgent; let B = x.resolveProtocol || b, { agent: k } = x; if (k !== void 0 && k !== !1 && k.constructor.name !== "Object") throw new Error("The `options.agent` can be only an object `http`, `https` or `http2` properties"); if (w) { x.resolveSocket = !0; let { socket: j, alpnProtocol: W, timeout: Y } = await B(x); if (Y) { j && j.destroy(); let ye = new Error(`Timed out resolving ALPN: ${x.timeout} ms`); throw ye.code = "ETIMEDOUT", ye.ms = x.timeout, ye; } j && x.createConnection && (j.destroy(), j = void 0), delete x.resolveSocket; let G = W === "h2"; if (k && (k = G ? k.http2 : k.https, x.agent = k), k === void 0 && (k = G ? c : a.globalAgent), j) if (k === !1) j.destroy(); else { let ye = (G ? l : a.Agent).prototype.createConnection; k.createConnection === ye ? G ? x._reuseSocket = j : p(k, j, x) : j.destroy(); } if (G) return h(new f(x, T)); } else k && (x.agent = k.http); return h(s.request(x, T)); }, t.exports.protocolCache = d, t.exports.resolveProtocol = b, t.exports.createResolveProtocol = g; } }), ck = nt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/utils/js-stream-socket.js"(e, t) { "use strict"; var r = require("stream"), i = require("tls"), s = new i.TLSSocket(new r.PassThrough())._handle._parentWrap.constructor; t.exports = s; } }), fk = nt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/proxies/unexpected-status-code-error.js"(e, t) { "use strict"; var r = class extends Error { static { n(this, "UnexpectedStatusCodeError"); } constructor(i, s = "") { super(`The proxy server rejected the request with status code ${i} (${s || "empty status message"})`), this.statusCode = i, this.statusMessage = s; } }; t.exports = r; } }), aoe = nt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/utils/check-type.js"(e, t) { "use strict"; var r = /* @__PURE__ */ n((i, s, a) => { if (!a.some((u) => typeof u === "string" ? typeof s === u : s instanceof u)) { let u = a.map((l) => typeof l == "string" ? l : l.name); throw new TypeError(`Expected '${i}' to be a type of ${u.join(" or ")}, got ${typeof s}`); } }, "checkType"); t.exports = r; } }), dk = nt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/proxies/initialize.js"(e, t) { "use strict"; var { URL: r } = require("url"), i = aoe(); t.exports = (s, a) => { i("proxyOptions", a, ["object"]), i("proxyOptions.headers", a.headers, ["object", "undefined"]), i("proxyOptions.raw", a.raw, ["bool\ ean", "undefined"]), i("proxyOptions.url", a.url, [r, "string"]); let o = new r(a.url); s.proxyOptions = { raw: !0, ...a, headers: { ...a.headers }, url: o }; }; } }), Kv = nt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/proxies/get-auth-headers.js"(e, t) { "use strict"; t.exports = (r) => { let { username: i, password: s } = r.proxyOptions.url; if (i || s) { let a = `${i}:${s}`, o = `Basic ${Buffer.from(a).toString("base64")}`; return { "proxy-authorization": o, authorization: o }; } return {}; }; } }), ooe = nt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/proxies/h1-over-h2.js"(e, t) { "use strict"; var r = require("tls"), i = require("http"), s = require("https"), a = ck(), { globalAgent: o } = El(), u = fk(), l = dk(), c = Kv(), f = /* @__PURE__ */ n( (d, y, p) => { (async () => { try { let { proxyOptions: g } = d, { url: b, headers: D, raw: x } = g, T = await o.request(b, g, { ...c(d), ...D, ":method": "CONNECT", ":authority": `${y.host}:${y.port}` }); T.once("error", p), T.once("response", (w) => { let B = w[":status"]; if (B !== 200) { p(new u(B, "")); return; } let k = d instanceof s.Agent; if (x && k) { y.socket = T; let W = r.connect(y); W.once("close", () => { T.destroy(); }), p(null, W); return; } let j = new a(T); j.encrypted = !1, j._handle.getpeername = (W) => { W.family = void 0, W.address = void 0, W.port = void 0; }, p(null, j); }); } catch (g) { p(g); } })(); }, "createConnection"), m = class extends i.Agent { static { n(this, "HttpOverHttp2"); } constructor(d) { super(d), l(this, d.proxyOptions); } createConnection(d, y) { f(this, d, y); } }, h = class extends s.Agent { static { n(this, "HttpsOverHttp2"); } constructor(d) { super(d), l(this, d.proxyOptions); } createConnection(d, y) { f(this, d, y); } }; t.exports = { HttpOverHttp2: m, HttpsOverHttp2: h }; } }), pk = nt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/proxies/h2-over-hx.js"(e, t) { "use strict"; var { Agent: r } = El(), i = ck(), s = fk(), a = dk(), o = class extends r { static { n(this, "Http2OverHttpX"); } constructor(u) { super(u), a(this, u.proxyOptions); } async createConnection(u, l) { let c = `${u.hostname}:${u.port || 443}`, [f, m, h] = await this._getProxyStream(c); if (m !== 200) throw new s(m, h); if (this.proxyOptions.raw) l.socket = f; else { let d = new i(f); return d.encrypted = !1, d._handle.getpeername = (y) => { y.family = void 0, y.address = void 0, y.port = void 0; }, d; } return super.createConnection(u, l); } }; t.exports = o; } }), uoe = nt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/proxies/h2-over-h2.js"(e, t) { "use strict"; var { globalAgent: r } = El(), i = pk(), s = Kv(), a = /* @__PURE__ */ n((u) => new Promise((l, c) => { u.once("error", c), u.once("response", (f) => { u.off("error", c), l(f[":status"]); }); }), "getStatusCode"), o = class extends i { static { n(this, "Http2OverHttp2"); } async _getProxyStream(u) { let { proxyOptions: l } = this, c = { ...s(this), ...l.headers, ":method": "CONNECT", ":authority": u }, f = await r.request(l.url, l, c), m = await a(f); return [f, m, ""]; } }; t.exports = o; } }), loe = nt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/proxies/h2-over-h1.js"(e, t) { "use strict"; var r = require("http"), i = require("https"), s = pk(), a = Kv(), o = /* @__PURE__ */ n((l) => new Promise((c, f) => { let m = /* @__PURE__ */ n((h, d, y) => { d.unshift(y), l.off("error", f), c([d, h.statusCode, h.statusMessage]); }, "onConnect"); l.once("error", f), l.once("connect", m); }), "getStream2"), u = class extends s { static { n(this, "Http2OverHttp"); } async _getProxyStream(l) { let { proxyOptions: c } = this, { url: f, headers: m } = this.proxyOptions, d = (f.protocol === "https:" ? i : r).request({ ...c, hostname: f.hostname, port: f.port, path: l, headers: { ...a(this), ...m, host: l }, method: "CONNECT" }).end(); return o(d); } }; t.exports = { Http2OverHttp: u, Http2OverHttps: u }; } }), coe = nt({ "node_modules/.pnpm/http2-wrapper@2.2.0/node_modules/http2-wrapper/source/index.js"(e, t) { "use strict"; var r = require("http2"), { Agent: i, globalAgent: s } = El(), a = lk(), o = ak(), u = noe(), { HttpOverHttp2: l, HttpsOverHttp2: c } = ooe(), f = uoe(), { Http2OverHttp: m, Http2OverHttps: h } = loe(), d = ok(), y = uk(), p = /* @__PURE__ */ n((b, D, x) => new a(b, D, x), "request"), g = /* @__PURE__ */ n((b, D, x) => { let T = new a(b, D, x); return T.end(), T; }, "get"); t.exports = { ...r, ClientRequest: a, IncomingMessage: o, Agent: i, globalAgent: s, request: p, get: g, auto: u, proxies: { HttpOverHttp2: l, HttpsOverHttp2: c, Http2OverHttp2: f, Http2OverHttp: m, Http2OverHttps: h }, validateHeaderName: d, validateHeaderValue: y }; } }), hk = {}; Hae(hk, { default: /* @__PURE__ */ n(() => fle, "default") }); Tk.exports = Kae(hk); var foe = require("http"), doe = require("https"), mk = [ "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array", "Float64Array", "BigInt64Array", "BigUint64Array" ]; function poe(e) { return mk.includes(e); } n(poe, "isTypedArrayName"); var hoe = [ "Function", "Generator", "AsyncGenerator", "GeneratorFunction", "AsyncGeneratorFunction", "AsyncFunction", "Observable", "Array", "Buffer", "Blob", "Object", "RegExp", "Date", "Error", "Map", "Set", "WeakMap", "WeakSet", "WeakRef", "ArrayBuffer", "SharedArrayBuffer", "DataView", "Promise", "URL", "FormData", "URLSearchParams", "HTMLElement", "NaN", ...mk ]; function moe(e) { return hoe.includes(e); } n(moe, "isObjectTypeName"); var yoe = [ "null", "undefined", "string", "number", "bigint", "boolean", "symbol" ]; function goe(e) { return yoe.includes(e); } n(goe, "isPrimitiveTypeName"); function Sl(e) { return (t) => typeof t === e; } n(Sl, "isOfType"); var { toString: boe } = Object.prototype, Qf = /* @__PURE__ */ n((e) => { let t = boe.call(e).slice(8, -1); if (/HTML\w+Element/.test(t) && M.domElement(e)) return "HTMLElement"; if (moe(t)) return t; }, "getObjectType"), Dt = /* @__PURE__ */ n((e) => (t) => Qf(t) === e, "isObjectOfType"); function M(e) { if (e === null) return "null"; switch (typeof e) { case "undefined": return "undefined"; case "string": return "string"; case "number": return Number.isNaN(e) ? "NaN" : "number"; case "boolean": return "boolean"; case "function": return "Function"; case "bigint": return "bigint"; case "symbol": return "symbol"; default: } if (M.observable(e)) return "Observable"; if (M.array(e)) return "Array"; if (M.buffer(e)) return "Buffer"; let t = Qf(e); if (t) return t; if (e instanceof String || e instanceof Boolean || e instanceof Number) throw new TypeError("Please don't use object wrappers for primitive types"); return "Object"; } n(M, "is"); M.undefined = Sl("undefined"); M.string = Sl("string"); var Doe = Sl("number"); M.number = (e) => Doe(e) && !M.nan(e); M.bigint = Sl("bigint"); M.function_ = Sl("function"); M.null_ = (e) => e === null; M.class_ = (e) => M.function_(e) && e.toString().startsWith("class "); M.boolean = (e) => e === !0 || e === !1; M.symbol = Sl("symbol"); M.numericString = (e) => M.string(e) && !M.emptyStringOrWhitespace(e) && !Number.isNaN(Number(e)); M.array = (e, t) => Array.isArray(e) ? M.function_(t) ? e.every((r) => t(r)) : !0 : !1; M.buffer = (e) => { var t, r; return ((r = (t = e?.constructor) == null ? void 0 : t.isBuffer) == null ? void 0 : r.call(t, e)) ?? !1; }; M.blob = (e) => Dt("Blob")(e); M.nullOrUndefined = (e) => M.null_(e) || M.undefined(e); M.object = (e) => !M.null_(e) && (typeof e == "object" || M.function_(e)); M.iterable = (e) => M.function_(e?.[Symbol.iterator]); M.asyncIterable = (e) => M.function_(e?.[Symbol.asyncIterator]); M.generator = (e) => M.iterable(e) && M.function_(e?.next) && M.function_(e?.throw); M.asyncGenerator = (e) => M.asyncIterable(e) && M.function_(e.next) && M.function_(e.throw); M.nativePromise = (e) => Dt("Promise")(e); var voe = /* @__PURE__ */ n((e) => M.function_(e?.then) && M.function_(e?.catch), "hasPromiseApi"); M.promise = (e) => M.nativePromise(e) || voe(e); M.generatorFunction = Dt("GeneratorFunction"); M.asyncGeneratorFunction = (e) => Qf(e) === "AsyncGeneratorFunction"; M.asyncFunction = (e) => Qf(e) === "AsyncFunction"; M.boundFunction = (e) => M.function_(e) && !e.hasOwnProperty("prototype"); M.regExp = Dt("RegExp"); M.date = Dt("Date"); M.error = Dt("Error"); M.map = (e) => Dt("Map")(e); M.set = (e) => Dt("Set")(e); M.weakMap = (e) => Dt("WeakMap")(e); M.weakSet = (e) => Dt("WeakSet")(e); M.weakRef = (e) => Dt("WeakRef")(e); M.int8Array = Dt("Int8Array"); M.uint8Array = Dt("Uint8Array"); M.uint8ClampedArray = Dt("Uint8ClampedArray"); M.int16Array = Dt("Int16Array"); M.uint16Array = Dt("Uint16Array"); M.int32Array = Dt("Int32Array"); M.uint32Array = Dt("Uint32Array"); M.float32Array = Dt("Float32Array"); M.float64Array = Dt("Float64Array"); M.bigInt64Array = Dt("BigInt64Array"); M.bigUint64Array = Dt("BigUint64Array"); M.arrayBuffer = Dt("ArrayBuffer"); M.sharedArrayBuffer = Dt("SharedArrayBuffer"); M.dataView = Dt("DataView"); M.enumCase = (e, t) => Object.values(t).includes(e); M.directInstanceOf = (e, t) => Object.getPrototypeOf(e) === t.prototype; M.urlInstance = (e) => Dt("URL")(e); M.urlString = (e) => { if (!M.string(e)) return !1; try { return new URL(e), !0; } catch { return !1; } }; M.truthy = (e) => !!e; M.falsy = (e) => !e; M.nan = (e) => Number.isNaN(e); M.primitive = (e) => M.null_(e) || goe(typeof e); M.integer = (e) => Number.isInteger(e); M.safeInteger = (e) => Number.isSafeInteger(e); M.plainObject = (e) => { if (typeof e != "object" || e === null) return !1; let t = Object.getPrototypeOf(e); return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e); }; M.typedArray = (e) => poe(Qf(e)); var xoe = /* @__PURE__ */ n((e) => M.safeInteger(e) && e >= 0, "isValidLength"); M.arrayLike = (e) => !M.nullOrUndefined(e) && !M.function_(e) && xoe(e.length); M.inRange = (e, t) => { if (M.number(t)) return e >= Math.min(0, t) && e <= Math.max(t, 0); if (M.array(t) && t.length === 2) return e >= Math.min(...t) && e <= Math.max(...t); throw new TypeError(`Invalid range: ${JSON.stringify(t)}`); }; var Eoe = 1, Soe = [ "innerHTML", "ownerDocument", "style", "attributes", "nodeValue" ]; M.domElement = (e) => M.object(e) && e.nodeType === Eoe && M.string(e.nodeName) && !M.plainObject(e) && Soe.every((t) => t in e); M.observable = (e) => { var t, r; return e ? e === ((t = e[Symbol.observable]) == null ? void 0 : t.call(e)) || e === ((r = e["@@observable"]) == null ? void 0 : r.call(e)) : !1; }; M.nodeStream = (e) => M.object(e) && M.function_(e.pipe) && !M.observable(e); M.infinite = (e) => e === Number.POSITIVE_INFINITY || e === Number.NEGATIVE_INFINITY; var yk = /* @__PURE__ */ n((e) => (t) => M.integer(t) && Math.abs(t % 2) === e, "isAbsoluteMod2"); M.evenInteger = yk(0); M.oddInteger = yk(1); M.emptyArray = (e) => M.array(e) && e.length === 0; M.nonEmptyArray = (e) => M.array(e) && e.length > 0; M.emptyString = (e) => M.string(e) && e.length === 0; var Toe = /* @__PURE__ */ n((e) => M.string(e) && !/\S/.test(e), "isWhiteSpaceString"); M.emptyStringOrWhitespace = (e) => M.emptyString(e) || Toe(e); M.nonEmptyString = (e) => M.string(e) && e.length > 0; M.nonEmptyStringAndNotWhitespace = (e) => M.string(e) && !M.emptyStringOrWhitespace(e); M.emptyObject = (e) => M.object(e) && !M.map(e) && !M.set(e) && Object.keys(e).length === 0; M.nonEmptyObject = (e) => M.object(e) && !M.map(e) && !M.set(e) && Object.keys(e).length > 0; M.emptySet = (e) => M.set(e) && e.size === 0; M.nonEmptySet = (e) => M.set(e) && e.size > 0; M.emptyMap = (e) => M.map(e) && e.size === 0; M.nonEmptyMap = (e) => M.map(e) && e.size > 0; M.propertyKey = (e) => M.any([M.string, M.number, M.symbol], e); M.formData = (e) => Dt("FormData")(e); M.urlSearchParams = (e) => Dt("URLSearchParams")(e); var gk = /* @__PURE__ */ n((e, t, r) => { if (!M.function_(t)) throw new TypeError(`Invalid predicate: ${JSON.stringify(t)}`); if (r.length === 0) throw new TypeError("Invalid number of values"); return e.call(r, t); }, "predicateOnArray"); M.any = (e, ...t) => (M.array(e) ? e : [e]).some((i) => gk(Array.prototype.some, i, t)); M.all = (e, ...t) => gk(Array.prototype.every, e, t); var le = /* @__PURE__ */ n((e, t, r, i = {}) => { if (!e) { let { multipleValues: s } = i, a = s ? `received values of types ${[ ...new Set(r.map((o) => `\`${M(o)}\``)) ].join(", ")}` : `received value of type \`${M(r)}\``; throw new TypeError(`Expected value which is \`${t}\`, ${a}.`); } }, "assertType"), ee = { // Unknowns. undefined: /* @__PURE__ */ n((e) => le(M.undefined(e), "undefined", e), "undefined"), string: /* @__PURE__ */ n((e) => le(M.string(e), "string", e), "string"), number: /* @__PURE__ */ n((e) => le(M.number(e), "number", e), "number"), bigint: /* @__PURE__ */ n((e) => le(M.bigint(e), "bigint", e), "bigint"), // eslint-disable-next-line @typescript-eslint/ban-types function_: /* @__PURE__ */ n((e) => le(M.function_(e), "Function", e), "function_"), null_: /* @__PURE__ */ n((e) => le(M.null_(e), "null", e), "null_"), class_: /* @__PURE__ */ n((e) => le(M.class_(e), "Class", e), "class_"), boolean: /* @__PURE__ */ n((e) => le(M.boolean(e), "boolean", e), "boolean"), symbol: /* @__PURE__ */ n((e) => le(M.symbol(e), "symbol", e), "symbol"), numericString: /* @__PURE__ */ n((e) => le(M.numericString(e), "string with a number", e), "numericString"), array: /* @__PURE__ */ n((e, t) => { le(M.array(e), "Array", e), t && e.forEach(t); }, "array"), buffer: /* @__PURE__ */ n((e) => le(M.buffer(e), "Buffer", e), "buffer"), blob: /* @__PURE__ */ n((e) => le(M.blob(e), "Blob", e), "blob"), nullOrUndefined: /* @__PURE__ */ n((e) => le(M.nullOrUndefined(e), "null or undefined", e), "nullOrUndefined"), object: /* @__PURE__ */ n((e) => le(M.object(e), "Object", e), "object"), iterable: /* @__PURE__ */ n((e) => le(M.iterable(e), "Iterable", e), "iterable"), asyncIterable: /* @__PURE__ */ n((e) => le(M.asyncIterable(e), "AsyncIterable", e), "asyncIterable"), generator: /* @__PURE__ */ n((e) => le(M.generator(e), "Generator", e), "generator"), asyncGenerator: /* @__PURE__ */ n((e) => le(M.asyncGenerator(e), "AsyncGenerator", e), "asyncGenerator"), nativePromise: /* @__PURE__ */ n((e) => le(M.nativePromise(e), "native Promise", e), "nativePromise"), promise: /* @__PURE__ */ n((e) => le(M.promise(e), "Promise", e), "promise"), generatorFunction: /* @__PURE__ */ n((e) => le(M.generatorFunction(e), "GeneratorFunction", e), "generatorFunction"), asyncGeneratorFunction: /* @__PURE__ */ n((e) => le(M.asyncGeneratorFunction(e), "AsyncGeneratorFunction", e), "asyncGeneratorFunction"), // eslint-disable-next-line @typescript-eslint/ban-types asyncFunction: /* @__PURE__ */ n((e) => le(M.asyncFunction(e), "AsyncFunction", e), "asyncFunction"), // eslint-disable-next-line @typescript-eslint/ban-types boundFunction: /* @__PURE__ */ n((e) => le(M.boundFunction(e), "Function", e), "boundFunction"), regExp: /* @__PURE__ */ n((e) => le(M.regExp(e), "RegExp", e), "regExp"), date: /* @__PURE__ */ n((e) => le(M.date(e), "Date", e), "date"), error: /* @__PURE__ */ n((e) => le(M.error(e), "Error", e), "error"), map: /* @__PURE__ */ n((e) => le(M.map(e), "Map", e), "map"), set: /* @__PURE__ */ n((e) => le(M.set(e), "Set", e), "set"), weakMap: /* @__PURE__ */ n((e) => le(M.weakMap(e), "WeakMap", e), "weakMap"), weakSet: /* @__PURE__ */ n((e) => le(M.weakSet(e), "WeakSet", e), "weakSet"), weakRef: /* @__PURE__ */ n((e) => le(M.weakRef(e), "WeakRef", e), "weakRef"), int8Array: /* @__PURE__ */ n((e) => le(M.int8Array(e), "Int8Array", e), "int8Array"), uint8Array: /* @__PURE__ */ n((e) => le(M.uint8Array(e), "Uint8Array", e), "uint8Array"), uint8ClampedArray: /* @__PURE__ */ n((e) => le(M.uint8ClampedArray(e), "Uint8ClampedArray", e), "uint8ClampedArray"), int16Array: /* @__PURE__ */ n((e) => le(M.int16Array(e), "Int16Array", e), "int16Array"), uint16Array: /* @__PURE__ */ n((e) => le(M.uint16Array(e), "Uint16Array", e), "uint16Array"), int32Array: /* @__PURE__ */ n((e) => le(M.int32Array(e), "Int32Array", e), "int32Array"), uint32Array: /* @__PURE__ */ n((e) => le(M.uint32Array(e), "Uint32Array", e), "uint32Array"), float32Array: /* @__PURE__ */ n((e) => le(M.float32Array(e), "Float32Array", e), "float32Array"), float64Array: /* @__PURE__ */ n((e) => le(M.float64Array(e), "Float64Array", e), "float64Array"), bigInt64Array: /* @__PURE__ */ n((e) => le(M.bigInt64Array(e), "BigInt64Array", e), "bigInt64Array"), bigUint64Array: /* @__PURE__ */ n((e) => le(M.bigUint64Array(e), "BigUint64Array", e), "bigUint64Array"), arrayBuffer: /* @__PURE__ */ n((e) => le(M.arrayBuffer(e), "ArrayBuffer", e), "arrayBuffer"), sharedArrayBuffer: /* @__PURE__ */ n((e) => le(M.sharedArrayBuffer(e), "SharedArrayBuffer", e), "sharedArrayBuffer"), dataView: /* @__PURE__ */ n((e) => le(M.dataView(e), "DataView", e), "dataView"), enumCase: /* @__PURE__ */ n((e, t) => le(M.enumCase(e, t), "EnumCase", e), "enumCase"), urlInstance: /* @__PURE__ */ n((e) => le(M.urlInstance(e), "URL", e), "urlInstance"), urlString: /* @__PURE__ */ n((e) => le(M.urlString(e), "string with a URL", e), "urlString"), truthy: /* @__PURE__ */ n((e) => le(M.truthy(e), "truthy", e), "truthy"), falsy: /* @__PURE__ */ n((e) => le(M.falsy(e), "falsy", e), "falsy"), nan: /* @__PURE__ */ n((e) => le(M.nan(e), "NaN", e), "nan"), primitive: /* @__PURE__ */ n((e) => le(M.primitive(e), "primitive", e), "primitive"), integer: /* @__PURE__ */ n((e) => le(M.integer(e), "integer", e), "integer"), safeInteger: /* @__PURE__ */ n((e) => le(M.safeInteger(e), "integer", e), "safeInteger"), plainObject: /* @__PURE__ */ n((e) => le(M.plainObject(e), "plain object", e), "plainObject"), typedArray: /* @__PURE__ */ n((e) => le(M.typedArray(e), "TypedArray", e), "typedArray"), arrayLike: /* @__PURE__ */ n((e) => le(M.arrayLike(e), "array-like", e), "arrayLike"), domElement: /* @__PURE__ */ n((e) => le(M.domElement(e), "HTMLElement", e), "domElement"), observable: /* @__PURE__ */ n((e) => le(M.observable(e), "Observable", e), "observable"), nodeStream: /* @__PURE__ */ n((e) => le(M.nodeStream(e), "Node.js Stream", e), "nodeStream"), infinite: /* @__PURE__ */ n((e) => le(M.infinite(e), "infinite number", e), "infinite"), emptyArray: /* @__PURE__ */ n((e) => le(M.emptyArray(e), "empty array", e), "emptyArray"), nonEmptyArray: /* @__PURE__ */ n((e) => le(M.nonEmptyArray(e), "non-empty array", e), "nonEmptyArray"), emptyString: /* @__PURE__ */ n((e) => le(M.emptyString(e), "empty string", e), "emptyString"), emptyStringOrWhitespace: /* @__PURE__ */ n((e) => le(M.emptyStringOrWhitespace(e), "empty string or whitespace", e), "emptyStringOrWhite\ space"), nonEmptyString: /* @__PURE__ */ n((e) => le(M.nonEmptyString(e), "non-empty string", e), "nonEmptyString"), nonEmptyStringAndNotWhitespace: /* @__PURE__ */ n((e) => le(M.nonEmptyStringAndNotWhitespace(e), "non-empty string and not whitespace", e), "nonEmptyStringAndNotWhitespace"), emptyObject: /* @__PURE__ */ n((e) => le(M.emptyObject(e), "empty object", e), "emptyObject"), nonEmptyObject: /* @__PURE__ */ n((e) => le(M.nonEmptyObject(e), "non-empty object", e), "nonEmptyObject"), emptySet: /* @__PURE__ */ n((e) => le(M.emptySet(e), "empty set", e), "emptySet"), nonEmptySet: /* @__PURE__ */ n((e) => le(M.nonEmptySet(e), "non-empty set", e), "nonEmptySet"), emptyMap: /* @__PURE__ */ n((e) => le(M.emptyMap(e), "empty map", e), "emptyMap"), nonEmptyMap: /* @__PURE__ */ n((e) => le(M.nonEmptyMap(e), "non-empty map", e), "nonEmptyMap"), propertyKey: /* @__PURE__ */ n((e) => le(M.propertyKey(e), "PropertyKey", e), "propertyKey"), formData: /* @__PURE__ */ n((e) => le(M.formData(e), "FormData", e), "formData"), urlSearchParams: /* @__PURE__ */ n((e) => le(M.urlSearchParams(e), "URLSearchParams", e), "urlSearchParams"), // Numbers. evenInteger: /* @__PURE__ */ n((e) => le(M.evenInteger(e), "even integer", e), "evenInteger"), oddInteger: /* @__PURE__ */ n((e) => le(M.oddInteger(e), "odd integer", e), "oddInteger"), // Two arguments. directInstanceOf: /* @__PURE__ */ n((e, t) => le(M.directInstanceOf(e, t), "T", e), "directInstanceOf"), inRange: /* @__PURE__ */ n((e, t) => le(M.inRange(e, t), "in range", e), "inRange"), // Variadic functions. any: /* @__PURE__ */ n((e, ...t) => le(M.any(e, ...t), "predicate returns truthy for any value", t, { multipleValues: !0 }), "any"), all: /* @__PURE__ */ n((e, ...t) => le(M.all(e, ...t), "predicate returns truthy for all values", t, { multipleValues: !0 }), "all") }; Object.defineProperties(M, { class: { value: M.class_ }, function: { value: M.function_ }, null: { value: M.null_ } }); Object.defineProperties(ee, { class: { value: ee.class_ }, function: { value: ee.function_ }, null: { value: ee.null_ } }); var U = M, Coe = require("events"), woe = class extends Error { static { n(this, "CancelError"); } constructor(e) { super(e || "Promise was canceled"), this.name = "CancelError"; } get isCanceled() { return !0; } }, zv = class { static { n(this, "PCancelable"); } static fn(e) { return (...t) => new zv((r, i, s) => { t.push(s), e(...t).then(r, i); }); } constructor(e) { this._cancelHandlers = [], this._isPending = !0, this._isCanceled = !1, this._rejectOnCancel = !0, this._promise = new Promise((t, r) => { this._reject = r; let i = /* @__PURE__ */ n((o) => { (!this._isCanceled || !a.shouldReject) && (this._isPending = !1, t(o)); }, "onResolve"), s = /* @__PURE__ */ n((o) => { this._isPending = !1, r(o); }, "onReject"), a = /* @__PURE__ */ n((o) => { if (!this._isPending) throw new Error("The `onCancel` handler was attached after the promise settled."); this._cancelHandlers.push(o); }, "onCancel"); Object.defineProperties(a, { shouldReject: { get: /* @__PURE__ */ n(() => this._rejectOnCancel, "get"), set: /* @__PURE__ */ n((o) => { this._rejectOnCancel = o; }, "set") } }), e(i, s, a); }); } then(e, t) { return this._promise.then(e, t); } catch(e) { return this._promise.catch(e); } finally(e) { return this._promise.finally(e); } cancel(e) { if (!(!this._isPending || this._isCanceled)) { if (this._isCanceled = !0, this._cancelHandlers.length > 0) try { for (let t of this._cancelHandlers) t(); } catch (t) { this._reject(t); return; } this._rejectOnCancel && this._reject(new woe(e)); } } get isCanceled() { return this._isCanceled; } }; Object.setPrototypeOf(zv.prototype, Promise.prototype); function Aoe(e) { return U.object(e) && "_onResponse" in e; } n(Aoe, "isRequest"); var pr = class extends Error { static { n(this, "RequestError"); } constructor(e, t, r) { var i; if (super(e), Object.defineProperty(this, "input", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "code", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "stack", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "response", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "request", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "timings", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Error.captureStackTrace(this, this.constructor), this.name = "RequestError", this.code = t.code ?? "ERR_GOT_REQUEST_ERROR", this.input = t.input, Aoe(r) ? (Object.defineProperty(this, "request", { enumerable: !1, value: r }), Object.defineProperty(this, "response", { enumerable: !1, value: r.response }), this.options = r.options) : this.options = r, this.timings = (i = this.request) == null ? void 0 : i.timings, U.string(t.stack) && U.string(this.stack)) { let s = this.stack.indexOf(this.message) + this.message.length, a = this.stack.slice(s).split(` `).reverse(), o = t.stack.slice(t.stack.indexOf(t.message) + t.message.length).split(` `).reverse(); for (; o.length > 0 && o[0] === a[0]; ) a.shift(); this.stack = `${this.stack.slice(0, s)}${a.reverse().join(` `)}${o.reverse().join(` `)}`; } } }, _oe = class extends pr { static { n(this, "MaxRedirectsError"); } constructor(e) { super(`Redirected ${e.options.maxRedirects} times. Aborting.`, {}, e), this.name = "MaxRedirectsError", this.code = "ERR_TOO_MANY_REDI\ RECTS"; } }, rm = class extends pr { static { n(this, "HTTPError"); } constructor(e) { super(`Response code ${e.statusCode} (${e.statusMessage})`, {}, e.request), this.name = "HTTPError", this.code = "ERR_NON_2XX_3XX_RESP\ ONSE"; } }, Poe = class extends pr { static { n(this, "CacheError"); } constructor(e, t) { super(e.message, e, t), this.name = "CacheError", this.code = this.code === "ERR_GOT_REQUEST_ERROR" ? "ERR_CACHE_ACCESS" : this.code; } }, IO = class extends pr { static { n(this, "UploadError"); } constructor(e, t) { super(e.message, e, t), this.name = "UploadError", this.code = this.code === "ERR_GOT_REQUEST_ERROR" ? "ERR_UPLOAD" : this.code; } }, Foe = class extends pr { static { n(this, "TimeoutError"); } constructor(e, t, r) { super(e.message, e, r), Object.defineProperty(this, "timings", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "event", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.name = "TimeoutError", this.event = e.event, this.timings = t; } }, OO = class extends pr { static { n(this, "ReadError"); } constructor(e, t) { super(e.message, e, t), this.name = "ReadError", this.code = this.code === "ERR_GOT_REQUEST_ERROR" ? "ERR_READING_RESPONSE_STREAM" : this. code; } }, Ioe = class extends pr { static { n(this, "RetryError"); } constructor(e) { super("Retrying", {}, e), this.name = "RetryError", this.code = "ERR_RETRYING"; } }, Ooe = class extends pr { static { n(this, "AbortError"); } constructor(e) { super("This operation was aborted.", {}, e), this.code = "ERR_ABORTED", this.name = "AbortError"; } }, bk = ur(require("process"), 1), Nv = require("buffer"), koe = require("stream"), kO = require("url"), Mv = ur(require("http"), 1), Boe = require("events"), Noe = require("util"), Moe = ur(zae(), 1), Roe = /* @__PURE__ */ n((e) => { if (e.timings) return e.timings; let t = { start: Date.now(), socket: void 0, lookup: void 0, connect: void 0, secureConnect: void 0, upload: void 0, response: void 0, end: void 0, error: void 0, abort: void 0, phases: { wait: void 0, dns: void 0, tcp: void 0, tls: void 0, request: void 0, firstByte: void 0, download: void 0, total: void 0 } }; e.timings = t; let r = /* @__PURE__ */ n((o) => { o.once(Boe.errorMonitor, () => { t.error = Date.now(), t.phases.total = t.error - t.start; }); }, "handleError"); r(e); let i = /* @__PURE__ */ n(() => { t.abort = Date.now(), t.phases.total = t.abort - t.start; }, "onAbort"); e.prependOnceListener("abort", i); let s = /* @__PURE__ */ n((o) => { if (t.socket = Date.now(), t.phases.wait = t.socket - t.start, Noe.types.isProxy(o)) return; let u = /* @__PURE__ */ n(() => { t.lookup = Date.now(), t.phases.dns = t.lookup - t.socket; }, "lookupListener"); o.prependOnceListener("lookup", u), (0, Moe.default)(o, { connect: /* @__PURE__ */ n(() => { t.connect = Date.now(), t.lookup === void 0 && (o.removeListener("lookup", u), t.lookup = t.connect, t.phases.dns = t.lookup - t.socket), t.phases.tcp = t.connect - t.lookup; }, "connect"), secureConnect: /* @__PURE__ */ n(() => { t.secureConnect = Date.now(), t.phases.tls = t.secureConnect - t.connect; }, "secureConnect") }); }, "onSocket"); e.socket ? s(e.socket) : e.prependOnceListener("socket", s); let a = /* @__PURE__ */ n(() => { t.upload = Date.now(), t.phases.request = t.upload - (t.secureConnect ?? t.connect); }, "onUpload"); return e.writableFinished ? a() : e.prependOnceListener("finish", a), e.prependOnceListener("response", (o) => { t.response = Date.now(), t.phases.firstByte = t.response - t.upload, o.timings = t, r(o), o.prependOnceListener("end", () => { e.off("abort", i), o.off("aborted", i), !t.phases.total && (t.end = Date.now(), t.phases.download = t.end - t.response, t.phases.total = t.end - t.start); }), o.prependOnceListener("aborted", i); }), t; }, "timer"), Loe = Roe, joe = ur(require("events"), 1), J0 = ur(require("url"), 1), qoe = ur(require("crypto"), 1), Dk = ur(require("stream"), 1), Uoe = "text/plain", $oe = "us-ascii", Rv = /* @__PURE__ */ n((e, t) => t.some((r) => r instanceof RegExp ? r.test(e) : r === e), "test\ Parameter"), Voe = /* @__PURE__ */ new Set([ "https:", "http:", "file:" ]), Woe = /* @__PURE__ */ n((e) => { try { let { protocol: t } = new URL(e); return t.endsWith(":") && !Voe.has(t); } catch { return !1; } }, "hasCustomProtocol"), Hoe = /* @__PURE__ */ n((e, { stripHash: t }) => { var r; let i = /^data:(?[^,]*?),(?[^#]*?)(?:#(?.*))?$/.exec(e); if (!i) throw new Error(`Invalid URL: ${e}`); let { type: s, data: a, hash: o } = i.groups, u = s.split(";"); o = t ? "" : o; let l = !1; u[u.length - 1] === "base64" && (u.pop(), l = !0); let c = ((r = u.shift()) == null ? void 0 : r.toLowerCase()) ?? "", m = [ ...u.map((h) => { let [d, y = ""] = h.split("=").map((p) => p.trim()); return d === "charset" && (y = y.toLowerCase(), y === $oe) ? "" : `${d}${y ? `=${y}` : ""}`; }).filter(Boolean) ]; return l && m.push("base64"), (m.length > 0 || c && c !== Uoe) && m.unshift(c), `data:${m.join(";")},${l ? a.trim() : a}${o ? `#${o}` : ""}`; }, "normalizeDataURL"); function Koe(e, t) { if (t = { defaultProtocol: "http", normalizeProtocol: !0, forceHttp: !1, forceHttps: !1, stripAuthentication: !0, stripHash: !1, stripTextFragment: !0, stripWWW: !0, removeQueryParameters: [/^utm_\w+/i], removeTrailingSlash: !0, removeSingleSlash: !0, removeDirectoryIndex: !1, removeExplicitPort: !1, sortQueryParameters: !0, ...t }, typeof t.defaultProtocol == "string" && !t.defaultProtocol.endsWith(":") && (t.defaultProtocol = `${t.defaultProtocol}:`), e = e.trim(), /^data:/i.test(e)) return Hoe(e, t); if (Woe(e)) return e; let r = e.startsWith("//"); !r && /^\.*\//.test(e) || (e = e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//, t.defaultProtocol)); let s = new URL(e); if (t.forceHttp && t.forceHttps) throw new Error("The `forceHttp` and `forceHttps` options cannot be used together"); if (t.forceHttp && s.protocol === "https:" && (s.protocol = "http:"), t.forceHttps && s.protocol === "http:" && (s.protocol = "https:"), t.stripAuthentication && (s.username = "", s.password = ""), t.stripHash ? s.hash = "" : t.stripTextFragment && (s.hash = s.hash.replace( /#?:~:text.*?$/i, "")), s.pathname) { let o = /\b[a-z][a-z\d+\-.]{1,50}:\/\//g, u = 0, l = ""; for (; ; ) { let f = o.exec(s.pathname); if (!f) break; let m = f[0], h = f.index, d = s.pathname.slice(u, h); l += d.replace(/\/{2,}/g, "/"), l += m, u = h + m.length; } let c = s.pathname.slice(u, s.pathname.length); l += c.replace(/\/{2,}/g, "/"), s.pathname = l; } if (s.pathname) try { s.pathname = decodeURI(s.pathname); } catch { } if (t.removeDirectoryIndex === !0 && (t.removeDirectoryIndex = [/^index\.[a-z]+$/]), Array.isArray(t.removeDirectoryIndex) && t.removeDirectoryIndex. length > 0) { let o = s.pathname.split("/"), u = o[o.length - 1]; Rv(u, t.removeDirectoryIndex) && (o = o.slice(0, -1), s.pathname = o.slice(1).join("/") + "/"); } if (s.hostname && (s.hostname = s.hostname.replace(/\.$/, ""), t.stripWWW && /^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(s. hostname) && (s.hostname = s.hostname.replace(/^www\./, ""))), Array.isArray(t.removeQueryParameters)) for (let o of [...s.searchParams.keys()]) Rv(o, t.removeQueryParameters) && s.searchParams.delete(o); if (!Array.isArray(t.keepQueryParameters) && t.removeQueryParameters === !0 && (s.search = ""), Array.isArray(t.keepQueryParameters) && t. keepQueryParameters.length > 0) for (let o of [...s.searchParams.keys()]) Rv(o, t.keepQueryParameters) || s.searchParams.delete(o); if (t.sortQueryParameters) { s.searchParams.sort(); try { s.search = decodeURIComponent(s.search); } catch { } } t.removeTrailingSlash && (s.pathname = s.pathname.replace(/\/$/, "")), t.removeExplicitPort && s.port && (s.port = ""); let a = e; return e = s.toString(), !t.removeSingleSlash && s.pathname === "/" && !a.endsWith("/") && s.hash === "" && (e = e.replace(/\/$/, "")), (t. removeTrailingSlash || s.pathname === "/") && s.hash === "" && t.removeSingleSlash && (e = e.replace(/\/$/, "")), r && !t.normalizeProtocol && (e = e.replace(/^http:\/\//, "//")), t.stripProtocol && (e = e.replace(/^(?:https?:)?\/\//, "")), e; } n(Koe, "normalizeUrl"); var zoe = ur(ik(), 1), Lv = ur(Xae(), 1), Joe = require("stream"); function Hv(e) { return Object.fromEntries(Object.entries(e).map(([t, r]) => [t.toLowerCase(), r])); } n(Hv, "lowercaseKeys"); var BO = class extends Joe.Readable { static { n(this, "Response"); } statusCode; headers; body; url; constructor({ statusCode: e, headers: t, body: r, url: i }) { if (typeof e != "number") throw new TypeError("Argument `statusCode` should be a number"); if (typeof t != "object") throw new TypeError("Argument `headers` should be an object"); if (!(r instanceof Uint8Array)) throw new TypeError("Argument `body` should be a buffer"); if (typeof i != "string") throw new TypeError("Argument `url` should be a string"); super({ read() { this.push(r), this.push(null); } }), this.statusCode = e, this.headers = Hv(t), this.body = r, this.url = i; } }, X0 = ur(Gae(), 1), Xoe = [ "aborted", "complete", "headers", "httpVersion", "httpVersionMinor", "httpVersionMajor", "method", "rawHeaders", "rawTrailers", "setTimeout", "socket", "statusCode", "statusMessage", "trailers", "url" ]; function Yoe(e, t) { if (t._readableState.autoDestroy) throw new Error("The second stream must have the `autoDestroy` option set to `false`"); let r = /* @__PURE__ */ new Set([...Object.keys(e), ...Xoe]), i = {}; for (let s of r) s in t || (i[s] = { get() { let a = e[s]; return typeof a == "function" ? a.bind(e) : a; }, set(a) { e[s] = a; }, enumerable: !0, configurable: !1 }); return Object.defineProperties(t, i), e.once("aborted", () => { t.destroy(), t.emit("aborted"); }), e.once("close", () => { e.complete && t.readable ? t.once("end", () => { t.emit("close"); }) : t.emit("close"); }), t; } n(Yoe, "mimicResponse"); var Goe = class extends Error { static { n(this, "RequestError2"); } constructor(e) { super(e.message), Object.assign(this, e); } }, Zf = class extends Error { static { n(this, "CacheError2"); } constructor(e) { super(e.message), Object.assign(this, e); } }, Zoe = class { static { n(this, "CacheableRequest"); } constructor(e, t) { this.hooks = /* @__PURE__ */ new Map(), this.request = () => (r, i) => { let s; if (typeof r == "string") s = jv(J0.default.parse(r)), r = {}; else if (r instanceof J0.default.URL) s = jv(J0.default.parse(r.toString())), r = {}; else { let [m, ...h] = (r.path ?? "").split("?"), d = h.length > 0 ? `?${h.join("?")}` : ""; s = jv({ ...r, pathname: m, search: d }); } r = { headers: {}, method: "GET", cache: !0, strictTtl: !1, automaticFailover: !1, ...r, ...tue(s) }, r.headers = Object.fromEntries(Qoe(r.headers).map(([m, h]) => [m.toLowerCase(), h])); let a = new joe.default(), o = Koe(J0.default.format(s), { stripWWW: !1, removeTrailingSlash: !1, stripAuthentication: !1 }), u = `${r.method}:${o}`; r.body && r.method !== void 0 && ["POST", "PATCH", "PUT"].includes(r.method) && (r.body instanceof Dk.default.Readable ? r.cache = !1 : u += `:${qoe.default.createHash("md5").update(r.body).digest("hex")}`); let l = !1, c = !1, f = /* @__PURE__ */ n((m) => { c = !0; let h = !1, d = /* @__PURE__ */ n(() => { }, "requestErrorCallback"), y = new Promise((g) => { d = /* @__PURE__ */ n(() => { h || (h = !0, g()); }, "requestErrorCallback"); }), p = /* @__PURE__ */ n(async (g) => { if (l) { g.status = g.statusCode; let D = Lv.default.fromObject(l.cachePolicy).revalidatedPolicy(m, g); if (!D.modified) { g.resume(), await new Promise((T) => { g.once("end", T); }); let x = NO(D.policy.responseHeaders()); g = new BO({ statusCode: l.statusCode, headers: x, body: l.body, url: l.url }), g.cachePolicy = D.policy, g.fromCache = !0; } } g.fromCache || (g.cachePolicy = new Lv.default(m, g, m), g.fromCache = !1); let b; m.cache && g.cachePolicy.storable() ? (b = eue(g), (async () => { try { let D = zoe.default.buffer(g); await Promise.race([ y, new Promise((B) => g.once("end", B)), new Promise((B) => g.once("close", B)) // eslint-disable-line no-promise-executor-return ]); let x = await D, T = { url: g.url, statusCode: g.fromCache ? l.statusCode : g.statusCode, body: x, cachePolicy: g.cachePolicy.toObject() }, w = m.strictTtl ? g.cachePolicy.timeToLive() : void 0; if (m.maxTtl && (w = w ? Math.min(w, m.maxTtl) : m.maxTtl), this.hooks.size > 0) for (let B of this.hooks.keys()) T = await this.runHook(B, T, g); await this.cache.set(u, T, w); } catch (D) { a.emit("error", new Zf(D)); } })()) : m.cache && l && (async () => { try { await this.cache.delete(u); } catch (D) { a.emit("error", new Zf(D)); } })(), a.emit("response", b ?? g), typeof i == "function" && i(b ?? g); }, "handler"); try { let g = this.cacheRequest(m, p); g.once("error", d), g.once("abort", d), g.once("destroy", d), a.emit("request", g); } catch (g) { a.emit("error", new Goe(g)); } }, "makeRequest"); return (async () => { let m = /* @__PURE__ */ n(async (d) => { await Promise.resolve(); let y = d.cache ? await this.cache.get(u) : void 0; if (typeof y > "u" && !d.forceRefresh) { f(d); return; } let p = Lv.default.fromObject(y.cachePolicy); if (p.satisfiesWithoutRevalidation(d) && !d.forceRefresh) { let g = NO(p.responseHeaders()), b = new BO({ statusCode: y.statusCode, headers: g, body: y.body, url: y.url }); b.cachePolicy = p, b.fromCache = !0, a.emit("response", b), typeof i == "function" && i(b); } else p.satisfiesWithoutRevalidation(d) && Date.now() >= p.timeToLive() && d.forceRefresh ? (await this.cache.delete(u), d.headers = p.revalidationHeaders(d), f(d)) : (l = y, d.headers = p.revalidationHeaders(d), f(d)); }, "get"), h = /* @__PURE__ */ n((d) => a.emit("error", new Zf(d)), "errorHandler"); if (this.cache instanceof X0.default) { let d = this.cache; d.once("error", h), a.on("error", () => d.removeListener("error", h)), a.on("response", () => d.removeListener("error", h)); } try { await m(r); } catch (d) { r.automaticFailover && !c && f(r), a.emit("error", new Zf(d)); } })(), a; }, this.addHook = (r, i) => { this.hooks.has(r) || this.hooks.set(r, i); }, this.removeHook = (r) => this.hooks.delete(r), this.getHook = (r) => this.hooks.get(r), this.runHook = async (r, ...i) => { var s; return (s = this.hooks.get(r)) == null ? void 0 : s(...i); }, t instanceof X0.default ? this.cache = t : typeof t == "string" ? this.cache = new X0.default({ uri: t, namespace: "cacheable-request" }) : this.cache = new X0.default({ store: t, namespace: "cacheable-request" }), this.request = this.request.bind(this), this.cacheRequest = e; } }, Qoe = Object.entries, eue = /* @__PURE__ */ n((e) => { let t = new Dk.PassThrough({ autoDestroy: !1 }); return Yoe(e, t), e.pipe(t); }, "cloneResponse"), tue = /* @__PURE__ */ n((e) => { let t = { ...e }; return t.path = `${e.pathname || "/"}${e.search || ""}`, delete t.pathname, delete t.search, t; }, "urlObjectToRequestOptions"), jv = /* @__PURE__ */ n((e) => ( // If url was parsed by url.parse or new URL: // - hostname will be set // - host will be hostname[:port] // - port will be set if it was explicit in the parsed string // Otherwise, url was from request options: // - hostname or host may be set // - host shall not have port encoded { protocol: e.protocol, auth: e.auth, hostname: e.hostname || e.host || "localhost", port: e.port, pathname: e.pathname, search: e.search } ), "normalizeUrlObject"), NO = /* @__PURE__ */ n((e) => { let t = []; for (let r of Object.keys(e)) t[r.toLowerCase()] = e[r]; return t; }, "convertHeaders"), rue = Zoe, iue = ur(Qae(), 1), sue = ur(ik(), 1), On = /* @__PURE__ */ n((e) => typeof e == "function", "isFunction"), nue = /* @__PURE__ */ n((e) => On(e[Symbol.asyncIterator]), "isAsyncIterable"); async function* aue(e) { let t = e.getReader(); for (; ; ) { let { done: r, value: i } = await t.read(); if (r) break; yield i; } } n(aue, "readStream"); var oue = /* @__PURE__ */ n((e) => { if (nue(e)) return e; if (On(e.getReader)) return aue(e); throw new TypeError("Unsupported data source: Expected either ReadableStream or async iterable."); }, "getStreamIterator"), MO = "abcdefghijklmnopqrstuvwxyz0123456789"; function uue() { let e = 16, t = ""; for (; e--; ) t += MO[Math.random() * MO.length << 0]; return t; } n(uue, "createBoundary"); var RO = /* @__PURE__ */ n((e) => String(e).replace(/\r|\n/g, (t, r, i) => t === "\r" && i[r + 1] !== ` ` || t === ` ` && i[r - 1] !== "\r" ? `\r ` : t), "normalizeValue"), lue = /* @__PURE__ */ n((e) => Object.prototype.toString.call(e).slice(8, -1).toLowerCase(), "getType"); function LO(e) { if (lue(e) !== "object") return !1; let t = Object.getPrototypeOf(e); return t == null ? !0 : (t.constructor && t.constructor.toString()) === Object.toString(); } n(LO, "isPlainObject"); function jO(e, t) { if (typeof t == "string") { for (let [r, i] of Object.entries(e)) if (t.toLowerCase() === r.toLowerCase()) return i; } } n(jO, "getProperty"); var cue = /* @__PURE__ */ n((e) => new Proxy(e, { get: /* @__PURE__ */ n((t, r) => jO(t, r), "get"), has: /* @__PURE__ */ n((t, r) => jO(t, r) !== void 0, "has") }), "proxyHeaders"), Jv = /* @__PURE__ */ n((e) => !!(e && On(e.constructor) && e[Symbol.toStringTag] === "FormData" && On(e.append) && On( e.getAll) && On(e.entries) && On(e[Symbol.iterator])), "isFormData"), qO = /* @__PURE__ */ n((e) => String(e).replace(/\r/g, "%0D").replace( /\n/g, "%0A").replace(/"/g, "%22"), "escapeName"), wo = /* @__PURE__ */ n((e) => !!(e && typeof e == "object" && On(e.constructor) && e[Symbol. toStringTag] === "File" && On(e.stream) && e.name != null), "isFile"), Kf = /* @__PURE__ */ n(function(e, t, r, i, s) { if (i === "m") throw new TypeError("Private method is not writable"); if (i === "a" && !s) throw new TypeError("Private accessor was defined without a setter"); if (typeof t == "function" ? e !== t || !s : !t.has(e)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); return i === "a" ? s.call(e, r) : s ? s.value = r : t.set(e, r), r; }, "__classPrivateFieldSet"), Ot = /* @__PURE__ */ n(function(e, t, r, i) { if (r === "a" && !i) throw new TypeError("Private accessor was defined without a getter"); if (typeof t == "function" ? e !== t || !i : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); return r === "m" ? i : r === "a" ? i.call(e) : i ? i.value : t.get(e); }, "__classPrivateFieldGet"), zf, Ea, Jf, Y0, Xf, Ao, Yf, Gf, G0, qv, UO, fue = { enableAdditionalHeaders: !1 }, Z0 = { writable: !1, configurable: !1 }, due = class { static { n(this, "FormDataEncoder"); } constructor(e, t, r) { if (zf.add(this), Ea.set(this, `\r `), Jf.set(this, void 0), Y0.set(this, void 0), Xf.set(this, "-".repeat(2)), Ao.set(this, new TextEncoder()), Yf.set(this, void 0), Gf.set(this, void 0), G0.set(this, void 0), !Jv(e)) throw new TypeError("Expected first argument to be a FormData instance."); let i; if (LO(t) ? r = t : i = t, i || (i = uue()), typeof i != "string") throw new TypeError("Expected boundary argument to be a string."); if (r && !LO(r)) throw new TypeError("Expected options argument to be an object."); Kf(this, Gf, Array.from(e.entries()), "f"), Kf(this, G0, { ...fue, ...r }, "f"), Kf(this, Jf, Ot(this, Ao, "f").encode(Ot(this, Ea, "f")), "f"), Kf(this, Y0, Ot(this, Jf, "f").byteLength, "f"), this.boundary = `form-data-boundary-${i}`, this.contentType = `multipart/form-d\ ata; boundary=${this.boundary}`, Kf(this, Yf, Ot(this, Ao, "f").encode(`${Ot(this, Xf, "f")}${this.boundary}${Ot(this, Xf, "f")}${Ot(this, Ea, "f").repeat(2)}`), "f"); let s = { "Content-Type": this.contentType }, a = Ot(this, zf, "m", UO).call(this); a && (this.contentLength = a, s["Content-Length"] = a), this.headers = cue(Object.freeze(s)), Object.defineProperties(this, { boundary: Z0, contentType: Z0, contentLength: Z0, headers: Z0 }); } getContentLength() { return this.contentLength == null ? void 0 : Number(this.contentLength); } *values() { for (let [e, t] of Ot(this, Gf, "f")) { let r = wo(t) ? t : Ot(this, Ao, "f").encode(RO(t)); yield Ot(this, zf, "m", qv).call(this, e, r), yield r, yield Ot(this, Jf, "f"); } yield Ot(this, Yf, "f"); } async *encode() { for (let e of this.values()) wo(e) ? yield* oue(e.stream()) : yield e; } [(Ea = /* @__PURE__ */ new WeakMap(), Jf = /* @__PURE__ */ new WeakMap(), Y0 = /* @__PURE__ */ new WeakMap(), Xf = /* @__PURE__ */ new WeakMap(), Ao = /* @__PURE__ */ new WeakMap(), Yf = /* @__PURE__ */ new WeakMap(), Gf = /* @__PURE__ */ new WeakMap(), G0 = /* @__PURE__ */ new WeakMap(), zf = /* @__PURE__ */ new WeakSet(), qv = /* @__PURE__ */ n(function(t, r) { let i = ""; i += `${Ot(this, Xf, "f")}${this.boundary}${Ot(this, Ea, "f")}`, i += `Content-Disposition: form-data; name="${qO(t)}"`, wo(r) && (i += `; filename="${qO(r.name)}"${Ot(this, Ea, "f")}`, i += `Content-Type: ${r.type || "application/octet-stream"}`); let s = wo(r) ? r.size : r.byteLength; return Ot(this, G0, "f").enableAdditionalHeaders === !0 && s != null && !isNaN(s) && (i += `${Ot(this, Ea, "f")}Content-Length: ${wo(r) ? r.size : r.byteLength}`), Ot(this, Ao, "f").encode(`${i}${Ot(this, Ea, "f").repeat(2)}`); }, "_FormDataEncoder_getFieldHeader2"), UO = /* @__PURE__ */ n(function() { let t = 0; for (let [r, i] of Ot(this, Gf, "f")) { let s = wo(i) ? i : Ot(this, Ao, "f").encode(RO(i)), a = wo(s) ? s.size : s.byteLength; if (a == null || isNaN(a)) return; t += Ot(this, zf, "m", qv).call(this, r, s).byteLength, t += a, t += Ot(this, Y0, "f"); } return String(t + Ot(this, Yf, "f").byteLength); }, "_FormDataEncoder_getContentLength2"), Symbol.iterator)]() { return this.values(); } [Symbol.asyncIterator]() { return this.encode(); } }, pue = require("buffer"), hue = require("util"); function vk(e) { return U.nodeStream(e) && U.function_(e.getBoundary); } n(vk, "isFormData2"); async function mue(e, t) { if (t && "content-length" in t) return Number(t["content-length"]); if (!e) return 0; if (U.string(e)) return pue.Buffer.byteLength(e); if (U.buffer(e)) return e.length; if (vk(e)) return (0, hue.promisify)(e.getLength.bind(e))(); } n(mue, "getBodySize"); function xk(e, t, r) { let i = {}; for (let s of r) { let a = /* @__PURE__ */ n((...o) => { t.emit(s, ...o); }, "eventFunction"); i[s] = a, e.on(s, a); } return () => { for (let [s, a] of Object.entries(i)) e.off(s, a); }; } n(xk, "proxyEvents"); var yue = ur(require("net"), 1); function gue() { let e = []; return { once(t, r, i) { t.once(r, i), e.push({ origin: t, event: r, fn: i }); }, unhandleAll() { for (let t of e) { let { origin: r, event: i, fn: s } = t; r.removeListener(i, s); } e.length = 0; } }; } n(gue, "unhandle"); var $O = Symbol("reentry"), bue = /* @__PURE__ */ n(() => { }, "noop"), Ek = class extends Error { static { n(this, "TimeoutError2"); } constructor(e, t) { super(`Timeout awaiting '${t}' for ${e}ms`), Object.defineProperty(this, "event", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "code", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.name = "TimeoutError", this.code = "ETIMEDOUT"; } }; function Due(e, t, r) { if ($O in e) return bue; e[$O] = !0; let i = [], { once: s, unhandleAll: a } = gue(), o = /* @__PURE__ */ n((p, g, b) => { var D; let x = setTimeout(g, p, p, b); (D = x.unref) == null || D.call(x); let T = /* @__PURE__ */ n(() => { clearTimeout(x); }, "cancel"); return i.push(T), T; }, "addTimeout"), { host: u, hostname: l } = r, c = /* @__PURE__ */ n((p, g) => { e.destroy(new Ek(p, g)); }, "timeoutHandler"), f = /* @__PURE__ */ n(() => { for (let p of i) p(); a(); }, "cancelTimeouts"); if (e.once("error", (p) => { if (f(), e.listenerCount("error") === 0) throw p; }), typeof t.request < "u") { let p = o(t.request, c, "request"); s(e, "response", (g) => { s(g, "end", p); }); } if (typeof t.socket < "u") { let { socket: p } = t, g = /* @__PURE__ */ n(() => { c(p, "socket"); }, "socketTimeoutHandler"); e.setTimeout(p, g), i.push(() => { e.removeListener("timeout", g); }); } let m = typeof t.lookup < "u", h = typeof t.connect < "u", d = typeof t.secureConnect < "u", y = typeof t.send < "u"; return (m || h || d || y) && s(e, "socket", (p) => { let { socketPath: g } = e; if (p.connecting) { let b = !!(g ?? yue.default.isIP(l ?? u ?? "") !== 0); if (m && !b && typeof p.address().address > "u") { let D = o(t.lookup, c, "lookup"); s(p, "lookup", D); } if (h) { let D = /* @__PURE__ */ n(() => o(t.connect, c, "connect"), "timeConnect"); b ? s(p, "connect", D()) : s(p, "lookup", (x) => { x === null && s(p, "connect", D()); }); } d && r.protocol === "https:" && s(p, "connect", () => { let D = o(t.secureConnect, c, "secureConnect"); s(p, "secureConnect", D); }); } if (y) { let b = /* @__PURE__ */ n(() => o(t.send, c, "send"), "timeRequest"); p.connecting ? s(p, "connect", () => { s(e, "upload-complete", b()); }) : s(e, "upload-complete", b()); } }), typeof t.response < "u" && s(e, "upload-complete", () => { let p = o(t.response, c, "response"); s(e, "response", p); }), typeof t.read < "u" && s(e, "response", (p) => { let g = o(t.read, c, "read"); s(p, "end", g); }), f; } n(Due, "timedOut"); function vue(e) { e = e; let t = { protocol: e.protocol, hostname: U.string(e.hostname) && e.hostname.startsWith("[") ? e.hostname.slice(1, -1) : e.hostname, host: e.host, hash: e.hash, search: e.search, pathname: e.pathname, href: e.href, path: `${e.pathname || ""}${e.search || ""}` }; return U.string(e.port) && e.port.length > 0 && (t.port = Number(e.port)), (e.username || e.password) && (t.auth = `${e.username || ""}:${e. password || ""}`), t; } n(vue, "urlToOptions"); var xue = class { static { n(this, "WeakableMap"); } constructor() { Object.defineProperty(this, "weakMap", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "map", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.weakMap = /* @__PURE__ */ new WeakMap(), this.map = /* @__PURE__ */ new Map(); } set(e, t) { typeof e == "object" ? this.weakMap.set(e, t) : this.map.set(e, t); } get(e) { return typeof e == "object" ? this.weakMap.get(e) : this.map.get(e); } has(e) { return typeof e == "object" ? this.weakMap.has(e) : this.map.has(e); } }, Eue = /* @__PURE__ */ n(({ attemptCount: e, retryOptions: t, error: r, retryAfter: i, computedValue: s }) => { if (r.name === "RetryError") return 1; if (e > t.limit) return 0; let a = t.methods.includes(r.options.method), o = t.errorCodes.includes(r.code), u = r.response && t.statusCodes.includes(r.response.statusCode); if (!a || !o && !u) return 0; if (r.response) { if (i) return i > s ? 0 : i; if (r.response.statusCode === 413) return 0; } let l = Math.random() * t.noise; return Math.min(2 ** (e - 1) * 1e3, t.backoffLimit) + l; }, "calculateRetryDelay"), Sue = Eue, Tue = ur(require("process"), 1), Uv = require("util"), _o = require("url"), Cue = require("tls"), wue = ur( require("http"), 1), Aue = ur(require("https"), 1), xl = require("dns"), $v = require("util"), _ue = ur(require("os"), 1), { Resolver: VO } = xl. promises, vl = Symbol("cacheableLookupCreateConnection"), Vv = Symbol("cacheableLookupInstance"), WO = Symbol("expires"), Pue = typeof xl. ALL == "number", HO = /* @__PURE__ */ n((e) => { if (!(e && typeof e.createConnection == "function")) throw new Error("Expected an Agent instance as the first argument"); }, "verifyAgent"), Fue = /* @__PURE__ */ n((e) => { for (let t of e) t.family !== 6 && (t.address = `::ffff:${t.address}`, t.family = 6); }, "map4to6"), KO = /* @__PURE__ */ n(() => { let e = !1, t = !1; for (let r of Object.values(_ue.default.networkInterfaces())) for (let i of r) if (!i.internal && (i.family === "IPv6" ? t = !0 : e = !0, e && t)) return { has4: e, has6: t }; return { has4: e, has6: t }; }, "getIfaceInfo"), Iue = /* @__PURE__ */ n((e) => Symbol.iterator in e, "isIterable"), Q0 = /* @__PURE__ */ n((e) => e.catch((t) => { if (t.code === "ENODATA" || t.code === "ENOTFOUND" || t.code === "ENOENT") return []; throw t; }), "ignoreNoResultErrors"), zO = { ttl: !0 }, Oue = { all: !0 }, kue = { all: !0, family: 4 }, Bue = { all: !0, family: 6 }, Nue = class { static { n(this, "CacheableLookup"); } constructor({ cache: e = /* @__PURE__ */ new Map(), maxTtl: t = 1 / 0, fallbackDuration: r = 3600, errorTtl: i = 0.15, resolver: s = new VO(), lookup: a = xl.lookup } = {}) { if (this.maxTtl = t, this.errorTtl = i, this._cache = e, this._resolver = s, this._dnsLookup = a && (0, $v.promisify)(a), this.stats = { cache: 0, query: 0 }, this._resolver instanceof VO ? (this._resolve4 = this._resolver.resolve4.bind(this._resolver), this._resolve6 = this._resolver.resolve6. bind(this._resolver)) : (this._resolve4 = (0, $v.promisify)(this._resolver.resolve4.bind(this._resolver)), this._resolve6 = (0, $v.promisify)( this._resolver.resolve6.bind(this._resolver))), this._iface = KO(), this._pending = {}, this._nextRemovalTime = !1, this._hostnamesToFallback = /* @__PURE__ */ new Set(), this.fallbackDuration = r, r > 0) { let o = setInterval(() => { this._hostnamesToFallback.clear(); }, r * 1e3); o.unref && o.unref(), this._fallbackInterval = o; } this.lookup = this.lookup.bind(this), this.lookupAsync = this.lookupAsync.bind(this); } set servers(e) { this.clear(), this._resolver.setServers(e); } get servers() { return this._resolver.getServers(); } lookup(e, t, r) { if (typeof t == "function" ? (r = t, t = {}) : typeof t == "number" && (t = { family: t }), !r) throw new Error("Callback must be a function."); this.lookupAsync(e, t).then((i) => { t.all ? r(null, i) : r(null, i.address, i.family, i.expires, i.ttl, i.source); }, r); } async lookupAsync(e, t = {}) { typeof t == "number" && (t = { family: t }); let r = await this.query(e); if (t.family === 6) { let i = r.filter((s) => s.family === 6); t.hints & xl.V4MAPPED && (Pue && t.hints & xl.ALL || i.length === 0) ? Fue(r) : r = i; } else t.family === 4 && (r = r.filter((i) => i.family === 4)); if (t.hints & xl.ADDRCONFIG) { let { _iface: i } = this; r = r.filter((s) => s.family === 6 ? i.has6 : i.has4); } if (r.length === 0) { let i = new Error(`cacheableLookup ENOTFOUND ${e}`); throw i.code = "ENOTFOUND", i.hostname = e, i; } return t.all ? r : r[0]; } async query(e) { let t = "cache", r = await this._cache.get(e); if (r && this.stats.cache++, !r) { let i = this._pending[e]; if (i) this.stats.cache++, r = await i; else { t = "query"; let s = this.queryAndCache(e); this._pending[e] = s, this.stats.query++; try { r = await s; } finally { delete this._pending[e]; } } } return r = r.map((i) => ({ ...i, source: t })), r; } async _resolve(e) { let [t, r] = await Promise.all([ Q0(this._resolve4(e, zO)), Q0(this._resolve6(e, zO)) ]), i = 0, s = 0, a = 0, o = Date.now(); for (let u of t) u.family = 4, u.expires = o + u.ttl * 1e3, i = Math.max(i, u.ttl); for (let u of r) u.family = 6, u.expires = o + u.ttl * 1e3, s = Math.max(s, u.ttl); return t.length > 0 ? r.length > 0 ? a = Math.min(i, s) : a = i : a = s, { entries: [ ...t, ...r ], cacheTtl: a }; } async _lookup(e) { try { let [t, r] = await Promise.all([ // Passing {all: true} doesn't return all IPv4 and IPv6 entries. // See https://github.com/szmarczak/cacheable-lookup/issues/42 Q0(this._dnsLookup(e, kue)), Q0(this._dnsLookup(e, Bue)) ]); return { entries: [ ...t, ...r ], cacheTtl: 0 }; } catch { return { entries: [], cacheTtl: 0 }; } } async _set(e, t, r) { if (this.maxTtl > 0 && r > 0) { r = Math.min(r, this.maxTtl) * 1e3, t[WO] = Date.now() + r; try { await this._cache.set(e, t, r); } catch (i) { this.lookupAsync = async () => { let s = new Error("Cache Error. Please recreate the CacheableLookup instance."); throw s.cause = i, s; }; } Iue(this._cache) && this._tick(r); } } async queryAndCache(e) { if (this._hostnamesToFallback.has(e)) return this._dnsLookup(e, Oue); let t = await this._resolve(e); t.entries.length === 0 && this._dnsLookup && (t = await this._lookup(e), t.entries.length !== 0 && this.fallbackDuration > 0 && this._hostnamesToFallback. add(e)); let r = t.entries.length === 0 ? this.errorTtl : t.cacheTtl; return await this._set(e, t.entries, r), t.entries; } _tick(e) { let t = this._nextRemovalTime; (!t || e < t) && (clearTimeout(this._removalTimeout), this._nextRemovalTime = e, this._removalTimeout = setTimeout(() => { this._nextRemovalTime = !1; let r = 1 / 0, i = Date.now(); for (let [s, a] of this._cache) { let o = a[WO]; i >= o ? this._cache.delete(s) : o < r && (r = o); } r !== 1 / 0 && this._tick(r - i); }, e), this._removalTimeout.unref && this._removalTimeout.unref()); } install(e) { if (HO(e), vl in e) throw new Error("CacheableLookup has been already installed"); e[vl] = e.createConnection, e[Vv] = this, e.createConnection = (t, r) => ("lookup" in t || (t.lookup = this.lookup), e[vl](t, r)); } uninstall(e) { if (HO(e), e[vl]) { if (e[Vv] !== this) throw new Error("The agent is not owned by this CacheableLookup instance"); e.createConnection = e[vl], delete e[vl], delete e[Vv]; } } updateInterfaceInfo() { let { _iface: e } = this; this._iface = KO(), (e.has4 && !this._iface.has4 || e.has6 && !this._iface.has6) && this._cache.clear(); } clear(e) { if (e) { this._cache.delete(e); return; } this._cache.clear(); } }, Mue = ur(coe(), 1); function Rue(e) { let t = [], r = e.split(","); for (let i of r) { let [s, ...a] = i.split(";"), o = s.trim(); if (o[0] !== "<" || o[o.length - 1] !== ">") throw new Error(`Invalid format of the Link header reference: ${o}`); let u = o.slice(1, -1), l = {}; if (a.length === 0) throw new Error(`Unexpected end of Link header parameters: ${a.join(";")}`); for (let c of a) { let f = c.trim(), m = f.indexOf("="); if (m === -1) throw new Error(`Failed to parse Link header: ${e}`); let h = f.slice(0, m).trim(), d = f.slice(m + 1).trim(); l[h] = d; } t.push({ reference: u, parameters: l }); } return t; } n(Rue, "parseLinkHeader"); var [JO, Lue] = Tue.default.versions.node.split(".").map(Number); function jue(e) { for (let t in e) { let r = e[t]; ee.any([U.string, U.number, U.boolean, U.null_, U.undefined], r); } } n(jue, "validateSearchParameters"); var que = /* @__PURE__ */ new Map(), em, Uue = /* @__PURE__ */ n(() => em || (em = new Nue(), em), "getGlobalDnsCache"), $ue = { request: void 0, agent: { http: void 0, https: void 0, http2: void 0 }, h2session: void 0, decompress: !0, timeout: { connect: void 0, lookup: void 0, read: void 0, request: void 0, response: void 0, secureConnect: void 0, send: void 0, socket: void 0 }, prefixUrl: "", body: void 0, form: void 0, json: void 0, cookieJar: void 0, ignoreInvalidCookies: !1, searchParams: void 0, dnsLookup: void 0, dnsCache: void 0, context: {}, hooks: { init: [], beforeRequest: [], beforeError: [], beforeRedirect: [], beforeRetry: [], afterResponse: [] }, followRedirect: !0, maxRedirects: 10, cache: void 0, throwHttpErrors: !0, username: "", password: "", http2: !1, allowGetBody: !1, headers: { "user-agent": "got (https://github.com/sindresorhus/got)" }, methodRewriting: !1, dnsLookupIpVersion: void 0, parseJson: JSON.parse, stringifyJson: JSON.stringify, retry: { limit: 2, methods: [ "GET", "PUT", "HEAD", "DELETE", "OPTIONS", "TRACE" ], statusCodes: [ 408, 413, 429, 500, 502, 503, 504, 521, 522, 524 ], errorCodes: [ "ETIMEDOUT", "ECONNRESET", "EADDRINUSE", "ECONNREFUSED", "EPIPE", "ENOTFOUND", "ENETUNREACH", "EAI_AGAIN" ], maxRetryAfter: void 0, calculateDelay: /* @__PURE__ */ n(({ computedValue: e }) => e, "calculateDelay"), backoffLimit: Number.POSITIVE_INFINITY, noise: 100 }, localAddress: void 0, method: "GET", createConnection: void 0, cacheOptions: { shared: void 0, cacheHeuristic: void 0, immutableMinTimeToLive: void 0, ignoreCargoCult: void 0 }, https: { alpnProtocols: void 0, rejectUnauthorized: void 0, checkServerIdentity: void 0, certificateAuthority: void 0, key: void 0, certificate: void 0, passphrase: void 0, pfx: void 0, ciphers: void 0, honorCipherOrder: void 0, minVersion: void 0, maxVersion: void 0, signatureAlgorithms: void 0, tlsSessionLifetime: void 0, dhparam: void 0, ecdhCurve: void 0, certificateRevocationLists: void 0 }, encoding: void 0, resolveBodyOnly: !1, isStream: !1, responseType: "text", url: void 0, pagination: { transform(e) { return e.request.options.responseType === "json" ? e.body : JSON.parse(e.body); }, paginate({ response: e }) { let t = e.headers.link; if (typeof t != "string" || t.trim() === "") return !1; let i = Rue(t).find((s) => s.parameters.rel === "next" || s.parameters.rel === '"next"'); return i ? { url: new _o.URL(i.reference, e.url) } : !1; }, filter: /* @__PURE__ */ n(() => !0, "filter"), shouldContinue: /* @__PURE__ */ n(() => !0, "shouldContinue"), countLimit: Number.POSITIVE_INFINITY, backoff: 0, requestLimit: 1e4, stackAllItems: !1 }, setHost: !0, maxHeaderSize: void 0, signal: void 0, enableUnixSockets: !0 }, Vue = /* @__PURE__ */ n((e) => { let { hooks: t, retry: r } = e, i = { ...e, context: { ...e.context }, cacheOptions: { ...e.cacheOptions }, https: { ...e.https }, agent: { ...e.agent }, headers: { ...e.headers }, retry: { ...r, errorCodes: [...r.errorCodes], methods: [...r.methods], statusCodes: [...r.statusCodes] }, timeout: { ...e.timeout }, hooks: { init: [...t.init], beforeRequest: [...t.beforeRequest], beforeError: [...t.beforeError], beforeRedirect: [...t.beforeRedirect], beforeRetry: [...t.beforeRetry], afterResponse: [...t.afterResponse] }, searchParams: e.searchParams ? new _o.URLSearchParams(e.searchParams) : void 0, pagination: { ...e.pagination } }; return i.url !== void 0 && (i.prefixUrl = ""), i; }, "cloneInternals"), Wue = /* @__PURE__ */ n((e) => { let { hooks: t, retry: r } = e, i = { ...e }; return U.object(e.context) && (i.context = { ...e.context }), U.object(e.cacheOptions) && (i.cacheOptions = { ...e.cacheOptions }), U.object( e.https) && (i.https = { ...e.https }), U.object(e.cacheOptions) && (i.cacheOptions = { ...i.cacheOptions }), U.object(e.agent) && (i.agent = { ...e.agent }), U.object(e.headers) && (i.headers = { ...e.headers }), U.object(r) && (i.retry = { ...r }, U.array(r.errorCodes) && (i. retry.errorCodes = [...r.errorCodes]), U.array(r.methods) && (i.retry.methods = [...r.methods]), U.array(r.statusCodes) && (i.retry.statusCodes = [...r.statusCodes])), U.object(e.timeout) && (i.timeout = { ...e.timeout }), U.object(t) && (i.hooks = { ...t }, U.array(t.init) && (i.hooks.init = [...t.init]), U.array(t.beforeRequest) && (i.hooks.beforeRequest = [...t.beforeRequest]), U.array( t.beforeError) && (i.hooks.beforeError = [...t.beforeError]), U.array(t.beforeRedirect) && (i.hooks.beforeRedirect = [...t.beforeRedirect]), U.array(t.beforeRetry) && (i.hooks.beforeRetry = [...t.beforeRetry]), U.array(t.afterResponse) && (i.hooks.afterResponse = [...t.afterResponse])), U.object(e.pagination) && (i.pagination = { ...e.pagination }), i; }, "cloneRaw"), Hue = /* @__PURE__ */ n((e) => { let t = [e.timeout.socket, e.timeout.connect, e.timeout.lookup, e.timeout.request, e.timeout.secureConnect].filter((r) => typeof r == "n\ umber"); if (t.length > 0) return Math.min(...t); }, "getHttp2TimeoutOption"), XO = /* @__PURE__ */ n((e, t, r) => { var i; let s = (i = e.hooks) == null ? void 0 : i.init; if (s) for (let a of s) a(t, r); }, "init"), kn = class { static { n(this, "Options"); } constructor(e, t, r) { if (Object.defineProperty(this, "_unixOptions", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_internals", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_merging", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_init", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), ee.any([U.string, U.urlInstance, U.object, U.undefined], e), ee.any([U.object, U.undefined], t), ee.any([U.object, U.undefined], r), e instanceof kn || t instanceof kn) throw new TypeError("The defaults must be passed as the third argument"); this._internals = Vue(r?._internals ?? r ?? $ue), this._init = [...r?._init ?? []], this._merging = !1, this._unixOptions = void 0; try { if (U.plainObject(e)) try { this.merge(e), this.merge(t); } finally { this.url = e.url; } else try { this.merge(t); } finally { if (t?.url !== void 0) if (e === void 0) this.url = t.url; else throw new TypeError("The `url` option is mutually exclusive with the `input` argument"); else e !== void 0 && (this.url = e); } } catch (i) { throw i.options = this, i; } } merge(e) { if (e) { if (e instanceof kn) { for (let t of e._init) this.merge(t); return; } e = Wue(e), XO(this, e, this), XO(e, e, this), this._merging = !0, "isStream" in e && (this.isStream = e.isStream); try { let t = !1; for (let r in e) if (!(r === "mutableDefaults" || r === "handlers") && r !== "url") { if (!(r in this)) throw new Error(`Unexpected option: ${r}`); this[r] = e[r], t = !0; } t && this._init.push(e); } finally { this._merging = !1; } } } /** Custom request function. The main purpose of this is to [support HTTP2 using a wrapper](https://github.com/szmarczak/http2-wrapper). @default http.request | https.request */ get request() { return this._internals.request; } set request(e) { ee.any([U.function_, U.undefined], e), this._internals.request = e; } /** An object representing `http`, `https` and `http2` keys for [`http.Agent`](https://nodejs.org/api/http.html#http_class_http_agent), [`https.Agent`](https://nodejs.org/api/https.html#https_class_https_agent) and [`http2wrapper.Agent`](https://github.com/szmarczak/http2-wrapper#new-http2agentoptions) instance. This is necessary because a request to one protocol might redirect to another. In such a scenario, Got will switch over to the right protocol agent for you. If a key is not present, it will default to a global agent. @example ``` import got from 'got'; import HttpAgent from 'agentkeepalive'; const {HttpsAgent} = HttpAgent; await got('https://sindresorhus.com', { agent: { http: new HttpAgent(), https: new HttpsAgent() } }); ``` */ get agent() { return this._internals.agent; } set agent(e) { ee.plainObject(e); for (let t in e) { if (!(t in this._internals.agent)) throw new TypeError(`Unexpected agent option: ${t}`); ee.any([U.object, U.undefined], e[t]); } this._merging ? Object.assign(this._internals.agent, e) : this._internals.agent = { ...e }; } get h2session() { return this._internals.h2session; } set h2session(e) { this._internals.h2session = e; } /** Decompress the response automatically. This will set the `accept-encoding` header to `gzip, deflate, br` unless you set it yourself. If this is disabled, a compressed response is returned as a `Buffer`. This may be useful if you want to handle decompression yourself or stream the raw compressed data. @default true */ get decompress() { return this._internals.decompress; } set decompress(e) { ee.boolean(e), this._internals.decompress = e; } /** Milliseconds to wait for the server to end the response before aborting the request with `got.TimeoutError` error (a.k.a. `request` property). By default, there's no timeout. This also accepts an `object` with the following fields to constrain the duration of each phase of the request lifecycle: - `lookup` starts when a socket is assigned and ends when the hostname has been resolved. Does not apply when using a Unix domain socket. - `connect` starts when `lookup` completes (or when the socket is assigned if lookup does not apply to the request) and ends when the socket is connected. - `secureConnect` starts when `connect` completes and ends when the handshaking process completes (HTTPS only). - `socket` starts when the socket is connected. See [request.setTimeout](https://nodejs.org/api/http.html#http_request_settimeout_timeout_callback). - `response` starts when the request has been written to the socket and ends when the response headers are received. - `send` starts when the socket is connected and ends with the request has been written to the socket. - `request` starts when the request is initiated and ends when the response's end event fires. */ get timeout() { return this._internals.timeout; } set timeout(e) { ee.plainObject(e); for (let t in e) { if (!(t in this._internals.timeout)) throw new Error(`Unexpected timeout option: ${t}`); ee.any([U.number, U.undefined], e[t]); } this._merging ? Object.assign(this._internals.timeout, e) : this._internals.timeout = { ...e }; } /** When specified, `prefixUrl` will be prepended to `url`. The prefix can be any valid URL, either relative or absolute. A trailing slash `/` is optional - one will be added automatically. __Note__: `prefixUrl` will be ignored if the `url` argument is a URL instance. __Note__: Leading slashes in `input` are disallowed when using this option to enforce consistency and avoid confusion. For example, when the prefix URL is `https://example.com/foo` and the input is `/bar`, there's ambiguity whether the resulting URL would become `https://example.com/foo/bar` or `https://example.com/bar`. The latter is used by browsers. __Tip__: Useful when used with `got.extend()` to create niche-specific Got instances. __Tip__: You can change `prefixUrl` using hooks as long as the URL still includes the `prefixUrl`. If the URL doesn't include it anymore, it will throw. @example ``` import got from 'got'; await got('unicorn', {prefixUrl: 'https://cats.com'}); //=> 'https://cats.com/unicorn' const instance = got.extend({ prefixUrl: 'https://google.com' }); await instance('unicorn', { hooks: { beforeRequest: [ options => { options.prefixUrl = 'https://cats.com'; } ] } }); //=> 'https://cats.com/unicorn' ``` */ get prefixUrl() { return this._internals.prefixUrl; } set prefixUrl(e) { if (ee.any([U.string, U.urlInstance], e), e === "") { this._internals.prefixUrl = ""; return; } if (e = e.toString(), e.endsWith("/") || (e += "/"), this._internals.prefixUrl && this._internals.url) { let { href: t } = this._internals.url; this._internals.url.href = e + t.slice(this._internals.prefixUrl.length); } this._internals.prefixUrl = e; } /** __Note #1__: The `body` option cannot be used with the `json` or `form` option. __Note #2__: If you provide this option, `got.stream()` will be read-only. __Note #3__: If you provide a payload with the `GET` or `HEAD` method, it will throw a `TypeError` unless the method is `GET` and the `allowGetBody` option is set to `true`. __Note #4__: This option is not enumerable and will not be merged with the instance defaults. The `content-length` header will be automatically set if `body` is a `string` / `Buffer` / [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) / [`form-data` instance](https://github.com/form-data/form-data), and `content-length` and `transfer-encoding` are not manually set in `options.headers`. Since Got 12, the `content-length` is not automatically set when `body` is a `fs.createReadStream`. */ get body() { return this._internals.body; } set body(e) { ee.any([U.string, U.buffer, U.nodeStream, U.generator, U.asyncGenerator, Jv, U.undefined], e), U.nodeStream(e) && ee.truthy(e.readable), e !== void 0 && (ee.undefined(this._internals.form), ee.undefined(this._internals.json)), this._internals.body = e; } /** The form body is converted to a query string using [`(new URLSearchParams(object)).toString()`](https://nodejs.org/api/url.html#url_constructor_new_urlsearchparams_obj). If the `Content-Type` header is not present, it will be set to `application/x-www-form-urlencoded`. __Note #1__: If you provide this option, `got.stream()` will be read-only. __Note #2__: This option is not enumerable and will not be merged with the instance defaults. */ get form() { return this._internals.form; } set form(e) { ee.any([U.plainObject, U.undefined], e), e !== void 0 && (ee.undefined(this._internals.body), ee.undefined(this._internals.json)), this. _internals.form = e; } /** JSON body. If the `Content-Type` header is not set, it will be set to `application/json`. __Note #1__: If you provide this option, `got.stream()` will be read-only. __Note #2__: This option is not enumerable and will not be merged with the instance defaults. */ get json() { return this._internals.json; } set json(e) { e !== void 0 && (ee.undefined(this._internals.body), ee.undefined(this._internals.form)), this._internals.json = e; } /** The URL to request, as a string, a [`https.request` options object](https://nodejs.org/api/https.html#https_https_request_options_callback), or a [WHATWG `URL`](https://nodejs.org/api/url.html#url_class_url). Properties from `options` will override properties in the parsed `url`. If no protocol is specified, it will throw a `TypeError`. __Note__: The query string is **not** parsed as search params. @example ``` await got('https://example.com/?query=a b'); //=> https://example.com/?query=a%20b await got('https://example.com/', {searchParams: {query: 'a b'}}); //=> https://example.com/?query=a+b // The query string is overridden by `searchParams` await got('https://example.com/?query=a b', {searchParams: {query: 'a b'}}); //=> https://example.com/?query=a+b ``` */ get url() { return this._internals.url; } set url(e) { if (ee.any([U.string, U.urlInstance, U.undefined], e), e === void 0) { this._internals.url = void 0; return; } if (U.string(e) && e.startsWith("/")) throw new Error("`url` must not start with a slash"); let t = `${this.prefixUrl}${e.toString()}`, r = new _o.URL(t); if (this._internals.url = r, decodeURI(t), r.protocol === "unix:" && (r.href = `http://unix${r.pathname}${r.search}`), r.protocol !== "\ http:" && r.protocol !== "https:") { let i = new Error(`Unsupported protocol: ${r.protocol}`); throw i.code = "ERR_UNSUPPORTED_PROTOCOL", i; } if (this._internals.username && (r.username = this._internals.username, this._internals.username = ""), this._internals.password && (r. password = this._internals.password, this._internals.password = ""), this._internals.searchParams && (r.search = this._internals.searchParams. toString(), this._internals.searchParams = void 0), r.hostname === "unix") { if (!this._internals.enableUnixSockets) throw new Error("Using UNIX domain sockets but option `enableUnixSockets` is not enabled"); let i = /(?.+?):(?.+)/.exec(`${r.pathname}${r.search}`); if (i?.groups) { let { socketPath: s, path: a } = i.groups; this._unixOptions = { socketPath: s, path: a, host: "" }; } else this._unixOptions = void 0; return; } this._unixOptions = void 0; } /** Cookie support. You don't have to care about parsing or how to store them. __Note__: If you provide this option, `options.headers.cookie` will be overridden. */ get cookieJar() { return this._internals.cookieJar; } set cookieJar(e) { if (ee.any([U.object, U.undefined], e), e === void 0) { this._internals.cookieJar = void 0; return; } let { setCookie: t, getCookieString: r } = e; ee.function_(t), ee.function_(r), t.length === 4 && r.length === 0 ? (t = (0, Uv.promisify)(t.bind(e)), r = (0, Uv.promisify)(r.bind(e)), this._internals.cookieJar = { setCookie: t, getCookieString: r }) : this._internals.cookieJar = e; } /** You can abort the `request` using [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController). *Requires Node.js 16 or later.* @example ``` import got from 'got'; const abortController = new AbortController(); const request = got('https://httpbin.org/anything', { signal: abortController.signal }); setTimeout(() => { abortController.abort(); }, 100); ``` */ // TODO: Replace `any` with `AbortSignal` when targeting Node 16. get signal() { return this._internals.signal; } // TODO: Replace `any` with `AbortSignal` when targeting Node 16. set signal(e) { ee.object(e), this._internals.signal = e; } /** Ignore invalid cookies instead of throwing an error. Only useful when the `cookieJar` option has been set. Not recommended. @default false */ get ignoreInvalidCookies() { return this._internals.ignoreInvalidCookies; } set ignoreInvalidCookies(e) { ee.boolean(e), this._internals.ignoreInvalidCookies = e; } /** Query string that will be added to the request URL. This will override the query string in `url`. If you need to pass in an array, you can do it using a `URLSearchParams` instance. @example ``` import got from 'got'; const searchParams = new URLSearchParams([['key', 'a'], ['key', 'b']]); await got('https://example.com', {searchParams}); console.log(searchParams.toString()); //=> 'key=a&key=b' ``` */ get searchParams() { return this._internals.url ? this._internals.url.searchParams : (this._internals.searchParams === void 0 && (this._internals.searchParams = new _o.URLSearchParams()), this._internals.searchParams); } set searchParams(e) { ee.any([U.string, U.object, U.undefined], e); let t = this._internals.url; if (e === void 0) { this._internals.searchParams = void 0, t && (t.search = ""); return; } let r = this.searchParams, i; if (U.string(e)) i = new _o.URLSearchParams(e); else if (e instanceof _o.URLSearchParams) i = e; else { jue(e), i = new _o.URLSearchParams(); for (let s in e) { let a = e[s]; a === null ? i.append(s, "") : a === void 0 ? r.delete(s) : i.append(s, a); } } if (this._merging) { for (let s of i.keys()) r.delete(s); for (let [s, a] of i) r.append(s, a); } else t ? t.search = r.toString() : this._internals.searchParams = r; } get searchParameters() { throw new Error("The `searchParameters` option does not exist. Use `searchParams` instead."); } set searchParameters(e) { throw new Error("The `searchParameters` option does not exist. Use `searchParams` instead."); } get dnsLookup() { return this._internals.dnsLookup; } set dnsLookup(e) { ee.any([U.function_, U.undefined], e), this._internals.dnsLookup = e; } /** An instance of [`CacheableLookup`](https://github.com/szmarczak/cacheable-lookup) used for making DNS lookups. Useful when making lots of requests to different *public* hostnames. `CacheableLookup` uses `dns.resolver4(..)` and `dns.resolver6(...)` under the hood and fall backs to `dns.lookup(...)` when the first two fail, which may lead to additional delay. __Note__: This should stay disabled when making requests to internal hostnames such as `localhost`, `database.local` etc. @default false */ get dnsCache() { return this._internals.dnsCache; } set dnsCache(e) { ee.any([U.object, U.boolean, U.undefined], e), e === !0 ? this._internals.dnsCache = Uue() : e === !1 ? this._internals.dnsCache = void 0 : this._internals.dnsCache = e; } /** User data. `context` is shallow merged and enumerable. If it contains non-enumerable properties they will NOT be merged. @example ``` import got from 'got'; const instance = got.extend({ hooks: { beforeRequest: [ options => { if (!options.context || !options.context.token) { throw new Error('Token required'); } options.headers.token = options.context.token; } ] } }); const context = { token: 'secret' }; const response = await instance('https://httpbin.org/headers', {context}); // Let's see the headers console.log(response.body); ``` */ get context() { return this._internals.context; } set context(e) { ee.object(e), this._merging ? Object.assign(this._internals.context, e) : this._internals.context = { ...e }; } /** Hooks allow modifications during the request lifecycle. Hook functions may be async and are run serially. */ get hooks() { return this._internals.hooks; } set hooks(e) { ee.object(e); for (let t in e) { if (!(t in this._internals.hooks)) throw new Error(`Unexpected hook event: ${t}`); let r = t, i = e[r]; if (ee.any([U.array, U.undefined], i), i) for (let s of i) ee.function_(s); if (this._merging) i && this._internals.hooks[r].push(...i); else { if (!i) throw new Error(`Missing hook event: ${t}`); this._internals.hooks[t] = [...i]; } } } /** Defines if redirect responses should be followed automatically. Note that if a `303` is sent by the server in response to any request type (`POST`, `DELETE`, etc.), Got will automatically request the resource pointed to in the location header via `GET`. This is in accordance with [the spec](https://tools.ietf.org/html/rfc7231#section-6.4.4). You can optionally turn on this behavior also for other redirect codes - see `methodRewriting`. @default true */ get followRedirect() { return this._internals.followRedirect; } set followRedirect(e) { ee.boolean(e), this._internals.followRedirect = e; } get followRedirects() { throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead."); } set followRedirects(e) { throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead."); } /** If exceeded, the request will be aborted and a `MaxRedirectsError` will be thrown. @default 10 */ get maxRedirects() { return this._internals.maxRedirects; } set maxRedirects(e) { ee.number(e), this._internals.maxRedirects = e; } /** A cache adapter instance for storing cached response data. @default false */ get cache() { return this._internals.cache; } set cache(e) { ee.any([U.object, U.string, U.boolean, U.undefined], e), e === !0 ? this._internals.cache = que : e === !1 ? this._internals.cache = void 0 : this._internals.cache = e; } /** Determines if a `got.HTTPError` is thrown for unsuccessful responses. If this is disabled, requests that encounter an error status code will be resolved with the `response` instead of throwing. This may be useful if you are checking for resource availability and are expecting error responses. @default true */ get throwHttpErrors() { return this._internals.throwHttpErrors; } set throwHttpErrors(e) { ee.boolean(e), this._internals.throwHttpErrors = e; } get username() { let e = this._internals.url, t = e ? e.username : this._internals.username; return decodeURIComponent(t); } set username(e) { ee.string(e); let t = this._internals.url, r = encodeURIComponent(e); t ? t.username = r : this._internals.username = r; } get password() { let e = this._internals.url, t = e ? e.password : this._internals.password; return decodeURIComponent(t); } set password(e) { ee.string(e); let t = this._internals.url, r = encodeURIComponent(e); t ? t.password = r : this._internals.password = r; } /** If set to `true`, Got will additionally accept HTTP2 requests. It will choose either HTTP/1.1 or HTTP/2 depending on the ALPN protocol. __Note__: This option requires Node.js 15.10.0 or newer as HTTP/2 support on older Node.js versions is very buggy. __Note__: Overriding `options.request` will disable HTTP2 support. @default false @example ``` import got from 'got'; const {headers} = await got('https://nghttp2.org/httpbin/anything', {http2: true}); console.log(headers.via); //=> '2 nghttpx' ``` */ get http2() { return this._internals.http2; } set http2(e) { ee.boolean(e), this._internals.http2 = e; } /** Set this to `true` to allow sending body for the `GET` method. However, the [HTTP/2 specification](https://tools.ietf.org/html/rfc7540#section-8.1.3) says that `An HTTP GET request includes request header fields and no payload body`, therefore when using the HTTP/2 protocol this option will have no effect. This option is only meant to interact with non-compliant servers when you have no other choice. __Note__: The [RFC 7231](https://tools.ietf.org/html/rfc7231#section-4.3.1) doesn't specify any particular behavior for the GET method having a payload, therefore __it's considered an [anti-pattern](https://en.wikipedia.org/wiki/Anti-pattern)__. @default false */ get allowGetBody() { return this._internals.allowGetBody; } set allowGetBody(e) { ee.boolean(e), this._internals.allowGetBody = e; } /** Request headers. Existing headers will be overwritten. Headers set to `undefined` will be omitted. @default {} */ get headers() { return this._internals.headers; } set headers(e) { ee.plainObject(e), this._merging ? Object.assign(this._internals.headers, Hv(e)) : this._internals.headers = Hv(e); } /** Specifies if the HTTP request method should be [rewritten as `GET`](https://tools.ietf.org/html/rfc7231#section-6.4) on redirects. As the [specification](https://tools.ietf.org/html/rfc7231#section-6.4) prefers to rewrite the HTTP method only on `303` responses, this is Got's default behavior. Setting `methodRewriting` to `true` will also rewrite `301` and `302` responses, as allowed by the spec. This is the behavior followed by `curl` and browsers. __Note__: Got never performs method rewriting on `307` and `308` responses, as this is [explicitly prohibited by the specification](https://www.rfc-editor.org/rfc/rfc7231#section-6.4.7). @default false */ get methodRewriting() { return this._internals.methodRewriting; } set methodRewriting(e) { ee.boolean(e), this._internals.methodRewriting = e; } /** Indicates which DNS record family to use. Values: - `undefined`: IPv4 (if present) or IPv6 - `4`: Only IPv4 - `6`: Only IPv6 @default undefined */ get dnsLookupIpVersion() { return this._internals.dnsLookupIpVersion; } set dnsLookupIpVersion(e) { if (e !== void 0 && e !== 4 && e !== 6) throw new TypeError(`Invalid DNS lookup IP version: ${e}`); this._internals.dnsLookupIpVersion = e; } /** A function used to parse JSON responses. @example ``` import got from 'got'; import Bourne from '@hapi/bourne'; const parsed = await got('https://example.com', { parseJson: text => Bourne.parse(text) }).json(); console.log(parsed); ``` */ get parseJson() { return this._internals.parseJson; } set parseJson(e) { ee.function_(e), this._internals.parseJson = e; } /** A function used to stringify the body of JSON requests. @example ``` import got from 'got'; await got.post('https://example.com', { stringifyJson: object => JSON.stringify(object, (key, value) => { if (key.startsWith('_')) { return; } return value; }), json: { some: 'payload', _ignoreMe: 1234 } }); ``` @example ``` import got from 'got'; await got.post('https://example.com', { stringifyJson: object => JSON.stringify(object, (key, value) => { if (typeof value === 'number') { return value.toString(); } return value; }), json: { some: 'payload', number: 1 } }); ``` */ get stringifyJson() { return this._internals.stringifyJson; } set stringifyJson(e) { ee.function_(e), this._internals.stringifyJson = e; } /** An object representing `limit`, `calculateDelay`, `methods`, `statusCodes`, `maxRetryAfter` and `errorCodes` fields for maximum retry count, retry handler, allowed methods, allowed status codes, maximum [`Retry-After`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After) time and allowed error codes. Delays between retries counts with function `1000 * Math.pow(2, retry) + Math.random() * 100`, where `retry` is attempt number (starts from 1). The `calculateDelay` property is a `function` that receives an object with `attemptCount`, `retryOptions`, `error` and `computedValue` properties for current retry count, the retry options, error and default computed value. The function must return a delay in milliseconds (or a Promise resolving with it) (`0` return value cancels retry). By default, it retries *only* on the specified methods, status codes, and on these network errors: - `ETIMEDOUT`: One of the [timeout](#timeout) limits were reached. - `ECONNRESET`: Connection was forcibly closed by a peer. - `EADDRINUSE`: Could not bind to any free port. - `ECONNREFUSED`: Connection was refused by the server. - `EPIPE`: The remote side of the stream being written has been closed. - `ENOTFOUND`: Couldn't resolve the hostname to an IP address. - `ENETUNREACH`: No internet connection. - `EAI_AGAIN`: DNS lookup timed out. __Note__: If `maxRetryAfter` is set to `undefined`, it will use `options.timeout`. __Note__: If [`Retry-After`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After) header is greater than `maxRetryAfter`, it will cancel the request. */ get retry() { return this._internals.retry; } set retry(e) { if (ee.plainObject(e), ee.any([U.function_, U.undefined], e.calculateDelay), ee.any([U.number, U.undefined], e.maxRetryAfter), ee.any( [U.number, U.undefined], e.limit), ee.any([U.array, U.undefined], e.methods), ee.any([U.array, U.undefined], e.statusCodes), ee.any([U. array, U.undefined], e.errorCodes), ee.any([U.number, U.undefined], e.noise), e.noise && Math.abs(e.noise) > 100) throw new Error(`The maximum acceptable retry noise is +/- 100ms, got ${e.noise}`); for (let r in e) if (!(r in this._internals.retry)) throw new Error(`Unexpected retry option: ${r}`); this._merging ? Object.assign(this._internals.retry, e) : this._internals.retry = { ...e }; let { retry: t } = this._internals; t.methods = [...new Set(t.methods.map((r) => r.toUpperCase()))], t.statusCodes = [...new Set(t.statusCodes)], t.errorCodes = [...new Set( t.errorCodes)]; } /** From `http.RequestOptions`. The IP address used to send the request from. */ get localAddress() { return this._internals.localAddress; } set localAddress(e) { ee.any([U.string, U.undefined], e), this._internals.localAddress = e; } /** The HTTP method used to make the request. @default 'GET' */ get method() { return this._internals.method; } set method(e) { ee.string(e), this._internals.method = e.toUpperCase(); } get createConnection() { return this._internals.createConnection; } set createConnection(e) { ee.any([U.function_, U.undefined], e), this._internals.createConnection = e; } /** From `http-cache-semantics` @default {} */ get cacheOptions() { return this._internals.cacheOptions; } set cacheOptions(e) { ee.plainObject(e), ee.any([U.boolean, U.undefined], e.shared), ee.any([U.number, U.undefined], e.cacheHeuristic), ee.any([U.number, U. undefined], e.immutableMinTimeToLive), ee.any([U.boolean, U.undefined], e.ignoreCargoCult); for (let t in e) if (!(t in this._internals.cacheOptions)) throw new Error(`Cache option \`${t}\` does not exist`); this._merging ? Object.assign(this._internals.cacheOptions, e) : this._internals.cacheOptions = { ...e }; } /** Options for the advanced HTTPS API. */ get https() { return this._internals.https; } set https(e) { ee.plainObject(e), ee.any([U.boolean, U.undefined], e.rejectUnauthorized), ee.any([U.function_, U.undefined], e.checkServerIdentity), ee. any([U.string, U.object, U.array, U.undefined], e.certificateAuthority), ee.any([U.string, U.object, U.array, U.undefined], e.key), ee. any([U.string, U.object, U.array, U.undefined], e.certificate), ee.any([U.string, U.undefined], e.passphrase), ee.any([U.string, U.buffer, U.array, U.undefined], e.pfx), ee.any([U.array, U.undefined], e.alpnProtocols), ee.any([U.string, U.undefined], e.ciphers), ee.any([U. string, U.buffer, U.undefined], e.dhparam), ee.any([U.string, U.undefined], e.signatureAlgorithms), ee.any([U.string, U.undefined], e. minVersion), ee.any([U.string, U.undefined], e.maxVersion), ee.any([U.boolean, U.undefined], e.honorCipherOrder), ee.any([U.number, U. undefined], e.tlsSessionLifetime), ee.any([U.string, U.undefined], e.ecdhCurve), ee.any([U.string, U.buffer, U.array, U.undefined], e. certificateRevocationLists); for (let t in e) if (!(t in this._internals.https)) throw new Error(`HTTPS option \`${t}\` does not exist`); this._merging ? Object.assign(this._internals.https, e) : this._internals.https = { ...e }; } /** [Encoding](https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings) to be used on `setEncoding` of the response data. To get a [`Buffer`](https://nodejs.org/api/buffer.html), you need to set `responseType` to `buffer` instead. Don't set this option to `null`. __Note__: This doesn't affect streams! Instead, you need to do `got.stream(...).setEncoding(encoding)`. @default 'utf-8' */ get encoding() { return this._internals.encoding; } set encoding(e) { if (e === null) throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead"); ee.any([U.string, U.undefined], e), this._internals.encoding = e; } /** When set to `true` the promise will return the Response body instead of the Response object. @default false */ get resolveBodyOnly() { return this._internals.resolveBodyOnly; } set resolveBodyOnly(e) { ee.boolean(e), this._internals.resolveBodyOnly = e; } /** Returns a `Stream` instead of a `Promise`. This is equivalent to calling `got.stream(url, options?)`. @default false */ get isStream() { return this._internals.isStream; } set isStream(e) { ee.boolean(e), this._internals.isStream = e; } /** The parsing method. The promise also has `.text()`, `.json()` and `.buffer()` methods which return another Got promise for the parsed body. It's like setting the options to `{responseType: 'json', resolveBodyOnly: true}` but without affecting the main Got promise. __Note__: When using streams, this option is ignored. @example ``` const responsePromise = got(url); const bufferPromise = responsePromise.buffer(); const jsonPromise = responsePromise.json(); const [response, buffer, json] = Promise.all([responsePromise, bufferPromise, jsonPromise]); // `response` is an instance of Got Response // `buffer` is an instance of Buffer // `json` is an object ``` @example ``` // This const body = await got(url).json(); // is semantically the same as this const body = await got(url, {responseType: 'json', resolveBodyOnly: true}); ``` */ get responseType() { return this._internals.responseType; } set responseType(e) { if (e === void 0) { this._internals.responseType = "text"; return; } if (e !== "text" && e !== "buffer" && e !== "json") throw new Error(`Invalid \`responseType\` option: ${e}`); this._internals.responseType = e; } get pagination() { return this._internals.pagination; } set pagination(e) { ee.object(e), this._merging ? Object.assign(this._internals.pagination, e) : this._internals.pagination = e; } get auth() { throw new Error("Parameter `auth` is deprecated. Use `username` / `password` instead."); } set auth(e) { throw new Error("Parameter `auth` is deprecated. Use `username` / `password` instead."); } get setHost() { return this._internals.setHost; } set setHost(e) { ee.boolean(e), this._internals.setHost = e; } get maxHeaderSize() { return this._internals.maxHeaderSize; } set maxHeaderSize(e) { ee.any([U.number, U.undefined], e), this._internals.maxHeaderSize = e; } get enableUnixSockets() { return this._internals.enableUnixSockets; } set enableUnixSockets(e) { ee.boolean(e), this._internals.enableUnixSockets = e; } // eslint-disable-next-line @typescript-eslint/naming-convention toJSON() { return { ...this._internals }; } [Symbol.for("nodejs.util.inspect.custom")](e, t) { return (0, Uv.inspect)(this._internals, t); } createNativeRequestOptions() { var e; let t = this._internals, r = t.url, i; r.protocol === "https:" ? i = t.http2 ? t.agent : t.agent.https : i = t.agent.http; let { https: s } = t, { pfx: a } = s; return U.array(a) && U.plainObject(a[0]) && (a = a.map((o) => ({ buf: o.buffer, passphrase: o.passphrase }))), { ...t.cacheOptions, ...this._unixOptions, // HTTPS options // eslint-disable-next-line @typescript-eslint/naming-convention ALPNProtocols: s.alpnProtocols, ca: s.certificateAuthority, cert: s.certificate, key: s.key, passphrase: s.passphrase, pfx: s.pfx, rejectUnauthorized: s.rejectUnauthorized, checkServerIdentity: s.checkServerIdentity ?? Cue.checkServerIdentity, ciphers: s.ciphers, honorCipherOrder: s.honorCipherOrder, minVersion: s.minVersion, maxVersion: s.maxVersion, sigalgs: s.signatureAlgorithms, sessionTimeout: s.tlsSessionLifetime, dhparam: s.dhparam, ecdhCurve: s.ecdhCurve, crl: s.certificateRevocationLists, // HTTP options lookup: t.dnsLookup ?? ((e = t.dnsCache) == null ? void 0 : e.lookup), family: t.dnsLookupIpVersion, agent: i, setHost: t.setHost, method: t.method, maxHeaderSize: t.maxHeaderSize, localAddress: t.localAddress, headers: t.headers, createConnection: t.createConnection, timeout: t.http2 ? Hue(t) : void 0, // HTTP/2 options h2session: t.h2session }; } getRequestFunction() { let e = this._internals.url, { request: t } = this._internals; return !t && e ? this.getFallbackRequestFunction() : t; } getFallbackRequestFunction() { let e = this._internals.url; if (e) { if (e.protocol === "https:") { if (this._internals.http2) { if (JO < 15 || JO === 15 && Lue < 10) { let t = new Error("To use the `http2` option, install Node.js 15.10.0 or above"); throw t.code = "EUNSUPPORTED", t; } return Mue.default.auto; } return Aue.default.request; } return wue.default.request; } } freeze() { let e = this._internals; Object.freeze(e), Object.freeze(e.hooks), Object.freeze(e.hooks.afterResponse), Object.freeze(e.hooks.beforeError), Object.freeze(e.hooks. beforeRedirect), Object.freeze(e.hooks.beforeRequest), Object.freeze(e.hooks.beforeRetry), Object.freeze(e.hooks.init), Object.freeze( e.https), Object.freeze(e.cacheOptions), Object.freeze(e.agent), Object.freeze(e.headers), Object.freeze(e.timeout), Object.freeze(e.retry), Object.freeze(e.retry.errorCodes), Object.freeze(e.retry.methods), Object.freeze(e.retry.statusCodes); } }, im = /* @__PURE__ */ n((e) => { let { statusCode: t } = e, r = e.request.options.followRedirect ? 299 : 399; return t >= 200 && t <= r || t === 304; }, "isResponseOk"), YO = class extends pr { static { n(this, "ParseError"); } constructor(e, t) { let { options: r } = t.request; super(`${e.message} in "${r.url.toString()}"`, e, t.request), this.name = "ParseError", this.code = "ERR_BODY_PARSE_FAILURE"; } }, GO = /* @__PURE__ */ n((e, t, r, i) => { let { rawBody: s } = e; try { if (t === "text") return s.toString(i); if (t === "json") return s.length === 0 ? "" : r(s.toString(i)); if (t === "buffer") return s; } catch (a) { throw new YO(a, e); } throw new YO({ message: `Unknown body type '${t}'`, name: "Error" }, e); }, "parseBody"); function Kue(e) { return e.writable && !e.writableEnded; } n(Kue, "isClientRequest"); var zue = Kue; function ZO(e) { return e.protocol === "unix:" || e.hostname === "unix"; } n(ZO, "isUnixSocketURL"); var Jue = U.string(bk.default.versions.brotli), Xue = /* @__PURE__ */ new Set(["GET", "HEAD"]), Wv = new xue(), Yue = /* @__PURE__ */ new Set( [300, 301, 302, 303, 304, 307, 308]), Gue = [ "socket", "connect", "continue", "information", "upgrade" ], tm = /* @__PURE__ */ n(() => { }, "noop2"), Xv = class extends koe.Duplex { static { n(this, "Request"); } constructor(e, t, r) { super({ // Don't destroy immediately, as the error may be emitted on unsuccessful retry autoDestroy: !1, // It needs to be zero because we're just proxying the data to another stream highWaterMark: 0 }), Object.defineProperty(this, "constructor", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_noPipe", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "options", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "response", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "requestUrl", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "redirectUrls", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "retryCount", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_stopRetry", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_downloadedSize", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_uploadedSize", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_stopReading", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_pipedServerResponses", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_request", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_responseSize", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_bodySize", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_unproxyEvents", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_isFromCache", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_cannotHaveBody", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_triggerRead", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_cancelTimeouts", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_removeListeners", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_nativeResponse", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_flushed", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_aborted", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_requestInitialized", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this._downloadedSize = 0, this._uploadedSize = 0, this._stopReading = !1, this._pipedServerResponses = /* @__PURE__ */ new Set(), this. _cannotHaveBody = !1, this._unproxyEvents = tm, this._triggerRead = !1, this._cancelTimeouts = tm, this._removeListeners = tm, this._jobs = [], this._flushed = !1, this._requestInitialized = !1, this._aborted = !1, this.redirectUrls = [], this.retryCount = 0, this._stopRetry = tm, this.on("pipe", (s) => { s.headers && Object.assign(this.options.headers, s.headers); }), this.on("newListener", (s) => { if (s === "retry" && this.listenerCount("retry") > 0) throw new Error("A retry listener has been attached already."); }); try { if (this.options = new kn(e, t, r), !this.options.url) { if (this.options.prefixUrl === "") throw new TypeError("Missing `url` property"); this.options.url = ""; } this.requestUrl = this.options.url; } catch (s) { let { options: a } = s; a && (this.options = a), this.flush = async () => { this.flush = async () => { }, this.destroy(s); }; return; } let { body: i } = this.options; if (U.nodeStream(i) && i.once("error", (s) => { this._flushed ? this._beforeError(new IO(s, this)) : this.flush = async () => { this.flush = async () => { }, this._beforeError(new IO(s, this)); }; }), this.options.signal) { let s = /* @__PURE__ */ n(() => { this.destroy(new Ooe(this)); }, "abort"); this.options.signal.aborted ? s() : (this.options.signal.addEventListener("abort", s), this._removeListeners = () => { this.options.signal.removeEventListener("abort", s); }); } } async flush() { var e; if (!this._flushed) { this._flushed = !0; try { if (await this._finalizeBody(), this.destroyed) return; if (await this._makeRequest(), this.destroyed) { (e = this._request) == null || e.destroy(); return; } for (let t of this._jobs) t(); this._jobs.length = 0, this._requestInitialized = !0; } catch (t) { this._beforeError(t); } } } _beforeError(e) { if (this._stopReading) return; let { response: t, options: r } = this, i = this.retryCount + (e.name === "RetryError" ? 0 : 1); this._stopReading = !0, e instanceof pr || (e = new pr(e.message, e, this)); let s = e; (async () => { var a, o; if (t?.readable && !t.rawBody && !((o = (a = this._request) == null ? void 0 : a.socket) != null && o.destroyed) && (t.setEncoding(this. readableEncoding), await this._setRawBody(t) && (t.body = t.rawBody.toString())), this.listenerCount("retry") !== 0) { let u; try { let l; t && "retry-after" in t.headers && (l = Number(t.headers["retry-after"]), Number.isNaN(l) ? (l = Date.parse(t.headers["retry-aft\ er"]) - Date.now(), l <= 0 && (l = 1)) : l *= 1e3); let c = r.retry; u = await c.calculateDelay({ attemptCount: i, retryOptions: c, error: s, retryAfter: l, computedValue: Sue({ attemptCount: i, retryOptions: c, error: s, retryAfter: l, computedValue: c.maxRetryAfter ?? r.timeout.request ?? Number.POSITIVE_INFINITY }) }); } catch (l) { this._error(new pr(l.message, l, this)); return; } if (u) { if (await new Promise((l) => { let c = setTimeout(l, u); this._stopRetry = () => { clearTimeout(c), l(); }; }), this.destroyed) return; try { for (let l of this.options.hooks.beforeRetry) await l(s, this.retryCount + 1); } catch (l) { this._error(new pr(l.message, e, this)); return; } if (this.destroyed) return; this.destroy(), this.emit("retry", this.retryCount + 1, e, (l) => { let c = new Xv(r.url, l, r); return c.retryCount = this.retryCount + 1, bk.default.nextTick(() => { c.flush(); }), c; }); return; } } this._error(s); })(); } _read() { this._triggerRead = !0; let { response: e } = this; if (e && !this._stopReading) { e.readableLength && (this._triggerRead = !1); let t; for (; (t = e.read()) !== null; ) { this._downloadedSize += t.length; let r = this.downloadProgress; r.percent < 1 && this.emit("downloadProgress", r), this.push(t); } } } _write(e, t, r) { let i = /* @__PURE__ */ n(() => { this._writeRequest(e, t, r); }, "write"); this._requestInitialized ? i() : this._jobs.push(i); } _final(e) { let t = /* @__PURE__ */ n(() => { if (!this._request || this._request.destroyed) { e(); return; } this._request.end((r) => { var i; (i = this._request._writableState) != null && i.errored || (r || (this._bodySize = this._uploadedSize, this.emit("uploadProgress", this.uploadProgress), this._request.emit("upload-complete")), e(r)); }); }, "endRequest"); this._requestInitialized ? t() : this._jobs.push(t); } _destroy(e, t) { if (this._stopReading = !0, this.flush = async () => { }, this._stopRetry(), this._cancelTimeouts(), this._removeListeners(), this.options) { let { body: r } = this.options; U.nodeStream(r) && r.destroy(); } this._request && this._request.destroy(), e !== null && !U.undefined(e) && !(e instanceof pr) && (e = new pr(e.message, e, this)), t(e); } pipe(e, t) { return e instanceof Mv.ServerResponse && this._pipedServerResponses.add(e), super.pipe(e, t); } unpipe(e) { return e instanceof Mv.ServerResponse && this._pipedServerResponses.delete(e), super.unpipe(e), this; } async _finalizeBody() { let { options: e } = this, { headers: t } = e, r = !U.undefined(e.form), i = !U.undefined(e.json), s = !U.undefined(e.body), a = Xue.has( e.method) && !(e.method === "GET" && e.allowGetBody); if (this._cannotHaveBody = a, r || i || s) { if (a) throw new TypeError(`The \`${e.method}\` method cannot be used with a body`); let o = !U.string(t["content-type"]); if (s) { if (Jv(e.body)) { let l = new due(e.body); o && (t["content-type"] = l.headers["Content-Type"]), "Content-Length" in l.headers && (t["content-length"] = l.headers["Content\ -Length"]), e.body = l.encode(); } vk(e.body) && o && (t["content-type"] = `multipart/form-data; boundary=${e.body.getBoundary()}`); } else if (r) { o && (t["content-type"] = "application/x-www-form-urlencoded"); let { form: l } = e; e.form = void 0, e.body = new kO.URLSearchParams(l).toString(); } else { o && (t["content-type"] = "application/json"); let { json: l } = e; e.json = void 0, e.body = e.stringifyJson(l); } let u = await mue(e.body, e.headers); U.undefined(t["content-length"]) && U.undefined(t["transfer-encoding"]) && !a && !U.undefined(u) && (t["content-length"] = String(u)); } e.responseType === "json" && !("accept" in e.headers) && (e.headers.accept = "application/json"), this._bodySize = Number(t["content-l\ ength"]) || void 0; } async _onResponseBase(e) { if (this.isAborted) return; let { options: t } = this, { url: r } = t; this._nativeResponse = e, t.decompress && (e = (0, iue.default)(e)); let i = e.statusCode, s = e; s.statusMessage = s.statusMessage ? s.statusMessage : Mv.default.STATUS_CODES[i], s.url = t.url.toString(), s.requestUrl = this.requestUrl, s.redirectUrls = this.redirectUrls, s.request = this, s.isFromCache = this._nativeResponse.fromCache ?? !1, s.ip = this.ip, s.retryCount = this.retryCount, s.ok = im(s), this._isFromCache = s.isFromCache, this._responseSize = Number(e.headers["content-length"]) || void 0, this. response = s, e.once("end", () => { this._responseSize = this._downloadedSize, this.emit("downloadProgress", this.downloadProgress); }), e.once("error", (o) => { this._aborted = !0, e.destroy(), this._beforeError(new OO(o, this)); }), e.once("aborted", () => { this._aborted = !0, this._beforeError(new OO({ name: "Error", message: "The server aborted pending request", code: "ECONNRESET" }, this)); }), this.emit("downloadProgress", this.downloadProgress); let a = e.headers["set-cookie"]; if (U.object(t.cookieJar) && a) { let o = a.map(async (u) => t.cookieJar.setCookie(u, r.toString())); t.ignoreInvalidCookies && (o = o.map(async (u) => { try { await u; } catch { } })); try { await Promise.all(o); } catch (u) { this._beforeError(u); return; } } if (!this.isAborted) { if (t.followRedirect && e.headers.location && Yue.has(i)) { if (e.resume(), this._cancelTimeouts(), this._unproxyEvents(), this.redirectUrls.length >= t.maxRedirects) { this._beforeError(new _oe(this)); return; } this._request = void 0; let o = new kn(void 0, void 0, this.options), u = i === 303 && o.method !== "GET" && o.method !== "HEAD", l = i !== 307 && i !== 308, c = o.methodRewriting && l; (u || c) && (o.method = "GET", o.body = void 0, o.json = void 0, o.form = void 0, delete o.headers["content-length"]); try { let f = Nv.Buffer.from(e.headers.location, "binary").toString(), m = new kO.URL(f, r); if (!ZO(r) && ZO(m)) { this._beforeError(new pr("Cannot redirect to UNIX socket", {}, this)); return; } m.hostname !== r.hostname || m.port !== r.port ? ("host" in o.headers && delete o.headers.host, "cookie" in o.headers && delete o. headers.cookie, "authorization" in o.headers && delete o.headers.authorization, (o.username || o.password) && (o.username = "", o. password = "")) : (m.username = o.username, m.password = o.password), this.redirectUrls.push(m), o.prefixUrl = "", o.url = m; for (let h of o.hooks.beforeRedirect) await h(o, s); this.emit("redirect", o, s), this.options = o, await this._makeRequest(); } catch (f) { this._beforeError(f); return; } return; } if (t.isStream && t.throwHttpErrors && !im(s)) { this._beforeError(new rm(s)); return; } if (e.on("readable", () => { this._triggerRead && this._read(); }), this.on("resume", () => { e.resume(); }), this.on("pause", () => { e.pause(); }), e.once("end", () => { this.push(null); }), this._noPipe) { await this._setRawBody() && this.emit("response", e); return; } this.emit("response", e); for (let o of this._pipedServerResponses) if (!o.headersSent) { for (let u in e.headers) { let l = t.decompress ? u !== "content-encoding" : !0, c = e.headers[u]; l && o.setHeader(u, c); } o.statusCode = i; } } } async _setRawBody(e = this) { if (e.readableEnded) return !1; try { let t = await (0, sue.buffer)(e); if (!this.isAborted) return this.response.rawBody = t, !0; } catch { } return !1; } async _onResponse(e) { try { await this._onResponseBase(e); } catch (t) { this._beforeError(t); } } _onRequest(e) { let { options: t } = this, { timeout: r, url: i } = t; Loe(e), this.options.http2 && e.setTimeout(0), this._cancelTimeouts = Due(e, r, i); let s = t.cache ? "cacheableResponse" : "response"; e.once(s, (a) => { this._onResponse(a); }), e.once("error", (a) => { this._aborted = !0, e.destroy(), a = a instanceof Ek ? new Foe(a, this.timings, this) : new pr(a.message, a, this), this._beforeError( a); }), this._unproxyEvents = xk(e, this, Gue), this._request = e, this.emit("uploadProgress", this.uploadProgress), this._sendBody(), this. emit("request", e); } async _asyncWrite(e) { return new Promise((t, r) => { super.write(e, (i) => { if (i) { r(i); return; } t(); }); }); } _sendBody() { let { body: e } = this.options, t = this.redirectUrls.length === 0 ? this : this._request ?? this; U.nodeStream(e) ? e.pipe(t) : U.generator(e) || U.asyncGenerator(e) ? (async () => { try { for await (let r of e) await this._asyncWrite(r); super.end(); } catch (r) { this._beforeError(r); } })() : U.undefined(e) ? (this._cannotHaveBody || this._noPipe) && t.end() : (this._writeRequest(e, void 0, () => { }), t.end()); } _prepareCache(e) { if (!Wv.has(e)) { let t = new rue((r, i) => { let s = r._request(r, i); return U.promise(s) && (s.once = (a, o) => { if (a === "error") (async () => { try { await s; } catch (u) { o(u); } })(); else if (a === "abort") (async () => { try { (await s).once("abort", o); } catch { } })(); else throw new Error(`Unknown HTTP2 promise event: ${a}`); return s; }), s; }, e); Wv.set(e, t.request()); } } async _createCacheableRequest(e, t) { return new Promise((r, i) => { Object.assign(t, vue(e)); let s, a = Wv.get(t.cache)(t, async (o) => { if (o._readableState.autoDestroy = !1, s) { let u = /* @__PURE__ */ n(() => { o.req && (o.complete = o.req.res.complete); }, "fix"); o.prependOnceListener("end", u), u(), (await s).emit("cacheableResponse", o); } r(o); }); a.once("error", i), a.once("request", async (o) => { s = o, r(s); }); }); } async _makeRequest() { let { options: e } = this, { headers: t, username: r, password: i } = e, s = e.cookieJar; for (let l in t) if (U.undefined(t[l])) delete t[l]; else if (U.null_(t[l])) throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${l}\` header`); if (e.decompress && U.undefined(t["accept-encoding"]) && (t["accept-encoding"] = Jue ? "gzip, deflate, br" : "gzip, deflate"), r || i) { let l = Nv.Buffer.from(`${r}:${i}`).toString("base64"); t.authorization = `Basic ${l}`; } if (s) { let l = await s.getCookieString(e.url.toString()); U.nonEmptyString(l) && (t.cookie = l); } e.prefixUrl = ""; let a; for (let l of e.hooks.beforeRequest) { let c = await l(e); if (!U.undefined(c)) { a = /* @__PURE__ */ n(() => c, "request"); break; } } a || (a = e.getRequestFunction()); let o = e.url; this._requestOptions = e.createNativeRequestOptions(), e.cache && (this._requestOptions._request = a, this._requestOptions.cache = e.cache, this._requestOptions.body = e.body, this._prepareCache(e.cache)); let u = e.cache ? this._createCacheableRequest : a; try { let l = u(o, this._requestOptions); U.promise(l) && (l = await l), U.undefined(l) && (l = e.getFallbackRequestFunction()(o, this._requestOptions), U.promise(l) && (l = await l)), zue(l) ? this._onRequest(l) : this.writable ? (this.once("finish", () => { this._onResponse(l); }), this._sendBody()) : this._onResponse(l); } catch (l) { throw l instanceof Zf ? new Poe(l, this) : l; } } async _error(e) { try { if (!(e instanceof rm && !this.options.throwHttpErrors)) for (let t of this.options.hooks.beforeError) e = await t(e); } catch (t) { e = new pr(t.message, t, this); } this.destroy(e); } _writeRequest(e, t, r) { !this._request || this._request.destroyed || this._request.write(e, t, (i) => { if (!i && !this._request.destroyed) { this._uploadedSize += Nv.Buffer.byteLength(e, t); let s = this.uploadProgress; s.percent < 1 && this.emit("uploadProgress", s); } r(i); }); } /** The remote IP address. */ get ip() { var e; return (e = this.socket) == null ? void 0 : e.remoteAddress; } /** Indicates whether the request has been aborted or not. */ get isAborted() { return this._aborted; } get socket() { var e; return ((e = this._request) == null ? void 0 : e.socket) ?? void 0; } /** Progress event for downloading (receiving a response). */ get downloadProgress() { let e; return this._responseSize ? e = this._downloadedSize / this._responseSize : this._responseSize === this._downloadedSize ? e = 1 : e = 0, { percent: e, transferred: this._downloadedSize, total: this._responseSize }; } /** Progress event for uploading (sending a request). */ get uploadProgress() { let e; return this._bodySize ? e = this._uploadedSize / this._bodySize : this._bodySize === this._uploadedSize ? e = 1 : e = 0, { percent: e, transferred: this._uploadedSize, total: this._bodySize }; } /** The object contains the following properties: - `start` - Time when the request started. - `socket` - Time when a socket was assigned to the request. - `lookup` - Time when the DNS lookup finished. - `connect` - Time when the socket successfully connected. - `secureConnect` - Time when the socket securely connected. - `upload` - Time when the request finished uploading. - `response` - Time when the request fired `response` event. - `end` - Time when the response fired `end` event. - `error` - Time when the request fired `error` event. - `abort` - Time when the request fired `abort` event. - `phases` - `wait` - `timings.socket - timings.start` - `dns` - `timings.lookup - timings.socket` - `tcp` - `timings.connect - timings.lookup` - `tls` - `timings.secureConnect - timings.connect` - `request` - `timings.upload - (timings.secureConnect || timings.connect)` - `firstByte` - `timings.response - timings.upload` - `download` - `timings.end - timings.response` - `total` - `(timings.end || timings.error || timings.abort) - timings.start` If something has not been measured yet, it will be `undefined`. __Note__: The time is a `number` representing the milliseconds elapsed since the UNIX epoch. */ get timings() { var e; return (e = this._request) == null ? void 0 : e.timings; } /** Whether the response was retrieved from the cache. */ get isFromCache() { return this._isFromCache; } get reusedSocket() { var e; return (e = this._request) == null ? void 0 : e.reusedSocket; } }, Zue = class extends pr { static { n(this, "CancelError2"); } constructor(e) { super("Promise was canceled", {}, e), this.name = "CancelError", this.code = "ERR_CANCELED"; } /** Whether the promise is canceled. */ get isCanceled() { return !0; } }, Que = [ "request", "response", "redirect", "uploadProgress", "downloadProgress" ]; function QO(e) { let t, r, i, s = new Coe.EventEmitter(), a = new zv((u, l, c) => { c(() => { t.destroy(); }), c.shouldReject = !1, c(() => { l(new Zue(t)); }); let f = /* @__PURE__ */ n((m) => { var h; c(() => { }); let d = e ?? new Xv(void 0, void 0, i); d.retryCount = m, d._noPipe = !0, t = d, d.once("response", async (g) => { let b = (g.headers["content-encoding"] ?? "").toLowerCase(), D = b === "gzip" || b === "deflate" || b === "br", { options: x } = d; if (D && !x.decompress) g.body = g.rawBody; else try { g.body = GO(g, x.responseType, x.parseJson, x.encoding); } catch (T) { if (g.body = g.rawBody.toString(), im(g)) { d._beforeError(T); return; } } try { let T = x.hooks.afterResponse; for (let [w, B] of T.entries()) if (g = await B(g, async (k) => { throw x.merge(k), x.prefixUrl = "", k.url && (x.url = k.url), x.hooks.afterResponse = x.hooks.afterResponse.slice(0, w), new Ioe( d); }), !(U.object(g) && U.number(g.statusCode) && !U.nullOrUndefined(g.body))) throw new TypeError("The `afterResponse` hook returned an invalid value"); } catch (T) { d._beforeError(T); return; } if (r = g, !im(g)) { d._beforeError(new rm(g)); return; } d.destroy(), u(d.options.resolveBodyOnly ? g.body : g); }); let y = /* @__PURE__ */ n((g) => { if (a.isCanceled) return; let { options: b } = d; if (g instanceof rm && !b.throwHttpErrors) { let { response: D } = g; d.destroy(), u(d.options.resolveBodyOnly ? D.body : D); return; } l(g); }, "onError"); d.once("error", y); let p = (h = d.options) == null ? void 0 : h.body; d.once("retry", (g, b) => { e = void 0; let D = d.options.body; if (p === D && U.nodeStream(D)) { b.message = "Cannot retry with consumed body stream", y(b); return; } i = d.options, f(g); }), xk(d, s, Que), U.undefined(e) && d.flush(); }, "makeRequest"); f(0); }); a.on = (u, l) => (s.on(u, l), a), a.off = (u, l) => (s.off(u, l), a); let o = /* @__PURE__ */ n((u) => { let l = (async () => { await a; let { options: c } = r.request; return GO(r, u, c.parseJson, c.encoding); })(); return Object.defineProperties(l, Object.getOwnPropertyDescriptors(a)), l; }, "shortcut"); return a.json = () => { if (t.options) { let { headers: u } = t.options; !t.writableFinished && !("accept" in u) && (u.accept = "application/json"); } return o("json"); }, a.buffer = () => o("buffer"), a.text = () => o("text"), a; } n(QO, "asPromise"); var ele = /* @__PURE__ */ n(async (e) => new Promise((t) => { setTimeout(t, e); }), "delay"), tle = /* @__PURE__ */ n((e) => U.function_(e), "isGotInstance"), rle = [ "get", "post", "put", "patch", "head", "delete" ], Sk = /* @__PURE__ */ n((e) => { e = { options: new kn(void 0, void 0, e.options), handlers: [...e.handlers], mutableDefaults: e.mutableDefaults }, Object.defineProperty(e, "mutableDefaults", { enumerable: !0, configurable: !1, writable: !1 }); let t = /* @__PURE__ */ n((i, s, a = e.options) => { let o = new Xv(i, s, a), u, l = /* @__PURE__ */ n((m) => (o.options = m, o._noPipe = !m.isStream, o.flush(), m.isStream ? o : (u || (u = QO(o)), u)), "lastHandler"), c = 0, f = /* @__PURE__ */ n((m) => { let d = (e.handlers[c++] ?? l)(m, f); if (U.promise(d) && !o.options.isStream && (u || (u = QO(o)), d !== u)) { let y = Object.getOwnPropertyDescriptors(u); for (let p in y) p in d && delete y[p]; Object.defineProperties(d, y), d.cancel = u.cancel; } return d; }, "iterateHandlers"); return f(o.options); }, "got2"); t.extend = (...i) => { let s = new kn(void 0, void 0, e.options), a = [...e.handlers], o; for (let u of i) tle(u) ? (s.merge(u.defaults.options), a.push(...u.defaults.handlers), o = u.defaults.mutableDefaults) : (s.merge(u), u.handlers && a. push(...u.handlers), o = u.mutableDefaults); return Sk({ options: s, handlers: a, mutableDefaults: !!o }); }; let r = /* @__PURE__ */ n(async function* (i, s) { let a = new kn(i, s, e.options); a.resolveBodyOnly = !1; let { pagination: o } = a; ee.function_(o.transform), ee.function_(o.shouldContinue), ee.function_(o.filter), ee.function_(o.paginate), ee.number(o.countLimit), ee. number(o.requestLimit), ee.number(o.backoff); let u = [], { countLimit: l } = o, c = 0; for (; c < o.requestLimit; ) { c !== 0 && await ele(o.backoff); let f = await t(void 0, void 0, a), m = await o.transform(f), h = []; ee.array(m); for (let y of m) if (o.filter({ item: y, currentItems: h, allItems: u }) && (!o.shouldContinue({ item: y, currentItems: h, allItems: u }) || (yield y, o.stackAllItems && u.push(y), h.push(y), --l <= 0))) return; let d = o.paginate({ response: f, currentItems: h, allItems: u }); if (d === !1) return; d === f.request.options ? a = f.request.options : (a.merge(d), ee.any([U.urlInstance, U.undefined], d.url), d.url !== void 0 && (a.prefixUrl = "", a.url = d.url)), c++; } }, "paginateEach"); t.paginate = r, t.paginate.all = async (i, s) => { let a = []; for await (let o of r(i, s)) a.push(o); return a; }, t.paginate.each = r, t.stream = (i, s) => t(i, { ...s, isStream: !0 }); for (let i of rle) t[i] = (s, a) => t(s, { ...a, method: i }), t.stream[i] = (s, a) => t(s, { ...a, method: i, isStream: !0 }); return e.mutableDefaults || (Object.freeze(e.handlers), e.options.freeze()), Object.defineProperty(t, "defaults", { value: e, writable: !1, configurable: !1, enumerable: !0 }), t; }, "create"), ile = Sk, sle = { options: new kn(), handlers: [], mutableDefaults: !1 }, nle = ile(sle), ale = nle, ole = ur(K2()), ule = R5(), lle = ur(FO()), ek = { keepAlive: !0, maxSockets: 20 }, cle = { http: new foe.Agent(ek), https: new doe.Agent(ek) }; async function fle({ url: e, gotOpts: t, extractOpts: r, dir: i }) { return new Promise((s, a) => { let o = /* @__PURE__ */ n((u) => { u ? a(u) : s(); }, "callback"); (0, ole.default)( ale.stream(e, Object.assign({ agent: cle }, t)), (0, lle.default)(), (0, ule.extract)(i, r), o ); }); } n(fle, "download"); }); // ../node_modules/get-npm-tarball-url/lib/index.js var _k = E((Vnt, Ak) => { var Yv = Object.defineProperty, dle = Object.getOwnPropertyDescriptor, ple = Object.getOwnPropertyNames, hle = Object.prototype.hasOwnProperty, mle = /* @__PURE__ */ n((e, t) => { for (var r in t) Yv(e, r, { get: t[r], enumerable: !0 }); }, "__export"), yle = /* @__PURE__ */ n((e, t, r, i) => { if (t && typeof t == "object" || typeof t == "function") for (let s of ple(t)) !hle.call(e, s) && s !== r && Yv(e, s, { get: /* @__PURE__ */ n(() => t[s], "get"), enumerable: !(i = dle(t, s)) || i.enumerable }); return e; }, "__copyProps"), gle = /* @__PURE__ */ n((e) => yle(Yv({}, "__esModule", { value: !0 }), e), "__toCommonJS"), wk = {}; mle(wk, { default: /* @__PURE__ */ n(() => ble, "default") }); Ak.exports = gle(wk); function ble(e, t, r) { let i; r?.registry ? i = r.registry.endsWith("/") ? r.registry : `${r.registry}/` : i = "https://registry.npmjs.org/"; let s = vle(e); return `${i}${e}/-/${s}-${Dle(t)}.tgz`; } n(ble, "src_default"); function Dle(e) { let t = e.indexOf("+"); return t === -1 ? e : e.substring(0, t); } n(Dle, "removeBuildMetadataFromVersion"); function vle(e) { return e[0] !== "@" ? e : e.split("/")[1]; } n(vle, "getScopelessName"); }); // ../node_modules/eastasianwidth/eastasianwidth.js var ux = E((pat, ox) => { var Ta = {}; typeof ox > "u" ? window.eastasianwidth = Ta : ox.exports = Ta; Ta.eastAsianWidth = function(e) { var t = e.charCodeAt(0), r = e.length == 2 ? e.charCodeAt(1) : 0, i = t; return 55296 <= t && t <= 56319 && 56320 <= r && r <= 57343 && (t &= 1023, r &= 1023, i = t << 10 | r, i += 65536), i == 12288 || 65281 <= i && i <= 65376 || 65504 <= i && i <= 65510 ? "F" : i == 8361 || 65377 <= i && i <= 65470 || 65474 <= i && i <= 65479 || 65482 <= i && i <= 65487 || 65490 <= i && i <= 65495 || 65498 <= i && i <= 65500 || 65512 <= i && i <= 65518 ? "H" : 4352 <= i && i <= 4447 || 4515 <= i && i <= 4519 || 4602 <= i && i <= 4607 || 9001 <= i && i <= 9002 || 11904 <= i && i <= 11929 || 11931 <= i && i <= 12019 || 12032 <= i && i <= 12245 || 12272 <= i && i <= 12283 || 12289 <= i && i <= 12350 || 12353 <= i && i <= 12438 || 12441 <= i && i <= 12543 || 12549 <= i && i <= 12589 || 12593 <= i && i <= 12686 || 12688 <= i && i <= 12730 || 12736 <= i && i <= 12771 || 12784 <= i && i <= 12830 || 12832 <= i && i <= 12871 || 12880 <= i && i <= 13054 || 13056 <= i && i <= 19903 || 19968 <= i && i <= 42124 || 42128 <= i && i <= 42182 || 43360 <= i && i <= 43388 || 44032 <= i && i <= 55203 || 55216 <= i && i <= 55238 || 55243 <= i && i <= 55291 || 63744 <= i && i <= 64255 || 65040 <= i && i <= 65049 || 65072 <= i && i <= 65106 || 65108 <= i && i <= 65126 || 65128 <= i && i <= 65131 || 110592 <= i && i <= 110593 || 127488 <= i && i <= 127490 || 127504 <= i && i <= 127546 || 127552 <= i && i <= 127560 || 127568 <= i && i <= 127569 || 131072 <= i && i <= 194367 || 177984 <= i && i <= 196605 || 196608 <= i && i <= 262141 ? "W" : 32 <= i && i <= 126 || 162 <= i && i <= 163 || 165 <= i && i <= 166 || i == 172 || i == 175 || 10214 <= i && i <= 10221 || 10629 <= i && i <= 10630 ? "Na" : i == 161 || i == 164 || 167 <= i && i <= 168 || i == 170 || 173 <= i && i <= 174 || 176 <= i && i <= 180 || 182 <= i && i <= 186 || 188 <= i && i <= 191 || i == 198 || i == 208 || 215 <= i && i <= 216 || 222 <= i && i <= 225 || i == 230 || 232 <= i && i <= 234 || 236 <= i && i <= 237 || i == 240 || 242 <= i && i <= 243 || 247 <= i && i <= 250 || i == 252 || i == 254 || i == 257 || i == 273 || i == 275 || i == 283 || 294 <= i && i <= 295 || i == 299 || 305 <= i && i <= 307 || i == 312 || 319 <= i && i <= 322 || i == 324 || 328 <= i && i <= 331 || i == 333 || 338 <= i && i <= 339 || 358 <= i && i <= 359 || i == 363 || i == 462 || i == 464 || i == 466 || i == 468 || i == 470 || i == 472 || i == 474 || i == 476 || i == 593 || i == 609 || i == 708 || i == 711 || 713 <= i && i <= 715 || i == 717 || i == 720 || 728 <= i && i <= 731 || i == 733 || i == 735 || 768 <= i && i <= 879 || 913 <= i && i <= 929 || 931 <= i && i <= 937 || 945 <= i && i <= 961 || 963 <= i && i <= 969 || i == 1025 || 1040 <= i && i <= 1103 || i == 1105 || i == 8208 || 8211 <= i && i <= 8214 || 8216 <= i && i <= 8217 || 8220 <= i && i <= 8221 || 8224 <= i && i <= 8226 || 8228 <= i && i <= 8231 || i == 8240 || 8242 <= i && i <= 8243 || i == 8245 || i == 8251 || i == 8254 || i == 8308 || i == 8319 || 8321 <= i && i <= 8324 || i == 8364 || i == 8451 || i == 8453 || i == 8457 || i == 8467 || i == 8470 || 8481 <= i && i <= 8482 || i == 8486 || i == 8491 || 8531 <= i && i <= 8532 || 8539 <= i && i <= 8542 || 8544 <= i && i <= 8555 || 8560 <= i && i <= 8569 || i == 8585 || 8592 <= i && i <= 8601 || 8632 <= i && i <= 8633 || i == 8658 || i == 8660 || i == 8679 || i == 8704 || 8706 <= i && i <= 8707 || 8711 <= i && i <= 8712 || i == 8715 || i == 8719 || i == 8721 || i == 8725 || i == 8730 || 8733 <= i && i <= 8736 || i == 8739 || i == 8741 || 8743 <= i && i <= 8748 || i == 8750 || 8756 <= i && i <= 8759 || 8764 <= i && i <= 8765 || i == 8776 || i == 8780 || i == 8786 || 8800 <= i && i <= 8801 || 8804 <= i && i <= 8807 || 8810 <= i && i <= 8811 || 8814 <= i && i <= 8815 || 8834 <= i && i <= 8835 || 8838 <= i && i <= 8839 || i == 8853 || i == 8857 || i == 8869 || i == 8895 || i == 8978 || 9312 <= i && i <= 9449 || 9451 <= i && i <= 9547 || 9552 <= i && i <= 9587 || 9600 <= i && i <= 9615 || 9618 <= i && i <= 9621 || 9632 <= i && i <= 9633 || 9635 <= i && i <= 9641 || 9650 <= i && i <= 9651 || 9654 <= i && i <= 9655 || 9660 <= i && i <= 9661 || 9664 <= i && i <= 9665 || 9670 <= i && i <= 9672 || i == 9675 || 9678 <= i && i <= 9681 || 9698 <= i && i <= 9701 || i == 9711 || 9733 <= i && i <= 9734 || i == 9737 || 9742 <= i && i <= 9743 || 9748 <= i && i <= 9749 || i == 9756 || i == 9758 || i == 9792 || i == 9794 || 9824 <= i && i <= 9825 || 9827 <= i && i <= 9829 || 9831 <= i && i <= 9834 || 9836 <= i && i <= 9837 || i == 9839 || 9886 <= i && i <= 9887 || 9918 <= i && i <= 9919 || 9924 <= i && i <= 9933 || 9935 <= i && i <= 9953 || i == 9955 || 9960 <= i && i <= 9983 || i == 10045 || i == 10071 || 10102 <= i && i <= 10111 || 11093 <= i && i <= 11097 || 12872 <= i && i <= 12879 || 57344 <= i && i <= 63743 || 65024 <= i && i <= 65039 || i == 65533 || 127232 <= i && i <= 127242 || 127248 <= i && i <= 127277 || 127280 <= i && i <= 127337 || 127344 <= i && i <= 127386 || 917760 <= i && i <= 917999 || 983040 <= i && i <= 1048573 || 1048576 <= i && i <= 1114109 ? "A" : "N"; }; Ta.characterLength = function(e) { var t = this.eastAsianWidth(e); return t == "F" || t == "W" || t == "A" ? 2 : 1; }; function jk(e) { return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || []; } n(jk, "stringToArray"); Ta.length = function(e) { for (var t = jk(e), r = 0, i = 0; i < t.length; i++) r = r + this.characterLength(t[i]); return r; }; Ta.slice = function(e, t, r) { textLen = Ta.length(e), t = t || 0, r = r || 1, t < 0 && (t = textLen + t), r < 0 && (r = textLen + r); for (var i = "", s = 0, a = jk(e), o = 0; o < a.length; o++) { var u = a[o], l = Ta.length(u); if (s >= t - (l == 2 ? 1 : 0)) if (s + l <= r) i += u; else break; s += l; } return i; }; }); // ../node_modules/emoji-regex/index.js var lx = E((mat, qk) => { "use strict"; qk.exports = function() { return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g; }; }); // ../node_modules/cli-boxes/boxes.json var eB = E((Mat, lce) => { lce.exports = { single: { topLeft: "\u250C", top: "\u2500", topRight: "\u2510", right: "\u2502", bottomRight: "\u2518", bottom: "\u2500", bottomLeft: "\u2514", left: "\u2502" }, double: { topLeft: "\u2554", top: "\u2550", topRight: "\u2557", right: "\u2551", bottomRight: "\u255D", bottom: "\u2550", bottomLeft: "\u255A", left: "\u2551" }, round: { topLeft: "\u256D", top: "\u2500", topRight: "\u256E", right: "\u2502", bottomRight: "\u256F", bottom: "\u2500", bottomLeft: "\u2570", left: "\u2502" }, bold: { topLeft: "\u250F", top: "\u2501", topRight: "\u2513", right: "\u2503", bottomRight: "\u251B", bottom: "\u2501", bottomLeft: "\u2517", left: "\u2503" }, singleDouble: { topLeft: "\u2553", top: "\u2500", topRight: "\u2556", right: "\u2551", bottomRight: "\u255C", bottom: "\u2500", bottomLeft: "\u2559", left: "\u2551" }, doubleSingle: { topLeft: "\u2552", top: "\u2550", topRight: "\u2555", right: "\u2502", bottomRight: "\u255B", bottom: "\u2550", bottomLeft: "\u2558", left: "\u2502" }, classic: { topLeft: "+", top: "-", topRight: "+", right: "|", bottomRight: "+", bottom: "-", bottomLeft: "+", left: "|" }, arrow: { topLeft: "\u2198", top: "\u2193", topRight: "\u2199", right: "\u2190", bottomRight: "\u2196", bottom: "\u2191", bottomLeft: "\u2197", left: "\u2192" } }; }); // ../node_modules/cli-boxes/index.js var mx = E((Rat, hx) => { "use strict"; var tB = eB(); hx.exports = tB; hx.exports.default = tB; }); // ../node_modules/string-width/node_modules/ansi-regex/index.js var oB = E((qat, aB) => { "use strict"; aB.exports = ({ onlyFirst: e = !1 } = {}) => { let t = [ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))" ].join("|"); return new RegExp(t, e ? void 0 : "g"); }; }); // ../node_modules/string-width/node_modules/strip-ansi/index.js var lB = E((Uat, uB) => { "use strict"; var yce = oB(); uB.exports = (e) => typeof e == "string" ? e.replace(yce(), "") : e; }); // ../node_modules/is-fullwidth-code-point/index.js var fB = E(($at, bx) => { "use strict"; var cB = /* @__PURE__ */ n((e) => Number.isNaN(e) ? !1 : e >= 4352 && (e <= 4447 || // Hangul Jamo e === 9001 || // LEFT-POINTING ANGLE BRACKET e === 9002 || // RIGHT-POINTING ANGLE BRACKET // CJK Radicals Supplement .. Enclosed CJK Letters and Months 11904 <= e && e <= 12871 && e !== 12351 || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A 12880 <= e && e <= 19903 || // CJK Unified Ideographs .. Yi Radicals 19968 <= e && e <= 42182 || // Hangul Jamo Extended-A 43360 <= e && e <= 43388 || // Hangul Syllables 44032 <= e && e <= 55203 || // CJK Compatibility Ideographs 63744 <= e && e <= 64255 || // Vertical Forms 65040 <= e && e <= 65049 || // CJK Compatibility Forms .. Small Form Variants 65072 <= e && e <= 65131 || // Halfwidth and Fullwidth Forms 65281 <= e && e <= 65376 || 65504 <= e && e <= 65510 || // Kana Supplement 110592 <= e && e <= 110593 || // Enclosed Ideographic Supplement 127488 <= e && e <= 127569 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane 131072 <= e && e <= 262141), "isFullwidthCodePoint"); bx.exports = cB; bx.exports.default = cB; }); // ../node_modules/string-width/node_modules/emoji-regex/index.js var pB = E((Wat, dB) => { "use strict"; dB.exports = function() { return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g; }; }); // ../node_modules/string-width/index.js var mB = E((Hat, Dx) => { "use strict"; var gce = lB(), bce = fB(), Dce = pB(), hB = /* @__PURE__ */ n((e) => { if (typeof e != "string" || e.length === 0 || (e = gce(e), e.length === 0)) return 0; e = e.replace(Dce(), " "); let t = 0; for (let r = 0; r < e.length; r++) { let i = e.codePointAt(r); i <= 31 || i >= 127 && i <= 159 || i >= 768 && i <= 879 || (i > 65535 && r++, t += bce(i) ? 2 : 1); } return t; }, "stringWidth"); Dx.exports = hB; Dx.exports.default = hB; }); // ../node_modules/ansi-align/index.js var gB = E((zat, yB) => { "use strict"; var vce = mB(); function Oo(e, t) { if (!e) return e; t = t || {}; let r = t.align || "center"; if (r === "left") return e; let i = t.split || ` `, s = t.pad || " ", a = r !== "right" ? xce : Ece, o = !1; Array.isArray(e) || (o = !0, e = String(e).split(i)); let u, l = 0; return e = e.map(function(c) { return c = String(c), u = vce(c), l = Math.max(u, l), { str: c, width: u }; }).map(function(c) { return new Array(a(l, c.width) + 1).join(s) + c.str; }), o ? e.join(i) : e; } n(Oo, "ansiAlign"); Oo.left = /* @__PURE__ */ n(function(t) { return Oo(t, { align: "left" }); }, "left"); Oo.center = /* @__PURE__ */ n(function(t) { return Oo(t, { align: "center" }); }, "center"); Oo.right = /* @__PURE__ */ n(function(t) { return Oo(t, { align: "right" }); }, "right"); yB.exports = Oo; function xce(e, t) { return Math.floor((e - t) / 2); } n(xce, "halfDiff"); function Ece(e, t) { return e - t; } n(Ece, "fullDiff"); }); // ../node_modules/ts-dedent/dist/index.js var ym = E((ud) => { "use strict"; Object.defineProperty(ud, "__esModule", { value: !0 }); ud.dedent = void 0; function kB(e) { for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; var i = Array.from(typeof e == "string" ? [e] : e); i[i.length - 1] = i[i.length - 1].replace(/\r?\n([\t ]*)$/, ""); var s = i.reduce(function(u, l) { var c = l.match(/\n([\t ]+|(?!\s).)/g); return c ? u.concat(c.map(function(f) { var m, h; return (h = (m = f.match(/[\t ]/g)) === null || m === void 0 ? void 0 : m.length) !== null && h !== void 0 ? h : 0; })) : u; }, []); if (s.length) { var a = new RegExp(` [ ]{` + Math.min.apply(Math, s) + "}", "g"); i = i.map(function(u) { return u.replace(a, ` `); }); } i[0] = i[0].replace(/^\r?\n/, ""); var o = i[0]; return t.forEach(function(u, l) { var c = o.match(/(?:^|\n)( *)$/), f = c ? c[1] : "", m = u; typeof u == "string" && u.includes(` `) && (m = String(u).split(` `).map(function(h, d) { return d === 0 ? h : "" + f + h; }).join(` `)), o += m + i[l + 1]; }), o; } n(kB, "dedent"); ud.dedent = kB; ud.default = kB; }); // ../node_modules/esprima/dist/esprima.js var RB = E((cd, Px) => { (/* @__PURE__ */ n(function(t, r) { typeof cd == "object" && typeof Px == "object" ? Px.exports = r() : typeof define == "function" && define.amd ? define([], r) : typeof cd == "object" ? cd.esprima = r() : t.esprima = r(); }, "webpackUniversalModuleDefinition"))(cd, function() { return ( /******/ function(e) { var t = {}; function r(i) { if (t[i]) return t[i].exports; var s = t[i] = { /******/ exports: {}, /******/ id: i, /******/ loaded: !1 /******/ }; return e[i].call(s.exports, s, s.exports, r), s.loaded = !0, s.exports; } return n(r, "__webpack_require__"), r.m = e, r.c = t, r.p = "", r(0); }([ /* 0 */ /***/ function(e, t, r) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var i = r(1), s = r(3), a = r(8), o = r(15); function u(h, d, y) { var p = null, g = /* @__PURE__ */ n(function(j, W) { y && y(j, W), p && p.visit(j, W); }, "proxyDelegate"), b = typeof y == "function" ? g : null, D = !1; if (d) { D = typeof d.comment == "boolean" && d.comment; var x = typeof d.attachComment == "boolean" && d.attachComment; (D || x) && (p = new i.CommentHandler(), p.attach = x, d.comment = !0, b = g); } var T = !1; d && typeof d.sourceType == "string" && (T = d.sourceType === "module"); var w; d && typeof d.jsx == "boolean" && d.jsx ? w = new s.JSXParser(h, d, b) : w = new a.Parser(h, d, b); var B = T ? w.parseModule() : w.parseScript(), k = B; return D && p && (k.comments = p.comments), w.config.tokens && (k.tokens = w.tokens), w.config.tolerant && (k.errors = w.errorHandler. errors), k; } n(u, "parse"), t.parse = u; function l(h, d, y) { var p = d || {}; return p.sourceType = "module", u(h, p, y); } n(l, "parseModule"), t.parseModule = l; function c(h, d, y) { var p = d || {}; return p.sourceType = "script", u(h, p, y); } n(c, "parseScript"), t.parseScript = c; function f(h, d, y) { var p = new o.Tokenizer(h, d), g; g = []; try { for (; ; ) { var b = p.getNextToken(); if (!b) break; y && (b = y(b)), g.push(b); } } catch (D) { p.errorHandler.tolerate(D); } return p.errorHandler.tolerant && (g.errors = p.errors()), g; } n(f, "tokenize"), t.tokenize = f; var m = r(2); t.Syntax = m.Syntax, t.version = "4.0.1"; }, /* 1 */ /***/ function(e, t, r) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var i = r(2), s = function() { function a() { this.attach = !1, this.comments = [], this.stack = [], this.leading = [], this.trailing = []; } return n(a, "CommentHandler"), a.prototype.insertInnerComments = function(o, u) { if (o.type === i.Syntax.BlockStatement && o.body.length === 0) { for (var l = [], c = this.leading.length - 1; c >= 0; --c) { var f = this.leading[c]; u.end.offset >= f.start && (l.unshift(f.comment), this.leading.splice(c, 1), this.trailing.splice(c, 1)); } l.length && (o.innerComments = l); } }, a.prototype.findTrailingComments = function(o) { var u = []; if (this.trailing.length > 0) { for (var l = this.trailing.length - 1; l >= 0; --l) { var c = this.trailing[l]; c.start >= o.end.offset && u.unshift(c.comment); } return this.trailing.length = 0, u; } var f = this.stack[this.stack.length - 1]; if (f && f.node.trailingComments) { var m = f.node.trailingComments[0]; m && m.range[0] >= o.end.offset && (u = f.node.trailingComments, delete f.node.trailingComments); } return u; }, a.prototype.findLeadingComments = function(o) { for (var u = [], l; this.stack.length > 0; ) { var c = this.stack[this.stack.length - 1]; if (c && c.start >= o.start.offset) l = c.node, this.stack.pop(); else break; } if (l) { for (var f = l.leadingComments ? l.leadingComments.length : 0, m = f - 1; m >= 0; --m) { var h = l.leadingComments[m]; h.range[1] <= o.start.offset && (u.unshift(h), l.leadingComments.splice(m, 1)); } return l.leadingComments && l.leadingComments.length === 0 && delete l.leadingComments, u; } for (var m = this.leading.length - 1; m >= 0; --m) { var c = this.leading[m]; c.start <= o.start.offset && (u.unshift(c.comment), this.leading.splice(m, 1)); } return u; }, a.prototype.visitNode = function(o, u) { if (!(o.type === i.Syntax.Program && o.body.length > 0)) { this.insertInnerComments(o, u); var l = this.findTrailingComments(u), c = this.findLeadingComments(u); c.length > 0 && (o.leadingComments = c), l.length > 0 && (o.trailingComments = l), this.stack.push({ node: o, start: u.start.offset }); } }, a.prototype.visitComment = function(o, u) { var l = o.type[0] === "L" ? "Line" : "Block", c = { type: l, value: o.value }; if (o.range && (c.range = o.range), o.loc && (c.loc = o.loc), this.comments.push(c), this.attach) { var f = { comment: { type: l, value: o.value, range: [u.start.offset, u.end.offset] }, start: u.start.offset }; o.loc && (f.comment.loc = o.loc), o.type = l, this.leading.push(f), this.trailing.push(f); } }, a.prototype.visit = function(o, u) { o.type === "LineComment" ? this.visitComment(o, u) : o.type === "BlockComment" ? this.visitComment(o, u) : this.attach && this. visitNode(o, u); }, a; }(); t.CommentHandler = s; }, /* 2 */ /***/ function(e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), t.Syntax = { AssignmentExpression: "AssignmentExpression", AssignmentPattern: "AssignmentPattern", ArrayExpression: "ArrayExpression", ArrayPattern: "ArrayPattern", ArrowFunctionExpression: "ArrowFunctionExpression", AwaitExpression: "AwaitExpression", BlockStatement: "BlockStatement", BinaryExpression: "BinaryExpression", BreakStatement: "BreakStatement", CallExpression: "CallExpression", CatchClause: "CatchClause", ClassBody: "ClassBody", ClassDeclaration: "ClassDeclaration", ClassExpression: "ClassExpression", ConditionalExpression: "ConditionalExpression", ContinueStatement: "ContinueStatement", DoWhileStatement: "DoWhileStatement", DebuggerStatement: "DebuggerStatement", EmptyStatement: "EmptyStatement", ExportAllDeclaration: "ExportAllDeclaration", ExportDefaultDeclaration: "ExportDefaultDeclaration", ExportNamedDeclaration: "ExportNamedDeclaration", ExportSpecifier: "ExportSpecifier", ExpressionStatement: "ExpressionStatement", ForStatement: "ForStatement", ForOfStatement: "ForOfStatement", ForInStatement: "ForInStatement", FunctionDeclaration: "FunctionDeclaration", FunctionExpression: "FunctionExpression", Identifier: "Identifier", IfStatement: "IfStatement", ImportDeclaration: "ImportDeclaration", ImportDefaultSpecifier: "ImportDefaultSpecifier", ImportNamespaceSpecifier: "ImportNamespaceSpecifier", ImportSpecifier: "ImportSpecifier", Literal: "Literal", LabeledStatement: "LabeledStatement", LogicalExpression: "LogicalExpression", MemberExpression: "MemberExpression", MetaProperty: "MetaProperty", MethodDefinition: "MethodDefinition", NewExpression: "NewExpression", ObjectExpression: "ObjectExpression", ObjectPattern: "ObjectPattern", Program: "Program", Property: "Property", RestElement: "RestElement", ReturnStatement: "ReturnStatement", SequenceExpression: "SequenceExpression", SpreadElement: "SpreadElement", Super: "Super", SwitchCase: "SwitchCase", SwitchStatement: "SwitchStatement", TaggedTemplateExpression: "TaggedTemplateExpression", TemplateElement: "TemplateElement", TemplateLiteral: "TemplateLiteral", ThisExpression: "ThisExpression", ThrowStatement: "ThrowStatement", TryStatement: "TryStatement", UnaryExpression: "UnaryExpression", UpdateExpression: "UpdateExpression", VariableDeclaration: "VariableDeclaration", VariableDeclarator: "VariableDeclarator", WhileStatement: "WhileStatement", WithStatement: "WithStatement", YieldExpression: "YieldExpression" }; }, /* 3 */ /***/ function(e, t, r) { "use strict"; var i = this && this.__extends || function() { var d = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(y, p) { y.__proto__ = p; } || function(y, p) { for (var g in p) p.hasOwnProperty(g) && (y[g] = p[g]); }; return function(y, p) { d(y, p); function g() { this.constructor = y; } n(g, "__"), y.prototype = p === null ? Object.create(p) : (g.prototype = p.prototype, new g()); }; }(); Object.defineProperty(t, "__esModule", { value: !0 }); var s = r(4), a = r(5), o = r(6), u = r(7), l = r(8), c = r(13), f = r(14); c.TokenName[ 100 /* Identifier */ ] = "JSXIdentifier", c.TokenName[ 101 /* Text */ ] = "JSXText"; function m(d) { var y; switch (d.type) { case o.JSXSyntax.JSXIdentifier: var p = d; y = p.name; break; case o.JSXSyntax.JSXNamespacedName: var g = d; y = m(g.namespace) + ":" + m(g.name); break; case o.JSXSyntax.JSXMemberExpression: var b = d; y = m(b.object) + "." + m(b.property); break; /* istanbul ignore next */ default: break; } return y; } n(m, "getQualifiedElementName"); var h = function(d) { i(y, d); function y(p, g, b) { return d.call(this, p, g, b) || this; } return n(y, "JSXParser"), y.prototype.parsePrimaryExpression = function() { return this.match("<") ? this.parseJSXRoot() : d.prototype.parsePrimaryExpression.call(this); }, y.prototype.startJSX = function() { this.scanner.index = this.startMarker.index, this.scanner.lineNumber = this.startMarker.line, this.scanner.lineStart = this.startMarker. index - this.startMarker.column; }, y.prototype.finishJSX = function() { this.nextToken(); }, y.prototype.reenterJSX = function() { this.startJSX(), this.expectJSX("}"), this.config.tokens && this.tokens.pop(); }, y.prototype.createJSXNode = function() { return this.collectComments(), { index: this.scanner.index, line: this.scanner.lineNumber, column: this.scanner.index - this.scanner.lineStart }; }, y.prototype.createJSXChildNode = function() { return { index: this.scanner.index, line: this.scanner.lineNumber, column: this.scanner.index - this.scanner.lineStart }; }, y.prototype.scanXHTMLEntity = function(p) { for (var g = "&", b = !0, D = !1, x = !1, T = !1; !this.scanner.eof() && b && !D; ) { var w = this.scanner.source[this.scanner.index]; if (w === p) break; if (D = w === ";", g += w, ++this.scanner.index, !D) switch (g.length) { case 2: x = w === "#"; break; case 3: x && (T = w === "x", b = T || s.Character.isDecimalDigit(w.charCodeAt(0)), x = x && !T); break; default: b = b && !(x && !s.Character.isDecimalDigit(w.charCodeAt(0))), b = b && !(T && !s.Character.isHexDigit(w.charCodeAt(0))); break; } } if (b && D && g.length > 2) { var B = g.substr(1, g.length - 2); x && B.length > 1 ? g = String.fromCharCode(parseInt(B.substr(1), 10)) : T && B.length > 2 ? g = String.fromCharCode(parseInt( "0" + B.substr(1), 16)) : !x && !T && f.XHTMLEntities[B] && (g = f.XHTMLEntities[B]); } return g; }, y.prototype.lexJSX = function() { var p = this.scanner.source.charCodeAt(this.scanner.index); if (p === 60 || p === 62 || p === 47 || p === 58 || p === 61 || p === 123 || p === 125) { var g = this.scanner.source[this.scanner.index++]; return { type: 7, value: g, lineNumber: this.scanner.lineNumber, lineStart: this.scanner.lineStart, start: this.scanner.index - 1, end: this.scanner.index }; } if (p === 34 || p === 39) { for (var b = this.scanner.index, D = this.scanner.source[this.scanner.index++], x = ""; !this.scanner.eof(); ) { var T = this.scanner.source[this.scanner.index++]; if (T === D) break; T === "&" ? x += this.scanXHTMLEntity(D) : x += T; } return { type: 8, value: x, lineNumber: this.scanner.lineNumber, lineStart: this.scanner.lineStart, start: b, end: this.scanner.index }; } if (p === 46) { var w = this.scanner.source.charCodeAt(this.scanner.index + 1), B = this.scanner.source.charCodeAt(this.scanner.index + 2), g = w === 46 && B === 46 ? "..." : ".", b = this.scanner.index; return this.scanner.index += g.length, { type: 7, value: g, lineNumber: this.scanner.lineNumber, lineStart: this.scanner.lineStart, start: b, end: this.scanner.index }; } if (p === 96) return { type: 10, value: "", lineNumber: this.scanner.lineNumber, lineStart: this.scanner.lineStart, start: this.scanner.index, end: this.scanner.index }; if (s.Character.isIdentifierStart(p) && p !== 92) { var b = this.scanner.index; for (++this.scanner.index; !this.scanner.eof(); ) { var T = this.scanner.source.charCodeAt(this.scanner.index); if (s.Character.isIdentifierPart(T) && T !== 92) ++this.scanner.index; else if (T === 45) ++this.scanner.index; else break; } var k = this.scanner.source.slice(b, this.scanner.index); return { type: 100, value: k, lineNumber: this.scanner.lineNumber, lineStart: this.scanner.lineStart, start: b, end: this.scanner.index }; } return this.scanner.lex(); }, y.prototype.nextJSXToken = function() { this.collectComments(), this.startMarker.index = this.scanner.index, this.startMarker.line = this.scanner.lineNumber, this.startMarker. column = this.scanner.index - this.scanner.lineStart; var p = this.lexJSX(); return this.lastMarker.index = this.scanner.index, this.lastMarker.line = this.scanner.lineNumber, this.lastMarker.column = this. scanner.index - this.scanner.lineStart, this.config.tokens && this.tokens.push(this.convertToken(p)), p; }, y.prototype.nextJSXText = function() { this.startMarker.index = this.scanner.index, this.startMarker.line = this.scanner.lineNumber, this.startMarker.column = this.scanner. index - this.scanner.lineStart; for (var p = this.scanner.index, g = ""; !this.scanner.eof(); ) { var b = this.scanner.source[this.scanner.index]; if (b === "{" || b === "<") break; ++this.scanner.index, g += b, s.Character.isLineTerminator(b.charCodeAt(0)) && (++this.scanner.lineNumber, b === "\r" && this. scanner.source[this.scanner.index] === ` ` && ++this.scanner.index, this.scanner.lineStart = this.scanner.index); } this.lastMarker.index = this.scanner.index, this.lastMarker.line = this.scanner.lineNumber, this.lastMarker.column = this.scanner. index - this.scanner.lineStart; var D = { type: 101, value: g, lineNumber: this.scanner.lineNumber, lineStart: this.scanner.lineStart, start: p, end: this.scanner.index }; return g.length > 0 && this.config.tokens && this.tokens.push(this.convertToken(D)), D; }, y.prototype.peekJSXToken = function() { var p = this.scanner.saveState(); this.scanner.scanComments(); var g = this.lexJSX(); return this.scanner.restoreState(p), g; }, y.prototype.expectJSX = function(p) { var g = this.nextJSXToken(); (g.type !== 7 || g.value !== p) && this.throwUnexpectedToken(g); }, y.prototype.matchJSX = function(p) { var g = this.peekJSXToken(); return g.type === 7 && g.value === p; }, y.prototype.parseJSXIdentifier = function() { var p = this.createJSXNode(), g = this.nextJSXToken(); return g.type !== 100 && this.throwUnexpectedToken(g), this.finalize(p, new a.JSXIdentifier(g.value)); }, y.prototype.parseJSXElementName = function() { var p = this.createJSXNode(), g = this.parseJSXIdentifier(); if (this.matchJSX(":")) { var b = g; this.expectJSX(":"); var D = this.parseJSXIdentifier(); g = this.finalize(p, new a.JSXNamespacedName(b, D)); } else if (this.matchJSX(".")) for (; this.matchJSX("."); ) { var x = g; this.expectJSX("."); var T = this.parseJSXIdentifier(); g = this.finalize(p, new a.JSXMemberExpression(x, T)); } return g; }, y.prototype.parseJSXAttributeName = function() { var p = this.createJSXNode(), g, b = this.parseJSXIdentifier(); if (this.matchJSX(":")) { var D = b; this.expectJSX(":"); var x = this.parseJSXIdentifier(); g = this.finalize(p, new a.JSXNamespacedName(D, x)); } else g = b; return g; }, y.prototype.parseJSXStringLiteralAttribute = function() { var p = this.createJSXNode(), g = this.nextJSXToken(); g.type !== 8 && this.throwUnexpectedToken(g); var b = this.getTokenRaw(g); return this.finalize(p, new u.Literal(g.value, b)); }, y.prototype.parseJSXExpressionAttribute = function() { var p = this.createJSXNode(); this.expectJSX("{"), this.finishJSX(), this.match("}") && this.tolerateError("JSX attributes must only be assigned a non-empty\ expression"); var g = this.parseAssignmentExpression(); return this.reenterJSX(), this.finalize(p, new a.JSXExpressionContainer(g)); }, y.prototype.parseJSXAttributeValue = function() { return this.matchJSX("{") ? this.parseJSXExpressionAttribute() : this.matchJSX("<") ? this.parseJSXElement() : this.parseJSXStringLiteralAttribute(); }, y.prototype.parseJSXNameValueAttribute = function() { var p = this.createJSXNode(), g = this.parseJSXAttributeName(), b = null; return this.matchJSX("=") && (this.expectJSX("="), b = this.parseJSXAttributeValue()), this.finalize(p, new a.JSXAttribute(g, b)); }, y.prototype.parseJSXSpreadAttribute = function() { var p = this.createJSXNode(); this.expectJSX("{"), this.expectJSX("..."), this.finishJSX(); var g = this.parseAssignmentExpression(); return this.reenterJSX(), this.finalize(p, new a.JSXSpreadAttribute(g)); }, y.prototype.parseJSXAttributes = function() { for (var p = []; !this.matchJSX("/") && !this.matchJSX(">"); ) { var g = this.matchJSX("{") ? this.parseJSXSpreadAttribute() : this.parseJSXNameValueAttribute(); p.push(g); } return p; }, y.prototype.parseJSXOpeningElement = function() { var p = this.createJSXNode(); this.expectJSX("<"); var g = this.parseJSXElementName(), b = this.parseJSXAttributes(), D = this.matchJSX("/"); return D && this.expectJSX("/"), this.expectJSX(">"), this.finalize(p, new a.JSXOpeningElement(g, D, b)); }, y.prototype.parseJSXBoundaryElement = function() { var p = this.createJSXNode(); if (this.expectJSX("<"), this.matchJSX("/")) { this.expectJSX("/"); var g = this.parseJSXElementName(); return this.expectJSX(">"), this.finalize(p, new a.JSXClosingElement(g)); } var b = this.parseJSXElementName(), D = this.parseJSXAttributes(), x = this.matchJSX("/"); return x && this.expectJSX("/"), this.expectJSX(">"), this.finalize(p, new a.JSXOpeningElement(b, x, D)); }, y.prototype.parseJSXEmptyExpression = function() { var p = this.createJSXChildNode(); return this.collectComments(), this.lastMarker.index = this.scanner.index, this.lastMarker.line = this.scanner.lineNumber, this. lastMarker.column = this.scanner.index - this.scanner.lineStart, this.finalize(p, new a.JSXEmptyExpression()); }, y.prototype.parseJSXExpressionContainer = function() { var p = this.createJSXNode(); this.expectJSX("{"); var g; return this.matchJSX("}") ? (g = this.parseJSXEmptyExpression(), this.expectJSX("}")) : (this.finishJSX(), g = this.parseAssignmentExpression(), this.reenterJSX()), this.finalize(p, new a.JSXExpressionContainer(g)); }, y.prototype.parseJSXChildren = function() { for (var p = []; !this.scanner.eof(); ) { var g = this.createJSXChildNode(), b = this.nextJSXText(); if (b.start < b.end) { var D = this.getTokenRaw(b), x = this.finalize(g, new a.JSXText(b.value, D)); p.push(x); } if (this.scanner.source[this.scanner.index] === "{") { var T = this.parseJSXExpressionContainer(); p.push(T); } else break; } return p; }, y.prototype.parseComplexJSXElement = function(p) { for (var g = []; !this.scanner.eof(); ) { p.children = p.children.concat(this.parseJSXChildren()); var b = this.createJSXChildNode(), D = this.parseJSXBoundaryElement(); if (D.type === o.JSXSyntax.JSXOpeningElement) { var x = D; if (x.selfClosing) { var T = this.finalize(b, new a.JSXElement(x, [], null)); p.children.push(T); } else g.push(p), p = { node: b, opening: x, closing: null, children: [] }; } if (D.type === o.JSXSyntax.JSXClosingElement) { p.closing = D; var w = m(p.opening.name), B = m(p.closing.name); if (w !== B && this.tolerateError("Expected corresponding JSX closing tag for %0", w), g.length > 0) { var T = this.finalize(p.node, new a.JSXElement(p.opening, p.children, p.closing)); p = g[g.length - 1], p.children.push(T), g.pop(); } else break; } } return p; }, y.prototype.parseJSXElement = function() { var p = this.createJSXNode(), g = this.parseJSXOpeningElement(), b = [], D = null; if (!g.selfClosing) { var x = this.parseComplexJSXElement({ node: p, opening: g, closing: D, children: b }); b = x.children, D = x.closing; } return this.finalize(p, new a.JSXElement(g, b, D)); }, y.prototype.parseJSXRoot = function() { this.config.tokens && this.tokens.pop(), this.startJSX(); var p = this.parseJSXElement(); return this.finishJSX(), p; }, y.prototype.isStartOfExpression = function() { return d.prototype.isStartOfExpression.call(this) || this.match("<"); }, y; }(l.Parser); t.JSXParser = h; }, /* 4 */ /***/ function(e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var r = { // Unicode v8.0.0 NonAsciiIdentifierStart: NonAsciiIdentifierStart: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/, // Unicode v8.0.0 NonAsciiIdentifierPart: NonAsciiIdentifierPart: /[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/ }; t.Character = { /* tslint:disable:no-bitwise */ fromCodePoint: /* @__PURE__ */ n(function(i) { return i < 65536 ? String.fromCharCode(i) : String.fromCharCode(55296 + (i - 65536 >> 10)) + String.fromCharCode(56320 + (i - 65536 & 1023)); }, "fromCodePoint"), // https://tc39.github.io/ecma262/#sec-white-space isWhiteSpace: /* @__PURE__ */ n(function(i) { return i === 32 || i === 9 || i === 11 || i === 12 || i === 160 || i >= 5760 && [5760, 8192, 8193, 8194, 8195, 8196, 8197, 8198, 8199, 8200, 8201, 8202, 8239, 8287, 12288, 65279].indexOf(i) >= 0; }, "isWhiteSpace"), // https://tc39.github.io/ecma262/#sec-line-terminators isLineTerminator: /* @__PURE__ */ n(function(i) { return i === 10 || i === 13 || i === 8232 || i === 8233; }, "isLineTerminator"), // https://tc39.github.io/ecma262/#sec-names-and-keywords isIdentifierStart: /* @__PURE__ */ n(function(i) { return i === 36 || i === 95 || i >= 65 && i <= 90 || i >= 97 && i <= 122 || i === 92 || i >= 128 && r.NonAsciiIdentifierStart. test(t.Character.fromCodePoint(i)); }, "isIdentifierStart"), isIdentifierPart: /* @__PURE__ */ n(function(i) { return i === 36 || i === 95 || i >= 65 && i <= 90 || i >= 97 && i <= 122 || i >= 48 && i <= 57 || i === 92 || i >= 128 && r.NonAsciiIdentifierPart. test(t.Character.fromCodePoint(i)); }, "isIdentifierPart"), // https://tc39.github.io/ecma262/#sec-literals-numeric-literals isDecimalDigit: /* @__PURE__ */ n(function(i) { return i >= 48 && i <= 57; }, "isDecimalDigit"), isHexDigit: /* @__PURE__ */ n(function(i) { return i >= 48 && i <= 57 || i >= 65 && i <= 70 || i >= 97 && i <= 102; }, "isHexDigit"), isOctalDigit: /* @__PURE__ */ n(function(i) { return i >= 48 && i <= 55; }, "isOctalDigit") }; }, /* 5 */ /***/ function(e, t, r) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var i = r(6), s = function() { function p(g) { this.type = i.JSXSyntax.JSXClosingElement, this.name = g; } return n(p, "JSXClosingElement"), p; }(); t.JSXClosingElement = s; var a = function() { function p(g, b, D) { this.type = i.JSXSyntax.JSXElement, this.openingElement = g, this.children = b, this.closingElement = D; } return n(p, "JSXElement"), p; }(); t.JSXElement = a; var o = function() { function p() { this.type = i.JSXSyntax.JSXEmptyExpression; } return n(p, "JSXEmptyExpression"), p; }(); t.JSXEmptyExpression = o; var u = function() { function p(g) { this.type = i.JSXSyntax.JSXExpressionContainer, this.expression = g; } return n(p, "JSXExpressionContainer"), p; }(); t.JSXExpressionContainer = u; var l = function() { function p(g) { this.type = i.JSXSyntax.JSXIdentifier, this.name = g; } return n(p, "JSXIdentifier"), p; }(); t.JSXIdentifier = l; var c = function() { function p(g, b) { this.type = i.JSXSyntax.JSXMemberExpression, this.object = g, this.property = b; } return n(p, "JSXMemberExpression"), p; }(); t.JSXMemberExpression = c; var f = function() { function p(g, b) { this.type = i.JSXSyntax.JSXAttribute, this.name = g, this.value = b; } return n(p, "JSXAttribute"), p; }(); t.JSXAttribute = f; var m = function() { function p(g, b) { this.type = i.JSXSyntax.JSXNamespacedName, this.namespace = g, this.name = b; } return n(p, "JSXNamespacedName"), p; }(); t.JSXNamespacedName = m; var h = function() { function p(g, b, D) { this.type = i.JSXSyntax.JSXOpeningElement, this.name = g, this.selfClosing = b, this.attributes = D; } return n(p, "JSXOpeningElement"), p; }(); t.JSXOpeningElement = h; var d = function() { function p(g) { this.type = i.JSXSyntax.JSXSpreadAttribute, this.argument = g; } return n(p, "JSXSpreadAttribute"), p; }(); t.JSXSpreadAttribute = d; var y = function() { function p(g, b) { this.type = i.JSXSyntax.JSXText, this.value = g, this.raw = b; } return n(p, "JSXText"), p; }(); t.JSXText = y; }, /* 6 */ /***/ function(e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), t.JSXSyntax = { JSXAttribute: "JSXAttribute", JSXClosingElement: "JSXClosingElement", JSXElement: "JSXElement", JSXEmptyExpression: "JSXEmptyExpression", JSXExpressionContainer: "JSXExpressionContainer", JSXIdentifier: "JSXIdentifier", JSXMemberExpression: "JSXMemberExpression", JSXNamespacedName: "JSXNamespacedName", JSXOpeningElement: "JSXOpeningElement", JSXSpreadAttribute: "JSXSpreadAttribute", JSXText: "JSXText" }; }, /* 7 */ /***/ function(e, t, r) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var i = r(2), s = function() { function K(z) { this.type = i.Syntax.ArrayExpression, this.elements = z; } return n(K, "ArrayExpression"), K; }(); t.ArrayExpression = s; var a = function() { function K(z) { this.type = i.Syntax.ArrayPattern, this.elements = z; } return n(K, "ArrayPattern"), K; }(); t.ArrayPattern = a; var o = function() { function K(z, ie, Ue) { this.type = i.Syntax.ArrowFunctionExpression, this.id = null, this.params = z, this.body = ie, this.generator = !1, this.expression = Ue, this.async = !1; } return n(K, "ArrowFunctionExpression"), K; }(); t.ArrowFunctionExpression = o; var u = function() { function K(z, ie, Ue) { this.type = i.Syntax.AssignmentExpression, this.operator = z, this.left = ie, this.right = Ue; } return n(K, "AssignmentExpression"), K; }(); t.AssignmentExpression = u; var l = function() { function K(z, ie) { this.type = i.Syntax.AssignmentPattern, this.left = z, this.right = ie; } return n(K, "AssignmentPattern"), K; }(); t.AssignmentPattern = l; var c = function() { function K(z, ie, Ue) { this.type = i.Syntax.ArrowFunctionExpression, this.id = null, this.params = z, this.body = ie, this.generator = !1, this.expression = Ue, this.async = !0; } return n(K, "AsyncArrowFunctionExpression"), K; }(); t.AsyncArrowFunctionExpression = c; var f = function() { function K(z, ie, Ue) { this.type = i.Syntax.FunctionDeclaration, this.id = z, this.params = ie, this.body = Ue, this.generator = !1, this.expression = !1, this.async = !0; } return n(K, "AsyncFunctionDeclaration"), K; }(); t.AsyncFunctionDeclaration = f; var m = function() { function K(z, ie, Ue) { this.type = i.Syntax.FunctionExpression, this.id = z, this.params = ie, this.body = Ue, this.generator = !1, this.expression = !1, this.async = !0; } return n(K, "AsyncFunctionExpression"), K; }(); t.AsyncFunctionExpression = m; var h = function() { function K(z) { this.type = i.Syntax.AwaitExpression, this.argument = z; } return n(K, "AwaitExpression"), K; }(); t.AwaitExpression = h; var d = function() { function K(z, ie, Ue) { var xi = z === "||" || z === "&&"; this.type = xi ? i.Syntax.LogicalExpression : i.Syntax.BinaryExpression, this.operator = z, this.left = ie, this.right = Ue; } return n(K, "BinaryExpression"), K; }(); t.BinaryExpression = d; var y = function() { function K(z) { this.type = i.Syntax.BlockStatement, this.body = z; } return n(K, "BlockStatement"), K; }(); t.BlockStatement = y; var p = function() { function K(z) { this.type = i.Syntax.BreakStatement, this.label = z; } return n(K, "BreakStatement"), K; }(); t.BreakStatement = p; var g = function() { function K(z, ie) { this.type = i.Syntax.CallExpression, this.callee = z, this.arguments = ie; } return n(K, "CallExpression"), K; }(); t.CallExpression = g; var b = function() { function K(z, ie) { this.type = i.Syntax.CatchClause, this.param = z, this.body = ie; } return n(K, "CatchClause"), K; }(); t.CatchClause = b; var D = function() { function K(z) { this.type = i.Syntax.ClassBody, this.body = z; } return n(K, "ClassBody"), K; }(); t.ClassBody = D; var x = function() { function K(z, ie, Ue) { this.type = i.Syntax.ClassDeclaration, this.id = z, this.superClass = ie, this.body = Ue; } return n(K, "ClassDeclaration"), K; }(); t.ClassDeclaration = x; var T = function() { function K(z, ie, Ue) { this.type = i.Syntax.ClassExpression, this.id = z, this.superClass = ie, this.body = Ue; } return n(K, "ClassExpression"), K; }(); t.ClassExpression = T; var w = function() { function K(z, ie) { this.type = i.Syntax.MemberExpression, this.computed = !0, this.object = z, this.property = ie; } return n(K, "ComputedMemberExpression"), K; }(); t.ComputedMemberExpression = w; var B = function() { function K(z, ie, Ue) { this.type = i.Syntax.ConditionalExpression, this.test = z, this.consequent = ie, this.alternate = Ue; } return n(K, "ConditionalExpression"), K; }(); t.ConditionalExpression = B; var k = function() { function K(z) { this.type = i.Syntax.ContinueStatement, this.label = z; } return n(K, "ContinueStatement"), K; }(); t.ContinueStatement = k; var j = function() { function K() { this.type = i.Syntax.DebuggerStatement; } return n(K, "DebuggerStatement"), K; }(); t.DebuggerStatement = j; var W = function() { function K(z, ie) { this.type = i.Syntax.ExpressionStatement, this.expression = z, this.directive = ie; } return n(K, "Directive"), K; }(); t.Directive = W; var Y = function() { function K(z, ie) { this.type = i.Syntax.DoWhileStatement, this.body = z, this.test = ie; } return n(K, "DoWhileStatement"), K; }(); t.DoWhileStatement = Y; var G = function() { function K() { this.type = i.Syntax.EmptyStatement; } return n(K, "EmptyStatement"), K; }(); t.EmptyStatement = G; var ye = function() { function K(z) { this.type = i.Syntax.ExportAllDeclaration, this.source = z; } return n(K, "ExportAllDeclaration"), K; }(); t.ExportAllDeclaration = ye; var re = function() { function K(z) { this.type = i.Syntax.ExportDefaultDeclaration, this.declaration = z; } return n(K, "ExportDefaultDeclaration"), K; }(); t.ExportDefaultDeclaration = re; var te = function() { function K(z, ie, Ue) { this.type = i.Syntax.ExportNamedDeclaration, this.declaration = z, this.specifiers = ie, this.source = Ue; } return n(K, "ExportNamedDeclaration"), K; }(); t.ExportNamedDeclaration = te; var ve = function() { function K(z, ie) { this.type = i.Syntax.ExportSpecifier, this.exported = ie, this.local = z; } return n(K, "ExportSpecifier"), K; }(); t.ExportSpecifier = ve; var Je = function() { function K(z) { this.type = i.Syntax.ExpressionStatement, this.expression = z; } return n(K, "ExpressionStatement"), K; }(); t.ExpressionStatement = Je; var Ie = function() { function K(z, ie, Ue) { this.type = i.Syntax.ForInStatement, this.left = z, this.right = ie, this.body = Ue, this.each = !1; } return n(K, "ForInStatement"), K; }(); t.ForInStatement = Ie; var se = function() { function K(z, ie, Ue) { this.type = i.Syntax.ForOfStatement, this.left = z, this.right = ie, this.body = Ue; } return n(K, "ForOfStatement"), K; }(); t.ForOfStatement = se; var Ne = function() { function K(z, ie, Ue, xi) { this.type = i.Syntax.ForStatement, this.init = z, this.test = ie, this.update = Ue, this.body = xi; } return n(K, "ForStatement"), K; }(); t.ForStatement = Ne; var Be = function() { function K(z, ie, Ue, xi) { this.type = i.Syntax.FunctionDeclaration, this.id = z, this.params = ie, this.body = Ue, this.generator = xi, this.expression = !1, this.async = !1; } return n(K, "FunctionDeclaration"), K; }(); t.FunctionDeclaration = Be; var Cr = function() { function K(z, ie, Ue, xi) { this.type = i.Syntax.FunctionExpression, this.id = z, this.params = ie, this.body = Ue, this.generator = xi, this.expression = !1, this.async = !1; } return n(K, "FunctionExpression"), K; }(); t.FunctionExpression = Cr; var Ae = function() { function K(z) { this.type = i.Syntax.Identifier, this.name = z; } return n(K, "Identifier"), K; }(); t.Identifier = Ae; var _e = function() { function K(z, ie, Ue) { this.type = i.Syntax.IfStatement, this.test = z, this.consequent = ie, this.alternate = Ue; } return n(K, "IfStatement"), K; }(); t.IfStatement = _e; var Me = function() { function K(z, ie) { this.type = i.Syntax.ImportDeclaration, this.specifiers = z, this.source = ie; } return n(K, "ImportDeclaration"), K; }(); t.ImportDeclaration = Me; var Nt = function() { function K(z) { this.type = i.Syntax.ImportDefaultSpecifier, this.local = z; } return n(K, "ImportDefaultSpecifier"), K; }(); t.ImportDefaultSpecifier = Nt; var tr = function() { function K(z) { this.type = i.Syntax.ImportNamespaceSpecifier, this.local = z; } return n(K, "ImportNamespaceSpecifier"), K; }(); t.ImportNamespaceSpecifier = tr; var Yr = function() { function K(z, ie) { this.type = i.Syntax.ImportSpecifier, this.local = z, this.imported = ie; } return n(K, "ImportSpecifier"), K; }(); t.ImportSpecifier = Yr; var Ni = function() { function K(z, ie) { this.type = i.Syntax.LabeledStatement, this.label = z, this.body = ie; } return n(K, "LabeledStatement"), K; }(); t.LabeledStatement = Ni; var pn = function() { function K(z, ie) { this.type = i.Syntax.Literal, this.value = z, this.raw = ie; } return n(K, "Literal"), K; }(); t.Literal = pn; var co = function() { function K(z, ie) { this.type = i.Syntax.MetaProperty, this.meta = z, this.property = ie; } return n(K, "MetaProperty"), K; }(); t.MetaProperty = co; var Os = function() { function K(z, ie, Ue, xi, xb) { this.type = i.Syntax.MethodDefinition, this.key = z, this.computed = ie, this.value = Ue, this.kind = xi, this.static = xb; } return n(K, "MethodDefinition"), K; }(); t.MethodDefinition = Os; var ks = function() { function K(z) { this.type = i.Syntax.Program, this.body = z, this.sourceType = "module"; } return n(K, "Module"), K; }(); t.Module = ks; var Bs = function() { function K(z, ie) { this.type = i.Syntax.NewExpression, this.callee = z, this.arguments = ie; } return n(K, "NewExpression"), K; }(); t.NewExpression = Bs; var fo = function() { function K(z) { this.type = i.Syntax.ObjectExpression, this.properties = z; } return n(K, "ObjectExpression"), K; }(); t.ObjectExpression = fo; var Vu = function() { function K(z) { this.type = i.Syntax.ObjectPattern, this.properties = z; } return n(K, "ObjectPattern"), K; }(); t.ObjectPattern = Vu; var pe = function() { function K(z, ie, Ue, xi, xb, sG) { this.type = i.Syntax.Property, this.key = ie, this.computed = Ue, this.value = xi, this.kind = z, this.method = xb, this.shorthand = sG; } return n(K, "Property"), K; }(); t.Property = pe; var oe = function() { function K(z, ie, Ue, xi) { this.type = i.Syntax.Literal, this.value = z, this.raw = ie, this.regex = { pattern: Ue, flags: xi }; } return n(K, "RegexLiteral"), K; }(); t.RegexLiteral = oe; var Re = function() { function K(z) { this.type = i.Syntax.RestElement, this.argument = z; } return n(K, "RestElement"), K; }(); t.RestElement = Re; var bt = function() { function K(z) { this.type = i.Syntax.ReturnStatement, this.argument = z; } return n(K, "ReturnStatement"), K; }(); t.ReturnStatement = bt; var Kt = function() { function K(z) { this.type = i.Syntax.Program, this.body = z, this.sourceType = "script"; } return n(K, "Script"), K; }(); t.Script = Kt; var xt = function() { function K(z) { this.type = i.Syntax.SequenceExpression, this.expressions = z; } return n(K, "SequenceExpression"), K; }(); t.SequenceExpression = xt; var fr = function() { function K(z) { this.type = i.Syntax.SpreadElement, this.argument = z; } return n(K, "SpreadElement"), K; }(); t.SpreadElement = fr; var os = function() { function K(z, ie) { this.type = i.Syntax.MemberExpression, this.computed = !1, this.object = z, this.property = ie; } return n(K, "StaticMemberExpression"), K; }(); t.StaticMemberExpression = os; var rr = function() { function K() { this.type = i.Syntax.Super; } return n(K, "Super"), K; }(); t.Super = rr; var mr = function() { function K(z, ie) { this.type = i.Syntax.SwitchCase, this.test = z, this.consequent = ie; } return n(K, "SwitchCase"), K; }(); t.SwitchCase = mr; var Gr = function() { function K(z, ie) { this.type = i.Syntax.SwitchStatement, this.discriminant = z, this.cases = ie; } return n(K, "SwitchStatement"), K; }(); t.SwitchStatement = Gr; var yr = function() { function K(z, ie) { this.type = i.Syntax.TaggedTemplateExpression, this.tag = z, this.quasi = ie; } return n(K, "TaggedTemplateExpression"), K; }(); t.TaggedTemplateExpression = yr; var ca = function() { function K(z, ie) { this.type = i.Syntax.TemplateElement, this.value = z, this.tail = ie; } return n(K, "TemplateElement"), K; }(); t.TemplateElement = ca; var ci = function() { function K(z, ie) { this.type = i.Syntax.TemplateLiteral, this.quasis = z, this.expressions = ie; } return n(K, "TemplateLiteral"), K; }(); t.TemplateLiteral = ci; var wr = function() { function K() { this.type = i.Syntax.ThisExpression; } return n(K, "ThisExpression"), K; }(); t.ThisExpression = wr; var Di = function() { function K(z) { this.type = i.Syntax.ThrowStatement, this.argument = z; } return n(K, "ThrowStatement"), K; }(); t.ThrowStatement = Di; var vi = function() { function K(z, ie, Ue) { this.type = i.Syntax.TryStatement, this.block = z, this.handler = ie, this.finalizer = Ue; } return n(K, "TryStatement"), K; }(); t.TryStatement = vi; var Mi = function() { function K(z, ie) { this.type = i.Syntax.UnaryExpression, this.operator = z, this.argument = ie, this.prefix = !0; } return n(K, "UnaryExpression"), K; }(); t.UnaryExpression = Mi; var Jc = function() { function K(z, ie, Ue) { this.type = i.Syntax.UpdateExpression, this.operator = z, this.argument = ie, this.prefix = Ue; } return n(K, "UpdateExpression"), K; }(); t.UpdateExpression = Jc; var Db = function() { function K(z, ie) { this.type = i.Syntax.VariableDeclaration, this.declarations = z, this.kind = ie; } return n(K, "VariableDeclaration"), K; }(); t.VariableDeclaration = Db; var vb = function() { function K(z, ie) { this.type = i.Syntax.VariableDeclarator, this.id = z, this.init = ie; } return n(K, "VariableDeclarator"), K; }(); t.VariableDeclarator = vb; var ch = function() { function K(z, ie) { this.type = i.Syntax.WhileStatement, this.test = z, this.body = ie; } return n(K, "WhileStatement"), K; }(); t.WhileStatement = ch; var fh = function() { function K(z, ie) { this.type = i.Syntax.WithStatement, this.object = z, this.body = ie; } return n(K, "WithStatement"), K; }(); t.WithStatement = fh; var dh = function() { function K(z, ie) { this.type = i.Syntax.YieldExpression, this.argument = z, this.delegate = ie; } return n(K, "YieldExpression"), K; }(); t.YieldExpression = dh; }, /* 8 */ /***/ function(e, t, r) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var i = r(9), s = r(10), a = r(11), o = r(7), u = r(12), l = r(2), c = r(13), f = "ArrowParameterPlaceHolder", m = function() { function h(d, y, p) { y === void 0 && (y = {}), this.config = { range: typeof y.range == "boolean" && y.range, loc: typeof y.loc == "boolean" && y.loc, source: null, tokens: typeof y.tokens == "boolean" && y.tokens, comment: typeof y.comment == "boolean" && y.comment, tolerant: typeof y.tolerant == "boolean" && y.tolerant }, this.config.loc && y.source && y.source !== null && (this.config.source = String(y.source)), this.delegate = p, this.errorHandler = new s.ErrorHandler(), this.errorHandler.tolerant = this.config.tolerant, this.scanner = new u.Scanner(d, this.errorHandler), this. scanner.trackComment = this.config.comment, this.operatorPrecedence = { ")": 0, ";": 0, ",": 0, "=": 0, "]": 0, "||": 1, "&&": 2, "|": 3, "^": 4, "&": 5, "==": 6, "!=": 6, "===": 6, "!==": 6, "<": 7, ">": 7, "<=": 7, ">=": 7, "<<": 8, ">>": 8, ">>>": 8, "+": 9, "-": 9, "*": 11, "/": 11, "%": 11 }, this.lookahead = { type: 2, value: "", lineNumber: this.scanner.lineNumber, lineStart: 0, start: 0, end: 0 }, this.hasLineTerminator = !1, this.context = { isModule: !1, await: !1, allowIn: !0, allowStrictDirective: !0, allowYield: !0, firstCoverInitializedNameError: null, isAssignmentTarget: !1, isBindingElement: !1, inFunctionBody: !1, inIteration: !1, inSwitch: !1, labelSet: {}, strict: !1 }, this.tokens = [], this.startMarker = { index: 0, line: this.scanner.lineNumber, column: 0 }, this.lastMarker = { index: 0, line: this.scanner.lineNumber, column: 0 }, this.nextToken(), this.lastMarker = { index: this.scanner.index, line: this.scanner.lineNumber, column: this.scanner.index - this.scanner.lineStart }; } return n(h, "Parser"), h.prototype.throwError = function(d) { for (var y = [], p = 1; p < arguments.length; p++) y[p - 1] = arguments[p]; var g = Array.prototype.slice.call(arguments, 1), b = d.replace(/%(\d)/g, function(w, B) { return i.assert(B < g.length, "Message reference must be in range"), g[B]; }), D = this.lastMarker.index, x = this.lastMarker.line, T = this.lastMarker.column + 1; throw this.errorHandler.createError(D, x, T, b); }, h.prototype.tolerateError = function(d) { for (var y = [], p = 1; p < arguments.length; p++) y[p - 1] = arguments[p]; var g = Array.prototype.slice.call(arguments, 1), b = d.replace(/%(\d)/g, function(w, B) { return i.assert(B < g.length, "Message reference must be in range"), g[B]; }), D = this.lastMarker.index, x = this.scanner.lineNumber, T = this.lastMarker.column + 1; this.errorHandler.tolerateError(D, x, T, b); }, h.prototype.unexpectedTokenError = function(d, y) { var p = y || a.Messages.UnexpectedToken, g; if (d ? (y || (p = d.type === 2 ? a.Messages.UnexpectedEOS : d.type === 3 ? a.Messages.UnexpectedIdentifier : d.type === 6 ? a. Messages.UnexpectedNumber : d.type === 8 ? a.Messages.UnexpectedString : d.type === 10 ? a.Messages.UnexpectedTemplate : a.Messages. UnexpectedToken, d.type === 4 && (this.scanner.isFutureReservedWord(d.value) ? p = a.Messages.UnexpectedReserved : this.context. strict && this.scanner.isStrictModeReservedWord(d.value) && (p = a.Messages.StrictReservedWord))), g = d.value) : g = "ILLEGAL", p = p.replace("%0", g), d && typeof d.lineNumber == "number") { var b = d.start, D = d.lineNumber, x = this.lastMarker.index - this.lastMarker.column, T = d.start - x + 1; return this.errorHandler.createError(b, D, T, p); } else { var b = this.lastMarker.index, D = this.lastMarker.line, T = this.lastMarker.column + 1; return this.errorHandler.createError(b, D, T, p); } }, h.prototype.throwUnexpectedToken = function(d, y) { throw this.unexpectedTokenError(d, y); }, h.prototype.tolerateUnexpectedToken = function(d, y) { this.errorHandler.tolerate(this.unexpectedTokenError(d, y)); }, h.prototype.collectComments = function() { if (!this.config.comment) this.scanner.scanComments(); else { var d = this.scanner.scanComments(); if (d.length > 0 && this.delegate) for (var y = 0; y < d.length; ++y) { var p = d[y], g = void 0; g = { type: p.multiLine ? "BlockComment" : "LineComment", value: this.scanner.source.slice(p.slice[0], p.slice[1]) }, this.config.range && (g.range = p.range), this.config.loc && (g.loc = p.loc); var b = { start: { line: p.loc.start.line, column: p.loc.start.column, offset: p.range[0] }, end: { line: p.loc.end.line, column: p.loc.end.column, offset: p.range[1] } }; this.delegate(g, b); } } }, h.prototype.getTokenRaw = function(d) { return this.scanner.source.slice(d.start, d.end); }, h.prototype.convertToken = function(d) { var y = { type: c.TokenName[d.type], value: this.getTokenRaw(d) }; if (this.config.range && (y.range = [d.start, d.end]), this.config.loc && (y.loc = { start: { line: this.startMarker.line, column: this.startMarker.column }, end: { line: this.scanner.lineNumber, column: this.scanner.index - this.scanner.lineStart } }), d.type === 9) { var p = d.pattern, g = d.flags; y.regex = { pattern: p, flags: g }; } return y; }, h.prototype.nextToken = function() { var d = this.lookahead; this.lastMarker.index = this.scanner.index, this.lastMarker.line = this.scanner.lineNumber, this.lastMarker.column = this.scanner. index - this.scanner.lineStart, this.collectComments(), this.scanner.index !== this.startMarker.index && (this.startMarker.index = this.scanner.index, this.startMarker.line = this.scanner.lineNumber, this.startMarker.column = this.scanner.index - this.scanner. lineStart); var y = this.scanner.lex(); return this.hasLineTerminator = d.lineNumber !== y.lineNumber, y && this.context.strict && y.type === 3 && this.scanner.isStrictModeReservedWord( y.value) && (y.type = 4), this.lookahead = y, this.config.tokens && y.type !== 2 && this.tokens.push(this.convertToken(y)), d; }, h.prototype.nextRegexToken = function() { this.collectComments(); var d = this.scanner.scanRegExp(); return this.config.tokens && (this.tokens.pop(), this.tokens.push(this.convertToken(d))), this.lookahead = d, this.nextToken(), d; }, h.prototype.createNode = function() { return { index: this.startMarker.index, line: this.startMarker.line, column: this.startMarker.column }; }, h.prototype.startNode = function(d, y) { y === void 0 && (y = 0); var p = d.start - d.lineStart, g = d.lineNumber; return p < 0 && (p += y, g--), { index: d.start, line: g, column: p }; }, h.prototype.finalize = function(d, y) { if (this.config.range && (y.range = [d.index, this.lastMarker.index]), this.config.loc && (y.loc = { start: { line: d.line, column: d.column }, end: { line: this.lastMarker.line, column: this.lastMarker.column } }, this.config.source && (y.loc.source = this.config.source)), this.delegate) { var p = { start: { line: d.line, column: d.column, offset: d.index }, end: { line: this.lastMarker.line, column: this.lastMarker.column, offset: this.lastMarker.index } }; this.delegate(y, p); } return y; }, h.prototype.expect = function(d) { var y = this.nextToken(); (y.type !== 7 || y.value !== d) && this.throwUnexpectedToken(y); }, h.prototype.expectCommaSeparator = function() { if (this.config.tolerant) { var d = this.lookahead; d.type === 7 && d.value === "," ? this.nextToken() : d.type === 7 && d.value === ";" ? (this.nextToken(), this.tolerateUnexpectedToken( d)) : this.tolerateUnexpectedToken(d, a.Messages.UnexpectedToken); } else this.expect(","); }, h.prototype.expectKeyword = function(d) { var y = this.nextToken(); (y.type !== 4 || y.value !== d) && this.throwUnexpectedToken(y); }, h.prototype.match = function(d) { return this.lookahead.type === 7 && this.lookahead.value === d; }, h.prototype.matchKeyword = function(d) { return this.lookahead.type === 4 && this.lookahead.value === d; }, h.prototype.matchContextualKeyword = function(d) { return this.lookahead.type === 3 && this.lookahead.value === d; }, h.prototype.matchAssign = function() { if (this.lookahead.type !== 7) return !1; var d = this.lookahead.value; return d === "=" || d === "*=" || d === "**=" || d === "/=" || d === "%=" || d === "+=" || d === "-=" || d === "<<=" || d === "\ >>=" || d === ">>>=" || d === "&=" || d === "^=" || d === "|="; }, h.prototype.isolateCoverGrammar = function(d) { var y = this.context.isBindingElement, p = this.context.isAssignmentTarget, g = this.context.firstCoverInitializedNameError; this.context.isBindingElement = !0, this.context.isAssignmentTarget = !0, this.context.firstCoverInitializedNameError = null; var b = d.call(this); return this.context.firstCoverInitializedNameError !== null && this.throwUnexpectedToken(this.context.firstCoverInitializedNameError), this.context.isBindingElement = y, this.context.isAssignmentTarget = p, this.context.firstCoverInitializedNameError = g, b; }, h.prototype.inheritCoverGrammar = function(d) { var y = this.context.isBindingElement, p = this.context.isAssignmentTarget, g = this.context.firstCoverInitializedNameError; this.context.isBindingElement = !0, this.context.isAssignmentTarget = !0, this.context.firstCoverInitializedNameError = null; var b = d.call(this); return this.context.isBindingElement = this.context.isBindingElement && y, this.context.isAssignmentTarget = this.context.isAssignmentTarget && p, this.context.firstCoverInitializedNameError = g || this.context.firstCoverInitializedNameError, b; }, h.prototype.consumeSemicolon = function() { this.match(";") ? this.nextToken() : this.hasLineTerminator || (this.lookahead.type !== 2 && !this.match("}") && this.throwUnexpectedToken( this.lookahead), this.lastMarker.index = this.startMarker.index, this.lastMarker.line = this.startMarker.line, this.lastMarker. column = this.startMarker.column); }, h.prototype.parsePrimaryExpression = function() { var d = this.createNode(), y, p, g; switch (this.lookahead.type) { case 3: (this.context.isModule || this.context.await) && this.lookahead.value === "await" && this.tolerateUnexpectedToken(this.lookahead), y = this.matchAsyncFunction() ? this.parseFunctionExpression() : this.finalize(d, new o.Identifier(this.nextToken().value)); break; case 6: case 8: this.context.strict && this.lookahead.octal && this.tolerateUnexpectedToken(this.lookahead, a.Messages.StrictOctalLiteral), this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1, p = this.nextToken(), g = this.getTokenRaw(p), y = this.finalize(d, new o.Literal(p.value, g)); break; case 1: this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1, p = this.nextToken(), g = this.getTokenRaw(p), y = this.finalize(d, new o.Literal(p.value === "true", g)); break; case 5: this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1, p = this.nextToken(), g = this.getTokenRaw(p), y = this.finalize(d, new o.Literal(null, g)); break; case 10: y = this.parseTemplateLiteral(); break; case 7: switch (this.lookahead.value) { case "(": this.context.isBindingElement = !1, y = this.inheritCoverGrammar(this.parseGroupExpression); break; case "[": y = this.inheritCoverGrammar(this.parseArrayInitializer); break; case "{": y = this.inheritCoverGrammar(this.parseObjectInitializer); break; case "/": case "/=": this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1, this.scanner.index = this.startMarker.index, p = this.nextRegexToken(), g = this.getTokenRaw(p), y = this.finalize(d, new o.RegexLiteral(p.regex, g, p.pattern, p.flags)); break; default: y = this.throwUnexpectedToken(this.nextToken()); } break; case 4: !this.context.strict && this.context.allowYield && this.matchKeyword("yield") ? y = this.parseIdentifierName() : !this.context. strict && this.matchKeyword("let") ? y = this.finalize(d, new o.Identifier(this.nextToken().value)) : (this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1, this.matchKeyword("function") ? y = this.parseFunctionExpression() : this.matchKeyword( "this") ? (this.nextToken(), y = this.finalize(d, new o.ThisExpression())) : this.matchKeyword("class") ? y = this.parseClassExpression() : y = this.throwUnexpectedToken(this.nextToken())); break; default: y = this.throwUnexpectedToken(this.nextToken()); } return y; }, h.prototype.parseSpreadElement = function() { var d = this.createNode(); this.expect("..."); var y = this.inheritCoverGrammar(this.parseAssignmentExpression); return this.finalize(d, new o.SpreadElement(y)); }, h.prototype.parseArrayInitializer = function() { var d = this.createNode(), y = []; for (this.expect("["); !this.match("]"); ) if (this.match(",")) this.nextToken(), y.push(null); else if (this.match("...")) { var p = this.parseSpreadElement(); this.match("]") || (this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1, this.expect(",")), y.push(p); } else y.push(this.inheritCoverGrammar(this.parseAssignmentExpression)), this.match("]") || this.expect(","); return this.expect("]"), this.finalize(d, new o.ArrayExpression(y)); }, h.prototype.parsePropertyMethod = function(d) { this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1; var y = this.context.strict, p = this.context.allowStrictDirective; this.context.allowStrictDirective = d.simple; var g = this.isolateCoverGrammar(this.parseFunctionSourceElements); return this.context.strict && d.firstRestricted && this.tolerateUnexpectedToken(d.firstRestricted, d.message), this.context.strict && d.stricted && this.tolerateUnexpectedToken(d.stricted, d.message), this.context.strict = y, this.context.allowStrictDirective = p, g; }, h.prototype.parsePropertyMethodFunction = function() { var d = !1, y = this.createNode(), p = this.context.allowYield; this.context.allowYield = !0; var g = this.parseFormalParameters(), b = this.parsePropertyMethod(g); return this.context.allowYield = p, this.finalize(y, new o.FunctionExpression(null, g.params, b, d)); }, h.prototype.parsePropertyMethodAsyncFunction = function() { var d = this.createNode(), y = this.context.allowYield, p = this.context.await; this.context.allowYield = !1, this.context.await = !0; var g = this.parseFormalParameters(), b = this.parsePropertyMethod(g); return this.context.allowYield = y, this.context.await = p, this.finalize(d, new o.AsyncFunctionExpression(null, g.params, b)); }, h.prototype.parseObjectPropertyKey = function() { var d = this.createNode(), y = this.nextToken(), p; switch (y.type) { case 8: case 6: this.context.strict && y.octal && this.tolerateUnexpectedToken(y, a.Messages.StrictOctalLiteral); var g = this.getTokenRaw(y); p = this.finalize(d, new o.Literal(y.value, g)); break; case 3: case 1: case 5: case 4: p = this.finalize(d, new o.Identifier(y.value)); break; case 7: y.value === "[" ? (p = this.isolateCoverGrammar(this.parseAssignmentExpression), this.expect("]")) : p = this.throwUnexpectedToken( y); break; default: p = this.throwUnexpectedToken(y); } return p; }, h.prototype.isPropertyKey = function(d, y) { return d.type === l.Syntax.Identifier && d.name === y || d.type === l.Syntax.Literal && d.value === y; }, h.prototype.parseObjectProperty = function(d) { var y = this.createNode(), p = this.lookahead, g, b = null, D = null, x = !1, T = !1, w = !1, B = !1; if (p.type === 3) { var k = p.value; this.nextToken(), x = this.match("["), B = !this.hasLineTerminator && k === "async" && !this.match(":") && !this.match("(") && !this.match("*") && !this.match(","), b = B ? this.parseObjectPropertyKey() : this.finalize(y, new o.Identifier(k)); } else this.match("*") ? this.nextToken() : (x = this.match("["), b = this.parseObjectPropertyKey()); var j = this.qualifiedPropertyName(this.lookahead); if (p.type === 3 && !B && p.value === "get" && j) g = "get", x = this.match("["), b = this.parseObjectPropertyKey(), this.context.allowYield = !1, D = this.parseGetterMethod(); else if (p.type === 3 && !B && p.value === "set" && j) g = "set", x = this.match("["), b = this.parseObjectPropertyKey(), D = this.parseSetterMethod(); else if (p.type === 7 && p.value === "*" && j) g = "init", x = this.match("["), b = this.parseObjectPropertyKey(), D = this.parseGeneratorMethod(), T = !0; else if (b || this.throwUnexpectedToken(this.lookahead), g = "init", this.match(":") && !B) !x && this.isPropertyKey(b, "__proto__") && (d.value && this.tolerateError(a.Messages.DuplicateProtoProperty), d.value = !0), this.nextToken(), D = this.inheritCoverGrammar(this.parseAssignmentExpression); else if (this.match("(")) D = B ? this.parsePropertyMethodAsyncFunction() : this.parsePropertyMethodFunction(), T = !0; else if (p.type === 3) { var k = this.finalize(y, new o.Identifier(p.value)); if (this.match("=")) { this.context.firstCoverInitializedNameError = this.lookahead, this.nextToken(), w = !0; var W = this.isolateCoverGrammar(this.parseAssignmentExpression); D = this.finalize(y, new o.AssignmentPattern(k, W)); } else w = !0, D = k; } else this.throwUnexpectedToken(this.nextToken()); return this.finalize(y, new o.Property(g, b, x, D, T, w)); }, h.prototype.parseObjectInitializer = function() { var d = this.createNode(); this.expect("{"); for (var y = [], p = { value: !1 }; !this.match("}"); ) y.push(this.parseObjectProperty(p)), this.match("}") || this.expectCommaSeparator(); return this.expect("}"), this.finalize(d, new o.ObjectExpression(y)); }, h.prototype.parseTemplateHead = function() { i.assert(this.lookahead.head, "Template literal must start with a template head"); var d = this.createNode(), y = this.nextToken(), p = y.value, g = y.cooked; return this.finalize(d, new o.TemplateElement({ raw: p, cooked: g }, y.tail)); }, h.prototype.parseTemplateElement = function() { this.lookahead.type !== 10 && this.throwUnexpectedToken(); var d = this.createNode(), y = this.nextToken(), p = y.value, g = y.cooked; return this.finalize(d, new o.TemplateElement({ raw: p, cooked: g }, y.tail)); }, h.prototype.parseTemplateLiteral = function() { var d = this.createNode(), y = [], p = [], g = this.parseTemplateHead(); for (p.push(g); !g.tail; ) y.push(this.parseExpression()), g = this.parseTemplateElement(), p.push(g); return this.finalize(d, new o.TemplateLiteral(p, y)); }, h.prototype.reinterpretExpressionAsPattern = function(d) { switch (d.type) { case l.Syntax.Identifier: case l.Syntax.MemberExpression: case l.Syntax.RestElement: case l.Syntax.AssignmentPattern: break; case l.Syntax.SpreadElement: d.type = l.Syntax.RestElement, this.reinterpretExpressionAsPattern(d.argument); break; case l.Syntax.ArrayExpression: d.type = l.Syntax.ArrayPattern; for (var y = 0; y < d.elements.length; y++) d.elements[y] !== null && this.reinterpretExpressionAsPattern(d.elements[y]); break; case l.Syntax.ObjectExpression: d.type = l.Syntax.ObjectPattern; for (var y = 0; y < d.properties.length; y++) this.reinterpretExpressionAsPattern(d.properties[y].value); break; case l.Syntax.AssignmentExpression: d.type = l.Syntax.AssignmentPattern, delete d.operator, this.reinterpretExpressionAsPattern(d.left); break; default: break; } }, h.prototype.parseGroupExpression = function() { var d; if (this.expect("("), this.match(")")) this.nextToken(), this.match("=>") || this.expect("=>"), d = { type: f, params: [], async: !1 }; else { var y = this.lookahead, p = []; if (this.match("...")) d = this.parseRestElement(p), this.expect(")"), this.match("=>") || this.expect("=>"), d = { type: f, params: [d], async: !1 }; else { var g = !1; if (this.context.isBindingElement = !0, d = this.inheritCoverGrammar(this.parseAssignmentExpression), this.match(",")) { var b = []; for (this.context.isAssignmentTarget = !1, b.push(d); this.lookahead.type !== 2 && this.match(","); ) { if (this.nextToken(), this.match(")")) { this.nextToken(); for (var D = 0; D < b.length; D++) this.reinterpretExpressionAsPattern(b[D]); g = !0, d = { type: f, params: b, async: !1 }; } else if (this.match("...")) { this.context.isBindingElement || this.throwUnexpectedToken(this.lookahead), b.push(this.parseRestElement(p)), this.expect( ")"), this.match("=>") || this.expect("=>"), this.context.isBindingElement = !1; for (var D = 0; D < b.length; D++) this.reinterpretExpressionAsPattern(b[D]); g = !0, d = { type: f, params: b, async: !1 }; } else b.push(this.inheritCoverGrammar(this.parseAssignmentExpression)); if (g) break; } g || (d = this.finalize(this.startNode(y), new o.SequenceExpression(b))); } if (!g) { if (this.expect(")"), this.match("=>") && (d.type === l.Syntax.Identifier && d.name === "yield" && (g = !0, d = { type: f, params: [d], async: !1 }), !g)) { if (this.context.isBindingElement || this.throwUnexpectedToken(this.lookahead), d.type === l.Syntax.SequenceExpression) for (var D = 0; D < d.expressions.length; D++) this.reinterpretExpressionAsPattern(d.expressions[D]); else this.reinterpretExpressionAsPattern(d); var x = d.type === l.Syntax.SequenceExpression ? d.expressions : [d]; d = { type: f, params: x, async: !1 }; } this.context.isBindingElement = !1; } } } return d; }, h.prototype.parseArguments = function() { this.expect("("); var d = []; if (!this.match(")")) for (; ; ) { var y = this.match("...") ? this.parseSpreadElement() : this.isolateCoverGrammar(this.parseAssignmentExpression); if (d.push(y), this.match(")") || (this.expectCommaSeparator(), this.match(")"))) break; } return this.expect(")"), d; }, h.prototype.isIdentifierName = function(d) { return d.type === 3 || d.type === 4 || d.type === 1 || d.type === 5; }, h.prototype.parseIdentifierName = function() { var d = this.createNode(), y = this.nextToken(); return this.isIdentifierName(y) || this.throwUnexpectedToken(y), this.finalize(d, new o.Identifier(y.value)); }, h.prototype.parseNewExpression = function() { var d = this.createNode(), y = this.parseIdentifierName(); i.assert(y.name === "new", "New expression must start with `new`"); var p; if (this.match(".")) if (this.nextToken(), this.lookahead.type === 3 && this.context.inFunctionBody && this.lookahead.value === "target") { var g = this.parseIdentifierName(); p = new o.MetaProperty(y, g); } else this.throwUnexpectedToken(this.lookahead); else { var b = this.isolateCoverGrammar(this.parseLeftHandSideExpression), D = this.match("(") ? this.parseArguments() : []; p = new o.NewExpression(b, D), this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1; } return this.finalize(d, p); }, h.prototype.parseAsyncArgument = function() { var d = this.parseAssignmentExpression(); return this.context.firstCoverInitializedNameError = null, d; }, h.prototype.parseAsyncArguments = function() { this.expect("("); var d = []; if (!this.match(")")) for (; ; ) { var y = this.match("...") ? this.parseSpreadElement() : this.isolateCoverGrammar(this.parseAsyncArgument); if (d.push(y), this.match(")") || (this.expectCommaSeparator(), this.match(")"))) break; } return this.expect(")"), d; }, h.prototype.parseLeftHandSideExpressionAllowCall = function() { var d = this.lookahead, y = this.matchContextualKeyword("async"), p = this.context.allowIn; this.context.allowIn = !0; var g; for (this.matchKeyword("super") && this.context.inFunctionBody ? (g = this.createNode(), this.nextToken(), g = this.finalize(g, new o.Super()), !this.match("(") && !this.match(".") && !this.match("[") && this.throwUnexpectedToken(this.lookahead)) : g = this. inheritCoverGrammar(this.matchKeyword("new") ? this.parseNewExpression : this.parsePrimaryExpression); ; ) if (this.match(".")) { this.context.isBindingElement = !1, this.context.isAssignmentTarget = !0, this.expect("."); var b = this.parseIdentifierName(); g = this.finalize(this.startNode(d), new o.StaticMemberExpression(g, b)); } else if (this.match("(")) { var D = y && d.lineNumber === this.lookahead.lineNumber; this.context.isBindingElement = !1, this.context.isAssignmentTarget = !1; var x = D ? this.parseAsyncArguments() : this.parseArguments(); if (g = this.finalize(this.startNode(d), new o.CallExpression(g, x)), D && this.match("=>")) { for (var T = 0; T < x.length; ++T) this.reinterpretExpressionAsPattern(x[T]); g = { type: f, params: x, async: !0 }; } } else if (this.match("[")) { this.context.isBindingElement = !1, this.context.isAssignmentTarget = !0, this.expect("["); var b = this.isolateCoverGrammar(this.parseExpression); this.expect("]"), g = this.finalize(this.startNode(d), new o.ComputedMemberExpression(g, b)); } else if (this.lookahead.type === 10 && this.lookahead.head) { var w = this.parseTemplateLiteral(); g = this.finalize(this.startNode(d), new o.TaggedTemplateExpression(g, w)); } else break; return this.context.allowIn = p, g; }, h.prototype.parseSuper = function() { var d = this.createNode(); return this.expectKeyword("super"), !this.match("[") && !this.match(".") && this.throwUnexpectedToken(this.lookahead), this.finalize( d, new o.Super()); }, h.prototype.parseLeftHandSideExpression = function() { i.assert(this.context.allowIn, "callee of new expression always allow in keyword."); for (var d = this.startNode(this.lookahead), y = this.matchKeyword("super") && this.context.inFunctionBody ? this.parseSuper() : this.inheritCoverGrammar(this.matchKeyword("new") ? this.parseNewExpression : this.parsePrimaryExpression); ; ) if (this.match("[")) { this.context.isBindingElement = !1, this.context.isAssignmentTarget = !0, this.expect("["); var p = this.isolateCoverGrammar(this.parseExpression); this.expect("]"), y = this.finalize(d, new o.ComputedMemberExpression(y, p)); } else if (this.match(".")) { this.context.isBindingElement = !1, this.context.isAssignmentTarget = !0, this.expect("."); var p = this.parseIdentifierName(); y = this.finalize(d, new o.StaticMemberExpression(y, p)); } else if (this.lookahead.type === 10 && this.lookahead.head) { var g = this.parseTemplateLiteral(); y = this.finalize(d, new o.TaggedTemplateExpression(y, g)); } else break; return y; }, h.prototype.parseUpdateExpression = function() { var d, y = this.lookahead; if (this.match("++") || this.match("--")) { var p = this.startNode(y), g = this.nextToken(); d = this.inheritCoverGrammar(this.parseUnaryExpression), this.context.strict && d.type === l.Syntax.Identifier && this.scanner. isRestrictedWord(d.name) && this.tolerateError(a.Messages.StrictLHSPrefix), this.context.isAssignmentTarget || this.tolerateError( a.Messages.InvalidLHSInAssignment); var b = !0; d = this.finalize(p, new o.UpdateExpression(g.value, d, b)), this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1; } else if (d = this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall), !this.hasLineTerminator && this.lookahead. type === 7 && (this.match("++") || this.match("--"))) { this.context.strict && d.type === l.Syntax.Identifier && this.scanner.isRestrictedWord(d.name) && this.tolerateError(a.Messages. StrictLHSPostfix), this.context.isAssignmentTarget || this.tolerateError(a.Messages.InvalidLHSInAssignment), this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1; var D = this.nextToken().value, b = !1; d = this.finalize(this.startNode(y), new o.UpdateExpression(D, d, b)); } return d; }, h.prototype.parseAwaitExpression = function() { var d = this.createNode(); this.nextToken(); var y = this.parseUnaryExpression(); return this.finalize(d, new o.AwaitExpression(y)); }, h.prototype.parseUnaryExpression = function() { var d; if (this.match("+") || this.match("-") || this.match("~") || this.match("!") || this.matchKeyword("delete") || this.matchKeyword( "void") || this.matchKeyword("typeof")) { var y = this.startNode(this.lookahead), p = this.nextToken(); d = this.inheritCoverGrammar(this.parseUnaryExpression), d = this.finalize(y, new o.UnaryExpression(p.value, d)), this.context. strict && d.operator === "delete" && d.argument.type === l.Syntax.Identifier && this.tolerateError(a.Messages.StrictDelete), this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1; } else this.context.await && this.matchContextualKeyword("await") ? d = this.parseAwaitExpression() : d = this.parseUpdateExpression(); return d; }, h.prototype.parseExponentiationExpression = function() { var d = this.lookahead, y = this.inheritCoverGrammar(this.parseUnaryExpression); if (y.type !== l.Syntax.UnaryExpression && this.match("**")) { this.nextToken(), this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1; var p = y, g = this.isolateCoverGrammar(this.parseExponentiationExpression); y = this.finalize(this.startNode(d), new o.BinaryExpression("**", p, g)); } return y; }, h.prototype.binaryPrecedence = function(d) { var y = d.value, p; return d.type === 7 ? p = this.operatorPrecedence[y] || 0 : d.type === 4 ? p = y === "instanceof" || this.context.allowIn && y === "in" ? 7 : 0 : p = 0, p; }, h.prototype.parseBinaryExpression = function() { var d = this.lookahead, y = this.inheritCoverGrammar(this.parseExponentiationExpression), p = this.lookahead, g = this.binaryPrecedence( p); if (g > 0) { this.nextToken(), this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1; for (var b = [d, this.lookahead], D = y, x = this.isolateCoverGrammar(this.parseExponentiationExpression), T = [D, p.value, x], w = [g]; g = this.binaryPrecedence(this.lookahead), !(g <= 0); ) { for (; T.length > 2 && g <= w[w.length - 1]; ) { x = T.pop(); var B = T.pop(); w.pop(), D = T.pop(), b.pop(); var k = this.startNode(b[b.length - 1]); T.push(this.finalize(k, new o.BinaryExpression(B, D, x))); } T.push(this.nextToken().value), w.push(g), b.push(this.lookahead), T.push(this.isolateCoverGrammar(this.parseExponentiationExpression)); } var j = T.length - 1; y = T[j]; for (var W = b.pop(); j > 1; ) { var Y = b.pop(), G = W && W.lineStart, k = this.startNode(Y, G), B = T[j - 1]; y = this.finalize(k, new o.BinaryExpression(B, T[j - 2], y)), j -= 2, W = Y; } } return y; }, h.prototype.parseConditionalExpression = function() { var d = this.lookahead, y = this.inheritCoverGrammar(this.parseBinaryExpression); if (this.match("?")) { this.nextToken(); var p = this.context.allowIn; this.context.allowIn = !0; var g = this.isolateCoverGrammar(this.parseAssignmentExpression); this.context.allowIn = p, this.expect(":"); var b = this.isolateCoverGrammar(this.parseAssignmentExpression); y = this.finalize(this.startNode(d), new o.ConditionalExpression(y, g, b)), this.context.isAssignmentTarget = !1, this.context. isBindingElement = !1; } return y; }, h.prototype.checkPatternParam = function(d, y) { switch (y.type) { case l.Syntax.Identifier: this.validateParam(d, y, y.name); break; case l.Syntax.RestElement: this.checkPatternParam(d, y.argument); break; case l.Syntax.AssignmentPattern: this.checkPatternParam(d, y.left); break; case l.Syntax.ArrayPattern: for (var p = 0; p < y.elements.length; p++) y.elements[p] !== null && this.checkPatternParam(d, y.elements[p]); break; case l.Syntax.ObjectPattern: for (var p = 0; p < y.properties.length; p++) this.checkPatternParam(d, y.properties[p].value); break; default: break; } d.simple = d.simple && y instanceof o.Identifier; }, h.prototype.reinterpretAsCoverFormalsList = function(d) { var y = [d], p, g = !1; switch (d.type) { case l.Syntax.Identifier: break; case f: y = d.params, g = d.async; break; default: return null; } p = { simple: !0, paramSet: {} }; for (var b = 0; b < y.length; ++b) { var D = y[b]; D.type === l.Syntax.AssignmentPattern ? D.right.type === l.Syntax.YieldExpression && (D.right.argument && this.throwUnexpectedToken( this.lookahead), D.right.type = l.Syntax.Identifier, D.right.name = "yield", delete D.right.argument, delete D.right.delegate) : g && D.type === l.Syntax.Identifier && D.name === "await" && this.throwUnexpectedToken(this.lookahead), this.checkPatternParam( p, D), y[b] = D; } if (this.context.strict || !this.context.allowYield) for (var b = 0; b < y.length; ++b) { var D = y[b]; D.type === l.Syntax.YieldExpression && this.throwUnexpectedToken(this.lookahead); } if (p.message === a.Messages.StrictParamDupe) { var x = this.context.strict ? p.stricted : p.firstRestricted; this.throwUnexpectedToken(x, p.message); } return { simple: p.simple, params: y, stricted: p.stricted, firstRestricted: p.firstRestricted, message: p.message }; }, h.prototype.parseAssignmentExpression = function() { var d; if (!this.context.allowYield && this.matchKeyword("yield")) d = this.parseYieldExpression(); else { var y = this.lookahead, p = y; if (d = this.parseConditionalExpression(), p.type === 3 && p.lineNumber === this.lookahead.lineNumber && p.value === "async" && (this.lookahead.type === 3 || this.matchKeyword("yield"))) { var g = this.parsePrimaryExpression(); this.reinterpretExpressionAsPattern(g), d = { type: f, params: [g], async: !0 }; } if (d.type === f || this.match("=>")) { this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1; var b = d.async, D = this.reinterpretAsCoverFormalsList(d); if (D) { this.hasLineTerminator && this.tolerateUnexpectedToken(this.lookahead), this.context.firstCoverInitializedNameError = null; var x = this.context.strict, T = this.context.allowStrictDirective; this.context.allowStrictDirective = D.simple; var w = this.context.allowYield, B = this.context.await; this.context.allowYield = !0, this.context.await = b; var k = this.startNode(y); this.expect("=>"); var j = void 0; if (this.match("{")) { var W = this.context.allowIn; this.context.allowIn = !0, j = this.parseFunctionSourceElements(), this.context.allowIn = W; } else j = this.isolateCoverGrammar(this.parseAssignmentExpression); var Y = j.type !== l.Syntax.BlockStatement; this.context.strict && D.firstRestricted && this.throwUnexpectedToken(D.firstRestricted, D.message), this.context.strict && D.stricted && this.tolerateUnexpectedToken(D.stricted, D.message), d = b ? this.finalize(k, new o.AsyncArrowFunctionExpression( D.params, j, Y)) : this.finalize(k, new o.ArrowFunctionExpression(D.params, j, Y)), this.context.strict = x, this.context. allowStrictDirective = T, this.context.allowYield = w, this.context.await = B; } } else if (this.matchAssign()) { if (this.context.isAssignmentTarget || this.tolerateError(a.Messages.InvalidLHSInAssignment), this.context.strict && d.type === l.Syntax.Identifier) { var G = d; this.scanner.isRestrictedWord(G.name) && this.tolerateUnexpectedToken(p, a.Messages.StrictLHSAssignment), this.scanner.isStrictModeReservedWord( G.name) && this.tolerateUnexpectedToken(p, a.Messages.StrictReservedWord); } this.match("=") ? this.reinterpretExpressionAsPattern(d) : (this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1), p = this.nextToken(); var ye = p.value, re = this.isolateCoverGrammar(this.parseAssignmentExpression); d = this.finalize(this.startNode(y), new o.AssignmentExpression(ye, d, re)), this.context.firstCoverInitializedNameError = null; } } return d; }, h.prototype.parseExpression = function() { var d = this.lookahead, y = this.isolateCoverGrammar(this.parseAssignmentExpression); if (this.match(",")) { var p = []; for (p.push(y); this.lookahead.type !== 2 && this.match(","); ) this.nextToken(), p.push(this.isolateCoverGrammar(this.parseAssignmentExpression)); y = this.finalize(this.startNode(d), new o.SequenceExpression(p)); } return y; }, h.prototype.parseStatementListItem = function() { var d; if (this.context.isAssignmentTarget = !0, this.context.isBindingElement = !0, this.lookahead.type === 4) switch (this.lookahead.value) { case "export": this.context.isModule || this.tolerateUnexpectedToken(this.lookahead, a.Messages.IllegalExportDeclaration), d = this.parseExportDeclaration(); break; case "import": this.context.isModule || this.tolerateUnexpectedToken(this.lookahead, a.Messages.IllegalImportDeclaration), d = this.parseImportDeclaration(); break; case "const": d = this.parseLexicalDeclaration({ inFor: !1 }); break; case "function": d = this.parseFunctionDeclaration(); break; case "class": d = this.parseClassDeclaration(); break; case "let": d = this.isLexicalDeclaration() ? this.parseLexicalDeclaration({ inFor: !1 }) : this.parseStatement(); break; default: d = this.parseStatement(); break; } else d = this.parseStatement(); return d; }, h.prototype.parseBlock = function() { var d = this.createNode(); this.expect("{"); for (var y = []; !this.match("}"); ) y.push(this.parseStatementListItem()); return this.expect("}"), this.finalize(d, new o.BlockStatement(y)); }, h.prototype.parseLexicalBinding = function(d, y) { var p = this.createNode(), g = [], b = this.parsePattern(g, d); this.context.strict && b.type === l.Syntax.Identifier && this.scanner.isRestrictedWord(b.name) && this.tolerateError(a.Messages. StrictVarName); var D = null; return d === "const" ? !this.matchKeyword("in") && !this.matchContextualKeyword("of") && (this.match("=") ? (this.nextToken(), D = this.isolateCoverGrammar(this.parseAssignmentExpression)) : this.throwError(a.Messages.DeclarationMissingInitializer, "con\ st")) : (!y.inFor && b.type !== l.Syntax.Identifier || this.match("=")) && (this.expect("="), D = this.isolateCoverGrammar(this.parseAssignmentExpression)), this.finalize(p, new o.VariableDeclarator(b, D)); }, h.prototype.parseBindingList = function(d, y) { for (var p = [this.parseLexicalBinding(d, y)]; this.match(","); ) this.nextToken(), p.push(this.parseLexicalBinding(d, y)); return p; }, h.prototype.isLexicalDeclaration = function() { var d = this.scanner.saveState(); this.scanner.scanComments(); var y = this.scanner.lex(); return this.scanner.restoreState(d), y.type === 3 || y.type === 7 && y.value === "[" || y.type === 7 && y.value === "{" || y.type === 4 && y.value === "let" || y.type === 4 && y.value === "yield"; }, h.prototype.parseLexicalDeclaration = function(d) { var y = this.createNode(), p = this.nextToken().value; i.assert(p === "let" || p === "const", "Lexical declaration must be either let or const"); var g = this.parseBindingList(p, d); return this.consumeSemicolon(), this.finalize(y, new o.VariableDeclaration(g, p)); }, h.prototype.parseBindingRestElement = function(d, y) { var p = this.createNode(); this.expect("..."); var g = this.parsePattern(d, y); return this.finalize(p, new o.RestElement(g)); }, h.prototype.parseArrayPattern = function(d, y) { var p = this.createNode(); this.expect("["); for (var g = []; !this.match("]"); ) if (this.match(",")) this.nextToken(), g.push(null); else { if (this.match("...")) { g.push(this.parseBindingRestElement(d, y)); break; } else g.push(this.parsePatternWithDefault(d, y)); this.match("]") || this.expect(","); } return this.expect("]"), this.finalize(p, new o.ArrayPattern(g)); }, h.prototype.parsePropertyPattern = function(d, y) { var p = this.createNode(), g = !1, b = !1, D = !1, x, T; if (this.lookahead.type === 3) { var w = this.lookahead; x = this.parseVariableIdentifier(); var B = this.finalize(p, new o.Identifier(w.value)); if (this.match("=")) { d.push(w), b = !0, this.nextToken(); var k = this.parseAssignmentExpression(); T = this.finalize(this.startNode(w), new o.AssignmentPattern(B, k)); } else this.match(":") ? (this.expect(":"), T = this.parsePatternWithDefault(d, y)) : (d.push(w), b = !0, T = B); } else g = this.match("["), x = this.parseObjectPropertyKey(), this.expect(":"), T = this.parsePatternWithDefault(d, y); return this.finalize(p, new o.Property("init", x, g, T, D, b)); }, h.prototype.parseObjectPattern = function(d, y) { var p = this.createNode(), g = []; for (this.expect("{"); !this.match("}"); ) g.push(this.parsePropertyPattern(d, y)), this.match("}") || this.expect(","); return this.expect("}"), this.finalize(p, new o.ObjectPattern(g)); }, h.prototype.parsePattern = function(d, y) { var p; return this.match("[") ? p = this.parseArrayPattern(d, y) : this.match("{") ? p = this.parseObjectPattern(d, y) : (this.matchKeyword( "let") && (y === "const" || y === "let") && this.tolerateUnexpectedToken(this.lookahead, a.Messages.LetInLexicalBinding), d.push( this.lookahead), p = this.parseVariableIdentifier(y)), p; }, h.prototype.parsePatternWithDefault = function(d, y) { var p = this.lookahead, g = this.parsePattern(d, y); if (this.match("=")) { this.nextToken(); var b = this.context.allowYield; this.context.allowYield = !0; var D = this.isolateCoverGrammar(this.parseAssignmentExpression); this.context.allowYield = b, g = this.finalize(this.startNode(p), new o.AssignmentPattern(g, D)); } return g; }, h.prototype.parseVariableIdentifier = function(d) { var y = this.createNode(), p = this.nextToken(); return p.type === 4 && p.value === "yield" ? this.context.strict ? this.tolerateUnexpectedToken(p, a.Messages.StrictReservedWord) : this.context.allowYield || this.throwUnexpectedToken(p) : p.type !== 3 ? this.context.strict && p.type === 4 && this.scanner.isStrictModeReservedWord( p.value) ? this.tolerateUnexpectedToken(p, a.Messages.StrictReservedWord) : (this.context.strict || p.value !== "let" || d !== "var") && this.throwUnexpectedToken(p) : (this.context.isModule || this.context.await) && p.type === 3 && p.value === "await" && this.tolerateUnexpectedToken(p), this.finalize(y, new o.Identifier(p.value)); }, h.prototype.parseVariableDeclaration = function(d) { var y = this.createNode(), p = [], g = this.parsePattern(p, "var"); this.context.strict && g.type === l.Syntax.Identifier && this.scanner.isRestrictedWord(g.name) && this.tolerateError(a.Messages. StrictVarName); var b = null; return this.match("=") ? (this.nextToken(), b = this.isolateCoverGrammar(this.parseAssignmentExpression)) : g.type !== l.Syntax. Identifier && !d.inFor && this.expect("="), this.finalize(y, new o.VariableDeclarator(g, b)); }, h.prototype.parseVariableDeclarationList = function(d) { var y = { inFor: d.inFor }, p = []; for (p.push(this.parseVariableDeclaration(y)); this.match(","); ) this.nextToken(), p.push(this.parseVariableDeclaration(y)); return p; }, h.prototype.parseVariableStatement = function() { var d = this.createNode(); this.expectKeyword("var"); var y = this.parseVariableDeclarationList({ inFor: !1 }); return this.consumeSemicolon(), this.finalize(d, new o.VariableDeclaration(y, "var")); }, h.prototype.parseEmptyStatement = function() { var d = this.createNode(); return this.expect(";"), this.finalize(d, new o.EmptyStatement()); }, h.prototype.parseExpressionStatement = function() { var d = this.createNode(), y = this.parseExpression(); return this.consumeSemicolon(), this.finalize(d, new o.ExpressionStatement(y)); }, h.prototype.parseIfClause = function() { return this.context.strict && this.matchKeyword("function") && this.tolerateError(a.Messages.StrictFunction), this.parseStatement(); }, h.prototype.parseIfStatement = function() { var d = this.createNode(), y, p = null; this.expectKeyword("if"), this.expect("("); var g = this.parseExpression(); return !this.match(")") && this.config.tolerant ? (this.tolerateUnexpectedToken(this.nextToken()), y = this.finalize(this.createNode(), new o.EmptyStatement())) : (this.expect(")"), y = this.parseIfClause(), this.matchKeyword("else") && (this.nextToken(), p = this. parseIfClause())), this.finalize(d, new o.IfStatement(g, y, p)); }, h.prototype.parseDoWhileStatement = function() { var d = this.createNode(); this.expectKeyword("do"); var y = this.context.inIteration; this.context.inIteration = !0; var p = this.parseStatement(); this.context.inIteration = y, this.expectKeyword("while"), this.expect("("); var g = this.parseExpression(); return !this.match(")") && this.config.tolerant ? this.tolerateUnexpectedToken(this.nextToken()) : (this.expect(")"), this.match( ";") && this.nextToken()), this.finalize(d, new o.DoWhileStatement(p, g)); }, h.prototype.parseWhileStatement = function() { var d = this.createNode(), y; this.expectKeyword("while"), this.expect("("); var p = this.parseExpression(); if (!this.match(")") && this.config.tolerant) this.tolerateUnexpectedToken(this.nextToken()), y = this.finalize(this.createNode(), new o.EmptyStatement()); else { this.expect(")"); var g = this.context.inIteration; this.context.inIteration = !0, y = this.parseStatement(), this.context.inIteration = g; } return this.finalize(d, new o.WhileStatement(p, y)); }, h.prototype.parseForStatement = function() { var d = null, y = null, p = null, g = !0, b, D, x = this.createNode(); if (this.expectKeyword("for"), this.expect("("), this.match(";")) this.nextToken(); else if (this.matchKeyword("var")) { d = this.createNode(), this.nextToken(); var T = this.context.allowIn; this.context.allowIn = !1; var w = this.parseVariableDeclarationList({ inFor: !0 }); if (this.context.allowIn = T, w.length === 1 && this.matchKeyword("in")) { var B = w[0]; B.init && (B.id.type === l.Syntax.ArrayPattern || B.id.type === l.Syntax.ObjectPattern || this.context.strict) && this.tolerateError( a.Messages.ForInOfLoopInitializer, "for-in"), d = this.finalize(d, new o.VariableDeclaration(w, "var")), this.nextToken(), b = d, D = this.parseExpression(), d = null; } else w.length === 1 && w[0].init === null && this.matchContextualKeyword("of") ? (d = this.finalize(d, new o.VariableDeclaration( w, "var")), this.nextToken(), b = d, D = this.parseAssignmentExpression(), d = null, g = !1) : (d = this.finalize(d, new o.VariableDeclaration( w, "var")), this.expect(";")); } else if (this.matchKeyword("const") || this.matchKeyword("let")) { d = this.createNode(); var k = this.nextToken().value; if (!this.context.strict && this.lookahead.value === "in") d = this.finalize(d, new o.Identifier(k)), this.nextToken(), b = d, D = this.parseExpression(), d = null; else { var T = this.context.allowIn; this.context.allowIn = !1; var w = this.parseBindingList(k, { inFor: !0 }); this.context.allowIn = T, w.length === 1 && w[0].init === null && this.matchKeyword("in") ? (d = this.finalize(d, new o.VariableDeclaration( w, k)), this.nextToken(), b = d, D = this.parseExpression(), d = null) : w.length === 1 && w[0].init === null && this.matchContextualKeyword( "of") ? (d = this.finalize(d, new o.VariableDeclaration(w, k)), this.nextToken(), b = d, D = this.parseAssignmentExpression(), d = null, g = !1) : (this.consumeSemicolon(), d = this.finalize(d, new o.VariableDeclaration(w, k))); } } else { var j = this.lookahead, T = this.context.allowIn; if (this.context.allowIn = !1, d = this.inheritCoverGrammar(this.parseAssignmentExpression), this.context.allowIn = T, this. matchKeyword("in")) (!this.context.isAssignmentTarget || d.type === l.Syntax.AssignmentExpression) && this.tolerateError(a.Messages.InvalidLHSInForIn), this.nextToken(), this.reinterpretExpressionAsPattern(d), b = d, D = this.parseExpression(), d = null; else if (this.matchContextualKeyword("of")) (!this.context.isAssignmentTarget || d.type === l.Syntax.AssignmentExpression) && this.tolerateError(a.Messages.InvalidLHSInForLoop), this.nextToken(), this.reinterpretExpressionAsPattern(d), b = d, D = this.parseAssignmentExpression(), d = null, g = !1; else { if (this.match(",")) { for (var W = [d]; this.match(","); ) this.nextToken(), W.push(this.isolateCoverGrammar(this.parseAssignmentExpression)); d = this.finalize(this.startNode(j), new o.SequenceExpression(W)); } this.expect(";"); } } typeof b > "u" && (this.match(";") || (y = this.parseExpression()), this.expect(";"), this.match(")") || (p = this.parseExpression())); var Y; if (!this.match(")") && this.config.tolerant) this.tolerateUnexpectedToken(this.nextToken()), Y = this.finalize(this.createNode(), new o.EmptyStatement()); else { this.expect(")"); var G = this.context.inIteration; this.context.inIteration = !0, Y = this.isolateCoverGrammar(this.parseStatement), this.context.inIteration = G; } return typeof b > "u" ? this.finalize(x, new o.ForStatement(d, y, p, Y)) : g ? this.finalize(x, new o.ForInStatement(b, D, Y)) : this.finalize(x, new o.ForOfStatement(b, D, Y)); }, h.prototype.parseContinueStatement = function() { var d = this.createNode(); this.expectKeyword("continue"); var y = null; if (this.lookahead.type === 3 && !this.hasLineTerminator) { var p = this.parseVariableIdentifier(); y = p; var g = "$" + p.name; Object.prototype.hasOwnProperty.call(this.context.labelSet, g) || this.throwError(a.Messages.UnknownLabel, p.name); } return this.consumeSemicolon(), y === null && !this.context.inIteration && this.throwError(a.Messages.IllegalContinue), this.finalize( d, new o.ContinueStatement(y)); }, h.prototype.parseBreakStatement = function() { var d = this.createNode(); this.expectKeyword("break"); var y = null; if (this.lookahead.type === 3 && !this.hasLineTerminator) { var p = this.parseVariableIdentifier(), g = "$" + p.name; Object.prototype.hasOwnProperty.call(this.context.labelSet, g) || this.throwError(a.Messages.UnknownLabel, p.name), y = p; } return this.consumeSemicolon(), y === null && !this.context.inIteration && !this.context.inSwitch && this.throwError(a.Messages. IllegalBreak), this.finalize(d, new o.BreakStatement(y)); }, h.prototype.parseReturnStatement = function() { this.context.inFunctionBody || this.tolerateError(a.Messages.IllegalReturn); var d = this.createNode(); this.expectKeyword("return"); var y = !this.match(";") && !this.match("}") && !this.hasLineTerminator && this.lookahead.type !== 2 || this.lookahead.type === 8 || this.lookahead.type === 10, p = y ? this.parseExpression() : null; return this.consumeSemicolon(), this.finalize(d, new o.ReturnStatement(p)); }, h.prototype.parseWithStatement = function() { this.context.strict && this.tolerateError(a.Messages.StrictModeWith); var d = this.createNode(), y; this.expectKeyword("with"), this.expect("("); var p = this.parseExpression(); return !this.match(")") && this.config.tolerant ? (this.tolerateUnexpectedToken(this.nextToken()), y = this.finalize(this.createNode(), new o.EmptyStatement())) : (this.expect(")"), y = this.parseStatement()), this.finalize(d, new o.WithStatement(p, y)); }, h.prototype.parseSwitchCase = function() { var d = this.createNode(), y; this.matchKeyword("default") ? (this.nextToken(), y = null) : (this.expectKeyword("case"), y = this.parseExpression()), this.expect( ":"); for (var p = []; !(this.match("}") || this.matchKeyword("default") || this.matchKeyword("case")); ) p.push(this.parseStatementListItem()); return this.finalize(d, new o.SwitchCase(y, p)); }, h.prototype.parseSwitchStatement = function() { var d = this.createNode(); this.expectKeyword("switch"), this.expect("("); var y = this.parseExpression(); this.expect(")"); var p = this.context.inSwitch; this.context.inSwitch = !0; var g = [], b = !1; for (this.expect("{"); !this.match("}"); ) { var D = this.parseSwitchCase(); D.test === null && (b && this.throwError(a.Messages.MultipleDefaultsInSwitch), b = !0), g.push(D); } return this.expect("}"), this.context.inSwitch = p, this.finalize(d, new o.SwitchStatement(y, g)); }, h.prototype.parseLabelledStatement = function() { var d = this.createNode(), y = this.parseExpression(), p; if (y.type === l.Syntax.Identifier && this.match(":")) { this.nextToken(); var g = y, b = "$" + g.name; Object.prototype.hasOwnProperty.call(this.context.labelSet, b) && this.throwError(a.Messages.Redeclaration, "Label", g.name), this.context.labelSet[b] = !0; var D = void 0; if (this.matchKeyword("class")) this.tolerateUnexpectedToken(this.lookahead), D = this.parseClassDeclaration(); else if (this.matchKeyword("function")) { var x = this.lookahead, T = this.parseFunctionDeclaration(); this.context.strict ? this.tolerateUnexpectedToken(x, a.Messages.StrictFunction) : T.generator && this.tolerateUnexpectedToken( x, a.Messages.GeneratorInLegacyContext), D = T; } else D = this.parseStatement(); delete this.context.labelSet[b], p = new o.LabeledStatement(g, D); } else this.consumeSemicolon(), p = new o.ExpressionStatement(y); return this.finalize(d, p); }, h.prototype.parseThrowStatement = function() { var d = this.createNode(); this.expectKeyword("throw"), this.hasLineTerminator && this.throwError(a.Messages.NewlineAfterThrow); var y = this.parseExpression(); return this.consumeSemicolon(), this.finalize(d, new o.ThrowStatement(y)); }, h.prototype.parseCatchClause = function() { var d = this.createNode(); this.expectKeyword("catch"), this.expect("("), this.match(")") && this.throwUnexpectedToken(this.lookahead); for (var y = [], p = this.parsePattern(y), g = {}, b = 0; b < y.length; b++) { var D = "$" + y[b].value; Object.prototype.hasOwnProperty.call(g, D) && this.tolerateError(a.Messages.DuplicateBinding, y[b].value), g[D] = !0; } this.context.strict && p.type === l.Syntax.Identifier && this.scanner.isRestrictedWord(p.name) && this.tolerateError(a.Messages. StrictCatchVariable), this.expect(")"); var x = this.parseBlock(); return this.finalize(d, new o.CatchClause(p, x)); }, h.prototype.parseFinallyClause = function() { return this.expectKeyword("finally"), this.parseBlock(); }, h.prototype.parseTryStatement = function() { var d = this.createNode(); this.expectKeyword("try"); var y = this.parseBlock(), p = this.matchKeyword("catch") ? this.parseCatchClause() : null, g = this.matchKeyword("finally") ? this.parseFinallyClause() : null; return !p && !g && this.throwError(a.Messages.NoCatchOrFinally), this.finalize(d, new o.TryStatement(y, p, g)); }, h.prototype.parseDebuggerStatement = function() { var d = this.createNode(); return this.expectKeyword("debugger"), this.consumeSemicolon(), this.finalize(d, new o.DebuggerStatement()); }, h.prototype.parseStatement = function() { var d; switch (this.lookahead.type) { case 1: case 5: case 6: case 8: case 10: case 9: d = this.parseExpressionStatement(); break; case 7: var y = this.lookahead.value; y === "{" ? d = this.parseBlock() : y === "(" ? d = this.parseExpressionStatement() : y === ";" ? d = this.parseEmptyStatement() : d = this.parseExpressionStatement(); break; case 3: d = this.matchAsyncFunction() ? this.parseFunctionDeclaration() : this.parseLabelledStatement(); break; case 4: switch (this.lookahead.value) { case "break": d = this.parseBreakStatement(); break; case "continue": d = this.parseContinueStatement(); break; case "debugger": d = this.parseDebuggerStatement(); break; case "do": d = this.parseDoWhileStatement(); break; case "for": d = this.parseForStatement(); break; case "function": d = this.parseFunctionDeclaration(); break; case "if": d = this.parseIfStatement(); break; case "return": d = this.parseReturnStatement(); break; case "switch": d = this.parseSwitchStatement(); break; case "throw": d = this.parseThrowStatement(); break; case "try": d = this.parseTryStatement(); break; case "var": d = this.parseVariableStatement(); break; case "while": d = this.parseWhileStatement(); break; case "with": d = this.parseWithStatement(); break; default: d = this.parseExpressionStatement(); break; } break; default: d = this.throwUnexpectedToken(this.lookahead); } return d; }, h.prototype.parseFunctionSourceElements = function() { var d = this.createNode(); this.expect("{"); var y = this.parseDirectivePrologues(), p = this.context.labelSet, g = this.context.inIteration, b = this.context.inSwitch, D = this. context.inFunctionBody; for (this.context.labelSet = {}, this.context.inIteration = !1, this.context.inSwitch = !1, this.context.inFunctionBody = !0; this. lookahead.type !== 2 && !this.match("}"); ) y.push(this.parseStatementListItem()); return this.expect("}"), this.context.labelSet = p, this.context.inIteration = g, this.context.inSwitch = b, this.context.inFunctionBody = D, this.finalize(d, new o.BlockStatement(y)); }, h.prototype.validateParam = function(d, y, p) { var g = "$" + p; this.context.strict ? (this.scanner.isRestrictedWord(p) && (d.stricted = y, d.message = a.Messages.StrictParamName), Object.prototype. hasOwnProperty.call(d.paramSet, g) && (d.stricted = y, d.message = a.Messages.StrictParamDupe)) : d.firstRestricted || (this.scanner. isRestrictedWord(p) ? (d.firstRestricted = y, d.message = a.Messages.StrictParamName) : this.scanner.isStrictModeReservedWord( p) ? (d.firstRestricted = y, d.message = a.Messages.StrictReservedWord) : Object.prototype.hasOwnProperty.call(d.paramSet, g) && (d.stricted = y, d.message = a.Messages.StrictParamDupe)), typeof Object.defineProperty == "function" ? Object.defineProperty( d.paramSet, g, { value: !0, enumerable: !0, writable: !0, configurable: !0 }) : d.paramSet[g] = !0; }, h.prototype.parseRestElement = function(d) { var y = this.createNode(); this.expect("..."); var p = this.parsePattern(d); return this.match("=") && this.throwError(a.Messages.DefaultRestParameter), this.match(")") || this.throwError(a.Messages.ParameterAfterRestParameter), this.finalize(y, new o.RestElement(p)); }, h.prototype.parseFormalParameter = function(d) { for (var y = [], p = this.match("...") ? this.parseRestElement(y) : this.parsePatternWithDefault(y), g = 0; g < y.length; g++) this.validateParam(d, y[g], y[g].value); d.simple = d.simple && p instanceof o.Identifier, d.params.push(p); }, h.prototype.parseFormalParameters = function(d) { var y; if (y = { simple: !0, params: [], firstRestricted: d }, this.expect("("), !this.match(")")) for (y.paramSet = {}; this.lookahead.type !== 2 && (this.parseFormalParameter(y), !(this.match(")") || (this.expect(","), this. match(")")))); ) ; return this.expect(")"), { simple: y.simple, params: y.params, stricted: y.stricted, firstRestricted: y.firstRestricted, message: y.message }; }, h.prototype.matchAsyncFunction = function() { var d = this.matchContextualKeyword("async"); if (d) { var y = this.scanner.saveState(); this.scanner.scanComments(); var p = this.scanner.lex(); this.scanner.restoreState(y), d = y.lineNumber === p.lineNumber && p.type === 4 && p.value === "function"; } return d; }, h.prototype.parseFunctionDeclaration = function(d) { var y = this.createNode(), p = this.matchContextualKeyword("async"); p && this.nextToken(), this.expectKeyword("function"); var g = p ? !1 : this.match("*"); g && this.nextToken(); var b, D = null, x = null; if (!d || !this.match("(")) { var T = this.lookahead; D = this.parseVariableIdentifier(), this.context.strict ? this.scanner.isRestrictedWord(T.value) && this.tolerateUnexpectedToken( T, a.Messages.StrictFunctionName) : this.scanner.isRestrictedWord(T.value) ? (x = T, b = a.Messages.StrictFunctionName) : this. scanner.isStrictModeReservedWord(T.value) && (x = T, b = a.Messages.StrictReservedWord); } var w = this.context.await, B = this.context.allowYield; this.context.await = p, this.context.allowYield = !g; var k = this.parseFormalParameters(x), j = k.params, W = k.stricted; x = k.firstRestricted, k.message && (b = k.message); var Y = this.context.strict, G = this.context.allowStrictDirective; this.context.allowStrictDirective = k.simple; var ye = this.parseFunctionSourceElements(); return this.context.strict && x && this.throwUnexpectedToken(x, b), this.context.strict && W && this.tolerateUnexpectedToken(W, b), this.context.strict = Y, this.context.allowStrictDirective = G, this.context.await = w, this.context.allowYield = B, p ? this. finalize(y, new o.AsyncFunctionDeclaration(D, j, ye)) : this.finalize(y, new o.FunctionDeclaration(D, j, ye, g)); }, h.prototype.parseFunctionExpression = function() { var d = this.createNode(), y = this.matchContextualKeyword("async"); y && this.nextToken(), this.expectKeyword("function"); var p = y ? !1 : this.match("*"); p && this.nextToken(); var g, b = null, D, x = this.context.await, T = this.context.allowYield; if (this.context.await = y, this.context.allowYield = !p, !this.match("(")) { var w = this.lookahead; b = !this.context.strict && !p && this.matchKeyword("yield") ? this.parseIdentifierName() : this.parseVariableIdentifier(), this. context.strict ? this.scanner.isRestrictedWord(w.value) && this.tolerateUnexpectedToken(w, a.Messages.StrictFunctionName) : this. scanner.isRestrictedWord(w.value) ? (D = w, g = a.Messages.StrictFunctionName) : this.scanner.isStrictModeReservedWord(w.value) && (D = w, g = a.Messages.StrictReservedWord); } var B = this.parseFormalParameters(D), k = B.params, j = B.stricted; D = B.firstRestricted, B.message && (g = B.message); var W = this.context.strict, Y = this.context.allowStrictDirective; this.context.allowStrictDirective = B.simple; var G = this.parseFunctionSourceElements(); return this.context.strict && D && this.throwUnexpectedToken(D, g), this.context.strict && j && this.tolerateUnexpectedToken(j, g), this.context.strict = W, this.context.allowStrictDirective = Y, this.context.await = x, this.context.allowYield = T, y ? this. finalize(d, new o.AsyncFunctionExpression(b, k, G)) : this.finalize(d, new o.FunctionExpression(b, k, G, p)); }, h.prototype.parseDirective = function() { var d = this.lookahead, y = this.createNode(), p = this.parseExpression(), g = p.type === l.Syntax.Literal ? this.getTokenRaw( d).slice(1, -1) : null; return this.consumeSemicolon(), this.finalize(y, g ? new o.Directive(p, g) : new o.ExpressionStatement(p)); }, h.prototype.parseDirectivePrologues = function() { for (var d = null, y = []; ; ) { var p = this.lookahead; if (p.type !== 8) break; var g = this.parseDirective(); y.push(g); var b = g.directive; if (typeof b != "string") break; b === "use strict" ? (this.context.strict = !0, d && this.tolerateUnexpectedToken(d, a.Messages.StrictOctalLiteral), this.context. allowStrictDirective || this.tolerateUnexpectedToken(p, a.Messages.IllegalLanguageModeDirective)) : !d && p.octal && (d = p); } return y; }, h.prototype.qualifiedPropertyName = function(d) { switch (d.type) { case 3: case 8: case 1: case 5: case 6: case 4: return !0; case 7: return d.value === "["; default: break; } return !1; }, h.prototype.parseGetterMethod = function() { var d = this.createNode(), y = !1, p = this.context.allowYield; this.context.allowYield = !y; var g = this.parseFormalParameters(); g.params.length > 0 && this.tolerateError(a.Messages.BadGetterArity); var b = this.parsePropertyMethod(g); return this.context.allowYield = p, this.finalize(d, new o.FunctionExpression(null, g.params, b, y)); }, h.prototype.parseSetterMethod = function() { var d = this.createNode(), y = !1, p = this.context.allowYield; this.context.allowYield = !y; var g = this.parseFormalParameters(); g.params.length !== 1 ? this.tolerateError(a.Messages.BadSetterArity) : g.params[0] instanceof o.RestElement && this.tolerateError( a.Messages.BadSetterRestParameter); var b = this.parsePropertyMethod(g); return this.context.allowYield = p, this.finalize(d, new o.FunctionExpression(null, g.params, b, y)); }, h.prototype.parseGeneratorMethod = function() { var d = this.createNode(), y = !0, p = this.context.allowYield; this.context.allowYield = !0; var g = this.parseFormalParameters(); this.context.allowYield = !1; var b = this.parsePropertyMethod(g); return this.context.allowYield = p, this.finalize(d, new o.FunctionExpression(null, g.params, b, y)); }, h.prototype.isStartOfExpression = function() { var d = !0, y = this.lookahead.value; switch (this.lookahead.type) { case 7: d = y === "[" || y === "(" || y === "{" || y === "+" || y === "-" || y === "!" || y === "~" || y === "++" || y === "--" || y === "/" || y === "/="; break; case 4: d = y === "class" || y === "delete" || y === "function" || y === "let" || y === "new" || y === "super" || y === "this" || y === "typeof" || y === "void" || y === "yield"; break; default: break; } return d; }, h.prototype.parseYieldExpression = function() { var d = this.createNode(); this.expectKeyword("yield"); var y = null, p = !1; if (!this.hasLineTerminator) { var g = this.context.allowYield; this.context.allowYield = !1, p = this.match("*"), p ? (this.nextToken(), y = this.parseAssignmentExpression()) : this.isStartOfExpression() && (y = this.parseAssignmentExpression()), this.context.allowYield = g; } return this.finalize(d, new o.YieldExpression(y, p)); }, h.prototype.parseClassElement = function(d) { var y = this.lookahead, p = this.createNode(), g = "", b = null, D = null, x = !1, T = !1, w = !1, B = !1; if (this.match("*")) this.nextToken(); else { x = this.match("["), b = this.parseObjectPropertyKey(); var k = b; if (k.name === "static" && (this.qualifiedPropertyName(this.lookahead) || this.match("*")) && (y = this.lookahead, w = !0, x = this.match("["), this.match("*") ? this.nextToken() : b = this.parseObjectPropertyKey()), y.type === 3 && !this.hasLineTerminator && y.value === "async") { var j = this.lookahead.value; j !== ":" && j !== "(" && j !== "*" && (B = !0, y = this.lookahead, b = this.parseObjectPropertyKey(), y.type === 3 && y.value === "constructor" && this.tolerateUnexpectedToken(y, a.Messages.ConstructorIsAsync)); } } var W = this.qualifiedPropertyName(this.lookahead); return y.type === 3 ? y.value === "get" && W ? (g = "get", x = this.match("["), b = this.parseObjectPropertyKey(), this.context. allowYield = !1, D = this.parseGetterMethod()) : y.value === "set" && W && (g = "set", x = this.match("["), b = this.parseObjectPropertyKey(), D = this.parseSetterMethod()) : y.type === 7 && y.value === "*" && W && (g = "init", x = this.match("["), b = this.parseObjectPropertyKey(), D = this.parseGeneratorMethod(), T = !0), !g && b && this.match("(") && (g = "init", D = B ? this.parsePropertyMethodAsyncFunction() : this.parsePropertyMethodFunction(), T = !0), g || this.throwUnexpectedToken(this.lookahead), g === "init" && (g = "method"), x || (w && this.isPropertyKey(b, "prototype") && this.throwUnexpectedToken(y, a.Messages.StaticPrototype), !w && this.isPropertyKey( b, "constructor") && ((g !== "method" || !T || D && D.generator) && this.throwUnexpectedToken(y, a.Messages.ConstructorSpecialMethod), d.value ? this.throwUnexpectedToken(y, a.Messages.DuplicateConstructor) : d.value = !0, g = "constructor")), this.finalize(p, new o. MethodDefinition(b, x, D, g, w)); }, h.prototype.parseClassElementList = function() { var d = [], y = { value: !1 }; for (this.expect("{"); !this.match("}"); ) this.match(";") ? this.nextToken() : d.push(this.parseClassElement(y)); return this.expect("}"), d; }, h.prototype.parseClassBody = function() { var d = this.createNode(), y = this.parseClassElementList(); return this.finalize(d, new o.ClassBody(y)); }, h.prototype.parseClassDeclaration = function(d) { var y = this.createNode(), p = this.context.strict; this.context.strict = !0, this.expectKeyword("class"); var g = d && this.lookahead.type !== 3 ? null : this.parseVariableIdentifier(), b = null; this.matchKeyword("extends") && (this.nextToken(), b = this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall)); var D = this.parseClassBody(); return this.context.strict = p, this.finalize(y, new o.ClassDeclaration(g, b, D)); }, h.prototype.parseClassExpression = function() { var d = this.createNode(), y = this.context.strict; this.context.strict = !0, this.expectKeyword("class"); var p = this.lookahead.type === 3 ? this.parseVariableIdentifier() : null, g = null; this.matchKeyword("extends") && (this.nextToken(), g = this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall)); var b = this.parseClassBody(); return this.context.strict = y, this.finalize(d, new o.ClassExpression(p, g, b)); }, h.prototype.parseModule = function() { this.context.strict = !0, this.context.isModule = !0, this.scanner.isModule = !0; for (var d = this.createNode(), y = this.parseDirectivePrologues(); this.lookahead.type !== 2; ) y.push(this.parseStatementListItem()); return this.finalize(d, new o.Module(y)); }, h.prototype.parseScript = function() { for (var d = this.createNode(), y = this.parseDirectivePrologues(); this.lookahead.type !== 2; ) y.push(this.parseStatementListItem()); return this.finalize(d, new o.Script(y)); }, h.prototype.parseModuleSpecifier = function() { var d = this.createNode(); this.lookahead.type !== 8 && this.throwError(a.Messages.InvalidModuleSpecifier); var y = this.nextToken(), p = this.getTokenRaw(y); return this.finalize(d, new o.Literal(y.value, p)); }, h.prototype.parseImportSpecifier = function() { var d = this.createNode(), y, p; return this.lookahead.type === 3 ? (y = this.parseVariableIdentifier(), p = y, this.matchContextualKeyword("as") && (this.nextToken(), p = this.parseVariableIdentifier())) : (y = this.parseIdentifierName(), p = y, this.matchContextualKeyword("as") ? (this.nextToken(), p = this.parseVariableIdentifier()) : this.throwUnexpectedToken(this.nextToken())), this.finalize(d, new o.ImportSpecifier(p, y)); }, h.prototype.parseNamedImports = function() { this.expect("{"); for (var d = []; !this.match("}"); ) d.push(this.parseImportSpecifier()), this.match("}") || this.expect(","); return this.expect("}"), d; }, h.prototype.parseImportDefaultSpecifier = function() { var d = this.createNode(), y = this.parseIdentifierName(); return this.finalize(d, new o.ImportDefaultSpecifier(y)); }, h.prototype.parseImportNamespaceSpecifier = function() { var d = this.createNode(); this.expect("*"), this.matchContextualKeyword("as") || this.throwError(a.Messages.NoAsAfterImportNamespace), this.nextToken(); var y = this.parseIdentifierName(); return this.finalize(d, new o.ImportNamespaceSpecifier(y)); }, h.prototype.parseImportDeclaration = function() { this.context.inFunctionBody && this.throwError(a.Messages.IllegalImportDeclaration); var d = this.createNode(); this.expectKeyword("import"); var y, p = []; if (this.lookahead.type === 8) y = this.parseModuleSpecifier(); else { if (this.match("{") ? p = p.concat(this.parseNamedImports()) : this.match("*") ? p.push(this.parseImportNamespaceSpecifier()) : this.isIdentifierName(this.lookahead) && !this.matchKeyword("default") ? (p.push(this.parseImportDefaultSpecifier()), this.match( ",") && (this.nextToken(), this.match("*") ? p.push(this.parseImportNamespaceSpecifier()) : this.match("{") ? p = p.concat(this. parseNamedImports()) : this.throwUnexpectedToken(this.lookahead))) : this.throwUnexpectedToken(this.nextToken()), !this.matchContextualKeyword( "from")) { var g = this.lookahead.value ? a.Messages.UnexpectedToken : a.Messages.MissingFromClause; this.throwError(g, this.lookahead.value); } this.nextToken(), y = this.parseModuleSpecifier(); } return this.consumeSemicolon(), this.finalize(d, new o.ImportDeclaration(p, y)); }, h.prototype.parseExportSpecifier = function() { var d = this.createNode(), y = this.parseIdentifierName(), p = y; return this.matchContextualKeyword("as") && (this.nextToken(), p = this.parseIdentifierName()), this.finalize(d, new o.ExportSpecifier( y, p)); }, h.prototype.parseExportDeclaration = function() { this.context.inFunctionBody && this.throwError(a.Messages.IllegalExportDeclaration); var d = this.createNode(); this.expectKeyword("export"); var y; if (this.matchKeyword("default")) if (this.nextToken(), this.matchKeyword("function")) { var p = this.parseFunctionDeclaration(!0); y = this.finalize(d, new o.ExportDefaultDeclaration(p)); } else if (this.matchKeyword("class")) { var p = this.parseClassDeclaration(!0); y = this.finalize(d, new o.ExportDefaultDeclaration(p)); } else if (this.matchContextualKeyword("async")) { var p = this.matchAsyncFunction() ? this.parseFunctionDeclaration(!0) : this.parseAssignmentExpression(); y = this.finalize(d, new o.ExportDefaultDeclaration(p)); } else { this.matchContextualKeyword("from") && this.throwError(a.Messages.UnexpectedToken, this.lookahead.value); var p = this.match("{") ? this.parseObjectInitializer() : this.match("[") ? this.parseArrayInitializer() : this.parseAssignmentExpression(); this.consumeSemicolon(), y = this.finalize(d, new o.ExportDefaultDeclaration(p)); } else if (this.match("*")) { if (this.nextToken(), !this.matchContextualKeyword("from")) { var g = this.lookahead.value ? a.Messages.UnexpectedToken : a.Messages.MissingFromClause; this.throwError(g, this.lookahead.value); } this.nextToken(); var b = this.parseModuleSpecifier(); this.consumeSemicolon(), y = this.finalize(d, new o.ExportAllDeclaration(b)); } else if (this.lookahead.type === 4) { var p = void 0; switch (this.lookahead.value) { case "let": case "const": p = this.parseLexicalDeclaration({ inFor: !1 }); break; case "var": case "class": case "function": p = this.parseStatementListItem(); break; default: this.throwUnexpectedToken(this.lookahead); } y = this.finalize(d, new o.ExportNamedDeclaration(p, [], null)); } else if (this.matchAsyncFunction()) { var p = this.parseFunctionDeclaration(); y = this.finalize(d, new o.ExportNamedDeclaration(p, [], null)); } else { var D = [], x = null, T = !1; for (this.expect("{"); !this.match("}"); ) T = T || this.matchKeyword("default"), D.push(this.parseExportSpecifier()), this.match("}") || this.expect(","); if (this.expect("}"), this.matchContextualKeyword("from")) this.nextToken(), x = this.parseModuleSpecifier(), this.consumeSemicolon(); else if (T) { var g = this.lookahead.value ? a.Messages.UnexpectedToken : a.Messages.MissingFromClause; this.throwError(g, this.lookahead.value); } else this.consumeSemicolon(); y = this.finalize(d, new o.ExportNamedDeclaration(null, D, x)); } return y; }, h; }(); t.Parser = m; }, /* 9 */ /***/ function(e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); function r(i, s) { if (!i) throw new Error("ASSERT: " + s); } n(r, "assert"), t.assert = r; }, /* 10 */ /***/ function(e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var r = function() { function i() { this.errors = [], this.tolerant = !1; } return n(i, "ErrorHandler"), i.prototype.recordError = function(s) { this.errors.push(s); }, i.prototype.tolerate = function(s) { if (this.tolerant) this.recordError(s); else throw s; }, i.prototype.constructError = function(s, a) { var o = new Error(s); try { throw o; } catch (u) { Object.create && Object.defineProperty && (o = Object.create(u), Object.defineProperty(o, "column", { value: a })); } return o; }, i.prototype.createError = function(s, a, o, u) { var l = "Line " + a + ": " + u, c = this.constructError(l, o); return c.index = s, c.lineNumber = a, c.description = u, c; }, i.prototype.throwError = function(s, a, o, u) { throw this.createError(s, a, o, u); }, i.prototype.tolerateError = function(s, a, o, u) { var l = this.createError(s, a, o, u); if (this.tolerant) this.recordError(l); else throw l; }, i; }(); t.ErrorHandler = r; }, /* 11 */ /***/ function(e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), t.Messages = { BadGetterArity: "Getter must not have any formal parameters", BadSetterArity: "Setter must have exactly one formal parameter", BadSetterRestParameter: "Setter function argument must not be a rest parameter", ConstructorIsAsync: "Class constructor may not be an async method", ConstructorSpecialMethod: "Class constructor may not be an accessor", DeclarationMissingInitializer: "Missing initializer in %0 declaration", DefaultRestParameter: "Unexpected token =", DuplicateBinding: "Duplicate binding %0", DuplicateConstructor: "A class may only have one constructor", DuplicateProtoProperty: "Duplicate __proto__ fields are not allowed in object literals", ForInOfLoopInitializer: "%0 loop variable declaration may not have an initializer", GeneratorInLegacyContext: "Generator declarations are not allowed in legacy contexts", IllegalBreak: "Illegal break statement", IllegalContinue: "Illegal continue statement", IllegalExportDeclaration: "Unexpected token", IllegalImportDeclaration: "Unexpected token", IllegalLanguageModeDirective: "Illegal 'use strict' directive in function with non-simple parameter list", IllegalReturn: "Illegal return statement", InvalidEscapedReservedWord: "Keyword must not contain escaped characters", InvalidHexEscapeSequence: "Invalid hexadecimal escape sequence", InvalidLHSInAssignment: "Invalid left-hand side in assignment", InvalidLHSInForIn: "Invalid left-hand side in for-in", InvalidLHSInForLoop: "Invalid left-hand side in for-loop", InvalidModuleSpecifier: "Unexpected token", InvalidRegExp: "Invalid regular expression", LetInLexicalBinding: "let is disallowed as a lexically bound name", MissingFromClause: "Unexpected token", MultipleDefaultsInSwitch: "More than one default clause in switch statement", NewlineAfterThrow: "Illegal newline after throw", NoAsAfterImportNamespace: "Unexpected token", NoCatchOrFinally: "Missing catch or finally after try", ParameterAfterRestParameter: "Rest parameter must be last formal parameter", Redeclaration: "%0 '%1' has already been declared", StaticPrototype: "Classes may not have static property named prototype", StrictCatchVariable: "Catch variable may not be eval or arguments in strict mode", StrictDelete: "Delete of an unqualified identifier in strict mode.", StrictFunction: "In strict mode code, functions can only be declared at top level or inside a block", StrictFunctionName: "Function name may not be eval or arguments in strict mode", StrictLHSAssignment: "Assignment to eval or arguments is not allowed in strict mode", StrictLHSPostfix: "Postfix increment/decrement may not have eval or arguments operand in strict mode", StrictLHSPrefix: "Prefix increment/decrement may not have eval or arguments operand in strict mode", StrictModeWith: "Strict mode code may not include a with statement", StrictOctalLiteral: "Octal literals are not allowed in strict mode.", StrictParamDupe: "Strict mode function may not have duplicate parameter names", StrictParamName: "Parameter name eval or arguments is not allowed in strict mode", StrictReservedWord: "Use of future reserved word in strict mode", StrictVarName: "Variable name may not be eval or arguments in strict mode", TemplateOctalLiteral: "Octal literals are not allowed in template strings.", UnexpectedEOS: "Unexpected end of input", UnexpectedIdentifier: "Unexpected identifier", UnexpectedNumber: "Unexpected number", UnexpectedReserved: "Unexpected reserved word", UnexpectedString: "Unexpected string", UnexpectedTemplate: "Unexpected quasi %0", UnexpectedToken: "Unexpected token %0", UnexpectedTokenIllegal: "Unexpected token ILLEGAL", UnknownLabel: "Undefined label '%0'", UnterminatedRegExp: "Invalid regular expression: missing /" }; }, /* 12 */ /***/ function(e, t, r) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var i = r(9), s = r(4), a = r(11); function o(c) { return "0123456789abcdef".indexOf(c.toLowerCase()); } n(o, "hexValue"); function u(c) { return "01234567".indexOf(c); } n(u, "octalValue"); var l = function() { function c(f, m) { this.source = f, this.errorHandler = m, this.trackComment = !1, this.isModule = !1, this.length = f.length, this.index = 0, this. lineNumber = f.length > 0 ? 1 : 0, this.lineStart = 0, this.curlyStack = []; } return n(c, "Scanner"), c.prototype.saveState = function() { return { index: this.index, lineNumber: this.lineNumber, lineStart: this.lineStart }; }, c.prototype.restoreState = function(f) { this.index = f.index, this.lineNumber = f.lineNumber, this.lineStart = f.lineStart; }, c.prototype.eof = function() { return this.index >= this.length; }, c.prototype.throwUnexpectedToken = function(f) { return f === void 0 && (f = a.Messages.UnexpectedTokenIllegal), this.errorHandler.throwError(this.index, this.lineNumber, this. index - this.lineStart + 1, f); }, c.prototype.tolerateUnexpectedToken = function(f) { f === void 0 && (f = a.Messages.UnexpectedTokenIllegal), this.errorHandler.tolerateError(this.index, this.lineNumber, this.index - this.lineStart + 1, f); }, c.prototype.skipSingleLineComment = function(f) { var m = [], h, d; for (this.trackComment && (m = [], h = this.index - f, d = { start: { line: this.lineNumber, column: this.index - this.lineStart - f }, end: {} }); !this.eof(); ) { var y = this.source.charCodeAt(this.index); if (++this.index, s.Character.isLineTerminator(y)) { if (this.trackComment) { d.end = { line: this.lineNumber, column: this.index - this.lineStart - 1 }; var p = { multiLine: !1, slice: [h + f, this.index - 1], range: [h, this.index - 1], loc: d }; m.push(p); } return y === 13 && this.source.charCodeAt(this.index) === 10 && ++this.index, ++this.lineNumber, this.lineStart = this.index, m; } } if (this.trackComment) { d.end = { line: this.lineNumber, column: this.index - this.lineStart }; var p = { multiLine: !1, slice: [h + f, this.index], range: [h, this.index], loc: d }; m.push(p); } return m; }, c.prototype.skipMultiLineComment = function() { var f = [], m, h; for (this.trackComment && (f = [], m = this.index - 2, h = { start: { line: this.lineNumber, column: this.index - this.lineStart - 2 }, end: {} }); !this.eof(); ) { var d = this.source.charCodeAt(this.index); if (s.Character.isLineTerminator(d)) d === 13 && this.source.charCodeAt(this.index + 1) === 10 && ++this.index, ++this.lineNumber, ++this.index, this.lineStart = this.index; else if (d === 42) { if (this.source.charCodeAt(this.index + 1) === 47) { if (this.index += 2, this.trackComment) { h.end = { line: this.lineNumber, column: this.index - this.lineStart }; var y = { multiLine: !0, slice: [m + 2, this.index - 2], range: [m, this.index], loc: h }; f.push(y); } return f; } ++this.index; } else ++this.index; } if (this.trackComment) { h.end = { line: this.lineNumber, column: this.index - this.lineStart }; var y = { multiLine: !0, slice: [m + 2, this.index], range: [m, this.index], loc: h }; f.push(y); } return this.tolerateUnexpectedToken(), f; }, c.prototype.scanComments = function() { var f; this.trackComment && (f = []); for (var m = this.index === 0; !this.eof(); ) { var h = this.source.charCodeAt(this.index); if (s.Character.isWhiteSpace(h)) ++this.index; else if (s.Character.isLineTerminator(h)) ++this.index, h === 13 && this.source.charCodeAt(this.index) === 10 && ++this.index, ++this.lineNumber, this.lineStart = this. index, m = !0; else if (h === 47) if (h = this.source.charCodeAt(this.index + 1), h === 47) { this.index += 2; var d = this.skipSingleLineComment(2); this.trackComment && (f = f.concat(d)), m = !0; } else if (h === 42) { this.index += 2; var d = this.skipMultiLineComment(); this.trackComment && (f = f.concat(d)); } else break; else if (m && h === 45) if (this.source.charCodeAt(this.index + 1) === 45 && this.source.charCodeAt(this.index + 2) === 62) { this.index += 3; var d = this.skipSingleLineComment(3); this.trackComment && (f = f.concat(d)); } else break; else if (h === 60 && !this.isModule) if (this.source.slice(this.index + 1, this.index + 4) === "!--") { this.index += 4; var d = this.skipSingleLineComment(4); this.trackComment && (f = f.concat(d)); } else break; else break; } return f; }, c.prototype.isFutureReservedWord = function(f) { switch (f) { case "enum": case "export": case "import": case "super": return !0; default: return !1; } }, c.prototype.isStrictModeReservedWord = function(f) { switch (f) { case "implements": case "interface": case "package": case "private": case "protected": case "public": case "static": case "yield": case "let": return !0; default: return !1; } }, c.prototype.isRestrictedWord = function(f) { return f === "eval" || f === "arguments"; }, c.prototype.isKeyword = function(f) { switch (f.length) { case 2: return f === "if" || f === "in" || f === "do"; case 3: return f === "var" || f === "for" || f === "new" || f === "try" || f === "let"; case 4: return f === "this" || f === "else" || f === "case" || f === "void" || f === "with" || f === "enum"; case 5: return f === "while" || f === "break" || f === "catch" || f === "throw" || f === "const" || f === "yield" || f === "class" || f === "super"; case 6: return f === "return" || f === "typeof" || f === "delete" || f === "switch" || f === "export" || f === "import"; case 7: return f === "default" || f === "finally" || f === "extends"; case 8: return f === "function" || f === "continue" || f === "debugger"; case 10: return f === "instanceof"; default: return !1; } }, c.prototype.codePointAt = function(f) { var m = this.source.charCodeAt(f); if (m >= 55296 && m <= 56319) { var h = this.source.charCodeAt(f + 1); if (h >= 56320 && h <= 57343) { var d = m; m = (d - 55296) * 1024 + h - 56320 + 65536; } } return m; }, c.prototype.scanHexEscape = function(f) { for (var m = f === "u" ? 4 : 2, h = 0, d = 0; d < m; ++d) if (!this.eof() && s.Character.isHexDigit(this.source.charCodeAt(this.index))) h = h * 16 + o(this.source[this.index++]); else return null; return String.fromCharCode(h); }, c.prototype.scanUnicodeCodePointEscape = function() { var f = this.source[this.index], m = 0; for (f === "}" && this.throwUnexpectedToken(); !this.eof() && (f = this.source[this.index++], !!s.Character.isHexDigit(f.charCodeAt( 0))); ) m = m * 16 + o(f); return (m > 1114111 || f !== "}") && this.throwUnexpectedToken(), s.Character.fromCodePoint(m); }, c.prototype.getIdentifier = function() { for (var f = this.index++; !this.eof(); ) { var m = this.source.charCodeAt(this.index); if (m === 92) return this.index = f, this.getComplexIdentifier(); if (m >= 55296 && m < 57343) return this.index = f, this.getComplexIdentifier(); if (s.Character.isIdentifierPart(m)) ++this.index; else break; } return this.source.slice(f, this.index); }, c.prototype.getComplexIdentifier = function() { var f = this.codePointAt(this.index), m = s.Character.fromCodePoint(f); this.index += m.length; var h; for (f === 92 && (this.source.charCodeAt(this.index) !== 117 && this.throwUnexpectedToken(), ++this.index, this.source[this.index] === "{" ? (++this.index, h = this.scanUnicodeCodePointEscape()) : (h = this.scanHexEscape("u"), (h === null || h === "\\" || !s.Character. isIdentifierStart(h.charCodeAt(0))) && this.throwUnexpectedToken()), m = h); !this.eof() && (f = this.codePointAt(this.index), !!s.Character.isIdentifierPart(f)); ) h = s.Character.fromCodePoint(f), m += h, this.index += h.length, f === 92 && (m = m.substr(0, m.length - 1), this.source.charCodeAt( this.index) !== 117 && this.throwUnexpectedToken(), ++this.index, this.source[this.index] === "{" ? (++this.index, h = this. scanUnicodeCodePointEscape()) : (h = this.scanHexEscape("u"), (h === null || h === "\\" || !s.Character.isIdentifierPart(h.charCodeAt( 0))) && this.throwUnexpectedToken()), m += h); return m; }, c.prototype.octalToDecimal = function(f) { var m = f !== "0", h = u(f); return !this.eof() && s.Character.isOctalDigit(this.source.charCodeAt(this.index)) && (m = !0, h = h * 8 + u(this.source[this. index++]), "0123".indexOf(f) >= 0 && !this.eof() && s.Character.isOctalDigit(this.source.charCodeAt(this.index)) && (h = h * 8 + u(this.source[this.index++]))), { code: h, octal: m }; }, c.prototype.scanIdentifier = function() { var f, m = this.index, h = this.source.charCodeAt(m) === 92 ? this.getComplexIdentifier() : this.getIdentifier(); if (h.length === 1 ? f = 3 : this.isKeyword(h) ? f = 4 : h === "null" ? f = 5 : h === "true" || h === "false" ? f = 1 : f = 3, f !== 3 && m + h.length !== this.index) { var d = this.index; this.index = m, this.tolerateUnexpectedToken(a.Messages.InvalidEscapedReservedWord), this.index = d; } return { type: f, value: h, lineNumber: this.lineNumber, lineStart: this.lineStart, start: m, end: this.index }; }, c.prototype.scanPunctuator = function() { var f = this.index, m = this.source[this.index]; switch (m) { case "(": case "{": m === "{" && this.curlyStack.push("{"), ++this.index; break; case ".": ++this.index, this.source[this.index] === "." && this.source[this.index + 1] === "." && (this.index += 2, m = "..."); break; case "}": ++this.index, this.curlyStack.pop(); break; case ")": case ";": case ",": case "[": case "]": case ":": case "?": case "~": ++this.index; break; default: m = this.source.substr(this.index, 4), m === ">>>=" ? this.index += 4 : (m = m.substr(0, 3), m === "===" || m === "!==" || m === ">>>" || m === "<<=" || m === ">>=" || m === "**=" ? this.index += 3 : (m = m.substr(0, 2), m === "&&" || m === "||" || m === "==" || m === "!=" || m === "+=" || m === "-=" || m === "*=" || m === "/=" || m === "++" || m === "--" || m === "<<" || m === ">>" || m === "&=" || m === "|=" || m === "^=" || m === "%=" || m === "<=" || m === ">=" || m === "=>" || m === "**" ? this.index += 2 : (m = this.source[this.index], "<>=!+-*%&|^/".indexOf(m) >= 0 && ++this.index))); } return this.index === f && this.throwUnexpectedToken(), { type: 7, value: m, lineNumber: this.lineNumber, lineStart: this.lineStart, start: f, end: this.index }; }, c.prototype.scanHexLiteral = function(f) { for (var m = ""; !this.eof() && s.Character.isHexDigit(this.source.charCodeAt(this.index)); ) m += this.source[this.index++]; return m.length === 0 && this.throwUnexpectedToken(), s.Character.isIdentifierStart(this.source.charCodeAt(this.index)) && this. throwUnexpectedToken(), { type: 6, value: parseInt("0x" + m, 16), lineNumber: this.lineNumber, lineStart: this.lineStart, start: f, end: this.index }; }, c.prototype.scanBinaryLiteral = function(f) { for (var m = "", h; !this.eof() && (h = this.source[this.index], !(h !== "0" && h !== "1")); ) m += this.source[this.index++]; return m.length === 0 && this.throwUnexpectedToken(), this.eof() || (h = this.source.charCodeAt(this.index), (s.Character.isIdentifierStart( h) || s.Character.isDecimalDigit(h)) && this.throwUnexpectedToken()), { type: 6, value: parseInt(m, 2), lineNumber: this.lineNumber, lineStart: this.lineStart, start: f, end: this.index }; }, c.prototype.scanOctalLiteral = function(f, m) { var h = "", d = !1; for (s.Character.isOctalDigit(f.charCodeAt(0)) ? (d = !0, h = "0" + this.source[this.index++]) : ++this.index; !this.eof() && s. Character.isOctalDigit(this.source.charCodeAt(this.index)); ) h += this.source[this.index++]; return !d && h.length === 0 && this.throwUnexpectedToken(), (s.Character.isIdentifierStart(this.source.charCodeAt(this.index)) || s.Character.isDecimalDigit(this.source.charCodeAt(this.index))) && this.throwUnexpectedToken(), { type: 6, value: parseInt(h, 8), octal: d, lineNumber: this.lineNumber, lineStart: this.lineStart, start: m, end: this.index }; }, c.prototype.isImplicitOctalLiteral = function() { for (var f = this.index + 1; f < this.length; ++f) { var m = this.source[f]; if (m === "8" || m === "9") return !1; if (!s.Character.isOctalDigit(m.charCodeAt(0))) return !0; } return !0; }, c.prototype.scanNumericLiteral = function() { var f = this.index, m = this.source[f]; i.assert(s.Character.isDecimalDigit(m.charCodeAt(0)) || m === ".", "Numeric literal must start with a decimal digit or a decim\ al point"); var h = ""; if (m !== ".") { if (h = this.source[this.index++], m = this.source[this.index], h === "0") { if (m === "x" || m === "X") return ++this.index, this.scanHexLiteral(f); if (m === "b" || m === "B") return ++this.index, this.scanBinaryLiteral(f); if (m === "o" || m === "O") return this.scanOctalLiteral(m, f); if (m && s.Character.isOctalDigit(m.charCodeAt(0)) && this.isImplicitOctalLiteral()) return this.scanOctalLiteral(m, f); } for (; s.Character.isDecimalDigit(this.source.charCodeAt(this.index)); ) h += this.source[this.index++]; m = this.source[this.index]; } if (m === ".") { for (h += this.source[this.index++]; s.Character.isDecimalDigit(this.source.charCodeAt(this.index)); ) h += this.source[this.index++]; m = this.source[this.index]; } if (m === "e" || m === "E") if (h += this.source[this.index++], m = this.source[this.index], (m === "+" || m === "-") && (h += this.source[this.index++]), s.Character.isDecimalDigit(this.source.charCodeAt(this.index))) for (; s.Character.isDecimalDigit(this.source.charCodeAt(this.index)); ) h += this.source[this.index++]; else this.throwUnexpectedToken(); return s.Character.isIdentifierStart(this.source.charCodeAt(this.index)) && this.throwUnexpectedToken(), { type: 6, value: parseFloat(h), lineNumber: this.lineNumber, lineStart: this.lineStart, start: f, end: this.index }; }, c.prototype.scanStringLiteral = function() { var f = this.index, m = this.source[f]; i.assert(m === "'" || m === '"', "String literal must starts with a quote"), ++this.index; for (var h = !1, d = ""; !this.eof(); ) { var y = this.source[this.index++]; if (y === m) { m = ""; break; } else if (y === "\\") if (y = this.source[this.index++], !y || !s.Character.isLineTerminator(y.charCodeAt(0))) switch (y) { case "u": if (this.source[this.index] === "{") ++this.index, d += this.scanUnicodeCodePointEscape(); else { var p = this.scanHexEscape(y); p === null && this.throwUnexpectedToken(), d += p; } break; case "x": var g = this.scanHexEscape(y); g === null && this.throwUnexpectedToken(a.Messages.InvalidHexEscapeSequence), d += g; break; case "n": d += ` `; break; case "r": d += "\r"; break; case "t": d += " "; break; case "b": d += "\b"; break; case "f": d += "\f"; break; case "v": d += "\v"; break; case "8": case "9": d += y, this.tolerateUnexpectedToken(); break; default: if (y && s.Character.isOctalDigit(y.charCodeAt(0))) { var b = this.octalToDecimal(y); h = b.octal || h, d += String.fromCharCode(b.code); } else d += y; break; } else ++this.lineNumber, y === "\r" && this.source[this.index] === ` ` && ++this.index, this.lineStart = this.index; else { if (s.Character.isLineTerminator(y.charCodeAt(0))) break; d += y; } } return m !== "" && (this.index = f, this.throwUnexpectedToken()), { type: 8, value: d, octal: h, lineNumber: this.lineNumber, lineStart: this.lineStart, start: f, end: this.index }; }, c.prototype.scanTemplate = function() { var f = "", m = !1, h = this.index, d = this.source[h] === "`", y = !1, p = 2; for (++this.index; !this.eof(); ) { var g = this.source[this.index++]; if (g === "`") { p = 1, y = !0, m = !0; break; } else if (g === "$") { if (this.source[this.index] === "{") { this.curlyStack.push("${"), ++this.index, m = !0; break; } f += g; } else if (g === "\\") if (g = this.source[this.index++], s.Character.isLineTerminator(g.charCodeAt(0))) ++this.lineNumber, g === "\r" && this.source[this.index] === ` ` && ++this.index, this.lineStart = this.index; else switch (g) { case "n": f += ` `; break; case "r": f += "\r"; break; case "t": f += " "; break; case "u": if (this.source[this.index] === "{") ++this.index, f += this.scanUnicodeCodePointEscape(); else { var b = this.index, D = this.scanHexEscape(g); D !== null ? f += D : (this.index = b, f += g); } break; case "x": var x = this.scanHexEscape(g); x === null && this.throwUnexpectedToken(a.Messages.InvalidHexEscapeSequence), f += x; break; case "b": f += "\b"; break; case "f": f += "\f"; break; case "v": f += "\v"; break; default: g === "0" ? (s.Character.isDecimalDigit(this.source.charCodeAt(this.index)) && this.throwUnexpectedToken(a.Messages. TemplateOctalLiteral), f += "\0") : s.Character.isOctalDigit(g.charCodeAt(0)) ? this.throwUnexpectedToken(a.Messages. TemplateOctalLiteral) : f += g; break; } else s.Character.isLineTerminator(g.charCodeAt(0)) ? (++this.lineNumber, g === "\r" && this.source[this.index] === ` ` && ++this.index, this.lineStart = this.index, f += ` `) : f += g; } return m || this.throwUnexpectedToken(), d || this.curlyStack.pop(), { type: 10, value: this.source.slice(h + 1, this.index - p), cooked: f, head: d, tail: y, lineNumber: this.lineNumber, lineStart: this.lineStart, start: h, end: this.index }; }, c.prototype.testRegExp = function(f, m) { var h = "\uFFFF", d = f, y = this; m.indexOf("u") >= 0 && (d = d.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g, function(p, g, b) { var D = parseInt(g || b, 16); return D > 1114111 && y.throwUnexpectedToken(a.Messages.InvalidRegExp), D <= 65535 ? String.fromCharCode(D) : h; }).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, h)); try { RegExp(d); } catch { this.throwUnexpectedToken(a.Messages.InvalidRegExp); } try { return new RegExp(f, m); } catch { return null; } }, c.prototype.scanRegExpBody = function() { var f = this.source[this.index]; i.assert(f === "/", "Regular expression literal must start with a slash"); for (var m = this.source[this.index++], h = !1, d = !1; !this.eof(); ) if (f = this.source[this.index++], m += f, f === "\\") f = this.source[this.index++], s.Character.isLineTerminator(f.charCodeAt(0)) && this.throwUnexpectedToken(a.Messages.UnterminatedRegExp), m += f; else if (s.Character.isLineTerminator(f.charCodeAt(0))) this.throwUnexpectedToken(a.Messages.UnterminatedRegExp); else if (h) f === "]" && (h = !1); else if (f === "/") { d = !0; break; } else f === "[" && (h = !0); return d || this.throwUnexpectedToken(a.Messages.UnterminatedRegExp), m.substr(1, m.length - 2); }, c.prototype.scanRegExpFlags = function() { for (var f = "", m = ""; !this.eof(); ) { var h = this.source[this.index]; if (!s.Character.isIdentifierPart(h.charCodeAt(0))) break; if (++this.index, h === "\\" && !this.eof()) if (h = this.source[this.index], h === "u") { ++this.index; var d = this.index, y = this.scanHexEscape("u"); if (y !== null) for (m += y, f += "\\u"; d < this.index; ++d) f += this.source[d]; else this.index = d, m += "u", f += "\\u"; this.tolerateUnexpectedToken(); } else f += "\\", this.tolerateUnexpectedToken(); else m += h, f += h; } return m; }, c.prototype.scanRegExp = function() { var f = this.index, m = this.scanRegExpBody(), h = this.scanRegExpFlags(), d = this.testRegExp(m, h); return { type: 9, value: "", pattern: m, flags: h, regex: d, lineNumber: this.lineNumber, lineStart: this.lineStart, start: f, end: this.index }; }, c.prototype.lex = function() { if (this.eof()) return { type: 2, value: "", lineNumber: this.lineNumber, lineStart: this.lineStart, start: this.index, end: this.index }; var f = this.source.charCodeAt(this.index); return s.Character.isIdentifierStart(f) ? this.scanIdentifier() : f === 40 || f === 41 || f === 59 ? this.scanPunctuator() : f === 39 || f === 34 ? this.scanStringLiteral() : f === 46 ? s.Character.isDecimalDigit(this.source.charCodeAt(this.index + 1)) ? this. scanNumericLiteral() : this.scanPunctuator() : s.Character.isDecimalDigit(f) ? this.scanNumericLiteral() : f === 96 || f === 125 && this.curlyStack[this.curlyStack.length - 1] === "${" ? this.scanTemplate() : f >= 55296 && f < 57343 && s.Character.isIdentifierStart( this.codePointAt(this.index)) ? this.scanIdentifier() : this.scanPunctuator(); }, c; }(); t.Scanner = l; }, /* 13 */ /***/ function(e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), t.TokenName = {}, t.TokenName[ 1 /* BooleanLiteral */ ] = "Boolean", t.TokenName[ 2 /* EOF */ ] = "", t.TokenName[ 3 /* Identifier */ ] = "Identifier", t.TokenName[ 4 /* Keyword */ ] = "Keyword", t.TokenName[ 5 /* NullLiteral */ ] = "Null", t.TokenName[ 6 /* NumericLiteral */ ] = "Numeric", t.TokenName[ 7 /* Punctuator */ ] = "Punctuator", t.TokenName[ 8 /* StringLiteral */ ] = "String", t.TokenName[ 9 /* RegularExpression */ ] = "RegularExpression", t.TokenName[ 10 /* Template */ ] = "Template"; }, /* 14 */ /***/ function(e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), t.XHTMLEntities = { quot: '"', amp: "&", apos: "'", gt: ">", nbsp: "\xA0", iexcl: "\xA1", cent: "\xA2", pound: "\xA3", curren: "\xA4", yen: "\xA5", brvbar: "\xA6", sect: "\xA7", uml: "\xA8", copy: "\xA9", ordf: "\xAA", laquo: "\xAB", not: "\xAC", shy: "\xAD", reg: "\xAE", macr: "\xAF", deg: "\xB0", plusmn: "\xB1", sup2: "\xB2", sup3: "\xB3", acute: "\xB4", micro: "\xB5", para: "\xB6", middot: "\xB7", cedil: "\xB8", sup1: "\xB9", ordm: "\xBA", raquo: "\xBB", frac14: "\xBC", frac12: "\xBD", frac34: "\xBE", iquest: "\xBF", Agrave: "\xC0", Aacute: "\xC1", Acirc: "\xC2", Atilde: "\xC3", Auml: "\xC4", Aring: "\xC5", AElig: "\xC6", Ccedil: "\xC7", Egrave: "\xC8", Eacute: "\xC9", Ecirc: "\xCA", Euml: "\xCB", Igrave: "\xCC", Iacute: "\xCD", Icirc: "\xCE", Iuml: "\xCF", ETH: "\xD0", Ntilde: "\xD1", Ograve: "\xD2", Oacute: "\xD3", Ocirc: "\xD4", Otilde: "\xD5", Ouml: "\xD6", times: "\xD7", Oslash: "\xD8", Ugrave: "\xD9", Uacute: "\xDA", Ucirc: "\xDB", Uuml: "\xDC", Yacute: "\xDD", THORN: "\xDE", szlig: "\xDF", agrave: "\xE0", aacute: "\xE1", acirc: "\xE2", atilde: "\xE3", auml: "\xE4", aring: "\xE5", aelig: "\xE6", ccedil: "\xE7", egrave: "\xE8", eacute: "\xE9", ecirc: "\xEA", euml: "\xEB", igrave: "\xEC", iacute: "\xED", icirc: "\xEE", iuml: "\xEF", eth: "\xF0", ntilde: "\xF1", ograve: "\xF2", oacute: "\xF3", ocirc: "\xF4", otilde: "\xF5", ouml: "\xF6", divide: "\xF7", oslash: "\xF8", ugrave: "\xF9", uacute: "\xFA", ucirc: "\xFB", uuml: "\xFC", yacute: "\xFD", thorn: "\xFE", yuml: "\xFF", OElig: "\u0152", oelig: "\u0153", Scaron: "\u0160", scaron: "\u0161", Yuml: "\u0178", fnof: "\u0192", circ: "\u02C6", tilde: "\u02DC", Alpha: "\u0391", Beta: "\u0392", Gamma: "\u0393", Delta: "\u0394", Epsilon: "\u0395", Zeta: "\u0396", Eta: "\u0397", Theta: "\u0398", Iota: "\u0399", Kappa: "\u039A", Lambda: "\u039B", Mu: "\u039C", Nu: "\u039D", Xi: "\u039E", Omicron: "\u039F", Pi: "\u03A0", Rho: "\u03A1", Sigma: "\u03A3", Tau: "\u03A4", Upsilon: "\u03A5", Phi: "\u03A6", Chi: "\u03A7", Psi: "\u03A8", Omega: "\u03A9", alpha: "\u03B1", beta: "\u03B2", gamma: "\u03B3", delta: "\u03B4", epsilon: "\u03B5", zeta: "\u03B6", eta: "\u03B7", theta: "\u03B8", iota: "\u03B9", kappa: "\u03BA", lambda: "\u03BB", mu: "\u03BC", nu: "\u03BD", xi: "\u03BE", omicron: "\u03BF", pi: "\u03C0", rho: "\u03C1", sigmaf: "\u03C2", sigma: "\u03C3", tau: "\u03C4", upsilon: "\u03C5", phi: "\u03C6", chi: "\u03C7", psi: "\u03C8", omega: "\u03C9", thetasym: "\u03D1", upsih: "\u03D2", piv: "\u03D6", ensp: "\u2002", emsp: "\u2003", thinsp: "\u2009", zwnj: "\u200C", zwj: "\u200D", lrm: "\u200E", rlm: "\u200F", ndash: "\u2013", mdash: "\u2014", lsquo: "\u2018", rsquo: "\u2019", sbquo: "\u201A", ldquo: "\u201C", rdquo: "\u201D", bdquo: "\u201E", dagger: "\u2020", Dagger: "\u2021", bull: "\u2022", hellip: "\u2026", permil: "\u2030", prime: "\u2032", Prime: "\u2033", lsaquo: "\u2039", rsaquo: "\u203A", oline: "\u203E", frasl: "\u2044", euro: "\u20AC", image: "\u2111", weierp: "\u2118", real: "\u211C", trade: "\u2122", alefsym: "\u2135", larr: "\u2190", uarr: "\u2191", rarr: "\u2192", darr: "\u2193", harr: "\u2194", crarr: "\u21B5", lArr: "\u21D0", uArr: "\u21D1", rArr: "\u21D2", dArr: "\u21D3", hArr: "\u21D4", forall: "\u2200", part: "\u2202", exist: "\u2203", empty: "\u2205", nabla: "\u2207", isin: "\u2208", notin: "\u2209", ni: "\u220B", prod: "\u220F", sum: "\u2211", minus: "\u2212", lowast: "\u2217", radic: "\u221A", prop: "\u221D", infin: "\u221E", ang: "\u2220", and: "\u2227", or: "\u2228", cap: "\u2229", cup: "\u222A", int: "\u222B", there4: "\u2234", sim: "\u223C", cong: "\u2245", asymp: "\u2248", ne: "\u2260", equiv: "\u2261", le: "\u2264", ge: "\u2265", sub: "\u2282", sup: "\u2283", nsub: "\u2284", sube: "\u2286", supe: "\u2287", oplus: "\u2295", otimes: "\u2297", perp: "\u22A5", sdot: "\u22C5", lceil: "\u2308", rceil: "\u2309", lfloor: "\u230A", rfloor: "\u230B", loz: "\u25CA", spades: "\u2660", clubs: "\u2663", hearts: "\u2665", diams: "\u2666", lang: "\u27E8", rang: "\u27E9" }; }, /* 15 */ /***/ function(e, t, r) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var i = r(10), s = r(12), a = r(13), o = function() { function l() { this.values = [], this.curly = this.paren = -1; } return n(l, "Reader"), l.prototype.beforeFunctionExpression = function(c) { return [ "(", "{", "[", "in", "typeof", "instanceof", "new", "return", "case", "delete", "throw", "void", // assignment operators "=", "+=", "-=", "*=", "**=", "/=", "%=", "<<=", ">>=", ">>>=", "&=", "|=", "^=", ",", // binary/unary operators "+", "-", "*", "**", "/", "%", "++", "--", "<<", ">>", ">>>", "&", "|", "^", "!", "~", "&&", "||", "?", ":", "===", "==", ">=", "<=", "<", ">", "!=", "!==" ].indexOf(c) >= 0; }, l.prototype.isRegexStart = function() { var c = this.values[this.values.length - 1], f = c !== null; switch (c) { case "this": case "]": f = !1; break; case ")": var m = this.values[this.paren - 1]; f = m === "if" || m === "while" || m === "for" || m === "with"; break; case "}": if (f = !1, this.values[this.curly - 3] === "function") { var h = this.values[this.curly - 4]; f = h ? !this.beforeFunctionExpression(h) : !1; } else if (this.values[this.curly - 4] === "function") { var h = this.values[this.curly - 5]; f = h ? !this.beforeFunctionExpression(h) : !0; } break; default: break; } return f; }, l.prototype.push = function(c) { c.type === 7 || c.type === 4 ? (c.value === "{" ? this.curly = this.values.length : c.value === "(" && (this.paren = this.values. length), this.values.push(c.value)) : this.values.push(null); }, l; }(), u = function() { function l(c, f) { this.errorHandler = new i.ErrorHandler(), this.errorHandler.tolerant = f ? typeof f.tolerant == "boolean" && f.tolerant : !1, this. scanner = new s.Scanner(c, this.errorHandler), this.scanner.trackComment = f ? typeof f.comment == "boolean" && f.comment : !1, this.trackRange = f ? typeof f.range == "boolean" && f.range : !1, this.trackLoc = f ? typeof f.loc == "boolean" && f.loc : !1, this.buffer = [], this.reader = new o(); } return n(l, "Tokenizer"), l.prototype.errors = function() { return this.errorHandler.errors; }, l.prototype.getNextToken = function() { if (this.buffer.length === 0) { var c = this.scanner.scanComments(); if (this.scanner.trackComment) for (var f = 0; f < c.length; ++f) { var m = c[f], h = this.scanner.source.slice(m.slice[0], m.slice[1]), d = { type: m.multiLine ? "BlockComment" : "LineComment", value: h }; this.trackRange && (d.range = m.range), this.trackLoc && (d.loc = m.loc), this.buffer.push(d); } if (!this.scanner.eof()) { var y = void 0; this.trackLoc && (y = { start: { line: this.scanner.lineNumber, column: this.scanner.index - this.scanner.lineStart }, end: {} }); var p = this.scanner.source[this.scanner.index] === "/" && this.reader.isRegexStart(), g = p ? this.scanner.scanRegExp() : this.scanner.lex(); this.reader.push(g); var b = { type: a.TokenName[g.type], value: this.scanner.source.slice(g.start, g.end) }; if (this.trackRange && (b.range = [g.start, g.end]), this.trackLoc && (y.end = { line: this.scanner.lineNumber, column: this.scanner.index - this.scanner.lineStart }, b.loc = y), g.type === 9) { var D = g.pattern, x = g.flags; b.regex = { pattern: D, flags: x }; } this.buffer.push(b); } } return this.buffer.shift(); }, l; }(); t.Tokenizer = u; } /******/ ]) ); }); }); // ../node_modules/array-timsort/src/index.js var HB = E((vot, WB) => { var LB = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9], Te, jB = /* @__PURE__ */ n((e) => e < 1e5 ? e < 100 ? e < 10 ? 0 : 1 : e < 1e4 ? e < 1e3 ? 2 : 3 : 4 : e < 1e7 ? e < 1e6 ? 5 : 6 : e < 1e9 ? e < 1e8 ? 7 : 8 : 9, "log10"); function qB(e, t) { if (e === t) return 0; if (~~e === e && ~~t === t) { if (e === 0 || t === 0) return e < t ? -1 : 1; if (e < 0 || t < 0) { if (t >= 0) return -1; if (e >= 0) return 1; e = -e, t = -t; } let s = jB(e), a = jB(t), o = 0; return s < a ? (e *= LB[a - s - 1], t /= 10, o = -1) : s > a && (t *= LB[s - a - 1], e /= 10, o = 1), e === t ? o : e < t ? -1 : 1; } let r = String(e), i = String(t); return r === i ? 0 : r < i ? -1 : 1; } n(qB, "alphabeticalCompare"); function Vce(e) { let t = 0; for (; e >= 32; ) t |= e & 1, e >>= 1; return e + t; } n(Vce, "minRunLength"); function UB(e, t, r, i) { let s = t + 1; if (s === r) return 1; if (i(e[s++], e[t]) < 0) { for (; s < r && i(e[s], e[s - 1]) < 0; ) s++; $B(e, t, s), $B(Te, t, s); } else for (; s < r && i(e[s], e[s - 1]) >= 0; ) s++; return s - t; } n(UB, "makeAscendingRun"); function $B(e, t, r) { for (r--; t < r; ) { let i = e[t]; e[t++] = e[r], e[r--] = i; } } n($B, "reverseRun"); function VB(e, t, r, i, s) { for (i === t && i++; i < r; i++) { let a = e[i], o = Te[i], u = t, l = i; for (; u < l; ) { let f = u + l >>> 1; s(a, e[f]) < 0 ? l = f : u = f + 1; } let c = i - u; switch (c) { case 3: e[u + 3] = e[u + 2], Te[u + 3] = Te[u + 2]; /* falls through */ case 2: e[u + 2] = e[u + 1], Te[u + 2] = Te[u + 1]; /* falls through */ case 1: e[u + 1] = e[u], Te[u + 1] = Te[u]; break; default: for (; c > 0; ) e[u + c] = e[u + c - 1], Te[u + c] = Te[u + c - 1], c--; } e[u] = a, Te[u] = o; } } n(VB, "binaryInsertionSort"); function Fx(e, t, r, i, s, a) { let o = 0, u = 0, l = 1; if (a(e, t[r + s]) > 0) { for (u = i - s; l < u && a(e, t[r + s + l]) > 0; ) o = l, l = (l << 1) + 1, l <= 0 && (l = u); l > u && (l = u), o += s, l += s; } else { for (u = s + 1; l < u && a(e, t[r + s - l]) <= 0; ) o = l, l = (l << 1) + 1, l <= 0 && (l = u); l > u && (l = u); let c = o; o = s - l, l = s - c; } for (o++; o < l; ) { let c = o + (l - o >>> 1); a(e, t[r + c]) > 0 ? o = c + 1 : l = c; } return l; } n(Fx, "gallopLeft"); function Ix(e, t, r, i, s, a) { let o = 0, u = 0, l = 1; if (a(e, t[r + s]) < 0) { for (u = s + 1; l < u && a(e, t[r + s - l]) < 0; ) o = l, l = (l << 1) + 1, l <= 0 && (l = u); l > u && (l = u); let c = o; o = s - l, l = s - c; } else { for (u = i - s; l < u && a(e, t[r + s + l]) >= 0; ) o = l, l = (l << 1) + 1, l <= 0 && (l = u); l > u && (l = u), o += s, l += s; } for (o++; o < l; ) { let c = o + (l - o >>> 1); a(e, t[r + c]) < 0 ? l = c : o = c + 1; } return l; } n(Ix, "gallopRight"); var Ox = class { static { n(this, "TimSort"); } constructor(t, r) { this.array = t, this.compare = r; let { length: i } = t; this.length = i, this.minGallop = 7, this.tmpStorageLength = i < 2 * 256 ? i >>> 1 : 256, this.tmp = new Array(this.tmpStorageLength), this.tmpIndex = new Array(this.tmpStorageLength), this.stackLength = i < 120 ? 5 : i < 1542 ? 10 : i < 119151 ? 19 : 40, this.runStart = new Array(this.stackLength), this.runLength = new Array(this.stackLength), this.stackSize = 0; } /** * Push a new run on TimSort's stack. * * @param {number} runStart - Start index of the run in the original array. * @param {number} runLength - Length of the run; */ pushRun(t, r) { this.runStart[this.stackSize] = t, this.runLength[this.stackSize] = r, this.stackSize += 1; } /** * Merge runs on TimSort's stack so that the following holds for all i: * 1) runLength[i - 3] > runLength[i - 2] + runLength[i - 1] * 2) runLength[i - 2] > runLength[i - 1] */ mergeRuns() { for (; this.stackSize > 1; ) { let t = this.stackSize - 2; if (t >= 1 && this.runLength[t - 1] <= this.runLength[t] + this.runLength[t + 1] || t >= 2 && this.runLength[t - 2] <= this.runLength[t] + this.runLength[t - 1]) this.runLength[t - 1] < this.runLength[t + 1] && t--; else if (this.runLength[t] > this.runLength[t + 1]) break; this.mergeAt(t); } } /** * Merge all runs on TimSort's stack until only one remains. */ forceMergeRuns() { for (; this.stackSize > 1; ) { let t = this.stackSize - 2; t > 0 && this.runLength[t - 1] < this.runLength[t + 1] && t--, this.mergeAt(t); } } /** * Merge the runs on the stack at positions i and i+1. Must be always be called * with i=stackSize-2 or i=stackSize-3 (that is, we merge on top of the stack). * * @param {number} i - Index of the run to merge in TimSort's stack. */ mergeAt(t) { let { compare: r } = this, { array: i } = this, s = this.runStart[t], a = this.runLength[t], o = this.runStart[t + 1], u = this.runLength[t + 1]; this.runLength[t] = a + u, t === this.stackSize - 3 && (this.runStart[t + 1] = this.runStart[t + 2], this.runLength[t + 1] = this.runLength[t + 2]), this.stackSize--; let l = Ix(i[o], i, s, a, 0, r); s += l, a -= l, a !== 0 && (u = Fx( i[s + a - 1], i, o, u, u - 1, r ), u !== 0 && (a <= u ? this.mergeLow(s, a, o, u) : this.mergeHigh(s, a, o, u))); } /** * Merge two adjacent runs in a stable way. The runs must be such that the * first element of run1 is bigger than the first element in run2 and the * last element of run1 is greater than all the elements in run2. * The method should be called when run1.length <= run2.length as it uses * TimSort temporary array to store run1. Use mergeHigh if run1.length > * run2.length. * * @param {number} start1 - First element in run1. * @param {number} length1 - Length of run1. * @param {number} start2 - First element in run2. * @param {number} length2 - Length of run2. */ mergeLow(t, r, i, s) { let { compare: a } = this, { array: o } = this, { tmp: u } = this, { tmpIndex: l } = this, c = 0; for (c = 0; c < r; c++) u[c] = o[t + c], l[c] = Te[t + c]; let f = 0, m = i, h = t; if (o[h] = o[m], Te[h] = Te[m], h++, m++, --s === 0) { for (c = 0; c < r; c++) o[h + c] = u[f + c], Te[h + c] = l[f + c]; return; } if (r === 1) { for (c = 0; c < s; c++) o[h + c] = o[m + c], Te[h + c] = Te[m + c]; o[h + s] = u[f], Te[h + s] = l[f]; return; } let { minGallop: d } = this; for (; ; ) { let y = 0, p = 0, g = !1; do if (a(o[m], u[f]) < 0) { if (o[h] = o[m], Te[h] = Te[m], h++, m++, p++, y = 0, --s === 0) { g = !0; break; } } else if (o[h] = u[f], Te[h] = l[f], h++, f++, y++, p = 0, --r === 1) { g = !0; break; } while ((y | p) < d); if (g) break; do { if (y = Ix(o[m], u, f, r, 0, a), y !== 0) { for (c = 0; c < y; c++) o[h + c] = u[f + c], Te[h + c] = l[f + c]; if (h += y, f += y, r -= y, r <= 1) { g = !0; break; } } if (o[h] = o[m], Te[h] = Te[m], h++, m++, --s === 0) { g = !0; break; } if (p = Fx(u[f], o, m, s, 0, a), p !== 0) { for (c = 0; c < p; c++) o[h + c] = o[m + c], Te[h + c] = Te[m + c]; if (h += p, m += p, s -= p, s === 0) { g = !0; break; } } if (o[h] = u[f], Te[h] = l[f], h++, f++, --r === 1) { g = !0; break; } d--; } while (y >= 7 || p >= 7); if (g) break; d < 0 && (d = 0), d += 2; } if (this.minGallop = d, d < 1 && (this.minGallop = 1), r === 1) { for (c = 0; c < s; c++) o[h + c] = o[m + c], Te[h + c] = Te[m + c]; o[h + s] = u[f], Te[h + s] = l[f]; } else { if (r === 0) throw new Error("mergeLow preconditions were not respected"); for (c = 0; c < r; c++) o[h + c] = u[f + c], Te[h + c] = l[f + c]; } } /** * Merge two adjacent runs in a stable way. The runs must be such that the * first element of run1 is bigger than the first element in run2 and the * last element of run1 is greater than all the elements in run2. * The method should be called when run1.length > run2.length as it uses * TimSort temporary array to store run2. Use mergeLow if run1.length <= * run2.length. * * @param {number} start1 - First element in run1. * @param {number} length1 - Length of run1. * @param {number} start2 - First element in run2. * @param {number} length2 - Length of run2. */ mergeHigh(t, r, i, s) { let { compare: a } = this, { array: o } = this, { tmp: u } = this, { tmpIndex: l } = this, c = 0; for (c = 0; c < s; c++) u[c] = o[i + c], l[c] = Te[i + c]; let f = t + r - 1, m = s - 1, h = i + s - 1, d = 0, y = 0; if (o[h] = o[f], Te[h] = Te[f], h--, f--, --r === 0) { for (d = h - (s - 1), c = 0; c < s; c++) o[d + c] = u[c], Te[d + c] = l[c]; return; } if (s === 1) { for (h -= r, f -= r, y = h + 1, d = f + 1, c = r - 1; c >= 0; c--) o[y + c] = o[d + c], Te[y + c] = Te[d + c]; o[h] = u[m], Te[h] = l[m]; return; } let { minGallop: p } = this; for (; ; ) { let g = 0, b = 0, D = !1; do if (a(u[m], o[f]) < 0) { if (o[h] = o[f], Te[h] = Te[f], h--, f--, g++, b = 0, --r === 0) { D = !0; break; } } else if (o[h] = u[m], Te[h] = l[m], h--, m--, b++, g = 0, --s === 1) { D = !0; break; } while ((g | b) < p); if (D) break; do { if (g = r - Ix( u[m], o, t, r, r - 1, a ), g !== 0) { for (h -= g, f -= g, r -= g, y = h + 1, d = f + 1, c = g - 1; c >= 0; c--) o[y + c] = o[d + c], Te[y + c] = Te[d + c]; if (r === 0) { D = !0; break; } } if (o[h] = u[m], Te[h] = l[m], h--, m--, --s === 1) { D = !0; break; } if (b = s - Fx( o[f], u, 0, s, s - 1, a ), b !== 0) { for (h -= b, m -= b, s -= b, y = h + 1, d = m + 1, c = 0; c < b; c++) o[y + c] = u[d + c], Te[y + c] = l[d + c]; if (s <= 1) { D = !0; break; } } if (o[h] = o[f], Te[h] = Te[f], h--, f--, --r === 0) { D = !0; break; } p--; } while (g >= 7 || b >= 7); if (D) break; p < 0 && (p = 0), p += 2; } if (this.minGallop = p, p < 1 && (this.minGallop = 1), s === 1) { for (h -= r, f -= r, y = h + 1, d = f + 1, c = r - 1; c >= 0; c--) o[y + c] = o[d + c], Te[y + c] = Te[d + c]; o[h] = u[m], Te[h] = l[m]; } else { if (s === 0) throw new Error("mergeHigh preconditions were not respected"); for (d = h - (s - 1), c = 0; c < s; c++) o[d + c] = u[c], Te[d + c] = l[c]; } } }; function Wce(e, t, r, i) { if (!Array.isArray(e)) throw new TypeError( `The "array" argument must be an array. Received ${e}` ); Te = []; let { length: s } = e, a = 0; for (; a < s; ) Te[a] = a++; t ? typeof t != "function" && (i = r, r = t, t = qB) : t = qB, r || (r = 0), i || (i = s); let o = i - r; if (o < 2) return Te; let u = 0; if (o < 32) return u = UB(e, r, i, t), VB(e, r, i, r + u, t), Te; let l = new Ox(e, t), c = Vce(o); do { if (u = UB(e, r, i, t), u < c) { let f = o; f > c && (f = c), VB(e, r, r + f, r + u, t), u = f; } l.pushRun(r, u), l.mergeRuns(), o -= u, r += u; } while (o !== 0); return l.forceMergeRuns(), Te; } n(Wce, "sort"); WB.exports = { sort: Wce }; }); // ../node_modules/has-own-prop/index.js var zB = E((Eot, KB) => { "use strict"; var Hce = Object.prototype.hasOwnProperty; KB.exports = (e, t) => Hce.call(e, t); }); // ../node_modules/comment-json/src/common.js var dd = E((Sot, sN) => { var Nx = zB(), { isObject: JB, isArray: Kce, isString: zce, isNumber: Jce } = dr(), Mx = "before", YB = "after-prop", GB = "after-colon", ZB = "after-value", QB = "after", eN = "before-all", tN = "after-all", Xce = "\ [", Yce = "]", Gce = "{", Zce = "}", Qce = ",", efe = "", tfe = "-", Rx = [ Mx, YB, GB, ZB, QB ], rfe = [ Mx, eN, tN ].map(Symbol.for), rN = ":", XB = void 0, fd = /* @__PURE__ */ n((e, t) => Symbol.for(e + rN + t), "symbol"), gm = /* @__PURE__ */ n((e, t, r) => Object. defineProperty(e, t, { value: r, writable: !0, configurable: !0 }), "define"), Bx = /* @__PURE__ */ n((e, t, r, i, s, a) => { let o = fd(s, i); if (!Nx(t, o)) return; let u = r === i ? o : fd(s, r); gm(e, u, t[o]), a && delete t[o]; }, "copy_comments_by_kind"), iN = /* @__PURE__ */ n((e, t, r, i, s) => { Rx.forEach((a) => { Bx( e, t, r, i, a, s ); }); }, "copy_comments"), ife = /* @__PURE__ */ n((e, t, r) => { t !== r && Rx.forEach((i) => { let s = fd(i, r); if (!Nx(e, s)) { Bx(e, e, r, t, i, !0); return; } let a = e[s]; delete e[s], Bx(e, e, r, t, i, !0), gm(e, fd(i, t), a); }); }, "swap_comments"), kx = /* @__PURE__ */ n((e, t) => { rfe.forEach((r) => { let i = t[r]; i && gm(e, r, i); }); }, "assign_non_prop_comments"), sfe = /* @__PURE__ */ n((e, t, r) => (r.forEach((i) => { !zce(i) && !Jce(i) || Nx(t, i) && (e[i] = t[i], iN(e, t, i, i)); }), e), "assign"); sN.exports = { SYMBOL_PREFIXES: Rx, PREFIX_BEFORE: Mx, PREFIX_AFTER_PROP: YB, PREFIX_AFTER_COLON: GB, PREFIX_AFTER_VALUE: ZB, PREFIX_AFTER: QB, PREFIX_BEFORE_ALL: eN, PREFIX_AFTER_ALL: tN, BRACKET_OPEN: Xce, BRACKET_CLOSE: Yce, CURLY_BRACKET_OPEN: Gce, CURLY_BRACKET_CLOSE: Zce, COLON: rN, COMMA: Qce, MINUS: tfe, EMPTY: efe, UNDEFINED: XB, symbol: fd, define: gm, copy_comments: iN, swap_comments: ife, assign_non_prop_comments: kx, assign(e, t, r) { if (!JB(e)) throw new TypeError("Cannot convert undefined or null to object"); if (!JB(t)) return e; if (r === XB) r = Object.keys(t), kx(e, t); else if (Kce(r)) r.length === 0 && kx(e, t); else throw new TypeError("keys must be array or undefined"); return sfe(e, t, r); } }; }); // ../node_modules/comment-json/src/array.js var jx = E((Cot, lN) => { var { isArray: nfe } = dr(), { sort: afe } = HB(), { SYMBOL_PREFIXES: ofe, UNDEFINED: nN, symbol: ufe, copy_comments: lfe, swap_comments: uN } = dd(), cfe = /* @__PURE__ */ n((e) => { let { length: t } = e, r = 0, i = t / 2; for (; r < i; r++) uN(e, r, t - r - 1); }, "reverse_comments"), aN = /* @__PURE__ */ n((e, t, r, i, s) => { lfe(e, t, r + i, r, s); }, "move_comment"), _l = /* @__PURE__ */ n((e, t, r, i, s, a) => { if (s > 0) { let u = i; for (; u-- > 0; ) aN(e, t, r + u, s, a); return; } let o = 0; for (; o < i; ) { let u = o++; aN(e, t, r + u, s, a); } }, "move_comments"), oN = /* @__PURE__ */ n((e, t) => { ofe.forEach((r) => { let i = ufe(r, t); delete e[i]; }); }, "remove_comments"), ffe = /* @__PURE__ */ n((e, t) => { let r = t; for (; r in e; ) r = e[r]; return r; }, "get_mapped"), Lx = class e extends Array { static { n(this, "CommentArray"); } // - deleteCount + items.length // We should avoid `splice(begin, deleteCount, ...items)`, // because `splice(0, undefined)` is not equivalent to `splice(0)`, // as well as: // - slice splice(...t) { let { length: r } = this, i = super.splice(...t), [s, a, ...o] = t; s < 0 && (s += r), arguments.length === 1 ? a = r - s : a = Math.min(r - s, a); let { length: u } = o, l = u - a, c = s + a, f = r - c; return _l(this, this, c, f, l, !0), i; } slice(...t) { let { length: r } = this, i = super.slice(...t); if (!i.length) return new e(); let [s, a] = t; return a === nN ? a = r : a < 0 && (a += r), s < 0 ? s += r : s === nN && (s = 0), _l(i, this, s, a - s, -s), i; } unshift(...t) { let { length: r } = this, i = super.unshift(...t), { length: s } = t; return s > 0 && _l(this, this, 0, r, s, !0), i; } shift() { let t = super.shift(), { length: r } = this; return oN(this, 0), _l(this, this, 1, r, -1, !0), t; } reverse() { return super.reverse(), cfe(this), this; } pop() { let t = super.pop(); return oN(this, this.length), t; } concat(...t) { let { length: r } = this, i = super.concat(...t); return t.length && (_l(i, this, 0, this.length, 0), t.forEach((s) => { let a = r; r += nfe(s) ? s.length : 1, s instanceof e && _l(i, s, 0, s.length, a); })), i; } sort(...t) { let r = afe( this, ...t.slice(0, 1) ), i = /* @__PURE__ */ Object.create(null); return r.forEach((s, a) => { if (s === a) return; let o = ffe(i, s); o !== a && (i[a] = o, uN(this, a, o)); }), this; } }; lN.exports = { CommentArray: Lx }; }); // ../node_modules/comment-json/src/parse.js var wN = E((Aot, CN) => { var dfe = RB(), { CommentArray: pfe } = jx(), { PREFIX_BEFORE: Dm, PREFIX_AFTER_PROP: hfe, PREFIX_AFTER_COLON: mfe, PREFIX_AFTER_VALUE: pN, PREFIX_AFTER: Ux, PREFIX_BEFORE_ALL: yfe, PREFIX_AFTER_ALL: gfe, BRACKET_OPEN: bfe, BRACKET_CLOSE: cN, CURLY_BRACKET_OPEN: Dfe, CURLY_BRACKET_CLOSE: fN, COLON: hN, COMMA: mN, MINUS: dN, EMPTY: vfe, UNDEFINED: Em, define: $x, assign_non_prop_comments: xfe } = dd(), yN = /* @__PURE__ */ n((e) => dfe.tokenize(e, { comment: !0, loc: !0 }), "tokenize"), Vx = [], Aa = null, zs = null, Wx = [], _a, gN = !1, bN = !1, pd = null, hd = null, Ur = null, DN, vm = null, vN = /* @__PURE__ */ n( () => { Wx.length = Vx.length = 0, hd = null, _a = Em; }, "clean"), Efe = /* @__PURE__ */ n(() => { vN(), pd.length = 0, zs = Aa = pd = hd = Ur = vm = null; }, "free"), Hx = /* @__PURE__ */ n((e) => Symbol.for( _a !== Em ? e + hN + _a : e ), "symbolFor"), Kx = /* @__PURE__ */ n((e, t) => vm ? vm(e, t) : t, "transform"), xN = /* @__PURE__ */ n(() => { let e = new SyntaxError(`Unexpected token ${Ur.value.slice(0, 1)}`); throw Object.assign(e, Ur.loc.start), e; }, "unexpected"), EN = /* @__PURE__ */ n(() => { let e = new SyntaxError("Unexpected end of JSON input"); throw Object.assign(e, hd ? hd.loc.end : { line: 1, column: 0 }), e; }, "unexpected_end"), $i = /* @__PURE__ */ n(() => { let e = pd[++DN]; bN = Ur && e && Ur.loc.end.line === e.loc.start.line || !1, hd = Ur, Ur = e; }, "next"), qx = /* @__PURE__ */ n(() => (Ur || EN(), Ur.type === "Punctuator" ? Ur.value : Ur.type), "type"), Bo = /* @__PURE__ */ n((e) => qx() === e, "is"), bm = /* @__PURE__ */ n((e) => { Bo(e) || xN(); }, "expect"), zx = /* @__PURE__ */ n((e) => { Vx.push(Aa), Aa = e; }, "set_comments_host"), Jx = /* @__PURE__ */ n(() => { Aa = Vx.pop(); }, "restore_comments_host"), SN = /* @__PURE__ */ n(() => { if (!zs) return; let e = []; for (let r of zs) if (r.inline) e.push(r); else break; let { length: t } = e; t && (t === zs.length ? zs = null : zs.splice(0, t), $x(Aa, Hx(Ux), e)); }, "assign_after_comments"), wa = /* @__PURE__ */ n((e) => { zs && ($x(Aa, Hx(e), zs), zs = null); }, "assign_comments"), Js = /* @__PURE__ */ n((e) => { let t = []; for (; Ur && (Bo("LineComment") || Bo("BlockComment")); ) { let r = { ...Ur, inline: bN }; t.push(r), $i(); } if (!gN && t.length) { if (e) { $x(Aa, Hx(e), t); return; } zs = t; } }, "parse_comments"), xm = /* @__PURE__ */ n((e, t) => { t && Wx.push(_a), _a = e; }, "set_prop"), TN = /* @__PURE__ */ n(() => { _a = Wx.pop(); }, "restore_prop"), Sfe = /* @__PURE__ */ n(() => { let e = {}; zx(e), xm(Em, !0); let t = !1, r; for (Js(); !Bo(fN) && !(t && (wa(pN), bm(mN), $i(), Js(), SN(), Bo(fN))); ) t = !0, bm("String"), r = JSON.parse(Ur.value), xm(r), wa(Dm), $i(), Js(hfe), bm(hN), $i(), Js(mfe), e[r] = Kx(r, Xx()), Js(); return t && wa(Ux), $i(), _a = void 0, t || wa(Dm), Jx(), TN(), e; }, "parse_object"), Tfe = /* @__PURE__ */ n(() => { let e = new pfe(); zx(e), xm(Em, !0); let t = !1, r = 0; for (Js(); !Bo(cN) && !(t && (wa(pN), bm(mN), $i(), Js(), SN(), Bo(cN))); ) t = !0, xm(r), wa(Dm), e[r] = Kx(r, Xx()), r++, Js(); return t && wa(Ux), $i(), _a = void 0, t || wa(Dm), Jx(), TN(), e; }, "parse_array"); function Xx() { let e = qx(); if (e === Dfe) return $i(), Sfe(); if (e === bfe) return $i(), Tfe(); let t = vfe; e === dN && ($i(), e = qx(), t = dN); let r; switch (e) { case "String": case "Boolean": case "Null": case "Numeric": return r = Ur.value, $i(), JSON.parse(t + r); default: } } n(Xx, "walk"); var Cfe = /* @__PURE__ */ n((e) => Object(e) === e, "isObject"), wfe = /* @__PURE__ */ n((e, t, r) => { vN(), pd = yN(e), vm = t, gN = r, pd.length || EN(), DN = -1, $i(), zx({}), Js(yfe); let i = Xx(); return Js(gfe), Ur && xN(), !r && i !== null && (Cfe(i) || (i = new Object(i)), xfe(i, Aa)), Jx(), i = Kx("", i), Efe(), i; }, "parse"); CN.exports = { parse: wfe, tokenize: yN }; }); // ../node_modules/repeat-string/index.js var _N = E((Pot, AN) => { "use strict"; var Bn = "", Yx; AN.exports = Afe; function Afe(e, t) { if (typeof e != "string") throw new TypeError("expected a string"); if (t === 1) return e; if (t === 2) return e + e; var r = e.length * t; if (Yx !== e || typeof Yx > "u") Yx = e, Bn = ""; else if (Bn.length >= r) return Bn.substr(0, r); for (; r > Bn.length && t > 1; ) t & 1 && (Bn += e), t >>= 1, e += e; return Bn += e, Bn = Bn.substr(0, r), Bn; } n(Afe, "repeat"); }); // ../node_modules/comment-json/src/stringify.js var jN = E((Iot, LN) => { var { isArray: Qx, isObject: PN, isFunction: Zx, isNumber: _fe, isString: Pfe } = dr(), Ffe = _N(), { PREFIX_BEFORE_ALL: Ife, PREFIX_BEFORE: FN, PREFIX_AFTER_PROP: Ofe, PREFIX_AFTER_COLON: kfe, PREFIX_AFTER_VALUE: Bfe, PREFIX_AFTER: eE, PREFIX_AFTER_ALL: Nfe, BRACKET_OPEN: Mfe, BRACKET_CLOSE: Rfe, CURLY_BRACKET_OPEN: Lfe, CURLY_BRACKET_CLOSE: jfe, COLON: qfe, COMMA: IN, EMPTY: Ti, UNDEFINED: Ufe } = dd(), Gx = /[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, tE = "\ ", No = ` `, ON = "null", kN = /* @__PURE__ */ n((e) => `${FN}:${e}`, "BEFORE"), $fe = /* @__PURE__ */ n((e) => `${Ofe}:${e}`, "AFTER_PROP"), Vfe = /* @__PURE__ */ n( (e) => `${kfe}:${e}`, "AFTER_COLON"), BN = /* @__PURE__ */ n((e) => `${Bfe}:${e}`, "AFTER_VALUE"), NN = /* @__PURE__ */ n((e) => `${eE}:${e}`, "AFTER"), Wfe = { "\b": "\\b", " ": "\\t", "\n": "\\n", "\f": "\\f", "\r": "\\r", '"': '\\"', "\\": "\\\\" }, Hfe = /* @__PURE__ */ n((e) => (Gx.lastIndex = 0, Gx.test(e) ? e.replace(Gx, (t) => { let r = Wfe[t]; return typeof r == "string" ? r : t; }) : e), "escape"), MN = /* @__PURE__ */ n((e) => `"${Hfe(e)}"`, "quote"), Kfe = /* @__PURE__ */ n((e, t) => t ? `//${e}` : `/*${e}*/`, "c\ omment_stringify"), Si = /* @__PURE__ */ n((e, t, r, i) => { let s = e[Symbol.for(t)]; if (!s || !s.length) return Ti; let a = !1, o = s.reduce((u, { inline: l, type: c, value: f }) => { let m = l ? tE : No + r; return a = c === "LineComment", u + m + Kfe(f, a); }, Ti); return i || a ? o + No + r : o; }, "process_comments"), Pl = null, yd = Ti, zfe = /* @__PURE__ */ n(() => { Pl = null, yd = Ti; }, "clean"), md = /* @__PURE__ */ n((e, t, r) => e ? t ? e + t.trim() + No + r : e.trimRight() + No + r : t ? t.trimRight() + No + r : Ti, "join"), RN = /* @__PURE__ */ n((e, t, r) => { let i = Si(t, FN, r + yd, !0); return md(i, e, r); }, "join_content"), Jfe = /* @__PURE__ */ n((e, t) => { let r = t + yd, { length: i } = e, s = Ti, a = Ti; for (let o = 0; o < i; o++) { o !== 0 && (s += IN); let u = md( a, Si(e, kN(o), r), r ); s += u || No + r, s += rE(o, e, r) || ON, s += Si(e, BN(o), r), a = Si(e, NN(o), r); } return s += md( a, Si(e, eE, r), r ), Mfe + RN(s, e, t) + Rfe; }, "array_stringify"), Xfe = /* @__PURE__ */ n((e, t) => { if (!e) return "null"; let r = t + yd, i = Ti, s = Ti, a = !0, o = Qx(Pl) ? Pl : Object.keys(e), u = /* @__PURE__ */ n((l) => { let c = rE(l, e, r); if (c === Ufe) return; a || (i += IN), a = !1; let f = md( s, Si(e, kN(l), r), r ); i += f || No + r, i += MN(l) + Si(e, $fe(l), r) + qfe + Si(e, Vfe(l), r) + tE + c + Si(e, BN(l), r), s = Si(e, NN(l), r); }, "iteratee"); return o.forEach(u), i += md( s, Si(e, eE, r), r ), Lfe + RN(i, e, t) + jfe; }, "object_stringify"); function rE(e, t, r) { let i = t[e]; switch (PN(i) && Zx(i.toJSON) && (i = i.toJSON(e)), Zx(Pl) && (i = Pl.call(t, e, i)), typeof i) { case "string": return MN(i); case "number": return Number.isFinite(i) ? String(i) : ON; case "boolean": case "null": return String(i); // If the type is 'object', we might be dealing with an object or an array or // null. case "object": return Qx(i) ? Jfe(i, r) : Xfe(i, r); // undefined default: } } n(rE, "stringify"); var Yfe = /* @__PURE__ */ n((e) => Pfe(e) ? e : _fe(e) ? Ffe(tE, e) : Ti, "get_indent"), { toString: Gfe } = Object.prototype, Zfe = [ "[object Number]", "[object String]", "[object Boolean]" ], Qfe = /* @__PURE__ */ n((e) => { if (typeof e != "object") return !1; let t = Gfe.call(e); return Zfe.includes(t); }, "is_primitive_object"); LN.exports = (e, t, r) => { let i = Yfe(r); if (!i) return JSON.stringify(e, t); !Zx(t) && !Qx(t) && (t = null), Pl = t, yd = i; let s = Qfe(e) ? JSON.stringify(e) : rE("", { "": e }, Ti); return zfe(), PN(e) ? Si(e, Ife, Ti).trimLeft() + s + Si(e, Nfe, Ti).trimRight() : s; }; }); // ../node_modules/comment-json/src/index.js var UN = E((kot, qN) => { var { parse: ede, tokenize: tde } = wN(), rde = jN(), { CommentArray: ide } = jx(), { assign: sde } = dd(); qN.exports = { parse: ede, stringify: rde, tokenize: tde, CommentArray: ide, assign: sde }; }); // ../node_modules/@babel/types/lib/utils/shallowEqual.js var Sm = E((sE) => { "use strict"; Object.defineProperty(sE, "__esModule", { value: !0 }); sE.default = cde; function cde(e, t) { let r = Object.keys(t); for (let i of r) if (e[i] !== t[i]) return !1; return !0; } n(cde, "shallowEqual"); }); // ../node_modules/@babel/types/lib/utils/deprecationWarning.js var Fl = E((nE) => { "use strict"; Object.defineProperty(nE, "__esModule", { value: !0 }); nE.default = fde; var WN = /* @__PURE__ */ new Set(); function fde(e, t, r = "", i = e) { if (WN.has(i)) return; WN.add(i); let { internal: s, trace: a } = dde(1, 2); s || console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\` ${a}`); } n(fde, "deprecationWarning"); function dde(e, t) { let { stackTraceLimit: r, prepareStackTrace: i } = Error, s; if (Error.stackTraceLimit = 1 + e + t, Error.prepareStackTrace = function(o, u) { s = u; }, new Error().stack, Error.stackTraceLimit = r, Error.prepareStackTrace = i, !s) return { internal: !1, trace: "" }; let a = s.slice(1 + e, 1 + e + t); return { internal: /[\\/]@babel[\\/]/.test(a[1].getFileName()), trace: a.map((o) => ` at ${o}`).join(` `) }; } n(dde, "captureShortStackTrace"); }); // ../node_modules/@babel/types/lib/validators/generated/index.js var Jt = E((A) => { "use strict"; Object.defineProperty(A, "__esModule", { value: !0 }); A.isAccessor = Fye; A.isAnyTypeAnnotation = Jpe; A.isArgumentPlaceholder = S0e; A.isArrayExpression = pde; A.isArrayPattern = fpe; A.isArrayTypeAnnotation = Xpe; A.isArrowFunctionExpression = dpe; A.isAssignmentExpression = hde; A.isAssignmentPattern = cpe; A.isAwaitExpression = Npe; A.isBigIntLiteral = Rpe; A.isBinary = Zme; A.isBinaryExpression = mde; A.isBindExpression = T0e; A.isBlock = tye; A.isBlockParent = eye; A.isBlockStatement = Dde; A.isBooleanLiteral = qde; A.isBooleanLiteralTypeAnnotation = Gpe; A.isBooleanTypeAnnotation = Ype; A.isBreakStatement = vde; A.isCallExpression = xde; A.isCatchClause = Ede; A.isClass = Aye; A.isClassAccessorProperty = $pe; A.isClassBody = ppe; A.isClassDeclaration = mpe; A.isClassExpression = hpe; A.isClassImplements = Qpe; A.isClassMethod = Ape; A.isClassPrivateMethod = Wpe; A.isClassPrivateProperty = Vpe; A.isClassProperty = Upe; A.isCompletionStatement = sye; A.isConditional = nye; A.isConditionalExpression = Sde; A.isContinueStatement = Tde; A.isDebuggerStatement = Cde; A.isDecimalLiteral = F0e; A.isDeclaration = hye; A.isDeclareClass = ehe; A.isDeclareExportAllDeclaration = lhe; A.isDeclareExportDeclaration = uhe; A.isDeclareFunction = the; A.isDeclareInterface = rhe; A.isDeclareModule = ihe; A.isDeclareModuleExports = she; A.isDeclareOpaqueType = ahe; A.isDeclareTypeAlias = nhe; A.isDeclareVariable = ohe; A.isDeclaredPredicate = che; A.isDecorator = C0e; A.isDirective = gde; A.isDirectiveLiteral = bde; A.isDoExpression = w0e; A.isDoWhileStatement = wde; A.isEmptyStatement = Ade; A.isEmptyTypeAnnotation = xhe; A.isEnumBody = Rye; A.isEnumBooleanBody = Xhe; A.isEnumBooleanMember = Qhe; A.isEnumDeclaration = Jhe; A.isEnumDefaultedMember = r0e; A.isEnumMember = Lye; A.isEnumNumberBody = Yhe; A.isEnumNumberMember = e0e; A.isEnumStringBody = Ghe; A.isEnumStringMember = t0e; A.isEnumSymbolBody = Zhe; A.isExistsTypeAnnotation = fhe; A.isExportAllDeclaration = ype; A.isExportDeclaration = _ye; A.isExportDefaultDeclaration = gpe; A.isExportDefaultSpecifier = A0e; A.isExportNamedDeclaration = bpe; A.isExportNamespaceSpecifier = Lpe; A.isExportSpecifier = Dpe; A.isExpression = Gme; A.isExpressionStatement = _de; A.isExpressionWrapper = uye; A.isFile = Pde; A.isFlow = Oye; A.isFlowBaseAnnotation = Bye; A.isFlowDeclaration = Nye; A.isFlowPredicate = Mye; A.isFlowType = kye; A.isFor = lye; A.isForInStatement = Fde; A.isForOfStatement = vpe; A.isForStatement = Ide; A.isForXStatement = cye; A.isFunction = fye; A.isFunctionDeclaration = Ode; A.isFunctionExpression = kde; A.isFunctionParameter = mye; A.isFunctionParent = dye; A.isFunctionTypeAnnotation = dhe; A.isFunctionTypeParam = phe; A.isGenericTypeAnnotation = hhe; A.isIdentifier = Bde; A.isIfStatement = Nde; A.isImmutable = vye; A.isImport = Mpe; A.isImportAttribute = zpe; A.isImportDeclaration = xpe; A.isImportDefaultSpecifier = Epe; A.isImportExpression = Cpe; A.isImportNamespaceSpecifier = Spe; A.isImportOrExportDeclaration = HN; A.isImportSpecifier = Tpe; A.isIndexedAccessType = i0e; A.isInferredPredicate = mhe; A.isInterfaceDeclaration = ghe; A.isInterfaceExtends = yhe; A.isInterfaceTypeAnnotation = bhe; A.isInterpreterDirective = yde; A.isIntersectionTypeAnnotation = Dhe; A.isJSX = jye; A.isJSXAttribute = n0e; A.isJSXClosingElement = a0e; A.isJSXClosingFragment = D0e; A.isJSXElement = o0e; A.isJSXEmptyExpression = u0e; A.isJSXExpressionContainer = l0e; A.isJSXFragment = g0e; A.isJSXIdentifier = f0e; A.isJSXMemberExpression = d0e; A.isJSXNamespacedName = p0e; A.isJSXOpeningElement = h0e; A.isJSXOpeningFragment = b0e; A.isJSXSpreadAttribute = m0e; A.isJSXSpreadChild = c0e; A.isJSXText = y0e; A.isLVal = gye; A.isLabeledStatement = Mde; A.isLiteral = Dye; A.isLogicalExpression = $de; A.isLoop = aye; A.isMemberExpression = Vde; A.isMetaProperty = wpe; A.isMethod = Eye; A.isMiscellaneous = qye; A.isMixedTypeAnnotation = vhe; A.isModuleDeclaration = Xye; A.isModuleExpression = I0e; A.isModuleSpecifier = Pye; A.isNewExpression = Wde; A.isNoop = v0e; A.isNullLiteral = jde; A.isNullLiteralTypeAnnotation = Zpe; A.isNullableTypeAnnotation = Ehe; A.isNumberLiteral = Hye; A.isNumberLiteralTypeAnnotation = She; A.isNumberTypeAnnotation = The; A.isNumericLiteral = Lde; A.isObjectExpression = Kde; A.isObjectMember = Sye; A.isObjectMethod = zde; A.isObjectPattern = _pe; A.isObjectProperty = Jde; A.isObjectTypeAnnotation = Che; A.isObjectTypeCallProperty = Ahe; A.isObjectTypeIndexer = _he; A.isObjectTypeInternalSlot = whe; A.isObjectTypeProperty = Phe; A.isObjectTypeSpreadProperty = Fhe; A.isOpaqueType = Ihe; A.isOptionalCallExpression = qpe; A.isOptionalIndexedAccessType = s0e; A.isOptionalMemberExpression = jpe; A.isParenthesizedExpression = Zde; A.isPattern = wye; A.isPatternLike = yye; A.isPipelineBareFunction = B0e; A.isPipelinePrimaryTopicReference = N0e; A.isPipelineTopicExpression = k0e; A.isPlaceholder = x0e; A.isPrivate = Iye; A.isPrivateName = Hpe; A.isProgram = Hde; A.isProperty = Tye; A.isPureish = pye; A.isQualifiedTypeIdentifier = Ohe; A.isRecordExpression = _0e; A.isRegExpLiteral = Ude; A.isRegexLiteral = Kye; A.isRestElement = Xde; A.isRestProperty = zye; A.isReturnStatement = Yde; A.isScopable = Qme; A.isSequenceExpression = Gde; A.isSpreadElement = Ppe; A.isSpreadProperty = Jye; A.isStandardized = Yme; A.isStatement = rye; A.isStaticBlock = Kpe; A.isStringLiteral = Rde; A.isStringLiteralTypeAnnotation = khe; A.isStringTypeAnnotation = Bhe; A.isSuper = Fpe; A.isSwitchCase = Qde; A.isSwitchStatement = epe; A.isSymbolTypeAnnotation = Nhe; A.isTSAnyKeyword = K0e; A.isTSArrayType = dme; A.isTSAsExpression = Ome; A.isTSBaseType = Wye; A.isTSBigIntKeyword = J0e; A.isTSBooleanKeyword = z0e; A.isTSCallSignatureDeclaration = U0e; A.isTSConditionalType = Dme; A.isTSConstructSignatureDeclaration = $0e; A.isTSConstructorType = ome; A.isTSDeclareFunction = L0e; A.isTSDeclareMethod = j0e; A.isTSEntityName = bye; A.isTSEnumBody = Nme; A.isTSEnumDeclaration = Mme; A.isTSEnumMember = Rme; A.isTSExportAssignment = Wme; A.isTSExpressionWithTypeArguments = Ame; A.isTSExternalModuleReference = $me; A.isTSFunctionType = ame; A.isTSImportEqualsDeclaration = Ume; A.isTSImportType = qme; A.isTSIndexSignature = H0e; A.isTSIndexedAccessType = Sme; A.isTSInferType = vme; A.isTSInstantiationExpression = Ime; A.isTSInterfaceBody = Pme; A.isTSInterfaceDeclaration = _me; A.isTSIntersectionType = bme; A.isTSIntrinsicKeyword = X0e; A.isTSLiteralType = wme; A.isTSMappedType = Tme; A.isTSMethodSignature = W0e; A.isTSModuleBlock = jme; A.isTSModuleDeclaration = Lme; A.isTSNamedTupleMember = yme; A.isTSNamespaceExportDeclaration = Hme; A.isTSNeverKeyword = Y0e; A.isTSNonNullExpression = Vme; A.isTSNullKeyword = G0e; A.isTSNumberKeyword = Z0e; A.isTSObjectKeyword = Q0e; A.isTSOptionalType = hme; A.isTSParameterProperty = R0e; A.isTSParenthesizedType = xme; A.isTSPropertySignature = V0e; A.isTSQualifiedName = q0e; A.isTSRestType = mme; A.isTSSatisfiesExpression = kme; A.isTSStringKeyword = eme; A.isTSSymbolKeyword = tme; A.isTSTemplateLiteralType = Cme; A.isTSThisType = nme; A.isTSTupleType = pme; A.isTSType = Vye; A.isTSTypeAliasDeclaration = Fme; A.isTSTypeAnnotation = Kme; A.isTSTypeAssertion = Bme; A.isTSTypeElement = $ye; A.isTSTypeLiteral = fme; A.isTSTypeOperator = Eme; A.isTSTypeParameter = Xme; A.isTSTypeParameterDeclaration = Jme; A.isTSTypeParameterInstantiation = zme; A.isTSTypePredicate = lme; A.isTSTypeQuery = cme; A.isTSTypeReference = ume; A.isTSUndefinedKeyword = rme; A.isTSUnionType = gme; A.isTSUnknownKeyword = ime; A.isTSVoidKeyword = sme; A.isTaggedTemplateExpression = Ipe; A.isTemplateElement = Ope; A.isTemplateLiteral = kpe; A.isTerminatorless = iye; A.isThisExpression = tpe; A.isThisTypeAnnotation = Mhe; A.isThrowStatement = rpe; A.isTopicReference = O0e; A.isTryStatement = ipe; A.isTupleExpression = P0e; A.isTupleTypeAnnotation = Rhe; A.isTypeAlias = jhe; A.isTypeAnnotation = qhe; A.isTypeCastExpression = Uhe; A.isTypeParameter = $he; A.isTypeParameterDeclaration = Vhe; A.isTypeParameterInstantiation = Whe; A.isTypeScript = Uye; A.isTypeofTypeAnnotation = Lhe; A.isUnaryExpression = spe; A.isUnaryLike = Cye; A.isUnionTypeAnnotation = Hhe; A.isUpdateExpression = npe; A.isUserWhitespacable = xye; A.isV8IntrinsicIdentifier = E0e; A.isVariableDeclaration = ape; A.isVariableDeclarator = ope; A.isVariance = Khe; A.isVoidPattern = M0e; A.isVoidTypeAnnotation = zhe; A.isWhile = oye; A.isWhileStatement = upe; A.isWithStatement = lpe; A.isYieldExpression = Bpe; var F = Sm(), bd = Fl(); function pde(e, t) { return !e || e.type !== "ArrayExpression" ? !1 : t == null || (0, F.default)(e, t); } n(pde, "isArrayExpression"); function hde(e, t) { return !e || e.type !== "AssignmentExpression" ? !1 : t == null || (0, F.default)(e, t); } n(hde, "isAssignmentExpression"); function mde(e, t) { return !e || e.type !== "BinaryExpression" ? !1 : t == null || (0, F.default)(e, t); } n(mde, "isBinaryExpression"); function yde(e, t) { return !e || e.type !== "InterpreterDirective" ? !1 : t == null || (0, F.default)(e, t); } n(yde, "isInterpreterDirective"); function gde(e, t) { return !e || e.type !== "Directive" ? !1 : t == null || (0, F.default)(e, t); } n(gde, "isDirective"); function bde(e, t) { return !e || e.type !== "DirectiveLiteral" ? !1 : t == null || (0, F.default)(e, t); } n(bde, "isDirectiveLiteral"); function Dde(e, t) { return !e || e.type !== "BlockStatement" ? !1 : t == null || (0, F.default)(e, t); } n(Dde, "isBlockStatement"); function vde(e, t) { return !e || e.type !== "BreakStatement" ? !1 : t == null || (0, F.default)(e, t); } n(vde, "isBreakStatement"); function xde(e, t) { return !e || e.type !== "CallExpression" ? !1 : t == null || (0, F.default)(e, t); } n(xde, "isCallExpression"); function Ede(e, t) { return !e || e.type !== "CatchClause" ? !1 : t == null || (0, F.default)(e, t); } n(Ede, "isCatchClause"); function Sde(e, t) { return !e || e.type !== "ConditionalExpression" ? !1 : t == null || (0, F.default)(e, t); } n(Sde, "isConditionalExpression"); function Tde(e, t) { return !e || e.type !== "ContinueStatement" ? !1 : t == null || (0, F.default)(e, t); } n(Tde, "isContinueStatement"); function Cde(e, t) { return !e || e.type !== "DebuggerStatement" ? !1 : t == null || (0, F.default)(e, t); } n(Cde, "isDebuggerStatement"); function wde(e, t) { return !e || e.type !== "DoWhileStatement" ? !1 : t == null || (0, F.default)(e, t); } n(wde, "isDoWhileStatement"); function Ade(e, t) { return !e || e.type !== "EmptyStatement" ? !1 : t == null || (0, F.default)(e, t); } n(Ade, "isEmptyStatement"); function _de(e, t) { return !e || e.type !== "ExpressionStatement" ? !1 : t == null || (0, F.default)(e, t); } n(_de, "isExpressionStatement"); function Pde(e, t) { return !e || e.type !== "File" ? !1 : t == null || (0, F.default)(e, t); } n(Pde, "isFile"); function Fde(e, t) { return !e || e.type !== "ForInStatement" ? !1 : t == null || (0, F.default)(e, t); } n(Fde, "isForInStatement"); function Ide(e, t) { return !e || e.type !== "ForStatement" ? !1 : t == null || (0, F.default)(e, t); } n(Ide, "isForStatement"); function Ode(e, t) { return !e || e.type !== "FunctionDeclaration" ? !1 : t == null || (0, F.default)(e, t); } n(Ode, "isFunctionDeclaration"); function kde(e, t) { return !e || e.type !== "FunctionExpression" ? !1 : t == null || (0, F.default)(e, t); } n(kde, "isFunctionExpression"); function Bde(e, t) { return !e || e.type !== "Identifier" ? !1 : t == null || (0, F.default)(e, t); } n(Bde, "isIdentifier"); function Nde(e, t) { return !e || e.type !== "IfStatement" ? !1 : t == null || (0, F.default)(e, t); } n(Nde, "isIfStatement"); function Mde(e, t) { return !e || e.type !== "LabeledStatement" ? !1 : t == null || (0, F.default)(e, t); } n(Mde, "isLabeledStatement"); function Rde(e, t) { return !e || e.type !== "StringLiteral" ? !1 : t == null || (0, F.default)(e, t); } n(Rde, "isStringLiteral"); function Lde(e, t) { return !e || e.type !== "NumericLiteral" ? !1 : t == null || (0, F.default)(e, t); } n(Lde, "isNumericLiteral"); function jde(e, t) { return !e || e.type !== "NullLiteral" ? !1 : t == null || (0, F.default)(e, t); } n(jde, "isNullLiteral"); function qde(e, t) { return !e || e.type !== "BooleanLiteral" ? !1 : t == null || (0, F.default)(e, t); } n(qde, "isBooleanLiteral"); function Ude(e, t) { return !e || e.type !== "RegExpLiteral" ? !1 : t == null || (0, F.default)(e, t); } n(Ude, "isRegExpLiteral"); function $de(e, t) { return !e || e.type !== "LogicalExpression" ? !1 : t == null || (0, F.default)(e, t); } n($de, "isLogicalExpression"); function Vde(e, t) { return !e || e.type !== "MemberExpression" ? !1 : t == null || (0, F.default)(e, t); } n(Vde, "isMemberExpression"); function Wde(e, t) { return !e || e.type !== "NewExpression" ? !1 : t == null || (0, F.default)(e, t); } n(Wde, "isNewExpression"); function Hde(e, t) { return !e || e.type !== "Program" ? !1 : t == null || (0, F.default)(e, t); } n(Hde, "isProgram"); function Kde(e, t) { return !e || e.type !== "ObjectExpression" ? !1 : t == null || (0, F.default)(e, t); } n(Kde, "isObjectExpression"); function zde(e, t) { return !e || e.type !== "ObjectMethod" ? !1 : t == null || (0, F.default)(e, t); } n(zde, "isObjectMethod"); function Jde(e, t) { return !e || e.type !== "ObjectProperty" ? !1 : t == null || (0, F.default)(e, t); } n(Jde, "isObjectProperty"); function Xde(e, t) { return !e || e.type !== "RestElement" ? !1 : t == null || (0, F.default)(e, t); } n(Xde, "isRestElement"); function Yde(e, t) { return !e || e.type !== "ReturnStatement" ? !1 : t == null || (0, F.default)(e, t); } n(Yde, "isReturnStatement"); function Gde(e, t) { return !e || e.type !== "SequenceExpression" ? !1 : t == null || (0, F.default)(e, t); } n(Gde, "isSequenceExpression"); function Zde(e, t) { return !e || e.type !== "ParenthesizedExpression" ? !1 : t == null || (0, F.default)(e, t); } n(Zde, "isParenthesizedExpression"); function Qde(e, t) { return !e || e.type !== "SwitchCase" ? !1 : t == null || (0, F.default)(e, t); } n(Qde, "isSwitchCase"); function epe(e, t) { return !e || e.type !== "SwitchStatement" ? !1 : t == null || (0, F.default)(e, t); } n(epe, "isSwitchStatement"); function tpe(e, t) { return !e || e.type !== "ThisExpression" ? !1 : t == null || (0, F.default)(e, t); } n(tpe, "isThisExpression"); function rpe(e, t) { return !e || e.type !== "ThrowStatement" ? !1 : t == null || (0, F.default)(e, t); } n(rpe, "isThrowStatement"); function ipe(e, t) { return !e || e.type !== "TryStatement" ? !1 : t == null || (0, F.default)(e, t); } n(ipe, "isTryStatement"); function spe(e, t) { return !e || e.type !== "UnaryExpression" ? !1 : t == null || (0, F.default)(e, t); } n(spe, "isUnaryExpression"); function npe(e, t) { return !e || e.type !== "UpdateExpression" ? !1 : t == null || (0, F.default)(e, t); } n(npe, "isUpdateExpression"); function ape(e, t) { return !e || e.type !== "VariableDeclaration" ? !1 : t == null || (0, F.default)(e, t); } n(ape, "isVariableDeclaration"); function ope(e, t) { return !e || e.type !== "VariableDeclarator" ? !1 : t == null || (0, F.default)(e, t); } n(ope, "isVariableDeclarator"); function upe(e, t) { return !e || e.type !== "WhileStatement" ? !1 : t == null || (0, F.default)(e, t); } n(upe, "isWhileStatement"); function lpe(e, t) { return !e || e.type !== "WithStatement" ? !1 : t == null || (0, F.default)(e, t); } n(lpe, "isWithStatement"); function cpe(e, t) { return !e || e.type !== "AssignmentPattern" ? !1 : t == null || (0, F.default)(e, t); } n(cpe, "isAssignmentPattern"); function fpe(e, t) { return !e || e.type !== "ArrayPattern" ? !1 : t == null || (0, F.default)(e, t); } n(fpe, "isArrayPattern"); function dpe(e, t) { return !e || e.type !== "ArrowFunctionExpression" ? !1 : t == null || (0, F.default)(e, t); } n(dpe, "isArrowFunctionExpression"); function ppe(e, t) { return !e || e.type !== "ClassBody" ? !1 : t == null || (0, F.default)(e, t); } n(ppe, "isClassBody"); function hpe(e, t) { return !e || e.type !== "ClassExpression" ? !1 : t == null || (0, F.default)(e, t); } n(hpe, "isClassExpression"); function mpe(e, t) { return !e || e.type !== "ClassDeclaration" ? !1 : t == null || (0, F.default)(e, t); } n(mpe, "isClassDeclaration"); function ype(e, t) { return !e || e.type !== "ExportAllDeclaration" ? !1 : t == null || (0, F.default)(e, t); } n(ype, "isExportAllDeclaration"); function gpe(e, t) { return !e || e.type !== "ExportDefaultDeclaration" ? !1 : t == null || (0, F.default)(e, t); } n(gpe, "isExportDefaultDeclaration"); function bpe(e, t) { return !e || e.type !== "ExportNamedDeclaration" ? !1 : t == null || (0, F.default)(e, t); } n(bpe, "isExportNamedDeclaration"); function Dpe(e, t) { return !e || e.type !== "ExportSpecifier" ? !1 : t == null || (0, F.default)(e, t); } n(Dpe, "isExportSpecifier"); function vpe(e, t) { return !e || e.type !== "ForOfStatement" ? !1 : t == null || (0, F.default)(e, t); } n(vpe, "isForOfStatement"); function xpe(e, t) { return !e || e.type !== "ImportDeclaration" ? !1 : t == null || (0, F.default)(e, t); } n(xpe, "isImportDeclaration"); function Epe(e, t) { return !e || e.type !== "ImportDefaultSpecifier" ? !1 : t == null || (0, F.default)(e, t); } n(Epe, "isImportDefaultSpecifier"); function Spe(e, t) { return !e || e.type !== "ImportNamespaceSpecifier" ? !1 : t == null || (0, F.default)(e, t); } n(Spe, "isImportNamespaceSpecifier"); function Tpe(e, t) { return !e || e.type !== "ImportSpecifier" ? !1 : t == null || (0, F.default)(e, t); } n(Tpe, "isImportSpecifier"); function Cpe(e, t) { return !e || e.type !== "ImportExpression" ? !1 : t == null || (0, F.default)(e, t); } n(Cpe, "isImportExpression"); function wpe(e, t) { return !e || e.type !== "MetaProperty" ? !1 : t == null || (0, F.default)(e, t); } n(wpe, "isMetaProperty"); function Ape(e, t) { return !e || e.type !== "ClassMethod" ? !1 : t == null || (0, F.default)(e, t); } n(Ape, "isClassMethod"); function _pe(e, t) { return !e || e.type !== "ObjectPattern" ? !1 : t == null || (0, F.default)(e, t); } n(_pe, "isObjectPattern"); function Ppe(e, t) { return !e || e.type !== "SpreadElement" ? !1 : t == null || (0, F.default)(e, t); } n(Ppe, "isSpreadElement"); function Fpe(e, t) { return !e || e.type !== "Super" ? !1 : t == null || (0, F.default)(e, t); } n(Fpe, "isSuper"); function Ipe(e, t) { return !e || e.type !== "TaggedTemplateExpression" ? !1 : t == null || (0, F.default)(e, t); } n(Ipe, "isTaggedTemplateExpression"); function Ope(e, t) { return !e || e.type !== "TemplateElement" ? !1 : t == null || (0, F.default)(e, t); } n(Ope, "isTemplateElement"); function kpe(e, t) { return !e || e.type !== "TemplateLiteral" ? !1 : t == null || (0, F.default)(e, t); } n(kpe, "isTemplateLiteral"); function Bpe(e, t) { return !e || e.type !== "YieldExpression" ? !1 : t == null || (0, F.default)(e, t); } n(Bpe, "isYieldExpression"); function Npe(e, t) { return !e || e.type !== "AwaitExpression" ? !1 : t == null || (0, F.default)(e, t); } n(Npe, "isAwaitExpression"); function Mpe(e, t) { return !e || e.type !== "Import" ? !1 : t == null || (0, F.default)(e, t); } n(Mpe, "isImport"); function Rpe(e, t) { return !e || e.type !== "BigIntLiteral" ? !1 : t == null || (0, F.default)(e, t); } n(Rpe, "isBigIntLiteral"); function Lpe(e, t) { return !e || e.type !== "ExportNamespaceSpecifier" ? !1 : t == null || (0, F.default)(e, t); } n(Lpe, "isExportNamespaceSpecifier"); function jpe(e, t) { return !e || e.type !== "OptionalMemberExpression" ? !1 : t == null || (0, F.default)(e, t); } n(jpe, "isOptionalMemberExpression"); function qpe(e, t) { return !e || e.type !== "OptionalCallExpression" ? !1 : t == null || (0, F.default)(e, t); } n(qpe, "isOptionalCallExpression"); function Upe(e, t) { return !e || e.type !== "ClassProperty" ? !1 : t == null || (0, F.default)(e, t); } n(Upe, "isClassProperty"); function $pe(e, t) { return !e || e.type !== "ClassAccessorProperty" ? !1 : t == null || (0, F.default)(e, t); } n($pe, "isClassAccessorProperty"); function Vpe(e, t) { return !e || e.type !== "ClassPrivateProperty" ? !1 : t == null || (0, F.default)(e, t); } n(Vpe, "isClassPrivateProperty"); function Wpe(e, t) { return !e || e.type !== "ClassPrivateMethod" ? !1 : t == null || (0, F.default)(e, t); } n(Wpe, "isClassPrivateMethod"); function Hpe(e, t) { return !e || e.type !== "PrivateName" ? !1 : t == null || (0, F.default)(e, t); } n(Hpe, "isPrivateName"); function Kpe(e, t) { return !e || e.type !== "StaticBlock" ? !1 : t == null || (0, F.default)(e, t); } n(Kpe, "isStaticBlock"); function zpe(e, t) { return !e || e.type !== "ImportAttribute" ? !1 : t == null || (0, F.default)(e, t); } n(zpe, "isImportAttribute"); function Jpe(e, t) { return !e || e.type !== "AnyTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(Jpe, "isAnyTypeAnnotation"); function Xpe(e, t) { return !e || e.type !== "ArrayTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(Xpe, "isArrayTypeAnnotation"); function Ype(e, t) { return !e || e.type !== "BooleanTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(Ype, "isBooleanTypeAnnotation"); function Gpe(e, t) { return !e || e.type !== "BooleanLiteralTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(Gpe, "isBooleanLiteralTypeAnnotation"); function Zpe(e, t) { return !e || e.type !== "NullLiteralTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(Zpe, "isNullLiteralTypeAnnotation"); function Qpe(e, t) { return !e || e.type !== "ClassImplements" ? !1 : t == null || (0, F.default)(e, t); } n(Qpe, "isClassImplements"); function ehe(e, t) { return !e || e.type !== "DeclareClass" ? !1 : t == null || (0, F.default)(e, t); } n(ehe, "isDeclareClass"); function the(e, t) { return !e || e.type !== "DeclareFunction" ? !1 : t == null || (0, F.default)(e, t); } n(the, "isDeclareFunction"); function rhe(e, t) { return !e || e.type !== "DeclareInterface" ? !1 : t == null || (0, F.default)(e, t); } n(rhe, "isDeclareInterface"); function ihe(e, t) { return !e || e.type !== "DeclareModule" ? !1 : t == null || (0, F.default)(e, t); } n(ihe, "isDeclareModule"); function she(e, t) { return !e || e.type !== "DeclareModuleExports" ? !1 : t == null || (0, F.default)(e, t); } n(she, "isDeclareModuleExports"); function nhe(e, t) { return !e || e.type !== "DeclareTypeAlias" ? !1 : t == null || (0, F.default)(e, t); } n(nhe, "isDeclareTypeAlias"); function ahe(e, t) { return !e || e.type !== "DeclareOpaqueType" ? !1 : t == null || (0, F.default)(e, t); } n(ahe, "isDeclareOpaqueType"); function ohe(e, t) { return !e || e.type !== "DeclareVariable" ? !1 : t == null || (0, F.default)(e, t); } n(ohe, "isDeclareVariable"); function uhe(e, t) { return !e || e.type !== "DeclareExportDeclaration" ? !1 : t == null || (0, F.default)(e, t); } n(uhe, "isDeclareExportDeclaration"); function lhe(e, t) { return !e || e.type !== "DeclareExportAllDeclaration" ? !1 : t == null || (0, F.default)(e, t); } n(lhe, "isDeclareExportAllDeclaration"); function che(e, t) { return !e || e.type !== "DeclaredPredicate" ? !1 : t == null || (0, F.default)(e, t); } n(che, "isDeclaredPredicate"); function fhe(e, t) { return !e || e.type !== "ExistsTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(fhe, "isExistsTypeAnnotation"); function dhe(e, t) { return !e || e.type !== "FunctionTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(dhe, "isFunctionTypeAnnotation"); function phe(e, t) { return !e || e.type !== "FunctionTypeParam" ? !1 : t == null || (0, F.default)(e, t); } n(phe, "isFunctionTypeParam"); function hhe(e, t) { return !e || e.type !== "GenericTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(hhe, "isGenericTypeAnnotation"); function mhe(e, t) { return !e || e.type !== "InferredPredicate" ? !1 : t == null || (0, F.default)(e, t); } n(mhe, "isInferredPredicate"); function yhe(e, t) { return !e || e.type !== "InterfaceExtends" ? !1 : t == null || (0, F.default)(e, t); } n(yhe, "isInterfaceExtends"); function ghe(e, t) { return !e || e.type !== "InterfaceDeclaration" ? !1 : t == null || (0, F.default)(e, t); } n(ghe, "isInterfaceDeclaration"); function bhe(e, t) { return !e || e.type !== "InterfaceTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(bhe, "isInterfaceTypeAnnotation"); function Dhe(e, t) { return !e || e.type !== "IntersectionTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(Dhe, "isIntersectionTypeAnnotation"); function vhe(e, t) { return !e || e.type !== "MixedTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(vhe, "isMixedTypeAnnotation"); function xhe(e, t) { return !e || e.type !== "EmptyTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(xhe, "isEmptyTypeAnnotation"); function Ehe(e, t) { return !e || e.type !== "NullableTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(Ehe, "isNullableTypeAnnotation"); function She(e, t) { return !e || e.type !== "NumberLiteralTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(She, "isNumberLiteralTypeAnnotation"); function The(e, t) { return !e || e.type !== "NumberTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(The, "isNumberTypeAnnotation"); function Che(e, t) { return !e || e.type !== "ObjectTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(Che, "isObjectTypeAnnotation"); function whe(e, t) { return !e || e.type !== "ObjectTypeInternalSlot" ? !1 : t == null || (0, F.default)(e, t); } n(whe, "isObjectTypeInternalSlot"); function Ahe(e, t) { return !e || e.type !== "ObjectTypeCallProperty" ? !1 : t == null || (0, F.default)(e, t); } n(Ahe, "isObjectTypeCallProperty"); function _he(e, t) { return !e || e.type !== "ObjectTypeIndexer" ? !1 : t == null || (0, F.default)(e, t); } n(_he, "isObjectTypeIndexer"); function Phe(e, t) { return !e || e.type !== "ObjectTypeProperty" ? !1 : t == null || (0, F.default)(e, t); } n(Phe, "isObjectTypeProperty"); function Fhe(e, t) { return !e || e.type !== "ObjectTypeSpreadProperty" ? !1 : t == null || (0, F.default)(e, t); } n(Fhe, "isObjectTypeSpreadProperty"); function Ihe(e, t) { return !e || e.type !== "OpaqueType" ? !1 : t == null || (0, F.default)(e, t); } n(Ihe, "isOpaqueType"); function Ohe(e, t) { return !e || e.type !== "QualifiedTypeIdentifier" ? !1 : t == null || (0, F.default)(e, t); } n(Ohe, "isQualifiedTypeIdentifier"); function khe(e, t) { return !e || e.type !== "StringLiteralTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(khe, "isStringLiteralTypeAnnotation"); function Bhe(e, t) { return !e || e.type !== "StringTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(Bhe, "isStringTypeAnnotation"); function Nhe(e, t) { return !e || e.type !== "SymbolTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(Nhe, "isSymbolTypeAnnotation"); function Mhe(e, t) { return !e || e.type !== "ThisTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(Mhe, "isThisTypeAnnotation"); function Rhe(e, t) { return !e || e.type !== "TupleTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(Rhe, "isTupleTypeAnnotation"); function Lhe(e, t) { return !e || e.type !== "TypeofTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(Lhe, "isTypeofTypeAnnotation"); function jhe(e, t) { return !e || e.type !== "TypeAlias" ? !1 : t == null || (0, F.default)(e, t); } n(jhe, "isTypeAlias"); function qhe(e, t) { return !e || e.type !== "TypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(qhe, "isTypeAnnotation"); function Uhe(e, t) { return !e || e.type !== "TypeCastExpression" ? !1 : t == null || (0, F.default)(e, t); } n(Uhe, "isTypeCastExpression"); function $he(e, t) { return !e || e.type !== "TypeParameter" ? !1 : t == null || (0, F.default)(e, t); } n($he, "isTypeParameter"); function Vhe(e, t) { return !e || e.type !== "TypeParameterDeclaration" ? !1 : t == null || (0, F.default)(e, t); } n(Vhe, "isTypeParameterDeclaration"); function Whe(e, t) { return !e || e.type !== "TypeParameterInstantiation" ? !1 : t == null || (0, F.default)(e, t); } n(Whe, "isTypeParameterInstantiation"); function Hhe(e, t) { return !e || e.type !== "UnionTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(Hhe, "isUnionTypeAnnotation"); function Khe(e, t) { return !e || e.type !== "Variance" ? !1 : t == null || (0, F.default)(e, t); } n(Khe, "isVariance"); function zhe(e, t) { return !e || e.type !== "VoidTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(zhe, "isVoidTypeAnnotation"); function Jhe(e, t) { return !e || e.type !== "EnumDeclaration" ? !1 : t == null || (0, F.default)(e, t); } n(Jhe, "isEnumDeclaration"); function Xhe(e, t) { return !e || e.type !== "EnumBooleanBody" ? !1 : t == null || (0, F.default)(e, t); } n(Xhe, "isEnumBooleanBody"); function Yhe(e, t) { return !e || e.type !== "EnumNumberBody" ? !1 : t == null || (0, F.default)(e, t); } n(Yhe, "isEnumNumberBody"); function Ghe(e, t) { return !e || e.type !== "EnumStringBody" ? !1 : t == null || (0, F.default)(e, t); } n(Ghe, "isEnumStringBody"); function Zhe(e, t) { return !e || e.type !== "EnumSymbolBody" ? !1 : t == null || (0, F.default)(e, t); } n(Zhe, "isEnumSymbolBody"); function Qhe(e, t) { return !e || e.type !== "EnumBooleanMember" ? !1 : t == null || (0, F.default)(e, t); } n(Qhe, "isEnumBooleanMember"); function e0e(e, t) { return !e || e.type !== "EnumNumberMember" ? !1 : t == null || (0, F.default)(e, t); } n(e0e, "isEnumNumberMember"); function t0e(e, t) { return !e || e.type !== "EnumStringMember" ? !1 : t == null || (0, F.default)(e, t); } n(t0e, "isEnumStringMember"); function r0e(e, t) { return !e || e.type !== "EnumDefaultedMember" ? !1 : t == null || (0, F.default)(e, t); } n(r0e, "isEnumDefaultedMember"); function i0e(e, t) { return !e || e.type !== "IndexedAccessType" ? !1 : t == null || (0, F.default)(e, t); } n(i0e, "isIndexedAccessType"); function s0e(e, t) { return !e || e.type !== "OptionalIndexedAccessType" ? !1 : t == null || (0, F.default)(e, t); } n(s0e, "isOptionalIndexedAccessType"); function n0e(e, t) { return !e || e.type !== "JSXAttribute" ? !1 : t == null || (0, F.default)(e, t); } n(n0e, "isJSXAttribute"); function a0e(e, t) { return !e || e.type !== "JSXClosingElement" ? !1 : t == null || (0, F.default)(e, t); } n(a0e, "isJSXClosingElement"); function o0e(e, t) { return !e || e.type !== "JSXElement" ? !1 : t == null || (0, F.default)(e, t); } n(o0e, "isJSXElement"); function u0e(e, t) { return !e || e.type !== "JSXEmptyExpression" ? !1 : t == null || (0, F.default)(e, t); } n(u0e, "isJSXEmptyExpression"); function l0e(e, t) { return !e || e.type !== "JSXExpressionContainer" ? !1 : t == null || (0, F.default)(e, t); } n(l0e, "isJSXExpressionContainer"); function c0e(e, t) { return !e || e.type !== "JSXSpreadChild" ? !1 : t == null || (0, F.default)(e, t); } n(c0e, "isJSXSpreadChild"); function f0e(e, t) { return !e || e.type !== "JSXIdentifier" ? !1 : t == null || (0, F.default)(e, t); } n(f0e, "isJSXIdentifier"); function d0e(e, t) { return !e || e.type !== "JSXMemberExpression" ? !1 : t == null || (0, F.default)(e, t); } n(d0e, "isJSXMemberExpression"); function p0e(e, t) { return !e || e.type !== "JSXNamespacedName" ? !1 : t == null || (0, F.default)(e, t); } n(p0e, "isJSXNamespacedName"); function h0e(e, t) { return !e || e.type !== "JSXOpeningElement" ? !1 : t == null || (0, F.default)(e, t); } n(h0e, "isJSXOpeningElement"); function m0e(e, t) { return !e || e.type !== "JSXSpreadAttribute" ? !1 : t == null || (0, F.default)(e, t); } n(m0e, "isJSXSpreadAttribute"); function y0e(e, t) { return !e || e.type !== "JSXText" ? !1 : t == null || (0, F.default)(e, t); } n(y0e, "isJSXText"); function g0e(e, t) { return !e || e.type !== "JSXFragment" ? !1 : t == null || (0, F.default)(e, t); } n(g0e, "isJSXFragment"); function b0e(e, t) { return !e || e.type !== "JSXOpeningFragment" ? !1 : t == null || (0, F.default)(e, t); } n(b0e, "isJSXOpeningFragment"); function D0e(e, t) { return !e || e.type !== "JSXClosingFragment" ? !1 : t == null || (0, F.default)(e, t); } n(D0e, "isJSXClosingFragment"); function v0e(e, t) { return !e || e.type !== "Noop" ? !1 : t == null || (0, F.default)(e, t); } n(v0e, "isNoop"); function x0e(e, t) { return !e || e.type !== "Placeholder" ? !1 : t == null || (0, F.default)(e, t); } n(x0e, "isPlaceholder"); function E0e(e, t) { return !e || e.type !== "V8IntrinsicIdentifier" ? !1 : t == null || (0, F.default)(e, t); } n(E0e, "isV8IntrinsicIdentifier"); function S0e(e, t) { return !e || e.type !== "ArgumentPlaceholder" ? !1 : t == null || (0, F.default)(e, t); } n(S0e, "isArgumentPlaceholder"); function T0e(e, t) { return !e || e.type !== "BindExpression" ? !1 : t == null || (0, F.default)(e, t); } n(T0e, "isBindExpression"); function C0e(e, t) { return !e || e.type !== "Decorator" ? !1 : t == null || (0, F.default)(e, t); } n(C0e, "isDecorator"); function w0e(e, t) { return !e || e.type !== "DoExpression" ? !1 : t == null || (0, F.default)(e, t); } n(w0e, "isDoExpression"); function A0e(e, t) { return !e || e.type !== "ExportDefaultSpecifier" ? !1 : t == null || (0, F.default)(e, t); } n(A0e, "isExportDefaultSpecifier"); function _0e(e, t) { return !e || e.type !== "RecordExpression" ? !1 : t == null || (0, F.default)(e, t); } n(_0e, "isRecordExpression"); function P0e(e, t) { return !e || e.type !== "TupleExpression" ? !1 : t == null || (0, F.default)(e, t); } n(P0e, "isTupleExpression"); function F0e(e, t) { return !e || e.type !== "DecimalLiteral" ? !1 : t == null || (0, F.default)(e, t); } n(F0e, "isDecimalLiteral"); function I0e(e, t) { return !e || e.type !== "ModuleExpression" ? !1 : t == null || (0, F.default)(e, t); } n(I0e, "isModuleExpression"); function O0e(e, t) { return !e || e.type !== "TopicReference" ? !1 : t == null || (0, F.default)(e, t); } n(O0e, "isTopicReference"); function k0e(e, t) { return !e || e.type !== "PipelineTopicExpression" ? !1 : t == null || (0, F.default)(e, t); } n(k0e, "isPipelineTopicExpression"); function B0e(e, t) { return !e || e.type !== "PipelineBareFunction" ? !1 : t == null || (0, F.default)(e, t); } n(B0e, "isPipelineBareFunction"); function N0e(e, t) { return !e || e.type !== "PipelinePrimaryTopicReference" ? !1 : t == null || (0, F.default)(e, t); } n(N0e, "isPipelinePrimaryTopicReference"); function M0e(e, t) { return !e || e.type !== "VoidPattern" ? !1 : t == null || (0, F.default)(e, t); } n(M0e, "isVoidPattern"); function R0e(e, t) { return !e || e.type !== "TSParameterProperty" ? !1 : t == null || (0, F.default)(e, t); } n(R0e, "isTSParameterProperty"); function L0e(e, t) { return !e || e.type !== "TSDeclareFunction" ? !1 : t == null || (0, F.default)(e, t); } n(L0e, "isTSDeclareFunction"); function j0e(e, t) { return !e || e.type !== "TSDeclareMethod" ? !1 : t == null || (0, F.default)(e, t); } n(j0e, "isTSDeclareMethod"); function q0e(e, t) { return !e || e.type !== "TSQualifiedName" ? !1 : t == null || (0, F.default)(e, t); } n(q0e, "isTSQualifiedName"); function U0e(e, t) { return !e || e.type !== "TSCallSignatureDeclaration" ? !1 : t == null || (0, F.default)(e, t); } n(U0e, "isTSCallSignatureDeclaration"); function $0e(e, t) { return !e || e.type !== "TSConstructSignatureDeclaration" ? !1 : t == null || (0, F.default)(e, t); } n($0e, "isTSConstructSignatureDeclaration"); function V0e(e, t) { return !e || e.type !== "TSPropertySignature" ? !1 : t == null || (0, F.default)(e, t); } n(V0e, "isTSPropertySignature"); function W0e(e, t) { return !e || e.type !== "TSMethodSignature" ? !1 : t == null || (0, F.default)(e, t); } n(W0e, "isTSMethodSignature"); function H0e(e, t) { return !e || e.type !== "TSIndexSignature" ? !1 : t == null || (0, F.default)(e, t); } n(H0e, "isTSIndexSignature"); function K0e(e, t) { return !e || e.type !== "TSAnyKeyword" ? !1 : t == null || (0, F.default)(e, t); } n(K0e, "isTSAnyKeyword"); function z0e(e, t) { return !e || e.type !== "TSBooleanKeyword" ? !1 : t == null || (0, F.default)(e, t); } n(z0e, "isTSBooleanKeyword"); function J0e(e, t) { return !e || e.type !== "TSBigIntKeyword" ? !1 : t == null || (0, F.default)(e, t); } n(J0e, "isTSBigIntKeyword"); function X0e(e, t) { return !e || e.type !== "TSIntrinsicKeyword" ? !1 : t == null || (0, F.default)(e, t); } n(X0e, "isTSIntrinsicKeyword"); function Y0e(e, t) { return !e || e.type !== "TSNeverKeyword" ? !1 : t == null || (0, F.default)(e, t); } n(Y0e, "isTSNeverKeyword"); function G0e(e, t) { return !e || e.type !== "TSNullKeyword" ? !1 : t == null || (0, F.default)(e, t); } n(G0e, "isTSNullKeyword"); function Z0e(e, t) { return !e || e.type !== "TSNumberKeyword" ? !1 : t == null || (0, F.default)(e, t); } n(Z0e, "isTSNumberKeyword"); function Q0e(e, t) { return !e || e.type !== "TSObjectKeyword" ? !1 : t == null || (0, F.default)(e, t); } n(Q0e, "isTSObjectKeyword"); function eme(e, t) { return !e || e.type !== "TSStringKeyword" ? !1 : t == null || (0, F.default)(e, t); } n(eme, "isTSStringKeyword"); function tme(e, t) { return !e || e.type !== "TSSymbolKeyword" ? !1 : t == null || (0, F.default)(e, t); } n(tme, "isTSSymbolKeyword"); function rme(e, t) { return !e || e.type !== "TSUndefinedKeyword" ? !1 : t == null || (0, F.default)(e, t); } n(rme, "isTSUndefinedKeyword"); function ime(e, t) { return !e || e.type !== "TSUnknownKeyword" ? !1 : t == null || (0, F.default)(e, t); } n(ime, "isTSUnknownKeyword"); function sme(e, t) { return !e || e.type !== "TSVoidKeyword" ? !1 : t == null || (0, F.default)(e, t); } n(sme, "isTSVoidKeyword"); function nme(e, t) { return !e || e.type !== "TSThisType" ? !1 : t == null || (0, F.default)(e, t); } n(nme, "isTSThisType"); function ame(e, t) { return !e || e.type !== "TSFunctionType" ? !1 : t == null || (0, F.default)(e, t); } n(ame, "isTSFunctionType"); function ome(e, t) { return !e || e.type !== "TSConstructorType" ? !1 : t == null || (0, F.default)(e, t); } n(ome, "isTSConstructorType"); function ume(e, t) { return !e || e.type !== "TSTypeReference" ? !1 : t == null || (0, F.default)(e, t); } n(ume, "isTSTypeReference"); function lme(e, t) { return !e || e.type !== "TSTypePredicate" ? !1 : t == null || (0, F.default)(e, t); } n(lme, "isTSTypePredicate"); function cme(e, t) { return !e || e.type !== "TSTypeQuery" ? !1 : t == null || (0, F.default)(e, t); } n(cme, "isTSTypeQuery"); function fme(e, t) { return !e || e.type !== "TSTypeLiteral" ? !1 : t == null || (0, F.default)(e, t); } n(fme, "isTSTypeLiteral"); function dme(e, t) { return !e || e.type !== "TSArrayType" ? !1 : t == null || (0, F.default)(e, t); } n(dme, "isTSArrayType"); function pme(e, t) { return !e || e.type !== "TSTupleType" ? !1 : t == null || (0, F.default)(e, t); } n(pme, "isTSTupleType"); function hme(e, t) { return !e || e.type !== "TSOptionalType" ? !1 : t == null || (0, F.default)(e, t); } n(hme, "isTSOptionalType"); function mme(e, t) { return !e || e.type !== "TSRestType" ? !1 : t == null || (0, F.default)(e, t); } n(mme, "isTSRestType"); function yme(e, t) { return !e || e.type !== "TSNamedTupleMember" ? !1 : t == null || (0, F.default)(e, t); } n(yme, "isTSNamedTupleMember"); function gme(e, t) { return !e || e.type !== "TSUnionType" ? !1 : t == null || (0, F.default)(e, t); } n(gme, "isTSUnionType"); function bme(e, t) { return !e || e.type !== "TSIntersectionType" ? !1 : t == null || (0, F.default)(e, t); } n(bme, "isTSIntersectionType"); function Dme(e, t) { return !e || e.type !== "TSConditionalType" ? !1 : t == null || (0, F.default)(e, t); } n(Dme, "isTSConditionalType"); function vme(e, t) { return !e || e.type !== "TSInferType" ? !1 : t == null || (0, F.default)(e, t); } n(vme, "isTSInferType"); function xme(e, t) { return !e || e.type !== "TSParenthesizedType" ? !1 : t == null || (0, F.default)(e, t); } n(xme, "isTSParenthesizedType"); function Eme(e, t) { return !e || e.type !== "TSTypeOperator" ? !1 : t == null || (0, F.default)(e, t); } n(Eme, "isTSTypeOperator"); function Sme(e, t) { return !e || e.type !== "TSIndexedAccessType" ? !1 : t == null || (0, F.default)(e, t); } n(Sme, "isTSIndexedAccessType"); function Tme(e, t) { return !e || e.type !== "TSMappedType" ? !1 : t == null || (0, F.default)(e, t); } n(Tme, "isTSMappedType"); function Cme(e, t) { return !e || e.type !== "TSTemplateLiteralType" ? !1 : t == null || (0, F.default)(e, t); } n(Cme, "isTSTemplateLiteralType"); function wme(e, t) { return !e || e.type !== "TSLiteralType" ? !1 : t == null || (0, F.default)(e, t); } n(wme, "isTSLiteralType"); function Ame(e, t) { return !e || e.type !== "TSExpressionWithTypeArguments" ? !1 : t == null || (0, F.default)(e, t); } n(Ame, "isTSExpressionWithTypeArguments"); function _me(e, t) { return !e || e.type !== "TSInterfaceDeclaration" ? !1 : t == null || (0, F.default)(e, t); } n(_me, "isTSInterfaceDeclaration"); function Pme(e, t) { return !e || e.type !== "TSInterfaceBody" ? !1 : t == null || (0, F.default)(e, t); } n(Pme, "isTSInterfaceBody"); function Fme(e, t) { return !e || e.type !== "TSTypeAliasDeclaration" ? !1 : t == null || (0, F.default)(e, t); } n(Fme, "isTSTypeAliasDeclaration"); function Ime(e, t) { return !e || e.type !== "TSInstantiationExpression" ? !1 : t == null || (0, F.default)(e, t); } n(Ime, "isTSInstantiationExpression"); function Ome(e, t) { return !e || e.type !== "TSAsExpression" ? !1 : t == null || (0, F.default)(e, t); } n(Ome, "isTSAsExpression"); function kme(e, t) { return !e || e.type !== "TSSatisfiesExpression" ? !1 : t == null || (0, F.default)(e, t); } n(kme, "isTSSatisfiesExpression"); function Bme(e, t) { return !e || e.type !== "TSTypeAssertion" ? !1 : t == null || (0, F.default)(e, t); } n(Bme, "isTSTypeAssertion"); function Nme(e, t) { return !e || e.type !== "TSEnumBody" ? !1 : t == null || (0, F.default)(e, t); } n(Nme, "isTSEnumBody"); function Mme(e, t) { return !e || e.type !== "TSEnumDeclaration" ? !1 : t == null || (0, F.default)(e, t); } n(Mme, "isTSEnumDeclaration"); function Rme(e, t) { return !e || e.type !== "TSEnumMember" ? !1 : t == null || (0, F.default)(e, t); } n(Rme, "isTSEnumMember"); function Lme(e, t) { return !e || e.type !== "TSModuleDeclaration" ? !1 : t == null || (0, F.default)(e, t); } n(Lme, "isTSModuleDeclaration"); function jme(e, t) { return !e || e.type !== "TSModuleBlock" ? !1 : t == null || (0, F.default)(e, t); } n(jme, "isTSModuleBlock"); function qme(e, t) { return !e || e.type !== "TSImportType" ? !1 : t == null || (0, F.default)(e, t); } n(qme, "isTSImportType"); function Ume(e, t) { return !e || e.type !== "TSImportEqualsDeclaration" ? !1 : t == null || (0, F.default)(e, t); } n(Ume, "isTSImportEqualsDeclaration"); function $me(e, t) { return !e || e.type !== "TSExternalModuleReference" ? !1 : t == null || (0, F.default)(e, t); } n($me, "isTSExternalModuleReference"); function Vme(e, t) { return !e || e.type !== "TSNonNullExpression" ? !1 : t == null || (0, F.default)(e, t); } n(Vme, "isTSNonNullExpression"); function Wme(e, t) { return !e || e.type !== "TSExportAssignment" ? !1 : t == null || (0, F.default)(e, t); } n(Wme, "isTSExportAssignment"); function Hme(e, t) { return !e || e.type !== "TSNamespaceExportDeclaration" ? !1 : t == null || (0, F.default)(e, t); } n(Hme, "isTSNamespaceExportDeclaration"); function Kme(e, t) { return !e || e.type !== "TSTypeAnnotation" ? !1 : t == null || (0, F.default)(e, t); } n(Kme, "isTSTypeAnnotation"); function zme(e, t) { return !e || e.type !== "TSTypeParameterInstantiation" ? !1 : t == null || (0, F.default)(e, t); } n(zme, "isTSTypeParameterInstantiation"); function Jme(e, t) { return !e || e.type !== "TSTypeParameterDeclaration" ? !1 : t == null || (0, F.default)(e, t); } n(Jme, "isTSTypeParameterDeclaration"); function Xme(e, t) { return !e || e.type !== "TSTypeParameter" ? !1 : t == null || (0, F.default)(e, t); } n(Xme, "isTSTypeParameter"); function Yme(e, t) { if (!e) return !1; switch (e.type) { case "ArrayExpression": case "AssignmentExpression": case "BinaryExpression": case "InterpreterDirective": case "Directive": case "DirectiveLiteral": case "BlockStatement": case "BreakStatement": case "CallExpression": case "CatchClause": case "ConditionalExpression": case "ContinueStatement": case "DebuggerStatement": case "DoWhileStatement": case "EmptyStatement": case "ExpressionStatement": case "File": case "ForInStatement": case "ForStatement": case "FunctionDeclaration": case "FunctionExpression": case "Identifier": case "IfStatement": case "LabeledStatement": case "StringLiteral": case "NumericLiteral": case "NullLiteral": case "BooleanLiteral": case "RegExpLiteral": case "LogicalExpression": case "MemberExpression": case "NewExpression": case "Program": case "ObjectExpression": case "ObjectMethod": case "ObjectProperty": case "RestElement": case "ReturnStatement": case "SequenceExpression": case "ParenthesizedExpression": case "SwitchCase": case "SwitchStatement": case "ThisExpression": case "ThrowStatement": case "TryStatement": case "UnaryExpression": case "UpdateExpression": case "VariableDeclaration": case "VariableDeclarator": case "WhileStatement": case "WithStatement": case "AssignmentPattern": case "ArrayPattern": case "ArrowFunctionExpression": case "ClassBody": case "ClassExpression": case "ClassDeclaration": case "ExportAllDeclaration": case "ExportDefaultDeclaration": case "ExportNamedDeclaration": case "ExportSpecifier": case "ForOfStatement": case "ImportDeclaration": case "ImportDefaultSpecifier": case "ImportNamespaceSpecifier": case "ImportSpecifier": case "ImportExpression": case "MetaProperty": case "ClassMethod": case "ObjectPattern": case "SpreadElement": case "Super": case "TaggedTemplateExpression": case "TemplateElement": case "TemplateLiteral": case "YieldExpression": case "AwaitExpression": case "Import": case "BigIntLiteral": case "ExportNamespaceSpecifier": case "OptionalMemberExpression": case "OptionalCallExpression": case "ClassProperty": case "ClassAccessorProperty": case "ClassPrivateProperty": case "ClassPrivateMethod": case "PrivateName": case "StaticBlock": case "ImportAttribute": break; case "Placeholder": switch (e.expectedNode) { case "Identifier": case "StringLiteral": case "BlockStatement": case "ClassBody": break; default: return !1; } break; default: return !1; } return t == null || (0, F.default)(e, t); } n(Yme, "isStandardized"); function Gme(e, t) { if (!e) return !1; switch (e.type) { case "ArrayExpression": case "AssignmentExpression": case "BinaryExpression": case "CallExpression": case "ConditionalExpression": case "FunctionExpression": case "Identifier": case "StringLiteral": case "NumericLiteral": case "NullLiteral": case "BooleanLiteral": case "RegExpLiteral": case "LogicalExpression": case "MemberExpression": case "NewExpression": case "ObjectExpression": case "SequenceExpression": case "ParenthesizedExpression": case "ThisExpression": case "UnaryExpression": case "UpdateExpression": case "ArrowFunctionExpression": case "ClassExpression": case "ImportExpression": case "MetaProperty": case "Super": case "TaggedTemplateExpression": case "TemplateLiteral": case "YieldExpression": case "AwaitExpression": case "Import": case "BigIntLiteral": case "OptionalMemberExpression": case "OptionalCallExpression": case "TypeCastExpression": case "JSXElement": case "JSXFragment": case "BindExpression": case "DoExpression": case "RecordExpression": case "TupleExpression": case "DecimalLiteral": case "ModuleExpression": case "TopicReference": case "PipelineTopicExpression": case "PipelineBareFunction": case "PipelinePrimaryTopicReference": case "TSInstantiationExpression": case "TSAsExpression": case "TSSatisfiesExpression": case "TSTypeAssertion": case "TSNonNullExpression": break; case "Placeholder": switch (e.expectedNode) { case "Expression": case "Identifier": case "StringLiteral": break; default: return !1; } break; default: return !1; } return t == null || (0, F.default)(e, t); } n(Gme, "isExpression"); function Zme(e, t) { if (!e) return !1; switch (e.type) { case "BinaryExpression": case "LogicalExpression": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(Zme, "isBinary"); function Qme(e, t) { if (!e) return !1; switch (e.type) { case "BlockStatement": case "CatchClause": case "DoWhileStatement": case "ForInStatement": case "ForStatement": case "FunctionDeclaration": case "FunctionExpression": case "Program": case "ObjectMethod": case "SwitchStatement": case "WhileStatement": case "ArrowFunctionExpression": case "ClassExpression": case "ClassDeclaration": case "ForOfStatement": case "ClassMethod": case "ClassPrivateMethod": case "StaticBlock": case "TSModuleBlock": break; case "Placeholder": if (e.expectedNode === "BlockStatement") break; default: return !1; } return t == null || (0, F.default)(e, t); } n(Qme, "isScopable"); function eye(e, t) { if (!e) return !1; switch (e.type) { case "BlockStatement": case "CatchClause": case "DoWhileStatement": case "ForInStatement": case "ForStatement": case "FunctionDeclaration": case "FunctionExpression": case "Program": case "ObjectMethod": case "SwitchStatement": case "WhileStatement": case "ArrowFunctionExpression": case "ForOfStatement": case "ClassMethod": case "ClassPrivateMethod": case "StaticBlock": case "TSModuleBlock": break; case "Placeholder": if (e.expectedNode === "BlockStatement") break; default: return !1; } return t == null || (0, F.default)(e, t); } n(eye, "isBlockParent"); function tye(e, t) { if (!e) return !1; switch (e.type) { case "BlockStatement": case "Program": case "TSModuleBlock": break; case "Placeholder": if (e.expectedNode === "BlockStatement") break; default: return !1; } return t == null || (0, F.default)(e, t); } n(tye, "isBlock"); function rye(e, t) { if (!e) return !1; switch (e.type) { case "BlockStatement": case "BreakStatement": case "ContinueStatement": case "DebuggerStatement": case "DoWhileStatement": case "EmptyStatement": case "ExpressionStatement": case "ForInStatement": case "ForStatement": case "FunctionDeclaration": case "IfStatement": case "LabeledStatement": case "ReturnStatement": case "SwitchStatement": case "ThrowStatement": case "TryStatement": case "VariableDeclaration": case "WhileStatement": case "WithStatement": case "ClassDeclaration": case "ExportAllDeclaration": case "ExportDefaultDeclaration": case "ExportNamedDeclaration": case "ForOfStatement": case "ImportDeclaration": case "DeclareClass": case "DeclareFunction": case "DeclareInterface": case "DeclareModule": case "DeclareModuleExports": case "DeclareTypeAlias": case "DeclareOpaqueType": case "DeclareVariable": case "DeclareExportDeclaration": case "DeclareExportAllDeclaration": case "InterfaceDeclaration": case "OpaqueType": case "TypeAlias": case "EnumDeclaration": case "TSDeclareFunction": case "TSInterfaceDeclaration": case "TSTypeAliasDeclaration": case "TSEnumDeclaration": case "TSModuleDeclaration": case "TSImportEqualsDeclaration": case "TSExportAssignment": case "TSNamespaceExportDeclaration": break; case "Placeholder": switch (e.expectedNode) { case "Statement": case "Declaration": case "BlockStatement": break; default: return !1; } break; default: return !1; } return t == null || (0, F.default)(e, t); } n(rye, "isStatement"); function iye(e, t) { if (!e) return !1; switch (e.type) { case "BreakStatement": case "ContinueStatement": case "ReturnStatement": case "ThrowStatement": case "YieldExpression": case "AwaitExpression": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(iye, "isTerminatorless"); function sye(e, t) { if (!e) return !1; switch (e.type) { case "BreakStatement": case "ContinueStatement": case "ReturnStatement": case "ThrowStatement": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(sye, "isCompletionStatement"); function nye(e, t) { if (!e) return !1; switch (e.type) { case "ConditionalExpression": case "IfStatement": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(nye, "isConditional"); function aye(e, t) { if (!e) return !1; switch (e.type) { case "DoWhileStatement": case "ForInStatement": case "ForStatement": case "WhileStatement": case "ForOfStatement": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(aye, "isLoop"); function oye(e, t) { if (!e) return !1; switch (e.type) { case "DoWhileStatement": case "WhileStatement": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(oye, "isWhile"); function uye(e, t) { if (!e) return !1; switch (e.type) { case "ExpressionStatement": case "ParenthesizedExpression": case "TypeCastExpression": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(uye, "isExpressionWrapper"); function lye(e, t) { if (!e) return !1; switch (e.type) { case "ForInStatement": case "ForStatement": case "ForOfStatement": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(lye, "isFor"); function cye(e, t) { if (!e) return !1; switch (e.type) { case "ForInStatement": case "ForOfStatement": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(cye, "isForXStatement"); function fye(e, t) { if (!e) return !1; switch (e.type) { case "FunctionDeclaration": case "FunctionExpression": case "ObjectMethod": case "ArrowFunctionExpression": case "ClassMethod": case "ClassPrivateMethod": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(fye, "isFunction"); function dye(e, t) { if (!e) return !1; switch (e.type) { case "FunctionDeclaration": case "FunctionExpression": case "ObjectMethod": case "ArrowFunctionExpression": case "ClassMethod": case "ClassPrivateMethod": case "StaticBlock": case "TSModuleBlock": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(dye, "isFunctionParent"); function pye(e, t) { if (!e) return !1; switch (e.type) { case "FunctionDeclaration": case "FunctionExpression": case "StringLiteral": case "NumericLiteral": case "NullLiteral": case "BooleanLiteral": case "RegExpLiteral": case "ArrowFunctionExpression": case "BigIntLiteral": case "DecimalLiteral": break; case "Placeholder": if (e.expectedNode === "StringLiteral") break; default: return !1; } return t == null || (0, F.default)(e, t); } n(pye, "isPureish"); function hye(e, t) { if (!e) return !1; switch (e.type) { case "FunctionDeclaration": case "VariableDeclaration": case "ClassDeclaration": case "ExportAllDeclaration": case "ExportDefaultDeclaration": case "ExportNamedDeclaration": case "ImportDeclaration": case "DeclareClass": case "DeclareFunction": case "DeclareInterface": case "DeclareModule": case "DeclareModuleExports": case "DeclareTypeAlias": case "DeclareOpaqueType": case "DeclareVariable": case "DeclareExportDeclaration": case "DeclareExportAllDeclaration": case "InterfaceDeclaration": case "OpaqueType": case "TypeAlias": case "EnumDeclaration": case "TSDeclareFunction": case "TSInterfaceDeclaration": case "TSTypeAliasDeclaration": case "TSEnumDeclaration": case "TSModuleDeclaration": case "TSImportEqualsDeclaration": break; case "Placeholder": if (e.expectedNode === "Declaration") break; default: return !1; } return t == null || (0, F.default)(e, t); } n(hye, "isDeclaration"); function mye(e, t) { if (!e) return !1; switch (e.type) { case "Identifier": case "RestElement": case "AssignmentPattern": case "ArrayPattern": case "ObjectPattern": case "VoidPattern": break; case "Placeholder": if (e.expectedNode === "Identifier") break; default: return !1; } return t == null || (0, F.default)(e, t); } n(mye, "isFunctionParameter"); function yye(e, t) { if (!e) return !1; switch (e.type) { case "Identifier": case "MemberExpression": case "RestElement": case "AssignmentPattern": case "ArrayPattern": case "ObjectPattern": case "VoidPattern": case "TSAsExpression": case "TSSatisfiesExpression": case "TSTypeAssertion": case "TSNonNullExpression": break; case "Placeholder": switch (e.expectedNode) { case "Pattern": case "Identifier": break; default: return !1; } break; default: return !1; } return t == null || (0, F.default)(e, t); } n(yye, "isPatternLike"); function gye(e, t) { if (!e) return !1; switch (e.type) { case "Identifier": case "MemberExpression": case "RestElement": case "AssignmentPattern": case "ArrayPattern": case "ObjectPattern": case "TSParameterProperty": case "TSAsExpression": case "TSSatisfiesExpression": case "TSTypeAssertion": case "TSNonNullExpression": break; case "Placeholder": switch (e.expectedNode) { case "Pattern": case "Identifier": break; default: return !1; } break; default: return !1; } return t == null || (0, F.default)(e, t); } n(gye, "isLVal"); function bye(e, t) { if (!e) return !1; switch (e.type) { case "Identifier": case "TSQualifiedName": break; case "Placeholder": if (e.expectedNode === "Identifier") break; default: return !1; } return t == null || (0, F.default)(e, t); } n(bye, "isTSEntityName"); function Dye(e, t) { if (!e) return !1; switch (e.type) { case "StringLiteral": case "NumericLiteral": case "NullLiteral": case "BooleanLiteral": case "RegExpLiteral": case "TemplateLiteral": case "BigIntLiteral": case "DecimalLiteral": break; case "Placeholder": if (e.expectedNode === "StringLiteral") break; default: return !1; } return t == null || (0, F.default)(e, t); } n(Dye, "isLiteral"); function vye(e, t) { if (!e) return !1; switch (e.type) { case "StringLiteral": case "NumericLiteral": case "NullLiteral": case "BooleanLiteral": case "BigIntLiteral": case "JSXAttribute": case "JSXClosingElement": case "JSXElement": case "JSXExpressionContainer": case "JSXSpreadChild": case "JSXOpeningElement": case "JSXText": case "JSXFragment": case "JSXOpeningFragment": case "JSXClosingFragment": case "DecimalLiteral": break; case "Placeholder": if (e.expectedNode === "StringLiteral") break; default: return !1; } return t == null || (0, F.default)(e, t); } n(vye, "isImmutable"); function xye(e, t) { if (!e) return !1; switch (e.type) { case "ObjectMethod": case "ObjectProperty": case "ObjectTypeInternalSlot": case "ObjectTypeCallProperty": case "ObjectTypeIndexer": case "ObjectTypeProperty": case "ObjectTypeSpreadProperty": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(xye, "isUserWhitespacable"); function Eye(e, t) { if (!e) return !1; switch (e.type) { case "ObjectMethod": case "ClassMethod": case "ClassPrivateMethod": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(Eye, "isMethod"); function Sye(e, t) { if (!e) return !1; switch (e.type) { case "ObjectMethod": case "ObjectProperty": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(Sye, "isObjectMember"); function Tye(e, t) { if (!e) return !1; switch (e.type) { case "ObjectProperty": case "ClassProperty": case "ClassAccessorProperty": case "ClassPrivateProperty": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(Tye, "isProperty"); function Cye(e, t) { if (!e) return !1; switch (e.type) { case "UnaryExpression": case "SpreadElement": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(Cye, "isUnaryLike"); function wye(e, t) { if (!e) return !1; switch (e.type) { case "AssignmentPattern": case "ArrayPattern": case "ObjectPattern": case "VoidPattern": break; case "Placeholder": if (e.expectedNode === "Pattern") break; default: return !1; } return t == null || (0, F.default)(e, t); } n(wye, "isPattern"); function Aye(e, t) { if (!e) return !1; switch (e.type) { case "ClassExpression": case "ClassDeclaration": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(Aye, "isClass"); function HN(e, t) { if (!e) return !1; switch (e.type) { case "ExportAllDeclaration": case "ExportDefaultDeclaration": case "ExportNamedDeclaration": case "ImportDeclaration": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(HN, "isImportOrExportDeclaration"); function _ye(e, t) { if (!e) return !1; switch (e.type) { case "ExportAllDeclaration": case "ExportDefaultDeclaration": case "ExportNamedDeclaration": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(_ye, "isExportDeclaration"); function Pye(e, t) { if (!e) return !1; switch (e.type) { case "ExportSpecifier": case "ImportDefaultSpecifier": case "ImportNamespaceSpecifier": case "ImportSpecifier": case "ExportNamespaceSpecifier": case "ExportDefaultSpecifier": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(Pye, "isModuleSpecifier"); function Fye(e, t) { if (!e) return !1; switch (e.type) { case "ClassAccessorProperty": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(Fye, "isAccessor"); function Iye(e, t) { if (!e) return !1; switch (e.type) { case "ClassPrivateProperty": case "ClassPrivateMethod": case "PrivateName": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(Iye, "isPrivate"); function Oye(e, t) { if (!e) return !1; switch (e.type) { case "AnyTypeAnnotation": case "ArrayTypeAnnotation": case "BooleanTypeAnnotation": case "BooleanLiteralTypeAnnotation": case "NullLiteralTypeAnnotation": case "ClassImplements": case "DeclareClass": case "DeclareFunction": case "DeclareInterface": case "DeclareModule": case "DeclareModuleExports": case "DeclareTypeAlias": case "DeclareOpaqueType": case "DeclareVariable": case "DeclareExportDeclaration": case "DeclareExportAllDeclaration": case "DeclaredPredicate": case "ExistsTypeAnnotation": case "FunctionTypeAnnotation": case "FunctionTypeParam": case "GenericTypeAnnotation": case "InferredPredicate": case "InterfaceExtends": case "InterfaceDeclaration": case "InterfaceTypeAnnotation": case "IntersectionTypeAnnotation": case "MixedTypeAnnotation": case "EmptyTypeAnnotation": case "NullableTypeAnnotation": case "NumberLiteralTypeAnnotation": case "NumberTypeAnnotation": case "ObjectTypeAnnotation": case "ObjectTypeInternalSlot": case "ObjectTypeCallProperty": case "ObjectTypeIndexer": case "ObjectTypeProperty": case "ObjectTypeSpreadProperty": case "OpaqueType": case "QualifiedTypeIdentifier": case "StringLiteralTypeAnnotation": case "StringTypeAnnotation": case "SymbolTypeAnnotation": case "ThisTypeAnnotation": case "TupleTypeAnnotation": case "TypeofTypeAnnotation": case "TypeAlias": case "TypeAnnotation": case "TypeCastExpression": case "TypeParameter": case "TypeParameterDeclaration": case "TypeParameterInstantiation": case "UnionTypeAnnotation": case "Variance": case "VoidTypeAnnotation": case "EnumDeclaration": case "EnumBooleanBody": case "EnumNumberBody": case "EnumStringBody": case "EnumSymbolBody": case "EnumBooleanMember": case "EnumNumberMember": case "EnumStringMember": case "EnumDefaultedMember": case "IndexedAccessType": case "OptionalIndexedAccessType": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(Oye, "isFlow"); function kye(e, t) { if (!e) return !1; switch (e.type) { case "AnyTypeAnnotation": case "ArrayTypeAnnotation": case "BooleanTypeAnnotation": case "BooleanLiteralTypeAnnotation": case "NullLiteralTypeAnnotation": case "ExistsTypeAnnotation": case "FunctionTypeAnnotation": case "GenericTypeAnnotation": case "InterfaceTypeAnnotation": case "IntersectionTypeAnnotation": case "MixedTypeAnnotation": case "EmptyTypeAnnotation": case "NullableTypeAnnotation": case "NumberLiteralTypeAnnotation": case "NumberTypeAnnotation": case "ObjectTypeAnnotation": case "StringLiteralTypeAnnotation": case "StringTypeAnnotation": case "SymbolTypeAnnotation": case "ThisTypeAnnotation": case "TupleTypeAnnotation": case "TypeofTypeAnnotation": case "UnionTypeAnnotation": case "VoidTypeAnnotation": case "IndexedAccessType": case "OptionalIndexedAccessType": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(kye, "isFlowType"); function Bye(e, t) { if (!e) return !1; switch (e.type) { case "AnyTypeAnnotation": case "BooleanTypeAnnotation": case "NullLiteralTypeAnnotation": case "MixedTypeAnnotation": case "EmptyTypeAnnotation": case "NumberTypeAnnotation": case "StringTypeAnnotation": case "SymbolTypeAnnotation": case "ThisTypeAnnotation": case "VoidTypeAnnotation": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(Bye, "isFlowBaseAnnotation"); function Nye(e, t) { if (!e) return !1; switch (e.type) { case "DeclareClass": case "DeclareFunction": case "DeclareInterface": case "DeclareModule": case "DeclareModuleExports": case "DeclareTypeAlias": case "DeclareOpaqueType": case "DeclareVariable": case "DeclareExportDeclaration": case "DeclareExportAllDeclaration": case "InterfaceDeclaration": case "OpaqueType": case "TypeAlias": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(Nye, "isFlowDeclaration"); function Mye(e, t) { if (!e) return !1; switch (e.type) { case "DeclaredPredicate": case "InferredPredicate": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(Mye, "isFlowPredicate"); function Rye(e, t) { if (!e) return !1; switch (e.type) { case "EnumBooleanBody": case "EnumNumberBody": case "EnumStringBody": case "EnumSymbolBody": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(Rye, "isEnumBody"); function Lye(e, t) { if (!e) return !1; switch (e.type) { case "EnumBooleanMember": case "EnumNumberMember": case "EnumStringMember": case "EnumDefaultedMember": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(Lye, "isEnumMember"); function jye(e, t) { if (!e) return !1; switch (e.type) { case "JSXAttribute": case "JSXClosingElement": case "JSXElement": case "JSXEmptyExpression": case "JSXExpressionContainer": case "JSXSpreadChild": case "JSXIdentifier": case "JSXMemberExpression": case "JSXNamespacedName": case "JSXOpeningElement": case "JSXSpreadAttribute": case "JSXText": case "JSXFragment": case "JSXOpeningFragment": case "JSXClosingFragment": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(jye, "isJSX"); function qye(e, t) { if (!e) return !1; switch (e.type) { case "Noop": case "Placeholder": case "V8IntrinsicIdentifier": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(qye, "isMiscellaneous"); function Uye(e, t) { if (!e) return !1; switch (e.type) { case "TSParameterProperty": case "TSDeclareFunction": case "TSDeclareMethod": case "TSQualifiedName": case "TSCallSignatureDeclaration": case "TSConstructSignatureDeclaration": case "TSPropertySignature": case "TSMethodSignature": case "TSIndexSignature": case "TSAnyKeyword": case "TSBooleanKeyword": case "TSBigIntKeyword": case "TSIntrinsicKeyword": case "TSNeverKeyword": case "TSNullKeyword": case "TSNumberKeyword": case "TSObjectKeyword": case "TSStringKeyword": case "TSSymbolKeyword": case "TSUndefinedKeyword": case "TSUnknownKeyword": case "TSVoidKeyword": case "TSThisType": case "TSFunctionType": case "TSConstructorType": case "TSTypeReference": case "TSTypePredicate": case "TSTypeQuery": case "TSTypeLiteral": case "TSArrayType": case "TSTupleType": case "TSOptionalType": case "TSRestType": case "TSNamedTupleMember": case "TSUnionType": case "TSIntersectionType": case "TSConditionalType": case "TSInferType": case "TSParenthesizedType": case "TSTypeOperator": case "TSIndexedAccessType": case "TSMappedType": case "TSTemplateLiteralType": case "TSLiteralType": case "TSExpressionWithTypeArguments": case "TSInterfaceDeclaration": case "TSInterfaceBody": case "TSTypeAliasDeclaration": case "TSInstantiationExpression": case "TSAsExpression": case "TSSatisfiesExpression": case "TSTypeAssertion": case "TSEnumBody": case "TSEnumDeclaration": case "TSEnumMember": case "TSModuleDeclaration": case "TSModuleBlock": case "TSImportType": case "TSImportEqualsDeclaration": case "TSExternalModuleReference": case "TSNonNullExpression": case "TSExportAssignment": case "TSNamespaceExportDeclaration": case "TSTypeAnnotation": case "TSTypeParameterInstantiation": case "TSTypeParameterDeclaration": case "TSTypeParameter": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(Uye, "isTypeScript"); function $ye(e, t) { if (!e) return !1; switch (e.type) { case "TSCallSignatureDeclaration": case "TSConstructSignatureDeclaration": case "TSPropertySignature": case "TSMethodSignature": case "TSIndexSignature": break; default: return !1; } return t == null || (0, F.default)(e, t); } n($ye, "isTSTypeElement"); function Vye(e, t) { if (!e) return !1; switch (e.type) { case "TSAnyKeyword": case "TSBooleanKeyword": case "TSBigIntKeyword": case "TSIntrinsicKeyword": case "TSNeverKeyword": case "TSNullKeyword": case "TSNumberKeyword": case "TSObjectKeyword": case "TSStringKeyword": case "TSSymbolKeyword": case "TSUndefinedKeyword": case "TSUnknownKeyword": case "TSVoidKeyword": case "TSThisType": case "TSFunctionType": case "TSConstructorType": case "TSTypeReference": case "TSTypePredicate": case "TSTypeQuery": case "TSTypeLiteral": case "TSArrayType": case "TSTupleType": case "TSOptionalType": case "TSRestType": case "TSUnionType": case "TSIntersectionType": case "TSConditionalType": case "TSInferType": case "TSParenthesizedType": case "TSTypeOperator": case "TSIndexedAccessType": case "TSMappedType": case "TSTemplateLiteralType": case "TSLiteralType": case "TSExpressionWithTypeArguments": case "TSImportType": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(Vye, "isTSType"); function Wye(e, t) { if (!e) return !1; switch (e.type) { case "TSAnyKeyword": case "TSBooleanKeyword": case "TSBigIntKeyword": case "TSIntrinsicKeyword": case "TSNeverKeyword": case "TSNullKeyword": case "TSNumberKeyword": case "TSObjectKeyword": case "TSStringKeyword": case "TSSymbolKeyword": case "TSUndefinedKeyword": case "TSUnknownKeyword": case "TSVoidKeyword": case "TSThisType": case "TSTemplateLiteralType": case "TSLiteralType": break; default: return !1; } return t == null || (0, F.default)(e, t); } n(Wye, "isTSBaseType"); function Hye(e, t) { return (0, bd.default)("isNumberLiteral", "isNumericLiteral"), !e || e.type !== "NumberLiteral" ? !1 : t == null || (0, F.default)(e, t); } n(Hye, "isNumberLiteral"); function Kye(e, t) { return (0, bd.default)("isRegexLiteral", "isRegExpLiteral"), !e || e.type !== "RegexLiteral" ? !1 : t == null || (0, F.default)(e, t); } n(Kye, "isRegexLiteral"); function zye(e, t) { return (0, bd.default)("isRestProperty", "isRestElement"), !e || e.type !== "RestProperty" ? !1 : t == null || (0, F.default)(e, t); } n(zye, "isRestProperty"); function Jye(e, t) { return (0, bd.default)("isSpreadProperty", "isSpreadElement"), !e || e.type !== "SpreadProperty" ? !1 : t == null || (0, F.default)(e, t); } n(Jye, "isSpreadProperty"); function Xye(e, t) { return (0, bd.default)("isModuleDeclaration", "isImportOrExportDeclaration"), HN(e, t); } n(Xye, "isModuleDeclaration"); }); // ../node_modules/@babel/types/lib/validators/matchesPattern.js var oE = E((aE) => { "use strict"; Object.defineProperty(aE, "__esModule", { value: !0 }); aE.default = Yye; var Mo = Jt(); function KN(e) { return (0, Mo.isMemberExpression)(e) || (0, Mo.isMetaProperty)(e); } n(KN, "isMemberExpressionLike"); function Yye(e, t, r) { if (!KN(e)) return !1; let i = Array.isArray(t) ? t : t.split("."), s = [], a; for (a = e; KN(a); a = (o = a.object) != null ? o : a.meta) { var o; s.push(a.property); } if (s.push(a), s.length < i.length || !r && s.length > i.length) return !1; for (let u = 0, l = s.length - 1; u < i.length; u++, l--) { let c = s[l], f; if ((0, Mo.isIdentifier)(c)) f = c.name; else if ((0, Mo.isStringLiteral)(c)) f = c.value; else if ((0, Mo.isThisExpression)(c)) f = "this"; else if ((0, Mo.isSuper)(c)) f = "super"; else if ((0, Mo.isPrivateName)(c)) f = "#" + c.id.name; else return !1; if (i[u] !== f) return !1; } return !0; } n(Yye, "matchesPattern"); }); // ../node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js var lE = E((uE) => { "use strict"; Object.defineProperty(uE, "__esModule", { value: !0 }); uE.default = Zye; var Gye = oE(); function Zye(e, t) { let r = e.split("."); return (i) => (0, Gye.default)(i, r, t); } n(Zye, "buildMatchMemberExpression"); }); // ../node_modules/@babel/types/lib/validators/react/isReactComponent.js var zN = E((Tm) => { "use strict"; Object.defineProperty(Tm, "__esModule", { value: !0 }); Tm.default = void 0; var Qye = lE(), e1e = (0, Qye.default)("React.Component"), Kot = Tm.default = e1e; }); // ../node_modules/@babel/types/lib/validators/react/isCompatTag.js var JN = E((cE) => { "use strict"; Object.defineProperty(cE, "__esModule", { value: !0 }); cE.default = t1e; function t1e(e) { return !!e && /^[a-z]/.test(e); } n(t1e, "isCompatTag"); }); // ../node_modules/@babel/types/lib/validators/isType.js var Cm = E((fE) => { "use strict"; Object.defineProperty(fE, "__esModule", { value: !0 }); fE.default = r1e; var XN = Vi(); function r1e(e, t) { if (e === t) return !0; if (e == null || XN.ALIAS_KEYS[t]) return !1; let r = XN.FLIPPED_ALIAS_KEYS[t]; return !!(r != null && r.includes(e)); } n(r1e, "isType"); }); // ../node_modules/@babel/types/lib/validators/isPlaceholderType.js var pE = E((dE) => { "use strict"; Object.defineProperty(dE, "__esModule", { value: !0 }); dE.default = s1e; var i1e = Vi(); function s1e(e, t) { if (e === t) return !0; let r = i1e.PLACEHOLDERS_ALIAS[e]; return !!(r != null && r.includes(t)); } n(s1e, "isPlaceholderType"); }); // ../node_modules/@babel/types/lib/validators/is.js var Il = E((hE) => { "use strict"; Object.defineProperty(hE, "__esModule", { value: !0 }); hE.default = l1e; var n1e = Sm(), a1e = Cm(), o1e = pE(), u1e = Vi(); function l1e(e, t, r) { return t ? (0, a1e.default)(t.type, e) ? r === void 0 ? !0 : (0, n1e.default)(t, r) : !r && t.type === "Placeholder" && e in u1e.FLIPPED_ALIAS_KEYS ? (0, o1e.default)(t.expectedNode, e) : !1 : !1; } n(l1e, "is"); }); // ../node_modules/@babel/helper-validator-identifier/lib/identifier.js var eM = E((Dd) => { "use strict"; Object.defineProperty(Dd, "__esModule", { value: !0 }); Dd.isIdentifierChar = QN; Dd.isIdentifierName = p1e; Dd.isIdentifierStart = ZN; var yE = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993\ -\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92\ -\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\ \u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00\ -\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\ \u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\ \uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC", YN = "\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\ \u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\ \u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0\ -\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00\ -\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65", c1e = new RegExp("[" + yE + "]"), f1e = new RegExp("[" + yE + YN + "\ ]"); yE = YN = null; var GN = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 7, 25, 39, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 5, 57, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 24, 43, 261, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 33, 24, 3, 24, 45, 74, 6, 0, 67, 12, 65, 1, 2, 0, 15, 4, 10, 7381, 42, 31, 98, 114, 8702, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 208, 30, 2, 2, 2, 1, 2, 6, 3, 4, 10, 1, 225, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4381, 3, 5773, 3, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 8489], d1e = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 78, 5, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 199, 7, 137, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239]; function mE(e, t) { let r = 65536; for (let i = 0, s = t.length; i < s; i += 2) { if (r += t[i], r > e) return !1; if (r += t[i + 1], r >= e) return !0; } return !1; } n(mE, "isInAstralSet"); function ZN(e) { return e < 65 ? e === 36 : e <= 90 ? !0 : e < 97 ? e === 95 : e <= 122 ? !0 : e <= 65535 ? e >= 170 && c1e.test(String.fromCharCode(e)) : mE(e, GN); } n(ZN, "isIdentifierStart"); function QN(e) { return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e <= 90 ? !0 : e < 97 ? e === 95 : e <= 122 ? !0 : e <= 65535 ? e >= 170 && f1e.test( String.fromCharCode(e)) : mE(e, GN) || mE(e, d1e); } n(QN, "isIdentifierChar"); function p1e(e) { let t = !0; for (let r = 0; r < e.length; r++) { let i = e.charCodeAt(r); if ((i & 64512) === 55296 && r + 1 < e.length) { let s = e.charCodeAt(++r); (s & 64512) === 56320 && (i = 65536 + ((i & 1023) << 10) + (s & 1023)); } if (t) { if (t = !1, !ZN(i)) return !1; } else if (!QN(i)) return !1; } return !t; } n(p1e, "isIdentifierName"); }); // ../node_modules/@babel/helper-validator-identifier/lib/keyword.js var sM = E((Ro) => { "use strict"; Object.defineProperty(Ro, "__esModule", { value: !0 }); Ro.isKeyword = b1e; Ro.isReservedWord = tM; Ro.isStrictBindOnlyReservedWord = iM; Ro.isStrictBindReservedWord = g1e; Ro.isStrictReservedWord = rM; var gE = { keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "swit\ ch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"], strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"], strictBind: ["eval", "arguments"] }, h1e = new Set(gE.keyword), m1e = new Set(gE.strict), y1e = new Set(gE.strictBind); function tM(e, t) { return t && e === "await" || e === "enum"; } n(tM, "isReservedWord"); function rM(e, t) { return tM(e, t) || m1e.has(e); } n(rM, "isStrictReservedWord"); function iM(e) { return y1e.has(e); } n(iM, "isStrictBindOnlyReservedWord"); function g1e(e, t) { return rM(e, t) || iM(e); } n(g1e, "isStrictBindReservedWord"); function b1e(e) { return h1e.has(e); } n(b1e, "isKeyword"); }); // ../node_modules/@babel/helper-validator-identifier/lib/index.js var Ol = E((Xs) => { "use strict"; Object.defineProperty(Xs, "__esModule", { value: !0 }); Object.defineProperty(Xs, "isIdentifierChar", { enumerable: !0, get: /* @__PURE__ */ n(function() { return bE.isIdentifierChar; }, "get") }); Object.defineProperty(Xs, "isIdentifierName", { enumerable: !0, get: /* @__PURE__ */ n(function() { return bE.isIdentifierName; }, "get") }); Object.defineProperty(Xs, "isIdentifierStart", { enumerable: !0, get: /* @__PURE__ */ n(function() { return bE.isIdentifierStart; }, "get") }); Object.defineProperty(Xs, "isKeyword", { enumerable: !0, get: /* @__PURE__ */ n(function() { return vd.isKeyword; }, "get") }); Object.defineProperty(Xs, "isReservedWord", { enumerable: !0, get: /* @__PURE__ */ n(function() { return vd.isReservedWord; }, "get") }); Object.defineProperty(Xs, "isStrictBindOnlyReservedWord", { enumerable: !0, get: /* @__PURE__ */ n(function() { return vd.isStrictBindOnlyReservedWord; }, "get") }); Object.defineProperty(Xs, "isStrictBindReservedWord", { enumerable: !0, get: /* @__PURE__ */ n(function() { return vd.isStrictBindReservedWord; }, "get") }); Object.defineProperty(Xs, "isStrictReservedWord", { enumerable: !0, get: /* @__PURE__ */ n(function() { return vd.isStrictReservedWord; }, "get") }); var bE = eM(), vd = sM(); }); // ../node_modules/@babel/types/lib/validators/isValidIdentifier.js var kl = E((vE) => { "use strict"; Object.defineProperty(vE, "__esModule", { value: !0 }); vE.default = D1e; var DE = Ol(); function D1e(e, t = !0) { return typeof e != "string" || t && ((0, DE.isKeyword)(e) || (0, DE.isStrictReservedWord)(e, !0)) ? !1 : (0, DE.isIdentifierName)(e); } n(D1e, "isValidIdentifier"); }); // ../node_modules/@babel/helper-string-parser/lib/index.js var uM = E((xd) => { "use strict"; Object.defineProperty(xd, "__esModule", { value: !0 }); xd.readCodePoint = oM; xd.readInt = aM; xd.readStringContents = x1e; var v1e = /* @__PURE__ */ n(function(t) { return t >= 48 && t <= 57; }, "isDigit"), nM = { decBinOct: /* @__PURE__ */ new Set([46, 66, 69, 79, 95, 98, 101, 111]), hex: /* @__PURE__ */ new Set([46, 88, 95, 120]) }, wm = { bin: /* @__PURE__ */ n((e) => e === 48 || e === 49, "bin"), oct: /* @__PURE__ */ n((e) => e >= 48 && e <= 55, "oct"), dec: /* @__PURE__ */ n((e) => e >= 48 && e <= 57, "dec"), hex: /* @__PURE__ */ n((e) => e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102, "hex") }; function x1e(e, t, r, i, s, a) { let o = r, u = i, l = s, c = "", f = null, m = r, { length: h } = t; for (; ; ) { if (r >= h) { a.unterminated(o, u, l), c += t.slice(m, r); break; } let d = t.charCodeAt(r); if (E1e(e, d, t, r)) { c += t.slice(m, r); break; } if (d === 92) { c += t.slice(m, r); let y = S1e(t, r, i, s, e === "template", a); y.ch === null && !f ? f = { pos: r, lineStart: i, curLine: s } : c += y.ch, { pos: r, lineStart: i, curLine: s } = y, m = r; } else d === 8232 || d === 8233 ? (++r, ++s, i = r) : d === 10 || d === 13 ? e === "template" ? (c += t.slice(m, r) + ` `, ++r, d === 13 && t.charCodeAt(r) === 10 && ++r, ++s, m = i = r) : a.unterminated(o, u, l) : ++r; } return { pos: r, str: c, firstInvalidLoc: f, lineStart: i, curLine: s, containsInvalid: !!f }; } n(x1e, "readStringContents"); function E1e(e, t, r, i) { return e === "template" ? t === 96 || t === 36 && r.charCodeAt(i + 1) === 123 : t === (e === "double" ? 34 : 39); } n(E1e, "isStringEnd"); function S1e(e, t, r, i, s, a) { let o = !s; t++; let u = /* @__PURE__ */ n((c) => ({ pos: t, ch: c, lineStart: r, curLine: i }), "res"), l = e.charCodeAt(t++); switch (l) { case 110: return u(` `); case 114: return u("\r"); case 120: { let c; return { code: c, pos: t } = xE(e, t, r, i, 2, !1, o, a), u(c === null ? null : String.fromCharCode(c)); } case 117: { let c; return { code: c, pos: t } = oM(e, t, r, i, o, a), u(c === null ? null : String.fromCodePoint(c)); } case 116: return u(" "); case 98: return u("\b"); case 118: return u("\v"); case 102: return u("\f"); case 13: e.charCodeAt(t) === 10 && ++t; case 10: r = t, ++i; case 8232: case 8233: return u(""); case 56: case 57: if (s) return u(null); a.strictNumericEscape(t - 1, r, i); default: if (l >= 48 && l <= 55) { let c = t - 1, m = /^[0-7]+/.exec(e.slice(c, t + 2))[0], h = parseInt(m, 8); h > 255 && (m = m.slice(0, -1), h = parseInt(m, 8)), t += m.length - 1; let d = e.charCodeAt(t); if (m !== "0" || d === 56 || d === 57) { if (s) return u(null); a.strictNumericEscape(c, r, i); } return u(String.fromCharCode(h)); } return u(String.fromCharCode(l)); } } n(S1e, "readEscapedChar"); function xE(e, t, r, i, s, a, o, u) { let l = t, c; return { n: c, pos: t } = aM(e, t, r, i, 16, s, a, !1, u, !o), c === null && (o ? u.invalidEscapeSequence(l, r, i) : t = l - 1), { code: c, pos: t }; } n(xE, "readHexChar"); function aM(e, t, r, i, s, a, o, u, l, c) { let f = t, m = s === 16 ? nM.hex : nM.decBinOct, h = s === 16 ? wm.hex : s === 10 ? wm.dec : s === 8 ? wm.oct : wm.bin, d = !1, y = 0; for (let p = 0, g = a ?? 1 / 0; p < g; ++p) { let b = e.charCodeAt(t), D; if (b === 95 && u !== "bail") { let x = e.charCodeAt(t - 1), T = e.charCodeAt(t + 1); if (u) { if (Number.isNaN(T) || !h(T) || m.has(x) || m.has(T)) { if (c) return { n: null, pos: t }; l.unexpectedNumericSeparator(t, r, i); } } else { if (c) return { n: null, pos: t }; l.numericSeparatorInEscapeSequence(t, r, i); } ++t; continue; } if (b >= 97 ? D = b - 97 + 10 : b >= 65 ? D = b - 65 + 10 : v1e(b) ? D = b - 48 : D = 1 / 0, D >= s) { if (D <= 9 && c) return { n: null, pos: t }; if (D <= 9 && l.invalidDigit(t, r, i, s)) D = 0; else if (o) D = 0, d = !0; else break; } ++t, y = y * s + D; } return t === f || a != null && t - f !== a || d ? { n: null, pos: t } : { n: y, pos: t }; } n(aM, "readInt"); function oM(e, t, r, i, s, a) { let o = e.charCodeAt(t), u; if (o === 123) { if (++t, { code: u, pos: t } = xE(e, t, r, i, e.indexOf("}", t) - t, !0, s, a), ++t, u !== null && u > 1114111) if (s) a.invalidCodePoint(t, r, i); else return { code: null, pos: t }; } else ({ code: u, pos: t } = xE(e, t, r, i, 4, !1, s, a)); return { code: u, pos: t }; } n(oM, "readCodePoint"); }); // ../node_modules/@babel/types/lib/constants/index.js var Bl = E((We) => { "use strict"; Object.defineProperty(We, "__esModule", { value: !0 }); We.UPDATE_OPERATORS = We.UNARY_OPERATORS = We.STRING_UNARY_OPERATORS = We.STATEMENT_OR_BLOCK_KEYS = We.NUMBER_UNARY_OPERATORS = We.NUMBER_BINARY_OPERATORS = We.LOGICAL_OPERATORS = We.INHERIT_KEYS = We.FOR_INIT_KEYS = We.FLATTENABLE_KEYS = We.EQUALITY_BINARY_OPERATORS = We.COMPARISON_BINARY_OPERATORS = We.COMMENT_KEYS = We.BOOLEAN_UNARY_OPERATORS = We.BOOLEAN_NUMBER_BINARY_OPERATORS = We.BOOLEAN_BINARY_OPERATORS = We.BINARY_OPERATORS = We. ASSIGNMENT_OPERATORS = void 0; var dut = We.STATEMENT_OR_BLOCK_KEYS = ["consequent", "body", "alternate"], put = We.FLATTENABLE_KEYS = ["body", "expressions"], hut = We. FOR_INIT_KEYS = ["left", "init"], mut = We.COMMENT_KEYS = ["leadingComments", "trailingComments", "innerComments"], T1e = We.LOGICAL_OPERATORS = ["||", "&&", "??"], yut = We.UPDATE_OPERATORS = ["++", "--"], C1e = We.BOOLEAN_NUMBER_BINARY_OPERATORS = [">", "<", ">=", "<="], w1e = We. EQUALITY_BINARY_OPERATORS = ["==", "===", "!=", "!=="], A1e = We.COMPARISON_BINARY_OPERATORS = [...w1e, "in", "instanceof"], _1e = We.BOOLEAN_BINARY_OPERATORS = [...A1e, ...C1e], lM = We.NUMBER_BINARY_OPERATORS = ["-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"], gut = We.BINARY_OPERATORS = ["+", ...lM, ..._1e, "|>"], but = We.ASSIGNMENT_OPERATORS = ["=", "+=", ...lM.map((e) => e + "="), ...T1e.map((e) => e + "=")], P1e = We.BOOLEAN_UNARY_OPERATORS = ["delete", "!"], F1e = We.NUMBER_UNARY_OPERATORS = ["+", "-", "~"], I1e = We.STRING_UNARY_OPERATORS = ["typeof"], Dut = We.UNARY_OPERATORS = ["void", "throw", ...P1e, ...F1e, ...I1e], vut = We.INHERIT_KEYS = { optional: ["typeAnnotation", "typeParameters", "returnType"], force: ["start", "loc", "end"] }; We.BLOCK_SCOPED_SYMBOL = Symbol.for("var used to be block scoped"), We.NOT_LOCAL_BINDING = Symbol.for("should not be considered a local bi\ nding"); }); // ../node_modules/@babel/types/lib/definitions/utils.js var Ys = E((Ge) => { "use strict"; Object.defineProperty(Ge, "__esModule", { value: !0 }); Ge.allExpandedTypes = Ge.VISITOR_KEYS = Ge.NODE_UNION_SHAPES__PRIVATE = Ge.NODE_PARENT_VALIDATIONS = Ge.NODE_FIELDS = Ge.FLIPPED_ALIAS_KEYS = Ge.DEPRECATED_KEYS = Ge.BUILDER_KEYS = Ge.ALIAS_KEYS = void 0; Ge.arrayOf = fM; Ge.arrayOfType = dM; Ge.assertEach = pM; Ge.assertNodeOrValueType = H1e; Ge.assertNodeType = _m; Ge.assertOneOf = V1e; Ge.assertOptionalChainStart = z1e; Ge.assertShape = K1e; Ge.assertValueType = CE; Ge.chain = hM; Ge.default = mM; Ge.defineAliasedType = Y1e; Ge.validate = TE; Ge.validateArrayOfType = $1e; Ge.validateOptional = q1e; Ge.validateOptionalType = U1e; Ge.validateType = j1e; var cM = Il(), Ed = Pm(), O1e = Ge.VISITOR_KEYS = {}, k1e = Ge.ALIAS_KEYS = {}, EE = Ge.FLIPPED_ALIAS_KEYS = {}, B1e = Ge.NODE_FIELDS = {}, N1e = Ge.BUILDER_KEYS = {}, M1e = Ge.DEPRECATED_KEYS = {}, R1e = Ge.NODE_PARENT_VALIDATIONS = {}, L1e = Ge.NODE_UNION_SHAPES__PRIVATE = {}; function Am(e) { return Array.isArray(e) ? "array" : e === null ? "null" : typeof e; } n(Am, "getType"); function TE(e) { return { validate: e }; } n(TE, "validate"); function j1e(...e) { return TE(_m(...e)); } n(j1e, "validateType"); function q1e(e) { return { validate: e, optional: !0 }; } n(q1e, "validateOptional"); function U1e(...e) { return { validate: _m(...e), optional: !0 }; } n(U1e, "validateOptionalType"); function fM(e) { return hM(CE("array"), pM(e)); } n(fM, "arrayOf"); function dM(...e) { return fM(_m(...e)); } n(dM, "arrayOfType"); function $1e(...e) { return TE(dM(...e)); } n($1e, "validateArrayOfType"); function pM(e) { let t = process.env.BABEL_TYPES_8_BREAKING ? Ed.validateChild : () => { }; function r(i, s, a) { if (!Array.isArray(a)) return; let o = 0, u = { toString() { return `${s}[${o}]`; } }; for (; o < a.length; o++) { let l = a[o]; e(i, u, l), t(i, u, l); } } return n(r, "validator"), r.each = e, r; } n(pM, "assertEach"); function V1e(...e) { function t(r, i, s) { if (!e.includes(s)) throw new TypeError(`Property ${i} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(s)}`); } return n(t, "validate"), t.oneOf = e, t; } n(V1e, "assertOneOf"); var W1e = Ge.allExpandedTypes = []; function _m(...e) { let t = /* @__PURE__ */ new Set(); W1e.push({ types: e, set: t }); function r(i, s, a) { let o = a?.type; if (o != null) { if (t.has(o)) { (0, Ed.validateChild)(i, s, a); return; } if (o === "Placeholder") { for (let u of e) if ((0, cM.default)(u, a)) { (0, Ed.validateChild)(i, s, a); return; } } } throw new TypeError(`Property ${s} of ${i.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(o)}`); } return n(r, "validate"), r.oneOfNodeTypes = e, r; } n(_m, "assertNodeType"); function H1e(...e) { function t(r, i, s) { let a = Am(s); for (let o of e) if (a === o || (0, cM.default)(o, s)) { (0, Ed.validateChild)(r, i, s); return; } throw new TypeError(`Property ${i} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(s?. type)}`); } return n(t, "validate"), t.oneOfNodeOrValueTypes = e, t; } n(H1e, "assertNodeOrValueType"); function CE(e) { function t(r, i, s) { if (Am(s) !== e) throw new TypeError(`Property ${i} expected type of ${e} but got ${Am(s)}`); } return n(t, "validate"), t.type = e, t; } n(CE, "assertValueType"); function K1e(e) { let t = Object.keys(e); function r(i, s, a) { let o = []; for (let u of t) try { (0, Ed.validateField)(i, u, a[u], e[u]); } catch (l) { if (l instanceof TypeError) { o.push(l.message); continue; } throw l; } if (o.length) throw new TypeError(`Property ${s} of ${i.type} expected to have the following: ${o.join(` `)}`); } return n(r, "validate"), r.shapeOf = e, r; } n(K1e, "assertShape"); function z1e() { function e(t) { var r; let i = t; for (; t; ) { let { type: s } = i; if (s === "OptionalCallExpression") { if (i.optional) return; i = i.callee; continue; } if (s === "OptionalMemberExpression") { if (i.optional) return; i = i.object; continue; } break; } throw new TypeError(`Non-optional ${t.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chai\ n from ${(r = i) == null ? void 0 : r.type}`); } return n(e, "validate"), e; } n(z1e, "assertOptionalChainStart"); function hM(...e) { function t(...r) { for (let i of e) i(...r); } if (n(t, "validate"), t.chainOf = e, e.length >= 2 && "type" in e[0] && e[0].type === "array" && !("each" in e[1])) throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.'); return t; } n(hM, "chain"); var J1e = /* @__PURE__ */ new Set(["aliases", "builder", "deprecatedAlias", "fields", "inherits", "visitor", "validate", "unionShape"]), X1e = /* @__PURE__ */ new Set( ["default", "optional", "deprecated", "validate"]), SE = {}; function Y1e(...e) { return (t, r = {}) => { let i = r.aliases; if (!i) { var s; r.inherits && (i = (s = SE[r.inherits].aliases) == null ? void 0 : s.slice()), i ?? (i = []), r.aliases = i; } let a = e.filter((o) => !i.includes(o)); i.unshift(...a), mM(t, r); }; } n(Y1e, "defineAliasedType"); function mM(e, t = {}) { let r = t.inherits && SE[t.inherits] || {}, i = t.fields; if (!i && (i = {}, r.fields)) { let u = Object.getOwnPropertyNames(r.fields); for (let l of u) { let c = r.fields[l], f = c.default; if (Array.isArray(f) ? f.length > 0 : f && typeof f == "object") throw new Error("field defaults can only be primitives or empty arrays currently"); i[l] = { default: Array.isArray(f) ? [] : f, optional: c.optional, deprecated: c.deprecated, validate: c.validate }; } } let s = t.visitor || r.visitor || [], a = t.aliases || r.aliases || [], o = t.builder || r.builder || t.visitor || []; for (let u of Object.keys(t)) if (!J1e.has(u)) throw new Error(`Unknown type option "${u}" on ${e}`); t.deprecatedAlias && (M1e[t.deprecatedAlias] = e); for (let u of s.concat(o)) i[u] = i[u] || {}; for (let u of Object.keys(i)) { let l = i[u]; l.default !== void 0 && !o.includes(u) && (l.optional = !0), l.default === void 0 ? l.default = null : !l.validate && l.default != null && (l.validate = CE(Am(l.default))); for (let c of Object.keys(l)) if (!X1e.has(c)) throw new Error(`Unknown field key "${c}" on ${e}.${u}`); } O1e[e] = t.visitor = s, N1e[e] = t.builder = o, B1e[e] = t.fields = i, k1e[e] = t.aliases = a, a.forEach((u) => { EE[u] = EE[u] || [], EE[u].push(e); }), t.validate && (R1e[e] = t.validate), t.unionShape && (L1e[e] = t.unionShape), SE[e] = t; } n(mM, "defineType"); }); // ../node_modules/@babel/types/lib/definitions/core.js var Td = E((gr) => { "use strict"; Object.defineProperty(gr, "__esModule", { value: !0 }); gr.patternLikeCommon = gr.importAttributes = gr.functionTypeAnnotationCommon = gr.functionDeclarationCommon = gr.functionCommon = gr.classMethodOrPropertyUnionShapeCommon = gr.classMethodOrPropertyCommon = gr.classMethodOrDeclareMethodCommon = void 0; var ei = Il(), G1e = kl(), yM = Ol(), Z1e = uM(), Nl = Bl(), I = Ys(), Sd = /* @__PURE__ */ n((e = !1) => ({ unionShape: { discriminator: "computed", shapes: [{ name: "computed", value: [!0], properties: { key: { validate: (0, I.assertNodeType)("Expression") } } }, { name: "nonComputed", value: [!1], properties: { key: { validate: e ? (0, I.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "PrivateName") : (0, I.assertNodeType)( "Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral") } } }] } }), "classMethodOrPropertyUnionShapeCommon"); gr.classMethodOrPropertyUnionShapeCommon = Sd; var ne = (0, I.defineAliasedType)("Standardized"); ne("ArrayExpression", { fields: { elements: { validate: (0, I.arrayOf)((0, I.assertNodeOrValueType)("null", "Expression", "SpreadElement")), default: process.env.BABEL_TYPES_8_BREAKING ? void 0 : [] } }, visitor: ["elements"], aliases: ["Expression"] }); ne("AssignmentExpression", { fields: { operator: { validate: process.env.BABEL_TYPES_8_BREAKING ? Object.assign(function() { let e = (0, I.assertOneOf)(...Nl.ASSIGNMENT_OPERATORS), t = (0, I.assertOneOf)("="); return function(r, i, s) { ((0, ei.default)("Pattern", r.left) ? t : e)(r, i, s); }; }(), { oneOf: Nl.ASSIGNMENT_OPERATORS }) : (0, I.assertValueType)("string") }, left: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.assertNodeType)("Identifier", "MemberExpression", "OptionalMemberExpression", "\ ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") : (0, I.assertNodeType)( "LVal", "OptionalMemberExpression") }, right: { validate: (0, I.assertNodeType)("Expression") } }, builder: ["operator", "left", "right"], visitor: ["left", "right"], aliases: ["Expression"] }); ne("BinaryExpression", { builder: ["operator", "left", "right"], fields: { operator: { validate: (0, I.assertOneOf)(...Nl.BINARY_OPERATORS) }, left: { validate: function() { let e = (0, I.assertNodeType)("Expression"), t = (0, I.assertNodeType)("Expression", "PrivateName"); return Object.assign(function(i, s, a) { (i.operator === "in" ? t : e)(i, s, a); }, { oneOfNodeTypes: ["Expression", "PrivateName"] }); }() }, right: { validate: (0, I.assertNodeType)("Expression") } }, visitor: ["left", "right"], aliases: ["Binary", "Expression"] }); ne("InterpreterDirective", { builder: ["value"], fields: { value: { validate: (0, I.assertValueType)("string") } } }); ne("Directive", { visitor: ["value"], fields: { value: { validate: (0, I.assertNodeType)("DirectiveLiteral") } } }); ne("DirectiveLiteral", { builder: ["value"], fields: { value: { validate: (0, I.assertValueType)("string") } } }); ne("BlockStatement", { builder: ["body", "directives"], visitor: ["directives", "body"], fields: { directives: { validate: (0, I.arrayOfType)("Directive"), default: [] }, body: (0, I.validateArrayOfType)("Statement") }, aliases: ["Scopable", "BlockParent", "Block", "Statement"] }); ne("BreakStatement", { visitor: ["label"], fields: { label: { validate: (0, I.assertNodeType)("Identifier"), optional: !0 } }, aliases: ["Statement", "Terminatorless", "CompletionStatement"] }); ne("CallExpression", { visitor: ["callee", "typeParameters", "typeArguments", "arguments"], builder: ["callee", "arguments"], aliases: ["Expression"], fields: Object.assign({ callee: { validate: (0, I.assertNodeType)("Expression", "Super", "V8IntrinsicIdentifier") }, arguments: (0, I.validateArrayOfType)("Expression", "SpreadElement", "ArgumentPlaceholder"), typeArguments: { validate: (0, I.assertNodeType)("TypeParameterInstantiation"), optional: !0 } }, process.env.BABEL_TYPES_8_BREAKING ? {} : { optional: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, typeParameters: { validate: (0, I.assertNodeType)("TSTypeParameterInstantiation"), optional: !0 } }) }); ne("CatchClause", { visitor: ["param", "body"], fields: { param: { validate: (0, I.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern"), optional: !0 }, body: { validate: (0, I.assertNodeType)("BlockStatement") } }, aliases: ["Scopable", "BlockParent"] }); ne("ConditionalExpression", { visitor: ["test", "consequent", "alternate"], fields: { test: { validate: (0, I.assertNodeType)("Expression") }, consequent: { validate: (0, I.assertNodeType)("Expression") }, alternate: { validate: (0, I.assertNodeType)("Expression") } }, aliases: ["Expression", "Conditional"] }); ne("ContinueStatement", { visitor: ["label"], fields: { label: { validate: (0, I.assertNodeType)("Identifier"), optional: !0 } }, aliases: ["Statement", "Terminatorless", "CompletionStatement"] }); ne("DebuggerStatement", { aliases: ["Statement"] }); ne("DoWhileStatement", { builder: ["test", "body"], visitor: ["body", "test"], fields: { test: { validate: (0, I.assertNodeType)("Expression") }, body: { validate: (0, I.assertNodeType)("Statement") } }, aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"] }); ne("EmptyStatement", { aliases: ["Statement"] }); ne("ExpressionStatement", { visitor: ["expression"], fields: { expression: { validate: (0, I.assertNodeType)("Expression") } }, aliases: ["Statement", "ExpressionWrapper"] }); ne("File", { builder: ["program", "comments", "tokens"], visitor: ["program"], fields: { program: { validate: (0, I.assertNodeType)("Program") }, comments: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.assertEach)((0, I.assertNodeType)("CommentBlock", "CommentLine")) : Object.assign( () => { }, { each: { oneOfNodeTypes: ["CommentBlock", "CommentLine"] } }), optional: !0 }, tokens: { validate: (0, I.assertEach)(Object.assign(() => { }, { type: "any" })), optional: !0 } } }); ne("ForInStatement", { visitor: ["left", "right", "body"], aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"], fields: { left: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.assertNodeType)("VariableDeclaration", "Identifier", "MemberExpression", "Array\ Pattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") : (0, I.assertNodeType)("Var\ iableDeclaration", "LVal") }, right: { validate: (0, I.assertNodeType)("Expression") }, body: { validate: (0, I.assertNodeType)("Statement") } } }); ne("ForStatement", { visitor: ["init", "test", "update", "body"], aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop"], fields: { init: { validate: (0, I.assertNodeType)("VariableDeclaration", "Expression"), optional: !0 }, test: { validate: (0, I.assertNodeType)("Expression"), optional: !0 }, update: { validate: (0, I.assertNodeType)("Expression"), optional: !0 }, body: { validate: (0, I.assertNodeType)("Statement") } } }); var Ml = /* @__PURE__ */ n(() => ({ params: (0, I.validateArrayOfType)("FunctionParameter"), generator: { default: !1 }, async: { default: !1 } }), "functionCommon"); gr.functionCommon = Ml; var Lo = /* @__PURE__ */ n(() => ({ returnType: { validate: (0, I.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), optional: !0 }, typeParameters: { validate: (0, I.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"), optional: !0 } }), "functionTypeAnnotationCommon"); gr.functionTypeAnnotationCommon = Lo; var gM = /* @__PURE__ */ n(() => Object.assign({}, Ml(), { declare: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, id: { validate: (0, I.assertNodeType)("Identifier"), optional: !0 } }), "functionDeclarationCommon"); gr.functionDeclarationCommon = gM; ne("FunctionDeclaration", { builder: ["id", "params", "body", "generator", "async"], visitor: ["id", "typeParameters", "params", "predicate", "returnType", "body"], fields: Object.assign({}, gM(), Lo(), { body: { validate: (0, I.assertNodeType)("BlockStatement") }, predicate: { validate: (0, I.assertNodeType)("DeclaredPredicate", "InferredPredicate"), optional: !0 } }), aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Statement", "Pureish", "Declaration"], validate: process.env.BABEL_TYPES_8_BREAKING ? function() { let e = (0, I.assertNodeType)("Identifier"); return function(t, r, i) { (0, ei.default)("ExportDefaultDeclaration", t) || e(i, "id", i.id); }; }() : void 0 }); ne("FunctionExpression", { inherits: "FunctionDeclaration", aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"], fields: Object.assign({}, Ml(), Lo(), { id: { validate: (0, I.assertNodeType)("Identifier"), optional: !0 }, body: { validate: (0, I.assertNodeType)("BlockStatement") }, predicate: { validate: (0, I.assertNodeType)("DeclaredPredicate", "InferredPredicate"), optional: !0 } }) }); var Rl = /* @__PURE__ */ n(() => ({ typeAnnotation: { validate: (0, I.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), optional: !0 }, optional: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, decorators: { validate: (0, I.arrayOfType)("Decorator"), optional: !0 } }), "patternLikeCommon"); gr.patternLikeCommon = Rl; ne("Identifier", { builder: ["name"], visitor: ["typeAnnotation", "decorators"], aliases: ["Expression", "FunctionParameter", "PatternLike", "LVal", "TSEntityName"], fields: Object.assign({}, Rl(), { name: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.chain)((0, I.assertValueType)("string"), Object.assign(function(e, t, r) { if (!(0, G1e.default)(r, !1)) throw new TypeError(`"${r}" is not a valid identifier name`); }, { type: "string" })) : (0, I.assertValueType)("string") } }), validate: process.env.BABEL_TYPES_8_BREAKING ? function(e, t, r) { let i = /\.(\w+)$/.exec(t.toString()); if (!i) return; let [, s] = i, a = { computed: !1 }; if (s === "property") { if ((0, ei.default)("MemberExpression", e, a) || (0, ei.default)("OptionalMemberExpression", e, a)) return; } else if (s === "key") { if ((0, ei.default)("Property", e, a) || (0, ei.default)("Method", e, a)) return; } else if (s === "exported") { if ((0, ei.default)("ExportSpecifier", e)) return; } else if (s === "imported") { if ((0, ei.default)("ImportSpecifier", e, { imported: r })) return; } else if (s === "meta" && (0, ei.default)("MetaProperty", e, { meta: r })) return; if (((0, yM.isKeyword)(r.name) || (0, yM.isReservedWord)(r.name, !1)) && r.name !== "this") throw new TypeError(`"${r.name}" is not a valid identifier`); } : void 0 }); ne("IfStatement", { visitor: ["test", "consequent", "alternate"], aliases: ["Statement", "Conditional"], fields: { test: { validate: (0, I.assertNodeType)("Expression") }, consequent: { validate: (0, I.assertNodeType)("Statement") }, alternate: { optional: !0, validate: (0, I.assertNodeType)("Statement") } } }); ne("LabeledStatement", { visitor: ["label", "body"], aliases: ["Statement"], fields: { label: { validate: (0, I.assertNodeType)("Identifier") }, body: { validate: (0, I.assertNodeType)("Statement") } } }); ne("StringLiteral", { builder: ["value"], fields: { value: { validate: (0, I.assertValueType)("string") } }, aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); ne("NumericLiteral", { builder: ["value"], deprecatedAlias: "NumberLiteral", fields: { value: { validate: (0, I.chain)((0, I.assertValueType)("number"), Object.assign(function(e, t, r) { if (1 / r < 0 || !Number.isFinite(r)) { let i = new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${r}) instead.`); } }, { type: "number" })) } }, aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); ne("NullLiteral", { aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); ne("BooleanLiteral", { builder: ["value"], fields: { value: { validate: (0, I.assertValueType)("boolean") } }, aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); ne("RegExpLiteral", { builder: ["pattern", "flags"], deprecatedAlias: "RegexLiteral", aliases: ["Expression", "Pureish", "Literal"], fields: { pattern: { validate: (0, I.assertValueType)("string") }, flags: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.chain)((0, I.assertValueType)("string"), Object.assign(function(e, t, r) { let i = /[^dgimsuvy]/.exec(r); if (i) throw new TypeError(`"${i[0]}" is not a valid RegExp flag`); }, { type: "string" })) : (0, I.assertValueType)("string"), default: "" } } }); ne("LogicalExpression", { builder: ["operator", "left", "right"], visitor: ["left", "right"], aliases: ["Binary", "Expression"], fields: { operator: { validate: (0, I.assertOneOf)(...Nl.LOGICAL_OPERATORS) }, left: { validate: (0, I.assertNodeType)("Expression") }, right: { validate: (0, I.assertNodeType)("Expression") } } }); ne("MemberExpression", { builder: ["object", "property", "computed", ...process.env.BABEL_TYPES_8_BREAKING ? [] : ["optional"]], visitor: ["object", "property"], aliases: ["Expression", "LVal", "PatternLike"], unionShape: { discriminator: "computed", shapes: [{ name: "computed", value: [!0], properties: { property: { validate: (0, I.assertNodeType)("Expression") } } }, { name: "nonComputed", value: [!1], properties: { property: { validate: (0, I.assertNodeType)("Identifier", "PrivateName") } } }] }, fields: Object.assign({ object: { validate: (0, I.assertNodeType)("Expression", "Super") }, property: { validate: function() { let e = (0, I.assertNodeType)("Identifier", "PrivateName"), t = (0, I.assertNodeType)("Expression"), r = /* @__PURE__ */ n(function(i, s, a) { (i.computed ? t : e)(i, s, a); }, "validator"); return r.oneOfNodeTypes = ["Expression", "Identifier", "PrivateName"], r; }() }, computed: { default: !1 } }, process.env.BABEL_TYPES_8_BREAKING ? {} : { optional: { validate: (0, I.assertValueType)("boolean"), optional: !0 } }) }); ne("NewExpression", { inherits: "CallExpression" }); ne("Program", { visitor: ["directives", "body"], builder: ["body", "directives", "sourceType", "interpreter"], fields: { sourceType: { validate: (0, I.assertOneOf)("script", "module"), default: "script" }, interpreter: { validate: (0, I.assertNodeType)("InterpreterDirective"), default: null, optional: !0 }, directives: { validate: (0, I.arrayOfType)("Directive"), default: [] }, body: (0, I.validateArrayOfType)("Statement") }, aliases: ["Scopable", "BlockParent", "Block"] }); ne("ObjectExpression", { visitor: ["properties"], aliases: ["Expression"], fields: { properties: (0, I.validateArrayOfType)("ObjectMethod", "ObjectProperty", "SpreadElement") } }); ne("ObjectMethod", Object.assign({ builder: ["kind", "key", "params", "body", "computed", "generator", "async"], visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"] }, Sd(), { fields: Object.assign({}, Ml(), Lo(), { kind: Object.assign({ validate: (0, I.assertOneOf)("method", "get", "set") }, process.env.BABEL_TYPES_8_BREAKING ? {} : { default: "method" }), computed: { default: !1 }, key: { validate: function() { let e = (0, I.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"), t = (0, I.assertNodeType)("Expres\ sion"), r = /* @__PURE__ */ n(function(i, s, a) { (i.computed ? t : e)(i, s, a); }, "validator"); return r.oneOfNodeTypes = ["Expression", "Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"], r; }() }, decorators: { validate: (0, I.arrayOfType)("Decorator"), optional: !0 }, body: { validate: (0, I.assertNodeType)("BlockStatement") } }), aliases: ["UserWhitespacable", "Function", "Scopable", "BlockParent", "FunctionParent", "Method", "ObjectMember"] })); ne("ObjectProperty", { builder: ["key", "value", "computed", "shorthand", ...process.env.BABEL_TYPES_8_BREAKING ? [] : ["decorators"]], unionShape: { discriminator: "computed", shapes: [{ name: "computed", value: [!0], properties: { key: { validate: (0, I.assertNodeType)("Expression") } } }, { name: "nonComputed", value: [!1], properties: { key: { validate: (0, I.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName") } } }] }, fields: { computed: { default: !1 }, key: { validate: function() { let e = (0, I.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName"), t = (0, I. assertNodeType)("Expression"); return Object.assign(function(i, s, a) { (i.computed ? t : e)(i, s, a); }, { oneOfNodeTypes: ["Expression", "Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName"] }); }() }, value: { validate: (0, I.assertNodeType)("Expression", "PatternLike") }, shorthand: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.chain)((0, I.assertValueType)("boolean"), Object.assign(function(e, t, r) { if (r) { if (e.computed) throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true"); if (!(0, ei.default)("Identifier", e.key)) throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier"); } }, { type: "boolean" })) : (0, I.assertValueType)("boolean"), default: !1 }, decorators: { validate: (0, I.arrayOfType)("Decorator"), optional: !0 } }, visitor: ["decorators", "key", "value"], aliases: ["UserWhitespacable", "Property", "ObjectMember"], validate: process.env.BABEL_TYPES_8_BREAKING ? function() { let e = (0, I.assertNodeType)("Identifier", "Pattern", "TSAsExpression", "TSSatisfiesExpression", "TSNonNullExpression", "TSTypeAssert\ ion"), t = (0, I.assertNodeType)("Expression"); return function(r, i, s) { ((0, ei.default)("ObjectPattern", r) ? e : t)(s, "value", s.value); }; }() : void 0 }); ne("RestElement", { visitor: ["argument", "typeAnnotation"], builder: ["argument"], aliases: ["FunctionParameter", "PatternLike", "LVal"], deprecatedAlias: "RestProperty", fields: Object.assign({}, Rl(), { argument: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "MemberExpressio\ n", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") : (0, I.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "MemberExpression", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression", "RestEleme\ nt", "AssignmentPattern") } }), validate: process.env.BABEL_TYPES_8_BREAKING ? function(e, t) { let r = /(\w+)\[(\d+)\]/.exec(t.toString()); if (!r) throw new Error("Internal Babel error: malformed key."); let [, i, s] = r; if (e[i].length > +s + 1) throw new TypeError(`RestElement must be last element of ${i}`); } : void 0 }); ne("ReturnStatement", { visitor: ["argument"], aliases: ["Statement", "Terminatorless", "CompletionStatement"], fields: { argument: { validate: (0, I.assertNodeType)("Expression"), optional: !0 } } }); ne("SequenceExpression", { visitor: ["expressions"], fields: { expressions: (0, I.validateArrayOfType)("Expression") }, aliases: ["Expression"] }); ne("ParenthesizedExpression", { visitor: ["expression"], aliases: ["Expression", "ExpressionWrapper"], fields: { expression: { validate: (0, I.assertNodeType)("Expression") } } }); ne("SwitchCase", { visitor: ["test", "consequent"], fields: { test: { validate: (0, I.assertNodeType)("Expression"), optional: !0 }, consequent: (0, I.validateArrayOfType)("Statement") } }); ne("SwitchStatement", { visitor: ["discriminant", "cases"], aliases: ["Statement", "BlockParent", "Scopable"], fields: { discriminant: { validate: (0, I.assertNodeType)("Expression") }, cases: (0, I.validateArrayOfType)("SwitchCase") } }); ne("ThisExpression", { aliases: ["Expression"] }); ne("ThrowStatement", { visitor: ["argument"], aliases: ["Statement", "Terminatorless", "CompletionStatement"], fields: { argument: { validate: (0, I.assertNodeType)("Expression") } } }); ne("TryStatement", { visitor: ["block", "handler", "finalizer"], aliases: ["Statement"], fields: { block: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.chain)((0, I.assertNodeType)("BlockStatement"), Object.assign(function(e) { if (!e.handler && !e.finalizer) throw new TypeError("TryStatement expects either a handler or finalizer, or both"); }, { oneOfNodeTypes: ["BlockStatement"] })) : (0, I.assertNodeType)("BlockStatement") }, handler: { optional: !0, validate: (0, I.assertNodeType)("CatchClause") }, finalizer: { optional: !0, validate: (0, I.assertNodeType)("BlockStatement") } } }); ne("UnaryExpression", { builder: ["operator", "argument", "prefix"], fields: { prefix: { default: !0 }, argument: { validate: (0, I.assertNodeType)("Expression") }, operator: { validate: (0, I.assertOneOf)(...Nl.UNARY_OPERATORS) } }, visitor: ["argument"], aliases: ["UnaryLike", "Expression"] }); ne("UpdateExpression", { builder: ["operator", "argument", "prefix"], fields: { prefix: { default: !1 }, argument: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.assertNodeType)("Identifier", "MemberExpression") : (0, I.assertNodeType)("Expr\ ession") }, operator: { validate: (0, I.assertOneOf)(...Nl.UPDATE_OPERATORS) } }, visitor: ["argument"], aliases: ["Expression"] }); ne("VariableDeclaration", { builder: ["kind", "declarations"], visitor: ["declarations"], aliases: ["Statement", "Declaration"], fields: { declare: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, kind: { validate: (0, I.assertOneOf)("var", "let", "const", "using", "await using") }, declarations: (0, I.validateArrayOfType)("VariableDeclarator") }, validate: process.env.BABEL_TYPES_8_BREAKING ? (() => { let e = (0, I.assertNodeType)("Identifier", "Placeholder"), t = (0, I.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "\ Placeholder"), r = (0, I.assertNodeType)("Identifier", "VoidPattern", "Placeholder"); return function(i, s, a) { let { kind: o, declarations: u } = a, l = (0, ei.default)("ForXStatement", i, { left: a }); if (l && u.length !== 1) throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${i.type}`); for (let c of u) o === "const" || o === "let" || o === "var" ? !l && !c.init ? e(c, "id", c.id) : t(c, "id", c.id) : r(c, "id", c.id); }; })() : void 0 }); ne("VariableDeclarator", { visitor: ["id", "init"], fields: { id: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "VoidPattern") : (0, I.assertNodeType)("LVal", "VoidPattern") }, definite: { optional: !0, validate: (0, I.assertValueType)("boolean") }, init: { optional: !0, validate: (0, I.assertNodeType)("Expression") } } }); ne("WhileStatement", { visitor: ["test", "body"], aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"], fields: { test: { validate: (0, I.assertNodeType)("Expression") }, body: { validate: (0, I.assertNodeType)("Statement") } } }); ne("WithStatement", { visitor: ["object", "body"], aliases: ["Statement"], fields: { object: { validate: (0, I.assertNodeType)("Expression") }, body: { validate: (0, I.assertNodeType)("Statement") } } }); ne("AssignmentPattern", { visitor: ["left", "right", "decorators"], builder: ["left", "right"], aliases: ["FunctionParameter", "Pattern", "PatternLike", "LVal"], fields: Object.assign({}, Rl(), { left: { validate: (0, I.assertNodeType)("Identifier", "ObjectPattern", "ArrayPattern", "MemberExpression", "TSAsExpression", "TSSatisfiesExp\ ression", "TSTypeAssertion", "TSNonNullExpression") }, right: { validate: (0, I.assertNodeType)("Expression") }, decorators: { validate: (0, I.arrayOfType)("Decorator"), optional: !0 } }) }); ne("ArrayPattern", { visitor: ["elements", "typeAnnotation"], builder: ["elements"], aliases: ["FunctionParameter", "Pattern", "PatternLike", "LVal"], fields: Object.assign({}, Rl(), { elements: { validate: (0, I.chain)((0, I.assertValueType)("array"), (0, I.assertEach)((0, I.assertNodeOrValueType)("null", "PatternLike"))) } }) }); ne("ArrowFunctionExpression", { builder: ["params", "body", "async"], visitor: ["typeParameters", "params", "predicate", "returnType", "body"], aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"], fields: Object.assign({}, Ml(), Lo(), { expression: { validate: (0, I.assertValueType)("boolean") }, body: { validate: (0, I.assertNodeType)("BlockStatement", "Expression") }, predicate: { validate: (0, I.assertNodeType)("DeclaredPredicate", "InferredPredicate"), optional: !0 } }) }); ne("ClassBody", { visitor: ["body"], fields: { body: (0, I.validateArrayOfType)("ClassMethod", "ClassPrivateMethod", "ClassProperty", "ClassPrivateProperty", "ClassAccessorProperty", "TSDeclareMethod", "TSIndexSignature", "StaticBlock") } }); ne("ClassExpression", { builder: ["id", "superClass", "body", "decorators"], visitor: ["decorators", "id", "typeParameters", "superClass", "superTypeParameters", "mixins", "implements", "body"], aliases: ["Scopable", "Class", "Expression"], fields: { id: { validate: (0, I.assertNodeType)("Identifier"), optional: !0 }, typeParameters: { validate: (0, I.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"), optional: !0 }, body: { validate: (0, I.assertNodeType)("ClassBody") }, superClass: { optional: !0, validate: (0, I.assertNodeType)("Expression") }, superTypeParameters: { validate: (0, I.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"), optional: !0 }, implements: { validate: (0, I.arrayOfType)("TSExpressionWithTypeArguments", "ClassImplements"), optional: !0 }, decorators: { validate: (0, I.arrayOfType)("Decorator"), optional: !0 }, mixins: { validate: (0, I.assertNodeType)("InterfaceExtends"), optional: !0 } } }); ne("ClassDeclaration", { inherits: "ClassExpression", aliases: ["Scopable", "Class", "Statement", "Declaration"], fields: { id: { validate: (0, I.assertNodeType)("Identifier"), optional: !0 }, typeParameters: { validate: (0, I.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"), optional: !0 }, body: { validate: (0, I.assertNodeType)("ClassBody") }, superClass: { optional: !0, validate: (0, I.assertNodeType)("Expression") }, superTypeParameters: { validate: (0, I.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"), optional: !0 }, implements: { validate: (0, I.arrayOfType)("TSExpressionWithTypeArguments", "ClassImplements"), optional: !0 }, decorators: { validate: (0, I.arrayOfType)("Decorator"), optional: !0 }, mixins: { validate: (0, I.assertNodeType)("InterfaceExtends"), optional: !0 }, declare: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, abstract: { validate: (0, I.assertValueType)("boolean"), optional: !0 } }, validate: process.env.BABEL_TYPES_8_BREAKING ? function() { let e = (0, I.assertNodeType)("Identifier"); return function(t, r, i) { (0, ei.default)("ExportDefaultDeclaration", t) || e(i, "id", i.id); }; }() : void 0 }); var wE = gr.importAttributes = { attributes: { optional: !0, validate: (0, I.arrayOfType)("ImportAttribute") }, assertions: { deprecated: !0, optional: !0, validate: (0, I.arrayOfType)("ImportAttribute") } }; ne("ExportAllDeclaration", { builder: ["source"], visitor: ["source", "attributes", "assertions"], aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"], fields: Object.assign({ source: { validate: (0, I.assertNodeType)("StringLiteral") }, exportKind: (0, I.validateOptional)((0, I.assertOneOf)("type", "value")) }, wE) }); ne("ExportDefaultDeclaration", { visitor: ["declaration"], aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"], fields: { declaration: (0, I.validateType)("TSDeclareFunction", "FunctionDeclaration", "ClassDeclaration", "Expression"), exportKind: (0, I.validateOptional)((0, I.assertOneOf)("value")) } }); ne("ExportNamedDeclaration", { builder: ["declaration", "specifiers", "source"], visitor: ["declaration", "specifiers", "source", "attributes", "assertions"], aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"], fields: Object.assign({ declaration: { optional: !0, validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.chain)((0, I.assertNodeType)("Declaration"), Object.assign(function(e, t, r) { if (r && e.specifiers.length) throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration"); if (r && e.source) throw new TypeError("Cannot export a declaration from a source"); }, { oneOfNodeTypes: ["Declaration"] })) : (0, I.assertNodeType)("Declaration") } }, wE, { specifiers: { default: [], validate: (0, I.arrayOf)(function() { let e = (0, I.assertNodeType)("ExportSpecifier", "ExportDefaultSpecifier", "ExportNamespaceSpecifier"), t = (0, I.assertNodeType)( "ExportSpecifier"); return process.env.BABEL_TYPES_8_BREAKING ? Object.assign(function(r, i, s) { (r.source ? e : t)(r, i, s); }, { oneOfNodeTypes: ["ExportSpecifier", "ExportDefaultSpecifier", "ExportNamespaceSpecifier"] }) : e; }()) }, source: { validate: (0, I.assertNodeType)("StringLiteral"), optional: !0 }, exportKind: (0, I.validateOptional)((0, I.assertOneOf)("type", "value")) }) }); ne("ExportSpecifier", { visitor: ["local", "exported"], aliases: ["ModuleSpecifier"], fields: { local: { validate: (0, I.assertNodeType)("Identifier") }, exported: { validate: (0, I.assertNodeType)("Identifier", "StringLiteral") }, exportKind: { validate: (0, I.assertOneOf)("type", "value"), optional: !0 } } }); ne("ForOfStatement", { visitor: ["left", "right", "body"], builder: ["left", "right", "body", "await"], aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"], fields: { left: { validate: function() { if (!process.env.BABEL_TYPES_8_BREAKING) return (0, I.assertNodeType)("VariableDeclaration", "LVal"); let e = (0, I.assertNodeType)("VariableDeclaration"), t = (0, I.assertNodeType)("Identifier", "MemberExpression", "ArrayPattern", "\ ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression"); return Object.assign(function(r, i, s) { (0, ei.default)("VariableDeclaration", s) ? e(r, i, s) : t(r, i, s); }, { oneOfNodeTypes: ["VariableDeclaration", "Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TS\ SatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression"] }); }() }, right: { validate: (0, I.assertNodeType)("Expression") }, body: { validate: (0, I.assertNodeType)("Statement") }, await: { default: !1 } } }); ne("ImportDeclaration", { builder: ["specifiers", "source"], visitor: ["specifiers", "source", "attributes", "assertions"], aliases: ["Statement", "Declaration", "ImportOrExportDeclaration"], fields: Object.assign({}, wE, { module: { optional: !0, validate: (0, I.assertValueType)("boolean") }, phase: { default: null, validate: (0, I.assertOneOf)("source", "defer") }, specifiers: (0, I.validateArrayOfType)("ImportSpecifier", "ImportDefaultSpecifier", "ImportNamespaceSpecifier"), source: { validate: (0, I.assertNodeType)("StringLiteral") }, importKind: { validate: (0, I.assertOneOf)("type", "typeof", "value"), optional: !0 } }) }); ne("ImportDefaultSpecifier", { visitor: ["local"], aliases: ["ModuleSpecifier"], fields: { local: { validate: (0, I.assertNodeType)("Identifier") } } }); ne("ImportNamespaceSpecifier", { visitor: ["local"], aliases: ["ModuleSpecifier"], fields: { local: { validate: (0, I.assertNodeType)("Identifier") } } }); ne("ImportSpecifier", { visitor: ["imported", "local"], builder: ["local", "imported"], aliases: ["ModuleSpecifier"], fields: { local: { validate: (0, I.assertNodeType)("Identifier") }, imported: { validate: (0, I.assertNodeType)("Identifier", "StringLiteral") }, importKind: { validate: (0, I.assertOneOf)("type", "typeof", "value"), optional: !0 } } }); ne("ImportExpression", { visitor: ["source", "options"], aliases: ["Expression"], fields: { phase: { default: null, validate: (0, I.assertOneOf)("source", "defer") }, source: { validate: (0, I.assertNodeType)("Expression") }, options: { validate: (0, I.assertNodeType)("Expression"), optional: !0 } } }); ne("MetaProperty", { visitor: ["meta", "property"], aliases: ["Expression"], fields: { meta: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.chain)((0, I.assertNodeType)("Identifier"), Object.assign(function(e, t, r) { let i; switch (r.name) { case "function": i = "sent"; break; case "new": i = "target"; break; case "import": i = "meta"; break; } if (!(0, ei.default)("Identifier", e.property, { name: i })) throw new TypeError("Unrecognised MetaProperty"); }, { oneOfNodeTypes: ["Identifier"] })) : (0, I.assertNodeType)("Identifier") }, property: { validate: (0, I.assertNodeType)("Identifier") } } }); var Fm = /* @__PURE__ */ n(() => ({ abstract: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, accessibility: { validate: (0, I.assertOneOf)("public", "private", "protected"), optional: !0 }, static: { default: !1 }, override: { default: !1 }, computed: { default: !1 }, optional: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, key: { validate: (0, I.chain)(function() { let e = (0, I.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"), t = (0, I.assertNodeType)("Expressi\ on"); return function(r, i, s) { (r.computed ? t : e)(r, i, s); }; }(), (0, I.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "Expression")) } }), "classMethodOrPropertyCommon"); gr.classMethodOrPropertyCommon = Fm; var AE = /* @__PURE__ */ n(() => Object.assign({}, Ml(), Fm(), { params: (0, I.validateArrayOfType)("FunctionParameter", "TSParameterProperty"), kind: { validate: (0, I.assertOneOf)("get", "set", "method", "constructor"), default: "method" }, access: { validate: (0, I.chain)((0, I.assertValueType)("string"), (0, I.assertOneOf)("public", "private", "protected")), optional: !0 }, decorators: { validate: (0, I.arrayOfType)("Decorator"), optional: !0 } }), "classMethodOrDeclareMethodCommon"); gr.classMethodOrDeclareMethodCommon = AE; ne("ClassMethod", Object.assign({ aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method"], builder: ["kind", "key", "params", "body", "computed", "static", "generator", "async"], visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"] }, Sd(), { fields: Object.assign({}, AE(), Lo(), { body: { validate: (0, I.assertNodeType)("BlockStatement") } }) })); ne("ObjectPattern", { visitor: ["decorators", "properties", "typeAnnotation"], builder: ["properties"], aliases: ["FunctionParameter", "Pattern", "PatternLike", "LVal"], fields: Object.assign({}, Rl(), { properties: (0, I.validateArrayOfType)("RestElement", "ObjectProperty") }) }); ne("SpreadElement", { visitor: ["argument"], aliases: ["UnaryLike"], deprecatedAlias: "SpreadProperty", fields: { argument: { validate: (0, I.assertNodeType)("Expression") } } }); ne("Super", { aliases: ["Expression"] }); ne("TaggedTemplateExpression", { visitor: ["tag", "typeParameters", "quasi"], builder: ["tag", "quasi"], aliases: ["Expression"], fields: { tag: { validate: (0, I.assertNodeType)("Expression") }, quasi: { validate: (0, I.assertNodeType)("TemplateLiteral") }, typeParameters: { validate: (0, I.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"), optional: !0 } } }); ne("TemplateElement", { builder: ["value", "tail"], fields: { value: { validate: (0, I.chain)((0, I.assertShape)({ raw: { validate: (0, I.assertValueType)("string") }, cooked: { validate: (0, I.assertValueType)("string"), optional: !0 } }), /* @__PURE__ */ n(function(t) { let r = t.value.raw, i = !1, s = /* @__PURE__ */ n(() => { throw new Error("Internal @babel/types error."); }, "error"), { str: a, firstInvalidLoc: o } = (0, Z1e.readStringContents)("template", r, 0, 0, 0, { unterminated() { i = !0; }, strictNumericEscape: s, invalidEscapeSequence: s, numericSeparatorInEscapeSequence: s, unexpectedNumericSeparator: s, invalidDigit: s, invalidCodePoint: s }); if (!i) throw new Error("Invalid raw"); t.value.cooked = o ? null : a; }, "templateElementCookedValidator")) }, tail: { default: !1 } } }); ne("TemplateLiteral", { visitor: ["quasis", "expressions"], aliases: ["Expression", "Literal"], fields: { quasis: (0, I.validateArrayOfType)("TemplateElement"), expressions: { validate: (0, I.chain)((0, I.assertValueType)("array"), (0, I.assertEach)((0, I.assertNodeType)("Expression", "TSType")), function(e, t, r) { if (e.quasis.length !== r.length + 1) throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions. Expected ${r.length + 1} quasis but got ${e.quasis.length}`); }) } } }); ne("YieldExpression", { builder: ["argument", "delegate"], visitor: ["argument"], aliases: ["Expression", "Terminatorless"], fields: { delegate: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.chain)((0, I.assertValueType)("boolean"), Object.assign(function(e, t, r) { if (r && !e.argument) throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument"); }, { type: "boolean" })) : (0, I.assertValueType)("boolean"), default: !1 }, argument: { optional: !0, validate: (0, I.assertNodeType)("Expression") } } }); ne("AwaitExpression", { builder: ["argument"], visitor: ["argument"], aliases: ["Expression", "Terminatorless"], fields: { argument: { validate: (0, I.assertNodeType)("Expression") } } }); ne("Import", { aliases: ["Expression"] }); ne("BigIntLiteral", { builder: ["value"], fields: { value: { validate: (0, I.assertValueType)("string") } }, aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); ne("ExportNamespaceSpecifier", { visitor: ["exported"], aliases: ["ModuleSpecifier"], fields: { exported: { validate: (0, I.assertNodeType)("Identifier") } } }); ne("OptionalMemberExpression", { builder: ["object", "property", "computed", "optional"], visitor: ["object", "property"], aliases: ["Expression"], fields: { object: { validate: (0, I.assertNodeType)("Expression") }, property: { validate: function() { let e = (0, I.assertNodeType)("Identifier"), t = (0, I.assertNodeType)("Expression"); return Object.assign(function(i, s, a) { (i.computed ? t : e)(i, s, a); }, { oneOfNodeTypes: ["Expression", "Identifier"] }); }() }, computed: { default: !1 }, optional: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.chain)((0, I.assertValueType)("boolean"), (0, I.assertOptionalChainStart)()) : (0, I. assertValueType)("boolean") } } }); ne("OptionalCallExpression", { visitor: ["callee", "typeParameters", "typeArguments", "arguments"], builder: ["callee", "arguments", "optional"], aliases: ["Expression"], fields: Object.assign({ callee: { validate: (0, I.assertNodeType)("Expression") }, arguments: (0, I.validateArrayOfType)("Expression", "SpreadElement", "ArgumentPlaceholder"), optional: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, I.chain)((0, I.assertValueType)("boolean"), (0, I.assertOptionalChainStart)()) : (0, I. assertValueType)("boolean") }, typeArguments: { validate: (0, I.assertNodeType)("TypeParameterInstantiation"), optional: !0 } }, { typeParameters: { validate: (0, I.assertNodeType)("TSTypeParameterInstantiation"), optional: !0 } }) }); ne("ClassProperty", Object.assign({ visitor: ["decorators", "variance", "key", "typeAnnotation", "value"], builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"], aliases: ["Property"] }, Sd(), { fields: Object.assign({}, Fm(), { value: { validate: (0, I.assertNodeType)("Expression"), optional: !0 }, definite: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, typeAnnotation: { validate: (0, I.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), optional: !0 }, decorators: { validate: (0, I.arrayOfType)("Decorator"), optional: !0 }, readonly: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, declare: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, variance: { validate: (0, I.assertNodeType)("Variance"), optional: !0 } }) })); ne("ClassAccessorProperty", Object.assign({ visitor: ["decorators", "key", "typeAnnotation", "value"], builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"], aliases: ["Property", "Accessor"] }, Sd(!0), { fields: Object.assign({}, Fm(), { key: { validate: (0, I.chain)(function() { let e = (0, I.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "PrivateName"), t = (0, I.assertNodeType)( "Expression"); return function(r, i, s) { (r.computed ? t : e)(r, i, s); }; }(), (0, I.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "Expression", "PrivateName")) }, value: { validate: (0, I.assertNodeType)("Expression"), optional: !0 }, definite: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, typeAnnotation: { validate: (0, I.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), optional: !0 }, decorators: { validate: (0, I.arrayOfType)("Decorator"), optional: !0 }, readonly: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, declare: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, variance: { validate: (0, I.assertNodeType)("Variance"), optional: !0 } }) })); ne("ClassPrivateProperty", { visitor: ["decorators", "variance", "key", "typeAnnotation", "value"], builder: ["key", "value", "decorators", "static"], aliases: ["Property", "Private"], fields: { key: { validate: (0, I.assertNodeType)("PrivateName") }, value: { validate: (0, I.assertNodeType)("Expression"), optional: !0 }, typeAnnotation: { validate: (0, I.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), optional: !0 }, decorators: { validate: (0, I.arrayOfType)("Decorator"), optional: !0 }, static: { validate: (0, I.assertValueType)("boolean"), default: !1 }, readonly: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, optional: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, definite: { validate: (0, I.assertValueType)("boolean"), optional: !0 }, variance: { validate: (0, I.assertNodeType)("Variance"), optional: !0 } } }); ne("ClassPrivateMethod", { builder: ["kind", "key", "params", "body", "static"], visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"], aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method", "Private"], fields: Object.assign({}, AE(), Lo(), { kind: { validate: (0, I.assertOneOf)("get", "set", "method"), default: "method" }, key: { validate: (0, I.assertNodeType)("PrivateName") }, body: { validate: (0, I.assertNodeType)("BlockStatement") } }) }); ne("PrivateName", { visitor: ["id"], aliases: ["Private"], fields: { id: { validate: (0, I.assertNodeType)("Identifier") } } }); ne("StaticBlock", { visitor: ["body"], fields: { body: (0, I.validateArrayOfType)("Statement") }, aliases: ["Scopable", "BlockParent", "FunctionParent"] }); ne("ImportAttribute", { visitor: ["key", "value"], fields: { key: { validate: (0, I.assertNodeType)("Identifier", "StringLiteral") }, value: { validate: (0, I.assertNodeType)("StringLiteral") } } }); }); // ../node_modules/@babel/types/lib/definitions/flow.js var DM = E(() => { "use strict"; var bM = Td(), H = Ys(), ge = (0, H.defineAliasedType)("Flow"), _E = /* @__PURE__ */ n((e) => { let t = e === "DeclareClass"; ge(e, { builder: ["id", "typeParameters", "extends", "body"], visitor: ["id", "typeParameters", "extends", ...t ? ["mixins", "implements"] : [], "body"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: Object.assign({ id: (0, H.validateType)("Identifier"), typeParameters: (0, H.validateOptionalType)("TypeParameterDeclaration"), extends: (0, H.validateOptional)((0, H.arrayOfType)("InterfaceExtends")) }, t ? { mixins: (0, H.validateOptional)((0, H.arrayOfType)("InterfaceExtends")), implements: (0, H.validateOptional)((0, H.arrayOfType)("ClassImplements")) } : {}, { body: (0, H.validateType)("ObjectTypeAnnotation") }) }); }, "defineInterfaceishType"); ge("AnyTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); ge("ArrayTypeAnnotation", { visitor: ["elementType"], aliases: ["FlowType"], fields: { elementType: (0, H.validateType)("FlowType") } }); ge("BooleanTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); ge("BooleanLiteralTypeAnnotation", { builder: ["value"], aliases: ["FlowType"], fields: { value: (0, H.validate)((0, H.assertValueType)("boolean")) } }); ge("NullLiteralTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); ge("ClassImplements", { visitor: ["id", "typeParameters"], fields: { id: (0, H.validateType)("Identifier"), typeParameters: (0, H.validateOptionalType)("TypeParameterInstantiation") } }); _E("DeclareClass"); ge("DeclareFunction", { builder: ["id"], visitor: ["id", "predicate"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { id: (0, H.validateType)("Identifier"), predicate: (0, H.validateOptionalType)("DeclaredPredicate") } }); _E("DeclareInterface"); ge("DeclareModule", { builder: ["id", "body", "kind"], visitor: ["id", "body"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { id: (0, H.validateType)("Identifier", "StringLiteral"), body: (0, H.validateType)("BlockStatement"), kind: (0, H.validateOptional)((0, H.assertOneOf)("CommonJS", "ES")) } }); ge("DeclareModuleExports", { visitor: ["typeAnnotation"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { typeAnnotation: (0, H.validateType)("TypeAnnotation") } }); ge("DeclareTypeAlias", { visitor: ["id", "typeParameters", "right"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { id: (0, H.validateType)("Identifier"), typeParameters: (0, H.validateOptionalType)("TypeParameterDeclaration"), right: (0, H.validateType)("FlowType") } }); ge("DeclareOpaqueType", { visitor: ["id", "typeParameters", "supertype"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { id: (0, H.validateType)("Identifier"), typeParameters: (0, H.validateOptionalType)("TypeParameterDeclaration"), supertype: (0, H.validateOptionalType)("FlowType"), impltype: (0, H.validateOptionalType)("FlowType") } }); ge("DeclareVariable", { visitor: ["id"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { id: (0, H.validateType)("Identifier") } }); ge("DeclareExportDeclaration", { visitor: ["declaration", "specifiers", "source", "attributes"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: Object.assign({ declaration: (0, H.validateOptionalType)("Flow"), specifiers: (0, H.validateOptional)((0, H.arrayOfType)("ExportSpecifier", "ExportNamespaceSpecifier")), source: (0, H.validateOptionalType)("StringLiteral"), default: (0, H.validateOptional)((0, H.assertValueType)("boolean")) }, bM.importAttributes) }); ge("DeclareExportAllDeclaration", { visitor: ["source", "attributes"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: Object.assign({ source: (0, H.validateType)("StringLiteral"), exportKind: (0, H.validateOptional)((0, H.assertOneOf)("type", "value")) }, bM.importAttributes) }); ge("DeclaredPredicate", { visitor: ["value"], aliases: ["FlowPredicate"], fields: { value: (0, H.validateType)("Flow") } }); ge("ExistsTypeAnnotation", { aliases: ["FlowType"] }); ge("FunctionTypeAnnotation", { builder: ["typeParameters", "params", "rest", "returnType"], visitor: ["typeParameters", "this", "params", "rest", "returnType"], aliases: ["FlowType"], fields: { typeParameters: (0, H.validateOptionalType)("TypeParameterDeclaration"), params: (0, H.validateArrayOfType)("FunctionTypeParam"), rest: (0, H.validateOptionalType)("FunctionTypeParam"), this: (0, H.validateOptionalType)("FunctionTypeParam"), returnType: (0, H.validateType)("FlowType") } }); ge("FunctionTypeParam", { visitor: ["name", "typeAnnotation"], fields: { name: (0, H.validateOptionalType)("Identifier"), typeAnnotation: (0, H.validateType)("FlowType"), optional: (0, H.validateOptional)((0, H.assertValueType)("boolean")) } }); ge("GenericTypeAnnotation", { visitor: ["id", "typeParameters"], aliases: ["FlowType"], fields: { id: (0, H.validateType)("Identifier", "QualifiedTypeIdentifier"), typeParameters: (0, H.validateOptionalType)("TypeParameterInstantiation") } }); ge("InferredPredicate", { aliases: ["FlowPredicate"] }); ge("InterfaceExtends", { visitor: ["id", "typeParameters"], fields: { id: (0, H.validateType)("Identifier", "QualifiedTypeIdentifier"), typeParameters: (0, H.validateOptionalType)("TypeParameterInstantiation") } }); _E("InterfaceDeclaration"); ge("InterfaceTypeAnnotation", { visitor: ["extends", "body"], aliases: ["FlowType"], fields: { extends: (0, H.validateOptional)((0, H.arrayOfType)("InterfaceExtends")), body: (0, H.validateType)("ObjectTypeAnnotation") } }); ge("IntersectionTypeAnnotation", { visitor: ["types"], aliases: ["FlowType"], fields: { types: (0, H.validate)((0, H.arrayOfType)("FlowType")) } }); ge("MixedTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); ge("EmptyTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); ge("NullableTypeAnnotation", { visitor: ["typeAnnotation"], aliases: ["FlowType"], fields: { typeAnnotation: (0, H.validateType)("FlowType") } }); ge("NumberLiteralTypeAnnotation", { builder: ["value"], aliases: ["FlowType"], fields: { value: (0, H.validate)((0, H.assertValueType)("number")) } }); ge("NumberTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); ge("ObjectTypeAnnotation", { visitor: ["properties", "indexers", "callProperties", "internalSlots"], aliases: ["FlowType"], builder: ["properties", "indexers", "callProperties", "internalSlots", "exact"], fields: { properties: (0, H.validate)((0, H.arrayOfType)("ObjectTypeProperty", "ObjectTypeSpreadProperty")), indexers: { validate: (0, H.arrayOfType)("ObjectTypeIndexer"), optional: !0, default: [] }, callProperties: { validate: (0, H.arrayOfType)("ObjectTypeCallProperty"), optional: !0, default: [] }, internalSlots: { validate: (0, H.arrayOfType)("ObjectTypeInternalSlot"), optional: !0, default: [] }, exact: { validate: (0, H.assertValueType)("boolean"), default: !1 }, inexact: (0, H.validateOptional)((0, H.assertValueType)("boolean")) } }); ge("ObjectTypeInternalSlot", { visitor: ["id", "value"], builder: ["id", "value", "optional", "static", "method"], aliases: ["UserWhitespacable"], fields: { id: (0, H.validateType)("Identifier"), value: (0, H.validateType)("FlowType"), optional: (0, H.validate)((0, H.assertValueType)("boolean")), static: (0, H.validate)((0, H.assertValueType)("boolean")), method: (0, H.validate)((0, H.assertValueType)("boolean")) } }); ge("ObjectTypeCallProperty", { visitor: ["value"], aliases: ["UserWhitespacable"], fields: { value: (0, H.validateType)("FlowType"), static: (0, H.validate)((0, H.assertValueType)("boolean")) } }); ge("ObjectTypeIndexer", { visitor: ["variance", "id", "key", "value"], builder: ["id", "key", "value", "variance"], aliases: ["UserWhitespacable"], fields: { id: (0, H.validateOptionalType)("Identifier"), key: (0, H.validateType)("FlowType"), value: (0, H.validateType)("FlowType"), static: (0, H.validate)((0, H.assertValueType)("boolean")), variance: (0, H.validateOptionalType)("Variance") } }); ge("ObjectTypeProperty", { visitor: ["key", "value", "variance"], aliases: ["UserWhitespacable"], fields: { key: (0, H.validateType)("Identifier", "StringLiteral"), value: (0, H.validateType)("FlowType"), kind: (0, H.validate)((0, H.assertOneOf)("init", "get", "set")), static: (0, H.validate)((0, H.assertValueType)("boolean")), proto: (0, H.validate)((0, H.assertValueType)("boolean")), optional: (0, H.validate)((0, H.assertValueType)("boolean")), variance: (0, H.validateOptionalType)("Variance"), method: (0, H.validate)((0, H.assertValueType)("boolean")) } }); ge("ObjectTypeSpreadProperty", { visitor: ["argument"], aliases: ["UserWhitespacable"], fields: { argument: (0, H.validateType)("FlowType") } }); ge("OpaqueType", { visitor: ["id", "typeParameters", "supertype", "impltype"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { id: (0, H.validateType)("Identifier"), typeParameters: (0, H.validateOptionalType)("TypeParameterDeclaration"), supertype: (0, H.validateOptionalType)("FlowType"), impltype: (0, H.validateType)("FlowType") } }); ge("QualifiedTypeIdentifier", { visitor: ["qualification", "id"], builder: ["id", "qualification"], fields: { id: (0, H.validateType)("Identifier"), qualification: (0, H.validateType)("Identifier", "QualifiedTypeIdentifier") } }); ge("StringLiteralTypeAnnotation", { builder: ["value"], aliases: ["FlowType"], fields: { value: (0, H.validate)((0, H.assertValueType)("string")) } }); ge("StringTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); ge("SymbolTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); ge("ThisTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); ge("TupleTypeAnnotation", { visitor: ["types"], aliases: ["FlowType"], fields: { types: (0, H.validate)((0, H.arrayOfType)("FlowType")) } }); ge("TypeofTypeAnnotation", { visitor: ["argument"], aliases: ["FlowType"], fields: { argument: (0, H.validateType)("FlowType") } }); ge("TypeAlias", { visitor: ["id", "typeParameters", "right"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { id: (0, H.validateType)("Identifier"), typeParameters: (0, H.validateOptionalType)("TypeParameterDeclaration"), right: (0, H.validateType)("FlowType") } }); ge("TypeAnnotation", { visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, H.validateType)("FlowType") } }); ge("TypeCastExpression", { visitor: ["expression", "typeAnnotation"], aliases: ["ExpressionWrapper", "Expression"], fields: { expression: (0, H.validateType)("Expression"), typeAnnotation: (0, H.validateType)("TypeAnnotation") } }); ge("TypeParameter", { visitor: ["bound", "default", "variance"], fields: { name: (0, H.validate)((0, H.assertValueType)("string")), bound: (0, H.validateOptionalType)("TypeAnnotation"), default: (0, H.validateOptionalType)("FlowType"), variance: (0, H.validateOptionalType)("Variance") } }); ge("TypeParameterDeclaration", { visitor: ["params"], fields: { params: (0, H.validate)((0, H.arrayOfType)("TypeParameter")) } }); ge("TypeParameterInstantiation", { visitor: ["params"], fields: { params: (0, H.validate)((0, H.arrayOfType)("FlowType")) } }); ge("UnionTypeAnnotation", { visitor: ["types"], aliases: ["FlowType"], fields: { types: (0, H.validate)((0, H.arrayOfType)("FlowType")) } }); ge("Variance", { builder: ["kind"], fields: { kind: (0, H.validate)((0, H.assertOneOf)("minus", "plus")) } }); ge("VoidTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); ge("EnumDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "body"], fields: { id: (0, H.validateType)("Identifier"), body: (0, H.validateType)("EnumBooleanBody", "EnumNumberBody", "EnumStringBody", "EnumSymbolBody") } }); ge("EnumBooleanBody", { aliases: ["EnumBody"], visitor: ["members"], fields: { explicitType: (0, H.validate)((0, H.assertValueType)("boolean")), members: (0, H.validateArrayOfType)("EnumBooleanMember"), hasUnknownMembers: (0, H.validate)((0, H.assertValueType)("boolean")) } }); ge("EnumNumberBody", { aliases: ["EnumBody"], visitor: ["members"], fields: { explicitType: (0, H.validate)((0, H.assertValueType)("boolean")), members: (0, H.validateArrayOfType)("EnumNumberMember"), hasUnknownMembers: (0, H.validate)((0, H.assertValueType)("boolean")) } }); ge("EnumStringBody", { aliases: ["EnumBody"], visitor: ["members"], fields: { explicitType: (0, H.validate)((0, H.assertValueType)("boolean")), members: (0, H.validateArrayOfType)("EnumStringMember", "EnumDefaultedMember"), hasUnknownMembers: (0, H.validate)((0, H.assertValueType)("boolean")) } }); ge("EnumSymbolBody", { aliases: ["EnumBody"], visitor: ["members"], fields: { members: (0, H.validateArrayOfType)("EnumDefaultedMember"), hasUnknownMembers: (0, H.validate)((0, H.assertValueType)("boolean")) } }); ge("EnumBooleanMember", { aliases: ["EnumMember"], builder: ["id"], visitor: ["id", "init"], fields: { id: (0, H.validateType)("Identifier"), init: (0, H.validateType)("BooleanLiteral") } }); ge("EnumNumberMember", { aliases: ["EnumMember"], visitor: ["id", "init"], fields: { id: (0, H.validateType)("Identifier"), init: (0, H.validateType)("NumericLiteral") } }); ge("EnumStringMember", { aliases: ["EnumMember"], visitor: ["id", "init"], fields: { id: (0, H.validateType)("Identifier"), init: (0, H.validateType)("StringLiteral") } }); ge("EnumDefaultedMember", { aliases: ["EnumMember"], visitor: ["id"], fields: { id: (0, H.validateType)("Identifier") } }); ge("IndexedAccessType", { visitor: ["objectType", "indexType"], aliases: ["FlowType"], fields: { objectType: (0, H.validateType)("FlowType"), indexType: (0, H.validateType)("FlowType") } }); ge("OptionalIndexedAccessType", { visitor: ["objectType", "indexType"], aliases: ["FlowType"], fields: { objectType: (0, H.validateType)("FlowType"), indexType: (0, H.validateType)("FlowType"), optional: (0, H.validate)((0, H.assertValueType)("boolean")) } }); }); // ../node_modules/@babel/types/lib/definitions/jsx.js var vM = E(() => { "use strict"; var jt = Ys(), ti = (0, jt.defineAliasedType)("JSX"); ti("JSXAttribute", { visitor: ["name", "value"], aliases: ["Immutable"], fields: { name: { validate: (0, jt.assertNodeType)("JSXIdentifier", "JSXNamespacedName") }, value: { optional: !0, validate: (0, jt.assertNodeType)("JSXElement", "JSXFragment", "StringLiteral", "JSXExpressionContainer") } } }); ti("JSXClosingElement", { visitor: ["name"], aliases: ["Immutable"], fields: { name: { validate: (0, jt.assertNodeType)("JSXIdentifier", "JSXMemberExpression", "JSXNamespacedName") } } }); ti("JSXElement", { builder: ["openingElement", "closingElement", "children", "selfClosing"], visitor: ["openingElement", "children", "closingElement"], aliases: ["Immutable", "Expression"], fields: Object.assign({ openingElement: { validate: (0, jt.assertNodeType)("JSXOpeningElement") }, closingElement: { optional: !0, validate: (0, jt.assertNodeType)("JSXClosingElement") }, children: (0, jt.validateArrayOfType)("JSXText", "JSXExpressionContainer", "JSXSpreadChild", "JSXElement", "JSXFragment") }, { selfClosing: { validate: (0, jt.assertValueType)("boolean"), optional: !0 } }) }); ti("JSXEmptyExpression", {}); ti("JSXExpressionContainer", { visitor: ["expression"], aliases: ["Immutable"], fields: { expression: { validate: (0, jt.assertNodeType)("Expression", "JSXEmptyExpression") } } }); ti("JSXSpreadChild", { visitor: ["expression"], aliases: ["Immutable"], fields: { expression: { validate: (0, jt.assertNodeType)("Expression") } } }); ti("JSXIdentifier", { builder: ["name"], fields: { name: { validate: (0, jt.assertValueType)("string") } } }); ti("JSXMemberExpression", { visitor: ["object", "property"], fields: { object: { validate: (0, jt.assertNodeType)("JSXMemberExpression", "JSXIdentifier") }, property: { validate: (0, jt.assertNodeType)("JSXIdentifier") } } }); ti("JSXNamespacedName", { visitor: ["namespace", "name"], fields: { namespace: { validate: (0, jt.assertNodeType)("JSXIdentifier") }, name: { validate: (0, jt.assertNodeType)("JSXIdentifier") } } }); ti("JSXOpeningElement", { builder: ["name", "attributes", "selfClosing"], visitor: ["name", "typeParameters", "typeArguments", "attributes"], aliases: ["Immutable"], fields: Object.assign({ name: { validate: (0, jt.assertNodeType)("JSXIdentifier", "JSXMemberExpression", "JSXNamespacedName") }, selfClosing: { default: !1 }, attributes: (0, jt.validateArrayOfType)("JSXAttribute", "JSXSpreadAttribute"), typeArguments: { validate: (0, jt.assertNodeType)("TypeParameterInstantiation"), optional: !0 } }, { typeParameters: { validate: (0, jt.assertNodeType)("TSTypeParameterInstantiation"), optional: !0 } }) }); ti("JSXSpreadAttribute", { visitor: ["argument"], fields: { argument: { validate: (0, jt.assertNodeType)("Expression") } } }); ti("JSXText", { aliases: ["Immutable"], builder: ["value"], fields: { value: { validate: (0, jt.assertValueType)("string") } } }); ti("JSXFragment", { builder: ["openingFragment", "closingFragment", "children"], visitor: ["openingFragment", "children", "closingFragment"], aliases: ["Immutable", "Expression"], fields: { openingFragment: { validate: (0, jt.assertNodeType)("JSXOpeningFragment") }, closingFragment: { validate: (0, jt.assertNodeType)("JSXClosingFragment") }, children: (0, jt.validateArrayOfType)("JSXText", "JSXExpressionContainer", "JSXSpreadChild", "JSXElement", "JSXFragment") } }); ti("JSXOpeningFragment", { aliases: ["Immutable"] }); ti("JSXClosingFragment", { aliases: ["Immutable"] }); }); // ../node_modules/@babel/types/lib/definitions/placeholders.js var IE = E((Pa) => { "use strict"; Object.defineProperty(Pa, "__esModule", { value: !0 }); Pa.PLACEHOLDERS_FLIPPED_ALIAS = Pa.PLACEHOLDERS_ALIAS = Pa.PLACEHOLDERS = void 0; var Q1e = Ys(), ege = Pa.PLACEHOLDERS = ["Identifier", "StringLiteral", "Expression", "Statement", "Declaration", "BlockStatement", "Class\ Body", "Pattern"], FE = Pa.PLACEHOLDERS_ALIAS = { Declaration: ["Statement"], Pattern: ["PatternLike", "LVal"] }; for (let e of ege) { let t = Q1e.ALIAS_KEYS[e]; t != null && t.length && (FE[e] = t); } var PE = Pa.PLACEHOLDERS_FLIPPED_ALIAS = {}; Object.keys(FE).forEach((e) => { FE[e].forEach((t) => { hasOwnProperty.call(PE, t) || (PE[t] = []), PE[t].push(e); }); }); }); // ../node_modules/@babel/types/lib/definitions/misc.js var xM = E(() => { "use strict"; var Im = Ys(), tge = IE(), rge = Td(), OE = (0, Im.defineAliasedType)("Miscellaneous"); OE("Noop", { visitor: [] }); OE("Placeholder", { visitor: [], builder: ["expectedNode", "name"], fields: Object.assign({ name: { validate: (0, Im.assertNodeType)("Identifier") }, expectedNode: { validate: (0, Im.assertOneOf)(...tge.PLACEHOLDERS) } }, (0, rge.patternLikeCommon)()) }); OE("V8IntrinsicIdentifier", { builder: ["name"], fields: { name: { validate: (0, Im.assertValueType)("string") } } }); }); // ../node_modules/@babel/types/lib/definitions/experimental.js var EM = E(() => { "use strict"; var Ct = Ys(); (0, Ct.default)("ArgumentPlaceholder", {}); (0, Ct.default)("BindExpression", { visitor: ["object", "callee"], aliases: ["Expression"], fields: process.env.BABEL_TYPES_8_BREAKING ? { object: { validate: (0, Ct.assertNodeType)("Expression") }, callee: { validate: (0, Ct.assertNodeType)("Expression") } } : { object: { validate: Object.assign(() => { }, { oneOfNodeTypes: ["Expression"] }) }, callee: { validate: Object.assign(() => { }, { oneOfNodeTypes: ["Expression"] }) } } }); (0, Ct.default)("Decorator", { visitor: ["expression"], fields: { expression: { validate: (0, Ct.assertNodeType)("Expression") } } }); (0, Ct.default)("DoExpression", { visitor: ["body"], builder: ["body", "async"], aliases: ["Expression"], fields: { body: { validate: (0, Ct.assertNodeType)("BlockStatement") }, async: { validate: (0, Ct.assertValueType)("boolean"), default: !1 } } }); (0, Ct.default)("ExportDefaultSpecifier", { visitor: ["exported"], aliases: ["ModuleSpecifier"], fields: { exported: { validate: (0, Ct.assertNodeType)("Identifier") } } }); (0, Ct.default)("RecordExpression", { visitor: ["properties"], aliases: ["Expression"], fields: { properties: (0, Ct.validateArrayOfType)("ObjectProperty", "SpreadElement") } }); (0, Ct.default)("TupleExpression", { fields: { elements: { validate: (0, Ct.arrayOfType)("Expression", "SpreadElement"), default: [] } }, visitor: ["elements"], aliases: ["Expression"] }); (0, Ct.default)("DecimalLiteral", { builder: ["value"], fields: { value: { validate: (0, Ct.assertValueType)("string") } }, aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); (0, Ct.default)("ModuleExpression", { visitor: ["body"], fields: { body: { validate: (0, Ct.assertNodeType)("Program") } }, aliases: ["Expression"] }); (0, Ct.default)("TopicReference", { aliases: ["Expression"] }); (0, Ct.default)("PipelineTopicExpression", { builder: ["expression"], visitor: ["expression"], fields: { expression: { validate: (0, Ct.assertNodeType)("Expression") } }, aliases: ["Expression"] }); (0, Ct.default)("PipelineBareFunction", { builder: ["callee"], visitor: ["callee"], fields: { callee: { validate: (0, Ct.assertNodeType)("Expression") } }, aliases: ["Expression"] }); (0, Ct.default)("PipelinePrimaryTopicReference", { aliases: ["Expression"] }); (0, Ct.default)("VoidPattern", { aliases: ["Pattern", "PatternLike", "FunctionParameter"] }); }); // ../node_modules/@babel/types/lib/definitions/typescript.js var PM = E(() => { "use strict"; var X = Ys(), kE = Td(), ige = Il(), Ce = (0, X.defineAliasedType)("TypeScript"), pi = (0, X.assertValueType)("boolean"), SM = /* @__PURE__ */ n( () => ({ returnType: { validate: (0, X.assertNodeType)("TSTypeAnnotation", "Noop"), optional: !0 }, typeParameters: { validate: (0, X.assertNodeType)("TSTypeParameterDeclaration", "Noop"), optional: !0 } }), "tSFunctionTypeAnnotationCommon"); Ce("TSParameterProperty", { aliases: ["LVal"], visitor: ["parameter"], fields: { accessibility: { validate: (0, X.assertOneOf)("public", "private", "protected"), optional: !0 }, readonly: { validate: (0, X.assertValueType)("boolean"), optional: !0 }, parameter: { validate: (0, X.assertNodeType)("Identifier", "AssignmentPattern") }, override: { validate: (0, X.assertValueType)("boolean"), optional: !0 }, decorators: { validate: (0, X.arrayOfType)("Decorator"), optional: !0 } } }); Ce("TSDeclareFunction", { aliases: ["Statement", "Declaration"], visitor: ["id", "typeParameters", "params", "returnType"], fields: Object.assign({}, (0, kE.functionDeclarationCommon)(), SM()) }); Ce("TSDeclareMethod", Object.assign({ visitor: ["decorators", "key", "typeParameters", "params", "returnType"] }, (0, kE.classMethodOrPropertyUnionShapeCommon)(), { fields: Object.assign({}, (0, kE.classMethodOrDeclareMethodCommon)(), SM()) })); Ce("TSQualifiedName", { aliases: ["TSEntityName"], visitor: ["left", "right"], fields: { left: (0, X.validateType)("TSEntityName"), right: (0, X.validateType)("Identifier") } }); var Om = /* @__PURE__ */ n(() => ({ typeParameters: (0, X.validateOptionalType)("TSTypeParameterDeclaration"), parameters: (0, X.validateArrayOfType)("ArrayPattern", "Identifier", "ObjectPattern", "RestElement"), typeAnnotation: (0, X.validateOptionalType)("TSTypeAnnotation") }), "signatureDeclarationCommon"), TM = { aliases: ["TSTypeElement"], visitor: ["typeParameters", "parameters", "typeAnnotation"], fields: Om() }; Ce("TSCallSignatureDeclaration", TM); Ce("TSConstructSignatureDeclaration", TM); var CM = /* @__PURE__ */ n(() => ({ key: (0, X.validateType)("Expression"), computed: { default: !1 }, optional: (0, X.validateOptional)(pi) }), "namedTypeElementCommon"); Ce("TSPropertySignature", { aliases: ["TSTypeElement"], visitor: ["key", "typeAnnotation"], fields: Object.assign({}, CM(), { readonly: (0, X.validateOptional)(pi), typeAnnotation: (0, X.validateOptionalType)("TSTypeAnnotation"), kind: { optional: !0, validate: (0, X.assertOneOf)("get", "set") } }) }); Ce("TSMethodSignature", { aliases: ["TSTypeElement"], visitor: ["key", "typeParameters", "parameters", "typeAnnotation"], fields: Object.assign({}, Om(), CM(), { kind: { validate: (0, X.assertOneOf)("method", "get", "set") } }) }); Ce("TSIndexSignature", { aliases: ["TSTypeElement"], visitor: ["parameters", "typeAnnotation"], fields: { readonly: (0, X.validateOptional)(pi), static: (0, X.validateOptional)(pi), parameters: (0, X.validateArrayOfType)("Identifier"), typeAnnotation: (0, X.validateOptionalType)("TSTypeAnnotation") } }); var sge = ["TSAnyKeyword", "TSBooleanKeyword", "TSBigIntKeyword", "TSIntrinsicKeyword", "TSNeverKeyword", "TSNullKeyword", "TSNumberKeywor\ d", "TSObjectKeyword", "TSStringKeyword", "TSSymbolKeyword", "TSUndefinedKeyword", "TSUnknownKeyword", "TSVoidKeyword"]; for (let e of sge) Ce(e, { aliases: ["TSType", "TSBaseType"], visitor: [], fields: {} }); Ce("TSThisType", { aliases: ["TSType", "TSBaseType"], visitor: [], fields: {} }); var wM = { aliases: ["TSType"], visitor: ["typeParameters", "parameters", "typeAnnotation"] }; Ce("TSFunctionType", Object.assign({}, wM, { fields: Om() })); Ce("TSConstructorType", Object.assign({}, wM, { fields: Object.assign({}, Om(), { abstract: (0, X.validateOptional)(pi) }) })); Ce("TSTypeReference", { aliases: ["TSType"], visitor: ["typeName", "typeParameters"], fields: { typeName: (0, X.validateType)("TSEntityName"), typeParameters: (0, X.validateOptionalType)("TSTypeParameterInstantiation") } }); Ce("TSTypePredicate", { aliases: ["TSType"], visitor: ["parameterName", "typeAnnotation"], builder: ["parameterName", "typeAnnotation", "asserts"], fields: { parameterName: (0, X.validateType)("Identifier", "TSThisType"), typeAnnotation: (0, X.validateOptionalType)("TSTypeAnnotation"), asserts: (0, X.validateOptional)(pi) } }); Ce("TSTypeQuery", { aliases: ["TSType"], visitor: ["exprName", "typeParameters"], fields: { exprName: (0, X.validateType)("TSEntityName", "TSImportType"), typeParameters: (0, X.validateOptionalType)("TSTypeParameterInstantiation") } }); Ce("TSTypeLiteral", { aliases: ["TSType"], visitor: ["members"], fields: { members: (0, X.validateArrayOfType)("TSTypeElement") } }); Ce("TSArrayType", { aliases: ["TSType"], visitor: ["elementType"], fields: { elementType: (0, X.validateType)("TSType") } }); Ce("TSTupleType", { aliases: ["TSType"], visitor: ["elementTypes"], fields: { elementTypes: (0, X.validateArrayOfType)("TSType", "TSNamedTupleMember") } }); Ce("TSOptionalType", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, X.validateType)("TSType") } }); Ce("TSRestType", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, X.validateType)("TSType") } }); Ce("TSNamedTupleMember", { visitor: ["label", "elementType"], builder: ["label", "elementType", "optional"], fields: { label: (0, X.validateType)("Identifier"), optional: { validate: pi, default: !1 }, elementType: (0, X.validateType)("TSType") } }); var AM = { aliases: ["TSType"], visitor: ["types"], fields: { types: (0, X.validateArrayOfType)("TSType") } }; Ce("TSUnionType", AM); Ce("TSIntersectionType", AM); Ce("TSConditionalType", { aliases: ["TSType"], visitor: ["checkType", "extendsType", "trueType", "falseType"], fields: { checkType: (0, X.validateType)("TSType"), extendsType: (0, X.validateType)("TSType"), trueType: (0, X.validateType)("TSType"), falseType: (0, X.validateType)("TSType") } }); Ce("TSInferType", { aliases: ["TSType"], visitor: ["typeParameter"], fields: { typeParameter: (0, X.validateType)("TSTypeParameter") } }); Ce("TSParenthesizedType", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, X.validateType)("TSType") } }); Ce("TSTypeOperator", { aliases: ["TSType"], visitor: ["typeAnnotation"], builder: ["typeAnnotation", "operator"], fields: { operator: { validate: (0, X.assertValueType)("string"), default: "keyof" }, typeAnnotation: (0, X.validateType)("TSType") } }); Ce("TSIndexedAccessType", { aliases: ["TSType"], visitor: ["objectType", "indexType"], fields: { objectType: (0, X.validateType)("TSType"), indexType: (0, X.validateType)("TSType") } }); Ce("TSMappedType", { aliases: ["TSType"], visitor: ["typeParameter", "nameType", "typeAnnotation"], builder: ["typeParameter", "typeAnnotation", "nameType"], fields: Object.assign({}, { typeParameter: (0, X.validateType)("TSTypeParameter") }, { readonly: (0, X.validateOptional)((0, X.assertOneOf)(!0, !1, "+", "-")), optional: (0, X.validateOptional)((0, X.assertOneOf)(!0, !1, "+", "-")), typeAnnotation: (0, X.validateOptionalType)("TSType"), nameType: (0, X.validateOptionalType)("TSType") }) }); Ce("TSTemplateLiteralType", { aliases: ["TSType", "TSBaseType"], visitor: ["quasis", "types"], fields: { quasis: (0, X.validateArrayOfType)("TemplateElement"), types: { validate: (0, X.chain)((0, X.assertValueType)("array"), (0, X.assertEach)((0, X.assertNodeType)("TSType")), function(e, t, r) { if (e.quasis.length !== r.length + 1) throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types. Expected ${r.length + 1} quasis but got ${e.quasis.length}`); }) } } }); Ce("TSLiteralType", { aliases: ["TSType", "TSBaseType"], visitor: ["literal"], fields: { literal: { validate: function() { let e = (0, X.assertNodeType)("NumericLiteral", "BigIntLiteral"), t = (0, X.assertOneOf)("-"), r = (0, X.assertNodeType)("NumericL\ iteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral"), i = /* @__PURE__ */ n(function(a, o, u) { (0, ige.default)("UnaryExpression", u) ? (t(u, "operator", u.operator), e(u, "argument", u.argument)) : r(a, o, u); }, "validator"); return i.oneOfNodeTypes = ["NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral", "UnaryExpressi\ on"], i; }() } } }); Ce("TSExpressionWithTypeArguments", { aliases: ["TSType"], visitor: ["expression", "typeParameters"], fields: { expression: (0, X.validateType)("TSEntityName"), typeParameters: (0, X.validateOptionalType)("TSTypeParameterInstantiation") } }); Ce("TSInterfaceDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "typeParameters", "extends", "body"], fields: { declare: (0, X.validateOptional)(pi), id: (0, X.validateType)("Identifier"), typeParameters: (0, X.validateOptionalType)("TSTypeParameterDeclaration"), extends: (0, X.validateOptional)((0, X.arrayOfType)("TSExpressionWithTypeArguments")), body: (0, X.validateType)("TSInterfaceBody") } }); Ce("TSInterfaceBody", { visitor: ["body"], fields: { body: (0, X.validateArrayOfType)("TSTypeElement") } }); Ce("TSTypeAliasDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "typeParameters", "typeAnnotation"], fields: { declare: (0, X.validateOptional)(pi), id: (0, X.validateType)("Identifier"), typeParameters: (0, X.validateOptionalType)("TSTypeParameterDeclaration"), typeAnnotation: (0, X.validateType)("TSType") } }); Ce("TSInstantiationExpression", { aliases: ["Expression"], visitor: ["expression", "typeParameters"], fields: { expression: (0, X.validateType)("Expression"), typeParameters: (0, X.validateOptionalType)("TSTypeParameterInstantiation") } }); var _M = { aliases: ["Expression", "LVal", "PatternLike"], visitor: ["expression", "typeAnnotation"], fields: { expression: (0, X.validateType)("Expression"), typeAnnotation: (0, X.validateType)("TSType") } }; Ce("TSAsExpression", _M); Ce("TSSatisfiesExpression", _M); Ce("TSTypeAssertion", { aliases: ["Expression", "LVal", "PatternLike"], visitor: ["typeAnnotation", "expression"], fields: { typeAnnotation: (0, X.validateType)("TSType"), expression: (0, X.validateType)("Expression") } }); Ce("TSEnumBody", { visitor: ["members"], fields: { members: (0, X.validateArrayOfType)("TSEnumMember") } }); Ce("TSEnumDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "members"], fields: { declare: (0, X.validateOptional)(pi), const: (0, X.validateOptional)(pi), id: (0, X.validateType)("Identifier"), members: (0, X.validateArrayOfType)("TSEnumMember"), initializer: (0, X.validateOptionalType)("Expression"), body: (0, X.validateOptionalType)("TSEnumBody") } }); Ce("TSEnumMember", { visitor: ["id", "initializer"], fields: { id: (0, X.validateType)("Identifier", "StringLiteral"), initializer: (0, X.validateOptionalType)("Expression") } }); Ce("TSModuleDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "body"], fields: Object.assign({ kind: { validate: (0, X.assertOneOf)("global", "module", "namespace") }, declare: (0, X.validateOptional)(pi) }, { global: (0, X.validateOptional)(pi) }, { id: (0, X.validateType)("Identifier", "StringLiteral"), body: (0, X.validateType)("TSModuleBlock", "TSModuleDeclaration") }) }); Ce("TSModuleBlock", { aliases: ["Scopable", "Block", "BlockParent", "FunctionParent"], visitor: ["body"], fields: { body: (0, X.validateArrayOfType)("Statement") } }); Ce("TSImportType", { aliases: ["TSType"], builder: ["argument", "qualifier", "typeParameters"], visitor: ["argument", "options", "qualifier", "typeParameters"], fields: { argument: (0, X.validateType)("StringLiteral"), qualifier: (0, X.validateOptionalType)("TSEntityName"), typeParameters: (0, X.validateOptionalType)("TSTypeParameterInstantiation"), options: { validate: (0, X.assertNodeType)("ObjectExpression"), optional: !0 } } }); Ce("TSImportEqualsDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "moduleReference"], fields: Object.assign({}, { isExport: (0, X.validate)(pi) }, { id: (0, X.validateType)("Identifier"), moduleReference: (0, X.validateType)("TSEntityName", "TSExternalModuleReference"), importKind: { validate: (0, X.assertOneOf)("type", "value"), optional: !0 } }) }); Ce("TSExternalModuleReference", { visitor: ["expression"], fields: { expression: (0, X.validateType)("StringLiteral") } }); Ce("TSNonNullExpression", { aliases: ["Expression", "LVal", "PatternLike"], visitor: ["expression"], fields: { expression: (0, X.validateType)("Expression") } }); Ce("TSExportAssignment", { aliases: ["Statement"], visitor: ["expression"], fields: { expression: (0, X.validateType)("Expression") } }); Ce("TSNamespaceExportDeclaration", { aliases: ["Statement"], visitor: ["id"], fields: { id: (0, X.validateType)("Identifier") } }); Ce("TSTypeAnnotation", { visitor: ["typeAnnotation"], fields: { typeAnnotation: { validate: (0, X.assertNodeType)("TSType") } } }); Ce("TSTypeParameterInstantiation", { visitor: ["params"], fields: { params: (0, X.validateArrayOfType)("TSType") } }); Ce("TSTypeParameterDeclaration", { visitor: ["params"], fields: { params: (0, X.validateArrayOfType)("TSTypeParameter") } }); Ce("TSTypeParameter", { builder: ["constraint", "default", "name"], visitor: ["constraint", "default"], fields: { name: { validate: (0, X.assertValueType)("string") }, in: { validate: (0, X.assertValueType)("boolean"), optional: !0 }, out: { validate: (0, X.assertValueType)("boolean"), optional: !0 }, const: { validate: (0, X.assertValueType)("boolean"), optional: !0 }, constraint: { validate: (0, X.assertNodeType)("TSType"), optional: !0 }, default: { validate: (0, X.assertNodeType)("TSType"), optional: !0 } } }); }); // ../node_modules/@babel/types/lib/definitions/deprecated-aliases.js var FM = E((km) => { "use strict"; Object.defineProperty(km, "__esModule", { value: !0 }); km.DEPRECATED_ALIASES = void 0; var jut = km.DEPRECATED_ALIASES = { ModuleDeclaration: "ImportOrExportDeclaration" }; }); // ../node_modules/@babel/types/lib/definitions/index.js var Vi = E(($r) => { "use strict"; Object.defineProperty($r, "__esModule", { value: !0 }); Object.defineProperty($r, "ALIAS_KEYS", { enumerable: !0, get: /* @__PURE__ */ n(function() { return ri.ALIAS_KEYS; }, "get") }); Object.defineProperty($r, "BUILDER_KEYS", { enumerable: !0, get: /* @__PURE__ */ n(function() { return ri.BUILDER_KEYS; }, "get") }); Object.defineProperty($r, "DEPRECATED_ALIASES", { enumerable: !0, get: /* @__PURE__ */ n(function() { return BE.DEPRECATED_ALIASES; }, "get") }); Object.defineProperty($r, "DEPRECATED_KEYS", { enumerable: !0, get: /* @__PURE__ */ n(function() { return ri.DEPRECATED_KEYS; }, "get") }); Object.defineProperty($r, "FLIPPED_ALIAS_KEYS", { enumerable: !0, get: /* @__PURE__ */ n(function() { return ri.FLIPPED_ALIAS_KEYS; }, "get") }); Object.defineProperty($r, "NODE_FIELDS", { enumerable: !0, get: /* @__PURE__ */ n(function() { return ri.NODE_FIELDS; }, "get") }); Object.defineProperty($r, "NODE_PARENT_VALIDATIONS", { enumerable: !0, get: /* @__PURE__ */ n(function() { return ri.NODE_PARENT_VALIDATIONS; }, "get") }); Object.defineProperty($r, "NODE_UNION_SHAPES__PRIVATE", { enumerable: !0, get: /* @__PURE__ */ n(function() { return ri.NODE_UNION_SHAPES__PRIVATE; }, "get") }); Object.defineProperty($r, "PLACEHOLDERS", { enumerable: !0, get: /* @__PURE__ */ n(function() { return NE.PLACEHOLDERS; }, "get") }); Object.defineProperty($r, "PLACEHOLDERS_ALIAS", { enumerable: !0, get: /* @__PURE__ */ n(function() { return NE.PLACEHOLDERS_ALIAS; }, "get") }); Object.defineProperty($r, "PLACEHOLDERS_FLIPPED_ALIAS", { enumerable: !0, get: /* @__PURE__ */ n(function() { return NE.PLACEHOLDERS_FLIPPED_ALIAS; }, "get") }); $r.TYPES = void 0; Object.defineProperty($r, "VISITOR_KEYS", { enumerable: !0, get: /* @__PURE__ */ n(function() { return ri.VISITOR_KEYS; }, "get") }); Td(); DM(); vM(); xM(); EM(); PM(); var ri = Ys(), NE = IE(), BE = FM(); Object.keys(BE.DEPRECATED_ALIASES).forEach((e) => { ri.FLIPPED_ALIAS_KEYS[e] = ri.FLIPPED_ALIAS_KEYS[BE.DEPRECATED_ALIASES[e]]; }); for (let { types: e, set: t } of ri.allExpandedTypes) for (let r of e) { let i = ri.FLIPPED_ALIAS_KEYS[r]; i ? i.forEach(t.add, t) : t.add(r); } var Uut = $r.TYPES = [].concat(Object.keys(ri.VISITOR_KEYS), Object.keys(ri.FLIPPED_ALIAS_KEYS), Object.keys(ri.DEPRECATED_KEYS)); }); // ../node_modules/@babel/types/lib/validators/validate.js var Pm = E((Ll) => { "use strict"; Object.defineProperty(Ll, "__esModule", { value: !0 }); Ll.default = nge; Ll.validateChild = OM; Ll.validateField = IM; Ll.validateInternal = age; var Cd = Vi(); function nge(e, t, r) { if (!e) return; let i = Cd.NODE_FIELDS[e.type]; if (!i) return; let s = i[t]; IM(e, t, r, s), OM(e, t, r); } n(nge, "validate"); function age(e, t, r, i, s) { if (e != null && e.validate && !(e.optional && i == null) && (e.validate(t, r, i), s)) { var a; let o = i.type; if (o == null) return; (a = Cd.NODE_PARENT_VALIDATIONS[o]) == null || a.call(Cd.NODE_PARENT_VALIDATIONS, t, r, i); } } n(age, "validateInternal"); function IM(e, t, r, i) { i != null && i.validate && (i.optional && r == null || i.validate(e, t, r)); } n(IM, "validateField"); function OM(e, t, r) { var i; let s = r?.type; s != null && ((i = Cd.NODE_PARENT_VALIDATIONS[s]) == null || i.call(Cd.NODE_PARENT_VALIDATIONS, e, t, r)); } n(OM, "validateChild"); }); // ../node_modules/@babel/types/lib/builders/generated/lowercase.js var ME = E((C) => { "use strict"; Object.defineProperty(C, "__esModule", { value: !0 }); C.anyTypeAnnotation = qbe; C.argumentPlaceholder = mDe; C.arrayExpression = cge; C.arrayPattern = nbe; C.arrayTypeAnnotation = Ube; C.arrowFunctionExpression = abe; C.assignmentExpression = fge; C.assignmentPattern = sbe; C.awaitExpression = _be; C.bigIntLiteral = lge; C.binaryExpression = dge; C.bindExpression = yDe; C.blockStatement = yge; C.booleanLiteral = Mge; C.booleanLiteralTypeAnnotation = Vbe; C.booleanTypeAnnotation = $be; C.breakStatement = gge; C.callExpression = bge; C.catchClause = Dge; C.classAccessorProperty = Bbe; C.classBody = obe; C.classDeclaration = lbe; C.classExpression = ube; C.classImplements = Hbe; C.classMethod = xbe; C.classPrivateMethod = Mbe; C.classPrivateProperty = Nbe; C.classProperty = kbe; C.conditionalExpression = vge; C.continueStatement = xge; C.debuggerStatement = Ege; C.decimalLiteral = EDe; C.declareClass = Kbe; C.declareExportAllDeclaration = t2e; C.declareExportDeclaration = e2e; C.declareFunction = zbe; C.declareInterface = Jbe; C.declareModule = Xbe; C.declareModuleExports = Ybe; C.declareOpaqueType = Zbe; C.declareTypeAlias = Gbe; C.declareVariable = Qbe; C.declaredPredicate = r2e; C.decorator = gDe; C.directive = hge; C.directiveLiteral = mge; C.doExpression = bDe; C.doWhileStatement = Sge; C.emptyStatement = Tge; C.emptyTypeAnnotation = p2e; C.enumBooleanBody = U2e; C.enumBooleanMember = H2e; C.enumDeclaration = q2e; C.enumDefaultedMember = J2e; C.enumNumberBody = $2e; C.enumNumberMember = K2e; C.enumStringBody = V2e; C.enumStringMember = z2e; C.enumSymbolBody = W2e; C.existsTypeAnnotation = i2e; C.exportAllDeclaration = cbe; C.exportDefaultDeclaration = fbe; C.exportDefaultSpecifier = DDe; C.exportNamedDeclaration = dbe; C.exportNamespaceSpecifier = Fbe; C.exportSpecifier = pbe; C.expressionStatement = Cge; C.file = wge; C.forInStatement = Age; C.forOfStatement = hbe; C.forStatement = _ge; C.functionDeclaration = Pge; C.functionExpression = Fge; C.functionTypeAnnotation = s2e; C.functionTypeParam = n2e; C.genericTypeAnnotation = a2e; C.identifier = Ige; C.ifStatement = Oge; C.import = Pbe; C.importAttribute = jbe; C.importDeclaration = mbe; C.importDefaultSpecifier = ybe; C.importExpression = Dbe; C.importNamespaceSpecifier = gbe; C.importSpecifier = bbe; C.indexedAccessType = X2e; C.inferredPredicate = o2e; C.interfaceDeclaration = l2e; C.interfaceExtends = u2e; C.interfaceTypeAnnotation = c2e; C.interpreterDirective = pge; C.intersectionTypeAnnotation = f2e; C.jSXAttribute = C.jsxAttribute = G2e; C.jSXClosingElement = C.jsxClosingElement = Z2e; C.jSXClosingFragment = C.jsxClosingFragment = fDe; C.jSXElement = C.jsxElement = Q2e; C.jSXEmptyExpression = C.jsxEmptyExpression = eDe; C.jSXExpressionContainer = C.jsxExpressionContainer = tDe; C.jSXFragment = C.jsxFragment = lDe; C.jSXIdentifier = C.jsxIdentifier = iDe; C.jSXMemberExpression = C.jsxMemberExpression = sDe; C.jSXNamespacedName = C.jsxNamespacedName = nDe; C.jSXOpeningElement = C.jsxOpeningElement = aDe; C.jSXOpeningFragment = C.jsxOpeningFragment = cDe; C.jSXSpreadAttribute = C.jsxSpreadAttribute = oDe; C.jSXSpreadChild = C.jsxSpreadChild = rDe; C.jSXText = C.jsxText = uDe; C.labeledStatement = kge; C.logicalExpression = Rge; C.memberExpression = Lge; C.metaProperty = vbe; C.mixedTypeAnnotation = d2e; C.moduleExpression = SDe; C.newExpression = jge; C.noop = dDe; C.nullLiteral = Nge; C.nullLiteralTypeAnnotation = Wbe; C.nullableTypeAnnotation = h2e; C.numberLiteral = $ve; C.numberLiteralTypeAnnotation = m2e; C.numberTypeAnnotation = y2e; C.numericLiteral = kM; C.objectExpression = Uge; C.objectMethod = $ge; C.objectPattern = Ebe; C.objectProperty = Vge; C.objectTypeAnnotation = g2e; C.objectTypeCallProperty = D2e; C.objectTypeIndexer = v2e; C.objectTypeInternalSlot = b2e; C.objectTypeProperty = x2e; C.objectTypeSpreadProperty = E2e; C.opaqueType = S2e; C.optionalCallExpression = Obe; C.optionalIndexedAccessType = Y2e; C.optionalMemberExpression = Ibe; C.parenthesizedExpression = Kge; C.pipelineBareFunction = wDe; C.pipelinePrimaryTopicReference = ADe; C.pipelineTopicExpression = CDe; C.placeholder = pDe; C.privateName = Rbe; C.program = qge; C.qualifiedTypeIdentifier = T2e; C.recordExpression = vDe; C.regExpLiteral = BM; C.regexLiteral = Vve; C.restElement = NM; C.restProperty = Wve; C.returnStatement = Wge; C.sequenceExpression = Hge; C.spreadElement = MM; C.spreadProperty = Hve; C.staticBlock = Lbe; C.stringLiteral = Bge; C.stringLiteralTypeAnnotation = C2e; C.stringTypeAnnotation = w2e; C.super = Sbe; C.switchCase = zge; C.switchStatement = Jge; C.symbolTypeAnnotation = A2e; C.taggedTemplateExpression = Tbe; C.templateElement = Cbe; C.templateLiteral = wbe; C.thisExpression = Xge; C.thisTypeAnnotation = _2e; C.throwStatement = Yge; C.topicReference = TDe; C.tryStatement = Gge; C.tSAnyKeyword = C.tsAnyKeyword = LDe; C.tSArrayType = C.tsArrayType = sve; C.tSAsExpression = C.tsAsExpression = Tve; C.tSBigIntKeyword = C.tsBigIntKeyword = qDe; C.tSBooleanKeyword = C.tsBooleanKeyword = jDe; C.tSCallSignatureDeclaration = C.tsCallSignatureDeclaration = kDe; C.tSConditionalType = C.tsConditionalType = fve; C.tSConstructSignatureDeclaration = C.tsConstructSignatureDeclaration = BDe; C.tSConstructorType = C.tsConstructorType = QDe; C.tSDeclareFunction = C.tsDeclareFunction = FDe; C.tSDeclareMethod = C.tsDeclareMethod = IDe; C.tSEnumBody = C.tsEnumBody = Ave; C.tSEnumDeclaration = C.tsEnumDeclaration = _ve; C.tSEnumMember = C.tsEnumMember = Pve; C.tSExportAssignment = C.tsExportAssignment = Mve; C.tSExpressionWithTypeArguments = C.tsExpressionWithTypeArguments = Dve; C.tSExternalModuleReference = C.tsExternalModuleReference = Bve; C.tSFunctionType = C.tsFunctionType = ZDe; C.tSImportEqualsDeclaration = C.tsImportEqualsDeclaration = kve; C.tSImportType = C.tsImportType = Ove; C.tSIndexSignature = C.tsIndexSignature = RDe; C.tSIndexedAccessType = C.tsIndexedAccessType = mve; C.tSInferType = C.tsInferType = dve; C.tSInstantiationExpression = C.tsInstantiationExpression = Sve; C.tSInterfaceBody = C.tsInterfaceBody = xve; C.tSInterfaceDeclaration = C.tsInterfaceDeclaration = vve; C.tSIntersectionType = C.tsIntersectionType = cve; C.tSIntrinsicKeyword = C.tsIntrinsicKeyword = UDe; C.tSLiteralType = C.tsLiteralType = bve; C.tSMappedType = C.tsMappedType = yve; C.tSMethodSignature = C.tsMethodSignature = MDe; C.tSModuleBlock = C.tsModuleBlock = Ive; C.tSModuleDeclaration = C.tsModuleDeclaration = Fve; C.tSNamedTupleMember = C.tsNamedTupleMember = uve; C.tSNamespaceExportDeclaration = C.tsNamespaceExportDeclaration = Rve; C.tSNeverKeyword = C.tsNeverKeyword = $De; C.tSNonNullExpression = C.tsNonNullExpression = Nve; C.tSNullKeyword = C.tsNullKeyword = VDe; C.tSNumberKeyword = C.tsNumberKeyword = WDe; C.tSObjectKeyword = C.tsObjectKeyword = HDe; C.tSOptionalType = C.tsOptionalType = ave; C.tSParameterProperty = C.tsParameterProperty = PDe; C.tSParenthesizedType = C.tsParenthesizedType = pve; C.tSPropertySignature = C.tsPropertySignature = NDe; C.tSQualifiedName = C.tsQualifiedName = ODe; C.tSRestType = C.tsRestType = ove; C.tSSatisfiesExpression = C.tsSatisfiesExpression = Cve; C.tSStringKeyword = C.tsStringKeyword = KDe; C.tSSymbolKeyword = C.tsSymbolKeyword = zDe; C.tSTemplateLiteralType = C.tsTemplateLiteralType = gve; C.tSThisType = C.tsThisType = GDe; C.tSTupleType = C.tsTupleType = nve; C.tSTypeAliasDeclaration = C.tsTypeAliasDeclaration = Eve; C.tSTypeAnnotation = C.tsTypeAnnotation = Lve; C.tSTypeAssertion = C.tsTypeAssertion = wve; C.tSTypeLiteral = C.tsTypeLiteral = ive; C.tSTypeOperator = C.tsTypeOperator = hve; C.tSTypeParameter = C.tsTypeParameter = Uve; C.tSTypeParameterDeclaration = C.tsTypeParameterDeclaration = qve; C.tSTypeParameterInstantiation = C.tsTypeParameterInstantiation = jve; C.tSTypePredicate = C.tsTypePredicate = tve; C.tSTypeQuery = C.tsTypeQuery = rve; C.tSTypeReference = C.tsTypeReference = eve; C.tSUndefinedKeyword = C.tsUndefinedKeyword = JDe; C.tSUnionType = C.tsUnionType = lve; C.tSUnknownKeyword = C.tsUnknownKeyword = XDe; C.tSVoidKeyword = C.tsVoidKeyword = YDe; C.tupleExpression = xDe; C.tupleTypeAnnotation = P2e; C.typeAlias = I2e; C.typeAnnotation = O2e; C.typeCastExpression = k2e; C.typeParameter = B2e; C.typeParameterDeclaration = N2e; C.typeParameterInstantiation = M2e; C.typeofTypeAnnotation = F2e; C.unaryExpression = Zge; C.unionTypeAnnotation = R2e; C.updateExpression = Qge; C.v8IntrinsicIdentifier = hDe; C.variableDeclaration = ebe; C.variableDeclarator = tbe; C.variance = L2e; C.voidPattern = _De; C.voidTypeAnnotation = j2e; C.whileStatement = rbe; C.withStatement = ibe; C.yieldExpression = Abe; var oge = Pm(), Bm = Fl(), uge = Ys(), { validateInternal: S } = oge, { NODE_FIELDS: L } = uge; function lge(e) { typeof e == "bigint" && (e = e.toString()); let t = { type: "BigIntLiteral", value: e }, r = L.BigIntLiteral; return S(r.value, t, "value", e), t; } n(lge, "bigIntLiteral"); function cge(e = []) { let t = { type: "ArrayExpression", elements: e }, r = L.ArrayExpression; return S(r.elements, t, "elements", e, 1), t; } n(cge, "arrayExpression"); function fge(e, t, r) { let i = { type: "AssignmentExpression", operator: e, left: t, right: r }, s = L.AssignmentExpression; return S(s.operator, i, "operator", e), S(s.left, i, "left", t, 1), S(s.right, i, "right", r, 1), i; } n(fge, "assignmentExpression"); function dge(e, t, r) { let i = { type: "BinaryExpression", operator: e, left: t, right: r }, s = L.BinaryExpression; return S(s.operator, i, "operator", e), S(s.left, i, "left", t, 1), S(s.right, i, "right", r, 1), i; } n(dge, "binaryExpression"); function pge(e) { let t = { type: "InterpreterDirective", value: e }, r = L.InterpreterDirective; return S(r.value, t, "value", e), t; } n(pge, "interpreterDirective"); function hge(e) { let t = { type: "Directive", value: e }, r = L.Directive; return S(r.value, t, "value", e, 1), t; } n(hge, "directive"); function mge(e) { let t = { type: "DirectiveLiteral", value: e }, r = L.DirectiveLiteral; return S(r.value, t, "value", e), t; } n(mge, "directiveLiteral"); function yge(e, t = []) { let r = { type: "BlockStatement", body: e, directives: t }, i = L.BlockStatement; return S(i.body, r, "body", e, 1), S(i.directives, r, "directives", t, 1), r; } n(yge, "blockStatement"); function gge(e = null) { let t = { type: "BreakStatement", label: e }, r = L.BreakStatement; return S(r.label, t, "label", e, 1), t; } n(gge, "breakStatement"); function bge(e, t) { let r = { type: "CallExpression", callee: e, arguments: t }, i = L.CallExpression; return S(i.callee, r, "callee", e, 1), S(i.arguments, r, "arguments", t, 1), r; } n(bge, "callExpression"); function Dge(e = null, t) { let r = { type: "CatchClause", param: e, body: t }, i = L.CatchClause; return S(i.param, r, "param", e, 1), S(i.body, r, "body", t, 1), r; } n(Dge, "catchClause"); function vge(e, t, r) { let i = { type: "ConditionalExpression", test: e, consequent: t, alternate: r }, s = L.ConditionalExpression; return S(s.test, i, "test", e, 1), S(s.consequent, i, "consequent", t, 1), S(s.alternate, i, "alternate", r, 1), i; } n(vge, "conditionalExpression"); function xge(e = null) { let t = { type: "ContinueStatement", label: e }, r = L.ContinueStatement; return S(r.label, t, "label", e, 1), t; } n(xge, "continueStatement"); function Ege() { return { type: "DebuggerStatement" }; } n(Ege, "debuggerStatement"); function Sge(e, t) { let r = { type: "DoWhileStatement", test: e, body: t }, i = L.DoWhileStatement; return S(i.test, r, "test", e, 1), S(i.body, r, "body", t, 1), r; } n(Sge, "doWhileStatement"); function Tge() { return { type: "EmptyStatement" }; } n(Tge, "emptyStatement"); function Cge(e) { let t = { type: "ExpressionStatement", expression: e }, r = L.ExpressionStatement; return S(r.expression, t, "expression", e, 1), t; } n(Cge, "expressionStatement"); function wge(e, t = null, r = null) { let i = { type: "File", program: e, comments: t, tokens: r }, s = L.File; return S(s.program, i, "program", e, 1), S(s.comments, i, "comments", t, 1), S(s.tokens, i, "tokens", r), i; } n(wge, "file"); function Age(e, t, r) { let i = { type: "ForInStatement", left: e, right: t, body: r }, s = L.ForInStatement; return S(s.left, i, "left", e, 1), S(s.right, i, "right", t, 1), S(s.body, i, "body", r, 1), i; } n(Age, "forInStatement"); function _ge(e = null, t = null, r = null, i) { let s = { type: "ForStatement", init: e, test: t, update: r, body: i }, a = L.ForStatement; return S(a.init, s, "init", e, 1), S(a.test, s, "test", t, 1), S(a.update, s, "update", r, 1), S(a.body, s, "body", i, 1), s; } n(_ge, "forStatement"); function Pge(e = null, t, r, i = !1, s = !1) { let a = { type: "FunctionDeclaration", id: e, params: t, body: r, generator: i, async: s }, o = L.FunctionDeclaration; return S(o.id, a, "id", e, 1), S(o.params, a, "params", t, 1), S(o.body, a, "body", r, 1), S(o.generator, a, "generator", i), S(o.async, a, "async", s), a; } n(Pge, "functionDeclaration"); function Fge(e = null, t, r, i = !1, s = !1) { let a = { type: "FunctionExpression", id: e, params: t, body: r, generator: i, async: s }, o = L.FunctionExpression; return S(o.id, a, "id", e, 1), S(o.params, a, "params", t, 1), S(o.body, a, "body", r, 1), S(o.generator, a, "generator", i), S(o.async, a, "async", s), a; } n(Fge, "functionExpression"); function Ige(e) { let t = { type: "Identifier", name: e }, r = L.Identifier; return S(r.name, t, "name", e), t; } n(Ige, "identifier"); function Oge(e, t, r = null) { let i = { type: "IfStatement", test: e, consequent: t, alternate: r }, s = L.IfStatement; return S(s.test, i, "test", e, 1), S(s.consequent, i, "consequent", t, 1), S(s.alternate, i, "alternate", r, 1), i; } n(Oge, "ifStatement"); function kge(e, t) { let r = { type: "LabeledStatement", label: e, body: t }, i = L.LabeledStatement; return S(i.label, r, "label", e, 1), S(i.body, r, "body", t, 1), r; } n(kge, "labeledStatement"); function Bge(e) { let t = { type: "StringLiteral", value: e }, r = L.StringLiteral; return S(r.value, t, "value", e), t; } n(Bge, "stringLiteral"); function kM(e) { let t = { type: "NumericLiteral", value: e }, r = L.NumericLiteral; return S(r.value, t, "value", e), t; } n(kM, "numericLiteral"); function Nge() { return { type: "NullLiteral" }; } n(Nge, "nullLiteral"); function Mge(e) { let t = { type: "BooleanLiteral", value: e }, r = L.BooleanLiteral; return S(r.value, t, "value", e), t; } n(Mge, "booleanLiteral"); function BM(e, t = "") { let r = { type: "RegExpLiteral", pattern: e, flags: t }, i = L.RegExpLiteral; return S(i.pattern, r, "pattern", e), S(i.flags, r, "flags", t), r; } n(BM, "regExpLiteral"); function Rge(e, t, r) { let i = { type: "LogicalExpression", operator: e, left: t, right: r }, s = L.LogicalExpression; return S(s.operator, i, "operator", e), S(s.left, i, "left", t, 1), S(s.right, i, "right", r, 1), i; } n(Rge, "logicalExpression"); function Lge(e, t, r = !1, i = null) { let s = { type: "MemberExpression", object: e, property: t, computed: r, optional: i }, a = L.MemberExpression; return S(a.object, s, "object", e, 1), S(a.property, s, "property", t, 1), S(a.computed, s, "computed", r), S(a.optional, s, "optional", i), s; } n(Lge, "memberExpression"); function jge(e, t) { let r = { type: "NewExpression", callee: e, arguments: t }, i = L.NewExpression; return S(i.callee, r, "callee", e, 1), S(i.arguments, r, "arguments", t, 1), r; } n(jge, "newExpression"); function qge(e, t = [], r = "script", i = null) { let s = { type: "Program", body: e, directives: t, sourceType: r, interpreter: i }, a = L.Program; return S(a.body, s, "body", e, 1), S(a.directives, s, "directives", t, 1), S(a.sourceType, s, "sourceType", r), S(a.interpreter, s, "int\ erpreter", i, 1), s; } n(qge, "program"); function Uge(e) { let t = { type: "ObjectExpression", properties: e }, r = L.ObjectExpression; return S(r.properties, t, "properties", e, 1), t; } n(Uge, "objectExpression"); function $ge(e = "method", t, r, i, s = !1, a = !1, o = !1) { let u = { type: "ObjectMethod", kind: e, key: t, params: r, body: i, computed: s, generator: a, async: o }, l = L.ObjectMethod; return S(l.kind, u, "kind", e), S(l.key, u, "key", t, 1), S(l.params, u, "params", r, 1), S(l.body, u, "body", i, 1), S(l.computed, u, "\ computed", s), S(l.generator, u, "generator", a), S(l.async, u, "async", o), u; } n($ge, "objectMethod"); function Vge(e, t, r = !1, i = !1, s = null) { let a = { type: "ObjectProperty", key: e, value: t, computed: r, shorthand: i, decorators: s }, o = L.ObjectProperty; return S(o.key, a, "key", e, 1), S(o.value, a, "value", t, 1), S(o.computed, a, "computed", r), S(o.shorthand, a, "shorthand", i), S(o.decorators, a, "decorators", s, 1), a; } n(Vge, "objectProperty"); function NM(e) { let t = { type: "RestElement", argument: e }, r = L.RestElement; return S(r.argument, t, "argument", e, 1), t; } n(NM, "restElement"); function Wge(e = null) { let t = { type: "ReturnStatement", argument: e }, r = L.ReturnStatement; return S(r.argument, t, "argument", e, 1), t; } n(Wge, "returnStatement"); function Hge(e) { let t = { type: "SequenceExpression", expressions: e }, r = L.SequenceExpression; return S(r.expressions, t, "expressions", e, 1), t; } n(Hge, "sequenceExpression"); function Kge(e) { let t = { type: "ParenthesizedExpression", expression: e }, r = L.ParenthesizedExpression; return S(r.expression, t, "expression", e, 1), t; } n(Kge, "parenthesizedExpression"); function zge(e = null, t) { let r = { type: "SwitchCase", test: e, consequent: t }, i = L.SwitchCase; return S(i.test, r, "test", e, 1), S(i.consequent, r, "consequent", t, 1), r; } n(zge, "switchCase"); function Jge(e, t) { let r = { type: "SwitchStatement", discriminant: e, cases: t }, i = L.SwitchStatement; return S(i.discriminant, r, "discriminant", e, 1), S(i.cases, r, "cases", t, 1), r; } n(Jge, "switchStatement"); function Xge() { return { type: "ThisExpression" }; } n(Xge, "thisExpression"); function Yge(e) { let t = { type: "ThrowStatement", argument: e }, r = L.ThrowStatement; return S(r.argument, t, "argument", e, 1), t; } n(Yge, "throwStatement"); function Gge(e, t = null, r = null) { let i = { type: "TryStatement", block: e, handler: t, finalizer: r }, s = L.TryStatement; return S(s.block, i, "block", e, 1), S(s.handler, i, "handler", t, 1), S(s.finalizer, i, "finalizer", r, 1), i; } n(Gge, "tryStatement"); function Zge(e, t, r = !0) { let i = { type: "UnaryExpression", operator: e, argument: t, prefix: r }, s = L.UnaryExpression; return S(s.operator, i, "operator", e), S(s.argument, i, "argument", t, 1), S(s.prefix, i, "prefix", r), i; } n(Zge, "unaryExpression"); function Qge(e, t, r = !1) { let i = { type: "UpdateExpression", operator: e, argument: t, prefix: r }, s = L.UpdateExpression; return S(s.operator, i, "operator", e), S(s.argument, i, "argument", t, 1), S(s.prefix, i, "prefix", r), i; } n(Qge, "updateExpression"); function ebe(e, t) { let r = { type: "VariableDeclaration", kind: e, declarations: t }, i = L.VariableDeclaration; return S(i.kind, r, "kind", e), S(i.declarations, r, "declarations", t, 1), r; } n(ebe, "variableDeclaration"); function tbe(e, t = null) { let r = { type: "VariableDeclarator", id: e, init: t }, i = L.VariableDeclarator; return S(i.id, r, "id", e, 1), S(i.init, r, "init", t, 1), r; } n(tbe, "variableDeclarator"); function rbe(e, t) { let r = { type: "WhileStatement", test: e, body: t }, i = L.WhileStatement; return S(i.test, r, "test", e, 1), S(i.body, r, "body", t, 1), r; } n(rbe, "whileStatement"); function ibe(e, t) { let r = { type: "WithStatement", object: e, body: t }, i = L.WithStatement; return S(i.object, r, "object", e, 1), S(i.body, r, "body", t, 1), r; } n(ibe, "withStatement"); function sbe(e, t) { let r = { type: "AssignmentPattern", left: e, right: t }, i = L.AssignmentPattern; return S(i.left, r, "left", e, 1), S(i.right, r, "right", t, 1), r; } n(sbe, "assignmentPattern"); function nbe(e) { let t = { type: "ArrayPattern", elements: e }, r = L.ArrayPattern; return S(r.elements, t, "elements", e, 1), t; } n(nbe, "arrayPattern"); function abe(e, t, r = !1) { let i = { type: "ArrowFunctionExpression", params: e, body: t, async: r, expression: null }, s = L.ArrowFunctionExpression; return S(s.params, i, "params", e, 1), S(s.body, i, "body", t, 1), S(s.async, i, "async", r), i; } n(abe, "arrowFunctionExpression"); function obe(e) { let t = { type: "ClassBody", body: e }, r = L.ClassBody; return S(r.body, t, "body", e, 1), t; } n(obe, "classBody"); function ube(e = null, t = null, r, i = null) { let s = { type: "ClassExpression", id: e, superClass: t, body: r, decorators: i }, a = L.ClassExpression; return S(a.id, s, "id", e, 1), S(a.superClass, s, "superClass", t, 1), S(a.body, s, "body", r, 1), S(a.decorators, s, "decorators", i, 1), s; } n(ube, "classExpression"); function lbe(e = null, t = null, r, i = null) { let s = { type: "ClassDeclaration", id: e, superClass: t, body: r, decorators: i }, a = L.ClassDeclaration; return S(a.id, s, "id", e, 1), S(a.superClass, s, "superClass", t, 1), S(a.body, s, "body", r, 1), S(a.decorators, s, "decorators", i, 1), s; } n(lbe, "classDeclaration"); function cbe(e) { let t = { type: "ExportAllDeclaration", source: e }, r = L.ExportAllDeclaration; return S(r.source, t, "source", e, 1), t; } n(cbe, "exportAllDeclaration"); function fbe(e) { let t = { type: "ExportDefaultDeclaration", declaration: e }, r = L.ExportDefaultDeclaration; return S(r.declaration, t, "declaration", e, 1), t; } n(fbe, "exportDefaultDeclaration"); function dbe(e = null, t = [], r = null) { let i = { type: "ExportNamedDeclaration", declaration: e, specifiers: t, source: r }, s = L.ExportNamedDeclaration; return S(s.declaration, i, "declaration", e, 1), S(s.specifiers, i, "specifiers", t, 1), S(s.source, i, "source", r, 1), i; } n(dbe, "exportNamedDeclaration"); function pbe(e, t) { let r = { type: "ExportSpecifier", local: e, exported: t }, i = L.ExportSpecifier; return S(i.local, r, "local", e, 1), S(i.exported, r, "exported", t, 1), r; } n(pbe, "exportSpecifier"); function hbe(e, t, r, i = !1) { let s = { type: "ForOfStatement", left: e, right: t, body: r, await: i }, a = L.ForOfStatement; return S(a.left, s, "left", e, 1), S(a.right, s, "right", t, 1), S(a.body, s, "body", r, 1), S(a.await, s, "await", i), s; } n(hbe, "forOfStatement"); function mbe(e, t) { let r = { type: "ImportDeclaration", specifiers: e, source: t }, i = L.ImportDeclaration; return S(i.specifiers, r, "specifiers", e, 1), S(i.source, r, "source", t, 1), r; } n(mbe, "importDeclaration"); function ybe(e) { let t = { type: "ImportDefaultSpecifier", local: e }, r = L.ImportDefaultSpecifier; return S(r.local, t, "local", e, 1), t; } n(ybe, "importDefaultSpecifier"); function gbe(e) { let t = { type: "ImportNamespaceSpecifier", local: e }, r = L.ImportNamespaceSpecifier; return S(r.local, t, "local", e, 1), t; } n(gbe, "importNamespaceSpecifier"); function bbe(e, t) { let r = { type: "ImportSpecifier", local: e, imported: t }, i = L.ImportSpecifier; return S(i.local, r, "local", e, 1), S(i.imported, r, "imported", t, 1), r; } n(bbe, "importSpecifier"); function Dbe(e, t = null) { let r = { type: "ImportExpression", source: e, options: t }, i = L.ImportExpression; return S(i.source, r, "source", e, 1), S(i.options, r, "options", t, 1), r; } n(Dbe, "importExpression"); function vbe(e, t) { let r = { type: "MetaProperty", meta: e, property: t }, i = L.MetaProperty; return S(i.meta, r, "meta", e, 1), S(i.property, r, "property", t, 1), r; } n(vbe, "metaProperty"); function xbe(e = "method", t, r, i, s = !1, a = !1, o = !1, u = !1) { let l = { type: "ClassMethod", kind: e, key: t, params: r, body: i, computed: s, static: a, generator: o, async: u }, c = L.ClassMethod; return S(c.kind, l, "kind", e), S(c.key, l, "key", t, 1), S(c.params, l, "params", r, 1), S(c.body, l, "body", i, 1), S(c.computed, l, "\ computed", s), S(c.static, l, "static", a), S(c.generator, l, "generator", o), S(c.async, l, "async", u), l; } n(xbe, "classMethod"); function Ebe(e) { let t = { type: "ObjectPattern", properties: e }, r = L.ObjectPattern; return S(r.properties, t, "properties", e, 1), t; } n(Ebe, "objectPattern"); function MM(e) { let t = { type: "SpreadElement", argument: e }, r = L.SpreadElement; return S(r.argument, t, "argument", e, 1), t; } n(MM, "spreadElement"); function Sbe() { return { type: "Super" }; } n(Sbe, "_super"); function Tbe(e, t) { let r = { type: "TaggedTemplateExpression", tag: e, quasi: t }, i = L.TaggedTemplateExpression; return S(i.tag, r, "tag", e, 1), S(i.quasi, r, "quasi", t, 1), r; } n(Tbe, "taggedTemplateExpression"); function Cbe(e, t = !1) { let r = { type: "TemplateElement", value: e, tail: t }, i = L.TemplateElement; return S(i.value, r, "value", e), S(i.tail, r, "tail", t), r; } n(Cbe, "templateElement"); function wbe(e, t) { let r = { type: "TemplateLiteral", quasis: e, expressions: t }, i = L.TemplateLiteral; return S(i.quasis, r, "quasis", e, 1), S(i.expressions, r, "expressions", t, 1), r; } n(wbe, "templateLiteral"); function Abe(e = null, t = !1) { let r = { type: "YieldExpression", argument: e, delegate: t }, i = L.YieldExpression; return S(i.argument, r, "argument", e, 1), S(i.delegate, r, "delegate", t), r; } n(Abe, "yieldExpression"); function _be(e) { let t = { type: "AwaitExpression", argument: e }, r = L.AwaitExpression; return S(r.argument, t, "argument", e, 1), t; } n(_be, "awaitExpression"); function Pbe() { return { type: "Import" }; } n(Pbe, "_import"); function Fbe(e) { let t = { type: "ExportNamespaceSpecifier", exported: e }, r = L.ExportNamespaceSpecifier; return S(r.exported, t, "exported", e, 1), t; } n(Fbe, "exportNamespaceSpecifier"); function Ibe(e, t, r = !1, i) { let s = { type: "OptionalMemberExpression", object: e, property: t, computed: r, optional: i }, a = L.OptionalMemberExpression; return S(a.object, s, "object", e, 1), S(a.property, s, "property", t, 1), S(a.computed, s, "computed", r), S(a.optional, s, "optional", i), s; } n(Ibe, "optionalMemberExpression"); function Obe(e, t, r) { let i = { type: "OptionalCallExpression", callee: e, arguments: t, optional: r }, s = L.OptionalCallExpression; return S(s.callee, i, "callee", e, 1), S(s.arguments, i, "arguments", t, 1), S(s.optional, i, "optional", r), i; } n(Obe, "optionalCallExpression"); function kbe(e, t = null, r = null, i = null, s = !1, a = !1) { let o = { type: "ClassProperty", key: e, value: t, typeAnnotation: r, decorators: i, computed: s, static: a }, u = L.ClassProperty; return S(u.key, o, "key", e, 1), S(u.value, o, "value", t, 1), S(u.typeAnnotation, o, "typeAnnotation", r, 1), S(u.decorators, o, "decor\ ators", i, 1), S(u.computed, o, "computed", s), S(u.static, o, "static", a), o; } n(kbe, "classProperty"); function Bbe(e, t = null, r = null, i = null, s = !1, a = !1) { let o = { type: "ClassAccessorProperty", key: e, value: t, typeAnnotation: r, decorators: i, computed: s, static: a }, u = L.ClassAccessorProperty; return S(u.key, o, "key", e, 1), S(u.value, o, "value", t, 1), S(u.typeAnnotation, o, "typeAnnotation", r, 1), S(u.decorators, o, "decor\ ators", i, 1), S(u.computed, o, "computed", s), S(u.static, o, "static", a), o; } n(Bbe, "classAccessorProperty"); function Nbe(e, t = null, r = null, i = !1) { let s = { type: "ClassPrivateProperty", key: e, value: t, decorators: r, static: i }, a = L.ClassPrivateProperty; return S(a.key, s, "key", e, 1), S(a.value, s, "value", t, 1), S(a.decorators, s, "decorators", r, 1), S(a.static, s, "static", i), s; } n(Nbe, "classPrivateProperty"); function Mbe(e = "method", t, r, i, s = !1) { let a = { type: "ClassPrivateMethod", kind: e, key: t, params: r, body: i, static: s }, o = L.ClassPrivateMethod; return S(o.kind, a, "kind", e), S(o.key, a, "key", t, 1), S(o.params, a, "params", r, 1), S(o.body, a, "body", i, 1), S(o.static, a, "st\ atic", s), a; } n(Mbe, "classPrivateMethod"); function Rbe(e) { let t = { type: "PrivateName", id: e }, r = L.PrivateName; return S(r.id, t, "id", e, 1), t; } n(Rbe, "privateName"); function Lbe(e) { let t = { type: "StaticBlock", body: e }, r = L.StaticBlock; return S(r.body, t, "body", e, 1), t; } n(Lbe, "staticBlock"); function jbe(e, t) { let r = { type: "ImportAttribute", key: e, value: t }, i = L.ImportAttribute; return S(i.key, r, "key", e, 1), S(i.value, r, "value", t, 1), r; } n(jbe, "importAttribute"); function qbe() { return { type: "AnyTypeAnnotation" }; } n(qbe, "anyTypeAnnotation"); function Ube(e) { let t = { type: "ArrayTypeAnnotation", elementType: e }, r = L.ArrayTypeAnnotation; return S(r.elementType, t, "elementType", e, 1), t; } n(Ube, "arrayTypeAnnotation"); function $be() { return { type: "BooleanTypeAnnotation" }; } n($be, "booleanTypeAnnotation"); function Vbe(e) { let t = { type: "BooleanLiteralTypeAnnotation", value: e }, r = L.BooleanLiteralTypeAnnotation; return S(r.value, t, "value", e), t; } n(Vbe, "booleanLiteralTypeAnnotation"); function Wbe() { return { type: "NullLiteralTypeAnnotation" }; } n(Wbe, "nullLiteralTypeAnnotation"); function Hbe(e, t = null) { let r = { type: "ClassImplements", id: e, typeParameters: t }, i = L.ClassImplements; return S(i.id, r, "id", e, 1), S(i.typeParameters, r, "typeParameters", t, 1), r; } n(Hbe, "classImplements"); function Kbe(e, t = null, r = null, i) { let s = { type: "DeclareClass", id: e, typeParameters: t, extends: r, body: i }, a = L.DeclareClass; return S(a.id, s, "id", e, 1), S(a.typeParameters, s, "typeParameters", t, 1), S(a.extends, s, "extends", r, 1), S(a.body, s, "body", i, 1), s; } n(Kbe, "declareClass"); function zbe(e) { let t = { type: "DeclareFunction", id: e }, r = L.DeclareFunction; return S(r.id, t, "id", e, 1), t; } n(zbe, "declareFunction"); function Jbe(e, t = null, r = null, i) { let s = { type: "DeclareInterface", id: e, typeParameters: t, extends: r, body: i }, a = L.DeclareInterface; return S(a.id, s, "id", e, 1), S(a.typeParameters, s, "typeParameters", t, 1), S(a.extends, s, "extends", r, 1), S(a.body, s, "body", i, 1), s; } n(Jbe, "declareInterface"); function Xbe(e, t, r = null) { let i = { type: "DeclareModule", id: e, body: t, kind: r }, s = L.DeclareModule; return S(s.id, i, "id", e, 1), S(s.body, i, "body", t, 1), S(s.kind, i, "kind", r), i; } n(Xbe, "declareModule"); function Ybe(e) { let t = { type: "DeclareModuleExports", typeAnnotation: e }, r = L.DeclareModuleExports; return S(r.typeAnnotation, t, "typeAnnotation", e, 1), t; } n(Ybe, "declareModuleExports"); function Gbe(e, t = null, r) { let i = { type: "DeclareTypeAlias", id: e, typeParameters: t, right: r }, s = L.DeclareTypeAlias; return S(s.id, i, "id", e, 1), S(s.typeParameters, i, "typeParameters", t, 1), S(s.right, i, "right", r, 1), i; } n(Gbe, "declareTypeAlias"); function Zbe(e, t = null, r = null) { let i = { type: "DeclareOpaqueType", id: e, typeParameters: t, supertype: r }, s = L.DeclareOpaqueType; return S(s.id, i, "id", e, 1), S(s.typeParameters, i, "typeParameters", t, 1), S(s.supertype, i, "supertype", r, 1), i; } n(Zbe, "declareOpaqueType"); function Qbe(e) { let t = { type: "DeclareVariable", id: e }, r = L.DeclareVariable; return S(r.id, t, "id", e, 1), t; } n(Qbe, "declareVariable"); function e2e(e = null, t = null, r = null, i = null) { let s = { type: "DeclareExportDeclaration", declaration: e, specifiers: t, source: r, attributes: i }, a = L.DeclareExportDeclaration; return S(a.declaration, s, "declaration", e, 1), S(a.specifiers, s, "specifiers", t, 1), S(a.source, s, "source", r, 1), S(a.attributes, s, "attributes", i, 1), s; } n(e2e, "declareExportDeclaration"); function t2e(e, t = null) { let r = { type: "DeclareExportAllDeclaration", source: e, attributes: t }, i = L.DeclareExportAllDeclaration; return S(i.source, r, "source", e, 1), S(i.attributes, r, "attributes", t, 1), r; } n(t2e, "declareExportAllDeclaration"); function r2e(e) { let t = { type: "DeclaredPredicate", value: e }, r = L.DeclaredPredicate; return S(r.value, t, "value", e, 1), t; } n(r2e, "declaredPredicate"); function i2e() { return { type: "ExistsTypeAnnotation" }; } n(i2e, "existsTypeAnnotation"); function s2e(e = null, t, r = null, i) { let s = { type: "FunctionTypeAnnotation", typeParameters: e, params: t, rest: r, returnType: i }, a = L.FunctionTypeAnnotation; return S(a.typeParameters, s, "typeParameters", e, 1), S(a.params, s, "params", t, 1), S(a.rest, s, "rest", r, 1), S(a.returnType, s, "r\ eturnType", i, 1), s; } n(s2e, "functionTypeAnnotation"); function n2e(e = null, t) { let r = { type: "FunctionTypeParam", name: e, typeAnnotation: t }, i = L.FunctionTypeParam; return S(i.name, r, "name", e, 1), S(i.typeAnnotation, r, "typeAnnotation", t, 1), r; } n(n2e, "functionTypeParam"); function a2e(e, t = null) { let r = { type: "GenericTypeAnnotation", id: e, typeParameters: t }, i = L.GenericTypeAnnotation; return S(i.id, r, "id", e, 1), S(i.typeParameters, r, "typeParameters", t, 1), r; } n(a2e, "genericTypeAnnotation"); function o2e() { return { type: "InferredPredicate" }; } n(o2e, "inferredPredicate"); function u2e(e, t = null) { let r = { type: "InterfaceExtends", id: e, typeParameters: t }, i = L.InterfaceExtends; return S(i.id, r, "id", e, 1), S(i.typeParameters, r, "typeParameters", t, 1), r; } n(u2e, "interfaceExtends"); function l2e(e, t = null, r = null, i) { let s = { type: "InterfaceDeclaration", id: e, typeParameters: t, extends: r, body: i }, a = L.InterfaceDeclaration; return S(a.id, s, "id", e, 1), S(a.typeParameters, s, "typeParameters", t, 1), S(a.extends, s, "extends", r, 1), S(a.body, s, "body", i, 1), s; } n(l2e, "interfaceDeclaration"); function c2e(e = null, t) { let r = { type: "InterfaceTypeAnnotation", extends: e, body: t }, i = L.InterfaceTypeAnnotation; return S(i.extends, r, "extends", e, 1), S(i.body, r, "body", t, 1), r; } n(c2e, "interfaceTypeAnnotation"); function f2e(e) { let t = { type: "IntersectionTypeAnnotation", types: e }, r = L.IntersectionTypeAnnotation; return S(r.types, t, "types", e, 1), t; } n(f2e, "intersectionTypeAnnotation"); function d2e() { return { type: "MixedTypeAnnotation" }; } n(d2e, "mixedTypeAnnotation"); function p2e() { return { type: "EmptyTypeAnnotation" }; } n(p2e, "emptyTypeAnnotation"); function h2e(e) { let t = { type: "NullableTypeAnnotation", typeAnnotation: e }, r = L.NullableTypeAnnotation; return S(r.typeAnnotation, t, "typeAnnotation", e, 1), t; } n(h2e, "nullableTypeAnnotation"); function m2e(e) { let t = { type: "NumberLiteralTypeAnnotation", value: e }, r = L.NumberLiteralTypeAnnotation; return S(r.value, t, "value", e), t; } n(m2e, "numberLiteralTypeAnnotation"); function y2e() { return { type: "NumberTypeAnnotation" }; } n(y2e, "numberTypeAnnotation"); function g2e(e, t = [], r = [], i = [], s = !1) { let a = { type: "ObjectTypeAnnotation", properties: e, indexers: t, callProperties: r, internalSlots: i, exact: s }, o = L.ObjectTypeAnnotation; return S(o.properties, a, "properties", e, 1), S(o.indexers, a, "indexers", t, 1), S(o.callProperties, a, "callProperties", r, 1), S(o.internalSlots, a, "internalSlots", i, 1), S(o.exact, a, "exact", s), a; } n(g2e, "objectTypeAnnotation"); function b2e(e, t, r, i, s) { let a = { type: "ObjectTypeInternalSlot", id: e, value: t, optional: r, static: i, method: s }, o = L.ObjectTypeInternalSlot; return S(o.id, a, "id", e, 1), S(o.value, a, "value", t, 1), S(o.optional, a, "optional", r), S(o.static, a, "static", i), S(o.method, a, "method", s), a; } n(b2e, "objectTypeInternalSlot"); function D2e(e) { let t = { type: "ObjectTypeCallProperty", value: e, static: null }, r = L.ObjectTypeCallProperty; return S(r.value, t, "value", e, 1), t; } n(D2e, "objectTypeCallProperty"); function v2e(e = null, t, r, i = null) { let s = { type: "ObjectTypeIndexer", id: e, key: t, value: r, variance: i, static: null }, a = L.ObjectTypeIndexer; return S(a.id, s, "id", e, 1), S(a.key, s, "key", t, 1), S(a.value, s, "value", r, 1), S(a.variance, s, "variance", i, 1), s; } n(v2e, "objectTypeIndexer"); function x2e(e, t, r = null) { let i = { type: "ObjectTypeProperty", key: e, value: t, variance: r, kind: null, method: null, optional: null, proto: null, static: null }, s = L.ObjectTypeProperty; return S(s.key, i, "key", e, 1), S(s.value, i, "value", t, 1), S(s.variance, i, "variance", r, 1), i; } n(x2e, "objectTypeProperty"); function E2e(e) { let t = { type: "ObjectTypeSpreadProperty", argument: e }, r = L.ObjectTypeSpreadProperty; return S(r.argument, t, "argument", e, 1), t; } n(E2e, "objectTypeSpreadProperty"); function S2e(e, t = null, r = null, i) { let s = { type: "OpaqueType", id: e, typeParameters: t, supertype: r, impltype: i }, a = L.OpaqueType; return S(a.id, s, "id", e, 1), S(a.typeParameters, s, "typeParameters", t, 1), S(a.supertype, s, "supertype", r, 1), S(a.impltype, s, "i\ mpltype", i, 1), s; } n(S2e, "opaqueType"); function T2e(e, t) { let r = { type: "QualifiedTypeIdentifier", id: e, qualification: t }, i = L.QualifiedTypeIdentifier; return S(i.id, r, "id", e, 1), S(i.qualification, r, "qualification", t, 1), r; } n(T2e, "qualifiedTypeIdentifier"); function C2e(e) { let t = { type: "StringLiteralTypeAnnotation", value: e }, r = L.StringLiteralTypeAnnotation; return S(r.value, t, "value", e), t; } n(C2e, "stringLiteralTypeAnnotation"); function w2e() { return { type: "StringTypeAnnotation" }; } n(w2e, "stringTypeAnnotation"); function A2e() { return { type: "SymbolTypeAnnotation" }; } n(A2e, "symbolTypeAnnotation"); function _2e() { return { type: "ThisTypeAnnotation" }; } n(_2e, "thisTypeAnnotation"); function P2e(e) { let t = { type: "TupleTypeAnnotation", types: e }, r = L.TupleTypeAnnotation; return S(r.types, t, "types", e, 1), t; } n(P2e, "tupleTypeAnnotation"); function F2e(e) { let t = { type: "TypeofTypeAnnotation", argument: e }, r = L.TypeofTypeAnnotation; return S(r.argument, t, "argument", e, 1), t; } n(F2e, "typeofTypeAnnotation"); function I2e(e, t = null, r) { let i = { type: "TypeAlias", id: e, typeParameters: t, right: r }, s = L.TypeAlias; return S(s.id, i, "id", e, 1), S(s.typeParameters, i, "typeParameters", t, 1), S(s.right, i, "right", r, 1), i; } n(I2e, "typeAlias"); function O2e(e) { let t = { type: "TypeAnnotation", typeAnnotation: e }, r = L.TypeAnnotation; return S(r.typeAnnotation, t, "typeAnnotation", e, 1), t; } n(O2e, "typeAnnotation"); function k2e(e, t) { let r = { type: "TypeCastExpression", expression: e, typeAnnotation: t }, i = L.TypeCastExpression; return S(i.expression, r, "expression", e, 1), S(i.typeAnnotation, r, "typeAnnotation", t, 1), r; } n(k2e, "typeCastExpression"); function B2e(e = null, t = null, r = null) { let i = { type: "TypeParameter", bound: e, default: t, variance: r, name: null }, s = L.TypeParameter; return S(s.bound, i, "bound", e, 1), S(s.default, i, "default", t, 1), S(s.variance, i, "variance", r, 1), i; } n(B2e, "typeParameter"); function N2e(e) { let t = { type: "TypeParameterDeclaration", params: e }, r = L.TypeParameterDeclaration; return S(r.params, t, "params", e, 1), t; } n(N2e, "typeParameterDeclaration"); function M2e(e) { let t = { type: "TypeParameterInstantiation", params: e }, r = L.TypeParameterInstantiation; return S(r.params, t, "params", e, 1), t; } n(M2e, "typeParameterInstantiation"); function R2e(e) { let t = { type: "UnionTypeAnnotation", types: e }, r = L.UnionTypeAnnotation; return S(r.types, t, "types", e, 1), t; } n(R2e, "unionTypeAnnotation"); function L2e(e) { let t = { type: "Variance", kind: e }, r = L.Variance; return S(r.kind, t, "kind", e), t; } n(L2e, "variance"); function j2e() { return { type: "VoidTypeAnnotation" }; } n(j2e, "voidTypeAnnotation"); function q2e(e, t) { let r = { type: "EnumDeclaration", id: e, body: t }, i = L.EnumDeclaration; return S(i.id, r, "id", e, 1), S(i.body, r, "body", t, 1), r; } n(q2e, "enumDeclaration"); function U2e(e) { let t = { type: "EnumBooleanBody", members: e, explicitType: null, hasUnknownMembers: null }, r = L.EnumBooleanBody; return S(r.members, t, "members", e, 1), t; } n(U2e, "enumBooleanBody"); function $2e(e) { let t = { type: "EnumNumberBody", members: e, explicitType: null, hasUnknownMembers: null }, r = L.EnumNumberBody; return S(r.members, t, "members", e, 1), t; } n($2e, "enumNumberBody"); function V2e(e) { let t = { type: "EnumStringBody", members: e, explicitType: null, hasUnknownMembers: null }, r = L.EnumStringBody; return S(r.members, t, "members", e, 1), t; } n(V2e, "enumStringBody"); function W2e(e) { let t = { type: "EnumSymbolBody", members: e, hasUnknownMembers: null }, r = L.EnumSymbolBody; return S(r.members, t, "members", e, 1), t; } n(W2e, "enumSymbolBody"); function H2e(e) { let t = { type: "EnumBooleanMember", id: e, init: null }, r = L.EnumBooleanMember; return S(r.id, t, "id", e, 1), t; } n(H2e, "enumBooleanMember"); function K2e(e, t) { let r = { type: "EnumNumberMember", id: e, init: t }, i = L.EnumNumberMember; return S(i.id, r, "id", e, 1), S(i.init, r, "init", t, 1), r; } n(K2e, "enumNumberMember"); function z2e(e, t) { let r = { type: "EnumStringMember", id: e, init: t }, i = L.EnumStringMember; return S(i.id, r, "id", e, 1), S(i.init, r, "init", t, 1), r; } n(z2e, "enumStringMember"); function J2e(e) { let t = { type: "EnumDefaultedMember", id: e }, r = L.EnumDefaultedMember; return S(r.id, t, "id", e, 1), t; } n(J2e, "enumDefaultedMember"); function X2e(e, t) { let r = { type: "IndexedAccessType", objectType: e, indexType: t }, i = L.IndexedAccessType; return S(i.objectType, r, "objectType", e, 1), S(i.indexType, r, "indexType", t, 1), r; } n(X2e, "indexedAccessType"); function Y2e(e, t) { let r = { type: "OptionalIndexedAccessType", objectType: e, indexType: t, optional: null }, i = L.OptionalIndexedAccessType; return S(i.objectType, r, "objectType", e, 1), S(i.indexType, r, "indexType", t, 1), r; } n(Y2e, "optionalIndexedAccessType"); function G2e(e, t = null) { let r = { type: "JSXAttribute", name: e, value: t }, i = L.JSXAttribute; return S(i.name, r, "name", e, 1), S(i.value, r, "value", t, 1), r; } n(G2e, "jsxAttribute"); function Z2e(e) { let t = { type: "JSXClosingElement", name: e }, r = L.JSXClosingElement; return S(r.name, t, "name", e, 1), t; } n(Z2e, "jsxClosingElement"); function Q2e(e, t = null, r, i = null) { let s = { type: "JSXElement", openingElement: e, closingElement: t, children: r, selfClosing: i }, a = L.JSXElement; return S(a.openingElement, s, "openingElement", e, 1), S(a.closingElement, s, "closingElement", t, 1), S(a.children, s, "children", r, 1), S(a.selfClosing, s, "selfClosing", i), s; } n(Q2e, "jsxElement"); function eDe() { return { type: "JSXEmptyExpression" }; } n(eDe, "jsxEmptyExpression"); function tDe(e) { let t = { type: "JSXExpressionContainer", expression: e }, r = L.JSXExpressionContainer; return S(r.expression, t, "expression", e, 1), t; } n(tDe, "jsxExpressionContainer"); function rDe(e) { let t = { type: "JSXSpreadChild", expression: e }, r = L.JSXSpreadChild; return S(r.expression, t, "expression", e, 1), t; } n(rDe, "jsxSpreadChild"); function iDe(e) { let t = { type: "JSXIdentifier", name: e }, r = L.JSXIdentifier; return S(r.name, t, "name", e), t; } n(iDe, "jsxIdentifier"); function sDe(e, t) { let r = { type: "JSXMemberExpression", object: e, property: t }, i = L.JSXMemberExpression; return S(i.object, r, "object", e, 1), S(i.property, r, "property", t, 1), r; } n(sDe, "jsxMemberExpression"); function nDe(e, t) { let r = { type: "JSXNamespacedName", namespace: e, name: t }, i = L.JSXNamespacedName; return S(i.namespace, r, "namespace", e, 1), S(i.name, r, "name", t, 1), r; } n(nDe, "jsxNamespacedName"); function aDe(e, t, r = !1) { let i = { type: "JSXOpeningElement", name: e, attributes: t, selfClosing: r }, s = L.JSXOpeningElement; return S(s.name, i, "name", e, 1), S(s.attributes, i, "attributes", t, 1), S(s.selfClosing, i, "selfClosing", r), i; } n(aDe, "jsxOpeningElement"); function oDe(e) { let t = { type: "JSXSpreadAttribute", argument: e }, r = L.JSXSpreadAttribute; return S(r.argument, t, "argument", e, 1), t; } n(oDe, "jsxSpreadAttribute"); function uDe(e) { let t = { type: "JSXText", value: e }, r = L.JSXText; return S(r.value, t, "value", e), t; } n(uDe, "jsxText"); function lDe(e, t, r) { let i = { type: "JSXFragment", openingFragment: e, closingFragment: t, children: r }, s = L.JSXFragment; return S(s.openingFragment, i, "openingFragment", e, 1), S(s.closingFragment, i, "closingFragment", t, 1), S(s.children, i, "children", r, 1), i; } n(lDe, "jsxFragment"); function cDe() { return { type: "JSXOpeningFragment" }; } n(cDe, "jsxOpeningFragment"); function fDe() { return { type: "JSXClosingFragment" }; } n(fDe, "jsxClosingFragment"); function dDe() { return { type: "Noop" }; } n(dDe, "noop"); function pDe(e, t) { let r = { type: "Placeholder", expectedNode: e, name: t }, i = L.Placeholder; return S(i.expectedNode, r, "expectedNode", e), S(i.name, r, "name", t, 1), r; } n(pDe, "placeholder"); function hDe(e) { let t = { type: "V8IntrinsicIdentifier", name: e }, r = L.V8IntrinsicIdentifier; return S(r.name, t, "name", e), t; } n(hDe, "v8IntrinsicIdentifier"); function mDe() { return { type: "ArgumentPlaceholder" }; } n(mDe, "argumentPlaceholder"); function yDe(e, t) { let r = { type: "BindExpression", object: e, callee: t }, i = L.BindExpression; return S(i.object, r, "object", e, 1), S(i.callee, r, "callee", t, 1), r; } n(yDe, "bindExpression"); function gDe(e) { let t = { type: "Decorator", expression: e }, r = L.Decorator; return S(r.expression, t, "expression", e, 1), t; } n(gDe, "decorator"); function bDe(e, t = !1) { let r = { type: "DoExpression", body: e, async: t }, i = L.DoExpression; return S(i.body, r, "body", e, 1), S(i.async, r, "async", t), r; } n(bDe, "doExpression"); function DDe(e) { let t = { type: "ExportDefaultSpecifier", exported: e }, r = L.ExportDefaultSpecifier; return S(r.exported, t, "exported", e, 1), t; } n(DDe, "exportDefaultSpecifier"); function vDe(e) { let t = { type: "RecordExpression", properties: e }, r = L.RecordExpression; return S(r.properties, t, "properties", e, 1), t; } n(vDe, "recordExpression"); function xDe(e = []) { let t = { type: "TupleExpression", elements: e }, r = L.TupleExpression; return S(r.elements, t, "elements", e, 1), t; } n(xDe, "tupleExpression"); function EDe(e) { let t = { type: "DecimalLiteral", value: e }, r = L.DecimalLiteral; return S(r.value, t, "value", e), t; } n(EDe, "decimalLiteral"); function SDe(e) { let t = { type: "ModuleExpression", body: e }, r = L.ModuleExpression; return S(r.body, t, "body", e, 1), t; } n(SDe, "moduleExpression"); function TDe() { return { type: "TopicReference" }; } n(TDe, "topicReference"); function CDe(e) { let t = { type: "PipelineTopicExpression", expression: e }, r = L.PipelineTopicExpression; return S(r.expression, t, "expression", e, 1), t; } n(CDe, "pipelineTopicExpression"); function wDe(e) { let t = { type: "PipelineBareFunction", callee: e }, r = L.PipelineBareFunction; return S(r.callee, t, "callee", e, 1), t; } n(wDe, "pipelineBareFunction"); function ADe() { return { type: "PipelinePrimaryTopicReference" }; } n(ADe, "pipelinePrimaryTopicReference"); function _De() { return { type: "VoidPattern" }; } n(_De, "voidPattern"); function PDe(e) { let t = { type: "TSParameterProperty", parameter: e }, r = L.TSParameterProperty; return S(r.parameter, t, "parameter", e, 1), t; } n(PDe, "tsParameterProperty"); function FDe(e = null, t = null, r, i = null) { let s = { type: "TSDeclareFunction", id: e, typeParameters: t, params: r, returnType: i }, a = L.TSDeclareFunction; return S(a.id, s, "id", e, 1), S(a.typeParameters, s, "typeParameters", t, 1), S(a.params, s, "params", r, 1), S(a.returnType, s, "retur\ nType", i, 1), s; } n(FDe, "tsDeclareFunction"); function IDe(e = null, t, r = null, i, s = null) { let a = { type: "TSDeclareMethod", decorators: e, key: t, typeParameters: r, params: i, returnType: s }, o = L.TSDeclareMethod; return S(o.decorators, a, "decorators", e, 1), S(o.key, a, "key", t, 1), S(o.typeParameters, a, "typeParameters", r, 1), S(o.params, a, "\ params", i, 1), S(o.returnType, a, "returnType", s, 1), a; } n(IDe, "tsDeclareMethod"); function ODe(e, t) { let r = { type: "TSQualifiedName", left: e, right: t }, i = L.TSQualifiedName; return S(i.left, r, "left", e, 1), S(i.right, r, "right", t, 1), r; } n(ODe, "tsQualifiedName"); function kDe(e = null, t, r = null) { let i = { type: "TSCallSignatureDeclaration", typeParameters: e, parameters: t, typeAnnotation: r }, s = L.TSCallSignatureDeclaration; return S(s.typeParameters, i, "typeParameters", e, 1), S(s.parameters, i, "parameters", t, 1), S(s.typeAnnotation, i, "typeAnnotation", r, 1), i; } n(kDe, "tsCallSignatureDeclaration"); function BDe(e = null, t, r = null) { let i = { type: "TSConstructSignatureDeclaration", typeParameters: e, parameters: t, typeAnnotation: r }, s = L.TSConstructSignatureDeclaration; return S(s.typeParameters, i, "typeParameters", e, 1), S(s.parameters, i, "parameters", t, 1), S(s.typeAnnotation, i, "typeAnnotation", r, 1), i; } n(BDe, "tsConstructSignatureDeclaration"); function NDe(e, t = null) { let r = { type: "TSPropertySignature", key: e, typeAnnotation: t }, i = L.TSPropertySignature; return S(i.key, r, "key", e, 1), S(i.typeAnnotation, r, "typeAnnotation", t, 1), r; } n(NDe, "tsPropertySignature"); function MDe(e, t = null, r, i = null) { let s = { type: "TSMethodSignature", key: e, typeParameters: t, parameters: r, typeAnnotation: i, kind: null }, a = L.TSMethodSignature; return S(a.key, s, "key", e, 1), S(a.typeParameters, s, "typeParameters", t, 1), S(a.parameters, s, "parameters", r, 1), S(a.typeAnnotation, s, "typeAnnotation", i, 1), s; } n(MDe, "tsMethodSignature"); function RDe(e, t = null) { let r = { type: "TSIndexSignature", parameters: e, typeAnnotation: t }, i = L.TSIndexSignature; return S(i.parameters, r, "parameters", e, 1), S(i.typeAnnotation, r, "typeAnnotation", t, 1), r; } n(RDe, "tsIndexSignature"); function LDe() { return { type: "TSAnyKeyword" }; } n(LDe, "tsAnyKeyword"); function jDe() { return { type: "TSBooleanKeyword" }; } n(jDe, "tsBooleanKeyword"); function qDe() { return { type: "TSBigIntKeyword" }; } n(qDe, "tsBigIntKeyword"); function UDe() { return { type: "TSIntrinsicKeyword" }; } n(UDe, "tsIntrinsicKeyword"); function $De() { return { type: "TSNeverKeyword" }; } n($De, "tsNeverKeyword"); function VDe() { return { type: "TSNullKeyword" }; } n(VDe, "tsNullKeyword"); function WDe() { return { type: "TSNumberKeyword" }; } n(WDe, "tsNumberKeyword"); function HDe() { return { type: "TSObjectKeyword" }; } n(HDe, "tsObjectKeyword"); function KDe() { return { type: "TSStringKeyword" }; } n(KDe, "tsStringKeyword"); function zDe() { return { type: "TSSymbolKeyword" }; } n(zDe, "tsSymbolKeyword"); function JDe() { return { type: "TSUndefinedKeyword" }; } n(JDe, "tsUndefinedKeyword"); function XDe() { return { type: "TSUnknownKeyword" }; } n(XDe, "tsUnknownKeyword"); function YDe() { return { type: "TSVoidKeyword" }; } n(YDe, "tsVoidKeyword"); function GDe() { return { type: "TSThisType" }; } n(GDe, "tsThisType"); function ZDe(e = null, t, r = null) { let i = { type: "TSFunctionType", typeParameters: e, parameters: t, typeAnnotation: r }, s = L.TSFunctionType; return S(s.typeParameters, i, "typeParameters", e, 1), S(s.parameters, i, "parameters", t, 1), S(s.typeAnnotation, i, "typeAnnotation", r, 1), i; } n(ZDe, "tsFunctionType"); function QDe(e = null, t, r = null) { let i = { type: "TSConstructorType", typeParameters: e, parameters: t, typeAnnotation: r }, s = L.TSConstructorType; return S(s.typeParameters, i, "typeParameters", e, 1), S(s.parameters, i, "parameters", t, 1), S(s.typeAnnotation, i, "typeAnnotation", r, 1), i; } n(QDe, "tsConstructorType"); function eve(e, t = null) { let r = { type: "TSTypeReference", typeName: e, typeParameters: t }, i = L.TSTypeReference; return S(i.typeName, r, "typeName", e, 1), S(i.typeParameters, r, "typeParameters", t, 1), r; } n(eve, "tsTypeReference"); function tve(e, t = null, r = null) { let i = { type: "TSTypePredicate", parameterName: e, typeAnnotation: t, asserts: r }, s = L.TSTypePredicate; return S(s.parameterName, i, "parameterName", e, 1), S(s.typeAnnotation, i, "typeAnnotation", t, 1), S(s.asserts, i, "asserts", r), i; } n(tve, "tsTypePredicate"); function rve(e, t = null) { let r = { type: "TSTypeQuery", exprName: e, typeParameters: t }, i = L.TSTypeQuery; return S(i.exprName, r, "exprName", e, 1), S(i.typeParameters, r, "typeParameters", t, 1), r; } n(rve, "tsTypeQuery"); function ive(e) { let t = { type: "TSTypeLiteral", members: e }, r = L.TSTypeLiteral; return S(r.members, t, "members", e, 1), t; } n(ive, "tsTypeLiteral"); function sve(e) { let t = { type: "TSArrayType", elementType: e }, r = L.TSArrayType; return S(r.elementType, t, "elementType", e, 1), t; } n(sve, "tsArrayType"); function nve(e) { let t = { type: "TSTupleType", elementTypes: e }, r = L.TSTupleType; return S(r.elementTypes, t, "elementTypes", e, 1), t; } n(nve, "tsTupleType"); function ave(e) { let t = { type: "TSOptionalType", typeAnnotation: e }, r = L.TSOptionalType; return S(r.typeAnnotation, t, "typeAnnotation", e, 1), t; } n(ave, "tsOptionalType"); function ove(e) { let t = { type: "TSRestType", typeAnnotation: e }, r = L.TSRestType; return S(r.typeAnnotation, t, "typeAnnotation", e, 1), t; } n(ove, "tsRestType"); function uve(e, t, r = !1) { let i = { type: "TSNamedTupleMember", label: e, elementType: t, optional: r }, s = L.TSNamedTupleMember; return S(s.label, i, "label", e, 1), S(s.elementType, i, "elementType", t, 1), S(s.optional, i, "optional", r), i; } n(uve, "tsNamedTupleMember"); function lve(e) { let t = { type: "TSUnionType", types: e }, r = L.TSUnionType; return S(r.types, t, "types", e, 1), t; } n(lve, "tsUnionType"); function cve(e) { let t = { type: "TSIntersectionType", types: e }, r = L.TSIntersectionType; return S(r.types, t, "types", e, 1), t; } n(cve, "tsIntersectionType"); function fve(e, t, r, i) { let s = { type: "TSConditionalType", checkType: e, extendsType: t, trueType: r, falseType: i }, a = L.TSConditionalType; return S(a.checkType, s, "checkType", e, 1), S(a.extendsType, s, "extendsType", t, 1), S(a.trueType, s, "trueType", r, 1), S(a.falseType, s, "falseType", i, 1), s; } n(fve, "tsConditionalType"); function dve(e) { let t = { type: "TSInferType", typeParameter: e }, r = L.TSInferType; return S(r.typeParameter, t, "typeParameter", e, 1), t; } n(dve, "tsInferType"); function pve(e) { let t = { type: "TSParenthesizedType", typeAnnotation: e }, r = L.TSParenthesizedType; return S(r.typeAnnotation, t, "typeAnnotation", e, 1), t; } n(pve, "tsParenthesizedType"); function hve(e, t = "keyof") { let r = { type: "TSTypeOperator", typeAnnotation: e, operator: t }, i = L.TSTypeOperator; return S(i.typeAnnotation, r, "typeAnnotation", e, 1), S(i.operator, r, "operator", t), r; } n(hve, "tsTypeOperator"); function mve(e, t) { let r = { type: "TSIndexedAccessType", objectType: e, indexType: t }, i = L.TSIndexedAccessType; return S(i.objectType, r, "objectType", e, 1), S(i.indexType, r, "indexType", t, 1), r; } n(mve, "tsIndexedAccessType"); function yve(e, t = null, r = null) { let i = { type: "TSMappedType", typeParameter: e, typeAnnotation: t, nameType: r }, s = L.TSMappedType; return S(s.typeParameter, i, "typeParameter", e, 1), S(s.typeAnnotation, i, "typeAnnotation", t, 1), S(s.nameType, i, "nameType", r, 1), i; } n(yve, "tsMappedType"); function gve(e, t) { let r = { type: "TSTemplateLiteralType", quasis: e, types: t }, i = L.TSTemplateLiteralType; return S(i.quasis, r, "quasis", e, 1), S(i.types, r, "types", t, 1), r; } n(gve, "tsTemplateLiteralType"); function bve(e) { let t = { type: "TSLiteralType", literal: e }, r = L.TSLiteralType; return S(r.literal, t, "literal", e, 1), t; } n(bve, "tsLiteralType"); function Dve(e, t = null) { let r = { type: "TSExpressionWithTypeArguments", expression: e, typeParameters: t }, i = L.TSExpressionWithTypeArguments; return S(i.expression, r, "expression", e, 1), S(i.typeParameters, r, "typeParameters", t, 1), r; } n(Dve, "tsExpressionWithTypeArguments"); function vve(e, t = null, r = null, i) { let s = { type: "TSInterfaceDeclaration", id: e, typeParameters: t, extends: r, body: i }, a = L.TSInterfaceDeclaration; return S(a.id, s, "id", e, 1), S(a.typeParameters, s, "typeParameters", t, 1), S(a.extends, s, "extends", r, 1), S(a.body, s, "body", i, 1), s; } n(vve, "tsInterfaceDeclaration"); function xve(e) { let t = { type: "TSInterfaceBody", body: e }, r = L.TSInterfaceBody; return S(r.body, t, "body", e, 1), t; } n(xve, "tsInterfaceBody"); function Eve(e, t = null, r) { let i = { type: "TSTypeAliasDeclaration", id: e, typeParameters: t, typeAnnotation: r }, s = L.TSTypeAliasDeclaration; return S(s.id, i, "id", e, 1), S(s.typeParameters, i, "typeParameters", t, 1), S(s.typeAnnotation, i, "typeAnnotation", r, 1), i; } n(Eve, "tsTypeAliasDeclaration"); function Sve(e, t = null) { let r = { type: "TSInstantiationExpression", expression: e, typeParameters: t }, i = L.TSInstantiationExpression; return S(i.expression, r, "expression", e, 1), S(i.typeParameters, r, "typeParameters", t, 1), r; } n(Sve, "tsInstantiationExpression"); function Tve(e, t) { let r = { type: "TSAsExpression", expression: e, typeAnnotation: t }, i = L.TSAsExpression; return S(i.expression, r, "expression", e, 1), S(i.typeAnnotation, r, "typeAnnotation", t, 1), r; } n(Tve, "tsAsExpression"); function Cve(e, t) { let r = { type: "TSSatisfiesExpression", expression: e, typeAnnotation: t }, i = L.TSSatisfiesExpression; return S(i.expression, r, "expression", e, 1), S(i.typeAnnotation, r, "typeAnnotation", t, 1), r; } n(Cve, "tsSatisfiesExpression"); function wve(e, t) { let r = { type: "TSTypeAssertion", typeAnnotation: e, expression: t }, i = L.TSTypeAssertion; return S(i.typeAnnotation, r, "typeAnnotation", e, 1), S(i.expression, r, "expression", t, 1), r; } n(wve, "tsTypeAssertion"); function Ave(e) { let t = { type: "TSEnumBody", members: e }, r = L.TSEnumBody; return S(r.members, t, "members", e, 1), t; } n(Ave, "tsEnumBody"); function _ve(e, t) { let r = { type: "TSEnumDeclaration", id: e, members: t }, i = L.TSEnumDeclaration; return S(i.id, r, "id", e, 1), S(i.members, r, "members", t, 1), r; } n(_ve, "tsEnumDeclaration"); function Pve(e, t = null) { let r = { type: "TSEnumMember", id: e, initializer: t }, i = L.TSEnumMember; return S(i.id, r, "id", e, 1), S(i.initializer, r, "initializer", t, 1), r; } n(Pve, "tsEnumMember"); function Fve(e, t) { let r = { type: "TSModuleDeclaration", id: e, body: t, kind: null }, i = L.TSModuleDeclaration; return S(i.id, r, "id", e, 1), S(i.body, r, "body", t, 1), r; } n(Fve, "tsModuleDeclaration"); function Ive(e) { let t = { type: "TSModuleBlock", body: e }, r = L.TSModuleBlock; return S(r.body, t, "body", e, 1), t; } n(Ive, "tsModuleBlock"); function Ove(e, t = null, r = null) { let i = { type: "TSImportType", argument: e, qualifier: t, typeParameters: r }, s = L.TSImportType; return S(s.argument, i, "argument", e, 1), S(s.qualifier, i, "qualifier", t, 1), S(s.typeParameters, i, "typeParameters", r, 1), i; } n(Ove, "tsImportType"); function kve(e, t) { let r = { type: "TSImportEqualsDeclaration", id: e, moduleReference: t, isExport: null }, i = L.TSImportEqualsDeclaration; return S(i.id, r, "id", e, 1), S(i.moduleReference, r, "moduleReference", t, 1), r; } n(kve, "tsImportEqualsDeclaration"); function Bve(e) { let t = { type: "TSExternalModuleReference", expression: e }, r = L.TSExternalModuleReference; return S(r.expression, t, "expression", e, 1), t; } n(Bve, "tsExternalModuleReference"); function Nve(e) { let t = { type: "TSNonNullExpression", expression: e }, r = L.TSNonNullExpression; return S(r.expression, t, "expression", e, 1), t; } n(Nve, "tsNonNullExpression"); function Mve(e) { let t = { type: "TSExportAssignment", expression: e }, r = L.TSExportAssignment; return S(r.expression, t, "expression", e, 1), t; } n(Mve, "tsExportAssignment"); function Rve(e) { let t = { type: "TSNamespaceExportDeclaration", id: e }, r = L.TSNamespaceExportDeclaration; return S(r.id, t, "id", e, 1), t; } n(Rve, "tsNamespaceExportDeclaration"); function Lve(e) { let t = { type: "TSTypeAnnotation", typeAnnotation: e }, r = L.TSTypeAnnotation; return S(r.typeAnnotation, t, "typeAnnotation", e, 1), t; } n(Lve, "tsTypeAnnotation"); function jve(e) { let t = { type: "TSTypeParameterInstantiation", params: e }, r = L.TSTypeParameterInstantiation; return S(r.params, t, "params", e, 1), t; } n(jve, "tsTypeParameterInstantiation"); function qve(e) { let t = { type: "TSTypeParameterDeclaration", params: e }, r = L.TSTypeParameterDeclaration; return S(r.params, t, "params", e, 1), t; } n(qve, "tsTypeParameterDeclaration"); function Uve(e = null, t = null, r) { let i = { type: "TSTypeParameter", constraint: e, default: t, name: r }, s = L.TSTypeParameter; return S(s.constraint, i, "constraint", e, 1), S(s.default, i, "default", t, 1), S(s.name, i, "name", r), i; } n(Uve, "tsTypeParameter"); function $ve(e) { return (0, Bm.default)("NumberLiteral", "NumericLiteral", "The node type "), kM(e); } n($ve, "NumberLiteral"); function Vve(e, t = "") { return (0, Bm.default)("RegexLiteral", "RegExpLiteral", "The node type "), BM(e, t); } n(Vve, "RegexLiteral"); function Wve(e) { return (0, Bm.default)("RestProperty", "RestElement", "The node type "), NM(e); } n(Wve, "RestProperty"); function Hve(e) { return (0, Bm.default)("SpreadProperty", "SpreadElement", "The node type "), MM(e); } n(Hve, "SpreadProperty"); }); // ../node_modules/@babel/types/lib/builders/generated/uppercase.js var RM = E((v) => { "use strict"; Object.defineProperty(v, "__esModule", { value: !0 }); v.JSXIdentifier = v.JSXFragment = v.JSXExpressionContainer = v.JSXEmptyExpression = v.JSXElement = v.JSXClosingFragment = v.JSXClosingElement = v.JSXAttribute = v.IntersectionTypeAnnotation = v.InterpreterDirective = v.InterfaceTypeAnnotation = v.InterfaceExtends = v.InterfaceDeclaration = v.InferredPredicate = v.IndexedAccessType = v.ImportSpecifier = v.ImportNamespaceSpecifier = v.ImportExpression = v.ImportDefaultSpecifier = v.ImportDeclaration = v.ImportAttribute = v.Import = v.IfStatement = v.Identifier = v.GenericTypeAnnotation = v.FunctionTypeParam = v.FunctionTypeAnnotation = v.FunctionExpression = v.FunctionDeclaration = v.ForStatement = v.ForOfStatement = v.ForInStatement = v.File = v.ExpressionStatement = v.ExportSpecifier = v.ExportNamespaceSpecifier = v.ExportNamedDeclaration = v.ExportDefaultSpecifier = v.ExportDefaultDeclaration = v.ExportAllDeclaration = v. ExistsTypeAnnotation = v.EnumSymbolBody = v.EnumStringMember = v.EnumStringBody = v.EnumNumberMember = v.EnumNumberBody = v.EnumDefaultedMember = v.EnumDeclaration = v.EnumBooleanMember = v.EnumBooleanBody = v.EmptyTypeAnnotation = v.EmptyStatement = v.DoWhileStatement = v.DoExpression = v.DirectiveLiteral = v.Directive = v.Decorator = v.DeclaredPredicate = v.DeclareVariable = v.DeclareTypeAlias = v.DeclareOpaqueType = v.DeclareModuleExports = v.DeclareModule = v.DeclareInterface = v.DeclareFunction = v.DeclareExportDeclaration = v.DeclareExportAllDeclaration = v.DeclareClass = v. DecimalLiteral = v.DebuggerStatement = v.ContinueStatement = v.ConditionalExpression = v.ClassProperty = v.ClassPrivateProperty = v.ClassPrivateMethod = v.ClassMethod = v.ClassImplements = v.ClassExpression = v.ClassDeclaration = v.ClassBody = v.ClassAccessorProperty = v.CatchClause = v.CallExpression = v.BreakStatement = v.BooleanTypeAnnotation = v.BooleanLiteralTypeAnnotation = v.BooleanLiteral = v.BlockStatement = v.BindExpression = v.BinaryExpression = v.BigIntLiteral = v.AwaitExpression = v.AssignmentPattern = v.AssignmentExpression = v.ArrowFunctionExpression = v.ArrayTypeAnnotation = v. ArrayPattern = v.ArrayExpression = v.ArgumentPlaceholder = v.AnyTypeAnnotation = void 0; v.TSNumberKeyword = v.TSNullKeyword = v.TSNonNullExpression = v.TSNeverKeyword = v.TSNamespaceExportDeclaration = v.TSNamedTupleMember = v. TSModuleDeclaration = v.TSModuleBlock = v.TSMethodSignature = v.TSMappedType = v.TSLiteralType = v.TSIntrinsicKeyword = v.TSIntersectionType = v.TSInterfaceDeclaration = v.TSInterfaceBody = v.TSInstantiationExpression = v.TSInferType = v.TSIndexedAccessType = v.TSIndexSignature = v. TSImportType = v.TSImportEqualsDeclaration = v.TSFunctionType = v.TSExternalModuleReference = v.TSExpressionWithTypeArguments = v.TSExportAssignment = v.TSEnumMember = v.TSEnumDeclaration = v.TSEnumBody = v.TSDeclareMethod = v.TSDeclareFunction = v.TSConstructorType = v.TSConstructSignatureDeclaration = v.TSConditionalType = v.TSCallSignatureDeclaration = v.TSBooleanKeyword = v.TSBigIntKeyword = v.TSAsExpression = v.TSArrayType = v.TSAnyKeyword = v.SymbolTypeAnnotation = v.SwitchStatement = v.SwitchCase = v.Super = v.StringTypeAnnotation = v.StringLiteralTypeAnnotation = v.StringLiteral = v.StaticBlock = v.SpreadProperty = v.SpreadElement = v.SequenceExpression = v.ReturnStatement = v.RestProperty = v.RestElement = v.RegexLiteral = v.RegExpLiteral = v.RecordExpression = v.QualifiedTypeIdentifier = v.Program = v.PrivateName = v.Placeholder = v.PipelineTopicExpression = v.PipelinePrimaryTopicReference = v.PipelineBareFunction = v.ParenthesizedExpression = v.OptionalMemberExpression = v.OptionalIndexedAccessType = v.OptionalCallExpression = v.OpaqueType = v.ObjectTypeSpreadProperty = v.ObjectTypeProperty = v.ObjectTypeInternalSlot = v.ObjectTypeIndexer = v.ObjectTypeCallProperty = v.ObjectTypeAnnotation = v.ObjectProperty = v.ObjectPattern = v.ObjectMethod = v.ObjectExpression = v.NumericLiteral = v.NumberTypeAnnotation = v.NumberLiteralTypeAnnotation = v.NumberLiteral = v.NullableTypeAnnotation = v.NullLiteralTypeAnnotation = v.NullLiteral = v.Noop = v.NewExpression = v.ModuleExpression = v.MixedTypeAnnotation = v.MetaProperty = v.MemberExpression = v.LogicalExpression = v.LabeledStatement = v.JSXText = v.JSXSpreadChild = v.JSXSpreadAttribute = v.JSXOpeningFragment = v.JSXOpeningElement = v.JSXNamespacedName = v.JSXMemberExpression = void 0; v.YieldExpression = v.WithStatement = v.WhileStatement = v.VoidTypeAnnotation = v.VoidPattern = v.Variance = v.VariableDeclarator = v.VariableDeclaration = v.V8IntrinsicIdentifier = v.UpdateExpression = v.UnionTypeAnnotation = v.UnaryExpression = v.TypeofTypeAnnotation = v.TypeParameterInstantiation = v.TypeParameterDeclaration = v.TypeParameter = v.TypeCastExpression = v.TypeAnnotation = v.TypeAlias = v.TupleTypeAnnotation = v.TupleExpression = v.TryStatement = v.TopicReference = v.ThrowStatement = v.ThisTypeAnnotation = v.ThisExpression = v.TemplateLiteral = v.TemplateElement = v. TaggedTemplateExpression = v.TSVoidKeyword = v.TSUnknownKeyword = v.TSUnionType = v.TSUndefinedKeyword = v.TSTypeReference = v.TSTypeQuery = v.TSTypePredicate = v.TSTypeParameterInstantiation = v.TSTypeParameterDeclaration = v.TSTypeParameter = v.TSTypeOperator = v.TSTypeLiteral = v.TSTypeAssertion = v.TSTypeAnnotation = v.TSTypeAliasDeclaration = v.TSTupleType = v.TSThisType = v.TSTemplateLiteralType = v.TSSymbolKeyword = v.TSStringKeyword = v.TSSatisfiesExpression = v.TSRestType = v.TSQualifiedName = v.TSPropertySignature = v.TSParenthesizedType = v.TSParameterProperty = v.TSOptionalType = v.TSObjectKeyword = void 0; var wd = ME(), Jut = Fl(); function N(e) { return wd[e]; } n(N, "alias"); var Xut = v.ArrayExpression = N("arrayExpression"), Yut = v.AssignmentExpression = N("assignmentExpression"), Gut = v.BinaryExpression = N( "binaryExpression"), Zut = v.InterpreterDirective = N("interpreterDirective"), Qut = v.Directive = N("directive"), elt = v.DirectiveLiteral = N("directiveLiteral"), tlt = v.BlockStatement = N("blockStatement"), rlt = v.BreakStatement = N("breakStatement"), ilt = v.CallExpression = N("callExpression"), slt = v.CatchClause = N("catchClause"), nlt = v.ConditionalExpression = N("conditionalExpression"), alt = v.ContinueStatement = N("continueStatement"), olt = v.DebuggerStatement = N("debuggerStatement"), ult = v.DoWhileStatement = N("doWhileStatement"), llt = v.EmptyStatement = N("emptyStatement"), clt = v.ExpressionStatement = N("expressionStatement"), flt = v.File = N("file"), dlt = v.ForInStatement = N("forInSt\ atement"), plt = v.ForStatement = N("forStatement"), hlt = v.FunctionDeclaration = N("functionDeclaration"), mlt = v.FunctionExpression = N( "functionExpression"), ylt = v.Identifier = N("identifier"), glt = v.IfStatement = N("ifStatement"), blt = v.LabeledStatement = N("labeled\ Statement"), Dlt = v.StringLiteral = N("stringLiteral"), vlt = v.NumericLiteral = N("numericLiteral"), xlt = v.NullLiteral = N("nullLiteral"), Elt = v.BooleanLiteral = N("booleanLiteral"), Slt = v.RegExpLiteral = N("regExpLiteral"), Tlt = v.LogicalExpression = N("logicalExpression"), Clt = v.MemberExpression = N("memberExpression"), wlt = v.NewExpression = N("newExpression"), Alt = v.Program = N("program"), _lt = v.ObjectExpression = N("objectExpression"), Plt = v.ObjectMethod = N("objectMethod"), Flt = v.ObjectProperty = N("objectProperty"), Ilt = v.RestElement = N("re\ stElement"), Olt = v.ReturnStatement = N("returnStatement"), klt = v.SequenceExpression = N("sequenceExpression"), Blt = v.ParenthesizedExpression = N("parenthesizedExpression"), Nlt = v.SwitchCase = N("switchCase"), Mlt = v.SwitchStatement = N("switchStatement"), Rlt = v.ThisExpression = N("thisExpression"), Llt = v.ThrowStatement = N("throwStatement"), jlt = v.TryStatement = N("tryStatement"), qlt = v.UnaryExpression = N("\ unaryExpression"), Ult = v.UpdateExpression = N("updateExpression"), $lt = v.VariableDeclaration = N("variableDeclaration"), Vlt = v.VariableDeclarator = N("variableDeclarator"), Wlt = v.WhileStatement = N("whileStatement"), Hlt = v.WithStatement = N("withStatement"), Klt = v.AssignmentPattern = N("assignmentPattern"), zlt = v.ArrayPattern = N("arrayPattern"), Jlt = v.ArrowFunctionExpression = N("arrowFunctionExpression"), Xlt = v. ClassBody = N("classBody"), Ylt = v.ClassExpression = N("classExpression"), Glt = v.ClassDeclaration = N("classDeclaration"), Zlt = v.ExportAllDeclaration = N("exportAllDeclaration"), Qlt = v.ExportDefaultDeclaration = N("exportDefaultDeclaration"), ect = v.ExportNamedDeclaration = N("exportNam\ edDeclaration"), tct = v.ExportSpecifier = N("exportSpecifier"), rct = v.ForOfStatement = N("forOfStatement"), ict = v.ImportDeclaration = N( "importDeclaration"), sct = v.ImportDefaultSpecifier = N("importDefaultSpecifier"), nct = v.ImportNamespaceSpecifier = N("importNamespaceS\ pecifier"), act = v.ImportSpecifier = N("importSpecifier"), oct = v.ImportExpression = N("importExpression"), uct = v.MetaProperty = N("meta\ Property"), lct = v.ClassMethod = N("classMethod"), cct = v.ObjectPattern = N("objectPattern"), fct = v.SpreadElement = N("spreadElement"), dct = v. Super = N("super"), pct = v.TaggedTemplateExpression = N("taggedTemplateExpression"), hct = v.TemplateElement = N("templateElement"), mct = v. TemplateLiteral = N("templateLiteral"), yct = v.YieldExpression = N("yieldExpression"), gct = v.AwaitExpression = N("awaitExpression"), bct = v. Import = N("import"), Dct = v.BigIntLiteral = N("bigIntLiteral"), vct = v.ExportNamespaceSpecifier = N("exportNamespaceSpecifier"), xct = v. OptionalMemberExpression = N("optionalMemberExpression"), Ect = v.OptionalCallExpression = N("optionalCallExpression"), Sct = v.ClassProperty = N("classProperty"), Tct = v.ClassAccessorProperty = N("classAccessorProperty"), Cct = v.ClassPrivateProperty = N("classPrivateProperty"), wct = v. ClassPrivateMethod = N("classPrivateMethod"), Act = v.PrivateName = N("privateName"), _ct = v.StaticBlock = N("staticBlock"), Pct = v.ImportAttribute = N("importAttribute"), Fct = v.AnyTypeAnnotation = N("anyTypeAnnotation"), Ict = v.ArrayTypeAnnotation = N("arrayTypeAnnotation"), Oct = v. BooleanTypeAnnotation = N("booleanTypeAnnotation"), kct = v.BooleanLiteralTypeAnnotation = N("booleanLiteralTypeAnnotation"), Bct = v.NullLiteralTypeAnnotation = N("nullLiteralTypeAnnotation"), Nct = v.ClassImplements = N("classImplements"), Mct = v.DeclareClass = N("declareClass"), Rct = v.DeclareFunction = N("declareFunction"), Lct = v.DeclareInterface = N("declareInterface"), jct = v.DeclareModule = N("declareModule"), qct = v.DeclareModuleExports = N("declareModuleExports"), Uct = v.DeclareTypeAlias = N("declareTypeAlias"), $ct = v.DeclareOpaqueType = N("declareOpaqueType"), Vct = v.DeclareVariable = N("declareVariable"), Wct = v.DeclareExportDeclaration = N("declareExportDeclaration"), Hct = v.DeclareExportAllDeclaration = N("declareEx\ portAllDeclaration"), Kct = v.DeclaredPredicate = N("declaredPredicate"), zct = v.ExistsTypeAnnotation = N("existsTypeAnnotation"), Jct = v. FunctionTypeAnnotation = N("functionTypeAnnotation"), Xct = v.FunctionTypeParam = N("functionTypeParam"), Yct = v.GenericTypeAnnotation = N( "genericTypeAnnotation"), Gct = v.InferredPredicate = N("inferredPredicate"), Zct = v.InterfaceExtends = N("interfaceExtends"), Qct = v.InterfaceDeclaration = N("interfaceDeclaration"), eft = v.InterfaceTypeAnnotation = N("interfaceTypeAnnotation"), tft = v.IntersectionTypeAnnotation = N("interse\ ctionTypeAnnotation"), rft = v.MixedTypeAnnotation = N("mixedTypeAnnotation"), ift = v.EmptyTypeAnnotation = N("emptyTypeAnnotation"), sft = v. NullableTypeAnnotation = N("nullableTypeAnnotation"), nft = v.NumberLiteralTypeAnnotation = N("numberLiteralTypeAnnotation"), aft = v.NumberTypeAnnotation = N("numberTypeAnnotation"), oft = v.ObjectTypeAnnotation = N("objectTypeAnnotation"), uft = v.ObjectTypeInternalSlot = N("objectTypeInterna\ lSlot"), lft = v.ObjectTypeCallProperty = N("objectTypeCallProperty"), cft = v.ObjectTypeIndexer = N("objectTypeIndexer"), fft = v.ObjectTypeProperty = N("objectTypeProperty"), dft = v.ObjectTypeSpreadProperty = N("objectTypeSpreadProperty"), pft = v.OpaqueType = N("opaqueType"), hft = v.QualifiedTypeIdentifier = N("qualifiedTypeIdentifier"), mft = v.StringLiteralTypeAnnotation = N("stringLiteralTypeAnnotation"), yft = v.StringTypeAnnotation = N("st\ ringTypeAnnotation"), gft = v.SymbolTypeAnnotation = N("symbolTypeAnnotation"), bft = v.ThisTypeAnnotation = N("thisTypeAnnotation"), Dft = v. TupleTypeAnnotation = N("tupleTypeAnnotation"), vft = v.TypeofTypeAnnotation = N("typeofTypeAnnotation"), xft = v.TypeAlias = N("typeAlias"), Eft = v.TypeAnnotation = N("typeAnnotation"), Sft = v.TypeCastExpression = N("typeCastExpression"), Tft = v.TypeParameter = N("typeParamet\ er"), Cft = v.TypeParameterDeclaration = N("typeParameterDeclaration"), wft = v.TypeParameterInstantiation = N("typeParameterInstantiation"), Aft = v.UnionTypeAnnotation = N("unionTypeAnnotation"), _ft = v.Variance = N("variance"), Pft = v.VoidTypeAnnotation = N("voidTypeAnnotati\ on"), Fft = v.EnumDeclaration = N("enumDeclaration"), Ift = v.EnumBooleanBody = N("enumBooleanBody"), Oft = v.EnumNumberBody = N("enumNumber\ Body"), kft = v.EnumStringBody = N("enumStringBody"), Bft = v.EnumSymbolBody = N("enumSymbolBody"), Nft = v.EnumBooleanMember = N("enumBoole\ anMember"), Mft = v.EnumNumberMember = N("enumNumberMember"), Rft = v.EnumStringMember = N("enumStringMember"), Lft = v.EnumDefaultedMember = N("enumDefaultedMember"), jft = v.IndexedAccessType = N("indexedAccessType"), qft = v.OptionalIndexedAccessType = N("optionalIndexedAccess\ Type"), Uft = v.JSXAttribute = N("jsxAttribute"), $ft = v.JSXClosingElement = N("jsxClosingElement"), Vft = v.JSXElement = N("jsxElement"), Wft = v. JSXEmptyExpression = N("jsxEmptyExpression"), Hft = v.JSXExpressionContainer = N("jsxExpressionContainer"), Kft = v.JSXSpreadChild = N("js\ xSpreadChild"), zft = v.JSXIdentifier = N("jsxIdentifier"), Jft = v.JSXMemberExpression = N("jsxMemberExpression"), Xft = v.JSXNamespacedName = N("jsxNamespacedName"), Yft = v.JSXOpeningElement = N("jsxOpeningElement"), Gft = v.JSXSpreadAttribute = N("jsxSpreadAttribute"), Zft = v. JSXText = N("jsxText"), Qft = v.JSXFragment = N("jsxFragment"), edt = v.JSXOpeningFragment = N("jsxOpeningFragment"), tdt = v.JSXClosingFragment = N("jsxClosingFragment"), rdt = v.Noop = N("noop"), idt = v.Placeholder = N("placeholder"), sdt = v.V8IntrinsicIdentifier = N("v8IntrinsicI\ dentifier"), ndt = v.ArgumentPlaceholder = N("argumentPlaceholder"), adt = v.BindExpression = N("bindExpression"), odt = v.Decorator = N("de\ corator"), udt = v.DoExpression = N("doExpression"), ldt = v.ExportDefaultSpecifier = N("exportDefaultSpecifier"), cdt = v.RecordExpression = N("recordExpression"), fdt = v.TupleExpression = N("tupleExpression"), ddt = v.DecimalLiteral = N("decimalLiteral"), pdt = v.ModuleExpression = N("moduleExpression"), hdt = v.TopicReference = N("topicReference"), mdt = v.PipelineTopicExpression = N("pipelineTopicExpression"), ydt = v. PipelineBareFunction = N("pipelineBareFunction"), gdt = v.PipelinePrimaryTopicReference = N("pipelinePrimaryTopicReference"), bdt = v.VoidPattern = N("voidPattern"), Ddt = v.TSParameterProperty = N("tsParameterProperty"), vdt = v.TSDeclareFunction = N("tsDeclareFunction"), xdt = v.TSDeclareMethod = N("tsDeclareMethod"), Edt = v.TSQualifiedName = N("tsQualifiedName"), Sdt = v.TSCallSignatureDeclaration = N("tsCallSignatureDeclaration"), Tdt = v.TSConstructSignatureDeclaration = N("tsConstructSignatureDeclaration"), Cdt = v.TSPropertySignature = N("tsPropertySignature"), wdt = v. TSMethodSignature = N("tsMethodSignature"), Adt = v.TSIndexSignature = N("tsIndexSignature"), _dt = v.TSAnyKeyword = N("tsAnyKeyword"), Pdt = v. TSBooleanKeyword = N("tsBooleanKeyword"), Fdt = v.TSBigIntKeyword = N("tsBigIntKeyword"), Idt = v.TSIntrinsicKeyword = N("tsIntrinsicKeywo\ rd"), Odt = v.TSNeverKeyword = N("tsNeverKeyword"), kdt = v.TSNullKeyword = N("tsNullKeyword"), Bdt = v.TSNumberKeyword = N("tsNumberKeyword"), Ndt = v.TSObjectKeyword = N("tsObjectKeyword"), Mdt = v.TSStringKeyword = N("tsStringKeyword"), Rdt = v.TSSymbolKeyword = N("tsSymbolKeywo\ rd"), Ldt = v.TSUndefinedKeyword = N("tsUndefinedKeyword"), jdt = v.TSUnknownKeyword = N("tsUnknownKeyword"), qdt = v.TSVoidKeyword = N("tsV\ oidKeyword"), Udt = v.TSThisType = N("tsThisType"), $dt = v.TSFunctionType = N("tsFunctionType"), Vdt = v.TSConstructorType = N("tsConstruct\ orType"), Wdt = v.TSTypeReference = N("tsTypeReference"), Hdt = v.TSTypePredicate = N("tsTypePredicate"), Kdt = v.TSTypeQuery = N("tsTypeQue\ ry"), zdt = v.TSTypeLiteral = N("tsTypeLiteral"), Jdt = v.TSArrayType = N("tsArrayType"), Xdt = v.TSTupleType = N("tsTupleType"), Ydt = v.TSOptionalType = N("tsOptionalType"), Gdt = v.TSRestType = N("tsRestType"), Zdt = v.TSNamedTupleMember = N("tsNamedTupleMember"), Qdt = v.TSUnionType = N("\ tsUnionType"), ept = v.TSIntersectionType = N("tsIntersectionType"), tpt = v.TSConditionalType = N("tsConditionalType"), rpt = v.TSInferType = N("tsInferType"), ipt = v.TSParenthesizedType = N("tsParenthesizedType"), spt = v.TSTypeOperator = N("tsTypeOperator"), npt = v.TSIndexedAccessType = N("tsIndexedAccessType"), apt = v.TSMappedType = N("tsMappedType"), opt = v.TSTemplateLiteralType = N("tsTemplateLiteralType"), upt = v.TSLiteralType = N("tsLiteralType"), lpt = v.TSExpressionWithTypeArguments = N("tsExpressionWithTypeArguments"), cpt = v.TSInterfaceDeclaration = N("tsInte\ rfaceDeclaration"), fpt = v.TSInterfaceBody = N("tsInterfaceBody"), dpt = v.TSTypeAliasDeclaration = N("tsTypeAliasDeclaration"), ppt = v.TSInstantiationExpression = N("tsInstantiationExpression"), hpt = v.TSAsExpression = N("tsAsExpression"), mpt = v.TSSatisfiesExpression = N("tsSatisfiesExpression"), ypt = v. TSTypeAssertion = N("tsTypeAssertion"), gpt = v.TSEnumBody = N("tsEnumBody"), bpt = v.TSEnumDeclaration = N("tsEnumDeclaration"), Dpt = v. TSEnumMember = N("tsEnumMember"), vpt = v.TSModuleDeclaration = N("tsModuleDeclaration"), xpt = v.TSModuleBlock = N("tsModuleBlock"), Ept = v. TSImportType = N("tsImportType"), Spt = v.TSImportEqualsDeclaration = N("tsImportEqualsDeclaration"), Tpt = v.TSExternalModuleReference = N( "tsExternalModuleReference"), Cpt = v.TSNonNullExpression = N("tsNonNullExpression"), wpt = v.TSExportAssignment = N("tsExportAssignment"), Apt = v.TSNamespaceExportDeclaration = N("tsNamespaceExportDeclaration"), _pt = v.TSTypeAnnotation = N("tsTypeAnnotation"), Ppt = v.TSTypeParameterInstantiation = N("tsTypeParameterInstantiation"), Fpt = v.TSTypeParameterDeclaration = N("tsTypeParameterDeclaration"), Ipt = v.TSTypeParameter = N("tsTy\ peParameter"), Opt = v.NumberLiteral = wd.numberLiteral, kpt = v.RegexLiteral = wd.regexLiteral, Bpt = v.RestProperty = wd.restProperty, Npt = v. SpreadProperty = wd.spreadProperty; }); // ../node_modules/@babel/types/lib/builders/generated/index.js var hi = E((Fa) => { "use strict"; Object.defineProperty(Fa, "__esModule", { value: !0 }); var RE = ME(); Object.keys(RE).forEach(function(e) { e === "default" || e === "__esModule" || e in Fa && Fa[e] === RE[e] || Object.defineProperty(Fa, e, { enumerable: !0, get: /* @__PURE__ */ n(function() { return RE[e]; }, "get") }); }); var LE = RM(); Object.keys(LE).forEach(function(e) { e === "default" || e === "__esModule" || e in Fa && Fa[e] === LE[e] || Object.defineProperty(Fa, e, { enumerable: !0, get: /* @__PURE__ */ n(function() { return LE[e]; }, "get") }); }); }); // ../node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js var LM = E((jE) => { "use strict"; Object.defineProperty(jE, "__esModule", { value: !0 }); jE.default = Jve; var Kve = hi(), zve = Pe(); function Jve(e, t) { let r = e.value.split(/\r\n|\n|\r/), i = 0; for (let a = 0; a < r.length; a++) /[^ \t]/.exec(r[a]) && (i = a); let s = ""; for (let a = 0; a < r.length; a++) { let o = r[a], u = a === 0, l = a === r.length - 1, c = a === i, f = o.replace(/\t/g, " "); u || (f = f.replace(/^ +/, "")), l || (f = f.replace(/ +$/, "")), f && (c || (f += " "), s += f); } s && t.push((0, zve.inherits)((0, Kve.stringLiteral)(s), e)); } n(Jve, "cleanJSXElementLiteralChild"); }); // ../node_modules/@babel/types/lib/builders/react/buildChildren.js var jM = E((UE) => { "use strict"; Object.defineProperty(UE, "__esModule", { value: !0 }); UE.default = Yve; var qE = Jt(), Xve = LM(); function Yve(e) { let t = []; for (let r = 0; r < e.children.length; r++) { let i = e.children[r]; if ((0, qE.isJSXText)(i)) { (0, Xve.default)(i, t); continue; } (0, qE.isJSXExpressionContainer)(i) && (i = i.expression), !(0, qE.isJSXEmptyExpression)(i) && t.push(i); } return t; } n(Yve, "buildChildren"); }); // ../node_modules/@babel/types/lib/validators/isNode.js var VE = E(($E) => { "use strict"; Object.defineProperty($E, "__esModule", { value: !0 }); $E.default = Zve; var Gve = Vi(); function Zve(e) { return !!(e && Gve.VISITOR_KEYS[e.type]); } n(Zve, "isNode"); }); // ../node_modules/@babel/types/lib/asserts/assertNode.js var qM = E((WE) => { "use strict"; Object.defineProperty(WE, "__esModule", { value: !0 }); WE.default = exe; var Qve = VE(); function exe(e) { if (!(0, Qve.default)(e)) { var t; let r = (t = e?.type) != null ? t : JSON.stringify(e); throw new TypeError(`Not a valid node of type "${r}"`); } } n(exe, "assertNode"); }); // ../node_modules/@babel/types/lib/asserts/generated/index.js var UM = E((_) => { "use strict"; Object.defineProperty(_, "__esModule", { value: !0 }); _.assertAccessor = vwe; _.assertAnyTypeAnnotation = REe; _.assertArgumentPlaceholder = dTe; _.assertArrayExpression = rxe; _.assertArrayPattern = eEe; _.assertArrayTypeAnnotation = LEe; _.assertArrowFunctionExpression = tEe; _.assertAssignmentExpression = ixe; _.assertAssignmentPattern = Qxe; _.assertAwaitExpression = TEe; _.assertBigIntLiteral = wEe; _.assertBinary = UCe; _.assertBinaryExpression = sxe; _.assertBindExpression = pTe; _.assertBlock = WCe; _.assertBlockParent = VCe; _.assertBlockStatement = uxe; _.assertBooleanLiteral = Pxe; _.assertBooleanLiteralTypeAnnotation = qEe; _.assertBooleanTypeAnnotation = jEe; _.assertBreakStatement = lxe; _.assertCallExpression = cxe; _.assertCatchClause = fxe; _.assertClass = ywe; _.assertClassAccessorProperty = IEe; _.assertClassBody = rEe; _.assertClassDeclaration = sEe; _.assertClassExpression = iEe; _.assertClassImplements = $Ee; _.assertClassMethod = yEe; _.assertClassPrivateMethod = kEe; _.assertClassPrivateProperty = OEe; _.assertClassProperty = FEe; _.assertCompletionStatement = zCe; _.assertConditional = JCe; _.assertConditionalExpression = dxe; _.assertContinueStatement = pxe; _.assertDebuggerStatement = hxe; _.assertDecimalLiteral = DTe; _.assertDeclaration = iwe; _.assertDeclareClass = VEe; _.assertDeclareExportAllDeclaration = ZEe; _.assertDeclareExportDeclaration = GEe; _.assertDeclareFunction = WEe; _.assertDeclareInterface = HEe; _.assertDeclareModule = KEe; _.assertDeclareModuleExports = zEe; _.assertDeclareOpaqueType = XEe; _.assertDeclareTypeAlias = JEe; _.assertDeclareVariable = YEe; _.assertDeclaredPredicate = QEe; _.assertDecorator = hTe; _.assertDirective = axe; _.assertDirectiveLiteral = oxe; _.assertDoExpression = mTe; _.assertDoWhileStatement = mxe; _.assertEmptyStatement = yxe; _.assertEmptyTypeAnnotation = cSe; _.assertEnumBody = Awe; _.assertEnumBooleanBody = LSe; _.assertEnumBooleanMember = $Se; _.assertEnumDeclaration = RSe; _.assertEnumDefaultedMember = HSe; _.assertEnumMember = _we; _.assertEnumNumberBody = jSe; _.assertEnumNumberMember = VSe; _.assertEnumStringBody = qSe; _.assertEnumStringMember = WSe; _.assertEnumSymbolBody = USe; _.assertExistsTypeAnnotation = eSe; _.assertExportAllDeclaration = nEe; _.assertExportDeclaration = bwe; _.assertExportDefaultDeclaration = aEe; _.assertExportDefaultSpecifier = yTe; _.assertExportNamedDeclaration = oEe; _.assertExportNamespaceSpecifier = AEe; _.assertExportSpecifier = uEe; _.assertExpression = qCe; _.assertExpressionStatement = gxe; _.assertExpressionWrapper = GCe; _.assertFile = bxe; _.assertFlow = Ewe; _.assertFlowBaseAnnotation = Twe; _.assertFlowDeclaration = Cwe; _.assertFlowPredicate = wwe; _.assertFlowType = Swe; _.assertFor = ZCe; _.assertForInStatement = Dxe; _.assertForOfStatement = lEe; _.assertForStatement = vxe; _.assertForXStatement = QCe; _.assertFunction = ewe; _.assertFunctionDeclaration = xxe; _.assertFunctionExpression = Exe; _.assertFunctionParameter = swe; _.assertFunctionParent = twe; _.assertFunctionTypeAnnotation = tSe; _.assertFunctionTypeParam = rSe; _.assertGenericTypeAnnotation = iSe; _.assertIdentifier = Sxe; _.assertIfStatement = Txe; _.assertImmutable = lwe; _.assertImport = CEe; _.assertImportAttribute = MEe; _.assertImportDeclaration = cEe; _.assertImportDefaultSpecifier = fEe; _.assertImportExpression = hEe; _.assertImportNamespaceSpecifier = dEe; _.assertImportOrExportDeclaration = gwe; _.assertImportSpecifier = pEe; _.assertIndexedAccessType = KSe; _.assertInferredPredicate = sSe; _.assertInterfaceDeclaration = aSe; _.assertInterfaceExtends = nSe; _.assertInterfaceTypeAnnotation = oSe; _.assertInterpreterDirective = nxe; _.assertIntersectionTypeAnnotation = uSe; _.assertJSX = Pwe; _.assertJSXAttribute = JSe; _.assertJSXClosingElement = XSe; _.assertJSXClosingFragment = uTe; _.assertJSXElement = YSe; _.assertJSXEmptyExpression = GSe; _.assertJSXExpressionContainer = ZSe; _.assertJSXFragment = aTe; _.assertJSXIdentifier = eTe; _.assertJSXMemberExpression = tTe; _.assertJSXNamespacedName = rTe; _.assertJSXOpeningElement = iTe; _.assertJSXOpeningFragment = oTe; _.assertJSXSpreadAttribute = sTe; _.assertJSXSpreadChild = QSe; _.assertJSXText = nTe; _.assertLVal = awe; _.assertLabeledStatement = Cxe; _.assertLiteral = uwe; _.assertLogicalExpression = Ixe; _.assertLoop = XCe; _.assertMemberExpression = Oxe; _.assertMetaProperty = mEe; _.assertMethod = fwe; _.assertMiscellaneous = Fwe; _.assertMixedTypeAnnotation = lSe; _.assertModuleDeclaration = jwe; _.assertModuleExpression = vTe; _.assertModuleSpecifier = Dwe; _.assertNewExpression = kxe; _.assertNoop = lTe; _.assertNullLiteral = _xe; _.assertNullLiteralTypeAnnotation = UEe; _.assertNullableTypeAnnotation = fSe; _.assertNumberLiteral = Nwe; _.assertNumberLiteralTypeAnnotation = dSe; _.assertNumberTypeAnnotation = pSe; _.assertNumericLiteral = Axe; _.assertObjectExpression = Nxe; _.assertObjectMember = dwe; _.assertObjectMethod = Mxe; _.assertObjectPattern = gEe; _.assertObjectProperty = Rxe; _.assertObjectTypeAnnotation = hSe; _.assertObjectTypeCallProperty = ySe; _.assertObjectTypeIndexer = gSe; _.assertObjectTypeInternalSlot = mSe; _.assertObjectTypeProperty = bSe; _.assertObjectTypeSpreadProperty = DSe; _.assertOpaqueType = vSe; _.assertOptionalCallExpression = PEe; _.assertOptionalIndexedAccessType = zSe; _.assertOptionalMemberExpression = _Ee; _.assertParenthesizedExpression = Uxe; _.assertPattern = mwe; _.assertPatternLike = nwe; _.assertPipelineBareFunction = STe; _.assertPipelinePrimaryTopicReference = TTe; _.assertPipelineTopicExpression = ETe; _.assertPlaceholder = cTe; _.assertPrivate = xwe; _.assertPrivateName = BEe; _.assertProgram = Bxe; _.assertProperty = pwe; _.assertPureish = rwe; _.assertQualifiedTypeIdentifier = xSe; _.assertRecordExpression = gTe; _.assertRegExpLiteral = Fxe; _.assertRegexLiteral = Mwe; _.assertRestElement = Lxe; _.assertRestProperty = Rwe; _.assertReturnStatement = jxe; _.assertScopable = $Ce; _.assertSequenceExpression = qxe; _.assertSpreadElement = bEe; _.assertSpreadProperty = Lwe; _.assertStandardized = jCe; _.assertStatement = HCe; _.assertStaticBlock = NEe; _.assertStringLiteral = wxe; _.assertStringLiteralTypeAnnotation = ESe; _.assertStringTypeAnnotation = SSe; _.assertSuper = DEe; _.assertSwitchCase = $xe; _.assertSwitchStatement = Vxe; _.assertSymbolTypeAnnotation = TSe; _.assertTSAnyKeyword = NTe; _.assertTSArrayType = tCe; _.assertTSAsExpression = xCe; _.assertTSBaseType = Bwe; _.assertTSBigIntKeyword = RTe; _.assertTSBooleanKeyword = MTe; _.assertTSCallSignatureDeclaration = FTe; _.assertTSConditionalType = uCe; _.assertTSConstructSignatureDeclaration = ITe; _.assertTSConstructorType = YTe; _.assertTSDeclareFunction = ATe; _.assertTSDeclareMethod = _Te; _.assertTSEntityName = owe; _.assertTSEnumBody = TCe; _.assertTSEnumDeclaration = CCe; _.assertTSEnumMember = wCe; _.assertTSExportAssignment = kCe; _.assertTSExpressionWithTypeArguments = yCe; _.assertTSExternalModuleReference = ICe; _.assertTSFunctionType = XTe; _.assertTSImportEqualsDeclaration = FCe; _.assertTSImportType = PCe; _.assertTSIndexSignature = BTe; _.assertTSIndexedAccessType = dCe; _.assertTSInferType = lCe; _.assertTSInstantiationExpression = vCe; _.assertTSInterfaceBody = bCe; _.assertTSInterfaceDeclaration = gCe; _.assertTSIntersectionType = oCe; _.assertTSIntrinsicKeyword = LTe; _.assertTSLiteralType = mCe; _.assertTSMappedType = pCe; _.assertTSMethodSignature = kTe; _.assertTSModuleBlock = _Ce; _.assertTSModuleDeclaration = ACe; _.assertTSNamedTupleMember = nCe; _.assertTSNamespaceExportDeclaration = BCe; _.assertTSNeverKeyword = jTe; _.assertTSNonNullExpression = OCe; _.assertTSNullKeyword = qTe; _.assertTSNumberKeyword = UTe; _.assertTSObjectKeyword = $Te; _.assertTSOptionalType = iCe; _.assertTSParameterProperty = wTe; _.assertTSParenthesizedType = cCe; _.assertTSPropertySignature = OTe; _.assertTSQualifiedName = PTe; _.assertTSRestType = sCe; _.assertTSSatisfiesExpression = ECe; _.assertTSStringKeyword = VTe; _.assertTSSymbolKeyword = WTe; _.assertTSTemplateLiteralType = hCe; _.assertTSThisType = JTe; _.assertTSTupleType = rCe; _.assertTSType = kwe; _.assertTSTypeAliasDeclaration = DCe; _.assertTSTypeAnnotation = NCe; _.assertTSTypeAssertion = SCe; _.assertTSTypeElement = Owe; _.assertTSTypeLiteral = eCe; _.assertTSTypeOperator = fCe; _.assertTSTypeParameter = LCe; _.assertTSTypeParameterDeclaration = RCe; _.assertTSTypeParameterInstantiation = MCe; _.assertTSTypePredicate = ZTe; _.assertTSTypeQuery = QTe; _.assertTSTypeReference = GTe; _.assertTSUndefinedKeyword = HTe; _.assertTSUnionType = aCe; _.assertTSUnknownKeyword = KTe; _.assertTSVoidKeyword = zTe; _.assertTaggedTemplateExpression = vEe; _.assertTemplateElement = xEe; _.assertTemplateLiteral = EEe; _.assertTerminatorless = KCe; _.assertThisExpression = Wxe; _.assertThisTypeAnnotation = CSe; _.assertThrowStatement = Hxe; _.assertTopicReference = xTe; _.assertTryStatement = Kxe; _.assertTupleExpression = bTe; _.assertTupleTypeAnnotation = wSe; _.assertTypeAlias = _Se; _.assertTypeAnnotation = PSe; _.assertTypeCastExpression = FSe; _.assertTypeParameter = ISe; _.assertTypeParameterDeclaration = OSe; _.assertTypeParameterInstantiation = kSe; _.assertTypeScript = Iwe; _.assertTypeofTypeAnnotation = ASe; _.assertUnaryExpression = zxe; _.assertUnaryLike = hwe; _.assertUnionTypeAnnotation = BSe; _.assertUpdateExpression = Jxe; _.assertUserWhitespacable = cwe; _.assertV8IntrinsicIdentifier = fTe; _.assertVariableDeclaration = Xxe; _.assertVariableDeclarator = Yxe; _.assertVariance = NSe; _.assertVoidPattern = CTe; _.assertVoidTypeAnnotation = MSe; _.assertWhile = YCe; _.assertWhileStatement = Gxe; _.assertWithStatement = Zxe; _.assertYieldExpression = SEe; var txe = Il(), Ad = Fl(); function P(e, t, r) { if (!(0, txe.default)(e, t, r)) throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`); } n(P, "assert"); function rxe(e, t) { P("ArrayExpression", e, t); } n(rxe, "assertArrayExpression"); function ixe(e, t) { P("AssignmentExpression", e, t); } n(ixe, "assertAssignmentExpression"); function sxe(e, t) { P("BinaryExpression", e, t); } n(sxe, "assertBinaryExpression"); function nxe(e, t) { P("InterpreterDirective", e, t); } n(nxe, "assertInterpreterDirective"); function axe(e, t) { P("Directive", e, t); } n(axe, "assertDirective"); function oxe(e, t) { P("DirectiveLiteral", e, t); } n(oxe, "assertDirectiveLiteral"); function uxe(e, t) { P("BlockStatement", e, t); } n(uxe, "assertBlockStatement"); function lxe(e, t) { P("BreakStatement", e, t); } n(lxe, "assertBreakStatement"); function cxe(e, t) { P("CallExpression", e, t); } n(cxe, "assertCallExpression"); function fxe(e, t) { P("CatchClause", e, t); } n(fxe, "assertCatchClause"); function dxe(e, t) { P("ConditionalExpression", e, t); } n(dxe, "assertConditionalExpression"); function pxe(e, t) { P("ContinueStatement", e, t); } n(pxe, "assertContinueStatement"); function hxe(e, t) { P("DebuggerStatement", e, t); } n(hxe, "assertDebuggerStatement"); function mxe(e, t) { P("DoWhileStatement", e, t); } n(mxe, "assertDoWhileStatement"); function yxe(e, t) { P("EmptyStatement", e, t); } n(yxe, "assertEmptyStatement"); function gxe(e, t) { P("ExpressionStatement", e, t); } n(gxe, "assertExpressionStatement"); function bxe(e, t) { P("File", e, t); } n(bxe, "assertFile"); function Dxe(e, t) { P("ForInStatement", e, t); } n(Dxe, "assertForInStatement"); function vxe(e, t) { P("ForStatement", e, t); } n(vxe, "assertForStatement"); function xxe(e, t) { P("FunctionDeclaration", e, t); } n(xxe, "assertFunctionDeclaration"); function Exe(e, t) { P("FunctionExpression", e, t); } n(Exe, "assertFunctionExpression"); function Sxe(e, t) { P("Identifier", e, t); } n(Sxe, "assertIdentifier"); function Txe(e, t) { P("IfStatement", e, t); } n(Txe, "assertIfStatement"); function Cxe(e, t) { P("LabeledStatement", e, t); } n(Cxe, "assertLabeledStatement"); function wxe(e, t) { P("StringLiteral", e, t); } n(wxe, "assertStringLiteral"); function Axe(e, t) { P("NumericLiteral", e, t); } n(Axe, "assertNumericLiteral"); function _xe(e, t) { P("NullLiteral", e, t); } n(_xe, "assertNullLiteral"); function Pxe(e, t) { P("BooleanLiteral", e, t); } n(Pxe, "assertBooleanLiteral"); function Fxe(e, t) { P("RegExpLiteral", e, t); } n(Fxe, "assertRegExpLiteral"); function Ixe(e, t) { P("LogicalExpression", e, t); } n(Ixe, "assertLogicalExpression"); function Oxe(e, t) { P("MemberExpression", e, t); } n(Oxe, "assertMemberExpression"); function kxe(e, t) { P("NewExpression", e, t); } n(kxe, "assertNewExpression"); function Bxe(e, t) { P("Program", e, t); } n(Bxe, "assertProgram"); function Nxe(e, t) { P("ObjectExpression", e, t); } n(Nxe, "assertObjectExpression"); function Mxe(e, t) { P("ObjectMethod", e, t); } n(Mxe, "assertObjectMethod"); function Rxe(e, t) { P("ObjectProperty", e, t); } n(Rxe, "assertObjectProperty"); function Lxe(e, t) { P("RestElement", e, t); } n(Lxe, "assertRestElement"); function jxe(e, t) { P("ReturnStatement", e, t); } n(jxe, "assertReturnStatement"); function qxe(e, t) { P("SequenceExpression", e, t); } n(qxe, "assertSequenceExpression"); function Uxe(e, t) { P("ParenthesizedExpression", e, t); } n(Uxe, "assertParenthesizedExpression"); function $xe(e, t) { P("SwitchCase", e, t); } n($xe, "assertSwitchCase"); function Vxe(e, t) { P("SwitchStatement", e, t); } n(Vxe, "assertSwitchStatement"); function Wxe(e, t) { P("ThisExpression", e, t); } n(Wxe, "assertThisExpression"); function Hxe(e, t) { P("ThrowStatement", e, t); } n(Hxe, "assertThrowStatement"); function Kxe(e, t) { P("TryStatement", e, t); } n(Kxe, "assertTryStatement"); function zxe(e, t) { P("UnaryExpression", e, t); } n(zxe, "assertUnaryExpression"); function Jxe(e, t) { P("UpdateExpression", e, t); } n(Jxe, "assertUpdateExpression"); function Xxe(e, t) { P("VariableDeclaration", e, t); } n(Xxe, "assertVariableDeclaration"); function Yxe(e, t) { P("VariableDeclarator", e, t); } n(Yxe, "assertVariableDeclarator"); function Gxe(e, t) { P("WhileStatement", e, t); } n(Gxe, "assertWhileStatement"); function Zxe(e, t) { P("WithStatement", e, t); } n(Zxe, "assertWithStatement"); function Qxe(e, t) { P("AssignmentPattern", e, t); } n(Qxe, "assertAssignmentPattern"); function eEe(e, t) { P("ArrayPattern", e, t); } n(eEe, "assertArrayPattern"); function tEe(e, t) { P("ArrowFunctionExpression", e, t); } n(tEe, "assertArrowFunctionExpression"); function rEe(e, t) { P("ClassBody", e, t); } n(rEe, "assertClassBody"); function iEe(e, t) { P("ClassExpression", e, t); } n(iEe, "assertClassExpression"); function sEe(e, t) { P("ClassDeclaration", e, t); } n(sEe, "assertClassDeclaration"); function nEe(e, t) { P("ExportAllDeclaration", e, t); } n(nEe, "assertExportAllDeclaration"); function aEe(e, t) { P("ExportDefaultDeclaration", e, t); } n(aEe, "assertExportDefaultDeclaration"); function oEe(e, t) { P("ExportNamedDeclaration", e, t); } n(oEe, "assertExportNamedDeclaration"); function uEe(e, t) { P("ExportSpecifier", e, t); } n(uEe, "assertExportSpecifier"); function lEe(e, t) { P("ForOfStatement", e, t); } n(lEe, "assertForOfStatement"); function cEe(e, t) { P("ImportDeclaration", e, t); } n(cEe, "assertImportDeclaration"); function fEe(e, t) { P("ImportDefaultSpecifier", e, t); } n(fEe, "assertImportDefaultSpecifier"); function dEe(e, t) { P("ImportNamespaceSpecifier", e, t); } n(dEe, "assertImportNamespaceSpecifier"); function pEe(e, t) { P("ImportSpecifier", e, t); } n(pEe, "assertImportSpecifier"); function hEe(e, t) { P("ImportExpression", e, t); } n(hEe, "assertImportExpression"); function mEe(e, t) { P("MetaProperty", e, t); } n(mEe, "assertMetaProperty"); function yEe(e, t) { P("ClassMethod", e, t); } n(yEe, "assertClassMethod"); function gEe(e, t) { P("ObjectPattern", e, t); } n(gEe, "assertObjectPattern"); function bEe(e, t) { P("SpreadElement", e, t); } n(bEe, "assertSpreadElement"); function DEe(e, t) { P("Super", e, t); } n(DEe, "assertSuper"); function vEe(e, t) { P("TaggedTemplateExpression", e, t); } n(vEe, "assertTaggedTemplateExpression"); function xEe(e, t) { P("TemplateElement", e, t); } n(xEe, "assertTemplateElement"); function EEe(e, t) { P("TemplateLiteral", e, t); } n(EEe, "assertTemplateLiteral"); function SEe(e, t) { P("YieldExpression", e, t); } n(SEe, "assertYieldExpression"); function TEe(e, t) { P("AwaitExpression", e, t); } n(TEe, "assertAwaitExpression"); function CEe(e, t) { P("Import", e, t); } n(CEe, "assertImport"); function wEe(e, t) { P("BigIntLiteral", e, t); } n(wEe, "assertBigIntLiteral"); function AEe(e, t) { P("ExportNamespaceSpecifier", e, t); } n(AEe, "assertExportNamespaceSpecifier"); function _Ee(e, t) { P("OptionalMemberExpression", e, t); } n(_Ee, "assertOptionalMemberExpression"); function PEe(e, t) { P("OptionalCallExpression", e, t); } n(PEe, "assertOptionalCallExpression"); function FEe(e, t) { P("ClassProperty", e, t); } n(FEe, "assertClassProperty"); function IEe(e, t) { P("ClassAccessorProperty", e, t); } n(IEe, "assertClassAccessorProperty"); function OEe(e, t) { P("ClassPrivateProperty", e, t); } n(OEe, "assertClassPrivateProperty"); function kEe(e, t) { P("ClassPrivateMethod", e, t); } n(kEe, "assertClassPrivateMethod"); function BEe(e, t) { P("PrivateName", e, t); } n(BEe, "assertPrivateName"); function NEe(e, t) { P("StaticBlock", e, t); } n(NEe, "assertStaticBlock"); function MEe(e, t) { P("ImportAttribute", e, t); } n(MEe, "assertImportAttribute"); function REe(e, t) { P("AnyTypeAnnotation", e, t); } n(REe, "assertAnyTypeAnnotation"); function LEe(e, t) { P("ArrayTypeAnnotation", e, t); } n(LEe, "assertArrayTypeAnnotation"); function jEe(e, t) { P("BooleanTypeAnnotation", e, t); } n(jEe, "assertBooleanTypeAnnotation"); function qEe(e, t) { P("BooleanLiteralTypeAnnotation", e, t); } n(qEe, "assertBooleanLiteralTypeAnnotation"); function UEe(e, t) { P("NullLiteralTypeAnnotation", e, t); } n(UEe, "assertNullLiteralTypeAnnotation"); function $Ee(e, t) { P("ClassImplements", e, t); } n($Ee, "assertClassImplements"); function VEe(e, t) { P("DeclareClass", e, t); } n(VEe, "assertDeclareClass"); function WEe(e, t) { P("DeclareFunction", e, t); } n(WEe, "assertDeclareFunction"); function HEe(e, t) { P("DeclareInterface", e, t); } n(HEe, "assertDeclareInterface"); function KEe(e, t) { P("DeclareModule", e, t); } n(KEe, "assertDeclareModule"); function zEe(e, t) { P("DeclareModuleExports", e, t); } n(zEe, "assertDeclareModuleExports"); function JEe(e, t) { P("DeclareTypeAlias", e, t); } n(JEe, "assertDeclareTypeAlias"); function XEe(e, t) { P("DeclareOpaqueType", e, t); } n(XEe, "assertDeclareOpaqueType"); function YEe(e, t) { P("DeclareVariable", e, t); } n(YEe, "assertDeclareVariable"); function GEe(e, t) { P("DeclareExportDeclaration", e, t); } n(GEe, "assertDeclareExportDeclaration"); function ZEe(e, t) { P("DeclareExportAllDeclaration", e, t); } n(ZEe, "assertDeclareExportAllDeclaration"); function QEe(e, t) { P("DeclaredPredicate", e, t); } n(QEe, "assertDeclaredPredicate"); function eSe(e, t) { P("ExistsTypeAnnotation", e, t); } n(eSe, "assertExistsTypeAnnotation"); function tSe(e, t) { P("FunctionTypeAnnotation", e, t); } n(tSe, "assertFunctionTypeAnnotation"); function rSe(e, t) { P("FunctionTypeParam", e, t); } n(rSe, "assertFunctionTypeParam"); function iSe(e, t) { P("GenericTypeAnnotation", e, t); } n(iSe, "assertGenericTypeAnnotation"); function sSe(e, t) { P("InferredPredicate", e, t); } n(sSe, "assertInferredPredicate"); function nSe(e, t) { P("InterfaceExtends", e, t); } n(nSe, "assertInterfaceExtends"); function aSe(e, t) { P("InterfaceDeclaration", e, t); } n(aSe, "assertInterfaceDeclaration"); function oSe(e, t) { P("InterfaceTypeAnnotation", e, t); } n(oSe, "assertInterfaceTypeAnnotation"); function uSe(e, t) { P("IntersectionTypeAnnotation", e, t); } n(uSe, "assertIntersectionTypeAnnotation"); function lSe(e, t) { P("MixedTypeAnnotation", e, t); } n(lSe, "assertMixedTypeAnnotation"); function cSe(e, t) { P("EmptyTypeAnnotation", e, t); } n(cSe, "assertEmptyTypeAnnotation"); function fSe(e, t) { P("NullableTypeAnnotation", e, t); } n(fSe, "assertNullableTypeAnnotation"); function dSe(e, t) { P("NumberLiteralTypeAnnotation", e, t); } n(dSe, "assertNumberLiteralTypeAnnotation"); function pSe(e, t) { P("NumberTypeAnnotation", e, t); } n(pSe, "assertNumberTypeAnnotation"); function hSe(e, t) { P("ObjectTypeAnnotation", e, t); } n(hSe, "assertObjectTypeAnnotation"); function mSe(e, t) { P("ObjectTypeInternalSlot", e, t); } n(mSe, "assertObjectTypeInternalSlot"); function ySe(e, t) { P("ObjectTypeCallProperty", e, t); } n(ySe, "assertObjectTypeCallProperty"); function gSe(e, t) { P("ObjectTypeIndexer", e, t); } n(gSe, "assertObjectTypeIndexer"); function bSe(e, t) { P("ObjectTypeProperty", e, t); } n(bSe, "assertObjectTypeProperty"); function DSe(e, t) { P("ObjectTypeSpreadProperty", e, t); } n(DSe, "assertObjectTypeSpreadProperty"); function vSe(e, t) { P("OpaqueType", e, t); } n(vSe, "assertOpaqueType"); function xSe(e, t) { P("QualifiedTypeIdentifier", e, t); } n(xSe, "assertQualifiedTypeIdentifier"); function ESe(e, t) { P("StringLiteralTypeAnnotation", e, t); } n(ESe, "assertStringLiteralTypeAnnotation"); function SSe(e, t) { P("StringTypeAnnotation", e, t); } n(SSe, "assertStringTypeAnnotation"); function TSe(e, t) { P("SymbolTypeAnnotation", e, t); } n(TSe, "assertSymbolTypeAnnotation"); function CSe(e, t) { P("ThisTypeAnnotation", e, t); } n(CSe, "assertThisTypeAnnotation"); function wSe(e, t) { P("TupleTypeAnnotation", e, t); } n(wSe, "assertTupleTypeAnnotation"); function ASe(e, t) { P("TypeofTypeAnnotation", e, t); } n(ASe, "assertTypeofTypeAnnotation"); function _Se(e, t) { P("TypeAlias", e, t); } n(_Se, "assertTypeAlias"); function PSe(e, t) { P("TypeAnnotation", e, t); } n(PSe, "assertTypeAnnotation"); function FSe(e, t) { P("TypeCastExpression", e, t); } n(FSe, "assertTypeCastExpression"); function ISe(e, t) { P("TypeParameter", e, t); } n(ISe, "assertTypeParameter"); function OSe(e, t) { P("TypeParameterDeclaration", e, t); } n(OSe, "assertTypeParameterDeclaration"); function kSe(e, t) { P("TypeParameterInstantiation", e, t); } n(kSe, "assertTypeParameterInstantiation"); function BSe(e, t) { P("UnionTypeAnnotation", e, t); } n(BSe, "assertUnionTypeAnnotation"); function NSe(e, t) { P("Variance", e, t); } n(NSe, "assertVariance"); function MSe(e, t) { P("VoidTypeAnnotation", e, t); } n(MSe, "assertVoidTypeAnnotation"); function RSe(e, t) { P("EnumDeclaration", e, t); } n(RSe, "assertEnumDeclaration"); function LSe(e, t) { P("EnumBooleanBody", e, t); } n(LSe, "assertEnumBooleanBody"); function jSe(e, t) { P("EnumNumberBody", e, t); } n(jSe, "assertEnumNumberBody"); function qSe(e, t) { P("EnumStringBody", e, t); } n(qSe, "assertEnumStringBody"); function USe(e, t) { P("EnumSymbolBody", e, t); } n(USe, "assertEnumSymbolBody"); function $Se(e, t) { P("EnumBooleanMember", e, t); } n($Se, "assertEnumBooleanMember"); function VSe(e, t) { P("EnumNumberMember", e, t); } n(VSe, "assertEnumNumberMember"); function WSe(e, t) { P("EnumStringMember", e, t); } n(WSe, "assertEnumStringMember"); function HSe(e, t) { P("EnumDefaultedMember", e, t); } n(HSe, "assertEnumDefaultedMember"); function KSe(e, t) { P("IndexedAccessType", e, t); } n(KSe, "assertIndexedAccessType"); function zSe(e, t) { P("OptionalIndexedAccessType", e, t); } n(zSe, "assertOptionalIndexedAccessType"); function JSe(e, t) { P("JSXAttribute", e, t); } n(JSe, "assertJSXAttribute"); function XSe(e, t) { P("JSXClosingElement", e, t); } n(XSe, "assertJSXClosingElement"); function YSe(e, t) { P("JSXElement", e, t); } n(YSe, "assertJSXElement"); function GSe(e, t) { P("JSXEmptyExpression", e, t); } n(GSe, "assertJSXEmptyExpression"); function ZSe(e, t) { P("JSXExpressionContainer", e, t); } n(ZSe, "assertJSXExpressionContainer"); function QSe(e, t) { P("JSXSpreadChild", e, t); } n(QSe, "assertJSXSpreadChild"); function eTe(e, t) { P("JSXIdentifier", e, t); } n(eTe, "assertJSXIdentifier"); function tTe(e, t) { P("JSXMemberExpression", e, t); } n(tTe, "assertJSXMemberExpression"); function rTe(e, t) { P("JSXNamespacedName", e, t); } n(rTe, "assertJSXNamespacedName"); function iTe(e, t) { P("JSXOpeningElement", e, t); } n(iTe, "assertJSXOpeningElement"); function sTe(e, t) { P("JSXSpreadAttribute", e, t); } n(sTe, "assertJSXSpreadAttribute"); function nTe(e, t) { P("JSXText", e, t); } n(nTe, "assertJSXText"); function aTe(e, t) { P("JSXFragment", e, t); } n(aTe, "assertJSXFragment"); function oTe(e, t) { P("JSXOpeningFragment", e, t); } n(oTe, "assertJSXOpeningFragment"); function uTe(e, t) { P("JSXClosingFragment", e, t); } n(uTe, "assertJSXClosingFragment"); function lTe(e, t) { P("Noop", e, t); } n(lTe, "assertNoop"); function cTe(e, t) { P("Placeholder", e, t); } n(cTe, "assertPlaceholder"); function fTe(e, t) { P("V8IntrinsicIdentifier", e, t); } n(fTe, "assertV8IntrinsicIdentifier"); function dTe(e, t) { P("ArgumentPlaceholder", e, t); } n(dTe, "assertArgumentPlaceholder"); function pTe(e, t) { P("BindExpression", e, t); } n(pTe, "assertBindExpression"); function hTe(e, t) { P("Decorator", e, t); } n(hTe, "assertDecorator"); function mTe(e, t) { P("DoExpression", e, t); } n(mTe, "assertDoExpression"); function yTe(e, t) { P("ExportDefaultSpecifier", e, t); } n(yTe, "assertExportDefaultSpecifier"); function gTe(e, t) { P("RecordExpression", e, t); } n(gTe, "assertRecordExpression"); function bTe(e, t) { P("TupleExpression", e, t); } n(bTe, "assertTupleExpression"); function DTe(e, t) { P("DecimalLiteral", e, t); } n(DTe, "assertDecimalLiteral"); function vTe(e, t) { P("ModuleExpression", e, t); } n(vTe, "assertModuleExpression"); function xTe(e, t) { P("TopicReference", e, t); } n(xTe, "assertTopicReference"); function ETe(e, t) { P("PipelineTopicExpression", e, t); } n(ETe, "assertPipelineTopicExpression"); function STe(e, t) { P("PipelineBareFunction", e, t); } n(STe, "assertPipelineBareFunction"); function TTe(e, t) { P("PipelinePrimaryTopicReference", e, t); } n(TTe, "assertPipelinePrimaryTopicReference"); function CTe(e, t) { P("VoidPattern", e, t); } n(CTe, "assertVoidPattern"); function wTe(e, t) { P("TSParameterProperty", e, t); } n(wTe, "assertTSParameterProperty"); function ATe(e, t) { P("TSDeclareFunction", e, t); } n(ATe, "assertTSDeclareFunction"); function _Te(e, t) { P("TSDeclareMethod", e, t); } n(_Te, "assertTSDeclareMethod"); function PTe(e, t) { P("TSQualifiedName", e, t); } n(PTe, "assertTSQualifiedName"); function FTe(e, t) { P("TSCallSignatureDeclaration", e, t); } n(FTe, "assertTSCallSignatureDeclaration"); function ITe(e, t) { P("TSConstructSignatureDeclaration", e, t); } n(ITe, "assertTSConstructSignatureDeclaration"); function OTe(e, t) { P("TSPropertySignature", e, t); } n(OTe, "assertTSPropertySignature"); function kTe(e, t) { P("TSMethodSignature", e, t); } n(kTe, "assertTSMethodSignature"); function BTe(e, t) { P("TSIndexSignature", e, t); } n(BTe, "assertTSIndexSignature"); function NTe(e, t) { P("TSAnyKeyword", e, t); } n(NTe, "assertTSAnyKeyword"); function MTe(e, t) { P("TSBooleanKeyword", e, t); } n(MTe, "assertTSBooleanKeyword"); function RTe(e, t) { P("TSBigIntKeyword", e, t); } n(RTe, "assertTSBigIntKeyword"); function LTe(e, t) { P("TSIntrinsicKeyword", e, t); } n(LTe, "assertTSIntrinsicKeyword"); function jTe(e, t) { P("TSNeverKeyword", e, t); } n(jTe, "assertTSNeverKeyword"); function qTe(e, t) { P("TSNullKeyword", e, t); } n(qTe, "assertTSNullKeyword"); function UTe(e, t) { P("TSNumberKeyword", e, t); } n(UTe, "assertTSNumberKeyword"); function $Te(e, t) { P("TSObjectKeyword", e, t); } n($Te, "assertTSObjectKeyword"); function VTe(e, t) { P("TSStringKeyword", e, t); } n(VTe, "assertTSStringKeyword"); function WTe(e, t) { P("TSSymbolKeyword", e, t); } n(WTe, "assertTSSymbolKeyword"); function HTe(e, t) { P("TSUndefinedKeyword", e, t); } n(HTe, "assertTSUndefinedKeyword"); function KTe(e, t) { P("TSUnknownKeyword", e, t); } n(KTe, "assertTSUnknownKeyword"); function zTe(e, t) { P("TSVoidKeyword", e, t); } n(zTe, "assertTSVoidKeyword"); function JTe(e, t) { P("TSThisType", e, t); } n(JTe, "assertTSThisType"); function XTe(e, t) { P("TSFunctionType", e, t); } n(XTe, "assertTSFunctionType"); function YTe(e, t) { P("TSConstructorType", e, t); } n(YTe, "assertTSConstructorType"); function GTe(e, t) { P("TSTypeReference", e, t); } n(GTe, "assertTSTypeReference"); function ZTe(e, t) { P("TSTypePredicate", e, t); } n(ZTe, "assertTSTypePredicate"); function QTe(e, t) { P("TSTypeQuery", e, t); } n(QTe, "assertTSTypeQuery"); function eCe(e, t) { P("TSTypeLiteral", e, t); } n(eCe, "assertTSTypeLiteral"); function tCe(e, t) { P("TSArrayType", e, t); } n(tCe, "assertTSArrayType"); function rCe(e, t) { P("TSTupleType", e, t); } n(rCe, "assertTSTupleType"); function iCe(e, t) { P("TSOptionalType", e, t); } n(iCe, "assertTSOptionalType"); function sCe(e, t) { P("TSRestType", e, t); } n(sCe, "assertTSRestType"); function nCe(e, t) { P("TSNamedTupleMember", e, t); } n(nCe, "assertTSNamedTupleMember"); function aCe(e, t) { P("TSUnionType", e, t); } n(aCe, "assertTSUnionType"); function oCe(e, t) { P("TSIntersectionType", e, t); } n(oCe, "assertTSIntersectionType"); function uCe(e, t) { P("TSConditionalType", e, t); } n(uCe, "assertTSConditionalType"); function lCe(e, t) { P("TSInferType", e, t); } n(lCe, "assertTSInferType"); function cCe(e, t) { P("TSParenthesizedType", e, t); } n(cCe, "assertTSParenthesizedType"); function fCe(e, t) { P("TSTypeOperator", e, t); } n(fCe, "assertTSTypeOperator"); function dCe(e, t) { P("TSIndexedAccessType", e, t); } n(dCe, "assertTSIndexedAccessType"); function pCe(e, t) { P("TSMappedType", e, t); } n(pCe, "assertTSMappedType"); function hCe(e, t) { P("TSTemplateLiteralType", e, t); } n(hCe, "assertTSTemplateLiteralType"); function mCe(e, t) { P("TSLiteralType", e, t); } n(mCe, "assertTSLiteralType"); function yCe(e, t) { P("TSExpressionWithTypeArguments", e, t); } n(yCe, "assertTSExpressionWithTypeArguments"); function gCe(e, t) { P("TSInterfaceDeclaration", e, t); } n(gCe, "assertTSInterfaceDeclaration"); function bCe(e, t) { P("TSInterfaceBody", e, t); } n(bCe, "assertTSInterfaceBody"); function DCe(e, t) { P("TSTypeAliasDeclaration", e, t); } n(DCe, "assertTSTypeAliasDeclaration"); function vCe(e, t) { P("TSInstantiationExpression", e, t); } n(vCe, "assertTSInstantiationExpression"); function xCe(e, t) { P("TSAsExpression", e, t); } n(xCe, "assertTSAsExpression"); function ECe(e, t) { P("TSSatisfiesExpression", e, t); } n(ECe, "assertTSSatisfiesExpression"); function SCe(e, t) { P("TSTypeAssertion", e, t); } n(SCe, "assertTSTypeAssertion"); function TCe(e, t) { P("TSEnumBody", e, t); } n(TCe, "assertTSEnumBody"); function CCe(e, t) { P("TSEnumDeclaration", e, t); } n(CCe, "assertTSEnumDeclaration"); function wCe(e, t) { P("TSEnumMember", e, t); } n(wCe, "assertTSEnumMember"); function ACe(e, t) { P("TSModuleDeclaration", e, t); } n(ACe, "assertTSModuleDeclaration"); function _Ce(e, t) { P("TSModuleBlock", e, t); } n(_Ce, "assertTSModuleBlock"); function PCe(e, t) { P("TSImportType", e, t); } n(PCe, "assertTSImportType"); function FCe(e, t) { P("TSImportEqualsDeclaration", e, t); } n(FCe, "assertTSImportEqualsDeclaration"); function ICe(e, t) { P("TSExternalModuleReference", e, t); } n(ICe, "assertTSExternalModuleReference"); function OCe(e, t) { P("TSNonNullExpression", e, t); } n(OCe, "assertTSNonNullExpression"); function kCe(e, t) { P("TSExportAssignment", e, t); } n(kCe, "assertTSExportAssignment"); function BCe(e, t) { P("TSNamespaceExportDeclaration", e, t); } n(BCe, "assertTSNamespaceExportDeclaration"); function NCe(e, t) { P("TSTypeAnnotation", e, t); } n(NCe, "assertTSTypeAnnotation"); function MCe(e, t) { P("TSTypeParameterInstantiation", e, t); } n(MCe, "assertTSTypeParameterInstantiation"); function RCe(e, t) { P("TSTypeParameterDeclaration", e, t); } n(RCe, "assertTSTypeParameterDeclaration"); function LCe(e, t) { P("TSTypeParameter", e, t); } n(LCe, "assertTSTypeParameter"); function jCe(e, t) { P("Standardized", e, t); } n(jCe, "assertStandardized"); function qCe(e, t) { P("Expression", e, t); } n(qCe, "assertExpression"); function UCe(e, t) { P("Binary", e, t); } n(UCe, "assertBinary"); function $Ce(e, t) { P("Scopable", e, t); } n($Ce, "assertScopable"); function VCe(e, t) { P("BlockParent", e, t); } n(VCe, "assertBlockParent"); function WCe(e, t) { P("Block", e, t); } n(WCe, "assertBlock"); function HCe(e, t) { P("Statement", e, t); } n(HCe, "assertStatement"); function KCe(e, t) { P("Terminatorless", e, t); } n(KCe, "assertTerminatorless"); function zCe(e, t) { P("CompletionStatement", e, t); } n(zCe, "assertCompletionStatement"); function JCe(e, t) { P("Conditional", e, t); } n(JCe, "assertConditional"); function XCe(e, t) { P("Loop", e, t); } n(XCe, "assertLoop"); function YCe(e, t) { P("While", e, t); } n(YCe, "assertWhile"); function GCe(e, t) { P("ExpressionWrapper", e, t); } n(GCe, "assertExpressionWrapper"); function ZCe(e, t) { P("For", e, t); } n(ZCe, "assertFor"); function QCe(e, t) { P("ForXStatement", e, t); } n(QCe, "assertForXStatement"); function ewe(e, t) { P("Function", e, t); } n(ewe, "assertFunction"); function twe(e, t) { P("FunctionParent", e, t); } n(twe, "assertFunctionParent"); function rwe(e, t) { P("Pureish", e, t); } n(rwe, "assertPureish"); function iwe(e, t) { P("Declaration", e, t); } n(iwe, "assertDeclaration"); function swe(e, t) { P("FunctionParameter", e, t); } n(swe, "assertFunctionParameter"); function nwe(e, t) { P("PatternLike", e, t); } n(nwe, "assertPatternLike"); function awe(e, t) { P("LVal", e, t); } n(awe, "assertLVal"); function owe(e, t) { P("TSEntityName", e, t); } n(owe, "assertTSEntityName"); function uwe(e, t) { P("Literal", e, t); } n(uwe, "assertLiteral"); function lwe(e, t) { P("Immutable", e, t); } n(lwe, "assertImmutable"); function cwe(e, t) { P("UserWhitespacable", e, t); } n(cwe, "assertUserWhitespacable"); function fwe(e, t) { P("Method", e, t); } n(fwe, "assertMethod"); function dwe(e, t) { P("ObjectMember", e, t); } n(dwe, "assertObjectMember"); function pwe(e, t) { P("Property", e, t); } n(pwe, "assertProperty"); function hwe(e, t) { P("UnaryLike", e, t); } n(hwe, "assertUnaryLike"); function mwe(e, t) { P("Pattern", e, t); } n(mwe, "assertPattern"); function ywe(e, t) { P("Class", e, t); } n(ywe, "assertClass"); function gwe(e, t) { P("ImportOrExportDeclaration", e, t); } n(gwe, "assertImportOrExportDeclaration"); function bwe(e, t) { P("ExportDeclaration", e, t); } n(bwe, "assertExportDeclaration"); function Dwe(e, t) { P("ModuleSpecifier", e, t); } n(Dwe, "assertModuleSpecifier"); function vwe(e, t) { P("Accessor", e, t); } n(vwe, "assertAccessor"); function xwe(e, t) { P("Private", e, t); } n(xwe, "assertPrivate"); function Ewe(e, t) { P("Flow", e, t); } n(Ewe, "assertFlow"); function Swe(e, t) { P("FlowType", e, t); } n(Swe, "assertFlowType"); function Twe(e, t) { P("FlowBaseAnnotation", e, t); } n(Twe, "assertFlowBaseAnnotation"); function Cwe(e, t) { P("FlowDeclaration", e, t); } n(Cwe, "assertFlowDeclaration"); function wwe(e, t) { P("FlowPredicate", e, t); } n(wwe, "assertFlowPredicate"); function Awe(e, t) { P("EnumBody", e, t); } n(Awe, "assertEnumBody"); function _we(e, t) { P("EnumMember", e, t); } n(_we, "assertEnumMember"); function Pwe(e, t) { P("JSX", e, t); } n(Pwe, "assertJSX"); function Fwe(e, t) { P("Miscellaneous", e, t); } n(Fwe, "assertMiscellaneous"); function Iwe(e, t) { P("TypeScript", e, t); } n(Iwe, "assertTypeScript"); function Owe(e, t) { P("TSTypeElement", e, t); } n(Owe, "assertTSTypeElement"); function kwe(e, t) { P("TSType", e, t); } n(kwe, "assertTSType"); function Bwe(e, t) { P("TSBaseType", e, t); } n(Bwe, "assertTSBaseType"); function Nwe(e, t) { (0, Ad.default)("assertNumberLiteral", "assertNumericLiteral"), P("NumberLiteral", e, t); } n(Nwe, "assertNumberLiteral"); function Mwe(e, t) { (0, Ad.default)("assertRegexLiteral", "assertRegExpLiteral"), P("RegexLiteral", e, t); } n(Mwe, "assertRegexLiteral"); function Rwe(e, t) { (0, Ad.default)("assertRestProperty", "assertRestElement"), P("RestProperty", e, t); } n(Rwe, "assertRestProperty"); function Lwe(e, t) { (0, Ad.default)("assertSpreadProperty", "assertSpreadElement"), P("SpreadProperty", e, t); } n(Lwe, "assertSpreadProperty"); function jwe(e, t) { (0, Ad.default)("assertModuleDeclaration", "assertImportOrExportDeclaration"), P("ModuleDeclaration", e, t); } n(jwe, "assertModuleDeclaration"); }); // ../node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js var $M = E((Nm) => { "use strict"; Object.defineProperty(Nm, "__esModule", { value: !0 }); Nm.default = void 0; var ps = hi(), Ypt = Nm.default = qwe; function qwe(e) { switch (e) { case "string": return (0, ps.stringTypeAnnotation)(); case "number": return (0, ps.numberTypeAnnotation)(); case "undefined": return (0, ps.voidTypeAnnotation)(); case "boolean": return (0, ps.booleanTypeAnnotation)(); case "function": return (0, ps.genericTypeAnnotation)((0, ps.identifier)("Function")); case "object": return (0, ps.genericTypeAnnotation)((0, ps.identifier)("Object")); case "symbol": return (0, ps.genericTypeAnnotation)((0, ps.identifier)("Symbol")); case "bigint": return (0, ps.anyTypeAnnotation)(); } throw new Error("Invalid typeof value: " + e); } n(qwe, "createTypeAnnotationBasedOnTypeof"); }); // ../node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js var KE = E((HE) => { "use strict"; Object.defineProperty(HE, "__esModule", { value: !0 }); HE.default = WM; var _d = Jt(); function VM(e) { return (0, _d.isIdentifier)(e) ? e.name : `${e.id.name}.${VM(e.qualification)}`; } n(VM, "getQualifiedName"); function WM(e) { let t = Array.from(e), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set(), a = []; for (let o = 0; o < t.length; o++) { let u = t[o]; if (u && !a.includes(u)) { if ((0, _d.isAnyTypeAnnotation)(u)) return [u]; if ((0, _d.isFlowBaseAnnotation)(u)) { i.set(u.type, u); continue; } if ((0, _d.isUnionTypeAnnotation)(u)) { s.has(u.types) || (t.push(...u.types), s.add(u.types)); continue; } if ((0, _d.isGenericTypeAnnotation)(u)) { let l = VM(u.id); if (r.has(l)) { let c = r.get(l); c.typeParameters ? u.typeParameters && (c.typeParameters.params.push(...u.typeParameters.params), c.typeParameters.params = WM(c. typeParameters.params)) : c = u.typeParameters; } else r.set(l, u); continue; } a.push(u); } } for (let [, o] of i) a.push(o); for (let [, o] of r) a.push(o); return a; } n(WM, "removeTypeDuplicates"); }); // ../node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js var HM = E((zE) => { "use strict"; Object.defineProperty(zE, "__esModule", { value: !0 }); zE.default = Vwe; var Uwe = hi(), $we = KE(); function Vwe(e) { let t = (0, $we.default)(e); return t.length === 1 ? t[0] : (0, Uwe.unionTypeAnnotation)(t); } n(Vwe, "createFlowUnionType"); }); // ../node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js var JM = E((JE) => { "use strict"; Object.defineProperty(JE, "__esModule", { value: !0 }); JE.default = zM; var jl = Jt(); function KM(e) { return (0, jl.isIdentifier)(e) ? e.name : (0, jl.isThisExpression)(e) ? "this" : `${e.right.name}.${KM(e.left)}`; } n(KM, "getQualifiedName"); function zM(e) { let t = Array.from(e), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set(), a = []; for (let o = 0; o < t.length; o++) { let u = t[o]; if (!u || a.includes(u)) continue; if ((0, jl.isTSAnyKeyword)(u)) return [u]; if ((0, jl.isTSBaseType)(u)) { i.set(u.type, u); continue; } if ((0, jl.isTSUnionType)(u)) { s.has(u.types) || (t.push(...u.types), s.add(u.types)); continue; } let l = "typeParameters"; if ((0, jl.isTSTypeReference)(u) && u[l]) { let c = u[l], f = KM(u.typeName); if (r.has(f)) { let m = r.get(f), h = m[l]; h ? (h.params.push(...c.params), h.params = zM(h.params)) : m = c; } else r.set(f, u); continue; } a.push(u); } for (let [, o] of i) a.push(o); for (let [, o] of r) a.push(o); return a; } n(zM, "removeTypeDuplicates"); }); // ../node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js var XM = E((XE) => { "use strict"; Object.defineProperty(XE, "__esModule", { value: !0 }); XE.default = zwe; var Wwe = hi(), Hwe = JM(), Kwe = Jt(); function zwe(e) { let t = e.map((i) => (0, Kwe.isTSTypeAnnotation)(i) ? i.typeAnnotation : i), r = (0, Hwe.default)(t); return r.length === 1 ? r[0] : (0, Wwe.tsUnionType)(r); } n(zwe, "createTSUnionType"); }); // ../node_modules/@babel/types/lib/builders/productions.js var GE = E((YE) => { "use strict"; Object.defineProperty(YE, "__esModule", { value: !0 }); YE.buildUndefinedNode = Jwe; var YM = hi(); function Jwe() { return (0, YM.unaryExpression)("void", (0, YM.numericLiteral)(0), !0); } n(Jwe, "buildUndefinedNode"); }); // ../node_modules/@babel/types/lib/clone/cloneNode.js var Ia = E((QE) => { "use strict"; Object.defineProperty(QE, "__esModule", { value: !0 }); QE.default = Xwe; var GM = Vi(), ZM = Jt(), { hasOwn: Gs } = { hasOwn: Function.call.bind(Object.prototype.hasOwnProperty) }; function QM(e, t, r, i) { return e && typeof e.type == "string" ? eR(e, t, r, i) : e; } n(QM, "cloneIfNode"); function ZE(e, t, r, i) { return Array.isArray(e) ? e.map((s) => QM(s, t, r, i)) : QM(e, t, r, i); } n(ZE, "cloneIfNodeOrArray"); function Xwe(e, t = !0, r = !1) { return eR(e, t, r, /* @__PURE__ */ new Map()); } n(Xwe, "cloneNode"); function eR(e, t = !0, r = !1, i) { if (!e) return e; let { type: s } = e, a = { type: e.type }; if ((0, ZM.isIdentifier)(e)) a.name = e.name, Gs(e, "optional") && typeof e.optional == "boolean" && (a.optional = e.optional), Gs(e, "typeAnnotation") && (a.typeAnnotation = t ? ZE(e.typeAnnotation, !0, r, i) : e.typeAnnotation), Gs(e, "decorators") && (a.decorators = t ? ZE(e.decorators, !0, r, i) : e.decorators); else if (Gs(GM.NODE_FIELDS, s)) for (let o of Object.keys(GM.NODE_FIELDS[s])) Gs(e, o) && (t ? a[o] = (0, ZM.isFile)(e) && o === "comments" ? Mm(e.comments, t, r, i) : ZE(e[o], !0, r, i) : a[o] = e[o]); else throw new Error(`Unknown node type: "${s}"`); return Gs(e, "loc") && (r ? a.loc = null : a.loc = e.loc), Gs(e, "leadingComments") && (a.leadingComments = Mm(e.leadingComments, t, r, i)), Gs(e, "innerComments") && (a.innerComments = Mm(e.innerComments, t, r, i)), Gs(e, "trailingComments") && (a.trailingComments = Mm(e.trailingComments, t, r, i)), Gs(e, "extra") && (a.extra = Object.assign({}, e.extra)), a; } n(eR, "cloneNodeInternal"); function Mm(e, t, r, i) { return !e || !t ? e : e.map((s) => { let a = i.get(s); if (a) return a; let { type: o, value: u, loc: l } = s, c = { type: o, value: u, loc: l }; return r && (c.loc = null), i.set(s, c), c; }); } n(Mm, "maybeCloneComments"); }); // ../node_modules/@babel/types/lib/clone/clone.js var tR = E((eS) => { "use strict"; Object.defineProperty(eS, "__esModule", { value: !0 }); eS.default = Gwe; var Ywe = Ia(); function Gwe(e) { return (0, Ywe.default)(e, !1); } n(Gwe, "clone"); }); // ../node_modules/@babel/types/lib/clone/cloneDeep.js var rR = E((tS) => { "use strict"; Object.defineProperty(tS, "__esModule", { value: !0 }); tS.default = Qwe; var Zwe = Ia(); function Qwe(e) { return (0, Zwe.default)(e); } n(Qwe, "cloneDeep"); }); // ../node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js var iR = E((rS) => { "use strict"; Object.defineProperty(rS, "__esModule", { value: !0 }); rS.default = tAe; var eAe = Ia(); function tAe(e) { return (0, eAe.default)(e, !0, !0); } n(tAe, "cloneDeepWithoutLoc"); }); // ../node_modules/@babel/types/lib/clone/cloneWithoutLoc.js var sR = E((iS) => { "use strict"; Object.defineProperty(iS, "__esModule", { value: !0 }); iS.default = iAe; var rAe = Ia(); function iAe(e) { return (0, rAe.default)(e, !1, !0); } n(iAe, "cloneWithoutLoc"); }); // ../node_modules/@babel/types/lib/comments/addComments.js var nS = E((sS) => { "use strict"; Object.defineProperty(sS, "__esModule", { value: !0 }); sS.default = sAe; function sAe(e, t, r) { if (!r || !e) return e; let i = `${t}Comments`; return e[i] ? t === "leading" ? e[i] = r.concat(e[i]) : e[i].push(...r) : e[i] = r, e; } n(sAe, "addComments"); }); // ../node_modules/@babel/types/lib/comments/addComment.js var nR = E((aS) => { "use strict"; Object.defineProperty(aS, "__esModule", { value: !0 }); aS.default = aAe; var nAe = nS(); function aAe(e, t, r, i) { return (0, nAe.default)(e, t, [{ type: i ? "CommentLine" : "CommentBlock", value: r }]); } n(aAe, "addComment"); }); // ../node_modules/@babel/types/lib/utils/inherit.js var Rm = E((oS) => { "use strict"; Object.defineProperty(oS, "__esModule", { value: !0 }); oS.default = oAe; function oAe(e, t, r) { t && r && (t[e] = Array.from(new Set([].concat(t[e], r[e]).filter(Boolean)))); } n(oAe, "inherit"); }); // ../node_modules/@babel/types/lib/comments/inheritInnerComments.js var lS = E((uS) => { "use strict"; Object.defineProperty(uS, "__esModule", { value: !0 }); uS.default = lAe; var uAe = Rm(); function lAe(e, t) { (0, uAe.default)("innerComments", e, t); } n(lAe, "inheritInnerComments"); }); // ../node_modules/@babel/types/lib/comments/inheritLeadingComments.js var fS = E((cS) => { "use strict"; Object.defineProperty(cS, "__esModule", { value: !0 }); cS.default = fAe; var cAe = Rm(); function fAe(e, t) { (0, cAe.default)("leadingComments", e, t); } n(fAe, "inheritLeadingComments"); }); // ../node_modules/@babel/types/lib/comments/inheritTrailingComments.js var pS = E((dS) => { "use strict"; Object.defineProperty(dS, "__esModule", { value: !0 }); dS.default = pAe; var dAe = Rm(); function pAe(e, t) { (0, dAe.default)("trailingComments", e, t); } n(pAe, "inheritTrailingComments"); }); // ../node_modules/@babel/types/lib/comments/inheritsComments.js var mS = E((hS) => { "use strict"; Object.defineProperty(hS, "__esModule", { value: !0 }); hS.default = gAe; var hAe = pS(), mAe = fS(), yAe = lS(); function gAe(e, t) { return (0, hAe.default)(e, t), (0, mAe.default)(e, t), (0, yAe.default)(e, t), e; } n(gAe, "inheritsComments"); }); // ../node_modules/@babel/types/lib/comments/removeComments.js var aR = E((yS) => { "use strict"; Object.defineProperty(yS, "__esModule", { value: !0 }); yS.default = DAe; var bAe = Bl(); function DAe(e) { return bAe.COMMENT_KEYS.forEach((t) => { e[t] = null; }), e; } n(DAe, "removeComments"); }); // ../node_modules/@babel/types/lib/constants/generated/index.js var oR = E((Q) => { "use strict"; Object.defineProperty(Q, "__esModule", { value: !0 }); Q.WHILE_TYPES = Q.USERWHITESPACABLE_TYPES = Q.UNARYLIKE_TYPES = Q.TYPESCRIPT_TYPES = Q.TSTYPE_TYPES = Q.TSTYPEELEMENT_TYPES = Q.TSENTITYNAME_TYPES = Q.TSBASETYPE_TYPES = Q.TERMINATORLESS_TYPES = Q.STATEMENT_TYPES = Q.STANDARDIZED_TYPES = Q.SCOPABLE_TYPES = Q.PUREISH_TYPES = Q.PROPERTY_TYPES = Q.PRIVATE_TYPES = Q.PATTERN_TYPES = Q.PATTERNLIKE_TYPES = Q.OBJECTMEMBER_TYPES = Q.MODULESPECIFIER_TYPES = Q.MODULEDECLARATION_TYPES = Q.MISCELLANEOUS_TYPES = Q.METHOD_TYPES = Q.LVAL_TYPES = Q.LOOP_TYPES = Q.LITERAL_TYPES = Q.JSX_TYPES = Q.IMPORTOREXPORTDECLARATION_TYPES = Q.IMMUTABLE_TYPES = Q.FUNCTION_TYPES = Q.FUNCTIONPARENT_TYPES = Q.FUNCTIONPARAMETER_TYPES = Q.FOR_TYPES = Q.FORXSTATEMENT_TYPES = Q.FLOW_TYPES = Q.FLOWTYPE_TYPES = Q.FLOWPREDICATE_TYPES = Q.FLOWDECLARATION_TYPES = Q.FLOWBASEANNOTATION_TYPES = Q.EXPRESSION_TYPES = Q.EXPRESSIONWRAPPER_TYPES = Q.EXPORTDECLARATION_TYPES = Q.ENUMMEMBER_TYPES = Q.ENUMBODY_TYPES = Q.DECLARATION_TYPES = Q.CONDITIONAL_TYPES = Q.COMPLETIONSTATEMENT_TYPES = Q.CLASS_TYPES = Q.BLOCK_TYPES = Q.BLOCKPARENT_TYPES = Q.BINARY_TYPES = Q.ACCESSOR_TYPES = void 0; var Oe = Vi(), Nht = Q.STANDARDIZED_TYPES = Oe.FLIPPED_ALIAS_KEYS.Standardized, Mht = Q.EXPRESSION_TYPES = Oe.FLIPPED_ALIAS_KEYS.Expression, Rht = Q.BINARY_TYPES = Oe.FLIPPED_ALIAS_KEYS.Binary, Lht = Q.SCOPABLE_TYPES = Oe.FLIPPED_ALIAS_KEYS.Scopable, jht = Q.BLOCKPARENT_TYPES = Oe. FLIPPED_ALIAS_KEYS.BlockParent, qht = Q.BLOCK_TYPES = Oe.FLIPPED_ALIAS_KEYS.Block, Uht = Q.STATEMENT_TYPES = Oe.FLIPPED_ALIAS_KEYS.Statement, $ht = Q.TERMINATORLESS_TYPES = Oe.FLIPPED_ALIAS_KEYS.Terminatorless, Vht = Q.COMPLETIONSTATEMENT_TYPES = Oe.FLIPPED_ALIAS_KEYS.CompletionStatement, Wht = Q.CONDITIONAL_TYPES = Oe.FLIPPED_ALIAS_KEYS.Conditional, Hht = Q.LOOP_TYPES = Oe.FLIPPED_ALIAS_KEYS.Loop, Kht = Q.WHILE_TYPES = Oe.FLIPPED_ALIAS_KEYS. While, zht = Q.EXPRESSIONWRAPPER_TYPES = Oe.FLIPPED_ALIAS_KEYS.ExpressionWrapper, Jht = Q.FOR_TYPES = Oe.FLIPPED_ALIAS_KEYS.For, Xht = Q.FORXSTATEMENT_TYPES = Oe.FLIPPED_ALIAS_KEYS.ForXStatement, Yht = Q.FUNCTION_TYPES = Oe.FLIPPED_ALIAS_KEYS.Function, Ght = Q.FUNCTIONPARENT_TYPES = Oe.FLIPPED_ALIAS_KEYS. FunctionParent, Zht = Q.PUREISH_TYPES = Oe.FLIPPED_ALIAS_KEYS.Pureish, Qht = Q.DECLARATION_TYPES = Oe.FLIPPED_ALIAS_KEYS.Declaration, e0t = Q. FUNCTIONPARAMETER_TYPES = Oe.FLIPPED_ALIAS_KEYS.FunctionParameter, t0t = Q.PATTERNLIKE_TYPES = Oe.FLIPPED_ALIAS_KEYS.PatternLike, r0t = Q. LVAL_TYPES = Oe.FLIPPED_ALIAS_KEYS.LVal, i0t = Q.TSENTITYNAME_TYPES = Oe.FLIPPED_ALIAS_KEYS.TSEntityName, s0t = Q.LITERAL_TYPES = Oe.FLIPPED_ALIAS_KEYS. Literal, n0t = Q.IMMUTABLE_TYPES = Oe.FLIPPED_ALIAS_KEYS.Immutable, a0t = Q.USERWHITESPACABLE_TYPES = Oe.FLIPPED_ALIAS_KEYS.UserWhitespacable, o0t = Q.METHOD_TYPES = Oe.FLIPPED_ALIAS_KEYS.Method, u0t = Q.OBJECTMEMBER_TYPES = Oe.FLIPPED_ALIAS_KEYS.ObjectMember, l0t = Q.PROPERTY_TYPES = Oe.FLIPPED_ALIAS_KEYS.Property, c0t = Q.UNARYLIKE_TYPES = Oe.FLIPPED_ALIAS_KEYS.UnaryLike, f0t = Q.PATTERN_TYPES = Oe.FLIPPED_ALIAS_KEYS.Pattern, d0t = Q.CLASS_TYPES = Oe.FLIPPED_ALIAS_KEYS.Class, vAe = Q.IMPORTOREXPORTDECLARATION_TYPES = Oe.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration, p0t = Q.EXPORTDECLARATION_TYPES = Oe.FLIPPED_ALIAS_KEYS.ExportDeclaration, h0t = Q.MODULESPECIFIER_TYPES = Oe.FLIPPED_ALIAS_KEYS.ModuleSpecifier, m0t = Q.ACCESSOR_TYPES = Oe.FLIPPED_ALIAS_KEYS.Accessor, y0t = Q.PRIVATE_TYPES = Oe.FLIPPED_ALIAS_KEYS.Private, g0t = Q.FLOW_TYPES = Oe.FLIPPED_ALIAS_KEYS. Flow, b0t = Q.FLOWTYPE_TYPES = Oe.FLIPPED_ALIAS_KEYS.FlowType, D0t = Q.FLOWBASEANNOTATION_TYPES = Oe.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation, v0t = Q.FLOWDECLARATION_TYPES = Oe.FLIPPED_ALIAS_KEYS.FlowDeclaration, x0t = Q.FLOWPREDICATE_TYPES = Oe.FLIPPED_ALIAS_KEYS.FlowPredicate, E0t = Q. ENUMBODY_TYPES = Oe.FLIPPED_ALIAS_KEYS.EnumBody, S0t = Q.ENUMMEMBER_TYPES = Oe.FLIPPED_ALIAS_KEYS.EnumMember, T0t = Q.JSX_TYPES = Oe.FLIPPED_ALIAS_KEYS. JSX, C0t = Q.MISCELLANEOUS_TYPES = Oe.FLIPPED_ALIAS_KEYS.Miscellaneous, w0t = Q.TYPESCRIPT_TYPES = Oe.FLIPPED_ALIAS_KEYS.TypeScript, A0t = Q. TSTYPEELEMENT_TYPES = Oe.FLIPPED_ALIAS_KEYS.TSTypeElement, _0t = Q.TSTYPE_TYPES = Oe.FLIPPED_ALIAS_KEYS.TSType, P0t = Q.TSBASETYPE_TYPES = Oe.FLIPPED_ALIAS_KEYS.TSBaseType, F0t = Q.MODULEDECLARATION_TYPES = vAe; }); // ../node_modules/@babel/types/lib/converters/toBlock.js var DS = E((bS) => { "use strict"; Object.defineProperty(bS, "__esModule", { value: !0 }); bS.default = xAe; var Lm = Jt(), gS = hi(); function xAe(e, t) { if ((0, Lm.isBlockStatement)(e)) return e; let r = []; return (0, Lm.isEmptyStatement)(e) ? r = [] : ((0, Lm.isStatement)(e) || ((0, Lm.isFunction)(t) ? e = (0, gS.returnStatement)(e) : e = (0, gS. expressionStatement)(e)), r = [e]), (0, gS.blockStatement)(r); } n(xAe, "toBlock"); }); // ../node_modules/@babel/types/lib/converters/ensureBlock.js var uR = E((vS) => { "use strict"; Object.defineProperty(vS, "__esModule", { value: !0 }); vS.default = SAe; var EAe = DS(); function SAe(e, t = "body") { let r = (0, EAe.default)(e[t], e); return e[t] = r, r; } n(SAe, "ensureBlock"); }); // ../node_modules/@babel/types/lib/converters/toIdentifier.js var ES = E((xS) => { "use strict"; Object.defineProperty(xS, "__esModule", { value: !0 }); xS.default = wAe; var TAe = kl(), CAe = Ol(); function wAe(e) { e = e + ""; let t = ""; for (let r of e) t += (0, CAe.isIdentifierChar)(r.codePointAt(0)) ? r : "-"; return t = t.replace(/^[-0-9]+/, ""), t = t.replace(/[-\s]+(.)?/g, function(r, i) { return i ? i.toUpperCase() : ""; }), (0, TAe.default)(t) || (t = `_${t}`), t || "_"; } n(wAe, "toIdentifier"); }); // ../node_modules/@babel/types/lib/converters/toBindingIdentifierName.js var lR = E((SS) => { "use strict"; Object.defineProperty(SS, "__esModule", { value: !0 }); SS.default = _Ae; var AAe = ES(); function _Ae(e) { return e = (0, AAe.default)(e), (e === "eval" || e === "arguments") && (e = "_" + e), e; } n(_Ae, "toBindingIdentifierName"); }); // ../node_modules/@babel/types/lib/converters/toComputedKey.js var cR = E((TS) => { "use strict"; Object.defineProperty(TS, "__esModule", { value: !0 }); TS.default = IAe; var PAe = Jt(), FAe = hi(); function IAe(e, t = e.key || e.property) { return !e.computed && (0, PAe.isIdentifier)(t) && (t = (0, FAe.stringLiteral)(t.name)), t; } n(IAe, "toComputedKey"); }); // ../node_modules/@babel/types/lib/converters/toExpression.js var fR = E((jm) => { "use strict"; Object.defineProperty(jm, "__esModule", { value: !0 }); jm.default = void 0; var Pd = Jt(), $0t = jm.default = OAe; function OAe(e) { if ((0, Pd.isExpressionStatement)(e) && (e = e.expression), (0, Pd.isExpression)(e)) return e; if ((0, Pd.isClass)(e) ? (e.type = "ClassExpression", e.abstract = !1) : (0, Pd.isFunction)(e) && (e.type = "FunctionExpression"), !(0, Pd. isExpression)(e)) throw new Error(`cannot turn ${e.type} to an expression`); return e; } n(OAe, "toExpression"); }); // ../node_modules/@babel/types/lib/traverse/traverseFast.js var wS = E((CS) => { "use strict"; Object.defineProperty(CS, "__esModule", { value: !0 }); CS.default = Fd; var kAe = Vi(), dR = Symbol(), pR = Symbol(); function Fd(e, t, r) { if (!e) return !1; let i = kAe.VISITOR_KEYS[e.type]; if (!i) return !1; r = r || {}; let s = t(e, r); if (s !== void 0) switch (s) { case dR: return !1; case pR: return !0; } for (let a of i) { let o = e[a]; if (o) { if (Array.isArray(o)) { for (let u of o) if (Fd(u, t, r)) return !0; } else if (Fd(o, t, r)) return !0; } } return !1; } n(Fd, "traverseFast"); Fd.skip = dR; Fd.stop = pR; }); // ../node_modules/@babel/types/lib/modifications/removeProperties.js var _S = E((AS) => { "use strict"; Object.defineProperty(AS, "__esModule", { value: !0 }); AS.default = MAe; var BAe = Bl(), hR = ["tokens", "start", "end", "loc", "raw", "rawValue"], NAe = [...BAe.COMMENT_KEYS, "comments", ...hR]; function MAe(e, t = {}) { let r = t.preserveComments ? hR : NAe; for (let s of r) e[s] != null && (e[s] = void 0); for (let s of Object.keys(e)) s[0] === "_" && e[s] != null && (e[s] = void 0); let i = Object.getOwnPropertySymbols(e); for (let s of i) e[s] = null; } n(MAe, "removeProperties"); }); // ../node_modules/@babel/types/lib/modifications/removePropertiesDeep.js var FS = E((PS) => { "use strict"; Object.defineProperty(PS, "__esModule", { value: !0 }); PS.default = jAe; var RAe = wS(), LAe = _S(); function jAe(e, t) { return (0, RAe.default)(e, LAe.default, t), e; } n(jAe, "removePropertiesDeep"); }); // ../node_modules/@babel/types/lib/converters/toKeyAlias.js var yR = E((IS) => { "use strict"; Object.defineProperty(IS, "__esModule", { value: !0 }); IS.default = jo; var mR = Jt(), qAe = Ia(), UAe = FS(); function jo(e, t = e.key) { let r; return e.kind === "method" ? jo.increment() + "" : ((0, mR.isIdentifier)(t) ? r = t.name : (0, mR.isStringLiteral)(t) ? r = JSON.stringify( t.value) : r = JSON.stringify((0, UAe.default)((0, qAe.default)(t))), e.computed && (r = `[${r}]`), e.static && (r = `static:${r}`), r); } n(jo, "toKeyAlias"); jo.uid = 0; jo.increment = function() { return jo.uid >= Number.MAX_SAFE_INTEGER ? jo.uid = 0 : jo.uid++; }; }); // ../node_modules/@babel/types/lib/converters/toStatement.js var gR = E((Um) => { "use strict"; Object.defineProperty(Um, "__esModule", { value: !0 }); Um.default = void 0; var qm = Jt(), $Ae = hi(), Q0t = Um.default = VAe; function VAe(e, t) { if ((0, qm.isStatement)(e)) return e; let r = !1, i; if ((0, qm.isClass)(e)) r = !0, i = "ClassDeclaration"; else if ((0, qm.isFunction)(e)) r = !0, i = "FunctionDeclaration"; else if ((0, qm.isAssignmentExpression)(e)) return (0, $Ae.expressionStatement)(e); if (r && !e.id && (i = !1), !i) { if (t) return !1; throw new Error(`cannot turn ${e.type} to a statement`); } return e.type = i, e; } n(VAe, "toStatement"); }); // ../node_modules/@babel/types/lib/converters/valueToNode.js var bR = E(($m) => { "use strict"; Object.defineProperty($m, "__esModule", { value: !0 }); $m.default = void 0; var WAe = kl(), lr = hi(), rmt = $m.default = OS, HAe = Function.call.bind(Object.prototype.toString); function KAe(e) { return HAe(e) === "[object RegExp]"; } n(KAe, "isRegExp"); function zAe(e) { if (typeof e != "object" || e === null || Object.prototype.toString.call(e) !== "[object Object]") return !1; let t = Object.getPrototypeOf(e); return t === null || Object.getPrototypeOf(t) === null; } n(zAe, "isPlainObject"); function OS(e) { if (e === void 0) return (0, lr.identifier)("undefined"); if (e === !0 || e === !1) return (0, lr.booleanLiteral)(e); if (e === null) return (0, lr.nullLiteral)(); if (typeof e == "string") return (0, lr.stringLiteral)(e); if (typeof e == "number") { let t; if (Number.isFinite(e)) t = (0, lr.numericLiteral)(Math.abs(e)); else { let r; Number.isNaN(e) ? r = (0, lr.numericLiteral)(0) : r = (0, lr.numericLiteral)(1), t = (0, lr.binaryExpression)("/", r, (0, lr.numericLiteral)( 0)); } return (e < 0 || Object.is(e, -0)) && (t = (0, lr.unaryExpression)("-", t)), t; } if (typeof e == "bigint") return e < 0 ? (0, lr.unaryExpression)("-", (0, lr.bigIntLiteral)(-e)) : (0, lr.bigIntLiteral)(e); if (KAe(e)) { let t = e.source, r = /\/([a-z]*)$/.exec(e.toString())[1]; return (0, lr.regExpLiteral)(t, r); } if (Array.isArray(e)) return (0, lr.arrayExpression)(e.map(OS)); if (zAe(e)) { let t = []; for (let r of Object.keys(e)) { let i, s = !1; (0, WAe.default)(r) ? r === "__proto__" ? (s = !0, i = (0, lr.stringLiteral)(r)) : i = (0, lr.identifier)(r) : i = (0, lr.stringLiteral)( r), t.push((0, lr.objectProperty)(i, OS(e[r]), s)); } return (0, lr.objectExpression)(t); } throw new Error("don't know how to turn this value into a node"); } n(OS, "valueToNode"); }); // ../node_modules/@babel/types/lib/modifications/appendToMemberExpression.js var DR = E((kS) => { "use strict"; Object.defineProperty(kS, "__esModule", { value: !0 }); kS.default = XAe; var JAe = hi(); function XAe(e, t, r = !1) { return e.object = (0, JAe.memberExpression)(e.object, e.property, e.computed), e.property = t, e.computed = !!r, e; } n(XAe, "appendToMemberExpression"); }); // ../node_modules/@babel/types/lib/modifications/inherits.js var xR = E((BS) => { "use strict"; Object.defineProperty(BS, "__esModule", { value: !0 }); BS.default = GAe; var vR = Bl(), YAe = mS(); function GAe(e, t) { if (!e || !t) return e; for (let r of vR.INHERIT_KEYS.optional) e[r] == null && (e[r] = t[r]); for (let r of Object.keys(t)) r[0] === "_" && r !== "__clone" && (e[r] = t[r]); for (let r of vR.INHERIT_KEYS.force) e[r] = t[r]; return (0, YAe.default)(e, t), e; } n(GAe, "inherits"); }); // ../node_modules/@babel/types/lib/modifications/prependToMemberExpression.js var ER = E((NS) => { "use strict"; Object.defineProperty(NS, "__esModule", { value: !0 }); NS.default = e_e; var ZAe = hi(), QAe = Pe(); function e_e(e, t) { if ((0, QAe.isSuper)(e.object)) throw new Error("Cannot prepend node to super property access (`super.foo`)."); return e.object = (0, ZAe.memberExpression)(t, e.object), e; } n(e_e, "prependToMemberExpression"); }); // ../node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js var SR = E((MS) => { "use strict"; Object.defineProperty(MS, "__esModule", { value: !0 }); MS.default = t_e; function t_e(e) { let t = [].concat(e), r = /* @__PURE__ */ Object.create(null); for (; t.length; ) { let i = t.pop(); if (i) switch (i.type) { case "ArrayPattern": t.push(...i.elements); break; case "AssignmentExpression": case "AssignmentPattern": case "ForInStatement": case "ForOfStatement": t.push(i.left); break; case "ObjectPattern": t.push(...i.properties); break; case "ObjectProperty": t.push(i.value); break; case "RestElement": case "UpdateExpression": t.push(i.argument); break; case "UnaryExpression": i.operator === "delete" && t.push(i.argument); break; case "Identifier": r[i.name] = i; break; default: break; } } return r; } n(t_e, "getAssignmentIdentifiers"); }); // ../node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js var Id = E((LS) => { "use strict"; Object.defineProperty(LS, "__esModule", { value: !0 }); LS.default = RS; var Nn = Jt(); function RS(e, t, r, i) { let s = [].concat(e), a = /* @__PURE__ */ Object.create(null); for (; s.length; ) { let o = s.shift(); if (!o || i && ((0, Nn.isAssignmentExpression)(o) || (0, Nn.isUnaryExpression)(o) || (0, Nn.isUpdateExpression)(o))) continue; if ((0, Nn.isIdentifier)(o)) { t ? (a[o.name] = a[o.name] || []).push(o) : a[o.name] = o; continue; } if ((0, Nn.isExportDeclaration)(o) && !(0, Nn.isExportAllDeclaration)(o)) { (0, Nn.isDeclaration)(o.declaration) && s.push(o.declaration); continue; } if (r) { if ((0, Nn.isFunctionDeclaration)(o)) { s.push(o.id); continue; } if ((0, Nn.isFunctionExpression)(o)) continue; } let u = RS.keys[o.type]; if (u) for (let l = 0; l < u.length; l++) { let c = u[l], f = o[c]; f && (Array.isArray(f) ? s.push(...f) : s.push(f)); } } return a; } n(RS, "getBindingIdentifiers"); var r_e = { DeclareClass: ["id"], DeclareFunction: ["id"], DeclareModule: ["id"], DeclareVariable: ["id"], DeclareInterface: ["id"], DeclareTypeAlias: ["id"], DeclareOpaqueType: ["id"], InterfaceDeclaration: ["id"], TypeAlias: ["id"], OpaqueType: ["id"], CatchClause: ["param"], LabeledStatement: ["label"], UnaryExpression: ["argument"], AssignmentExpression: ["left"], ImportSpecifier: ["local"], ImportNamespaceSpecifier: ["local"], ImportDefaultSpecifier: ["local"], ImportDeclaration: ["specifiers"], TSImportEqualsDeclaration: ["id"], ExportSpecifier: ["exported"], ExportNamespaceSpecifier: ["exported"], ExportDefaultSpecifier: ["exported"], FunctionDeclaration: ["id", "params"], FunctionExpression: ["id", "params"], ArrowFunctionExpression: ["params"], ObjectMethod: ["params"], ClassMethod: ["params"], ClassPrivateMethod: ["params"], ForInStatement: ["left"], ForOfStatement: ["left"], ClassDeclaration: ["id"], ClassExpression: ["id"], RestElement: ["argument"], UpdateExpression: ["argument"], ObjectProperty: ["value"], AssignmentPattern: ["left"], ArrayPattern: ["elements"], ObjectPattern: ["properties"], VariableDeclaration: ["declarations"], VariableDeclarator: ["id"] }; RS.keys = r_e; }); // ../node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js var TR = E((Vm) => { "use strict"; Object.defineProperty(Vm, "__esModule", { value: !0 }); Vm.default = void 0; var i_e = Id(), mmt = Vm.default = s_e; function s_e(e, t) { return (0, i_e.default)(e, t, !0); } n(s_e, "getOuterBindingIdentifiers"); }); // ../node_modules/@babel/types/lib/retrievers/getFunctionName.js var wR = E((jS) => { "use strict"; Object.defineProperty(jS, "__esModule", { value: !0 }); jS.default = a_e; var Wi = Jt(); function n_e(e) { return (0, Wi.isNullLiteral)(e) ? "null" : (0, Wi.isRegExpLiteral)(e) ? `/${e.pattern}/${e.flags}` : (0, Wi.isTemplateLiteral)(e) ? e.quasis. map((t) => t.value.raw).join("") : e.value !== void 0 ? String(e.value) : null; } n(n_e, "getNameFromLiteralId"); function CR(e) { if (!e.computed || (0, Wi.isLiteral)(e.key)) return e.key; } n(CR, "getObjectMemberKey"); function a_e(e, t) { if ("id" in e && e.id) return { name: e.id.name, originalNode: e.id }; let r = "", i; if ((0, Wi.isObjectProperty)(t, { value: e }) ? i = CR(t) : (0, Wi.isObjectMethod)(e) || (0, Wi.isClassMethod)(e) ? (i = CR(e), e.kind === "get" ? r = "get " : e.kind === "set" && (r = "set ")) : (0, Wi.isVariableDeclarator)(t, { init: e }) ? i = t.id : (0, Wi.isAssignmentExpression)(t, { operator: "=", right: e }) && (i = t.left), !i) return null; let s = (0, Wi.isLiteral)(i) ? n_e(i) : (0, Wi.isIdentifier)(i) ? i.name : (0, Wi.isPrivateName)(i) ? i.id.name : null; return s == null ? null : { name: r + s, originalNode: i }; } n(a_e, "getFunctionName"); }); // ../node_modules/@babel/types/lib/traverse/traverse.js var AR = E((US) => { "use strict"; Object.defineProperty(US, "__esModule", { value: !0 }); US.default = u_e; var o_e = Vi(); function u_e(e, t, r) { typeof t == "function" && (t = { enter: t }); let { enter: i, exit: s } = t; qS(e, i, s, r, []); } n(u_e, "traverse"); function qS(e, t, r, i, s) { let a = o_e.VISITOR_KEYS[e.type]; if (a) { t && t(e, s, i); for (let o of a) { let u = e[o]; if (Array.isArray(u)) for (let l = 0; l < u.length; l++) { let c = u[l]; c && (s.push({ node: e, key: o, index: l }), qS(c, t, r, i, s), s.pop()); } else u && (s.push({ node: e, key: o }), qS(u, t, r, i, s), s.pop()); } r && r(e, s, i); } } n(qS, "traverseSimpleImpl"); }); // ../node_modules/@babel/types/lib/validators/isBinding.js var _R = E(($S) => { "use strict"; Object.defineProperty($S, "__esModule", { value: !0 }); $S.default = c_e; var l_e = Id(); function c_e(e, t, r) { if (r && e.type === "Identifier" && t.type === "ObjectProperty" && r.type === "ObjectExpression") return !1; let i = l_e.default.keys[t.type]; if (i) for (let s = 0; s < i.length; s++) { let a = i[s], o = t[a]; if (Array.isArray(o)) { if (o.includes(e)) return !0; } else if (o === e) return !0; } return !1; } n(c_e, "isBinding"); }); // ../node_modules/@babel/types/lib/validators/isLet.js var WS = E((VS) => { "use strict"; Object.defineProperty(VS, "__esModule", { value: !0 }); VS.default = d_e; var f_e = Jt(); PR = Symbol.for("var used to be block scoped"); var PR; function d_e(e) { return (0, f_e.isVariableDeclaration)(e) && (e.kind !== "var" || e[PR]); } n(d_e, "isLet"); }); // ../node_modules/@babel/types/lib/validators/isBlockScoped.js var IR = E((HS) => { "use strict"; Object.defineProperty(HS, "__esModule", { value: !0 }); HS.default = h_e; var FR = Jt(), p_e = WS(); function h_e(e) { return (0, FR.isFunctionDeclaration)(e) || (0, FR.isClassDeclaration)(e) || (0, p_e.default)(e); } n(h_e, "isBlockScoped"); }); // ../node_modules/@babel/types/lib/validators/isImmutable.js var OR = E((KS) => { "use strict"; Object.defineProperty(KS, "__esModule", { value: !0 }); KS.default = g_e; var m_e = Cm(), y_e = Jt(); function g_e(e) { return (0, m_e.default)(e.type, "Immutable") ? !0 : (0, y_e.isIdentifier)(e) ? e.name === "undefined" : !1; } n(g_e, "isImmutable"); }); // ../node_modules/@babel/types/lib/validators/isNodesEquivalent.js var BR = E((JS) => { "use strict"; Object.defineProperty(JS, "__esModule", { value: !0 }); JS.default = zS; var kR = Vi(); function zS(e, t) { if (typeof e != "object" || typeof t != "object" || e == null || t == null) return e === t; if (e.type !== t.type) return !1; let r = Object.keys(kR.NODE_FIELDS[e.type] || e.type), i = kR.VISITOR_KEYS[e.type]; for (let s of r) { let a = e[s], o = t[s]; if (typeof a != typeof o) return !1; if (!(a == null && o == null)) { if (a == null || o == null) return !1; if (Array.isArray(a)) { if (!Array.isArray(o) || a.length !== o.length) return !1; for (let u = 0; u < a.length; u++) if (!zS(a[u], o[u])) return !1; continue; } if (typeof a == "object" && !(i != null && i.includes(s))) { for (let u of Object.keys(a)) if (a[u] !== o[u]) return !1; continue; } if (!zS(a, o)) return !1; } } return !0; } n(zS, "isNodesEquivalent"); }); // ../node_modules/@babel/types/lib/validators/isReferenced.js var NR = E((XS) => { "use strict"; Object.defineProperty(XS, "__esModule", { value: !0 }); XS.default = b_e; function b_e(e, t, r) { switch (t.type) { case "MemberExpression": case "OptionalMemberExpression": return t.property === e ? !!t.computed : t.object === e; case "JSXMemberExpression": return t.object === e; case "VariableDeclarator": return t.init === e; case "ArrowFunctionExpression": return t.body === e; case "PrivateName": return !1; case "ClassMethod": case "ClassPrivateMethod": case "ObjectMethod": return t.key === e ? !!t.computed : !1; case "ObjectProperty": return t.key === e ? !!t.computed : !r || r.type !== "ObjectPattern"; case "ClassProperty": case "ClassAccessorProperty": return t.key === e ? !!t.computed : !0; case "ClassPrivateProperty": return t.key !== e; case "ClassDeclaration": case "ClassExpression": return t.superClass === e; case "AssignmentExpression": return t.right === e; case "AssignmentPattern": return t.right === e; case "LabeledStatement": return !1; case "CatchClause": return !1; case "RestElement": return !1; case "BreakStatement": case "ContinueStatement": return !1; case "FunctionDeclaration": case "FunctionExpression": return !1; case "ExportNamespaceSpecifier": case "ExportDefaultSpecifier": return !1; case "ExportSpecifier": return r != null && r.source ? !1 : t.local === e; case "ImportDefaultSpecifier": case "ImportNamespaceSpecifier": case "ImportSpecifier": return !1; case "ImportAttribute": return !1; case "JSXAttribute": return !1; case "ObjectPattern": case "ArrayPattern": return !1; case "MetaProperty": return !1; case "ObjectTypeProperty": return t.key !== e; case "TSEnumMember": return t.id !== e; case "TSPropertySignature": return t.key === e ? !!t.computed : !0; } return !0; } n(b_e, "isReferenced"); }); // ../node_modules/@babel/types/lib/validators/isScope.js var MR = E((YS) => { "use strict"; Object.defineProperty(YS, "__esModule", { value: !0 }); YS.default = D_e; var qo = Jt(); function D_e(e, t) { return (0, qo.isBlockStatement)(e) && ((0, qo.isFunction)(t) || (0, qo.isCatchClause)(t)) ? !1 : (0, qo.isPattern)(e) && ((0, qo.isFunction)( t) || (0, qo.isCatchClause)(t)) ? !0 : (0, qo.isScopable)(e); } n(D_e, "isScope"); }); // ../node_modules/@babel/types/lib/validators/isSpecifierDefault.js var LR = E((GS) => { "use strict"; Object.defineProperty(GS, "__esModule", { value: !0 }); GS.default = v_e; var RR = Jt(); function v_e(e) { return (0, RR.isImportDefaultSpecifier)(e) || (0, RR.isIdentifier)(e.imported || e.exported, { name: "default" }); } n(v_e, "isSpecifierDefault"); }); // ../node_modules/@babel/types/lib/validators/isValidES3Identifier.js var jR = E((ZS) => { "use strict"; Object.defineProperty(ZS, "__esModule", { value: !0 }); ZS.default = S_e; var x_e = kl(), E_e = /* @__PURE__ */ new Set(["abstract", "boolean", "byte", "char", "double", "enum", "final", "float", "goto", "impleme\ nts", "int", "interface", "long", "native", "package", "private", "protected", "public", "short", "static", "synchronized", "throws", "trans\ ient", "volatile"]); function S_e(e) { return (0, x_e.default)(e) && !E_e.has(e); } n(S_e, "isValidES3Identifier"); }); // ../node_modules/@babel/types/lib/validators/isVar.js var UR = E((QS) => { "use strict"; Object.defineProperty(QS, "__esModule", { value: !0 }); QS.default = C_e; var T_e = Jt(); qR = Symbol.for("var used to be block scoped"); var qR; function C_e(e) { return (0, T_e.isVariableDeclaration)(e, { kind: "var" }) && !e[qR]; } n(C_e, "isVar"); }); // ../node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js var $R = E((rT) => { "use strict"; Object.defineProperty(rT, "__esModule", { value: !0 }); rT.default = Wm; var w_e = Id(), Uo = Jt(), eT = hi(), tT = GE(), A_e = Ia(); function Wm(e, t) { let r = [], i = !0; for (let s of e) if ((0, Uo.isEmptyStatement)(s) || (i = !1), (0, Uo.isExpression)(s)) r.push(s); else if ((0, Uo.isExpressionStatement)(s)) r.push(s.expression); else if ((0, Uo.isVariableDeclaration)(s)) { if (s.kind !== "var") return; for (let a of s.declarations) { let o = (0, w_e.default)(a); for (let u of Object.keys(o)) t.push({ kind: s.kind, id: (0, A_e.default)(o[u]) }); a.init && r.push((0, eT.assignmentExpression)("=", a.id, a.init)); } i = !0; } else if ((0, Uo.isIfStatement)(s)) { let a = s.consequent ? Wm([s.consequent], t) : (0, tT.buildUndefinedNode)(), o = s.alternate ? Wm([s.alternate], t) : (0, tT.buildUndefinedNode)(); if (!a || !o) return; r.push((0, eT.conditionalExpression)(s.test, a, o)); } else if ((0, Uo.isBlockStatement)(s)) { let a = Wm(s.body, t); if (!a) return; r.push(a); } else if ((0, Uo.isEmptyStatement)(s)) e.indexOf(s) === 0 && (i = !0); else return; return i && r.push((0, tT.buildUndefinedNode)()), r.length === 1 ? r[0] : (0, eT.sequenceExpression)(r); } n(Wm, "gatherSequenceExpressions"); }); // ../node_modules/@babel/types/lib/converters/toSequenceExpression.js var VR = E((iT) => { "use strict"; Object.defineProperty(iT, "__esModule", { value: !0 }); iT.default = P_e; var __e = $R(); function P_e(e, t) { if (!(e != null && e.length)) return; let r = [], i = (0, __e.default)(e, r); if (i) { for (let s of r) t.push(s); return i; } } n(P_e, "toSequenceExpression"); }); // ../node_modules/@babel/types/lib/index.js var Pe = E((ae) => { "use strict"; Object.defineProperty(ae, "__esModule", { value: !0 }); var Oa = { react: !0, assertNode: !0, createTypeAnnotationBasedOnTypeof: !0, createUnionTypeAnnotation: !0, createFlowUnionType: !0, createTSUnionType: !0, cloneNode: !0, clone: !0, cloneDeep: !0, cloneDeepWithoutLoc: !0, cloneWithoutLoc: !0, addComment: !0, addComments: !0, inheritInnerComments: !0, inheritLeadingComments: !0, inheritsComments: !0, inheritTrailingComments: !0, removeComments: !0, ensureBlock: !0, toBindingIdentifierName: !0, toBlock: !0, toComputedKey: !0, toExpression: !0, toIdentifier: !0, toKeyAlias: !0, toStatement: !0, valueToNode: !0, appendToMemberExpression: !0, inherits: !0, prependToMemberExpression: !0, removeProperties: !0, removePropertiesDeep: !0, removeTypeDuplicates: !0, getAssignmentIdentifiers: !0, getBindingIdentifiers: !0, getOuterBindingIdentifiers: !0, getFunctionName: !0, traverse: !0, traverseFast: !0, shallowEqual: !0, is: !0, isBinding: !0, isBlockScoped: !0, isImmutable: !0, isLet: !0, isNode: !0, isNodesEquivalent: !0, isPlaceholderType: !0, isReferenced: !0, isScope: !0, isSpecifierDefault: !0, isType: !0, isValidES3Identifier: !0, isValidIdentifier: !0, isVar: !0, matchesPattern: !0, validate: !0, buildMatchMemberExpression: !0, __internal__deprecationWarning: !0 }; Object.defineProperty(ae, "__internal__deprecationWarning", { enumerable: !0, get: /* @__PURE__ */ n(function() { return k3e.default; }, "get") }); Object.defineProperty(ae, "addComment", { enumerable: !0, get: /* @__PURE__ */ n(function() { return U_e.default; }, "get") }); Object.defineProperty(ae, "addComments", { enumerable: !0, get: /* @__PURE__ */ n(function() { return $_e.default; }, "get") }); Object.defineProperty(ae, "appendToMemberExpression", { enumerable: !0, get: /* @__PURE__ */ n(function() { return i3e.default; }, "get") }); Object.defineProperty(ae, "assertNode", { enumerable: !0, get: /* @__PURE__ */ n(function() { return k_e.default; }, "get") }); Object.defineProperty(ae, "buildMatchMemberExpression", { enumerable: !0, get: /* @__PURE__ */ n(function() { return O3e.default; }, "get") }); Object.defineProperty(ae, "clone", { enumerable: !0, get: /* @__PURE__ */ n(function() { return R_e.default; }, "get") }); Object.defineProperty(ae, "cloneDeep", { enumerable: !0, get: /* @__PURE__ */ n(function() { return L_e.default; }, "get") }); Object.defineProperty(ae, "cloneDeepWithoutLoc", { enumerable: !0, get: /* @__PURE__ */ n(function() { return j_e.default; }, "get") }); Object.defineProperty(ae, "cloneNode", { enumerable: !0, get: /* @__PURE__ */ n(function() { return M_e.default; }, "get") }); Object.defineProperty(ae, "cloneWithoutLoc", { enumerable: !0, get: /* @__PURE__ */ n(function() { return q_e.default; }, "get") }); Object.defineProperty(ae, "createFlowUnionType", { enumerable: !0, get: /* @__PURE__ */ n(function() { return WR.default; }, "get") }); Object.defineProperty(ae, "createTSUnionType", { enumerable: !0, get: /* @__PURE__ */ n(function() { return N_e.default; }, "get") }); Object.defineProperty(ae, "createTypeAnnotationBasedOnTypeof", { enumerable: !0, get: /* @__PURE__ */ n(function() { return B_e.default; }, "get") }); Object.defineProperty(ae, "createUnionTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ n(function() { return WR.default; }, "get") }); Object.defineProperty(ae, "ensureBlock", { enumerable: !0, get: /* @__PURE__ */ n(function() { return J_e.default; }, "get") }); Object.defineProperty(ae, "getAssignmentIdentifiers", { enumerable: !0, get: /* @__PURE__ */ n(function() { return l3e.default; }, "get") }); Object.defineProperty(ae, "getBindingIdentifiers", { enumerable: !0, get: /* @__PURE__ */ n(function() { return c3e.default; }, "get") }); Object.defineProperty(ae, "getFunctionName", { enumerable: !0, get: /* @__PURE__ */ n(function() { return d3e.default; }, "get") }); Object.defineProperty(ae, "getOuterBindingIdentifiers", { enumerable: !0, get: /* @__PURE__ */ n(function() { return f3e.default; }, "get") }); Object.defineProperty(ae, "inheritInnerComments", { enumerable: !0, get: /* @__PURE__ */ n(function() { return V_e.default; }, "get") }); Object.defineProperty(ae, "inheritLeadingComments", { enumerable: !0, get: /* @__PURE__ */ n(function() { return W_e.default; }, "get") }); Object.defineProperty(ae, "inheritTrailingComments", { enumerable: !0, get: /* @__PURE__ */ n(function() { return K_e.default; }, "get") }); Object.defineProperty(ae, "inherits", { enumerable: !0, get: /* @__PURE__ */ n(function() { return s3e.default; }, "get") }); Object.defineProperty(ae, "inheritsComments", { enumerable: !0, get: /* @__PURE__ */ n(function() { return H_e.default; }, "get") }); Object.defineProperty(ae, "is", { enumerable: !0, get: /* @__PURE__ */ n(function() { return m3e.default; }, "get") }); Object.defineProperty(ae, "isBinding", { enumerable: !0, get: /* @__PURE__ */ n(function() { return y3e.default; }, "get") }); Object.defineProperty(ae, "isBlockScoped", { enumerable: !0, get: /* @__PURE__ */ n(function() { return g3e.default; }, "get") }); Object.defineProperty(ae, "isImmutable", { enumerable: !0, get: /* @__PURE__ */ n(function() { return b3e.default; }, "get") }); Object.defineProperty(ae, "isLet", { enumerable: !0, get: /* @__PURE__ */ n(function() { return D3e.default; }, "get") }); Object.defineProperty(ae, "isNode", { enumerable: !0, get: /* @__PURE__ */ n(function() { return v3e.default; }, "get") }); Object.defineProperty(ae, "isNodesEquivalent", { enumerable: !0, get: /* @__PURE__ */ n(function() { return x3e.default; }, "get") }); Object.defineProperty(ae, "isPlaceholderType", { enumerable: !0, get: /* @__PURE__ */ n(function() { return E3e.default; }, "get") }); Object.defineProperty(ae, "isReferenced", { enumerable: !0, get: /* @__PURE__ */ n(function() { return S3e.default; }, "get") }); Object.defineProperty(ae, "isScope", { enumerable: !0, get: /* @__PURE__ */ n(function() { return T3e.default; }, "get") }); Object.defineProperty(ae, "isSpecifierDefault", { enumerable: !0, get: /* @__PURE__ */ n(function() { return C3e.default; }, "get") }); Object.defineProperty(ae, "isType", { enumerable: !0, get: /* @__PURE__ */ n(function() { return w3e.default; }, "get") }); Object.defineProperty(ae, "isValidES3Identifier", { enumerable: !0, get: /* @__PURE__ */ n(function() { return A3e.default; }, "get") }); Object.defineProperty(ae, "isValidIdentifier", { enumerable: !0, get: /* @__PURE__ */ n(function() { return _3e.default; }, "get") }); Object.defineProperty(ae, "isVar", { enumerable: !0, get: /* @__PURE__ */ n(function() { return P3e.default; }, "get") }); Object.defineProperty(ae, "matchesPattern", { enumerable: !0, get: /* @__PURE__ */ n(function() { return F3e.default; }, "get") }); Object.defineProperty(ae, "prependToMemberExpression", { enumerable: !0, get: /* @__PURE__ */ n(function() { return n3e.default; }, "get") }); ae.react = void 0; Object.defineProperty(ae, "removeComments", { enumerable: !0, get: /* @__PURE__ */ n(function() { return z_e.default; }, "get") }); Object.defineProperty(ae, "removeProperties", { enumerable: !0, get: /* @__PURE__ */ n(function() { return a3e.default; }, "get") }); Object.defineProperty(ae, "removePropertiesDeep", { enumerable: !0, get: /* @__PURE__ */ n(function() { return o3e.default; }, "get") }); Object.defineProperty(ae, "removeTypeDuplicates", { enumerable: !0, get: /* @__PURE__ */ n(function() { return u3e.default; }, "get") }); Object.defineProperty(ae, "shallowEqual", { enumerable: !0, get: /* @__PURE__ */ n(function() { return h3e.default; }, "get") }); Object.defineProperty(ae, "toBindingIdentifierName", { enumerable: !0, get: /* @__PURE__ */ n(function() { return X_e.default; }, "get") }); Object.defineProperty(ae, "toBlock", { enumerable: !0, get: /* @__PURE__ */ n(function() { return Y_e.default; }, "get") }); Object.defineProperty(ae, "toComputedKey", { enumerable: !0, get: /* @__PURE__ */ n(function() { return G_e.default; }, "get") }); Object.defineProperty(ae, "toExpression", { enumerable: !0, get: /* @__PURE__ */ n(function() { return Z_e.default; }, "get") }); Object.defineProperty(ae, "toIdentifier", { enumerable: !0, get: /* @__PURE__ */ n(function() { return Q_e.default; }, "get") }); Object.defineProperty(ae, "toKeyAlias", { enumerable: !0, get: /* @__PURE__ */ n(function() { return e3e.default; }, "get") }); Object.defineProperty(ae, "toStatement", { enumerable: !0, get: /* @__PURE__ */ n(function() { return t3e.default; }, "get") }); Object.defineProperty(ae, "traverse", { enumerable: !0, get: /* @__PURE__ */ n(function() { return Hm.default; }, "get") }); Object.defineProperty(ae, "traverseFast", { enumerable: !0, get: /* @__PURE__ */ n(function() { return p3e.default; }, "get") }); Object.defineProperty(ae, "validate", { enumerable: !0, get: /* @__PURE__ */ n(function() { return I3e.default; }, "get") }); Object.defineProperty(ae, "valueToNode", { enumerable: !0, get: /* @__PURE__ */ n(function() { return r3e.default; }, "get") }); var F_e = zN(), I_e = JN(), O_e = jM(), k_e = qM(), sT = UM(); Object.keys(sT).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Oa, e) || e in ae && ae[e] === sT[e] || Object.defineProperty( ae, e, { enumerable: !0, get: /* @__PURE__ */ n(function() { return sT[e]; }, "get") }); }); var B_e = $M(), WR = HM(), N_e = XM(), nT = GE(); Object.keys(nT).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Oa, e) || e in ae && ae[e] === nT[e] || Object.defineProperty( ae, e, { enumerable: !0, get: /* @__PURE__ */ n(function() { return nT[e]; }, "get") }); }); var aT = hi(); Object.keys(aT).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Oa, e) || e in ae && ae[e] === aT[e] || Object.defineProperty( ae, e, { enumerable: !0, get: /* @__PURE__ */ n(function() { return aT[e]; }, "get") }); }); var M_e = Ia(), R_e = tR(), L_e = rR(), j_e = iR(), q_e = sR(), U_e = nR(), $_e = nS(), V_e = lS(), W_e = fS(), H_e = mS(), K_e = pS(), z_e = aR(), oT = oR(); Object.keys(oT).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Oa, e) || e in ae && ae[e] === oT[e] || Object.defineProperty( ae, e, { enumerable: !0, get: /* @__PURE__ */ n(function() { return oT[e]; }, "get") }); }); var uT = Bl(); Object.keys(uT).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Oa, e) || e in ae && ae[e] === uT[e] || Object.defineProperty( ae, e, { enumerable: !0, get: /* @__PURE__ */ n(function() { return uT[e]; }, "get") }); }); var J_e = uR(), X_e = lR(), Y_e = DS(), G_e = cR(), Z_e = fR(), Q_e = ES(), e3e = yR(), t3e = gR(), r3e = bR(), lT = Vi(); Object.keys(lT).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Oa, e) || e in ae && ae[e] === lT[e] || Object.defineProperty( ae, e, { enumerable: !0, get: /* @__PURE__ */ n(function() { return lT[e]; }, "get") }); }); var i3e = DR(), s3e = xR(), n3e = ER(), a3e = _S(), o3e = FS(), u3e = KE(), l3e = SR(), c3e = Id(), f3e = TR(), d3e = wR(), Hm = AR(); Object.keys(Hm).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Oa, e) || e in ae && ae[e] === Hm[e] || Object.defineProperty( ae, e, { enumerable: !0, get: /* @__PURE__ */ n(function() { return Hm[e]; }, "get") }); }); var p3e = wS(), h3e = Sm(), m3e = Il(), y3e = _R(), g3e = IR(), b3e = OR(), D3e = WS(), v3e = VE(), x3e = BR(), E3e = pE(), S3e = NR(), T3e = MR(), C3e = LR(), w3e = Cm(), A3e = jR(), _3e = kl(), P3e = UR(), F3e = oE(), I3e = Pm(), O3e = lE(), cT = Jt(); Object.keys(cT).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Oa, e) || e in ae && ae[e] === cT[e] || Object.defineProperty( ae, e, { enumerable: !0, get: /* @__PURE__ */ n(function() { return cT[e]; }, "get") }); }); var k3e = Fl(), B3e = VR(), Kmt = ae.react = { isReactComponent: F_e.default, isCompatTag: I_e.default, buildChildren: O_e.default }; ae.toSequenceExpression = B3e.default; process.env.BABEL_TYPES_8_BREAKING && console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-releas\ e instead!"); }); // ../node_modules/@babel/template/lib/formatters.js var HR = E((Hi) => { "use strict"; Object.defineProperty(Hi, "__esModule", { value: !0 }); Hi.statements = Hi.statement = Hi.smart = Hi.program = Hi.expression = void 0; var N3e = Pe(), { assertExpressionStatement: M3e } = N3e; function fT(e) { return { code: /* @__PURE__ */ n((t) => `/* @babel/template */; ${t}`, "code"), validate: /* @__PURE__ */ n(() => { }, "validate"), unwrap: /* @__PURE__ */ n((t) => e(t.program.body.slice(1)), "unwrap") }; } n(fT, "makeStatementFormatter"); var Xmt = Hi.smart = fT((e) => e.length > 1 ? e : e[0]), Ymt = Hi.statements = fT((e) => e), Gmt = Hi.statement = fT((e) => { if (e.length === 0) throw new Error("Found nothing to return."); if (e.length > 1) throw new Error("Found multiple statements but wanted one"); return e[0]; }), R3e = Hi.expression = { code: /* @__PURE__ */ n((e) => `( ${e} )`, "code"), validate: /* @__PURE__ */ n((e) => { if (e.program.body.length > 1) throw new Error("Found multiple statements but wanted one"); if (R3e.unwrap(e).start === 0) throw new Error("Parse result included parens."); }, "validate"), unwrap: /* @__PURE__ */ n(({ program: e }) => { let [t] = e.body; return M3e(t), t.expression; }, "unwrap") }, Zmt = Hi.program = { code: /* @__PURE__ */ n((e) => e, "code"), validate: /* @__PURE__ */ n(() => { }, "validate"), unwrap: /* @__PURE__ */ n((e) => e.program, "unwrap") }; }); // ../node_modules/@babel/template/lib/options.js var Km = E((Od) => { "use strict"; Object.defineProperty(Od, "__esModule", { value: !0 }); Od.merge = q3e; Od.normalizeReplacements = $3e; Od.validate = U3e; var L3e = ["placeholderWhitelist", "placeholderPattern", "preserveComments", "syntacticPlaceholders"]; function j3e(e, t) { if (e == null) return {}; var r = {}; for (var i in e) if ({}.hasOwnProperty.call(e, i)) { if (t.indexOf(i) !== -1) continue; r[i] = e[i]; } return r; } n(j3e, "_objectWithoutPropertiesLoose"); function q3e(e, t) { let { placeholderWhitelist: r = e.placeholderWhitelist, placeholderPattern: i = e.placeholderPattern, preserveComments: s = e.preserveComments, syntacticPlaceholders: a = e.syntacticPlaceholders } = t; return { parser: Object.assign({}, e.parser, t.parser), placeholderWhitelist: r, placeholderPattern: i, preserveComments: s, syntacticPlaceholders: a }; } n(q3e, "merge"); function U3e(e) { if (e != null && typeof e != "object") throw new Error("Unknown template options."); let t = e || {}, { placeholderWhitelist: r, placeholderPattern: i, preserveComments: s, syntacticPlaceholders: a } = t, o = j3e(t, L3e); if (r != null && !(r instanceof Set)) throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined"); if (i != null && !(i instanceof RegExp) && i !== !1) throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined"); if (s != null && typeof s != "boolean") throw new Error("'.preserveComments' must be a boolean, null, or undefined"); if (a != null && typeof a != "boolean") throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined"); if (a === !0 && (r != null || i != null)) throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'"); return { parser: o, placeholderWhitelist: r || void 0, placeholderPattern: i ?? void 0, preserveComments: s ?? void 0, syntacticPlaceholders: a ?? void 0 }; } n(U3e, "validate"); function $3e(e) { if (Array.isArray(e)) return e.reduce((t, r, i) => (t["$" + i] = r, t), {}); if (typeof e == "object" || e == null) return e || void 0; throw new Error("Template replacements must be an array, object, null, or undefined"); } n($3e, "normalizeReplacements"); }); // ../node_modules/@babel/parser/lib/index.js var Ho = E(($d) => { "use strict"; Object.defineProperty($d, "__esModule", { value: !0 }); function V3e(e, t) { if (e == null) return {}; var r = {}; for (var i in e) if ({}.hasOwnProperty.call(e, i)) { if (t.indexOf(i) !== -1) continue; r[i] = e[i]; } return r; } n(V3e, "_objectWithoutPropertiesLoose"); var tn = class { static { n(this, "Position"); } constructor(t, r, i) { this.line = void 0, this.column = void 0, this.index = void 0, this.line = t, this.column = r, this.index = i; } }, Vl = class { static { n(this, "SourceLocation"); } constructor(t, r) { this.start = void 0, this.end = void 0, this.filename = void 0, this.identifierName = void 0, this.start = t, this.end = r; } }; function si(e, t) { let { line: r, column: i, index: s } = e; return new tn(r, i + t, s + t); } n(si, "createPositionWithColumnOffset"); var KR = "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED", W3e = { ImportMetaOutsideModule: { message: `import.meta may appear only with 'sourceType: "module"'`, code: KR }, ImportOutsideModule: { message: `'import' and 'export' may appear only with 'sourceType: "module"'`, code: KR } }, zR = { ArrayPattern: "array destructuring pattern", AssignmentExpression: "assignment expression", AssignmentPattern: "assignment expression", ArrowFunctionExpression: "arrow function expression", ConditionalExpression: "conditional expression", CatchClause: "catch clause", ForOfStatement: "for-of statement", ForInStatement: "for-in statement", ForStatement: "for-loop", FormalParameters: "function parameter list", Identifier: "identifier", ImportSpecifier: "import specifier", ImportDefaultSpecifier: "import default specifier", ImportNamespaceSpecifier: "import namespace specifier", ObjectPattern: "object destructuring pattern", ParenthesizedExpression: "parenthesized expression", RestElement: "rest element", UpdateExpression: { true: "prefix operation", false: "postfix operation" }, VariableDeclarator: "variable declaration", YieldExpression: "yield expression" }, Xm = /* @__PURE__ */ n((e) => e.type === "UpdateExpression" ? zR.UpdateExpression[`${e.prefix}`] : zR[e.type], "toNodeDescription"), H3e = { AccessorIsGenerator: /* @__PURE__ */ n(({ kind: e }) => `A ${e}ter cannot be a generator.`, "AccessorIsGenerator"), ArgumentsInClass: "'arguments' is only allowed in functions and class methods.", AsyncFunctionInSingleStatementContext: "Async functions can only be declared at the top level or inside a block.", AwaitBindingIdentifier: "Can not use 'await' as identifier inside an async function.", AwaitBindingIdentifierInStaticBlock: "Can not use 'await' as identifier inside a static block.", AwaitExpressionFormalParameter: "'await' is not allowed in async function parameters.", AwaitUsingNotInAsyncContext: "'await using' is only allowed within async functions and at the top levels of modules.", AwaitNotInAsyncContext: "'await' is only allowed within async functions and at the top levels of modules.", BadGetterArity: "A 'get' accessor must not have any formal parameters.", BadSetterArity: "A 'set' accessor must have exactly one formal parameter.", BadSetterRestParameter: "A 'set' accessor function argument must not be a rest parameter.", ConstructorClassField: "Classes may not have a field named 'constructor'.", ConstructorClassPrivateField: "Classes may not have a private field named '#constructor'.", ConstructorIsAccessor: "Class constructor may not be an accessor.", ConstructorIsAsync: "Constructor can't be an async function.", ConstructorIsGenerator: "Constructor can't be a generator.", DeclarationMissingInitializer: /* @__PURE__ */ n(({ kind: e }) => `Missing initializer in ${e} declaration.`, "DeclarationMissingInitializer"), DecoratorArgumentsOutsideParentheses: "Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(deco\ rator)(args)'.", DecoratorBeforeExport: "Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use\ the 'export @decorator class {}' syntax.", DecoratorsBeforeAfterExport: "Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the s\ ame time.", DecoratorConstructor: "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?", DecoratorExportClass: "Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use \ the '@decorator export class {}' syntax.", DecoratorSemicolon: "Decorators must not be followed by a semicolon.", DecoratorStaticBlock: "Decorators can't be used with a static block.", DeferImportRequiresNamespace: 'Only `import defer * as x from "./module"` is valid.', DeletePrivateField: "Deleting a private field is not allowed.", DestructureNamedImport: "ES2015 named imports do not destructure. Use another statement for destructuring after the import.", DuplicateConstructor: "Duplicate constructor in the same class.", DuplicateDefaultExport: "Only one default export allowed per module.", DuplicateExport: /* @__PURE__ */ n(({ exportName: e }) => `\`${e}\` has already been exported. Exported identifiers must be unique.`, "DuplicateExport"), DuplicateProto: "Redefinition of __proto__ property.", DuplicateRegExpFlags: "Duplicate regular expression flag.", ElementAfterRest: "Rest element must be last element.", EscapedCharNotAnIdentifier: "Invalid Unicode escape.", ExportBindingIsString: /* @__PURE__ */ n(({ localName: e, exportName: t }) => `A string literal cannot be used as an exported binding without \`from\`. - Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`, "ExportBindingIsString"), ExportDefaultFromAsIdentifier: "'from' is not allowed as an identifier after 'export default'.", ForInOfLoopInitializer: /* @__PURE__ */ n(({ type: e }) => `'${e === "ForInStatement" ? "for-in" : "for-of"}' loop variable declaration may not have an initializer.`, "ForInOfLoopInitialize\ r"), ForInUsing: "For-in loop may not start with 'using' declaration.", ForOfAsync: "The left-hand side of a for-of loop may not be 'async'.", ForOfLet: "The left-hand side of a for-of loop may not start with 'let'.", GeneratorInSingleStatementContext: "Generators can only be declared at the top level or inside a block.", IllegalBreakContinue: /* @__PURE__ */ n(({ type: e }) => `Unsyntactic ${e === "BreakStatement" ? "break" : "continue"}.`, "IllegalBreakContinue"), IllegalLanguageModeDirective: "Illegal 'use strict' directive in function with non-simple parameter list.", IllegalReturn: "'return' outside of function.", ImportAttributesUseAssert: "The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You \ can enable the `deprecatedImportAssert` parser plugin to suppress this error.", ImportBindingIsString: /* @__PURE__ */ n(({ importName: e }) => `A string literal cannot be used as an imported binding. - Did you mean \`import { "${e}" as foo }\`?`, "ImportBindingIsString"), ImportCallArity: "`import()` requires exactly one or two arguments.", ImportCallNotNewExpression: "Cannot use new with import(...).", ImportCallSpreadArgument: "`...` is not allowed in `import()`.", ImportJSONBindingNotDefault: "A JSON module can only be imported with `default`.", ImportReflectionHasAssertion: "`import module x` cannot have assertions.", ImportReflectionNotBinding: 'Only `import module x from "./module"` is valid.', IncompatibleRegExpUVFlags: "The 'u' and 'v' regular expression flags cannot be enabled at the same time.", InvalidBigIntLiteral: "Invalid BigIntLiteral.", InvalidCodePoint: "Code point out of bounds.", InvalidCoverDiscardElement: "'void' must be followed by an expression when not used in a binding position.", InvalidCoverInitializedName: "Invalid shorthand property initializer.", InvalidDecimal: "Invalid decimal.", InvalidDigit: /* @__PURE__ */ n(({ radix: e }) => `Expected number in radix ${e}.`, "InvalidDigit"), InvalidEscapeSequence: "Bad character escape sequence.", InvalidEscapeSequenceTemplate: "Invalid escape sequence in template.", InvalidEscapedReservedWord: /* @__PURE__ */ n(({ reservedWord: e }) => `Escape sequence in keyword ${e}.`, "InvalidEscapedReservedWord"), InvalidIdentifier: /* @__PURE__ */ n(({ identifierName: e }) => `Invalid identifier ${e}.`, "InvalidIdentifier"), InvalidLhs: /* @__PURE__ */ n(({ ancestor: e }) => `Invalid left-hand side in ${Xm(e)}.`, "InvalidLhs"), InvalidLhsBinding: /* @__PURE__ */ n(({ ancestor: e }) => `Binding invalid left-hand side in ${Xm(e)}.`, "InvalidLhsBinding"), InvalidLhsOptionalChaining: /* @__PURE__ */ n(({ ancestor: e }) => `Invalid optional chaining in the left-hand side of ${Xm(e)}.`, "InvalidLhsOptionalChaining"), InvalidNumber: "Invalid number.", InvalidOrMissingExponent: "Floating-point numbers require a valid exponent after the 'e'.", InvalidOrUnexpectedToken: /* @__PURE__ */ n(({ unexpected: e }) => `Unexpected character '${e}'.`, "InvalidOrUnexpectedToken"), InvalidParenthesizedAssignment: "Invalid parenthesized assignment pattern.", InvalidPrivateFieldResolution: /* @__PURE__ */ n(({ identifierName: e }) => `Private name #${e} is not defined.`, "InvalidPrivateFieldResolution"), InvalidPropertyBindingPattern: "Binding member expression.", InvalidRecordProperty: "Only properties and spread elements are allowed in record definitions.", InvalidRestAssignmentPattern: "Invalid rest operator's argument.", LabelRedeclaration: /* @__PURE__ */ n(({ labelName: e }) => `Label '${e}' is already declared.`, "LabelRedeclaration"), LetInLexicalBinding: "'let' is disallowed as a lexically bound name.", LineTerminatorBeforeArrow: "No line break is allowed before '=>'.", MalformedRegExpFlags: "Invalid regular expression flag.", MissingClassName: "A class name is required.", MissingEqInAssignment: "Only '=' operator can be used for specifying default value.", MissingSemicolon: "Missing semicolon.", MissingPlugin: /* @__PURE__ */ n(({ missingPlugin: e }) => `This experimental syntax requires enabling the parser plugin: ${e.map((t) => JSON.stringify(t)).join(", ")}.`, "MissingPlugin"), MissingOneOfPlugins: /* @__PURE__ */ n(({ missingPlugin: e }) => `This experimental syntax requires enabling one of the following parser plugin(s): ${e.map((t) => JSON.stringify(t)).join(", ")}.`, "MissingOneOfPlugins"), MissingUnicodeEscape: "Expecting Unicode escape sequence \\uXXXX.", MixingCoalesceWithLogical: "Nullish coalescing operator(??) requires parens when mixing with logical operators.", ModuleAttributeDifferentFromType: "The only accepted module attribute is `type`.", ModuleAttributeInvalidValue: "Only string literals are allowed as module attribute values.", ModuleAttributesWithDuplicateKeys: /* @__PURE__ */ n(({ key: e }) => `Duplicate key "${e}" is not allowed in module attributes.`, "ModuleAttributesWithDuplicateKeys"), ModuleExportNameHasLoneSurrogate: /* @__PURE__ */ n(({ surrogateCharCode: e }) => `An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`, "ModuleExportNameHasLoneSurrogate"), ModuleExportUndefined: /* @__PURE__ */ n(({ localName: e }) => `Export '${e}' is not defined.`, "ModuleExportUndefined"), MultipleDefaultsInSwitch: "Multiple default clauses.", NewlineAfterThrow: "Illegal newline after throw.", NoCatchOrFinally: "Missing catch or finally clause.", NumberIdentifier: "Identifier directly after number.", NumericSeparatorInEscapeSequence: "Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.", ObsoleteAwaitStar: "'await*' has been removed from the async functions proposal. Use Promise.all() instead.", OptionalChainingNoNew: "Constructors in/after an Optional Chain are not allowed.", OptionalChainingNoTemplate: "Tagged Template Literals are not allowed in optionalChain.", OverrideOnConstructor: "'override' modifier cannot appear on a constructor declaration.", ParamDupe: "Argument name clash.", PatternHasAccessor: "Object pattern can't contain getter or setter.", PatternHasMethod: "Object pattern can't contain methods.", PrivateInExpectedIn: /* @__PURE__ */ n(({ identifierName: e }) => `Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`, "PrivateInExpe\ ctedIn"), PrivateNameRedeclaration: /* @__PURE__ */ n(({ identifierName: e }) => `Duplicate private name #${e}.`, "PrivateNameRedeclaration"), RecordExpressionBarIncorrectEndSyntaxType: "Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 're\ cordAndTuple' plugin is set to 'bar'.", RecordExpressionBarIncorrectStartSyntaxType: "Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the\ 'recordAndTuple' plugin is set to 'bar'.", RecordExpressionHashIncorrectStartSyntaxType: "Record expressions starting with '#{' are only allowed when the 'syntaxType' option of th\ e 'recordAndTuple' plugin is set to 'hash'.", RecordNoProto: "'__proto__' is not allowed in Record expressions.", RestTrailingComma: "Unexpected trailing comma after rest element.", SloppyFunction: "In non-strict mode code, functions can only be declared at top level or inside a block.", SloppyFunctionAnnexB: "In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if sta\ tement.", SourcePhaseImportRequiresDefault: 'Only `import source x from "./module"` is valid.', StaticPrototype: "Classes may not have static property named prototype.", SuperNotAllowed: "`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or n\ ot extending another class?", SuperPrivateField: "Private fields can't be accessed on super.", TrailingDecorator: "Decorators must be attached to a class element.", TupleExpressionBarIncorrectEndSyntaxType: "Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'reco\ rdAndTuple' plugin is set to 'bar'.", TupleExpressionBarIncorrectStartSyntaxType: "Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the '\ recordAndTuple' plugin is set to 'bar'.", TupleExpressionHashIncorrectStartSyntaxType: "Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the \ 'recordAndTuple' plugin is set to 'hash'.", UnexpectedArgumentPlaceholder: "Unexpected argument placeholder.", UnexpectedAwaitAfterPipelineBody: 'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.', UnexpectedDigitAfterHash: "Unexpected digit after hash token.", UnexpectedImportExport: "'import' and 'export' may only appear at the top level.", UnexpectedKeyword: /* @__PURE__ */ n(({ keyword: e }) => `Unexpected keyword '${e}'.`, "UnexpectedKeyword"), UnexpectedLeadingDecorator: "Leading decorators must be attached to a class declaration.", UnexpectedLexicalDeclaration: "Lexical declaration cannot appear in a single-statement context.", UnexpectedNewTarget: "`new.target` can only be used in functions or class properties.", UnexpectedNumericSeparator: "A numeric separator is only allowed between two digits.", UnexpectedPrivateField: "Unexpected private name.", UnexpectedReservedWord: /* @__PURE__ */ n(({ reservedWord: e }) => `Unexpected reserved word '${e}'.`, "UnexpectedReservedWord"), UnexpectedSuper: "'super' is only allowed in object methods and classes.", UnexpectedToken: /* @__PURE__ */ n(({ expected: e, unexpected: t }) => `Unexpected token${t ? ` '${t}'.` : ""}${e ? `, expected "${e}"` : ""}`, "UnexpectedToken"), UnexpectedTokenUnaryExponentiation: "Illegal expression. Wrap left hand side or entire exponentiation in parentheses.", UnexpectedUsingDeclaration: "Using declaration cannot appear in the top level when source type is `script` or in the bare case statement\ .", UnexpectedVoidPattern: "Unexpected void binding.", UnsupportedBind: "Binding should be performed on object property.", UnsupportedDecoratorExport: "A decorated export must export a class declaration.", UnsupportedDefaultExport: "Only expressions, functions or classes are allowed as the `default` export.", UnsupportedImport: "`import` can only be used in `import()` or `import.meta`.", UnsupportedMetaProperty: /* @__PURE__ */ n(({ target: e, onlyValidPropertyName: t }) => `The only valid meta property for ${e} is ${e}.${t}.`, "UnsupportedMetaProperty"), UnsupportedParameterDecorator: "Decorators cannot be used to decorate parameters.", UnsupportedPropertyDecorator: "Decorators cannot be used to decorate object literal properties.", UnsupportedSuper: "'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).", UnterminatedComment: "Unterminated comment.", UnterminatedRegExp: "Unterminated regular expression.", UnterminatedString: "Unterminated string constant.", UnterminatedTemplate: "Unterminated template.", UsingDeclarationExport: "Using declaration cannot be exported.", UsingDeclarationHasBindingPattern: "Using declaration cannot have destructuring patterns.", VarRedeclaration: /* @__PURE__ */ n(({ identifierName: e }) => `Identifier '${e}' has already been declared.`, "VarRedeclaration"), VoidPatternCatchClauseParam: "A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to disca\ rd the caught error.", VoidPatternInitializer: "A void binding may not have an initializer.", YieldBindingIdentifier: "Can not use 'yield' as identifier inside a generator.", YieldInParameter: "Yield expression is not allowed in formal parameters.", YieldNotInGeneratorFunction: "'yield' is only allowed within generator functions.", ZeroDigitNumericSeparator: "Numeric separator can not be used after leading 0." }, K3e = { StrictDelete: "Deleting local variable in strict mode.", StrictEvalArguments: /* @__PURE__ */ n(({ referenceName: e }) => `Assigning to '${e}' in strict mode.`, "StrictEvalArguments"), StrictEvalArgumentsBinding: /* @__PURE__ */ n(({ bindingName: e }) => `Binding '${e}' in strict mode.`, "StrictEvalArgumentsBinding"), StrictFunction: "In strict mode code, functions can only be declared at top level or inside a block.", StrictNumericEscape: "The only valid numeric escape in strict mode is '\\0'.", StrictOctalLiteral: "Legacy octal literals are not allowed in strict mode.", StrictWith: "'with' in strict mode." }, z3e = { ParseExpressionEmptyInput: "Unexpected parseExpression() input: The input is empty or contains only comments.", ParseExpressionExpectsEOF: /* @__PURE__ */ n(({ unexpected: e }) => `Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the \ unexpected character \`${String.fromCodePoint(e)}\`.`, "ParseExpressionExpectsEOF") }, J3e = /* @__PURE__ */ new Set(["ArrowFunctionExpression", "AssignmentExpression", "ConditionalExpression", "YieldExpression"]), X3e = Object. assign({ PipeBodyIsTighter: "Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due \ to its loose operator precedence.", PipeTopicRequiresHackPipes: 'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" opt\ ion.', PipeTopicUnbound: "Topic reference is unbound; it must be inside a pipe body.", PipeTopicUnconfiguredToken: /* @__PURE__ */ n(({ token: e }) => `Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "propo\ sal": "hack", "topicToken": "${e}" }.`, "PipeTopicUnconfiguredToken"), PipeTopicUnused: "Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.", PipeUnparenthesizedBody: /* @__PURE__ */ n(({ type: e }) => `Hack-style pipe body cannot be an unparenthesized ${Xm({ type: e })}; please wrap it in parentheses.`, "PipeUnparenthesizedBody") }, { PipelineBodyNoArrow: 'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.', PipelineBodySequenceExpression: "Pipeline body may not be a comma-separated sequence expression.", PipelineHeadSequenceExpression: "Pipeline head should not be a comma-separated sequence expression.", PipelineTopicUnused: "Pipeline is in topic style but does not use topic reference.", PrimaryTopicNotAllowed: "Topic reference was used in a lexical context without topic binding.", PrimaryTopicRequiresSmartPipeline: 'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "sma\ rt" option.' }), Y3e = ["message"]; function JR(e, t, r) { Object.defineProperty(e, t, { enumerable: !1, configurable: !0, value: r }); } n(JR, "defineHidden"); function G3e({ toMessage: e, code: t, reasonCode: r, syntaxPlugin: i }) { let s = r === "MissingPlugin" || r === "MissingOneOfPlugins"; { let a = { AccessorCannotDeclareThisParameter: "AccesorCannotDeclareThisParameter", AccessorCannotHaveTypeParameters: "AccesorCannotHaveTypeParameters", ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference: "ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumRefer\ ence", SetAccessorCannotHaveOptionalParameter: "SetAccesorCannotHaveOptionalParameter", SetAccessorCannotHaveRestParameter: "SetAccesorCannotHaveRestParameter", SetAccessorCannotHaveReturnType: "SetAccesorCannotHaveReturnType" }; a[r] && (r = a[r]); } return /* @__PURE__ */ n(function a(o, u) { let l = new SyntaxError(); return l.code = t, l.reasonCode = r, l.loc = o, l.pos = o.index, l.syntaxPlugin = i, s && (l.missingPlugin = u.missingPlugin), JR(l, "\ clone", /* @__PURE__ */ n(function(f = {}) { var m; let { line: h, column: d, index: y } = (m = f.loc) != null ? m : o; return a(new tn(h, d, y), Object.assign({}, u, f.details)); }, "clone")), JR(l, "details", u), Object.defineProperty(l, "message", { configurable: !0, get() { let c = `${e(u)} (${o.line}:${o.column})`; return this.message = c, c; }, set(c) { Object.defineProperty(this, "message", { value: c, writable: !0 }); } }), l; }, "constructor"); } n(G3e, "toParseErrorConstructor"); function Qs(e, t) { if (Array.isArray(e)) return (i) => Qs(i, e[0]); let r = {}; for (let i of Object.keys(e)) { let s = e[i], a = typeof s == "string" ? { message: /* @__PURE__ */ n(() => s, "message") } : typeof s == "function" ? { message: s } : s, { message: o } = a, u = V3e(a, Y3e), l = typeof o == "string" ? () => o : o; r[i] = G3e(Object.assign({ code: "BABEL_PARSER_SYNTAX_ERROR", reasonCode: i, toMessage: l }, t ? { syntaxPlugin: t } : {}, u)); } return r; } n(Qs, "ParseErrorEnum"); var R = Object.assign({}, Qs(W3e), Qs(H3e), Qs(K3e), Qs(z3e), Qs`pipelineOperator`(X3e)); function Z3e() { return { sourceType: "script", sourceFilename: void 0, startIndex: 0, startColumn: 0, startLine: 1, allowAwaitOutsideFunction: !1, allowReturnOutsideFunction: !1, allowNewTargetOutsideFunction: !1, allowImportExportEverywhere: !1, allowSuperOutsideMethod: !1, allowUndeclaredExports: !1, allowYieldOutsideFunction: !1, plugins: [], strictMode: void 0, ranges: !1, tokens: !1, createImportExpressions: !1, createParenthesizedExpressions: !1, errorRecovery: !1, attachComment: !0, annexB: !0 }; } n(Z3e, "createDefaultOptions"); function Q3e(e) { let t = Z3e(); if (e == null) return t; if (e.annexB != null && e.annexB !== !1) throw new Error("The `annexB` option can only be set to `false`."); for (let r of Object.keys(t)) e[r] != null && (t[r] = e[r]); if (t.startLine === 1) e.startIndex == null && t.startColumn > 0 ? t.startIndex = t.startColumn : e.startColumn == null && t.startIndex > 0 && (t.startColumn = t.startIndex); else if ((e.startColumn == null || e.startIndex == null) && e.startIndex != null) throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`."); if (t.sourceType === "commonjs") { if (e.allowAwaitOutsideFunction != null) throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`."); if (e.allowReturnOutsideFunction != null) throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction`\ option or use `sourceType: 'script'`."); if (e.allowNewTargetOutsideFunction != null) throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFun\ ction` option or use `sourceType: 'script'`."); } return t; } n(Q3e, "getOptions"); var { defineProperty: ePe } = Object, XR = /* @__PURE__ */ n((e, t) => { e && ePe(e, t, { enumerable: !1, value: e[t] }); }, "toUnenumerable"); function kd(e) { return XR(e.loc.start, "index"), XR(e.loc.end, "index"), e; } n(kd, "toESTreeLocation"); var tPe = /* @__PURE__ */ n((e) => class extends e { static { n(this, "ESTreeParserMixin"); } parse() { let r = kd(super.parse()); return this.optionFlags & 256 && (r.tokens = r.tokens.map(kd)), r; } parseRegExpLiteral({ pattern: r, flags: i }) { let s = null; try { s = new RegExp(r, i); } catch { } let a = this.estreeParseLiteral(s); return a.regex = { pattern: r, flags: i }, a; } parseBigIntLiteral(r) { let i; try { i = BigInt(r); } catch { i = null; } let s = this.estreeParseLiteral(i); return s.bigint = String(s.value || r), s; } parseDecimalLiteral(r) { let s = this.estreeParseLiteral(null); return s.decimal = String(s.value || r), s; } estreeParseLiteral(r) { return this.parseLiteral(r, "Literal"); } parseStringLiteral(r) { return this.estreeParseLiteral(r); } parseNumericLiteral(r) { return this.estreeParseLiteral(r); } parseNullLiteral() { return this.estreeParseLiteral(null); } parseBooleanLiteral(r) { return this.estreeParseLiteral(r); } estreeParseChainExpression(r, i) { let s = this.startNodeAtNode(r); return s.expression = r, this.finishNodeAt(s, "ChainExpression", i); } directiveToStmt(r) { let i = r.value; delete r.value, this.castNodeTo(i, "Literal"), i.raw = i.extra.raw, i.value = i.extra.expressionValue; let s = this.castNodeTo(r, "ExpressionStatement"); return s.expression = i, s.directive = i.extra.rawValue, delete i.extra, s; } fillOptionalPropertiesForTSESLint(r) { } cloneEstreeStringLiteral(r) { let { start: i, end: s, loc: a, range: o, raw: u, value: l } = r, c = Object.create(r.constructor.prototype); return c.type = "Literal", c.start = i, c.end = s, c.loc = a, c.range = o, c.raw = u, c.value = l, c; } initFunction(r, i) { super.initFunction(r, i), r.expression = !1; } checkDeclaration(r) { r != null && this.isObjectProperty(r) ? this.checkDeclaration(r.value) : super.checkDeclaration(r); } getObjectOrClassMethodParams(r) { return r.value.params; } isValidDirective(r) { var i; return r.type === "ExpressionStatement" && r.expression.type === "Literal" && typeof r.expression.value == "string" && !((i = r.expression. extra) != null && i.parenthesized); } parseBlockBody(r, i, s, a, o) { super.parseBlockBody(r, i, s, a, o); let u = r.directives.map((l) => this.directiveToStmt(l)); r.body = u.concat(r.body), delete r.directives; } parsePrivateName() { let r = super.parsePrivateName(); return this.getPluginOption("estree", "classFeatures") ? this.convertPrivateNameToPrivateIdentifier(r) : r; } convertPrivateNameToPrivateIdentifier(r) { let i = super.getPrivateNameSV(r); return delete r.id, r.name = i, this.castNodeTo(r, "PrivateIdentifier"); } isPrivateName(r) { return this.getPluginOption("estree", "classFeatures") ? r.type === "PrivateIdentifier" : super.isPrivateName(r); } getPrivateNameSV(r) { return this.getPluginOption("estree", "classFeatures") ? r.name : super.getPrivateNameSV(r); } parseLiteral(r, i) { let s = super.parseLiteral(r, i); return s.raw = s.extra.raw, delete s.extra, s; } parseFunctionBody(r, i, s = !1) { super.parseFunctionBody(r, i, s), r.expression = r.body.type !== "BlockStatement"; } parseMethod(r, i, s, a, o, u, l = !1) { let c = this.startNode(); c.kind = r.kind, c = super.parseMethod(c, i, s, a, o, u, l), delete c.kind; let { typeParameters: f } = r; f && (delete r.typeParameters, c.typeParameters = f, this.resetStartLocationFromNode(c, f)); let m = this.castNodeTo(c, "FunctionExpression"); return r.value = m, u === "ClassPrivateMethod" && (r.computed = !1), u === "ObjectMethod" ? (r.kind === "method" && (r.kind = "init"), r.shorthand = !1, this.finishNode(r, "Property")) : this.finishNode(r, "MethodDefinition"); } nameIsConstructor(r) { return r.type === "Literal" ? r.value === "constructor" : super.nameIsConstructor(r); } parseClassProperty(...r) { let i = super.parseClassProperty(...r); return this.getPluginOption("estree", "classFeatures") && this.castNodeTo(i, "PropertyDefinition"), i; } parseClassPrivateProperty(...r) { let i = super.parseClassPrivateProperty(...r); return this.getPluginOption("estree", "classFeatures") && (this.castNodeTo(i, "PropertyDefinition"), i.computed = !1), i; } parseClassAccessorProperty(r) { let i = super.parseClassAccessorProperty(r); return this.getPluginOption("estree", "classFeatures") && (i.abstract && this.hasPlugin("typescript") ? (delete i.abstract, this.castNodeTo( i, "TSAbstractAccessorProperty")) : this.castNodeTo(i, "AccessorProperty")), i; } parseObjectProperty(r, i, s, a) { let o = super.parseObjectProperty(r, i, s, a); return o && (o.kind = "init", this.castNodeTo(o, "Property")), o; } finishObjectProperty(r) { return r.kind = "init", this.finishNode(r, "Property"); } isValidLVal(r, i, s, a) { return r === "Property" ? "value" : super.isValidLVal(r, i, s, a); } isAssignable(r, i) { return r != null && this.isObjectProperty(r) ? this.isAssignable(r.value, i) : super.isAssignable(r, i); } toAssignable(r, i = !1) { if (r != null && this.isObjectProperty(r)) { let { key: s, value: a } = r; this.isPrivateName(s) && this.classScope.usePrivateName(this.getPrivateNameSV(s), s.loc.start), this.toAssignable(a, i); } else super.toAssignable(r, i); } toAssignableObjectExpressionProp(r, i, s) { r.type === "Property" && (r.kind === "get" || r.kind === "set") ? this.raise(R.PatternHasAccessor, r.key) : r.type === "Property" && r. method ? this.raise(R.PatternHasMethod, r.key) : super.toAssignableObjectExpressionProp(r, i, s); } finishCallExpression(r, i) { let s = super.finishCallExpression(r, i); if (s.callee.type === "Import") { var a; this.castNodeTo(s, "ImportExpression"), s.source = s.arguments[0], s.options = (a = s.arguments[1]) != null ? a : null; { var o; s.attributes = (o = s.arguments[1]) != null ? o : null; } delete s.arguments, delete s.callee; } else s.type === "OptionalCallExpression" ? this.castNodeTo(s, "CallExpression") : s.optional = !1; return s; } toReferencedArguments(r) { r.type !== "ImportExpression" && super.toReferencedArguments(r); } parseExport(r, i) { let s = this.state.lastTokStartLoc, a = super.parseExport(r, i); switch (a.type) { case "ExportAllDeclaration": a.exported = null; break; case "ExportNamedDeclaration": a.specifiers.length === 1 && a.specifiers[0].type === "ExportNamespaceSpecifier" && (this.castNodeTo(a, "ExportAllDeclaration"), a. exported = a.specifiers[0].exported, delete a.specifiers); case "ExportDefaultDeclaration": { var o; let { declaration: u } = a; u?.type === "ClassDeclaration" && ((o = u.decorators) == null ? void 0 : o.length) > 0 && u.start === a.start && this.resetStartLocation( a, s); } break; } return a; } stopParseSubscript(r, i) { let s = super.stopParseSubscript(r, i); return i.optionalChainMember ? this.estreeParseChainExpression(s, r.loc.end) : s; } parseMember(r, i, s, a, o) { let u = super.parseMember(r, i, s, a, o); return u.type === "OptionalMemberExpression" ? this.castNodeTo(u, "MemberExpression") : u.optional = !1, u; } isOptionalMemberExpression(r) { return r.type === "ChainExpression" ? r.expression.type === "MemberExpression" : super.isOptionalMemberExpression(r); } hasPropertyAsPrivateName(r) { return r.type === "ChainExpression" && (r = r.expression), super.hasPropertyAsPrivateName(r); } isObjectProperty(r) { return r.type === "Property" && r.kind === "init" && !r.method; } isObjectMethod(r) { return r.type === "Property" && (r.method || r.kind === "get" || r.kind === "set"); } castNodeTo(r, i) { let s = super.castNodeTo(r, i); return this.fillOptionalPropertiesForTSESLint(s), s; } cloneIdentifier(r) { let i = super.cloneIdentifier(r); return this.fillOptionalPropertiesForTSESLint(i), i; } cloneStringLiteral(r) { return r.type === "Literal" ? this.cloneEstreeStringLiteral(r) : super.cloneStringLiteral(r); } finishNodeAt(r, i, s) { return kd(super.finishNodeAt(r, i, s)); } finishNode(r, i) { let s = super.finishNode(r, i); return this.fillOptionalPropertiesForTSESLint(s), s; } resetStartLocation(r, i) { super.resetStartLocation(r, i), kd(r); } resetEndLocation(r, i = this.state.lastTokEndLoc) { super.resetEndLocation(r, i), kd(r); } }, "estree"), Vo = class { static { n(this, "TokContext"); } constructor(t, r) { this.token = void 0, this.preserveSpace = void 0, this.token = t, this.preserveSpace = !!r; } }, at = { brace: new Vo("{"), j_oTag: new Vo("...", !0) }; at.template = new Vo("`", !0); var He = !0, fe = !0, dT = !0, Bd = !0, ka = !0, rPe = !0, Zm = class { static { n(this, "ExportedTokenType"); } constructor(t, r = {}) { this.label = void 0, this.keyword = void 0, this.beforeExpr = void 0, this.startsExpr = void 0, this.rightAssociative = void 0, this.isLoop = void 0, this.isAssign = void 0, this.prefix = void 0, this.postfix = void 0, this.binop = void 0, this.label = t, this.keyword = r.keyword, this.beforeExpr = !!r.beforeExpr, this.startsExpr = !!r.startsExpr, this.rightAssociative = !!r.rightAssociative, this.isLoop = !!r.isLoop, this.isAssign = !!r.isAssign, this.prefix = !!r.prefix, this.postfix = !!r.postfix, this.binop = r.binop != null ? r.binop : null, this. updateContext = null; } }, jT = /* @__PURE__ */ new Map(); function rt(e, t = {}) { t.keyword = e; let r = Ee(e, t); return jT.set(e, r), r; } n(rt, "createKeyword"); function ii(e, t) { return Ee(e, { beforeExpr: He, binop: t }); } n(ii, "createBinop"); var Ld = -1, Rn = [], qT = [], UT = [], $T = [], VT = [], WT = []; function Ee(e, t = {}) { var r, i, s, a; return ++Ld, qT.push(e), UT.push((r = t.binop) != null ? r : -1), $T.push((i = t.beforeExpr) != null ? i : !1), VT.push((s = t.startsExpr) != null ? s : !1), WT.push((a = t.prefix) != null ? a : !1), Rn.push(new Zm(e, t)), Ld; } n(Ee, "createToken"); function ze(e, t = {}) { var r, i, s, a; return ++Ld, jT.set(e, Ld), qT.push(e), UT.push((r = t.binop) != null ? r : -1), $T.push((i = t.beforeExpr) != null ? i : !1), VT.push((s = t.startsExpr) != null ? s : !1), WT.push((a = t.prefix) != null ? a : !1), Rn.push(new Zm("name", t)), Ld; } n(ze, "createKeywordLike"); var iPe = { bracketL: Ee("[", { beforeExpr: He, startsExpr: fe }), bracketHashL: Ee("#[", { beforeExpr: He, startsExpr: fe }), bracketBarL: Ee("[|", { beforeExpr: He, startsExpr: fe }), bracketR: Ee("]"), bracketBarR: Ee("|]"), braceL: Ee("{", { beforeExpr: He, startsExpr: fe }), braceBarL: Ee("{|", { beforeExpr: He, startsExpr: fe }), braceHashL: Ee("#{", { beforeExpr: He, startsExpr: fe }), braceR: Ee("}"), braceBarR: Ee("|}"), parenL: Ee("(", { beforeExpr: He, startsExpr: fe }), parenR: Ee(")"), comma: Ee(",", { beforeExpr: He }), semi: Ee(";", { beforeExpr: He }), colon: Ee(":", { beforeExpr: He }), doubleColon: Ee("::", { beforeExpr: He }), dot: Ee("."), question: Ee("?", { beforeExpr: He }), questionDot: Ee("?."), arrow: Ee("=>", { beforeExpr: He }), template: Ee("template"), ellipsis: Ee("...", { beforeExpr: He }), backQuote: Ee("`", { startsExpr: fe }), dollarBraceL: Ee("${", { beforeExpr: He, startsExpr: fe }), templateTail: Ee("...`", { startsExpr: fe }), templateNonTail: Ee("...${", { beforeExpr: He, startsExpr: fe }), at: Ee("@"), hash: Ee("#", { startsExpr: fe }), interpreterDirective: Ee("#!..."), eq: Ee("=", { beforeExpr: He, isAssign: Bd }), assign: Ee("_=", { beforeExpr: He, isAssign: Bd }), slashAssign: Ee("_=", { beforeExpr: He, isAssign: Bd }), xorAssign: Ee("_=", { beforeExpr: He, isAssign: Bd }), moduloAssign: Ee("_=", { beforeExpr: He, isAssign: Bd }), incDec: Ee("++/--", { prefix: ka, postfix: rPe, startsExpr: fe }), bang: Ee("!", { beforeExpr: He, prefix: ka, startsExpr: fe }), tilde: Ee("~", { beforeExpr: He, prefix: ka, startsExpr: fe }), doubleCaret: Ee("^^", { startsExpr: fe }), doubleAt: Ee("@@", { startsExpr: fe }), pipeline: ii("|>", 0), nullishCoalescing: ii("??", 1), logicalOR: ii("||", 1), logicalAND: ii("&&", 2), bitwiseOR: ii("|", 3), bitwiseXOR: ii("^", 4), bitwiseAND: ii("&", 5), equality: ii("==/!=/===/!==", 6), lt: ii("/<=/>=", 7), gt: ii("/<=/>=", 7), relational: ii("/<=/>=", 7), bitShift: ii("<>/>>>", 8), bitShiftL: ii("<>/>>>", 8), bitShiftR: ii("<>/>>>", 8), plusMin: Ee("+/-", { beforeExpr: He, binop: 9, prefix: ka, startsExpr: fe }), modulo: Ee("%", { binop: 10, startsExpr: fe }), star: Ee("*", { binop: 10 }), slash: ii("/", 10), exponent: Ee("**", { beforeExpr: He, binop: 11, rightAssociative: !0 }), _in: rt("in", { beforeExpr: He, binop: 7 }), _instanceof: rt("instanceof", { beforeExpr: He, binop: 7 }), _break: rt("break"), _case: rt("case", { beforeExpr: He }), _catch: rt("catch"), _continue: rt("continue"), _debugger: rt("debugger"), _default: rt("default", { beforeExpr: He }), _else: rt("else", { beforeExpr: He }), _finally: rt("finally"), _function: rt("function", { startsExpr: fe }), _if: rt("if"), _return: rt("return", { beforeExpr: He }), _switch: rt("switch"), _throw: rt("throw", { beforeExpr: He, prefix: ka, startsExpr: fe }), _try: rt("try"), _var: rt("var"), _const: rt("const"), _with: rt("with"), _new: rt("new", { beforeExpr: He, startsExpr: fe }), _this: rt("this", { startsExpr: fe }), _super: rt("super", { startsExpr: fe }), _class: rt("class", { startsExpr: fe }), _extends: rt("extends", { beforeExpr: He }), _export: rt("export"), _import: rt("import", { startsExpr: fe }), _null: rt("null", { startsExpr: fe }), _true: rt("true", { startsExpr: fe }), _false: rt("false", { startsExpr: fe }), _typeof: rt("typeof", { beforeExpr: He, prefix: ka, startsExpr: fe }), _void: rt("void", { beforeExpr: He, prefix: ka, startsExpr: fe }), _delete: rt("delete", { beforeExpr: He, prefix: ka, startsExpr: fe }), _do: rt("do", { isLoop: dT, beforeExpr: He }), _for: rt("for", { isLoop: dT }), _while: rt("while", { isLoop: dT }), _as: ze("as", { startsExpr: fe }), _assert: ze("assert", { startsExpr: fe }), _async: ze("async", { startsExpr: fe }), _await: ze("await", { startsExpr: fe }), _defer: ze("defer", { startsExpr: fe }), _from: ze("from", { startsExpr: fe }), _get: ze("get", { startsExpr: fe }), _let: ze("let", { startsExpr: fe }), _meta: ze("meta", { startsExpr: fe }), _of: ze("of", { startsExpr: fe }), _sent: ze("sent", { startsExpr: fe }), _set: ze("set", { startsExpr: fe }), _source: ze("source", { startsExpr: fe }), _static: ze("static", { startsExpr: fe }), _using: ze("using", { startsExpr: fe }), _yield: ze("yield", { startsExpr: fe }), _asserts: ze("asserts", { startsExpr: fe }), _checks: ze("checks", { startsExpr: fe }), _exports: ze("exports", { startsExpr: fe }), _global: ze("global", { startsExpr: fe }), _implements: ze("implements", { startsExpr: fe }), _intrinsic: ze("intrinsic", { startsExpr: fe }), _infer: ze("infer", { startsExpr: fe }), _is: ze("is", { startsExpr: fe }), _mixins: ze("mixins", { startsExpr: fe }), _proto: ze("proto", { startsExpr: fe }), _require: ze("require", { startsExpr: fe }), _satisfies: ze("satisfies", { startsExpr: fe }), _keyof: ze("keyof", { startsExpr: fe }), _readonly: ze("readonly", { startsExpr: fe }), _unique: ze("unique", { startsExpr: fe }), _abstract: ze("abstract", { startsExpr: fe }), _declare: ze("declare", { startsExpr: fe }), _enum: ze("enum", { startsExpr: fe }), _module: ze("module", { startsExpr: fe }), _namespace: ze("namespace", { startsExpr: fe }), _interface: ze("interface", { startsExpr: fe }), _type: ze("type", { startsExpr: fe }), _opaque: ze("opaque", { startsExpr: fe }), name: Ee("name", { startsExpr: fe }), placeholder: Ee("%%", { startsExpr: fe }), string: Ee("string", { startsExpr: fe }), num: Ee("num", { startsExpr: fe }), bigint: Ee("bigint", { startsExpr: fe }), decimal: Ee("decimal", { startsExpr: fe }), regexp: Ee("regexp", { startsExpr: fe }), privateName: Ee("#name", { startsExpr: fe }), eof: Ee("eof"), jsxName: Ee("jsxName"), jsxText: Ee("jsxText", { beforeExpr: He }), jsxTagStart: Ee("jsxTagStart", { startsExpr: fe }), jsxTagEnd: Ee("jsxTagEnd") }; function pt(e) { return e >= 93 && e <= 133; } n(pt, "tokenIsIdentifier"); function sPe(e) { return e <= 92; } n(sPe, "tokenKeywordOrIdentifierIsKeyword"); function hs(e) { return e >= 58 && e <= 133; } n(hs, "tokenIsKeywordOrIdentifier"); function oL(e) { return e >= 58 && e <= 137; } n(oL, "tokenIsLiteralPropertyName"); function nPe(e) { return $T[e]; } n(nPe, "tokenComesBeforeExpression"); function Md(e) { return VT[e]; } n(Md, "tokenCanStartExpression"); function aPe(e) { return e >= 29 && e <= 33; } n(aPe, "tokenIsAssignment"); function YR(e) { return e >= 129 && e <= 131; } n(YR, "tokenIsFlowInterfaceOrTypeOrOpaque"); function oPe(e) { return e >= 90 && e <= 92; } n(oPe, "tokenIsLoop"); function HT(e) { return e >= 58 && e <= 92; } n(HT, "tokenIsKeyword"); function uPe(e) { return e >= 39 && e <= 59; } n(uPe, "tokenIsOperator"); function lPe(e) { return e === 34; } n(lPe, "tokenIsPostfix"); function cPe(e) { return WT[e]; } n(cPe, "tokenIsPrefix"); function fPe(e) { return e >= 121 && e <= 123; } n(fPe, "tokenIsTSTypeOperator"); function dPe(e) { return e >= 124 && e <= 130; } n(dPe, "tokenIsTSDeclarationStart"); function Ma(e) { return qT[e]; } n(Ma, "tokenLabelName"); function Ym(e) { return UT[e]; } n(Ym, "tokenOperatorPrecedence"); function pPe(e) { return e === 57; } n(pPe, "tokenIsRightAssociative"); function Qm(e) { return e >= 24 && e <= 25; } n(Qm, "tokenIsTemplate"); function Mn(e) { return Rn[e]; } n(Mn, "getExportedToken"); Rn[8].updateContext = (e) => { e.pop(); }, Rn[5].updateContext = Rn[7].updateContext = Rn[23].updateContext = (e) => { e.push(at.brace); }, Rn[22].updateContext = (e) => { e[e.length - 1] === at.template ? e.pop() : e.push(at.template); }, Rn[143].updateContext = (e) => { e.push(at.j_expr, at.j_oTag); }; var KT = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993\ -\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92\ -\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\ \u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00\ -\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\ \u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\ \uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC", uL = "\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\ \u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\ \u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0\ -\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00\ -\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65", hPe = new RegExp("[" + KT + "]"), mPe = new RegExp("[" + KT + uL + "\ ]"); KT = uL = null; var lL = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 7, 25, 39, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 5, 57, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 24, 43, 261, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 33, 24, 3, 24, 45, 74, 6, 0, 67, 12, 65, 1, 2, 0, 15, 4, 10, 7381, 42, 31, 98, 114, 8702, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 208, 30, 2, 2, 2, 1, 2, 6, 3, 4, 10, 1, 225, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4381, 3, 5773, 3, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 8489], yPe = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 78, 5, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 199, 7, 137, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239]; function bT(e, t) { let r = 65536; for (let i = 0, s = t.length; i < s; i += 2) { if (r += t[i], r > e) return !1; if (r += t[i + 1], r >= e) return !0; } return !1; } n(bT, "isInAstralSet"); function en(e) { return e < 65 ? e === 36 : e <= 90 ? !0 : e < 97 ? e === 95 : e <= 122 ? !0 : e <= 65535 ? e >= 170 && hPe.test(String.fromCharCode(e)) : bT(e, lL); } n(en, "isIdentifierStart"); function Wo(e) { return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e <= 90 ? !0 : e < 97 ? e === 95 : e <= 122 ? !0 : e <= 65535 ? e >= 170 && mPe.test( String.fromCharCode(e)) : bT(e, lL) || bT(e, yPe); } n(Wo, "isIdentifierChar"); var zT = { keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "swit\ ch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"], strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"], strictBind: ["eval", "arguments"] }, gPe = new Set(zT.keyword), bPe = new Set(zT.strict), DPe = new Set(zT.strictBind); function cL(e, t) { return t && e === "await" || e === "enum"; } n(cL, "isReservedWord"); function fL(e, t) { return cL(e, t) || bPe.has(e); } n(fL, "isStrictReservedWord"); function dL(e) { return DPe.has(e); } n(dL, "isStrictBindOnlyReservedWord"); function pL(e, t) { return fL(e, t) || dL(e); } n(pL, "isStrictBindReservedWord"); function vPe(e) { return gPe.has(e); } n(vPe, "isKeyword"); function xPe(e, t, r) { return e === 64 && t === 64 && en(r); } n(xPe, "isIteratorStart"); var EPe = /* @__PURE__ */ new Set(["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete", "implements", "interface", "let", "package", "private", "protecte\ d", "public", "static", "yield", "eval", "arguments", "enum", "await"]); function SPe(e) { return EPe.has(e); } n(SPe, "canBeReservedWord"); var jd = class { static { n(this, "Scope"); } constructor(t) { this.flags = 0, this.names = /* @__PURE__ */ new Map(), this.firstLexicalName = "", this.flags = t; } }, qd = class { static { n(this, "ScopeHandler"); } constructor(t, r) { this.parser = void 0, this.scopeStack = [], this.inModule = void 0, this.undefinedExports = /* @__PURE__ */ new Map(), this.parser = t, this.inModule = r; } get inTopLevel() { return (this.currentScope().flags & 1) > 0; } get inFunction() { return (this.currentVarScopeFlags() & 2) > 0; } get allowSuper() { return (this.currentThisScopeFlags() & 16) > 0; } get allowDirectSuper() { return (this.currentThisScopeFlags() & 32) > 0; } get allowNewTarget() { return (this.currentThisScopeFlags() & 512) > 0; } get inClass() { return (this.currentThisScopeFlags() & 64) > 0; } get inClassAndNotInNonArrowFunction() { let t = this.currentThisScopeFlags(); return (t & 64) > 0 && (t & 2) === 0; } get inStaticBlock() { for (let t = this.scopeStack.length - 1; ; t--) { let { flags: r } = this.scopeStack[t]; if (r & 128) return !0; if (r & 1731) return !1; } } get inNonArrowFunction() { return (this.currentThisScopeFlags() & 2) > 0; } get inBareCaseStatement() { return (this.currentScope().flags & 256) > 0; } get treatFunctionsAsVar() { return this.treatFunctionsAsVarInScope(this.currentScope()); } createScope(t) { return new jd(t); } enter(t) { this.scopeStack.push(this.createScope(t)); } exit() { return this.scopeStack.pop().flags; } treatFunctionsAsVarInScope(t) { return !!(t.flags & 130 || !this.parser.inModule && t.flags & 1); } declareName(t, r, i) { let s = this.currentScope(); if (r & 8 || r & 16) { this.checkRedeclarationInScope(s, t, r, i); let a = s.names.get(t) || 0; r & 16 ? a = a | 4 : (s.firstLexicalName || (s.firstLexicalName = t), a = a | 2), s.names.set(t, a), r & 8 && this.maybeExportDefined( s, t); } else if (r & 4) for (let a = this.scopeStack.length - 1; a >= 0 && (s = this.scopeStack[a], this.checkRedeclarationInScope(s, t, r, i), s.names.set( t, (s.names.get(t) || 0) | 1), this.maybeExportDefined(s, t), !(s.flags & 1667)); --a) ; this.parser.inModule && s.flags & 1 && this.undefinedExports.delete(t); } maybeExportDefined(t, r) { this.parser.inModule && t.flags & 1 && this.undefinedExports.delete(r); } checkRedeclarationInScope(t, r, i, s) { this.isRedeclaredInScope(t, r, i) && this.parser.raise(R.VarRedeclaration, s, { identifierName: r }); } isRedeclaredInScope(t, r, i) { if (!(i & 1)) return !1; if (i & 8) return t.names.has(r); let s = t.names.get(r) || 0; return i & 16 ? (s & 2) > 0 || !this.treatFunctionsAsVarInScope(t) && (s & 1) > 0 : (s & 2) > 0 && !(t.flags & 8 && t.firstLexicalName === r) || !this.treatFunctionsAsVarInScope(t) && (s & 4) > 0; } checkLocalExport(t) { let { name: r } = t; this.scopeStack[0].names.has(r) || this.undefinedExports.set(r, t.loc.start); } currentScope() { return this.scopeStack[this.scopeStack.length - 1]; } currentVarScopeFlags() { for (let t = this.scopeStack.length - 1; ; t--) { let { flags: r } = this.scopeStack[t]; if (r & 1667) return r; } } currentThisScopeFlags() { for (let t = this.scopeStack.length - 1; ; t--) { let { flags: r } = this.scopeStack[t]; if (r & 1731 && !(r & 4)) return r; } } }, DT = class extends jd { static { n(this, "FlowScope"); } constructor(...t) { super(...t), this.declareFunctions = /* @__PURE__ */ new Set(); } }, vT = class extends qd { static { n(this, "FlowScopeHandler"); } createScope(t) { return new DT(t); } declareName(t, r, i) { let s = this.currentScope(); if (r & 2048) { this.checkRedeclarationInScope(s, t, r, i), this.maybeExportDefined(s, t), s.declareFunctions.add(t); return; } super.declareName(t, r, i); } isRedeclaredInScope(t, r, i) { if (super.isRedeclaredInScope(t, r, i)) return !0; if (i & 2048 && !t.declareFunctions.has(r)) { let s = t.names.get(r); return (s & 4) > 0 || (s & 2) > 0; } return !1; } checkLocalExport(t) { this.scopeStack[0].declareFunctions.has(t.name) || super.checkLocalExport(t); } }, TPe = /* @__PURE__ */ new Set(["_", "any", "bool", "boolean", "empty", "extends", "false", "interface", "mixed", "null", "number", "sta\ tic", "string", "true", "typeof", "void"]), we = Qs`flow`({ AmbiguousConditionalArrow: "Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.", AmbiguousDeclareModuleKind: "Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since \ they are either an ES module or they are a CommonJS module.", AssignReservedType: /* @__PURE__ */ n(({ reservedType: e }) => `Cannot overwrite reserved type ${e}.`, "AssignReservedType"), DeclareClassElement: "The `declare` modifier can only appear on class fields.", DeclareClassFieldInitializer: "Initializers are not allowed in fields with the `declare` modifier.", DuplicateDeclareModuleExports: "Duplicate `declare module.exports` statement.", EnumBooleanMemberNotInitialized: /* @__PURE__ */ n(({ memberName: e, enumName: t }) => `Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`, "EnumBooleanMem\ berNotInitialized"), EnumDuplicateMemberName: /* @__PURE__ */ n(({ memberName: e, enumName: t }) => `Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`, "EnumDuplicateMemberN\ ame"), EnumInconsistentMemberValues: /* @__PURE__ */ n(({ enumName: e }) => `Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, num\ bers, or strings) for all member initializers.`, "EnumInconsistentMemberValues"), EnumInvalidExplicitType: /* @__PURE__ */ n(({ invalidEnumType: e, enumName: t }) => `Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`, "EnumInvalidEx\ plicitType"), EnumInvalidExplicitTypeUnknownSupplied: /* @__PURE__ */ n(({ enumName: e }) => `Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`, "EnumInvalidEx\ plicitTypeUnknownSupplied"), EnumInvalidMemberInitializerPrimaryType: /* @__PURE__ */ n(({ enumName: e, memberName: t, explicitType: r }) => `Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`, "EnumInvalidMemberInitializerPrimar\ yType"), EnumInvalidMemberInitializerSymbolType: /* @__PURE__ */ n(({ enumName: e, memberName: t }) => `Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`, "EnumInvalidMemberInitializerSymbolType"), EnumInvalidMemberInitializerUnknownType: /* @__PURE__ */ n(({ enumName: e, memberName: t }) => `The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`, "EnumInv\ alidMemberInitializerUnknownType"), EnumInvalidMemberName: /* @__PURE__ */ n(({ enumName: e, memberName: t, suggestion: r }) => `Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\ \`.`, "EnumInvalidMemberName"), EnumNumberMemberNotInitialized: /* @__PURE__ */ n(({ enumName: e, memberName: t }) => `Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`, "EnumNumberMemberNotInitialized"), EnumStringMemberInconsistentlyInitialized: /* @__PURE__ */ n(({ enumName: e }) => `String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`, "EnumStringMemb\ erInconsistentlyInitialized"), GetterMayNotHaveThisParam: "A getter cannot have a `this` parameter.", ImportReflectionHasImportType: "An `import module` declaration can not use `type` or `typeof` keyword.", ImportTypeShorthandOnlyInPureImport: "The `type` and `typeof` keywords on named imports can only be used on regular `import` statements.\ It cannot be used with `import type` or `import typeof` statements.", InexactInsideExact: "Explicit inexact syntax cannot appear inside an explicit exact object type.", InexactInsideNonObject: "Explicit inexact syntax cannot appear in class or interface definitions.", InexactVariance: "Explicit inexact syntax cannot have variance.", InvalidNonTypeImportInDeclareModule: "Imports within a `declare module` body must always be `import type` or `import typeof`.", MissingTypeParamDefault: "Type parameter declaration needs a default, since a preceding type parameter declaration has a default.", NestedDeclareModule: "`declare module` cannot be used inside another `declare module`.", NestedFlowComment: "Cannot have a flow comment inside another flow comment.", PatternIsOptional: Object.assign({ message: "A binding pattern parameter cannot be optional in an implementation signature." }, { reasonCode: "OptionalBindingPattern" }), SetterMayNotHaveThisParam: "A setter cannot have a `this` parameter.", SpreadVariance: "Spread properties cannot have variance.", ThisParamAnnotationRequired: "A type annotation is required for the `this` parameter.", ThisParamBannedInConstructor: "Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.", ThisParamMayNotBeOptional: "The `this` parameter cannot be optional.", ThisParamMustBeFirst: "The `this` parameter must be the first function parameter.", ThisParamNoDefault: "The `this` parameter may not have a default value.", TypeBeforeInitializer: "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`\ .", TypeCastInPattern: "The type cast expression is expected to be wrapped with parenthesis.", UnexpectedExplicitInexactInObject: "Explicit inexact syntax must appear at the end of an inexact object.", UnexpectedReservedType: /* @__PURE__ */ n(({ reservedType: e }) => `Unexpected reserved type ${e}.`, "UnexpectedReservedType"), UnexpectedReservedUnderscore: "`_` is only allowed as a type argument to call or new.", UnexpectedSpaceBetweenModuloChecks: "Spaces between `%` and `checks` are not allowed here.", UnexpectedSpreadType: "Spread operator cannot appear in class or interface definitions.", UnexpectedSubtractionOperand: 'Unexpected token, expected "number" or "bigint".', UnexpectedTokenAfterTypeParameter: "Expected an arrow function after this type parameter declaration.", UnexpectedTypeParameterBeforeAsyncArrowFunction: "Type parameters must come after the async keyword, e.g. instead of ` async () => {}\ `, use `async () => {}`.", UnsupportedDeclareExportKind: /* @__PURE__ */ n(({ unsupportedExportKind: e, suggestion: t }) => `\`declare export ${e}\` is not supported. Use \`${t}\` instead.`, "UnsupportedDeclareExportKind"), UnsupportedStatementInDeclareModule: "Only declares and type imports are allowed inside declare module.", UnterminatedFlowComment: "Unterminated flow-comment." }); function CPe(e) { return e.type === "DeclareExportAllDeclaration" || e.type === "DeclareExportDeclaration" && (!e.declaration || e.declaration.type !== "T\ ypeAlias" && e.declaration.type !== "InterfaceDeclaration"); } n(CPe, "isEsModuleType"); function GR(e) { return e.importKind === "type" || e.importKind === "typeof"; } n(GR, "hasTypeImportKind"); var wPe = { const: "declare export var", let: "declare export var", type: "export type", interface: "export interface" }; function APe(e, t) { let r = [], i = []; for (let s = 0; s < e.length; s++) (t(e[s], s, e) ? r : i).push(e[s]); return [r, i]; } n(APe, "partition"); var _Pe = /\*?\s*@((?:no)?flow)\b/, PPe = /* @__PURE__ */ n((e) => class extends e { static { n(this, "FlowParserMixin"); } constructor(...r) { super(...r), this.flowPragma = void 0; } getScopeHandler() { return vT; } shouldParseTypes() { return this.getPluginOption("flow", "all") || this.flowPragma === "flow"; } finishToken(r, i) { r !== 134 && r !== 13 && r !== 28 && this.flowPragma === void 0 && (this.flowPragma = null), super.finishToken(r, i); } addComment(r) { if (this.flowPragma === void 0) { let i = _Pe.exec(r.value); if (i) if (i[1] === "flow") this.flowPragma = "flow"; else if (i[1] === "noflow") this.flowPragma = "noflow"; else throw new Error("Unexpected flow pragma"); } super.addComment(r); } flowParseTypeInitialiser(r) { let i = this.state.inType; this.state.inType = !0, this.expect(r || 14); let s = this.flowParseType(); return this.state.inType = i, s; } flowParsePredicate() { let r = this.startNode(), i = this.state.startLoc; return this.next(), this.expectContextual(110), this.state.lastTokStartLoc.index > i.index + 1 && this.raise(we.UnexpectedSpaceBetweenModuloChecks, i), this.eat(10) ? (r.value = super.parseExpression(), this.expect(11), this.finishNode(r, "DeclaredPredicate")) : this.finishNode(r, "\ InferredPredicate"); } flowParseTypeAndPredicateInitialiser() { let r = this.state.inType; this.state.inType = !0, this.expect(14); let i = null, s = null; return this.match(54) ? (this.state.inType = r, s = this.flowParsePredicate()) : (i = this.flowParseType(), this.state.inType = r, this. match(54) && (s = this.flowParsePredicate())), [i, s]; } flowParseDeclareClass(r) { return this.next(), this.flowParseInterfaceish(r, !0), this.finishNode(r, "DeclareClass"); } flowParseDeclareFunction(r) { this.next(); let i = r.id = this.parseIdentifier(), s = this.startNode(), a = this.startNode(); this.match(47) ? s.typeParameters = this.flowParseTypeParameterDeclaration() : s.typeParameters = null, this.expect(10); let o = this.flowParseFunctionTypeParams(); return s.params = o.params, s.rest = o.rest, s.this = o._this, this.expect(11), [s.returnType, r.predicate] = this.flowParseTypeAndPredicateInitialiser(), a.typeAnnotation = this.finishNode(s, "FunctionTypeAnnotation"), i.typeAnnotation = this.finishNode(a, "TypeAnnotation"), this.resetEndLocation( i), this.semicolon(), this.scope.declareName(r.id.name, 2048, r.id.loc.start), this.finishNode(r, "DeclareFunction"); } flowParseDeclare(r, i) { if (this.match(80)) return this.flowParseDeclareClass(r); if (this.match(68)) return this.flowParseDeclareFunction(r); if (this.match(74)) return this.flowParseDeclareVariable(r); if (this.eatContextual(127)) return this.match(16) ? this.flowParseDeclareModuleExports(r) : (i && this.raise(we.NestedDeclareModule, this.state.lastTokStartLoc), this.flowParseDeclareModule(r)); if (this.isContextual(130)) return this.flowParseDeclareTypeAlias(r); if (this.isContextual(131)) return this.flowParseDeclareOpaqueType(r); if (this.isContextual(129)) return this.flowParseDeclareInterface(r); if (this.match(82)) return this.flowParseDeclareExportDeclaration(r, i); throw this.unexpected(); } flowParseDeclareVariable(r) { return this.next(), r.id = this.flowParseTypeAnnotatableIdentifier(!0), this.scope.declareName(r.id.name, 5, r.id.loc.start), this.semicolon(), this.finishNode(r, "DeclareVariable"); } flowParseDeclareModule(r) { this.scope.enter(0), this.match(134) ? r.id = super.parseExprAtom() : r.id = this.parseIdentifier(); let i = r.body = this.startNode(), s = i.body = []; for (this.expect(5); !this.match(8); ) { let u = this.startNode(); this.match(83) ? (this.next(), !this.isContextual(130) && !this.match(87) && this.raise(we.InvalidNonTypeImportInDeclareModule, this. state.lastTokStartLoc), s.push(super.parseImport(u))) : (this.expectContextual(125, we.UnsupportedStatementInDeclareModule), s.push( this.flowParseDeclare(u, !0))); } this.scope.exit(), this.expect(8), this.finishNode(i, "BlockStatement"); let a = null, o = !1; return s.forEach((u) => { CPe(u) ? (a === "CommonJS" && this.raise(we.AmbiguousDeclareModuleKind, u), a = "ES") : u.type === "DeclareModuleExports" && (o && this. raise(we.DuplicateDeclareModuleExports, u), a === "ES" && this.raise(we.AmbiguousDeclareModuleKind, u), a = "CommonJS", o = !0); }), r.kind = a || "CommonJS", this.finishNode(r, "DeclareModule"); } flowParseDeclareExportDeclaration(r, i) { if (this.expect(82), this.eat(65)) return this.match(68) || this.match(80) ? r.declaration = this.flowParseDeclare(this.startNode()) : (r.declaration = this.flowParseType(), this.semicolon()), r.default = !0, this.finishNode(r, "DeclareExportDeclaration"); if (this.match(75) || this.isLet() || (this.isContextual(130) || this.isContextual(129)) && !i) { let s = this.state.value; throw this.raise(we.UnsupportedDeclareExportKind, this.state.startLoc, { unsupportedExportKind: s, suggestion: wPe[s] }); } if (this.match(74) || this.match(68) || this.match(80) || this.isContextual(131)) return r.declaration = this.flowParseDeclare(this.startNode()), r.default = !1, this.finishNode(r, "DeclareExportDeclaration"); if (this.match(55) || this.match(5) || this.isContextual(129) || this.isContextual(130) || this.isContextual(131)) return r = this.parseExport(r, null), r.type === "ExportNamedDeclaration" ? (r.default = !1, delete r.exportKind, this.castNodeTo(r, "DeclareExportDeclaration")) : this.castNodeTo(r, "DeclareExportAllDeclaration"); throw this.unexpected(); } flowParseDeclareModuleExports(r) { return this.next(), this.expectContextual(111), r.typeAnnotation = this.flowParseTypeAnnotation(), this.semicolon(), this.finishNode(r, "DeclareModuleExports"); } flowParseDeclareTypeAlias(r) { this.next(); let i = this.flowParseTypeAlias(r); return this.castNodeTo(i, "DeclareTypeAlias"), i; } flowParseDeclareOpaqueType(r) { this.next(); let i = this.flowParseOpaqueType(r, !0); return this.castNodeTo(i, "DeclareOpaqueType"), i; } flowParseDeclareInterface(r) { return this.next(), this.flowParseInterfaceish(r, !1), this.finishNode(r, "DeclareInterface"); } flowParseInterfaceish(r, i) { if (r.id = this.flowParseRestrictedIdentifier(!i, !0), this.scope.declareName(r.id.name, i ? 17 : 8201, r.id.loc.start), this.match(47) ? r.typeParameters = this.flowParseTypeParameterDeclaration() : r.typeParameters = null, r.extends = [], this.eat(81)) do r.extends.push(this.flowParseInterfaceExtends()); while (!i && this.eat(12)); if (i) { if (r.implements = [], r.mixins = [], this.eatContextual(117)) do r.mixins.push(this.flowParseInterfaceExtends()); while (this.eat(12)); if (this.eatContextual(113)) do r.implements.push(this.flowParseInterfaceExtends()); while (this.eat(12)); } r.body = this.flowParseObjectType({ allowStatic: i, allowExact: !1, allowSpread: !1, allowProto: i, allowInexact: !1 }); } flowParseInterfaceExtends() { let r = this.startNode(); return r.id = this.flowParseQualifiedTypeIdentifier(), this.match(47) ? r.typeParameters = this.flowParseTypeParameterInstantiation() : r.typeParameters = null, this.finishNode(r, "InterfaceExtends"); } flowParseInterface(r) { return this.flowParseInterfaceish(r, !1), this.finishNode(r, "InterfaceDeclaration"); } checkNotUnderscore(r) { r === "_" && this.raise(we.UnexpectedReservedUnderscore, this.state.startLoc); } checkReservedType(r, i, s) { TPe.has(r) && this.raise(s ? we.AssignReservedType : we.UnexpectedReservedType, i, { reservedType: r }); } flowParseRestrictedIdentifier(r, i) { return this.checkReservedType(this.state.value, this.state.startLoc, i), this.parseIdentifier(r); } flowParseTypeAlias(r) { return r.id = this.flowParseRestrictedIdentifier(!1, !0), this.scope.declareName(r.id.name, 8201, r.id.loc.start), this.match(47) ? r. typeParameters = this.flowParseTypeParameterDeclaration() : r.typeParameters = null, r.right = this.flowParseTypeInitialiser(29), this. semicolon(), this.finishNode(r, "TypeAlias"); } flowParseOpaqueType(r, i) { return this.expectContextual(130), r.id = this.flowParseRestrictedIdentifier(!0, !0), this.scope.declareName(r.id.name, 8201, r.id.loc. start), this.match(47) ? r.typeParameters = this.flowParseTypeParameterDeclaration() : r.typeParameters = null, r.supertype = null, this. match(14) && (r.supertype = this.flowParseTypeInitialiser(14)), r.impltype = null, i || (r.impltype = this.flowParseTypeInitialiser(29)), this.semicolon(), this.finishNode(r, "OpaqueType"); } flowParseTypeParameter(r = !1) { let i = this.state.startLoc, s = this.startNode(), a = this.flowParseVariance(), o = this.flowParseTypeAnnotatableIdentifier(); return s.name = o.name, s.variance = a, s.bound = o.typeAnnotation, this.match(29) ? (this.eat(29), s.default = this.flowParseType()) : r && this.raise(we.MissingTypeParamDefault, i), this.finishNode(s, "TypeParameter"); } flowParseTypeParameterDeclaration() { let r = this.state.inType, i = this.startNode(); i.params = [], this.state.inType = !0, this.match(47) || this.match(143) ? this.next() : this.unexpected(); let s = !1; do { let a = this.flowParseTypeParameter(s); i.params.push(a), a.default && (s = !0), this.match(48) || this.expect(12); } while (!this.match(48)); return this.expect(48), this.state.inType = r, this.finishNode(i, "TypeParameterDeclaration"); } flowInTopLevelContext(r) { if (this.curContext() !== at.brace) { let i = this.state.context; this.state.context = [i[0]]; try { return r(); } finally { this.state.context = i; } } else return r(); } flowParseTypeParameterInstantiationInExpression() { if (this.reScan_lt() === 47) return this.flowParseTypeParameterInstantiation(); } flowParseTypeParameterInstantiation() { let r = this.startNode(), i = this.state.inType; return this.state.inType = !0, r.params = [], this.flowInTopLevelContext(() => { this.expect(47); let s = this.state.noAnonFunctionType; for (this.state.noAnonFunctionType = !1; !this.match(48); ) r.params.push(this.flowParseType()), this.match(48) || this.expect(12); this.state.noAnonFunctionType = s; }), this.state.inType = i, !this.state.inType && this.curContext() === at.brace && this.reScan_lt_gt(), this.expect(48), this.finishNode( r, "TypeParameterInstantiation"); } flowParseTypeParameterInstantiationCallOrNew() { if (this.reScan_lt() !== 47) return null; let r = this.startNode(), i = this.state.inType; for (r.params = [], this.state.inType = !0, this.expect(47); !this.match(48); ) r.params.push(this.flowParseTypeOrImplicitInstantiation()), this.match(48) || this.expect(12); return this.expect(48), this.state.inType = i, this.finishNode(r, "TypeParameterInstantiation"); } flowParseInterfaceType() { let r = this.startNode(); if (this.expectContextual(129), r.extends = [], this.eat(81)) do r.extends.push(this.flowParseInterfaceExtends()); while (this.eat(12)); return r.body = this.flowParseObjectType({ allowStatic: !1, allowExact: !1, allowSpread: !1, allowProto: !1, allowInexact: !1 }), this.finishNode(r, "InterfaceTypeAnnotation"); } flowParseObjectPropertyKey() { return this.match(135) || this.match(134) ? super.parseExprAtom() : this.parseIdentifier(!0); } flowParseObjectTypeIndexer(r, i, s) { return r.static = i, this.lookahead().type === 14 ? (r.id = this.flowParseObjectPropertyKey(), r.key = this.flowParseTypeInitialiser()) : (r.id = null, r.key = this.flowParseType()), this.expect(3), r.value = this.flowParseTypeInitialiser(), r.variance = s, this.finishNode( r, "ObjectTypeIndexer"); } flowParseObjectTypeInternalSlot(r, i) { return r.static = i, r.id = this.flowParseObjectPropertyKey(), this.expect(3), this.expect(3), this.match(47) || this.match(10) ? (r.method = !0, r.optional = !1, r.value = this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))) : (r.method = !1, this.eat(17) && (r. optional = !0), r.value = this.flowParseTypeInitialiser()), this.finishNode(r, "ObjectTypeInternalSlot"); } flowParseObjectTypeMethodish(r) { for (r.params = [], r.rest = null, r.typeParameters = null, r.this = null, this.match(47) && (r.typeParameters = this.flowParseTypeParameterDeclaration()), this.expect(10), this.match(78) && (r.this = this.flowParseFunctionTypeParam(!0), r.this.name = null, this.match(11) || this.expect(12)); !this. match(11) && !this.match(21); ) r.params.push(this.flowParseFunctionTypeParam(!1)), this.match(11) || this.expect(12); return this.eat(21) && (r.rest = this.flowParseFunctionTypeParam(!1)), this.expect(11), r.returnType = this.flowParseTypeInitialiser(), this.finishNode(r, "FunctionTypeAnnotation"); } flowParseObjectTypeCallProperty(r, i) { let s = this.startNode(); return r.static = i, r.value = this.flowParseObjectTypeMethodish(s), this.finishNode(r, "ObjectTypeCallProperty"); } flowParseObjectType({ allowStatic: r, allowExact: i, allowSpread: s, allowProto: a, allowInexact: o }) { let u = this.state.inType; this.state.inType = !0; let l = this.startNode(); l.callProperties = [], l.properties = [], l.indexers = [], l.internalSlots = []; let c, f, m = !1; for (i && this.match(6) ? (this.expect(6), c = 9, f = !0) : (this.expect(5), c = 8, f = !1), l.exact = f; !this.match(c); ) { let d = !1, y = null, p = null, g = this.startNode(); if (a && this.isContextual(118)) { let D = this.lookahead(); D.type !== 14 && D.type !== 17 && (this.next(), y = this.state.startLoc, r = !1); } if (r && this.isContextual(106)) { let D = this.lookahead(); D.type !== 14 && D.type !== 17 && (this.next(), d = !0); } let b = this.flowParseVariance(); if (this.eat(0)) y != null && this.unexpected(y), this.eat(0) ? (b && this.unexpected(b.loc.start), l.internalSlots.push(this.flowParseObjectTypeInternalSlot( g, d))) : l.indexers.push(this.flowParseObjectTypeIndexer(g, d, b)); else if (this.match(10) || this.match(47)) y != null && this.unexpected(y), b && this.unexpected(b.loc.start), l.callProperties.push(this.flowParseObjectTypeCallProperty(g, d)); else { let D = "init"; if (this.isContextual(99) || this.isContextual(104)) { let T = this.lookahead(); oL(T.type) && (D = this.state.value, this.next()); } let x = this.flowParseObjectTypeProperty(g, d, y, b, D, s, o ?? !f); x === null ? (m = !0, p = this.state.lastTokStartLoc) : l.properties.push(x); } this.flowObjectTypeSemicolon(), p && !this.match(8) && !this.match(9) && this.raise(we.UnexpectedExplicitInexactInObject, p); } this.expect(c), s && (l.inexact = m); let h = this.finishNode(l, "ObjectTypeAnnotation"); return this.state.inType = u, h; } flowParseObjectTypeProperty(r, i, s, a, o, u, l) { if (this.eat(21)) return this.match(12) || this.match(13) || this.match(8) || this.match(9) ? (u ? l || this.raise(we.InexactInsideExact, this.state.lastTokStartLoc) : this.raise(we.InexactInsideNonObject, this.state.lastTokStartLoc), a && this.raise(we.InexactVariance, a), null) : (u || this.raise( we.UnexpectedSpreadType, this.state.lastTokStartLoc), s != null && this.unexpected(s), a && this.raise(we.SpreadVariance, a), r.argument = this.flowParseType(), this.finishNode(r, "ObjectTypeSpreadProperty")); { r.key = this.flowParseObjectPropertyKey(), r.static = i, r.proto = s != null, r.kind = o; let c = !1; return this.match(47) || this.match(10) ? (r.method = !0, s != null && this.unexpected(s), a && this.unexpected(a.loc.start), r.value = this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)), (o === "get" || o === "set") && this.flowCheckGetterSetterParams(r), !u && r.key.name === "constructor" && r.value.this && this.raise(we.ThisParamBannedInConstructor, r.value.this)) : (o !== "init" && this. unexpected(), r.method = !1, this.eat(17) && (c = !0), r.value = this.flowParseTypeInitialiser(), r.variance = a), r.optional = c, this. finishNode(r, "ObjectTypeProperty"); } } flowCheckGetterSetterParams(r) { let i = r.kind === "get" ? 0 : 1, s = r.value.params.length + (r.value.rest ? 1 : 0); r.value.this && this.raise(r.kind === "get" ? we.GetterMayNotHaveThisParam : we.SetterMayNotHaveThisParam, r.value.this), s !== i && this. raise(r.kind === "get" ? R.BadGetterArity : R.BadSetterArity, r), r.kind === "set" && r.value.rest && this.raise(R.BadSetterRestParameter, r); } flowObjectTypeSemicolon() { !this.eat(13) && !this.eat(12) && !this.match(8) && !this.match(9) && this.unexpected(); } flowParseQualifiedTypeIdentifier(r, i) { r ?? (r = this.state.startLoc); let s = i || this.flowParseRestrictedIdentifier(!0); for (; this.eat(16); ) { let a = this.startNodeAt(r); a.qualification = s, a.id = this.flowParseRestrictedIdentifier(!0), s = this.finishNode(a, "QualifiedTypeIdentifier"); } return s; } flowParseGenericType(r, i) { let s = this.startNodeAt(r); return s.typeParameters = null, s.id = this.flowParseQualifiedTypeIdentifier(r, i), this.match(47) && (s.typeParameters = this.flowParseTypeParameterInstantiation()), this.finishNode(s, "GenericTypeAnnotation"); } flowParseTypeofType() { let r = this.startNode(); return this.expect(87), r.argument = this.flowParsePrimaryType(), this.finishNode(r, "TypeofTypeAnnotation"); } flowParseTupleType() { let r = this.startNode(); for (r.types = [], this.expect(0); this.state.pos < this.length && !this.match(3) && (r.types.push(this.flowParseType()), !this.match( 3)); ) this.expect(12); return this.expect(3), this.finishNode(r, "TupleTypeAnnotation"); } flowParseFunctionTypeParam(r) { let i = null, s = !1, a = null, o = this.startNode(), u = this.lookahead(), l = this.state.type === 78; return u.type === 14 || u.type === 17 ? (l && !r && this.raise(we.ThisParamMustBeFirst, o), i = this.parseIdentifier(l), this.eat(17) && (s = !0, l && this.raise(we.ThisParamMayNotBeOptional, o)), a = this.flowParseTypeInitialiser()) : a = this.flowParseType(), o.name = i, o.optional = s, o.typeAnnotation = a, this.finishNode(o, "FunctionTypeParam"); } reinterpretTypeAsFunctionTypeParam(r) { let i = this.startNodeAt(r.loc.start); return i.name = null, i.optional = !1, i.typeAnnotation = r, this.finishNode(i, "FunctionTypeParam"); } flowParseFunctionTypeParams(r = []) { let i = null, s = null; for (this.match(78) && (s = this.flowParseFunctionTypeParam(!0), s.name = null, this.match(11) || this.expect(12)); !this.match(11) && !this.match(21); ) r.push(this.flowParseFunctionTypeParam(!1)), this.match(11) || this.expect(12); return this.eat(21) && (i = this.flowParseFunctionTypeParam(!1)), { params: r, rest: i, _this: s }; } flowIdentToTypeAnnotation(r, i, s) { switch (s.name) { case "any": return this.finishNode(i, "AnyTypeAnnotation"); case "bool": case "boolean": return this.finishNode(i, "BooleanTypeAnnotation"); case "mixed": return this.finishNode(i, "MixedTypeAnnotation"); case "empty": return this.finishNode(i, "EmptyTypeAnnotation"); case "number": return this.finishNode(i, "NumberTypeAnnotation"); case "string": return this.finishNode(i, "StringTypeAnnotation"); case "symbol": return this.finishNode(i, "SymbolTypeAnnotation"); default: return this.checkNotUnderscore(s.name), this.flowParseGenericType(r, s); } } flowParsePrimaryType() { let r = this.state.startLoc, i = this.startNode(), s, a, o = !1, u = this.state.noAnonFunctionType; switch (this.state.type) { case 5: return this.flowParseObjectType({ allowStatic: !1, allowExact: !1, allowSpread: !0, allowProto: !1, allowInexact: !0 }); case 6: return this.flowParseObjectType({ allowStatic: !1, allowExact: !0, allowSpread: !0, allowProto: !1, allowInexact: !1 }); case 0: return this.state.noAnonFunctionType = !1, a = this.flowParseTupleType(), this.state.noAnonFunctionType = u, a; case 47: { let l = this.startNode(); return l.typeParameters = this.flowParseTypeParameterDeclaration(), this.expect(10), s = this.flowParseFunctionTypeParams(), l.params = s.params, l.rest = s.rest, l.this = s._this, this.expect(11), this.expect(19), l.returnType = this.flowParseType(), this.finishNode( l, "FunctionTypeAnnotation"); } case 10: { let l = this.startNode(); if (this.next(), !this.match(11) && !this.match(21)) if (pt(this.state.type) || this.match(78)) { let c = this.lookahead().type; o = c !== 17 && c !== 14; } else o = !0; if (o) { if (this.state.noAnonFunctionType = !1, a = this.flowParseType(), this.state.noAnonFunctionType = u, this.state.noAnonFunctionType || !(this.match(12) || this.match(11) && this.lookahead().type === 19)) return this.expect(11), a; this.eat(12); } return a ? s = this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(a)]) : s = this.flowParseFunctionTypeParams(), l.params = s.params, l.rest = s.rest, l.this = s._this, this.expect(11), this.expect(19), l.returnType = this.flowParseType(), l.typeParameters = null, this.finishNode(l, "FunctionTypeAnnotation"); } case 134: return this.parseLiteral(this.state.value, "StringLiteralTypeAnnotation"); case 85: case 86: return i.value = this.match(85), this.next(), this.finishNode(i, "BooleanLiteralTypeAnnotation"); case 53: if (this.state.value === "-") { if (this.next(), this.match(135)) return this.parseLiteralAtNode(-this.state.value, "NumberLiteralTypeAnnotation", i); if (this.match(136)) return this.parseLiteralAtNode(-this.state.value, "BigIntLiteralTypeAnnotation", i); throw this.raise(we.UnexpectedSubtractionOperand, this.state.startLoc); } throw this.unexpected(); case 135: return this.parseLiteral(this.state.value, "NumberLiteralTypeAnnotation"); case 136: return this.parseLiteral(this.state.value, "BigIntLiteralTypeAnnotation"); case 88: return this.next(), this.finishNode(i, "VoidTypeAnnotation"); case 84: return this.next(), this.finishNode(i, "NullLiteralTypeAnnotation"); case 78: return this.next(), this.finishNode(i, "ThisTypeAnnotation"); case 55: return this.next(), this.finishNode(i, "ExistsTypeAnnotation"); case 87: return this.flowParseTypeofType(); default: if (HT(this.state.type)) { let l = Ma(this.state.type); return this.next(), super.createIdentifier(i, l); } else if (pt(this.state.type)) return this.isContextual(129) ? this.flowParseInterfaceType() : this.flowIdentToTypeAnnotation(r, i, this.parseIdentifier()); } throw this.unexpected(); } flowParsePostfixType() { let r = this.state.startLoc, i = this.flowParsePrimaryType(), s = !1; for (; (this.match(0) || this.match(18)) && !this.canInsertSemicolon(); ) { let a = this.startNodeAt(r), o = this.eat(18); s = s || o, this.expect(0), !o && this.match(3) ? (a.elementType = i, this.next(), i = this.finishNode(a, "ArrayTypeAnnotation")) : (a. objectType = i, a.indexType = this.flowParseType(), this.expect(3), s ? (a.optional = o, i = this.finishNode(a, "OptionalIndexedAcce\ ssType")) : i = this.finishNode(a, "IndexedAccessType")); } return i; } flowParsePrefixType() { let r = this.startNode(); return this.eat(17) ? (r.typeAnnotation = this.flowParsePrefixType(), this.finishNode(r, "NullableTypeAnnotation")) : this.flowParsePostfixType(); } flowParseAnonFunctionWithoutParens() { let r = this.flowParsePrefixType(); if (!this.state.noAnonFunctionType && this.eat(19)) { let i = this.startNodeAt(r.loc.start); return i.params = [this.reinterpretTypeAsFunctionTypeParam(r)], i.rest = null, i.this = null, i.returnType = this.flowParseType(), i. typeParameters = null, this.finishNode(i, "FunctionTypeAnnotation"); } return r; } flowParseIntersectionType() { let r = this.startNode(); this.eat(45); let i = this.flowParseAnonFunctionWithoutParens(); for (r.types = [i]; this.eat(45); ) r.types.push(this.flowParseAnonFunctionWithoutParens()); return r.types.length === 1 ? i : this.finishNode(r, "IntersectionTypeAnnotation"); } flowParseUnionType() { let r = this.startNode(); this.eat(43); let i = this.flowParseIntersectionType(); for (r.types = [i]; this.eat(43); ) r.types.push(this.flowParseIntersectionType()); return r.types.length === 1 ? i : this.finishNode(r, "UnionTypeAnnotation"); } flowParseType() { let r = this.state.inType; this.state.inType = !0; let i = this.flowParseUnionType(); return this.state.inType = r, i; } flowParseTypeOrImplicitInstantiation() { if (this.state.type === 132 && this.state.value === "_") { let r = this.state.startLoc, i = this.parseIdentifier(); return this.flowParseGenericType(r, i); } else return this.flowParseType(); } flowParseTypeAnnotation() { let r = this.startNode(); return r.typeAnnotation = this.flowParseTypeInitialiser(), this.finishNode(r, "TypeAnnotation"); } flowParseTypeAnnotatableIdentifier(r) { let i = r ? this.parseIdentifier() : this.flowParseRestrictedIdentifier(); return this.match(14) && (i.typeAnnotation = this.flowParseTypeAnnotation(), this.resetEndLocation(i)), i; } typeCastToParameter(r) { return r.expression.typeAnnotation = r.typeAnnotation, this.resetEndLocation(r.expression, r.typeAnnotation.loc.end), r.expression; } flowParseVariance() { let r = null; return this.match(53) ? (r = this.startNode(), this.state.value === "+" ? r.kind = "plus" : r.kind = "minus", this.next(), this.finishNode( r, "Variance")) : r; } parseFunctionBody(r, i, s = !1) { if (i) { this.forwardNoArrowParamsConversionAt(r, () => super.parseFunctionBody(r, !0, s)); return; } super.parseFunctionBody(r, !1, s); } parseFunctionBodyAndFinish(r, i, s = !1) { if (this.match(14)) { let a = this.startNode(); [a.typeAnnotation, r.predicate] = this.flowParseTypeAndPredicateInitialiser(), r.returnType = a.typeAnnotation ? this.finishNode(a, "\ TypeAnnotation") : null; } return super.parseFunctionBodyAndFinish(r, i, s); } parseStatementLike(r) { if (this.state.strict && this.isContextual(129)) { let s = this.lookahead(); if (hs(s.type)) { let a = this.startNode(); return this.next(), this.flowParseInterface(a); } } else if (this.isContextual(126)) { let s = this.startNode(); return this.next(), this.flowParseEnumDeclaration(s); } let i = super.parseStatementLike(r); return this.flowPragma === void 0 && !this.isValidDirective(i) && (this.flowPragma = null), i; } parseExpressionStatement(r, i, s) { if (i.type === "Identifier") { if (i.name === "declare") { if (this.match(80) || pt(this.state.type) || this.match(68) || this.match(74) || this.match(82)) return this.flowParseDeclare(r); } else if (pt(this.state.type)) { if (i.name === "interface") return this.flowParseInterface(r); if (i.name === "type") return this.flowParseTypeAlias(r); if (i.name === "opaque") return this.flowParseOpaqueType(r, !1); } } return super.parseExpressionStatement(r, i, s); } shouldParseExportDeclaration() { let { type: r } = this.state; return r === 126 || YR(r) ? !this.state.containsEsc : super.shouldParseExportDeclaration(); } isExportDefaultSpecifier() { let { type: r } = this.state; return r === 126 || YR(r) ? this.state.containsEsc : super.isExportDefaultSpecifier(); } parseExportDefaultExpression() { if (this.isContextual(126)) { let r = this.startNode(); return this.next(), this.flowParseEnumDeclaration(r); } return super.parseExportDefaultExpression(); } parseConditional(r, i, s) { if (!this.match(17)) return r; if (this.state.maybeInArrowParameters) { let h = this.lookaheadCharCode(); if (h === 44 || h === 61 || h === 58 || h === 41) return this.setOptionalParametersError(s), r; } this.expect(17); let a = this.state.clone(), o = this.state.noArrowAt, u = this.startNodeAt(i), { consequent: l, failed: c } = this.tryParseConditionalConsequent(), [f, m] = this.getArrowLikeExpressions(l); if (c || m.length > 0) { let h = [...o]; if (m.length > 0) { this.state = a, this.state.noArrowAt = h; for (let d = 0; d < m.length; d++) h.push(m[d].start); ({ consequent: l, failed: c } = this.tryParseConditionalConsequent()), [f, m] = this.getArrowLikeExpressions(l); } c && f.length > 1 && this.raise(we.AmbiguousConditionalArrow, a.startLoc), c && f.length === 1 && (this.state = a, h.push(f[0].start), this.state.noArrowAt = h, { consequent: l, failed: c } = this.tryParseConditionalConsequent()); } return this.getArrowLikeExpressions(l, !0), this.state.noArrowAt = o, this.expect(14), u.test = r, u.consequent = l, u.alternate = this. forwardNoArrowParamsConversionAt(u, () => this.parseMaybeAssign(void 0, void 0)), this.finishNode(u, "ConditionalExpression"); } tryParseConditionalConsequent() { this.state.noArrowParamsConversionAt.push(this.state.start); let r = this.parseMaybeAssignAllowIn(), i = !this.match(14); return this.state.noArrowParamsConversionAt.pop(), { consequent: r, failed: i }; } getArrowLikeExpressions(r, i) { let s = [r], a = []; for (; s.length !== 0; ) { let o = s.pop(); o.type === "ArrowFunctionExpression" && o.body.type !== "BlockStatement" ? (o.typeParameters || !o.returnType ? this.finishArrowValidation( o) : a.push(o), s.push(o.body)) : o.type === "ConditionalExpression" && (s.push(o.consequent), s.push(o.alternate)); } return i ? (a.forEach((o) => this.finishArrowValidation(o)), [a, []]) : APe(a, (o) => o.params.every((u) => this.isAssignable(u, !0))); } finishArrowValidation(r) { var i; this.toAssignableList(r.params, (i = r.extra) == null ? void 0 : i.trailingCommaLoc, !1), this.scope.enter(518), super.checkParams(r, !1, !0), this.scope.exit(); } forwardNoArrowParamsConversionAt(r, i) { let s; return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)) ? (this.state.noArrowParamsConversionAt.push(this. state.start), s = i(), this.state.noArrowParamsConversionAt.pop()) : s = i(), s; } parseParenItem(r, i) { let s = super.parseParenItem(r, i); if (this.eat(17) && (s.optional = !0, this.resetEndLocation(r)), this.match(14)) { let a = this.startNodeAt(i); return a.expression = s, a.typeAnnotation = this.flowParseTypeAnnotation(), this.finishNode(a, "TypeCastExpression"); } return s; } assertModuleNodeAllowed(r) { r.type === "ImportDeclaration" && (r.importKind === "type" || r.importKind === "typeof") || r.type === "ExportNamedDeclaration" && r.exportKind === "type" || r.type === "ExportAllDeclaration" && r.exportKind === "type" || super.assertModuleNodeAllowed(r); } parseExportDeclaration(r) { if (this.isContextual(130)) { r.exportKind = "type"; let i = this.startNode(); return this.next(), this.match(5) ? (r.specifiers = this.parseExportSpecifiers(!0), super.parseExportFrom(r), null) : this.flowParseTypeAlias( i); } else if (this.isContextual(131)) { r.exportKind = "type"; let i = this.startNode(); return this.next(), this.flowParseOpaqueType(i, !1); } else if (this.isContextual(129)) { r.exportKind = "type"; let i = this.startNode(); return this.next(), this.flowParseInterface(i); } else if (this.isContextual(126)) { r.exportKind = "value"; let i = this.startNode(); return this.next(), this.flowParseEnumDeclaration(i); } else return super.parseExportDeclaration(r); } eatExportStar(r) { return super.eatExportStar(r) ? !0 : this.isContextual(130) && this.lookahead().type === 55 ? (r.exportKind = "type", this.next(), this. next(), !0) : !1; } maybeParseExportNamespaceSpecifier(r) { let { startLoc: i } = this.state, s = super.maybeParseExportNamespaceSpecifier(r); return s && r.exportKind === "type" && this.unexpected(i), s; } parseClassId(r, i, s) { super.parseClassId(r, i, s), this.match(47) && (r.typeParameters = this.flowParseTypeParameterDeclaration()); } parseClassMember(r, i, s) { let { startLoc: a } = this.state; if (this.isContextual(125)) { if (super.parseClassMemberFromModifier(r, i)) return; i.declare = !0; } super.parseClassMember(r, i, s), i.declare && (i.type !== "ClassProperty" && i.type !== "ClassPrivateProperty" && i.type !== "Property\ Definition" ? this.raise(we.DeclareClassElement, a) : i.value && this.raise(we.DeclareClassFieldInitializer, i.value)); } isIterator(r) { return r === "iterator" || r === "asyncIterator"; } readIterator() { let r = super.readWord1(), i = "@@" + r; (!this.isIterator(r) || !this.state.inType) && this.raise(R.InvalidIdentifier, this.state.curPosition(), { identifierName: i }), this.finishToken(132, i); } getTokenFromCode(r) { let i = this.input.charCodeAt(this.state.pos + 1); r === 123 && i === 124 ? this.finishOp(6, 2) : this.state.inType && (r === 62 || r === 60) ? this.finishOp(r === 62 ? 48 : 47, 1) : this. state.inType && r === 63 ? i === 46 ? this.finishOp(18, 2) : this.finishOp(17, 1) : xPe(r, i, this.input.charCodeAt(this.state.pos + 2)) ? (this.state.pos += 2, this.readIterator()) : super.getTokenFromCode(r); } isAssignable(r, i) { return r.type === "TypeCastExpression" ? this.isAssignable(r.expression, i) : super.isAssignable(r, i); } toAssignable(r, i = !1) { !i && r.type === "AssignmentExpression" && r.left.type === "TypeCastExpression" && (r.left = this.typeCastToParameter(r.left)), super. toAssignable(r, i); } toAssignableList(r, i, s) { for (let a = 0; a < r.length; a++) { let o = r[a]; o?.type === "TypeCastExpression" && (r[a] = this.typeCastToParameter(o)); } super.toAssignableList(r, i, s); } toReferencedList(r, i) { for (let a = 0; a < r.length; a++) { var s; let o = r[a]; o && o.type === "TypeCastExpression" && !((s = o.extra) != null && s.parenthesized) && (r.length > 1 || !i) && this.raise(we.TypeCastInPattern, o.typeAnnotation); } return r; } parseArrayLike(r, i, s) { let a = super.parseArrayLike(r, i, s); return s != null && !this.state.maybeInArrowParameters && this.toReferencedList(a.elements), a; } isValidLVal(r, i, s, a) { return r === "TypeCastExpression" || super.isValidLVal(r, i, s, a); } parseClassProperty(r) { return this.match(14) && (r.typeAnnotation = this.flowParseTypeAnnotation()), super.parseClassProperty(r); } parseClassPrivateProperty(r) { return this.match(14) && (r.typeAnnotation = this.flowParseTypeAnnotation()), super.parseClassPrivateProperty(r); } isClassMethod() { return this.match(47) || super.isClassMethod(); } isClassProperty() { return this.match(14) || super.isClassProperty(); } isNonstaticConstructor(r) { return !this.match(14) && super.isNonstaticConstructor(r); } pushClassMethod(r, i, s, a, o, u) { if (i.variance && this.unexpected(i.variance.loc.start), delete i.variance, this.match(47) && (i.typeParameters = this.flowParseTypeParameterDeclaration()), super.pushClassMethod(r, i, s, a, o, u), i.params && o) { let l = i.params; l.length > 0 && this.isThisParam(l[0]) && this.raise(we.ThisParamBannedInConstructor, i); } else if (i.type === "MethodDefinition" && o && i.value.params) { let l = i.value.params; l.length > 0 && this.isThisParam(l[0]) && this.raise(we.ThisParamBannedInConstructor, i); } } pushClassPrivateMethod(r, i, s, a) { i.variance && this.unexpected(i.variance.loc.start), delete i.variance, this.match(47) && (i.typeParameters = this.flowParseTypeParameterDeclaration()), super.pushClassPrivateMethod(r, i, s, a); } parseClassSuper(r) { if (super.parseClassSuper(r), r.superClass && (this.match(47) || this.match(51)) && (r.superTypeParameters = this.flowParseTypeParameterInstantiationInExpression()), this.isContextual(113)) { this.next(); let i = r.implements = []; do { let s = this.startNode(); s.id = this.flowParseRestrictedIdentifier(!0), this.match(47) ? s.typeParameters = this.flowParseTypeParameterInstantiation() : s. typeParameters = null, i.push(this.finishNode(s, "ClassImplements")); } while (this.eat(12)); } } checkGetterSetterParams(r) { super.checkGetterSetterParams(r); let i = this.getObjectOrClassMethodParams(r); if (i.length > 0) { let s = i[0]; this.isThisParam(s) && r.kind === "get" ? this.raise(we.GetterMayNotHaveThisParam, s) : this.isThisParam(s) && this.raise(we.SetterMayNotHaveThisParam, s); } } parsePropertyNamePrefixOperator(r) { r.variance = this.flowParseVariance(); } parseObjPropValue(r, i, s, a, o, u, l) { r.variance && this.unexpected(r.variance.loc.start), delete r.variance; let c; this.match(47) && !u && (c = this.flowParseTypeParameterDeclaration(), this.match(10) || this.unexpected()); let f = super.parseObjPropValue(r, i, s, a, o, u, l); return c && ((f.value || f).typeParameters = c), f; } parseFunctionParamType(r) { return this.eat(17) && (r.type !== "Identifier" && this.raise(we.PatternIsOptional, r), this.isThisParam(r) && this.raise(we.ThisParamMayNotBeOptional, r), r.optional = !0), this.match(14) ? r.typeAnnotation = this.flowParseTypeAnnotation() : this.isThisParam(r) && this.raise(we.ThisParamAnnotationRequired, r), this.match(29) && this.isThisParam(r) && this.raise(we.ThisParamNoDefault, r), this.resetEndLocation(r), r; } parseMaybeDefault(r, i) { let s = super.parseMaybeDefault(r, i); return s.type === "AssignmentPattern" && s.typeAnnotation && s.right.start < s.typeAnnotation.start && this.raise(we.TypeBeforeInitializer, s.typeAnnotation), s; } checkImportReflection(r) { super.checkImportReflection(r), r.module && r.importKind !== "value" && this.raise(we.ImportReflectionHasImportType, r.specifiers[0].loc. start); } parseImportSpecifierLocal(r, i, s) { i.local = GR(r) ? this.flowParseRestrictedIdentifier(!0, !0) : this.parseIdentifier(), r.specifiers.push(this.finishImportSpecifier(i, s)); } isPotentialImportPhase(r) { if (super.isPotentialImportPhase(r)) return !0; if (this.isContextual(130)) { if (!r) return !0; let i = this.lookaheadCharCode(); return i === 123 || i === 42; } return !r && this.isContextual(87); } applyImportPhase(r, i, s, a) { if (super.applyImportPhase(r, i, s, a), i) { if (!s && this.match(65)) return; r.exportKind = s === "type" ? s : "value"; } else s === "type" && this.match(55) && this.unexpected(), r.importKind = s === "type" || s === "typeof" ? s : "value"; } parseImportSpecifier(r, i, s, a, o) { let u = r.imported, l = null; u.type === "Identifier" && (u.name === "type" ? l = "type" : u.name === "typeof" && (l = "typeof")); let c = !1; if (this.isContextual(93) && !this.isLookaheadContextual("as")) { let m = this.parseIdentifier(!0); l !== null && !hs(this.state.type) ? (r.imported = m, r.importKind = l, r.local = this.cloneIdentifier(m)) : (r.imported = u, r.importKind = null, r.local = this.parseIdentifier()); } else { if (l !== null && hs(this.state.type)) r.imported = this.parseIdentifier(!0), r.importKind = l; else { if (i) throw this.raise(R.ImportBindingIsString, r, { importName: u.value }); r.imported = u, r.importKind = null; } this.eatContextual(93) ? r.local = this.parseIdentifier() : (c = !0, r.local = this.cloneIdentifier(r.imported)); } let f = GR(r); return s && f && this.raise(we.ImportTypeShorthandOnlyInPureImport, r), (s || f) && this.checkReservedType(r.local.name, r.local.loc.start, !0), c && !s && !f && this.checkReservedWord(r.local.name, r.loc.start, !0, !0), this.finishImportSpecifier(r, "ImportSpecifier"); } parseBindingAtom() { switch (this.state.type) { case 78: return this.parseIdentifier(!0); default: return super.parseBindingAtom(); } } parseFunctionParams(r, i) { let s = r.kind; s !== "get" && s !== "set" && this.match(47) && (r.typeParameters = this.flowParseTypeParameterDeclaration()), super.parseFunctionParams( r, i); } parseVarId(r, i) { super.parseVarId(r, i), this.match(14) && (r.id.typeAnnotation = this.flowParseTypeAnnotation(), this.resetEndLocation(r.id)); } parseAsyncArrowFromCallExpression(r, i) { if (this.match(14)) { let s = this.state.noAnonFunctionType; this.state.noAnonFunctionType = !0, r.returnType = this.flowParseTypeAnnotation(), this.state.noAnonFunctionType = s; } return super.parseAsyncArrowFromCallExpression(r, i); } shouldParseAsyncArrow() { return this.match(14) || super.shouldParseAsyncArrow(); } parseMaybeAssign(r, i) { var s; let a = null, o; if (this.hasPlugin("jsx") && (this.match(143) || this.match(47))) { if (a = this.state.clone(), o = this.tryParse(() => super.parseMaybeAssign(r, i), a), !o.error) return o.node; let { context: c } = this.state, f = c[c.length - 1]; (f === at.j_oTag || f === at.j_expr) && c.pop(); } if ((s = o) != null && s.error || this.match(47)) { var u, l; a = a || this.state.clone(); let c, f = this.tryParse((h) => { var d; c = this.flowParseTypeParameterDeclaration(); let y = this.forwardNoArrowParamsConversionAt(c, () => { let g = super.parseMaybeAssign(r, i); return this.resetStartLocationFromNode(g, c), g; }); (d = y.extra) != null && d.parenthesized && h(); let p = this.maybeUnwrapTypeCastExpression(y); return p.type !== "ArrowFunctionExpression" && h(), p.typeParameters = c, this.resetStartLocationFromNode(p, c), y; }, a), m = null; if (f.node && this.maybeUnwrapTypeCastExpression(f.node).type === "ArrowFunctionExpression") { if (!f.error && !f.aborted) return f.node.async && this.raise(we.UnexpectedTypeParameterBeforeAsyncArrowFunction, c), f.node; m = f.node; } if ((u = o) != null && u.node) return this.state = o.failState, o.node; if (m) return this.state = f.failState, m; throw (l = o) != null && l.thrown ? o.error : f.thrown ? f.error : this.raise(we.UnexpectedTokenAfterTypeParameter, c); } return super.parseMaybeAssign(r, i); } parseArrow(r) { if (this.match(14)) { let i = this.tryParse(() => { let s = this.state.noAnonFunctionType; this.state.noAnonFunctionType = !0; let a = this.startNode(); return [a.typeAnnotation, r.predicate] = this.flowParseTypeAndPredicateInitialiser(), this.state.noAnonFunctionType = s, this.canInsertSemicolon() && this.unexpected(), this.match(19) || this.unexpected(), a; }); if (i.thrown) return null; i.error && (this.state = i.failState), r.returnType = i.node.typeAnnotation ? this.finishNode(i.node, "TypeAnnotation") : null; } return super.parseArrow(r); } shouldParseArrow(r) { return this.match(14) || super.shouldParseArrow(r); } setArrowFunctionParameters(r, i) { this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)) ? r.params = i : super.setArrowFunctionParameters(r, i); } checkParams(r, i, s, a = !0) { if (!(s && this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))) { for (let o = 0; o < r.params.length; o++) this.isThisParam(r.params[o]) && o > 0 && this.raise(we.ThisParamMustBeFirst, r.params[o]); super.checkParams(r, i, s, a); } } parseParenAndDistinguishExpression(r) { return super.parseParenAndDistinguishExpression(r && !this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start))); } parseSubscripts(r, i, s) { if (r.type === "Identifier" && r.name === "async" && this.state.noArrowAt.includes(i.index)) { this.next(); let a = this.startNodeAt(i); a.callee = r, a.arguments = super.parseCallExpressionArguments(), r = this.finishNode(a, "CallExpression"); } else if (r.type === "Identifier" && r.name === "async" && this.match(47)) { let a = this.state.clone(), o = this.tryParse((l) => this.parseAsyncArrowWithTypeParameters(i) || l(), a); if (!o.error && !o.aborted) return o.node; let u = this.tryParse(() => super.parseSubscripts(r, i, s), a); if (u.node && !u.error) return u.node; if (o.node) return this.state = o.failState, o.node; if (u.node) return this.state = u.failState, u.node; throw o.error || u.error; } return super.parseSubscripts(r, i, s); } parseSubscript(r, i, s, a) { if (this.match(18) && this.isLookaheadToken_lt()) { if (a.optionalChainMember = !0, s) return a.stop = !0, r; this.next(); let o = this.startNodeAt(i); return o.callee = r, o.typeArguments = this.flowParseTypeParameterInstantiationInExpression(), this.expect(10), o.arguments = this.parseCallExpressionArguments(), o.optional = !0, this.finishCallExpression(o, !0); } else if (!s && this.shouldParseTypes() && (this.match(47) || this.match(51))) { let o = this.startNodeAt(i); o.callee = r; let u = this.tryParse(() => (o.typeArguments = this.flowParseTypeParameterInstantiationCallOrNew(), this.expect(10), o.arguments = super. parseCallExpressionArguments(), a.optionalChainMember && (o.optional = !1), this.finishCallExpression(o, a.optionalChainMember))); if (u.node) return u.error && (this.state = u.failState), u.node; } return super.parseSubscript(r, i, s, a); } parseNewCallee(r) { super.parseNewCallee(r); let i = null; this.shouldParseTypes() && this.match(47) && (i = this.tryParse(() => this.flowParseTypeParameterInstantiationCallOrNew()).node), r.typeArguments = i; } parseAsyncArrowWithTypeParameters(r) { let i = this.startNodeAt(r); if (this.parseFunctionParams(i, !1), !!this.parseArrow(i)) return super.parseArrowExpression(i, void 0, !0); } readToken_mult_modulo(r) { let i = this.input.charCodeAt(this.state.pos + 1); if (r === 42 && i === 47 && this.state.hasFlowComment) { this.state.hasFlowComment = !1, this.state.pos += 2, this.nextToken(); return; } super.readToken_mult_modulo(r); } readToken_pipe_amp(r) { let i = this.input.charCodeAt(this.state.pos + 1); if (r === 124 && i === 125) { this.finishOp(9, 2); return; } super.readToken_pipe_amp(r); } parseTopLevel(r, i) { let s = super.parseTopLevel(r, i); return this.state.hasFlowComment && this.raise(we.UnterminatedFlowComment, this.state.curPosition()), s; } skipBlockComment() { if (this.hasPlugin("flowComments") && this.skipFlowComment()) { if (this.state.hasFlowComment) throw this.raise(we.NestedFlowComment, this.state.startLoc); this.hasFlowCommentCompletion(); let r = this.skipFlowComment(); r && (this.state.pos += r, this.state.hasFlowComment = !0); return; } return super.skipBlockComment(this.state.hasFlowComment ? "*-/" : "*/"); } skipFlowComment() { let { pos: r } = this.state, i = 2; for (; [32, 9].includes(this.input.charCodeAt(r + i)); ) i++; let s = this.input.charCodeAt(i + r), a = this.input.charCodeAt(i + r + 1); return s === 58 && a === 58 ? i + 2 : this.input.slice(i + r, i + r + 12) === "flow-include" ? i + 12 : s === 58 && a !== 58 ? i : !1; } hasFlowCommentCompletion() { if (this.input.indexOf("*/", this.state.pos) === -1) throw this.raise(R.UnterminatedComment, this.state.curPosition()); } flowEnumErrorBooleanMemberNotInitialized(r, { enumName: i, memberName: s }) { this.raise(we.EnumBooleanMemberNotInitialized, r, { memberName: s, enumName: i }); } flowEnumErrorInvalidMemberInitializer(r, i) { return this.raise(i.explicitType ? i.explicitType === "symbol" ? we.EnumInvalidMemberInitializerSymbolType : we.EnumInvalidMemberInitializerPrimaryType : we.EnumInvalidMemberInitializerUnknownType, r, i); } flowEnumErrorNumberMemberNotInitialized(r, i) { this.raise(we.EnumNumberMemberNotInitialized, r, i); } flowEnumErrorStringMemberInconsistentlyInitialized(r, i) { this.raise(we.EnumStringMemberInconsistentlyInitialized, r, i); } flowEnumMemberInit() { let r = this.state.startLoc, i = /* @__PURE__ */ n(() => this.match(12) || this.match(8), "endOfInit"); switch (this.state.type) { case 135: { let s = this.parseNumericLiteral(this.state.value); return i() ? { type: "number", loc: s.loc.start, value: s } : { type: "invalid", loc: r }; } case 134: { let s = this.parseStringLiteral(this.state.value); return i() ? { type: "string", loc: s.loc.start, value: s } : { type: "invalid", loc: r }; } case 85: case 86: { let s = this.parseBooleanLiteral(this.match(85)); return i() ? { type: "boolean", loc: s.loc.start, value: s } : { type: "invalid", loc: r }; } default: return { type: "invalid", loc: r }; } } flowEnumMemberRaw() { let r = this.state.startLoc, i = this.parseIdentifier(!0), s = this.eat(29) ? this.flowEnumMemberInit() : { type: "none", loc: r }; return { id: i, init: s }; } flowEnumCheckExplicitTypeMismatch(r, i, s) { let { explicitType: a } = i; a !== null && a !== s && this.flowEnumErrorInvalidMemberInitializer(r, i); } flowEnumMembers({ enumName: r, explicitType: i }) { let s = /* @__PURE__ */ new Set(), a = { booleanMembers: [], numberMembers: [], stringMembers: [], defaultedMembers: [] }, o = !1; for (; !this.match(8); ) { if (this.eat(21)) { o = !0; break; } let u = this.startNode(), { id: l, init: c } = this.flowEnumMemberRaw(), f = l.name; if (f === "") continue; /^[a-z]/.test(f) && this.raise(we.EnumInvalidMemberName, l, { memberName: f, suggestion: f[0].toUpperCase() + f.slice(1), enumName: r }), s.has(f) && this.raise(we.EnumDuplicateMemberName, l, { memberName: f, enumName: r }), s.add(f); let m = { enumName: r, explicitType: i, memberName: f }; switch (u.id = l, c.type) { case "boolean": { this.flowEnumCheckExplicitTypeMismatch(c.loc, m, "boolean"), u.init = c.value, a.booleanMembers.push(this.finishNode(u, "EnumBoo\ leanMember")); break; } case "number": { this.flowEnumCheckExplicitTypeMismatch(c.loc, m, "number"), u.init = c.value, a.numberMembers.push(this.finishNode(u, "EnumNumbe\ rMember")); break; } case "string": { this.flowEnumCheckExplicitTypeMismatch(c.loc, m, "string"), u.init = c.value, a.stringMembers.push(this.finishNode(u, "EnumStrin\ gMember")); break; } case "invalid": throw this.flowEnumErrorInvalidMemberInitializer(c.loc, m); case "none": switch (i) { case "boolean": this.flowEnumErrorBooleanMemberNotInitialized(c.loc, m); break; case "number": this.flowEnumErrorNumberMemberNotInitialized(c.loc, m); break; default: a.defaultedMembers.push(this.finishNode(u, "EnumDefaultedMember")); } } this.match(8) || this.expect(12); } return { members: a, hasUnknownMembers: o }; } flowEnumStringMembers(r, i, { enumName: s }) { if (r.length === 0) return i; if (i.length === 0) return r; if (i.length > r.length) { for (let a of r) this.flowEnumErrorStringMemberInconsistentlyInitialized(a, { enumName: s }); return i; } else { for (let a of i) this.flowEnumErrorStringMemberInconsistentlyInitialized(a, { enumName: s }); return r; } } flowEnumParseExplicitType({ enumName: r }) { if (!this.eatContextual(102)) return null; if (!pt(this.state.type)) throw this.raise(we.EnumInvalidExplicitTypeUnknownSupplied, this.state.startLoc, { enumName: r }); let { value: i } = this.state; return this.next(), i !== "boolean" && i !== "number" && i !== "string" && i !== "symbol" && this.raise(we.EnumInvalidExplicitType, this. state.startLoc, { enumName: r, invalidEnumType: i }), i; } flowEnumBody(r, i) { let s = i.name, a = i.loc.start, o = this.flowEnumParseExplicitType({ enumName: s }); this.expect(5); let { members: u, hasUnknownMembers: l } = this.flowEnumMembers({ enumName: s, explicitType: o }); switch (r.hasUnknownMembers = l, o) { case "boolean": return r.explicitType = !0, r.members = u.booleanMembers, this.expect(8), this.finishNode(r, "EnumBooleanBody"); case "number": return r.explicitType = !0, r.members = u.numberMembers, this.expect(8), this.finishNode(r, "EnumNumberBody"); case "string": return r.explicitType = !0, r.members = this.flowEnumStringMembers(u.stringMembers, u.defaultedMembers, { enumName: s }), this.expect(8), this.finishNode(r, "EnumStringBody"); case "symbol": return r.members = u.defaultedMembers, this.expect(8), this.finishNode(r, "EnumSymbolBody"); default: { let c = /* @__PURE__ */ n(() => (r.members = [], this.expect(8), this.finishNode(r, "EnumStringBody")), "empty"); r.explicitType = !1; let f = u.booleanMembers.length, m = u.numberMembers.length, h = u.stringMembers.length, d = u.defaultedMembers.length; if (!f && !m && !h && !d) return c(); if (!f && !m) return r.members = this.flowEnumStringMembers(u.stringMembers, u.defaultedMembers, { enumName: s }), this.expect(8), this.finishNode(r, "EnumStringBody"); if (!m && !h && f >= d) { for (let y of u.defaultedMembers) this.flowEnumErrorBooleanMemberNotInitialized(y.loc.start, { enumName: s, memberName: y.id.name }); return r.members = u.booleanMembers, this.expect(8), this.finishNode(r, "EnumBooleanBody"); } else if (!f && !h && m >= d) { for (let y of u.defaultedMembers) this.flowEnumErrorNumberMemberNotInitialized(y.loc.start, { enumName: s, memberName: y.id.name }); return r.members = u.numberMembers, this.expect(8), this.finishNode(r, "EnumNumberBody"); } else return this.raise(we.EnumInconsistentMemberValues, a, { enumName: s }), c(); } } } flowParseEnumDeclaration(r) { let i = this.parseIdentifier(); return r.id = i, r.body = this.flowEnumBody(this.startNode(), i), this.finishNode(r, "EnumDeclaration"); } jsxParseOpeningElementAfterName(r) { return this.shouldParseTypes() && (this.match(47) || this.match(51)) && (r.typeArguments = this.flowParseTypeParameterInstantiationInExpression()), super.jsxParseOpeningElementAfterName(r); } isLookaheadToken_lt() { let r = this.nextTokenStart(); if (this.input.charCodeAt(r) === 60) { let i = this.input.charCodeAt(r + 1); return i !== 60 && i !== 61; } return !1; } reScan_lt_gt() { let { type: r } = this.state; r === 47 ? (this.state.pos -= 1, this.readToken_lt()) : r === 48 && (this.state.pos -= 1, this.readToken_gt()); } reScan_lt() { let { type: r } = this.state; return r === 51 ? (this.state.pos -= 2, this.finishOp(47, 1), 47) : r; } maybeUnwrapTypeCastExpression(r) { return r.type === "TypeCastExpression" ? r.expression : r; } }, "flow"), FPe = { __proto__: null, quot: '"', amp: "&", apos: "'", lt: "<", gt: ">", nbsp: "\xA0", iexcl: "\xA1", cent: "\xA2", pound: "\xA3", curren: "\xA4", yen: "\xA5", brvbar: "\xA6", sect: "\xA7", uml: "\xA8", copy: "\xA9", ordf: "\xAA", laquo: "\xAB", not: "\xAC", shy: "\xAD", reg: "\xAE", macr: "\xAF", deg: "\xB0", plusmn: "\xB1", sup2: "\xB2", sup3: "\xB3", acute: "\xB4", micro: "\xB5", para: "\xB6", middot: "\xB7", cedil: "\xB8", sup1: "\xB9", ordm: "\xBA", raquo: "\xBB", frac14: "\xBC", frac12: "\xBD", frac34: "\xBE", iquest: "\xBF", Agrave: "\xC0", Aacute: "\xC1", Acirc: "\xC2", Atilde: "\xC3", Auml: "\xC4", Aring: "\xC5", AElig: "\xC6", Ccedil: "\xC7", Egrave: "\xC8", Eacute: "\xC9", Ecirc: "\xCA", Euml: "\xCB", Igrave: "\xCC", Iacute: "\xCD", Icirc: "\xCE", Iuml: "\xCF", ETH: "\xD0", Ntilde: "\xD1", Ograve: "\xD2", Oacute: "\xD3", Ocirc: "\xD4", Otilde: "\xD5", Ouml: "\xD6", times: "\xD7", Oslash: "\xD8", Ugrave: "\xD9", Uacute: "\xDA", Ucirc: "\xDB", Uuml: "\xDC", Yacute: "\xDD", THORN: "\xDE", szlig: "\xDF", agrave: "\xE0", aacute: "\xE1", acirc: "\xE2", atilde: "\xE3", auml: "\xE4", aring: "\xE5", aelig: "\xE6", ccedil: "\xE7", egrave: "\xE8", eacute: "\xE9", ecirc: "\xEA", euml: "\xEB", igrave: "\xEC", iacute: "\xED", icirc: "\xEE", iuml: "\xEF", eth: "\xF0", ntilde: "\xF1", ograve: "\xF2", oacute: "\xF3", ocirc: "\xF4", otilde: "\xF5", ouml: "\xF6", divide: "\xF7", oslash: "\xF8", ugrave: "\xF9", uacute: "\xFA", ucirc: "\xFB", uuml: "\xFC", yacute: "\xFD", thorn: "\xFE", yuml: "\xFF", OElig: "\u0152", oelig: "\u0153", Scaron: "\u0160", scaron: "\u0161", Yuml: "\u0178", fnof: "\u0192", circ: "\u02C6", tilde: "\u02DC", Alpha: "\u0391", Beta: "\u0392", Gamma: "\u0393", Delta: "\u0394", Epsilon: "\u0395", Zeta: "\u0396", Eta: "\u0397", Theta: "\u0398", Iota: "\u0399", Kappa: "\u039A", Lambda: "\u039B", Mu: "\u039C", Nu: "\u039D", Xi: "\u039E", Omicron: "\u039F", Pi: "\u03A0", Rho: "\u03A1", Sigma: "\u03A3", Tau: "\u03A4", Upsilon: "\u03A5", Phi: "\u03A6", Chi: "\u03A7", Psi: "\u03A8", Omega: "\u03A9", alpha: "\u03B1", beta: "\u03B2", gamma: "\u03B3", delta: "\u03B4", epsilon: "\u03B5", zeta: "\u03B6", eta: "\u03B7", theta: "\u03B8", iota: "\u03B9", kappa: "\u03BA", lambda: "\u03BB", mu: "\u03BC", nu: "\u03BD", xi: "\u03BE", omicron: "\u03BF", pi: "\u03C0", rho: "\u03C1", sigmaf: "\u03C2", sigma: "\u03C3", tau: "\u03C4", upsilon: "\u03C5", phi: "\u03C6", chi: "\u03C7", psi: "\u03C8", omega: "\u03C9", thetasym: "\u03D1", upsih: "\u03D2", piv: "\u03D6", ensp: "\u2002", emsp: "\u2003", thinsp: "\u2009", zwnj: "\u200C", zwj: "\u200D", lrm: "\u200E", rlm: "\u200F", ndash: "\u2013", mdash: "\u2014", lsquo: "\u2018", rsquo: "\u2019", sbquo: "\u201A", ldquo: "\u201C", rdquo: "\u201D", bdquo: "\u201E", dagger: "\u2020", Dagger: "\u2021", bull: "\u2022", hellip: "\u2026", permil: "\u2030", prime: "\u2032", Prime: "\u2033", lsaquo: "\u2039", rsaquo: "\u203A", oline: "\u203E", frasl: "\u2044", euro: "\u20AC", image: "\u2111", weierp: "\u2118", real: "\u211C", trade: "\u2122", alefsym: "\u2135", larr: "\u2190", uarr: "\u2191", rarr: "\u2192", darr: "\u2193", harr: "\u2194", crarr: "\u21B5", lArr: "\u21D0", uArr: "\u21D1", rArr: "\u21D2", dArr: "\u21D3", hArr: "\u21D4", forall: "\u2200", part: "\u2202", exist: "\u2203", empty: "\u2205", nabla: "\u2207", isin: "\u2208", notin: "\u2209", ni: "\u220B", prod: "\u220F", sum: "\u2211", minus: "\u2212", lowast: "\u2217", radic: "\u221A", prop: "\u221D", infin: "\u221E", ang: "\u2220", and: "\u2227", or: "\u2228", cap: "\u2229", cup: "\u222A", int: "\u222B", there4: "\u2234", sim: "\u223C", cong: "\u2245", asymp: "\u2248", ne: "\u2260", equiv: "\u2261", le: "\u2264", ge: "\u2265", sub: "\u2282", sup: "\u2283", nsub: "\u2284", sube: "\u2286", supe: "\u2287", oplus: "\u2295", otimes: "\u2297", perp: "\u22A5", sdot: "\u22C5", lceil: "\u2308", rceil: "\u2309", lfloor: "\u230A", rfloor: "\u230B", lang: "\u2329", rang: "\u232A", loz: "\u25CA", spades: "\u2660", clubs: "\u2663", hearts: "\u2665", diams: "\u2666" }, IPe = /\r\n|[\r\n\u2028\u2029]/, zm = new RegExp(IPe.source, "g"); function Ul(e) { switch (e) { case 10: case 13: case 8232: case 8233: return !0; default: return !1; } } n(Ul, "isNewLine"); function ZR(e, t, r) { for (let i = t; i < r; i++) if (Ul(e.charCodeAt(i))) return !0; return !1; } n(ZR, "hasNewLine"); var pT = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, hT = /(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g; function OPe(e) { switch (e) { case 9: case 11: case 12: case 32: case 160: case 5760: case 8192: case 8193: case 8194: case 8195: case 8196: case 8197: case 8198: case 8199: case 8200: case 8201: case 8202: case 8239: case 8287: case 12288: case 65279: return !0; default: return !1; } } n(OPe, "isWhitespace"); var $o = Qs`jsx`({ AttributeIsEmpty: "JSX attributes must only be assigned a non-empty expression.", MissingClosingTagElement: /* @__PURE__ */ n(({ openingTagName: e }) => `Expected corresponding JSX closing tag for <${e}>.`, "MissingClosingTagElement"), MissingClosingTagFragment: "Expected corresponding JSX closing tag for <>.", UnexpectedSequenceExpression: "Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?", UnexpectedToken: /* @__PURE__ */ n(({ unexpected: e, HTMLEntity: t }) => `Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`, "UnexpectedToken"), UnsupportedJsxValue: "JSX value should be either an expression or a quoted JSX text.", UnterminatedJsxContent: "Unterminated JSX contents.", UnwrappedAdjacentJSXElements: "Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?" }); function Ba(e) { return e ? e.type === "JSXOpeningFragment" || e.type === "JSXClosingFragment" : !1; } n(Ba, "isFragment"); function ql(e) { if (e.type === "JSXIdentifier") return e.name; if (e.type === "JSXNamespacedName") return e.namespace.name + ":" + e.name.name; if (e.type === "JSXMemberExpression") return ql(e.object) + "." + ql(e.property); throw new Error("Node had unexpected type: " + e.type); } n(ql, "getQualifiedJSXName"); var kPe = /* @__PURE__ */ n((e) => class extends e { static { n(this, "JSXParserMixin"); } jsxReadToken() { let r = "", i = this.state.pos; for (; ; ) { if (this.state.pos >= this.length) throw this.raise($o.UnterminatedJsxContent, this.state.startLoc); let s = this.input.charCodeAt(this.state.pos); switch (s) { case 60: case 123: if (this.state.pos === this.state.start) { s === 60 && this.state.canStartJSXElement ? (++this.state.pos, this.finishToken(143)) : super.getTokenFromCode(s); return; } r += this.input.slice(i, this.state.pos), this.finishToken(142, r); return; case 38: r += this.input.slice(i, this.state.pos), r += this.jsxReadEntity(), i = this.state.pos; break; case 62: case 125: default: Ul(s) ? (r += this.input.slice(i, this.state.pos), r += this.jsxReadNewLine(!0), i = this.state.pos) : ++this.state.pos; } } } jsxReadNewLine(r) { let i = this.input.charCodeAt(this.state.pos), s; return ++this.state.pos, i === 13 && this.input.charCodeAt(this.state.pos) === 10 ? (++this.state.pos, s = r ? ` ` : `\r `) : s = String.fromCharCode(i), ++this.state.curLine, this.state.lineStart = this.state.pos, s; } jsxReadString(r) { let i = "", s = ++this.state.pos; for (; ; ) { if (this.state.pos >= this.length) throw this.raise(R.UnterminatedString, this.state.startLoc); let a = this.input.charCodeAt(this.state.pos); if (a === r) break; a === 38 ? (i += this.input.slice(s, this.state.pos), i += this.jsxReadEntity(), s = this.state.pos) : Ul(a) ? (i += this.input.slice( s, this.state.pos), i += this.jsxReadNewLine(!1), s = this.state.pos) : ++this.state.pos; } i += this.input.slice(s, this.state.pos++), this.finishToken(134, i); } jsxReadEntity() { let r = ++this.state.pos; if (this.codePointAtPos(this.state.pos) === 35) { ++this.state.pos; let i = 10; this.codePointAtPos(this.state.pos) === 120 && (i = 16, ++this.state.pos); let s = this.readInt(i, void 0, !1, "bail"); if (s !== null && this.codePointAtPos(this.state.pos) === 59) return ++this.state.pos, String.fromCodePoint(s); } else { let i = 0, s = !1; for (; i++ < 10 && this.state.pos < this.length && !(s = this.codePointAtPos(this.state.pos) === 59); ) ++this.state.pos; if (s) { let a = this.input.slice(r, this.state.pos), o = FPe[a]; if (++this.state.pos, o) return o; } } return this.state.pos = r, "&"; } jsxReadWord() { let r, i = this.state.pos; do r = this.input.charCodeAt(++this.state.pos); while (Wo(r) || r === 45); this.finishToken(141, this.input.slice(i, this.state.pos)); } jsxParseIdentifier() { let r = this.startNode(); return this.match(141) ? r.name = this.state.value : HT(this.state.type) ? r.name = Ma(this.state.type) : this.unexpected(), this.next(), this.finishNode(r, "JSXIdentifier"); } jsxParseNamespacedName() { let r = this.state.startLoc, i = this.jsxParseIdentifier(); if (!this.eat(14)) return i; let s = this.startNodeAt(r); return s.namespace = i, s.name = this.jsxParseIdentifier(), this.finishNode(s, "JSXNamespacedName"); } jsxParseElementName() { let r = this.state.startLoc, i = this.jsxParseNamespacedName(); if (i.type === "JSXNamespacedName") return i; for (; this.eat(16); ) { let s = this.startNodeAt(r); s.object = i, s.property = this.jsxParseIdentifier(), i = this.finishNode(s, "JSXMemberExpression"); } return i; } jsxParseAttributeValue() { let r; switch (this.state.type) { case 5: return r = this.startNode(), this.setContext(at.brace), this.next(), r = this.jsxParseExpressionContainer(r, at.j_oTag), r.expression. type === "JSXEmptyExpression" && this.raise($o.AttributeIsEmpty, r), r; case 143: case 134: return this.parseExprAtom(); default: throw this.raise($o.UnsupportedJsxValue, this.state.startLoc); } } jsxParseEmptyExpression() { let r = this.startNodeAt(this.state.lastTokEndLoc); return this.finishNodeAt(r, "JSXEmptyExpression", this.state.startLoc); } jsxParseSpreadChild(r) { return this.next(), r.expression = this.parseExpression(), this.setContext(at.j_expr), this.state.canStartJSXElement = !0, this.expect( 8), this.finishNode(r, "JSXSpreadChild"); } jsxParseExpressionContainer(r, i) { if (this.match(8)) r.expression = this.jsxParseEmptyExpression(); else { let s = this.parseExpression(); r.expression = s; } return this.setContext(i), this.state.canStartJSXElement = !0, this.expect(8), this.finishNode(r, "JSXExpressionContainer"); } jsxParseAttribute() { let r = this.startNode(); return this.match(5) ? (this.setContext(at.brace), this.next(), this.expect(21), r.argument = this.parseMaybeAssignAllowIn(), this.setContext( at.j_oTag), this.state.canStartJSXElement = !0, this.expect(8), this.finishNode(r, "JSXSpreadAttribute")) : (r.name = this.jsxParseNamespacedName(), r.value = this.eat(29) ? this.jsxParseAttributeValue() : null, this.finishNode(r, "JSXAttribute")); } jsxParseOpeningElementAt(r) { let i = this.startNodeAt(r); return this.eat(144) ? this.finishNode(i, "JSXOpeningFragment") : (i.name = this.jsxParseElementName(), this.jsxParseOpeningElementAfterName( i)); } jsxParseOpeningElementAfterName(r) { let i = []; for (; !this.match(56) && !this.match(144); ) i.push(this.jsxParseAttribute()); return r.attributes = i, r.selfClosing = this.eat(56), this.expect(144), this.finishNode(r, "JSXOpeningElement"); } jsxParseClosingElementAt(r) { let i = this.startNodeAt(r); return this.eat(144) ? this.finishNode(i, "JSXClosingFragment") : (i.name = this.jsxParseElementName(), this.expect(144), this.finishNode( i, "JSXClosingElement")); } jsxParseElementAt(r) { let i = this.startNodeAt(r), s = [], a = this.jsxParseOpeningElementAt(r), o = null; if (!a.selfClosing) { e: for (; ; ) switch (this.state.type) { case 143: if (r = this.state.startLoc, this.next(), this.eat(56)) { o = this.jsxParseClosingElementAt(r); break e; } s.push(this.jsxParseElementAt(r)); break; case 142: s.push(this.parseLiteral(this.state.value, "JSXText")); break; case 5: { let u = this.startNode(); this.setContext(at.brace), this.next(), this.match(21) ? s.push(this.jsxParseSpreadChild(u)) : s.push(this.jsxParseExpressionContainer( u, at.j_expr)); break; } default: this.unexpected(); } Ba(a) && !Ba(o) && o !== null ? this.raise($o.MissingClosingTagFragment, o) : !Ba(a) && Ba(o) ? this.raise($o.MissingClosingTagElement, o, { openingTagName: ql(a.name) }) : !Ba(a) && !Ba(o) && ql(o.name) !== ql(a.name) && this.raise($o.MissingClosingTagElement, o, { openingTagName: ql(a.name) }); } if (Ba(a) ? (i.openingFragment = a, i.closingFragment = o) : (i.openingElement = a, i.closingElement = o), i.children = s, this.match( 47)) throw this.raise($o.UnwrappedAdjacentJSXElements, this.state.startLoc); return Ba(a) ? this.finishNode(i, "JSXFragment") : this.finishNode(i, "JSXElement"); } jsxParseElement() { let r = this.state.startLoc; return this.next(), this.jsxParseElementAt(r); } setContext(r) { let { context: i } = this.state; i[i.length - 1] = r; } parseExprAtom(r) { return this.match(143) ? this.jsxParseElement() : this.match(47) && this.input.charCodeAt(this.state.pos) !== 33 ? (this.replaceToken( 143), this.jsxParseElement()) : super.parseExprAtom(r); } skipSpace() { this.curContext().preserveSpace || super.skipSpace(); } getTokenFromCode(r) { let i = this.curContext(); if (i === at.j_expr) { this.jsxReadToken(); return; } if (i === at.j_oTag || i === at.j_cTag) { if (en(r)) { this.jsxReadWord(); return; } if (r === 62) { ++this.state.pos, this.finishToken(144); return; } if ((r === 34 || r === 39) && i === at.j_oTag) { this.jsxReadString(r); return; } } if (r === 60 && this.state.canStartJSXElement && this.input.charCodeAt(this.state.pos + 1) !== 33) { ++this.state.pos, this.finishToken(143); return; } super.getTokenFromCode(r); } updateContext(r) { let { context: i, type: s } = this.state; if (s === 56 && r === 143) i.splice(-2, 2, at.j_cTag), this.state.canStartJSXElement = !1; else if (s === 143) i.push(at.j_oTag); else if (s === 144) { let a = i[i.length - 1]; a === at.j_oTag && r === 56 || a === at.j_cTag ? (i.pop(), this.state.canStartJSXElement = i[i.length - 1] === at.j_expr) : (this.setContext( at.j_expr), this.state.canStartJSXElement = !0); } else this.state.canStartJSXElement = nPe(s); } }, "jsx"), xT = class extends jd { static { n(this, "TypeScriptScope"); } constructor(...t) { super(...t), this.tsNames = /* @__PURE__ */ new Map(); } }, ET = class extends qd { static { n(this, "TypeScriptScopeHandler"); } constructor(...t) { super(...t), this.importsStack = []; } createScope(t) { return this.importsStack.push(/* @__PURE__ */ new Set()), new xT(t); } enter(t) { t === 1024 && this.importsStack.push(/* @__PURE__ */ new Set()), super.enter(t); } exit() { let t = super.exit(); return t === 1024 && this.importsStack.pop(), t; } hasImport(t, r) { let i = this.importsStack.length; if (this.importsStack[i - 1].has(t)) return !0; if (!r && i > 1) { for (let s = 0; s < i - 1; s++) if (this.importsStack[s].has(t)) return !0; } return !1; } declareName(t, r, i) { if (r & 4096) { this.hasImport(t, !0) && this.parser.raise(R.VarRedeclaration, i, { identifierName: t }), this.importsStack[this.importsStack.length - 1].add(t); return; } let s = this.currentScope(), a = s.tsNames.get(t) || 0; if (r & 1024) { this.maybeExportDefined(s, t), s.tsNames.set(t, a | 16); return; } super.declareName(t, r, i), r & 2 && (r & 1 || (this.checkRedeclarationInScope(s, t, r, i), this.maybeExportDefined(s, t)), a = a | 1), r & 256 && (a = a | 2), r & 512 && (a = a | 4), r & 128 && (a = a | 8), a && s.tsNames.set(t, a); } isRedeclaredInScope(t, r, i) { let s = t.tsNames.get(r); if ((s & 2) > 0) { if (i & 256) { let a = !!(i & 512), o = (s & 4) > 0; return a !== o; } return !0; } return i & 128 && (s & 8) > 0 ? t.names.get(r) & 2 ? !!(i & 1) : !1 : i & 2 && (s & 1) > 0 ? !0 : super.isRedeclaredInScope(t, r, i); } checkLocalExport(t) { let { name: r } = t; if (this.hasImport(r)) return; let i = this.scopeStack.length; for (let s = i - 1; s >= 0; s--) { let o = this.scopeStack[s].tsNames.get(r); if ((o & 1) > 0 || (o & 16) > 0) return; } super.checkLocalExport(t); } }, ST = class { static { n(this, "ProductionParameterHandler"); } constructor() { this.stacks = []; } enter(t) { this.stacks.push(t); } exit() { this.stacks.pop(); } currentFlags() { return this.stacks[this.stacks.length - 1]; } get hasAwait() { return (this.currentFlags() & 2) > 0; } get hasYield() { return (this.currentFlags() & 1) > 0; } get hasReturn() { return (this.currentFlags() & 4) > 0; } get hasIn() { return (this.currentFlags() & 8) > 0; } }; function Gm(e, t) { return (e ? 2 : 0) | (t ? 1 : 0); } n(Gm, "functionFlags"); var TT = class { static { n(this, "BaseParser"); } constructor() { this.sawUnambiguousESM = !1, this.ambiguousScriptDifferentAst = !1; } sourceToOffsetPos(t) { return t + this.startIndex; } offsetToSourcePos(t) { return t - this.startIndex; } hasPlugin(t) { if (typeof t == "string") return this.plugins.has(t); { let [r, i] = t; if (!this.hasPlugin(r)) return !1; let s = this.plugins.get(r); for (let a of Object.keys(i)) if (s?.[a] !== i[a]) return !1; return !0; } } getPluginOption(t, r) { var i; return (i = this.plugins.get(t)) == null ? void 0 : i[r]; } }; function hL(e, t) { e.trailingComments === void 0 ? e.trailingComments = t : e.trailingComments.unshift(...t); } n(hL, "setTrailingComments"); function BPe(e, t) { e.leadingComments === void 0 ? e.leadingComments = t : e.leadingComments.unshift(...t); } n(BPe, "setLeadingComments"); function Ud(e, t) { e.innerComments === void 0 ? e.innerComments = t : e.innerComments.unshift(...t); } n(Ud, "setInnerComments"); function Na(e, t, r) { let i = null, s = t.length; for (; i === null && s > 0; ) i = t[--s]; i === null || i.start > r.start ? Ud(e, r.comments) : hL(i, r.comments); } n(Na, "adjustInnerComments"); var CT = class extends TT { static { n(this, "CommentsParser"); } addComment(t) { this.filename && (t.loc.filename = this.filename); let { commentsLen: r } = this.state; this.comments.length !== r && (this.comments.length = r), this.comments.push(t), this.state.commentsLen++; } processComment(t) { let { commentStack: r } = this.state, i = r.length; if (i === 0) return; let s = i - 1, a = r[s]; a.start === t.end && (a.leadingNode = t, s--); let { start: o } = t; for (; s >= 0; s--) { let u = r[s], l = u.end; if (l > o) u.containingNode = t, this.finalizeComment(u), r.splice(s, 1); else { l === o && (u.trailingNode = t); break; } } } finalizeComment(t) { var r; let { comments: i } = t; if (t.leadingNode !== null || t.trailingNode !== null) t.leadingNode !== null && hL(t.leadingNode, i), t.trailingNode !== null && BPe(t.trailingNode, i); else { let s = t.containingNode, a = t.start; if (this.input.charCodeAt(this.offsetToSourcePos(a) - 1) === 44) switch (s.type) { case "ObjectExpression": case "ObjectPattern": case "RecordExpression": Na(s, s.properties, t); break; case "CallExpression": case "OptionalCallExpression": Na(s, s.arguments, t); break; case "ImportExpression": Na(s, [s.source, (r = s.options) != null ? r : null], t); break; case "FunctionDeclaration": case "FunctionExpression": case "ArrowFunctionExpression": case "ObjectMethod": case "ClassMethod": case "ClassPrivateMethod": Na(s, s.params, t); break; case "ArrayExpression": case "ArrayPattern": case "TupleExpression": Na(s, s.elements, t); break; case "ExportNamedDeclaration": case "ImportDeclaration": Na(s, s.specifiers, t); break; case "TSEnumDeclaration": Na(s, s.members, t); break; case "TSEnumBody": Na(s, s.members, t); break; default: Ud(s, i); } else Ud(s, i); } } finalizeRemainingComments() { let { commentStack: t } = this.state; for (let r = t.length - 1; r >= 0; r--) this.finalizeComment(t[r]); this.state.commentStack = []; } resetPreviousNodeTrailingComments(t) { let { commentStack: r } = this.state, { length: i } = r; if (i === 0) return; let s = r[i - 1]; s.leadingNode === t && (s.leadingNode = null); } takeSurroundingComments(t, r, i) { let { commentStack: s } = this.state, a = s.length; if (a === 0) return; let o = a - 1; for (; o >= 0; o--) { let u = s[o], l = u.end; if (u.start === i) u.leadingNode = t; else if (l === r) u.trailingNode = t; else if (l < r) break; } } }, wT = class e { static { n(this, "State"); } constructor() { this.flags = 1024, this.startIndex = void 0, this.curLine = void 0, this.lineStart = void 0, this.startLoc = void 0, this.endLoc = void 0, this.errors = [], this.potentialArrowAt = -1, this.noArrowAt = [], this.noArrowParamsConversionAt = [], this.topicContext = { maxNumOfResolvableTopics: 0, maxTopicIndex: null }, this.labels = [], this.commentsLen = 0, this.commentStack = [], this.pos = 0, this.type = 140, this.value = null, this.start = 0, this. end = 0, this.lastTokEndLoc = null, this.lastTokStartLoc = null, this.context = [at.brace], this.firstInvalidTemplateEscapePos = null, this.strictErrors = /* @__PURE__ */ new Map(), this.tokensLength = 0; } get strict() { return (this.flags & 1) > 0; } set strict(t) { t ? this.flags |= 1 : this.flags &= -2; } init({ strictMode: t, sourceType: r, startIndex: i, startLine: s, startColumn: a }) { this.strict = t === !1 ? !1 : t === !0 ? !0 : r === "module", this.startIndex = i, this.curLine = s, this.lineStart = -a, this.startLoc = this.endLoc = new tn(s, a, i); } get maybeInArrowParameters() { return (this.flags & 2) > 0; } set maybeInArrowParameters(t) { t ? this.flags |= 2 : this.flags &= -3; } get inType() { return (this.flags & 4) > 0; } set inType(t) { t ? this.flags |= 4 : this.flags &= -5; } get noAnonFunctionType() { return (this.flags & 8) > 0; } set noAnonFunctionType(t) { t ? this.flags |= 8 : this.flags &= -9; } get hasFlowComment() { return (this.flags & 16) > 0; } set hasFlowComment(t) { t ? this.flags |= 16 : this.flags &= -17; } get isAmbientContext() { return (this.flags & 32) > 0; } set isAmbientContext(t) { t ? this.flags |= 32 : this.flags &= -33; } get inAbstractClass() { return (this.flags & 64) > 0; } set inAbstractClass(t) { t ? this.flags |= 64 : this.flags &= -65; } get inDisallowConditionalTypesContext() { return (this.flags & 128) > 0; } set inDisallowConditionalTypesContext(t) { t ? this.flags |= 128 : this.flags &= -129; } get soloAwait() { return (this.flags & 256) > 0; } set soloAwait(t) { t ? this.flags |= 256 : this.flags &= -257; } get inFSharpPipelineDirectBody() { return (this.flags & 512) > 0; } set inFSharpPipelineDirectBody(t) { t ? this.flags |= 512 : this.flags &= -513; } get canStartJSXElement() { return (this.flags & 1024) > 0; } set canStartJSXElement(t) { t ? this.flags |= 1024 : this.flags &= -1025; } get containsEsc() { return (this.flags & 2048) > 0; } set containsEsc(t) { t ? this.flags |= 2048 : this.flags &= -2049; } get hasTopLevelAwait() { return (this.flags & 4096) > 0; } set hasTopLevelAwait(t) { t ? this.flags |= 4096 : this.flags &= -4097; } curPosition() { return new tn(this.curLine, this.pos - this.lineStart, this.pos + this.startIndex); } clone() { let t = new e(); return t.flags = this.flags, t.startIndex = this.startIndex, t.curLine = this.curLine, t.lineStart = this.lineStart, t.startLoc = this. startLoc, t.endLoc = this.endLoc, t.errors = this.errors.slice(), t.potentialArrowAt = this.potentialArrowAt, t.noArrowAt = this.noArrowAt. slice(), t.noArrowParamsConversionAt = this.noArrowParamsConversionAt.slice(), t.topicContext = this.topicContext, t.labels = this.labels. slice(), t.commentsLen = this.commentsLen, t.commentStack = this.commentStack.slice(), t.pos = this.pos, t.type = this.type, t.value = this.value, t.start = this.start, t.end = this.end, t.lastTokEndLoc = this.lastTokEndLoc, t.lastTokStartLoc = this.lastTokStartLoc, t. context = this.context.slice(), t.firstInvalidTemplateEscapePos = this.firstInvalidTemplateEscapePos, t.strictErrors = this.strictErrors, t.tokensLength = this.tokensLength, t; } }, NPe = /* @__PURE__ */ n(function(t) { return t >= 48 && t <= 57; }, "isDigit"), QR = { decBinOct: /* @__PURE__ */ new Set([46, 66, 69, 79, 95, 98, 101, 111]), hex: /* @__PURE__ */ new Set([46, 88, 95, 120]) }, Jm = { bin: /* @__PURE__ */ n((e) => e === 48 || e === 49, "bin"), oct: /* @__PURE__ */ n((e) => e >= 48 && e <= 55, "oct"), dec: /* @__PURE__ */ n((e) => e >= 48 && e <= 57, "dec"), hex: /* @__PURE__ */ n((e) => e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102, "hex") }; function eL(e, t, r, i, s, a) { let o = r, u = i, l = s, c = "", f = null, m = r, { length: h } = t; for (; ; ) { if (r >= h) { a.unterminated(o, u, l), c += t.slice(m, r); break; } let d = t.charCodeAt(r); if (MPe(e, d, t, r)) { c += t.slice(m, r); break; } if (d === 92) { c += t.slice(m, r); let y = RPe(t, r, i, s, e === "template", a); y.ch === null && !f ? f = { pos: r, lineStart: i, curLine: s } : c += y.ch, { pos: r, lineStart: i, curLine: s } = y, m = r; } else d === 8232 || d === 8233 ? (++r, ++s, i = r) : d === 10 || d === 13 ? e === "template" ? (c += t.slice(m, r) + ` `, ++r, d === 13 && t.charCodeAt(r) === 10 && ++r, ++s, m = i = r) : a.unterminated(o, u, l) : ++r; } return { pos: r, str: c, firstInvalidLoc: f, lineStart: i, curLine: s, containsInvalid: !!f }; } n(eL, "readStringContents"); function MPe(e, t, r, i) { return e === "template" ? t === 96 || t === 36 && r.charCodeAt(i + 1) === 123 : t === (e === "double" ? 34 : 39); } n(MPe, "isStringEnd"); function RPe(e, t, r, i, s, a) { let o = !s; t++; let u = /* @__PURE__ */ n((c) => ({ pos: t, ch: c, lineStart: r, curLine: i }), "res"), l = e.charCodeAt(t++); switch (l) { case 110: return u(` `); case 114: return u("\r"); case 120: { let c; return { code: c, pos: t } = AT(e, t, r, i, 2, !1, o, a), u(c === null ? null : String.fromCharCode(c)); } case 117: { let c; return { code: c, pos: t } = yL(e, t, r, i, o, a), u(c === null ? null : String.fromCodePoint(c)); } case 116: return u(" "); case 98: return u("\b"); case 118: return u("\v"); case 102: return u("\f"); case 13: e.charCodeAt(t) === 10 && ++t; case 10: r = t, ++i; case 8232: case 8233: return u(""); case 56: case 57: if (s) return u(null); a.strictNumericEscape(t - 1, r, i); default: if (l >= 48 && l <= 55) { let c = t - 1, m = /^[0-7]+/.exec(e.slice(c, t + 2))[0], h = parseInt(m, 8); h > 255 && (m = m.slice(0, -1), h = parseInt(m, 8)), t += m.length - 1; let d = e.charCodeAt(t); if (m !== "0" || d === 56 || d === 57) { if (s) return u(null); a.strictNumericEscape(c, r, i); } return u(String.fromCharCode(h)); } return u(String.fromCharCode(l)); } } n(RPe, "readEscapedChar"); function AT(e, t, r, i, s, a, o, u) { let l = t, c; return { n: c, pos: t } = mL(e, t, r, i, 16, s, a, !1, u, !o), c === null && (o ? u.invalidEscapeSequence(l, r, i) : t = l - 1), { code: c, pos: t }; } n(AT, "readHexChar"); function mL(e, t, r, i, s, a, o, u, l, c) { let f = t, m = s === 16 ? QR.hex : QR.decBinOct, h = s === 16 ? Jm.hex : s === 10 ? Jm.dec : s === 8 ? Jm.oct : Jm.bin, d = !1, y = 0; for (let p = 0, g = a ?? 1 / 0; p < g; ++p) { let b = e.charCodeAt(t), D; if (b === 95 && u !== "bail") { let x = e.charCodeAt(t - 1), T = e.charCodeAt(t + 1); if (u) { if (Number.isNaN(T) || !h(T) || m.has(x) || m.has(T)) { if (c) return { n: null, pos: t }; l.unexpectedNumericSeparator(t, r, i); } } else { if (c) return { n: null, pos: t }; l.numericSeparatorInEscapeSequence(t, r, i); } ++t; continue; } if (b >= 97 ? D = b - 97 + 10 : b >= 65 ? D = b - 65 + 10 : NPe(b) ? D = b - 48 : D = 1 / 0, D >= s) { if (D <= 9 && c) return { n: null, pos: t }; if (D <= 9 && l.invalidDigit(t, r, i, s)) D = 0; else if (o) D = 0, d = !0; else break; } ++t, y = y * s + D; } return t === f || a != null && t - f !== a || d ? { n: null, pos: t } : { n: y, pos: t }; } n(mL, "readInt"); function yL(e, t, r, i, s, a) { let o = e.charCodeAt(t), u; if (o === 123) { if (++t, { code: u, pos: t } = AT(e, t, r, i, e.indexOf("}", t) - t, !0, s, a), ++t, u !== null && u > 1114111) if (s) a.invalidCodePoint(t, r, i); else return { code: null, pos: t }; } else ({ code: u, pos: t } = AT(e, t, r, i, 4, !1, s, a)); return { code: u, pos: t }; } n(yL, "readCodePoint"); function Nd(e, t, r) { return new tn(r, e - t, e); } n(Nd, "buildPosition"); var LPe = /* @__PURE__ */ new Set([103, 109, 115, 105, 121, 117, 100, 118]), Zs = class { static { n(this, "Token"); } constructor(t) { let r = t.startIndex || 0; this.type = t.type, this.value = t.value, this.start = r + t.start, this.end = r + t.end, this.loc = new Vl(t.startLoc, t.endLoc); } }, _T = class extends CT { static { n(this, "Tokenizer"); } constructor(t, r) { super(), this.isLookahead = void 0, this.tokens = [], this.errorHandlers_readInt = { invalidDigit: /* @__PURE__ */ n((i, s, a, o) => this.optionFlags & 2048 ? (this.raise(R.InvalidDigit, Nd(i, s, a), { radix: o }), !0) : !1, "invalidDigit"), numericSeparatorInEscapeSequence: this.errorBuilder(R.NumericSeparatorInEscapeSequence), unexpectedNumericSeparator: this.errorBuilder(R.UnexpectedNumericSeparator) }, this.errorHandlers_readCodePoint = Object.assign({}, this.errorHandlers_readInt, { invalidEscapeSequence: this.errorBuilder(R.InvalidEscapeSequence), invalidCodePoint: this.errorBuilder(R.InvalidCodePoint) }), this.errorHandlers_readStringContents_string = Object.assign({}, this.errorHandlers_readCodePoint, { strictNumericEscape: /* @__PURE__ */ n((i, s, a) => { this.recordStrictModeErrors(R.StrictNumericEscape, Nd(i, s, a)); }, "strictNumericEscape"), unterminated: /* @__PURE__ */ n((i, s, a) => { throw this.raise(R.UnterminatedString, Nd(i - 1, s, a)); }, "unterminated") }), this.errorHandlers_readStringContents_template = Object.assign({}, this.errorHandlers_readCodePoint, { strictNumericEscape: this.errorBuilder(R.StrictNumericEscape), unterminated: /* @__PURE__ */ n((i, s, a) => { throw this.raise(R.UnterminatedTemplate, Nd(i, s, a)); }, "unterminated") }), this.state = new wT(), this.state.init(t), this.input = r, this.length = r.length, this.comments = [], this.isLookahead = !1; } pushToken(t) { this.tokens.length = this.state.tokensLength, this.tokens.push(t), ++this.state.tokensLength; } next() { this.checkKeywordEscapes(), this.optionFlags & 256 && this.pushToken(new Zs(this.state)), this.state.lastTokEndLoc = this.state.endLoc, this.state.lastTokStartLoc = this.state.startLoc, this.nextToken(); } eat(t) { return this.match(t) ? (this.next(), !0) : !1; } match(t) { return this.state.type === t; } createLookaheadState(t) { return { pos: t.pos, value: null, type: t.type, start: t.start, end: t.end, context: [this.curContext()], inType: t.inType, startLoc: t.startLoc, lastTokEndLoc: t.lastTokEndLoc, curLine: t.curLine, lineStart: t.lineStart, curPosition: t.curPosition }; } lookahead() { let t = this.state; this.state = this.createLookaheadState(t), this.isLookahead = !0, this.nextToken(), this.isLookahead = !1; let r = this.state; return this.state = t, r; } nextTokenStart() { return this.nextTokenStartSince(this.state.pos); } nextTokenStartSince(t) { return pT.lastIndex = t, pT.test(this.input) ? pT.lastIndex : t; } lookaheadCharCode() { return this.lookaheadCharCodeSince(this.state.pos); } lookaheadCharCodeSince(t) { return this.input.charCodeAt(this.nextTokenStartSince(t)); } nextTokenInLineStart() { return this.nextTokenInLineStartSince(this.state.pos); } nextTokenInLineStartSince(t) { return hT.lastIndex = t, hT.test(this.input) ? hT.lastIndex : t; } lookaheadInLineCharCode() { return this.input.charCodeAt(this.nextTokenInLineStart()); } codePointAtPos(t) { let r = this.input.charCodeAt(t); if ((r & 64512) === 55296 && ++t < this.input.length) { let i = this.input.charCodeAt(t); (i & 64512) === 56320 && (r = 65536 + ((r & 1023) << 10) + (i & 1023)); } return r; } setStrict(t) { this.state.strict = t, t && (this.state.strictErrors.forEach(([r, i]) => this.raise(r, i)), this.state.strictErrors.clear()); } curContext() { return this.state.context[this.state.context.length - 1]; } nextToken() { if (this.skipSpace(), this.state.start = this.state.pos, this.isLookahead || (this.state.startLoc = this.state.curPosition()), this.state. pos >= this.length) { this.finishToken(140); return; } this.getTokenFromCode(this.codePointAtPos(this.state.pos)); } skipBlockComment(t) { let r; this.isLookahead || (r = this.state.curPosition()); let i = this.state.pos, s = this.input.indexOf(t, i + 2); if (s === -1) throw this.raise(R.UnterminatedComment, this.state.curPosition()); for (this.state.pos = s + t.length, zm.lastIndex = i + 2; zm.test(this.input) && zm.lastIndex <= s; ) ++this.state.curLine, this.state.lineStart = zm.lastIndex; if (this.isLookahead) return; let a = { type: "CommentBlock", value: this.input.slice(i + 2, s), start: this.sourceToOffsetPos(i), end: this.sourceToOffsetPos(s + t.length), loc: new Vl(r, this.state.curPosition()) }; return this.optionFlags & 256 && this.pushToken(a), a; } skipLineComment(t) { let r = this.state.pos, i; this.isLookahead || (i = this.state.curPosition()); let s = this.input.charCodeAt(this.state.pos += t); if (this.state.pos < this.length) for (; !Ul(s) && ++this.state.pos < this.length; ) s = this.input.charCodeAt(this.state.pos); if (this.isLookahead) return; let a = this.state.pos, u = { type: "CommentLine", value: this.input.slice(r + t, a), start: this.sourceToOffsetPos(r), end: this.sourceToOffsetPos(a), loc: new Vl(i, this.state.curPosition()) }; return this.optionFlags & 256 && this.pushToken(u), u; } skipSpace() { let t = this.state.pos, r = this.optionFlags & 4096 ? [] : null; e: for (; this.state.pos < this.length; ) { let i = this.input.charCodeAt(this.state.pos); switch (i) { case 32: case 160: case 9: ++this.state.pos; break; case 13: this.input.charCodeAt(this.state.pos + 1) === 10 && ++this.state.pos; case 10: case 8232: case 8233: ++this.state.pos, ++this.state.curLine, this.state.lineStart = this.state.pos; break; case 47: switch (this.input.charCodeAt(this.state.pos + 1)) { case 42: { let s = this.skipBlockComment("*/"); s !== void 0 && (this.addComment(s), r?.push(s)); break; } case 47: { let s = this.skipLineComment(2); s !== void 0 && (this.addComment(s), r?.push(s)); break; } default: break e; } break; default: if (OPe(i)) ++this.state.pos; else if (i === 45 && !this.inModule && this.optionFlags & 8192) { let s = this.state.pos; if (this.input.charCodeAt(s + 1) === 45 && this.input.charCodeAt(s + 2) === 62 && (t === 0 || this.state.lineStart > t)) { let a = this.skipLineComment(3); a !== void 0 && (this.addComment(a), r?.push(a)); } else break e; } else if (i === 60 && !this.inModule && this.optionFlags & 8192) { let s = this.state.pos; if (this.input.charCodeAt(s + 1) === 33 && this.input.charCodeAt(s + 2) === 45 && this.input.charCodeAt(s + 3) === 45) { let a = this.skipLineComment(4); a !== void 0 && (this.addComment(a), r?.push(a)); } else break e; } else break e; } } if (r?.length > 0) { let i = this.state.pos, s = { start: this.sourceToOffsetPos(t), end: this.sourceToOffsetPos(i), comments: r, leadingNode: null, trailingNode: null, containingNode: null }; this.state.commentStack.push(s); } } finishToken(t, r) { this.state.end = this.state.pos, this.state.endLoc = this.state.curPosition(); let i = this.state.type; this.state.type = t, this.state.value = r, this.isLookahead || this.updateContext(i); } replaceToken(t) { this.state.type = t, this.updateContext(); } readToken_numberSign() { if (this.state.pos === 0 && this.readToken_interpreter()) return; let t = this.state.pos + 1, r = this.codePointAtPos(t); if (r >= 48 && r <= 57) throw this.raise(R.UnexpectedDigitAfterHash, this.state.curPosition()); if (r === 123 || r === 91 && this.hasPlugin("recordAndTuple")) { if (this.expectPlugin("recordAndTuple"), this.getPluginOption("recordAndTuple", "syntaxType") === "bar") throw this.raise(r === 123 ? R.RecordExpressionHashIncorrectStartSyntaxType : R.TupleExpressionHashIncorrectStartSyntaxType, this. state.curPosition()); this.state.pos += 2, r === 123 ? this.finishToken(7) : this.finishToken(1); } else en(r) ? (++this.state.pos, this.finishToken(139, this.readWord1(r))) : r === 92 ? (++this.state.pos, this.finishToken(139, this. readWord1())) : this.finishOp(27, 1); } readToken_dot() { let t = this.input.charCodeAt(this.state.pos + 1); if (t >= 48 && t <= 57) { this.readNumber(!0); return; } t === 46 && this.input.charCodeAt(this.state.pos + 2) === 46 ? (this.state.pos += 3, this.finishToken(21)) : (++this.state.pos, this.finishToken( 16)); } readToken_slash() { this.input.charCodeAt(this.state.pos + 1) === 61 ? this.finishOp(31, 2) : this.finishOp(56, 1); } readToken_interpreter() { if (this.state.pos !== 0 || this.length < 2) return !1; let t = this.input.charCodeAt(this.state.pos + 1); if (t !== 33) return !1; let r = this.state.pos; for (this.state.pos += 1; !Ul(t) && ++this.state.pos < this.length; ) t = this.input.charCodeAt(this.state.pos); let i = this.input.slice(r + 2, this.state.pos); return this.finishToken(28, i), !0; } readToken_mult_modulo(t) { let r = t === 42 ? 55 : 54, i = 1, s = this.input.charCodeAt(this.state.pos + 1); t === 42 && s === 42 && (i++, s = this.input.charCodeAt(this.state.pos + 2), r = 57), s === 61 && !this.state.inType && (i++, r = t === 37 ? 33 : 30), this.finishOp(r, i); } readToken_pipe_amp(t) { let r = this.input.charCodeAt(this.state.pos + 1); if (r === t) { this.input.charCodeAt(this.state.pos + 2) === 61 ? this.finishOp(30, 3) : this.finishOp(t === 124 ? 41 : 42, 2); return; } if (t === 124) { if (r === 62) { this.finishOp(39, 2); return; } if (this.hasPlugin("recordAndTuple") && r === 125) { if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") throw this.raise(R.RecordExpressionBarIncorrectEndSyntaxType, this.state.curPosition()); this.state.pos += 2, this.finishToken(9); return; } if (this.hasPlugin("recordAndTuple") && r === 93) { if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") throw this.raise(R.TupleExpressionBarIncorrectEndSyntaxType, this.state.curPosition()); this.state.pos += 2, this.finishToken(4); return; } } if (r === 61) { this.finishOp(30, 2); return; } this.finishOp(t === 124 ? 43 : 45, 1); } readToken_caret() { let t = this.input.charCodeAt(this.state.pos + 1); t === 61 && !this.state.inType ? this.finishOp(32, 2) : t === 94 && this.hasPlugin(["pipelineOperator", { proposal: "hack", topicToken: "^^" }]) ? (this.finishOp(37, 2), this.input.codePointAt(this.state.pos) === 94 && this.unexpected()) : this.finishOp(44, 1); } readToken_atSign() { this.input.charCodeAt(this.state.pos + 1) === 64 && this.hasPlugin(["pipelineOperator", { proposal: "hack", topicToken: "@@" }]) ? this.finishOp(38, 2) : this.finishOp(26, 1); } readToken_plus_min(t) { let r = this.input.charCodeAt(this.state.pos + 1); if (r === t) { this.finishOp(34, 2); return; } r === 61 ? this.finishOp(30, 2) : this.finishOp(53, 1); } readToken_lt() { let { pos: t } = this.state, r = this.input.charCodeAt(t + 1); if (r === 60) { if (this.input.charCodeAt(t + 2) === 61) { this.finishOp(30, 3); return; } this.finishOp(51, 2); return; } if (r === 61) { this.finishOp(49, 2); return; } this.finishOp(47, 1); } readToken_gt() { let { pos: t } = this.state, r = this.input.charCodeAt(t + 1); if (r === 62) { let i = this.input.charCodeAt(t + 2) === 62 ? 3 : 2; if (this.input.charCodeAt(t + i) === 61) { this.finishOp(30, i + 1); return; } this.finishOp(52, i); return; } if (r === 61) { this.finishOp(49, 2); return; } this.finishOp(48, 1); } readToken_eq_excl(t) { let r = this.input.charCodeAt(this.state.pos + 1); if (r === 61) { this.finishOp(46, this.input.charCodeAt(this.state.pos + 2) === 61 ? 3 : 2); return; } if (t === 61 && r === 62) { this.state.pos += 2, this.finishToken(19); return; } this.finishOp(t === 61 ? 29 : 35, 1); } readToken_question() { let t = this.input.charCodeAt(this.state.pos + 1), r = this.input.charCodeAt(this.state.pos + 2); t === 63 ? r === 61 ? this.finishOp(30, 3) : this.finishOp(40, 2) : t === 46 && !(r >= 48 && r <= 57) ? (this.state.pos += 2, this.finishToken( 18)) : (++this.state.pos, this.finishToken(17)); } getTokenFromCode(t) { switch (t) { case 46: this.readToken_dot(); return; case 40: ++this.state.pos, this.finishToken(10); return; case 41: ++this.state.pos, this.finishToken(11); return; case 59: ++this.state.pos, this.finishToken(13); return; case 44: ++this.state.pos, this.finishToken(12); return; case 91: if (this.hasPlugin("recordAndTuple") && this.input.charCodeAt(this.state.pos + 1) === 124) { if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") throw this.raise(R.TupleExpressionBarIncorrectStartSyntaxType, this.state.curPosition()); this.state.pos += 2, this.finishToken(2); } else ++this.state.pos, this.finishToken(0); return; case 93: ++this.state.pos, this.finishToken(3); return; case 123: if (this.hasPlugin("recordAndTuple") && this.input.charCodeAt(this.state.pos + 1) === 124) { if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") throw this.raise(R.RecordExpressionBarIncorrectStartSyntaxType, this.state.curPosition()); this.state.pos += 2, this.finishToken(6); } else ++this.state.pos, this.finishToken(5); return; case 125: ++this.state.pos, this.finishToken(8); return; case 58: this.hasPlugin("functionBind") && this.input.charCodeAt(this.state.pos + 1) === 58 ? this.finishOp(15, 2) : (++this.state.pos, this. finishToken(14)); return; case 63: this.readToken_question(); return; case 96: this.readTemplateToken(); return; case 48: { let r = this.input.charCodeAt(this.state.pos + 1); if (r === 120 || r === 88) { this.readRadixNumber(16); return; } if (r === 111 || r === 79) { this.readRadixNumber(8); return; } if (r === 98 || r === 66) { this.readRadixNumber(2); return; } } case 49: case 50: case 51: case 52: case 53: case 54: case 55: case 56: case 57: this.readNumber(!1); return; case 34: case 39: this.readString(t); return; case 47: this.readToken_slash(); return; case 37: case 42: this.readToken_mult_modulo(t); return; case 124: case 38: this.readToken_pipe_amp(t); return; case 94: this.readToken_caret(); return; case 43: case 45: this.readToken_plus_min(t); return; case 60: this.readToken_lt(); return; case 62: this.readToken_gt(); return; case 61: case 33: this.readToken_eq_excl(t); return; case 126: this.finishOp(36, 1); return; case 64: this.readToken_atSign(); return; case 35: this.readToken_numberSign(); return; case 92: this.readWord(); return; default: if (en(t)) { this.readWord(t); return; } } throw this.raise(R.InvalidOrUnexpectedToken, this.state.curPosition(), { unexpected: String.fromCodePoint(t) }); } finishOp(t, r) { let i = this.input.slice(this.state.pos, this.state.pos + r); this.state.pos += r, this.finishToken(t, i); } readRegexp() { let t = this.state.startLoc, r = this.state.start + 1, i, s, { pos: a } = this.state; for (; ; ++a) { if (a >= this.length) throw this.raise(R.UnterminatedRegExp, si(t, 1)); let c = this.input.charCodeAt(a); if (Ul(c)) throw this.raise(R.UnterminatedRegExp, si(t, 1)); if (i) i = !1; else { if (c === 91) s = !0; else if (c === 93 && s) s = !1; else if (c === 47 && !s) break; i = c === 92; } } let o = this.input.slice(r, a); ++a; let u = "", l = /* @__PURE__ */ n(() => si(t, a + 2 - r), "nextPos"); for (; a < this.length; ) { let c = this.codePointAtPos(a), f = String.fromCharCode(c); if (LPe.has(c)) c === 118 ? u.includes("u") && this.raise(R.IncompatibleRegExpUVFlags, l()) : c === 117 && u.includes("v") && this.raise(R.IncompatibleRegExpUVFlags, l()), u.includes(f) && this.raise(R.DuplicateRegExpFlags, l()); else if (Wo(c) || c === 92) this.raise(R.MalformedRegExpFlags, l()); else break; ++a, u += f; } this.state.pos = a, this.finishToken(138, { pattern: o, flags: u }); } readInt(t, r, i = !1, s = !0) { let { n: a, pos: o } = mL(this.input, this.state.pos, this.state.lineStart, this.state.curLine, t, r, i, s, this.errorHandlers_readInt, !1); return this.state.pos = o, a; } readRadixNumber(t) { let r = this.state.pos, i = this.state.curPosition(), s = !1; this.state.pos += 2; let a = this.readInt(t); a == null && this.raise(R.InvalidDigit, si(i, 2), { radix: t }); let o = this.input.charCodeAt(this.state.pos); if (o === 110) ++this.state.pos, s = !0; else if (o === 109) throw this.raise(R.InvalidDecimal, i); if (en(this.codePointAtPos(this.state.pos))) throw this.raise(R.NumberIdentifier, this.state.curPosition()); if (s) { let u = this.input.slice(r, this.state.pos).replace(/[_n]/g, ""); this.finishToken(136, u); return; } this.finishToken(135, a); } readNumber(t) { let r = this.state.pos, i = this.state.curPosition(), s = !1, a = !1, o = !1, u = !1; !t && this.readInt(10) === null && this.raise(R.InvalidNumber, this.state.curPosition()); let l = this.state.pos - r >= 2 && this.input.charCodeAt(r) === 48; if (l) { let d = this.input.slice(r, this.state.pos); if (this.recordStrictModeErrors(R.StrictOctalLiteral, i), !this.state.strict) { let y = d.indexOf("_"); y > 0 && this.raise(R.ZeroDigitNumericSeparator, si(i, y)); } u = l && !/[89]/.test(d); } let c = this.input.charCodeAt(this.state.pos); if (c === 46 && !u && (++this.state.pos, this.readInt(10), s = !0, c = this.input.charCodeAt(this.state.pos)), (c === 69 || c === 101) && !u && (c = this.input.charCodeAt(++this.state.pos), (c === 43 || c === 45) && ++this.state.pos, this.readInt(10) === null && this.raise( R.InvalidOrMissingExponent, i), s = !0, o = !0, c = this.input.charCodeAt(this.state.pos)), c === 110 && ((s || l) && this.raise(R.InvalidBigIntLiteral, i), ++this.state.pos, a = !0), c === 109) { this.expectPlugin("decimal", this.state.curPosition()), (o || l) && this.raise(R.InvalidDecimal, i), ++this.state.pos; var f = !0; } if (en(this.codePointAtPos(this.state.pos))) throw this.raise(R.NumberIdentifier, this.state.curPosition()); let m = this.input.slice(r, this.state.pos).replace(/[_mn]/g, ""); if (a) { this.finishToken(136, m); return; } if (f) { this.finishToken(137, m); return; } let h = u ? parseInt(m, 8) : parseFloat(m); this.finishToken(135, h); } readCodePoint(t) { let { code: r, pos: i } = yL(this.input, this.state.pos, this.state.lineStart, this.state.curLine, t, this.errorHandlers_readCodePoint); return this.state.pos = i, r; } readString(t) { let { str: r, pos: i, curLine: s, lineStart: a } = eL(t === 34 ? "double" : "single", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_string); this.state.pos = i + 1, this.state.lineStart = a, this.state.curLine = s, this.finishToken(134, r); } readTemplateContinuation() { this.match(8) || this.unexpected(null, 8), this.state.pos--, this.readTemplateToken(); } readTemplateToken() { let t = this.input[this.state.pos], { str: r, firstInvalidLoc: i, pos: s, curLine: a, lineStart: o } = eL("template", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_template); this.state.pos = s + 1, this.state.lineStart = o, this.state.curLine = a, i && (this.state.firstInvalidTemplateEscapePos = new tn(i.curLine, i.pos - i.lineStart, this.sourceToOffsetPos(i.pos))), this.input.codePointAt(s) === 96 ? this.finishToken(24, i ? null : t + r + "`") : (this.state.pos++, this.finishToken(25, i ? null : t + r + "${")); } recordStrictModeErrors(t, r) { let i = r.index; this.state.strict && !this.state.strictErrors.has(i) ? this.raise(t, r) : this.state.strictErrors.set(i, [t, r]); } readWord1(t) { this.state.containsEsc = !1; let r = "", i = this.state.pos, s = this.state.pos; for (t !== void 0 && (this.state.pos += t <= 65535 ? 1 : 2); this.state.pos < this.length; ) { let a = this.codePointAtPos(this.state.pos); if (Wo(a)) this.state.pos += a <= 65535 ? 1 : 2; else if (a === 92) { this.state.containsEsc = !0, r += this.input.slice(s, this.state.pos); let o = this.state.curPosition(), u = this.state.pos === i ? en : Wo; if (this.input.charCodeAt(++this.state.pos) !== 117) { this.raise(R.MissingUnicodeEscape, this.state.curPosition()), s = this.state.pos - 1; continue; } ++this.state.pos; let l = this.readCodePoint(!0); l !== null && (u(l) || this.raise(R.EscapedCharNotAnIdentifier, o), r += String.fromCodePoint(l)), s = this.state.pos; } else break; } return r + this.input.slice(s, this.state.pos); } readWord(t) { let r = this.readWord1(t), i = jT.get(r); i !== void 0 ? this.finishToken(i, Ma(i)) : this.finishToken(132, r); } checkKeywordEscapes() { let { type: t } = this.state; HT(t) && this.state.containsEsc && this.raise(R.InvalidEscapedReservedWord, this.state.startLoc, { reservedWord: Ma(t) }); } raise(t, r, i = {}) { let s = r instanceof tn ? r : r.loc.start, a = t(s, i); if (!(this.optionFlags & 2048)) throw a; return this.isLookahead || this.state.errors.push(a), a; } raiseOverwrite(t, r, i = {}) { let s = r instanceof tn ? r : r.loc.start, a = s.index, o = this.state.errors; for (let u = o.length - 1; u >= 0; u--) { let l = o[u]; if (l.loc.index === a) return o[u] = t(s, i); if (l.loc.index < a) break; } return this.raise(t, r, i); } updateContext(t) { } unexpected(t, r) { throw this.raise(R.UnexpectedToken, t ?? this.state.startLoc, { expected: r ? Ma(r) : null }); } expectPlugin(t, r) { if (this.hasPlugin(t)) return !0; throw this.raise(R.MissingPlugin, r ?? this.state.startLoc, { missingPlugin: [t] }); } expectOnePlugin(t) { if (!t.some((r) => this.hasPlugin(r))) throw this.raise(R.MissingOneOfPlugins, this.state.startLoc, { missingPlugin: t }); } errorBuilder(t) { return (r, i, s) => { this.raise(t, Nd(r, i, s)); }; } }, PT = class { static { n(this, "ClassScope"); } constructor() { this.privateNames = /* @__PURE__ */ new Set(), this.loneAccessors = /* @__PURE__ */ new Map(), this.undefinedPrivateNames = /* @__PURE__ */ new Map(); } }, FT = class { static { n(this, "ClassScopeHandler"); } constructor(t) { this.parser = void 0, this.stack = [], this.undefinedPrivateNames = /* @__PURE__ */ new Map(), this.parser = t; } current() { return this.stack[this.stack.length - 1]; } enter() { this.stack.push(new PT()); } exit() { let t = this.stack.pop(), r = this.current(); for (let [i, s] of Array.from(t.undefinedPrivateNames)) r ? r.undefinedPrivateNames.has(i) || r.undefinedPrivateNames.set(i, s) : this.parser.raise(R.InvalidPrivateFieldResolution, s, { identifierName: i }); } declarePrivateName(t, r, i) { let { privateNames: s, loneAccessors: a, undefinedPrivateNames: o } = this.current(), u = s.has(t); if (r & 3) { let l = u && a.get(t); if (l) { let c = l & 4, f = r & 4, m = l & 3, h = r & 3; u = m === h || c !== f, u || a.delete(t); } else u || a.set(t, r); } u && this.parser.raise(R.PrivateNameRedeclaration, i, { identifierName: t }), s.add(t), o.delete(t); } usePrivateName(t, r) { let i; for (i of this.stack) if (i.privateNames.has(t)) return; i ? i.undefinedPrivateNames.set(t, r) : this.parser.raise(R.InvalidPrivateFieldResolution, r, { identifierName: t }); } }, Wl = class { static { n(this, "ExpressionScope"); } constructor(t = 0) { this.type = t; } canBeArrowParameterDeclaration() { return this.type === 2 || this.type === 1; } isCertainlyParameterDeclaration() { return this.type === 3; } }, ey = class extends Wl { static { n(this, "ArrowHeadParsingScope"); } constructor(t) { super(t), this.declarationErrors = /* @__PURE__ */ new Map(); } recordDeclarationError(t, r) { let i = r.index; this.declarationErrors.set(i, [t, r]); } clearDeclarationError(t) { this.declarationErrors.delete(t); } iterateErrors(t) { this.declarationErrors.forEach(t); } }, IT = class { static { n(this, "ExpressionScopeHandler"); } constructor(t) { this.parser = void 0, this.stack = [new Wl()], this.parser = t; } enter(t) { this.stack.push(t); } exit() { this.stack.pop(); } recordParameterInitializerError(t, r) { let i = r.loc.start, { stack: s } = this, a = s.length - 1, o = s[a]; for (; !o.isCertainlyParameterDeclaration(); ) { if (o.canBeArrowParameterDeclaration()) o.recordDeclarationError(t, i); else return; o = s[--a]; } this.parser.raise(t, i); } recordArrowParameterBindingError(t, r) { let { stack: i } = this, s = i[i.length - 1], a = r.loc.start; if (s.isCertainlyParameterDeclaration()) this.parser.raise(t, a); else if (s.canBeArrowParameterDeclaration()) s.recordDeclarationError(t, a); else return; } recordAsyncArrowParametersError(t) { let { stack: r } = this, i = r.length - 1, s = r[i]; for (; s.canBeArrowParameterDeclaration(); ) s.type === 2 && s.recordDeclarationError(R.AwaitBindingIdentifier, t), s = r[--i]; } validateAsPattern() { let { stack: t } = this, r = t[t.length - 1]; r.canBeArrowParameterDeclaration() && r.iterateErrors(([i, s]) => { this.parser.raise(i, s); let a = t.length - 2, o = t[a]; for (; o.canBeArrowParameterDeclaration(); ) o.clearDeclarationError(s.index), o = t[--a]; }); } }; function jPe() { return new Wl(3); } n(jPe, "newParameterDeclarationScope"); function qPe() { return new ey(1); } n(qPe, "newArrowHeadScope"); function UPe() { return new ey(2); } n(UPe, "newAsyncArrowScope"); function gL() { return new Wl(); } n(gL, "newExpressionScope"); var OT = class extends _T { static { n(this, "UtilParser"); } addExtra(t, r, i, s = !0) { if (!t) return; let { extra: a } = t; a == null && (a = {}, t.extra = a), s ? a[r] = i : Object.defineProperty(a, r, { enumerable: s, value: i }); } isContextual(t) { return this.state.type === t && !this.state.containsEsc; } isUnparsedContextual(t, r) { if (this.input.startsWith(r, t)) { let i = this.input.charCodeAt(t + r.length); return !(Wo(i) || (i & 64512) === 55296); } return !1; } isLookaheadContextual(t) { let r = this.nextTokenStart(); return this.isUnparsedContextual(r, t); } eatContextual(t) { return this.isContextual(t) ? (this.next(), !0) : !1; } expectContextual(t, r) { if (!this.eatContextual(t)) { if (r != null) throw this.raise(r, this.state.startLoc); this.unexpected(null, t); } } canInsertSemicolon() { return this.match(140) || this.match(8) || this.hasPrecedingLineBreak(); } hasPrecedingLineBreak() { return ZR(this.input, this.offsetToSourcePos(this.state.lastTokEndLoc.index), this.state.start); } hasFollowingLineBreak() { return ZR(this.input, this.state.end, this.nextTokenStart()); } isLineTerminator() { return this.eat(13) || this.canInsertSemicolon(); } semicolon(t = !0) { (t ? this.isLineTerminator() : this.eat(13)) || this.raise(R.MissingSemicolon, this.state.lastTokEndLoc); } expect(t, r) { this.eat(t) || this.unexpected(r, t); } tryParse(t, r = this.state.clone()) { let i = { node: null }; try { let s = t((a = null) => { throw i.node = a, i; }); if (this.state.errors.length > r.errors.length) { let a = this.state; return this.state = r, this.state.tokensLength = a.tokensLength, { node: s, error: a.errors[r.errors.length], thrown: !1, aborted: !1, failState: a }; } return { node: s, error: null, thrown: !1, aborted: !1, failState: null }; } catch (s) { let a = this.state; if (this.state = r, s instanceof SyntaxError) return { node: null, error: s, thrown: !0, aborted: !1, failState: a }; if (s === i) return { node: i.node, error: null, thrown: !1, aborted: !0, failState: a }; throw s; } } checkExpressionErrors(t, r) { if (!t) return !1; let { shorthandAssignLoc: i, doubleProtoLoc: s, privateKeyLoc: a, optionalParametersLoc: o, voidPatternLoc: u } = t, l = !!i || !!s || !!o || !!a || !!u; if (!r) return l; i != null && this.raise(R.InvalidCoverInitializedName, i), s != null && this.raise(R.DuplicateProto, s), a != null && this.raise(R.UnexpectedPrivateField, a), o != null && this.unexpected(o), u != null && this.raise(R.InvalidCoverDiscardElement, u); } isLiteralPropertyName() { return oL(this.state.type); } isPrivateName(t) { return t.type === "PrivateName"; } getPrivateNameSV(t) { return t.id.name; } hasPropertyAsPrivateName(t) { return (t.type === "MemberExpression" || t.type === "OptionalMemberExpression") && this.isPrivateName(t.property); } isObjectProperty(t) { return t.type === "ObjectProperty"; } isObjectMethod(t) { return t.type === "ObjectMethod"; } initializeScopes(t = this.options.sourceType === "module") { let r = this.state.labels; this.state.labels = []; let i = this.exportedIdentifiers; this.exportedIdentifiers = /* @__PURE__ */ new Set(); let s = this.inModule; this.inModule = t; let a = this.scope, o = this.getScopeHandler(); this.scope = new o(this, t); let u = this.prodParam; this.prodParam = new ST(); let l = this.classScope; this.classScope = new FT(this); let c = this.expressionScope; return this.expressionScope = new IT(this), () => { this.state.labels = r, this.exportedIdentifiers = i, this.inModule = s, this.scope = a, this.prodParam = u, this.classScope = l, this. expressionScope = c; }; } enterInitialScopes() { let t = 0; (this.inModule || this.optionFlags & 1) && (t |= 2), this.optionFlags & 32 && (t |= 1); let r = !this.inModule && this.options.sourceType === "commonjs"; (r || this.optionFlags & 2) && (t |= 4), this.prodParam.enter(t); let i = r ? 514 : 1; this.optionFlags & 4 && (i |= 512), this.scope.enter(i); } checkDestructuringPrivate(t) { let { privateKeyLoc: r } = t; r !== null && this.expectPlugin("destructuringPrivate", r); } }, $l = class { static { n(this, "ExpressionErrors"); } constructor() { this.shorthandAssignLoc = null, this.doubleProtoLoc = null, this.privateKeyLoc = null, this.optionalParametersLoc = null, this.voidPatternLoc = null; } }, Hl = class { static { n(this, "Node"); } constructor(t, r, i) { this.type = "", this.start = r, this.end = 0, this.loc = new Vl(i), t?.optionFlags & 128 && (this.range = [r, 0]), t != null && t.filename && (this.loc.filename = t.filename); } }, kT = Hl.prototype; kT.__clone = function() { let e = new Hl(void 0, this.start, this.loc.start), t = Object.keys(this); for (let r = 0, i = t.length; r < i; r++) { let s = t[r]; s !== "leadingComments" && s !== "trailingComments" && s !== "innerComments" && (e[s] = this[s]); } return e; }; var BT = class extends OT { static { n(this, "NodeUtils"); } startNode() { let t = this.state.startLoc; return new Hl(this, t.index, t); } startNodeAt(t) { return new Hl(this, t.index, t); } startNodeAtNode(t) { return this.startNodeAt(t.loc.start); } finishNode(t, r) { return this.finishNodeAt(t, r, this.state.lastTokEndLoc); } finishNodeAt(t, r, i) { return t.type = r, t.end = i.index, t.loc.end = i, this.optionFlags & 128 && (t.range[1] = i.index), this.optionFlags & 4096 && this.processComment( t), t; } resetStartLocation(t, r) { t.start = r.index, t.loc.start = r, this.optionFlags & 128 && (t.range[0] = r.index); } resetEndLocation(t, r = this.state.lastTokEndLoc) { t.end = r.index, t.loc.end = r, this.optionFlags & 128 && (t.range[1] = r.index); } resetStartLocationFromNode(t, r) { this.resetStartLocation(t, r.loc.start); } castNodeTo(t, r) { return t.type = r, t; } cloneIdentifier(t) { let { type: r, start: i, end: s, loc: a, range: o, name: u } = t, l = Object.create(kT); return l.type = r, l.start = i, l.end = s, l.loc = a, l.range = o, l.name = u, t.extra && (l.extra = t.extra), l; } cloneStringLiteral(t) { let { type: r, start: i, end: s, loc: a, range: o, extra: u } = t, l = Object.create(kT); return l.type = r, l.start = i, l.end = s, l.loc = a, l.range = o, l.extra = u, l.value = t.value, l; } }, NT = /* @__PURE__ */ n((e) => e.type === "ParenthesizedExpression" ? NT(e.expression) : e, "unwrapParenthesizedExpression"), MT = class extends BT { static { n(this, "LValParser"); } toAssignable(t, r = !1) { var i, s; let a; switch ((t.type === "ParenthesizedExpression" || (i = t.extra) != null && i.parenthesized) && (a = NT(t), r ? a.type === "Identifier" ? this.expressionScope.recordArrowParameterBindingError(R.InvalidParenthesizedAssignment, t) : a.type !== "CallExpression" && a.type !== "MemberExpression" && !this.isOptionalMemberExpression(a) && this.raise(R.InvalidParenthesizedAssignment, t) : this.raise(R.InvalidParenthesizedAssignment, t)), t.type) { case "Identifier": case "ObjectPattern": case "ArrayPattern": case "AssignmentPattern": case "RestElement": case "VoidPattern": break; case "ObjectExpression": this.castNodeTo(t, "ObjectPattern"); for (let u = 0, l = t.properties.length, c = l - 1; u < l; u++) { var o; let f = t.properties[u], m = u === c; this.toAssignableObjectExpressionProp(f, m, r), m && f.type === "RestElement" && (o = t.extra) != null && o.trailingCommaLoc && this. raise(R.RestTrailingComma, t.extra.trailingCommaLoc); } break; case "ObjectProperty": { let { key: u, value: l } = t; this.isPrivateName(u) && this.classScope.usePrivateName(this.getPrivateNameSV(u), u.loc.start), this.toAssignable(l, r); break; } case "SpreadElement": throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignabl\ e's caller."); case "ArrayExpression": this.castNodeTo(t, "ArrayPattern"), this.toAssignableList(t.elements, (s = t.extra) == null ? void 0 : s.trailingCommaLoc, r); break; case "AssignmentExpression": t.operator !== "=" && this.raise(R.MissingEqInAssignment, t.left.loc.end), this.castNodeTo(t, "AssignmentPattern"), delete t.operator, t.left.type === "VoidPattern" && this.raise(R.VoidPatternInitializer, t.left), this.toAssignable(t.left, r); break; case "ParenthesizedExpression": this.toAssignable(a, r); break; } } toAssignableObjectExpressionProp(t, r, i) { if (t.type === "ObjectMethod") this.raise(t.kind === "get" || t.kind === "set" ? R.PatternHasAccessor : R.PatternHasMethod, t.key); else if (t.type === "SpreadElement") { this.castNodeTo(t, "RestElement"); let s = t.argument; this.checkToRestConversion(s, !1), this.toAssignable(s, i), r || this.raise(R.RestTrailingComma, t); } else this.toAssignable(t, i); } toAssignableList(t, r, i) { let s = t.length - 1; for (let a = 0; a <= s; a++) { let o = t[a]; o && (this.toAssignableListItem(t, a, i), o.type === "RestElement" && (a < s ? this.raise(R.RestTrailingComma, o) : r && this.raise( R.RestTrailingComma, r))); } } toAssignableListItem(t, r, i) { let s = t[r]; if (s.type === "SpreadElement") { this.castNodeTo(s, "RestElement"); let a = s.argument; this.checkToRestConversion(a, !0), this.toAssignable(a, i); } else this.toAssignable(s, i); } isAssignable(t, r) { switch (t.type) { case "Identifier": case "ObjectPattern": case "ArrayPattern": case "AssignmentPattern": case "RestElement": case "VoidPattern": return !0; case "ObjectExpression": { let i = t.properties.length - 1; return t.properties.every((s, a) => s.type !== "ObjectMethod" && (a === i || s.type !== "SpreadElement") && this.isAssignable(s)); } case "ObjectProperty": return this.isAssignable(t.value); case "SpreadElement": return this.isAssignable(t.argument); case "ArrayExpression": return t.elements.every((i) => i === null || this.isAssignable(i)); case "AssignmentExpression": return t.operator === "="; case "ParenthesizedExpression": return this.isAssignable(t.expression); case "MemberExpression": case "OptionalMemberExpression": return !r; default: return !1; } } toReferencedList(t, r) { return t; } toReferencedListDeep(t, r) { this.toReferencedList(t, r); for (let i of t) i?.type === "ArrayExpression" && this.toReferencedListDeep(i.elements); } parseSpread(t) { let r = this.startNode(); return this.next(), r.argument = this.parseMaybeAssignAllowIn(t, void 0), this.finishNode(r, "SpreadElement"); } parseRestBinding() { let t = this.startNode(); this.next(); let r = this.parseBindingAtom(); return r.type === "VoidPattern" && this.raise(R.UnexpectedVoidPattern, r), t.argument = r, this.finishNode(t, "RestElement"); } parseBindingAtom() { switch (this.state.type) { case 0: { let t = this.startNode(); return this.next(), t.elements = this.parseBindingList(3, 93, 1), this.finishNode(t, "ArrayPattern"); } case 5: return this.parseObjectLike(8, !0); case 88: return this.parseVoidPattern(null); } return this.parseIdentifier(); } parseBindingList(t, r, i) { let s = i & 1, a = [], o = !0; for (; !this.eat(t); ) if (o ? o = !1 : this.expect(12), s && this.match(12)) a.push(null); else { if (this.eat(t)) break; if (this.match(21)) { let u = this.parseRestBinding(); if ((this.hasPlugin("flow") || i & 2) && (u = this.parseFunctionParamType(u)), a.push(u), !this.checkCommaAfterRest(r)) { this.expect(t); break; } } else { let u = []; if (i & 2) for (this.match(26) && this.hasPlugin("decorators") && this.raise(R.UnsupportedParameterDecorator, this.state.startLoc); this. match(26); ) u.push(this.parseDecorator()); a.push(this.parseBindingElement(i, u)); } } return a; } parseBindingRestProperty(t) { return this.next(), this.hasPlugin("discardBinding") && this.match(88) ? (t.argument = this.parseVoidPattern(null), this.raise(R.UnexpectedVoidPattern, t.argument)) : t.argument = this.parseIdentifier(), this.checkCommaAfterRest(125), this.finishNode(t, "RestElement"); } parseBindingProperty() { let { type: t, startLoc: r } = this.state; if (t === 21) return this.parseBindingRestProperty(this.startNode()); let i = this.startNode(); return t === 139 ? (this.expectPlugin("destructuringPrivate", r), this.classScope.usePrivateName(this.state.value, r), i.key = this.parsePrivateName()) : this.parsePropertyName(i), i.method = !1, this.parseObjPropValue(i, r, !1, !1, !0, !1); } parseBindingElement(t, r) { let i = this.parseMaybeDefault(); return (this.hasPlugin("flow") || t & 2) && this.parseFunctionParamType(i), r.length && (i.decorators = r, this.resetStartLocationFromNode( i, r[0])), this.parseMaybeDefault(i.loc.start, i); } parseFunctionParamType(t) { return t; } parseMaybeDefault(t, r) { if (t ?? (t = this.state.startLoc), r = r ?? this.parseBindingAtom(), !this.eat(29)) return r; let i = this.startNodeAt(t); return r.type === "VoidPattern" && this.raise(R.VoidPatternInitializer, r), i.left = r, i.right = this.parseMaybeAssignAllowIn(), this. finishNode(i, "AssignmentPattern"); } isValidLVal(t, r, i, s) { switch (t) { case "AssignmentPattern": return "left"; case "RestElement": return "argument"; case "ObjectProperty": return "value"; case "ParenthesizedExpression": return "expression"; case "ArrayPattern": return "elements"; case "ObjectPattern": return "properties"; case "VoidPattern": return !0; case "CallExpression": if (!r && !this.state.strict && this.optionFlags & 8192) return !0; } return !1; } isOptionalMemberExpression(t) { return t.type === "OptionalMemberExpression"; } checkLVal(t, r, i = 64, s = !1, a = !1, o = !1, u = !1) { var l; let c = t.type; if (this.isObjectMethod(t)) return; let f = this.isOptionalMemberExpression(t); if (f || c === "MemberExpression") { f && (this.expectPlugin("optionalChainingAssign", t.loc.start), r.type !== "AssignmentExpression" && this.raise(R.InvalidLhsOptionalChaining, t, { ancestor: r })), i !== 64 && this.raise(R.InvalidPropertyBindingPattern, t); return; } if (c === "Identifier") { this.checkIdentifier(t, i, a); let { name: b } = t; s && (s.has(b) ? this.raise(R.ParamDupe, t) : s.add(b)); return; } else c === "VoidPattern" && r.type === "CatchClause" && this.raise(R.VoidPatternCatchClauseParam, t); let m = NT(t); u || (u = m.type === "CallExpression" && (m.callee.type === "Import" || m.callee.type === "Super")); let h = this.isValidLVal(c, u, !(o || (l = t.extra) != null && l.parenthesized) && r.type === "AssignmentExpression", i); if (h === !0) return; if (h === !1) { let b = i === 64 ? R.InvalidLhs : R.InvalidLhsBinding; this.raise(b, t, { ancestor: r }); return; } let d, y; typeof h == "string" ? (d = h, y = c === "ParenthesizedExpression") : [d, y] = h; let p = c === "ArrayPattern" || c === "ObjectPattern" ? { type: c } : r, g = t[d]; if (Array.isArray(g)) for (let b of g) b && this.checkLVal(b, p, i, s, a, y, !0); else g && this.checkLVal(g, p, i, s, a, y, u); } checkIdentifier(t, r, i = !1) { this.state.strict && (i ? pL(t.name, this.inModule) : dL(t.name)) && (r === 64 ? this.raise(R.StrictEvalArguments, t, { referenceName: t.name }) : this.raise(R.StrictEvalArgumentsBinding, t, { bindingName: t.name })), r & 8192 && t.name === "let" && this.raise(R.LetInLexicalBinding, t), r & 64 || this.declareNameFromIdentifier(t, r); } declareNameFromIdentifier(t, r) { this.scope.declareName(t.name, r, t.loc.start); } checkToRestConversion(t, r) { switch (t.type) { case "ParenthesizedExpression": this.checkToRestConversion(t.expression, r); break; case "Identifier": case "MemberExpression": break; case "ArrayExpression": case "ObjectExpression": if (r) break; default: this.raise(R.InvalidRestAssignmentPattern, t); } } checkCommaAfterRest(t) { return this.match(12) ? (this.raise(this.lookaheadCharCode() === t ? R.RestTrailingComma : R.ElementAfterRest, this.state.startLoc), !0) : !1; } }, mT = /in(?:stanceof)?|as|satisfies/y; function $Pe(e) { if (e == null) throw new Error(`Unexpected ${e} value.`); return e; } n($Pe, "nonNull"); function tL(e) { if (!e) throw new Error("Assert fail"); } n(tL, "assert"); var me = Qs`typescript`({ AbstractMethodHasImplementation: /* @__PURE__ */ n(({ methodName: e }) => `Method '${e}' cannot have an implementation because it is marked abstract.`, "AbstractMethodHasImplementation"), AbstractPropertyHasInitializer: /* @__PURE__ */ n(({ propertyName: e }) => `Property '${e}' cannot have an initializer because it is marked abstract.`, "AbstractPropertyHasInitializer"), AccessorCannotBeOptional: "An 'accessor' property cannot be declared optional.", AccessorCannotDeclareThisParameter: "'get' and 'set' accessors cannot declare 'this' parameters.", AccessorCannotHaveTypeParameters: "An accessor cannot have type parameters.", ClassMethodHasDeclare: "Class methods cannot have the 'declare' modifier.", ClassMethodHasReadonly: "Class methods cannot have the 'readonly' modifier.", ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference: "A 'const' initializer in an ambient context must be a string or num\ eric literal or literal enum reference.", ConstructorHasTypeParameters: "Type parameters cannot appear on a constructor declaration.", DeclareAccessor: /* @__PURE__ */ n(({ kind: e }) => `'declare' is not allowed in ${e}ters.`, "DeclareAccessor"), DeclareClassFieldHasInitializer: "Initializers are not allowed in ambient contexts.", DeclareFunctionHasImplementation: "An implementation cannot be declared in ambient contexts.", DuplicateAccessibilityModifier: /* @__PURE__ */ n(({ modifier: e }) => `Accessibility modifier already seen: '${e}'.`, "DuplicateAccessibilityModifier"), DuplicateModifier: /* @__PURE__ */ n(({ modifier: e }) => `Duplicate modifier: '${e}'.`, "DuplicateModifier"), EmptyHeritageClauseType: /* @__PURE__ */ n(({ token: e }) => `'${e}' list cannot be empty.`, "EmptyHeritageClauseType"), EmptyTypeArguments: "Type argument list cannot be empty.", EmptyTypeParameters: "Type parameter list cannot be empty.", ExpectedAmbientAfterExportDeclare: "'export declare' must be followed by an ambient declaration.", ImportAliasHasImportType: "An import alias can not use 'import type'.", ImportReflectionHasImportType: "An `import module` declaration can not use `type` modifier", IncompatibleModifiers: /* @__PURE__ */ n(({ modifiers: e }) => `'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`, "IncompatibleModifiers"), IndexSignatureHasAbstract: "Index signatures cannot have the 'abstract' modifier.", IndexSignatureHasAccessibility: /* @__PURE__ */ n(({ modifier: e }) => `Index signatures cannot have an accessibility modifier ('${e}').`, "IndexSignatureHasAccessibility"), IndexSignatureHasDeclare: "Index signatures cannot have the 'declare' modifier.", IndexSignatureHasOverride: "'override' modifier cannot appear on an index signature.", IndexSignatureHasStatic: "Index signatures cannot have the 'static' modifier.", InitializerNotAllowedInAmbientContext: "Initializers are not allowed in ambient contexts.", InvalidHeritageClauseType: /* @__PURE__ */ n(({ token: e }) => `'${e}' list can only include identifiers or qualified-names with optional type arguments.`, "InvalidHeritageClauseType"), InvalidModifierOnAwaitUsingDeclaration: /* @__PURE__ */ n((e) => `'${e}' modifier cannot appear on an await using declaration.`, "Invali\ dModifierOnAwaitUsingDeclaration"), InvalidModifierOnTypeMember: /* @__PURE__ */ n(({ modifier: e }) => `'${e}' modifier cannot appear on a type member.`, "InvalidModifierOnTypeMember"), InvalidModifierOnTypeParameter: /* @__PURE__ */ n(({ modifier: e }) => `'${e}' modifier cannot appear on a type parameter.`, "InvalidModifierOnTypeParameter"), InvalidModifierOnTypeParameterPositions: /* @__PURE__ */ n(({ modifier: e }) => `'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`, "InvalidModifierOnTypeParameterPositio\ ns"), InvalidModifierOnUsingDeclaration: /* @__PURE__ */ n((e) => `'${e}' modifier cannot appear on a using declaration.`, "InvalidModifierOnU\ singDeclaration"), InvalidModifiersOrder: /* @__PURE__ */ n(({ orderedModifiers: e }) => `'${e[0]}' modifier must precede '${e[1]}' modifier.`, "InvalidModifiersOrder"), InvalidPropertyAccessAfterInstantiationExpression: "Invalid property access after an instantiation expression. You can either wrap the i\ nstantiation expression in parentheses, or delete the type arguments.", InvalidTupleMemberLabel: "Tuple members must be labeled with a simple identifier.", MissingInterfaceName: "'interface' declarations must be followed by an identifier.", NonAbstractClassHasAbstractMethod: "Abstract methods can only appear within an abstract class.", NonClassMethodPropertyHasAbstractModifier: "'abstract' modifier can only appear on a class, method, or property declaration.", OptionalTypeBeforeRequired: "A required element cannot follow an optional element.", OverrideNotInSubClass: "This member cannot have an 'override' modifier because its containing class does not extend another class.", PatternIsOptional: "A binding pattern parameter cannot be optional in an implementation signature.", PrivateElementHasAbstract: "Private elements cannot have the 'abstract' modifier.", PrivateElementHasAccessibility: /* @__PURE__ */ n(({ modifier: e }) => `Private elements cannot have an accessibility modifier ('${e}').`, "PrivateElementHasAccessibility"), ReadonlyForMethodSignature: "'readonly' modifier can only appear on a property declaration or index signature.", ReservedArrowTypeParam: "This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.", ReservedTypeAssertion: "This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.", SetAccessorCannotHaveOptionalParameter: "A 'set' accessor cannot have an optional parameter.", SetAccessorCannotHaveRestParameter: "A 'set' accessor cannot have rest parameter.", SetAccessorCannotHaveReturnType: "A 'set' accessor cannot have a return type annotation.", SingleTypeParameterWithoutTrailingComma: /* @__PURE__ */ n(({ typeParameterName: e }) => `Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`, "SingleTypeParameterWithoutTrailingComma"), StaticBlockCannotHaveModifier: "Static class blocks cannot have any modifier.", TupleOptionalAfterType: "A labeled tuple optional element must be declared using a question mark after the name and before the colon (`n\ ame?: type`), rather than after the type (`name: type?`).", TypeAnnotationAfterAssign: "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number =\ 25`.", TypeImportCannotSpecifyDefaultAndNamed: "A type-only import can specify a default import or named bindings, but not both.", TypeModifierIsUsedInTypeExports: "The 'type' modifier cannot be used on a named export when 'export type' is used on its export statemen\ t.", TypeModifierIsUsedInTypeImports: "The 'type' modifier cannot be used on a named import when 'import type' is used on its import statemen\ t.", UnexpectedParameterModifier: "A parameter property is only allowed in a constructor implementation.", UnexpectedReadonly: "'readonly' type modifier is only permitted on array and tuple literal types.", UnexpectedTypeAnnotation: "Did not expect a type annotation here.", UnexpectedTypeCastInParameter: "Unexpected type cast in parameter position.", UnsupportedImportTypeArgument: "Argument in a type import must be a string literal.", UnsupportedParameterPropertyKind: "A parameter property may not be declared using a binding pattern.", UnsupportedSignatureParameterKind: /* @__PURE__ */ n(({ type: e }) => `Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`, "UnsupportedSignatureParameterKind"), UsingDeclarationInAmbientContext: /* @__PURE__ */ n((e) => `'${e}' declarations are not allowed in ambient contexts.`, "UsingDeclaration\ InAmbientContext") }); function VPe(e) { switch (e) { case "any": return "TSAnyKeyword"; case "boolean": return "TSBooleanKeyword"; case "bigint": return "TSBigIntKeyword"; case "never": return "TSNeverKeyword"; case "number": return "TSNumberKeyword"; case "object": return "TSObjectKeyword"; case "string": return "TSStringKeyword"; case "symbol": return "TSSymbolKeyword"; case "undefined": return "TSUndefinedKeyword"; case "unknown": return "TSUnknownKeyword"; default: return; } } n(VPe, "keywordTypeFromName"); function rL(e) { return e === "private" || e === "public" || e === "protected"; } n(rL, "tsIsAccessModifier"); function WPe(e) { return e === "in" || e === "out"; } n(WPe, "tsIsVarianceAnnotations"); var HPe = /* @__PURE__ */ n((e) => class extends e { static { n(this, "TypeScriptParserMixin"); } constructor(...r) { super(...r), this.tsParseInOutModifiers = this.tsParseModifiers.bind(this, { allowedModifiers: ["in", "out"], disallowedModifiers: ["const", "public", "private", "protected", "readonly", "declare", "abstract", "override"], errorTemplate: me.InvalidModifierOnTypeParameter }), this.tsParseConstModifier = this.tsParseModifiers.bind(this, { allowedModifiers: ["const"], disallowedModifiers: ["in", "out"], errorTemplate: me.InvalidModifierOnTypeParameterPositions }), this.tsParseInOutConstModifiers = this.tsParseModifiers.bind(this, { allowedModifiers: ["in", "out", "const"], disallowedModifiers: ["public", "private", "protected", "readonly", "declare", "abstract", "override"], errorTemplate: me.InvalidModifierOnTypeParameter }); } getScopeHandler() { return ET; } tsIsIdentifier() { return pt(this.state.type); } tsTokenCanFollowModifier() { return this.match(0) || this.match(5) || this.match(55) || this.match(21) || this.match(139) || this.isLiteralPropertyName(); } tsNextTokenOnSameLineAndCanFollowModifier() { return this.next(), this.hasPrecedingLineBreak() ? !1 : this.tsTokenCanFollowModifier(); } tsNextTokenCanFollowModifier() { return this.match(106) ? (this.next(), this.tsTokenCanFollowModifier()) : this.tsNextTokenOnSameLineAndCanFollowModifier(); } tsParseModifier(r, i, s) { if (!pt(this.state.type) && this.state.type !== 58 && this.state.type !== 75) return; let a = this.state.value; if (r.includes(a)) { if (s && this.match(106) || i && this.tsIsStartOfStaticBlocks()) return; if (this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))) return a; } } tsParseModifiers({ allowedModifiers: r, disallowedModifiers: i, stopOnStartOfClassStaticBlock: s, errorTemplate: a = me.InvalidModifierOnTypeMember }, o) { let u = /* @__PURE__ */ n((c, f, m, h) => { f === m && o[h] && this.raise(me.InvalidModifiersOrder, c, { orderedModifiers: [m, h] }); }, "enforceOrder"), l = /* @__PURE__ */ n((c, f, m, h) => { (o[m] && f === h || o[h] && f === m) && this.raise(me.IncompatibleModifiers, c, { modifiers: [m, h] }); }, "incompatible"); for (; ; ) { let { startLoc: c } = this.state, f = this.tsParseModifier(r.concat(i ?? []), s, o.static); if (!f) break; rL(f) ? o.accessibility ? this.raise(me.DuplicateAccessibilityModifier, c, { modifier: f }) : (u(c, f, f, "override"), u(c, f, f, "static"), u(c, f, f, "readonly"), o.accessibility = f) : WPe(f) ? (o[f] && this.raise(me.DuplicateModifier, c, { modifier: f }), o[f] = !0, u(c, f, "in", "out")) : (hasOwnProperty.call(o, f) ? this.raise(me.DuplicateModifier, c, { modifier: f }) : (u(c, f, "static", "readonly"), u(c, f, "static", "override"), u(c, f, "override", "readonly"), u(c, f, "abstract", "override"), l(c, f, "declare", "override"), l(c, f, "static", "abstract")), o[f] = !0), i != null && i.includes(f) && this.raise(a, c, { modifier: f }); } } tsIsListTerminator(r) { switch (r) { case "EnumMembers": case "TypeMembers": return this.match(8); case "HeritageClauseElement": return this.match(5); case "TupleElementTypes": return this.match(3); case "TypeParametersOrArguments": return this.match(48); } } tsParseList(r, i) { let s = []; for (; !this.tsIsListTerminator(r); ) s.push(i()); return s; } tsParseDelimitedList(r, i, s) { return $Pe(this.tsParseDelimitedListWorker(r, i, !0, s)); } tsParseDelimitedListWorker(r, i, s, a) { let o = [], u = -1; for (; !this.tsIsListTerminator(r); ) { u = -1; let l = i(); if (l == null) return; if (o.push(l), this.eat(12)) { u = this.state.lastTokStartLoc.index; continue; } if (this.tsIsListTerminator(r)) break; s && this.expect(12); return; } return a && (a.value = u), o; } tsParseBracketedList(r, i, s, a, o) { a || (s ? this.expect(0) : this.expect(47)); let u = this.tsParseDelimitedList(r, i, o); return s ? this.expect(3) : this.expect(48), u; } tsParseImportType() { let r = this.startNode(); return this.expect(83), this.expect(10), this.match(134) ? r.argument = this.parseStringLiteral(this.state.value) : (this.raise(me.UnsupportedImportTypeArgument, this.state.startLoc), r.argument = super.parseExprAtom()), this.eat(12) ? r.options = this.tsParseImportTypeOptions() : r.options = null, this.expect(11), this.eat(16) && (r.qualifier = this.tsParseEntityName(3)), this.match(47) && (r.typeParameters = this.tsParseTypeArguments()), this.finishNode(r, "TSImportType"); } tsParseImportTypeOptions() { let r = this.startNode(); this.expect(5); let i = this.startNode(); return this.isContextual(76) ? (i.method = !1, i.key = this.parseIdentifier(!0), i.computed = !1, i.shorthand = !1) : this.unexpected( null, 76), this.expect(14), i.value = this.tsParseImportTypeWithPropertyValue(), r.properties = [this.finishObjectProperty(i)], this.eat( 12), this.expect(8), this.finishNode(r, "ObjectExpression"); } tsParseImportTypeWithPropertyValue() { let r = this.startNode(), i = []; for (this.expect(5); !this.match(8); ) { let s = this.state.type; pt(s) || s === 134 ? i.push(super.parsePropertyDefinition(null)) : this.unexpected(), this.eat(12); } return r.properties = i, this.next(), this.finishNode(r, "ObjectExpression"); } tsParseEntityName(r) { let i; if (r & 1 && this.match(78)) if (r & 2) i = this.parseIdentifier(!0); else { let s = this.startNode(); this.next(), i = this.finishNode(s, "ThisExpression"); } else i = this.parseIdentifier(!!(r & 1)); for (; this.eat(16); ) { let s = this.startNodeAtNode(i); s.left = i, s.right = this.parseIdentifier(!!(r & 1)), i = this.finishNode(s, "TSQualifiedName"); } return i; } tsParseTypeReference() { let r = this.startNode(); return r.typeName = this.tsParseEntityName(1), !this.hasPrecedingLineBreak() && this.match(47) && (r.typeParameters = this.tsParseTypeArguments()), this.finishNode(r, "TSTypeReference"); } tsParseThisTypePredicate(r) { this.next(); let i = this.startNodeAtNode(r); return i.parameterName = r, i.typeAnnotation = this.tsParseTypeAnnotation(!1), i.asserts = !1, this.finishNode(i, "TSTypePredicate"); } tsParseThisTypeNode() { let r = this.startNode(); return this.next(), this.finishNode(r, "TSThisType"); } tsParseTypeQuery() { let r = this.startNode(); return this.expect(87), this.match(83) ? r.exprName = this.tsParseImportType() : r.exprName = this.tsParseEntityName(3), !this.hasPrecedingLineBreak() && this.match(47) && (r.typeParameters = this.tsParseTypeArguments()), this.finishNode(r, "TSTypeQuery"); } tsParseTypeParameter(r) { let i = this.startNode(); return r(i), i.name = this.tsParseTypeParameterName(), i.constraint = this.tsEatThenParseType(81), i.default = this.tsEatThenParseType( 29), this.finishNode(i, "TSTypeParameter"); } tsTryParseTypeParameters(r) { if (this.match(47)) return this.tsParseTypeParameters(r); } tsParseTypeParameters(r) { let i = this.startNode(); this.match(47) || this.match(143) ? this.next() : this.unexpected(); let s = { value: -1 }; return i.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this, r), !1, !0, s), i.params. length === 0 && this.raise(me.EmptyTypeParameters, i), s.value !== -1 && this.addExtra(i, "trailingComma", s.value), this.finishNode(i, "TSTypeParameterDeclaration"); } tsFillSignature(r, i) { let s = r === 19, a = "parameters", o = "typeAnnotation"; i.typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier), this.expect(10), i[a] = this.tsParseBindingListForSignature(), s ? i[o] = this.tsParseTypeOrTypePredicateAnnotation(r) : this.match(r) && (i[o] = this.tsParseTypeOrTypePredicateAnnotation(r)); } tsParseBindingListForSignature() { let r = super.parseBindingList(11, 41, 2); for (let i of r) { let { type: s } = i; (s === "AssignmentPattern" || s === "TSParameterProperty") && this.raise(me.UnsupportedSignatureParameterKind, i, { type: s }); } return r; } tsParseTypeMemberSemicolon() { !this.eat(12) && !this.isLineTerminator() && this.expect(13); } tsParseSignatureMember(r, i) { return this.tsFillSignature(14, i), this.tsParseTypeMemberSemicolon(), this.finishNode(i, r); } tsIsUnambiguouslyIndexSignature() { return this.next(), pt(this.state.type) ? (this.next(), this.match(14)) : !1; } tsTryParseIndexSignature(r) { if (!(this.match(0) && this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))) return; this.expect(0); let i = this.parseIdentifier(); i.typeAnnotation = this.tsParseTypeAnnotation(), this.resetEndLocation(i), this.expect(3), r.parameters = [i]; let s = this.tsTryParseTypeAnnotation(); return s && (r.typeAnnotation = s), this.tsParseTypeMemberSemicolon(), this.finishNode(r, "TSIndexSignature"); } tsParsePropertyOrMethodSignature(r, i) { if (this.eat(17) && (r.optional = !0), this.match(10) || this.match(47)) { i && this.raise(me.ReadonlyForMethodSignature, r); let s = r; s.kind && this.match(47) && this.raise(me.AccessorCannotHaveTypeParameters, this.state.curPosition()), this.tsFillSignature(14, s), this. tsParseTypeMemberSemicolon(); let a = "parameters", o = "typeAnnotation"; if (s.kind === "get") s[a].length > 0 && (this.raise(R.BadGetterArity, this.state.curPosition()), this.isThisParam(s[a][0]) && this.raise(me.AccessorCannotDeclareThisParameter, this.state.curPosition())); else if (s.kind === "set") { if (s[a].length !== 1) this.raise(R.BadSetterArity, this.state.curPosition()); else { let u = s[a][0]; this.isThisParam(u) && this.raise(me.AccessorCannotDeclareThisParameter, this.state.curPosition()), u.type === "Identifier" && u. optional && this.raise(me.SetAccessorCannotHaveOptionalParameter, this.state.curPosition()), u.type === "RestElement" && this.raise( me.SetAccessorCannotHaveRestParameter, this.state.curPosition()); } s[o] && this.raise(me.SetAccessorCannotHaveReturnType, s[o]); } else s.kind = "method"; return this.finishNode(s, "TSMethodSignature"); } else { let s = r; i && (s.readonly = !0); let a = this.tsTryParseTypeAnnotation(); return a && (s.typeAnnotation = a), this.tsParseTypeMemberSemicolon(), this.finishNode(s, "TSPropertySignature"); } } tsParseTypeMember() { let r = this.startNode(); if (this.match(10) || this.match(47)) return this.tsParseSignatureMember("TSCallSignatureDeclaration", r); if (this.match(77)) { let s = this.startNode(); return this.next(), this.match(10) || this.match(47) ? this.tsParseSignatureMember("TSConstructSignatureDeclaration", r) : (r.key = this. createIdentifier(s, "new"), this.tsParsePropertyOrMethodSignature(r, !1)); } this.tsParseModifiers({ allowedModifiers: ["readonly"], disallowedModifiers: ["declare", "abstract", "private", "protected", "public", "static", "override"] }, r); let i = this.tsTryParseIndexSignature(r); return i || (super.parsePropertyName(r), !r.computed && r.key.type === "Identifier" && (r.key.name === "get" || r.key.name === "set") && this.tsTokenCanFollowModifier() && (r.kind = r.key.name, super.parsePropertyName(r), !this.match(10) && !this.match(47) && this.unexpected( null, 10)), this.tsParsePropertyOrMethodSignature(r, !!r.readonly)); } tsParseTypeLiteral() { let r = this.startNode(); return r.members = this.tsParseObjectTypeMembers(), this.finishNode(r, "TSTypeLiteral"); } tsParseObjectTypeMembers() { this.expect(5); let r = this.tsParseList("TypeMembers", this.tsParseTypeMember.bind(this)); return this.expect(8), r; } tsIsStartOfMappedType() { return this.next(), this.eat(53) ? this.isContextual(122) : (this.isContextual(122) && this.next(), !this.match(0) || (this.next(), !this. tsIsIdentifier()) ? !1 : (this.next(), this.match(58))); } tsParseMappedType() { let r = this.startNode(); this.expect(5), this.match(53) ? (r.readonly = this.state.value, this.next(), this.expectContextual(122)) : this.eatContextual(122) && (r.readonly = !0), this.expect(0); { let i = this.startNode(); i.name = this.tsParseTypeParameterName(), i.constraint = this.tsExpectThenParseType(58), r.typeParameter = this.finishNode(i, "TSTyp\ eParameter"); } return r.nameType = this.eatContextual(93) ? this.tsParseType() : null, this.expect(3), this.match(53) ? (r.optional = this.state.value, this.next(), this.expect(17)) : this.eat(17) && (r.optional = !0), r.typeAnnotation = this.tsTryParseType(), this.semicolon(), this.expect( 8), this.finishNode(r, "TSMappedType"); } tsParseTupleType() { let r = this.startNode(); r.elementTypes = this.tsParseBracketedList("TupleElementTypes", this.tsParseTupleElementType.bind(this), !0, !1); let i = !1; return r.elementTypes.forEach((s) => { let { type: a } = s; i && a !== "TSRestType" && a !== "TSOptionalType" && !(a === "TSNamedTupleMember" && s.optional) && this.raise(me.OptionalTypeBeforeRequired, s), i || (i = a === "TSNamedTupleMember" && s.optional || a === "TSOptionalType"); }), this.finishNode(r, "TSTupleType"); } tsParseTupleElementType() { let r = this.state.startLoc, i = this.eat(21), { startLoc: s } = this.state, a, o, u, l, f = hs(this.state.type) ? this.lookaheadCharCode() : null; if (f === 58) a = !0, u = !1, o = this.parseIdentifier(!0), this.expect(14), l = this.tsParseType(); else if (f === 63) { u = !0; let m = this.state.value, h = this.tsParseNonArrayType(); this.lookaheadCharCode() === 58 ? (a = !0, o = this.createIdentifier(this.startNodeAt(s), m), this.expect(17), this.expect(14), l = this. tsParseType()) : (a = !1, l = h, this.expect(17)); } else l = this.tsParseType(), u = this.eat(17), a = this.eat(14); if (a) { let m; o ? (m = this.startNodeAt(s), m.optional = u, m.label = o, m.elementType = l, this.eat(17) && (m.optional = !0, this.raise(me.TupleOptionalAfterType, this.state.lastTokStartLoc))) : (m = this.startNodeAt(s), m.optional = u, this.raise(me.InvalidTupleMemberLabel, l), m.label = l, m. elementType = this.tsParseType()), l = this.finishNode(m, "TSNamedTupleMember"); } else if (u) { let m = this.startNodeAt(s); m.typeAnnotation = l, l = this.finishNode(m, "TSOptionalType"); } if (i) { let m = this.startNodeAt(r); m.typeAnnotation = l, l = this.finishNode(m, "TSRestType"); } return l; } tsParseParenthesizedType() { let r = this.startNode(); return this.expect(10), r.typeAnnotation = this.tsParseType(), this.expect(11), this.finishNode(r, "TSParenthesizedType"); } tsParseFunctionOrConstructorType(r, i) { let s = this.startNode(); return r === "TSConstructorType" && (s.abstract = !!i, i && this.next(), this.next()), this.tsInAllowConditionalTypesContext(() => this. tsFillSignature(19, s)), this.finishNode(s, r); } tsParseLiteralTypeNode() { let r = this.startNode(); switch (this.state.type) { case 135: case 136: case 134: case 85: case 86: r.literal = super.parseExprAtom(); break; default: this.unexpected(); } return this.finishNode(r, "TSLiteralType"); } tsParseTemplateLiteralType() { { let r = this.startNode(); return r.literal = super.parseTemplate(!1), this.finishNode(r, "TSLiteralType"); } } parseTemplateSubstitution() { return this.state.inType ? this.tsParseType() : super.parseTemplateSubstitution(); } tsParseThisTypeOrThisTypePredicate() { let r = this.tsParseThisTypeNode(); return this.isContextual(116) && !this.hasPrecedingLineBreak() ? this.tsParseThisTypePredicate(r) : r; } tsParseNonArrayType() { switch (this.state.type) { case 134: case 135: case 136: case 85: case 86: return this.tsParseLiteralTypeNode(); case 53: if (this.state.value === "-") { let r = this.startNode(), i = this.lookahead(); return i.type !== 135 && i.type !== 136 && this.unexpected(), r.literal = this.parseMaybeUnary(), this.finishNode(r, "TSLiteralT\ ype"); } break; case 78: return this.tsParseThisTypeOrThisTypePredicate(); case 87: return this.tsParseTypeQuery(); case 83: return this.tsParseImportType(); case 5: return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this)) ? this.tsParseMappedType() : this.tsParseTypeLiteral(); case 0: return this.tsParseTupleType(); case 10: return this.tsParseParenthesizedType(); case 25: case 24: return this.tsParseTemplateLiteralType(); default: { let { type: r } = this.state; if (pt(r) || r === 88 || r === 84) { let i = r === 88 ? "TSVoidKeyword" : r === 84 ? "TSNullKeyword" : VPe(this.state.value); if (i !== void 0 && this.lookaheadCharCode() !== 46) { let s = this.startNode(); return this.next(), this.finishNode(s, i); } return this.tsParseTypeReference(); } } } throw this.unexpected(); } tsParseArrayTypeOrHigher() { let { startLoc: r } = this.state, i = this.tsParseNonArrayType(); for (; !this.hasPrecedingLineBreak() && this.eat(0); ) if (this.match(3)) { let s = this.startNodeAt(r); s.elementType = i, this.expect(3), i = this.finishNode(s, "TSArrayType"); } else { let s = this.startNodeAt(r); s.objectType = i, s.indexType = this.tsParseType(), this.expect(3), i = this.finishNode(s, "TSIndexedAccessType"); } return i; } tsParseTypeOperator() { let r = this.startNode(), i = this.state.value; return this.next(), r.operator = i, r.typeAnnotation = this.tsParseTypeOperatorOrHigher(), i === "readonly" && this.tsCheckTypeAnnotationForReadOnly( r), this.finishNode(r, "TSTypeOperator"); } tsCheckTypeAnnotationForReadOnly(r) { switch (r.typeAnnotation.type) { case "TSTupleType": case "TSArrayType": return; default: this.raise(me.UnexpectedReadonly, r); } } tsParseInferType() { let r = this.startNode(); this.expectContextual(115); let i = this.startNode(); return i.name = this.tsParseTypeParameterName(), i.constraint = this.tsTryParse(() => this.tsParseConstraintForInferType()), r.typeParameter = this.finishNode(i, "TSTypeParameter"), this.finishNode(r, "TSInferType"); } tsParseConstraintForInferType() { if (this.eat(81)) { let r = this.tsInDisallowConditionalTypesContext(() => this.tsParseType()); if (this.state.inDisallowConditionalTypesContext || !this.match(17)) return r; } } tsParseTypeOperatorOrHigher() { return fPe(this.state.type) && !this.state.containsEsc ? this.tsParseTypeOperator() : this.isContextual(115) ? this.tsParseInferType() : this.tsInAllowConditionalTypesContext(() => this.tsParseArrayTypeOrHigher()); } tsParseUnionOrIntersectionType(r, i, s) { let a = this.startNode(), o = this.eat(s), u = []; do u.push(i()); while (this.eat(s)); return u.length === 1 && !o ? u[0] : (a.types = u, this.finishNode(a, r)); } tsParseIntersectionTypeOrHigher() { return this.tsParseUnionOrIntersectionType("TSIntersectionType", this.tsParseTypeOperatorOrHigher.bind(this), 45); } tsParseUnionTypeOrHigher() { return this.tsParseUnionOrIntersectionType("TSUnionType", this.tsParseIntersectionTypeOrHigher.bind(this), 43); } tsIsStartOfFunctionType() { return this.match(47) ? !0 : this.match(10) && this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this)); } tsSkipParameterStart() { if (pt(this.state.type) || this.match(78)) return this.next(), !0; if (this.match(5)) { let { errors: r } = this.state, i = r.length; try { return this.parseObjectLike(8, !0), r.length === i; } catch { return !1; } } if (this.match(0)) { this.next(); let { errors: r } = this.state, i = r.length; try { return super.parseBindingList(3, 93, 1), r.length === i; } catch { return !1; } } return !1; } tsIsUnambiguouslyStartOfFunctionType() { return this.next(), !!(this.match(11) || this.match(21) || this.tsSkipParameterStart() && (this.match(14) || this.match(12) || this.match( 17) || this.match(29) || this.match(11) && (this.next(), this.match(19)))); } tsParseTypeOrTypePredicateAnnotation(r) { return this.tsInType(() => { let i = this.startNode(); this.expect(r); let s = this.startNode(), a = !!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this)); if (a && this.match(78)) { let l = this.tsParseThisTypeOrThisTypePredicate(); return l.type === "TSThisType" ? (s.parameterName = l, s.asserts = !0, s.typeAnnotation = null, l = this.finishNode(s, "TSTypePred\ icate")) : (this.resetStartLocationFromNode(l, s), l.asserts = !0), i.typeAnnotation = l, this.finishNode(i, "TSTypeAnnotation"); } let o = this.tsIsIdentifier() && this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this)); if (!o) return a ? (s.parameterName = this.parseIdentifier(), s.asserts = a, s.typeAnnotation = null, i.typeAnnotation = this.finishNode(s, "TSTypePredicate"), this.finishNode(i, "TSTypeAnnotation")) : this.tsParseTypeAnnotation(!1, i); let u = this.tsParseTypeAnnotation(!1); return s.parameterName = o, s.typeAnnotation = u, s.asserts = a, i.typeAnnotation = this.finishNode(s, "TSTypePredicate"), this.finishNode( i, "TSTypeAnnotation"); }); } tsTryParseTypeOrTypePredicateAnnotation() { if (this.match(14)) return this.tsParseTypeOrTypePredicateAnnotation(14); } tsTryParseTypeAnnotation() { if (this.match(14)) return this.tsParseTypeAnnotation(); } tsTryParseType() { return this.tsEatThenParseType(14); } tsParseTypePredicatePrefix() { let r = this.parseIdentifier(); if (this.isContextual(116) && !this.hasPrecedingLineBreak()) return this.next(), r; } tsParseTypePredicateAsserts() { if (this.state.type !== 109) return !1; let r = this.state.containsEsc; return this.next(), !pt(this.state.type) && !this.match(78) ? !1 : (r && this.raise(R.InvalidEscapedReservedWord, this.state.lastTokStartLoc, { reservedWord: "asserts" }), !0); } tsParseTypeAnnotation(r = !0, i = this.startNode()) { return this.tsInType(() => { r && this.expect(14), i.typeAnnotation = this.tsParseType(); }), this.finishNode(i, "TSTypeAnnotation"); } tsParseType() { tL(this.state.inType); let r = this.tsParseNonConditionalType(); if (this.state.inDisallowConditionalTypesContext || this.hasPrecedingLineBreak() || !this.eat(81)) return r; let i = this.startNodeAtNode(r); return i.checkType = r, i.extendsType = this.tsInDisallowConditionalTypesContext(() => this.tsParseNonConditionalType()), this.expect( 17), i.trueType = this.tsInAllowConditionalTypesContext(() => this.tsParseType()), this.expect(14), i.falseType = this.tsInAllowConditionalTypesContext( () => this.tsParseType()), this.finishNode(i, "TSConditionalType"); } isAbstractConstructorSignature() { return this.isContextual(124) && this.isLookaheadContextual("new"); } tsParseNonConditionalType() { return this.tsIsStartOfFunctionType() ? this.tsParseFunctionOrConstructorType("TSFunctionType") : this.match(77) ? this.tsParseFunctionOrConstructorType( "TSConstructorType") : this.isAbstractConstructorSignature() ? this.tsParseFunctionOrConstructorType("TSConstructorType", !0) : this.tsParseUnionTypeOrHigher(); } tsParseTypeAssertion() { this.getPluginOption("typescript", "disallowAmbiguousJSXLike") && this.raise(me.ReservedTypeAssertion, this.state.startLoc); let r = this.startNode(); return r.typeAnnotation = this.tsInType(() => (this.next(), this.match(75) ? this.tsParseTypeReference() : this.tsParseType())), this. expect(48), r.expression = this.parseMaybeUnary(), this.finishNode(r, "TSTypeAssertion"); } tsParseHeritageClause(r) { let i = this.state.startLoc, s = this.tsParseDelimitedList("HeritageClauseElement", () => { { let a = this.startNode(); return a.expression = this.tsParseEntityName(3), this.match(47) && (a.typeParameters = this.tsParseTypeArguments()), this.finishNode( a, "TSExpressionWithTypeArguments"); } }); return s.length || this.raise(me.EmptyHeritageClauseType, i, { token: r }), s; } tsParseInterfaceDeclaration(r, i = {}) { if (this.hasFollowingLineBreak()) return null; this.expectContextual(129), i.declare && (r.declare = !0), pt(this.state.type) ? (r.id = this.parseIdentifier(), this.checkIdentifier( r.id, 130)) : (r.id = null, this.raise(me.MissingInterfaceName, this.state.startLoc)), r.typeParameters = this.tsTryParseTypeParameters( this.tsParseInOutConstModifiers), this.eat(81) && (r.extends = this.tsParseHeritageClause("extends")); let s = this.startNode(); return s.body = this.tsInType(this.tsParseObjectTypeMembers.bind(this)), r.body = this.finishNode(s, "TSInterfaceBody"), this.finishNode( r, "TSInterfaceDeclaration"); } tsParseTypeAliasDeclaration(r) { return r.id = this.parseIdentifier(), this.checkIdentifier(r.id, 2), r.typeAnnotation = this.tsInType(() => { if (r.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers), this.expect(29), this.isContextual(114) && this.lookaheadCharCode() !== 46) { let i = this.startNode(); return this.next(), this.finishNode(i, "TSIntrinsicKeyword"); } return this.tsParseType(); }), this.semicolon(), this.finishNode(r, "TSTypeAliasDeclaration"); } tsInTopLevelContext(r) { if (this.curContext() !== at.brace) { let i = this.state.context; this.state.context = [i[0]]; try { return r(); } finally { this.state.context = i; } } else return r(); } tsInType(r) { let i = this.state.inType; this.state.inType = !0; try { return r(); } finally { this.state.inType = i; } } tsInDisallowConditionalTypesContext(r) { let i = this.state.inDisallowConditionalTypesContext; this.state.inDisallowConditionalTypesContext = !0; try { return r(); } finally { this.state.inDisallowConditionalTypesContext = i; } } tsInAllowConditionalTypesContext(r) { let i = this.state.inDisallowConditionalTypesContext; this.state.inDisallowConditionalTypesContext = !1; try { return r(); } finally { this.state.inDisallowConditionalTypesContext = i; } } tsEatThenParseType(r) { if (this.match(r)) return this.tsNextThenParseType(); } tsExpectThenParseType(r) { return this.tsInType(() => (this.expect(r), this.tsParseType())); } tsNextThenParseType() { return this.tsInType(() => (this.next(), this.tsParseType())); } tsParseEnumMember() { let r = this.startNode(); return r.id = this.match(134) ? super.parseStringLiteral(this.state.value) : this.parseIdentifier(!0), this.eat(29) && (r.initializer = super.parseMaybeAssignAllowIn()), this.finishNode(r, "TSEnumMember"); } tsParseEnumDeclaration(r, i = {}) { return i.const && (r.const = !0), i.declare && (r.declare = !0), this.expectContextual(126), r.id = this.parseIdentifier(), this.checkIdentifier( r.id, r.const ? 8971 : 8459), this.expect(5), r.members = this.tsParseDelimitedList("EnumMembers", this.tsParseEnumMember.bind(this)), this.expect(8), this.finishNode(r, "TSEnumDeclaration"); } tsParseEnumBody() { let r = this.startNode(); return this.expect(5), r.members = this.tsParseDelimitedList("EnumMembers", this.tsParseEnumMember.bind(this)), this.expect(8), this.finishNode( r, "TSEnumBody"); } tsParseModuleBlock() { let r = this.startNode(); return this.scope.enter(0), this.expect(5), super.parseBlockOrModuleBlockBody(r.body = [], void 0, !0, 8), this.scope.exit(), this.finishNode( r, "TSModuleBlock"); } tsParseModuleOrNamespaceDeclaration(r, i = !1) { if (r.id = this.parseIdentifier(), i || this.checkIdentifier(r.id, 1024), this.eat(16)) { let s = this.startNode(); this.tsParseModuleOrNamespaceDeclaration(s, !0), r.body = s; } else this.scope.enter(1024), this.prodParam.enter(0), r.body = this.tsParseModuleBlock(), this.prodParam.exit(), this.scope.exit(); return this.finishNode(r, "TSModuleDeclaration"); } tsParseAmbientExternalModuleDeclaration(r) { return this.isContextual(112) ? (r.kind = "global", r.global = !0, r.id = this.parseIdentifier()) : this.match(134) ? (r.kind = "modul\ e", r.id = super.parseStringLiteral(this.state.value)) : this.unexpected(), this.match(5) ? (this.scope.enter(1024), this.prodParam.enter(0), r.body = this.tsParseModuleBlock(), this.prodParam.exit(), this.scope.exit()) : this.semicolon(), this.finishNode(r, "TSModuleDeclarat\ ion"); } tsParseImportEqualsDeclaration(r, i, s) { r.isExport = s || !1, r.id = i || this.parseIdentifier(), this.checkIdentifier(r.id, 4096), this.expect(29); let a = this.tsParseModuleReference(); return r.importKind === "type" && a.type !== "TSExternalModuleReference" && this.raise(me.ImportAliasHasImportType, a), r.moduleReference = a, this.semicolon(), this.finishNode(r, "TSImportEqualsDeclaration"); } tsIsExternalModuleReference() { return this.isContextual(119) && this.lookaheadCharCode() === 40; } tsParseModuleReference() { return this.tsIsExternalModuleReference() ? this.tsParseExternalModuleReference() : this.tsParseEntityName(0); } tsParseExternalModuleReference() { let r = this.startNode(); return this.expectContextual(119), this.expect(10), this.match(134) || this.unexpected(), r.expression = super.parseExprAtom(), this.expect( 11), this.sawUnambiguousESM = !0, this.finishNode(r, "TSExternalModuleReference"); } tsLookAhead(r) { let i = this.state.clone(), s = r(); return this.state = i, s; } tsTryParseAndCatch(r) { let i = this.tryParse((s) => r() || s()); if (!(i.aborted || !i.node)) return i.error && (this.state = i.failState), i.node; } tsTryParse(r) { let i = this.state.clone(), s = r(); if (s !== void 0 && s !== !1) return s; this.state = i; } tsTryParseDeclare(r) { if (this.isLineTerminator()) return; let i = this.state.type; return this.tsInAmbientContext(() => { switch (i) { case 68: return r.declare = !0, super.parseFunctionStatement(r, !1, !1); case 80: return r.declare = !0, this.parseClass(r, !0, !1); case 126: return this.tsParseEnumDeclaration(r, { declare: !0 }); case 112: return this.tsParseAmbientExternalModuleDeclaration(r); case 100: if (this.state.containsEsc) return; case 75: case 74: return !this.match(75) || !this.isLookaheadContextual("enum") ? (r.declare = !0, this.parseVarStatement(r, this.state.value, !0)) : (this.expect(75), this.tsParseEnumDeclaration(r, { const: !0, declare: !0 })); case 107: if (this.isUsing()) return this.raise(me.InvalidModifierOnUsingDeclaration, this.state.startLoc, "declare"), r.declare = !0, this.parseVarStatement( r, "using", !0); break; case 96: if (this.isAwaitUsing()) return this.raise(me.InvalidModifierOnAwaitUsingDeclaration, this.state.startLoc, "declare"), r.declare = !0, this.next(), this. parseVarStatement(r, "await using", !0); break; case 129: { let s = this.tsParseInterfaceDeclaration(r, { declare: !0 }); if (s) return s; } default: if (pt(i)) return this.tsParseDeclaration(r, this.state.type, !0, null); } }); } tsTryParseExportDeclaration() { return this.tsParseDeclaration(this.startNode(), this.state.type, !0, null); } tsParseDeclaration(r, i, s, a) { switch (i) { case 124: if (this.tsCheckLineTerminator(s) && (this.match(80) || pt(this.state.type))) return this.tsParseAbstractDeclaration(r, a); break; case 127: if (this.tsCheckLineTerminator(s)) { if (this.match(134)) return this.tsParseAmbientExternalModuleDeclaration(r); if (pt(this.state.type)) return r.kind = "module", this.tsParseModuleOrNamespaceDeclaration(r); } break; case 128: if (this.tsCheckLineTerminator(s) && pt(this.state.type)) return r.kind = "namespace", this.tsParseModuleOrNamespaceDeclaration(r); break; case 130: if (this.tsCheckLineTerminator(s) && pt(this.state.type)) return this.tsParseTypeAliasDeclaration(r); break; } } tsCheckLineTerminator(r) { return r ? this.hasFollowingLineBreak() ? !1 : (this.next(), !0) : !this.isLineTerminator(); } tsTryParseGenericAsyncArrowFunction(r) { if (!this.match(47)) return; let i = this.state.maybeInArrowParameters; this.state.maybeInArrowParameters = !0; let s = this.tsTryParseAndCatch(() => { let a = this.startNodeAt(r); return a.typeParameters = this.tsParseTypeParameters(this.tsParseConstModifier), super.parseFunctionParams(a), a.returnType = this.tsTryParseTypeOrTypePredicateAnnotation(), this.expect(19), a; }); if (this.state.maybeInArrowParameters = i, !!s) return super.parseArrowExpression(s, null, !0); } tsParseTypeArgumentsInExpression() { if (this.reScan_lt() === 47) return this.tsParseTypeArguments(); } tsParseTypeArguments() { let r = this.startNode(); return r.params = this.tsInType(() => this.tsInTopLevelContext(() => (this.expect(47), this.tsParseDelimitedList("TypeParametersOrArgu\ ments", this.tsParseType.bind(this))))), r.params.length === 0 ? this.raise(me.EmptyTypeArguments, r) : !this.state.inType && this.curContext() === at.brace && this.reScan_lt_gt(), this.expect(48), this.finishNode(r, "TSTypeParameterInstantiation"); } tsIsDeclarationStart() { return dPe(this.state.type); } isExportDefaultSpecifier() { return this.tsIsDeclarationStart() ? !1 : super.isExportDefaultSpecifier(); } parseBindingElement(r, i) { let s = i.length ? i[0].loc.start : this.state.startLoc, a = {}; this.tsParseModifiers({ allowedModifiers: ["public", "private", "protected", "override", "readonly"] }, a); let o = a.accessibility, u = a.override, l = a.readonly; !(r & 4) && (o || l || u) && this.raise(me.UnexpectedParameterModifier, s); let c = this.parseMaybeDefault(); r & 2 && this.parseFunctionParamType(c); let f = this.parseMaybeDefault(c.loc.start, c); if (o || l || u) { let m = this.startNodeAt(s); return i.length && (m.decorators = i), o && (m.accessibility = o), l && (m.readonly = l), u && (m.override = u), f.type !== "Identif\ ier" && f.type !== "AssignmentPattern" && this.raise(me.UnsupportedParameterPropertyKind, m), m.parameter = f, this.finishNode(m, "TSParamet\ erProperty"); } return i.length && (c.decorators = i), f; } isSimpleParameter(r) { return r.type === "TSParameterProperty" && super.isSimpleParameter(r.parameter) || super.isSimpleParameter(r); } tsDisallowOptionalPattern(r) { for (let i of r.params) i.type !== "Identifier" && i.optional && !this.state.isAmbientContext && this.raise(me.PatternIsOptional, i); } setArrowFunctionParameters(r, i, s) { super.setArrowFunctionParameters(r, i, s), this.tsDisallowOptionalPattern(r); } parseFunctionBodyAndFinish(r, i, s = !1) { this.match(14) && (r.returnType = this.tsParseTypeOrTypePredicateAnnotation(14)); let a = i === "FunctionDeclaration" ? "TSDeclareFunction" : i === "ClassMethod" || i === "ClassPrivateMethod" ? "TSDeclareMethod" : void 0; return a && !this.match(5) && this.isLineTerminator() ? this.finishNode(r, a) : a === "TSDeclareFunction" && this.state.isAmbientContext && (this.raise(me.DeclareFunctionHasImplementation, r), r.declare) ? super.parseFunctionBodyAndFinish(r, a, s) : (this.tsDisallowOptionalPattern( r), super.parseFunctionBodyAndFinish(r, i, s)); } registerFunctionStatementId(r) { !r.body && r.id ? this.checkIdentifier(r.id, 1024) : super.registerFunctionStatementId(r); } tsCheckForInvalidTypeCasts(r) { r.forEach((i) => { i?.type === "TSTypeCastExpression" && this.raise(me.UnexpectedTypeAnnotation, i.typeAnnotation); }); } toReferencedList(r, i) { return this.tsCheckForInvalidTypeCasts(r), r; } parseArrayLike(r, i, s) { let a = super.parseArrayLike(r, i, s); return a.type === "ArrayExpression" && this.tsCheckForInvalidTypeCasts(a.elements), a; } parseSubscript(r, i, s, a) { if (!this.hasPrecedingLineBreak() && this.match(35)) { this.state.canStartJSXElement = !1, this.next(); let u = this.startNodeAt(i); return u.expression = r, this.finishNode(u, "TSNonNullExpression"); } let o = !1; if (this.match(18) && this.lookaheadCharCode() === 60) { if (s) return a.stop = !0, r; a.optionalChainMember = o = !0, this.next(); } if (this.match(47) || this.match(51)) { let u, l = this.tsTryParseAndCatch(() => { if (!s && this.atPossibleAsyncArrow(r)) { let h = this.tsTryParseGenericAsyncArrowFunction(i); if (h) return a.stop = !0, h; } let c = this.tsParseTypeArgumentsInExpression(); if (!c) return; if (o && !this.match(10)) { u = this.state.curPosition(); return; } if (Qm(this.state.type)) { let h = super.parseTaggedTemplateExpression(r, i, a); return h.typeParameters = c, h; } if (!s && this.eat(10)) { let h = this.startNodeAt(i); return h.callee = r, h.arguments = this.parseCallExpressionArguments(), this.tsCheckForInvalidTypeCasts(h.arguments), h.typeParameters = c, a.optionalChainMember && (h.optional = o), this.finishCallExpression(h, a.optionalChainMember); } let f = this.state.type; if (f === 48 || f === 52 || f !== 10 && Md(f) && !this.hasPrecedingLineBreak()) return; let m = this.startNodeAt(i); return m.expression = r, m.typeParameters = c, this.finishNode(m, "TSInstantiationExpression"); }); if (u && this.unexpected(u, 10), l) return l.type === "TSInstantiationExpression" && ((this.match(16) || this.match(18) && this.lookaheadCharCode() !== 40) && this.raise( me.InvalidPropertyAccessAfterInstantiationExpression, this.state.startLoc), !this.match(16) && !this.match(18) && (l.expression = super. stopParseSubscript(r, a))), l; } return super.parseSubscript(r, i, s, a); } parseNewCallee(r) { var i; super.parseNewCallee(r); let { callee: s } = r; s.type === "TSInstantiationExpression" && !((i = s.extra) != null && i.parenthesized) && (r.typeParameters = s.typeParameters, r.callee = s.expression); } parseExprOp(r, i, s) { let a; if (Ym(58) > s && !this.hasPrecedingLineBreak() && (this.isContextual(93) || (a = this.isContextual(120)))) { let o = this.startNodeAt(i); return o.expression = r, o.typeAnnotation = this.tsInType(() => (this.next(), this.match(75) ? (a && this.raise(R.UnexpectedKeyword, this.state.startLoc, { keyword: "const" }), this.tsParseTypeReference()) : this.tsParseType())), this.finishNode(o, a ? "TSSatisfiesExpression" : "TSAsExpression"), this.reScan_lt_gt(), this.parseExprOp(o, i, s); } return super.parseExprOp(r, i, s); } checkReservedWord(r, i, s, a) { this.state.isAmbientContext || super.checkReservedWord(r, i, s, a); } checkImportReflection(r) { super.checkImportReflection(r), r.module && r.importKind !== "value" && this.raise(me.ImportReflectionHasImportType, r.specifiers[0].loc. start); } checkDuplicateExports() { } isPotentialImportPhase(r) { if (super.isPotentialImportPhase(r)) return !0; if (this.isContextual(130)) { let i = this.lookaheadCharCode(); return r ? i === 123 || i === 42 : i !== 61; } return !r && this.isContextual(87); } applyImportPhase(r, i, s, a) { super.applyImportPhase(r, i, s, a), i ? r.exportKind = s === "type" ? "type" : "value" : r.importKind = s === "type" || s === "typeof" ? s : "value"; } parseImport(r) { if (this.match(134)) return r.importKind = "value", super.parseImport(r); let i; if (pt(this.state.type) && this.lookaheadCharCode() === 61) return r.importKind = "value", this.tsParseImportEqualsDeclaration(r); if (this.isContextual(130)) { let s = this.parseMaybeImportPhase(r, !1); if (this.lookaheadCharCode() === 61) return this.tsParseImportEqualsDeclaration(r, s); i = super.parseImportSpecifiersAndAfter(r, s); } else i = super.parseImport(r); return i.importKind === "type" && i.specifiers.length > 1 && i.specifiers[0].type === "ImportDefaultSpecifier" && this.raise(me.TypeImportCannotSpecifyDefaultAndNamed, i), i; } parseExport(r, i) { if (this.match(83)) { let s = r; this.next(); let a = null; return this.isContextual(130) && this.isPotentialImportPhase(!1) ? a = this.parseMaybeImportPhase(s, !1) : s.importKind = "value", this. tsParseImportEqualsDeclaration(s, a, !0); } else if (this.eat(29)) { let s = r; return s.expression = super.parseExpression(), this.semicolon(), this.sawUnambiguousESM = !0, this.finishNode(s, "TSExportAssignment"); } else if (this.eatContextual(93)) { let s = r; return this.expectContextual(128), s.id = this.parseIdentifier(), this.semicolon(), this.finishNode(s, "TSNamespaceExportDeclaration"); } else return super.parseExport(r, i); } isAbstractClass() { return this.isContextual(124) && this.isLookaheadContextual("class"); } parseExportDefaultExpression() { if (this.isAbstractClass()) { let r = this.startNode(); return this.next(), r.abstract = !0, this.parseClass(r, !0, !0); } if (this.match(129)) { let r = this.tsParseInterfaceDeclaration(this.startNode()); if (r) return r; } return super.parseExportDefaultExpression(); } parseVarStatement(r, i, s = !1) { let { isAmbientContext: a } = this.state, o = super.parseVarStatement(r, i, s || a); if (!a) return o; if (!r.declare && (i === "using" || i === "await using")) return this.raiseOverwrite(me.UsingDeclarationInAmbientContext, r, i), o; for (let { id: u, init: l } of o.declarations) l && (i === "var" || i === "let" || u.typeAnnotation ? this.raise(me.InitializerNotAllowedInAmbientContext, l) : zPe(l, this.hasPlugin( "estree")) || this.raise(me.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference, l)); return o; } parseStatementContent(r, i) { if (!this.state.containsEsc) switch (this.state.type) { case 75: { if (this.isLookaheadContextual("enum")) { let s = this.startNode(); return this.expect(75), this.tsParseEnumDeclaration(s, { const: !0 }); } break; } case 124: case 125: { if (this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()) { let s = this.state.type, a = this.startNode(); this.next(); let o = s === 125 ? this.tsTryParseDeclare(a) : this.tsParseAbstractDeclaration(a, i); return o ? (s === 125 && (o.declare = !0), o) : (a.expression = this.createIdentifier(this.startNodeAt(a.loc.start), s === 125 ? "declare" : "abstract"), this.semicolon(!1), this.finishNode(a, "ExpressionStatement")); } break; } case 126: return this.tsParseEnumDeclaration(this.startNode()); case 112: { if (this.lookaheadCharCode() === 123) { let a = this.startNode(); return this.tsParseAmbientExternalModuleDeclaration(a); } break; } case 129: { let s = this.tsParseInterfaceDeclaration(this.startNode()); if (s) return s; break; } case 127: { if (this.nextTokenIsIdentifierOrStringLiteralOnSameLine()) { let s = this.startNode(); return this.next(), this.tsParseDeclaration(s, 127, !1, i); } break; } case 128: { if (this.nextTokenIsIdentifierOnSameLine()) { let s = this.startNode(); return this.next(), this.tsParseDeclaration(s, 128, !1, i); } break; } case 130: { if (this.nextTokenIsIdentifierOnSameLine()) { let s = this.startNode(); return this.next(), this.tsParseTypeAliasDeclaration(s); } break; } } return super.parseStatementContent(r, i); } parseAccessModifier() { return this.tsParseModifier(["public", "protected", "private"]); } tsHasSomeModifiers(r, i) { return i.some((s) => rL(s) ? r.accessibility === s : !!r[s]); } tsIsStartOfStaticBlocks() { return this.isContextual(106) && this.lookaheadCharCode() === 123; } parseClassMember(r, i, s) { let a = ["declare", "private", "public", "protected", "override", "abstract", "readonly", "static"]; this.tsParseModifiers({ allowedModifiers: a, disallowedModifiers: ["in", "out"], stopOnStartOfClassStaticBlock: !0, errorTemplate: me.InvalidModifierOnTypeParameterPositions }, i); let o = /* @__PURE__ */ n(() => { this.tsIsStartOfStaticBlocks() ? (this.next(), this.next(), this.tsHasSomeModifiers(i, a) && this.raise(me.StaticBlockCannotHaveModifier, this.state.curPosition()), super.parseClassStaticBlock(r, i)) : this.parseClassMemberWithIsStatic(r, i, s, !!i.static); }, "callParseClassMemberWithIsStatic"); i.declare ? this.tsInAmbientContext(o) : o(); } parseClassMemberWithIsStatic(r, i, s, a) { let o = this.tsTryParseIndexSignature(i); if (o) { r.body.push(o), i.abstract && this.raise(me.IndexSignatureHasAbstract, i), i.accessibility && this.raise(me.IndexSignatureHasAccessibility, i, { modifier: i.accessibility }), i.declare && this.raise(me.IndexSignatureHasDeclare, i), i.override && this.raise(me.IndexSignatureHasOverride, i); return; } !this.state.inAbstractClass && i.abstract && this.raise(me.NonAbstractClassHasAbstractMethod, i), i.override && (s.hadSuperClass || this. raise(me.OverrideNotInSubClass, i)), super.parseClassMemberWithIsStatic(r, i, s, a); } parsePostMemberNameModifiers(r) { this.eat(17) && (r.optional = !0), r.readonly && this.match(10) && this.raise(me.ClassMethodHasReadonly, r), r.declare && this.match(10) && this.raise(me.ClassMethodHasDeclare, r); } shouldParseExportDeclaration() { return this.tsIsDeclarationStart() ? !0 : super.shouldParseExportDeclaration(); } parseConditional(r, i, s) { if (!this.match(17)) return r; if (this.state.maybeInArrowParameters) { let a = this.lookaheadCharCode(); if (a === 44 || a === 61 || a === 58 || a === 41) return this.setOptionalParametersError(s), r; } return super.parseConditional(r, i, s); } parseParenItem(r, i) { let s = super.parseParenItem(r, i); if (this.eat(17) && (s.optional = !0, this.resetEndLocation(r)), this.match(14)) { let a = this.startNodeAt(i); return a.expression = r, a.typeAnnotation = this.tsParseTypeAnnotation(), this.finishNode(a, "TSTypeCastExpression"); } return r; } parseExportDeclaration(r) { if (!this.state.isAmbientContext && this.isContextual(125)) return this.tsInAmbientContext(() => this.parseExportDeclaration(r)); let i = this.state.startLoc, s = this.eatContextual(125); if (s && (this.isContextual(125) || !this.shouldParseExportDeclaration())) throw this.raise(me.ExpectedAmbientAfterExportDeclare, this.state.startLoc); let o = pt(this.state.type) && this.tsTryParseExportDeclaration() || super.parseExportDeclaration(r); return o ? ((o.type === "TSInterfaceDeclaration" || o.type === "TSTypeAliasDeclaration" || s) && (r.exportKind = "type"), s && o.type !== "TSImportEqualsDeclaration" && (this.resetStartLocation(o, i), o.declare = !0), o) : null; } parseClassId(r, i, s, a) { if ((!i || s) && this.isContextual(113)) return; super.parseClassId(r, i, s, r.declare ? 1024 : 8331); let o = this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers); o && (r.typeParameters = o); } parseClassPropertyAnnotation(r) { r.optional || (this.eat(35) ? r.definite = !0 : this.eat(17) && (r.optional = !0)); let i = this.tsTryParseTypeAnnotation(); i && (r.typeAnnotation = i); } parseClassProperty(r) { if (this.parseClassPropertyAnnotation(r), this.state.isAmbientContext && !(r.readonly && !r.typeAnnotation) && this.match(29) && this. raise(me.DeclareClassFieldHasInitializer, this.state.startLoc), r.abstract && this.match(29)) { let { key: i } = r; this.raise(me.AbstractPropertyHasInitializer, this.state.startLoc, { propertyName: i.type === "Identifier" && !r.computed ? i.name : `[${this.input.slice(this.offsetToSourcePos(i.start), this.offsetToSourcePos( i.end))}]` }); } return super.parseClassProperty(r); } parseClassPrivateProperty(r) { return r.abstract && this.raise(me.PrivateElementHasAbstract, r), r.accessibility && this.raise(me.PrivateElementHasAccessibility, r, { modifier: r.accessibility }), this.parseClassPropertyAnnotation(r), super.parseClassPrivateProperty(r); } parseClassAccessorProperty(r) { return this.parseClassPropertyAnnotation(r), r.optional && this.raise(me.AccessorCannotBeOptional, r), super.parseClassAccessorProperty( r); } pushClassMethod(r, i, s, a, o, u) { let l = this.tsTryParseTypeParameters(this.tsParseConstModifier); l && o && this.raise(me.ConstructorHasTypeParameters, l); let { declare: c = !1, kind: f } = i; c && (f === "get" || f === "set") && this.raise(me.DeclareAccessor, i, { kind: f }), l && (i.typeParameters = l), super.pushClassMethod(r, i, s, a, o, u); } pushClassPrivateMethod(r, i, s, a) { let o = this.tsTryParseTypeParameters(this.tsParseConstModifier); o && (i.typeParameters = o), super.pushClassPrivateMethod(r, i, s, a); } declareClassPrivateMethodInScope(r, i) { r.type !== "TSDeclareMethod" && (r.type === "MethodDefinition" && r.value.body == null || super.declareClassPrivateMethodInScope(r, i)); } parseClassSuper(r) { super.parseClassSuper(r), r.superClass && (this.match(47) || this.match(51)) && (r.superTypeParameters = this.tsParseTypeArgumentsInExpression()), this.eatContextual(113) && (r.implements = this.tsParseHeritageClause("implements")); } parseObjPropValue(r, i, s, a, o, u, l) { let c = this.tsTryParseTypeParameters(this.tsParseConstModifier); return c && (r.typeParameters = c), super.parseObjPropValue(r, i, s, a, o, u, l); } parseFunctionParams(r, i) { let s = this.tsTryParseTypeParameters(this.tsParseConstModifier); s && (r.typeParameters = s), super.parseFunctionParams(r, i); } parseVarId(r, i) { super.parseVarId(r, i), r.id.type === "Identifier" && !this.hasPrecedingLineBreak() && this.eat(35) && (r.definite = !0); let s = this.tsTryParseTypeAnnotation(); s && (r.id.typeAnnotation = s, this.resetEndLocation(r.id)); } parseAsyncArrowFromCallExpression(r, i) { return this.match(14) && (r.returnType = this.tsParseTypeAnnotation()), super.parseAsyncArrowFromCallExpression(r, i); } parseMaybeAssign(r, i) { var s, a, o, u, l; let c, f, m; if (this.hasPlugin("jsx") && (this.match(143) || this.match(47))) { if (c = this.state.clone(), f = this.tryParse(() => super.parseMaybeAssign(r, i), c), !f.error) return f.node; let { context: y } = this.state, p = y[y.length - 1]; (p === at.j_oTag || p === at.j_expr) && y.pop(); } if (!((s = f) != null && s.error) && !this.match(47)) return super.parseMaybeAssign(r, i); (!c || c === this.state) && (c = this.state.clone()); let h, d = this.tryParse((y) => { var p, g; h = this.tsParseTypeParameters(this.tsParseConstModifier); let b = super.parseMaybeAssign(r, i); return (b.type !== "ArrowFunctionExpression" || (p = b.extra) != null && p.parenthesized) && y(), ((g = h) == null ? void 0 : g.params. length) !== 0 && this.resetStartLocationFromNode(b, h), b.typeParameters = h, b; }, c); if (!d.error && !d.aborted) return h && this.reportReservedArrowTypeParam(h), d.node; if (!f && (tL(!this.hasPlugin("jsx")), m = this.tryParse(() => super.parseMaybeAssign(r, i), c), !m.error)) return m.node; if ((a = f) != null && a.node) return this.state = f.failState, f.node; if (d.node) return this.state = d.failState, h && this.reportReservedArrowTypeParam(h), d.node; if ((o = m) != null && o.node) return this.state = m.failState, m.node; throw ((u = f) == null ? void 0 : u.error) || d.error || ((l = m) == null ? void 0 : l.error); } reportReservedArrowTypeParam(r) { var i; r.params.length === 1 && !r.params[0].constraint && !((i = r.extra) != null && i.trailingComma) && this.getPluginOption("typescript", "\ disallowAmbiguousJSXLike") && this.raise(me.ReservedArrowTypeParam, r); } parseMaybeUnary(r, i) { return !this.hasPlugin("jsx") && this.match(47) ? this.tsParseTypeAssertion() : super.parseMaybeUnary(r, i); } parseArrow(r) { if (this.match(14)) { let i = this.tryParse((s) => { let a = this.tsParseTypeOrTypePredicateAnnotation(14); return (this.canInsertSemicolon() || !this.match(19)) && s(), a; }); if (i.aborted) return; i.thrown || (i.error && (this.state = i.failState), r.returnType = i.node); } return super.parseArrow(r); } parseFunctionParamType(r) { this.eat(17) && (r.optional = !0); let i = this.tsTryParseTypeAnnotation(); return i && (r.typeAnnotation = i), this.resetEndLocation(r), r; } isAssignable(r, i) { switch (r.type) { case "TSTypeCastExpression": return this.isAssignable(r.expression, i); case "TSParameterProperty": return !0; default: return super.isAssignable(r, i); } } toAssignable(r, i = !1) { switch (r.type) { case "ParenthesizedExpression": this.toAssignableParenthesizedExpression(r, i); break; case "TSAsExpression": case "TSSatisfiesExpression": case "TSNonNullExpression": case "TSTypeAssertion": i ? this.expressionScope.recordArrowParameterBindingError(me.UnexpectedTypeCastInParameter, r) : this.raise(me.UnexpectedTypeCastInParameter, r), this.toAssignable(r.expression, i); break; case "AssignmentExpression": !i && r.left.type === "TSTypeCastExpression" && (r.left = this.typeCastToParameter(r.left)); default: super.toAssignable(r, i); } } toAssignableParenthesizedExpression(r, i) { switch (r.expression.type) { case "TSAsExpression": case "TSSatisfiesExpression": case "TSNonNullExpression": case "TSTypeAssertion": case "ParenthesizedExpression": this.toAssignable(r.expression, i); break; default: super.toAssignable(r, i); } } checkToRestConversion(r, i) { switch (r.type) { case "TSAsExpression": case "TSSatisfiesExpression": case "TSTypeAssertion": case "TSNonNullExpression": this.checkToRestConversion(r.expression, !1); break; default: super.checkToRestConversion(r, i); } } isValidLVal(r, i, s, a) { switch (r) { case "TSTypeCastExpression": return !0; case "TSParameterProperty": return "parameter"; case "TSNonNullExpression": return "expression"; case "TSAsExpression": case "TSSatisfiesExpression": case "TSTypeAssertion": return (a !== 64 || !s) && ["expression", !0]; default: return super.isValidLVal(r, i, s, a); } } parseBindingAtom() { return this.state.type === 78 ? this.parseIdentifier(!0) : super.parseBindingAtom(); } parseMaybeDecoratorArguments(r, i) { if (this.match(47) || this.match(51)) { let s = this.tsParseTypeArgumentsInExpression(); if (this.match(10)) { let a = super.parseMaybeDecoratorArguments(r, i); return a.typeParameters = s, a; } this.unexpected(null, 10); } return super.parseMaybeDecoratorArguments(r, i); } checkCommaAfterRest(r) { return this.state.isAmbientContext && this.match(12) && this.lookaheadCharCode() === r ? (this.next(), !1) : super.checkCommaAfterRest( r); } isClassMethod() { return this.match(47) || super.isClassMethod(); } isClassProperty() { return this.match(35) || this.match(14) || super.isClassProperty(); } parseMaybeDefault(r, i) { let s = super.parseMaybeDefault(r, i); return s.type === "AssignmentPattern" && s.typeAnnotation && s.right.start < s.typeAnnotation.start && this.raise(me.TypeAnnotationAfterAssign, s.typeAnnotation), s; } getTokenFromCode(r) { if (this.state.inType) { if (r === 62) { this.finishOp(48, 1); return; } if (r === 60) { this.finishOp(47, 1); return; } } super.getTokenFromCode(r); } reScan_lt_gt() { let { type: r } = this.state; r === 47 ? (this.state.pos -= 1, this.readToken_lt()) : r === 48 && (this.state.pos -= 1, this.readToken_gt()); } reScan_lt() { let { type: r } = this.state; return r === 51 ? (this.state.pos -= 2, this.finishOp(47, 1), 47) : r; } toAssignableListItem(r, i, s) { let a = r[i]; a.type === "TSTypeCastExpression" && (r[i] = this.typeCastToParameter(a)), super.toAssignableListItem(r, i, s); } typeCastToParameter(r) { return r.expression.typeAnnotation = r.typeAnnotation, this.resetEndLocation(r.expression, r.typeAnnotation.loc.end), r.expression; } shouldParseArrow(r) { return this.match(14) ? r.every((i) => this.isAssignable(i, !0)) : super.shouldParseArrow(r); } shouldParseAsyncArrow() { return this.match(14) || super.shouldParseAsyncArrow(); } canHaveLeadingDecorator() { return super.canHaveLeadingDecorator() || this.isAbstractClass(); } jsxParseOpeningElementAfterName(r) { if (this.match(47) || this.match(51)) { let i = this.tsTryParseAndCatch(() => this.tsParseTypeArgumentsInExpression()); i && (r.typeParameters = i); } return super.jsxParseOpeningElementAfterName(r); } getGetterSetterExpectedParamCount(r) { let i = super.getGetterSetterExpectedParamCount(r), a = this.getObjectOrClassMethodParams(r)[0]; return a && this.isThisParam(a) ? i + 1 : i; } parseCatchClauseParam() { let r = super.parseCatchClauseParam(), i = this.tsTryParseTypeAnnotation(); return i && (r.typeAnnotation = i, this.resetEndLocation(r)), r; } tsInAmbientContext(r) { let { isAmbientContext: i, strict: s } = this.state; this.state.isAmbientContext = !0, this.state.strict = !1; try { return r(); } finally { this.state.isAmbientContext = i, this.state.strict = s; } } parseClass(r, i, s) { let a = this.state.inAbstractClass; this.state.inAbstractClass = !!r.abstract; try { return super.parseClass(r, i, s); } finally { this.state.inAbstractClass = a; } } tsParseAbstractDeclaration(r, i) { if (this.match(80)) return r.abstract = !0, this.maybeTakeDecorators(i, this.parseClass(r, !0, !1)); if (this.isContextual(129)) return this.hasFollowingLineBreak() ? null : (r.abstract = !0, this.raise(me.NonClassMethodPropertyHasAbstractModifier, r), this.tsParseInterfaceDeclaration( r)); throw this.unexpected(null, 80); } parseMethod(r, i, s, a, o, u, l) { let c = super.parseMethod(r, i, s, a, o, u, l); if ((c.abstract || c.type === "TSAbstractMethodDefinition") && (this.hasPlugin("estree") ? c.value : c).body) { let { key: h } = c; this.raise(me.AbstractMethodHasImplementation, c, { methodName: h.type === "Identifier" && !c.computed ? h.name : `[${this.input.slice(this.offsetToSourcePos(h.start), this.offsetToSourcePos( h.end))}]` }); } return c; } tsParseTypeParameterName() { return this.parseIdentifier().name; } shouldParseAsAmbientContext() { return !!this.getPluginOption("typescript", "dts"); } parse() { return this.shouldParseAsAmbientContext() && (this.state.isAmbientContext = !0), super.parse(); } getExpression() { return this.shouldParseAsAmbientContext() && (this.state.isAmbientContext = !0), super.getExpression(); } parseExportSpecifier(r, i, s, a) { return !i && a ? (this.parseTypeOnlyImportExportSpecifier(r, !1, s), this.finishNode(r, "ExportSpecifier")) : (r.exportKind = "value", super.parseExportSpecifier(r, i, s, a)); } parseImportSpecifier(r, i, s, a, o) { return !i && a ? (this.parseTypeOnlyImportExportSpecifier(r, !0, s), this.finishNode(r, "ImportSpecifier")) : (r.importKind = "value", super.parseImportSpecifier(r, i, s, a, s ? 4098 : 4096)); } parseTypeOnlyImportExportSpecifier(r, i, s) { let a = i ? "imported" : "local", o = i ? "local" : "exported", u = r[a], l, c = !1, f = !0, m = u.loc.start; if (this.isContextual(93)) { let d = this.parseIdentifier(); if (this.isContextual(93)) { let y = this.parseIdentifier(); hs(this.state.type) ? (c = !0, u = d, l = i ? this.parseIdentifier() : this.parseModuleExportName(), f = !1) : (l = y, f = !1); } else hs(this.state.type) ? (f = !1, l = i ? this.parseIdentifier() : this.parseModuleExportName()) : (c = !0, u = d); } else hs(this.state.type) && (c = !0, i ? (u = this.parseIdentifier(!0), this.isContextual(93) || this.checkReservedWord(u.name, u.loc. start, !0, !0)) : u = this.parseModuleExportName()); c && s && this.raise(i ? me.TypeModifierIsUsedInTypeImports : me.TypeModifierIsUsedInTypeExports, m), r[a] = u, r[o] = l; let h = i ? "importKind" : "exportKind"; r[h] = c ? "type" : "value", f && this.eatContextual(93) && (r[o] = i ? this.parseIdentifier() : this.parseModuleExportName()), r[o] || (r[o] = this.cloneIdentifier(r[a])), i && this.checkIdentifier(r[o], c ? 4098 : 4096); } fillOptionalPropertiesForTSESLint(r) { var i, s, a, o, u, l, c, f, m, h, d, y, p, g, b, D, x, T, w, B, k, j, W, Y, G, ye, re, te, ve, Je, Ie, se, Ne, Be, Cr, Ae, _e, Me, Nt, tr, Yr, Ni, pn, co, Os, ks, Bs, fo; switch (r.type) { case "ExpressionStatement": (i = r.directive) != null || (r.directive = void 0); return; case "RestElement": r.value = void 0; case "Identifier": case "ArrayPattern": case "AssignmentPattern": case "ObjectPattern": (s = r.decorators) != null || (r.decorators = []), (a = r.optional) != null || (r.optional = !1), (o = r.typeAnnotation) != null || (r.typeAnnotation = void 0); return; case "TSParameterProperty": (u = r.accessibility) != null || (r.accessibility = void 0), (l = r.decorators) != null || (r.decorators = []), (c = r.override) != null || (r.override = !1), (f = r.readonly) != null || (r.readonly = !1), (m = r.static) != null || (r.static = !1); return; case "TSEmptyBodyFunctionExpression": r.body = null; case "TSDeclareFunction": case "FunctionDeclaration": case "FunctionExpression": case "ClassMethod": case "ClassPrivateMethod": (h = r.declare) != null || (r.declare = !1), (d = r.returnType) != null || (r.returnType = void 0), (y = r.typeParameters) != null || (r.typeParameters = void 0); return; case "Property": (p = r.optional) != null || (r.optional = !1); return; case "TSMethodSignature": case "TSPropertySignature": (g = r.optional) != null || (r.optional = !1); case "TSIndexSignature": (b = r.accessibility) != null || (r.accessibility = void 0), (D = r.readonly) != null || (r.readonly = !1), (x = r.static) != null || (r.static = !1); return; case "TSAbstractPropertyDefinition": case "PropertyDefinition": case "TSAbstractAccessorProperty": case "AccessorProperty": (T = r.declare) != null || (r.declare = !1), (w = r.definite) != null || (r.definite = !1), (B = r.readonly) != null || (r.readonly = !1), (k = r.typeAnnotation) != null || (r.typeAnnotation = void 0); case "TSAbstractMethodDefinition": case "MethodDefinition": (j = r.accessibility) != null || (r.accessibility = void 0), (W = r.decorators) != null || (r.decorators = []), (Y = r.override) != null || (r.override = !1), (G = r.optional) != null || (r.optional = !1); return; case "ClassExpression": (ye = r.id) != null || (r.id = null); case "ClassDeclaration": (re = r.abstract) != null || (r.abstract = !1), (te = r.declare) != null || (r.declare = !1), (ve = r.decorators) != null || (r.decorators = []), (Je = r.implements) != null || (r.implements = []), (Ie = r.superTypeArguments) != null || (r.superTypeArguments = void 0), (se = r.typeParameters) != null || (r.typeParameters = void 0); return; case "TSTypeAliasDeclaration": case "VariableDeclaration": (Ne = r.declare) != null || (r.declare = !1); return; case "VariableDeclarator": (Be = r.definite) != null || (r.definite = !1); return; case "TSEnumDeclaration": (Cr = r.const) != null || (r.const = !1), (Ae = r.declare) != null || (r.declare = !1); return; case "TSEnumMember": (_e = r.computed) != null || (r.computed = !1); return; case "TSImportType": (Me = r.qualifier) != null || (r.qualifier = null), (Nt = r.options) != null || (r.options = null); return; case "TSInterfaceDeclaration": (tr = r.declare) != null || (r.declare = !1), (Yr = r.extends) != null || (r.extends = []); return; case "TSMappedType": (Ni = r.optional) != null || (r.optional = !1), (pn = r.readonly) != null || (r.readonly = void 0); return; case "TSModuleDeclaration": (co = r.declare) != null || (r.declare = !1), (Os = r.global) != null || (r.global = r.kind === "global"); return; case "TSTypeParameter": (ks = r.const) != null || (r.const = !1), (Bs = r.in) != null || (r.in = !1), (fo = r.out) != null || (r.out = !1); return; } } chStartsBindingIdentifierAndNotRelationalOperator(r, i) { if (en(r)) { if (mT.lastIndex = i, mT.test(this.input)) { let s = this.codePointAtPos(mT.lastIndex); if (!Wo(s) && s !== 92) return !1; } return !0; } else return r === 92; } nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine() { let r = this.nextTokenInLineStart(), i = this.codePointAtPos(r); return this.chStartsBindingIdentifierAndNotRelationalOperator(i, r); } nextTokenIsIdentifierOrStringLiteralOnSameLine() { let r = this.nextTokenInLineStart(), i = this.codePointAtPos(r); return this.chStartsBindingIdentifier(i, r) || i === 34 || i === 39; } }, "typescript"); function KPe(e) { if (e.type !== "MemberExpression") return !1; let { computed: t, property: r } = e; return t && r.type !== "StringLiteral" && (r.type !== "TemplateLiteral" || r.expressions.length > 0) ? !1 : DL(e.object); } n(KPe, "isPossiblyLiteralEnum"); function zPe(e, t) { var r; let { type: i } = e; if ((r = e.extra) != null && r.parenthesized) return !1; if (t) { if (i === "Literal") { let { value: s } = e; if (typeof s == "string" || typeof s == "boolean") return !0; } } else if (i === "StringLiteral" || i === "BooleanLiteral") return !0; return !!(bL(e, t) || JPe(e, t) || i === "TemplateLiteral" && e.expressions.length === 0 || KPe(e)); } n(zPe, "isValidAmbientConstInitializer"); function bL(e, t) { return t ? e.type === "Literal" && (typeof e.value == "number" || "bigint" in e) : e.type === "NumericLiteral" || e.type === "BigIntLite\ ral"; } n(bL, "isNumber"); function JPe(e, t) { if (e.type === "UnaryExpression") { let { operator: r, argument: i } = e; if (r === "-" && bL(i, t)) return !0; } return !1; } n(JPe, "isNegativeNumber"); function DL(e) { return e.type === "Identifier" ? !0 : e.type !== "MemberExpression" || e.computed ? !1 : DL(e.object); } n(DL, "isUncomputedMemberExpressionChain"); var iL = Qs`placeholders`({ ClassNameIsRequired: "A class name is required.", UnexpectedSpace: "Unexpected space in placeholder." }), XPe = /* @__PURE__ */ n((e) => class extends e { static { n(this, "PlaceholdersParserMixin"); } parsePlaceholder(r) { if (this.match(133)) { let i = this.startNode(); return this.next(), this.assertNoSpace(), i.name = super.parseIdentifier(!0), this.assertNoSpace(), this.expect(133), this.finishPlaceholder( i, r); } } finishPlaceholder(r, i) { let s = r; return (!s.expectedNode || !s.type) && (s = this.finishNode(s, "Placeholder")), s.expectedNode = i, s; } getTokenFromCode(r) { r === 37 && this.input.charCodeAt(this.state.pos + 1) === 37 ? this.finishOp(133, 2) : super.getTokenFromCode(r); } parseExprAtom(r) { return this.parsePlaceholder("Expression") || super.parseExprAtom(r); } parseIdentifier(r) { return this.parsePlaceholder("Identifier") || super.parseIdentifier(r); } checkReservedWord(r, i, s, a) { r !== void 0 && super.checkReservedWord(r, i, s, a); } cloneIdentifier(r) { let i = super.cloneIdentifier(r); return i.type === "Placeholder" && (i.expectedNode = r.expectedNode), i; } cloneStringLiteral(r) { return r.type === "Placeholder" ? this.cloneIdentifier(r) : super.cloneStringLiteral(r); } parseBindingAtom() { return this.parsePlaceholder("Pattern") || super.parseBindingAtom(); } isValidLVal(r, i, s, a) { return r === "Placeholder" || super.isValidLVal(r, i, s, a); } toAssignable(r, i) { r && r.type === "Placeholder" && r.expectedNode === "Expression" ? r.expectedNode = "Pattern" : super.toAssignable(r, i); } chStartsBindingIdentifier(r, i) { if (super.chStartsBindingIdentifier(r, i)) return !0; let s = this.nextTokenStart(); return this.input.charCodeAt(s) === 37 && this.input.charCodeAt(s + 1) === 37; } verifyBreakContinue(r, i) { r.label && r.label.type === "Placeholder" || super.verifyBreakContinue(r, i); } parseExpressionStatement(r, i) { var s; if (i.type !== "Placeholder" || (s = i.extra) != null && s.parenthesized) return super.parseExpressionStatement(r, i); if (this.match(14)) { let o = r; return o.label = this.finishPlaceholder(i, "Identifier"), this.next(), o.body = super.parseStatementOrSloppyAnnexBFunctionDeclaration(), this.finishNode(o, "LabeledStatement"); } this.semicolon(); let a = r; return a.name = i.name, this.finishPlaceholder(a, "Statement"); } parseBlock(r, i, s) { return this.parsePlaceholder("BlockStatement") || super.parseBlock(r, i, s); } parseFunctionId(r) { return this.parsePlaceholder("Identifier") || super.parseFunctionId(r); } parseClass(r, i, s) { let a = i ? "ClassDeclaration" : "ClassExpression"; this.next(); let o = this.state.strict, u = this.parsePlaceholder("Identifier"); if (u) if (this.match(81) || this.match(133) || this.match(5)) r.id = u; else { if (s || !i) return r.id = null, r.body = this.finishPlaceholder(u, "ClassBody"), this.finishNode(r, a); throw this.raise(iL.ClassNameIsRequired, this.state.startLoc); } else this.parseClassId(r, i, s); return super.parseClassSuper(r), r.body = this.parsePlaceholder("ClassBody") || super.parseClassBody(!!r.superClass, o), this.finishNode( r, a); } parseExport(r, i) { let s = this.parsePlaceholder("Identifier"); if (!s) return super.parseExport(r, i); let a = r; if (!this.isContextual(98) && !this.match(12)) return a.specifiers = [], a.source = null, a.declaration = this.finishPlaceholder(s, "Declaration"), this.finishNode(a, "ExportNamed\ Declaration"); this.expectPlugin("exportDefaultFrom"); let o = this.startNode(); return o.exported = s, a.specifiers = [this.finishNode(o, "ExportDefaultSpecifier")], super.parseExport(a, i); } isExportDefaultSpecifier() { if (this.match(65)) { let r = this.nextTokenStart(); if (this.isUnparsedContextual(r, "from") && this.input.startsWith(Ma(133), this.nextTokenStartSince(r + 4))) return !0; } return super.isExportDefaultSpecifier(); } maybeParseExportDefaultSpecifier(r, i) { var s; return (s = r.specifiers) != null && s.length ? !0 : super.maybeParseExportDefaultSpecifier(r, i); } checkExport(r) { let { specifiers: i } = r; i != null && i.length && (r.specifiers = i.filter((s) => s.exported.type === "Placeholder")), super.checkExport(r), r.specifiers = i; } parseImport(r) { let i = this.parsePlaceholder("Identifier"); if (!i) return super.parseImport(r); if (r.specifiers = [], !this.isContextual(98) && !this.match(12)) return r.source = this.finishPlaceholder(i, "StringLiteral"), this.semicolon(), this.finishNode(r, "ImportDeclaration"); let s = this.startNodeAtNode(i); return s.local = i, r.specifiers.push(this.finishNode(s, "ImportDefaultSpecifier")), this.eat(12) && (this.maybeParseStarImportSpecifier( r) || this.parseNamedImportSpecifiers(r)), this.expectContextual(98), r.source = this.parseImportSource(), this.semicolon(), this.finishNode( r, "ImportDeclaration"); } parseImportSource() { return this.parsePlaceholder("StringLiteral") || super.parseImportSource(); } assertNoSpace() { this.state.start > this.offsetToSourcePos(this.state.lastTokEndLoc.index) && this.raise(iL.UnexpectedSpace, this.state.lastTokEndLoc); } }, "placeholders"), YPe = /* @__PURE__ */ n((e) => class extends e { static { n(this, "V8IntrinsicMixin"); } parseV8Intrinsic() { if (this.match(54)) { let r = this.state.startLoc, i = this.startNode(); if (this.next(), pt(this.state.type)) { let s = this.parseIdentifierName(), a = this.createIdentifier(i, s); if (this.castNodeTo(a, "V8IntrinsicIdentifier"), this.match(10)) return a; } this.unexpected(r); } } parseExprAtom(r) { return this.parseV8Intrinsic() || super.parseExprAtom(r); } }, "v8intrinsic"), sL = ["minimal", "fsharp", "hack", "smart"], nL = ["^^", "@@", "^", "%", "#"]; function GPe(e) { if (e.has("decorators")) { if (e.has("decorators-legacy")) throw new Error("Cannot use the decorators and decorators-legacy plugin together"); let i = e.get("decorators").decoratorsBeforeExport; if (i != null && typeof i != "boolean") throw new Error("'decoratorsBeforeExport' must be a boolean, if specified."); let s = e.get("decorators").allowCallParenthesized; if (s != null && typeof s != "boolean") throw new Error("'allowCallParenthesized' must be a boolean."); } if (e.has("flow") && e.has("typescript")) throw new Error("Cannot combine flow and typescript plugins."); if (e.has("placeholders") && e.has("v8intrinsic")) throw new Error("Cannot combine placeholders and v8intrinsic plugins."); if (e.has("pipelineOperator")) { var t; let i = e.get("pipelineOperator").proposal; if (!sL.includes(i)) { let s = sL.map((a) => `"${a}"`).join(", "); throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${s}.`); } if (i === "hack") { if (e.has("placeholders")) throw new Error("Cannot combine placeholders plugin and Hack-style pipes."); if (e.has("v8intrinsic")) throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes."); let s = e.get("pipelineOperator").topicToken; if (!nL.includes(s)) { let a = nL.map((o) => `"${o}"`).join(", "); throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${a}\ .`); } { var r; if (s === "#" && ((r = e.get("recordAndTuple")) == null ? void 0 : r.syntaxType) === "hash") throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify( ["recordAndTuple", e.get("recordAndTuple")])}\`.`); } } else if (i === "smart" && ((t = e.get("recordAndTuple")) == null ? void 0 : t.syntaxType) === "hash") throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple", e. get("recordAndTuple")])}\`.`); } if (e.has("moduleAttributes")) { if (e.has("deprecatedImportAssert") || e.has("importAssertions")) throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins."); if (e.get("moduleAttributes").version !== "may-2020") throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the on\ ly supported value is 'may-2020'."); } if (e.has("importAssertions") && e.has("deprecatedImportAssert")) throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins."); if (!e.has("deprecatedImportAssert") && e.has("importAttributes") && e.get("importAttributes").deprecatedAssertSyntax && e.set("deprecat\ edImportAssert", {}), e.has("recordAndTuple")) { let i = e.get("recordAndTuple").syntaxType; if (i != null) { let s = ["hash", "bar"]; if (!s.includes(i)) throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: " + s.map((a) => `'${a}'`).join(", ")); } } if (e.has("asyncDoExpressions") && !e.has("doExpressions")) { let i = new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins."); throw i.missingPlugins = "doExpressions", i; } if (e.has("optionalChainingAssign") && e.get("optionalChainingAssign").version !== "2023-07") throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, th\ e only supported value is '2023-07'."); if (e.has("discardBinding") && e.get("discardBinding").syntaxType !== "void") throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'."); } n(GPe, "validatePlugins"); var vL = { estree: tPe, jsx: kPe, flow: PPe, typescript: HPe, v8intrinsic: YPe, placeholders: XPe }, ZPe = Object.keys(vL), RT = class extends MT { static { n(this, "ExpressionParser"); } checkProto(t, r, i, s) { if (t.type === "SpreadElement" || this.isObjectMethod(t) || t.computed || t.shorthand) return i; let a = t.key; return (a.type === "Identifier" ? a.name : a.value) === "__proto__" ? r ? (this.raise(R.RecordNoProto, a), !0) : (i && (s ? s.doubleProtoLoc === null && (s.doubleProtoLoc = a.loc.start) : this.raise(R.DuplicateProto, a)), !0) : i; } shouldExitDescending(t, r) { return t.type === "ArrowFunctionExpression" && this.offsetToSourcePos(t.start) === r; } getExpression() { if (this.enterInitialScopes(), this.nextToken(), this.match(140)) throw this.raise(R.ParseExpressionEmptyInput, this.state.startLoc); let t = this.parseExpression(); if (!this.match(140)) throw this.raise(R.ParseExpressionExpectsEOF, this.state.startLoc, { unexpected: this.input.codePointAt(this.state.start) }); return this.finalizeRemainingComments(), t.comments = this.comments, t.errors = this.state.errors, this.optionFlags & 256 && (t.tokens = this.tokens), t; } parseExpression(t, r) { return t ? this.disallowInAnd(() => this.parseExpressionBase(r)) : this.allowInAnd(() => this.parseExpressionBase(r)); } parseExpressionBase(t) { let r = this.state.startLoc, i = this.parseMaybeAssign(t); if (this.match(12)) { let s = this.startNodeAt(r); for (s.expressions = [i]; this.eat(12); ) s.expressions.push(this.parseMaybeAssign(t)); return this.toReferencedList(s.expressions), this.finishNode(s, "SequenceExpression"); } return i; } parseMaybeAssignDisallowIn(t, r) { return this.disallowInAnd(() => this.parseMaybeAssign(t, r)); } parseMaybeAssignAllowIn(t, r) { return this.allowInAnd(() => this.parseMaybeAssign(t, r)); } setOptionalParametersError(t) { t.optionalParametersLoc = this.state.startLoc; } parseMaybeAssign(t, r) { let i = this.state.startLoc, s = this.isContextual(108); if (s && this.prodParam.hasYield) { this.next(); let l = this.parseYield(i); return r && (l = r.call(this, l, i)), l; } let a; t ? a = !1 : (t = new $l(), a = !0); let { type: o } = this.state; (o === 10 || pt(o)) && (this.state.potentialArrowAt = this.state.start); let u = this.parseMaybeConditional(t); if (r && (u = r.call(this, u, i)), aPe(this.state.type)) { let l = this.startNodeAt(i), c = this.state.value; if (l.operator = c, this.match(29)) { this.toAssignable(u, !0), l.left = u; let f = i.index; t.doubleProtoLoc != null && t.doubleProtoLoc.index >= f && (t.doubleProtoLoc = null), t.shorthandAssignLoc != null && t.shorthandAssignLoc. index >= f && (t.shorthandAssignLoc = null), t.privateKeyLoc != null && t.privateKeyLoc.index >= f && (this.checkDestructuringPrivate( t), t.privateKeyLoc = null), t.voidPatternLoc != null && t.voidPatternLoc.index >= f && (t.voidPatternLoc = null); } else l.left = u; return this.next(), l.right = this.parseMaybeAssign(), this.checkLVal(u, this.finishNode(l, "AssignmentExpression"), void 0, void 0, void 0, void 0, c === "||=" || c === "&&=" || c === "??="), l; } else a && this.checkExpressionErrors(t, !0); if (s) { let { type: l } = this.state; if ((this.hasPlugin("v8intrinsic") ? Md(l) : Md(l) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier()) return this.raiseOverwrite(R.YieldNotInGeneratorFunction, i), this.parseYield(i); } return u; } parseMaybeConditional(t) { let r = this.state.startLoc, i = this.state.potentialArrowAt, s = this.parseExprOps(t); return this.shouldExitDescending(s, i) ? s : this.parseConditional(s, r, t); } parseConditional(t, r, i) { if (this.eat(17)) { let s = this.startNodeAt(r); return s.test = t, s.consequent = this.parseMaybeAssignAllowIn(), this.expect(14), s.alternate = this.parseMaybeAssign(), this.finishNode( s, "ConditionalExpression"); } return t; } parseMaybeUnaryOrPrivate(t) { return this.match(139) ? this.parsePrivateName() : this.parseMaybeUnary(t); } parseExprOps(t) { let r = this.state.startLoc, i = this.state.potentialArrowAt, s = this.parseMaybeUnaryOrPrivate(t); return this.shouldExitDescending(s, i) ? s : this.parseExprOp(s, r, -1); } parseExprOp(t, r, i) { if (this.isPrivateName(t)) { let a = this.getPrivateNameSV(t); (i >= Ym(58) || !this.prodParam.hasIn || !this.match(58)) && this.raise(R.PrivateInExpectedIn, t, { identifierName: a }), this.classScope.usePrivateName(a, t.loc.start); } let s = this.state.type; if (uPe(s) && (this.prodParam.hasIn || !this.match(58))) { let a = Ym(s); if (a > i) { if (s === 39) { if (this.expectPlugin("pipelineOperator"), this.state.inFSharpPipelineDirectBody) return t; this.checkPipelineAtInfixOperator(t, r); } let o = this.startNodeAt(r); o.left = t, o.operator = this.state.value; let u = s === 41 || s === 42, l = s === 40; if (l && (a = Ym(42)), this.next(), s === 39 && this.hasPlugin(["pipelineOperator", { proposal: "minimal" }]) && this.state.type === 96 && this.prodParam.hasAwait) throw this.raise(R.UnexpectedAwaitAfterPipelineBody, this.state.startLoc); o.right = this.parseExprOpRightExpr(s, a); let c = this.finishNode(o, u || l ? "LogicalExpression" : "BinaryExpression"), f = this.state.type; if (l && (f === 41 || f === 42) || u && f === 40) throw this.raise(R.MixingCoalesceWithLogical, this.state.startLoc); return this.parseExprOp(c, r, i); } } return t; } parseExprOpRightExpr(t, r) { let i = this.state.startLoc; switch (t) { case 39: switch (this.getPluginOption("pipelineOperator", "proposal")) { case "hack": return this.withTopicBindingContext(() => this.parseHackPipeBody()); case "fsharp": return this.withSoloAwaitPermittingContext(() => this.parseFSharpPipelineBody(r)); } if (this.getPluginOption("pipelineOperator", "proposal") === "smart") return this.withTopicBindingContext(() => { if (this.prodParam.hasYield && this.isContextual(108)) throw this.raise(R.PipeBodyIsTighter, this.state.startLoc); return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t, r), i); }); default: return this.parseExprOpBaseRightExpr(t, r); } } parseExprOpBaseRightExpr(t, r) { let i = this.state.startLoc; return this.parseExprOp(this.parseMaybeUnaryOrPrivate(), i, pPe(t) ? r - 1 : r); } parseHackPipeBody() { var t; let { startLoc: r } = this.state, i = this.parseMaybeAssign(); return J3e.has(i.type) && !((t = i.extra) != null && t.parenthesized) && this.raise(R.PipeUnparenthesizedBody, r, { type: i.type }), this.topicReferenceWasUsedInCurrentContext() || this.raise(R.PipeTopicUnused, r), i; } checkExponentialAfterUnary(t) { this.match(57) && this.raise(R.UnexpectedTokenUnaryExponentiation, t.argument); } parseMaybeUnary(t, r) { let i = this.state.startLoc, s = this.isContextual(96); if (s && this.recordAwaitIfAllowed()) { this.next(); let l = this.parseAwait(i); return r || this.checkExponentialAfterUnary(l), l; } let a = this.match(34), o = this.startNode(); if (cPe(this.state.type)) { o.operator = this.state.value, o.prefix = !0, this.match(72) && this.expectPlugin("throwExpressions"); let l = this.match(89); if (this.next(), o.argument = this.parseMaybeUnary(null, !0), this.checkExpressionErrors(t, !0), this.state.strict && l) { let c = o.argument; c.type === "Identifier" ? this.raise(R.StrictDelete, o) : this.hasPropertyAsPrivateName(c) && this.raise(R.DeletePrivateField, o); } if (!a) return r || this.checkExponentialAfterUnary(o), this.finishNode(o, "UnaryExpression"); } let u = this.parseUpdate(o, a, t); if (s) { let { type: l } = this.state; if ((this.hasPlugin("v8intrinsic") ? Md(l) : Md(l) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier()) return this.raiseOverwrite(R.AwaitNotInAsyncContext, i), this.parseAwait(i); } return u; } parseUpdate(t, r, i) { if (r) { let o = t; return this.checkLVal(o.argument, this.finishNode(o, "UpdateExpression")), t; } let s = this.state.startLoc, a = this.parseExprSubscripts(i); if (this.checkExpressionErrors(i, !1)) return a; for (; lPe(this.state.type) && !this.canInsertSemicolon(); ) { let o = this.startNodeAt(s); o.operator = this.state.value, o.prefix = !1, o.argument = a, this.next(), this.checkLVal(a, a = this.finishNode(o, "UpdateExpressio\ n")); } return a; } parseExprSubscripts(t) { let r = this.state.startLoc, i = this.state.potentialArrowAt, s = this.parseExprAtom(t); return this.shouldExitDescending(s, i) ? s : this.parseSubscripts(s, r); } parseSubscripts(t, r, i) { let s = { optionalChainMember: !1, maybeAsyncArrow: this.atPossibleAsyncArrow(t), stop: !1 }; do t = this.parseSubscript(t, r, i, s), s.maybeAsyncArrow = !1; while (!s.stop); return t; } parseSubscript(t, r, i, s) { let { type: a } = this.state; if (!i && a === 15) return this.parseBind(t, r, i, s); if (Qm(a)) return this.parseTaggedTemplateExpression(t, r, s); let o = !1; if (a === 18) { if (i && (this.raise(R.OptionalChainingNoNew, this.state.startLoc), this.lookaheadCharCode() === 40)) return this.stopParseSubscript(t, s); s.optionalChainMember = o = !0, this.next(); } if (!i && this.match(10)) return this.parseCoverCallAndAsyncArrowHead(t, r, s, o); { let u = this.eat(0); return u || o || this.eat(16) ? this.parseMember(t, r, s, u, o) : this.stopParseSubscript(t, s); } } stopParseSubscript(t, r) { return r.stop = !0, t; } parseMember(t, r, i, s, a) { let o = this.startNodeAt(r); return o.object = t, o.computed = s, s ? (o.property = this.parseExpression(), this.expect(3)) : this.match(139) ? (t.type === "Super" && this.raise(R.SuperPrivateField, r), this.classScope.usePrivateName(this.state.value, this.state.startLoc), o.property = this.parsePrivateName()) : o.property = this.parseIdentifier(!0), i.optionalChainMember ? (o.optional = a, this.finishNode(o, "OptionalMemberExpression")) : this. finishNode(o, "MemberExpression"); } parseBind(t, r, i, s) { let a = this.startNodeAt(r); return a.object = t, this.next(), a.callee = this.parseNoCallExpr(), s.stop = !0, this.parseSubscripts(this.finishNode(a, "BindExpress\ ion"), r, i); } parseCoverCallAndAsyncArrowHead(t, r, i, s) { let a = this.state.maybeInArrowParameters, o = null; this.state.maybeInArrowParameters = !0, this.next(); let u = this.startNodeAt(r); u.callee = t; let { maybeAsyncArrow: l, optionalChainMember: c } = i; l && (this.expressionScope.enter(UPe()), o = new $l()), c && (u.optional = s), s ? u.arguments = this.parseCallExpressionArguments() : u.arguments = this.parseCallExpressionArguments(t.type !== "Super", u, o); let f = this.finishCallExpression(u, c); return l && this.shouldParseAsyncArrow() && !s ? (i.stop = !0, this.checkDestructuringPrivate(o), this.expressionScope.validateAsPattern(), this.expressionScope.exit(), f = this.parseAsyncArrowFromCallExpression(this.startNodeAt(r), f)) : (l && (this.checkExpressionErrors(o, !0), this.expressionScope.exit()), this.toReferencedArguments(f)), this.state.maybeInArrowParameters = a, f; } toReferencedArguments(t, r) { this.toReferencedListDeep(t.arguments, r); } parseTaggedTemplateExpression(t, r, i) { let s = this.startNodeAt(r); return s.tag = t, s.quasi = this.parseTemplate(!0), i.optionalChainMember && this.raise(R.OptionalChainingNoTemplate, r), this.finishNode( s, "TaggedTemplateExpression"); } atPossibleAsyncArrow(t) { return t.type === "Identifier" && t.name === "async" && this.state.lastTokEndLoc.index === t.end && !this.canInsertSemicolon() && t.end - t.start === 5 && this.offsetToSourcePos(t.start) === this.state.potentialArrowAt; } finishCallExpression(t, r) { if (t.callee.type === "Import") if (t.arguments.length === 0 || t.arguments.length > 2) this.raise(R.ImportCallArity, t); else for (let i of t.arguments) i.type === "SpreadElement" && this.raise(R.ImportCallSpreadArgument, i); return this.finishNode(t, r ? "OptionalCallExpression" : "CallExpression"); } parseCallExpressionArguments(t, r, i) { let s = [], a = !0, o = this.state.inFSharpPipelineDirectBody; for (this.state.inFSharpPipelineDirectBody = !1; !this.eat(11); ) { if (a) a = !1; else if (this.expect(12), this.match(11)) { r && this.addTrailingCommaExtraToNode(r), this.next(); break; } s.push(this.parseExprListItem(11, !1, i, t)); } return this.state.inFSharpPipelineDirectBody = o, s; } shouldParseAsyncArrow() { return this.match(19) && !this.canInsertSemicolon(); } parseAsyncArrowFromCallExpression(t, r) { var i; return this.resetPreviousNodeTrailingComments(r), this.expect(19), this.parseArrowExpression(t, r.arguments, !0, (i = r.extra) == null ? void 0 : i.trailingCommaLoc), r.innerComments && Ud(t, r.innerComments), r.callee.trailingComments && Ud(t, r.callee.trailingComments), t; } parseNoCallExpr() { let t = this.state.startLoc; return this.parseSubscripts(this.parseExprAtom(), t, !0); } parseExprAtom(t) { let r, i = null, { type: s } = this.state; switch (s) { case 79: return this.parseSuper(); case 83: return r = this.startNode(), this.next(), this.match(16) ? this.parseImportMetaPropertyOrPhaseCall(r) : this.match(10) ? this.optionFlags & 512 ? this.parseImportCall(r) : this.finishNode(r, "Import") : (this.raise(R.UnsupportedImport, this.state.lastTokStartLoc), this. finishNode(r, "Import")); case 78: return r = this.startNode(), this.next(), this.finishNode(r, "ThisExpression"); case 90: return this.parseDo(this.startNode(), !1); case 56: case 31: return this.readRegexp(), this.parseRegExpLiteral(this.state.value); case 135: return this.parseNumericLiteral(this.state.value); case 136: return this.parseBigIntLiteral(this.state.value); case 134: return this.parseStringLiteral(this.state.value); case 84: return this.parseNullLiteral(); case 85: return this.parseBooleanLiteral(!0); case 86: return this.parseBooleanLiteral(!1); case 10: { let a = this.state.potentialArrowAt === this.state.start; return this.parseParenAndDistinguishExpression(a); } case 0: return this.parseArrayLike(3, !1, t); case 5: return this.parseObjectLike(8, !1, !1, t); case 68: return this.parseFunctionOrFunctionSent(); case 26: i = this.parseDecorators(); case 80: return this.parseClass(this.maybeTakeDecorators(i, this.startNode()), !1); case 77: return this.parseNewOrNewTarget(); case 25: case 24: return this.parseTemplate(!1); case 15: { r = this.startNode(), this.next(), r.object = null; let a = r.callee = this.parseNoCallExpr(); if (a.type === "MemberExpression") return this.finishNode(r, "BindExpression"); throw this.raise(R.UnsupportedBind, a); } case 139: return this.raise(R.PrivateInExpectedIn, this.state.startLoc, { identifierName: this.state.value }), this.parsePrivateName(); case 33: return this.parseTopicReferenceThenEqualsSign(54, "%"); case 32: return this.parseTopicReferenceThenEqualsSign(44, "^"); case 37: case 38: return this.parseTopicReference("hack"); case 44: case 54: case 27: { let a = this.getPluginOption("pipelineOperator", "proposal"); if (a) return this.parseTopicReference(a); throw this.unexpected(); } case 47: { let a = this.input.codePointAt(this.nextTokenStart()); throw en(a) || a === 62 ? this.expectOnePlugin(["jsx", "flow", "typescript"]) : this.unexpected(); } default: { if (s === 137) return this.parseDecimalLiteral(this.state.value); if (s === 2 || s === 1) return this.parseArrayLike(this.state.type === 2 ? 4 : 3, !0); if (s === 6 || s === 7) return this.parseObjectLike(this.state.type === 6 ? 9 : 8, !1, !0); } if (pt(s)) { if (this.isContextual(127) && this.lookaheadInLineCharCode() === 123) return this.parseModuleExpression(); let a = this.state.potentialArrowAt === this.state.start, o = this.state.containsEsc, u = this.parseIdentifier(); if (!o && u.name === "async" && !this.canInsertSemicolon()) { let { type: l } = this.state; if (l === 68) return this.resetPreviousNodeTrailingComments(u), this.next(), this.parseAsyncFunctionExpression(this.startNodeAtNode(u)); if (pt(l)) return this.lookaheadCharCode() === 61 ? this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(u)) : u; if (l === 90) return this.resetPreviousNodeTrailingComments(u), this.parseDo(this.startNodeAtNode(u), !0); } return a && this.match(19) && !this.canInsertSemicolon() ? (this.next(), this.parseArrowExpression(this.startNodeAtNode(u), [u], !1)) : u; } else throw this.unexpected(); } } parseTopicReferenceThenEqualsSign(t, r) { let i = this.getPluginOption("pipelineOperator", "proposal"); if (i) return this.state.type = t, this.state.value = r, this.state.pos--, this.state.end--, this.state.endLoc = si(this.state.endLoc, -1), this.parseTopicReference(i); throw this.unexpected(); } parseTopicReference(t) { let r = this.startNode(), i = this.state.startLoc, s = this.state.type; return this.next(), this.finishTopicReference(r, i, t, s); } finishTopicReference(t, r, i, s) { if (this.testTopicReferenceConfiguration(i, r, s)) return i === "hack" ? (this.topicReferenceIsAllowedInCurrentContext() || this.raise(R.PipeTopicUnbound, r), this.registerTopicReference(), this.finishNode(t, "TopicReference")) : (this.topicReferenceIsAllowedInCurrentContext() || this.raise(R.PrimaryTopicNotAllowed, r), this. registerTopicReference(), this.finishNode(t, "PipelinePrimaryTopicReference")); throw this.raise(R.PipeTopicUnconfiguredToken, r, { token: Ma(s) }); } testTopicReferenceConfiguration(t, r, i) { switch (t) { case "hack": return this.hasPlugin(["pipelineOperator", { topicToken: Ma(i) }]); case "smart": return i === 27; default: throw this.raise(R.PipeTopicRequiresHackPipes, r); } } parseAsyncArrowUnaryFunction(t) { this.prodParam.enter(Gm(!0, this.prodParam.hasYield)); let r = [this.parseIdentifier()]; return this.prodParam.exit(), this.hasPrecedingLineBreak() && this.raise(R.LineTerminatorBeforeArrow, this.state.curPosition()), this. expect(19), this.parseArrowExpression(t, r, !0); } parseDo(t, r) { this.expectPlugin("doExpressions"), r && this.expectPlugin("asyncDoExpressions"), t.async = r, this.next(); let i = this.state.labels; return this.state.labels = [], r ? (this.prodParam.enter(2), t.body = this.parseBlock(), this.prodParam.exit()) : t.body = this.parseBlock(), this.state.labels = i, this.finishNode(t, "DoExpression"); } parseSuper() { let t = this.startNode(); return this.next(), this.match(10) && !this.scope.allowDirectSuper ? this.optionFlags & 16 || this.raise(R.SuperNotAllowed, t) : this. scope.allowSuper || this.optionFlags & 16 || this.raise(R.UnexpectedSuper, t), !this.match(10) && !this.match(0) && !this.match(16) && this.raise(R.UnsupportedSuper, t), this.finishNode(t, "Super"); } parsePrivateName() { let t = this.startNode(), r = this.startNodeAt(si(this.state.startLoc, 1)), i = this.state.value; return this.next(), t.id = this.createIdentifier(r, i), this.finishNode(t, "PrivateName"); } parseFunctionOrFunctionSent() { let t = this.startNode(); if (this.next(), this.prodParam.hasYield && this.match(16)) { let r = this.createIdentifier(this.startNodeAtNode(t), "function"); return this.next(), this.match(103) ? this.expectPlugin("functionSent") : this.hasPlugin("functionSent") || this.unexpected(), this. parseMetaProperty(t, r, "sent"); } return this.parseFunction(t); } parseMetaProperty(t, r, i) { t.meta = r; let s = this.state.containsEsc; return t.property = this.parseIdentifier(!0), (t.property.name !== i || s) && this.raise(R.UnsupportedMetaProperty, t.property, { target: r.name, onlyValidPropertyName: i }), this.finishNode(t, "MetaProperty"); } parseImportMetaPropertyOrPhaseCall(t) { if (this.next(), this.isContextual(105) || this.isContextual(97)) { let r = this.isContextual(105); return this.expectPlugin(r ? "sourcePhaseImports" : "deferredImportEvaluation"), this.next(), t.phase = r ? "source" : "defer", this. parseImportCall(t); } else { let r = this.createIdentifierAt(this.startNodeAtNode(t), "import", this.state.lastTokStartLoc); return this.isContextual(101) && (this.inModule || this.raise(R.ImportMetaOutsideModule, r), this.sawUnambiguousESM = !0), this.parseMetaProperty( t, r, "meta"); } } parseLiteralAtNode(t, r, i) { return this.addExtra(i, "rawValue", t), this.addExtra(i, "raw", this.input.slice(this.offsetToSourcePos(i.start), this.state.end)), i. value = t, this.next(), this.finishNode(i, r); } parseLiteral(t, r) { let i = this.startNode(); return this.parseLiteralAtNode(t, r, i); } parseStringLiteral(t) { return this.parseLiteral(t, "StringLiteral"); } parseNumericLiteral(t) { return this.parseLiteral(t, "NumericLiteral"); } parseBigIntLiteral(t) { return this.parseLiteral(t, "BigIntLiteral"); } parseDecimalLiteral(t) { return this.parseLiteral(t, "DecimalLiteral"); } parseRegExpLiteral(t) { let r = this.startNode(); return this.addExtra(r, "raw", this.input.slice(this.offsetToSourcePos(r.start), this.state.end)), r.pattern = t.pattern, r.flags = t. flags, this.next(), this.finishNode(r, "RegExpLiteral"); } parseBooleanLiteral(t) { let r = this.startNode(); return r.value = t, this.next(), this.finishNode(r, "BooleanLiteral"); } parseNullLiteral() { let t = this.startNode(); return this.next(), this.finishNode(t, "NullLiteral"); } parseParenAndDistinguishExpression(t) { let r = this.state.startLoc, i; this.next(), this.expressionScope.enter(qPe()); let s = this.state.maybeInArrowParameters, a = this.state.inFSharpPipelineDirectBody; this.state.maybeInArrowParameters = !0, this.state.inFSharpPipelineDirectBody = !1; let o = this.state.startLoc, u = [], l = new $l(), c = !0, f, m; for (; !this.match(11); ) { if (c) c = !1; else if (this.expect(12, l.optionalParametersLoc === null ? null : l.optionalParametersLoc), this.match(11)) { m = this.state.startLoc; break; } if (this.match(21)) { let y = this.state.startLoc; if (f = this.state.startLoc, u.push(this.parseParenItem(this.parseRestBinding(), y)), !this.checkCommaAfterRest(41)) break; } else u.push(this.parseMaybeAssignAllowInOrVoidPattern(11, l, this.parseParenItem)); } let h = this.state.lastTokEndLoc; this.expect(11), this.state.maybeInArrowParameters = s, this.state.inFSharpPipelineDirectBody = a; let d = this.startNodeAt(r); return t && this.shouldParseArrow(u) && (d = this.parseArrow(d)) ? (this.checkDestructuringPrivate(l), this.expressionScope.validateAsPattern(), this.expressionScope.exit(), this.parseArrowExpression(d, u, !1), d) : (this.expressionScope.exit(), u.length || this.unexpected(this. state.lastTokStartLoc), m && this.unexpected(m), f && this.unexpected(f), this.checkExpressionErrors(l, !0), this.toReferencedListDeep( u, !0), u.length > 1 ? (i = this.startNodeAt(o), i.expressions = u, this.finishNode(i, "SequenceExpression"), this.resetEndLocation(i, h)) : i = u[0], this.wrapParenthesis(r, i)); } wrapParenthesis(t, r) { if (!(this.optionFlags & 1024)) return this.addExtra(r, "parenthesized", !0), this.addExtra(r, "parenStart", t.index), this.takeSurroundingComments(r, t.index, this. state.lastTokEndLoc.index), r; let i = this.startNodeAt(t); return i.expression = r, this.finishNode(i, "ParenthesizedExpression"); } shouldParseArrow(t) { return !this.canInsertSemicolon(); } parseArrow(t) { if (this.eat(19)) return t; } parseParenItem(t, r) { return t; } parseNewOrNewTarget() { let t = this.startNode(); if (this.next(), this.match(16)) { let r = this.createIdentifier(this.startNodeAtNode(t), "new"); this.next(); let i = this.parseMetaProperty(t, r, "target"); return this.scope.allowNewTarget || this.raise(R.UnexpectedNewTarget, i), i; } return this.parseNew(t); } parseNew(t) { if (this.parseNewCallee(t), this.eat(10)) { let r = this.parseExprList(11); this.toReferencedList(r), t.arguments = r; } else t.arguments = []; return this.finishNode(t, "NewExpression"); } parseNewCallee(t) { let r = this.match(83), i = this.parseNoCallExpr(); t.callee = i, r && (i.type === "Import" || i.type === "ImportExpression") && this.raise(R.ImportCallNotNewExpression, i); } parseTemplateElement(t) { let { start: r, startLoc: i, end: s, value: a } = this.state, o = r + 1, u = this.startNodeAt(si(i, 1)); a === null && (t || this.raise(R.InvalidEscapeSequenceTemplate, si(this.state.firstInvalidTemplateEscapePos, 1))); let l = this.match(24), c = l ? -1 : -2, f = s + c; u.value = { raw: this.input.slice(o, f).replace(/\r\n?/g, ` `), cooked: a === null ? null : a.slice(1, c) }, u.tail = l, this.next(); let m = this.finishNode(u, "TemplateElement"); return this.resetEndLocation(m, si(this.state.lastTokEndLoc, c)), m; } parseTemplate(t) { let r = this.startNode(), i = this.parseTemplateElement(t), s = [i], a = []; for (; !i.tail; ) a.push(this.parseTemplateSubstitution()), this.readTemplateContinuation(), s.push(i = this.parseTemplateElement(t)); return r.expressions = a, r.quasis = s, this.finishNode(r, "TemplateLiteral"); } parseTemplateSubstitution() { return this.parseExpression(); } parseObjectLike(t, r, i, s) { i && this.expectPlugin("recordAndTuple"); let a = this.state.inFSharpPipelineDirectBody; this.state.inFSharpPipelineDirectBody = !1; let o = !1, u = !0, l = this.startNode(); for (l.properties = [], this.next(); !this.match(t); ) { if (u) u = !1; else if (this.expect(12), this.match(t)) { this.addTrailingCommaExtraToNode(l); break; } let f; r ? f = this.parseBindingProperty() : (f = this.parsePropertyDefinition(s), o = this.checkProto(f, i, o, s)), i && !this.isObjectProperty( f) && f.type !== "SpreadElement" && this.raise(R.InvalidRecordProperty, f), f.shorthand && this.addExtra(f, "shorthand", !0), l.properties. push(f); } this.next(), this.state.inFSharpPipelineDirectBody = a; let c = "ObjectExpression"; return r ? c = "ObjectPattern" : i && (c = "RecordExpression"), this.finishNode(l, c); } addTrailingCommaExtraToNode(t) { this.addExtra(t, "trailingComma", this.state.lastTokStartLoc.index), this.addExtra(t, "trailingCommaLoc", this.state.lastTokStartLoc, !1); } maybeAsyncOrAccessorProp(t) { return !t.computed && t.key.type === "Identifier" && (this.isLiteralPropertyName() || this.match(0) || this.match(55)); } parsePropertyDefinition(t) { let r = []; if (this.match(26)) for (this.hasPlugin("decorators") && this.raise(R.UnsupportedPropertyDecorator, this.state.startLoc); this.match(26); ) r.push(this.parseDecorator()); let i = this.startNode(), s = !1, a = !1, o; if (this.match(21)) return r.length && this.unexpected(), this.parseSpread(); r.length && (i.decorators = r, r = []), i.method = !1, t && (o = this.state.startLoc); let u = this.eat(55); this.parsePropertyNamePrefixOperator(i); let l = this.state.containsEsc; if (this.parsePropertyName(i, t), !u && !l && this.maybeAsyncOrAccessorProp(i)) { let { key: c } = i, f = c.name; f === "async" && !this.hasPrecedingLineBreak() && (s = !0, this.resetPreviousNodeTrailingComments(c), u = this.eat(55), this.parsePropertyName( i)), (f === "get" || f === "set") && (a = !0, this.resetPreviousNodeTrailingComments(c), i.kind = f, this.match(55) && (u = !0, this. raise(R.AccessorIsGenerator, this.state.curPosition(), { kind: f }), this.next()), this.parsePropertyName(i)); } return this.parseObjPropValue(i, o, u, s, !1, a, t); } getGetterSetterExpectedParamCount(t) { return t.kind === "get" ? 0 : 1; } getObjectOrClassMethodParams(t) { return t.params; } checkGetterSetterParams(t) { var r; let i = this.getGetterSetterExpectedParamCount(t), s = this.getObjectOrClassMethodParams(t); s.length !== i && this.raise(t.kind === "get" ? R.BadGetterArity : R.BadSetterArity, t), t.kind === "set" && ((r = s[s.length - 1]) == null ? void 0 : r.type) === "RestElement" && this.raise(R.BadSetterRestParameter, t); } parseObjectMethod(t, r, i, s, a) { if (a) { let o = this.parseMethod(t, r, !1, !1, !1, "ObjectMethod"); return this.checkGetterSetterParams(o), o; } if (i || r || this.match(10)) return s && this.unexpected(), t.kind = "method", t.method = !0, this.parseMethod(t, r, i, !1, !1, "ObjectMethod"); } parseObjectProperty(t, r, i, s) { if (t.shorthand = !1, this.eat(14)) return t.value = i ? this.parseMaybeDefault(this.state.startLoc) : this.parseMaybeAssignAllowInOrVoidPattern(8, s), this.finishObjectProperty( t); if (!t.computed && t.key.type === "Identifier") { if (this.checkReservedWord(t.key.name, t.key.loc.start, !0, !1), i) t.value = this.parseMaybeDefault(r, this.cloneIdentifier(t.key)); else if (this.match(29)) { let a = this.state.startLoc; s != null ? s.shorthandAssignLoc === null && (s.shorthandAssignLoc = a) : this.raise(R.InvalidCoverInitializedName, a), t.value = this. parseMaybeDefault(r, this.cloneIdentifier(t.key)); } else t.value = this.cloneIdentifier(t.key); return t.shorthand = !0, this.finishObjectProperty(t); } } finishObjectProperty(t) { return this.finishNode(t, "ObjectProperty"); } parseObjPropValue(t, r, i, s, a, o, u) { let l = this.parseObjectMethod(t, i, s, a, o) || this.parseObjectProperty(t, r, a, u); return l || this.unexpected(), l; } parsePropertyName(t, r) { if (this.eat(0)) t.computed = !0, t.key = this.parseMaybeAssignAllowIn(), this.expect(3); else { let { type: i, value: s } = this.state, a; if (hs(i)) a = this.parseIdentifier(!0); else switch (i) { case 135: a = this.parseNumericLiteral(s); break; case 134: a = this.parseStringLiteral(s); break; case 136: a = this.parseBigIntLiteral(s); break; case 139: { let o = this.state.startLoc; r != null ? r.privateKeyLoc === null && (r.privateKeyLoc = o) : this.raise(R.UnexpectedPrivateField, o), a = this.parsePrivateName(); break; } default: if (i === 137) { a = this.parseDecimalLiteral(s); break; } this.unexpected(); } t.key = a, i !== 139 && (t.computed = !1); } } initFunction(t, r) { t.id = null, t.generator = !1, t.async = r; } parseMethod(t, r, i, s, a, o, u = !1) { this.initFunction(t, i), t.generator = r, this.scope.enter(530 | (u ? 576 : 0) | (a ? 32 : 0)), this.prodParam.enter(Gm(i, t.generator)), this.parseFunctionParams(t, s); let l = this.parseFunctionBodyAndFinish(t, o, !0); return this.prodParam.exit(), this.scope.exit(), l; } parseArrayLike(t, r, i) { r && this.expectPlugin("recordAndTuple"); let s = this.state.inFSharpPipelineDirectBody; this.state.inFSharpPipelineDirectBody = !1; let a = this.startNode(); return this.next(), a.elements = this.parseExprList(t, !r, i, a), this.state.inFSharpPipelineDirectBody = s, this.finishNode(a, r ? "T\ upleExpression" : "ArrayExpression"); } parseArrowExpression(t, r, i, s) { this.scope.enter(518); let a = Gm(i, !1); !this.match(5) && this.prodParam.hasIn && (a |= 8), this.prodParam.enter(a), this.initFunction(t, i); let o = this.state.maybeInArrowParameters; return r && (this.state.maybeInArrowParameters = !0, this.setArrowFunctionParameters(t, r, s)), this.state.maybeInArrowParameters = !1, this.parseFunctionBody(t, !0), this.prodParam.exit(), this.scope.exit(), this.state.maybeInArrowParameters = o, this.finishNode(t, "Ar\ rowFunctionExpression"); } setArrowFunctionParameters(t, r, i) { this.toAssignableList(r, i, !1), t.params = r; } parseFunctionBodyAndFinish(t, r, i = !1) { return this.parseFunctionBody(t, !1, i), this.finishNode(t, r); } parseFunctionBody(t, r, i = !1) { let s = r && !this.match(5); if (this.expressionScope.enter(gL()), s) t.body = this.parseMaybeAssign(), this.checkParams(t, !1, r, !1); else { let a = this.state.strict, o = this.state.labels; this.state.labels = [], this.prodParam.enter(this.prodParam.currentFlags() | 4), t.body = this.parseBlock(!0, !1, (u) => { let l = !this.isSimpleParamList(t.params); u && l && this.raise(R.IllegalLanguageModeDirective, (t.kind === "method" || t.kind === "constructor") && t.key ? t.key.loc.end : t); let c = !a && this.state.strict; this.checkParams(t, !this.state.strict && !r && !i && !l, r, c), this.state.strict && t.id && this.checkIdentifier(t.id, 65, c); }), this.prodParam.exit(), this.state.labels = o; } this.expressionScope.exit(); } isSimpleParameter(t) { return t.type === "Identifier"; } isSimpleParamList(t) { for (let r = 0, i = t.length; r < i; r++) if (!this.isSimpleParameter(t[r])) return !1; return !0; } checkParams(t, r, i, s = !0) { let a = !r && /* @__PURE__ */ new Set(), o = { type: "FormalParameters" }; for (let u of t.params) this.checkLVal(u, o, 5, a, s); } parseExprList(t, r, i, s) { let a = [], o = !0; for (; !this.eat(t); ) { if (o) o = !1; else if (this.expect(12), this.match(t)) { s && this.addTrailingCommaExtraToNode(s), this.next(); break; } a.push(this.parseExprListItem(t, r, i)); } return a; } parseExprListItem(t, r, i, s) { let a; if (this.match(12)) r || this.raise(R.UnexpectedToken, this.state.curPosition(), { unexpected: "," }), a = null; else if (this.match(21)) { let o = this.state.startLoc; a = this.parseParenItem(this.parseSpread(i), o); } else if (this.match(17)) { this.expectPlugin("partialApplication"), s || this.raise(R.UnexpectedArgumentPlaceholder, this.state.startLoc); let o = this.startNode(); this.next(), a = this.finishNode(o, "ArgumentPlaceholder"); } else a = this.parseMaybeAssignAllowInOrVoidPattern(t, i, this.parseParenItem); return a; } parseIdentifier(t) { let r = this.startNode(), i = this.parseIdentifierName(t); return this.createIdentifier(r, i); } createIdentifier(t, r) { return t.name = r, t.loc.identifierName = r, this.finishNode(t, "Identifier"); } createIdentifierAt(t, r, i) { return t.name = r, t.loc.identifierName = r, this.finishNodeAt(t, "Identifier", i); } parseIdentifierName(t) { let r, { startLoc: i, type: s } = this.state; hs(s) ? r = this.state.value : this.unexpected(); let a = sPe(s); return t ? a && this.replaceToken(132) : this.checkReservedWord(r, i, a, !1), this.next(), r; } checkReservedWord(t, r, i, s) { if (t.length > 10 || !SPe(t)) return; if (i && vPe(t)) { this.raise(R.UnexpectedKeyword, r, { keyword: t }); return; } if ((this.state.strict ? s ? pL : fL : cL)(t, this.inModule)) { this.raise(R.UnexpectedReservedWord, r, { reservedWord: t }); return; } else if (t === "yield") { if (this.prodParam.hasYield) { this.raise(R.YieldBindingIdentifier, r); return; } } else if (t === "await") { if (this.prodParam.hasAwait) { this.raise(R.AwaitBindingIdentifier, r); return; } if (this.scope.inStaticBlock) { this.raise(R.AwaitBindingIdentifierInStaticBlock, r); return; } this.expressionScope.recordAsyncArrowParametersError(r); } else if (t === "arguments" && this.scope.inClassAndNotInNonArrowFunction) { this.raise(R.ArgumentsInClass, r); return; } } recordAwaitIfAllowed() { let t = this.prodParam.hasAwait; return t && !this.scope.inFunction && (this.state.hasTopLevelAwait = !0), t; } parseAwait(t) { let r = this.startNodeAt(t); return this.expressionScope.recordParameterInitializerError(R.AwaitExpressionFormalParameter, r), this.eat(55) && this.raise(R.ObsoleteAwaitStar, r), !this.scope.inFunction && !(this.optionFlags & 1) && (this.isAmbiguousPrefixOrIdentifier() ? this.ambiguousScriptDifferentAst = !0 : this.sawUnambiguousESM = !0), this.state.soloAwait || (r.argument = this.parseMaybeUnary(null, !0)), this.finishNode(r, "AwaitExpressi\ on"); } isAmbiguousPrefixOrIdentifier() { if (this.hasPrecedingLineBreak()) return !0; let { type: t } = this.state; return t === 53 || t === 10 || t === 0 || Qm(t) || t === 102 && !this.state.containsEsc || t === 138 || t === 56 || this.hasPlugin("v8\ intrinsic") && t === 54; } parseYield(t) { let r = this.startNodeAt(t); this.expressionScope.recordParameterInitializerError(R.YieldInParameter, r); let i = !1, s = null; if (!this.hasPrecedingLineBreak()) switch (i = this.eat(55), this.state.type) { case 13: case 140: case 8: case 11: case 3: case 9: case 14: case 12: if (!i) break; default: s = this.parseMaybeAssign(); } return r.delegate = i, r.argument = s, this.finishNode(r, "YieldExpression"); } parseImportCall(t) { if (this.next(), t.source = this.parseMaybeAssignAllowIn(), t.options = null, this.eat(12)) { if (this.match(11)) this.addTrailingCommaExtraToNode(t.source); else if (t.options = this.parseMaybeAssignAllowIn(), this.eat(12) && (this.addTrailingCommaExtraToNode(t.options), !this.match(11))) { do this.parseMaybeAssignAllowIn(); while (this.eat(12) && !this.match(11)); this.raise(R.ImportCallArity, t); } } return this.expect(11), this.finishNode(t, "ImportExpression"); } checkPipelineAtInfixOperator(t, r) { this.hasPlugin(["pipelineOperator", { proposal: "smart" }]) && t.type === "SequenceExpression" && this.raise(R.PipelineHeadSequenceExpression, r); } parseSmartPipelineBodyInStyle(t, r) { if (this.isSimpleReference(t)) { let i = this.startNodeAt(r); return i.callee = t, this.finishNode(i, "PipelineBareFunction"); } else { let i = this.startNodeAt(r); return this.checkSmartPipeTopicBodyEarlyErrors(r), i.expression = t, this.finishNode(i, "PipelineTopicExpression"); } } isSimpleReference(t) { switch (t.type) { case "MemberExpression": return !t.computed && this.isSimpleReference(t.object); case "Identifier": return !0; default: return !1; } } checkSmartPipeTopicBodyEarlyErrors(t) { if (this.match(19)) throw this.raise(R.PipelineBodyNoArrow, this.state.startLoc); this.topicReferenceWasUsedInCurrentContext() || this.raise(R.PipelineTopicUnused, t); } withTopicBindingContext(t) { let r = this.state.topicContext; this.state.topicContext = { maxNumOfResolvableTopics: 1, maxTopicIndex: null }; try { return t(); } finally { this.state.topicContext = r; } } withSmartMixTopicForbiddingContext(t) { if (this.hasPlugin(["pipelineOperator", { proposal: "smart" }])) { let r = this.state.topicContext; this.state.topicContext = { maxNumOfResolvableTopics: 0, maxTopicIndex: null }; try { return t(); } finally { this.state.topicContext = r; } } else return t(); } withSoloAwaitPermittingContext(t) { let r = this.state.soloAwait; this.state.soloAwait = !0; try { return t(); } finally { this.state.soloAwait = r; } } allowInAnd(t) { let r = this.prodParam.currentFlags(); if (8 & ~r) { this.prodParam.enter(r | 8); try { return t(); } finally { this.prodParam.exit(); } } return t(); } disallowInAnd(t) { let r = this.prodParam.currentFlags(); if (8 & r) { this.prodParam.enter(r & -9); try { return t(); } finally { this.prodParam.exit(); } } return t(); } registerTopicReference() { this.state.topicContext.maxTopicIndex = 0; } topicReferenceIsAllowedInCurrentContext() { return this.state.topicContext.maxNumOfResolvableTopics >= 1; } topicReferenceWasUsedInCurrentContext() { return this.state.topicContext.maxTopicIndex != null && this.state.topicContext.maxTopicIndex >= 0; } parseFSharpPipelineBody(t) { let r = this.state.startLoc; this.state.potentialArrowAt = this.state.start; let i = this.state.inFSharpPipelineDirectBody; this.state.inFSharpPipelineDirectBody = !0; let s = this.parseExprOp(this.parseMaybeUnaryOrPrivate(), r, t); return this.state.inFSharpPipelineDirectBody = i, s; } parseModuleExpression() { this.expectPlugin("moduleBlocks"); let t = this.startNode(); this.next(), this.match(5) || this.unexpected(null, 5); let r = this.startNodeAt(this.state.endLoc); this.next(); let i = this.initializeScopes(!0); this.enterInitialScopes(); try { t.body = this.parseProgram(r, 8, "module"); } finally { i(); } return this.finishNode(t, "ModuleExpression"); } parseVoidPattern(t) { this.expectPlugin("discardBinding"); let r = this.startNode(); return t != null && (t.voidPatternLoc = this.state.startLoc), this.next(), this.finishNode(r, "VoidPattern"); } parseMaybeAssignAllowInOrVoidPattern(t, r, i) { if (r != null && this.match(88)) { let s = this.lookaheadCharCode(); if (s === 44 || s === (t === 3 ? 93 : t === 8 ? 125 : 41) || s === 61) return this.parseMaybeDefault(this.state.startLoc, this.parseVoidPattern(r)); } return this.parseMaybeAssignAllowIn(r, i); } parsePropertyNamePrefixOperator(t) { } }, yT = { kind: 1 }, QPe = { kind: 2 }, e4e = /[\uD800-\uDFFF]/u, gT = /in(?:stanceof)?/y; function t4e(e, t, r) { for (let i = 0; i < e.length; i++) { let s = e[i], { type: a } = s; if (typeof a == "number") { { if (a === 139) { let { loc: o, start: u, value: l, end: c } = s, f = u + 1, m = si(o.start, 1); e.splice(i, 1, new Zs({ type: Mn(27), value: "#", start: u, end: f, startLoc: o.start, endLoc: m }), new Zs({ type: Mn(132), value: l, start: f, end: c, startLoc: m, endLoc: o.end })), i++; continue; } if (Qm(a)) { let { loc: o, start: u, value: l, end: c } = s, f = u + 1, m = si(o.start, 1), h; t.charCodeAt(u - r) === 96 ? h = new Zs({ type: Mn(22), value: "`", start: u, end: f, startLoc: o.start, endLoc: m }) : h = new Zs({ type: Mn(8), value: "}", start: u, end: f, startLoc: o.start, endLoc: m }); let d, y, p, g; a === 24 ? (y = c - 1, p = si(o.end, -1), d = l === null ? null : l.slice(1, -1), g = new Zs({ type: Mn(22), value: "`", start: y, end: c, startLoc: p, endLoc: o.end })) : (y = c - 2, p = si(o.end, -2), d = l === null ? null : l.slice(1, -2), g = new Zs({ type: Mn(23), value: "${", start: y, end: c, startLoc: p, endLoc: o.end })), e.splice(i, 1, h, new Zs({ type: Mn(20), value: d, start: f, end: y, startLoc: m, endLoc: p }), g), i += 2; continue; } } s.type = Mn(a); } } return e; } n(t4e, "babel7CompatTokens"); var LT = class extends RT { static { n(this, "StatementParser"); } parseTopLevel(t, r) { return t.program = this.parseProgram(r, 140, this.options.sourceType === "module" ? "module" : "script"), t.comments = this.comments, this. optionFlags & 256 && (t.tokens = t4e(this.tokens, this.input, this.startIndex)), this.finishNode(t, "File"); } parseProgram(t, r, i) { if (t.sourceType = i, t.interpreter = this.parseInterpreterDirective(), this.parseBlockBody(t, !0, !0, r), this.inModule) { if (!(this.optionFlags & 64) && this.scope.undefinedExports.size > 0) for (let [a, o] of Array.from(this.scope.undefinedExports)) this.raise(R.ModuleExportUndefined, o, { localName: a }); this.addExtra(t, "topLevelAwait", this.state.hasTopLevelAwait); } let s; return r === 140 ? s = this.finishNode(t, "Program") : s = this.finishNodeAt(t, "Program", si(this.state.startLoc, -1)), s; } stmtToDirective(t) { let r = this.castNodeTo(t, "Directive"), i = this.castNodeTo(t.expression, "DirectiveLiteral"), s = i.value, a = this.input.slice(this. offsetToSourcePos(i.start), this.offsetToSourcePos(i.end)), o = i.value = a.slice(1, -1); return this.addExtra(i, "raw", a), this.addExtra(i, "rawValue", o), this.addExtra(i, "expressionValue", s), r.value = i, delete t.expression, r; } parseInterpreterDirective() { if (!this.match(28)) return null; let t = this.startNode(); return t.value = this.state.value, this.next(), this.finishNode(t, "InterpreterDirective"); } isLet() { return this.isContextual(100) ? this.hasFollowingBindingAtom() : !1; } isUsing() { return this.isContextual(107) ? this.nextTokenIsIdentifierOnSameLine() : !1; } isForUsing() { if (!this.isContextual(107)) return !1; let t = this.nextTokenInLineStart(), r = this.codePointAtPos(t); if (this.isUnparsedContextual(t, "of")) { let i = this.lookaheadCharCodeSince(t + 2); if (i !== 61 && i !== 58 && i !== 59) return !1; } return !!(this.chStartsBindingIdentifier(r, t) || this.isUnparsedContextual(t, "void")); } nextTokenIsIdentifierOnSameLine() { let t = this.nextTokenInLineStart(), r = this.codePointAtPos(t); return this.chStartsBindingIdentifier(r, t); } isAwaitUsing() { if (!this.isContextual(96)) return !1; let t = this.nextTokenInLineStart(); if (this.isUnparsedContextual(t, "using")) { t = this.nextTokenInLineStartSince(t + 5); let r = this.codePointAtPos(t); if (this.chStartsBindingIdentifier(r, t)) return !0; } return !1; } chStartsBindingIdentifier(t, r) { if (en(t)) { if (gT.lastIndex = r, gT.test(this.input)) { let i = this.codePointAtPos(gT.lastIndex); if (!Wo(i) && i !== 92) return !1; } return !0; } else return t === 92; } chStartsBindingPattern(t) { return t === 91 || t === 123; } hasFollowingBindingAtom() { let t = this.nextTokenStart(), r = this.codePointAtPos(t); return this.chStartsBindingPattern(r) || this.chStartsBindingIdentifier(r, t); } hasInLineFollowingBindingIdentifierOrBrace() { let t = this.nextTokenInLineStart(), r = this.codePointAtPos(t); return r === 123 || this.chStartsBindingIdentifier(r, t); } allowsUsing() { return (this.scope.inModule || !this.scope.inTopLevel) && !this.scope.inBareCaseStatement; } parseModuleItem() { return this.parseStatementLike(15); } parseStatementListItem() { return this.parseStatementLike(6 | (!this.options.annexB || this.state.strict ? 0 : 8)); } parseStatementOrSloppyAnnexBFunctionDeclaration(t = !1) { let r = 0; return this.options.annexB && !this.state.strict && (r |= 4, t && (r |= 8)), this.parseStatementLike(r); } parseStatement() { return this.parseStatementLike(0); } parseStatementLike(t) { let r = null; return this.match(26) && (r = this.parseDecorators(!0)), this.parseStatementContent(t, r); } parseStatementContent(t, r) { let i = this.state.type, s = this.startNode(), a = !!(t & 2), o = !!(t & 4), u = t & 1; switch (i) { case 60: return this.parseBreakContinueStatement(s, !0); case 63: return this.parseBreakContinueStatement(s, !1); case 64: return this.parseDebuggerStatement(s); case 90: return this.parseDoWhileStatement(s); case 91: return this.parseForStatement(s); case 68: if (this.lookaheadCharCode() === 46) break; return o || this.raise(this.state.strict ? R.StrictFunction : this.options.annexB ? R.SloppyFunctionAnnexB : R.SloppyFunction, this. state.startLoc), this.parseFunctionStatement(s, !1, !a && o); case 80: return a || this.unexpected(), this.parseClass(this.maybeTakeDecorators(r, s), !0); case 69: return this.parseIfStatement(s); case 70: return this.parseReturnStatement(s); case 71: return this.parseSwitchStatement(s); case 72: return this.parseThrowStatement(s); case 73: return this.parseTryStatement(s); case 96: if (this.isAwaitUsing()) return this.allowsUsing() ? a ? this.recordAwaitIfAllowed() || this.raise(R.AwaitUsingNotInAsyncContext, s) : this.raise(R.UnexpectedLexicalDeclaration, s) : this.raise(R.UnexpectedUsingDeclaration, s), this.next(), this.parseVarStatement(s, "await using"); break; case 107: if (this.state.containsEsc || !this.hasInLineFollowingBindingIdentifierOrBrace()) break; return this.allowsUsing() ? a || this.raise(R.UnexpectedLexicalDeclaration, this.state.startLoc) : this.raise(R.UnexpectedUsingDeclaration, this.state.startLoc), this.parseVarStatement(s, "using"); case 100: { if (this.state.containsEsc) break; let f = this.nextTokenStart(), m = this.codePointAtPos(f); if (m !== 91 && (!a && this.hasFollowingLineBreak() || !this.chStartsBindingIdentifier(m, f) && m !== 123)) break; } case 75: a || this.raise(R.UnexpectedLexicalDeclaration, this.state.startLoc); case 74: { let f = this.state.value; return this.parseVarStatement(s, f); } case 92: return this.parseWhileStatement(s); case 76: return this.parseWithStatement(s); case 5: return this.parseBlock(); case 13: return this.parseEmptyStatement(s); case 83: { let f = this.lookaheadCharCode(); if (f === 40 || f === 46) break; } case 82: { !(this.optionFlags & 8) && !u && this.raise(R.UnexpectedImportExport, this.state.startLoc), this.next(); let f; return i === 83 ? f = this.parseImport(s) : f = this.parseExport(s, r), this.assertModuleNodeAllowed(f), f; } default: if (this.isAsyncFunction()) return a || this.raise(R.AsyncFunctionInSingleStatementContext, this.state.startLoc), this.next(), this.parseFunctionStatement(s, !0, !a && o); } let l = this.state.value, c = this.parseExpression(); return pt(i) && c.type === "Identifier" && this.eat(14) ? this.parseLabeledStatement(s, l, c, t) : this.parseExpressionStatement(s, c, r); } assertModuleNodeAllowed(t) { !(this.optionFlags & 8) && !this.inModule && this.raise(R.ImportOutsideModule, t); } decoratorsEnabledBeforeExport() { return this.hasPlugin("decorators-legacy") ? !0 : this.hasPlugin("decorators") && this.getPluginOption("decorators", "decoratorsBefore\ Export") !== !1; } maybeTakeDecorators(t, r, i) { if (t) { var s; (s = r.decorators) != null && s.length ? (typeof this.getPluginOption("decorators", "decoratorsBeforeExport") != "boolean" && this.raise( R.DecoratorsBeforeAfterExport, r.decorators[0]), r.decorators.unshift(...t)) : r.decorators = t, this.resetStartLocationFromNode(r, t[0]), i && this.resetStartLocationFromNode(i, r); } return r; } canHaveLeadingDecorator() { return this.match(80); } parseDecorators(t) { let r = []; do r.push(this.parseDecorator()); while (this.match(26)); if (this.match(82)) t || this.unexpected(), this.decoratorsEnabledBeforeExport() || this.raise(R.DecoratorExportClass, this.state.startLoc); else if (!this.canHaveLeadingDecorator()) throw this.raise(R.UnexpectedLeadingDecorator, this.state.startLoc); return r; } parseDecorator() { this.expectOnePlugin(["decorators", "decorators-legacy"]); let t = this.startNode(); if (this.next(), this.hasPlugin("decorators")) { let r = this.state.startLoc, i; if (this.match(10)) { let s = this.state.startLoc; this.next(), i = this.parseExpression(), this.expect(11), i = this.wrapParenthesis(s, i); let a = this.state.startLoc; t.expression = this.parseMaybeDecoratorArguments(i, s), this.getPluginOption("decorators", "allowCallParenthesized") === !1 && t.expression !== i && this.raise(R.DecoratorArgumentsOutsideParentheses, a); } else { for (i = this.parseIdentifier(!1); this.eat(16); ) { let s = this.startNodeAt(r); s.object = i, this.match(139) ? (this.classScope.usePrivateName(this.state.value, this.state.startLoc), s.property = this.parsePrivateName()) : s.property = this.parseIdentifier(!0), s.computed = !1, i = this.finishNode(s, "MemberExpression"); } t.expression = this.parseMaybeDecoratorArguments(i, r); } } else t.expression = this.parseExprSubscripts(); return this.finishNode(t, "Decorator"); } parseMaybeDecoratorArguments(t, r) { if (this.eat(10)) { let i = this.startNodeAt(r); return i.callee = t, i.arguments = this.parseCallExpressionArguments(), this.toReferencedList(i.arguments), this.finishNode(i, "Call\ Expression"); } return t; } parseBreakContinueStatement(t, r) { return this.next(), this.isLineTerminator() ? t.label = null : (t.label = this.parseIdentifier(), this.semicolon()), this.verifyBreakContinue( t, r), this.finishNode(t, r ? "BreakStatement" : "ContinueStatement"); } verifyBreakContinue(t, r) { let i; for (i = 0; i < this.state.labels.length; ++i) { let s = this.state.labels[i]; if ((t.label == null || s.name === t.label.name) && (s.kind != null && (r || s.kind === 1) || t.label && r)) break; } if (i === this.state.labels.length) { let s = r ? "BreakStatement" : "ContinueStatement"; this.raise(R.IllegalBreakContinue, t, { type: s }); } } parseDebuggerStatement(t) { return this.next(), this.semicolon(), this.finishNode(t, "DebuggerStatement"); } parseHeaderExpression() { this.expect(10); let t = this.parseExpression(); return this.expect(11), t; } parseDoWhileStatement(t) { return this.next(), this.state.labels.push(yT), t.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()), this.state. labels.pop(), this.expect(92), t.test = this.parseHeaderExpression(), this.eat(13), this.finishNode(t, "DoWhileStatement"); } parseForStatement(t) { this.next(), this.state.labels.push(yT); let r = null; if (this.isContextual(96) && this.recordAwaitIfAllowed() && (r = this.state.startLoc, this.next()), this.scope.enter(0), this.expect(10), this.match(13)) return r !== null && this.unexpected(r), this.parseFor(t, null); let i = this.isContextual(100); { let l = this.isAwaitUsing(), c = l || this.isForUsing(), f = i && this.hasFollowingBindingAtom() || c; if (this.match(74) || this.match(75) || f) { let m = this.startNode(), h; l ? (h = "await using", this.recordAwaitIfAllowed() || this.raise(R.AwaitUsingNotInAsyncContext, this.state.startLoc), this.next()) : h = this.state.value, this.next(), this.parseVar(m, !0, h); let d = this.finishNode(m, "VariableDeclaration"), y = this.match(58); return y && c && this.raise(R.ForInUsing, d), (y || this.isContextual(102)) && d.declarations.length === 1 ? this.parseForIn(t, d, r) : (r !== null && this.unexpected(r), this.parseFor(t, d)); } } let s = this.isContextual(95), a = new $l(), o = this.parseExpression(!0, a), u = this.isContextual(102); if (u && (i && this.raise(R.ForOfLet, o), r === null && s && o.type === "Identifier" && this.raise(R.ForOfAsync, o)), u || this.match( 58)) { this.checkDestructuringPrivate(a), this.toAssignable(o, !0); let l = u ? "ForOfStatement" : "ForInStatement"; return this.checkLVal(o, { type: l }), this.parseForIn(t, o, r); } else this.checkExpressionErrors(a, !0); return r !== null && this.unexpected(r), this.parseFor(t, o); } parseFunctionStatement(t, r, i) { return this.next(), this.parseFunction(t, 1 | (i ? 2 : 0) | (r ? 8 : 0)); } parseIfStatement(t) { return this.next(), t.test = this.parseHeaderExpression(), t.consequent = this.parseStatementOrSloppyAnnexBFunctionDeclaration(), t.alternate = this.eat(66) ? this.parseStatementOrSloppyAnnexBFunctionDeclaration() : null, this.finishNode(t, "IfStatement"); } parseReturnStatement(t) { return this.prodParam.hasReturn || this.raise(R.IllegalReturn, this.state.startLoc), this.next(), this.isLineTerminator() ? t.argument = null : (t.argument = this.parseExpression(), this.semicolon()), this.finishNode(t, "ReturnStatement"); } parseSwitchStatement(t) { this.next(), t.discriminant = this.parseHeaderExpression(); let r = t.cases = []; this.expect(5), this.state.labels.push(QPe), this.scope.enter(256); let i; for (let s; !this.match(8); ) if (this.match(61) || this.match(65)) { let a = this.match(61); i && this.finishNode(i, "SwitchCase"), r.push(i = this.startNode()), i.consequent = [], this.next(), a ? i.test = this.parseExpression() : (s && this.raise(R.MultipleDefaultsInSwitch, this.state.lastTokStartLoc), s = !0, i.test = null), this.expect(14); } else i ? i.consequent.push(this.parseStatementListItem()) : this.unexpected(); return this.scope.exit(), i && this.finishNode(i, "SwitchCase"), this.next(), this.state.labels.pop(), this.finishNode(t, "SwitchState\ ment"); } parseThrowStatement(t) { return this.next(), this.hasPrecedingLineBreak() && this.raise(R.NewlineAfterThrow, this.state.lastTokEndLoc), t.argument = this.parseExpression(), this.semicolon(), this.finishNode(t, "ThrowStatement"); } parseCatchClauseParam() { let t = this.parseBindingAtom(); return this.scope.enter(this.options.annexB && t.type === "Identifier" ? 8 : 0), this.checkLVal(t, { type: "CatchClause" }, 9), t; } parseTryStatement(t) { if (this.next(), t.block = this.parseBlock(), t.handler = null, this.match(62)) { let r = this.startNode(); this.next(), this.match(10) ? (this.expect(10), r.param = this.parseCatchClauseParam(), this.expect(11)) : (r.param = null, this.scope. enter(0)), r.body = this.withSmartMixTopicForbiddingContext(() => this.parseBlock(!1, !1)), this.scope.exit(), t.handler = this.finishNode( r, "CatchClause"); } return t.finalizer = this.eat(67) ? this.parseBlock() : null, !t.handler && !t.finalizer && this.raise(R.NoCatchOrFinally, t), this.finishNode( t, "TryStatement"); } parseVarStatement(t, r, i = !1) { return this.next(), this.parseVar(t, !1, r, i), this.semicolon(), this.finishNode(t, "VariableDeclaration"); } parseWhileStatement(t) { return this.next(), t.test = this.parseHeaderExpression(), this.state.labels.push(yT), t.body = this.withSmartMixTopicForbiddingContext( () => this.parseStatement()), this.state.labels.pop(), this.finishNode(t, "WhileStatement"); } parseWithStatement(t) { return this.state.strict && this.raise(R.StrictWith, this.state.startLoc), this.next(), t.object = this.parseHeaderExpression(), t.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()), this.finishNode(t, "WithStatement"); } parseEmptyStatement(t) { return this.next(), this.finishNode(t, "EmptyStatement"); } parseLabeledStatement(t, r, i, s) { for (let o of this.state.labels) o.name === r && this.raise(R.LabelRedeclaration, i, { labelName: r }); let a = oPe(this.state.type) ? 1 : this.match(71) ? 2 : null; for (let o = this.state.labels.length - 1; o >= 0; o--) { let u = this.state.labels[o]; if (u.statementStart === t.start) u.statementStart = this.sourceToOffsetPos(this.state.start), u.kind = a; else break; } return this.state.labels.push({ name: r, kind: a, statementStart: this.sourceToOffsetPos(this.state.start) }), t.body = s & 8 ? this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0) : this.parseStatement(), this.state.labels.pop(), t.label = i, this.finishNode(t, "LabeledStatement"); } parseExpressionStatement(t, r, i) { return t.expression = r, this.semicolon(), this.finishNode(t, "ExpressionStatement"); } parseBlock(t = !1, r = !0, i) { let s = this.startNode(); return t && this.state.strictErrors.clear(), this.expect(5), r && this.scope.enter(0), this.parseBlockBody(s, t, !1, 8, i), r && this. scope.exit(), this.finishNode(s, "BlockStatement"); } isValidDirective(t) { return t.type === "ExpressionStatement" && t.expression.type === "StringLiteral" && !t.expression.extra.parenthesized; } parseBlockBody(t, r, i, s, a) { let o = t.body = [], u = t.directives = []; this.parseBlockOrModuleBlockBody(o, r ? u : void 0, i, s, a); } parseBlockOrModuleBlockBody(t, r, i, s, a) { let o = this.state.strict, u = !1, l = !1; for (; !this.match(s); ) { let c = i ? this.parseModuleItem() : this.parseStatementListItem(); if (r && !l) { if (this.isValidDirective(c)) { let f = this.stmtToDirective(c); r.push(f), !u && f.value.value === "use strict" && (u = !0, this.setStrict(!0)); continue; } l = !0, this.state.strictErrors.clear(); } t.push(c); } a?.call(this, u), o || this.setStrict(!1), this.next(); } parseFor(t, r) { return t.init = r, this.semicolon(!1), t.test = this.match(13) ? null : this.parseExpression(), this.semicolon(!1), t.update = this.match( 11) ? null : this.parseExpression(), this.expect(11), t.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()), this. scope.exit(), this.state.labels.pop(), this.finishNode(t, "ForStatement"); } parseForIn(t, r, i) { let s = this.match(58); return this.next(), s ? i !== null && this.unexpected(i) : t.await = i !== null, r.type === "VariableDeclaration" && r.declarations[0]. init != null && (!s || !this.options.annexB || this.state.strict || r.kind !== "var" || r.declarations[0].id.type !== "Identifier") && this.raise(R.ForInOfLoopInitializer, r, { type: s ? "ForInStatement" : "ForOfStatement" }), r.type === "AssignmentPattern" && this.raise(R.InvalidLhs, r, { ancestor: { type: "ForStatement" } }), t.left = r, t.right = s ? this.parseExpression() : this.parseMaybeAssignAllowIn(), this.expect(11), t.body = this.withSmartMixTopicForbiddingContext( () => this.parseStatement()), this.scope.exit(), this.state.labels.pop(), this.finishNode(t, s ? "ForInStatement" : "ForOfStatement"); } parseVar(t, r, i, s = !1) { let a = t.declarations = []; for (t.kind = i; ; ) { let o = this.startNode(); if (this.parseVarId(o, i), o.init = this.eat(29) ? r ? this.parseMaybeAssignDisallowIn() : this.parseMaybeAssignAllowIn() : null, o. init === null && !s && (o.id.type !== "Identifier" && !(r && (this.match(58) || this.isContextual(102))) ? this.raise(R.DeclarationMissingInitializer, this.state.lastTokEndLoc, { kind: "destructuring" }) : (i === "const" || i === "using" || i === "await using") && !(this.match(58) || this.isContextual(102)) && this.raise(R.DeclarationMissingInitializer, this.state.lastTokEndLoc, { kind: i })), a.push(this.finishNode(o, "VariableDeclarator")), !this.eat(12)) break; } return t; } parseVarId(t, r) { let i = this.parseBindingAtom(); r === "using" || r === "await using" ? (i.type === "ArrayPattern" || i.type === "ObjectPattern") && this.raise(R.UsingDeclarationHasBindingPattern, i.loc.start) : i.type === "VoidPattern" && this.raise(R.UnexpectedVoidPattern, i.loc.start), this.checkLVal(i, { type: "VariableDeclarator" }, r === "var" ? 5 : 8201), t.id = i; } parseAsyncFunctionExpression(t) { return this.parseFunction(t, 8); } parseFunction(t, r = 0) { let i = r & 2, s = !!(r & 1), a = s && !(r & 4), o = !!(r & 8); this.initFunction(t, o), this.match(55) && (i && this.raise(R.GeneratorInSingleStatementContext, this.state.startLoc), this.next(), t. generator = !0), s && (t.id = this.parseFunctionId(a)); let u = this.state.maybeInArrowParameters; return this.state.maybeInArrowParameters = !1, this.scope.enter(514), this.prodParam.enter(Gm(o, t.generator)), s || (t.id = this.parseFunctionId()), this.parseFunctionParams(t, !1), this.withSmartMixTopicForbiddingContext(() => { this.parseFunctionBodyAndFinish(t, s ? "FunctionDeclaration" : "FunctionExpression"); }), this.prodParam.exit(), this.scope.exit(), s && !i && this.registerFunctionStatementId(t), this.state.maybeInArrowParameters = u, t; } parseFunctionId(t) { return t || pt(this.state.type) ? this.parseIdentifier() : null; } parseFunctionParams(t, r) { this.expect(10), this.expressionScope.enter(jPe()), t.params = this.parseBindingList(11, 41, 2 | (r ? 4 : 0)), this.expressionScope.exit(); } registerFunctionStatementId(t) { t.id && this.scope.declareName(t.id.name, !this.options.annexB || this.state.strict || t.generator || t.async ? this.scope.treatFunctionsAsVar ? 5 : 8201 : 17, t.id.loc.start); } parseClass(t, r, i) { this.next(); let s = this.state.strict; return this.state.strict = !0, this.parseClassId(t, r, i), this.parseClassSuper(t), t.body = this.parseClassBody(!!t.superClass, s), this. finishNode(t, r ? "ClassDeclaration" : "ClassExpression"); } isClassProperty() { return this.match(29) || this.match(13) || this.match(8); } isClassMethod() { return this.match(10); } nameIsConstructor(t) { return t.type === "Identifier" && t.name === "constructor" || t.type === "StringLiteral" && t.value === "constructor"; } isNonstaticConstructor(t) { return !t.computed && !t.static && this.nameIsConstructor(t.key); } parseClassBody(t, r) { this.classScope.enter(); let i = { hadConstructor: !1, hadSuperClass: t }, s = [], a = this.startNode(); if (a.body = [], this.expect(5), this.withSmartMixTopicForbiddingContext(() => { for (; !this.match(8); ) { if (this.eat(13)) { if (s.length > 0) throw this.raise(R.DecoratorSemicolon, this.state.lastTokEndLoc); continue; } if (this.match(26)) { s.push(this.parseDecorator()); continue; } let o = this.startNode(); s.length && (o.decorators = s, this.resetStartLocationFromNode(o, s[0]), s = []), this.parseClassMember(a, o, i), o.kind === "cons\ tructor" && o.decorators && o.decorators.length > 0 && this.raise(R.DecoratorConstructor, o); } }), this.state.strict = r, this.next(), s.length) throw this.raise(R.TrailingDecorator, this.state.startLoc); return this.classScope.exit(), this.finishNode(a, "ClassBody"); } parseClassMemberFromModifier(t, r) { let i = this.parseIdentifier(!0); if (this.isClassMethod()) { let s = r; return s.kind = "method", s.computed = !1, s.key = i, s.static = !1, this.pushClassMethod(t, s, !1, !1, !1, !1), !0; } else if (this.isClassProperty()) { let s = r; return s.computed = !1, s.key = i, s.static = !1, t.body.push(this.parseClassProperty(s)), !0; } return this.resetPreviousNodeTrailingComments(i), !1; } parseClassMember(t, r, i) { let s = this.isContextual(106); if (s) { if (this.parseClassMemberFromModifier(t, r)) return; if (this.eat(5)) { this.parseClassStaticBlock(t, r); return; } } this.parseClassMemberWithIsStatic(t, r, i, s); } parseClassMemberWithIsStatic(t, r, i, s) { let a = r, o = r, u = r, l = r, c = r, f = a, m = a; if (r.static = s, this.parsePropertyNamePrefixOperator(r), this.eat(55)) { f.kind = "method"; let b = this.match(139); if (this.parseClassElementName(f), this.parsePostMemberNameModifiers(f), b) { this.pushClassPrivateMethod(t, o, !0, !1); return; } this.isNonstaticConstructor(a) && this.raise(R.ConstructorIsGenerator, a.key), this.pushClassMethod(t, a, !0, !1, !1, !1); return; } let h = !this.state.containsEsc && pt(this.state.type), d = this.parseClassElementName(r), y = h ? d.name : null, p = this.isPrivateName( d), g = this.state.startLoc; if (this.parsePostMemberNameModifiers(m), this.isClassMethod()) { if (f.kind = "method", p) { this.pushClassPrivateMethod(t, o, !1, !1); return; } let b = this.isNonstaticConstructor(a), D = !1; b && (a.kind = "constructor", i.hadConstructor && !this.hasPlugin("typescript") && this.raise(R.DuplicateConstructor, d), b && this. hasPlugin("typescript") && r.override && this.raise(R.OverrideOnConstructor, d), i.hadConstructor = !0, D = i.hadSuperClass), this.pushClassMethod( t, a, !1, !1, b, D); } else if (this.isClassProperty()) p ? this.pushClassPrivateProperty(t, l) : this.pushClassProperty(t, u); else if (y === "async" && !this.isLineTerminator()) { this.resetPreviousNodeTrailingComments(d); let b = this.eat(55); m.optional && this.unexpected(g), f.kind = "method"; let D = this.match(139); this.parseClassElementName(f), this.parsePostMemberNameModifiers(m), D ? this.pushClassPrivateMethod(t, o, b, !0) : (this.isNonstaticConstructor( a) && this.raise(R.ConstructorIsAsync, a.key), this.pushClassMethod(t, a, b, !0, !1, !1)); } else if ((y === "get" || y === "set") && !(this.match(55) && this.isLineTerminator())) { this.resetPreviousNodeTrailingComments(d), f.kind = y; let b = this.match(139); this.parseClassElementName(a), b ? this.pushClassPrivateMethod(t, o, !1, !1) : (this.isNonstaticConstructor(a) && this.raise(R.ConstructorIsAccessor, a.key), this.pushClassMethod(t, a, !1, !1, !1, !1)), this.checkGetterSetterParams(a); } else if (y === "accessor" && !this.isLineTerminator()) { this.expectPlugin("decoratorAutoAccessors"), this.resetPreviousNodeTrailingComments(d); let b = this.match(139); this.parseClassElementName(u), this.pushClassAccessorProperty(t, c, b); } else this.isLineTerminator() ? p ? this.pushClassPrivateProperty(t, l) : this.pushClassProperty(t, u) : this.unexpected(); } parseClassElementName(t) { let { type: r, value: i } = this.state; if ((r === 132 || r === 134) && t.static && i === "prototype" && this.raise(R.StaticPrototype, this.state.startLoc), r === 139) { i === "constructor" && this.raise(R.ConstructorClassPrivateField, this.state.startLoc); let s = this.parsePrivateName(); return t.key = s, s; } return this.parsePropertyName(t), t.key; } parseClassStaticBlock(t, r) { var i; this.scope.enter(720); let s = this.state.labels; this.state.labels = [], this.prodParam.enter(0); let a = r.body = []; this.parseBlockOrModuleBlockBody(a, void 0, !1, 8), this.prodParam.exit(), this.scope.exit(), this.state.labels = s, t.body.push(this. finishNode(r, "StaticBlock")), (i = r.decorators) != null && i.length && this.raise(R.DecoratorStaticBlock, r); } pushClassProperty(t, r) { !r.computed && this.nameIsConstructor(r.key) && this.raise(R.ConstructorClassField, r.key), t.body.push(this.parseClassProperty(r)); } pushClassPrivateProperty(t, r) { let i = this.parseClassPrivateProperty(r); t.body.push(i), this.classScope.declarePrivateName(this.getPrivateNameSV(i.key), 0, i.key.loc.start); } pushClassAccessorProperty(t, r, i) { !i && !r.computed && this.nameIsConstructor(r.key) && this.raise(R.ConstructorClassField, r.key); let s = this.parseClassAccessorProperty(r); t.body.push(s), i && this.classScope.declarePrivateName(this.getPrivateNameSV(s.key), 0, s.key.loc.start); } pushClassMethod(t, r, i, s, a, o) { t.body.push(this.parseMethod(r, i, s, a, o, "ClassMethod", !0)); } pushClassPrivateMethod(t, r, i, s) { let a = this.parseMethod(r, i, s, !1, !1, "ClassPrivateMethod", !0); t.body.push(a); let o = a.kind === "get" ? a.static ? 6 : 2 : a.kind === "set" ? a.static ? 5 : 1 : 0; this.declareClassPrivateMethodInScope(a, o); } declareClassPrivateMethodInScope(t, r) { this.classScope.declarePrivateName(this.getPrivateNameSV(t.key), r, t.key.loc.start); } parsePostMemberNameModifiers(t) { } parseClassPrivateProperty(t) { return this.parseInitializer(t), this.semicolon(), this.finishNode(t, "ClassPrivateProperty"); } parseClassProperty(t) { return this.parseInitializer(t), this.semicolon(), this.finishNode(t, "ClassProperty"); } parseClassAccessorProperty(t) { return this.parseInitializer(t), this.semicolon(), this.finishNode(t, "ClassAccessorProperty"); } parseInitializer(t) { this.scope.enter(592), this.expressionScope.enter(gL()), this.prodParam.enter(0), t.value = this.eat(29) ? this.parseMaybeAssignAllowIn() : null, this.expressionScope.exit(), this.prodParam.exit(), this.scope.exit(); } parseClassId(t, r, i, s = 8331) { if (pt(this.state.type)) t.id = this.parseIdentifier(), r && this.declareNameFromIdentifier(t.id, s); else if (i || !r) t.id = null; else throw this.raise(R.MissingClassName, this.state.startLoc); } parseClassSuper(t) { t.superClass = this.eat(81) ? this.parseExprSubscripts() : null; } parseExport(t, r) { let i = this.parseMaybeImportPhase(t, !0), s = this.maybeParseExportDefaultSpecifier(t, i), a = !s || this.eat(12), o = a && this.eatExportStar( t), u = o && this.maybeParseExportNamespaceSpecifier(t), l = a && (!u || this.eat(12)), c = s || o; if (o && !u) { if (s && this.unexpected(), r) throw this.raise(R.UnsupportedDecoratorExport, t); return this.parseExportFrom(t, !0), this.sawUnambiguousESM = !0, this.finishNode(t, "ExportAllDeclaration"); } let f = this.maybeParseExportNamedSpecifiers(t); s && a && !o && !f && this.unexpected(null, 5), u && l && this.unexpected(null, 98); let m; if (c || f) { if (m = !1, r) throw this.raise(R.UnsupportedDecoratorExport, t); this.parseExportFrom(t, c); } else m = this.maybeParseExportDeclaration(t); if (c || f || m) { var h; let d = t; if (this.checkExport(d, !0, !1, !!d.source), ((h = d.declaration) == null ? void 0 : h.type) === "ClassDeclaration") this.maybeTakeDecorators(r, d.declaration, d); else if (r) throw this.raise(R.UnsupportedDecoratorExport, t); return this.sawUnambiguousESM = !0, this.finishNode(d, "ExportNamedDeclaration"); } if (this.eat(65)) { let d = t, y = this.parseExportDefaultExpression(); if (d.declaration = y, y.type === "ClassDeclaration") this.maybeTakeDecorators(r, y, d); else if (r) throw this.raise(R.UnsupportedDecoratorExport, t); return this.checkExport(d, !0, !0), this.sawUnambiguousESM = !0, this.finishNode(d, "ExportDefaultDeclaration"); } throw this.unexpected(null, 5); } eatExportStar(t) { return this.eat(55); } maybeParseExportDefaultSpecifier(t, r) { if (r || this.isExportDefaultSpecifier()) { this.expectPlugin("exportDefaultFrom", r?.loc.start); let i = r || this.parseIdentifier(!0), s = this.startNodeAtNode(i); return s.exported = i, t.specifiers = [this.finishNode(s, "ExportDefaultSpecifier")], !0; } return !1; } maybeParseExportNamespaceSpecifier(t) { if (this.isContextual(93)) { var r, i; (i = (r = t).specifiers) != null || (r.specifiers = []); let s = this.startNodeAt(this.state.lastTokStartLoc); return this.next(), s.exported = this.parseModuleExportName(), t.specifiers.push(this.finishNode(s, "ExportNamespaceSpecifier")), !0; } return !1; } maybeParseExportNamedSpecifiers(t) { if (this.match(5)) { let r = t; r.specifiers || (r.specifiers = []); let i = r.exportKind === "type"; return r.specifiers.push(...this.parseExportSpecifiers(i)), r.source = null, this.hasPlugin("importAssertions") ? r.assertions = [] : r.attributes = [], r.declaration = null, !0; } return !1; } maybeParseExportDeclaration(t) { return this.shouldParseExportDeclaration() ? (t.specifiers = [], t.source = null, this.hasPlugin("importAssertions") ? t.assertions = [] : t.attributes = [], t.declaration = this.parseExportDeclaration(t), !0) : !1; } isAsyncFunction() { if (!this.isContextual(95)) return !1; let t = this.nextTokenInLineStart(); return this.isUnparsedContextual(t, "function"); } parseExportDefaultExpression() { let t = this.startNode(); if (this.match(68)) return this.next(), this.parseFunction(t, 5); if (this.isAsyncFunction()) return this.next(), this.next(), this.parseFunction(t, 13); if (this.match(80)) return this.parseClass(t, !0, !0); if (this.match(26)) return this.hasPlugin("decorators") && this.getPluginOption("decorators", "decoratorsBeforeExport") === !0 && this.raise(R.DecoratorBeforeExport, this.state.startLoc), this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1), this.startNode()), !0, !0); if (this.match(75) || this.match(74) || this.isLet() || this.isUsing() || this.isAwaitUsing()) throw this.raise(R.UnsupportedDefaultExport, this.state.startLoc); let r = this.parseMaybeAssignAllowIn(); return this.semicolon(), r; } parseExportDeclaration(t) { return this.match(80) ? this.parseClass(this.startNode(), !0, !1) : this.parseStatementListItem(); } isExportDefaultSpecifier() { let { type: t } = this.state; if (pt(t)) { if (t === 95 && !this.state.containsEsc || t === 100) return !1; if ((t === 130 || t === 129) && !this.state.containsEsc) { let s = this.nextTokenStart(), a = this.input.charCodeAt(s); if (a === 123 || this.chStartsBindingIdentifier(a, s) && !this.input.startsWith("from", s)) return this.expectOnePlugin(["flow", "typescript"]), !1; } } else if (!this.match(65)) return !1; let r = this.nextTokenStart(), i = this.isUnparsedContextual(r, "from"); if (this.input.charCodeAt(r) === 44 || pt(this.state.type) && i) return !0; if (this.match(65) && i) { let s = this.input.charCodeAt(this.nextTokenStartSince(r + 4)); return s === 34 || s === 39; } return !1; } parseExportFrom(t, r) { this.eatContextual(98) ? (t.source = this.parseImportSource(), this.checkExport(t), this.maybeParseImportAttributes(t), this.checkJSONModuleImport( t)) : r && this.unexpected(), this.semicolon(); } shouldParseExportDeclaration() { let { type: t } = this.state; return t === 26 && (this.expectOnePlugin(["decorators", "decorators-legacy"]), this.hasPlugin("decorators")) ? (this.getPluginOption("\ decorators", "decoratorsBeforeExport") === !0 && this.raise(R.DecoratorBeforeExport, this.state.startLoc), !0) : this.isUsing() ? (this.raise( R.UsingDeclarationExport, this.state.startLoc), !0) : this.isAwaitUsing() ? (this.raise(R.UsingDeclarationExport, this.state.startLoc), !0) : t === 74 || t === 75 || t === 68 || t === 80 || this.isLet() || this.isAsyncFunction(); } checkExport(t, r, i, s) { if (r) { var a; if (i) { if (this.checkDuplicateExports(t, "default"), this.hasPlugin("exportDefaultFrom")) { var o; let u = t.declaration; u.type === "Identifier" && u.name === "from" && u.end - u.start === 4 && !((o = u.extra) != null && o.parenthesized) && this.raise( R.ExportDefaultFromAsIdentifier, u); } } else if ((a = t.specifiers) != null && a.length) for (let u of t.specifiers) { let { exported: l } = u, c = l.type === "Identifier" ? l.name : l.value; if (this.checkDuplicateExports(u, c), !s && u.local) { let { local: f } = u; f.type !== "Identifier" ? this.raise(R.ExportBindingIsString, u, { localName: f.value, exportName: c }) : (this.checkReservedWord(f.name, f.loc.start, !0, !1), this.scope.checkLocalExport(f)); } } else if (t.declaration) { let u = t.declaration; if (u.type === "FunctionDeclaration" || u.type === "ClassDeclaration") { let { id: l } = u; if (!l) throw new Error("Assertion failure"); this.checkDuplicateExports(t, l.name); } else if (u.type === "VariableDeclaration") for (let l of u.declarations) this.checkDeclaration(l.id); } } } checkDeclaration(t) { if (t.type === "Identifier") this.checkDuplicateExports(t, t.name); else if (t.type === "ObjectPattern") for (let r of t.properties) this.checkDeclaration(r); else if (t.type === "ArrayPattern") for (let r of t.elements) r && this.checkDeclaration(r); else t.type === "ObjectProperty" ? this.checkDeclaration(t.value) : t.type === "RestElement" ? this.checkDeclaration(t.argument) : t.type === "AssignmentPattern" && this.checkDeclaration(t.left); } checkDuplicateExports(t, r) { this.exportedIdentifiers.has(r) && (r === "default" ? this.raise(R.DuplicateDefaultExport, t) : this.raise(R.DuplicateExport, t, { exportName: r })), this.exportedIdentifiers.add(r); } parseExportSpecifiers(t) { let r = [], i = !0; for (this.expect(5); !this.eat(8); ) { if (i) i = !1; else if (this.expect(12), this.eat(8)) break; let s = this.isContextual(130), a = this.match(134), o = this.startNode(); o.local = this.parseModuleExportName(), r.push(this.parseExportSpecifier(o, a, t, s)); } return r; } parseExportSpecifier(t, r, i, s) { return this.eatContextual(93) ? t.exported = this.parseModuleExportName() : r ? t.exported = this.cloneStringLiteral(t.local) : t.exported || (t.exported = this.cloneIdentifier(t.local)), this.finishNode(t, "ExportSpecifier"); } parseModuleExportName() { if (this.match(134)) { let t = this.parseStringLiteral(this.state.value), r = e4e.exec(t.value); return r && this.raise(R.ModuleExportNameHasLoneSurrogate, t, { surrogateCharCode: r[0].charCodeAt(0) }), t; } return this.parseIdentifier(!0); } isJSONModuleImport(t) { return t.assertions != null ? t.assertions.some(({ key: r, value: i }) => i.value === "json" && (r.type === "Identifier" ? r.name === "type" : r.value === "type")) : !1; } checkImportReflection(t) { let { specifiers: r } = t, i = r.length === 1 ? r[0].type : null; if (t.phase === "source") i !== "ImportDefaultSpecifier" && this.raise(R.SourcePhaseImportRequiresDefault, r[0].loc.start); else if (t.phase === "defer") i !== "ImportNamespaceSpecifier" && this.raise(R.DeferImportRequiresNamespace, r[0].loc.start); else if (t.module) { var s; i !== "ImportDefaultSpecifier" && this.raise(R.ImportReflectionNotBinding, r[0].loc.start), ((s = t.assertions) == null ? void 0 : s. length) > 0 && this.raise(R.ImportReflectionHasAssertion, r[0].loc.start); } } checkJSONModuleImport(t) { if (this.isJSONModuleImport(t) && t.type !== "ExportAllDeclaration") { let { specifiers: r } = t; if (r != null) { let i = r.find((s) => { let a; if (s.type === "ExportSpecifier" ? a = s.local : s.type === "ImportSpecifier" && (a = s.imported), a !== void 0) return a.type === "Identifier" ? a.name !== "default" : a.value !== "default"; }); i !== void 0 && this.raise(R.ImportJSONBindingNotDefault, i.loc.start); } } } isPotentialImportPhase(t) { return t ? !1 : this.isContextual(105) || this.isContextual(97) || this.isContextual(127); } applyImportPhase(t, r, i, s) { r || (i === "module" ? (this.expectPlugin("importReflection", s), t.module = !0) : this.hasPlugin("importReflection") && (t.module = !1), i === "source" ? (this.expectPlugin("sourcePhaseImports", s), t.phase = "source") : i === "defer" ? (this.expectPlugin("deferredImport\ Evaluation", s), t.phase = "defer") : this.hasPlugin("sourcePhaseImports") && (t.phase = null)); } parseMaybeImportPhase(t, r) { if (!this.isPotentialImportPhase(r)) return this.applyImportPhase(t, r, null), null; let i = this.startNode(), s = this.parseIdentifierName(!0), { type: a } = this.state; return (hs(a) ? a !== 98 || this.lookaheadCharCode() === 102 : a !== 12) ? (this.applyImportPhase(t, r, s, i.loc.start), null) : (this. applyImportPhase(t, r, null), this.createIdentifier(i, s)); } isPrecedingIdImportPhase(t) { let { type: r } = this.state; return pt(r) ? r !== 98 || this.lookaheadCharCode() === 102 : r !== 12; } parseImport(t) { return this.match(134) ? this.parseImportSourceAndAttributes(t) : this.parseImportSpecifiersAndAfter(t, this.parseMaybeImportPhase(t, !1)); } parseImportSpecifiersAndAfter(t, r) { t.specifiers = []; let s = !this.maybeParseDefaultImportSpecifier(t, r) || this.eat(12), a = s && this.maybeParseStarImportSpecifier(t); return s && !a && this.parseNamedImportSpecifiers(t), this.expectContextual(98), this.parseImportSourceAndAttributes(t); } parseImportSourceAndAttributes(t) { var r; return (r = t.specifiers) != null || (t.specifiers = []), t.source = this.parseImportSource(), this.maybeParseImportAttributes(t), this. checkImportReflection(t), this.checkJSONModuleImport(t), this.semicolon(), this.sawUnambiguousESM = !0, this.finishNode(t, "ImportDecl\ aration"); } parseImportSource() { return this.match(134) || this.unexpected(), this.parseExprAtom(); } parseImportSpecifierLocal(t, r, i) { r.local = this.parseIdentifier(), t.specifiers.push(this.finishImportSpecifier(r, i)); } finishImportSpecifier(t, r, i = 8201) { return this.checkLVal(t.local, { type: r }, i), this.finishNode(t, r); } parseImportAttributes() { this.expect(5); let t = [], r = /* @__PURE__ */ new Set(); do { if (this.match(8)) break; let i = this.startNode(), s = this.state.value; if (r.has(s) && this.raise(R.ModuleAttributesWithDuplicateKeys, this.state.startLoc, { key: s }), r.add(s), this.match(134) ? i.key = this.parseStringLiteral(s) : i.key = this.parseIdentifier(!0), this.expect(14), !this.match( 134)) throw this.raise(R.ModuleAttributeInvalidValue, this.state.startLoc); i.value = this.parseStringLiteral(this.state.value), t.push(this.finishNode(i, "ImportAttribute")); } while (this.eat(12)); return this.expect(8), t; } parseModuleAttributes() { let t = [], r = /* @__PURE__ */ new Set(); do { let i = this.startNode(); if (i.key = this.parseIdentifier(!0), i.key.name !== "type" && this.raise(R.ModuleAttributeDifferentFromType, i.key), r.has(i.key.name) && this.raise(R.ModuleAttributesWithDuplicateKeys, i.key, { key: i.key.name }), r.add(i.key.name), this.expect(14), !this.match(134)) throw this.raise(R.ModuleAttributeInvalidValue, this.state.startLoc); i.value = this.parseStringLiteral(this.state.value), t.push(this.finishNode(i, "ImportAttribute")); } while (this.eat(12)); return t; } maybeParseImportAttributes(t) { let r; var i = !1; if (this.match(76)) { if (this.hasPrecedingLineBreak() && this.lookaheadCharCode() === 40) return; this.next(), this.hasPlugin("moduleAttributes") ? (r = this.parseModuleAttributes(), this.addExtra(t, "deprecatedWithLegacySyntax", !0)) : r = this.parseImportAttributes(), i = !0; } else this.isContextual(94) && !this.hasPrecedingLineBreak() ? (!this.hasPlugin("deprecatedImportAssert") && !this.hasPlugin("importA\ ssertions") && this.raise(R.ImportAttributesUseAssert, this.state.startLoc), this.hasPlugin("importAssertions") || this.addExtra(t, "depreca\ tedAssertSyntax", !0), this.next(), r = this.parseImportAttributes()) : r = []; !i && this.hasPlugin("importAssertions") ? t.assertions = r : t.attributes = r; } maybeParseDefaultImportSpecifier(t, r) { if (r) { let i = this.startNodeAtNode(r); return i.local = r, t.specifiers.push(this.finishImportSpecifier(i, "ImportDefaultSpecifier")), !0; } else if (hs(this.state.type)) return this.parseImportSpecifierLocal(t, this.startNode(), "ImportDefaultSpecifier"), !0; return !1; } maybeParseStarImportSpecifier(t) { if (this.match(55)) { let r = this.startNode(); return this.next(), this.expectContextual(93), this.parseImportSpecifierLocal(t, r, "ImportNamespaceSpecifier"), !0; } return !1; } parseNamedImportSpecifiers(t) { let r = !0; for (this.expect(5); !this.eat(8); ) { if (r) r = !1; else { if (this.eat(14)) throw this.raise(R.DestructureNamedImport, this.state.startLoc); if (this.expect(12), this.eat(8)) break; } let i = this.startNode(), s = this.match(134), a = this.isContextual(130); i.imported = this.parseModuleExportName(); let o = this.parseImportSpecifier(i, s, t.importKind === "type" || t.importKind === "typeof", a, void 0); t.specifiers.push(o); } } parseImportSpecifier(t, r, i, s, a) { if (this.eatContextual(93)) t.local = this.parseIdentifier(); else { let { imported: o } = t; if (r) throw this.raise(R.ImportBindingIsString, t, { importName: o.value }); this.checkReservedWord(o.name, t.loc.start, !0, !0), t.local || (t.local = this.cloneIdentifier(o)); } return this.finishImportSpecifier(t, "ImportSpecifier", a); } isThisParam(t) { return t.type === "Identifier" && t.name === "this"; } }, ty = class extends LT { static { n(this, "Parser"); } constructor(t, r, i) { let s = Q3e(t); super(s, r), this.options = s, this.initializeScopes(), this.plugins = i, this.filename = s.sourceFilename, this.startIndex = s.startIndex; let a = 0; s.allowAwaitOutsideFunction && (a |= 1), s.allowReturnOutsideFunction && (a |= 2), s.allowImportExportEverywhere && (a |= 8), s.allowSuperOutsideMethod && (a |= 16), s.allowUndeclaredExports && (a |= 64), s.allowNewTargetOutsideFunction && (a |= 4), s.allowYieldOutsideFunction && (a |= 32), s.ranges && (a |= 128), s.tokens && (a |= 256), s.createImportExpressions && (a |= 512), s.createParenthesizedExpressions && (a |= 1024), s.errorRecovery && (a |= 2048), s.attachComment && (a |= 4096), s.annexB && (a |= 8192), this.optionFlags = a; } getScopeHandler() { return qd; } parse() { this.enterInitialScopes(); let t = this.startNode(), r = this.startNode(); this.nextToken(), t.errors = null; let i = this.parseTopLevel(t, r); return i.errors = this.state.errors, i.comments.length = this.state.commentsLen, i; } }; function r4e(e, t) { var r; if (((r = t) == null ? void 0 : r.sourceType) === "unambiguous") { t = Object.assign({}, t); try { t.sourceType = "module"; let i = Rd(t, e), s = i.parse(); if (i.sawUnambiguousESM) return s; if (i.ambiguousScriptDifferentAst) try { return t.sourceType = "script", Rd(t, e).parse(); } catch { } else s.program.sourceType = "script"; return s; } catch (i) { try { return t.sourceType = "script", Rd(t, e).parse(); } catch { } throw i; } } else return Rd(t, e).parse(); } n(r4e, "parse"); function i4e(e, t) { let r = Rd(t, e); return r.options.strictMode && (r.state.strict = !0), r.getExpression(); } n(i4e, "parseExpression"); function s4e(e) { let t = {}; for (let r of Object.keys(e)) t[r] = Mn(e[r]); return t; } n(s4e, "generateExportedTokenTypes"); var n4e = s4e(iPe); function Rd(e, t) { let r = ty, i = /* @__PURE__ */ new Map(); if (e != null && e.plugins) { for (let s of e.plugins) { let a, o; typeof s == "string" ? a = s : [a, o] = s, i.has(a) || i.set(a, o || {}); } GPe(i), r = a4e(i); } return new r(e, t, i); } n(Rd, "getParser"); var aL = /* @__PURE__ */ new Map(); function a4e(e) { let t = []; for (let s of ZPe) e.has(s) && t.push(s); let r = t.join("|"), i = aL.get(r); if (!i) { i = ty; for (let s of t) i = vL[s](i); aL.set(r, i); } return i; } n(a4e, "getParserClass"); $d.parse = r4e; $d.parseExpression = i4e; $d.tokTypes = n4e; }); // ../node_modules/js-tokens/index.js var xL = E((ry) => { Object.defineProperty(ry, "__esModule", { value: !0 }); ry.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g; ry.matchToToken = function(e) { var t = { type: "invalid", value: e[0], closed: void 0 }; return e[1] ? (t.type = "string", t.closed = !!(e[3] || e[4])) : e[5] ? t.type = "comment" : e[6] ? (t.type = "comment", t.closed = !!e[7]) : e[8] ? t.type = "regex" : e[9] ? t.type = "number" : e[10] ? t.type = "name" : e[11] ? t.type = "punctuator" : e[12] && (t.type = "white\ space"), t; }; }); // ../node_modules/@babel/code-frame/lib/index.js var Wd = E((Vd) => { "use strict"; Object.defineProperty(Vd, "__esModule", { value: !0 }); var JT = Mh(), EL = xL(), SL = Ol(); function o4e() { return typeof process == "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? !1 : JT.isColorSupported; } n(o4e, "isColorSupported"); var iy = /* @__PURE__ */ n((e, t) => (r) => e(t(r)), "compose"); function wL(e) { return { keyword: e.cyan, capitalized: e.yellow, jsxIdentifier: e.yellow, punctuator: e.yellow, number: e.magenta, string: e.green, regex: e.magenta, comment: e.gray, invalid: iy(iy(e.white, e.bgRed), e.bold), gutter: e.gray, marker: iy(e.red, e.bold), message: iy(e.red, e.bold), reset: e.reset }; } n(wL, "buildDefs"); var u4e = wL(JT.createColors(!0)), l4e = wL(JT.createColors(!1)); function AL(e) { return e ? u4e : l4e; } n(AL, "getDefs"); var c4e = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]), f4e = /\r\n|[\n\r\u2028\u2029]/, d4e = /^[()[\]{}]$/, _L; { let e = /^[a-z][\w-]*$/i, t = /* @__PURE__ */ n(function(r, i, s) { if (r.type === "name") { if (SL.isKeyword(r.value) || SL.isStrictReservedWord(r.value, !0) || c4e.has(r.value)) return "keyword"; if (e.test(r.value) && (s[i - 1] === "<" || s.slice(i - 2, i) === " t[i](a)).join(` `) : r += s; return r; } n(PL, "highlight"); var TL = !1, CL = /\r\n|[\n\r\u2028\u2029]/; function p4e(e, t, r) { let i = Object.assign({ column: 0, line: -1 }, e.start), s = Object.assign({}, i, e.end), { linesAbove: a = 2, linesBelow: o = 3 } = r || {}, u = i.line, l = i.column, c = s.line, f = s.column, m = Math.max(u - (a + 1), 0), h = Math.min(t.length, c + o); u === -1 && (m = 0), c === -1 && (h = t.length); let d = c - u, y = {}; if (d) for (let p = 0; p <= d; p++) { let g = p + u; if (!l) y[g] = !0; else if (p === 0) { let b = t[g - 1].length; y[g] = [l, b - l + 1]; } else if (p === d) y[g] = [0, f]; else { let b = t[g - p].length; y[g] = [0, b]; } } else l === f ? l ? y[u] = [l, 0] : y[u] = !0 : y[u] = [l, f - l]; return { start: m, end: h, markerLines: y }; } n(p4e, "getMarkerLines"); function FL(e, t, r = {}) { let i = r.forceColor || o4e() && r.highlightCode, s = AL(i), a = e.split(CL), { start: o, end: u, markerLines: l } = p4e(t, a, r), c = t.start && typeof t.start.column == "number", f = String(u).length, h = (i ? PL(e) : e).split(CL, u).slice(o, u).map( (d, y) => { let p = o + 1 + y, b = ` ${` ${p}`.slice(-f)} |`, D = l[p], x = !l[p + 1]; if (D) { let T = ""; if (Array.isArray(D)) { let w = d.slice(0, Math.max(D[0] - 1, 0)).replace(/[^\t]/g, " "), B = D[1] || 1; T = [` `, s.gutter(b.replace(/\d/g, " ")), " ", w, s.marker("^").repeat(B)].join(""), x && r.message && (T += " " + s.message(r.message)); } return [s.marker(">"), s.gutter(b), d.length > 0 ? ` ${d}` : "", T].join(""); } else return ` ${s.gutter(b)}${d.length > 0 ? ` ${d}` : ""}`; }).join(` `); return r.message && !c && (h = `${" ".repeat(f + 1)}${r.message} ${h}`), i ? s.reset(h) : h; } n(FL, "codeFrameColumns"); function h4e(e, t, r, i = {}) { if (!TL) { TL = !0; let a = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`."; if (process.emitWarning) process.emitWarning(a, "DeprecationWarning"); else { let o = new Error(a); o.name = "DeprecationWarning", console.warn(new Error(a)); } } return r = Math.max(r, 0), FL(e, { start: { column: r, line: t } }, i); } n(h4e, "index"); Vd.codeFrameColumns = FL; Vd.default = h4e; Vd.highlight = PL; }); // ../node_modules/@babel/template/lib/parse.js var YT = E((XT) => { "use strict"; Object.defineProperty(XT, "__esModule", { value: !0 }); XT.default = _4e; var m4e = Pe(), y4e = Ho(), g4e = Wd(), { isCallExpression: b4e, isExpressionStatement: D4e, isFunction: v4e, isIdentifier: x4e, isJSXIdentifier: E4e, isNewExpression: S4e, isPlaceholder: sy, isStatement: T4e, isStringLiteral: IL, removePropertiesDeep: C4e, traverse: w4e } = m4e, A4e = /^[_$A-Z0-9]+$/; function _4e(e, t, r) { let { placeholderWhitelist: i, placeholderPattern: s, preserveComments: a, syntacticPlaceholders: o } = r, u = I4e(t, r.parser, o); C4e(u, { preserveComments: a }), e.validate(u); let l = { syntactic: { placeholders: [], placeholderNames: /* @__PURE__ */ new Set() }, legacy: { placeholders: [], placeholderNames: /* @__PURE__ */ new Set() }, placeholderWhitelist: i, placeholderPattern: s, syntacticPlaceholders: o }; return w4e(u, P4e, l), Object.assign({ ast: u }, l.syntactic.placeholders.length ? l.syntactic : l.legacy); } n(_4e, "parseAndBuildMetadata"); function P4e(e, t, r) { var i; let s, a = r.syntactic.placeholders.length > 0; if (sy(e)) { if (r.syntacticPlaceholders === !1) throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false."); s = e.name.name, a = !0; } else { if (a || r.syntacticPlaceholders) return; if (x4e(e) || E4e(e)) s = e.name; else if (IL(e)) s = e.value; else return; } if (a && (r.placeholderPattern != null || r.placeholderWhitelist != null)) throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'"); if (!a && (r.placeholderPattern === !1 || !(r.placeholderPattern || A4e).test(s)) && !((i = r.placeholderWhitelist) != null && i.has(s))) return; t = t.slice(); let { node: o, key: u } = t[t.length - 1], l; IL(e) || sy(e, { expectedNode: "StringLiteral" }) ? l = "string" : S4e(o) && u === "arguments" || b4e(o) && u === "arguments" || v4e(o) && u === "params" ? l = "param" : D4e(o) && !sy( e) ? (l = "statement", t = t.slice(0, -1)) : T4e(e) && sy(e) ? l = "statement" : l = "other"; let { placeholders: c, placeholderNames: f } = a ? r.syntactic : r.legacy; c.push({ name: s, type: l, resolve: /* @__PURE__ */ n((m) => F4e(m, t), "resolve"), isDuplicate: f.has(s) }), f.add(s); } n(P4e, "placeholderVisitorHandler"); function F4e(e, t) { let r = e; for (let a = 0; a < t.length - 1; a++) { let { key: o, index: u } = t[a]; u === void 0 ? r = r[o] : r = r[o][u]; } let { key: i, index: s } = t[t.length - 1]; return { parent: r, key: i, index: s }; } n(F4e, "resolveAncestors"); function I4e(e, t, r) { let i = (t.plugins || []).slice(); r !== !1 && i.push("placeholders"), t = Object.assign({ allowAwaitOutsideFunction: !0, allowReturnOutsideFunction: !0, allowNewTargetOutsideFunction: !0, allowSuperOutsideMethod: !0, allowYieldOutsideFunction: !0, sourceType: "module" }, t, { plugins: i }); try { return (0, y4e.parse)(e, t); } catch (s) { let a = s.loc; throw a && (s.message += ` ` + (0, g4e.codeFrameColumns)(e, { start: a }), s.code = "BABEL_TEMPLATE_PARSE_ERROR"), s; } } n(I4e, "parseWithCodeFrame"); }); // ../node_modules/@babel/template/lib/populate.js var eC = E((QT) => { "use strict"; Object.defineProperty(QT, "__esModule", { value: !0 }); QT.default = R4e; var O4e = Pe(), { blockStatement: k4e, cloneNode: ZT, emptyStatement: B4e, expressionStatement: GT, identifier: ny, isStatement: OL, isStringLiteral: N4e, stringLiteral: M4e, validate: kL } = O4e; function R4e(e, t) { let r = ZT(e.ast); return t && (e.placeholders.forEach((i) => { if (!hasOwnProperty.call(t, i.name)) { let s = i.name; throw new Error(`Error: No substitution given for "${s}". If this is not meant to be a placeholder you may want to consider passing one of the following options to @babel/template: - { placeholderPattern: false, placeholderWhitelist: new Set(['${s}'])} - { placeholderPattern: /^${s}$/ }`); } }), Object.keys(t).forEach((i) => { if (!e.placeholderNames.has(i)) throw new Error(`Unknown substitution "${i}" given`); })), e.placeholders.slice().reverse().forEach((i) => { try { var s; L4e(i, r, (s = t && t[i.name]) != null ? s : null); } catch (a) { throw a.message = `@babel/template placeholder "${i.name}": ${a.message}`, a; } }), r; } n(R4e, "populatePlaceholders"); function L4e(e, t, r) { e.isDuplicate && (Array.isArray(r) ? r = r.map((u) => ZT(u)) : typeof r == "object" && (r = ZT(r))); let { parent: i, key: s, index: a } = e.resolve(t); if (e.type === "string") { if (typeof r == "string" && (r = M4e(r)), !r || !N4e(r)) throw new Error("Expected string substitution"); } else if (e.type === "statement") a === void 0 ? r ? Array.isArray(r) ? r = k4e(r) : typeof r == "string" ? r = GT(ny(r)) : OL(r) || (r = GT(r)) : r = B4e() : r && !Array. isArray(r) && (typeof r == "string" && (r = ny(r)), OL(r) || (r = GT(r))); else if (e.type === "param") { if (typeof r == "string" && (r = ny(r)), a === void 0) throw new Error("Assertion failure."); } else if (typeof r == "string" && (r = ny(r)), Array.isArray(r)) throw new Error("Cannot replace single expression with an array."); function o(u, l, c) { let f = u[l]; u[l] = c, (f.type === "Identifier" || f.type === "Placeholder") && (f.typeAnnotation && (c.typeAnnotation = f.typeAnnotation), f.optional && (c.optional = f.optional), f.decorators && (c.decorators = f.decorators)); } if (n(o, "set"), a === void 0) kL(i, s, r), o(i, s, r); else { let u = i[s].slice(); e.type === "statement" || e.type === "param" ? r == null ? u.splice(a, 1) : Array.isArray(r) ? u.splice(a, 1, ...r) : o(u, a, r) : o(u, a, r), kL(i, s, u), i[s] = u; } } n(L4e, "applyReplacement"); }); // ../node_modules/@babel/template/lib/string.js var BL = E((tC) => { "use strict"; Object.defineProperty(tC, "__esModule", { value: !0 }); tC.default = $4e; var j4e = Km(), q4e = YT(), U4e = eC(); function $4e(e, t, r) { t = e.code(t); let i; return (s) => { let a = (0, j4e.normalizeReplacements)(s); return i || (i = (0, q4e.default)(e, t, r)), e.unwrap((0, U4e.default)(i, a)); }; } n($4e, "stringTemplate"); }); // ../node_modules/@babel/template/lib/literal.js var NL = E((rC) => { "use strict"; Object.defineProperty(rC, "__esModule", { value: !0 }); rC.default = K4e; var V4e = Km(), W4e = YT(), H4e = eC(); function K4e(e, t, r) { let { metadata: i, names: s } = z4e(e, t, r); return (a) => { let o = {}; return a.forEach((u, l) => { o[s[l]] = u; }), (u) => { let l = (0, V4e.normalizeReplacements)(u); return l && Object.keys(l).forEach((c) => { if (hasOwnProperty.call(o, c)) throw new Error("Unexpected replacement overlap."); }), e.unwrap((0, H4e.default)(i, l ? Object.assign(l, o) : o)); }; }; } n(K4e, "literalTemplate"); function z4e(e, t, r) { let i = "BABEL_TPL$", s = t.join(""); do i = "$$" + i; while (s.includes(i)); let { names: a, code: o } = J4e(t, i); return { metadata: (0, W4e.default)(e, e.code(o), { parser: r.parser, placeholderWhitelist: new Set(a.concat(r.placeholderWhitelist ? Array.from(r.placeholderWhitelist) : [])), placeholderPattern: r.placeholderPattern, preserveComments: r.preserveComments, syntacticPlaceholders: r.syntacticPlaceholders }), names: a }; } n(z4e, "buildLiteralData"); function J4e(e, t) { let r = [], i = e[0]; for (let s = 1; s < e.length; s++) { let a = `${t}${s - 1}`; r.push(a), i += a + e[s]; } return { names: r, code: i }; } n(J4e, "buildTemplateCode"); }); // ../node_modules/@babel/template/lib/builder.js var UL = E((iC) => { "use strict"; Object.defineProperty(iC, "__esModule", { value: !0 }); iC.default = qL; var rn = Km(), ML = BL(), RL = NL(), LL = (0, rn.validate)({ placeholderPattern: !1 }); function qL(e, t) { let r = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new WeakMap(), s = t || (0, rn.validate)(null); return Object.assign((a, ...o) => { if (typeof a == "string") { if (o.length > 1) throw new Error("Unexpected extra params."); return jL((0, ML.default)(e, a, (0, rn.merge)(s, (0, rn.validate)(o[0])))); } else if (Array.isArray(a)) { let u = r.get(a); return u || (u = (0, RL.default)(e, a, s), r.set(a, u)), jL(u(o)); } else if (typeof a == "object" && a) { if (o.length > 0) throw new Error("Unexpected extra params."); return qL(e, (0, rn.merge)(s, (0, rn.validate)(a))); } throw new Error(`Unexpected template param ${typeof a}`); }, { ast: /* @__PURE__ */ n((a, ...o) => { if (typeof a == "string") { if (o.length > 1) throw new Error("Unexpected extra params."); return (0, ML.default)(e, a, (0, rn.merge)((0, rn.merge)(s, (0, rn.validate)(o[0])), LL))(); } else if (Array.isArray(a)) { let u = i.get(a); return u || (u = (0, RL.default)(e, a, (0, rn.merge)(s, LL)), i.set(a, u)), u(o)(); } throw new Error(`Unexpected template param ${typeof a}`); }, "ast") }); } n(qL, "createTemplateBuilder"); function jL(e) { let t = ""; try { throw new Error(); } catch (r) { r.stack && (t = r.stack.split(` `).slice(3).join(` `)); } return (r) => { try { return e(r); } catch (i) { throw i.stack += ` ============= ${t}`, i; } }; } n(jL, "extendedTrace"); }); // ../node_modules/@babel/template/lib/index.js var zd = E((mi) => { "use strict"; Object.defineProperty(mi, "__esModule", { value: !0 }); mi.statements = mi.statement = mi.smart = mi.program = mi.expression = mi.default = void 0; var Hd = HR(), Kd = UL(), sC = mi.smart = (0, Kd.default)(Hd.smart), X4e = mi.statement = (0, Kd.default)(Hd.statement), Y4e = mi.statements = (0, Kd.default)(Hd.statements), G4e = mi.expression = (0, Kd.default)(Hd.expression), Z4e = mi.program = (0, Kd.default)(Hd.program), Tyt = mi. default = Object.assign(sC.bind(void 0), { smart: sC, statement: X4e, statements: Y4e, expression: G4e, program: Z4e, ast: sC.ast }); }); // ../node_modules/@babel/helpers/lib/helpers-generated.js var $L = E((ay) => { "use strict"; Object.defineProperty(ay, "__esModule", { value: !0 }); ay.default = void 0; var Q4e = zd(); function J(e, t, r) { return Object.freeze({ minVersion: e, ast: /* @__PURE__ */ n(() => Q4e.default.program.ast(t, { preserveComments: !0 }), "ast"), metadata: r }); } n(J, "helper"); var e8e = ay.default = { __proto__: null, OverloadYield: J("7.18.14", "function _OverloadYield(e,d){this.v=e,this.k=d}", { globals: [], locals: { _OverloadYield: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_OverloadYield", dependencies: {}, internal: !1 }), applyDecoratedDescriptor: J("7.0.0-beta.0", 'function _applyDecoratedDescriptor(i,e,r,n,l){var a={};return Object.keys(n).forEach(functi\ on(i){a[i]=n[i]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=r.slice().reve\ rse().reduce(function(r,n){return n(i,e,r)||r},a),l&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(l):void 0,a.initializ\ er=void 0),void 0===a.initializer?(Object.defineProperty(i,e,a),null):a}', { globals: ["Object"], locals: { _applyDecoratedDescriptor: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_applyDecoratedDescriptor", dependencies: {}, internal: !1 }), applyDecs2311: J("7.24.0", 'function applyDecs2311(e,t,n,r,o,i){var a,c,u,s,f,l,p,d=Symbol.metadata||Symbol.for("Symbol.metadata"),m=Obj\ ect.defineProperty,h=Object.create,y=[h(null),h(null)],v=t.length;function g(t,n,r){return function(o,i){n&&(i=o,o=e);for(var a=0;a=0;O-=n?2:1){var T=b(h[O],"A decorator","be",!0),z=n?h[O-1]:void 0,A={},H={kind:["field\ ","accessor","method","getter","setter","class"][o],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw new TypeError("attempted to \ call addInitializer after decoration was finished");b(t,"An initializer","be",!0),i.push(t)}.bind(null,A)};if(w)c=T.call(z,N,H),A.v=1,b(c,"c\ lass decorators","return")&&(N=c);else if(H.static=s,H.private=f,c=H.access={has:f?p.bind():function(e){return r in e}},j||(c.get=f?E?functi\ on(e){return d(e),P.value}:I("get",0,d):function(e){return e[r]}),E||S||(c.set=f?I("set",0,d):function(e,t){e[r]=t}),N=T.call(z,D?{get:P.get\ ,set:P.set}:P[F],H),A.v=1,D){if("object"==typeof N&&N)(c=b(N.get,"accessor.get"))&&(P.get=c),(c=b(N.set,"accessor.set"))&&(P.set=c),(c=b(N.i\ nit,"accessor.init"))&&k.unshift(c);else if(void 0!==N)throw new TypeError("accessor decorators must return an object with get, set, or init\ properties or undefined")}else b(N,(l?"field":"method")+" decorators","return")&&(l?k.unshift(N):P[F]=N)}return o<2&&u.push(g(k,s,1),g(i,s,\ 0)),l||w||(f?D?u.splice(-1,0,I("get",s),I("set",s)):u.push(E?P[F]:b.call.bind(P[F])):m(e,r,P)),N}function w(e){return m(e,d,{configurable:!0\ ,enumerable:!0,value:a})}return void 0!==i&&(a=i[d]),a=h(null==a?null:a),f=[],l=function(e){e&&f.push(g(e))},p=function(t,r){for(var i=0;ir.length)&&(a=r.length);for(var e=0,n=Array(a);e=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(r){throw r},f:F}}throw new TypeError("Invalid atte\ mpt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;\ return{s:function(){t=t.call(r)},n:function(){var r=t.next();return a=r.done,r},e:function(r){u=!0,o=r},f:function(){try{a||null==t.return||\ t.return()}finally{if(u)throw o}}}}', { globals: ["Symbol", "Array", "TypeError"], locals: { _createForOfIteratorHelper: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_createForOfIteratorHelper", dependencies: { unsupportedIterableToArray: ["body.0.body.body.1.consequent.body.0.test.left.right.right.callee"] }, internal: !1 }), createForOfIteratorHelperLoose: J("7.9.0", 'function _createForOfIteratorHelperLoose(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.ite\ rator]||r["@@iterator"];if(t)return(t=t.call(r)).next.bind(t);if(Array.isArray(r)||(t=unsupportedIterableToArray(r))||e&&r&&"number"==typeof\ r.length){t&&(r=t);var o=0;return function(){return o>=r.length?{done:!0}:{done:!1,value:r[o++]}}}throw new TypeError("Invalid attempt to i\ terate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}', { globals: ["Symbol", "Array", "TypeError"], locals: { _createForOfIteratorHelperLoose: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_createForOfIteratorHelperLoose", dependencies: { unsupportedIterableToArray: ["body.0.body.body.2.test.left.right.right.callee"] }, internal: !1 }), createSuper: J("7.9.0", "function _createSuper(t){var r=isNativeReflectConstruct();return function(){var e,o=getPrototypeOf(t);if(r){var\ s=getPrototypeOf(this).constructor;e=Reflect.construct(o,arguments,s)}else e=o.apply(this,arguments);return possibleConstructorReturn(this,\ e)}}", { globals: ["Reflect"], locals: { _createSuper: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_createSuper", dependencies: { getPrototypeOf: ["body.0.body.body.1.argument.body.body.0.declarations.1.init.callee", "body.0.body.body.1.argument.body.body.1.cons\ equent.body.0.declarations.0.init.object.callee"], isNativeReflectConstruct: ["body.0.body.body.0.declarations.0.init.callee"], possibleConstructorReturn: ["body.0.body.body.1.argument.body.body.2.argument.callee"] }, internal: !1 }), decorate: J("7.1.5", `function _decorate(e,r,t,i){var o=_getDecoratorsApi();if(i)for(var n=0;n=0;n--){var s\ =r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,o[n])(a)||a);e=l.element,\ this.addElementPlacement(e,r),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var p=0;p=0;i--){var o=thi\ s.fromClassDescriptor(e),n=this.toClassDescriptor((0,r[i])(o)||o);if(void 0!==n.finisher&&t.push(n.finisher),void 0!==n.elements){e=n.elemen\ ts;for(var s=0;s1){for(var t=Array(n),f=0;f3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&dn\ ||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0))}if(o||r>1)return a;throw y=!0,n}return function(o,p,l){if(f>1)throw TypeError("Generator is already runni\ ng");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(\ !(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.ca\ ll(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break}catch(t){i=\ e,c=1,u=t}finally{f=1}}return{value:t,done:y}}}(r,o,i),!0),u}var a={};function Generator(){}function GeneratorFunction(){}function Generator\ FunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(define(t={},n,function(){return this}),t),u=GeneratorFunctionPrototy\ pe.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionProtot\ ype):(e.__proto__=GeneratorFunctionPrototype,define(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e}return GeneratorFunction.protot\ ype=GeneratorFunctionPrototype,define(u,"constructor",GeneratorFunctionPrototype),define(GeneratorFunctionPrototype,"constructor",GeneratorF\ unction),GeneratorFunction.displayName="GeneratorFunction",define(GeneratorFunctionPrototype,o,"GeneratorFunction"),define(u),define(u,o,"Ge\ nerator"),define(u,n,function(){return this}),define(u,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:\ i,m:f}})()}`, { globals: ["Symbol", "Object", "TypeError"], locals: { _regenerator: ["body.0.id", "body.0.body.body.9.argument.expressions.9.callee.left"] }, exportBindingAssignments: ["body.0.body.body.9.argument.expressions.9.callee"], exportName: "_regenerator", dependencies: { regeneratorDefine: ["body.0.body.body.1.body.body.1.argument.expressions.0.callee", "body.0.body.body.7.declarations.0.init.alternat\ e.expressions.0.callee", "body.0.body.body.8.body.body.0.argument.expressions.0.alternate.expressions.1.callee", "body.0.body.body.9.argumen\ t.expressions.1.callee", "body.0.body.body.9.argument.expressions.2.callee", "body.0.body.body.9.argument.expressions.4.callee", "body.0.bod\ y.body.9.argument.expressions.5.callee", "body.0.body.body.9.argument.expressions.6.callee", "body.0.body.body.9.argument.expressions.7.call\ ee", "body.0.body.body.9.argument.expressions.8.callee"] }, internal: !1 }), regeneratorAsync: J("7.27.0", "function _regeneratorAsync(n,e,r,t,o){var a=asyncGen(n,e,r,t,o);return a.next().then(function(n){return n\ .done?n.value:a.next()})}", { globals: [], locals: { _regeneratorAsync: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_regeneratorAsync", dependencies: { regeneratorAsyncGen: ["body.0.body.body.0.declarations.0.init.callee"] }, internal: !1 }), regeneratorAsyncGen: J("7.27.0", "function _regeneratorAsyncGen(r,e,t,o,n){return new regeneratorAsyncIterator(regenerator().w(r,e,t,o),\ n||Promise)}", { globals: ["Promise"], locals: { _regeneratorAsyncGen: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_regeneratorAsyncGen", dependencies: { regenerator: ["body.0.body.body.0.argument.arguments.0.callee.object.callee"], regeneratorAsyncIterator: ["body.0.body.body.0.argument.callee"] }, internal: !1 }), regeneratorAsyncIterator: J("7.27.0", 'function AsyncIterator(t,e){function n(r,o,i,f){try{var c=t[r](o),u=c.value;return u instanceof O\ verloadYield?e.resolve(u.v).then(function(t){n("next",t,i,f)},function(t){n("throw",t,i,f)}):e.resolve(u).then(function(t){c.value=t,i(c)},f\ unction(t){return n("throw",t,i,f)})}catch(t){f(t)}}var r;this.next||(define(AsyncIterator.prototype),define(AsyncIterator.prototype,"functi\ on"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),define(this,"_invoke",function(t,o,i){function f(){retu\ rn new e(function(e,r){n(t,i,e,r)})}return r=r?r.then(f,f):f()},!0)}', { globals: ["Symbol"], locals: { AsyncIterator: ["body.0.id", "body.0.body.body.2.expression.expressions.0.right.expressions.0.arguments.0.object", "body.0.body.body\ .2.expression.expressions.0.right.expressions.1.arguments.0.object"] }, exportBindingAssignments: [], exportName: "AsyncIterator", dependencies: { OverloadYield: ["body.0.body.body.0.body.body.0.block.body.1.argument.test.right"], regeneratorDefine: ["body.0.body.body.2.expression.expressions.0.right.expressions.0.callee", "body.0.body.body.2.expression.express\ ions.0.right.expressions.1.callee", "body.0.body.body.2.expression.expressions.1.callee"] }, internal: !0 }), regeneratorDefine: J("7.27.0", 'function regeneratorDefine(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}regenerator\ Define=function(e,r,n,t){function o(r,n){regeneratorDefine(e,r,function(e){return this._invoke(r,n,e)})}r?i?i(e,r,{value:n,enumerable:!t,con\ figurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2))},regeneratorDefine(e,r,n,t)}', { globals: ["Object"], locals: { regeneratorDefine: ["body.0.id", "body.0.body.body.2.expression.expressions.0.right.body.body.0.body.body.0.expression.callee", "bod\ y.0.body.body.2.expression.expressions.1.callee", "body.0.body.body.2.expression.expressions.0.left"] }, exportBindingAssignments: ["body.0.body.body.2.expression.expressions.0"], exportName: "regeneratorDefine", dependencies: {}, internal: !0 }), regeneratorKeys: J("7.27.0", "function _regeneratorKeys(e){var n=Object(e),r=[];for(var t in n)r.unshift(t);return function e(){for(;r.l\ ength;)if((t=r.pop())in n)return e.value=t,e.done=!1,e;return e.done=!0,e}}", { globals: ["Object"], locals: { _regeneratorKeys: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_regeneratorKeys", dependencies: {}, internal: !1 }), regeneratorValues: J("7.18.0", 'function _regeneratorValues(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterat\ or"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=vo\ id 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(typeof e+" is not iterable")}', { globals: ["Symbol", "isNaN", "TypeError"], locals: { _regeneratorValues: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_regeneratorValues", dependencies: {}, internal: !1 }), set: J("7.0.0-beta.0", 'function set(e,r,t,o){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,r,t,o){var f,i=\ superPropBase(e,r);if(i){if((f=Object.getOwnPropertyDescriptor(i,r)).set)return f.set.call(o,t),!0;if(!f.writable)return!1}if(f=Object.getOw\ nPropertyDescriptor(o,r)){if(!f.writable)return!1;f.value=t,Object.defineProperty(o,r,f)}else defineProperty(o,r,t);return!0},set(e,r,t,o)}f\ unction _set(e,r,t,o,f){if(!set(e,r,t,o||e)&&f)throw new TypeError("failed to set property");return t}', { globals: ["Reflect", "Object", "TypeError"], locals: { set: ["body.0.id", "body.0.body.body.0.argument.expressions.1.callee", "body.1.body.body.0.test.left.argument.callee", "body.0.body.\ body.0.argument.expressions.0.left"], _set: ["body.1.id"] }, exportBindingAssignments: [], exportName: "_set", dependencies: { superPropBase: ["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.0.declarations.1.init.callee"], defineProperty: ["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.2.alternate.expression.callee"] }, internal: !1 }), setFunctionName: J("7.23.6", 'function setFunctionName(e,t,n){"symbol"==typeof t&&(t=(t=t.description)?"["+t+"]":"");try{Object.definePr\ operty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}', { globals: ["Object"], locals: { setFunctionName: ["body.0.id"] }, exportBindingAssignments: [], exportName: "setFunctionName", dependencies: {}, internal: !1 }), setPrototypeOf: J("7.0.0-beta.0", "function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind\ ():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}", { globals: ["Object"], locals: { _setPrototypeOf: ["body.0.id", "body.0.body.body.0.argument.expressions.1.callee", "body.0.body.body.0.argument.expressions.0.left"] }, exportBindingAssignments: ["body.0.body.body.0.argument.expressions.0"], exportName: "_setPrototypeOf", dependencies: {}, internal: !1 }), skipFirstGeneratorNext: J("7.0.0-beta.0", "function _skipFirstGeneratorNext(t){return function(){var r=t.apply(this,arguments);return r.\ next(),r}}", { globals: [], locals: { _skipFirstGeneratorNext: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_skipFirstGeneratorNext", dependencies: {}, internal: !1 }), slicedToArray: J("7.0.0-beta.0", "function _slicedToArray(r,e){return arrayWithHoles(r)||iterableToArrayLimit(r,e)||unsupportedIterableT\ oArray(r,e)||nonIterableRest()}", { globals: [], locals: { _slicedToArray: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_slicedToArray", dependencies: { arrayWithHoles: ["body.0.body.body.0.argument.left.left.left.callee"], iterableToArrayLimit: ["body.0.body.body.0.argument.left.left.right.callee"], unsupportedIterableToArray: ["body.0.body.body.0.argument.left.right.callee"], nonIterableRest: ["body.0.body.body.0.argument.right.callee"] }, internal: !1 }), superPropBase: J("7.0.0-beta.0", "function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=getPrototypeOf(t)););return \ t}", { globals: [], locals: { _superPropBase: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_superPropBase", dependencies: { getPrototypeOf: ["body.0.body.body.0.test.right.right.right.callee"] }, internal: !1 }), superPropGet: J("7.25.0", 'function _superPropGet(t,o,e,r){var p=get(getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==type\ of p?function(t){return p.apply(e,t)}:p}', { globals: [], locals: { _superPropGet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_superPropGet", dependencies: { get: ["body.0.body.body.0.declarations.0.init.callee"], getPrototypeOf: ["body.0.body.body.0.declarations.0.init.arguments.0.callee"] }, internal: !1 }), superPropSet: J("7.25.0", "function _superPropSet(t,e,o,r,p,f){return set(getPrototypeOf(f?t.prototype:t),e,o,r,p)}", { globals: [], locals: { _superPropSet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_superPropSet", dependencies: { set: ["body.0.body.body.0.argument.callee"], getPrototypeOf: ["body.0.body.body.0.argument.arguments.0.callee"] }, internal: !1 }), taggedTemplateLiteral: J("7.0.0-beta.0", "function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.definePrope\ rties(e,{raw:{value:Object.freeze(t)}}))}", { globals: ["Object"], locals: { _taggedTemplateLiteral: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_taggedTemplateLiteral", dependencies: {}, internal: !1 }), taggedTemplateLiteralLoose: J("7.0.0-beta.0", "function _taggedTemplateLiteralLoose(e,t){return t||(t=e.slice(0)),e.raw=t,e}", { globals: [], locals: { _taggedTemplateLiteralLoose: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_taggedTemplateLiteralLoose", dependencies: {}, internal: !1 }), tdz: J("7.5.5", 'function _tdzError(e){throw new ReferenceError(e+" is not defined - temporal dead zone")}', { globals: ["ReferenceError"], locals: { _tdzError: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_tdzError", dependencies: {}, internal: !1 }), temporalRef: J("7.0.0-beta.0", "function _temporalRef(r,e){return r===undef?err(e):r}", { globals: [], locals: { _temporalRef: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_temporalRef", dependencies: { temporalUndefined: ["body.0.body.body.0.argument.test.right"], tdz: ["body.0.body.body.0.argument.consequent.callee"] }, internal: !1 }), temporalUndefined: J("7.0.0-beta.0", "function _temporalUndefined(){}", { globals: [], locals: { _temporalUndefined: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_temporalUndefined", dependencies: {}, internal: !1 }), toArray: J("7.0.0-beta.0", "function _toArray(r){return arrayWithHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterabl\ eRest()}", { globals: [], locals: { _toArray: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_toArray", dependencies: { arrayWithHoles: ["body.0.body.body.0.argument.left.left.left.callee"], iterableToArray: ["body.0.body.body.0.argument.left.left.right.callee"], unsupportedIterableToArray: ["body.0.body.body.0.argument.left.right.callee"], nonIterableRest: ["body.0.body.body.0.argument.right.callee"] }, internal: !1 }), toConsumableArray: J("7.0.0-beta.0", "function _toConsumableArray(r){return arrayWithoutHoles(r)||iterableToArray(r)||unsupportedIterabl\ eToArray(r)||nonIterableSpread()}", { globals: [], locals: { _toConsumableArray: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_toConsumableArray", dependencies: { arrayWithoutHoles: ["body.0.body.body.0.argument.left.left.left.callee"], iterableToArray: ["body.0.body.body.0.argument.left.left.right.callee"], unsupportedIterableToArray: ["body.0.body.body.0.argument.left.right.callee"], nonIterableSpread: ["body.0.body.body.0.argument.right.callee"] }, internal: !1 }), toPrimitive: J("7.1.5", 'function toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e\ .call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r\ ?String:Number)(t)}', { globals: ["Symbol", "TypeError", "String", "Number"], locals: { toPrimitive: ["body.0.id"] }, exportBindingAssignments: [], exportName: "toPrimitive", dependencies: {}, internal: !1 }), toPropertyKey: J("7.1.5", 'function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}', { globals: [], locals: { toPropertyKey: ["body.0.id"] }, exportBindingAssignments: [], exportName: "toPropertyKey", dependencies: { toPrimitive: ["body.0.body.body.0.declarations.0.init.callee"] }, internal: !1 }), toSetter: J("7.24.0", 'function _toSetter(t,e,n){e||(e=[]);var r=e.length++;return Object.defineProperty({},"_",{set:function(o){e[r]=o,\ t.apply(n,e)}})}', { globals: ["Object"], locals: { _toSetter: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_toSetter", dependencies: {}, internal: !1 }), tsRewriteRelativeImportExtensions: J("7.27.0", 'function tsRewriteRelativeImportExtensions(t,e){return"string"==typeof t&&/^\\.\\.?\\//.tes\ t(t)?t.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+)?)\\.([cm]?)ts$/i,function(t,s,r,n,o){return s?e?".jsx":".js":!r||n&&o?r+n+"."+o.toLowerCase(\ )+"js":t}):t}', { globals: [], locals: { tsRewriteRelativeImportExtensions: ["body.0.id"] }, exportBindingAssignments: [], exportName: "tsRewriteRelativeImportExtensions", dependencies: {}, internal: !1 }), typeof: J("7.0.0-beta.0", 'function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symb\ ol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symb\ ol":typeof o},_typeof(o)}', { globals: ["Symbol"], locals: { _typeof: ["body.0.id", "body.0.body.body.0.argument.expressions.1.callee", "body.0.body.body.0.argument.expressions.0.left"] }, exportBindingAssignments: ["body.0.body.body.0.argument.expressions.0"], exportName: "_typeof", dependencies: {}, internal: !1 }), unsupportedIterableToArray: J("7.9.0", 'function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return arrayLikeToArray(r,\ a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Argum\ ents"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?arrayLikeToArray(r,a):void 0}}', { globals: ["Array"], locals: { _unsupportedIterableToArray: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_unsupportedIterableToArray", dependencies: { arrayLikeToArray: ["body.0.body.body.0.consequent.body.0.consequent.argument.callee", "body.0.body.body.0.consequent.body.2.argument\ .expressions.1.alternate.consequent.callee"] }, internal: !1 }), usingCtx: J("7.23.9", 'function _usingCtx(){var r="function"==typeof SuppressedError?SuppressedError:function(r,e){var n=Error();return \ n.name="SuppressedError",n.error=r,n.suppressed=e,n},e={},n=[];function using(r,e){if(null!=e){if(Object(e)!==e)throw new TypeError("using d\ eclarations can only be used with objects, functions, null, or undefined.");if(r)var o=e[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispos\ e")];if(void 0===o&&(o=e[Symbol.dispose||Symbol.for("Symbol.dispose")],r))var t=o;if("function"!=typeof o)throw new TypeError("Object is not\ disposable.");t&&(o=function(){try{t.call(e)}catch(r){return Promise.reject(r)}}),n.push({v:e,d:o,a:r})}else r&&n.push({d:e,a:r});return e}\ return{e:e,u:using.bind(null,!1),a:using.bind(null,!0),d:function(){var o,t=this.e,s=0;function next(){for(;o=n.pop();)try{if(!o.a&&1===s)re\ turn s=0,n.push(o),Promise.resolve().then(next);if(o.d){var r=o.d.call(o.v);if(o.a)return s|=2,Promise.resolve(r).then(next,err)}else s|=1}c\ atch(r){return err(r)}if(1===s)return t!==e?Promise.reject(t):Promise.resolve();if(t!==e)throw t}function err(n){return t=t!==e?new r(n,t):n\ ,next()}return next()}}}', { globals: ["SuppressedError", "Error", "Object", "TypeError", "Symbol", "Promise"], locals: { _usingCtx: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_usingCtx", dependencies: {}, internal: !1 }), wrapAsyncGenerator: J("7.0.0-beta.0", 'function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,argument\ s))}}function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof OverloadYield;Promise.resolve(u?o.v:\ o).then(function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value}settle(n.done?"return":"norm\ al",t)},function(e){resume("throw",e)})}catch(e){settle("throw",e)}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0})\ ;break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1})}(r=r.next)?resume(r.key,r.arg):t=null}this._invoke=function(e,n){r\ eturn new Promise(function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n))})},"function"!=typeof e.re\ turn&&(this.return=void 0)}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return th\ is},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e)},AsyncGenerator.prototype.throw=function(e){return this._invoke(\ "throw",e)},AsyncGenerator.prototype.return=function(e){return this._invoke("return",e)};', { globals: ["Promise", "Symbol"], locals: { _wrapAsyncGenerator: ["body.0.id"], AsyncGenerator: ["body.1.id", "body.0.body.body.0.argument.body.body.0.argument.callee", "body.2.expression.expressions.0.left.objec\ t.object", "body.2.expression.expressions.1.left.object.object", "body.2.expression.expressions.2.left.object.object", "body.2.expression.ex\ pressions.3.left.object.object"] }, exportBindingAssignments: [], exportName: "_wrapAsyncGenerator", dependencies: { OverloadYield: ["body.1.body.body.1.body.body.0.block.body.0.declarations.2.init.right"] }, internal: !1 }), wrapNativeSuper: J("7.0.0-beta.0", 'function _wrapNativeSuper(t){var r="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=fun\ ction(t){if(null===t||!isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a f\ unction");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return construct(t,arguments,getPrototypeOf(this).c\ onstructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),setP\ rototypeOf(Wrapper,t)},_wrapNativeSuper(t)}', { globals: ["Map", "TypeError", "Object"], locals: { _wrapNativeSuper: ["body.0.id", "body.0.body.body.1.argument.expressions.1.callee", "body.0.body.body.1.argument.expressions.0.left"] }, exportBindingAssignments: ["body.0.body.body.1.argument.expressions.0"], exportName: "_wrapNativeSuper", dependencies: { getPrototypeOf: ["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.arguments.2.object.callee"], setPrototypeOf: ["body.0.body.body.1.argument.expressions.0.right.body.body.4.argument.expressions.1.callee"], isNativeFunction: ["body.0.body.body.1.argument.expressions.0.right.body.body.0.test.right.argument.callee"], construct: ["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.callee"] }, internal: !1 }), wrapRegExp: J("7.19.0", 'function _wrapRegExp(){_wrapRegExp=function(e,r){return new BabelRegExp(e,void 0,r)};var e=RegExp.prototype,r=n\ ew WeakMap;function BabelRegExp(e,t,p){var o=RegExp(e,t);return r.set(o,p||r.get(e)),setPrototypeOf(o,BabelRegExp.prototype)}function buildG\ roups(e,t){var p=r.get(t);return Object.keys(p).reduce(function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===e[\ o[i]]&&i+1]+)(>|$\ )/g,function(e,r,t){if(""===t)return e;var p=o[r];return Array.isArray(p)?"$"+p.join("$"):"number"==typeof p?"$"+p:""}))}if("function"==type\ of p){var i=this;return e[Symbol.replace].call(this,t,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).\ push(buildGroups(e,i)),p.apply(this,e)})}return e[Symbol.replace].call(this,t,p)},_wrapRegExp.apply(this,arguments)}', { globals: ["RegExp", "WeakMap", "Object", "Symbol", "Array"], locals: { _wrapRegExp: ["body.0.id", "body.0.body.body.4.argument.expressions.3.callee.object", "body.0.body.body.0.expression.left"] }, exportBindingAssignments: ["body.0.body.body.0.expression"], exportName: "_wrapRegExp", dependencies: { setPrototypeOf: ["body.0.body.body.2.body.body.1.argument.expressions.1.callee"], inherits: ["body.0.body.body.4.argument.expressions.0.callee"] }, internal: !1 }), writeOnlyError: J("7.12.13", `function _writeOnlyError(r){throw new TypeError('"'+r+'" is write-only')}`, { globals: ["TypeError"], locals: { _writeOnlyError: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_writeOnlyError", dependencies: {}, internal: !1 }) }; Object.assign(e8e, { AwaitValue: J("7.0.0-beta.0", "function _AwaitValue(t){this.wrapped=t}", { globals: [], locals: { _AwaitValue: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_AwaitValue", dependencies: {}, internal: !1 }), applyDecs: J("7.17.8", 'function old_createMetadataMethodsForProperty(e,t,a,r){return{getMetadata:function(o){old_assertNotFinished(r,"g\ etMetadata"),old_assertMetadataKey(o);var i=e[o];if(void 0!==i)if(1===t){var n=i.public;if(void 0!==n)return n[a]}else if(2===t){var l=i.pri\ vate;if(void 0!==l)return l.get(a)}else if(Object.hasOwnProperty.call(i,"constructor"))return i.constructor},setMetadata:function(o,i){old_a\ ssertNotFinished(r,"setMetadata"),old_assertMetadataKey(o);var n=e[o];if(void 0===n&&(n=e[o]={}),1===t){var l=n.public;void 0===l&&(l=n.publ\ ic={}),l[a]=i}else if(2===t){var s=n.priv;void 0===s&&(s=n.private=new Map),s.set(a,i)}else n.constructor=i}}}function old_convertMetadataMa\ pToFinal(e,t){var a=e[Symbol.metadata||Symbol.for("Symbol.metadata")],r=Object.getOwnPropertySymbols(t);if(0!==r.length){for(var o=0;o=0;m--){var b;void 0!==(p=old_memberDec(h[m],r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?b=p:1\ ===o?(b=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f=p,void 0!==b&&(void 0===d?d=b:"function"==typeof d?d=[d,b]:d.push(b)\ ))}if(0===o||1===o){if(void 0===d)d=function(e,t){return t};else if("function"!=typeof d){var g=d;d=function(e,t){for(var a=t,r=0;r3,m=v>=5;if(m?(u=t,f=r,0!=(v-=5)&\ &(p=n=n||[])):(u=t.prototype,f=a,0!==v&&(p=i=i||[])),0!==v&&!h){var b=m?s:l,g=b.get(y)||0;if(!0===g||3===g&&4!==v||4===g&&3!==v)throw Error(\ "Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not current\ ly supported by the decorators plugin. Property name was: "+y);!g&&v>2?b.set(y,v):b.set(y,!0)}old_applyMemberDec(e,u,d,y,v,m,h,f,p)}}old_pus\ hInitializers(e,i),old_pushInitializers(e,n)}function old_pushInitializers(e,t){t&&e.push(function(e){for(var a=0;a0){for(var o=[],i=t,n=t.name,l=r.length-1;l>=0;l--){var s={v:!1};try{var c=Obj\ ect.assign({kind:"class",name:n,addInitializer:old_createAddInitializerMethod(o,s)},old_createMetadataMethodsForProperty(a,0,n,s)),d=r[l](i,\ c)}finally{s.v=!0}void 0!==d&&(old_assertValidReturnValue(10,d),i=d)}e.push(i,function(){for(var e=0;e=0;v--){var g;void 0!==(f=memberDec(\ h[v],a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),0===n?g=f:1===n?(g=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f,void 0!==g&&\ (void 0===l?l=g:"function"==typeof l?l=[l,g]:l.push(g)))}if(0===n||1===n){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof\ l){var y=l;l=function(e,t){for(var r=t,a=0;a3,\ h=f>=5;if(h?(l=t,0!=(f-=5)&&(u=n=n||[])):(l=t.prototype,0!==f&&(u=a=a||[])),0!==f&&!d){var v=h?s:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4=\ ==g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/access\ or. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(e,l,c,p,\ f,h,d,u)}}pushInitializers(e,a),pushInitializers(e,n)}(a,e,t),function(e,t,r){if(r.length>0){for(var a=[],n=t,i=t.name,s=r.length-1;s>=0;s--\ ){var o={v:!1};try{var c=r[s](n,{kind:"class",name:i,addInitializer:createAddInitializerMethod(a,o)})}finally{o.v=!0}void 0!==c&&(assertVali\ dReturnValue(10,c),n=c)}e.push(n,function(){for(var e=0;e=0;g--){var y;void 0!==(p=memberDec(v[g\ ],n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?y=p:1===a?(y=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p,void 0!==y&&(vo\ id 0===l?l=y:"function"==typeof l?l=[l,y]:l.push(y)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l)\ {var m=l;l=function(e,t){for(var r=t,n=0;n3,h=f>=5;if(h?(l=e,0!=(f-=5)&&(u=n=n||[])):(l=e.prototype,0!==f&&(u=r=r||[])),0!==f&&!d){var v=h?o:i,g=v.get(p)||0;if(!0===g||3==\ =g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public \ method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMembe\ rDec(a,l,c,p,f,h,d,u)}}return pushInitializers(a,r),pushInitializers(a,n),a}function pushInitializers(e,t){t&&e.push(function(e){for(var r=0\ ;r0){for\ (var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var o={v:!1};try{var s=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r\ ,o)})}finally{o.v=!0}void 0!==s&&(assertValidReturnValue(10,s),n=s)}return[n,function(){for(var e=0;e=0;m--){var b;void 0!==(h=memberDec(g[m],n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?b=h:1===a?(b=h.init,v=h.get||p.\ get,y=h.set||p.set,p={get:v,set:y}):p=h,void 0!==b&&(void 0===l?l=b:"function"==typeof l?l=[l,b]:l.push(b)))}if(0===a||1===a){if(void 0===l)\ l=function(e,t){return t};else if("function"!=typeof l){var I=l;l=function(e,t){for(var r=t,n=0;n3,y=d>=5,g=r;if(y?(f=e,0!=(d-=5)&&(p=a=a||[]),v&&!i&&(i=function(t){re\ turn checkInRHS(t)===e}),g=i):(f=e.prototype,0!==d&&(p=n=n||[])),0!==d&&!v){var m=y?c:o,b=m.get(h)||0;if(!0===b||3===b&&4!==d||4===b&&3!==d)\ throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is\ not currently supported by the decorators plugin. Property name was: "+h);!b&&d>2?m.set(h,d):m.set(h,!0)}applyMemberDec(s,f,l,h,d,y,v,p,g)}\ }return pushInitializers(s,n),pushInitializers(s,a),s}function pushInitializers(e,t){t&&e.push(function(e){for(var r=0;r0){for(var r=[],n=e,a=e.\ name,i=t.length-1;i>=0;i--){var s={v:!1};try{var o=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,s)})}finally{s.v=\ !0}void 0!==o&&(assertValidReturnValue(10,o),n=o)}return[n,function(){for(var e=0;e=0;j-=r?2:1){var D\ =v[j],E=r?v[j-1]:void 0,I={},O={kind:["field","accessor","method","getter","setter","class"][o],name:n,metadata:a,addInitializer:function(e,\ t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");s(t,"An initializer","be",!0),c.push(t)}.bind(null,I\ )};try{if(b)(y=s(D.call(E,P,O),"class decorators","return"))&&(P=y);else{var k,F;O.static=l,O.private=f,f?2===o?k=function(e){return m(e),w.\ value}:(o<4&&(k=i(w,"get",m)),3!==o&&(F=i(w,"set",m))):(k=function(e){return e[n]},(o<2||4===o)&&(F=function(e,t){e[n]=t}));var N=O.access={\ has:f?h.bind():function(e){return n in e}};if(k&&(N.get=k),F&&(N.set=F),P=D.call(E,d?{get:w.get,set:w.set}:w[A],O),d){if("object"==typeof P&\ &P)(y=s(P.get,"accessor.get"))&&(w.get=y),(y=s(P.set,"accessor.set"))&&(w.set=y),(y=s(P.init,"accessor.init"))&&S.push(y);else if(void 0!==P\ )throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else s(P,(p?"field":"method")+\ " decorators","return")&&(p?S.push(P):w[A]=P)}}finally{I.v=!0}}return(p||d)&&u.push(function(e,t){for(var r=S.length-1;r>=0;r--)t=S[r].call(\ e,t);return t}),p||b||(f?d?u.push(i(w,"get"),i(w,"set")):u.push(2===o?w[A]:i.call.bind(w[A])):Object.defineProperty(e,n,w)),P}function u(e,t\ ){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}if(arguments.length\ >=6)var l=a[Symbol.metadata||Symbol.for("Symbol.metadata")];var f=Object.create(null==l?null:l),p=function(e,t,r,n){var o,a,i=[],s=function(\ t){return checkInRHS(t)===e},u=new Map;function l(e){e&&i.push(c.bind(null,e))}for(var f=0;f3,y=16&d,v=!!(8&d),g=0==(d&=7),b=h+"/"+v;if(!g&&!m){var w=u.get(b);if(!0===w||3===w&&4!==d||4===w&&3!==d)throw E\ rror("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not cu\ rrently supported by the decorators plugin. Property name was: "+h);u.set(b,!(d>2)||d)}applyDec(v?e:e.prototype,p,y,m?"#"+h:toPropertyKey(h)\ ,d,n,v?a=a||[]:o=o||[],i,v,m,g,1===d,v&&m?s:r)}}return l(o),l(a),i}(e,t,o,f);return r.length||u(e,f),{e:p,get c(){var t=[];return r.length&&\ [u(applyDec(e,[r],n,e.name,5,f,t),f),c.bind(null,t,e)]}}}', { globals: ["TypeError", "Array", "Object", "Error", "Symbol", "Map"], locals: { applyDecs2305: ["body.0.id"] }, exportBindingAssignments: [], exportName: "applyDecs2305", dependencies: { checkInRHS: ["body.0.body.body.6.declarations.1.init.callee.body.body.0.declarations.3.init.body.body.0.argument.left.callee"], setFunctionName: ["body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.0.consequent.right.properties.\ 0.value.callee", "body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.1.right.callee"], toPropertyKey: ["body.0.body.body.6.declarations.1.init.callee.body.body.2.body.body.1.consequent.body.2.expression.arguments.3.alte\ rnate.callee"] }, internal: !1 }), classApplyDescriptorDestructureSet: J("7.13.10", 'function _classApplyDescriptorDestructureSet(e,t){if(t.set)return"__destrObj"in t||(t.\ __destrObj={set value(r){t.set.call(e,r)}}),t.__destrObj;if(!t.writable)throw new TypeError("attempted to set read only private field");retu\ rn t}', { globals: ["TypeError"], locals: { _classApplyDescriptorDestructureSet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classApplyDescriptorDestructureSet", dependencies: {}, internal: !1 }), classApplyDescriptorGet: J("7.13.10", "function _classApplyDescriptorGet(e,t){return t.get?t.get.call(e):t.value}", { globals: [], locals: { _classApplyDescriptorGet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classApplyDescriptorGet", dependencies: {}, internal: !1 }), classApplyDescriptorSet: J("7.13.10", 'function _classApplyDescriptorSet(e,t,l){if(t.set)t.set.call(e,l);else{if(!t.writable)throw new T\ ypeError("attempted to set read only private field");t.value=l}}', { globals: ["TypeError"], locals: { _classApplyDescriptorSet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classApplyDescriptorSet", dependencies: {}, internal: !1 }), classCheckPrivateStaticAccess: J("7.13.10", "function _classCheckPrivateStaticAccess(s,a,r){return assertClassBrand(a,s,r)}", { globals: [], locals: { _classCheckPrivateStaticAccess: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classCheckPrivateStaticAccess", dependencies: { assertClassBrand: ["body.0.body.body.0.argument.callee"] }, internal: !1 }), classCheckPrivateStaticFieldDescriptor: J("7.13.10", 'function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new Type\ Error("attempted to "+e+" private static field before its declaration")}', { globals: ["TypeError"], locals: { _classCheckPrivateStaticFieldDescriptor: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classCheckPrivateStaticFieldDescriptor", dependencies: {}, internal: !1 }), classExtractFieldDescriptor: J("7.13.10", "function _classExtractFieldDescriptor(e,t){return classPrivateFieldGet2(t,e)}", { globals: [], locals: { _classExtractFieldDescriptor: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classExtractFieldDescriptor", dependencies: { classPrivateFieldGet2: ["body.0.body.body.0.argument.callee"] }, internal: !1 }), classPrivateFieldDestructureSet: J("7.4.4", "function _classPrivateFieldDestructureSet(e,t){var r=classPrivateFieldGet2(t,e);return clas\ sApplyDescriptorDestructureSet(e,r)}", { globals: [], locals: { _classPrivateFieldDestructureSet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classPrivateFieldDestructureSet", dependencies: { classApplyDescriptorDestructureSet: ["body.0.body.body.1.argument.callee"], classPrivateFieldGet2: ["body.0.body.body.0.declarations.0.init.callee"] }, internal: !1 }), classPrivateFieldGet: J("7.0.0-beta.0", "function _classPrivateFieldGet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescripto\ rGet(e,r)}", { globals: [], locals: { _classPrivateFieldGet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classPrivateFieldGet", dependencies: { classApplyDescriptorGet: ["body.0.body.body.1.argument.callee"], classPrivateFieldGet2: ["body.0.body.body.0.declarations.0.init.callee"] }, internal: !1 }), classPrivateFieldSet: J("7.0.0-beta.0", "function _classPrivateFieldSet(e,t,r){var s=classPrivateFieldGet2(t,e);return classApplyDescrip\ torSet(e,s,r),r}", { globals: [], locals: { _classPrivateFieldSet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classPrivateFieldSet", dependencies: { classApplyDescriptorSet: ["body.0.body.body.1.argument.expressions.0.callee"], classPrivateFieldGet2: ["body.0.body.body.0.declarations.0.init.callee"] }, internal: !1 }), classPrivateMethodGet: J("7.1.6", "function _classPrivateMethodGet(s,a,r){return assertClassBrand(a,s),r}", { globals: [], locals: { _classPrivateMethodGet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classPrivateMethodGet", dependencies: { assertClassBrand: ["body.0.body.body.0.argument.expressions.0.callee"] }, internal: !1 }), classPrivateMethodSet: J("7.1.6", 'function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}', { globals: ["TypeError"], locals: { _classPrivateMethodSet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classPrivateMethodSet", dependencies: {}, internal: !1 }), classStaticPrivateFieldDestructureSet: J("7.13.10", 'function _classStaticPrivateFieldDestructureSet(t,r,s){return assertClassBrand(r,t)\ ,classCheckPrivateStaticFieldDescriptor(s,"set"),classApplyDescriptorDestructureSet(t,s)}', { globals: [], locals: { _classStaticPrivateFieldDestructureSet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classStaticPrivateFieldDestructureSet", dependencies: { classApplyDescriptorDestructureSet: ["body.0.body.body.0.argument.expressions.2.callee"], assertClassBrand: ["body.0.body.body.0.argument.expressions.0.callee"], classCheckPrivateStaticFieldDescriptor: ["body.0.body.body.0.argument.expressions.1.callee"] }, internal: !1 }), classStaticPrivateFieldSpecGet: J("7.0.2", 'function _classStaticPrivateFieldSpecGet(t,s,r){return assertClassBrand(s,t),classCheckPriva\ teStaticFieldDescriptor(r,"get"),classApplyDescriptorGet(t,r)}', { globals: [], locals: { _classStaticPrivateFieldSpecGet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classStaticPrivateFieldSpecGet", dependencies: { classApplyDescriptorGet: ["body.0.body.body.0.argument.expressions.2.callee"], assertClassBrand: ["body.0.body.body.0.argument.expressions.0.callee"], classCheckPrivateStaticFieldDescriptor: ["body.0.body.body.0.argument.expressions.1.callee"] }, internal: !1 }), classStaticPrivateFieldSpecSet: J("7.0.2", 'function _classStaticPrivateFieldSpecSet(s,t,r,e){return assertClassBrand(t,s),classCheckPri\ vateStaticFieldDescriptor(r,"set"),classApplyDescriptorSet(s,r,e),e}', { globals: [], locals: { _classStaticPrivateFieldSpecSet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classStaticPrivateFieldSpecSet", dependencies: { classApplyDescriptorSet: ["body.0.body.body.0.argument.expressions.2.callee"], assertClassBrand: ["body.0.body.body.0.argument.expressions.0.callee"], classCheckPrivateStaticFieldDescriptor: ["body.0.body.body.0.argument.expressions.1.callee"] }, internal: !1 }), classStaticPrivateMethodSet: J("7.3.2", 'function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static \ private field")}', { globals: ["TypeError"], locals: { _classStaticPrivateMethodSet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classStaticPrivateMethodSet", dependencies: {}, internal: !1 }), defineEnumerableProperties: J("7.0.0-beta.0", 'function _defineEnumerableProperties(e,r){for(var t in r){var n=r[t];n.configurable=n.enu\ merable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t,n)}if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(\ r),b=0;b0;)try{var o=r.pop(),p=o.d.call(o.v);if(o.a)return Promise.resolve(p).then(next,err)}catch\ (r){return err(r)}if(s)throw e}function err(r){return e=s?new dispose_SuppressedError(e,r):r,s=!0,next()}return next()}', { globals: ["SuppressedError", "Error", "Object", "Promise"], locals: { dispose_SuppressedError: ["body.0.id", "body.0.body.body.0.argument.expressions.0.alternate.expressions.1.left.object", "body.0.body\ .body.0.argument.expressions.0.alternate.expressions.1.right.arguments.1.properties.0.value.properties.0.value", "body.0.body.body.0.argumen\ t.expressions.1.callee", "body.1.body.body.1.body.body.0.argument.expressions.0.right.consequent.callee", "body.0.body.body.0.argument.expre\ ssions.0.consequent.left", "body.0.body.body.0.argument.expressions.0.alternate.expressions.0.left"], _dispose: ["body.1.id"] }, exportBindingAssignments: [], exportName: "_dispose", dependencies: {}, internal: !1 }), objectSpread: J("7.0.0-beta.0", 'function _objectSpread(e){for(var r=1;r { "use strict"; Object.defineProperty(ms, "__esModule", { value: !0 }); ms.default = void 0; ms.get = WL; ms.getDependencies = n8e; ms.isInternal = a8e; ms.list = void 0; ms.minVersion = s8e; var t8e = Pe(), aC = $L(), { cloneNode: r8e, identifier: VL } = t8e; function oy(e, t, r) { try { let i = t.split("."), s = i.shift(); for (; i.length > 0; ) e = e[s], s = i.shift(); if (arguments.length > 2) e[s] = r; else return e[s]; } catch (i) { throw i.message += ` (when accessing ${t})`, i; } } n(oy, "deep"); function i8e(e, t, r, i, s, a) { let { locals: o, dependencies: u, exportBindingAssignments: l, exportName: c } = t, f = new Set(i || []); r && f.add(r); for (let [m, h] of (Object.entries || ((d) => Object.keys(d).map((y) => [y, d[y]])))(o)) { let d = m; if (r && m === c) d = r; else for (; f.has(d); ) d = "_" + d; if (d !== m) for (let y of h) oy(e, y, VL(d)); } for (let [m, h] of (Object.entries || ((d) => Object.keys(d).map((y) => [y, d[y]])))(u)) { let d = typeof s == "function" && s(m) || VL(m); for (let y of h) oy(e, y, r8e(d)); } a?.(e, c, (m) => { l.forEach((h) => oy(e, h, m(oy(e, h)))); }); } n(i8e, "permuteHelperAST"); var nC = /* @__PURE__ */ Object.create(null); function uy(e) { if (!nC[e]) { let t = aC.default[e]; if (!t) throw Object.assign(new ReferenceError(`Unknown helper ${e}`), { code: "BABEL_HELPER_UNKNOWN", helper: e }); nC[e] = { minVersion: t.minVersion, build(r, i, s, a) { let o = t.ast(); return i8e(o, t.metadata, i, s, r, a), { nodes: o.body, globals: t.metadata.globals }; }, getDependencies() { return Object.keys(t.metadata.dependencies); } }; } return nC[e]; } n(uy, "loadHelper"); function WL(e, t, r, i, s) { if (typeof r == "object") { let a = r; a?.type === "Identifier" ? r = a.name : r = void 0; } return uy(e).build(t, r, i, s); } n(WL, "get"); function s8e(e) { return uy(e).minVersion; } n(s8e, "minVersion"); function n8e(e) { return uy(e).getDependencies(); } n(n8e, "getDependencies"); function a8e(e) { var t; return (t = aC.default[e]) == null ? void 0 : t.metadata.internal; } n(a8e, "isInternal"); ms.ensure = (e) => { uy(e); }; var _yt = ms.list = Object.keys(aC.default).map((e) => e.replace(/^_/, "")), Pyt = ms.default = WL; }); // ../node_modules/@babel/traverse/lib/path/lib/virtual-types.js var uC = E((Ye) => { "use strict"; Object.defineProperty(Ye, "__esModule", { value: !0 }); Ye.Var = Ye.User = Ye.Statement = Ye.SpreadProperty = Ye.Scope = Ye.RestProperty = Ye.ReferencedMemberExpression = Ye.ReferencedIdentifier = Ye.Referenced = Ye.Pure = Ye.NumericLiteralTypeAnnotation = Ye.Generated = Ye.ForAwaitStatement = Ye.Flow = Ye.Expression = Ye.ExistentialTypeParam = Ye.BlockScoped = Ye.BindingIdentifier = void 0; var Oyt = Ye.ReferencedIdentifier = ["Identifier", "JSXIdentifier"], kyt = Ye.ReferencedMemberExpression = ["MemberExpression"], Byt = Ye. BindingIdentifier = ["Identifier"], Nyt = Ye.Statement = ["Statement"], Myt = Ye.Expression = ["Expression"], Ryt = Ye.Scope = ["Scopable", "Pattern"], Lyt = Ye.Referenced = null, jyt = Ye.BlockScoped = ["FunctionDeclaration", "ClassDeclaration", "VariableDeclaration"], qyt = Ye. Var = ["VariableDeclaration"], Uyt = Ye.User = null, $yt = Ye.Generated = null, Vyt = Ye.Pure = null, Wyt = Ye.Flow = ["Flow", "ImportDecl\ aration", "ExportDeclaration", "ImportSpecifier"], Hyt = Ye.RestProperty = ["RestElement"], Kyt = Ye.SpreadProperty = ["RestElement"], zyt = Ye. ExistentialTypeParam = ["ExistsTypeAnnotation"], Jyt = Ye.NumericLiteralTypeAnnotation = ["NumberLiteralTypeAnnotation"], Xyt = Ye.ForAwaitStatement = ["ForOfStatement"]; }); // ../node_modules/ms/index.js var KL = E((Gyt, HL) => { var Kl = 1e3, zl = Kl * 60, Jl = zl * 60, Ko = Jl * 24, o8e = Ko * 7, u8e = Ko * 365.25; HL.exports = function(e, t) { t = t || {}; var r = typeof e; if (r === "string" && e.length > 0) return l8e(e); if (r === "number" && isFinite(e)) return t.long ? f8e(e) : c8e(e); throw new Error( "val is not a non-empty string or a valid number. val=" + JSON.stringify(e) ); }; function l8e(e) { if (e = String(e), !(e.length > 100)) { var t = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i. exec( e ); if (t) { var r = parseFloat(t[1]), i = (t[2] || "ms").toLowerCase(); switch (i) { case "years": case "year": case "yrs": case "yr": case "y": return r * u8e; case "weeks": case "week": case "w": return r * o8e; case "days": case "day": case "d": return r * Ko; case "hours": case "hour": case "hrs": case "hr": case "h": return r * Jl; case "minutes": case "minute": case "mins": case "min": case "m": return r * zl; case "seconds": case "second": case "secs": case "sec": case "s": return r * Kl; case "milliseconds": case "millisecond": case "msecs": case "msec": case "ms": return r; default: return; } } } } n(l8e, "parse"); function c8e(e) { var t = Math.abs(e); return t >= Ko ? Math.round(e / Ko) + "d" : t >= Jl ? Math.round(e / Jl) + "h" : t >= zl ? Math.round(e / zl) + "m" : t >= Kl ? Math.round( e / Kl) + "s" : e + "ms"; } n(c8e, "fmtShort"); function f8e(e) { var t = Math.abs(e); return t >= Ko ? ly(e, t, Ko, "day") : t >= Jl ? ly(e, t, Jl, "hour") : t >= zl ? ly(e, t, zl, "minute") : t >= Kl ? ly(e, t, Kl, "secon\ d") : e + " ms"; } n(f8e, "fmtLong"); function ly(e, t, r, i) { var s = t >= r * 1.5; return Math.round(e / r) + " " + i + (s ? "s" : ""); } n(ly, "plural"); }); // ../node_modules/debug/src/common.js var lC = E((Qyt, zL) => { function d8e(e) { r.debug = r, r.default = r, r.coerce = l, r.disable = o, r.enable = s, r.enabled = u, r.humanize = KL(), r.destroy = c, Object.keys(e).forEach( (f) => { r[f] = e[f]; }), r.names = [], r.skips = [], r.formatters = {}; function t(f) { let m = 0; for (let h = 0; h < f.length; h++) m = (m << 5) - m + f.charCodeAt(h), m |= 0; return r.colors[Math.abs(m) % r.colors.length]; } n(t, "selectColor"), r.selectColor = t; function r(f) { let m, h = null, d, y; function p(...g) { if (!p.enabled) return; let b = p, D = Number(/* @__PURE__ */ new Date()), x = D - (m || D); b.diff = x, b.prev = m, b.curr = D, m = D, g[0] = r.coerce(g[0]), typeof g[0] != "string" && g.unshift("%O"); let T = 0; g[0] = g[0].replace(/%([a-zA-Z%])/g, (B, k) => { if (B === "%%") return "%"; T++; let j = r.formatters[k]; if (typeof j == "function") { let W = g[T]; B = j.call(b, W), g.splice(T, 1), T--; } return B; }), r.formatArgs.call(b, g), (b.log || r.log).apply(b, g); } return n(p, "debug"), p.namespace = f, p.useColors = r.useColors(), p.color = r.selectColor(f), p.extend = i, p.destroy = r.destroy, Object. defineProperty(p, "enabled", { enumerable: !0, configurable: !1, get: /* @__PURE__ */ n(() => h !== null ? h : (d !== r.namespaces && (d = r.namespaces, y = r.enabled(f)), y), "get"), set: /* @__PURE__ */ n((g) => { h = g; }, "set") }), typeof r.init == "function" && r.init(p), p; } n(r, "createDebug"); function i(f, m) { let h = r(this.namespace + (typeof m > "u" ? ":" : m) + f); return h.log = this.log, h; } n(i, "extend"); function s(f) { r.save(f), r.namespaces = f, r.names = [], r.skips = []; let m = (typeof f == "string" ? f : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean); for (let h of m) h[0] === "-" ? r.skips.push(h.slice(1)) : r.names.push(h); } n(s, "enable"); function a(f, m) { let h = 0, d = 0, y = -1, p = 0; for (; h < f.length; ) if (d < m.length && (m[d] === f[h] || m[d] === "*")) m[d] === "*" ? (y = d, p = h, d++) : (h++, d++); else if (y !== -1) d = y + 1, p++, h = p; else return !1; for (; d < m.length && m[d] === "*"; ) d++; return d === m.length; } n(a, "matchesTemplate"); function o() { let f = [ ...r.names, ...r.skips.map((m) => "-" + m) ].join(","); return r.enable(""), f; } n(o, "disable"); function u(f) { for (let m of r.skips) if (a(f, m)) return !1; for (let m of r.names) if (a(f, m)) return !0; return !1; } n(u, "enabled"); function l(f) { return f instanceof Error ? f.stack || f.message : f; } n(l, "coerce"); function c() { console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major versio\ n of `debug`."); } return n(c, "destroy"), r.enable(r.load()), r; } n(d8e, "setup"); zL.exports = d8e; }); // ../node_modules/debug/src/browser.js var JL = E((yi, cy) => { yi.formatArgs = h8e; yi.save = m8e; yi.load = y8e; yi.useColors = p8e; yi.storage = g8e(); yi.destroy = /* @__PURE__ */ (() => { let e = !1; return () => { e || (e = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the nex\ t major version of `debug`.")); }; })(); yi.colors = [ "#0000CC", "#0000FF", "#0033CC", "#0033FF", "#0066CC", "#0066FF", "#0099CC", "#0099FF", "#00CC00", "#00CC33", "#00CC66", "#00CC99", "#00CCCC", "#00CCFF", "#3300CC", "#3300FF", "#3333CC", "#3333FF", "#3366CC", "#3366FF", "#3399CC", "#3399FF", "#33CC00", "#33CC33", "#33CC66", "#33CC99", "#33CCCC", "#33CCFF", "#6600CC", "#6600FF", "#6633CC", "#6633FF", "#66CC00", "#66CC33", "#9900CC", "#9900FF", "#9933CC", "#9933FF", "#99CC00", "#99CC33", "#CC0000", "#CC0033", "#CC0066", "#CC0099", "#CC00CC", "#CC00FF", "#CC3300", "#CC3333", "#CC3366", "#CC3399", "#CC33CC", "#CC33FF", "#CC6600", "#CC6633", "#CC9900", "#CC9933", "#CCCC00", "#CCCC33", "#FF0000", "#FF0033", "#FF0066", "#FF0099", "#FF00CC", "#FF00FF", "#FF3300", "#FF3333", "#FF3366", "#FF3399", "#FF33CC", "#FF33FF", "#FF6600", "#FF6633", "#FF9900", "#FF9933", "#FFCC00", "#FFCC33" ]; function p8e() { if (typeof window < "u" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) return !0; if (typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) return !1; let e; return typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773 typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31? // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages typeof navigator < "u" && navigator.userAgent && (e = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(e[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/); } n(p8e, "useColors"); function h8e(e) { if (e[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + e[0] + (this.useColors ? "%c " : " ") + "+" + cy.exports.humanize(this.diff), !this.useColors) return; let t = "color: " + this.color; e.splice(1, 0, t, "color: inherit"); let r = 0, i = 0; e[0].replace(/%[a-zA-Z%]/g, (s) => { s !== "%%" && (r++, s === "%c" && (i = r)); }), e.splice(i, 0, t); } n(h8e, "formatArgs"); yi.log = console.debug || console.log || (() => { }); function m8e(e) { try { e ? yi.storage.setItem("debug", e) : yi.storage.removeItem("debug"); } catch { } } n(m8e, "save"); function y8e() { let e; try { e = yi.storage.getItem("debug") || yi.storage.getItem("DEBUG"); } catch { } return !e && typeof process < "u" && "env" in process && (e = process.env.DEBUG), e; } n(y8e, "load"); function g8e() { try { return localStorage; } catch { } } n(g8e, "localstorage"); cy.exports = lC()(yi); var { formatters: b8e } = cy.exports; b8e.j = function(e) { try { return JSON.stringify(e); } catch (t) { return "[UnexpectedJSONParseError]: " + t.message; } }; }); // ../node_modules/has-flag/index.js var YL = E((r1t, XL) => { "use strict"; XL.exports = (e, t = process.argv) => { let r = e.startsWith("-") ? "" : e.length === 1 ? "-" : "--", i = t.indexOf(r + e), s = t.indexOf("--"); return i !== -1 && (s === -1 || i < s); }; }); // ../node_modules/supports-color/index.js var QL = E((i1t, ZL) => { "use strict"; var D8e = require("os"), GL = require("tty"), Ki = YL(), { env: br } = process, Ra; Ki("no-color") || Ki("no-colors") || Ki("color=false") || Ki("color=never") ? Ra = 0 : (Ki("color") || Ki("colors") || Ki("color=true") || Ki("color=always")) && (Ra = 1); "FORCE_COLOR" in br && (br.FORCE_COLOR === "true" ? Ra = 1 : br.FORCE_COLOR === "false" ? Ra = 0 : Ra = br.FORCE_COLOR.length === 0 ? 1 : Math. min(parseInt(br.FORCE_COLOR, 10), 3)); function cC(e) { return e === 0 ? !1 : { level: e, hasBasic: !0, has256: e >= 2, has16m: e >= 3 }; } n(cC, "translateLevel"); function fC(e, t) { if (Ra === 0) return 0; if (Ki("color=16m") || Ki("color=full") || Ki("color=truecolor")) return 3; if (Ki("color=256")) return 2; if (e && !t && Ra === void 0) return 0; let r = Ra || 0; if (br.TERM === "dumb") return r; if (process.platform === "win32") { let i = D8e.release().split("."); return Number(i[0]) >= 10 && Number(i[2]) >= 10586 ? Number(i[2]) >= 14931 ? 3 : 2 : 1; } if ("CI" in br) return ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((i) => i in br) || br.CI_NAME === "codeship" ? 1 : r; if ("TEAMCITY_VERSION" in br) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(br.TEAMCITY_VERSION) ? 1 : 0; if (br.COLORTERM === "truecolor") return 3; if ("TERM_PROGRAM" in br) { let i = parseInt((br.TERM_PROGRAM_VERSION || "").split(".")[0], 10); switch (br.TERM_PROGRAM) { case "iTerm.app": return i >= 3 ? 3 : 2; case "Apple_Terminal": return 2; } } return /-256(color)?$/i.test(br.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(br.TERM) || "COLORTERM" in br ? 1 : r; } n(fC, "supportsColor"); function v8e(e) { let t = fC(e, e && e.isTTY); return cC(t); } n(v8e, "getSupportLevel"); ZL.exports = { supportsColor: v8e, stdout: cC(fC(!0, GL.isatty(1))), stderr: cC(fC(!0, GL.isatty(2))) }; }); // ../node_modules/debug/src/node.js var tj = E((Dr, dy) => { var x8e = require("tty"), fy = require("util"); Dr.init = _8e; Dr.log = C8e; Dr.formatArgs = S8e; Dr.save = w8e; Dr.load = A8e; Dr.useColors = E8e; Dr.destroy = fy.deprecate( () => { }, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`." ); Dr.colors = [6, 2, 3, 4, 5, 1]; try { let e = QL(); e && (e.stderr || e).level >= 2 && (Dr.colors = [ 20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, 215, 220, 221 ]); } catch { } Dr.inspectOpts = Object.keys(process.env).filter((e) => /^debug_/i.test(e)).reduce((e, t) => { let r = t.substring(6).toLowerCase().replace(/_([a-z])/g, (s, a) => a.toUpperCase()), i = process.env[t]; return /^(yes|on|true|enabled)$/i.test(i) ? i = !0 : /^(no|off|false|disabled)$/i.test(i) ? i = !1 : i === "null" ? i = null : i = Number( i), e[r] = i, e; }, {}); function E8e() { return "colors" in Dr.inspectOpts ? !!Dr.inspectOpts.colors : x8e.isatty(process.stderr.fd); } n(E8e, "useColors"); function S8e(e) { let { namespace: t, useColors: r } = this; if (r) { let i = this.color, s = "\x1B[3" + (i < 8 ? i : "8;5;" + i), a = ` ${s};1m${t} \x1B[0m`; e[0] = a + e[0].split(` `).join(` ` + a), e.push(s + "m+" + dy.exports.humanize(this.diff) + "\x1B[0m"); } else e[0] = T8e() + t + " " + e[0]; } n(S8e, "formatArgs"); function T8e() { return Dr.inspectOpts.hideDate ? "" : (/* @__PURE__ */ new Date()).toISOString() + " "; } n(T8e, "getDate"); function C8e(...e) { return process.stderr.write(fy.formatWithOptions(Dr.inspectOpts, ...e) + ` `); } n(C8e, "log"); function w8e(e) { e ? process.env.DEBUG = e : delete process.env.DEBUG; } n(w8e, "save"); function A8e() { return process.env.DEBUG; } n(A8e, "load"); function _8e(e) { e.inspectOpts = {}; let t = Object.keys(Dr.inspectOpts); for (let r = 0; r < t.length; r++) e.inspectOpts[t[r]] = Dr.inspectOpts[t[r]]; } n(_8e, "init"); dy.exports = lC()(Dr); var { formatters: ej } = dy.exports; ej.o = function(e) { return this.inspectOpts.colors = this.useColors, fy.inspect(e, this.inspectOpts).split(` `).map((t) => t.trim()).join(" "); }; ej.O = function(e) { return this.inspectOpts.colors = this.useColors, fy.inspect(e, this.inspectOpts); }; }); // ../node_modules/debug/src/index.js var zo = E((a1t, dC) => { typeof process > "u" || process.type === "renderer" || process.browser === !0 || process.__nwjs ? dC.exports = JL() : dC.exports = tj(); }); // ../node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js var pC = E((cr) => { "use strict"; Object.defineProperty(cr, "__esModule", { value: !0 }); cr.isBindingIdentifier = G8e; cr.isBlockScoped = r6e; cr.isExpression = Q8e; cr.isFlow = o6e; cr.isForAwaitStatement = c6e; cr.isGenerated = n6e; cr.isPure = a6e; cr.isReferenced = t6e; cr.isReferencedIdentifier = X8e; cr.isReferencedMemberExpression = Y8e; cr.isRestProperty = u6e; cr.isScope = e6e; cr.isSpreadProperty = l6e; cr.isStatement = Z8e; cr.isUser = s6e; cr.isVar = i6e; var P8e = Pe(), { isBinding: F8e, isBlockScoped: I8e, isExportDeclaration: O8e, isExpression: k8e, isFlow: B8e, isForStatement: N8e, isForXStatement: M8e, isIdentifier: rj, isImportDeclaration: R8e, isImportSpecifier: L8e, isJSXIdentifier: j8e, isJSXMemberExpression: q8e, isMemberExpression: U8e, isRestElement: ij, isReferenced: py, isScope: $8e, isStatement: V8e, isVar: W8e, isVariableDeclaration: H8e, react: K8e, isForOfStatement: z8e } = P8e, { isCompatTag: J8e } = K8e; function X8e(e) { let { node: t, parent: r } = this; return rj(t, e) ? py(t, r, this.parentPath.parent) : j8e(t, e) ? !q8e(r) && J8e(t.name) ? !1 : py(t, r, this.parentPath.parent) : !1; } n(X8e, "isReferencedIdentifier"); function Y8e() { let { node: e, parent: t } = this; return U8e(e) && py(e, t); } n(Y8e, "isReferencedMemberExpression"); function G8e() { let { node: e, parent: t } = this, r = this.parentPath.parent; return rj(e) && F8e(e, t, r); } n(G8e, "isBindingIdentifier"); function Z8e() { let { node: e, parent: t } = this; return V8e(e) ? !(H8e(e) && (M8e(t, { left: e }) || N8e(t, { init: e }))) : !1; } n(Z8e, "isStatement"); function Q8e() { return this.isIdentifier() ? this.isReferencedIdentifier() : k8e(this.node); } n(Q8e, "isExpression"); function e6e() { return $8e(this.node, this.parent); } n(e6e, "isScope"); function t6e() { return py(this.node, this.parent); } n(t6e, "isReferenced"); function r6e() { return I8e(this.node); } n(r6e, "isBlockScoped"); function i6e() { return W8e(this.node); } n(i6e, "isVar"); function s6e() { var e; return !!((e = this.node) != null && e.loc); } n(s6e, "isUser"); function n6e() { return !this.isUser(); } n(n6e, "isGenerated"); function a6e(e) { return this.scope.isPure(this.node, e); } n(a6e, "isPure"); function o6e() { let { node: e } = this; return B8e(e) ? !0 : R8e(e) ? e.importKind === "type" || e.importKind === "typeof" : O8e(e) ? e.exportKind === "type" : L8e(e) ? e.importKind === "type" || e.importKind === "typeof" : !1; } n(o6e, "isFlow"); function u6e() { var e; return ij(this.node) && ((e = this.parentPath) == null ? void 0 : e.isObjectPattern()); } n(u6e, "isRestProperty"); function l6e() { var e; return ij(this.node) && ((e = this.parentPath) == null ? void 0 : e.isObjectExpression()); } n(l6e, "isSpreadProperty"); function c6e() { return z8e(this.node, { await: !0 }); } n(c6e, "isForAwaitStatement"); cr.isExistentialTypeParam = /* @__PURE__ */ n(function() { throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7."); }, "isExistentialTypeParam"), cr.isNumericLiteralTypeAnnotation = /* @__PURE__ */ n(function() { throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7."); }, "isNumericLiteralTypeAnnotation"); }); // ../node_modules/@babel/traverse/lib/visitors.js var Xd = E((Xo) => { "use strict"; Object.defineProperty(Xo, "__esModule", { value: !0 }); Xo.environmentVisitor = b6e; Xo.explode = hj; Xo.isExplodedVisitor = pj; Xo.merge = yj; Xo.verify = mj; var dj = uC(), f6e = pC(), d6e = Pe(), sj = zi(), { DEPRECATED_KEYS: nj, DEPRECATED_ALIASES: aj, FLIPPED_ALIAS_KEYS: oj, TYPES: p6e, __internal__deprecationWarning: uj } = d6e; function h6e(e) { return e in dj; } n(h6e, "isVirtualType"); function pj(e) { return e?._exploded; } n(pj, "isExplodedVisitor"); function hj(e) { if (pj(e)) return e; e._exploded = !0; for (let r of Object.keys(e)) { if (Jo(r)) continue; let i = r.split("|"); if (i.length === 1) continue; let s = e[r]; delete e[r]; for (let a of i) e[a] = s; } mj(e), delete e.__esModule, m6e(e), fj(e); for (let r of Object.keys(e)) { if (Jo(r) || !h6e(r)) continue; let i = e[r]; for (let a of Object.keys(i)) i[a] = y6e(r, i[a]); delete e[r]; let s = dj[r]; if (s !== null) for (let a of s) { var t; (t = e[a]) != null || (e[a] = {}), Jd(e[a], i); } else Jd(e, i); } for (let r of Object.keys(e)) { if (Jo(r)) continue; let i = oj[r]; if (r in nj) { let a = nj[r]; uj(r, a, "Visitor "), i = [a]; } else if (r in aj) { let a = aj[r]; uj(r, a, "Visitor "), i = oj[a]; } if (!i) continue; let s = e[r]; delete e[r]; for (let a of i) { let o = e[a]; o ? Jd(o, s) : e[a] = Object.assign({}, s); } } for (let r of Object.keys(e)) Jo(r) || fj(e[r]); return e; } n(hj, "explode$1"); function mj(e) { if (!e._verified) { if (typeof e == "function") throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Functi\ on }`?"); for (let t of Object.keys(e)) { if ((t === "enter" || t === "exit") && lj(t, e[t]), Jo(t)) continue; if (!p6e.includes(t)) throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse 7.28.5`); let r = e[t]; if (typeof r == "object") for (let i of Object.keys(r)) if (i === "enter" || i === "exit") lj(`${t}.${i}`, r[i]); else throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${i}`); } e._verified = !0; } } n(mj, "verify$1"); function lj(e, t) { let r = [].concat(t); for (let i of r) if (typeof i != "function") throw new TypeError(`Non-function found defined in ${e} with type ${typeof i}`); } n(lj, "validateVisitorMethods"); function yj(e, t = [], r) { let i = { _verified: !0, _exploded: !0 }; Object.defineProperty(i, "_exploded", { enumerable: !1 }), Object.defineProperty(i, "_verified", { enumerable: !1 }); for (let s = 0; s < e.length; s++) { let a = hj(e[s]), o = t[s], u = a; (o || r) && (u = cj(u, o, r)), Jd(i, u); for (let l of Object.keys(a)) { if (Jo(l)) continue; let c = a[l]; (o || r) && (c = cj(c, o, r)); let f = i[l] || (i[l] = {}); Jd(f, c); } } return i; } n(yj, "merge"); function cj(e, t, r) { let i = {}; for (let s of ["enter", "exit"]) { let a = e[s]; Array.isArray(a) && (a = a.map(function(o) { let u = o; return t && (u = /* @__PURE__ */ n(function(l) { o.call(t, l, t); }, "newFn")), r && (u = r(t?.key, s, u)), u !== o && (u.toString = () => o.toString()), u; }), i[s] = a); } return i; } n(cj, "wrapWithStateOrWrapper"); function m6e(e) { for (let t of Object.keys(e)) { if (Jo(t)) continue; let r = e[t]; typeof r == "function" && (e[t] = { enter: r }); } } n(m6e, "ensureEntranceObjects"); function fj(e) { e.enter && !Array.isArray(e.enter) && (e.enter = [e.enter]), e.exit && !Array.isArray(e.exit) && (e.exit = [e.exit]); } n(fj, "ensureCallbackArrays"); function y6e(e, t) { let r = `is${e}`, i = f6e[r], s = /* @__PURE__ */ n(function(a) { if (i.call(a)) return t.apply(this, arguments); }, "newFn"); return s.toString = () => t.toString(), s; } n(y6e, "wrapCheck"); function Jo(e) { return e[0] === "_" || e === "enter" || e === "exit" || e === "shouldSkip" || e === "denylist" || e === "noScope" || e === "skipKeys" || e === "blacklist"; } n(Jo, "shouldIgnoreKey"); function Jd(e, t) { for (let r of ["enter", "exit"]) t[r] && (e[r] = [].concat(e[r] || [], t[r])); } n(Jd, "mergePair"); var g6e = { FunctionParent(e) { e.isArrowFunctionExpression() || (e.skip(), e.isMethod() && (e.requeueComputedKeyAndDecorators ? e.requeueComputedKeyAndDecorators() : sj.requeueComputedKeyAndDecorators.call(e))); }, Property(e) { e.isObjectProperty() || (e.skip(), e.requeueComputedKeyAndDecorators ? e.requeueComputedKeyAndDecorators() : sj.requeueComputedKeyAndDecorators. call(e)); } }; function b6e(e) { return yj([g6e, e]); } n(b6e, "environmentVisitor"); }); // ../node_modules/@babel/traverse/lib/scope/lib/renamer.js var gj = E((my) => { "use strict"; Object.defineProperty(my, "__esModule", { value: !0 }); my.default = void 0; var hy = Pe(), D6e = hy, v6e = yy(), x6e = Xd(), E6e = zi(), { getAssignmentIdentifiers: S6e } = D6e, T6e = { ReferencedIdentifier({ node: e }, t) { e.name === t.oldName && (e.name = t.newName); }, Scope(e, t) { e.scope.bindingIdentifierEquals(t.oldName, t.binding.identifier) || (e.skip(), e.isMethod() && (e.requeueComputedKeyAndDecorators ? e. requeueComputedKeyAndDecorators() : E6e.requeueComputedKeyAndDecorators.call(e))); }, ObjectProperty({ node: e, scope: t }, r) { let { name: i } = e.key; if (e.shorthand && (i === r.oldName || i === r.newName) && t.getBindingIdentifier(i) === r.binding.identifier) { e.shorthand = !1; { var s; (s = e.extra) != null && s.shorthand && (e.extra.shorthand = !1); } } }, "AssignmentExpression|Declaration|VariableDeclarator"(e, t) { if (e.isVariableDeclaration()) return; let r = e.isAssignmentExpression() ? S6e(e.node) : e.getOuterBindingIdentifiers(); for (let i in r) i === t.oldName && (r[i].name = t.newName); } }, hC = class { static { n(this, "Renamer"); } constructor(t, r, i) { this.newName = i, this.oldName = r, this.binding = t; } maybeConvertFromExportDeclaration(t) { let r = t.parentPath; if (r.isExportDeclaration()) { if (r.isExportDefaultDeclaration()) { let { declaration: i } = r.node; if (hy.isDeclaration(i) && !i.id) return; } r.isExportAllDeclaration() || r.splitExportDeclaration(); } } maybeConvertFromClassFunctionDeclaration(t) { return t; } maybeConvertFromClassFunctionExpression(t) { return t; } rename() { let { binding: t, oldName: r, newName: i } = this, { scope: s, path: a } = t, o = a.find((c) => c.isDeclaration() || c.isFunctionExpression() || c.isClassExpression()); o && o.getOuterBindingIdentifiers()[r] === t.identifier && this.maybeConvertFromExportDeclaration(o); let u = arguments[0] || s.block, l = { discriminant: !0 }; hy.isMethod(u) && (u.computed && (l.key = !0), hy.isObjectMethod(u) || (l.decorators = !0)), (0, v6e.traverseNode)(u, (0, x6e.explode)( T6e), s, this, s.path, l), arguments[0] || (s.removeOwnBinding(r), s.bindings[i] = t, this.binding.identifier.name = i), o && (this.maybeConvertFromClassFunctionDeclaration( a), this.maybeConvertFromClassFunctionExpression(a)); } }; my.default = hC; }); // ../node_modules/@babel/traverse/lib/scope/traverseForScope.js var bj = E((mC) => { "use strict"; Object.defineProperty(mC, "__esModule", { value: !0 }); mC.default = F6e; var C6e = Pe(), w6e = ir(), A6e = Xd(), _6e = zi(), { VISITOR_KEYS: P6e } = C6e; function F6e(e, t, r) { let i = (0, A6e.explode)(t); if (i.enter || i.exit) throw new Error("Should not be used with enter/exit visitors."); s(e.parentPath, e.parent, e.node, e.container, e.key, e.listKey, e.hub, e); function s(a, o, u, l, c, f, m, h) { if (!u) return; let d = h || w6e.NodePath.get({ hub: m, parentPath: a, parent: o, container: l, listKey: f, key: c }); _6e.setScope.call(d); let y = i[u.type]; if (y) { if (y.enter) for (let g of y.enter) g.call(r, d, r); if (y.exit) for (let g of y.exit) g.call(r, d, r); } if (d.shouldSkip) return; let p = P6e[u.type]; if (p != null && p.length) for (let g of p) { let b = u[g]; if (b) if (Array.isArray(b)) for (let D = 0; D < b.length; D++) { let x = b[D]; s(d, u, x, b, D, g); } else s(d, u, b, u, g, null); } } n(s, "_traverse"); } n(F6e, "traverseForScope"); }); // ../node_modules/@babel/traverse/lib/scope/binding.js var Dj = E((gy) => { "use strict"; Object.defineProperty(gy, "__esModule", { value: !0 }); gy.default = void 0; var yC = class { static { n(this, "Binding"); } constructor({ identifier: t, scope: r, path: i, kind: s }) { this.identifier = void 0, this.scope = void 0, this.path = void 0, this.kind = void 0, this.constantViolations = [], this.constant = !0, this.referencePaths = [], this.referenced = !1, this.references = 0, this.identifier = t, this.scope = r, this.path = i, this.kind = s, (s === "var" || s === "hoisted") && I6e(i) && this.reassign(i), this.clearValue(); } deoptValue() { this.clearValue(), this.hasDeoptedValue = !0; } setValue(t) { this.hasDeoptedValue || (this.hasValue = !0, this.value = t); } clearValue() { this.hasDeoptedValue = !1, this.hasValue = !1, this.value = null; } reassign(t) { this.constant = !1, !this.constantViolations.includes(t) && this.constantViolations.push(t); } reference(t) { this.referencePaths.includes(t) || (this.referenced = !0, this.references++, this.referencePaths.push(t)); } dereference() { this.references--, this.referenced = !!this.references; } }; gy.default = yC; function I6e(e) { let t = !e.isVariableDeclarator() || e.node.init; for (let { parentPath: r, key: i } = e; r; { parentPath: r, key: i } = r) { if (r.isFunctionParent()) return !1; if (i === "left" && r.isForXStatement() || t && i === "body" && r.isLoop()) return !0; } return !1; } n(I6e, "isInitInLoop"); }); // ../node_modules/@babel/traverse/lib/cache.js var Yo = E((Ci) => { "use strict"; Object.defineProperty(Ci, "__esModule", { value: !0 }); Ci.clear = k6e; Ci.clearPath = vj; Ci.clearScope = xj; Ci.getCachedPaths = B6e; Ci.getOrCreateCachedPaths = N6e; Ci.scope = Ci.path = void 0; var by = Ci.path = /* @__PURE__ */ new WeakMap(), O6e = Ci.scope = /* @__PURE__ */ new WeakMap(); function k6e() { vj(), xj(); } n(k6e, "clear"); function vj() { Ci.path = by = /* @__PURE__ */ new WeakMap(); } n(vj, "clearPath"); function xj() { Ci.scope = O6e = /* @__PURE__ */ new WeakMap(); } n(xj, "clearScope"); function B6e(e) { let { parent: t, parentPath: r } = e; return by.get(t); } n(B6e, "getCachedPaths"); function N6e(e, t) { let r = by.get(e); return r || by.set(e, r = /* @__PURE__ */ new Map()), r; } n(N6e, "getOrCreateCachedPaths"); }); // ../node_modules/@babel/helper-globals/data/builtin-lower.json var Ej = E((D1t, M6e) => { M6e.exports = [ "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "eval", "globalThis", "isFinite", "isNaN", "parseFloat", "parseInt", "undefined", "unescape" ]; }); // ../node_modules/@babel/helper-globals/data/builtin-upper.json var Sj = E((v1t, R6e) => { R6e.exports = [ "AggregateError", "Array", "ArrayBuffer", "Atomics", "BigInt", "BigInt64Array", "BigUint64Array", "Boolean", "DataView", "Date", "Error", "EvalError", "FinalizationRegistry", "Float16Array", "Float32Array", "Float64Array", "Function", "Infinity", "Int16Array", "Int32Array", "Int8Array", "Intl", "Iterator", "JSON", "Map", "Math", "NaN", "Number", "Object", "Promise", "Proxy", "RangeError", "ReferenceError", "Reflect", "RegExp", "Set", "SharedArrayBuffer", "String", "Symbol", "SyntaxError", "TypeError", "Uint16Array", "Uint32Array", "Uint8Array", "Uint8ClampedArray", "URIError", "WeakMap", "WeakRef", "WeakSet" ]; }); // ../node_modules/@babel/traverse/lib/scope/index.js var xC = E((vy) => { "use strict"; Object.defineProperty(vy, "__esModule", { value: !0 }); vy.default = void 0; var L6e = gj(), Oj = ir(), x1t = bj(), j6e = Dj(), kj = Pe(), Bj = kj, Tj = Yo(), q6e = Ej(), U6e = Sj(), { assignmentExpression: $6e, callExpression: Cj, cloneNode: wj, getBindingIdentifiers: Nj, identifier: Zo, isArrayExpression: Mj, isBinary: V6e, isCallExpression: Aj, isClass: W6e, isClassBody: H6e, isClassDeclaration: K6e, isExportAllDeclaration: Rj, isExportDefaultDeclaration: z6e, isExportNamedDeclaration: gC, isFunctionDeclaration: J6e, isIdentifier: Go, isImportDeclaration: bC, isLiteral: X6e, isMemberExpression: Y6e, isMethod: G6e, isModuleSpecifier: Z6e, isNullLiteral: Q6e, isObjectExpression: eFe, isProperty: tFe, isPureish: rFe, isRegExpLiteral: iFe, isSuper: sFe, isTaggedTemplateExpression: nFe, isTemplateLiteral: Lj, isThisExpression: _j, isUnaryExpression: aFe, isVariableDeclaration: oFe, expressionStatement: uFe, matchesPattern: Pj, memberExpression: DC, numericLiteral: lFe, toIdentifier: cFe, variableDeclaration: fFe, variableDeclarator: dFe, isRecordExpression: pFe, isTupleExpression: hFe, isObjectProperty: mFe, isTopicReference: Fj, isMetaProperty: yFe, isPrivateName: gFe, isExportDeclaration: bFe, buildUndefinedNode: DFe, sequenceExpression: vFe } = kj; function wt(e, t) { switch (e?.type) { default: if (bC(e) || bFe(e)) { var r; if ((Rj(e) || gC(e) || bC(e)) && e.source) wt(e.source, t); else if ((gC(e) || bC(e)) && (r = e.specifiers) != null && r.length) for (let i of e.specifiers) wt(i, t); else (z6e(e) || gC(e)) && e.declaration && wt(e.declaration, t); } else Z6e(e) ? wt(e.local, t) : X6e(e) && !Q6e(e) && !iFe(e) && !Lj(e) && t.push(e.value); break; case "MemberExpression": case "OptionalMemberExpression": case "JSXMemberExpression": wt(e.object, t), wt(e.property, t); break; case "Identifier": case "JSXIdentifier": t.push(e.name); break; case "CallExpression": case "OptionalCallExpression": case "NewExpression": wt(e.callee, t); break; case "ObjectExpression": case "ObjectPattern": for (let i of e.properties) wt(i, t); break; case "SpreadElement": case "RestElement": wt(e.argument, t); break; case "ObjectProperty": case "ObjectMethod": case "ClassProperty": case "ClassMethod": case "ClassPrivateProperty": case "ClassPrivateMethod": wt(e.key, t); break; case "ThisExpression": t.push("this"); break; case "Super": t.push("super"); break; case "Import": case "ImportExpression": t.push("import"); break; case "DoExpression": t.push("do"); break; case "YieldExpression": t.push("yield"), wt(e.argument, t); break; case "AwaitExpression": t.push("await"), wt(e.argument, t); break; case "AssignmentExpression": wt(e.left, t); break; case "VariableDeclarator": wt(e.id, t); break; case "FunctionExpression": case "FunctionDeclaration": case "ClassExpression": case "ClassDeclaration": wt(e.id, t); break; case "PrivateName": wt(e.id, t); break; case "ParenthesizedExpression": wt(e.expression, t); break; case "UnaryExpression": case "UpdateExpression": wt(e.argument, t); break; case "MetaProperty": wt(e.meta, t), wt(e.property, t); break; case "JSXElement": wt(e.openingElement, t); break; case "JSXOpeningElement": wt(e.name, t); break; case "JSXFragment": wt(e.openingFragment, t); break; case "JSXOpeningFragment": t.push("Fragment"); break; case "JSXNamespacedName": wt(e.namespace, t), wt(e.name, t); break; } } n(wt, "gatherNodeParts"); function Ij(e) { e.references = /* @__PURE__ */ Object.create(null), e.uids = /* @__PURE__ */ Object.create(null), e.bindings = /* @__PURE__ */ Object.create( null), e.globals = /* @__PURE__ */ Object.create(null); } n(Ij, "resetScope"); function xFe(e) { return e.isFunctionExpression() && !e.node.id || e.isArrowFunctionExpression(); } n(xFe, "isAnonymousFunctionExpression"); vC = Symbol.for("should not be considered a local binding"); var vC, EFe = { ForStatement(e) { let t = e.get("init"); if (t.isVar()) { let { scope: r } = e; (r.getFunctionParent() || r.getProgramParent()).registerBinding("var", t); } }, Declaration(e) { if (e.isBlockScoped() || e.isImportDeclaration() || e.isExportDeclaration()) return; (e.scope.getFunctionParent() || e.scope.getProgramParent()).registerDeclaration(e); }, ImportDeclaration(e) { e.scope.getBlockParent().registerDeclaration(e); }, TSImportEqualsDeclaration(e) { e.scope.getBlockParent().registerDeclaration(e); }, ReferencedIdentifier(e, t) { Bj.isTSQualifiedName(e.parent) && e.parent.right === e.node || e.parentPath.isTSImportEqualsDeclaration() || t.references.push(e); }, ForXStatement(e, t) { let r = e.get("left"); if (r.isPattern() || r.isIdentifier()) t.constantViolations.push(e); else if (r.isVar()) { let { scope: i } = e; (i.getFunctionParent() || i.getProgramParent()).registerBinding("var", r); } }, ExportDeclaration: { exit(e) { let { node: t, scope: r } = e; if (Rj(t)) return; let i = t.declaration; if (K6e(i) || J6e(i)) { let s = i.id; if (!s) return; let a = r.getBinding(s.name); a?.reference(e); } else if (oFe(i)) for (let s of i.declarations) for (let a of Object.keys(Nj(s))) { let o = r.getBinding(a); o?.reference(e); } } }, LabeledStatement(e) { e.scope.getBlockParent().registerDeclaration(e); }, AssignmentExpression(e, t) { t.assignments.push(e); }, UpdateExpression(e, t) { t.constantViolations.push(e); }, UnaryExpression(e, t) { e.node.operator === "delete" && t.constantViolations.push(e); }, BlockScoped(e) { let t = e.scope; if (t.path === e && (t = t.parent), t.getBlockParent().registerDeclaration(e), e.isClassDeclaration() && e.node.id) { let s = e.node.id.name; e.scope.bindings[s] = e.scope.parent.getBinding(s); } }, CatchClause(e) { e.scope.registerBinding("let", e); }, Function(e) { let t = e.get("params"); for (let r of t) e.scope.registerBinding("param", r); e.isFunctionExpression() && e.node.id && !e.node.id[vC] && e.scope.registerBinding("local", e.get("id"), e); }, ClassExpression(e) { e.node.id && !e.node.id[vC] && e.scope.registerBinding("local", e.get("id"), e); }, TSTypeAnnotation(e) { e.skip(); } }, Dy, SFe = 0, ys = class e { static { n(this, "Scope"); } constructor(t) { this.uid = void 0, this.path = void 0, this.block = void 0, this.inited = void 0, this.labels = void 0, this.bindings = void 0, this.referencesSet = void 0, this.globals = void 0, this.uidsSet = void 0, this.data = void 0, this.crawling = void 0; let { node: r } = t, i = Tj.scope.get(r); if (i?.path === t) return i; Tj.scope.set(r, this), this.uid = SFe++, this.block = r, this.path = t, this.labels = /* @__PURE__ */ new Map(), this.inited = !1, Object. defineProperties(this, { references: { enumerable: !0, configurable: !0, writable: !0, value: /* @__PURE__ */ Object.create(null) }, uids: { enumerable: !0, configurable: !0, writable: !0, value: /* @__PURE__ */ Object.create(null) } }); } get parent() { var t; let r, i = this.path; do { var s; let a = i.key === "key" || i.listKey === "decorators"; i = i.parentPath, a && i.isMethod() && (i = i.parentPath), (s = i) != null && s.isScope() && (r = i); } while (i && !r); return (t = r) == null ? void 0 : t.scope; } get references() { throw new Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead."); } get uids() { throw new Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead."); } generateDeclaredUidIdentifier(t) { let r = this.generateUidIdentifier(t); return this.push({ id: r }), wj(r); } generateUidIdentifier(t) { return Zo(this.generateUid(t)); } generateUid(t = "temp") { t = cFe(t).replace(/^_+/, "").replace(/\d+$/g, ""); let r, i = 0; do r = `_${t}`, i >= 11 ? r += i - 1 : i >= 9 ? r += i - 9 : i >= 1 && (r += i + 1), i++; while (this.hasLabel(r) || this.hasBinding(r) || this.hasGlobal(r) || this.hasReference(r)); let s = this.getProgramParent(); return s.references[r] = !0, s.uids[r] = !0, r; } generateUidBasedOnNode(t, r) { let i = []; wt(t, i); let s = i.join("$"); return s = s.replace(/^_/, "") || r || "ref", this.generateUid(s.slice(0, 20)); } generateUidIdentifierBasedOnNode(t, r) { return Zo(this.generateUidBasedOnNode(t, r)); } isStatic(t) { if (_j(t) || sFe(t) || Fj(t)) return !0; if (Go(t)) { let r = this.getBinding(t.name); return r ? r.constant : this.hasBinding(t.name); } return !1; } maybeGenerateMemoised(t, r) { if (this.isStatic(t)) return null; { let i = this.generateUidIdentifierBasedOnNode(t); return r ? i : (this.push({ id: i }), wj(i)); } } checkBlockScopedCollisions(t, r, i, s) { if (r === "param" || t.kind === "local") return; if (r === "let" || t.kind === "let" || t.kind === "const" || t.kind === "module" || t.kind === "param" && r === "const") throw this.path.hub.buildError(s, `Duplicate declaration "${i}"`, TypeError); } rename(t, r) { let i = this.getBinding(t); i && (r || (r = this.generateUidIdentifier(t).name), new L6e.default(i, t, r).rename(arguments[2])); } dump() { let t = "-".repeat(60); console.log(t); let r = this; do { console.log("#", r.block.type); for (let i of Object.keys(r.bindings)) { let s = r.bindings[i]; console.log(" -", i, { constant: s.constant, references: s.references, violations: s.constantViolations.length, kind: s.kind }); } } while (r = r.parent); console.log(t); } hasLabel(t) { return !!this.getLabel(t); } getLabel(t) { return this.labels.get(t); } registerLabel(t) { this.labels.set(t.node.label.name, t); } registerDeclaration(t) { if (t.isLabeledStatement()) this.registerLabel(t); else if (t.isFunctionDeclaration()) this.registerBinding("hoisted", t.get("id"), t); else if (t.isVariableDeclaration()) { let r = t.get("declarations"), { kind: i } = t.node; for (let s of r) this.registerBinding(i === "using" || i === "await using" ? "const" : i, s); } else if (t.isClassDeclaration()) { if (t.node.declare) return; this.registerBinding("let", t); } else if (t.isImportDeclaration()) { let r = t.node.importKind === "type" || t.node.importKind === "typeof", i = t.get("specifiers"); for (let s of i) { let a = r || s.isImportSpecifier() && (s.node.importKind === "type" || s.node.importKind === "typeof"); this.registerBinding(a ? "unknown" : "module", s); } } else if (t.isExportDeclaration()) { let r = t.get("declaration"); (r.isClassDeclaration() || r.isFunctionDeclaration() || r.isVariableDeclaration()) && this.registerDeclaration(r); } else this.registerBinding("unknown", t); } buildUndefinedNode() { return DFe(); } registerConstantViolation(t) { let r = t.getAssignmentIdentifiers(); for (let s of Object.keys(r)) { var i; (i = this.getBinding(s)) == null || i.reassign(t); } } registerBinding(t, r, i = r) { if (!t) throw new ReferenceError("no `kind`"); if (r.isVariableDeclaration()) { let o = r.get("declarations"); for (let u of o) this.registerBinding(t, u); return; } let s = this.getProgramParent(), a = r.getOuterBindingIdentifiers(!0); for (let o of Object.keys(a)) { s.references[o] = !0; for (let u of a[o]) { let l = this.getOwnBinding(o); if (l) { if (l.identifier === u) continue; this.checkBlockScopedCollisions(l, t, o, u); } l ? l.reassign(i) : this.bindings[o] = new j6e.default({ identifier: u, scope: this, path: i, kind: t }); } } } addGlobal(t) { this.globals[t.name] = t; } hasUid(t) { { let r = this; do if (r.uids[t]) return !0; while (r = r.parent); return !1; } } hasGlobal(t) { let r = this; do if (r.globals[t]) return !0; while (r = r.parent); return !1; } hasReference(t) { return !!this.getProgramParent().references[t]; } isPure(t, r) { if (Go(t)) { let o = this.getBinding(t.name); return o ? r ? o.constant : !0 : !1; } else { if (_j(t) || yFe(t) || Fj(t) || gFe(t)) return !0; if (W6e(t)) { var i; return t.superClass && !this.isPure(t.superClass, r) || ((i = t.decorators) == null ? void 0 : i.length) > 0 ? !1 : this.isPure(t. body, r); } else if (H6e(t)) { for (let o of t.body) if (!this.isPure(o, r)) return !1; return !0; } else { if (V6e(t)) return this.isPure(t.left, r) && this.isPure(t.right, r); if (Mj(t) || hFe(t)) { for (let o of t.elements) if (o !== null && !this.isPure(o, r)) return !1; return !0; } else if (eFe(t) || pFe(t)) { for (let o of t.properties) if (!this.isPure(o, r)) return !1; return !0; } else if (G6e(t)) { var s; return !(t.computed && !this.isPure(t.key, r) || ((s = t.decorators) == null ? void 0 : s.length) > 0); } else if (tFe(t)) { var a; return !(t.computed && !this.isPure(t.key, r) || ((a = t.decorators) == null ? void 0 : a.length) > 0 || (mFe(t) || t.static) && t.value !== null && !this.isPure(t.value, r)); } else { if (aFe(t)) return this.isPure(t.argument, r); if (Lj(t)) { for (let o of t.expressions) if (!this.isPure(o, r)) return !1; return !0; } else return nFe(t) ? Pj(t.tag, "String.raw") && !this.hasBinding("String", { noGlobals: !0 }) && this.isPure(t.quasi, r) : Y6e(t) ? !t.computed && Go(t.object) && t.object.name === "Symbol" && Go(t.property) && t.property. name !== "for" && !this.hasBinding("Symbol", { noGlobals: !0 }) : Aj(t) ? Pj(t.callee, "Symbol.for") && !this.hasBinding("Symbol", { noGlobals: !0 }) && t.arguments.length === 1 && Bj.isStringLiteral(t.arguments[0]) : rFe(t); } } } } setData(t, r) { return this.data[t] = r; } getData(t) { let r = this; do { let i = r.data[t]; if (i != null) return i; } while (r = r.parent); } removeData(t) { let r = this; do r.data[t] != null && (r.data[t] = null); while (r = r.parent); } init() { this.inited || (this.inited = !0, this.crawl()); } crawl() { let t = this.path; Ij(this), this.data = /* @__PURE__ */ Object.create(null); let r = this; do { if (r.crawling) return; if (r.path.isProgram()) break; } while (r = r.parent); let i = r, s = { references: [], constantViolations: [], assignments: [] }; if (this.crawling = !0, Dy || (Dy = Oj.default.visitors.merge([{ Scope(a) { Ij(a.scope); } }, EFe])), t.type !== "Program") { let a = Dy[t.type]; if (a) for (let o of a.enter) o.call(s, t, s); } t.traverse(Dy, s), this.crawling = !1; for (let a of s.assignments) { let o = a.getAssignmentIdentifiers(); for (let u of Object.keys(o)) a.scope.getBinding(u) || i.addGlobal(o[u]); a.scope.registerConstantViolation(a); } for (let a of s.references) { let o = a.scope.getBinding(a.node.name); o ? o.reference(a) : i.addGlobal(a.node); } for (let a of s.constantViolations) a.scope.registerConstantViolation(a); } push(t) { let r = this.path; r.isPattern() ? r = this.getPatternParent().path : !r.isBlockStatement() && !r.isProgram() && (r = this.getBlockParent().path), r.isSwitchStatement() && (r = (this.getFunctionParent() || this.getProgramParent()).path); let { init: i, unique: s, kind: a = "var", id: o } = t; if (!i && !s && (a === "var" || a === "let") && xFe(r) && Aj(r.parent, { callee: r.node }) && r.parent.arguments.length <= r.node.params.length && Go(o)) { r.pushContainer("params", o), r.scope.registerBinding("param", r.get("params")[r.node.params.length - 1]); return; } (r.isLoop() || r.isCatchClause() || r.isFunction()) && (r.ensureBlock(), r = r.get("body")); let u = t._blockHoist == null ? 2 : t._blockHoist, l = `declaration:${a}:${u}`, c = !s && r.getData(l); if (!c) { let h = fFe(a, []); h._blockHoist = u, [c] = r.unshiftContainer("body", [h]), s || r.setData(l, c); } let f = dFe(o, i), m = c.node.declarations.push(f); r.scope.registerBinding(a, c.get("declarations")[m - 1]); } getProgramParent() { let t = this; do if (t.path.isProgram()) return t; while (t = t.parent); throw new Error("Couldn't find a Program"); } getFunctionParent() { let t = this; do if (t.path.isFunctionParent()) return t; while (t = t.parent); return null; } getBlockParent() { let t = this; do if (t.path.isBlockParent()) return t; while (t = t.parent); throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program..."); } getPatternParent() { let t = this; do if (!t.path.isPattern()) return t.getBlockParent(); while (t = t.parent.parent); throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program..."); } getAllBindings() { let t = /* @__PURE__ */ Object.create(null), r = this; do { for (let i of Object.keys(r.bindings)) i in t || (t[i] = r.bindings[i]); r = r.parent; } while (r); return t; } bindingIdentifierEquals(t, r) { return this.getBindingIdentifier(t) === r; } getBinding(t) { let r = this, i; do { let a = r.getOwnBinding(t); if (a) { var s; if (!((s = i) != null && s.isPattern() && a.kind !== "param" && a.kind !== "local")) return a; } else if (!a && t === "arguments" && r.path.isFunction() && !r.path.isArrowFunctionExpression()) break; i = r.path; } while (r = r.parent); } getOwnBinding(t) { return this.bindings[t]; } getBindingIdentifier(t) { var r; return (r = this.getBinding(t)) == null ? void 0 : r.identifier; } getOwnBindingIdentifier(t) { let r = this.bindings[t]; return r?.identifier; } hasOwnBinding(t) { return !!this.getOwnBinding(t); } hasBinding(t, r) { if (!t) return !1; let i, s, a; typeof r == "object" ? (i = r.noGlobals, s = r.noUids, a = r.upToScope) : typeof r == "boolean" && (i = r); let o = this; do { if (a === o) break; if (o.hasOwnBinding(t)) return !0; } while (o = o.parent); return !!(!s && this.hasUid(t) || !i && e.globals.includes(t) || !i && e.contextVariables.includes(t)); } parentHasBinding(t, r) { var i; return (i = this.parent) == null ? void 0 : i.hasBinding(t, r); } moveBindingTo(t, r) { let i = this.getBinding(t); i && (i.scope.removeOwnBinding(t), i.scope = r, r.bindings[t] = i); } removeOwnBinding(t) { delete this.bindings[t]; } removeBinding(t) { var r; (r = this.getBinding(t)) == null || r.scope.removeOwnBinding(t); { let i = this; do i.uids[t] && (i.uids[t] = !1); while (i = i.parent); } } hoistVariables(t = (r) => this.push({ id: r })) { this.crawl(); let r = /* @__PURE__ */ new Set(); for (let i of Object.keys(this.bindings)) { let s = this.bindings[i]; if (!s) continue; let { path: a } = s; if (!a.isVariableDeclarator()) continue; let { parent: o, parentPath: u } = a; if (o.kind !== "var" || r.has(o)) continue; r.add(a.parent); let l, c = []; for (let f of o.declarations) { l ?? (l = f.id), f.init && c.push($6e("=", f.id, f.init)); let m = Object.keys(Nj(f, !1, !0, !0)); for (let h of m) t(Zo(h), f.init != null); } if (u.parentPath.isForXStatement({ left: o })) u.replaceWith(l); else if (c.length === 0) u.remove(); else { let f = c.length === 1 ? c[0] : vFe(c); u.parentPath.isForStatement({ init: o }) ? u.replaceWith(f) : u.replaceWith(uFe(f)); } } } }; vy.default = ys; ys.globals = [...q6e, ...U6e]; ys.contextVariables = ["arguments", "undefined", "Infinity", "NaN"]; ys.prototype._renameFromMap = /* @__PURE__ */ n(function(t, r, i, s) { t[r] && (t[i] = s, t[r] = null); }, "_renameFromMap"), ys.prototype.traverse = function(e, t, r) { (0, Oj.default)(e, t, this, r, this.path); }, ys.prototype._generateUid = /* @__PURE__ */ n(function(t, r) { let i = t; return r > 1 && (i += r), `_${i}`; }, "_generateUid"), ys.prototype.toArray = /* @__PURE__ */ n(function(t, r, i) { if (Go(t)) { let o = this.getBinding(t.name); if (o != null && o.constant && o.path.isGenericType("Array")) return t; } if (Mj(t)) return t; if (Go(t, { name: "arguments" })) return Cj(DC(DC(DC(Zo("Array"), Zo("prototype")), Zo("slice")), Zo("call")), [t]); let s, a = [t]; return r === !0 ? s = "toConsumableArray" : typeof r == "number" ? (a.push(lFe(r)), s = "slicedToArray") : s = "toArray", i && (a.unshift( this.path.hub.addHelper(s)), s = "maybeArrayLike"), Cj(this.path.hub.addHelper(s), a); }, "toArray"), ys.prototype.getAllBindingsOfKind = /* @__PURE__ */ n(function(...t) { let r = /* @__PURE__ */ Object.create(null); for (let i of t) { let s = this; do { for (let a of Object.keys(s.bindings)) { let o = s.bindings[a]; o.kind === i && (r[a] = o); } s = s.parent; } while (s); } return r; }, "getAllBindingsOfKind"), Object.defineProperties(ys.prototype, { parentBlock: { configurable: !0, enumerable: !0, get() { return this.path.parent; } }, hub: { configurable: !0, enumerable: !0, get() { return this.path.hub; } } }); }); // ../node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs function Yd(e, t) { let r = 0, i = 0, s = 0; do { let o = e.next(); s = Hj[o], r |= (s & 31) << i, i += 5; } while (s & 32); let a = r & 1; return r >>>= 1, a && (r = -2147483648 | -r), t + r; } function Gd(e, t, r) { let i = t - r; i = i < 0 ? -i << 1 | 1 : i << 1; do { let s = i & 31; i >>>= 5, i > 0 && (s |= 32), e.write(Wj[s]); } while (i > 0); return t; } function qj(e, t) { return e.pos >= t ? !1 : e.peek() !== Vj; } function Kj(e) { let { length: t } = e, r = new wFe(e), i = [], s = 0, a = 0, o = 0, u = 0, l = 0; do { let c = r.indexOf(";"), f = [], m = !0, h = 0; for (s = 0; r.pos < c; ) { let d; s = Yd(r, s), s < h && (m = !1), h = s, qj(r, c) ? (a = Yd(r, a), o = Yd(r, o), u = Yd(r, u), qj(r, c) ? (l = Yd(r, l), d = [s, a, o, u, l]) : d = [s, a, o, u]) : d = [s], f.push(d), r.pos++; } m || AFe(f), i.push(f), r.pos = c + 1; } while (r.pos <= t); return i; } function AFe(e) { e.sort(_Fe); } function _Fe(e, t) { return e[0] - t[0]; } function xy(e) { let t = new CFe(), r = 0, i = 0, s = 0, a = 0; for (let o = 0; o < e.length; o++) { let u = e[o]; if (o > 0 && t.write(TFe), u.length === 0) continue; let l = 0; for (let c = 0; c < u.length; c++) { let f = u[c]; c > 0 && t.write(Vj), l = Gd(t, f[0], l), f.length !== 1 && (r = Gd(t, f[1], r), i = Gd(t, f[2], i), s = Gd(t, f[3], s), f.length !== 4 && (a = Gd(t, f[4], a))); } } return t.flush(); } var Vj, TFe, jj, Wj, Hj, Uj, $j, CFe, wFe, EC = ph(() => { Vj = 44, TFe = 59, jj = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Wj = new Uint8Array(64), Hj = new Uint8Array(128); for (let e = 0; e < jj.length; e++) { let t = jj.charCodeAt(e); Wj[e] = t, Hj[t] = e; } n(Yd, "decodeInteger"); n(Gd, "encodeInteger"); n(qj, "hasMoreVlq"); Uj = 1024 * 16, $j = typeof TextDecoder < "u" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer < "u" ? { decode(e) { return Buffer.from(e.buffer, e.byteOffset, e.byteLength).toString(); } } : { decode(e) { let t = ""; for (let r = 0; r < e.length; r++) t += String.fromCharCode(e[r]); return t; } }, CFe = class { static { n(this, "StringWriter"); } constructor() { this.pos = 0, this.out = "", this.buffer = new Uint8Array(Uj); } write(e) { let { buffer: t } = this; t[this.pos++] = e, this.pos === Uj && (this.out += $j.decode(t), this.pos = 0); } flush() { let { buffer: e, out: t, pos: r } = this; return r > 0 ? t + $j.decode(e.subarray(0, r)) : t; } }, wFe = class { static { n(this, "StringReader"); } constructor(e) { this.pos = 0, this.buffer = e; } next() { return this.buffer.charCodeAt(this.pos++); } peek() { return this.buffer.charCodeAt(this.pos); } indexOf(e) { let { buffer: t, pos: r } = this, i = t.indexOf(e, r); return i === -1 ? t.length : i; } }; n(Kj, "decode"); n(AFe, "sort"); n(_Fe, "sortComparator"); n(xy, "encode"); }); // ../node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js var zj = E((SC, TC) => { (function(e, t) { typeof SC == "object" && typeof TC < "u" ? TC.exports = t() : typeof define == "function" && define.amd ? define(t) : (e = typeof globalThis < "u" ? globalThis : e || self, e.resolveURI = t()); })(SC, function() { "use strict"; let e = /^[\w+.-]+:\/\//, t = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/, r = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i; function i(g) { return e.test(g); } n(i, "isAbsoluteUrl"); function s(g) { return g.startsWith("//"); } n(s, "isSchemeRelativeUrl"); function a(g) { return g.startsWith("/"); } n(a, "isAbsolutePath"); function o(g) { return g.startsWith("file:"); } n(o, "isFileUrl"); function u(g) { return /^[.?#]/.test(g); } n(u, "isRelative"); function l(g) { let b = t.exec(g); return f(b[1], b[2] || "", b[3], b[4] || "", b[5] || "/", b[6] || "", b[7] || ""); } n(l, "parseAbsoluteUrl"); function c(g) { let b = r.exec(g), D = b[2]; return f("file:", "", b[1] || "", "", a(D) ? D : "/" + D, b[3] || "", b[4] || ""); } n(c, "parseFileUrl"); function f(g, b, D, x, T, w, B) { return { scheme: g, user: b, host: D, port: x, path: T, query: w, hash: B, type: 7 }; } n(f, "makeUrl"); function m(g) { if (s(g)) { let D = l("http:" + g); return D.scheme = "", D.type = 6, D; } if (a(g)) { let D = l("http://foo.com" + g); return D.scheme = "", D.host = "", D.type = 5, D; } if (o(g)) return c(g); if (i(g)) return l(g); let b = l("http://foo.com/" + g); return b.scheme = "", b.host = "", b.type = g ? g.startsWith("?") ? 3 : g.startsWith("#") ? 2 : 4 : 1, b; } n(m, "parseUrl"); function h(g) { if (g.endsWith("/..")) return g; let b = g.lastIndexOf("/"); return g.slice(0, b + 1); } n(h, "stripPathFilename"); function d(g, b) { y(b, b.type), g.path === "/" ? g.path = b.path : g.path = h(b.path) + g.path; } n(d, "mergePaths"); function y(g, b) { let D = b <= 4, x = g.path.split("/"), T = 1, w = 0, B = !1; for (let j = 1; j < x.length; j++) { let W = x[j]; if (!W) { B = !0; continue; } if (B = !1, W !== ".") { if (W === "..") { w ? (B = !0, w--, T--) : D && (x[T++] = W); continue; } x[T++] = W, w++; } } let k = ""; for (let j = 1; j < T; j++) k += "/" + x[j]; (!k || B && !k.endsWith("/..")) && (k += "/"), g.path = k; } n(y, "normalizePath"); function p(g, b) { if (!g && !b) return ""; let D = m(g), x = D.type; if (b && x !== 7) { let w = m(b), B = w.type; switch (x) { case 1: D.hash = w.hash; // fall through case 2: D.query = w.query; // fall through case 3: case 4: d(D, w); // fall through case 5: D.user = w.user, D.host = w.host, D.port = w.port; // fall through case 6: D.scheme = w.scheme; } B > x && (x = B); } y(D, x); let T = D.query + D.hash; switch (x) { // This is impossible, because of the empty checks at the start of the function. // case UrlType.Empty: case 2: case 3: return T; case 4: { let w = D.path.slice(1); return w ? u(b || g) && !u(w) ? "./" + w + T : w + T : T || "."; } case 5: return D.path + T; default: return D.scheme + "//" + D.user + D.host + D.port + D.path + T; } } return n(p, "resolve"), p; }); }); // ../node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs var cq = {}; hh(cq, { AnyMap: () => RFe, FlattenMap: () => RFe, GREATEST_LOWER_BOUND: () => ep, LEAST_UPPER_BOUND: () => Qd, TraceMap: () => Ln, allGeneratedPositionsFor: () => $Fe, decodedMap: () => KFe, decodedMappings: () => bs, eachMapping: () => VFe, encodedMap: () => zFe, encodedMappings: () => aq, generatedPositionFor: () => UFe, isIgnored: () => HFe, originalPositionFor: () => qFe, presortedDecodedMap: () => uq, sourceContentFor: () => WFe, traceSegment: () => FC }); function PFe(e) { if (!e) return ""; let t = e.lastIndexOf("/"); return e.slice(0, t + 1); } function FFe(e, t) { let r = PFe(e), i = t ? t + "/" : ""; return (s) => (0, Xj.default)(i + (s || ""), r); } function IFe(e, t) { let r = Jj(e, 0); if (r === e.length) return e; t || (e = e.slice()); for (let i = r; i < e.length; i = Jj(e, i + 1)) e[i] = kFe(e[i], t); return e; } function Jj(e, t) { for (let r = t; r < e.length; r++) if (!OFe(e[r])) return r; return e.length; } function OFe(e) { for (let t = 1; t < e.length; t++) if (e[t][gs] < e[t - 1][gs]) return !1; return !0; } function kFe(e, t) { return t || (e = e.slice()), e.sort(Qj); } function Qj(e, t) { return e[gs] - t[gs]; } function BFe(e, t) { let r = t.map(() => []); for (let i = 0; i < e.length; i++) { let s = e[i]; for (let a = 0; a < s.length; a++) { let o = s[a]; if (o.length === 1) continue; let u = o[wC], l = o[AC], c = o[_C], f = r[u]; (f[l] || (f[l] = [])).push([c, i, o[gs]]); } } for (let i = 0; i < r.length; i++) { let s = r[i]; for (let a = 0; a < s.length; a++) { let o = s[a]; o && o.sort(Qj); } } return r; } function NFe(e, t, r, i) { for (; r <= i; ) { let s = r + (i - r >> 1), a = e[s][gs] - t; if (a === 0) return Qo = !0, s; a < 0 ? r = s + 1 : i = s - 1; } return Qo = !1, r - 1; } function eq(e, t, r) { for (let i = r + 1; i < e.length && e[i][gs] === t; r = i++) ; return r; } function tq(e, t, r) { for (let i = r - 1; i >= 0 && e[i][gs] === t; r = i--) ; return r; } function rq() { return { lastKey: -1, lastNeedle: -1, lastIndex: -1 }; } function MFe(e, t, r, i) { let { lastKey: s, lastNeedle: a, lastIndex: o } = r, u = 0, l = e.length - 1; if (i === s) { if (t === a) return Qo = o !== -1 && e[o][gs] === t, o; t >= a ? u = o === -1 ? 0 : o : l = o; } return r.lastKey = i, r.lastNeedle = t, r.lastIndex = NFe(e, t, u, l); } function PC(e) { return typeof e == "string" ? JSON.parse(e) : e; } function iq(e, t, r, i, s, a, o, u, l, c, f) { let { sections: m } = e; for (let h = 0; h < m.length; h++) { let { map: d, offset: y } = m[h], p = c, g = f; if (h + 1 < m.length) { let b = m[h + 1].offset; p = Math.min(c, u + b.line), p === c ? g = Math.min(f, l + b.column) : p < c && (g = l + b.column); } LFe( d, t, r, i, s, a, o, u + y.line, l + y.column, p, g ); } } function LFe(e, t, r, i, s, a, o, u, l, c, f) { let m = PC(e); if ("sections" in m) return iq(...arguments); let h = new Ln(m, t), d = i.length, y = a.length, p = bs(h), { resolvedSources: g, sourcesContent: b, ignoreList: D } = h; if (CC(i, g), CC(a, h.names), b) CC(s, b); else for (let x = 0; x < g.length; x++) s.push(null); if (D) for (let x = 0; x < D.length; x++) o.push(D[x] + d); for (let x = 0; x < p.length; x++) { let T = u + x; if (T > c) return; let w = jFe(r, T), B = x === 0 ? l : 0, k = p[x]; for (let j = 0; j < k.length; j++) { let W = k[j], Y = B + W[gs]; if (T === c && Y >= f) return; if (W.length === 1) { w.push([Y]); continue; } let G = d + W[wC], ye = W[AC], re = W[_C]; w.push( W.length === 4 ? [Y, G, ye, re] : [Y, G, ye, re, y + W[Yj]] ); } } } function CC(e, t) { for (let r = 0; r < t.length; r++) e.push(t[r]); } function jFe(e, t) { for (let r = e.length; r <= t; r++) e[r] = []; return e[t]; } function aq(e) { var t, r; return (r = (t = e)._encoded) != null ? r : t._encoded = xy(e._decoded); } function bs(e) { var t; return (t = e)._decoded || (t._decoded = Kj(e._encoded)); } function FC(e, t, r) { let i = bs(e); if (t >= i.length) return null; let s = i[t], a = Sy( s, e._decodedMemo, t, r, ep ); return a === -1 ? null : s[a]; } function qFe(e, t) { let { line: r, column: i, bias: s } = t; if (r--, r < 0) throw new Error(sq); if (i < 0) throw new Error(nq); let a = bs(e); if (r >= a.length) return Ey(null, null, null, null); let o = a[r], u = Sy( o, e._decodedMemo, r, i, s || ep ); if (u === -1) return Ey(null, null, null, null); let l = o[u]; if (l.length === 1) return Ey(null, null, null, null); let { names: c, resolvedSources: f } = e; return Ey( f[l[wC]], l[AC] + 1, l[_C], l.length === 5 ? c[l[Yj]] : null ); } function UFe(e, t) { let { source: r, line: i, column: s, bias: a } = t; return lq(e, r, i, s, a || ep, !1); } function $Fe(e, t) { let { source: r, line: i, column: s, bias: a } = t; return lq(e, r, i, s, a || Qd, !0); } function VFe(e, t) { let r = bs(e), { names: i, resolvedSources: s } = e; for (let a = 0; a < r.length; a++) { let o = r[a]; for (let u = 0; u < o.length; u++) { let l = o[u], c = a + 1, f = l[0], m = null, h = null, d = null, y = null; l.length !== 1 && (m = s[l[1]], h = l[2] + 1, d = l[3]), l.length === 5 && (y = i[l[4]]), t({ generatedLine: c, generatedColumn: f, source: m, originalLine: h, originalColumn: d, name: y }); } } } function oq(e, t) { let { sources: r, resolvedSources: i } = e, s = r.indexOf(t); return s === -1 && (s = i.indexOf(t)), s; } function WFe(e, t) { let { sourcesContent: r } = e; if (r == null) return null; let i = oq(e, t); return i === -1 ? null : r[i]; } function HFe(e, t) { let { ignoreList: r } = e; if (r == null) return !1; let i = oq(e, t); return i === -1 ? !1 : r.includes(i); } function uq(e, t) { let r = new Ln(IC(e, []), t); return r._decoded = e.mappings, r; } function KFe(e) { return IC(e, bs(e)); } function zFe(e) { return IC(e, aq(e)); } function IC(e, t) { return { version: e.version, file: e.file, names: e.names, sourceRoot: e.sourceRoot, sources: e.sources, sourcesContent: e.sourcesContent, mappings: t, ignoreList: e.ignoreList || e.x_google_ignoreList }; } function Ey(e, t, r, i) { return { source: e, line: t, column: r, name: i }; } function Zd(e, t) { return { line: e, column: t }; } function Sy(e, t, r, i, s) { let a = MFe(e, i, t, r); return Qo ? a = (s === Qd ? eq : tq)(e, i, a) : s === Qd && a++, a === -1 || a === e.length ? -1 : a; } function JFe(e, t, r, i, s) { let a = Sy(e, t, r, i, ep); if (!Qo && s === Qd && a++, a === -1 || a === e.length) return []; let o = Qo ? i : e[a][gs]; Qo || (a = tq(e, o, a)); let u = eq(e, o, a), l = []; for (; a <= u; a++) { let c = e[a]; l.push(Zd(c[Gj] + 1, c[Zj])); } return l; } function lq(e, t, r, i, s, a) { var o, u; if (r--, r < 0) throw new Error(sq); if (i < 0) throw new Error(nq); let { sources: l, resolvedSources: c } = e, f = l.indexOf(t); if (f === -1 && (f = c.indexOf(t)), f === -1) return a ? [] : Zd(null, null); let m = (o = e)._bySourceMemos || (o._bySourceMemos = l.map(rq)), d = ((u = e)._bySources || (u._bySources = BFe(bs(e), m)))[f][r]; if (d == null) return a ? [] : Zd(null, null); let y = m[f]; if (a) return JFe(d, y, r, i, s); let p = Sy(d, y, r, i, s); if (p === -1) return Zd(null, null); let g = d[p]; return Zd(g[Gj] + 1, g[Zj]); } var Xj, gs, wC, AC, _C, Yj, Gj, Zj, Qo, RFe, sq, nq, Qd, ep, Ln, tp = ph(() => { EC(); Xj = Ve(zj(), 1); n(PFe, "stripFilename"); n(FFe, "resolver"); gs = 0, wC = 1, AC = 2, _C = 3, Yj = 4, Gj = 1, Zj = 2; n(IFe, "maybeSort"); n(Jj, "nextUnsortedSegmentLine"); n(OFe, "isSorted"); n(kFe, "sortSegments"); n(Qj, "sortComparator"); n(BFe, "buildBySources"); Qo = !1; n(NFe, "binarySearch"); n(eq, "upperBound"); n(tq, "lowerBound"); n(rq, "memoizedState"); n(MFe, "memoizedBinarySearch"); n(PC, "parse"); RFe = /* @__PURE__ */ n(function(e, t) { let r = PC(e); if (!("sections" in r)) return new Ln(r, t); let i = [], s = [], a = [], o = [], u = []; iq( r, t, i, s, a, o, u, 0, 0, 1 / 0, 1 / 0 ); let l = { version: 3, file: r.file, names: o, sources: s, sourcesContent: a, mappings: i, ignoreList: u }; return uq(l); }, "FlattenMap"); n(iq, "recurse"); n(LFe, "addSection"); n(CC, "append"); n(jFe, "getLine"); sq = "`line` must be greater than 0 (lines start at line 1)", nq = "`column` must be greater than or equal to 0 (columns start at column 0\ )", Qd = -1, ep = 1, Ln = class { static { n(this, "TraceMap"); } constructor(e, t) { let r = typeof e == "string"; if (!r && e._decodedMemo) return e; let i = PC(e), { version: s, file: a, names: o, sourceRoot: u, sources: l, sourcesContent: c } = i; this.version = s, this.file = a, this.names = o || [], this.sourceRoot = u, this.sources = l, this.sourcesContent = c, this.ignoreList = i.ignoreList || i.x_google_ignoreList || void 0; let f = FFe(t, u); this.resolvedSources = l.map(f); let { mappings: m } = i; if (typeof m == "string") this._encoded = m, this._decoded = void 0; else if (Array.isArray(m)) this._encoded = void 0, this._decoded = IFe(m, r); else throw i.sections ? new Error("TraceMap passed sectioned source map, please use FlattenMap export instead") : new Error(`invalid s\ ource map: ${JSON.stringify(i)}`); this._decodedMemo = rq(), this._bySources = void 0, this._bySourceMemos = void 0; } }; n(aq, "encodedMappings"); n(bs, "decodedMappings"); n(FC, "traceSegment"); n(qFe, "originalPositionFor"); n(UFe, "generatedPositionFor"); n($Fe, "allGeneratedPositionsFor"); n(VFe, "eachMapping"); n(oq, "sourceIndex"); n(WFe, "sourceContentFor"); n(HFe, "isIgnored"); n(uq, "presortedDecodedMap"); n(KFe, "decodedMap"); n(zFe, "encodedMap"); n(IC, "clone"); n(Ey, "OMapping"); n(Zd, "GMapping"); n(Sy, "traceSegmentInternal"); n(JFe, "sliceGeneratedPositions"); n(lq, "generatedPosition"); }); // ../node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs var vq = {}; hh(vq, { GenMapping: () => Cy, addMapping: () => GFe, addSegment: () => YFe, allMappings: () => eIe, fromMap: () => QFe, maybeAddMapping: () => ZFe, maybeAddSegment: () => BC, setIgnore: () => MC, setSourceContent: () => NC, toDecodedMap: () => wy, toEncodedMap: () => RC }); function dq(e, t) { return e._indexes[t]; } function Xl(e, t) { let r = dq(e, t); if (r !== void 0) return r; let { array: i, _indexes: s } = e, a = i.push(t); return s[t] = a - 1; } function XFe(e, t) { let r = dq(e, t); if (r === void 0) return; let { array: i, _indexes: s } = e; for (let a = r + 1; a < i.length; a++) { let o = i[a]; i[a - 1] = o, s[o]--; } s[t] = void 0, i.pop(); } function YFe(e, t, r, i, s, a, o, u) { return Ty( !1, e, t, r, i, s, a, o, u ); } function GFe(e, t) { return Dq(!1, e, t); } function NC(e, t, r) { let { _sources: i, _sourcesContent: s // _originalScopes: originalScopes, } = e, a = Xl(i, t); s[a] = r; } function MC(e, t, r = !0) { let { _sources: i, _sourcesContent: s, _ignoreList: a // _originalScopes: originalScopes, } = e, o = Xl(i, t); o === s.length && (s[o] = null), r ? Xl(a, o) : XFe(a, o); } function wy(e) { let { _mappings: t, _sources: r, _sourcesContent: i, _names: s, _ignoreList: a // _originalScopes: originalScopes, // _generatedRanges: generatedRanges, } = e; return iIe(t), { version: 3, file: e.file || void 0, names: s.array, sourceRoot: e.sourceRoot || void 0, sources: r.array, sourcesContent: i, mappings: t, // originalScopes, // generatedRanges, ignoreList: a.array }; } function RC(e) { let t = wy(e); return Object.assign({}, t, { // originalScopes: decoded.originalScopes.map((os) => encodeOriginalScopes(os)), // generatedRanges: encodeGeneratedRanges(decoded.generatedRanges as GeneratedRange[]), mappings: xy(t.mappings) }); } function QFe(e) { let t = new Ln(e), r = new Cy({ file: t.file, sourceRoot: t.sourceRoot }); return kC(r._names, t.names), kC(r._sources, t.sources), r._sourcesContent = t.sourcesContent || t.sources.map(() => null), r._mappings = bs( t), t.ignoreList && kC(r._ignoreList, t.ignoreList), r; } function eIe(e) { let t = [], { _mappings: r, _sources: i, _names: s } = e; for (let a = 0; a < r.length; a++) { let o = r[a]; for (let u = 0; u < o.length; u++) { let l = o[u], c = { line: a + 1, column: l[pq] }, f, m, h; l.length !== 1 && (f = i.array[l[hq]], m = { line: l[mq] + 1, column: l[yq] }, l.length === 5 && (h = s.array[l[gq]])), t.push({ generated: c, source: f, original: m, name: h }); } } return t; } function Ty(e, t, r, i, s, a, o, u, l) { let { _mappings: c, _sources: f, _sourcesContent: m, _names: h // _originalScopes: originalScopes, } = t, d = tIe(c, r), y = rIe(d, i); if (!s) return e && sIe(d, y) ? void 0 : fq(d, y, [i]); let p = Xl(f, s), g = u ? Xl(h, u) : bq; if (p === m.length && (m[p] = l ?? null), !(e && nIe(d, y, p, a, o, g))) return fq( d, y, u ? [i, p, a, o, g] : [i, p, a, o] ); } function tIe(e, t) { for (let r = e.length; r <= t; r++) e[r] = []; return e[t]; } function rIe(e, t) { let r = e.length; for (let i = r - 1; i >= 0; r = i--) { let s = e[i]; if (t >= s[pq]) break; } return r; } function fq(e, t, r) { for (let i = e.length; i > t; i--) e[i] = e[i - 1]; e[t] = r; } function iIe(e) { let { length: t } = e, r = t; for (let i = r - 1; i >= 0 && !(e[i].length > 0); r = i, i--) ; r < t && (e.length = r); } function kC(e, t) { for (let r = 0; r < t.length; r++) Xl(e, t[r]); } function sIe(e, t) { return t === 0 ? !0 : e[t - 1].length === 1; } function nIe(e, t, r, i, s, a) { if (t === 0) return !1; let o = e[t - 1]; return o.length === 1 ? !1 : r === o[hq] && i === o[mq] && s === o[yq] && a === (o.length === 5 ? o[gq] : bq); } function Dq(e, t, r) { let { generated: i, source: s, original: a, name: o, content: u } = r; return s ? Ty( e, t, i.line - 1, i.column, s, a.line - 1, a.column, o, u ) : Ty( e, t, i.line - 1, i.column, null, null, null, null, null ); } var OC, pq, hq, mq, yq, gq, bq, Cy, BC, ZFe, Ay = ph(() => { EC(); tp(); OC = class { static { n(this, "SetArray"); } constructor() { this._indexes = { __proto__: null }, this.array = []; } }; n(dq, "get"); n(Xl, "put"); n(XFe, "remove"); pq = 0, hq = 1, mq = 2, yq = 3, gq = 4, bq = -1, Cy = class { static { n(this, "GenMapping"); } constructor({ file: e, sourceRoot: t } = {}) { this._names = new OC(), this._sources = new OC(), this._sourcesContent = [], this._mappings = [], this.file = e, this.sourceRoot = t, this. _ignoreList = new OC(); } }; n(YFe, "addSegment"); n(GFe, "addMapping"); BC = /* @__PURE__ */ n((e, t, r, i, s, a, o, u) => Ty( !0, e, t, r, i, s, a, o, u ), "maybeAddSegment"), ZFe = /* @__PURE__ */ n((e, t) => Dq(!0, e, t), "maybeAddMapping"); n(NC, "setSourceContent"); n(MC, "setIgnore"); n(wy, "toDecodedMap"); n(RC, "toEncodedMap"); n(QFe, "fromMap"); n(eIe, "allMappings"); n(Ty, "addSegmentInternal"); n(tIe, "getIndex"); n(rIe, "getColumnIndex"); n(fq, "insert"); n(iIe, "removeEmptyFinalLines"); n(kC, "putAll"); n(sIe, "skipSourceless"); n(nIe, "skipSource"); n(Dq, "addMappingInternal"); }); // ../node_modules/@babel/generator/lib/source-map.js var xq = E((_y) => { "use strict"; Object.defineProperty(_y, "__esModule", { value: !0 }); _y.default = void 0; var La = (Ay(), mh(vq)), LC = (tp(), mh(cq)), jC = class { static { n(this, "SourceMap"); } constructor(t, r) { var i; this._map = void 0, this._rawMappings = void 0, this._sourceFileName = void 0, this._lastGenLine = 0, this._lastSourceLine = 0, this._lastSourceColumn = 0, this._inputMap = null; let s = this._map = new La.GenMapping({ sourceRoot: t.sourceRoot }); if (this._sourceFileName = (i = t.sourceFileName) == null ? void 0 : i.replace(/\\/g, "/"), this._rawMappings = void 0, t.inputSourceMap) { this._inputMap = new LC.TraceMap(t.inputSourceMap); let o = this._inputMap.resolvedSources; if (o.length) for (let u = 0; u < o.length; u++) { var a; (0, La.setSourceContent)(s, o[u], (a = this._inputMap.sourcesContent) == null ? void 0 : a[u]); } } if (typeof r == "string" && !t.inputSourceMap) (0, La.setSourceContent)(s, this._sourceFileName, r); else if (typeof r == "object") for (let o of Object.keys(r)) (0, La.setSourceContent)(s, o.replace(/\\/g, "/"), r[o]); } get() { return (0, La.toEncodedMap)(this._map); } getDecoded() { return (0, La.toDecodedMap)(this._map); } getRawMappings() { return this._rawMappings || (this._rawMappings = (0, La.allMappings)(this._map)); } mark(t, r, i, s, a, o) { var u; this._rawMappings = void 0; let l; if (r != null) if (this._inputMap) { if (l = (0, LC.originalPositionFor)(this._inputMap, { line: r, column: i }), !l.name && a) { let c = (0, LC.originalPositionFor)(this._inputMap, a); c.name && (s = c.name); } } else l = { name: null, source: o?.replace(/\\/g, "/") || this._sourceFileName, line: r, column: i }; (0, La.maybeAddMapping)(this._map, { name: s, generated: t, source: (u = l) == null ? void 0 : u.source, original: l }); } }; _y.default = jC; }); // ../node_modules/@babel/generator/lib/buffer.js var Eq = E((Py) => { "use strict"; Object.defineProperty(Py, "__esModule", { value: !0 }); Py.default = void 0; var qC = class { static { n(this, "Buffer"); } constructor(t, r) { this._map = null, this._buf = "", this._str = "", this._appendCount = 0, this._last = 0, this._queue = [], this._queueCursor = 0, this. _canMarkIdName = !0, this._indentChar = "", this._fastIndentations = [], this._position = { line: 1, column: 0 }, this._sourcePosition = { identifierName: void 0, identifierNamePos: void 0, line: void 0, column: void 0, filename: void 0 }, this._map = t, this._indentChar = r; for (let i = 0; i < 64; i++) this._fastIndentations.push(r.repeat(i)); this._allocQueue(); } _allocQueue() { let t = this._queue; for (let r = 0; r < 16; r++) t.push({ char: 0, repeat: 1, line: void 0, column: void 0, identifierName: void 0, identifierNamePos: void 0, filename: "" }); } _pushQueue(t, r, i, s, a) { let o = this._queueCursor; o === this._queue.length && this._allocQueue(); let u = this._queue[o]; u.char = t, u.repeat = r, u.line = i, u.column = s, u.filename = a, this._queueCursor++; } _popQueue() { if (this._queueCursor === 0) throw new Error("Cannot pop from empty queue"); return this._queue[--this._queueCursor]; } get() { this._flush(); let t = this._map, r = { code: (this._buf + this._str).trimRight(), decodedMap: t?.getDecoded(), get __mergedMap() { return this.map; }, get map() { let i = t ? t.get() : null; return r.map = i, i; }, set map(i) { Object.defineProperty(r, "map", { value: i, writable: !0 }); }, get rawMappings() { let i = t?.getRawMappings(); return r.rawMappings = i, i; }, set rawMappings(i) { Object.defineProperty(r, "rawMappings", { value: i, writable: !0 }); } }; return r; } append(t, r) { this._flush(), this._append(t, this._sourcePosition, r); } appendChar(t) { this._flush(), this._appendChar(t, 1, this._sourcePosition); } queue(t) { if (t === 10) for (; this._queueCursor !== 0; ) { let i = this._queue[this._queueCursor - 1].char; if (i !== 32 && i !== 9) break; this._queueCursor--; } let r = this._sourcePosition; this._pushQueue(t, 1, r.line, r.column, r.filename); } queueIndentation(t) { t !== 0 && this._pushQueue(-1, t, void 0, void 0, void 0); } _flush() { let t = this._queueCursor, r = this._queue; for (let i = 0; i < t; i++) { let s = r[i]; this._appendChar(s.char, s.repeat, s); } this._queueCursor = 0; } _appendChar(t, r, i) { if (this._last = t, t === -1) { let s = this._fastIndentations[r]; s !== void 0 ? this._str += s : this._str += r > 1 ? this._indentChar.repeat(r) : this._indentChar; } else this._str += r > 1 ? String.fromCharCode(t).repeat(r) : String.fromCharCode(t); t !== 10 ? (this._mark(i.line, i.column, i.identifierName, i.identifierNamePos, i.filename), this._position.column += r) : (this._position. line++, this._position.column = 0), this._canMarkIdName && (i.identifierName = void 0, i.identifierNamePos = void 0); } _append(t, r, i) { let s = t.length, a = this._position; if (this._last = t.charCodeAt(s - 1), ++this._appendCount > 4096 ? (+this._str, this._buf += this._str, this._str = t, this._appendCount = 0) : this._str += t, !i && !this._map) { a.column += s; return; } let { column: o, identifierName: u, identifierNamePos: l, filename: c } = r, f = r.line; (u != null || l != null) && this._canMarkIdName && (r.identifierName = void 0, r.identifierNamePos = void 0); let m = t.indexOf(` `), h = 0; for (m !== 0 && this._mark(f, o, u, l, c); m !== -1; ) a.line++, a.column = 0, h = m + 1, h < s && f !== void 0 && this._mark(++f, 0, void 0, void 0, c), m = t.indexOf(` `, h); a.column += s - h; } _mark(t, r, i, s, a) { var o; (o = this._map) == null || o.mark(this._position, t, r, i, s, a); } removeTrailingNewline() { let t = this._queueCursor; t !== 0 && this._queue[t - 1].char === 10 && this._queueCursor--; } removeLastSemicolon() { let t = this._queueCursor; t !== 0 && this._queue[t - 1].char === 59 && this._queueCursor--; } getLastChar() { let t = this._queueCursor; return t !== 0 ? this._queue[t - 1].char : this._last; } getNewlineCount() { let t = this._queueCursor, r = 0; if (t === 0) return this._last === 10 ? 1 : 0; for (let i = t - 1; i >= 0 && this._queue[i].char === 10; i--) r++; return r === t && this._last === 10 ? r + 1 : r; } endsWithCharAndNewline() { let t = this._queue, r = this._queueCursor; if (r !== 0) return t[r - 1].char !== 10 ? void 0 : r > 1 ? t[r - 2].char : this._last; } hasContent() { return this._queueCursor !== 0 || !!this._last; } exactSource(t, r) { if (!this._map) { r(); return; } this.source("start", t); let i = t.identifierName, s = this._sourcePosition; i && (this._canMarkIdName = !1, s.identifierName = i), r(), i && (this._canMarkIdName = !0, s.identifierName = void 0, s.identifierNamePos = void 0), this.source("end", t); } source(t, r) { this._map && this._normalizePosition(t, r, 0); } sourceWithOffset(t, r, i) { this._map && this._normalizePosition(t, r, i); } _normalizePosition(t, r, i) { let s = r[t], a = this._sourcePosition; s && (a.line = s.line, a.column = Math.max(s.column + i, 0), a.filename = r.filename); } getCurrentColumn() { let t = this._queue, r = this._queueCursor, i = -1, s = 0; for (let a = 0; a < r; a++) { let o = t[a]; o.char === 10 && (i = s), s += o.repeat; } return i === -1 ? this._position.column + s : s - 1 - i; } getCurrentLine() { let t = 0, r = this._queue; for (let i = 0; i < this._queueCursor; i++) r[i].char === 10 && t++; return this._position.line + t; } }; Py.default = qC; }); // ../node_modules/@babel/generator/lib/node/whitespace.js var Aq = E((Iy) => { "use strict"; Object.defineProperty(Iy, "__esModule", { value: !0 }); Iy.nodes = void 0; var aIe = Pe(), { FLIPPED_ALIAS_KEYS: oIe, isArrayExpression: uIe, isAssignmentExpression: Tq, isBinary: Cq, isBlockStatement: lIe, isCallExpression: wq, isFunction: rp, isIdentifier: Fy, isLiteral: cIe, isMemberExpression: UC, isObjectExpression: fIe, isOptionalCallExpression: dIe, isOptionalMemberExpression: pIe, isStringLiteral: hIe } = aIe; function Yl(e, t) { return e && (UC(e) || pIe(e) ? (Yl(e.object, t), e.computed && Yl(e.property, t)) : Cq(e) || Tq(e) ? (Yl(e.left, t), Yl(e.right, t)) : wq( e) || dIe(e) ? (t.hasCall = !0, Yl(e.callee, t)) : rp(e) ? t.hasFunction = !0 : Fy(e) && (t.hasHelper = t.hasHelper || e.callee && jn(e. callee))), t; } n(Yl, "crawlInternal"); function Sq(e) { return Yl(e, { hasCall: !1, hasFunction: !1, hasHelper: !1 }); } n(Sq, "crawl"); function jn(e) { return e ? UC(e) ? jn(e.object) || jn(e.property) : Fy(e) ? e.name === "require" || e.name.charCodeAt(0) === 95 : wq(e) ? jn(e.callee) : Cq(e) || Tq(e) ? Fy(e.left) && jn(e.left) || jn(e.right) : !1 : !1; } n(jn, "isHelper"); function mIe(e) { return cIe(e) || fIe(e) || uIe(e) || Fy(e) || UC(e); } n(mIe, "isType"); var eu = Iy.nodes = { AssignmentExpression(e) { let t = Sq(e.right); return t.hasCall && t.hasHelper || t.hasFunction ? t.hasFunction ? 3 : 2 : 0; }, SwitchCase(e, t) { return (e.consequent.length || t.cases[0] === e ? 1 : 0) | (!e.consequent.length && t.cases[t.cases.length - 1] === e ? 2 : 0); }, LogicalExpression(e) { return rp(e.left) || rp(e.right) ? 2 : 0; }, Literal(e) { return hIe(e) && e.value === "use strict" ? 2 : 0; }, CallExpression(e) { return rp(e.callee) || jn(e) ? 3 : 0; }, OptionalCallExpression(e) { return rp(e.callee) ? 3 : 0; }, VariableDeclaration(e) { for (let t = 0; t < e.declarations.length; t++) { let r = e.declarations[t], i = jn(r.id) && !mIe(r.init); if (!i && r.init) { let s = Sq(r.init); i = jn(r.init) && s.hasCall || s.hasFunction; } if (i) return 3; } return 0; }, IfStatement(e) { return lIe(e.consequent) ? 3 : 0; } }; eu.ObjectProperty = eu.ObjectTypeProperty = eu.ObjectMethod = function(e, t) { return t.properties[0] === e ? 1 : 0; }; eu.ObjectTypeCallProperty = function(e, t) { var r; return t.callProperties[0] === e && !((r = t.properties) != null && r.length) ? 1 : 0; }; eu.ObjectTypeIndexer = function(e, t) { var r, i; return t.indexers[0] === e && !((r = t.properties) != null && r.length) && !((i = t.callProperties) != null && i.length) ? 1 : 0; }; eu.ObjectTypeInternalSlot = function(e, t) { var r, i, s; return t.internalSlots[0] === e && !((r = t.properties) != null && r.length) && !((i = t.callProperties) != null && i.length) && !((s = t. indexers) != null && s.length) ? 1 : 0; }; [["Function", !0], ["Class", !0], ["Loop", !0], ["LabeledStatement", !0], ["SwitchStatement", !0], ["TryStatement", !0]].forEach(function([ e, t]) { [e].concat(oIe[e] || []).forEach(function(r) { let i = t ? 3 : 0; eu[r] = () => i; }); }); }); // ../node_modules/@babel/generator/lib/node/parentheses.js var Nq = E((Ze) => { "use strict"; Object.defineProperty(Ze, "__esModule", { value: !0 }); Ze.AssignmentExpression = zIe; Ze.Binary = Oq; Ze.BinaryExpression = UIe; Ze.ClassExpression = WIe; Ze.ArrowFunctionExpression = Ze.ConditionalExpression = Bq; Ze.DoExpression = FIe; Ze.FunctionExpression = HIe; Ze.FunctionTypeAnnotation = AIe; Ze.Identifier = XIe; Ze.LogicalExpression = JIe; Ze.NullableTypeAnnotation = wIe; Ze.ObjectExpression = PIe; Ze.OptionalIndexedAccessType = OIe; Ze.OptionalCallExpression = Ze.OptionalMemberExpression = KIe; Ze.SequenceExpression = $Ie; Ze.TSSatisfiesExpression = Ze.TSAsExpression = kIe; Ze.TSConditionalType = BIe; Ze.TSConstructorType = Ze.TSFunctionType = qIe; Ze.TSInferType = RIe; Ze.TSInstantiationExpression = jIe; Ze.TSIntersectionType = MIe; Ze.UnaryLike = Ze.TSTypeAssertion = kq; Ze.TSTypeOperator = LIe; Ze.TSUnionType = NIe; Ze.IntersectionTypeAnnotation = Ze.UnionTypeAnnotation = IIe; Ze.UpdateExpression = _Ie; Ze.AwaitExpression = Ze.YieldExpression = VIe; var yIe = Pe(), wi = tu(), { isArrayTypeAnnotation: gIe, isBinaryExpression: bIe, isCallExpression: DIe, isForOfStatement: vIe, isIndexedAccessType: xIe, isMemberExpression: Fq, isObjectPattern: EIe, isOptionalMemberExpression: SIe, isYieldExpression: TIe, isStatement: CIe } = yIe, _q = /* @__PURE__ */ new Map([["||", 0], ["??", 0], ["|>", 0], ["&&", 1], ["|", 2], ["^", 3], ["&", 4], ["==", 5], ["===", 5], ["\ !=", 5], ["!==", 5], ["<", 6], [">", 6], ["<=", 6], [">=", 6], ["in", 6], ["instanceof", 6], [">>", 7], ["<<", 7], [">>>", 7], ["+", 8], ["-", 8], ["*", 9], ["/", 9], ["%", 9], ["**", 10]]); function Pq(e, t) { if (t === "BinaryExpression" || t === "LogicalExpression") return _q.get(e.operator); if (t === "TSAsExpression" || t === "TSSatisfiesExpression") return _q.get("in"); } n(Pq, "getBinaryPrecedence"); function $C(e) { return e === "TSAsExpression" || e === "TSSatisfiesExpression" || e === "TSTypeAssertion"; } n($C, "isTSTypeExpression"); var Oy = /* @__PURE__ */ n((e, t) => { let r = t.type; return (r === "ClassDeclaration" || r === "ClassExpression") && t.superClass === e; }, "isClassExtendsClause"), ky = /* @__PURE__ */ n((e, t) => { let r = t.type; return (r === "MemberExpression" || r === "OptionalMemberExpression") && t.object === e || (r === "CallExpression" || r === "OptionalCal\ lExpression" || r === "NewExpression") && t.callee === e || r === "TaggedTemplateExpression" && t.tag === e || r === "TSNonNullExpression"; }, "hasPostfixPart"); function wIe(e, t) { return gIe(t); } n(wIe, "NullableTypeAnnotation"); function AIe(e, t, r) { let i = t.type; return i === "UnionTypeAnnotation" || i === "IntersectionTypeAnnotation" || i === "ArrayTypeAnnotation" || !!(r & wi.TokenContext.arrowFlowReturnType); } n(AIe, "FunctionTypeAnnotation"); function _Ie(e, t) { return ky(e, t) || Oy(e, t); } n(_Ie, "UpdateExpression"); function Iq(e) { return !!(e & (wi.TokenContext.expressionStatement | wi.TokenContext.arrowBody)); } n(Iq, "needsParenBeforeExpressionBrace"); function PIe(e, t, r) { return Iq(r); } n(PIe, "ObjectExpression"); function FIe(e, t, r) { return !e.async && !!(r & wi.TokenContext.expressionStatement); } n(FIe, "DoExpression"); function Oq(e, t) { let r = t.type; if (e.type === "BinaryExpression" && e.operator === "**" && r === "BinaryExpression" && t.operator === "**") return t.left === e; if (Oy(e, t) || ky(e, t) || r === "UnaryExpression" || r === "SpreadElement" || r === "AwaitExpression") return !0; let i = Pq(t, r); if (i != null) { let s = Pq(e, e.type); if (i === s && r === "BinaryExpression" && t.right === e || i > s) return !0; } } n(Oq, "Binary"); function IIe(e, t) { let r = t.type; return r === "ArrayTypeAnnotation" || r === "NullableTypeAnnotation" || r === "IntersectionTypeAnnotation" || r === "UnionTypeAnnotation"; } n(IIe, "UnionTypeAnnotation"); function OIe(e, t) { return xIe(t) && t.objectType === e; } n(OIe, "OptionalIndexedAccessType"); function kIe(e, t) { return (t.type === "AssignmentExpression" || t.type === "AssignmentPattern") && t.left === e || t.type === "BinaryExpression" && (t.operator === "|" || t.operator === "&") && e === t.left ? !0 : Oq(e, t); } n(kIe, "TSAsExpression"); function BIe(e, t) { let r = t.type; return r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e || r === "TSOptionalType" || r === "TSTypeOperator" || r === "TSTypeParameter" || (r === "TSIntersectionType" || r === "TSUnionType") && t.types[0] === e || r === "TSConditionalType" && (t.checkType === e || t.extendsType === e); } n(BIe, "TSConditionalType"); function NIe(e, t) { let r = t.type; return r === "TSIntersectionType" || r === "TSTypeOperator" || r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e || r === "TSOptionalType"; } n(NIe, "TSUnionType"); function MIe(e, t) { let r = t.type; return r === "TSTypeOperator" || r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e || r === "TSOptionalType"; } n(MIe, "TSIntersectionType"); function RIe(e, t) { let r = t.type; return !!(r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e || r === "TSOptionalType" || e.typeParameter.constraint && (r === "TSIntersectionType" || r === "TSUnionType") && t.types[0] === e); } n(RIe, "TSInferType"); function LIe(e, t) { let r = t.type; return r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e || r === "TSOptionalType"; } n(LIe, "TSTypeOperator"); function jIe(e, t) { let r = t.type; return (r === "CallExpression" || r === "OptionalCallExpression" || r === "NewExpression" || r === "TSInstantiationExpression") && !!t.typeParameters; } n(jIe, "TSInstantiationExpression"); function qIe(e, t) { let r = t.type; return r === "TSIntersectionType" || r === "TSUnionType" || r === "TSTypeOperator" || r === "TSOptionalType" || r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e || r === "TSConditionalType" && (t.checkType === e || t.extendsType === e); } n(qIe, "TSFunctionType"); function UIe(e, t, r) { return e.operator === "in" && !!(r & wi.TokenContext.forInOrInitHeadAccumulate); } n(UIe, "BinaryExpression"); function $Ie(e, t) { let r = t.type; return r === "SequenceExpression" || r === "ParenthesizedExpression" || r === "MemberExpression" && t.property === e || r === "OptionalM\ emberExpression" && t.property === e || r === "TemplateLiteral" ? !1 : r === "ClassDeclaration" ? !0 : r === "ForOfStatement" ? t.right === e : r === "ExportDefaultDeclaration" ? !0 : !CIe(t); } n($Ie, "SequenceExpression"); function VIe(e, t) { let r = t.type; return r === "BinaryExpression" || r === "LogicalExpression" || r === "UnaryExpression" || r === "SpreadElement" || ky(e, t) || r === "A\ waitExpression" && TIe(e) || r === "ConditionalExpression" && e === t.test || Oy(e, t) || $C(r); } n(VIe, "YieldExpression"); function WIe(e, t, r) { return !!(r & (wi.TokenContext.expressionStatement | wi.TokenContext.exportDefault)); } n(WIe, "ClassExpression"); function kq(e, t) { return ky(e, t) || bIe(t) && t.operator === "**" && t.left === e || Oy(e, t); } n(kq, "UnaryLike"); function HIe(e, t, r) { return !!(r & (wi.TokenContext.expressionStatement | wi.TokenContext.exportDefault)); } n(HIe, "FunctionExpression"); function Bq(e, t) { let r = t.type; return r === "UnaryExpression" || r === "SpreadElement" || r === "BinaryExpression" || r === "LogicalExpression" || r === "ConditionalEx\ pression" && t.test === e || r === "AwaitExpression" || $C(r) ? !0 : kq(e, t); } n(Bq, "ConditionalExpression"); function KIe(e, t) { return DIe(t) && t.callee === e || Fq(t) && t.object === e; } n(KIe, "OptionalMemberExpression"); function zIe(e, t, r) { return Iq(r) && EIe(e.left) ? !0 : Bq(e, t); } n(zIe, "AssignmentExpression"); function JIe(e, t) { let r = t.type; if ($C(r)) return !0; if (r !== "LogicalExpression") return !1; switch (e.operator) { case "||": return t.operator === "??" || t.operator === "&&"; case "&&": return t.operator === "??"; case "??": return t.operator !== "??"; } } n(JIe, "LogicalExpression"); function XIe(e, t, r, i) { var s; let a = t.type; if ((s = e.extra) != null && s.parenthesized && a === "AssignmentExpression" && t.left === e) { let o = t.right.type; if ((o === "FunctionExpression" || o === "ClassExpression") && t.right.id == null) return !0; } return i && i(e) !== e.name ? !1 : e.name === "let" ? (Fq(t, { object: e, computed: !0 }) || SIe(t, { object: e, computed: !0, optional: !1 })) && r & (wi.TokenContext.expressionStatement | wi.TokenContext.forInitHead | wi.TokenContext.forInHead) ? !0 : !!(r & wi.TokenContext. forOfHead) : e.name === "async" && vIe(t, { left: e, await: !1 }); } n(XIe, "Identifier"); }); // ../node_modules/@babel/generator/lib/node/index.js var tu = E((qn) => { "use strict"; Object.defineProperty(qn, "__esModule", { value: !0 }); qn.TokenContext = void 0; qn.isLastChild = f5e; qn.needsParens = c5e; qn.needsWhitespace = WC; qn.needsWhitespaceAfter = l5e; qn.needsWhitespaceBefore = u5e; var YIe = Aq(), GIe = Nq(), ZIe = Pe(), { FLIPPED_ALIAS_KEYS: QIe, VISITOR_KEYS: e5e, isCallExpression: Mq, isDecorator: t5e, isExpressionStatement: r5e, isMemberExpression: i5e, isNewExpression: s5e, isParenthesizedExpression: n5e } = ZIe, H1t = qn.TokenContext = { normal: 0, expressionStatement: 1, arrowBody: 2, exportDefault: 4, arrowFlowReturnType: 8, forInitHead: 16, forInHead: 32, forOfHead: 64, forInOrInitHeadAccumulate: 128, forInOrInitHeadAccumulatePassThroughMask: 128 }; function Rq(e) { let t = /* @__PURE__ */ new Map(); function r(i, s) { let a = t.get(i); t.set(i, a ? function(o, u, l, c) { var f; return (f = a(o, u, l, c)) != null ? f : s(o, u, l, c); } : s); } n(r, "add"); for (let i of Object.keys(e)) { let s = QIe[i]; if (s) for (let a of s) r(a, e[i]); else r(i, e[i]); } return t; } n(Rq, "expandAliases"); var a5e = Rq(GIe), o5e = Rq(YIe.nodes); function Lq(e) { return Mq(e) ? !0 : i5e(e) && Lq(e.object); } n(Lq, "isOrHasCallExpression"); function WC(e, t, r) { var i; if (!e) return !1; r5e(e) && (e = e.expression); let s = (i = o5e.get(e.type)) == null ? void 0 : i(e, t); return typeof s == "number" ? (s & r) !== 0 : !1; } n(WC, "needsWhitespace"); function u5e(e, t) { return WC(e, t, 1); } n(u5e, "needsWhitespaceBefore"); function l5e(e, t) { return WC(e, t, 2); } n(l5e, "needsWhitespaceAfter"); function c5e(e, t, r, i) { var s; return t ? s5e(t) && t.callee === e && Lq(e) ? !0 : t5e(t) ? !VC(e) && !(Mq(e) && VC(e.callee)) && !n5e(e) : ((s = a5e.get(e.type)) == null ? void 0 : s(e, t, r, i)) || !1 : !1; } n(c5e, "needsParens"); function VC(e) { switch (e.type) { case "Identifier": return !0; case "MemberExpression": return !e.computed && e.property.type === "Identifier" && VC(e.object); default: return !1; } } n(VC, "isDecoratorMemberExpression"); function f5e(e, t) { let r = e5e[e.type]; for (let i = r.length - 1; i >= 0; i--) { let s = e[r[i]]; if (s === t) return !0; if (Array.isArray(s)) { let a = s.length - 1; for (; a >= 0 && s[a] === null; ) a--; return a >= 0 && s[a] === t; } else if (s) return !1; } return !1; } n(f5e, "isLastChild"); }); // ../node_modules/@babel/generator/lib/token-map.js var jq = E((By) => { "use strict"; Object.defineProperty(By, "__esModule", { value: !0 }); By.TokenMap = void 0; var d5e = Pe(), { traverseFast: p5e, VISITOR_KEYS: h5e } = d5e, HC = class { static { n(this, "TokenMap"); } constructor(t, r, i) { this._tokens = void 0, this._source = void 0, this._nodesToTokenIndexes = /* @__PURE__ */ new Map(), this._nodesOccurrencesCountCache = /* @__PURE__ */ new Map(), this._tokensCache = /* @__PURE__ */ new Map(), this._tokens = r, this._source = i, p5e(t, (s) => { let a = this._getTokensIndexesOfNode(s); a.length > 0 && this._nodesToTokenIndexes.set(s, a); }), this._tokensCache.clear(); } has(t) { return this._nodesToTokenIndexes.has(t); } getIndexes(t) { return this._nodesToTokenIndexes.get(t); } find(t, r) { let i = this._nodesToTokenIndexes.get(t); if (i) for (let s = 0; s < i.length; s++) { let a = i[s], o = this._tokens[a]; if (r(o, a)) return o; } return null; } findLastIndex(t, r) { let i = this._nodesToTokenIndexes.get(t); if (i) for (let s = i.length - 1; s >= 0; s--) { let a = i[s], o = this._tokens[a]; if (r(o, a)) return a; } return -1; } findMatching(t, r, i = 0) { let s = this._nodesToTokenIndexes.get(t); if (s) { let a = 0, o = i; if (o > 1) { let u = this._nodesOccurrencesCountCache.get(t); u && u.test === r && u.count < o && (a = u.i + 1, i -= u.count + 1); } for (; a < s.length; a++) { let u = this._tokens[s[a]]; if (this.matchesOriginal(u, r)) { if (i === 0) return o > 0 && this._nodesOccurrencesCountCache.set(t, { test: r, count: o, i: a }), u; i--; } } } return null; } matchesOriginal(t, r) { return t.end - t.start !== r.length ? !1 : t.value != null ? t.value === r : this._source.startsWith(r, t.start); } startMatches(t, r) { let i = this._nodesToTokenIndexes.get(t); if (!i) return !1; let s = this._tokens[i[0]]; return s.start !== t.start ? !1 : this.matchesOriginal(s, r); } endMatches(t, r) { let i = this._nodesToTokenIndexes.get(t); if (!i) return !1; let s = this._tokens[i[i.length - 1]]; return s.end !== t.end ? !1 : this.matchesOriginal(s, r); } _getTokensIndexesOfNode(t) { if (t.start == null || t.end == null) return []; let { first: r, last: i } = this._findTokensOfNode(t, 0, this._tokens.length - 1), s = r, a = m5e(t); (t.type === "ExportNamedDeclaration" || t.type === "ExportDefaultDeclaration") && t.declaration && t.declaration.type === "ClassDeclar\ ation" && a.next(); let o = []; for (let u of a) { if (u == null || u.start == null || u.end == null) continue; let l = this._findTokensOfNode(u, s, i), c = l.first; for (let f = s; f < c; f++) o.push(f); s = l.last + 1; } for (let u = s; u <= i; u++) o.push(u); return o; } _findTokensOfNode(t, r, i) { let s = this._tokensCache.get(t); if (s) return s; let a = this._findFirstTokenOfNode(t.start, r, i), o = this._findLastTokenOfNode(t.end, a, i); return this._tokensCache.set(t, { first: a, last: o }), { first: a, last: o }; } _findFirstTokenOfNode(t, r, i) { for (; r <= i; ) { let s = i + r >> 1; if (t < this._tokens[s].start) i = s - 1; else if (t > this._tokens[s].start) r = s + 1; else return s; } return r; } _findLastTokenOfNode(t, r, i) { for (; r <= i; ) { let s = i + r >> 1; if (t < this._tokens[s].end) i = s - 1; else if (t > this._tokens[s].end) r = s + 1; else return s; } return i; } }; By.TokenMap = HC; function* m5e(e) { if (e.type === "TemplateLiteral") { yield e.quasis[0]; for (let r = 1; r < e.quasis.length; r++) yield e.expressions[r - 1], yield e.quasis[r]; return; } let t = h5e[e.type]; for (let r of t) { let i = e[r]; i && (Array.isArray(i) ? yield* i : yield i); } } n(m5e, "childrenIterator"); }); // ../node_modules/@babel/generator/lib/generators/template-literals.js var qq = E((Gl) => { "use strict"; Object.defineProperty(Gl, "__esModule", { value: !0 }); Gl.TaggedTemplateExpression = y5e; Gl.TemplateElement = g5e; Gl.TemplateLiteral = D5e; Gl._printTemplate = b5e; function y5e(e) { this.print(e.tag), this.print(e.typeParameters), this.print(e.quasi); } n(y5e, "TaggedTemplateExpression"); function g5e() { throw new Error("TemplateElement printing is handled in TemplateLiteral"); } n(g5e, "TemplateElement"); function b5e(e, t) { let r = e.quasis, i = "`"; for (let s = 0; s < r.length - 1; s++) if (i += r[s].value.raw, this.token(i + "${", !0), this.print(t[s]), i = "}", this.tokenMap) { let a = this.tokenMap.findMatching(e, "}", s); a && this._catchUpTo(a.loc.start); } i += r[r.length - 1].value.raw, this.token(i + "`", !0); } n(b5e, "_printTemplate"); function D5e(e) { this._printTemplate(e, e.expressions); } n(D5e, "TemplateLiteral"); }); // ../node_modules/@babel/generator/lib/generators/expressions.js var $q = E((ht) => { "use strict"; Object.defineProperty(ht, "__esModule", { value: !0 }); ht.LogicalExpression = ht.BinaryExpression = ht.AssignmentExpression = H5e; ht.AssignmentPattern = W5e; ht.AwaitExpression = q5e; ht.BindExpression = K5e; ht.CallExpression = L5e; ht.ConditionalExpression = P5e; ht.Decorator = N5e; ht.DoExpression = w5e; ht.EmptyStatement = $5e; ht.ExpressionStatement = V5e; ht.Import = j5e; ht.MemberExpression = z5e; ht.MetaProperty = J5e; ht.ModuleExpression = G5e; ht.NewExpression = F5e; ht.OptionalCallExpression = R5e; ht.OptionalMemberExpression = M5e; ht.ParenthesizedExpression = A5e; ht.PrivateName = X5e; ht.SequenceExpression = I5e; ht.Super = k5e; ht.ThisExpression = O5e; ht.UnaryExpression = C5e; ht.UpdateExpression = _5e; ht.V8IntrinsicIdentifier = Y5e; ht.YieldExpression = U5e; ht._shouldPrintDecoratorsBeforeExport = B5e; var v5e = Pe(), x5e = tu(), { isCallExpression: E5e, isLiteral: Uq, isMemberExpression: KC, isNewExpression: S5e, isPattern: T5e } = v5e; function C5e(e) { let { operator: t } = e; t === "void" || t === "delete" || t === "typeof" || t === "throw" ? (this.word(t), this.space()) : this.token(t), this.print(e.argument); } n(C5e, "UnaryExpression"); function w5e(e) { e.async && (this.word("async", !0), this.space()), this.word("do"), this.space(), this.print(e.body); } n(w5e, "DoExpression"); function A5e(e) { this.tokenChar(40); let t = this.enterDelimited(); this.print(e.expression), t(), this.rightParens(e); } n(A5e, "ParenthesizedExpression"); function _5e(e) { e.prefix ? (this.token(e.operator), this.print(e.argument)) : (this.print(e.argument, !0), this.token(e.operator)); } n(_5e, "UpdateExpression"); function P5e(e) { this.print(e.test), this.space(), this.tokenChar(63), this.space(), this.print(e.consequent), this.space(), this.tokenChar(58), this.space(), this.print(e.alternate); } n(P5e, "ConditionalExpression"); function F5e(e, t) { if (this.word("new"), this.space(), this.print(e.callee), this.format.minified && e.arguments.length === 0 && !e.optional && !E5e(t, { callee: e }) && !KC(t) && !S5e(t) || (this.print(e.typeArguments), this.print(e.typeParameters), e.optional && this.token("?."), e.arguments.length === 0 && this.tokenMap && !this.tokenMap.endMatches(e, ")"))) return; this.tokenChar(40); let r = this.enterDelimited(); this.printList(e.arguments, this.shouldPrintTrailingComma(")")), r(), this.rightParens(e); } n(F5e, "NewExpression"); function I5e(e) { this.printList(e.expressions); } n(I5e, "SequenceExpression"); function O5e() { this.word("this"); } n(O5e, "ThisExpression"); function k5e() { this.word("super"); } n(k5e, "Super"); function B5e(e) { return typeof this.format.decoratorsBeforeExport == "boolean" ? this.format.decoratorsBeforeExport : typeof e.start == "number" && e.start === e.declaration.start; } n(B5e, "_shouldPrintDecoratorsBeforeExport"); function N5e(e) { this.tokenChar(64), this.print(e.expression), this.newline(); } n(N5e, "Decorator"); function M5e(e) { let { computed: t } = e, { optional: r, property: i } = e; if (this.print(e.object), !t && KC(i)) throw new TypeError("Got a MemberExpression for MemberExpression property"); Uq(i) && typeof i.value == "number" && (t = !0), r && this.token("?."), t ? (this.tokenChar(91), this.print(i), this.tokenChar(93)) : (r || this.tokenChar(46), this.print(i)); } n(M5e, "OptionalMemberExpression"); function R5e(e) { this.print(e.callee), this.print(e.typeParameters), e.optional && this.token("?."), this.print(e.typeArguments), this.tokenChar(40); let t = this.enterDelimited(); this.printList(e.arguments), t(), this.rightParens(e); } n(R5e, "OptionalCallExpression"); function L5e(e) { this.print(e.callee), this.print(e.typeArguments), this.print(e.typeParameters), this.tokenChar(40); let t = this.enterDelimited(); this.printList(e.arguments, this.shouldPrintTrailingComma(")")), t(), this.rightParens(e); } n(L5e, "CallExpression"); function j5e() { this.word("import"); } n(j5e, "Import"); function q5e(e) { this.word("await"), this.space(), this.print(e.argument); } n(q5e, "AwaitExpression"); function U5e(e) { e.delegate ? (this.word("yield", !0), this.tokenChar(42), e.argument && (this.space(), this.print(e.argument))) : e.argument ? (this.word( "yield", !0), this.space(), this.print(e.argument)) : this.word("yield"); } n(U5e, "YieldExpression"); function $5e() { this.semicolon(!0); } n($5e, "EmptyStatement"); function V5e(e) { this.tokenContext |= x5e.TokenContext.expressionStatement, this.print(e.expression), this.semicolon(); } n(V5e, "ExpressionStatement"); function W5e(e) { this.print(e.left), (e.left.type === "Identifier" || T5e(e.left)) && (e.left.optional && this.tokenChar(63), this.print(e.left.typeAnnotation)), this.space(), this.tokenChar(61), this.space(), this.print(e.right); } n(W5e, "AssignmentPattern"); function H5e(e) { this.print(e.left), this.space(), e.operator === "in" || e.operator === "instanceof" ? this.word(e.operator) : (this.token(e.operator), this. _endsWithDiv = e.operator === "/"), this.space(), this.print(e.right); } n(H5e, "AssignmentExpression"); function K5e(e) { this.print(e.object), this.token("::"), this.print(e.callee); } n(K5e, "BindExpression"); function z5e(e) { if (this.print(e.object), !e.computed && KC(e.property)) throw new TypeError("Got a MemberExpression for MemberExpression property"); let t = e.computed; if (Uq(e.property) && typeof e.property.value == "number" && (t = !0), t) { let r = this.enterDelimited(); this.tokenChar(91), this.print(e.property), this.tokenChar(93), r(); } else this.tokenChar(46), this.print(e.property); } n(z5e, "MemberExpression"); function J5e(e) { this.print(e.meta), this.tokenChar(46), this.print(e.property); } n(J5e, "MetaProperty"); function X5e(e) { this.tokenChar(35), this.print(e.id); } n(X5e, "PrivateName"); function Y5e(e) { this.tokenChar(37), this.word(e.name); } n(Y5e, "V8IntrinsicIdentifier"); function G5e(e) { this.word("module", !0), this.space(), this.tokenChar(123), this.indent(); let { body: t } = e; (t.body.length || t.directives.length) && this.newline(), this.print(t), this.dedent(), this.rightBrace(e); } n(G5e, "ModuleExpression"); }); // ../node_modules/@babel/generator/lib/generators/statements.js var Kq = E((Ht) => { "use strict"; Object.defineProperty(Ht, "__esModule", { value: !0 }); Ht.BreakStatement = o7e; Ht.CatchClause = p7e; Ht.ContinueStatement = u7e; Ht.DebuggerStatement = y7e; Ht.DoWhileStatement = a7e; Ht.ForOfStatement = Ht.ForInStatement = void 0; Ht.ForStatement = s7e; Ht.IfStatement = i7e; Ht.LabeledStatement = f7e; Ht.ReturnStatement = l7e; Ht.SwitchCase = m7e; Ht.SwitchStatement = h7e; Ht.ThrowStatement = c7e; Ht.TryStatement = d7e; Ht.VariableDeclaration = g7e; Ht.VariableDeclarator = b7e; Ht.WhileStatement = n7e; Ht.WithStatement = r7e; var Z5e = Pe(), { isFor: Vq, isForStatement: Q5e, isIfStatement: e7e, isStatement: t7e } = Z5e; function r7e(e) { this.word("with"), this.space(), this.tokenChar(40), this.print(e.object), this.tokenChar(41), this.printBlock(e); } n(r7e, "WithStatement"); function i7e(e) { this.word("if"), this.space(), this.tokenChar(40), this.print(e.test), this.tokenChar(41), this.space(); let t = e.alternate && e7e(Wq(e.consequent)); t && (this.tokenChar(123), this.newline(), this.indent()), this.printAndIndentOnComments(e.consequent), t && (this.dedent(), this.newline(), this.tokenChar(125)), e.alternate && (this.endsWith(125) && this.space(), this.word("else"), this.space(), this.printAndIndentOnComments( e.alternate)); } n(i7e, "IfStatement"); function Wq(e) { let { body: t } = e; return t7e(t) === !1 ? e : Wq(t); } n(Wq, "getLastStatement"); function s7e(e) { this.word("for"), this.space(), this.tokenChar(40); { let t = this.enterForStatementInit(); this.print(e.init), t(); } this.tokenChar(59), e.test && (this.space(), this.print(e.test)), this.token(";", !1, 1), e.update && (this.space(), this.print(e.update)), this.tokenChar(41), this.printBlock(e); } n(s7e, "ForStatement"); function n7e(e) { this.word("while"), this.space(), this.tokenChar(40), this.print(e.test), this.tokenChar(41), this.printBlock(e); } n(n7e, "WhileStatement"); function Hq(e) { this.word("for"), this.space(); let t = e.type === "ForOfStatement"; t && e.await && (this.word("await"), this.space()), this.noIndentInnerCommentsHere(), this.tokenChar(40); { let r = this.enterForXStatementInit(t); this.print(e.left), r?.(); } this.space(), this.word(t ? "of" : "in"), this.space(), this.print(e.right), this.tokenChar(41), this.printBlock(e); } n(Hq, "ForXStatement"); var egt = Ht.ForInStatement = Hq, tgt = Ht.ForOfStatement = Hq; function a7e(e) { this.word("do"), this.space(), this.print(e.body), this.space(), this.word("while"), this.space(), this.tokenChar(40), this.print(e.test), this.tokenChar(41), this.semicolon(); } n(a7e, "DoWhileStatement"); function Ny(e, t) { t && (e.space(), e.printTerminatorless(t)), e.semicolon(); } n(Ny, "printStatementAfterKeyword"); function o7e(e) { this.word("break"), Ny(this, e.label); } n(o7e, "BreakStatement"); function u7e(e) { this.word("continue"), Ny(this, e.label); } n(u7e, "ContinueStatement"); function l7e(e) { this.word("return"), Ny(this, e.argument); } n(l7e, "ReturnStatement"); function c7e(e) { this.word("throw"), Ny(this, e.argument); } n(c7e, "ThrowStatement"); function f7e(e) { this.print(e.label), this.tokenChar(58), this.space(), this.print(e.body); } n(f7e, "LabeledStatement"); function d7e(e) { this.word("try"), this.space(), this.print(e.block), this.space(), e.handlers ? this.print(e.handlers[0]) : this.print(e.handler), e.finalizer && (this.space(), this.word("finally"), this.space(), this.print(e.finalizer)); } n(d7e, "TryStatement"); function p7e(e) { this.word("catch"), this.space(), e.param && (this.tokenChar(40), this.print(e.param), this.print(e.param.typeAnnotation), this.tokenChar( 41), this.space()), this.print(e.body); } n(p7e, "CatchClause"); function h7e(e) { this.word("switch"), this.space(), this.tokenChar(40), this.print(e.discriminant), this.tokenChar(41), this.space(), this.tokenChar(123), this.printSequence(e.cases, !0), this.rightBrace(e); } n(h7e, "SwitchStatement"); function m7e(e) { e.test ? (this.word("case"), this.space(), this.print(e.test), this.tokenChar(58)) : (this.word("default"), this.tokenChar(58)), e.consequent. length && (this.newline(), this.printSequence(e.consequent, !0)); } n(m7e, "SwitchCase"); function y7e() { this.word("debugger"), this.semicolon(); } n(y7e, "DebuggerStatement"); function g7e(e, t) { e.declare && (this.word("declare"), this.space()); let { kind: r } = e; r === "await using" ? (this.word("await"), this.space(), this.word("using", !0)) : this.word(r, r === "using"), this.space(); let i = !1; if (!Vq(t)) for (let s of e.declarations) s.init && (i = !0); if (this.printList(e.declarations, void 0, void 0, e.declarations.length > 1, i ? function(s) { this.token(",", !1, s), this.newline(); } : void 0), Vq(t)) { if (Q5e(t)) { if (t.init === e) return; } else if (t.left === e) return; } this.semicolon(); } n(g7e, "VariableDeclaration"); function b7e(e) { this.print(e.id), e.definite && this.tokenChar(33), this.print(e.id.typeAnnotation), e.init && (this.space(), this.tokenChar(61), this.space(), this.print(e.init)); } n(b7e, "VariableDeclarator"); }); // ../node_modules/@babel/generator/lib/generators/classes.js var zq = E((Ji) => { "use strict"; Object.defineProperty(Ji, "__esModule", { value: !0 }); Ji.ClassAccessorProperty = w7e; Ji.ClassBody = S7e; Ji.ClassExpression = Ji.ClassDeclaration = E7e; Ji.ClassMethod = _7e; Ji.ClassPrivateMethod = P7e; Ji.ClassPrivateProperty = A7e; Ji.ClassProperty = C7e; Ji.StaticBlock = I7e; Ji._classMethodHead = F7e; var D7e = Pe(), { isExportDefaultDeclaration: v7e, isExportNamedDeclaration: x7e } = D7e; function E7e(e, t) { (!(v7e(t) || x7e(t)) || !this._shouldPrintDecoratorsBeforeExport(t)) && this.printJoin(e.decorators), e.declare && (this.word("declare"), this.space()), e.abstract && (this.word("abstract"), this.space()), this.word("class"), e.id && (this.space(), this.print(e.id)), this.print( e.typeParameters), e.superClass && (this.space(), this.word("extends"), this.space(), this.print(e.superClass), this.print(e.superTypeParameters)), e.implements && (this.space(), this.word("implements"), this.space(), this.printList(e.implements)), this.space(), this.print(e.body); } n(E7e, "ClassDeclaration"); function S7e(e) { if (this.tokenChar(123), e.body.length === 0) this.tokenChar(125); else { this.newline(); let t = T7e(this, e); t?.(-1); let r = this.enterDelimited(); this.printJoin(e.body, !0, !0, t, !0), r(), this.endsWith(10) || this.newline(), this.rightBrace(e); } } n(S7e, "ClassBody"); function T7e(e, t) { if (!e.tokenMap || t.start == null || t.end == null) return null; let r = e.tokenMap.getIndexes(t); if (!r) return null; let i = 1, s = 0, a = 0, o = /* @__PURE__ */ n(() => { for (; a < t.body.length && t.body[a].start == null; ) a++; }, "advanceNextLocIndex"); return o(), (u) => { a <= u && (a = u + 1, o()); let l = a === t.body.length ? t.end : t.body[a].start, c; for (; i < r.length && e.tokenMap.matchesOriginal(c = e._tokens[r[i]], ";") && c.start < l; ) e.token(";", void 0, s++), i++; }; } n(T7e, "classBodyEmptySemicolonsPrinter"); function C7e(e) { if (this.printJoin(e.decorators), !e.static && !this.format.preserveFormat) { var t; let r = (t = e.key.loc) == null || (t = t.end) == null ? void 0 : t.line; r && this.catchUp(r); } this.tsPrintClassMemberModifiers(e), e.computed ? (this.tokenChar(91), this.print(e.key), this.tokenChar(93)) : (this._variance(e), this. print(e.key)), e.optional && this.tokenChar(63), e.definite && this.tokenChar(33), this.print(e.typeAnnotation), e.value && (this.space(), this.tokenChar(61), this.space(), this.print(e.value)), this.semicolon(); } n(C7e, "ClassProperty"); function w7e(e) { var t; this.printJoin(e.decorators); let r = (t = e.key.loc) == null || (t = t.end) == null ? void 0 : t.line; r && this.catchUp(r), this.tsPrintClassMemberModifiers(e), this.word("accessor", !0), this.space(), e.computed ? (this.tokenChar(91), this. print(e.key), this.tokenChar(93)) : (this._variance(e), this.print(e.key)), e.optional && this.tokenChar(63), e.definite && this.tokenChar( 33), this.print(e.typeAnnotation), e.value && (this.space(), this.tokenChar(61), this.space(), this.print(e.value)), this.semicolon(); } n(w7e, "ClassAccessorProperty"); function A7e(e) { this.printJoin(e.decorators), this.tsPrintClassMemberModifiers(e), this.print(e.key), e.optional && this.tokenChar(63), e.definite && this. tokenChar(33), this.print(e.typeAnnotation), e.value && (this.space(), this.tokenChar(61), this.space(), this.print(e.value)), this.semicolon(); } n(A7e, "ClassPrivateProperty"); function _7e(e) { this._classMethodHead(e), this.space(), this.print(e.body); } n(_7e, "ClassMethod"); function P7e(e) { this._classMethodHead(e), this.space(), this.print(e.body); } n(P7e, "ClassPrivateMethod"); function F7e(e) { if (this.printJoin(e.decorators), !this.format.preserveFormat) { var t; let r = (t = e.key.loc) == null || (t = t.end) == null ? void 0 : t.line; r && this.catchUp(r); } this.tsPrintClassMemberModifiers(e), this._methodHead(e); } n(F7e, "_classMethodHead"); function I7e(e) { this.word("static"), this.space(), this.tokenChar(123), e.body.length === 0 ? this.tokenChar(125) : (this.newline(), this.printSequence( e.body, !0), this.rightBrace(e)); } n(I7e, "StaticBlock"); }); // ../node_modules/@babel/generator/lib/generators/methods.js var Jq = E((Xi) => { "use strict"; Object.defineProperty(Xi, "__esModule", { value: !0 }); Xi.ArrowFunctionExpression = $7e; Xi.FunctionDeclaration = Xi.FunctionExpression = U7e; Xi._functionHead = q7e; Xi._methodHead = L7e; Xi._param = R7e; Xi._parameters = M7e; Xi._params = N7e; Xi._predicate = j7e; Xi._shouldPrintArrowParamsParens = V7e; var O7e = Pe(), k7e = tu(), { isIdentifier: B7e } = O7e; function N7e(e, t, r) { this.print(e.typeParameters); let i = W7e.call(this, t, r); i && this.sourceIdentifierName(i.name, i.pos), this.tokenChar(40), this._parameters(e.params, ")"); let s = e.type === "ArrowFunctionExpression"; this.print(e.returnType, s), this._noLineTerminator = s; } n(N7e, "_params"); function M7e(e, t) { let r = this.enterDelimited(), i = this.shouldPrintTrailingComma(t), s = e.length; for (let a = 0; a < s; a++) this._param(e[a]), (i || a < s - 1) && (this.token(",", void 0, a), this.space()); this.token(t), r(); } n(M7e, "_parameters"); function R7e(e) { this.printJoin(e.decorators), this.print(e), e.optional && this.tokenChar(63), this.print(e.typeAnnotation); } n(R7e, "_param"); function L7e(e) { let t = e.kind, r = e.key; (t === "get" || t === "set") && (this.word(t), this.space()), e.async && (this.word("async", !0), this.space()), (t === "method" || t === "init") && e.generator && this.tokenChar(42), e.computed ? (this.tokenChar(91), this.print(r), this.tokenChar(93)) : this.print(r), e.optional && this.tokenChar(63), this._params(e, e.computed && e.key.type !== "StringLiteral" ? void 0 : e.key); } n(L7e, "_methodHead"); function j7e(e, t) { e.predicate && (e.returnType || this.tokenChar(58), this.space(), this.print(e.predicate, t)); } n(j7e, "_predicate"); function q7e(e, t) { e.async && (this.word("async"), this.format.preserveFormat || (this._endsWithInnerRaw = !1), this.space()), this.word("function"), e.generator && (this.format.preserveFormat || (this._endsWithInnerRaw = !1), this.tokenChar(42)), this.space(), e.id && this.print(e.id), this._params( e, e.id, t), e.type !== "TSDeclareFunction" && this._predicate(e); } n(q7e, "_functionHead"); function U7e(e, t) { this._functionHead(e, t), this.space(), this.print(e.body); } n(U7e, "FunctionExpression"); function $7e(e, t) { e.async && (this.word("async", !0), this.space()), this._shouldPrintArrowParamsParens(e) ? this._params(e, void 0, t) : this.print(e.params[0], !0), this._predicate(e, !0), this.space(), this.printInnerComments(), this.token("=>"), this.space(), this.tokenContext |= k7e.TokenContext. arrowBody, this.print(e.body); } n($7e, "ArrowFunctionExpression"); function V7e(e) { var t, r; if (e.params.length !== 1 || e.typeParameters || e.returnType || e.predicate) return !0; let i = e.params[0]; if (!B7e(i) || i.typeAnnotation || i.optional || (t = i.leadingComments) != null && t.length || (r = i.trailingComments) != null && r.length) return !0; if (this.tokenMap) { if (e.loc == null || this.tokenMap.findMatching(e, "(") !== null) return !0; let s = this.tokenMap.findMatching(e, "=>"); return s?.loc == null ? !0 : s.loc.start.line !== e.loc.start.line; } return !!this.format.retainLines; } n(V7e, "_shouldPrintArrowParamsParens"); function W7e(e, t) { let r = e; if (!r && t) { let l = t.type; l === "VariableDeclarator" ? r = t.id : l === "AssignmentExpression" || l === "AssignmentPattern" ? r = t.left : l === "ObjectProperty" || l === "ClassProperty" ? (!t.computed || t.key.type === "StringLiteral") && (r = t.key) : (l === "ClassPrivateProperty" || l === "Class\ AccessorProperty") && (r = t.key); } if (!r) return; let i; if (r.type === "Identifier") { var s, a; i = { pos: (s = r.loc) == null ? void 0 : s.start, name: ((a = r.loc) == null ? void 0 : a.identifierName) || r.name }; } else if (r.type === "PrivateName") { var o; i = { pos: (o = r.loc) == null ? void 0 : o.start, name: "#" + r.id.name }; } else if (r.type === "StringLiteral") { var u; i = { pos: (u = r.loc) == null ? void 0 : u.start, name: r.value }; } return i; } n(W7e, "_getFuncIdName"); }); // ../node_modules/@babel/generator/lib/generators/modules.js var zC = E((ni) => { "use strict"; Object.defineProperty(ni, "__esModule", { value: !0 }); ni.ExportAllDeclaration = s9e; ni.ExportDefaultDeclaration = a9e; ni.ExportDefaultSpecifier = e9e; ni.ExportNamedDeclaration = n9e; ni.ExportNamespaceSpecifier = r9e; ni.ExportSpecifier = t9e; ni.ImportAttribute = u9e; ni.ImportDeclaration = o9e; ni.ImportDefaultSpecifier = Q7e; ni.ImportExpression = c9e; ni.ImportNamespaceSpecifier = l9e; ni.ImportSpecifier = Z7e; ni._printAttributes = i9e; var H7e = Pe(), K7e = tu(), { isClassDeclaration: z7e, isExportDefaultSpecifier: J7e, isExportNamespaceSpecifier: X7e, isImportDefaultSpecifier: Y7e, isImportNamespaceSpecifier: G7e, isStatement: Yq } = H7e; function Z7e(e) { (e.importKind === "type" || e.importKind === "typeof") && (this.word(e.importKind), this.space()), this.print(e.imported), e.local && e. local.name !== e.imported.name && (this.space(), this.word("as"), this.space(), this.print(e.local)); } n(Z7e, "ImportSpecifier"); function Q7e(e) { this.print(e.local); } n(Q7e, "ImportDefaultSpecifier"); function e9e(e) { this.print(e.exported); } n(e9e, "ExportDefaultSpecifier"); function t9e(e) { e.exportKind === "type" && (this.word("type"), this.space()), this.print(e.local), e.exported && e.local.name !== e.exported.name && (this. space(), this.word("as"), this.space(), this.print(e.exported)); } n(t9e, "ExportSpecifier"); function r9e(e) { this.tokenChar(42), this.space(), this.word("as"), this.space(), this.print(e.exported); } n(r9e, "ExportNamespaceSpecifier"); var Xq = !1; function i9e(e, t) { var r; let { importAttributesKeyword: i } = this.format, { attributes: s, assertions: a } = e; s && !i && e.extra && (e.extra.deprecatedAssertSyntax || e.extra.deprecatedWithLegacySyntax) && !Xq && (Xq = !0, console.warn('You are u\ sing import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose v\ alue can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { typ\ e: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n')); let o = i === "assert" || !i && a; if (this.word(o ? "assert" : "with"), this.space(), !o && (i === "with-legacy" || !i && (r = e.extra) != null && r.deprecatedWithLegacySyntax)) { this.printList(s || a); return; } let u = t ? 1 : 0; this.token("{", void 0, u), this.space(), this.printList(s || a, this.shouldPrintTrailingComma("}")), this.space(), this.token("}", void 0, u); } n(i9e, "_printAttributes"); function s9e(e) { var t, r; this.word("export"), this.space(), e.exportKind === "type" && (this.word("type"), this.space()), this.tokenChar(42), this.space(), this. word("from"), this.space(), (t = e.attributes) != null && t.length || (r = e.assertions) != null && r.length ? (this.print(e.source, !0), this.space(), this._printAttributes(e, !1)) : this.print(e.source), this.semicolon(); } n(s9e, "ExportAllDeclaration"); function Gq(e, t) { z7e(t.declaration) && e._shouldPrintDecoratorsBeforeExport(t) && e.printJoin(t.declaration.decorators); } n(Gq, "maybePrintDecoratorsBeforeExport"); function n9e(e) { if (Gq(this, e), this.word("export"), this.space(), e.declaration) { let i = e.declaration; this.print(i), Yq(i) || this.semicolon(); } else { e.exportKind === "type" && (this.word("type"), this.space()); let i = e.specifiers.slice(0), s = !1; for (; ; ) { let o = i[0]; if (J7e(o) || X7e(o)) s = !0, this.print(i.shift()), i.length && (this.tokenChar(44), this.space()); else break; } let a = !1; if ((i.length || !i.length && !s) && (a = !0, this.tokenChar(123), i.length && (this.space(), this.printList(i, this.shouldPrintTrailingComma( "}")), this.space()), this.tokenChar(125)), e.source) { var t, r; this.space(), this.word("from"), this.space(), (t = e.attributes) != null && t.length || (r = e.assertions) != null && r.length ? (this. print(e.source, !0), this.space(), this._printAttributes(e, a)) : this.print(e.source); } this.semicolon(); } } n(n9e, "ExportNamedDeclaration"); function a9e(e) { Gq(this, e), this.word("export"), this.noIndentInnerCommentsHere(), this.space(), this.word("default"), this.space(), this.tokenContext |= K7e.TokenContext.exportDefault; let t = e.declaration; this.print(t), Yq(t) || this.semicolon(); } n(a9e, "ExportDefaultDeclaration"); function o9e(e) { var t, r; this.word("import"), this.space(); let i = e.importKind === "type" || e.importKind === "typeof"; i ? (this.noIndentInnerCommentsHere(), this.word(e.importKind), this.space()) : e.module ? (this.noIndentInnerCommentsHere(), this.word( "module"), this.space()) : e.phase && (this.noIndentInnerCommentsHere(), this.word(e.phase), this.space()); let s = e.specifiers.slice(0), a = !!s.length; for (; a; ) { let u = s[0]; if (Y7e(u) || G7e(u)) this.print(s.shift()), s.length && (this.tokenChar(44), this.space()); else break; } let o = !1; s.length ? (o = !0, this.tokenChar(123), this.space(), this.printList(s, this.shouldPrintTrailingComma("}")), this.space(), this.tokenChar( 125)) : i && !a && (o = !0, this.tokenChar(123), this.tokenChar(125)), (a || i) && (this.space(), this.word("from"), this.space()), (t = e.attributes) != null && t.length || (r = e.assertions) != null && r.length ? (this.print(e.source, !0), this.space(), this._printAttributes( e, o)) : this.print(e.source), this.semicolon(); } n(o9e, "ImportDeclaration"); function u9e(e) { this.print(e.key), this.tokenChar(58), this.space(), this.print(e.value); } n(u9e, "ImportAttribute"); function l9e(e) { this.tokenChar(42), this.space(), this.word("as"), this.space(), this.print(e.local); } n(l9e, "ImportNamespaceSpecifier"); function c9e(e) { this.word("import"), e.phase && (this.tokenChar(46), this.word(e.phase)), this.tokenChar(40); let t = this.shouldPrintTrailingComma(")"); this.print(e.source), e.options != null && (this.tokenChar(44), this.space(), this.print(e.options)), t && this.tokenChar(44), this.rightParens( e); } n(c9e, "ImportExpression"); }); // ../node_modules/jsesc/jsesc.js var tU = E((cgt, eU) => { "use strict"; var Zq = {}, f9e = Zq.hasOwnProperty, Qq = /* @__PURE__ */ n((e, t) => { for (let r in e) f9e.call(e, r) && t(r, e[r]); }, "forOwn"), d9e = /* @__PURE__ */ n((e, t) => (t && Qq(t, (r, i) => { e[r] = i; }), e), "extend"), p9e = /* @__PURE__ */ n((e, t) => { let r = e.length, i = -1; for (; ++i < r; ) t(e[i]); }, "forEach"), My = /* @__PURE__ */ n((e) => "\\u" + ("0000" + e).slice(-4), "fourHexEscape"), ip = /* @__PURE__ */ n((e, t) => { let r = e.toString(16); return t ? r : r.toUpperCase(); }, "hexadecimal"), sp = Zq.toString, h9e = Array.isArray, m9e = /* @__PURE__ */ n((e) => typeof Buffer == "function" && Buffer.isBuffer(e), "isBuffer"), y9e = /* @__PURE__ */ n((e) => sp.call(e) == "[object Object]", "isObject"), g9e = /* @__PURE__ */ n((e) => typeof e == "stri\ ng" || sp.call(e) == "[object String]", "isString"), b9e = /* @__PURE__ */ n((e) => typeof e == "number" || sp.call(e) == "[object Number]", "isNumber"), JC = /* @__PURE__ */ n((e) => typeof e == "bigint", "isBigInt"), D9e = /* @__PURE__ */ n((e) => typeof e == "function", "isFu\ nction"), v9e = /* @__PURE__ */ n((e) => sp.call(e) == "[object Map]", "isMap"), x9e = /* @__PURE__ */ n((e) => sp.call(e) == "[object Set]", "isSet"), E9e = { "\\": "\\\\", "\b": "\\b", "\f": "\\f", "\n": "\\n", "\r": "\\r", " ": "\\t" // `\v` is omitted intentionally, because in IE < 9, '\v' == 'v'. // '\v': '\\x0B' }, S9e = /[\\\b\f\n\r\t]/, T9e = /[0-9]/, C9e = /[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, w9e = /([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g, A9e = /([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g, ja = /* @__PURE__ */ n((e, t) => { let r = /* @__PURE__ */ n(() => { c = l, ++t.indentLevel, l = t.indent.repeat(t.indentLevel); }, "increaseIndentation"), i = { escapeEverything: !1, minimal: !1, isScriptContext: !1, quotes: "single", wrap: !1, es6: !1, json: !1, compact: !0, lowercaseHex: !1, numbers: "decimal", indent: " ", indentLevel: 0, __inline1__: !1, __inline2__: !1 }, s = t && t.json; s && (i.quotes = "double", i.wrap = !0), t = d9e(i, t), t.quotes != "single" && t.quotes != "double" && t.quotes != "backtick" && (t.quotes = "single"); let a = t.quotes == "double" ? '"' : t.quotes == "backtick" ? "`" : "'", o = t.compact, u = t.lowercaseHex, l = t.indent.repeat(t.indentLevel), c = "", f = t.__inline1__, m = t.__inline2__, h = o ? "" : ` `, d, y = !0, p = t.numbers == "binary", g = t.numbers == "octal", b = t.numbers == "decimal", D = t.numbers == "hexadecimal"; if (s && e && D9e(e.toJSON) && (e = e.toJSON()), !g9e(e)) { if (v9e(e)) return e.size == 0 ? "new Map()" : (o || (t.__inline1__ = !0, t.__inline2__ = !1), "new Map(" + ja(Array.from(e), t) + ")"); if (x9e(e)) return e.size == 0 ? "new Set()" : "new Set(" + ja(Array.from(e), t) + ")"; if (m9e(e)) return e.length == 0 ? "Buffer.from([])" : "Buffer.from(" + ja(Array.from(e), t) + ")"; if (h9e(e)) return d = [], t.wrap = !0, f && (t.__inline1__ = !1, t.__inline2__ = !0), m || r(), p9e(e, (T) => { y = !1, m && (t.__inline2__ = !1), d.push( (o || m ? "" : l) + ja(T, t) ); }), y ? "[]" : m ? "[" + d.join(", ") + "]" : "[" + h + d.join("," + h) + h + (o ? "" : c) + "]"; if (b9e(e) || JC(e)) { if (s) return JSON.stringify(Number(e)); let T; if (b) T = String(e); else if (D) { let w = e.toString(16); u || (w = w.toUpperCase()), T = "0x" + w; } else p ? T = "0b" + e.toString(2) : g && (T = "0o" + e.toString(8)); return JC(e) ? T + "n" : T; } else return JC(e) ? s ? JSON.stringify(Number(e)) : e + "n" : y9e(e) ? (d = [], t.wrap = !0, r(), Qq(e, (T, w) => { y = !1, d.push( (o ? "" : l) + ja(T, t) + ":" + (o ? "" : " ") + ja(w, t) ); }), y ? "{}" : "{" + h + d.join("," + h) + h + (o ? "" : c) + "}") : s ? JSON.stringify(e) || "null" : String(e); } let x = t.escapeEverything ? w9e : A9e; return d = e.replace(x, (T, w, B, k, j, W) => { if (w) { if (t.minimal) return w; let G = w.charCodeAt(0), ye = w.charCodeAt(1); if (t.es6) { let re = (G - 55296) * 1024 + ye - 56320 + 65536; return "\\u{" + ip(re, u) + "}"; } return My(ip(G, u)) + My(ip(ye, u)); } if (B) return My(ip(B.charCodeAt(0), u)); if (T == "\0" && !s && !T9e.test(W.charAt(j + 1))) return "\\0"; if (k) return k == a || t.escapeEverything ? "\\" + k : k; if (S9e.test(T)) return E9e[T]; if (t.minimal && !C9e.test(T)) return T; let Y = ip(T.charCodeAt(0), u); return s || Y.length > 2 ? My(Y) : "\\x" + ("00" + Y).slice(-2); }), a == "`" && (d = d.replace(/\$\{/g, "\\${")), t.isScriptContext && (d = d.replace(/<\/(script|style)/gi, "<\\/$1").replace(/